44#
55# Copyright (c) 2014-2026, Lars Asplund lars.anders.asplund@gmail.com
66
7+ import sys
78from pathlib import Path
89from glob import glob
910from vunit import VUnit , VUnitCLI
@@ -164,6 +165,7 @@ def pre_config(output_path):
164165 for idx , (extra_time , fail ) in enumerate ([(5 , False ), (2 , True )], 1 ):
165166 tb .add_config (name = f"test_{ idx } " , pre_config = make_pre_config (idx , extra_time , fail ))
166167
168+
167169def configure_tb_seed (ui ):
168170 tb = ui .library ("lib" ).test_bench ("tb_seed" )
169171
@@ -174,6 +176,12 @@ def configure_tb_seed(ui):
174176 tb .test ("test_1" ).set_generic ("expected_seed" , "ffa08cd9489aad14" )
175177 tb .test ("test_2" ).set_generic ("expected_seed" , "9a292b3679afd081" )
176178
179+
180+ def configure_tb_vunit_pkg (vu ):
181+ sys .path .append (str (root .parent / "vunit_pkg" ))
182+ vu .add_package ("foo" )
183+
184+
177185configure_tb_with_generic_config ()
178186configure_tb_same_sim_all_pass (vu )
179187configure_tb_set_generic (vu )
@@ -182,6 +190,7 @@ def configure_tb_seed(ui):
182190configure_tb_no_fail_on_warning (vu )
183191configure_tb_test_prio (vu )
184192configure_tb_seed (vu )
193+ configure_tb_vunit_pkg (vu )
185194lib .entity ("tb_no_generic_override" ).set_generic ("g_val" , False )
186195lib .entity ("tb_ieee_warning" ).test ("pass" ).set_sim_option ("disable_ieee_warnings" , True )
187196lib .entity ("tb_other_file_tests" ).scan_tests_from_file (str (root / "other_file_tests.vhd" ))
0 commit comments