8000 Add /t:CompareCliSnapshots and /t:UpdateCliSnapshots (#48396) · dotnet/sdk@26f496b · GitHub
[go: up one dir, main page]

Skip to content

Commit 26f496b

Browse files
authored
Add /t:CompareCliSnapshots and /t:UpdateCliSnapshots (#48396)
1 parent a72eb6d commit 26f496b

File tree

1 file changed

+13
-0
lines changed

1 file changed

+13
-0
lines changed

test/dotnet.Tests/dotnet.Tests.csproj

Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -97,4 +97,17 @@
9797

9898
<Import Project="Sdk.targets" Sdk="Microsoft.NET.Sdk" />
9999

100+
<Target Name="CompareCliSnapshots">
101+
<ItemGroup>
102+
<SnapshotFiles Include="$(ArtifactsBinDir)redist\$(Configuration)\snapshots\**\*.received.*" />
103+
</ItemGroup>
104+
<Copy SourceFiles="@(SnapshotFiles)" DestinationFolder="$(MSBuildThisFileDirectory)CompletionTests\snapshots\%(RecursiveDir)" SkipUnchangedFiles="true" />
105+
</Target>
106+
107+
<Target Name="UpdateCliSnapshots">
108+
<ItemGroup>
109+
<SnapshotFiles Include="$(MSBuildThisFileDirectory)CompletionTests\snapshots\**\*.received.*" />
110+
</ItemGroup>
111+
<Move SourceFiles="@(SnapshotFiles)" DestinationFiles="@(SnapshotFiles->Replace('received', 'verified'))" />
112+
</Target>
100113
</Project>

0 commit comments

Comments
 (0)
0