You've already forked linux-packaging-mono
Imported Upstream version 5.0.0.42
Former-commit-id: fd56571888259555122d8a0f58c68838229cea2b
This commit is contained in:
parent
1190d13a04
commit
6bdd276d05
15
external/corert/tests/src/Simple/Hello/Hello.cmd
vendored
Normal file
15
external/corert/tests/src/Simple/Hello/Hello.cmd
vendored
Normal 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
|
||||
|
||||
24
external/corert/tests/src/Simple/Hello/Hello.cs
vendored
Normal file
24
external/corert/tests/src/Simple/Hello/Hello.cs
vendored
Normal 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]);
|
||||
}
|
||||
}
|
||||
}
|
||||
7
external/corert/tests/src/Simple/Hello/Hello.csproj
vendored
Normal file
7
external/corert/tests/src/Simple/Hello/Hello.csproj
vendored
Normal 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>
|
||||
11
external/corert/tests/src/Simple/Hello/Hello.sh
vendored
Executable file
11
external/corert/tests/src/Simple/Hello/Hello.sh
vendored
Executable 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
|
||||
Reference in New Issue
Block a user