mirror of
https://github.com/plasma-umass/coz.git
synced 2024-08-15 16:00:32 +03:00
Use "make test" to run the old target. Only works for Debug and RelWithDebInfo, since coz requires debug symbols in the program under profile.
12 lines
393 B
Bash
Executable File
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
|