Unittest - Only run tests that have execute bit set

This commit is contained in:
Renato Alves
2014-10-17 16:40:27 +01:00
parent 51f08496b5
commit a9c9fbc7df

View File

@@ -5,16 +5,20 @@ if [ x"$1" = x"--verbose" ];
then then
for i in ${TESTBLOB} for i in ${TESTBLOB}
do do
echo '#' $i if [[ -x "$i" ]]; then
$i > test.log 2>&1 echo '#' $i
while read LINE $i > test.log 2>&1
do while read LINE
echo "$LINE" do
done < test.log echo "$LINE"
if [ $? -ne 0 ]; then done < test.log
rc=1 if [ $? -ne 0 ]; then
rc=1
fi
rm test.log
else
echo "# Skipping $(basename $i) execute bit not set"
fi fi
rm test.log
done done
exit $rc exit $rc
else else