Support and differentiate between ASCII and binary AIG testing
authorEddie Hung <eddieh@ece.ubc.ca>
Fri, 8 Feb 2019 20:41:59 +0000 (12:41 -0800)
committerEddie Hung <eddieh@ece.ubc.ca>
Fri, 8 Feb 2019 20:41:59 +0000 (12:41 -0800)
tests/aiger/run-test.sh
tests/tools/autotest.sh

index 308578f011fb0850acd099c7d199b7492abb9010..e0a34f02337950b7a878d5b0258277a9c1324786 100755 (executable)
@@ -17,4 +17,8 @@ if ! which iverilog > /dev/null ; then
   exit 1
 fi
 
-exec ${MAKE:-make} -f ../tools/autotest.mk $seed *.aag EXTRA_FLAGS="-f aiger"
+echo "===== AAG ======"
+${MAKE:-make} -f ../tools/autotest.mk $seed *.aag EXTRA_FLAGS="-f aiger"
+
+echo "===== AIG ======"
+exec ${MAKE:-make} -f ../tools/autotest.mk $seed *.aig EXTRA_FLAGS="-f aiger"
index 3e1325b33fb3732ad62b3b3c3bbf4fc8d065b0d4..0ffa062e3b70958718c9640f7e41de6a9c40d030 100755 (executable)
@@ -90,7 +90,7 @@ for fn
 do
        bn=${fn%.*}
        ext=${fn##*.}
-       if [[ "$ext" != "v" ]] && [[ "$ext" != "aag" ]]; then
+       if [[ "$ext" != "v" ]] && [[ "$ext" != "aag" ]] && [[ "$ext" != "aig" ]]; then
                echo "Invalid argument: $fn" >&2
                exit 1
        fi