aboutsummaryrefslogtreecommitdiffstats
path: root/test/arguments/joinrun.sh
blob: 0019563be7d6fc1384d4944c1ea9b009d302f967 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
#!/bin/bash
# This file is part of Firejail project
# Copyright (C) 2014-2020 Firejail Authors
# License GPL v2

echo "TESTING: 3.1 - simple args"
firejail --env=FIREJAIL_TEST_ARGUMENTS=yes --join=joinrun faudit arg1 arg2

# simple quotes, testing spaces in file names
echo "TESTING: 3.2 - args with space and \""
firejail --env=FIREJAIL_TEST_ARGUMENTS=yes --join=joinrun faudit "arg1 tail" "arg2 tail"

echo "TESTING: 3.3 - args with space and '"
firejail --env=FIREJAIL_TEST_ARGUMENTS=yes --join=joinrun faudit 'arg1 tail' 'arg2 tail'

# escaped space in file names
echo "TESTING: 3.4 - args with space and \\"
firejail --env=FIREJAIL_TEST_ARGUMENTS=yes --join=joinrun faudit arg1\ tail arg2\ tail

# & char appears in URLs - URLs should be quoted
echo "TESTING: 3.5 - args with & and \""
firejail --env=FIREJAIL_TEST_ARGUMENTS=yes --join=joinrun faudit "arg1&tail" "arg2&tail"

echo "TESTING: 3.6 - args with & and '"
firejail --env=FIREJAIL_TEST_ARGUMENTS=yes --join=joinrun faudit 'arg1&tail' 'arg2&tail'