4 BINDIR?
= /usr
/tests
/minix-posix
5 FILESDIR?
= /usr
/tests
/minix-posix
8 # Tests have no manpages
11 # They are all bin-owned; by default normal executable mode
14 # Needed by testsh1.sh
18 LDADD
+= -lm
-lcompat_minix
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
32 CPPFLAGS.test56.c
+= -D_MINIX_SYSTEM
=1
39 # Some have special libraries
40 LDADD.test59
= -lmthread
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
54 OBJS.testvm
+= testcache.o
55 LDSTATIC.testvm
= -static
56 LDADD.testvm
+= -lsys
-ltimers
-lminlib
60 # Tests to compile, For every architecture
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"
71 .
endif # ${MACHINE_ARCH} == "i386"
73 .for t in
${MINIX_TESTS}
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
:}
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
92 LDFLAGS.mod
+= -shared
# make shared object
94 # Files which have to be compiled with -fPIC
96 ${COMPILE.c
} -fPIC
${.IMPSRC
}
99 ${COMPILE.c
} -fPIC
${.IMPSRC
}
101 # Add test that must be linked dynamically, and its dynamically loaded
104 .
endif # ${MKPIC} == "yes"
107 OBJS.
${o} += common.o
110 # LSC Make sure there is not leftover after a failed testrun
114 .
include <bsd.prog.mk
>
115 .
include <bsd.subdir.mk
>