mirror of
git://nv-tegra.nvidia.com/linux-nvgpu.git
synced 2025-12-23 18:16:01 +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"),
|
||||
@@ -48,12 +48,20 @@ struct unit_test_list {
|
||||
struct unit_test_record *last;
|
||||
};
|
||||
|
||||
enum result_enum {
|
||||
PASSED,
|
||||
FAILED,
|
||||
SKIPPED,
|
||||
};
|
||||
|
||||
struct unit_results {
|
||||
struct unit_test_list passing;
|
||||
struct unit_test_list failing;
|
||||
struct unit_test_list skipped;
|
||||
|
||||
int nr_tests;
|
||||
int nr_passing;
|
||||
int nr_skipped;
|
||||
};
|
||||
|
||||
#define for_record_in_test_list(__test_list, __test) \
|
||||
@@ -64,7 +72,7 @@ struct unit_results {
|
||||
int core_add_test_record(struct unit_fw *fw,
|
||||
struct unit_module *mod,
|
||||
struct unit_module_test *test,
|
||||
bool success);
|
||||
enum result_enum result);
|
||||
void core_print_test_status(struct unit_fw *fw);
|
||||
|
||||
#endif
|
||||
|
||||
Reference in New Issue
Block a user