From 151c5b6a1d22c1b2421d255f4f16f3ec97ab0760 Mon Sep 17 00:00:00 2001 From: Wilson Snyder Date: Sun, 10 Nov 2024 20:00:16 -0500 Subject: [PATCH] Tests: Rename some tests --- .../t/{t_f_bad.out => t_flag_f_bad.out} | 0 .../t/{t_f_bad.py => t_flag_f_bad.py} | 0 test_regress/t/t_package_identifier_bad.out | 5 +++++ ...ier_bad.py => t_package_identifier_bad.py} | 0 ...ifier_bad.v => t_package_identifier_bad.v} | 6 +++--- ...tems.py => t_package_using_dollar_unit.py} | 0 ..._items.v => t_package_using_dollar_unit.v} | 0 test_regress/t/t_pkg_identifier_bad.out | 5 ----- ..._assign_sbw.cpp => t_sc_vl_assign_sbw.cpp} | 0 ...vl_assign_sbw.py => t_sc_vl_assign_sbw.py} | 0 ...t_vl_assign_sbw.v => t_sc_vl_assign_sbw.v} | 0 ...e_deep.py => t_timing_suspendable_deep.py} | 0 ...ble_deep.v => t_timing_suspendable_deep.v} | 0 ...waivers.py => t_waiveroutput_multiline.py} | 0 ...e_waivers.v => t_waiveroutput_multiline.v} | 0 test_regress/t/t_width_docs_bad.v | 19 ------------------- 16 files changed, 8 insertions(+), 27 deletions(-) rename test_regress/t/{t_f_bad.out => t_flag_f_bad.out} (100%) rename test_regress/t/{t_f_bad.py => t_flag_f_bad.py} (100%) create mode 100644 test_regress/t/t_package_identifier_bad.out rename test_regress/t/{t_pkg_identifier_bad.py => t_package_identifier_bad.py} (100%) rename test_regress/t/{t_pkg_identifier_bad.v => t_package_identifier_bad.v} (83%) rename test_regress/t/{t_pkg_using_dollar_unit_items.py => t_package_using_dollar_unit.py} (100%) rename test_regress/t/{t_pkg_using_dollar_unit_items.v => t_package_using_dollar_unit.v} (100%) delete mode 100644 test_regress/t/t_pkg_identifier_bad.out rename test_regress/t/{t_vl_assign_sbw.cpp => t_sc_vl_assign_sbw.cpp} (100%) rename test_regress/t/{t_vl_assign_sbw.py => t_sc_vl_assign_sbw.py} (100%) rename test_regress/t/{t_vl_assign_sbw.v => t_sc_vl_assign_sbw.v} (100%) rename test_regress/t/{t_suspendable_deep.py => t_timing_suspendable_deep.py} (100%) rename test_regress/t/{t_suspendable_deep.v => t_timing_suspendable_deep.v} (100%) rename test_regress/t/{t_multiline_waivers.py => t_waiveroutput_multiline.py} (100%) rename test_regress/t/{t_multiline_waivers.v => t_waiveroutput_multiline.v} (100%) delete mode 100644 test_regress/t/t_width_docs_bad.v diff --git a/test_regress/t/t_f_bad.out b/test_regress/t/t_flag_f_bad.out similarity index 100% rename from test_regress/t/t_f_bad.out rename to test_regress/t/t_flag_f_bad.out diff --git a/test_regress/t/t_f_bad.py b/test_regress/t/t_flag_f_bad.py similarity index 100% rename from test_regress/t/t_f_bad.py rename to test_regress/t/t_flag_f_bad.py diff --git a/test_regress/t/t_package_identifier_bad.out b/test_regress/t/t_package_identifier_bad.out new file mode 100644 index 000000000..6097d0e73 --- /dev/null +++ b/test_regress/t/t_package_identifier_bad.out @@ -0,0 +1,5 @@ +%Error-PKGNODECL: t/t_package_identifier_bad.v:15:20: Package/class 'Bar' not found, and needs to be predeclared (IEEE 1800-2023 26.3) + 15 | int baz = Foo::Bar::baz; + | ^~~ + ... For error description see https://verilator.org/warn/PKGNODECL?v=latest +%Error: Exiting due to diff --git a/test_regress/t/t_pkg_identifier_bad.py b/test_regress/t/t_package_identifier_bad.py similarity index 100% rename from test_regress/t/t_pkg_identifier_bad.py rename to test_regress/t/t_package_identifier_bad.py diff --git a/test_regress/t/t_pkg_identifier_bad.v b/test_regress/t/t_package_identifier_bad.v similarity index 83% rename from test_regress/t/t_pkg_identifier_bad.v rename to test_regress/t/t_package_identifier_bad.v index a3cd4a068..a3457cee5 100644 --- a/test_regress/t/t_pkg_identifier_bad.v +++ b/test_regress/t/t_package_identifier_bad.v @@ -4,13 +4,13 @@ // any use, without warranty, 2023 by Antmicro Ltd. // SPDX-License-Identifier: CC0-1.0 -package foo; +package Foo; endpackage -package bar; +package Bar; static int baz; endpackage module t; - int baz = foo::bar::baz; + int baz = Foo::Bar::baz; endmodule diff --git a/test_regress/t/t_pkg_using_dollar_unit_items.py b/test_regress/t/t_package_using_dollar_unit.py similarity index 100% rename from test_regress/t/t_pkg_using_dollar_unit_items.py rename to test_regress/t/t_package_using_dollar_unit.py diff --git a/test_regress/t/t_pkg_using_dollar_unit_items.v b/test_regress/t/t_package_using_dollar_unit.v similarity index 100% rename from test_regress/t/t_pkg_using_dollar_unit_items.v rename to test_regress/t/t_package_using_dollar_unit.v diff --git a/test_regress/t/t_pkg_identifier_bad.out b/test_regress/t/t_pkg_identifier_bad.out deleted file mode 100644 index b05993a11..000000000 --- a/test_regress/t/t_pkg_identifier_bad.out +++ /dev/null @@ -1,5 +0,0 @@ -%Error-PKGNODECL: t/t_pkg_identifier_bad.v:15:20: Package/class 'bar' not found, and needs to be predeclared (IEEE 1800-2023 26.3) - 15 | int baz = foo::bar::baz; - | ^~~ - ... For error description see https://verilator.org/warn/PKGNODECL?v=latest -%Error: Exiting due to diff --git a/test_regress/t/t_vl_assign_sbw.cpp b/test_regress/t/t_sc_vl_assign_sbw.cpp similarity index 100% rename from test_regress/t/t_vl_assign_sbw.cpp rename to test_regress/t/t_sc_vl_assign_sbw.cpp diff --git a/test_regress/t/t_vl_assign_sbw.py b/test_regress/t/t_sc_vl_assign_sbw.py similarity index 100% rename from test_regress/t/t_vl_assign_sbw.py rename to test_regress/t/t_sc_vl_assign_sbw.py diff --git a/test_regress/t/t_vl_assign_sbw.v b/test_regress/t/t_sc_vl_assign_sbw.v similarity index 100% rename from test_regress/t/t_vl_assign_sbw.v rename to test_regress/t/t_sc_vl_assign_sbw.v diff --git a/test_regress/t/t_suspendable_deep.py b/test_regress/t/t_timing_suspendable_deep.py similarity index 100% rename from test_regress/t/t_suspendable_deep.py rename to test_regress/t/t_timing_suspendable_deep.py diff --git a/test_regress/t/t_suspendable_deep.v b/test_regress/t/t_timing_suspendable_deep.v similarity index 100% rename from test_regress/t/t_suspendable_deep.v rename to test_regress/t/t_timing_suspendable_deep.v diff --git a/test_regress/t/t_multiline_waivers.py b/test_regress/t/t_waiveroutput_multiline.py similarity index 100% rename from test_regress/t/t_multiline_waivers.py rename to test_regress/t/t_waiveroutput_multiline.py diff --git a/test_regress/t/t_multiline_waivers.v b/test_regress/t/t_waiveroutput_multiline.v similarity index 100% rename from test_regress/t/t_multiline_waivers.v rename to test_regress/t/t_waiveroutput_multiline.v diff --git a/test_regress/t/t_width_docs_bad.v b/test_regress/t/t_width_docs_bad.v deleted file mode 100644 index 13ed51756..000000000 --- a/test_regress/t/t_width_docs_bad.v +++ /dev/null @@ -1,19 +0,0 @@ -// DESCRIPTION: Verilator: Verilog Test module -// -// This file ONLY is placed under the Creative Commons Public Domain, for -// any use, without warranty, 2009 by Wilson Snyder. -// SPDX-License-Identifier: CC0-1.0 - -module t; - int array[5]; - bit [1:0] rd_addr; - wire int rd_value = read_array[rd_addr]; //<--- Warning - - ok ok(); -endmodule - -module ok; - int array[5]; - bit [1:0] rd_addr; - wire int rd_value = read_array[{1'b0, rd_addr}]; //<--- Fixed -endmodule;