mirror of
https://github.com/openhwgroup/cvw
synced 2025-02-11 06:05:49 +00:00
Update regression with split functional coverage tests
This commit is contained in:
parent
0f3b086e8b
commit
f24f9ee4d1
@ -318,7 +318,8 @@ def addTestsByDir(testDir, config, sim, coverStr, configs, lockstepMode=0, breke
|
|||||||
sim_logdir = f"{regressionDir}/{sim}/logs/"
|
sim_logdir = f"{regressionDir}/{sim}/logs/"
|
||||||
cmdPrefix = f"wsim --sim {sim} {coverStr} {'--lockstep' if lockstepMode else ''} {config}"
|
cmdPrefix = f"wsim --sim {sim} {coverStr} {'--lockstep' if lockstepMode else ''} {config}"
|
||||||
# fcov/ccov only runs on WALLY-COV-ALL.elf files; other lockstep runs on all files
|
# fcov/ccov only runs on WALLY-COV-ALL.elf files; other lockstep runs on all files
|
||||||
fileEnd = "ALL.elf" if "cvw-arch-verif/tests" in testDir and "priv" not in testDir and (coverStr == "--fcov" or coverStr == "--ccov") else ".elf"
|
fileStart = "WALLY-COV-ALL" if "cvw-arch-verif/tests" in testDir and "priv" not in testDir and (coverStr == "--fcov" or coverStr == "--ccov") else ""
|
||||||
|
fileEnd = ".elf"
|
||||||
if lockstepMode or coverStr == "--fcov":
|
if lockstepMode or coverStr == "--fcov":
|
||||||
gs = "Mismatches : 0"
|
gs = "Mismatches : 0"
|
||||||
elif brekerMode:
|
elif brekerMode:
|
||||||
@ -327,7 +328,7 @@ def addTestsByDir(testDir, config, sim, coverStr, configs, lockstepMode=0, breke
|
|||||||
gs = "Single Elf file tests are not signatured verified."
|
gs = "Single Elf file tests are not signatured verified."
|
||||||
for dirpath, _, filenames in os.walk(os.path.abspath(testDir)):
|
for dirpath, _, filenames in os.walk(os.path.abspath(testDir)):
|
||||||
for file in filenames:
|
for file in filenames:
|
||||||
if file.endswith(fileEnd):
|
if file.endswith(fileEnd) and file.startswith(fileStart):
|
||||||
fullfile = os.path.join(dirpath, file)
|
fullfile = os.path.join(dirpath, file)
|
||||||
fields = fullfile.rsplit('/', 3)
|
fields = fullfile.rsplit('/', 3)
|
||||||
if fields[2] == "ref":
|
if fields[2] == "ref":
|
||||||
|
Loading…
Reference in New Issue
Block a user