From 6a36bd85148c4ec04a74e6d30e4eb1fa4427bcc1 Mon Sep 17 00:00:00 2001 From: Wilson Snyder Date: Wed, 15 Jul 2009 10:14:10 -0400 Subject: [PATCH] Add env var test --- test_regress/t/t_flag_f.v | 3 +++ test_regress/t/t_flag_f.vc | 2 ++ test_regress/t/t_flag_f__3.v | 1 + 3 files changed, 6 insertions(+) create mode 100644 test_regress/t/t_flag_f__3.v diff --git a/test_regress/t/t_flag_f.v b/test_regress/t/t_flag_f.v index 09e3f50d1..7a0567f11 100644 --- a/test_regress/t/t_flag_f.v +++ b/test_regress/t/t_flag_f.v @@ -8,6 +8,9 @@ module t; `ifndef GOT_DEF2 $write("%%Error: NO GOT_DEF2\n"); $stop; `endif +`ifndef GOT_DEF3 + $write("%%Error: NO GOT_DEF3\n"); $stop; +`endif `ifdef NON_DEF $write("%%Error: NON_DEF\n"); $stop; `endif diff --git a/test_regress/t/t_flag_f.vc b/test_regress/t/t_flag_f.vc index 85f8a54bf..ca57b7f69 100644 --- a/test_regress/t/t_flag_f.vc +++ b/test_regress/t/t_flag_f.vc @@ -1,2 +1,4 @@ // Test that environment substitutions work -f $VERILATOR_ROOT/test_regress/t/t_flag_f__2.vc +// Env var with .v file +$VERILATOR_ROOT/test_regress/t/t_flag_f__3.v diff --git a/test_regress/t/t_flag_f__3.v b/test_regress/t/t_flag_f__3.v new file mode 100644 index 000000000..ccbf69772 --- /dev/null +++ b/test_regress/t/t_flag_f__3.v @@ -0,0 +1 @@ +`define GOT_DEF3 1