diff options
author | 2018-08-21 09:12:44 -0400 | |
---|---|---|
committer | 2018-08-21 09:12:44 -0400 | |
commit | 7b9792c40fae4d4fc2f896bb4c7264fd59d5aa4e (patch) | |
tree | 1066b61be3fd46a574a063eaabc7ef388891e033 /test | |
parent | autoconf (diff) | |
download | firejail-7b9792c40fae4d4fc2f896bb4c7264fd59d5aa4e.tar.gz firejail-7b9792c40fae4d4fc2f896bb4c7264fd59d5aa4e.tar.zst firejail-7b9792c40fae4d4fc2f896bb4c7264fd59d5aa4e.zip |
removed --ls, --get, --put
Diffstat (limited to 'test')
-rwxr-xr-x | test/utils/ls.exp | 69 | ||||
-rwxr-xr-x | test/utils/utils.sh | 3 |
2 files changed, 0 insertions, 72 deletions
diff --git a/test/utils/ls.exp b/test/utils/ls.exp deleted file mode 100755 index ff6867c51..000000000 --- a/test/utils/ls.exp +++ /dev/null | |||
@@ -1,69 +0,0 @@ | |||
1 | #!/usr/bin/expect -f | ||
2 | |||
3 | set timeout 10 | ||
4 | spawn $env(SHELL) | ||
5 | match_max 100000 | ||
6 | set firstspawn $spawn_id | ||
7 | |||
8 | |||
9 | send -- "rm -f lstesting\r" | ||
10 | sleep 1 | ||
11 | send -- "firejail --private --name=test\r" | ||
12 | expect { | ||
13 | timeout {puts "TESTING ERROR 0\n";exit} | ||
14 | "Child process initialized" | ||
15 | } | ||
16 | sleep 1 | ||
17 | send -- "echo my_testing > ~/lstesting\r" | ||
18 | after 100 | ||
19 | |||
20 | # ls | ||
21 | spawn $env(SHELL) | ||
22 | send -- "firejail --ls=test ~/.\r" | ||
23 | expect { | ||
24 | timeout {puts "TESTING ERROR 1\n";exit} | ||
25 | "lstesting" | ||
26 | } | ||
27 | sleep 1 | ||
28 | |||
29 | # get | ||
30 | send -- "firejail --get=test ~/lstesting\r" | ||
31 | sleep 1 | ||
32 | send -- "cat lstesting\r" | ||
33 | expect { | ||
34 | timeout {puts "TESTING ERROR 2n";exit} | ||
35 | "my_testing" | ||
36 | } | ||
37 | after 100 | ||
38 | |||
39 | # put | ||
40 | send -- "echo put_test > ~/lstesting\r" | ||
41 | after 100 | ||
42 | send -- "firejail --put=test ~/lstesting ~/lstesting_2\r" | ||
43 | sleep 1 | ||
44 | |||
45 | set spawn_id $firstspawn | ||
46 | send -- "ls -al ~\r" | ||
47 | expect { | ||
48 | timeout {puts "TESTING ERROR 3\n";exit} | ||
49 | "lstesting_2" | ||
50 | } | ||
51 | |||
52 | after 100 | ||
53 | send -- "cat ~/lstesting_2\r" | ||
54 | expect { | ||
55 | timeout {puts "TESTING ERROR 4\n";exit} | ||
56 | "put_test" | ||
57 | } | ||
58 | after 100 | ||
59 | send -- "exit\r" | ||
60 | sleep 1 | ||
61 | |||
62 | |||
63 | |||
64 | |||
65 | |||
66 | send -- "rm -f lstesting\r" | ||
67 | |||
68 | after 100 | ||
69 | puts "\nall done\n" | ||
diff --git a/test/utils/utils.sh b/test/utils/utils.sh index f12698f0a..c4958094e 100755 --- a/test/utils/utils.sh +++ b/test/utils/utils.sh | |||
@@ -95,9 +95,6 @@ echo "TESTING: join profile (test/utils/join-profile.exp)" | |||
95 | echo "TESTING: top (test/utils/top.exp)" | 95 | echo "TESTING: top (test/utils/top.exp)" |
96 | ./top.exp | 96 | ./top.exp |
97 | 97 | ||
98 | echo "TESTING: file transfer (test/utils/ls.exp)" | ||
99 | ./ls.exp | ||
100 | |||
101 | echo "TESTING: firemon seccomp (test/utils/firemon-seccomp.exp)" | 98 | echo "TESTING: firemon seccomp (test/utils/firemon-seccomp.exp)" |
102 | ./firemon-seccomp.exp | 99 | ./firemon-seccomp.exp |
103 | 100 | ||