~ubuntu-branches/ubuntu/utopic/coreutils/utopic-proposed

« back to all changes in this revision

Viewing changes to debian/tests/upstream

  • Committer: Package Import Robot
  • Author(s): Martin Pitt
  • Date: 2012-11-30 22:08:22 UTC
  • Revision ID: package-import@ubuntu.com-20121130220822-ywtae97eigx46boc
Tags: 8.20-3ubuntu3
debian/tests/upstream: Adjust for changed test layout in 8.20.

Show diffs side-by-side

added added

removed removed

Lines of Context:
10
10
unset LANGUAGE
11
11
export LC_ALL=C
12
12
fails=0
13
 
cd tests
14
13
 
15
14
for test in \
16
 
    chmod/c-option \
17
 
    chmod/equals \
18
 
    chmod/equal-x \
19
 
    chmod/inaccessible \
20
 
    chmod/octal \
21
 
    chmod/setgid \
22
 
    chmod/silent \
23
 
    chmod/thru-dangling \
24
 
    chmod/umask-x \
25
 
    chmod/usage \
26
 
    chown/deref \
27
 
    chown/separator \
28
 
    cp/abuse \
29
 
    cp/backup-1 \
30
 
    cp/backup-dir \
31
 
    cp/backup-is-src \
32
 
    cp/cp-deref \
33
 
    cp/cp-HL \
34
 
    cp/cp-i \
35
 
    cp/cp-mv-backup \
36
 
    cp/cp-parents \
37
 
    cp/deref-slink \
38
 
    cp/dir-rm-dest \
39
 
    cp/dir-slash \
40
 
    cp/dir-vs-file \
41
 
    cp/existing-perm-dir \
42
 
    cp/file-perm-race \
43
 
    cp/into-self \
44
 
    cp/link \
45
 
    cp/link-no-deref \
46
 
    cp/link-preserve \
47
 
    cp/link-symlink \
48
 
    cp/no-deref-link1 \
49
 
    cp/no-deref-link2 \
50
 
    cp/no-deref-link3 \
51
 
    cp/parent-perm \
52
 
    cp/parent-perm-race \
53
 
    cp/preserve-2 \
54
 
    cp/preserve-link \
55
 
    cp/proc-short-read \
56
 
    cp/proc-zero-len \
57
 
    cp/reflink-perm \
58
 
    cp/r-vs-symlink \
59
 
    cp/same-file \
60
 
    cp/slink-2-slink \
61
 
    cp/special-f \
62
 
    cp/src-base-dot \
63
 
    cp/symlink-slash \
64
 
    cp/thru-dangling \
65
 
    dd/misc \
66
 
    dd/nocache \
67
 
    dd/not-rewound \
68
 
    dd/reblock \
69
 
    dd/skip-seek2 \
70
 
    dd/stderr \
71
 
    dd/unblock-sync \
72
 
    du/basic \
73
 
    du/deref \
74
 
    du/deref-args \
75
 
    du/exclude \
76
 
    du/files0-from-dir \
77
 
    du/hard-link \
78
 
    du/long-sloop \
79
 
    du/max-depth \
80
 
    du/no-deref \
81
 
    du/one-file-system \
82
 
    du/restore-wd \
83
 
    du/slash \
84
 
    du/slink \
85
 
    du/trailing-slash \
86
 
    du/two-args \
87
 
    install/trap \
88
 
    ln/backup-1 \
89
 
    ln/hard-backup \
90
 
    ln/hard-to-sym \
91
 
    ln/sf-1 \
92
 
    ln/slash-decorated-nonexistent-dest \
93
 
    ln/target-1 \
94
 
    ls/abmon-align \
95
 
    ls/color-clear-to-eol \
96
 
    ls/color-dtype-dir \
97
 
    ls/color-norm \
98
 
    ls/dangle \
99
 
    ls/dired \
100
 
    ls/file-type \
101
 
    ls/follow-slink \
102
 
    ls/infloop \
103
 
    ls/inode \
104
 
    ls/m-option \
105
 
    ls/multihardlink \
106
 
    ls/no-arg \
107
 
    ls/proc-selinux-segfault \
108
 
    ls/readdir-mountpoint-inode \
109
 
    ls/recursive \
110
 
    ls/rt-1 \
111
 
    ls/stat-dtype \
112
 
    ls/stat-free-symlinks \
113
 
    ls/stat-vs-dirent \
114
 
    ls/symlink-slash \
115
 
    ls/x-option \
116
 
    misc/cat-proc \
117
 
    misc/chcon-fail \
118
 
    misc/chroot-fail \
119
 
    misc/csplit \
120
 
    misc/csplit-1000 \
121
 
    misc/date-sec \
122
 
    misc/df \
123
 
    misc/df-P \
124
 
    misc/env-null \
125
 
    misc/false-status \
126
 
    misc/fmt-long-line \
127
 
    misc/head-c \
128
 
    misc/head-pos \
129
 
    misc/id-groups \
130
 
    misc/invalid-opt \
131
 
    misc/ls-time \
132
 
    misc/md5sum-parallel \
133
 
    misc/mknod \
134
 
    misc/nice \
135
 
    misc/nice-fail \
136
 
    misc/nl \
137
 
    misc/nproc-avail \
138
 
    misc/nproc-positive \
139
 
    misc/od-float \
140
 
    misc/od-multiple-t \
141
 
    misc/od-N \
142
 
    misc/od-x8 \
143
 
    misc/printenv \
144
 
    misc/printf-hex \
145
 
    misc/ptx-overrun \
146
 
    misc/pwd-option \
147
 
    misc/runcon-no-reorder \
148
 
    misc/shred-exact \
149
 
    misc/shred-passes \
150
 
    misc/sort-compress \
151
 
    misc/sort-debug-keys \
152
 
    misc/sort-debug-warn \
153
 
    misc/sort-month \
154
 
    misc/sort-rand \
155
 
    misc/sort-unique \
156
 
    misc/sort-version \
157
 
    misc/stat-fmt \
158
 
    misc/stat-hyphen \
159
 
    misc/stat-mount \
160
 
    misc/stat-nanoseconds \
161
 
    misc/stat-slash \
162
 
    misc/sum-sysv \
163
 
    misc/tee \
164
 
    misc/tee-dash \
165
 
    misc/timeout \
166
 
    misc/timeout-group \
167
 
    misc/tr-case-class \
168
 
    misc/truncate-dangling-symlink \
169
 
    misc/truncate-dir-fail \
170
 
    misc/truncate-fifo \
171
 
    misc/truncate-no-create-missing \
172
 
    misc/truncate-parameters \
173
 
    misc/truncate-relative \
174
 
    misc/uniq-perf \
175
 
    misc/wc-files0 \
176
 
    misc/wc-parallel \
177
 
    mkdir/p-1 \
178
 
    mkdir/p-2 \
179
 
    mkdir/parents \
180
 
    mkdir/perm \
181
 
    mkdir/p-slashdot \
182
 
    mkdir/p-thru-slink \
183
 
    mkdir/p-v \
184
 
    mkdir/special-1 \
185
 
    mkdir/t-slash \
186
 
    mv/atomic \
187
 
    mv/atomic2 \
188
 
    mv/backup-dir \
189
 
    mv/diag \
190
 
    mv/dir2dir \
191
 
    mv/dir-file \
192
 
    mv/force \
193
 
    mv/hard-4 \
194
 
    mv/hard-verbose \
195
 
    mv/i-4 \
196
 
    mv/i-5 \
197
 
    mv/i-link-no \
198
 
    mv/into-self \
199
 
    mv/into-self-3 \
200
 
    mv/into-self-4 \
201
 
    mv/mv-n \
202
 
    mv/no-target-dir \
203
 
    mv/trailing-slash \
204
 
    mv/update \
205
 
    readlink/rl-1 \
206
 
    rm/dangling-symlink \
207
 
    rm/deep-1 \
208
 
    rmdir/fail-perm \
209
 
    rmdir/ignore \
210
 
    rm/dir-nonrecur \
211
 
    rm/dir-no-w \
212
 
    rmdir/t-slash \
213
 
    rm/dot-rel \
214
 
    rm/f-1 \
215
 
    rm/i-1 \
216
 
    rm/i-no-r \
217
 
    rm/interactive-always \
218
 
    rm/interactive-once \
219
 
    rm/ir-1 \
220
 
    rm/one-file-system2 \
221
 
    rm/r-1 \
222
 
    rm/r-2 \
223
 
    rm/r-3 \
224
 
    rm/r-4 \
225
 
    rm/readdir-bug \
226
 
    rm/sunos-1 \
227
 
    rm/v-slash \
228
 
    split/b-chunk \
229
 
    split/filter \
230
 
    split/l-chunk \
231
 
    split/lines \
232
 
    split/suffix-length \
233
 
    tail-2/follow-stdin \
234
 
    tail-2/F-vs-rename \
235
 
    tail-2/infloop-1 \
236
 
    tail-2/inotify-hash-abuse \
237
 
    tail-2/inotify-hash-abuse2 \
238
 
    tail-2/pipe-f \
239
 
    tail-2/pipe-f2 \
240
 
    tail-2/proc-ksyms \
241
 
    tail-2/start-middle \
242
 
    tail-2/tail-n0f \
243
 
    tail-2/wait \
244
 
    touch/60-seconds \
245
 
    touch/dangling-symlink \
246
 
    touch/dir-1 \
247
 
    touch/empty-file \
248
 
    touch/fifo \
249
 
    touch/no-create-missing \
250
 
    touch/no-rights \
251
 
    touch/obsolescent \
252
 
    touch/relative \
253
 
    touch/trailing-slash \
 
15
    chmod/c-option.sh \
 
16
    chmod/equals.sh \
 
17
    chmod/equal-x.sh \
 
18
    chmod/inaccessible.sh \
 
19
    chmod/octal.sh \
 
20
    chmod/setgid.sh \
 
21
    chmod/silent.sh \
 
22
    chmod/thru-dangling.sh \
 
23
    chmod/umask-x.sh \
 
24
    chmod/usage.sh \
 
25
    chown/deref.sh \
 
26
    chown/separator.sh \
 
27
    cp/abuse.sh \
 
28
    cp/backup-1.sh \
 
29
    cp/backup-dir.sh \
 
30
    cp/backup-is-src.sh \
 
31
    cp/cp-deref.sh \
 
32
    cp/cp-HL.sh \
 
33
    cp/cp-i.sh \
 
34
    cp/cp-mv-backup.sh \
 
35
    cp/cp-parents.sh \
 
36
    cp/deref-slink.sh \
 
37
    cp/dir-rm-dest.sh \
 
38
    cp/dir-slash.sh \
 
39
    cp/dir-vs-file.sh \
 
40
    cp/existing-perm-dir.sh \
 
41
    cp/file-perm-race.sh \
 
42
    cp/into-self.sh \
 
43
    cp/link.sh \
 
44
    cp/link-no-deref.sh \
 
45
    cp/link-preserve.sh \
 
46
    cp/link-symlink.sh \
 
47
    cp/no-deref-link1.sh \
 
48
    cp/no-deref-link2.sh \
 
49
    cp/no-deref-link3.sh \
 
50
    cp/parent-perm.sh \
 
51
    cp/parent-perm-race.sh \
 
52
    cp/preserve-2.sh \
 
53
    cp/preserve-link.sh \
 
54
    cp/proc-short-read.sh \
 
55
    cp/proc-zero-len.sh \
 
56
    cp/reflink-perm.sh \
 
57
    cp/r-vs-symlink.sh \
 
58
    cp/same-file.sh \
 
59
    cp/slink-2-slink.sh \
 
60
    cp/special-f.sh \
 
61
    cp/src-base-dot.sh \
 
62
    cp/symlink-slash.sh \
 
63
    cp/thru-dangling.sh \
 
64
    dd/misc.sh \
 
65
    dd/nocache.sh \
 
66
    dd/not-rewound.sh \
 
67
    dd/reblock.sh \
 
68
    dd/skip-seek2.sh \
 
69
    dd/stderr.sh \
 
70
    dd/unblock-sync.sh \
 
71
    df/df-P.sh \
 
72
    du/basic.sh \
 
73
    du/deref.sh \
 
74
    du/deref-args.sh \
 
75
    du/exclude.sh \
 
76
    du/files0-from-dir.sh \
 
77
    du/hard-link.sh \
 
78
    du/long-sloop.sh \
 
79
    du/max-depth.sh \
 
80
    du/no-deref.sh \
 
81
    du/restore-wd.sh \
 
82
    du/slash.sh \
 
83
    du/slink.sh \
 
84
    du/trailing-slash.sh \
 
85
    du/two-args.sh \
 
86
    install/trap.sh \
 
87
    ln/backup-1.sh \
 
88
    ln/hard-backup.sh \
 
89
    ln/hard-to-sym.sh \
 
90
    ln/sf-1.sh \
 
91
    ln/slash-decorated-nonexistent-dest.sh \
 
92
    ln/target-1.sh \
 
93
    ls/abmon-align.sh \
 
94
    ls/color-clear-to-eol.sh \
 
95
    ls/color-dtype-dir.sh \
 
96
    ls/color-norm.sh \
 
97
    ls/dangle.sh \
 
98
    ls/dired.sh \
 
99
    ls/file-type.sh \
 
100
    ls/follow-slink.sh \
 
101
    ls/infloop.sh \
 
102
    ls/inode.sh \
 
103
    ls/m-option.sh \
 
104
    ls/multihardlink.sh \
 
105
    ls/no-arg.sh \
 
106
    ls/proc-selinux-segfault.sh \
 
107
    ls/readdir-mountpoint-inode.sh \
 
108
    ls/recursive.sh \
 
109
    ls/rt-1.sh \
 
110
    ls/stat-dtype.sh \
 
111
    ls/stat-free-symlinks.sh \
 
112
    ls/stat-vs-dirent.sh \
 
113
    ls/symlink-slash.sh \
 
114
    ls/x-option.sh \
 
115
    misc/cat-proc.sh \
 
116
    misc/chcon-fail.sh \
 
117
    misc/chroot-fail.sh \
 
118
    misc/csplit.sh \
 
119
    misc/csplit-1000.sh \
 
120
    misc/date-sec.sh \
 
121
    misc/env-null.sh \
 
122
    misc/false-status.sh \
 
123
    misc/head-c.sh \
 
124
    misc/head-pos.sh \
 
125
    misc/id-groups.sh \
 
126
    misc/ls-time.sh \
 
127
    misc/md5sum-parallel.sh \
 
128
    misc/mknod.sh \
 
129
    misc/nice.sh \
 
130
    misc/nice-fail.sh \
 
131
    misc/nl.sh \
 
132
    misc/nproc-avail.sh \
 
133
    misc/nproc-positive.sh \
 
134
    misc/od-float.sh \
 
135
    misc/od-multiple-t.sh \
 
136
    misc/od-N.sh \
 
137
    misc/od-x8.sh \
 
138
    misc/printenv.sh \
 
139
    misc/printf-hex.sh \
 
140
    misc/ptx-overrun.sh \
 
141
    misc/pwd-option.sh \
 
142
    misc/runcon-no-reorder.sh \
 
143
    misc/shred-exact.sh \
 
144
    misc/shred-passes.sh \
 
145
    misc/sort-compress.sh \
 
146
    misc/sort-debug-keys.sh \
 
147
    misc/sort-debug-warn.sh \
 
148
    misc/sort-month.sh \
 
149
    misc/sort-rand.sh \
 
150
    misc/sort-unique.sh \
 
151
    misc/sort-version.sh \
 
152
    misc/stat-fmt.sh \
 
153
    misc/stat-hyphen.sh \
 
154
    misc/stat-mount.sh \
 
155
    misc/stat-nanoseconds.sh \
 
156
    misc/stat-slash.sh \
 
157
    misc/sum-sysv.sh \
 
158
    misc/tee.sh \
 
159
    misc/tee-dash.sh \
 
160
    misc/timeout.sh \
 
161
    misc/tr-case-class.sh \
 
162
    misc/truncate-dangling-symlink.sh \
 
163
    misc/truncate-dir-fail.sh \
 
164
    misc/truncate-fifo.sh \
 
165
    misc/truncate-no-create-missing.sh \
 
166
    misc/truncate-parameters.sh \
 
167
    misc/truncate-relative.sh \
 
168
    misc/uniq-perf.sh \
 
169
    misc/wc-files0.sh \
 
170
    misc/wc-parallel.sh \
 
171
    mkdir/p-1.sh \
 
172
    mkdir/p-2.sh \
 
173
    mkdir/parents.sh \
 
174
    mkdir/perm.sh \
 
175
    mkdir/p-slashdot.sh \
 
176
    mkdir/p-thru-slink.sh \
 
177
    mkdir/p-v.sh \
 
178
    mkdir/special-1.sh \
 
179
    mkdir/t-slash.sh \
 
180
    mv/atomic.sh \
 
181
    mv/atomic2.sh \
 
182
    mv/backup-dir.sh \
 
183
    mv/diag.sh \
 
184
    mv/dir2dir.sh \
 
185
    mv/dir-file.sh \
 
186
    mv/force.sh \
 
187
    mv/hard-4.sh \
 
188
    mv/hard-verbose.sh \
 
189
    mv/i-4.sh \
 
190
    mv/i-5.sh \
 
191
    mv/i-link-no.sh \
 
192
    mv/into-self.sh \
 
193
    mv/into-self-3.sh \
 
194
    mv/into-self-4.sh \
 
195
    mv/mv-n.sh \
 
196
    mv/no-target-dir.sh \
 
197
    mv/trailing-slash.sh \
 
198
    mv/update.sh \
 
199
    readlink/rl-1.sh \
 
200
    rm/dangling-symlink.sh \
 
201
    rm/deep-1.sh \
 
202
    rmdir/fail-perm.sh \
 
203
    rmdir/ignore.sh \
 
204
    rm/dir-nonrecur.sh \
 
205
    rm/dir-no-w.sh \
 
206
    rmdir/t-slash.sh \
 
207
    rm/dot-rel.sh \
 
208
    rm/f-1.sh \
 
209
    rm/i-1.sh \
 
210
    rm/i-no-r.sh \
 
211
    rm/interactive-always.sh \
 
212
    rm/interactive-once.sh \
 
213
    rm/ir-1.sh \
 
214
    rm/one-file-system2.sh \
 
215
    rm/r-1.sh \
 
216
    rm/r-2.sh \
 
217
    rm/r-3.sh \
 
218
    rm/r-4.sh \
 
219
    rm/readdir-bug.sh \
 
220
    rm/sunos-1.sh \
 
221
    rm/v-slash.sh \
 
222
    split/b-chunk.sh \
 
223
    split/filter.sh \
 
224
    split/l-chunk.sh \
 
225
    split/lines.sh \
 
226
    split/suffix-length.sh \
 
227
    tail-2/follow-stdin.sh \
 
228
    tail-2/F-vs-rename.sh \
 
229
    tail-2/infloop-1.sh \
 
230
    tail-2/inotify-hash-abuse.sh \
 
231
    tail-2/inotify-hash-abuse2.sh \
 
232
    tail-2/pipe-f.sh \
 
233
    tail-2/pipe-f2.sh \
 
234
    tail-2/proc-ksyms.sh \
 
235
    tail-2/start-middle.sh \
 
236
    tail-2/tail-n0f.sh \
 
237
    tail-2/wait.sh \
 
238
    touch/60-seconds.sh \
 
239
    touch/dangling-symlink.sh \
 
240
    touch/dir-1.sh \
 
241
    touch/empty-file.sh \
 
242
    touch/fifo.sh \
 
243
    touch/no-create-missing.sh \
 
244
    touch/no-rights.sh \
 
245
    touch/obsolescent.sh \
 
246
    touch/relative.sh \
 
247
    touch/trailing-slash.sh \
254
248
; do
255
249
    echo "$test"
256
 
    OUT=$($test 2>&1) || { fails=$((fails+1)); echo "FAIL:"; echo "$OUT"; }
 
250
    chmod a+x "tests/$test"
 
251
    OUT=$(tests/$test 2>&1) || { fails=$((fails+1)); echo "FAIL:"; echo "$OUT"; }
257
252
done
258
253
 
259
254
echo $fails tests failed