aboutsummaryrefslogtreecommitdiffstats
path: root/testsuite/gna/ticket37/testsuite.sh
blob: f662f71176d8b3ff4a18ebce058ef67cfa18abd2 (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
33
34
35
36
37
38
39
40
41
42
#! /bin/sh

. ../../testenv.sh

analyze dispgen.vhdl
elab_simulate dispgen

elab_simulate dispgen -gstr=Hello

analyze genint.vhdl
elab_simulate_failure genint

simulate genint -gVAL=9
simulate genint -gVal=-159

simulate_failure genint -gval=200

analyze genchar.vhdl
elab_simulate_failure genchar

simulate genchar -gVAL=ack
simulate genchar -gVAL="'A'"
simulate genchar -gVAL="'z'"
simulate_failure genchar -gVAL="'0'"
simulate_failure genchar -gVAL=A

analyze genbool.vhdl
elab_simulate_failure genbool

simulate genbool -gval=true
simulate genbool -gval=" True"

analyze genlogic.vhdl
elab_simulate_failure genlogic

simulate genlogic -gvaL="'1'"
simulate genlogic -gvaL="'H'"
simulate_failure genlogic -gvaL="'L'"

clean

echo "Test successful"