add make-tests scripts

This commit is contained in:
bbracker 2021-12-06 15:37:33 -08:00
parent 7c44ecb364
commit 4df9093a7f
2 changed files with 21 additions and 7 deletions

View File

@ -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

View File

@ -89,8 +89,13 @@ def run_test_case(config):
def main(): def main():
"""Run the tests and count the failures""" """Run the tests and count the failures"""
# Scale the number of concurrent processes to the number of test cases, but try:
# max out at a limited number of concurrent processes to not overwhelm the system 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: if '-all' in sys.argv:
TIMEOUT_DUR = 20*3600 # seconds TIMEOUT_DUR = 20*3600 # seconds
@ -101,12 +106,9 @@ def main():
else: else:
TIMEOUT_DUR = 5*60 # seconds TIMEOUT_DUR = 5*60 # seconds
configs.append(getBuildrootTC(short=True)) configs.append(getBuildrootTC(short=True))
print(configs)
try: # Scale the number of concurrent processes to the number of test cases, but
os.mkdir("logs") # max out at a limited number of concurrent processes to not overwhelm the system
except:
pass
with Pool(processes=min(len(configs),25)) as pool: with Pool(processes=min(len(configs),25)) as pool:
num_fail = 0 num_fail = 0
results = {} results = {}