Commit 4feef64e authored by Ille, Ondrej, Ing.'s avatar Ille, Ondrej, Ing.

test: Add proper sanity test name formatting.

parent fc2113a0
Pipeline #6197 passed with stages
in 14 minutes and 25 seconds
......@@ -62,7 +62,6 @@ class TestsBase:
'''.format(name)), file=f)
tb.set_sim_option("modelsim.init_file.gui", str(tcl))
def add_sources(lib, patterns) -> None:
for pattern in patterns:
p = join(str(d.parent), pattern)
......
......@@ -42,8 +42,15 @@ class SanityTests(TestsBase):
def add_sources(self):
add_sources(self.lib, ['sanity/**/*.vhd'])
def format_valid_test_name(self, name):
valid_name = name.replace(" ", '_')
valid_name = valid_name.replace("/", "_")
valid_name = valid_name.replace("", "_")
return valid_name
def create_psl_cov_file_opt(self, name):
psl_path = "functional_coverage/coverage_data/psl_cov_sanity_{}.json".format(name)
test_name = self.format_valid_test_name("psl_cov_sanity_{}.json".format(name))
psl_path = "functional_coverage/coverage_data/{}".format(test_name)
psl_flag = "--psl-report={}".format(psl_path)
return {"ghdl.sim_flags" : [psl_flag]}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment