aboutsummaryrefslogtreecommitdiffstats
path: root/test
diff options
context:
space:
mode:
authorLibravatar netblue30 <netblue30@yahoo.com>2018-08-21 09:12:44 -0400
committerLibravatar netblue30 <netblue30@yahoo.com>2018-08-21 09:12:44 -0400
commit7b9792c40fae4d4fc2f896bb4c7264fd59d5aa4e (patch)
tree1066b61be3fd46a574a063eaabc7ef388891e033 /test
parentautoconf (diff)
downloadfirejail-7b9792c40fae4d4fc2f896bb4c7264fd59d5aa4e.tar.gz
firejail-7b9792c40fae4d4fc2f896bb4c7264fd59d5aa4e.tar.zst
firejail-7b9792c40fae4d4fc2f896bb4c7264fd59d5aa4e.zip
removed --ls, --get, --put
Diffstat (limited to 'test')
-rwxr-xr-xtest/utils/ls.exp69
-rwxr-xr-xtest/utils/utils.sh3
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
3set timeout 10
4spawn $env(SHELL)
5match_max 100000
6set firstspawn $spawn_id
7
8
9send -- "rm -f lstesting\r"
10sleep 1
11send -- "firejail --private --name=test\r"
12expect {
13 timeout {puts "TESTING ERROR 0\n";exit}
14 "Child process initialized"
15}
16sleep 1
17send -- "echo my_testing > ~/lstesting\r"
18after 100
19
20# ls
21spawn $env(SHELL)
22send -- "firejail --ls=test ~/.\r"
23expect {
24 timeout {puts "TESTING ERROR 1\n";exit}
25 "lstesting"
26}
27sleep 1
28
29# get
30send -- "firejail --get=test ~/lstesting\r"
31sleep 1
32send -- "cat lstesting\r"
33expect {
34 timeout {puts "TESTING ERROR 2n";exit}
35 "my_testing"
36}
37after 100
38
39# put
40send -- "echo put_test > ~/lstesting\r"
41after 100
42send -- "firejail --put=test ~/lstesting ~/lstesting_2\r"
43sleep 1
44
45set spawn_id $firstspawn
46send -- "ls -al ~\r"
47expect {
48 timeout {puts "TESTING ERROR 3\n";exit}
49 "lstesting_2"
50}
51
52after 100
53send -- "cat ~/lstesting_2\r"
54expect {
55 timeout {puts "TESTING ERROR 4\n";exit}
56 "put_test"
57}
58after 100
59send -- "exit\r"
60sleep 1
61
62
63
64
65
66send -- "rm -f lstesting\r"
67
68after 100
69puts "\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)"
95echo "TESTING: top (test/utils/top.exp)" 95echo "TESTING: top (test/utils/top.exp)"
96./top.exp 96./top.exp
97 97
98echo "TESTING: file transfer (test/utils/ls.exp)"
99./ls.exp
100
101echo "TESTING: firemon seccomp (test/utils/firemon-seccomp.exp)" 98echo "TESTING: firemon seccomp (test/utils/firemon-seccomp.exp)"
102./firemon-seccomp.exp 99./firemon-seccomp.exp
103 100