chiark / gitweb /
test-common: Set PYTHONBYTECODEBASE to /dev/null
[secnet.git] / test-common.make.in
1
2 include ../common.make
3
4 TESTSCRIPTS ?= $(shell echo $(srcdir)/t-*[0-9a-z])
5 TESTNAMES := $(patsubst t-%,%,$(notdir $(TESTSCRIPTS)))
6
7 DEPS += $(topdir)/test-common.tcl
8 DEPS += $(topdir)/common.make
9 DEPS += $(topdir)/test-common.make
10 DEPS += Makefile
11
12 TARGETS += check
13
14 export PYTHONBYTECODEBASE=/dev/null
15
16 all: $(TARGETS)
17
18 check-real: $(foreach t,$(TESTNAMES),d-$t/ok)
19
20 d-%/ok: $(srcdir)/t-% $(DEPS)
21         @rm -rf d-$*; mkdir d-$*
22         export SECNET_TEST_BUILDDIR=$(topbuilddir); \
23         cd $(topdir) && $(TESTDIR)/t-$* >$(topbuilddir)/$(TESTDIR)/d-$*/log 2>&1
24         @printf "$* "
25         @touch $@
26
27 clean:
28         $(RM) -f *.o *.so
29         $(RM) -rf tmp
30         $(RM) -rf d-*