From 748372dc45376a5e8a7d4f3af08490534a04b1aa Mon Sep 17 00:00:00 2001 From: Domenico Ottolia Date: Tue, 16 Mar 2021 23:26:59 -0400 Subject: [PATCH] Add test runner for privileged --- wally-pipelined/testgen/privileged/run.sh | 22 ++++++++++++++++++++++ 1 file changed, 22 insertions(+) create mode 100644 wally-pipelined/testgen/privileged/run.sh diff --git a/wally-pipelined/testgen/privileged/run.sh b/wally-pipelined/testgen/privileged/run.sh new file mode 100644 index 00000000..13c7c2b0 --- /dev/null +++ b/wally-pipelined/testgen/privileged/run.sh @@ -0,0 +1,22 @@ +clear +printf "\n\n#####\nStarting tests for $1\n#####\n\n" + +if [[ "$2" != "-simonly" ]] +then + cd ~/riscv-wally/wally-pipelined/testgen/privileged + python3 "testgen-$1.py" + printf "\n\n#####\nRan testgen-$1.py Making...\n#####\n\n\n" + + cd ~/riscv-wally/imperas-riscv-tests + make privileged +fi + +if [[ "$2" == "-sim" || "$2" == "-simonly" ]] +then + printf "\n\n\n#####\nSimulating!\n#####\n\n" + cd ~/riscv-wally/wally-pipelined/regression + vsim -do wally-privileged.do -c +fi + +cd ~/riscv-wally +printf "\n\n\n#####\nDone!\n#####\n\n" \ No newline at end of file