From 4df9093a7f8da83e9cafe60c4500190e50bd444d Mon Sep 17 00:00:00 2001 From: bbracker Date: Mon, 6 Dec 2021 15:37:33 -0800 Subject: [PATCH] add make-tests scripts --- wally-pipelined/regression/make-tests.sh | 12 ++++++++++++ wally-pipelined/regression/regression-wally.py | 16 +++++++++------- 2 files changed, 21 insertions(+), 7 deletions(-) create mode 100755 wally-pipelined/regression/make-tests.sh diff --git a/wally-pipelined/regression/make-tests.sh b/wally-pipelined/regression/make-tests.sh new file mode 100755 index 00000000..e64f9445 --- /dev/null +++ b/wally-pipelined/regression/make-tests.sh @@ -0,0 +1,12 @@ +#!/bin/bash + +rm -r work* +cd ../../tests/imperas-riscv-tests/ +make allclean +make +cd ../wally-riscv-arch-test +make allclean +make +make XLEN=32 +exe2memfile.pl work/*/*/*.elf +cd ../../wally-pipelined/regression diff --git a/wally-pipelined/regression/regression-wally.py b/wally-pipelined/regression/regression-wally.py index bedbe5db..1494bc46 100755 --- a/wally-pipelined/regression/regression-wally.py +++ b/wally-pipelined/regression/regression-wally.py @@ -89,8 +89,13 @@ def run_test_case(config): def main(): """Run the tests and count the failures""" - # Scale the number of concurrent processes to the number of test cases, but - # max out at a limited number of concurrent processes to not overwhelm the system + try: + os.mkdir("logs") + except: + pass + + if '-makeTests' in sys.argv: + os.system('./make-tests.sh | tee ./logs/make-tests.log') if '-all' in sys.argv: TIMEOUT_DUR = 20*3600 # seconds @@ -101,12 +106,9 @@ def main(): else: TIMEOUT_DUR = 5*60 # seconds configs.append(getBuildrootTC(short=True)) - print(configs) - try: - os.mkdir("logs") - except: - pass + # Scale the number of concurrent processes to the number of test cases, but + # max out at a limited number of concurrent processes to not overwhelm the system with Pool(processes=min(len(configs),25)) as pool: num_fail = 0 results = {}