From f5d6578a062f1af9c3508ed26b0f7edff04b1a01 Mon Sep 17 00:00:00 2001 From: Tristan Gingold Date: Fri, 18 Mar 2016 05:26:29 +0100 Subject: Add testcase for ticket24 --- testsuite/gna/ticket24/testsuite.sh | 24 ++++++++++++++++++++++++ 1 file changed, 24 insertions(+) create mode 100755 testsuite/gna/ticket24/testsuite.sh (limited to 'testsuite/gna/ticket24/testsuite.sh') diff --git a/testsuite/gna/ticket24/testsuite.sh b/testsuite/gna/ticket24/testsuite.sh new file mode 100755 index 000000000..96b37c948 --- /dev/null +++ b/testsuite/gna/ticket24/testsuite.sh @@ -0,0 +1,24 @@ +#! /bin/sh + +. ../../testenv.sh + +analyze -fpsl psl.vhdl +elab_simulate -fpsl psl --psl-report=psl.out + +if ! cmp psl.out psl.ref; then + echo "report mismatch" + exit 1 +fi + +# Usage example (python 2.7): +# +# import json +# d=json.load(open("psl.out")) +# print d['summary'] +# {u'assert-pass': 2, u'cover': 1, ... } +# print d['summary']['assert'] + +rm -f psl.out +clean + +echo "Test successful" -- cgit v1.2.3