aboutsummaryrefslogtreecommitdiffstats
path: root/test/test_all.sh
diff options
context:
space:
mode:
authorYann Herklotz <git@yannherklotz.com>2021-09-22 19:26:01 +0100
committerYann Herklotz <git@yannherklotz.com>2021-09-22 19:26:01 +0100
commit2ff1316847b9d338a792f67b7b9f6364d4b65551 (patch)
tree6aaf069a05f889d6f3fe012332a5e74dd8707429 /test/test_all.sh
parentc114bd7a269824623f2dbb41322d95d5056fca02 (diff)
parent8386bed39f413bb461c19debbad92e85f927c4b5 (diff)
downloadvericert-kvx-2ff1316847b9d338a792f67b7b9f6364d4b65551.tar.gz
vericert-kvx-2ff1316847b9d338a792f67b7b9f6364d4b65551.zip
Merge remote-tracking branch 'origin/develop' into develop
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..f072eba 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 -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