diff options
Diffstat (limited to 'debian/uncrustify-trinity/uncrustify-trinity-0.74.0/tests/fixtest.sh')
-rwxr-xr-x | debian/uncrustify-trinity/uncrustify-trinity-0.74.0/tests/fixtest.sh | 40 |
1 files changed, 40 insertions, 0 deletions
diff --git a/debian/uncrustify-trinity/uncrustify-trinity-0.74.0/tests/fixtest.sh b/debian/uncrustify-trinity/uncrustify-trinity-0.74.0/tests/fixtest.sh new file mode 100755 index 00000000..76fac4bf --- /dev/null +++ b/debian/uncrustify-trinity/uncrustify-trinity-0.74.0/tests/fixtest.sh @@ -0,0 +1,40 @@ +#! /bin/sh +# $Id: difftest.sh 798 2007-07-24 16:01:09Z bengardner $ +# +# Copies the files for a test from results/ to output/ +# + +if [ -z "$1" ] ; then + fn=$(basename $0) + echo "Usage: $fn TEST [...]" + echo + echo " TEST : the test number pattern, may contain wildcards" + echo " You can put multiple test numbers on the command line" + echo + echo "The script will find all matching tests in the results folder and copy them" + echo "into the output folder." + echo + echo "Examples:" + echo "$fn 30014 # copy test 30014" + echo "$fn 30014 00110 # copy tests 30014 and 00110" + echo "$fn '*' # copy all tests" + exit 1 +fi + +while [ -n "$1" ] ; do + # Use '*' as the pattern if one wasn't defined + patt=$1 + path="results" + + # Find the tests that match, remove the .svn folders + files=$(find $path -name "$patt-*" -type f | sed "/\.svn/d") + + did1='' + for t in $files ; do + other=$(echo $t | sed "s/^results/output/") + echo "cp $t $other" + cp $t $other + done + + shift 1 +done |