mirror of
git://nv-tegra.nvidia.com/linux-nvgpu.git
synced 2025-12-22 17:36:20 +03:00
gpu: nvgpu: unit: Test execution verification
When running unit tests, a log of all executed tests is generated. A script along with the "required_tests.json" will check that all required tests were effectively run, thus ensuring that no tests are silently missing. The "testlist.py" support script is also used to generate the list of required tests, and can also generate an HTML-formatted output with links to JAMA requirements wherever possible. JIRA NVGPU-1717 Change-Id: Ic361b1d0a5f003f8b24952d63e20fb496dd1e787 Signed-off-by: Nicolas Benech <nbenech@nvidia.com> Reviewed-on: https://git-master.nvidia.com/r/1983631 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:
committed by
mobile promotions
parent
4e3e60dc48
commit
ccb4c67a1b
@@ -1,6 +1,6 @@
|
||||
#!/bin/bash
|
||||
#
|
||||
# Copyright (c) 2018, NVIDIA CORPORATION. All Rights Reserved.
|
||||
# Copyright (c) 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"),
|
||||
@@ -47,5 +47,10 @@ echo "$ $NVGPU_UNIT $*"
|
||||
|
||||
$NVGPU_UNIT $*
|
||||
rc=$?
|
||||
if [ $rc -eq "0" ]; then
|
||||
echo "Checking executed tests against list of required tests:"
|
||||
./testlist.py --html
|
||||
rc=$?
|
||||
fi
|
||||
popd
|
||||
exit $rc
|
||||
|
||||
Reference in New Issue
Block a user