X-Git-Url: https://feistymeow.org/gitweb/?a=blobdiff_plain;f=scripts%2Funit_test%2Frounder.sh;fp=scripts%2Funit_test%2Frounder.sh;h=0000000000000000000000000000000000000000;hb=7b39f7e279005c8466ef508220a532ce2aa4abf8;hp=3214ee683e4fd7544cb55d761d72758b19ec4b35;hpb=3fbd372b35b15a19fb171d5ae34294ff7b1e6485;p=feisty_meow.git diff --git a/scripts/unit_test/rounder.sh b/scripts/unit_test/rounder.sh deleted file mode 100644 index 3214ee68..00000000 --- a/scripts/unit_test/rounder.sh +++ /dev/null @@ -1,33 +0,0 @@ -#!/bin/bash - -# sample the first argument to make sure it's not empty. -# we can't know if the command is really valid or not, but it at least -# needs to not be empty. -test_to_run="$1" - -if [ -z "$test_to_run" ]; then - echo "This script requires a test or program to run as the first parameter." - exit 1 -fi - -trashdir="$(mktemp -d "$TMP/rounder.XXXXXX")" - -echo "Running command: $*" -echo "Storing log files in: $trashdir" - -round=0 -while true; do - round=$((round+1)) - echo ============================ - echo round $round commencing - outputfile="$trashdir/run_round_${round}.log" -echo real cmd: -echo "${@}" - eval "${@}" 2>&1 | tee $outputfile - if [ ${PIPESTATUS[0]} -ne 0 ]; then - echo FAILURE IN RUN $round - break - fi - echo round $round successful. -done -