diff options
Diffstat (limited to 'test/fcopy')
-rwxr-xr-x | test/fcopy/dircopy.exp | 30 | ||||
-rwxr-xr-x | test/fcopy/fcopy.sh | 2 |
2 files changed, 26 insertions, 6 deletions
diff --git a/test/fcopy/dircopy.exp b/test/fcopy/dircopy.exp index b87f24a59..00b0204ae 100755 --- a/test/fcopy/dircopy.exp +++ b/test/fcopy/dircopy.exp | |||
@@ -55,28 +55,48 @@ after 100 | |||
55 | send -- "ls -al dest\r" | 55 | send -- "ls -al dest\r" |
56 | expect { | 56 | expect { |
57 | timeout {puts "TESTING ERROR 8\n";exit} | 57 | timeout {puts "TESTING ERROR 8\n";exit} |
58 | "drwx--x--x" | 58 | "drwxr-xr-x" |
59 | } | 59 | } |
60 | expect { | 60 | expect { |
61 | timeout {puts "TESTING ERROR 9\n";exit} | 61 | timeout {puts "TESTING ERROR 9\n";exit} |
62 | "rwxrwxrwx" | 62 | "a" |
63 | } | 63 | } |
64 | expect { | 64 | expect { |
65 | timeout {puts "TESTING ERROR 10\n";exit} | 65 | timeout {puts "TESTING ERROR 10\n";exit} |
66 | "lrwxrwxrwx" | ||
67 | } | ||
68 | expect { | ||
69 | timeout {puts "TESTING ERROR 11\n";exit} | ||
70 | "dircopy.exp" | ||
71 | } | ||
72 | expect { | ||
73 | timeout {puts "TESTING ERROR 12\n";exit} | ||
74 | "rwxr-xr-x" | ||
75 | } | ||
76 | expect { | ||
77 | timeout {puts "TESTING ERROR 13\n";exit} | ||
78 | "file1" | ||
79 | } | ||
80 | expect { | ||
81 | timeout {puts "TESTING ERROR 14\n";exit} | ||
66 | "rw-r--r--" | 82 | "rw-r--r--" |
67 | } | 83 | } |
84 | expect { | ||
85 | timeout {puts "TESTING ERROR 15\n";exit} | ||
86 | "file2" | ||
87 | } | ||
68 | after 100 | 88 | after 100 |
69 | 89 | ||
70 | send -- "diff -q src/a/b/file4 dest/a/b/file4; echo done\r" | 90 | send -- "diff -q src/a/b/file4 dest/a/b/file4; echo done\r" |
71 | expect { | 91 | expect { |
72 | timeout {puts "TESTING ERROR 11\n";exit} | 92 | timeout {puts "TESTING ERROR 16\n";exit} |
73 | "differ" {puts "TESTING ERROR 12\n";exit} | 93 | "differ" {puts "TESTING ERROR 17\n";exit} |
74 | "done" | 94 | "done" |
75 | } | 95 | } |
76 | 96 | ||
77 | send -- "file dest/dircopy.exp\r" | 97 | send -- "file dest/dircopy.exp\r" |
78 | expect { | 98 | expect { |
79 | timeout {puts "TESTING ERROR 13\n";exit} | 99 | timeout {puts "TESTING ERROR 18\n";exit} |
80 | "symbolic link" | 100 | "symbolic link" |
81 | } | 101 | } |
82 | 102 | ||
diff --git a/test/fcopy/fcopy.sh b/test/fcopy/fcopy.sh index 9961d6317..dcda5ca31 100755 --- a/test/fcopy/fcopy.sh +++ b/test/fcopy/fcopy.sh | |||
@@ -6,7 +6,7 @@ | |||
6 | export MALLOC_CHECK_=3 | 6 | export MALLOC_CHECK_=3 |
7 | export MALLOC_PERTURB_=$(($RANDOM % 255 + 1)) | 7 | export MALLOC_PERTURB_=$(($RANDOM % 255 + 1)) |
8 | 8 | ||
9 | rm -fr dest/* | 9 | mkdir dest |
10 | 10 | ||
11 | echo "TESTING: fcopy cmdline (test/fcopy/cmdline.exp)" | 11 | echo "TESTING: fcopy cmdline (test/fcopy/cmdline.exp)" |
12 | ./cmdline.exp | 12 | ./cmdline.exp |