From 9227d30d411a907af82d3ce28c2da862c92093c7 Mon Sep 17 00:00:00 2001 From: Sean McBride Date: Mon, 3 May 2021 13:27:10 +0000 Subject: [PATCH] chore: use triaged and fix small test nits --- runtime/experiments/applications/ekf/by_iteration/run.sh | 2 +- runtime/experiments/applications/ekf/one_iteration/run.sh | 1 - .../experiments/applications/imageresize/by_resolution/run.sh | 4 ---- runtime/experiments/bimodal/edf_preemption.env | 1 + runtime/experiments/concurrency/edf.env | 1 + runtime/experiments/payload/edf.env | 1 + 6 files changed, 4 insertions(+), 6 deletions(-) diff --git a/runtime/experiments/applications/ekf/by_iteration/run.sh b/runtime/experiments/applications/ekf/by_iteration/run.sh index 7f4f84c..ce330bd 100755 --- a/runtime/experiments/applications/ekf/by_iteration/run.sh +++ b/runtime/experiments/applications/ekf/by_iteration/run.sh @@ -14,7 +14,7 @@ did_pass=true # Copy data if not here if [[ ! -f "./initial_state.dat" ]]; then - cp $runtime_directory/tests/TinyEKF/extras/c/ekf_raw.dat ./initial_state.dat + cp "$runtime_directory"/tests/TinyEKF/extras/c/ekf_raw.dat ./initial_state.dat fi if [ "$1" != "-d" ]; then diff --git a/runtime/experiments/applications/ekf/one_iteration/run.sh b/runtime/experiments/applications/ekf/one_iteration/run.sh index a06dc17..e60df65 100755 --- a/runtime/experiments/applications/ekf/one_iteration/run.sh +++ b/runtime/experiments/applications/ekf/one_iteration/run.sh @@ -28,7 +28,6 @@ success_count=0 total_count=50 for ((i = 0; i < total_count; i++)); do - echo "$i" result="$(curl -H 'Expect:' -H "Content-Type: application/octet-stream" --data-binary "@ekf_raw.dat" localhost:10000 2> /dev/null | tr -d '\0')" if [[ "$expected_result" == "$result" ]]; then success_count=$((success_count + 1)) diff --git a/runtime/experiments/applications/imageresize/by_resolution/run.sh b/runtime/experiments/applications/imageresize/by_resolution/run.sh index 3bfa988..9c13af1 100755 --- a/runtime/experiments/applications/imageresize/by_resolution/run.sh +++ b/runtime/experiments/applications/imageresize/by_resolution/run.sh @@ -21,13 +21,11 @@ success_count=0 total_count=100 for ((i = 0; i < total_count; i++)); do - echo "$i" ext="$RANDOM" # Small if curl -H 'Expect:' -H "Content-Type: image/jpg" --data-binary "@shrinking_man_small.jpg" --output "result_${ext}_small.png" localhost:10000 2> /dev/null 1> /dev/null; then pixel_differences="$(compare -identify -metric AE "result_${ext}_small.png" expected_result_small.png null: 2>&1 > /dev/null)" - echo "Pixel Differences: $pixel_differences" if [[ "$pixel_differences" != "0" ]]; then echo "Small FAIL" echo "$pixel_differences pixel differences detected" @@ -40,7 +38,6 @@ for ((i = 0; i < total_count; i++)); do # Medium if curl -H 'Expect:' -H "Content-Type: image/jpg" --data-binary "@shrinking_man_medium.jpg" --output "result_${ext}_medium.png" localhost:10001 2> /dev/null 1> /dev/null; then pixel_differences="$(compare -identify -metric AE "result_${ext}_medium.png" expected_result_medium.png null: 2>&1 > /dev/null)" - echo "Pixel Differences: $pixel_differences" if [[ "$pixel_differences" != "0" ]]; then echo "Medium FAIL" echo "$pixel_differences pixel differences detected" @@ -53,7 +50,6 @@ for ((i = 0; i < total_count; i++)); do # Large if curl -H 'Expect:' -H "Content-Type: image/jpg" --data-binary "@shrinking_man_large.jpg" --output "result_${ext}_large.png" localhost:10002 2> /dev/null 1> /dev/null; then pixel_differences="$(compare -identify -metric AE "result_${ext}_large.png" expected_result_large.png null: 2>&1 > /dev/null)" - echo "Pixel Differences: $pixel_differences" if [[ "$pixel_differences" != "0" ]]; then echo "Large FAIL" echo "$pixel_differences pixel differences detected" diff --git a/runtime/experiments/bimodal/edf_preemption.env b/runtime/experiments/bimodal/edf_preemption.env index 0cd4ebf..302a324 100644 --- a/runtime/experiments/bimodal/edf_preemption.env +++ b/runtime/experiments/bimodal/edf_preemption.env @@ -1,2 +1,3 @@ SLEDGE_SCHEDULER=EDF SLEDGE_DISABLE_PREEMPTION=false +SLEDGE_SIGALRM_HANDLER=TRIAGED diff --git a/runtime/experiments/concurrency/edf.env b/runtime/experiments/concurrency/edf.env index 43ea217..4637bb9 100644 --- a/runtime/experiments/concurrency/edf.env +++ b/runtime/experiments/concurrency/edf.env @@ -1 +1,2 @@ SLEDGE_SCHEDULER=EDF +SLEDGE_SIGALRM_HANDLER=TRIAGED diff --git a/runtime/experiments/payload/edf.env b/runtime/experiments/payload/edf.env index 43ea217..4637bb9 100644 --- a/runtime/experiments/payload/edf.env +++ b/runtime/experiments/payload/edf.env @@ -1 +1,2 @@ SLEDGE_SCHEDULER=EDF +SLEDGE_SIGALRM_HANDLER=TRIAGED