Lines Matching refs:test

5  * kselftest_harness.h: simple C unit test helper.
76 /* Utilities exposed to the test definitions */
149 * TEST() - Defines the test function and creates the registration
152 * @test_name: test name
158 * Defines a test by name.
170 * @test_name: test name
177 * Defines a test by name and the expected term signal.
311 * enables the test process to drop its privileges without impacting the
362 * Defines a variant of the test fixture, provided to FIXTURE_SETUP() and
383 * TEST_F() - Emits test registration and helpers for
384 * fixture-based test cases
387 * @test_name: test name
393 * Defines a test that depends on a fixture (e.g., is part of a test case).
495 * TEST_HARNESS_MAIN - Simple wrapper to run the test harness
501 * Use once to append a main() to the test file.
518 * ASSERT_* calls will stop test execution immediately.
763 * not thread-safe, but it should be fine in most sane test scenarios.
854 char reason[1024]; /* Reason for test result */
874 struct __test_metadata *test;
879 * XFAIL_ADD() - mark variant + test case combination as expected to fail
882 * @test_name: name of the test case
884 * Mark a combination of variant + test case for a given fixture as expected
898 _##fixture_name##_##variant_name##_##test_name##_xfail.test = \
928 /* Contains all the information for test execution and status checking. */
933 pid_t pid; /* pid of test when being run */
938 int timeout; /* seconds to wait for test timeout */
939 bool timed_out; /* did this test timeout instead of exiting? */
940 bool aborted; /* stopped test due to failed ASSERT */
942 jmp_buf env; /* for exiting out of test early */
954 * Since constructors are called in reverse order, reverse the test
997 "# no active test in SIGALRM handler!?\n");
1145 "\t-t name include test\n"
1146 "\t-T name exclude test\n"
1151 "\t-r name run specified test\n"
1157 "but not test 'foo' specify '-T foo -v bla'.\n"
1222 /* reset test struct */
1253 /* Check if we're expecting this test to fail */
1255 if (xfail->test == t)
1305 ksft_print_msg("Starting %u tests from %u test cases.\n",