mirror of
git://nv-tegra.nvidia.com/linux-nvgpu.git
synced 2025-12-24 10:34:43 +03:00
gpu: nvgpu: unit: add test levels
Add -t/--test-level option for the unit test framework. This correlates with the test plan levels in GVS. L0 tests are a subset of the L1 tests. Currently, only test levels 0 and 1 are supported. The test output has been updated to display skipped tests. Skipped tests are not included in the test dump. JIRA NVGPU-2251 Change-Id: Icc2ff19a81529be8526e89f70983e96040390e00 Signed-off-by: Philip Elcan <pelcan@nvidia.com> Reviewed-on: https://git-master.nvidia.com/r/2085280 Reviewed-by: mobile promotions <svcmobile_promotions@nvidia.com> Tested-by: mobile promotions <svcmobile_promotions@nvidia.com>
This commit is contained in:
committed by
mobile promotions
parent
f7860833f1
commit
c0d5a715bd
@@ -495,42 +495,42 @@ static int test_interleaving_l0_l2(struct unit_module *m,
|
||||
}
|
||||
|
||||
struct unit_module_test nvgpu_runlist_tests[] = {
|
||||
UNIT_TEST(tsg_format_ch1, test_tsg_format_gen, &tsg_fmt_tests[0]),
|
||||
UNIT_TEST(tsg_format_ch2, test_tsg_format_gen, &tsg_fmt_tests[1]),
|
||||
UNIT_TEST(tsg_format_ch5, test_tsg_format_gen, &tsg_fmt_tests[2]),
|
||||
UNIT_TEST(tsg_format_ch1, test_tsg_format_gen, &tsg_fmt_tests[0], 0),
|
||||
UNIT_TEST(tsg_format_ch2, test_tsg_format_gen, &tsg_fmt_tests[1], 0),
|
||||
UNIT_TEST(tsg_format_ch5, test_tsg_format_gen, &tsg_fmt_tests[2], 0),
|
||||
UNIT_TEST(tsg_format_ch1_timeslice, test_tsg_format_gen,
|
||||
&tsg_fmt_tests[3]),
|
||||
&tsg_fmt_tests[3], 0),
|
||||
UNIT_TEST(tsg_format_ch3_inactive2, test_tsg_format_gen,
|
||||
&tsg_fmt_tests[4]),
|
||||
&tsg_fmt_tests[4], 0),
|
||||
|
||||
UNIT_TEST(flat, test_flat, NULL),
|
||||
UNIT_TEST(flat, test_flat, NULL, 0),
|
||||
|
||||
UNIT_TEST(flat_oversize_tiny, test_flat_oversize_tiny, NULL),
|
||||
UNIT_TEST(flat_oversize_single, test_flat_oversize_single, NULL),
|
||||
UNIT_TEST(flat_oversize_onehalf, test_flat_oversize_onehalf, NULL),
|
||||
UNIT_TEST(flat_oversize_two, test_flat_oversize_two, NULL),
|
||||
UNIT_TEST(flat_oversize_end, test_flat_oversize_end, NULL),
|
||||
UNIT_TEST(flat_oversize_tiny, test_flat_oversize_tiny, NULL, 0),
|
||||
UNIT_TEST(flat_oversize_single, test_flat_oversize_single, NULL, 0),
|
||||
UNIT_TEST(flat_oversize_onehalf, test_flat_oversize_onehalf, NULL, 0),
|
||||
UNIT_TEST(flat_oversize_two, test_flat_oversize_two, NULL, 0),
|
||||
UNIT_TEST(flat_oversize_end, test_flat_oversize_end, NULL, 0),
|
||||
|
||||
UNIT_TEST(interleaving,
|
||||
test_interleaving_gen_all_run, &interleave_tests[0]),
|
||||
test_interleaving_gen_all_run, &interleave_tests[0], 0),
|
||||
|
||||
UNIT_TEST(interleaving_oversize_tiny,
|
||||
test_interleaving_gen_all_run, &interleave_tests[1]),
|
||||
test_interleaving_gen_all_run, &interleave_tests[1], 0),
|
||||
UNIT_TEST(interleaving_oversize_l2,
|
||||
test_interleaving_gen_all_run, &interleave_tests[2]),
|
||||
test_interleaving_gen_all_run, &interleave_tests[2], 0),
|
||||
UNIT_TEST(interleaving_oversize_l2_l1_l2,
|
||||
test_interleaving_gen_all_run, &interleave_tests[3]),
|
||||
test_interleaving_gen_all_run, &interleave_tests[3], 0),
|
||||
UNIT_TEST(interleaving_oversize_l2_l1_l2_l1,
|
||||
test_interleaving_gen_all_run, &interleave_tests[4]),
|
||||
test_interleaving_gen_all_run, &interleave_tests[4], 0),
|
||||
UNIT_TEST(interleaving_oversize_l2_l1_l2_l1_l2,
|
||||
test_interleaving_gen_all_run, &interleave_tests[5]),
|
||||
test_interleaving_gen_all_run, &interleave_tests[5], 0),
|
||||
|
||||
UNIT_TEST(interleaving_l0, test_interleaving_l0, NULL),
|
||||
UNIT_TEST(interleaving_l1, test_interleaving_l1, NULL),
|
||||
UNIT_TEST(interleaving_l2, test_interleaving_l2, NULL),
|
||||
UNIT_TEST(interleaving_l0_l1, test_interleaving_l0_l1, NULL),
|
||||
UNIT_TEST(interleaving_l1_l2, test_interleaving_l1_l2, NULL),
|
||||
UNIT_TEST(interleaving_l0_l2, test_interleaving_l0_l2, NULL),
|
||||
UNIT_TEST(interleaving_l0, test_interleaving_l0, NULL, 0),
|
||||
UNIT_TEST(interleaving_l1, test_interleaving_l1, NULL, 0),
|
||||
UNIT_TEST(interleaving_l2, test_interleaving_l2, NULL, 0),
|
||||
UNIT_TEST(interleaving_l0_l1, test_interleaving_l0_l1, NULL, 0),
|
||||
UNIT_TEST(interleaving_l1_l2, test_interleaving_l1_l2, NULL, 0),
|
||||
UNIT_TEST(interleaving_l0_l2, test_interleaving_l0_l2, NULL, 0),
|
||||
};
|
||||
|
||||
UNIT_MODULE(nvgpu_runlist, nvgpu_runlist_tests, UNIT_PRIO_NVGPU_TEST);
|
||||
|
||||
Reference in New Issue
Block a user