aboutsummaryrefslogtreecommitdiffstats
path: root/test/test_all.sh
diff options
context:
space:
mode:
authorYann Herklotz <git@yannherklotz.com>2021-07-11 14:12:50 +0200
committerYann Herklotz <git@yannherklotz.com>2021-07-11 14:12:50 +0200
commitc73f4e44c96310540434d0b9cc81e969c6430b90 (patch)
tree063f9b2baae2ecd2c566cd215fe7c0d5c638d1fc /test/test_all.sh
parentc4853aa99ad65d0fa6f014df1f52c62bc2b6fd31 (diff)
downloadvericert-kvx-c73f4e44c96310540434d0b9cc81e969c6430b90.tar.gz
vericert-kvx-c73f4e44c96310540434d0b9cc81e969c6430b90.zip
Fix the small test bench for Vericert
Diffstat (limited to 'test/test_all.sh')
-rwxr-xr-xtest/test_all.sh5
1 files changed, 3 insertions, 2 deletions
diff --git a/test/test_all.sh b/test/test_all.sh
index 6b67d27..2d78890 100755
--- a/test/test_all.sh
+++ b/test/test_all.sh
@@ -21,6 +21,7 @@ test_command() {
test_command iverilog
test_command gcc
+test_command vericert
echo "--------------------------------------------------"
@@ -30,13 +31,13 @@ for cfile in $test_dir/*.c; do
gcc -o $outbase.gcc $cfile >/dev/null 2>&1
$outbase.gcc
expected=$?
- ./bin/vericert -fschedule -drtl -o $outbase.v $cfile >/dev/null 2>&1
+ vericert -fschedule -drtl -o $outbase.v $cfile >/dev/null 2>&1
if [[ ! -f $outbase.v ]]; then
echo "ERROR"
continue
fi
iverilog -o $outbase.iverilog $outbase.v
- actual=$($outbase.iverilog | sed -E -e 's/[^0-9]+([0-9]+)/\1/')
+ actual=$($outbase.iverilog | tail -n1 | sed -E -e 's/[^0-9]+([0-9]+)/\1/')
if [[ $expected = $actual ]]; then
echo "OK"
else