summaryrefslogtreecommitdiff
path: root/test
diff options
context:
space:
mode:
authorMikhail Osipov <mike.osipov@gmail.com>2020-01-24 04:05:22 +0300
committerMikhail Osipov <mikhail.osipov@kaspersky.com>2020-01-24 14:15:12 +0300
commit774028525cf003e284071685e2b697ad305086e2 (patch)
treee6b431082138a79f9dad7dd844adc7c4a3eb7015 /test
parentab3e3860cbb836203ac707ea395af9902d29ad39 (diff)
eval query with env
Diffstat (limited to 'test')
-rw-r--r--test/Makefile4
-rwxr-xr-xtest/hello.sh11
2 files changed, 15 insertions, 0 deletions
diff --git a/test/Makefile b/test/Makefile
new file mode 100644
index 0000000..31766f2
--- /dev/null
+++ b/test/Makefile
@@ -0,0 +1,4 @@
+nothing:
+ @echo to be done...
+
+.PHONY: nothing
diff --git a/test/hello.sh b/test/hello.sh
new file mode 100755
index 0000000..26711ef
--- /dev/null
+++ b/test/hello.sh
@@ -0,0 +1,11 @@
+#!/bin/bash
+
+ROOT=$(dirname $0)/..
+PATH=$ROOT/cmd/tunnel
+
+tunnel env clear
+tunnel env set cmd echo
+tunnel env set x Hello
+tunnel env set y World
+tunnel env set args "%x, %y!"
+tunnel %cmd %args