summaryrefslogtreecommitdiffstats
path: root/test/arguments/symrun.sh
diff options
context:
space:
mode:
Diffstat (limited to 'test/arguments/symrun.sh')
-rwxr-xr-xtest/arguments/symrun.sh27
1 files changed, 27 insertions, 0 deletions
diff --git a/test/arguments/symrun.sh b/test/arguments/symrun.sh
new file mode 100755
index 000000000..b46803ae2
--- /dev/null
+++ b/test/arguments/symrun.sh
@@ -0,0 +1,27 @@
1#!/bin/bash
2
3mkdir symtest
4ln -s /usr/bin/firejail symtest/argtest
5
6echo "TESTING: 2.1 - simple args"
7symtest/argtest arg1 arg2
8
9# simple quotes, testing spaces in file names
10echo "TESTING: 2.2 - args with space and \""
11symtest/argtest "arg1 tail" "arg2 tail"
12
13echo "TESTING: 2.3 - args with space and '"
14symtest/argtest 'arg1 tail' 'arg2 tail'
15
16# escaped space in file names
17echo "TESTING: 2.4 - args with space and \\"
18symtest/argtest arg1\ tail arg2\ tail
19
20# & char appears in URLs - URLs should be quoted
21echo "TESTING: 2.5 - args with & and \""
22symtest/argtest "arg1&tail" "arg2&tail"
23
24echo "TESTING: 2.6 - args with & and '"
25symtest/argtest 'arg1&tail' 'arg2&tail'
26
27rm -fr symtest