path: root/t/Makefile
diff options
authorJunio C Hamano <>2005-05-14 05:50:32 (GMT)
committerPetr Baudis <>2005-05-14 14:45:05 (GMT)
commite1970ce43abfbf625bce68516857e910748e5965 (patch)
tree80fae9cb2afbf2bb596dea33c81e3d36f68759c8 /t/Makefile
parent95649d6cf9ec68f05d1dc57ec1b989b8d263a7ae (diff)
[PATCH 1/2] Test framework take two.
This adds t/ directory to host test suite, a test helper library and a basic set of tests. Petr Baudis raised many valid points at the earlier attempts in git mailing list. This round, has been updated to a bit more modern style, and the default output is made easier to read. Also included is one sample test script that tests the very basics. This test has already found one leftover bug missed when we introduced symlink support, which has been fixed since then. The supplied Makefile is designed to run all the available tests. Signed-off-by: Junio C Hamano <> Signed-off-by: Petr Baudis <>
Diffstat (limited to 't/Makefile')
1 files changed, 15 insertions, 0 deletions
diff --git a/t/Makefile b/t/Makefile
new file mode 100644
index 0000000..198c5ed
--- /dev/null
+++ b/t/Makefile
@@ -0,0 +1,15 @@
+# Run tests
+# Copyright (c) 2005 Junio C Hamano
+#OPTS=--verbose --debug
+T = $(wildcard t[0-9][0-9][0-9][0-9]-*.sh)
+ @$(foreach t,$T,echo "*** $t ***"; sh $t $(OPTS) || exit; )
+ rm -fr trash
+ rm -fr trash