aboutsummaryrefslogtreecommitdiffstats
path: root/test
diff options
context:
space:
mode:
authorLibravatar Reiner Herrmann <reiner@reiner-h.de>2017-06-15 15:52:38 +0200
committerLibravatar Reiner Herrmann <reiner@reiner-h.de>2017-06-15 15:52:38 +0200
commit80302df0d4e9062de637889c0d9c8c7461070805 (patch)
tree2c71e1ae9def97cdd52de22b8051210f2b9e70c3 /test
parentFix faudit syscall bug and crash when single argument was passed (diff)
downloadfirejail-80302df0d4e9062de637889c0d9c8c7461070805.tar.gz
firejail-80302df0d4e9062de637889c0d9c8c7461070805.tar.zst
firejail-80302df0d4e9062de637889c0d9c8c7461070805.zip
test: fix symrun test by calling faudit through symlink to firejail
Diffstat (limited to 'test')
-rwxr-xr-xtest/arguments/symrun.sh17
1 files changed, 9 insertions, 8 deletions
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