aboutsummaryrefslogtreecommitdiffstats
path: root/test/fcopy/linkcopy.exp
diff options
context:
space:
mode:
Diffstat (limited to 'test/fcopy/linkcopy.exp')
-rwxr-xr-xtest/fcopy/linkcopy.exp56
1 files changed, 0 insertions, 56 deletions
diff --git a/test/fcopy/linkcopy.exp b/test/fcopy/linkcopy.exp
deleted file mode 100755
index ab3369bbc..000000000
--- a/test/fcopy/linkcopy.exp
+++ /dev/null
@@ -1,56 +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#
9set timeout 10
10spawn $env(SHELL)
11match_max 100000
12
13send -- "rm -fr dest/*\r"
14after 100
15
16send -- "fcopy src/dircopy.exp dest\r"
17after 100
18
19send -- "find dest\r"
20expect {
21 timeout {puts "TESTING ERROR 0\n";exit}
22 "dest/"
23}
24expect {
25 timeout {puts "TESTING ERROR 1\n";exit}
26 "dest/dircopy.exp"
27}
28after 100
29
30
31send -- "ls -al dest\r"
32expect {
33 timeout {puts "TESTING ERROR 2\n";exit}
34 "lrwxrwxrwx"
35}
36after 100
37send -- "stty -echo\r"
38after 100
39
40send -- "diff -q dircopy.exp dest/dircopy.exp; echo done\r"
41expect {
42 timeout {puts "TESTING ERROR 3\n";exit}
43 "differ" {puts "TESTING ERROR 4\n";exit}
44 "done"
45}
46
47send -- "file dest/dircopy.exp\r"
48expect {
49 timeout {puts "TESTING ERROR 5\n";exit}
50 "symbolic link"
51}
52
53send -- "rm -fr dest/*\r"
54after 100
55
56puts "\nall done\n"