aboutsummaryrefslogtreecommitdiffstats
path: root/testsuite/gna/issue672/testsuite.sh
blob: fb7eaa96bfd4576b5cf726463c1d8b5a141a6477 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
#! /bin/sh

. ../../testenv.sh

analyze SQR.vhd SQRTb.vhd
elab sqrtb
simulate sqrtb --stop-time=1us

if ! simulate --time-resolution=fs sqrtb --stop-time=1us; then
    echo "skip --time-resolution tests"
else
    simulate --time-resolution=ns sqrtb --stop-time=1us --disp-time | sed -e 's/.*info/info/' > sqrtb.out
    diff --strip-trailing-cr sqrtb.ref sqrtb.out
fi

rm -f sqrtb.out
clean

echo "Test successful"