[metadata] Fields whose types are gparams with a reference type constraint aren't...
[mono-project.git] / mono / tests / Makefile.am
blob11acc8005387141824eaf220d8133fd777b1dc70
1 include $(top_srcdir)/mk/common.mk
3 SUBDIRS = gc-descriptors . testing_gac assembly-load-reference llvmonly-mixed fullaot-mixed
5 check-local:
6         ok=:; \
7         $(MAKE) test-tailcall || ok=false; \
8         if test x$(IGNORE_TEST_JIT) == x; then $(MAKE) test-jit || ok=false; fi; \
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         ok=; \
171         $(MAKE) test-stress-sgen || ok=false; \
172         $(MAKE) stresstest || ok=false; \
173         $$ok
175 # for backwards compatibility on Wrench
176 test-wrench: check-parallel
178 aotcheck: testaot gshared-aot
180 JITTEST_PROG = $(if $(VALGRIND), valgrind $(VALGRIND_ARGS),) $(if $(SGEN),$(top_builddir)/mono/mini/mono-sgen,$(top_builddir)/mono/mini/mono)
182 JITTEST_PROG_RUN = MONO_CFG_DIR=$(mono_build_root)/runtime/etc $(LIBTOOL) --mode=execute $(JITTEST_PROG)
185 RUNTIME_ARGS=--config tests-config --optimize=all --debug
186 TEST_RUNTIME_ARGS ?= $(RUNTIME_ARGS)
187 TEST_AOT_BUILD_FLAGS ?= $(AOT_BUILD_FLAGS)
188 TEST_AOT_RUN_FLAGS ?= $(AOT_RUN_FLAGS)
190 CLASS=$(mcs_topdir)/class/lib/$(DEFAULT_PROFILE)
192 with_mono_path = MONO_PATH=$(CLASS)
194 RUNTIME = $(with_mono_path) $(top_builddir)/runtime/mono-wrapper
195 TOOLS_RUNTIME = MONO_PATH=$(mcs_topdir)/class/lib/build $(top_builddir)/runtime/mono-wrapper --aot-path=$(mcs_topdir)/class/lib/build
197 MKBUNDLE = \
198         PKG_CONFIG_PATH=$(top_builddir):$(PKG_CONFIG_PATH) \
199         $(RUNTIME) $(CLASS)/mkbundle.exe
201 if FULL_AOT_TESTS
202 PROFILE_MCS_FLAGS = -d:MOBILE,MOBILE_LEGACY,FULL_AOT_DESKTOP 
203 endif
205 if HYBRID_AOT_TESTS
206 PROFILE_MCS_FLAGS = -d:MOBILE,MOBILE_LEGACY 
207 endif
209 if FULL_AOT_INTERP_TESTS
210 PROFILE_MCS_FLAGS = -d:MOBILE,MOBILE_LEGACY
211 endif
213 MCS_NO_UNSAFE = $(TOOLS_RUNTIME) --clr-memory-model $(CSC) -debug:portable \
214         -noconfig -nologo \
215         -nowarn:0162 -nowarn:0168 -nowarn:0219 -nowarn:0414 -nowarn:0618 \
216         -nowarn:0169 -nowarn:1690 -nowarn:0649 -nowarn:0612 -nowarn:3021 \
217         -nowarn:0197 -langversion:latest $(PROFILE_MCS_FLAGS)
218 MCS_NO_LIB = $(MCS_NO_UNSAFE) -unsafe
220 MCS = $(MCS_NO_LIB)
222 ILASM = $(TOOLS_RUNTIME) $(mcs_topdir)/class/lib/build/ilasm.exe
224 TEST_RUNNER = ./test-runner.exe
226 if HOST_WIN32
227 if ENABLE_MSVC
228         DEFAULT_WIN32_RUNTIME=$(shell cygpath -w -a $(top_builddir)/@mono_runtime@ | sed 's/\\/\\\\/g')
229 else
230         DEFAULT_WIN32_RUNTIME=$(top_builddir)/runtime/mono-wrapper)
231 endif
232 TEST_RUNNER += --config tests-config --runtime "$(if $(MONO_EXECUTABLE),$(shell cygpath -w -a $(MONO_EXECUTABLE) | sed 's/\\/\\\\/g'),$(DEFAULT_WIN32_RUNTIME))"
233 else
234 TEST_RUNNER += --config tests-config --runtime "$(if $(MONO_EXECUTABLE),$(MONO_EXECUTABLE),$(top_builddir)/runtime/mono-wrapper)"
235 endif
237 TEST_RUNNER += --mono-path "$(CLASS)"
239 if FULL_AOT_TESTS
240 TEST_RUNNER += --runtime-args "$(TEST_AOT_RUN_FLAGS)"
241 endif
243 if HYBRID_AOT_TESTS
244 TEST_RUNNER += --runtime-args "$(TEST_AOT_RUN_FLAGS)"
245 endif
247 TEST_RUNNER += --runtime-args "$(TEST_RUNTIME_FLAGS)"
249 TEST_RUNNER += $(if $(V), --verbose,)
251 TESTS_BENCH_SRC=fib.cs random.cs nested-loops.cs ackermann.cs tight-loop.cs sieve.cs
253 TESTS_STRESS_SRC=       \
254         abort-stress-1.cs       \
255         abort-stress-2.cs       \
256         abort-stress-3.cs       \
257         domain-stress.cs        \
258         gchandle-stress.cs      \
259         monitor-stress.cs       \
260         thread-stress.cs        \
261         gc-stress.cs            \
262         gc-copy-stress.cs       \
263         gc-graystack-stress.cs          \
264         exit-stress.cs          \
265         process-stress.cs       \
266         spinlock-stress.cs      \
267         assembly-load-stress.cs
269 # Disabled until ?mcs is fixed
270 #       bug-331958.cs
271 TESTS_CS_SRC=           \
272         generic-unloading-sub.2.cs      \
273         create-instance.cs      \
274         bug-2907.cs             \
275         $(ARRAY_COOP_CS)        \
276         array-12193.cs          \
277         array-init.cs           \
278         arraylist.cs            \
279         assembly-load-remap.cs  \
280         assembly-load-bytes.cs  \
281         assembly-loadfile.cs    \
282         assembly-loadfrom.cs    \
283         assembly-load-bytes-bindingredirect.cs  \
284         assembly-loadfile-bindingredirect.cs    \
285         assembly-loadfrom-bindingredirect.cs    \
286         assembly-loadfrom-simplename.cs \
287         assemblyresolve_event.cs        \
288         assemblyresolve_event3.cs       \
289         assemblyresolve_event4.cs       \
290         assemblyresolve_event5.cs       \
291         assemblyresolve_event6.cs       \
292         checked.cs              \
293         char-isnumber.cs        \
294         field-layout.cs         \
295         pack-layout.cs          \
296         pack-bug.cs             \
297         hash-table.cs           \
298         test-ops.cs             \
299         obj.cs                  \
300         test-dup-mp.cs          \
301         string.cs               \
302         stringbuilder.cs        \
303         switch.cs               \
304         outparm.cs              \
305         delegate.cs             \
306         bitconverter.cs         \
307         exception.cs            \
308         exception2.cs           \
309         exception3.cs           \
310         exception4.cs           \
311         exception5.cs           \
312         exception6.cs           \
313         exception7.cs           \
314         exception8.cs           \
315         exception10.cs          \
316         exception11.cs          \
317         exception12.cs          \
318         exception13.cs          \
319         exception14.cs          \
320         exception15.cs          \
321         exception16.cs          \
322         exception17.cs          \
323         exception18.cs          \
324         exception-invokes.cs            \
325         merp-json-valid.cs              \
326         merp-crash-test.cs              \
327         exception19.cs          \
328         exception20.cs          \
329         exception21.cs          \
330         typeload-unaligned.cs   \
331         struct.cs               \
332         valuetype-gettype.cs    \
333         typeof-ptr.cs           \
334         static-constructor.cs   \
335         pinvoke.cs              \
336         pinvoke-utf8.cs         \
337         pinvoke3.cs             \
338         pinvoke11.cs            \
339         pinvoke13.cs            \
340         pinvoke17.cs            \
341         invoke.cs               \
342         invoke2.cs              \
343         runtime-invoke.cs               \
344         invoke-string-ctors.cs          \
345         reinit.cs               \
346         box.cs                  \
347         array.cs                \
348         enum.cs                 \
349         enum2.cs                \
350         enum-intrins.cs         \
351         property.cs             \
352         enumcast.cs             \
353         assignable-tests.cs     \
354         array-cast.cs           \
355         array-subtype-attr.cs   \
356         cattr-compile.cs        \
357         cattr-field.cs          \
358         cattr-object.cs         \
359         custom-attr.cs          \
360         double-cast.cs          \
361         newobj-valuetype.cs     \
362         arraylist-clone.cs      \
363         setenv.cs               \
364         vtype.cs                \
365         isvaluetype.cs          \
366         iface6.cs               \
367         iface7.cs               \
368         ipaddress.cs            \
369         array-vt.cs             \
370         interface1.cs           \
371         reflection-enum.cs      \
372         reflection-prop.cs      \
373         reflection4.cs          \
374         reflection5.cs          \
375         reflection-const-field.cs \
376         many-locals.cs          \
377         string-compare.cs       \
378         test-prime.cs           \
379         test-tls.cs             \
380         params.cs               \
381         reflection.cs           \
382         interface.cs            \
383         iface.cs                \
384         iface2.cs               \
385         iface3.cs               \
386         iface4.cs               \
387         iface-large.cs          \
388         iface-contravariant1.cs \
389         virtual-method.cs       \
390         intptrcast.cs           \
391         indexer.cs              \
392         stream.cs               \
393         console.cs              \
394         shift.cs                \
395         jit-int.cs              \
396         jit-uint.cs             \
397         jit-long.cs             \
398         long.cs                 \
399         jit-ulong.cs            \
400         jit-float.cs            \
401         pop.cs                  \
402         time.cs                 \
403         pointer.cs              \
404         hashcode.cs             \
405         delegate1.cs            \
406         delegate2.cs            \
407         delegate3.cs            \
408         delegate5.cs            \
409         delegate6.cs            \
410         delegate7.cs            \
411         delegate8.cs            \
412         delegate10.cs           \
413         delegate11.cs           \
414         delegate12.cs           \
415         delegate13.cs           \
416         delegate14.cs           \
417         delegate15.cs           \
418         delegate16.cs           \
419         largeexp.cs             \
420         largeexp2.cs            \
421         marshalbyref1.cs        \
422         static-ctor.cs          \
423         inctest.cs              \
424         bound.cs                \
425         array-invoke.cs         \
426         test-arr.cs             \
427         decimal.cs              \
428         decimal-array.cs        \
429         marshal.cs              \
430         marshal1.cs             \
431         marshal2.cs             \
432         marshal3.cs             \
433         marshal5.cs             \
434         marshal6.cs             \
435         marshal7.cs             \
436         marshal8.cs             \
437         marshal9.cs             \
438         marshalbool.cs          \
439         test-byval-in-struct.cs \
440         thread.cs               \
441         thread5.cs              \
442         thread-static.cs        \
443         thread-static-init.cs   \
444         context-static.cs       \
445         float-pop.cs            \
446         interfacecast.cs        \
447         array3.cs               \
448         classinit.cs            \
449         classinit2.cs           \
450         classinit3.cs           \
451         synchronized.cs         \
452         async_read.cs           \
453         threadpool.cs           \
454         threadpool1.cs          \
455         threadpool-exceptions1.cs \
456         threadpool-exceptions3.cs \
457         threadpool-exceptions4.cs \
458         threadpool-exceptions6.cs \
459         base-definition.cs      \
460         bug-27420.cs            \
461         bug-46781.cs            \
462         bug-42136.cs            \
463         bug-59286.cs            \
464         bug-70561.cs            \
465         bug-78311.cs            \
466         bug-78653.cs            \
467         bug-78656.cs            \
468         bug-77127.cs            \
469         bug-323114.cs           \
470         bug-Xamarin-5278.cs     \
471         interlocked.cs          \
472         delegate-async-exit.cs  \
473         delegate-delegate-exit.cs       \
474         delegate-exit.cs        \
475         delegate-disposed-hashcode.cs   \
476         finalizer-abort.cs      \
477         finalizer-exception.cs  \
478         finalizer-exit.cs       \
479         finalizer-thread.cs     \
480         main-exit.cs    \
481         main-returns-abort-resetabort.cs        \
482         main-returns-background-abort-resetabort.cs     \
483         main-returns-background-resetabort.cs   \
484         main-returns-background.cs      \
485         main-returns-background-change.cs       \
486         main-returns.cs         \
487         subthread-exit.cs       \
488         desweak.cs              \
489         exists.cs               \
490         handleref.cs    \
491         install_eh_callback.cs  \
492         dbnull-missing.cs       \
493         test-type-ctor.cs       \
494         soft-float-tests.cs     \
495         thread-exit.cs          \
496         finalize-parent.cs      \
497         interlocked-2.2.cs      \
498         pinvoke-2.2.cs          \
499         bug-78431.2.cs          \
500         bug-79684.2.cs          \
501         catch-generics.2.cs     \
502         event-get.2.cs          \
503         safehandle.2.cs         \
504         module-cctor-loader.2.cs        \
505         generics-invoke-byref.2.cs      \
506         generic-signature-compare.2.cs  \
507         generics-sharing.2.cs   \
508         shared-generic-methods.2.cs     \
509         shared-generic-synchronized.2.cs        \
510         generic-inlining.2.cs   \
511         generic-initobj.2.cs    \
512         generic-delegate.2.cs   \
513         generic-sizeof.2.cs     \
514         generic-virtual.2.cs    \
515         generic-interface-methods.2.cs  \
516         generic-array-type.2.cs \
517         generic-method-patching.2.cs    \
518         generic-static-methods.2.cs     \
519         generic-null-call.2.cs  \
520         generic-special.2.cs    \
521         generic-special2.2.cs   \
522         generic-exceptions.2.cs \
523         generic-virtual2.2.cs   \
524         generic-valuetype-interface.2.cs        \
525         generic-getgenericarguments.2.cs        \
526         generic-synchronized.2.cs       \
527         generic-delegate-ctor.2.cs      \
528         generic-array-iface-set.2.cs    \
529         generic-typedef.2.cs    \
530         bug-431413.2.cs \
531         bug-459285.2.cs \
532         generic-virtual-invoke.2.cs     \
533         bug-461198.2.cs \
534         generic-sealed-virtual.2.cs     \
535         generic-system-arrays.2.cs      \
536         generic-stack-traces.2.cs       \
537         generic-stack-traces2.2.cs      \
538         bug-472600.2.cs \
539         recursive-generics.2.cs \
540         recursive-generics.3.cs \
541         bug-473482.2.cs \
542         bug-473999.2.cs \
543         bug-479763.2.cs \
544         bug-616463.cs   \
545         bug-80392.2.cs          \
546         bug-82194.2.cs  \
547         anonarray.2.cs  \
548         ienumerator-interfaces.2.cs     \
549         array-enumerator-ifaces.2.cs    \
550         generic_type_definition_encoding.2.cs \
551         bug-333798.2.cs         \
552         bug-348522.2.cs         \
553         bug-340662_bug.cs       \
554         bug-325283.2.cs \
555         thunks.cs \
556         winx64structs.cs \
557         nullable_boxing.2.cs    \
558         valuetype-equals.cs     \
559         custom-modifiers.2.cs   \
560         custom-modifiers-inheritance.cs \
561         bug-382986.cs   \
562         test-inline-call-stack.cs       \
563         bug-324535.cs   \
564         modules.cs      \
565         bug-81673.cs    \
566         bug-81691.cs    \
567         bug-415577.cs   \
568         filter-stack.cs \
569         vararg.cs       \
570         vararg2.cs      \
571         bug-461867.cs   \
572         bug-461941.cs   \
573         bug-461261.cs   \
574         bug-400716.cs   \
575         bug-459094.cs   \
576         bug-467456.cs   \
577         bug-508538.cs   \
578         bug-472692.2.cs         \
579         gchandles.cs    \
580         interlocked-3.cs        \
581         interlocked-4.2.cs      \
582         w32message.cs   \
583         gc-altstack.cs  \
584         large-gc-bitmap.cs      \
585         bug-561239.cs   \
586         bug-562150.cs   \
587         bug-599469.cs   \
588         monitor-resurrection.cs \
589         monitor-wait-abort.cs   \
590         monitor-abort.cs        \
591         bug-666008.cs   \
592         bug-685908.cs   \
593         sgen-long-vtype.cs      \
594         delegate-invoke.cs      \
595         delegate-prop.cs        \
596         bug-696593.cs   \
597         bug-705140.cs   \
598         bug-1147.cs     \
599         mono-path.cs    \
600         bug-bxc-795.cs  \
601         bug-3903.cs     \
602         async-with-cb-throws.cs \
603         bug-6148.cs     \
604         bug-10127.cs    \
605         bug-18026.cs    \
606         allow-synchronous-major.cs      \
607         block_guard_restore_aligment_on_exit.cs \
608         thread_static_gc_layout.cs \
609         sleep.cs \
610         bug-27147.cs    \
611         bug-30085.cs    \
612         bug-17537.cs    \
613         pinvoke_ppcc.cs \
614         pinvoke_ppcs.cs \
615         pinvoke_ppci.cs \
616         pinvoke_ppcf.cs \
617         pinvoke_ppcd.cs \
618         bug-29585.cs    \
619         priority.cs     \
620         abort-cctor.cs  \
621         abort-try-holes.cs \
622         abort-tests.cs \
623         thread-native-exit.cs \
624         reference-loader.cs \
625         thread-suspend-suspended.cs \
626         thread-suspend-selfsuspended.cs \
627         remoting4.cs    \
628         remoting1.cs    \
629         remoting2.cs    \
630         remoting3.cs    \
631         remoting5.cs    \
632         appdomain.cs    \
633         appdomain-client.cs     \
634         appdomain-unload.cs     \
635         appdomain-async-invoke.cs       \
636         appdomain-thread-abort.cs       \
637         appdomain1.cs   \
638         appdomain2.cs   \
639         appdomain-exit.cs       \
640         appdomain-serialize-exception.cs \
641         assemblyresolve_event2.2.cs     \
642         appdomain-unload-callback.cs    \
643         appdomain-unload-doesnot-raise-pending-events.cs        \
644         appdomain-unload-asmload.cs     \
645         appdomain-unload-exception.cs   \
646         unload-appdomain-on-shutdown.cs \
647         appdomain-marshalbyref-assemblyload.cs \
648         bug-47295.cs    \
649         loader.cs       \
650         pinvoke2.cs     \
651         generic-type-builder.2.cs       \
652         dynamic-generic-size.cs \
653         cominterop.cs   \
654         dynamic-method-access.2.cs      \
655         dynamic-method-finalize.2.cs    \
656         dynamic-method-stack-traces.cs  \
657         generic_type_definition.2.cs    \
658         bug-333798-tb.2.cs      \
659         bug-335131.2.cs \
660         bug-322722_patch_bx.2.cs        \
661         bug-322722_dyn_method_throw.2.cs        \
662         bug-389886-2.cs \
663         bug-349190.2.cs \
664         bug-389886-sre-generic-interface-instances.cs   \
665         bug-462592.cs   \
666         bug-575941.cs   \
667         bug-389886-3.cs \
668         constant-division.cs    \
669         dynamic-method-resurrection.cs  \
670         bug-80307.cs    \
671         assembly_append_ordering.cs     \
672         bug-544446.cs   \
673         bug-36848.cs    \
674         generic-marshalbyref.2.cs       \
675         stackframes-async.2.cs  \
676         transparentproxy.cs     \
677         bug-48015.cs    \
678         delegate9.cs    \
679         marshal-valuetypes.cs   \
680         xdomain-threads.cs      \
681         monitor.cs      \
682         generic-xdomain.2.cs    \
683         threadpool-exceptions7.cs       \
684         cross-domain.cs \
685         generic-unloading.2.cs  \
686         namedmutex-destroy-race.cs      \
687         thread6.cs      \
688         thread7.cs      \
689         appdomain-threadpool-unload.cs  \
690         process-unref-race.cs   \
691         bug-46661.cs    \
692         w32message.cs \
693         runtime-invoke.gen.cs \
694         imt_big_iface_test.cs \
695         bug-58782-plain-throw.cs \
696         bug-58782-capture-and-throw.cs \
697         recursive-struct-arrays.cs \
698         struct-explicit-layout.cs \
699         bug-59281.cs    \
700         init_array_with_lazy_type.cs \
701         weak-fields.cs \
702         threads-leak.cs \
703         threads-init.cs \
704         bug-60848.cs \
705         bug-59400.cs \
706         tailcall-generic-cast-cs.cs \
707         tailcall-interface.cs \
708         bug-60843.cs    \
709         nested_type_visibility.cs       \
710         dynamic-method-churn.cs \
711         dynamic-method-delegate.cs \
712         verbose.cs \
713         generic-unmanaged-constraint.cs \
714         bug-10834.cs \
715         bug-10837.cs    \
716         bug-gh-9507.cs  \
717         async-generic-enum.cs \
718         last-error.cs
720 # some tests fail to compile on mcs
721 if CSC_IS_ROSLYN
722 TESTS_CS_SRC += roslyn-bug-19038.cs sizeof-empty-structs.cs
723 endif
725 if AMD64
726 TESTS_CS_SRC += async-exc-compilation.cs finally_guard.cs finally_block_ending_in_dead_bb.cs
727 if !HOST_WIN32
728 # requires working altstack
729 TESTS_CS_SRC += bug-60862.cs
730 endif
731 endif
733 if X86
734 TESTS_CS_SRC += async-exc-compilation.cs finally_guard.cs finally_block_ending_in_dead_bb.cs
735 if !HOST_WIN32
736 # requires working altstack
737 TESTS_CS_SRC += bug-60862.cs
738 endif
739 endif
741 #maybe this test works on linux, not sure
742 if HOST_DARWIN
743 TESTS_CS_SRC += bug-8417.cs
744 endif
746 if CROSS_COMPILING # FIXME build vs. host vs. target
747 TAILCALL_INTERFACE_CONSERVESTACK_IL=
748 TAILCALL_FSHARP_DEEPTAIL_IL=
749 else
750 if HOST_WASM # FIXME build problem
751 TAILCALL_INTERFACE_CONSERVESTACK_IL=
752 TAILCALL_FSHARP_DEEPTAIL_IL=
753 else
754 if HOST_WIN32 # FIXME build problem
755 TAILCALL_INTERFACE_CONSERVESTACK_IL=
756 TAILCALL_FSHARP_DEEPTAIL_IL=
757 else
758 # These tests are produced by splitting up tailcall-interface-conservestack.il.
759 TAILCALL_INTERFACE_CONSERVESTACK_IL=\
760         tailcall/interface-conservestack/1.il \
761         tailcall/interface-conservestack/10.il \
762         tailcall/interface-conservestack/11.il \
763         tailcall/interface-conservestack/12.il \
764         tailcall/interface-conservestack/13.il \
765         tailcall/interface-conservestack/14.il \
766         tailcall/interface-conservestack/15.il \
767         tailcall/interface-conservestack/16.il \
768         tailcall/interface-conservestack/17.il \
769         tailcall/interface-conservestack/18.il \
770         tailcall/interface-conservestack/19.il \
771         tailcall/interface-conservestack/2.il \
772         tailcall/interface-conservestack/20.il \
773         tailcall/interface-conservestack/21.il \
774         tailcall/interface-conservestack/22.il \
775         tailcall/interface-conservestack/23.il \
776         tailcall/interface-conservestack/24.il \
777         tailcall/interface-conservestack/25.il \
778         tailcall/interface-conservestack/26.il \
779         tailcall/interface-conservestack/27.il \
780         tailcall/interface-conservestack/28.il \
781         tailcall/interface-conservestack/29.il \
782         tailcall/interface-conservestack/3.il \
783         tailcall/interface-conservestack/30.il \
784         tailcall/interface-conservestack/31.il \
785         tailcall/interface-conservestack/32.il \
786         tailcall/interface-conservestack/33.il \
787         tailcall/interface-conservestack/34.il \
788         tailcall/interface-conservestack/35.il \
789         tailcall/interface-conservestack/36.il \
790         tailcall/interface-conservestack/37.il \
791         tailcall/interface-conservestack/38.il \
792         tailcall/interface-conservestack/39.il \
793         tailcall/interface-conservestack/4.il \
794         tailcall/interface-conservestack/40.il \
795         tailcall/interface-conservestack/41.il \
796         tailcall/interface-conservestack/42.il \
797         tailcall/interface-conservestack/43.il \
798         tailcall/interface-conservestack/44.il \
799         tailcall/interface-conservestack/45.il \
800         tailcall/interface-conservestack/46.il \
801         tailcall/interface-conservestack/47.il \
802         tailcall/interface-conservestack/48.il \
803         tailcall/interface-conservestack/49.il \
804         tailcall/interface-conservestack/5.il \
805         tailcall/interface-conservestack/50.il \
806         tailcall/interface-conservestack/51.il \
807         tailcall/interface-conservestack/52.il \
808         tailcall/interface-conservestack/53.il \
809         tailcall/interface-conservestack/6.il \
810         tailcall/interface-conservestack/7.il \
811         tailcall/interface-conservestack/8.il \
812         tailcall/interface-conservestack/9.il
814 # These tests are produced by splitting up tailcall/fsharp-deeptail.il.
815 TAILCALL_FSHARP_DEEPTAIL_IL=\
816         tailcall/fsharp-deeptail/Seq.filter-length1.il \
817         tailcall/fsharp-deeptail/Seq.filter-length2.il \
818         tailcall/fsharp-deeptail/Seq.filter-length3.il \
819         tailcall/fsharp-deeptail/StaticTailCallLoop_DateTime_.il \
820         tailcall/fsharp-deeptail/StaticTailCallLoop_int_.il \
821         tailcall/fsharp-deeptail/TailCallLoopGenericClassAndMethodAbstractClass_DateTime_.Method1_DateTime_.il \
822         tailcall/fsharp-deeptail/TailCallLoopGenericClassAndMethodAbstractClass_DateTime_.Method1_byte_.il \
823         tailcall/fsharp-deeptail/TailCallLoopGenericClassAndMethodAbstractClass_DateTime_.Method1_int_.il \
824         tailcall/fsharp-deeptail/TailCallLoopGenericClassAndMethodAbstractClass_DateTime_.Method1_string_.il \
825         tailcall/fsharp-deeptail/TailCallLoopGenericClassAndMethodAbstractClass_DatstringeTime_.Method1_string_.il \
826         tailcall/fsharp-deeptail/TailCallLoopGenericClassAndMethodAbstractClass_byte_.Method1_DateTime_.il \
827         tailcall/fsharp-deeptail/TailCallLoopGenericClassAndMethodAbstractClass_byte_.Method1_byte_.il \
828         tailcall/fsharp-deeptail/TailCallLoopGenericClassAndMethodAbstractClass_byte_.Method1_int_.il \
829         tailcall/fsharp-deeptail/TailCallLoopGenericClassAndMethodAbstractClass_byte_.Method1_string_.il \
830         tailcall/fsharp-deeptail/TailCallLoopGenericClassAndMethodAbstractClass_int_.Method1_DateTime_.il \
831         tailcall/fsharp-deeptail/TailCallLoopGenericClassAndMethodAbstractClass_int_.Method1_byte_.il \
832         tailcall/fsharp-deeptail/TailCallLoopGenericClassAndMethodAbstractClass_int_.Method1_int_.il \
833         tailcall/fsharp-deeptail/TailCallLoopGenericClassAndMethodAbstractClass_int_.Method1_string_.il \
834         tailcall/fsharp-deeptail/TailCallLoopGenericClassAndMethodAbstractClass_string_.Method1_DateTime_.il \
835         tailcall/fsharp-deeptail/TailCallLoopGenericClassAndMethodAbstractClass_string_.Method1_byte_.il \
836         tailcall/fsharp-deeptail/TailCallLoopGenericClassAndMethodAbstractClass_string_.Method1_int_.il \
837         tailcall/fsharp-deeptail/TailCallLoopGenericClassAndMethodAbstractInterface_DateTime_.Method1_DateTime_.il \
838         tailcall/fsharp-deeptail/TailCallLoopGenericClassAndMethodAbstractInterface_DateTime_.Method1_byte_.il \
839         tailcall/fsharp-deeptail/TailCallLoopGenericClassAndMethodAbstractInterface_DateTime_.Method1_int_.il \
840         tailcall/fsharp-deeptail/TailCallLoopGenericClassAndMethodAbstractInterface_DateTime_.Method1_string_.il \
841         tailcall/fsharp-deeptail/TailCallLoopGenericClassAndMethodAbstractInterface_DatstringeTime_.Method1_string_.il \
842         tailcall/fsharp-deeptail/TailCallLoopGenericClassAndMethodAbstractInterface_byte_.Method1_DateTime_.il \
843         tailcall/fsharp-deeptail/TailCallLoopGenericClassAndMethodAbstractInterface_byte_.Method1_byte_.il \
844         tailcall/fsharp-deeptail/TailCallLoopGenericClassAndMethodAbstractInterface_byte_.Method1_int_.il \
845         tailcall/fsharp-deeptail/TailCallLoopGenericClassAndMethodAbstractInterface_byte_.Method1_string_.il \
846         tailcall/fsharp-deeptail/TailCallLoopGenericClassAndMethodAbstractInterface_int_.Method1_DateTime_.il \
847         tailcall/fsharp-deeptail/TailCallLoopGenericClassAndMethodAbstractInterface_int_.Method1_byte_.il \
848         tailcall/fsharp-deeptail/TailCallLoopGenericClassAndMethodAbstractInterface_int_.Method1_int_.il \
849         tailcall/fsharp-deeptail/TailCallLoopGenericClassAndMethodAbstractInterface_int_.Method1_string_.il \
850         tailcall/fsharp-deeptail/TailCallLoopGenericClassAndMethodAbstractInterface_string_.Method1_DateTime_.il \
851         tailcall/fsharp-deeptail/TailCallLoopGenericClassAndMethodAbstractInterface_string_.Method1_byte_.il \
852         tailcall/fsharp-deeptail/TailCallLoopGenericClassAndMethodAbstractInterface_string_.Method1_int_.il \
853         tailcall/fsharp-deeptail/TailCallLoopGenericClassAndMethod_DateTime_.Method1_DateTime_.il \
854         tailcall/fsharp-deeptail/TailCallLoopGenericClassAndMethod_DateTime_.Method1_byte_.il \
855         tailcall/fsharp-deeptail/TailCallLoopGenericClassAndMethod_DateTime_.Method1_int_.il \
856         tailcall/fsharp-deeptail/TailCallLoopGenericClassAndMethod_DateTime_.Method1_string_.il \
857         tailcall/fsharp-deeptail/TailCallLoopGenericClassAndMethod_byte_.Method1_DateTime_.il \
858         tailcall/fsharp-deeptail/TailCallLoopGenericClassAndMethod_byte_.Method1_byte_.il \
859         tailcall/fsharp-deeptail/TailCallLoopGenericClassAndMethod_byte_.Method1_int_.il \
860         tailcall/fsharp-deeptail/TailCallLoopGenericClassAndMethod_byte_.Method1_string_.il \
861         tailcall/fsharp-deeptail/TailCallLoopGenericClassAndMethod_int_.Method1_DateTime_.il \
862         tailcall/fsharp-deeptail/TailCallLoopGenericClassAndMethod_int_.Method1_byte_.il \
863         tailcall/fsharp-deeptail/TailCallLoopGenericClassAndMethod_int_.Method1_int_.il \
864         tailcall/fsharp-deeptail/TailCallLoopGenericClassAndMethod_int_.Method1_string_.il \
865         tailcall/fsharp-deeptail/TailCallLoopGenericClassAndMethod_string_.Method1_DateTime_.il \
866         tailcall/fsharp-deeptail/TailCallLoopGenericClassAndMethod_string_.Method1_byte_.il \
867         tailcall/fsharp-deeptail/TailCallLoopGenericClassAndMethod_string_.Method1_int_.il \
868         tailcall/fsharp-deeptail/TailCallLoopGenericClassAndMethod_string_.Method1_string_.il \
869         tailcall/fsharp-deeptail/TailCallLoopGenericClass_DateTime_.il \
870         tailcall/fsharp-deeptail/TailCallLoopGenericClass_int_.il \
871         tailcall/fsharp-deeptail/TailCallLoopGenericClass_string_.il \
872         tailcall/fsharp-deeptail/TailCallLoop_DateTime_.il \
873         tailcall/fsharp-deeptail/TailCallLoop_int_.il \
874         tailcall/fsharp-deeptail/mutualTail1IsEven.il \
875         tailcall/fsharp-deeptail/mutualTail1IsOdd.il \
876         tailcall/fsharp-deeptail/simpleTail1.il \
877         tailcall/fsharp-deeptail/simpleTail2.il
879 $(TAILCALL_FSHARP_DEEPTAIL_IL): tailcall/fsharp-deeptail.stamp
881 $(TAILCALL_INTERFACE_CONSERVESTACK_IL): tailcall/interface-conservestack.stamp
883 tailcall/fsharp-deeptail.stamp: tailcall/split-fsharp$(EXEEXT) tailcall/fsharp-deeptail.il
884         ./tailcall/split-fsharp$(EXEEXT) < $(srcdir)/tailcall/fsharp-deeptail.il
885         touch -f $@
887 tailcall/interface-conservestack.stamp: split-tailcall-interface-conservestack$(EXEEXT) tailcall-interface-conservestack.il
888         ./split-tailcall-interface-conservestack$(EXEEXT) < $(srcdir)/tailcall-interface-conservestack.il
889         touch -f $@
891 noinst_PROGRAMS = tailcall/split-fsharp split-tailcall-interface-conservestack
893 tailcall_split_fsharp_SOURCES=tailcall/split-fsharp.cpp
895 split_tailcall_interface_conservestack_SOURCES=split-tailcall-interface-conservestack.cpp
897 endif # HOST_WIN32
898 endif # HOST_WASM
899 endif # CROSS_COMPILING
901 BUILT_SOURCES += $(TAILCALL_FSHARP_DEEPTAIL_IL) $(TAILCALL_INTERFACE_CONSERVESTACK_IL)
903 TESTS_IL_SRC=                   \
904         tailcall/2.il        \
905         tailcall/3.il        \
906         tailcall/4.il        \
907         tailcall/fsharp-deeptail.il          \
908         tailcall/fsharp-shallowtail.il   \
909         tailcall/fsharp-shallownotail.il \
910         $(TAILCALL_FSHARP_DEEPTAIL_IL) \
911         gptail1.il              \
912         itail1.il               \
913         itaili1.il              \
914         ivtail1.il              \
915         sirtail1.il             \
916         sitail1.il              \
917         srtail1.il              \
918         stail1.il               \
919         tail1.il                \
920         taili1.il               \
921         vtail1.il               \
922         tailcall-virt.il        \
923         tailcall-rgctxa.il      \
924         tailcall-rgctxb.il      \
925         tailcall-rgctxb-static.il \
926         tailcall-mrgctx.il      \
927         $(TAILCALL_INTERFACE_CONSERVESTACK_IL) \
928         tailcall-interface-justrun.il \
929         field-access.il         \
930         method-access.il        \
931         ldftn-access.il         \
932         cpblkTest.il            \
933         vbinterface.il          \
934         calliTest.il            \
935         calliGenericTest.il             \
936         ckfiniteTest.il         \
937         fault-handler.il                \
938         locallocTest.il         \
939         initblkTest.il          \
940         qt-instance.il          \
941         vararg3.il              \
942         bug-29859.il            \
943         bug-78549.il            \
944         static-fields-nonconst.il       \
945         reload-at-bb-end.il     \
946         test-enum-indstoreil.il \
947         filter-bug.il           \
948         even-odd.il             \
949         bug-82022.il    \
950         vt-sync-method.il       \
951         enum_types.il   \
952         invalid-token.il        \
953         call_missing_method.il  \
954         call_missing_class.il   \
955         calli_sig_check.il      \
956         ldfld_missing_field.il  \
957         ldfld_missing_class.il  \
958         find-method.2.il        \
959         bug-79215.2.il  \
960         bug-79956.2.il  \
961         bug-327438.2.il \
962         bug-387274.2.il \
963         bug-426309.2.il \
964         ldtoken_with_byref_typespec.2.il \
965         resolve_method_bug.2.il \
966         resolve_field_bug.2.il \
967         resolve_type_bug.2.il   \
968         generics-sharing-other-exc.2.il \
969         generic-ldobj.2.il      \
970         generic-mkrefany.2.il   \
971         generic-refanyval.2.il  \
972         generic-ldtoken.2.il    \
973         generic-ldtoken-method.2.il     \
974         generic-ldtoken-field.2.il      \
975         generic-tailcall.2.il   \
976         generic-tailcall2.2.il  \
977         generic-array-exc.2.il  \
978         generic-valuetype-newobj2.2.il  \
979         generic-valuetype-newobj.2.il   \
980         generic-constrained.2.il        \
981         generic-type-load-exception.2.il        \
982         bug-81466.il    \
983         bug457574.il    \
984         bug445361.il    \
985         bug-463303.il   \
986         bug469742.2.il  \
987         bug-528055.il   \
988         array_load_exception.il \
989         bug-481403.il   \
990         interface-with-static-method.il \
991         bug-633291.il   \
992         delegate-with-null-target.il    \
993         bug-318677.il   \
994         gsharing-valuetype-layout.il    \
995         invalid_generic_instantiation.il \
996         bug-45841-fpstack-exceptions.il \
997         instance_tailrec.il     \
998         dim-constrainedcall.il  \
999         dim-constrained3.il     \
1000         dim-constrained3_gm.il  \
1001         dim-diamondshape.il     \
1002         dim-genericmethods.il   \
1003         dim-methodimpl.il       \
1004         dim-sharedgenerics.il   \
1005         dim-simple.il   \
1006         dim-valuetypes.il \
1007         dim-nested-types.il \
1008         dim-generic-interface.il \
1009         dim-implements-multiple-interfaces.il \
1010         dim-sealed.il \
1011         dim-protected-accessibility1.il \
1012         dim-protected-accessibility2.il \
1013         dim-reabstraction.il \
1014         dim-reabstraction-generics.il \
1015         dim-abstractcall.il \
1016         twopassvariance.il \
1017         tailcall-generic-cast-conservestack-il.il \
1018         tailcall-generic-cast-nocrash-il.il \
1019         tailcall-member-function-in-valuetype.il \
1020         tailcall-return-valuetype.il \
1021         tailcall-valuetype-parameter.il \
1022         ldfldvt.il \
1023         newobj-abstract.il \
1024         invalid-isbyreflike.il \
1025         custom-modifiers-append.1.il \
1026         gh-13056_mono_local_cprop_av.il \
1027         gh-13057_mono_local_emulate_ops_av.il \
1028         module-cctor-entrypoint.il \
1029         bug-gh-9706.il \
1030         calli_native.il
1032 # This test crashes the runtime, even with recent fixes.
1033 #       incorrect-ldvirtftn-read-behind-for-dup.il
1035 TESTS_GSHARED_SRC = \
1036         generics-sharing.2.cs   \
1037         shared-generic-methods.2.cs     \
1038         shared-generic-synchronized.2.cs        \
1039         generic-initobj.2.cs            \
1040         generics-sharing-other-exc.2.cs \
1041         generic-box.2.cs                \
1042         generic-unbox.2.cs      \
1043         generic-delegate.2.cs   \
1044         generic-sizeof.2.cs     \
1045         generic-ldobj.2.cs      \
1046         generic-mkrefany.2.cs                   \
1047         generic-refanyval.2.cs  \
1048         generic-ldtoken.2.cs                    \
1049         generic-ldtoken-method.2.cs     \
1050         generic-ldtoken-field.2.cs      \
1051         generic-virtual.2.cs    \
1052         generic-tailcall.2.cs                   \
1053         generic-interface-methods.2.cs  \
1054         generic-array-type.2.cs \
1055         generic-method-patching.2.cs    \
1056         generic-static-methods.2.cs     \
1057         generic-null-call.2.cs  \
1058         generic-tailcall2.2.cs                  \
1059         generic-array-exc.2.cs  \
1060         generic-special.2.cs                    \
1061         generic-special2.2.cs   \
1062         generic-exceptions.2.cs \
1063         generic-delegate2.2.cs          \
1064         generic-virtual2.2.cs   \
1065         generic-valuetype-interface.2.cs        \
1066         generic-valuetype-newobj.2.cs   \
1067         generic-valuetype-newobj2.2.cs  \
1068         generic-getgenericarguments.2.cs        \
1069         generic-synchronized.2.cs       \
1070         generic-delegate-ctor.2.cs              \
1071         generic-constrained.2.cs        \
1072         bug-431413.2.cs                 \
1073         generic-virtual-invoke.2.cs     \
1074         generic-typedef.2.cs            \
1075         generic-marshalbyref.2.cs       \
1076         bug-459285.2.cs \
1077         bug-461198.2.cs \
1078         generic-sealed-virtual.2.cs     \
1079         generic-system-arrays.2.cs      \
1080         generic-stack-traces.2.cs       \
1081         generic-stack-traces2.2.cs              \
1082         bug-472600.2.cs \
1083         bug-473482.2.cs \
1084         bug-473999.2.cs         \
1085         bug-479763.2.cs                         \
1086         generic-type-load-exception.2.cs        \
1087         bug-616463.cs   \
1088         bug-1147.cs     \
1089         generic-type-builder.2.cs
1091 PLATFORM_DISABLED_TESTS=\
1092         $(TAILCALL_DISABLED_TESTS_RUN) \
1093         tailcall-member-function-in-valuetype.exe \
1094         tailcall-rgctxb.exe
1096 if HOST_WIN32
1097 PLATFORM_DISABLED_TESTS += bug-58782-plain-throw.exe bug-58782-capture-and-throw.exe
1099 # see https://github.com/mono/mono/issues/9739
1100 PLATFORM_DISABLED_TESTS += verbose.exe
1101 endif
1105 if HOST_DARWIN
1107 # see https://github.com/mono/mono/issues/10845
1108 PLATFORM_DISABLED_TESTS += monitor-wait-abort.exe
1109 else
1110 PLATFORM_DISABLED_TESTS += merp-json-valid.exe merp-crash-test.exe
1111 endif
1113 if AMD64
1114 # #651684
1115 PLATFORM_DISABLED_TESTS += finally_guard.exe
1117 if HOST_WIN32
1118 PLATFORM_DISABLED_TESTS += w32message.exe
1119 endif
1121 endif
1123 if X86
1125 if HOST_WIN32
1126 PLATFORM_DISABLED_TESTS += async-exc-compilation.exe finally_guard.exe finally_block_ending_in_dead_bb.exe \
1127         bug-18026.exe monitor.exe threadpool-exceptions5.exe process-unref-race.exe w32message.exe \
1128         unhandled-exception-1.exe unhandled-exception-2.exe unhandled-exception-3.exe unhandled-exception-4.exe \
1129         unhandled-exception-5.exe unhandled-exception-6.exe unhandled-exception-7.exe unhandled-exception-8.exe
1130 endif
1132 # test_virt.exe fails because callee takes more parameters than caller, 1 vs. 0, and
1133 # x86 passes no parameters in registers, so it is a stack imbalance.
1134 PLATFORM_DISABLED_TESTS += tailcall/coreclr/JIT/Methodical/tailcall/test_virt.exe
1136 endif
1138 if POWERPC
1139 # bug #71274
1140 PLATFORM_DISABLED_TESTS += finalizer-abort.exe finalizer-exception.exe finalizer-exit.exe
1141 endif
1143 if POWERPC64
1144 # FIXME: These tests hang/fail for unknown reasons
1145 PLATFORM_DISABLED_TESTS += monitor.exe threadpool-exceptions5.exe appdomain-unload.exe \
1146         pinvoke2.exe pinvoke3.exe pinvoke11.exe threadpool-exceptions7.exe winx64structs.exe bug-10127.exe pinvoke_ppcc.exe \
1147         pinvoke_ppcs.exe pinvoke_ppci.exe pinvoke_ppcf.exe pinvoke_ppcd.exe abort-cctor.exe load-exceptions.exe \
1148         sgen-domain-unload-2.exe sgen-weakref-stress.exe sgen-cementing-stress.exe sgen-new-threads-dont-join-stw.exe \
1149         sgen-new-threads-dont-join-stw-2.exe sgen-new-threads-collect.exe sgen-bridge.exe
1150 PLATFORM_DISABLED_TESTS += appdomain-threadpool-unload.exe
1151 PLATFORM_DISABLED_TESTS += bug-60848.exe
1152 endif
1154 if ARM
1155 PLATFORM_DISABLED_TESTS += filter-stack.exe weak-fields.exe
1157 # Most ARM problems are due to extra_arg and cannot be easily fixed, except for easy
1158 # bitcode-specific fix which has been declined. A few are uncertain and should be investigated,
1159 # but still probably extra_arg.
1160 PLATFORM_DISABLED_TESTS += ivtail1.exe
1161 PLATFORM_DISABLED_TESTS += tailcall-generic-cast-conservestack-il.exe
1162 PLATFORM_DISABLED_TESTS += tailcall-mrgctx.exe
1163 PLATFORM_DISABLED_TESTS += tailcall-rgctxa.exe
1164 PLATFORM_DISABLED_TESTS += tailcall-virt.exe
1165 PLATFORM_DISABLED_TESTS += tailcall/coreclr/JIT/Directed/tailcall/tailcall.exe
1166 PLATFORM_DISABLED_TESTS += tailcall/2.exe
1167 PLATFORM_DISABLED_TESTS += tailcall/3.exe
1168 PLATFORM_DISABLED_TESTS += tailcall/4.exe
1169 PLATFORM_DISABLED_TESTS += tailcall/fsharp-deeptail/TailCallLoopGenericClassAndMethod_string_.Method1_string_.exe
1171 # FIXME These presumably take an extra parameter though this should be confirmed.
1172 PLATFORM_DISABLED_TESTS += tailcall/fsharp-deeptail/TailCallLoopGenericClassAndMethodAbstractClass_DateTime_.Method1_DateTime_.exe
1173 PLATFORM_DISABLED_TESTS += tailcall/fsharp-deeptail/TailCallLoopGenericClassAndMethodAbstractClass_DateTime_.Method1_byte_.exe
1174 PLATFORM_DISABLED_TESTS += tailcall/fsharp-deeptail/TailCallLoopGenericClassAndMethodAbstractClass_DateTime_.Method1_int_.exe
1175 PLATFORM_DISABLED_TESTS += tailcall/fsharp-deeptail/TailCallLoopGenericClassAndMethodAbstractClass_DateTime_.Method1_string_.exe
1176 PLATFORM_DISABLED_TESTS += tailcall/fsharp-deeptail/TailCallLoopGenericClassAndMethodAbstractClass_DatstringeTime_.Method1_string_.exe
1177 PLATFORM_DISABLED_TESTS += tailcall/fsharp-deeptail/TailCallLoopGenericClassAndMethodAbstractClass_byte_.Method1_DateTime_.exe
1178 PLATFORM_DISABLED_TESTS += tailcall/fsharp-deeptail/TailCallLoopGenericClassAndMethodAbstractClass_byte_.Method1_byte_.exe
1179 PLATFORM_DISABLED_TESTS += tailcall/fsharp-deeptail/TailCallLoopGenericClassAndMethodAbstractClass_byte_.Method1_int_.exe
1180 PLATFORM_DISABLED_TESTS += tailcall/fsharp-deeptail/TailCallLoopGenericClassAndMethodAbstractClass_byte_.Method1_string_.exe
1181 PLATFORM_DISABLED_TESTS += tailcall/fsharp-deeptail/TailCallLoopGenericClassAndMethodAbstractClass_int_.Method1_DateTime_.exe
1182 PLATFORM_DISABLED_TESTS += tailcall/fsharp-deeptail/TailCallLoopGenericClassAndMethodAbstractClass_int_.Method1_byte_.exe
1183 PLATFORM_DISABLED_TESTS += tailcall/fsharp-deeptail/TailCallLoopGenericClassAndMethodAbstractClass_int_.Method1_int_.exe
1184 PLATFORM_DISABLED_TESTS += tailcall/fsharp-deeptail/TailCallLoopGenericClassAndMethodAbstractClass_int_.Method1_string_.exe
1185 PLATFORM_DISABLED_TESTS += tailcall/fsharp-deeptail/TailCallLoopGenericClassAndMethodAbstractClass_string_.Method1_DateTime_.exe
1186 PLATFORM_DISABLED_TESTS += tailcall/fsharp-deeptail/TailCallLoopGenericClassAndMethodAbstractClass_string_.Method1_byte_.exe
1187 PLATFORM_DISABLED_TESTS += tailcall/fsharp-deeptail/TailCallLoopGenericClassAndMethodAbstractClass_string_.Method1_int_.exe
1189 # Interface calls cannot be tailcalls on ARM due to extra_arg. Bitcode could easily work however.
1190 PLATFORM_DISABLED_TESTS += tailcall/fsharp-deeptail.exe
1191 PLATFORM_DISABLED_TESTS += tailcall/fsharp-deeptail/TailCallLoopGenericClassAndMethodAbstractInterface_DateTime_.Method1_DateTime_.exe
1192 PLATFORM_DISABLED_TESTS += tailcall/fsharp-deeptail/TailCallLoopGenericClassAndMethodAbstractInterface_DateTime_.Method1_byte_.exe
1193 PLATFORM_DISABLED_TESTS += tailcall/fsharp-deeptail/TailCallLoopGenericClassAndMethodAbstractInterface_DateTime_.Method1_int_.exe
1194 PLATFORM_DISABLED_TESTS += tailcall/fsharp-deeptail/TailCallLoopGenericClassAndMethodAbstractInterface_DateTime_.Method1_string_.exe
1195 PLATFORM_DISABLED_TESTS += tailcall/fsharp-deeptail/TailCallLoopGenericClassAndMethodAbstractInterface_DatstringeTime_.Method1_string_.exe
1196 PLATFORM_DISABLED_TESTS += tailcall/fsharp-deeptail/TailCallLoopGenericClassAndMethodAbstractInterface_byte_.Method1_DateTime_.exe
1197 PLATFORM_DISABLED_TESTS += tailcall/fsharp-deeptail/TailCallLoopGenericClassAndMethodAbstractInterface_byte_.Method1_byte_.exe
1198 PLATFORM_DISABLED_TESTS += tailcall/fsharp-deeptail/TailCallLoopGenericClassAndMethodAbstractInterface_byte_.Method1_int_.exe
1199 PLATFORM_DISABLED_TESTS += tailcall/fsharp-deeptail/TailCallLoopGenericClassAndMethodAbstractInterface_byte_.Method1_string_.exe
1200 PLATFORM_DISABLED_TESTS += tailcall/fsharp-deeptail/TailCallLoopGenericClassAndMethodAbstractInterface_int_.Method1_DateTime_.exe
1201 PLATFORM_DISABLED_TESTS += tailcall/fsharp-deeptail/TailCallLoopGenericClassAndMethodAbstractInterface_int_.Method1_byte_.exe
1202 PLATFORM_DISABLED_TESTS += tailcall/fsharp-deeptail/TailCallLoopGenericClassAndMethodAbstractInterface_int_.Method1_int_.exe
1203 PLATFORM_DISABLED_TESTS += tailcall/fsharp-deeptail/TailCallLoopGenericClassAndMethodAbstractInterface_int_.Method1_string_.exe
1204 PLATFORM_DISABLED_TESTS += tailcall/fsharp-deeptail/TailCallLoopGenericClassAndMethodAbstractInterface_string_.Method1_DateTime_.exe
1205 PLATFORM_DISABLED_TESTS += tailcall/fsharp-deeptail/TailCallLoopGenericClassAndMethodAbstractInterface_string_.Method1_byte_.exe
1206 PLATFORM_DISABLED_TESTS += tailcall/fsharp-deeptail/TailCallLoopGenericClassAndMethodAbstractInterface_string_.Method1_int_.exe
1208 # Interface calls cannot be tailcalls on ARM due to extra_arg. Bitcode could easily work however.
1209 PLATFORM_DISABLED_TESTS += tailcall-interface-conservestack.exe
1210 PLATFORM_DISABLED_TESTS += tailcall/interface-conservestack/1.exe
1211 PLATFORM_DISABLED_TESTS += tailcall/interface-conservestack/10.exe
1212 PLATFORM_DISABLED_TESTS += tailcall/interface-conservestack/11.exe
1213 PLATFORM_DISABLED_TESTS += tailcall/interface-conservestack/12.exe
1214 PLATFORM_DISABLED_TESTS += tailcall/interface-conservestack/13.exe
1215 PLATFORM_DISABLED_TESTS += tailcall/interface-conservestack/14.exe
1216 PLATFORM_DISABLED_TESTS += tailcall/interface-conservestack/15.exe
1217 PLATFORM_DISABLED_TESTS += tailcall/interface-conservestack/16.exe
1218 PLATFORM_DISABLED_TESTS += tailcall/interface-conservestack/17.exe
1219 PLATFORM_DISABLED_TESTS += tailcall/interface-conservestack/18.exe
1220 PLATFORM_DISABLED_TESTS += tailcall/interface-conservestack/19.exe
1221 PLATFORM_DISABLED_TESTS += tailcall/interface-conservestack/2.exe
1222 PLATFORM_DISABLED_TESTS += tailcall/interface-conservestack/20.exe
1223 PLATFORM_DISABLED_TESTS += tailcall/interface-conservestack/21.exe
1224 PLATFORM_DISABLED_TESTS += tailcall/interface-conservestack/22.exe
1225 PLATFORM_DISABLED_TESTS += tailcall/interface-conservestack/23.exe
1226 PLATFORM_DISABLED_TESTS += tailcall/interface-conservestack/24.exe
1227 PLATFORM_DISABLED_TESTS += tailcall/interface-conservestack/25.exe
1228 PLATFORM_DISABLED_TESTS += tailcall/interface-conservestack/26.exe
1229 PLATFORM_DISABLED_TESTS += tailcall/interface-conservestack/27.exe
1230 PLATFORM_DISABLED_TESTS += tailcall/interface-conservestack/28.exe
1231 PLATFORM_DISABLED_TESTS += tailcall/interface-conservestack/29.exe
1232 PLATFORM_DISABLED_TESTS += tailcall/interface-conservestack/3.exe
1233 PLATFORM_DISABLED_TESTS += tailcall/interface-conservestack/30.exe
1234 PLATFORM_DISABLED_TESTS += tailcall/interface-conservestack/31.exe
1235 PLATFORM_DISABLED_TESTS += tailcall/interface-conservestack/32.exe
1236 PLATFORM_DISABLED_TESTS += tailcall/interface-conservestack/33.exe
1237 PLATFORM_DISABLED_TESTS += tailcall/interface-conservestack/34.exe
1238 PLATFORM_DISABLED_TESTS += tailcall/interface-conservestack/35.exe
1239 PLATFORM_DISABLED_TESTS += tailcall/interface-conservestack/36.exe
1240 PLATFORM_DISABLED_TESTS += tailcall/interface-conservestack/37.exe
1241 PLATFORM_DISABLED_TESTS += tailcall/interface-conservestack/38.exe
1242 PLATFORM_DISABLED_TESTS += tailcall/interface-conservestack/39.exe
1243 PLATFORM_DISABLED_TESTS += tailcall/interface-conservestack/4.exe
1244 PLATFORM_DISABLED_TESTS += tailcall/interface-conservestack/40.exe
1245 PLATFORM_DISABLED_TESTS += tailcall/interface-conservestack/41.exe
1246 PLATFORM_DISABLED_TESTS += tailcall/interface-conservestack/42.exe
1247 PLATFORM_DISABLED_TESTS += tailcall/interface-conservestack/43.exe
1248 PLATFORM_DISABLED_TESTS += tailcall/interface-conservestack/44.exe
1249 PLATFORM_DISABLED_TESTS += tailcall/interface-conservestack/45.exe
1250 PLATFORM_DISABLED_TESTS += tailcall/interface-conservestack/46.exe
1251 PLATFORM_DISABLED_TESTS += tailcall/interface-conservestack/47.exe
1252 PLATFORM_DISABLED_TESTS += tailcall/interface-conservestack/48.exe
1253 PLATFORM_DISABLED_TESTS += tailcall/interface-conservestack/49.exe
1254 PLATFORM_DISABLED_TESTS += tailcall/interface-conservestack/5.exe
1255 PLATFORM_DISABLED_TESTS += tailcall/interface-conservestack/50.exe
1256 PLATFORM_DISABLED_TESTS += tailcall/interface-conservestack/51.exe
1257 PLATFORM_DISABLED_TESTS += tailcall/interface-conservestack/52.exe
1258 PLATFORM_DISABLED_TESTS += tailcall/interface-conservestack/6.exe
1259 PLATFORM_DISABLED_TESTS += tailcall/interface-conservestack/7.exe
1260 PLATFORM_DISABLED_TESTS += tailcall/interface-conservestack/8.exe
1261 PLATFORM_DISABLED_TESTS += tailcall/interface-conservestack/9.exe
1262 endif
1264 if ARM64
1265 PLATFORM_DISABLED_TESTS += weak-fields.exe
1266 endif
1268 if MIPS
1269 # monitor.exe is racy
1270 PLATFORM_DISABLED_TESTS += filter-stack.exe monitor.exe
1271 endif
1273 if S390X
1274 PLATFORM_DISABLED_TESTS += dynamic-method-resurrection.exe
1275 #PLATFORM_DISABLED_TESTS=dynamic-method-resurrection.exe exception17.exe
1277 PLATFORM_DISABLED_TESTS += \
1278         sgen-toggleref.exe \
1279         sgen-bridge.exe \
1280         sgen-bridge-major-fragmentation.exe \
1281         sgen-bridge-xref.exe
1282 endif
1284 PROFILE_DISABLED_TESTS= \
1285         $(TAILCALL_DISABLED_TESTS_RUN) \
1286         tailcall-member-function-in-valuetype.exe \
1287         tailcall-rgctxb.exe
1289 if FULL_AOT_TESTS
1290 # Tests which rely on TypeLoadExceptions or MemberAccessExceptions
1291 # In full-aot mode, these cause the relevant methods to be not AOTed.
1292 PROFILE_DISABLED_TESTS += \
1293         typeload-unaligned.exe \
1294         field-access.exe \
1295         invalid_generic_instantiation.exe \
1296         bug-481403.exe \
1297         array_ldelema.exe \
1298         array_load_exception.exe \
1299         bug445361.exe \
1300         generic-type-load-exception.2.exe \
1301         invalid-token.exe \
1302         call_missing_method.exe \
1303         call_missing_class.exe \
1304         custom-attr-errors.exe \
1305         ldfld_missing_field.exe \
1306         ldfld_missing_class.exe \
1307         vt-sync-method.exe \
1308         resolve_method_bug.2.exe \
1309         resolve_field_bug.2.exe \
1310         resolve_type_bug.2.exe \
1311         bug-81691.exe \
1312         bug-327438.2.exe \
1313         newobj-abstract.exe \
1314         invalid-isbyreflike.exe
1316 # Tests which rely on remoting
1317 PROFILE_DISABLED_TESTS += \
1318         context-static.exe \
1319         bug-415577.exe \
1320         generic-marshalbyref.2.exe \
1321         unhandled-exception-7.exe
1323 # Tests which use unsupported pinvoke+full aot
1324 # functionality
1325 PROFILE_DISABLED_TESTS += \
1326         marshal.exe \
1327         marshal2.exe \
1328         marshal6.exe \
1329         marshal7.exe \
1330         marshal8.exe \
1331         pinvoke-2.2.exe \
1332         pinvoke3.exe \
1333         thunks.exe \
1334         bug-58782-plain-throw.exe \
1335         bug-58782-capture-and-throw.exe
1337 # Tests which load assemblies which are not
1338 # in the testing_aot_full profile
1339 PROFILE_DISABLED_TESTS += \
1340         assembly-load-remap.exe
1342 # Test which needs remoting support
1343 PROFILE_DISABLED_TESTS += \
1344         remoting4.exe   \
1345         remoting1.exe   \
1346         remoting2.exe   \
1347         remoting3.exe   \
1348         remoting5.exe
1350 # Tests which needs AppDomain support
1351 PROFILE_DISABLED_TESTS += \
1352         appdomain.exe   \
1353         appdomain-client.exe    \
1354         appdomain-unload.exe    \
1355         appdomain-async-invoke.exe      \
1356         appdomain-thread-abort.exe      \
1357         appdomain1.exe  \
1358         appdomain2.exe  \
1359         appdomain-exit.exe      \
1360         appdomain-unload-asmload.exe \
1361         appdomain-unload-callback.exe   \
1362         appdomain-unload-doesnot-raise-pending-events.exe       \
1363         unload-appdomain-on-shutdown.exe        \
1364         appdomain-marshalbyref-assemblyload.exe \
1365         assemblyresolve_event2.2.exe    \
1366         assemblyresolve_event6.exe      \
1367         bug-544446.exe  \
1368         bug-36848.exe   \
1369         generic-marshalbyref.2.exe      \
1370         stackframes-async.2.exe \
1371         transparentproxy.exe    \
1372         bug-48015.exe   \
1373         delegate9.exe   \
1374         marshal-valuetypes.exe  \
1375         xdomain-threads.exe     \
1376         monitor.exe     \
1377         generic-xdomain.2.exe   \
1378         threadpool-exceptions7.exe      \
1379         cross-domain.exe        \
1380         generic-unloading.2.exe \
1381         appdomain-threadpool-unload.exe
1383 # Tests which needs System.Reflection.Emit support
1384 PROFILE_DISABLED_TESTS += \
1385         bug-47295.exe   \
1386         loader.exe      \
1387         pinvoke2.exe    \
1388         generic-type-builder.2.exe      \
1389         dynamic-generic-size.exe        \
1390         cominterop.exe  \
1391         dynamic-method-access.2.exe     \
1392         dynamic-method-finalize.2.exe   \
1393         dynamic-method-stack-traces.exe \
1394         generic_type_definition.2.exe   \
1395         bug-333798-tb.2.exe     \
1396         bug-335131.2.exe        \
1397         bug-322722_patch_bx.2.exe       \
1398         bug-322722_dyn_method_throw.2.exe       \
1399         bug-389886-2.exe        \
1400         bug-349190.2.exe        \
1401         bug-389886-sre-generic-interface-instances.exe  \
1402         custom-modifiers-inheritance.exe        \
1403         bug-462592.exe  \
1404         bug-575941.exe  \
1405         bug-389886-3.exe        \
1406         constant-division.exe   \
1407         dynamic-method-resurrection.exe \
1408         assembly_append_ordering.exe \
1409         assemblyresolve_event5.exe      \
1410         dynamic-method-delegate.exe \
1411         dynamic-method-churn.exe \
1412         bug-666008.exe \
1413         bug-685908.exe
1415 # Test which needs System.Web support
1416 PROFILE_DISABLED_TESTS += \
1417         bug-80307.exe
1419 # Tests which needs named Mutex support
1420 PROFILE_DISABLED_TESTS += \
1421         namedmutex-destroy-race.exe
1423 # ThreadAbortException doesn't have necessary field for this test
1424 PROFILE_DISABLED_TESTS += \
1425         thread6.exe
1427 # can't AOT the TestingReferenceAssembly.dll which is a dependency
1428 # of reference-loader.exe because it contains the [ReferenceAssemblyAttribute]
1429 # and the runtime errors out with "File does not contain a valid CIL image."
1430 PROFILE_DISABLED_TESTS += \
1431         reference-loader.exe
1433 # Tests which have no way of finding AOT images because they use Assembly.Load(byte[])
1434 PROFILE_DISABLED_TESTS += \
1435         assembly-load-bytes.exe \
1436         assembly-load-bytes-bindingredirect.exe
1438 # Tests which require AOT of a multi-netmodule assemblies
1439 PROFILE_DISABLED_TESTS += test-multi-netmodule-4-exe.exe
1441 # Tests which depend on a case-insensitive filesystem when using AOT
1442 if HOST_DARWIN
1443 else
1444 PROFILE_DISABLED_TESTS += \
1445         assembly-loadfrom-simplename.exe
1446 endif
1448 # constraints-load.il: 
1449 # Failed to load method 0x6000007 from '..../mono/tests/constraints-load.exe' due to 
1450 # Could not resolve type with token 01000002 assembly:mscorlib, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089 type:System.BrokenIComparable`1 member:<none>.
1451 PROFILE_DISABLED_TESTS += \
1452         constraints-load.exe \
1453         calli_sig_check.exe \
1454         bug-515884.exe
1456 PROFILE_DISABLED_TESTS += \
1457         generic-type-builder.2.exe
1459 PROFILE_DISABLED_TESTS += \
1460         sgen-domain-unload.exe  \
1461         sgen-domain-unload-2.exe
1463 PROFILE_DISABLED_TESTS += \
1464         appdomain-loader.exe \
1465         assemblyresolve_event3.exe \
1466         appdomain-serialize-exception.exe
1468 PROFILE_DISABLED_TESTS += \
1469         delegate15.exe
1471 # https://bugzilla.xamarin.com/show_bug.cgi?id=60973
1472 PROFILE_DISABLED_TESTS += \
1473         weak-fields.exe
1475 # Some, probably all, of these tests use gsharedvt.
1476 # gsharedvt is very much at odds with tailcall, and they fail as a result.
1477 # RegularAOT and HybridAOT should be ok.
1479 # The tests might be tweakable but then they will less resemble real world code.
1481 # FullAOT should probably be changed to intersect tailcall signatures called
1482 # and all generic signatures provided, and compile more functions.
1483 # As well, gsharedvt can probably be a tailcall sometimes, like if parameters
1484 # fit in registers and there is no out conversion. Maybe it already does that.
1486 # gsharedvt should be viable when only wrapping "in" but not "out",
1487 # as long as "in" does not expand parameter stack size, which it should never do.
1488 if MONO_ARCH_GSHAREDVT_SUPPORTED
1489 PROFILE_DISABLED_TESTS += tailcall-interface-conservestack.exe
1490 PROFILE_DISABLED_TESTS += tailcall/fsharp-deeptail.exe
1491 PROFILE_DISABLED_TESTS += tailcall/interface-conservestack/20.exe
1492 PROFILE_DISABLED_TESTS += tailcall/interface-conservestack/26.exe
1493 PROFILE_DISABLED_TESTS += tailcall/interface-conservestack/31.exe
1494 PROFILE_DISABLED_TESTS += tailcall/interface-conservestack/33.exe
1495 PROFILE_DISABLED_TESTS += tailcall/interface-conservestack/34.exe
1496 PROFILE_DISABLED_TESTS += tailcall/interface-conservestack/35.exe
1497 PROFILE_DISABLED_TESTS += tailcall/interface-conservestack/36.exe
1498 PROFILE_DISABLED_TESTS += tailcall/interface-conservestack/37.exe
1499 PROFILE_DISABLED_TESTS += tailcall/interface-conservestack/41.exe
1500 PROFILE_DISABLED_TESTS += tailcall/interface-conservestack/43.exe
1501 PROFILE_DISABLED_TESTS += tailcall/interface-conservestack/44.exe
1502 PROFILE_DISABLED_TESTS += tailcall/interface-conservestack/45.exe
1503 PROFILE_DISABLED_TESTS += tailcall/interface-conservestack/46.exe
1504 PROFILE_DISABLED_TESTS += tailcall/interface-conservestack/47.exe
1505 PROFILE_DISABLED_TESTS += tailcall/interface-conservestack/51.exe
1506 PROFILE_DISABLED_TESTS += tailcall/fsharp-deeptail/TailCallLoopGenericClassAndMethodAbstractInterface_string_.Method1_int_.exe
1507 PROFILE_DISABLED_TESTS += tailcall/fsharp-deeptail/TailCallLoopGenericClassAndMethodAbstractInterface_int_.Method1_byte_.exe
1508 PROFILE_DISABLED_TESTS += tailcall/fsharp-deeptail/TailCallLoopGenericClassAndMethodAbstractInterface_DateTime_.Method1_DateTime_.exe
1509 PROFILE_DISABLED_TESTS += tailcall/fsharp-deeptail/TailCallLoopGenericClassAndMethodAbstractClass_string_.Method1_int_.exe
1510 PROFILE_DISABLED_TESTS += tailcall/fsharp-deeptail/TailCallLoopGenericClassAndMethodAbstractInterface_string_.Method1_DateTime_.exe
1511 PROFILE_DISABLED_TESTS += tailcall/fsharp-deeptail/TailCallLoopGenericClassAndMethodAbstractClass_byte_.Method1_int_.exe
1512 PROFILE_DISABLED_TESTS += tailcall/fsharp-deeptail/TailCallLoopGenericClassAndMethodAbstractInterface_byte_.Method1_byte_.exe
1513 PROFILE_DISABLED_TESTS += tailcall/fsharp-deeptail/TailCallLoopGenericClassAndMethodAbstractClass_byte_.Method1_string_.exe
1514 PROFILE_DISABLED_TESTS += tailcall/fsharp-deeptail/TailCallLoopGenericClassAndMethodAbstractClass_byte_.Method1_byte_.exe
1515 PROFILE_DISABLED_TESTS += tailcall/fsharp-deeptail/TailCallLoopGenericClassAndMethodAbstractClass_int_.Method1_string_.exe
1516 PROFILE_DISABLED_TESTS += tailcall/fsharp-deeptail/TailCallLoopGenericClassAndMethodAbstractInterface_byte_.Method1_int_.exe
1517 PROFILE_DISABLED_TESTS += tailcall/fsharp-deeptail/TailCallLoopGenericClassAndMethodAbstractInterface_string_.Method1_byte_.exe
1518 PROFILE_DISABLED_TESTS += tailcall/fsharp-deeptail/TailCallLoopGenericClassAndMethodAbstractClass_byte_.Method1_DateTime_.exe
1519 PROFILE_DISABLED_TESTS += tailcall/fsharp-deeptail/TailCallLoopGenericClassAndMethodAbstractClass_DateTime_.Method1_byte_.exe
1520 PROFILE_DISABLED_TESTS += tailcall/fsharp-deeptail/TailCallLoopGenericClassAndMethodAbstractInterface_int_.Method1_int_.exe
1521 PROFILE_DISABLED_TESTS += tailcall/fsharp-deeptail/TailCallLoopGenericClassAndMethodAbstractInterface_DateTime_.Method1_string_.exe
1522 PROFILE_DISABLED_TESTS += tailcall/fsharp-deeptail/TailCallLoopGenericClassAndMethodAbstractClass_int_.Method1_byte_.exe
1523 PROFILE_DISABLED_TESTS += tailcall/fsharp-deeptail/TailCallLoopGenericClassAndMethodAbstractInterface_byte_.Method1_string_.exe
1524 PROFILE_DISABLED_TESTS += tailcall/fsharp-deeptail/TailCallLoopGenericClassAndMethodAbstractInterface_DateTime_.Method1_byte_.exe
1525 PROFILE_DISABLED_TESTS += tailcall/fsharp-deeptail/TailCallLoopGenericClassAndMethodAbstractClass_int_.Method1_DateTime_.exe
1526 PROFILE_DISABLED_TESTS += tailcall/fsharp-deeptail/TailCallLoopGenericClassAndMethodAbstractInterface_DateTime_.Method1_int_.exe
1527 PROFILE_DISABLED_TESTS += tailcall/fsharp-deeptail/TailCallLoopGenericClassAndMethodAbstractInterface_int_.Method1_DateTime_.exe
1528 PROFILE_DISABLED_TESTS += tailcall/fsharp-deeptail/TailCallLoopGenericClassAndMethodAbstractClass_string_.Method1_DateTime_.exe
1529 PROFILE_DISABLED_TESTS += tailcall/fsharp-deeptail/TailCallLoopGenericClassAndMethodAbstractClass_string_.Method1_byte_.exe
1530 PROFILE_DISABLED_TESTS += tailcall/fsharp-deeptail/TailCallLoopGenericClassAndMethodAbstractInterface_byte_.Method1_DateTime_.exe
1531 PROFILE_DISABLED_TESTS += tailcall/fsharp-deeptail/TailCallLoopGenericClassAndMethodAbstractClass_DateTime_.Method1_int_.exe
1532 PROFILE_DISABLED_TESTS += tailcall/fsharp-deeptail/TailCallLoopGenericClassAndMethodAbstractClass_DateTime_.Method1_DateTime_.exe
1533 PROFILE_DISABLED_TESTS += tailcall/fsharp-deeptail/TailCallLoopGenericClassAndMethodAbstractClass_int_.Method1_int_.exe
1534 PROFILE_DISABLED_TESTS += tailcall/fsharp-deeptail/TailCallLoopGenericClassAndMethodAbstractClass_DateTime_.Method1_string_.exe
1535 PROFILE_DISABLED_TESTS += tailcall/fsharp-deeptail/TailCallLoopGenericClassAndMethodAbstractInterface_int_.Method1_string_.exe
1537 endif # MONO_ARCH_GSHAREDVT_SUPPORTED
1539 if ARM64
1540 # Times out on ARM64.
1541 # https://github.com/mono/mono/issues/10783
1542 # https://jenkins.mono-project.com/job/test-mono-pull-request-arm64-fullaot+llvm/486/parsed_console/log.html
1543 # https://jenkins.mono-project.com/job/test-mono-pull-request-arm64-fullaot+llvm/471/parsed_console/log.html
1544 PLATFORM_DISABLED_TESTS += tailcall/2.exe
1545 endif # ARM64 FullAOT
1547 endif # FULL_AOT_TESTS
1549 if HYBRID_AOT_TESTS
1550 PROFILE_DISABLED_TESTS += \
1551         bug-80307.exe \
1552         namedmutex-destroy-race.exe
1553 endif
1555 if FULL_AOT_INTERP_TESTS
1557 # AppDomain tests
1558 PROFILE_DISABLED_TESTS += \
1559         appdomain1.exe \
1560         appdomain2.exe \
1561         appdomain-async-invoke.exe \
1562         appdomain.exe \
1563         appdomain-exit.exe \
1564         appdomain-loader.exe \
1565         appdomain-marshalbyref-assemblyload.exe \
1566         appdomain-serialize-exception.exe \
1567         appdomain-thread-abort.exe \
1568         appdomain-threadpool-unload.exe \
1569         appdomain-unload-asmload.exe \
1570         appdomain-unload-callback.exe \
1571         appdomain-unload-doesnot-raise-pending-events.exe \
1572         appdomain-unload.exe \
1573         assemblyresolve_event6.exe \
1574         bug-335131.2.exe \
1575         bug-415577.exe \
1576         cross-domain.exe \
1577         dataslot.exe \
1578         delegate9.exe \
1579         domain-stress.exe \
1580         generic-marshalbyref.2.exe \
1581         generic-unloading.2.exe \
1582         generic-xdomain.2.exe \
1583         hostname.exe \
1584         marshal-valuetypes.exe \
1585         monitor.exe \
1586         pinvoke3.exe \
1587         remoting4.exe \
1588         stackframes-async.2.exe \
1589         suspend-stress-test.exe \
1590         thread6.exe \
1591         threadpool-exceptions7.exe \
1592         unhandled-exception-7.exe \
1593         unhandled-exception-test-case.2.exe \
1594         unload-appdomain-on-shutdown.exe \
1595         xdomain-threads.exe
1597 # Tests which load assemblies which are not in the profile
1598 PROFILE_DISABLED_TESTS += \
1599         assembly-load-remap.exe
1601 # Tests which needs named Mutex support
1602 PROFILE_DISABLED_TESTS += \
1603         namedmutex-destroy-race.exe
1605 # Test which needs System.Web support
1606 PROFILE_DISABLED_TESTS += \
1607         bug-80307.exe
1609 PROFILE_DISABLED_TESTS += \
1610         transparentproxy.exe
1612 # Tests depending on assembly load order. Under Full AOT using WinAOT
1613 # profile, console is still available, meaning that more assemblies (I18N)
1614 # will be loaded when AOT runtime initial loads mscorlib.
1615 if HOST_WIN32
1616 PROFILE_DISABLED_TESTS += \
1617         assembly_append_ordering.exe
1618 endif
1619 endif
1621 REMOTING_DISABLED_TESTS = \
1622         async-exc-compilation.exe \
1623         bug-544446.exe \
1624         context-static.exe \
1625         remoting1.exe \
1626         remoting2.exe \
1627         remoting3.exe \
1628         remoting5.exe \
1629         nullable_boxing.2.exe
1631 if FULL_AOT_TESTS
1632 PROFILE_DISABLED_TESTS += $(REMOTING_DISABLED_TESTS)
1633 endif
1635 if HYBRID_AOT_TESTS
1636 PROFILE_DISABLED_TESTS += $(REMOTING_DISABLED_TESTS)
1637 endif
1639 if FULL_AOT_INTERP_TESTS
1640 PROFILE_DISABLED_TESTS += $(REMOTING_DISABLED_TESTS)
1641 endif
1643 AOT_DISABLED_TESTS= \
1644         constraints-load.exe \
1645         calli_sig_check.exe
1647 CI_DISABLED_TESTS = \
1648         main-returns-background-resetabort.exe \
1649         main-returns-background-abort-resetabort.exe    \
1650         assemblyresolve_event3.exe \
1651         finally_guard.exe \
1652         generic-xdomain.2.exe
1654 # failing tests which we temporarily disable for PRs
1655 # so they don't interfere with other people's work
1656 CI_PR_DISABLED_TESTS =
1658 # FIXME Hybrid Suspend - see https://github.com/mono/mono/issues/9959
1659 # CI_PR_DISABLED_TESTS += sgen-new-threads-collect.exe
1661 # https://github.com/mono/mono/issues/8997
1662 CI_PR_DISABLED_TESTS += finalizer-thread.exe
1664 # https://github.com/mono/mono/issues/11392
1665 CI_PR_DISABLED_TESTS += appdomain-threadpool-unload.exe
1667 # https://github.com/mono/mono/issues/11415
1668 CI_PR_DISABLED_TESTS += finalizer-abort.exe
1670 # https://github.com/mono/mono/issues/11420
1671 CI_PR_DISABLED_TESTS += process-stress-2.exe
1673 # https://github.com/mono/mono/issues/11417
1674 CI_PR_DISABLED_TESTS += process-stress-3.exe
1676 if HOST_WIN32
1677 # https://github.com/mono/mono/issues/12839
1678 CI_PR_DISABLED_TESTS += block_guard_restore_aligment_on_exit.exe
1679 endif
1681 # appdomain-threadpool-unload.exe creates 100 appdomains, takes too long with llvm
1682 LLVM_DISABLED_TESTS = \
1683         finally_block_ending_in_dead_bb.exe \
1684         appdomain-threadpool-unload.exe
1686 # https://github.com/mono/mono/issues/6490
1687 LLVM_DISABLED_TESTS += \
1688         weak-fields.exe
1690 LLVM = $(filter --llvm, $(MONO_ENV_OPTIONS) $(AOT_BUILD_FLAGS))
1692 # The two finalizer tests only work under sgen
1693 # gc-altstack.exe fails under boehm because it has no support for altstack
1694 # bug-459094.exe creates an extremely deep directory tree
1695 # delegate-invoke.exe depends on 929c6bc9b6d76a273f251e6f5dfacac36e9c38bd which was
1696 # reverted.
1697 # bug-Xamarin-5278.exe got broken by 5d26590e79da139a284459299aee95c25f4cd835
1698 # appdomain-thread-abort.exe: https://bugzilla.xamarin.com/show_bug.cgi?id=47054
1699 # abort-try-holes.exe is flaky due to unwinding failure to the finally block when aborting
1700 # appdomain-marshalbyref-assemblyload.exe: https://bugzilla.xamarin.com/show_bug.cgi?id=49308
1701 # threads-init.exe: runs out of system threads
1702 # dim-constrainedcall.exe: fails on dontnet as well (https://github.com/dotnet/coreclr/issues/15353)
1704 # tailcall-rgctxb.exe
1705 # tailcall-member-function-in-valuetype.exe
1706 #       Any time we have a byref/out parameter, be it
1707 #       an integer, or valuetype-this, we pessimistically
1708 #       will never tailcall.
1710 #       These two cases have valuetype-this.
1711 #       tailcall-rgctxb.exe strives for additional coverage
1712 #       related to generic context, but both tests suffer from
1713 #       the same problem.
1715 #       I suggest we insert range checks.
1716 #       If all parameters are outside the frame,
1717 #       do a tailcall. If any are not, regular call.
1719 #       It'll be a little bigger and have a slowdown,
1720 #       and a speedup (stack locality speeds things up),
1721 #       and enable code that does not work otherwise.
1723 #       Again, tailcall is not just an optimization.
1724 #       It lets code process large data within small stack.
1725 #       If it was just an optimization, desktop CLR would not
1726 #       go so far out of their way to implement it.
1728 # Some of the tailcall tests pass native pointers to locals.
1729 #   Mono does not yet allow that.
1730 #   tailcall "i" is either calli, or integer instead of pointer, and the latter sidesteps the matter.
1731 KNOWN_FAILING_TESTS = \
1732         delegate-async-exception.exe    \
1733         bug-348522.2.exe        \
1734         bug-459094.exe \
1735         delegate-invoke.exe \
1736         bug-Xamarin-5278.exe \
1737         appdomain-marshalbyref-assemblyload.exe \
1738         abort-try-holes.exe \
1739         threads-init.exe \
1740         gptail1.exe \
1741         itaili1.exe \
1742         sirtail1.exe \
1743         srtail1.exe \
1744         stail1.exe \
1745         tail1.exe \
1746         taili1.exe \
1747         vtail1.exe \
1748         tailcall-member-function-in-valuetype.exe \
1749         tailcall-rgctxb.exe
1751 DISABLED_TESTS = \
1752         $(KNOWN_FAILING_TESTS) \
1753         $(PLATFORM_DISABLED_TESTS) \
1754         $(PROFILE_DISABLED_TESTS) \
1755         $(if $(AOT),$(AOT_DISABLED_TESTS)) \
1756         $(if $(CI),$(CI_DISABLED_TESTS)) \
1757         $(if $(CI_PR),$(CI_PR_DISABLED_TESTS)) \
1758         $(if $(LLVM),$(LLVM_DISABLED_TESTS))
1760 # Interpreter does not currently implement tailcall.
1761 # Disable all tailcall tests.
1762 INTERP_DISABLED_TESTS = $(DISABLED_TESTS) \
1763         gptail1.exe \
1764         itail1.exe \
1765         itaili1.exe \
1766         ivtail1.exe \
1767         sitail1.exe \
1768         sirtail1.exe \
1769         srtail1.exe \
1770         stail1.exe \
1771         tail1.exe \
1772         taili1.exe \
1773         vtail1.exe \
1774         tailcall-generic-cast-conservestack-il.exe \
1775         tailcall-interface-conservestack.exe \
1776         tailcall-mrgctx.exe \
1777         tailcall-rgctxa.exe \
1778         tailcall-rgctxb.exe \
1779         tailcall-rgctxb-static.exe \
1780         tailcall-virt.exe \
1781         tailcall-return-valuetype.exe \
1782         tailcall/fsharp-deeptail.exe \
1783         tailcall/2.exe \
1784         tailcall/3.exe \
1785         tailcall/4.exe \
1786         tailcall/8273.exe \
1787         $(TAILCALL_DISABLED_TESTS_RUN) \
1788         bug-60843.exe
1789 # FIXME
1790 INTERP_DISABLED_TESTS += tailcall/fsharp-deeptail/Seq.filter-length1.exe
1791 INTERP_DISABLED_TESTS += tailcall/fsharp-deeptail/Seq.filter-length2.exe
1792 INTERP_DISABLED_TESTS += tailcall/fsharp-deeptail/Seq.filter-length3.exe
1793 INTERP_DISABLED_TESTS += tailcall/fsharp-deeptail/StaticTailCallLoop_DateTime_.exe
1794 INTERP_DISABLED_TESTS += tailcall/fsharp-deeptail/StaticTailCallLoop_int_.exe
1795 INTERP_DISABLED_TESTS += tailcall/fsharp-deeptail/TailCallLoopGenericClassAndMethodAbstractClass_DateTime_.Method1_DateTime_.exe
1796 INTERP_DISABLED_TESTS += tailcall/fsharp-deeptail/TailCallLoopGenericClassAndMethodAbstractClass_DateTime_.Method1_byte_.exe
1797 INTERP_DISABLED_TESTS += tailcall/fsharp-deeptail/TailCallLoopGenericClassAndMethodAbstractClass_DateTime_.Method1_int_.exe
1798 INTERP_DISABLED_TESTS += tailcall/fsharp-deeptail/TailCallLoopGenericClassAndMethodAbstractClass_DateTime_.Method1_string_.exe
1799 INTERP_DISABLED_TESTS += tailcall/fsharp-deeptail/TailCallLoopGenericClassAndMethodAbstractClass_DatstringeTime_.Method1_string_.exe
1800 INTERP_DISABLED_TESTS += tailcall/fsharp-deeptail/TailCallLoopGenericClassAndMethodAbstractClass_byte_.Method1_DateTime_.exe
1801 INTERP_DISABLED_TESTS += tailcall/fsharp-deeptail/TailCallLoopGenericClassAndMethodAbstractClass_byte_.Method1_byte_.exe
1802 INTERP_DISABLED_TESTS += tailcall/fsharp-deeptail/TailCallLoopGenericClassAndMethodAbstractClass_byte_.Method1_int_.exe
1803 INTERP_DISABLED_TESTS += tailcall/fsharp-deeptail/TailCallLoopGenericClassAndMethodAbstractClass_byte_.Method1_string_.exe
1804 INTERP_DISABLED_TESTS += tailcall/fsharp-deeptail/TailCallLoopGenericClassAndMethodAbstractClass_int_.Method1_DateTime_.exe
1805 INTERP_DISABLED_TESTS += tailcall/fsharp-deeptail/TailCallLoopGenericClassAndMethodAbstractClass_int_.Method1_byte_.exe
1806 INTERP_DISABLED_TESTS += tailcall/fsharp-deeptail/TailCallLoopGenericClassAndMethodAbstractClass_int_.Method1_int_.exe
1807 INTERP_DISABLED_TESTS += tailcall/fsharp-deeptail/TailCallLoopGenericClassAndMethodAbstractClass_int_.Method1_string_.exe
1808 INTERP_DISABLED_TESTS += tailcall/fsharp-deeptail/TailCallLoopGenericClassAndMethodAbstractClass_string_.Method1_DateTime_.exe
1809 INTERP_DISABLED_TESTS += tailcall/fsharp-deeptail/TailCallLoopGenericClassAndMethodAbstractClass_string_.Method1_byte_.exe
1810 INTERP_DISABLED_TESTS += tailcall/fsharp-deeptail/TailCallLoopGenericClassAndMethodAbstractClass_string_.Method1_int_.exe
1811 INTERP_DISABLED_TESTS += tailcall/fsharp-deeptail/TailCallLoopGenericClassAndMethodAbstractInterface_DateTime_.Method1_DateTime_.exe
1812 INTERP_DISABLED_TESTS += tailcall/fsharp-deeptail/TailCallLoopGenericClassAndMethodAbstractInterface_DateTime_.Method1_byte_.exe
1813 INTERP_DISABLED_TESTS += tailcall/fsharp-deeptail/TailCallLoopGenericClassAndMethodAbstractInterface_DateTime_.Method1_int_.exe
1814 INTERP_DISABLED_TESTS += tailcall/fsharp-deeptail/TailCallLoopGenericClassAndMethodAbstractInterface_DateTime_.Method1_string_.exe
1815 INTERP_DISABLED_TESTS += tailcall/fsharp-deeptail/TailCallLoopGenericClassAndMethodAbstractInterface_DatstringeTime_.Method1_string_.exe
1816 INTERP_DISABLED_TESTS += tailcall/fsharp-deeptail/TailCallLoopGenericClassAndMethodAbstractInterface_byte_.Method1_DateTime_.exe
1817 INTERP_DISABLED_TESTS += tailcall/fsharp-deeptail/TailCallLoopGenericClassAndMethodAbstractInterface_byte_.Method1_byte_.exe
1818 INTERP_DISABLED_TESTS += tailcall/fsharp-deeptail/TailCallLoopGenericClassAndMethodAbstractInterface_byte_.Method1_int_.exe
1819 INTERP_DISABLED_TESTS += tailcall/fsharp-deeptail/TailCallLoopGenericClassAndMethodAbstractInterface_byte_.Method1_string_.exe
1820 INTERP_DISABLED_TESTS += tailcall/fsharp-deeptail/TailCallLoopGenericClassAndMethodAbstractInterface_int_.Method1_DateTime_.exe
1821 INTERP_DISABLED_TESTS += tailcall/fsharp-deeptail/TailCallLoopGenericClassAndMethodAbstractInterface_int_.Method1_byte_.exe
1822 INTERP_DISABLED_TESTS += tailcall/fsharp-deeptail/TailCallLoopGenericClassAndMethodAbstractInterface_int_.Method1_int_.exe
1823 INTERP_DISABLED_TESTS += tailcall/fsharp-deeptail/TailCallLoopGenericClassAndMethodAbstractInterface_int_.Method1_string_.exe
1824 INTERP_DISABLED_TESTS += tailcall/fsharp-deeptail/TailCallLoopGenericClassAndMethodAbstractInterface_string_.Method1_DateTime_.exe
1825 INTERP_DISABLED_TESTS += tailcall/fsharp-deeptail/TailCallLoopGenericClassAndMethodAbstractInterface_string_.Method1_byte_.exe
1826 INTERP_DISABLED_TESTS += tailcall/fsharp-deeptail/TailCallLoopGenericClassAndMethodAbstractInterface_string_.Method1_int_.exe
1827 INTERP_DISABLED_TESTS += tailcall/fsharp-deeptail/TailCallLoopGenericClassAndMethod_DateTime_.Method1_DateTime_.exe
1828 INTERP_DISABLED_TESTS += tailcall/fsharp-deeptail/TailCallLoopGenericClassAndMethod_DateTime_.Method1_byte_.exe
1829 INTERP_DISABLED_TESTS += tailcall/fsharp-deeptail/TailCallLoopGenericClassAndMethod_DateTime_.Method1_int_.exe
1830 INTERP_DISABLED_TESTS += tailcall/fsharp-deeptail/TailCallLoopGenericClassAndMethod_DateTime_.Method1_string_.exe
1831 INTERP_DISABLED_TESTS += tailcall/fsharp-deeptail/TailCallLoopGenericClassAndMethod_byte_.Method1_DateTime_.exe
1832 INTERP_DISABLED_TESTS += tailcall/fsharp-deeptail/TailCallLoopGenericClassAndMethod_byte_.Method1_byte_.exe
1833 INTERP_DISABLED_TESTS += tailcall/fsharp-deeptail/TailCallLoopGenericClassAndMethod_byte_.Method1_int_.exe
1834 INTERP_DISABLED_TESTS += tailcall/fsharp-deeptail/TailCallLoopGenericClassAndMethod_byte_.Method1_string_.exe
1835 INTERP_DISABLED_TESTS += tailcall/fsharp-deeptail/TailCallLoopGenericClassAndMethod_int_.Method1_DateTime_.exe
1836 INTERP_DISABLED_TESTS += tailcall/fsharp-deeptail/TailCallLoopGenericClassAndMethod_int_.Method1_byte_.exe
1837 INTERP_DISABLED_TESTS += tailcall/fsharp-deeptail/TailCallLoopGenericClassAndMethod_int_.Method1_int_.exe
1838 INTERP_DISABLED_TESTS += tailcall/fsharp-deeptail/TailCallLoopGenericClassAndMethod_int_.Method1_string_.exe
1839 INTERP_DISABLED_TESTS += tailcall/fsharp-deeptail/TailCallLoopGenericClassAndMethod_string_.Method1_DateTime_.exe
1840 INTERP_DISABLED_TESTS += tailcall/fsharp-deeptail/TailCallLoopGenericClassAndMethod_string_.Method1_byte_.exe
1841 INTERP_DISABLED_TESTS += tailcall/fsharp-deeptail/TailCallLoopGenericClassAndMethod_string_.Method1_int_.exe
1842 INTERP_DISABLED_TESTS += tailcall/fsharp-deeptail/TailCallLoopGenericClassAndMethod_string_.Method1_string_.exe
1843 INTERP_DISABLED_TESTS += tailcall/fsharp-deeptail/TailCallLoopGenericClass_DateTime_.exe
1844 INTERP_DISABLED_TESTS += tailcall/fsharp-deeptail/TailCallLoopGenericClass_int_.exe
1845 INTERP_DISABLED_TESTS += tailcall/fsharp-deeptail/TailCallLoopGenericClass_string_.exe
1846 INTERP_DISABLED_TESTS += tailcall/fsharp-deeptail/TailCallLoop_DateTime_.exe
1847 INTERP_DISABLED_TESTS += tailcall/fsharp-deeptail/TailCallLoop_int_.exe
1848 INTERP_DISABLED_TESTS += tailcall/fsharp-deeptail/mutualTail1IsEven.exe
1849 INTERP_DISABLED_TESTS += tailcall/fsharp-deeptail/mutualTail1IsOdd.exe
1850 INTERP_DISABLED_TESTS += tailcall/fsharp-deeptail/simpleTail1.exe
1851 INTERP_DISABLED_TESTS += tailcall/fsharp-deeptail/simpleTail2.exe
1853 INTERP_DISABLED_TESTS += tailcall/interface-conservestack/1.exe
1854 INTERP_DISABLED_TESTS += tailcall/interface-conservestack/10.exe
1855 INTERP_DISABLED_TESTS += tailcall/interface-conservestack/11.exe
1856 INTERP_DISABLED_TESTS += tailcall/interface-conservestack/12.exe
1857 INTERP_DISABLED_TESTS += tailcall/interface-conservestack/13.exe
1858 INTERP_DISABLED_TESTS += tailcall/interface-conservestack/14.exe
1859 INTERP_DISABLED_TESTS += tailcall/interface-conservestack/15.exe
1860 INTERP_DISABLED_TESTS += tailcall/interface-conservestack/16.exe
1861 INTERP_DISABLED_TESTS += tailcall/interface-conservestack/17.exe
1862 INTERP_DISABLED_TESTS += tailcall/interface-conservestack/18.exe
1863 INTERP_DISABLED_TESTS += tailcall/interface-conservestack/19.exe
1864 INTERP_DISABLED_TESTS += tailcall/interface-conservestack/2.exe
1865 INTERP_DISABLED_TESTS += tailcall/interface-conservestack/20.exe
1866 INTERP_DISABLED_TESTS += tailcall/interface-conservestack/21.exe
1867 INTERP_DISABLED_TESTS += tailcall/interface-conservestack/22.exe
1868 INTERP_DISABLED_TESTS += tailcall/interface-conservestack/23.exe
1869 INTERP_DISABLED_TESTS += tailcall/interface-conservestack/24.exe
1870 INTERP_DISABLED_TESTS += tailcall/interface-conservestack/25.exe
1871 INTERP_DISABLED_TESTS += tailcall/interface-conservestack/26.exe
1872 INTERP_DISABLED_TESTS += tailcall/interface-conservestack/27.exe
1873 INTERP_DISABLED_TESTS += tailcall/interface-conservestack/28.exe
1874 INTERP_DISABLED_TESTS += tailcall/interface-conservestack/29.exe
1875 INTERP_DISABLED_TESTS += tailcall/interface-conservestack/3.exe
1876 INTERP_DISABLED_TESTS += tailcall/interface-conservestack/30.exe
1877 INTERP_DISABLED_TESTS += tailcall/interface-conservestack/31.exe
1878 INTERP_DISABLED_TESTS += tailcall/interface-conservestack/32.exe
1879 INTERP_DISABLED_TESTS += tailcall/interface-conservestack/33.exe
1880 INTERP_DISABLED_TESTS += tailcall/interface-conservestack/34.exe
1881 INTERP_DISABLED_TESTS += tailcall/interface-conservestack/35.exe
1882 INTERP_DISABLED_TESTS += tailcall/interface-conservestack/36.exe
1883 INTERP_DISABLED_TESTS += tailcall/interface-conservestack/37.exe
1884 INTERP_DISABLED_TESTS += tailcall/interface-conservestack/38.exe
1885 INTERP_DISABLED_TESTS += tailcall/interface-conservestack/39.exe
1886 INTERP_DISABLED_TESTS += tailcall/interface-conservestack/4.exe
1887 INTERP_DISABLED_TESTS += tailcall/interface-conservestack/40.exe
1888 INTERP_DISABLED_TESTS += tailcall/interface-conservestack/41.exe
1889 INTERP_DISABLED_TESTS += tailcall/interface-conservestack/42.exe
1890 INTERP_DISABLED_TESTS += tailcall/interface-conservestack/43.exe
1891 INTERP_DISABLED_TESTS += tailcall/interface-conservestack/44.exe
1892 INTERP_DISABLED_TESTS += tailcall/interface-conservestack/45.exe
1893 INTERP_DISABLED_TESTS += tailcall/interface-conservestack/46.exe
1894 INTERP_DISABLED_TESTS += tailcall/interface-conservestack/47.exe
1895 INTERP_DISABLED_TESTS += tailcall/interface-conservestack/48.exe
1896 INTERP_DISABLED_TESTS += tailcall/interface-conservestack/49.exe
1897 INTERP_DISABLED_TESTS += tailcall/interface-conservestack/5.exe
1898 INTERP_DISABLED_TESTS += tailcall/interface-conservestack/50.exe
1899 INTERP_DISABLED_TESTS += tailcall/interface-conservestack/51.exe
1900 INTERP_DISABLED_TESTS += tailcall/interface-conservestack/52.exe
1901 INTERP_DISABLED_TESTS += tailcall/interface-conservestack/53.exe
1902 INTERP_DISABLED_TESTS += tailcall/interface-conservestack/6.exe
1903 INTERP_DISABLED_TESTS += tailcall/interface-conservestack/7.exe
1904 INTERP_DISABLED_TESTS += tailcall/interface-conservestack/8.exe
1905 INTERP_DISABLED_TESTS += tailcall/interface-conservestack/9.exe
1907 # expected InvalidProgramException not thrown
1908 INTERP_DISABLED_TESTS += calli_sig_check.exe
1911 # bug-48015.exe: be careful when re-enabling, it happens that it returns with exit code 0, but doesn't actually execute the test.
1912 # bug-60862.exe: missing support to map IP->method; only works on platforms with altstack support.
1913 # 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
1915 if ARM
1916 INTERP_DISABLED_TESTS += \
1917         appdomain-unload-callback.exe \
1918         appdomain-unload.exe \
1919         assemblyresolve_event6.exe \
1920         async-with-cb-throws.exe \
1921         block_guard_restore_aligment_on_exit.exe \
1922         bug-323114.exe \
1923         bug-335131.2.exe \
1924         bug-415577.exe \
1925         bug-45841-fpstack-exceptions.exe \
1926         bug-48015.exe \
1927         bug-60862.exe \
1928         bug-80307.exe \
1929         bug-80392.2.exe \
1930         bug445361.exe \
1931         calliGenericTest.exe \
1932         cominterop.exe \
1933         context-static.exe \
1934         delegate-async-exit.exe \
1935         delegate-delegate-exit.exe \
1936         delegate-exit.exe \
1937         delegate1.exe \
1938         delegate3.exe \
1939         delegate5.exe \
1940         delegate8.exe \
1941         delegate9.exe \
1942         dim-diamondshape.exe \
1943         dynamic-method-stack-traces.exe \
1944         even-odd.exe \
1945         exception18.exe \
1946         field-access.exe \
1947         finalizer-exception.exe \
1948         handleref.exe \
1949         monitor-abort.exe \
1950         nullable_boxing.2.exe \
1951         pinvoke2.exe \
1952         pinvoke3.exe \
1953         remoting2.exe \
1954         remoting3.exe \
1955         safehandle.2.exe \
1956         stackframes-async.2.exe \
1957         static-constructor.exe \
1958         threadpool-exceptions2.exe \
1959         threadpool-exceptions3.exe \
1960         threadpool-exceptions4.exe \
1961         threadpool-exceptions5.exe \
1962         threadpool-exceptions6.exe \
1963         thunks.exe \
1964         typeload-unaligned.exe \
1965         vararg.exe \
1966         vararg2.exe \
1967         vararg3.exe
1968 endif
1970 if ARM64
1971 INTERP_DISABLED_TESTS += \
1972         bug-48015.exe \
1973         bug-80307.exe \
1974         dim-diamondshape.exe \
1975         pinvoke3.exe
1976 endif
1978 if AMD64
1979 INTERP_DISABLED_TESTS += \
1980         assemblyresolve_event6.exe \
1981         bug-48015.exe \
1982         bug-60862.exe \
1983         cominterop.exe \
1984         dim-diamondshape.exe \
1985         pinvoke3.exe
1986 endif
1988 TESTS_CS=$(filter-out $(DISABLED_TESTS),$(TESTS_CS_SRC:.cs=.exe))
1989 TESTS_IL=$(filter-out $(DISABLED_TESTS),$(TESTS_IL_SRC:.il=.exe))
1990 TESTS_BENCH=$(filter-out $(DISABLED_TESTS),$(TESTS_BENCH_SRC:.cs=.exe))
1991 TESTS_STRESS=$(filter-out $(DISABLED_TESTS),$(TESTS_STRESS_SRC:.cs=.exe))
1992 TESTS_GSHARED=$(filter-out $(DISABLED_TESTS),$(TESTS_GSHARED_SRC:.cs=.exe))
1993 TESTS_TAILCALL_COMPILE=$(filter-out $(TAILCALL_DISABLED_TESTS_COMPILE),$(TEST_TAILCALL_CS_SRC:.cs=.exe) $(TEST_TAILCALL_IL_SRC:.il=.exe))
1994 TESTS_TAILCALL_RUN=$(filter-out $(TAILCALL_DISABLED_TESTS_RUN),$(TESTS_TAILCALL_COMPILE))
1996 if FULL_AOT_TESTS
1997 TESTSAOT_CS=$(TESTS_CS:.exe=.exe$(PLATFORM_AOT_SUFFIX))
1998 TESTSAOT_IL=$(TESTS_IL:.exe=.exe$(PLATFORM_AOT_SUFFIX))
1999 TESTSAOT_BENCH=$(TESTS_BENCH:.exe=.exe$(PLATFORM_AOT_SUFFIX))
2000 TESTSAOT_STRESS=$(TESTS_STRESS:.exe=.exe$(PLATFORM_AOT_SUFFIX))
2001 TESTSAOT_GSHARED=$(TESTS_GSHARED:.exe=.exe$(PLATFORM_AOT_SUFFIX))
2002 # AOT tests are run by running the non-AOT files. Runtime probes for the AOT file.
2003 TESTSAOT_TAILCALL=$(TESTS_TAILCALL_COMPILE:.exe=.exe$(PLATFORM_AOT_SUFFIX))
2004 endif
2006 if HYBRID_AOT_TESTS
2007 TESTSAOT_CS=$(TESTS_CS:.exe=.exe$(PLATFORM_AOT_SUFFIX))
2008 TESTSAOT_IL=$(TESTS_IL:.exe=.exe$(PLATFORM_AOT_SUFFIX))
2009 TESTSAOT_BENCH=$(TESTS_BENCH:.exe=.exe$(PLATFORM_AOT_SUFFIX))
2010 TESTSAOT_STRESS=$(TESTS_STRESS:.exe=.exe$(PLATFORM_AOT_SUFFIX))
2011 TESTSAOT_GSHARED=$(TESTS_GSHARED:.exe=.exe$(PLATFORM_AOT_SUFFIX))
2012 TESTSAOT_TAILCALL=$(TESTS_TAILCALL_COMPILE:.exe=.exe$(PLATFORM_AOT_SUFFIX))
2013 endif
2015 EXTRA_DIST=common_mixed.mk test-driver test-runner.cs $(TESTS_CS_SRC) $(TESTS_IL_SRC) \
2016         $(TESTS_BENCH_SRC) $(TESTS_STRESS_SRC) stress-runner.pl \
2017         array-coop-1.cs array-coop-2.cs \
2018         array-coop-bigvt.cs array-coop-int.cs array-coop-smallvt.cs \
2019         array-coop-bigvt.sh array-coop-smallvt.sh array-coop-int.sh \
2020         tailcall-interface-conservestack.il tailcall/fsharp-deeptail.il \
2021         $(TEST_TAILCALL_CS_SRC) \
2022         $(TEST_TAILCALL_IL_SRC)
2024 # This test has extra sources.
2025 tailcall/coreclr/JIT/opt/Tailcall/TailcallVerifyWithPrefix.exe: \
2026                 tailcall/coreclr/JIT/opt/Tailcall/TailcallVerifyTransparentLibraryWithPrefix.il \
2027                 tailcall/coreclr/JIT/opt/Tailcall/TailcallVerifyVerifiableLibraryWithPrefix.il
2029 %.exe: %.il
2030         $(MKDIR_P) $(dir $@)
2031         $(ILASM) -out:$@ $^
2033 if !FULL_AOT_TESTS
2034 if !HYBRID_AOT_TESTS
2035 if !FULL_AOT_INTERP_TESTS
2036 TEST_DRIVER_HARD_KILL_FEATURE=-r:$(CLASS)/Mono.Posix.dll
2037 endif
2038 endif
2039 endif
2041 if FULL_AOT_TESTS
2042 TEST_DRIVER_DEPEND=TestDriver.dll$(PLATFORM_AOT_SUFFIX)
2043 else
2044 if HYBRID_AOT_TESTS
2045 TEST_DRIVER_DEPEND=TestDriver.dll$(PLATFORM_AOT_SUFFIX)
2046 else
2047 TEST_DRIVER_DEPEND=TestDriver.dll
2048 endif
2049 endif
2051 %.exe: %.cs $(TEST_DRIVER_DEPEND)
2052         $(MKDIR_P) $(dir $@)
2053         $(MCS) -r:$(CLASS)/System.dll -r:$(CLASS)/System.Xml.dll -r:$(CLASS)/System.Core.dll -r:TestDriver.dll $(TEST_DRIVER_HARD_KILL_FEATURE) -out:$@ $<
2055 # N.B. test-runner.exe references the TOOLS_RUNTIME versions of the framework assemblies
2056 test-runner.exe: test-runner.cs $(TEST_DRIVER_DEPEND)
2057         $(MCS) -r:System.dll -r:System.Xml.dll -r:System.Core.dll -r:TestDriver.dll $(TEST_DRIVER_HARD_KILL_FEATURE) -out:$@ $<
2059 %.dll: %.cs
2060         $(MKDIR_P) $(dir $@)
2061         $(MCS) -r:$(CLASS)/System.dll -target:library -out:$@ $<
2062 %.dll: %.il
2063         $(MKDIR_P) $(dir $@)
2064         $(ILASM) /dll /output:$@ $<
2066 reference-loader.exe: reference-loader.cs TestingReferenceAssembly.dll TestingReferenceReferenceAssembly.dll $(TEST_DRIVER_DEPEND)
2067         $(MCS) -r:$(CLASS)/System.dll -r:TestDriver.dll -r:TestingReferenceAssembly.dll -r:TestingReferenceReferenceAssembly.dll $(TEST_DRIVER_HARD_KILL_FEATURE) -out:$@ $(srcdir)/reference-loader.cs
2069 merp-json-valid.exe: merp-json-valid.cs
2070         $(MCS) -r:$(CLASS)/System.Web.Extensions.dll -r:$(CLASS)/System.dll -r:$(CLASS)/System.Xml.dll -r:$(CLASS)/System.Core.dll -out:$@ $<
2072 merp-crash-test.exe: merp-crash-test.cs
2073         $(MCS) -r:$(CLASS)/System.Web.Extensions.dll -r:$(CLASS)/System.dll -r:$(CLASS)/System.Xml.dll -r:$(CLASS)/System.Core.dll -out:$@ $<
2075 TestingReferenceAssembly.dll: TestingReferenceAssembly.cs
2076         $(MCS) -target:library -out:$@ $<
2078 TestingReferenceReferenceAssembly.dll: TestingReferenceReferenceAssembly.cs TestingReferenceAssembly.dll
2079         $(MCS) -r:TestingReferenceAssembly.dll -target:library -out:$@ $<
2081 %.exe$(PLATFORM_AOT_SUFFIX): %.exe 
2082         $(RUNTIME) $(TEST_AOT_BUILD_FLAGS) $<
2084 %.dll$(PLATFORM_AOT_SUFFIX): %.dll 
2085         $(RUNTIME) $(TEST_AOT_BUILD_FLAGS) $<
2087 # mkbundle works on ppc, but the pkg-config POC doesn't when run with make test
2088 if POWERPC
2089 test-platform:
2090 else
2091 # Can't use mkbundle on win32 since there is no static build there
2092 # Can't run test-unhandled-exception on Windows because of all the debug popups...
2093 if HOST_WIN32
2094 test-platform:
2095 else
2096 # mkbundle uses the installed mono-2.pc so it won't work if there is no system mono
2097 #test-platform: testbundle test-iomap-regression
2098 test-platform:  test-iomap-regression
2099 endif
2100 endif
2103 # Test that no symbols are missed in eglib-remap.h
2105 if HOST_LINUX
2106 test-platform: test-eglib-remap
2107 else
2108 if HOST_DARWIN
2109 test-platform: test-eglib-remap
2110 endif
2111 endif
2112 # The following regexp describes all symbols that start with "g_" but are not part of eglibc.
2113 # The optional underscore prepending symbol names may or may not appear depending on the
2114 # system and the state of the leading-underscore compiler flag.
2115 OK_G_SYMBOLS='\<_?g_(s?list_(pre|ap)pend_(image|mempool)|concat_dir_and_file|Ctoc)\>'
2116 test-eglib-remap:
2117         @echo "Testing eglib remap..."
2118         @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
2120 test-env-options:
2121         MONO_ENV_OPTIONS="--version" $(RUNTIME) array-init.exe | grep -q Architecture:
2123 TESTS_REGULAR = $(TESTS_CS) $(TESTS_IL) $(TESTS_BENCH)
2124 TESTS_INCL_DEPS = $(shell find . -type f -name "*.exe" -o -name "*.dll" -o -name "*.netmodule" -o -name "*.config")
2126 # Target to precompile the test executables
2127 test-local: $(TESTS_REGULAR) $(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 test-runner.exe
2129 test-bundle-local:
2130         mkdir -p $(addprefix $(TEST_BUNDLE_PATH)/tests/runtime/,$(sort $(dir $(TESTS_INCL_DEPS))))
2131         @echo $(TESTS_REGULAR) > $(TEST_BUNDLE_PATH)/tests/runtime/runtime-test-list.txt
2132         sed -e 's,$$mono_libdir,$$test_root_dir,g' tests-config > $(TEST_BUNDLE_PATH)/tests/runtime/tests-config.tmpl
2133         cp -L .libs/libtest$(libsuffix) $(TEST_BUNDLE_PATH)/tests/runtime/
2134         $(foreach asset,$(TESTS_INCL_DEPS),cp -L $(asset) $(TEST_BUNDLE_PATH)/tests/runtime/$(dir $(asset));)
2136 # Precompile the test assemblies in parallel
2137 compile-tests:
2138         $(MAKE) -j4 test
2140 # Remove empty .stdout and .stderr files for wrench
2141 rm-empty-logs:
2142         @echo "Removing empty logs..."
2143         find . '(' -name "*.stdout" -o -name "*.stderr" ')' -size 0 -exec rm {} \;
2145 TestDriver.dll:
2146         $(MCS) -target:library -out:$@ $(srcdir)/../mini/TestDriver.cs $(srcdir)/../mini/TestHelpers.cs
2148 runtest: compile-tests
2149         @failed=0; \
2150         passed=0; \
2151         failed_tests="";\
2152         if [ "x$$V" = "x1" ]; then dump_action="dump-output"; else dump_action="no-dump"; fi; \
2153         rm -f testlist testlist.sorted; \
2154         for i in $(TESTS_REGULAR); do echo $${i} >> testlist; sort testlist > testlist.sorted; done; \
2155         for i in `cat testlist.sorted`; do \
2156                 rm -f $${i}.so; \
2157                 $(with_mono_path) $(JITTEST_PROG_RUN) --aot $(TEST_AOT_BUILD_FLAGS) --debug $${i} > $${i}.aotlog 2>&1 || exit 1; \
2158                 if $(srcdir)/test-driver '$(with_mono_path) $(JITTEST_PROG_RUN)' $$i "$(DISABLED_TESTS)" "$${dump_action}" $(TEST_RUNTIME_ARGS) $(TEST_AOT_RUN_FLAGS) ; \
2159                 then \
2160                         passed=`expr $${passed} + 1`; \
2161                 else \
2162                         if [ $$? = 2 ]; then break; fi; \
2163                         failed=`expr $${failed} + 1`; \
2164                         failed_tests="$${failed_tests} $$i"; \
2165                 fi \
2166         done; \
2167         echo "$${passed} test(s) passed. $${failed} test(s) did not pass."; \
2168         rm -f testlist testlist.sorted; \
2169         if [ $${failed} != 0 ]; then \
2170           echo -e "\nFailed tests:\n"; \
2171           for i in $${failed_tests}; do \
2172             echo $${i}; \
2173             if [ "x$$V" = "x1" ]; then \
2174               cat $${i}.stdout; \
2175               cat $${i}.stderr; \
2176             fi; \
2177           done; \
2178           exit 1; \
2179         fi
2181 runtest-managed: test-runner.exe compile-tests
2182         $(TOOLS_RUNTIME) --debug $(TEST_RUNNER) -j a --testsuite-name "runtime" --timeout 300 --disabled "$(DISABLED_TESTS)" $(TESTS_REGULAR)
2184 runtest-managed-serial: test-runner.exe compile-tests
2185         $(TOOLS_RUNTIME) --debug $(TEST_RUNNER) -j 1 --testsuite-name "runtime" --disabled "$(DISABLED_TESTS)" $(TESTS_REGULAR)
2187 test-jit:
2188         @if test x$(M) != x0; then $(MAKE) runtest-managed; else $(MAKE) runtest; fi
2190 testaot:
2191         @$(MAKE) AOT=1 runtest
2193 testtrace:
2194         @$(MAKE) TEST_RUNTIME_ARGS="$${TEST_RUNTIME_ARGS} --trace" runtest
2196 testinterp: test-runner.exe compile-tests
2197         $(TOOLS_RUNTIME) --debug $(TEST_RUNNER) -j a --runtime-args "--interpreter" --testsuite-name "runtime-interp" --timeout 300 --disabled "$(INTERP_DISABLED_TESTS)" $(TESTS_REGULAR)
2199 testfullaotinterp: test-runner.exe compile-tests
2200         $(TOOLS_RUNTIME) --debug $(TEST_RUNNER) -j a --runtime-args "--full-aot-interp" --testsuite-name "runtime-aot-interp" --timeout 300 --disabled "$(INTERP_DISABLED_TESTS)" $(TESTS_REGULAR)
2202 testllvmonlyinterp: test-runner.exe compile-tests
2203         $(TOOLS_RUNTIME) --debug $(TEST_RUNNER) -j a --runtime-args "--llvmonly-interp" --testsuite-name "runtime-aot-interp" --timeout 300 --disabled "$(INTERP_DISABLED_TESTS)" $(TESTS_REGULAR)
2205 testjitspeed: $(JITTEST_PROG) compile-tests
2206         for i in $(TESTS_BENCH); do     \
2207                 echo $$i;       \
2208                 time $(JITTEST_PROG) $$i;       \
2209         done
2211 test-iomap-regression: exists.exe
2212         @echo "Testing exists.exe..."
2213         @MONO_IOMAP=all $(RUNTIME) exists.exe
2215 stresstest: compile-tests
2216         @failed=0; \
2217         passed=0; \
2218         failed_tests="";\
2219         for i in $(TESTS_STRESS); do    \
2220                 if $(srcdir)/stress-runner.pl $$i ../mini/mono $(TEST_RUNTIME_ARGS); \
2221                 then \
2222                         passed=`expr $${passed} + 1`; \
2223                 else \
2224                         if [ $$? = 2 ]; then break; fi; \
2225                         failed=`expr $${failed} + 1`; \
2226                         failed_tests="$${failed_tests} $$i"; \
2227                 fi \
2228         done; \
2229         echo "$${passed} test(s) passed. $${failed} test(s) did not pass."; \
2230         if [ $${failed} != 0 ]; then echo -e "\nFailed tests:\n"; \
2231           for i in $${failed_tests}; do echo $${i}; done; exit 1; fi
2233 testbundle: console.exe
2234         @echo "Testing mkbundle..."
2235         @$(MKBUNDLE) --static console.exe > mkbundle.stdout
2236         @$(with_mono_path) MONO_CFG_DIR=$(mono_cfg_dir) ./a.out >> mkbundle.stdout
2237         @- rm -rf a.out
2239 EXTRA_DIST += load-missing.il t-missing.cs load-exceptions.cs
2241 load-missing.dll: load-missing.il
2242         $(Q) $(ILASM) /dll /output:$@ $<
2244 load-exceptions.exe t.dll: load-exceptions.cs t-missing.cs load-missing.dll $(TEST_DRIVER_DEPEND)
2245         $(Q) $(MCS) -t:library -out:t.dll -d:FOUND t-missing.cs
2246         $(Q) $(MCS) -r:TestDriver.dll -r:load-missing.dll -r:t.dll -out:$@ $<
2247         $(Q) $(MCS) -t:library -out:t.dll t-missing.cs
2249 test-type-load: load-exceptions.exe
2250 if !POWERPC64
2251         $(Q) $(RUNTIME) load-exceptions.exe > load-exceptions.exe.stdout 2> load-exceptions.exe.stderr
2252 endif
2254 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
2256 test-multi-netmodule-1-netmodule.netmodule: test-multi-netmodule-1-netmodule.cs
2257         $(Q) $(MCS) -t:module -out:$@ $<
2258 test-multi-netmodule-2-dll1.dll: test-multi-netmodule-2-dll1.cs test-multi-netmodule-1-netmodule.netmodule
2259         $(Q) $(MCS) -addmodule:test-multi-netmodule-1-netmodule.netmodule -t:library  -out:$@ $<
2260 test-multi-netmodule-3-dll2.dll: test-multi-netmodule-3-dll2.cs test-multi-netmodule-1-netmodule.netmodule
2261         $(Q) $(MCS) -addmodule:test-multi-netmodule-1-netmodule.netmodule -t:library -out:$@ $<
2262 test-multi-netmodule-4-exe.exe: test-multi-netmodule-4-exe.cs test-multi-netmodule-2-dll1.dll test-multi-netmodule-3-dll2.dll
2263         $(Q) $(MCS) -r:test-multi-netmodule-2-dll1.dll -out:$@ $<
2265 test-multi-netmodule: test-multi-netmodule-4-exe.exe
2266         $(Q) $(TOOLS_RUNTIME) $(TEST_RUNNER) --testsuite-name $@ --disabled "$(DISABLED_TESTS)" $<
2268 EXTRA_DIST += custom-attr-errors.cs custom-attr-errors-lib.cs
2270 custom-attr-errors.exe custom-attr-errors-lib.dll: custom-attr-errors.cs custom-attr-errors-lib.cs $(TEST_DRIVER_DEPEND)
2271         $(Q) $(MCS) /t:library -D:WITH_MEMBERS custom-attr-errors-lib.cs
2272         $(Q) $(MCS) -r:TestDriver.dll -r:custom-attr-errors-lib.dll custom-attr-errors.cs
2273         $(Q) $(MCS) /t:library custom-attr-errors-lib.cs
2275 test-cattr-type-load: custom-attr-errors.exe
2276         $(Q) $(TOOLS_RUNTIME) $(TEST_RUNNER) --testsuite-name $@ --disabled "$(DISABLED_TESTS)" $<
2278 EXTRA_DIST += reflection-load-with-context-lib.cs reflection-load-with-context-second-lib.cs reflection-load-with-context.cs
2280 reflection-load-with-context-second-lib.dll: reflection-load-with-context-second-lib.cs
2281         $(Q) $(MCS) /t:library -out:$@ $<
2282 reflection-load-with-context-lib.dll: reflection-load-with-context-lib.cs reflection-load-with-context-second-lib.dll
2283         $(Q) $(MCS) /t:library -r:reflection-load-with-context-second-lib.dll -out:$@ $<
2284 reflection-load-with-context.exe: reflection-load-with-context-lib.dll
2286 test-reflection-load-with-context: reflection-load-with-context.exe
2287         $(Q) $(RUNTIME) reflection-load-with-context.exe > reflection-load-with-context.exe.stdout 2> reflection-load-with-context.exe.stderr
2290 EXTRA_DIST += debug-casts.cs
2291 # This depends on TLS, so its not ran by default
2292 debug-casts: debug-casts.exe
2293         $(Q) $(RUNTIME) --debug=casts debug-casts.exe
2295 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
2297 test-sgen:
2298         ok=; \
2299         $(MAKE) test-sgen-regular || ok=false; \
2300         $(MAKE) test-sgen-toggleref || ok=false; \
2301         $(MAKE) test-sgen-bridge || ok=false; \
2302         $(MAKE) test-sgen-bridge2 || ok=false; \
2303         $(MAKE) test-sgen-bridge3 || ok=false; \
2304         $$ok
2306 test-stress-sgen:
2307         ok=; \
2308         $(MAKE) test-stress-sgen-regular || ok=false; \
2309         $(MAKE) test-stress-sgen-toggleref || ok=false; \
2310         $(MAKE) test-stress-sgen-bridge || ok=false; \
2311         $(MAKE) test-stress-sgen-bridge2 || ok=false; \
2312         $(MAKE) test-stress-sgen-bridge3 || ok=false; \
2313         $$ok
2315 TESTS_SGEN_REGULAR_SRC =        \
2316         finalizer-wait.cs       \
2317         critical-finalizers.cs  \
2318         sgen-descriptors.cs     \
2319         sgen-gshared-vtype.cs   \
2320         sgen-weakref-stress.cs  \
2321         sgen-cementing-stress.cs        \
2322         sgen-case-23400.cs      \
2323         sgen-new-threads-dont-join-stw.cs       \
2324         sgen-new-threads-dont-join-stw-2.cs     \
2325         sgen-new-threads-collect.cs     \
2326         gc-graystack-stress.cs  \
2327         bug-17590.cs    \
2328         sgen-domain-unload.cs   \
2329         sgen-domain-unload-2.cs
2331 TESTS_SGEN_REGULAR=$(filter-out $(DISABLED_TESTS),$(TESTS_SGEN_REGULAR_SRC:.cs=.exe))
2333 if FULL_AOT_TESTS
2334 TESTSAOT_SGEN_REGULAR=$(TESTS_SGEN_REGULAR:.exe=.exe$(PLATFORM_AOT_SUFFIX))
2335 endif
2337 if HYBRID_AOT_TESTS
2338 TESTSAOT_SGEN_REGULAR=$(TESTS_SGEN_REGULAR:.exe=.exe$(PLATFORM_AOT_SUFFIX))
2339 endif
2341 # The .cs tests are not interesting initially but should be later.
2343 #FIXME
2344 #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.
2345 #coreclr/tailcall/CoreMangLib/cti/system/reflection/emit/opcodes/opcodestailcall.cs(17,9): error CS0103: The name 'TestLibrary' does not exist in the current context
2347 TEST_TAILCALL_CS_SRC=\
2348         tailcall/coreclr/JIT/CodeGenBringUpTests/RecursiveTailCall.cs \
2349         tailcall/coreclr/JIT/Methodical/tailcall/Desktop/thread-race.cs \
2350         tailcall/coreclr/JIT/Methodical/tailcall_v4/delegateParamCallTarget.cs \
2351         tailcall/coreclr/JIT/opt/FastTailCall/FastTailCallCandidates.cs \
2352         tailcall/coreclr/JIT/opt/FastTailCall/FastTailCallInlining.cs \
2353         tailcall/coreclr/JIT/opt/FastTailCall/GitHubIssue12479.cs \
2354         tailcall/coreclr/JIT/opt/FastTailCall/StackFixup.cs \
2355         tailcall/coreclr/JIT/opt/FastTailCall/StructPassingSimple.cs
2357 # At these locations we have .cs and .il.
2358 # The .il is clearly derived from the .cs, such as by running
2359 # csc + ildasm + edit.
2360 # The .cs is opportunistically optimizable, see https://github.com/mono/mono/issues/7259.
2361 # But for now we only want the .il.
2362 #tailcall/coreclr/JIT/Methodical/Boxing/misc/tailjump.cs
2363 #tailcall/coreclr/JIT/Methodical/Invoke/SEH/catchfinally_tail.cs
2364 #tailcall/coreclr/JIT/Methodical/nonvirtualcall/tailcall.cs
2365 #tailcall/coreclr/JIT/Methodical/tailcall/compat_i2_bool.il
2366 #tailcall/coreclr/JIT/Methodical/tailcall/compat_i4_i1.il
2367 #tailcall/coreclr/JIT/Methodical/tailcall/compat_i4_u.il
2368 #tailcall/coreclr/JIT/Methodical/tailcall/compat_i_u2.il
2369 #tailcall/coreclr/JIT/Methodical/tailcall/compat_r4_r8.il
2370 #tailcall/coreclr/JIT/Methodical/tailcall/compat_r8_r4.il
2372 TEST_TAILCALL_IL_SRC=\
2373         tailcall/coreclr/JIT/opt/Tailcall/TailcallVerifyWithPrefix.il \
2374         tailcall/coreclr/JIT/opt/Tailcall/TailcallVerifyTransparentLibraryWithPrefix.il \
2375         tailcall/coreclr/JIT/opt/Tailcall/TailcallVerifyVerifiableLibraryWithPrefix.il \
2376         tailcall/coreclr/JIT/Directed/coverage/importer/badtailcall.il \
2377         tailcall/coreclr/JIT/Directed/coverage/importer/Desktop/badtailcall.il \
2378         tailcall/coreclr/JIT/Directed/IL/mutualrecur-tailcall/MutualRecur-TailCall.il \
2379         tailcall/coreclr/JIT/Directed/IL/PInvokeTail/tailwinapi.il \
2380         tailcall/coreclr/JIT/Directed/IL/Tailcall/JitTailcall1.il \
2381         tailcall/coreclr/JIT/Directed/IL/Tailcall/Jittailcall2.il \
2382         tailcall/coreclr/JIT/Directed/pinvoke/tail.il \
2383         tailcall/coreclr/JIT/Directed/tailcall/tailcall.il \
2384         tailcall/coreclr/JIT/IL_Conformance/Old/Base/tailcall.il \
2385         tailcall/coreclr/JIT/Methodical/Boxing/boxunbox/tailcall.il \
2386         tailcall/coreclr/JIT/Methodical/Boxing/misc/tailjump.il \
2387         tailcall/coreclr/JIT/Methodical/Invoke/fptr/recurse_tail_call.il \
2388         tailcall/coreclr/JIT/Methodical/Invoke/fptr/recurse_tail_calli.il \
2389         tailcall/coreclr/JIT/Methodical/Invoke/SEH/catchfault_tail.il \
2390         tailcall/coreclr/JIT/Methodical/Invoke/SEH/catchfinally_tail.il \
2391         tailcall/coreclr/JIT/Methodical/nonvirtualcall/tailcall.il \
2392         tailcall/coreclr/JIT/Methodical/tailcall/compat_obj.il \
2393         tailcall/coreclr/JIT/Methodical/tailcall/compat_v.il \
2394         tailcall/coreclr/JIT/Methodical/tailcall/deep_array.il \
2395         tailcall/coreclr/JIT/Methodical/tailcall/deep_array_nz.il \
2396         tailcall/coreclr/JIT/Methodical/tailcall/deep_gc.il \
2397         tailcall/coreclr/JIT/Methodical/tailcall/deep_inst.il \
2398         tailcall/coreclr/JIT/Methodical/tailcall/deep_value.il \
2399         tailcall/coreclr/JIT/Methodical/tailcall/deep_virt.il \
2400         tailcall/coreclr/JIT/Methodical/tailcall/gcval.il \
2401         tailcall/coreclr/JIT/Methodical/tailcall/gcval_nested.il \
2402         tailcall/coreclr/JIT/Methodical/tailcall/gcval_sideeffect.il \
2403         tailcall/coreclr/JIT/Methodical/tailcall/pointer.il \
2404         tailcall/coreclr/JIT/Methodical/tailcall/pointer_i.il \
2405         tailcall/coreclr/JIT/Methodical/tailcall/recurse_ep.il \
2406         tailcall/coreclr/JIT/Methodical/tailcall/recurse_ep_void.il \
2407         tailcall/coreclr/JIT/Methodical/tailcall/reference_i.il \
2408         tailcall/coreclr/JIT/Methodical/tailcall/test_2a.il \
2409         tailcall/coreclr/JIT/Methodical/tailcall/test_2b.il \
2410         tailcall/coreclr/JIT/Methodical/tailcall/test_2c.il \
2411         tailcall/coreclr/JIT/Methodical/tailcall/test_3b.il \
2412         tailcall/coreclr/JIT/Methodical/tailcall/test_implicit.il \
2413         tailcall/coreclr/JIT/Methodical/tailcall/test_mutual_rec.il \
2414         tailcall/coreclr/JIT/Methodical/tailcall/test_switch.il \
2415         tailcall/coreclr/JIT/Methodical/tailcall/test_virt.il \
2416         tailcall/coreclr/JIT/Methodical/tailcall/test_void.il \
2417         tailcall/coreclr/JIT/Methodical/tailcall_v4/delegateTail.il \
2418         tailcall/coreclr/JIT/Methodical/tailcall_v4/hijacking.il \
2419         tailcall/coreclr/JIT/Methodical/tailcall_v4/smallFrame.il \
2420         tailcall/coreclr/JIT/Methodical/tailcall_v4/tailcall_AV.il \
2421         tailcall/coreclr/JIT/opt/ETW/TailCallCases.il \
2422         tailcall/coreclr/JIT/Regression/VS-ia64-JIT/V1.2-M02/b102844/tailcallcalli.il
2424 test-sgen-regular: $(TESTS_SGEN_REGULAR) $(TESTSAOT_SGEN_REGULAR)
2425         ok=; \
2426         $(MAKE) test-sgen-regular-ms-simple || ok=false; \
2427         $(MAKE) test-sgen-regular-ms-conc-simple || ok=false; \
2428         $$ok
2430 test-stress-sgen-regular: $(TESTS_SGEN_REGULAR) $(TESTSAOT_SGEN_REGULAR)
2431         ok=; \
2432         $(MAKE) test-sgen-regular-ms-simple MONO_TESTS_STRESS=1 || ok=false; \
2433         $(MAKE) test-sgen-regular-ms-conc-simple MONO_TESTS_STRESS=1 || ok=false; \
2434         $(MAKE) test-sgen-regular-ms-conc-par-simple MONO_TESTS_STRESS=1 || ok=false; \
2435         $(MAKE) test-sgen-regular-ms-conc-split MONO_TESTS_STRESS=1 || ok=false; \
2436         $(MAKE) test-sgen-regular-ms-conc-split-95-clear-at-gc MONO_TESTS_STRESS=1 || ok=false; \
2437         $(MAKE) test-sgen-regular-ms-conc-par-simple-par-dyn MONO_TESTS_STRESS=1 || ok=false; \
2438         $(MAKE) test-sgen-regular-ms-conc-par-simple-par-512k MONO_TESTS_STRESS=1 || ok=false; \
2439         $(MAKE) test-sgen-regular-ms-conc-par-simple-par-32m MONO_TESTS_STRESS=1 || ok=false; \
2440         $(MAKE) test-sgen-regular-ms-conc-par-simple-par-dyn-clear-at-gc MONO_TESTS_STRESS=1 || ok=false; \
2441         $$ok
2443 test-sgen-regular-ms-simple: $(TESTS_SGEN_REGULAR) $(TESTSAOT_SGEN_REGULAR) test-runner.exe
2444         $(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)
2445 test-sgen-regular-ms-conc-simple: $(TESTS_SGEN_REGULAR) $(TESTSAOT_SGEN_REGULAR) test-runner.exe
2446         $(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)
2447 test-sgen-regular-ms-conc-par-simple: $(TESTS_SGEN_REGULAR) $(TESTSAOT_SGEN_REGULAR) test-runner.exe
2448         $(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)
2449 test-sgen-regular-ms-conc-split: $(TESTS_SGEN_REGULAR) $(TESTSAOT_SGEN_REGULAR) test-runner.exe
2450         $(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)
2451 test-sgen-regular-ms-conc-split-95-clear-at-gc: $(TESTS_SGEN_REGULAR) $(TESTSAOT_SGEN_REGULAR) test-runner.exe
2452         $(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)
2453 test-sgen-regular-ms-conc-par-simple-par-dyn: $(TESTS_SGEN_REGULAR) $(TESTSAOT_SGEN_REGULAR) test-runner.exe
2454         $(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)
2455 test-sgen-regular-ms-conc-par-simple-par-512k: $(TESTS_SGEN_REGULAR) $(TESTSAOT_SGEN_REGULAR) test-runner.exe
2456         $(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)
2457 test-sgen-regular-ms-conc-par-simple-par-32m: $(TESTS_SGEN_REGULAR) $(TESTSAOT_SGEN_REGULAR) test-runner.exe
2458         $(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)
2459 test-sgen-regular-ms-conc-par-simple-par-dyn-clear-at-gc: $(TESTS_SGEN_REGULAR) $(TESTSAOT_SGEN_REGULAR) test-runner.exe
2460         $(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)
2462 TESTS_SGEN_TOGGLEREF_SRC=       \
2463         sgen-toggleref.cs
2465 TESTS_SGEN_TOGGLEREF=$(filter-out $(DISABLED_TESTS),$(TESTS_SGEN_TOGGLEREF_SRC:.cs=.exe))
2467 if FULL_AOT_TESTS
2468 TESTSAOT_SGEN_TOGGLEREF=$(TESTS_SGEN_TOGGLEREF:.exe=.exe$(PLATFORM_AOT_SUFFIX))
2469 endif
2471 if HYBRID_AOT_TESTS
2472 TESTSAOT_SGEN_TOGGLEREF=$(TESTS_SGEN_TOGGLEREF:.exe=.exe$(PLATFORM_AOT_SUFFIX))
2473 endif
2475 test-sgen-toggleref: $(TESTS_SGEN_TOGGLEREF) $(TESTSAOT_SGEN_TOGGLEREF)
2476         ok=; \
2477         $(MAKE) test-sgen-toggleref-ms-simple || ok=false; \
2478         $(MAKE) test-sgen-toggleref-ms-conc-simple || ok=false; \
2479         $$ok
2481 test-stress-sgen-toggleref: $(TESTS_SGEN_TOGGLEREF) $(TESTSAOT_SGEN_TOGGLEREF)
2482         ok=; \
2483         $(MAKE) test-sgen-toggleref-ms-simple MONO_TESTS_STRESS=1 || ok=false; \
2484         $(MAKE) test-sgen-toggleref-ms-conc-simple MONO_TESTS_STRESS=1 || ok=false; \
2485         $(MAKE) test-sgen-toggleref-ms-conc-par-simple MONO_TESTS_STRESS=1 || ok=false; \
2486         $(MAKE) test-sgen-toggleref-ms-conc-split MONO_TESTS_STRESS=1 || ok=false; \
2487         $(MAKE) test-sgen-toggleref-ms-conc-split-95-clear-at-gc MONO_TESTS_STRESS=1 || ok=false; \
2488         $(MAKE) test-sgen-toggleref-ms-conc-par-simple-par-dyn MONO_TESTS_STRESS=1 || ok=false; \
2489         $(MAKE) test-sgen-toggleref-ms-conc-par-simple-par-512k MONO_TESTS_STRESS=1 || ok=false; \
2490         $(MAKE) test-sgen-toggleref-ms-conc-par-simple-par-32m MONO_TESTS_STRESS=1 || ok=false; \
2491         $(MAKE) test-sgen-toggleref-ms-conc-par-simple-par-dyn-clear-at-gc MONO_TESTS_STRESS=1 || ok=false; \
2492         $$ok
2494 test-sgen-toggleref-ms-simple: $(TESTS_SGEN_TOGGLEREF) $(TESTSAOT_SGEN_TOGGLEREF) test-runner.exe
2495         $(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)
2496 test-sgen-toggleref-ms-conc-simple: $(TESTS_SGEN_TOGGLEREF) $(TESTSAOT_SGEN_TOGGLEREF) test-runner.exe
2497         $(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)
2498 test-sgen-toggleref-ms-conc-par-simple: $(TESTS_SGEN_TOGGLEREF) $(TESTSAOT_SGEN_TOGGLEREF) test-runner.exe
2499         $(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)
2500 test-sgen-toggleref-ms-conc-split: $(TESTS_SGEN_TOGGLEREF) $(TESTSAOT_SGEN_TOGGLEREF) test-runner.exe
2501         $(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)
2502 test-sgen-toggleref-ms-conc-split-95-clear-at-gc: $(TESTS_SGEN_TOGGLEREF) $(TESTSAOT_SGEN_TOGGLEREF) test-runner.exe
2503         $(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)
2504 test-sgen-toggleref-ms-conc-par-simple-par-dyn: $(TESTS_SGEN_TOGGLEREF) $(TESTSAOT_SGEN_TOGGLEREF) test-runner.exe
2505         $(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)
2506 test-sgen-toggleref-ms-conc-par-simple-par-512k: $(TESTS_SGEN_TOGGLEREF) $(TESTSAOT_SGEN_TOGGLEREF) test-runner.exe
2507         $(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)
2508 test-sgen-toggleref-ms-conc-par-simple-par-32m: $(TESTS_SGEN_TOGGLEREF) $(TESTSAOT_SGEN_TOGGLEREF) test-runner.exe
2509         $(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)
2510 test-sgen-toggleref-ms-conc-par-simple-par-dyn-clear-at-gc: $(TESTS_SGEN_TOGGLEREF) $(TESTSAOT_SGEN_TOGGLEREF) test-runner.exe
2511         $(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)
2513 TESTS_SGEN_BRIDGE_SRC=  \
2514         sgen-bridge.cs  \
2515         sgen-bridge-major-fragmentation.cs
2517 TESTS_SGEN_BRIDGE=$(filter-out $(DISABLED_TESTS),$(TESTS_SGEN_BRIDGE_SRC:.cs=.exe))
2519 if FULL_AOT_TESTS
2520 TESTSAOT_SGEN_BRIDGE=$(TESTS_SGEN_BRIDGE:.exe=.exe$(PLATFORM_AOT_SUFFIX))
2521 endif
2523 if HYBRID_AOT_TESTS
2524 TESTSAOT_SGEN_BRIDGE=$(TESTS_SGEN_BRIDGE:.exe=.exe$(PLATFORM_AOT_SUFFIX))
2525 endif
2527 test-sgen-bridge: $(TESTS_SGEN_BRIDGE) $(TESTSAOT_SGEN_BRIDGE)
2528         ok=; \
2529         $(MAKE) test-sgen-bridge-ms-simple-tarjan-bridge || ok=false; \
2530         $(MAKE) test-sgen-bridge-ms-conc-simple-tarjan-bridge || ok=false; \
2531         $$ok
2533 test-stress-sgen-bridge: $(TESTS_SGEN_BRIDGE) $(TESTSAOT_SGEN_BRIDGE)
2534         ok=; \
2535         $(MAKE) test-sgen-bridge-ms-simple-tarjan-bridge MONO_TESTS_STRESS=1 || ok=false; \
2536         $(MAKE) test-sgen-bridge-ms-conc-simple-tarjan-bridge MONO_TESTS_STRESS=1 || ok=false; \
2537         $(MAKE) test-sgen-bridge-ms-conc-split-tarjan-bridge MONO_TESTS_STRESS=1 || ok=false; \
2538         $(MAKE) test-sgen-bridge-ms-conc-simple-new-bridge MONO_TESTS_STRESS=1 || ok=false; \
2539         $(MAKE) test-sgen-bridge-ms-conc-simple-old-bridge MONO_TESTS_STRESS=1 || ok=false; \
2540         $(MAKE) test-sgen-bridge-ms-conc-par-simple-par-dyn-tarjan-bridge MONO_TESTS_STRESS=1 || ok=false; \
2541         $(MAKE) test-sgen-bridge-ms-conc-par-simple-par-512k-tarjan-bridge MONO_TESTS_STRESS=1 || ok=false; \
2542         $(MAKE) test-sgen-bridge-ms-conc-par-simple-par-32m-tarjan-bridge MONO_TESTS_STRESS=1 || ok=false; \
2543         $$ok
2545 test-sgen-bridge-ms-simple-tarjan-bridge: $(TESTS_SGEN_BRIDGE) $(TESTSAOT_SGEN_BRIDGE) test-runner.exe
2546         $(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)
2547 test-sgen-bridge-ms-conc-simple-tarjan-bridge: $(TESTS_SGEN_BRIDGE) $(TESTSAOT_SGEN_BRIDGE) test-runner.exe
2548         $(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)
2549 test-sgen-bridge-ms-conc-split-tarjan-bridge: $(TESTS_SGEN_BRIDGE) $(TESTSAOT_SGEN_BRIDGE) test-runner.exe
2550         $(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)
2551 test-sgen-bridge-ms-conc-simple-new-bridge: $(TESTS_SGEN_BRIDGE) $(TESTSAOT_SGEN_BRIDGE) test-runner.exe
2552         $(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)
2553 test-sgen-bridge-ms-conc-simple-old-bridge: $(TESTS_SGEN_BRIDGE) $(TESTSAOT_SGEN_BRIDGE) test-runner.exe
2554         $(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)
2555 test-sgen-bridge-ms-conc-par-simple-par-dyn-tarjan-bridge: $(TESTS_SGEN_BRIDGE) $(TESTSAOT_SGEN_BRIDGE) test-runner.exe
2556         $(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)
2557 test-sgen-bridge-ms-conc-par-simple-par-512k-tarjan-bridge: $(TESTS_SGEN_BRIDGE) $(TESTSAOT_SGEN_BRIDGE) test-runner.exe
2558         $(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)
2559 test-sgen-bridge-ms-conc-par-simple-par-32m-tarjan-bridge: $(TESTS_SGEN_BRIDGE) $(TESTSAOT_SGEN_BRIDGE) test-runner.exe
2560         $(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)
2562 TESTS_SGEN_BRIDGE2_SRC= \
2563         sgen-bridge-xref.cs
2565 TESTS_SGEN_BRIDGE2=$(filter-out $(DISABLED_TESTS),$(TESTS_SGEN_BRIDGE2_SRC:.cs=.exe))
2567 if FULL_AOT_TESTS
2568 TESTSAOT_SGEN_BRIDGE2=$(TESTS_SGEN_BRIDGE2:.exe=.exe$(PLATFORM_AOT_SUFFIX))
2569 endif
2571 if HYBRID_AOT_TESTS
2572 TESTSAOT_SGEN_BRIDGE2=$(TESTS_SGEN_BRIDGE2:.exe=.exe$(PLATFORM_AOT_SUFFIX))
2573 endif
2575 test-sgen-bridge2: $(TESTS_SGEN_BRIDGE2) $(TESTSAOT_SGEN_BRIDGE2)
2576         ok=; \
2577         $(MAKE) test-sgen-bridge2-ms-simple-tarjan-bridge || ok=false; \
2578         $(MAKE) test-sgen-bridge2-ms-conc-simple-tarjan-bridge || ok=false; \
2579         $$ok
2581 test-stress-sgen-bridge2: $(TESTS_SGEN_BRIDGE2) $(TESTSAOT_SGEN_BRIDGE2)
2582         ok=; \
2583         $(MAKE) test-sgen-bridge2-ms-simple-tarjan-bridge MONO_TESTS_STRESS=1 || ok=false; \
2584         $(MAKE) test-sgen-bridge2-ms-conc-simple-tarjan-bridge MONO_TESTS_STRESS=1 || ok=false; \
2585         $(MAKE) test-sgen-bridge2-ms-conc-split-tarjan-bridge MONO_TESTS_STRESS=1 || ok=false; \
2586         $(MAKE) test-sgen-bridge2-ms-conc-simple-new-bridge MONO_TESTS_STRESS=1 || ok=false; \
2587         $(MAKE) test-sgen-bridge2-ms-conc-simple-old-bridge MONO_TESTS_STRESS=1 || ok=false; \
2588         $(MAKE) test-sgen-bridge2-ms-conc-par-simple-par-dyn-tarjan-bridge MONO_TESTS_STRESS=1 || ok=false; \
2589         $(MAKE) test-sgen-bridge2-ms-conc-par-simple-par-512k-tarjan-bridge MONO_TESTS_STRESS=1 || ok=false; \
2590         $(MAKE) test-sgen-bridge2-ms-conc-par-simple-par-32m-tarjan-bridge MONO_TESTS_STRESS=1 || ok=false; \
2591         $$ok
2593 test-sgen-bridge2-ms-simple-tarjan-bridge: $(TESTS_SGEN_BRIDGE2) $(TESTSAOT_SGEN_BRIDGE2) test-runner.exe
2594         $(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)
2595 test-sgen-bridge2-ms-conc-simple-tarjan-bridge: $(TESTS_SGEN_BRIDGE2) $(TESTSAOT_SGEN_BRIDGE2) test-runner.exe
2596         $(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)
2597 test-sgen-bridge2-ms-conc-split-tarjan-bridge: $(TESTS_SGEN_BRIDGE2) $(TESTSAOT_SGEN_BRIDGE2) test-runner.exe
2598         $(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)
2599 test-sgen-bridge2-ms-conc-simple-new-bridge: $(TESTS_SGEN_BRIDGE2) $(TESTSAOT_SGEN_BRIDGE2) test-runner.exe
2600         $(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)
2601 test-sgen-bridge2-ms-conc-simple-old-bridge: $(TESTS_SGEN_BRIDGE2) $(TESTSAOT_SGEN_BRIDGE2) test-runner.exe
2602         $(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)
2603 test-sgen-bridge2-ms-conc-par-simple-par-dyn-tarjan-bridge: $(TESTS_SGEN_BRIDGE2) $(TESTSAOT_SGEN_BRIDGE2) test-runner.exe
2604         $(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)
2605 test-sgen-bridge2-ms-conc-par-simple-par-512k-tarjan-bridge: $(TESTS_SGEN_BRIDGE2) $(TESTSAOT_SGEN_BRIDGE2) test-runner.exe
2606         $(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)
2607 test-sgen-bridge2-ms-conc-par-simple-par-32m-tarjan-bridge: $(TESTS_SGEN_BRIDGE2) $(TESTSAOT_SGEN_BRIDGE2) test-runner.exe
2608         $(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)
2610 TESTS_SGEN_BRIDGE3_SRC= \
2611         sgen-bridge-gchandle.cs
2613 TESTS_SGEN_BRIDGE3=$(filter-out $(DISABLED_TESTS),$(TESTS_SGEN_BRIDGE3_SRC:.cs=.exe))
2615 if FULL_AOT_TESTS
2616 TESTSAOT_SGEN_BRIDGE3=$(TESTS_SGEN_BRIDGE3:.exe=.exe$(PLATFORM_AOT_SUFFIX))
2617 endif
2619 if HYBRID_AOT_TESTS
2620 TESTSAOT_SGEN_BRIDGE3=$(TESTS_SGEN_BRIDGE3:.exe=.exe$(PLATFORM_AOT_SUFFIX))
2621 endif
2623 test-sgen-bridge3: $(TESTS_SGEN_BRIDGE3) $(TESTSAOT_SGEN_BRIDGE3)
2624         ok=; \
2625         $(MAKE) test-sgen-bridge3-ms-simple-tarjan-bridge || ok=false; \
2626         $(MAKE) test-sgen-bridge3-ms-conc-simple-tarjan-bridge || ok=false; \
2627         $$ok
2629 test-stress-sgen-bridge3: $(TESTS_SGEN_BRIDGE3) $(TESTSAOT_SGEN_BRIDGE3)
2630         ok=; \
2631         $(MAKE) test-sgen-bridge3-ms-simple-tarjan-bridge MONO_TESTS_STRESS=1 || ok=false; \
2632         $(MAKE) test-sgen-bridge3-ms-conc-simple-tarjan-bridge MONO_TESTS_STRESS=1 || ok=false; \
2633         $(MAKE) test-sgen-bridge3-ms-conc-split-tarjan-bridge MONO_TESTS_STRESS=1 || ok=false; \
2634         $(MAKE) test-sgen-bridge3-ms-conc-simple-new-bridge MONO_TESTS_STRESS=1 || ok=false; \
2635         $(MAKE) test-sgen-bridge3-ms-conc-simple-old-bridge MONO_TESTS_STRESS=1 || ok=false; \
2636         $(MAKE) test-sgen-bridge3-ms-conc-par-simple-par-dyn-tarjan-bridge MONO_TESTS_STRESS=1 || ok=false; \
2637         $(MAKE) test-sgen-bridge3-ms-conc-par-simple-par-512k-tarjan-bridge MONO_TESTS_STRESS=1 || ok=false; \
2638         $(MAKE) test-sgen-bridge3-ms-conc-par-simple-par-32m-tarjan-bridge MONO_TESTS_STRESS=1 || ok=false; \
2639         $$ok
2641 test-sgen-bridge3-ms-simple-tarjan-bridge: $(TESTS_SGEN_BRIDGE3) $(TESTSAOT_SGEN_BRIDGE3) test-runner.exe
2642         $(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)
2643 test-sgen-bridge3-ms-conc-simple-tarjan-bridge: $(TESTS_SGEN_BRIDGE3) $(TESTSAOT_SGEN_BRIDGE3) test-runner.exe
2644         $(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)
2645 test-sgen-bridge3-ms-conc-split-tarjan-bridge: $(TESTS_SGEN_BRIDGE3) $(TESTSAOT_SGEN_BRIDGE3) test-runner.exe
2646         $(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)
2647 test-sgen-bridge3-ms-conc-simple-new-bridge: $(TESTS_SGEN_BRIDGE3) $(TESTSAOT_SGEN_BRIDGE3) test-runner.exe
2648         $(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)
2649 test-sgen-bridge3-ms-conc-simple-old-bridge: $(TESTS_SGEN_BRIDGE3) $(TESTSAOT_SGEN_BRIDGE3) test-runner.exe
2650         $(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)
2651 test-sgen-bridge3-ms-conc-par-simple-par-dyn-tarjan-bridge: $(TESTS_SGEN_BRIDGE3) $(TESTSAOT_SGEN_BRIDGE3) test-runner.exe
2652         $(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)
2653 test-sgen-bridge3-ms-conc-par-simple-par-512k-tarjan-bridge: $(TESTS_SGEN_BRIDGE3) $(TESTSAOT_SGEN_BRIDGE3) test-runner.exe
2654         $(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)
2655 test-sgen-bridge3-ms-conc-par-simple-par-32m-tarjan-bridge: $(TESTS_SGEN_BRIDGE3) $(TESTSAOT_SGEN_BRIDGE3) test-runner.exe
2656         $(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)
2658 TESTS_SGEN_OOM_SRC =    \
2659         sgen-oom-cementing-stress.cs    \
2660         sgen-oom-new-threads-dont-join-stw-2.cs \
2661         sgen-oom-bridge-major-fragmentation.cs \
2662         gc-oom-handling.cs      \
2663         gc-oom-handling2.cs
2665 TESTS_SGEN_OOM=$(filter-out $(DISABLED_TESTS),$(TESTS_SGEN_OOM_SRC:.cs=.exe))
2667 if FULL_AOT_TESTS
2668 TESTSAOT_SGEN_OOM=$(TESTS_SGEN_OOM:.exe=.exe$(PLATFORM_AOT_SUFFIX))
2669 endif
2671 if HYBRID_AOT_TESTS
2672 TESTSAOT_SGEN_OOM=$(TESTS_SGEN_OOM:.exe=.exe$(PLATFORM_AOT_SUFFIX))
2673 endif
2675 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
2676         $(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)
2678 AOT_CONFIGURATIONS=     \
2679         "|regular"      \
2680         "--gc=boehm|boehm"
2682 #LLVM crashes, got to fix it first.
2683 #       "--llvm|llvm"   \
2684 #       "--llvm --gc=boehm|llvm+boehm"
2687 test-aot:
2688         @failed=0; \
2689         passed=0; \
2690         failed_tests="";\
2691         profile=$(DEFAULT_PROFILE);     \
2692         tmpfile=`mktemp -t mono_aot_outputXXXXXX` || exit 1;    \
2693         rm -f test-aot-$${name}.stdout test-aot-$${name}.stderr; \
2694         for assembly in $(mcs_topdir)/class/lib/$$profile/*.dll ; do    \
2695                 asm_name=`basename $$assembly`; \
2696                 echo "... $$asm_name";  \
2697                 for conf in $(AOT_CONFIGURATIONS); do   \
2698                         name=`echo $$conf | cut -d\| -f 2`;     \
2699                         params=`echo $$conf | cut -d\| -f 1`;   \
2700                         test_name="$${asm_name}|$${name}";      \
2701                         echo "  $$test_name";   \
2702                         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;        \
2703                         then \
2704                                 passed=`expr $${passed} + 1`; \
2705                         else \
2706                                 failed=`expr $${failed} + 1`; \
2707                                 failed_tests="$${failed_tests} $$test_name"; \
2708                         fi \
2709                 done;   \
2710         done;   \
2711         rm      $$tmpfile;      \
2712         echo "$${passed} test(s) passed. $${failed} test(s) did not pass."; \
2713         if [ $${failed} != 0 ]; then echo -e "\nFailed tests:\n"; \
2714         for i in $${failed_tests}; do echo $${i}; done; exit 1; fi
2717 # Generated tests for runtime invoke
2718 EXTRA_DIST += gen-runtime-invoke.cs
2720 runtime-invoke.gen.cs: gen-runtime-invoke.exe
2721         $(Q) $(RUNTIME) gen-runtime-invoke.exe > runtime-invoke.gen.cs
2723 EXTRA_DIST += make-imt-test.cs
2725 imt_big_iface_test.cs: make-imt-test.exe
2726         $(Q) $(RUNTIME) make-imt-test.exe > imt_big_iface_test.cs
2728 EXTRA_DIST += test-inline-call-stack-library.cs test-inline-call-stack.cs
2730 test-inline-call-stack-library.dll: $(srcdir)/test-inline-call-stack-library.cs
2731         $(MCS) -t:library -out:$@ $<
2733 test-inline-call-stack.exe$(PLATFORM_AOT_SUFFIX): test-inline-call-stack-library.dll$(PLATFORM_AOT_SUFFIX)
2734 test-inline-call-stack.exe: test-inline-call-stack.cs test-inline-call-stack-library.dll $(TEST_DRIVER_DEPEND)
2735         $(MCS) -r:TestDriver.dll -r:test-inline-call-stack-library.dll -out:$@ $<
2737 EXTRA_DIST += unhandled-exception-base-configuration.config
2738 EXTRA_DIST += unhandled-exception-legacy-configuration.config
2739 EXTRA_DIST += appdomain-unload.exe.config
2740 EXTRA_DIST += unhandled-exception-test-case.2.cs
2741 EXTRA_DIST += unhandled-exception-test-runner.2.cs
2742 unhandled-exception-test-case.1.cs: unhandled-exception-test-case.2.cs
2743         cp unhandled-exception-test-case.2.cs unhandled-exception-test-case.1.cs
2744 unhandled-exception-test-case-legacy.1.cs: unhandled-exception-test-case.1.cs
2745         cp unhandled-exception-test-case.1.cs unhandled-exception-test-case-legacy.1.cs
2746 unhandled-exception-test-case-legacy.2.cs: unhandled-exception-test-case.2.cs
2747         cp unhandled-exception-test-case.2.cs unhandled-exception-test-case-legacy.2.cs
2748 unhandled-exception-config_files: unhandled-exception-base-configuration.config unhandled-exception-legacy-configuration.config
2749         cp unhandled-exception-base-configuration.config unhandled-exception-test-case.1.exe.config
2750         cp unhandled-exception-base-configuration.config unhandled-exception-test-case.2.exe.config
2751         cp unhandled-exception-legacy-configuration.config unhandled-exception-test-case-legacy.1.exe.config
2752         cp unhandled-exception-legacy-configuration.config unhandled-exception-test-case-legacy.2.exe.config
2754 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
2756 test-unhandled-exception: unhandled-exception-test-runner.2.exe
2757         $(Q) $(RUNTIME) unhandled-exception-test-runner.2.exe RUNTIME:../mini/mono,GTC:F
2759 safehandle.2.exe winx64structs.exe thunks.exe pinvoke3.exe pinvoke2.exe pinvoke-2.2.exe pinvoke17.exe pinvoke13.exe \
2760         pinvoke11.exe pinvoke_ppcs.exe pinvoke_ppci.exe pinvoke_ppcf.exe pinvoke_ppcd.exe pinvoke_ppcc.exe pinvoke.exe \
2761         marshalbool.exe marshal9.exe marshal5.exe marshal.exe handleref.exe cominterop.exe bug-Xamarin-5278.exe \
2762         bug-58782-plain-throw.exe bug-58782-capture-and-throw.exe install_eh_callback.exe: libtest.la
2764 event-get.2.exe$(PLATFORM_AOT_SUFFIX): event-il.exe$(PLATFORM_AOT_SUFFIX)
2765 event-get.2.exe: event-il.exe
2767 module-cctor-loader.2.exe$(PLATFORM_AOT_SUFFIX): module-cctor.exe$(PLATFORM_AOT_SUFFIX)
2768 module-cctor-loader.2.exe: module-cctor.exe
2770 reference-loader.exe$(PLATFORM_AOT_SUFFIX): TestingReferenceAssembly.dll$(PLATFORM_AOT_SUFFIX) TestingReferenceReferenceAssembly.dll$(PLATFORM_AOT_SUFFIX)
2771 reference-loader.exe: TestingReferenceAssembly.dll TestingReferenceReferenceAssembly.dll
2773 assemblyresolve_asm.dll$(PLATFORM_AOT_SUFFIX): assemblyresolve_asm.dll assemblyresolve_deps/Test.dll$(PLATFORM_AOT_SUFFIX)
2774         MONO_PATH="assemblyresolve_deps:$(CLASS)" $(top_builddir)/runtime/mono-wrapper $(TEST_AOT_BUILD_FLAGS) assemblyresolve_asm.dll
2775 assemblyresolve_deps/Test.dll$(PLATFORM_AOT_SUFFIX): assemblyresolve_deps/Test.dll assemblyresolve_deps/TestBase.dll$(PLATFORM_AOT_SUFFIX)
2777 EXTRA_DIST += assemblyresolve_TestBase.cs assemblyresolve_Test.cs assemblyresolve_asm.cs 
2778 assemblyresolve_deps:
2779         mkdir -p assemblyresolve_deps
2780 assemblyresolve_deps/TestBase.dll: assemblyresolve_deps $(srcdir)/assemblyresolve_TestBase.cs
2781         $(MCS) -target:library -out:assemblyresolve_deps/TestBase.dll $(srcdir)/assemblyresolve_TestBase.cs
2782 assemblyresolve_deps/Test.dll: assemblyresolve_deps assemblyresolve_deps/TestBase.dll $(srcdir)/assemblyresolve_Test.cs
2783         $(MCS) -target:library -r:assemblyresolve_deps/TestBase.dll -out:assemblyresolve_deps/Test.dll $(srcdir)/assemblyresolve_Test.cs
2784 assemblyresolve_asm.dll: assemblyresolve_deps/Test.dll $(srcdir)/assemblyresolve_asm.cs
2785         $(MCS) -target:library -r:assemblyresolve_deps/TestBase.dll -r:assemblyresolve_deps/Test.dll -out:assemblyresolve_asm.dll $(srcdir)/assemblyresolve_asm.cs
2787 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)
2788 assemblyresolve_event3.exe: assemblyresolve_asm.dll assemblyresolve_deps/Test.dll assemblyresolve_deps/TestBase.dll
2790 assemblyresolve_event4.exe$(PLATFORM_AOT_SUFFIX): assemblyresolve_deps/Test.dll$(PLATFORM_AOT_SUFFIX) assemblyresolve_deps/TestBase.dll$(PLATFORM_AOT_SUFFIX)
2791 assemblyresolve_event4.exe: assemblyresolve_deps/Test.dll assemblyresolve_deps/TestBase.dll
2793 EXTRA_DIST += assemblyresolve_event5_label.cs assemblyresolve_event5_helper.cs
2794 assemblyresolve_deps/assemblyresolve_event5_label.dll: assemblyresolve_event5_label.cs assemblyresolve_deps 
2795         $(MCS) -target:library -out:assemblyresolve_deps/assemblyresolve_event5_label.dll $(srcdir)/assemblyresolve_event5_label.cs
2796 assemblyresolve_event5_helper.dll: assemblyresolve_event5_helper.cs assemblyresolve_deps/assemblyresolve_event5_label.dll
2797         $(MCS) -target:library -out:assemblyresolve_event5_helper.dll -r:assemblyresolve_deps/assemblyresolve_event5_label.dll $(srcdir)/assemblyresolve_event5_helper.cs
2798 assemblyresolve_event5.exe: assemblyresolve_event5_helper.dll
2800 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)
2801 assemblyresolve_event6.exe: assemblyresolve_asm.dll assemblyresolve_deps/Test.dll assemblyresolve_deps/TestBase.dll
2803 # We use 'test-support-files' to handle an ordering issue between the 'mono/' and 'runtime/' directories
2804 bug-80307.exe: $(srcdir)/bug-80307.cs
2805         $(MCS) -r:$(CLASS)/System.Web.dll -out:$@ $(srcdir)/bug-80307.cs
2806         cd $(top_builddir)/runtime && $(MAKE) test-support-files
2808 EXTRA_DIST += bug-81673-interface.cs
2810 bug-81673.exe$(PLATFORM_AOT_SUFFIX): bug-81673-interface.dll$(PLATFORM_AOT_SUFFIX)
2811 bug-81673.exe bug-81673-interface.dll: $(srcdir)/bug-81673.cs $(srcdir)/bug-81673-interface.cs
2812         $(MCS) -target:library -out:bug-81673-interface.dll $(srcdir)/bug-81673-interface.cs
2813         $(MCS) -r:bug-81673-interface.dll -out:bug-81673.exe $(srcdir)/bug-81673.cs
2814         $(MCS) -define:WITH_STOP -target:library -out:bug-81673-interface.dll $(srcdir)/bug-81673-interface.cs
2816 EXTRA_DIST += bug-36848-a.cs
2818 bug-36848.exe$(PLATFORM_AOT_SUFFIX): bug-36848-a.dll$(PLATFORM_AOT_SUFFIX)
2819 bug-36848.exe bug-36848-a.dll: $(srcdir)/bug-36848.cs $(srcdir)/bug-36848-a.cs
2820         $(MCS) -target:library -out:bug-36848-a.dll $(srcdir)/bug-36848-a.cs
2821         $(MCS) -r:bug-36848-a.dll -out:bug-36848.exe $(srcdir)/bug-36848.cs
2822         $(MCS) -define:WITH_STOP -target:library -out:bug-36848-a.dll $(srcdir)/bug-36848-a.cs
2824 EXTRA_DIST += bug-81691-a.cs bug-81691-b.cs
2826 bug-81691.exe$(PLATFORM_AOT_SUFFIX): bug-81691-b.dll$(PLATFORM_AOT_SUFFIX)
2827 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
2828         $(MCS) -target:library -out:bug-81691-a.dll $(srcdir)/bug-81691-a.cs 
2829         $(MCS) -r:bug-81691-a.dll -target:library -out:bug-81691-b.dll $(srcdir)/bug-81691-b.cs
2830         $(MCS) -r:bug-81691-b.dll -out:bug-81691.exe $(srcdir)/bug-81691.cs
2831         rm -f bug-81691-a.dll
2833 EXTRA_DIST += bug-81466-lib.il
2835 bug-81466.exe$(PLATFORM_AOT_SUFFIX): bug-81466-lib.dll$(PLATFORM_AOT_SUFFIX)
2836 bug-81466.exe bug-81466-lib.dll: $(srcdir)/bug-81466.il $(srcdir)/bug-81466-lib.il
2837         $(ILASM) /dll /output:bug-81466-lib.dll $(srcdir)/bug-81466-lib.il
2838         $(ILASM) /exe /output:bug-81466.exe $(srcdir)/bug-81466.il
2840 EXTRA_DIST += bug-324535-il.il
2842 bug-324535.exe$(PLATFORM_AOT_SUFFIX): bug-324535-il.dll$(PLATFORM_AOT_SUFFIX)
2843 bug-324535.exe bug-324535-il.dll: $(srcdir)/bug-324535.cs $(srcdir)/bug-324535-il.il
2844         $(ILASM) /dll /output:bug-324535-il.dll $(srcdir)/bug-324535-il.il
2845         $(MCS) -r:bug-324535-il.dll -out:bug-324535.exe $(srcdir)/bug-324535.cs
2847 EXTRA_DIST += custom-modifiers.2.cs custom-modifiers-lib.il
2849 custom-modifiers.2.exe$(PLATFORM_AOT_SUFFIX): custom-modifiers-lib.dll$(PLATFORM_AOT_SUFFIX)
2850 custom-modifiers.2.exe custom-modifiers-lib.dll: $(srcdir)/custom-modifiers.2.cs $(srcdir)/custom-modifiers-lib.il
2851         $(ILASM) /dll /output:custom-modifiers-lib.dll $(srcdir)/custom-modifiers-lib.il
2852         $(MCS) -r:custom-modifiers-lib.dll -out:custom-modifiers.2.exe $(srcdir)/custom-modifiers.2.cs
2854 EXTRA_DIST += bug-382986-lib.cs
2856 bug-382986.exe$(PLATFORM_AOT_SUFFIX): bug-382986-lib.dll$(PLATFORM_AOT_SUFFIX)
2857 bug-382986.exe bug-382986-lib.dll: $(srcdir)/bug-382986.cs $(srcdir)/bug-382986-lib.cs
2858         $(MCS) -target:library -out:bug-382986-lib.dll $(srcdir)/bug-382986-lib.cs
2859         $(MCS) -r:bug-382986-lib.dll -out:bug-382986.exe $(srcdir)/bug-382986.cs
2861 EXTRA_DIST += bug-17537-helper.cs
2863 bug-17537.exe$(PLATFORM_AOT_SUFFIX): bug-17537-helper.exe$(PLATFORM_AOT_SUFFIX)
2864 bug-17537-helper.exe: $(srcdir)/bug-17537-helper.cs
2865         $(MCS) -out:$@ $<
2866         chmod -x $@
2867 bug-17537.exe: bug-17537-helper.exe
2869 EXTRA_DIST += coreclr-security.cs
2871 test-coreclr-security : coreclr-security.exe
2872         @$(RUNTIME_MOONLIGHT) --security=core-clr-test coreclr-security.exe
2874 EXTRA_DIST += generic-unboxing.2.il generic-boxing.2.il
2876 generic-unboxing.2.dll: $(srcdir)/generic-unboxing.2.il
2877         $(ILASM) /dll /output:$@ $<
2878 generic-boxing.2.dll: $(srcdir)/generic-boxing.2.il generic-unboxing.2.dll
2879         $(ILASM) /dll /output:$@ $<
2881 EXTRA_DIST += generic-unbox.2.cs
2883 generic-unbox.2.exe$(PLATFORM_AOT_SUFFIX): generic-unboxing.2.dll$(PLATFORM_AOT_SUFFIX)
2884 generic-unbox.2.exe: $(srcdir)/generic-unbox.2.cs generic-unboxing.2.dll
2885         $(MCS) -r:generic-unboxing.2.dll -out:$@ $<
2887 EXTRA_DIST += generic-box.2.cs
2889 generic-box.2.exe$(PLATFORM_AOT_SUFFIX): generic-unboxing.2.dll$(PLATFORM_AOT_SUFFIX) generic-boxing.2.dll$(PLATFORM_AOT_SUFFIX)
2890 generic-box.2.exe : $(srcdir)/generic-box.2.cs generic-unboxing.2.dll generic-boxing.2.dll
2891         $(MCS) -r:generic-unboxing.2.dll,generic-boxing.2.dll -out:$@ $<
2893 EXTRA_DIST += generic-delegate2.2.cs generic-delegate2-lib.2.il
2895 generic-delegate2-lib.2.dll: $(srcdir)/generic-delegate2-lib.2.il
2896         $(ILASM) /dll /output:$@ $<
2898 generic-delegate2.2.exe$(PLATFORM_AOT_SUFFIX): generic-delegate2-lib.2.dll$(PLATFORM_AOT_SUFFIX)
2899 generic-delegate2.2.exe: $(srcdir)/generic-delegate2.2.cs generic-delegate2-lib.2.dll
2900         $(MCS) -r:generic-delegate2-lib.2.dll -out:$@ $<
2902 bug-3903.exe: bug-3903.cs
2903         $(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:$@
2905 EXTRA_DIST += appdomain-marshalbyref-assemblyload-MidAssembly.cs appdomain-marshalbyref-assemblyload-LeafAssembly.cs
2907 LeafAssembly.dll: appdomain-marshalbyref-assemblyload-LeafAssembly.cs
2908         mkdir -p appdomain-marshalbyref-assemblyload1
2909         $(MCS) -target:library -out:$@ $<
2911 appdomain-marshalbyref-assemblyload2/LeafAssembly.dll: appdomain-marshalbyref-assemblyload-LeafAssembly.cs
2912         mkdir -p appdomain-marshalbyref-assemblyload2
2913         $(MCS) -target:library -out:$@ $< -define:UNDEFINE_OTHER_METHOD
2915 MidAssembly.dll: appdomain-marshalbyref-assemblyload-MidAssembly.cs LeafAssembly.dll
2916         mkdir -p appdomain-marshalbyref-assemblyload1
2917         $(MCS) -target:library -out:$@ $< -r:LeafAssembly.dll
2919 appdomain-marshalbyref-assemblyload.exe: appdomain-marshalbyref-assemblyload.cs MidAssembly.dll LeafAssembly.dll appdomain-marshalbyref-assemblyload2/LeafAssembly.dll
2920         $(MCS) -out:$@ $< -r:MidAssembly.dll -r:LeafAssembly.dll
2922 assembly-load-dir1/Lib.dll: assembly-load-dir1/Lib.cs
2923         $(MKDIR_P) $(dir $@)
2924         $(MCS) -target:library -out:$@ $<
2925 assembly-load-dir2/Lib.dll: assembly-load-dir2/Lib.cs
2926         $(MKDIR_P) $(dir $@)
2927         $(MCS) -target:library -out:$@ $<
2929 assembly-load-dir1/LibStrongName.dll: assembly-load-dir1/LibStrongName.cs testing_gac/testkey.snk
2930         $(MKDIR_P) $(dir $@)
2931         $(MCS) -target:library -out:$@ $< -keyfile:$(dir $<)../testing_gac/testkey.snk
2933 assembly-load-dir2/LibStrongName.dll: assembly-load-dir2/LibStrongName.cs testing_gac/testkey.snk
2934         $(MKDIR_P) $(dir $@)
2935         $(MCS) -target:library -out:$@ $< -keyfile:$(dir $<)../testing_gac/testkey.snk
2937 EXTRA_DIST += assembly-load-dir1/Lib.cs assembly-load-dir2/Lib.cs \
2938         assembly-load-dir1/LibStrongName.cs assembly-load-dir2/LibStrongName.cs
2940 assembly-load-bytes.exe: assembly-load-dir1/Lib.dll assembly-load-dir2/Lib.dll
2942 assembly-loadfrom.exe$(PLATFORM_AOT_SUFFIX): assembly-load-dir1/Lib.dll$(PLATFORM_AOT_SUFFIX) assembly-load-dir2/Lib.dll$(PLATFORM_AOT_SUFFIX)
2943 assembly-loadfrom.exe: assembly-load-dir1/Lib.dll assembly-load-dir2/Lib.dll
2945 assembly-loadfile.exe$(PLATFORM_AOT_SUFFIX): assembly-load-dir1/Lib.dll$(PLATFORM_AOT_SUFFIX) assembly-load-dir2/Lib.dll$(PLATFORM_AOT_SUFFIX)
2946 assembly-loadfile.exe: assembly-load-dir1/Lib.dll assembly-load-dir2/Lib.dll
2948 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
2949 assembly-loadfrom-bindingredirect.exe: assembly-load-dir1/LibStrongName.dll assembly-load-dir2/LibStrongName.dll assembly-loadfrom-bindingredirect.exe.config
2951 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
2952 assembly-loadfile-bindingredirect.exe: assembly-load-dir1/LibStrongName.dll assembly-load-dir2/LibStrongName.dll assembly-loadfile-bindingredirect.exe.config
2954 assembly-load-bytes-bindingredirect.exe: assembly-load-dir1/LibStrongName.dll assembly-load-dir2/LibStrongName.dll assembly-load-bytes-bindingredirect.exe.config
2956 EXTRA_DIST += assembly-loadfrom-bindingredirect.exe.config assembly-loadfile-bindingredirect.exe.config assembly-load-bytes-bindingredirect.exe.config
2959 assembly-load-dir1/LibSimpleName.dll: assembly-load-dir1/LibSimpleName.cs
2960         $(MKDIR_P) $(dir $@)
2961         $(MCS) -target:library -out:$@ $<
2963 # NOTE: unlike assembly-load-dir1/LibSimpleName.dll, the output name here is in all lower case!
2964 assembly-load-dir2/libsimplename.dll: assembly-load-dir2/LibSimpleName.cs
2965         $(MKDIR_P) $(dir $@)
2966         $(MCS) -target:library -out:$@ $<
2968 assembly-dep-simplename.dll: assembly-dep-simplename.cs assembly-load-dir1/LibSimpleName.dll
2969         $(MCS) -target:library -out:$@ $< -r:assembly-load-dir1/LibSimpleName.dll
2971 # NOTE: while we compile assembly-dep-simplename.dll using assembly-load-dir1, we AOT it using assembly-load-dir2
2972 #  (So that the AOT image has the right GUID of the referenced assembly baked in)
2973 assembly-dep-simplename.dll$(PLATFORM_AOT_SUFFIX): assembly-dep-simplename.dll assembly-load-dir2/libsimplename.dll$(PLATFORM_AOT_SUFFIX)
2974         MONO_PATH=$(CLASS):assembly-load-dir2 $(top_builddir)/runtime/mono-wrapper $(TEST_AOT_BUILD_FLAGS) --aot-path=assembly-load-dir2 assembly-dep-simplename.dll
2976 EXTRA_DIST += assembly-load-dir1/LibSimpleName.cs assembly-load-dir2/LibSimpleName.cs \
2977         assembly-dep-simplename.cs
2979 assembly-loadfrom-simplename.exe: assembly-dep-simplename.dll assembly-load-dir2/libsimplename.dll
2981 assembly-loadfrom-simplename.exe$(PLATFORM_AOT_SUFFIX): assembly-load-dir2/libsimplename.dll$(PLATFORM_AOT_SUFFIX) assembly-dep-simplename.dll$(PLATFORM_AOT_SUFFIX)
2983 gshared:
2984         $(MAKE) test-generic-sharing
2986 gshared-aot:
2987         @$(MAKE) AOT=1 gshared
2989 test-generic-sharing-normal: $(TESTS_GSHARED) $(TESTSAOT_GSHARED)
2990         @for fn in $+ ; do      \
2991                 echo "Testing $$fn ...";        \
2992                 $(RUNTIME) -O=gshared                $$fn > $$fn.stdout || exit 1;      \
2993                 $(RUNTIME) -O=gshared,shared         $$fn > $$fn.stdout || exit 1;      \
2994                 $(RUNTIME) -O=gshared,-inline        $$fn > $$fn.stdout || exit 1;      \
2995                 $(RUNTIME) -O=gshared,-inline,shared $$fn > $fn.stdout || exit 1;       \
2996                 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; \
2997         done
2999 test-generic-sharing-managed: test-runner.exe $(TESTS_GSHARED) $(TESTSAOT_GSHARED) 
3000         $(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)
3002 test-generic-sharing:
3003         @if test x$(M) != x0; then $(MAKE) test-generic-sharing-managed; else $(MAKE) test-generic-sharing-normal; fi
3005 EXTRA_DIST += async-exceptions.cs
3006 async-exceptions.exe : async-exceptions.cs
3007         $(MCS) -out:async-exceptions.exe $(srcdir)/async-exceptions.cs
3008 test-async-exceptions : async-exceptions.exe
3009         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
3010         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
3012 EXTRA_DIST += modules.cs modules-m1.cs
3013 modules-m1.netmodule: modules-m1.cs
3014         $(MCS) -out:$@ /target:module $(srcdir)/modules-m1.cs
3015 modules.exe: modules.cs modules-m1.netmodule $(TEST_DRIVER_DEPEND) 
3016         $(MCS) -out:$@ /addmodule:modules-m1.netmodule -r:TestDriver.dll $(srcdir)/modules.cs
3018 # Useful if mono is compiled with --enable-shared=no
3019 patch-libtool:
3020         cp "../../libtool" .
3021         sed -e 's,build_libtool_libs=no,build_libtool_libs=yes,g' libtool > 2; mv 2 libtool
3022         sed -e 's,LIBTOOL =,LIBTOOL2 =,g' Makefile > 2 && echo "LIBTOOL = bash ./libtool" > 1 && cat 1 2 > Makefile
3023         touch libtest.c
3026 EXTRA_DIST += threadpool-in-processexit.cs threadpool-in-processexit.exe.stdout.expected
3027 test-process-exit:
3028         @$(MCS) $(srcdir)/threadpool-in-processexit.cs -out:threadpool-in-processexit.exe
3029         @echo "Testing threadpool-in-processexit.exe..."
3030         @$(RUNTIME) threadpool-in-processexit.exe > threadpool-in-processexit.exe.stdout
3031         @diff -w threadpool-in-processexit.exe.stdout $(srcdir)/threadpool-in-processexit.exe.stdout.expected
3033 # tests that expect a 1 exit code
3034 TESTS_UNHANDLED_EXCEPTION_1_SRC =       \
3035         unhandled-exception-1.cs        \
3036         unhandled-exception-9.cs
3038 # tests that expect a 255 exit code
3039 TESTS_UNHANDLED_EXCEPTION_255_SRC =     \
3040         unhandled-exception-2.cs        \
3041         unhandled-exception-3.cs        \
3042         unhandled-exception-4.cs        \
3043         unhandled-exception-5.cs        \
3044         unhandled-exception-6.cs        \
3045         unhandled-exception-7.cs        \
3046         unhandled-exception-8.cs        \
3047         threadpool-exceptions2.cs       \
3048         threadpool-exceptions5.cs
3050 TESTS_UNHANDLED_EXCEPTION_1=$(filter-out $(DISABLED_TESTS),$(TESTS_UNHANDLED_EXCEPTION_1_SRC:.cs=.exe))
3051 TESTS_UNHANDLED_EXCEPTION_255=$(filter-out $(DISABLED_TESTS),$(TESTS_UNHANDLED_EXCEPTION_255_SRC:.cs=.exe))
3053 if FULL_AOT_TESTS
3054 TESTSAOT_UNHANDLED_EXCEPTION_1=$(TESTS_UNHANDLED_EXCEPTION_1:.exe=.exe$(PLATFORM_AOT_SUFFIX))
3055 TESTSAOT_UNHANDLED_EXCEPTION_255=$(TESTS_UNHANDLED_EXCEPTION_255:.exe=.exe$(PLATFORM_AOT_SUFFIX))
3056 endif
3058 if HYBRID_AOT_TESTS
3059 TESTSAOT_UNHANDLED_EXCEPTION_1=$(TESTS_UNHANDLED_EXCEPTION_1:.exe=.exe$(PLATFORM_AOT_SUFFIX))
3060 TESTSAOT_UNHANDLED_EXCEPTION_255=$(TESTS_UNHANDLED_EXCEPTION_255:.exe=.exe$(PLATFORM_AOT_SUFFIX))
3061 endif
3063 test-unhandled-exception-2: $(TESTS_UNHANDLED_EXCEPTION_1) $(TESTS_UNHANDLED_EXCEPTION_255) $(TESTSAOT_UNHANDLED_EXCEPTION_1) $(TESTSAOT_UNHANDLED_EXCEPTION_255)
3064         ok=; \
3065         $(MAKE) test-unhandled-exception-2-1-with-managed-handler || ok=false; \
3066         $(MAKE) test-unhandled-exception-2-1-without-managed-handler || ok=false; \
3067         $(MAKE) test-unhandled-exception-2-255-with-managed-handler || ok=false; \
3068         $(MAKE) test-unhandled-exception-2-255-without-managed-handler || ok=false; \
3069         $$ok
3071 test-unhandled-exception-2-1-with-managed-handler: $(TESTS_UNHANDLED_EXCEPTION_1) $(TESTSAOT_UNHANDLED_EXCEPTION_1) test-runner.exe
3072         $(TOOLS_RUNTIME) $(TEST_RUNNER) -j a --testsuite-name $@ --disabled "$(DISABLED_TESTS)" --expected-exit-code 1 $(TESTS_UNHANDLED_EXCEPTION_1)
3073 test-unhandled-exception-2-1-without-managed-handler: $(TESTS_UNHANDLED_EXCEPTION_1) $(TESTSAOT_UNHANDLED_EXCEPTION_1) test-runner.exe
3074         TEST_UNHANDLED_EXCEPTION_HANDLER=1 $(TOOLS_RUNTIME) $(TEST_RUNNER) -j a --testsuite-name $@ --disabled "$(DISABLED_TESTS)" --expected-exit-code 1 $(TESTS_UNHANDLED_EXCEPTION_1)
3075 test-unhandled-exception-2-255-with-managed-handler: $(TESTS_UNHANDLED_EXCEPTION_255) $(TESTSAOT_UNHANDLED_EXCEPTION_255) test-runner.exe
3076         $(TOOLS_RUNTIME) $(TEST_RUNNER) -j a --testsuite-name $@ --disabled "$(DISABLED_TESTS)" --expected-exit-code 255 $(TESTS_UNHANDLED_EXCEPTION_255)
3077 test-unhandled-exception-2-255-without-managed-handler: $(TESTS_UNHANDLED_EXCEPTION_255) $(TESTSAOT_UNHANDLED_EXCEPTION_255) test-runner.exe
3078         TEST_UNHANDLED_EXCEPTION_HANDLER=1 $(TOOLS_RUNTIME) $(TEST_RUNNER) -j a --testsuite-name $@ --disabled "$(DISABLED_TESTS)" --expected-exit-code 255 $(TESTS_UNHANDLED_EXCEPTION_255)
3080 EXTRA_DIST += appdomain-loader.cs appdomain-tester.cs
3082 if FULL_AOT_TESTS
3083 test-appdomain-unload:
3084 else
3085 appdomain-loader.exe: appdomain-tester.exe
3087 test-appdomain-unload: appdomain-loader.exe appdomain-tester.exe
3088         $(RUNTIME) -O=gshared appdomain-loader.exe > appdomain-loader.exe.1.stdout || exit 1;
3089         $(RUNTIME) appdomain-loader.exe > appdomain-loader.exe.2.stdout || exit 1;
3090         MONO_DEBUG_ASSEMBLY_UNLOAD=1 $(RUNTIME) -O=gshared appdomain-loader.exe > appdomain-loader.exe.3.stdout || exit 1;
3091         MONO_DEBUG_ASSEMBLY_UNLOAD=1 $(RUNTIME) appdomain-loader.exe > appdomain-loader.exe.4.stdout || exit 1;
3092 endif
3094 EXTRA_DIST += console-output.cs console-output.exe.stderr.expected console-output.exe.stdout.expected
3095 test-console-output: console-output.exe
3096         @$(RUNTIME) console-output.exe 1>console-output.exe.stdout
3097         @$(RUNTIME) console-output.exe 2>console-output.exe.stderr
3098         @diff -w console-output.exe.stdout $(srcdir)/console-output.exe.stdout.expected \
3099                 && diff -w console-output.exe.stderr $(srcdir)/console-output.exe.stderr.expected
3101 test-pedump: test-runner.exe
3102         $(with_mono_path) $(mono_build_root)/tools/pedump/pedump --verify error test-runner.exe
3104 .PHONY: test-gac-loading test-eglib-remap
3106 runtest-gac-loading: test-runner.exe
3107         $(MAKE) -C testing_gac run-test
3109 compile-gac-loading:
3110         $(MAKE) -C testing_gac test
3112 runtest-assembly-load-reference: test-runner.exe
3113         $(MAKE) -C assembly-load-reference run-test
3115 compile-assembly-load-reference:
3116         $(MAKE) -C assembly-load-reference test
3119 TESTS_STRESS_PROCESS_SRC=       \
3120                 process-stress-1.cs     \
3121                 process-stress-2.cs     \
3122                 process-stress-3.cs     \
3123                 process-leak.cs
3125 TESTS_STRESS_PROCESS=$(filter-out $(DISABLED_TESTS),$(TESTS_STRESS_PROCESS_SRC:.cs=.exe))
3127 if FULL_AOT_TESTS
3128 TESTSAOT_STRESS_PROCESS=$(TESTS_STRESS_PROCESS:.exe=.exe$(PLATFORM_AOT_SUFFIX))
3129 endif
3131 if HYBRID_AOT_TESTS
3132 TESTSAOT_STRESS_PROCESS=$(TESTS_STRESS_PROCESS:.exe=.exe$(PLATFORM_AOT_SUFFIX))
3133 endif
3135 test-process-stress: $(TESTS_STRESS_PROCESS) $(TESTSAOT_STRESS_PROCESS) test-runner.exe
3136         $(TOOLS_RUNTIME) $(TEST_RUNNER) --testsuite-name $@ --disabled "$(DISABLED_TESTS)" --timeout 900 $(TESTS_STRESS_PROCESS)
3138 coreclr-gcstress:
3139         $(MAKE) -C $(mono_build_root)/acceptance-tests coreclr-gcstress
3141 # Tests for the Mono lldb plugin
3142 EXTRA_DIST += test_lldb.py test-lldb.cs
3143 test-lldb: test-lldb.exe
3144         python test_lldb.py $(JITTEST_PROG)
3146 noinst_LTLIBRARIES = libtest.la
3148 AM_CPPFLAGS = $(GLIB_CFLAGS)
3150 if HOST_WIN32
3151 # gcc-3.4.4 emits incorrect code when making indirect calls to stdcall functions using a tail call
3152 # This shows up when compiling mono_test_marshal_delegate ()
3153 libtest_la_CFLAGS=-fno-optimize-sibling-calls
3154 # the exported names created by gcc for stdcall functions are missing the leading _, so MS.NET
3155 # can't find them. So we use --kill-at to remove the @ suffix as well.
3156 libtest_la_LDFLAGS = -no-undefined -rpath `pwd` -Wl,--kill-at
3157 else
3158 libtest_la_LDFLAGS = -no-undefined -rpath `pwd`
3159 endif
3160 libtest_la_SOURCES = libtest.c
3161 libtest_la_LIBADD = $(top_builddir)/mono/eglib/libeglib.la
3163 INTERNALSVISIBLETO_TEST_SRC = \
3164         internalsvisibleto-runtimetest.cs \
3165         internalsvisibleto-compilertest.cs
3167 INTERNALSVISIBLETO_TEST_LIB_SRC = \
3168         internalsvisibleto-library.cs
3170 INTERNALSVISIBLETO_TEST_LIBS = \
3171         internalsvisibleto-correctcase.dll \
3172         internalsvisibleto-wrongcase.dll \
3173         internalsvisibleto-correctcase-2.dll \
3174         internalsvisibleto-wrongcase-2.dll \
3175         internalsvisibleto-correctcase-sign2048.dll \
3176         internalsvisibleto-wrongcase-sign2048.dll \
3177         internalsvisibleto-correctcase-2-sign2048.dll \
3178         internalsvisibleto-wrongcase-2-sign2048.dll
3181 INTERNALSVISIBLETO_TEST = \
3182         $(INTERNALSVISIBLETO_TEST_SRC:.cs=.exe) \
3183         $(INTERNALSVISIBLETO_TEST_SRC:.cs=-sign2048.exe)
3185 if FULL_AOT_TESTS
3186 INTERNALSVISIBLETO_TESTAOT = \
3187         $(INTERNALSVISIBLETO_TEST:.exe=.exe$(PLATFORM_AOT_SUFFIX))
3188 INTERNALSVISIBLETO_TESTAOT_LIBS = \
3189         $(INTERNALSVISIBLETO_TEST_LIBS:.dll=.dll$(PLATFORM_AOT_SUFFIX))
3190 endif
3192 if HYBRID_AOT_TESTS
3193 INTERNALSVISIBLETO_TESTAOT = \
3194         $(INTERNALSVISIBLETO_TEST:.exe=.exe$(PLATFORM_AOT_SUFFIX))
3195 INTERNALSVISIBLETO_TESTAOT_LIBS = \
3196         $(INTERNALSVISIBLETO_TEST_LIBS:.dll=.dll$(PLATFORM_AOT_SUFFIX))
3197 endif
3199 EXTRA_DIST += $(INTERNALSVISIBLETO_TEST_SRC) $(INTERNALSVISIBLETO_TEST_LIB_SRC)
3201 test-internalsvisibleto: test-runner.exe $(INTERNALSVISIBLETO_TEST) $(INTERNALSVISIBLETO_TESTAOT) $(INTERNALSVISIBLETO_TESTAOT_LIBS)
3202         $(TOOLS_RUNTIME) $(TEST_RUNNER) --testsuite-name $@ $(INTERNALSVISIBLETO_TEST)
3204 internalsvisibleto-correctcase.dll internalsvisibleto-wrongcase.dll internalsvisibleto-runtimetest.exe: internalsvisibleto-runtimetest.cs internalsvisibleto-library.cs
3205         $(Q) $(MCS_NO_UNSAFE) -out:internalsvisibleto-correctcase.dll -target:library -d:CORRECT_CASE -d:PERMISSIVE internalsvisibleto-library.cs       
3206         $(Q) $(MCS_NO_UNSAFE) -out:internalsvisibleto-wrongcase.dll -target:library -d:WRONG_CASE -d:PERMISSIVE internalsvisibleto-library.cs
3207         $(Q) $(MCS_NO_UNSAFE) -out:internalsvisibleto-runtimetest.exe -warn:0 -r:internalsvisibleto-correctcase.dll -r:internalsvisibleto-wrongcase.dll internalsvisibleto-runtimetest.cs
3208         $(Q) $(MCS_NO_UNSAFE) -out:internalsvisibleto-correctcase.dll -target:library -d:CORRECT_CASE internalsvisibleto-library.cs     
3209         $(Q) $(MCS_NO_UNSAFE) -out:internalsvisibleto-wrongcase.dll -target:library -d:WRONG_CASE internalsvisibleto-library.cs
3211 internalsvisibleto-correctcase-2.dll internalsvisibleto-wrongcase-2.dll  internalsvisibleto-compilertest.exe: internalsvisibleto-compilertest.cs internalsvisibleto-library.cs
3212         $(Q) $(MCS_NO_UNSAFE) -out:internalsvisibleto-correctcase-2.dll -target:library -d:CORRECT_CASE internalsvisibleto-library.cs   
3213         $(Q) $(MCS_NO_UNSAFE) -out:internalsvisibleto-wrongcase-2.dll -target:library -d:WRONG_CASE internalsvisibleto-library.cs
3214         $(Q) $(MCS_NO_UNSAFE) -out:internalsvisibleto-compilertest.exe -warn:0 -r:internalsvisibleto-correctcase-2.dll -r:internalsvisibleto-wrongcase-2.dll internalsvisibleto-compilertest.cs
3216 internalsvisibleto-correctcase-sign2048.dll internalsvisibleto-wrongcase-sign2048.dll internalsvisibleto-runtimetest-sign2048.exe: internalsvisibleto-runtimetest.cs internalsvisibleto-library.cs internalsvisibleto-2048.snk
3217         $(Q) $(MCS_NO_UNSAFE) -out:internalsvisibleto-correctcase-sign2048.dll -target:library -d:CORRECT_CASE -d:PERMISSIVE -d:SIGN2048 internalsvisibleto-library.cs
3218         $(Q) $(MCS_NO_UNSAFE) -out:internalsvisibleto-wrongcase-sign2048.dll -target:library -d:WRONG_CASE -d:PERMISSIVE -d:SIGN2048 internalsvisibleto-library.cs
3219         $(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
3220         $(Q) $(MCS_NO_UNSAFE) -out:internalsvisibleto-correctcase-sign2048.dll -target:library -d:CORRECT_CASE -d:SIGN2048 internalsvisibleto-library.cs
3221         $(Q) $(MCS_NO_UNSAFE) -out:internalsvisibleto-wrongcase-sign2048.dll -target:library -d:WRONG_CASE -d:SIGN2048 internalsvisibleto-library.cs
3223 internalsvisibleto-correctcase-2-sign2048.dll internalsvisibleto-wrongcase-2-sign2048.dll internalsvisibleto-compilertest-sign2048.exe: internalsvisibleto-compilertest.cs internalsvisibleto-library.cs internalsvisibleto-2048.snk
3224         $(Q) $(MCS_NO_UNSAFE) -out:internalsvisibleto-correctcase-2-sign2048.dll -target:library -d:CORRECT_CASE -d:SIGN2048 internalsvisibleto-library.cs      
3225         $(Q) $(MCS_NO_UNSAFE) -out:internalsvisibleto-wrongcase-2-sign2048.dll -target:library -d:WRONG_CASE -d:SIGN2048 internalsvisibleto-library.cs
3226         $(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
3228 EXTRA_DIST += internalsvisibleto-runtimetest.cs internalsvisibleto-compilertest.cs internalsvisibleto-library.cs internalsvisibleto-2048.snk
3230 EXTRA_DIST += weakattribute.cs
3232 # Contains copies of types which don't exist in the desktop profile so tests can use them
3233 Mono.Runtime.Testing.dll: weakattribute.cs
3234         $(MCS) -target:library -out:$@ $<
3236 weak-fields.exe: weak-fields.cs Mono.Runtime.Testing.dll
3237         $(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:$@ $<
3239 CLEANFILES = $(TESTS_REGULAR) $(TESTS_STRESS) $(TESTSAOT_CS) $(TESTSAOT_IL) $(TESTSAOT_BENCH) $(TESTSAOT_STRESS) *.dll *.stdout *.aotlog *.exe stest.dat LeafAssembly.dll MidAssembly.dll appdomain-marshalbyref-assemblyload2/*.dll 
3240 CLEANFILES += $(TESTS_TAILCALL_COMPILE) $(TESTSAOT_TAILCALL)
3241 CLEANFILES += $(BUILT_SOURCES)