summaryrefslogtreecommitdiff
path: root/test-runner.sh
diff options
context:
space:
mode:
Diffstat (limited to 'test-runner.sh')
-rwxr-xr-xtest-runner.sh40
1 files changed, 0 insertions, 40 deletions
diff --git a/test-runner.sh b/test-runner.sh
deleted file mode 100755
index 17309ab..0000000
--- a/test-runner.sh
+++ /dev/null
@@ -1,40 +0,0 @@
-#!/bin/bash
-
-# Usage:
-# ./test-runner.sh <IMG_URL> <BACKEND> [<TEST> [<TEST> ...]]
-#
-# Example:
-# ./test-runner.sh file:///test.img openstack tests/uname.test
-
-set -e
-
-# Inputs
-URL="$1"
-FILE="$(basename "$URL")"
-shift
-BACKEND="$1"
-shift
-TEST_FILES=( "$@" )
-
-# Write log header
-echo "==============================================================================="
-echo "Testing image $FILE on $(date)"
-echo " with test command files: ${TEST_FILES[@]}"
-echo "==============================================================================="
-
-# Fetch the image
-echo "Fetching image $FILE"
-curl -o "$FILE" "$URL"
-
-# Run the test
-echo "Launching $BACKEND test backend"
-"$BACKEND/do-tests.sh" "$FILE" "${TEST_FILES[@]}" 2>&1
-
-# Delete the test image
-echo "Deleting local image $FILE"
-rm "$FILE"
-
-# Write log footer
-echo "==============================================================================="
-echo "$(date): Finished testing: SUCCESS!"
-echo "==============================================================================="