turns printfs back on
[freebsd-src/fkvm-freebsd.git] / tools / test / dtrace / Makefile
blob8ad8e62e76a216a64934416b8a089414d92eb2d6
1 # $FreeBSD$
3 TESTSRCDIR= ${.CURDIR}/../../../cddl/contrib/opensolaris/cmd/dtrace/test
4 DTEST= ${TESTSRCDIR}/cmd/scripts/dtest.pl -n
6 IGNORE= \
7 ${TESTSRCDIR}/tst/common/arrays/err.D_IDENT_UNDEF.badureg.d \
8 ${TESTSRCDIR}/tst/common/printa/err.D_PRINTF_ARG_TYPE.jstack.d \
9 ${TESTSRCDIR}/tst/common/printa/err.D_PRINTF_ARG_TYPE.ustack.d \
10 ${TESTSRCDIR}/tst/common/printa/tst.stack.d \
11 ${TESTSRCDIR}/tst/common/stack/err.D_USTACK_FRAMES.bad.d \
12 ${TESTSRCDIR}/tst/common/stack/err.D_USTACK_PROTO.bad.d \
13 ${TESTSRCDIR}/tst/common/stack/err.D_USTACK_STRSIZE.bad.d \
14 ${TESTSRCDIR}/tst/common/stop/tst.stop1.d \
15 ${TESTSRCDIR}/tst/common/aggs/tst.subr.d \
16 ${TESTSRCDIR}/tst/common/aggs/tst.signature.d \
17 ${TESTSRCDIR}/tst/common/arrays/tst.uregsarray.d \
18 ${TESTSRCDIR}/tst/common/assocs/err.D_OP_INCOMPAT.dupgtype.d \
19 ${TESTSRCDIR}/tst/common/assocs/err.D_OP_INCOMPAT.dupttype.d \
20 ${TESTSRCDIR}/tst/common/assocs/tst.orthogonality.d \
21 ${TESTSRCDIR}/tst/common/buffering/tst.cputime.ksh \
22 ${TESTSRCDIR}/tst/common/buffering/tst.ring3.d \
23 ${TESTSRCDIR}/tst/common/builtinvar/tst.psinfo.d \
24 ${TESTSRCDIR}/tst/common/builtinvar/tst.psinfo1.d \
25 ${TESTSRCDIR}/tst/common/drops/drp.DTRACEDROP_STKSTROVERFLOW.d \
26 ${TESTSRCDIR}/tst/common/dtraceUtil/err.D_PDESC_ZERO.InvalidDescription1.d \
27 ${TESTSRCDIR}/tst/common/dtraceUtil/tst.DataModel32.d.ksh \
28 ${TESTSRCDIR}/tst/common/dtraceUtil/tst.DestructWithFunction.d.ksh \
29 ${TESTSRCDIR}/tst/common/dtraceUtil/tst.DestructWithModule.d.ksh \
30 ${TESTSRCDIR}/tst/common/dtraceUtil/tst.PreprocessorStatement.d.ksh \
31 ${TESTSRCDIR}/tst/common/dtraceUtil/tst.ZeroFunctionProbes.d.ksh \
32 ${TESTSRCDIR}/tst/common/funcs/err.D_PROTO_ARG.mobadarg.d \
33 ${TESTSRCDIR}/tst/common/funcs/err.D_PROTO_LEN.motoofew.d \
34 ${TESTSRCDIR}/tst/common/funcs/err.D_PROTO_LEN.motoomany.d \
35 ${TESTSRCDIR}/tst/common/funcs/err.D_PROTO_LEN.mtabadarg.d \
36 ${TESTSRCDIR}/tst/common/funcs/err.D_PROTO_LEN.mtatoofew.d \
37 ${TESTSRCDIR}/tst/common/funcs/err.D_PROTO_LEN.mtatoomany.d \
38 ${TESTSRCDIR}/tst/common/funcs/tst.bcopy.d \
39 ${TESTSRCDIR}/tst/common/funcs/tst.copyin.d \
40 ${TESTSRCDIR}/tst/common/funcs/tst.copyinto.d \
41 ${TESTSRCDIR}/tst/common/funcs/tst.ddi_pathname.d \
42 ${TESTSRCDIR}/tst/common/inline/err.D_OP_INCOMPAT.badxlate.d \
43 ${TESTSRCDIR}/tst/common/inline/tst.InlineDataAssign.d \
44 ${TESTSRCDIR}/tst/common/inline/tst.InlineExpression.d \
45 ${TESTSRCDIR}/tst/common/inline/tst.InlineTypedef.d \
46 ${TESTSRCDIR}/tst/common/io/tst.fds.c \
47 ${TESTSRCDIR}/tst/common/java_api/tst.FunctionLookup.c \
48 ${TESTSRCDIR}/tst/common/java_api/tst.ProbeData.c \
49 ${TESTSRCDIR}/tst/common/misc/tst.dynopt.d \
50 ${TESTSRCDIR}/tst/common/misc/tst.include.ksh \
51 ${TESTSRCDIR}/tst/common/misc/tst.roch.d \
52 ${TESTSRCDIR}/tst/common/misc/tst.schrock.ksh \
53 ${TESTSRCDIR}/tst/common/nfs/tst.call.c \
54 ${TESTSRCDIR}/tst/common/nfs/tst.call.d \
55 ${TESTSRCDIR}/tst/common/nfs/tst.call3.c \
56 ${TESTSRCDIR}/tst/common/nfs/tst.call3.d \
57 ${TESTSRCDIR}/tst/common/offsetof/err.D_OFFSETOF_BITFIELD.bitfield.d \
58 ${TESTSRCDIR}/tst/common/pid/err.D_PDESC_ZERO.badlib.d \
59 ${TESTSRCDIR}/tst/common/pid/err.D_PDESC_ZERO.badproc1.d \
60 ${TESTSRCDIR}/tst/common/pid/err.D_PROC_BADPID.badproc2.d \
61 ${TESTSRCDIR}/tst/common/pid/err.D_PROC_CREATEFAIL.many.d \
62 ${TESTSRCDIR}/tst/common/pid/err.D_PROC_FUNC.badfunc.d \
63 ${TESTSRCDIR}/tst/common/pid/err.D_PROC_LIB.libdash.d \
64 ${TESTSRCDIR}/tst/common/pid/err.D_PROC_NAME.alldash.d \
65 ${TESTSRCDIR}/tst/common/pid/err.D_PROC_NAME.badname.d \
66 ${TESTSRCDIR}/tst/common/pid/err.D_PROC_NAME.globdash.d \
67 ${TESTSRCDIR}/tst/common/pid/err.D_PROC_OFF.toobig.d \
68 ${TESTSRCDIR}/tst/common/pid/tst.addprobes.ksh \
69 ${TESTSRCDIR}/tst/common/pid/tst.args1.c \
70 ${TESTSRCDIR}/tst/common/pid/tst.args1.d \
71 ${TESTSRCDIR}/tst/common/pid/tst.coverage.d \
72 ${TESTSRCDIR}/tst/common/pid/tst.emptystack.d \
73 ${TESTSRCDIR}/tst/common/pid/tst.float.c \
74 ${TESTSRCDIR}/tst/common/pid/tst.float.d \
75 ${TESTSRCDIR}/tst/common/pid/tst.fork.c \
76 ${TESTSRCDIR}/tst/common/pid/tst.fork.d \
77 ${TESTSRCDIR}/tst/common/pid/tst.gcc.c \
78 ${TESTSRCDIR}/tst/common/pid/tst.gcc.d \
79 ${TESTSRCDIR}/tst/common/pid/tst.main.ksh \
80 ${TESTSRCDIR}/tst/common/pid/tst.manypids.ksh \
81 ${TESTSRCDIR}/tst/common/pid/tst.probemod.ksh \
82 ${TESTSRCDIR}/tst/common/pid/tst.provregex1.ksh \
83 ${TESTSRCDIR}/tst/common/pid/tst.provregex2.ksh \
84 ${TESTSRCDIR}/tst/common/pid/tst.provregex3.ksh \
85 ${TESTSRCDIR}/tst/common/pid/tst.provregex4.ksh \
86 ${TESTSRCDIR}/tst/common/pid/tst.ret1.c \
87 ${TESTSRCDIR}/tst/common/pid/tst.ret1.d \
88 ${TESTSRCDIR}/tst/common/pid/tst.ret2.c \
89 ${TESTSRCDIR}/tst/common/pid/tst.ret2.d \
90 ${TESTSRCDIR}/tst/common/pid/tst.vfork.c \
91 ${TESTSRCDIR}/tst/common/pid/tst.vfork.d \
92 ${TESTSRCDIR}/tst/common/pid/tst.weak1.c \
93 ${TESTSRCDIR}/tst/common/pid/tst.weak1.d \
94 ${TESTSRCDIR}/tst/common/pid/tst.weak2.c \
95 ${TESTSRCDIR}/tst/common/pid/tst.weak2.d \
96 ${TESTSRCDIR}/tst/common/plockstat/tst.available.d \
97 ${TESTSRCDIR}/tst/common/plockstat/tst.libmap.d \
98 ${TESTSRCDIR}/tst/common/pointers/err.D_OP_LVAL.AddressChange.d \
99 ${TESTSRCDIR}/tst/common/pointers/tst.GlobalVar.d \
100 ${TESTSRCDIR}/tst/common/pointers/tst.basic1.d \
101 ${TESTSRCDIR}/tst/common/pointers/tst.basic2.d \
102 ${TESTSRCDIR}/tst/common/predicates/tst.argsnotcached.d \
103 ${TESTSRCDIR}/tst/common/printa/tst.walltimestamp.ksh \
104 ${TESTSRCDIR}/tst/common/printf/tst.basics.d \
105 ${TESTSRCDIR}/tst/common/printf/tst.printT.ksh \
106 ${TESTSRCDIR}/tst/common/printf/tst.printY.ksh \
107 ${TESTSRCDIR}/tst/common/printf/tst.str.d \
108 ${TESTSRCDIR}/tst/common/printf/tst.sym.d \
109 ${TESTSRCDIR}/tst/common/privs/tst.func_access.ksh \
110 ${TESTSRCDIR}/tst/common/privs/tst.op_access.ksh \
111 ${TESTSRCDIR}/tst/common/proc/tst.discard.ksh \
112 ${TESTSRCDIR}/tst/common/proc/tst.signal.ksh \
113 ${TESTSRCDIR}/tst/common/proc/tst.startexit.ksh \
114 ${TESTSRCDIR}/tst/common/profile-n/tst.ufuncsort.c \
115 ${TESTSRCDIR}/tst/common/scalars/tst.misc.d \
116 ${TESTSRCDIR}/tst/common/scalars/tst.selfarray2.d \
117 ${TESTSRCDIR}/tst/common/scripting/err.D_MACRO_UNDEF.invalidargs.d \
118 ${TESTSRCDIR}/tst/common/scripting/err.D_OP_LVAL.rdonly.d \
119 ${TESTSRCDIR}/tst/common/scripting/err.D_OP_WRITE.usepidmacro.d \
120 ${TESTSRCDIR}/tst/common/scripting/err.D_SYNTAX.concat.d \
121 ${TESTSRCDIR}/tst/common/scripting/err.D_SYNTAX.desc.d \
122 ${TESTSRCDIR}/tst/common/scripting/err.D_SYNTAX.inval.d \
123 ${TESTSRCDIR}/tst/common/scripting/err.D_SYNTAX.pid.d \
124 ${TESTSRCDIR}/tst/common/scripting/tst.arguments.ksh \
125 ${TESTSRCDIR}/tst/common/scripting/tst.egid.ksh \
126 ${TESTSRCDIR}/tst/common/scripting/tst.gid.ksh \
127 ${TESTSRCDIR}/tst/common/scripting/tst.projid.ksh \
128 ${TESTSRCDIR}/tst/common/scripting/tst.taskid.ksh \
129 ${TESTSRCDIR}/tst/common/speculation/err.D_ACT_SPEC.SpeculateWithBreakPoint.d \
130 ${TESTSRCDIR}/tst/common/speculation/err.D_ACT_SPEC.SpeculateWithChill.d \
131 ${TESTSRCDIR}/tst/common/speculation/err.D_ACT_SPEC.SpeculateWithCopyOut.d \
132 ${TESTSRCDIR}/tst/common/speculation/err.D_ACT_SPEC.SpeculateWithCopyOutStr.d \
133 ${TESTSRCDIR}/tst/common/speculation/err.D_ACT_SPEC.SpeculateWithPanic.d \
134 ${TESTSRCDIR}/tst/common/speculation/err.D_ACT_SPEC.SpeculateWithRaise.d \
135 ${TESTSRCDIR}/tst/common/speculation/err.D_ACT_SPEC.SpeculateWithStop.d \
136 ${TESTSRCDIR}/tst/common/syscall/tst.args.c \
137 ${TESTSRCDIR}/tst/common/syscall/tst.args.d \
138 ${TESTSRCDIR}/tst/common/syscall/tst.openret.ksh \
139 ${TESTSRCDIR}/tst/common/sysevent/tst.post.c \
140 ${TESTSRCDIR}/tst/common/sysevent/tst.post.d \
141 ${TESTSRCDIR}/tst/common/sysevent/tst.post_chan.c \
142 ${TESTSRCDIR}/tst/common/sysevent/tst.post_chan.d \
143 ${TESTSRCDIR}/tst/common/trace/tst.misc.d \
144 ${TESTSRCDIR}/tst/common/tracemem/err.D_TRACEMEM_ADDR.badaddr.d \
145 ${TESTSRCDIR}/tst/common/tracemem/tst.rootvp.d \
146 ${TESTSRCDIR}/tst/common/translators/tst.ProcModelTrans.d \
147 ${TESTSRCDIR}/tst/common/types/err.D_XLATE_REDECL.ResultDynType.d \
148 ${TESTSRCDIR}/tst/common/types/tst.ptrops.d \
149 ${TESTSRCDIR}/tst/common/types/tst.struct.d \
150 ${TESTSRCDIR}/tst/common/types/tst.typedef.d \
151 ${TESTSRCDIR}/tst/common/usdt/tst.argmap.c \
152 ${TESTSRCDIR}/tst/common/usdt/tst.args.c \
153 ${TESTSRCDIR}/tst/common/usdt/tst.forker.c \
154 ${TESTSRCDIR}/tst/common/ustack/tst.bigstack.c \
155 ${TESTSRCDIR}/tst/common/ustack/tst.spin.c \
156 ${TESTSRCDIR}/tst/common/vars/tst.ppid.d \
157 ${TESTSRCDIR}/tst/common/vars/tst.ucaller.ksh \
158 ${TESTSRCDIR}/tst/common/vars/tst.walltimestamp.d \
160 NOTWORK+= \
161 ${TESTSRCDIR}/tst/common/io/tst.fds.d \
162 ${TESTSRCDIR}/tst/common/java_api/tst.Abort.ksh \
163 ${TESTSRCDIR}/tst/common/java_api/tst.Bean.ksh \
164 ${TESTSRCDIR}/tst/common/java_api/tst.Close.ksh \
165 ${TESTSRCDIR}/tst/common/java_api/tst.Drop.ksh \
166 ${TESTSRCDIR}/tst/common/java_api/tst.Enable.ksh \
167 ${TESTSRCDIR}/tst/common/java_api/tst.FunctionLookup.ksh \
168 ${TESTSRCDIR}/tst/common/java_api/tst.MaxConsumers.ksh \
169 ${TESTSRCDIR}/tst/common/java_api/tst.MultiAggPrinta.ksh \
170 ${TESTSRCDIR}/tst/common/java_api/tst.ProbeData.ksh \
171 ${TESTSRCDIR}/tst/common/java_api/tst.ProbeDescription.ksh \
172 ${TESTSRCDIR}/tst/common/java_api/tst.StateMachine.ksh \
173 ${TESTSRCDIR}/tst/common/java_api/tst.StopLock.ksh \
174 ${TESTSRCDIR}/tst/common/java_api/tst.printa.d \
175 ${TESTSRCDIR}/tst/common/lexer/err.D_CHR_NL.char.d \
176 ${TESTSRCDIR}/tst/common/lexer/err.D_STR_NL.string.d \
177 ${TESTSRCDIR}/tst/common/mdb/tst.dtracedcmd.ksh \
178 ${TESTSRCDIR}/tst/common/mib/tst.icmp.ksh \
179 ${TESTSRCDIR}/tst/common/mib/tst.tcp.ksh \
180 ${TESTSRCDIR}/tst/common/mib/tst.udp.ksh \
181 ${TESTSRCDIR}/tst/common/profile-n/tst.func.ksh \
182 ${TESTSRCDIR}/tst/common/profile-n/tst.mod.ksh \
183 ${TESTSRCDIR}/tst/common/profile-n/tst.sym.ksh \
184 ${TESTSRCDIR}/tst/common/profile-n/tst.ufunc.ksh \
185 ${TESTSRCDIR}/tst/common/profile-n/tst.ufuncsort.ksh \
186 ${TESTSRCDIR}/tst/common/profile-n/tst.umod.ksh \
187 ${TESTSRCDIR}/tst/common/profile-n/tst.usym.ksh \
188 ${TESTSRCDIR}/tst/common/safety/tst.basename.d \
189 ${TESTSRCDIR}/tst/common/safety/tst.caller.d \
190 ${TESTSRCDIR}/tst/common/safety/tst.cleanpath.d \
191 ${TESTSRCDIR}/tst/common/safety/tst.copyin.d \
192 ${TESTSRCDIR}/tst/common/safety/tst.copyin2.d \
193 ${TESTSRCDIR}/tst/common/safety/tst.ddi_pathname.d \
194 ${TESTSRCDIR}/tst/common/safety/tst.dirname.d \
195 ${TESTSRCDIR}/tst/common/safety/tst.errno.d \
196 ${TESTSRCDIR}/tst/common/safety/tst.execname.d \
197 ${TESTSRCDIR}/tst/common/safety/tst.gid.d \
198 ${TESTSRCDIR}/tst/common/safety/tst.hton.d \
199 ${TESTSRCDIR}/tst/common/safety/tst.index.d \
200 ${TESTSRCDIR}/tst/common/safety/tst.msgdsize.d \
201 ${TESTSRCDIR}/tst/common/safety/tst.msgsize.d \
202 ${TESTSRCDIR}/tst/common/safety/tst.null.d \
203 ${TESTSRCDIR}/tst/common/safety/tst.pid.d \
204 ${TESTSRCDIR}/tst/common/safety/tst.ppid.d \
205 ${TESTSRCDIR}/tst/common/safety/tst.progenyof.d \
206 ${TESTSRCDIR}/tst/common/safety/tst.random.d \
207 ${TESTSRCDIR}/tst/common/safety/tst.rw.d \
208 ${TESTSRCDIR}/tst/common/safety/tst.shortstr.d \
209 ${TESTSRCDIR}/tst/common/safety/tst.stack.d \
210 ${TESTSRCDIR}/tst/common/safety/tst.stackdepth.d \
211 ${TESTSRCDIR}/tst/common/safety/tst.stddev.d \
212 ${TESTSRCDIR}/tst/common/safety/tst.strchr.d \
213 ${TESTSRCDIR}/tst/common/safety/tst.strjoin.d \
214 ${TESTSRCDIR}/tst/common/safety/tst.strstr.d \
215 ${TESTSRCDIR}/tst/common/safety/tst.strtok.d \
216 ${TESTSRCDIR}/tst/common/safety/tst.substr.d \
217 ${TESTSRCDIR}/tst/common/safety/tst.ucaller.d \
218 ${TESTSRCDIR}/tst/common/safety/tst.uid.d \
219 ${TESTSRCDIR}/tst/common/safety/tst.unalign.d \
220 ${TESTSRCDIR}/tst/common/safety/tst.uregs.d \
221 ${TESTSRCDIR}/tst/common/safety/tst.ustack.d \
222 ${TESTSRCDIR}/tst/common/safety/tst.ustackdepth.d \
223 ${TESTSRCDIR}/tst/common/safety/tst.vahole.d \
224 ${TESTSRCDIR}/tst/common/safety/tst.violentdeath.ksh \
225 ${TESTSRCDIR}/tst/common/safety/tst.zonename.d \
226 ${TESTSRCDIR}/tst/common/sched/tst.enqueue.d \
227 ${TESTSRCDIR}/tst/common/sched/tst.oncpu.d \
228 ${TESTSRCDIR}/tst/common/sched/tst.stackdepth.d \
229 ${TESTSRCDIR}/tst/common/usdt/argmap.d \
230 ${TESTSRCDIR}/tst/common/usdt/args.d \
231 ${TESTSRCDIR}/tst/common/usdt/forker.d \
232 ${TESTSRCDIR}/tst/common/usdt/tst.andpid.ksh \
233 ${TESTSRCDIR}/tst/common/usdt/tst.argmap.d \
234 ${TESTSRCDIR}/tst/common/usdt/tst.args.d \
235 ${TESTSRCDIR}/tst/common/usdt/tst.badguess.ksh \
236 ${TESTSRCDIR}/tst/common/usdt/tst.dlclose1.ksh \
237 ${TESTSRCDIR}/tst/common/usdt/tst.dlclose2.ksh \
238 ${TESTSRCDIR}/tst/common/usdt/tst.dlclose3.ksh \
239 ${TESTSRCDIR}/tst/common/usdt/tst.eliminate.ksh \
240 ${TESTSRCDIR}/tst/common/usdt/tst.enabled.ksh \
241 ${TESTSRCDIR}/tst/common/usdt/tst.entryreturn.ksh \
242 ${TESTSRCDIR}/tst/common/usdt/tst.fork.ksh \
243 ${TESTSRCDIR}/tst/common/usdt/tst.forker.ksh \
244 ${TESTSRCDIR}/tst/common/usdt/tst.guess32.ksh \
245 ${TESTSRCDIR}/tst/common/usdt/tst.guess64.ksh \
246 ${TESTSRCDIR}/tst/common/usdt/tst.header.ksh \
247 ${TESTSRCDIR}/tst/common/usdt/tst.include.ksh \
248 ${TESTSRCDIR}/tst/common/usdt/tst.linkpriv.ksh \
249 ${TESTSRCDIR}/tst/common/usdt/tst.linkunpriv.ksh \
250 ${TESTSRCDIR}/tst/common/usdt/tst.multiple.ksh \
251 ${TESTSRCDIR}/tst/common/usdt/tst.nodtrace.ksh \
252 ${TESTSRCDIR}/tst/common/usdt/tst.onlyenabled.ksh \
253 ${TESTSRCDIR}/tst/common/usdt/tst.reeval.ksh \
254 ${TESTSRCDIR}/tst/common/usdt/tst.static.ksh \
255 ${TESTSRCDIR}/tst/common/usdt/tst.static2.ksh \
256 ${TESTSRCDIR}/tst/common/usdt/tst.user.ksh \
257 ${TESTSRCDIR}/tst/common/ustack/tst.bigstack.d \
258 ${TESTSRCDIR}/tst/common/ustack/tst.depth.ksh \
259 ${TESTSRCDIR}/tst/common/ustack/tst.spin.ksh \
261 # --------------------------------------------------------------------------------
262 # Tests that just don't complete (even to fail) at the moment...
264 NOTWORK+= \
265 ${TESTSRCDIR}/tst/common/dtraceUtil/tst.ZeroModuleProbes.d.ksh \
266 ${TESTSRCDIR}/tst/common/printa/tst.many.d \
267 ${TESTSRCDIR}/tst/common/scalars/err.D_OP_INCOMPAT.dupgtype.d \
268 ${TESTSRCDIR}/tst/common/scalars/err.D_OP_INCOMPAT.dupltype.d \
269 ${TESTSRCDIR}/tst/common/scalars/err.D_OP_INCOMPAT.dupttype.d \
270 ${TESTSRCDIR}/tst/common/vars/tst.gid.d \
271 ${TESTSRCDIR}/tst/common/vars/tst.uid.d \
273 # --------------------------------------------------------------------------------
274 # Tests that currently hang the system:
276 NOTWORK+= \
277 ${TESTSRCDIR}/tst/common/fbtprovider/tst.basic.d \
278 ${TESTSRCDIR}/tst/common/fbtprovider/tst.return.d \
279 ${TESTSRCDIR}/tst/common/grammar/tst.stmts.d \
280 ${TESTSRCDIR}/tst/common/misc/tst.enablerace.ksh \
281 ${TESTSRCDIR}/tst/common/predicates/tst.predcache.ksh \
282 ${TESTSRCDIR}/tst/common/proc/tst.exitkilled.ksh \
284 .if ${MACHINE_ARCH} == "i386"
286 NOTWORK+= ${TESTSRCDIR}/tst/common/dtraceUtil/tst.DataModel64.d.ksh
288 NOTWORK+= ${TESTSRCDIR}/tst/common/dtraceUtil/tst.DataModel64.d.ksh
290 # --------------------------------------------------------------------------------
291 # This test causes i386 to go kaboom in a big way. There is a problem in the
292 # fbt exception code which needs to be fixed.
294 NOTWORK+= \
295 ${TESTSRCDIR}/tst/common/fbtprovider/tst.tailcall.d
297 # Some tests that don't complete on i386.... :-/
299 NOTWORK+= ${TESTSRCDIR}/tst/common/funcs/tst.chill.ksh
300 NOTWORK+= ${TESTSRCDIR}/tst/common/proc/tst.create.ksh
301 NOTWORK+= ${TESTSRCDIR}/tst/common/proc/tst.exec.ksh
302 NOTWORK+= ${TESTSRCDIR}/tst/common/proc/tst.execfail.ENOENT.ksh
303 NOTWORK+= ${TESTSRCDIR}/tst/common/proc/tst.execfail.ksh
304 NOTWORK+= ${TESTSRCDIR}/tst/common/proc/tst.exitcore.ksh
305 NOTWORK+= ${TESTSRCDIR}/tst/common/proc/tst.exitexit.ksh
306 NOTWORK+= ${TESTSRCDIR}/tst/common/proc/tst.exitkilled.ksh
307 NOTWORK+= ${TESTSRCDIR}/tst/common/proc/tst.signal.ksh
308 NOTWORK+= ${TESTSRCDIR}/tst/common/proc/tst.sigwait.c
309 NOTWORK+= ${TESTSRCDIR}/tst/common/proc/tst.sigwait.d
310 NOTWORK+= ${TESTSRCDIR}/tst/common/proc/tst.startexit.ksh
311 NOTWORK+= ${TESTSRCDIR}/tst/common/struct/tst.StructDataTypes.d
312 NOTWORK+= ${TESTSRCDIR}/tst/common/union/tst.UnionDataTypes.d
314 .endif
316 # --------------------------------------------------------------------------------
317 # Interrupt priority isn't relevant on FreeBSD.
319 NOTWORK+= ${TESTSRCDIR}/tst/common/builtinvar/tst.ipl.d \
320 ${TESTSRCDIR}/tst/common/builtinvar/tst.ipl1.d
322 # --------------------------------------------------------------------------------
323 # This test relies on the Solaris ping behaviour of exiting after a number of
324 # pings. On FreeBSD ping doesn't do that.
326 NOTWORK+= ${TESTSRCDIR}/tst/common/funcs/tst.system.d
328 # --------------------------------------------------------------------------------
329 # This test checks for a leading tab on a line before #define. That is illegal
330 # on Solaris, but the gcc pre-processor on FreeBSD is happy with code like that.
332 NOTWORK+= ${TESTSRCDIR}/tst/common/preprocessor/err.D_PRAGCTL_INVAL.tabdefine.d
334 # --------------------------------------------------------------------------------
335 # This test is coded to use Solaris syscall names. FreeBSD has none with 'lwp"
336 # in them, so the test fails because of that.
338 NOTWORK+= ${TESTSRCDIR}/tst/common/probes/tst.probestar.d
340 NOTYET= ${IGNORE} ${NOTWORK}
342 # --------------------------------------------------------------------------------
343 # Only prepare the test lists if we need to:
345 .if !make(obj) && !make(clean) && !make(cleandir) && !make(listerrors)
347 # --------------------------------------------------------------------------------
348 # Get a list of tests, named according to the directory they are in:
350 _COMMONDIRS!= cd ${TESTSRCDIR}/tst/common; find . -depth 1 -type d
351 COMMONDIRS= ${_COMMONDIRS:S/.\///}
353 listtests :
354 @echo ${COMMONDIRS}
356 # --------------------------------------------------------------------------------
357 # Create a test target for each directory:
359 ALL_TESTFILES=
361 # Process each common test directory:
362 .for _d in ${COMMONDIRS}
364 # Get a list of test files in the test directory:
365 ${_d}_ERR!= find ${TESTSRCDIR}/tst/common/${_d} -name "err.*.d"
366 ${_d}_TSTD!= find ${TESTSRCDIR}/tst/common/${_d} -name "tst.*.d"
367 ${_d}_TSTC!= find ${TESTSRCDIR}/tst/common/${_d} -name "tst.*.c"
368 ${_d}_SHERR!= find ${TESTSRCDIR}/tst/common/${_d} -name "err.*.ksh"
369 ${_d}_SHTST!= find ${TESTSRCDIR}/tst/common/${_d} -name "tst.*.ksh"
370 ${_d}_TF= ${${_d}_ERR} ${${_d}_TSTD} ${${_d}_SHERR} ${${_d}_SHTST}
372 # Go through the list of test files and prepare another list that contains
373 # none of the test files listed in the NOTYET list:
374 .for _f in ${${_d}_TF}
375 .if (${NOTYET:M${_f}} == "")
376 ${_d}_TFS+= ${_f}
377 .endif
378 .endfor
380 # Add the list of tests to the overall test list:
381 ALL_TESTFILES+= ${${_d}_TFS}
383 .for _f in ${${_d}_TSTC}
384 .if (${NOTYET:M${_f}} == "")
385 ${_d}_TFCS+= ${_f}
386 .endif
387 .endfor
389 ALL_TESTCFILES+= ${${_d}_TFCS}
391 ${_d} : ${${_d}_TFCS:T:S/c$/exe/}
392 @${DTEST} ${${_d}_TFS}
393 .endfor
395 # --------------------------------------------------------------------------------
398 PRGS= ${ALL_TESTCFILES:T:S/c$/exe/}
400 listprgs :
401 @echo ${PRGS}
403 # --------------------------------------------------------------------------------
406 .for _f in ${ALL_TESTCFILES}
407 ${_f:T:S/c$/exe/} : ${_f}
408 gcc -o ${.TARGET} ${_f} -lrt
409 .endfor
411 listcfiles :
412 @echo ${ALL_TESTCFILES}
414 # --------------------------------------------------------------------------------
415 # A target to build all tests:
417 all : ${PRGS}
418 @sync; sync; sync; sync; sync
419 @${DTEST} ${ALL_TESTFILES}
421 # --------------------------------------------------------------------------------
422 # A target to build the tests flagged as not working yet:
424 ignore :
425 @${DTEST} ${IGNORE}
427 .endif
429 listerrors :
430 @find ${.OBJDIR} -name "*.err" -exec cat {} \; -print
433 # --------------------------------------------------------------------------------
434 # Test failures are written to failure.N directories in the object tree.
435 # Get a list of directories in the object tree for 'make clean'.
437 .if ${.OBJDIR} != ${.CURDIR} && !empty(${.OBJDIR})
438 CLEANDIRS!= cd ${.OBJDIR} && ls -d *
439 .endif
441 # --------------------------------------------------------------------------------
442 # Insist on using an object directory. Things get messy otherwsie.
444 .if ${.OBJDIR} == ${.CURDIR} && !make(obj) && !make(clean) && !make(cleandir)
445 .error ERROR: You must run 'make obj' first!
446 .endif
448 # --------------------------------------------------------------------------------
449 # Load the DTrace module set if necessary.
451 .BEGIN :
452 @if ! kldstat -q -m dtrace_test; then kldload dtrace_test; fi
454 .include <bsd.obj.mk>