blob: 8a7aacc5c922f5d2e2d283594a35da06d55e3b76 (
plain)
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
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
|
# $OpenBSD: Makefile,v 1.1 2003/07/01 05:51:31 niklas Exp $
REGRESS_TARGETS= test-none test-nover test-single test-minor \
test-major test-nover-single
.include <bsd.obj.mk>
DIR_NOVER=${.CURDIR}/../libnover
OBJDIR_NOVER!= if [ -d $(DIR_NOVER)/${__objdir} ]; then \
echo "$(DIR_NOVER)/${__objdir}"; \
else \
echo "$(DIR_NOVER)"; \
fi
DIR_10=${.CURDIR}/../lib10
OBJDIR_10!= if [ -d $(DIR_10)/${__objdir} ]; then \
echo "$(DIR_10)/${__objdir}"; \
else \
echo "$(DIR_10)"; \
fi
DIR_11=${.CURDIR}/../lib11
OBJDIR_11!= if [ -d $(DIR_11)/${__objdir} ]; then \
echo "$(DIR_11)/${__objdir}"; \
else \
echo "$(DIR_11)"; \
fi
DIR_20=${.CURDIR}/../lib20
OBJDIR_20!= if [ -d $(DIR_20)/${__objdir} ]; then \
echo "$(DIR_20)/${__objdir}"; \
else \
echo "$(DIR_20)"; \
fi
DIR_PROG=${.CURDIR}/../prog
OBJDIR_PROG!= if [ -d $(DIR_PROG)/${__objdir} ]; then \
echo "$(DIR_PROG)/${__objdir}"; \
else \
echo "$(DIR_PROG)"; \
fi
PROGPATH= ${OBJDIR_PROG}/prog
make-lib:
@mkdir lib >/dev/null 2>&1 || true
clean:
@rm lib/* >/dev/null 2>&1 || true
test-none: make-lib clean
sh ${.CURDIR}/test.sh ${PROGPATH} '%ERROR%'
test-nover: make-lib clean
cp ${OBJDIR_NOVER}/libtest.so lib/
sh ${.CURDIR}/test.sh ${PROGPATH} none
test-single: make-lib clean
cp ${OBJDIR_10}/libtest.so.1.0 lib/
sh ${.CURDIR}/test.sh ${PROGPATH} 1.0
test-minor: make-lib clean
cp ${OBJDIR_10}/libtest.so.1.0 ${OBJDIR_11}/libtest.so.1.1 lib/
sh ${.CURDIR}/test.sh ${PROGPATH} 1.1
test-major: make-lib clean
cp ${OBJDIR_11}/libtest.so.1.1 ${OBJDIR_20}/libtest.so.2.0 lib/
sh ${.CURDIR}/test.sh ${PROGPATH} 2.0
test-nover-single: make-lib clean
cp ${OBJDIR_NOVER}/libtest.so ${OBJDIR_10}/libtest.so.1.0 lib/
sh ${.CURDIR}/test.sh ${PROGPATH} none
.include <bsd.regress.mk>
|