1 { runCommand, phoronix-test-suite }:
4 inherit (phoronix-test-suite) pname version;
7 runCommand "${pname}-tests" { meta.timeout = 60; } ''
8 # automatic initial setup to prevent interactive questions
9 ${phoronix-test-suite}/bin/phoronix-test-suite enterprise-setup >/dev/null
10 # get version of installed program and compare with package version
11 if [[ `${phoronix-test-suite}/bin/phoronix-test-suite version` != *"${version}"* ]]; then
12 echo "Error: program version does not match package version"
16 ${phoronix-test-suite}/bin/phoronix-test-suite dummy_module.dummy-command >/dev/null
17 # needed for Nix to register the command as successful