From 2b8190f943d356ef5510eda7aab7d79cf3dd75cd Mon Sep 17 00:00:00 2001 From: Laurent Ghigonis Date: Thu, 29 Nov 2012 03:50:52 +0100 Subject: add a way to run all the tests and document it in tests/README.txt --- libglouglou/tests/Makefile | 13 +++++++++++++ 1 file changed, 13 insertions(+) (limited to 'libglouglou/tests/Makefile') diff --git a/libglouglou/tests/Makefile b/libglouglou/tests/Makefile index bce183d..13f9de4 100644 --- a/libglouglou/tests/Makefile +++ b/libglouglou/tests/Makefile @@ -10,5 +10,18 @@ all: $(TARGET) $(TARGET): $(OBJECTS) $(CC) $(CFLAGS) $(LDFLAGS) -o $(TARGET) $(OBJECTS) +run: + @errors=0 ;\ + for test in $(TARGET); do \ + echo -n "$$test " ;\ + LD_LIBRARY_PATH=../ ./$$test ;\ + if [ $$? -eq 0 ]; then \ + echo OK ;\ + else \ + echo FAILED ;\ + fi ;\ + done ;\ + exit $$errors + clean: rm -f $(TARGET) $(OBJECTS) -- cgit v1.2.3-59-g8ed1b