aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/test/examples/boost/run.ps1
diff options
context:
space:
mode:
Diffstat (limited to 'test/examples/boost/run.ps1')
-rw-r--r--test/examples/boost/run.ps124
1 files changed, 24 insertions, 0 deletions
diff --git a/test/examples/boost/run.ps1 b/test/examples/boost/run.ps1
new file mode 100644
index 0000000..578911f
--- /dev/null
+++ b/test/examples/boost/run.ps1
@@ -0,0 +1,24 @@
+param(
+ [Parameter(Mandatory=$true)]
+ [string] $FooPath
+)
+
+$foo_path = [System.IO.Path]::GetFullPath($FooPath)
+if ($IsWindows) {
+ $foo_path += '.exe'
+}
+
+$relative = 'test.txt'
+$absolute = Join-Path (Get-Location).Path $relative
+
+$actual = & $foo_path $relative
+echo 'Actual output:'
+echo $actual
+
+$expected = $foo_path,$absolute
+echo 'Expected output:'
+echo $expected
+
+if (Compare-Object $actual $expected -CaseSensitive) {
+ throw 'Unexpected output'
+}