1sp := $(sp).x
2dirstack_$(sp) := $(d)
3d := $(dir)
4
5.PHONY: test
6
7CLEAN += clients servers tests/progs tests/schema tests/testdata tests/testrun
8
9test: all clients servers tests/progs
10
11test:
12	cd tests; \
13		SRCDIR=$(abspath $(LDAP_SRC)) \
14		LDAP_BUILD=$(abspath $(LDAP_BUILD)) \
15		TOPDIR=$(abspath $(SRCDIR)) \
16		LIBTOOL=$(abspath $(LIBTOOL)) \
17			$(abspath $(SRCDIR))/tests/run all
18
19servers clients tests/progs:
20	ln -s $(abspath $(LDAP_BUILD))/$@ $@
21
22d := $(dirstack_$(sp))
23sp := $(basename $(sp))
24