gpu: nvgpu: unit: required tests system

When running unit testing, we need to ensure that all expected unit
tests were actually run. This used to be done by an external Python
script, but it is not suitable for some OSes. This patch brings this
mechanism into the unit testing framework, and makes use of an INI
file to provide the list of expected tests.

JIRA NVGPU-3072

Change-Id: I9ed590de9005fe10324c594ea33ebc8fda482019
Signed-off-by: Nicolas Benech <nbenech@nvidia.com>
Reviewed-on: https://git-master.nvidia.com/r/c/linux-nvgpu/+/2317220
Reviewed-by: automaticguardword <automaticguardword@nvidia.com>
Reviewed-by: Alex Waterman <alexw@nvidia.com>
Reviewed-by: mobile promotions <svcmobile_promotions@nvidia.com>
Tested-by: mobile promotions <svcmobile_promotions@nvidia.com>
GVS: Gerrit_Virtual_Submit
This commit is contained in:
Nicolas Benech
2020-03-23 14:36:56 -04:00
committed by Alex Waterman
parent b7767a604f
commit fee7b81061
10 changed files with 1516 additions and 4976 deletions

View File

@@ -53,6 +53,7 @@ struct unit_fw_args {
const char *unit_name;
const char *unit_load_path;
const char *unit_to_run;
const char *required_tests_file;
};
int core_parse_args(struct unit_fw *fw, int argc, char **argv);