diff options
author | John Keeping <john@keeping.me.uk> | 2013-04-01 23:09:05 (JST) |
---|---|---|
committer | Jason A. Donenfeld <Jason@zx2c4.com> | 2013-04-09 05:27:11 (JST) |
commit | c95cc5ec56dbb7394015eb18201403be6d80f69b (patch) | |
tree | 7014b96a1a1408b5291532c0c442082aba693a80 /Makefile | |
parent | 8a92df033e974af6338b530a0d78d1bdb0b0f918 (diff) | |
download | cgit-c95cc5ec56dbb7394015eb18201403be6d80f69b.zip cgit-c95cc5ec56dbb7394015eb18201403be6d80f69b.tar.gz |
tests: use Git's test framework
This allows tests to run in parallel as well as letting us use "prove"
or another TAP harness to run the tests.
Git's test framework requires Git to be fully built before letting any
tests run, so add a new target to the top-level Makefile which builds
all of Git instead of just libgit.a and make the "test" target depend on
that.
Signed-off-by: John Keeping <john@keeping.me.uk>
Diffstat (limited to 'Makefile')
-rw-r--r-- | Makefile | 7 |
1 files changed, 5 insertions, 2 deletions
@@ -66,7 +66,10 @@ all:: cgit | |||
66 | cgit: | 66 | cgit: |
67 | $(QUIET_SUBDIR0)git $(QUIET_SUBDIR1) -f ../cgit.mk ../cgit NO_CURL=1 | 67 | $(QUIET_SUBDIR0)git $(QUIET_SUBDIR1) -f ../cgit.mk ../cgit NO_CURL=1 |
68 | 68 | ||
69 | test: all | 69 | git: |
70 | $(QUIET_SUBDIR0)git $(QUIET_SUBDIR1) NO_CURL=1 | ||
71 | |||
72 | test: all git | ||
70 | $(QUIET_SUBDIR0)tests $(QUIET_SUBDIR1) all | 73 | $(QUIET_SUBDIR0)tests $(QUIET_SUBDIR1) all |
71 | 74 | ||
72 | install: all | 75 | install: all |
@@ -145,7 +148,7 @@ get-git: | |||
145 | tags: | 148 | tags: |
146 | $(QUIET_TAGS)find . -name '*.[ch]' | xargs ctags | 149 | $(QUIET_TAGS)find . -name '*.[ch]' | xargs ctags |
147 | 150 | ||
148 | .PHONY: all cgit get-git | 151 | .PHONY: all cgit git get-git |
149 | .PHONY: clean clean-doc cleanall | 152 | .PHONY: clean clean-doc cleanall |
150 | .PHONY: doc doc-html doc-man doc-pdf | 153 | .PHONY: doc doc-html doc-man doc-pdf |
151 | .PHONY: install install-doc install-html install-man install-pdf | 154 | .PHONY: install install-doc install-html install-man install-pdf |