Lines Matching defs:tests
43 * \brief Unit tests for the Xen netback driver.
45 * Due to the driver's use of static functions, these tests cannot be compiled
110 static int xnb_unit_test_runner(test_fixture_t const tests[], int ntests,
183 /** Private data used by unit tests */
205 * \param tests An array of tests. Every test will be attempted.
206 * \param ntests The length of tests
209 * \return The number of tests that failed
212 xnb_unit_test_runner(test_fixture_t const tests[], int ntests, char *buffer,
220 int error = tests[i].setup();
228 tests[i].test(buffer, buflen);
237 tests[i].teardown();
251 /** Number of unit tests. Must match the length of the tests array below */
260 * Called from userspace by a sysctl. Runs all internal unit tests, and
271 test_fixture_t const tests[TOTAL_TESTS] = {
338 xnb_unit_test_runner(tests, TOTAL_TESTS, results, TOTAL_BUFLEN);
436 * This tests handling of the MORE_DATA flag and cdr
964 * Helper function used to setup pkt2mbufc tests
2145 * some of the xnb_add_mbuf_cksum unit tests. m must already be allocated
2306 * xnb_add_mbuf_cksum tcp unit tests. m must already be allocated and must be