-
-
Notifications
You must be signed in to change notification settings - Fork 51
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Add some nativeaot test cases (#426)
Add some validations to the NativeAOT code.
- Loading branch information
1 parent
39223d3
commit 47bb0bf
Showing
7 changed files
with
284 additions
and
23 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,14 @@ | ||
dotnet build FlatSharp.Compiler/FlatSharp.Compiler.csproj -c Release -f net8.0 | ||
|
||
# Native AOT stuff | ||
$fbs = (gci -r Tests/CompileTests/NativeAot/*.fbs) -join ";" | ||
dotnet FlatSharp.Compiler/bin/Release/net8.0/FlatSharp.Compiler.dll --nullable-warnings false --normalize-field-names true --input "$fbs" -o Tests/CompileTests/NativeAot | ||
|
||
# Stryker stuff | ||
$fbs = (gci -r Tests/Stryker/*.fbs) -join ";" | ||
dotnet FlatSharp.Compiler/bin/Release/net8.0/FlatSharp.Compiler.dll --nullable-warnings false --normalize-field-names true --input "$fbs" -o Tests/Stryker/CodeGen --mutation-testing-mode | ||
|
||
# CSharp8 Stuff | ||
$fbs = (gci -r Tests/FlatsharpEndToEndTests/*.fbs | where Name -ne "AccessModifiers.fbs") -join ";" | ||
dotnet FlatSharp.Compiler/bin/Release/net8.0/FlatSharp.Compiler.dll --nullable-warnings false --normalize-field-names true --input "$fbs" -o Tests/CompileTests/CSharp8 | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Empty file.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,43 @@ | ||
|
||
Microsoft Visual Studio Solution File, Format Version 12.00 | ||
# Visual Studio Version 17 | ||
VisualStudioVersion = 17.9.34616.47 | ||
MinimumVisualStudioVersion = 10.0.40219.1 | ||
Project("{9A19103F-16F7-4668-BE54-9A1E7A4F7556}") = "CodeGen", "CodeGen\CodeGen.csproj", "{BF559FD5-F496-4721-B762-2EA5A35D1F45}" | ||
EndProject | ||
Project("{9A19103F-16F7-4668-BE54-9A1E7A4F7556}") = "StrykerTests", "Tests\StrykerTests.csproj", "{0EEC851E-71B5-453F-BE02-645BBC959136}" | ||
EndProject | ||
Project("{9A19103F-16F7-4668-BE54-9A1E7A4F7556}") = "FlatSharp.Runtime", "..\..\FlatSharp.Runtime\FlatSharp.Runtime.csproj", "{F9D588F9-51A0-477E-96A3-9881E33EFB2B}" | ||
EndProject | ||
Project("{9A19103F-16F7-4668-BE54-9A1E7A4F7556}") = "FlatSharp.UnityPolyfills", "..\..\FlatSharp.UnityPolyfills\FlatSharp.UnityPolyfills.csproj", "{DEC56E1F-FDEB-4178-A471-4E069DD69EAC}" | ||
EndProject | ||
Global | ||
GlobalSection(SolutionConfigurationPlatforms) = preSolution | ||
Debug|Any CPU = Debug|Any CPU | ||
Release|Any CPU = Release|Any CPU | ||
EndGlobalSection | ||
GlobalSection(ProjectConfigurationPlatforms) = postSolution | ||
{BF559FD5-F496-4721-B762-2EA5A35D1F45}.Debug|Any CPU.ActiveCfg = Debug|Any CPU | ||
{BF559FD5-F496-4721-B762-2EA5A35D1F45}.Debug|Any CPU.Build.0 = Debug|Any CPU | ||
{BF559FD5-F496-4721-B762-2EA5A35D1F45}.Release|Any CPU.ActiveCfg = Release|Any CPU | ||
{BF559FD5-F496-4721-B762-2EA5A35D1F45}.Release|Any CPU.Build.0 = Release|Any CPU | ||
{0EEC851E-71B5-453F-BE02-645BBC959136}.Debug|Any CPU.ActiveCfg = Debug|Any CPU | ||
{0EEC851E-71B5-453F-BE02-645BBC959136}.Debug|Any CPU.Build.0 = Debug|Any CPU | ||
{0EEC851E-71B5-453F-BE02-645BBC959136}.Release|Any CPU.ActiveCfg = Release|Any CPU | ||
{0EEC851E-71B5-453F-BE02-645BBC959136}.Release|Any CPU.Build.0 = Release|Any CPU | ||
{F9D588F9-51A0-477E-96A3-9881E33EFB2B}.Debug|Any CPU.ActiveCfg = Debug|Any CPU | ||
{F9D588F9-51A0-477E-96A3-9881E33EFB2B}.Debug|Any CPU.Build.0 = Debug|Any CPU | ||
{F9D588F9-51A0-477E-96A3-9881E33EFB2B}.Release|Any CPU.ActiveCfg = Release|Any CPU | ||
{F9D588F9-51A0-477E-96A3-9881E33EFB2B}.Release|Any CPU.Build.0 = Release|Any CPU | ||
{DEC56E1F-FDEB-4178-A471-4E069DD69EAC}.Debug|Any CPU.ActiveCfg = Debug|Any CPU | ||
{DEC56E1F-FDEB-4178-A471-4E069DD69EAC}.Debug|Any CPU.Build.0 = Debug|Any CPU | ||
{DEC56E1F-FDEB-4178-A471-4E069DD69EAC}.Release|Any CPU.ActiveCfg = Release|Any CPU | ||
{DEC56E1F-FDEB-4178-A471-4E069DD69EAC}.Release|Any CPU.Build.0 = Release|Any CPU | ||
EndGlobalSection | ||
GlobalSection(SolutionProperties) = preSolution | ||
HideSolutionNode = FALSE | ||
EndGlobalSection | ||
GlobalSection(ExtensibilityGlobals) = postSolution | ||
SolutionGuid = {DAA100EE-7E3A-4209-985E-2CA4FCB8F1E4} | ||
EndGlobalSection | ||
EndGlobal |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters