Making argument forwarding tests run with dotnet test and removing the its special test scripts.
This commit is contained in:
parent
5c0eb19859
commit
64c17c5541
12 changed files with 36 additions and 119 deletions
27
test/ArgumentsReflector/Reflector.cs
Normal file
27
test/ArgumentsReflector/Reflector.cs
Normal file
|
@ -0,0 +1,27 @@
|
|||
// Copyright (c) .NET Foundation and contributors. All rights reserved.
|
||||
// Licensed under the MIT license. See LICENSE file in the project root for full license information.
|
||||
|
||||
using System;
|
||||
|
||||
namespace Microsoft.DotNet.Tests.ArgumentForwarding
|
||||
{
|
||||
public class Program
|
||||
{
|
||||
public static void Main(string[] args)
|
||||
{
|
||||
bool first=true;
|
||||
foreach (var arg in args)
|
||||
{
|
||||
if (first)
|
||||
{
|
||||
first=false;
|
||||
}
|
||||
else
|
||||
{
|
||||
Console.Write(",");
|
||||
}
|
||||
Console.Write(arg);
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
18
test/ArgumentsReflector/Reflector.xproj
Normal file
18
test/ArgumentsReflector/Reflector.xproj
Normal file
|
@ -0,0 +1,18 @@
|
|||
<?xml version="1.0" encoding="utf-8"?>
|
||||
<Project ToolsVersion="14.0.24720" DefaultTargets="Build" xmlns="http://schemas.microsoft.com/developer/msbuild/2003">
|
||||
<PropertyGroup>
|
||||
<VisualStudioVersion Condition="'$(VisualStudioVersion)' == ''">14.0.24720</VisualStudioVersion>
|
||||
<VSToolsPath Condition="'$(VSToolsPath)' == ''">$(MSBuildExtensionsPath32)\Microsoft\VisualStudio\v$(VisualStudioVersion)</VSToolsPath>
|
||||
</PropertyGroup>
|
||||
<Import Project="$(VSToolsPath)\DNX\Microsoft.DNX.Props" Condition="'$(VSToolsPath)' != ''" />
|
||||
<PropertyGroup Label="Globals">
|
||||
<ProjectGuid>6f2e6f25-b43b-495d-9ca5-7f207d1dd604</ProjectGuid>
|
||||
<RootNamespace>Microsoft.DotNet.Tests.ArgumentForwarding</RootNamespace>
|
||||
<BaseIntermediateOutputPath Condition="'$(BaseIntermediateOutputPath)'=='' ">..\..\artifacts\obj\$(MSBuildProjectName)</BaseIntermediateOutputPath>
|
||||
<OutputPath Condition="'$(OutputPath)'=='' ">..\..\artifacts\bin\$(MSBuildProjectName)\</OutputPath>
|
||||
</PropertyGroup>
|
||||
<PropertyGroup>
|
||||
<SchemaVersion>2.0</SchemaVersion>
|
||||
</PropertyGroup>
|
||||
<Import Project="$(VSToolsPath)\DNX\Microsoft.DNX.targets" Condition="'$(VSToolsPath)' != ''" />
|
||||
</Project>
|
18
test/ArgumentsReflector/project.json
Normal file
18
test/ArgumentsReflector/project.json
Normal file
|
@ -0,0 +1,18 @@
|
|||
{
|
||||
"version": "1.0.0-*",
|
||||
"compilationOptions": {
|
||||
"emitEntryPoint": true
|
||||
},
|
||||
|
||||
"dependencies": {
|
||||
"NETStandard.Library" : "1.0.0-rc2-23811"
|
||||
},
|
||||
|
||||
"frameworks": {
|
||||
"dnxcore50": {
|
||||
"imports": "portable-net45+win8"
|
||||
}
|
||||
},
|
||||
|
||||
"content": ["reflector_cmd.cmd"]
|
||||
}
|
19
test/ArgumentsReflector/reflector_cmd.cmd
Normal file
19
test/ArgumentsReflector/reflector_cmd.cmd
Normal file
|
@ -0,0 +1,19 @@
|
|||
@echo off
|
||||
set ALL_ARGS=
|
||||
set a=%1
|
||||
if not defined a goto :doneSetArgs
|
||||
|
||||
set ALL_ARGS=%~1%
|
||||
shift
|
||||
|
||||
:setArgs
|
||||
set a=%1
|
||||
if not defined a goto :doneSetArgs
|
||||
|
||||
set ALL_ARGS=%ALL_ARGS%,%~1%
|
||||
shift
|
||||
goto setArgs
|
||||
|
||||
:doneSetArgs
|
||||
echo %ALL_ARGS%
|
||||
goto :EOF
|
Loading…
Add table
Add a link
Reference in a new issue