aboutsummaryrefslogtreecommitdiffstats
path: root/REPORTING-BUGS
Commit message (Expand)AuthorAge
* REPORTING-BUGS: add get_maintainer.pl blurbJoe Perches2009-08-18
* REPORTING-BUGS: cc the mailing list tooJ. Bruce Fields2008-02-07
* [PATCH] REPORTING-BUGS: request .config fileRandy Dunlap2006-12-07
* [PATCH] Spelling and whitespace fixes for REPORTING-BUGSTobias Klauser2005-09-10
* [PATCH] REPORTING-BUGS: track regressionsAndrew Morton2005-08-05
* Linux-2.6.12-rc2v2.6.12-rc2Linus Torvalds2005-04-16
pan> * module_test_fn as @args. */ void *args; }; /* * Interface to the unit test framework module loader. Each unit test module * will have exactly one of these. */ struct unit_module { /* * Name of the module. */ const char *name; /* * NULL terminated list of tests within the module. */ struct unit_module_test *tests; unsigned long nr_tests; /* * Run priority. Currently 3 defined: * * UNIT_PRIO_SELF_TEST * UNIT_PRIO_POSIX_TEST * UNIT_PRIO_NVGPU_TEST * * These let us run environment and POSIX API wrapper tests before the * rest of the unit tests run. */ unsigned int prio; /* * For the core FW to use. Not for modules!!! */ void *lib_handle; struct unit_fw *fw; pthread_t thread; }; /* * Zero is the higest priority. Increasing the prio value decreases priority to * run. */ #define UNIT_PRIO_SELF_TEST 0U #define UNIT_PRIO_POSIX_TEST 50U #define UNIT_PRIO_NVGPU_TEST 100U #define UNIT_MODULE(__name, __tests, __prio) \ struct unit_module __unit_module__ = { \ .name = #__name, \ .tests = __tests, \ .nr_tests = (sizeof(__tests) / \ sizeof(struct unit_module_test)), \ .prio = __prio, \ .lib_handle = NULL, \ .fw = NULL, \ } #define UNIT_TEST(__name, __fn, __args) \ { \ .name = #__name, \ .fn = __fn, \ .args = __args, \ } #define unit_return_fail(m, msg, ...) \ do { \ unit_err(m, "%s():%d " msg, \ __func__, __LINE__, ##__VA_ARGS__); \ return UNIT_FAIL; \ } while (0) #endif