aboutsummaryrefslogtreecommitdiffstats
path: root/testsuite/sanity/004all08/testsuite.sh
blob: 3be90ebc35a720d2a25b05f9076a0773dbc5e140 (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
27
28
29
30
31
32
#!/bin/sh

if [ "$ISGPL" = "true" ]; then
    # std_logic_1164 not available in openieee.
    echo "test skipped"
    exit 0
fi

. ../../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"