summaryrefslogtreecommitdiffstats
path: root/test/Makefile
blob: 9ec75d35e8b155d5b62c5c50d03148353349c049 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
TESTS=$(shell ls -tr *.test)

QUILTRC=$(CURDIR)/test.quiltrc
QUILT=$(CURDIR)/../quilt
LIB=$(CURDIR)/../lib
export QUILTRC QUILT LIB
PATH:=$(CURDIR)/../bin:$(PATH)
ifneq ($(shell . $(QUILTRC) ;  echo $$QUILT_PATCHES_PREFIX),)
P=patches/
_P=../patches/
export P _P
endif

all: $(TESTS) remove_symlink

.PHONY: $(TESTS)

$(TESTS): scripts_symlink
	@echo "[$@]"
	@LANG=POSIX ./run $@

scripts_symlink:
	@[ -e ../quilt/scripts ] || ln -s ../scripts ../quilt/scripts

remove_symlink:
	@rm -f quilt/scripts