summaryrefslogtreecommitdiffstats
path: root/test/integration/targets/args
diff options
context:
space:
mode:
Diffstat (limited to 'test/integration/targets/args')
-rw-r--r--test/integration/targets/args/aliases2
-rwxr-xr-xtest/integration/targets/args/runme.sh12
2 files changed, 14 insertions, 0 deletions
diff --git a/test/integration/targets/args/aliases b/test/integration/targets/args/aliases
new file mode 100644
index 0000000..1d28bdb
--- /dev/null
+++ b/test/integration/targets/args/aliases
@@ -0,0 +1,2 @@
+shippable/posix/group5
+context/controller
diff --git a/test/integration/targets/args/runme.sh b/test/integration/targets/args/runme.sh
new file mode 100755
index 0000000..af1c31d
--- /dev/null
+++ b/test/integration/targets/args/runme.sh
@@ -0,0 +1,12 @@
+#!/usr/bin/env bash
+
+set -eu
+
+echo "arg[#]: $#"
+echo "arg[0]: $0"
+
+i=0
+for arg in "$@"; do
+ i=$((i+1))
+ echo "arg[$i]: ${arg}"
+done