aboutsummaryrefslogtreecommitdiffstats
path: root/test/fcopy/linkcopy.exp
diff options
context:
space:
mode:
Diffstat (limited to 'test/fcopy/linkcopy.exp')
-rwxr-xr-xtest/fcopy/linkcopy.exp46
1 files changed, 7 insertions, 39 deletions
diff --git a/test/fcopy/linkcopy.exp b/test/fcopy/linkcopy.exp
index b87f24a59..9927e18fe 100755
--- a/test/fcopy/linkcopy.exp
+++ b/test/fcopy/linkcopy.exp
@@ -13,7 +13,7 @@ match_max 100000
13send -- "rm -fr dest/*\r" 13send -- "rm -fr dest/*\r"
14after 100 14after 100
15 15
16send -- "/usr/lib/firejail/fcopy src dest\r" 16send -- "/usr/lib/firejail/fcopy src/dircopy.exp dest\r"
17after 100 17after 100
18 18
19send -- "find dest\r" 19send -- "find dest\r"
@@ -23,60 +23,28 @@ expect {
23} 23}
24expect { 24expect {
25 timeout {puts "TESTING ERROR 1\n";exit} 25 timeout {puts "TESTING ERROR 1\n";exit}
26 "dest/a"
27}
28expect {
29 timeout {puts "TESTING ERROR 2\n";exit}
30 "dest/a/b"
31}
32expect {
33 timeout {puts "TESTING ERROR 3\n";exit}
34 "dest/a/b/file4"
35}
36expect {
37 timeout {puts "TESTING ERROR 4\n";exit}
38 "dest/a/file3"
39}
40expect {
41 timeout {puts "TESTING ERROR 5\n";exit}
42 "dest/dircopy.exp" 26 "dest/dircopy.exp"
43} 27}
44expect {
45 timeout {puts "TESTING ERROR 6\n";exit}
46 "dest/file2"
47}
48expect {
49 timeout {puts "TESTING ERROR 7\n";exit}
50 "dest/file1"
51}
52after 100 28after 100
53 29
54 30
55send -- "ls -al dest\r" 31send -- "ls -al dest\r"
56expect { 32expect {
57 timeout {puts "TESTING ERROR 8\n";exit} 33 timeout {puts "TESTING ERROR 2\n";exit}
58 "drwx--x--x" 34 "lrwxrwxrwx"
59}
60expect {
61 timeout {puts "TESTING ERROR 9\n";exit}
62 "rwxrwxrwx"
63}
64expect {
65 timeout {puts "TESTING ERROR 10\n";exit}
66 "rw-r--r--"
67} 35}
68after 100 36after 100
69 37
70send -- "diff -q src/a/b/file4 dest/a/b/file4; echo done\r" 38send -- "diff -q dircopy.exp dest/dircopy.exp; echo done\r"
71expect { 39expect {
72 timeout {puts "TESTING ERROR 11\n";exit} 40 timeout {puts "TESTING ERROR 3\n";exit}
73 "differ" {puts "TESTING ERROR 12\n";exit} 41 "differ" {puts "TESTING ERROR 4\n";exit}
74 "done" 42 "done"
75} 43}
76 44
77send -- "file dest/dircopy.exp\r" 45send -- "file dest/dircopy.exp\r"
78expect { 46expect {
79 timeout {puts "TESTING ERROR 13\n";exit} 47 timeout {puts "TESTING ERROR 5\n";exit}
80 "symbolic link" 48 "symbolic link"
81} 49}
82 50