mirror of
git://nv-tegra.nvidia.com/linux-nvgpu.git
synced 2025-12-23 01:50:07 +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
@@ -1,5 +1,5 @@
|
||||
/*
|
||||
* Copyright (c) 2018, NVIDIA CORPORATION. All rights reserved.
|
||||
* Copyright (c) 2018-2019, NVIDIA CORPORATION. All rights reserved.
|
||||
*
|
||||
* Permission is hereby granted, free of charge, to any person obtaining a
|
||||
* copy of this software and associated documentation files (the "Software"),
|
||||
@@ -37,8 +37,8 @@ int test_fail(struct unit_module *m, struct gk20a *g, void *args)
|
||||
}
|
||||
|
||||
struct unit_module_test test_tests[] = {
|
||||
UNIT_TEST(simplest, test_simplest, NULL),
|
||||
UNIT_TEST(fail, test_fail, NULL),
|
||||
UNIT_TEST(simplest, test_simplest, NULL, 0),
|
||||
UNIT_TEST(fail, test_fail, NULL, 0),
|
||||
};
|
||||
|
||||
UNIT_MODULE(test, test_tests, UNIT_PRIO_SELF_TEST);
|
||||
|
||||
Reference in New Issue
Block a user