ttls chbind: update VSA to use
[freeradius.git] / scripts / main.mk
1 # We don't use boilermake here because we want to run the test-app
2 # as a self-contained system that runs boilermake.
3 #
4
5 all: run-tests
6
7 APP := ./test-app/build/bin/talk
8
9 .PHONY: run-tests
10 run-tests:
11         ${MAKE} clean
12         ${MAKE} -C test-app/
13         ${APP} > found.txt
14         diff expected.txt found.txt
15         ${MAKE} -C test-app/ DESTDIR=`pwd`/R INSTALL=`pwd`/install-sh install
16         find R/* -print > found-install.txt
17         diff expected-install.txt found-install.txt
18         ${APP} > found.txt
19         diff expected.txt found.txt
20         ${MAKE} -C test-app/ DESTDIR=`pwd`/R INSTALL=`pwd`/install-sh uninstall
21         find R/* -print > found-install.txt
22         diff empty-install.txt found-install.txt
23         ${MAKE} clean
24         ${MAKE} -C test-app/ LIBTOOL=JLIBTOOL DESTDIR=`pwd`/R INSTALL=`pwd`/install-sh all
25         ${APP} > found.txt
26         diff expected.txt found.txt
27         ${MAKE} -C test-app/ LIBTOOL=JLIBTOOL DESTDIR=`pwd`/R INSTALL=`pwd`/install-sh install
28 # don't do "find", as we have *.la files installed, rather than *.a
29         ${APP} > found.txt
30         diff expected.txt found.txt
31         ${MAKE} clean
32         rm -rf R found found-install.txt
33
34 clean: clean.local
35
36 clean.local:
37         ${MAKE} -C test-app/ clean
38         ${MAKE} -C test-app/ LIBTOOL=x clean
39         rm -rf ./R *~ found.txt found-install.txt
40
41 check-legacy:
42         @grep '$$(' `find test-app/build/make -type f -name "*\.mk" -print` || true
43         @grep ' /' `find test-app/build/make -type f -name "*\.mk" -print` || true
44         @grep ' build' `find test-app/build/make -type f -name "*\.mk" -print` || true