Lines Matching refs:tests
41 * \brief Unit tests for the Xen netback driver.
43 * Due to the driver's use of static functions, these tests cannot be compiled
108 static int xnb_unit_test_runner(test_fixture_t const tests[], int ntests,
181 /** Private data used by unit tests */
203 * \param tests An array of tests. Every test will be attempted.
204 * \param ntests The length of tests
207 * \return The number of tests that failed
210 xnb_unit_test_runner(test_fixture_t const tests[], int ntests, char *buffer,
218 int error = tests[i].setup();
226 tests[i].test(buffer, buflen);
235 tests[i].teardown();
249 /** Number of unit tests. Must match the length of the tests array below */
258 * Called from userspace by a sysctl. Runs all internal unit tests, and
269 test_fixture_t const tests[TOTAL_TESTS] = {
336 xnb_unit_test_runner(tests, TOTAL_TESTS, results, TOTAL_BUFLEN);
434 * This tests handling of the MORE_DATA flag and cdr
962 * Helper function used to setup pkt2mbufc tests
2146 * some of the xnb_add_mbuf_cksum unit tests. m must already be allocated
2307 * xnb_add_mbuf_cksum tcp unit tests. m must already be allocated and must be