Browse Source

Move .NET tests to tests/dotnet.

pull/1713/head
Joao Matos 3 years ago
parent
commit
753d2a8712
  1. 2
      Directory.Build.props
  2. 2
      build/Helpers.lua
  3. 2
      build/premake5.lua
  4. 4
      src/Generator.Tests/GeneratorTest.cs
  5. 11
      tests/NamespacesBase/premake4.lua
  6. 0
      tests/dotnet/CLI/CLI.Gen.cs
  7. 0
      tests/dotnet/CLI/CLI.Gen.csproj
  8. 0
      tests/dotnet/CLI/CLI.Tests.CLI.csproj
  9. 0
      tests/dotnet/CLI/CLI.Tests.cs
  10. 0
      tests/dotnet/CLI/CLI.cpp
  11. 0
      tests/dotnet/CLI/CLI.h
  12. 0
      tests/dotnet/CLI/NestedEnumInClassTest/ClassWithNestedEnum.cpp
  13. 0
      tests/dotnet/CLI/NestedEnumInClassTest/ClassWithNestedEnum.h
  14. 0
      tests/dotnet/CLI/NestedEnumInClassTest/NestedEnumConsumer.cpp
  15. 0
      tests/dotnet/CLI/NestedEnumInClassTest/NestedEnumConsumer.h
  16. 0
      tests/dotnet/CLI/UseTemplateTypeFromIgnoredClassTemplate/Employee.cpp
  17. 0
      tests/dotnet/CLI/UseTemplateTypeFromIgnoredClassTemplate/Employee.h
  18. 0
      tests/dotnet/CLI/UseTemplateTypeFromIgnoredClassTemplate/EmployeeForwardDecl.h
  19. 0
      tests/dotnet/CLI/UseTemplateTypeFromIgnoredClassTemplate/EmployeeOrg.cpp
  20. 0
      tests/dotnet/CLI/UseTemplateTypeFromIgnoredClassTemplate/EmployeeOrg.h
  21. 0
      tests/dotnet/CLI/UseTemplateTypeFromIgnoredClassTemplate/IgnoredClassTemplateForEmployee.h
  22. 0
      tests/dotnet/CLI/premake4.lua
  23. 0
      tests/dotnet/CSharp/AnonTypes.h
  24. 0
      tests/dotnet/CSharp/AnotherUnit.cpp
  25. 0
      tests/dotnet/CSharp/AnotherUnit.h
  26. 0
      tests/dotnet/CSharp/CSharp.CSharp.csproj
  27. 0
      tests/dotnet/CSharp/CSharp.Gen.cs
  28. 0
      tests/dotnet/CSharp/CSharp.Gen.csproj
  29. 0
      tests/dotnet/CSharp/CSharp.Tests.CSharp.csproj
  30. 0
      tests/dotnet/CSharp/CSharp.Tests.cs
  31. 0
      tests/dotnet/CSharp/CSharp.cpp
  32. 0
      tests/dotnet/CSharp/CSharp.h
  33. 0
      tests/dotnet/CSharp/CSharpPartialMethods.cs
  34. 0
      tests/dotnet/CSharp/CSharpTemplates.cpp
  35. 0
      tests/dotnet/CSharp/CSharpTemplates.h
  36. 0
      tests/dotnet/CSharp/ExcludedUnit.hpp
  37. 0
      tests/dotnet/CSharp/premake4.lua
  38. 0
      tests/dotnet/Common/AnotherUnit.cpp
  39. 0
      tests/dotnet/Common/AnotherUnit.h
  40. 0
      tests/dotnet/Common/Common.CSharp.csproj
  41. 0
      tests/dotnet/Common/Common.Gen.cs
  42. 0
      tests/dotnet/Common/Common.Gen.csproj
  43. 0
      tests/dotnet/Common/Common.Tests.CLI.csproj
  44. 0
      tests/dotnet/Common/Common.Tests.CSharp.csproj
  45. 0
      tests/dotnet/Common/Common.Tests.cs
  46. 0
      tests/dotnet/Common/Common.cpp
  47. 0
      tests/dotnet/Common/Common.h
  48. 0
      tests/dotnet/Common/interface.h
  49. 0
      tests/dotnet/Common/premake4.lua
  50. 2
      tests/dotnet/Directory.Build.props
  51. 0
      tests/dotnet/Empty/Empty.Gen.cs
  52. 0
      tests/dotnet/Empty/Empty.Tests.cs
  53. 0
      tests/dotnet/Empty/Empty.cpp
  54. 0
      tests/dotnet/Empty/Empty.h
  55. 0
      tests/dotnet/Empty/premake4.lua
  56. 0
      tests/dotnet/Encodings/Encodings.CSharp.csproj
  57. 0
      tests/dotnet/Encodings/Encodings.Gen.cs
  58. 0
      tests/dotnet/Encodings/Encodings.Gen.csproj
  59. 0
      tests/dotnet/Encodings/Encodings.Tests.CSharp.csproj
  60. 0
      tests/dotnet/Encodings/Encodings.Tests.cs
  61. 0
      tests/dotnet/Encodings/Encodings.cpp
  62. 0
      tests/dotnet/Encodings/Encodings.h
  63. 0
      tests/dotnet/Encodings/premake4.lua
  64. 0
      tests/dotnet/NamespacesBase/NamespacesBase.cpp
  65. 0
      tests/dotnet/NamespacesBase/NamespacesBase.h
  66. 3
      tests/dotnet/NamespacesBase/premake4.lua
  67. 0
      tests/dotnet/NamespacesBase/test.cs
  68. 0
      tests/dotnet/NamespacesDerived/Independent.h
  69. 0
      tests/dotnet/NamespacesDerived/NamespacesDerived.Gen.cs
  70. 0
      tests/dotnet/NamespacesDerived/NamespacesDerived.Gen.csproj
  71. 4
      tests/dotnet/NamespacesDerived/NamespacesDerived.Tests.CSharp.csproj
  72. 0
      tests/dotnet/NamespacesDerived/NamespacesDerived.Tests.cs
  73. 0
      tests/dotnet/NamespacesDerived/NamespacesDerived.cpp
  74. 0
      tests/dotnet/NamespacesDerived/NamespacesDerived.h
  75. 0
      tests/dotnet/NamespacesDerived/premake4.lua
  76. 0
      tests/dotnet/Native/AST.h
  77. 0
      tests/dotnet/Native/ASTExtensions.h
  78. 0
      tests/dotnet/Native/Enums.h
  79. 0
      tests/dotnet/Native/Passes.h
  80. 0
      tests/dotnet/Native/Templates.h
  81. 0
      tests/dotnet/Native/linux/libexpat.so.0
  82. 0
      tests/dotnet/Native/macos/libexpat.dylib
  83. 0
      tests/dotnet/Native/windows/libexpat.dll
  84. 0
      tests/dotnet/StandardLib/StandardLib.Gen.cs
  85. 0
      tests/dotnet/StandardLib/StandardLib.Gen.csproj
  86. 0
      tests/dotnet/StandardLib/StandardLib.Tests.CLI.csproj
  87. 0
      tests/dotnet/StandardLib/StandardLib.Tests.cs
  88. 0
      tests/dotnet/StandardLib/StandardLib.cpp
  89. 0
      tests/dotnet/StandardLib/StandardLib.h
  90. 0
      tests/dotnet/StandardLib/premake4.lua
  91. 0
      tests/dotnet/Test.Bindings.props
  92. 0
      tests/dotnet/Test.Common.props
  93. 0
      tests/dotnet/Test.Generator.props
  94. 0
      tests/dotnet/Test.props
  95. 0
      tests/dotnet/Tests.h
  96. 0
      tests/dotnet/VTables/VTables.CSharp.csproj
  97. 0
      tests/dotnet/VTables/VTables.Gen.cs
  98. 0
      tests/dotnet/VTables/VTables.Gen.csproj
  99. 0
      tests/dotnet/VTables/VTables.Tests.CSharp.csproj
  100. 0
      tests/dotnet/VTables/VTables.Tests.cs
  101. Some files were not shown because too many files have changed in this diff Show More

2
Directory.Build.props

@ -34,7 +34,7 @@ @@ -34,7 +34,7 @@
<GeneratorFileExtension>dll</GeneratorFileExtension>
<DotNetCmd Condition="'$(PlatformTarget)' == 'x86' AND Exists('$(MSBuildProgramFiles32)\dotnet\dotnet.exe')">"$(MSBuildProgramFiles32)\dotnet\dotnet.exe"</DotNetCmd>
<DotNetCmd Condition="'$(PlatformTarget)' == 'x64' AND Exists('$(ProgramW6432)\dotnet\dotnet.exe')">"$(ProgramW6432)\dotnet\dotnet.exe"</DotNetCmd>
<RID Condition="$(IsWindows)">win</RID>
<RID Condition="$(IsWindows)">win</RID>
<RID Condition="$(IsLinux)">linux</RID>
<RID Condition="$(IsMacOSX)">osx</RID>
<RID>$(RID)-$(PlatformTarget)</RID>

2
build/Helpers.lua

@ -47,7 +47,7 @@ rootdir = path.getabsolute("../") @@ -47,7 +47,7 @@ rootdir = path.getabsolute("../")
srcdir = path.join(rootdir, "src");
incdir = path.join(rootdir, "include");
examplesdir = path.join(rootdir, "examples");
testsdir = path.join(rootdir, "tests");
testsdir = path.join(rootdir, "tests/dotnet");
builddir = path.join(rootdir, "build")
bindir = path.join(rootdir, "bin")
objsdir = path.join(builddir, "obj");

2
build/premake5.lua

@ -44,7 +44,7 @@ workspace "CppSharp" @@ -44,7 +44,7 @@ workspace "CppSharp"
workspacefiles(path.join(builddir, "premake5.lua"))
workspacefiles(path.join(builddir, "*.sh"))
workspacefiles(path.join(rootdir, ".github/workflows/*.yml"))
workspacefiles(path.join(rootdir, "tests/Test*.props"))
workspacefiles(path.join(testsdir, "Test*.props"))
group "Libraries"
if EnableNativeProjects() then

4
src/Generator.Tests/GeneratorTest.cs

@ -74,12 +74,12 @@ namespace CppSharp.Utils @@ -74,12 +74,12 @@ namespace CppSharp.Utils
while (directory != null)
{
var path = Path.Combine(directory.FullName, "tests", name);
var path = Path.Combine(directory.FullName, "tests", "dotnet", name);
if (Directory.Exists(path))
return path;
path = Path.Combine(directory.FullName, "external", "CppSharp", "tests", name);
path = Path.Combine(directory.FullName, "external", "CppSharp", "tests", "dotnet", name);
if (Directory.Exists(path))
return path;

11
tests/NamespacesBase/premake4.lua

@ -1,11 +0,0 @@ @@ -1,11 +0,0 @@
function SetupWrapper(name)
if not EnabledManagedProjects() then
return
end
SetupExternalManagedTestProject(name .. ".CSharp")
end
group "Tests/Namespaces"
SetupTestNativeProject("NamespacesBase")
targetdir (path.join(gendir, "NamespacesDerived"))

0
tests/CLI/CLI.Gen.cs → tests/dotnet/CLI/CLI.Gen.cs

0
tests/CLI/CLI.Gen.csproj → tests/dotnet/CLI/CLI.Gen.csproj

0
tests/CLI/CLI.Tests.CLI.csproj → tests/dotnet/CLI/CLI.Tests.CLI.csproj

0
tests/CLI/CLI.Tests.cs → tests/dotnet/CLI/CLI.Tests.cs

0
tests/CLI/CLI.cpp → tests/dotnet/CLI/CLI.cpp

0
tests/CLI/CLI.h → tests/dotnet/CLI/CLI.h

0
tests/CLI/NestedEnumInClassTest/ClassWithNestedEnum.cpp → tests/dotnet/CLI/NestedEnumInClassTest/ClassWithNestedEnum.cpp

0
tests/CLI/NestedEnumInClassTest/ClassWithNestedEnum.h → tests/dotnet/CLI/NestedEnumInClassTest/ClassWithNestedEnum.h

0
tests/CLI/NestedEnumInClassTest/NestedEnumConsumer.cpp → tests/dotnet/CLI/NestedEnumInClassTest/NestedEnumConsumer.cpp

0
tests/CLI/NestedEnumInClassTest/NestedEnumConsumer.h → tests/dotnet/CLI/NestedEnumInClassTest/NestedEnumConsumer.h

0
tests/CLI/UseTemplateTypeFromIgnoredClassTemplate/Employee.cpp → tests/dotnet/CLI/UseTemplateTypeFromIgnoredClassTemplate/Employee.cpp

0
tests/CLI/UseTemplateTypeFromIgnoredClassTemplate/Employee.h → tests/dotnet/CLI/UseTemplateTypeFromIgnoredClassTemplate/Employee.h

0
tests/CLI/UseTemplateTypeFromIgnoredClassTemplate/EmployeeForwardDecl.h → tests/dotnet/CLI/UseTemplateTypeFromIgnoredClassTemplate/EmployeeForwardDecl.h

0
tests/CLI/UseTemplateTypeFromIgnoredClassTemplate/EmployeeOrg.cpp → tests/dotnet/CLI/UseTemplateTypeFromIgnoredClassTemplate/EmployeeOrg.cpp

0
tests/CLI/UseTemplateTypeFromIgnoredClassTemplate/EmployeeOrg.h → tests/dotnet/CLI/UseTemplateTypeFromIgnoredClassTemplate/EmployeeOrg.h

0
tests/CLI/UseTemplateTypeFromIgnoredClassTemplate/IgnoredClassTemplateForEmployee.h → tests/dotnet/CLI/UseTemplateTypeFromIgnoredClassTemplate/IgnoredClassTemplateForEmployee.h

0
tests/CLI/premake4.lua → tests/dotnet/CLI/premake4.lua

0
tests/CSharp/AnonTypes.h → tests/dotnet/CSharp/AnonTypes.h

0
tests/CSharp/AnotherUnit.cpp → tests/dotnet/CSharp/AnotherUnit.cpp

0
tests/CSharp/AnotherUnit.h → tests/dotnet/CSharp/AnotherUnit.h

0
tests/CSharp/CSharp.CSharp.csproj → tests/dotnet/CSharp/CSharp.CSharp.csproj

0
tests/CSharp/CSharp.Gen.cs → tests/dotnet/CSharp/CSharp.Gen.cs

0
tests/CSharp/CSharp.Gen.csproj → tests/dotnet/CSharp/CSharp.Gen.csproj

0
tests/CSharp/CSharp.Tests.CSharp.csproj → tests/dotnet/CSharp/CSharp.Tests.CSharp.csproj

0
tests/CSharp/CSharp.Tests.cs → tests/dotnet/CSharp/CSharp.Tests.cs

0
tests/CSharp/CSharp.cpp → tests/dotnet/CSharp/CSharp.cpp

0
tests/CSharp/CSharp.h → tests/dotnet/CSharp/CSharp.h

0
tests/CSharp/CSharpPartialMethods.cs → tests/dotnet/CSharp/CSharpPartialMethods.cs

0
tests/CSharp/CSharpTemplates.cpp → tests/dotnet/CSharp/CSharpTemplates.cpp

0
tests/CSharp/CSharpTemplates.h → tests/dotnet/CSharp/CSharpTemplates.h

0
tests/CSharp/ExcludedUnit.hpp → tests/dotnet/CSharp/ExcludedUnit.hpp

0
tests/CSharp/premake4.lua → tests/dotnet/CSharp/premake4.lua

0
tests/Common/AnotherUnit.cpp → tests/dotnet/Common/AnotherUnit.cpp

0
tests/Common/AnotherUnit.h → tests/dotnet/Common/AnotherUnit.h

0
tests/Common/Common.CSharp.csproj → tests/dotnet/Common/Common.CSharp.csproj

0
tests/Common/Common.Gen.cs → tests/dotnet/Common/Common.Gen.cs

0
tests/Common/Common.Gen.csproj → tests/dotnet/Common/Common.Gen.csproj

0
tests/Common/Common.Tests.CLI.csproj → tests/dotnet/Common/Common.Tests.CLI.csproj

0
tests/Common/Common.Tests.CSharp.csproj → tests/dotnet/Common/Common.Tests.CSharp.csproj

0
tests/Common/Common.Tests.cs → tests/dotnet/Common/Common.Tests.cs

0
tests/Common/Common.cpp → tests/dotnet/Common/Common.cpp

0
tests/Common/Common.h → tests/dotnet/Common/Common.h

0
tests/Common/interface.h → tests/dotnet/Common/interface.h

0
tests/Common/premake4.lua → tests/dotnet/Common/premake4.lua

2
tests/Directory.Build.props → tests/dotnet/Directory.Build.props

@ -1,5 +1,5 @@ @@ -1,5 +1,5 @@
<Project>
<Import Project="../Directory.Build.props" />
<Import Project="../../Directory.Build.props" />
<Import Project="Test.Common.props" />
<Import Project="Test.Generator.props" Condition="$(IsTestGenerator)" />
<Import Project="Test.Bindings.props" Condition="$(IsTestBindings)" />

0
tests/Empty/Empty.Gen.cs → tests/dotnet/Empty/Empty.Gen.cs

0
tests/Empty/Empty.Tests.cs → tests/dotnet/Empty/Empty.Tests.cs

0
tests/Empty/Empty.cpp → tests/dotnet/Empty/Empty.cpp

0
tests/Empty/Empty.h → tests/dotnet/Empty/Empty.h

0
tests/Empty/premake4.lua → tests/dotnet/Empty/premake4.lua

0
tests/Encodings/Encodings.CSharp.csproj → tests/dotnet/Encodings/Encodings.CSharp.csproj

0
tests/Encodings/Encodings.Gen.cs → tests/dotnet/Encodings/Encodings.Gen.cs

0
tests/Encodings/Encodings.Gen.csproj → tests/dotnet/Encodings/Encodings.Gen.csproj

0
tests/Encodings/Encodings.Tests.CSharp.csproj → tests/dotnet/Encodings/Encodings.Tests.CSharp.csproj

0
tests/Encodings/Encodings.Tests.cs → tests/dotnet/Encodings/Encodings.Tests.cs

0
tests/Encodings/Encodings.cpp → tests/dotnet/Encodings/Encodings.cpp

0
tests/Encodings/Encodings.h → tests/dotnet/Encodings/Encodings.h

0
tests/Encodings/premake4.lua → tests/dotnet/Encodings/premake4.lua

0
tests/NamespacesBase/NamespacesBase.cpp → tests/dotnet/NamespacesBase/NamespacesBase.cpp

0
tests/NamespacesBase/NamespacesBase.h → tests/dotnet/NamespacesBase/NamespacesBase.h

3
tests/dotnet/NamespacesBase/premake4.lua

@ -0,0 +1,3 @@ @@ -0,0 +1,3 @@
group "Tests/Namespaces"
SetupTestNativeProject("NamespacesBase")
targetdir (path.join(gendir, "NamespacesDerived"))

0
tests/NamespacesBase/test.cs → tests/dotnet/NamespacesBase/test.cs

0
tests/NamespacesDerived/Independent.h → tests/dotnet/NamespacesDerived/Independent.h

0
tests/NamespacesDerived/NamespacesDerived.Gen.cs → tests/dotnet/NamespacesDerived/NamespacesDerived.Gen.cs

0
tests/NamespacesDerived/NamespacesDerived.Gen.csproj → tests/dotnet/NamespacesDerived/NamespacesDerived.Gen.csproj

4
tests/NamespacesDerived/NamespacesDerived.Tests.CSharp.csproj → tests/dotnet/NamespacesDerived/NamespacesDerived.Tests.CSharp.csproj

@ -4,10 +4,10 @@ @@ -4,10 +4,10 @@
</ItemGroup>
<ItemGroup>
<Reference Include="NamespacesBase">
<HintPath>..\..\build\gen\NamespacesDerived\NamespacesBase.dll</HintPath>
<HintPath>..\..\..\build\gen\NamespacesDerived\NamespacesBase.dll</HintPath>
</Reference>
<Reference Include="NamespacesDerived">
<HintPath>..\..\build\gen\NamespacesDerived\NamespacesDerived.dll</HintPath>
<HintPath>..\..\..\build\gen\NamespacesDerived\NamespacesDerived.dll</HintPath>
</Reference>
</ItemGroup>
</Project>

0
tests/NamespacesDerived/NamespacesDerived.Tests.cs → tests/dotnet/NamespacesDerived/NamespacesDerived.Tests.cs

0
tests/NamespacesDerived/NamespacesDerived.cpp → tests/dotnet/NamespacesDerived/NamespacesDerived.cpp

0
tests/NamespacesDerived/NamespacesDerived.h → tests/dotnet/NamespacesDerived/NamespacesDerived.h

0
tests/NamespacesDerived/premake4.lua → tests/dotnet/NamespacesDerived/premake4.lua

0
tests/Native/AST.h → tests/dotnet/Native/AST.h

0
tests/Native/ASTExtensions.h → tests/dotnet/Native/ASTExtensions.h

0
tests/Native/Enums.h → tests/dotnet/Native/Enums.h

0
tests/Native/Passes.h → tests/dotnet/Native/Passes.h

0
tests/Native/Templates.h → tests/dotnet/Native/Templates.h

0
tests/Native/linux/libexpat.so.0 → tests/dotnet/Native/linux/libexpat.so.0

0
tests/Native/macos/libexpat.dylib → tests/dotnet/Native/macos/libexpat.dylib

0
tests/Native/windows/libexpat.dll → tests/dotnet/Native/windows/libexpat.dll

0
tests/StandardLib/StandardLib.Gen.cs → tests/dotnet/StandardLib/StandardLib.Gen.cs

0
tests/StandardLib/StandardLib.Gen.csproj → tests/dotnet/StandardLib/StandardLib.Gen.csproj

0
tests/StandardLib/StandardLib.Tests.CLI.csproj → tests/dotnet/StandardLib/StandardLib.Tests.CLI.csproj

0
tests/StandardLib/StandardLib.Tests.cs → tests/dotnet/StandardLib/StandardLib.Tests.cs

0
tests/StandardLib/StandardLib.cpp → tests/dotnet/StandardLib/StandardLib.cpp

0
tests/StandardLib/StandardLib.h → tests/dotnet/StandardLib/StandardLib.h

0
tests/StandardLib/premake4.lua → tests/dotnet/StandardLib/premake4.lua

0
tests/Test.Bindings.props → tests/dotnet/Test.Bindings.props

0
tests/Test.Common.props → tests/dotnet/Test.Common.props

0
tests/Test.Generator.props → tests/dotnet/Test.Generator.props

0
tests/Test.props → tests/dotnet/Test.props

0
tests/Tests.h → tests/dotnet/Tests.h

0
tests/VTables/VTables.CSharp.csproj → tests/dotnet/VTables/VTables.CSharp.csproj

0
tests/VTables/VTables.Gen.cs → tests/dotnet/VTables/VTables.Gen.cs

0
tests/VTables/VTables.Gen.csproj → tests/dotnet/VTables/VTables.Gen.csproj

0
tests/VTables/VTables.Tests.CSharp.csproj → tests/dotnet/VTables/VTables.Tests.CSharp.csproj

0
tests/VTables/VTables.Tests.cs → tests/dotnet/VTables/VTables.Tests.cs

Some files were not shown because too many files have changed in this diff Show More

Loading…
Cancel
Save