-
Notifications
You must be signed in to change notification settings - Fork 308
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Migrate COM+ E2E tests from raw binaries to source code.
Signed-off-by: Bevan Weiss <[email protected]>
- Loading branch information
1 parent
523c66a
commit 387e3c0
Showing
36 changed files
with
1,283 additions
and
7 deletions.
There are no files selected for viewing
79 changes: 79 additions & 0 deletions
79
src/test/msi/TestData/ComPlusExtensionTests/Components/ComPlusComponents.sln
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,79 @@ | ||
|
||
Microsoft Visual Studio Solution File, Format Version 12.00 | ||
# Visual Studio Version 17 | ||
VisualStudioVersion = 17.11.35111.106 | ||
MinimumVisualStudioVersion = 10.0.40219.1 | ||
Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "TestComponentNET3", "TestComponentNET3\TestComponentNET3.csproj", "{B4CD7ECE-7245-445B-9F04-D2952631554D}" | ||
EndProject | ||
Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "TestComponentNET4", "TestComponentNET4\TestComponentNET4.csproj", "{EA2AFCCE-677D-433E-8517-4CFBBD3EBFAA}" | ||
EndProject | ||
Project("{8BC9CEB8-8B4A-11D0-8D11-00A0C91BC942}") = "TestComponentNative", "TestComponentNative\TestComponentNative.vcxproj", "{EB199FA2-F9F7-4A2F-A4D3-6689F8A18952}" | ||
EndProject | ||
Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "TestComponentNET8", "TestComponentNET8\TestComponentNET8.csproj", "{EC2F6BAE-9840-4CA0-8B83-F38F635CF246}" | ||
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(ProjectConfigurationPlatforms) = postSolution | ||
{B4CD7ECE-7245-445B-9F04-D2952631554D}.Debug|Any CPU.ActiveCfg = Debug|Any CPU | ||
{B4CD7ECE-7245-445B-9F04-D2952631554D}.Debug|Any CPU.Build.0 = Debug|Any CPU | ||
{B4CD7ECE-7245-445B-9F04-D2952631554D}.Debug|x64.ActiveCfg = Debug|Any CPU | ||
{B4CD7ECE-7245-445B-9F04-D2952631554D}.Debug|x64.Build.0 = Debug|Any CPU | ||
{B4CD7ECE-7245-445B-9F04-D2952631554D}.Debug|x86.ActiveCfg = Debug|Any CPU | ||
{B4CD7ECE-7245-445B-9F04-D2952631554D}.Debug|x86.Build.0 = Debug|Any CPU | ||
{B4CD7ECE-7245-445B-9F04-D2952631554D}.Release|Any CPU.ActiveCfg = Release|Any CPU | ||
{B4CD7ECE-7245-445B-9F04-D2952631554D}.Release|Any CPU.Build.0 = Release|Any CPU | ||
{B4CD7ECE-7245-445B-9F04-D2952631554D}.Release|x64.ActiveCfg = Release|Any CPU | ||
{B4CD7ECE-7245-445B-9F04-D2952631554D}.Release|x64.Build.0 = Release|Any CPU | ||
{B4CD7ECE-7245-445B-9F04-D2952631554D}.Release|x86.ActiveCfg = Release|Any CPU | ||
{B4CD7ECE-7245-445B-9F04-D2952631554D}.Release|x86.Build.0 = Release|Any CPU | ||
{EA2AFCCE-677D-433E-8517-4CFBBD3EBFAA}.Debug|Any CPU.ActiveCfg = Debug|Any CPU | ||
{EA2AFCCE-677D-433E-8517-4CFBBD3EBFAA}.Debug|Any CPU.Build.0 = Debug|Any CPU | ||
{EA2AFCCE-677D-433E-8517-4CFBBD3EBFAA}.Debug|x64.ActiveCfg = Debug|Any CPU | ||
{EA2AFCCE-677D-433E-8517-4CFBBD3EBFAA}.Debug|x64.Build.0 = Debug|Any CPU | ||
{EA2AFCCE-677D-433E-8517-4CFBBD3EBFAA}.Debug|x86.ActiveCfg = Debug|Any CPU | ||
{EA2AFCCE-677D-433E-8517-4CFBBD3EBFAA}.Debug|x86.Build.0 = Debug|Any CPU | ||
{EA2AFCCE-677D-433E-8517-4CFBBD3EBFAA}.Release|Any CPU.ActiveCfg = Release|Any CPU | ||
{EA2AFCCE-677D-433E-8517-4CFBBD3EBFAA}.Release|Any CPU.Build.0 = Release|Any CPU | ||
{EA2AFCCE-677D-433E-8517-4CFBBD3EBFAA}.Release|x64.ActiveCfg = Release|Any CPU | ||
{EA2AFCCE-677D-433E-8517-4CFBBD3EBFAA}.Release|x64.Build.0 = Release|Any CPU | ||
{EA2AFCCE-677D-433E-8517-4CFBBD3EBFAA}.Release|x86.ActiveCfg = Release|Any CPU | ||
{EA2AFCCE-677D-433E-8517-4CFBBD3EBFAA}.Release|x86.Build.0 = Release|Any CPU | ||
{EB199FA2-F9F7-4A2F-A4D3-6689F8A18952}.Debug|Any CPU.ActiveCfg = Debug|x64 | ||
{EB199FA2-F9F7-4A2F-A4D3-6689F8A18952}.Debug|Any CPU.Build.0 = Debug|x64 | ||
{EB199FA2-F9F7-4A2F-A4D3-6689F8A18952}.Debug|x64.ActiveCfg = Debug|x64 | ||
{EB199FA2-F9F7-4A2F-A4D3-6689F8A18952}.Debug|x64.Build.0 = Debug|x64 | ||
{EB199FA2-F9F7-4A2F-A4D3-6689F8A18952}.Debug|x86.ActiveCfg = Debug|Win32 | ||
{EB199FA2-F9F7-4A2F-A4D3-6689F8A18952}.Debug|x86.Build.0 = Debug|Win32 | ||
{EB199FA2-F9F7-4A2F-A4D3-6689F8A18952}.Release|Any CPU.ActiveCfg = Release|x64 | ||
{EB199FA2-F9F7-4A2F-A4D3-6689F8A18952}.Release|Any CPU.Build.0 = Release|x64 | ||
{EB199FA2-F9F7-4A2F-A4D3-6689F8A18952}.Release|x64.ActiveCfg = Release|x64 | ||
{EB199FA2-F9F7-4A2F-A4D3-6689F8A18952}.Release|x64.Build.0 = Release|x64 | ||
{EB199FA2-F9F7-4A2F-A4D3-6689F8A18952}.Release|x86.ActiveCfg = Release|Win32 | ||
{EB199FA2-F9F7-4A2F-A4D3-6689F8A18952}.Release|x86.Build.0 = Release|Win32 | ||
{EC2F6BAE-9840-4CA0-8B83-F38F635CF246}.Debug|Any CPU.ActiveCfg = Debug|Any CPU | ||
{EC2F6BAE-9840-4CA0-8B83-F38F635CF246}.Debug|Any CPU.Build.0 = Debug|Any CPU | ||
{EC2F6BAE-9840-4CA0-8B83-F38F635CF246}.Debug|x64.ActiveCfg = Debug|Any CPU | ||
{EC2F6BAE-9840-4CA0-8B83-F38F635CF246}.Debug|x64.Build.0 = Debug|Any CPU | ||
{EC2F6BAE-9840-4CA0-8B83-F38F635CF246}.Debug|x86.ActiveCfg = Debug|Any CPU | ||
{EC2F6BAE-9840-4CA0-8B83-F38F635CF246}.Debug|x86.Build.0 = Debug|Any CPU | ||
{EC2F6BAE-9840-4CA0-8B83-F38F635CF246}.Release|Any CPU.ActiveCfg = Release|Any CPU | ||
{EC2F6BAE-9840-4CA0-8B83-F38F635CF246}.Release|Any CPU.Build.0 = Release|Any CPU | ||
{EC2F6BAE-9840-4CA0-8B83-F38F635CF246}.Release|x64.ActiveCfg = Release|Any CPU | ||
{EC2F6BAE-9840-4CA0-8B83-F38F635CF246}.Release|x64.Build.0 = Release|Any CPU | ||
{EC2F6BAE-9840-4CA0-8B83-F38F635CF246}.Release|x86.ActiveCfg = Release|Any CPU | ||
{EC2F6BAE-9840-4CA0-8B83-F38F635CF246}.Release|x86.Build.0 = Release|Any CPU | ||
EndGlobalSection | ||
GlobalSection(SolutionProperties) = preSolution | ||
HideSolutionNode = FALSE | ||
EndGlobalSection | ||
GlobalSection(ExtensibilityGlobals) = postSolution | ||
SolutionGuid = {4C27BD28-1E2C-4414-8290-3C5C042DF148} | ||
EndGlobalSection | ||
EndGlobal |
Binary file removed
BIN
-16 KB
src/test/msi/TestData/ComPlusExtensionTests/Components/TestComponentNET3.dll
Binary file not shown.
57 changes: 57 additions & 0 deletions
57
src/test/msi/TestData/ComPlusExtensionTests/Components/TestComponentNET3/AssemblyInfo.cs
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,57 @@ | ||
using System.Reflection; | ||
|
||
// | ||
// General Information about an assembly is controlled through the following | ||
// set of attributes. Change these attribute values to modify the information | ||
// associated with an assembly. | ||
// | ||
[assembly: AssemblyTitle("")] | ||
[assembly: AssemblyDescription("")] | ||
[assembly: AssemblyConfiguration("")] | ||
[assembly: AssemblyCompany("")] | ||
[assembly: AssemblyProduct("")] | ||
[assembly: AssemblyCopyright("")] | ||
[assembly: AssemblyTrademark("")] | ||
[assembly: AssemblyCulture("")] | ||
|
||
// | ||
// Version information for an assembly consists of the following four values: | ||
// | ||
// Major Version | ||
// Minor Version | ||
// Build Number | ||
// Revision | ||
// | ||
// You can specify all the values or you can default the Revision and Build Numbers | ||
// by using the '*' as shown below: | ||
|
||
[assembly: AssemblyVersion("1.0.*")] | ||
|
||
// | ||
// In order to sign your assembly you must specify a key to use. Refer to the | ||
// Microsoft .NET Framework documentation for more information on assembly signing. | ||
// | ||
// Use the attributes below to control which key is used for signing. | ||
// | ||
// Notes: | ||
// (*) If no key is specified, the assembly is not signed. | ||
// (*) KeyName refers to a key that has been installed in the Crypto Service | ||
// Provider (CSP) on your machine. KeyFile refers to a file which contains | ||
// a key. | ||
// (*) If the KeyFile and the KeyName values are both specified, the | ||
// following processing occurs: | ||
// (1) If the KeyName can be found in the CSP, that key is used. | ||
// (2) If the KeyName does not exist and the KeyFile does exist, the key | ||
// in the KeyFile is installed into the CSP and used. | ||
// (*) In order to create a KeyFile, you can use the sn.exe (Strong Name) utility. | ||
// When specifying the KeyFile, the location of the KeyFile should be | ||
// relative to the project output directory which is | ||
// %Project Directory%\obj\<configuration>. For example, if your KeyFile is | ||
// located in the project directory, you would specify the AssemblyKeyFile | ||
// attribute as [assembly: AssemblyKeyFile("..\\..\\mykey.snk")] | ||
// (*) Delay Signing is an advanced option - see the Microsoft .NET Framework | ||
// documentation for more information on this. | ||
// | ||
[assembly: AssemblyDelaySign(false)] | ||
//[assembly: AssemblyKeyFile("..\\..\\..\\Signing.sn")] | ||
[assembly: AssemblyKeyName("")] |
30 changes: 30 additions & 0 deletions
30
...test/msi/TestData/ComPlusExtensionTests/Components/TestComponentNET3/TestComponentNET3.cs
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,30 @@ | ||
using System; | ||
using System.EnterpriseServices; | ||
using System.Runtime.InteropServices; | ||
|
||
[assembly: ApplicationActivation(ActivationOption.Library)] | ||
namespace TestApplication | ||
{ | ||
/// <summary> | ||
/// TestComponent | ||
/// </summary> | ||
[ComVisible(true)] | ||
[Transaction(TransactionOption.Required)] | ||
[ObjectPooling(true, 5, 10)] | ||
[Guid("17F82C39-5433-493A-A396-36072C645B80")] | ||
public class TestComponent3 : ServicedComponent | ||
{ | ||
public TestComponent3() | ||
{ | ||
// | ||
// TODO: Add constructor logic here | ||
// | ||
} | ||
|
||
[AutoComplete(true)] | ||
public void TestMethod(string Name, string Address, int JobType, bool MakeFail) | ||
{ | ||
|
||
} | ||
} | ||
} |
97 changes: 97 additions & 0 deletions
97
.../msi/TestData/ComPlusExtensionTests/Components/TestComponentNET3/TestComponentNET3.csproj
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,97 @@ | ||
<?xml version="1.0" encoding="utf-8"?> | ||
<Project ToolsVersion="12.0" xmlns="http://schemas.microsoft.com/developer/msbuild/2003" DefaultTargets="Build"> | ||
<PropertyGroup> | ||
<ProjectType>Local</ProjectType> | ||
<ProductVersion>7.0.9466</ProductVersion> | ||
<SchemaVersion>1.0</SchemaVersion> | ||
<ProjectGuid>{B4CD7ECE-7245-445B-9F04-D2952631554D}</ProjectGuid> | ||
<Configuration Condition=" '$(Configuration)' == '' ">Debug</Configuration> | ||
<Platform Condition=" '$(Platform)' == '' ">AnyCPU</Platform> | ||
<IsWixTestProject>false</IsWixTestProject> | ||
<ApplicationIcon /> | ||
<AssemblyKeyContainerName /> | ||
<AssemblyName>TestComponentNET3</AssemblyName> | ||
<AssemblyOriginatorKeyFile /> | ||
<DefaultClientScript>JScript</DefaultClientScript> | ||
<DefaultHTMLPageLayout>Grid</DefaultHTMLPageLayout> | ||
<DefaultTargetSchema>IE50</DefaultTargetSchema> | ||
<DelaySign>false</DelaySign> | ||
<OutputType>Library</OutputType> | ||
<RootNamespace>TestApplication</RootNamespace> | ||
<StartupObject /> | ||
<FileUpgradeFlags> | ||
</FileUpgradeFlags> | ||
<UpgradeBackupLocation> | ||
</UpgradeBackupLocation> | ||
<OldToolsVersion>0.0</OldToolsVersion> | ||
<TargetFrameworkVersion>v3.5</TargetFrameworkVersion> | ||
<TargetFrameworkProfile /> | ||
</PropertyGroup> | ||
<PropertyGroup Condition=" '$(Configuration)|$(Platform)' == 'Debug|AnyCPU' "> | ||
<OutputPath>bin\Debug\</OutputPath> | ||
<AllowUnsafeBlocks>false</AllowUnsafeBlocks> | ||
<BaseAddress>285212672</BaseAddress> | ||
<CheckForOverflowUnderflow>false</CheckForOverflowUnderflow> | ||
<ConfigurationOverrideFile /> | ||
<DefineConstants>DEBUG;TRACE</DefineConstants> | ||
<DocumentationFile /> | ||
<DebugSymbols>true</DebugSymbols> | ||
<FileAlignment>4096</FileAlignment> | ||
<Optimize>false</Optimize> | ||
<RegisterForComInterop>false</RegisterForComInterop> | ||
<RemoveIntegerChecks>false</RemoveIntegerChecks> | ||
<TreatWarningsAsErrors>false</TreatWarningsAsErrors> | ||
<WarningLevel>4</WarningLevel> | ||
<DebugType>full</DebugType> | ||
<ErrorReport>prompt</ErrorReport> | ||
<Prefer32Bit>false</Prefer32Bit> | ||
<PlatformTarget>AnyCPU</PlatformTarget> | ||
</PropertyGroup> | ||
<PropertyGroup Condition=" '$(Configuration)|$(Platform)' == 'Release|AnyCPU' "> | ||
<OutputPath>bin\Release\</OutputPath> | ||
<AllowUnsafeBlocks>false</AllowUnsafeBlocks> | ||
<BaseAddress>285212672</BaseAddress> | ||
<CheckForOverflowUnderflow>false</CheckForOverflowUnderflow> | ||
<ConfigurationOverrideFile /> | ||
<DefineConstants>TRACE</DefineConstants> | ||
<DocumentationFile /> | ||
<DebugSymbols>false</DebugSymbols> | ||
<FileAlignment>4096</FileAlignment> | ||
<Optimize>true</Optimize> | ||
<RegisterForComInterop>false</RegisterForComInterop> | ||
<RemoveIntegerChecks>false</RemoveIntegerChecks> | ||
<TreatWarningsAsErrors>false</TreatWarningsAsErrors> | ||
<WarningLevel>4</WarningLevel> | ||
<DebugType>none</DebugType> | ||
<ErrorReport>prompt</ErrorReport> | ||
<Prefer32Bit>false</Prefer32Bit> | ||
</PropertyGroup> | ||
<ItemGroup> | ||
<Reference Include="System"> | ||
<Name>System</Name> | ||
</Reference> | ||
<Reference Include="System.Data"> | ||
<Name>System.Data</Name> | ||
</Reference> | ||
<Reference Include="System.EnterpriseServices"> | ||
<Name>System.EnterpriseServices</Name> | ||
</Reference> | ||
<Reference Include="System.XML"> | ||
<Name>System.XML</Name> | ||
</Reference> | ||
</ItemGroup> | ||
<ItemGroup> | ||
<Compile Include="AssemblyInfo.cs"> | ||
<SubType>Code</SubType> | ||
</Compile> | ||
<Compile Include="TestComponentNET3.cs"> | ||
<SubType>Code</SubType> | ||
</Compile> | ||
</ItemGroup> | ||
<Import Project="$(MSBuildToolsPath)\Microsoft.CSharp.targets" /> | ||
<PropertyGroup> | ||
<PreBuildEvent /> | ||
<PostBuildEvent>call "$(DevEnvDir)..\Tools\VsDevCmd.bat" | ||
tlbexp.exe $(TargetDir)$(TargetFileName)</PostBuildEvent> | ||
</PropertyGroup> | ||
</Project> |
Binary file removed
BIN
-16 KB
src/test/msi/TestData/ComPlusExtensionTests/Components/TestComponentNET4.dll
Binary file not shown.
57 changes: 57 additions & 0 deletions
57
src/test/msi/TestData/ComPlusExtensionTests/Components/TestComponentNET4/AssemblyInfo.cs
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,57 @@ | ||
using System.Reflection; | ||
|
||
// | ||
// General Information about an assembly is controlled through the following | ||
// set of attributes. Change these attribute values to modify the information | ||
// associated with an assembly. | ||
// | ||
[assembly: AssemblyTitle("")] | ||
[assembly: AssemblyDescription("")] | ||
[assembly: AssemblyConfiguration("")] | ||
[assembly: AssemblyCompany("")] | ||
[assembly: AssemblyProduct("")] | ||
[assembly: AssemblyCopyright("")] | ||
[assembly: AssemblyTrademark("")] | ||
[assembly: AssemblyCulture("")] | ||
|
||
// | ||
// Version information for an assembly consists of the following four values: | ||
// | ||
// Major Version | ||
// Minor Version | ||
// Build Number | ||
// Revision | ||
// | ||
// You can specify all the values or you can default the Revision and Build Numbers | ||
// by using the '*' as shown below: | ||
|
||
[assembly: AssemblyVersion("1.0.*")] | ||
|
||
// | ||
// In order to sign your assembly you must specify a key to use. Refer to the | ||
// Microsoft .NET Framework documentation for more information on assembly signing. | ||
// | ||
// Use the attributes below to control which key is used for signing. | ||
// | ||
// Notes: | ||
// (*) If no key is specified, the assembly is not signed. | ||
// (*) KeyName refers to a key that has been installed in the Crypto Service | ||
// Provider (CSP) on your machine. KeyFile refers to a file which contains | ||
// a key. | ||
// (*) If the KeyFile and the KeyName values are both specified, the | ||
// following processing occurs: | ||
// (1) If the KeyName can be found in the CSP, that key is used. | ||
// (2) If the KeyName does not exist and the KeyFile does exist, the key | ||
// in the KeyFile is installed into the CSP and used. | ||
// (*) In order to create a KeyFile, you can use the sn.exe (Strong Name) utility. | ||
// When specifying the KeyFile, the location of the KeyFile should be | ||
// relative to the project output directory which is | ||
// %Project Directory%\obj\<configuration>. For example, if your KeyFile is | ||
// located in the project directory, you would specify the AssemblyKeyFile | ||
// attribute as [assembly: AssemblyKeyFile("..\\..\\mykey.snk")] | ||
// (*) Delay Signing is an advanced option - see the Microsoft .NET Framework | ||
// documentation for more information on this. | ||
// | ||
[assembly: AssemblyDelaySign(false)] | ||
//[assembly: AssemblyKeyFile("..\\..\\..\\Signing.sn")] | ||
[assembly: AssemblyKeyName("")] |
30 changes: 30 additions & 0 deletions
30
...test/msi/TestData/ComPlusExtensionTests/Components/TestComponentNET4/TestComponentNET4.cs
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,30 @@ | ||
using System; | ||
using System.EnterpriseServices; | ||
using System.Runtime.InteropServices; | ||
|
||
[assembly: ApplicationActivation(ActivationOption.Library)] | ||
namespace TestApplication | ||
{ | ||
/// <summary> | ||
/// TestComponent | ||
/// </summary> | ||
[ComVisible(true)] | ||
[Transaction(TransactionOption.Required)] | ||
[ObjectPooling(true, 5, 10)] | ||
[Guid("146AB3A2-4472-4DB9-94D5-311536E799BD")] | ||
public class TestComponent4 : ServicedComponent | ||
{ | ||
public TestComponent4() | ||
{ | ||
// | ||
// TODO: Add constructor logic here | ||
// | ||
} | ||
|
||
[AutoComplete(true)] | ||
public void TestMethod(string Name, string Address, int JobType, bool MakeFail) | ||
{ | ||
|
||
} | ||
} | ||
} |
Oops, something went wrong.