From 548abd6cce79c987cb051dd9e73caebafc3bcf40 Mon Sep 17 00:00:00 2001 From: Clifford Wolf Date: Wed, 6 Apr 2016 16:38:57 +0200 Subject: Added scripts/torture for riscv-torture tests --- scripts/torture/run_single_test.sh | 18 ++++++++++++++++++ 1 file changed, 18 insertions(+) create mode 100644 scripts/torture/run_single_test.sh (limited to 'scripts/torture/run_single_test.sh') diff --git a/scripts/torture/run_single_test.sh b/scripts/torture/run_single_test.sh new file mode 100644 index 0000000..81f48ae --- /dev/null +++ b/scripts/torture/run_single_test.sh @@ -0,0 +1,18 @@ +#!/bin/bash + +set -ex + + +## Generate test case + +cd riscv-torture +./sbt generator/run +cp output/test.S ../test.S +cd .. + + +## Compile test case and create reference + +riscv32-unknown-elf-gcc -m32 -ffreestanding -nostdlib -Wl,-Bstatic,-T,sections.lds -o test.elf test.S +LD_LIBRARY_PATH="./riscv-isa-sim:./riscv-fesvr" ./riscv-isa-sim/spike test.elf > test.ref + -- cgit