mirror of
https://github.com/cuberite/TCLAP.git
synced 2025-08-04 02:06:29 -04:00
20 lines
267 B
Bash
Executable File
20 lines
267 B
Bash
Executable File
#!/bin/sh
|
|
|
|
if [ -z "$srcdir" ]; then
|
|
srcdir=`dirname $0`
|
|
fi
|
|
|
|
TEST_RESULT=$srcdir/$1
|
|
shift
|
|
|
|
../examples/"$@" 2>&1 | tee tmp.out
|
|
|
|
if cmp -s tmp.out $TEST_RESULT.out; then
|
|
echo "OK"
|
|
exit 0
|
|
else
|
|
echo "FAIL"
|
|
diff tmp.out $TEST_RESULT.out
|
|
exit 1
|
|
fi
|