Siegfried Pammer
0f9de78f02
Run the decompiler test suite on Linux
...
Compilation uses the .NET builds of the Roslyn toolsets (tasks/netcore*,
bincore csc.dll/vbc.dll launched through the dotnet host). ilasm/ildasm
options use the '-' prefix, which all platforms accept. The dotnet-hosted
compilers have no implicit references or SDK path: net40 compiles pass
mscorlib explicitly, and vbc gets -sdkpath, _MYTYPE=Empty and
-vbruntime:Microsoft.VisualBasic.Core.dll (the facade in the ref packs is
not followed for runtime helpers). The TestRunner gets a self-contained
build for the host platform.
Configurations depending on Windows-only tools or runtimes (legacy
csc/vbc, Roslyn 1.x/2.x, mcs, Force32Bit, executing net40 binaries) are
filtered from the matrix off-Windows via Tester.SupportedOnCurrentPlatform
or gated with [Platform("Win")]. PdbGen comparisons normalize document
name separators, and Correctness/Async uses Console.IsInputRedirected
instead of the Windows-only Console.CapsLock.
Assisted-by: Claude:claude-fable-5:Claude Code
4 weeks ago
Siegfried Pammer
7a8a978963
Add CompilerOptions.UseRoslyn4_14_0
3 months ago
Siegfried Pammer
9f77f8a919
Prevent inlining of call arguments when doing so would change order of evaluation with regards to the implicit ldobj performed by a constrained.callvirt.
1 year ago
Christoph Wille
8373ac752e
v9.0 RC Designation ( #3357 )
...
* v9.0 RC designation
* Ambiguous reference errors fixed
2 years ago
Christoph Wille
c940cbc1d9
Add TestsAssemblyOutput, keep existing behavior of output assembly locations
2 years ago
Daniel Grunwald
38e7ab4373
Fix #3110 : Add support for MCS 2.6.4 pinned region with array variable
...
* Added additional code to remove the conv instruction present in the initialization part of the pinned region.
* Extended the code responsible for removing the unpin stloc to correctly match the inverted condition found in MCS 2.6.4 compiled code.
* Enabled already present correctness test to run for MCS 2.6.4.
This is a more generalized version of the fix on PR #3110 proposed by @ElektroKill .
2 years ago
Christoph Wille
fba0dbae8d
Migrate to NUnit 4 ( #3132 )
...
* Migrate to NUnit 4 based on https://docs.nunit.org/articles/nunit/release-notes/Nunit4.0-MigrationGuide.html . Needed fix for https://github.com/nunit/nunit/issues/4564
* Test 4.1.0-adev.1 from NUnit MyGet feed (works locally in VS)
* Update to bugfix version adev.2 (works on GH)
* NUnit 4.0.1 final
3 years ago
Siegfried Pammer
b9f6c88ed0
Fix parameters for StackTests test case.
3 years ago
ElektroKill
26944e424d
Enable MiniJSON test for MCS 2.6.4
4 years ago
Siegfried Pammer
6139d9d58e
Delete created temp files if test execution was successful.
4 years ago
Siegfried Pammer
006bc18a96
Run ComInterop test case only on .NET 4.0.
4 years ago
Zachary Northrup
abf36b0f43
Add a unit test validating that COM V-table ordering doesn't change with mixed properties, methods, and events
4 years ago
Siegfried Pammer
44dee6ecc2
Add additional tests for .NET 4.0
4 years ago
Siegfried Pammer
d85759f505
Force StackTests to use 32-bit runner
4 years ago
Siegfried Pammer
e4b63f7a35
- Make all tests async.
...
- Use custom test runner for correctness tests.
- Use .NET 6.0 framework for all Roslyn compiler tests.
- Disabled tests involving new string interpolation patterns.
4 years ago
Siegfried Pammer
9e54b44b11
Move ILSpy to net6.0-windows
4 years ago
Siegfried Pammer
7b3940a818
Add test configuration for mcs 5.23.0
5 years ago
Siegfried Pammer
30f9a82fbe
Add Roslyn 3.11.0 as separate test configuration. Update RoslynLatest to 4.0.0. Use LanguageVersion.CSharp9_0 instead of Preview. Add LanguageVersion.CSharp10_0.
5 years ago
Siegfried Pammer
d2fc380e0e
Fix #2349 : Use proper ExpressionType with DynamicCompoundAssign.
5 years ago
Siegfried Pammer
be57dc454c
Run tests with different versions of Roslyn
6 years ago
Daniel Grunwald
bb99e9668a
Fix #2115 : Re-introduce the evaluation order bug #2050 when a language version <=C# 5 is selected.
6 years ago
dotnet format
0d9f871a4f
#2128 : Reformat the whole code base.
6 years ago
Siegfried Pammer
b435c07f4d
Added support for deconstruction assignments to properties
6 years ago
Daniel Grunwald
62fcab8d99
#2050 : Allow inlining into the StObj target slot when this is possible without changing the program semantics.
6 years ago
Daniel Grunwald
a1c211f326
Fix #1794 : Avoid extra cast to double for ulong -> float conversion
7 years ago
Daniel Grunwald
c32361d464
#1691 : Avoid replacing string.Concat() with operator+ when the evaluation order depends on the compiler version.
7 years ago
Siegfried Pammer
e9a020062d
Add more RefLocalsAndReturns pretty tests.
7 years ago
Siegfried Pammer
b83cb41f2e
Add pretty tests for local functions.
7 years ago
Daniel Grunwald
8ff34e5c8b
Try to workaround non-deterministic test failures.
7 years ago
Daniel Grunwald
b7b697ff03
Only reference Microsoft.VisualBasic.dll in VB-related tests.
...
This fixes compiling CustomAttributeConflicts.cs with legacy csc.
7 years ago
Siegfried Pammer
8480acf9e5
Add StackTests.il test case.
7 years ago
Daniel Grunwald
ba8b453b36
Fix #1404 : local variables with init flag are not declared in the correct scope
8 years ago
Daniel Grunwald
0c0ac6ea44
Add RunVB() for VB correctness tests
8 years ago
Siegfried Pammer
cf1d05042f
Add detection of local functions, so we do not hide the methods/display classes.
8 years ago
Siegfried Pammer
8cbf724901
Move CustomAttributeTests to PrettyTestRunner
8 years ago
Daniel Grunwald
bf64e754df
Use MetadataToken for type lookups within the current assembly.
8 years ago
Siegfried Pammer
704eec86ae
Add basic unit tests for ref returns, locals and conditional
8 years ago
Siegfried Pammer
bfda422f1a
Remove mcs from async tests
8 years ago
Siegfried Pammer
7f210b585a
Rename CompilerOptions to CSharpCompilerOptions and add Tester.CompileVB
8 years ago
Siegfried Pammer
9b665b7cbc
Add AwaitInCatchTransform
8 years ago
Siegfried Pammer
7544eac5b4
Add support for mcs 2.6.4 switch-on-string
8 years ago
Daniel Grunwald
eb6119eb7d
Only use mcs for the first compilation pass. Consistently run test cases using .NET 4.x runtime.
8 years ago
Daniel Grunwald
d9a28314f9
Upgrade to NUnit 3.9 and enable parallel test execution.
8 years ago
Daniel Grunwald
3fae36dab9
Use mcs for correctness tests.
8 years ago
Siegfried Pammer
97b7089aa7
Add CompilerOptions.UseMcs to Tester
8 years ago
Daniel Grunwald
228419b4f0
Fix interaction of ?. with using-transform.
9 years ago
Daniel Grunwald
ca0fa55af8
Implement null propagation transform.
9 years ago
Siegfried Pammer
f59504bbce
Fix bug in StringInterpolation transform: do not transform if arguments use string literals, nested string literals are not allowed.
9 years ago
Daniel Grunwald
87a03bde70
Add test case for #981 , and fix decompilation of ?: operator on StackType.Ref (necessary to make the testcase compile).
9 years ago
Siegfried Pammer
d412de58b9
Commit first test case.
9 years ago