From d3d39d39d08c93562c6ad0867870578811f879e3 Mon Sep 17 00:00:00 2001 From: David Harris Date: Sat, 6 Apr 2024 11:50:25 -0700 Subject: [PATCH] Buildroot regression passing --- bin/regression-wally | 22 ++++++++-------------- 1 file changed, 8 insertions(+), 14 deletions(-) diff --git a/bin/regression-wally b/bin/regression-wally index 80a884de3..49333107c 100755 --- a/bin/regression-wally +++ b/bin/regression-wally @@ -20,6 +20,7 @@ from multiprocessing import Pool, TimeoutError # Define lists of configurations and tests to run on each configuration ################################## +INSTR_LIMIT = 1000000 # multiple of 100000; 4M is interesting because it gets into the kernel and enabling VM tests = [ ["rv32e", ["arch32e"]], ["rv32i", ["arch32i"]], @@ -30,7 +31,7 @@ tests = [ "arch32zfh_divsqrt", "arch32zfaf", "wally32a", "wally32priv", "wally32periph", "arch32zbkb", "arch32zbkc", "arch32zbkx", "arch32zknd", "arch32zkne", "arch32zknh"]], # "arch32zcb", "arch32zfad", ["rv64i", ["arch64i"]], - ["buildroot", ["buildroot"], "+INSTR_LIMIT=1000000"] + ["buildroot", ["buildroot"], [f"+INSTR_LIMIT={INSTR_LIMIT}"], str(INSTR_LIMIT)+" instructions"] ] # Separate out floating-point tests for RV64 to speed up coverage @@ -220,27 +221,20 @@ def addTests(tests, sim): config = test[0]; suites = test[1]; if (len(test) > 2): - args = " ".join(test[2::]) - #args = str(test[2]) - print("args = ", args) - args = " --args " + args - #cmdPrefix = "wsim -s " + sim + " " + config + " --args " + args - #if(len(test) >= 4 and test[2] == "configOptions"): - # configOptions = test[3] - # cmdPrefix = "vsim > {} -c < {} -c < 3): + gs = test[3] + else: + gs = "All tests ran without failures" cmdPrefix="wsim -s " + sim + " " + config for t in suites: tc = TestCase( name=t, variant=config, - #cmd=cmdPrefix+" "+t+" configOptions "+configOptions+"\n!", cmd=cmdPrefix + " " + t + args, - grepstr="All tests ran without failures") + grepstr=gs) configs.append(tc) def search_log_for_text(text, logfile):