From 2e911bc806d0a54e4d7e84ef2218ff088ea20b5f Mon Sep 17 00:00:00 2001 From: Eddie Hung Date: Mon, 4 May 2020 12:18:02 -0700 Subject: test: add failing test --- tests/verilog/upto.ys | 5 +++++ 1 file changed, 5 insertions(+) create mode 100644 tests/verilog/upto.ys (limited to 'tests/verilog') diff --git a/tests/verilog/upto.ys b/tests/verilog/upto.ys new file mode 100644 index 000000000..d87f4424e --- /dev/null +++ b/tests/verilog/upto.ys @@ -0,0 +1,5 @@ +read_verilog < Date: Tue, 5 May 2020 08:01:27 -0700 Subject: techlibs/common: more robustness when *_WIDTH = 0 --- tests/verilog/upto.ys | 1 - 1 file changed, 1 deletion(-) (limited to 'tests/verilog') diff --git a/tests/verilog/upto.ys b/tests/verilog/upto.ys index d87f4424e..2f3394761 100644 --- a/tests/verilog/upto.ys +++ b/tests/verilog/upto.ys @@ -2,4 +2,3 @@ read_verilog < Date: Mon, 11 May 2020 10:30:20 -0700 Subject: Setup tests/verilog properly --- tests/verilog/.gitignore | 3 +++ tests/verilog/run-test.sh | 20 ++++++++++++++++++++ 2 files changed, 23 insertions(+) create mode 100644 tests/verilog/.gitignore create mode 100755 tests/verilog/run-test.sh (limited to 'tests/verilog') diff --git a/tests/verilog/.gitignore b/tests/verilog/.gitignore new file mode 100644 index 000000000..b48f808a1 --- /dev/null +++ b/tests/verilog/.gitignore @@ -0,0 +1,3 @@ +/*.log +/*.out +/run-test.mk diff --git a/tests/verilog/run-test.sh b/tests/verilog/run-test.sh new file mode 100755 index 000000000..ea56b70f0 --- /dev/null +++ b/tests/verilog/run-test.sh @@ -0,0 +1,20 @@ +#!/usr/bin/env bash +set -e +{ +echo "all::" +for x in *.ys; do + echo "all:: run-$x" + echo "run-$x:" + echo " @echo 'Running $x..'" + echo " @../../yosys -ql ${x%.ys}.log $x" +done +for s in *.sh; do + if [ "$s" != "run-test.sh" ]; then + echo "all:: run-$s" + echo "run-$s:" + echo " @echo 'Running $s..'" + echo " @bash $s" + fi +done +} > run-test.mk +exec ${MAKE:-make} -f run-test.mk -- cgit v1.2.3 From e5ce5a4fd532f35cf8dd625b97aa426e4661e119 Mon Sep 17 00:00:00 2001 From: Eddie Hung Date: Mon, 11 May 2020 11:05:19 -0700 Subject: tests: add #2042 testcase --- tests/verilog/bug2042.ys | 12 ++++++++++++ 1 file changed, 12 insertions(+) create mode 100644 tests/verilog/bug2042.ys (limited to 'tests/verilog') diff --git a/tests/verilog/bug2042.ys b/tests/verilog/bug2042.ys new file mode 100644 index 000000000..009e2c20c --- /dev/null +++ b/tests/verilog/bug2042.ys @@ -0,0 +1,12 @@ +logger -expect error "Non-ANSI style task/function arguments not currently supported" 1 +read_verilog < Date: Wed, 13 May 2020 10:11:45 -0700 Subject: tests: update/extend task argument tests --- tests/verilog/bug2042-sv.ys | 34 ++++++++++++++++++++++++++++++++++ tests/verilog/bug2042.ys | 3 +-- 2 files changed, 35 insertions(+), 2 deletions(-) create mode 100644 tests/verilog/bug2042-sv.ys (limited to 'tests/verilog') diff --git a/tests/verilog/bug2042-sv.ys b/tests/verilog/bug2042-sv.ys new file mode 100644 index 000000000..9a0d419c8 --- /dev/null +++ b/tests/verilog/bug2042-sv.ys @@ -0,0 +1,34 @@ +read_verilog -sv < Date: Thu, 14 May 2020 08:36:36 -0700 Subject: test: add another testcase as per @nakengelhardt --- tests/verilog/bug2042-sv.ys | 25 +++++++++++++++++++++++++ 1 file changed, 25 insertions(+) (limited to 'tests/verilog') diff --git a/tests/verilog/bug2042-sv.ys b/tests/verilog/bug2042-sv.ys index 9a0d419c8..e815d7fc5 100644 --- a/tests/verilog/bug2042-sv.ys +++ b/tests/verilog/bug2042-sv.ys @@ -20,6 +20,31 @@ proc sat -verify -prove-asserts +design -reset +read_verilog -sv < Date: Thu, 14 May 2020 16:09:41 -0700 Subject: tests: attributes before task enable --- tests/verilog/task_attr.ys | 28 ++++++++++++++++++++++++++++ 1 file changed, 28 insertions(+) create mode 100644 tests/verilog/task_attr.ys (limited to 'tests/verilog') diff --git a/tests/verilog/task_attr.ys b/tests/verilog/task_attr.ys new file mode 100644 index 000000000..d6e75f85f --- /dev/null +++ b/tests/verilog/task_attr.ys @@ -0,0 +1,28 @@ +read_verilog < Date: Mon, 11 May 2020 09:33:11 -0700 Subject: tests: add #2037 testcase --- tests/verilog/bug2037.ys | 9 +++++++++ 1 file changed, 9 insertions(+) create mode 100644 tests/verilog/bug2037.ys (limited to 'tests/verilog') diff --git a/tests/verilog/bug2037.ys b/tests/verilog/bug2037.ys new file mode 100644 index 000000000..afe92022e --- /dev/null +++ b/tests/verilog/bug2037.ys @@ -0,0 +1,9 @@ +logger -expect warning "Attribute\(s\) attached to null statement\. Ignoring\." 1 +logger -expect-no-warnings +read_verilog < Date: Mon, 11 May 2020 10:26:08 -0700 Subject: tests: add an generate-else test too --- tests/verilog/bug2037.ys | 34 ++++++++++++++++++++++++++++++++++ 1 file changed, 34 insertions(+) (limited to 'tests/verilog') diff --git a/tests/verilog/bug2037.ys b/tests/verilog/bug2037.ys index afe92022e..42c4b8f5d 100644 --- a/tests/verilog/bug2037.ys +++ b/tests/verilog/bug2037.ys @@ -7,3 +7,37 @@ module test (); if (y) (* foo *) ; endmodule EOT + + +design -reset +logger -expect warning "Attribute\(s\) attached to null statement\. Ignoring\." 3 # cumulative +logger -expect-no-warnings +read_verilog < Date: Thu, 14 May 2020 10:46:40 -0700 Subject: verilog: do not warn for attributes on null statements --- tests/verilog/bug2037.ys | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) (limited to 'tests/verilog') diff --git a/tests/verilog/bug2037.ys b/tests/verilog/bug2037.ys index 42c4b8f5d..eb4f0fac4 100644 --- a/tests/verilog/bug2037.ys +++ b/tests/verilog/bug2037.ys @@ -1,4 +1,3 @@ -logger -expect warning "Attribute\(s\) attached to null statement\. Ignoring\." 1 logger -expect-no-warnings read_verilog < Date: Thu, 14 May 2020 16:32:14 -0700 Subject: test: add attribute-before-stmt test from @nakengelhardt --- tests/verilog/bug2037.ys | 15 +++++++++++++++ 1 file changed, 15 insertions(+) (limited to 'tests/verilog') diff --git a/tests/verilog/bug2037.ys b/tests/verilog/bug2037.ys index eb4f0fac4..4b629ba92 100644 --- a/tests/verilog/bug2037.ys +++ b/tests/verilog/bug2037.ys @@ -41,3 +41,18 @@ module test (); endmodule EOT select -assert-none a:* + + +design -reset +read_verilog < Date: Mon, 25 May 2020 10:07:58 -0700 Subject: tests: fix some test warnings --- tests/verilog/bug2042-sv.ys | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'tests/verilog') diff --git a/tests/verilog/bug2042-sv.ys b/tests/verilog/bug2042-sv.ys index e815d7fc5..91989f412 100644 --- a/tests/verilog/bug2042-sv.ys +++ b/tests/verilog/bug2042-sv.ys @@ -2,7 +2,7 @@ read_verilog -sv <