forked from Github_Repos/cvw
add make-tests scripts
This commit is contained in:
parent
7c44ecb364
commit
4df9093a7f
12
wally-pipelined/regression/make-tests.sh
Executable file
12
wally-pipelined/regression/make-tests.sh
Executable 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
|
@ -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 = {}
|
||||||
|
Loading…
Reference in New Issue
Block a user