aboutsummaryrefslogtreecommitdiffstats
path: root/testsuite/gna/issue672/testsuite.sh
diff options
context:
space:
mode:
Diffstat (limited to 'testsuite/gna/issue672/testsuite.sh')
-rwxr-xr-xtestsuite/gna/issue672/testsuite.sh19
1 files changed, 19 insertions, 0 deletions
diff --git a/testsuite/gna/issue672/testsuite.sh b/testsuite/gna/issue672/testsuite.sh
new file mode 100755
index 000000000..fb7eaa96b
--- /dev/null
+++ b/testsuite/gna/issue672/testsuite.sh
@@ -0,0 +1,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"