mirror of
https://github.com/openhwgroup/cvw
synced 2025-02-11 06:05:49 +00:00
regression --nightly --buildroot runs buildroot boot in Verilator all the way to login prompt and checks success
This commit is contained in:
parent
38b0c10f9b
commit
a0729d074b
@ -692,7 +692,7 @@ def main():
|
|||||||
|
|
||||||
# Define tests that we can run
|
# Define tests that we can run
|
||||||
if (args.tests == "nightly"):
|
if (args.tests == "nightly"):
|
||||||
test_list = [["python", "regression-wally", "--nightly"]]
|
test_list = [["python", "regression-wally", "--nightly --buildroot"]]
|
||||||
elif (args.tests == "test"):
|
elif (args.tests == "test"):
|
||||||
test_list = [["python", "regression-wally", ""]]
|
test_list = [["python", "regression-wally", ""]]
|
||||||
elif (args.tests == "test_lint"):
|
elif (args.tests == "test_lint"):
|
||||||
|
@ -170,7 +170,7 @@ derivconfigtests = [
|
|||||||
["fh_rv64gc", ["arch64f", "arch64f_divsqrt", "arch64f_fma", "arch64zfh", "arch64zfh_divsqrt", "arch64zfaf"]],
|
["fh_rv64gc", ["arch64f", "arch64f_divsqrt", "arch64f_fma", "arch64zfh", "arch64zfh_divsqrt", "arch64zfaf"]],
|
||||||
["fdh_rv64gc", ["arch64f", "arch64f_divsqrt", "arch64f_fma", "arch64d", "arch64d_divsqrt", "arch64d_fma", "arch64zfh", "arch64zfh_divsqrt", "arch64zfaf", "arch64zfad"]],
|
["fdh_rv64gc", ["arch64f", "arch64f_divsqrt", "arch64f_fma", "arch64d", "arch64d_divsqrt", "arch64d_fma", "arch64zfh", "arch64zfh_divsqrt", "arch64zfaf", "arch64zfad"]],
|
||||||
["fdq_rv64gc", ["arch64f", "arch64f_divsqrt", "arch64f_fma", "arch64d", "arch64d_divsqrt", "arch64d_fma", "arch64i", "arch64zfaf", "arch64zfad"]],
|
["fdq_rv64gc", ["arch64f", "arch64f_divsqrt", "arch64f_fma", "arch64d", "arch64d_divsqrt", "arch64d_fma", "arch64i", "arch64zfaf", "arch64zfad"]],
|
||||||
["fdqh_rv64gc", ["arch64f", "arch64f_divsqrt", "arch64f_fma", "arch64d", "arch64d_divsqrt", "arch64d_fma", "arch64zfh", "arch64zfh_divsqrt", "arch64i", "wally64q", "arch64zfaf", "arch64zfad"]],
|
["fdqh_rv64gc", ["arch64f", "arch64f_divsqrt", "arch64f_fma", "arch64d", "arch64d_divsqrt", "arch64d_fma", "arch64zfh", "arch64zfh_divsqrt", "arch64i", "arch64zfaf", "arch64zfad"]], # "wally64q" when Q is supported again in riscof config file
|
||||||
]
|
]
|
||||||
|
|
||||||
bpredtests = [
|
bpredtests = [
|
||||||
@ -312,7 +312,6 @@ regressionDir = WALLY + '/sim'
|
|||||||
os.chdir(regressionDir)
|
os.chdir(regressionDir)
|
||||||
|
|
||||||
coveragesim = "questa" # Questa is required for code/functional coverage
|
coveragesim = "questa" # Questa is required for code/functional coverage
|
||||||
#defaultsim = "vcs" # Default simulator for all other tests; change to Verilator when flow is ready
|
|
||||||
#defaultsim = "questa" # Default simulator for all other tests; change to Verilator when flow is ready
|
#defaultsim = "questa" # Default simulator for all other tests; change to Verilator when flow is ready
|
||||||
defaultsim = "verilator" # Default simulator for all other tests
|
defaultsim = "verilator" # Default simulator for all other tests
|
||||||
|
|
||||||
@ -320,6 +319,7 @@ coverage = '--coverage' in sys.argv
|
|||||||
fp = '--fp' in sys.argv
|
fp = '--fp' in sys.argv
|
||||||
nightly = '--nightly' in sys.argv
|
nightly = '--nightly' in sys.argv
|
||||||
testfloat = '--testfloat' in sys.argv
|
testfloat = '--testfloat' in sys.argv
|
||||||
|
buildroot = '--buildroot' in sys.argv
|
||||||
|
|
||||||
if (nightly):
|
if (nightly):
|
||||||
nightMode = "--nightly";
|
nightMode = "--nightly";
|
||||||
@ -345,12 +345,17 @@ configs = [
|
|||||||
grepfile = WALLY + "/sim/verilator/logs/all_lints.log")
|
grepfile = WALLY + "/sim/verilator/logs/all_lints.log")
|
||||||
]
|
]
|
||||||
|
|
||||||
|
# run full buildroot boot simulation (slow) if buildroot flag is set. Start it early to overlap with other tests
|
||||||
|
if (buildroot):
|
||||||
|
addTests(tests_buildrootboot, defaultsim)
|
||||||
|
|
||||||
if (coverage): # only run RV64GC tests on Questa in coverage mode
|
if (coverage): # only run RV64GC tests on Questa in coverage mode
|
||||||
addTests(tests64gc_nofp, "questa")
|
addTests(tests64gc_nofp, "questa")
|
||||||
if (fp):
|
if (fp):
|
||||||
addTests(tests64gc_fp, "questa")
|
addTests(tests64gc_fp, "questa")
|
||||||
else:
|
else:
|
||||||
for sim in sims:
|
for sim in sims:
|
||||||
|
if (not (buildroot and sim == defaultsim)): # skip shot buildroot sim if running long one
|
||||||
addTests(tests_buildrootshort, sim)
|
addTests(tests_buildrootshort, sim)
|
||||||
addTests(tests, sim)
|
addTests(tests, sim)
|
||||||
addTests(tests64gc_nofp, sim)
|
addTests(tests64gc_nofp, sim)
|
||||||
@ -358,9 +363,9 @@ else:
|
|||||||
|
|
||||||
# run derivative configurations in nightly regression
|
# run derivative configurations in nightly regression
|
||||||
if (nightly):
|
if (nightly):
|
||||||
# addTests(tests_buildrootboot, defaultsim)
|
|
||||||
addTests(derivconfigtests, defaultsim)
|
addTests(derivconfigtests, defaultsim)
|
||||||
|
|
||||||
|
|
||||||
# testfloat tests
|
# testfloat tests
|
||||||
if (testfloat): # for testfloat alone, just run testfloat tests
|
if (testfloat): # for testfloat alone, just run testfloat tests
|
||||||
configs = []
|
configs = []
|
||||||
|
Loading…
Reference in New Issue
Block a user