Lines Matching defs:test
67 printf("usage: resctrl_tests [-h] [-t test list] [-n no_of_bits] [-b benchmark_cmd [option]...]\n");
70 printf("\t-t test list: run tests/groups specified by the list, ");
80 printf("\t-p cpu_no: specify CPU number to run the test. 1 is default\n");
84 static int test_prepare(const struct resctrl_test *test)
88 res = signal_handler_register(test);
103 static void test_cleanup(const struct resctrl_test *test)
105 if (test->cleanup)
106 test->cleanup();
111 static bool test_vendor_specific_check(const struct resctrl_test *test)
113 if (!test->vendor_specific)
116 return get_vendor() & test->vendor_specific;
119 static void run_single_test(const struct resctrl_test *test, const struct user_params *uparams)
123 if (test->disabled)
126 if (!test_vendor_specific_check(test)) {
127 ksft_test_result_skip("Hardware does not support %s\n", test->name);
131 ksft_print_msg("Starting %s test ...\n", test->name);
133 if (test_prepare(test)) {
134 ksft_exit_fail_msg("Abnormal failure when preparing for the test\n");
138 if (!test->feature_check(test)) {
140 test->name, test->name);
144 ret = test->run_test(test, uparams);
145 ksft_test_result(!ret, "%s: test\n", test->name);
148 test_cleanup(test);
213 printf("invalid test: %s\n", token);