<sys/socket.h>: turn off MSG_NOSIGNAL
[minix3.git] / test / Makefile
blob2bff05c5771eb7889c308842a2bc1c59a1b63771
1 NOGCCERROR:= yes
2 NOCLANGERROR:= yes
4 BINDIR?= /usr/tests/minix-posix
5 FILESDIR?= /usr/tests/minix-posix
6 WARNS?= 1
8 # Tests have no manpages
9 MKMAN= no
11 # They are all bin-owned; by default normal executable mode
12 BINOWN= bin
14 # Needed by testsh1.sh
15 FILES= test1.c
17 CFLAGS+= -fno-builtin
18 LDADD+= -lm -lcompat_minix
20 .include <bsd.own.mk>
22 SUBDIR+= blocktest
23 SUBDIR+= ddekit
25 # Some have special flags compiling
26 .if ${MACHINE_ARCH} == "i386"
27 # LSC FIXME: Compilation error for now on ARM with that!
28 COPTS.test51.c= -mhard-float
29 COPTS.test52.c= -mhard-float
30 .endif
32 CPPFLAGS.test56.c += -D_MINIX_SYSTEM=1
34 COPTS.test9.c= -O0
35 COPTS.test37.c= -O0
36 COPTS.test53.c= -O0
37 COPTS.test68.c= -O0
39 # Some have special libraries
40 LDADD.test59= -lmthread
41 LDADD.test76= -lutil
42 LDADD.test77= -lutil
44 # Some have an extra file
45 OBJS.test57= test57loop.o
47 # Cache testing programs
48 OBJS.test71+= testcache.o
49 OBJS.test72+= testcache.o
50 OBJS.test74+= testcache.o
51 LDADD.test72+= -lminixfs
53 PROGS += testvm
54 OBJS.testvm+= testcache.o
55 LDSTATIC.testvm= -static
56 LDADD.testvm+= -lsys -ltimers -lminlib
58 FILES += testvm.conf
60 # Tests to compile, For every architecture
61 MINIX_TESTS= \
62 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 \
63 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 \
64 41 42 43 44 45 46 48 49 50 52 53 54 55 56 58 59 60 \
65 61 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79
67 .if ${MACHINE_ARCH} == "i386"
68 MINIX_TESTS+= \
69 47 51 57 \
71 .endif # ${MACHINE_ARCH} == "i386"
73 .for t in ${MINIX_TESTS}
74 PROGS+= test${t}
75 .endfor
77 PROGS+= t10a t11a t11b t40a t40b t40c t40d t40e t40f t40g t60a t60b \
78 t67a t67b t68a t68b tvnd
80 SCRIPTS+= run testinterp.sh testsh1.sh testsh2.sh testmfs.sh testisofs.sh testvnd.sh testkyua.sh
82 # test57loop.S is not linked into the .bcl file.
83 # This way, we can link it in when linking the final binary
84 LDADD.test57+= ${${USE_BITCODE:Uno} != "no":? test57loop.o -Wl,-allow-multiple-definition:}
86 .if ${MKPIC} == "yes"
87 # Build them as dynamic executables by default if shared libraries
88 # are available; so that the building and executing of dynamic
89 # executables is tested
90 LDSTATIC= -dynamic
92 LDFLAGS.mod+= -shared # make shared object
94 # Files which have to be compiled with -fPIC
95 mod.o: mod.c
96 ${COMPILE.c} -fPIC ${.IMPSRC}
98 common.o: common.c
99 ${COMPILE.c} -fPIC ${.IMPSRC}
101 # Add test that must be linked dynamically, and its dynamically loaded
102 # module
103 PROGS+= test63 mod
104 .endif # ${MKPIC} == "yes"
106 .for o in $(PROGS)
107 OBJS.${o} += common.o
108 .endfor
110 # LSC Make sure there is not leftover after a failed testrun
111 clean: .PHONY .MAKE
112 @rm -rf DIR*
114 .include <bsd.prog.mk>
115 .include <bsd.subdir.mk>