[runtime] Add test for icall wrapper rethrowing and exception length
[mono-project.git] / mono / tests / Makefile.am
blob830ce60c80f9c917323db146c3207ca4ca86036c
1 include $(top_srcdir)/mk/common.mk
3 SUBDIRS = gc-descriptors . testing_gac assembly-load-reference
5 check-local:
6         ok=:; \
7         $(MAKE) test-tailcall || ok=false; \
8         $(MAKE) test-jit || ok=false; \
9         $(MAKE) test-generic-sharing || ok=false; \
10         $(MAKE) test-type-load || ok=false; \
11         $(MAKE) test-multi-netmodule || ok=false; \
12         $(MAKE) test-cattr-type-load || ok=false; \
13         $(MAKE) test-reflection-load-with-context || ok=false; \
14         $(MAKE) test-platform || ok=false; \
15         $(MAKE) test-console-output || ok=false; \
16         $(MAKE) test-env-options || ok=false; \
17         $(MAKE) test-unhandled-exception-2 || ok=false; \
18         $(MAKE) test-appdomain-unload || ok=false; \
19         $(MAKE) test-process-stress || ok=false; \
20         $(MAKE) test-pedump || ok=false; \
21         $(MAKE) test-internalsvisibleto || ok=false; \
22         $(MAKE) rm-empty-logs || ok=false; \
23         $(MAKE) runtest-gac-loading || ok=false; \
24         $(MAKE) runtest-assembly-load-reference || ok=false; \
25         $$ok
27 BUILT_SOURCES =
29 ARRAY_COOP_CS=\
30         array-coop-bigvt.cs     \
31         array-coop-int.cs       \
32         array-coop-smallvt.cs
34 BUILT_SOURCES += $(ARRAY_COOP_CS)
36 array-coop-bigvt.cs: array-coop-bigvt.sh array-coop-1.cs array-coop-2.cs
37          . $(srcdir)/array-coop-bigvt.sh $(srcdir) > $@
39 array-coop-smallvt.cs: array-coop-smallvt.sh array-coop-1.cs array-coop-2.cs
40          . $(srcdir)/array-coop-smallvt.sh $(srcdir) > $@
42 array-coop-int.cs: array-coop-int.sh array-coop-1.cs array-coop-2.cs
43          . $(srcdir)/array-coop-int.sh $(srcdir) > $@
45 # These are not actually tests, but they are source files part of another test.
46 TAILCALL_DISABLED_TESTS_COMPILE = \
47         tailcall/coreclr/JIT/opt/Tailcall/TailcallVerifyTransparentLibraryWithPrefix.exe \
48         tailcall/coreclr/JIT/opt/Tailcall/TailcallVerifyVerifiableLibraryWithPrefix.exe
50 # FIXME valuetype parameter.
51 TAILCALL_DISABLED_TESTS_COMPILE += \
52         tailcall/coreclr/JIT/opt/ETW/TailCallCases.exe
54 # FIXME Some of these sound like negative tests -- "badtailcall". Verify and automate.
55 # FIXME investigate and explain every test failure.
56 TAILCALL_DISABLED_TESTS_RUN = \
57         tailcall/coreclr/JIT/Directed/IL/PInvokeTail/tailwinapi.exe \
58         tailcall/coreclr/JIT/Directed/IL/Tailcall/Jittailcall2.exe \
59         tailcall/coreclr/JIT/Directed/IL/mutualrecur-tailcall/MutualRecur-TailCall.exe \
60         tailcall/coreclr/JIT/Directed/coverage/importer/Desktop/badtailcall.exe \
61         tailcall/coreclr/JIT/Directed/coverage/importer/badtailcall.exe \
62         tailcall/coreclr/JIT/Directed/pinvoke/tail.exe \
63         tailcall/coreclr/JIT/IL_Conformance/Old/Base/tailcall.exe \
64         tailcall/coreclr/JIT/Methodical/Invoke/fptr/recurse_tail_call.exe \
65         tailcall/coreclr/JIT/Methodical/Invoke/fptr/recurse_tail_calli.exe \
66         tailcall/coreclr/JIT/Methodical/tailcall/deep_array.exe \
67         tailcall/coreclr/JIT/Methodical/tailcall/deep_array_nz.exe \
68         tailcall/coreclr/JIT/Methodical/tailcall/gcval_nested.exe \
69         tailcall/coreclr/JIT/Methodical/tailcall/pointer_i.exe \
70         tailcall/coreclr/JIT/Methodical/tailcall/pointer.exe \
71         tailcall/coreclr/JIT/Methodical/tailcall/reference_i.exe \
72         tailcall/coreclr/JIT/Methodical/tailcall/test_implicit.exe \
73         tailcall/coreclr/JIT/Methodical/tailcall/test_mutual_rec.exe \
74         tailcall/coreclr/JIT/Methodical/tailcall/test_switch.exe \
75         tailcall/coreclr/JIT/Methodical/tailcall_v4/delegateTail.exe \
76         tailcall/coreclr/JIT/Methodical/tailcall_v4/hijacking.exe \
77         tailcall/coreclr/JIT/Methodical/tailcall_v4/smallFrame.exe \
78         tailcall/coreclr/JIT/Methodical/tailcall_v4/tailcall_AV.exe \
79         tailcall/coreclr/JIT/Regression/VS-ia64-JIT/V1.2-M02/b102844/tailcallcalli.exe \
80         tailcall/coreclr/JIT/opt/Tailcall/TailcallVerifyWithPrefix.exe \
81         $(TAILCALL_DISABLED_TESTS_COMPILE)
83 # FIXME investigate and explain every test failure.
84 TAILCALL_DISABLED_TESTS_RUN += \
85         tailcall/coreclr/JIT/Methodical/Boxing/misc/tailjump.exe \
86         tailcall/coreclr/JIT/Methodical/tailcall/deep_gc.exe \
87         tailcall/coreclr/JIT/Methodical/tailcall/deep_inst.exe \
88         tailcall/coreclr/JIT/Methodical/tailcall/deep_value.exe \
89         tailcall/coreclr/JIT/Methodical/tailcall/deep_virt.exe \
90         tailcall/coreclr/JIT/Methodical/tailcall/gcval.exe \
91         tailcall/coreclr/JIT/Methodical/tailcall/gcval_sideeffect.exe \
92         tailcall/coreclr/JIT/Methodical/tailcall/test_3b.exe \
93         tailcall/coreclr/JIT/Methodical/tailcall_v4/delegateParamCallTarget.exe
95 if X86
96 TAILCALL_DISABLED_TESTS_RUN += tailcall/coreclr/JIT/Methodical/nonvirtualcall/tailcall.exe
97 endif
99 if FULL_AOT_TESTS
101 # FullAOT Assertion at method-to-ir.c:9203, condition `*ip == CEE_RET' not met
102 # This should raise a bad image format exception.
103 TAILCALL_DISABLED_TESTS_COMPILE += \
104         tailcall/coreclr/JIT/opt/Tailcall/TailcallVerifyWithPrefix.exe
106 # return type mismatch (float32 vs. float64)
107 #       tailcall/coreclr/JIT/Methodical/tailcall/compat_r8_r4_inl.exe
108 #       tailcall/coreclr/JIT/Methodical/tailcall/compat_r4_r8_inl.exe
110 # return type mismatch (int32 vs. enum)
111 #       tailcall/coreclr/JIT/Methodical/tailcall/compat_enum.exe
113 # FIXME depends on msvcrt.dll, and calli
114 #       tailcall/coreclr/JIT/Directed/IL/PInvokeTail/PInvokeTail.exe
116 # FIXME reference parameter; requires range check to allow
117 #       tailcall/coreclr/JIT/Directed/zeroinit/tail.exe
119 # Tests that fail assert about tailcall.
120 TAILCALL_DISABLED_TESTS_RUN += \
121         tailcall/coreclr/JIT/Directed/IL/PInvokeTail/tailwinapi.exe \
122         tailcall/coreclr/JIT/Directed/pinvoke/tail.exe \
123         tailcall/coreclr/JIT/Methodical/Invoke/fptr/recurse_tail_call.exe \
124         tailcall/coreclr/JIT/Methodical/Invoke/fptr/recurse_tail_calli.exe \
125         tailcall/coreclr/JIT/Methodical/tailcall/Desktop/thread-race.exe \
126         tailcall/coreclr/JIT/Methodical/tailcall/deep_array_nz.exe \
127         tailcall/coreclr/JIT/Methodical/tailcall/pointer.exe \
128         tailcall/coreclr/JIT/Methodical/tailcall/reference_i.exe \
129         tailcall/coreclr/JIT/Methodical/tailcall/test_mutual_rec.exe \
130         tailcall/coreclr/JIT/Methodical/tailcall_v4/delegateTail.exe \
131         tailcall/coreclr/JIT/Methodical/tailcall_v4/tailcall_AV.exe \
132         tailcall/coreclr/JIT/Regression/VS-ia64-JIT/V1.2-M02/b102844/tailcallcalli.exe
134 # This test is also slow, though its sleep can be dialed down.
135 #TAILCALL_DISABLED_TESTS_RUN += tailcall/coreclr/JIT/Methodical/tailcall_v4/hijacking.exe
137 endif
139 compile-tailcall: $(TESTS_TAILCALL_COMPILE) $(TESTSAOT_TAILCALL)
141 if FULL_AOT_TESTS
143 # FullAOT does not allow --compile-all.
145 else
147 TEST_TAILCALL_COMPILE_ALL=--runtime-args "--compile-all"
149 endif
151 test-tailcall: compile-tailcall test-runner.exe
152         MONO_DEBUG=test-tailcall-require $(TOOLS_RUNTIME) --debug $(TEST_RUNNER) -j a $(TEST_TAILCALL_COMPILE_ALL) --testsuite-name "runtime-tailcall" --timeout 300 --disabled "$(DISABLED_TESTS)" $(TESTS_TAILCALL_RUN)
154 check-full:
155         ok=; \
156         $(MAKE) test-sgen || ok=false; \
157         $(MAKE) check-local || ok=false; \
158         $$ok
160 check-parallel:
161         ok=; \
162         $(MAKE) compile-tests; \
163         $(MAKE) check-full || ok=false; \
164         $$ok
166 check-coreclr:
167         $(MAKE) -C $(mono_build_root)/acceptance-tests check-coreclr
169 check-stress:
170         $(MAKE) test-stress-sgen
172 # for backwards compatibility on Wrench
173 test-wrench: check-parallel
175 aotcheck: testaot gshared-aot
177 JITTEST_PROG = $(if $(VALGRIND), valgrind $(VALGRIND_ARGS),) $(if $(SGEN),$(top_builddir)/mono/mini/mono-sgen,$(top_builddir)/mono/mini/mono)
179 JITTEST_PROG_RUN = MONO_CFG_DIR=$(mono_build_root)/runtime/etc $(LIBTOOL) --mode=execute $(JITTEST_PROG)
182 RUNTIME_ARGS=--config tests-config --optimize=all --debug
183 TEST_RUNTIME_ARGS ?= $(RUNTIME_ARGS)
184 TEST_AOT_BUILD_FLAGS ?= $(AOT_BUILD_FLAGS)
185 TEST_AOT_RUN_FLAGS ?= $(AOT_RUN_FLAGS)
187 CLASS=$(mcs_topdir)/class/lib/$(DEFAULT_PROFILE)
189 with_mono_path = MONO_PATH=$(CLASS)
191 RUNTIME = $(with_mono_path) $(top_builddir)/runtime/mono-wrapper
192 TOOLS_RUNTIME = MONO_PATH=$(mcs_topdir)/class/lib/build $(top_builddir)/runtime/mono-wrapper --aot-path=$(mcs_topdir)/class/lib/build
194 MKBUNDLE = \
195         PKG_CONFIG_PATH=$(top_builddir):$(PKG_CONFIG_PATH) \
196         $(RUNTIME) $(CLASS)/mkbundle.exe
198 if FULL_AOT_TESTS
199 PROFILE_MCS_FLAGS = -d:MOBILE,MOBILE_LEGACY,FULL_AOT_DESKTOP 
200 endif
202 if HYBRID_AOT_TESTS
203 PROFILE_MCS_FLAGS = -d:MOBILE,MOBILE_LEGACY 
204 endif
206 MCS_NO_UNSAFE = $(TOOLS_RUNTIME) $(CSC) -debug:portable \
207         -noconfig -nologo \
208         -nowarn:0162 -nowarn:0168 -nowarn:0219 -nowarn:0414 -nowarn:0618 \
209         -nowarn:0169 -nowarn:1690 -nowarn:0649 -nowarn:0612 -nowarn:3021 \
210         -nowarn:0197 -langversion:latest $(PROFILE_MCS_FLAGS)
211 MCS_NO_LIB = $(MCS_NO_UNSAFE) -unsafe
213 MCS = $(MCS_NO_LIB)
215 ILASM = $(TOOLS_RUNTIME) $(mcs_topdir)/class/lib/build/ilasm.exe
217 TEST_RUNNER = ./test-runner.exe
219 if HOST_WIN32
220 TEST_RUNNER += --config tests-config --runtime "$(if $(MONO_EXECUTABLE),$(shell cygpath -w -a $(MONO_EXECUTABLE) | sed 's/\\/\\\\/g'),$(top_builddir)/runtime/mono-wrapper)"
221 else
222 TEST_RUNNER += --config tests-config --runtime "$(if $(MONO_EXECUTABLE),$(MONO_EXECUTABLE),$(top_builddir)/runtime/mono-wrapper)"
223 endif
225 TEST_RUNNER += --mono-path "$(CLASS)"
227 if FULL_AOT_TESTS
228 TEST_RUNNER += --runtime-args "$(TEST_AOT_RUN_FLAGS)"
229 endif
231 if HYBRID_AOT_TESTS
232 TEST_RUNNER += --runtime-args "$(TEST_AOT_RUN_FLAGS)"
233 endif
235 TEST_RUNNER += --runtime-args "$(TEST_RUNTIME_FLAGS)"
237 TEST_RUNNER += $(if $(V), --verbose,)
239 TESTS_BENCH_SRC=fib.cs random.cs nested-loops.cs ackermann.cs tight-loop.cs sieve.cs
241 TESTS_STRESS_SRC=       \
242         abort-stress-1.cs       \
243         abort-stress-2.cs       \
244         abort-stress-3.cs       \
245         domain-stress.cs        \
246         gchandle-stress.cs      \
247         monitor-stress.cs       \
248         thread-stress.cs        \
249         gc-stress.cs            \
250         gc-copy-stress.cs       \
251         gc-graystack-stress.cs          \
252         exit-stress.cs          \
253         process-stress.cs       \
254         assembly-load-stress.cs
256 # Disabled until ?mcs is fixed
257 #       bug-331958.cs
258 TESTS_CS_SRC=           \
259         generic-unloading-sub.2.cs      \
260         create-instance.cs      \
261         bug-2907.cs             \
262         $(ARRAY_COOP_CS)        \
263         array-init.cs           \
264         arraylist.cs            \
265         assembly-load-remap.cs  \
266         assembly-load-bytes.cs  \
267         assembly-loadfile.cs    \
268         assembly-loadfrom.cs    \
269         assembly-load-bytes-bindingredirect.cs  \
270         assembly-loadfile-bindingredirect.cs    \
271         assembly-loadfrom-bindingredirect.cs    \
272         assembly-loadfrom-simplename.cs \
273         assemblyresolve_event.cs        \
274         assemblyresolve_event3.cs       \
275         assemblyresolve_event4.cs       \
276         assemblyresolve_event5.cs       \
277         assemblyresolve_event6.cs       \
278         checked.cs              \
279         char-isnumber.cs        \
280         field-layout.cs         \
281         pack-layout.cs          \
282         pack-bug.cs             \
283         hash-table.cs           \
284         test-ops.cs             \
285         obj.cs                  \
286         test-dup-mp.cs          \
287         string.cs               \
288         stringbuilder.cs        \
289         switch.cs               \
290         outparm.cs              \
291         delegate.cs             \
292         bitconverter.cs         \
293         exception.cs            \
294         exception2.cs           \
295         exception3.cs           \
296         exception4.cs           \
297         exception5.cs           \
298         exception6.cs           \
299         exception7.cs           \
300         exception8.cs           \
301         exception10.cs          \
302         exception11.cs          \
303         exception12.cs          \
304         exception13.cs          \
305         exception14.cs          \
306         exception15.cs          \
307         exception16.cs          \
308         exception17.cs          \
309         exception18.cs          \
310         exception-invokes.cs            \
311         exception19.cs          \
312         exception20.cs          \
313         typeload-unaligned.cs   \
314         struct.cs               \
315         valuetype-gettype.cs    \
316         typeof-ptr.cs           \
317         static-constructor.cs   \
318         pinvoke.cs              \
319         pinvoke-utf8.cs         \
320         pinvoke3.cs             \
321         pinvoke11.cs            \
322         pinvoke13.cs            \
323         pinvoke17.cs            \
324         invoke.cs               \
325         invoke2.cs              \
326         runtime-invoke.cs               \
327         invoke-string-ctors.cs          \
328         reinit.cs               \
329         box.cs                  \
330         array.cs                \
331         enum.cs                 \
332         enum2.cs                \
333         enum-intrins.cs         \
334         property.cs             \
335         enumcast.cs             \
336         assignable-tests.cs     \
337         array-cast.cs           \
338         array-subtype-attr.cs   \
339         cattr-compile.cs        \
340         cattr-field.cs          \
341         cattr-object.cs         \
342         custom-attr.cs          \
343         double-cast.cs          \
344         newobj-valuetype.cs     \
345         arraylist-clone.cs      \
346         setenv.cs               \
347         vtype.cs                \
348         isvaluetype.cs          \
349         iface6.cs               \
350         iface7.cs               \
351         ipaddress.cs            \
352         array-vt.cs             \
353         interface1.cs           \
354         reflection-enum.cs      \
355         reflection-prop.cs      \
356         reflection4.cs          \
357         reflection5.cs          \
358         reflection-const-field.cs \
359         many-locals.cs          \
360         string-compare.cs       \
361         test-prime.cs           \
362         test-tls.cs             \
363         params.cs               \
364         reflection.cs           \
365         interface.cs            \
366         iface.cs                \
367         iface2.cs               \
368         iface3.cs               \
369         iface4.cs               \
370         iface-large.cs          \
371         iface-contravariant1.cs \
372         virtual-method.cs       \
373         intptrcast.cs           \
374         indexer.cs              \
375         stream.cs               \
376         console.cs              \
377         shift.cs                \
378         jit-int.cs              \
379         jit-uint.cs             \
380         jit-long.cs             \
381         long.cs                 \
382         jit-ulong.cs            \
383         jit-float.cs            \
384         pop.cs                  \
385         time.cs                 \
386         pointer.cs              \
387         hashcode.cs             \
388         delegate1.cs            \
389         delegate2.cs            \
390         delegate3.cs            \
391         delegate5.cs            \
392         delegate6.cs            \
393         delegate7.cs            \
394         delegate8.cs            \
395         delegate10.cs           \
396         delegate11.cs           \
397         delegate12.cs           \
398         delegate13.cs           \
399         delegate14.cs           \
400         delegate15.cs           \
401         largeexp.cs             \
402         largeexp2.cs            \
403         marshalbyref1.cs        \
404         static-ctor.cs          \
405         inctest.cs              \
406         bound.cs                \
407         array-invoke.cs         \
408         test-arr.cs             \
409         decimal.cs              \
410         decimal-array.cs        \
411         marshal.cs              \
412         marshal1.cs             \
413         marshal2.cs             \
414         marshal3.cs             \
415         marshal5.cs             \
416         marshal6.cs             \
417         marshal7.cs             \
418         marshal8.cs             \
419         marshal9.cs             \
420         marshalbool.cs          \
421         test-byval-in-struct.cs \
422         thread.cs               \
423         thread5.cs              \
424         thread-static.cs        \
425         thread-static-init.cs   \
426         context-static.cs       \
427         float-pop.cs            \
428         interfacecast.cs        \
429         array3.cs               \
430         classinit.cs            \
431         classinit2.cs           \
432         classinit3.cs           \
433         synchronized.cs         \
434         async_read.cs           \
435         threadpool.cs           \
436         threadpool1.cs          \
437         threadpool-exceptions1.cs \
438         threadpool-exceptions2.cs \
439         threadpool-exceptions3.cs \
440         threadpool-exceptions4.cs \
441         threadpool-exceptions5.cs \
442         threadpool-exceptions6.cs \
443         base-definition.cs      \
444         bug-27420.cs            \
445         bug-46781.cs            \
446         bug-42136.cs            \
447         bug-59286.cs            \
448         bug-70561.cs            \
449         bug-78311.cs            \
450         bug-78653.cs            \
451         bug-78656.cs            \
452         bug-77127.cs            \
453         bug-323114.cs           \
454         bug-Xamarin-5278.cs     \
455         interlocked.cs          \
456         delegate-async-exit.cs  \
457         delegate-delegate-exit.cs       \
458         delegate-exit.cs        \
459         delegate-disposed-hashcode.cs   \
460         finalizer-abort.cs      \
461         finalizer-exception.cs  \
462         finalizer-exit.cs       \
463         finalizer-thread.cs     \
464         main-exit.cs    \
465         main-returns-abort-resetabort.cs        \
466         main-returns-background-abort-resetabort.cs     \
467         main-returns-background-resetabort.cs   \
468         main-returns-background.cs      \
469         main-returns-background-change.cs       \
470         main-returns.cs         \
471         subthread-exit.cs       \
472         desweak.cs              \
473         exists.cs               \
474         handleref.cs    \
475         install_eh_callback.cs  \
476         dbnull-missing.cs       \
477         test-type-ctor.cs       \
478         soft-float-tests.cs     \
479         thread-exit.cs          \
480         finalize-parent.cs      \
481         interlocked-2.2.cs      \
482         pinvoke-2.2.cs          \
483         bug-78431.2.cs          \
484         bug-79684.2.cs          \
485         catch-generics.2.cs     \
486         event-get.2.cs          \
487         safehandle.2.cs         \
488         module-cctor-loader.2.cs        \
489         generics-invoke-byref.2.cs      \
490         generic-signature-compare.2.cs  \
491         generics-sharing.2.cs   \
492         shared-generic-methods.2.cs     \
493         shared-generic-synchronized.2.cs        \
494         generic-inlining.2.cs   \
495         generic-initobj.2.cs    \
496         generic-delegate.2.cs   \
497         generic-sizeof.2.cs     \
498         generic-virtual.2.cs    \
499         generic-interface-methods.2.cs  \
500         generic-array-type.2.cs \
501         generic-method-patching.2.cs    \
502         generic-static-methods.2.cs     \
503         generic-null-call.2.cs  \
504         generic-special.2.cs    \
505         generic-special2.2.cs   \
506         generic-exceptions.2.cs \
507         generic-virtual2.2.cs   \
508         generic-valuetype-interface.2.cs        \
509         generic-getgenericarguments.2.cs        \
510         generic-synchronized.2.cs       \
511         generic-delegate-ctor.2.cs      \
512         generic-array-iface-set.2.cs    \
513         generic-typedef.2.cs    \
514         bug-431413.2.cs \
515         bug-459285.2.cs \
516         generic-virtual-invoke.2.cs     \
517         bug-461198.2.cs \
518         generic-sealed-virtual.2.cs     \
519         generic-system-arrays.2.cs      \
520         generic-stack-traces.2.cs       \
521         generic-stack-traces2.2.cs      \
522         bug-472600.2.cs \
523         recursive-generics.2.cs \
524         bug-473482.2.cs \
525         bug-473999.2.cs \
526         bug-479763.2.cs \
527         bug-616463.cs   \
528         bug-80392.2.cs          \
529         bug-82194.2.cs  \
530         anonarray.2.cs  \
531         ienumerator-interfaces.2.cs     \
532         array-enumerator-ifaces.2.cs    \
533         generic_type_definition_encoding.2.cs \
534         bug-333798.2.cs         \
535         bug-348522.2.cs         \
536         bug-340662_bug.cs       \
537         bug-325283.2.cs \
538         thunks.cs \
539         winx64structs.cs \
540         nullable_boxing.2.cs    \
541         valuetype-equals.cs     \
542         custom-modifiers.2.cs   \
543         custom-modifiers-inheritance.cs \
544         bug-382986.cs   \
545         test-inline-call-stack.cs       \
546         bug-324535.cs   \
547         modules.cs      \
548         bug-81673.cs    \
549         bug-81691.cs    \
550         bug-415577.cs   \
551         filter-stack.cs \
552         vararg.cs       \
553         vararg2.cs      \
554         bug-461867.cs   \
555         bug-461941.cs   \
556         bug-461261.cs   \
557         bug-400716.cs   \
558         bug-459094.cs   \
559         bug-467456.cs   \
560         bug-508538.cs   \
561         bug-472692.2.cs         \
562         gchandles.cs    \
563         interlocked-3.cs        \
564         interlocked-4.2.cs      \
565         w32message.cs   \
566         gc-altstack.cs  \
567         large-gc-bitmap.cs      \
568         bug-561239.cs   \
569         bug-562150.cs   \
570         bug-599469.cs   \
571         monitor-resurrection.cs \
572         monitor-wait-abort.cs   \
573         monitor-abort.cs        \
574         bug-666008.cs   \
575         bug-685908.cs   \
576         sgen-long-vtype.cs      \
577         delegate-invoke.cs      \
578         delegate-prop.cs        \
579         bug-696593.cs   \
580         bug-705140.cs   \
581         bug-1147.cs     \
582         mono-path.cs    \
583         bug-bxc-795.cs  \
584         bug-3903.cs     \
585         async-with-cb-throws.cs \
586         bug-6148.cs     \
587         bug-10127.cs    \
588         bug-18026.cs    \
589         allow-synchronous-major.cs      \
590         block_guard_restore_aligment_on_exit.cs \
591         thread_static_gc_layout.cs \
592         sleep.cs \
593         bug-27147.cs    \
594         bug-30085.cs    \
595         bug-17537.cs    \
596         pinvoke_ppcc.cs \
597         pinvoke_ppcs.cs \
598         pinvoke_ppci.cs \
599         pinvoke_ppcf.cs \
600         pinvoke_ppcd.cs \
601         bug-29585.cs    \
602         priority.cs     \
603         abort-cctor.cs  \
604         abort-try-holes.cs \
605         thread-native-exit.cs \
606         reference-loader.cs \
607         thread-suspend-suspended.cs \
608         thread-suspend-selfsuspended.cs \
609         remoting4.cs    \
610         remoting1.cs    \
611         remoting2.cs    \
612         remoting3.cs    \
613         remoting5.cs    \
614         appdomain.cs    \
615         appdomain-client.cs     \
616         appdomain-unload.cs     \
617         appdomain-async-invoke.cs       \
618         appdomain-thread-abort.cs       \
619         appdomain1.cs   \
620         appdomain2.cs   \
621         appdomain-exit.cs       \
622         appdomain-serialize-exception.cs \
623         assemblyresolve_event2.2.cs     \
624         appdomain-unload-callback.cs    \
625         appdomain-unload-doesnot-raise-pending-events.cs        \
626         appdomain-unload-asmload.cs     \
627         appdomain-unload-exception.cs   \
628         unload-appdomain-on-shutdown.cs \
629         appdomain-marshalbyref-assemblyload.cs \
630         bug-47295.cs    \
631         loader.cs       \
632         pinvoke2.cs     \
633         generic-type-builder.2.cs       \
634         dynamic-generic-size.cs \
635         cominterop.cs   \
636         dynamic-method-access.2.cs      \
637         dynamic-method-finalize.2.cs    \
638         dynamic-method-stack-traces.cs  \
639         generic_type_definition.2.cs    \
640         bug-333798-tb.2.cs      \
641         bug-335131.2.cs \
642         bug-322722_patch_bx.2.cs        \
643         bug-322722_dyn_method_throw.2.cs        \
644         bug-389886-2.cs \
645         bug-349190.2.cs \
646         bug-389886-sre-generic-interface-instances.cs   \
647         bug-462592.cs   \
648         bug-575941.cs   \
649         bug-389886-3.cs \
650         constant-division.cs    \
651         dynamic-method-resurrection.cs  \
652         bug-80307.cs    \
653         assembly_append_ordering.cs     \
654         bug-544446.cs   \
655         bug-36848.cs    \
656         generic-marshalbyref.2.cs       \
657         stackframes-async.2.cs  \
658         transparentproxy.cs     \
659         bug-48015.cs    \
660         delegate9.cs    \
661         marshal-valuetypes.cs   \
662         xdomain-threads.cs      \
663         monitor.cs      \
664         generic-xdomain.2.cs    \
665         threadpool-exceptions7.cs       \
666         cross-domain.cs \
667         generic-unloading.2.cs  \
668         namedmutex-destroy-race.cs      \
669         thread6.cs      \
670         thread7.cs      \
671         appdomain-threadpool-unload.cs  \
672         process-unref-race.cs   \
673         bug-46661.cs    \
674         w32message.cs \
675         runtime-invoke.gen.cs \
676         imt_big_iface_test.cs \
677         bug-58782-plain-throw.cs \
678         bug-58782-capture-and-throw.cs \
679         recursive-struct-arrays.cs \
680         struct-explicit-layout.cs \
681         bug-59281.cs    \
682         init_array_with_lazy_type.cs \
683         weak-fields.cs \
684         threads-leak.cs \
685         threads-init.cs \
686         bug-60848.cs \
687         bug-59400.cs \
688         tailcall-generic-cast-cs.cs \
689         tailcall-interface.cs \
690         bug-60843.cs    \
691         nested_type_visibility.cs       \
692         dynamic-method-churn.cs \
693         verbose.cs \
694         generic-unmanaged-constraint.cs
696 # some tests fail to compile on mcs
697 if CSC_IS_ROSLYN
698 TESTS_CS_SRC += roslyn-bug-19038.cs sizeof-empty-structs.cs
699 endif
701 if AMD64
702 TESTS_CS_SRC += async-exc-compilation.cs finally_guard.cs finally_block_ending_in_dead_bb.cs
703 if !HOST_WIN32
704 # requires working altstack
705 TESTS_CS_SRC += bug-60862.cs
706 endif
707 endif
709 if X86
710 TESTS_CS_SRC += async-exc-compilation.cs finally_guard.cs finally_block_ending_in_dead_bb.cs
711 if !HOST_WIN32
712 # requires working altstack
713 TESTS_CS_SRC += bug-60862.cs
714 endif
715 endif
717 #maybe this test works on linux, not sure
718 if HOST_DARWIN
719 TESTS_CS_SRC += bug-8417.cs
720 endif
722 if CROSS_COMPILING # FIXME build vs. host vs. target
723 TAILCALL_INTERFACE_CONSERVESTACK_IL=
724 TAILCALL_FSHARP_DEEPTAIL_IL=
725 else
726 if HOST_WASM # FIXME build problem
727 TAILCALL_INTERFACE_CONSERVESTACK_IL=
728 TAILCALL_FSHARP_DEEPTAIL_IL=
729 else
730 if HOST_WIN32 # FIXME build problem
731 TAILCALL_INTERFACE_CONSERVESTACK_IL=
732 TAILCALL_FSHARP_DEEPTAIL_IL=
733 else
734 # These tests are produced by splitting up tailcall-interface-conservestack.il.
735 TAILCALL_INTERFACE_CONSERVESTACK_IL=\
736         tailcall/interface-conservestack/1.il \
737         tailcall/interface-conservestack/10.il \
738         tailcall/interface-conservestack/11.il \
739         tailcall/interface-conservestack/12.il \
740         tailcall/interface-conservestack/13.il \
741         tailcall/interface-conservestack/14.il \
742         tailcall/interface-conservestack/15.il \
743         tailcall/interface-conservestack/16.il \
744         tailcall/interface-conservestack/17.il \
745         tailcall/interface-conservestack/18.il \
746         tailcall/interface-conservestack/19.il \
747         tailcall/interface-conservestack/2.il \
748         tailcall/interface-conservestack/20.il \
749         tailcall/interface-conservestack/21.il \
750         tailcall/interface-conservestack/22.il \
751         tailcall/interface-conservestack/23.il \
752         tailcall/interface-conservestack/24.il \
753         tailcall/interface-conservestack/25.il \
754         tailcall/interface-conservestack/26.il \
755         tailcall/interface-conservestack/27.il \
756         tailcall/interface-conservestack/28.il \
757         tailcall/interface-conservestack/29.il \
758         tailcall/interface-conservestack/3.il \
759         tailcall/interface-conservestack/30.il \
760         tailcall/interface-conservestack/31.il \
761         tailcall/interface-conservestack/32.il \
762         tailcall/interface-conservestack/33.il \
763         tailcall/interface-conservestack/34.il \
764         tailcall/interface-conservestack/35.il \
765         tailcall/interface-conservestack/36.il \
766         tailcall/interface-conservestack/37.il \
767         tailcall/interface-conservestack/38.il \
768         tailcall/interface-conservestack/39.il \
769         tailcall/interface-conservestack/4.il \
770         tailcall/interface-conservestack/40.il \
771         tailcall/interface-conservestack/41.il \
772         tailcall/interface-conservestack/42.il \
773         tailcall/interface-conservestack/43.il \
774         tailcall/interface-conservestack/44.il \
775         tailcall/interface-conservestack/45.il \
776         tailcall/interface-conservestack/46.il \
777         tailcall/interface-conservestack/47.il \
778         tailcall/interface-conservestack/48.il \
779         tailcall/interface-conservestack/49.il \
780         tailcall/interface-conservestack/5.il \
781         tailcall/interface-conservestack/50.il \
782         tailcall/interface-conservestack/51.il \
783         tailcall/interface-conservestack/52.il \
784         tailcall/interface-conservestack/53.il \
785         tailcall/interface-conservestack/6.il \
786         tailcall/interface-conservestack/7.il \
787         tailcall/interface-conservestack/8.il \
788         tailcall/interface-conservestack/9.il
790 # These tests are produced by splitting up tailcall/fsharp-deeptail.il.
791 TAILCALL_FSHARP_DEEPTAIL_IL=\
792         tailcall/fsharp-deeptail/Seq.filter-length1.il \
793         tailcall/fsharp-deeptail/Seq.filter-length2.il \
794         tailcall/fsharp-deeptail/Seq.filter-length3.il \
795         tailcall/fsharp-deeptail/StaticTailCallLoop_DateTime_.il \
796         tailcall/fsharp-deeptail/StaticTailCallLoop_int_.il \
797         tailcall/fsharp-deeptail/TailCallLoopGenericClassAndMethodAbstractClass_DateTime_.Method1_DateTime_.il \
798         tailcall/fsharp-deeptail/TailCallLoopGenericClassAndMethodAbstractClass_DateTime_.Method1_byte_.il \
799         tailcall/fsharp-deeptail/TailCallLoopGenericClassAndMethodAbstractClass_DateTime_.Method1_int_.il \
800         tailcall/fsharp-deeptail/TailCallLoopGenericClassAndMethodAbstractClass_DateTime_.Method1_string_.il \
801         tailcall/fsharp-deeptail/TailCallLoopGenericClassAndMethodAbstractClass_DatstringeTime_.Method1_string_.il \
802         tailcall/fsharp-deeptail/TailCallLoopGenericClassAndMethodAbstractClass_byte_.Method1_DateTime_.il \
803         tailcall/fsharp-deeptail/TailCallLoopGenericClassAndMethodAbstractClass_byte_.Method1_byte_.il \
804         tailcall/fsharp-deeptail/TailCallLoopGenericClassAndMethodAbstractClass_byte_.Method1_int_.il \
805         tailcall/fsharp-deeptail/TailCallLoopGenericClassAndMethodAbstractClass_byte_.Method1_string_.il \
806         tailcall/fsharp-deeptail/TailCallLoopGenericClassAndMethodAbstractClass_int_.Method1_DateTime_.il \
807         tailcall/fsharp-deeptail/TailCallLoopGenericClassAndMethodAbstractClass_int_.Method1_byte_.il \
808         tailcall/fsharp-deeptail/TailCallLoopGenericClassAndMethodAbstractClass_int_.Method1_int_.il \
809         tailcall/fsharp-deeptail/TailCallLoopGenericClassAndMethodAbstractClass_int_.Method1_string_.il \
810         tailcall/fsharp-deeptail/TailCallLoopGenericClassAndMethodAbstractClass_string_.Method1_DateTime_.il \
811         tailcall/fsharp-deeptail/TailCallLoopGenericClassAndMethodAbstractClass_string_.Method1_byte_.il \
812         tailcall/fsharp-deeptail/TailCallLoopGenericClassAndMethodAbstractClass_string_.Method1_int_.il \
813         tailcall/fsharp-deeptail/TailCallLoopGenericClassAndMethodAbstractInterface_DateTime_.Method1_DateTime_.il \
814         tailcall/fsharp-deeptail/TailCallLoopGenericClassAndMethodAbstractInterface_DateTime_.Method1_byte_.il \
815         tailcall/fsharp-deeptail/TailCallLoopGenericClassAndMethodAbstractInterface_DateTime_.Method1_int_.il \
816         tailcall/fsharp-deeptail/TailCallLoopGenericClassAndMethodAbstractInterface_DateTime_.Method1_string_.il \
817         tailcall/fsharp-deeptail/TailCallLoopGenericClassAndMethodAbstractInterface_DatstringeTime_.Method1_string_.il \
818         tailcall/fsharp-deeptail/TailCallLoopGenericClassAndMethodAbstractInterface_byte_.Method1_DateTime_.il \
819         tailcall/fsharp-deeptail/TailCallLoopGenericClassAndMethodAbstractInterface_byte_.Method1_byte_.il \
820         tailcall/fsharp-deeptail/TailCallLoopGenericClassAndMethodAbstractInterface_byte_.Method1_int_.il \
821         tailcall/fsharp-deeptail/TailCallLoopGenericClassAndMethodAbstractInterface_byte_.Method1_string_.il \
822         tailcall/fsharp-deeptail/TailCallLoopGenericClassAndMethodAbstractInterface_int_.Method1_DateTime_.il \
823         tailcall/fsharp-deeptail/TailCallLoopGenericClassAndMethodAbstractInterface_int_.Method1_byte_.il \
824         tailcall/fsharp-deeptail/TailCallLoopGenericClassAndMethodAbstractInterface_int_.Method1_int_.il \
825         tailcall/fsharp-deeptail/TailCallLoopGenericClassAndMethodAbstractInterface_int_.Method1_string_.il \
826         tailcall/fsharp-deeptail/TailCallLoopGenericClassAndMethodAbstractInterface_string_.Method1_DateTime_.il \
827         tailcall/fsharp-deeptail/TailCallLoopGenericClassAndMethodAbstractInterface_string_.Method1_byte_.il \
828         tailcall/fsharp-deeptail/TailCallLoopGenericClassAndMethodAbstractInterface_string_.Method1_int_.il \
829         tailcall/fsharp-deeptail/TailCallLoopGenericClassAndMethod_DateTime_.Method1_DateTime_.il \
830         tailcall/fsharp-deeptail/TailCallLoopGenericClassAndMethod_DateTime_.Method1_byte_.il \
831         tailcall/fsharp-deeptail/TailCallLoopGenericClassAndMethod_DateTime_.Method1_int_.il \
832         tailcall/fsharp-deeptail/TailCallLoopGenericClassAndMethod_DateTime_.Method1_string_.il \
833         tailcall/fsharp-deeptail/TailCallLoopGenericClassAndMethod_byte_.Method1_DateTime_.il \
834         tailcall/fsharp-deeptail/TailCallLoopGenericClassAndMethod_byte_.Method1_byte_.il \
835         tailcall/fsharp-deeptail/TailCallLoopGenericClassAndMethod_byte_.Method1_int_.il \
836         tailcall/fsharp-deeptail/TailCallLoopGenericClassAndMethod_byte_.Method1_string_.il \
837         tailcall/fsharp-deeptail/TailCallLoopGenericClassAndMethod_int_.Method1_DateTime_.il \
838         tailcall/fsharp-deeptail/TailCallLoopGenericClassAndMethod_int_.Method1_byte_.il \
839         tailcall/fsharp-deeptail/TailCallLoopGenericClassAndMethod_int_.Method1_int_.il \
840         tailcall/fsharp-deeptail/TailCallLoopGenericClassAndMethod_int_.Method1_string_.il \
841         tailcall/fsharp-deeptail/TailCallLoopGenericClassAndMethod_string_.Method1_DateTime_.il \
842         tailcall/fsharp-deeptail/TailCallLoopGenericClassAndMethod_string_.Method1_byte_.il \
843         tailcall/fsharp-deeptail/TailCallLoopGenericClassAndMethod_string_.Method1_int_.il \
844         tailcall/fsharp-deeptail/TailCallLoopGenericClassAndMethod_string_.Method1_string_.il \
845         tailcall/fsharp-deeptail/TailCallLoopGenericClass_DateTime_.il \
846         tailcall/fsharp-deeptail/TailCallLoopGenericClass_int_.il \
847         tailcall/fsharp-deeptail/TailCallLoopGenericClass_string_.il \
848         tailcall/fsharp-deeptail/TailCallLoop_DateTime_.il \
849         tailcall/fsharp-deeptail/TailCallLoop_int_.il \
850         tailcall/fsharp-deeptail/mutualTail1IsEven.il \
851         tailcall/fsharp-deeptail/mutualTail1IsOdd.il \
852         tailcall/fsharp-deeptail/simpleTail1.il \
853         tailcall/fsharp-deeptail/simpleTail2.il
855 $(TAILCALL_FSHARP_DEEPTAIL_IL): tailcall/fsharp-deeptail.stamp
857 $(TAILCALL_INTERFACE_CONSERVESTACK_IL): tailcall/interface-conservestack.stamp
859 tailcall/fsharp-deeptail.stamp: tailcall/split-fsharp$(EXEEXT) tailcall/fsharp-deeptail.il
860         ./tailcall/split-fsharp$(EXEEXT) < $(srcdir)/tailcall/fsharp-deeptail.il
861         touch -f $@
863 tailcall/interface-conservestack.stamp: split-tailcall-interface-conservestack$(EXEEXT) tailcall-interface-conservestack.il
864         ./split-tailcall-interface-conservestack$(EXEEXT) < $(srcdir)/tailcall-interface-conservestack.il
865         touch -f $@
867 noinst_PROGRAMS = tailcall/split-fsharp split-tailcall-interface-conservestack
869 tailcall_split_fsharp_SOURCES=tailcall/split-fsharp.cpp
871 split_tailcall_interface_conservestack_SOURCES=split-tailcall-interface-conservestack.cpp
873 endif # HOST_WIN32
874 endif # HOST_WASM
875 endif # CROSS_COMPILING
877 BUILT_SOURCES += $(TAILCALL_FSHARP_DEEPTAIL_IL) $(TAILCALL_INTERFACE_CONSERVESTACK_IL)
879 TESTS_IL_SRC=                   \
880         tailcall/2.il        \
881         tailcall/3.il        \
882         tailcall/4.il        \
883         tailcall/fsharp-deeptail.il          \
884         tailcall/fsharp-shallowtail.il   \
885         tailcall/fsharp-shallownotail.il \
886         $(TAILCALL_FSHARP_DEEPTAIL_IL) \
887         gptail1.il              \
888         itail1.il               \
889         itaili1.il              \
890         ivtail1.il              \
891         sirtail1.il             \
892         sitail1.il              \
893         srtail1.il              \
894         stail1.il               \
895         tail1.il                \
896         taili1.il               \
897         vtail1.il               \
898         tailcall-virt.il        \
899         tailcall-rgctxa.il      \
900         tailcall-rgctxb.il      \
901         tailcall-rgctxb-static.il \
902         tailcall-mrgctx.il      \
903         $(TAILCALL_INTERFACE_CONSERVESTACK_IL) \
904         tailcall-interface-justrun.il \
905         field-access.il         \
906         method-access.il        \
907         ldftn-access.il         \
908         cpblkTest.il            \
909         vbinterface.il          \
910         calliTest.il            \
911         calliGenericTest.il             \
912         ckfiniteTest.il         \
913         fault-handler.il                \
914         locallocTest.il         \
915         initblkTest.il          \
916         qt-instance.il          \
917         vararg3.il              \
918         bug-29859.il            \
919         bug-78549.il            \
920         static-fields-nonconst.il       \
921         reload-at-bb-end.il     \
922         test-enum-indstoreil.il \
923         filter-bug.il           \
924         even-odd.il             \
925         bug-82022.il    \
926         vt-sync-method.il       \
927         enum_types.il   \
928         invalid-token.il        \
929         call_missing_method.il  \
930         call_missing_class.il   \
931         ldfld_missing_field.il  \
932         ldfld_missing_class.il  \
933         find-method.2.il        \
934         bug-79215.2.il  \
935         bug-79956.2.il  \
936         bug-327438.2.il \
937         bug-387274.2.il \
938         bug-426309.2.il \
939         ldtoken_with_byref_typespec.2.il \
940         resolve_method_bug.2.il \
941         resolve_field_bug.2.il \
942         resolve_type_bug.2.il   \
943         generics-sharing-other-exc.2.il \
944         generic-ldobj.2.il      \
945         generic-mkrefany.2.il   \
946         generic-refanyval.2.il  \
947         generic-ldtoken.2.il    \
948         generic-ldtoken-method.2.il     \
949         generic-ldtoken-field.2.il      \
950         generic-tailcall.2.il   \
951         generic-tailcall2.2.il  \
952         generic-array-exc.2.il  \
953         generic-valuetype-newobj2.2.il  \
954         generic-valuetype-newobj.2.il   \
955         generic-constrained.2.il        \
956         generic-type-load-exception.2.il        \
957         bug-81466.il    \
958         bug457574.il    \
959         bug445361.il    \
960         bug-463303.il   \
961         bug469742.2.il  \
962         bug-528055.il   \
963         array_load_exception.il \
964         bug-481403.il   \
965         interface-with-static-method.il \
966         bug-633291.il   \
967         delegate-with-null-target.il    \
968         bug-318677.il   \
969         gsharing-valuetype-layout.il    \
970         invalid_generic_instantiation.il \
971         bug-45841-fpstack-exceptions.il \
972         instance_tailrec.il     \
973         dim-constrainedcall.il  \
974         dim-diamondshape.il     \
975         dim-genericmethods.il   \
976         dim-methodimpl.il       \
977         dim-sharedgenerics.il   \
978         dim-simple.il   \
979         dim-valuetypes.il \
980         tailcall-generic-cast-conservestack-il.il \
981         tailcall-generic-cast-nocrash-il.il \
982         tailcall-member-function-in-valuetype.il \
983         tailcall-return-valuetype.il \
984         tailcall-valuetype-parameter.il \
985         ldfldvt.il \
986         newobj-abstract.il
988 # This test crashes the runtime, even with recent fixes.
989 #       incorrect-ldvirtftn-read-behind-for-dup.il
991 TESTS_GSHARED_SRC = \
992         generics-sharing.2.cs   \
993         shared-generic-methods.2.cs     \
994         shared-generic-synchronized.2.cs        \
995         generic-initobj.2.cs            \
996         generics-sharing-other-exc.2.cs \
997         generic-box.2.cs                \
998         generic-unbox.2.cs      \
999         generic-delegate.2.cs   \
1000         generic-sizeof.2.cs     \
1001         generic-ldobj.2.cs      \
1002         generic-mkrefany.2.cs                   \
1003         generic-refanyval.2.cs  \
1004         generic-ldtoken.2.cs                    \
1005         generic-ldtoken-method.2.cs     \
1006         generic-ldtoken-field.2.cs      \
1007         generic-virtual.2.cs    \
1008         generic-tailcall.2.cs                   \
1009         generic-interface-methods.2.cs  \
1010         generic-array-type.2.cs \
1011         generic-method-patching.2.cs    \
1012         generic-static-methods.2.cs     \
1013         generic-null-call.2.cs  \
1014         generic-tailcall2.2.cs                  \
1015         generic-array-exc.2.cs  \
1016         generic-special.2.cs                    \
1017         generic-special2.2.cs   \
1018         generic-exceptions.2.cs \
1019         generic-delegate2.2.cs          \
1020         generic-virtual2.2.cs   \
1021         generic-valuetype-interface.2.cs        \
1022         generic-valuetype-newobj.2.cs   \
1023         generic-valuetype-newobj2.2.cs  \
1024         generic-getgenericarguments.2.cs        \
1025         generic-synchronized.2.cs       \
1026         generic-delegate-ctor.2.cs              \
1027         generic-constrained.2.cs        \
1028         bug-431413.2.cs                 \
1029         generic-virtual-invoke.2.cs     \
1030         generic-typedef.2.cs            \
1031         generic-marshalbyref.2.cs       \
1032         bug-459285.2.cs \
1033         bug-461198.2.cs \
1034         generic-sealed-virtual.2.cs     \
1035         generic-system-arrays.2.cs      \
1036         generic-stack-traces.2.cs       \
1037         generic-stack-traces2.2.cs              \
1038         bug-472600.2.cs \
1039         bug-473482.2.cs \
1040         bug-473999.2.cs         \
1041         bug-479763.2.cs                         \
1042         generic-type-load-exception.2.cs        \
1043         bug-616463.cs   \
1044         bug-1147.cs     \
1045         generic-type-builder.2.cs
1047 PLATFORM_DISABLED_TESTS=\
1048         $(TAILCALL_DISABLED_TESTS_RUN) \
1049         tailcall-member-function-in-valuetype.exe \
1050         tailcall-rgctxb.exe
1052 if HOST_WIN32
1053 PLATFORM_DISABLED_TESTS += bug-58782-plain-throw.exe bug-58782-capture-and-throw.exe
1055 # see https://github.com/mono/mono/issues/9739
1056 PLATFORM_DISABLED_TESTS += verbose.exe
1057 endif
1059 if HOST_DARWIN
1061 # see https://github.com/mono/mono/issues/10845
1062 PLATFORM_DISABLED_TESTS += monitor-wait-abort.exe
1063 endif
1065 if AMD64
1066 # #651684
1067 PLATFORM_DISABLED_TESTS += finally_guard.exe
1069 if HOST_WIN32
1070 PLATFORM_DISABLED_TESTS += w32message.exe
1071 endif
1073 endif
1075 if X86
1077 if HOST_WIN32
1078 PLATFORM_DISABLED_TESTS += async-exc-compilation.exe finally_guard.exe finally_block_ending_in_dead_bb.exe \
1079         bug-18026.exe monitor.exe threadpool-exceptions5.exe process-unref-race.exe w32message.exe \
1080         unhandled-exception-1.exe unhandled-exception-2.exe unhandled-exception-3.exe unhandled-exception-4.exe \
1081         unhandled-exception-5.exe unhandled-exception-6.exe unhandled-exception-7.exe unhandled-exception-8.exe \
1082         thread-suspend-suspended.exe thread-suspend-selfsuspended.exe
1083 endif
1085 # test_virt.exe fails because callee takes more parameters than caller, 1 vs. 0, and
1086 # x86 passes no parameters in registers, so it is a stack imbalance.
1087 PLATFORM_DISABLED_TESTS += tailcall/coreclr/JIT/Methodical/tailcall/test_virt.exe
1089 endif
1091 if POWERPC
1092 # bug #71274
1093 PLATFORM_DISABLED_TESTS += finalizer-abort.exe finalizer-exception.exe finalizer-exit.exe
1094 endif
1096 if POWERPC64
1097 # FIXME: These tests hang/fail for unknown reasons
1098 PLATFORM_DISABLED_TESTS += monitor.exe threadpool-exceptions5.exe appdomain-unload.exe \
1099         pinvoke2.exe pinvoke3.exe pinvoke11.exe threadpool-exceptions7.exe winx64structs.exe bug-10127.exe pinvoke_ppcc.exe \
1100         pinvoke_ppcs.exe pinvoke_ppci.exe pinvoke_ppcf.exe pinvoke_ppcd.exe abort-cctor.exe load-exceptions.exe \
1101         sgen-domain-unload-2.exe sgen-weakref-stress.exe sgen-cementing-stress.exe sgen-new-threads-dont-join-stw.exe \
1102         sgen-new-threads-dont-join-stw-2.exe sgen-new-threads-collect.exe sgen-bridge.exe
1103 PLATFORM_DISABLED_TESTS += appdomain-threadpool-unload.exe
1104 PLATFORM_DISABLED_TESTS += bug-60848.exe
1105 endif
1107 if ARM
1108 PLATFORM_DISABLED_TESTS += filter-stack.exe weak-fields.exe
1110 # Most ARM problems are due to extra_arg and cannot be easily fixed, except for easy
1111 # bitcode-specific fix which has been declined. A few are uncertain and should be investigated,
1112 # but still probably extra_arg.
1113 PLATFORM_DISABLED_TESTS += ivtail1.exe
1114 PLATFORM_DISABLED_TESTS += tailcall-generic-cast-conservestack-il.exe
1115 PLATFORM_DISABLED_TESTS += tailcall-mrgctx.exe
1116 PLATFORM_DISABLED_TESTS += tailcall-rgctxa.exe
1117 PLATFORM_DISABLED_TESTS += tailcall-virt.exe
1118 PLATFORM_DISABLED_TESTS += tailcall/coreclr/JIT/Directed/tailcall/tailcall.exe
1119 PLATFORM_DISABLED_TESTS += tailcall/2.exe
1120 PLATFORM_DISABLED_TESTS += tailcall/3.exe
1121 PLATFORM_DISABLED_TESTS += tailcall/4.exe
1122 PLATFORM_DISABLED_TESTS += tailcall/fsharp-deeptail/TailCallLoopGenericClassAndMethod_string_.Method1_string_.exe
1124 # FIXME These presumably take an extra parameter though this should be confirmed.
1125 PLATFORM_DISABLED_TESTS += tailcall/fsharp-deeptail/TailCallLoopGenericClassAndMethodAbstractClass_DateTime_.Method1_DateTime_.exe
1126 PLATFORM_DISABLED_TESTS += tailcall/fsharp-deeptail/TailCallLoopGenericClassAndMethodAbstractClass_DateTime_.Method1_byte_.exe
1127 PLATFORM_DISABLED_TESTS += tailcall/fsharp-deeptail/TailCallLoopGenericClassAndMethodAbstractClass_DateTime_.Method1_int_.exe
1128 PLATFORM_DISABLED_TESTS += tailcall/fsharp-deeptail/TailCallLoopGenericClassAndMethodAbstractClass_DateTime_.Method1_string_.exe
1129 PLATFORM_DISABLED_TESTS += tailcall/fsharp-deeptail/TailCallLoopGenericClassAndMethodAbstractClass_DatstringeTime_.Method1_string_.exe
1130 PLATFORM_DISABLED_TESTS += tailcall/fsharp-deeptail/TailCallLoopGenericClassAndMethodAbstractClass_byte_.Method1_DateTime_.exe
1131 PLATFORM_DISABLED_TESTS += tailcall/fsharp-deeptail/TailCallLoopGenericClassAndMethodAbstractClass_byte_.Method1_byte_.exe
1132 PLATFORM_DISABLED_TESTS += tailcall/fsharp-deeptail/TailCallLoopGenericClassAndMethodAbstractClass_byte_.Method1_int_.exe
1133 PLATFORM_DISABLED_TESTS += tailcall/fsharp-deeptail/TailCallLoopGenericClassAndMethodAbstractClass_byte_.Method1_string_.exe
1134 PLATFORM_DISABLED_TESTS += tailcall/fsharp-deeptail/TailCallLoopGenericClassAndMethodAbstractClass_int_.Method1_DateTime_.exe
1135 PLATFORM_DISABLED_TESTS += tailcall/fsharp-deeptail/TailCallLoopGenericClassAndMethodAbstractClass_int_.Method1_byte_.exe
1136 PLATFORM_DISABLED_TESTS += tailcall/fsharp-deeptail/TailCallLoopGenericClassAndMethodAbstractClass_int_.Method1_int_.exe
1137 PLATFORM_DISABLED_TESTS += tailcall/fsharp-deeptail/TailCallLoopGenericClassAndMethodAbstractClass_int_.Method1_string_.exe
1138 PLATFORM_DISABLED_TESTS += tailcall/fsharp-deeptail/TailCallLoopGenericClassAndMethodAbstractClass_string_.Method1_DateTime_.exe
1139 PLATFORM_DISABLED_TESTS += tailcall/fsharp-deeptail/TailCallLoopGenericClassAndMethodAbstractClass_string_.Method1_byte_.exe
1140 PLATFORM_DISABLED_TESTS += tailcall/fsharp-deeptail/TailCallLoopGenericClassAndMethodAbstractClass_string_.Method1_int_.exe
1142 # Interface calls cannot be tailcalls on ARM due to extra_arg. Bitcode could easily work however.
1143 PLATFORM_DISABLED_TESTS += tailcall/fsharp-deeptail.exe
1144 PLATFORM_DISABLED_TESTS += tailcall/fsharp-deeptail/TailCallLoopGenericClassAndMethodAbstractInterface_DateTime_.Method1_DateTime_.exe
1145 PLATFORM_DISABLED_TESTS += tailcall/fsharp-deeptail/TailCallLoopGenericClassAndMethodAbstractInterface_DateTime_.Method1_byte_.exe
1146 PLATFORM_DISABLED_TESTS += tailcall/fsharp-deeptail/TailCallLoopGenericClassAndMethodAbstractInterface_DateTime_.Method1_int_.exe
1147 PLATFORM_DISABLED_TESTS += tailcall/fsharp-deeptail/TailCallLoopGenericClassAndMethodAbstractInterface_DateTime_.Method1_string_.exe
1148 PLATFORM_DISABLED_TESTS += tailcall/fsharp-deeptail/TailCallLoopGenericClassAndMethodAbstractInterface_DatstringeTime_.Method1_string_.exe
1149 PLATFORM_DISABLED_TESTS += tailcall/fsharp-deeptail/TailCallLoopGenericClassAndMethodAbstractInterface_byte_.Method1_DateTime_.exe
1150 PLATFORM_DISABLED_TESTS += tailcall/fsharp-deeptail/TailCallLoopGenericClassAndMethodAbstractInterface_byte_.Method1_byte_.exe
1151 PLATFORM_DISABLED_TESTS += tailcall/fsharp-deeptail/TailCallLoopGenericClassAndMethodAbstractInterface_byte_.Method1_int_.exe
1152 PLATFORM_DISABLED_TESTS += tailcall/fsharp-deeptail/TailCallLoopGenericClassAndMethodAbstractInterface_byte_.Method1_string_.exe
1153 PLATFORM_DISABLED_TESTS += tailcall/fsharp-deeptail/TailCallLoopGenericClassAndMethodAbstractInterface_int_.Method1_DateTime_.exe
1154 PLATFORM_DISABLED_TESTS += tailcall/fsharp-deeptail/TailCallLoopGenericClassAndMethodAbstractInterface_int_.Method1_byte_.exe
1155 PLATFORM_DISABLED_TESTS += tailcall/fsharp-deeptail/TailCallLoopGenericClassAndMethodAbstractInterface_int_.Method1_int_.exe
1156 PLATFORM_DISABLED_TESTS += tailcall/fsharp-deeptail/TailCallLoopGenericClassAndMethodAbstractInterface_int_.Method1_string_.exe
1157 PLATFORM_DISABLED_TESTS += tailcall/fsharp-deeptail/TailCallLoopGenericClassAndMethodAbstractInterface_string_.Method1_DateTime_.exe
1158 PLATFORM_DISABLED_TESTS += tailcall/fsharp-deeptail/TailCallLoopGenericClassAndMethodAbstractInterface_string_.Method1_byte_.exe
1159 PLATFORM_DISABLED_TESTS += tailcall/fsharp-deeptail/TailCallLoopGenericClassAndMethodAbstractInterface_string_.Method1_int_.exe
1161 # Interface calls cannot be tailcalls on ARM due to extra_arg. Bitcode could easily work however.
1162 PLATFORM_DISABLED_TESTS += tailcall-interface-conservestack.exe
1163 PLATFORM_DISABLED_TESTS += tailcall/interface-conservestack/1.exe
1164 PLATFORM_DISABLED_TESTS += tailcall/interface-conservestack/10.exe
1165 PLATFORM_DISABLED_TESTS += tailcall/interface-conservestack/11.exe
1166 PLATFORM_DISABLED_TESTS += tailcall/interface-conservestack/12.exe
1167 PLATFORM_DISABLED_TESTS += tailcall/interface-conservestack/13.exe
1168 PLATFORM_DISABLED_TESTS += tailcall/interface-conservestack/14.exe
1169 PLATFORM_DISABLED_TESTS += tailcall/interface-conservestack/15.exe
1170 PLATFORM_DISABLED_TESTS += tailcall/interface-conservestack/16.exe
1171 PLATFORM_DISABLED_TESTS += tailcall/interface-conservestack/17.exe
1172 PLATFORM_DISABLED_TESTS += tailcall/interface-conservestack/18.exe
1173 PLATFORM_DISABLED_TESTS += tailcall/interface-conservestack/19.exe
1174 PLATFORM_DISABLED_TESTS += tailcall/interface-conservestack/2.exe
1175 PLATFORM_DISABLED_TESTS += tailcall/interface-conservestack/20.exe
1176 PLATFORM_DISABLED_TESTS += tailcall/interface-conservestack/21.exe
1177 PLATFORM_DISABLED_TESTS += tailcall/interface-conservestack/22.exe
1178 PLATFORM_DISABLED_TESTS += tailcall/interface-conservestack/23.exe
1179 PLATFORM_DISABLED_TESTS += tailcall/interface-conservestack/24.exe
1180 PLATFORM_DISABLED_TESTS += tailcall/interface-conservestack/25.exe
1181 PLATFORM_DISABLED_TESTS += tailcall/interface-conservestack/26.exe
1182 PLATFORM_DISABLED_TESTS += tailcall/interface-conservestack/27.exe
1183 PLATFORM_DISABLED_TESTS += tailcall/interface-conservestack/28.exe
1184 PLATFORM_DISABLED_TESTS += tailcall/interface-conservestack/29.exe
1185 PLATFORM_DISABLED_TESTS += tailcall/interface-conservestack/3.exe
1186 PLATFORM_DISABLED_TESTS += tailcall/interface-conservestack/30.exe
1187 PLATFORM_DISABLED_TESTS += tailcall/interface-conservestack/31.exe
1188 PLATFORM_DISABLED_TESTS += tailcall/interface-conservestack/32.exe
1189 PLATFORM_DISABLED_TESTS += tailcall/interface-conservestack/33.exe
1190 PLATFORM_DISABLED_TESTS += tailcall/interface-conservestack/34.exe
1191 PLATFORM_DISABLED_TESTS += tailcall/interface-conservestack/35.exe
1192 PLATFORM_DISABLED_TESTS += tailcall/interface-conservestack/36.exe
1193 PLATFORM_DISABLED_TESTS += tailcall/interface-conservestack/37.exe
1194 PLATFORM_DISABLED_TESTS += tailcall/interface-conservestack/38.exe
1195 PLATFORM_DISABLED_TESTS += tailcall/interface-conservestack/39.exe
1196 PLATFORM_DISABLED_TESTS += tailcall/interface-conservestack/4.exe
1197 PLATFORM_DISABLED_TESTS += tailcall/interface-conservestack/40.exe
1198 PLATFORM_DISABLED_TESTS += tailcall/interface-conservestack/41.exe
1199 PLATFORM_DISABLED_TESTS += tailcall/interface-conservestack/42.exe
1200 PLATFORM_DISABLED_TESTS += tailcall/interface-conservestack/43.exe
1201 PLATFORM_DISABLED_TESTS += tailcall/interface-conservestack/44.exe
1202 PLATFORM_DISABLED_TESTS += tailcall/interface-conservestack/45.exe
1203 PLATFORM_DISABLED_TESTS += tailcall/interface-conservestack/46.exe
1204 PLATFORM_DISABLED_TESTS += tailcall/interface-conservestack/47.exe
1205 PLATFORM_DISABLED_TESTS += tailcall/interface-conservestack/48.exe
1206 PLATFORM_DISABLED_TESTS += tailcall/interface-conservestack/49.exe
1207 PLATFORM_DISABLED_TESTS += tailcall/interface-conservestack/5.exe
1208 PLATFORM_DISABLED_TESTS += tailcall/interface-conservestack/50.exe
1209 PLATFORM_DISABLED_TESTS += tailcall/interface-conservestack/51.exe
1210 PLATFORM_DISABLED_TESTS += tailcall/interface-conservestack/52.exe
1211 PLATFORM_DISABLED_TESTS += tailcall/interface-conservestack/6.exe
1212 PLATFORM_DISABLED_TESTS += tailcall/interface-conservestack/7.exe
1213 PLATFORM_DISABLED_TESTS += tailcall/interface-conservestack/8.exe
1214 PLATFORM_DISABLED_TESTS += tailcall/interface-conservestack/9.exe
1215 endif
1217 if ARM64
1218 PLATFORM_DISABLED_TESTS += weak-fields.exe
1219 endif
1221 if MIPS
1222 # monitor.exe is racy
1223 PLATFORM_DISABLED_TESTS += filter-stack.exe monitor.exe
1224 endif
1226 if S390X
1227 PLATFORM_DISABLED_TESTS += dynamic-method-resurrection.exe
1228 #PLATFORM_DISABLED_TESTS=dynamic-method-resurrection.exe exception17.exe
1230 PLATFORM_DISABLED_TESTS += \
1231         sgen-toggleref.exe \
1232         sgen-bridge.exe \
1233         sgen-bridge-major-fragmentation.exe \
1234         sgen-bridge-xref.exe
1235 endif
1237 PROFILE_DISABLED_TESTS= \
1238         $(TAILCALL_DISABLED_TESTS_RUN) \
1239         tailcall-member-function-in-valuetype.exe \
1240         tailcall-rgctxb.exe
1242 if FULL_AOT_TESTS
1243 # Tests which rely on TypeLoadExceptions or MemberAccessExceptions
1244 # In full-aot mode, these cause the relevant methods to be not AOTed.
1245 PROFILE_DISABLED_TESTS += \
1246         typeload-unaligned.exe \
1247         field-access.exe \
1248         invalid_generic_instantiation.exe \
1249         bug-481403.exe \
1250         array_ldelema.exe \
1251         array_load_exception.exe \
1252         bug445361.exe \
1253         generic-type-load-exception.2.exe \
1254         invalid-token.exe \
1255         call_missing_method.exe \
1256         call_missing_class.exe \
1257         custom-attr-errors.exe \
1258         ldfld_missing_field.exe \
1259         ldfld_missing_class.exe \
1260         vt-sync-method.exe \
1261         resolve_method_bug.2.exe \
1262         resolve_field_bug.2.exe \
1263         resolve_type_bug.2.exe \
1264         bug-81691.exe \
1265         bug-327438.2.exe \
1266         newobj-abstract.exe
1268 # Tests which rely on remoting
1269 PROFILE_DISABLED_TESTS += \
1270         context-static.exe \
1271         bug-415577.exe \
1272         generic-marshalbyref.2.exe \
1273         unhandled-exception-7.exe
1275 # Tests which use unsupported pinvoke+full aot
1276 # functionality
1277 PROFILE_DISABLED_TESTS += \
1278         marshal.exe \
1279         marshal2.exe \
1280         marshal6.exe \
1281         marshal7.exe \
1282         marshal8.exe \
1283         pinvoke-2.2.exe \
1284         pinvoke3.exe \
1285         thunks.exe \
1286         bug-58782-plain-throw.exe \
1287         bug-58782-capture-and-throw.exe
1289 # Tests which load assemblies which are not
1290 # in the testing_aot_full profile
1291 PROFILE_DISABLED_TESTS += \
1292         assembly-load-remap.exe
1294 # Test which needs remoting support
1295 PROFILE_DISABLED_TESTS += \
1296         remoting4.exe   \
1297         remoting1.exe   \
1298         remoting2.exe   \
1299         remoting3.exe   \
1300         remoting5.exe
1302 # Tests which needs AppDomain support
1303 PROFILE_DISABLED_TESTS += \
1304         appdomain.exe   \
1305         appdomain-client.exe    \
1306         appdomain-unload.exe    \
1307         appdomain-async-invoke.exe      \
1308         appdomain-thread-abort.exe      \
1309         appdomain1.exe  \
1310         appdomain2.exe  \
1311         appdomain-exit.exe      \
1312         appdomain-unload-asmload.exe \
1313         appdomain-unload-callback.exe   \
1314         appdomain-unload-doesnot-raise-pending-events.exe       \
1315         unload-appdomain-on-shutdown.exe        \
1316         appdomain-marshalbyref-assemblyload.exe \
1317         assemblyresolve_event2.2.exe    \
1318         assemblyresolve_event6.exe      \
1319         bug-544446.exe  \
1320         bug-36848.exe   \
1321         generic-marshalbyref.2.exe      \
1322         stackframes-async.2.exe \
1323         transparentproxy.exe    \
1324         bug-48015.exe   \
1325         delegate9.exe   \
1326         marshal-valuetypes.exe  \
1327         xdomain-threads.exe     \
1328         monitor.exe     \
1329         generic-xdomain.2.exe   \
1330         threadpool-exceptions7.exe      \
1331         cross-domain.exe        \
1332         generic-unloading.2.exe \
1333         appdomain-threadpool-unload.exe
1335 # Tests which needs System.Reflection.Emit support
1336 PROFILE_DISABLED_TESTS += \
1337         bug-47295.exe   \
1338         loader.exe      \
1339         pinvoke2.exe    \
1340         generic-type-builder.2.exe      \
1341         dynamic-generic-size.exe        \
1342         cominterop.exe  \
1343         dynamic-method-access.2.exe     \
1344         dynamic-method-finalize.2.exe   \
1345         dynamic-method-stack-traces.exe \
1346         generic_type_definition.2.exe   \
1347         bug-333798-tb.2.exe     \
1348         bug-335131.2.exe        \
1349         bug-322722_patch_bx.2.exe       \
1350         bug-322722_dyn_method_throw.2.exe       \
1351         bug-389886-2.exe        \
1352         bug-349190.2.exe        \
1353         bug-389886-sre-generic-interface-instances.exe  \
1354         custom-modifiers-inheritance.exe        \
1355         bug-462592.exe  \
1356         bug-575941.exe  \
1357         bug-389886-3.exe        \
1358         constant-division.exe   \
1359         dynamic-method-resurrection.exe \
1360         assembly_append_ordering.exe \
1361         assemblyresolve_event5.exe      \
1362         dynamic-method-churn.exe
1364 # Test which needs System.Web support
1365 PROFILE_DISABLED_TESTS += \
1366         bug-80307.exe
1368 # Tests which needs named Mutex support
1369 PROFILE_DISABLED_TESTS += \
1370         namedmutex-destroy-race.exe
1372 # ThreadAbortException doesn't have necessary field for this test
1373 PROFILE_DISABLED_TESTS += \
1374         thread6.exe
1376 # can't AOT the TestingReferenceAssembly.dll which is a dependency
1377 # of reference-loader.exe because it contains the [ReferenceAssemblyAttribute]
1378 # and the runtime errors out with "File does not contain a valid CIL image."
1379 PROFILE_DISABLED_TESTS += \
1380         reference-loader.exe
1382 # Tests which have no way of finding AOT images because they use Assembly.Load(byte[])
1383 PROFILE_DISABLED_TESTS += \
1384         assembly-load-bytes.exe \
1385         assembly-load-bytes-bindingredirect.exe
1387 # Tests which require AOT of a multi-netmodule assemblies
1388 PROFILE_DISABLED_TESTS += test-multi-netmodule-4-exe.exe
1390 # Tests which depend on a case-insensitive filesystem when using AOT
1391 if HOST_DARWIN
1392 else
1393 PROFILE_DISABLED_TESTS += \
1394         assembly-loadfrom-simplename.exe
1395 endif
1397 # constraints-load.il: 
1398 # Failed to load method 0x6000007 from '..../mono/tests/constraints-load.exe' due to 
1399 # Could not resolve type with token 01000002 assembly:mscorlib, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089 type:System.BrokenIComparable`1 member:<none>.
1400 PROFILE_DISABLED_TESTS += \
1401         constraints-load.exe \
1402         bug-515884.exe
1404 PROFILE_DISABLED_TESTS += \
1405         generic-type-builder.2.exe
1407 PROFILE_DISABLED_TESTS += \
1408         sgen-domain-unload.exe  \
1409         sgen-domain-unload-2.exe
1411 PROFILE_DISABLED_TESTS += \
1412         appdomain-loader.exe \
1413         assemblyresolve_event3.exe \
1414         appdomain-serialize-exception.exe
1416 PROFILE_DISABLED_TESTS += \
1417         delegate15.exe
1419 # https://bugzilla.xamarin.com/show_bug.cgi?id=60973
1420 PROFILE_DISABLED_TESTS += \
1421         weak-fields.exe
1423 # Some, probably all, of these tests use gsharedvt.
1424 # gsharedvt is very much at odds with tailcall, and they fail as a result.
1425 # RegularAOT and HybridAOT should be ok.
1427 # The tests might be tweakable but then they will less resemble real world code.
1429 # FullAOT should probably be changed to intersect tailcall signatures called
1430 # and all generic signatures provided, and compile more functions.
1431 # As well, gsharedvt can probably be a tailcall sometimes, like if parameters
1432 # fit in registers and there is no out conversion. Maybe it already does that.
1434 # gsharedvt should be viable when only wrapping "in" but not "out",
1435 # as long as "in" does not expand parameter stack size, which it should never do.
1436 if MONO_ARCH_GSHAREDVT_SUPPORTED
1437 PROFILE_DISABLED_TESTS += tailcall-interface-conservestack.exe
1438 PROFILE_DISABLED_TESTS += tailcall/fsharp-deeptail.exe
1439 PROFILE_DISABLED_TESTS += tailcall/interface-conservestack/20.exe
1440 PROFILE_DISABLED_TESTS += tailcall/interface-conservestack/26.exe
1441 PROFILE_DISABLED_TESTS += tailcall/interface-conservestack/31.exe
1442 PROFILE_DISABLED_TESTS += tailcall/interface-conservestack/33.exe
1443 PROFILE_DISABLED_TESTS += tailcall/interface-conservestack/34.exe
1444 PROFILE_DISABLED_TESTS += tailcall/interface-conservestack/35.exe
1445 PROFILE_DISABLED_TESTS += tailcall/interface-conservestack/36.exe
1446 PROFILE_DISABLED_TESTS += tailcall/interface-conservestack/37.exe
1447 PROFILE_DISABLED_TESTS += tailcall/interface-conservestack/41.exe
1448 PROFILE_DISABLED_TESTS += tailcall/interface-conservestack/43.exe
1449 PROFILE_DISABLED_TESTS += tailcall/interface-conservestack/44.exe
1450 PROFILE_DISABLED_TESTS += tailcall/interface-conservestack/45.exe
1451 PROFILE_DISABLED_TESTS += tailcall/interface-conservestack/46.exe
1452 PROFILE_DISABLED_TESTS += tailcall/interface-conservestack/47.exe
1453 PROFILE_DISABLED_TESTS += tailcall/interface-conservestack/51.exe
1454 PROFILE_DISABLED_TESTS += tailcall/fsharp-deeptail/TailCallLoopGenericClassAndMethodAbstractInterface_string_.Method1_int_.exe
1455 PROFILE_DISABLED_TESTS += tailcall/fsharp-deeptail/TailCallLoopGenericClassAndMethodAbstractInterface_int_.Method1_byte_.exe
1456 PROFILE_DISABLED_TESTS += tailcall/fsharp-deeptail/TailCallLoopGenericClassAndMethodAbstractInterface_DateTime_.Method1_DateTime_.exe
1457 PROFILE_DISABLED_TESTS += tailcall/fsharp-deeptail/TailCallLoopGenericClassAndMethodAbstractClass_string_.Method1_int_.exe
1458 PROFILE_DISABLED_TESTS += tailcall/fsharp-deeptail/TailCallLoopGenericClassAndMethodAbstractInterface_string_.Method1_DateTime_.exe
1459 PROFILE_DISABLED_TESTS += tailcall/fsharp-deeptail/TailCallLoopGenericClassAndMethodAbstractClass_byte_.Method1_int_.exe
1460 PROFILE_DISABLED_TESTS += tailcall/fsharp-deeptail/TailCallLoopGenericClassAndMethodAbstractInterface_byte_.Method1_byte_.exe
1461 PROFILE_DISABLED_TESTS += tailcall/fsharp-deeptail/TailCallLoopGenericClassAndMethodAbstractClass_byte_.Method1_string_.exe
1462 PROFILE_DISABLED_TESTS += tailcall/fsharp-deeptail/TailCallLoopGenericClassAndMethodAbstractClass_byte_.Method1_byte_.exe
1463 PROFILE_DISABLED_TESTS += tailcall/fsharp-deeptail/TailCallLoopGenericClassAndMethodAbstractClass_int_.Method1_string_.exe
1464 PROFILE_DISABLED_TESTS += tailcall/fsharp-deeptail/TailCallLoopGenericClassAndMethodAbstractInterface_byte_.Method1_int_.exe
1465 PROFILE_DISABLED_TESTS += tailcall/fsharp-deeptail/TailCallLoopGenericClassAndMethodAbstractInterface_string_.Method1_byte_.exe
1466 PROFILE_DISABLED_TESTS += tailcall/fsharp-deeptail/TailCallLoopGenericClassAndMethodAbstractClass_byte_.Method1_DateTime_.exe
1467 PROFILE_DISABLED_TESTS += tailcall/fsharp-deeptail/TailCallLoopGenericClassAndMethodAbstractClass_DateTime_.Method1_byte_.exe
1468 PROFILE_DISABLED_TESTS += tailcall/fsharp-deeptail/TailCallLoopGenericClassAndMethodAbstractInterface_int_.Method1_int_.exe
1469 PROFILE_DISABLED_TESTS += tailcall/fsharp-deeptail/TailCallLoopGenericClassAndMethodAbstractInterface_DateTime_.Method1_string_.exe
1470 PROFILE_DISABLED_TESTS += tailcall/fsharp-deeptail/TailCallLoopGenericClassAndMethodAbstractClass_int_.Method1_byte_.exe
1471 PROFILE_DISABLED_TESTS += tailcall/fsharp-deeptail/TailCallLoopGenericClassAndMethodAbstractInterface_byte_.Method1_string_.exe
1472 PROFILE_DISABLED_TESTS += tailcall/fsharp-deeptail/TailCallLoopGenericClassAndMethodAbstractInterface_DateTime_.Method1_byte_.exe
1473 PROFILE_DISABLED_TESTS += tailcall/fsharp-deeptail/TailCallLoopGenericClassAndMethodAbstractClass_int_.Method1_DateTime_.exe
1474 PROFILE_DISABLED_TESTS += tailcall/fsharp-deeptail/TailCallLoopGenericClassAndMethodAbstractInterface_DateTime_.Method1_int_.exe
1475 PROFILE_DISABLED_TESTS += tailcall/fsharp-deeptail/TailCallLoopGenericClassAndMethodAbstractInterface_int_.Method1_DateTime_.exe
1476 PROFILE_DISABLED_TESTS += tailcall/fsharp-deeptail/TailCallLoopGenericClassAndMethodAbstractClass_string_.Method1_DateTime_.exe
1477 PROFILE_DISABLED_TESTS += tailcall/fsharp-deeptail/TailCallLoopGenericClassAndMethodAbstractClass_string_.Method1_byte_.exe
1478 PROFILE_DISABLED_TESTS += tailcall/fsharp-deeptail/TailCallLoopGenericClassAndMethodAbstractInterface_byte_.Method1_DateTime_.exe
1479 PROFILE_DISABLED_TESTS += tailcall/fsharp-deeptail/TailCallLoopGenericClassAndMethodAbstractClass_DateTime_.Method1_int_.exe
1480 PROFILE_DISABLED_TESTS += tailcall/fsharp-deeptail/TailCallLoopGenericClassAndMethodAbstractClass_DateTime_.Method1_DateTime_.exe
1481 PROFILE_DISABLED_TESTS += tailcall/fsharp-deeptail/TailCallLoopGenericClassAndMethodAbstractClass_int_.Method1_int_.exe
1482 PROFILE_DISABLED_TESTS += tailcall/fsharp-deeptail/TailCallLoopGenericClassAndMethodAbstractClass_DateTime_.Method1_string_.exe
1483 PROFILE_DISABLED_TESTS += tailcall/fsharp-deeptail/TailCallLoopGenericClassAndMethodAbstractInterface_int_.Method1_string_.exe
1485 endif # MONO_ARCH_GSHAREDVT_SUPPORTED
1487 if ARM64
1488 # Times out on ARM64.
1489 # https://github.com/mono/mono/issues/10783
1490 # https://jenkins.mono-project.com/job/test-mono-pull-request-arm64-fullaot+llvm/486/parsed_console/log.html
1491 # https://jenkins.mono-project.com/job/test-mono-pull-request-arm64-fullaot+llvm/471/parsed_console/log.html
1492 PLATFORM_DISABLED_TESTS += tailcall/2.exe
1493 endif # ARM64 FullAOT
1495 endif # FULL_AOT_TESTS
1497 if HYBRID_AOT_TESTS
1498 PROFILE_DISABLED_TESTS += \
1499         bug-80307.exe \
1500         namedmutex-destroy-race.exe
1501 endif
1503 AOT_DISABLED_TESTS= \
1504         constraints-load.exe
1506 CI_DISABLED_TESTS = \
1507         main-returns-background-resetabort.exe \
1508         main-returns-background-abort-resetabort.exe    \
1509         assemblyresolve_event3.exe \
1510         finally_guard.exe \
1511         generic-xdomain.2.exe
1513 # failing tests which we temporarily disable for PRs
1514 # so they don't interfere with other people's work
1515 CI_PR_DISABLED_TESTS =
1517 # FIXME Hybrid Suspend - see https://github.com/mono/mono/issues/9959
1518 # CI_PR_DISABLED_TESTS += sgen-new-threads-collect.exe
1520 # https://github.com/mono/mono/issues/8997
1521 CI_PR_DISABLED_TESTS += finalizer-thread.exe
1523 # appdomain-threadpool-unload.exe creates 100 appdomains, takes too long with llvm
1524 LLVM_DISABLED_TESTS = \
1525         finally_block_ending_in_dead_bb.exe \
1526         appdomain-threadpool-unload.exe
1528 # https://github.com/mono/mono/issues/6490
1529 LLVM_DISABLED_TESTS += \
1530         weak-fields.exe
1532 LLVM = $(filter --llvm, $(MONO_ENV_OPTIONS) $(AOT_BUILD_FLAGS))
1534 # The two finalizer tests only work under sgen
1535 # gc-altstack.exe fails under boehm because it has no support for altstack
1536 # bug-459094.exe creates an extremely deep directory tree
1537 # delegate-invoke.exe depends on 929c6bc9b6d76a273f251e6f5dfacac36e9c38bd which was
1538 # reverted.
1539 # bug-Xamarin-5278.exe got broken by 5d26590e79da139a284459299aee95c25f4cd835
1540 # appdomain-thread-abort.exe: https://bugzilla.xamarin.com/show_bug.cgi?id=47054
1541 # abort-try-holes.exe is flaky due to unwinding failure to the finally block when aborting
1542 # appdomain-marshalbyref-assemblyload.exe: https://bugzilla.xamarin.com/show_bug.cgi?id=49308
1543 # threads-init.exe: runs out of system threads
1544 # dim-constrainedcall.exe: fails on dontnet as well (https://github.com/dotnet/coreclr/issues/15353)
1546 # tailcall-rgctxb.exe
1547 # tailcall-member-function-in-valuetype.exe
1548 #       Any time we have a byref/out parameter, be it
1549 #       an integer, or valuetype-this, we pessimistically
1550 #       will never tailcall.
1552 #       These two cases have valuetype-this.
1553 #       tailcall-rgctxb.exe strives for additional coverage
1554 #       related to generic context, but both tests suffer from
1555 #       the same problem.
1557 #       I suggest we insert range checks.
1558 #       If all parameters are outside the frame,
1559 #       do a tailcall. If any are not, regular call.
1561 #       It'll be a little bigger and have a slowdown,
1562 #       and a speedup (stack locality speeds things up),
1563 #       and enable code that does not work otherwise.
1565 #       Again, tailcall is not just an optimization.
1566 #       It lets code process large data within small stack.
1567 #       If it was just an optimization, desktop CLR would not
1568 #       go so far out of their way to implement it.
1570 # Some of the tailcall tests pass native pointers to locals.
1571 #   Mono does not yet allow that.
1572 #   tailcall "i" is either calli, or integer instead of pointer, and the latter sidesteps the matter.
1573 KNOWN_FAILING_TESTS = \
1574         delegate-async-exception.exe    \
1575         bug-348522.2.exe        \
1576         bug-459094.exe \
1577         delegate-invoke.exe \
1578         bug-Xamarin-5278.exe \
1579         appdomain-marshalbyref-assemblyload.exe \
1580         abort-try-holes.exe \
1581         threads-init.exe \
1582         dim-constrainedcall.exe \
1583         gptail1.exe \
1584         itaili1.exe \
1585         sirtail1.exe \
1586         srtail1.exe \
1587         stail1.exe \
1588         tail1.exe \
1589         taili1.exe \
1590         vtail1.exe \
1591         tailcall-member-function-in-valuetype.exe \
1592         tailcall-rgctxb.exe
1594 DISABLED_TESTS = \
1595         $(KNOWN_FAILING_TESTS) \
1596         $(PLATFORM_DISABLED_TESTS) \
1597         $(PROFILE_DISABLED_TESTS) \
1598         $(if $(AOT),$(AOT_DISABLED_TESTS)) \
1599         $(if $(CI),$(CI_DISABLED_TESTS)) \
1600         $(if $(CI_PR),$(CI_PR_DISABLED_TESTS)) \
1601         $(if $(LLVM),$(LLVM_DISABLED_TESTS))
1603 # Interpreter does not currently implement tailcall.
1604 # Disable all tailcall tests.
1605 INTERP_DISABLED_TESTS = $(DISABLED_TESTS) \
1606         gptail1.exe \
1607         itail1.exe \
1608         itaili1.exe \
1609         ivtail1.exe \
1610         sitail1.exe \
1611         sirtail1.exe \
1612         srtail1.exe \
1613         stail1.exe \
1614         tail1.exe \
1615         taili1.exe \
1616         vtail1.exe \
1617         tailcall-generic-cast-conservestack-il.exe \
1618         tailcall-interface-conservestack.exe \
1619         tailcall-mrgctx.exe \
1620         tailcall-rgctxa.exe \
1621         tailcall-rgctxb.exe \
1622         tailcall-rgctxb-static.exe \
1623         tailcall-virt.exe \
1624         tailcall-return-valuetype.exe \
1625         tailcall/fsharp-deeptail.exe \
1626         tailcall/2.exe \
1627         tailcall/3.exe \
1628         tailcall/4.exe \
1629         tailcall/8273.exe \
1630         $(TAILCALL_DISABLED_TESTS_RUN) \
1631         bug-60843.exe
1632 # FIXME
1633 INTERP_DISABLED_TESTS += tailcall/fsharp-deeptail/Seq.filter-length1.exe
1634 INTERP_DISABLED_TESTS += tailcall/fsharp-deeptail/Seq.filter-length2.exe
1635 INTERP_DISABLED_TESTS += tailcall/fsharp-deeptail/Seq.filter-length3.exe
1636 INTERP_DISABLED_TESTS += tailcall/fsharp-deeptail/StaticTailCallLoop_DateTime_.exe
1637 INTERP_DISABLED_TESTS += tailcall/fsharp-deeptail/StaticTailCallLoop_int_.exe
1638 INTERP_DISABLED_TESTS += tailcall/fsharp-deeptail/TailCallLoopGenericClassAndMethodAbstractClass_DateTime_.Method1_DateTime_.exe
1639 INTERP_DISABLED_TESTS += tailcall/fsharp-deeptail/TailCallLoopGenericClassAndMethodAbstractClass_DateTime_.Method1_byte_.exe
1640 INTERP_DISABLED_TESTS += tailcall/fsharp-deeptail/TailCallLoopGenericClassAndMethodAbstractClass_DateTime_.Method1_int_.exe
1641 INTERP_DISABLED_TESTS += tailcall/fsharp-deeptail/TailCallLoopGenericClassAndMethodAbstractClass_DateTime_.Method1_string_.exe
1642 INTERP_DISABLED_TESTS += tailcall/fsharp-deeptail/TailCallLoopGenericClassAndMethodAbstractClass_DatstringeTime_.Method1_string_.exe
1643 INTERP_DISABLED_TESTS += tailcall/fsharp-deeptail/TailCallLoopGenericClassAndMethodAbstractClass_byte_.Method1_DateTime_.exe
1644 INTERP_DISABLED_TESTS += tailcall/fsharp-deeptail/TailCallLoopGenericClassAndMethodAbstractClass_byte_.Method1_byte_.exe
1645 INTERP_DISABLED_TESTS += tailcall/fsharp-deeptail/TailCallLoopGenericClassAndMethodAbstractClass_byte_.Method1_int_.exe
1646 INTERP_DISABLED_TESTS += tailcall/fsharp-deeptail/TailCallLoopGenericClassAndMethodAbstractClass_byte_.Method1_string_.exe
1647 INTERP_DISABLED_TESTS += tailcall/fsharp-deeptail/TailCallLoopGenericClassAndMethodAbstractClass_int_.Method1_DateTime_.exe
1648 INTERP_DISABLED_TESTS += tailcall/fsharp-deeptail/TailCallLoopGenericClassAndMethodAbstractClass_int_.Method1_byte_.exe
1649 INTERP_DISABLED_TESTS += tailcall/fsharp-deeptail/TailCallLoopGenericClassAndMethodAbstractClass_int_.Method1_int_.exe
1650 INTERP_DISABLED_TESTS += tailcall/fsharp-deeptail/TailCallLoopGenericClassAndMethodAbstractClass_int_.Method1_string_.exe
1651 INTERP_DISABLED_TESTS += tailcall/fsharp-deeptail/TailCallLoopGenericClassAndMethodAbstractClass_string_.Method1_DateTime_.exe
1652 INTERP_DISABLED_TESTS += tailcall/fsharp-deeptail/TailCallLoopGenericClassAndMethodAbstractClass_string_.Method1_byte_.exe
1653 INTERP_DISABLED_TESTS += tailcall/fsharp-deeptail/TailCallLoopGenericClassAndMethodAbstractClass_string_.Method1_int_.exe
1654 INTERP_DISABLED_TESTS += tailcall/fsharp-deeptail/TailCallLoopGenericClassAndMethodAbstractInterface_DateTime_.Method1_DateTime_.exe
1655 INTERP_DISABLED_TESTS += tailcall/fsharp-deeptail/TailCallLoopGenericClassAndMethodAbstractInterface_DateTime_.Method1_byte_.exe
1656 INTERP_DISABLED_TESTS += tailcall/fsharp-deeptail/TailCallLoopGenericClassAndMethodAbstractInterface_DateTime_.Method1_int_.exe
1657 INTERP_DISABLED_TESTS += tailcall/fsharp-deeptail/TailCallLoopGenericClassAndMethodAbstractInterface_DateTime_.Method1_string_.exe
1658 INTERP_DISABLED_TESTS += tailcall/fsharp-deeptail/TailCallLoopGenericClassAndMethodAbstractInterface_DatstringeTime_.Method1_string_.exe
1659 INTERP_DISABLED_TESTS += tailcall/fsharp-deeptail/TailCallLoopGenericClassAndMethodAbstractInterface_byte_.Method1_DateTime_.exe
1660 INTERP_DISABLED_TESTS += tailcall/fsharp-deeptail/TailCallLoopGenericClassAndMethodAbstractInterface_byte_.Method1_byte_.exe
1661 INTERP_DISABLED_TESTS += tailcall/fsharp-deeptail/TailCallLoopGenericClassAndMethodAbstractInterface_byte_.Method1_int_.exe
1662 INTERP_DISABLED_TESTS += tailcall/fsharp-deeptail/TailCallLoopGenericClassAndMethodAbstractInterface_byte_.Method1_string_.exe
1663 INTERP_DISABLED_TESTS += tailcall/fsharp-deeptail/TailCallLoopGenericClassAndMethodAbstractInterface_int_.Method1_DateTime_.exe
1664 INTERP_DISABLED_TESTS += tailcall/fsharp-deeptail/TailCallLoopGenericClassAndMethodAbstractInterface_int_.Method1_byte_.exe
1665 INTERP_DISABLED_TESTS += tailcall/fsharp-deeptail/TailCallLoopGenericClassAndMethodAbstractInterface_int_.Method1_int_.exe
1666 INTERP_DISABLED_TESTS += tailcall/fsharp-deeptail/TailCallLoopGenericClassAndMethodAbstractInterface_int_.Method1_string_.exe
1667 INTERP_DISABLED_TESTS += tailcall/fsharp-deeptail/TailCallLoopGenericClassAndMethodAbstractInterface_string_.Method1_DateTime_.exe
1668 INTERP_DISABLED_TESTS += tailcall/fsharp-deeptail/TailCallLoopGenericClassAndMethodAbstractInterface_string_.Method1_byte_.exe
1669 INTERP_DISABLED_TESTS += tailcall/fsharp-deeptail/TailCallLoopGenericClassAndMethodAbstractInterface_string_.Method1_int_.exe
1670 INTERP_DISABLED_TESTS += tailcall/fsharp-deeptail/TailCallLoopGenericClassAndMethod_DateTime_.Method1_DateTime_.exe
1671 INTERP_DISABLED_TESTS += tailcall/fsharp-deeptail/TailCallLoopGenericClassAndMethod_DateTime_.Method1_byte_.exe
1672 INTERP_DISABLED_TESTS += tailcall/fsharp-deeptail/TailCallLoopGenericClassAndMethod_DateTime_.Method1_int_.exe
1673 INTERP_DISABLED_TESTS += tailcall/fsharp-deeptail/TailCallLoopGenericClassAndMethod_DateTime_.Method1_string_.exe
1674 INTERP_DISABLED_TESTS += tailcall/fsharp-deeptail/TailCallLoopGenericClassAndMethod_byte_.Method1_DateTime_.exe
1675 INTERP_DISABLED_TESTS += tailcall/fsharp-deeptail/TailCallLoopGenericClassAndMethod_byte_.Method1_byte_.exe
1676 INTERP_DISABLED_TESTS += tailcall/fsharp-deeptail/TailCallLoopGenericClassAndMethod_byte_.Method1_int_.exe
1677 INTERP_DISABLED_TESTS += tailcall/fsharp-deeptail/TailCallLoopGenericClassAndMethod_byte_.Method1_string_.exe
1678 INTERP_DISABLED_TESTS += tailcall/fsharp-deeptail/TailCallLoopGenericClassAndMethod_int_.Method1_DateTime_.exe
1679 INTERP_DISABLED_TESTS += tailcall/fsharp-deeptail/TailCallLoopGenericClassAndMethod_int_.Method1_byte_.exe
1680 INTERP_DISABLED_TESTS += tailcall/fsharp-deeptail/TailCallLoopGenericClassAndMethod_int_.Method1_int_.exe
1681 INTERP_DISABLED_TESTS += tailcall/fsharp-deeptail/TailCallLoopGenericClassAndMethod_int_.Method1_string_.exe
1682 INTERP_DISABLED_TESTS += tailcall/fsharp-deeptail/TailCallLoopGenericClassAndMethod_string_.Method1_DateTime_.exe
1683 INTERP_DISABLED_TESTS += tailcall/fsharp-deeptail/TailCallLoopGenericClassAndMethod_string_.Method1_byte_.exe
1684 INTERP_DISABLED_TESTS += tailcall/fsharp-deeptail/TailCallLoopGenericClassAndMethod_string_.Method1_int_.exe
1685 INTERP_DISABLED_TESTS += tailcall/fsharp-deeptail/TailCallLoopGenericClassAndMethod_string_.Method1_string_.exe
1686 INTERP_DISABLED_TESTS += tailcall/fsharp-deeptail/TailCallLoopGenericClass_DateTime_.exe
1687 INTERP_DISABLED_TESTS += tailcall/fsharp-deeptail/TailCallLoopGenericClass_int_.exe
1688 INTERP_DISABLED_TESTS += tailcall/fsharp-deeptail/TailCallLoopGenericClass_string_.exe
1689 INTERP_DISABLED_TESTS += tailcall/fsharp-deeptail/TailCallLoop_DateTime_.exe
1690 INTERP_DISABLED_TESTS += tailcall/fsharp-deeptail/TailCallLoop_int_.exe
1691 INTERP_DISABLED_TESTS += tailcall/fsharp-deeptail/mutualTail1IsEven.exe
1692 INTERP_DISABLED_TESTS += tailcall/fsharp-deeptail/mutualTail1IsOdd.exe
1693 INTERP_DISABLED_TESTS += tailcall/fsharp-deeptail/simpleTail1.exe
1694 INTERP_DISABLED_TESTS += tailcall/fsharp-deeptail/simpleTail2.exe
1696 INTERP_DISABLED_TESTS += tailcall/interface-conservestack/1.exe
1697 INTERP_DISABLED_TESTS += tailcall/interface-conservestack/10.exe
1698 INTERP_DISABLED_TESTS += tailcall/interface-conservestack/11.exe
1699 INTERP_DISABLED_TESTS += tailcall/interface-conservestack/12.exe
1700 INTERP_DISABLED_TESTS += tailcall/interface-conservestack/13.exe
1701 INTERP_DISABLED_TESTS += tailcall/interface-conservestack/14.exe
1702 INTERP_DISABLED_TESTS += tailcall/interface-conservestack/15.exe
1703 INTERP_DISABLED_TESTS += tailcall/interface-conservestack/16.exe
1704 INTERP_DISABLED_TESTS += tailcall/interface-conservestack/17.exe
1705 INTERP_DISABLED_TESTS += tailcall/interface-conservestack/18.exe
1706 INTERP_DISABLED_TESTS += tailcall/interface-conservestack/19.exe
1707 INTERP_DISABLED_TESTS += tailcall/interface-conservestack/2.exe
1708 INTERP_DISABLED_TESTS += tailcall/interface-conservestack/20.exe
1709 INTERP_DISABLED_TESTS += tailcall/interface-conservestack/21.exe
1710 INTERP_DISABLED_TESTS += tailcall/interface-conservestack/22.exe
1711 INTERP_DISABLED_TESTS += tailcall/interface-conservestack/23.exe
1712 INTERP_DISABLED_TESTS += tailcall/interface-conservestack/24.exe
1713 INTERP_DISABLED_TESTS += tailcall/interface-conservestack/25.exe
1714 INTERP_DISABLED_TESTS += tailcall/interface-conservestack/26.exe
1715 INTERP_DISABLED_TESTS += tailcall/interface-conservestack/27.exe
1716 INTERP_DISABLED_TESTS += tailcall/interface-conservestack/28.exe
1717 INTERP_DISABLED_TESTS += tailcall/interface-conservestack/29.exe
1718 INTERP_DISABLED_TESTS += tailcall/interface-conservestack/3.exe
1719 INTERP_DISABLED_TESTS += tailcall/interface-conservestack/30.exe
1720 INTERP_DISABLED_TESTS += tailcall/interface-conservestack/31.exe
1721 INTERP_DISABLED_TESTS += tailcall/interface-conservestack/32.exe
1722 INTERP_DISABLED_TESTS += tailcall/interface-conservestack/33.exe
1723 INTERP_DISABLED_TESTS += tailcall/interface-conservestack/34.exe
1724 INTERP_DISABLED_TESTS += tailcall/interface-conservestack/35.exe
1725 INTERP_DISABLED_TESTS += tailcall/interface-conservestack/36.exe
1726 INTERP_DISABLED_TESTS += tailcall/interface-conservestack/37.exe
1727 INTERP_DISABLED_TESTS += tailcall/interface-conservestack/38.exe
1728 INTERP_DISABLED_TESTS += tailcall/interface-conservestack/39.exe
1729 INTERP_DISABLED_TESTS += tailcall/interface-conservestack/4.exe
1730 INTERP_DISABLED_TESTS += tailcall/interface-conservestack/40.exe
1731 INTERP_DISABLED_TESTS += tailcall/interface-conservestack/41.exe
1732 INTERP_DISABLED_TESTS += tailcall/interface-conservestack/42.exe
1733 INTERP_DISABLED_TESTS += tailcall/interface-conservestack/43.exe
1734 INTERP_DISABLED_TESTS += tailcall/interface-conservestack/44.exe
1735 INTERP_DISABLED_TESTS += tailcall/interface-conservestack/45.exe
1736 INTERP_DISABLED_TESTS += tailcall/interface-conservestack/46.exe
1737 INTERP_DISABLED_TESTS += tailcall/interface-conservestack/47.exe
1738 INTERP_DISABLED_TESTS += tailcall/interface-conservestack/48.exe
1739 INTERP_DISABLED_TESTS += tailcall/interface-conservestack/49.exe
1740 INTERP_DISABLED_TESTS += tailcall/interface-conservestack/5.exe
1741 INTERP_DISABLED_TESTS += tailcall/interface-conservestack/50.exe
1742 INTERP_DISABLED_TESTS += tailcall/interface-conservestack/51.exe
1743 INTERP_DISABLED_TESTS += tailcall/interface-conservestack/52.exe
1744 INTERP_DISABLED_TESTS += tailcall/interface-conservestack/53.exe
1745 INTERP_DISABLED_TESTS += tailcall/interface-conservestack/6.exe
1746 INTERP_DISABLED_TESTS += tailcall/interface-conservestack/7.exe
1747 INTERP_DISABLED_TESTS += tailcall/interface-conservestack/8.exe
1748 INTERP_DISABLED_TESTS += tailcall/interface-conservestack/9.exe
1751 # bug-48015.exe: be careful when re-enabling, it happens that it returns with exit code 0, but doesn't actually execute the test.
1752 # bug-60862.exe: missing support to map IP->method; only works on platforms with altstack support.
1753 # bug-60843.exe: something goes wrong when turning the decoded enum value into a boxed enum, so the loaded value ends up being random bytes
1755 if ARM
1756 INTERP_DISABLED_TESTS += \
1757         appdomain-unload-callback.exe \
1758         appdomain-unload.exe \
1759         assemblyresolve_event6.exe \
1760         async-with-cb-throws.exe \
1761         block_guard_restore_aligment_on_exit.exe \
1762         bug-323114.exe \
1763         bug-335131.2.exe \
1764         bug-415577.exe \
1765         bug-45841-fpstack-exceptions.exe \
1766         bug-48015.exe \
1767         bug-60862.exe \
1768         bug-80307.exe \
1769         bug-80392.2.exe \
1770         bug445361.exe \
1771         calliGenericTest.exe \
1772         cominterop.exe \
1773         context-static.exe \
1774         delegate-async-exit.exe \
1775         delegate-delegate-exit.exe \
1776         delegate-exit.exe \
1777         delegate-with-null-target.exe \
1778         delegate1.exe \
1779         delegate3.exe \
1780         delegate5.exe \
1781         delegate8.exe \
1782         delegate9.exe \
1783         dim-diamondshape.exe \
1784         dynamic-method-stack-traces.exe \
1785         even-odd.exe \
1786         exception18.exe \
1787         field-access.exe \
1788         finalizer-exception.exe \
1789         handleref.exe \
1790         monitor-abort.exe \
1791         nullable_boxing.2.exe \
1792         pinvoke2.exe \
1793         pinvoke3.exe \
1794         remoting2.exe \
1795         remoting3.exe \
1796         safehandle.2.exe \
1797         stackframes-async.2.exe \
1798         static-constructor.exe \
1799         threadpool-exceptions2.exe \
1800         threadpool-exceptions3.exe \
1801         threadpool-exceptions4.exe \
1802         threadpool-exceptions5.exe \
1803         threadpool-exceptions6.exe \
1804         thunks.exe \
1805         typeload-unaligned.exe \
1806         vararg.exe \
1807         vararg2.exe \
1808         vararg3.exe
1809 endif
1811 if ARM64
1812 INTERP_DISABLED_TESTS += \
1813         bug-48015.exe \
1814         bug-80307.exe \
1815         delegate-with-null-target.exe \
1816         dim-diamondshape.exe \
1817         pinvoke3.exe
1818 endif
1820 if AMD64
1821 INTERP_DISABLED_TESTS += \
1822         assemblyresolve_event6.exe \
1823         bug-48015.exe \
1824         bug-60862.exe \
1825         cominterop.exe \
1826         delegate-with-null-target.exe \
1827         dim-diamondshape.exe \
1828         pinvoke3.exe
1829 endif
1831 TESTS_CS=$(filter-out $(DISABLED_TESTS),$(TESTS_CS_SRC:.cs=.exe))
1832 TESTS_IL=$(filter-out $(DISABLED_TESTS),$(TESTS_IL_SRC:.il=.exe))
1833 TESTS_BENCH=$(filter-out $(DISABLED_TESTS),$(TESTS_BENCH_SRC:.cs=.exe))
1834 TESTS_STRESS=$(filter-out $(DISABLED_TESTS),$(TESTS_STRESS_SRC:.cs=.exe))
1835 TESTS_GSHARED=$(filter-out $(DISABLED_TESTS),$(TESTS_GSHARED_SRC:.cs=.exe))
1836 TESTS_TAILCALL_COMPILE=$(filter-out $(TAILCALL_DISABLED_TESTS_COMPILE),$(TEST_TAILCALL_CS_SRC:.cs=.exe) $(TEST_TAILCALL_IL_SRC:.il=.exe))
1837 TESTS_TAILCALL_RUN=$(filter-out $(TAILCALL_DISABLED_TESTS_RUN),$(TESTS_TAILCALL_COMPILE))
1839 if FULL_AOT_TESTS
1840 TESTSAOT_CS=$(TESTS_CS:.exe=.exe$(PLATFORM_AOT_SUFFIX))
1841 TESTSAOT_IL=$(TESTS_IL:.exe=.exe$(PLATFORM_AOT_SUFFIX))
1842 TESTSAOT_BENCH=$(TESTS_BENCH:.exe=.exe$(PLATFORM_AOT_SUFFIX))
1843 TESTSAOT_STRESS=$(TESTS_STRESS:.exe=.exe$(PLATFORM_AOT_SUFFIX))
1844 TESTSAOT_GSHARED=$(TESTS_GSHARED:.exe=.exe$(PLATFORM_AOT_SUFFIX))
1845 # AOT tests are run by running the non-AOT files. Runtime probes for the AOT file.
1846 TESTSAOT_TAILCALL=$(TESTS_TAILCALL_COMPILE:.exe=.exe$(PLATFORM_AOT_SUFFIX))
1847 endif
1849 if HYBRID_AOT_TESTS
1850 TESTSAOT_CS=$(TESTS_CS:.exe=.exe$(PLATFORM_AOT_SUFFIX))
1851 TESTSAOT_IL=$(TESTS_IL:.exe=.exe$(PLATFORM_AOT_SUFFIX))
1852 TESTSAOT_BENCH=$(TESTS_BENCH:.exe=.exe$(PLATFORM_AOT_SUFFIX))
1853 TESTSAOT_STRESS=$(TESTS_STRESS:.exe=.exe$(PLATFORM_AOT_SUFFIX))
1854 TESTSAOT_GSHARED=$(TESTS_GSHARED:.exe=.exe$(PLATFORM_AOT_SUFFIX))
1855 TESTSAOT_TAILCALL=$(TESTS_TAILCALL_COMPILE:.exe=.exe$(PLATFORM_AOT_SUFFIX))
1856 endif
1858 EXTRA_DIST=test-driver test-runner.cs $(TESTS_CS_SRC) $(TESTS_IL_SRC) \
1859         $(TESTS_BENCH_SRC) $(TESTS_STRESS_SRC) stress-runner.pl \
1860         array-coop-1.cs array-coop-2.cs \
1861         array-coop-bigvt.cs array-coop-int.cs array-coop-smallvt.cs \
1862         array-coop-bigvt.sh array-coop-smallvt.sh array-coop-int.sh \
1863         tailcall-interface-conservestack.il tailcall/fsharp-deeptail.il \
1864         $(TEST_TAILCALL_CS_SRC) \
1865         $(TEST_TAILCALL_IL_SRC)
1867 # This test has extra sources.
1868 tailcall/coreclr/JIT/opt/Tailcall/TailcallVerifyWithPrefix.exe: \
1869                 tailcall/coreclr/JIT/opt/Tailcall/TailcallVerifyTransparentLibraryWithPrefix.il \
1870                 tailcall/coreclr/JIT/opt/Tailcall/TailcallVerifyVerifiableLibraryWithPrefix.il
1872 %.exe: %.il
1873         $(MKDIR_P) $(dir $@)
1874         $(ILASM) -out:$@ $^
1876 if !FULL_AOT_TESTS
1877 if !HYBRID_AOT_TESTS
1878 TEST_DRIVER_HARD_KILL_FEATURE=-r:$(CLASS)/Mono.Posix.dll
1879 endif
1880 endif
1882 if FULL_AOT_TESTS
1883 TEST_DRIVER_DEPEND=TestDriver.dll$(PLATFORM_AOT_SUFFIX)
1884 else
1885 if HYBRID_AOT_TESTS
1886 TEST_DRIVER_DEPEND=TestDriver.dll$(PLATFORM_AOT_SUFFIX)
1887 else
1888 TEST_DRIVER_DEPEND=TestDriver.dll
1889 endif
1890 endif
1892 %.exe: %.cs $(TEST_DRIVER_DEPEND)
1893         $(MKDIR_P) $(dir $@)
1894         $(MCS) -r:$(CLASS)/System.dll -r:$(CLASS)/System.Xml.dll -r:$(CLASS)/System.Core.dll -r:TestDriver.dll $(TEST_DRIVER_HARD_KILL_FEATURE) -out:$@ $<
1896 # N.B. test-runner.exe references the TOOLS_RUNTIME versions of the framework assemblies
1897 test-runner.exe: test-runner.cs $(TEST_DRIVER_DEPEND)
1898         $(MCS) -r:System.dll -r:System.Xml.dll -r:System.Core.dll -r:TestDriver.dll $(TEST_DRIVER_HARD_KILL_FEATURE) -out:$@ $<
1900 %.dll: %.cs
1901         $(MKDIR_P) $(dir $@)
1902         $(MCS) -r:$(CLASS)/System.dll -target:library -out:$@ $<
1903 %.dll: %.il
1904         $(MKDIR_P) $(dir $@)
1905         $(ILASM) /dll /output:$@ $<
1907 reference-loader.exe: reference-loader.cs TestingReferenceAssembly.dll TestingReferenceReferenceAssembly.dll $(TEST_DRIVER_DEPEND)
1908         $(MCS) -r:$(CLASS)/System.dll -r:TestDriver.dll -r:TestingReferenceAssembly.dll -r:TestingReferenceReferenceAssembly.dll $(TEST_DRIVER_HARD_KILL_FEATURE) -out:$@ $(srcdir)/reference-loader.cs
1910 TestingReferenceAssembly.dll: TestingReferenceAssembly.cs
1911         $(MCS) -target:library -out:$@ $<
1913 TestingReferenceReferenceAssembly.dll: TestingReferenceReferenceAssembly.cs TestingReferenceAssembly.dll
1914         $(MCS) -r:TestingReferenceAssembly.dll -target:library -out:$@ $<
1916 %.exe$(PLATFORM_AOT_SUFFIX): %.exe 
1917         $(RUNTIME) $(TEST_AOT_BUILD_FLAGS) $<
1919 %.dll$(PLATFORM_AOT_SUFFIX): %.dll 
1920         $(RUNTIME) $(TEST_AOT_BUILD_FLAGS) $<
1922 # mkbundle works on ppc, but the pkg-config POC doesn't when run with make test
1923 if POWERPC
1924 test-platform:
1925 else
1926 # Can't use mkbundle on win32 since there is no static build there
1927 # Can't run test-unhandled-exception on Windows because of all the debug popups...
1928 if HOST_WIN32
1929 test-platform:
1930 else
1931 # mkbundle uses the installed mono-2.pc so it won't work if there is no system mono
1932 #test-platform: testbundle test-iomap-regression
1933 test-platform:  test-iomap-regression
1934 endif
1935 endif
1937 # Target to precompile the test executables
1938 tests: compile-tests
1941 # Test that no symbols are missed in eglib-remap.h
1943 if HOST_LINUX
1944 test-platform: test-eglib-remap
1945 else
1946 if HOST_DARWIN
1947 test-platform: test-eglib-remap
1948 endif
1949 endif
1950 # The following regexp describes all symbols that start with "g_" but are not part of eglibc.
1951 # The optional underscore prepending symbol names may or may not appear depending on the
1952 # system and the state of the leading-underscore compiler flag.
1953 OK_G_SYMBOLS='\<_?g_(s?list_(pre|ap)pend_(image|mempool)|concat_dir_and_file|Ctoc)\>'
1954 test-eglib-remap:
1955         @echo "Testing eglib remap..."
1956         @if which nm > /dev/null; then if nm $(top_builddir)/mono/mini/mono | grep -Ev $(OK_G_SYMBOLS) | grep -E 't _?g_'; then exit 1; else exit 0; fi; fi
1958 test-env-options:
1959         MONO_ENV_OPTIONS="--version" $(RUNTIME) array-init.exe | grep -q Architecture:
1961 # Precompile the test assemblies in parallel
1962 compile-tests:
1963         $(MAKE) -j4 compile-tests-parallel
1965 compile-tests-parallel: $(TESTS_CS) $(TESTS_IL) $(TESTS_BENCH) $(TESTS_STRESS) $(TESTS_GSHARED) $(TESTSAOT_CS) $(TESTSAOT_IL) $(TESTSAOT_BENCH) $(TESTSAOT_STRESS) $(TESTSAOT_GSHARED) $(TESTS_TAILCALL) $(TESTSAOT_TAILCALL) compile-gac-loading compile-assembly-load-reference
1967 # Remove empty .stdout and .stderr files for wrench
1968 rm-empty-logs:
1969         @echo "Removing empty logs..."
1970         find . '(' -name "*.stdout" -o -name "*.stderr" ')' -size 0 -exec rm {} \;
1972 TestDriver.dll:
1973         $(MCS) -target:library -out:$@ $(srcdir)/../mini/TestDriver.cs $(srcdir)/../mini/TestHelpers.cs
1975 runtest: compile-tests
1976         @failed=0; \
1977         passed=0; \
1978         failed_tests="";\
1979         if [ "x$$V" = "x1" ]; then dump_action="dump-output"; else dump_action="no-dump"; fi; \
1980         rm -f testlist testlist.sorted; \
1981         for i in $(TESTS_CS) $(TESTS_IL) $(TESTS_BENCH); do echo $${i} >> testlist; sort testlist > testlist.sorted; done; \
1982         for i in `cat testlist.sorted`; do \
1983                 rm -f $${i}.so; \
1984                 $(with_mono_path) $(JITTEST_PROG_RUN) --aot $(TEST_AOT_BUILD_FLAGS) --debug $${i} > $${i}.aotlog 2>&1 || exit 1; \
1985                 if $(srcdir)/test-driver '$(with_mono_path) $(JITTEST_PROG_RUN)' $$i "$(DISABLED_TESTS)" "$${dump_action}" $(TEST_RUNTIME_ARGS) $(TEST_AOT_RUN_FLAGS) ; \
1986                 then \
1987                         passed=`expr $${passed} + 1`; \
1988                 else \
1989                         if [ $$? = 2 ]; then break; fi; \
1990                         failed=`expr $${failed} + 1`; \
1991                         failed_tests="$${failed_tests} $$i"; \
1992                 fi \
1993         done; \
1994         echo "$${passed} test(s) passed. $${failed} test(s) did not pass."; \
1995         rm -f testlist testlist.sorted; \
1996         if [ $${failed} != 0 ]; then \
1997           echo -e "\nFailed tests:\n"; \
1998           for i in $${failed_tests}; do \
1999             echo $${i}; \
2000             if [ "x$$V" = "x1" ]; then \
2001               cat $${i}.stdout; \
2002               cat $${i}.stderr; \
2003             fi; \
2004           done; \
2005           exit 1; \
2006         fi
2008 runtest-managed: test-runner.exe compile-tests
2009         $(TOOLS_RUNTIME) --debug $(TEST_RUNNER) -j a --testsuite-name "runtime" --timeout 300 --disabled "$(DISABLED_TESTS)" $(TESTS_CS) $(TESTS_IL) $(TESTS_BENCH)
2011 runtest-managed-serial: test-runner.exe compile-tests
2012         $(TOOLS_RUNTIME) --debug $(TEST_RUNNER) -j 1 --testsuite-name "runtime" --disabled "$(DISABLED_TESTS)" $(TESTS_CS) $(TESTS_IL) $(TESTS_BENCH)
2014 test-jit:
2015         @if test x$(M) != x0; then $(MAKE) runtest-managed; else $(MAKE) runtest; fi
2017 testaot:
2018         @$(MAKE) AOT=1 runtest
2020 testtrace:
2021         @$(MAKE) TEST_RUNTIME_ARGS="$${TEST_RUNTIME_ARGS} --trace" runtest
2023 testinterp: test-runner.exe compile-tests
2024         $(TOOLS_RUNTIME) --debug $(TEST_RUNNER) -j a --runtime-args "--interpreter" --testsuite-name "runtime-interp" --timeout 300 --disabled "$(INTERP_DISABLED_TESTS)" $(TESTS_CS) $(TESTS_IL) $(TESTS_BENCH)
2026 testjitspeed: $(JITTEST_PROG) compile-tests
2027         for i in $(TESTS_BENCH); do     \
2028                 echo $$i;       \
2029                 time $(JITTEST_PROG) $$i;       \
2030         done
2032 test-iomap-regression: exists.exe
2033         @echo "Testing exists.exe..."
2034         @MONO_IOMAP=all $(RUNTIME) exists.exe
2036 stresstest: compile-tests
2037         @failed=0; \
2038         passed=0; \
2039         failed_tests="";\
2040         for i in $(TESTS_STRESS); do    \
2041                 if $(srcdir)/stress-runner.pl $$i ../mini/mono $(TEST_RUNTIME_ARGS); \
2042                 then \
2043                         passed=`expr $${passed} + 1`; \
2044                 else \
2045                         if [ $$? = 2 ]; then break; fi; \
2046                         failed=`expr $${failed} + 1`; \
2047                         failed_tests="$${failed_tests} $$i"; \
2048                 fi \
2049         done; \
2050         echo "$${passed} test(s) passed. $${failed} test(s) did not pass."; \
2051         if [ $${failed} != 0 ]; then echo -e "\nFailed tests:\n"; \
2052           for i in $${failed_tests}; do echo $${i}; done; exit 1; fi
2054 testbundle: console.exe
2055         @echo "Testing mkbundle..."
2056         @$(MKBUNDLE) --static console.exe > mkbundle.stdout
2057         @$(with_mono_path) MONO_CFG_DIR=$(mono_cfg_dir) ./a.out >> mkbundle.stdout
2058         @- rm -rf a.out
2060 EXTRA_DIST += load-missing.il t-missing.cs load-exceptions.cs
2062 load-missing.dll: load-missing.il
2063         $(Q) $(ILASM) /dll /output:$@ $<
2065 load-exceptions.exe t.dll: load-exceptions.cs t-missing.cs load-missing.dll $(TEST_DRIVER_DEPEND)
2066         $(Q) $(MCS) -t:library -out:t.dll -d:FOUND t-missing.cs
2067         $(Q) $(MCS) -r:TestDriver.dll -r:load-missing.dll -r:t.dll -out:$@ $<
2068         $(Q) $(MCS) -t:library -out:t.dll t-missing.cs
2070 test-type-load: load-exceptions.exe
2071 if !POWERPC64
2072         $(Q) $(RUNTIME) load-exceptions.exe > load-exceptions.exe.stdout 2> load-exceptions.exe.stderr
2073 endif
2075 EXTRA_DIST += test-multi-netmodule-1-netmodule.cs test-multi-netmodule-2-dll1.cs test-multi-netmodule-3-dll2.cs test-multi-netmodule-4-exe.cs
2077 test-multi-netmodule-1-netmodule.netmodule: test-multi-netmodule-1-netmodule.cs
2078         $(Q) $(MCS) -t:module -out:$@ $<
2079 test-multi-netmodule-2-dll1.dll: test-multi-netmodule-2-dll1.cs test-multi-netmodule-1-netmodule.netmodule
2080         $(Q) $(MCS) -addmodule:test-multi-netmodule-1-netmodule.netmodule -t:library  -out:$@ $<
2081 test-multi-netmodule-3-dll2.dll: test-multi-netmodule-3-dll2.cs test-multi-netmodule-1-netmodule.netmodule
2082         $(Q) $(MCS) -addmodule:test-multi-netmodule-1-netmodule.netmodule -t:library -out:$@ $<
2083 test-multi-netmodule-4-exe.exe: test-multi-netmodule-4-exe.cs test-multi-netmodule-2-dll1.dll test-multi-netmodule-3-dll2.dll
2084         $(Q) $(MCS) -r:test-multi-netmodule-2-dll1.dll -out:$@ $<
2086 test-multi-netmodule: test-multi-netmodule-4-exe.exe
2087         $(Q) $(TOOLS_RUNTIME) $(TEST_RUNNER) --testsuite-name $@ --disabled "$(DISABLED_TESTS)" $<
2089 EXTRA_DIST += custom-attr-errors.cs custom-attr-errors-lib.cs
2091 custom-attr-errors.exe custom-attr-errors-lib.dll: custom-attr-errors.cs custom-attr-errors-lib.cs $(TEST_DRIVER_DEPEND)
2092         $(Q) $(MCS) /t:library -D:WITH_MEMBERS custom-attr-errors-lib.cs
2093         $(Q) $(MCS) -r:TestDriver.dll -r:custom-attr-errors-lib.dll custom-attr-errors.cs
2094         $(Q) $(MCS) /t:library custom-attr-errors-lib.cs
2096 test-cattr-type-load: custom-attr-errors.exe
2097         $(Q) $(TOOLS_RUNTIME) $(TEST_RUNNER) --testsuite-name $@ --disabled "$(DISABLED_TESTS)" $<
2099 EXTRA_DIST += reflection-load-with-context-lib.cs reflection-load-with-context-second-lib.cs reflection-load-with-context.cs
2101 reflection-load-with-context-second-lib.dll: reflection-load-with-context-second-lib.cs
2102         $(Q) $(MCS) /t:library -out:$@ $<
2103 reflection-load-with-context-lib.dll: reflection-load-with-context-lib.cs reflection-load-with-context-second-lib.dll
2104         $(Q) $(MCS) /t:library -r:reflection-load-with-context-second-lib.dll -out:$@ $<
2105 reflection-load-with-context.exe: reflection-load-with-context-lib.dll
2107 test-reflection-load-with-context: reflection-load-with-context.exe
2108         $(Q) $(RUNTIME) reflection-load-with-context.exe > reflection-load-with-context.exe.stdout 2> reflection-load-with-context.exe.stderr
2111 EXTRA_DIST += debug-casts.cs
2112 # This depends on TLS, so its not ran by default
2113 debug-casts: debug-casts.exe
2114         $(Q) $(RUNTIME) --debug=casts debug-casts.exe
2116 EXTRA_DIST += sgen-bridge.cs sgen-descriptors.cs sgen-gshared-vtype.cs sgen-bridge-major-fragmentation.cs sgen-domain-unload.cs sgen-weakref-stress.cs sgen-cementing-stress.cs sgen-case-23400.cs      finalizer-wait.cs critical-finalizers.cs sgen-domain-unload-2.cs sgen-suspend.cs sgen-new-threads-dont-join-stw.cs sgen-new-threads-dont-join-stw-2.cs sgen-new-threads-collect.cs sgen-bridge-xref.cs bug-17590.cs sgen-toggleref.cs sgen-bridge-gchandle.cs
2118 test-sgen:
2119         ok=; \
2120         $(MAKE) test-sgen-regular || ok=false; \
2121         $(MAKE) test-sgen-toggleref || ok=false; \
2122         $(MAKE) test-sgen-bridge || ok=false; \
2123         $(MAKE) test-sgen-bridge2 || ok=false; \
2124         $(MAKE) test-sgen-bridge3 || ok=false; \
2125         $$ok
2127 test-stress-sgen:
2128         ok=; \
2129         $(MAKE) test-stress-sgen-regular || ok=false; \
2130         $(MAKE) test-stress-sgen-toggleref || ok=false; \
2131         $(MAKE) test-stress-sgen-bridge || ok=false; \
2132         $(MAKE) test-stress-sgen-bridge2 || ok=false; \
2133         $(MAKE) test-stress-sgen-bridge3 || ok=false; \
2134         $$ok
2136 TESTS_SGEN_REGULAR_SRC =        \
2137         finalizer-wait.cs       \
2138         critical-finalizers.cs  \
2139         sgen-descriptors.cs     \
2140         sgen-gshared-vtype.cs   \
2141         sgen-weakref-stress.cs  \
2142         sgen-cementing-stress.cs        \
2143         sgen-case-23400.cs      \
2144         sgen-new-threads-dont-join-stw.cs       \
2145         sgen-new-threads-dont-join-stw-2.cs     \
2146         sgen-new-threads-collect.cs     \
2147         gc-graystack-stress.cs  \
2148         bug-17590.cs    \
2149         sgen-domain-unload.cs   \
2150         sgen-domain-unload-2.cs
2152 TESTS_SGEN_REGULAR=$(filter-out $(DISABLED_TESTS),$(TESTS_SGEN_REGULAR_SRC:.cs=.exe))
2154 if FULL_AOT_TESTS
2155 TESTSAOT_SGEN_REGULAR=$(TESTS_SGEN_REGULAR:.exe=.exe$(PLATFORM_AOT_SUFFIX))
2156 endif
2158 if HYBRID_AOT_TESTS
2159 TESTSAOT_SGEN_REGULAR=$(TESTS_SGEN_REGULAR:.exe=.exe$(PLATFORM_AOT_SUFFIX))
2160 endif
2162 # The .cs tests are not interesting initially but should be later.
2164 #FIXME
2165 #coreclr/tailcall/CoreMangLib/system/span/SlowTailCallArgs.cs(124,13): error CS8107: Feature 'ref structs' is not available in C# 7.0. Please use language version 7.2 or greater.
2166 #coreclr/tailcall/CoreMangLib/cti/system/reflection/emit/opcodes/opcodestailcall.cs(17,9): error CS0103: The name 'TestLibrary' does not exist in the current context
2168 TEST_TAILCALL_CS_SRC=\
2169         tailcall/coreclr/JIT/CodeGenBringUpTests/RecursiveTailCall.cs \
2170         tailcall/coreclr/JIT/Methodical/tailcall/Desktop/thread-race.cs \
2171         tailcall/coreclr/JIT/Methodical/tailcall_v4/delegateParamCallTarget.cs \
2172         tailcall/coreclr/JIT/opt/FastTailCall/FastTailCallCandidates.cs \
2173         tailcall/coreclr/JIT/opt/FastTailCall/FastTailCallInlining.cs \
2174         tailcall/coreclr/JIT/opt/FastTailCall/GitHubIssue12479.cs \
2175         tailcall/coreclr/JIT/opt/FastTailCall/StackFixup.cs \
2176         tailcall/coreclr/JIT/opt/FastTailCall/StructPassingSimple.cs
2178 # At these locations we have .cs and .il.
2179 # The .il is clearly derived from the .cs, such as by running
2180 # csc + ildasm + edit.
2181 # The .cs is opportunistically optimizable, see https://github.com/mono/mono/issues/7259.
2182 # But for now we only want the .il.
2183 #tailcall/coreclr/JIT/Methodical/Boxing/misc/tailjump.cs
2184 #tailcall/coreclr/JIT/Methodical/Invoke/SEH/catchfinally_tail.cs
2185 #tailcall/coreclr/JIT/Methodical/nonvirtualcall/tailcall.cs
2186 #tailcall/coreclr/JIT/Methodical/tailcall/compat_i2_bool.il
2187 #tailcall/coreclr/JIT/Methodical/tailcall/compat_i4_i1.il
2188 #tailcall/coreclr/JIT/Methodical/tailcall/compat_i4_u.il
2189 #tailcall/coreclr/JIT/Methodical/tailcall/compat_i_u2.il
2190 #tailcall/coreclr/JIT/Methodical/tailcall/compat_r4_r8.il
2191 #tailcall/coreclr/JIT/Methodical/tailcall/compat_r8_r4.il
2193 TEST_TAILCALL_IL_SRC=\
2194         tailcall/coreclr/JIT/opt/Tailcall/TailcallVerifyWithPrefix.il \
2195         tailcall/coreclr/JIT/opt/Tailcall/TailcallVerifyTransparentLibraryWithPrefix.il \
2196         tailcall/coreclr/JIT/opt/Tailcall/TailcallVerifyVerifiableLibraryWithPrefix.il \
2197         tailcall/coreclr/JIT/Directed/coverage/importer/badtailcall.il \
2198         tailcall/coreclr/JIT/Directed/coverage/importer/Desktop/badtailcall.il \
2199         tailcall/coreclr/JIT/Directed/IL/mutualrecur-tailcall/MutualRecur-TailCall.il \
2200         tailcall/coreclr/JIT/Directed/IL/PInvokeTail/tailwinapi.il \
2201         tailcall/coreclr/JIT/Directed/IL/Tailcall/JitTailcall1.il \
2202         tailcall/coreclr/JIT/Directed/IL/Tailcall/Jittailcall2.il \
2203         tailcall/coreclr/JIT/Directed/pinvoke/tail.il \
2204         tailcall/coreclr/JIT/Directed/tailcall/tailcall.il \
2205         tailcall/coreclr/JIT/IL_Conformance/Old/Base/tailcall.il \
2206         tailcall/coreclr/JIT/Methodical/Boxing/boxunbox/tailcall.il \
2207         tailcall/coreclr/JIT/Methodical/Boxing/misc/tailjump.il \
2208         tailcall/coreclr/JIT/Methodical/Invoke/fptr/recurse_tail_call.il \
2209         tailcall/coreclr/JIT/Methodical/Invoke/fptr/recurse_tail_calli.il \
2210         tailcall/coreclr/JIT/Methodical/Invoke/SEH/catchfault_tail.il \
2211         tailcall/coreclr/JIT/Methodical/Invoke/SEH/catchfinally_tail.il \
2212         tailcall/coreclr/JIT/Methodical/nonvirtualcall/tailcall.il \
2213         tailcall/coreclr/JIT/Methodical/tailcall/compat_obj.il \
2214         tailcall/coreclr/JIT/Methodical/tailcall/compat_v.il \
2215         tailcall/coreclr/JIT/Methodical/tailcall/deep_array.il \
2216         tailcall/coreclr/JIT/Methodical/tailcall/deep_array_nz.il \
2217         tailcall/coreclr/JIT/Methodical/tailcall/deep_gc.il \
2218         tailcall/coreclr/JIT/Methodical/tailcall/deep_inst.il \
2219         tailcall/coreclr/JIT/Methodical/tailcall/deep_value.il \
2220         tailcall/coreclr/JIT/Methodical/tailcall/deep_virt.il \
2221         tailcall/coreclr/JIT/Methodical/tailcall/gcval.il \
2222         tailcall/coreclr/JIT/Methodical/tailcall/gcval_nested.il \
2223         tailcall/coreclr/JIT/Methodical/tailcall/gcval_sideeffect.il \
2224         tailcall/coreclr/JIT/Methodical/tailcall/pointer.il \
2225         tailcall/coreclr/JIT/Methodical/tailcall/pointer_i.il \
2226         tailcall/coreclr/JIT/Methodical/tailcall/recurse_ep.il \
2227         tailcall/coreclr/JIT/Methodical/tailcall/recurse_ep_void.il \
2228         tailcall/coreclr/JIT/Methodical/tailcall/reference_i.il \
2229         tailcall/coreclr/JIT/Methodical/tailcall/test_2a.il \
2230         tailcall/coreclr/JIT/Methodical/tailcall/test_2b.il \
2231         tailcall/coreclr/JIT/Methodical/tailcall/test_2c.il \
2232         tailcall/coreclr/JIT/Methodical/tailcall/test_3b.il \
2233         tailcall/coreclr/JIT/Methodical/tailcall/test_implicit.il \
2234         tailcall/coreclr/JIT/Methodical/tailcall/test_mutual_rec.il \
2235         tailcall/coreclr/JIT/Methodical/tailcall/test_switch.il \
2236         tailcall/coreclr/JIT/Methodical/tailcall/test_virt.il \
2237         tailcall/coreclr/JIT/Methodical/tailcall/test_void.il \
2238         tailcall/coreclr/JIT/Methodical/tailcall_v4/delegateTail.il \
2239         tailcall/coreclr/JIT/Methodical/tailcall_v4/hijacking.il \
2240         tailcall/coreclr/JIT/Methodical/tailcall_v4/smallFrame.il \
2241         tailcall/coreclr/JIT/Methodical/tailcall_v4/tailcall_AV.il \
2242         tailcall/coreclr/JIT/opt/ETW/TailCallCases.il \
2243         tailcall/coreclr/JIT/Regression/VS-ia64-JIT/V1.2-M02/b102844/tailcallcalli.il
2245 test-sgen-regular: $(TESTS_SGEN_REGULAR) $(TESTSAOT_SGEN_REGULAR)
2246         ok=; \
2247         $(MAKE) test-sgen-regular-ms-simple || ok=false; \
2248         $(MAKE) test-sgen-regular-ms-conc-simple || ok=false; \
2249         $$ok
2251 test-stress-sgen-regular: $(TESTS_SGEN_REGULAR) $(TESTSAOT_SGEN_REGULAR)
2252         ok=; \
2253         $(MAKE) test-sgen-regular-ms-simple MONO_TESTS_STRESS=1 || ok=false; \
2254         $(MAKE) test-sgen-regular-ms-conc-simple MONO_TESTS_STRESS=1 || ok=false; \
2255         $(MAKE) test-sgen-regular-ms-conc-par-simple MONO_TESTS_STRESS=1 || ok=false; \
2256         $(MAKE) test-sgen-regular-ms-conc-split MONO_TESTS_STRESS=1 || ok=false; \
2257         $(MAKE) test-sgen-regular-ms-conc-split-95-clear-at-gc MONO_TESTS_STRESS=1 || ok=false; \
2258         $(MAKE) test-sgen-regular-ms-conc-par-simple-par-dyn MONO_TESTS_STRESS=1 || ok=false; \
2259         $(MAKE) test-sgen-regular-ms-conc-par-simple-par-512k MONO_TESTS_STRESS=1 || ok=false; \
2260         $(MAKE) test-sgen-regular-ms-conc-par-simple-par-32m MONO_TESTS_STRESS=1 || ok=false; \
2261         $(MAKE) test-sgen-regular-ms-conc-par-simple-par-dyn-clear-at-gc MONO_TESTS_STRESS=1 || ok=false; \
2262         $$ok
2264 test-sgen-regular-ms-simple: $(TESTS_SGEN_REGULAR) $(TESTSAOT_SGEN_REGULAR) test-runner.exe
2265         $(TOOLS_RUNTIME) $(TEST_RUNNER) --testsuite-name $@ --runtime-args "--gc=sgen --gc-debug= --gc-params=major=marksweep,minor=simple" --disabled "$(DISABLED_TESTS)" --timeout 900 $(TESTS_SGEN_REGULAR)
2266 test-sgen-regular-ms-conc-simple: $(TESTS_SGEN_REGULAR) $(TESTSAOT_SGEN_REGULAR) test-runner.exe
2267         $(TOOLS_RUNTIME) $(TEST_RUNNER) --testsuite-name $@ --runtime-args "--gc=sgen --gc-debug= --gc-params=major=marksweep-conc,minor=simple" --disabled "$(DISABLED_TESTS)" --timeout 900 $(TESTS_SGEN_REGULAR)
2268 test-sgen-regular-ms-conc-par-simple: $(TESTS_SGEN_REGULAR) $(TESTSAOT_SGEN_REGULAR) test-runner.exe
2269         $(TOOLS_RUNTIME) $(TEST_RUNNER) --testsuite-name $@ --runtime-args "--gc=sgen --gc-debug= --gc-params=major=marksweep-conc-par,minor=simple" --disabled "$(DISABLED_TESTS)" --timeout 900 $(TESTS_SGEN_REGULAR)
2270 test-sgen-regular-ms-conc-split: $(TESTS_SGEN_REGULAR) $(TESTSAOT_SGEN_REGULAR) test-runner.exe
2271         $(TOOLS_RUNTIME) $(TEST_RUNNER) --testsuite-name $@ --runtime-args "--gc=sgen --gc-debug= --gc-params=major=marksweep-conc,minor=split" --disabled "$(DISABLED_TESTS)" --timeout 900 $(TESTS_SGEN_REGULAR)
2272 test-sgen-regular-ms-conc-split-95-clear-at-gc: $(TESTS_SGEN_REGULAR) $(TESTSAOT_SGEN_REGULAR) test-runner.exe
2273         $(TOOLS_RUNTIME) $(TEST_RUNNER) --testsuite-name $@ --runtime-args "--gc=sgen --gc-debug=clear-at-gc --gc-params=major=marksweep-conc,minor=split,alloc-ratio=95" --disabled "$(DISABLED_TESTS)" --timeout 900 $(TESTS_SGEN_REGULAR)
2274 test-sgen-regular-ms-conc-par-simple-par-dyn: $(TESTS_SGEN_REGULAR) $(TESTSAOT_SGEN_REGULAR) test-runner.exe
2275         $(TOOLS_RUNTIME) $(TEST_RUNNER) --testsuite-name $@ --runtime-args "--gc=sgen --gc-debug= --gc-params=major=marksweep-conc-par,minor=simple-par,dynamic-nursery" --disabled "$(DISABLED_TESTS)" --timeout 900 $(TESTS_SGEN_REGULAR)
2276 test-sgen-regular-ms-conc-par-simple-par-512k: $(TESTS_SGEN_REGULAR) $(TESTSAOT_SGEN_REGULAR) test-runner.exe
2277         $(TOOLS_RUNTIME) $(TEST_RUNNER) --testsuite-name $@ --runtime-args "--gc=sgen --gc-debug= --gc-params=major=marksweep-conc-par,minor=simple-par,nursery-size=512k" --disabled "$(DISABLED_TESTS)" --timeout 900 $(TESTS_SGEN_REGULAR)
2278 test-sgen-regular-ms-conc-par-simple-par-32m: $(TESTS_SGEN_REGULAR) $(TESTSAOT_SGEN_REGULAR) test-runner.exe
2279         $(TOOLS_RUNTIME) $(TEST_RUNNER) --testsuite-name $@ --runtime-args "--gc=sgen --gc-debug= --gc-params=major=marksweep-conc-par,minor=simple-par,nursery-size=32m" --disabled "$(DISABLED_TESTS)" --timeout 900 $(TESTS_SGEN_REGULAR)
2280 test-sgen-regular-ms-conc-par-simple-par-dyn-clear-at-gc: $(TESTS_SGEN_REGULAR) $(TESTSAOT_SGEN_REGULAR) test-runner.exe
2281         $(TOOLS_RUNTIME) $(TEST_RUNNER) --testsuite-name $@ --runtime-args "--gc=sgen --gc-debug=clear-at-gc --gc-params=major=marksweep-conc-par,minor=simple-par,dynamic-nursery" --disabled "$(DISABLED_TESTS)" --timeout 900 $(TESTS_SGEN_REGULAR)
2283 TESTS_SGEN_TOGGLEREF_SRC=       \
2284         sgen-toggleref.cs
2286 TESTS_SGEN_TOGGLEREF=$(filter-out $(DISABLED_TESTS),$(TESTS_SGEN_TOGGLEREF_SRC:.cs=.exe))
2288 if FULL_AOT_TESTS
2289 TESTSAOT_SGEN_TOGGLEREF=$(TESTS_SGEN_TOGGLEREF:.exe=.exe$(PLATFORM_AOT_SUFFIX))
2290 endif
2292 if HYBRID_AOT_TESTS
2293 TESTSAOT_SGEN_TOGGLEREF=$(TESTS_SGEN_TOGGLEREF:.exe=.exe$(PLATFORM_AOT_SUFFIX))
2294 endif
2296 test-sgen-toggleref: $(TESTS_SGEN_TOGGLEREF) $(TESTSAOT_SGEN_TOGGLEREF)
2297         ok=; \
2298         $(MAKE) test-sgen-toggleref-ms-simple || ok=false; \
2299         $(MAKE) test-sgen-toggleref-ms-conc-simple || ok=false; \
2300         $$ok
2302 test-stress-sgen-toggleref: $(TESTS_SGEN_TOGGLEREF) $(TESTSAOT_SGEN_TOGGLEREF)
2303         ok=; \
2304         $(MAKE) test-sgen-toggleref-ms-simple MONO_TESTS_STRESS=1 || ok=false; \
2305         $(MAKE) test-sgen-toggleref-ms-conc-simple MONO_TESTS_STRESS=1 || ok=false; \
2306         $(MAKE) test-sgen-toggleref-ms-conc-par-simple MONO_TESTS_STRESS=1 || ok=false; \
2307         $(MAKE) test-sgen-toggleref-ms-conc-split MONO_TESTS_STRESS=1 || ok=false; \
2308         $(MAKE) test-sgen-toggleref-ms-conc-split-95-clear-at-gc MONO_TESTS_STRESS=1 || ok=false; \
2309         $(MAKE) test-sgen-toggleref-ms-conc-par-simple-par-dyn MONO_TESTS_STRESS=1 || ok=false; \
2310         $(MAKE) test-sgen-toggleref-ms-conc-par-simple-par-512k MONO_TESTS_STRESS=1 || ok=false; \
2311         $(MAKE) test-sgen-toggleref-ms-conc-par-simple-par-32m MONO_TESTS_STRESS=1 || ok=false; \
2312         $(MAKE) test-sgen-toggleref-ms-conc-par-simple-par-dyn-clear-at-gc MONO_TESTS_STRESS=1 || ok=false; \
2313         $$ok
2315 test-sgen-toggleref-ms-simple: $(TESTS_SGEN_TOGGLEREF) $(TESTSAOT_SGEN_TOGGLEREF) test-runner.exe
2316         $(TOOLS_RUNTIME) $(TEST_RUNNER) --testsuite-name $@ --runtime-args "--gc=sgen --gc-debug= --gc-params=toggleref-test,major=marksweep,minor=simple" --disabled "$(DISABLED_TESTS)" --timeout 900 $(TESTS_SGEN_TOGGLEREF)
2317 test-sgen-toggleref-ms-conc-simple: $(TESTS_SGEN_TOGGLEREF) $(TESTSAOT_SGEN_TOGGLEREF) test-runner.exe
2318         $(TOOLS_RUNTIME) $(TEST_RUNNER) --testsuite-name $@ --runtime-args "--gc=sgen --gc-debug= --gc-params=toggleref-test,major=marksweep-conc,minor=simple" --disabled "$(DISABLED_TESTS)" --timeout 900 $(TESTS_SGEN_TOGGLEREF)
2319 test-sgen-toggleref-ms-conc-par-simple: $(TESTS_SGEN_TOGGLEREF) $(TESTSAOT_SGEN_TOGGLEREF) test-runner.exe
2320         $(TOOLS_RUNTIME) $(TEST_RUNNER) --testsuite-name $@ --runtime-args "--gc=sgen --gc-debug= --gc-params=toggleref-test,major=marksweep-conc-par,minor=simple" --disabled "$(DISABLED_TESTS)" --timeout 900 $(TESTS_SGEN_TOGGLEREF)
2321 test-sgen-toggleref-ms-conc-split: $(TESTS_SGEN_TOGGLEREF) $(TESTSAOT_SGEN_TOGGLEREF) test-runner.exe
2322         $(TOOLS_RUNTIME) $(TEST_RUNNER) --testsuite-name $@ --runtime-args "--gc=sgen --gc-debug= --gc-params=toggleref-test,major=marksweep-conc,minor=split" --disabled "$(DISABLED_TESTS)" --timeout 900 $(TESTS_SGEN_TOGGLEREF)
2323 test-sgen-toggleref-ms-conc-split-95-clear-at-gc: $(TESTS_SGEN_TOGGLEREF) $(TESTSAOT_SGEN_TOGGLEREF) test-runner.exe
2324         $(TOOLS_RUNTIME) $(TEST_RUNNER) --testsuite-name $@ --runtime-args "--gc=sgen --gc-debug=clear-at-gc --gc-params=toggleref-test,major=marksweep-conc,minor=split,alloc-ratio=95" --disabled "$(DISABLED_TESTS)" --timeout 900 $(TESTS_SGEN_TOGGLEREF)
2325 test-sgen-toggleref-ms-conc-par-simple-par-dyn: $(TESTS_SGEN_TOGGLEREF) $(TESTSAOT_SGEN_TOGGLEREF) test-runner.exe
2326         $(TOOLS_RUNTIME) $(TEST_RUNNER) --testsuite-name $@ --runtime-args "--gc=sgen --gc-debug= --gc-params=toggleref-test,major=marksweep-conc-par,minor=simple-par,dynamic-nursery" --disabled "$(DISABLED_TESTS)" --timeout 900 $(TESTS_SGEN_TOGGLEREF)
2327 test-sgen-toggleref-ms-conc-par-simple-par-512k: $(TESTS_SGEN_TOGGLEREF) $(TESTSAOT_SGEN_TOGGLEREF) test-runner.exe
2328         $(TOOLS_RUNTIME) $(TEST_RUNNER) --testsuite-name $@ --runtime-args "--gc=sgen --gc-debug= --gc-params=toggleref-test,major=marksweep-conc-par,minor=simple-par,nursery-size=512k" --disabled "$(DISABLED_TESTS)" --timeout 900 $(TESTS_SGEN_TOGGLEREF)
2329 test-sgen-toggleref-ms-conc-par-simple-par-32m: $(TESTS_SGEN_TOGGLEREF) $(TESTSAOT_SGEN_TOGGLEREF) test-runner.exe
2330         $(TOOLS_RUNTIME) $(TEST_RUNNER) --testsuite-name $@ --runtime-args "--gc=sgen --gc-debug= --gc-params=toggleref-test,major=marksweep-conc-par,minor=simple-par,nursery-size=32m" --disabled "$(DISABLED_TESTS)" --timeout 900 $(TESTS_SGEN_TOGGLEREF)
2331 test-sgen-toggleref-ms-conc-par-simple-par-dyn-clear-at-gc: $(TESTS_SGEN_TOGGLEREF) $(TESTSAOT_SGEN_TOGGLEREF) test-runner.exe
2332         $(TOOLS_RUNTIME) $(TEST_RUNNER) --testsuite-name $@ --runtime-args "--gc=sgen --gc-debug=clear-at-gc --gc-params=toggleref-test,major=marksweep-conc-par,minor=simple-par,dynamic-nursery" --disabled "$(DISABLED_TESTS)" --timeout 900 $(TESTS_SGEN_TOGGLEREF)
2334 TESTS_SGEN_BRIDGE_SRC=  \
2335         sgen-bridge.cs  \
2336         sgen-bridge-major-fragmentation.cs
2338 TESTS_SGEN_BRIDGE=$(filter-out $(DISABLED_TESTS),$(TESTS_SGEN_BRIDGE_SRC:.cs=.exe))
2340 if FULL_AOT_TESTS
2341 TESTSAOT_SGEN_BRIDGE=$(TESTS_SGEN_BRIDGE:.exe=.exe$(PLATFORM_AOT_SUFFIX))
2342 endif
2344 if HYBRID_AOT_TESTS
2345 TESTSAOT_SGEN_BRIDGE=$(TESTS_SGEN_BRIDGE:.exe=.exe$(PLATFORM_AOT_SUFFIX))
2346 endif
2348 test-sgen-bridge: $(TESTS_SGEN_BRIDGE) $(TESTSAOT_SGEN_BRIDGE)
2349         ok=; \
2350         $(MAKE) test-sgen-bridge-ms-simple-tarjan-bridge || ok=false; \
2351         $(MAKE) test-sgen-bridge-ms-conc-simple-tarjan-bridge || ok=false; \
2352         $$ok
2354 test-stress-sgen-bridge: $(TESTS_SGEN_BRIDGE) $(TESTSAOT_SGEN_BRIDGE)
2355         ok=; \
2356         $(MAKE) test-sgen-bridge-ms-simple-tarjan-bridge MONO_TESTS_STRESS=1 || ok=false; \
2357         $(MAKE) test-sgen-bridge-ms-conc-simple-tarjan-bridge MONO_TESTS_STRESS=1 || ok=false; \
2358         $(MAKE) test-sgen-bridge-ms-conc-split-tarjan-bridge MONO_TESTS_STRESS=1 || ok=false; \
2359         $(MAKE) test-sgen-bridge-ms-conc-simple-new-bridge MONO_TESTS_STRESS=1 || ok=false; \
2360         $(MAKE) test-sgen-bridge-ms-conc-simple-old-bridge MONO_TESTS_STRESS=1 || ok=false; \
2361         $(MAKE) test-sgen-bridge-ms-conc-par-simple-par-dyn-tarjan-bridge MONO_TESTS_STRESS=1 || ok=false; \
2362         $(MAKE) test-sgen-bridge-ms-conc-par-simple-par-512k-tarjan-bridge MONO_TESTS_STRESS=1 || ok=false; \
2363         $(MAKE) test-sgen-bridge-ms-conc-par-simple-par-32m-tarjan-bridge MONO_TESTS_STRESS=1 || ok=false; \
2364         $$ok
2366 test-sgen-bridge-ms-simple-tarjan-bridge: $(TESTS_SGEN_BRIDGE) $(TESTSAOT_SGEN_BRIDGE) test-runner.exe
2367         $(TOOLS_RUNTIME) $(TEST_RUNNER) --testsuite-name $@ --runtime-args "--gc=sgen --gc-debug=bridge=Bridge --gc-params=major=marksweep,minor=simple,bridge-implementation=tarjan" --disabled "$(DISABLED_TESTS)" --timeout 900 $(TESTS_SGEN_BRIDGE)
2368 test-sgen-bridge-ms-conc-simple-tarjan-bridge: $(TESTS_SGEN_BRIDGE) $(TESTSAOT_SGEN_BRIDGE) test-runner.exe
2369         $(TOOLS_RUNTIME) $(TEST_RUNNER) --testsuite-name $@ --runtime-args "--gc=sgen --gc-debug=bridge=Bridge --gc-params=major=marksweep-conc,minor=simple,bridge-implementation=tarjan" --disabled "$(DISABLED_TESTS)" --timeout 900 $(TESTS_SGEN_BRIDGE)
2370 test-sgen-bridge-ms-conc-split-tarjan-bridge: $(TESTS_SGEN_BRIDGE) $(TESTSAOT_SGEN_BRIDGE) test-runner.exe
2371         $(TOOLS_RUNTIME) $(TEST_RUNNER) --testsuite-name $@ --runtime-args "--gc=sgen --gc-debug=bridge=Bridge --gc-params=major=marksweep-conc,minor=split,bridge-implementation=tarjan" --disabled "$(DISABLED_TESTS)" --timeout 900 $(TESTS_SGEN_BRIDGE)
2372 test-sgen-bridge-ms-conc-simple-new-bridge: $(TESTS_SGEN_BRIDGE) $(TESTSAOT_SGEN_BRIDGE) test-runner.exe
2373         $(TOOLS_RUNTIME) $(TEST_RUNNER) --testsuite-name $@ --runtime-args "--gc=sgen --gc-debug=bridge=Bridge --gc-params=major=marksweep-conc,minor=simple,bridge-implementation=new" --disabled "$(DISABLED_TESTS)" --timeout 900 $(TESTS_SGEN_BRIDGE)
2374 test-sgen-bridge-ms-conc-simple-old-bridge: $(TESTS_SGEN_BRIDGE) $(TESTSAOT_SGEN_BRIDGE) test-runner.exe
2375         $(TOOLS_RUNTIME) $(TEST_RUNNER) --testsuite-name $@ --runtime-args "--gc=sgen --gc-debug=bridge=Bridge --gc-params=major=marksweep-conc,minor=simple,bridge-implementation=old" --disabled "$(DISABLED_TESTS)" --timeout 900 $(TESTS_SGEN_BRIDGE)
2376 test-sgen-bridge-ms-conc-par-simple-par-dyn-tarjan-bridge: $(TESTS_SGEN_BRIDGE) $(TESTSAOT_SGEN_BRIDGE) test-runner.exe
2377         $(TOOLS_RUNTIME) $(TEST_RUNNER) --testsuite-name $@ --runtime-args "--gc=sgen --gc-debug=bridge=Bridge --gc-params=major=marksweep-conc-par,minor=simple-par,dynamic-nursery,bridge-implementation=tarjan" --disabled "$(DISABLED_TESTS)" --timeout 900 $(TESTS_SGEN_BRIDGE)
2378 test-sgen-bridge-ms-conc-par-simple-par-512k-tarjan-bridge: $(TESTS_SGEN_BRIDGE) $(TESTSAOT_SGEN_BRIDGE) test-runner.exe
2379         $(TOOLS_RUNTIME) $(TEST_RUNNER) --testsuite-name $@ --runtime-args "--gc=sgen --gc-debug=bridge=Bridge --gc-params=major=marksweep-conc-par,minor=simple-par,nursery-size=512k,bridge-implementation=tarjan" --disabled "$(DISABLED_TESTS)" --timeout 900 $(TESTS_SGEN_BRIDGE)
2380 test-sgen-bridge-ms-conc-par-simple-par-32m-tarjan-bridge: $(TESTS_SGEN_BRIDGE) $(TESTSAOT_SGEN_BRIDGE) test-runner.exe
2381         $(TOOLS_RUNTIME) $(TEST_RUNNER) --testsuite-name $@ --runtime-args "--gc=sgen --gc-debug=bridge=Bridge --gc-params=major=marksweep-conc-par,minor=simple-par,nursery-size=32m,bridge-implementation=tarjan" --disabled "$(DISABLED_TESTS)" --timeout 900 $(TESTS_SGEN_BRIDGE)
2383 TESTS_SGEN_BRIDGE2_SRC= \
2384         sgen-bridge-xref.cs
2386 TESTS_SGEN_BRIDGE2=$(filter-out $(DISABLED_TESTS),$(TESTS_SGEN_BRIDGE2_SRC:.cs=.exe))
2388 if FULL_AOT_TESTS
2389 TESTSAOT_SGEN_BRIDGE2=$(TESTS_SGEN_BRIDGE2:.exe=.exe$(PLATFORM_AOT_SUFFIX))
2390 endif
2392 if HYBRID_AOT_TESTS
2393 TESTSAOT_SGEN_BRIDGE2=$(TESTS_SGEN_BRIDGE2:.exe=.exe$(PLATFORM_AOT_SUFFIX))
2394 endif
2396 test-sgen-bridge2: $(TESTS_SGEN_BRIDGE2) $(TESTSAOT_SGEN_BRIDGE2)
2397         ok=; \
2398         $(MAKE) test-sgen-bridge2-ms-simple-tarjan-bridge || ok=false; \
2399         $(MAKE) test-sgen-bridge2-ms-conc-simple-tarjan-bridge || ok=false; \
2400         $$ok
2402 test-stress-sgen-bridge2: $(TESTS_SGEN_BRIDGE2) $(TESTSAOT_SGEN_BRIDGE2)
2403         ok=; \
2404         $(MAKE) test-sgen-bridge2-ms-simple-tarjan-bridge MONO_TESTS_STRESS=1 || ok=false; \
2405         $(MAKE) test-sgen-bridge2-ms-conc-simple-tarjan-bridge MONO_TESTS_STRESS=1 || ok=false; \
2406         $(MAKE) test-sgen-bridge2-ms-conc-split-tarjan-bridge MONO_TESTS_STRESS=1 || ok=false; \
2407         $(MAKE) test-sgen-bridge2-ms-conc-simple-new-bridge MONO_TESTS_STRESS=1 || ok=false; \
2408         $(MAKE) test-sgen-bridge2-ms-conc-simple-old-bridge MONO_TESTS_STRESS=1 || ok=false; \
2409         $(MAKE) test-sgen-bridge2-ms-conc-par-simple-par-dyn-tarjan-bridge MONO_TESTS_STRESS=1 || ok=false; \
2410         $(MAKE) test-sgen-bridge2-ms-conc-par-simple-par-512k-tarjan-bridge MONO_TESTS_STRESS=1 || ok=false; \
2411         $(MAKE) test-sgen-bridge2-ms-conc-par-simple-par-32m-tarjan-bridge MONO_TESTS_STRESS=1 || ok=false; \
2412         $$ok
2414 test-sgen-bridge2-ms-simple-tarjan-bridge: $(TESTS_SGEN_BRIDGE2) $(TESTSAOT_SGEN_BRIDGE2) test-runner.exe
2415         $(TOOLS_RUNTIME) $(TEST_RUNNER) --testsuite-name $@ --runtime-args "--gc=sgen --gc-debug=bridge=2Bridge --gc-params=major=marksweep,minor=simple,bridge-implementation=tarjan" --disabled "$(DISABLED_TESTS)" --timeout 900 $(TESTS_SGEN_BRIDGE2)
2416 test-sgen-bridge2-ms-conc-simple-tarjan-bridge: $(TESTS_SGEN_BRIDGE2) $(TESTSAOT_SGEN_BRIDGE2) test-runner.exe
2417         $(TOOLS_RUNTIME) $(TEST_RUNNER) --testsuite-name $@ --runtime-args "--gc=sgen --gc-debug=bridge=2Bridge --gc-params=major=marksweep-conc,minor=simple,bridge-implementation=tarjan" --disabled "$(DISABLED_TESTS)" --timeout 900 $(TESTS_SGEN_BRIDGE2)
2418 test-sgen-bridge2-ms-conc-split-tarjan-bridge: $(TESTS_SGEN_BRIDGE2) $(TESTSAOT_SGEN_BRIDGE2) test-runner.exe
2419         $(TOOLS_RUNTIME) $(TEST_RUNNER) --testsuite-name $@ --runtime-args "--gc=sgen --gc-debug=bridge=2Bridge --gc-params=major=marksweep-conc,minor=split,bridge-implementation=tarjan" --disabled "$(DISABLED_TESTS)" --timeout 900 $(TESTS_SGEN_BRIDGE2)
2420 test-sgen-bridge2-ms-conc-simple-new-bridge: $(TESTS_SGEN_BRIDGE2) $(TESTSAOT_SGEN_BRIDGE2) test-runner.exe
2421         $(TOOLS_RUNTIME) $(TEST_RUNNER) --testsuite-name $@ --runtime-args "--gc=sgen --gc-debug=bridge=2Bridge --gc-params=major=marksweep-conc,minor=simple,bridge-implementation=new" --disabled "$(DISABLED_TESTS)" --timeout 900 $(TESTS_SGEN_BRIDGE2)
2422 test-sgen-bridge2-ms-conc-simple-old-bridge: $(TESTS_SGEN_BRIDGE2) $(TESTSAOT_SGEN_BRIDGE2) test-runner.exe
2423         $(TOOLS_RUNTIME) $(TEST_RUNNER) --testsuite-name $@ --runtime-args "--gc=sgen --gc-debug=bridge=2Bridge --gc-params=major=marksweep-conc,minor=simple,bridge-implementation=old" --disabled "$(DISABLED_TESTS)" --timeout 900 $(TESTS_SGEN_BRIDGE2)
2424 test-sgen-bridge2-ms-conc-par-simple-par-dyn-tarjan-bridge: $(TESTS_SGEN_BRIDGE2) $(TESTSAOT_SGEN_BRIDGE2) test-runner.exe
2425         $(TOOLS_RUNTIME) $(TEST_RUNNER) --testsuite-name $@ --runtime-args "--gc=sgen --gc-debug=bridge=2Bridge --gc-params=major=marksweep-conc-par,minor=simple-par,dynamic-nursery,bridge-implementation=tarjan" --disabled "$(DISABLED_TESTS)" --timeout 900 $(TESTS_SGEN_BRIDGE2)
2426 test-sgen-bridge2-ms-conc-par-simple-par-512k-tarjan-bridge: $(TESTS_SGEN_BRIDGE2) $(TESTSAOT_SGEN_BRIDGE2) test-runner.exe
2427         $(TOOLS_RUNTIME) $(TEST_RUNNER) --testsuite-name $@ --runtime-args "--gc=sgen --gc-debug=bridge=2Bridge --gc-params=major=marksweep-conc-par,minor=simple-par,nursery-size=512k,bridge-implementation=tarjan" --disabled "$(DISABLED_TESTS)" --timeout 900 $(TESTS_SGEN_BRIDGE2)
2428 test-sgen-bridge2-ms-conc-par-simple-par-32m-tarjan-bridge: $(TESTS_SGEN_BRIDGE2) $(TESTSAOT_SGEN_BRIDGE2) test-runner.exe
2429         $(TOOLS_RUNTIME) $(TEST_RUNNER) --testsuite-name $@ --runtime-args "--gc=sgen --gc-debug=bridge=2Bridge --gc-params=major=marksweep-conc-par,minor=simple-par,nursery-size=32m,bridge-implementation=tarjan" --disabled "$(DISABLED_TESTS)" --timeout 900 $(TESTS_SGEN_BRIDGE2)
2431 TESTS_SGEN_BRIDGE3_SRC= \
2432         sgen-bridge-gchandle.cs
2434 TESTS_SGEN_BRIDGE3=$(filter-out $(DISABLED_TESTS),$(TESTS_SGEN_BRIDGE3_SRC:.cs=.exe))
2436 if FULL_AOT_TESTS
2437 TESTSAOT_SGEN_BRIDGE3=$(TESTS_SGEN_BRIDGE3:.exe=.exe$(PLATFORM_AOT_SUFFIX))
2438 endif
2440 if HYBRID_AOT_TESTS
2441 TESTSAOT_SGEN_BRIDGE3=$(TESTS_SGEN_BRIDGE3:.exe=.exe$(PLATFORM_AOT_SUFFIX))
2442 endif
2444 test-sgen-bridge3: $(TESTS_SGEN_BRIDGE3) $(TESTSAOT_SGEN_BRIDGE3)
2445         ok=; \
2446         $(MAKE) test-sgen-bridge3-ms-simple-tarjan-bridge || ok=false; \
2447         $(MAKE) test-sgen-bridge3-ms-conc-simple-tarjan-bridge || ok=false; \
2448         $$ok
2450 test-stress-sgen-bridge3: $(TESTS_SGEN_BRIDGE3) $(TESTSAOT_SGEN_BRIDGE3)
2451         ok=; \
2452         $(MAKE) test-sgen-bridge3-ms-simple-tarjan-bridge MONO_TESTS_STRESS=1 || ok=false; \
2453         $(MAKE) test-sgen-bridge3-ms-conc-simple-tarjan-bridge MONO_TESTS_STRESS=1 || ok=false; \
2454         $(MAKE) test-sgen-bridge3-ms-conc-split-tarjan-bridge MONO_TESTS_STRESS=1 || ok=false; \
2455         $(MAKE) test-sgen-bridge3-ms-conc-simple-new-bridge MONO_TESTS_STRESS=1 || ok=false; \
2456         $(MAKE) test-sgen-bridge3-ms-conc-simple-old-bridge MONO_TESTS_STRESS=1 || ok=false; \
2457         $(MAKE) test-sgen-bridge3-ms-conc-par-simple-par-dyn-tarjan-bridge MONO_TESTS_STRESS=1 || ok=false; \
2458         $(MAKE) test-sgen-bridge3-ms-conc-par-simple-par-512k-tarjan-bridge MONO_TESTS_STRESS=1 || ok=false; \
2459         $(MAKE) test-sgen-bridge3-ms-conc-par-simple-par-32m-tarjan-bridge MONO_TESTS_STRESS=1 || ok=false; \
2460         $$ok
2462 test-sgen-bridge3-ms-simple-tarjan-bridge: $(TESTS_SGEN_BRIDGE3) $(TESTSAOT_SGEN_BRIDGE3) test-runner.exe
2463         $(TOOLS_RUNTIME) $(TEST_RUNNER) --testsuite-name $@ --runtime-args "--gc=sgen --gc-debug=bridge=3Bridge --gc-params=major=marksweep,minor=simple,bridge-implementation=tarjan" --disabled "$(DISABLED_TESTS)" --timeout 900 $(TESTS_SGEN_BRIDGE3)
2464 test-sgen-bridge3-ms-conc-simple-tarjan-bridge: $(TESTS_SGEN_BRIDGE3) $(TESTSAOT_SGEN_BRIDGE3) test-runner.exe
2465         $(TOOLS_RUNTIME) $(TEST_RUNNER) --testsuite-name $@ --runtime-args "--gc=sgen --gc-debug=bridge=3Bridge --gc-params=major=marksweep-conc,minor=simple,bridge-implementation=tarjan" --disabled "$(DISABLED_TESTS)" --timeout 900 $(TESTS_SGEN_BRIDGE3)
2466 test-sgen-bridge3-ms-conc-split-tarjan-bridge: $(TESTS_SGEN_BRIDGE3) $(TESTSAOT_SGEN_BRIDGE3) test-runner.exe
2467         $(TOOLS_RUNTIME) $(TEST_RUNNER) --testsuite-name $@ --runtime-args "--gc=sgen --gc-debug=bridge=3Bridge --gc-params=major=marksweep-conc,minor=split,bridge-implementation=tarjan" --disabled "$(DISABLED_TESTS)" --timeout 900 $(TESTS_SGEN_BRIDGE3)
2468 test-sgen-bridge3-ms-conc-simple-new-bridge: $(TESTS_SGEN_BRIDGE3) $(TESTSAOT_SGEN_BRIDGE3) test-runner.exe
2469         $(TOOLS_RUNTIME) $(TEST_RUNNER) --testsuite-name $@ --runtime-args "--gc=sgen --gc-debug=bridge=3Bridge --gc-params=major=marksweep-conc,minor=simple,bridge-implementation=new" --disabled "$(DISABLED_TESTS)" --timeout 900 $(TESTS_SGEN_BRIDGE3)
2470 test-sgen-bridge3-ms-conc-simple-old-bridge: $(TESTS_SGEN_BRIDGE3) $(TESTSAOT_SGEN_BRIDGE3) test-runner.exe
2471         $(TOOLS_RUNTIME) $(TEST_RUNNER) --testsuite-name $@ --runtime-args "--gc=sgen --gc-debug=bridge=3Bridge --gc-params=major=marksweep-conc,minor=simple,bridge-implementation=old" --disabled "$(DISABLED_TESTS)" --timeout 900 $(TESTS_SGEN_BRIDGE3)
2472 test-sgen-bridge3-ms-conc-par-simple-par-dyn-tarjan-bridge: $(TESTS_SGEN_BRIDGE3) $(TESTSAOT_SGEN_BRIDGE3) test-runner.exe
2473         $(TOOLS_RUNTIME) $(TEST_RUNNER) --testsuite-name $@ --runtime-args "--gc=sgen --gc-debug=bridge=3Bridge --gc-params=major=marksweep-conc-par,minor=simple-par,dynamic-nursery,bridge-implementation=tarjan" --disabled "$(DISABLED_TESTS)" --timeout 900 $(TESTS_SGEN_BRIDGE3)
2474 test-sgen-bridge3-ms-conc-par-simple-par-512k-tarjan-bridge: $(TESTS_SGEN_BRIDGE3) $(TESTSAOT_SGEN_BRIDGE3) test-runner.exe
2475         $(TOOLS_RUNTIME) $(TEST_RUNNER) --testsuite-name $@ --runtime-args "--gc=sgen --gc-debug=bridge=3Bridge --gc-params=major=marksweep-conc-par,minor=simple-par,nursery-size=512k,bridge-implementation=tarjan" --disabled "$(DISABLED_TESTS)" --timeout 900 $(TESTS_SGEN_BRIDGE3)
2476 test-sgen-bridge3-ms-conc-par-simple-par-32m-tarjan-bridge: $(TESTS_SGEN_BRIDGE3) $(TESTSAOT_SGEN_BRIDGE3) test-runner.exe
2477         $(TOOLS_RUNTIME) $(TEST_RUNNER) --testsuite-name $@ --runtime-args "--gc=sgen --gc-debug=bridge=3Bridge --gc-params=major=marksweep-conc-par,minor=simple-par,nursery-size=32m,bridge-implementation=tarjan" --disabled "$(DISABLED_TESTS)" --timeout 900 $(TESTS_SGEN_BRIDGE3)
2479 TESTS_SGEN_OOM_SRC =    \
2480         sgen-oom-cementing-stress.cs    \
2481         sgen-oom-new-threads-dont-join-stw-2.cs \
2482         sgen-oom-bridge-major-fragmentation.cs \
2483         gc-oom-handling.cs      \
2484         gc-oom-handling2.cs
2486 TESTS_SGEN_OOM=$(filter-out $(DISABLED_TESTS),$(TESTS_SGEN_OOM_SRC:.cs=.exe))
2488 if FULL_AOT_TESTS
2489 TESTSAOT_SGEN_OOM=$(TESTS_SGEN_OOM:.exe=.exe$(PLATFORM_AOT_SUFFIX))
2490 endif
2492 if HYBRID_AOT_TESTS
2493 TESTSAOT_SGEN_OOM=$(TESTS_SGEN_OOM:.exe=.exe$(PLATFORM_AOT_SUFFIX))
2494 endif
2496 tests-sgen-oom: $(TESTS_SGEN_OOM) $(TESTSAOT_SGEN_OOM) test-runner.exe sgen-cementing-stress.exe sgen-new-threads-dont-join-stw-2.exe sgen-bridge-major-fragmentation.exe
2497         $(TOOLS_RUNTIME) $(TEST_RUNNER) $(TEST_RUNNER_ARGS) --testsuite-name $@ --runtime-args "--gc=sgen --gc-debug=max-valloc-size=50M,bridge=Bridge" --disabled "$(DISABLED_TESTS)" --timeout 900 $(TESTS_SGEN_OOM)
2499 AOT_CONFIGURATIONS=     \
2500         "|regular"      \
2501         "--gc=boehm|boehm"
2503 #LLVM crashes, got to fix it first.
2504 #       "--llvm|llvm"   \
2505 #       "--llvm --gc=boehm|llvm+boehm"
2508 test-aot:
2509         @failed=0; \
2510         passed=0; \
2511         failed_tests="";\
2512         profile=$(DEFAULT_PROFILE);     \
2513         tmpfile=`mktemp -t mono_aot_outputXXXXXX` || exit 1;    \
2514         rm -f test-aot-$${name}.stdout test-aot-$${name}.stderr; \
2515         for assembly in $(mcs_topdir)/class/lib/$$profile/*.dll ; do    \
2516                 asm_name=`basename $$assembly`; \
2517                 echo "... $$asm_name";  \
2518                 for conf in $(AOT_CONFIGURATIONS); do   \
2519                         name=`echo $$conf | cut -d\| -f 2`;     \
2520                         params=`echo $$conf | cut -d\| -f 1`;   \
2521                         test_name="$${asm_name}|$${name}";      \
2522                         echo "  $$test_name";   \
2523                         if MONO_PATH=$(mcs_topdir)/class/lib/$$profile $(JITTEST_PROG_RUN) $$params --aot=outfile=$$tmpfile $$assembly >> test-aot-$${name}.stdout 2>> test-aot-$${name}.stderr;        \
2524                         then \
2525                                 passed=`expr $${passed} + 1`; \
2526                         else \
2527                                 failed=`expr $${failed} + 1`; \
2528                                 failed_tests="$${failed_tests} $$test_name"; \
2529                         fi \
2530                 done;   \
2531         done;   \
2532         rm      $$tmpfile;      \
2533         echo "$${passed} test(s) passed. $${failed} test(s) did not pass."; \
2534         if [ $${failed} != 0 ]; then echo -e "\nFailed tests:\n"; \
2535         for i in $${failed_tests}; do echo $${i}; done; exit 1; fi
2538 # Generated tests for runtime invoke
2539 EXTRA_DIST += gen-runtime-invoke.cs
2541 runtime-invoke.gen.cs: gen-runtime-invoke.exe
2542         $(Q) $(RUNTIME) gen-runtime-invoke.exe > runtime-invoke.gen.cs
2544 EXTRA_DIST += make-imt-test.cs
2546 imt_big_iface_test.cs: make-imt-test.exe
2547         $(Q) $(RUNTIME) make-imt-test.exe > imt_big_iface_test.cs
2549 EXTRA_DIST += test-inline-call-stack-library.cs test-inline-call-stack.cs
2551 test-inline-call-stack-library.dll: $(srcdir)/test-inline-call-stack-library.cs
2552         $(MCS) -t:library -out:$@ $<
2554 test-inline-call-stack.exe$(PLATFORM_AOT_SUFFIX): test-inline-call-stack-library.dll$(PLATFORM_AOT_SUFFIX)
2555 test-inline-call-stack.exe: test-inline-call-stack.cs test-inline-call-stack-library.dll $(TEST_DRIVER_DEPEND)
2556         $(MCS) -r:TestDriver.dll -r:test-inline-call-stack-library.dll -out:$@ $<
2558 EXTRA_DIST += unhandled-exception-base-configuration.config
2559 EXTRA_DIST += unhandled-exception-legacy-configuration.config
2560 EXTRA_DIST += appdomain-unload.exe.config
2561 EXTRA_DIST += unhandled-exception-test-case.2.cs
2562 EXTRA_DIST += unhandled-exception-test-runner.2.cs
2563 unhandled-exception-test-case.1.cs: unhandled-exception-test-case.2.cs
2564         cp unhandled-exception-test-case.2.cs unhandled-exception-test-case.1.cs
2565 unhandled-exception-test-case-legacy.1.cs: unhandled-exception-test-case.1.cs
2566         cp unhandled-exception-test-case.1.cs unhandled-exception-test-case-legacy.1.cs
2567 unhandled-exception-test-case-legacy.2.cs: unhandled-exception-test-case.2.cs
2568         cp unhandled-exception-test-case.2.cs unhandled-exception-test-case-legacy.2.cs
2569 unhandled-exception-config_files: unhandled-exception-base-configuration.config unhandled-exception-legacy-configuration.config
2570         cp unhandled-exception-base-configuration.config unhandled-exception-test-case.1.exe.config
2571         cp unhandled-exception-base-configuration.config unhandled-exception-test-case.2.exe.config
2572         cp unhandled-exception-legacy-configuration.config unhandled-exception-test-case-legacy.1.exe.config
2573         cp unhandled-exception-legacy-configuration.config unhandled-exception-test-case-legacy.2.exe.config
2575 unhandled-exception-test-runner.2.exe: unhandled-exception-config_files unhandled-exception-test-case.1.exe unhandled-exception-test-case-legacy.1.exe  unhandled-exception-test-case.2.exe unhandled-exception-test-case-legacy.2.exe
2577 test-unhandled-exception: unhandled-exception-test-runner.2.exe
2578         $(Q) $(RUNTIME) unhandled-exception-test-runner.2.exe RUNTIME:../mini/mono,GTC:F
2580 safehandle.2.exe winx64structs.exe thunks.exe pinvoke3.exe pinvoke2.exe pinvoke-2.2.exe pinvoke17.exe pinvoke13.exe \
2581         pinvoke11.exe pinvoke_ppcs.exe pinvoke_ppci.exe pinvoke_ppcf.exe pinvoke_ppcd.exe pinvoke_ppcc.exe pinvoke.exe \
2582         marshalbool.exe marshal9.exe marshal5.exe marshal.exe handleref.exe cominterop.exe bug-Xamarin-5278.exe \
2583         bug-58782-plain-throw.exe bug-58782-capture-and-throw.exe install_eh_callback.exe: libtest.la
2585 event-get.2.exe$(PLATFORM_AOT_SUFFIX): event-il.exe$(PLATFORM_AOT_SUFFIX)
2586 event-get.2.exe: event-il.exe
2588 module-cctor-loader.2.exe$(PLATFORM_AOT_SUFFIX): module-cctor.exe$(PLATFORM_AOT_SUFFIX)
2589 module-cctor-loader.2.exe: module-cctor.exe
2591 reference-loader.exe$(PLATFORM_AOT_SUFFIX): TestingReferenceAssembly.dll$(PLATFORM_AOT_SUFFIX) TestingReferenceReferenceAssembly.dll$(PLATFORM_AOT_SUFFIX)
2592 reference-loader.exe: TestingReferenceAssembly.dll TestingReferenceReferenceAssembly.dll
2594 assemblyresolve_asm.dll$(PLATFORM_AOT_SUFFIX): assemblyresolve_asm.dll assemblyresolve_deps/Test.dll$(PLATFORM_AOT_SUFFIX)
2595         MONO_PATH="assemblyresolve_deps:$(CLASS)" $(top_builddir)/runtime/mono-wrapper $(TEST_AOT_BUILD_FLAGS) assemblyresolve_asm.dll
2596 assemblyresolve_deps/Test.dll$(PLATFORM_AOT_SUFFIX): assemblyresolve_deps/Test.dll assemblyresolve_deps/TestBase.dll$(PLATFORM_AOT_SUFFIX)
2598 EXTRA_DIST += assemblyresolve_TestBase.cs assemblyresolve_Test.cs assemblyresolve_asm.cs 
2599 assemblyresolve_deps:
2600         mkdir -p assemblyresolve_deps
2601 assemblyresolve_deps/TestBase.dll: assemblyresolve_deps $(srcdir)/assemblyresolve_TestBase.cs
2602         $(MCS) -target:library -out:assemblyresolve_deps/TestBase.dll $(srcdir)/assemblyresolve_TestBase.cs
2603 assemblyresolve_deps/Test.dll: assemblyresolve_deps assemblyresolve_deps/TestBase.dll $(srcdir)/assemblyresolve_Test.cs
2604         $(MCS) -target:library -r:assemblyresolve_deps/TestBase.dll -out:assemblyresolve_deps/Test.dll $(srcdir)/assemblyresolve_Test.cs
2605 assemblyresolve_asm.dll: assemblyresolve_deps/Test.dll $(srcdir)/assemblyresolve_asm.cs
2606         $(MCS) -target:library -r:assemblyresolve_deps/TestBase.dll -r:assemblyresolve_deps/Test.dll -out:assemblyresolve_asm.dll $(srcdir)/assemblyresolve_asm.cs
2608 assemblyresolve_event3.exe$(PLATFORM_AOT_SUFFIX): assemblyresolve_asm.dll$(PLATFORM_AOT_SUFFIX) assemblyresolve_deps/Test.dll$(PLATFORM_AOT_SUFFIX) assemblyresolve_deps/TestBase.dll$(PLATFORM_AOT_SUFFIX)
2609 assemblyresolve_event3.exe: assemblyresolve_asm.dll assemblyresolve_deps/Test.dll assemblyresolve_deps/TestBase.dll
2611 assemblyresolve_event4.exe$(PLATFORM_AOT_SUFFIX): assemblyresolve_deps/Test.dll$(PLATFORM_AOT_SUFFIX) assemblyresolve_deps/TestBase.dll$(PLATFORM_AOT_SUFFIX)
2612 assemblyresolve_event4.exe: assemblyresolve_deps/Test.dll assemblyresolve_deps/TestBase.dll
2614 EXTRA_DIST += assemblyresolve_event5_label.cs assemblyresolve_event5_helper.cs
2615 assemblyresolve_deps/assemblyresolve_event5_label.dll: assemblyresolve_event5_label.cs assemblyresolve_deps 
2616         $(MCS) -target:library -out:assemblyresolve_deps/assemblyresolve_event5_label.dll $(srcdir)/assemblyresolve_event5_label.cs
2617 assemblyresolve_event5_helper.dll: assemblyresolve_event5_helper.cs assemblyresolve_deps/assemblyresolve_event5_label.dll
2618         $(MCS) -target:library -out:assemblyresolve_event5_helper.dll -r:assemblyresolve_deps/assemblyresolve_event5_label.dll $(srcdir)/assemblyresolve_event5_helper.cs
2619 assemblyresolve_event5.exe: assemblyresolve_event5_helper.dll
2621 assemblyresolve_event6.exe$(PLATFORM_AOT_SUFFIX): assemblyresolve_asm.dll$(PLATFORM_AOT_SUFFIX) assemblyresolve_deps/Test.dll$(PLATFORM_AOT_SUFFIX) assemblyresolve_deps/TestBase.dll$(PLATFORM_AOT_SUFFIX)
2622 assemblyresolve_event6.exe: assemblyresolve_asm.dll assemblyresolve_deps/Test.dll assemblyresolve_deps/TestBase.dll
2624 # We use 'test-support-files' to handle an ordering issue between the 'mono/' and 'runtime/' directories
2625 bug-80307.exe: $(srcdir)/bug-80307.cs
2626         $(MCS) -r:$(CLASS)/System.Web.dll -out:$@ $(srcdir)/bug-80307.cs
2627         cd $(top_builddir)/runtime && $(MAKE) test-support-files
2629 EXTRA_DIST += bug-81673-interface.cs
2631 bug-81673.exe$(PLATFORM_AOT_SUFFIX): bug-81673-interface.dll$(PLATFORM_AOT_SUFFIX)
2632 bug-81673.exe bug-81673-interface.dll: $(srcdir)/bug-81673.cs $(srcdir)/bug-81673-interface.cs
2633         $(MCS) -target:library -out:bug-81673-interface.dll $(srcdir)/bug-81673-interface.cs
2634         $(MCS) -r:bug-81673-interface.dll -out:bug-81673.exe $(srcdir)/bug-81673.cs
2635         $(MCS) -define:WITH_STOP -target:library -out:bug-81673-interface.dll $(srcdir)/bug-81673-interface.cs
2637 EXTRA_DIST += bug-36848-a.cs
2639 bug-36848.exe$(PLATFORM_AOT_SUFFIX): bug-36848-a.dll$(PLATFORM_AOT_SUFFIX)
2640 bug-36848.exe bug-36848-a.dll: $(srcdir)/bug-36848.cs $(srcdir)/bug-36848-a.cs
2641         $(MCS) -target:library -out:bug-36848-a.dll $(srcdir)/bug-36848-a.cs
2642         $(MCS) -r:bug-36848-a.dll -out:bug-36848.exe $(srcdir)/bug-36848.cs
2643         $(MCS) -define:WITH_STOP -target:library -out:bug-36848-a.dll $(srcdir)/bug-36848-a.cs
2645 EXTRA_DIST += bug-81691-a.cs bug-81691-b.cs
2647 bug-81691.exe$(PLATFORM_AOT_SUFFIX): bug-81691-b.dll$(PLATFORM_AOT_SUFFIX)
2648 bug-81691.exe bug-81691-a.dll bug-81691-b.dll: $(srcdir)/bug-81691.cs $(srcdir)/bug-81691-a.cs $(srcdir)/bug-81691-b.cs
2649         $(MCS) -target:library -out:bug-81691-a.dll $(srcdir)/bug-81691-a.cs 
2650         $(MCS) -r:bug-81691-a.dll -target:library -out:bug-81691-b.dll $(srcdir)/bug-81691-b.cs
2651         $(MCS) -r:bug-81691-b.dll -out:bug-81691.exe $(srcdir)/bug-81691.cs
2652         rm -f bug-81691-a.dll
2654 EXTRA_DIST += bug-81466-lib.il
2656 bug-81466.exe$(PLATFORM_AOT_SUFFIX): bug-81466-lib.dll$(PLATFORM_AOT_SUFFIX)
2657 bug-81466.exe bug-81466-lib.dll: $(srcdir)/bug-81466.il $(srcdir)/bug-81466-lib.il
2658         $(ILASM) /dll /output:bug-81466-lib.dll $(srcdir)/bug-81466-lib.il
2659         $(ILASM) /exe /output:bug-81466.exe $(srcdir)/bug-81466.il
2661 EXTRA_DIST += bug-324535-il.il
2663 bug-324535.exe$(PLATFORM_AOT_SUFFIX): bug-324535-il.dll$(PLATFORM_AOT_SUFFIX)
2664 bug-324535.exe bug-324535-il.dll: $(srcdir)/bug-324535.cs $(srcdir)/bug-324535-il.il
2665         $(ILASM) /dll /output:bug-324535-il.dll $(srcdir)/bug-324535-il.il
2666         $(MCS) -r:bug-324535-il.dll -out:bug-324535.exe $(srcdir)/bug-324535.cs
2668 EXTRA_DIST += custom-modifiers.2.cs custom-modifiers-lib.il
2670 custom-modifiers.2.exe$(PLATFORM_AOT_SUFFIX): custom-modifiers-lib.dll$(PLATFORM_AOT_SUFFIX)
2671 custom-modifiers.2.exe custom-modifiers-lib.dll: $(srcdir)/custom-modifiers.2.cs $(srcdir)/custom-modifiers-lib.il
2672         $(ILASM) /dll /output:custom-modifiers-lib.dll $(srcdir)/custom-modifiers-lib.il
2673         $(MCS) -r:custom-modifiers-lib.dll -out:custom-modifiers.2.exe $(srcdir)/custom-modifiers.2.cs
2675 EXTRA_DIST += bug-382986-lib.cs
2677 bug-382986.exe$(PLATFORM_AOT_SUFFIX): bug-382986-lib.dll$(PLATFORM_AOT_SUFFIX)
2678 bug-382986.exe bug-382986-lib.dll: $(srcdir)/bug-382986.cs $(srcdir)/bug-382986-lib.cs
2679         $(MCS) -target:library -out:bug-382986-lib.dll $(srcdir)/bug-382986-lib.cs
2680         $(MCS) -r:bug-382986-lib.dll -out:bug-382986.exe $(srcdir)/bug-382986.cs
2682 EXTRA_DIST += bug-17537-helper.cs
2684 bug-17537.exe$(PLATFORM_AOT_SUFFIX): bug-17537-helper.exe$(PLATFORM_AOT_SUFFIX)
2685 bug-17537-helper.exe: $(srcdir)/bug-17537-helper.cs
2686         $(MCS) -out:$@ $<
2687         chmod -x $@
2688 bug-17537.exe: bug-17537-helper.exe
2690 EXTRA_DIST += coreclr-security.cs
2692 test-coreclr-security : coreclr-security.exe
2693         @$(RUNTIME_MOONLIGHT) --security=core-clr-test coreclr-security.exe
2695 EXTRA_DIST += generic-unboxing.2.il generic-boxing.2.il
2697 generic-unboxing.2.dll: $(srcdir)/generic-unboxing.2.il
2698         $(ILASM) /dll /output:$@ $<
2699 generic-boxing.2.dll: $(srcdir)/generic-boxing.2.il generic-unboxing.2.dll
2700         $(ILASM) /dll /output:$@ $<
2702 EXTRA_DIST += generic-unbox.2.cs
2704 generic-unbox.2.exe$(PLATFORM_AOT_SUFFIX): generic-unboxing.2.dll$(PLATFORM_AOT_SUFFIX)
2705 generic-unbox.2.exe: $(srcdir)/generic-unbox.2.cs generic-unboxing.2.dll
2706         $(MCS) -r:generic-unboxing.2.dll -out:$@ $<
2708 EXTRA_DIST += generic-box.2.cs
2710 generic-box.2.exe$(PLATFORM_AOT_SUFFIX): generic-unboxing.2.dll$(PLATFORM_AOT_SUFFIX) generic-boxing.2.dll$(PLATFORM_AOT_SUFFIX)
2711 generic-box.2.exe : $(srcdir)/generic-box.2.cs generic-unboxing.2.dll generic-boxing.2.dll
2712         $(MCS) -r:generic-unboxing.2.dll,generic-boxing.2.dll -out:$@ $<
2714 EXTRA_DIST += generic-delegate2.2.cs generic-delegate2-lib.2.il
2716 generic-delegate2-lib.2.dll: $(srcdir)/generic-delegate2-lib.2.il
2717         $(ILASM) /dll /output:$@ $<
2719 generic-delegate2.2.exe$(PLATFORM_AOT_SUFFIX): generic-delegate2-lib.2.dll$(PLATFORM_AOT_SUFFIX)
2720 generic-delegate2.2.exe: $(srcdir)/generic-delegate2.2.cs generic-delegate2-lib.2.dll
2721         $(MCS) -r:generic-delegate2-lib.2.dll -out:$@ $<
2723 bug-3903.exe: bug-3903.cs
2724         $(MCS_NO_LIB)  $(srcdir)/bug-3903.cs -nostdlib -r:$(srcdir)/../../external/binary-reference-assemblies/v2.0/mscorlib.dll -r:$(srcdir)/../../external/binary-reference-assemblies/v2.0/System.Core.dll -out:$@
2726 EXTRA_DIST += appdomain-marshalbyref-assemblyload-MidAssembly.cs appdomain-marshalbyref-assemblyload-LeafAssembly.cs
2728 LeafAssembly.dll: appdomain-marshalbyref-assemblyload-LeafAssembly.cs
2729         mkdir -p appdomain-marshalbyref-assemblyload1
2730         $(MCS) -target:library -out:$@ $<
2732 appdomain-marshalbyref-assemblyload2/LeafAssembly.dll: appdomain-marshalbyref-assemblyload-LeafAssembly.cs
2733         mkdir -p appdomain-marshalbyref-assemblyload2
2734         $(MCS) -target:library -out:$@ $< -define:UNDEFINE_OTHER_METHOD
2736 MidAssembly.dll: appdomain-marshalbyref-assemblyload-MidAssembly.cs LeafAssembly.dll
2737         mkdir -p appdomain-marshalbyref-assemblyload1
2738         $(MCS) -target:library -out:$@ $< -r:LeafAssembly.dll
2740 appdomain-marshalbyref-assemblyload.exe: appdomain-marshalbyref-assemblyload.cs MidAssembly.dll LeafAssembly.dll appdomain-marshalbyref-assemblyload2/LeafAssembly.dll
2741         $(MCS) -out:$@ $< -r:MidAssembly.dll -r:LeafAssembly.dll
2743 assembly-load-dir1/Lib.dll: assembly-load-dir1/Lib.cs
2744         $(MKDIR_P) $(dir $@)
2745         $(MCS) -target:library -out:$@ $<
2746 assembly-load-dir2/Lib.dll: assembly-load-dir2/Lib.cs
2747         $(MKDIR_P) $(dir $@)
2748         $(MCS) -target:library -out:$@ $<
2750 assembly-load-dir1/LibStrongName.dll: assembly-load-dir1/LibStrongName.cs testing_gac/testkey.snk
2751         $(MKDIR_P) $(dir $@)
2752         $(MCS) -target:library -out:$@ $< -keyfile:$(dir $<)../testing_gac/testkey.snk
2754 assembly-load-dir2/LibStrongName.dll: assembly-load-dir2/LibStrongName.cs testing_gac/testkey.snk
2755         $(MKDIR_P) $(dir $@)
2756         $(MCS) -target:library -out:$@ $< -keyfile:$(dir $<)../testing_gac/testkey.snk
2758 EXTRA_DIST += assembly-load-dir1/Lib.cs assembly-load-dir2/Lib.cs \
2759         assembly-load-dir1/LibStrongName.cs assembly-load-dir2/LibStrongName.cs
2761 assembly-load-bytes.exe: assembly-load-dir1/Lib.dll assembly-load-dir2/Lib.dll
2763 assembly-loadfrom.exe$(PLATFORM_AOT_SUFFIX): assembly-load-dir1/Lib.dll$(PLATFORM_AOT_SUFFIX) assembly-load-dir2/Lib.dll$(PLATFORM_AOT_SUFFIX)
2764 assembly-loadfrom.exe: assembly-load-dir1/Lib.dll assembly-load-dir2/Lib.dll
2766 assembly-loadfile.exe$(PLATFORM_AOT_SUFFIX): assembly-load-dir1/Lib.dll$(PLATFORM_AOT_SUFFIX) assembly-load-dir2/Lib.dll$(PLATFORM_AOT_SUFFIX)
2767 assembly-loadfile.exe: assembly-load-dir1/Lib.dll assembly-load-dir2/Lib.dll
2769 assembly-loadfrom-bindingredirect.exe$(PLATFORM_AOT_SUFFIX): assembly-load-dir1/LibStrongName.dll$(PLATFORM_AOT_SUFFIX) assembly-load-dir2/LibStrongName.dll$(PLATFORM_AOT_SUFFIX) assembly-loadfrom-bindingredirect.exe.config
2770 assembly-loadfrom-bindingredirect.exe: assembly-load-dir1/LibStrongName.dll assembly-load-dir2/LibStrongName.dll assembly-loadfrom-bindingredirect.exe.config
2772 assembly-loadfile-bindingredirect.exe$(PLATFORM_AOT_SUFFIX): assembly-load-dir1/LibStrongName.dll$(PLATFORM_AOT_SUFFIX) assembly-load-dir2/LibStrongName.dll$(PLATFORM_AOT_SUFFIX) assembly-loadfile-bindingredirect.exe.config
2773 assembly-loadfile-bindingredirect.exe: assembly-load-dir1/LibStrongName.dll assembly-load-dir2/LibStrongName.dll assembly-loadfile-bindingredirect.exe.config
2775 assembly-load-bytes-bindingredirect.exe: assembly-load-dir1/LibStrongName.dll assembly-load-dir2/LibStrongName.dll assembly-load-bytes-bindingredirect.exe.config
2777 EXTRA_DIST += assembly-loadfrom-bindingredirect.exe.config assembly-loadfile-bindingredirect.exe.config assembly-load-bytes-bindingredirect.exe.config
2780 assembly-load-dir1/LibSimpleName.dll: assembly-load-dir1/LibSimpleName.cs
2781         $(MKDIR_P) $(dir $@)
2782         $(MCS) -target:library -out:$@ $<
2784 # NOTE: unlike assembly-load-dir1/LibSimpleName.dll, the output name here is in all lower case!
2785 assembly-load-dir2/libsimplename.dll: assembly-load-dir2/LibSimpleName.cs
2786         $(MKDIR_P) $(dir $@)
2787         $(MCS) -target:library -out:$@ $<
2789 assembly-dep-simplename.dll: assembly-dep-simplename.cs assembly-load-dir1/LibSimpleName.dll
2790         $(MCS) -target:library -out:$@ $< -r:assembly-load-dir1/LibSimpleName.dll
2792 # NOTE: while we compile assembly-dep-simplename.dll using assembly-load-dir1, we AOT it using assembly-load-dir2
2793 #  (So that the AOT image has the right GUID of the referenced assembly baked in)
2794 assembly-dep-simplename.dll$(PLATFORM_AOT_SUFFIX): assembly-dep-simplename.dll assembly-load-dir2/libsimplename.dll$(PLATFORM_AOT_SUFFIX)
2795         MONO_PATH=$(CLASS):assembly-load-dir2 $(top_builddir)/runtime/mono-wrapper $(TEST_AOT_BUILD_FLAGS) --aot-path=assembly-load-dir2 assembly-dep-simplename.dll
2797 EXTRA_DIST += assembly-load-dir1/LibSimpleName.cs assembly-load-dir2/LibSimpleName.cs \
2798         assembly-dep-simplename.cs
2800 assembly-loadfrom-simplename.exe: assembly-dep-simplename.dll assembly-load-dir2/libsimplename.dll
2802 assembly-loadfrom-simplename.exe$(PLATFORM_AOT_SUFFIX): assembly-load-dir2/libsimplename.dll$(PLATFORM_AOT_SUFFIX) assembly-dep-simplename.dll$(PLATFORM_AOT_SUFFIX)
2804 gshared:
2805         $(MAKE) test-generic-sharing
2807 gshared-aot:
2808         @$(MAKE) AOT=1 gshared
2810 test-generic-sharing-normal: $(TESTS_GSHARED) $(TESTSAOT_GSHARED)
2811         @for fn in $+ ; do      \
2812                 echo "Testing $$fn ...";        \
2813                 $(RUNTIME) -O=gshared                $$fn > $$fn.stdout || exit 1;      \
2814                 $(RUNTIME) -O=gshared,shared         $$fn > $$fn.stdout || exit 1;      \
2815                 $(RUNTIME) -O=gshared,-inline        $$fn > $$fn.stdout || exit 1;      \
2816                 $(RUNTIME) -O=gshared,-inline,shared $$fn > $fn.stdout || exit 1;       \
2817                 if [ x$(AOT) = x1 ]; then $(with_mono_path) $(JITTEST_PROG_RUN) --aot --debug $$fn > /dev/null || exit 1; $(RUNTIME) $$fn > $$fn.stdout || exit 1; fi; \
2818         done
2820 test-generic-sharing-managed: test-runner.exe $(TESTS_GSHARED) $(TESTSAOT_GSHARED) 
2821         $(Q) $(TOOLS_RUNTIME) $(TEST_RUNNER) -j a --testsuite-name "gshared" --disabled "$(DISABLED_TESTS)" --opt-sets "gshared gshared,shared gshared,-inline gshared,-inline,shared" $(TESTS_GSHARED)
2823 test-generic-sharing:
2824         @if test x$(M) != x0; then $(MAKE) test-generic-sharing-managed; else $(MAKE) test-generic-sharing-normal; fi
2826 EXTRA_DIST += async-exceptions.cs
2827 async-exceptions.exe : async-exceptions.cs
2828         $(MCS) -out:async-exceptions.exe $(srcdir)/async-exceptions.cs
2829 test-async-exceptions : async-exceptions.exe
2830         for i in `echo 0 1 2 3 4 5 6 7 8 9 10`; do $(RUNTIME) --inject-async-exc Tests:foo $$i async-exceptions.exe || exit 1; done
2831         for i in `echo 0 1 2 3 4 5 6 7 8 9 10`; do $(RUNTIME) --inject-async-exc Tests:bar $$i async-exceptions.exe || exit 1; done
2833 EXTRA_DIST += modules.cs modules-m1.cs
2834 modules-m1.netmodule: modules-m1.cs
2835         $(MCS) -out:$@ /target:module $(srcdir)/modules-m1.cs
2836 modules.exe: modules.cs modules-m1.netmodule $(TEST_DRIVER_DEPEND) 
2837         $(MCS) -out:$@ /addmodule:modules-m1.netmodule -r:TestDriver.dll $(srcdir)/modules.cs
2839 # Useful if mono is compiled with --enable-shared=no
2840 patch-libtool:
2841         cp "../../libtool" .
2842         sed -e 's,build_libtool_libs=no,build_libtool_libs=yes,g' libtool > 2; mv 2 libtool
2843         sed -e 's,LIBTOOL =,LIBTOOL2 =,g' Makefile > 2 && echo "LIBTOOL = bash ./libtool" > 1 && cat 1 2 > Makefile
2844         touch libtest.c
2847 EXTRA_DIST += threadpool-in-processexit.cs threadpool-in-processexit.exe.stdout.expected
2848 test-process-exit:
2849         @$(MCS) $(srcdir)/threadpool-in-processexit.cs -out:threadpool-in-processexit.exe
2850         @echo "Testing threadpool-in-processexit.exe..."
2851         @$(RUNTIME) threadpool-in-processexit.exe > threadpool-in-processexit.exe.stdout
2852         @diff -w threadpool-in-processexit.exe.stdout $(srcdir)/threadpool-in-processexit.exe.stdout.expected
2854 # tests that expect a 1 exit code
2855 TESTS_UNHANDLED_EXCEPTION_1_SRC =       \
2856         unhandled-exception-1.cs        \
2857         unhandled-exception-9.cs
2859 # tests that expect a 255 exit code
2860 TESTS_UNHANDLED_EXCEPTION_255_SRC =     \
2861         unhandled-exception-2.cs        \
2862         unhandled-exception-3.cs        \
2863         unhandled-exception-4.cs        \
2864         unhandled-exception-5.cs        \
2865         unhandled-exception-6.cs        \
2866         unhandled-exception-7.cs        \
2867         unhandled-exception-8.cs
2869 TESTS_UNHANDLED_EXCEPTION_1=$(filter-out $(DISABLED_TESTS),$(TESTS_UNHANDLED_EXCEPTION_1_SRC:.cs=.exe))
2870 TESTS_UNHANDLED_EXCEPTION_255=$(filter-out $(DISABLED_TESTS),$(TESTS_UNHANDLED_EXCEPTION_255_SRC:.cs=.exe))
2872 if FULL_AOT_TESTS
2873 TESTSAOT_UNHANDLED_EXCEPTION_1=$(TESTS_UNHANDLED_EXCEPTION_1:.exe=.exe$(PLATFORM_AOT_SUFFIX))
2874 TESTSAOT_UNHANDLED_EXCEPTION_255=$(TESTS_UNHANDLED_EXCEPTION_255:.exe=.exe$(PLATFORM_AOT_SUFFIX))
2875 endif
2877 if HYBRID_AOT_TESTS
2878 TESTSAOT_UNHANDLED_EXCEPTION_1=$(TESTS_UNHANDLED_EXCEPTION_1:.exe=.exe$(PLATFORM_AOT_SUFFIX))
2879 TESTSAOT_UNHANDLED_EXCEPTION_255=$(TESTS_UNHANDLED_EXCEPTION_255:.exe=.exe$(PLATFORM_AOT_SUFFIX))
2880 endif
2882 test-unhandled-exception-2: $(TESTS_UNHANDLED_EXCEPTION_1) $(TESTS_UNHANDLED_EXCEPTION_255) $(TESTSAOT_UNHANDLED_EXCEPTION_1) $(TESTSAOT_UNHANDLED_EXCEPTION_255)
2883         ok=; \
2884         $(MAKE) test-unhandled-exception-2-1-with-managed-handler || ok=false; \
2885         $(MAKE) test-unhandled-exception-2-1-without-managed-handler || ok=false; \
2886         $(MAKE) test-unhandled-exception-2-255-with-managed-handler || ok=false; \
2887         $(MAKE) test-unhandled-exception-2-255-without-managed-handler || ok=false; \
2888         $$ok
2890 test-unhandled-exception-2-1-with-managed-handler: $(TESTS_UNHANDLED_EXCEPTION_1) $(TESTSAOT_UNHANDLED_EXCEPTION_1) test-runner.exe
2891         $(TOOLS_RUNTIME) $(TEST_RUNNER) -j a --testsuite-name $@ --disabled "$(DISABLED_TESTS)" --expected-exit-code 1 $(TESTS_UNHANDLED_EXCEPTION_1)
2892 test-unhandled-exception-2-1-without-managed-handler: $(TESTS_UNHANDLED_EXCEPTION_1) $(TESTSAOT_UNHANDLED_EXCEPTION_1) test-runner.exe
2893         TEST_UNHANDLED_EXCEPTION_HANDLER=1 $(TOOLS_RUNTIME) $(TEST_RUNNER) -j a --testsuite-name $@ --disabled "$(DISABLED_TESTS)" --expected-exit-code 1 $(TESTS_UNHANDLED_EXCEPTION_1)
2894 test-unhandled-exception-2-255-with-managed-handler: $(TESTS_UNHANDLED_EXCEPTION_255) $(TESTSAOT_UNHANDLED_EXCEPTION_255) test-runner.exe
2895         $(TOOLS_RUNTIME) $(TEST_RUNNER) -j a --testsuite-name $@ --disabled "$(DISABLED_TESTS)" --expected-exit-code 255 $(TESTS_UNHANDLED_EXCEPTION_255)
2896 test-unhandled-exception-2-255-without-managed-handler: $(TESTS_UNHANDLED_EXCEPTION_255) $(TESTSAOT_UNHANDLED_EXCEPTION_255) test-runner.exe
2897         TEST_UNHANDLED_EXCEPTION_HANDLER=1 $(TOOLS_RUNTIME) $(TEST_RUNNER) -j a --testsuite-name $@ --disabled "$(DISABLED_TESTS)" --expected-exit-code 255 $(TESTS_UNHANDLED_EXCEPTION_255)
2899 EXTRA_DIST += appdomain-loader.cs appdomain-tester.cs
2901 if FULL_AOT_TESTS
2902 test-appdomain-unload:
2903 else
2904 appdomain-loader.exe: appdomain-tester.exe
2906 test-appdomain-unload: appdomain-loader.exe appdomain-tester.exe
2907         $(RUNTIME) -O=gshared appdomain-loader.exe > appdomain-loader.exe.1.stdout || exit 1;
2908         $(RUNTIME) appdomain-loader.exe > appdomain-loader.exe.2.stdout || exit 1;
2909         MONO_DEBUG_ASSEMBLY_UNLOAD=1 $(RUNTIME) -O=gshared appdomain-loader.exe > appdomain-loader.exe.3.stdout || exit 1;
2910         MONO_DEBUG_ASSEMBLY_UNLOAD=1 $(RUNTIME) appdomain-loader.exe > appdomain-loader.exe.4.stdout || exit 1;
2911 endif
2913 EXTRA_DIST += console-output.cs console-output.exe.stderr.expected console-output.exe.stdout.expected
2914 test-console-output: console-output.exe
2915         @$(RUNTIME) console-output.exe 1>console-output.exe.stdout
2916         @$(RUNTIME) console-output.exe 2>console-output.exe.stderr
2917         @diff -w console-output.exe.stdout $(srcdir)/console-output.exe.stdout.expected \
2918                 && diff -w console-output.exe.stderr $(srcdir)/console-output.exe.stderr.expected
2920 test-pedump: test-runner.exe
2921         $(with_mono_path) $(mono_build_root)/tools/pedump/pedump --verify error test-runner.exe
2923 .PHONY: test-gac-loading test-eglib-remap
2925 runtest-gac-loading: test-runner.exe
2926         $(MAKE) -C testing_gac runtest
2928 compile-gac-loading:
2929         $(MAKE) -C testing_gac compile-tests
2931 runtest-assembly-load-reference: test-runner.exe
2932         $(MAKE) -C assembly-load-reference runtest
2934 compile-assembly-load-reference:
2935         $(MAKE) -C assembly-load-reference compile-tests
2938 TESTS_STRESS_PROCESS_SRC=       \
2939                 process-stress-1.cs     \
2940                 process-stress-2.cs     \
2941                 process-stress-3.cs     \
2942                 process-leak.cs
2944 TESTS_STRESS_PROCESS=$(filter-out $(DISABLED_TESTS),$(TESTS_STRESS_PROCESS_SRC:.cs=.exe))
2946 if FULL_AOT_TESTS
2947 TESTSAOT_STRESS_PROCESS=$(TESTS_STRESS_PROCESS:.exe=.exe$(PLATFORM_AOT_SUFFIX))
2948 endif
2950 if HYBRID_AOT_TESTS
2951 TESTSAOT_STRESS_PROCESS=$(TESTS_STRESS_PROCESS:.exe=.exe$(PLATFORM_AOT_SUFFIX))
2952 endif
2954 test-process-stress: $(TESTS_STRESS_PROCESS) $(TESTSAOT_STRESS_PROCESS) test-runner.exe
2955         $(TOOLS_RUNTIME) $(TEST_RUNNER) --testsuite-name $@ --disabled "$(DISABLED_TESTS)" --timeout 900 $(TESTS_STRESS_PROCESS)
2957 coreclr-gcstress:
2958         $(MAKE) -C $(mono_build_root)/acceptance-tests coreclr-gcstress
2960 # Tests for the Mono lldb plugin
2961 EXTRA_DIST += test_lldb.py test-lldb.cs
2962 test-lldb: test-lldb.exe
2963         python test_lldb.py $(JITTEST_PROG)
2965 noinst_LTLIBRARIES = libtest.la
2967 AM_CPPFLAGS = $(GLIB_CFLAGS)
2969 if HOST_WIN32
2970 # gcc-3.4.4 emits incorrect code when making indirect calls to stdcall functions using a tail call
2971 # This shows up when compiling mono_test_marshal_delegate ()
2972 libtest_la_CFLAGS=-fno-optimize-sibling-calls
2973 # the exported names created by gcc for stdcall functions are missing the leading _, so MS.NET
2974 # can't find them. So we use --kill-at to remove the @ suffix as well.
2975 libtest_la_LDFLAGS = -no-undefined -rpath `pwd` -Wl,--kill-at
2976 else
2977 libtest_la_LDFLAGS = -no-undefined -rpath `pwd`
2978 endif
2979 libtest_la_SOURCES = libtest.c
2980 libtest_la_LIBADD = $(top_builddir)/mono/eglib/libeglib.la
2982 INTERNALSVISIBLETO_TEST_SRC = \
2983         internalsvisibleto-runtimetest.cs \
2984         internalsvisibleto-compilertest.cs
2986 INTERNALSVISIBLETO_TEST_LIB_SRC = \
2987         internalsvisibleto-library.cs
2989 INTERNALSVISIBLETO_TEST_LIBS = \
2990         internalsvisibleto-correctcase.dll \
2991         internalsvisibleto-wrongcase.dll \
2992         internalsvisibleto-correctcase-2.dll \
2993         internalsvisibleto-wrongcase-2.dll \
2994         internalsvisibleto-correctcase-sign2048.dll \
2995         internalsvisibleto-wrongcase-sign2048.dll \
2996         internalsvisibleto-correctcase-2-sign2048.dll \
2997         internalsvisibleto-wrongcase-2-sign2048.dll
3000 INTERNALSVISIBLETO_TEST = \
3001         $(INTERNALSVISIBLETO_TEST_SRC:.cs=.exe) \
3002         $(INTERNALSVISIBLETO_TEST_SRC:.cs=-sign2048.exe)
3004 if FULL_AOT_TESTS
3005 INTERNALSVISIBLETO_TESTAOT = \
3006         $(INTERNALSVISIBLETO_TEST:.exe=.exe$(PLATFORM_AOT_SUFFIX))
3007 INTERNALSVISIBLETO_TESTAOT_LIBS = \
3008         $(INTERNALSVISIBLETO_TEST_LIBS:.dll=.dll$(PLATFORM_AOT_SUFFIX))
3009 endif
3011 if HYBRID_AOT_TESTS
3012 INTERNALSVISIBLETO_TESTAOT = \
3013         $(INTERNALSVISIBLETO_TEST:.exe=.exe$(PLATFORM_AOT_SUFFIX))
3014 INTERNALSVISIBLETO_TESTAOT_LIBS = \
3015         $(INTERNALSVISIBLETO_TEST_LIBS:.dll=.dll$(PLATFORM_AOT_SUFFIX))
3016 endif
3018 EXTRA_DIST += $(INTERNALSVISIBLETO_TEST_SRC) $(INTERNALSVISIBLETO_TEST_LIB_SRC)
3020 test-internalsvisibleto: test-runner.exe $(INTERNALSVISIBLETO_TEST) $(INTERNALSVISIBLETO_TESTAOT) $(INTERNALSVISIBLETO_TESTAOT_LIBS)
3021         $(TOOLS_RUNTIME) $(TEST_RUNNER) --testsuite-name $@ $(INTERNALSVISIBLETO_TEST)
3023 internalsvisibleto-correctcase.dll internalsvisibleto-wrongcase.dll internalsvisibleto-runtimetest.exe: internalsvisibleto-runtimetest.cs internalsvisibleto-library.cs
3024         $(Q) $(MCS_NO_UNSAFE) -out:internalsvisibleto-correctcase.dll -target:library -d:CORRECT_CASE -d:PERMISSIVE internalsvisibleto-library.cs       
3025         $(Q) $(MCS_NO_UNSAFE) -out:internalsvisibleto-wrongcase.dll -target:library -d:WRONG_CASE -d:PERMISSIVE internalsvisibleto-library.cs
3026         $(Q) $(MCS_NO_UNSAFE) -out:internalsvisibleto-runtimetest.exe -warn:0 -r:internalsvisibleto-correctcase.dll -r:internalsvisibleto-wrongcase.dll internalsvisibleto-runtimetest.cs
3027         $(Q) $(MCS_NO_UNSAFE) -out:internalsvisibleto-correctcase.dll -target:library -d:CORRECT_CASE internalsvisibleto-library.cs     
3028         $(Q) $(MCS_NO_UNSAFE) -out:internalsvisibleto-wrongcase.dll -target:library -d:WRONG_CASE internalsvisibleto-library.cs
3030 internalsvisibleto-correctcase-2.dll internalsvisibleto-wrongcase-2.dll  internalsvisibleto-compilertest.exe: internalsvisibleto-compilertest.cs internalsvisibleto-library.cs
3031         $(Q) $(MCS_NO_UNSAFE) -out:internalsvisibleto-correctcase-2.dll -target:library -d:CORRECT_CASE internalsvisibleto-library.cs   
3032         $(Q) $(MCS_NO_UNSAFE) -out:internalsvisibleto-wrongcase-2.dll -target:library -d:WRONG_CASE internalsvisibleto-library.cs
3033         $(Q) $(MCS_NO_UNSAFE) -out:internalsvisibleto-compilertest.exe -warn:0 -r:internalsvisibleto-correctcase-2.dll -r:internalsvisibleto-wrongcase-2.dll internalsvisibleto-compilertest.cs
3035 internalsvisibleto-correctcase-sign2048.dll internalsvisibleto-wrongcase-sign2048.dll internalsvisibleto-runtimetest-sign2048.exe: internalsvisibleto-runtimetest.cs internalsvisibleto-library.cs internalsvisibleto-2048.snk
3036         $(Q) $(MCS_NO_UNSAFE) -out:internalsvisibleto-correctcase-sign2048.dll -target:library -d:CORRECT_CASE -d:PERMISSIVE -d:SIGN2048 internalsvisibleto-library.cs
3037         $(Q) $(MCS_NO_UNSAFE) -out:internalsvisibleto-wrongcase-sign2048.dll -target:library -d:WRONG_CASE -d:PERMISSIVE -d:SIGN2048 internalsvisibleto-library.cs
3038         $(Q) $(MCS_NO_UNSAFE) -out:internalsvisibleto-runtimetest-sign2048.exe -warn:0 -r:internalsvisibleto-correctcase-sign2048.dll -r:internalsvisibleto-wrongcase-sign2048.dll -d:SIGN2048 internalsvisibleto-runtimetest.cs
3039         $(Q) $(MCS_NO_UNSAFE) -out:internalsvisibleto-correctcase-sign2048.dll -target:library -d:CORRECT_CASE -d:SIGN2048 internalsvisibleto-library.cs
3040         $(Q) $(MCS_NO_UNSAFE) -out:internalsvisibleto-wrongcase-sign2048.dll -target:library -d:WRONG_CASE -d:SIGN2048 internalsvisibleto-library.cs
3042 internalsvisibleto-correctcase-2-sign2048.dll internalsvisibleto-wrongcase-2-sign2048.dll internalsvisibleto-compilertest-sign2048.exe: internalsvisibleto-compilertest.cs internalsvisibleto-library.cs internalsvisibleto-2048.snk
3043         $(Q) $(MCS_NO_UNSAFE) -out:internalsvisibleto-correctcase-2-sign2048.dll -target:library -d:CORRECT_CASE -d:SIGN2048 internalsvisibleto-library.cs      
3044         $(Q) $(MCS_NO_UNSAFE) -out:internalsvisibleto-wrongcase-2-sign2048.dll -target:library -d:WRONG_CASE -d:SIGN2048 internalsvisibleto-library.cs
3045         $(Q) $(MCS_NO_UNSAFE) -out:internalsvisibleto-compilertest-sign2048.exe -warn:0 -r:internalsvisibleto-correctcase-2-sign2048.dll -r:internalsvisibleto-wrongcase-2-sign2048.dll -d:SIGN2048 internalsvisibleto-compilertest.cs
3047 EXTRA_DIST += weakattribute.cs
3049 # Contains copies of types which don't exist in the desktop profile so tests can use them
3050 Mono.Runtime.Testing.dll: weakattribute.cs
3051         $(MCS) -target:library -out:$@ $<
3053 weak-fields.exe: weak-fields.cs Mono.Runtime.Testing.dll
3054         $(MCS) -r:Mono.Runtime.Testing.dll -r:$(CLASS)/System.dll -r:$(CLASS)/System.Xml.dll -r:$(CLASS)/System.Core.dll -r:TestDriver.dll $(TEST_DRIVER_HARD_KILL_FEATURE) -out:$@ $<
3056 CLEANFILES = $(TESTS_CS) $(TESTS_IL) $(TESTS_BENCH) $(TESTS_STRESS) $(TESTSAOT_CS) $(TESTSAOT_IL) $(TESTSAOT_BENCH) $(TESTSAOT_STRESS) *.dll *.stdout *.aotlog *.exe stest.dat LeafAssembly.dll MidAssembly.dll appdomain-marshalbyref-assemblyload2/*.dll 
3057 CLEANFILES += $(TESTS_TAILCALL_COMPILE) $(TESTSAOT_TAILCALL)
3058 CLEANFILES += $(BUILT_SOURCES)