summaryrefslogtreecommitdiffstats
path: root/test/arguments/bashrun.sh
diff options
context:
space:
mode:
authorLibravatar netblue30 <netblue30@yahoo.com>2016-07-25 12:29:00 -0400
committerLibravatar netblue30 <netblue30@yahoo.com>2016-07-25 12:29:00 -0400
commit23bd0c41457262e7ef5223a187e3c15e44be039c (patch)
treecfecd32023600b289099aca58fab53f0f3fcdb48 /test/arguments/bashrun.sh
parentMerge pull request #646 from reinerh/master (diff)
downloadfirejail-23bd0c41457262e7ef5223a187e3c15e44be039c.tar.gz
firejail-23bd0c41457262e7ef5223a187e3c15e44be039c.tar.zst
firejail-23bd0c41457262e7ef5223a187e3c15e44be039c.zip
argument subsystem testing framework
Diffstat (limited to 'test/arguments/bashrun.sh')
-rwxr-xr-xtest/arguments/bashrun.sh22
1 files changed, 22 insertions, 0 deletions
diff --git a/test/arguments/bashrun.sh b/test/arguments/bashrun.sh
new file mode 100755
index 000000000..c2f209548
--- /dev/null
+++ b/test/arguments/bashrun.sh
@@ -0,0 +1,22 @@
1#!/bin/bash
2
3echo "TESTING: 1.1 - simple args"
4firejail --quiet ./argtest arg1 arg2
5
6# simple quotes, testing spaces in file names
7echo "TESTING: 1.2 - args with space and \""
8firejail --quiet ./argtest "arg1 tail" "arg2 tail"
9
10echo "TESTING: 1.3 - args with space and '"
11firejail --quiet ./argtest 'arg1 tail' 'arg2 tail'
12
13# escaped space in file names
14echo "TESTING: 1.4 - args with space and \\"
15firejail --quiet ./argtest arg1\ tail arg2\ tail
16
17# & char appears in URLs - URLs should be quoted
18echo "TESTING: 1.5 - args with & and \""
19firejail --quiet ./argtest "arg1&tail" "arg2&tail"
20
21echo "TESTING: 1.6 - args with & and '"
22firejail --quiet ./argtest 'arg1&tail' 'arg2&tail'