aboutsummaryrefslogtreecommitdiffstats
path: root/testsuite/sanity
diff options
context:
space:
mode:
authorTristan Gingold <tgingold@free.fr>2019-05-25 07:57:15 +0200
committerTristan Gingold <tgingold@free.fr>2019-05-25 07:57:15 +0200
commit5d0f5bd7ce8ea929d5f5583c064f30ea185462a7 (patch)
tree827a2073eb8e703a25bc03f45e5971ab742b6ea2 /testsuite/sanity
parentfb6994aec01818bd2096fd0bc12382fb6db8c78f (diff)
downloadghdl-5d0f5bd7ce8ea929d5f5583c064f30ea185462a7.tar.gz
ghdl-5d0f5bd7ce8ea929d5f5583c064f30ea185462a7.tar.bz2
ghdl-5d0f5bd7ce8ea929d5f5583c064f30ea185462a7.zip
sanity/004all08: test --reprint
Diffstat (limited to 'testsuite/sanity')
-rwxr-xr-xtestsuite/sanity/004all08/testsuite.sh16
1 files changed, 16 insertions, 0 deletions
diff --git a/testsuite/sanity/004all08/testsuite.sh b/testsuite/sanity/004all08/testsuite.sh
index 0b908aade..3be90ebc3 100755
--- a/testsuite/sanity/004all08/testsuite.sh
+++ b/testsuite/sanity/004all08/testsuite.sh
@@ -11,6 +11,22 @@ fi
GHDL_STD_FLAGS="--std=08"
analyze all08.vhdl
+# Test reprint
+$GHDL --reprint --std=08 all08.vhdl > all08.out
+$GHDL --compare-tokens --std=08 all08.out all08.vhdl
+
+# Test reprint --no-sem
+$GHDL --reprint --std=08 --no-sem all08.vhdl > all08.out
+$GHDL --compare-tokens --std=08 all08.vhdl all08.out
+
+rm -f all08.out
+
+# Test reprint ams (no-sem)
+$GHDL --reprint --ams --no-sem ams08.vhdl > ams08.out
+$GHDL --compare-tokens --ams ams08.out ams08.vhdl
+
+rm -f ams08.out
+
clean
echo "test successful"