]> git.scottworley.com Git - slidingtile/commitdiff
Use the existing list of tests rather than making a new list with a glob.
authorScott Worley <scottworley@scottworley.com>
Tue, 29 Dec 2015 21:47:53 +0000 (13:47 -0800)
committerScott Worley <scottworley@scottworley.com>
Tue, 29 Dec 2015 21:47:53 +0000 (13:47 -0800)
Makefile

index a8608d05b3934b9ba425e3b4c97768813eeeffe1..5994d06dc0b9f0f54be1c464b28f7b94996d10b4 100644 (file)
--- a/Makefile
+++ b/Makefile
@@ -17,7 +17,7 @@ TESTS=$(subst .cc,,$(TEST_SRCS))
 all:    $(MAIN) $(TESTS)
 
 test:   $(TESTS)
 all:    $(MAIN) $(TESTS)
 
 test:   $(TESTS)
-       for t in ./*_test; do if ! $$t; then exit 1; fi ;done
+       for t in $(TESTS); do if ! ./$$t; then exit 1; fi ;done
 
 clean:
        rm -f *.o $(MAIN) $(TESTS) Makefile.bak
 
 clean:
        rm -f *.o $(MAIN) $(TESTS) Makefile.bak