]> CyberLeo.Net >> Repos - FreeBSD/releng/10.0.git/blob - tools/tools/shlib-compat/test/Makefile
- Copy stable/10 (r259064) to releng/10.0 as part of the
[FreeBSD/releng/10.0.git] / tools / tools / shlib-compat / test / Makefile
1 # $FreeBSD$
2
3 SUBDIR= libtest1 \
4         libtest2 \
5         libtest3 \
6         libtestsys
7
8 NUMTEST=3
9
10 .PHONY: test regress.sh gentests gendiffs cleandiffs
11
12 test: all
13         sh regress.t
14
15 prove: all
16         prove ${.CURDIR}
17
18 regress.sh:
19         echo 'run() { ../shlib-compat.py --no-dump -vv libtest$$1/libtest$$1.so.0 libtest$$2/libtest$$2.so.0; }' > ${.TARGET}
20         N=`expr ${NUMTEST} \* ${NUMTEST}`; echo "echo 1..$$N" >> ${.TARGET}
21         echo 'REGRESSION_START($$1)' >> ${.TARGET}
22         for a in `jot ${NUMTEST}`; do for b in `jot ${NUMTEST}`; do echo "REGRESSION_TEST(\`$$a-$$b', \`run $$a $$b')"; done; done >> ${.TARGET}
23         echo "REGRESSION_END()" >> ${.TARGET}
24
25
26 gentests: regress.sh
27         for a in `jot ${NUMTEST}`; do for b in `jot ${NUMTEST}`; do ../shlib-compat.py -vv libtest$$a/libtest$$a.so.0 libtest$$b/libtest$$b.so.0 > regress.$$a-$$b.out; done; done
28
29 gendiffs:
30         for a in `jot ${NUMTEST}`; do for b in `jot ${NUMTEST}`; do (diff -ur libtest$$a libtest$$b > regress.$$a-$$b.diff || exit 0); done; done
31
32 cleandiffs:
33         rm -f regress.*-*.diff
34
35 clean: cleandiffs
36
37 .include <bsd.subdir.mk>