forked from haiwan/sledge
parent
a1192e57f7
commit
5ffa0b5b95
@ -1,3 +1,2 @@
|
||||
result_*.png
|
||||
log.csv
|
||||
res/*
|
||||
|
@ -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
|
@ -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
|
Loading…
Reference in new issue