-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
23 changed files
with
230 additions
and
2 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,76 @@ | ||
|
||
Microsoft Visual Studio Solution File, Format Version 12.00 | ||
# Visual Studio 15 | ||
VisualStudioVersion = 15.0.26124.0 | ||
MinimumVisualStudioVersion = 15.0.26124.0 | ||
Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "GraphBuilder", "..\GraphBuilder\src\GraphBuilder.csproj", "{6A28B56B-954A-4B13-98F9-EE9F0809550E}" | ||
EndProject | ||
Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "PackageBuilder", "..\PackageBuilder\src\PackageBuilder.csproj", "{D56FBF34-841A-46DE-A451-29072979A058}" | ||
EndProject | ||
Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "PackageHasher", "..\PackageHasher\src\PackageHasher.csproj", "{7F1CD306-1EE9-4665-8BD1-E9DAAA854107}" | ||
EndProject | ||
Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "ConsoleTest", "src\ConsoleTest.csproj", "{6990819A-89F7-4C68-8166-698017244944}" | ||
EndProject | ||
Global | ||
GlobalSection(SolutionConfigurationPlatforms) = preSolution | ||
Debug|Any CPU = Debug|Any CPU | ||
Debug|x64 = Debug|x64 | ||
Debug|x86 = Debug|x86 | ||
Release|Any CPU = Release|Any CPU | ||
Release|x64 = Release|x64 | ||
Release|x86 = Release|x86 | ||
EndGlobalSection | ||
GlobalSection(SolutionProperties) = preSolution | ||
HideSolutionNode = FALSE | ||
EndGlobalSection | ||
GlobalSection(ProjectConfigurationPlatforms) = postSolution | ||
{6A28B56B-954A-4B13-98F9-EE9F0809550E}.Debug|Any CPU.ActiveCfg = Debug|Any CPU | ||
{6A28B56B-954A-4B13-98F9-EE9F0809550E}.Debug|Any CPU.Build.0 = Debug|Any CPU | ||
{6A28B56B-954A-4B13-98F9-EE9F0809550E}.Debug|x64.ActiveCfg = Debug|Any CPU | ||
{6A28B56B-954A-4B13-98F9-EE9F0809550E}.Debug|x64.Build.0 = Debug|Any CPU | ||
{6A28B56B-954A-4B13-98F9-EE9F0809550E}.Debug|x86.ActiveCfg = Debug|Any CPU | ||
{6A28B56B-954A-4B13-98F9-EE9F0809550E}.Debug|x86.Build.0 = Debug|Any CPU | ||
{6A28B56B-954A-4B13-98F9-EE9F0809550E}.Release|Any CPU.ActiveCfg = Release|Any CPU | ||
{6A28B56B-954A-4B13-98F9-EE9F0809550E}.Release|Any CPU.Build.0 = Release|Any CPU | ||
{6A28B56B-954A-4B13-98F9-EE9F0809550E}.Release|x64.ActiveCfg = Release|Any CPU | ||
{6A28B56B-954A-4B13-98F9-EE9F0809550E}.Release|x64.Build.0 = Release|Any CPU | ||
{6A28B56B-954A-4B13-98F9-EE9F0809550E}.Release|x86.ActiveCfg = Release|Any CPU | ||
{6A28B56B-954A-4B13-98F9-EE9F0809550E}.Release|x86.Build.0 = Release|Any CPU | ||
{D56FBF34-841A-46DE-A451-29072979A058}.Debug|Any CPU.ActiveCfg = Debug|Any CPU | ||
{D56FBF34-841A-46DE-A451-29072979A058}.Debug|Any CPU.Build.0 = Debug|Any CPU | ||
{D56FBF34-841A-46DE-A451-29072979A058}.Debug|x64.ActiveCfg = Debug|Any CPU | ||
{D56FBF34-841A-46DE-A451-29072979A058}.Debug|x64.Build.0 = Debug|Any CPU | ||
{D56FBF34-841A-46DE-A451-29072979A058}.Debug|x86.ActiveCfg = Debug|Any CPU | ||
{D56FBF34-841A-46DE-A451-29072979A058}.Debug|x86.Build.0 = Debug|Any CPU | ||
{D56FBF34-841A-46DE-A451-29072979A058}.Release|Any CPU.ActiveCfg = Release|Any CPU | ||
{D56FBF34-841A-46DE-A451-29072979A058}.Release|Any CPU.Build.0 = Release|Any CPU | ||
{D56FBF34-841A-46DE-A451-29072979A058}.Release|x64.ActiveCfg = Release|Any CPU | ||
{D56FBF34-841A-46DE-A451-29072979A058}.Release|x64.Build.0 = Release|Any CPU | ||
{D56FBF34-841A-46DE-A451-29072979A058}.Release|x86.ActiveCfg = Release|Any CPU | ||
{D56FBF34-841A-46DE-A451-29072979A058}.Release|x86.Build.0 = Release|Any CPU | ||
{7F1CD306-1EE9-4665-8BD1-E9DAAA854107}.Debug|Any CPU.ActiveCfg = Debug|Any CPU | ||
{7F1CD306-1EE9-4665-8BD1-E9DAAA854107}.Debug|Any CPU.Build.0 = Debug|Any CPU | ||
{7F1CD306-1EE9-4665-8BD1-E9DAAA854107}.Debug|x64.ActiveCfg = Debug|Any CPU | ||
{7F1CD306-1EE9-4665-8BD1-E9DAAA854107}.Debug|x64.Build.0 = Debug|Any CPU | ||
{7F1CD306-1EE9-4665-8BD1-E9DAAA854107}.Debug|x86.ActiveCfg = Debug|Any CPU | ||
{7F1CD306-1EE9-4665-8BD1-E9DAAA854107}.Debug|x86.Build.0 = Debug|Any CPU | ||
{7F1CD306-1EE9-4665-8BD1-E9DAAA854107}.Release|Any CPU.ActiveCfg = Release|Any CPU | ||
{7F1CD306-1EE9-4665-8BD1-E9DAAA854107}.Release|Any CPU.Build.0 = Release|Any CPU | ||
{7F1CD306-1EE9-4665-8BD1-E9DAAA854107}.Release|x64.ActiveCfg = Release|Any CPU | ||
{7F1CD306-1EE9-4665-8BD1-E9DAAA854107}.Release|x64.Build.0 = Release|Any CPU | ||
{7F1CD306-1EE9-4665-8BD1-E9DAAA854107}.Release|x86.ActiveCfg = Release|Any CPU | ||
{7F1CD306-1EE9-4665-8BD1-E9DAAA854107}.Release|x86.Build.0 = Release|Any CPU | ||
{6990819A-89F7-4C68-8166-698017244944}.Debug|Any CPU.ActiveCfg = Debug|Any CPU | ||
{6990819A-89F7-4C68-8166-698017244944}.Debug|Any CPU.Build.0 = Debug|Any CPU | ||
{6990819A-89F7-4C68-8166-698017244944}.Debug|x64.ActiveCfg = Debug|Any CPU | ||
{6990819A-89F7-4C68-8166-698017244944}.Debug|x64.Build.0 = Debug|Any CPU | ||
{6990819A-89F7-4C68-8166-698017244944}.Debug|x86.ActiveCfg = Debug|Any CPU | ||
{6990819A-89F7-4C68-8166-698017244944}.Debug|x86.Build.0 = Debug|Any CPU | ||
{6990819A-89F7-4C68-8166-698017244944}.Release|Any CPU.ActiveCfg = Release|Any CPU | ||
{6990819A-89F7-4C68-8166-698017244944}.Release|Any CPU.Build.0 = Release|Any CPU | ||
{6990819A-89F7-4C68-8166-698017244944}.Release|x64.ActiveCfg = Release|Any CPU | ||
{6990819A-89F7-4C68-8166-698017244944}.Release|x64.Build.0 = Release|Any CPU | ||
{6990819A-89F7-4C68-8166-698017244944}.Release|x86.ActiveCfg = Release|Any CPU | ||
{6990819A-89F7-4C68-8166-698017244944}.Release|x86.Build.0 = Release|Any CPU | ||
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,14 @@ | ||
<Project Sdk="Microsoft.NET.Sdk"> | ||
|
||
<ItemGroup> | ||
<ProjectReference Include="..\..\GraphBuilder\src\GraphBuilder.csproj" /> | ||
<ProjectReference Include="..\..\PackageBuilder\src\PackageBuilder.csproj" /> | ||
<ProjectReference Include="..\..\PackageHasher\src\PackageHasher.csproj" /> | ||
</ItemGroup> | ||
|
||
<PropertyGroup> | ||
<OutputType>Exe</OutputType> | ||
<TargetFramework>netcoreapp3.0</TargetFramework> | ||
</PropertyGroup> | ||
|
||
</Project> |
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 @@ | ||
using System; | ||
using System.IO; | ||
using System.Collections.Generic; | ||
using System.Linq; | ||
using System.Threading.Tasks; | ||
using PackageAnalyzer; | ||
|
||
namespace ConsoleTest | ||
{ | ||
class Program | ||
{ | ||
static void Main(string[] args) | ||
{ | ||
|
||
string packageroot = "A"; | ||
string packagedescriptions = @"\pkgs\descriptions"; | ||
string packagesource = @"\src"; | ||
string testroot = @"C:\tmp"; | ||
|
||
GraphBuilder gb = new GraphBuilder($"{testroot}{packagedescriptions}"); | ||
|
||
if (gb.Graph.IsCyclic) | ||
{ | ||
Console.WriteLine("Build graph contains cyclic dependencies."); | ||
return; | ||
} | ||
|
||
DirectoryInfo di = new DirectoryInfo($"{testroot}{packagesource}"); | ||
List<string> paths = di.GetDirectories().Select(d => d.FullName).ToList(); | ||
var task = Task.Run(async () => await PackageHasher.HashFoldersAsync(paths, testroot)); | ||
Dictionary<string, string> packageSourceHash = task.Result; | ||
|
||
PackageBuilder pb = new PackageBuilder(testroot); | ||
Dictionary<string, bool> buildResults = pb.Build(packageroot, $"{testroot}{packagesource}", packageSourceHash, gb.Graph); | ||
|
||
foreach (string key in buildResults.Keys) | ||
{ | ||
Console.WriteLine($"package {key} build : {buildResults[key]}"); | ||
} | ||
|
||
} | ||
} | ||
} |
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
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
Binary file added
BIN
+170 Bytes
...geBuilder/tests/testcases/intermediate2/pkgs/cache/A.061E4A81196F0421370B6B00873592A1.zip
Binary file not shown.
Binary file added
BIN
+170 Bytes
...geBuilder/tests/testcases/intermediate2/pkgs/cache/B.4ACF41085828E31F786F43D8F381341C.zip
Binary file not shown.
Binary file added
BIN
+170 Bytes
...geBuilder/tests/testcases/intermediate2/pkgs/cache/C.99A6BC607FBD4F6AC4F97D0B2B9CEB34.zip
Binary file not shown.
Binary file added
BIN
+170 Bytes
...geBuilder/tests/testcases/intermediate2/pkgs/cache/D.104F979DDC76A9F397A9DE087C788446.zip
Binary file not shown.
Binary file added
BIN
+170 Bytes
...geBuilder/tests/testcases/intermediate2/pkgs/cache/E.8FED3A8528DFF1BA9B340449E9311315.zip
Binary file not shown.
Empty file.
3 changes: 3 additions & 0 deletions
3
PackageBuilder/tests/testcases/intermediate2/pkgs/descriptions/A.xml
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,3 @@ | ||
<package id="A"> | ||
</package> | ||
|
6 changes: 6 additions & 0 deletions
6
PackageBuilder/tests/testcases/intermediate2/pkgs/descriptions/B.xml
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,6 @@ | ||
<package id="B"> | ||
<dependency> | ||
<package id="A"/> | ||
</dependency> | ||
</package> | ||
|
5 changes: 5 additions & 0 deletions
5
PackageBuilder/tests/testcases/intermediate2/pkgs/descriptions/C.xml
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,5 @@ | ||
<package id="C"> | ||
<dependency> | ||
<package id="A"/> | ||
</dependency> | ||
</package> |
5 changes: 5 additions & 0 deletions
5
PackageBuilder/tests/testcases/intermediate2/pkgs/descriptions/D.xml
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,5 @@ | ||
<package id="D"> | ||
<dependency> | ||
<package id="C"/> | ||
</dependency> | ||
</package> |
6 changes: 6 additions & 0 deletions
6
PackageBuilder/tests/testcases/intermediate2/pkgs/descriptions/E.xml
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,6 @@ | ||
<package id="E"> | ||
<dependency> | ||
<package id="C"/> | ||
<package id="D"/> | ||
</dependency> | ||
</package> |
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 @@ | ||
test data for file1. Just needed to get a hash value. |
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 @@ | ||
test data for file1. Just needed to get a hash value. |
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 @@ | ||
test data for file1. Just needed to get a hash value. |
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 @@ | ||
test data for file1. Just needed to get a hash value. |
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 @@ | ||
test data for file1. Just needed to get a hash value. |