summaryrefslogtreecommitdiffstats
path: root/test/arguments
diff options
context:
space:
mode:
Diffstat (limited to 'test/arguments')
-rwxr-xr-xtest/arguments/joinrun.exp4
-rwxr-xr-xtest/arguments/joinrun.sh10
-rwxr-xr-xtest/arguments/outrun.sh6
-rwxr-xr-xtest/arguments/symrun.sh17
4 files changed, 17 insertions, 20 deletions
diff --git a/test/arguments/joinrun.exp b/test/arguments/joinrun.exp
index 097becacc..97972e5e8 100755
--- a/test/arguments/joinrun.exp
+++ b/test/arguments/joinrun.exp
@@ -35,10 +35,6 @@ expect {
35 timeout {puts "TESTING ERROR 3.2.3\n";exit} 35 timeout {puts "TESTING ERROR 3.2.3\n";exit}
36 "#arg2 tail#" 36 "#arg2 tail#"
37} 37}
38
39# todo: remove exit and fix it
40exit
41
42expect { 38expect {
43 timeout {puts "TESTING ERROR 3.3.1\n";exit} 39 timeout {puts "TESTING ERROR 3.3.1\n";exit}
44 "Arguments:" 40 "Arguments:"
diff --git a/test/arguments/joinrun.sh b/test/arguments/joinrun.sh
index 3ed166839..b00ea0e80 100755
--- a/test/arguments/joinrun.sh
+++ b/test/arguments/joinrun.sh
@@ -5,18 +5,18 @@ firejail --env=FIREJAIL_TEST_ARGUMENTS=yes --join=joinrun faudit arg1 arg2
5 5
6# simple quotes, testing spaces in file names 6# simple quotes, testing spaces in file names
7echo "TESTING: 3.2 - args with space and \"" 7echo "TESTING: 3.2 - args with space and \""
8firejail--env=FIREJAIL_TEST_ARGUMENTS=yes --quiet faudit "arg1 tail" "arg2 tail" 8firejail --env=FIREJAIL_TEST_ARGUMENTS=yes --join=joinrun faudit "arg1 tail" "arg2 tail"
9 9
10echo "TESTING: 3.3 - args with space and '" 10echo "TESTING: 3.3 - args with space and '"
11firejail --env=FIREJAIL_TEST_ARGUMENTS=yes --quiet faudit 'arg1 tail' 'arg2 tail' 11firejail --env=FIREJAIL_TEST_ARGUMENTS=yes --join=joinrun faudit 'arg1 tail' 'arg2 tail'
12 12
13# escaped space in file names 13# escaped space in file names
14echo "TESTING: 3.4 - args with space and \\" 14echo "TESTING: 3.4 - args with space and \\"
15firejail--env=FIREJAIL_TEST_ARGUMENTS=yes --quiet faudit arg1\ tail arg2\ tail 15firejail --env=FIREJAIL_TEST_ARGUMENTS=yes --join=joinrun faudit arg1\ tail arg2\ tail
16 16
17# & char appears in URLs - URLs should be quoted 17# & char appears in URLs - URLs should be quoted
18echo "TESTING: 3.5 - args with & and \"" 18echo "TESTING: 3.5 - args with & and \""
19firejail --env=FIREJAIL_TEST_ARGUMENTS=yes --quiet faudit "arg1&tail" "arg2&tail" 19firejail --env=FIREJAIL_TEST_ARGUMENTS=yes --join=joinrun faudit "arg1&tail" "arg2&tail"
20 20
21echo "TESTING: 3.6 - args with & and '" 21echo "TESTING: 3.6 - args with & and '"
22firejail --env=FIREJAIL_TEST_ARGUMENTS=yes --quiet faudit 'arg1&tail' 'arg2&tail' 22firejail --env=FIREJAIL_TEST_ARGUMENTS=yes --join=joinrun faudit 'arg1&tail' 'arg2&tail'
diff --git a/test/arguments/outrun.sh b/test/arguments/outrun.sh
index e2b3046d6..5bc3b1e37 100755
--- a/test/arguments/outrun.sh
+++ b/test/arguments/outrun.sh
@@ -8,15 +8,15 @@ echo "TESTING: 4.2 - args with space and \""
8firejail --env=FIREJAIL_TEST_ARGUMENTS=yes --output=out faudit "arg1 tail" "arg2 tail" 8firejail --env=FIREJAIL_TEST_ARGUMENTS=yes --output=out faudit "arg1 tail" "arg2 tail"
9 9
10echo "TESTING: 4.3 - args with space and '" 10echo "TESTING: 4.3 - args with space and '"
11firejail--env=FIREJAIL_TEST_ARGUMENTS=yes --output=out faudit 'arg1 tail' 'arg2 tail' 11firejail --env=FIREJAIL_TEST_ARGUMENTS=yes --output=out faudit 'arg1 tail' 'arg2 tail'
12 12
13# escaped space in file names 13# escaped space in file names
14echo "TESTING: 4.4 - args with space and \\" 14echo "TESTING: 4.4 - args with space and \\"
15firejail--env=FIREJAIL_TEST_ARGUMENTS=yes --output=out faudit arg1\ tail arg2\ tail 15firejail --env=FIREJAIL_TEST_ARGUMENTS=yes --output=out faudit arg1\ tail arg2\ tail
16 16
17# & char appears in URLs - URLs should be quoted 17# & char appears in URLs - URLs should be quoted
18echo "TESTING: 4.5 - args with & and \"" 18echo "TESTING: 4.5 - args with & and \""
19firejail --env=FIREJAIL_TEST_ARGUMENTS=yes --output=out faudit "arg1&tail" "arg2&tail" 19firejail --env=FIREJAIL_TEST_ARGUMENTS=yes --output=out faudit "arg1&tail" "arg2&tail"
20 20
21echo "TESTING: 4.6 - args with & and '" 21echo "TESTING: 4.6 - args with & and '"
22firejail--env=FIREJAIL_TEST_ARGUMENTS=yes --output=out faudit 'arg1&tail' 'arg2&tail' 22firejail --env=FIREJAIL_TEST_ARGUMENTS=yes --output=out faudit 'arg1&tail' 'arg2&tail'
diff --git a/test/arguments/symrun.sh b/test/arguments/symrun.sh
index d28f024a8..db5f06835 100755
--- a/test/arguments/symrun.sh
+++ b/test/arguments/symrun.sh
@@ -1,30 +1,31 @@
1#!/bin/bash 1#!/bin/bash
2 2
3mkdir symtest 3mkdir symtest
4ln -s /usr/bin/firejail symtest/argtest 4ln -s /usr/bin/firejail symtest/faudit
5 5
6# search for argtest in current directory 6# search for faudit in current directory
7export PATH=$PATH:. 7export PATH=$PATH:.
8export FIREJAIL_TEST_ARGUMENTS=yes
8 9
9echo "TESTING: 2.1 - simple args" 10echo "TESTING: 2.1 - simple args"
10symtest/argtest arg1 arg2 11symtest/faudit arg1 arg2
11 12
12# simple quotes, testing spaces in file names 13# simple quotes, testing spaces in file names
13echo "TESTING: 2.2 - args with space and \"" 14echo "TESTING: 2.2 - args with space and \""
14symtest/argtest "arg1 tail" "arg2 tail" 15symtest/faudit "arg1 tail" "arg2 tail"
15 16
16echo "TESTING: 2.3 - args with space and '" 17echo "TESTING: 2.3 - args with space and '"
17symtest/argtest 'arg1 tail' 'arg2 tail' 18symtest/faudit 'arg1 tail' 'arg2 tail'
18 19
19# escaped space in file names 20# escaped space in file names
20echo "TESTING: 2.4 - args with space and \\" 21echo "TESTING: 2.4 - args with space and \\"
21symtest/argtest arg1\ tail arg2\ tail 22symtest/faudit arg1\ tail arg2\ tail
22 23
23# & char appears in URLs - URLs should be quoted 24# & char appears in URLs - URLs should be quoted
24echo "TESTING: 2.5 - args with & and \"" 25echo "TESTING: 2.5 - args with & and \""
25symtest/argtest "arg1&tail" "arg2&tail" 26symtest/faudit "arg1&tail" "arg2&tail"
26 27
27echo "TESTING: 2.6 - args with & and '" 28echo "TESTING: 2.6 - args with & and '"
28symtest/argtest 'arg1&tail' 'arg2&tail' 29symtest/faudit 'arg1&tail' 'arg2&tail'
29 30
30rm -fr symtest 31rm -fr symtest