coz/benchmarks/check-output.sh
Alexey Klimkin 0659e3ab1d Port old "check" target and update CI
Use "make test" to run the old target. Only works for Debug and
RelWithDebInfo, since coz requires debug symbols in the program under
profile.
2021-01-08 09:59:15 -08:00

12 lines
393 B
Bash
Executable File

#!/bin/sh
set -e
rm -f profile.coz
$@
grep -q "time=" profile.coz || { echo failure: valid profile.coz not generated; exit 1; }
grep -q "throughput-point" profile.coz || { echo failure: throughput-point not found in profile; exit 1; }
grep -q -P "samples\tlocation=" profile.coz || { echo failure: samples not found in profile; exit 1; }
echo success: benchmark generated valid profile.coz