diff options
Diffstat (limited to 'test/fcopy/filecopy.exp')
-rwxr-xr-x | test/fcopy/filecopy.exp | 57 |
1 files changed, 0 insertions, 57 deletions
diff --git a/test/fcopy/filecopy.exp b/test/fcopy/filecopy.exp deleted file mode 100755 index e5d6fb0bc..000000000 --- a/test/fcopy/filecopy.exp +++ /dev/null | |||
@@ -1,57 +0,0 @@ | |||
1 | #!/usr/bin/expect -f | ||
2 | # This file is part of Firejail project | ||
3 | # Copyright (C) 2014-2018 Firejail Authors | ||
4 | # License GPL v2 | ||
5 | |||
6 | # | ||
7 | # copy directory src to dest | ||
8 | # | ||
9 | set timeout 10 | ||
10 | spawn $env(SHELL) | ||
11 | match_max 100000 | ||
12 | |||
13 | send -- "rm -fr dest/*\r" | ||
14 | after 100 | ||
15 | |||
16 | send -- "fcopy dircopy.exp dest\r" | ||
17 | after 100 | ||
18 | |||
19 | send -- "find dest\r" | ||
20 | expect { | ||
21 | timeout {puts "TESTING ERROR 0\n";exit} | ||
22 | "dest" | ||
23 | } | ||
24 | expect { | ||
25 | timeout {puts "TESTING ERROR 1\n";exit} | ||
26 | "dest/dircopy.exp" | ||
27 | } | ||
28 | after 100 | ||
29 | |||
30 | |||
31 | send -- "ls -al dest\r" | ||
32 | expect { | ||
33 | timeout {puts "TESTING ERROR 2\n";exit} | ||
34 | "rwxr-xr-x" { puts "umask 0022\n" } | ||
35 | "rwxrwxr-x" { puts "umask 0002\n" } | ||
36 | } | ||
37 | after 100 | ||
38 | send -- "stty -echo\r" | ||
39 | after 100 | ||
40 | |||
41 | send -- "diff -q dircopy.exp dest/dircopy.exp; echo done\r" | ||
42 | expect { | ||
43 | timeout {puts "TESTING ERROR 3\n";exit} | ||
44 | "differ" {puts "TESTING ERROR 4\n";exit} | ||
45 | "done" | ||
46 | } | ||
47 | |||
48 | send -- "file dest/dircopy.exp\r" | ||
49 | expect { | ||
50 | timeout {puts "TESTING ERROR 5\n";exit} | ||
51 | "ASCII text" | ||
52 | } | ||
53 | |||
54 | send -- "rm -fr dest/*\r" | ||
55 | after 100 | ||
56 | |||
57 | puts "\nall done\n" | ||