aboutsummaryrefslogtreecommitdiffstats
path: root/testsuite/sanity/004all08/testsuite.sh
blob: 81d2961b9854ed03664e2b6ec114112e28e41e07 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
#!/bin/sh

. ../../testenv.sh

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"