diff options
author | Junio C Hamano <junkio@cox.net> | 2005-05-13 22:50:32 -0700 |
---|---|---|
committer | Petr Baudis <xpasky@machine.sinus.cz> | 2005-05-14 16:45:05 +0200 |
commit | e1970ce43abfbf625bce68516857e910748e5965 (patch) | |
tree | 80fae9cb2afbf2bb596dea33c81e3d36f68759c8 /t/Makefile | |
parent | [PATCH] Fix git-diff-files for symlinks. (diff) | |
download | tgif-e1970ce43abfbf625bce68516857e910748e5965.tar.xz |
[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, test-lib.sh 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 <junkio@cox.net>
Signed-off-by: Petr Baudis <pasky@ucw.cz>
Diffstat (limited to 't/Makefile')
-rw-r--r-- | t/Makefile | 15 |
1 files changed, 15 insertions, 0 deletions
diff --git a/t/Makefile b/t/Makefile new file mode 100644 index 0000000000..198c5eda7c --- /dev/null +++ b/t/Makefile @@ -0,0 +1,15 @@ +# Run tests +# +# Copyright (c) 2005 Junio C Hamano +# +#OPTS=--verbose --debug +OPTS= + +T = $(wildcard t[0-9][0-9][0-9][0-9]-*.sh) + +all:: + @$(foreach t,$T,echo "*** $t ***"; sh $t $(OPTS) || exit; ) + rm -fr trash + +clean:: + rm -fr trash |