|
12 | 12 |
|
13 | 13 | <EnableAzurePipelinesReporter>true</EnableAzurePipelinesReporter> |
14 | 14 | <FailOnTestFailure>true</FailOnTestFailure> |
15 | | - <SqlServerTests>$(RepoRoot)/test/EFCore.SqlServer.FunctionalTests/*.csproj;$(RepoRoot)/test/EFCore.SqlServer.HierarchyId.Tests/*.csproj;$(RepoRoot)/test/EFCore.OData.FunctionalTests/*.csproj;$(RepoRoot)/test/EFCore.AspNet.SqlServer.FunctionalTests/*.csproj;$(RepoRoot)/test/EFCore.VisualBasic.FunctionalTests/*.vbproj;$(RepoRoot)/test/EFCore.FSharp.FunctionalTests/*.fsproj</SqlServerTests> |
| 15 | + <SqlServerTests>$(RepoRoot)/test/EFCore.SqlServer.FunctionalTests/*.csproj;$(RepoRoot)/test/EFCore.SqlServer.HierarchyId.Tests/*.csproj;$(RepoRoot)/test/EFCore.CrossStore.FunctionalTests/*.csproj;$(RepoRoot)/test/EFCore.OData.FunctionalTests/*.csproj;$(RepoRoot)/test/EFCore.AspNet.SqlServer.FunctionalTests/*.csproj;$(RepoRoot)/test/EFCore.VisualBasic.FunctionalTests/*.vbproj;$(RepoRoot)/test/EFCore.FSharp.FunctionalTests/*.fsproj</SqlServerTests> |
| 16 | + <CosmosTests>$(RepoRoot)/test/EFCore.Cosmos.FunctionalTests/*.csproj</CosmosTests> |
16 | 17 | </PropertyGroup> |
17 | 18 |
|
18 | 19 | <PropertyGroup Condition = "'$(SYSTEM_ACCESSTOKEN)' == ''"> |
19 | 20 | <!-- Local build outside of Azure Pipeline --> |
20 | | - <HelixTargetQueues Condition = "'$(HelixTargetQueues)' == ''">Windows.10.Amd64.Open;OSX.1200.Amd64.Open;OSX.1200.ARM64.Open;Ubuntu.2204.Amd64.XL.Open@mcr.microsoft.com/dotnet-buildtools/prereqs:ubuntu-22.04-helix-sqlserver-amd64</HelixTargetQueues> |
| 21 | + <HelixTargetQueues Condition = "'$(HelixTargetQueues)' == ''">Windows.10.Amd64.Open;OSX.15.Amd64.Open;OSX.15.ARM64.Open;Ubuntu.2204.Amd64.XL.Open@mcr.microsoft.com/dotnet-buildtools/prereqs:ubuntu-22.04-helix-sqlserver-amd64;Ubuntu.2204.Amd64.XL.Open;Ubuntu.2204.Amd64.Open</HelixTargetQueues> |
21 | 22 | <EnableAzurePipelinesReporter>false</EnableAzurePipelinesReporter> |
22 | 23 | <HelixSource>efcore/localbuild/</HelixSource> |
23 | 24 | <HelixBuild>t001</HelixBuild> |
|
33 | 34 | <AdditionalDotNetPackage Include="$(MicrosoftNETCorePlatformsVersion)"> |
34 | 35 | <PackageType>runtime</PackageType> |
35 | 36 | </AdditionalDotNetPackage> |
| 37 | + |
| 38 | + <HelixCorrelationPayload Include="$(RepoRoot)/eng/testing"> |
| 39 | + <Destination>testing</Destination> |
| 40 | + </HelixCorrelationPayload> |
36 | 41 | </ItemGroup> |
37 | 42 |
|
38 | 43 | <ItemGroup> |
|
53 | 58 | </XUnitProject> |
54 | 59 | </ItemGroup> |
55 | 60 |
|
56 | | - <!-- Start LocalDb instance for test projects which uses SqlServer on windows --> |
| 61 | + <!-- Start LocalDb instance for test projects which uses SqlServer on Windows --> |
57 | 62 | <ItemGroup Condition = "'$(HelixTargetQueue.StartsWith(`Windows`))'"> |
58 | | - <XUnitProject Update="$(SqlServerTests);$(RepoRoot)/test/EFCore.CrossStore.FunctionalTests/*.csproj"> |
| 63 | + <XUnitProject Update="$(SqlServerTests)"> |
59 | 64 | <PreCommands>$(PreCommands); SqlLocalDB start</PreCommands> |
60 | 65 | </XUnitProject> |
61 | 66 | </ItemGroup> |
| 67 | + |
| 68 | + <ItemGroup Condition = "'$(HelixTargetQueue.StartsWith(`Windows.11`))'"> |
| 69 | + <XUnitProject Update="$(CosmosTests)"> |
| 70 | + <PreCommands>$(PreCommands); set Test__Cosmos__SkipConnectionCheck=true</PreCommands> |
| 71 | + </XUnitProject> |
| 72 | + </ItemGroup> |
62 | 73 |
|
63 | | - <!-- Start SqlServer instance for test projects which uses SqlServer on docker. Also remove other projects as they will be run outside of docker. --> |
64 | | - <ItemGroup Condition = "'$(HelixTargetQueue.Contains(`ubuntu-22.04-helix-sqlserver-amd64`))'"> |
| 74 | + <!-- Start SqlServer instance for test projects which uses SqlServer on docker. Only run SqlServer tests. --> |
| 75 | + <ItemGroup Condition = "'$(HelixTargetQueue.Contains(`helix-sqlserver`))'"> |
65 | 76 | <XUnitProject Remove="$(RepoRoot)/test/**/*.csproj"/> |
66 | 77 | <XUnitProject Remove="$(RepoRoot)/test/**/*.fsproj"/> |
67 | | - <XUnitProject Include="$(SqlServerTests);$(RepoRoot)/test/EFCore.CrossStore.FunctionalTests/*.csproj"> |
| 78 | + <XUnitProject Include="$(SqlServerTests)"> |
68 | 79 | <PreCommands>$(PreCommands); export MSSQL_SA_PASSWORD=$(MSSQL_SA_PASSWORD); export Test__SqlServer__DefaultConnection="Server=localhost;;Database=master;;User=sa;;Password=$(MSSQL_SA_PASSWORD);;Connect Timeout=60;;ConnectRetryCount=0;;TrustServerCertificate=True"; /opt/mssql/bin/sqlservr --accept-eula &; sleep 120; </PreCommands> |
69 | 80 | </XUnitProject> |
70 | 81 | </ItemGroup> |
71 | 82 |
|
72 | | - <!-- Remove test projects which requires SqlServer from Ubuntu/OSX. --> |
73 | | - <ItemGroup Condition = "'$(HelixTargetQueue.StartsWith(`OSX`))' OR '$(HelixTargetQueue)' == 'Ubuntu.2204.Amd64.XL.Open' OR '$(HelixTargetQueue)' == 'Ubuntu.2204.Amd64.XL'"> |
| 83 | + <!-- Start Cosmos emulator in Docker on Ubuntu and only run Cosmos tests --> |
| 84 | + <ItemGroup Condition = "'$(HelixTargetQueue)' == 'Ubuntu.2204.Amd64.XL.Open' OR '$(HelixTargetQueue)' == 'Ubuntu.2204.Amd64.XL'"> |
| 85 | + <XUnitProject Remove="$(RepoRoot)/test/**/*.csproj"/> |
| 86 | + <XUnitProject Remove="$(RepoRoot)/test/**/*.fsproj"/> |
| 87 | + <XUnitProject Include="$(CosmosTests)"> |
| 88 | + <PreCommands>$(PreCommands); chmod +x $HELIX_CORRELATION_PAYLOAD/testing/run-cosmos-container.sh; $HELIX_CORRELATION_PAYLOAD/testing/run-cosmos-container.sh; export Test__Cosmos__DefaultConnection=https://localhost:8081; export Test__Cosmos__SkipConnectionCheck=true; export Test__Cosmos__EmulatorType=linux</PreCommands> |
| 89 | + <PostCommands>$(PostCommands); docker stop cosmos-emulator || true; docker rm -f cosmos-emulator || true</PostCommands> |
| 90 | + </XUnitProject> |
| 91 | + </ItemGroup> |
| 92 | + |
| 93 | + <!-- Run tests that don't need SqlServer or Cosmos on bare Ubuntu --> |
| 94 | + <ItemGroup Condition = "'$(HelixTargetQueue)' == 'Ubuntu.2204.Amd64.Open' OR '$(HelixTargetQueue)' == 'Ubuntu.2204.Amd64'"> |
| 95 | + <XUnitProject Remove="$(SqlServerTests)"/> |
| 96 | + <XUnitProject Remove="$(CosmosTests)"/> |
| 97 | + </ItemGroup> |
| 98 | + |
| 99 | + <!-- Remove test projects which require SqlServer or Cosmos from OSX --> |
| 100 | + <ItemGroup Condition = "'$(HelixTargetQueue.StartsWith(`OSX`))'"> |
74 | 101 | <XUnitProject Remove="$(SqlServerTests)"/> |
| 102 | + <XUnitProject Remove="$(CosmosTests)"/> |
75 | 103 | </ItemGroup> |
76 | 104 |
|
77 | 105 | <PropertyGroup> |
|
0 commit comments