From 7c36d4ef00c8b79c7f9d6b8d7da0c11a4a296ecf Mon Sep 17 00:00:00 2001 From: Sean McBride Date: Wed, 1 Jul 2020 15:02:36 -0400 Subject: [PATCH] chore: cleanup test infrastructure --- debug.sh | 5 ----- runtime/tests/preemption/client1.sh | 4 ++++ post_body.txt => runtime/tests/preemption/client1_body.txt | 0 runtime/tests/preemption/client2.sh | 4 ++++ .../tests/preemption/client2_body.txt | 0 runtime/tests/preemption/debug.sh | 7 +++++++ demo.txt => runtime/tests/preemption/demo.txt | 0 runtime/tests/{ => preemption}/test_fibonacci.json | 0 .../tests/{ => preemption}/test_fibonacci_multiple.json | 0 9 files changed, 15 insertions(+), 5 deletions(-) delete mode 100755 debug.sh create mode 100755 runtime/tests/preemption/client1.sh rename post_body.txt => runtime/tests/preemption/client1_body.txt (100%) create mode 100755 runtime/tests/preemption/client2.sh rename post_body2.txt => runtime/tests/preemption/client2_body.txt (100%) create mode 100755 runtime/tests/preemption/debug.sh rename demo.txt => runtime/tests/preemption/demo.txt (100%) rename runtime/tests/{ => preemption}/test_fibonacci.json (100%) rename runtime/tests/{ => preemption}/test_fibonacci_multiple.json (100%) diff --git a/debug.sh b/debug.sh deleted file mode 100755 index 1ff2809..0000000 --- a/debug.sh +++ /dev/null @@ -1,5 +0,0 @@ -#!/bin/bash -cd ./runtime/bin -export LD_LIBRARY_PATH="$(pwd):$LD_LIBRARY_PATH" -gdb --eval-command="handle SIGUSR1 nostop" --eval-command="run ../tests/test_fibonacci_multiple.json" ./awsmrt -cd ../.. diff --git a/runtime/tests/preemption/client1.sh b/runtime/tests/preemption/client1.sh new file mode 100755 index 0000000..4a26867 --- /dev/null +++ b/runtime/tests/preemption/client1.sh @@ -0,0 +1,4 @@ +#!/bin/bash +# fib(20) +# Perhaps this can be improved to pass a body without an additional file +ab -n 100000 -c 100 -p client1_body.txt -v 4 localhost:10000/ diff --git a/post_body.txt b/runtime/tests/preemption/client1_body.txt similarity index 100% rename from post_body.txt rename to runtime/tests/preemption/client1_body.txt diff --git a/runtime/tests/preemption/client2.sh b/runtime/tests/preemption/client2.sh new file mode 100755 index 0000000..d38e10a --- /dev/null +++ b/runtime/tests/preemption/client2.sh @@ -0,0 +1,4 @@ +#!/bin/bash +# fib(10) +# Perhaps this can be improved to pass a body without an additional file +ab -n 100000 -c 100 -p client2_body.txt -v 4 localhost:10001/ diff --git a/post_body2.txt b/runtime/tests/preemption/client2_body.txt similarity index 100% rename from post_body2.txt rename to runtime/tests/preemption/client2_body.txt diff --git a/runtime/tests/preemption/debug.sh b/runtime/tests/preemption/debug.sh new file mode 100755 index 0000000..4588c77 --- /dev/null +++ b/runtime/tests/preemption/debug.sh @@ -0,0 +1,7 @@ +#!/bin/bash +# Executes the runtime in GDB with SIGU + +cd ../../bin +export LD_LIBRARY_PATH="$(pwd):$LD_LIBRARY_PATH" +gdb --eval-command="handle SIGUSR1 nostop" --eval-command="run ../tests/preemption/test_fibonacci_multiple.json" ./awsmrt +cd ../../tests diff --git a/demo.txt b/runtime/tests/preemption/demo.txt similarity index 100% rename from demo.txt rename to runtime/tests/preemption/demo.txt diff --git a/runtime/tests/test_fibonacci.json b/runtime/tests/preemption/test_fibonacci.json similarity index 100% rename from runtime/tests/test_fibonacci.json rename to runtime/tests/preemption/test_fibonacci.json diff --git a/runtime/tests/test_fibonacci_multiple.json b/runtime/tests/preemption/test_fibonacci_multiple.json similarity index 100% rename from runtime/tests/test_fibonacci_multiple.json rename to runtime/tests/preemption/test_fibonacci_multiple.json