# 2 - build warnings
# 3 - execution output
# 4 - build commands
-VERBOSE=${VERBOSE:-3}
+VERBOSE=${VERBOSE:-1}
CC=gcc
#FIXME: -Ibertos/emul should not be needed
CXX=g++
CXXFLAGS="$CFLAGS"
-TESTS?=${TESTS:-`find . \
+TESTS=${TESTS:-`find . \
\( -name .svn -prune -o -name .git -prune -o -name .hg -prune \) \
-o -name "*_test.c" -print` }
[ $VERBOSE -gt 0 ] && echo "Running $name..."
if ! $exe 2>&1 | tee >$runout $testdir/$name.out; then
echo "FAILED [RUN]: $name"
+ exit 2
fi
else
echo "FAILED [BUILD]: $name"
+ exit 3
fi
else
echo "FAILED [PREPARING]: $name"
+ exit 4
fi
done