Add regression tests for `begin_keywords` versions
Check that each valid `begin_keywords` selector is accepted. Only check that the selector itself is accepted, in these tests there is no check if the correct keywords are actually accepted or rejected since that would get pretty exhaustive. Signed-off-by: Lars-Peter Clausen <lars@metafoo.de>
This commit is contained in:
parent
eadb1d24ae
commit
0a6fa449de
|
|
@ -0,0 +1,9 @@
|
|||
// Check that `begin_keywords accepts the 1364-1995 keyword set.
|
||||
|
||||
`begin_keywords "1364-1995"
|
||||
module test;
|
||||
initial begin
|
||||
$display("PASSED");
|
||||
end
|
||||
endmodule
|
||||
`end_keywords
|
||||
|
|
@ -0,0 +1,9 @@
|
|||
// Check that `begin_keywords accepts the 1364-2001 keyword set.
|
||||
|
||||
`begin_keywords "1364-2001"
|
||||
module test;
|
||||
initial begin
|
||||
$display("PASSED");
|
||||
end
|
||||
endmodule
|
||||
`end_keywords
|
||||
|
|
@ -0,0 +1,9 @@
|
|||
// Check that `begin_keywords accepts the 1364-2001-noconfig keyword set.
|
||||
|
||||
`begin_keywords "1364-2001-noconfig"
|
||||
module test;
|
||||
initial begin
|
||||
$display("PASSED");
|
||||
end
|
||||
endmodule
|
||||
`end_keywords
|
||||
|
|
@ -0,0 +1,9 @@
|
|||
// Check that `begin_keywords accepts the 1364-2005 keyword set.
|
||||
|
||||
`begin_keywords "1364-2005"
|
||||
module test;
|
||||
initial begin
|
||||
$display("PASSED");
|
||||
end
|
||||
endmodule
|
||||
`end_keywords
|
||||
|
|
@ -0,0 +1,9 @@
|
|||
// Check that `begin_keywords accepts the 1800-2005 keyword set.
|
||||
|
||||
`begin_keywords "1800-2005"
|
||||
module test;
|
||||
initial begin
|
||||
$display("PASSED");
|
||||
end
|
||||
endmodule
|
||||
`end_keywords
|
||||
|
|
@ -0,0 +1,9 @@
|
|||
// Check that `begin_keywords accepts the 1800-2009 keyword set.
|
||||
|
||||
`begin_keywords "1800-2009"
|
||||
module test;
|
||||
initial begin
|
||||
$display("PASSED");
|
||||
end
|
||||
endmodule
|
||||
`end_keywords
|
||||
|
|
@ -0,0 +1,9 @@
|
|||
// Check that `begin_keywords accepts the 1800-2012 keyword set.
|
||||
|
||||
`begin_keywords "1800-2012"
|
||||
module test;
|
||||
initial begin
|
||||
$display("PASSED");
|
||||
end
|
||||
endmodule
|
||||
`end_keywords
|
||||
|
|
@ -0,0 +1,9 @@
|
|||
// Check that `begin_keywords accepts the 1800-2017 keyword set.
|
||||
|
||||
`begin_keywords "1800-2017"
|
||||
module test;
|
||||
initial begin
|
||||
$display("PASSED");
|
||||
end
|
||||
endmodule
|
||||
`end_keywords
|
||||
|
|
@ -0,0 +1,9 @@
|
|||
// Check that `begin_keywords accepts the 1800-2023 keyword set.
|
||||
|
||||
`begin_keywords "1800-2023"
|
||||
module test;
|
||||
initial begin
|
||||
$display("PASSED");
|
||||
end
|
||||
endmodule
|
||||
`end_keywords
|
||||
|
|
@ -0,0 +1,9 @@
|
|||
// Check that `begin_keywords accepts the VAMS-2.3 keyword set.
|
||||
|
||||
`begin_keywords "VAMS-2.3"
|
||||
module test;
|
||||
initial begin
|
||||
$display("PASSED");
|
||||
end
|
||||
endmodule
|
||||
`end_keywords
|
||||
|
|
@ -14,6 +14,16 @@ array_slice_concat vvp_tests/array_slice_concat.json
|
|||
automatic_error11 vvp_tests/automatic_error11.json
|
||||
automatic_error12 vvp_tests/automatic_error12.json
|
||||
automatic_error13 vvp_tests/automatic_error13.json
|
||||
begin_keywords_1364_1995 vvp_tests/begin_keywords_1364_1995.json
|
||||
begin_keywords_1364_2001 vvp_tests/begin_keywords_1364_2001.json
|
||||
begin_keywords_1364_2001_noconfig vvp_tests/begin_keywords_1364_2001_noconfig.json
|
||||
begin_keywords_1364_2005 vvp_tests/begin_keywords_1364_2005.json
|
||||
begin_keywords_1800_2005 vvp_tests/begin_keywords_1800_2005.json
|
||||
begin_keywords_1800_2009 vvp_tests/begin_keywords_1800_2009.json
|
||||
begin_keywords_1800_2012 vvp_tests/begin_keywords_1800_2012.json
|
||||
begin_keywords_1800_2017 vvp_tests/begin_keywords_1800_2017.json
|
||||
begin_keywords_1800_2023 vvp_tests/begin_keywords_1800_2023.json
|
||||
begin_keywords_vams_2_3 vvp_tests/begin_keywords_vams_2_3.json
|
||||
bits4 vvp_tests/bits4.json
|
||||
bitsel11 vvp_tests/bitsel11.json
|
||||
br_gh13a vvp_tests/br_gh13a.json
|
||||
|
|
|
|||
|
|
@ -0,0 +1,5 @@
|
|||
{
|
||||
"type" : "normal",
|
||||
"source" : "begin_keywords_1364_1995.v",
|
||||
"iverilog-args" : [ "-g2005-sv" ]
|
||||
}
|
||||
|
|
@ -0,0 +1,5 @@
|
|||
{
|
||||
"type" : "normal",
|
||||
"source" : "begin_keywords_1364_2001.v",
|
||||
"iverilog-args" : [ "-g2005-sv" ]
|
||||
}
|
||||
|
|
@ -0,0 +1,5 @@
|
|||
{
|
||||
"type" : "normal",
|
||||
"source" : "begin_keywords_1364_2001_noconfig.v",
|
||||
"iverilog-args" : [ "-g2005-sv" ]
|
||||
}
|
||||
|
|
@ -0,0 +1,5 @@
|
|||
{
|
||||
"type" : "normal",
|
||||
"source" : "begin_keywords_1364_2005.v",
|
||||
"iverilog-args" : [ "-g2005-sv" ]
|
||||
}
|
||||
|
|
@ -0,0 +1,5 @@
|
|||
{
|
||||
"type" : "normal",
|
||||
"source" : "begin_keywords_1800_2005.v",
|
||||
"iverilog-args" : [ "-g2005-sv" ]
|
||||
}
|
||||
|
|
@ -0,0 +1,5 @@
|
|||
{
|
||||
"type" : "normal",
|
||||
"source" : "begin_keywords_1800_2009.v",
|
||||
"iverilog-args" : [ "-g2009" ]
|
||||
}
|
||||
|
|
@ -0,0 +1,5 @@
|
|||
{
|
||||
"type" : "normal",
|
||||
"source" : "begin_keywords_1800_2012.v",
|
||||
"iverilog-args" : [ "-g2012" ]
|
||||
}
|
||||
|
|
@ -0,0 +1,5 @@
|
|||
{
|
||||
"type" : "normal",
|
||||
"source" : "begin_keywords_1800_2017.v",
|
||||
"iverilog-args" : [ "-g2017" ]
|
||||
}
|
||||
|
|
@ -0,0 +1,5 @@
|
|||
{
|
||||
"type" : "normal",
|
||||
"source" : "begin_keywords_1800_2023.v",
|
||||
"iverilog-args" : [ "-g2023" ]
|
||||
}
|
||||
|
|
@ -0,0 +1,5 @@
|
|||
{
|
||||
"type" : "normal",
|
||||
"source" : "begin_keywords_vams_2_3.v",
|
||||
"iverilog-args" : [ "-g2005-sv", "-gverilog-ams" ]
|
||||
}
|
||||
Loading…
Reference in New Issue