SingleFile: Add test cases (dotnet/core-setup#5954)
authorSwaroop Sridhar <Swaroop.Sridhar@microsoft.com>
Fri, 3 May 2019 19:19:38 +0000 (12:19 -0700)
committerGitHub <noreply@github.com>
Fri, 3 May 2019 19:19:38 +0000 (12:19 -0700)
commitad883591c8c4d541a95e4c4b1107a2561e0f5a8d
tree23605ad53cea46be34617b2357e35ee2edd05362
parent48902c24b6623629de78c5108e0084ad8aac17a9
SingleFile: Add test cases (dotnet/core-setup#5954)

SingleFile: Add test cases

Add test cases to test:
  * Run of self-contained and portable apps.
  * Extraction to custom directories.
  * Reuse of extracted files on subsequent runs.

Created a BundleTest test directory grouping which contains
- Microsoft.NET.HostModel.Bundle tests
- AppHost Bundler tests
- BundleHelpers -- containing common helper methods for the above two tests.

Commit migrated from https://github.com/dotnet/core-setup/commit/b0bd078ce1cc4a2791c2a09860f4e4cd71f9e17e
33 files changed:
Microsoft.DotNet.CoreSetup.sln
src/installer/managed/Microsoft.NET.HostModel/Bundle/Bundler.cs
src/installer/managed/Microsoft.NET.HostModel/Bundle/Extractor.cs
src/installer/managed/Microsoft.NET.HostModel/Bundle/FileEntry.cs
src/installer/managed/Microsoft.NET.HostModel/Bundle/FileSpec.cs
src/installer/managed/Microsoft.NET.HostModel/Bundle/Manifest.cs
src/installer/test/Assets/TestProjects/AppWithSubDirs/AppWithSubDirs.csproj [moved from src/installer/test/Assets/TestProjects/StandaloneAppWithSubDirs/StandaloneAppWithSubDirs.csproj with 89% similarity]
src/installer/test/Assets/TestProjects/AppWithSubDirs/Program.cs [moved from src/installer/test/Assets/TestProjects/StandaloneAppWithSubDirs/Program.cs with 97% similarity]
src/installer/test/Assets/TestProjects/AppWithSubDirs/Sentence/Conjunction/word [moved from src/installer/test/Assets/TestProjects/StandaloneAppWithSubDirs/Sentence/Conjunction/word with 100% similarity]
src/installer/test/Assets/TestProjects/AppWithSubDirs/Sentence/Interjection/word [moved from src/installer/test/Assets/TestProjects/StandaloneAppWithSubDirs/Sentence/Interjection/word with 100% similarity]
src/installer/test/Assets/TestProjects/AppWithSubDirs/Sentence/Noun/Adjective/Article/word [moved from src/installer/test/Assets/TestProjects/StandaloneAppWithSubDirs/Sentence/Noun/Adjective/Article/word with 100% similarity]
src/installer/test/Assets/TestProjects/AppWithSubDirs/Sentence/Noun/Adjective/Preposition/word [moved from src/installer/test/Assets/TestProjects/StandaloneAppWithSubDirs/Sentence/Noun/Adjective/Preposition/word with 100% similarity]
src/installer/test/Assets/TestProjects/AppWithSubDirs/Sentence/Noun/Adjective/word [moved from src/installer/test/Assets/TestProjects/StandaloneAppWithSubDirs/Sentence/Noun/Adjective/word with 100% similarity]
src/installer/test/Assets/TestProjects/AppWithSubDirs/Sentence/Noun/Pronoun/Another/word [moved from src/installer/test/Assets/TestProjects/StandaloneAppWithSubDirs/Sentence/Noun/Pronoun/Another/word with 100% similarity]
src/installer/test/Assets/TestProjects/AppWithSubDirs/Sentence/Noun/Pronoun/word [moved from src/installer/test/Assets/TestProjects/StandaloneAppWithSubDirs/Sentence/Noun/Pronoun/word with 100% similarity]
src/installer/test/Assets/TestProjects/AppWithSubDirs/Sentence/Noun/word [moved from src/installer/test/Assets/TestProjects/StandaloneAppWithSubDirs/Sentence/Noun/word with 100% similarity]
src/installer/test/Assets/TestProjects/AppWithSubDirs/Sentence/This is a really, really, really, really, really, really, really, really, really, really, really, really, really, really long file name for punctuation/word [moved from src/installer/test/Assets/TestProjects/StandaloneAppWithSubDirs/Sentence/This is a really, really, really, really, really, really, really, really, really, really, really, really, really, really long file name for punctuation/word with 100% similarity]
src/installer/test/Assets/TestProjects/AppWithSubDirs/Sentence/Verb/Adverb/word [moved from src/installer/test/Assets/TestProjects/StandaloneAppWithSubDirs/Sentence/Verb/Adverb/word with 100% similarity]
src/installer/test/Assets/TestProjects/AppWithSubDirs/Sentence/Verb/word [moved from src/installer/test/Assets/TestProjects/StandaloneAppWithSubDirs/Sentence/Verb/word with 100% similarity]
src/installer/test/Assets/TestProjects/AppWithSubDirs/Sentence/word [moved from src/installer/test/Assets/TestProjects/StandaloneAppWithSubDirs/Sentence/word with 100% similarity]
src/installer/test/BundleTests/AppHost.Bundle.Tests/AppHost.Bundle.Tests.csproj [moved from src/installer/test/Microsoft.NET.HostModel.Tests/Microsoft.NET.HostModel.Tests.csproj with 55% similarity]
src/installer/test/BundleTests/AppHost.Bundle.Tests/BundleExtractToSpecificPath.cs [new file with mode: 0644]
src/installer/test/BundleTests/AppHost.Bundle.Tests/BundledAppWithSubDirs.cs [new file with mode: 0644]
src/installer/test/BundleTests/Helpers/BundleHelper.cs [new file with mode: 0644]
src/installer/test/BundleTests/Helpers/BundleHelper.csproj [new file with mode: 0644]
src/installer/test/BundleTests/Microsoft.NET.HostModel.Bundle.Tests/BundleExtractRun.cs [new file with mode: 0644]
src/installer/test/BundleTests/Microsoft.NET.HostModel.Bundle.Tests/BundlerConsistencyTests.cs [new file with mode: 0644]
src/installer/test/BundleTests/Microsoft.NET.HostModel.Bundle.Tests/Microsoft.NET.HostModel.Bundle.Tests.csproj [new file with mode: 0644]
src/installer/test/HostActivationTests/BundledAppWithSubDirs.cs [deleted file]
src/installer/test/Microsoft.NET.HostModel.Tests/BundleAndExtract.cs [deleted file]
src/installer/test/TestUtils/Assertions/DirectoryInfoAssertions.cs
src/installer/test/TestUtils/TestProjectFixture.cs
src/installer/test/dir.props