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