From eea0faac88a97d67ff7c293642cdec4043192018 Mon Sep 17 00:00:00 2001 From: sBubshait Date: Sun, 2 Jun 2024 21:06:54 +0100 Subject: [PATCH] Add test script to run test suite --- test.sh | 24 ++++++++++++++++++++++++ 1 file changed, 24 insertions(+) create mode 100644 test.sh diff --git a/test.sh b/test.sh new file mode 100644 index 0000000..7bb96e7 --- /dev/null +++ b/test.sh @@ -0,0 +1,24 @@ +echo "Trying to compile the program..." +make -C src + +echo "Fetching the test suite..." +git clone https://gitlab.doc.ic.ac.uk/teaching-fellows/armv8_testsuite.git +mkdir armv8_testsuite/solution +cp -R src/. ./armv8_testsuite/solution +cd armv8_testsuite +python3 -m pip install -r requirements.txt +./install + +echo "Running the test suite..." +./run -s + +echo "Test Suite Completed" +cd .. + +# printf "%s " "Press enter to continue" +# read ans + +echo "Cleaning Up..." +make -C src clean +rm -rf armv8_testsuite +echo "Done" \ No newline at end of file