mirror of
https://github.com/NixOS/nixpkgs.git
synced 2024-11-25 08:23:09 +00:00
dcgm: enable tests
This commit is contained in:
parent
2301651b8c
commit
9d1d584c17
@ -109,6 +109,30 @@ in stdenv.mkDerivation rec {
|
||||
# Lots of dodgy C++.
|
||||
env.NIX_CFLAGS_COMPILE = "-Wno-error";
|
||||
|
||||
doCheck = true;
|
||||
|
||||
checkPhase = ''
|
||||
runHook preCheck
|
||||
|
||||
ctest -j $NIX_BUILD_CORES --output-on-failure --exclude-regex ${
|
||||
lib.escapeShellArg (
|
||||
lib.concatMapStringsSep "|" (test: "^${lib.escapeRegex test}$") [
|
||||
"DcgmModuleSysmon Watches"
|
||||
"DcgmModuleSysmon maxSampleAge"
|
||||
"DcgmModuleSysmon::CalculateCoreUtilization"
|
||||
"DcgmModuleSysmon::ParseProcStatCpuLine"
|
||||
"DcgmModuleSysmon::ParseThermalFileContentsAndStore"
|
||||
"DcgmModuleSysmon::PopulateTemperatureFileMap"
|
||||
"DcgmModuleSysmon::ReadCoreSpeed"
|
||||
"DcgmModuleSysmon::ReadTemperature"
|
||||
"Sysmon: initialize module"
|
||||
]
|
||||
)
|
||||
}
|
||||
|
||||
runHook postCheck
|
||||
'';
|
||||
|
||||
disallowedReferences = lib.concatMap getCudaPackages cudaPackageSets;
|
||||
|
||||
meta = with lib; {
|
||||
|
Loading…
Reference in New Issue
Block a user