Migrate Windows CI roles to test targets. (#18005)

This commit is contained in:
Matt Clay
2016-10-13 10:03:19 -07:00
committed by John R Barker
parent 9182619fef
commit c2ec86cb78
81 changed files with 26 additions and 26 deletions

View File

@@ -0,0 +1,2 @@
@ECHO OFF
ECHO We can even run a batch file!

View File

@@ -0,0 +1,2 @@
@ECHO OFF
ECHO We can even run a batch file with cmd extension!

View File

@@ -0,0 +1,2 @@
# Test script to make sure the Ansible script module works.
Write-Host "Woohoo! We can run a PowerShell script via Ansible!"

View File

@@ -0,0 +1,6 @@
Param(
[bool]$boolvariable
)
Write-Host $boolvariable.GetType()
Write-Host $boolvariable

View File

@@ -0,0 +1,3 @@
# Test script to create a file.
echo $null > $args[0]

View File

@@ -0,0 +1,3 @@
# Test script to remove a file.
Remove-Item $args[0] -Force

View File

@@ -0,0 +1,7 @@
# Test script to make sure the Ansible script module works when arguments are
# passed to the script.
foreach ($i in $args)
{
Write-Host $i;
}

View File

@@ -0,0 +1,9 @@
# Test script to make sure we handle non-zero exit codes.
trap
{
Write-Error -ErrorRecord $_
exit 1;
}
throw "Oh noes I has an error"

View File

@@ -0,0 +1,6 @@
# Test script to make sure the Ansible script module works when arguments are
# passed via splatting (http://technet.microsoft.com/en-us/magazine/gg675931.aspx)
Write-Host $args.This
Write-Host $args.That
Write-Host $args.Other