gpu: nvgpu: unit: add test levels to required test tracking

Add tracking of test levels to the required test mechanism in the unit
test framework. The json output will now include the test level. This
will allow runs with just level 0 tests to correctly verify the right
tests run.

JIRA NVGPU-3200

Change-Id: Ifc7c7ad5b605487945e0406d387f54ba04f1680d
Signed-off-by: Philip Elcan <pelcan@nvidia.com>
Reviewed-on: https://git-master.nvidia.com/r/2103515
Reviewed-by: svc-mobile-coverity <svc-mobile-coverity@nvidia.com>
Reviewed-by: svc-mobile-misra <svc-mobile-misra@nvidia.com>
GVS: Gerrit_Virtual_Submit
Reviewed-by: Alex Waterman <alexw@nvidia.com>
Reviewed-by: mobile promotions <svcmobile_promotions@nvidia.com>
Tested-by: mobile promotions <svcmobile_promotions@nvidia.com>
This commit is contained in:
Philip Elcan
2019-04-23 11:05:34 -04:00
committed by mobile promotions
parent 73bd8e4646
commit bb61fc110b
4 changed files with 347 additions and 40 deletions

View File

@@ -131,7 +131,8 @@ static void dump_test_record(FILE *logfile, struct unit_test_record *rec,
fprintf(logfile, "\"uid\": \"%s\", ", rec->test->jama.unique_id);
fprintf(logfile, "\"vc\": \"%s\", ",
rec->test->jama.verification_criteria);
fprintf(logfile, "\"req\": \"%s\"", rec->test->jama.requirement);
fprintf(logfile, "\"req\": \"%s\", ", rec->test->jama.requirement);
fprintf(logfile, "\"test_level\": %d", rec->test->test_lvl);
fprintf(logfile, "}");
}