aboutsummaryrefslogtreecommitdiffstats
path: root/testsuite/testsuite.sh
diff options
context:
space:
mode:
Diffstat (limited to 'testsuite/testsuite.sh')
-rwxr-xr-xtestsuite/testsuite.sh24
1 files changed, 3 insertions, 21 deletions
diff --git a/testsuite/testsuite.sh b/testsuite/testsuite.sh
index 01cb464..9f22976 100755
--- a/testsuite/testsuite.sh
+++ b/testsuite/testsuite.sh
@@ -3,25 +3,7 @@
cd "$(dirname $0)"
. ../utils.sh
-run_suite () {
- for d in */; do
- if [ -f $d/testsuite.sh ]; then
- printf "${ANSI_DARKCYAN}test $d ${ANSI_NOCOLOR}\n"
- cd $d
- if ./testsuite.sh; then
- printf "${ANSI_GREEN}OK${ANSI_NOCOLOR}\n"
- else
- printf "${ANSI_RED}FAILED!${ANSI_NOCOLOR}\n"
- exit 1
- fi
- cd ..
- else
- printf "${ANSI_YELLOW}Skip $d (no testsuite.sh)${ANSI_NOCOLOR}\n"
- fi
- done
-}
-
-for d in */; do
+for d in */*/; do
cd $d
printf "${ANSI_CYAN}test $d ${ANSI_NOCOLOR}\n"
if [ -f ./testsuite.sh ]; then
@@ -32,9 +14,9 @@ for d in */; do
exit 1
fi
else
- run_suite
+ printf "${ANSI_YELLOW}Skip $d (no testsuite.sh)${ANSI_NOCOLOR}\n"
fi
- cd ..
+ cd ../..
done
printf "${ANSI_GREEN}All tests are OK${ANSI_NOCOLOR}\n"