aboutsummaryrefslogtreecommitdiffstats
path: root/libglouglou/tests
diff options
context:
space:
mode:
authorLaurent Ghigonis <laurent@p1sec.com>2012-11-29 03:55:30 +0100
committerLaurent Ghigonis <laurent@p1sec.com>2012-11-29 03:55:30 +0100
commite222ac44a30509c90e1aa40a12ffb33f4396a610 (patch)
tree39e968195d82c205672d36f63297d7e40dc8e8f9 /libglouglou/tests
parentadd a way to run all the tests and document it in tests/README.txt (diff)
downloadglouglou-e222ac44a30509c90e1aa40a12ffb33f4396a610.tar.xz
glouglou-e222ac44a30509c90e1aa40a12ffb33f4396a610.zip
improve "make run" tests output
Diffstat (limited to 'libglouglou/tests')
-rw-r--r--libglouglou/tests/Makefile9
1 files changed, 7 insertions, 2 deletions
diff --git a/libglouglou/tests/Makefile b/libglouglou/tests/Makefile
index 13f9de4..03295bb 100644
--- a/libglouglou/tests/Makefile
+++ b/libglouglou/tests/Makefile
@@ -11,16 +11,21 @@ $(TARGET): $(OBJECTS)
$(CC) $(CFLAGS) $(LDFLAGS) -o $(TARGET) $(OBJECTS)
run:
- @errors=0 ;\
+ @count=0 ;\
+ errors=0 ;\
for test in $(TARGET); do \
- echo -n "$$test " ;\
+ echo =============================================================================== ;\
+ echo $$test ;\
LD_LIBRARY_PATH=../ ./$$test ;\
if [ $$? -eq 0 ]; then \
echo OK ;\
else \
echo FAILED ;\
fi ;\
+ count=$$(($$count + 1)) ;\
done ;\
+ echo =============================================================================== ;\
+ echo "$$count tests executed, $$errors errors" ;\
exit $$errors
clean: