simple-tests 490 Bytes
Newer Older
1 2 3 4 5 6 7 8 9
#!/bin/bash

LOGFILE="$ADTTMP/test.log"

# copy tests to temporary directory, as current one might be read-only
cp -a test "$ADTTMP"
cd "$ADTTMP/test"

# run tests
10
for dir in arguments environment fcopy filters fs profiles sysutils utils;
11 12 13 14 15 16 17 18 19 20 21 22 23
do
	pushd $dir
	bash -x ./$dir.sh | tee -a "$LOGFILE"
	popd
done

echo "======================================"
grep "TESTING" "$LOGFILE"
echo "======================================"

[ $(grep -c "TESTING ERROR" "$LOGFILE") -gt 0 ] && exit 1

exit 0