diff options
author | Reiner Herrmann <reiner@reiner-h.de> | 2017-06-15 15:52:38 +0200 |
---|---|---|
committer | Reiner Herrmann <reiner@reiner-h.de> | 2017-06-15 15:52:38 +0200 |
commit | 80302df0d4e9062de637889c0d9c8c7461070805 (patch) | |
tree | 2c71e1ae9def97cdd52de22b8051210f2b9e70c3 /test | |
parent | Fix faudit syscall bug and crash when single argument was passed (diff) | |
download | firejail-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-x | test/arguments/symrun.sh | 17 |
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 | ||
3 | mkdir symtest | 3 | mkdir symtest |
4 | ln -s /usr/bin/firejail symtest/argtest | 4 | ln -s /usr/bin/firejail symtest/faudit |
5 | 5 | ||
6 | # search for argtest in current directory | 6 | # search for faudit in current directory |
7 | export PATH=$PATH:. | 7 | export PATH=$PATH:. |
8 | export FIREJAIL_TEST_ARGUMENTS=yes | ||
8 | 9 | ||
9 | echo "TESTING: 2.1 - simple args" | 10 | echo "TESTING: 2.1 - simple args" |
10 | symtest/argtest arg1 arg2 | 11 | symtest/faudit arg1 arg2 |
11 | 12 | ||
12 | # simple quotes, testing spaces in file names | 13 | # simple quotes, testing spaces in file names |
13 | echo "TESTING: 2.2 - args with space and \"" | 14 | echo "TESTING: 2.2 - args with space and \"" |
14 | symtest/argtest "arg1 tail" "arg2 tail" | 15 | symtest/faudit "arg1 tail" "arg2 tail" |
15 | 16 | ||
16 | echo "TESTING: 2.3 - args with space and '" | 17 | echo "TESTING: 2.3 - args with space and '" |
17 | symtest/argtest 'arg1 tail' 'arg2 tail' | 18 | symtest/faudit 'arg1 tail' 'arg2 tail' |
18 | 19 | ||
19 | # escaped space in file names | 20 | # escaped space in file names |
20 | echo "TESTING: 2.4 - args with space and \\" | 21 | echo "TESTING: 2.4 - args with space and \\" |
21 | symtest/argtest arg1\ tail arg2\ tail | 22 | symtest/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 |
24 | echo "TESTING: 2.5 - args with & and \"" | 25 | echo "TESTING: 2.5 - args with & and \"" |
25 | symtest/argtest "arg1&tail" "arg2&tail" | 26 | symtest/faudit "arg1&tail" "arg2&tail" |
26 | 27 | ||
27 | echo "TESTING: 2.6 - args with & and '" | 28 | echo "TESTING: 2.6 - args with & and '" |
28 | symtest/argtest 'arg1&tail' 'arg2&tail' | 29 | symtest/faudit 'arg1&tail' 'arg2&tail' |
29 | 30 | ||
30 | rm -fr symtest | 31 | rm -fr symtest |