Imported Upstream version 5.0.0.42

Former-commit-id: fd56571888259555122d8a0f58c68838229cea2b
This commit is contained in:
Xamarin Public Jenkins (auto-signing)
2017-04-10 11:41:01 +00:00
parent 1190d13a04
commit 6bdd276d05
19939 changed files with 3099680 additions and 93811 deletions

View File

@@ -0,0 +1,15 @@
@echo off
setlocal
set ErrorCode=100
for /f "usebackq delims=;" %%F in (`"%1\%2" world`) do (
if "%%F"=="Hello world" set ErrorCode=0
)
IF "%ErrorCode%"=="0" (
echo %~n0: pass
EXIT /b 0
) ELSE (
echo %~n0: fail
EXIT /b 1
)
endlocal

View File

@@ -0,0 +1,24 @@
// Licensed to the .NET Foundation under one or more agreements.
// The .NET Foundation licenses this file to you under the MIT license.
// See the LICENSE file in the project root for more information.
using System;
// Name of namespace matches the name of the assembly on purpose to
// ensure that we can handle this (mostly an issue for C++ code generation).
namespace Hello
{
internal class Program
{
private static void Main(string[] args)
{
if (args.Length == 0)
{
Console.WriteLine("Usage: hello name");
return;
}
Console.WriteLine("Hello " + args[0]);
}
}
}

View File

@@ -0,0 +1,7 @@
<Project ToolsVersion="14.0" xmlns="http://schemas.microsoft.com/developer/msbuild/2003">
<ItemGroup>
<Compile Include="*.cs" />
</ItemGroup>
<Import Project="$([MSBuild]::GetDirectoryNameOfFileAbove($(MSBuildThisFileDirectory), SimpleTest.targets))\SimpleTest.targets" />
</Project>

View File

@@ -0,0 +1,11 @@
#!/usr/bin/env bash
dir=$1
file=$2
cmp=`$dir/$file world | tr '\n' ';'`
if [[ $cmp = "Hello world;" ]]; then
echo pass
exit 0
else
echo fail
exit 1
fi