From 5ffa0b5b95918f661fb3673852ffee7affd3ee72 Mon Sep 17 00:00:00 2001 From: Sean McBride Date: Mon, 24 May 2021 12:17:29 -0400 Subject: [PATCH] refactor: cleanup zombie files --- .../imageresize/by_resolution/.gitignore | 1 - .../imageresize/by_resolution/debug.sh | 19 ------------------- .../imageresize/by_resolution/test.sh | 15 --------------- 3 files changed, 35 deletions(-) delete mode 100755 runtime/experiments/applications/imageresize/by_resolution/debug.sh delete mode 100755 runtime/experiments/applications/imageresize/by_resolution/test.sh diff --git a/runtime/experiments/applications/imageresize/by_resolution/.gitignore b/runtime/experiments/applications/imageresize/by_resolution/.gitignore index 172be53..f82ca32 100644 --- a/runtime/experiments/applications/imageresize/by_resolution/.gitignore +++ b/runtime/experiments/applications/imageresize/by_resolution/.gitignore @@ -1,3 +1,2 @@ -result_*.png log.csv res/* diff --git a/runtime/experiments/applications/imageresize/by_resolution/debug.sh b/runtime/experiments/applications/imageresize/by_resolution/debug.sh deleted file mode 100755 index 879d485..0000000 --- a/runtime/experiments/applications/imageresize/by_resolution/debug.sh +++ /dev/null @@ -1,19 +0,0 @@ -#!/bin/bash -# Executes the runtime in GDB -# Substitutes the absolute path from the container with a path relatively derived from the location of this script -# This allows debugging outside of the Docker container -# Also disables pagination and stopping on SIGUSR1 - -experiment_directory=$(pwd) -project_directory=$(cd ../../../.. && pwd) -binary_directory=$(cd "$project_directory"/bin && pwd) - -export LD_LIBRARY_PATH="$binary_directory:$LD_LIBRARY_PATH" -export PATH="$binary_directory:$PATH" - -gdb --eval-command="handle SIGUSR1 nostop" \ - --eval-command="handle SIGPIPE nostop" \ - --eval-command="set pagination off" \ - --eval-command="set substitute-path /sledge/runtime $project_directory" \ - --eval-command="run $experiment_directory/spec.json" \ - sledgert diff --git a/runtime/experiments/applications/imageresize/by_resolution/test.sh b/runtime/experiments/applications/imageresize/by_resolution/test.sh deleted file mode 100755 index 7988c4e..0000000 --- a/runtime/experiments/applications/imageresize/by_resolution/test.sh +++ /dev/null @@ -1,15 +0,0 @@ -#!/bin/bash - -declare image_buffer - -if image_buffer <(curl -H 'Expect:' -H "Content-Type: image/jpg" --output "result_small.png" "localhost:10000"); then - pixel_differences="$(compare -identify -metric AE "result_small.png" expected_result_small.png null: 2>&1 > /dev/null)" - if [[ "$pixel_differences" != "0" ]]; then - echo "Small FAIL" - echo "$pixel_differences pixel differences detected" - else - echo "OK" - fi -else - echo "curl failed with ${?}. See man curl for meaning." -fi