chiark / gitweb /
Infra: Exit statuses: work around bizarre behaviour of perl die wrt $?, and de-reserv...
[dgit.git] / tests / Makefile
1 # usage: tests/using-intree make -f tests/Makefile
2 # (optionally setting TESTSCRIPTS='tests/tests/foo tests/tests/bar')
3
4 TESTSCRIPTS ?= $(shell run-parts --list tests/tests)
5 TESTNAMES := $(notdir $(TESTSCRIPTS))
6
7 all: $(foreach t,$(TESTNAMES),tests/tmp/$t.ok)
8         @echo "ALL PASSED"
9
10 tests/tmp:
11         mkdir -p $@
12
13 tests/tmp/%.ok: tests/tmp
14         tests/tests/$* >tests/tmp/$*.log 2>&1