summaryrefslogtreecommitdiff
path: root/tests
diff options
context:
space:
mode:
Diffstat (limited to 'tests')
-rw-r--r--tests/Coreutils.pm613
-rw-r--r--tests/CuSkip.pm39
-rw-r--r--tests/CuTmpdir.pm111
-rw-r--r--tests/GNUmakefile20
-rw-r--r--tests/Makefile.am60
-rw-r--r--tests/Makefile.am.in54
-rw-r--r--tests/Makefile.in922
-rw-r--r--tests/README3
-rw-r--r--tests/acl37
-rw-r--r--tests/chgrp/Makefile.am14
-rw-r--r--tests/chgrp/Makefile.in724
-rwxr-xr-xtests/chgrp/basic132
-rwxr-xr-xtests/chgrp/basic.sh110
-rwxr-xr-xtests/chgrp/default-no-deref51
-rwxr-xr-xtests/chgrp/default-no-deref.sh33
-rwxr-xr-xtests/chgrp/deref84
-rwxr-xr-xtests/chgrp/deref.sh60
-rwxr-xr-xtests/chgrp/no-x76
-rwxr-xr-xtests/chgrp/no-x.sh54
-rwxr-xr-xtests/chgrp/posix-H89
-rwxr-xr-xtests/chgrp/posix-H.sh70
-rwxr-xr-xtests/chgrp/recurse73
-rwxr-xr-xtests/chgrp/recurse.sh53
-rw-r--r--tests/chmod/Makefile.am16
-rw-r--r--tests/chmod/Makefile.in726
-rwxr-xr-xtests/chmod/c-option67
-rwxr-xr-xtests/chmod/c-option.sh51
-rwxr-xr-xtests/chmod/equal-x54
-rwxr-xr-xtests/chmod/equal-x.sh34
-rwxr-xr-xtests/chmod/equals65
-rwxr-xr-xtests/chmod/equals.sh46
-rwxr-xr-xtests/chmod/inaccessible47
-rwxr-xr-xtests/chmod/inaccessible.sh28
-rwxr-xr-xtests/chmod/no-x81
-rwxr-xr-xtests/chmod/no-x.sh57
-rwxr-xr-xtests/chmod/octal48
-rwxr-xr-xtests/chmod/octal.sh29
-rwxr-xr-xtests/chmod/setgid76
-rwxr-xr-xtests/chmod/setgid.sh64
-rwxr-xr-xtests/chmod/silent.sh29
-rwxr-xr-xtests/chmod/thru-dangling.sh31
-rwxr-xr-xtests/chmod/umask-x53
-rwxr-xr-xtests/chmod/umask-x.sh26
-rwxr-xr-xtests/chmod/usage112
-rwxr-xr-xtests/chmod/usage.sh86
-rw-r--r--tests/chown/Makefile.am10
-rw-r--r--tests/chown/Makefile.in721
-rwxr-xr-xtests/chown/basic69
-rwxr-xr-xtests/chown/basic.sh59
-rwxr-xr-xtests/chown/deref60
-rwxr-xr-xtests/chown/deref.sh38
-rwxr-xr-xtests/chown/preserve-root88
-rwxr-xr-xtests/chown/preserve-root.sh66
-rwxr-xr-xtests/chown/separator72
-rwxr-xr-xtests/chown/separator.sh69
-rw-r--r--tests/cp/Makefile.am39
-rw-r--r--tests/cp/Makefile.in751
-rwxr-xr-xtests/cp/abuse.sh50
-rwxr-xr-xtests/cp/acl90
-rwxr-xr-xtests/cp/acl.sh60
-rwxr-xr-xtests/cp/attr-existing.sh29
-rwxr-xr-xtests/cp/backup-158
-rwxr-xr-xtests/cp/backup-1.sh37
-rwxr-xr-xtests/cp/backup-dir52
-rwxr-xr-xtests/cp/backup-dir.sh32
-rwxr-xr-xtests/cp/backup-is-src58
-rwxr-xr-xtests/cp/backup-is-src.sh36
-rwxr-xr-xtests/cp/capability.sh52
-rwxr-xr-xtests/cp/cp-HL61
-rwxr-xr-xtests/cp/cp-HL.sh40
-rwxr-xr-xtests/cp/cp-a-selinux.sh209
-rwxr-xr-xtests/cp/cp-deref52
-rwxr-xr-xtests/cp/cp-deref.sh34
-rwxr-xr-xtests/cp/cp-i51
-rwxr-xr-xtests/cp/cp-i.sh65
-rwxr-xr-xtests/cp/cp-mv-backup117
-rwxr-xr-xtests/cp/cp-mv-backup.sh92
-rwxr-xr-xtests/cp/cp-mv-enotsup-xattr.sh132
-rwxr-xr-xtests/cp/cp-parents82
-rwxr-xr-xtests/cp/cp-parents.sh58
-rwxr-xr-xtests/cp/deref-slink49
-rwxr-xr-xtests/cp/deref-slink.sh28
-rwxr-xr-xtests/cp/dir-rm-dest49
-rwxr-xr-xtests/cp/dir-rm-dest.sh30
-rwxr-xr-xtests/cp/dir-slash54
-rwxr-xr-xtests/cp/dir-slash.sh35
-rwxr-xr-xtests/cp/dir-vs-file54
-rwxr-xr-xtests/cp/dir-vs-file.sh33
-rwxr-xr-xtests/cp/existing-perm-dir.sh31
-rwxr-xr-xtests/cp/existing-perm-race.sh94
-rwxr-xr-xtests/cp/fail-perm80
-rwxr-xr-xtests/cp/fail-perm.sh58
-rwxr-xr-xtests/cp/fiemap-2.sh55
-rwxr-xr-xtests/cp/fiemap-FMR.sh31
-rwxr-xr-xtests/cp/fiemap-extents.sh84
-rwxr-xr-xtests/cp/fiemap-perf.sh49
-rwxr-xr-xtests/cp/file-perm-race71
-rwxr-xr-xtests/cp/file-perm-race.sh58
-rwxr-xr-xtests/cp/into-self63
-rwxr-xr-xtests/cp/into-self.sh57
-rwxr-xr-xtests/cp/link50
-rwxr-xr-xtests/cp/link-deref.sh126
-rwxr-xr-xtests/cp/link-heap.sh42
-rwxr-xr-xtests/cp/link-no-deref48
-rwxr-xr-xtests/cp/link-no-deref.sh29
-rwxr-xr-xtests/cp/link-preserve106
-rwxr-xr-xtests/cp/link-preserve.sh91
-rwxr-xr-xtests/cp/link-symlink.sh41
-rwxr-xr-xtests/cp/link.sh31
-rwxr-xr-xtests/cp/nfs-removal-race.sh75
-rwxr-xr-xtests/cp/no-ctx.sh65
-rwxr-xr-xtests/cp/no-deref-link159
-rwxr-xr-xtests/cp/no-deref-link1.sh39
-rwxr-xr-xtests/cp/no-deref-link259
-rwxr-xr-xtests/cp/no-deref-link2.sh39
-rwxr-xr-xtests/cp/no-deref-link356
-rwxr-xr-xtests/cp/no-deref-link3.sh36
-rwxr-xr-xtests/cp/parent-perm-race78
-rwxr-xr-xtests/cp/parent-perm-race.sh65
-rwxr-xr-xtests/cp/parent-perm.sh53
-rwxr-xr-xtests/cp/perm98
-rwxr-xr-xtests/cp/perm.sh77
-rwxr-xr-xtests/cp/preserve-245
-rwxr-xr-xtests/cp/preserve-2.sh29
-rwxr-xr-xtests/cp/preserve-gid.sh138
-rwxr-xr-xtests/cp/preserve-link.sh92
-rwxr-xr-xtests/cp/preserve-mode.sh54
-rwxr-xr-xtests/cp/preserve-slink-time.sh51
-rwxr-xr-xtests/cp/proc-short-read.sh40
-rwxr-xr-xtests/cp/proc-zero-len.sh47
-rwxr-xr-xtests/cp/r-vs-symlink61
-rwxr-xr-xtests/cp/r-vs-symlink.sh41
-rwxr-xr-xtests/cp/reflink-auto.sh41
-rwxr-xr-xtests/cp/reflink-perm.sh45
-rwxr-xr-xtests/cp/same-file213
-rwxr-xr-xtests/cp/same-file.sh242
-rwxr-xr-xtests/cp/slink-2-slink56
-rwxr-xr-xtests/cp/slink-2-slink.sh32
-rwxr-xr-xtests/cp/sparse57
-rwxr-xr-xtests/cp/sparse-fiemap.sh117
-rwxr-xr-xtests/cp/sparse-to-pipe.sh38
-rwxr-xr-xtests/cp/sparse.sh73
-rwxr-xr-xtests/cp/special-bits70
-rwxr-xr-xtests/cp/special-bits.sh51
-rwxr-xr-xtests/cp/special-f.sh35
-rwxr-xr-xtests/cp/src-base-dot54
-rwxr-xr-xtests/cp/src-base-dot.sh32
-rwxr-xr-xtests/cp/symlink-slash58
-rwxr-xr-xtests/cp/symlink-slash.sh36
-rwxr-xr-xtests/cp/thru-dangling.sh41
-rw-r--r--tests/cp/trailing-slash2
-rw-r--r--tests/cut/1.I1
-rw-r--r--tests/cut/1.X1
-rw-r--r--tests/cut/2.I1
-rw-r--r--tests/cut/2.X1
-rw-r--r--tests/cut/3.I1
-rw-r--r--tests/cut/3.X1
-rw-r--r--tests/cut/4.I1
-rw-r--r--tests/cut/4.X1
-rw-r--r--tests/cut/5.I0
-rw-r--r--tests/cut/5.X0
-rw-r--r--tests/cut/6.I1
-rw-r--r--tests/cut/6.X1
-rw-r--r--tests/cut/7.I1
-rw-r--r--tests/cut/7.X1
-rw-r--r--tests/cut/8.I2
-rw-r--r--tests/cut/8.X2
-rw-r--r--tests/cut/8bit-delim.I1
-rw-r--r--tests/cut/8bit-delim.X1
-rw-r--r--tests/cut/9.I0
-rw-r--r--tests/cut/9.X0
-rw-r--r--tests/cut/Makefile.am82
-rw-r--r--tests/cut/Makefile.in792
-rwxr-xr-xtests/cut/Test.pm132
-rw-r--r--tests/cut/a.I1
-rw-r--r--tests/cut/a.X1
-rw-r--r--tests/cut/b.I1
-rw-r--r--tests/cut/b.X1
-rw-r--r--tests/cut/c.I1
-rw-r--r--tests/cut/c.X1
-rwxr-xr-xtests/cut/cut-tests3105
-rw-r--r--tests/cut/d.I1
-rw-r--r--tests/cut/d.X1
-rw-r--r--tests/cut/e.I1
-rw-r--r--tests/cut/e.X1
-rw-r--r--tests/cut/empty-bl.I1
-rw-r--r--tests/cut/empty-bl.X0
-rw-r--r--tests/cut/empty-f1.I0
-rw-r--r--tests/cut/empty-f1.X0
-rw-r--r--tests/cut/empty-f2.I0
-rw-r--r--tests/cut/empty-f2.X0
-rw-r--r--tests/cut/empty-fl.I1
-rw-r--r--tests/cut/empty-fl.X0
-rw-r--r--tests/cut/f.I1
-rw-r--r--tests/cut/f.X1
-rw-r--r--tests/cut/g.I1
-rw-r--r--tests/cut/g.X1
-rw-r--r--tests/cut/h.I1
-rw-r--r--tests/cut/h.X0
-rw-r--r--tests/cut/i.I1
-rw-r--r--tests/cut/i.X1
-rw-r--r--tests/cut/j.I1
-rw-r--r--tests/cut/j.X1
-rw-r--r--tests/cut/k.I1
-rw-r--r--tests/cut/k.X1
-rw-r--r--tests/cut/l.I1
-rw-r--r--tests/cut/l.X1
-rw-r--r--tests/cut/m.I1
-rw-r--r--tests/cut/m.X1
-rw-r--r--tests/cut/missing-bl.I1
-rw-r--r--tests/cut/missing-bl.X0
-rw-r--r--tests/cut/missing-fl.I1
-rw-r--r--tests/cut/missing-fl.X0
-rw-r--r--tests/cut/multichar-od.I1
-rw-r--r--tests/cut/multichar-od.X1
-rw-r--r--tests/cut/n.I1
-rw-r--r--tests/cut/n.X1
-rw-r--r--tests/cut/nul-idelim.Ibin6 -> 0 bytes
-rw-r--r--tests/cut/nul-idelim.X1
-rw-r--r--tests/cut/nul-odelim.I1
-rw-r--r--tests/cut/nul-odelim.Xbin4 -> 0 bytes
-rw-r--r--tests/cut/o-delim.I1
-rw-r--r--tests/cut/o-delim.X1
-rw-r--r--tests/cut/o.I1
-rw-r--r--tests/cut/o.X1
-rw-r--r--tests/cut/od-abut.I1
-rw-r--r--tests/cut/od-abut.X1
-rw-r--r--tests/cut/od-overlap.I1
-rw-r--r--tests/cut/od-overlap.X1
-rw-r--r--tests/cut/od-overlap2.I1
-rw-r--r--tests/cut/od-overlap2.X1
-rw-r--r--tests/cut/od-overlap3.I1
-rw-r--r--tests/cut/od-overlap3.X1
-rw-r--r--tests/cut/od-overlap4.I1
-rw-r--r--tests/cut/od-overlap4.X1
-rw-r--r--tests/cut/od-overlap5.I1
-rw-r--r--tests/cut/od-overlap5.X1
-rw-r--r--tests/cut/out-delim1.I1
-rw-r--r--tests/cut/out-delim1.X1
-rw-r--r--tests/cut/out-delim2.I1
-rw-r--r--tests/cut/out-delim2.X1
-rw-r--r--tests/cut/out-delim3.I1
-rw-r--r--tests/cut/out-delim3.X1
-rw-r--r--tests/cut/out-delim3a.I1
-rw-r--r--tests/cut/out-delim3a.X1
-rw-r--r--tests/cut/out-delim4.I1
-rw-r--r--tests/cut/out-delim4.X1
-rw-r--r--tests/cut/out-delim5.I1
-rw-r--r--tests/cut/out-delim5.X1
-rw-r--r--tests/cut/out-delim6.I1
-rw-r--r--tests/cut/out-delim6.X1
-rw-r--r--tests/cut/p.I1
-rw-r--r--tests/cut/p.X1
-rw-r--r--tests/cut/q.I2
-rw-r--r--tests/cut/q.X2
-rw-r--r--tests/cut/r.I2
-rw-r--r--tests/cut/r.X2
-rw-r--r--tests/cut/s.I2
-rw-r--r--tests/cut/s.X2
-rw-r--r--tests/cut/t.I2
-rw-r--r--tests/cut/t.X2
-rw-r--r--tests/cut/u.I0
-rw-r--r--tests/cut/u.X0
-rw-r--r--tests/cut/v.I0
-rw-r--r--tests/cut/v.X0
-rw-r--r--tests/cut/w.I0
-rw-r--r--tests/cut/w.X0
-rw-r--r--tests/cut/x.I1
-rw-r--r--tests/cut/x.X1
-rw-r--r--tests/cut/y.I1
-rw-r--r--tests/cut/y.X0
-rw-r--r--tests/cut/z.I1
-rw-r--r--tests/cut/z.X0
-rw-r--r--tests/d_type-check69
-rw-r--r--tests/dd/Makefile.am13
-rw-r--r--tests/dd/Makefile.in720
-rwxr-xr-xtests/dd/ascii.sh74
-rwxr-xr-xtests/dd/bytes.sh56
-rwxr-xr-xtests/dd/direct.sh35
-rwxr-xr-xtests/dd/misc92
-rwxr-xr-xtests/dd/misc.sh110
-rwxr-xr-xtests/dd/no-allocate.sh76
-rwxr-xr-xtests/dd/nocache.sh58
-rwxr-xr-xtests/dd/not-rewound50
-rwxr-xr-xtests/dd/not-rewound.sh31
-rwxr-xr-xtests/dd/reblock.sh72
-rwxr-xr-xtests/dd/skip-seek98
-rwxr-xr-xtests/dd/skip-seek-past-dev.sh58
-rwxr-xr-xtests/dd/skip-seek-past-file.sh89
-rwxr-xr-xtests/dd/skip-seek.pl78
-rwxr-xr-xtests/dd/skip-seek257
-rwxr-xr-xtests/dd/skip-seek2.sh38
-rwxr-xr-xtests/dd/sparse.sh84
-rwxr-xr-xtests/dd/stats.sh76
-rwxr-xr-xtests/dd/stderr.sh43
-rwxr-xr-xtests/dd/unblock-sync56
-rwxr-xr-xtests/dd/unblock-sync.sh35
-rwxr-xr-xtests/dd/unblock.pl59
-rwxr-xr-xtests/df/df-P.sh37
-rwxr-xr-xtests/df/df-output.sh140
-rwxr-xr-xtests/df/df-symlink.sh44
-rwxr-xr-xtests/df/header.sh28
-rwxr-xr-xtests/df/no-mtab-status.sh125
-rwxr-xr-xtests/df/over-mount-device.sh59
-rwxr-xr-xtests/df/problematic-chars.sh46
-rwxr-xr-xtests/df/skip-duplicates.sh190
-rwxr-xr-xtests/df/skip-rootfs.sh53
-rwxr-xr-xtests/df/total-unprocessed.sh44
-rwxr-xr-xtests/df/total-verify.sh67
-rwxr-xr-xtests/df/unreadable.sh29
-rw-r--r--tests/dircolors/Makefile.am13
-rw-r--r--tests/dircolors/Makefile.in720
-rwxr-xr-xtests/dircolors/simple60
-rwxr-xr-xtests/du/2g93
-rwxr-xr-xtests/du/2g.sh71
-rwxr-xr-xtests/du/8gb77
-rwxr-xr-xtests/du/8gb.sh53
-rw-r--r--tests/du/Makefile.am37
-rw-r--r--tests/du/Makefile.in749
-rwxr-xr-xtests/du/basic113
-rwxr-xr-xtests/du/basic.sh89
-rwxr-xr-xtests/du/bigtime.sh52
-rwxr-xr-xtests/du/bind-mount-dir-cycle-v2.sh38
-rwxr-xr-xtests/du/bind-mount-dir-cycle.sh37
-rwxr-xr-xtests/du/deref50
-rwxr-xr-xtests/du/deref-args69
-rwxr-xr-xtests/du/deref-args.sh48
-rwxr-xr-xtests/du/deref.sh48
-rwxr-xr-xtests/du/exclude79
-rwxr-xr-xtests/du/exclude.sh58
-rwxr-xr-xtests/du/fd-leak61
-rwxr-xr-xtests/du/fd-leak.sh43
-rwxr-xr-xtests/du/files0-from107
-rwxr-xr-xtests/du/files0-from-dir.sh39
-rwxr-xr-xtests/du/files0-from.pl94
-rwxr-xr-xtests/du/hard-link71
-rwxr-xr-xtests/du/hard-link.sh64
-rwxr-xr-xtests/du/inacc-dest83
-rwxr-xr-xtests/du/inacc-dest.sh56
-rwxr-xr-xtests/du/inacc-dir.sh42
-rwxr-xr-xtests/du/inaccessible-cwd53
-rwxr-xr-xtests/du/inaccessible-cwd.sh40
-rwxr-xr-xtests/du/inodes.sh140
-rwxr-xr-xtests/du/long-from-unreadable89
-rwxr-xr-xtests/du/long-from-unreadable.sh73
-rwxr-xr-xtests/du/long-sloop99
-rwxr-xr-xtests/du/long-sloop.sh72
-rwxr-xr-xtests/du/max-depth.sh39
-rwxr-xr-xtests/du/move-dir-while-traversing.sh100
-rwxr-xr-xtests/du/no-deref54
-rwxr-xr-xtests/du/no-deref.sh33
-rwxr-xr-xtests/du/no-x72
-rwxr-xr-xtests/du/no-x.sh49
-rwxr-xr-xtests/du/one-file-system61
-rwxr-xr-xtests/du/one-file-system.sh57
-rwxr-xr-xtests/du/restore-wd49
-rwxr-xr-xtests/du/restore-wd.sh31
-rwxr-xr-xtests/du/slash54
-rwxr-xr-xtests/du/slash.sh33
-rwxr-xr-xtests/du/slink79
-rwxr-xr-xtests/du/threshold.sh362
-rwxr-xr-xtests/du/trailing-slash68
-rwxr-xr-xtests/du/trailing-slash.sh47
-rwxr-xr-xtests/du/two-args51
-rwxr-xr-xtests/du/two-args.sh40
-rw-r--r--tests/envvar-check23
-rw-r--r--tests/expensive30
-rw-r--r--tests/expr/Makefile.am10
-rw-r--r--tests/expr/Makefile.in720
-rwxr-xr-xtests/expr/basic189
-rw-r--r--tests/factor/Makefile.am10
-rw-r--r--tests/factor/Makefile.in720
-rwxr-xr-xtests/factor/basic114
-rwxr-xr-xtests/factor/create-test.sh83
-rwxr-xr-xtests/factor/run.sh34
-rw-r--r--tests/fiemap-capable16
-rw-r--r--tests/filefrag-extent-compare85
-rw-r--r--tests/fmt/Makefile.am13
-rw-r--r--tests/fmt/Makefile.in720
-rwxr-xr-xtests/fmt/base.pl67
-rwxr-xr-xtests/fmt/basic87
-rwxr-xr-xtests/fmt/goal-option.sh56
-rwxr-xr-xtests/fmt/long-line81
-rwxr-xr-xtests/fmt/long-line.sh61
-rw-r--r--tests/group-names37
-rw-r--r--tests/head/Makefile.am69
-rw-r--r--tests/head/Makefile.in779
-rw-r--r--tests/head/Test.pm110
-rw-r--r--tests/head/basic-0-09.I9
-rw-r--r--tests/head/basic-0-09.X9
-rw-r--r--tests/head/basic-0-10.I10
-rw-r--r--tests/head/basic-0-10.X10
-rw-r--r--tests/head/basic-0-11.I11
-rw-r--r--tests/head/basic-0-11.X10
-rw-r--r--tests/head/fail-1.I1
-rw-r--r--tests/head/fail-1.X1
-rwxr-xr-xtests/head/head-tests1377
-rw-r--r--tests/head/idem-0.I0
-rw-r--r--tests/head/idem-0.X0
-rw-r--r--tests/head/idem-1.I1
-rw-r--r--tests/head/idem-1.X1
-rw-r--r--tests/head/idem-2.I1
-rw-r--r--tests/head/idem-2.X1
-rw-r--r--tests/head/idem-3.I1
-rw-r--r--tests/head/idem-3.X1
-rw-r--r--tests/head/in15
-rw-r--r--tests/head/in-102413
-rw-r--r--tests/head/no-oct-1.I12
-rw-r--r--tests/head/no-oct-1.X8
-rw-r--r--tests/head/no-oct-2.I12
-rw-r--r--tests/head/no-oct-2.X10
-rw-r--r--tests/head/no-oct-3.I12
-rw-r--r--tests/head/no-oct-3.X8
-rw-r--r--tests/head/no-oct-4.I12
-rw-r--r--tests/head/no-oct-4.X8
-rw-r--r--tests/head/null-1.Ibin4 -> 0 bytes
-rw-r--r--tests/head/null-1.Xbin4 -> 0 bytes
-rw-r--r--tests/head/obs-0.I2
-rw-r--r--tests/head/obs-0.X1
-rw-r--r--tests/head/obs-1.I0
-rw-r--r--tests/head/obs-1.X0
-rw-r--r--tests/head/obs-2.I1
-rw-r--r--tests/head/obs-2.X1
-rw-r--r--tests/head/obs-3.I1
-rw-r--r--tests/head/obs-3.X1
-rw-r--r--tests/head/posix-0.I2
-rw-r--r--tests/head/posix-0.X1
-rw-r--r--tests/head/posix-1.I0
-rw-r--r--tests/head/posix-1.X0
-rw-r--r--tests/head/posix-2.I1
-rw-r--r--tests/head/posix-2.X1
-rw-r--r--tests/head/posix-3.I1
-rw-r--r--tests/head/posix-3.X1
-rwxr-xr-xtests/help-version222
-rwxr-xr-xtests/id/context.sh35
-rwxr-xr-xtests/id/gnu-zero-uids.sh29
-rwxr-xr-xtests/id/no-context.sh35
-rwxr-xr-xtests/id/setgid.sh40
-rwxr-xr-xtests/id/smack.sh37
-rwxr-xr-xtests/id/uid.sh37
-rwxr-xr-xtests/id/zero.sh66
-rwxr-xr-xtests/init.sh613
-rw-r--r--tests/input-tty10
-rw-r--r--tests/install/Makefile.am7
-rw-r--r--tests/install/Makefile.in717
-rwxr-xr-xtests/install/basic-1154
-rwxr-xr-xtests/install/basic-1.sh146
-rwxr-xr-xtests/install/create-leading49
-rwxr-xr-xtests/install/create-leading.sh42
-rwxr-xr-xtests/install/d-slashdot48
-rwxr-xr-xtests/install/d-slashdot.sh29
-rwxr-xr-xtests/install/install-C-root.sh77
-rwxr-xr-xtests/install/install-C-selinux.sh51
-rwxr-xr-xtests/install/install-C.sh115
-rwxr-xr-xtests/install/strip-program.sh40
-rwxr-xr-xtests/install/trap52
-rwxr-xr-xtests/install/trap.sh33
-rw-r--r--tests/join/1a.I11
-rw-r--r--tests/join/1a.I21
-rw-r--r--tests/join/1a.X1
-rw-r--r--tests/join/1b.I11
-rw-r--r--tests/join/1b.I21
-rw-r--r--tests/join/1b.X1
-rw-r--r--tests/join/1c.I11
-rw-r--r--tests/join/1c.I21
-rw-r--r--tests/join/1c.X2
-rw-r--r--tests/join/1d.I12
-rw-r--r--tests/join/1d.I21
-rw-r--r--tests/join/1d.X2
-rw-r--r--tests/join/1e.I12
-rw-r--r--tests/join/1e.I21
-rw-r--r--tests/join/1e.X1
-rw-r--r--tests/join/1f.I11
-rw-r--r--tests/join/1f.I22
-rw-r--r--tests/join/1f.X2
-rw-r--r--tests/join/2a.I13
-rw-r--r--tests/join/2a.I23
-rw-r--r--tests/join/2a.X3
-rw-r--r--tests/join/2b.I13
-rw-r--r--tests/join/2b.I23
-rw-r--r--tests/join/2b.X3
-rw-r--r--tests/join/2c.I14
-rw-r--r--tests/join/2c.I23
-rw-r--r--tests/join/2c.X4
-rw-r--r--tests/join/3a.I12
-rw-r--r--tests/join/3a.I22
-rw-r--r--tests/join/3a.X2
-rw-r--r--tests/join/4a.I11
-rw-r--r--tests/join/4a.I21
-rw-r--r--tests/join/4a.X1
-rw-r--r--tests/join/4b.I11
-rw-r--r--tests/join/4b.I21
-rw-r--r--tests/join/4b.X1
-rw-r--r--tests/join/4c.I12
-rw-r--r--tests/join/4c.I21
-rw-r--r--tests/join/4c.X1
-rw-r--r--tests/join/4d.I12
-rw-r--r--tests/join/4d.I21
-rw-r--r--tests/join/4d.X0
-rw-r--r--tests/join/4e.I11
-rw-r--r--tests/join/4e.I22
-rw-r--r--tests/join/4e.X1
-rw-r--r--tests/join/5a.I12
-rw-r--r--tests/join/5a.I22
-rw-r--r--tests/join/5a.X2
-rw-r--r--tests/join/5b.I14
-rw-r--r--tests/join/5b.I24
-rw-r--r--tests/join/5b.X4
-rw-r--r--tests/join/5c.I12
-rw-r--r--tests/join/5c.I23
-rw-r--r--tests/join/5c.X2
-rw-r--r--tests/join/5d.I11
-rw-r--r--tests/join/5d.I20
-rw-r--r--tests/join/5d.X1
-rw-r--r--tests/join/5e.I14
-rw-r--r--tests/join/5e.I24
-rw-r--r--tests/join/5e.X4
-rw-r--r--tests/join/5f.I14
-rw-r--r--tests/join/5f.I24
-rw-r--r--tests/join/5f.X4
-rw-r--r--tests/join/5g.I14
-rw-r--r--tests/join/5g.I24
-rw-r--r--tests/join/5g.X4
-rw-r--r--tests/join/5h.I14
-rw-r--r--tests/join/5h.I23
-rw-r--r--tests/join/5h.X4
-rw-r--r--tests/join/5i.I14
-rw-r--r--tests/join/5i.I23
-rw-r--r--tests/join/5i.X4
-rw-r--r--tests/join/5j.I14
-rw-r--r--tests/join/5j.I23
-rw-r--r--tests/join/5j.X3
-rw-r--r--tests/join/5k.I14
-rw-r--r--tests/join/5k.I23
-rw-r--r--tests/join/5k.X3
-rw-r--r--tests/join/5l.I13
-rw-r--r--tests/join/5l.I24
-rw-r--r--tests/join/5l.X3
-rw-r--r--tests/join/5m.I13
-rw-r--r--tests/join/5m.I24
-rw-r--r--tests/join/5m.X4
-rw-r--r--tests/join/6a.I13
-rw-r--r--tests/join/6a.I24
-rw-r--r--tests/join/6a.X2
-rw-r--r--tests/join/6b.I13
-rw-r--r--tests/join/6b.I24
-rw-r--r--tests/join/6b.X3
-rw-r--r--tests/join/6c.I14
-rw-r--r--tests/join/6c.I23
-rw-r--r--tests/join/6c.X4
-rw-r--r--tests/join/7a.I13
-rw-r--r--tests/join/7a.I23
-rw-r--r--tests/join/7a.X3
-rw-r--r--tests/join/8-bit-t.I12
-rw-r--r--tests/join/8-bit-t.I22
-rw-r--r--tests/join/8-bit-t.X2
-rw-r--r--tests/join/8a.I14
-rw-r--r--tests/join/8a.I24
-rw-r--r--tests/join/8a.X4
-rw-r--r--tests/join/8b.I14
-rw-r--r--tests/join/8b.I24
-rw-r--r--tests/join/8b.X5
-rw-r--r--tests/join/9a.I12
-rw-r--r--tests/join/9a.I22
-rw-r--r--tests/join/9a.X2
-rw-r--r--tests/join/Makefile.am74
-rw-r--r--tests/join/Makefile.in784
-rw-r--r--tests/join/TODO2
-rw-r--r--tests/join/Test.pm153
-rw-r--r--tests/join/bigfield.I11
-rw-r--r--tests/join/bigfield.I21
-rw-r--r--tests/join/bigfield.X1
-rw-r--r--tests/join/invalid-j.X0
-rwxr-xr-xtests/join/join-tests747
-rw-r--r--tests/join/sp-vs-blank.I11
-rw-r--r--tests/join/sp-vs-blank.I21
-rw-r--r--tests/join/sp-vs-blank.X1
-rw-r--r--tests/join/trailing-sp.I11
-rw-r--r--tests/join/trailing-sp.I21
-rw-r--r--tests/join/trailing-sp.X1
-rw-r--r--tests/ln/Makefile.am6
-rw-r--r--tests/ln/Makefile.in716
-rwxr-xr-xtests/ln/backup-142
-rwxr-xr-xtests/ln/backup-1.sh30
-rwxr-xr-xtests/ln/hard-backup54
-rwxr-xr-xtests/ln/hard-backup.sh32
-rwxr-xr-xtests/ln/hard-to-sym.sh83
-rwxr-xr-xtests/ln/misc166
-rwxr-xr-xtests/ln/misc.sh124
-rwxr-xr-xtests/ln/relative.sh53
-rwxr-xr-xtests/ln/sf-154
-rwxr-xr-xtests/ln/sf-1.sh46
-rwxr-xr-xtests/ln/slash-decorated-nonexistent-dest.sh29
-rwxr-xr-xtests/ln/target-150
-rwxr-xr-xtests/ln/target-1.sh30
-rw-r--r--tests/local.mk860
-rw-r--r--tests/ls-2/Makefile.am13
-rw-r--r--tests/ls-2/Makefile.in720
-rwxr-xr-xtests/ls-2/tests164
-rw-r--r--tests/ls/Makefile.am36
-rw-r--r--tests/ls/Makefile.in747
-rwxr-xr-xtests/ls/abmon-align.sh49
-rwxr-xr-xtests/ls/block-size.sh173
-rwxr-xr-xtests/ls/capability.sh63
-rwxr-xr-xtests/ls/color-clear-to-eol.sh41
-rwxr-xr-xtests/ls/color-dtype-dir67
-rwxr-xr-xtests/ls/color-dtype-dir.sh64
-rwxr-xr-xtests/ls/color-norm.sh84
-rwxr-xr-xtests/ls/color-term.sh48
-rwxr-xr-xtests/ls/dangle67
-rwxr-xr-xtests/ls/dangle.sh64
-rwxr-xr-xtests/ls/dired56
-rwxr-xr-xtests/ls/dired.sh35
-rwxr-xr-xtests/ls/file-type90
-rwxr-xr-xtests/ls/file-type.sh65
-rwxr-xr-xtests/ls/follow-slink86
-rwxr-xr-xtests/ls/follow-slink.sh63
-rwxr-xr-xtests/ls/getxattr-speedup.sh66
-rwxr-xr-xtests/ls/hex-option.sh24
-rwxr-xr-xtests/ls/infloop61
-rwxr-xr-xtests/ls/infloop.sh42
-rwxr-xr-xtests/ls/inode83
-rwxr-xr-xtests/ls/inode.sh65
-rwxr-xr-xtests/ls/m-option61
-rwxr-xr-xtests/ls/m-option.sh40
-rwxr-xr-xtests/ls/multihardlink.sh80
-rwxr-xr-xtests/ls/nameless-uid65
-rwxr-xr-xtests/ls/nameless-uid.sh40
-rwxr-xr-xtests/ls/no-arg76
-rwxr-xr-xtests/ls/no-arg.sh56
-rwxr-xr-xtests/ls/no-cap.sh33
-rwxr-xr-xtests/ls/proc-selinux-segfault.sh27
-rwxr-xr-xtests/ls/readdir-mountpoint-inode.sh70
-rwxr-xr-xtests/ls/recursive85
-rwxr-xr-xtests/ls/recursive.sh62
-rwxr-xr-xtests/ls/root-rel-symlink-color.sh51
-rwxr-xr-xtests/ls/rt-171
-rwxr-xr-xtests/ls/rt-1.sh46
-rwxr-xr-xtests/ls/slink-acl.sh33
-rwxr-xr-xtests/ls/stat-dtype86
-rwxr-xr-xtests/ls/stat-dtype.sh61
-rwxr-xr-xtests/ls/stat-failed75
-rwxr-xr-xtests/ls/stat-failed.sh58
-rwxr-xr-xtests/ls/stat-free-color.sh84
-rwxr-xr-xtests/ls/stat-free-symlinks.sh52
-rwxr-xr-xtests/ls/stat-vs-dirent83
-rwxr-xr-xtests/ls/stat-vs-dirent.sh60
-rwxr-xr-xtests/ls/symlink-slash52
-rwxr-xr-xtests/ls/symlink-slash.sh30
-rwxr-xr-xtests/ls/time-1145
-rwxr-xr-xtests/ls/time-style-diag.sh39
-rwxr-xr-xtests/ls/w-option.sh48
-rwxr-xr-xtests/ls/x-option.sh37
-rw-r--r--tests/md5sum/Makefile.am13
-rw-r--r--tests/md5sum/Makefile.in720
-rwxr-xr-xtests/md5sum/basic-189
-rwxr-xr-xtests/md5sum/newline-169
-rw-r--r--tests/misc/Makefile.am88
-rw-r--r--tests/misc/Makefile.in798
-rwxr-xr-xtests/misc/arch.sh27
-rwxr-xr-xtests/misc/base64169
-rwxr-xr-xtests/misc/base64.pl210
-rwxr-xr-xtests/misc/basename95
-rwxr-xr-xtests/misc/basename.pl92
-rwxr-xr-xtests/misc/cat-buf.sh47
-rwxr-xr-xtests/misc/cat-proc60
-rwxr-xr-xtests/misc/cat-proc.sh38
-rwxr-xr-xtests/misc/cat-self.sh33
-rwxr-xr-xtests/misc/chcon-fail.sh37
-rwxr-xr-xtests/misc/chcon.sh77
-rwxr-xr-xtests/misc/chroot-credentials.sh120
-rwxr-xr-xtests/misc/chroot-fail.sh68
-rwxr-xr-xtests/misc/close-stdout77
-rwxr-xr-xtests/misc/close-stdout.sh65
-rwxr-xr-xtests/misc/comm.pl157
-rwxr-xr-xtests/misc/coreutils.sh36
-rwxr-xr-xtests/misc/csplit116
-rwxr-xr-xtests/misc/csplit-1000.sh29
-rwxr-xr-xtests/misc/csplit-heap.sh32
-rwxr-xr-xtests/misc/csplit-io-err.sh78
-rwxr-xr-xtests/misc/csplit-suppress-matched.pl213
-rwxr-xr-xtests/misc/csplit.sh103
-rwxr-xr-xtests/misc/cut51
-rwxr-xr-xtests/misc/cut-huge-range.sh66
-rwxr-xr-xtests/misc/cut.pl255
-rwxr-xr-xtests/misc/date323
-rwxr-xr-xtests/misc/date-next-dow.pl78
-rwxr-xr-xtests/misc/date-sec67
-rwxr-xr-xtests/misc/date-sec.sh49
-rwxr-xr-xtests/misc/date.pl318
-rwxr-xr-xtests/misc/df34
-rwxr-xr-xtests/misc/df-P60
-rwxr-xr-xtests/misc/dircolors.pl54
-rwxr-xr-xtests/misc/dirname89
-rwxr-xr-xtests/misc/dirname.pl72
-rwxr-xr-xtests/misc/env-null.sh61
-rwxr-xr-xtests/misc/env.sh159
-rwxr-xr-xtests/misc/expand54
-rwxr-xr-xtests/misc/expand.pl39
-rwxr-xr-xtests/misc/expr.pl198
-rwxr-xr-xtests/misc/factor-parallel.sh34
-rwxr-xr-xtests/misc/factor.pl115
-rwxr-xr-xtests/misc/false-status45
-rwxr-xr-xtests/misc/false-status.sh31
-rwxr-xr-xtests/misc/fold68
-rwxr-xr-xtests/misc/fold.pl39
-rwxr-xr-xtests/misc/groups-dash.sh31
-rwxr-xr-xtests/misc/groups-version.sh27
-rwxr-xr-xtests/misc/head-c49
-rwxr-xr-xtests/misc/head-c.sh59
-rwxr-xr-xtests/misc/head-elide-tail123
-rwxr-xr-xtests/misc/head-elide-tail.pl110
-rwxr-xr-xtests/misc/head-pos51
-rwxr-xr-xtests/misc/head-pos.sh44
-rwxr-xr-xtests/misc/head-write-error.sh52
-rwxr-xr-xtests/misc/head.pl87
-rwxr-xr-xtests/misc/help-version.sh270
-rwxr-xr-xtests/misc/invalid-opt.pl102
-rwxr-xr-xtests/misc/join.pl338
-rwxr-xr-xtests/misc/kill.sh63
-rwxr-xr-xtests/misc/ls-misc.pl372
-rwxr-xr-xtests/misc/ls-time.sh145
-rwxr-xr-xtests/misc/md5sum-bsd.sh88
-rwxr-xr-xtests/misc/md5sum-newline.pl44
-rwxr-xr-xtests/misc/md5sum-parallel.sh36
-rwxr-xr-xtests/misc/md5sum.pl175
-rwxr-xr-xtests/misc/mknod56
-rwxr-xr-xtests/misc/mknod.sh39
-rwxr-xr-xtests/misc/mktemp.pl200
-rwxr-xr-xtests/misc/nice86
-rwxr-xr-xtests/misc/nice-fail.sh38
-rwxr-xr-xtests/misc/nice.sh94
-rwxr-xr-xtests/misc/nl63
-rwxr-xr-xtests/misc/nl.sh43
-rwxr-xr-xtests/misc/nohup128
-rwxr-xr-xtests/misc/nohup.sh126
-rwxr-xr-xtests/misc/nproc-avail.sh27
-rwxr-xr-xtests/misc/nproc-positive.sh44
-rwxr-xr-xtests/misc/numfmt.pl1116
-rwxr-xr-xtests/misc/od-N.sh32
-rwxr-xr-xtests/misc/od-endian.sh49
-rwxr-xr-xtests/misc/od-float.sh72
-rwxr-xr-xtests/misc/od-j.sh39
-rwxr-xr-xtests/misc/od-multiple-t.sh42
-rwxr-xr-xtests/misc/od-x8.sh43
-rwxr-xr-xtests/misc/od.pl74
-rwxr-xr-xtests/misc/paste-no-nl64
-rwxr-xr-xtests/misc/paste.pl74
-rwxr-xr-xtests/misc/pathchk157
-rwxr-xr-xtests/misc/pathchk1.sh38
-rwxr-xr-xtests/misc/pr61
-rwxr-xr-xtests/misc/printenv.sh85
-rwxr-xr-xtests/misc/printf114
-rwxr-xr-xtests/misc/printf-cov.pl101
-rwxr-xr-xtests/misc/printf-hex52
-rwxr-xr-xtests/misc/printf-hex.sh29
-rwxr-xr-xtests/misc/printf-quote.sh57
-rwxr-xr-xtests/misc/printf-surprise.sh96
-rwxr-xr-xtests/misc/printf.sh129
-rwxr-xr-xtests/misc/ptx-overrun.sh44
-rwxr-xr-xtests/misc/ptx.pl51
-rwxr-xr-xtests/misc/pwd-long132
-rwxr-xr-xtests/misc/pwd-long.sh123
-rwxr-xr-xtests/misc/pwd-option.sh62
-rwxr-xr-xtests/misc/pwd-unreadable-parent70
-rwxr-xr-xtests/misc/readlink-fp-loop.sh68
-rwxr-xr-xtests/misc/readlink-root.sh92
-rwxr-xr-xtests/misc/realpath.sh111
-rwxr-xr-xtests/misc/runcon-no-reorder.sh42
-rwxr-xr-xtests/misc/selinux.sh65
-rwxr-xr-xtests/misc/seq-long-double.sh47
-rwxr-xr-xtests/misc/seq-precision.sh79
-rwxr-xr-xtests/misc/seq.pl172
-rwxr-xr-xtests/misc/sha1sum-vec.pl534
-rwxr-xr-xtests/misc/sha1sum.pl92
-rwxr-xr-xtests/misc/sha224sum63
-rwxr-xr-xtests/misc/sha224sum.pl49
-rwxr-xr-xtests/misc/sha256sum69
-rwxr-xr-xtests/misc/sha256sum.pl55
-rwxr-xr-xtests/misc/sha384sum69
-rwxr-xr-xtests/misc/sha384sum.pl55
-rwxr-xr-xtests/misc/sha512sum69
-rwxr-xr-xtests/misc/sha512sum.pl55
-rwxr-xr-xtests/misc/shred-exact.sh49
-rwxr-xr-xtests/misc/shred-passes.sh83
-rwxr-xr-xtests/misc/shred-remove.sh47
-rwxr-xr-xtests/misc/shred-size.sh34
-rwxr-xr-xtests/misc/shuf68
-rwxr-xr-xtests/misc/shuf-reservoir.sh73
-rwxr-xr-xtests/misc/shuf.sh169
-rwxr-xr-xtests/misc/sort-NaN-infloop.sh28
-rwxr-xr-xtests/misc/sort-benchmark-random.sh53
-rwxr-xr-xtests/misc/sort-compress92
-rwxr-xr-xtests/misc/sort-compress-hang.sh57
-rwxr-xr-xtests/misc/sort-compress-proc.sh90
-rwxr-xr-xtests/misc/sort-compress.sh72
-rwxr-xr-xtests/misc/sort-continue.sh47
-rwxr-xr-xtests/misc/sort-debug-keys.sh337
-rwxr-xr-xtests/misc/sort-debug-warn.sh92
-rwxr-xr-xtests/misc/sort-discrim.sh89
-rwxr-xr-xtests/misc/sort-exit-early.sh37
-rwxr-xr-xtests/misc/sort-files0-from.pl96
-rwxr-xr-xtests/misc/sort-float.sh94
-rwxr-xr-xtests/misc/sort-merge50
-rwxr-xr-xtests/misc/sort-merge-fdlimit.sh72
-rwxr-xr-xtests/misc/sort-merge.pl84
-rwxr-xr-xtests/misc/sort-month.sh34
-rwxr-xr-xtests/misc/sort-rand54
-rwxr-xr-xtests/misc/sort-rand.sh52
-rwxr-xr-xtests/misc/sort-spinlock-abuse.sh48
-rwxr-xr-xtests/misc/sort-stale-thread-mem.sh52
-rwxr-xr-xtests/misc/sort-u-FMR.sh29
-rwxr-xr-xtests/misc/sort-unique-segv.sh48
-rwxr-xr-xtests/misc/sort-unique.sh42
-rwxr-xr-xtests/misc/sort-version.sh106
-rwxr-xr-xtests/misc/sort.pl441
-rwxr-xr-xtests/misc/split-a96
-rwxr-xr-xtests/misc/split-fail88
-rwxr-xr-xtests/misc/split-l64
-rwxr-xr-xtests/misc/stat-birthtime.sh51
-rwxr-xr-xtests/misc/stat-fmt48
-rwxr-xr-xtests/misc/stat-fmt.sh30
-rwxr-xr-xtests/misc/stat-hyphen.sh30
-rwxr-xr-xtests/misc/stat-mount.sh28
-rwxr-xr-xtests/misc/stat-nanoseconds.sh46
-rwxr-xr-xtests/misc/stat-printf78
-rwxr-xr-xtests/misc/stat-printf.pl64
-rwxr-xr-xtests/misc/stat-slash.sh44
-rwxr-xr-xtests/misc/stdbuf.sh127
-rwxr-xr-xtests/misc/stty-invalid.sh48
-rwxr-xr-xtests/misc/stty-pairs.sh65
-rwxr-xr-xtests/misc/stty-row-col.sh91
-rwxr-xr-xtests/misc/stty.sh84
-rwxr-xr-xtests/misc/sum-sysv.sh50
-rwxr-xr-xtests/misc/sum.pl61
-rwxr-xr-xtests/misc/sync.sh52
-rwxr-xr-xtests/misc/tac-2-nonseekable.sh39
-rwxr-xr-xtests/misc/tac-continue92
-rwxr-xr-xtests/misc/tac-continue.sh76
-rwxr-xr-xtests/misc/tac.pl91
-rwxr-xr-xtests/misc/tail.pl145
-rwxr-xr-xtests/misc/tee.sh109
-rwxr-xr-xtests/misc/test-diag53
-rwxr-xr-xtests/misc/test-diag.pl38
-rwxr-xr-xtests/misc/test.pl197
-rwxr-xr-xtests/misc/timeout-blocked.pl48
-rwxr-xr-xtests/misc/timeout-group.sh103
-rwxr-xr-xtests/misc/timeout-parameters.sh80
-rwxr-xr-xtests/misc/timeout.sh64
-rwxr-xr-xtests/misc/tr-case-class.sh113
-rwxr-xr-xtests/misc/tr.pl174
-rwxr-xr-xtests/misc/truncate-dangling-symlink.sh28
-rwxr-xr-xtests/misc/truncate-dir-fail.sh25
-rwxr-xr-xtests/misc/truncate-fail-diag.sh43
-rwxr-xr-xtests/misc/truncate-fifo.sh27
-rwxr-xr-xtests/misc/truncate-no-create-missing.sh26
-rwxr-xr-xtests/misc/truncate-overflow.sh39
-rwxr-xr-xtests/misc/truncate-owned-by-other.sh35
-rwxr-xr-xtests/misc/truncate-parameters.sh54
-rwxr-xr-xtests/misc/truncate-relative.sh35
-rwxr-xr-xtests/misc/tsort.pl66
-rwxr-xr-xtests/misc/tty-eof128
-rwxr-xr-xtests/misc/tty-eof.pl113
-rwxr-xr-xtests/misc/unexpand.pl99
-rwxr-xr-xtests/misc/uniq-perf.sh25
-rwxr-xr-xtests/misc/uniq.pl272
-rwxr-xr-xtests/misc/wc-files066
-rwxr-xr-xtests/misc/wc-files0-from108
-rwxr-xr-xtests/misc/wc-files0-from.pl93
-rwxr-xr-xtests/misc/wc-files0.sh51
-rwxr-xr-xtests/misc/wc-parallel.sh36
-rwxr-xr-xtests/misc/wc-proc.sh32
-rwxr-xr-xtests/misc/wc.pl50
-rwxr-xr-xtests/misc/xattr.sh130
-rwxr-xr-xtests/misc/xstrtol.pl49
-rwxr-xr-xtests/misc/yes.sh43
-rwxr-xr-xtests/mk-script382
-rw-r--r--tests/mkdir/Makefile.am9
-rw-r--r--tests/mkdir/Makefile.in720
-rwxr-xr-xtests/mkdir/p-135
-rwxr-xr-xtests/mkdir/p-1.sh25
-rwxr-xr-xtests/mkdir/p-235
-rwxr-xr-xtests/mkdir/p-2.sh25
-rwxr-xr-xtests/mkdir/p-369
-rwxr-xr-xtests/mkdir/p-3.sh52
-rwxr-xr-xtests/mkdir/p-acl.sh35
-rwxr-xr-xtests/mkdir/p-slashdot48
-rwxr-xr-xtests/mkdir/p-slashdot.sh29
-rwxr-xr-xtests/mkdir/p-thru-slink46
-rwxr-xr-xtests/mkdir/p-thru-slink.sh27
-rwxr-xr-xtests/mkdir/p-v56
-rwxr-xr-xtests/mkdir/p-v.sh32
-rwxr-xr-xtests/mkdir/parents76
-rwxr-xr-xtests/mkdir/parents.sh52
-rwxr-xr-xtests/mkdir/perm109
-rwxr-xr-xtests/mkdir/perm.sh84
-rwxr-xr-xtests/mkdir/restorecon.sh73
-rwxr-xr-xtests/mkdir/selinux.sh56
-rwxr-xr-xtests/mkdir/smack-no-root.sh39
-rwxr-xr-xtests/mkdir/smack-root.sh36
-rwxr-xr-xtests/mkdir/special-158
-rwxr-xr-xtests/mkdir/special-1.sh51
-rwxr-xr-xtests/mkdir/t-slash50
-rwxr-xr-xtests/mkdir/t-slash.sh31
-rwxr-xr-xtests/mkdir/writable-under-readonly.sh52
-rw-r--r--tests/mv/Makefile.am50
-rw-r--r--tests/mv/Makefile.in761
-rwxr-xr-xtests/mv/acl105
-rwxr-xr-xtests/mv/acl.sh67
-rwxr-xr-xtests/mv/atomic69
-rwxr-xr-xtests/mv/atomic.sh46
-rwxr-xr-xtests/mv/atomic2.sh45
-rwxr-xr-xtests/mv/backup-dir57
-rwxr-xr-xtests/mv/backup-dir.sh34
-rwxr-xr-xtests/mv/backup-is-src66
-rwxr-xr-xtests/mv/backup-is-src.sh46
-rwxr-xr-xtests/mv/childproof92
-rwxr-xr-xtests/mv/childproof.sh83
-rwxr-xr-xtests/mv/diag70
-rwxr-xr-xtests/mv/diag.sh48
-rwxr-xr-xtests/mv/dir-file47
-rwxr-xr-xtests/mv/dir-file.sh30
-rwxr-xr-xtests/mv/dir2dir66
-rwxr-xr-xtests/mv/dir2dir.sh42
-rwxr-xr-xtests/mv/dup-source90
-rwxr-xr-xtests/mv/dup-source.sh91
-rwxr-xr-xtests/mv/force58
-rwxr-xr-xtests/mv/force.sh43
-rwxr-xr-xtests/mv/hard-297
-rwxr-xr-xtests/mv/hard-2.sh77
-rwxr-xr-xtests/mv/hard-389
-rwxr-xr-xtests/mv/hard-3.sh69
-rwxr-xr-xtests/mv/hard-459
-rwxr-xr-xtests/mv/hard-4.sh41
-rwxr-xr-xtests/mv/hard-link-168
-rwxr-xr-xtests/mv/hard-link-1.sh41
-rwxr-xr-xtests/mv/hard-verbose56
-rwxr-xr-xtests/mv/hardlink-case.sh37
-rwxr-xr-xtests/mv/i-158
-rwxr-xr-xtests/mv/i-1.pl44
-rwxr-xr-xtests/mv/i-277
-rwxr-xr-xtests/mv/i-2.sh52
-rwxr-xr-xtests/mv/i-3.sh72
-rwxr-xr-xtests/mv/i-472
-rwxr-xr-xtests/mv/i-4.sh47
-rwxr-xr-xtests/mv/i-551
-rwxr-xr-xtests/mv/i-5.sh29
-rwxr-xr-xtests/mv/i-link-no70
-rwxr-xr-xtests/mv/i-link-no.sh43
-rwxr-xr-xtests/mv/into-self69
-rwxr-xr-xtests/mv/into-self-276
-rwxr-xr-xtests/mv/into-self-2.sh52
-rwxr-xr-xtests/mv/into-self-357
-rwxr-xr-xtests/mv/into-self-3.sh41
-rwxr-xr-xtests/mv/into-self-454
-rwxr-xr-xtests/mv/into-self-4.sh34
-rwxr-xr-xtests/mv/into-self.sh53
-rwxr-xr-xtests/mv/leak-fd81
-rwxr-xr-xtests/mv/leak-fd.sh55
-rwxr-xr-xtests/mv/mv-n.sh57
-rwxr-xr-xtests/mv/mv-special-197
-rwxr-xr-xtests/mv/mv-special-1.sh72
-rwxr-xr-xtests/mv/no-target-dir70
-rwxr-xr-xtests/mv/no-target-dir.sh51
-rwxr-xr-xtests/mv/part-fail79
-rwxr-xr-xtests/mv/part-fail.sh55
-rwxr-xr-xtests/mv/part-hardlink67
-rwxr-xr-xtests/mv/part-hardlink.sh43
-rwxr-xr-xtests/mv/part-rename55
-rwxr-xr-xtests/mv/part-rename.sh57
-rwxr-xr-xtests/mv/part-symlink229
-rwxr-xr-xtests/mv/part-symlink.sh262
-rwxr-xr-xtests/mv/partition-perm55
-rwxr-xr-xtests/mv/partition-perm.sh37
-rwxr-xr-xtests/mv/perm-157
-rwxr-xr-xtests/mv/perm-1.sh35
-rwxr-xr-xtests/mv/reply-no58
-rwxr-xr-xtests/mv/sticky-to-xpart.sh68
-rwxr-xr-xtests/mv/symlink-onto-hardlink-to-self.sh63
-rwxr-xr-xtests/mv/symlink-onto-hardlink.sh41
-rwxr-xr-xtests/mv/to-symlink63
-rwxr-xr-xtests/mv/to-symlink.sh43
-rwxr-xr-xtests/mv/trailing-slash77
-rwxr-xr-xtests/mv/trailing-slash.sh65
-rwxr-xr-xtests/mv/update71
-rwxr-xr-xtests/mv/update.sh54
-rw-r--r--tests/mv/vfat66
-rw-r--r--tests/no-perl6
-rw-r--r--tests/od/Makefile.am12
-rw-r--r--tests/od/Makefile.in719
-rwxr-xr-xtests/od/od-N53
-rwxr-xr-xtests/od/x864
-rw-r--r--[-rwxr-xr-x]tests/other-fs-tmpdir34
-rw-r--r--tests/pr/2-S_f-t_notab2
-rw-r--r--tests/pr/2-Sf-t_notab2
-rw-r--r--tests/pr/2f-t_notab2
-rw-r--r--tests/pr/2s_f-t_notab2
-rw-r--r--tests/pr/2s_w60f-t_nota2
-rw-r--r--tests/pr/2sf-t_notab2
-rw-r--r--tests/pr/2sw60f-t_notab2
-rw-r--r--tests/pr/2w60f-t_notab2
-rw-r--r--tests/pr/3-5l17f-t45
-rw-r--r--tests/pr/3-5l24f-t51
-rw-r--r--tests/pr/3a3f-0F10
-rw-r--r--tests/pr/3a3l15f-t27
-rw-r--r--tests/pr/3a3l8f-t21
-rw-r--r--tests/pr/3b3f-0F10
-rw-r--r--tests/pr/3b3f-0FF14
-rw-r--r--tests/pr/3b3f-FF26
-rw-r--r--tests/pr/3b3l15f-t27
-rw-r--r--tests/pr/3b3l8f-t21
-rw-r--r--tests/pr/3f-0F10
-rw-r--r--tests/pr/3f-FF26
-rw-r--r--tests/pr/3l17f-t45
-rw-r--r--tests/pr/3l24f-t51
-rw-r--r--tests/pr/3ml17f-t45
-rw-r--r--tests/pr/3ml24f-t51
-rw-r--r--tests/pr/Ja3l17f-lm54
-rw-r--r--tests/pr/Ja3l24f-lm72
-rw-r--r--tests/pr/Jb3l17f-lm54
-rw-r--r--tests/pr/Jb3l24f-lm72
-rw-r--r--tests/pr/Jml17f-lm-lo118
-rw-r--r--tests/pr/Jml24f-lm-lo136
-rw-r--r--tests/pr/Makefile.am157
-rw-r--r--tests/pr/Makefile.in868
-rw-r--r--tests/pr/Test.pm405
-rw-r--r--tests/pr/W-72l17f-ll92
-rw-r--r--tests/pr/W-72l24f-ll110
-rw-r--r--tests/pr/W20l17f-ll92
-rw-r--r--tests/pr/W20l24f-ll110
-rw-r--r--tests/pr/W26l17f-ll92
-rw-r--r--tests/pr/W26l24f-ll110
-rw-r--r--tests/pr/W27l17f-ll92
-rw-r--r--tests/pr/W27l24f-ll110
-rw-r--r--tests/pr/W28l17f-ll92
-rw-r--r--tests/pr/W28l24f-ll110
-rw-r--r--tests/pr/W35Ja3l17f-lm54
-rw-r--r--tests/pr/W35Ja3l24f-lm72
-rw-r--r--tests/pr/W35Jb3l17f-lm54
-rw-r--r--tests/pr/W35Jb3l24f-lm72
-rw-r--r--tests/pr/W35Jml17f-lmlo118
-rw-r--r--tests/pr/W35Jml24f-lmlo136
-rw-r--r--tests/pr/W35a3l17f-lm54
-rw-r--r--tests/pr/W35a3l24f-lm72
-rw-r--r--tests/pr/W35b3l17f-lm54
-rw-r--r--tests/pr/W35b3l24f-lm72
-rw-r--r--tests/pr/W35ml17f-lm-lo118
-rw-r--r--tests/pr/W35ml24f-lm-lo136
-rw-r--r--tests/pr/W72Jl17f-ll92
-rw-r--r--tests/pr/W72Jl24f-ll110
-rw-r--r--tests/pr/a3f-0F18
-rw-r--r--tests/pr/a3f-0FF22
-rw-r--r--tests/pr/a3f-FF34
-rw-r--r--tests/pr/a3l15f-t47
-rw-r--r--tests/pr/a3l17f-lm54
-rw-r--r--tests/pr/a3l24f-lm72
-rw-r--r--tests/pr/a3l8f-t37
-rw-r--r--tests/pr/b3f-0F18
-rw-r--r--tests/pr/b3f-0FF22
-rw-r--r--tests/pr/b3f-FF34
-rw-r--r--tests/pr/b3l15f-t47
-rw-r--r--tests/pr/b3l17f-lm54
-rw-r--r--tests/pr/b3l24f-lm72
-rw-r--r--tests/pr/b3l8f-t37
-rw-r--r--tests/pr/col-0.C.I0
-rw-r--r--tests/pr/col-0.C.X0
-rw-r--r--tests/pr/col-0.I0
-rw-r--r--tests/pr/col-0.X0
-rw-r--r--tests/pr/col-02.C.I3
-rw-r--r--tests/pr/col-02.C.X2
-rw-r--r--tests/pr/col-02.I3
-rw-r--r--tests/pr/col-02.X2
-rw-r--r--tests/pr/col-2.C.I3
-rw-r--r--tests/pr/col-2.C.X2
-rw-r--r--tests/pr/col-2.I3
-rw-r--r--tests/pr/col-2.X2
-rw-r--r--tests/pr/col-inval.C.I0
-rw-r--r--tests/pr/col-inval.C.X0
-rw-r--r--tests/pr/col-inval.I0
-rw-r--r--tests/pr/col-inval.X0
-rw-r--r--tests/pr/col-last.I3
-rw-r--r--tests/pr/col-last.X2
-rw-r--r--tests/pr/col-long.C.I3
-rw-r--r--tests/pr/col-long.C.X2
-rw-r--r--tests/pr/col-long.I3
-rw-r--r--tests/pr/col-long.X2
-rw-r--r--tests/pr/dbl-sp-a.I2
-rw-r--r--tests/pr/dbl-sp-a.X14
-rw-r--r--tests/pr/dbl-sp-b.I2
-rw-r--r--tests/pr/dbl-sp-b.X4
-rw-r--r--tests/pr/i-opt-a.I1
-rw-r--r--tests/pr/i-opt-a.X1
-rw-r--r--tests/pr/i-opt-b.I1
-rw-r--r--tests/pr/i-opt-b.X1
-rw-r--r--tests/pr/l17f-t79
-rw-r--r--tests/pr/l24f-t89
-rw-r--r--tests/pr/margin-0.I0
-rw-r--r--tests/pr/margin-0.X0
-rw-r--r--tests/pr/ml17f-0F51
-rw-r--r--tests/pr/ml17f-lm-lo118
-rw-r--r--tests/pr/ml17f-t79
-rw-r--r--tests/pr/ml17f-t-0F79
-rw-r--r--tests/pr/ml24f-0F61
-rw-r--r--tests/pr/ml24f-lm-lo136
-rw-r--r--tests/pr/ml24f-t89
-rw-r--r--tests/pr/ml24f-t-0F89
-rw-r--r--tests/pr/n+2-5l17f-0FF43
-rw-r--r--tests/pr/n+2-5l24f-0FF51
-rw-r--r--tests/pr/n+2l17f-0FF51
-rw-r--r--tests/pr/n+2l17f-bl94
-rw-r--r--tests/pr/n+2l24f-0FF61
-rw-r--r--tests/pr/n+2l24f-bl112
-rw-r--r--tests/pr/n+3l17f-0FF47
-rw-r--r--tests/pr/n+3l17f-bl90
-rw-r--r--tests/pr/n+3l24f-0FF55
-rw-r--r--tests/pr/n+3l24f-bl106
-rw-r--r--tests/pr/n+3ml13f-bl-FF103
-rw-r--r--tests/pr/n+3ml17f-bl-tn103
-rw-r--r--tests/pr/n+3ml17f-tn-bl103
-rw-r--r--tests/pr/n+3ml20f-bl-FF127
-rw-r--r--tests/pr/n+3ml24f-bl-tn119
-rw-r--r--tests/pr/n+3ml24f-tn-bl119
-rw-r--r--tests/pr/n+4b2l10f-0FF21
-rw-r--r--tests/pr/n+4b2l17f-0FF27
-rw-r--r--tests/pr/n+5-8b3l10f-FF25
-rw-r--r--tests/pr/n+5-8b3l17f-FF33
-rw-r--r--tests/pr/n+5a3l13f-0FF29
-rw-r--r--tests/pr/n+5a3l6f-0FF21
-rw-r--r--tests/pr/n+6b3l13f-FF56
-rw-r--r--tests/pr/n+6b3l6f-FF40
-rw-r--r--tests/pr/nJml17f-lmlmlo118
-rw-r--r--tests/pr/nJml17f-lmlolm118
-rw-r--r--tests/pr/nJml24f-lmlmlo136
-rw-r--r--tests/pr/nJml24f-lmlolm136
-rw-r--r--tests/pr/nN1+3l17f-bl90
-rw-r--r--tests/pr/nN1+3l24f-bl106
-rw-r--r--tests/pr/nN15l17f-bl111
-rw-r--r--tests/pr/nN15l24f-bl131
-rw-r--r--tests/pr/nSml13-bl-FF123
-rw-r--r--tests/pr/nSml13-t-t-FF134
-rw-r--r--tests/pr/nSml13-t-tFFFF134
-rw-r--r--tests/pr/nSml17-bl-FF111
-rw-r--r--tests/pr/nSml17-t-t-FF118
-rw-r--r--tests/pr/nSml17-t-tFFFF118
-rw-r--r--tests/pr/nSml20-bl-FF151
-rw-r--r--tests/pr/nSml20-t-t-FF160
-rw-r--r--tests/pr/nSml20-t-tFFFF160
-rw-r--r--tests/pr/nSml24-bl-FF131
-rw-r--r--tests/pr/nSml24-t-t-FF136
-rw-r--r--tests/pr/nSml24-t-tFFFF136
-rw-r--r--tests/pr/narrow-1.I1
-rw-r--r--tests/pr/narrow-1.X1
-rw-r--r--tests/pr/ncut-a.I5
-rw-r--r--tests/pr/ncut-a.X5
-rw-r--r--tests/pr/ncut-b.I5
-rw-r--r--tests/pr/ncut-b.X5
-rw-r--r--tests/pr/neg-page.I0
-rw-r--r--tests/pr/neg-page.X0
-rw-r--r--tests/pr/nl17f-bl111
-rw-r--r--tests/pr/nl24f-bl131
-rw-r--r--tests/pr/o3Jml17f-lm-lo118
-rw-r--r--tests/pr/o3Jml24f-lm-lo136
-rw-r--r--tests/pr/o3a3Sl17f-tn28
-rw-r--r--tests/pr/o3a3Sl24f-tn32
-rw-r--r--tests/pr/o3a3Snl17f-tn28
-rw-r--r--tests/pr/o3a3Snl24f-tn32
-rw-r--r--tests/pr/o3a3l17f-tn28
-rw-r--r--tests/pr/o3a3l24f-tn32
-rw-r--r--tests/pr/o3b3Sl17f-tn28
-rw-r--r--tests/pr/o3b3Sl24f-tn32
-rw-r--r--tests/pr/o3b3Snl17f-tn28
-rw-r--r--tests/pr/o3b3Snl24f-tn32
-rw-r--r--tests/pr/o3b3l17f-tn28
-rw-r--r--tests/pr/o3b3l24f-tn32
-rw-r--r--tests/pr/o3mSl17f-bl-tn137
-rw-r--r--tests/pr/o3mSl24f-bl-tn157
-rw-r--r--tests/pr/o3mSnl17fbltn137
-rw-r--r--tests/pr/o3mSnl24fbltn157
-rw-r--r--tests/pr/o3ml17f-bl-tn137
-rw-r--r--tests/pr/o3ml24f-bl-tn157
-rwxr-xr-xtests/pr/pr-tests7155
-rwxr-xr-xtests/pr/pr-tests.pl476
-rw-r--r--tests/pr/w72l17f-ll92
-rw-r--r--tests/pr/w72l24f-ll110
-rw-r--r--tests/priv-check94
-rw-r--r--tests/readlink/Makefile.am6
-rw-r--r--tests/readlink/Makefile.in716
-rwxr-xr-xtests/readlink/can-e136
-rwxr-xr-xtests/readlink/can-e.sh104
-rwxr-xr-xtests/readlink/can-f169
-rwxr-xr-xtests/readlink/can-f.sh153
-rwxr-xr-xtests/readlink/can-m172
-rwxr-xr-xtests/readlink/can-m.sh141
-rwxr-xr-xtests/readlink/multi.sh46
-rwxr-xr-xtests/readlink/rl-171
-rwxr-xr-xtests/readlink/rl-1.sh43
-rw-r--r--tests/rm/Makefile.am51
-rw-r--r--tests/rm/Makefile.in763
-rwxr-xr-xtests/rm/cycle57
-rwxr-xr-xtests/rm/cycle.sh36
-rwxr-xr-xtests/rm/d-1.sh38
-rwxr-xr-xtests/rm/d-2.sh37
-rwxr-xr-xtests/rm/d-3.sh37
-rwxr-xr-xtests/rm/dangling-symlink60
-rwxr-xr-xtests/rm/dangling-symlink.sh46
-rwxr-xr-xtests/rm/deep-163
-rwxr-xr-xtests/rm/deep-1.sh53
-rwxr-xr-xtests/rm/deep-2.sh54
-rwxr-xr-xtests/rm/dir-no-w64
-rwxr-xr-xtests/rm/dir-no-w.sh42
-rwxr-xr-xtests/rm/dir-nonrecur55
-rwxr-xr-xtests/rm/dir-nonrecur.sh34
-rwxr-xr-xtests/rm/dot-rel48
-rwxr-xr-xtests/rm/dot-rel.sh29
-rwxr-xr-xtests/rm/empty-inacc57
-rwxr-xr-xtests/rm/empty-inacc.sh38
-rwxr-xr-xtests/rm/empty-name.pl60
-rwxr-xr-xtests/rm/ext3-perf.sh83
-rwxr-xr-xtests/rm/f-144
-rwxr-xr-xtests/rm/f-1.sh26
-rwxr-xr-xtests/rm/fail-2eperm75
-rwxr-xr-xtests/rm/fail-2eperm.sh57
-rwxr-xr-xtests/rm/fail-eacces54
-rwxr-xr-xtests/rm/fail-eacces.sh54
-rwxr-xr-xtests/rm/fail-eperm160
-rwxr-xr-xtests/rm/fail-eperm.xpl150
-rwxr-xr-xtests/rm/hash57
-rwxr-xr-xtests/rm/hash.sh37
-rwxr-xr-xtests/rm/i-157
-rwxr-xr-xtests/rm/i-1.sh40
-rwxr-xr-xtests/rm/i-never53
-rwxr-xr-xtests/rm/i-never.sh33
-rwxr-xr-xtests/rm/i-no-r52
-rwxr-xr-xtests/rm/i-no-r.sh34
-rwxr-xr-xtests/rm/ignorable49
-rwxr-xr-xtests/rm/ignorable.sh30
-rwxr-xr-xtests/rm/inaccessible76
-rwxr-xr-xtests/rm/inaccessible.sh49
-rwxr-xr-xtests/rm/interactive-always113
-rwxr-xr-xtests/rm/interactive-always.sh87
-rwxr-xr-xtests/rm/interactive-once133
-rwxr-xr-xtests/rm/interactive-once.sh150
-rwxr-xr-xtests/rm/ir-176
-rwxr-xr-xtests/rm/ir-1.sh56
-rwxr-xr-xtests/rm/isatty77
-rwxr-xr-xtests/rm/isatty.sh55
-rwxr-xr-xtests/rm/many-dir-entries-vs-OOM.sh47
-rwxr-xr-xtests/rm/no-give-up58
-rwxr-xr-xtests/rm/no-give-up.sh42
-rwxr-xr-xtests/rm/one-file-system67
-rwxr-xr-xtests/rm/one-file-system.sh48
-rwxr-xr-xtests/rm/one-file-system2.sh27
-rwxr-xr-xtests/rm/r-167
-rwxr-xr-xtests/rm/r-1.sh40
-rwxr-xr-xtests/rm/r-268
-rwxr-xr-xtests/rm/r-2.sh45
-rwxr-xr-xtests/rm/r-365
-rwxr-xr-xtests/rm/r-3.sh48
-rwxr-xr-xtests/rm/r-456
-rwxr-xr-xtests/rm/r-4.sh51
-rwxr-xr-xtests/rm/r-root.sh299
-rwxr-xr-xtests/rm/read-only.sh52
-rwxr-xr-xtests/rm/readdir-bug60
-rwxr-xr-xtests/rm/readdir-bug.sh41
-rwxr-xr-xtests/rm/rm169
-rwxr-xr-xtests/rm/rm1.sh48
-rwxr-xr-xtests/rm/rm276
-rwxr-xr-xtests/rm/rm2.sh55
-rwxr-xr-xtests/rm/rm395
-rwxr-xr-xtests/rm/rm3.sh73
-rwxr-xr-xtests/rm/rm452
-rwxr-xr-xtests/rm/rm4.sh31
-rwxr-xr-xtests/rm/rm574
-rwxr-xr-xtests/rm/rm5.sh52
-rwxr-xr-xtests/rm/sunos-148
-rwxr-xr-xtests/rm/sunos-1.sh29
-rwxr-xr-xtests/rm/unread257
-rwxr-xr-xtests/rm/unread2.sh35
-rwxr-xr-xtests/rm/unread362
-rwxr-xr-xtests/rm/unread3.sh43
-rwxr-xr-xtests/rm/unreadable.pl50
-rwxr-xr-xtests/rm/v-slash.sh34
-rw-r--r--tests/rmdir/Makefile.am11
-rw-r--r--tests/rmdir/Makefile.in720
-rwxr-xr-xtests/rmdir/fail-perm52
-rwxr-xr-xtests/rmdir/fail-perm.sh32
-rwxr-xr-xtests/rmdir/ignore45
-rwxr-xr-xtests/rmdir/ignore.sh32
-rwxr-xr-xtests/rmdir/t-slash47
-rwxr-xr-xtests/rmdir/t-slash.sh29
-rwxr-xr-xtests/rwx-to-mode49
-rw-r--r--tests/sample-test45
-rw-r--r--tests/seq/Makefile.am10
-rw-r--r--tests/seq/Makefile.in720
-rwxr-xr-xtests/seq/basic90
-rw-r--r--tests/setgid-check43
-rw-r--r--tests/sha1sum/Makefile.am13
-rw-r--r--tests/sha1sum/Makefile.in720
-rwxr-xr-xtests/sha1sum/basic-191
-rwxr-xr-xtests/sha1sum/sample-vec548
-rw-r--r--tests/shred/Makefile.am12
-rw-r--r--tests/shred/Makefile.in719
-rwxr-xr-xtests/shred/exact55
-rwxr-xr-xtests/shred/remove56
-rw-r--r--tests/sort/01a.I3
-rw-r--r--tests/sort/01a.X3
-rw-r--r--tests/sort/02a.I3
-rw-r--r--tests/sort/02a.X0
-rw-r--r--tests/sort/02b.I3
-rw-r--r--tests/sort/02b.X0
-rw-r--r--tests/sort/02c.I2
-rw-r--r--tests/sort/02c.X0
-rw-r--r--tests/sort/02d.I3
-rw-r--r--tests/sort/02d.X0
-rw-r--r--tests/sort/02e.I3
-rw-r--r--tests/sort/02e.X0
-rw-r--r--tests/sort/02m.I2
-rw-r--r--tests/sort/02m.X0
-rw-r--r--tests/sort/02n.I2
-rw-r--r--tests/sort/02n.X0
-rw-r--r--tests/sort/02o.I3
-rw-r--r--tests/sort/02o.X0
-rw-r--r--tests/sort/02p.I3
-rw-r--r--tests/sort/02p.X0
-rw-r--r--tests/sort/03a.I2
-rw-r--r--tests/sort/03a.X2
-rw-r--r--tests/sort/03b.I2
-rw-r--r--tests/sort/03b.X2
-rw-r--r--tests/sort/03c.I2
-rw-r--r--tests/sort/03c.X2
-rw-r--r--tests/sort/03d.I0
-rw-r--r--tests/sort/03d.X0
-rw-r--r--tests/sort/03e.I0
-rw-r--r--tests/sort/03e.X0
-rw-r--r--tests/sort/03f.I0
-rw-r--r--tests/sort/03f.X0
-rw-r--r--tests/sort/03g.I0
-rw-r--r--tests/sort/03g.X0
-rw-r--r--tests/sort/03h.I0
-rw-r--r--tests/sort/03h.X0
-rw-r--r--tests/sort/03i.I0
-rw-r--r--tests/sort/03i.X0
-rw-r--r--tests/sort/04a.I2
-rw-r--r--tests/sort/04a.X0
-rw-r--r--tests/sort/04b.I2
-rw-r--r--tests/sort/04b.X2
-rw-r--r--tests/sort/04c.I2
-rw-r--r--tests/sort/04c.X2
-rw-r--r--tests/sort/04d.I2
-rw-r--r--tests/sort/04d.X2
-rw-r--r--tests/sort/04e.I2
-rw-r--r--tests/sort/04e.X2
-rw-r--r--tests/sort/05a.I2
-rw-r--r--tests/sort/05a.X2
-rw-r--r--tests/sort/05b.I2
-rw-r--r--tests/sort/05b.X2
-rw-r--r--tests/sort/05c.I2
-rw-r--r--tests/sort/05c.X2
-rw-r--r--tests/sort/05d.I2
-rw-r--r--tests/sort/05d.X2
-rw-r--r--tests/sort/05e.I2
-rw-r--r--tests/sort/05e.X2
-rw-r--r--tests/sort/05f.I2
-rw-r--r--tests/sort/05f.X2
-rw-r--r--tests/sort/06a.I2
-rw-r--r--tests/sort/06a.X2
-rw-r--r--tests/sort/06b.I2
-rw-r--r--tests/sort/06b.X2
-rw-r--r--tests/sort/06c.I2
-rw-r--r--tests/sort/06c.X2
-rw-r--r--tests/sort/06d.I2
-rw-r--r--tests/sort/06d.X2
-rw-r--r--tests/sort/06e.I2
-rw-r--r--tests/sort/06e.X2
-rw-r--r--tests/sort/06f.I2
-rw-r--r--tests/sort/06f.X2
-rw-r--r--tests/sort/07a.I2
-rw-r--r--tests/sort/07a.X2
-rw-r--r--tests/sort/07b.I2
-rw-r--r--tests/sort/07b.X2
-rw-r--r--tests/sort/07c.I2
-rw-r--r--tests/sort/07c.X2
-rw-r--r--tests/sort/07d.I2
-rw-r--r--tests/sort/07d.X2
-rw-r--r--tests/sort/08a.I0
-rw-r--r--tests/sort/08a.X0
-rw-r--r--tests/sort/08b.I0
-rw-r--r--tests/sort/08b.X0
-rw-r--r--tests/sort/09a.I2
-rw-r--r--tests/sort/09a.X2
-rw-r--r--tests/sort/09b.I2
-rw-r--r--tests/sort/09b.X2
-rw-r--r--tests/sort/09c.I2
-rw-r--r--tests/sort/09c.X2
-rw-r--r--tests/sort/09d.I2
-rw-r--r--tests/sort/09d.X2
-rw-r--r--tests/sort/10a.I2
-rw-r--r--tests/sort/10a.X2
-rw-r--r--tests/sort/10a0.I2
-rw-r--r--tests/sort/10a0.X2
-rw-r--r--tests/sort/10a1.I2
-rw-r--r--tests/sort/10a1.X2
-rw-r--r--tests/sort/10a2.I2
-rw-r--r--tests/sort/10a2.X2
-rw-r--r--tests/sort/10b.I2
-rw-r--r--tests/sort/10b.X2
-rw-r--r--tests/sort/10c.I2
-rw-r--r--tests/sort/10c.X2
-rw-r--r--tests/sort/10d.I2
-rw-r--r--tests/sort/10d.X2
-rw-r--r--tests/sort/10e.I2
-rw-r--r--tests/sort/10e.X2
-rw-r--r--tests/sort/10f.I2
-rw-r--r--tests/sort/10f.X2
-rw-r--r--tests/sort/10g.I2
-rw-r--r--tests/sort/10g.X2
-rw-r--r--tests/sort/11a.I2
-rw-r--r--tests/sort/11a.X2
-rw-r--r--tests/sort/11b.I2
-rw-r--r--tests/sort/11b.X2
-rw-r--r--tests/sort/11c.I2
-rw-r--r--tests/sort/11c.X2
-rw-r--r--tests/sort/11d.I2
-rw-r--r--tests/sort/11d.X2
-rw-r--r--tests/sort/12a.I2
-rw-r--r--tests/sort/12a.X2
-rw-r--r--tests/sort/12b.I2
-rw-r--r--tests/sort/12b.X2
-rw-r--r--tests/sort/12c.I2
-rw-r--r--tests/sort/12c.X2
-rw-r--r--tests/sort/12d.I2
-rw-r--r--tests/sort/12d.X2
-rw-r--r--tests/sort/13a.I2
-rw-r--r--tests/sort/13a.X2
-rw-r--r--tests/sort/13b.I2
-rw-r--r--tests/sort/13b.X2
-rw-r--r--tests/sort/14a.I3
-rw-r--r--tests/sort/14a.X2
-rw-r--r--tests/sort/14b.I3
-rw-r--r--tests/sort/14b.X2
-rw-r--r--tests/sort/15a.I2
-rw-r--r--tests/sort/15a.X1
-rw-r--r--tests/sort/15b.I2
-rw-r--r--tests/sort/15b.X1
-rw-r--r--tests/sort/15c.I2
-rw-r--r--tests/sort/15c.X1
-rw-r--r--tests/sort/15d.I2
-rw-r--r--tests/sort/15d.X1
-rw-r--r--tests/sort/15e.I2
-rw-r--r--tests/sort/15e.X1
-rw-r--r--tests/sort/16a.I6
-rw-r--r--tests/sort/16a.X6
-rw-r--r--tests/sort/17.I1
-rw-r--r--tests/sort/17.X0
-rw-r--r--tests/sort/18a.I2
-rw-r--r--tests/sort/18a.X2
-rw-r--r--tests/sort/18b.I2
-rw-r--r--tests/sort/18b.X2
-rw-r--r--tests/sort/18c.I2
-rw-r--r--tests/sort/18c.X2
-rw-r--r--tests/sort/18d.I2
-rw-r--r--tests/sort/18d.X2
-rw-r--r--tests/sort/18e.I2
-rw-r--r--tests/sort/18e.X2
-rw-r--r--tests/sort/19a.I3
-rw-r--r--tests/sort/19a.X3
-rw-r--r--tests/sort/19b.I3
-rw-r--r--tests/sort/19b.X3
-rw-r--r--tests/sort/20a.I10
-rw-r--r--tests/sort/20a.X10
-rw-r--r--tests/sort/21a.I3
-rw-r--r--tests/sort/21a.X3
-rw-r--r--tests/sort/21b.I3
-rw-r--r--tests/sort/21b.X3
-rw-r--r--tests/sort/21c.I3
-rw-r--r--tests/sort/21c.X3
-rw-r--r--tests/sort/21d.I3
-rw-r--r--tests/sort/21d.X3
-rw-r--r--tests/sort/21e.I3
-rw-r--r--tests/sort/21e.X3
-rw-r--r--tests/sort/21f.I3
-rw-r--r--tests/sort/21f.X3
-rw-r--r--tests/sort/21g.I2
-rw-r--r--tests/sort/21g.X2
-rw-r--r--tests/sort/22a.I2
-rw-r--r--tests/sort/22a.X2
-rw-r--r--tests/sort/22b.I2
-rw-r--r--tests/sort/22b.X2
-rw-r--r--tests/sort/Makefile.am99
-rw-r--r--tests/sort/Makefile.in809
-rwxr-xr-xtests/sort/Test.pm292
-rw-r--r--tests/sort/bigfield.I2
-rw-r--r--tests/sort/bigfield.X2
-rw-r--r--tests/sort/create-empty.X0
-rw-r--r--tests/sort/incompat1.I0
-rw-r--r--tests/sort/incompat1.X0
-rw-r--r--tests/sort/incompat2.I0
-rw-r--r--tests/sort/incompat2.X0
-rw-r--r--tests/sort/incompat3.I0
-rw-r--r--tests/sort/incompat3.X0
-rw-r--r--tests/sort/incompat4.I0
-rw-r--r--tests/sort/incompat4.X0
-rw-r--r--tests/sort/incompat5.I0
-rw-r--r--tests/sort/incompat5.X0
-rw-r--r--tests/sort/incompat6.I0
-rw-r--r--tests/sort/incompat6.X0
-rw-r--r--tests/sort/n1.I2
-rw-r--r--tests/sort/n1.X2
-rw-r--r--tests/sort/n10a.I2
-rw-r--r--tests/sort/n10a.X2
-rw-r--r--tests/sort/n10b.I2
-rw-r--r--tests/sort/n10b.X2
-rw-r--r--tests/sort/n11a.I2
-rw-r--r--tests/sort/n11a.X2
-rw-r--r--tests/sort/n11b.I2
-rw-r--r--tests/sort/n11b.X2
-rw-r--r--tests/sort/n2.I2
-rw-r--r--tests/sort/n2.X2
-rw-r--r--tests/sort/n3.I2
-rw-r--r--tests/sort/n3.X2
-rw-r--r--tests/sort/n4.I2
-rw-r--r--tests/sort/n4.X2
-rw-r--r--tests/sort/n5.I2
-rw-r--r--tests/sort/n5.X2
-rw-r--r--tests/sort/n6.I2
-rw-r--r--tests/sort/n6.X2
-rw-r--r--tests/sort/n7.I2
-rw-r--r--tests/sort/n7.X2
-rw-r--r--tests/sort/n8a.I2
-rw-r--r--tests/sort/n8a.X2
-rw-r--r--tests/sort/n8b.I2
-rw-r--r--tests/sort/n8b.X2
-rw-r--r--tests/sort/n9a.I2
-rw-r--r--tests/sort/n9a.X2
-rw-r--r--tests/sort/n9b.I2
-rw-r--r--tests/sort/n9b.X2
-rw-r--r--tests/sort/neg-nls.I2
-rw-r--r--tests/sort/neg-nls.X2
-rw-r--r--tests/sort/no-file1.X0
-rw-r--r--tests/sort/nul-nls.Ibin6 -> 0 bytes
-rw-r--r--tests/sort/nul-nls.Xbin6 -> 0 bytes
-rw-r--r--tests/sort/nul-tab.Ibin10 -> 0 bytes
-rw-r--r--tests/sort/nul-tab.Xbin10 -> 0 bytes
-rw-r--r--tests/sort/o-no-file1.X0
-rw-r--r--tests/sort/o2.I0
-rw-r--r--tests/sort/o2.X0
-rwxr-xr-xtests/sort/sort-tests2223
-rw-r--r--tests/sort/use-nl.I2
-rw-r--r--tests/sort/use-nl.X2
-rw-r--r--tests/sparse-file33
-rwxr-xr-xtests/split/additional-suffix.sh44
-rwxr-xr-xtests/split/b-chunk.sh61
-rwxr-xr-xtests/split/fail.sh81
-rwxr-xr-xtests/split/filter.sh57
-rwxr-xr-xtests/split/guard-input.sh33
-rwxr-xr-xtests/split/l-chunk.sh142
-rwxr-xr-xtests/split/line-bytes.sh87
-rwxr-xr-xtests/split/lines.sh42
-rwxr-xr-xtests/split/numeric.sh65
-rwxr-xr-xtests/split/r-chunk.sh64
-rwxr-xr-xtests/split/record-sep.sh78
-rwxr-xr-xtests/split/suffix-auto-length.sh53
-rwxr-xr-xtests/split/suffix-length.sh76
-rw-r--r--tests/stty/Makefile.am6
-rw-r--r--tests/stty/Makefile.in716
-rwxr-xr-xtests/stty/basic-1106
-rwxr-xr-xtests/stty/row-col-188
-rw-r--r--tests/sum/Makefile.am13
-rw-r--r--tests/sum/Makefile.in720
-rwxr-xr-xtests/sum/basic-175
-rwxr-xr-xtests/sum/sysv76
-rw-r--r--tests/tac/Makefile.am70
-rw-r--r--tests/tac/Makefile.in780
-rw-r--r--tests/tac/Test.pm84
-rw-r--r--tests/tac/b2-e.I2
-rw-r--r--tests/tac/b2-e.X2
-rw-r--r--tests/tac/b2-f.I2
-rw-r--r--tests/tac/b2-f.X2
-rw-r--r--tests/tac/b2-g.I2
-rw-r--r--tests/tac/b2-g.X2
-rw-r--r--tests/tac/b2-h.I2
-rw-r--r--tests/tac/b2-h.X2
-rw-r--r--tests/tac/b2-i.I2
-rw-r--r--tests/tac/b2-i.X2
-rw-r--r--tests/tac/b2-j.I2
-rw-r--r--tests/tac/b2-j.X2
-rw-r--r--tests/tac/b2-k.I2
-rw-r--r--tests/tac/b2-k.X2
-rw-r--r--tests/tac/basic-0.I0
-rw-r--r--tests/tac/basic-0.X0
-rw-r--r--tests/tac/basic-a.I1
-rw-r--r--tests/tac/basic-a.X1
-rw-r--r--tests/tac/basic-b.I1
-rw-r--r--tests/tac/basic-b.X1
-rw-r--r--tests/tac/basic-c.I1
-rw-r--r--tests/tac/basic-c.X1
-rw-r--r--tests/tac/basic-d.I2
-rw-r--r--tests/tac/basic-d.X2
-rw-r--r--tests/tac/basic-e.I2
-rw-r--r--tests/tac/basic-e.X2
-rw-r--r--tests/tac/basic-f.I2
-rw-r--r--tests/tac/basic-f.X2
-rw-r--r--tests/tac/basic-g.I2
-rw-r--r--tests/tac/basic-g.X2
-rw-r--r--tests/tac/basic-h.I2
-rw-r--r--tests/tac/basic-h.X2
-rw-r--r--tests/tac/basic-i.I2
-rw-r--r--tests/tac/basic-i.X2
-rw-r--r--tests/tac/basic-j.I2
-rw-r--r--tests/tac/basic-j.X2
-rw-r--r--tests/tac/basic-k.I2
-rw-r--r--tests/tac/basic-k.X2
-rw-r--r--tests/tac/opt-b.I4
-rw-r--r--tests/tac/opt-b.X4
-rw-r--r--tests/tac/opt-br.I1
-rw-r--r--tests/tac/opt-br.X1
-rw-r--r--tests/tac/opt-br2.I1
-rw-r--r--tests/tac/opt-br2.X1
-rw-r--r--tests/tac/opt-r.I1
-rw-r--r--tests/tac/opt-r.X1
-rw-r--r--tests/tac/opt-r2.I1
-rw-r--r--tests/tac/opt-r2.X1
-rw-r--r--tests/tac/opt-s.I1
-rw-r--r--tests/tac/opt-s.X1
-rw-r--r--tests/tac/opt-sb.I1
-rw-r--r--tests/tac/opt-sb.X1
-rwxr-xr-xtests/tac/tac-tests945
-rwxr-xr-xtests/tail-2/F-headers.sh59
-rwxr-xr-xtests/tail-2/F-vs-missing.sh59
-rwxr-xr-xtests/tail-2/F-vs-rename.sh83
-rw-r--r--tests/tail-2/Makefile.am34
-rw-r--r--tests/tail-2/Makefile.in744
-rwxr-xr-xtests/tail-2/append-only55
-rwxr-xr-xtests/tail-2/append-only.sh46
-rwxr-xr-xtests/tail-2/assert78
-rwxr-xr-xtests/tail-2/assert-266
-rwxr-xr-xtests/tail-2/assert-2.sh57
-rwxr-xr-xtests/tail-2/assert.sh68
-rwxr-xr-xtests/tail-2/big-4gb71
-rwxr-xr-xtests/tail-2/big-4gb.sh50
-rwxr-xr-xtests/tail-2/descriptor-vs-rename.sh56
-rwxr-xr-xtests/tail-2/flush-initial.sh44
-rwxr-xr-xtests/tail-2/follow-name.sh36
-rwxr-xr-xtests/tail-2/follow-stdin.sh53
-rwxr-xr-xtests/tail-2/inotify-hash-abuse.sh71
-rwxr-xr-xtests/tail-2/inotify-hash-abuse2.sh46
-rwxr-xr-xtests/tail-2/inotify-race.sh98
-rwxr-xr-xtests/tail-2/inotify-race2.sh103
-rwxr-xr-xtests/tail-2/inotify-rotate-resources.sh108
-rwxr-xr-xtests/tail-2/inotify-rotate.sh77
-rwxr-xr-xtests/tail-2/pid.sh51
-rwxr-xr-xtests/tail-2/pipe-f.sh27
-rwxr-xr-xtests/tail-2/pipe-f2.sh47
-rwxr-xr-xtests/tail-2/proc-ksyms38
-rwxr-xr-xtests/tail-2/proc-ksyms.sh28
-rwxr-xr-xtests/tail-2/retry.sh131
-rwxr-xr-xtests/tail-2/start-middle53
-rwxr-xr-xtests/tail-2/start-middle.sh33
-rwxr-xr-xtests/tail-2/symlink.sh94
-rwxr-xr-xtests/tail-2/tail-c.sh34
-rwxr-xr-xtests/tail-2/tail-n0f76
-rwxr-xr-xtests/tail-2/tail-n0f.sh62
-rwxr-xr-xtests/tail-2/truncate.sh56
-rwxr-xr-xtests/tail-2/wait.sh96
-rw-r--r--tests/tail/Makefile.am78
-rw-r--r--tests/tail/Makefile.in788
-rwxr-xr-xtests/tail/Test.pm144
-rw-r--r--tests/tail/c-2-minus.I1
-rw-r--r--tests/tail/c-2-minus.X1
-rw-r--r--tests/tail/c-2.I1
-rw-r--r--tests/tail/c-2.X1
-rw-r--r--tests/tail/c2-minus.I1
-rw-r--r--tests/tail/c2-minus.X1
-rw-r--r--tests/tail/c2.I1
-rw-r--r--tests/tail/c2.X1
-rw-r--r--tests/tail/err-1.I0
-rw-r--r--tests/tail/err-1.X0
-rw-r--r--tests/tail/err-2.I0
-rw-r--r--tests/tail/err-2.X0
-rw-r--r--tests/tail/err-3.I0
-rw-r--r--tests/tail/err-3.X0
-rw-r--r--tests/tail/err-4.I0
-rw-r--r--tests/tail/err-4.X0
-rw-r--r--tests/tail/err-5.I0
-rw-r--r--tests/tail/err-5.X0
-rw-r--r--tests/tail/err-6.I0
-rw-r--r--tests/tail/err-6.X0
-rw-r--r--tests/tail/f-pipe-1.I2
-rw-r--r--tests/tail/f-pipe-1.X1
-rw-r--r--tests/tail/minus-1.I0
-rw-r--r--tests/tail/minus-1.X0
-rw-r--r--tests/tail/minus-2.I12
-rw-r--r--tests/tail/minus-2.X10
-rw-r--r--tests/tail/n-1.I12
-rw-r--r--tests/tail/n-1.X10
-rw-r--r--tests/tail/n-2.I12
-rw-r--r--tests/tail/n-2.X10
-rw-r--r--tests/tail/n-3.I12
-rw-r--r--tests/tail/n-3.X3
-rw-r--r--tests/tail/n-4.I5
-rw-r--r--tests/tail/n-4.X5
-rw-r--r--tests/tail/n-4a.I5
-rw-r--r--tests/tail/n-4a.X5
-rw-r--r--tests/tail/n-5.I5
-rw-r--r--tests/tail/n-5.X0
-rw-r--r--tests/tail/n-5a.I5
-rw-r--r--tests/tail/n-5a.X1
-rw-r--r--tests/tail/n-5b.I5
-rw-r--r--tests/tail/n-5b.X0
-rw-r--r--tests/tail/obs-1.I1
-rw-r--r--tests/tail/obs-1.X1
-rw-r--r--tests/tail/obs-2.I2
-rw-r--r--tests/tail/obs-2.X1
-rw-r--r--tests/tail/obs-3.I2
-rw-r--r--tests/tail/obs-3.X1
-rw-r--r--tests/tail/obs-b.I2561
-rw-r--r--tests/tail/obs-b.X2560
-rw-r--r--tests/tail/obs-c3.I1
-rw-r--r--tests/tail/obs-c3.X1
-rw-r--r--tests/tail/obs-c4.I1
-rw-r--r--tests/tail/obs-c4.X1
-rw-r--r--tests/tail/obs-c5.I1
-rw-r--r--tests/tail/obs-c5.X1
-rw-r--r--tests/tail/obs-l.I12
-rw-r--r--tests/tail/obs-l.X10
-rw-r--r--tests/tail/obs-l1.I1
-rw-r--r--tests/tail/obs-l1.X1
-rw-r--r--tests/tail/obs-l2.I2
-rw-r--r--tests/tail/obs-l2.X1
-rw-r--r--tests/tail/obs-l3.I2
-rw-r--r--tests/tail/obs-l3.X1
-rw-r--r--tests/tail/obs-plus-4.I2
-rw-r--r--tests/tail/obs-plus-4.X2
-rw-r--r--tests/tail/obs-plus-5.I2
-rw-r--r--tests/tail/obs-plus-5.X1
-rw-r--r--tests/tail/obs-plus-c1.I1
-rw-r--r--tests/tail/obs-plus-c1.X1
-rw-r--r--tests/tail/obs-plus-c2.I1
-rw-r--r--tests/tail/obs-plus-c2.X0
-rw-r--r--tests/tail/obs-plus-l4.I2
-rw-r--r--tests/tail/obs-plus-l4.X2
-rw-r--r--tests/tail/obs-plus-l5.I2
-rw-r--r--tests/tail/obs-plus-l5.X1
-rw-r--r--tests/tail/obs-plus-x1.I1
-rw-r--r--tests/tail/obs-plus-x1.X1
-rw-r--r--tests/tail/obs-plus-x2.I12
-rw-r--r--tests/tail/obs-plus-x2.X3
-rwxr-xr-xtests/tail/tail-tests2079
-rw-r--r--tests/tee/Makefile.am6
-rw-r--r--tests/tee/Makefile.in716
-rwxr-xr-xtests/tee/basic50
-rwxr-xr-xtests/tee/dash41
-rw-r--r--tests/test/1a.X0
-rw-r--r--tests/test/1b.X0
-rw-r--r--tests/test/1c.X0
-rw-r--r--tests/test/1d.X0
-rw-r--r--tests/test/1e.X0
-rw-r--r--tests/test/1f.X0
-rw-r--r--tests/test/1g.X0
-rw-r--r--tests/test/1h.X0
-rw-r--r--tests/test/1i.X0
-rw-r--r--tests/test/1j.X0
-rw-r--r--tests/test/1k.X0
-rw-r--r--tests/test/Makefile.am154
-rw-r--r--tests/test/Makefile.in864
-rw-r--r--tests/test/N-1b.X0
-rw-r--r--tests/test/N-1c.X0
-rw-r--r--tests/test/N-1d.X0
-rw-r--r--tests/test/N-1e.X0
-rw-r--r--tests/test/N-1f.X0
-rw-r--r--tests/test/N-1g.X0
-rw-r--r--tests/test/N-1h.X0
-rw-r--r--tests/test/N-1i.X0
-rw-r--r--tests/test/N-1j.X0
-rw-r--r--tests/test/N-1k.X0
-rw-r--r--tests/test/N-and-1.X0
-rw-r--r--tests/test/N-and-2.X0
-rw-r--r--tests/test/N-and-3.X0
-rw-r--r--tests/test/N-and-4.X0
-rw-r--r--tests/test/N-eq-1.X0
-rw-r--r--tests/test/N-eq-2.X0
-rw-r--r--tests/test/N-eq-3.X0
-rw-r--r--tests/test/N-eq-4.X0
-rw-r--r--tests/test/N-eq-5.X0
-rw-r--r--tests/test/N-eq-6.X0
-rw-r--r--tests/test/N-gt-1.X0
-rw-r--r--tests/test/N-gt-2.X0
-rw-r--r--tests/test/N-gt-3.X0
-rw-r--r--tests/test/N-gt-4.X0
-rw-r--r--tests/test/N-gt-5.X0
-rw-r--r--tests/test/N-lt-1.X0
-rw-r--r--tests/test/N-lt-2.X0
-rw-r--r--tests/test/N-lt-3.X0
-rw-r--r--tests/test/N-lt-4.X0
-rw-r--r--tests/test/N-lt-5.X0
-rw-r--r--tests/test/N-or-1.X0
-rw-r--r--tests/test/N-or-2.X0
-rw-r--r--tests/test/N-or-3.X0
-rw-r--r--tests/test/N-or-4.X0
-rw-r--r--tests/test/N-paren-1.X0
-rw-r--r--tests/test/N-paren-2.X0
-rw-r--r--tests/test/N-paren-3.X0
-rw-r--r--tests/test/N-paren-4.X0
-rw-r--r--tests/test/N-paren-5.X0
-rw-r--r--tests/test/N-streq-1.X0
-rw-r--r--tests/test/N-streq-2.X0
-rw-r--r--tests/test/N-streq-3.X0
-rw-r--r--tests/test/N-streq-4.X0
-rw-r--r--tests/test/N-streq-5.X0
-rw-r--r--tests/test/N-streq-6.X0
-rw-r--r--tests/test/N-strne-1.X0
-rw-r--r--tests/test/N-strne-2.X0
-rw-r--r--tests/test/N-strne-3.X0
-rw-r--r--tests/test/N-strne-4.X0
-rw-r--r--tests/test/N-strne-5.X0
-rw-r--r--tests/test/N-strne-6.X0
-rw-r--r--tests/test/N-t1.X0
-rw-r--r--tests/test/N-t2.X0
-rw-r--r--tests/test/NNP-1b.X0
-rw-r--r--tests/test/NNP-1c.X0
-rw-r--r--tests/test/NNP-1d.X0
-rw-r--r--tests/test/NNP-1e.X0
-rw-r--r--tests/test/NNP-1f.X0
-rw-r--r--tests/test/NNP-1g.X0
-rw-r--r--tests/test/NNP-1h.X0
-rw-r--r--tests/test/NNP-1i.X0
-rw-r--r--tests/test/NNP-1j.X0
-rw-r--r--tests/test/NNP-1k.X0
-rw-r--r--tests/test/NNP-and-1.X0
-rw-r--r--tests/test/NNP-and-2.X0
-rw-r--r--tests/test/NNP-and-3.X0
-rw-r--r--tests/test/NNP-and-4.X0
-rw-r--r--tests/test/NNP-eq-1.X0
-rw-r--r--tests/test/NNP-eq-2.X0
-rw-r--r--tests/test/NNP-eq-3.X0
-rw-r--r--tests/test/NNP-eq-4.X0
-rw-r--r--tests/test/NNP-eq-5.X0
-rw-r--r--tests/test/NNP-eq-6.X0
-rw-r--r--tests/test/NNP-gt-1.X0
-rw-r--r--tests/test/NNP-gt-2.X0
-rw-r--r--tests/test/NNP-gt-3.X0
-rw-r--r--tests/test/NNP-gt-4.X0
-rw-r--r--tests/test/NNP-gt-5.X0
-rw-r--r--tests/test/NNP-lt-1.X0
-rw-r--r--tests/test/NNP-lt-2.X0
-rw-r--r--tests/test/NNP-lt-3.X0
-rw-r--r--tests/test/NNP-lt-4.X0
-rw-r--r--tests/test/NNP-lt-5.X0
-rw-r--r--tests/test/NNP-or-1.X0
-rw-r--r--tests/test/NNP-or-2.X0
-rw-r--r--tests/test/NNP-or-3.X0
-rw-r--r--tests/test/NNP-or-4.X0
-rw-r--r--tests/test/NNP-streq-1.X0
-rw-r--r--tests/test/NNP-streq-2.X0
-rw-r--r--tests/test/NNP-streq-3.X0
-rw-r--r--tests/test/NNP-streq-4.X0
-rw-r--r--tests/test/NNP-streq-5.X0
-rw-r--r--tests/test/NNP-strne-1.X0
-rw-r--r--tests/test/NNP-strne-2.X0
-rw-r--r--tests/test/NNP-strne-3.X0
-rw-r--r--tests/test/NNP-strne-4.X0
-rw-r--r--tests/test/NNP-strne-5.X0
-rw-r--r--tests/test/NNP-t1.X0
-rw-r--r--tests/test/NNP-t2.X0
-rw-r--r--tests/test/NP-1b.X0
-rw-r--r--tests/test/NP-1c.X0
-rw-r--r--tests/test/NP-1d.X0
-rw-r--r--tests/test/NP-1e.X0
-rw-r--r--tests/test/NP-1f.X0
-rw-r--r--tests/test/NP-1g.X0
-rw-r--r--tests/test/NP-1h.X0
-rw-r--r--tests/test/NP-1i.X0
-rw-r--r--tests/test/NP-1j.X0
-rw-r--r--tests/test/NP-1k.X0
-rw-r--r--tests/test/NP-and-1.X0
-rw-r--r--tests/test/NP-and-2.X0
-rw-r--r--tests/test/NP-and-3.X0
-rw-r--r--tests/test/NP-and-4.X0
-rw-r--r--tests/test/NP-eq-1.X0
-rw-r--r--tests/test/NP-eq-2.X0
-rw-r--r--tests/test/NP-eq-3.X0
-rw-r--r--tests/test/NP-eq-4.X0
-rw-r--r--tests/test/NP-eq-5.X0
-rw-r--r--tests/test/NP-eq-6.X0
-rw-r--r--tests/test/NP-gt-1.X0
-rw-r--r--tests/test/NP-gt-2.X0
-rw-r--r--tests/test/NP-gt-3.X0
-rw-r--r--tests/test/NP-gt-4.X0
-rw-r--r--tests/test/NP-gt-5.X0
-rw-r--r--tests/test/NP-lt-1.X0
-rw-r--r--tests/test/NP-lt-2.X0
-rw-r--r--tests/test/NP-lt-3.X0
-rw-r--r--tests/test/NP-lt-4.X0
-rw-r--r--tests/test/NP-lt-5.X0
-rw-r--r--tests/test/NP-or-1.X0
-rw-r--r--tests/test/NP-or-2.X0
-rw-r--r--tests/test/NP-or-3.X0
-rw-r--r--tests/test/NP-or-4.X0
-rw-r--r--tests/test/NP-streq-1.X0
-rw-r--r--tests/test/NP-streq-2.X0
-rw-r--r--tests/test/NP-streq-3.X0
-rw-r--r--tests/test/NP-streq-4.X0
-rw-r--r--tests/test/NP-streq-5.X0
-rw-r--r--tests/test/NP-strne-1.X0
-rw-r--r--tests/test/NP-strne-2.X0
-rw-r--r--tests/test/NP-strne-3.X0
-rw-r--r--tests/test/NP-strne-4.X0
-rw-r--r--tests/test/NP-strne-5.X0
-rw-r--r--tests/test/NP-t1.X0
-rw-r--r--tests/test/NP-t2.X0
-rw-r--r--tests/test/P-1b.X0
-rw-r--r--tests/test/P-1c.X0
-rw-r--r--tests/test/P-1d.X0
-rw-r--r--tests/test/P-1e.X0
-rw-r--r--tests/test/P-1f.X0
-rw-r--r--tests/test/P-1g.X0
-rw-r--r--tests/test/P-1h.X0
-rw-r--r--tests/test/P-1i.X0
-rw-r--r--tests/test/P-1j.X0
-rw-r--r--tests/test/P-1k.X0
-rw-r--r--tests/test/P-and-1.X0
-rw-r--r--tests/test/P-and-2.X0
-rw-r--r--tests/test/P-and-3.X0
-rw-r--r--tests/test/P-and-4.X0
-rw-r--r--tests/test/P-eq-1.X0
-rw-r--r--tests/test/P-eq-2.X0
-rw-r--r--tests/test/P-eq-3.X0
-rw-r--r--tests/test/P-eq-4.X0
-rw-r--r--tests/test/P-eq-5.X0
-rw-r--r--tests/test/P-eq-6.X0
-rw-r--r--tests/test/P-gt-1.X0
-rw-r--r--tests/test/P-gt-2.X0
-rw-r--r--tests/test/P-gt-3.X0
-rw-r--r--tests/test/P-gt-4.X0
-rw-r--r--tests/test/P-gt-5.X0
-rw-r--r--tests/test/P-lt-1.X0
-rw-r--r--tests/test/P-lt-2.X0
-rw-r--r--tests/test/P-lt-3.X0
-rw-r--r--tests/test/P-lt-4.X0
-rw-r--r--tests/test/P-lt-5.X0
-rw-r--r--tests/test/P-or-1.X0
-rw-r--r--tests/test/P-or-2.X0
-rw-r--r--tests/test/P-or-3.X0
-rw-r--r--tests/test/P-or-4.X0
-rw-r--r--tests/test/P-streq-1.X0
-rw-r--r--tests/test/P-streq-2.X0
-rw-r--r--tests/test/P-streq-3.X0
-rw-r--r--tests/test/P-streq-4.X0
-rw-r--r--tests/test/P-streq-5.X0
-rw-r--r--tests/test/P-strne-1.X0
-rw-r--r--tests/test/P-strne-2.X0
-rw-r--r--tests/test/P-strne-3.X0
-rw-r--r--tests/test/P-strne-4.X0
-rw-r--r--tests/test/P-strne-5.X0
-rw-r--r--tests/test/P-t1.X0
-rw-r--r--tests/test/P-t2.X0
-rw-r--r--tests/test/Test.pm150
-rw-r--r--tests/test/and-1.X0
-rw-r--r--tests/test/and-2.X0
-rw-r--r--tests/test/and-3.X0
-rw-r--r--tests/test/and-4.X0
-rw-r--r--tests/test/eq-1.X0
-rw-r--r--tests/test/eq-2.X0
-rw-r--r--tests/test/eq-3.X0
-rw-r--r--tests/test/eq-4.X0
-rw-r--r--tests/test/eq-5.X0
-rw-r--r--tests/test/eq-6.X0
-rw-r--r--tests/test/ge-1.X0
-rw-r--r--tests/test/ge-2.X0
-rw-r--r--tests/test/ge-3.X0
-rw-r--r--tests/test/ge-4.X0
-rw-r--r--tests/test/ge-5.X0
-rw-r--r--tests/test/gt-1.X0
-rw-r--r--tests/test/gt-2.X0
-rw-r--r--tests/test/gt-3.X0
-rw-r--r--tests/test/gt-4.X0
-rw-r--r--tests/test/gt-5.X0
-rw-r--r--tests/test/inv-1.X0
-rw-r--r--tests/test/le-1.X0
-rw-r--r--tests/test/le-2.X0
-rw-r--r--tests/test/le-3.X0
-rw-r--r--tests/test/le-4.X0
-rw-r--r--tests/test/le-5.X0
-rw-r--r--tests/test/lt-1.X0
-rw-r--r--tests/test/lt-2.X0
-rw-r--r--tests/test/lt-3.X0
-rw-r--r--tests/test/lt-4.X0
-rw-r--r--tests/test/lt-5.X0
-rw-r--r--tests/test/ne-1.X0
-rw-r--r--tests/test/ne-2.X0
-rw-r--r--tests/test/ne-3.X0
-rw-r--r--tests/test/ne-4.X0
-rw-r--r--tests/test/ne-5.X0
-rw-r--r--tests/test/ne-6.X0
-rw-r--r--tests/test/or-1.X0
-rw-r--r--tests/test/or-2.X0
-rw-r--r--tests/test/or-3.X0
-rw-r--r--tests/test/or-4.X0
-rw-r--r--tests/test/paren-1.X0
-rw-r--r--tests/test/paren-2.X0
-rw-r--r--tests/test/paren-3.X0
-rw-r--r--tests/test/paren-4.X0
-rw-r--r--tests/test/paren-5.X0
-rw-r--r--tests/test/streq-1.X0
-rw-r--r--tests/test/streq-2.X0
-rw-r--r--tests/test/streq-3.X0
-rw-r--r--tests/test/streq-4.X0
-rw-r--r--tests/test/streq-5.X0
-rw-r--r--tests/test/streq-6.X0
-rw-r--r--tests/test/strne-1.X0
-rw-r--r--tests/test/strne-2.X0
-rw-r--r--tests/test/strne-3.X0
-rw-r--r--tests/test/strne-4.X0
-rw-r--r--tests/test/strne-5.X0
-rw-r--r--tests/test/strne-6.X0
-rw-r--r--tests/test/t1.X0
-rw-r--r--tests/test/t2.X0
-rwxr-xr-xtests/test/test-tests4743
-rwxr-xr-xtests/touch/60-seconds.sh33
-rw-r--r--tests/touch/Makefile.am30
-rw-r--r--tests/touch/Makefile.in742
-rwxr-xr-xtests/touch/dangling-symlink56
-rwxr-xr-xtests/touch/dangling-symlink.sh49
-rwxr-xr-xtests/touch/dir-112
-rwxr-xr-xtests/touch/dir-1.sh9
-rwxr-xr-xtests/touch/empty-file93
-rwxr-xr-xtests/touch/empty-file.sh80
-rwxr-xr-xtests/touch/fail-diag59
-rwxr-xr-xtests/touch/fail-diag.sh32
-rwxr-xr-xtests/touch/fifo48
-rwxr-xr-xtests/touch/fifo.sh27
-rwxr-xr-xtests/touch/no-create-missing56
-rwxr-xr-xtests/touch/no-create-missing.sh37
-rwxr-xr-xtests/touch/no-dereference.sh82
-rwxr-xr-xtests/touch/no-rights57
-rwxr-xr-xtests/touch/no-rights.sh40
-rwxr-xr-xtests/touch/not-owner76
-rwxr-xr-xtests/touch/not-owner.sh55
-rwxr-xr-xtests/touch/now-owned-by-other.sh34
-rwxr-xr-xtests/touch/obsolescent60
-rwxr-xr-xtests/touch/obsolescent.sh41
-rwxr-xr-xtests/touch/read-only51
-rwxr-xr-xtests/touch/read-only.sh31
-rwxr-xr-xtests/touch/relative59
-rwxr-xr-xtests/touch/relative.sh38
-rwxr-xr-xtests/touch/trailing-slash.sh66
-rw-r--r--tests/tr/1.I1
-rw-r--r--tests/tr/1.X1
-rw-r--r--tests/tr/2.I1
-rw-r--r--tests/tr/2.X1
-rw-r--r--tests/tr/3.I1
-rw-r--r--tests/tr/3.X1
-rw-r--r--tests/tr/4.I1
-rw-r--r--tests/tr/4.X1
-rw-r--r--tests/tr/5.I1
-rw-r--r--tests/tr/5.X1
-rw-r--r--tests/tr/6.I1
-rw-r--r--tests/tr/6.X1
-rw-r--r--tests/tr/7.I1
-rw-r--r--tests/tr/7.X1
-rw-r--r--tests/tr/8.I1
-rw-r--r--tests/tr/8.X1
-rw-r--r--tests/tr/9.I1
-rw-r--r--tests/tr/9.X1
-rw-r--r--tests/tr/Makefile.am82
-rw-r--r--tests/tr/Makefile.in792
-rw-r--r--tests/tr/TODO1
-rwxr-xr-xtests/tr/Test.pm152
-rw-r--r--tests/tr/a.I1
-rw-r--r--tests/tr/a.X1
-rw-r--r--tests/tr/b.I1
-rw-r--r--tests/tr/b.X1
-rw-r--r--tests/tr/bs-055.I1
-rw-r--r--tests/tr/bs-055.X1
-rw-r--r--tests/tr/bs-at-end.I1
-rw-r--r--tests/tr/bs-at-end.X1
-rw-r--r--tests/tr/c.I1
-rw-r--r--tests/tr/c.X1
-rw-r--r--tests/tr/d.I1
-rw-r--r--tests/tr/d.X1
-rw-r--r--tests/tr/dncase.I1
-rw-r--r--tests/tr/dncase.X1
-rw-r--r--tests/tr/e.Ibin21 -> 0 bytes
-rw-r--r--tests/tr/e.Xbin11 -> 0 bytes
-rw-r--r--tests/tr/empty-cc.I0
-rw-r--r--tests/tr/empty-cc.X0
-rw-r--r--tests/tr/empty-eq.I0
-rw-r--r--tests/tr/empty-eq.X0
-rw-r--r--tests/tr/esc.I1
-rw-r--r--tests/tr/esc.X1
-rw-r--r--tests/tr/f.I1
-rw-r--r--tests/tr/f.X1
-rw-r--r--tests/tr/fowler-1.I1
-rw-r--r--tests/tr/fowler-1.X1
-rw-r--r--tests/tr/g.I1
-rw-r--r--tests/tr/g.X1
-rw-r--r--tests/tr/h.I1
-rw-r--r--tests/tr/h.X0
-rw-r--r--tests/tr/i.I1
-rw-r--r--tests/tr/i.X1
-rw-r--r--tests/tr/j.I1
-rw-r--r--tests/tr/j.X0
-rw-r--r--tests/tr/k.I1
-rw-r--r--tests/tr/k.X1
-rw-r--r--tests/tr/l.I1
-rw-r--r--tests/tr/l.X0
-rw-r--r--tests/tr/m.I1
-rw-r--r--tests/tr/m.X0
-rw-r--r--tests/tr/n.I1
-rw-r--r--tests/tr/n.X0
-rw-r--r--tests/tr/null.I0
-rw-r--r--tests/tr/null.X0
-rw-r--r--tests/tr/o-rep-1.I0
-rw-r--r--tests/tr/o-rep-1.X0
-rw-r--r--tests/tr/o-rep-2.I1
-rw-r--r--tests/tr/o-rep-2.X1
-rw-r--r--tests/tr/o.I1
-rw-r--r--tests/tr/o.X0
-rw-r--r--tests/tr/p.I1
-rw-r--r--tests/tr/p.X0
-rw-r--r--tests/tr/q.I1
-rw-r--r--tests/tr/q.X1
-rw-r--r--tests/tr/r.I1
-rw-r--r--tests/tr/r.X1
-rw-r--r--tests/tr/range-a-a.I1
-rw-r--r--tests/tr/range-a-a.X1
-rw-r--r--tests/tr/rep-1.I1
-rw-r--r--tests/tr/rep-1.X1
-rw-r--r--tests/tr/rep-2.I1
-rw-r--r--tests/tr/rep-2.X1
-rw-r--r--tests/tr/rep-3.I1
-rw-r--r--tests/tr/rep-3.X1
-rw-r--r--tests/tr/rep-cclass.I1
-rw-r--r--tests/tr/rep-cclass.X1
-rw-r--r--tests/tr/repeat-0.I1
-rw-r--r--tests/tr/repeat-0.X1
-rw-r--r--tests/tr/repeat-bs-9.I1
-rw-r--r--tests/tr/repeat-bs-9.X1
-rw-r--r--tests/tr/repeat-compl.I1
-rw-r--r--tests/tr/repeat-compl.X1
-rw-r--r--tests/tr/repeat-xC.I1
-rw-r--r--tests/tr/repeat-xC.X1
-rw-r--r--tests/tr/repeat-zeros.I1
-rw-r--r--tests/tr/repeat-zeros.X1
-rw-r--r--tests/tr/ross-0a.I0
-rw-r--r--tests/tr/ross-0a.X0
-rw-r--r--tests/tr/ross-0b.I0
-rw-r--r--tests/tr/ross-0b.X0
-rw-r--r--tests/tr/ross-1a.I1
-rw-r--r--tests/tr/ross-1a.X1
-rw-r--r--tests/tr/ross-1b.I0
-rw-r--r--tests/tr/ross-1b.X0
-rw-r--r--tests/tr/ross-2.I1
-rw-r--r--tests/tr/ross-2.X1
-rw-r--r--tests/tr/ross-3.I1
-rw-r--r--tests/tr/ross-3.X1
-rw-r--r--tests/tr/ross-4.I0
-rw-r--r--tests/tr/ross-4.X0
-rw-r--r--tests/tr/ross-5.I0
-rw-r--r--tests/tr/ross-5.X0
-rw-r--r--tests/tr/ross-6.I0
-rw-r--r--tests/tr/ross-6.X0
-rw-r--r--tests/tr/s.I1
-rw-r--r--tests/tr/s.X8
-rw-r--r--tests/tr/t.I1
-rw-r--r--tests/tr/t.X8
-rwxr-xr-xtests/tr/tr-tests2367
-rw-r--r--tests/tr/u.I1
-rw-r--r--tests/tr/u.X1
-rw-r--r--tests/tr/upcase.I1
-rw-r--r--tests/tr/upcase.X1
-rw-r--r--tests/tr/v.I1
-rw-r--r--tests/tr/v.X1
-rw-r--r--tests/tr/w.I1
-rw-r--r--tests/tr/w.X1
-rw-r--r--tests/tr/x.I1
-rw-r--r--tests/tr/x.X1
-rw-r--r--tests/tr/y.I1
-rw-r--r--tests/tr/y.X1
-rw-r--r--tests/tr/z.I1
-rw-r--r--tests/tr/z.X1
-rw-r--r--tests/tsort/Makefile.am13
-rw-r--r--tests/tsort/Makefile.in720
-rwxr-xr-xtests/tsort/basic-183
-rw-r--r--tests/umask-check37
-rw-r--r--tests/unexpand/Makefile.am13
-rw-r--r--tests/unexpand/Makefile.in720
-rwxr-xr-xtests/unexpand/basic-1102
-rw-r--r--tests/uniq/1.I0
-rw-r--r--tests/uniq/1.X0
-rw-r--r--tests/uniq/10.I2
-rw-r--r--tests/uniq/10.X2
-rw-r--r--tests/uniq/101.I2
-rw-r--r--tests/uniq/101.X2
-rw-r--r--tests/uniq/102.I2
-rw-r--r--tests/uniq/102.X1
-rw-r--r--tests/uniq/11.I3
-rw-r--r--tests/uniq/11.X3
-rw-r--r--tests/uniq/110.I2
-rw-r--r--tests/uniq/110.X2
-rw-r--r--tests/uniq/111.I2
-rw-r--r--tests/uniq/111.X2
-rw-r--r--tests/uniq/112.I2
-rw-r--r--tests/uniq/112.X0
-rw-r--r--tests/uniq/113.I2
-rw-r--r--tests/uniq/113.X2
-rw-r--r--tests/uniq/114.I5
-rw-r--r--tests/uniq/114.X5
-rw-r--r--tests/uniq/115.I5
-rw-r--r--tests/uniq/115.X5
-rw-r--r--tests/uniq/116.I2
-rw-r--r--tests/uniq/116.X3
-rw-r--r--tests/uniq/117.I5
-rw-r--r--tests/uniq/117.X6
-rw-r--r--tests/uniq/118.I2
-rw-r--r--tests/uniq/118.X0
-rw-r--r--tests/uniq/119.I1
-rw-r--r--tests/uniq/119.X0
-rw-r--r--tests/uniq/12.I2
-rw-r--r--tests/uniq/12.X0
-rw-r--r--tests/uniq/120.I3
-rw-r--r--tests/uniq/120.X0
-rw-r--r--tests/uniq/121.I3
-rw-r--r--tests/uniq/121.X0
-rw-r--r--tests/uniq/13.I2
-rw-r--r--tests/uniq/13.X0
-rw-r--r--tests/uniq/2.I2
-rw-r--r--tests/uniq/2.X1
-rw-r--r--tests/uniq/20.I2
-rw-r--r--tests/uniq/20.X1
-rw-r--r--tests/uniq/21.I2
-rw-r--r--tests/uniq/21.X0
-rw-r--r--tests/uniq/22.I3
-rw-r--r--tests/uniq/22.X0
-rw-r--r--tests/uniq/23.I3
-rw-r--r--tests/uniq/23.X1
-rw-r--r--tests/uniq/3.I2
-rw-r--r--tests/uniq/3.X1
-rw-r--r--tests/uniq/31.I2
-rw-r--r--tests/uniq/31.X1
-rw-r--r--tests/uniq/32.I2
-rw-r--r--tests/uniq/32.X2
-rw-r--r--tests/uniq/33.I2
-rw-r--r--tests/uniq/33.X2
-rw-r--r--tests/uniq/34.I2
-rw-r--r--tests/uniq/34.X1
-rw-r--r--tests/uniq/35.I2
-rw-r--r--tests/uniq/35.X1
-rw-r--r--tests/uniq/4.I2
-rw-r--r--tests/uniq/4.X2
-rw-r--r--tests/uniq/42.I2
-rw-r--r--tests/uniq/42.X1
-rw-r--r--tests/uniq/43.I2
-rw-r--r--tests/uniq/43.X1
-rw-r--r--tests/uniq/5.I3
-rw-r--r--tests/uniq/5.X2
-rw-r--r--tests/uniq/50.I2
-rw-r--r--tests/uniq/50.X2
-rw-r--r--tests/uniq/51.I2
-rw-r--r--tests/uniq/51.X1
-rw-r--r--tests/uniq/52.I2
-rw-r--r--tests/uniq/52.X2
-rw-r--r--tests/uniq/53.I2
-rw-r--r--tests/uniq/53.X1
-rw-r--r--tests/uniq/54.I2
-rw-r--r--tests/uniq/54.X1
-rw-r--r--tests/uniq/55.I2
-rw-r--r--tests/uniq/55.X2
-rw-r--r--tests/uniq/56.I1
-rw-r--r--tests/uniq/56.X1
-rw-r--r--tests/uniq/57.I2
-rw-r--r--tests/uniq/57.X1
-rw-r--r--tests/uniq/6.I3
-rw-r--r--tests/uniq/6.X2
-rw-r--r--tests/uniq/60.I2
-rw-r--r--tests/uniq/60.X2
-rw-r--r--tests/uniq/61.I2
-rw-r--r--tests/uniq/61.X2
-rw-r--r--tests/uniq/62.I2
-rw-r--r--tests/uniq/62.X1
-rw-r--r--tests/uniq/63.I2
-rw-r--r--tests/uniq/63.X1
-rw-r--r--tests/uniq/64.I2
-rw-r--r--tests/uniq/64.X2
-rw-r--r--tests/uniq/65.I2
-rw-r--r--tests/uniq/65.X1
-rw-r--r--tests/uniq/7.I3
-rw-r--r--tests/uniq/7.X3
-rw-r--r--tests/uniq/8.I2
-rw-r--r--tests/uniq/8.X2
-rw-r--r--tests/uniq/9.I2
-rw-r--r--tests/uniq/9.X0
-rw-r--r--tests/uniq/90.Ibin6 -> 0 bytes
-rw-r--r--tests/uniq/90.Xbin6 -> 0 bytes
-rw-r--r--tests/uniq/91.I2
-rw-r--r--tests/uniq/91.X2
-rw-r--r--tests/uniq/92.I2
-rw-r--r--tests/uniq/92.X2
-rw-r--r--tests/uniq/93.I2
-rw-r--r--tests/uniq/93.X1
-rw-r--r--tests/uniq/94.I2
-rw-r--r--tests/uniq/94.X1
-rw-r--r--tests/uniq/Makefile.am76
-rw-r--r--tests/uniq/Makefile.in786
-rw-r--r--tests/uniq/Test.pm130
-rw-r--r--tests/uniq/obs-plus40.I2
-rw-r--r--tests/uniq/obs-plus40.X1
-rw-r--r--tests/uniq/obs-plus41.I2
-rw-r--r--tests/uniq/obs-plus41.X1
-rw-r--r--tests/uniq/obs-plus44.I2
-rw-r--r--tests/uniq/obs-plus44.X1
-rw-r--r--tests/uniq/obs-plus45.I2
-rw-r--r--tests/uniq/obs-plus45.X1
-rw-r--r--tests/uniq/obs30.I2
-rw-r--r--tests/uniq/obs30.X1
-rwxr-xr-xtests/uniq/uniq-tests2223
-rw-r--r--tests/very-expensive11
-rw-r--r--tests/wc/Makefile.am62
-rw-r--r--tests/wc/Makefile.in772
-rwxr-xr-xtests/wc/Test.pm70
-rw-r--r--tests/wc/a0.I0
-rw-r--r--tests/wc/a0.X1
-rw-r--r--tests/wc/a1.I0
-rw-r--r--tests/wc/a1.X1
-rw-r--r--tests/wc/a2.I0
-rw-r--r--tests/wc/a2.X1
-rw-r--r--tests/wc/a3.I1
-rw-r--r--tests/wc/a3.X1
-rw-r--r--tests/wc/a4.I1
-rw-r--r--tests/wc/a4.X1
-rw-r--r--tests/wc/a5.I1
-rw-r--r--tests/wc/a5.X1
-rw-r--r--tests/wc/a6.I2
-rw-r--r--tests/wc/a6.X1
-rw-r--r--tests/wc/a7.I1
-rw-r--r--tests/wc/a7.X1
-rw-r--r--tests/wc/a8.I1
-rw-r--r--tests/wc/a8.X1
-rw-r--r--tests/wc/a9.I2
-rw-r--r--tests/wc/a9.X1
-rw-r--r--tests/wc/b0.I0
-rw-r--r--tests/wc/b0.X1
-rw-r--r--tests/wc/b1.I2
-rw-r--r--tests/wc/b1.X1
-rw-r--r--tests/wc/c0.I2
-rw-r--r--tests/wc/c0.X1
-rw-r--r--tests/wc/c1.I3
-rw-r--r--tests/wc/c1.X1
-rw-r--r--tests/wc/c2.I2
-rw-r--r--tests/wc/c2.X1
-rwxr-xr-xtests/wc/wc-tests531
2351 files changed, 45956 insertions, 98446 deletions
diff --git a/tests/Coreutils.pm b/tests/Coreutils.pm
index dd90a30..66da966 100644
--- a/tests/Coreutils.pm
+++ b/tests/Coreutils.pm
@@ -1,12 +1,11 @@
package Coreutils;
# This is a testing framework.
-# Copyright (C) 1998, 2000, 2001, 2002, 2004, 2005, 2006 Free Software
-# Foundation, Inc.
+# Copyright (C) 1998-2016 Free Software Foundation, Inc.
-# This program is free software; you can redistribute it and/or modify
+# This program is free software: you can redistribute it and/or modify
# it under the terms of the GNU General Public License as published by
-# the Free Software Foundation; either version 2 of the License, or
+# the Free Software Foundation, either version 3 of the License, or
# (at your option) any later version.
# This program is distributed in the hope that it will be useful,
@@ -15,11 +14,8 @@ package Coreutils;
# GNU General Public License for more details.
# You should have received a copy of the GNU General Public License
-# along with this program; if not, write to the Free Software
-# Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA
-# 02110-1301, USA.
+# along with this program. If not, see <http://www.gnu.org/licenses/>.
-require 5.003;
use strict;
use vars qw($VERSION @ISA @EXPORT);
@@ -28,16 +24,16 @@ use File::Compare qw(compare);
@ISA = qw(Exporter);
($VERSION = '$Revision: 1.5 $ ') =~ tr/[0-9].//cd;
-@EXPORT = qw (run_tests);
+@EXPORT = qw (run_tests triple_test getlimits);
my $debug = $ENV{DEBUG};
my @Types = qw (IN IN_PIPE OUT ERR AUX CMP EXIT PRE POST OUT_SUBST
- ERR_SUBST ENV ENV_DEL);
+ ERR_SUBST ENV ENV_DEL);
my %Types = map {$_ => 1} @Types;
my %Zero_one_type = map {$_ => 1}
qw (OUT ERR EXIT PRE POST OUT_SUBST ERR_SUBST ENV);
-my $srcdir = $ENV{srcdir};
+my $srcdir = "$ENV{srcdir}";
my $Global_count = 1;
# When running in a DJGPP environment, make $ENV{SHELL} point to bash.
@@ -50,9 +46,9 @@ defined $ENV{DJDIR}
# ================
# 'contents' contents only (file name is derived from test name)
# {filename => 'contents'} filename and contents
-# {filename => undef} filename only -- $(srcdir)/filename must exist
+# {filename => undef} filename only -- $(srcdir)/tests/filename must exist
#
-# FIXME: If there is more than one input file, then you can't specify `REDIR'.
+# FIXME: If there is more than one input file, then you can't specify 'REDIR'.
# PIPE is still ok.
#
# I/O spec: a hash ref with the following properties
@@ -64,14 +60,14 @@ defined $ENV{DJDIR}
# {OUT => {'filename'=>undef}} compare contents of existing filename to
# stdout from cmd
# {OUT => {'filename'=>[$CTOR, $DTOR]}} $CTOR and $DTOR are references to
-# functions, each which is passed the single argument `filename'.
-# $CTOR must create `filename'.
-# DTOR may be omitted in which case `sub{unlink @_[0]}' is used.
+# functions, each which is passed the single argument 'filename'.
+# $CTOR must create 'filename'.
+# DTOR may be omitted in which case 'sub{unlink @_[0]}' is used.
# FIXME: implement this
# {ERR => ...}
# Same as for OUT, but compare with stderr, not stdout.
# {OUT_SUBST => 's/variable_output/expected_output/'}
-# Transform actual standard output before comparing it against expected output.
+# Transform actual standard output before comparing it against expected.
# This is useful e.g. for programs like du that produce output that
# varies a lot from system. E.g., an empty file may consume zero file
# blocks, or more, depending on the OS and on the file system type.
@@ -82,7 +78,7 @@ defined $ENV{DJDIR}
# diagnostics: Operation not permitted, Not owner, and Permission denied.
# {EXIT => N} expect exit status of cmd to be N
# {ENV => 'VAR=val ...'}
-# Prepend 'VAR=val ...' to the command that we execute via `system'.
+# Prepend 'VAR=val ...' to the command that we execute via 'system'.
# {ENV_DEL => 'VAR'}
# Remove VAR from the environment just before running the corresponding
# command, and restore any value just afterwards.
@@ -95,7 +91,7 @@ defined $ENV{DJDIR}
# If the EXIT-keyed one is omitted, then expect the exit status to be zero.
# FIXME: Make sure that no junkfile is also listed as a
-# non-junkfile (i.e. with undef for contents)
+# non-junkfile (i.e., with undef for contents)
sub _shell_quote ($)
{
@@ -118,7 +114,7 @@ sub _create_file ($$$$)
++$Global_count;
}
- warn "creating file `$file' with contents `$data'\n" if $debug;
+ warn "creating file '$file' with contents '$data'\n" if $debug;
# The test spec gave a string.
# Write it to a temp file and return tempfile name.
@@ -134,14 +130,14 @@ sub _compare_files ($$$$$)
{
my ($program_name, $test_name, $in_or_out, $actual, $expected) = @_;
- my $differ = compare ($expected, $actual);
+ my $differ = compare ($actual, $expected);
if ($differ)
{
my $info = (defined $in_or_out ? "std$in_or_out " : '');
warn "$program_name: test $test_name: ${info}mismatch, comparing "
- . "$actual (actual) and $expected (expected)\n";
+ . "$expected (expected) and $actual (actual)\n";
# Ignore any failure, discard stderr.
- system "diff -c $actual $expected 2>/dev/null";
+ system "diff -c $expected $actual 2>/dev/null";
}
return $differ;
@@ -160,14 +156,14 @@ sub _process_file_spec ($$$$$)
{
my $n = keys %$file_spec;
die "$program_name: $test_name: $type spec has $n elements --"
- . " expected 1\n"
- if $n != 1;
+ . " expected 1\n"
+ if $n != 1;
($file_name, $contents) = each %$file_spec;
# This happens for the AUX hash in an io_spec like this:
# {CMP=> ['zy123utsrqponmlkji', {'@AUX@'=> undef}]},
defined $contents
- or return $file_name;
+ or return $file_name;
}
else
{
@@ -175,10 +171,10 @@ sub _process_file_spec ($$$$$)
}
my $is_junk_file = (! defined $file_name
- || (($type eq 'IN' || $type eq 'AUX' || $type eq 'CMP')
- && defined $contents));
+ || (($type eq 'IN' || $type eq 'AUX' || $type eq 'CMP')
+ && defined $contents));
my $file = _create_file ($program_name, $test_name,
- $file_name, $contents);
+ $file_name, $contents);
if ($is_junk_file)
{
@@ -187,9 +183,9 @@ sub _process_file_spec ($$$$$)
else
{
# FIXME: put $srcdir in here somewhere
- warn "$program_name: $test_name: specified file `$file' does"
- . " not exist\n"
- if ! -f "$srcdir/$file";
+ warn "$program_name: $test_name: specified file '$file' does"
+ . " not exist\n"
+ if ! -f "$srcdir/tests/$file";
}
return $file;
@@ -202,21 +198,35 @@ sub _at_replace ($$)
{
my $f = $map->{$eo};
$f
- and $s =~ /\@$eo\@/
- and $s =~ s/\@$eo\@/$f/g;
+ and $s =~ /\@$eo\@/
+ and $s =~ s/\@$eo\@/$f/g;
}
return $s;
}
+sub getlimits()
+{
+ my $NV;
+ open $NV, "getlimits |" or die "Error running getlimits\n";
+ my %limits = map {split /=|\n/} <$NV>;
+ return \%limits;
+}
+
# FIXME: cleanup on interrupt
-# FIXME: extract `do_1_test' function
+# FIXME: extract 'do_1_test' function
# FIXME: having to include $program_name here is an expedient kludge.
-# Library code doesn't `die'.
+# Library code doesn't 'die'.
sub run_tests ($$$$$)
{
my ($program_name, $prog, $t_spec, $save_temps, $verbose) = @_;
+ # To indicate that $prog is a shell built-in, you'd make it a string 'ref'.
+ # E.g., call run_tests ($prog, \$prog, \@Tests, $save_temps, $verbose);
+ # If it's a ref, invoke it via "env":
+ my $built_prog = ref $prog ? $$prog : $prog;
+ my @prog = ref $prog ? (qw(env --), $$prog) : $prog;
+
# Warn about empty t_spec.
# FIXME
@@ -232,43 +242,49 @@ sub run_tests ($$$$$)
{
my $test_name = $t->[0];
if ($seen{$test_name})
- {
- warn "$program_name: $test_name: duplicate test name\n";
- $bad_test_name = 1;
- }
+ {
+ warn "$program_name: $test_name: duplicate test name\n";
+ $bad_test_name = 1;
+ }
$seen{$test_name} = 1;
if (0)
- {
- my $t8 = lc substr $test_name, 0, 8;
- if ($seen_8dot3{$t8})
- {
- warn "$program_name: 8.3 test name conflict: "
- . "$test_name, $seen_8dot3{$t8}\n";
- $bad_test_name = 1;
- }
- $seen_8dot3{$t8} = $test_name;
- }
-
- # The test name may be no longer than 12 bytes,
- # so that we can add a two-byte suffix without exceeding
- # the maximum of 14 imposed on some old file systems.
- if (14 < (length $test_name) + 2)
- {
- warn "$program_name: $test_name: test name is too long (> 12)\n";
- $bad_test_name = 1;
- }
+ {
+ my $t8 = lc substr $test_name, 0, 8;
+ if ($seen_8dot3{$t8})
+ {
+ warn "$program_name: 8.3 test name conflict: "
+ . "$test_name, $seen_8dot3{$t8}\n";
+ $bad_test_name = 1;
+ }
+ $seen_8dot3{$t8} = $test_name;
+ }
+
+ # The test name may be no longer than 30 bytes.
+ # Yes, this is an arbitrary limit. If it causes trouble,
+ # consider removing it.
+ my $max = 30;
+ if ($max < length $test_name)
+ {
+ warn "$program_name: $test_name: test name is too long (> $max)\n";
+ $bad_test_name = 1;
+ }
}
return 1 if $bad_test_name;
+ $ENV{built_programs} =~ /\b$built_prog\b/ ||
+ CuSkip::skip "required program(s) not built [$built_prog]\n";
+
# FIXME check exit status
- system ($prog, '--version') if $verbose;
+ system (@prog, '--version') if $verbose;
my @junk_files;
my $fail = 0;
- foreach $t (@$t_spec)
+ foreach my $tt (@$t_spec)
{
my @post_compare;
+ my @dummy = @$tt;
+ my $t = \@dummy;
my $test_name = shift @$t;
my $expect = {};
my ($pre, $post);
@@ -282,145 +298,150 @@ sub run_tests ($$$$$)
my $env_prefix = '';
my $input_pipe_cmd;
foreach $io_spec (@$t)
- {
- if (!ref $io_spec)
- {
- push @args, $io_spec;
- next;
- }
-
- die "$program_name: $test_name: invalid test spec\n"
- if ref $io_spec ne 'HASH';
-
- my $n = keys %$io_spec;
- die "$program_name: $test_name: spec has $n elements --"
- . " expected 1\n"
- if $n != 1;
- my ($type, $val) = each %$io_spec;
- die "$program_name: $test_name: invalid key `$type' in test spec\n"
- if ! $Types{$type};
-
- # Make sure there's no more than one of OUT, ERR, EXIT, etc.
- die "$program_name: $test_name: more than one $type spec\n"
- if $Zero_one_type{$type} and $seen_type{$type}++;
-
- if ($type eq 'PRE' or $type eq 'POST')
- {
- $expect->{$type} = $val;
- next;
- }
-
- if ($type eq 'CMP')
- {
- my $t = ref $val;
- $t && $t eq 'ARRAY'
- or die "$program_name: $test_name: invalid CMP spec\n";
- @$val == 2
- or die "$program_name: $test_name: invalid CMP list; must have"
- . " exactly 2 elements\n";
- my @cmp_files;
- foreach my $e (@$val)
- {
- my $r = ref $e;
- $r && $r ne 'HASH'
- and die "$program_name: $test_name: invalid element ($r)"
- . " in CMP list; only scalars and hash references "
- . "are allowed\n";
- if ($r && $r eq 'HASH')
- {
- my $n = keys %$e;
- $n == 1
- or die "$program_name: $test_name: CMP spec has $n "
- . "elements -- expected 1\n";
-
- # Replace any `@AUX@' in the key of %$e.
- my ($ff, $val) = each %$e;
- my $new_ff = _at_replace $expect, $ff;
- if ($new_ff ne $ff)
- {
- $e->{$new_ff} = $val;
- delete $e->{$ff};
- }
- }
- my $cmp_file = _process_file_spec ($program_name, $test_name,
- $e, $type, \@junk_files);
- push @cmp_files, $cmp_file;
- }
- push @post_compare, [@cmp_files];
-
- $expect->{$type} = $val;
- next;
- }
-
- if ($type eq 'EXIT')
- {
- die "$program_name: $test_name: invalid EXIT code\n"
- if $val !~ /^\d+$/;
- # FIXME: make sure $data is numeric
- $expect->{EXIT} = $val;
- next;
- }
-
- if ($type =~ /^(OUT|ERR)_SUBST$/)
- {
- $expect->{RESULT_SUBST} ||= {};
- $expect->{RESULT_SUBST}->{$1} = $val;
- next;
- }
-
- if ($type eq 'ENV')
- {
- $env_prefix = "$val ";
- next;
- }
-
- if ($type eq 'ENV_DEL')
- {
- push @env_delete, $val;
- next;
- }
-
- my $file = _process_file_spec ($program_name, $test_name, $val,
- $type, \@junk_files);
-
- if ($type eq 'IN' || $type eq 'IN_PIPE')
- {
- my $quoted_file = _shell_quote $file;
- if ($type eq 'IN_PIPE')
- {
- defined $input_pipe_cmd
- and die "$program_name: $test_name: only one input"
- . " may be specified with IN_PIPE\n";
- $input_pipe_cmd = "cat $quoted_file |";
- }
- else
- {
- push @args, $quoted_file;
- }
- }
- elsif ($type eq 'AUX' || $type eq 'OUT' || $type eq 'ERR')
- {
- $expect->{$type} = $file;
- }
- else
- {
- die "$program_name: $test_name: invalid type: $type\n"
- }
- }
+ {
+ if (!ref $io_spec)
+ {
+ push @args, $io_spec;
+ next;
+ }
+
+ if (ref $io_spec ne 'HASH')
+ {
+ eval 'use Data::Dumper';
+ die "$program_name: $test_name: invalid entry in test spec; "
+ . "expected HASH-ref,\nbut got this:\n"
+ . Data::Dumper->Dump ([\$io_spec], ['$io_spec']) . "\n";
+ }
+
+ my $n = keys %$io_spec;
+ die "$program_name: $test_name: spec has $n elements --"
+ . " expected 1\n"
+ if $n != 1;
+ my ($type, $val) = each %$io_spec;
+ die "$program_name: $test_name: invalid key '$type' in test spec\n"
+ if ! $Types{$type};
+
+ # Make sure there's no more than one of OUT, ERR, EXIT, etc.
+ die "$program_name: $test_name: more than one $type spec\n"
+ if $Zero_one_type{$type} and $seen_type{$type}++;
+
+ if ($type eq 'PRE' or $type eq 'POST')
+ {
+ $expect->{$type} = $val;
+ next;
+ }
+
+ if ($type eq 'CMP')
+ {
+ my $t = ref $val;
+ $t && $t eq 'ARRAY'
+ or die "$program_name: $test_name: invalid CMP spec\n";
+ @$val == 2
+ or die "$program_name: $test_name: invalid CMP list; must have"
+ . " exactly 2 elements\n";
+ my @cmp_files;
+ foreach my $e (@$val)
+ {
+ my $r = ref $e;
+ $r && $r ne 'HASH'
+ and die "$program_name: $test_name: invalid element ($r)"
+ . " in CMP list; only scalars and hash references "
+ . "are allowed\n";
+ if ($r && $r eq 'HASH')
+ {
+ my $n = keys %$e;
+ $n == 1
+ or die "$program_name: $test_name: CMP spec has $n "
+ . "elements -- expected 1\n";
+
+ # Replace any '@AUX@' in the key of %$e.
+ my ($ff, $val) = each %$e;
+ my $new_ff = _at_replace $expect, $ff;
+ if ($new_ff ne $ff)
+ {
+ $e->{$new_ff} = $val;
+ delete $e->{$ff};
+ }
+ }
+ my $cmp_file = _process_file_spec ($program_name, $test_name,
+ $e, $type, \@junk_files);
+ push @cmp_files, $cmp_file;
+ }
+ push @post_compare, [@cmp_files];
+
+ $expect->{$type} = $val;
+ next;
+ }
+
+ if ($type eq 'EXIT')
+ {
+ die "$program_name: $test_name: invalid EXIT code\n"
+ if $val !~ /^\d+$/;
+ # FIXME: make sure $data is numeric
+ $expect->{EXIT} = $val;
+ next;
+ }
+
+ if ($type =~ /^(OUT|ERR)_SUBST$/)
+ {
+ $expect->{RESULT_SUBST} ||= {};
+ $expect->{RESULT_SUBST}->{$1} = $val;
+ next;
+ }
+
+ if ($type eq 'ENV')
+ {
+ $env_prefix = "$val ";
+ next;
+ }
+
+ if ($type eq 'ENV_DEL')
+ {
+ push @env_delete, $val;
+ next;
+ }
+
+ my $file = _process_file_spec ($program_name, $test_name, $val,
+ $type, \@junk_files);
+
+ if ($type eq 'IN' || $type eq 'IN_PIPE')
+ {
+ my $quoted_file = _shell_quote $file;
+ if ($type eq 'IN_PIPE')
+ {
+ defined $input_pipe_cmd
+ and die "$program_name: $test_name: only one input"
+ . " may be specified with IN_PIPE\n";
+ $input_pipe_cmd = "cat $quoted_file |";
+ }
+ else
+ {
+ push @args, $quoted_file;
+ }
+ }
+ elsif ($type eq 'AUX' || $type eq 'OUT' || $type eq 'ERR')
+ {
+ $expect->{$type} = $file;
+ }
+ else
+ {
+ die "$program_name: $test_name: invalid type: $type\n"
+ }
+ }
# Expect an exit status of zero if it's not specified.
$expect->{EXIT} ||= 0;
# Allow ERR to be omitted -- in that case, expect no error output.
foreach my $eo (qw (OUT ERR))
- {
- if (!exists $expect->{$eo})
- {
- $expect->{$eo} = _create_file ($program_name, $test_name,
- undef, '');
- push @junk_files, $expect->{$eo};
- }
- }
+ {
+ if (!exists $expect->{$eo})
+ {
+ $expect->{$eo} = _create_file ($program_name, $test_name,
+ undef, '');
+ push @junk_files, $expect->{$eo};
+ }
+ }
# FIXME: Does it ever make sense to specify a filename *and* contents
# in OUT or ERR spec?
@@ -428,10 +449,10 @@ sub run_tests ($$$$$)
# FIXME: this is really suboptimal...
my @new_args;
foreach my $a (@args)
- {
- $a = _at_replace $expect, $a;
- push @new_args, $a;
- }
+ {
+ $a = _at_replace $expect, $a;
+ push @new_args, $a;
+ }
@args = @new_args;
warn "$test_name...\n" if $verbose;
@@ -440,94 +461,115 @@ sub run_tests ($$$$$)
$actual{OUT} = "$test_name.O";
$actual{ERR} = "$test_name.E";
push @junk_files, $actual{OUT}, $actual{ERR};
- my @cmd = ($prog, @args, "> $actual{OUT}", "2> $actual{ERR}");
+ my @cmd = (@prog, @args, "> $actual{OUT}", "2> $actual{ERR}");
+ $env_prefix
+ and unshift @cmd, $env_prefix;
defined $input_pipe_cmd
- and unshift @cmd, $input_pipe_cmd;
- my $cmd_str = $env_prefix . join (' ', @cmd);
+ and unshift @cmd, $input_pipe_cmd;
+ my $cmd_str = join (' ', @cmd);
# Delete from the environment any symbols specified by syntax
# like this: {ENV_DEL => 'TZ'}.
my %pushed_env;
foreach my $env_sym (@env_delete)
- {
- my $val = delete $ENV{$env_sym};
- defined $val
- and $pushed_env{$env_sym} = $val;
- }
+ {
+ my $val = delete $ENV{$env_sym};
+ defined $val
+ and $pushed_env{$env_sym} = $val;
+ }
- warn "Running command: `$cmd_str'\n" if $debug;
+ warn "Running command: '$cmd_str'\n" if $debug;
my $rc = 0xffff & system $cmd_str;
# Restore any environment setting we changed via a deletion.
foreach my $env_sym (keys %pushed_env)
- {
- $ENV{$env_sym} = $pushed_env{$env_sym};
- }
+ {
+ $ENV{$env_sym} = $pushed_env{$env_sym};
+ }
if ($rc == 0xff00)
- {
- warn "$program_name: test $test_name failed: command failed:\n"
- . " `$cmd_str': $!\n";
- $fail = 1;
- goto cleanup;
- }
+ {
+ warn "$program_name: test $test_name failed: command failed:\n"
+ . " '$cmd_str': $!\n";
+ $fail = 1;
+ goto cleanup;
+ }
$rc >>= 8 if $rc > 0x80;
if ($expect->{EXIT} != $rc)
- {
- warn "$program_name: test $test_name failed: exit status mismatch:"
- . " expected $expect->{EXIT}, got $rc\n";
- $fail = 1;
- goto cleanup;
- }
+ {
+ warn "$program_name: test $test_name failed: exit status mismatch:"
+ . " expected $expect->{EXIT}, got $rc\n";
+ $fail = 1;
+ goto cleanup;
+ }
+
+ my %actual_data;
+ # Record actual stdout and stderr contents, if POST may need them.
+ if ($expect->{POST})
+ {
+ foreach my $eo (qw (OUT ERR))
+ {
+ my $out_file = $actual{$eo};
+ open IN, $out_file
+ or (warn
+ "$program_name: cannot open $out_file for reading: $!\n"),
+ $fail = 1, next;
+ $actual_data{$eo} = <IN>;
+ close IN
+ or (warn "$program_name: failed to read $out_file: $!\n"),
+ $fail = 1;
+ }
+ }
foreach my $eo (qw (OUT ERR))
- {
- my $subst_expr = $expect->{RESULT_SUBST}->{$eo};
- if (defined $subst_expr)
- {
- my $out = $actual{$eo};
- my $orig = "$out.orig";
-
- # Move $out aside (to $orig), then recreate $out
- # by transforming each line of $orig via $subst_expr.
- rename $out, $orig
- or (warn "$program_name: cannot rename $out to $orig: $!\n"),
- $fail = 1, next;
- open IN, $orig
- or (warn "$program_name: cannot open $orig for reading: $!\n"),
- $fail = 1, (unlink $orig), next;
- unlink $orig
- or (warn "$program_name: cannot unlink $orig: $!\n"),
- $fail = 1;
- open OUT, ">$out"
- or (warn "$program_name: cannot open $out for writing: $!\n"),
- $fail = 1, next;
- while (defined (my $line = <IN>))
- {
- eval "\$_ = \$line; $subst_expr; \$line = \$_";
- print OUT $line;
- }
- close IN;
- close OUT
- or (warn "$program_name: failed to write $out: $!\n"),
- $fail = 1, next;
- }
-
- my $eo_lower = lc $eo;
- _compare_files ($program_name, $test_name, $eo_lower,
- $actual{$eo}, $expect->{$eo})
- and $fail = 1;
- }
+ {
+ my $subst_expr = $expect->{RESULT_SUBST}->{$eo};
+ if (defined $subst_expr)
+ {
+ my $out = $actual{$eo};
+ my $orig = "$out.orig";
+
+ # Move $out aside (to $orig), then recreate $out
+ # by transforming each line of $orig via $subst_expr.
+ rename $out, $orig
+ or (warn "$program_name: cannot rename $out to $orig: $!\n"),
+ $fail = 1, next;
+ open IN, $orig
+ or (warn "$program_name: cannot open $orig for reading: $!\n"),
+ $fail = 1, (unlink $orig), next;
+ unlink $orig
+ or (warn "$program_name: cannot unlink $orig: $!\n"),
+ $fail = 1;
+ open OUT, ">$out"
+ or (warn "$program_name: cannot open $out for writing: $!\n"),
+ $fail = 1, next;
+ while (defined (my $line = <IN>))
+ {
+ eval "\$_ = \$line; $subst_expr; \$line = \$_";
+ print OUT $line;
+ }
+ close IN;
+ close OUT
+ or (warn "$program_name: failed to write $out: $!\n"),
+ $fail = 1, next;
+ }
+
+ my $eo_lower = lc $eo;
+ _compare_files ($program_name, $test_name, $eo_lower,
+ $actual{$eo}, $expect->{$eo})
+ and $fail = 1;
+ }
foreach my $pair (@post_compare)
- {
- my ($expected, $actual) = @$pair;
- _compare_files $program_name, $test_name, undef, $actual, $expected
- and $fail = 1;
- }
+ {
+ my ($expected, $actual) = @$pair;
+ _compare_files $program_name, $test_name, undef, $actual, $expected
+ and $fail = 1;
+ }
cleanup:
- &{$expect->{POST}} if $expect->{POST};
+ $expect->{POST}
+ and &{$expect->{POST}} ($actual_data{OUT}, $actual_data{ERR});
}
@@ -537,5 +579,46 @@ sub run_tests ($$$$$)
return $fail;
}
+# For each test in @$TESTS, generate two additional tests,
+# one using stdin, the other using a pipe. I.e., given this one
+# ['idem-0', {IN=>''}, {OUT=>''}],
+# generate these:
+# ['idem-0.r', '<', {IN=>''}, {OUT=>''}],
+# ['idem-0.p', {IN_PIPE=>''}, {OUT=>''}],
+# Generate new tests only if there is exactly one input spec.
+# The returned list of tests contains each input test, followed
+# by zero or two derived tests.
+sub triple_test($)
+{
+ my ($tests) = @_;
+ my @new;
+ foreach my $t (@$tests)
+ {
+ push @new, $t;
+
+ my @in;
+ my @args;
+ my @list_of_hash;
+ foreach my $e (@$t)
+ {
+ !ref $e
+ and push (@args, $e), next;
+
+ ref $e && ref $e eq 'HASH'
+ or (warn "$0: $t->[0]: unexpected entry type\n"), next;
+ defined $e->{IN}
+ and (push @in, $e->{IN}), next;
+ push @list_of_hash, $e;
+ }
+ # Add variants IFF there is exactly one input file.
+ @in == 1
+ or next;
+ shift @args; # discard test name
+ push @new, ["$t->[0].r", @args, '<', {IN => $in[0]}, @list_of_hash];
+ push @new, ["$t->[0].p", @args, {IN_PIPE => $in[0]}, @list_of_hash];
+ }
+ return @new;
+}
+
## package return
1;
diff --git a/tests/CuSkip.pm b/tests/CuSkip.pm
new file mode 100644
index 0000000..2a39646
--- /dev/null
+++ b/tests/CuSkip.pm
@@ -0,0 +1,39 @@
+package CuSkip;
+# Skip a test: emit diag to log and to stderr, and exit 77
+
+# Copyright (C) 2011-2016 Free Software Foundation, Inc.
+
+# This program is free software: you can redistribute it and/or modify
+# it under the terms of the GNU General Public License as published by
+# the Free Software Foundation, either version 3 of the License, or
+# (at your option) any later version.
+
+# This program is distributed in the hope that it will be useful,
+# but WITHOUT ANY WARRANTY; without even the implied warranty of
+# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
+# GNU General Public License for more details.
+
+# You should have received a copy of the GNU General Public License
+# along with this program. If not, see <http://www.gnu.org/licenses/>.
+
+use strict;
+use warnings;
+
+our $ME = $0 || "<???>";
+
+# Emit a diagnostic both to stderr and to $stderr_fileno_.
+# FIXME: don't hard-code that value (9), since it's already defined in init.cfg.
+sub skip ($)
+{
+ my ($msg) = @_;
+ my $stderr_fileno_ = 9;
+ warn $msg;
+ open FH, ">&$stderr_fileno_"
+ or warn "$ME: failed to dup stderr\n";
+ print FH $msg;
+ close FH
+ or warn "$ME: failed to close FD $stderr_fileno_\n";
+ exit 77;
+}
+
+1;
diff --git a/tests/CuTmpdir.pm b/tests/CuTmpdir.pm
new file mode 100644
index 0000000..5c1c299
--- /dev/null
+++ b/tests/CuTmpdir.pm
@@ -0,0 +1,111 @@
+package CuTmpdir;
+# create, then chdir into a temporary sub-directory
+
+# Copyright (C) 2007-2016 Free Software Foundation, Inc.
+
+# This program is free software: you can redistribute it and/or modify
+# it under the terms of the GNU General Public License as published by
+# the Free Software Foundation, either version 3 of the License, or
+# (at your option) any later version.
+
+# This program is distributed in the hope that it will be useful,
+# but WITHOUT ANY WARRANTY; without even the implied warranty of
+# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
+# GNU General Public License for more details.
+
+# You should have received a copy of the GNU General Public License
+# along with this program. If not, see <http://www.gnu.org/licenses/>.
+
+use strict;
+use warnings;
+
+use File::Temp;
+use File::Find;
+
+our $ME = $0 || "<???>";
+
+my $dir;
+
+sub skip_test($)
+{
+ warn "$ME: skipping test: unsafe working directory name: '$_[0]'\n";
+ exit 77;
+}
+
+sub chmod_1
+{
+ my $name = $_;
+
+ # Skip symlinks and non-directories.
+ -l $name || !-d _
+ and return;
+
+ chmod 0700, $name;
+}
+
+sub chmod_tree
+{
+ # When tempdir fails, it croaks, which leaves $dir undefined.
+ defined $dir
+ or return;
+
+ # Perform the equivalent of find "$dir" -type d -print0|xargs -0 chmod -R 700.
+ my $options = {untaint => 1, wanted => \&chmod_1};
+ find ($options, $dir);
+}
+
+sub import {
+ my $prefix = $_[1];
+
+ $ME eq '-' && defined $prefix
+ and $ME = $prefix;
+
+ if ($prefix !~ /^\//)
+ {
+ eval 'use Cwd';
+ my $cwd = $@ ? '.' : Cwd::getcwd();
+ $prefix = "$cwd/$prefix";
+ }
+
+ # Untaint for the upcoming mkdir.
+ $prefix =~ m!^([-+\@\w./]+)$!
+ or skip_test $prefix;
+ $prefix = $1;
+
+ my $original_pid = $$;
+
+ my $on_sig_remove_tmpdir = sub {
+ my ($sig) = @_;
+ if ($$ == $original_pid and defined $dir)
+ {
+ chmod_tree;
+ # Older versions of File::Temp lack this method.
+ exists &File::Temp::cleanup
+ and &File::Temp::cleanup;
+ }
+ $SIG{$sig} = 'DEFAULT';
+ kill $sig, $$;
+ };
+
+ foreach my $sig (qw (INT TERM HUP))
+ {
+ $SIG{$sig} = $on_sig_remove_tmpdir;
+ }
+
+ $dir = File::Temp::tempdir("$prefix.tmp-XXXX", CLEANUP => 1 );
+ chdir $dir
+ or warn "$ME: failed to chdir to $dir: $!\n";
+}
+
+END {
+ # Move cwd out of the directory we're about to remove.
+ # This is required on some systems, and by some versions of File::Temp.
+ chdir '..'
+ or warn "$ME: failed to chdir to .. from $dir: $!\n";
+
+ my $saved_errno = $?;
+ chmod_tree;
+ $? = $saved_errno;
+}
+
+1;
diff --git a/tests/GNUmakefile b/tests/GNUmakefile
new file mode 100644
index 0000000..3c178a2
--- /dev/null
+++ b/tests/GNUmakefile
@@ -0,0 +1,20 @@
+# Provide a compatibility layer so that the commands used before the
+# conversion of tests/ to non-recursive make still work. To do that, we
+# must rerun the "make check" from the parent, and with tests/ prefixed
+# onto any TESTS values. The SUBDIRS=. is to prevent the top-level check
+# rules from descending into e.g., gnulib-test/.
+
+.PHONY: all
+all:
+ @echo 'tests/GNUmakefile: did you mean to make "check"?' 1>&2
+ @exit 1
+
+ifeq ($(TESTS),)
+tests =
+else
+tests = TESTS=$(addprefix tests/,$(TESTS))
+endif
+
+.PHONY: check
+check:
+ cd .. && $(MAKE) $@ $(tests) SUBDIRS=.
diff --git a/tests/Makefile.am b/tests/Makefile.am
deleted file mode 100644
index aaf0a29..0000000
--- a/tests/Makefile.am
+++ /dev/null
@@ -1,60 +0,0 @@
-## Process this file with automake to produce Makefile.in -*-Makefile-*-.
-
-# Sort in traditional ASCII order, regardless of the current locale;
-# otherwise we may get into trouble with distinct strings that the
-# current locale considers to be equal.
-ASSORT = LC_ALL=C sort
-
-all_programs = (cd ../src && MAKEFLAGS= $(MAKE) -s all_programs.list)
-
-TESTS = help-version
-TESTS_ENVIRONMENT = \
- all_programs="`$(all_programs)`" \
- PACKAGE_BUGREPORT=$(PACKAGE_BUGREPORT) \
- CU_TEST_NAME=`basename $(abs_srcdir)`,$$tst \
- PATH="$(VG_PATH_PREFIX)`pwd`/../src$(PATH_SEPARATOR)$$PATH"
-
-EXTRA_DIST = \
- $(TESTS) Coreutils.pm Makefile.am.in README acl envvar-check \
- expensive group-names input-tty lang-default mk-script \
- other-fs-tmpdir priv-check \
- rwx-to-mode sample-test setgid-check sparse-file \
- umask-check very-expensive
-
-## N O T E :: Please do not add new tests/ directories.
-## There are too many already. Put new tests in misc/.
-SUBDIRS = \
- chgrp chmod chown cp cut dd dircolors du expr factor fmt head \
- install join ln ls ls-2 md5sum misc mkdir mv od pr readlink rm rmdir \
- seq sha1sum shred sort stty sum tac tail tail-2 tee test touch tr \
- tsort unexpand uniq wc
-## N O T E :: Please do not add new directories.
-
-all_t = t1 t2 t3 t4 t5 t6 t7
-.PHONY: check-root $(all_t)
-check-root: $(all_t)
-
-t1:
- cd chown && $(MAKE) check TESTS=basic
-t2:
- cd cp && $(MAKE) check TESTS=special-bits
-t3:
- cd rm && $(MAKE) check TESTS=no-give-up
-t4:
- cd rm && $(MAKE) check TESTS=fail-2eperm
-t5:
- cd tail-2 && $(MAKE) check TESTS=append-only
-t6:
- cd rm && $(MAKE) check TESTS=one-file-system
-t7:
- cd ls && $(MAKE) check TESTS=nameless-uid
-
-check-recursive: root-hint
-
-# Advertise `check-root' target.
-.PHONY: root-hint
-root-hint:
- @echo '***********************************************************'
- @echo "NOTICE: Some tests may be run only as root."
- @echo " Do \`make check-root' as \`root' to run these tests."
- @echo '***********************************************************'
diff --git a/tests/Makefile.am.in b/tests/Makefile.am.in
deleted file mode 100644
index 084db44..0000000
--- a/tests/Makefile.am.in
+++ /dev/null
@@ -1,54 +0,0 @@
-# Make coreutils tests. -*-Makefile-*-
-
-# Copyright (C) 1997, 1998, 2000, 2003, 2004, 2006 Free Software
-# Foundation, Inc.
-
-# This program is free software; you can redistribute it and/or modify
-# it under the terms of the GNU General Public License as published by
-# the Free Software Foundation; either version 2 of the License, or
-# (at your option) any later version.
-
-# This program is distributed in the hope that it will be useful,
-# but WITHOUT ANY WARRANTY; without even the implied warranty of
-# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
-# GNU General Public License for more details.
-
-# You should have received a copy of the GNU General Public License
-# along with this program; if not, write to the Free Software
-# Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA
-# 02110-1301, USA.
-
-##test-files-begin
-##test-files-end
-
-EXTRA_DIST = Test.pm $x-tests $(explicit) $(maint_gen)
-noinst_SCRIPTS = $x-tests
-TESTS_ENVIRONMENT = \
- CU_TEST_NAME=`basename $(abs_srcdir)`,$$tst \
- PATH="$(VG_PATH_PREFIX)`pwd`/../../src$(PATH_SEPARATOR)$$PATH"
-
-editpl = sed -e 's,@''PERL''@,$(PERL),g' -e 's,@''srcdir''@,$(srcdir),g'
-
-TESTS = $x-tests
-
-mk_script = $(srcdir)/../mk-script
-$(srcdir)/$x-tests: $(mk_script) Test.pm Makefile.am
- test '$x' = test && prog=../../src/$x || prog=$x; \
- $(PERL) -I$(srcdir) -w -- $(mk_script) $(srcdir) $$prog > $@.n
- mv $@.n $@
- chmod 755 $@
-
-MAINTAINERCLEANFILES = $x-tests $(maint_gen)
-CLEANFILES = $(run_gen)
-
-check: $(maint_gen)
-
-$(srcdir)/Makefile.am: ../Makefile.am.in Test.pm $(mk_script)
- rm -f $@ $@t
- sed -n '1,/^##test-files-begin/p' $(srcdir)/../Makefile.am.in > $@t
- tool=`echo $(subdir)|sed 's/^tests.//;s/-test//'`; \
- echo "x = $$tool" >> $@t
- $(PERL) -I$(srcdir) -w -- $(mk_script) $(srcdir) --list >> $@t
- sed -n '/^##test-files-end/,$$p' $(srcdir)/../Makefile.am.in >> $@t
- chmod -w $@t
- mv $@t $@
diff --git a/tests/Makefile.in b/tests/Makefile.in
deleted file mode 100644
index 9628757..0000000
--- a/tests/Makefile.in
+++ /dev/null
@@ -1,922 +0,0 @@
-# Makefile.in generated by automake 1.10 from Makefile.am.
-# @configure_input@
-
-# Copyright (C) 1994, 1995, 1996, 1997, 1998, 1999, 2000, 2001, 2002,
-# 2003, 2004, 2005, 2006 Free Software Foundation, Inc.
-# This Makefile.in is free software; the Free Software Foundation
-# gives unlimited permission to copy and/or distribute it,
-# with or without modifications, as long as this notice is preserved.
-
-# This program is distributed in the hope that it will be useful,
-# but WITHOUT ANY WARRANTY, to the extent permitted by law; without
-# even the implied warranty of MERCHANTABILITY or FITNESS FOR A
-# PARTICULAR PURPOSE.
-
-@SET_MAKE@
-VPATH = @srcdir@
-pkgdatadir = $(datadir)/@PACKAGE@
-pkglibdir = $(libdir)/@PACKAGE@
-pkgincludedir = $(includedir)/@PACKAGE@
-am__cd = CDPATH="$${ZSH_VERSION+.}$(PATH_SEPARATOR)" && cd
-install_sh_DATA = $(install_sh) -c -m 644
-install_sh_PROGRAM = $(install_sh) -c
-install_sh_SCRIPT = $(install_sh) -c
-INSTALL_HEADER = $(INSTALL_DATA)
-transform = $(program_transform_name)
-NORMAL_INSTALL = :
-PRE_INSTALL = :
-POST_INSTALL = :
-NORMAL_UNINSTALL = :
-PRE_UNINSTALL = :
-POST_UNINSTALL = :
-build_triplet = @build@
-host_triplet = @host@
-subdir = tests
-DIST_COMMON = README $(srcdir)/Makefile.am $(srcdir)/Makefile.in
-ACLOCAL_M4 = $(top_srcdir)/aclocal.m4
-am__aclocal_m4_deps = $(top_srcdir)/m4/absolute-header.m4 \
- $(top_srcdir)/m4/acl.m4 $(top_srcdir)/m4/alloca.m4 \
- $(top_srcdir)/m4/allocsa.m4 $(top_srcdir)/m4/argmatch.m4 \
- $(top_srcdir)/m4/arpa_inet_h.m4 $(top_srcdir)/m4/assert.m4 \
- $(top_srcdir)/m4/atexit.m4 $(top_srcdir)/m4/autobuild.m4 \
- $(top_srcdir)/m4/backupfile.m4 $(top_srcdir)/m4/base64.m4 \
- $(top_srcdir)/m4/bison.m4 $(top_srcdir)/m4/boottime.m4 \
- $(top_srcdir)/m4/c-strtod.m4 $(top_srcdir)/m4/calloc.m4 \
- $(top_srcdir)/m4/canon-host.m4 \
- $(top_srcdir)/m4/canonicalize.m4 \
- $(top_srcdir)/m4/chdir-long.m4 $(top_srcdir)/m4/check-decl.m4 \
- $(top_srcdir)/m4/chown.m4 $(top_srcdir)/m4/clock_time.m4 \
- $(top_srcdir)/m4/cloexec.m4 $(top_srcdir)/m4/close-stream.m4 \
- $(top_srcdir)/m4/closeout.m4 $(top_srcdir)/m4/codeset.m4 \
- $(top_srcdir)/m4/config-h.m4 $(top_srcdir)/m4/cycle-check.m4 \
- $(top_srcdir)/m4/d-ino.m4 $(top_srcdir)/m4/d-type.m4 \
- $(top_srcdir)/m4/dirfd.m4 $(top_srcdir)/m4/dirname.m4 \
- $(top_srcdir)/m4/dos.m4 $(top_srcdir)/m4/double-slash-root.m4 \
- $(top_srcdir)/m4/dup2.m4 $(top_srcdir)/m4/eealloc.m4 \
- $(top_srcdir)/m4/eoverflow.m4 $(top_srcdir)/m4/error.m4 \
- $(top_srcdir)/m4/euidaccess-stat.m4 \
- $(top_srcdir)/m4/euidaccess.m4 $(top_srcdir)/m4/exclude.m4 \
- $(top_srcdir)/m4/exitfail.m4 $(top_srcdir)/m4/extensions.m4 \
- $(top_srcdir)/m4/fchdir.m4 $(top_srcdir)/m4/fcntl-safer.m4 \
- $(top_srcdir)/m4/fcntl_h.m4 $(top_srcdir)/m4/fd-reopen.m4 \
- $(top_srcdir)/m4/file-type.m4 $(top_srcdir)/m4/fileblocks.m4 \
- $(top_srcdir)/m4/filemode.m4 $(top_srcdir)/m4/filenamecat.m4 \
- $(top_srcdir)/m4/flexmember.m4 $(top_srcdir)/m4/fnmatch.m4 \
- $(top_srcdir)/m4/fpending.m4 $(top_srcdir)/m4/fprintftime.m4 \
- $(top_srcdir)/m4/free.m4 $(top_srcdir)/m4/fstypename.m4 \
- $(top_srcdir)/m4/fsusage.m4 $(top_srcdir)/m4/ftruncate.m4 \
- $(top_srcdir)/m4/fts.m4 $(top_srcdir)/m4/getaddrinfo.m4 \
- $(top_srcdir)/m4/getcwd-abort-bug.m4 \
- $(top_srcdir)/m4/getcwd-path-max.m4 $(top_srcdir)/m4/getcwd.m4 \
- $(top_srcdir)/m4/getdate.m4 $(top_srcdir)/m4/getdelim.m4 \
- $(top_srcdir)/m4/getgroups.m4 $(top_srcdir)/m4/gethostname.m4 \
- $(top_srcdir)/m4/gethrxtime.m4 $(top_srcdir)/m4/getline.m4 \
- $(top_srcdir)/m4/getloadavg.m4 $(top_srcdir)/m4/getndelim2.m4 \
- $(top_srcdir)/m4/getopt.m4 $(top_srcdir)/m4/getpagesize.m4 \
- $(top_srcdir)/m4/getpass.m4 $(top_srcdir)/m4/gettext.m4 \
- $(top_srcdir)/m4/gettime.m4 $(top_srcdir)/m4/gettimeofday.m4 \
- $(top_srcdir)/m4/getugroups.m4 \
- $(top_srcdir)/m4/getusershell.m4 $(top_srcdir)/m4/glibc21.m4 \
- $(top_srcdir)/m4/gnulib-common.m4 \
- $(top_srcdir)/m4/gnulib-comp.m4 \
- $(top_srcdir)/m4/group-member.m4 \
- $(top_srcdir)/m4/hard-locale.m4 $(top_srcdir)/m4/hash.m4 \
- $(top_srcdir)/m4/host-os.m4 $(top_srcdir)/m4/human.m4 \
- $(top_srcdir)/m4/i-ring.m4 $(top_srcdir)/m4/iconv.m4 \
- $(top_srcdir)/m4/idcache.m4 $(top_srcdir)/m4/inet_ntop.m4 \
- $(top_srcdir)/m4/inline.m4 $(top_srcdir)/m4/intmax_t.m4 \
- $(top_srcdir)/m4/inttostr.m4 $(top_srcdir)/m4/inttypes-pri.m4 \
- $(top_srcdir)/m4/inttypes.m4 $(top_srcdir)/m4/inttypes_h.m4 \
- $(top_srcdir)/m4/isapipe.m4 $(top_srcdir)/m4/jm-macros.m4 \
- $(top_srcdir)/m4/jm-winsz1.m4 $(top_srcdir)/m4/jm-winsz2.m4 \
- $(top_srcdir)/m4/lchmod.m4 $(top_srcdir)/m4/lchown.m4 \
- $(top_srcdir)/m4/lib-check.m4 $(top_srcdir)/m4/lib-ignore.m4 \
- $(top_srcdir)/m4/lib-ld.m4 $(top_srcdir)/m4/lib-link.m4 \
- $(top_srcdir)/m4/lib-prefix.m4 $(top_srcdir)/m4/link-follow.m4 \
- $(top_srcdir)/m4/localcharset.m4 \
- $(top_srcdir)/m4/long-options.m4 \
- $(top_srcdir)/m4/longdouble.m4 $(top_srcdir)/m4/longlong.m4 \
- $(top_srcdir)/m4/ls-mntd-fs.m4 $(top_srcdir)/m4/lstat.m4 \
- $(top_srcdir)/m4/mbchar.m4 $(top_srcdir)/m4/mbiter.m4 \
- $(top_srcdir)/m4/mbrtowc.m4 $(top_srcdir)/m4/mbscasecmp.m4 \
- $(top_srcdir)/m4/mbstate_t.m4 $(top_srcdir)/m4/mbswidth.m4 \
- $(top_srcdir)/m4/md5.m4 $(top_srcdir)/m4/memcasecmp.m4 \
- $(top_srcdir)/m4/memchr.m4 $(top_srcdir)/m4/memcmp.m4 \
- $(top_srcdir)/m4/memcoll.m4 $(top_srcdir)/m4/memcpy.m4 \
- $(top_srcdir)/m4/memmove.m4 $(top_srcdir)/m4/mempcpy.m4 \
- $(top_srcdir)/m4/memrchr.m4 $(top_srcdir)/m4/memset.m4 \
- $(top_srcdir)/m4/memxfrm.m4 $(top_srcdir)/m4/mkancesdirs.m4 \
- $(top_srcdir)/m4/mkdir-p.m4 $(top_srcdir)/m4/mkdir-slash.m4 \
- $(top_srcdir)/m4/mkstemp.m4 $(top_srcdir)/m4/mktime.m4 \
- $(top_srcdir)/m4/modechange.m4 $(top_srcdir)/m4/mountlist.m4 \
- $(top_srcdir)/m4/mpsort.m4 $(top_srcdir)/m4/nanosleep.m4 \
- $(top_srcdir)/m4/netinet_in_h.m4 $(top_srcdir)/m4/nls.m4 \
- $(top_srcdir)/m4/openat.m4 $(top_srcdir)/m4/pathmax.m4 \
- $(top_srcdir)/m4/perl.m4 $(top_srcdir)/m4/physmem.m4 \
- $(top_srcdir)/m4/po.m4 $(top_srcdir)/m4/posixtm.m4 \
- $(top_srcdir)/m4/posixver.m4 $(top_srcdir)/m4/prereq.m4 \
- $(top_srcdir)/m4/progtest.m4 $(top_srcdir)/m4/putenv.m4 \
- $(top_srcdir)/m4/quote.m4 $(top_srcdir)/m4/quotearg.m4 \
- $(top_srcdir)/m4/randint.m4 $(top_srcdir)/m4/randperm.m4 \
- $(top_srcdir)/m4/randread.m4 $(top_srcdir)/m4/readlink.m4 \
- $(top_srcdir)/m4/readtokens.m4 $(top_srcdir)/m4/readutmp.m4 \
- $(top_srcdir)/m4/regex.m4 \
- $(top_srcdir)/m4/rename-dest-slash.m4 \
- $(top_srcdir)/m4/rename.m4 $(top_srcdir)/m4/rmdir-errno.m4 \
- $(top_srcdir)/m4/rmdir.m4 $(top_srcdir)/m4/root-dev-ino.m4 \
- $(top_srcdir)/m4/rpmatch.m4 $(top_srcdir)/m4/safe-read.m4 \
- $(top_srcdir)/m4/safe-write.m4 $(top_srcdir)/m4/same.m4 \
- $(top_srcdir)/m4/save-cwd.m4 $(top_srcdir)/m4/savedir.m4 \
- $(top_srcdir)/m4/savewd.m4 $(top_srcdir)/m4/setenv.m4 \
- $(top_srcdir)/m4/settime.m4 $(top_srcdir)/m4/sha1.m4 \
- $(top_srcdir)/m4/sha256.m4 $(top_srcdir)/m4/sha512.m4 \
- $(top_srcdir)/m4/sig2str.m4 $(top_srcdir)/m4/snprintf.m4 \
- $(top_srcdir)/m4/socklen.m4 $(top_srcdir)/m4/sockpfaf.m4 \
- $(top_srcdir)/m4/ssize_t.m4 $(top_srcdir)/m4/st_dm_mode.m4 \
- $(top_srcdir)/m4/stat-prog.m4 $(top_srcdir)/m4/stat-time.m4 \
- $(top_srcdir)/m4/stdarg.m4 $(top_srcdir)/m4/stdbool.m4 \
- $(top_srcdir)/m4/stdint.m4 $(top_srcdir)/m4/stdint_h.m4 \
- $(top_srcdir)/m4/stdio-safer.m4 $(top_srcdir)/m4/stdio_h.m4 \
- $(top_srcdir)/m4/stdlib-safer.m4 $(top_srcdir)/m4/stdlib_h.m4 \
- $(top_srcdir)/m4/stpcpy.m4 $(top_srcdir)/m4/strcspn.m4 \
- $(top_srcdir)/m4/strdup.m4 $(top_srcdir)/m4/strftime.m4 \
- $(top_srcdir)/m4/string_h.m4 $(top_srcdir)/m4/strndup.m4 \
- $(top_srcdir)/m4/strnlen.m4 $(top_srcdir)/m4/strnumcmp.m4 \
- $(top_srcdir)/m4/strpbrk.m4 $(top_srcdir)/m4/strtod.m4 \
- $(top_srcdir)/m4/strtoimax.m4 $(top_srcdir)/m4/strtol.m4 \
- $(top_srcdir)/m4/strtoll.m4 $(top_srcdir)/m4/strtoul.m4 \
- $(top_srcdir)/m4/strtoull.m4 $(top_srcdir)/m4/strtoumax.m4 \
- $(top_srcdir)/m4/strverscmp.m4 \
- $(top_srcdir)/m4/sys_socket_h.m4 \
- $(top_srcdir)/m4/sys_stat_h.m4 $(top_srcdir)/m4/sys_time_h.m4 \
- $(top_srcdir)/m4/tempname.m4 $(top_srcdir)/m4/time_h.m4 \
- $(top_srcdir)/m4/time_r.m4 $(top_srcdir)/m4/timespec.m4 \
- $(top_srcdir)/m4/tm_gmtoff.m4 $(top_srcdir)/m4/tzset.m4 \
- $(top_srcdir)/m4/unicodeio.m4 $(top_srcdir)/m4/unistd-safer.m4 \
- $(top_srcdir)/m4/unistd_h.m4 $(top_srcdir)/m4/unlink-busy.m4 \
- $(top_srcdir)/m4/unlinkdir.m4 $(top_srcdir)/m4/unlocked-io.m4 \
- $(top_srcdir)/m4/uptime.m4 $(top_srcdir)/m4/userspec.m4 \
- $(top_srcdir)/m4/utimbuf.m4 $(top_srcdir)/m4/utime.m4 \
- $(top_srcdir)/m4/utimecmp.m4 $(top_srcdir)/m4/utimens.m4 \
- $(top_srcdir)/m4/utimes-null.m4 $(top_srcdir)/m4/utimes.m4 \
- $(top_srcdir)/m4/vasnprintf.m4 $(top_srcdir)/m4/vasprintf.m4 \
- $(top_srcdir)/m4/wchar.m4 $(top_srcdir)/m4/wchar_t.m4 \
- $(top_srcdir)/m4/wctype.m4 $(top_srcdir)/m4/wcwidth.m4 \
- $(top_srcdir)/m4/wint_t.m4 $(top_srcdir)/m4/xalloc.m4 \
- $(top_srcdir)/m4/xfts.m4 $(top_srcdir)/m4/xgetcwd.m4 \
- $(top_srcdir)/m4/xnanosleep.m4 $(top_srcdir)/m4/xstrndup.m4 \
- $(top_srcdir)/m4/xstrtod.m4 $(top_srcdir)/m4/xstrtol.m4 \
- $(top_srcdir)/m4/yesno.m4 $(top_srcdir)/configure.ac
-am__configure_deps = $(am__aclocal_m4_deps) $(CONFIGURE_DEPENDENCIES) \
- $(ACLOCAL_M4)
-mkinstalldirs = $(install_sh) -d
-CONFIG_HEADER = $(top_builddir)/lib/config.h
-CONFIG_CLEAN_FILES =
-SOURCES =
-DIST_SOURCES =
-RECURSIVE_TARGETS = all-recursive check-recursive dvi-recursive \
- html-recursive info-recursive install-data-recursive \
- install-dvi-recursive install-exec-recursive \
- install-html-recursive install-info-recursive \
- install-pdf-recursive install-ps-recursive install-recursive \
- installcheck-recursive installdirs-recursive pdf-recursive \
- ps-recursive uninstall-recursive
-RECURSIVE_CLEAN_TARGETS = mostlyclean-recursive clean-recursive \
- distclean-recursive maintainer-clean-recursive
-ETAGS = etags
-CTAGS = ctags
-DIST_SUBDIRS = $(SUBDIRS)
-DISTFILES = $(DIST_COMMON) $(DIST_SOURCES) $(TEXINFOS) $(EXTRA_DIST)
-ABSOLUTE_DIRENT_H = @ABSOLUTE_DIRENT_H@
-ABSOLUTE_FCNTL_H = @ABSOLUTE_FCNTL_H@
-ABSOLUTE_INTTYPES_H = @ABSOLUTE_INTTYPES_H@
-ABSOLUTE_NETINET_IN_H = @ABSOLUTE_NETINET_IN_H@
-ABSOLUTE_STDINT_H = @ABSOLUTE_STDINT_H@
-ABSOLUTE_STDIO_H = @ABSOLUTE_STDIO_H@
-ABSOLUTE_STDLIB_H = @ABSOLUTE_STDLIB_H@
-ABSOLUTE_STRING_H = @ABSOLUTE_STRING_H@
-ABSOLUTE_SYS_SOCKET_H = @ABSOLUTE_SYS_SOCKET_H@
-ABSOLUTE_SYS_STAT_H = @ABSOLUTE_SYS_STAT_H@
-ABSOLUTE_SYS_TIME_H = @ABSOLUTE_SYS_TIME_H@
-ABSOLUTE_TIME_H = @ABSOLUTE_TIME_H@
-ABSOLUTE_UNISTD_H = @ABSOLUTE_UNISTD_H@
-ABSOLUTE_WCHAR_H = @ABSOLUTE_WCHAR_H@
-ABSOLUTE_WCTYPE_H = @ABSOLUTE_WCTYPE_H@
-ACLOCAL = @ACLOCAL@
-ALLOCA = @ALLOCA@
-ALLOCA_H = @ALLOCA_H@
-AMTAR = @AMTAR@
-ARPA_INET_H = @ARPA_INET_H@
-AUTOCONF = @AUTOCONF@
-AUTOHEADER = @AUTOHEADER@
-AUTOMAKE = @AUTOMAKE@
-AWK = @AWK@
-BITSIZEOF_PTRDIFF_T = @BITSIZEOF_PTRDIFF_T@
-BITSIZEOF_SIG_ATOMIC_T = @BITSIZEOF_SIG_ATOMIC_T@
-BITSIZEOF_SIZE_T = @BITSIZEOF_SIZE_T@
-BITSIZEOF_WCHAR_T = @BITSIZEOF_WCHAR_T@
-BITSIZEOF_WINT_T = @BITSIZEOF_WINT_T@
-CC = @CC@
-CCDEPMODE = @CCDEPMODE@
-CFLAGS = @CFLAGS@
-CPP = @CPP@
-CPPFLAGS = @CPPFLAGS@
-CYGPATH_W = @CYGPATH_W@
-DEFAULT_POSIX2_VERSION = @DEFAULT_POSIX2_VERSION@
-DEFS = @DEFS@
-DEPDIR = @DEPDIR@
-DF_PROG = @DF_PROG@
-DIRENT_H = @DIRENT_H@
-ECHO_C = @ECHO_C@
-ECHO_N = @ECHO_N@
-ECHO_T = @ECHO_T@
-EGREP = @EGREP@
-EOVERFLOW = @EOVERFLOW@
-EXEEXT = @EXEEXT@
-FCNTL_H = @FCNTL_H@
-FNMATCH_H = @FNMATCH_H@
-GETLOADAVG_LIBS = @GETLOADAVG_LIBS@
-GETOPT_H = @GETOPT_H@
-GLIBC21 = @GLIBC21@
-GMSGFMT = @GMSGFMT@
-GMSGFMT_015 = @GMSGFMT_015@
-GNULIB_CHOWN = @GNULIB_CHOWN@
-GNULIB_DUP2 = @GNULIB_DUP2@
-GNULIB_FCHDIR = @GNULIB_FCHDIR@
-GNULIB_FPRINTF_POSIX = @GNULIB_FPRINTF_POSIX@
-GNULIB_FTRUNCATE = @GNULIB_FTRUNCATE@
-GNULIB_GETCWD = @GNULIB_GETCWD@
-GNULIB_GETLOGIN_R = @GNULIB_GETLOGIN_R@
-GNULIB_GETSUBOPT = @GNULIB_GETSUBOPT@
-GNULIB_IMAXABS = @GNULIB_IMAXABS@
-GNULIB_IMAXDIV = @GNULIB_IMAXDIV@
-GNULIB_MBSCASECMP = @GNULIB_MBSCASECMP@
-GNULIB_MBSCASESTR = @GNULIB_MBSCASESTR@
-GNULIB_MBSCHR = @GNULIB_MBSCHR@
-GNULIB_MBSCSPN = @GNULIB_MBSCSPN@
-GNULIB_MBSLEN = @GNULIB_MBSLEN@
-GNULIB_MBSNCASECMP = @GNULIB_MBSNCASECMP@
-GNULIB_MBSPBRK = @GNULIB_MBSPBRK@
-GNULIB_MBSPCASECMP = @GNULIB_MBSPCASECMP@
-GNULIB_MBSRCHR = @GNULIB_MBSRCHR@
-GNULIB_MBSSEP = @GNULIB_MBSSEP@
-GNULIB_MBSSPN = @GNULIB_MBSSPN@
-GNULIB_MBSSTR = @GNULIB_MBSSTR@
-GNULIB_MBSTOK_R = @GNULIB_MBSTOK_R@
-GNULIB_MEMMEM = @GNULIB_MEMMEM@
-GNULIB_MEMPCPY = @GNULIB_MEMPCPY@
-GNULIB_MEMRCHR = @GNULIB_MEMRCHR@
-GNULIB_MKDTEMP = @GNULIB_MKDTEMP@
-GNULIB_MKSTEMP = @GNULIB_MKSTEMP@
-GNULIB_PRINTF_POSIX = @GNULIB_PRINTF_POSIX@
-GNULIB_READLINK = @GNULIB_READLINK@
-GNULIB_SNPRINTF = @GNULIB_SNPRINTF@
-GNULIB_SPRINTF_POSIX = @GNULIB_SPRINTF_POSIX@
-GNULIB_STPCPY = @GNULIB_STPCPY@
-GNULIB_STPNCPY = @GNULIB_STPNCPY@
-GNULIB_STRCASESTR = @GNULIB_STRCASESTR@
-GNULIB_STRCHRNUL = @GNULIB_STRCHRNUL@
-GNULIB_STRDUP = @GNULIB_STRDUP@
-GNULIB_STRNDUP = @GNULIB_STRNDUP@
-GNULIB_STRNLEN = @GNULIB_STRNLEN@
-GNULIB_STRPBRK = @GNULIB_STRPBRK@
-GNULIB_STRSEP = @GNULIB_STRSEP@
-GNULIB_STRTOIMAX = @GNULIB_STRTOIMAX@
-GNULIB_STRTOK_R = @GNULIB_STRTOK_R@
-GNULIB_STRTOUMAX = @GNULIB_STRTOUMAX@
-GNULIB_VFPRINTF_POSIX = @GNULIB_VFPRINTF_POSIX@
-GNULIB_VPRINTF_POSIX = @GNULIB_VPRINTF_POSIX@
-GNULIB_VSNPRINTF = @GNULIB_VSNPRINTF@
-GNULIB_VSPRINTF_POSIX = @GNULIB_VSPRINTF_POSIX@
-GNU_PACKAGE = @GNU_PACKAGE@
-GREP = @GREP@
-HAVE_DECL_GETLOGIN_R = @HAVE_DECL_GETLOGIN_R@
-HAVE_DECL_IMAXABS = @HAVE_DECL_IMAXABS@
-HAVE_DECL_IMAXDIV = @HAVE_DECL_IMAXDIV@
-HAVE_DECL_MEMMEM = @HAVE_DECL_MEMMEM@
-HAVE_DECL_MEMRCHR = @HAVE_DECL_MEMRCHR@
-HAVE_DECL_SNPRINTF = @HAVE_DECL_SNPRINTF@
-HAVE_DECL_STRDUP = @HAVE_DECL_STRDUP@
-HAVE_DECL_STRNCASECMP = @HAVE_DECL_STRNCASECMP@
-HAVE_DECL_STRNDUP = @HAVE_DECL_STRNDUP@
-HAVE_DECL_STRNLEN = @HAVE_DECL_STRNLEN@
-HAVE_DECL_STRTOIMAX = @HAVE_DECL_STRTOIMAX@
-HAVE_DECL_STRTOK_R = @HAVE_DECL_STRTOK_R@
-HAVE_DECL_STRTOUMAX = @HAVE_DECL_STRTOUMAX@
-HAVE_DECL_VSNPRINTF = @HAVE_DECL_VSNPRINTF@
-HAVE_DUP2 = @HAVE_DUP2@
-HAVE_FTRUNCATE = @HAVE_FTRUNCATE@
-HAVE_GETSUBOPT = @HAVE_GETSUBOPT@
-HAVE_INTTYPES_H = @HAVE_INTTYPES_H@
-HAVE_LONG_LONG_INT = @HAVE_LONG_LONG_INT@
-HAVE_MEMPCPY = @HAVE_MEMPCPY@
-HAVE_MKDTEMP = @HAVE_MKDTEMP@
-HAVE_NETINET_IN_H = @HAVE_NETINET_IN_H@
-HAVE_READLINK = @HAVE_READLINK@
-HAVE_SIGNED_SIG_ATOMIC_T = @HAVE_SIGNED_SIG_ATOMIC_T@
-HAVE_SIGNED_WCHAR_T = @HAVE_SIGNED_WCHAR_T@
-HAVE_SIGNED_WINT_T = @HAVE_SIGNED_WINT_T@
-HAVE_STDINT_H = @HAVE_STDINT_H@
-HAVE_STPCPY = @HAVE_STPCPY@
-HAVE_STPNCPY = @HAVE_STPNCPY@
-HAVE_STRCASECMP = @HAVE_STRCASECMP@
-HAVE_STRCASESTR = @HAVE_STRCASESTR@
-HAVE_STRCHRNUL = @HAVE_STRCHRNUL@
-HAVE_STRNDUP = @HAVE_STRNDUP@
-HAVE_STRPBRK = @HAVE_STRPBRK@
-HAVE_STRSEP = @HAVE_STRSEP@
-HAVE_STRUCT_TIMEVAL = @HAVE_STRUCT_TIMEVAL@
-HAVE_SYS_BITYPES_H = @HAVE_SYS_BITYPES_H@
-HAVE_SYS_INTTYPES_H = @HAVE_SYS_INTTYPES_H@
-HAVE_SYS_SOCKET_H = @HAVE_SYS_SOCKET_H@
-HAVE_SYS_TIME_H = @HAVE_SYS_TIME_H@
-HAVE_SYS_TYPES_H = @HAVE_SYS_TYPES_H@
-HAVE_UNISTD_H = @HAVE_UNISTD_H@
-HAVE_UNSIGNED_LONG_LONG_INT = @HAVE_UNSIGNED_LONG_LONG_INT@
-HAVE_WCTYPE_H = @HAVE_WCTYPE_H@
-HAVE_WINSOCK2_H = @HAVE_WINSOCK2_H@
-HAVE_WINT_T = @HAVE_WINT_T@
-HAVE_WS2TCPIP_H = @HAVE_WS2TCPIP_H@
-HAVE__BOOL = @HAVE__BOOL@
-HELP2MAN = @HELP2MAN@
-INSTALL = @INSTALL@
-INSTALL_DATA = @INSTALL_DATA@
-INSTALL_PROGRAM = @INSTALL_PROGRAM@
-INSTALL_SCRIPT = @INSTALL_SCRIPT@
-INSTALL_STRIP_PROGRAM = @INSTALL_STRIP_PROGRAM@
-INTLLIBS = @INTLLIBS@
-INTL_MACOSX_LIBS = @INTL_MACOSX_LIBS@
-INTTYPES_H = @INTTYPES_H@
-KMEM_GROUP = @KMEM_GROUP@
-LDFLAGS = @LDFLAGS@
-LIBCOREUTILS_LIBDEPS = @LIBCOREUTILS_LIBDEPS@
-LIBCOREUTILS_LTLIBDEPS = @LIBCOREUTILS_LTLIBDEPS@
-LIBICONV = @LIBICONV@
-LIBINTL = @LIBINTL@
-LIBOBJS = @LIBOBJS@
-LIBS = @LIBS@
-LIB_ACL = @LIB_ACL@
-LIB_ACL_TRIVIAL = @LIB_ACL_TRIVIAL@
-LIB_CLOCK_GETTIME = @LIB_CLOCK_GETTIME@
-LIB_CRYPT = @LIB_CRYPT@
-LIB_EACCESS = @LIB_EACCESS@
-LIB_FDATASYNC = @LIB_FDATASYNC@
-LIB_GETHRXTIME = @LIB_GETHRXTIME@
-LIB_NANOSLEEP = @LIB_NANOSLEEP@
-LN_S = @LN_S@
-LTLIBICONV = @LTLIBICONV@
-LTLIBINTL = @LTLIBINTL@
-LTLIBOBJS = @LTLIBOBJS@
-MAKEINFO = @MAKEINFO@
-MAN = @MAN@
-MKDIR_P = @MKDIR_P@
-MSGFMT = @MSGFMT@
-MSGFMT_015 = @MSGFMT_015@
-MSGMERGE = @MSGMERGE@
-NEED_SETGID = @NEED_SETGID@
-NETINET_IN_H = @NETINET_IN_H@
-OBJEXT = @OBJEXT@
-OPTIONAL_BIN_PROGS = @OPTIONAL_BIN_PROGS@
-PACKAGE = @PACKAGE@
-PACKAGE_BUGREPORT = @PACKAGE_BUGREPORT@
-PACKAGE_NAME = @PACKAGE_NAME@
-PACKAGE_STRING = @PACKAGE_STRING@
-PACKAGE_TARNAME = @PACKAGE_TARNAME@
-PACKAGE_VERSION = @PACKAGE_VERSION@
-PATH_SEPARATOR = @PATH_SEPARATOR@
-PERL = @PERL@
-POSUB = @POSUB@
-POW_LIB = @POW_LIB@
-PRIPTR_PREFIX = @PRIPTR_PREFIX@
-PRI_MACROS_BROKEN = @PRI_MACROS_BROKEN@
-PTRDIFF_T_SUFFIX = @PTRDIFF_T_SUFFIX@
-RANLIB = @RANLIB@
-REPLACE_CHOWN = @REPLACE_CHOWN@
-REPLACE_FCHDIR = @REPLACE_FCHDIR@
-REPLACE_FPRINTF = @REPLACE_FPRINTF@
-REPLACE_GETCWD = @REPLACE_GETCWD@
-REPLACE_GETTIMEOFDAY = @REPLACE_GETTIMEOFDAY@
-REPLACE_LOCALTIME_R = @REPLACE_LOCALTIME_R@
-REPLACE_MKSTEMP = @REPLACE_MKSTEMP@
-REPLACE_NANOSLEEP = @REPLACE_NANOSLEEP@
-REPLACE_PRINTF = @REPLACE_PRINTF@
-REPLACE_SNPRINTF = @REPLACE_SNPRINTF@
-REPLACE_SPRINTF = @REPLACE_SPRINTF@
-REPLACE_STRPTIME = @REPLACE_STRPTIME@
-REPLACE_TIMEGM = @REPLACE_TIMEGM@
-REPLACE_VFPRINTF = @REPLACE_VFPRINTF@
-REPLACE_VPRINTF = @REPLACE_VPRINTF@
-REPLACE_VSNPRINTF = @REPLACE_VSNPRINTF@
-REPLACE_VSPRINTF = @REPLACE_VSPRINTF@
-SEQ_LIBM = @SEQ_LIBM@
-SET_MAKE = @SET_MAKE@
-SHELL = @SHELL@
-SIG_ATOMIC_T_SUFFIX = @SIG_ATOMIC_T_SUFFIX@
-SIZE_T_SUFFIX = @SIZE_T_SUFFIX@
-STDBOOL_H = @STDBOOL_H@
-STDINT_H = @STDINT_H@
-STRIP = @STRIP@
-SYS_SOCKET_H = @SYS_SOCKET_H@
-SYS_STAT_H = @SYS_STAT_H@
-SYS_TIME_H = @SYS_TIME_H@
-SYS_TIME_H_DEFINES_STRUCT_TIMESPEC = @SYS_TIME_H_DEFINES_STRUCT_TIMESPEC@
-TIME_H_DEFINES_STRUCT_TIMESPEC = @TIME_H_DEFINES_STRUCT_TIMESPEC@
-U = @U@
-USE_NLS = @USE_NLS@
-VERSION = @VERSION@
-WCHAR_H = @WCHAR_H@
-WCHAR_T_SUFFIX = @WCHAR_T_SUFFIX@
-WCTYPE_H = @WCTYPE_H@
-WINT_T_SUFFIX = @WINT_T_SUFFIX@
-XGETTEXT = @XGETTEXT@
-XGETTEXT_015 = @XGETTEXT_015@
-YACC = @YACC@
-YFLAGS = @YFLAGS@
-abs_builddir = @abs_builddir@
-abs_srcdir = @abs_srcdir@
-abs_top_builddir = @abs_top_builddir@
-abs_top_srcdir = @abs_top_srcdir@
-ac_ct_CC = @ac_ct_CC@
-am__include = @am__include@
-am__leading_dot = @am__leading_dot@
-am__quote = @am__quote@
-am__tar = @am__tar@
-am__untar = @am__untar@
-bindir = @bindir@
-build = @build@
-build_alias = @build_alias@
-build_cpu = @build_cpu@
-build_os = @build_os@
-build_vendor = @build_vendor@
-builddir = @builddir@
-datadir = @datadir@
-datarootdir = @datarootdir@
-docdir = @docdir@
-dvidir = @dvidir@
-exec_prefix = @exec_prefix@
-gl_LIBOBJS = @gl_LIBOBJS@
-gl_LTLIBOBJS = @gl_LTLIBOBJS@
-host = @host@
-host_alias = @host_alias@
-host_cpu = @host_cpu@
-host_os = @host_os@
-host_vendor = @host_vendor@
-htmldir = @htmldir@
-includedir = @includedir@
-infodir = @infodir@
-install_sh = @install_sh@
-libdir = @libdir@
-libexecdir = @libexecdir@
-localedir = @localedir@
-localstatedir = @localstatedir@
-mandir = @mandir@
-mkdir_p = @mkdir_p@
-oldincludedir = @oldincludedir@
-pdfdir = @pdfdir@
-prefix = @prefix@
-program_transform_name = @program_transform_name@
-psdir = @psdir@
-sbindir = @sbindir@
-sharedstatedir = @sharedstatedir@
-srcdir = @srcdir@
-sysconfdir = @sysconfdir@
-target_alias = @target_alias@
-top_builddir = @top_builddir@
-top_srcdir = @top_srcdir@
-
-# Sort in traditional ASCII order, regardless of the current locale;
-# otherwise we may get into trouble with distinct strings that the
-# current locale considers to be equal.
-ASSORT = LC_ALL=C sort
-all_programs = (cd ../src && MAKEFLAGS= $(MAKE) -s all_programs.list)
-TESTS = help-version
-TESTS_ENVIRONMENT = \
- all_programs="`$(all_programs)`" \
- PACKAGE_BUGREPORT=$(PACKAGE_BUGREPORT) \
- CU_TEST_NAME=`basename $(abs_srcdir)`,$$tst \
- PATH="$(VG_PATH_PREFIX)`pwd`/../src$(PATH_SEPARATOR)$$PATH"
-
-EXTRA_DIST = \
- $(TESTS) Coreutils.pm Makefile.am.in README acl envvar-check \
- expensive group-names input-tty lang-default mk-script \
- other-fs-tmpdir priv-check \
- rwx-to-mode sample-test setgid-check sparse-file \
- umask-check very-expensive
-
-SUBDIRS = \
- chgrp chmod chown cp cut dd dircolors du expr factor fmt head \
- install join ln ls ls-2 md5sum misc mkdir mv od pr readlink rm rmdir \
- seq sha1sum shred sort stty sum tac tail tail-2 tee test touch tr \
- tsort unexpand uniq wc
-
-all_t = t1 t2 t3 t4 t5 t6 t7
-all: all-recursive
-
-.SUFFIXES:
-$(srcdir)/Makefile.in: $(srcdir)/Makefile.am $(am__configure_deps)
- @for dep in $?; do \
- case '$(am__configure_deps)' in \
- *$$dep*) \
- cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh \
- && exit 0; \
- exit 1;; \
- esac; \
- done; \
- echo ' cd $(top_srcdir) && $(AUTOMAKE) --gnu tests/Makefile'; \
- cd $(top_srcdir) && \
- $(AUTOMAKE) --gnu tests/Makefile
-.PRECIOUS: Makefile
-Makefile: $(srcdir)/Makefile.in $(top_builddir)/config.status
- @case '$?' in \
- *config.status*) \
- cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh;; \
- *) \
- echo ' cd $(top_builddir) && $(SHELL) ./config.status $(subdir)/$@ $(am__depfiles_maybe)'; \
- cd $(top_builddir) && $(SHELL) ./config.status $(subdir)/$@ $(am__depfiles_maybe);; \
- esac;
-
-$(top_builddir)/config.status: $(top_srcdir)/configure $(CONFIG_STATUS_DEPENDENCIES)
- cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh
-
-$(top_srcdir)/configure: $(am__configure_deps)
- cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh
-$(ACLOCAL_M4): $(am__aclocal_m4_deps)
- cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh
-
-# This directory's subdirectories are mostly independent; you can cd
-# into them and run `make' without going through this Makefile.
-# To change the values of `make' variables: instead of editing Makefiles,
-# (1) if the variable is set in `config.status', edit `config.status'
-# (which will cause the Makefiles to be regenerated when you run `make');
-# (2) otherwise, pass the desired values on the `make' command line.
-$(RECURSIVE_TARGETS):
- @failcom='exit 1'; \
- for f in x $$MAKEFLAGS; do \
- case $$f in \
- *=* | --[!k]*);; \
- *k*) failcom='fail=yes';; \
- esac; \
- done; \
- dot_seen=no; \
- target=`echo $@ | sed s/-recursive//`; \
- list='$(SUBDIRS)'; for subdir in $$list; do \
- echo "Making $$target in $$subdir"; \
- if test "$$subdir" = "."; then \
- dot_seen=yes; \
- local_target="$$target-am"; \
- else \
- local_target="$$target"; \
- fi; \
- (cd $$subdir && $(MAKE) $(AM_MAKEFLAGS) $$local_target) \
- || eval $$failcom; \
- done; \
- if test "$$dot_seen" = "no"; then \
- $(MAKE) $(AM_MAKEFLAGS) "$$target-am" || exit 1; \
- fi; test -z "$$fail"
-
-$(RECURSIVE_CLEAN_TARGETS):
- @failcom='exit 1'; \
- for f in x $$MAKEFLAGS; do \
- case $$f in \
- *=* | --[!k]*);; \
- *k*) failcom='fail=yes';; \
- esac; \
- done; \
- dot_seen=no; \
- case "$@" in \
- distclean-* | maintainer-clean-*) list='$(DIST_SUBDIRS)' ;; \
- *) list='$(SUBDIRS)' ;; \
- esac; \
- rev=''; for subdir in $$list; do \
- if test "$$subdir" = "."; then :; else \
- rev="$$subdir $$rev"; \
- fi; \
- done; \
- rev="$$rev ."; \
- target=`echo $@ | sed s/-recursive//`; \
- for subdir in $$rev; do \
- echo "Making $$target in $$subdir"; \
- if test "$$subdir" = "."; then \
- local_target="$$target-am"; \
- else \
- local_target="$$target"; \
- fi; \
- (cd $$subdir && $(MAKE) $(AM_MAKEFLAGS) $$local_target) \
- || eval $$failcom; \
- done && test -z "$$fail"
-tags-recursive:
- list='$(SUBDIRS)'; for subdir in $$list; do \
- test "$$subdir" = . || (cd $$subdir && $(MAKE) $(AM_MAKEFLAGS) tags); \
- done
-ctags-recursive:
- list='$(SUBDIRS)'; for subdir in $$list; do \
- test "$$subdir" = . || (cd $$subdir && $(MAKE) $(AM_MAKEFLAGS) ctags); \
- done
-
-ID: $(HEADERS) $(SOURCES) $(LISP) $(TAGS_FILES)
- list='$(SOURCES) $(HEADERS) $(LISP) $(TAGS_FILES)'; \
- unique=`for i in $$list; do \
- if test -f "$$i"; then echo $$i; else echo $(srcdir)/$$i; fi; \
- done | \
- $(AWK) ' { files[$$0] = 1; } \
- END { for (i in files) print i; }'`; \
- mkid -fID $$unique
-tags: TAGS
-
-TAGS: tags-recursive $(HEADERS) $(SOURCES) $(TAGS_DEPENDENCIES) \
- $(TAGS_FILES) $(LISP)
- tags=; \
- here=`pwd`; \
- if ($(ETAGS) --etags-include --version) >/dev/null 2>&1; then \
- include_option=--etags-include; \
- empty_fix=.; \
- else \
- include_option=--include; \
- empty_fix=; \
- fi; \
- list='$(SUBDIRS)'; for subdir in $$list; do \
- if test "$$subdir" = .; then :; else \
- test ! -f $$subdir/TAGS || \
- tags="$$tags $$include_option=$$here/$$subdir/TAGS"; \
- fi; \
- done; \
- list='$(SOURCES) $(HEADERS) $(LISP) $(TAGS_FILES)'; \
- unique=`for i in $$list; do \
- if test -f "$$i"; then echo $$i; else echo $(srcdir)/$$i; fi; \
- done | \
- $(AWK) ' { files[$$0] = 1; } \
- END { for (i in files) print i; }'`; \
- if test -z "$(ETAGS_ARGS)$$tags$$unique"; then :; else \
- test -n "$$unique" || unique=$$empty_fix; \
- $(ETAGS) $(ETAGSFLAGS) $(AM_ETAGSFLAGS) $(ETAGS_ARGS) \
- $$tags $$unique; \
- fi
-ctags: CTAGS
-CTAGS: ctags-recursive $(HEADERS) $(SOURCES) $(TAGS_DEPENDENCIES) \
- $(TAGS_FILES) $(LISP)
- tags=; \
- here=`pwd`; \
- list='$(SOURCES) $(HEADERS) $(LISP) $(TAGS_FILES)'; \
- unique=`for i in $$list; do \
- if test -f "$$i"; then echo $$i; else echo $(srcdir)/$$i; fi; \
- done | \
- $(AWK) ' { files[$$0] = 1; } \
- END { for (i in files) print i; }'`; \
- test -z "$(CTAGS_ARGS)$$tags$$unique" \
- || $(CTAGS) $(CTAGSFLAGS) $(AM_CTAGSFLAGS) $(CTAGS_ARGS) \
- $$tags $$unique
-
-GTAGS:
- here=`$(am__cd) $(top_builddir) && pwd` \
- && cd $(top_srcdir) \
- && gtags -i $(GTAGS_ARGS) $$here
-
-distclean-tags:
- -rm -f TAGS ID GTAGS GRTAGS GSYMS GPATH tags
-
-check-TESTS: $(TESTS)
- @failed=0; all=0; xfail=0; xpass=0; skip=0; ws='[ ]'; \
- srcdir=$(srcdir); export srcdir; \
- list=' $(TESTS) '; \
- if test -n "$$list"; then \
- for tst in $$list; do \
- if test -f ./$$tst; then dir=./; \
- elif test -f $$tst; then dir=; \
- else dir="$(srcdir)/"; fi; \
- if $(TESTS_ENVIRONMENT) $${dir}$$tst; then \
- all=`expr $$all + 1`; \
- case " $(XFAIL_TESTS) " in \
- *$$ws$$tst$$ws*) \
- xpass=`expr $$xpass + 1`; \
- failed=`expr $$failed + 1`; \
- echo "XPASS: $$tst"; \
- ;; \
- *) \
- echo "PASS: $$tst"; \
- ;; \
- esac; \
- elif test $$? -ne 77; then \
- all=`expr $$all + 1`; \
- case " $(XFAIL_TESTS) " in \
- *$$ws$$tst$$ws*) \
- xfail=`expr $$xfail + 1`; \
- echo "XFAIL: $$tst"; \
- ;; \
- *) \
- failed=`expr $$failed + 1`; \
- echo "FAIL: $$tst"; \
- ;; \
- esac; \
- else \
- skip=`expr $$skip + 1`; \
- echo "SKIP: $$tst"; \
- fi; \
- done; \
- if test "$$failed" -eq 0; then \
- if test "$$xfail" -eq 0; then \
- banner="All $$all tests passed"; \
- else \
- banner="All $$all tests behaved as expected ($$xfail expected failures)"; \
- fi; \
- else \
- if test "$$xpass" -eq 0; then \
- banner="$$failed of $$all tests failed"; \
- else \
- banner="$$failed of $$all tests did not behave as expected ($$xpass unexpected passes)"; \
- fi; \
- fi; \
- dashes="$$banner"; \
- skipped=""; \
- if test "$$skip" -ne 0; then \
- skipped="($$skip tests were not run)"; \
- test `echo "$$skipped" | wc -c` -le `echo "$$banner" | wc -c` || \
- dashes="$$skipped"; \
- fi; \
- report=""; \
- if test "$$failed" -ne 0 && test -n "$(PACKAGE_BUGREPORT)"; then \
- report="Please report to $(PACKAGE_BUGREPORT)"; \
- test `echo "$$report" | wc -c` -le `echo "$$banner" | wc -c` || \
- dashes="$$report"; \
- fi; \
- dashes=`echo "$$dashes" | sed s/./=/g`; \
- echo "$$dashes"; \
- echo "$$banner"; \
- test -z "$$skipped" || echo "$$skipped"; \
- test -z "$$report" || echo "$$report"; \
- echo "$$dashes"; \
- test "$$failed" -eq 0; \
- else :; fi
-
-distdir: $(DISTFILES)
- @srcdirstrip=`echo "$(srcdir)" | sed 's/[].[^$$\\*]/\\\\&/g'`; \
- topsrcdirstrip=`echo "$(top_srcdir)" | sed 's/[].[^$$\\*]/\\\\&/g'`; \
- list='$(DISTFILES)'; \
- dist_files=`for file in $$list; do echo $$file; done | \
- sed -e "s|^$$srcdirstrip/||;t" \
- -e "s|^$$topsrcdirstrip/|$(top_builddir)/|;t"`; \
- case $$dist_files in \
- */*) $(MKDIR_P) `echo "$$dist_files" | \
- sed '/\//!d;s|^|$(distdir)/|;s,/[^/]*$$,,' | \
- sort -u` ;; \
- esac; \
- for file in $$dist_files; do \
- if test -f $$file || test -d $$file; then d=.; else d=$(srcdir); fi; \
- if test -d $$d/$$file; then \
- dir=`echo "/$$file" | sed -e 's,/[^/]*$$,,'`; \
- if test -d $(srcdir)/$$file && test $$d != $(srcdir); then \
- cp -pR $(srcdir)/$$file $(distdir)$$dir || exit 1; \
- fi; \
- cp -pR $$d/$$file $(distdir)$$dir || exit 1; \
- else \
- test -f $(distdir)/$$file \
- || cp -p $$d/$$file $(distdir)/$$file \
- || exit 1; \
- fi; \
- done
- list='$(DIST_SUBDIRS)'; for subdir in $$list; do \
- if test "$$subdir" = .; then :; else \
- test -d "$(distdir)/$$subdir" \
- || $(MKDIR_P) "$(distdir)/$$subdir" \
- || exit 1; \
- distdir=`$(am__cd) $(distdir) && pwd`; \
- top_distdir=`$(am__cd) $(top_distdir) && pwd`; \
- (cd $$subdir && \
- $(MAKE) $(AM_MAKEFLAGS) \
- top_distdir="$$top_distdir" \
- distdir="$$distdir/$$subdir" \
- am__remove_distdir=: \
- am__skip_length_check=: \
- distdir) \
- || exit 1; \
- fi; \
- done
-check-am: all-am
- $(MAKE) $(AM_MAKEFLAGS) check-TESTS
-check: check-recursive
-all-am: Makefile
-installdirs: installdirs-recursive
-installdirs-am:
-install: install-recursive
-install-exec: install-exec-recursive
-install-data: install-data-recursive
-uninstall: uninstall-recursive
-
-install-am: all-am
- @$(MAKE) $(AM_MAKEFLAGS) install-exec-am install-data-am
-
-installcheck: installcheck-recursive
-install-strip:
- $(MAKE) $(AM_MAKEFLAGS) INSTALL_PROGRAM="$(INSTALL_STRIP_PROGRAM)" \
- install_sh_PROGRAM="$(INSTALL_STRIP_PROGRAM)" INSTALL_STRIP_FLAG=-s \
- `test -z '$(STRIP)' || \
- echo "INSTALL_PROGRAM_ENV=STRIPPROG='$(STRIP)'"` install
-mostlyclean-generic:
-
-clean-generic:
-
-distclean-generic:
- -test -z "$(CONFIG_CLEAN_FILES)" || rm -f $(CONFIG_CLEAN_FILES)
-
-maintainer-clean-generic:
- @echo "This command is intended for maintainers to use"
- @echo "it deletes files that may require special tools to rebuild."
-clean: clean-recursive
-
-clean-am: clean-generic mostlyclean-am
-
-distclean: distclean-recursive
- -rm -f Makefile
-distclean-am: clean-am distclean-generic distclean-tags
-
-dvi: dvi-recursive
-
-dvi-am:
-
-html: html-recursive
-
-info: info-recursive
-
-info-am:
-
-install-data-am:
-
-install-dvi: install-dvi-recursive
-
-install-exec-am:
-
-install-html: install-html-recursive
-
-install-info: install-info-recursive
-
-install-man:
-
-install-pdf: install-pdf-recursive
-
-install-ps: install-ps-recursive
-
-installcheck-am:
-
-maintainer-clean: maintainer-clean-recursive
- -rm -f Makefile
-maintainer-clean-am: distclean-am maintainer-clean-generic
-
-mostlyclean: mostlyclean-recursive
-
-mostlyclean-am: mostlyclean-generic
-
-pdf: pdf-recursive
-
-pdf-am:
-
-ps: ps-recursive
-
-ps-am:
-
-uninstall-am:
-
-.MAKE: $(RECURSIVE_CLEAN_TARGETS) $(RECURSIVE_TARGETS) install-am \
- install-strip
-
-.PHONY: $(RECURSIVE_CLEAN_TARGETS) $(RECURSIVE_TARGETS) CTAGS GTAGS \
- all all-am check check-TESTS check-am clean clean-generic \
- ctags ctags-recursive distclean distclean-generic \
- distclean-tags distdir dvi dvi-am html html-am info info-am \
- install install-am install-data install-data-am install-dvi \
- install-dvi-am install-exec install-exec-am install-html \
- install-html-am install-info install-info-am install-man \
- install-pdf install-pdf-am install-ps install-ps-am \
- install-strip installcheck installcheck-am installdirs \
- installdirs-am maintainer-clean maintainer-clean-generic \
- mostlyclean mostlyclean-generic pdf pdf-am ps ps-am tags \
- tags-recursive uninstall uninstall-am
-
-.PHONY: check-root $(all_t)
-check-root: $(all_t)
-
-t1:
- cd chown && $(MAKE) check TESTS=basic
-t2:
- cd cp && $(MAKE) check TESTS=special-bits
-t3:
- cd rm && $(MAKE) check TESTS=no-give-up
-t4:
- cd rm && $(MAKE) check TESTS=fail-2eperm
-t5:
- cd tail-2 && $(MAKE) check TESTS=append-only
-t6:
- cd rm && $(MAKE) check TESTS=one-file-system
-t7:
- cd ls && $(MAKE) check TESTS=nameless-uid
-
-check-recursive: root-hint
-
-# Advertise `check-root' target.
-.PHONY: root-hint
-root-hint:
- @echo '***********************************************************'
- @echo "NOTICE: Some tests may be run only as root."
- @echo " Do \`make check-root' as \`root' to run these tests."
- @echo '***********************************************************'
-# Tell versions [3.59,3.63) of GNU make to not export all variables.
-# Otherwise a system limit (for SysV at least) may be exceeded.
-.NOEXPORT:
diff --git a/tests/README b/tests/README
deleted file mode 100644
index 58b11b4..0000000
--- a/tests/README
+++ /dev/null
@@ -1,3 +0,0 @@
-A note about Makefile.am.in.
-It is used (usually only by the maintainer) to generate some of the
-Makefile.am files in these subdirectories.
diff --git a/tests/acl b/tests/acl
deleted file mode 100644
index 5c958ea..0000000
--- a/tests/acl
+++ /dev/null
@@ -1,37 +0,0 @@
-# Test whether acl tests can be done.
-
-# Copyright (C) 2005, 2006 Free Software Foundation, Inc.
-
-# This program is free software; you can redistribute it and/or modify
-# it under the terms of the GNU General Public License as published by
-# the Free Software Foundation; either version 2 of the License, or
-# (at your option) any later version.
-
-# This program is distributed in the hope that it will be useful,
-# but WITHOUT ANY WARRANTY; without even the implied warranty of
-# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
-# GNU General Public License for more details.
-
-# You should have received a copy of the GNU General Public License
-# along with this program; if not, write to the Free Software
-# Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA
-# 02110-1301, USA.
-
-getfacl --version < /dev/null > /dev/null 2>&1 \
- && setfacl --version < /dev/null > /dev/null 2>&1 || {
- cat <<EOF 1>&2
-**************************************
-$0: This test requires getfacl and setfacl.
-**************************************
-EOF
- (exit 77); exit 77
-}
-
-id -u bin > /dev/null 2>&1 || {
- cat <<EOF 1>&2
-**************************************
-$0: This test requires a local user named bin.
-**************************************
-EOF
- (exit 77); exit 77
-}
diff --git a/tests/chgrp/Makefile.am b/tests/chgrp/Makefile.am
deleted file mode 100644
index 8dffd01..0000000
--- a/tests/chgrp/Makefile.am
+++ /dev/null
@@ -1,14 +0,0 @@
-## Process this file with automake to produce Makefile.in -*-Makefile-*-.
-TESTS = \
- default-no-deref \
- basic \
- deref \
- no-x \
- posix-H \
- recurse
-
-EXTRA_DIST = $(TESTS)
-TESTS_ENVIRONMENT = \
- host_triplet=$(host_triplet) \
- CU_TEST_NAME=`basename $(abs_srcdir)`,$$tst \
- PATH="$(VG_PATH_PREFIX)`pwd`/../../src$(PATH_SEPARATOR)$$PATH"
diff --git a/tests/chgrp/Makefile.in b/tests/chgrp/Makefile.in
deleted file mode 100644
index 7afc0a0..0000000
--- a/tests/chgrp/Makefile.in
+++ /dev/null
@@ -1,724 +0,0 @@
-# Makefile.in generated by automake 1.10 from Makefile.am.
-# @configure_input@
-
-# Copyright (C) 1994, 1995, 1996, 1997, 1998, 1999, 2000, 2001, 2002,
-# 2003, 2004, 2005, 2006 Free Software Foundation, Inc.
-# This Makefile.in is free software; the Free Software Foundation
-# gives unlimited permission to copy and/or distribute it,
-# with or without modifications, as long as this notice is preserved.
-
-# This program is distributed in the hope that it will be useful,
-# but WITHOUT ANY WARRANTY, to the extent permitted by law; without
-# even the implied warranty of MERCHANTABILITY or FITNESS FOR A
-# PARTICULAR PURPOSE.
-
-@SET_MAKE@
-VPATH = @srcdir@
-pkgdatadir = $(datadir)/@PACKAGE@
-pkglibdir = $(libdir)/@PACKAGE@
-pkgincludedir = $(includedir)/@PACKAGE@
-am__cd = CDPATH="$${ZSH_VERSION+.}$(PATH_SEPARATOR)" && cd
-install_sh_DATA = $(install_sh) -c -m 644
-install_sh_PROGRAM = $(install_sh) -c
-install_sh_SCRIPT = $(install_sh) -c
-INSTALL_HEADER = $(INSTALL_DATA)
-transform = $(program_transform_name)
-NORMAL_INSTALL = :
-PRE_INSTALL = :
-POST_INSTALL = :
-NORMAL_UNINSTALL = :
-PRE_UNINSTALL = :
-POST_UNINSTALL = :
-build_triplet = @build@
-host_triplet = @host@
-subdir = tests/chgrp
-DIST_COMMON = $(srcdir)/Makefile.am $(srcdir)/Makefile.in
-ACLOCAL_M4 = $(top_srcdir)/aclocal.m4
-am__aclocal_m4_deps = $(top_srcdir)/m4/absolute-header.m4 \
- $(top_srcdir)/m4/acl.m4 $(top_srcdir)/m4/alloca.m4 \
- $(top_srcdir)/m4/allocsa.m4 $(top_srcdir)/m4/argmatch.m4 \
- $(top_srcdir)/m4/arpa_inet_h.m4 $(top_srcdir)/m4/assert.m4 \
- $(top_srcdir)/m4/atexit.m4 $(top_srcdir)/m4/autobuild.m4 \
- $(top_srcdir)/m4/backupfile.m4 $(top_srcdir)/m4/base64.m4 \
- $(top_srcdir)/m4/bison.m4 $(top_srcdir)/m4/boottime.m4 \
- $(top_srcdir)/m4/c-strtod.m4 $(top_srcdir)/m4/calloc.m4 \
- $(top_srcdir)/m4/canon-host.m4 \
- $(top_srcdir)/m4/canonicalize.m4 \
- $(top_srcdir)/m4/chdir-long.m4 $(top_srcdir)/m4/check-decl.m4 \
- $(top_srcdir)/m4/chown.m4 $(top_srcdir)/m4/clock_time.m4 \
- $(top_srcdir)/m4/cloexec.m4 $(top_srcdir)/m4/close-stream.m4 \
- $(top_srcdir)/m4/closeout.m4 $(top_srcdir)/m4/codeset.m4 \
- $(top_srcdir)/m4/config-h.m4 $(top_srcdir)/m4/cycle-check.m4 \
- $(top_srcdir)/m4/d-ino.m4 $(top_srcdir)/m4/d-type.m4 \
- $(top_srcdir)/m4/dirfd.m4 $(top_srcdir)/m4/dirname.m4 \
- $(top_srcdir)/m4/dos.m4 $(top_srcdir)/m4/double-slash-root.m4 \
- $(top_srcdir)/m4/dup2.m4 $(top_srcdir)/m4/eealloc.m4 \
- $(top_srcdir)/m4/eoverflow.m4 $(top_srcdir)/m4/error.m4 \
- $(top_srcdir)/m4/euidaccess-stat.m4 \
- $(top_srcdir)/m4/euidaccess.m4 $(top_srcdir)/m4/exclude.m4 \
- $(top_srcdir)/m4/exitfail.m4 $(top_srcdir)/m4/extensions.m4 \
- $(top_srcdir)/m4/fchdir.m4 $(top_srcdir)/m4/fcntl-safer.m4 \
- $(top_srcdir)/m4/fcntl_h.m4 $(top_srcdir)/m4/fd-reopen.m4 \
- $(top_srcdir)/m4/file-type.m4 $(top_srcdir)/m4/fileblocks.m4 \
- $(top_srcdir)/m4/filemode.m4 $(top_srcdir)/m4/filenamecat.m4 \
- $(top_srcdir)/m4/flexmember.m4 $(top_srcdir)/m4/fnmatch.m4 \
- $(top_srcdir)/m4/fpending.m4 $(top_srcdir)/m4/fprintftime.m4 \
- $(top_srcdir)/m4/free.m4 $(top_srcdir)/m4/fstypename.m4 \
- $(top_srcdir)/m4/fsusage.m4 $(top_srcdir)/m4/ftruncate.m4 \
- $(top_srcdir)/m4/fts.m4 $(top_srcdir)/m4/getaddrinfo.m4 \
- $(top_srcdir)/m4/getcwd-abort-bug.m4 \
- $(top_srcdir)/m4/getcwd-path-max.m4 $(top_srcdir)/m4/getcwd.m4 \
- $(top_srcdir)/m4/getdate.m4 $(top_srcdir)/m4/getdelim.m4 \
- $(top_srcdir)/m4/getgroups.m4 $(top_srcdir)/m4/gethostname.m4 \
- $(top_srcdir)/m4/gethrxtime.m4 $(top_srcdir)/m4/getline.m4 \
- $(top_srcdir)/m4/getloadavg.m4 $(top_srcdir)/m4/getndelim2.m4 \
- $(top_srcdir)/m4/getopt.m4 $(top_srcdir)/m4/getpagesize.m4 \
- $(top_srcdir)/m4/getpass.m4 $(top_srcdir)/m4/gettext.m4 \
- $(top_srcdir)/m4/gettime.m4 $(top_srcdir)/m4/gettimeofday.m4 \
- $(top_srcdir)/m4/getugroups.m4 \
- $(top_srcdir)/m4/getusershell.m4 $(top_srcdir)/m4/glibc21.m4 \
- $(top_srcdir)/m4/gnulib-common.m4 \
- $(top_srcdir)/m4/gnulib-comp.m4 \
- $(top_srcdir)/m4/group-member.m4 \
- $(top_srcdir)/m4/hard-locale.m4 $(top_srcdir)/m4/hash.m4 \
- $(top_srcdir)/m4/host-os.m4 $(top_srcdir)/m4/human.m4 \
- $(top_srcdir)/m4/i-ring.m4 $(top_srcdir)/m4/iconv.m4 \
- $(top_srcdir)/m4/idcache.m4 $(top_srcdir)/m4/inet_ntop.m4 \
- $(top_srcdir)/m4/inline.m4 $(top_srcdir)/m4/intmax_t.m4 \
- $(top_srcdir)/m4/inttostr.m4 $(top_srcdir)/m4/inttypes-pri.m4 \
- $(top_srcdir)/m4/inttypes.m4 $(top_srcdir)/m4/inttypes_h.m4 \
- $(top_srcdir)/m4/isapipe.m4 $(top_srcdir)/m4/jm-macros.m4 \
- $(top_srcdir)/m4/jm-winsz1.m4 $(top_srcdir)/m4/jm-winsz2.m4 \
- $(top_srcdir)/m4/lchmod.m4 $(top_srcdir)/m4/lchown.m4 \
- $(top_srcdir)/m4/lib-check.m4 $(top_srcdir)/m4/lib-ignore.m4 \
- $(top_srcdir)/m4/lib-ld.m4 $(top_srcdir)/m4/lib-link.m4 \
- $(top_srcdir)/m4/lib-prefix.m4 $(top_srcdir)/m4/link-follow.m4 \
- $(top_srcdir)/m4/localcharset.m4 \
- $(top_srcdir)/m4/long-options.m4 \
- $(top_srcdir)/m4/longdouble.m4 $(top_srcdir)/m4/longlong.m4 \
- $(top_srcdir)/m4/ls-mntd-fs.m4 $(top_srcdir)/m4/lstat.m4 \
- $(top_srcdir)/m4/mbchar.m4 $(top_srcdir)/m4/mbiter.m4 \
- $(top_srcdir)/m4/mbrtowc.m4 $(top_srcdir)/m4/mbscasecmp.m4 \
- $(top_srcdir)/m4/mbstate_t.m4 $(top_srcdir)/m4/mbswidth.m4 \
- $(top_srcdir)/m4/md5.m4 $(top_srcdir)/m4/memcasecmp.m4 \
- $(top_srcdir)/m4/memchr.m4 $(top_srcdir)/m4/memcmp.m4 \
- $(top_srcdir)/m4/memcoll.m4 $(top_srcdir)/m4/memcpy.m4 \
- $(top_srcdir)/m4/memmove.m4 $(top_srcdir)/m4/mempcpy.m4 \
- $(top_srcdir)/m4/memrchr.m4 $(top_srcdir)/m4/memset.m4 \
- $(top_srcdir)/m4/memxfrm.m4 $(top_srcdir)/m4/mkancesdirs.m4 \
- $(top_srcdir)/m4/mkdir-p.m4 $(top_srcdir)/m4/mkdir-slash.m4 \
- $(top_srcdir)/m4/mkstemp.m4 $(top_srcdir)/m4/mktime.m4 \
- $(top_srcdir)/m4/modechange.m4 $(top_srcdir)/m4/mountlist.m4 \
- $(top_srcdir)/m4/mpsort.m4 $(top_srcdir)/m4/nanosleep.m4 \
- $(top_srcdir)/m4/netinet_in_h.m4 $(top_srcdir)/m4/nls.m4 \
- $(top_srcdir)/m4/openat.m4 $(top_srcdir)/m4/pathmax.m4 \
- $(top_srcdir)/m4/perl.m4 $(top_srcdir)/m4/physmem.m4 \
- $(top_srcdir)/m4/po.m4 $(top_srcdir)/m4/posixtm.m4 \
- $(top_srcdir)/m4/posixver.m4 $(top_srcdir)/m4/prereq.m4 \
- $(top_srcdir)/m4/progtest.m4 $(top_srcdir)/m4/putenv.m4 \
- $(top_srcdir)/m4/quote.m4 $(top_srcdir)/m4/quotearg.m4 \
- $(top_srcdir)/m4/randint.m4 $(top_srcdir)/m4/randperm.m4 \
- $(top_srcdir)/m4/randread.m4 $(top_srcdir)/m4/readlink.m4 \
- $(top_srcdir)/m4/readtokens.m4 $(top_srcdir)/m4/readutmp.m4 \
- $(top_srcdir)/m4/regex.m4 \
- $(top_srcdir)/m4/rename-dest-slash.m4 \
- $(top_srcdir)/m4/rename.m4 $(top_srcdir)/m4/rmdir-errno.m4 \
- $(top_srcdir)/m4/rmdir.m4 $(top_srcdir)/m4/root-dev-ino.m4 \
- $(top_srcdir)/m4/rpmatch.m4 $(top_srcdir)/m4/safe-read.m4 \
- $(top_srcdir)/m4/safe-write.m4 $(top_srcdir)/m4/same.m4 \
- $(top_srcdir)/m4/save-cwd.m4 $(top_srcdir)/m4/savedir.m4 \
- $(top_srcdir)/m4/savewd.m4 $(top_srcdir)/m4/setenv.m4 \
- $(top_srcdir)/m4/settime.m4 $(top_srcdir)/m4/sha1.m4 \
- $(top_srcdir)/m4/sha256.m4 $(top_srcdir)/m4/sha512.m4 \
- $(top_srcdir)/m4/sig2str.m4 $(top_srcdir)/m4/snprintf.m4 \
- $(top_srcdir)/m4/socklen.m4 $(top_srcdir)/m4/sockpfaf.m4 \
- $(top_srcdir)/m4/ssize_t.m4 $(top_srcdir)/m4/st_dm_mode.m4 \
- $(top_srcdir)/m4/stat-prog.m4 $(top_srcdir)/m4/stat-time.m4 \
- $(top_srcdir)/m4/stdarg.m4 $(top_srcdir)/m4/stdbool.m4 \
- $(top_srcdir)/m4/stdint.m4 $(top_srcdir)/m4/stdint_h.m4 \
- $(top_srcdir)/m4/stdio-safer.m4 $(top_srcdir)/m4/stdio_h.m4 \
- $(top_srcdir)/m4/stdlib-safer.m4 $(top_srcdir)/m4/stdlib_h.m4 \
- $(top_srcdir)/m4/stpcpy.m4 $(top_srcdir)/m4/strcspn.m4 \
- $(top_srcdir)/m4/strdup.m4 $(top_srcdir)/m4/strftime.m4 \
- $(top_srcdir)/m4/string_h.m4 $(top_srcdir)/m4/strndup.m4 \
- $(top_srcdir)/m4/strnlen.m4 $(top_srcdir)/m4/strnumcmp.m4 \
- $(top_srcdir)/m4/strpbrk.m4 $(top_srcdir)/m4/strtod.m4 \
- $(top_srcdir)/m4/strtoimax.m4 $(top_srcdir)/m4/strtol.m4 \
- $(top_srcdir)/m4/strtoll.m4 $(top_srcdir)/m4/strtoul.m4 \
- $(top_srcdir)/m4/strtoull.m4 $(top_srcdir)/m4/strtoumax.m4 \
- $(top_srcdir)/m4/strverscmp.m4 \
- $(top_srcdir)/m4/sys_socket_h.m4 \
- $(top_srcdir)/m4/sys_stat_h.m4 $(top_srcdir)/m4/sys_time_h.m4 \
- $(top_srcdir)/m4/tempname.m4 $(top_srcdir)/m4/time_h.m4 \
- $(top_srcdir)/m4/time_r.m4 $(top_srcdir)/m4/timespec.m4 \
- $(top_srcdir)/m4/tm_gmtoff.m4 $(top_srcdir)/m4/tzset.m4 \
- $(top_srcdir)/m4/unicodeio.m4 $(top_srcdir)/m4/unistd-safer.m4 \
- $(top_srcdir)/m4/unistd_h.m4 $(top_srcdir)/m4/unlink-busy.m4 \
- $(top_srcdir)/m4/unlinkdir.m4 $(top_srcdir)/m4/unlocked-io.m4 \
- $(top_srcdir)/m4/uptime.m4 $(top_srcdir)/m4/userspec.m4 \
- $(top_srcdir)/m4/utimbuf.m4 $(top_srcdir)/m4/utime.m4 \
- $(top_srcdir)/m4/utimecmp.m4 $(top_srcdir)/m4/utimens.m4 \
- $(top_srcdir)/m4/utimes-null.m4 $(top_srcdir)/m4/utimes.m4 \
- $(top_srcdir)/m4/vasnprintf.m4 $(top_srcdir)/m4/vasprintf.m4 \
- $(top_srcdir)/m4/wchar.m4 $(top_srcdir)/m4/wchar_t.m4 \
- $(top_srcdir)/m4/wctype.m4 $(top_srcdir)/m4/wcwidth.m4 \
- $(top_srcdir)/m4/wint_t.m4 $(top_srcdir)/m4/xalloc.m4 \
- $(top_srcdir)/m4/xfts.m4 $(top_srcdir)/m4/xgetcwd.m4 \
- $(top_srcdir)/m4/xnanosleep.m4 $(top_srcdir)/m4/xstrndup.m4 \
- $(top_srcdir)/m4/xstrtod.m4 $(top_srcdir)/m4/xstrtol.m4 \
- $(top_srcdir)/m4/yesno.m4 $(top_srcdir)/configure.ac
-am__configure_deps = $(am__aclocal_m4_deps) $(CONFIGURE_DEPENDENCIES) \
- $(ACLOCAL_M4)
-mkinstalldirs = $(install_sh) -d
-CONFIG_HEADER = $(top_builddir)/lib/config.h
-CONFIG_CLEAN_FILES =
-SOURCES =
-DIST_SOURCES =
-DISTFILES = $(DIST_COMMON) $(DIST_SOURCES) $(TEXINFOS) $(EXTRA_DIST)
-ABSOLUTE_DIRENT_H = @ABSOLUTE_DIRENT_H@
-ABSOLUTE_FCNTL_H = @ABSOLUTE_FCNTL_H@
-ABSOLUTE_INTTYPES_H = @ABSOLUTE_INTTYPES_H@
-ABSOLUTE_NETINET_IN_H = @ABSOLUTE_NETINET_IN_H@
-ABSOLUTE_STDINT_H = @ABSOLUTE_STDINT_H@
-ABSOLUTE_STDIO_H = @ABSOLUTE_STDIO_H@
-ABSOLUTE_STDLIB_H = @ABSOLUTE_STDLIB_H@
-ABSOLUTE_STRING_H = @ABSOLUTE_STRING_H@
-ABSOLUTE_SYS_SOCKET_H = @ABSOLUTE_SYS_SOCKET_H@
-ABSOLUTE_SYS_STAT_H = @ABSOLUTE_SYS_STAT_H@
-ABSOLUTE_SYS_TIME_H = @ABSOLUTE_SYS_TIME_H@
-ABSOLUTE_TIME_H = @ABSOLUTE_TIME_H@
-ABSOLUTE_UNISTD_H = @ABSOLUTE_UNISTD_H@
-ABSOLUTE_WCHAR_H = @ABSOLUTE_WCHAR_H@
-ABSOLUTE_WCTYPE_H = @ABSOLUTE_WCTYPE_H@
-ACLOCAL = @ACLOCAL@
-ALLOCA = @ALLOCA@
-ALLOCA_H = @ALLOCA_H@
-AMTAR = @AMTAR@
-ARPA_INET_H = @ARPA_INET_H@
-AUTOCONF = @AUTOCONF@
-AUTOHEADER = @AUTOHEADER@
-AUTOMAKE = @AUTOMAKE@
-AWK = @AWK@
-BITSIZEOF_PTRDIFF_T = @BITSIZEOF_PTRDIFF_T@
-BITSIZEOF_SIG_ATOMIC_T = @BITSIZEOF_SIG_ATOMIC_T@
-BITSIZEOF_SIZE_T = @BITSIZEOF_SIZE_T@
-BITSIZEOF_WCHAR_T = @BITSIZEOF_WCHAR_T@
-BITSIZEOF_WINT_T = @BITSIZEOF_WINT_T@
-CC = @CC@
-CCDEPMODE = @CCDEPMODE@
-CFLAGS = @CFLAGS@
-CPP = @CPP@
-CPPFLAGS = @CPPFLAGS@
-CYGPATH_W = @CYGPATH_W@
-DEFAULT_POSIX2_VERSION = @DEFAULT_POSIX2_VERSION@
-DEFS = @DEFS@
-DEPDIR = @DEPDIR@
-DF_PROG = @DF_PROG@
-DIRENT_H = @DIRENT_H@
-ECHO_C = @ECHO_C@
-ECHO_N = @ECHO_N@
-ECHO_T = @ECHO_T@
-EGREP = @EGREP@
-EOVERFLOW = @EOVERFLOW@
-EXEEXT = @EXEEXT@
-FCNTL_H = @FCNTL_H@
-FNMATCH_H = @FNMATCH_H@
-GETLOADAVG_LIBS = @GETLOADAVG_LIBS@
-GETOPT_H = @GETOPT_H@
-GLIBC21 = @GLIBC21@
-GMSGFMT = @GMSGFMT@
-GMSGFMT_015 = @GMSGFMT_015@
-GNULIB_CHOWN = @GNULIB_CHOWN@
-GNULIB_DUP2 = @GNULIB_DUP2@
-GNULIB_FCHDIR = @GNULIB_FCHDIR@
-GNULIB_FPRINTF_POSIX = @GNULIB_FPRINTF_POSIX@
-GNULIB_FTRUNCATE = @GNULIB_FTRUNCATE@
-GNULIB_GETCWD = @GNULIB_GETCWD@
-GNULIB_GETLOGIN_R = @GNULIB_GETLOGIN_R@
-GNULIB_GETSUBOPT = @GNULIB_GETSUBOPT@
-GNULIB_IMAXABS = @GNULIB_IMAXABS@
-GNULIB_IMAXDIV = @GNULIB_IMAXDIV@
-GNULIB_MBSCASECMP = @GNULIB_MBSCASECMP@
-GNULIB_MBSCASESTR = @GNULIB_MBSCASESTR@
-GNULIB_MBSCHR = @GNULIB_MBSCHR@
-GNULIB_MBSCSPN = @GNULIB_MBSCSPN@
-GNULIB_MBSLEN = @GNULIB_MBSLEN@
-GNULIB_MBSNCASECMP = @GNULIB_MBSNCASECMP@
-GNULIB_MBSPBRK = @GNULIB_MBSPBRK@
-GNULIB_MBSPCASECMP = @GNULIB_MBSPCASECMP@
-GNULIB_MBSRCHR = @GNULIB_MBSRCHR@
-GNULIB_MBSSEP = @GNULIB_MBSSEP@
-GNULIB_MBSSPN = @GNULIB_MBSSPN@
-GNULIB_MBSSTR = @GNULIB_MBSSTR@
-GNULIB_MBSTOK_R = @GNULIB_MBSTOK_R@
-GNULIB_MEMMEM = @GNULIB_MEMMEM@
-GNULIB_MEMPCPY = @GNULIB_MEMPCPY@
-GNULIB_MEMRCHR = @GNULIB_MEMRCHR@
-GNULIB_MKDTEMP = @GNULIB_MKDTEMP@
-GNULIB_MKSTEMP = @GNULIB_MKSTEMP@
-GNULIB_PRINTF_POSIX = @GNULIB_PRINTF_POSIX@
-GNULIB_READLINK = @GNULIB_READLINK@
-GNULIB_SNPRINTF = @GNULIB_SNPRINTF@
-GNULIB_SPRINTF_POSIX = @GNULIB_SPRINTF_POSIX@
-GNULIB_STPCPY = @GNULIB_STPCPY@
-GNULIB_STPNCPY = @GNULIB_STPNCPY@
-GNULIB_STRCASESTR = @GNULIB_STRCASESTR@
-GNULIB_STRCHRNUL = @GNULIB_STRCHRNUL@
-GNULIB_STRDUP = @GNULIB_STRDUP@
-GNULIB_STRNDUP = @GNULIB_STRNDUP@
-GNULIB_STRNLEN = @GNULIB_STRNLEN@
-GNULIB_STRPBRK = @GNULIB_STRPBRK@
-GNULIB_STRSEP = @GNULIB_STRSEP@
-GNULIB_STRTOIMAX = @GNULIB_STRTOIMAX@
-GNULIB_STRTOK_R = @GNULIB_STRTOK_R@
-GNULIB_STRTOUMAX = @GNULIB_STRTOUMAX@
-GNULIB_VFPRINTF_POSIX = @GNULIB_VFPRINTF_POSIX@
-GNULIB_VPRINTF_POSIX = @GNULIB_VPRINTF_POSIX@
-GNULIB_VSNPRINTF = @GNULIB_VSNPRINTF@
-GNULIB_VSPRINTF_POSIX = @GNULIB_VSPRINTF_POSIX@
-GNU_PACKAGE = @GNU_PACKAGE@
-GREP = @GREP@
-HAVE_DECL_GETLOGIN_R = @HAVE_DECL_GETLOGIN_R@
-HAVE_DECL_IMAXABS = @HAVE_DECL_IMAXABS@
-HAVE_DECL_IMAXDIV = @HAVE_DECL_IMAXDIV@
-HAVE_DECL_MEMMEM = @HAVE_DECL_MEMMEM@
-HAVE_DECL_MEMRCHR = @HAVE_DECL_MEMRCHR@
-HAVE_DECL_SNPRINTF = @HAVE_DECL_SNPRINTF@
-HAVE_DECL_STRDUP = @HAVE_DECL_STRDUP@
-HAVE_DECL_STRNCASECMP = @HAVE_DECL_STRNCASECMP@
-HAVE_DECL_STRNDUP = @HAVE_DECL_STRNDUP@
-HAVE_DECL_STRNLEN = @HAVE_DECL_STRNLEN@
-HAVE_DECL_STRTOIMAX = @HAVE_DECL_STRTOIMAX@
-HAVE_DECL_STRTOK_R = @HAVE_DECL_STRTOK_R@
-HAVE_DECL_STRTOUMAX = @HAVE_DECL_STRTOUMAX@
-HAVE_DECL_VSNPRINTF = @HAVE_DECL_VSNPRINTF@
-HAVE_DUP2 = @HAVE_DUP2@
-HAVE_FTRUNCATE = @HAVE_FTRUNCATE@
-HAVE_GETSUBOPT = @HAVE_GETSUBOPT@
-HAVE_INTTYPES_H = @HAVE_INTTYPES_H@
-HAVE_LONG_LONG_INT = @HAVE_LONG_LONG_INT@
-HAVE_MEMPCPY = @HAVE_MEMPCPY@
-HAVE_MKDTEMP = @HAVE_MKDTEMP@
-HAVE_NETINET_IN_H = @HAVE_NETINET_IN_H@
-HAVE_READLINK = @HAVE_READLINK@
-HAVE_SIGNED_SIG_ATOMIC_T = @HAVE_SIGNED_SIG_ATOMIC_T@
-HAVE_SIGNED_WCHAR_T = @HAVE_SIGNED_WCHAR_T@
-HAVE_SIGNED_WINT_T = @HAVE_SIGNED_WINT_T@
-HAVE_STDINT_H = @HAVE_STDINT_H@
-HAVE_STPCPY = @HAVE_STPCPY@
-HAVE_STPNCPY = @HAVE_STPNCPY@
-HAVE_STRCASECMP = @HAVE_STRCASECMP@
-HAVE_STRCASESTR = @HAVE_STRCASESTR@
-HAVE_STRCHRNUL = @HAVE_STRCHRNUL@
-HAVE_STRNDUP = @HAVE_STRNDUP@
-HAVE_STRPBRK = @HAVE_STRPBRK@
-HAVE_STRSEP = @HAVE_STRSEP@
-HAVE_STRUCT_TIMEVAL = @HAVE_STRUCT_TIMEVAL@
-HAVE_SYS_BITYPES_H = @HAVE_SYS_BITYPES_H@
-HAVE_SYS_INTTYPES_H = @HAVE_SYS_INTTYPES_H@
-HAVE_SYS_SOCKET_H = @HAVE_SYS_SOCKET_H@
-HAVE_SYS_TIME_H = @HAVE_SYS_TIME_H@
-HAVE_SYS_TYPES_H = @HAVE_SYS_TYPES_H@
-HAVE_UNISTD_H = @HAVE_UNISTD_H@
-HAVE_UNSIGNED_LONG_LONG_INT = @HAVE_UNSIGNED_LONG_LONG_INT@
-HAVE_WCTYPE_H = @HAVE_WCTYPE_H@
-HAVE_WINSOCK2_H = @HAVE_WINSOCK2_H@
-HAVE_WINT_T = @HAVE_WINT_T@
-HAVE_WS2TCPIP_H = @HAVE_WS2TCPIP_H@
-HAVE__BOOL = @HAVE__BOOL@
-HELP2MAN = @HELP2MAN@
-INSTALL = @INSTALL@
-INSTALL_DATA = @INSTALL_DATA@
-INSTALL_PROGRAM = @INSTALL_PROGRAM@
-INSTALL_SCRIPT = @INSTALL_SCRIPT@
-INSTALL_STRIP_PROGRAM = @INSTALL_STRIP_PROGRAM@
-INTLLIBS = @INTLLIBS@
-INTL_MACOSX_LIBS = @INTL_MACOSX_LIBS@
-INTTYPES_H = @INTTYPES_H@
-KMEM_GROUP = @KMEM_GROUP@
-LDFLAGS = @LDFLAGS@
-LIBCOREUTILS_LIBDEPS = @LIBCOREUTILS_LIBDEPS@
-LIBCOREUTILS_LTLIBDEPS = @LIBCOREUTILS_LTLIBDEPS@
-LIBICONV = @LIBICONV@
-LIBINTL = @LIBINTL@
-LIBOBJS = @LIBOBJS@
-LIBS = @LIBS@
-LIB_ACL = @LIB_ACL@
-LIB_ACL_TRIVIAL = @LIB_ACL_TRIVIAL@
-LIB_CLOCK_GETTIME = @LIB_CLOCK_GETTIME@
-LIB_CRYPT = @LIB_CRYPT@
-LIB_EACCESS = @LIB_EACCESS@
-LIB_FDATASYNC = @LIB_FDATASYNC@
-LIB_GETHRXTIME = @LIB_GETHRXTIME@
-LIB_NANOSLEEP = @LIB_NANOSLEEP@
-LN_S = @LN_S@
-LTLIBICONV = @LTLIBICONV@
-LTLIBINTL = @LTLIBINTL@
-LTLIBOBJS = @LTLIBOBJS@
-MAKEINFO = @MAKEINFO@
-MAN = @MAN@
-MKDIR_P = @MKDIR_P@
-MSGFMT = @MSGFMT@
-MSGFMT_015 = @MSGFMT_015@
-MSGMERGE = @MSGMERGE@
-NEED_SETGID = @NEED_SETGID@
-NETINET_IN_H = @NETINET_IN_H@
-OBJEXT = @OBJEXT@
-OPTIONAL_BIN_PROGS = @OPTIONAL_BIN_PROGS@
-PACKAGE = @PACKAGE@
-PACKAGE_BUGREPORT = @PACKAGE_BUGREPORT@
-PACKAGE_NAME = @PACKAGE_NAME@
-PACKAGE_STRING = @PACKAGE_STRING@
-PACKAGE_TARNAME = @PACKAGE_TARNAME@
-PACKAGE_VERSION = @PACKAGE_VERSION@
-PATH_SEPARATOR = @PATH_SEPARATOR@
-PERL = @PERL@
-POSUB = @POSUB@
-POW_LIB = @POW_LIB@
-PRIPTR_PREFIX = @PRIPTR_PREFIX@
-PRI_MACROS_BROKEN = @PRI_MACROS_BROKEN@
-PTRDIFF_T_SUFFIX = @PTRDIFF_T_SUFFIX@
-RANLIB = @RANLIB@
-REPLACE_CHOWN = @REPLACE_CHOWN@
-REPLACE_FCHDIR = @REPLACE_FCHDIR@
-REPLACE_FPRINTF = @REPLACE_FPRINTF@
-REPLACE_GETCWD = @REPLACE_GETCWD@
-REPLACE_GETTIMEOFDAY = @REPLACE_GETTIMEOFDAY@
-REPLACE_LOCALTIME_R = @REPLACE_LOCALTIME_R@
-REPLACE_MKSTEMP = @REPLACE_MKSTEMP@
-REPLACE_NANOSLEEP = @REPLACE_NANOSLEEP@
-REPLACE_PRINTF = @REPLACE_PRINTF@
-REPLACE_SNPRINTF = @REPLACE_SNPRINTF@
-REPLACE_SPRINTF = @REPLACE_SPRINTF@
-REPLACE_STRPTIME = @REPLACE_STRPTIME@
-REPLACE_TIMEGM = @REPLACE_TIMEGM@
-REPLACE_VFPRINTF = @REPLACE_VFPRINTF@
-REPLACE_VPRINTF = @REPLACE_VPRINTF@
-REPLACE_VSNPRINTF = @REPLACE_VSNPRINTF@
-REPLACE_VSPRINTF = @REPLACE_VSPRINTF@
-SEQ_LIBM = @SEQ_LIBM@
-SET_MAKE = @SET_MAKE@
-SHELL = @SHELL@
-SIG_ATOMIC_T_SUFFIX = @SIG_ATOMIC_T_SUFFIX@
-SIZE_T_SUFFIX = @SIZE_T_SUFFIX@
-STDBOOL_H = @STDBOOL_H@
-STDINT_H = @STDINT_H@
-STRIP = @STRIP@
-SYS_SOCKET_H = @SYS_SOCKET_H@
-SYS_STAT_H = @SYS_STAT_H@
-SYS_TIME_H = @SYS_TIME_H@
-SYS_TIME_H_DEFINES_STRUCT_TIMESPEC = @SYS_TIME_H_DEFINES_STRUCT_TIMESPEC@
-TIME_H_DEFINES_STRUCT_TIMESPEC = @TIME_H_DEFINES_STRUCT_TIMESPEC@
-U = @U@
-USE_NLS = @USE_NLS@
-VERSION = @VERSION@
-WCHAR_H = @WCHAR_H@
-WCHAR_T_SUFFIX = @WCHAR_T_SUFFIX@
-WCTYPE_H = @WCTYPE_H@
-WINT_T_SUFFIX = @WINT_T_SUFFIX@
-XGETTEXT = @XGETTEXT@
-XGETTEXT_015 = @XGETTEXT_015@
-YACC = @YACC@
-YFLAGS = @YFLAGS@
-abs_builddir = @abs_builddir@
-abs_srcdir = @abs_srcdir@
-abs_top_builddir = @abs_top_builddir@
-abs_top_srcdir = @abs_top_srcdir@
-ac_ct_CC = @ac_ct_CC@
-am__include = @am__include@
-am__leading_dot = @am__leading_dot@
-am__quote = @am__quote@
-am__tar = @am__tar@
-am__untar = @am__untar@
-bindir = @bindir@
-build = @build@
-build_alias = @build_alias@
-build_cpu = @build_cpu@
-build_os = @build_os@
-build_vendor = @build_vendor@
-builddir = @builddir@
-datadir = @datadir@
-datarootdir = @datarootdir@
-docdir = @docdir@
-dvidir = @dvidir@
-exec_prefix = @exec_prefix@
-gl_LIBOBJS = @gl_LIBOBJS@
-gl_LTLIBOBJS = @gl_LTLIBOBJS@
-host = @host@
-host_alias = @host_alias@
-host_cpu = @host_cpu@
-host_os = @host_os@
-host_vendor = @host_vendor@
-htmldir = @htmldir@
-includedir = @includedir@
-infodir = @infodir@
-install_sh = @install_sh@
-libdir = @libdir@
-libexecdir = @libexecdir@
-localedir = @localedir@
-localstatedir = @localstatedir@
-mandir = @mandir@
-mkdir_p = @mkdir_p@
-oldincludedir = @oldincludedir@
-pdfdir = @pdfdir@
-prefix = @prefix@
-program_transform_name = @program_transform_name@
-psdir = @psdir@
-sbindir = @sbindir@
-sharedstatedir = @sharedstatedir@
-srcdir = @srcdir@
-sysconfdir = @sysconfdir@
-target_alias = @target_alias@
-top_builddir = @top_builddir@
-top_srcdir = @top_srcdir@
-TESTS = \
- default-no-deref \
- basic \
- deref \
- no-x \
- posix-H \
- recurse
-
-EXTRA_DIST = $(TESTS)
-TESTS_ENVIRONMENT = \
- host_triplet=$(host_triplet) \
- CU_TEST_NAME=`basename $(abs_srcdir)`,$$tst \
- PATH="$(VG_PATH_PREFIX)`pwd`/../../src$(PATH_SEPARATOR)$$PATH"
-
-all: all-am
-
-.SUFFIXES:
-$(srcdir)/Makefile.in: $(srcdir)/Makefile.am $(am__configure_deps)
- @for dep in $?; do \
- case '$(am__configure_deps)' in \
- *$$dep*) \
- cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh \
- && exit 0; \
- exit 1;; \
- esac; \
- done; \
- echo ' cd $(top_srcdir) && $(AUTOMAKE) --gnu tests/chgrp/Makefile'; \
- cd $(top_srcdir) && \
- $(AUTOMAKE) --gnu tests/chgrp/Makefile
-.PRECIOUS: Makefile
-Makefile: $(srcdir)/Makefile.in $(top_builddir)/config.status
- @case '$?' in \
- *config.status*) \
- cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh;; \
- *) \
- echo ' cd $(top_builddir) && $(SHELL) ./config.status $(subdir)/$@ $(am__depfiles_maybe)'; \
- cd $(top_builddir) && $(SHELL) ./config.status $(subdir)/$@ $(am__depfiles_maybe);; \
- esac;
-
-$(top_builddir)/config.status: $(top_srcdir)/configure $(CONFIG_STATUS_DEPENDENCIES)
- cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh
-
-$(top_srcdir)/configure: $(am__configure_deps)
- cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh
-$(ACLOCAL_M4): $(am__aclocal_m4_deps)
- cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh
-tags: TAGS
-TAGS:
-
-ctags: CTAGS
-CTAGS:
-
-
-check-TESTS: $(TESTS)
- @failed=0; all=0; xfail=0; xpass=0; skip=0; ws='[ ]'; \
- srcdir=$(srcdir); export srcdir; \
- list=' $(TESTS) '; \
- if test -n "$$list"; then \
- for tst in $$list; do \
- if test -f ./$$tst; then dir=./; \
- elif test -f $$tst; then dir=; \
- else dir="$(srcdir)/"; fi; \
- if $(TESTS_ENVIRONMENT) $${dir}$$tst; then \
- all=`expr $$all + 1`; \
- case " $(XFAIL_TESTS) " in \
- *$$ws$$tst$$ws*) \
- xpass=`expr $$xpass + 1`; \
- failed=`expr $$failed + 1`; \
- echo "XPASS: $$tst"; \
- ;; \
- *) \
- echo "PASS: $$tst"; \
- ;; \
- esac; \
- elif test $$? -ne 77; then \
- all=`expr $$all + 1`; \
- case " $(XFAIL_TESTS) " in \
- *$$ws$$tst$$ws*) \
- xfail=`expr $$xfail + 1`; \
- echo "XFAIL: $$tst"; \
- ;; \
- *) \
- failed=`expr $$failed + 1`; \
- echo "FAIL: $$tst"; \
- ;; \
- esac; \
- else \
- skip=`expr $$skip + 1`; \
- echo "SKIP: $$tst"; \
- fi; \
- done; \
- if test "$$failed" -eq 0; then \
- if test "$$xfail" -eq 0; then \
- banner="All $$all tests passed"; \
- else \
- banner="All $$all tests behaved as expected ($$xfail expected failures)"; \
- fi; \
- else \
- if test "$$xpass" -eq 0; then \
- banner="$$failed of $$all tests failed"; \
- else \
- banner="$$failed of $$all tests did not behave as expected ($$xpass unexpected passes)"; \
- fi; \
- fi; \
- dashes="$$banner"; \
- skipped=""; \
- if test "$$skip" -ne 0; then \
- skipped="($$skip tests were not run)"; \
- test `echo "$$skipped" | wc -c` -le `echo "$$banner" | wc -c` || \
- dashes="$$skipped"; \
- fi; \
- report=""; \
- if test "$$failed" -ne 0 && test -n "$(PACKAGE_BUGREPORT)"; then \
- report="Please report to $(PACKAGE_BUGREPORT)"; \
- test `echo "$$report" | wc -c` -le `echo "$$banner" | wc -c` || \
- dashes="$$report"; \
- fi; \
- dashes=`echo "$$dashes" | sed s/./=/g`; \
- echo "$$dashes"; \
- echo "$$banner"; \
- test -z "$$skipped" || echo "$$skipped"; \
- test -z "$$report" || echo "$$report"; \
- echo "$$dashes"; \
- test "$$failed" -eq 0; \
- else :; fi
-
-distdir: $(DISTFILES)
- @srcdirstrip=`echo "$(srcdir)" | sed 's/[].[^$$\\*]/\\\\&/g'`; \
- topsrcdirstrip=`echo "$(top_srcdir)" | sed 's/[].[^$$\\*]/\\\\&/g'`; \
- list='$(DISTFILES)'; \
- dist_files=`for file in $$list; do echo $$file; done | \
- sed -e "s|^$$srcdirstrip/||;t" \
- -e "s|^$$topsrcdirstrip/|$(top_builddir)/|;t"`; \
- case $$dist_files in \
- */*) $(MKDIR_P) `echo "$$dist_files" | \
- sed '/\//!d;s|^|$(distdir)/|;s,/[^/]*$$,,' | \
- sort -u` ;; \
- esac; \
- for file in $$dist_files; do \
- if test -f $$file || test -d $$file; then d=.; else d=$(srcdir); fi; \
- if test -d $$d/$$file; then \
- dir=`echo "/$$file" | sed -e 's,/[^/]*$$,,'`; \
- if test -d $(srcdir)/$$file && test $$d != $(srcdir); then \
- cp -pR $(srcdir)/$$file $(distdir)$$dir || exit 1; \
- fi; \
- cp -pR $$d/$$file $(distdir)$$dir || exit 1; \
- else \
- test -f $(distdir)/$$file \
- || cp -p $$d/$$file $(distdir)/$$file \
- || exit 1; \
- fi; \
- done
-check-am: all-am
- $(MAKE) $(AM_MAKEFLAGS) check-TESTS
-check: check-am
-all-am: Makefile
-installdirs:
-install: install-am
-install-exec: install-exec-am
-install-data: install-data-am
-uninstall: uninstall-am
-
-install-am: all-am
- @$(MAKE) $(AM_MAKEFLAGS) install-exec-am install-data-am
-
-installcheck: installcheck-am
-install-strip:
- $(MAKE) $(AM_MAKEFLAGS) INSTALL_PROGRAM="$(INSTALL_STRIP_PROGRAM)" \
- install_sh_PROGRAM="$(INSTALL_STRIP_PROGRAM)" INSTALL_STRIP_FLAG=-s \
- `test -z '$(STRIP)' || \
- echo "INSTALL_PROGRAM_ENV=STRIPPROG='$(STRIP)'"` install
-mostlyclean-generic:
-
-clean-generic:
-
-distclean-generic:
- -test -z "$(CONFIG_CLEAN_FILES)" || rm -f $(CONFIG_CLEAN_FILES)
-
-maintainer-clean-generic:
- @echo "This command is intended for maintainers to use"
- @echo "it deletes files that may require special tools to rebuild."
-clean: clean-am
-
-clean-am: clean-generic mostlyclean-am
-
-distclean: distclean-am
- -rm -f Makefile
-distclean-am: clean-am distclean-generic
-
-dvi: dvi-am
-
-dvi-am:
-
-html: html-am
-
-info: info-am
-
-info-am:
-
-install-data-am:
-
-install-dvi: install-dvi-am
-
-install-exec-am:
-
-install-html: install-html-am
-
-install-info: install-info-am
-
-install-man:
-
-install-pdf: install-pdf-am
-
-install-ps: install-ps-am
-
-installcheck-am:
-
-maintainer-clean: maintainer-clean-am
- -rm -f Makefile
-maintainer-clean-am: distclean-am maintainer-clean-generic
-
-mostlyclean: mostlyclean-am
-
-mostlyclean-am: mostlyclean-generic
-
-pdf: pdf-am
-
-pdf-am:
-
-ps: ps-am
-
-ps-am:
-
-uninstall-am:
-
-.MAKE: install-am install-strip
-
-.PHONY: all all-am check check-TESTS check-am clean clean-generic \
- distclean distclean-generic distdir dvi dvi-am html html-am \
- info info-am install install-am install-data install-data-am \
- install-dvi install-dvi-am install-exec install-exec-am \
- install-html install-html-am install-info install-info-am \
- install-man install-pdf install-pdf-am install-ps \
- install-ps-am install-strip installcheck installcheck-am \
- installdirs maintainer-clean maintainer-clean-generic \
- mostlyclean mostlyclean-generic pdf pdf-am ps ps-am uninstall \
- uninstall-am
-
-# Tell versions [3.59,3.63) of GNU make to not export all variables.
-# Otherwise a system limit (for SysV at least) may be exceeded.
-.NOEXPORT:
diff --git a/tests/chgrp/basic b/tests/chgrp/basic
deleted file mode 100755
index 475f12f..0000000
--- a/tests/chgrp/basic
+++ /dev/null
@@ -1,132 +0,0 @@
-#!/bin/sh
-# make sure chgrp is reasonable
-
-# Copyright (C) 2000-2007 Free Software Foundation, Inc.
-
-# This program is free software; you can redistribute it and/or modify
-# it under the terms of the GNU General Public License as published by
-# the Free Software Foundation; either version 2 of the License, or
-# (at your option) any later version.
-
-# This program is distributed in the hope that it will be useful,
-# but WITHOUT ANY WARRANTY; without even the implied warranty of
-# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
-# GNU General Public License for more details.
-
-# You should have received a copy of the GNU General Public License
-# along with this program; if not, write to the Free Software
-# Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA
-# 02110-1301, USA.
-
-if test "$VERBOSE" = yes; then
- set -x
- chgrp --version
-fi
-
-. $srcdir/../envvar-check
-. $srcdir/../lang-default
-. $srcdir/../group-names
-
-pwd=`pwd`
-tmp=basic.$$
-trap 'status=$?; cd "$pwd" && rm -rf $tmp && exit $status' 0
-trap '(exit $?); exit' 1 2 13 15
-
-framework_failure=0
-mkdir $tmp || framework_failure=1
-cd $tmp || framework_failure=1
-
-if test $framework_failure = 1; then
- echo 'failure in testing framework' 1>&2
- (exit 1); exit 1
-fi
-
-fail=0
-
-set _ $groups; shift
-g1=$1
-g2=$2
-mkdir d
-touch f f2 d/f3
-chgrp $g1 f || fail=1
-chgrp $g2 f || fail=1
-chgrp $g2 f2 || fail=1
-chgrp -R $g1 d || fail=1
-
-d_files='d d/f3'
-
-chgrp $g1 f || fail=1 ; test `stat --p=%g f` = $g1 || fail=1
-chgrp $g2 f || fail=1 ; test `stat --p=%g f` = $g2 || fail=1
-chgrp $g2 f || fail=1 ; test `stat --p=%g f` = $g2 || fail=1
-chgrp '' f || fail=1 ; test `stat --p=%g f` = $g2 || fail=1
-chgrp $g1 f || fail=1 ; test `stat --p=%g f` = $g1 || fail=1
-chgrp $g1 f || fail=1 ; test `stat --p=%g f` = $g1 || fail=1
-chgrp --reference=f2 f ; test `stat --p=%g f` = $g2 || fail=1
-
-chgrp -R $g2 d ||fail=1; test `stat --p=%g: $d_files` = "$g2:$g2:" || fail=1
-chgrp -R $g1 d ||fail=1; test `stat --p=%g: $d_files` = "$g1:$g1:" || fail=1
-chgrp -R $g2 d ||fail=1; test `stat --p=%g: $d_files` = "$g2:$g2:" || fail=1
-chgrp -R $g1 d ||fail=1; test `stat --p=%g: $d_files` = "$g1:$g1:" || fail=1
-chgrp $g2 d ||fail=1; test `stat --p=%g: $d_files` = "$g2:$g1:" || fail=1
-
-rm -f f
-touch f
-ln -s f symlink
-chgrp $g1 f
-test `stat --printf=%g f` = $g1 || fail=1
-
-# This should not change the group of f.
-chgrp -h $g2 symlink
-test `stat --printf=%g f` = $g1 || fail=1
-
-# Don't fail if chgrp failed to set the group of a symlink.
-# Some systems don't support that.
-test `stat --printf=%g symlink` = $g2 ||
- echo 'info: failed to set group of symlink' 1>&2
-
-chown --from=:$g1 :$g2 f; test `stat --printf=%g f` = $g2 || fail=1
-
-# This *should* change the group of f.
-# Though note that the diagnostic is misleading in that
-# it says the `group of `symlink'' has been changed.
-chgrp $g1 symlink; test `stat --printf=%g f` = $g1 || fail=1
-chown --from=:$g1 :$g2 f; test `stat --printf=%g f` = $g2 || fail=1
-
-# If -R is specified without -H or L, -h is assumed.
-chgrp -h $g1 f symlink; test `stat --printf=%g symlink` = $g1 || fail=1
-chgrp -R $g2 symlink
-chown --from=:$g1 :$g2 f; test `stat --printf=%g f` = $g2 || fail=1
-
-# Make sure we can change the group of inaccessible files.
-chmod a-r f
-chown --from=:$g2 :$g1 f; test `stat --printf=%g f` = $g1 || fail=1
-chmod 0 f
-chown --from=:$g1 :$g2 f; test `stat --printf=%g f` = $g2 || fail=1
-
-# chown() must not be optimized away even when
-# the file's owner and group already have the desired value.
-rm -f f g
-touch f g
-chgrp $g1 f g
-chgrp $g2 g
-sleep 1
-chgrp $g1 f
-
-# The following no-change chgrp command is supposed to update f's ctime,
-# but on OpenBSD and Darwin 7.9.0 and 8.8.0 (aka MacOS X 10.3.9 and 10.4),
-# it appears to be a no-op for some file system types (at least NFS) so g's
-# ctime is more recent. This is not a big deal;
-# this test works fine when the files are on a local file system (/tmp).
-chgrp '' f
-test "`ls -C -c -t f g`" = 'f g' || \
- {
- case $host_triplet in
- *openbsd*) echo ignoring known OpenBSD-specific chgrp failure 1>&2 ;;
- *darwin7.9.*|*darwin8.8.*)
- echo ignoring known MacOS X-specific chgrp failure 1>&2 ;;
- *) echo $host_triplet: no-change chgrp failed to update ctime 1>&2;
- fail=1 ;;
- esac
- }
-
-(exit $fail); exit $fail
diff --git a/tests/chgrp/basic.sh b/tests/chgrp/basic.sh
new file mode 100755
index 0000000..b237b14
--- /dev/null
+++ b/tests/chgrp/basic.sh
@@ -0,0 +1,110 @@
+#!/bin/sh
+# make sure chgrp is reasonable
+
+# Copyright (C) 2000-2016 Free Software Foundation, Inc.
+
+# This program is free software: you can redistribute it and/or modify
+# it under the terms of the GNU General Public License as published by
+# the Free Software Foundation, either version 3 of the License, or
+# (at your option) any later version.
+
+# This program is distributed in the hope that it will be useful,
+# but WITHOUT ANY WARRANTY; without even the implied warranty of
+# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
+# GNU General Public License for more details.
+
+# You should have received a copy of the GNU General Public License
+# along with this program. If not, see <http://www.gnu.org/licenses/>.
+
+. "${srcdir=.}/tests/init.sh"; path_prepend_ ./src
+print_ver_ chgrp
+require_membership_in_two_groups_
+
+
+set _ $groups; shift
+g1=$1
+g2=$2
+mkdir d
+touch f f2 d/f3
+chgrp $g1 f || fail=1
+chgrp $g2 f || fail=1
+chgrp $g2 f2 || fail=1
+chgrp -R $g1 d || fail=1
+
+d_files='d d/f3'
+
+chgrp $g1 f || fail=1 ; test $(stat --p=%g f) = $g1 || fail=1
+chgrp $g2 f || fail=1 ; test $(stat --p=%g f) = $g2 || fail=1
+chgrp $g2 f || fail=1 ; test $(stat --p=%g f) = $g2 || fail=1
+chgrp '' f || fail=1 ; test $(stat --p=%g f) = $g2 || fail=1
+chgrp $g1 f || fail=1 ; test $(stat --p=%g f) = $g1 || fail=1
+chgrp $g1 f || fail=1 ; test $(stat --p=%g f) = $g1 || fail=1
+chgrp --reference=f2 f ; test $(stat --p=%g f) = $g2 || fail=1
+
+chgrp -R $g2 d ||fail=1; test $(stat --p=%g: $d_files) = "$g2:$g2:" || fail=1
+chgrp -R $g1 d ||fail=1; test $(stat --p=%g: $d_files) = "$g1:$g1:" || fail=1
+chgrp -R $g2 d ||fail=1; test $(stat --p=%g: $d_files) = "$g2:$g2:" || fail=1
+chgrp -R $g1 d ||fail=1; test $(stat --p=%g: $d_files) = "$g1:$g1:" || fail=1
+chgrp $g2 d ||fail=1; test $(stat --p=%g: $d_files) = "$g2:$g1:" || fail=1
+
+rm -f f
+touch f
+ln -s f symlink
+chgrp $g1 f
+test $(stat --printf=%g f) = $g1 || fail=1
+
+# This should not change the group of f.
+chgrp -h $g2 symlink
+test $(stat --printf=%g f) = $g1 || fail=1
+
+# Don't fail if chgrp failed to set the group of a symlink.
+# Some systems don't support that.
+test $(stat --printf=%g symlink) = $g2 ||
+ echo 'info: failed to set group of symlink' 1>&2
+
+chown --from=:$g1 :$g2 f; test $(stat --printf=%g f) = $g2 || fail=1
+
+# This *should* change the group of f.
+# Though note that the diagnostic is misleading in that
+# it says the 'group of 'symlink'' has been changed.
+chgrp $g1 symlink; test $(stat --printf=%g f) = $g1 || fail=1
+chown --from=:$g1 :$g2 f; test $(stat --printf=%g f) = $g2 || fail=1
+
+# If -R is specified without -H or L, -h is assumed.
+chgrp -h $g1 f symlink; test $(stat --printf=%g symlink) = $g1 || fail=1
+chgrp -R $g2 symlink
+chown --from=:$g1 :$g2 f; test $(stat --printf=%g f) = $g2 || fail=1
+
+# Make sure we can change the group of inaccessible files.
+chmod a-r f
+chown --from=:$g2 :$g1 f; test $(stat --printf=%g f) = $g1 || fail=1
+chmod 0 f
+chown --from=:$g1 :$g2 f; test $(stat --printf=%g f) = $g2 || fail=1
+
+# chown() must not be optimized away even when
+# the file's owner and group already have the desired value.
+rm -f f g
+touch f g
+chgrp $g1 f g
+chgrp $g2 g
+sleep 1
+chgrp $g1 f
+
+# The following no-change chgrp command is supposed to update f's ctime,
+# but on OpenBSD and Darwin 7.9.0-8.11.1 (aka MacOS X 10.3.9 - 10.4.11)
+# it appears to be a no-op for some file system types (at least NFS) so g's
+# ctime is more recent. This is not a big deal;
+# this test works fine when the files are on a local file system (/tmp).
+chgrp '' f
+test "$(ls -C -c -t f g)" = 'f g' || \
+ {
+ case $host_triplet in
+ *openbsd*) echo ignoring known OpenBSD-specific chgrp failure 1>&2 ;;
+ *darwin7.9.*|*darwin8.*)
+ echo ignoring known MacOS X-specific chgrp failure 1>&2 ;;
+ *) echo $host_triplet: no-change chgrp failed to update ctime 1>&2;
+ fail=1 ;;
+ esac
+ }
+
+Exit $fail
diff --git a/tests/chgrp/default-no-deref b/tests/chgrp/default-no-deref
deleted file mode 100755
index d2b6753..0000000
--- a/tests/chgrp/default-no-deref
+++ /dev/null
@@ -1,51 +0,0 @@
-#!/bin/sh
-# Ensure that chgrp -R does not dereference symlinks.
-
-# Copyright (C) 2006 Free Software Foundation, Inc.
-
-# This program is free software; you can redistribute it and/or modify
-# it under the terms of the GNU General Public License as published by
-# the Free Software Foundation; either version 2 of the License, or
-# (at your option) any later version.
-
-# This program is distributed in the hope that it will be useful,
-# but WITHOUT ANY WARRANTY; without even the implied warranty of
-# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
-# GNU General Public License for more details.
-
-# You should have received a copy of the GNU General Public License
-# along with this program; if not, write to the Free Software
-# Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA
-# 02110-1301, USA.
-
-if test "$VERBOSE" = yes; then
- set -x
- chgrp --version
-fi
-
-. $srcdir/../group-names
-set _ $groups; shift
-g2=$2
-
-pwd=`pwd`
-t0=`echo "$0"|sed 's,.*/,,'`.tmp; tmp=$t0/$$
-trap 'status=$?; cd "$pwd" && chmod -R u+rwx $t0 && rm -rf $t0 && exit $status' 0
-trap '(exit $?); exit $?' 1 2 13 15
-
-framework_failure=0
-mkdir -p $tmp || framework_failure=1
-cd $tmp || framework_failure=1
-mkdir d && touch f && ln -s ../f d/s || framework_failure=1
-
-if test $framework_failure = 1; then
- echo "$0: failure in testing framework" 1>&2
- (exit 1); exit 1
-fi
-
-fail=0
-
-g_init=`stat --printf=%g f`
-chgrp -R $g2 d || fail=1
-test `stat --printf=%g f` = $g_init || fail=1
-
-(exit $fail); exit $fail
diff --git a/tests/chgrp/default-no-deref.sh b/tests/chgrp/default-no-deref.sh
new file mode 100755
index 0000000..eac0780
--- /dev/null
+++ b/tests/chgrp/default-no-deref.sh
@@ -0,0 +1,33 @@
+#!/bin/sh
+# Ensure that chgrp -R does not dereference symlinks.
+
+# Copyright (C) 2006-2016 Free Software Foundation, Inc.
+
+# This program is free software: you can redistribute it and/or modify
+# it under the terms of the GNU General Public License as published by
+# the Free Software Foundation, either version 3 of the License, or
+# (at your option) any later version.
+
+# This program is distributed in the hope that it will be useful,
+# but WITHOUT ANY WARRANTY; without even the implied warranty of
+# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
+# GNU General Public License for more details.
+
+# You should have received a copy of the GNU General Public License
+# along with this program. If not, see <http://www.gnu.org/licenses/>.
+
+. "${srcdir=.}/tests/init.sh"; path_prepend_ ./src
+print_ver_ chgrp
+require_membership_in_two_groups_
+
+set _ $groups; shift
+g2=$2
+
+mkdir d && touch f && ln -s ../f d/s || framework_failure_
+
+
+g_init=$(stat --printf=%g f)
+chgrp -R $g2 d || fail=1
+test $(stat --printf=%g f) = $g_init || fail=1
+
+Exit $fail
diff --git a/tests/chgrp/deref b/tests/chgrp/deref
deleted file mode 100755
index 413ae22..0000000
--- a/tests/chgrp/deref
+++ /dev/null
@@ -1,84 +0,0 @@
-#!/bin/sh
-# see if chgrp can change the group of a symlink
-
-# Copyright (C) 2000, 2004, 2005, 2006 Free Software Foundation, Inc.
-
-# This program is free software; you can redistribute it and/or modify
-# it under the terms of the GNU General Public License as published by
-# the Free Software Foundation; either version 2 of the License, or
-# (at your option) any later version.
-
-# This program is distributed in the hope that it will be useful,
-# but WITHOUT ANY WARRANTY; without even the implied warranty of
-# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
-# GNU General Public License for more details.
-
-# You should have received a copy of the GNU General Public License
-# along with this program; if not, write to the Free Software
-# Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA
-# 02110-1301, USA.
-
-if test "$VERBOSE" = yes; then
- set -x
- chgrp --version
-fi
-
-. $srcdir/../group-names
-
-pwd=`pwd`
-tmp=slink.$$
-trap 'status=$?; cd "$pwd" && rm -rf $tmp && exit $status' 0
-trap '(exit $?); exit' 1 2 13 15
-
-framework_failure=0
-mkdir $tmp || framework_failure=1
-cd $tmp || framework_failure=1
-
-if test $framework_failure = 1; then
- echo 'failure in testing framework' 1>&2
- (exit 1); exit 1
-fi
-
-set _ $groups; shift
-g1=$1
-g2=$2
-
-touch f
-ln -s f symlink
-
-chgrp -h $g2 symlink 2> /dev/null
-set _ `ls -ln symlink`
-g=$5
-test "$g" = $g2 || {
- cat <<EOF 1>&2
-$0: skipping this test; your system doesn't support changing
-the owner or group of a symbolic link.
-EOF
- (exit 77); exit 77
-}
-
-fail=0
-
-chgrp $g1 f
-set _ `ls -ln f`; g=$5; test "$g" = $g1 || fail=1
-
-chgrp -h $g2 symlink || fail=1
-set _ `ls -ln f`; g=$5; test "$g" = $g1 || fail=1
-set _ `ls -ln symlink`; g=$5; test "$g" = $g2 || fail=1
-
-# This should not change the group of f.
-chgrp -h $g2 symlink || fail=1
-set _ `ls -ln f`; g=$5; test "$g" = $g1 || fail=1
-set _ `ls -ln symlink`; g=$5; test "$g" = $g2 || fail=1
-
-chgrp $g2 f
-set _ `ls -ln f`; g=$5; test "$g" = $g2 || fail=1
-
-# This *should* change the group of f.
-# Though note that the diagnostic you'd get with -c is misleading in that
-# it says the `group of `symlink'' has been changed.
-chgrp --dereference $g1 symlink
-set _ `ls -ln f`; g=$5; test "$g" = $g1 || fail=1
-set _ `ls -ln symlink`; g=$5; test "$g" = $g2 || fail=1
-
-(exit $fail); exit $fail
diff --git a/tests/chgrp/deref.sh b/tests/chgrp/deref.sh
new file mode 100755
index 0000000..a3dd507
--- /dev/null
+++ b/tests/chgrp/deref.sh
@@ -0,0 +1,60 @@
+#!/bin/sh
+# see if chgrp can change the group of a symlink
+
+# Copyright (C) 2000-2016 Free Software Foundation, Inc.
+
+# This program is free software: you can redistribute it and/or modify
+# it under the terms of the GNU General Public License as published by
+# the Free Software Foundation, either version 3 of the License, or
+# (at your option) any later version.
+
+# This program is distributed in the hope that it will be useful,
+# but WITHOUT ANY WARRANTY; without even the implied warranty of
+# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
+# GNU General Public License for more details.
+
+# You should have received a copy of the GNU General Public License
+# along with this program. If not, see <http://www.gnu.org/licenses/>.
+
+. "${srcdir=.}/tests/init.sh"; path_prepend_ ./src
+print_ver_ chgrp
+require_membership_in_two_groups_
+
+set _ $groups; shift
+g1=$1
+g2=$2
+
+touch f
+ln -s f symlink
+
+chgrp -h $g2 symlink 2> /dev/null
+set _ $(ls -ln symlink)
+g=$5
+test "$g" = $g2 ||
+ skip_ "your system doesn't support changing the owner or group" \
+ "of a symbolic link."
+
+
+chgrp $g1 f
+set _ $(ls -ln f); g=$5; test "$g" = $g1 || fail=1
+
+chgrp -h $g2 symlink || fail=1
+set _ $(ls -ln f); g=$5; test "$g" = $g1 || fail=1
+set _ $(ls -ln symlink); g=$5; test "$g" = $g2 || fail=1
+
+# This should not change the group of f.
+chgrp -h $g2 symlink || fail=1
+set _ $(ls -ln f); g=$5; test "$g" = $g1 || fail=1
+set _ $(ls -ln symlink); g=$5; test "$g" = $g2 || fail=1
+
+chgrp $g2 f
+set _ $(ls -ln f); g=$5; test "$g" = $g2 || fail=1
+
+# This *should* change the group of f.
+# Though note that the diagnostic you'd get with -c is misleading in that
+# it says the 'group of 'symlink'' has been changed.
+chgrp --dereference $g1 symlink
+set _ $(ls -ln f); g=$5; test "$g" = $g1 || fail=1
+set _ $(ls -ln symlink); g=$5; test "$g" = $g2 || fail=1
+
+Exit $fail
diff --git a/tests/chgrp/no-x b/tests/chgrp/no-x
deleted file mode 100755
index e9c702d..0000000
--- a/tests/chgrp/no-x
+++ /dev/null
@@ -1,76 +0,0 @@
-#!/bin/sh
-# Make sure chgrp gives the right diagnostic for a readable,
-# but inaccessible directory.
-
-# Copyright (C) 2003, 2006 Free Software Foundation, Inc.
-
-# This program is free software; you can redistribute it and/or modify
-# it under the terms of the GNU General Public License as published by
-# the Free Software Foundation; either version 2 of the License, or
-# (at your option) any later version.
-
-# This program is distributed in the hope that it will be useful,
-# but WITHOUT ANY WARRANTY; without even the implied warranty of
-# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
-# GNU General Public License for more details.
-
-# You should have received a copy of the GNU General Public License
-# along with this program; if not, write to the Free Software
-# Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA
-# 02110-1301, USA.
-
-if test "$VERBOSE" = yes; then
- set -x
- chgrp --version
-fi
-
-. $srcdir/../group-names
-set _ $groups; shift
-g1=$1
-g2=$2
-
-. $srcdir/../lang-default
-PRIV_CHECK_ARG=require-non-root . $srcdir/../priv-check
-
-pwd=`pwd`
-t0=`echo "$0"|sed 's,.*/,,'`.tmp; tmp=$t0/$$
-trap 'status=$?; cd "$pwd" && chmod -R u+rwx $t0 && rm -rf $t0 && exit $status' 0
-trap '(exit $?); exit $?' 1 2 13 15
-
-framework_failure=0
-mkdir -p $tmp || framework_failure=1
-cd $tmp || framework_failure=1
-mkdir -p d/no-x/y || framework_failure=1
-chmod u=rw d/no-x || framework_failure=1
-
-if test $framework_failure = 1; then
- echo "$0: failure in testing framework" 1>&2
- (exit 1); exit 1
-fi
-
-fail=0
-
-# This must exit nonzero.
-chgrp -R $g2 d >/dev/null 2>out && fail=1
-cat <<\EOF > exp
-chgrp: `d/no-x': Permission denied
-EOF
-
-# With native fdopendir, du uses a different code path.
-cat <<\EOF > exp-native-fdopendir
-chgrp: cannot access `d/no-x/y': Permission denied
-EOF
-
-if cmp out exp >/dev/null 2>&1; then
- :
-else
- if cmp out exp-native-fdopendir; then
- :
- else
- fail=1
- fi
-fi
-
-test $fail = 1 && diff out exp 2> /dev/null
-
-(exit $fail); exit $fail
diff --git a/tests/chgrp/no-x.sh b/tests/chgrp/no-x.sh
new file mode 100755
index 0000000..c42a146
--- /dev/null
+++ b/tests/chgrp/no-x.sh
@@ -0,0 +1,54 @@
+#!/bin/sh
+# Make sure chgrp gives the right diagnostic for a readable,
+# but inaccessible directory.
+
+# Copyright (C) 2003-2016 Free Software Foundation, Inc.
+
+# This program is free software: you can redistribute it and/or modify
+# it under the terms of the GNU General Public License as published by
+# the Free Software Foundation, either version 3 of the License, or
+# (at your option) any later version.
+
+# This program is distributed in the hope that it will be useful,
+# but WITHOUT ANY WARRANTY; without even the implied warranty of
+# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
+# GNU General Public License for more details.
+
+# You should have received a copy of the GNU General Public License
+# along with this program. If not, see <http://www.gnu.org/licenses/>.
+
+. "${srcdir=.}/tests/init.sh"; path_prepend_ ./src
+print_ver_ chgrp
+require_membership_in_two_groups_
+skip_if_root_
+
+set _ $groups; shift
+g1=$1
+g2=$2
+
+mkdir -p d/no-x/y || framework_failure_
+chmod u=rw d/no-x || framework_failure_
+
+
+# This must exit nonzero.
+chgrp -R $g2 d >/dev/null 2>out && fail=1
+
+prog=chgrp
+# NOTE: this code is the same for all tests/*/no-x tests.
+# Depending on whether fts is using native fdopendir, we see one
+# of the following diagnostics (note also the /y suffix in one case):
+# prog: 'd/no-x': Permission denied
+# prog: cannot access 'd/no-x/y': Permission denied
+# prog: cannot read directory 'd/no-x': Permission denied
+# Convert either of the latter two to the first one.
+sed "s/^$prog: cannot access /$prog: /" out > t && mv t out
+sed "s/^$prog: cannot read directory /$prog: /" out > t && mv t out
+sed 's,d/no-x/y,d/no-x,' out > t && mv t out
+
+cat <<EOF > exp
+$prog: 'd/no-x': Permission denied
+EOF
+
+compare exp out || fail=1
+
+Exit $fail
diff --git a/tests/chgrp/posix-H b/tests/chgrp/posix-H
deleted file mode 100755
index b8d1a8e..0000000
--- a/tests/chgrp/posix-H
+++ /dev/null
@@ -1,89 +0,0 @@
-#!/bin/sh
-# Test POSIX-mandated -H option.
-
-# Copyright (C) 2003, 2004, 2005, 2006 Free Software Foundation, Inc.
-
-# This program is free software; you can redistribute it and/or modify
-# it under the terms of the GNU General Public License as published by
-# the Free Software Foundation; either version 2 of the License, or
-# (at your option) any later version.
-
-# This program is distributed in the hope that it will be useful,
-# but WITHOUT ANY WARRANTY; without even the implied warranty of
-# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
-# GNU General Public License for more details.
-
-# You should have received a copy of the GNU General Public License
-# along with this program; if not, write to the Free Software
-# Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA
-# 02110-1301, USA.
-
-if test "$VERBOSE" = yes; then
- set -x
- chgrp --version
-fi
-
-. $srcdir/../group-names
-set _ $groups; shift
-g1=$1
-g2=$2
-
-pwd=`pwd`
-t0=`echo "$0"|sed 's,.*/,,'`.tmp; tmp=$t0/$$
-trap 'status=$?; cd "$pwd" && chmod -R u+rwx $t0 && rm -rf $t0 && exit $status' 0
-trap '(exit $?); exit $?' 1 2 13 15
-
-framework_failure=0
-mkdir -p $tmp || framework_failure=1
-cd $tmp || framework_failure=1
-
-mkdir 1 2 3 || framework_failure=1
-touch 1/1F 2/2F 3/3F || framework_failure=1
-ln -s 1 1s || framework_failure=1
-ln -s ../3 2/2s || framework_failure=1
-chgrp -R $g1 1 2 3 || framework_failure=1
-
-if test $framework_failure = 1; then
- echo "$0: failure in testing framework" 1>&2
- (exit 1); exit 1
-fi
-
-fail=0
-
-chgrp --preserve-root -H -R $g2 1s 2 || fail=1
-
-# These must have group $g2.
-# =========================
-changed='
-1
-1/1F
-2
-2/2F
-3
-'
-for i in $changed; do
- # Filter out symlinks (entries that end in `s'), since it's not
- # possible to change their group/owner information on some systems.
- case $i in *s) continue;; esac
- set _ `ls -dgn $i`; shift
- group=$3
- test $group = $g2 || fail=1
-done
-
-# These must have group $g1.
-# =========================
-not_changed='
-1s
-2/2s
-3/3F
-'
-for i in $not_changed; do
- # Filter out symlinks (entries that end in `s'), since it's not
- # possible to change their group/owner information on some systems.
- case $i in *s) continue;; esac
- set _ `ls -dgn $i`; shift
- group=$3
- test $group = $g1 || fail=1
-done
-
-(exit $fail); exit $fail
diff --git a/tests/chgrp/posix-H.sh b/tests/chgrp/posix-H.sh
new file mode 100755
index 0000000..832be9a
--- /dev/null
+++ b/tests/chgrp/posix-H.sh
@@ -0,0 +1,70 @@
+#!/bin/sh
+# Test POSIX-mandated -H option.
+
+# Copyright (C) 2003-2016 Free Software Foundation, Inc.
+
+# This program is free software: you can redistribute it and/or modify
+# it under the terms of the GNU General Public License as published by
+# the Free Software Foundation, either version 3 of the License, or
+# (at your option) any later version.
+
+# This program is distributed in the hope that it will be useful,
+# but WITHOUT ANY WARRANTY; without even the implied warranty of
+# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
+# GNU General Public License for more details.
+
+# You should have received a copy of the GNU General Public License
+# along with this program. If not, see <http://www.gnu.org/licenses/>.
+
+. "${srcdir=.}/tests/init.sh"; path_prepend_ ./src
+print_ver_ chgrp
+require_membership_in_two_groups_
+
+set _ $groups; shift
+g1=$1
+g2=$2
+
+mkdir 1 2 3 || framework_failure_
+touch 1/1F 2/2F 3/3F || framework_failure_
+ln -s 1 1s || framework_failure_
+ln -s ../3 2/2s || framework_failure_
+chgrp -R $g1 1 2 3 || framework_failure_
+
+
+chgrp --preserve-root -H -R $g2 1s 2 || fail=1
+
+# These must have group $g2.
+# =========================
+changed='
+1
+1/1F
+2
+2/2F
+3
+'
+for i in $changed; do
+ # Filter out symlinks (entries that end in 's'), since it's not
+ # possible to change their group/owner information on some systems.
+ case $i in *s) continue;; esac
+ set _ $(ls -dgn $i); shift
+ group=$3
+ test $group = $g2 || fail=1
+done
+
+# These must have group $g1.
+# =========================
+not_changed='
+1s
+2/2s
+3/3F
+'
+for i in $not_changed; do
+ # Filter out symlinks (entries that end in 's'), since it's not
+ # possible to change their group/owner information on some systems.
+ case $i in *s) continue;; esac
+ set _ $(ls -dgn $i); shift
+ group=$3
+ test $group = $g1 || fail=1
+done
+
+Exit $fail
diff --git a/tests/chgrp/recurse b/tests/chgrp/recurse
deleted file mode 100755
index 871388c..0000000
--- a/tests/chgrp/recurse
+++ /dev/null
@@ -1,73 +0,0 @@
-#!/bin/sh
-# ad-hoc tests of chgrp with -R and -H or -L and symlinks
-
-# Copyright (C) 2000, 2003, 2004, 2005, 2006 Free Software Foundation, Inc.
-
-# This program is free software; you can redistribute it and/or modify
-# it under the terms of the GNU General Public License as published by
-# the Free Software Foundation; either version 2 of the License, or
-# (at your option) any later version.
-
-# This program is distributed in the hope that it will be useful,
-# but WITHOUT ANY WARRANTY; without even the implied warranty of
-# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
-# GNU General Public License for more details.
-
-# You should have received a copy of the GNU General Public License
-# along with this program; if not, write to the Free Software
-# Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA
-# 02110-1301, USA.
-
-if test "$VERBOSE" = yes; then
- set -x
- chgrp --version
-fi
-
-. $srcdir/../group-names
-
-pwd=`pwd`
-tmp=recurse.$$
-trap 'status=$?; cd "$pwd" && rm -rf $tmp && exit $status' 0
-trap '(exit $?); exit' 1 2 13 15
-
-framework_failure=0
-mkdir $tmp || framework_failure=1
-cd $tmp || framework_failure=1
-
-if test $framework_failure = 1; then
- echo 'failure in testing framework' 1>&2
- (exit 1); exit 1
-fi
-
-set _ $groups; shift
-g1=$1
-g2=$2
-
-fail=0
-
-# chgrp -R should not traverse a symlink to a directory.
-mkdir d e
-touch d/dd e/ee
-ln -s ../e d/s
-chgrp -R $g1 e/ee || fail=1
-# This should not should change the group of e/ee
-chgrp -R $g2 d
-set _ `ls -ln e/ee`; g=$5; test "$g" = $g1 || fail=1
-# This must change the group of e/ee, since -L makes
-# chgrp traverse the symlink from d/s into e.
-chgrp -L -R $g2 d
-set _ `ls -ln e/ee`; g=$5; test "$g" = $g2 || fail=1
-
-# This must *not* change the group of e/ee
-chgrp -H -R $g1 d
-set _ `ls -ln e/ee`; g=$5; test "$g" = $g2 || fail=1
-
-ln -s d link
-
-# This shouldn't change the group of e/ee either.
-chgrp -H -R $g1 link || fail=1
-set _ `ls -ln e/ee`; g=$5; test "$g" = $g2 || fail=1
-# But it *should* change d/dd.
-set _ `ls -ln d/dd`; g=$5; test "$g" = $g1 || fail=1
-
-(exit $fail); exit $fail
diff --git a/tests/chgrp/recurse.sh b/tests/chgrp/recurse.sh
new file mode 100755
index 0000000..3285e1f
--- /dev/null
+++ b/tests/chgrp/recurse.sh
@@ -0,0 +1,53 @@
+#!/bin/sh
+# ad-hoc tests of chgrp with -R and -H or -L and symlinks
+
+# Copyright (C) 2000-2016 Free Software Foundation, Inc.
+
+# This program is free software: you can redistribute it and/or modify
+# it under the terms of the GNU General Public License as published by
+# the Free Software Foundation, either version 3 of the License, or
+# (at your option) any later version.
+
+# This program is distributed in the hope that it will be useful,
+# but WITHOUT ANY WARRANTY; without even the implied warranty of
+# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
+# GNU General Public License for more details.
+
+# You should have received a copy of the GNU General Public License
+# along with this program. If not, see <http://www.gnu.org/licenses/>.
+
+. "${srcdir=.}/tests/init.sh"; path_prepend_ ./src
+print_ver_ chgrp
+require_membership_in_two_groups_
+
+set _ $groups; shift
+g1=$1
+g2=$2
+
+
+# chgrp -R should not traverse a symlink to a directory.
+mkdir d e
+touch d/dd e/ee
+ln -s ../e d/s
+chgrp -R $g1 e/ee || fail=1
+# This should not should change the group of e/ee
+chgrp -R $g2 d
+set _ $(ls -ln e/ee); g=$5; test "$g" = $g1 || fail=1
+# This must change the group of e/ee, since -L makes
+# chgrp traverse the symlink from d/s into e.
+chgrp -L -R $g2 d
+set _ $(ls -ln e/ee); g=$5; test "$g" = $g2 || fail=1
+
+# This must *not* change the group of e/ee
+chgrp -H -R $g1 d
+set _ $(ls -ln e/ee); g=$5; test "$g" = $g2 || fail=1
+
+ln -s d link
+
+# This shouldn't change the group of e/ee either.
+chgrp -H -R $g1 link || fail=1
+set _ $(ls -ln e/ee); g=$5; test "$g" = $g2 || fail=1
+# But it *should* change d/dd.
+set _ $(ls -ln d/dd); g=$5; test "$g" = $g1 || fail=1
+
+Exit $fail
diff --git a/tests/chmod/Makefile.am b/tests/chmod/Makefile.am
deleted file mode 100644
index 1388961..0000000
--- a/tests/chmod/Makefile.am
+++ /dev/null
@@ -1,16 +0,0 @@
-## Process this file with automake to produce Makefile.in -*-Makefile-*-.
-TESTS = \
- inaccessible \
- c-option \
- equal-x \
- equals \
- no-x \
- octal \
- setgid \
- umask-x \
- usage
-
-EXTRA_DIST = $(TESTS)
-TESTS_ENVIRONMENT = \
- CU_TEST_NAME=`basename $(abs_srcdir)`,$$tst \
- PATH="$(VG_PATH_PREFIX)`pwd`/../../src$(PATH_SEPARATOR)$$PATH"
diff --git a/tests/chmod/Makefile.in b/tests/chmod/Makefile.in
deleted file mode 100644
index a3bea9d..0000000
--- a/tests/chmod/Makefile.in
+++ /dev/null
@@ -1,726 +0,0 @@
-# Makefile.in generated by automake 1.10 from Makefile.am.
-# @configure_input@
-
-# Copyright (C) 1994, 1995, 1996, 1997, 1998, 1999, 2000, 2001, 2002,
-# 2003, 2004, 2005, 2006 Free Software Foundation, Inc.
-# This Makefile.in is free software; the Free Software Foundation
-# gives unlimited permission to copy and/or distribute it,
-# with or without modifications, as long as this notice is preserved.
-
-# This program is distributed in the hope that it will be useful,
-# but WITHOUT ANY WARRANTY, to the extent permitted by law; without
-# even the implied warranty of MERCHANTABILITY or FITNESS FOR A
-# PARTICULAR PURPOSE.
-
-@SET_MAKE@
-VPATH = @srcdir@
-pkgdatadir = $(datadir)/@PACKAGE@
-pkglibdir = $(libdir)/@PACKAGE@
-pkgincludedir = $(includedir)/@PACKAGE@
-am__cd = CDPATH="$${ZSH_VERSION+.}$(PATH_SEPARATOR)" && cd
-install_sh_DATA = $(install_sh) -c -m 644
-install_sh_PROGRAM = $(install_sh) -c
-install_sh_SCRIPT = $(install_sh) -c
-INSTALL_HEADER = $(INSTALL_DATA)
-transform = $(program_transform_name)
-NORMAL_INSTALL = :
-PRE_INSTALL = :
-POST_INSTALL = :
-NORMAL_UNINSTALL = :
-PRE_UNINSTALL = :
-POST_UNINSTALL = :
-build_triplet = @build@
-host_triplet = @host@
-subdir = tests/chmod
-DIST_COMMON = $(srcdir)/Makefile.am $(srcdir)/Makefile.in
-ACLOCAL_M4 = $(top_srcdir)/aclocal.m4
-am__aclocal_m4_deps = $(top_srcdir)/m4/absolute-header.m4 \
- $(top_srcdir)/m4/acl.m4 $(top_srcdir)/m4/alloca.m4 \
- $(top_srcdir)/m4/allocsa.m4 $(top_srcdir)/m4/argmatch.m4 \
- $(top_srcdir)/m4/arpa_inet_h.m4 $(top_srcdir)/m4/assert.m4 \
- $(top_srcdir)/m4/atexit.m4 $(top_srcdir)/m4/autobuild.m4 \
- $(top_srcdir)/m4/backupfile.m4 $(top_srcdir)/m4/base64.m4 \
- $(top_srcdir)/m4/bison.m4 $(top_srcdir)/m4/boottime.m4 \
- $(top_srcdir)/m4/c-strtod.m4 $(top_srcdir)/m4/calloc.m4 \
- $(top_srcdir)/m4/canon-host.m4 \
- $(top_srcdir)/m4/canonicalize.m4 \
- $(top_srcdir)/m4/chdir-long.m4 $(top_srcdir)/m4/check-decl.m4 \
- $(top_srcdir)/m4/chown.m4 $(top_srcdir)/m4/clock_time.m4 \
- $(top_srcdir)/m4/cloexec.m4 $(top_srcdir)/m4/close-stream.m4 \
- $(top_srcdir)/m4/closeout.m4 $(top_srcdir)/m4/codeset.m4 \
- $(top_srcdir)/m4/config-h.m4 $(top_srcdir)/m4/cycle-check.m4 \
- $(top_srcdir)/m4/d-ino.m4 $(top_srcdir)/m4/d-type.m4 \
- $(top_srcdir)/m4/dirfd.m4 $(top_srcdir)/m4/dirname.m4 \
- $(top_srcdir)/m4/dos.m4 $(top_srcdir)/m4/double-slash-root.m4 \
- $(top_srcdir)/m4/dup2.m4 $(top_srcdir)/m4/eealloc.m4 \
- $(top_srcdir)/m4/eoverflow.m4 $(top_srcdir)/m4/error.m4 \
- $(top_srcdir)/m4/euidaccess-stat.m4 \
- $(top_srcdir)/m4/euidaccess.m4 $(top_srcdir)/m4/exclude.m4 \
- $(top_srcdir)/m4/exitfail.m4 $(top_srcdir)/m4/extensions.m4 \
- $(top_srcdir)/m4/fchdir.m4 $(top_srcdir)/m4/fcntl-safer.m4 \
- $(top_srcdir)/m4/fcntl_h.m4 $(top_srcdir)/m4/fd-reopen.m4 \
- $(top_srcdir)/m4/file-type.m4 $(top_srcdir)/m4/fileblocks.m4 \
- $(top_srcdir)/m4/filemode.m4 $(top_srcdir)/m4/filenamecat.m4 \
- $(top_srcdir)/m4/flexmember.m4 $(top_srcdir)/m4/fnmatch.m4 \
- $(top_srcdir)/m4/fpending.m4 $(top_srcdir)/m4/fprintftime.m4 \
- $(top_srcdir)/m4/free.m4 $(top_srcdir)/m4/fstypename.m4 \
- $(top_srcdir)/m4/fsusage.m4 $(top_srcdir)/m4/ftruncate.m4 \
- $(top_srcdir)/m4/fts.m4 $(top_srcdir)/m4/getaddrinfo.m4 \
- $(top_srcdir)/m4/getcwd-abort-bug.m4 \
- $(top_srcdir)/m4/getcwd-path-max.m4 $(top_srcdir)/m4/getcwd.m4 \
- $(top_srcdir)/m4/getdate.m4 $(top_srcdir)/m4/getdelim.m4 \
- $(top_srcdir)/m4/getgroups.m4 $(top_srcdir)/m4/gethostname.m4 \
- $(top_srcdir)/m4/gethrxtime.m4 $(top_srcdir)/m4/getline.m4 \
- $(top_srcdir)/m4/getloadavg.m4 $(top_srcdir)/m4/getndelim2.m4 \
- $(top_srcdir)/m4/getopt.m4 $(top_srcdir)/m4/getpagesize.m4 \
- $(top_srcdir)/m4/getpass.m4 $(top_srcdir)/m4/gettext.m4 \
- $(top_srcdir)/m4/gettime.m4 $(top_srcdir)/m4/gettimeofday.m4 \
- $(top_srcdir)/m4/getugroups.m4 \
- $(top_srcdir)/m4/getusershell.m4 $(top_srcdir)/m4/glibc21.m4 \
- $(top_srcdir)/m4/gnulib-common.m4 \
- $(top_srcdir)/m4/gnulib-comp.m4 \
- $(top_srcdir)/m4/group-member.m4 \
- $(top_srcdir)/m4/hard-locale.m4 $(top_srcdir)/m4/hash.m4 \
- $(top_srcdir)/m4/host-os.m4 $(top_srcdir)/m4/human.m4 \
- $(top_srcdir)/m4/i-ring.m4 $(top_srcdir)/m4/iconv.m4 \
- $(top_srcdir)/m4/idcache.m4 $(top_srcdir)/m4/inet_ntop.m4 \
- $(top_srcdir)/m4/inline.m4 $(top_srcdir)/m4/intmax_t.m4 \
- $(top_srcdir)/m4/inttostr.m4 $(top_srcdir)/m4/inttypes-pri.m4 \
- $(top_srcdir)/m4/inttypes.m4 $(top_srcdir)/m4/inttypes_h.m4 \
- $(top_srcdir)/m4/isapipe.m4 $(top_srcdir)/m4/jm-macros.m4 \
- $(top_srcdir)/m4/jm-winsz1.m4 $(top_srcdir)/m4/jm-winsz2.m4 \
- $(top_srcdir)/m4/lchmod.m4 $(top_srcdir)/m4/lchown.m4 \
- $(top_srcdir)/m4/lib-check.m4 $(top_srcdir)/m4/lib-ignore.m4 \
- $(top_srcdir)/m4/lib-ld.m4 $(top_srcdir)/m4/lib-link.m4 \
- $(top_srcdir)/m4/lib-prefix.m4 $(top_srcdir)/m4/link-follow.m4 \
- $(top_srcdir)/m4/localcharset.m4 \
- $(top_srcdir)/m4/long-options.m4 \
- $(top_srcdir)/m4/longdouble.m4 $(top_srcdir)/m4/longlong.m4 \
- $(top_srcdir)/m4/ls-mntd-fs.m4 $(top_srcdir)/m4/lstat.m4 \
- $(top_srcdir)/m4/mbchar.m4 $(top_srcdir)/m4/mbiter.m4 \
- $(top_srcdir)/m4/mbrtowc.m4 $(top_srcdir)/m4/mbscasecmp.m4 \
- $(top_srcdir)/m4/mbstate_t.m4 $(top_srcdir)/m4/mbswidth.m4 \
- $(top_srcdir)/m4/md5.m4 $(top_srcdir)/m4/memcasecmp.m4 \
- $(top_srcdir)/m4/memchr.m4 $(top_srcdir)/m4/memcmp.m4 \
- $(top_srcdir)/m4/memcoll.m4 $(top_srcdir)/m4/memcpy.m4 \
- $(top_srcdir)/m4/memmove.m4 $(top_srcdir)/m4/mempcpy.m4 \
- $(top_srcdir)/m4/memrchr.m4 $(top_srcdir)/m4/memset.m4 \
- $(top_srcdir)/m4/memxfrm.m4 $(top_srcdir)/m4/mkancesdirs.m4 \
- $(top_srcdir)/m4/mkdir-p.m4 $(top_srcdir)/m4/mkdir-slash.m4 \
- $(top_srcdir)/m4/mkstemp.m4 $(top_srcdir)/m4/mktime.m4 \
- $(top_srcdir)/m4/modechange.m4 $(top_srcdir)/m4/mountlist.m4 \
- $(top_srcdir)/m4/mpsort.m4 $(top_srcdir)/m4/nanosleep.m4 \
- $(top_srcdir)/m4/netinet_in_h.m4 $(top_srcdir)/m4/nls.m4 \
- $(top_srcdir)/m4/openat.m4 $(top_srcdir)/m4/pathmax.m4 \
- $(top_srcdir)/m4/perl.m4 $(top_srcdir)/m4/physmem.m4 \
- $(top_srcdir)/m4/po.m4 $(top_srcdir)/m4/posixtm.m4 \
- $(top_srcdir)/m4/posixver.m4 $(top_srcdir)/m4/prereq.m4 \
- $(top_srcdir)/m4/progtest.m4 $(top_srcdir)/m4/putenv.m4 \
- $(top_srcdir)/m4/quote.m4 $(top_srcdir)/m4/quotearg.m4 \
- $(top_srcdir)/m4/randint.m4 $(top_srcdir)/m4/randperm.m4 \
- $(top_srcdir)/m4/randread.m4 $(top_srcdir)/m4/readlink.m4 \
- $(top_srcdir)/m4/readtokens.m4 $(top_srcdir)/m4/readutmp.m4 \
- $(top_srcdir)/m4/regex.m4 \
- $(top_srcdir)/m4/rename-dest-slash.m4 \
- $(top_srcdir)/m4/rename.m4 $(top_srcdir)/m4/rmdir-errno.m4 \
- $(top_srcdir)/m4/rmdir.m4 $(top_srcdir)/m4/root-dev-ino.m4 \
- $(top_srcdir)/m4/rpmatch.m4 $(top_srcdir)/m4/safe-read.m4 \
- $(top_srcdir)/m4/safe-write.m4 $(top_srcdir)/m4/same.m4 \
- $(top_srcdir)/m4/save-cwd.m4 $(top_srcdir)/m4/savedir.m4 \
- $(top_srcdir)/m4/savewd.m4 $(top_srcdir)/m4/setenv.m4 \
- $(top_srcdir)/m4/settime.m4 $(top_srcdir)/m4/sha1.m4 \
- $(top_srcdir)/m4/sha256.m4 $(top_srcdir)/m4/sha512.m4 \
- $(top_srcdir)/m4/sig2str.m4 $(top_srcdir)/m4/snprintf.m4 \
- $(top_srcdir)/m4/socklen.m4 $(top_srcdir)/m4/sockpfaf.m4 \
- $(top_srcdir)/m4/ssize_t.m4 $(top_srcdir)/m4/st_dm_mode.m4 \
- $(top_srcdir)/m4/stat-prog.m4 $(top_srcdir)/m4/stat-time.m4 \
- $(top_srcdir)/m4/stdarg.m4 $(top_srcdir)/m4/stdbool.m4 \
- $(top_srcdir)/m4/stdint.m4 $(top_srcdir)/m4/stdint_h.m4 \
- $(top_srcdir)/m4/stdio-safer.m4 $(top_srcdir)/m4/stdio_h.m4 \
- $(top_srcdir)/m4/stdlib-safer.m4 $(top_srcdir)/m4/stdlib_h.m4 \
- $(top_srcdir)/m4/stpcpy.m4 $(top_srcdir)/m4/strcspn.m4 \
- $(top_srcdir)/m4/strdup.m4 $(top_srcdir)/m4/strftime.m4 \
- $(top_srcdir)/m4/string_h.m4 $(top_srcdir)/m4/strndup.m4 \
- $(top_srcdir)/m4/strnlen.m4 $(top_srcdir)/m4/strnumcmp.m4 \
- $(top_srcdir)/m4/strpbrk.m4 $(top_srcdir)/m4/strtod.m4 \
- $(top_srcdir)/m4/strtoimax.m4 $(top_srcdir)/m4/strtol.m4 \
- $(top_srcdir)/m4/strtoll.m4 $(top_srcdir)/m4/strtoul.m4 \
- $(top_srcdir)/m4/strtoull.m4 $(top_srcdir)/m4/strtoumax.m4 \
- $(top_srcdir)/m4/strverscmp.m4 \
- $(top_srcdir)/m4/sys_socket_h.m4 \
- $(top_srcdir)/m4/sys_stat_h.m4 $(top_srcdir)/m4/sys_time_h.m4 \
- $(top_srcdir)/m4/tempname.m4 $(top_srcdir)/m4/time_h.m4 \
- $(top_srcdir)/m4/time_r.m4 $(top_srcdir)/m4/timespec.m4 \
- $(top_srcdir)/m4/tm_gmtoff.m4 $(top_srcdir)/m4/tzset.m4 \
- $(top_srcdir)/m4/unicodeio.m4 $(top_srcdir)/m4/unistd-safer.m4 \
- $(top_srcdir)/m4/unistd_h.m4 $(top_srcdir)/m4/unlink-busy.m4 \
- $(top_srcdir)/m4/unlinkdir.m4 $(top_srcdir)/m4/unlocked-io.m4 \
- $(top_srcdir)/m4/uptime.m4 $(top_srcdir)/m4/userspec.m4 \
- $(top_srcdir)/m4/utimbuf.m4 $(top_srcdir)/m4/utime.m4 \
- $(top_srcdir)/m4/utimecmp.m4 $(top_srcdir)/m4/utimens.m4 \
- $(top_srcdir)/m4/utimes-null.m4 $(top_srcdir)/m4/utimes.m4 \
- $(top_srcdir)/m4/vasnprintf.m4 $(top_srcdir)/m4/vasprintf.m4 \
- $(top_srcdir)/m4/wchar.m4 $(top_srcdir)/m4/wchar_t.m4 \
- $(top_srcdir)/m4/wctype.m4 $(top_srcdir)/m4/wcwidth.m4 \
- $(top_srcdir)/m4/wint_t.m4 $(top_srcdir)/m4/xalloc.m4 \
- $(top_srcdir)/m4/xfts.m4 $(top_srcdir)/m4/xgetcwd.m4 \
- $(top_srcdir)/m4/xnanosleep.m4 $(top_srcdir)/m4/xstrndup.m4 \
- $(top_srcdir)/m4/xstrtod.m4 $(top_srcdir)/m4/xstrtol.m4 \
- $(top_srcdir)/m4/yesno.m4 $(top_srcdir)/configure.ac
-am__configure_deps = $(am__aclocal_m4_deps) $(CONFIGURE_DEPENDENCIES) \
- $(ACLOCAL_M4)
-mkinstalldirs = $(install_sh) -d
-CONFIG_HEADER = $(top_builddir)/lib/config.h
-CONFIG_CLEAN_FILES =
-SOURCES =
-DIST_SOURCES =
-DISTFILES = $(DIST_COMMON) $(DIST_SOURCES) $(TEXINFOS) $(EXTRA_DIST)
-ABSOLUTE_DIRENT_H = @ABSOLUTE_DIRENT_H@
-ABSOLUTE_FCNTL_H = @ABSOLUTE_FCNTL_H@
-ABSOLUTE_INTTYPES_H = @ABSOLUTE_INTTYPES_H@
-ABSOLUTE_NETINET_IN_H = @ABSOLUTE_NETINET_IN_H@
-ABSOLUTE_STDINT_H = @ABSOLUTE_STDINT_H@
-ABSOLUTE_STDIO_H = @ABSOLUTE_STDIO_H@
-ABSOLUTE_STDLIB_H = @ABSOLUTE_STDLIB_H@
-ABSOLUTE_STRING_H = @ABSOLUTE_STRING_H@
-ABSOLUTE_SYS_SOCKET_H = @ABSOLUTE_SYS_SOCKET_H@
-ABSOLUTE_SYS_STAT_H = @ABSOLUTE_SYS_STAT_H@
-ABSOLUTE_SYS_TIME_H = @ABSOLUTE_SYS_TIME_H@
-ABSOLUTE_TIME_H = @ABSOLUTE_TIME_H@
-ABSOLUTE_UNISTD_H = @ABSOLUTE_UNISTD_H@
-ABSOLUTE_WCHAR_H = @ABSOLUTE_WCHAR_H@
-ABSOLUTE_WCTYPE_H = @ABSOLUTE_WCTYPE_H@
-ACLOCAL = @ACLOCAL@
-ALLOCA = @ALLOCA@
-ALLOCA_H = @ALLOCA_H@
-AMTAR = @AMTAR@
-ARPA_INET_H = @ARPA_INET_H@
-AUTOCONF = @AUTOCONF@
-AUTOHEADER = @AUTOHEADER@
-AUTOMAKE = @AUTOMAKE@
-AWK = @AWK@
-BITSIZEOF_PTRDIFF_T = @BITSIZEOF_PTRDIFF_T@
-BITSIZEOF_SIG_ATOMIC_T = @BITSIZEOF_SIG_ATOMIC_T@
-BITSIZEOF_SIZE_T = @BITSIZEOF_SIZE_T@
-BITSIZEOF_WCHAR_T = @BITSIZEOF_WCHAR_T@
-BITSIZEOF_WINT_T = @BITSIZEOF_WINT_T@
-CC = @CC@
-CCDEPMODE = @CCDEPMODE@
-CFLAGS = @CFLAGS@
-CPP = @CPP@
-CPPFLAGS = @CPPFLAGS@
-CYGPATH_W = @CYGPATH_W@
-DEFAULT_POSIX2_VERSION = @DEFAULT_POSIX2_VERSION@
-DEFS = @DEFS@
-DEPDIR = @DEPDIR@
-DF_PROG = @DF_PROG@
-DIRENT_H = @DIRENT_H@
-ECHO_C = @ECHO_C@
-ECHO_N = @ECHO_N@
-ECHO_T = @ECHO_T@
-EGREP = @EGREP@
-EOVERFLOW = @EOVERFLOW@
-EXEEXT = @EXEEXT@
-FCNTL_H = @FCNTL_H@
-FNMATCH_H = @FNMATCH_H@
-GETLOADAVG_LIBS = @GETLOADAVG_LIBS@
-GETOPT_H = @GETOPT_H@
-GLIBC21 = @GLIBC21@
-GMSGFMT = @GMSGFMT@
-GMSGFMT_015 = @GMSGFMT_015@
-GNULIB_CHOWN = @GNULIB_CHOWN@
-GNULIB_DUP2 = @GNULIB_DUP2@
-GNULIB_FCHDIR = @GNULIB_FCHDIR@
-GNULIB_FPRINTF_POSIX = @GNULIB_FPRINTF_POSIX@
-GNULIB_FTRUNCATE = @GNULIB_FTRUNCATE@
-GNULIB_GETCWD = @GNULIB_GETCWD@
-GNULIB_GETLOGIN_R = @GNULIB_GETLOGIN_R@
-GNULIB_GETSUBOPT = @GNULIB_GETSUBOPT@
-GNULIB_IMAXABS = @GNULIB_IMAXABS@
-GNULIB_IMAXDIV = @GNULIB_IMAXDIV@
-GNULIB_MBSCASECMP = @GNULIB_MBSCASECMP@
-GNULIB_MBSCASESTR = @GNULIB_MBSCASESTR@
-GNULIB_MBSCHR = @GNULIB_MBSCHR@
-GNULIB_MBSCSPN = @GNULIB_MBSCSPN@
-GNULIB_MBSLEN = @GNULIB_MBSLEN@
-GNULIB_MBSNCASECMP = @GNULIB_MBSNCASECMP@
-GNULIB_MBSPBRK = @GNULIB_MBSPBRK@
-GNULIB_MBSPCASECMP = @GNULIB_MBSPCASECMP@
-GNULIB_MBSRCHR = @GNULIB_MBSRCHR@
-GNULIB_MBSSEP = @GNULIB_MBSSEP@
-GNULIB_MBSSPN = @GNULIB_MBSSPN@
-GNULIB_MBSSTR = @GNULIB_MBSSTR@
-GNULIB_MBSTOK_R = @GNULIB_MBSTOK_R@
-GNULIB_MEMMEM = @GNULIB_MEMMEM@
-GNULIB_MEMPCPY = @GNULIB_MEMPCPY@
-GNULIB_MEMRCHR = @GNULIB_MEMRCHR@
-GNULIB_MKDTEMP = @GNULIB_MKDTEMP@
-GNULIB_MKSTEMP = @GNULIB_MKSTEMP@
-GNULIB_PRINTF_POSIX = @GNULIB_PRINTF_POSIX@
-GNULIB_READLINK = @GNULIB_READLINK@
-GNULIB_SNPRINTF = @GNULIB_SNPRINTF@
-GNULIB_SPRINTF_POSIX = @GNULIB_SPRINTF_POSIX@
-GNULIB_STPCPY = @GNULIB_STPCPY@
-GNULIB_STPNCPY = @GNULIB_STPNCPY@
-GNULIB_STRCASESTR = @GNULIB_STRCASESTR@
-GNULIB_STRCHRNUL = @GNULIB_STRCHRNUL@
-GNULIB_STRDUP = @GNULIB_STRDUP@
-GNULIB_STRNDUP = @GNULIB_STRNDUP@
-GNULIB_STRNLEN = @GNULIB_STRNLEN@
-GNULIB_STRPBRK = @GNULIB_STRPBRK@
-GNULIB_STRSEP = @GNULIB_STRSEP@
-GNULIB_STRTOIMAX = @GNULIB_STRTOIMAX@
-GNULIB_STRTOK_R = @GNULIB_STRTOK_R@
-GNULIB_STRTOUMAX = @GNULIB_STRTOUMAX@
-GNULIB_VFPRINTF_POSIX = @GNULIB_VFPRINTF_POSIX@
-GNULIB_VPRINTF_POSIX = @GNULIB_VPRINTF_POSIX@
-GNULIB_VSNPRINTF = @GNULIB_VSNPRINTF@
-GNULIB_VSPRINTF_POSIX = @GNULIB_VSPRINTF_POSIX@
-GNU_PACKAGE = @GNU_PACKAGE@
-GREP = @GREP@
-HAVE_DECL_GETLOGIN_R = @HAVE_DECL_GETLOGIN_R@
-HAVE_DECL_IMAXABS = @HAVE_DECL_IMAXABS@
-HAVE_DECL_IMAXDIV = @HAVE_DECL_IMAXDIV@
-HAVE_DECL_MEMMEM = @HAVE_DECL_MEMMEM@
-HAVE_DECL_MEMRCHR = @HAVE_DECL_MEMRCHR@
-HAVE_DECL_SNPRINTF = @HAVE_DECL_SNPRINTF@
-HAVE_DECL_STRDUP = @HAVE_DECL_STRDUP@
-HAVE_DECL_STRNCASECMP = @HAVE_DECL_STRNCASECMP@
-HAVE_DECL_STRNDUP = @HAVE_DECL_STRNDUP@
-HAVE_DECL_STRNLEN = @HAVE_DECL_STRNLEN@
-HAVE_DECL_STRTOIMAX = @HAVE_DECL_STRTOIMAX@
-HAVE_DECL_STRTOK_R = @HAVE_DECL_STRTOK_R@
-HAVE_DECL_STRTOUMAX = @HAVE_DECL_STRTOUMAX@
-HAVE_DECL_VSNPRINTF = @HAVE_DECL_VSNPRINTF@
-HAVE_DUP2 = @HAVE_DUP2@
-HAVE_FTRUNCATE = @HAVE_FTRUNCATE@
-HAVE_GETSUBOPT = @HAVE_GETSUBOPT@
-HAVE_INTTYPES_H = @HAVE_INTTYPES_H@
-HAVE_LONG_LONG_INT = @HAVE_LONG_LONG_INT@
-HAVE_MEMPCPY = @HAVE_MEMPCPY@
-HAVE_MKDTEMP = @HAVE_MKDTEMP@
-HAVE_NETINET_IN_H = @HAVE_NETINET_IN_H@
-HAVE_READLINK = @HAVE_READLINK@
-HAVE_SIGNED_SIG_ATOMIC_T = @HAVE_SIGNED_SIG_ATOMIC_T@
-HAVE_SIGNED_WCHAR_T = @HAVE_SIGNED_WCHAR_T@
-HAVE_SIGNED_WINT_T = @HAVE_SIGNED_WINT_T@
-HAVE_STDINT_H = @HAVE_STDINT_H@
-HAVE_STPCPY = @HAVE_STPCPY@
-HAVE_STPNCPY = @HAVE_STPNCPY@
-HAVE_STRCASECMP = @HAVE_STRCASECMP@
-HAVE_STRCASESTR = @HAVE_STRCASESTR@
-HAVE_STRCHRNUL = @HAVE_STRCHRNUL@
-HAVE_STRNDUP = @HAVE_STRNDUP@
-HAVE_STRPBRK = @HAVE_STRPBRK@
-HAVE_STRSEP = @HAVE_STRSEP@
-HAVE_STRUCT_TIMEVAL = @HAVE_STRUCT_TIMEVAL@
-HAVE_SYS_BITYPES_H = @HAVE_SYS_BITYPES_H@
-HAVE_SYS_INTTYPES_H = @HAVE_SYS_INTTYPES_H@
-HAVE_SYS_SOCKET_H = @HAVE_SYS_SOCKET_H@
-HAVE_SYS_TIME_H = @HAVE_SYS_TIME_H@
-HAVE_SYS_TYPES_H = @HAVE_SYS_TYPES_H@
-HAVE_UNISTD_H = @HAVE_UNISTD_H@
-HAVE_UNSIGNED_LONG_LONG_INT = @HAVE_UNSIGNED_LONG_LONG_INT@
-HAVE_WCTYPE_H = @HAVE_WCTYPE_H@
-HAVE_WINSOCK2_H = @HAVE_WINSOCK2_H@
-HAVE_WINT_T = @HAVE_WINT_T@
-HAVE_WS2TCPIP_H = @HAVE_WS2TCPIP_H@
-HAVE__BOOL = @HAVE__BOOL@
-HELP2MAN = @HELP2MAN@
-INSTALL = @INSTALL@
-INSTALL_DATA = @INSTALL_DATA@
-INSTALL_PROGRAM = @INSTALL_PROGRAM@
-INSTALL_SCRIPT = @INSTALL_SCRIPT@
-INSTALL_STRIP_PROGRAM = @INSTALL_STRIP_PROGRAM@
-INTLLIBS = @INTLLIBS@
-INTL_MACOSX_LIBS = @INTL_MACOSX_LIBS@
-INTTYPES_H = @INTTYPES_H@
-KMEM_GROUP = @KMEM_GROUP@
-LDFLAGS = @LDFLAGS@
-LIBCOREUTILS_LIBDEPS = @LIBCOREUTILS_LIBDEPS@
-LIBCOREUTILS_LTLIBDEPS = @LIBCOREUTILS_LTLIBDEPS@
-LIBICONV = @LIBICONV@
-LIBINTL = @LIBINTL@
-LIBOBJS = @LIBOBJS@
-LIBS = @LIBS@
-LIB_ACL = @LIB_ACL@
-LIB_ACL_TRIVIAL = @LIB_ACL_TRIVIAL@
-LIB_CLOCK_GETTIME = @LIB_CLOCK_GETTIME@
-LIB_CRYPT = @LIB_CRYPT@
-LIB_EACCESS = @LIB_EACCESS@
-LIB_FDATASYNC = @LIB_FDATASYNC@
-LIB_GETHRXTIME = @LIB_GETHRXTIME@
-LIB_NANOSLEEP = @LIB_NANOSLEEP@
-LN_S = @LN_S@
-LTLIBICONV = @LTLIBICONV@
-LTLIBINTL = @LTLIBINTL@
-LTLIBOBJS = @LTLIBOBJS@
-MAKEINFO = @MAKEINFO@
-MAN = @MAN@
-MKDIR_P = @MKDIR_P@
-MSGFMT = @MSGFMT@
-MSGFMT_015 = @MSGFMT_015@
-MSGMERGE = @MSGMERGE@
-NEED_SETGID = @NEED_SETGID@
-NETINET_IN_H = @NETINET_IN_H@
-OBJEXT = @OBJEXT@
-OPTIONAL_BIN_PROGS = @OPTIONAL_BIN_PROGS@
-PACKAGE = @PACKAGE@
-PACKAGE_BUGREPORT = @PACKAGE_BUGREPORT@
-PACKAGE_NAME = @PACKAGE_NAME@
-PACKAGE_STRING = @PACKAGE_STRING@
-PACKAGE_TARNAME = @PACKAGE_TARNAME@
-PACKAGE_VERSION = @PACKAGE_VERSION@
-PATH_SEPARATOR = @PATH_SEPARATOR@
-PERL = @PERL@
-POSUB = @POSUB@
-POW_LIB = @POW_LIB@
-PRIPTR_PREFIX = @PRIPTR_PREFIX@
-PRI_MACROS_BROKEN = @PRI_MACROS_BROKEN@
-PTRDIFF_T_SUFFIX = @PTRDIFF_T_SUFFIX@
-RANLIB = @RANLIB@
-REPLACE_CHOWN = @REPLACE_CHOWN@
-REPLACE_FCHDIR = @REPLACE_FCHDIR@
-REPLACE_FPRINTF = @REPLACE_FPRINTF@
-REPLACE_GETCWD = @REPLACE_GETCWD@
-REPLACE_GETTIMEOFDAY = @REPLACE_GETTIMEOFDAY@
-REPLACE_LOCALTIME_R = @REPLACE_LOCALTIME_R@
-REPLACE_MKSTEMP = @REPLACE_MKSTEMP@
-REPLACE_NANOSLEEP = @REPLACE_NANOSLEEP@
-REPLACE_PRINTF = @REPLACE_PRINTF@
-REPLACE_SNPRINTF = @REPLACE_SNPRINTF@
-REPLACE_SPRINTF = @REPLACE_SPRINTF@
-REPLACE_STRPTIME = @REPLACE_STRPTIME@
-REPLACE_TIMEGM = @REPLACE_TIMEGM@
-REPLACE_VFPRINTF = @REPLACE_VFPRINTF@
-REPLACE_VPRINTF = @REPLACE_VPRINTF@
-REPLACE_VSNPRINTF = @REPLACE_VSNPRINTF@
-REPLACE_VSPRINTF = @REPLACE_VSPRINTF@
-SEQ_LIBM = @SEQ_LIBM@
-SET_MAKE = @SET_MAKE@
-SHELL = @SHELL@
-SIG_ATOMIC_T_SUFFIX = @SIG_ATOMIC_T_SUFFIX@
-SIZE_T_SUFFIX = @SIZE_T_SUFFIX@
-STDBOOL_H = @STDBOOL_H@
-STDINT_H = @STDINT_H@
-STRIP = @STRIP@
-SYS_SOCKET_H = @SYS_SOCKET_H@
-SYS_STAT_H = @SYS_STAT_H@
-SYS_TIME_H = @SYS_TIME_H@
-SYS_TIME_H_DEFINES_STRUCT_TIMESPEC = @SYS_TIME_H_DEFINES_STRUCT_TIMESPEC@
-TIME_H_DEFINES_STRUCT_TIMESPEC = @TIME_H_DEFINES_STRUCT_TIMESPEC@
-U = @U@
-USE_NLS = @USE_NLS@
-VERSION = @VERSION@
-WCHAR_H = @WCHAR_H@
-WCHAR_T_SUFFIX = @WCHAR_T_SUFFIX@
-WCTYPE_H = @WCTYPE_H@
-WINT_T_SUFFIX = @WINT_T_SUFFIX@
-XGETTEXT = @XGETTEXT@
-XGETTEXT_015 = @XGETTEXT_015@
-YACC = @YACC@
-YFLAGS = @YFLAGS@
-abs_builddir = @abs_builddir@
-abs_srcdir = @abs_srcdir@
-abs_top_builddir = @abs_top_builddir@
-abs_top_srcdir = @abs_top_srcdir@
-ac_ct_CC = @ac_ct_CC@
-am__include = @am__include@
-am__leading_dot = @am__leading_dot@
-am__quote = @am__quote@
-am__tar = @am__tar@
-am__untar = @am__untar@
-bindir = @bindir@
-build = @build@
-build_alias = @build_alias@
-build_cpu = @build_cpu@
-build_os = @build_os@
-build_vendor = @build_vendor@
-builddir = @builddir@
-datadir = @datadir@
-datarootdir = @datarootdir@
-docdir = @docdir@
-dvidir = @dvidir@
-exec_prefix = @exec_prefix@
-gl_LIBOBJS = @gl_LIBOBJS@
-gl_LTLIBOBJS = @gl_LTLIBOBJS@
-host = @host@
-host_alias = @host_alias@
-host_cpu = @host_cpu@
-host_os = @host_os@
-host_vendor = @host_vendor@
-htmldir = @htmldir@
-includedir = @includedir@
-infodir = @infodir@
-install_sh = @install_sh@
-libdir = @libdir@
-libexecdir = @libexecdir@
-localedir = @localedir@
-localstatedir = @localstatedir@
-mandir = @mandir@
-mkdir_p = @mkdir_p@
-oldincludedir = @oldincludedir@
-pdfdir = @pdfdir@
-prefix = @prefix@
-program_transform_name = @program_transform_name@
-psdir = @psdir@
-sbindir = @sbindir@
-sharedstatedir = @sharedstatedir@
-srcdir = @srcdir@
-sysconfdir = @sysconfdir@
-target_alias = @target_alias@
-top_builddir = @top_builddir@
-top_srcdir = @top_srcdir@
-TESTS = \
- inaccessible \
- c-option \
- equal-x \
- equals \
- no-x \
- octal \
- setgid \
- umask-x \
- usage
-
-EXTRA_DIST = $(TESTS)
-TESTS_ENVIRONMENT = \
- CU_TEST_NAME=`basename $(abs_srcdir)`,$$tst \
- PATH="$(VG_PATH_PREFIX)`pwd`/../../src$(PATH_SEPARATOR)$$PATH"
-
-all: all-am
-
-.SUFFIXES:
-$(srcdir)/Makefile.in: $(srcdir)/Makefile.am $(am__configure_deps)
- @for dep in $?; do \
- case '$(am__configure_deps)' in \
- *$$dep*) \
- cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh \
- && exit 0; \
- exit 1;; \
- esac; \
- done; \
- echo ' cd $(top_srcdir) && $(AUTOMAKE) --gnu tests/chmod/Makefile'; \
- cd $(top_srcdir) && \
- $(AUTOMAKE) --gnu tests/chmod/Makefile
-.PRECIOUS: Makefile
-Makefile: $(srcdir)/Makefile.in $(top_builddir)/config.status
- @case '$?' in \
- *config.status*) \
- cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh;; \
- *) \
- echo ' cd $(top_builddir) && $(SHELL) ./config.status $(subdir)/$@ $(am__depfiles_maybe)'; \
- cd $(top_builddir) && $(SHELL) ./config.status $(subdir)/$@ $(am__depfiles_maybe);; \
- esac;
-
-$(top_builddir)/config.status: $(top_srcdir)/configure $(CONFIG_STATUS_DEPENDENCIES)
- cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh
-
-$(top_srcdir)/configure: $(am__configure_deps)
- cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh
-$(ACLOCAL_M4): $(am__aclocal_m4_deps)
- cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh
-tags: TAGS
-TAGS:
-
-ctags: CTAGS
-CTAGS:
-
-
-check-TESTS: $(TESTS)
- @failed=0; all=0; xfail=0; xpass=0; skip=0; ws='[ ]'; \
- srcdir=$(srcdir); export srcdir; \
- list=' $(TESTS) '; \
- if test -n "$$list"; then \
- for tst in $$list; do \
- if test -f ./$$tst; then dir=./; \
- elif test -f $$tst; then dir=; \
- else dir="$(srcdir)/"; fi; \
- if $(TESTS_ENVIRONMENT) $${dir}$$tst; then \
- all=`expr $$all + 1`; \
- case " $(XFAIL_TESTS) " in \
- *$$ws$$tst$$ws*) \
- xpass=`expr $$xpass + 1`; \
- failed=`expr $$failed + 1`; \
- echo "XPASS: $$tst"; \
- ;; \
- *) \
- echo "PASS: $$tst"; \
- ;; \
- esac; \
- elif test $$? -ne 77; then \
- all=`expr $$all + 1`; \
- case " $(XFAIL_TESTS) " in \
- *$$ws$$tst$$ws*) \
- xfail=`expr $$xfail + 1`; \
- echo "XFAIL: $$tst"; \
- ;; \
- *) \
- failed=`expr $$failed + 1`; \
- echo "FAIL: $$tst"; \
- ;; \
- esac; \
- else \
- skip=`expr $$skip + 1`; \
- echo "SKIP: $$tst"; \
- fi; \
- done; \
- if test "$$failed" -eq 0; then \
- if test "$$xfail" -eq 0; then \
- banner="All $$all tests passed"; \
- else \
- banner="All $$all tests behaved as expected ($$xfail expected failures)"; \
- fi; \
- else \
- if test "$$xpass" -eq 0; then \
- banner="$$failed of $$all tests failed"; \
- else \
- banner="$$failed of $$all tests did not behave as expected ($$xpass unexpected passes)"; \
- fi; \
- fi; \
- dashes="$$banner"; \
- skipped=""; \
- if test "$$skip" -ne 0; then \
- skipped="($$skip tests were not run)"; \
- test `echo "$$skipped" | wc -c` -le `echo "$$banner" | wc -c` || \
- dashes="$$skipped"; \
- fi; \
- report=""; \
- if test "$$failed" -ne 0 && test -n "$(PACKAGE_BUGREPORT)"; then \
- report="Please report to $(PACKAGE_BUGREPORT)"; \
- test `echo "$$report" | wc -c` -le `echo "$$banner" | wc -c` || \
- dashes="$$report"; \
- fi; \
- dashes=`echo "$$dashes" | sed s/./=/g`; \
- echo "$$dashes"; \
- echo "$$banner"; \
- test -z "$$skipped" || echo "$$skipped"; \
- test -z "$$report" || echo "$$report"; \
- echo "$$dashes"; \
- test "$$failed" -eq 0; \
- else :; fi
-
-distdir: $(DISTFILES)
- @srcdirstrip=`echo "$(srcdir)" | sed 's/[].[^$$\\*]/\\\\&/g'`; \
- topsrcdirstrip=`echo "$(top_srcdir)" | sed 's/[].[^$$\\*]/\\\\&/g'`; \
- list='$(DISTFILES)'; \
- dist_files=`for file in $$list; do echo $$file; done | \
- sed -e "s|^$$srcdirstrip/||;t" \
- -e "s|^$$topsrcdirstrip/|$(top_builddir)/|;t"`; \
- case $$dist_files in \
- */*) $(MKDIR_P) `echo "$$dist_files" | \
- sed '/\//!d;s|^|$(distdir)/|;s,/[^/]*$$,,' | \
- sort -u` ;; \
- esac; \
- for file in $$dist_files; do \
- if test -f $$file || test -d $$file; then d=.; else d=$(srcdir); fi; \
- if test -d $$d/$$file; then \
- dir=`echo "/$$file" | sed -e 's,/[^/]*$$,,'`; \
- if test -d $(srcdir)/$$file && test $$d != $(srcdir); then \
- cp -pR $(srcdir)/$$file $(distdir)$$dir || exit 1; \
- fi; \
- cp -pR $$d/$$file $(distdir)$$dir || exit 1; \
- else \
- test -f $(distdir)/$$file \
- || cp -p $$d/$$file $(distdir)/$$file \
- || exit 1; \
- fi; \
- done
-check-am: all-am
- $(MAKE) $(AM_MAKEFLAGS) check-TESTS
-check: check-am
-all-am: Makefile
-installdirs:
-install: install-am
-install-exec: install-exec-am
-install-data: install-data-am
-uninstall: uninstall-am
-
-install-am: all-am
- @$(MAKE) $(AM_MAKEFLAGS) install-exec-am install-data-am
-
-installcheck: installcheck-am
-install-strip:
- $(MAKE) $(AM_MAKEFLAGS) INSTALL_PROGRAM="$(INSTALL_STRIP_PROGRAM)" \
- install_sh_PROGRAM="$(INSTALL_STRIP_PROGRAM)" INSTALL_STRIP_FLAG=-s \
- `test -z '$(STRIP)' || \
- echo "INSTALL_PROGRAM_ENV=STRIPPROG='$(STRIP)'"` install
-mostlyclean-generic:
-
-clean-generic:
-
-distclean-generic:
- -test -z "$(CONFIG_CLEAN_FILES)" || rm -f $(CONFIG_CLEAN_FILES)
-
-maintainer-clean-generic:
- @echo "This command is intended for maintainers to use"
- @echo "it deletes files that may require special tools to rebuild."
-clean: clean-am
-
-clean-am: clean-generic mostlyclean-am
-
-distclean: distclean-am
- -rm -f Makefile
-distclean-am: clean-am distclean-generic
-
-dvi: dvi-am
-
-dvi-am:
-
-html: html-am
-
-info: info-am
-
-info-am:
-
-install-data-am:
-
-install-dvi: install-dvi-am
-
-install-exec-am:
-
-install-html: install-html-am
-
-install-info: install-info-am
-
-install-man:
-
-install-pdf: install-pdf-am
-
-install-ps: install-ps-am
-
-installcheck-am:
-
-maintainer-clean: maintainer-clean-am
- -rm -f Makefile
-maintainer-clean-am: distclean-am maintainer-clean-generic
-
-mostlyclean: mostlyclean-am
-
-mostlyclean-am: mostlyclean-generic
-
-pdf: pdf-am
-
-pdf-am:
-
-ps: ps-am
-
-ps-am:
-
-uninstall-am:
-
-.MAKE: install-am install-strip
-
-.PHONY: all all-am check check-TESTS check-am clean clean-generic \
- distclean distclean-generic distdir dvi dvi-am html html-am \
- info info-am install install-am install-data install-data-am \
- install-dvi install-dvi-am install-exec install-exec-am \
- install-html install-html-am install-info install-info-am \
- install-man install-pdf install-pdf-am install-ps \
- install-ps-am install-strip installcheck installcheck-am \
- installdirs maintainer-clean maintainer-clean-generic \
- mostlyclean mostlyclean-generic pdf pdf-am ps ps-am uninstall \
- uninstall-am
-
-# Tell versions [3.59,3.63) of GNU make to not export all variables.
-# Otherwise a system limit (for SysV at least) may be exceeded.
-.NOEXPORT:
diff --git a/tests/chmod/c-option b/tests/chmod/c-option
deleted file mode 100755
index bf2c4a9..0000000
--- a/tests/chmod/c-option
+++ /dev/null
@@ -1,67 +0,0 @@
-#!/bin/sh
-# Verify that chmod's --changes (-c) option works.
-
-# Copyright (C) 2000, 2004, 2006 Free Software Foundation, Inc.
-
-# This program is free software; you can redistribute it and/or modify
-# it under the terms of the GNU General Public License as published by
-# the Free Software Foundation; either version 2 of the License, or
-# (at your option) any later version.
-
-# This program is distributed in the hope that it will be useful,
-# but WITHOUT ANY WARRANTY; without even the implied warranty of
-# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
-# GNU General Public License for more details.
-
-# You should have received a copy of the GNU General Public License
-# along with this program; if not, write to the Free Software
-# Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA
-# 02110-1301, USA.
-
-if test "$VERBOSE" = yes; then
- set -x
- chmod --version
-fi
-
-. $srcdir/../lang-default
-
-pwd=`pwd`
-tmp=c-option.$$
-trap 'status=$?; cd "$pwd" && rm -rf $tmp && exit $status' 0
-trap '(exit $?); exit' 1 2 13 15
-
-framework_failure=0
-
-# Record absolute path of srcdir.
-cd $srcdir || framework_failure=1
-abs_srcdir=`pwd`
-
-cd "$pwd" || framework_failure=1
-mkdir $tmp || framework_failure=1
-cd $tmp || framework_failure=1
-
-umask 0
-file=f
-touch $file || framework_failure=1
-chmod 444 $file || framework_failure=1
-
-if test $framework_failure = 1; then
- echo 'failure in testing framework'
- (exit 1); exit 1
-fi
-
-. "$abs_srcdir/../setgid-check"
-
-fail=0
-
-chmod u=rwx $file || fail=1
-chmod -c g=rwx $file > out || fail=1
-chmod -c g=rwx $file > empty || fail=1
-
-test -s empty && fail=1
-case "`cat out`" in
- "mode of \`f' changed to 0774 "?rwxrwxr--?) ;;
- *) fail=1 ;;
-esac
-
-(exit $fail); exit $fail
diff --git a/tests/chmod/c-option.sh b/tests/chmod/c-option.sh
new file mode 100755
index 0000000..d66b496
--- /dev/null
+++ b/tests/chmod/c-option.sh
@@ -0,0 +1,51 @@
+#!/bin/sh
+# Verify that chmod's --changes (-c) option works.
+
+# Copyright (C) 2000-2016 Free Software Foundation, Inc.
+
+# This program is free software: you can redistribute it and/or modify
+# it under the terms of the GNU General Public License as published by
+# the Free Software Foundation, either version 3 of the License, or
+# (at your option) any later version.
+
+# This program is distributed in the hope that it will be useful,
+# but WITHOUT ANY WARRANTY; without even the implied warranty of
+# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
+# GNU General Public License for more details.
+
+# You should have received a copy of the GNU General Public License
+# along with this program. If not, see <http://www.gnu.org/licenses/>.
+
+. "${srcdir=.}/tests/init.sh"; path_prepend_ ./src
+print_ver_ chmod
+
+umask 0
+file=f
+touch $file || framework_failure_
+chmod 444 $file || framework_failure_
+
+skip_if_setgid_
+
+
+chmod u=rwx $file || fail=1
+chmod -c g=rwx $file > out || fail=1
+chmod -c g=rwx $file > empty || fail=1
+
+compare /dev/null empty || fail=1
+case "$(cat out)" in
+ "mode of 'f' changed from 0744 "?rwxr--r--?" to 0774 "?rwxrwxr--?) ;;
+ *) cat out; fail=1 ;;
+esac
+
+# From V5.1.0 to 8.22 this would stat the wrong file and
+# give an erroneous ENOENT diagnostic
+mkdir -p a/b || framework_failure_
+# chmod g+s might fail as detailed in setgid.sh
+# but we don't care about those edge cases here
+chmod g+s a/b
+# This should never warn, but it did when special
+# bits are set on b (the common case under test)
+chmod -c -R g+w a 2>err
+compare /dev/null err || fail=1
+
+Exit $fail
diff --git a/tests/chmod/equal-x b/tests/chmod/equal-x
deleted file mode 100755
index 3e16ce5..0000000
--- a/tests/chmod/equal-x
+++ /dev/null
@@ -1,54 +0,0 @@
-#!/bin/sh
-# Test "chmod =x" and the like.
-
-# Copyright (C) 1999, 2000, 2002, 2004, 2005, 2006 Free Software Foundation,
-# Inc.
-
-# This program is free software; you can redistribute it and/or modify
-# it under the terms of the GNU General Public License as published by
-# the Free Software Foundation; either version 2 of the License, or
-# (at your option) any later version.
-
-# This program is distributed in the hope that it will be useful,
-# but WITHOUT ANY WARRANTY; without even the implied warranty of
-# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
-# GNU General Public License for more details.
-
-# You should have received a copy of the GNU General Public License
-# along with this program; if not, write to the Free Software
-# Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA
-# 02110-1301, USA.
-
-if test "$VERBOSE" = yes; then
- set -x
- chmod --version
-fi
-
-pwd=`pwd`
-t0=`echo "$0"|sed 's,.*/,,'`.tmp; tmp=$t0/$$
-trap 'status=$?; cd "$pwd" && chmod -R u+rwx $t0 && rm -rf $t0 && exit $status' 0
-trap '(exit $?); exit' 1 2 13 15
-
-framework_failure=0
-mkdir -p $tmp || framework_failure=1
-cd $tmp || framework_failure=1
-
-file=f
-touch $file || framework_failure=1
-
-if test $framework_failure = 1; then
- echo 'failure in testing framework'
- (exit 1); exit 1
-fi
-
-fail=0
-umask 005
-for mode in =x =xX =Xx =x,=X =X,=x; do
- chmod a=r,$mode $file || fail=1
- case "`ls -l $file`" in
- ---x--x---*) ;;
- *) fail=1; echo "after \`chmod $mode $file':"; ls -l $file ;;
- esac
-done
-
-(exit $fail); exit $fail
diff --git a/tests/chmod/equal-x.sh b/tests/chmod/equal-x.sh
new file mode 100755
index 0000000..54acf4f
--- /dev/null
+++ b/tests/chmod/equal-x.sh
@@ -0,0 +1,34 @@
+#!/bin/sh
+# Test "chmod =x" and the like.
+
+# Copyright (C) 1999-2016 Free Software Foundation, Inc.
+
+# This program is free software: you can redistribute it and/or modify
+# it under the terms of the GNU General Public License as published by
+# the Free Software Foundation, either version 3 of the License, or
+# (at your option) any later version.
+
+# This program is distributed in the hope that it will be useful,
+# but WITHOUT ANY WARRANTY; without even the implied warranty of
+# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
+# GNU General Public License for more details.
+
+# You should have received a copy of the GNU General Public License
+# along with this program. If not, see <http://www.gnu.org/licenses/>.
+
+. "${srcdir=.}/tests/init.sh"; path_prepend_ ./src
+print_ver_ chmod
+
+file=f
+touch $file || framework_failure_
+
+umask 005
+for mode in =x =xX =Xx =x,=X =X,=x; do
+ chmod a=r,$mode $file || fail=1
+ case "$(ls -l $file)" in
+ ---x--x---*) ;;
+ *) fail=1; echo "after 'chmod $mode $file':"; ls -l $file ;;
+ esac
+done
+
+Exit $fail
diff --git a/tests/chmod/equals b/tests/chmod/equals
deleted file mode 100755
index dfaad17..0000000
--- a/tests/chmod/equals
+++ /dev/null
@@ -1,65 +0,0 @@
-#!/bin/sh
-# Make sure chmod mode arguments of the form A=B work properly.
-# Before fileutils-4.1.2, some of them didn't.
-# Also, before coreutils-5.3.1, =[ugo] sometimes didn't work.
-
-# Copyright (C) 2001, 2002, 2004, 2005, 2006 Free Software Foundation,
-# Inc.
-
-# This program is free software; you can redistribute it and/or modify
-# it under the terms of the GNU General Public License as published by
-# the Free Software Foundation; either version 2 of the License, or
-# (at your option) any later version.
-
-# This program is distributed in the hope that it will be useful,
-# but WITHOUT ANY WARRANTY; without even the implied warranty of
-# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
-# GNU General Public License for more details.
-
-# You should have received a copy of the GNU General Public License
-# along with this program; if not, write to the Free Software
-# Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA
-# 02110-1301, USA.
-
-if test "$VERBOSE" = yes; then
- set -x
- chmod --version
-fi
-
-pwd=`pwd`
-tmp=equals.$$
-trap 'status=$?; cd "$pwd" && rm -rf $tmp && exit $status' 0
-trap '(exit $?); exit' 1 2 13 15
-
-framework_failure=0
-mkdir $tmp || framework_failure=1
-cd $tmp || framework_failure=1
-touch f || framework_failure=1
-
-if test $framework_failure = 1; then
- echo "$0: failure in testing framework" 1>&2
- (exit 1); exit 1
-fi
-
-fail=0
-
-expected_u=-rwx------
-expected_g=----rwx---
-expected_o=-------rwx
-
-for src in u g o; do
- for dest in u g o; do
- test $dest = $src && continue
- chmod a=,$src=rwx,$dest=$src,$src= f || fail=1
- set _ `ls -l f`; shift; actual_perms=$1
- expected_perms=`eval 'echo \$expected_'$dest`
- test "$actual_perms" = "$expected_perms" || fail=1
- done
-done
-
-umask 027
-chmod a=,u=rwx,=u f || fail=1
-set _ `ls -l f`; shift; actual_perms=$1
-test "$actual_perms" = "-rwxr-x---" || fail=1
-
-(exit $fail); exit $fail
diff --git a/tests/chmod/equals.sh b/tests/chmod/equals.sh
new file mode 100755
index 0000000..39c7982
--- /dev/null
+++ b/tests/chmod/equals.sh
@@ -0,0 +1,46 @@
+#!/bin/sh
+# Make sure chmod mode arguments of the form A=B work properly.
+# Before fileutils-4.1.2, some of them didn't.
+# Also, before coreutils-5.3.1, =[ugo] sometimes didn't work.
+
+# Copyright (C) 2001-2016 Free Software Foundation, Inc.
+
+# This program is free software: you can redistribute it and/or modify
+# it under the terms of the GNU General Public License as published by
+# the Free Software Foundation, either version 3 of the License, or
+# (at your option) any later version.
+
+# This program is distributed in the hope that it will be useful,
+# but WITHOUT ANY WARRANTY; without even the implied warranty of
+# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
+# GNU General Public License for more details.
+
+# You should have received a copy of the GNU General Public License
+# along with this program. If not, see <http://www.gnu.org/licenses/>.
+
+. "${srcdir=.}/tests/init.sh"; path_prepend_ ./src
+print_ver_ chmod
+
+touch f || framework_failure_
+
+
+expected_u=-rwx------
+expected_g=----rwx---
+expected_o=-------rwx
+
+for src in u g o; do
+ for dest in u g o; do
+ test $dest = $src && continue
+ chmod a=,$src=rwx,$dest=$src,$src= f || fail=1
+ actual_perms=$(ls -l f|cut -b-10)
+ expected_perms=$(eval 'echo $expected_'$dest)
+ test "$actual_perms" = "$expected_perms" || fail=1
+ done
+done
+
+umask 027
+chmod a=,u=rwx,=u f || fail=1
+actual_perms=$(ls -l f|cut -b-10)
+test "$actual_perms" = "-rwxr-x---" || fail=1
+
+Exit $fail
diff --git a/tests/chmod/inaccessible b/tests/chmod/inaccessible
deleted file mode 100755
index 95e91c5..0000000
--- a/tests/chmod/inaccessible
+++ /dev/null
@@ -1,47 +0,0 @@
-#!/bin/sh
-# Test for the bug fixed on 2006-09-20.
-
-# Copyright (C) 2006 Free Software Foundation, Inc.
-
-# This program is free software; you can redistribute it and/or modify
-# it under the terms of the GNU General Public License as published by
-# the Free Software Foundation; either version 2 of the License, or
-# (at your option) any later version.
-
-# This program is distributed in the hope that it will be useful,
-# but WITHOUT ANY WARRANTY; without even the implied warranty of
-# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
-# GNU General Public License for more details.
-
-# You should have received a copy of the GNU General Public License
-# along with this program; if not, write to the Free Software
-# Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA
-# 02110-1301, USA.
-
-if test "$VERBOSE" = yes; then
- set -x
- chmod --version
-fi
-
-pwd=`pwd`
-t0=`echo "$0"|sed 's,.*/,,'`.tmp; tmp=$t0/$$
-trap 'status=$?; cd "$pwd" && chmod -R u+rwx $t0 && rm -rf $t0 && exit $status' 0
-trap '(exit $?); exit $?' 1 2 13 15
-
-framework_failure=0
-mkdir -p $tmp || framework_failure=1
-cd $tmp || framework_failure=1
-
-mkdir -p d/e
-chmod 0 d/e d
-
-if test $framework_failure = 1; then
- echo "$0: failure in testing framework" 1>&2
- (exit 1); exit 1
-fi
-
-fail=0
-
-chmod u+rwx d d/e || fail=1
-
-(exit $fail); exit $fail
diff --git a/tests/chmod/inaccessible.sh b/tests/chmod/inaccessible.sh
new file mode 100755
index 0000000..27bb32c
--- /dev/null
+++ b/tests/chmod/inaccessible.sh
@@ -0,0 +1,28 @@
+#!/bin/sh
+# Test for the bug fixed on 2006-09-20.
+
+# Copyright (C) 2006-2016 Free Software Foundation, Inc.
+
+# This program is free software: you can redistribute it and/or modify
+# it under the terms of the GNU General Public License as published by
+# the Free Software Foundation, either version 3 of the License, or
+# (at your option) any later version.
+
+# This program is distributed in the hope that it will be useful,
+# but WITHOUT ANY WARRANTY; without even the implied warranty of
+# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
+# GNU General Public License for more details.
+
+# You should have received a copy of the GNU General Public License
+# along with this program. If not, see <http://www.gnu.org/licenses/>.
+
+. "${srcdir=.}/tests/init.sh"; path_prepend_ ./src
+print_ver_ chmod
+
+mkdir -p d/e || framework_failure_
+chmod 0 d/e d || framework_failure_
+
+
+chmod u+rwx d d/e || fail=1
+
+Exit $fail
diff --git a/tests/chmod/no-x b/tests/chmod/no-x
deleted file mode 100755
index 34b3952..0000000
--- a/tests/chmod/no-x
+++ /dev/null
@@ -1,81 +0,0 @@
-#!/bin/sh
-# Make sure chmod gives the right diagnostic for a readable,
-# but inaccessible directory.
-
-# Copyright (C) 2003, 2006 Free Software Foundation, Inc.
-
-# This program is free software; you can redistribute it and/or modify
-# it under the terms of the GNU General Public License as published by
-# the Free Software Foundation; either version 2 of the License, or
-# (at your option) any later version.
-
-# This program is distributed in the hope that it will be useful,
-# but WITHOUT ANY WARRANTY; without even the implied warranty of
-# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
-# GNU General Public License for more details.
-
-# You should have received a copy of the GNU General Public License
-# along with this program; if not, write to the Free Software
-# Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA
-# 02110-1301, USA.
-
-if test "$VERBOSE" = yes; then
- set -x
- chmod --version
-fi
-
-. $srcdir/../lang-default
-PRIV_CHECK_ARG=require-non-root . $srcdir/../priv-check
-
-pwd=`pwd`
-t0=`echo "$0"|sed 's,.*/,,'`.tmp; tmp=$t0/$$
-trap 'status=$?; cd "$pwd" && chmod -R u+rwx $t0 && rm -rf $t0 && exit $status' 0
-trap '(exit $?); exit $?' 1 2 13 15
-
-framework_failure=0
-mkdir -p $tmp || framework_failure=1
-cd $tmp || framework_failure=1
-mkdir -p d/no-x/y || framework_failure=1
-chmod u=rw d/no-x || framework_failure=1
-
-if test $framework_failure = 1; then
- echo "$0: failure in testing framework" 1>&2
- (exit 1); exit 1
-fi
-
-fail=0
-
-# This must exit nonzero.
-chmod -R o=r d >/dev/null 2>out && fail=1
-
-cat <<\EOF > exp
-chmod: `d/no-x': Permission denied
-EOF
-
-# With native fdopendir, du uses a different code path.
-cat <<\EOF > exp-native-fdopendir
-chmod: cannot access `d/no-x/y': Permission denied
-EOF
-
-if cmp out exp >/dev/null 2>&1; then
- :
-else
- if cmp out exp-native-fdopendir; then
- :
- else
- fail=1
- fi
-fi
-
-test $fail = 1 && diff out exp 2> /dev/null
-
-mkdir -p a/b
-cd a
-# This will fail with ``chmod: fts_read failed: Permission denied''
-chmod a-x . b 2> /dev/null && fail=1
-# chmod must exit with status 1.
-# Due to a bug in coreutils-5.93's fts.c, chmod would provoke
-# an abort (exit with status 134) on recent glibc-based systems.
-test $? = 1 || fail=1
-
-(exit $fail); exit $fail
diff --git a/tests/chmod/no-x.sh b/tests/chmod/no-x.sh
new file mode 100755
index 0000000..304eb82
--- /dev/null
+++ b/tests/chmod/no-x.sh
@@ -0,0 +1,57 @@
+#!/bin/sh
+# Make sure chmod gives the right diagnostic for a readable,
+# but inaccessible directory.
+
+# Copyright (C) 2003-2016 Free Software Foundation, Inc.
+
+# This program is free software: you can redistribute it and/or modify
+# it under the terms of the GNU General Public License as published by
+# the Free Software Foundation, either version 3 of the License, or
+# (at your option) any later version.
+
+# This program is distributed in the hope that it will be useful,
+# but WITHOUT ANY WARRANTY; without even the implied warranty of
+# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
+# GNU General Public License for more details.
+
+# You should have received a copy of the GNU General Public License
+# along with this program. If not, see <http://www.gnu.org/licenses/>.
+
+. "${srcdir=.}/tests/init.sh"; path_prepend_ ./src
+print_ver_ chmod
+skip_if_root_
+
+mkdir -p d/no-x/y a/b || framework_failure_
+chmod u=rw d/no-x || framework_failure_
+
+
+# This must exit nonzero.
+chmod -R o=r d >/dev/null 2>out && fail=1
+
+prog=chmod
+# NOTE: this code is the same for all tests/*/no-x tests.
+# Depending on whether fts is using native fdopendir, we see one
+# of the following diagnostics (note also the /y suffix in one case):
+# prog: 'd/no-x': Permission denied
+# prog: cannot access 'd/no-x/y': Permission denied
+# prog: cannot read directory 'd/no-x': Permission denied
+# Convert either of the latter two to the first one.
+sed "s/^$prog: cannot access /$prog: /" out > t && mv t out
+sed "s/^$prog: cannot read directory /$prog: /" out > t && mv t out
+sed 's,d/no-x/y,d/no-x,' out > t && mv t out
+
+cat <<EOF > exp
+$prog: 'd/no-x': Permission denied
+EOF
+
+compare exp out || fail=1
+
+cd a
+# This will fail with ''chmod: fts_read failed: Permission denied''
+chmod a-x . b 2> /dev/null && fail=1
+# chmod must exit with status 1.
+# Due to a bug in coreutils-5.93's fts.c, chmod would provoke
+# an abort (exit with status 134) on recent glibc-based systems.
+test $? = 1 || fail=1
+
+Exit $fail
diff --git a/tests/chmod/octal b/tests/chmod/octal
deleted file mode 100755
index b727f84..0000000
--- a/tests/chmod/octal
+++ /dev/null
@@ -1,48 +0,0 @@
-#!/bin/sh
-# ensure that chmod diagnoses a certain type of invalid mode string
-
-# Copyright (C) 2005, 2006 Free Software Foundation, Inc.
-
-# This program is free software; you can redistribute it and/or modify
-# it under the terms of the GNU General Public License as published by
-# the Free Software Foundation; either version 2 of the License, or
-# (at your option) any later version.
-
-# This program is distributed in the hope that it will be useful,
-# but WITHOUT ANY WARRANTY; without even the implied warranty of
-# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
-# GNU General Public License for more details.
-
-# You should have received a copy of the GNU General Public License
-# along with this program; if not, write to the Free Software
-# Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA
-# 02110-1301, USA.
-
-if test "$VERBOSE" = yes; then
- set -x
- chmod --version
-fi
-
-pwd=`pwd`
-t0=`echo "$0"|sed 's,.*/,,'`.tmp; tmp=$t0/$$
-trap 'status=$?; cd "$pwd" && chmod -R u+rwx $t0 && rm -rf $t0 && exit $status' 0
-trap '(exit $?); exit $?' 1 2 13 15
-
-framework_failure=0
-mkdir -p $tmp || framework_failure=1
-cd $tmp || framework_failure=1
-
-if test $framework_failure = 1; then
- echo "$0: failure in testing framework" 1>&2
- (exit 1); exit 1
-fi
-
-fail=0
-
-# Before coreutils-5.92, this would mistakenly succeed,
-# and act like `chmod 0 .'.
-chmod 0-followed-by-anything . 2> /dev/null && fail=1
-chmod 7-followed-by-anything . 2> /dev/null && fail=1
-chmod 8 . 2> /dev/null && fail=1
-
-(exit $fail); exit $fail
diff --git a/tests/chmod/octal.sh b/tests/chmod/octal.sh
new file mode 100755
index 0000000..b0597bc
--- /dev/null
+++ b/tests/chmod/octal.sh
@@ -0,0 +1,29 @@
+#!/bin/sh
+# ensure that chmod diagnoses a certain type of invalid mode string
+
+# Copyright (C) 2005-2016 Free Software Foundation, Inc.
+
+# This program is free software: you can redistribute it and/or modify
+# it under the terms of the GNU General Public License as published by
+# the Free Software Foundation, either version 3 of the License, or
+# (at your option) any later version.
+
+# This program is distributed in the hope that it will be useful,
+# but WITHOUT ANY WARRANTY; without even the implied warranty of
+# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
+# GNU General Public License for more details.
+
+# You should have received a copy of the GNU General Public License
+# along with this program. If not, see <http://www.gnu.org/licenses/>.
+
+. "${srcdir=.}/tests/init.sh"; path_prepend_ ./src
+print_ver_ chmod
+
+
+# Before coreutils-5.92, this would mistakenly succeed,
+# and act like 'chmod 0 .'.
+for mode in '0-anything' '7-anything' '8'; do
+ returns_ 1 chmod "$mode" . 2>/dev/null || fail=1
+done
+
+Exit $fail
diff --git a/tests/chmod/setgid b/tests/chmod/setgid
deleted file mode 100755
index d2868f9..0000000
--- a/tests/chmod/setgid
+++ /dev/null
@@ -1,76 +0,0 @@
-#!/bin/sh
-# Make sure GNU chmod works the same way as those of Solaris, HPUX, AIX
-# wrt directories with the setgid bit set.
-
-# Copyright (C) 2001, 2004, 2005, 2006 Free Software Foundation, Inc.
-
-# This program is free software; you can redistribute it and/or modify
-# it under the terms of the GNU General Public License as published by
-# the Free Software Foundation; either version 2 of the License, or
-# (at your option) any later version.
-
-# This program is distributed in the hope that it will be useful,
-# but WITHOUT ANY WARRANTY; without even the implied warranty of
-# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
-# GNU General Public License for more details.
-
-# You should have received a copy of the GNU General Public License
-# along with this program; if not, write to the Free Software
-# Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA
-# 02110-1301, USA.
-
-if test "$VERBOSE" = yes; then
- set -x
- chmod --version
-fi
-
-. $srcdir/../envvar-check
-. $srcdir/../lang-default
-
-pwd=`pwd`
-tmp=setgid.$$
-trap 'status=$?; cd "$pwd" && rm -rf $tmp && exit $status' 0
-trap '(exit $?); exit' 1 2 13 15
-
-framework_failure=0
-
-mkdir $tmp || framework_failure=1
-cd $tmp || framework_failure=1
-
-test=../../../src/test
-
-umask 0
-mkdir d || framework_failure=1
-
-chmod g+s d 2> /dev/null && $test -g d ||
- {
- # This is required because on some systems (at least NetBSD 1.4.2A),
- # it may happen that when you create a directory, its group isn't one
- # to which you belong. When that happens, the above chmod fails. So
- # here, upon failure, we try to set the group, then rerun the chmod command.
-
- id_g=`id -g` &&
- test -n "$id_g" &&
- chgrp "$id_g" d &&
- chmod g+s d || framework_failure=1
- }
-
-if test $framework_failure = 1; then
- echo 'failure in testing framework' 1>&2
- (exit 1); exit 1
-fi
-
-# "chmod g+s d" does nothing on some NFS file systems.
-$test -g d || {
- echo 1>&2 "$0: cannot create setgid directories," \
- "so can't run this test"
- exit 77
-}
-
-fail=0
-
-chmod 755 d
-
-case `ls -ld d` in drwxr-sr-x*);; *) fail=1;; esac
-
-(exit $fail); exit $fail
diff --git a/tests/chmod/setgid.sh b/tests/chmod/setgid.sh
new file mode 100755
index 0000000..1400dc3
--- /dev/null
+++ b/tests/chmod/setgid.sh
@@ -0,0 +1,64 @@
+#!/bin/sh
+# Make sure GNU chmod works the same way as those of Solaris, HPUX, AIX
+# on directories with the setgid bit set. Also, check that the GNU octal
+# notations work.
+
+# Copyright (C) 2001-2016 Free Software Foundation, Inc.
+
+# This program is free software: you can redistribute it and/or modify
+# it under the terms of the GNU General Public License as published by
+# the Free Software Foundation, either version 3 of the License, or
+# (at your option) any later version.
+
+# This program is distributed in the hope that it will be useful,
+# but WITHOUT ANY WARRANTY; without even the implied warranty of
+# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
+# GNU General Public License for more details.
+
+# You should have received a copy of the GNU General Public License
+# along with this program. If not, see <http://www.gnu.org/licenses/>.
+
+. "${srcdir=.}/tests/init.sh"; path_prepend_ ./src
+print_ver_ chmod
+
+umask 0
+mkdir -m 755 d || framework_failure_
+
+chmod g+s d 2> /dev/null && env -- test -g d ||
+ {
+ # This is required because on some systems (at least NetBSD 1.4.2A),
+ # it may happen that when you create a directory, its group isn't one
+ # to which you belong. When that happens, the above chmod fails. So
+ # here, upon failure, we try to set the group, then rerun the chmod command.
+
+ id_g=$(id -g) &&
+ test -n "$id_g" &&
+ chgrp "$id_g" d &&
+ chmod g+s d || framework_failure_
+ }
+
+# "chmod g+s d" does nothing on some NFS file systems.
+env -- test -g d ||
+ skip_ 'cannot create setgid directories'
+
+for mode in \
+ + - g-s 00755 000755 =755 -2000 -7022 755 0755 \
+ +2000 -5022 =7777,-5022
+do
+ chmod $mode d || fail=1
+
+ case $mode in
+ g-s | 00*755 | =755 | -2000 | -7022)
+ expected_mode=drwxr-xr-x ;;
+ *) expected_mode=drwxr-sr-x ;;
+ esac
+ ls_output=$(ls -ld d)
+ case $ls_output in
+ $expected_mode*) ;;
+ *) fail=1 ;;
+ esac
+
+ chmod =2755 d || fail=1
+done
+
+Exit $fail
diff --git a/tests/chmod/silent.sh b/tests/chmod/silent.sh
new file mode 100755
index 0000000..e5a23ff
--- /dev/null
+++ b/tests/chmod/silent.sh
@@ -0,0 +1,29 @@
+#!/bin/sh
+# ensure that chgrp, chmod, chown -f don't print some diagnostics
+
+# Copyright (C) 2008-2016 Free Software Foundation, Inc.
+
+# This program is free software: you can redistribute it and/or modify
+# it under the terms of the GNU General Public License as published by
+# the Free Software Foundation, either version 3 of the License, or
+# (at your option) any later version.
+
+# This program is distributed in the hope that it will be useful,
+# but WITHOUT ANY WARRANTY; without even the implied warranty of
+# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
+# GNU General Public License for more details.
+
+# You should have received a copy of the GNU General Public License
+# along with this program. If not, see <http://www.gnu.org/licenses/>.
+
+. "${srcdir=.}/tests/init.sh"; path_prepend_ ./src
+print_ver_ chgrp chmod chown
+
+chmod -f 0 no-such 2> out && fail=1
+chgrp -f 0 no-such 2>> out && fail=1
+chown -f 0:0 no-such 2>> out && fail=1
+touch exp || fail=1
+
+compare exp out || fail=1
+
+Exit $fail
diff --git a/tests/chmod/thru-dangling.sh b/tests/chmod/thru-dangling.sh
new file mode 100755
index 0000000..726b46e
--- /dev/null
+++ b/tests/chmod/thru-dangling.sh
@@ -0,0 +1,31 @@
+#!/bin/sh
+# Test for proper error and exit code of chmod on a dangling symlink.
+
+# Copyright (C) 2007-2016 Free Software Foundation, Inc.
+
+# This program is free software: you can redistribute it and/or modify
+# it under the terms of the GNU General Public License as published by
+# the Free Software Foundation, either version 3 of the License, or
+# (at your option) any later version.
+
+# This program is distributed in the hope that it will be useful,
+# but WITHOUT ANY WARRANTY; without even the implied warranty of
+# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
+# GNU General Public License for more details.
+
+# You should have received a copy of the GNU General Public License
+# along with this program. If not, see <http://www.gnu.org/licenses/>.
+
+. "${srcdir=.}/tests/init.sh"; path_prepend_ ./src
+print_ver_ chmod
+
+ln -s non-existent dangle || framework_failure_
+
+
+# This operation cannot succeed since the symbolic link dangles.
+chmod 644 dangle 2> out && fail=1
+
+echo "chmod: cannot operate on dangling symlink 'dangle'" > exp
+compare exp out || fail=1
+
+Exit $fail
diff --git a/tests/chmod/umask-x b/tests/chmod/umask-x
deleted file mode 100755
index 6bd1e08..0000000
--- a/tests/chmod/umask-x
+++ /dev/null
@@ -1,53 +0,0 @@
-#!/bin/sh
-# Test that chmod -x file reports an error if the result is executable.
-
-# Copyright (C) 2005, 2006 Free Software Foundation, Inc.
-
-# This program is free software; you can redistribute it and/or modify
-# it under the terms of the GNU General Public License as published by
-# the Free Software Foundation; either version 2 of the License, or
-# (at your option) any later version.
-
-# This program is distributed in the hope that it will be useful,
-# but WITHOUT ANY WARRANTY; without even the implied warranty of
-# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
-# GNU General Public License for more details.
-
-# You should have received a copy of the GNU General Public License
-# along with this program; if not, write to the Free Software
-# Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA
-# 02110-1301, USA.
-
-if test "$VERBOSE" = yes; then
- set -x
- chmod --version
-fi
-
-. $srcdir/../lang-default
-
-pwd=`pwd`
-tmp=minus.$$
-trap 'status=$?; cd "$pwd" && rm -rf $tmp && exit $status' 0
-trap '(exit $?); exit' 1 2 13 15
-
-framework_failure=0
-mkdir $tmp || framework_failure=1
-cd $tmp || framework_failure=1
-
-if test $framework_failure = 1; then
- echo "$0: failure in testing framework" 1>&2
- (exit 1); exit 1
-fi
-
-fail=0
-
-touch file
-chmod 755 file
-(umask 77 && chmod -x file) 2>/dev/null && fail=1
-
-if test $framework_failure = 1; then
- echo "$0: failure in testing framework" 1>&2
- fail=1
-fi
-
-(exit $fail); exit $fail
diff --git a/tests/chmod/umask-x.sh b/tests/chmod/umask-x.sh
new file mode 100755
index 0000000..0d4176f
--- /dev/null
+++ b/tests/chmod/umask-x.sh
@@ -0,0 +1,26 @@
+#!/bin/sh
+# Test that chmod -x file reports an error if the result is executable.
+
+# Copyright (C) 2005-2016 Free Software Foundation, Inc.
+
+# This program is free software: you can redistribute it and/or modify
+# it under the terms of the GNU General Public License as published by
+# the Free Software Foundation, either version 3 of the License, or
+# (at your option) any later version.
+
+# This program is distributed in the hope that it will be useful,
+# but WITHOUT ANY WARRANTY; without even the implied warranty of
+# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
+# GNU General Public License for more details.
+
+# You should have received a copy of the GNU General Public License
+# along with this program. If not, see <http://www.gnu.org/licenses/>.
+
+. "${srcdir=.}/tests/init.sh"; path_prepend_ ./src
+print_ver_ chmod
+
+touch file
+chmod 755 file
+(umask 77 && returns_ 1 chmod -x file) 2>/dev/null || fail=1
+
+Exit $fail
diff --git a/tests/chmod/usage b/tests/chmod/usage
deleted file mode 100755
index a823063..0000000
--- a/tests/chmod/usage
+++ /dev/null
@@ -1,112 +0,0 @@
-#!/bin/sh
-# Verify that chmod works correctly with odd option combinations.
-
-# Copyright (C) 2004, 2005, 2006 Free Software Foundation, Inc.
-
-# This program is free software; you can redistribute it and/or modify
-# it under the terms of the GNU General Public License as published by
-# the Free Software Foundation; either version 2 of the License, or
-# (at your option) any later version.
-
-# This program is distributed in the hope that it will be useful,
-# but WITHOUT ANY WARRANTY; without even the implied warranty of
-# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
-# GNU General Public License for more details.
-
-# You should have received a copy of the GNU General Public License
-# along with this program; if not, write to the Free Software
-# Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA
-# 02110-1301, USA.
-
-if test "$VERBOSE" = yes; then
- set -x
- chmod --version
-fi
-
-. $srcdir/../lang-default
-
-pwd=`pwd`
-t0=`echo "$0"|sed 's,.*/,,'`.tmp; tmp=$t0/$$
-trap 'status=$?; cd "$pwd" && chmod -R u+rwx $t0 && rm -rf $t0 && exit $status' 0
-trap '(exit $?); exit $?' 1 2 13 15
-
-framework_failure=0
-mkdir -p $tmp || framework_failure=1
-cd $tmp || framework_failure=1
-
-if test $framework_failure = 1; then
- echo "$0: failure in testing framework" 1>&2
- (exit 1); exit 1
-fi
-
-fail=0
-
-# Each line in this list is a set of arguments, followed by :,
-# followed by the set of files it will attempt to chmod,
-# or empty if the usage is erroneous.
-# Many of these test cases are due to Glenn Fowler.
-# These test cases assume GNU behavior for "options" like -w.
-cases='
- -- :
- -- -- :
- -- -- -- f : -- f
- -- -- -w f : -w f
- -- -- f : f
- -- -w :
- -- -w -- f : -- f
- -- -w -w f : -w f
- -- -w f : f
- -- f :
- -w :
- -w -- :
- -w -- -- f : -- f
- -w -- -w f : -w f
- -w -- f : f
- -w -w :
- -w -w -- f : f
- -w -w -w f : f
- -w -w f : f
- -w f : f
- f :
- f -- :
- f -w : f
- f f :
- u+gr f :
- ug,+x f :
-'
-
-all_files=`echo "$cases" | sed 's/.*://'|sort -u`
-
-old_IFS=$IFS
-IFS='
-'
-for case in $cases; do
- IFS=$old_IFS
- args=`expr "$case" : ' *\(.*[^ ]\) *:'`
- files=`expr "$case" : '.*: *\(.*\)'`
-
- case $files in
- '')
- touch -- $all_files || framework_failure=1
- chmod $args 2>/dev/null && fail=1
- ;;
- ?*)
- touch -- $files || framework_failure=1
- chmod $args || fail=1
- for file in $files; do
- # Test for misparsing args by creating all $files but $file.
- # chmod has a bug if it succeeds even though $file is absent.
- rm -f -- $all_files && touch -- $files && rm -- $file \
- || framework_failure=1
- chmod $args 2>/dev/null && fail=1
- done
- ;;
- esac
-done
-
-if test $framework_failure = 1; then
- echo "$0: failure in testing framework" 1>&2
- fail=1
-fi
-
-(exit $fail); exit $fail
diff --git a/tests/chmod/usage.sh b/tests/chmod/usage.sh
new file mode 100755
index 0000000..142eced
--- /dev/null
+++ b/tests/chmod/usage.sh
@@ -0,0 +1,86 @@
+#!/bin/sh
+# Verify that chmod works correctly with odd option combinations.
+
+# Copyright (C) 2004-2016 Free Software Foundation, Inc.
+
+# This program is free software: you can redistribute it and/or modify
+# it under the terms of the GNU General Public License as published by
+# the Free Software Foundation, either version 3 of the License, or
+# (at your option) any later version.
+
+# This program is distributed in the hope that it will be useful,
+# but WITHOUT ANY WARRANTY; without even the implied warranty of
+# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
+# GNU General Public License for more details.
+
+# You should have received a copy of the GNU General Public License
+# along with this program. If not, see <http://www.gnu.org/licenses/>.
+
+. "${srcdir=.}/tests/init.sh"; path_prepend_ ./src
+print_ver_ chmod
+
+
+# Each line in this list is a set of arguments, followed by :,
+# followed by the set of files it will attempt to chmod,
+# or empty if the usage is erroneous.
+# Many of these test cases are due to Glenn Fowler.
+# These test cases assume GNU behavior for "options" like -w.
+cases='
+ -- :
+ -- -- :
+ -- -- -- f : -- f
+ -- -- -w f : -w f
+ -- -- f : f
+ -- -w :
+ -- -w -- f : -- f
+ -- -w -w f : -w f
+ -- -w f : f
+ -- f :
+ -w :
+ -w -- :
+ -w -- -- f : -- f
+ -w -- -w f : -w f
+ -w -- f : f
+ -w -w :
+ -w -w -- f : f
+ -w -w -w f : f
+ -w -w f : f
+ -w f : f
+ f :
+ f -- :
+ f -w : f
+ f f :
+ u+gr f :
+ ug,+x f :
+'
+
+all_files=$(echo "$cases" | sed 's/.*://'|sort -u)
+
+old_IFS=$IFS
+IFS='
+'
+for case in $cases; do
+ IFS=$old_IFS
+ args=$(expr "$case" : ' *\(.*[^ ]\) *:')
+ files=$(expr "$case" : '.*: *\(.*\)')
+
+ case $files in
+ '')
+ touch -- $all_files || framework_failure_
+ returns_ 1 chmod $args 2>/dev/null || fail=1
+ ;;
+ ?*)
+ touch -- $files || framework_failure_
+ chmod $args || fail=1
+ for file in $files; do
+ # Test for misparsing args by creating all $files but $file.
+ # chmod has a bug if it succeeds even though $file is absent.
+ rm -f -- $all_files && touch -- $files && rm -- $file \
+ || framework_failure_
+ returns_ 1 chmod $args 2>/dev/null || fail=1
+ done
+ ;;
+ esac
+done
+
+Exit $fail
diff --git a/tests/chown/Makefile.am b/tests/chown/Makefile.am
deleted file mode 100644
index 61e6581..0000000
--- a/tests/chown/Makefile.am
+++ /dev/null
@@ -1,10 +0,0 @@
-## Process this file with automake to produce Makefile.in -*-Makefile-*-.
-TESTS = \
- preserve-root \
- basic \
- deref \
- separator
-EXTRA_DIST = $(TESTS)
-TESTS_ENVIRONMENT = \
- CU_TEST_NAME=`basename $(abs_srcdir)`,$$tst \
- PATH="$(VG_PATH_PREFIX)`pwd`/../../src$(PATH_SEPARATOR)$$PATH"
diff --git a/tests/chown/Makefile.in b/tests/chown/Makefile.in
deleted file mode 100644
index fb774f7..0000000
--- a/tests/chown/Makefile.in
+++ /dev/null
@@ -1,721 +0,0 @@
-# Makefile.in generated by automake 1.10 from Makefile.am.
-# @configure_input@
-
-# Copyright (C) 1994, 1995, 1996, 1997, 1998, 1999, 2000, 2001, 2002,
-# 2003, 2004, 2005, 2006 Free Software Foundation, Inc.
-# This Makefile.in is free software; the Free Software Foundation
-# gives unlimited permission to copy and/or distribute it,
-# with or without modifications, as long as this notice is preserved.
-
-# This program is distributed in the hope that it will be useful,
-# but WITHOUT ANY WARRANTY, to the extent permitted by law; without
-# even the implied warranty of MERCHANTABILITY or FITNESS FOR A
-# PARTICULAR PURPOSE.
-
-@SET_MAKE@
-VPATH = @srcdir@
-pkgdatadir = $(datadir)/@PACKAGE@
-pkglibdir = $(libdir)/@PACKAGE@
-pkgincludedir = $(includedir)/@PACKAGE@
-am__cd = CDPATH="$${ZSH_VERSION+.}$(PATH_SEPARATOR)" && cd
-install_sh_DATA = $(install_sh) -c -m 644
-install_sh_PROGRAM = $(install_sh) -c
-install_sh_SCRIPT = $(install_sh) -c
-INSTALL_HEADER = $(INSTALL_DATA)
-transform = $(program_transform_name)
-NORMAL_INSTALL = :
-PRE_INSTALL = :
-POST_INSTALL = :
-NORMAL_UNINSTALL = :
-PRE_UNINSTALL = :
-POST_UNINSTALL = :
-build_triplet = @build@
-host_triplet = @host@
-subdir = tests/chown
-DIST_COMMON = $(srcdir)/Makefile.am $(srcdir)/Makefile.in
-ACLOCAL_M4 = $(top_srcdir)/aclocal.m4
-am__aclocal_m4_deps = $(top_srcdir)/m4/absolute-header.m4 \
- $(top_srcdir)/m4/acl.m4 $(top_srcdir)/m4/alloca.m4 \
- $(top_srcdir)/m4/allocsa.m4 $(top_srcdir)/m4/argmatch.m4 \
- $(top_srcdir)/m4/arpa_inet_h.m4 $(top_srcdir)/m4/assert.m4 \
- $(top_srcdir)/m4/atexit.m4 $(top_srcdir)/m4/autobuild.m4 \
- $(top_srcdir)/m4/backupfile.m4 $(top_srcdir)/m4/base64.m4 \
- $(top_srcdir)/m4/bison.m4 $(top_srcdir)/m4/boottime.m4 \
- $(top_srcdir)/m4/c-strtod.m4 $(top_srcdir)/m4/calloc.m4 \
- $(top_srcdir)/m4/canon-host.m4 \
- $(top_srcdir)/m4/canonicalize.m4 \
- $(top_srcdir)/m4/chdir-long.m4 $(top_srcdir)/m4/check-decl.m4 \
- $(top_srcdir)/m4/chown.m4 $(top_srcdir)/m4/clock_time.m4 \
- $(top_srcdir)/m4/cloexec.m4 $(top_srcdir)/m4/close-stream.m4 \
- $(top_srcdir)/m4/closeout.m4 $(top_srcdir)/m4/codeset.m4 \
- $(top_srcdir)/m4/config-h.m4 $(top_srcdir)/m4/cycle-check.m4 \
- $(top_srcdir)/m4/d-ino.m4 $(top_srcdir)/m4/d-type.m4 \
- $(top_srcdir)/m4/dirfd.m4 $(top_srcdir)/m4/dirname.m4 \
- $(top_srcdir)/m4/dos.m4 $(top_srcdir)/m4/double-slash-root.m4 \
- $(top_srcdir)/m4/dup2.m4 $(top_srcdir)/m4/eealloc.m4 \
- $(top_srcdir)/m4/eoverflow.m4 $(top_srcdir)/m4/error.m4 \
- $(top_srcdir)/m4/euidaccess-stat.m4 \
- $(top_srcdir)/m4/euidaccess.m4 $(top_srcdir)/m4/exclude.m4 \
- $(top_srcdir)/m4/exitfail.m4 $(top_srcdir)/m4/extensions.m4 \
- $(top_srcdir)/m4/fchdir.m4 $(top_srcdir)/m4/fcntl-safer.m4 \
- $(top_srcdir)/m4/fcntl_h.m4 $(top_srcdir)/m4/fd-reopen.m4 \
- $(top_srcdir)/m4/file-type.m4 $(top_srcdir)/m4/fileblocks.m4 \
- $(top_srcdir)/m4/filemode.m4 $(top_srcdir)/m4/filenamecat.m4 \
- $(top_srcdir)/m4/flexmember.m4 $(top_srcdir)/m4/fnmatch.m4 \
- $(top_srcdir)/m4/fpending.m4 $(top_srcdir)/m4/fprintftime.m4 \
- $(top_srcdir)/m4/free.m4 $(top_srcdir)/m4/fstypename.m4 \
- $(top_srcdir)/m4/fsusage.m4 $(top_srcdir)/m4/ftruncate.m4 \
- $(top_srcdir)/m4/fts.m4 $(top_srcdir)/m4/getaddrinfo.m4 \
- $(top_srcdir)/m4/getcwd-abort-bug.m4 \
- $(top_srcdir)/m4/getcwd-path-max.m4 $(top_srcdir)/m4/getcwd.m4 \
- $(top_srcdir)/m4/getdate.m4 $(top_srcdir)/m4/getdelim.m4 \
- $(top_srcdir)/m4/getgroups.m4 $(top_srcdir)/m4/gethostname.m4 \
- $(top_srcdir)/m4/gethrxtime.m4 $(top_srcdir)/m4/getline.m4 \
- $(top_srcdir)/m4/getloadavg.m4 $(top_srcdir)/m4/getndelim2.m4 \
- $(top_srcdir)/m4/getopt.m4 $(top_srcdir)/m4/getpagesize.m4 \
- $(top_srcdir)/m4/getpass.m4 $(top_srcdir)/m4/gettext.m4 \
- $(top_srcdir)/m4/gettime.m4 $(top_srcdir)/m4/gettimeofday.m4 \
- $(top_srcdir)/m4/getugroups.m4 \
- $(top_srcdir)/m4/getusershell.m4 $(top_srcdir)/m4/glibc21.m4 \
- $(top_srcdir)/m4/gnulib-common.m4 \
- $(top_srcdir)/m4/gnulib-comp.m4 \
- $(top_srcdir)/m4/group-member.m4 \
- $(top_srcdir)/m4/hard-locale.m4 $(top_srcdir)/m4/hash.m4 \
- $(top_srcdir)/m4/host-os.m4 $(top_srcdir)/m4/human.m4 \
- $(top_srcdir)/m4/i-ring.m4 $(top_srcdir)/m4/iconv.m4 \
- $(top_srcdir)/m4/idcache.m4 $(top_srcdir)/m4/inet_ntop.m4 \
- $(top_srcdir)/m4/inline.m4 $(top_srcdir)/m4/intmax_t.m4 \
- $(top_srcdir)/m4/inttostr.m4 $(top_srcdir)/m4/inttypes-pri.m4 \
- $(top_srcdir)/m4/inttypes.m4 $(top_srcdir)/m4/inttypes_h.m4 \
- $(top_srcdir)/m4/isapipe.m4 $(top_srcdir)/m4/jm-macros.m4 \
- $(top_srcdir)/m4/jm-winsz1.m4 $(top_srcdir)/m4/jm-winsz2.m4 \
- $(top_srcdir)/m4/lchmod.m4 $(top_srcdir)/m4/lchown.m4 \
- $(top_srcdir)/m4/lib-check.m4 $(top_srcdir)/m4/lib-ignore.m4 \
- $(top_srcdir)/m4/lib-ld.m4 $(top_srcdir)/m4/lib-link.m4 \
- $(top_srcdir)/m4/lib-prefix.m4 $(top_srcdir)/m4/link-follow.m4 \
- $(top_srcdir)/m4/localcharset.m4 \
- $(top_srcdir)/m4/long-options.m4 \
- $(top_srcdir)/m4/longdouble.m4 $(top_srcdir)/m4/longlong.m4 \
- $(top_srcdir)/m4/ls-mntd-fs.m4 $(top_srcdir)/m4/lstat.m4 \
- $(top_srcdir)/m4/mbchar.m4 $(top_srcdir)/m4/mbiter.m4 \
- $(top_srcdir)/m4/mbrtowc.m4 $(top_srcdir)/m4/mbscasecmp.m4 \
- $(top_srcdir)/m4/mbstate_t.m4 $(top_srcdir)/m4/mbswidth.m4 \
- $(top_srcdir)/m4/md5.m4 $(top_srcdir)/m4/memcasecmp.m4 \
- $(top_srcdir)/m4/memchr.m4 $(top_srcdir)/m4/memcmp.m4 \
- $(top_srcdir)/m4/memcoll.m4 $(top_srcdir)/m4/memcpy.m4 \
- $(top_srcdir)/m4/memmove.m4 $(top_srcdir)/m4/mempcpy.m4 \
- $(top_srcdir)/m4/memrchr.m4 $(top_srcdir)/m4/memset.m4 \
- $(top_srcdir)/m4/memxfrm.m4 $(top_srcdir)/m4/mkancesdirs.m4 \
- $(top_srcdir)/m4/mkdir-p.m4 $(top_srcdir)/m4/mkdir-slash.m4 \
- $(top_srcdir)/m4/mkstemp.m4 $(top_srcdir)/m4/mktime.m4 \
- $(top_srcdir)/m4/modechange.m4 $(top_srcdir)/m4/mountlist.m4 \
- $(top_srcdir)/m4/mpsort.m4 $(top_srcdir)/m4/nanosleep.m4 \
- $(top_srcdir)/m4/netinet_in_h.m4 $(top_srcdir)/m4/nls.m4 \
- $(top_srcdir)/m4/openat.m4 $(top_srcdir)/m4/pathmax.m4 \
- $(top_srcdir)/m4/perl.m4 $(top_srcdir)/m4/physmem.m4 \
- $(top_srcdir)/m4/po.m4 $(top_srcdir)/m4/posixtm.m4 \
- $(top_srcdir)/m4/posixver.m4 $(top_srcdir)/m4/prereq.m4 \
- $(top_srcdir)/m4/progtest.m4 $(top_srcdir)/m4/putenv.m4 \
- $(top_srcdir)/m4/quote.m4 $(top_srcdir)/m4/quotearg.m4 \
- $(top_srcdir)/m4/randint.m4 $(top_srcdir)/m4/randperm.m4 \
- $(top_srcdir)/m4/randread.m4 $(top_srcdir)/m4/readlink.m4 \
- $(top_srcdir)/m4/readtokens.m4 $(top_srcdir)/m4/readutmp.m4 \
- $(top_srcdir)/m4/regex.m4 \
- $(top_srcdir)/m4/rename-dest-slash.m4 \
- $(top_srcdir)/m4/rename.m4 $(top_srcdir)/m4/rmdir-errno.m4 \
- $(top_srcdir)/m4/rmdir.m4 $(top_srcdir)/m4/root-dev-ino.m4 \
- $(top_srcdir)/m4/rpmatch.m4 $(top_srcdir)/m4/safe-read.m4 \
- $(top_srcdir)/m4/safe-write.m4 $(top_srcdir)/m4/same.m4 \
- $(top_srcdir)/m4/save-cwd.m4 $(top_srcdir)/m4/savedir.m4 \
- $(top_srcdir)/m4/savewd.m4 $(top_srcdir)/m4/setenv.m4 \
- $(top_srcdir)/m4/settime.m4 $(top_srcdir)/m4/sha1.m4 \
- $(top_srcdir)/m4/sha256.m4 $(top_srcdir)/m4/sha512.m4 \
- $(top_srcdir)/m4/sig2str.m4 $(top_srcdir)/m4/snprintf.m4 \
- $(top_srcdir)/m4/socklen.m4 $(top_srcdir)/m4/sockpfaf.m4 \
- $(top_srcdir)/m4/ssize_t.m4 $(top_srcdir)/m4/st_dm_mode.m4 \
- $(top_srcdir)/m4/stat-prog.m4 $(top_srcdir)/m4/stat-time.m4 \
- $(top_srcdir)/m4/stdarg.m4 $(top_srcdir)/m4/stdbool.m4 \
- $(top_srcdir)/m4/stdint.m4 $(top_srcdir)/m4/stdint_h.m4 \
- $(top_srcdir)/m4/stdio-safer.m4 $(top_srcdir)/m4/stdio_h.m4 \
- $(top_srcdir)/m4/stdlib-safer.m4 $(top_srcdir)/m4/stdlib_h.m4 \
- $(top_srcdir)/m4/stpcpy.m4 $(top_srcdir)/m4/strcspn.m4 \
- $(top_srcdir)/m4/strdup.m4 $(top_srcdir)/m4/strftime.m4 \
- $(top_srcdir)/m4/string_h.m4 $(top_srcdir)/m4/strndup.m4 \
- $(top_srcdir)/m4/strnlen.m4 $(top_srcdir)/m4/strnumcmp.m4 \
- $(top_srcdir)/m4/strpbrk.m4 $(top_srcdir)/m4/strtod.m4 \
- $(top_srcdir)/m4/strtoimax.m4 $(top_srcdir)/m4/strtol.m4 \
- $(top_srcdir)/m4/strtoll.m4 $(top_srcdir)/m4/strtoul.m4 \
- $(top_srcdir)/m4/strtoull.m4 $(top_srcdir)/m4/strtoumax.m4 \
- $(top_srcdir)/m4/strverscmp.m4 \
- $(top_srcdir)/m4/sys_socket_h.m4 \
- $(top_srcdir)/m4/sys_stat_h.m4 $(top_srcdir)/m4/sys_time_h.m4 \
- $(top_srcdir)/m4/tempname.m4 $(top_srcdir)/m4/time_h.m4 \
- $(top_srcdir)/m4/time_r.m4 $(top_srcdir)/m4/timespec.m4 \
- $(top_srcdir)/m4/tm_gmtoff.m4 $(top_srcdir)/m4/tzset.m4 \
- $(top_srcdir)/m4/unicodeio.m4 $(top_srcdir)/m4/unistd-safer.m4 \
- $(top_srcdir)/m4/unistd_h.m4 $(top_srcdir)/m4/unlink-busy.m4 \
- $(top_srcdir)/m4/unlinkdir.m4 $(top_srcdir)/m4/unlocked-io.m4 \
- $(top_srcdir)/m4/uptime.m4 $(top_srcdir)/m4/userspec.m4 \
- $(top_srcdir)/m4/utimbuf.m4 $(top_srcdir)/m4/utime.m4 \
- $(top_srcdir)/m4/utimecmp.m4 $(top_srcdir)/m4/utimens.m4 \
- $(top_srcdir)/m4/utimes-null.m4 $(top_srcdir)/m4/utimes.m4 \
- $(top_srcdir)/m4/vasnprintf.m4 $(top_srcdir)/m4/vasprintf.m4 \
- $(top_srcdir)/m4/wchar.m4 $(top_srcdir)/m4/wchar_t.m4 \
- $(top_srcdir)/m4/wctype.m4 $(top_srcdir)/m4/wcwidth.m4 \
- $(top_srcdir)/m4/wint_t.m4 $(top_srcdir)/m4/xalloc.m4 \
- $(top_srcdir)/m4/xfts.m4 $(top_srcdir)/m4/xgetcwd.m4 \
- $(top_srcdir)/m4/xnanosleep.m4 $(top_srcdir)/m4/xstrndup.m4 \
- $(top_srcdir)/m4/xstrtod.m4 $(top_srcdir)/m4/xstrtol.m4 \
- $(top_srcdir)/m4/yesno.m4 $(top_srcdir)/configure.ac
-am__configure_deps = $(am__aclocal_m4_deps) $(CONFIGURE_DEPENDENCIES) \
- $(ACLOCAL_M4)
-mkinstalldirs = $(install_sh) -d
-CONFIG_HEADER = $(top_builddir)/lib/config.h
-CONFIG_CLEAN_FILES =
-SOURCES =
-DIST_SOURCES =
-DISTFILES = $(DIST_COMMON) $(DIST_SOURCES) $(TEXINFOS) $(EXTRA_DIST)
-ABSOLUTE_DIRENT_H = @ABSOLUTE_DIRENT_H@
-ABSOLUTE_FCNTL_H = @ABSOLUTE_FCNTL_H@
-ABSOLUTE_INTTYPES_H = @ABSOLUTE_INTTYPES_H@
-ABSOLUTE_NETINET_IN_H = @ABSOLUTE_NETINET_IN_H@
-ABSOLUTE_STDINT_H = @ABSOLUTE_STDINT_H@
-ABSOLUTE_STDIO_H = @ABSOLUTE_STDIO_H@
-ABSOLUTE_STDLIB_H = @ABSOLUTE_STDLIB_H@
-ABSOLUTE_STRING_H = @ABSOLUTE_STRING_H@
-ABSOLUTE_SYS_SOCKET_H = @ABSOLUTE_SYS_SOCKET_H@
-ABSOLUTE_SYS_STAT_H = @ABSOLUTE_SYS_STAT_H@
-ABSOLUTE_SYS_TIME_H = @ABSOLUTE_SYS_TIME_H@
-ABSOLUTE_TIME_H = @ABSOLUTE_TIME_H@
-ABSOLUTE_UNISTD_H = @ABSOLUTE_UNISTD_H@
-ABSOLUTE_WCHAR_H = @ABSOLUTE_WCHAR_H@
-ABSOLUTE_WCTYPE_H = @ABSOLUTE_WCTYPE_H@
-ACLOCAL = @ACLOCAL@
-ALLOCA = @ALLOCA@
-ALLOCA_H = @ALLOCA_H@
-AMTAR = @AMTAR@
-ARPA_INET_H = @ARPA_INET_H@
-AUTOCONF = @AUTOCONF@
-AUTOHEADER = @AUTOHEADER@
-AUTOMAKE = @AUTOMAKE@
-AWK = @AWK@
-BITSIZEOF_PTRDIFF_T = @BITSIZEOF_PTRDIFF_T@
-BITSIZEOF_SIG_ATOMIC_T = @BITSIZEOF_SIG_ATOMIC_T@
-BITSIZEOF_SIZE_T = @BITSIZEOF_SIZE_T@
-BITSIZEOF_WCHAR_T = @BITSIZEOF_WCHAR_T@
-BITSIZEOF_WINT_T = @BITSIZEOF_WINT_T@
-CC = @CC@
-CCDEPMODE = @CCDEPMODE@
-CFLAGS = @CFLAGS@
-CPP = @CPP@
-CPPFLAGS = @CPPFLAGS@
-CYGPATH_W = @CYGPATH_W@
-DEFAULT_POSIX2_VERSION = @DEFAULT_POSIX2_VERSION@
-DEFS = @DEFS@
-DEPDIR = @DEPDIR@
-DF_PROG = @DF_PROG@
-DIRENT_H = @DIRENT_H@
-ECHO_C = @ECHO_C@
-ECHO_N = @ECHO_N@
-ECHO_T = @ECHO_T@
-EGREP = @EGREP@
-EOVERFLOW = @EOVERFLOW@
-EXEEXT = @EXEEXT@
-FCNTL_H = @FCNTL_H@
-FNMATCH_H = @FNMATCH_H@
-GETLOADAVG_LIBS = @GETLOADAVG_LIBS@
-GETOPT_H = @GETOPT_H@
-GLIBC21 = @GLIBC21@
-GMSGFMT = @GMSGFMT@
-GMSGFMT_015 = @GMSGFMT_015@
-GNULIB_CHOWN = @GNULIB_CHOWN@
-GNULIB_DUP2 = @GNULIB_DUP2@
-GNULIB_FCHDIR = @GNULIB_FCHDIR@
-GNULIB_FPRINTF_POSIX = @GNULIB_FPRINTF_POSIX@
-GNULIB_FTRUNCATE = @GNULIB_FTRUNCATE@
-GNULIB_GETCWD = @GNULIB_GETCWD@
-GNULIB_GETLOGIN_R = @GNULIB_GETLOGIN_R@
-GNULIB_GETSUBOPT = @GNULIB_GETSUBOPT@
-GNULIB_IMAXABS = @GNULIB_IMAXABS@
-GNULIB_IMAXDIV = @GNULIB_IMAXDIV@
-GNULIB_MBSCASECMP = @GNULIB_MBSCASECMP@
-GNULIB_MBSCASESTR = @GNULIB_MBSCASESTR@
-GNULIB_MBSCHR = @GNULIB_MBSCHR@
-GNULIB_MBSCSPN = @GNULIB_MBSCSPN@
-GNULIB_MBSLEN = @GNULIB_MBSLEN@
-GNULIB_MBSNCASECMP = @GNULIB_MBSNCASECMP@
-GNULIB_MBSPBRK = @GNULIB_MBSPBRK@
-GNULIB_MBSPCASECMP = @GNULIB_MBSPCASECMP@
-GNULIB_MBSRCHR = @GNULIB_MBSRCHR@
-GNULIB_MBSSEP = @GNULIB_MBSSEP@
-GNULIB_MBSSPN = @GNULIB_MBSSPN@
-GNULIB_MBSSTR = @GNULIB_MBSSTR@
-GNULIB_MBSTOK_R = @GNULIB_MBSTOK_R@
-GNULIB_MEMMEM = @GNULIB_MEMMEM@
-GNULIB_MEMPCPY = @GNULIB_MEMPCPY@
-GNULIB_MEMRCHR = @GNULIB_MEMRCHR@
-GNULIB_MKDTEMP = @GNULIB_MKDTEMP@
-GNULIB_MKSTEMP = @GNULIB_MKSTEMP@
-GNULIB_PRINTF_POSIX = @GNULIB_PRINTF_POSIX@
-GNULIB_READLINK = @GNULIB_READLINK@
-GNULIB_SNPRINTF = @GNULIB_SNPRINTF@
-GNULIB_SPRINTF_POSIX = @GNULIB_SPRINTF_POSIX@
-GNULIB_STPCPY = @GNULIB_STPCPY@
-GNULIB_STPNCPY = @GNULIB_STPNCPY@
-GNULIB_STRCASESTR = @GNULIB_STRCASESTR@
-GNULIB_STRCHRNUL = @GNULIB_STRCHRNUL@
-GNULIB_STRDUP = @GNULIB_STRDUP@
-GNULIB_STRNDUP = @GNULIB_STRNDUP@
-GNULIB_STRNLEN = @GNULIB_STRNLEN@
-GNULIB_STRPBRK = @GNULIB_STRPBRK@
-GNULIB_STRSEP = @GNULIB_STRSEP@
-GNULIB_STRTOIMAX = @GNULIB_STRTOIMAX@
-GNULIB_STRTOK_R = @GNULIB_STRTOK_R@
-GNULIB_STRTOUMAX = @GNULIB_STRTOUMAX@
-GNULIB_VFPRINTF_POSIX = @GNULIB_VFPRINTF_POSIX@
-GNULIB_VPRINTF_POSIX = @GNULIB_VPRINTF_POSIX@
-GNULIB_VSNPRINTF = @GNULIB_VSNPRINTF@
-GNULIB_VSPRINTF_POSIX = @GNULIB_VSPRINTF_POSIX@
-GNU_PACKAGE = @GNU_PACKAGE@
-GREP = @GREP@
-HAVE_DECL_GETLOGIN_R = @HAVE_DECL_GETLOGIN_R@
-HAVE_DECL_IMAXABS = @HAVE_DECL_IMAXABS@
-HAVE_DECL_IMAXDIV = @HAVE_DECL_IMAXDIV@
-HAVE_DECL_MEMMEM = @HAVE_DECL_MEMMEM@
-HAVE_DECL_MEMRCHR = @HAVE_DECL_MEMRCHR@
-HAVE_DECL_SNPRINTF = @HAVE_DECL_SNPRINTF@
-HAVE_DECL_STRDUP = @HAVE_DECL_STRDUP@
-HAVE_DECL_STRNCASECMP = @HAVE_DECL_STRNCASECMP@
-HAVE_DECL_STRNDUP = @HAVE_DECL_STRNDUP@
-HAVE_DECL_STRNLEN = @HAVE_DECL_STRNLEN@
-HAVE_DECL_STRTOIMAX = @HAVE_DECL_STRTOIMAX@
-HAVE_DECL_STRTOK_R = @HAVE_DECL_STRTOK_R@
-HAVE_DECL_STRTOUMAX = @HAVE_DECL_STRTOUMAX@
-HAVE_DECL_VSNPRINTF = @HAVE_DECL_VSNPRINTF@
-HAVE_DUP2 = @HAVE_DUP2@
-HAVE_FTRUNCATE = @HAVE_FTRUNCATE@
-HAVE_GETSUBOPT = @HAVE_GETSUBOPT@
-HAVE_INTTYPES_H = @HAVE_INTTYPES_H@
-HAVE_LONG_LONG_INT = @HAVE_LONG_LONG_INT@
-HAVE_MEMPCPY = @HAVE_MEMPCPY@
-HAVE_MKDTEMP = @HAVE_MKDTEMP@
-HAVE_NETINET_IN_H = @HAVE_NETINET_IN_H@
-HAVE_READLINK = @HAVE_READLINK@
-HAVE_SIGNED_SIG_ATOMIC_T = @HAVE_SIGNED_SIG_ATOMIC_T@
-HAVE_SIGNED_WCHAR_T = @HAVE_SIGNED_WCHAR_T@
-HAVE_SIGNED_WINT_T = @HAVE_SIGNED_WINT_T@
-HAVE_STDINT_H = @HAVE_STDINT_H@
-HAVE_STPCPY = @HAVE_STPCPY@
-HAVE_STPNCPY = @HAVE_STPNCPY@
-HAVE_STRCASECMP = @HAVE_STRCASECMP@
-HAVE_STRCASESTR = @HAVE_STRCASESTR@
-HAVE_STRCHRNUL = @HAVE_STRCHRNUL@
-HAVE_STRNDUP = @HAVE_STRNDUP@
-HAVE_STRPBRK = @HAVE_STRPBRK@
-HAVE_STRSEP = @HAVE_STRSEP@
-HAVE_STRUCT_TIMEVAL = @HAVE_STRUCT_TIMEVAL@
-HAVE_SYS_BITYPES_H = @HAVE_SYS_BITYPES_H@
-HAVE_SYS_INTTYPES_H = @HAVE_SYS_INTTYPES_H@
-HAVE_SYS_SOCKET_H = @HAVE_SYS_SOCKET_H@
-HAVE_SYS_TIME_H = @HAVE_SYS_TIME_H@
-HAVE_SYS_TYPES_H = @HAVE_SYS_TYPES_H@
-HAVE_UNISTD_H = @HAVE_UNISTD_H@
-HAVE_UNSIGNED_LONG_LONG_INT = @HAVE_UNSIGNED_LONG_LONG_INT@
-HAVE_WCTYPE_H = @HAVE_WCTYPE_H@
-HAVE_WINSOCK2_H = @HAVE_WINSOCK2_H@
-HAVE_WINT_T = @HAVE_WINT_T@
-HAVE_WS2TCPIP_H = @HAVE_WS2TCPIP_H@
-HAVE__BOOL = @HAVE__BOOL@
-HELP2MAN = @HELP2MAN@
-INSTALL = @INSTALL@
-INSTALL_DATA = @INSTALL_DATA@
-INSTALL_PROGRAM = @INSTALL_PROGRAM@
-INSTALL_SCRIPT = @INSTALL_SCRIPT@
-INSTALL_STRIP_PROGRAM = @INSTALL_STRIP_PROGRAM@
-INTLLIBS = @INTLLIBS@
-INTL_MACOSX_LIBS = @INTL_MACOSX_LIBS@
-INTTYPES_H = @INTTYPES_H@
-KMEM_GROUP = @KMEM_GROUP@
-LDFLAGS = @LDFLAGS@
-LIBCOREUTILS_LIBDEPS = @LIBCOREUTILS_LIBDEPS@
-LIBCOREUTILS_LTLIBDEPS = @LIBCOREUTILS_LTLIBDEPS@
-LIBICONV = @LIBICONV@
-LIBINTL = @LIBINTL@
-LIBOBJS = @LIBOBJS@
-LIBS = @LIBS@
-LIB_ACL = @LIB_ACL@
-LIB_ACL_TRIVIAL = @LIB_ACL_TRIVIAL@
-LIB_CLOCK_GETTIME = @LIB_CLOCK_GETTIME@
-LIB_CRYPT = @LIB_CRYPT@
-LIB_EACCESS = @LIB_EACCESS@
-LIB_FDATASYNC = @LIB_FDATASYNC@
-LIB_GETHRXTIME = @LIB_GETHRXTIME@
-LIB_NANOSLEEP = @LIB_NANOSLEEP@
-LN_S = @LN_S@
-LTLIBICONV = @LTLIBICONV@
-LTLIBINTL = @LTLIBINTL@
-LTLIBOBJS = @LTLIBOBJS@
-MAKEINFO = @MAKEINFO@
-MAN = @MAN@
-MKDIR_P = @MKDIR_P@
-MSGFMT = @MSGFMT@
-MSGFMT_015 = @MSGFMT_015@
-MSGMERGE = @MSGMERGE@
-NEED_SETGID = @NEED_SETGID@
-NETINET_IN_H = @NETINET_IN_H@
-OBJEXT = @OBJEXT@
-OPTIONAL_BIN_PROGS = @OPTIONAL_BIN_PROGS@
-PACKAGE = @PACKAGE@
-PACKAGE_BUGREPORT = @PACKAGE_BUGREPORT@
-PACKAGE_NAME = @PACKAGE_NAME@
-PACKAGE_STRING = @PACKAGE_STRING@
-PACKAGE_TARNAME = @PACKAGE_TARNAME@
-PACKAGE_VERSION = @PACKAGE_VERSION@
-PATH_SEPARATOR = @PATH_SEPARATOR@
-PERL = @PERL@
-POSUB = @POSUB@
-POW_LIB = @POW_LIB@
-PRIPTR_PREFIX = @PRIPTR_PREFIX@
-PRI_MACROS_BROKEN = @PRI_MACROS_BROKEN@
-PTRDIFF_T_SUFFIX = @PTRDIFF_T_SUFFIX@
-RANLIB = @RANLIB@
-REPLACE_CHOWN = @REPLACE_CHOWN@
-REPLACE_FCHDIR = @REPLACE_FCHDIR@
-REPLACE_FPRINTF = @REPLACE_FPRINTF@
-REPLACE_GETCWD = @REPLACE_GETCWD@
-REPLACE_GETTIMEOFDAY = @REPLACE_GETTIMEOFDAY@
-REPLACE_LOCALTIME_R = @REPLACE_LOCALTIME_R@
-REPLACE_MKSTEMP = @REPLACE_MKSTEMP@
-REPLACE_NANOSLEEP = @REPLACE_NANOSLEEP@
-REPLACE_PRINTF = @REPLACE_PRINTF@
-REPLACE_SNPRINTF = @REPLACE_SNPRINTF@
-REPLACE_SPRINTF = @REPLACE_SPRINTF@
-REPLACE_STRPTIME = @REPLACE_STRPTIME@
-REPLACE_TIMEGM = @REPLACE_TIMEGM@
-REPLACE_VFPRINTF = @REPLACE_VFPRINTF@
-REPLACE_VPRINTF = @REPLACE_VPRINTF@
-REPLACE_VSNPRINTF = @REPLACE_VSNPRINTF@
-REPLACE_VSPRINTF = @REPLACE_VSPRINTF@
-SEQ_LIBM = @SEQ_LIBM@
-SET_MAKE = @SET_MAKE@
-SHELL = @SHELL@
-SIG_ATOMIC_T_SUFFIX = @SIG_ATOMIC_T_SUFFIX@
-SIZE_T_SUFFIX = @SIZE_T_SUFFIX@
-STDBOOL_H = @STDBOOL_H@
-STDINT_H = @STDINT_H@
-STRIP = @STRIP@
-SYS_SOCKET_H = @SYS_SOCKET_H@
-SYS_STAT_H = @SYS_STAT_H@
-SYS_TIME_H = @SYS_TIME_H@
-SYS_TIME_H_DEFINES_STRUCT_TIMESPEC = @SYS_TIME_H_DEFINES_STRUCT_TIMESPEC@
-TIME_H_DEFINES_STRUCT_TIMESPEC = @TIME_H_DEFINES_STRUCT_TIMESPEC@
-U = @U@
-USE_NLS = @USE_NLS@
-VERSION = @VERSION@
-WCHAR_H = @WCHAR_H@
-WCHAR_T_SUFFIX = @WCHAR_T_SUFFIX@
-WCTYPE_H = @WCTYPE_H@
-WINT_T_SUFFIX = @WINT_T_SUFFIX@
-XGETTEXT = @XGETTEXT@
-XGETTEXT_015 = @XGETTEXT_015@
-YACC = @YACC@
-YFLAGS = @YFLAGS@
-abs_builddir = @abs_builddir@
-abs_srcdir = @abs_srcdir@
-abs_top_builddir = @abs_top_builddir@
-abs_top_srcdir = @abs_top_srcdir@
-ac_ct_CC = @ac_ct_CC@
-am__include = @am__include@
-am__leading_dot = @am__leading_dot@
-am__quote = @am__quote@
-am__tar = @am__tar@
-am__untar = @am__untar@
-bindir = @bindir@
-build = @build@
-build_alias = @build_alias@
-build_cpu = @build_cpu@
-build_os = @build_os@
-build_vendor = @build_vendor@
-builddir = @builddir@
-datadir = @datadir@
-datarootdir = @datarootdir@
-docdir = @docdir@
-dvidir = @dvidir@
-exec_prefix = @exec_prefix@
-gl_LIBOBJS = @gl_LIBOBJS@
-gl_LTLIBOBJS = @gl_LTLIBOBJS@
-host = @host@
-host_alias = @host_alias@
-host_cpu = @host_cpu@
-host_os = @host_os@
-host_vendor = @host_vendor@
-htmldir = @htmldir@
-includedir = @includedir@
-infodir = @infodir@
-install_sh = @install_sh@
-libdir = @libdir@
-libexecdir = @libexecdir@
-localedir = @localedir@
-localstatedir = @localstatedir@
-mandir = @mandir@
-mkdir_p = @mkdir_p@
-oldincludedir = @oldincludedir@
-pdfdir = @pdfdir@
-prefix = @prefix@
-program_transform_name = @program_transform_name@
-psdir = @psdir@
-sbindir = @sbindir@
-sharedstatedir = @sharedstatedir@
-srcdir = @srcdir@
-sysconfdir = @sysconfdir@
-target_alias = @target_alias@
-top_builddir = @top_builddir@
-top_srcdir = @top_srcdir@
-TESTS = \
- preserve-root \
- basic \
- deref \
- separator
-
-EXTRA_DIST = $(TESTS)
-TESTS_ENVIRONMENT = \
- CU_TEST_NAME=`basename $(abs_srcdir)`,$$tst \
- PATH="$(VG_PATH_PREFIX)`pwd`/../../src$(PATH_SEPARATOR)$$PATH"
-
-all: all-am
-
-.SUFFIXES:
-$(srcdir)/Makefile.in: $(srcdir)/Makefile.am $(am__configure_deps)
- @for dep in $?; do \
- case '$(am__configure_deps)' in \
- *$$dep*) \
- cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh \
- && exit 0; \
- exit 1;; \
- esac; \
- done; \
- echo ' cd $(top_srcdir) && $(AUTOMAKE) --gnu tests/chown/Makefile'; \
- cd $(top_srcdir) && \
- $(AUTOMAKE) --gnu tests/chown/Makefile
-.PRECIOUS: Makefile
-Makefile: $(srcdir)/Makefile.in $(top_builddir)/config.status
- @case '$?' in \
- *config.status*) \
- cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh;; \
- *) \
- echo ' cd $(top_builddir) && $(SHELL) ./config.status $(subdir)/$@ $(am__depfiles_maybe)'; \
- cd $(top_builddir) && $(SHELL) ./config.status $(subdir)/$@ $(am__depfiles_maybe);; \
- esac;
-
-$(top_builddir)/config.status: $(top_srcdir)/configure $(CONFIG_STATUS_DEPENDENCIES)
- cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh
-
-$(top_srcdir)/configure: $(am__configure_deps)
- cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh
-$(ACLOCAL_M4): $(am__aclocal_m4_deps)
- cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh
-tags: TAGS
-TAGS:
-
-ctags: CTAGS
-CTAGS:
-
-
-check-TESTS: $(TESTS)
- @failed=0; all=0; xfail=0; xpass=0; skip=0; ws='[ ]'; \
- srcdir=$(srcdir); export srcdir; \
- list=' $(TESTS) '; \
- if test -n "$$list"; then \
- for tst in $$list; do \
- if test -f ./$$tst; then dir=./; \
- elif test -f $$tst; then dir=; \
- else dir="$(srcdir)/"; fi; \
- if $(TESTS_ENVIRONMENT) $${dir}$$tst; then \
- all=`expr $$all + 1`; \
- case " $(XFAIL_TESTS) " in \
- *$$ws$$tst$$ws*) \
- xpass=`expr $$xpass + 1`; \
- failed=`expr $$failed + 1`; \
- echo "XPASS: $$tst"; \
- ;; \
- *) \
- echo "PASS: $$tst"; \
- ;; \
- esac; \
- elif test $$? -ne 77; then \
- all=`expr $$all + 1`; \
- case " $(XFAIL_TESTS) " in \
- *$$ws$$tst$$ws*) \
- xfail=`expr $$xfail + 1`; \
- echo "XFAIL: $$tst"; \
- ;; \
- *) \
- failed=`expr $$failed + 1`; \
- echo "FAIL: $$tst"; \
- ;; \
- esac; \
- else \
- skip=`expr $$skip + 1`; \
- echo "SKIP: $$tst"; \
- fi; \
- done; \
- if test "$$failed" -eq 0; then \
- if test "$$xfail" -eq 0; then \
- banner="All $$all tests passed"; \
- else \
- banner="All $$all tests behaved as expected ($$xfail expected failures)"; \
- fi; \
- else \
- if test "$$xpass" -eq 0; then \
- banner="$$failed of $$all tests failed"; \
- else \
- banner="$$failed of $$all tests did not behave as expected ($$xpass unexpected passes)"; \
- fi; \
- fi; \
- dashes="$$banner"; \
- skipped=""; \
- if test "$$skip" -ne 0; then \
- skipped="($$skip tests were not run)"; \
- test `echo "$$skipped" | wc -c` -le `echo "$$banner" | wc -c` || \
- dashes="$$skipped"; \
- fi; \
- report=""; \
- if test "$$failed" -ne 0 && test -n "$(PACKAGE_BUGREPORT)"; then \
- report="Please report to $(PACKAGE_BUGREPORT)"; \
- test `echo "$$report" | wc -c` -le `echo "$$banner" | wc -c` || \
- dashes="$$report"; \
- fi; \
- dashes=`echo "$$dashes" | sed s/./=/g`; \
- echo "$$dashes"; \
- echo "$$banner"; \
- test -z "$$skipped" || echo "$$skipped"; \
- test -z "$$report" || echo "$$report"; \
- echo "$$dashes"; \
- test "$$failed" -eq 0; \
- else :; fi
-
-distdir: $(DISTFILES)
- @srcdirstrip=`echo "$(srcdir)" | sed 's/[].[^$$\\*]/\\\\&/g'`; \
- topsrcdirstrip=`echo "$(top_srcdir)" | sed 's/[].[^$$\\*]/\\\\&/g'`; \
- list='$(DISTFILES)'; \
- dist_files=`for file in $$list; do echo $$file; done | \
- sed -e "s|^$$srcdirstrip/||;t" \
- -e "s|^$$topsrcdirstrip/|$(top_builddir)/|;t"`; \
- case $$dist_files in \
- */*) $(MKDIR_P) `echo "$$dist_files" | \
- sed '/\//!d;s|^|$(distdir)/|;s,/[^/]*$$,,' | \
- sort -u` ;; \
- esac; \
- for file in $$dist_files; do \
- if test -f $$file || test -d $$file; then d=.; else d=$(srcdir); fi; \
- if test -d $$d/$$file; then \
- dir=`echo "/$$file" | sed -e 's,/[^/]*$$,,'`; \
- if test -d $(srcdir)/$$file && test $$d != $(srcdir); then \
- cp -pR $(srcdir)/$$file $(distdir)$$dir || exit 1; \
- fi; \
- cp -pR $$d/$$file $(distdir)$$dir || exit 1; \
- else \
- test -f $(distdir)/$$file \
- || cp -p $$d/$$file $(distdir)/$$file \
- || exit 1; \
- fi; \
- done
-check-am: all-am
- $(MAKE) $(AM_MAKEFLAGS) check-TESTS
-check: check-am
-all-am: Makefile
-installdirs:
-install: install-am
-install-exec: install-exec-am
-install-data: install-data-am
-uninstall: uninstall-am
-
-install-am: all-am
- @$(MAKE) $(AM_MAKEFLAGS) install-exec-am install-data-am
-
-installcheck: installcheck-am
-install-strip:
- $(MAKE) $(AM_MAKEFLAGS) INSTALL_PROGRAM="$(INSTALL_STRIP_PROGRAM)" \
- install_sh_PROGRAM="$(INSTALL_STRIP_PROGRAM)" INSTALL_STRIP_FLAG=-s \
- `test -z '$(STRIP)' || \
- echo "INSTALL_PROGRAM_ENV=STRIPPROG='$(STRIP)'"` install
-mostlyclean-generic:
-
-clean-generic:
-
-distclean-generic:
- -test -z "$(CONFIG_CLEAN_FILES)" || rm -f $(CONFIG_CLEAN_FILES)
-
-maintainer-clean-generic:
- @echo "This command is intended for maintainers to use"
- @echo "it deletes files that may require special tools to rebuild."
-clean: clean-am
-
-clean-am: clean-generic mostlyclean-am
-
-distclean: distclean-am
- -rm -f Makefile
-distclean-am: clean-am distclean-generic
-
-dvi: dvi-am
-
-dvi-am:
-
-html: html-am
-
-info: info-am
-
-info-am:
-
-install-data-am:
-
-install-dvi: install-dvi-am
-
-install-exec-am:
-
-install-html: install-html-am
-
-install-info: install-info-am
-
-install-man:
-
-install-pdf: install-pdf-am
-
-install-ps: install-ps-am
-
-installcheck-am:
-
-maintainer-clean: maintainer-clean-am
- -rm -f Makefile
-maintainer-clean-am: distclean-am maintainer-clean-generic
-
-mostlyclean: mostlyclean-am
-
-mostlyclean-am: mostlyclean-generic
-
-pdf: pdf-am
-
-pdf-am:
-
-ps: ps-am
-
-ps-am:
-
-uninstall-am:
-
-.MAKE: install-am install-strip
-
-.PHONY: all all-am check check-TESTS check-am clean clean-generic \
- distclean distclean-generic distdir dvi dvi-am html html-am \
- info info-am install install-am install-data install-data-am \
- install-dvi install-dvi-am install-exec install-exec-am \
- install-html install-html-am install-info install-info-am \
- install-man install-pdf install-pdf-am install-ps \
- install-ps-am install-strip installcheck installcheck-am \
- installdirs maintainer-clean maintainer-clean-generic \
- mostlyclean mostlyclean-generic pdf pdf-am ps ps-am uninstall \
- uninstall-am
-
-# Tell versions [3.59,3.63) of GNU make to not export all variables.
-# Otherwise a system limit (for SysV at least) may be exceeded.
-.NOEXPORT:
diff --git a/tests/chown/basic b/tests/chown/basic
deleted file mode 100755
index 39fad14..0000000
--- a/tests/chown/basic
+++ /dev/null
@@ -1,69 +0,0 @@
-#!/bin/sh
-# make sure chown --from=... works
-
-# Copyright (C) 2001, 2004, 2006 Free Software Foundation, Inc.
-
-# This program is free software; you can redistribute it and/or modify
-# it under the terms of the GNU General Public License as published by
-# the Free Software Foundation; either version 2 of the License, or
-# (at your option) any later version.
-
-# This program is distributed in the hope that it will be useful,
-# but WITHOUT ANY WARRANTY; without even the implied warranty of
-# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
-# GNU General Public License for more details.
-
-# You should have received a copy of the GNU General Public License
-# along with this program; if not, write to the Free Software
-# Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA
-# 02110-1301, USA.
-
-if test "$VERBOSE" = yes; then
- set -x
- chgrp --version
-fi
-
-. $srcdir/../envvar-check
-. $srcdir/../lang-default
-PRIV_CHECK_ARG=require-root . $srcdir/../priv-check
-
-pwd=`pwd`
-tmp=basic.$$
-trap 'status=$?; cd "$pwd" && rm -rf $tmp && exit $status' 0
-trap '(exit $?); exit' 1 2 13 15
-
-framework_failure=0
-mkdir $tmp || framework_failure=1
-cd $tmp || framework_failure=1
-touch f || framework_failure=1
-
-if test $framework_failure = 1; then
- echo 'failure in testing framework' 1>&2
- (exit 1); exit 1
-fi
-
-fail=0
-chown -R --preserve-root 0:1 f
-
-# Make sure the owner and group are 0 and 1 respectively.
-set _ `ls -n f`; shift; test "$3:$4" = 0:1 || fail=1
-
-chown --from=0:1 2:010 f || fail=1
-
-# And now they should be 2 and 10 respectively.
-set _ `ls -n f`; shift; test "$3:$4" = 2:10 || fail=1
-
-ln -s f slink
-# Applying chown to a symlink with --no-dereference
-# should change only the link.
-chown --no-dereference 0:1 slink || fail=1
-# owner/group on the symlink should be set
-set _ `ls -n slink`; shift; test "$3:$4" = 0:1 || fail=1
-# owner/group on the referent should remain unchanged
-set _ `ls -n f`; shift; test "$3:$4" = 2:10 || fail=1
-
-chown --no-dereference --from=0:1 2:010 slink || fail=1
-# owner/group on the symlink should be changed
-set _ `ls -n slink`; shift; test "$3:$4" = 2:10 || fail=1
-
-(exit $fail); exit $fail
diff --git a/tests/chown/basic.sh b/tests/chown/basic.sh
new file mode 100755
index 0000000..3ff5a8a
--- /dev/null
+++ b/tests/chown/basic.sh
@@ -0,0 +1,59 @@
+#!/bin/sh
+# make sure chown --from=... works
+
+# Copyright (C) 2001-2016 Free Software Foundation, Inc.
+
+# This program is free software: you can redistribute it and/or modify
+# it under the terms of the GNU General Public License as published by
+# the Free Software Foundation, either version 3 of the License, or
+# (at your option) any later version.
+
+# This program is distributed in the hope that it will be useful,
+# but WITHOUT ANY WARRANTY; without even the implied warranty of
+# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
+# GNU General Public License for more details.
+
+# You should have received a copy of the GNU General Public License
+# along with this program. If not, see <http://www.gnu.org/licenses/>.
+
+. "${srcdir=.}/tests/init.sh"; path_prepend_ ./src
+print_ver_ chown
+require_root_
+
+touch f || framework_failure_
+
+chown -R --preserve-root 0:1 f
+
+# Make sure the owner and group are 0 and 1 respectively.
+set _ $(ls -n f); shift; test "$3:$4" = 0:1 || fail=1
+
+# Make sure the correct diagnostic is output
+# Note we output a name even though an id was specified.
+chown -v --from=42 43 f > out || fail=1
+printf "ownership of 'f' retained as $(id -nu)\n" > exp
+compare exp out || fail=1
+
+# Ensure diagnostics work for non existent files.
+returns_ 1 chown -v 0 nf > out || fail=1
+printf "failed to change ownership of 'nf' to 0\n" > exp
+compare exp out || fail=1
+
+chown --from=0:1 2:010 f || fail=1
+
+# And now they should be 2 and 10 respectively.
+set _ $(ls -n f); shift; test "$3:$4" = 2:10 || fail=1
+
+ln -s f slink
+# Applying chown to a symlink with --no-dereference
+# should change only the link.
+chown --no-dereference 0:1 slink || fail=1
+# owner/group on the symlink should be set
+set _ $(ls -n slink); shift; test "$3:$4" = 0:1 || fail=1
+# owner/group on the referent should remain unchanged
+set _ $(ls -n f); shift; test "$3:$4" = 2:10 || fail=1
+
+chown --no-dereference --from=0:1 2:010 slink || fail=1
+# owner/group on the symlink should be changed
+set _ $(ls -n slink); shift; test "$3:$4" = 2:10 || fail=1
+
+Exit $fail
diff --git a/tests/chown/deref b/tests/chown/deref
deleted file mode 100755
index e3da3eb..0000000
--- a/tests/chown/deref
+++ /dev/null
@@ -1,60 +0,0 @@
-#!/bin/sh
-# For coreutils-5.2.1 and earlier, chown --dereference would skip
-# symlinks having owner/group matching the specified owner/group.
-
-# Copyright (C) 2004, 2006 Free Software Foundation, Inc.
-
-# This program is free software; you can redistribute it and/or modify
-# it under the terms of the GNU General Public License as published by
-# the Free Software Foundation; either version 2 of the License, or
-# (at your option) any later version.
-
-# This program is distributed in the hope that it will be useful,
-# but WITHOUT ANY WARRANTY; without even the implied warranty of
-# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
-# GNU General Public License for more details.
-
-# You should have received a copy of the GNU General Public License
-# along with this program; if not, write to the Free Software
-# Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA
-# 02110-1301, USA.
-
-if test "$VERBOSE" = yes; then
- set -x
- chown --version
-fi
-
-. $srcdir/../envvar-check
-. $srcdir/../lang-default
-
-pwd=`pwd`
-t0=`echo "$0"|sed 's,.*/,,'`.tmp; tmp=$t0/$$
-trap 'status=$?; cd "$pwd" && chmod -R u+rwx $t0 && rm -rf $t0 && exit $status' 0
-trap '(exit $?); exit $?' 1 2 13 15
-
-framework_failure=0
-mkdir -p $tmp || framework_failure=1
-cd $tmp || framework_failure=1
-ln -s no-such dangle || framework_failure=1
-
-if test $framework_failure = 1; then
- echo "$0: failure in testing framework" 1>&2
- (exit 1); exit 1
-fi
-
-fail=0
-
-set _ `ls -ldo dangle`; shift; user=$3
-
-# With 5.2.1 and earlier, this command would mistakenly succeed.
-chown --dereference $user dangle 2> out1 && fail=1
-sed 's/: [^:]*$//' out1 > out
-
-cat <<\EOF > exp || fail=1
-chown: cannot dereference `dangle'
-EOF
-
-cmp out exp || fail=1
-test $fail = 1 && diff out exp 2> /dev/null
-
-(exit $fail); exit $fail
diff --git a/tests/chown/deref.sh b/tests/chown/deref.sh
new file mode 100755
index 0000000..0e34c8c
--- /dev/null
+++ b/tests/chown/deref.sh
@@ -0,0 +1,38 @@
+#!/bin/sh
+# For coreutils-5.2.1 and earlier, chown --dereference would skip
+# symlinks having owner/group matching the specified owner/group.
+
+# Copyright (C) 2004-2016 Free Software Foundation, Inc.
+
+# This program is free software: you can redistribute it and/or modify
+# it under the terms of the GNU General Public License as published by
+# the Free Software Foundation, either version 3 of the License, or
+# (at your option) any later version.
+
+# This program is distributed in the hope that it will be useful,
+# but WITHOUT ANY WARRANTY; without even the implied warranty of
+# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
+# GNU General Public License for more details.
+
+# You should have received a copy of the GNU General Public License
+# along with this program. If not, see <http://www.gnu.org/licenses/>.
+
+. "${srcdir=.}/tests/init.sh"; path_prepend_ ./src
+print_ver_ chown
+
+ln -s no-such dangle || framework_failure_
+
+
+set _ $(ls -ldo dangle); shift; user=$3
+
+# With 5.2.1 and earlier, this command would mistakenly succeed.
+chown --dereference $user dangle 2> out1 && fail=1
+sed 's/: [^:]*$//' out1 > out
+
+cat <<\EOF > exp || fail=1
+chown: cannot dereference 'dangle'
+EOF
+
+compare exp out || fail=1
+
+Exit $fail
diff --git a/tests/chown/preserve-root b/tests/chown/preserve-root
deleted file mode 100755
index 4f8fe4f..0000000
--- a/tests/chown/preserve-root
+++ /dev/null
@@ -1,88 +0,0 @@
-#!/bin/sh
-# Verify that --preserve-root works.
-
-# Copyright (C) 2006 Free Software Foundation, Inc.
-
-# This program is free software; you can redistribute it and/or modify
-# it under the terms of the GNU General Public License as published by
-# the Free Software Foundation; either version 2 of the License, or
-# (at your option) any later version.
-
-# This program is distributed in the hope that it will be useful,
-# but WITHOUT ANY WARRANTY; without even the implied warranty of
-# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
-# GNU General Public License for more details.
-
-# You should have received a copy of the GNU General Public License
-# along with this program; if not, write to the Free Software
-# Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA
-# 02110-1301, USA.
-
-if test "$VERBOSE" = yes; then
- set -x
- chown --version
-fi
-
-. $srcdir/../envvar-check
-. $srcdir/../lang-default
-PRIV_CHECK_ARG=require-non-root . $srcdir/../priv-check
-
-pwd=`pwd`
-t0=`echo "$0"|sed 's,.*/,,'`.tmp; tmp=$t0/$$
-trap 'status=$?; cd "$pwd" && chmod -R u+rwx $t0 && rm -rf $t0 && exit $status' 0
-trap '(exit $?); exit $?' 1 2 13 15
-
-framework_failure=0
-mkdir -p $tmp || framework_failure=1
-cd $tmp || framework_failure=1
-mkdir d && ln -s / d/slink-to-root
-
-if test $framework_failure = 1; then
- echo "$0: failure in testing framework" 1>&2
- (exit 1); exit 1
-fi
-
-fail=0
-
-# Even if --preserve-root were to malfunction, allowing the chown or
-# chgrp to traverse through "/", since we're running as non-root,
-# they would be very unlikely to cause any changes.
-chown -R --preserve-root 0 / > out 2>&1 && fail=1
-chgrp -R --preserve-root 0 / >> out 2>&1 && fail=1
-
-# Here, if --preserve-root were to malfunction, chmod could make changes,
-# but only to files owned and unreadable by the user running this test,
-# and then, only to make them readable by owner.
-chmod -R --preserve-root u+r / >> out 2>&1 && fail=1
-
-# With -RHh, --preserve-root should trigger nothing,
-# since the symlink in question is not a command line argument.
-# Contrary to the above commands, these two should succeed.
-echo '==== test -RHh' >> out
-chown -RHh --preserve-root `id -u` d >> out 2>&1 || fail=1
-chgrp -RHh --preserve-root `id -g` d >> out 2>&1 || fail=1
-
-# These must fail.
-echo '==== test -RLh' >> out
-chown -RLh --preserve-root `id -u` d >> out 2>&1 && fail=1
-chgrp -RLh --preserve-root `id -g` d >> out 2>&1 && fail=1
-
-cat <<\EOF > exp || fail=1
-chown: it is dangerous to operate recursively on `/'
-chown: use --no-preserve-root to override this failsafe
-chgrp: it is dangerous to operate recursively on `/'
-chgrp: use --no-preserve-root to override this failsafe
-chmod: it is dangerous to operate recursively on `/'
-chmod: use --no-preserve-root to override this failsafe
-==== test -RHh
-==== test -RLh
-chown: it is dangerous to operate recursively on `d/slink-to-root' (same as `/')
-chown: use --no-preserve-root to override this failsafe
-chgrp: it is dangerous to operate recursively on `d/slink-to-root' (same as `/')
-chgrp: use --no-preserve-root to override this failsafe
-EOF
-
-cmp out exp || fail=1
-test $fail = 1 && diff out exp 2> /dev/null
-
-(exit $fail); exit $fail
diff --git a/tests/chown/preserve-root.sh b/tests/chown/preserve-root.sh
new file mode 100755
index 0000000..febe1e9
--- /dev/null
+++ b/tests/chown/preserve-root.sh
@@ -0,0 +1,66 @@
+#!/bin/sh
+# Verify that --preserve-root works.
+
+# Copyright (C) 2006-2016 Free Software Foundation, Inc.
+
+# This program is free software: you can redistribute it and/or modify
+# it under the terms of the GNU General Public License as published by
+# the Free Software Foundation, either version 3 of the License, or
+# (at your option) any later version.
+
+# This program is distributed in the hope that it will be useful,
+# but WITHOUT ANY WARRANTY; without even the implied warranty of
+# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
+# GNU General Public License for more details.
+
+# You should have received a copy of the GNU General Public License
+# along with this program. If not, see <http://www.gnu.org/licenses/>.
+
+. "${srcdir=.}/tests/init.sh"; path_prepend_ ./src
+print_ver_ chown
+skip_if_root_
+
+mkdir d && ln -s / d/slink-to-root
+
+
+# Even if --preserve-root were to malfunction, allowing the chown or
+# chgrp to traverse through "/", since we're running as non-root,
+# they would be very unlikely to cause any changes.
+chown -R --preserve-root 0 / > out 2>&1 && fail=1
+chgrp -R --preserve-root 0 / >> out 2>&1 && fail=1
+
+# Here, if --preserve-root were to malfunction, chmod could make changes,
+# but only to files owned and unreadable by the user running this test,
+# and then, only to make them readable by owner.
+chmod -R --preserve-root u+r / >> out 2>&1 && fail=1
+
+# With -RHh, --preserve-root should trigger nothing,
+# since the symlink in question is not a command line argument.
+# Contrary to the above commands, these two should succeed.
+echo '==== test -RHh' >> out
+chown -RHh --preserve-root $(id -u) d >> out 2>&1 || fail=1
+chgrp -RHh --preserve-root $(id -g) d >> out 2>&1 || fail=1
+
+# These must fail.
+echo '==== test -RLh' >> out
+chown -RLh --preserve-root $(id -u) d >> out 2>&1 && fail=1
+chgrp -RLh --preserve-root $(id -g) d >> out 2>&1 && fail=1
+
+cat <<\EOF > exp || fail=1
+chown: it is dangerous to operate recursively on '/'
+chown: use --no-preserve-root to override this failsafe
+chgrp: it is dangerous to operate recursively on '/'
+chgrp: use --no-preserve-root to override this failsafe
+chmod: it is dangerous to operate recursively on '/'
+chmod: use --no-preserve-root to override this failsafe
+==== test -RHh
+==== test -RLh
+chown: it is dangerous to operate recursively on 'd/slink-to-root' (same as '/')
+chown: use --no-preserve-root to override this failsafe
+chgrp: it is dangerous to operate recursively on 'd/slink-to-root' (same as '/')
+chgrp: use --no-preserve-root to override this failsafe
+EOF
+
+compare exp out || fail=1
+
+Exit $fail
diff --git a/tests/chown/separator b/tests/chown/separator
deleted file mode 100755
index d65b371..0000000
--- a/tests/chown/separator
+++ /dev/null
@@ -1,72 +0,0 @@
-#!/bin/sh
-# Make sure "chown USER:GROUP FILE" works, and similar tests with separators.
-
-# Copyright (C) 2004, 2005, 2006 Free Software Foundation, Inc.
-
-# This program is free software; you can redistribute it and/or modify
-# it under the terms of the GNU General Public License as published by
-# the Free Software Foundation; either version 2 of the License, or
-# (at your option) any later version.
-
-# This program is distributed in the hope that it will be useful,
-# but WITHOUT ANY WARRANTY; without even the implied warranty of
-# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
-# GNU General Public License for more details.
-
-# You should have received a copy of the GNU General Public License
-# along with this program; if not, write to the Free Software
-# Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA
-# 02110-1301, USA.
-
-if test "$VERBOSE" = yes; then
- set -x
- chown --version
-fi
-
-pwd=`pwd`
-t0=`echo "$0" |sed 's,.*/,,'`.tmp; tmp=$t0/$$
-trap 'status=$?; cd "$pwd" && chmod -R u+rwx $t0 && rm -rf $t0 && exit $status' 0
-trap 'status=$?; (exit $status); exit $status' 1 2 13 15
-
-framework_failure=0
-
-mkdir -p $tmp || framework_failure=1
-cd $tmp || framework_failure=1
-
-id_u=`id -u` || framework_failure=1
-test -n "$id_u" || framework_failure=1
-
-id_un=`id -un` || framework_failure=1
-test -n "$id_un" || framework_failure=1
-
-id_g=`id -g` || framework_failure=1
-test -n "$id_g" || framework_failure=1
-
-id_gn=`id -gn` || framework_failure=1
-test -n "$id_gn" || framework_failure=1
-
-if test $framework_failure = 1; then
- echo "$0: failure in testing framework" 1>&2
- (exit 77); exit 77
-fi
-
-fail=0
-
-chown '' . || fail=1
-
-for u in $id_u "$id_un" ''; do
- for g in $id_g "$id_gn" ''; do
- case $u$g in
- *.*) seps=':' ;;
- *) seps=': .' ;;
- esac
- for sep in $seps; do
- case $u$sep$g in
- [0-9]*$sep) chown "$u$sep$g" . 2> /dev/null && fail=1 ;;
- *) chown "$u$sep$g" . || fail=1 ;;
- esac
- done
- done
-done
-
-(exit $fail); exit $fail
diff --git a/tests/chown/separator.sh b/tests/chown/separator.sh
new file mode 100755
index 0000000..1b86f4b
--- /dev/null
+++ b/tests/chown/separator.sh
@@ -0,0 +1,69 @@
+#!/bin/sh
+# Make sure "chown USER:GROUP FILE" works, and similar tests with separators.
+
+# Copyright (C) 2004-2016 Free Software Foundation, Inc.
+
+# This program is free software: you can redistribute it and/or modify
+# it under the terms of the GNU General Public License as published by
+# the Free Software Foundation, either version 3 of the License, or
+# (at your option) any later version.
+
+# This program is distributed in the hope that it will be useful,
+# but WITHOUT ANY WARRANTY; without even the implied warranty of
+# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
+# GNU General Public License for more details.
+
+# You should have received a copy of the GNU General Public License
+# along with this program. If not, see <http://www.gnu.org/licenses/>.
+
+. "${srcdir=.}/tests/init.sh"; path_prepend_ ./src
+print_ver_ chown
+
+id_u=$(id -u) || framework_failure_
+test -n "$id_u" || framework_failure_
+
+id_un=$(id -un) || framework_failure_
+test -n "$id_un" || framework_failure_
+
+id_g=$(id -g) || framework_failure_
+test -n "$id_g" || framework_failure_
+
+id_gn=$(id -gn) || framework_failure_
+test -n "$id_gn" || framework_failure_
+
+# Systems with both local and external groups with conflicting IDs,
+# were seen to fail this test erroneously with EPERM errors.
+test $(getent group | grep "^$id_gn:" | wc -l) = 1 ||
+ skip_ "group '$id_gn' not biunique: " \
+ "$(getent group | grep "^$id_gn:" | tr '\n' ',')"
+
+# FreeBSD 6.x's getgrnam fails to look up a group name containing
+# a space. On such a system, skip this test if the group name contains
+# a byte not in the portable filename character set.
+case $host_triplet in
+ *-freebsd6.*)
+ case $id_gn in
+ *[^a-zA-Z0-9._-]*) skip_ "invalid group name: $id_gn";;
+ esac;;
+ *) ;;
+esac
+
+
+chown '' . || fail=1
+
+for u in $id_u "$id_un" ''; do
+ for g in $id_g "$id_gn" ''; do
+ case $u$g in
+ *.*) seps=':' ;;
+ *) seps=': .' ;;
+ esac
+ for sep in $seps; do
+ case $u$sep$g in
+ [0-9]*$sep) returns_ 1 chown "$u$sep$g" . 2>/dev/null || fail=1 ;;
+ *) chown "$u$sep$g" . || fail=1 ;;
+ esac
+ done
+ done
+done
+
+Exit $fail
diff --git a/tests/cp/Makefile.am b/tests/cp/Makefile.am
deleted file mode 100644
index f9925db..0000000
--- a/tests/cp/Makefile.am
+++ /dev/null
@@ -1,39 +0,0 @@
-# Make coreutils tests for cp. -*-Makefile-*-
-
-# Copyright (C) 1997-2001, 2003, 2005-2007 Free Software Foundation, Inc.
-
-# This program is free software; you can redistribute it and/or modify
-# it under the terms of the GNU General Public License as published by
-# the Free Software Foundation; either version 2 of the License, or
-# (at your option) any later version.
-
-# This program is distributed in the hope that it will be useful,
-# but WITHOUT ANY WARRANTY; without even the implied warranty of
-# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
-# GNU General Public License for more details.
-
-# You should have received a copy of the GNU General Public License
-# along with this program; if not, write to the Free Software
-# Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA
-# 02110-1301, USA.
-
-TESTS = \
- file-perm-race parent-perm-race \
- backup-dir \
- src-base-dot \
- sparse \
- link-no-deref \
- cp-deref \
- acl \
- preserve-2 r-vs-symlink link-preserve \
- backup-1 no-deref-link1 no-deref-link2 no-deref-link3 backup-is-src \
- same-file cp-mv-backup symlink-slash slink-2-slink fail-perm dir-slash \
- perm cp-HL cp-i special-bits link dir-rm-dest cp-parents deref-slink \
- dir-vs-file into-self
-EXTRA_DIST = $(TESTS) trailing-slash
-TESTS_ENVIRONMENT = \
- MAKE=$(MAKE) \
- abs_top_builddir=$(abs_top_builddir) \
- CONFIG_HEADER=$(CONFIG_HEADER) \
- CU_TEST_NAME=`basename $(abs_srcdir)`,$$tst \
- PATH="$(VG_PATH_PREFIX)`pwd`/../../src$(PATH_SEPARATOR)$$PATH"
diff --git a/tests/cp/Makefile.in b/tests/cp/Makefile.in
deleted file mode 100644
index f87e056..0000000
--- a/tests/cp/Makefile.in
+++ /dev/null
@@ -1,751 +0,0 @@
-# Makefile.in generated by automake 1.10 from Makefile.am.
-# @configure_input@
-
-# Copyright (C) 1994, 1995, 1996, 1997, 1998, 1999, 2000, 2001, 2002,
-# 2003, 2004, 2005, 2006 Free Software Foundation, Inc.
-# This Makefile.in is free software; the Free Software Foundation
-# gives unlimited permission to copy and/or distribute it,
-# with or without modifications, as long as this notice is preserved.
-
-# This program is distributed in the hope that it will be useful,
-# but WITHOUT ANY WARRANTY, to the extent permitted by law; without
-# even the implied warranty of MERCHANTABILITY or FITNESS FOR A
-# PARTICULAR PURPOSE.
-
-@SET_MAKE@
-
-# Make coreutils tests for cp. -*-Makefile-*-
-
-# Copyright (C) 1997-2001, 2003, 2005-2007 Free Software Foundation, Inc.
-
-# This program is free software; you can redistribute it and/or modify
-# it under the terms of the GNU General Public License as published by
-# the Free Software Foundation; either version 2 of the License, or
-# (at your option) any later version.
-
-# This program is distributed in the hope that it will be useful,
-# but WITHOUT ANY WARRANTY; without even the implied warranty of
-# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
-# GNU General Public License for more details.
-
-# You should have received a copy of the GNU General Public License
-# along with this program; if not, write to the Free Software
-# Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA
-# 02110-1301, USA.
-VPATH = @srcdir@
-pkgdatadir = $(datadir)/@PACKAGE@
-pkglibdir = $(libdir)/@PACKAGE@
-pkgincludedir = $(includedir)/@PACKAGE@
-am__cd = CDPATH="$${ZSH_VERSION+.}$(PATH_SEPARATOR)" && cd
-install_sh_DATA = $(install_sh) -c -m 644
-install_sh_PROGRAM = $(install_sh) -c
-install_sh_SCRIPT = $(install_sh) -c
-INSTALL_HEADER = $(INSTALL_DATA)
-transform = $(program_transform_name)
-NORMAL_INSTALL = :
-PRE_INSTALL = :
-POST_INSTALL = :
-NORMAL_UNINSTALL = :
-PRE_UNINSTALL = :
-POST_UNINSTALL = :
-build_triplet = @build@
-host_triplet = @host@
-subdir = tests/cp
-DIST_COMMON = $(srcdir)/Makefile.am $(srcdir)/Makefile.in
-ACLOCAL_M4 = $(top_srcdir)/aclocal.m4
-am__aclocal_m4_deps = $(top_srcdir)/m4/absolute-header.m4 \
- $(top_srcdir)/m4/acl.m4 $(top_srcdir)/m4/alloca.m4 \
- $(top_srcdir)/m4/allocsa.m4 $(top_srcdir)/m4/argmatch.m4 \
- $(top_srcdir)/m4/arpa_inet_h.m4 $(top_srcdir)/m4/assert.m4 \
- $(top_srcdir)/m4/atexit.m4 $(top_srcdir)/m4/autobuild.m4 \
- $(top_srcdir)/m4/backupfile.m4 $(top_srcdir)/m4/base64.m4 \
- $(top_srcdir)/m4/bison.m4 $(top_srcdir)/m4/boottime.m4 \
- $(top_srcdir)/m4/c-strtod.m4 $(top_srcdir)/m4/calloc.m4 \
- $(top_srcdir)/m4/canon-host.m4 \
- $(top_srcdir)/m4/canonicalize.m4 \
- $(top_srcdir)/m4/chdir-long.m4 $(top_srcdir)/m4/check-decl.m4 \
- $(top_srcdir)/m4/chown.m4 $(top_srcdir)/m4/clock_time.m4 \
- $(top_srcdir)/m4/cloexec.m4 $(top_srcdir)/m4/close-stream.m4 \
- $(top_srcdir)/m4/closeout.m4 $(top_srcdir)/m4/codeset.m4 \
- $(top_srcdir)/m4/config-h.m4 $(top_srcdir)/m4/cycle-check.m4 \
- $(top_srcdir)/m4/d-ino.m4 $(top_srcdir)/m4/d-type.m4 \
- $(top_srcdir)/m4/dirfd.m4 $(top_srcdir)/m4/dirname.m4 \
- $(top_srcdir)/m4/dos.m4 $(top_srcdir)/m4/double-slash-root.m4 \
- $(top_srcdir)/m4/dup2.m4 $(top_srcdir)/m4/eealloc.m4 \
- $(top_srcdir)/m4/eoverflow.m4 $(top_srcdir)/m4/error.m4 \
- $(top_srcdir)/m4/euidaccess-stat.m4 \
- $(top_srcdir)/m4/euidaccess.m4 $(top_srcdir)/m4/exclude.m4 \
- $(top_srcdir)/m4/exitfail.m4 $(top_srcdir)/m4/extensions.m4 \
- $(top_srcdir)/m4/fchdir.m4 $(top_srcdir)/m4/fcntl-safer.m4 \
- $(top_srcdir)/m4/fcntl_h.m4 $(top_srcdir)/m4/fd-reopen.m4 \
- $(top_srcdir)/m4/file-type.m4 $(top_srcdir)/m4/fileblocks.m4 \
- $(top_srcdir)/m4/filemode.m4 $(top_srcdir)/m4/filenamecat.m4 \
- $(top_srcdir)/m4/flexmember.m4 $(top_srcdir)/m4/fnmatch.m4 \
- $(top_srcdir)/m4/fpending.m4 $(top_srcdir)/m4/fprintftime.m4 \
- $(top_srcdir)/m4/free.m4 $(top_srcdir)/m4/fstypename.m4 \
- $(top_srcdir)/m4/fsusage.m4 $(top_srcdir)/m4/ftruncate.m4 \
- $(top_srcdir)/m4/fts.m4 $(top_srcdir)/m4/getaddrinfo.m4 \
- $(top_srcdir)/m4/getcwd-abort-bug.m4 \
- $(top_srcdir)/m4/getcwd-path-max.m4 $(top_srcdir)/m4/getcwd.m4 \
- $(top_srcdir)/m4/getdate.m4 $(top_srcdir)/m4/getdelim.m4 \
- $(top_srcdir)/m4/getgroups.m4 $(top_srcdir)/m4/gethostname.m4 \
- $(top_srcdir)/m4/gethrxtime.m4 $(top_srcdir)/m4/getline.m4 \
- $(top_srcdir)/m4/getloadavg.m4 $(top_srcdir)/m4/getndelim2.m4 \
- $(top_srcdir)/m4/getopt.m4 $(top_srcdir)/m4/getpagesize.m4 \
- $(top_srcdir)/m4/getpass.m4 $(top_srcdir)/m4/gettext.m4 \
- $(top_srcdir)/m4/gettime.m4 $(top_srcdir)/m4/gettimeofday.m4 \
- $(top_srcdir)/m4/getugroups.m4 \
- $(top_srcdir)/m4/getusershell.m4 $(top_srcdir)/m4/glibc21.m4 \
- $(top_srcdir)/m4/gnulib-common.m4 \
- $(top_srcdir)/m4/gnulib-comp.m4 \
- $(top_srcdir)/m4/group-member.m4 \
- $(top_srcdir)/m4/hard-locale.m4 $(top_srcdir)/m4/hash.m4 \
- $(top_srcdir)/m4/host-os.m4 $(top_srcdir)/m4/human.m4 \
- $(top_srcdir)/m4/i-ring.m4 $(top_srcdir)/m4/iconv.m4 \
- $(top_srcdir)/m4/idcache.m4 $(top_srcdir)/m4/inet_ntop.m4 \
- $(top_srcdir)/m4/inline.m4 $(top_srcdir)/m4/intmax_t.m4 \
- $(top_srcdir)/m4/inttostr.m4 $(top_srcdir)/m4/inttypes-pri.m4 \
- $(top_srcdir)/m4/inttypes.m4 $(top_srcdir)/m4/inttypes_h.m4 \
- $(top_srcdir)/m4/isapipe.m4 $(top_srcdir)/m4/jm-macros.m4 \
- $(top_srcdir)/m4/jm-winsz1.m4 $(top_srcdir)/m4/jm-winsz2.m4 \
- $(top_srcdir)/m4/lchmod.m4 $(top_srcdir)/m4/lchown.m4 \
- $(top_srcdir)/m4/lib-check.m4 $(top_srcdir)/m4/lib-ignore.m4 \
- $(top_srcdir)/m4/lib-ld.m4 $(top_srcdir)/m4/lib-link.m4 \
- $(top_srcdir)/m4/lib-prefix.m4 $(top_srcdir)/m4/link-follow.m4 \
- $(top_srcdir)/m4/localcharset.m4 \
- $(top_srcdir)/m4/long-options.m4 \
- $(top_srcdir)/m4/longdouble.m4 $(top_srcdir)/m4/longlong.m4 \
- $(top_srcdir)/m4/ls-mntd-fs.m4 $(top_srcdir)/m4/lstat.m4 \
- $(top_srcdir)/m4/mbchar.m4 $(top_srcdir)/m4/mbiter.m4 \
- $(top_srcdir)/m4/mbrtowc.m4 $(top_srcdir)/m4/mbscasecmp.m4 \
- $(top_srcdir)/m4/mbstate_t.m4 $(top_srcdir)/m4/mbswidth.m4 \
- $(top_srcdir)/m4/md5.m4 $(top_srcdir)/m4/memcasecmp.m4 \
- $(top_srcdir)/m4/memchr.m4 $(top_srcdir)/m4/memcmp.m4 \
- $(top_srcdir)/m4/memcoll.m4 $(top_srcdir)/m4/memcpy.m4 \
- $(top_srcdir)/m4/memmove.m4 $(top_srcdir)/m4/mempcpy.m4 \
- $(top_srcdir)/m4/memrchr.m4 $(top_srcdir)/m4/memset.m4 \
- $(top_srcdir)/m4/memxfrm.m4 $(top_srcdir)/m4/mkancesdirs.m4 \
- $(top_srcdir)/m4/mkdir-p.m4 $(top_srcdir)/m4/mkdir-slash.m4 \
- $(top_srcdir)/m4/mkstemp.m4 $(top_srcdir)/m4/mktime.m4 \
- $(top_srcdir)/m4/modechange.m4 $(top_srcdir)/m4/mountlist.m4 \
- $(top_srcdir)/m4/mpsort.m4 $(top_srcdir)/m4/nanosleep.m4 \
- $(top_srcdir)/m4/netinet_in_h.m4 $(top_srcdir)/m4/nls.m4 \
- $(top_srcdir)/m4/openat.m4 $(top_srcdir)/m4/pathmax.m4 \
- $(top_srcdir)/m4/perl.m4 $(top_srcdir)/m4/physmem.m4 \
- $(top_srcdir)/m4/po.m4 $(top_srcdir)/m4/posixtm.m4 \
- $(top_srcdir)/m4/posixver.m4 $(top_srcdir)/m4/prereq.m4 \
- $(top_srcdir)/m4/progtest.m4 $(top_srcdir)/m4/putenv.m4 \
- $(top_srcdir)/m4/quote.m4 $(top_srcdir)/m4/quotearg.m4 \
- $(top_srcdir)/m4/randint.m4 $(top_srcdir)/m4/randperm.m4 \
- $(top_srcdir)/m4/randread.m4 $(top_srcdir)/m4/readlink.m4 \
- $(top_srcdir)/m4/readtokens.m4 $(top_srcdir)/m4/readutmp.m4 \
- $(top_srcdir)/m4/regex.m4 \
- $(top_srcdir)/m4/rename-dest-slash.m4 \
- $(top_srcdir)/m4/rename.m4 $(top_srcdir)/m4/rmdir-errno.m4 \
- $(top_srcdir)/m4/rmdir.m4 $(top_srcdir)/m4/root-dev-ino.m4 \
- $(top_srcdir)/m4/rpmatch.m4 $(top_srcdir)/m4/safe-read.m4 \
- $(top_srcdir)/m4/safe-write.m4 $(top_srcdir)/m4/same.m4 \
- $(top_srcdir)/m4/save-cwd.m4 $(top_srcdir)/m4/savedir.m4 \
- $(top_srcdir)/m4/savewd.m4 $(top_srcdir)/m4/setenv.m4 \
- $(top_srcdir)/m4/settime.m4 $(top_srcdir)/m4/sha1.m4 \
- $(top_srcdir)/m4/sha256.m4 $(top_srcdir)/m4/sha512.m4 \
- $(top_srcdir)/m4/sig2str.m4 $(top_srcdir)/m4/snprintf.m4 \
- $(top_srcdir)/m4/socklen.m4 $(top_srcdir)/m4/sockpfaf.m4 \
- $(top_srcdir)/m4/ssize_t.m4 $(top_srcdir)/m4/st_dm_mode.m4 \
- $(top_srcdir)/m4/stat-prog.m4 $(top_srcdir)/m4/stat-time.m4 \
- $(top_srcdir)/m4/stdarg.m4 $(top_srcdir)/m4/stdbool.m4 \
- $(top_srcdir)/m4/stdint.m4 $(top_srcdir)/m4/stdint_h.m4 \
- $(top_srcdir)/m4/stdio-safer.m4 $(top_srcdir)/m4/stdio_h.m4 \
- $(top_srcdir)/m4/stdlib-safer.m4 $(top_srcdir)/m4/stdlib_h.m4 \
- $(top_srcdir)/m4/stpcpy.m4 $(top_srcdir)/m4/strcspn.m4 \
- $(top_srcdir)/m4/strdup.m4 $(top_srcdir)/m4/strftime.m4 \
- $(top_srcdir)/m4/string_h.m4 $(top_srcdir)/m4/strndup.m4 \
- $(top_srcdir)/m4/strnlen.m4 $(top_srcdir)/m4/strnumcmp.m4 \
- $(top_srcdir)/m4/strpbrk.m4 $(top_srcdir)/m4/strtod.m4 \
- $(top_srcdir)/m4/strtoimax.m4 $(top_srcdir)/m4/strtol.m4 \
- $(top_srcdir)/m4/strtoll.m4 $(top_srcdir)/m4/strtoul.m4 \
- $(top_srcdir)/m4/strtoull.m4 $(top_srcdir)/m4/strtoumax.m4 \
- $(top_srcdir)/m4/strverscmp.m4 \
- $(top_srcdir)/m4/sys_socket_h.m4 \
- $(top_srcdir)/m4/sys_stat_h.m4 $(top_srcdir)/m4/sys_time_h.m4 \
- $(top_srcdir)/m4/tempname.m4 $(top_srcdir)/m4/time_h.m4 \
- $(top_srcdir)/m4/time_r.m4 $(top_srcdir)/m4/timespec.m4 \
- $(top_srcdir)/m4/tm_gmtoff.m4 $(top_srcdir)/m4/tzset.m4 \
- $(top_srcdir)/m4/unicodeio.m4 $(top_srcdir)/m4/unistd-safer.m4 \
- $(top_srcdir)/m4/unistd_h.m4 $(top_srcdir)/m4/unlink-busy.m4 \
- $(top_srcdir)/m4/unlinkdir.m4 $(top_srcdir)/m4/unlocked-io.m4 \
- $(top_srcdir)/m4/uptime.m4 $(top_srcdir)/m4/userspec.m4 \
- $(top_srcdir)/m4/utimbuf.m4 $(top_srcdir)/m4/utime.m4 \
- $(top_srcdir)/m4/utimecmp.m4 $(top_srcdir)/m4/utimens.m4 \
- $(top_srcdir)/m4/utimes-null.m4 $(top_srcdir)/m4/utimes.m4 \
- $(top_srcdir)/m4/vasnprintf.m4 $(top_srcdir)/m4/vasprintf.m4 \
- $(top_srcdir)/m4/wchar.m4 $(top_srcdir)/m4/wchar_t.m4 \
- $(top_srcdir)/m4/wctype.m4 $(top_srcdir)/m4/wcwidth.m4 \
- $(top_srcdir)/m4/wint_t.m4 $(top_srcdir)/m4/xalloc.m4 \
- $(top_srcdir)/m4/xfts.m4 $(top_srcdir)/m4/xgetcwd.m4 \
- $(top_srcdir)/m4/xnanosleep.m4 $(top_srcdir)/m4/xstrndup.m4 \
- $(top_srcdir)/m4/xstrtod.m4 $(top_srcdir)/m4/xstrtol.m4 \
- $(top_srcdir)/m4/yesno.m4 $(top_srcdir)/configure.ac
-am__configure_deps = $(am__aclocal_m4_deps) $(CONFIGURE_DEPENDENCIES) \
- $(ACLOCAL_M4)
-mkinstalldirs = $(install_sh) -d
-CONFIG_HEADER = $(top_builddir)/lib/config.h
-CONFIG_CLEAN_FILES =
-SOURCES =
-DIST_SOURCES =
-DISTFILES = $(DIST_COMMON) $(DIST_SOURCES) $(TEXINFOS) $(EXTRA_DIST)
-ABSOLUTE_DIRENT_H = @ABSOLUTE_DIRENT_H@
-ABSOLUTE_FCNTL_H = @ABSOLUTE_FCNTL_H@
-ABSOLUTE_INTTYPES_H = @ABSOLUTE_INTTYPES_H@
-ABSOLUTE_NETINET_IN_H = @ABSOLUTE_NETINET_IN_H@
-ABSOLUTE_STDINT_H = @ABSOLUTE_STDINT_H@
-ABSOLUTE_STDIO_H = @ABSOLUTE_STDIO_H@
-ABSOLUTE_STDLIB_H = @ABSOLUTE_STDLIB_H@
-ABSOLUTE_STRING_H = @ABSOLUTE_STRING_H@
-ABSOLUTE_SYS_SOCKET_H = @ABSOLUTE_SYS_SOCKET_H@
-ABSOLUTE_SYS_STAT_H = @ABSOLUTE_SYS_STAT_H@
-ABSOLUTE_SYS_TIME_H = @ABSOLUTE_SYS_TIME_H@
-ABSOLUTE_TIME_H = @ABSOLUTE_TIME_H@
-ABSOLUTE_UNISTD_H = @ABSOLUTE_UNISTD_H@
-ABSOLUTE_WCHAR_H = @ABSOLUTE_WCHAR_H@
-ABSOLUTE_WCTYPE_H = @ABSOLUTE_WCTYPE_H@
-ACLOCAL = @ACLOCAL@
-ALLOCA = @ALLOCA@
-ALLOCA_H = @ALLOCA_H@
-AMTAR = @AMTAR@
-ARPA_INET_H = @ARPA_INET_H@
-AUTOCONF = @AUTOCONF@
-AUTOHEADER = @AUTOHEADER@
-AUTOMAKE = @AUTOMAKE@
-AWK = @AWK@
-BITSIZEOF_PTRDIFF_T = @BITSIZEOF_PTRDIFF_T@
-BITSIZEOF_SIG_ATOMIC_T = @BITSIZEOF_SIG_ATOMIC_T@
-BITSIZEOF_SIZE_T = @BITSIZEOF_SIZE_T@
-BITSIZEOF_WCHAR_T = @BITSIZEOF_WCHAR_T@
-BITSIZEOF_WINT_T = @BITSIZEOF_WINT_T@
-CC = @CC@
-CCDEPMODE = @CCDEPMODE@
-CFLAGS = @CFLAGS@
-CPP = @CPP@
-CPPFLAGS = @CPPFLAGS@
-CYGPATH_W = @CYGPATH_W@
-DEFAULT_POSIX2_VERSION = @DEFAULT_POSIX2_VERSION@
-DEFS = @DEFS@
-DEPDIR = @DEPDIR@
-DF_PROG = @DF_PROG@
-DIRENT_H = @DIRENT_H@
-ECHO_C = @ECHO_C@
-ECHO_N = @ECHO_N@
-ECHO_T = @ECHO_T@
-EGREP = @EGREP@
-EOVERFLOW = @EOVERFLOW@
-EXEEXT = @EXEEXT@
-FCNTL_H = @FCNTL_H@
-FNMATCH_H = @FNMATCH_H@
-GETLOADAVG_LIBS = @GETLOADAVG_LIBS@
-GETOPT_H = @GETOPT_H@
-GLIBC21 = @GLIBC21@
-GMSGFMT = @GMSGFMT@
-GMSGFMT_015 = @GMSGFMT_015@
-GNULIB_CHOWN = @GNULIB_CHOWN@
-GNULIB_DUP2 = @GNULIB_DUP2@
-GNULIB_FCHDIR = @GNULIB_FCHDIR@
-GNULIB_FPRINTF_POSIX = @GNULIB_FPRINTF_POSIX@
-GNULIB_FTRUNCATE = @GNULIB_FTRUNCATE@
-GNULIB_GETCWD = @GNULIB_GETCWD@
-GNULIB_GETLOGIN_R = @GNULIB_GETLOGIN_R@
-GNULIB_GETSUBOPT = @GNULIB_GETSUBOPT@
-GNULIB_IMAXABS = @GNULIB_IMAXABS@
-GNULIB_IMAXDIV = @GNULIB_IMAXDIV@
-GNULIB_MBSCASECMP = @GNULIB_MBSCASECMP@
-GNULIB_MBSCASESTR = @GNULIB_MBSCASESTR@
-GNULIB_MBSCHR = @GNULIB_MBSCHR@
-GNULIB_MBSCSPN = @GNULIB_MBSCSPN@
-GNULIB_MBSLEN = @GNULIB_MBSLEN@
-GNULIB_MBSNCASECMP = @GNULIB_MBSNCASECMP@
-GNULIB_MBSPBRK = @GNULIB_MBSPBRK@
-GNULIB_MBSPCASECMP = @GNULIB_MBSPCASECMP@
-GNULIB_MBSRCHR = @GNULIB_MBSRCHR@
-GNULIB_MBSSEP = @GNULIB_MBSSEP@
-GNULIB_MBSSPN = @GNULIB_MBSSPN@
-GNULIB_MBSSTR = @GNULIB_MBSSTR@
-GNULIB_MBSTOK_R = @GNULIB_MBSTOK_R@
-GNULIB_MEMMEM = @GNULIB_MEMMEM@
-GNULIB_MEMPCPY = @GNULIB_MEMPCPY@
-GNULIB_MEMRCHR = @GNULIB_MEMRCHR@
-GNULIB_MKDTEMP = @GNULIB_MKDTEMP@
-GNULIB_MKSTEMP = @GNULIB_MKSTEMP@
-GNULIB_PRINTF_POSIX = @GNULIB_PRINTF_POSIX@
-GNULIB_READLINK = @GNULIB_READLINK@
-GNULIB_SNPRINTF = @GNULIB_SNPRINTF@
-GNULIB_SPRINTF_POSIX = @GNULIB_SPRINTF_POSIX@
-GNULIB_STPCPY = @GNULIB_STPCPY@
-GNULIB_STPNCPY = @GNULIB_STPNCPY@
-GNULIB_STRCASESTR = @GNULIB_STRCASESTR@
-GNULIB_STRCHRNUL = @GNULIB_STRCHRNUL@
-GNULIB_STRDUP = @GNULIB_STRDUP@
-GNULIB_STRNDUP = @GNULIB_STRNDUP@
-GNULIB_STRNLEN = @GNULIB_STRNLEN@
-GNULIB_STRPBRK = @GNULIB_STRPBRK@
-GNULIB_STRSEP = @GNULIB_STRSEP@
-GNULIB_STRTOIMAX = @GNULIB_STRTOIMAX@
-GNULIB_STRTOK_R = @GNULIB_STRTOK_R@
-GNULIB_STRTOUMAX = @GNULIB_STRTOUMAX@
-GNULIB_VFPRINTF_POSIX = @GNULIB_VFPRINTF_POSIX@
-GNULIB_VPRINTF_POSIX = @GNULIB_VPRINTF_POSIX@
-GNULIB_VSNPRINTF = @GNULIB_VSNPRINTF@
-GNULIB_VSPRINTF_POSIX = @GNULIB_VSPRINTF_POSIX@
-GNU_PACKAGE = @GNU_PACKAGE@
-GREP = @GREP@
-HAVE_DECL_GETLOGIN_R = @HAVE_DECL_GETLOGIN_R@
-HAVE_DECL_IMAXABS = @HAVE_DECL_IMAXABS@
-HAVE_DECL_IMAXDIV = @HAVE_DECL_IMAXDIV@
-HAVE_DECL_MEMMEM = @HAVE_DECL_MEMMEM@
-HAVE_DECL_MEMRCHR = @HAVE_DECL_MEMRCHR@
-HAVE_DECL_SNPRINTF = @HAVE_DECL_SNPRINTF@
-HAVE_DECL_STRDUP = @HAVE_DECL_STRDUP@
-HAVE_DECL_STRNCASECMP = @HAVE_DECL_STRNCASECMP@
-HAVE_DECL_STRNDUP = @HAVE_DECL_STRNDUP@
-HAVE_DECL_STRNLEN = @HAVE_DECL_STRNLEN@
-HAVE_DECL_STRTOIMAX = @HAVE_DECL_STRTOIMAX@
-HAVE_DECL_STRTOK_R = @HAVE_DECL_STRTOK_R@
-HAVE_DECL_STRTOUMAX = @HAVE_DECL_STRTOUMAX@
-HAVE_DECL_VSNPRINTF = @HAVE_DECL_VSNPRINTF@
-HAVE_DUP2 = @HAVE_DUP2@
-HAVE_FTRUNCATE = @HAVE_FTRUNCATE@
-HAVE_GETSUBOPT = @HAVE_GETSUBOPT@
-HAVE_INTTYPES_H = @HAVE_INTTYPES_H@
-HAVE_LONG_LONG_INT = @HAVE_LONG_LONG_INT@
-HAVE_MEMPCPY = @HAVE_MEMPCPY@
-HAVE_MKDTEMP = @HAVE_MKDTEMP@
-HAVE_NETINET_IN_H = @HAVE_NETINET_IN_H@
-HAVE_READLINK = @HAVE_READLINK@
-HAVE_SIGNED_SIG_ATOMIC_T = @HAVE_SIGNED_SIG_ATOMIC_T@
-HAVE_SIGNED_WCHAR_T = @HAVE_SIGNED_WCHAR_T@
-HAVE_SIGNED_WINT_T = @HAVE_SIGNED_WINT_T@
-HAVE_STDINT_H = @HAVE_STDINT_H@
-HAVE_STPCPY = @HAVE_STPCPY@
-HAVE_STPNCPY = @HAVE_STPNCPY@
-HAVE_STRCASECMP = @HAVE_STRCASECMP@
-HAVE_STRCASESTR = @HAVE_STRCASESTR@
-HAVE_STRCHRNUL = @HAVE_STRCHRNUL@
-HAVE_STRNDUP = @HAVE_STRNDUP@
-HAVE_STRPBRK = @HAVE_STRPBRK@
-HAVE_STRSEP = @HAVE_STRSEP@
-HAVE_STRUCT_TIMEVAL = @HAVE_STRUCT_TIMEVAL@
-HAVE_SYS_BITYPES_H = @HAVE_SYS_BITYPES_H@
-HAVE_SYS_INTTYPES_H = @HAVE_SYS_INTTYPES_H@
-HAVE_SYS_SOCKET_H = @HAVE_SYS_SOCKET_H@
-HAVE_SYS_TIME_H = @HAVE_SYS_TIME_H@
-HAVE_SYS_TYPES_H = @HAVE_SYS_TYPES_H@
-HAVE_UNISTD_H = @HAVE_UNISTD_H@
-HAVE_UNSIGNED_LONG_LONG_INT = @HAVE_UNSIGNED_LONG_LONG_INT@
-HAVE_WCTYPE_H = @HAVE_WCTYPE_H@
-HAVE_WINSOCK2_H = @HAVE_WINSOCK2_H@
-HAVE_WINT_T = @HAVE_WINT_T@
-HAVE_WS2TCPIP_H = @HAVE_WS2TCPIP_H@
-HAVE__BOOL = @HAVE__BOOL@
-HELP2MAN = @HELP2MAN@
-INSTALL = @INSTALL@
-INSTALL_DATA = @INSTALL_DATA@
-INSTALL_PROGRAM = @INSTALL_PROGRAM@
-INSTALL_SCRIPT = @INSTALL_SCRIPT@
-INSTALL_STRIP_PROGRAM = @INSTALL_STRIP_PROGRAM@
-INTLLIBS = @INTLLIBS@
-INTL_MACOSX_LIBS = @INTL_MACOSX_LIBS@
-INTTYPES_H = @INTTYPES_H@
-KMEM_GROUP = @KMEM_GROUP@
-LDFLAGS = @LDFLAGS@
-LIBCOREUTILS_LIBDEPS = @LIBCOREUTILS_LIBDEPS@
-LIBCOREUTILS_LTLIBDEPS = @LIBCOREUTILS_LTLIBDEPS@
-LIBICONV = @LIBICONV@
-LIBINTL = @LIBINTL@
-LIBOBJS = @LIBOBJS@
-LIBS = @LIBS@
-LIB_ACL = @LIB_ACL@
-LIB_ACL_TRIVIAL = @LIB_ACL_TRIVIAL@
-LIB_CLOCK_GETTIME = @LIB_CLOCK_GETTIME@
-LIB_CRYPT = @LIB_CRYPT@
-LIB_EACCESS = @LIB_EACCESS@
-LIB_FDATASYNC = @LIB_FDATASYNC@
-LIB_GETHRXTIME = @LIB_GETHRXTIME@
-LIB_NANOSLEEP = @LIB_NANOSLEEP@
-LN_S = @LN_S@
-LTLIBICONV = @LTLIBICONV@
-LTLIBINTL = @LTLIBINTL@
-LTLIBOBJS = @LTLIBOBJS@
-MAKEINFO = @MAKEINFO@
-MAN = @MAN@
-MKDIR_P = @MKDIR_P@
-MSGFMT = @MSGFMT@
-MSGFMT_015 = @MSGFMT_015@
-MSGMERGE = @MSGMERGE@
-NEED_SETGID = @NEED_SETGID@
-NETINET_IN_H = @NETINET_IN_H@
-OBJEXT = @OBJEXT@
-OPTIONAL_BIN_PROGS = @OPTIONAL_BIN_PROGS@
-PACKAGE = @PACKAGE@
-PACKAGE_BUGREPORT = @PACKAGE_BUGREPORT@
-PACKAGE_NAME = @PACKAGE_NAME@
-PACKAGE_STRING = @PACKAGE_STRING@
-PACKAGE_TARNAME = @PACKAGE_TARNAME@
-PACKAGE_VERSION = @PACKAGE_VERSION@
-PATH_SEPARATOR = @PATH_SEPARATOR@
-PERL = @PERL@
-POSUB = @POSUB@
-POW_LIB = @POW_LIB@
-PRIPTR_PREFIX = @PRIPTR_PREFIX@
-PRI_MACROS_BROKEN = @PRI_MACROS_BROKEN@
-PTRDIFF_T_SUFFIX = @PTRDIFF_T_SUFFIX@
-RANLIB = @RANLIB@
-REPLACE_CHOWN = @REPLACE_CHOWN@
-REPLACE_FCHDIR = @REPLACE_FCHDIR@
-REPLACE_FPRINTF = @REPLACE_FPRINTF@
-REPLACE_GETCWD = @REPLACE_GETCWD@
-REPLACE_GETTIMEOFDAY = @REPLACE_GETTIMEOFDAY@
-REPLACE_LOCALTIME_R = @REPLACE_LOCALTIME_R@
-REPLACE_MKSTEMP = @REPLACE_MKSTEMP@
-REPLACE_NANOSLEEP = @REPLACE_NANOSLEEP@
-REPLACE_PRINTF = @REPLACE_PRINTF@
-REPLACE_SNPRINTF = @REPLACE_SNPRINTF@
-REPLACE_SPRINTF = @REPLACE_SPRINTF@
-REPLACE_STRPTIME = @REPLACE_STRPTIME@
-REPLACE_TIMEGM = @REPLACE_TIMEGM@
-REPLACE_VFPRINTF = @REPLACE_VFPRINTF@
-REPLACE_VPRINTF = @REPLACE_VPRINTF@
-REPLACE_VSNPRINTF = @REPLACE_VSNPRINTF@
-REPLACE_VSPRINTF = @REPLACE_VSPRINTF@
-SEQ_LIBM = @SEQ_LIBM@
-SET_MAKE = @SET_MAKE@
-SHELL = @SHELL@
-SIG_ATOMIC_T_SUFFIX = @SIG_ATOMIC_T_SUFFIX@
-SIZE_T_SUFFIX = @SIZE_T_SUFFIX@
-STDBOOL_H = @STDBOOL_H@
-STDINT_H = @STDINT_H@
-STRIP = @STRIP@
-SYS_SOCKET_H = @SYS_SOCKET_H@
-SYS_STAT_H = @SYS_STAT_H@
-SYS_TIME_H = @SYS_TIME_H@
-SYS_TIME_H_DEFINES_STRUCT_TIMESPEC = @SYS_TIME_H_DEFINES_STRUCT_TIMESPEC@
-TIME_H_DEFINES_STRUCT_TIMESPEC = @TIME_H_DEFINES_STRUCT_TIMESPEC@
-U = @U@
-USE_NLS = @USE_NLS@
-VERSION = @VERSION@
-WCHAR_H = @WCHAR_H@
-WCHAR_T_SUFFIX = @WCHAR_T_SUFFIX@
-WCTYPE_H = @WCTYPE_H@
-WINT_T_SUFFIX = @WINT_T_SUFFIX@
-XGETTEXT = @XGETTEXT@
-XGETTEXT_015 = @XGETTEXT_015@
-YACC = @YACC@
-YFLAGS = @YFLAGS@
-abs_builddir = @abs_builddir@
-abs_srcdir = @abs_srcdir@
-abs_top_builddir = @abs_top_builddir@
-abs_top_srcdir = @abs_top_srcdir@
-ac_ct_CC = @ac_ct_CC@
-am__include = @am__include@
-am__leading_dot = @am__leading_dot@
-am__quote = @am__quote@
-am__tar = @am__tar@
-am__untar = @am__untar@
-bindir = @bindir@
-build = @build@
-build_alias = @build_alias@
-build_cpu = @build_cpu@
-build_os = @build_os@
-build_vendor = @build_vendor@
-builddir = @builddir@
-datadir = @datadir@
-datarootdir = @datarootdir@
-docdir = @docdir@
-dvidir = @dvidir@
-exec_prefix = @exec_prefix@
-gl_LIBOBJS = @gl_LIBOBJS@
-gl_LTLIBOBJS = @gl_LTLIBOBJS@
-host = @host@
-host_alias = @host_alias@
-host_cpu = @host_cpu@
-host_os = @host_os@
-host_vendor = @host_vendor@
-htmldir = @htmldir@
-includedir = @includedir@
-infodir = @infodir@
-install_sh = @install_sh@
-libdir = @libdir@
-libexecdir = @libexecdir@
-localedir = @localedir@
-localstatedir = @localstatedir@
-mandir = @mandir@
-mkdir_p = @mkdir_p@
-oldincludedir = @oldincludedir@
-pdfdir = @pdfdir@
-prefix = @prefix@
-program_transform_name = @program_transform_name@
-psdir = @psdir@
-sbindir = @sbindir@
-sharedstatedir = @sharedstatedir@
-srcdir = @srcdir@
-sysconfdir = @sysconfdir@
-target_alias = @target_alias@
-top_builddir = @top_builddir@
-top_srcdir = @top_srcdir@
-TESTS = \
- file-perm-race parent-perm-race \
- backup-dir \
- src-base-dot \
- sparse \
- link-no-deref \
- cp-deref \
- acl \
- preserve-2 r-vs-symlink link-preserve \
- backup-1 no-deref-link1 no-deref-link2 no-deref-link3 backup-is-src \
- same-file cp-mv-backup symlink-slash slink-2-slink fail-perm dir-slash \
- perm cp-HL cp-i special-bits link dir-rm-dest cp-parents deref-slink \
- dir-vs-file into-self
-
-EXTRA_DIST = $(TESTS) trailing-slash
-TESTS_ENVIRONMENT = \
- MAKE=$(MAKE) \
- abs_top_builddir=$(abs_top_builddir) \
- CONFIG_HEADER=$(CONFIG_HEADER) \
- CU_TEST_NAME=`basename $(abs_srcdir)`,$$tst \
- PATH="$(VG_PATH_PREFIX)`pwd`/../../src$(PATH_SEPARATOR)$$PATH"
-
-all: all-am
-
-.SUFFIXES:
-$(srcdir)/Makefile.in: $(srcdir)/Makefile.am $(am__configure_deps)
- @for dep in $?; do \
- case '$(am__configure_deps)' in \
- *$$dep*) \
- cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh \
- && exit 0; \
- exit 1;; \
- esac; \
- done; \
- echo ' cd $(top_srcdir) && $(AUTOMAKE) --gnu tests/cp/Makefile'; \
- cd $(top_srcdir) && \
- $(AUTOMAKE) --gnu tests/cp/Makefile
-.PRECIOUS: Makefile
-Makefile: $(srcdir)/Makefile.in $(top_builddir)/config.status
- @case '$?' in \
- *config.status*) \
- cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh;; \
- *) \
- echo ' cd $(top_builddir) && $(SHELL) ./config.status $(subdir)/$@ $(am__depfiles_maybe)'; \
- cd $(top_builddir) && $(SHELL) ./config.status $(subdir)/$@ $(am__depfiles_maybe);; \
- esac;
-
-$(top_builddir)/config.status: $(top_srcdir)/configure $(CONFIG_STATUS_DEPENDENCIES)
- cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh
-
-$(top_srcdir)/configure: $(am__configure_deps)
- cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh
-$(ACLOCAL_M4): $(am__aclocal_m4_deps)
- cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh
-tags: TAGS
-TAGS:
-
-ctags: CTAGS
-CTAGS:
-
-
-check-TESTS: $(TESTS)
- @failed=0; all=0; xfail=0; xpass=0; skip=0; ws='[ ]'; \
- srcdir=$(srcdir); export srcdir; \
- list=' $(TESTS) '; \
- if test -n "$$list"; then \
- for tst in $$list; do \
- if test -f ./$$tst; then dir=./; \
- elif test -f $$tst; then dir=; \
- else dir="$(srcdir)/"; fi; \
- if $(TESTS_ENVIRONMENT) $${dir}$$tst; then \
- all=`expr $$all + 1`; \
- case " $(XFAIL_TESTS) " in \
- *$$ws$$tst$$ws*) \
- xpass=`expr $$xpass + 1`; \
- failed=`expr $$failed + 1`; \
- echo "XPASS: $$tst"; \
- ;; \
- *) \
- echo "PASS: $$tst"; \
- ;; \
- esac; \
- elif test $$? -ne 77; then \
- all=`expr $$all + 1`; \
- case " $(XFAIL_TESTS) " in \
- *$$ws$$tst$$ws*) \
- xfail=`expr $$xfail + 1`; \
- echo "XFAIL: $$tst"; \
- ;; \
- *) \
- failed=`expr $$failed + 1`; \
- echo "FAIL: $$tst"; \
- ;; \
- esac; \
- else \
- skip=`expr $$skip + 1`; \
- echo "SKIP: $$tst"; \
- fi; \
- done; \
- if test "$$failed" -eq 0; then \
- if test "$$xfail" -eq 0; then \
- banner="All $$all tests passed"; \
- else \
- banner="All $$all tests behaved as expected ($$xfail expected failures)"; \
- fi; \
- else \
- if test "$$xpass" -eq 0; then \
- banner="$$failed of $$all tests failed"; \
- else \
- banner="$$failed of $$all tests did not behave as expected ($$xpass unexpected passes)"; \
- fi; \
- fi; \
- dashes="$$banner"; \
- skipped=""; \
- if test "$$skip" -ne 0; then \
- skipped="($$skip tests were not run)"; \
- test `echo "$$skipped" | wc -c` -le `echo "$$banner" | wc -c` || \
- dashes="$$skipped"; \
- fi; \
- report=""; \
- if test "$$failed" -ne 0 && test -n "$(PACKAGE_BUGREPORT)"; then \
- report="Please report to $(PACKAGE_BUGREPORT)"; \
- test `echo "$$report" | wc -c` -le `echo "$$banner" | wc -c` || \
- dashes="$$report"; \
- fi; \
- dashes=`echo "$$dashes" | sed s/./=/g`; \
- echo "$$dashes"; \
- echo "$$banner"; \
- test -z "$$skipped" || echo "$$skipped"; \
- test -z "$$report" || echo "$$report"; \
- echo "$$dashes"; \
- test "$$failed" -eq 0; \
- else :; fi
-
-distdir: $(DISTFILES)
- @srcdirstrip=`echo "$(srcdir)" | sed 's/[].[^$$\\*]/\\\\&/g'`; \
- topsrcdirstrip=`echo "$(top_srcdir)" | sed 's/[].[^$$\\*]/\\\\&/g'`; \
- list='$(DISTFILES)'; \
- dist_files=`for file in $$list; do echo $$file; done | \
- sed -e "s|^$$srcdirstrip/||;t" \
- -e "s|^$$topsrcdirstrip/|$(top_builddir)/|;t"`; \
- case $$dist_files in \
- */*) $(MKDIR_P) `echo "$$dist_files" | \
- sed '/\//!d;s|^|$(distdir)/|;s,/[^/]*$$,,' | \
- sort -u` ;; \
- esac; \
- for file in $$dist_files; do \
- if test -f $$file || test -d $$file; then d=.; else d=$(srcdir); fi; \
- if test -d $$d/$$file; then \
- dir=`echo "/$$file" | sed -e 's,/[^/]*$$,,'`; \
- if test -d $(srcdir)/$$file && test $$d != $(srcdir); then \
- cp -pR $(srcdir)/$$file $(distdir)$$dir || exit 1; \
- fi; \
- cp -pR $$d/$$file $(distdir)$$dir || exit 1; \
- else \
- test -f $(distdir)/$$file \
- || cp -p $$d/$$file $(distdir)/$$file \
- || exit 1; \
- fi; \
- done
-check-am: all-am
- $(MAKE) $(AM_MAKEFLAGS) check-TESTS
-check: check-am
-all-am: Makefile
-installdirs:
-install: install-am
-install-exec: install-exec-am
-install-data: install-data-am
-uninstall: uninstall-am
-
-install-am: all-am
- @$(MAKE) $(AM_MAKEFLAGS) install-exec-am install-data-am
-
-installcheck: installcheck-am
-install-strip:
- $(MAKE) $(AM_MAKEFLAGS) INSTALL_PROGRAM="$(INSTALL_STRIP_PROGRAM)" \
- install_sh_PROGRAM="$(INSTALL_STRIP_PROGRAM)" INSTALL_STRIP_FLAG=-s \
- `test -z '$(STRIP)' || \
- echo "INSTALL_PROGRAM_ENV=STRIPPROG='$(STRIP)'"` install
-mostlyclean-generic:
-
-clean-generic:
-
-distclean-generic:
- -test -z "$(CONFIG_CLEAN_FILES)" || rm -f $(CONFIG_CLEAN_FILES)
-
-maintainer-clean-generic:
- @echo "This command is intended for maintainers to use"
- @echo "it deletes files that may require special tools to rebuild."
-clean: clean-am
-
-clean-am: clean-generic mostlyclean-am
-
-distclean: distclean-am
- -rm -f Makefile
-distclean-am: clean-am distclean-generic
-
-dvi: dvi-am
-
-dvi-am:
-
-html: html-am
-
-info: info-am
-
-info-am:
-
-install-data-am:
-
-install-dvi: install-dvi-am
-
-install-exec-am:
-
-install-html: install-html-am
-
-install-info: install-info-am
-
-install-man:
-
-install-pdf: install-pdf-am
-
-install-ps: install-ps-am
-
-installcheck-am:
-
-maintainer-clean: maintainer-clean-am
- -rm -f Makefile
-maintainer-clean-am: distclean-am maintainer-clean-generic
-
-mostlyclean: mostlyclean-am
-
-mostlyclean-am: mostlyclean-generic
-
-pdf: pdf-am
-
-pdf-am:
-
-ps: ps-am
-
-ps-am:
-
-uninstall-am:
-
-.MAKE: install-am install-strip
-
-.PHONY: all all-am check check-TESTS check-am clean clean-generic \
- distclean distclean-generic distdir dvi dvi-am html html-am \
- info info-am install install-am install-data install-data-am \
- install-dvi install-dvi-am install-exec install-exec-am \
- install-html install-html-am install-info install-info-am \
- install-man install-pdf install-pdf-am install-ps \
- install-ps-am install-strip installcheck installcheck-am \
- installdirs maintainer-clean maintainer-clean-generic \
- mostlyclean mostlyclean-generic pdf pdf-am ps ps-am uninstall \
- uninstall-am
-
-# Tell versions [3.59,3.63) of GNU make to not export all variables.
-# Otherwise a system limit (for SysV at least) may be exceeded.
-.NOEXPORT:
diff --git a/tests/cp/abuse.sh b/tests/cp/abuse.sh
new file mode 100755
index 0000000..8d40139
--- /dev/null
+++ b/tests/cp/abuse.sh
@@ -0,0 +1,50 @@
+#!/bin/sh
+# ensure that cp does not write through a just-copied symlink
+
+# Copyright (C) 2007-2016 Free Software Foundation, Inc.
+
+# This program is free software: you can redistribute it and/or modify
+# it under the terms of the GNU General Public License as published by
+# the Free Software Foundation, either version 3 of the License, or
+# (at your option) any later version.
+
+# This program is distributed in the hope that it will be useful,
+# but WITHOUT ANY WARRANTY; without even the implied warranty of
+# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
+# GNU General Public License for more details.
+
+# You should have received a copy of the GNU General Public License
+# along with this program. If not, see <http://www.gnu.org/licenses/>.
+
+. "${srcdir=.}/tests/init.sh"; path_prepend_ ./src
+print_ver_ cp
+
+mkdir a b c || framework_failure_
+ln -s ../t a/1 || framework_failure_
+echo payload > b/1 || framework_failure_
+
+echo "cp: will not copy 'b/1' through just-created symlink 'c/1'" \
+ > exp || framework_failure_
+
+# Check both cases: a dangling symlink, and one pointing to a writable file.
+
+for i in dangling-dest existing-dest; do
+ test $i = existing-dest && echo i > t
+ test $i = dangling-dest && rm -f t
+
+ cp -dR a/1 b/1 c 2> out && fail=1
+
+ compare exp out || fail=1
+
+ # When the destination is a dangling symlink,
+ # ensure that cp does not create it.
+ test $i = dangling-dest \
+ && test -f t && fail=1
+
+ # When the destination symlink points to a writable file,
+ # ensure that cp does not change it.
+ test $i = existing-dest \
+ && case $(cat t) in i);; *) fail=1;; esac
+done
+
+Exit $fail
diff --git a/tests/cp/acl b/tests/cp/acl
deleted file mode 100755
index 3a5eb33..0000000
--- a/tests/cp/acl
+++ /dev/null
@@ -1,90 +0,0 @@
-#!/bin/sh
-# copy files/directories across file system boundaries
-# and make sure acls are preserved appropriately
-
-# Copyright (C) 2005, 2006 Free Software Foundation, Inc.
-
-# This program is free software; you can redistribute it and/or modify
-# it under the terms of the GNU General Public License as published by
-# the Free Software Foundation; either version 2 of the License, or
-# (at your option) any later version.
-
-# This program is distributed in the hope that it will be useful,
-# but WITHOUT ANY WARRANTY; without even the implied warranty of
-# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
-# GNU General Public License for more details.
-
-# You should have received a copy of the GNU General Public License
-# along with this program; if not, write to the Free Software
-# Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA
-# 02110-1301, USA.
-
-. $srcdir/../acl
-# Make sure we get English translations.
-. $srcdir/../lang-default
-
-# Skip this test if cp was built without ACL support:
-grep '^#define USE_ACL 0' $CONFIG_HEADER > /dev/null && \
- {
- echo 1>&2 "$0: insufficient ACL support, so skipping this test"
- (exit 77); exit 77
- }
-
-if test "$VERBOSE" = yes; then
- set -x
- mv --version
- getfacl --version
- setfacl --version
-fi
-
-pwd=`pwd`
-t0=`echo "$0"|sed 's,.*/,,'`.tmp; tmp=$t0/$$
-trap 'status=$?; cd "$pwd" && chmod -R u+rwx $t0 && rm -rf $t0 && exit $status' 0
-trap '(exit $?); exit $?' 1 2 13 15
-
-framework_failure=0
-mkdir -p $tmp || framework_failure=1
-cd $tmp || framework_failure=1
-
-mkdir -p a b || framework_failure=1
-touch a/file || framework_failure=1
-
-if test $framework_failure = 1; then
- echo 'failure in testing framework'
- (exit 1); exit 1
-fi
-
-skip=no
-# Ensure that setfacl and getfacl work on this file system.
-setfacl -m user:bin:rw a/file 2> /dev/null || skip=yes
-acl1=`cd a && getfacl file | grep -v ':bin:' | grep -v 'mask::'` \
- || skip=yes
-
-test $skip = yes &&
- {
- echo "$0: '.' is not on a suitable file system for this test" 1>&2
- echo "$0: skipping this test" 1>&2
- (exit 77); exit 77
- }
-
-# copy a file without preserving permissions
-cp a/file b/ || fail=1
-
-acl2=`cd b && getfacl file` || framework_failure=1
-test "$acl1" = "$acl2" || fail=1
-rm a/file || framework_failure=1
-
-# copy a file, preserving permissions
-touch a/file || framework_failure=1
-setfacl -m user:bin:rw a/file || framework_failure=1
-acl1=`cd a && getfacl file` || framework_failure=1
-cp -p a/file b/ || fail=1
-acl2=`cd b && getfacl file` || framework_failure=1
-test "$acl1" = "$acl2" || fail=1
-
-if test $framework_failure = 1; then
- echo 'failure in testing framework'
- (exit 1); exit 1
-fi
-
-exit $fail
diff --git a/tests/cp/acl.sh b/tests/cp/acl.sh
new file mode 100755
index 0000000..eaba8b1
--- /dev/null
+++ b/tests/cp/acl.sh
@@ -0,0 +1,60 @@
+#!/bin/sh
+# copy files/directories across file system boundaries
+# and make sure acls are preserved appropriately
+
+# Copyright (C) 2005-2016 Free Software Foundation, Inc.
+
+# This program is free software: you can redistribute it and/or modify
+# it under the terms of the GNU General Public License as published by
+# the Free Software Foundation, either version 3 of the License, or
+# (at your option) any later version.
+
+# This program is distributed in the hope that it will be useful,
+# but WITHOUT ANY WARRANTY; without even the implied warranty of
+# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
+# GNU General Public License for more details.
+
+# You should have received a copy of the GNU General Public License
+# along with this program. If not, see <http://www.gnu.org/licenses/>.
+
+. "${srcdir=.}/tests/init.sh"; path_prepend_ ./src
+print_ver_ cp
+
+require_acl_
+
+# Skip this test if cp was built without ACL support:
+grep '^#define USE_ACL 1' $CONFIG_HEADER > /dev/null ||
+ skip_ "insufficient ACL support"
+
+mkdir -p a b || framework_failure_
+touch a/file || framework_failure_
+
+# Ensure that setfacl and getfacl work on this file system.
+skip=no
+acl1=$(cd a && getfacl file) || skip=yes
+setfacl -m user:bin:rw- a/file 2> /dev/null || skip=yes
+test $skip = yes &&
+ skip_ "'.' is not on a suitable file system for this test"
+
+# copy a file without preserving permissions
+cp a/file b/ || fail=1
+acl2=$(cd b && getfacl file) || framework_failure_
+test "$acl1" = "$acl2" || fail=1
+
+# Update with acl set above
+acl1=$(cd a && getfacl file) || framework_failure_
+
+# copy a file, preserving permissions
+cp -p a/file b/ || fail=1
+acl2=$(cd b && getfacl file) || framework_failure_
+test "$acl1" = "$acl2" || fail=1
+
+# copy a file, preserving permissions, with --attributes-only
+echo > a/file || framework_failure_ # add some data
+test -s a/file || framework_failure_
+cp -p --attributes-only a/file b/ || fail=1
+compare /dev/null b/file || fail=1
+acl2=$(cd b && getfacl file) || framework_failure_
+test "$acl1" = "$acl2" || fail=1
+
+Exit $fail
diff --git a/tests/cp/attr-existing.sh b/tests/cp/attr-existing.sh
new file mode 100755
index 0000000..f6b30a9
--- /dev/null
+++ b/tests/cp/attr-existing.sh
@@ -0,0 +1,29 @@
+#!/bin/sh
+# Make sure cp --attributes-only doesn't truncate existing data
+
+# Copyright 2012-2016 Free Software Foundation, Inc.
+
+# This program is free software: you can redistribute it and/or modify
+# it under the terms of the GNU General Public License as published by
+# the Free Software Foundation, either version 3 of the License, or
+# (at your option) any later version.
+
+# This program is distributed in the hope that it will be useful,
+# but WITHOUT ANY WARRANTY; without even the implied warranty of
+# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
+# GNU General Public License for more details.
+
+# You should have received a copy of the GNU General Public License
+# along with this program. If not, see <http://www.gnu.org/licenses/>.
+
+. "${srcdir=.}/tests/init.sh"; path_prepend_ ./src
+print_ver_ cp
+
+printf '1' > file1
+printf '2' > file2
+printf '2' > file2.exp
+
+cp --attributes-only file1 file2 || fail=1
+cmp file2 file2.exp || fail=1
+
+Exit $fail
diff --git a/tests/cp/backup-1 b/tests/cp/backup-1
deleted file mode 100755
index befce00..0000000
--- a/tests/cp/backup-1
+++ /dev/null
@@ -1,58 +0,0 @@
-#!/bin/sh
-# Test cp backup.
-
-# Copyright (C) 1997, 1999, 2002, 2004, 2006 Free Software Foundation, Inc.
-
-# This program is free software; you can redistribute it and/or modify
-# it under the terms of the GNU General Public License as published by
-# the Free Software Foundation; either version 2 of the License, or
-# (at your option) any later version.
-
-# This program is distributed in the hope that it will be useful,
-# but WITHOUT ANY WARRANTY; without even the implied warranty of
-# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
-# GNU General Public License for more details.
-
-# You should have received a copy of the GNU General Public License
-# along with this program; if not, write to the Free Software
-# Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA
-# 02110-1301, USA.
-
-if test "$VERBOSE" = yes; then
- set -x
- cp --version
-fi
-
-pwd=`pwd`
-t0=`echo "$0"|sed 's,.*/,,'`.tmp; tmp=$t0/$$
-trap 'status=$?; cd "$pwd" && rm -rf $t0 && exit $status' 0
-trap '(exit $?); exit' 1 2 13 15
-
-framework_failure=0
-mkdir -p $tmp || framework_failure=1
-cd $tmp || framework_failure=1
-
-if test $framework_failure = 1; then
- echo "$0: failure in testing framework" 1>&2
- (exit 1); exit 1
-fi
-
-suffix=.b
-file=b1.$$
-file_backup="$file$suffix"
-temp_files="$file $file_backup"
-rm -f $temp_files
-
-fail=0
-echo test > $file || fail=1
-
-# Specify both version control and suffix so the environment variables
-# (possibly set by the user running these tests) aren't used.
-cp --force --backup=simple --suffix=$suffix $file $file \
- || fail=1
-
-test -f $file || fail=1
-test -f $file_backup || fail=1
-cmp $file $file_backup > /dev/null || fail=1
-
-(exit $fail); exit $fail
diff --git a/tests/cp/backup-1.sh b/tests/cp/backup-1.sh
new file mode 100755
index 0000000..bffd1a6
--- /dev/null
+++ b/tests/cp/backup-1.sh
@@ -0,0 +1,37 @@
+#!/bin/sh
+# Test cp backup.
+
+# Copyright (C) 1997-2016 Free Software Foundation, Inc.
+
+# This program is free software: you can redistribute it and/or modify
+# it under the terms of the GNU General Public License as published by
+# the Free Software Foundation, either version 3 of the License, or
+# (at your option) any later version.
+
+# This program is distributed in the hope that it will be useful,
+# but WITHOUT ANY WARRANTY; without even the implied warranty of
+# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
+# GNU General Public License for more details.
+
+# You should have received a copy of the GNU General Public License
+# along with this program. If not, see <http://www.gnu.org/licenses/>.
+
+. "${srcdir=.}/tests/init.sh"; path_prepend_ ./src
+print_ver_ cp
+
+suffix=.b
+file=F
+file_backup="$file$suffix"
+
+echo test > $file || fail=1
+
+# Specify both version control and suffix so the environment variables
+# (possibly set by the user running these tests) aren't used.
+cp --force --backup=simple --suffix=$suffix $file $file || fail=1
+cp -T --force --backup=simple --suffix=$suffix $file $file || fail=1
+
+test -f $file || fail=1
+test -f $file_backup || fail=1
+compare $file $file_backup > /dev/null || fail=1
+
+Exit $fail
diff --git a/tests/cp/backup-dir b/tests/cp/backup-dir
deleted file mode 100755
index 9bbae3d..0000000
--- a/tests/cp/backup-dir
+++ /dev/null
@@ -1,52 +0,0 @@
-#!/bin/sh
-# Ensure that cp -b doesn't back up directories.
-
-# Copyright (C) 2006 Free Software Foundation, Inc.
-
-# This program is free software; you can redistribute it and/or modify
-# it under the terms of the GNU General Public License as published by
-# the Free Software Foundation; either version 2 of the License, or
-# (at your option) any later version.
-
-# This program is distributed in the hope that it will be useful,
-# but WITHOUT ANY WARRANTY; without even the implied warranty of
-# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
-# GNU General Public License for more details.
-
-# You should have received a copy of the GNU General Public License
-# along with this program; if not, write to the Free Software
-# Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA
-# 02110-1301, USA.
-
-if test "$VERBOSE" = yes; then
- set -x
- cp --version
-fi
-
-. $srcdir/../envvar-check
-
-pwd=`pwd`
-t0=`echo "$0"|sed 's,.*/,,'`.tmp; tmp=$t0/$$
-trap 'status=$?; cd "$pwd" && chmod -R u+rwx $t0 && rm -rf $t0 && exit $status' 0
-trap '(exit $?); exit $?' 1 2 13 15
-
-framework_failure=0
-mkdir -p $tmp || framework_failure=1
-cd $tmp || framework_failure=1
-mkdir x y || framework_failure=1
-
-if test $framework_failure = 1; then
- echo "$0: failure in testing framework" 1>&2
- (exit 1); exit 1
-fi
-
-fail=0
-
-cp -a x y || fail=1
-
-# This would mistakenly create a backup of y/x (y/x~) in coreutils-6.3.
-cp -ab x y || fail=1
-test -d y/x || fail=1
-test -d y/x~ && fail=1
-
-(exit $fail); exit $fail
diff --git a/tests/cp/backup-dir.sh b/tests/cp/backup-dir.sh
new file mode 100755
index 0000000..7fb0719
--- /dev/null
+++ b/tests/cp/backup-dir.sh
@@ -0,0 +1,32 @@
+#!/bin/sh
+# Ensure that cp -b doesn't back up directories.
+
+# Copyright (C) 2006-2016 Free Software Foundation, Inc.
+
+# This program is free software: you can redistribute it and/or modify
+# it under the terms of the GNU General Public License as published by
+# the Free Software Foundation, either version 3 of the License, or
+# (at your option) any later version.
+
+# This program is distributed in the hope that it will be useful,
+# but WITHOUT ANY WARRANTY; without even the implied warranty of
+# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
+# GNU General Public License for more details.
+
+# You should have received a copy of the GNU General Public License
+# along with this program. If not, see <http://www.gnu.org/licenses/>.
+
+. "${srcdir=.}/tests/init.sh"; path_prepend_ ./src
+print_ver_ cp
+
+mkdir x y || framework_failure_
+
+
+cp -a x y || fail=1
+
+# This would mistakenly create a backup of y/x (y/x~) in coreutils-6.3.
+cp -ab x y || fail=1
+test -d y/x || fail=1
+test -d y/x~ && fail=1
+
+Exit $fail
diff --git a/tests/cp/backup-is-src b/tests/cp/backup-is-src
deleted file mode 100755
index b4f90c8..0000000
--- a/tests/cp/backup-is-src
+++ /dev/null
@@ -1,58 +0,0 @@
-#!/bin/sh
-# Test cp backup to source file.
-
-# Copyright (C) 1998, 1999, 2000, 2002, 2004, 2006 Free Software Foundation,
-# Inc.
-
-# This program is free software; you can redistribute it and/or modify
-# it under the terms of the GNU General Public License as published by
-# the Free Software Foundation; either version 2 of the License, or
-# (at your option) any later version.
-
-# This program is distributed in the hope that it will be useful,
-# but WITHOUT ANY WARRANTY; without even the implied warranty of
-# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
-# GNU General Public License for more details.
-
-# You should have received a copy of the GNU General Public License
-# along with this program; if not, write to the Free Software
-# Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA
-# 02110-1301, USA.
-
-if test "$VERBOSE" = yes; then
- set -x
- cp --version
-fi
-
-. $srcdir/../lang-default
-. $srcdir/../envvar-check
-
-pwd=`pwd`
-t0=`echo "$0"|sed 's,.*/,,'`.tmp; tmp=$t0/$$
-trap 'status=$?; cd "$pwd" && rm -rf $t0 && exit $status' 0
-trap '(exit $?); exit' 1 2 13 15
-
-framework_failure=0
-mkdir -p $tmp || framework_failure=1
-cd $tmp || framework_failure=1
-
-echo a > a || framework_failure=1
-echo a-tilde > a~ || framework_failure=1
-
-if test $framework_failure = 1; then
- echo "$0: failure in testing framework" 1>&2
- (exit 1); exit 1
-fi
-
-# This cp command should exit nonzero.
-cp --b=simple a~ a > out 2>&1 && fail=1
-
-sed "s,cp:,XXX:," out > out2
-
-cat > exp <<\EOF
-XXX: backing up `a' would destroy source; `a~' not copied
-EOF
-
-cmp out2 exp || fail=1
-
-(exit $fail); exit $fail
diff --git a/tests/cp/backup-is-src.sh b/tests/cp/backup-is-src.sh
new file mode 100755
index 0000000..db33eab
--- /dev/null
+++ b/tests/cp/backup-is-src.sh
@@ -0,0 +1,36 @@
+#!/bin/sh
+# Test cp backup to source file.
+
+# Copyright (C) 1998-2016 Free Software Foundation, Inc.
+
+# This program is free software: you can redistribute it and/or modify
+# it under the terms of the GNU General Public License as published by
+# the Free Software Foundation, either version 3 of the License, or
+# (at your option) any later version.
+
+# This program is distributed in the hope that it will be useful,
+# but WITHOUT ANY WARRANTY; without even the implied warranty of
+# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
+# GNU General Public License for more details.
+
+# You should have received a copy of the GNU General Public License
+# along with this program. If not, see <http://www.gnu.org/licenses/>.
+
+. "${srcdir=.}/tests/init.sh"; path_prepend_ ./src
+print_ver_ cp
+
+echo a > a || framework_failure_
+echo a-tilde > a~ || framework_failure_
+
+# This cp command should exit nonzero.
+cp --b=simple a~ a > out 2>&1 && fail=1
+
+sed "s,cp:,XXX:," out > out2
+
+cat > exp <<\EOF
+XXX: backing up 'a' would destroy source; 'a~' not copied
+EOF
+
+compare exp out2 || fail=1
+
+Exit $fail
diff --git a/tests/cp/capability.sh b/tests/cp/capability.sh
new file mode 100755
index 0000000..9090a79
--- /dev/null
+++ b/tests/cp/capability.sh
@@ -0,0 +1,52 @@
+#!/bin/sh
+# Ensure cp --preserves copies capabilities
+
+# Copyright (C) 2010-2016 Free Software Foundation, Inc.
+
+# This program is free software: you can redistribute it and/or modify
+# it under the terms of the GNU General Public License as published by
+# the Free Software Foundation, either version 3 of the License, or
+# (at your option) any later version.
+
+# This program is distributed in the hope that it will be useful,
+# but WITHOUT ANY WARRANTY; without even the implied warranty of
+# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
+# GNU General Public License for more details.
+
+# You should have received a copy of the GNU General Public License
+# along with this program. If not, see <http://www.gnu.org/licenses/>.
+
+. "${srcdir=.}/tests/init.sh"; path_prepend_ ./src
+print_ver_ cp
+require_root_
+working_umask_or_skip_
+
+
+grep '^#define HAVE_CAP 1' $CONFIG_HEADER > /dev/null \
+ || skip_ "configured without libcap support"
+
+(setcap --help) 2>&1 |grep 'usage: setcap' > /dev/null \
+ || skip_ "setcap utility not found"
+(getcap --help) 2>&1 |grep 'usage: getcap' > /dev/null \
+ || skip_ "getcap utility not found"
+
+
+touch file || framework_failure_
+chown $NON_ROOT_USERNAME file || framework_failure_
+
+setcap 'cap_net_bind_service=ep' file ||
+ skip_ "setcap doesn't work"
+getcap file | grep cap_net_bind_service >/dev/null ||
+ skip_ "getcap doesn't work"
+
+cp --preserve=xattr file copy1 || fail=1
+
+# Before coreutils 8.5 the capabilities would not be preserved,
+# as the owner was set _after_ copying xattrs, thus clearing any capabilities.
+cp --preserve=all file copy2 || fail=1
+
+for file in copy1 copy2; do
+ getcap $file | grep cap_net_bind_service >/dev/null || fail=1
+done
+
+Exit $fail
diff --git a/tests/cp/cp-HL b/tests/cp/cp-HL
deleted file mode 100755
index 2d5fff2..0000000
--- a/tests/cp/cp-HL
+++ /dev/null
@@ -1,61 +0,0 @@
-#!/bin/sh
-# test cp's -H and -L options
-
-# Copyright (C) 2000, 2002, 2004, 2006 Free Software Foundation, Inc.
-
-# This program is free software; you can redistribute it and/or modify
-# it under the terms of the GNU General Public License as published by
-# the Free Software Foundation; either version 2 of the License, or
-# (at your option) any later version.
-
-# This program is distributed in the hope that it will be useful,
-# but WITHOUT ANY WARRANTY; without even the implied warranty of
-# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
-# GNU General Public License for more details.
-
-# You should have received a copy of the GNU General Public License
-# along with this program; if not, write to the Free Software
-# Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA
-# 02110-1301, USA.
-
-if test "$VERBOSE" = yes; then
- set -x
- cp --version
-fi
-
-. $srcdir/../envvar-check
-
-pwd=`pwd`
-t0=`echo "$0"|sed 's,.*/,,'`.tmp;tmp=$t0/$$
-trap 'status=$?; cd "$pwd" && rm -rf $t0 && exit $status' 0
-trap 'exit $?' 1 2 13 15
-
-framework_failure=0
-mkdir -p $tmp || framework_failure=1
-cd $tmp || framework_failure=1
-
-mkdir src-dir dest-dir || framework_failure=1
-echo f > f || framework_failure=1
-ln -s f slink || framework_failure=1
-ln -s no-such-file src-dir/slink || framework_failure=1
-
-if test $framework_failure = 1; then
- echo 'failure in testing framework'
- exit 1
-fi
-
-fail=0
-
-cp -H -R slink src-dir dest-dir || fail=1
-test -d src-dir || fail=1
-test -d dest-dir/src-dir || fail=1
-
-# Expect this to succeed since this slink is not a symlink
-cat dest-dir/slink > /dev/null 2>&1 || fail=1
-
-# Expect this to fail since *this* slink is a dangling symlink.
-cat dest-dir/src-dir/slink > /dev/null 2>&1 && fail=1
-
-# FIXME: test -L, too.
-
-(exit $fail); exit $fail
diff --git a/tests/cp/cp-HL.sh b/tests/cp/cp-HL.sh
new file mode 100755
index 0000000..b4cf15a
--- /dev/null
+++ b/tests/cp/cp-HL.sh
@@ -0,0 +1,40 @@
+#!/bin/sh
+# test cp's -H and -L options
+
+# Copyright (C) 2000-2016 Free Software Foundation, Inc.
+
+# This program is free software: you can redistribute it and/or modify
+# it under the terms of the GNU General Public License as published by
+# the Free Software Foundation, either version 3 of the License, or
+# (at your option) any later version.
+
+# This program is distributed in the hope that it will be useful,
+# but WITHOUT ANY WARRANTY; without even the implied warranty of
+# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
+# GNU General Public License for more details.
+
+# You should have received a copy of the GNU General Public License
+# along with this program. If not, see <http://www.gnu.org/licenses/>.
+
+. "${srcdir=.}/tests/init.sh"; path_prepend_ ./src
+print_ver_ cp
+
+mkdir src-dir dest-dir || framework_failure_
+echo f > f || framework_failure_
+ln -s f slink || framework_failure_
+ln -s no-such-file src-dir/slink || framework_failure_
+
+
+cp -H -R slink src-dir dest-dir || fail=1
+test -d src-dir || fail=1
+test -d dest-dir/src-dir || fail=1
+
+# Expect this to succeed since this slink is not a symlink
+cat dest-dir/slink > /dev/null 2>&1 || fail=1
+
+# Expect this to fail since *this* slink is a dangling symlink.
+returns_ 1 cat dest-dir/src-dir/slink >/dev/null 2>&1 || fail=1
+
+# FIXME: test -L, too.
+
+Exit $fail
diff --git a/tests/cp/cp-a-selinux.sh b/tests/cp/cp-a-selinux.sh
new file mode 100755
index 0000000..89735b6
--- /dev/null
+++ b/tests/cp/cp-a-selinux.sh
@@ -0,0 +1,209 @@
+#!/bin/sh
+# Ensure that cp -Z, -a and cp --preserve=context work properly.
+# In particular, test on a writable NFS partition.
+# Check also locally if --preserve=context, -a and --preserve=all
+# does work
+
+# Copyright (C) 2007-2016 Free Software Foundation, Inc.
+
+# This program is free software: you can redistribute it and/or modify
+# it under the terms of the GNU General Public License as published by
+# the Free Software Foundation, either version 3 of the License, or
+# (at your option) any later version.
+
+# This program is distributed in the hope that it will be useful,
+# but WITHOUT ANY WARRANTY; without even the implied warranty of
+# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
+# GNU General Public License for more details.
+
+# You should have received a copy of the GNU General Public License
+# along with this program. If not, see <http://www.gnu.org/licenses/>.
+
+. "${srcdir=.}/tests/init.sh"; path_prepend_ ./src
+print_ver_ cp
+require_root_
+require_selinux_
+
+cwd=$(pwd)
+cleanup_() { cd /; umount "$cwd/mnt"; }
+
+# This context is special: it works even when mcstransd isn't running.
+ctx=root:object_r:tmp_t:s0
+
+# Check basic functionality - before check on fixed context mount
+touch c || framework_failure_
+chcon $ctx c || framework_failure_
+cp -a c d 2>err || framework_failure_
+cp --preserve=context c e || framework_failure_
+cp --preserve=all c f || framework_failure_
+ls -Z d | grep $ctx || fail=1
+# there must be no stderr output for -a
+compare /dev/null err || fail=1
+ls -Z e | grep $ctx || fail=1
+ls -Z f | grep $ctx || fail=1
+rm -f f
+
+# Check handling of existing dirs which requires specific handling
+# due to recursion, and was handled incorrectly in coreutils-8.22
+# Note standard permissions are updated for existing directories
+# in the destination, so SELinux contexts should be updated too.
+chmod o+rw restore/existing_dir
+mkdir -p backup/existing_dir/ || framework_failure_
+ls -Zd backup/existing_dir > ed_ctx || fail=1
+grep $ctx ed_ctx && framework_failure_
+touch backup/existing_dir/file || framework_failure_
+chcon $ctx backup/existing_dir/file || framework_failure_
+# Set the dir context to ensure it is reset
+mkdir -p --context="$ctx" restore/existing_dir || framework_failure_
+# Copy and ensure existing directories updated
+cp -a backup/. restore/
+ls -Zd restore/existing_dir > ed_ctx || fail=1
+grep $ctx ed_ctx &&
+ { ls -lZd restore/existing_dir; fail=1; }
+
+# Check restorecon (-Z) functionality for file and directory
+get_selinux_type() { ls -Zd "$1" | sed -n 's/.*:\(.*_t\):.*/\1/p'; }
+# Also make a dir with our known context
+mkdir c_d || framework_failure_
+chcon $ctx c_d || framework_failure_
+# Get the type of this known context for file and dir for tracing
+old_type_f=$(get_selinux_type c)
+old_type_d=$(get_selinux_type c_d)
+# Setup copies for manipulation with restorecon
+# and get the adjusted type for comparison
+cp -a c Z1 || fail=1
+cp -a c_d Z1_d || fail=1
+if restorecon Z1 Z1_d 2>restorecon.err \
+ && compare /dev/null restorecon.err; then
+ new_type_f=$(get_selinux_type Z1)
+ new_type_d=$(get_selinux_type Z1_d)
+
+ # Ensure -Z sets the type like restorecon does
+ cp -Z c Z2 || fail=1
+ cpZ_type_f=$(get_selinux_type Z2)
+ test "$cpZ_type_f" = "$new_type_f" || fail=1
+
+ # Ensure -Z overrides -a and that dirs are handled too
+ cp -aZ c Z3 || fail=1
+ cp -aZ c_d Z3_d || fail=1
+ cpaZ_type_f=$(get_selinux_type Z3)
+ cpaZ_type_d=$(get_selinux_type Z3_d)
+ test "$cpaZ_type_f" = "$new_type_f" || fail=1
+ test "$cpaZ_type_d" = "$new_type_d" || fail=1
+
+ # Ensure -Z sets the type for existing files
+ mkdir -p existing/c_d || framework_failure_
+ touch existing/c || framework_failure_
+ cp -aZ c c_d existing || fail=1
+ cpaZ_type_f=$(get_selinux_type existing/c)
+ cpaZ_type_d=$(get_selinux_type existing/c_d)
+ test "$cpaZ_type_f" = "$new_type_f" || fail=1
+ test "$cpaZ_type_d" = "$new_type_d" || fail=1
+fi
+
+skip=0
+# Create a file system, then mount it with the context=... option.
+dd if=/dev/zero of=blob bs=8192 count=200 || skip=1
+mkdir mnt || skip=1
+mkfs -t ext2 -F blob ||
+ skip_ "failed to create an ext2 file system"
+
+mount -oloop,context=$ctx blob mnt || skip=1
+test $skip = 1 \
+ && skip_ "insufficient mount/ext2 support"
+
+cd mnt || framework_failure_
+
+# Create files with hopefully different contexts
+echo > ../f || framework_failure_
+echo > g || framework_failure_
+test "$(stat -c%C ../f)" = "$(stat -c%C g)" &&
+ skip_ "files on separate file systems have the same security context"
+
+# /bin/cp from coreutils-6.7-3.fc7 would fail this test by letting cp
+# succeed (giving no diagnostics), yet leaving the destination file empty.
+cp -a ../f g 2>err || fail=1
+test -s g || fail=1 # The destination file must not be empty.
+compare /dev/null err || fail=1
+
+# =====================================================
+# Here, we expect cp to succeed and not warn with "Operation not supported"
+rm -f g
+echo > g
+cp --preserve=all ../f g 2>err || fail=1
+test -s g || fail=1
+grep "Operation not supported" err && fail=1
+
+# =====================================================
+# The same as above except destination does not exist
+rm -f g
+cp --preserve=all ../f g 2>err || fail=1
+test -s g || fail=1
+grep "Operation not supported" err && fail=1
+
+# An alternative to the following approach would be to run in a confined
+# domain (maybe creating/loading it) that lacks the required permissions
+# to the file type.
+# Note: this test could also be run by a regular (non-root) user in an
+# NFS mounted directory. When doing that, I get this diagnostic:
+# cp: failed to set the security context of 'g' to 'system_u:object_r:nfs_t': \
+# Operation not supported
+cat <<\EOF > exp || framework_failure_
+cp: failed to set the security context of
+EOF
+
+rm -f g
+echo > g
+# =====================================================
+# Here, we expect cp to fail, because it cannot set the SELinux
+# security context through NFS or a mount with fixed context.
+cp --preserve=context ../f g 2> out && fail=1
+# Here, we *do* expect the destination to be empty.
+compare /dev/null g || fail=1
+sed "s/ .g'.*//" out > k
+mv k out
+compare exp out || fail=1
+
+rm -f g
+echo > g
+# Check if -a option doesn't silence --preserve=context option diagnostics
+cp -a --preserve=context ../f g 2> out2 && fail=1
+# Here, we *do* expect the destination to be empty.
+compare /dev/null g || fail=1
+sed "s/ .g'.*//" out2 > k
+mv k out2
+compare exp out2 || fail=1
+
+for no_g_cmd in '' 'rm -f g'; do
+ # restorecon equivalent. Note even though the context
+ # returned from matchpathcon() will not match $ctx
+ # the resulting ENOTSUP warning will be suppressed.
+
+ # With absolute path
+ $no_g_cmd
+ cp -Z ../f $(realpath g) || fail=1
+ # With relative path
+ $no_g_cmd
+ cp -Z ../f g || fail=1
+ # -Z overrides -a
+ $no_g_cmd
+ cp -Z -a ../f g || fail=1
+ # -Z doesn't take an arg
+ $no_g_cmd
+ returns_ 1 cp -Z "$ctx" ../f g || fail=1
+
+ # Explicit context
+ $no_g_cmd
+ # Explicitly defaulting to the global $ctx should work
+ cp --context="$ctx" ../f g || fail=1
+ # --context overrides -a
+ $no_g_cmd
+ cp -a --context="$ctx" ../f g || fail=1
+done
+
+# Mutually exclusive options
+returns_ 1 cp -Z --preserve=context ../f g || fail=1
+returns_ 1 cp --preserve=context -Z ../f g || fail=1
+returns_ 1 cp --preserve=context --context="$ctx" ../f g || fail=1
+
+Exit $fail
diff --git a/tests/cp/cp-deref b/tests/cp/cp-deref
deleted file mode 100755
index d90139d..0000000
--- a/tests/cp/cp-deref
+++ /dev/null
@@ -1,52 +0,0 @@
-#!/bin/sh
-# cp -RL dir1 dir2' must handle the case in which each of dir1 and dir2
-# contain a symlink pointing to some third directory.
-
-# Copyright (C) 2006 Free Software Foundation, Inc.
-
-# This program is free software; you can redistribute it and/or modify
-# it under the terms of the GNU General Public License as published by
-# the Free Software Foundation; either version 2 of the License, or
-# (at your option) any later version.
-
-# This program is distributed in the hope that it will be useful,
-# but WITHOUT ANY WARRANTY; without even the implied warranty of
-# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
-# GNU General Public License for more details.
-
-# You should have received a copy of the GNU General Public License
-# along with this program; if not, write to the Free Software
-# Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA
-# 02110-1301, USA.
-
-if test "$VERBOSE" = yes; then
- set -x
- cp --version
-fi
-
-pwd=`pwd`
-t0=`echo "$0"|sed 's,.*/,,'`.tmp; tmp=$t0/$$
-trap 'status=$?; cd "$pwd" && chmod -R u+rwx $t0 && rm -rf $t0 && exit $status' 0
-trap '(exit $?); exit $?' 1 2 13 15
-
-framework_failure=0
-mkdir -p $tmp || framework_failure=1
-cd $tmp || framework_failure=1
-mkdir a b c d || framework_failure=1
-ln -s ../c a || framework_failure=1
-ln -s ../c b || framework_failure=1
-
-if test $framework_failure = 1; then
- echo "$0: failure in testing framework" 1>&2
- (exit 1); exit 1
-fi
-
-fail=0
-
-# Before coreutils-5.94, the following would fail with this message:
-# cp: will not create hard link `d/b/c' to directory `d/a/c'
-cp -RL a b d || fail=1
-test -d a/c || fail=1
-test -d b/c || fail=1
-
-(exit $fail); exit $fail
diff --git a/tests/cp/cp-deref.sh b/tests/cp/cp-deref.sh
new file mode 100755
index 0000000..6341a8f
--- /dev/null
+++ b/tests/cp/cp-deref.sh
@@ -0,0 +1,34 @@
+#!/bin/sh
+# cp -RL dir1 dir2' must handle the case in which each of dir1 and dir2
+# contain a symlink pointing to some third directory.
+
+# Copyright (C) 2006-2016 Free Software Foundation, Inc.
+
+# This program is free software: you can redistribute it and/or modify
+# it under the terms of the GNU General Public License as published by
+# the Free Software Foundation, either version 3 of the License, or
+# (at your option) any later version.
+
+# This program is distributed in the hope that it will be useful,
+# but WITHOUT ANY WARRANTY; without even the implied warranty of
+# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
+# GNU General Public License for more details.
+
+# You should have received a copy of the GNU General Public License
+# along with this program. If not, see <http://www.gnu.org/licenses/>.
+
+. "${srcdir=.}/tests/init.sh"; path_prepend_ ./src
+print_ver_ cp
+
+mkdir a b c d || framework_failure_
+ln -s ../c a || framework_failure_
+ln -s ../c b || framework_failure_
+
+
+# Before coreutils-5.94, the following would fail with this message:
+# cp: will not create hard link 'd/b/c' to directory 'd/a/c'
+cp -RL a b d || fail=1
+test -d a/c || fail=1
+test -d b/c || fail=1
+
+Exit $fail
diff --git a/tests/cp/cp-i b/tests/cp/cp-i
deleted file mode 100755
index 896b051..0000000
--- a/tests/cp/cp-i
+++ /dev/null
@@ -1,51 +0,0 @@
-#!/bin/sh
-# Test whether cp -i prompts in the right place.
-
-# Copyright (C) 2006 Free Software Foundation, Inc.
-
-# This program is free software; you can redistribute it and/or modify
-# it under the terms of the GNU General Public License as published by
-# the Free Software Foundation; either version 2 of the License, or
-# (at your option) any later version.
-
-# This program is distributed in the hope that it will be useful,
-# but WITHOUT ANY WARRANTY; without even the implied warranty of
-# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
-# GNU General Public License for more details.
-
-# You should have received a copy of the GNU General Public License
-# along with this program; if not, write to the Free Software
-# Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA
-# 02110-1301, USA.
-
-if test "$VERBOSE" = yes; then
- set -x
- cp --version
-fi
-
-. $srcdir/../envvar-check
-. $srcdir/../lang-default
-
-pwd=`pwd`
-t0=`echo "$0"|sed 's,.*/,,'`.tmp; tmp=$t0/$$
-trap 'status=$?; cd "$pwd" && chmod -R u+rwx $t0 && rm -rf $t0 && exit $status' 0
-trap '(exit $?); exit $?' 1 2 13 15
-
-framework_failure=0
-mkdir -p $tmp || framework_failure=1
-cd $tmp || framework_failure=1
-
-mkdir -p a b/a/c || framework_failure=1
-touch a/c || framework_failure=1
-
-if test $framework_failure = 1; then
- echo "$0: failure in testing framework" 1>&2
- (exit 1); exit 1
-fi
-
-fail=0
-
-# coreutils 6.2 cp would neglect to prompt in this case.
-echo n | cp -iR a b 2>/dev/null || fail=1
-
-(exit $fail); exit $fail
diff --git a/tests/cp/cp-i.sh b/tests/cp/cp-i.sh
new file mode 100755
index 0000000..310e103
--- /dev/null
+++ b/tests/cp/cp-i.sh
@@ -0,0 +1,65 @@
+#!/bin/sh
+# Test whether cp -i prompts in the right place.
+
+# Copyright (C) 2006-2016 Free Software Foundation, Inc.
+
+# This program is free software: you can redistribute it and/or modify
+# it under the terms of the GNU General Public License as published by
+# the Free Software Foundation, either version 3 of the License, or
+# (at your option) any later version.
+
+# This program is distributed in the hope that it will be useful,
+# but WITHOUT ANY WARRANTY; without even the implied warranty of
+# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
+# GNU General Public License for more details.
+
+# You should have received a copy of the GNU General Public License
+# along with this program. If not, see <http://www.gnu.org/licenses/>.
+
+. "${srcdir=.}/tests/init.sh"; path_prepend_ ./src
+print_ver_ cp
+
+mkdir -p a b/a/c || framework_failure_
+touch a/c || framework_failure_
+
+
+# coreutils 6.2 cp would neglect to prompt in this case.
+echo n | cp -iR a b 2>/dev/null || fail=1
+
+# test miscellaneous combinations of -f -i -n parameters
+touch c d || framework_failure_
+echo "'c' -> 'd'" > out_copy
+> out_empty
+
+# ask for overwrite, answer no
+echo n | cp -vi c d 2>/dev/null > out1 || fail=1
+compare out1 out_empty || fail=1
+
+# ask for overwrite, answer yes
+echo y | cp -vi c d 2>/dev/null > out2 || fail=1
+compare out2 out_copy || fail=1
+
+# -i wins over -n
+echo y | cp -vni c d 2>/dev/null > out3 || fail=1
+compare out3 out_copy || fail=1
+
+# -n wins over -i
+echo y | cp -vin c d 2>/dev/null > out4 || fail=1
+compare out4 out_empty || fail=1
+
+# ask for overwrite, answer yes
+echo y | cp -vfi c d 2>/dev/null > out5 || fail=1
+compare out5 out_copy || fail=1
+
+# do not ask, prevent from overwrite
+echo n | cp -vfn c d 2>/dev/null > out6 || fail=1
+compare out6 out_empty || fail=1
+
+# do not ask, prevent from overwrite
+echo n | cp -vnf c d 2>/dev/null > out7 || fail=1
+compare out7 out_empty || fail=1
+
+# options --backup and --no-clobber are mutually exclusive
+returns_ 1 cp -bn c d 2>/dev/null || fail=1
+
+Exit $fail
diff --git a/tests/cp/cp-mv-backup b/tests/cp/cp-mv-backup
deleted file mode 100755
index cfbee41..0000000
--- a/tests/cp/cp-mv-backup
+++ /dev/null
@@ -1,117 +0,0 @@
-#!/bin/sh
-# Test basic --backup functionality for both cp and mv.
-
-# Copyright (C) 1999, 2000, 2002, 2004, 2006 Free Software Foundation, Inc.
-
-# This program is free software; you can redistribute it and/or modify
-# it under the terms of the GNU General Public License as published by
-# the Free Software Foundation; either version 2 of the License, or
-# (at your option) any later version.
-
-# This program is distributed in the hope that it will be useful,
-# but WITHOUT ANY WARRANTY; without even the implied warranty of
-# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
-# GNU General Public License for more details.
-
-# You should have received a copy of the GNU General Public License
-# along with this program; if not, write to the Free Software
-# Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA
-# 02110-1301, USA.
-
-if test "$VERBOSE" = yes; then
- set -x
- cp --version
-fi
-
-# Ensure that ls sorts the same way for everyone.
-. $srcdir/../lang-default
-
-. $srcdir/../envvar-check
-
-umask 022
-
-# Be careful to close $actual before removing the containing directory.
-# Use `1>&2' rather than `1<&-' since the latter appears not to work
-# with /bin/sh from powerpc-ibm-aix4.2.0.0.
-
-pwd=`pwd`
-t0=`echo "$0"|sed 's,.*/,,'`.tmp; tmp=$t0/$$
-trap 'status=$?; cd "$pwd" && exec 1>&2; rm -rf $t0 && exit $status' 0
-trap '(exit $?); exit' 1 2 13 15
-
-framework_failure=0
-mkdir -p $tmp || framework_failure=1
-cd $tmp || framework_failure=1
-
-if test $framework_failure = 1; then
- echo "$0: failure in testing framework" 1>&2
- (exit 1); exit 1
-fi
-
-actual=actual
-expected=expected
-
-exec 1> $actual
-
-fail=0
-for prog in cp mv; do
- for initial_files in 'x' 'x y' 'x y y~' 'x y y.~1~' 'x y y~ y.~1~'; do
- for opt in none off numbered t existing nil simple never; do
- touch $initial_files
- $prog --backup=$opt x y || fail=1
- echo $initial_files $opt: `ls [xy]*`; rm -f x y y~ y.~?~
- done
- done
-done
-
-cat <<\EOF > $expected-tmp
-x none: x y
-x off: x y
-x numbered: x y
-x t: x y
-x existing: x y
-x nil: x y
-x simple: x y
-x never: x y
-x y none: x y
-x y off: x y
-x y numbered: x y y.~1~
-x y t: x y y.~1~
-x y existing: x y y~
-x y nil: x y y~
-x y simple: x y y~
-x y never: x y y~
-x y y~ none: x y y~
-x y y~ off: x y y~
-x y y~ numbered: x y y.~1~ y~
-x y y~ t: x y y.~1~ y~
-x y y~ existing: x y y~
-x y y~ nil: x y y~
-x y y~ simple: x y y~
-x y y~ never: x y y~
-x y y.~1~ none: x y y.~1~
-x y y.~1~ off: x y y.~1~
-x y y.~1~ numbered: x y y.~1~ y.~2~
-x y y.~1~ t: x y y.~1~ y.~2~
-x y y.~1~ existing: x y y.~1~ y.~2~
-x y y.~1~ nil: x y y.~1~ y.~2~
-x y y.~1~ simple: x y y.~1~ y~
-x y y.~1~ never: x y y.~1~ y~
-x y y~ y.~1~ none: x y y.~1~ y~
-x y y~ y.~1~ off: x y y.~1~ y~
-x y y~ y.~1~ numbered: x y y.~1~ y.~2~ y~
-x y y~ y.~1~ t: x y y.~1~ y.~2~ y~
-x y y~ y.~1~ existing: x y y.~1~ y.~2~ y~
-x y y~ y.~1~ nil: x y y.~1~ y.~2~ y~
-x y y~ y.~1~ simple: x y y.~1~ y~
-x y y~ y.~1~ never: x y y.~1~ y~
-EOF
-
-sed 's/: x/:/' $expected-tmp |cat $expected-tmp - > $expected
-
-cmp $expected $actual || fail=1
-
-# Uncomment this if you see a failure and want to try to diagnose it.
-test $fail = 1 && diff -c $expected $actual 1>&2
-
-(exit $fail); exit $fail
diff --git a/tests/cp/cp-mv-backup.sh b/tests/cp/cp-mv-backup.sh
new file mode 100755
index 0000000..f76484e
--- /dev/null
+++ b/tests/cp/cp-mv-backup.sh
@@ -0,0 +1,92 @@
+#!/bin/sh
+# Test basic --backup functionality for both cp and mv.
+
+# Copyright (C) 1999-2016 Free Software Foundation, Inc.
+
+# This program is free software: you can redistribute it and/or modify
+# it under the terms of the GNU General Public License as published by
+# the Free Software Foundation, either version 3 of the License, or
+# (at your option) any later version.
+
+# This program is distributed in the hope that it will be useful,
+# but WITHOUT ANY WARRANTY; without even the implied warranty of
+# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
+# GNU General Public License for more details.
+
+# You should have received a copy of the GNU General Public License
+# along with this program. If not, see <http://www.gnu.org/licenses/>.
+
+. "${srcdir=.}/tests/init.sh"; path_prepend_ ./src
+print_ver_ cp
+
+umask 022
+
+# Be careful to close $actual before removing the containing directory.
+# Use '1>&2' rather than '1<&-' since the latter appears not to work
+# with /bin/sh from powerpc-ibm-aix4.2.0.0.
+
+actual=actual
+expected=expected
+
+exec 3>&1 1> $actual
+
+for prog in cp mv; do
+ for initial_files in 'x' 'x y' 'x y y~' 'x y y.~1~' 'x y y~ y.~1~'; do
+ for opt in none off numbered t existing nil simple never; do
+ touch $initial_files
+ $prog --backup=$opt x y || fail=1
+ echo $initial_files $opt: $(ls [xy]*); rm -f x y y~ y.~?~
+ done
+ done
+done
+
+cat <<\EOF > $expected-tmp
+x none: x y
+x off: x y
+x numbered: x y
+x t: x y
+x existing: x y
+x nil: x y
+x simple: x y
+x never: x y
+x y none: x y
+x y off: x y
+x y numbered: x y y.~1~
+x y t: x y y.~1~
+x y existing: x y y~
+x y nil: x y y~
+x y simple: x y y~
+x y never: x y y~
+x y y~ none: x y y~
+x y y~ off: x y y~
+x y y~ numbered: x y y.~1~ y~
+x y y~ t: x y y.~1~ y~
+x y y~ existing: x y y~
+x y y~ nil: x y y~
+x y y~ simple: x y y~
+x y y~ never: x y y~
+x y y.~1~ none: x y y.~1~
+x y y.~1~ off: x y y.~1~
+x y y.~1~ numbered: x y y.~1~ y.~2~
+x y y.~1~ t: x y y.~1~ y.~2~
+x y y.~1~ existing: x y y.~1~ y.~2~
+x y y.~1~ nil: x y y.~1~ y.~2~
+x y y.~1~ simple: x y y.~1~ y~
+x y y.~1~ never: x y y.~1~ y~
+x y y~ y.~1~ none: x y y.~1~ y~
+x y y~ y.~1~ off: x y y.~1~ y~
+x y y~ y.~1~ numbered: x y y.~1~ y.~2~ y~
+x y y~ y.~1~ t: x y y.~1~ y.~2~ y~
+x y y~ y.~1~ existing: x y y.~1~ y.~2~ y~
+x y y~ y.~1~ nil: x y y.~1~ y.~2~ y~
+x y y~ y.~1~ simple: x y y.~1~ y~
+x y y~ y.~1~ never: x y y.~1~ y~
+EOF
+
+sed 's/: x/:/' $expected-tmp |cat $expected-tmp - > $expected
+
+exec 1>&3 3>&-
+
+compare $expected $actual || fail=1
+
+Exit $fail
diff --git a/tests/cp/cp-mv-enotsup-xattr.sh b/tests/cp/cp-mv-enotsup-xattr.sh
new file mode 100755
index 0000000..2c3df47
--- /dev/null
+++ b/tests/cp/cp-mv-enotsup-xattr.sh
@@ -0,0 +1,132 @@
+#!/bin/sh
+# Ensure that mv, cp -a and cp --preserve=xattr(all) options do work
+# as expected on file systems without their support and do show correct
+# diagnostics when required
+
+# Copyright (C) 2009-2016 Free Software Foundation, Inc.
+
+# This program is free software: you can redistribute it and/or modify
+# it under the terms of the GNU General Public License as published by
+# the Free Software Foundation, either version 3 of the License, or
+# (at your option) any later version.
+
+# This program is distributed in the hope that it will be useful,
+# but WITHOUT ANY WARRANTY; without even the implied warranty of
+# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
+# GNU General Public License for more details.
+
+# You should have received a copy of the GNU General Public License
+# along with this program. If not, see <http://www.gnu.org/licenses/>.
+
+. "${srcdir=.}/tests/init.sh"; path_prepend_ ./src
+print_ver_ cp mv
+
+require_root_
+
+cwd=$(pwd)
+cleanup_() { cd /; umount "$cwd/noxattr"; umount "$cwd/xattr"; }
+
+skip=0
+
+# Mount an ext2 loopback file system at $WHERE with $OPTS
+make_fs() {
+ where="$1"
+ opts="$2"
+
+ fs="$where.bin"
+
+ dd if=/dev/zero of="$fs" bs=8192 count=200 > /dev/null 2>&1 \
+ || skip=1
+ mkdir "$where" || skip=1
+ mkfs -t ext2 -F "$fs" ||
+ skip_ "failed to create ext2 file system"
+ mount -oloop,$opts "$fs" "$where" || skip=1
+ echo test > "$where"/f || skip=1
+ test -s "$where"/f || skip=1
+
+ test $skip = 1 &&
+ skip_ "insufficient mount/ext2 support"
+}
+
+make_fs noxattr nouser_xattr
+make_fs xattr user_xattr
+
+# testing xattr name-value pair
+xattr_name="user.foo"
+xattr_value="bar"
+xattr_pair="$xattr_name=\"$xattr_value\""
+
+echo test > xattr/a || framework_failure_
+getfattr -d xattr/a >out_a || skip_ "failed to get xattr of file"
+grep -F "$xattr_pair" out_a >/dev/null && framework_failure_
+setfattr -n "$xattr_name" -v "$xattr_value" xattr/a >out_a \
+ || skip_ "failed to set xattr of file"
+getfattr -d xattr/a >out_a || skip_ "failed to get xattr of file"
+grep -F "$xattr_pair" out_a >/dev/null \
+ || skip_ "failed to set xattr of file"
+
+
+# This should pass without diagnostics
+cp -a xattr/a noxattr/ 2>err || fail=1
+test -s noxattr/a || fail=1 # destination file must not be empty
+compare /dev/null err || fail=1
+
+rm -f err noxattr/a
+
+# This should pass without diagnostics (new file)
+cp --preserve=all xattr/a noxattr/ 2>err || fail=1
+test -s noxattr/a || fail=1 # destination file must not be empty
+compare /dev/null err || fail=1
+
+# This should pass without diagnostics (existing file)
+cp --preserve=all xattr/a noxattr/ 2>err || fail=1
+test -s noxattr/a || fail=1 # destination file must not be empty
+compare /dev/null err || fail=1
+
+rm -f err noxattr/a
+
+# This should fail with corresponding diagnostics
+cp -a --preserve=xattr xattr/a noxattr/ 2>err && fail=1
+if grep '^#define USE_XATTR 1' $CONFIG_HEADER > /dev/null; then
+cat <<\EOF > exp
+cp: setting attributes for 'noxattr/a': Operation not supported
+EOF
+else
+cat <<\EOF > exp
+cp: cannot preserve extended attributes, cp is built without xattr support
+EOF
+fi
+
+compare exp err || fail=1
+
+rm -f err noxattr/a
+
+# This should pass without diagnostics
+mv xattr/a noxattr/ 2>err || fail=1
+test -s noxattr/a || fail=1 # destination file must not be empty
+compare /dev/null err || fail=1
+
+# This should pass and copy xattrs of the symlink
+# since the xattrs used here are not in the 'user.' namespace.
+# Up to and including coreutils-8.22 xattrs of symlinks
+# were not copied across file systems.
+ln -s 'foo' xattr/symlink || framework_failure_
+# Note 'user.' namespace is only supported on regular files/dirs
+# so use the 'trusted.' namespace here
+txattr='trusted.overlay.whiteout'
+if setfattr -hn "$txattr" -v y xattr/symlink; then
+ # Note only root can read the 'trusted.' namespace
+ if getfattr -h -m- -d xattr/symlink | grep -F "$txattr"; then
+ mv xattr/symlink noxattr/ 2>err || fail=1
+ if grep '^#define USE_XATTR 1' $CONFIG_HEADER > /dev/null; then
+ getfattr -h -m- -d noxattr/symlink | grep -F "$txattr" || fail=1
+ fi
+ compare /dev/null err || fail=1
+ else
+ echo "failed to get '$txattr' xattr. skipping symlink check" >&2
+ fi
+else
+ echo "failed to set '$txattr' xattr. skipping symlink check" >&2
+fi
+
+Exit $fail
diff --git a/tests/cp/cp-parents b/tests/cp/cp-parents
deleted file mode 100755
index 6c123d2..0000000
--- a/tests/cp/cp-parents
+++ /dev/null
@@ -1,82 +0,0 @@
-#!/bin/sh
-# cp -R --parents dir-specified-with-trailing-slash/ other-dir
-# would get a failed assertion.
-
-# Copyright (C) 2000, 2002, 2004, 2005, 2006, 2007 Free Software
-# Foundation, Inc.
-
-# This program is free software; you can redistribute it and/or modify
-# it under the terms of the GNU General Public License as published by
-# the Free Software Foundation; either version 2 of the License, or
-# (at your option) any later version.
-
-# This program is distributed in the hope that it will be useful,
-# but WITHOUT ANY WARRANTY; without even the implied warranty of
-# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
-# GNU General Public License for more details.
-
-# You should have received a copy of the GNU General Public License
-# along with this program; if not, write to the Free Software
-# Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA
-# 02110-1301, USA.
-
-if test "$VERBOSE" = yes; then
- set -x
- mv --version
-fi
-
-umask 022
-
-pwd=`pwd`
-t0=`echo "$0"|sed 's,.*/,,'`.tmp;tmp=$t0/$$
-trap 'status=$?; cd "$pwd" && exec 1>&2; rm -rf $t0 && exit $status' 0
-trap '(exit $?); exit' 1 2 13 15
-
-framework_failure=0
-
-# Record absolute path of srcdir and cd back to current dir.
-cd $srcdir || framework_failure=1
-abs_srcdir=`pwd`
-cd "$pwd" || framework_failure=1
-
-. $srcdir/../envvar-check
-. $srcdir/../umask-check
-
-mkdir -p $tmp || framework_failure=1
-cd $tmp || framework_failure=1
-
-. "$abs_srcdir/../setgid-check"
-
-mkdir foo bar || framework_failure=1
-mkdir -p a/b/c d e || framework_failure=1
-touch f || framework_failure=1
-
-if test $framework_failure = 1; then
- echo 'failure in testing framework'
- exit 1
-fi
-
-fail=0
-
-# With 4.0.37 and earlier (back to when?), this would fail
-# with the failed assertion from dirname.c.
-cp -R --parents foo/ bar || fail=1
-
-# Exercise the make_path and re_protect code in cp.c.
-# FIXME: compare verbose output with expected output.
-cp --verbose -a --parents a/b/c d > /dev/null 2>&1 || fail=1
-test -d d/a/b/c || fail=1
-
-# With 6.7 and earlier, cp --parents f/g d would mistakenly create a
-# directory d/f, even though f is a regular file.
-cp --parents f/g d 2>/dev/null && fail=1
-test -d d/f && fail=1
-
-# Check that re_protect works.
-chmod go=w d/a
-cp -a --parents d/a/b/c e || fail=1
-p=`ls -ld e/d|sed 's/ .*//'`; case $p in drwxr-xr-x);; *) fail=1;; esac
-p=`ls -ld e/d/a|sed 's/ .*//'`; case $p in drwx-w--w-);; *) fail=1;; esac
-p=`ls -ld e/d/a/b/c|sed 's/ .*//'`; case $p in drwxr-xr-x);; *) fail=1;; esac
-
-(exit $fail); exit $fail
diff --git a/tests/cp/cp-parents.sh b/tests/cp/cp-parents.sh
new file mode 100755
index 0000000..b0be883
--- /dev/null
+++ b/tests/cp/cp-parents.sh
@@ -0,0 +1,58 @@
+#!/bin/sh
+# cp -R --parents dir-specified-with-trailing-slash/ other-dir
+# would get a failed assertion.
+
+# Copyright (C) 2000-2016 Free Software Foundation, Inc.
+
+# This program is free software: you can redistribute it and/or modify
+# it under the terms of the GNU General Public License as published by
+# the Free Software Foundation, either version 3 of the License, or
+# (at your option) any later version.
+
+# This program is distributed in the hope that it will be useful,
+# but WITHOUT ANY WARRANTY; without even the implied warranty of
+# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
+# GNU General Public License for more details.
+
+# You should have received a copy of the GNU General Public License
+# along with this program. If not, see <http://www.gnu.org/licenses/>.
+
+. "${srcdir=.}/tests/init.sh"; path_prepend_ ./src
+print_ver_ cp
+
+working_umask_or_skip_
+
+# Run the setgid check from the just-created directory.
+skip_if_setgid_
+
+mkdir foo bar || framework_failure_
+mkdir -p a/b/c d e g || framework_failure_
+ln -s d/a sym || framework_failure_
+touch f || framework_failure_
+
+
+# With 4.0.37 and earlier (back to when?), this would fail
+# with the failed assertion from dirname.c.
+cp -R --parents foo/ bar || fail=1
+
+# Exercise the make_path and re_protect code in cp.c.
+# FIXME: compare verbose output with expected output.
+cp --verbose -a --parents a/b/c d > /dev/null 2>&1 || fail=1
+test -d d/a/b/c || fail=1
+
+# With 6.7 and earlier, cp --parents f/g d would mistakenly create a
+# directory d/f, even though f is a regular file.
+returns_ 1 cp --parents f/g d 2>/dev/null || fail=1
+test -d d/f && fail=1
+
+# Check that re_protect works.
+chmod go=w d/a || framework_failure_
+cp -a --parents d/a/b/c e || fail=1
+cp -a --parents sym/b/c g || fail=1
+p=$(ls -ld e/d|cut -b-10); case $p in drwxr-xr-x);; *) fail=1;; esac
+p=$(ls -ld e/d/a|cut -b-10); case $p in drwx-w--w-);; *) fail=1;; esac
+p=$(ls -ld g/sym|cut -b-10); case $p in drwx-w--w-);; *) fail=1;; esac
+p=$(ls -ld e/d/a/b/c|cut -b-10); case $p in drwxr-xr-x);; *) fail=1;; esac
+p=$(ls -ld g/sym/b/c|cut -b-10); case $p in drwxr-xr-x);; *) fail=1;; esac
+
+Exit $fail
diff --git a/tests/cp/deref-slink b/tests/cp/deref-slink
deleted file mode 100755
index 6034af6..0000000
--- a/tests/cp/deref-slink
+++ /dev/null
@@ -1,49 +0,0 @@
-#!/bin/sh
-# Demonstrate bug when using -d with an existing destination file
-# that is a symlink.
-
-# Copyright (C) 2000, 2002, 2004, 2006 Free Software Foundation, Inc.
-
-# This program is free software; you can redistribute it and/or modify
-# it under the terms of the GNU General Public License as published by
-# the Free Software Foundation; either version 2 of the License, or
-# (at your option) any later version.
-
-# This program is distributed in the hope that it will be useful,
-# but WITHOUT ANY WARRANTY; without even the implied warranty of
-# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
-# GNU General Public License for more details.
-
-# You should have received a copy of the GNU General Public License
-# along with this program; if not, write to the Free Software
-# Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA
-# 02110-1301, USA.
-
-if test "$VERBOSE" = yes; then
- set -x
- cp --version
-fi
-
-. $srcdir/../envvar-check
-. $srcdir/../lang-default
-
-pwd=`pwd`
-t0=`echo "$0"|sed 's,.*/,,'`.tmp;tmp=$t0/$$
-trap 'status=$?; cd "$pwd" && rm -rf $t0 && exit $status' 0
-trap '(exit $?); exit' 1 2 13 15
-
-framework_failure=0
-mkdir -p $tmp || framework_failure=1
-cd $tmp || framework_failure=1
-touch f slink-target || framework_failure=1
-ln -s slink-target slink || framework_failure=1
-
-if test $framework_failure = 1; then
- echo 'failure in testing framework' 1>&2
- (exit 1); exit 1
-fi
-
-fail=0
-cp -d f slink || fail=1
-
-(exit $fail); exit $fail
diff --git a/tests/cp/deref-slink.sh b/tests/cp/deref-slink.sh
new file mode 100755
index 0000000..9a7889d
--- /dev/null
+++ b/tests/cp/deref-slink.sh
@@ -0,0 +1,28 @@
+#!/bin/sh
+# Demonstrate bug when using -d with an existing destination file
+# that is a symlink.
+
+# Copyright (C) 2000-2016 Free Software Foundation, Inc.
+
+# This program is free software: you can redistribute it and/or modify
+# it under the terms of the GNU General Public License as published by
+# the Free Software Foundation, either version 3 of the License, or
+# (at your option) any later version.
+
+# This program is distributed in the hope that it will be useful,
+# but WITHOUT ANY WARRANTY; without even the implied warranty of
+# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
+# GNU General Public License for more details.
+
+# You should have received a copy of the GNU General Public License
+# along with this program. If not, see <http://www.gnu.org/licenses/>.
+
+. "${srcdir=.}/tests/init.sh"; path_prepend_ ./src
+print_ver_ cp
+
+touch f slink-target || framework_failure_
+ln -s slink-target slink || framework_failure_
+
+cp -d f slink || fail=1
+
+Exit $fail
diff --git a/tests/cp/dir-rm-dest b/tests/cp/dir-rm-dest
deleted file mode 100755
index 325b40c..0000000
--- a/tests/cp/dir-rm-dest
+++ /dev/null
@@ -1,49 +0,0 @@
-#!/bin/sh
-# verify that cp's --remove-destination option works with -R
-
-# Copyright (C) 2000, 2002, 2004, 2006 Free Software Foundation, Inc.
-
-# This program is free software; you can redistribute it and/or modify
-# it under the terms of the GNU General Public License as published by
-# the Free Software Foundation; either version 2 of the License, or
-# (at your option) any later version.
-
-# This program is distributed in the hope that it will be useful,
-# but WITHOUT ANY WARRANTY; without even the implied warranty of
-# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
-# GNU General Public License for more details.
-
-# You should have received a copy of the GNU General Public License
-# along with this program; if not, write to the Free Software
-# Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA
-# 02110-1301, USA.
-
-if test "$VERBOSE" = yes; then
- set -x
- cp --version
-fi
-
-pwd=`pwd`
-t0=`echo "$0"|sed 's,.*/,,'`.tmp;tmp=$t0/$$
-trap 'status=$?; cd "$pwd" && rm -rf $t0 && exit $status' 0
-trap '(exit $?); exit' 1 2 13 15
-
-framework_failure=0
-mkdir -p $tmp || framework_failure=1
-cd $tmp || framework_failure=1
-mkdir d e || framework_failure=1
-
-if test $framework_failure = 1; then
- echo 'failure in testing framework'
- exit 1
-fi
-
-fail=0
-
-# Do it once with no destination...
-cp -R --remove-destination d e || fail=1
-
-# ...and again, with an existing destination.
-cp -R --remove-destination d e || fail=1
-
-(exit $fail); exit $fail
diff --git a/tests/cp/dir-rm-dest.sh b/tests/cp/dir-rm-dest.sh
new file mode 100755
index 0000000..0c0ddc2
--- /dev/null
+++ b/tests/cp/dir-rm-dest.sh
@@ -0,0 +1,30 @@
+#!/bin/sh
+# verify that cp's --remove-destination option works with -R
+
+# Copyright (C) 2000-2016 Free Software Foundation, Inc.
+
+# This program is free software: you can redistribute it and/or modify
+# it under the terms of the GNU General Public License as published by
+# the Free Software Foundation, either version 3 of the License, or
+# (at your option) any later version.
+
+# This program is distributed in the hope that it will be useful,
+# but WITHOUT ANY WARRANTY; without even the implied warranty of
+# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
+# GNU General Public License for more details.
+
+# You should have received a copy of the GNU General Public License
+# along with this program. If not, see <http://www.gnu.org/licenses/>.
+
+. "${srcdir=.}/tests/init.sh"; path_prepend_ ./src
+print_ver_ cp
+
+mkdir d e || framework_failure_
+
+# Do it once with no destination...
+cp -R --remove-destination d e || fail=1
+
+# ...and again, with an existing destination.
+cp -R --remove-destination d e || fail=1
+
+Exit $fail
diff --git a/tests/cp/dir-slash b/tests/cp/dir-slash
deleted file mode 100755
index 2c5a0bc..0000000
--- a/tests/cp/dir-slash
+++ /dev/null
@@ -1,54 +0,0 @@
-#!/bin/sh
-# Make sure that cp -R DIR1 DIR2 does the right thing
-# when DIR1 is written with a trailing slash.
-
-# Copyright (C) 2000, 2002, 2004, 2006 Free Software Foundation, Inc.
-
-# This program is free software; you can redistribute it and/or modify
-# it under the terms of the GNU General Public License as published by
-# the Free Software Foundation; either version 2 of the License, or
-# (at your option) any later version.
-
-# This program is distributed in the hope that it will be useful,
-# but WITHOUT ANY WARRANTY; without even the implied warranty of
-# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
-# GNU General Public License for more details.
-
-# You should have received a copy of the GNU General Public License
-# along with this program; if not, write to the Free Software
-# Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA
-# 02110-1301, USA.
-
-if test "$VERBOSE" = yes; then
- set -x
- cp --version
-fi
-
-pwd=`pwd`
-t0=`echo "$0"|sed 's,.*/,,'`.tmp;tmp=$t0/$$
-trap 'status=$?; cd "$pwd" && rm -rf $t0 || exit $?; exit $status' 0
-trap 'exit $?' 1 2 13 15
-
-framework_failure=0
-mkdir -p $tmp || framework_failure=1
-cd $tmp || framework_failure=1
-
-mkdir dir1 dir2 || framework_failure=1
-touch dir1/file || framework_failure=1
-
-if test $framework_failure = 1; then
- echo 'failure in testing framework'
- exit 1
-fi
-
-fail=0
-cp -R dir1/ dir2 || fail=1
-
-# This file should not exist, but it did with fileutils-4.0w.
-test -r dir2/file && fail=1
-
-# These two should.
-test -r dir2/dir1/file || fail=1
-test -r dir1/file || fail=1
-
-(exit $fail); exit $fail
diff --git a/tests/cp/dir-slash.sh b/tests/cp/dir-slash.sh
new file mode 100755
index 0000000..d1fb61f
--- /dev/null
+++ b/tests/cp/dir-slash.sh
@@ -0,0 +1,35 @@
+#!/bin/sh
+# Make sure that cp -R DIR1 DIR2 does the right thing
+# when DIR1 is written with a trailing slash.
+
+# Copyright (C) 2000-2016 Free Software Foundation, Inc.
+
+# This program is free software: you can redistribute it and/or modify
+# it under the terms of the GNU General Public License as published by
+# the Free Software Foundation, either version 3 of the License, or
+# (at your option) any later version.
+
+# This program is distributed in the hope that it will be useful,
+# but WITHOUT ANY WARRANTY; without even the implied warranty of
+# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
+# GNU General Public License for more details.
+
+# You should have received a copy of the GNU General Public License
+# along with this program. If not, see <http://www.gnu.org/licenses/>.
+
+. "${srcdir=.}/tests/init.sh"; path_prepend_ ./src
+print_ver_ cp
+
+mkdir dir1 dir2 || framework_failure_
+touch dir1/file || framework_failure_
+
+cp -R dir1/ dir2 || fail=1
+
+# This file should not exist, but it did with fileutils-4.0w.
+test -r dir2/file && fail=1
+
+# These two should.
+test -r dir2/dir1/file || fail=1
+test -r dir1/file || fail=1
+
+Exit $fail
diff --git a/tests/cp/dir-vs-file b/tests/cp/dir-vs-file
deleted file mode 100755
index 612e297..0000000
--- a/tests/cp/dir-vs-file
+++ /dev/null
@@ -1,54 +0,0 @@
-#!/bin/sh
-# A directory may not replace an existing file.
-
-# Copyright (C) 2001, 2002, 2004, 2006 Free Software Foundation, Inc.
-
-# This program is free software; you can redistribute it and/or modify
-# it under the terms of the GNU General Public License as published by
-# the Free Software Foundation; either version 2 of the License, or
-# (at your option) any later version.
-
-# This program is distributed in the hope that it will be useful,
-# but WITHOUT ANY WARRANTY; without even the implied warranty of
-# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
-# GNU General Public License for more details.
-
-# You should have received a copy of the GNU General Public License
-# along with this program; if not, write to the Free Software
-# Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA
-# 02110-1301, USA.
-
-if test "$VERBOSE" = yes; then
- set -x
- cp --version
-fi
-
-. $srcdir/../envvar-check
-
-pwd=`pwd`
-t0=`echo "$0"|sed 's,.*/,,'`.tmp;tmp=$t0/$$
-trap 'status=$?; cd "$pwd" && rm -rf $t0 && exit $status' 0
-trap '(exit $?); exit' 1 2 13 15
-
-framework_failure=0
-mkdir -p $tmp || framework_failure=1
-cd $tmp || framework_failure=1
-
-mkdir dir || framework_failure=1
-touch file || framework_failure=1
-
-if test $framework_failure = 1; then
- echo 'failure in testing framework' 1>&2
- (exit 1); exit 1
-fi
-
-fail=0
-
-# In 4.0.35, this cp invocation silently succeeded.
-cp -R dir file 2>/dev/null && fail=1
-
-# Make sure file is not replaced with a directory.
-# In 4.0.35, it was.
-test -f file || fail=1
-
-(exit $fail); exit $fail
diff --git a/tests/cp/dir-vs-file.sh b/tests/cp/dir-vs-file.sh
new file mode 100755
index 0000000..4bceea4
--- /dev/null
+++ b/tests/cp/dir-vs-file.sh
@@ -0,0 +1,33 @@
+#!/bin/sh
+# A directory may not replace an existing file.
+
+# Copyright (C) 2001-2016 Free Software Foundation, Inc.
+
+# This program is free software: you can redistribute it and/or modify
+# it under the terms of the GNU General Public License as published by
+# the Free Software Foundation, either version 3 of the License, or
+# (at your option) any later version.
+
+# This program is distributed in the hope that it will be useful,
+# but WITHOUT ANY WARRANTY; without even the implied warranty of
+# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
+# GNU General Public License for more details.
+
+# You should have received a copy of the GNU General Public License
+# along with this program. If not, see <http://www.gnu.org/licenses/>.
+
+. "${srcdir=.}/tests/init.sh"; path_prepend_ ./src
+print_ver_ cp
+
+mkdir dir || framework_failure_
+touch file || framework_failure_
+
+
+# In 4.0.35, this cp invocation silently succeeded.
+returns_ 1 cp -R dir file 2>/dev/null || fail=1
+
+# Make sure file is not replaced with a directory.
+# In 4.0.35, it was.
+test -f file || fail=1
+
+Exit $fail
diff --git a/tests/cp/existing-perm-dir.sh b/tests/cp/existing-perm-dir.sh
new file mode 100755
index 0000000..e98046c
--- /dev/null
+++ b/tests/cp/existing-perm-dir.sh
@@ -0,0 +1,31 @@
+#!/bin/sh
+# Make sure cp -p doesn't "restore" permissions it shouldn't (Bug#9170).
+
+# Copyright 2011-2016 Free Software Foundation, Inc.
+
+# This program is free software: you can redistribute it and/or modify
+# it under the terms of the GNU General Public License as published by
+# the Free Software Foundation, either version 3 of the License, or
+# (at your option) any later version.
+
+# This program is distributed in the hope that it will be useful,
+# but WITHOUT ANY WARRANTY; without even the implied warranty of
+# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
+# GNU General Public License for more details.
+
+# You should have received a copy of the GNU General Public License
+# along with this program. If not, see <http://www.gnu.org/licenses/>.
+
+. "${srcdir=.}/tests/init.sh"; path_prepend_ ./src
+print_ver_ cp
+
+umask 002
+mkdir -p -m ug-s,u=rwx,g=rwx,o=rx src/dir || fail=1
+mkdir -p -m ug-s,u=rwx,g=,o= dst/dir || fail=1
+
+cp -r src/. dst/ || fail=1
+
+mode=$(stat --p=%A dst/dir)
+test "$mode" = drwx------ || fail=1
+
+Exit $fail
diff --git a/tests/cp/existing-perm-race.sh b/tests/cp/existing-perm-race.sh
new file mode 100755
index 0000000..2b5f0e7
--- /dev/null
+++ b/tests/cp/existing-perm-race.sh
@@ -0,0 +1,94 @@
+#!/bin/sh
+# Make sure cp -p isn't too generous with existing file permissions.
+
+# Copyright (C) 2006-2016 Free Software Foundation, Inc.
+
+# This program is free software: you can redistribute it and/or modify
+# it under the terms of the GNU General Public License as published by
+# the Free Software Foundation, either version 3 of the License, or
+# (at your option) any later version.
+
+# This program is distributed in the hope that it will be useful,
+# but WITHOUT ANY WARRANTY; without even the implied warranty of
+# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
+# GNU General Public License for more details.
+
+# You should have received a copy of the GNU General Public License
+# along with this program. If not, see <http://www.gnu.org/licenses/>.
+
+. "${srcdir=.}/tests/init.sh"; path_prepend_ ./src
+print_ver_ cp
+
+require_membership_in_two_groups_
+
+# cp -p gives ENOTSUP on NFS on Linux 2.6.9 at least
+require_local_dir_
+
+require_no_default_acl_ .
+
+set _ $groups; shift
+g1=$1
+g2=$2
+
+
+umask 077
+mkfifo_or_skip_ fifo
+
+touch fifo-copy &&
+chgrp $g1 fifo &&
+chgrp $g2 fifo-copy &&
+chmod g+r fifo-copy || framework-failure
+
+# Terminate any background cp process
+cleanup_() { kill $pid 2>/dev/null && wait $pid; }
+
+# Copy a fifo's contents. That way, we can examine the
+# destination permissions before they're finalized.
+cp -p --copy-contents fifo fifo-copy & pid=$!
+
+(
+ # Now 'cp' is reading the fifo. Wait for the destination file to
+ # be written to, encouraging things along by echoing to the fifo.
+ while test ! -s fifo-copy; do
+ echo foo
+ done
+
+ # Check the permissions of the destination.
+ ls -l -n fifo-copy >ls.out &&
+
+ # Close the fifo so that "cp" can continue. But output first,
+ # before exiting, otherwise some shells would optimize away the file
+ # descriptor that holds the fifo open.
+ echo foo
+) >fifo || fail=1
+
+# Check that the destination mode is safe while the file is being copied.
+read mode links owner group etc <ls.out || fail=1
+case $mode in
+ -rw-------*) ;;
+
+ # FIXME: Remove the following case; the file mode should always be
+ # 600 while the data are being copied. This will require changing
+ # cp so that it also does not put $g1's data in a file that is
+ # accessible to $g2. This fix will not close a security hole, since
+ # a $g2 process can maintain an open file descriptor to the
+ # destination, but it's safer anyway.
+ -rw-r-----*)
+ # If the file has group $g1 and is group-readable, that is definitely bogus,
+ # as neither the source nor the destination was readable to group $g1.
+ test "$group" = "$g1" && fail=1;;
+
+ *) fail=1;;
+esac
+
+wait $pid || fail=1
+
+# Check that the final mode and group are right.
+ls -l -n fifo-copy >ls.out &&
+read mode links owner group etc <ls.out || fail=1
+case $mode in
+ -rw-------*) test "$group" = "$g1" || fail=1;;
+ *) fail=1;;
+esac
+
+Exit $fail
diff --git a/tests/cp/fail-perm b/tests/cp/fail-perm
deleted file mode 100755
index 5fff090..0000000
--- a/tests/cp/fail-perm
+++ /dev/null
@@ -1,80 +0,0 @@
-#!/bin/sh
-
-# Copyright (C) 2000, 2002, 2003, 2004, 2005, 2006 Free Software
-# Foundation, Inc.
-
-# This program is free software; you can redistribute it and/or modify
-# it under the terms of the GNU General Public License as published by
-# the Free Software Foundation; either version 2 of the License, or
-# (at your option) any later version.
-
-# This program is distributed in the hope that it will be useful,
-# but WITHOUT ANY WARRANTY; without even the implied warranty of
-# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
-# GNU General Public License for more details.
-
-# You should have received a copy of the GNU General Public License
-# along with this program; if not, write to the Free Software
-# Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA
-# 02110-1301, USA.
-
-if test "$VERBOSE" = yes; then
- set -x
- cp --version
-fi
-
-. $srcdir/../lang-default
-PRIV_CHECK_ARG=require-non-root . $srcdir/../priv-check
-
-pwd=`pwd`
-t0=`echo "$0"|sed 's,.*/,,'`.tmp; tmp=$t0/$$
-trap 'status=$?; cd "$pwd" && chmod -R u+rwx $t0 && rm -rf $t0 && exit $status' 0
-trap '(exit $?); exit' 1 2 13 15
-
-framework_failure=0
-mkdir -p $tmp || framework_failure=1
-cd $tmp || framework_failure=1
-
-mkdir D D/D || framework_failure=1
-touch D/a || framework_failure=1
-chmod 0 D/a || framework_failure=1
-chmod u=rx,go=,-st D || framework_failure=1
-
-if test $framework_failure = 1; then
- echo 'failure in testing framework'
- exit 1
-fi
-
-fail=0
-
-# This is expected to exit non-zero, because it can't read D/a.
-cp -pR D DD > /dev/null 2>&1 && fail=1
-
-# Permissions on DD must be `dr-x------'
-
-set X `ls -ld DD`
-shift
-test "$1" = dr-x------ || fail=1
-
-chmod 0 D
-ln -s D/D symlink
-touch F
-cat > exp <<\EOF
-cp: accessing `symlink': Permission denied
-EOF
-
-cp F symlink 2> out && fail=1
-# HPUX appears to fail with EACCES rather than EPERM.
-# Transform their diagnostic
-# ...: The file access permissions do not allow the specified action.
-# to the expected one:
-sed 's/: The file access permissions.*/: Permission denied/'<out>o1;mv o1 out
-cmp out exp || { (diff -c out exp) 2> /dev/null; fail=1; }
-
-cp --target-directory=symlink F 2> out && fail=1
-sed 's/: The file access permissions.*/: Permission denied/'<out>o1;mv o1 out
-cmp out exp || { (diff -c out exp) 2> /dev/null; fail=1; }
-
-chmod 700 D
-
-(exit $fail); exit $fail
diff --git a/tests/cp/fail-perm.sh b/tests/cp/fail-perm.sh
new file mode 100755
index 0000000..2cfbc52
--- /dev/null
+++ b/tests/cp/fail-perm.sh
@@ -0,0 +1,58 @@
+#!/bin/sh
+
+# Copyright (C) 2000-2016 Free Software Foundation, Inc.
+
+# This program is free software: you can redistribute it and/or modify
+# it under the terms of the GNU General Public License as published by
+# the Free Software Foundation, either version 3 of the License, or
+# (at your option) any later version.
+
+# This program is distributed in the hope that it will be useful,
+# but WITHOUT ANY WARRANTY; without even the implied warranty of
+# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
+# GNU General Public License for more details.
+
+# You should have received a copy of the GNU General Public License
+# along with this program. If not, see <http://www.gnu.org/licenses/>.
+
+. "${srcdir=.}/tests/init.sh"; path_prepend_ ./src
+print_ver_ cp
+skip_if_root_
+
+chmod g-s . || framework_failure_
+mkdir D D/D || framework_failure_
+touch D/a || framework_failure_
+chmod 0 D/a || framework_failure_
+chmod u=rx,go=,-st D || framework_failure_
+
+
+# This is expected to exit non-zero, because it can't read D/a.
+returns_ 1 cp -pR D DD > /dev/null 2>&1 || fail=1
+
+# Permissions on DD must be 'dr-x------'
+
+mode=$(ls -ld DD|cut -b-10)
+test "$mode" = dr-x------ || fail=1
+
+chmod 0 D
+ln -s D/D symlink
+touch F
+cat > exp <<\EOF
+cp: failed to access 'symlink': Permission denied
+EOF
+
+cp F symlink 2> out && fail=1
+# HPUX appears to fail with EACCES rather than EPERM.
+# Transform their diagnostic
+# ...: The file access permissions do not allow the specified action.
+# to the expected one:
+sed 's/: The file access permissions.*/: Permission denied/'<out>o1;mv o1 out
+compare exp out || fail=1
+
+cp --target-directory=symlink F 2> out && fail=1
+sed 's/: The file access permissions.*/: Permission denied/'<out>o1;mv o1 out
+compare exp out || fail=1
+
+chmod 700 D
+
+Exit $fail
diff --git a/tests/cp/fiemap-2.sh b/tests/cp/fiemap-2.sh
new file mode 100755
index 0000000..dc5959b
--- /dev/null
+++ b/tests/cp/fiemap-2.sh
@@ -0,0 +1,55 @@
+#!/bin/sh
+# Exercise a few more corners of the fiemap-copying code.
+
+# Copyright (C) 2011-2016 Free Software Foundation, Inc.
+
+# This program is free software: you can redistribute it and/or modify
+# it under the terms of the GNU General Public License as published by
+# the Free Software Foundation, either version 3 of the License, or
+# (at your option) any later version.
+
+# This program is distributed in the hope that it will be useful,
+# but WITHOUT ANY WARRANTY; without even the implied warranty of
+# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
+# GNU General Public License for more details.
+
+# You should have received a copy of the GNU General Public License
+# along with this program. If not, see <http://www.gnu.org/licenses/>.
+
+. "${srcdir=.}/tests/init.sh"; path_prepend_ ./src
+print_ver_ cp
+
+# Require a fiemap-enabled FS.
+touch fiemap_chk # check a file rather than current dir for best coverage
+fiemap_capable_ fiemap_chk \
+ || skip_ "this file system lacks FIEMAP support"
+
+# Exercise the code that handles a file ending in a hole.
+printf x > k || framework_failure_
+dd bs=1k seek=128 of=k < /dev/null || framework_failure_
+
+# The first time through the outer loop, the input file, K, ends with a hole.
+# The second time through, we append a byte so that it does not.
+for append in no yes; do
+ test $append = yes && printf y >> k
+ for i in always never; do
+ cp --sparse=$i k k2 || fail=1
+ cmp k k2 || fail=1
+ done
+done
+
+# Ensure that --sparse=always can restore holes.
+rm -f k
+# Create a file starting with an "x", followed by 256K-1 0 bytes.
+printf x > k || framework_failure_
+dd bs=1k seek=1 of=k count=255 < /dev/zero || framework_failure_
+
+# cp should detect the all-zero blocks and convert some of them to holes.
+# How many it detects/converts currently depends on io_blksize.
+# Currently, on my F14/ext4 desktop, this K starts off with size 256KiB,
+# (note that the K in the preceding test starts off with size 4KiB).
+# cp from coreutils-8.9 with --sparse=always reduces the size to 32KiB.
+cp --sparse=always k k2 || fail=1
+test $(stat -c %b k2) -lt $(stat -c %b k) || fail=1
+
+Exit $fail
diff --git a/tests/cp/fiemap-FMR.sh b/tests/cp/fiemap-FMR.sh
new file mode 100755
index 0000000..5dd0593
--- /dev/null
+++ b/tests/cp/fiemap-FMR.sh
@@ -0,0 +1,31 @@
+#!/bin/sh
+# Trigger a free-memory read bug in cp from coreutils-[8.11..8.19]
+
+# Copyright (C) 2012-2016 Free Software Foundation, Inc.
+
+# This program is free software: you can redistribute it and/or modify
+# it under the terms of the GNU General Public License as published by
+# the Free Software Foundation, either version 3 of the License, or
+# (at your option) any later version.
+
+# This program is distributed in the hope that it will be useful,
+# but WITHOUT ANY WARRANTY; without even the implied warranty of
+# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
+# GNU General Public License for more details.
+
+# You should have received a copy of the GNU General Public License
+# along with this program. If not, see <http://www.gnu.org/licenses/>.
+
+. "${srcdir=.}/tests/init.sh"; path_prepend_ ./src
+print_ver_ cp
+
+require_valgrind_
+require_perl_
+: ${PERL=perl}
+
+$PERL -e 'for (1..600) { sysseek (*STDOUT, 4096, 1)' \
+ -e '&& syswrite (*STDOUT, "a" x 1024) or die "$!"}' > j || fail=1
+valgrind --quiet --error-exitcode=3 cp j j2 || fail=1
+cmp j j2 || fail=1
+
+Exit $fail
diff --git a/tests/cp/fiemap-extents.sh b/tests/cp/fiemap-extents.sh
new file mode 100755
index 0000000..672070e
--- /dev/null
+++ b/tests/cp/fiemap-extents.sh
@@ -0,0 +1,84 @@
+#!/bin/sh
+# Test cp handles extents correctly
+
+# Copyright (C) 2011-2016 Free Software Foundation, Inc.
+
+# This program is free software: you can redistribute it and/or modify
+# it under the terms of the GNU General Public License as published by
+# the Free Software Foundation, either version 3 of the License, or
+# (at your option) any later version.
+
+# This program is distributed in the hope that it will be useful,
+# but WITHOUT ANY WARRANTY; without even the implied warranty of
+# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
+# GNU General Public License for more details.
+
+# You should have received a copy of the GNU General Public License
+# along with this program. If not, see <http://www.gnu.org/licenses/>.
+
+. "${srcdir=.}/tests/init.sh"; path_prepend_ ./src
+print_ver_ cp
+
+require_sparse_support_
+
+touch fiemap_chk || framework_failure_
+fiemap_capable_ fiemap_chk ||
+ skip_ 'this file system lacks FIEMAP support'
+rm fiemap_chk
+
+fallocate --help >/dev/null || skip_ 'The fallocate utility is required'
+touch falloc.test || framework_failure_
+fallocate -l 1 -o 1 -n falloc.test ||
+ skip_ 'this file system lacks FALLOCATE support'
+rm falloc.test
+
+# We don't currently handle unwritten extents specially
+if false; then
+# Require more space than we'll actually use, so that
+# tests run in parallel do not run out of space.
+# Otherwise, with inadequate space, simply running the following
+# fallocate command would induce a temporary disk-full condition,
+# which would cause failure of unrelated tests run in parallel.
+require_file_system_bytes_free_ 800000000
+
+fallocate -l 1MiB num.test ||
+ skip_ "this fallocate doesn't support numbers with IEX suffixes"
+
+fallocate -l 600MiB space.test ||
+ skip_ 'this test needs at least 600MiB free space'
+
+# Disable this test on old BTRFS (e.g. Fedora 14)
+# which reports ordinary extents for unwritten ones.
+filefrag space.test || skip_ 'the 'filefrag' utility is missing'
+filefrag -v space.test | grep -F 'unwritten' > /dev/null ||
+ skip_ 'this file system does not report empty extents as "unwritten"'
+
+rm space.test
+
+# Ensure we read a large empty file quickly
+fallocate -l 300MiB empty.big || framework_failure_
+timeout 3 cp --sparse=always empty.big cp.test || fail=1
+test $(stat -c %s empty.big) = $(stat -c %s cp.test) || fail=1
+rm empty.big cp.test
+fi
+
+# Ensure we handle extents beyond file size correctly.
+# Note until we support fallocate, we will not maintain
+# the file allocation. FIXME: amend this test if fallocate is supported.
+# Note currently this only uses fiemap logic when the allocation (-l)
+# is smaller than the size, thus identifying the file as sparse.
+# Note the '-l 1' case is an effective noop, and just checks
+# a file with a trailing hole is copied correctly.
+for sparse_mode in always auto never; do
+ for alloc in '-l 4194304' '-l 1048576 -o 4194304' '-l 1'; do
+ dd count=10 if=/dev/urandom iflag=fullblock of=unwritten.withdata
+ truncate -s 2MiB unwritten.withdata || framework_failure_
+ fallocate $alloc -n unwritten.withdata || framework_failure_
+ cp --sparse=$sparse_mode unwritten.withdata cp.test || fail=1
+ test $(stat -c %s unwritten.withdata) = $(stat -c %s cp.test) || fail=1
+ cmp unwritten.withdata cp.test || fail=1
+ rm unwritten.withdata cp.test || framework_failure_
+ done
+done
+
+Exit $fail
diff --git a/tests/cp/fiemap-perf.sh b/tests/cp/fiemap-perf.sh
new file mode 100755
index 0000000..dceacc1
--- /dev/null
+++ b/tests/cp/fiemap-perf.sh
@@ -0,0 +1,49 @@
+#!/bin/sh
+# ensure that a sparse file is copied efficiently, by default
+
+# Copyright (C) 2011-2016 Free Software Foundation, Inc.
+
+# This program is free software: you can redistribute it and/or modify
+# it under the terms of the GNU General Public License as published by
+# the Free Software Foundation, either version 3 of the License, or
+# (at your option) any later version.
+
+# This program is distributed in the hope that it will be useful,
+# but WITHOUT ANY WARRANTY; without even the implied warranty of
+# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
+# GNU General Public License for more details.
+
+# You should have received a copy of the GNU General Public License
+# along with this program. If not, see <http://www.gnu.org/licenses/>.
+
+. "${srcdir=.}/tests/init.sh"; path_prepend_ ./src
+print_ver_ cp
+
+# Require a fiemap-enabled FS.
+touch fiemap_chk
+fiemap_capable_ fiemap_chk ||
+ skip_ "this file system lacks FIEMAP support"
+
+# Exclude ext[23] (or unknown fs types)
+# as the emulated extent scanning can be slow
+df -t ext2 -t ext3 . >/dev/null &&
+ skip_ "ext[23] can have slow FIEMAP scanning"
+
+# Create a large-but-sparse file.
+timeout 10 truncate -s1T f ||
+ skip_ "unable to create a 1 TiB sparse file"
+
+# Disable this test on old BTRFS (e.g. Fedora 14)
+# which reports (unwritten) extents for holes.
+filefrag f || skip_ "the 'filefrag' utility is missing"
+filefrag f | grep -F ': 0 extents found' > /dev/null ||
+ skip_ 'this file system reports extents for holes'
+
+# Nothing can read (much less write) that many bytes in so little time.
+timeout 10 cp f f2 || fail=1
+
+# Ensure that the sparse file copied through fiemap has the same size
+# in bytes as the original.
+test "$(stat --printf %s f)" = "$(stat --printf %s f2)" || fail=1
+
+Exit $fail
diff --git a/tests/cp/file-perm-race b/tests/cp/file-perm-race
deleted file mode 100755
index e16dd64..0000000
--- a/tests/cp/file-perm-race
+++ /dev/null
@@ -1,71 +0,0 @@
-#!/bin/sh
-# Make sure cp -p isn't too generous with file permissions.
-
-# Copyright (C) 2006 Free Software Foundation, Inc.
-
-# This program is free software; you can redistribute it and/or modify
-# it under the terms of the GNU General Public License as published by
-# the Free Software Foundation; either version 2 of the License, or
-# (at your option) any later version.
-
-# This program is distributed in the hope that it will be useful,
-# but WITHOUT ANY WARRANTY; without even the implied warranty of
-# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
-# GNU General Public License for more details.
-
-# You should have received a copy of the GNU General Public License
-# along with this program; if not, write to the Free Software
-# Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA
-# 02110-1301, USA.
-
-if test "$VERBOSE" = yes; then
- set -x
- cp --version
-fi
-
-pwd=`pwd`
-t0=`echo "$0"|sed 's,.*/,,'`.tmp;tmp=$t0/$$
-trap 'status=$?; cd "$pwd" && rm -rf $t0 && exit $status' 0
-trap '(exit $?); exit' 1 2 13 15
-
-framework_failure=0
-mkdir -p $tmp || framework_failure=1
-cd $tmp || framework_failure=1
-
-umask 022
-mkfifo fifo || {
- echo "$0: fifos not supported; skipping this test." 1>&2
- (exit 77); exit 77
-}
-
-# Copy a fifo's contents. That way, we can examine the
-# destination permissions before they're finalized.
-cp -p --copy-contents fifo fifo-copy &
-cp_pid=$!
-
-(
- # Now 'cp' is reading the fifo. Wait for the destination file to
- # be created, encouraging things along by echoing to the fifo.
- while test ! -f fifo-copy; do
- echo foo
- done
-
- # Check the permissions of the destination.
- ls -l fifo-copy >ls.out
-
- # Close the fifo so that "cp" can continue. But output first,
- # before exiting, otherwise some shells would optimize away the file
- # descriptor that holds the fifo open.
- echo foo
-) >fifo
-
-case `cat ls.out` in
--???------*)
- fail=0;;
-*)
- fail=1;;
-esac
-
-wait $cp_pid || fail=1
-
-(exit $fail); exit $fail
diff --git a/tests/cp/file-perm-race.sh b/tests/cp/file-perm-race.sh
new file mode 100755
index 0000000..4760f69
--- /dev/null
+++ b/tests/cp/file-perm-race.sh
@@ -0,0 +1,58 @@
+#!/bin/sh
+# Make sure cp -p isn't too generous with file permissions.
+
+# Copyright (C) 2006-2016 Free Software Foundation, Inc.
+
+# This program is free software: you can redistribute it and/or modify
+# it under the terms of the GNU General Public License as published by
+# the Free Software Foundation, either version 3 of the License, or
+# (at your option) any later version.
+
+# This program is distributed in the hope that it will be useful,
+# but WITHOUT ANY WARRANTY; without even the implied warranty of
+# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
+# GNU General Public License for more details.
+
+# You should have received a copy of the GNU General Public License
+# along with this program. If not, see <http://www.gnu.org/licenses/>.
+
+. "${srcdir=.}/tests/init.sh"; path_prepend_ ./src
+print_ver_ cp
+
+# cp -p gives ENOTSUP on NFS on Linux 2.6.9 at least
+require_local_dir_
+
+umask 022
+mkfifo_or_skip_ fifo
+
+# Terminate any background cp process
+cleanup_() { kill $pid 2>/dev/null && wait $pid; }
+
+# Copy a fifo's contents. That way, we can examine the
+# destination permissions before they're finalized.
+cp -p --copy-contents fifo fifo-copy & pid=$!
+
+(
+ # Now 'cp' is reading the fifo. Wait for the destination file to
+ # be created, encouraging things along by echoing to the fifo.
+ while test ! -f fifo-copy; do
+ echo foo
+ done
+
+ # Check the permissions of the destination.
+ ls -l fifo-copy >ls.out
+
+ # Close the fifo so that "cp" can continue. But output first,
+ # before exiting, otherwise some shells would optimize away the file
+ # descriptor that holds the fifo open.
+ echo foo
+) >fifo
+
+case $(cat ls.out) in
+-???------*) ;;
+*) fail=1;;
+esac
+
+wait $pid || fail=1
+
+Exit $fail
diff --git a/tests/cp/into-self b/tests/cp/into-self
deleted file mode 100755
index 79c727a..0000000
--- a/tests/cp/into-self
+++ /dev/null
@@ -1,63 +0,0 @@
-#!/bin/sh
-# Confirm that copying a directory into itself gets a proper diagnostic.
-
-# Copyright (C) 2001, 2002, 2004, 2006 Free Software Foundation, Inc.
-
-# This program is free software; you can redistribute it and/or modify
-# it under the terms of the GNU General Public License as published by
-# the Free Software Foundation; either version 2 of the License, or
-# (at your option) any later version.
-
-# This program is distributed in the hope that it will be useful,
-# but WITHOUT ANY WARRANTY; without even the implied warranty of
-# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
-# GNU General Public License for more details.
-
-# You should have received a copy of the GNU General Public License
-# along with this program; if not, write to the Free Software
-# Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA
-# 02110-1301, USA.
-
-# In 4.0.35 and earlier, `mkdir dir && cp -R dir dir' would produce this:
-# cp: won't create hard link `dir/dir/dir' to directory `'
-# Now it gives this:
-# cp: can't copy a directory `dir' into itself `dir/dir'
-
-if test "$VERBOSE" = yes; then
- set -x
- cp --version
-fi
-
-. $srcdir/../envvar-check
-. $srcdir/../lang-default
-
-pwd=`pwd`
-t0=`echo "$0"|sed 's,.*/,,'`.tmp;tmp=$t0/$$
-trap 'status=$?; cd "$pwd" && rm -rf $t0 && exit $status' 0
-trap '(exit $?); exit' 1 2 13 15
-
-framework_failure=0
-mkdir -p $tmp || framework_failure=1
-cd $tmp || framework_failure=1
-
-mkdir dir || framework_failure=1
-
-if test $framework_failure = 1; then
- echo 'failure in testing framework' 1>&2
- (exit 1); exit 1
-fi
-
-fail=0
-
-# This command should exit nonzero.
-cp -R dir dir 2> out && fail=1
-
-cat > exp <<\EOF
-cp: cannot copy a directory, `dir', into itself, `dir/dir'
-EOF
-#'
-
-cmp out exp || fail=1
-test $fail = 1 && diff out exp 2> /dev/null
-
-(exit $fail); exit $fail
diff --git a/tests/cp/into-self.sh b/tests/cp/into-self.sh
new file mode 100755
index 0000000..9ce1eed
--- /dev/null
+++ b/tests/cp/into-self.sh
@@ -0,0 +1,57 @@
+#!/bin/sh
+# Confirm that copying a directory into itself gets a proper diagnostic.
+
+# Copyright (C) 2001-2016 Free Software Foundation, Inc.
+
+# This program is free software: you can redistribute it and/or modify
+# it under the terms of the GNU General Public License as published by
+# the Free Software Foundation, either version 3 of the License, or
+# (at your option) any later version.
+
+# This program is distributed in the hope that it will be useful,
+# but WITHOUT ANY WARRANTY; without even the implied warranty of
+# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
+# GNU General Public License for more details.
+
+# You should have received a copy of the GNU General Public License
+# along with this program. If not, see <http://www.gnu.org/licenses/>.
+
+# In 4.0.35 and earlier, 'mkdir dir && cp -R dir dir' would produce this:
+# cp: won't create hard link 'dir/dir/dir' to directory ''
+# Now it gives this:
+# cp: can't copy a directory 'dir' into itself 'dir/dir'
+
+. "${srcdir=.}/tests/init.sh"; path_prepend_ ./src
+print_ver_ cp
+
+mkdir a dir || framework_failure_
+
+
+# This command should exit nonzero.
+cp -R dir dir 2> out && fail=1
+echo 1 >> out
+
+# This should, too. However, with coreutils-7.1 it would infloop.
+cp -rl dir dir 2>> out && fail=1
+echo 2 >> out
+
+cp -rl a dir dir 2>> out && fail=1
+echo 3 >> out
+cp -rl a dir dir 2>> out && fail=1
+echo 4 >> out
+
+cat > exp <<\EOF
+cp: cannot copy a directory, 'dir', into itself, 'dir/dir'
+1
+cp: cannot copy a directory, 'dir', into itself, 'dir/dir'
+2
+cp: cannot copy a directory, 'dir', into itself, 'dir/dir'
+3
+cp: cannot copy a directory, 'dir', into itself, 'dir/dir'
+4
+EOF
+#'
+
+compare exp out || fail=1
+
+Exit $fail
diff --git a/tests/cp/link b/tests/cp/link
deleted file mode 100755
index f448b5e..0000000
--- a/tests/cp/link
+++ /dev/null
@@ -1,50 +0,0 @@
-#!/bin/sh
-# Make sure cp --link -f works when the target exists.
-# This failed for 4.0z (due to a bug introduced in that test release).
-
-# Copyright (C) 2000, 2002, 2004, 2006 Free Software Foundation, Inc.
-
-# This program is free software; you can redistribute it and/or modify
-# it under the terms of the GNU General Public License as published by
-# the Free Software Foundation; either version 2 of the License, or
-# (at your option) any later version.
-
-# This program is distributed in the hope that it will be useful,
-# but WITHOUT ANY WARRANTY; without even the implied warranty of
-# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
-# GNU General Public License for more details.
-
-# You should have received a copy of the GNU General Public License
-# along with this program; if not, write to the Free Software
-# Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA
-# 02110-1301, USA.
-
-if test "$VERBOSE" = yes; then
- set -x
- cp --version
-fi
-
-pwd=`pwd`
-t0=`echo "$0"|sed 's,.*/,,'`.tmp;tmp=$t0/$$
-trap 'status=$?; cd "$pwd" && rm -rf $t0 && exit $status' 0
-trap '(exit $?); exit' 1 2 13 15
-
-framework_failure=0
-mkdir -p $tmp || framework_failure=1
-cd $tmp || framework_failure=1
-
-touch src || framework_failure=1
-touch dest || framework_failure=1
-touch dest2 || framework_failure=1
-
-if test $framework_failure = 1; then
- echo 'failure in testing framework'
- exit 1
-fi
-
-fail=0
-
-cp -f --link src dest || fail=1
-cp -f --symbolic-link src dest2 || fail=1
-
-(exit $fail); exit $fail
diff --git a/tests/cp/link-deref.sh b/tests/cp/link-deref.sh
new file mode 100755
index 0000000..51b228c
--- /dev/null
+++ b/tests/cp/link-deref.sh
@@ -0,0 +1,126 @@
+#!/bin/sh
+# Exercise cp --link's behavior regarding the dereferencing of symbolic links.
+
+# Copyright (C) 2013-2016 Free Software Foundation, Inc.
+
+# This program is free software: you can redistribute it and/or modify
+# it under the terms of the GNU General Public License as published by
+# the Free Software Foundation, either version 3 of the License, or
+# (at your option) any later version.
+
+# This program is distributed in the hope that it will be useful,
+# but WITHOUT ANY WARRANTY; without even the implied warranty of
+# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
+# GNU General Public License for more details.
+
+# You should have received a copy of the GNU General Public License
+# along with this program. If not, see <http://www.gnu.org/licenses/>.
+
+. "${srcdir=.}/tests/init.sh"; path_prepend_ ./src
+print_ver_ cp
+
+if { grep '^#define HAVE_LINKAT 1' "$CONFIG_HEADER" > /dev/null \
+ && grep '#undef LINKAT_SYMLINK_NOTSUP' "$CONFIG_HEADER" > /dev/null; } \
+ || grep '^#define LINK_FOLLOWS_SYMLINKS 0' "$CONFIG_HEADER" > /dev/null; then
+ # With this config cp will attempt to linkat() to hardlink a symlink.
+ # So now double check the current file system supports this operation.
+ ln -s testtarget test_sl || framework_failure_
+ ln -P test_sl test_hl_sl || framework_failure_
+ ino_sl="$(stat -c '%i' test_sl)" || framework_failure_
+ ino_hl="$(stat -c '%i' test_hl_sl)" || framework_failure_
+ test "$ino_sl" = "$ino_hl" && can_hardlink_to_symlink=1
+fi
+
+mkdir dir || framework_failure_
+> file || framework_failure_
+ln -s dir dirlink || framework_failure_
+ln -s file filelink || framework_failure_
+ln -s nowhere danglink || framework_failure_
+
+# printf format of the output line.
+outformat='%s|result=%s|inode=%s|type=%s|error=%s\n'
+
+for src in dirlink filelink danglink; do
+ # Get symlink's target.
+ tgt=$(readlink $src) || framework_failure_
+ # Get inodes and file type of the symlink (src) and its target (tgt).
+ # Note: this will fail for 'danglink'; catch it.
+ ino_src="$(stat -c '%i' $src)" || framework_failure_
+ typ_src="$(stat -c '%F' $src)" || framework_failure_
+ ino_tgt="$(stat -c '%i' $tgt 2>/dev/null)" || ino_tgt=
+ typ_tgt="$(stat -c '%F' $tgt 2>/dev/null)" || typ_tgt=
+
+ for o in '' -L -H -P; do
+
+ # Skip the -P case where we don't or can't hardlink symlinks
+ ! test "$can_hardlink_to_symlink" && test "$o" = '-P' && continue
+
+ for r in '' -R; do
+
+ command="cp --link $o $r $src dst"
+ $command 2> err
+ result=$?
+
+ # Get inode and file type of the destination (which may fail, too).
+ ino_dst="$(stat -c '%i' dst 2>/dev/null)" || ini_dst=
+ typ_dst="$(stat -c '%F' dst 2>/dev/null)" || typ_dst=
+
+ # Print the actual result in a certain format.
+ printf "$outformat" \
+ "$command" \
+ "$result" \
+ "$ino_dst" \
+ "$typ_dst" \
+ "$(cat err)" \
+ > out
+
+ # What was expected?
+ if [ "$o" = "-P" ]; then
+ # cp --link should not dereference if -P is given.
+ exp_result=0
+ exp_inode=$ino_src
+ exp_ftype=$typ_src
+ exp_error=
+ elif [ "$src" = 'danglink' ]; then
+ # Dereferencing should fail for the 'danglink'.
+ exp_result=1
+ exp_inode=
+ exp_ftype=
+ exp_error="cp: cannot stat 'danglink': No such file or directory"
+ elif [ "$src" = 'dirlink' ] && [ "$r" != '-R' ]; then
+ # Dereferencing should fail for the 'dirlink' without -R.
+ exp_result=1
+ exp_inode=
+ exp_ftype=
+ exp_error="cp: omitting directory 'dirlink'"
+ elif [ "$src" = 'dirlink' ]; then
+ # cp --link -R 'dirlink' should create a new directory.
+ exp_result=0
+ exp_inode=$ino_dst
+ exp_ftype=$typ_dst
+ exp_error=
+ else
+ # cp --link 'filelink' should create a hard link to the target.
+ exp_result=0
+ exp_inode=$ino_tgt
+ exp_ftype=$typ_tgt
+ exp_error=
+ fi
+
+ # Print the expected result in a certain format.
+ printf "$outformat" \
+ "$command" \
+ "$exp_result" \
+ "$exp_inode" \
+ "$exp_ftype" \
+ "$exp_error" \
+ > exp
+
+ compare exp out || { ls -lid $src $tgt dst; fail=1; }
+
+ rm -rf dst err exp out || framework_failure_
+ done
+ done
+done
+
+Exit $fail
diff --git a/tests/cp/link-heap.sh b/tests/cp/link-heap.sh
new file mode 100755
index 0000000..5d9dbd5
--- /dev/null
+++ b/tests/cp/link-heap.sh
@@ -0,0 +1,42 @@
+#!/bin/sh
+# ensure that cp --preserve=link --link doesn't waste heap
+
+# Copyright (C) 2008-2016 Free Software Foundation, Inc.
+
+# This program is free software: you can redistribute it and/or modify
+# it under the terms of the GNU General Public License as published by
+# the Free Software Foundation, either version 3 of the License, or
+# (at your option) any later version.
+
+# This program is distributed in the hope that it will be useful,
+# but WITHOUT ANY WARRANTY; without even the implied warranty of
+# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
+# GNU General Public License for more details.
+
+# You should have received a copy of the GNU General Public License
+# along with this program. If not, see <http://www.gnu.org/licenses/>.
+
+. "${srcdir=.}/tests/init.sh"; path_prepend_ ./src
+print_ver_ cp
+expensive_
+
+# Determine basic amount of memory needed for 'cp -al'.
+touch f || framework_failure_
+vm=$(get_min_ulimit_v_ cp -al f f2) \
+ || skip_ "this shell lacks ulimit support"
+rm f f2 || framework_failure_
+
+a=$(printf %031d 0)
+b=$(printf %031d 1)
+(mkdir $a \
+ && cd $a \
+ && seq --format=%031g 10000 |xargs touch \
+ && seq --format=d%030g 10000 |xargs mkdir ) || framework_failure_
+cp -al $a $b || framework_failure_
+mkdir e || framework_failure_
+mv $a $b e || framework_failure_
+
+# Allow cp(1) to use 4MiB more virtual memory than for the above trivial case.
+(ulimit -v $(($vm+4000)) && cp -al e f) || fail=1
+
+Exit $fail
diff --git a/tests/cp/link-no-deref b/tests/cp/link-no-deref
deleted file mode 100755
index 39f8bb9..0000000
--- a/tests/cp/link-no-deref
+++ /dev/null
@@ -1,48 +0,0 @@
-#!/bin/sh
-# Ensure that cp --link --no-dereference works properly
-
-# Copyright (C) 2006 Free Software Foundation, Inc.
-
-# This program is free software; you can redistribute it and/or modify
-# it under the terms of the GNU General Public License as published by
-# the Free Software Foundation; either version 2 of the License, or
-# (at your option) any later version.
-
-# This program is distributed in the hope that it will be useful,
-# but WITHOUT ANY WARRANTY; without even the implied warranty of
-# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
-# GNU General Public License for more details.
-
-# You should have received a copy of the GNU General Public License
-# along with this program; if not, write to the Free Software
-# Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA
-# 02110-1301, USA.
-
-if test "$VERBOSE" = yes; then
- set -x
- cp --version
-fi
-
-pwd=`pwd`
-t0=`echo "$0"|sed 's,.*/,,'`.tmp; tmp=$t0/$$
-trap 'status=$?; cd "$pwd" && chmod -R u+rwx $t0 && rm -rf $t0 && exit $status' 0
-trap '(exit $?); exit $?' 1 2 13 15
-
-framework_failure=0
-mkdir -p $tmp || framework_failure=1
-cd $tmp || framework_failure=1
-
-ln -s no-such-file dangling-slink || framework_failure=1
-
-if test $framework_failure = 1; then
- echo "$0: failure in testing framework" 1>&2
- (exit 1); exit 1
-fi
-
-fail=0
-
-# Prior to coreutils-6.0, this would fail on non-Linux kernels,
-# with link being applied to the dangling symlink.
-cp --link --no-dereference dangling-slink d2 || fail=1
-
-(exit $fail); exit $fail
diff --git a/tests/cp/link-no-deref.sh b/tests/cp/link-no-deref.sh
new file mode 100755
index 0000000..c423c05
--- /dev/null
+++ b/tests/cp/link-no-deref.sh
@@ -0,0 +1,29 @@
+#!/bin/sh
+# Ensure that cp --link --no-dereference works properly
+
+# Copyright (C) 2006-2016 Free Software Foundation, Inc.
+
+# This program is free software: you can redistribute it and/or modify
+# it under the terms of the GNU General Public License as published by
+# the Free Software Foundation, either version 3 of the License, or
+# (at your option) any later version.
+
+# This program is distributed in the hope that it will be useful,
+# but WITHOUT ANY WARRANTY; without even the implied warranty of
+# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
+# GNU General Public License for more details.
+
+# You should have received a copy of the GNU General Public License
+# along with this program. If not, see <http://www.gnu.org/licenses/>.
+
+. "${srcdir=.}/tests/init.sh"; path_prepend_ ./src
+print_ver_ cp
+
+ln -s no-such-file dangling-slink || framework_failure_
+
+
+# Prior to coreutils-6.0, this would fail on non-Linux kernels,
+# with link being applied to the dangling symlink.
+cp --link --no-dereference dangling-slink d2 || fail=1
+
+Exit $fail
diff --git a/tests/cp/link-preserve b/tests/cp/link-preserve
deleted file mode 100755
index 8fec65d..0000000
--- a/tests/cp/link-preserve
+++ /dev/null
@@ -1,106 +0,0 @@
-#!/bin/sh
-# ensure that `cp -d' preserves hard-links between command line arguments
-# ensure that --preserve=links works with -RH and -RL
-
-# Copyright (C) 2001, 2002, 2004, 2006 Free Software Foundation, Inc.
-
-# This program is free software; you can redistribute it and/or modify
-# it under the terms of the GNU General Public License as published by
-# the Free Software Foundation; either version 2 of the License, or
-# (at your option) any later version.
-
-# This program is distributed in the hope that it will be useful,
-# but WITHOUT ANY WARRANTY; without even the implied warranty of
-# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
-# GNU General Public License for more details.
-
-# You should have received a copy of the GNU General Public License
-# along with this program; if not, write to the Free Software
-# Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA
-# 02110-1301, USA.
-
-if test "$VERBOSE" = yes; then
- set -x
- cp --version
-fi
-
-. $srcdir/../envvar-check
-. $srcdir/../lang-default
-
-pwd=`pwd`
-t0=`echo "$0"|sed 's,.*/,,'`.tmp;tmp=$t0/$$
-trap 'status=$?; cd "$pwd" && rm -rf $t0 && exit $status' 0
-trap '(exit $?); exit' 1 2 13 15
-
-framework_failure=0
-mkdir -p $tmp || framework_failure=1
-cd $tmp || framework_failure=1
-touch a || framework_failure=1
-ln a b || framework_failure=1
-mkdir c || framework_failure=1
-cp -d a b c || framework_failure=1
-test -f c/a || framework_failure=1
-test -f c/b || framework_failure=1
-
-if test $framework_failure = 1; then
- echo 'failure in testing framework' 1>&2
- (exit 1); exit 1
-fi
-
-fail=0
-
-a_inode=`ls -i c/a|sed 's,c/.*,,'`
-b_inode=`ls -i c/b|sed 's,c/.*,,'`
-test "$a_inode" = "$b_inode" || fail=1
-# --------------------------------------
-
-rm -rf a b c
-touch a
-ln -s a b
-mkdir c
-cp --preserve=links -R -H a b c
-a_inode=`ls -i c/a|sed 's,c/.*,,'`
-b_inode=`ls -i c/b|sed 's,c/.*,,'`
-test "$a_inode" = "$b_inode" || fail=1
-# --------------------------------------
-
-rm -rf a b c d
-mkdir d
-(cd d; touch a; ln -s a b)
-cp --preserve=links -R -L d c
-a_inode=`ls -i c/a|sed 's,c/.*,,'`
-b_inode=`ls -i c/b|sed 's,c/.*,,'`
-test "$a_inode" = "$b_inode" || fail=1
-# --------------------------------------
-
-# Ensure that --no-preserve=links works.
-rm -rf a b c d
-mkdir d
-(cd d; touch a; ln a b)
-cp -dR --no-preserve=links d c
-a_inode=`ls -i c/a|sed 's,c/.*,,'`
-b_inode=`ls -i c/b|sed 's,c/.*,,'`
-test "$a_inode" = "$b_inode" && fail=1
-# --------------------------------------
-
-# Ensure that -d still preserves hard links.
-rm -rf a b c d
-touch a; ln a b
-mkdir c
-cp -d a b c
-a_inode=`ls -i c/a|sed 's,c/.*,,'`
-b_inode=`ls -i c/b|sed 's,c/.*,,'`
-test "$a_inode" = "$b_inode" || fail=1
-# --------------------------------------
-
-# Ensure that --no-preserve=mode works
-rm -rf a b c d
-touch a; chmod 731 a
-umask 077
-cp -a --no-preserve=mode a b
-set _ `ls -l b`; shift; mode=$1
-test "$mode" = "-rwx------" || fail=1
-umask 022
-# --------------------------------------
-
-(exit $fail); exit $fail
diff --git a/tests/cp/link-preserve.sh b/tests/cp/link-preserve.sh
new file mode 100755
index 0000000..cd00192
--- /dev/null
+++ b/tests/cp/link-preserve.sh
@@ -0,0 +1,91 @@
+#!/bin/sh
+# ensure that 'cp -d' preserves hard-links between command line arguments
+# ensure that --preserve=links works with -RH and -RL
+
+# Copyright (C) 2001-2016 Free Software Foundation, Inc.
+
+# This program is free software: you can redistribute it and/or modify
+# it under the terms of the GNU General Public License as published by
+# the Free Software Foundation, either version 3 of the License, or
+# (at your option) any later version.
+
+# This program is distributed in the hope that it will be useful,
+# but WITHOUT ANY WARRANTY; without even the implied warranty of
+# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
+# GNU General Public License for more details.
+
+# You should have received a copy of the GNU General Public License
+# along with this program. If not, see <http://www.gnu.org/licenses/>.
+
+. "${srcdir=.}/tests/init.sh"; path_prepend_ ./src
+print_ver_ cp
+
+touch a || framework_failure_
+ln a b || framework_failure_
+mkdir c || framework_failure_
+cp -d a b c || framework_failure_
+test -f c/a || framework_failure_
+test -f c/b || framework_failure_
+
+
+a_inode=$(ls -i c/a|sed 's,c/.*,,')
+b_inode=$(ls -i c/b|sed 's,c/.*,,')
+test "$a_inode" = "$b_inode" || fail=1
+# --------------------------------------
+
+rm -rf a b c
+touch a
+ln -s a b
+mkdir c
+cp --preserve=links -R -H a b c || fail=1
+a_inode=$(ls -i c/a|sed 's,c/.*,,')
+b_inode=$(ls -i c/b|sed 's,c/.*,,')
+test "$a_inode" = "$b_inode" || fail=1
+# --------------------------------------
+
+# Ensure that -L makes cp follow the b->a symlink
+# and translates to hard-linked a and b in the destination dir.
+rm -rf a b c d; mkdir d; (cd d; touch a; ln -s a b)
+cp --preserve=links -R -L d c || fail=1
+a_inode=$(ls -i c/a|sed 's,c/.*,,')
+b_inode=$(ls -i c/b|sed 's,c/.*,,')
+test "$a_inode" = "$b_inode" || fail=1
+# --------------------------------------
+
+# Same as above, but starting with a/b hard linked.
+rm -rf a b c d; mkdir d; (cd d; touch a; ln a b)
+cp --preserve=links -R -L d c || fail=1
+a_inode=$(ls -i c/a|sed 's,c/.*,,')
+b_inode=$(ls -i c/b|sed 's,c/.*,,')
+test "$a_inode" = "$b_inode" || fail=1
+# --------------------------------------
+
+# Ensure that --no-preserve=links works.
+rm -rf a b c d; mkdir d; (cd d; touch a; ln a b)
+cp -dR --no-preserve=links d c || fail=1
+a_inode=$(ls -i c/a|sed 's,c/.*,,')
+b_inode=$(ls -i c/b|sed 's,c/.*,,')
+test "$a_inode" = "$b_inode" && fail=1
+# --------------------------------------
+
+# Ensure that -d still preserves hard links.
+rm -rf a b c d
+touch a; ln a b
+mkdir c
+cp -d a b c || fail=1
+a_inode=$(ls -i c/a|sed 's,c/.*,,')
+b_inode=$(ls -i c/b|sed 's,c/.*,,')
+test "$a_inode" = "$b_inode" || fail=1
+# --------------------------------------
+
+# Ensure that --no-preserve=mode works
+rm -rf a b c d
+touch a; chmod 731 a
+umask 077
+cp -a --no-preserve=mode a b || fail=1
+mode=$(ls -l b|cut -b-10)
+test "$mode" = "-rw-------" || fail=1
+umask 022
+# --------------------------------------
+
+Exit $fail
diff --git a/tests/cp/link-symlink.sh b/tests/cp/link-symlink.sh
new file mode 100755
index 0000000..8576d91
--- /dev/null
+++ b/tests/cp/link-symlink.sh
@@ -0,0 +1,41 @@
+#!/bin/sh
+# Ensure that cp -a --link maintains timestamps if possible
+
+# Copyright (C) 2011-2016 Free Software Foundation, Inc.
+
+# This program is free software: you can redistribute it and/or modify
+# it under the terms of the GNU General Public License as published by
+# the Free Software Foundation, either version 3 of the License, or
+# (at your option) any later version.
+
+# This program is distributed in the hope that it will be useful,
+# but WITHOUT ANY WARRANTY; without even the implied warranty of
+# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
+# GNU General Public License for more details.
+
+# You should have received a copy of the GNU General Public License
+# along with this program. If not, see <http://www.gnu.org/licenses/>.
+
+. "${srcdir=.}/tests/init.sh"; path_prepend_ ./src
+print_ver_ cp
+
+# Check that the timestamps of the symlink are copied
+# if we're using hardlink to symlink emulation.
+touch file
+ln -s file link || framework_failure_
+touch -m -h -d 2011-01-01 link ||
+ skip_ "Your system doesn't support updating symlink timestamps"
+case $(stat --format=%y link) in
+ 2011-01-01*) ;;
+ *) skip_ "Your system doesn't support updating symlink timestamps" ;;
+esac
+
+# link.cp is probably a hardlink, but may also be a symlink
+# In either case the timestamp should match the original.
+cp -al link link.cp || fail=1
+case $(stat --format=%y link.cp) in
+ 2011-01-01*) ;;
+ *) fail=1 ;;
+esac
+
+Exit $fail
diff --git a/tests/cp/link.sh b/tests/cp/link.sh
new file mode 100755
index 0000000..0c22237
--- /dev/null
+++ b/tests/cp/link.sh
@@ -0,0 +1,31 @@
+#!/bin/sh
+# Make sure cp --link -f works when the target exists.
+# This failed for 4.0z (due to a bug introduced in that test release).
+
+# Copyright (C) 2000-2016 Free Software Foundation, Inc.
+
+# This program is free software: you can redistribute it and/or modify
+# it under the terms of the GNU General Public License as published by
+# the Free Software Foundation, either version 3 of the License, or
+# (at your option) any later version.
+
+# This program is distributed in the hope that it will be useful,
+# but WITHOUT ANY WARRANTY; without even the implied warranty of
+# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
+# GNU General Public License for more details.
+
+# You should have received a copy of the GNU General Public License
+# along with this program. If not, see <http://www.gnu.org/licenses/>.
+
+. "${srcdir=.}/tests/init.sh"; path_prepend_ ./src
+print_ver_ cp
+
+touch src || framework_failure_
+touch dest || framework_failure_
+touch dest2 || framework_failure_
+
+
+cp -f --link src dest || fail=1
+cp -f --symbolic-link src dest2 || fail=1
+
+Exit $fail
diff --git a/tests/cp/nfs-removal-race.sh b/tests/cp/nfs-removal-race.sh
new file mode 100755
index 0000000..1be4ea5
--- /dev/null
+++ b/tests/cp/nfs-removal-race.sh
@@ -0,0 +1,75 @@
+#!/bin/sh
+# Running cp S D on an NFS client while another client has just removed D
+# would lead (w/coreutils-8.16 and earlier) to cp's initial stat call
+# seeing (via stale NFS cache) that D exists, so that cp would then call
+# open without the O_CREAT flag. Yet, the open must actually consult
+# the server, which confesses that D has been deleted, thus causing the
+# open call to fail with ENOENT.
+#
+# This test simulates that situation by intercepting stat for a nonexistent
+# destination, D, and making the stat fill in the result struct for another
+# file and return 0.
+#
+# This test is skipped on systems that lack LD_PRELOAD support; that's fine.
+# Similarly, on a system that lacks <dlfcn.h> or __xstat, skipping it is fine.
+
+# Copyright (C) 2012-2016 Free Software Foundation, Inc.
+
+# This program is free software: you can redistribute it and/or modify
+# it under the terms of the GNU General Public License as published by
+# the Free Software Foundation, either version 3 of the License, or
+# (at your option) any later version.
+
+# This program is distributed in the hope that it will be useful,
+# but WITHOUT ANY WARRANTY; without even the implied warranty of
+# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
+# GNU General Public License for more details.
+
+# You should have received a copy of the GNU General Public License
+# along with this program. If not, see <http://www.gnu.org/licenses/>.
+
+. "${srcdir=.}/tests/init.sh"; path_prepend_ ./src
+print_ver_ cp
+require_gcc_shared_
+
+# Replace each stat call with a call to this wrapper.
+cat > k.c <<'EOF' || framework_failure_
+#define _GNU_SOURCE
+#include <stdio.h>
+#include <sys/types.h>
+#include <dlfcn.h>
+
+#define __xstat __xstat_orig
+
+#include <sys/stat.h>
+#include <stddef.h>
+
+#undef __xstat
+
+int
+__xstat (int ver, const char *path, struct stat *st)
+{
+ static int (*real_stat)(int ver, const char *path, struct stat *st) = NULL;
+ fclose(fopen("preloaded", "w"));
+ if (!real_stat)
+ real_stat = dlsym (RTLD_NEXT, "__xstat");
+ /* When asked to stat nonexistent "d",
+ return results suggesting it exists. */
+ return real_stat (ver, *path == 'd' && path[1] == 0 ? "d2" : path, st);
+}
+EOF
+
+# Then compile/link it:
+gcc_shared_ k.c k.so \
+ || framework_failure_ 'failed to build shared library'
+
+touch d2 || framework_failure_
+echo xyz > src || framework_failure_
+
+# Finally, run the test:
+LD_PRELOAD=$LD_PRELOAD:./k.so cp src d || fail=1
+
+test -f preloaded || skip_ 'LD_PRELOAD was ineffective?'
+
+compare src d || fail=1
+Exit $fail
diff --git a/tests/cp/no-ctx.sh b/tests/cp/no-ctx.sh
new file mode 100755
index 0000000..44f51ea
--- /dev/null
+++ b/tests/cp/no-ctx.sh
@@ -0,0 +1,65 @@
+#!/bin/sh
+# Ensure we handle file systems returning no SELinux context,
+# which triggered a segmentation fault in coreutils-8.22.
+# This test is skipped on systems that lack LD_PRELOAD support; that's fine.
+# Similarly, on a system that lacks lgetfilecon altogether, skipping it is fine.
+
+# Copyright (C) 2014-2016 Free Software Foundation, Inc.
+
+# This program is free software: you can redistribute it and/or modify
+# it under the terms of the GNU General Public License as published by
+# the Free Software Foundation, either version 3 of the License, or
+# (at your option) any later version.
+
+# This program is distributed in the hope that it will be useful,
+# but WITHOUT ANY WARRANTY; without even the implied warranty of
+# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
+# GNU General Public License for more details.
+
+# You should have received a copy of the GNU General Public License
+# along with this program. If not, see <http://www.gnu.org/licenses/>.
+
+. "${srcdir=.}/tests/init.sh"; path_prepend_ ./src
+print_ver_ cp
+require_gcc_shared_
+require_selinux_
+
+# Replace each getfilecon and lgetfilecon call with a call to these stubs.
+cat > k.c <<'EOF' || framework_failure_
+#include <stdio.h>
+#include <selinux/selinux.h>
+#include <errno.h>
+
+int getfilecon (const char *path, char **con)
+{
+ /* Leave a marker so we can identify if the function was intercepted. */
+ fclose(fopen("preloaded", "w"));
+
+ errno=ENODATA;
+ return -1;
+}
+
+int lgetfilecon (const char *path, char **con)
+{ return getfilecon (path, con); }
+EOF
+
+# Then compile/link it:
+gcc_shared_ k.c k.so \
+ || skip_ 'failed to build SELinux shared library'
+
+touch file_src
+
+# New file with SELinux context optionally included
+LD_PRELOAD=$LD_PRELOAD:./k.so cp -a file_src file_dst || fail=1
+
+# Existing file with SELinux context optionally included
+LD_PRELOAD=$LD_PRELOAD:./k.so cp -a file_src file_dst || fail=1
+
+# ENODATA should give an immediate error when required to preserve ctx
+# This is debatable, and maybe we should not fail when no context available?
+( export LD_PRELOAD=$LD_PRELOAD:./k.so
+ returns_ 1 cp --preserve=context file_src file_dst ) || fail=1
+
+test -e preloaded || skip_ 'LD_PRELOAD interception failed'
+
+Exit $fail
diff --git a/tests/cp/no-deref-link1 b/tests/cp/no-deref-link1
deleted file mode 100755
index a8c499e..0000000
--- a/tests/cp/no-deref-link1
+++ /dev/null
@@ -1,59 +0,0 @@
-#!/bin/sh
-# FIXME: This test requires ln -s.
-# cp from 3.16 fails this test
-
-# Copyright (C) 1997, 1999, 2002, 2004, 2006 Free Software Foundation, Inc.
-
-# This program is free software; you can redistribute it and/or modify
-# it under the terms of the GNU General Public License as published by
-# the Free Software Foundation; either version 2 of the License, or
-# (at your option) any later version.
-
-# This program is distributed in the hope that it will be useful,
-# but WITHOUT ANY WARRANTY; without even the implied warranty of
-# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
-# GNU General Public License for more details.
-
-# You should have received a copy of the GNU General Public License
-# along with this program; if not, write to the Free Software
-# Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA
-# 02110-1301, USA.
-
-if test "$VERBOSE" = yes; then
- set -x
- cp --version
-fi
-
-pwd=`pwd`
-t0=`echo "$0"|sed 's,.*/,,'`.tmp; tmp=$t0/$$
-trap 'status=$?; cd "$pwd" && rm -rf $t0 && exit $status' 0
-trap '(exit $?); exit' 1 2 13 15
-
-framework_failure=0
-mkdir -p $tmp || framework_failure=1
-cd $tmp || framework_failure=1
-
-if test $framework_failure = 1; then
- echo "$0: failure in testing framework" 1>&2
- (exit 1); exit 1
-fi
-
-mkdir a b
-msg=bar
-echo $msg > a/foo
-cd b
-ln -s ../a/foo .
-cd ..
-
-fail=0
-
-# It should fail with a message something like this:
-# ./cp: `a/foo' and `b/foo' are the same file
-cp -d a/foo b 2>/dev/null
-
-# Fail this test if the exit status is not 1
-test $? = 1 || fail=1
-
-test "`cat a/foo`" = $msg || fail=1
-
-(exit $fail); exit $fail
diff --git a/tests/cp/no-deref-link1.sh b/tests/cp/no-deref-link1.sh
new file mode 100755
index 0000000..b1754b7
--- /dev/null
+++ b/tests/cp/no-deref-link1.sh
@@ -0,0 +1,39 @@
+#!/bin/sh
+# cp from 3.16 fails this test
+
+# Copyright (C) 1997-2016 Free Software Foundation, Inc.
+
+# This program is free software: you can redistribute it and/or modify
+# it under the terms of the GNU General Public License as published by
+# the Free Software Foundation, either version 3 of the License, or
+# (at your option) any later version.
+
+# This program is distributed in the hope that it will be useful,
+# but WITHOUT ANY WARRANTY; without even the implied warranty of
+# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
+# GNU General Public License for more details.
+
+# You should have received a copy of the GNU General Public License
+# along with this program. If not, see <http://www.gnu.org/licenses/>.
+
+. "${srcdir=.}/tests/init.sh"; path_prepend_ ./src
+print_ver_ cp
+
+mkdir a b
+msg=bar
+echo $msg > a/foo
+cd b
+ln -s ../a/foo .
+cd ..
+
+
+# It should fail with a message something like this:
+# ./cp: 'a/foo' and 'b/foo' are the same file
+cp -d a/foo b 2>/dev/null
+
+# Fail this test if the exit status is not 1
+test $? = 1 || fail=1
+
+test "$(cat a/foo)" = $msg || fail=1
+
+Exit $fail
diff --git a/tests/cp/no-deref-link2 b/tests/cp/no-deref-link2
deleted file mode 100755
index 57b4f41..0000000
--- a/tests/cp/no-deref-link2
+++ /dev/null
@@ -1,59 +0,0 @@
-#!/bin/sh
-# FIXME: This test requires ln -s.
-# cp from 3.16 fails this test
-
-# Copyright (C) 1997, 1999, 2002, 2004, 2006 Free Software Foundation, Inc.
-
-# This program is free software; you can redistribute it and/or modify
-# it under the terms of the GNU General Public License as published by
-# the Free Software Foundation; either version 2 of the License, or
-# (at your option) any later version.
-
-# This program is distributed in the hope that it will be useful,
-# but WITHOUT ANY WARRANTY; without even the implied warranty of
-# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
-# GNU General Public License for more details.
-
-# You should have received a copy of the GNU General Public License
-# along with this program; if not, write to the Free Software
-# Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA
-# 02110-1301, USA.
-
-if test "$VERBOSE" = yes; then
- set -x
- cp --version
-fi
-
-pwd=`pwd`
-t0=`echo "$0"|sed 's,.*/,,'`.tmp; tmp=$t0/$$
-trap 'status=$?; cd "$pwd" && rm -rf $t0 && exit $status' 0
-trap '(exit $?); exit' 1 2 13 15
-
-framework_failure=0
-mkdir -p $tmp || framework_failure=1
-cd $tmp || framework_failure=1
-
-if test $framework_failure = 1; then
- echo "$0: failure in testing framework" 1>&2
- (exit 1); exit 1
-fi
-
-mkdir b
-msg=bar
-echo $msg > a
-cd b
-ln -s ../a .
-cd ..
-
-fail=0
-
-# It should fail with a message something like this:
-# cp: `a' and `b/foo' are the same file
-cp -d a b 2>/dev/null
-
-# Fail this test if the exit status is not 1
-test $? = 1 || fail=1
-
-test "`cat a`" = $msg || fail=1
-
-(exit $fail); exit $fail
diff --git a/tests/cp/no-deref-link2.sh b/tests/cp/no-deref-link2.sh
new file mode 100755
index 0000000..25a8848
--- /dev/null
+++ b/tests/cp/no-deref-link2.sh
@@ -0,0 +1,39 @@
+#!/bin/sh
+# cp from 3.16 fails this test
+
+# Copyright (C) 1997-2016 Free Software Foundation, Inc.
+
+# This program is free software: you can redistribute it and/or modify
+# it under the terms of the GNU General Public License as published by
+# the Free Software Foundation, either version 3 of the License, or
+# (at your option) any later version.
+
+# This program is distributed in the hope that it will be useful,
+# but WITHOUT ANY WARRANTY; without even the implied warranty of
+# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
+# GNU General Public License for more details.
+
+# You should have received a copy of the GNU General Public License
+# along with this program. If not, see <http://www.gnu.org/licenses/>.
+
+. "${srcdir=.}/tests/init.sh"; path_prepend_ ./src
+print_ver_ cp
+
+mkdir b
+msg=bar
+echo $msg > a
+cd b
+ln -s ../a .
+cd ..
+
+
+# It should fail with a message something like this:
+# cp: 'a' and 'b/foo' are the same file
+cp -d a b 2>/dev/null
+
+# Fail this test if the exit status is not 1
+test $? = 1 || fail=1
+
+test "$(cat a)" = $msg || fail=1
+
+Exit $fail
diff --git a/tests/cp/no-deref-link3 b/tests/cp/no-deref-link3
deleted file mode 100755
index 98e2ae9..0000000
--- a/tests/cp/no-deref-link3
+++ /dev/null
@@ -1,56 +0,0 @@
-#!/bin/sh
-# FIXME: This test requires ln -s.
-# cp from 3.16 fails this test
-
-# Copyright (C) 1997, 1999, 2002, 2004, 2006 Free Software Foundation, Inc.
-
-# This program is free software; you can redistribute it and/or modify
-# it under the terms of the GNU General Public License as published by
-# the Free Software Foundation; either version 2 of the License, or
-# (at your option) any later version.
-
-# This program is distributed in the hope that it will be useful,
-# but WITHOUT ANY WARRANTY; without even the implied warranty of
-# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
-# GNU General Public License for more details.
-
-# You should have received a copy of the GNU General Public License
-# along with this program; if not, write to the Free Software
-# Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA
-# 02110-1301, USA.
-
-if test "$VERBOSE" = yes; then
- set -x
- cp --version
-fi
-
-pwd=`pwd`
-t0=`echo "$0"|sed 's,.*/,,'`.tmp; tmp=$t0/$$
-trap 'status=$?; cd "$pwd" && rm -rf $t0 && exit $status' 0
-trap '(exit $?); exit' 1 2 13 15
-
-framework_failure=0
-mkdir -p $tmp || framework_failure=1
-cd $tmp || framework_failure=1
-
-if test $framework_failure = 1; then
- echo "$0: failure in testing framework" 1>&2
- (exit 1); exit 1
-fi
-
-msg=bar
-echo $msg > a
-ln -s a b
-
-fail=0
-
-# It should fail with a message something like this:
-# cp: `a' and `b' are the same file
-cp -d a b 2>/dev/null
-
-# Fail this test if the exit status is not 1
-test $? = 1 || fail=1
-
-test "`cat a`" = $msg || fail=1
-
-(exit $fail); exit $fail
diff --git a/tests/cp/no-deref-link3.sh b/tests/cp/no-deref-link3.sh
new file mode 100755
index 0000000..897eb6b
--- /dev/null
+++ b/tests/cp/no-deref-link3.sh
@@ -0,0 +1,36 @@
+#!/bin/sh
+# cp from 3.16 fails this test
+
+# Copyright (C) 1997-2016 Free Software Foundation, Inc.
+
+# This program is free software: you can redistribute it and/or modify
+# it under the terms of the GNU General Public License as published by
+# the Free Software Foundation, either version 3 of the License, or
+# (at your option) any later version.
+
+# This program is distributed in the hope that it will be useful,
+# but WITHOUT ANY WARRANTY; without even the implied warranty of
+# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
+# GNU General Public License for more details.
+
+# You should have received a copy of the GNU General Public License
+# along with this program. If not, see <http://www.gnu.org/licenses/>.
+
+. "${srcdir=.}/tests/init.sh"; path_prepend_ ./src
+print_ver_ cp
+
+msg=bar
+echo $msg > a
+ln -s a b
+
+
+# It should fail with a message something like this:
+# cp: 'a' and 'b' are the same file
+cp -d a b 2>/dev/null
+
+# Fail this test if the exit status is not 1
+test $? = 1 || fail=1
+
+test "$(cat a)" = $msg || fail=1
+
+Exit $fail
diff --git a/tests/cp/parent-perm-race b/tests/cp/parent-perm-race
deleted file mode 100755
index d2870bc..0000000
--- a/tests/cp/parent-perm-race
+++ /dev/null
@@ -1,78 +0,0 @@
-#!/bin/sh
-# Make sure cp -pR --parents isn't too generous with parent permissions.
-
-# Copyright (C) 2006, 2007 Free Software Foundation, Inc.
-
-# This program is free software; you can redistribute it and/or modify
-# it under the terms of the GNU General Public License as published by
-# the Free Software Foundation; either version 2 of the License, or
-# (at your option) any later version.
-
-# This program is distributed in the hope that it will be useful,
-# but WITHOUT ANY WARRANTY; without even the implied warranty of
-# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
-# GNU General Public License for more details.
-
-# You should have received a copy of the GNU General Public License
-# along with this program; if not, write to the Free Software
-# Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA
-# 02110-1301, USA.
-
-if test "$VERBOSE" = yes; then
- set -x
- cp --version
-fi
-
-pwd=`pwd`
-t0=`echo "$0"|sed 's,.*/,,'`.tmp;tmp=$t0/$$
-trap 'status=$?; cd "$pwd" && rm -rf $t0 && exit $status' 0
-trap '(exit $?); exit' 1 2 13 15
-
-framework_failure=0
-mkdir -p $tmp || framework_failure=1
-cd $tmp || framework_failure=1
-
-umask 002
-mkdir mode ownership d || framework_failure=1
-chmod g+s d 2>/dev/null # The cp test is valid either way.
-
-fail=0
-
-for attr in mode ownership
-do
- mkfifo $attr/fifo || {
- echo "$0: fifos not supported; skipping this test." 1>&2
- (exit 77); exit 77
- }
-
- # Copy a fifo's contents. That way, we can examine d/$attr's
- # state while cp is running.
- cp --preserve=$attr -R --copy-contents --parents $attr d &
- cp_pid=$!
-
- (
- # Now 'cp' is reading the fifo.
- # Check the permissions of the temporary destination
- # directory that 'cp' has made.
- ls -ld d/$attr >d/$attr.ls
-
- # Close the fifo so that "cp" can continue. But output first,
- # before exiting, otherwise some shells would optimize away the file
- # descriptor that holds the fifo open.
- echo foo
- ) >$attr/fifo
-
- ls_output=`cat d/$attr.ls` || fail=1
- case $attr,$ls_output in
- ownership,d???--[-S]--[-S]* | \
- mode,d????-??-?* | \
- mode,d??[-x]?w[-x]?-[-x]* )
- ;;
- *)
- fail=1;;
- esac
-
- wait $cp_pid || fail=1
-done
-
-(exit $fail); exit $fail
diff --git a/tests/cp/parent-perm-race.sh b/tests/cp/parent-perm-race.sh
new file mode 100755
index 0000000..7a73740
--- /dev/null
+++ b/tests/cp/parent-perm-race.sh
@@ -0,0 +1,65 @@
+#!/bin/sh
+# Make sure cp -pR --parents isn't too generous with parent permissions.
+
+# Copyright (C) 2006-2016 Free Software Foundation, Inc.
+
+# This program is free software: you can redistribute it and/or modify
+# it under the terms of the GNU General Public License as published by
+# the Free Software Foundation, either version 3 of the License, or
+# (at your option) any later version.
+
+# This program is distributed in the hope that it will be useful,
+# but WITHOUT ANY WARRANTY; without even the implied warranty of
+# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
+# GNU General Public License for more details.
+
+# You should have received a copy of the GNU General Public License
+# along with this program. If not, see <http://www.gnu.org/licenses/>.
+
+. "${srcdir=.}/tests/init.sh"; path_prepend_ ./src
+print_ver_ cp
+
+# cp -p gives ENOTSUP on NFS on Linux 2.6.9 at least
+require_local_dir_
+
+umask 002
+mkdir mode ownership d || framework_failure_
+chmod g+s d 2>/dev/null # The cp test is valid either way.
+
+# Terminate any background cp process
+cleanup_() { kill $pid 2>/dev/null && wait $pid; }
+
+for attr in mode ownership
+do
+ mkfifo_or_skip_ $attr/fifo
+
+ # Copy a fifo's contents. That way, we can examine d/$attr's
+ # state while cp is running.
+ cp --preserve=$attr -R --copy-contents --parents $attr d & pid=$!
+
+ (
+ # Now 'cp' is reading the fifo.
+ # Check the permissions of the temporary destination
+ # directory that 'cp' has made.
+ ls -ld d/$attr >d/$attr.ls
+
+ # Close the fifo so that "cp" can continue. But output first,
+ # before exiting, otherwise some shells would optimize away the file
+ # descriptor that holds the fifo open.
+ echo foo
+ ) >$attr/fifo
+
+ ls_output=$(cat d/$attr.ls) || fail=1
+ case $attr,$ls_output in
+ ownership,d???--[-S]--[-S]* | \
+ mode,d????-??-?* | \
+ mode,d??[-x]?w[-x]?-[-x]* )
+ ;;
+ *)
+ fail=1;;
+ esac
+
+ wait $pid || fail=1
+done
+
+Exit $fail
diff --git a/tests/cp/parent-perm.sh b/tests/cp/parent-perm.sh
new file mode 100755
index 0000000..c5252a8
--- /dev/null
+++ b/tests/cp/parent-perm.sh
@@ -0,0 +1,53 @@
+#!/bin/sh
+# Ensure that cp --parents works properly with a preexisting dest. directory
+
+# Copyright (C) 2008-2016 Free Software Foundation, Inc.
+
+# This program is free software: you can redistribute it and/or modify
+# it under the terms of the GNU General Public License as published by
+# the Free Software Foundation, either version 3 of the License, or
+# (at your option) any later version.
+
+# This program is distributed in the hope that it will be useful,
+# but WITHOUT ANY WARRANTY; without even the implied warranty of
+# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
+# GNU General Public License for more details.
+
+# You should have received a copy of the GNU General Public License
+# along with this program. If not, see <http://www.gnu.org/licenses/>.
+
+. "${srcdir=.}/tests/init.sh"; path_prepend_ ./src
+print_ver_ cp
+
+working_umask_or_skip_
+# cp -p gives ENOTSUP on NFS on Linux 2.6.9 at least
+require_local_dir_
+
+mkdir -p a/b/c a/b/d e || framework_failure_
+touch a/b/c/foo a/b/d/foo || framework_failure_
+cp -p --parent a/b/c/foo e || framework_failure_
+
+# Make permissions of e/a different, so that we exercise the
+# code in cp -p --parents that propagates permissions even
+# to a destination directory that it doesn't create.
+chmod g-rx e/a e/a/b || framework_failure_
+
+cp -p --parent a/b/d/foo e || fail=1
+
+# Ensure that permissions on just-created directory, e/a/,
+# are the same as those on original, a/.
+
+# The sed filter maps any 's' from an inherited set-GID bit
+# to the usual 'x'. Otherwise, under unusual circumstances, this
+# test would fail with e.g., drwxr-sr-x != drwxr-xr-x .
+# For reference, the unusual circumstances is: build dir is set-gid,
+# so "a/" inherits that. However, when the user does not belong to
+# the group of the build directory, chmod ("a/e", 02755) returns 0,
+# yet fails to set the S_ISGID bit.
+for dir in a a/b a/b/d; do
+ test $(stat --printf %A $dir|sed s/s/x/g) \
+ = $(stat --printf %A e/$dir|sed s/s/x/g) ||
+ fail=1
+done
+
+Exit $fail
diff --git a/tests/cp/perm b/tests/cp/perm
deleted file mode 100755
index 502ce70..0000000
--- a/tests/cp/perm
+++ /dev/null
@@ -1,98 +0,0 @@
-#!/bin/sh
-# Make sure the permission-preserving code in copy.c (mv, cp, install) works.
-
-# Copyright (C) 2000, 2002, 2004, 2005, 2006 Free Software Foundation, Inc.
-
-# This program is free software; you can redistribute it and/or modify
-# it under the terms of the GNU General Public License as published by
-# the Free Software Foundation; either version 2 of the License, or
-# (at your option) any later version.
-
-# This program is distributed in the hope that it will be useful,
-# but WITHOUT ANY WARRANTY; without even the implied warranty of
-# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
-# GNU General Public License for more details.
-
-# You should have received a copy of the GNU General Public License
-# along with this program; if not, write to the Free Software
-# Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA
-# 02110-1301, USA.
-
-. $srcdir/../very-expensive
-
-if test "$VERBOSE" = yes; then
- set -x
- cp --version
- mv --version
-fi
-
-. $srcdir/../envvar-check
-
-pwd=`pwd`
-t0=`echo "$0"|sed 's,.*/,,'`.tmp;tmp=$t0/$$
-trap 'status=$?; cd "$pwd" && rm -rf $t0 && exit $status' 0
-trap '(exit $?); exit' 1 2 13 15
-
-framework_failure=0
-mkdir -p $tmp || framework_failure=1
-cd $tmp || framework_failure=1
-
-umask 037
-
-if test $framework_failure = 1; then
- echo 'failure in testing framework'
- exit 1
-fi
-
-fail=0
-
-# Now, try it with `mv', with combinations of --force, no-f and
-# existing-destination and not.
-for u in 31 37 2; do
- echo umask: $u
- umask $u
- for cmd in mv 'cp -p' cp; do
- for force in '' -f; do
- for existing_dest in yes no; do
- for g_perm in r w x rw wx xr rwx; do
- for o_perm in r w x rw wx xr rwx; do
- touch src || exit 1
- chmod u=r,g=rx,o= src || exit 1
- set _ `ls -l src`
- shift
- expected_perms=$1
- rm -f dest
- test $existing_dest = yes && {
- touch dest || exit 1
- chmod u=rw,g=$g_perm,o=$o_perm dest || exit 1
- }
- $cmd $force src dest || exit 1
- test "$cmd" = mv && test -f src && exit 1
- test "$cmd" = cp && { test -f src || exit 1; }
- set _ `ls -l dest`
- shift
-
- case "$cmd:$force:$existing_dest" in
- cp:*:yes)
- _g_perm=`echo rwx|sed 's/[^'$g_perm']/-/g'`
- _o_perm=`echo rwx|sed 's/[^'$o_perm']/-/g'`
- expected_perms=-rw-$_g_perm$_o_perm
- ;;
- cp:*:no)
- test $u = 37 &&
- expected_perms=`echo $expected_perms|sed 's/.....$/-----/'`
- test $u = 31 &&
- expected_perms=`echo $expected_perms|sed 's/..\(..\).$/--\1-/'`
- ;;
- esac
- test _$1 = _$expected_perms || exit 1
- # Perform only one iteration when there's no existing destination.
- test $existing_dest = no && break 3
- done
- done
- done
- done
- done
-done
-
-(exit $fail); exit $fail
diff --git a/tests/cp/perm.sh b/tests/cp/perm.sh
new file mode 100755
index 0000000..27877e1
--- /dev/null
+++ b/tests/cp/perm.sh
@@ -0,0 +1,77 @@
+#!/bin/sh
+# Make sure the permission-preserving code in copy.c (mv, cp, install) works.
+
+# Copyright (C) 2000-2016 Free Software Foundation, Inc.
+
+# This program is free software: you can redistribute it and/or modify
+# it under the terms of the GNU General Public License as published by
+# the Free Software Foundation, either version 3 of the License, or
+# (at your option) any later version.
+
+# This program is distributed in the hope that it will be useful,
+# but WITHOUT ANY WARRANTY; without even the implied warranty of
+# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
+# GNU General Public License for more details.
+
+# You should have received a copy of the GNU General Public License
+# along with this program. If not, see <http://www.gnu.org/licenses/>.
+
+. "${srcdir=.}/tests/init.sh"; path_prepend_ ./src
+print_ver_ cp mv
+
+very_expensive_
+
+umask 037
+
+
+# Now, try it with 'mv', with combinations of --force, no-f and
+# existing-destination and not.
+for u in 31 37 2; do
+ echo umask: $u
+ umask $u
+ for cmd in mv 'cp -p' cp; do
+ for force in '' -f; do
+ for existing_dest in yes no; do
+ for g_perm in r w x rw wx xr rwx; do
+ for o_perm in r w x rw wx xr rwx; do
+ touch src || exit 1
+ chmod u=r,g=rx,o= src || exit 1
+ expected_perms=$(stat --format=%A src)
+ rm -f dest
+ test $existing_dest = yes && {
+ touch dest || exit 1
+ chmod u=rw,g=$g_perm,o=$o_perm dest || exit 1
+ }
+ $cmd $force src dest || exit 1
+ test "$cmd" = mv && test -f src && exit 1
+ test "$cmd" = cp && { test -f src || exit 1; }
+ actual_perms=$(stat --format=%A dest)
+
+ case "$cmd:$force:$existing_dest" in
+ cp:*:yes)
+ _g_perm=$(echo rwx|sed 's/[^'$g_perm']/-/g')
+ _o_perm=$(echo rwx|sed 's/[^'$o_perm']/-/g')
+ expected_perms=-rw-$_g_perm$_o_perm
+ ;;
+ cp:*:no)
+ test $u = 37 &&
+ expected_perms=$(
+ echo $expected_perms | sed 's/.....$/-----/'
+ )
+ test $u = 31 &&
+ expected_perms=$(
+ echo $expected_perms | sed 's/..\(..\).$/--\1-/'
+ )
+ ;;
+ esac
+ test _$actual_perms = _$expected_perms || exit 1
+ # Perform only one iteration when there's no existing destination.
+ test $existing_dest = no && break 3
+ done
+ done
+ done
+ done
+ done
+done
+
+Exit $fail
diff --git a/tests/cp/preserve-2 b/tests/cp/preserve-2
deleted file mode 100755
index 85f9e1e..0000000
--- a/tests/cp/preserve-2
+++ /dev/null
@@ -1,45 +0,0 @@
-#!/bin/sh
-# ensure that cp's --preserve=X,Y option is parsed properly
-
-# Copyright (C) 2002, 2006 Free Software Foundation, Inc.
-
-# This program is free software; you can redistribute it and/or modify
-# it under the terms of the GNU General Public License as published by
-# the Free Software Foundation; either version 2 of the License, or
-# (at your option) any later version.
-
-# This program is distributed in the hope that it will be useful,
-# but WITHOUT ANY WARRANTY; without even the implied warranty of
-# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
-# GNU General Public License for more details.
-
-# You should have received a copy of the GNU General Public License
-# along with this program; if not, write to the Free Software
-# Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA
-# 02110-1301, USA.
-
-if test "$VERBOSE" = yes; then
- set -x
- cp --version
-fi
-
-pwd=`pwd`
-t0=`echo "$0"|sed 's,.*/,,'`.tmp; tmp=$t0/$$
-trap 'status=$?; cd "$pwd" && chmod -R u+rwx $t0 && rm -rf $t0 && exit $status' 0
-trap '(exit $?); exit $?' 1 2 13 15
-
-framework_failure=0
-mkdir -p $tmp || framework_failure=1
-cd $tmp || framework_failure=1
-touch f || framework_failure=1
-
-if test $framework_failure = 1; then
- echo "$0: failure in testing framework" 1>&2
- (exit 1); exit 1
-fi
-
-fail=0
-
-cp --preserve=mode,links f g || fail=1
-
-(exit $fail); exit $fail
diff --git a/tests/cp/preserve-2.sh b/tests/cp/preserve-2.sh
new file mode 100755
index 0000000..5a4655d
--- /dev/null
+++ b/tests/cp/preserve-2.sh
@@ -0,0 +1,29 @@
+#!/bin/sh
+# ensure that cp's --preserve=X,Y option is parsed properly
+
+# Copyright (C) 2002-2016 Free Software Foundation, Inc.
+
+# This program is free software: you can redistribute it and/or modify
+# it under the terms of the GNU General Public License as published by
+# the Free Software Foundation, either version 3 of the License, or
+# (at your option) any later version.
+
+# This program is distributed in the hope that it will be useful,
+# but WITHOUT ANY WARRANTY; without even the implied warranty of
+# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
+# GNU General Public License for more details.
+
+# You should have received a copy of the GNU General Public License
+# along with this program. If not, see <http://www.gnu.org/licenses/>.
+
+. "${srcdir=.}/tests/init.sh"; path_prepend_ ./src
+print_ver_ cp
+
+# cp -p gives ENOTSUP on NFS on Linux 2.6.9 at least
+require_local_dir_
+
+touch f || framework_failure_
+
+cp --preserve=mode,links f g || fail=1
+
+Exit $fail
diff --git a/tests/cp/preserve-gid.sh b/tests/cp/preserve-gid.sh
new file mode 100755
index 0000000..06d58b2
--- /dev/null
+++ b/tests/cp/preserve-gid.sh
@@ -0,0 +1,138 @@
+#!/bin/sh
+# Verify that cp -p preserves GID when it is possible.
+
+# Copyright (C) 2007-2016 Free Software Foundation, Inc.
+
+# This program is free software: you can redistribute it and/or modify
+# it under the terms of the GNU General Public License as published by
+# the Free Software Foundation, either version 3 of the License, or
+# (at your option) any later version.
+
+# This program is distributed in the hope that it will be useful,
+# but WITHOUT ANY WARRANTY; without even the implied warranty of
+# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
+# GNU General Public License for more details.
+
+# You should have received a copy of the GNU General Public License
+# along with this program. If not, see <http://www.gnu.org/licenses/>.
+
+. "${srcdir=.}/tests/init.sh"; path_prepend_ ./src
+print_ver_ cp
+
+require_root_
+
+# Some of the tests expect a umask that grants group and/or world read access.
+working_umask_or_skip_
+
+# Record primary group number, usually 0.
+# This is the group ID used when cp (without -p) creates a new file.
+primary_group_num=$(id -g)
+
+create() {
+ echo "$1" > "$1" || exit 1
+ chown "+$2:+$3" "$1" || exit 1
+}
+
+t0() {
+ f=$1; shift
+ u=$1; shift
+ g=$1; shift
+ rm -f b || exit 1
+ "$@" "$f" b || exit 1
+ s=$(stat -c '%u %g' b)
+ if test "x$s" != "x$u $g"; then
+ # Allow the actual group to match that of the parent directory
+ # (it was set to 0 above).
+ if test "x$s" = "x$u $primary_group_num"; then
+ :
+ else
+ echo "$0: $* $f b: $u $g != $s" 1>&2
+ Exit 1
+ fi
+ fi
+}
+
+nameless_uid=$($PERL -le '
+ foreach my $i (1000..16*1024-1)
+ {
+ getpwuid $i or (print $i), exit
+ }
+')
+nameless_gid1=$($PERL -le '
+ foreach my $i (1000..16*1024)
+ {
+ getgrgid $i or (print $i), exit
+ }
+')
+nameless_gid2=$($PERL -le '
+ foreach my $i ('"$nameless_gid1"'+1..16*1024)
+ {
+ getgrgid $i or (print $i), exit
+ }
+')
+
+if test -z "$nameless_uid" \
+ || test -z "$nameless_gid1" \
+ || test -z "$nameless_gid2"; then
+ skip_ "couldn't find a nameless UID or GID"
+fi
+
+chown "+$nameless_uid:+0" .
+
+create a0 0 0
+create b0 "$nameless_uid" "$nameless_gid1"
+create b1 "$nameless_uid" "$nameless_gid2"
+create c0 0 "$nameless_gid1"
+create c1 0 "$nameless_gid2"
+
+t0 a0 0 0 cp
+t0 b0 0 0 cp
+t0 b1 0 0 cp
+t0 c0 0 0 cp
+t0 c1 0 0 cp
+
+t0 a0 0 0 cp -p
+t0 b0 "$nameless_uid" "$nameless_gid1" cp -p
+t0 b1 "$nameless_uid" "$nameless_gid2" cp -p
+t0 c0 0 "$nameless_gid1" cp -p
+t0 c1 0 "$nameless_gid2" cp -p
+
+# For the remaining tests, we need a cp binary that is accessible to a user
+# with UID of $nameless_uid. The build directory may not be accessible,
+# so create a temporary directory and copy cp into it, ensure that
+# $nameless_uid can access it and then make that directory the search path.
+tmp_path=
+cleanup_() { rm -rf "$tmp_path"; }
+
+# Cause mktemp to create a directory directly under /tmp.
+# Setting TMPDIR explicitly is required here, in case $TMPDIR
+# is not readable by our nameless IDs.
+test -d /tmp && TMPDIR=/tmp
+tmp_path=$(mktemp -d) || fail_ "failed to create temporary directory"
+cp "$abs_path_dir_/cp" "$tmp_path"
+chmod -R a+rx "$tmp_path"
+
+t1() {
+ f=$1; shift
+ u=$1; shift
+ g=$1; shift
+ t0 "$f" "$u" "$g" \
+ chroot --skip-chdir \
+ --user=+$nameless_uid:+$nameless_gid1 \
+ --groups="+$nameless_gid1,+$nameless_gid2" \
+ / env PATH="$tmp_path" "$@"
+}
+
+t1 a0 "$nameless_uid" "$nameless_gid1" cp
+t1 b0 "$nameless_uid" "$nameless_gid1" cp
+t1 b1 "$nameless_uid" "$nameless_gid1" cp
+t1 c0 "$nameless_uid" "$nameless_gid1" cp
+t1 c1 "$nameless_uid" "$nameless_gid1" cp
+
+t1 a0 "$nameless_uid" "$nameless_gid1" cp -p
+t1 b0 "$nameless_uid" "$nameless_gid1" cp -p
+t1 b1 "$nameless_uid" "$nameless_gid2" cp -p
+t1 c0 "$nameless_uid" "$nameless_gid1" cp -p
+t1 c1 "$nameless_uid" "$nameless_gid2" cp -p
+
+Exit $fail
diff --git a/tests/cp/preserve-link.sh b/tests/cp/preserve-link.sh
new file mode 100755
index 0000000..0dafdb6
--- /dev/null
+++ b/tests/cp/preserve-link.sh
@@ -0,0 +1,92 @@
+#!/bin/sh
+# Exercise the fix for http://debbugs.gnu.org/8419
+
+# Copyright (C) 2011-2016 Free Software Foundation, Inc.
+
+# This program is free software: you can redistribute it and/or modify
+# it under the terms of the GNU General Public License as published by
+# the Free Software Foundation, either version 3 of the License, or
+# (at your option) any later version.
+
+# This program is distributed in the hope that it will be useful,
+# but WITHOUT ANY WARRANTY; without even the implied warranty of
+# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
+# GNU General Public License for more details.
+
+# You should have received a copy of the GNU General Public License
+# along with this program. If not, see <http://www.gnu.org/licenses/>.
+
+. "${srcdir=.}/tests/init.sh"; path_prepend_ ./src
+print_ver_ cp
+
+same_inode()
+{
+ local u v
+ u=$(stat --format %i "$1") &&
+ v=$(stat --format %i "$2") && test "$u" = "$v"
+}
+
+create_source_tree()
+{
+ rm -Rf s
+ mkdir s || framework_failure_
+
+ # a missing link in dest will be created
+ touch s/f || framework_failure_
+ ln s/f s/linkm || framework_failure_
+
+ # an existing link in dest will be maintained
+ ln s/f s/linke || framework_failure_
+
+ # a separate older file in dest will be overwritten
+ ln s/f s/fileo || framework_failure_
+
+ # a separate newer file in dest will be overwritten!
+ ln s/f s/fileu || framework_failure_
+}
+
+create_target_tree()
+{
+ f=$1 # which of f or linkm to create in t/
+
+ rm -Rf t
+ mkdir -p t/s/ || framework_failure_
+
+ # a missing link in dest must be created
+ touch t/s/$f || framework_failure_
+
+ # an existing link must be maintained
+ ln t/s/$f t/s/linke || framework_failure_
+
+ # a separate older file in dest will be overwritten
+ touch -d '-1 hour' t/s/fileo || framework_failure_
+
+ # a separate newer file in dest will be overwritten!
+ touch -d '+1 hour' t/s/fileu || framework_failure_
+}
+
+
+# Note we repeat this, creating either one of
+# two hard linked files from source in the dest, so as to
+# test both paths in $(cp) for creating the hard links.
+# The path taken by cp is dependent on which cp encounters
+# first in the source, which is non deterministic currently
+# (I'm guessing that results are sorted by inode and
+# beauses they're the same here, and due to the sort
+# being unstable, either can be processed first).
+create_source_tree
+
+for f in f linkm; do
+ create_target_tree $f
+
+ # Copy all the hard links across. With cp from coreutils-8.12
+ # and prior, it would sometimes mistakenly copy rather than link.
+ cp -au s t || fail=1
+
+ same_inode t/s/f t/s/linkm || fail=1
+ same_inode t/s/f t/s/linke || fail=1
+ same_inode t/s/f t/s/fileo || fail=1
+ same_inode t/s/f t/s/fileu || fail=1
+done
+
+Exit $fail
diff --git a/tests/cp/preserve-mode.sh b/tests/cp/preserve-mode.sh
new file mode 100755
index 0000000..13b9552
--- /dev/null
+++ b/tests/cp/preserve-mode.sh
@@ -0,0 +1,54 @@
+#!/bin/sh
+# ensure that cp's --no-preserve=mode works correctly
+
+# Copyright (C) 2002-2016 Free Software Foundation, Inc.
+
+# This program is free software: you can redistribute it and/or modify
+# it under the terms of the GNU General Public License as published by
+# the Free Software Foundation, either version 3 of the License, or
+# (at your option) any later version.
+
+# This program is distributed in the hope that it will be useful,
+# but WITHOUT ANY WARRANTY; without even the implied warranty of
+# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
+# GNU General Public License for more details.
+
+# You should have received a copy of the GNU General Public License
+# along with this program. If not, see <http://www.gnu.org/licenses/>.
+
+. "${srcdir=.}/tests/init.sh"; path_prepend_ ./src
+print_ver_ cp
+
+rm -f a b c
+umask 0022
+touch a
+touch b
+chmod 600 b
+
+#regular file test
+cp --no-preserve=mode b c || fail=1
+mode_a=$(ls -l a | gawk '{print $1}')
+mode_c=$(ls -l c | gawk '{print $1}')
+test "$mode_a" = "$mode_c" || fail=1
+
+rm -rf d1 d2 d3
+mkdir d1 d2
+chmod 705 d2
+
+#directory test
+cp --no-preserve=mode -r d2 d3 || fail=1
+mode_d1=$(ls -l d1 | gawk '{print $1}')
+mode_d3=$(ls -l d3 | gawk '{print $1}')
+test "$mode_d1" = "$mode_d3" || fail=1
+
+rm -f a b c
+touch a
+chmod 600 a
+
+#contradicting options test
+cp --no-preserve=mode --preserve=all a b || fail=1
+mode_a=$(ls -l a | gawk '{print $1}')
+mode_b=$(ls -l b | gawk '{print $1}')
+test "$mode_a" = "$mode_b" || fail=1
+
+Exit $fail
diff --git a/tests/cp/preserve-slink-time.sh b/tests/cp/preserve-slink-time.sh
new file mode 100755
index 0000000..3054d79
--- /dev/null
+++ b/tests/cp/preserve-slink-time.sh
@@ -0,0 +1,51 @@
+#!/bin/sh
+# Verify that cp -Pp preserves times even on symlinks.
+
+# Copyright (C) 2009-2016 Free Software Foundation, Inc.
+
+# This program is free software: you can redistribute it and/or modify
+# it under the terms of the GNU General Public License as published by
+# the Free Software Foundation, either version 3 of the License, or
+# (at your option) any later version.
+
+# This program is distributed in the hope that it will be useful,
+# but WITHOUT ANY WARRANTY; without even the implied warranty of
+# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
+# GNU General Public License for more details.
+
+# You should have received a copy of the GNU General Public License
+# along with this program. If not, see <http://www.gnu.org/licenses/>.
+
+. "${srcdir=.}/tests/init.sh"; path_prepend_ ./src
+print_ver_ cp
+
+grep '^#define HAVE_UTIMENSAT 1' "$CONFIG_HEADER" > /dev/null ||
+grep '^#define HAVE_LUTIMES 1' "$CONFIG_HEADER" > /dev/null ||
+ skip_ 'this system lacks the utimensat function'
+
+ln -s no-such dangle || framework_failure_
+
+# If the current file system lacks sub-second resolution, sleep for 2s to
+# ensure that the times on the copy are different from those of the original.
+case $(stat --format=%y dangle) in
+ ??:??:??.000000000) sleep 2;;
+esac
+
+copy_timestamp_() {
+ sleep $1
+ rm -f d2
+ cp -Pp dangle d2 || framework_failure_
+ # Can't use --format=%x, as lstat() modifies atime on some platforms.
+ stat --format=%y dangle > t1 || framework_failure_
+ stat --format=%y d2 > t2 || framework_failure_
+ compare t1 t2
+}
+
+# We retry with a delay at least 1.5s because on GPFS
+# it was seen that the timestamp wasn't updated unless there
+# was sufficient delay between the ln and cp.
+# I.e., if there wasn't sufficient difference in
+# the timestamp being updated, the update was discarded.
+retry_delay_ copy_timestamp_ .1 4 || fail=1
+
+Exit $fail
diff --git a/tests/cp/proc-short-read.sh b/tests/cp/proc-short-read.sh
new file mode 100755
index 0000000..4d65374
--- /dev/null
+++ b/tests/cp/proc-short-read.sh
@@ -0,0 +1,40 @@
+#!/bin/sh
+# exercise cp's short-read failure when operating on >4KB files in /proc
+
+# Copyright (C) 2009-2016 Free Software Foundation, Inc.
+
+# This program is free software: you can redistribute it and/or modify
+# it under the terms of the GNU General Public License as published by
+# the Free Software Foundation, either version 3 of the License, or
+# (at your option) any later version.
+
+# This program is distributed in the hope that it will be useful,
+# but WITHOUT ANY WARRANTY; without even the implied warranty of
+# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
+# GNU General Public License for more details.
+
+# You should have received a copy of the GNU General Public License
+# along with this program. If not, see <http://www.gnu.org/licenses/>.
+
+. "${srcdir=.}/tests/init.sh"; path_prepend_ ./src
+print_ver_ cp
+
+kall=/proc/kallsyms
+
+test -r $kall || skip_ "your system lacks $kall"
+
+# Before coreutils-7.3, cp would copy less than 4KiB of this 1MB+ file.
+cp $kall 1 || fail=1
+cat $kall > 2 || fail=1
+compare 1 2 || fail=1
+
+# Also check md5sum, just for good measure.
+md5sum $kall > 3 || fail=1
+md5sum 2 > 4 || fail=1
+
+# Remove each file name before comparing checksums.
+sed 's/ .*//' 3 > sum.proc || fail=1
+sed 's/ .*//' 4 > sum.2 || fail=1
+compare sum.proc sum.2 || fail=1
+
+Exit $fail
diff --git a/tests/cp/proc-zero-len.sh b/tests/cp/proc-zero-len.sh
new file mode 100755
index 0000000..78aa320
--- /dev/null
+++ b/tests/cp/proc-zero-len.sh
@@ -0,0 +1,47 @@
+#!/bin/sh
+# Ensure that cp copies contents of non-empty "regular" file with st_size==0
+
+# Copyright (C) 2007-2016 Free Software Foundation, Inc.
+
+# This program is free software: you can redistribute it and/or modify
+# it under the terms of the GNU General Public License as published by
+# the Free Software Foundation, either version 3 of the License, or
+# (at your option) any later version.
+
+# This program is distributed in the hope that it will be useful,
+# but WITHOUT ANY WARRANTY; without even the implied warranty of
+# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
+# GNU General Public License for more details.
+
+# You should have received a copy of the GNU General Public License
+# along with this program. If not, see <http://www.gnu.org/licenses/>.
+
+. "${srcdir=.}/tests/init.sh"; path_prepend_ ./src
+print_ver_ cp
+
+touch empty || framework_failure_
+
+f=/proc/cpuinfo
+test -r $f || f=empty
+
+cat $f > out || fail=1
+
+# With coreutils-6.9, this would create a zero-length "exp" file.
+# Skip this test on architectures like aarch64 where the inode
+# number of the file changed during the cp run.
+cp $f exp 2>err \
+ || { fail=1;
+ grep 'replaced while being copied' err \
+ && skip_ "File $f is being replaced while being copied"; }
+
+# Don't simply compare contents; they might differ,
+# e.g., if CPU freq changes between cat and cp invocations.
+# Instead, simply compare whether they're both nonempty.
+test -s out \
+ && { rm -f out; echo nonempty > out; }
+test -s exp \
+ && { rm -f exp; echo nonempty > exp; }
+
+compare exp out || fail=1
+
+Exit $fail
diff --git a/tests/cp/r-vs-symlink b/tests/cp/r-vs-symlink
deleted file mode 100755
index 9601fb6..0000000
--- a/tests/cp/r-vs-symlink
+++ /dev/null
@@ -1,61 +0,0 @@
-#!/bin/sh
-# cp -r should not create symlinks. Fixed in fileutils-4.1.5.
-
-# Copyright (C) 2001, 2002, 2004, 2006 Free Software Foundation, Inc.
-
-# This program is free software; you can redistribute it and/or modify
-# it under the terms of the GNU General Public License as published by
-# the Free Software Foundation; either version 2 of the License, or
-# (at your option) any later version.
-
-# This program is distributed in the hope that it will be useful,
-# but WITHOUT ANY WARRANTY; without even the implied warranty of
-# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
-# GNU General Public License for more details.
-
-# You should have received a copy of the GNU General Public License
-# along with this program; if not, write to the Free Software
-# Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA
-# 02110-1301, USA.
-
-# Restored old behavior (whereby cp -r preserves symlinks) in 4.1.6,
-# though now such usage evokes a warning:
-# cp: `slink': WARNING: using -r to copy symbolic links is not portable
-
-if test "$VERBOSE" = yes; then
- set -x
- cp --version
-fi
-
-. $srcdir/../envvar-check
-
-pwd=`pwd`
-t0=`echo "$0"|sed 's,.*/,,'`.tmp;tmp=$t0/$$
-trap 'status=$?; cd "$pwd" && rm -rf $t0 && exit $status' 0
-trap '(exit $?); exit' 1 2 13 15
-
-framework_failure=0
-mkdir -p $tmp || framework_failure=1
-cd $tmp || framework_failure=1
-echo abc > foo || framework_failure=1
-ln -s foo slink || framework_failure=1
-ln -s no-such-file no-file || framework_failure=1
-
-if test $framework_failure = 1; then
- echo "$0: failure in testing framework" 1>&2
- (exit 1); exit 1
-fi
-
-fail=0
-
-# This would fail in 4.1.5, not in 4.1.6.
-cp -r no-file junk 2>/dev/null || fail=1
-
-cp -r slink bar 2>/dev/null || fail=1
-set x `ls -l bar`; shift; mode=$1
-case $mode in
- l*) ;;
- *) fail=1;;
-esac
-
-(exit $fail); exit $fail
diff --git a/tests/cp/r-vs-symlink.sh b/tests/cp/r-vs-symlink.sh
new file mode 100755
index 0000000..377fefd
--- /dev/null
+++ b/tests/cp/r-vs-symlink.sh
@@ -0,0 +1,41 @@
+#!/bin/sh
+# cp -r should not create symlinks. Fixed in fileutils-4.1.5.
+
+# Copyright (C) 2001-2016 Free Software Foundation, Inc.
+
+# This program is free software: you can redistribute it and/or modify
+# it under the terms of the GNU General Public License as published by
+# the Free Software Foundation, either version 3 of the License, or
+# (at your option) any later version.
+
+# This program is distributed in the hope that it will be useful,
+# but WITHOUT ANY WARRANTY; without even the implied warranty of
+# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
+# GNU General Public License for more details.
+
+# You should have received a copy of the GNU General Public License
+# along with this program. If not, see <http://www.gnu.org/licenses/>.
+
+# Restored old behavior (whereby cp -r preserves symlinks) in 4.1.6,
+# though now such usage evokes a warning:
+# cp: 'slink': WARNING: using -r to copy symbolic links is not portable
+
+. "${srcdir=.}/tests/init.sh"; path_prepend_ ./src
+print_ver_ cp
+
+echo abc > foo || framework_failure_
+ln -s foo slink || framework_failure_
+ln -s no-such-file no-file || framework_failure_
+
+
+# This would fail in 4.1.5, not in 4.1.6.
+cp -r no-file junk 2>/dev/null || fail=1
+
+cp -r slink bar 2>/dev/null || fail=1
+set x $(ls -l bar); shift; mode=$1
+case $mode in
+ l*) ;;
+ *) fail=1;;
+esac
+
+Exit $fail
diff --git a/tests/cp/reflink-auto.sh b/tests/cp/reflink-auto.sh
new file mode 100755
index 0000000..4175a17
--- /dev/null
+++ b/tests/cp/reflink-auto.sh
@@ -0,0 +1,41 @@
+#!/bin/sh
+# Test cp --reflink=auto
+
+# Copyright (C) 2009-2016 Free Software Foundation, Inc.
+
+# This program is free software: you can redistribute it and/or modify
+# it under the terms of the GNU General Public License as published by
+# the Free Software Foundation, either version 3 of the License, or
+# (at your option) any later version.
+
+# This program is distributed in the hope that it will be useful,
+# but WITHOUT ANY WARRANTY; without even the implied warranty of
+# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
+# GNU General Public License for more details.
+
+# You should have received a copy of the GNU General Public License
+# along with this program. If not, see <http://www.gnu.org/licenses/>.
+
+. "${srcdir=.}/tests/init.sh"; path_prepend_ ./src
+print_ver_ cp
+
+cleanup_() { rm -rf "$other_partition_tmpdir"; }
+. "$abs_srcdir/tests/other-fs-tmpdir"
+a_other="$other_partition_tmpdir/a"
+rm -f "$a_other" || framework_failure_
+
+echo non_zero_size > "$a_other" || framework_failure_
+
+# we shouldn't be able to reflink() files on separate partitions
+returns_ 1 cp --reflink "$a_other" b || fail=1
+
+# --reflink=auto should fall back to a normal copy
+cp --reflink=auto "$a_other" b || fail=1
+test -s b || fail=1
+
+# --reflink=auto should allow --sparse for fallback copies.
+# This command can be used to create minimal sized copies.
+cp --reflink=auto --sparse=always "$a_other" b || fail=1
+test -s b || fail=1
+
+Exit $fail
diff --git a/tests/cp/reflink-perm.sh b/tests/cp/reflink-perm.sh
new file mode 100755
index 0000000..13a8a55
--- /dev/null
+++ b/tests/cp/reflink-perm.sh
@@ -0,0 +1,45 @@
+#!/bin/sh
+# Test cp --reflink copies permissions
+
+# Copyright (C) 2009-2016 Free Software Foundation, Inc.
+
+# This program is free software: you can redistribute it and/or modify
+# it under the terms of the GNU General Public License as published by
+# the Free Software Foundation, either version 3 of the License, or
+# (at your option) any later version.
+
+# This program is distributed in the hope that it will be useful,
+# but WITHOUT ANY WARRANTY; without even the implied warranty of
+# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
+# GNU General Public License for more details.
+
+# You should have received a copy of the GNU General Public License
+# along with this program. If not, see <http://www.gnu.org/licenses/>.
+
+. "${srcdir=.}/tests/init.sh"; path_prepend_ ./src
+print_ver_ cp
+
+
+> time_check
+> file
+ts='2009-08-28 19:00'
+touch -d "$ts" file || framework_failure_
+test time_check -nt file || skip_ "The system clock is wrong"
+
+chmod a=rwx file || framework_failure_
+umask 077
+cp --reflink=auto --preserve file copy || fail=1
+
+mode=$(stat --printf "%A" copy)
+test "$mode" = "-rwxrwxrwx" || fail=1
+
+test copy -nt file && fail=1
+
+# Ensure that --attributes-only overrides --reflink completely
+echo > file2 # file with data
+cp --reflink=auto --preserve --attributes-only file2 empty_copy || fail=1
+compare /dev/null empty_copy || fail=1
+cp --reflink=always --preserve --attributes-only file2 empty_copy || fail=1
+compare /dev/null empty_copy || fail=1
+
+Exit $fail
diff --git a/tests/cp/same-file b/tests/cp/same-file
deleted file mode 100755
index 44d5dd7..0000000
--- a/tests/cp/same-file
+++ /dev/null
@@ -1,213 +0,0 @@
-#!/bin/sh
-# Test some of cp's options and how cp handles situations in
-# which a naive implementation might overwrite the source file.
-
-# Copyright (C) 1998, 1999, 2000, 2002, 2003, 2004, 2006 Free Software
-# Foundation, Inc.
-
-# This program is free software; you can redistribute it and/or modify
-# it under the terms of the GNU General Public License as published by
-# the Free Software Foundation; either version 2 of the License, or
-# (at your option) any later version.
-
-# This program is distributed in the hope that it will be useful,
-# but WITHOUT ANY WARRANTY; without even the implied warranty of
-# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
-# GNU General Public License for more details.
-
-# You should have received a copy of the GNU General Public License
-# along with this program; if not, write to the Free Software
-# Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA
-# 02110-1301, USA.
-
-if test "$VERBOSE" = yes; then
- set -x
- cp --version
-fi
-
-. $srcdir/../lang-default
-. $srcdir/../envvar-check
-
-# Unset CDPATH. Otherwise, output from the `cd dir' command
-# can make this test fail.
-(unset CDPATH) >/dev/null 2>&1 && unset CDPATH
-
-VERSION_CONTROL=numbered; export VERSION_CONTROL
-
-pwd=`pwd`
-t0=`echo "$0"|sed 's,.*/,,'`.tmp;tmp=$t0/$$
-trap 'status=$?; cd "$pwd" && exec 1>&2; rm -rf $t0 && exit $status' 0
-trap 'exit $?' 1 2 13 15
-
-framework_failure=0
-mkdir -p $tmp || framework_failure=1
-cd $tmp || framework_failure=1
-
-if test $framework_failure = 1; then
- echo 'failure in testing framework'
- exit 1
-fi
-
-actual=actual-$$
-expected=expected-$$
-
-exec 1> $actual
-
-# FIXME: This should be bigger: like more than 8k
-contents=XYZ
-
-for args in 'foo symlink' 'symlink foo' 'foo foo' 'sl1 sl2' 'foo hardlink'; do
- for options in '' -d -f -df --rem -b -bd -bf -bdf \
- -l -dl -fl -dfl -bl -bdl -bfl -bdfl; do
- case $args$options in
- # These tests are not portable.
- # They all involve making a hard link to a symbolic link.
- 'symlink foo'-dfl)
- continue;;
- 'symlink foo'-bdl)
- continue;;
- 'symlink foo'-bdfl)
- continue;;
- 'sl1 sl2'-dfl)
- continue;;
- 'sl1 sl2'-bd*l)
- continue;;
- 'sl1 sl2'-dl)
- continue;;
- esac
- rm -rf dir
- mkdir dir
- cd dir
- echo $contents > foo
- case "$args" in *symlink*) ln -s foo symlink ;; esac
- case "$args" in *hardlink*) ln foo hardlink ;; esac
- case "$args" in *sl1*) ln -s foo sl1;; esac
- case "$args" in *sl2*) ln -s foo sl2;; esac
- (
- (
- # echo 1>&2 cp $options $args
- cp $options $args 2>_err
- echo $? $options
-
- # Normalize the program name in the error output,
- # and put brackets around the output.
- test -s _err && echo "[`sed 's/^[^:][^:]*:/cp:/' _err`]"
- # Strip off all but the file names.
- ls="`ls -gG --ignore=_err . \
- | sed \
- -e '/^total /d' \
- -e 's/^[^ ]* *[^ ]* *[^ ]* *[^ ]* *[^ ]* *[^ ]* *//'`"
- echo "($ls)"
- # Make sure the original is unchanged and that
- # the destination is a copy.
- for f in $args; do
- if test -f $f; then
- case "`cat $f`" in
- "$contents") ;;
- *) echo cp FAILED;;
- esac
- else
- echo symlink-loop
- fi
- done
- ) | tr '\n' ' '
- echo
- ) | sed 's/ *$//'
- cd ..
- done
- echo
-done
-
-cat <<\EOF > $expected
-1 [cp: `foo' and `symlink' are the same file] (foo symlink -> foo)
-1 -d [cp: `foo' and `symlink' are the same file] (foo symlink -> foo)
-1 -f [cp: `foo' and `symlink' are the same file] (foo symlink -> foo)
-1 -df [cp: `foo' and `symlink' are the same file] (foo symlink -> foo)
-0 --rem (foo symlink)
-0 -b (foo symlink symlink.~1~ -> foo)
-0 -bd (foo symlink symlink.~1~ -> foo)
-0 -bf (foo symlink symlink.~1~ -> foo)
-0 -bdf (foo symlink symlink.~1~ -> foo)
-0 -l (foo symlink -> foo)
-0 -dl (foo symlink -> foo)
-0 -fl (foo symlink -> foo)
-0 -dfl (foo symlink)
-0 -bl (foo symlink -> foo)
-0 -bdl (foo symlink symlink.~1~ -> foo)
-0 -bfl (foo symlink -> foo)
-0 -bdfl (foo symlink symlink.~1~ -> foo)
-
-1 [cp: `symlink' and `foo' are the same file] (foo symlink -> foo)
-1 -d [cp: `symlink' and `foo' are the same file] (foo symlink -> foo)
-1 -f [cp: `symlink' and `foo' are the same file] (foo symlink -> foo)
-1 -df [cp: `symlink' and `foo' are the same file] (foo symlink -> foo)
-1 --rem [cp: `symlink' and `foo' are the same file] (foo symlink -> foo)
-1 -b [cp: `symlink' and `foo' are the same file] (foo symlink -> foo)
-0 -bd (foo -> foo foo.~1~ symlink -> foo) symlink-loop symlink-loop
-1 -bf [cp: `symlink' and `foo' are the same file] (foo symlink -> foo)
-0 -bdf (foo -> foo foo.~1~ symlink -> foo) symlink-loop symlink-loop
-0 -l (foo symlink -> foo)
-0 -dl (foo symlink -> foo)
-0 -fl (foo symlink -> foo)
-0 -bl (foo symlink -> foo)
-0 -bfl (foo symlink -> foo)
-
-1 [cp: `foo' and `foo' are the same file] (foo)
-1 -d [cp: `foo' and `foo' are the same file] (foo)
-1 -f [cp: `foo' and `foo' are the same file] (foo)
-1 -df [cp: `foo' and `foo' are the same file] (foo)
-1 --rem [cp: `foo' and `foo' are the same file] (foo)
-1 -b [cp: `foo' and `foo' are the same file] (foo)
-1 -bd [cp: `foo' and `foo' are the same file] (foo)
-0 -bf (foo foo.~1~)
-0 -bdf (foo foo.~1~)
-0 -l (foo)
-0 -dl (foo)
-0 -fl (foo)
-0 -dfl (foo)
-0 -bl (foo)
-0 -bdl (foo)
-0 -bfl (foo foo.~1~)
-0 -bdfl (foo foo.~1~)
-
-1 [cp: `sl1' and `sl2' are the same file] (foo sl1 -> foo sl2 -> foo)
-0 -d (foo sl1 -> foo sl2 -> foo)
-1 -f [cp: `sl1' and `sl2' are the same file] (foo sl1 -> foo sl2 -> foo)
-0 -df (foo sl1 -> foo sl2 -> foo)
-0 --rem (foo sl1 -> foo sl2)
-0 -b (foo sl1 -> foo sl2 sl2.~1~ -> foo)
-0 -bd (foo sl1 -> foo sl2 -> foo sl2.~1~ -> foo)
-0 -bf (foo sl1 -> foo sl2 sl2.~1~ -> foo)
-0 -bdf (foo sl1 -> foo sl2 -> foo sl2.~1~ -> foo)
-0 -l (foo sl1 -> foo sl2 -> foo)
-0 -fl (foo sl1 -> foo sl2 -> foo)
-0 -bl (foo sl1 -> foo sl2 -> foo)
-0 -bfl (foo sl1 -> foo sl2 -> foo)
-
-1 [cp: `foo' and `hardlink' are the same file] (foo hardlink)
-1 -d [cp: `foo' and `hardlink' are the same file] (foo hardlink)
-1 -f [cp: `foo' and `hardlink' are the same file] (foo hardlink)
-1 -df [cp: `foo' and `hardlink' are the same file] (foo hardlink)
-0 --rem (foo hardlink)
-0 -b (foo hardlink hardlink.~1~)
-0 -bd (foo hardlink hardlink.~1~)
-0 -bf (foo hardlink hardlink.~1~)
-0 -bdf (foo hardlink hardlink.~1~)
-0 -l (foo hardlink)
-0 -dl (foo hardlink)
-0 -fl (foo hardlink)
-0 -dfl (foo hardlink)
-0 -bl (foo hardlink)
-0 -bdl (foo hardlink)
-0 -bfl (foo hardlink)
-0 -bdfl (foo hardlink)
-
-EOF
-
-fail=0;
-
-# Some folks don't have diff.
-cmp $expected $actual \
- || { diff -c $expected $actual 1>&2; fail=1; }
-
-(exit $fail); exit $fail
diff --git a/tests/cp/same-file.sh b/tests/cp/same-file.sh
new file mode 100755
index 0000000..00abbbe
--- /dev/null
+++ b/tests/cp/same-file.sh
@@ -0,0 +1,242 @@
+#!/bin/sh
+# Test some of cp's options and how cp handles situations in
+# which a naive implementation might overwrite the source file.
+
+# Copyright (C) 1998-2016 Free Software Foundation, Inc.
+
+# This program is free software: you can redistribute it and/or modify
+# it under the terms of the GNU General Public License as published by
+# the Free Software Foundation, either version 3 of the License, or
+# (at your option) any later version.
+
+# This program is distributed in the hope that it will be useful,
+# but WITHOUT ANY WARRANTY; without even the implied warranty of
+# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
+# GNU General Public License for more details.
+
+# You should have received a copy of the GNU General Public License
+# along with this program. If not, see <http://www.gnu.org/licenses/>.
+
+. "${srcdir=.}/tests/init.sh"; path_prepend_ ./src
+print_ver_ cp
+
+# Unset CDPATH. Otherwise, output from the 'cd dir' command
+# can make this test fail.
+(unset CDPATH) >/dev/null 2>&1 && unset CDPATH
+
+VERSION_CONTROL=numbered; export VERSION_CONTROL
+
+# Determine whether a hard link to a symlink points to the symlink
+# itself or to its referent. For example, the link from FreeBSD6.1
+# does dereference a symlink, but the one from Linux does not.
+ln -s no-such dangling-slink
+ln dangling-slink hard-link > /dev/null 2>&1 \
+ && hard_link_to_symlink_does_the_deref=no \
+ || hard_link_to_symlink_does_the_deref=yes
+rm -f no-such dangling-slink hard-link
+
+test $hard_link_to_symlink_does_the_deref = yes \
+ && remove_these_sed='/^0 -[bf]*l .*sl1 ->/d; /hlsl/d' \
+ || remove_these_sed='/^ELIDE NO TEST OUTPUT/d'
+
+exec 3>&1 1> actual
+
+# FIXME: This should be bigger: like more than 8k
+contents=XYZ
+
+for args in 'foo symlink' 'symlink foo' 'foo foo' 'sl1 sl2' \
+ 'foo hardlink' 'hlsl sl2'; do
+ for options in '' -d -f -df --rem -b -bd -bf -bdf \
+ -l -dl -fl -dfl -bl -bdl -bfl -bdfl; do
+ case $args$options in
+ # These tests are not portable.
+ # They all involve making a hard link to a symbolic link.
+ # In the past, we've skipped the tests that are not portable,
+ # by doing "continue" here and eliminating the corresponding
+ # expected output lines below. Don't do that anymore.
+ 'symlink foo'-dfl)
+ continue;;
+ 'symlink foo'-bdl)
+ continue;;
+ 'symlink foo'-bdfl)
+ continue;;
+ 'sl1 sl2'-dfl)
+ continue;;
+ 'sl1 sl2'-bd*l)
+ continue;;
+ 'sl1 sl2'-dl)
+ continue;;
+ esac
+
+ # cont'd Instead, skip them only on systems for which link does
+ # dereference a symlink. Detect and skip such tests here.
+ case $hard_link_to_symlink_does_the_deref:$args:$options in
+ 'yes:sl1 sl2:-fl')
+ continue ;;
+ 'yes:sl1 sl2:-bl')
+ continue ;;
+ 'yes:sl1 sl2:-bfl')
+ continue ;;
+ yes:hlsl*)
+ continue ;;
+ esac
+
+ rm -rf dir
+ mkdir dir
+ cd dir
+ echo $contents > foo
+ case "$args" in *symlink*) ln -s foo symlink ;; esac
+ case "$args" in *hardlink*) ln foo hardlink ;; esac
+ case "$args" in *sl1*) ln -s foo sl1;; esac
+ case "$args" in *sl2*) ln -s foo sl2;; esac
+ case "$args" in *hlsl*) ln sl2 hlsl;; esac
+ (
+ (
+ # echo 1>&2 cp $options $args
+ cp $options $args 2>_err
+ echo $? $options
+
+ # Normalize the program name and diagnostics in the error output,
+ # and put brackets around the output.
+ if test -s _err; then
+ sed '
+ s/^[^:]*:\([^:]*\).*/cp:\1/
+ 1s/^/[/
+ $s/$/]/
+ ' _err
+ fi
+ # Strip off all but the file names.
+ ls=$(ls -gG --ignore=_err . \
+ | sed \
+ -e '/^total /d' \
+ -e 's/^[^ ]* *[^ ]* *[^ ]* *[^ ]* *[^ ]* *[^ ]* *//')
+ echo "($ls)"
+ # Make sure the original is unchanged and that
+ # the destination is a copy.
+ for f in $args; do
+ if test -f $f; then
+ case "$(cat $f)" in
+ "$contents") ;;
+ *) echo cp FAILED;;
+ esac
+ else
+ echo symlink-loop
+ fi
+ done
+ ) | tr '\n' ' '
+ echo
+ ) | sed 's/ *$//'
+ cd ..
+ done
+ echo
+done
+
+cat <<\EOF | sed "$remove_these_sed" > expected
+1 [cp: 'foo' and 'symlink' are the same file] (foo symlink -> foo)
+1 -d [cp: 'foo' and 'symlink' are the same file] (foo symlink -> foo)
+1 -f [cp: 'foo' and 'symlink' are the same file] (foo symlink -> foo)
+1 -df [cp: 'foo' and 'symlink' are the same file] (foo symlink -> foo)
+0 --rem (foo symlink)
+0 -b (foo symlink symlink.~1~ -> foo)
+0 -bd (foo symlink symlink.~1~ -> foo)
+0 -bf (foo symlink symlink.~1~ -> foo)
+0 -bdf (foo symlink symlink.~1~ -> foo)
+1 -l [cp: cannot create hard link 'symlink' to 'foo'] (foo symlink -> foo)
+0 -dl (foo symlink -> foo)
+0 -fl (foo symlink)
+0 -dfl (foo symlink)
+0 -bl (foo symlink symlink.~1~ -> foo)
+0 -bdl (foo symlink symlink.~1~ -> foo)
+0 -bfl (foo symlink symlink.~1~ -> foo)
+0 -bdfl (foo symlink symlink.~1~ -> foo)
+
+1 [cp: 'symlink' and 'foo' are the same file] (foo symlink -> foo)
+1 -d [cp: 'symlink' and 'foo' are the same file] (foo symlink -> foo)
+1 -f [cp: 'symlink' and 'foo' are the same file] (foo symlink -> foo)
+1 -df [cp: 'symlink' and 'foo' are the same file] (foo symlink -> foo)
+1 --rem [cp: 'symlink' and 'foo' are the same file] (foo symlink -> foo)
+1 -b [cp: 'symlink' and 'foo' are the same file] (foo symlink -> foo)
+0 -bd (foo -> foo foo.~1~ symlink -> foo) symlink-loop symlink-loop
+1 -bf [cp: 'symlink' and 'foo' are the same file] (foo symlink -> foo)
+0 -bdf (foo -> foo foo.~1~ symlink -> foo) symlink-loop symlink-loop
+0 -l (foo symlink -> foo)
+0 -dl (foo symlink -> foo)
+0 -fl (foo symlink -> foo)
+0 -bl (foo symlink -> foo)
+0 -bfl (foo symlink -> foo)
+
+1 [cp: 'foo' and 'foo' are the same file] (foo)
+1 -d [cp: 'foo' and 'foo' are the same file] (foo)
+1 -f [cp: 'foo' and 'foo' are the same file] (foo)
+1 -df [cp: 'foo' and 'foo' are the same file] (foo)
+1 --rem [cp: 'foo' and 'foo' are the same file] (foo)
+1 -b [cp: 'foo' and 'foo' are the same file] (foo)
+1 -bd [cp: 'foo' and 'foo' are the same file] (foo)
+0 -bf (foo foo.~1~)
+0 -bdf (foo foo.~1~)
+0 -l (foo)
+0 -dl (foo)
+0 -fl (foo)
+0 -dfl (foo)
+0 -bl (foo)
+0 -bdl (foo)
+0 -bfl (foo foo.~1~)
+0 -bdfl (foo foo.~1~)
+
+1 [cp: 'sl1' and 'sl2' are the same file] (foo sl1 -> foo sl2 -> foo)
+0 -d (foo sl1 -> foo sl2 -> foo)
+1 -f [cp: 'sl1' and 'sl2' are the same file] (foo sl1 -> foo sl2 -> foo)
+0 -df (foo sl1 -> foo sl2 -> foo)
+0 --rem (foo sl1 -> foo sl2)
+0 -b (foo sl1 -> foo sl2 sl2.~1~ -> foo)
+0 -bd (foo sl1 -> foo sl2 -> foo sl2.~1~ -> foo)
+0 -bf (foo sl1 -> foo sl2 sl2.~1~ -> foo)
+0 -bdf (foo sl1 -> foo sl2 -> foo sl2.~1~ -> foo)
+1 -l [cp: cannot create hard link 'sl2' to 'sl1'] (foo sl1 -> foo sl2 -> foo)
+0 -fl (foo sl1 -> foo sl2)
+0 -bl (foo sl1 -> foo sl2 sl2.~1~ -> foo)
+0 -bfl (foo sl1 -> foo sl2 sl2.~1~ -> foo)
+
+1 [cp: 'foo' and 'hardlink' are the same file] (foo hardlink)
+1 -d [cp: 'foo' and 'hardlink' are the same file] (foo hardlink)
+1 -f [cp: 'foo' and 'hardlink' are the same file] (foo hardlink)
+1 -df [cp: 'foo' and 'hardlink' are the same file] (foo hardlink)
+0 --rem (foo hardlink)
+0 -b (foo hardlink hardlink.~1~)
+0 -bd (foo hardlink hardlink.~1~)
+0 -bf (foo hardlink hardlink.~1~)
+0 -bdf (foo hardlink hardlink.~1~)
+0 -l (foo hardlink)
+0 -dl (foo hardlink)
+0 -fl (foo hardlink)
+0 -dfl (foo hardlink)
+0 -bl (foo hardlink)
+0 -bdl (foo hardlink)
+0 -bfl (foo hardlink)
+0 -bdfl (foo hardlink)
+
+1 [cp: 'hlsl' and 'sl2' are the same file] (foo hlsl -> foo sl2 -> foo)
+0 -d (foo hlsl -> foo sl2 -> foo)
+1 -f [cp: 'hlsl' and 'sl2' are the same file] (foo hlsl -> foo sl2 -> foo)
+0 -df (foo hlsl -> foo sl2 -> foo)
+0 --rem (foo hlsl -> foo sl2)
+0 -b (foo hlsl -> foo sl2 sl2.~1~ -> foo)
+0 -bd (foo hlsl -> foo sl2 -> foo sl2.~1~ -> foo)
+0 -bf (foo hlsl -> foo sl2 sl2.~1~ -> foo)
+0 -bdf (foo hlsl -> foo sl2 -> foo sl2.~1~ -> foo)
+1 -l [cp: cannot create hard link 'sl2' to 'hlsl'] (foo hlsl -> foo sl2 -> foo)
+0 -dl (foo hlsl -> foo sl2 -> foo)
+0 -fl (foo hlsl -> foo sl2)
+0 -dfl (foo hlsl -> foo sl2 -> foo)
+0 -bl (foo hlsl -> foo sl2 sl2.~1~ -> foo)
+0 -bdl (foo hlsl -> foo sl2 -> foo)
+0 -bfl (foo hlsl -> foo sl2 sl2.~1~ -> foo)
+0 -bdfl (foo hlsl -> foo sl2 -> foo)
+
+EOF
+
+exec 1>&3 3>&-
+
+compare expected actual 1>&2 || fail=1
+
+Exit $fail
diff --git a/tests/cp/slink-2-slink b/tests/cp/slink-2-slink
deleted file mode 100755
index c36b882..0000000
--- a/tests/cp/slink-2-slink
+++ /dev/null
@@ -1,56 +0,0 @@
-#!/bin/sh
-# `test cp --update A B' where A and B are both symlinks that point
-# to the same file
-
-# Copyright (C) 2000, 2002, 2004, 2006 Free Software Foundation, Inc.
-
-# This program is free software; you can redistribute it and/or modify
-# it under the terms of the GNU General Public License as published by
-# the Free Software Foundation; either version 2 of the License, or
-# (at your option) any later version.
-
-# This program is distributed in the hope that it will be useful,
-# but WITHOUT ANY WARRANTY; without even the implied warranty of
-# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
-# GNU General Public License for more details.
-
-# You should have received a copy of the GNU General Public License
-# along with this program; if not, write to the Free Software
-# Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA
-# 02110-1301, USA.
-
-if test "$VERBOSE" = yes; then
- set -x
- cp --version
-fi
-
-. $srcdir/../envvar-check
-
-# Make sure we get English translations.
-. $srcdir/../lang-default
-
-pwd=`pwd`
-t0=`echo "$0"|sed 's,.*/,,'`.tmp;tmp=$t0/$$
-trap 'status=$?; cd "$pwd" && rm -rf $t0 && exit $status' 0
-trap 'exit $?' 1 2 13 15
-
-framework_failure=0
-mkdir -p $tmp || framework_failure=1
-cd $tmp
-
-touch file || framework_failure=1
-ln -s file a || framework_failure=1
-ln -s file b || framework_failure=1
-ln -s no-such-file c || framework_failure=1
-ln -s no-such-file d || framework_failure=1
-
-if test $framework_failure = 1; then
- echo 'failure in testing framework'
- exit 1
-fi
-
-fail=0
-cp --update --no-dereference a b || fail=1
-cp --update --no-dereference c d || fail=1
-
-(exit $fail); exit $fail
diff --git a/tests/cp/slink-2-slink.sh b/tests/cp/slink-2-slink.sh
new file mode 100755
index 0000000..c5d7016
--- /dev/null
+++ b/tests/cp/slink-2-slink.sh
@@ -0,0 +1,32 @@
+#!/bin/sh
+# 'test cp --update A B' where A and B are both symlinks that point
+# to the same file
+
+# Copyright (C) 2000-2016 Free Software Foundation, Inc.
+
+# This program is free software: you can redistribute it and/or modify
+# it under the terms of the GNU General Public License as published by
+# the Free Software Foundation, either version 3 of the License, or
+# (at your option) any later version.
+
+# This program is distributed in the hope that it will be useful,
+# but WITHOUT ANY WARRANTY; without even the implied warranty of
+# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
+# GNU General Public License for more details.
+
+# You should have received a copy of the GNU General Public License
+# along with this program. If not, see <http://www.gnu.org/licenses/>.
+
+. "${srcdir=.}/tests/init.sh"; path_prepend_ ./src
+print_ver_ cp
+
+touch file || framework_failure_
+ln -s file a || framework_failure_
+ln -s file b || framework_failure_
+ln -s no-such-file c || framework_failure_
+ln -s no-such-file d || framework_failure_
+
+cp --update --no-dereference a b || fail=1
+cp --update --no-dereference c d || fail=1
+
+Exit $fail
diff --git a/tests/cp/sparse b/tests/cp/sparse
deleted file mode 100755
index b2e940e..0000000
--- a/tests/cp/sparse
+++ /dev/null
@@ -1,57 +0,0 @@
-#!/bin/sh
-# Test cp --sparse=always
-
-# Copyright (C) 2006 Free Software Foundation, Inc.
-
-# This program is free software; you can redistribute it and/or modify
-# it under the terms of the GNU General Public License as published by
-# the Free Software Foundation; either version 2 of the License, or
-# (at your option) any later version.
-
-# This program is distributed in the hope that it will be useful,
-# but WITHOUT ANY WARRANTY; without even the implied warranty of
-# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
-# GNU General Public License for more details.
-
-# You should have received a copy of the GNU General Public License
-# along with this program; if not, write to the Free Software
-# Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA
-# 02110-1301, USA.
-
-if test "$VERBOSE" = yes; then
- set -x
- cp --version
-fi
-
-. $srcdir/../envvar-check
-. $srcdir/../sparse-file
-
-pwd=`pwd`
-t0=`echo "$0"|sed 's,.*/,,'`.tmp; tmp=$t0/$$
-trap 'status=$?; cd "$pwd" && chmod -R u+rwx $t0 && rm -rf $t0 && exit $status' 0
-trap '(exit $?); exit $?' 1 2 13 15
-
-framework_failure=0
-mkdir -p $tmp || framework_failure=1
-cd $tmp || framework_failure=1
-
-# Create a sparse file.
-# It has to be at least 128K in order to be sparse on some systems.
-# Make its size one larger than 128K, in order to tickle the
-# bug in coreutils-6.0.
-size=`expr 128 \* 1024 + 1`
-dd bs=1 seek=$size of=sparse < /dev/null 2> /dev/null || framework_failure=1
-
-if test $framework_failure = 1; then
- echo "$0: failure in testing framework" 1>&2
- (exit 1); exit 1
-fi
-
-fail=0
-
-cp --sparse=always sparse copy || fail=1
-
-# Ensure that the copy has the same block count as the original.
-test `stat --printf %b copy` -le `stat --printf %b sparse` || fail=1
-
-(exit $fail); exit $fail
diff --git a/tests/cp/sparse-fiemap.sh b/tests/cp/sparse-fiemap.sh
new file mode 100755
index 0000000..c639474
--- /dev/null
+++ b/tests/cp/sparse-fiemap.sh
@@ -0,0 +1,117 @@
+#!/bin/sh
+# Test cp --sparse=always through fiemap copy
+
+# Copyright (C) 2010-2016 Free Software Foundation, Inc.
+
+# This program is free software: you can redistribute it and/or modify
+# it under the terms of the GNU General Public License as published by
+# the Free Software Foundation, either version 3 of the License, or
+# (at your option) any later version.
+
+# This program is distributed in the hope that it will be useful,
+# but WITHOUT ANY WARRANTY; without even the implied warranty of
+# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
+# GNU General Public License for more details.
+
+# You should have received a copy of the GNU General Public License
+# along with this program. If not, see <http://www.gnu.org/licenses/>.
+
+. "${srcdir=.}/tests/init.sh"; path_prepend_ ./src
+print_ver_ cp
+require_perl_
+
+# The test was seen to fail on ext3 so exclude that type
+# (or any file system where the type can't be determined)
+touch fiemap_chk
+if fiemap_capable_ fiemap_chk && ! df -t ext3 . >/dev/null; then
+ : # Current partition has working extents. Good!
+else
+ # FIXME: temporarily(?) skip this variant, at least until after this bug
+ # is fixed: http://thread.gmane.org/gmane.comp.file-systems.ext4/24495
+ skip_ "current file system has insufficient FIEMAP support"
+
+ # It's not; we need to create one, hence we need root access.
+ require_root_
+
+ cwd=$PWD
+ cleanup_() { cd /; umount "$cwd/mnt"; }
+
+ skip=0
+ # Create an ext4 loopback file system
+ dd if=/dev/zero of=blob bs=32k count=1000 || skip=1
+ mkdir mnt
+ mkfs -t ext4 -F blob ||
+ skip_ "failed to create ext4 file system"
+ mount -oloop blob mnt || skip=1
+ cd mnt || skip=1
+ echo test > f || skip=1
+ test -s f || skip=1
+
+ test $skip = 1 &&
+ skip_ "insufficient mount/ext4 support"
+fi
+
+# =================================================
+# Ensure that we exercise the FIEMAP-copying code enough
+# to provoke at least two iterations of the do...while loop
+# in which it calls ioctl (fd, FS_IOC_FIEMAP,...
+# This also verifies that non-trivial extents are preserved.
+
+# Extract logical block number and length pairs from filefrag -v output.
+# The initial sed is to remove the "eof" from the normally-empty "flags" field.
+# Similarly, remove flags values like "unknown,delalloc,eof".
+# That is required when that final extent has no number in the "expected" field.
+f()
+{
+ sed 's/ [a-z,][a-z,]*$//' $@ \
+ | $AWK '/^ *[0-9]/ {printf "%d %d ", $2, (NF>=6 ? $6 : (NF<5 ? $NF : $5)) }
+ END {print ""}'
+}
+
+for i in $(seq 1 2 21); do
+ for j in 1 2 31 100; do
+ $PERL -e '$n = '$i' * 1024; *F = *STDOUT;' \
+ -e 'for (1..'$j') { sysseek (*F, $n, 1)' \
+ -e '&& syswrite (*F, chr($_)x$n) or die "$!"}' > j1 || fail=1
+
+ # Note there is an implicit sync performed by cp on Linux kernels
+ # before 2.6.39 to work around bugs in EXT4 and BTRFS.
+ # Note also the -s parameter to the filefrag commands below
+ # for the same reasons.
+ cp --sparse=always j1 j2 || fail=1
+
+ cmp j1 j2 || fail_ "data loss i=$i j=$j"
+ if ! filefrag -vs j1 | grep -F extent >/dev/null; then
+ test $skip != 1 && warn_ 'skipping part; you lack filefrag'
+ skip=1
+ else
+ # Here is sample filefrag output:
+ # $ perl -e 'BEGIN{$n=16*1024; *F=*STDOUT}' \
+ # -e 'for (1..5) { sysseek(*F,$n,1)' \
+ # -e '&& syswrite *F,"."x$n or die "$!"}' > j
+ # $ filefrag -v j
+ # File system type is: ef53
+ # File size of j is 163840 (40 blocks, blocksize 4096)
+ # ext logical physical expected length flags
+ # 0 4 6258884 4
+ # 1 12 6258892 6258887 4
+ # 2 20 6258900 6258895 4
+ # 3 28 6258908 6258903 4
+ # 4 36 6258916 6258911 4 eof
+ # j: 6 extents found
+
+ # exclude the physical block numbers; they always differ
+ filefrag -v j1 > ff1 || framework_failure_
+ filefrag -vs j2 > ff2 || framework_failure_
+ { f ff1; f ff2; } | $PERL $abs_srcdir/tests/filefrag-extent-compare \
+ || {
+ warn_ ignoring filefrag-reported extent map differences
+ # Show the differing extent maps.
+ head -n99 ff1 ff2
+ }
+ fi
+ test $fail = 1 && break 2
+ done
+done
+
+Exit $fail
diff --git a/tests/cp/sparse-to-pipe.sh b/tests/cp/sparse-to-pipe.sh
new file mode 100755
index 0000000..e75a107
--- /dev/null
+++ b/tests/cp/sparse-to-pipe.sh
@@ -0,0 +1,38 @@
+#!/bin/sh
+# copy a sparse file to a pipe, to exercise some seldom-used parts of copy.c
+
+# Copyright (C) 2011-2016 Free Software Foundation, Inc.
+
+# This program is free software: you can redistribute it and/or modify
+# it under the terms of the GNU General Public License as published by
+# the Free Software Foundation, either version 3 of the License, or
+# (at your option) any later version.
+
+# This program is distributed in the hope that it will be useful,
+# but WITHOUT ANY WARRANTY; without even the implied warranty of
+# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
+# GNU General Public License for more details.
+
+# You should have received a copy of the GNU General Public License
+# along with this program. If not, see <http://www.gnu.org/licenses/>.
+
+. "${srcdir=.}/tests/init.sh"; path_prepend_ ./src
+print_ver_ cp
+
+require_sparse_support_
+
+# Terminate any background cp process
+cleanup_() { kill $pid 2>/dev/null && wait $pid; }
+
+mkfifo_or_skip_ pipe
+timeout 10 cat pipe > copy & pid=$!
+
+truncate -s1M sparse || framework_failure_
+cp sparse pipe || fail=1
+
+# Ensure that the cat has completed before comparing.
+wait $pid
+
+cmp sparse copy || fail=1
+
+Exit $fail
diff --git a/tests/cp/sparse.sh b/tests/cp/sparse.sh
new file mode 100755
index 0000000..16c591a
--- /dev/null
+++ b/tests/cp/sparse.sh
@@ -0,0 +1,73 @@
+#!/bin/sh
+# Test cp --sparse=always
+
+# Copyright (C) 2006-2016 Free Software Foundation, Inc.
+
+# This program is free software: you can redistribute it and/or modify
+# it under the terms of the GNU General Public License as published by
+# the Free Software Foundation, either version 3 of the License, or
+# (at your option) any later version.
+
+# This program is distributed in the hope that it will be useful,
+# but WITHOUT ANY WARRANTY; without even the implied warranty of
+# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
+# GNU General Public License for more details.
+
+# You should have received a copy of the GNU General Public License
+# along with this program. If not, see <http://www.gnu.org/licenses/>.
+
+. "${srcdir=.}/tests/init.sh"; path_prepend_ ./src
+print_ver_ cp
+require_sparse_support_
+
+# Create a sparse file.
+# It has to be at least 128K in order to be sparse on some systems.
+# Make its size one larger than 128K, in order to tickle the
+# bug in coreutils-6.0.
+size=$(expr 128 \* 1024 + 1)
+dd bs=1 seek=$size of=sparse < /dev/null 2> /dev/null || framework_failure_
+
+
+cp --sparse=always sparse copy || fail=1
+
+# Ensure that the copy has the same block count as the original.
+test $(stat --printf %b copy) -le $(stat --printf %b sparse) || fail=1
+
+# Ensure that --sparse={always,never} with --reflink fail.
+returns_ 1 cp --sparse=always --reflink sparse copy || fail=1
+returns_ 1 cp --sparse=never --reflink sparse copy || fail=1
+
+
+# Ensure we handle sparse/non-sparse transitions correctly
+maxn=128 # how many $hole_size chunks per file
+hole_size=$(stat -c %o copy)
+dd if=/dev/zero bs=$hole_size count=$maxn of=zeros || framework_failure_
+tr '\0' 'U' < zeros > nonzero || framework_failure_
+
+for pattern in 1 0; do
+ test "$pattern" = 1 && pattern="$(printf '%s\n%s' nonzero zeros)"
+ test "$pattern" = 0 && pattern="$(printf '%s\n%s' zeros nonzero)"
+
+ for n in 1 2 4 11 32 $maxn; do
+ parts=$(expr $maxn / $n)
+
+ rm -f sparse.in
+
+ # Generate non sparse file for copying with alternating
+ # hole/data patterns of size n * $hole_size
+ for i in $(yes "$pattern" | head -n$parts); do
+ dd iflag=fullblock if=$i of=sparse.in conv=notrunc oflag=append \
+ bs=$hole_size count=$n status=none || framework_failure_
+ done
+
+ cp --sparse=always sparse.in sparse.out || fail=1 # non sparse input
+ cp --sparse=always sparse.out sparse.out2 || fail=1 # sparse input
+
+ cmp sparse.in sparse.out || fail=1
+ cmp sparse.in sparse.out2 || fail=1
+
+ ls -lsh sparse.*
+ done
+done
+
+Exit $fail
diff --git a/tests/cp/special-bits b/tests/cp/special-bits
deleted file mode 100755
index 96dbf3d..0000000
--- a/tests/cp/special-bits
+++ /dev/null
@@ -1,70 +0,0 @@
-#!/bin/sh
-# make sure `cp -p' preserves special bits
-# This works only when run as root.
-
-# Copyright (C) 2000, 2001, 2002, 2004, 2006 Free Software Foundation, Inc.
-
-# This program is free software; you can redistribute it and/or modify
-# it under the terms of the GNU General Public License as published by
-# the Free Software Foundation; either version 2 of the License, or
-# (at your option) any later version.
-
-# This program is distributed in the hope that it will be useful,
-# but WITHOUT ANY WARRANTY; without even the implied warranty of
-# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
-# GNU General Public License for more details.
-
-# You should have received a copy of the GNU General Public License
-# along with this program; if not, write to the Free Software
-# Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA
-# 02110-1301, USA.
-
-# This test would fail due to a bug introduced in 4.0y.
-# The bug was fixed in 4.0z.
-
-if test "$VERBOSE" = yes; then
- set -x
- cp --version
-fi
-
-PRIV_CHECK_ARG=require-root . $srcdir/../priv-check
-
-pwd=`pwd`
-t0=`echo "$0"|sed 's,.*/,,'`.tmp;tmp=$t0/$$
-trap 'status=$?; cd "$pwd" && rm -rf $t0 && exit $status' 0
-trap '(exit $?); exit' 1 2 13 15
-
-framework_failure=0
-mkdir -p $tmp || framework_failure=1
-cd $tmp || framework_failure=1
-
-touch a b c || framework_failure=1
-chmod u+sx,go= a || framework_failure=1
-chmod u=rwx,g=sx,o= b || framework_failure=1
-chmod a=r,ug+sx c || framework_failure=1
-chown $NON_ROOT_USERNAME . || framework_failure=1
-chmod u=rwx,g=rx,o=rx . || framework_failure=1
-
-if test $framework_failure = 1; then
- echo 'failure in testing framework'
- exit 1
-fi
-
-fail=0
-
-cp -p a a2 || fail=1
-set _ `ls -l a`; shift; p1=$1
-set _ `ls -l a2`; shift; p2=$1
-test $p1 = $p2 || fail=1
-
-cp -p b b2 || fail=1
-set _ `ls -l b`; shift; p1=$1
-set _ `ls -l b2`; shift; p2=$1
-test $p1 = $p2 || fail=1
-
-setuidgid $NON_ROOT_USERNAME env PATH="$PATH" cp -p c c2 || fail=1
-set _ `ls -l c`; shift; p1=$1
-set _ `ls -l c2`; shift; p2=$1
-test $p1 = $p2 && fail=1
-
-(exit $fail); exit $fail
diff --git a/tests/cp/special-bits.sh b/tests/cp/special-bits.sh
new file mode 100755
index 0000000..8a4bd48
--- /dev/null
+++ b/tests/cp/special-bits.sh
@@ -0,0 +1,51 @@
+#!/bin/sh
+# make sure 'cp -p' preserves special bits
+# This works only when run as root.
+
+# Copyright (C) 2000-2016 Free Software Foundation, Inc.
+
+# This program is free software: you can redistribute it and/or modify
+# it under the terms of the GNU General Public License as published by
+# the Free Software Foundation, either version 3 of the License, or
+# (at your option) any later version.
+
+# This program is distributed in the hope that it will be useful,
+# but WITHOUT ANY WARRANTY; without even the implied warranty of
+# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
+# GNU General Public License for more details.
+
+# You should have received a copy of the GNU General Public License
+# along with this program. If not, see <http://www.gnu.org/licenses/>.
+
+# This test would fail due to a bug introduced in 4.0y.
+# The bug was fixed in 4.0z.
+
+. "${srcdir=.}/tests/init.sh"; path_prepend_ ./src
+print_ver_ cp
+require_root_
+
+touch a b c || framework_failure_
+chmod u+sx,go= a || framework_failure_
+chmod u=rwx,g=sx,o= b || framework_failure_
+chmod a=r,ug+sx c || framework_failure_
+chown $NON_ROOT_USERNAME . || framework_failure_
+chmod u=rwx,g=rx,o=rx . || framework_failure_
+
+
+cp -p a a2 || fail=1
+set _ $(ls -l a); shift; p1=$1
+set _ $(ls -l a2); shift; p2=$1
+test $p1 = $p2 || fail=1
+
+cp -p b b2 || fail=1
+set _ $(ls -l b); shift; p1=$1
+set _ $(ls -l b2); shift; p2=$1
+test $p1 = $p2 || fail=1
+
+chroot --skip-chdir --user=$NON_ROOT_USERNAME / env PATH="$PATH" cp -p c c2 \
+ || fail=1
+set _ $(ls -l c); shift; p1=$1
+set _ $(ls -l c2); shift; p2=$1
+test $p1 = $p2 && fail=1
+
+Exit $fail
diff --git a/tests/cp/special-f.sh b/tests/cp/special-f.sh
new file mode 100755
index 0000000..78ff25f
--- /dev/null
+++ b/tests/cp/special-f.sh
@@ -0,0 +1,35 @@
+#!/bin/sh
+# Ensure that "cp -Rf fifo E" unlinks E and retries.
+# Up until coreutils-6.10.171, it would not.
+
+# Copyright (C) 2008-2016 Free Software Foundation, Inc.
+
+# This program is free software: you can redistribute it and/or modify
+# it under the terms of the GNU General Public License as published by
+# the Free Software Foundation, either version 3 of the License, or
+# (at your option) any later version.
+
+# This program is distributed in the hope that it will be useful,
+# but WITHOUT ANY WARRANTY; without even the implied warranty of
+# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
+# GNU General Public License for more details.
+
+# You should have received a copy of the GNU General Public License
+# along with this program. If not, see <http://www.gnu.org/licenses/>.
+
+. "${srcdir=.}/tests/init.sh"; path_prepend_ ./src
+print_ver_ cp
+
+mkfifo_or_skip_ fifo
+
+touch e || framework-failure
+
+
+# Without -f, expect it to fail.
+cp -R fifo e || fail=1
+
+# With -f, it must succeed.
+cp -Rf fifo e || fail=1
+test -p fifo || fail=1
+
+Exit $fail
diff --git a/tests/cp/src-base-dot b/tests/cp/src-base-dot
deleted file mode 100755
index 1af0e57..0000000
--- a/tests/cp/src-base-dot
+++ /dev/null
@@ -1,54 +0,0 @@
-#!/bin/sh
-# Ensure that "mkdir x y; cd y; cp -ab ../x/. ." is a successful, silent, no-op.
-
-# Copyright (C) 2006 Free Software Foundation, Inc.
-
-# This program is free software; you can redistribute it and/or modify
-# it under the terms of the GNU General Public License as published by
-# the Free Software Foundation; either version 2 of the License, or
-# (at your option) any later version.
-
-# This program is distributed in the hope that it will be useful,
-# but WITHOUT ANY WARRANTY; without even the implied warranty of
-# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
-# GNU General Public License for more details.
-
-# You should have received a copy of the GNU General Public License
-# along with this program; if not, write to the Free Software
-# Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA
-# 02110-1301, USA.
-
-if test "$VERBOSE" = yes; then
- set -x
- cp --version
-fi
-
-. $srcdir/../envvar-check
-
-pwd=`pwd`
-t0=`echo "$0"|sed 's,.*/,,'`.tmp; tmp=$t0/$$
-trap 'status=$?; cd "$pwd" && chmod -R u+rwx $t0 && rm -rf $t0 && exit $status' 0
-trap '(exit $?); exit $?' 1 2 13 15
-
-framework_failure=0
-mkdir -p $tmp || framework_failure=1
-cd $tmp || framework_failure=1
-
-mkdir x y || framework_failure=1
-
-if test $framework_failure = 1; then
- echo "$0: failure in testing framework" 1>&2
- (exit 1); exit 1
-fi
-
-fail=0
-
-cd y
-cp --verbose -ab ../x/. . > out 2>&1 || fail=1
-cat <<\EOF > exp || fail=1
-EOF
-
-cmp out exp || fail=1
-test $fail = 1 && diff out exp 2> /dev/null
-
-(exit $fail); exit $fail
diff --git a/tests/cp/src-base-dot.sh b/tests/cp/src-base-dot.sh
new file mode 100755
index 0000000..d5dbe1f
--- /dev/null
+++ b/tests/cp/src-base-dot.sh
@@ -0,0 +1,32 @@
+#!/bin/sh
+# Ensure that "mkdir x y; cd y; cp -ab ../x/. ." is a successful, silent, no-op.
+
+# Copyright (C) 2006-2016 Free Software Foundation, Inc.
+
+# This program is free software: you can redistribute it and/or modify
+# it under the terms of the GNU General Public License as published by
+# the Free Software Foundation, either version 3 of the License, or
+# (at your option) any later version.
+
+# This program is distributed in the hope that it will be useful,
+# but WITHOUT ANY WARRANTY; without even the implied warranty of
+# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
+# GNU General Public License for more details.
+
+# You should have received a copy of the GNU General Public License
+# along with this program. If not, see <http://www.gnu.org/licenses/>.
+
+. "${srcdir=.}/tests/init.sh"; path_prepend_ ./src
+print_ver_ cp
+
+mkdir x y || framework_failure_
+
+
+cd y
+cp --verbose -ab ../x/. . > out 2>&1 || fail=1
+cat <<\EOF > exp || fail=1
+EOF
+
+compare exp out || fail=1
+
+Exit $fail
diff --git a/tests/cp/symlink-slash b/tests/cp/symlink-slash
deleted file mode 100755
index 311775a..0000000
--- a/tests/cp/symlink-slash
+++ /dev/null
@@ -1,58 +0,0 @@
-#!/bin/sh
-# Make sure that cp -dR dereferences a symlink arg if its name is
-# written with a trailing slash.
-
-# Copyright (C) 2000, 2002, 2004, 2006 Free Software Foundation, Inc.
-
-# This program is free software; you can redistribute it and/or modify
-# it under the terms of the GNU General Public License as published by
-# the Free Software Foundation; either version 2 of the License, or
-# (at your option) any later version.
-
-# This program is distributed in the hope that it will be useful,
-# but WITHOUT ANY WARRANTY; without even the implied warranty of
-# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
-# GNU General Public License for more details.
-
-# You should have received a copy of the GNU General Public License
-# along with this program; if not, write to the Free Software
-# Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA
-# 02110-1301, USA.
-
-if test "$VERBOSE" = yes; then
- set -x
- cp --version
-fi
-
-. $srcdir/../envvar-check
-. $srcdir/../lang-default
-
-pwd=`pwd`
-t0=`echo "$0"|sed 's,.*/,,'`.tmp; tmp=$t0/$$
-trap 'status=$?; cd "$pwd" && rm -rf $t0 && exit $status' 0
-trap '(exit $?); exit' 1 2 13 15
-
-framework_failure=0
-mkdir -p $tmp || framework_failure=1
-cd $tmp || framework_failure=1
-
-mkdir dir || framework_failure=1
-ln -s dir symlink || framework_failure=1
-
-if test $framework_failure = 1; then
- echo 'failure in testing framework'
- exit 1
-fi
-
-fail=0
-cp -dR symlink/ s || fail=1
-set `ls -l s`
-
-# Prior to fileutils-4.0q, the following would have output ...`s -> dir'
-# because the trailing slash was removed unconditionally (now you have to
-# use the new --strip-trailing-slash option) causing cp to reproduce the
-# symlink. Now, the trailing slash is interpreted by the stat library
-# call and so cp ends up dereferencing the symlink and copying the directory.
-test "$*" = 'total 0' && : || fail=1
-
-(exit $fail); exit $fail
diff --git a/tests/cp/symlink-slash.sh b/tests/cp/symlink-slash.sh
new file mode 100755
index 0000000..2c66557
--- /dev/null
+++ b/tests/cp/symlink-slash.sh
@@ -0,0 +1,36 @@
+#!/bin/sh
+# Make sure that cp -dR dereferences a symlink arg if its name is
+# written with a trailing slash.
+
+# Copyright (C) 2000-2016 Free Software Foundation, Inc.
+
+# This program is free software: you can redistribute it and/or modify
+# it under the terms of the GNU General Public License as published by
+# the Free Software Foundation, either version 3 of the License, or
+# (at your option) any later version.
+
+# This program is distributed in the hope that it will be useful,
+# but WITHOUT ANY WARRANTY; without even the implied warranty of
+# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
+# GNU General Public License for more details.
+
+# You should have received a copy of the GNU General Public License
+# along with this program. If not, see <http://www.gnu.org/licenses/>.
+
+. "${srcdir=.}/tests/init.sh"; path_prepend_ ./src
+print_ver_ cp
+
+mkdir dir || framework_failure_
+ln -s dir symlink || framework_failure_
+
+cp -dR symlink/ s || fail=1
+set $(ls -l s)
+
+# Prior to fileutils-4.0q, the following would have output ...'s -> dir'
+# because the trailing slash was removed unconditionally (now you have to
+# use the new --strip-trailing-slash option) causing cp to reproduce the
+# symlink. Now, the trailing slash is interpreted by the stat library
+# call and so cp ends up dereferencing the symlink and copying the directory.
+test "$*" = 'total 0' && : || fail=1
+
+Exit $fail
diff --git a/tests/cp/thru-dangling.sh b/tests/cp/thru-dangling.sh
new file mode 100755
index 0000000..608d225
--- /dev/null
+++ b/tests/cp/thru-dangling.sh
@@ -0,0 +1,41 @@
+#!/bin/sh
+# Ensure that cp works as documented, when the destination is a dangling symlink
+
+# Copyright (C) 2007-2016 Free Software Foundation, Inc.
+
+# This program is free software: you can redistribute it and/or modify
+# it under the terms of the GNU General Public License as published by
+# the Free Software Foundation, either version 3 of the License, or
+# (at your option) any later version.
+
+# This program is distributed in the hope that it will be useful,
+# but WITHOUT ANY WARRANTY; without even the implied warranty of
+# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
+# GNU General Public License for more details.
+
+# You should have received a copy of the GNU General Public License
+# along with this program. If not, see <http://www.gnu.org/licenses/>.
+
+. "${srcdir=.}/tests/init.sh"; path_prepend_ ./src
+print_ver_ cp
+
+ln -s no-such dangle || framework_failure_
+echo hi > f || framework_failure_
+echo hi > exp || framework_failure_
+echo "cp: not writing through dangling symlink 'dangle'" \
+ > exp-err || framework_failure_
+
+
+# Starting with 6.9.90, this usage fails, by default:
+cp f dangle > err 2>&1 && fail=1
+
+compare exp-err err || fail=1
+test -f no-such && fail=1
+
+# But you can set POSIXLY_CORRECT to get the historical behavior.
+env POSIXLY_CORRECT=1 cp f dangle > out 2>&1 || fail=1
+cat no-such >> out || fail=1
+
+compare exp out || fail=1
+
+Exit $fail
diff --git a/tests/cp/trailing-slash b/tests/cp/trailing-slash
deleted file mode 100644
index 0cdbfa7..0000000
--- a/tests/cp/trailing-slash
+++ /dev/null
@@ -1,2 +0,0 @@
-# this is just a place-holder.
-# For trailing-slash-related tests, see ../mv/trailing-slash.
diff --git a/tests/cut/1.I b/tests/cut/1.I
deleted file mode 100644
index af0abb2..0000000
--- a/tests/cut/1.I
+++ /dev/null
@@ -1 +0,0 @@
-a:b:c
diff --git a/tests/cut/1.X b/tests/cut/1.X
deleted file mode 100644
index 7098509..0000000
--- a/tests/cut/1.X
+++ /dev/null
@@ -1 +0,0 @@
-a:c
diff --git a/tests/cut/2.I b/tests/cut/2.I
deleted file mode 100644
index af0abb2..0000000
--- a/tests/cut/2.I
+++ /dev/null
@@ -1 +0,0 @@
-a:b:c
diff --git a/tests/cut/2.X b/tests/cut/2.X
deleted file mode 100644
index 7098509..0000000
--- a/tests/cut/2.X
+++ /dev/null
@@ -1 +0,0 @@
-a:c
diff --git a/tests/cut/3.I b/tests/cut/3.I
deleted file mode 100644
index af0abb2..0000000
--- a/tests/cut/3.I
+++ /dev/null
@@ -1 +0,0 @@
-a:b:c
diff --git a/tests/cut/3.X b/tests/cut/3.X
deleted file mode 100644
index f0c9a09..0000000
--- a/tests/cut/3.X
+++ /dev/null
@@ -1 +0,0 @@
-b:c
diff --git a/tests/cut/4.I b/tests/cut/4.I
deleted file mode 100644
index af0abb2..0000000
--- a/tests/cut/4.I
+++ /dev/null
@@ -1 +0,0 @@
-a:b:c
diff --git a/tests/cut/4.X b/tests/cut/4.X
deleted file mode 100644
index 8b13789..0000000
--- a/tests/cut/4.X
+++ /dev/null
@@ -1 +0,0 @@
-
diff --git a/tests/cut/5.I b/tests/cut/5.I
deleted file mode 100644
index e69de29..0000000
--- a/tests/cut/5.I
+++ /dev/null
diff --git a/tests/cut/5.X b/tests/cut/5.X
deleted file mode 100644
index e69de29..0000000
--- a/tests/cut/5.X
+++ /dev/null
diff --git a/tests/cut/6.I b/tests/cut/6.I
deleted file mode 100644
index 190a180..0000000
--- a/tests/cut/6.I
+++ /dev/null
@@ -1 +0,0 @@
-123
diff --git a/tests/cut/6.X b/tests/cut/6.X
deleted file mode 100644
index 8b13789..0000000
--- a/tests/cut/6.X
+++ /dev/null
@@ -1 +0,0 @@
-
diff --git a/tests/cut/7.I b/tests/cut/7.I
deleted file mode 100644
index d800886..0000000
--- a/tests/cut/7.I
+++ /dev/null
@@ -1 +0,0 @@
-123 \ No newline at end of file
diff --git a/tests/cut/7.X b/tests/cut/7.X
deleted file mode 100644
index 8b13789..0000000
--- a/tests/cut/7.X
+++ /dev/null
@@ -1 +0,0 @@
-
diff --git a/tests/cut/8.I b/tests/cut/8.I
deleted file mode 100644
index 8202b4f..0000000
--- a/tests/cut/8.I
+++ /dev/null
@@ -1,2 +0,0 @@
-123
-1 \ No newline at end of file
diff --git a/tests/cut/8.X b/tests/cut/8.X
deleted file mode 100644
index 139597f..0000000
--- a/tests/cut/8.X
+++ /dev/null
@@ -1,2 +0,0 @@
-
-
diff --git a/tests/cut/8bit-delim.I b/tests/cut/8bit-delim.I
deleted file mode 100644
index 2312c91..0000000
--- a/tests/cut/8bit-delim.I
+++ /dev/null
@@ -1 +0,0 @@
-a­b­c
diff --git a/tests/cut/8bit-delim.X b/tests/cut/8bit-delim.X
deleted file mode 100644
index 01b7680..0000000
--- a/tests/cut/8bit-delim.X
+++ /dev/null
@@ -1 +0,0 @@
-b_c
diff --git a/tests/cut/9.I b/tests/cut/9.I
deleted file mode 100644
index e69de29..0000000
--- a/tests/cut/9.I
+++ /dev/null
diff --git a/tests/cut/9.X b/tests/cut/9.X
deleted file mode 100644
index e69de29..0000000
--- a/tests/cut/9.X
+++ /dev/null
diff --git a/tests/cut/Makefile.am b/tests/cut/Makefile.am
deleted file mode 100644
index e0ba2cc..0000000
--- a/tests/cut/Makefile.am
+++ /dev/null
@@ -1,82 +0,0 @@
-# Make coreutils tests. -*-Makefile-*-
-
-# Copyright (C) 1997, 1998, 2000, 2003, 2004, 2006 Free Software
-# Foundation, Inc.
-
-# This program is free software; you can redistribute it and/or modify
-# it under the terms of the GNU General Public License as published by
-# the Free Software Foundation; either version 2 of the License, or
-# (at your option) any later version.
-
-# This program is distributed in the hope that it will be useful,
-# but WITHOUT ANY WARRANTY; without even the implied warranty of
-# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
-# GNU General Public License for more details.
-
-# You should have received a copy of the GNU General Public License
-# along with this program; if not, write to the Free Software
-# Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA
-# 02110-1301, USA.
-
-##test-files-begin
-x = cut
-explicit =
-maint_gen = 1.I 1.X 2.I 2.X 3.I 3.X 4.I 4.X 5.I 5.X 6.I 6.X 7.I 7.X 8.I 8.X \
-9.I 9.X a.I a.X b.I b.X c.I c.X d.I d.X e.I e.X f.I f.X g.I g.X h.I h.X i.I \
-i.X j.I j.X k.I k.X l.I l.X m.I m.X n.I n.X o.I o.X p.I p.X q.I q.X r.I r.X \
-s.I s.X t.I t.X u.I u.X v.I v.X w.I w.X x.I x.X y.I y.X z.I z.X empty-fl.I \
-empty-fl.X missing-fl.I missing-fl.X empty-bl.I empty-bl.X missing-bl.I \
-missing-bl.X empty-f1.I empty-f1.X empty-f2.I empty-f2.X o-delim.I o-delim.X \
-nul-idelim.I nul-idelim.X nul-odelim.I nul-odelim.X multichar-od.I \
-multichar-od.X 8bit-delim.I 8bit-delim.X out-delim1.I out-delim1.X \
-out-delim2.I out-delim2.X out-delim3.I out-delim3.X out-delim3a.I \
-out-delim3a.X out-delim4.I out-delim4.X out-delim5.I out-delim5.X \
-out-delim6.I out-delim6.X od-abut.I od-abut.X od-overlap.I od-overlap.X \
-od-overlap2.I od-overlap2.X od-overlap3.I od-overlap3.X od-overlap4.I \
-od-overlap4.X od-overlap5.I od-overlap5.X
-run_gen = 1.O 1.E 2.O 2.E 3.O 3.E 4.O 4.E 5.O 5.E 6.O 6.E 7.O 7.E 8.O 8.E 9.O \
-9.E a.O a.E b.O b.E c.O c.E d.O d.E e.O e.E f.O f.E g.O g.E h.O h.E i.O i.E \
-j.O j.E k.O k.E l.O l.E m.O m.E n.O n.E o.O o.E p.O p.E q.O q.E r.O r.E s.O \
-s.E t.O t.E u.O u.E v.O v.E w.O w.E x.O x.E y.O y.E z.O z.E empty-fl.O \
-empty-fl.E missing-fl.O missing-fl.E empty-bl.O empty-bl.E missing-bl.O \
-missing-bl.E empty-f1.O empty-f1.E empty-f2.O empty-f2.E o-delim.O o-delim.E \
-nul-idelim.O nul-idelim.E nul-odelim.O nul-odelim.E multichar-od.O \
-multichar-od.E 8bit-delim.O 8bit-delim.E out-delim1.O out-delim1.E \
-out-delim2.O out-delim2.E out-delim3.O out-delim3.E out-delim3a.O \
-out-delim3a.E out-delim4.O out-delim4.E out-delim5.O out-delim5.E \
-out-delim6.O out-delim6.E od-abut.O od-abut.E od-overlap.O od-overlap.E \
-od-overlap2.O od-overlap2.E od-overlap3.O od-overlap3.E od-overlap4.O \
-od-overlap4.E od-overlap5.O od-overlap5.E
-##test-files-end
-
-EXTRA_DIST = Test.pm $x-tests $(explicit) $(maint_gen)
-noinst_SCRIPTS = $x-tests
-TESTS_ENVIRONMENT = \
- CU_TEST_NAME=`basename $(abs_srcdir)`,$$tst \
- PATH="$(VG_PATH_PREFIX)`pwd`/../../src$(PATH_SEPARATOR)$$PATH"
-
-editpl = sed -e 's,@''PERL''@,$(PERL),g' -e 's,@''srcdir''@,$(srcdir),g'
-
-TESTS = $x-tests
-
-mk_script = $(srcdir)/../mk-script
-$(srcdir)/$x-tests: $(mk_script) Test.pm Makefile.am
- test '$x' = test && prog=../../src/$x || prog=$x; \
- $(PERL) -I$(srcdir) -w -- $(mk_script) $(srcdir) $$prog > $@.n
- mv $@.n $@
- chmod 755 $@
-
-MAINTAINERCLEANFILES = $x-tests $(maint_gen)
-CLEANFILES = $(run_gen)
-
-check: $(maint_gen)
-
-$(srcdir)/Makefile.am: ../Makefile.am.in Test.pm $(mk_script)
- rm -f $@ $@t
- sed -n '1,/^##test-files-begin/p' $(srcdir)/../Makefile.am.in > $@t
- tool=`echo $(subdir)|sed 's/^tests.//;s/-test//'`; \
- echo "x = $$tool" >> $@t
- $(PERL) -I$(srcdir) -w -- $(mk_script) $(srcdir) --list >> $@t
- sed -n '/^##test-files-end/,$$p' $(srcdir)/../Makefile.am.in >> $@t
- chmod -w $@t
- mv $@t $@
diff --git a/tests/cut/Makefile.in b/tests/cut/Makefile.in
deleted file mode 100644
index 33f6404..0000000
--- a/tests/cut/Makefile.in
+++ /dev/null
@@ -1,792 +0,0 @@
-# Makefile.in generated by automake 1.10 from Makefile.am.
-# @configure_input@
-
-# Copyright (C) 1994, 1995, 1996, 1997, 1998, 1999, 2000, 2001, 2002,
-# 2003, 2004, 2005, 2006 Free Software Foundation, Inc.
-# This Makefile.in is free software; the Free Software Foundation
-# gives unlimited permission to copy and/or distribute it,
-# with or without modifications, as long as this notice is preserved.
-
-# This program is distributed in the hope that it will be useful,
-# but WITHOUT ANY WARRANTY, to the extent permitted by law; without
-# even the implied warranty of MERCHANTABILITY or FITNESS FOR A
-# PARTICULAR PURPOSE.
-
-@SET_MAKE@
-
-# Make coreutils tests. -*-Makefile-*-
-
-# Copyright (C) 1997, 1998, 2000, 2003, 2004, 2006 Free Software
-# Foundation, Inc.
-
-# This program is free software; you can redistribute it and/or modify
-# it under the terms of the GNU General Public License as published by
-# the Free Software Foundation; either version 2 of the License, or
-# (at your option) any later version.
-
-# This program is distributed in the hope that it will be useful,
-# but WITHOUT ANY WARRANTY; without even the implied warranty of
-# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
-# GNU General Public License for more details.
-
-# You should have received a copy of the GNU General Public License
-# along with this program; if not, write to the Free Software
-# Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA
-# 02110-1301, USA.
-
-VPATH = @srcdir@
-pkgdatadir = $(datadir)/@PACKAGE@
-pkglibdir = $(libdir)/@PACKAGE@
-pkgincludedir = $(includedir)/@PACKAGE@
-am__cd = CDPATH="$${ZSH_VERSION+.}$(PATH_SEPARATOR)" && cd
-install_sh_DATA = $(install_sh) -c -m 644
-install_sh_PROGRAM = $(install_sh) -c
-install_sh_SCRIPT = $(install_sh) -c
-INSTALL_HEADER = $(INSTALL_DATA)
-transform = $(program_transform_name)
-NORMAL_INSTALL = :
-PRE_INSTALL = :
-POST_INSTALL = :
-NORMAL_UNINSTALL = :
-PRE_UNINSTALL = :
-POST_UNINSTALL = :
-build_triplet = @build@
-host_triplet = @host@
-subdir = tests/cut
-DIST_COMMON = $(srcdir)/Makefile.am $(srcdir)/Makefile.in
-ACLOCAL_M4 = $(top_srcdir)/aclocal.m4
-am__aclocal_m4_deps = $(top_srcdir)/m4/absolute-header.m4 \
- $(top_srcdir)/m4/acl.m4 $(top_srcdir)/m4/alloca.m4 \
- $(top_srcdir)/m4/allocsa.m4 $(top_srcdir)/m4/argmatch.m4 \
- $(top_srcdir)/m4/arpa_inet_h.m4 $(top_srcdir)/m4/assert.m4 \
- $(top_srcdir)/m4/atexit.m4 $(top_srcdir)/m4/autobuild.m4 \
- $(top_srcdir)/m4/backupfile.m4 $(top_srcdir)/m4/base64.m4 \
- $(top_srcdir)/m4/bison.m4 $(top_srcdir)/m4/boottime.m4 \
- $(top_srcdir)/m4/c-strtod.m4 $(top_srcdir)/m4/calloc.m4 \
- $(top_srcdir)/m4/canon-host.m4 \
- $(top_srcdir)/m4/canonicalize.m4 \
- $(top_srcdir)/m4/chdir-long.m4 $(top_srcdir)/m4/check-decl.m4 \
- $(top_srcdir)/m4/chown.m4 $(top_srcdir)/m4/clock_time.m4 \
- $(top_srcdir)/m4/cloexec.m4 $(top_srcdir)/m4/close-stream.m4 \
- $(top_srcdir)/m4/closeout.m4 $(top_srcdir)/m4/codeset.m4 \
- $(top_srcdir)/m4/config-h.m4 $(top_srcdir)/m4/cycle-check.m4 \
- $(top_srcdir)/m4/d-ino.m4 $(top_srcdir)/m4/d-type.m4 \
- $(top_srcdir)/m4/dirfd.m4 $(top_srcdir)/m4/dirname.m4 \
- $(top_srcdir)/m4/dos.m4 $(top_srcdir)/m4/double-slash-root.m4 \
- $(top_srcdir)/m4/dup2.m4 $(top_srcdir)/m4/eealloc.m4 \
- $(top_srcdir)/m4/eoverflow.m4 $(top_srcdir)/m4/error.m4 \
- $(top_srcdir)/m4/euidaccess-stat.m4 \
- $(top_srcdir)/m4/euidaccess.m4 $(top_srcdir)/m4/exclude.m4 \
- $(top_srcdir)/m4/exitfail.m4 $(top_srcdir)/m4/extensions.m4 \
- $(top_srcdir)/m4/fchdir.m4 $(top_srcdir)/m4/fcntl-safer.m4 \
- $(top_srcdir)/m4/fcntl_h.m4 $(top_srcdir)/m4/fd-reopen.m4 \
- $(top_srcdir)/m4/file-type.m4 $(top_srcdir)/m4/fileblocks.m4 \
- $(top_srcdir)/m4/filemode.m4 $(top_srcdir)/m4/filenamecat.m4 \
- $(top_srcdir)/m4/flexmember.m4 $(top_srcdir)/m4/fnmatch.m4 \
- $(top_srcdir)/m4/fpending.m4 $(top_srcdir)/m4/fprintftime.m4 \
- $(top_srcdir)/m4/free.m4 $(top_srcdir)/m4/fstypename.m4 \
- $(top_srcdir)/m4/fsusage.m4 $(top_srcdir)/m4/ftruncate.m4 \
- $(top_srcdir)/m4/fts.m4 $(top_srcdir)/m4/getaddrinfo.m4 \
- $(top_srcdir)/m4/getcwd-abort-bug.m4 \
- $(top_srcdir)/m4/getcwd-path-max.m4 $(top_srcdir)/m4/getcwd.m4 \
- $(top_srcdir)/m4/getdate.m4 $(top_srcdir)/m4/getdelim.m4 \
- $(top_srcdir)/m4/getgroups.m4 $(top_srcdir)/m4/gethostname.m4 \
- $(top_srcdir)/m4/gethrxtime.m4 $(top_srcdir)/m4/getline.m4 \
- $(top_srcdir)/m4/getloadavg.m4 $(top_srcdir)/m4/getndelim2.m4 \
- $(top_srcdir)/m4/getopt.m4 $(top_srcdir)/m4/getpagesize.m4 \
- $(top_srcdir)/m4/getpass.m4 $(top_srcdir)/m4/gettext.m4 \
- $(top_srcdir)/m4/gettime.m4 $(top_srcdir)/m4/gettimeofday.m4 \
- $(top_srcdir)/m4/getugroups.m4 \
- $(top_srcdir)/m4/getusershell.m4 $(top_srcdir)/m4/glibc21.m4 \
- $(top_srcdir)/m4/gnulib-common.m4 \
- $(top_srcdir)/m4/gnulib-comp.m4 \
- $(top_srcdir)/m4/group-member.m4 \
- $(top_srcdir)/m4/hard-locale.m4 $(top_srcdir)/m4/hash.m4 \
- $(top_srcdir)/m4/host-os.m4 $(top_srcdir)/m4/human.m4 \
- $(top_srcdir)/m4/i-ring.m4 $(top_srcdir)/m4/iconv.m4 \
- $(top_srcdir)/m4/idcache.m4 $(top_srcdir)/m4/inet_ntop.m4 \
- $(top_srcdir)/m4/inline.m4 $(top_srcdir)/m4/intmax_t.m4 \
- $(top_srcdir)/m4/inttostr.m4 $(top_srcdir)/m4/inttypes-pri.m4 \
- $(top_srcdir)/m4/inttypes.m4 $(top_srcdir)/m4/inttypes_h.m4 \
- $(top_srcdir)/m4/isapipe.m4 $(top_srcdir)/m4/jm-macros.m4 \
- $(top_srcdir)/m4/jm-winsz1.m4 $(top_srcdir)/m4/jm-winsz2.m4 \
- $(top_srcdir)/m4/lchmod.m4 $(top_srcdir)/m4/lchown.m4 \
- $(top_srcdir)/m4/lib-check.m4 $(top_srcdir)/m4/lib-ignore.m4 \
- $(top_srcdir)/m4/lib-ld.m4 $(top_srcdir)/m4/lib-link.m4 \
- $(top_srcdir)/m4/lib-prefix.m4 $(top_srcdir)/m4/link-follow.m4 \
- $(top_srcdir)/m4/localcharset.m4 \
- $(top_srcdir)/m4/long-options.m4 \
- $(top_srcdir)/m4/longdouble.m4 $(top_srcdir)/m4/longlong.m4 \
- $(top_srcdir)/m4/ls-mntd-fs.m4 $(top_srcdir)/m4/lstat.m4 \
- $(top_srcdir)/m4/mbchar.m4 $(top_srcdir)/m4/mbiter.m4 \
- $(top_srcdir)/m4/mbrtowc.m4 $(top_srcdir)/m4/mbscasecmp.m4 \
- $(top_srcdir)/m4/mbstate_t.m4 $(top_srcdir)/m4/mbswidth.m4 \
- $(top_srcdir)/m4/md5.m4 $(top_srcdir)/m4/memcasecmp.m4 \
- $(top_srcdir)/m4/memchr.m4 $(top_srcdir)/m4/memcmp.m4 \
- $(top_srcdir)/m4/memcoll.m4 $(top_srcdir)/m4/memcpy.m4 \
- $(top_srcdir)/m4/memmove.m4 $(top_srcdir)/m4/mempcpy.m4 \
- $(top_srcdir)/m4/memrchr.m4 $(top_srcdir)/m4/memset.m4 \
- $(top_srcdir)/m4/memxfrm.m4 $(top_srcdir)/m4/mkancesdirs.m4 \
- $(top_srcdir)/m4/mkdir-p.m4 $(top_srcdir)/m4/mkdir-slash.m4 \
- $(top_srcdir)/m4/mkstemp.m4 $(top_srcdir)/m4/mktime.m4 \
- $(top_srcdir)/m4/modechange.m4 $(top_srcdir)/m4/mountlist.m4 \
- $(top_srcdir)/m4/mpsort.m4 $(top_srcdir)/m4/nanosleep.m4 \
- $(top_srcdir)/m4/netinet_in_h.m4 $(top_srcdir)/m4/nls.m4 \
- $(top_srcdir)/m4/openat.m4 $(top_srcdir)/m4/pathmax.m4 \
- $(top_srcdir)/m4/perl.m4 $(top_srcdir)/m4/physmem.m4 \
- $(top_srcdir)/m4/po.m4 $(top_srcdir)/m4/posixtm.m4 \
- $(top_srcdir)/m4/posixver.m4 $(top_srcdir)/m4/prereq.m4 \
- $(top_srcdir)/m4/progtest.m4 $(top_srcdir)/m4/putenv.m4 \
- $(top_srcdir)/m4/quote.m4 $(top_srcdir)/m4/quotearg.m4 \
- $(top_srcdir)/m4/randint.m4 $(top_srcdir)/m4/randperm.m4 \
- $(top_srcdir)/m4/randread.m4 $(top_srcdir)/m4/readlink.m4 \
- $(top_srcdir)/m4/readtokens.m4 $(top_srcdir)/m4/readutmp.m4 \
- $(top_srcdir)/m4/regex.m4 \
- $(top_srcdir)/m4/rename-dest-slash.m4 \
- $(top_srcdir)/m4/rename.m4 $(top_srcdir)/m4/rmdir-errno.m4 \
- $(top_srcdir)/m4/rmdir.m4 $(top_srcdir)/m4/root-dev-ino.m4 \
- $(top_srcdir)/m4/rpmatch.m4 $(top_srcdir)/m4/safe-read.m4 \
- $(top_srcdir)/m4/safe-write.m4 $(top_srcdir)/m4/same.m4 \
- $(top_srcdir)/m4/save-cwd.m4 $(top_srcdir)/m4/savedir.m4 \
- $(top_srcdir)/m4/savewd.m4 $(top_srcdir)/m4/setenv.m4 \
- $(top_srcdir)/m4/settime.m4 $(top_srcdir)/m4/sha1.m4 \
- $(top_srcdir)/m4/sha256.m4 $(top_srcdir)/m4/sha512.m4 \
- $(top_srcdir)/m4/sig2str.m4 $(top_srcdir)/m4/snprintf.m4 \
- $(top_srcdir)/m4/socklen.m4 $(top_srcdir)/m4/sockpfaf.m4 \
- $(top_srcdir)/m4/ssize_t.m4 $(top_srcdir)/m4/st_dm_mode.m4 \
- $(top_srcdir)/m4/stat-prog.m4 $(top_srcdir)/m4/stat-time.m4 \
- $(top_srcdir)/m4/stdarg.m4 $(top_srcdir)/m4/stdbool.m4 \
- $(top_srcdir)/m4/stdint.m4 $(top_srcdir)/m4/stdint_h.m4 \
- $(top_srcdir)/m4/stdio-safer.m4 $(top_srcdir)/m4/stdio_h.m4 \
- $(top_srcdir)/m4/stdlib-safer.m4 $(top_srcdir)/m4/stdlib_h.m4 \
- $(top_srcdir)/m4/stpcpy.m4 $(top_srcdir)/m4/strcspn.m4 \
- $(top_srcdir)/m4/strdup.m4 $(top_srcdir)/m4/strftime.m4 \
- $(top_srcdir)/m4/string_h.m4 $(top_srcdir)/m4/strndup.m4 \
- $(top_srcdir)/m4/strnlen.m4 $(top_srcdir)/m4/strnumcmp.m4 \
- $(top_srcdir)/m4/strpbrk.m4 $(top_srcdir)/m4/strtod.m4 \
- $(top_srcdir)/m4/strtoimax.m4 $(top_srcdir)/m4/strtol.m4 \
- $(top_srcdir)/m4/strtoll.m4 $(top_srcdir)/m4/strtoul.m4 \
- $(top_srcdir)/m4/strtoull.m4 $(top_srcdir)/m4/strtoumax.m4 \
- $(top_srcdir)/m4/strverscmp.m4 \
- $(top_srcdir)/m4/sys_socket_h.m4 \
- $(top_srcdir)/m4/sys_stat_h.m4 $(top_srcdir)/m4/sys_time_h.m4 \
- $(top_srcdir)/m4/tempname.m4 $(top_srcdir)/m4/time_h.m4 \
- $(top_srcdir)/m4/time_r.m4 $(top_srcdir)/m4/timespec.m4 \
- $(top_srcdir)/m4/tm_gmtoff.m4 $(top_srcdir)/m4/tzset.m4 \
- $(top_srcdir)/m4/unicodeio.m4 $(top_srcdir)/m4/unistd-safer.m4 \
- $(top_srcdir)/m4/unistd_h.m4 $(top_srcdir)/m4/unlink-busy.m4 \
- $(top_srcdir)/m4/unlinkdir.m4 $(top_srcdir)/m4/unlocked-io.m4 \
- $(top_srcdir)/m4/uptime.m4 $(top_srcdir)/m4/userspec.m4 \
- $(top_srcdir)/m4/utimbuf.m4 $(top_srcdir)/m4/utime.m4 \
- $(top_srcdir)/m4/utimecmp.m4 $(top_srcdir)/m4/utimens.m4 \
- $(top_srcdir)/m4/utimes-null.m4 $(top_srcdir)/m4/utimes.m4 \
- $(top_srcdir)/m4/vasnprintf.m4 $(top_srcdir)/m4/vasprintf.m4 \
- $(top_srcdir)/m4/wchar.m4 $(top_srcdir)/m4/wchar_t.m4 \
- $(top_srcdir)/m4/wctype.m4 $(top_srcdir)/m4/wcwidth.m4 \
- $(top_srcdir)/m4/wint_t.m4 $(top_srcdir)/m4/xalloc.m4 \
- $(top_srcdir)/m4/xfts.m4 $(top_srcdir)/m4/xgetcwd.m4 \
- $(top_srcdir)/m4/xnanosleep.m4 $(top_srcdir)/m4/xstrndup.m4 \
- $(top_srcdir)/m4/xstrtod.m4 $(top_srcdir)/m4/xstrtol.m4 \
- $(top_srcdir)/m4/yesno.m4 $(top_srcdir)/configure.ac
-am__configure_deps = $(am__aclocal_m4_deps) $(CONFIGURE_DEPENDENCIES) \
- $(ACLOCAL_M4)
-mkinstalldirs = $(install_sh) -d
-CONFIG_HEADER = $(top_builddir)/lib/config.h
-CONFIG_CLEAN_FILES =
-SCRIPTS = $(noinst_SCRIPTS)
-SOURCES =
-DIST_SOURCES =
-DISTFILES = $(DIST_COMMON) $(DIST_SOURCES) $(TEXINFOS) $(EXTRA_DIST)
-ABSOLUTE_DIRENT_H = @ABSOLUTE_DIRENT_H@
-ABSOLUTE_FCNTL_H = @ABSOLUTE_FCNTL_H@
-ABSOLUTE_INTTYPES_H = @ABSOLUTE_INTTYPES_H@
-ABSOLUTE_NETINET_IN_H = @ABSOLUTE_NETINET_IN_H@
-ABSOLUTE_STDINT_H = @ABSOLUTE_STDINT_H@
-ABSOLUTE_STDIO_H = @ABSOLUTE_STDIO_H@
-ABSOLUTE_STDLIB_H = @ABSOLUTE_STDLIB_H@
-ABSOLUTE_STRING_H = @ABSOLUTE_STRING_H@
-ABSOLUTE_SYS_SOCKET_H = @ABSOLUTE_SYS_SOCKET_H@
-ABSOLUTE_SYS_STAT_H = @ABSOLUTE_SYS_STAT_H@
-ABSOLUTE_SYS_TIME_H = @ABSOLUTE_SYS_TIME_H@
-ABSOLUTE_TIME_H = @ABSOLUTE_TIME_H@
-ABSOLUTE_UNISTD_H = @ABSOLUTE_UNISTD_H@
-ABSOLUTE_WCHAR_H = @ABSOLUTE_WCHAR_H@
-ABSOLUTE_WCTYPE_H = @ABSOLUTE_WCTYPE_H@
-ACLOCAL = @ACLOCAL@
-ALLOCA = @ALLOCA@
-ALLOCA_H = @ALLOCA_H@
-AMTAR = @AMTAR@
-ARPA_INET_H = @ARPA_INET_H@
-AUTOCONF = @AUTOCONF@
-AUTOHEADER = @AUTOHEADER@
-AUTOMAKE = @AUTOMAKE@
-AWK = @AWK@
-BITSIZEOF_PTRDIFF_T = @BITSIZEOF_PTRDIFF_T@
-BITSIZEOF_SIG_ATOMIC_T = @BITSIZEOF_SIG_ATOMIC_T@
-BITSIZEOF_SIZE_T = @BITSIZEOF_SIZE_T@
-BITSIZEOF_WCHAR_T = @BITSIZEOF_WCHAR_T@
-BITSIZEOF_WINT_T = @BITSIZEOF_WINT_T@
-CC = @CC@
-CCDEPMODE = @CCDEPMODE@
-CFLAGS = @CFLAGS@
-CPP = @CPP@
-CPPFLAGS = @CPPFLAGS@
-CYGPATH_W = @CYGPATH_W@
-DEFAULT_POSIX2_VERSION = @DEFAULT_POSIX2_VERSION@
-DEFS = @DEFS@
-DEPDIR = @DEPDIR@
-DF_PROG = @DF_PROG@
-DIRENT_H = @DIRENT_H@
-ECHO_C = @ECHO_C@
-ECHO_N = @ECHO_N@
-ECHO_T = @ECHO_T@
-EGREP = @EGREP@
-EOVERFLOW = @EOVERFLOW@
-EXEEXT = @EXEEXT@
-FCNTL_H = @FCNTL_H@
-FNMATCH_H = @FNMATCH_H@
-GETLOADAVG_LIBS = @GETLOADAVG_LIBS@
-GETOPT_H = @GETOPT_H@
-GLIBC21 = @GLIBC21@
-GMSGFMT = @GMSGFMT@
-GMSGFMT_015 = @GMSGFMT_015@
-GNULIB_CHOWN = @GNULIB_CHOWN@
-GNULIB_DUP2 = @GNULIB_DUP2@
-GNULIB_FCHDIR = @GNULIB_FCHDIR@
-GNULIB_FPRINTF_POSIX = @GNULIB_FPRINTF_POSIX@
-GNULIB_FTRUNCATE = @GNULIB_FTRUNCATE@
-GNULIB_GETCWD = @GNULIB_GETCWD@
-GNULIB_GETLOGIN_R = @GNULIB_GETLOGIN_R@
-GNULIB_GETSUBOPT = @GNULIB_GETSUBOPT@
-GNULIB_IMAXABS = @GNULIB_IMAXABS@
-GNULIB_IMAXDIV = @GNULIB_IMAXDIV@
-GNULIB_MBSCASECMP = @GNULIB_MBSCASECMP@
-GNULIB_MBSCASESTR = @GNULIB_MBSCASESTR@
-GNULIB_MBSCHR = @GNULIB_MBSCHR@
-GNULIB_MBSCSPN = @GNULIB_MBSCSPN@
-GNULIB_MBSLEN = @GNULIB_MBSLEN@
-GNULIB_MBSNCASECMP = @GNULIB_MBSNCASECMP@
-GNULIB_MBSPBRK = @GNULIB_MBSPBRK@
-GNULIB_MBSPCASECMP = @GNULIB_MBSPCASECMP@
-GNULIB_MBSRCHR = @GNULIB_MBSRCHR@
-GNULIB_MBSSEP = @GNULIB_MBSSEP@
-GNULIB_MBSSPN = @GNULIB_MBSSPN@
-GNULIB_MBSSTR = @GNULIB_MBSSTR@
-GNULIB_MBSTOK_R = @GNULIB_MBSTOK_R@
-GNULIB_MEMMEM = @GNULIB_MEMMEM@
-GNULIB_MEMPCPY = @GNULIB_MEMPCPY@
-GNULIB_MEMRCHR = @GNULIB_MEMRCHR@
-GNULIB_MKDTEMP = @GNULIB_MKDTEMP@
-GNULIB_MKSTEMP = @GNULIB_MKSTEMP@
-GNULIB_PRINTF_POSIX = @GNULIB_PRINTF_POSIX@
-GNULIB_READLINK = @GNULIB_READLINK@
-GNULIB_SNPRINTF = @GNULIB_SNPRINTF@
-GNULIB_SPRINTF_POSIX = @GNULIB_SPRINTF_POSIX@
-GNULIB_STPCPY = @GNULIB_STPCPY@
-GNULIB_STPNCPY = @GNULIB_STPNCPY@
-GNULIB_STRCASESTR = @GNULIB_STRCASESTR@
-GNULIB_STRCHRNUL = @GNULIB_STRCHRNUL@
-GNULIB_STRDUP = @GNULIB_STRDUP@
-GNULIB_STRNDUP = @GNULIB_STRNDUP@
-GNULIB_STRNLEN = @GNULIB_STRNLEN@
-GNULIB_STRPBRK = @GNULIB_STRPBRK@
-GNULIB_STRSEP = @GNULIB_STRSEP@
-GNULIB_STRTOIMAX = @GNULIB_STRTOIMAX@
-GNULIB_STRTOK_R = @GNULIB_STRTOK_R@
-GNULIB_STRTOUMAX = @GNULIB_STRTOUMAX@
-GNULIB_VFPRINTF_POSIX = @GNULIB_VFPRINTF_POSIX@
-GNULIB_VPRINTF_POSIX = @GNULIB_VPRINTF_POSIX@
-GNULIB_VSNPRINTF = @GNULIB_VSNPRINTF@
-GNULIB_VSPRINTF_POSIX = @GNULIB_VSPRINTF_POSIX@
-GNU_PACKAGE = @GNU_PACKAGE@
-GREP = @GREP@
-HAVE_DECL_GETLOGIN_R = @HAVE_DECL_GETLOGIN_R@
-HAVE_DECL_IMAXABS = @HAVE_DECL_IMAXABS@
-HAVE_DECL_IMAXDIV = @HAVE_DECL_IMAXDIV@
-HAVE_DECL_MEMMEM = @HAVE_DECL_MEMMEM@
-HAVE_DECL_MEMRCHR = @HAVE_DECL_MEMRCHR@
-HAVE_DECL_SNPRINTF = @HAVE_DECL_SNPRINTF@
-HAVE_DECL_STRDUP = @HAVE_DECL_STRDUP@
-HAVE_DECL_STRNCASECMP = @HAVE_DECL_STRNCASECMP@
-HAVE_DECL_STRNDUP = @HAVE_DECL_STRNDUP@
-HAVE_DECL_STRNLEN = @HAVE_DECL_STRNLEN@
-HAVE_DECL_STRTOIMAX = @HAVE_DECL_STRTOIMAX@
-HAVE_DECL_STRTOK_R = @HAVE_DECL_STRTOK_R@
-HAVE_DECL_STRTOUMAX = @HAVE_DECL_STRTOUMAX@
-HAVE_DECL_VSNPRINTF = @HAVE_DECL_VSNPRINTF@
-HAVE_DUP2 = @HAVE_DUP2@
-HAVE_FTRUNCATE = @HAVE_FTRUNCATE@
-HAVE_GETSUBOPT = @HAVE_GETSUBOPT@
-HAVE_INTTYPES_H = @HAVE_INTTYPES_H@
-HAVE_LONG_LONG_INT = @HAVE_LONG_LONG_INT@
-HAVE_MEMPCPY = @HAVE_MEMPCPY@
-HAVE_MKDTEMP = @HAVE_MKDTEMP@
-HAVE_NETINET_IN_H = @HAVE_NETINET_IN_H@
-HAVE_READLINK = @HAVE_READLINK@
-HAVE_SIGNED_SIG_ATOMIC_T = @HAVE_SIGNED_SIG_ATOMIC_T@
-HAVE_SIGNED_WCHAR_T = @HAVE_SIGNED_WCHAR_T@
-HAVE_SIGNED_WINT_T = @HAVE_SIGNED_WINT_T@
-HAVE_STDINT_H = @HAVE_STDINT_H@
-HAVE_STPCPY = @HAVE_STPCPY@
-HAVE_STPNCPY = @HAVE_STPNCPY@
-HAVE_STRCASECMP = @HAVE_STRCASECMP@
-HAVE_STRCASESTR = @HAVE_STRCASESTR@
-HAVE_STRCHRNUL = @HAVE_STRCHRNUL@
-HAVE_STRNDUP = @HAVE_STRNDUP@
-HAVE_STRPBRK = @HAVE_STRPBRK@
-HAVE_STRSEP = @HAVE_STRSEP@
-HAVE_STRUCT_TIMEVAL = @HAVE_STRUCT_TIMEVAL@
-HAVE_SYS_BITYPES_H = @HAVE_SYS_BITYPES_H@
-HAVE_SYS_INTTYPES_H = @HAVE_SYS_INTTYPES_H@
-HAVE_SYS_SOCKET_H = @HAVE_SYS_SOCKET_H@
-HAVE_SYS_TIME_H = @HAVE_SYS_TIME_H@
-HAVE_SYS_TYPES_H = @HAVE_SYS_TYPES_H@
-HAVE_UNISTD_H = @HAVE_UNISTD_H@
-HAVE_UNSIGNED_LONG_LONG_INT = @HAVE_UNSIGNED_LONG_LONG_INT@
-HAVE_WCTYPE_H = @HAVE_WCTYPE_H@
-HAVE_WINSOCK2_H = @HAVE_WINSOCK2_H@
-HAVE_WINT_T = @HAVE_WINT_T@
-HAVE_WS2TCPIP_H = @HAVE_WS2TCPIP_H@
-HAVE__BOOL = @HAVE__BOOL@
-HELP2MAN = @HELP2MAN@
-INSTALL = @INSTALL@
-INSTALL_DATA = @INSTALL_DATA@
-INSTALL_PROGRAM = @INSTALL_PROGRAM@
-INSTALL_SCRIPT = @INSTALL_SCRIPT@
-INSTALL_STRIP_PROGRAM = @INSTALL_STRIP_PROGRAM@
-INTLLIBS = @INTLLIBS@
-INTL_MACOSX_LIBS = @INTL_MACOSX_LIBS@
-INTTYPES_H = @INTTYPES_H@
-KMEM_GROUP = @KMEM_GROUP@
-LDFLAGS = @LDFLAGS@
-LIBCOREUTILS_LIBDEPS = @LIBCOREUTILS_LIBDEPS@
-LIBCOREUTILS_LTLIBDEPS = @LIBCOREUTILS_LTLIBDEPS@
-LIBICONV = @LIBICONV@
-LIBINTL = @LIBINTL@
-LIBOBJS = @LIBOBJS@
-LIBS = @LIBS@
-LIB_ACL = @LIB_ACL@
-LIB_ACL_TRIVIAL = @LIB_ACL_TRIVIAL@
-LIB_CLOCK_GETTIME = @LIB_CLOCK_GETTIME@
-LIB_CRYPT = @LIB_CRYPT@
-LIB_EACCESS = @LIB_EACCESS@
-LIB_FDATASYNC = @LIB_FDATASYNC@
-LIB_GETHRXTIME = @LIB_GETHRXTIME@
-LIB_NANOSLEEP = @LIB_NANOSLEEP@
-LN_S = @LN_S@
-LTLIBICONV = @LTLIBICONV@
-LTLIBINTL = @LTLIBINTL@
-LTLIBOBJS = @LTLIBOBJS@
-MAKEINFO = @MAKEINFO@
-MAN = @MAN@
-MKDIR_P = @MKDIR_P@
-MSGFMT = @MSGFMT@
-MSGFMT_015 = @MSGFMT_015@
-MSGMERGE = @MSGMERGE@
-NEED_SETGID = @NEED_SETGID@
-NETINET_IN_H = @NETINET_IN_H@
-OBJEXT = @OBJEXT@
-OPTIONAL_BIN_PROGS = @OPTIONAL_BIN_PROGS@
-PACKAGE = @PACKAGE@
-PACKAGE_BUGREPORT = @PACKAGE_BUGREPORT@
-PACKAGE_NAME = @PACKAGE_NAME@
-PACKAGE_STRING = @PACKAGE_STRING@
-PACKAGE_TARNAME = @PACKAGE_TARNAME@
-PACKAGE_VERSION = @PACKAGE_VERSION@
-PATH_SEPARATOR = @PATH_SEPARATOR@
-PERL = @PERL@
-POSUB = @POSUB@
-POW_LIB = @POW_LIB@
-PRIPTR_PREFIX = @PRIPTR_PREFIX@
-PRI_MACROS_BROKEN = @PRI_MACROS_BROKEN@
-PTRDIFF_T_SUFFIX = @PTRDIFF_T_SUFFIX@
-RANLIB = @RANLIB@
-REPLACE_CHOWN = @REPLACE_CHOWN@
-REPLACE_FCHDIR = @REPLACE_FCHDIR@
-REPLACE_FPRINTF = @REPLACE_FPRINTF@
-REPLACE_GETCWD = @REPLACE_GETCWD@
-REPLACE_GETTIMEOFDAY = @REPLACE_GETTIMEOFDAY@
-REPLACE_LOCALTIME_R = @REPLACE_LOCALTIME_R@
-REPLACE_MKSTEMP = @REPLACE_MKSTEMP@
-REPLACE_NANOSLEEP = @REPLACE_NANOSLEEP@
-REPLACE_PRINTF = @REPLACE_PRINTF@
-REPLACE_SNPRINTF = @REPLACE_SNPRINTF@
-REPLACE_SPRINTF = @REPLACE_SPRINTF@
-REPLACE_STRPTIME = @REPLACE_STRPTIME@
-REPLACE_TIMEGM = @REPLACE_TIMEGM@
-REPLACE_VFPRINTF = @REPLACE_VFPRINTF@
-REPLACE_VPRINTF = @REPLACE_VPRINTF@
-REPLACE_VSNPRINTF = @REPLACE_VSNPRINTF@
-REPLACE_VSPRINTF = @REPLACE_VSPRINTF@
-SEQ_LIBM = @SEQ_LIBM@
-SET_MAKE = @SET_MAKE@
-SHELL = @SHELL@
-SIG_ATOMIC_T_SUFFIX = @SIG_ATOMIC_T_SUFFIX@
-SIZE_T_SUFFIX = @SIZE_T_SUFFIX@
-STDBOOL_H = @STDBOOL_H@
-STDINT_H = @STDINT_H@
-STRIP = @STRIP@
-SYS_SOCKET_H = @SYS_SOCKET_H@
-SYS_STAT_H = @SYS_STAT_H@
-SYS_TIME_H = @SYS_TIME_H@
-SYS_TIME_H_DEFINES_STRUCT_TIMESPEC = @SYS_TIME_H_DEFINES_STRUCT_TIMESPEC@
-TIME_H_DEFINES_STRUCT_TIMESPEC = @TIME_H_DEFINES_STRUCT_TIMESPEC@
-U = @U@
-USE_NLS = @USE_NLS@
-VERSION = @VERSION@
-WCHAR_H = @WCHAR_H@
-WCHAR_T_SUFFIX = @WCHAR_T_SUFFIX@
-WCTYPE_H = @WCTYPE_H@
-WINT_T_SUFFIX = @WINT_T_SUFFIX@
-XGETTEXT = @XGETTEXT@
-XGETTEXT_015 = @XGETTEXT_015@
-YACC = @YACC@
-YFLAGS = @YFLAGS@
-abs_builddir = @abs_builddir@
-abs_srcdir = @abs_srcdir@
-abs_top_builddir = @abs_top_builddir@
-abs_top_srcdir = @abs_top_srcdir@
-ac_ct_CC = @ac_ct_CC@
-am__include = @am__include@
-am__leading_dot = @am__leading_dot@
-am__quote = @am__quote@
-am__tar = @am__tar@
-am__untar = @am__untar@
-bindir = @bindir@
-build = @build@
-build_alias = @build_alias@
-build_cpu = @build_cpu@
-build_os = @build_os@
-build_vendor = @build_vendor@
-builddir = @builddir@
-datadir = @datadir@
-datarootdir = @datarootdir@
-docdir = @docdir@
-dvidir = @dvidir@
-exec_prefix = @exec_prefix@
-gl_LIBOBJS = @gl_LIBOBJS@
-gl_LTLIBOBJS = @gl_LTLIBOBJS@
-host = @host@
-host_alias = @host_alias@
-host_cpu = @host_cpu@
-host_os = @host_os@
-host_vendor = @host_vendor@
-htmldir = @htmldir@
-includedir = @includedir@
-infodir = @infodir@
-install_sh = @install_sh@
-libdir = @libdir@
-libexecdir = @libexecdir@
-localedir = @localedir@
-localstatedir = @localstatedir@
-mandir = @mandir@
-mkdir_p = @mkdir_p@
-oldincludedir = @oldincludedir@
-pdfdir = @pdfdir@
-prefix = @prefix@
-program_transform_name = @program_transform_name@
-psdir = @psdir@
-sbindir = @sbindir@
-sharedstatedir = @sharedstatedir@
-srcdir = @srcdir@
-sysconfdir = @sysconfdir@
-target_alias = @target_alias@
-top_builddir = @top_builddir@
-top_srcdir = @top_srcdir@
-x = cut
-explicit =
-maint_gen = 1.I 1.X 2.I 2.X 3.I 3.X 4.I 4.X 5.I 5.X 6.I 6.X 7.I 7.X 8.I 8.X \
-9.I 9.X a.I a.X b.I b.X c.I c.X d.I d.X e.I e.X f.I f.X g.I g.X h.I h.X i.I \
-i.X j.I j.X k.I k.X l.I l.X m.I m.X n.I n.X o.I o.X p.I p.X q.I q.X r.I r.X \
-s.I s.X t.I t.X u.I u.X v.I v.X w.I w.X x.I x.X y.I y.X z.I z.X empty-fl.I \
-empty-fl.X missing-fl.I missing-fl.X empty-bl.I empty-bl.X missing-bl.I \
-missing-bl.X empty-f1.I empty-f1.X empty-f2.I empty-f2.X o-delim.I o-delim.X \
-nul-idelim.I nul-idelim.X nul-odelim.I nul-odelim.X multichar-od.I \
-multichar-od.X 8bit-delim.I 8bit-delim.X out-delim1.I out-delim1.X \
-out-delim2.I out-delim2.X out-delim3.I out-delim3.X out-delim3a.I \
-out-delim3a.X out-delim4.I out-delim4.X out-delim5.I out-delim5.X \
-out-delim6.I out-delim6.X od-abut.I od-abut.X od-overlap.I od-overlap.X \
-od-overlap2.I od-overlap2.X od-overlap3.I od-overlap3.X od-overlap4.I \
-od-overlap4.X od-overlap5.I od-overlap5.X
-
-run_gen = 1.O 1.E 2.O 2.E 3.O 3.E 4.O 4.E 5.O 5.E 6.O 6.E 7.O 7.E 8.O 8.E 9.O \
-9.E a.O a.E b.O b.E c.O c.E d.O d.E e.O e.E f.O f.E g.O g.E h.O h.E i.O i.E \
-j.O j.E k.O k.E l.O l.E m.O m.E n.O n.E o.O o.E p.O p.E q.O q.E r.O r.E s.O \
-s.E t.O t.E u.O u.E v.O v.E w.O w.E x.O x.E y.O y.E z.O z.E empty-fl.O \
-empty-fl.E missing-fl.O missing-fl.E empty-bl.O empty-bl.E missing-bl.O \
-missing-bl.E empty-f1.O empty-f1.E empty-f2.O empty-f2.E o-delim.O o-delim.E \
-nul-idelim.O nul-idelim.E nul-odelim.O nul-odelim.E multichar-od.O \
-multichar-od.E 8bit-delim.O 8bit-delim.E out-delim1.O out-delim1.E \
-out-delim2.O out-delim2.E out-delim3.O out-delim3.E out-delim3a.O \
-out-delim3a.E out-delim4.O out-delim4.E out-delim5.O out-delim5.E \
-out-delim6.O out-delim6.E od-abut.O od-abut.E od-overlap.O od-overlap.E \
-od-overlap2.O od-overlap2.E od-overlap3.O od-overlap3.E od-overlap4.O \
-od-overlap4.E od-overlap5.O od-overlap5.E
-
-EXTRA_DIST = Test.pm $x-tests $(explicit) $(maint_gen)
-noinst_SCRIPTS = $x-tests
-TESTS_ENVIRONMENT = \
- CU_TEST_NAME=`basename $(abs_srcdir)`,$$tst \
- PATH="$(VG_PATH_PREFIX)`pwd`/../../src$(PATH_SEPARATOR)$$PATH"
-
-editpl = sed -e 's,@''PERL''@,$(PERL),g' -e 's,@''srcdir''@,$(srcdir),g'
-TESTS = $x-tests
-mk_script = $(srcdir)/../mk-script
-MAINTAINERCLEANFILES = $x-tests $(maint_gen)
-CLEANFILES = $(run_gen)
-all: all-am
-
-.SUFFIXES:
-$(srcdir)/Makefile.in: $(srcdir)/Makefile.am $(am__configure_deps)
- @for dep in $?; do \
- case '$(am__configure_deps)' in \
- *$$dep*) \
- cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh \
- && exit 0; \
- exit 1;; \
- esac; \
- done; \
- echo ' cd $(top_srcdir) && $(AUTOMAKE) --gnu tests/cut/Makefile'; \
- cd $(top_srcdir) && \
- $(AUTOMAKE) --gnu tests/cut/Makefile
-.PRECIOUS: Makefile
-Makefile: $(srcdir)/Makefile.in $(top_builddir)/config.status
- @case '$?' in \
- *config.status*) \
- cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh;; \
- *) \
- echo ' cd $(top_builddir) && $(SHELL) ./config.status $(subdir)/$@ $(am__depfiles_maybe)'; \
- cd $(top_builddir) && $(SHELL) ./config.status $(subdir)/$@ $(am__depfiles_maybe);; \
- esac;
-
-$(top_builddir)/config.status: $(top_srcdir)/configure $(CONFIG_STATUS_DEPENDENCIES)
- cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh
-
-$(top_srcdir)/configure: $(am__configure_deps)
- cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh
-$(ACLOCAL_M4): $(am__aclocal_m4_deps)
- cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh
-tags: TAGS
-TAGS:
-
-ctags: CTAGS
-CTAGS:
-
-
-check-TESTS: $(TESTS)
- @failed=0; all=0; xfail=0; xpass=0; skip=0; ws='[ ]'; \
- srcdir=$(srcdir); export srcdir; \
- list=' $(TESTS) '; \
- if test -n "$$list"; then \
- for tst in $$list; do \
- if test -f ./$$tst; then dir=./; \
- elif test -f $$tst; then dir=; \
- else dir="$(srcdir)/"; fi; \
- if $(TESTS_ENVIRONMENT) $${dir}$$tst; then \
- all=`expr $$all + 1`; \
- case " $(XFAIL_TESTS) " in \
- *$$ws$$tst$$ws*) \
- xpass=`expr $$xpass + 1`; \
- failed=`expr $$failed + 1`; \
- echo "XPASS: $$tst"; \
- ;; \
- *) \
- echo "PASS: $$tst"; \
- ;; \
- esac; \
- elif test $$? -ne 77; then \
- all=`expr $$all + 1`; \
- case " $(XFAIL_TESTS) " in \
- *$$ws$$tst$$ws*) \
- xfail=`expr $$xfail + 1`; \
- echo "XFAIL: $$tst"; \
- ;; \
- *) \
- failed=`expr $$failed + 1`; \
- echo "FAIL: $$tst"; \
- ;; \
- esac; \
- else \
- skip=`expr $$skip + 1`; \
- echo "SKIP: $$tst"; \
- fi; \
- done; \
- if test "$$failed" -eq 0; then \
- if test "$$xfail" -eq 0; then \
- banner="All $$all tests passed"; \
- else \
- banner="All $$all tests behaved as expected ($$xfail expected failures)"; \
- fi; \
- else \
- if test "$$xpass" -eq 0; then \
- banner="$$failed of $$all tests failed"; \
- else \
- banner="$$failed of $$all tests did not behave as expected ($$xpass unexpected passes)"; \
- fi; \
- fi; \
- dashes="$$banner"; \
- skipped=""; \
- if test "$$skip" -ne 0; then \
- skipped="($$skip tests were not run)"; \
- test `echo "$$skipped" | wc -c` -le `echo "$$banner" | wc -c` || \
- dashes="$$skipped"; \
- fi; \
- report=""; \
- if test "$$failed" -ne 0 && test -n "$(PACKAGE_BUGREPORT)"; then \
- report="Please report to $(PACKAGE_BUGREPORT)"; \
- test `echo "$$report" | wc -c` -le `echo "$$banner" | wc -c` || \
- dashes="$$report"; \
- fi; \
- dashes=`echo "$$dashes" | sed s/./=/g`; \
- echo "$$dashes"; \
- echo "$$banner"; \
- test -z "$$skipped" || echo "$$skipped"; \
- test -z "$$report" || echo "$$report"; \
- echo "$$dashes"; \
- test "$$failed" -eq 0; \
- else :; fi
-
-distdir: $(DISTFILES)
- @srcdirstrip=`echo "$(srcdir)" | sed 's/[].[^$$\\*]/\\\\&/g'`; \
- topsrcdirstrip=`echo "$(top_srcdir)" | sed 's/[].[^$$\\*]/\\\\&/g'`; \
- list='$(DISTFILES)'; \
- dist_files=`for file in $$list; do echo $$file; done | \
- sed -e "s|^$$srcdirstrip/||;t" \
- -e "s|^$$topsrcdirstrip/|$(top_builddir)/|;t"`; \
- case $$dist_files in \
- */*) $(MKDIR_P) `echo "$$dist_files" | \
- sed '/\//!d;s|^|$(distdir)/|;s,/[^/]*$$,,' | \
- sort -u` ;; \
- esac; \
- for file in $$dist_files; do \
- if test -f $$file || test -d $$file; then d=.; else d=$(srcdir); fi; \
- if test -d $$d/$$file; then \
- dir=`echo "/$$file" | sed -e 's,/[^/]*$$,,'`; \
- if test -d $(srcdir)/$$file && test $$d != $(srcdir); then \
- cp -pR $(srcdir)/$$file $(distdir)$$dir || exit 1; \
- fi; \
- cp -pR $$d/$$file $(distdir)$$dir || exit 1; \
- else \
- test -f $(distdir)/$$file \
- || cp -p $$d/$$file $(distdir)/$$file \
- || exit 1; \
- fi; \
- done
-check-am: all-am
- $(MAKE) $(AM_MAKEFLAGS) check-TESTS
-check: check-am
-all-am: Makefile $(SCRIPTS)
-installdirs:
-install: install-am
-install-exec: install-exec-am
-install-data: install-data-am
-uninstall: uninstall-am
-
-install-am: all-am
- @$(MAKE) $(AM_MAKEFLAGS) install-exec-am install-data-am
-
-installcheck: installcheck-am
-install-strip:
- $(MAKE) $(AM_MAKEFLAGS) INSTALL_PROGRAM="$(INSTALL_STRIP_PROGRAM)" \
- install_sh_PROGRAM="$(INSTALL_STRIP_PROGRAM)" INSTALL_STRIP_FLAG=-s \
- `test -z '$(STRIP)' || \
- echo "INSTALL_PROGRAM_ENV=STRIPPROG='$(STRIP)'"` install
-mostlyclean-generic:
-
-clean-generic:
- -test -z "$(CLEANFILES)" || rm -f $(CLEANFILES)
-
-distclean-generic:
- -test -z "$(CONFIG_CLEAN_FILES)" || rm -f $(CONFIG_CLEAN_FILES)
-
-maintainer-clean-generic:
- @echo "This command is intended for maintainers to use"
- @echo "it deletes files that may require special tools to rebuild."
- -test -z "$(MAINTAINERCLEANFILES)" || rm -f $(MAINTAINERCLEANFILES)
-clean: clean-am
-
-clean-am: clean-generic mostlyclean-am
-
-distclean: distclean-am
- -rm -f Makefile
-distclean-am: clean-am distclean-generic
-
-dvi: dvi-am
-
-dvi-am:
-
-html: html-am
-
-info: info-am
-
-info-am:
-
-install-data-am:
-
-install-dvi: install-dvi-am
-
-install-exec-am:
-
-install-html: install-html-am
-
-install-info: install-info-am
-
-install-man:
-
-install-pdf: install-pdf-am
-
-install-ps: install-ps-am
-
-installcheck-am:
-
-maintainer-clean: maintainer-clean-am
- -rm -f Makefile
-maintainer-clean-am: distclean-am maintainer-clean-generic
-
-mostlyclean: mostlyclean-am
-
-mostlyclean-am: mostlyclean-generic
-
-pdf: pdf-am
-
-pdf-am:
-
-ps: ps-am
-
-ps-am:
-
-uninstall-am:
-
-.MAKE: install-am install-strip
-
-.PHONY: all all-am check check-TESTS check-am clean clean-generic \
- distclean distclean-generic distdir dvi dvi-am html html-am \
- info info-am install install-am install-data install-data-am \
- install-dvi install-dvi-am install-exec install-exec-am \
- install-html install-html-am install-info install-info-am \
- install-man install-pdf install-pdf-am install-ps \
- install-ps-am install-strip installcheck installcheck-am \
- installdirs maintainer-clean maintainer-clean-generic \
- mostlyclean mostlyclean-generic pdf pdf-am ps ps-am uninstall \
- uninstall-am
-
-$(srcdir)/$x-tests: $(mk_script) Test.pm Makefile.am
- test '$x' = test && prog=../../src/$x || prog=$x; \
- $(PERL) -I$(srcdir) -w -- $(mk_script) $(srcdir) $$prog > $@.n
- mv $@.n $@
- chmod 755 $@
-
-check: $(maint_gen)
-
-$(srcdir)/Makefile.am: ../Makefile.am.in Test.pm $(mk_script)
- rm -f $@ $@t
- sed -n '1,/^##test-files-begin/p' $(srcdir)/../Makefile.am.in > $@t
- tool=`echo $(subdir)|sed 's/^tests.//;s/-test//'`; \
- echo "x = $$tool" >> $@t
- $(PERL) -I$(srcdir) -w -- $(mk_script) $(srcdir) --list >> $@t
- sed -n '/^##test-files-end/,$$p' $(srcdir)/../Makefile.am.in >> $@t
- chmod -w $@t
- mv $@t $@
-# Tell versions [3.59,3.63) of GNU make to not export all variables.
-# Otherwise a system limit (for SysV at least) may be exceeded.
-.NOEXPORT:
diff --git a/tests/cut/Test.pm b/tests/cut/Test.pm
deleted file mode 100755
index b4cd4e5..0000000
--- a/tests/cut/Test.pm
+++ /dev/null
@@ -1,132 +0,0 @@
-# Test 'cut'.
-
-# Copyright (C) 1996, 1997, 1998, 1999, 2003, 2004 Free Software
-# Foundation, Inc.
-
-# This program is free software; you can redistribute it and/or modify
-# it under the terms of the GNU General Public License as published by
-# the Free Software Foundation; either version 2 of the License, or
-# (at your option) any later version.
-
-# This program is distributed in the hope that it will be useful,
-# but WITHOUT ANY WARRANTY; without even the implied warranty of
-# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
-# GNU General Public License for more details.
-
-# You should have received a copy of the GNU General Public License
-# along with this program; if not, write to the Free Software
-# Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA
-# 02110-1301, USA.
-
-package Test;
-require 5.002;
-use strict;
-
-$Test::input_via_default = {REDIR => 0, FILE => 0, PIPE => 0};
-
-my @tv = (
-# test flags input expected output expected return code
-#
-['1', '-d: -f1,3-', "a:b:c\n", "a:c\n", 0],
-['2', '-d: -f1,3-', "a:b:c\n", "a:c\n", 0],
-['3', '-d: -f2-', "a:b:c\n", "b:c\n", 0],
-['4', '-d: -f4', "a:b:c\n", "\n", 0],
-['5', '-d: -f4', "", "", 0],
-['6', '-c4', "123\n", "\n", 0],
-['7', '-c4', "123", "\n", 0],
-['8', '-c4', "123\n1", "\n\n", 0],
-['9', '-c4', "", "", 0],
-['a', '-s -d: -f3-', "a:b:c\n", "c\n", 0],
-['b', '-s -d: -f2,3', "a:b:c\n", "b:c\n", 0],
-['c', '-s -d: -f1,3', "a:b:c\n", "a:c\n", 0],
-# Trailing colon should not be output
-['d', '-s -d: -f1,3', "a:b:c:\n", "a:c\n", 0],
-['e', '-s -d: -f3-', "a:b:c:\n", "c:\n", 0],
-['f', '-s -d: -f3-4', "a:b:c:\n", "c:\n", 0],
-['g', '-s -d: -f3,4', "a:b:c:\n", "c:\n", 0],
-# Make sure -s suppresses non-delimited lines
-['h', '-s -d: -f2,3', "abc\n", "", 0],
-#
-['i', '-d: -f1-3', ":::\n", "::\n", 0],
-['j', '-d: -f1-4', ":::\n", ":::\n", 0],
-['k', '-d: -f2-3', ":::\n", ":\n", 0],
-['l', '-d: -f2-4', ":::\n", "::\n", 0],
-['m', '-s -d: -f1-3', ":::\n", "::\n", 0],
-['n', '-s -d: -f1-4', ":::\n", ":::\n", 0],
-['o', '-s -d: -f2-3', ":::\n", ":\n", 0],
-['p', '-s -d: -f2-4', ":::\n", "::\n", 0],
-['q', '-s -d: -f2-4', ":::\n:\n", "::\n\n", 0],
-['r', '-s -d: -f2-4', ":::\n:1\n", "::\n1\n", 0],
-['s', '-s -d: -f1-4', ":::\n:a\n", ":::\n:a\n", 0],
-['t', '-s -d: -f3-', ":::\n:1\n", ":\n\n", 0],
-# Make sure it handles empty input properly, with and without -s.
-['u', '-s -f3-', "", "", 0],
-['v', '-f3-', "", "", 0],
-# Make sure it handles empty input properly.
-['w', '-b 1', "", "", 0],
-['x', '-s -d: -f2-4', ":\n", "\n", 0],
-# Errors
-# -s may be used only with -f
-['y', '-s -b4', ":\n", "", 1],
-# You must specify bytes or fields (or chars)
-['z', '', ":\n", "", 1],
-# Empty field list
-['empty-fl', '-f \'\'', ":\n", "", 1],
-# Missing field list
-['missing-fl', '-f', ":\n", "", 1],
-# Empty byte list
-['empty-bl', '-b \'\'', ":\n", "", 1],
-# Missing byte list
-['missing-bl', '-b', ":\n", "", 1],
-
-# This test fails with cut from textutils-1.22.
-['empty-f1', '-f1', "", "", 0],
-
-['empty-f2', '-f2', "", "", 0],
-
-['o-delim', '-d: -f2,3 --out=_', "a:b:c\n", "b_c\n", 0],
-['nul-idelim', "-d '' -f2,3 --out=_", "a\0b\0c\n", "b_c\n", 0],
-['nul-odelim', "-d: -f2,3 --out=", "a:b:c\n", "b\0c\n", 0],
-['multichar-od', "-d: -f2,3 --out=_._", "a:b:c\n", "b_._c\n", 0],
-
-# Prior to 1.22i, you couldn't use a delimiter that would sign-extend.
-['8bit-delim', "'-d\255' -f2,3 --out=_", "a\255b\255c\n", "b_c\n", 0],
-
-# New functionality:
-['out-delim1', '-c1-3,5- --output-d=:', "abcdefg\n", "abc:efg\n", 0],
-# A totally overlapped field shouldn't change anything:
-['out-delim2', '-c1-3,2,5- --output-d=:', "abcdefg\n", "abc:efg\n", 0],
-# Partial overlap: index `2' is not at the start of a range.
-['out-delim3', '-c1-3,2-4,6 --output-d=:', "abcdefg\n", "abcd:f\n", 0],
-['out-delim3a', '-c1-3,2-4,6- --output-d=:', "abcdefg\n", "abcd:fg\n", 0],
-# Ensure that the following two commands produce the same output.
-# Before an off-by-one fix, the output from the former would not contain a `:'.
-['out-delim4', '-c4-,2-3 --output-d=:', "abcdefg\n", "bc:defg\n", 0],
-['out-delim5', '-c2-3,4- --output-d=:', "abcdefg\n", "bc:defg\n", 0],
-# This test would fail for cut from coreutils-5.0.1 and earlier.
-['out-delim6', '-c2,1-3 --output-d=:', "abc\n", "abc\n", 0],
-#
-['od-abut', '-b1-2,3-4 --output-d=:', "abcd\n", "ab:cd\n", 0],
-['od-overlap', '-b1-2,2 --output-d=:', "abc\n", "ab\n", 0],
-['od-overlap2', '-b1-2,2- --output-d=:', "abc\n", "abc\n", 0],
-['od-overlap3', '-b1-3,2- --output-d=:', "abcd\n", "abcd\n", 0],
-['od-overlap4', '-b1-3,2-3 --output-d=:', "abcd\n", "abc\n", 0],
-['od-overlap5', '-b1-3,1-4 --output-d=:', "abcde\n", "abcd\n", 0],
-
-);
-
-# Don't use a pipe for failing tests. Otherwise, sometimes they
-# fail so early they'd evoke the `Broken pipe' message.
-my $t;
-foreach $t (@tv)
- {
- my ($test_name, $flags, $in, $exp, $ret) = @$t;
- $Test::input_via{$test_name} = {REDIR => 0, FILE => 0} if $ret;
- }
-
-sub test_vector
-{
- return @tv;
-}
-
-1;
diff --git a/tests/cut/a.I b/tests/cut/a.I
deleted file mode 100644
index af0abb2..0000000
--- a/tests/cut/a.I
+++ /dev/null
@@ -1 +0,0 @@
-a:b:c
diff --git a/tests/cut/a.X b/tests/cut/a.X
deleted file mode 100644
index f2ad6c7..0000000
--- a/tests/cut/a.X
+++ /dev/null
@@ -1 +0,0 @@
-c
diff --git a/tests/cut/b.I b/tests/cut/b.I
deleted file mode 100644
index af0abb2..0000000
--- a/tests/cut/b.I
+++ /dev/null
@@ -1 +0,0 @@
-a:b:c
diff --git a/tests/cut/b.X b/tests/cut/b.X
deleted file mode 100644
index f0c9a09..0000000
--- a/tests/cut/b.X
+++ /dev/null
@@ -1 +0,0 @@
-b:c
diff --git a/tests/cut/c.I b/tests/cut/c.I
deleted file mode 100644
index af0abb2..0000000
--- a/tests/cut/c.I
+++ /dev/null
@@ -1 +0,0 @@
-a:b:c
diff --git a/tests/cut/c.X b/tests/cut/c.X
deleted file mode 100644
index 7098509..0000000
--- a/tests/cut/c.X
+++ /dev/null
@@ -1 +0,0 @@
-a:c
diff --git a/tests/cut/cut-tests b/tests/cut/cut-tests
deleted file mode 100755
index af553e8..0000000
--- a/tests/cut/cut-tests
+++ /dev/null
@@ -1,3105 +0,0 @@
-#! /bin/sh
-# This script was generated automatically by mk-script.
-case $# in
- 0) xx='cut';;
- *) xx="$1";;
-esac
-test "$VERBOSE" && echo=echo || echo=:
-$echo testing program: $xx
-errors=0
-test "$srcdir" || srcdir=.
-test "$VERBOSE" && $xx --version 2> /dev/null
-
-# Make sure we get English translations.
-LANGUAGE=C
-export LANGUAGE
-LC_ALL=C
-export LC_ALL
-LANG=C
-export LANG
-
-$xx -d: -f1,3- $srcdir/1.I > 1.O 2> 1.E
-code=$?
-if test $code != 0; then
- $echo "Test 1(F) failed: $xx return code $code differs from expected value 0" 1>&2
- errors=`expr $errors + 1`
-else
- cmp 1.O $srcdir/1.X > /dev/null 2>&1
- case $? in
- 0) if test "$VERBOSE"; then $echo "passed 1(F)"; fi;;
- 1) $echo "Test 1(F) failed: files 1.O and $srcdir/1.X differ" 1>&2
- (diff -c 1.O $srcdir/1.X) 2> /dev/null
- errors=`expr $errors + 1`;;
- 2) $echo "Test 1(F) may have failed." 1>&2
- $echo The command "cmp 1.O $srcdir/1.X" failed. 1>&2
- errors=`expr $errors + 1`;;
- esac
-fi
-test -s 1.E || rm -f 1.E
-cat $srcdir/1.I | $xx -d: -f1,3- > 1.O 2> 1.E
-code=$?
-if test $code != 0; then
- $echo "Test 1(|) failed: $xx return code $code differs from expected value 0" 1>&2
- errors=`expr $errors + 1`
-else
- cmp 1.O $srcdir/1.X > /dev/null 2>&1
- case $? in
- 0) if test "$VERBOSE"; then $echo "passed 1(|)"; fi;;
- 1) $echo "Test 1(|) failed: files 1.O and $srcdir/1.X differ" 1>&2
- (diff -c 1.O $srcdir/1.X) 2> /dev/null
- errors=`expr $errors + 1`;;
- 2) $echo "Test 1(|) may have failed." 1>&2
- $echo The command "cmp 1.O $srcdir/1.X" failed. 1>&2
- errors=`expr $errors + 1`;;
- esac
-fi
-test -s 1.E || rm -f 1.E
-$xx -d: -f1,3- < $srcdir/1.I > 1.O 2> 1.E
-code=$?
-if test $code != 0; then
- $echo "Test 1(<) failed: $xx return code $code differs from expected value 0" 1>&2
- errors=`expr $errors + 1`
-else
- cmp 1.O $srcdir/1.X > /dev/null 2>&1
- case $? in
- 0) if test "$VERBOSE"; then $echo "passed 1(<)"; fi;;
- 1) $echo "Test 1(<) failed: files 1.O and $srcdir/1.X differ" 1>&2
- (diff -c 1.O $srcdir/1.X) 2> /dev/null
- errors=`expr $errors + 1`;;
- 2) $echo "Test 1(<) may have failed." 1>&2
- $echo The command "cmp 1.O $srcdir/1.X" failed. 1>&2
- errors=`expr $errors + 1`;;
- esac
-fi
-test -s 1.E || rm -f 1.E
-$xx -d: -f1,3- $srcdir/2.I > 2.O 2> 2.E
-code=$?
-if test $code != 0; then
- $echo "Test 2(F) failed: $xx return code $code differs from expected value 0" 1>&2
- errors=`expr $errors + 1`
-else
- cmp 2.O $srcdir/2.X > /dev/null 2>&1
- case $? in
- 0) if test "$VERBOSE"; then $echo "passed 2(F)"; fi;;
- 1) $echo "Test 2(F) failed: files 2.O and $srcdir/2.X differ" 1>&2
- (diff -c 2.O $srcdir/2.X) 2> /dev/null
- errors=`expr $errors + 1`;;
- 2) $echo "Test 2(F) may have failed." 1>&2
- $echo The command "cmp 2.O $srcdir/2.X" failed. 1>&2
- errors=`expr $errors + 1`;;
- esac
-fi
-test -s 2.E || rm -f 2.E
-cat $srcdir/2.I | $xx -d: -f1,3- > 2.O 2> 2.E
-code=$?
-if test $code != 0; then
- $echo "Test 2(|) failed: $xx return code $code differs from expected value 0" 1>&2
- errors=`expr $errors + 1`
-else
- cmp 2.O $srcdir/2.X > /dev/null 2>&1
- case $? in
- 0) if test "$VERBOSE"; then $echo "passed 2(|)"; fi;;
- 1) $echo "Test 2(|) failed: files 2.O and $srcdir/2.X differ" 1>&2
- (diff -c 2.O $srcdir/2.X) 2> /dev/null
- errors=`expr $errors + 1`;;
- 2) $echo "Test 2(|) may have failed." 1>&2
- $echo The command "cmp 2.O $srcdir/2.X" failed. 1>&2
- errors=`expr $errors + 1`;;
- esac
-fi
-test -s 2.E || rm -f 2.E
-$xx -d: -f1,3- < $srcdir/2.I > 2.O 2> 2.E
-code=$?
-if test $code != 0; then
- $echo "Test 2(<) failed: $xx return code $code differs from expected value 0" 1>&2
- errors=`expr $errors + 1`
-else
- cmp 2.O $srcdir/2.X > /dev/null 2>&1
- case $? in
- 0) if test "$VERBOSE"; then $echo "passed 2(<)"; fi;;
- 1) $echo "Test 2(<) failed: files 2.O and $srcdir/2.X differ" 1>&2
- (diff -c 2.O $srcdir/2.X) 2> /dev/null
- errors=`expr $errors + 1`;;
- 2) $echo "Test 2(<) may have failed." 1>&2
- $echo The command "cmp 2.O $srcdir/2.X" failed. 1>&2
- errors=`expr $errors + 1`;;
- esac
-fi
-test -s 2.E || rm -f 2.E
-$xx -d: -f2- $srcdir/3.I > 3.O 2> 3.E
-code=$?
-if test $code != 0; then
- $echo "Test 3(F) failed: $xx return code $code differs from expected value 0" 1>&2
- errors=`expr $errors + 1`
-else
- cmp 3.O $srcdir/3.X > /dev/null 2>&1
- case $? in
- 0) if test "$VERBOSE"; then $echo "passed 3(F)"; fi;;
- 1) $echo "Test 3(F) failed: files 3.O and $srcdir/3.X differ" 1>&2
- (diff -c 3.O $srcdir/3.X) 2> /dev/null
- errors=`expr $errors + 1`;;
- 2) $echo "Test 3(F) may have failed." 1>&2
- $echo The command "cmp 3.O $srcdir/3.X" failed. 1>&2
- errors=`expr $errors + 1`;;
- esac
-fi
-test -s 3.E || rm -f 3.E
-cat $srcdir/3.I | $xx -d: -f2- > 3.O 2> 3.E
-code=$?
-if test $code != 0; then
- $echo "Test 3(|) failed: $xx return code $code differs from expected value 0" 1>&2
- errors=`expr $errors + 1`
-else
- cmp 3.O $srcdir/3.X > /dev/null 2>&1
- case $? in
- 0) if test "$VERBOSE"; then $echo "passed 3(|)"; fi;;
- 1) $echo "Test 3(|) failed: files 3.O and $srcdir/3.X differ" 1>&2
- (diff -c 3.O $srcdir/3.X) 2> /dev/null
- errors=`expr $errors + 1`;;
- 2) $echo "Test 3(|) may have failed." 1>&2
- $echo The command "cmp 3.O $srcdir/3.X" failed. 1>&2
- errors=`expr $errors + 1`;;
- esac
-fi
-test -s 3.E || rm -f 3.E
-$xx -d: -f2- < $srcdir/3.I > 3.O 2> 3.E
-code=$?
-if test $code != 0; then
- $echo "Test 3(<) failed: $xx return code $code differs from expected value 0" 1>&2
- errors=`expr $errors + 1`
-else
- cmp 3.O $srcdir/3.X > /dev/null 2>&1
- case $? in
- 0) if test "$VERBOSE"; then $echo "passed 3(<)"; fi;;
- 1) $echo "Test 3(<) failed: files 3.O and $srcdir/3.X differ" 1>&2
- (diff -c 3.O $srcdir/3.X) 2> /dev/null
- errors=`expr $errors + 1`;;
- 2) $echo "Test 3(<) may have failed." 1>&2
- $echo The command "cmp 3.O $srcdir/3.X" failed. 1>&2
- errors=`expr $errors + 1`;;
- esac
-fi
-test -s 3.E || rm -f 3.E
-$xx -d: -f4 $srcdir/4.I > 4.O 2> 4.E
-code=$?
-if test $code != 0; then
- $echo "Test 4(F) failed: $xx return code $code differs from expected value 0" 1>&2
- errors=`expr $errors + 1`
-else
- cmp 4.O $srcdir/4.X > /dev/null 2>&1
- case $? in
- 0) if test "$VERBOSE"; then $echo "passed 4(F)"; fi;;
- 1) $echo "Test 4(F) failed: files 4.O and $srcdir/4.X differ" 1>&2
- (diff -c 4.O $srcdir/4.X) 2> /dev/null
- errors=`expr $errors + 1`;;
- 2) $echo "Test 4(F) may have failed." 1>&2
- $echo The command "cmp 4.O $srcdir/4.X" failed. 1>&2
- errors=`expr $errors + 1`;;
- esac
-fi
-test -s 4.E || rm -f 4.E
-cat $srcdir/4.I | $xx -d: -f4 > 4.O 2> 4.E
-code=$?
-if test $code != 0; then
- $echo "Test 4(|) failed: $xx return code $code differs from expected value 0" 1>&2
- errors=`expr $errors + 1`
-else
- cmp 4.O $srcdir/4.X > /dev/null 2>&1
- case $? in
- 0) if test "$VERBOSE"; then $echo "passed 4(|)"; fi;;
- 1) $echo "Test 4(|) failed: files 4.O and $srcdir/4.X differ" 1>&2
- (diff -c 4.O $srcdir/4.X) 2> /dev/null
- errors=`expr $errors + 1`;;
- 2) $echo "Test 4(|) may have failed." 1>&2
- $echo The command "cmp 4.O $srcdir/4.X" failed. 1>&2
- errors=`expr $errors + 1`;;
- esac
-fi
-test -s 4.E || rm -f 4.E
-$xx -d: -f4 < $srcdir/4.I > 4.O 2> 4.E
-code=$?
-if test $code != 0; then
- $echo "Test 4(<) failed: $xx return code $code differs from expected value 0" 1>&2
- errors=`expr $errors + 1`
-else
- cmp 4.O $srcdir/4.X > /dev/null 2>&1
- case $? in
- 0) if test "$VERBOSE"; then $echo "passed 4(<)"; fi;;
- 1) $echo "Test 4(<) failed: files 4.O and $srcdir/4.X differ" 1>&2
- (diff -c 4.O $srcdir/4.X) 2> /dev/null
- errors=`expr $errors + 1`;;
- 2) $echo "Test 4(<) may have failed." 1>&2
- $echo The command "cmp 4.O $srcdir/4.X" failed. 1>&2
- errors=`expr $errors + 1`;;
- esac
-fi
-test -s 4.E || rm -f 4.E
-$xx -d: -f4 $srcdir/5.I > 5.O 2> 5.E
-code=$?
-if test $code != 0; then
- $echo "Test 5(F) failed: $xx return code $code differs from expected value 0" 1>&2
- errors=`expr $errors + 1`
-else
- cmp 5.O $srcdir/5.X > /dev/null 2>&1
- case $? in
- 0) if test "$VERBOSE"; then $echo "passed 5(F)"; fi;;
- 1) $echo "Test 5(F) failed: files 5.O and $srcdir/5.X differ" 1>&2
- (diff -c 5.O $srcdir/5.X) 2> /dev/null
- errors=`expr $errors + 1`;;
- 2) $echo "Test 5(F) may have failed." 1>&2
- $echo The command "cmp 5.O $srcdir/5.X" failed. 1>&2
- errors=`expr $errors + 1`;;
- esac
-fi
-test -s 5.E || rm -f 5.E
-cat $srcdir/5.I | $xx -d: -f4 > 5.O 2> 5.E
-code=$?
-if test $code != 0; then
- $echo "Test 5(|) failed: $xx return code $code differs from expected value 0" 1>&2
- errors=`expr $errors + 1`
-else
- cmp 5.O $srcdir/5.X > /dev/null 2>&1
- case $? in
- 0) if test "$VERBOSE"; then $echo "passed 5(|)"; fi;;
- 1) $echo "Test 5(|) failed: files 5.O and $srcdir/5.X differ" 1>&2
- (diff -c 5.O $srcdir/5.X) 2> /dev/null
- errors=`expr $errors + 1`;;
- 2) $echo "Test 5(|) may have failed." 1>&2
- $echo The command "cmp 5.O $srcdir/5.X" failed. 1>&2
- errors=`expr $errors + 1`;;
- esac
-fi
-test -s 5.E || rm -f 5.E
-$xx -d: -f4 < $srcdir/5.I > 5.O 2> 5.E
-code=$?
-if test $code != 0; then
- $echo "Test 5(<) failed: $xx return code $code differs from expected value 0" 1>&2
- errors=`expr $errors + 1`
-else
- cmp 5.O $srcdir/5.X > /dev/null 2>&1
- case $? in
- 0) if test "$VERBOSE"; then $echo "passed 5(<)"; fi;;
- 1) $echo "Test 5(<) failed: files 5.O and $srcdir/5.X differ" 1>&2
- (diff -c 5.O $srcdir/5.X) 2> /dev/null
- errors=`expr $errors + 1`;;
- 2) $echo "Test 5(<) may have failed." 1>&2
- $echo The command "cmp 5.O $srcdir/5.X" failed. 1>&2
- errors=`expr $errors + 1`;;
- esac
-fi
-test -s 5.E || rm -f 5.E
-$xx -c4 $srcdir/6.I > 6.O 2> 6.E
-code=$?
-if test $code != 0; then
- $echo "Test 6(F) failed: $xx return code $code differs from expected value 0" 1>&2
- errors=`expr $errors + 1`
-else
- cmp 6.O $srcdir/6.X > /dev/null 2>&1
- case $? in
- 0) if test "$VERBOSE"; then $echo "passed 6(F)"; fi;;
- 1) $echo "Test 6(F) failed: files 6.O and $srcdir/6.X differ" 1>&2
- (diff -c 6.O $srcdir/6.X) 2> /dev/null
- errors=`expr $errors + 1`;;
- 2) $echo "Test 6(F) may have failed." 1>&2
- $echo The command "cmp 6.O $srcdir/6.X" failed. 1>&2
- errors=`expr $errors + 1`;;
- esac
-fi
-test -s 6.E || rm -f 6.E
-cat $srcdir/6.I | $xx -c4 > 6.O 2> 6.E
-code=$?
-if test $code != 0; then
- $echo "Test 6(|) failed: $xx return code $code differs from expected value 0" 1>&2
- errors=`expr $errors + 1`
-else
- cmp 6.O $srcdir/6.X > /dev/null 2>&1
- case $? in
- 0) if test "$VERBOSE"; then $echo "passed 6(|)"; fi;;
- 1) $echo "Test 6(|) failed: files 6.O and $srcdir/6.X differ" 1>&2
- (diff -c 6.O $srcdir/6.X) 2> /dev/null
- errors=`expr $errors + 1`;;
- 2) $echo "Test 6(|) may have failed." 1>&2
- $echo The command "cmp 6.O $srcdir/6.X" failed. 1>&2
- errors=`expr $errors + 1`;;
- esac
-fi
-test -s 6.E || rm -f 6.E
-$xx -c4 < $srcdir/6.I > 6.O 2> 6.E
-code=$?
-if test $code != 0; then
- $echo "Test 6(<) failed: $xx return code $code differs from expected value 0" 1>&2
- errors=`expr $errors + 1`
-else
- cmp 6.O $srcdir/6.X > /dev/null 2>&1
- case $? in
- 0) if test "$VERBOSE"; then $echo "passed 6(<)"; fi;;
- 1) $echo "Test 6(<) failed: files 6.O and $srcdir/6.X differ" 1>&2
- (diff -c 6.O $srcdir/6.X) 2> /dev/null
- errors=`expr $errors + 1`;;
- 2) $echo "Test 6(<) may have failed." 1>&2
- $echo The command "cmp 6.O $srcdir/6.X" failed. 1>&2
- errors=`expr $errors + 1`;;
- esac
-fi
-test -s 6.E || rm -f 6.E
-$xx -c4 $srcdir/7.I > 7.O 2> 7.E
-code=$?
-if test $code != 0; then
- $echo "Test 7(F) failed: $xx return code $code differs from expected value 0" 1>&2
- errors=`expr $errors + 1`
-else
- cmp 7.O $srcdir/7.X > /dev/null 2>&1
- case $? in
- 0) if test "$VERBOSE"; then $echo "passed 7(F)"; fi;;
- 1) $echo "Test 7(F) failed: files 7.O and $srcdir/7.X differ" 1>&2
- (diff -c 7.O $srcdir/7.X) 2> /dev/null
- errors=`expr $errors + 1`;;
- 2) $echo "Test 7(F) may have failed." 1>&2
- $echo The command "cmp 7.O $srcdir/7.X" failed. 1>&2
- errors=`expr $errors + 1`;;
- esac
-fi
-test -s 7.E || rm -f 7.E
-cat $srcdir/7.I | $xx -c4 > 7.O 2> 7.E
-code=$?
-if test $code != 0; then
- $echo "Test 7(|) failed: $xx return code $code differs from expected value 0" 1>&2
- errors=`expr $errors + 1`
-else
- cmp 7.O $srcdir/7.X > /dev/null 2>&1
- case $? in
- 0) if test "$VERBOSE"; then $echo "passed 7(|)"; fi;;
- 1) $echo "Test 7(|) failed: files 7.O and $srcdir/7.X differ" 1>&2
- (diff -c 7.O $srcdir/7.X) 2> /dev/null
- errors=`expr $errors + 1`;;
- 2) $echo "Test 7(|) may have failed." 1>&2
- $echo The command "cmp 7.O $srcdir/7.X" failed. 1>&2
- errors=`expr $errors + 1`;;
- esac
-fi
-test -s 7.E || rm -f 7.E
-$xx -c4 < $srcdir/7.I > 7.O 2> 7.E
-code=$?
-if test $code != 0; then
- $echo "Test 7(<) failed: $xx return code $code differs from expected value 0" 1>&2
- errors=`expr $errors + 1`
-else
- cmp 7.O $srcdir/7.X > /dev/null 2>&1
- case $? in
- 0) if test "$VERBOSE"; then $echo "passed 7(<)"; fi;;
- 1) $echo "Test 7(<) failed: files 7.O and $srcdir/7.X differ" 1>&2
- (diff -c 7.O $srcdir/7.X) 2> /dev/null
- errors=`expr $errors + 1`;;
- 2) $echo "Test 7(<) may have failed." 1>&2
- $echo The command "cmp 7.O $srcdir/7.X" failed. 1>&2
- errors=`expr $errors + 1`;;
- esac
-fi
-test -s 7.E || rm -f 7.E
-$xx -c4 $srcdir/8.I > 8.O 2> 8.E
-code=$?
-if test $code != 0; then
- $echo "Test 8(F) failed: $xx return code $code differs from expected value 0" 1>&2
- errors=`expr $errors + 1`
-else
- cmp 8.O $srcdir/8.X > /dev/null 2>&1
- case $? in
- 0) if test "$VERBOSE"; then $echo "passed 8(F)"; fi;;
- 1) $echo "Test 8(F) failed: files 8.O and $srcdir/8.X differ" 1>&2
- (diff -c 8.O $srcdir/8.X) 2> /dev/null
- errors=`expr $errors + 1`;;
- 2) $echo "Test 8(F) may have failed." 1>&2
- $echo The command "cmp 8.O $srcdir/8.X" failed. 1>&2
- errors=`expr $errors + 1`;;
- esac
-fi
-test -s 8.E || rm -f 8.E
-cat $srcdir/8.I | $xx -c4 > 8.O 2> 8.E
-code=$?
-if test $code != 0; then
- $echo "Test 8(|) failed: $xx return code $code differs from expected value 0" 1>&2
- errors=`expr $errors + 1`
-else
- cmp 8.O $srcdir/8.X > /dev/null 2>&1
- case $? in
- 0) if test "$VERBOSE"; then $echo "passed 8(|)"; fi;;
- 1) $echo "Test 8(|) failed: files 8.O and $srcdir/8.X differ" 1>&2
- (diff -c 8.O $srcdir/8.X) 2> /dev/null
- errors=`expr $errors + 1`;;
- 2) $echo "Test 8(|) may have failed." 1>&2
- $echo The command "cmp 8.O $srcdir/8.X" failed. 1>&2
- errors=`expr $errors + 1`;;
- esac
-fi
-test -s 8.E || rm -f 8.E
-$xx -c4 < $srcdir/8.I > 8.O 2> 8.E
-code=$?
-if test $code != 0; then
- $echo "Test 8(<) failed: $xx return code $code differs from expected value 0" 1>&2
- errors=`expr $errors + 1`
-else
- cmp 8.O $srcdir/8.X > /dev/null 2>&1
- case $? in
- 0) if test "$VERBOSE"; then $echo "passed 8(<)"; fi;;
- 1) $echo "Test 8(<) failed: files 8.O and $srcdir/8.X differ" 1>&2
- (diff -c 8.O $srcdir/8.X) 2> /dev/null
- errors=`expr $errors + 1`;;
- 2) $echo "Test 8(<) may have failed." 1>&2
- $echo The command "cmp 8.O $srcdir/8.X" failed. 1>&2
- errors=`expr $errors + 1`;;
- esac
-fi
-test -s 8.E || rm -f 8.E
-$xx -c4 $srcdir/9.I > 9.O 2> 9.E
-code=$?
-if test $code != 0; then
- $echo "Test 9(F) failed: $xx return code $code differs from expected value 0" 1>&2
- errors=`expr $errors + 1`
-else
- cmp 9.O $srcdir/9.X > /dev/null 2>&1
- case $? in
- 0) if test "$VERBOSE"; then $echo "passed 9(F)"; fi;;
- 1) $echo "Test 9(F) failed: files 9.O and $srcdir/9.X differ" 1>&2
- (diff -c 9.O $srcdir/9.X) 2> /dev/null
- errors=`expr $errors + 1`;;
- 2) $echo "Test 9(F) may have failed." 1>&2
- $echo The command "cmp 9.O $srcdir/9.X" failed. 1>&2
- errors=`expr $errors + 1`;;
- esac
-fi
-test -s 9.E || rm -f 9.E
-cat $srcdir/9.I | $xx -c4 > 9.O 2> 9.E
-code=$?
-if test $code != 0; then
- $echo "Test 9(|) failed: $xx return code $code differs from expected value 0" 1>&2
- errors=`expr $errors + 1`
-else
- cmp 9.O $srcdir/9.X > /dev/null 2>&1
- case $? in
- 0) if test "$VERBOSE"; then $echo "passed 9(|)"; fi;;
- 1) $echo "Test 9(|) failed: files 9.O and $srcdir/9.X differ" 1>&2
- (diff -c 9.O $srcdir/9.X) 2> /dev/null
- errors=`expr $errors + 1`;;
- 2) $echo "Test 9(|) may have failed." 1>&2
- $echo The command "cmp 9.O $srcdir/9.X" failed. 1>&2
- errors=`expr $errors + 1`;;
- esac
-fi
-test -s 9.E || rm -f 9.E
-$xx -c4 < $srcdir/9.I > 9.O 2> 9.E
-code=$?
-if test $code != 0; then
- $echo "Test 9(<) failed: $xx return code $code differs from expected value 0" 1>&2
- errors=`expr $errors + 1`
-else
- cmp 9.O $srcdir/9.X > /dev/null 2>&1
- case $? in
- 0) if test "$VERBOSE"; then $echo "passed 9(<)"; fi;;
- 1) $echo "Test 9(<) failed: files 9.O and $srcdir/9.X differ" 1>&2
- (diff -c 9.O $srcdir/9.X) 2> /dev/null
- errors=`expr $errors + 1`;;
- 2) $echo "Test 9(<) may have failed." 1>&2
- $echo The command "cmp 9.O $srcdir/9.X" failed. 1>&2
- errors=`expr $errors + 1`;;
- esac
-fi
-test -s 9.E || rm -f 9.E
-$xx -s -d: -f3- $srcdir/a.I > a.O 2> a.E
-code=$?
-if test $code != 0; then
- $echo "Test a(F) failed: $xx return code $code differs from expected value 0" 1>&2
- errors=`expr $errors + 1`
-else
- cmp a.O $srcdir/a.X > /dev/null 2>&1
- case $? in
- 0) if test "$VERBOSE"; then $echo "passed a(F)"; fi;;
- 1) $echo "Test a(F) failed: files a.O and $srcdir/a.X differ" 1>&2
- (diff -c a.O $srcdir/a.X) 2> /dev/null
- errors=`expr $errors + 1`;;
- 2) $echo "Test a(F) may have failed." 1>&2
- $echo The command "cmp a.O $srcdir/a.X" failed. 1>&2
- errors=`expr $errors + 1`;;
- esac
-fi
-test -s a.E || rm -f a.E
-cat $srcdir/a.I | $xx -s -d: -f3- > a.O 2> a.E
-code=$?
-if test $code != 0; then
- $echo "Test a(|) failed: $xx return code $code differs from expected value 0" 1>&2
- errors=`expr $errors + 1`
-else
- cmp a.O $srcdir/a.X > /dev/null 2>&1
- case $? in
- 0) if test "$VERBOSE"; then $echo "passed a(|)"; fi;;
- 1) $echo "Test a(|) failed: files a.O and $srcdir/a.X differ" 1>&2
- (diff -c a.O $srcdir/a.X) 2> /dev/null
- errors=`expr $errors + 1`;;
- 2) $echo "Test a(|) may have failed." 1>&2
- $echo The command "cmp a.O $srcdir/a.X" failed. 1>&2
- errors=`expr $errors + 1`;;
- esac
-fi
-test -s a.E || rm -f a.E
-$xx -s -d: -f3- < $srcdir/a.I > a.O 2> a.E
-code=$?
-if test $code != 0; then
- $echo "Test a(<) failed: $xx return code $code differs from expected value 0" 1>&2
- errors=`expr $errors + 1`
-else
- cmp a.O $srcdir/a.X > /dev/null 2>&1
- case $? in
- 0) if test "$VERBOSE"; then $echo "passed a(<)"; fi;;
- 1) $echo "Test a(<) failed: files a.O and $srcdir/a.X differ" 1>&2
- (diff -c a.O $srcdir/a.X) 2> /dev/null
- errors=`expr $errors + 1`;;
- 2) $echo "Test a(<) may have failed." 1>&2
- $echo The command "cmp a.O $srcdir/a.X" failed. 1>&2
- errors=`expr $errors + 1`;;
- esac
-fi
-test -s a.E || rm -f a.E
-$xx -s -d: -f2,3 $srcdir/b.I > b.O 2> b.E
-code=$?
-if test $code != 0; then
- $echo "Test b(F) failed: $xx return code $code differs from expected value 0" 1>&2
- errors=`expr $errors + 1`
-else
- cmp b.O $srcdir/b.X > /dev/null 2>&1
- case $? in
- 0) if test "$VERBOSE"; then $echo "passed b(F)"; fi;;
- 1) $echo "Test b(F) failed: files b.O and $srcdir/b.X differ" 1>&2
- (diff -c b.O $srcdir/b.X) 2> /dev/null
- errors=`expr $errors + 1`;;
- 2) $echo "Test b(F) may have failed." 1>&2
- $echo The command "cmp b.O $srcdir/b.X" failed. 1>&2
- errors=`expr $errors + 1`;;
- esac
-fi
-test -s b.E || rm -f b.E
-cat $srcdir/b.I | $xx -s -d: -f2,3 > b.O 2> b.E
-code=$?
-if test $code != 0; then
- $echo "Test b(|) failed: $xx return code $code differs from expected value 0" 1>&2
- errors=`expr $errors + 1`
-else
- cmp b.O $srcdir/b.X > /dev/null 2>&1
- case $? in
- 0) if test "$VERBOSE"; then $echo "passed b(|)"; fi;;
- 1) $echo "Test b(|) failed: files b.O and $srcdir/b.X differ" 1>&2
- (diff -c b.O $srcdir/b.X) 2> /dev/null
- errors=`expr $errors + 1`;;
- 2) $echo "Test b(|) may have failed." 1>&2
- $echo The command "cmp b.O $srcdir/b.X" failed. 1>&2
- errors=`expr $errors + 1`;;
- esac
-fi
-test -s b.E || rm -f b.E
-$xx -s -d: -f2,3 < $srcdir/b.I > b.O 2> b.E
-code=$?
-if test $code != 0; then
- $echo "Test b(<) failed: $xx return code $code differs from expected value 0" 1>&2
- errors=`expr $errors + 1`
-else
- cmp b.O $srcdir/b.X > /dev/null 2>&1
- case $? in
- 0) if test "$VERBOSE"; then $echo "passed b(<)"; fi;;
- 1) $echo "Test b(<) failed: files b.O and $srcdir/b.X differ" 1>&2
- (diff -c b.O $srcdir/b.X) 2> /dev/null
- errors=`expr $errors + 1`;;
- 2) $echo "Test b(<) may have failed." 1>&2
- $echo The command "cmp b.O $srcdir/b.X" failed. 1>&2
- errors=`expr $errors + 1`;;
- esac
-fi
-test -s b.E || rm -f b.E
-$xx -s -d: -f1,3 $srcdir/c.I > c.O 2> c.E
-code=$?
-if test $code != 0; then
- $echo "Test c(F) failed: $xx return code $code differs from expected value 0" 1>&2
- errors=`expr $errors + 1`
-else
- cmp c.O $srcdir/c.X > /dev/null 2>&1
- case $? in
- 0) if test "$VERBOSE"; then $echo "passed c(F)"; fi;;
- 1) $echo "Test c(F) failed: files c.O and $srcdir/c.X differ" 1>&2
- (diff -c c.O $srcdir/c.X) 2> /dev/null
- errors=`expr $errors + 1`;;
- 2) $echo "Test c(F) may have failed." 1>&2
- $echo The command "cmp c.O $srcdir/c.X" failed. 1>&2
- errors=`expr $errors + 1`;;
- esac
-fi
-test -s c.E || rm -f c.E
-cat $srcdir/c.I | $xx -s -d: -f1,3 > c.O 2> c.E
-code=$?
-if test $code != 0; then
- $echo "Test c(|) failed: $xx return code $code differs from expected value 0" 1>&2
- errors=`expr $errors + 1`
-else
- cmp c.O $srcdir/c.X > /dev/null 2>&1
- case $? in
- 0) if test "$VERBOSE"; then $echo "passed c(|)"; fi;;
- 1) $echo "Test c(|) failed: files c.O and $srcdir/c.X differ" 1>&2
- (diff -c c.O $srcdir/c.X) 2> /dev/null
- errors=`expr $errors + 1`;;
- 2) $echo "Test c(|) may have failed." 1>&2
- $echo The command "cmp c.O $srcdir/c.X" failed. 1>&2
- errors=`expr $errors + 1`;;
- esac
-fi
-test -s c.E || rm -f c.E
-$xx -s -d: -f1,3 < $srcdir/c.I > c.O 2> c.E
-code=$?
-if test $code != 0; then
- $echo "Test c(<) failed: $xx return code $code differs from expected value 0" 1>&2
- errors=`expr $errors + 1`
-else
- cmp c.O $srcdir/c.X > /dev/null 2>&1
- case $? in
- 0) if test "$VERBOSE"; then $echo "passed c(<)"; fi;;
- 1) $echo "Test c(<) failed: files c.O and $srcdir/c.X differ" 1>&2
- (diff -c c.O $srcdir/c.X) 2> /dev/null
- errors=`expr $errors + 1`;;
- 2) $echo "Test c(<) may have failed." 1>&2
- $echo The command "cmp c.O $srcdir/c.X" failed. 1>&2
- errors=`expr $errors + 1`;;
- esac
-fi
-test -s c.E || rm -f c.E
-$xx -s -d: -f1,3 $srcdir/d.I > d.O 2> d.E
-code=$?
-if test $code != 0; then
- $echo "Test d(F) failed: $xx return code $code differs from expected value 0" 1>&2
- errors=`expr $errors + 1`
-else
- cmp d.O $srcdir/d.X > /dev/null 2>&1
- case $? in
- 0) if test "$VERBOSE"; then $echo "passed d(F)"; fi;;
- 1) $echo "Test d(F) failed: files d.O and $srcdir/d.X differ" 1>&2
- (diff -c d.O $srcdir/d.X) 2> /dev/null
- errors=`expr $errors + 1`;;
- 2) $echo "Test d(F) may have failed." 1>&2
- $echo The command "cmp d.O $srcdir/d.X" failed. 1>&2
- errors=`expr $errors + 1`;;
- esac
-fi
-test -s d.E || rm -f d.E
-cat $srcdir/d.I | $xx -s -d: -f1,3 > d.O 2> d.E
-code=$?
-if test $code != 0; then
- $echo "Test d(|) failed: $xx return code $code differs from expected value 0" 1>&2
- errors=`expr $errors + 1`
-else
- cmp d.O $srcdir/d.X > /dev/null 2>&1
- case $? in
- 0) if test "$VERBOSE"; then $echo "passed d(|)"; fi;;
- 1) $echo "Test d(|) failed: files d.O and $srcdir/d.X differ" 1>&2
- (diff -c d.O $srcdir/d.X) 2> /dev/null
- errors=`expr $errors + 1`;;
- 2) $echo "Test d(|) may have failed." 1>&2
- $echo The command "cmp d.O $srcdir/d.X" failed. 1>&2
- errors=`expr $errors + 1`;;
- esac
-fi
-test -s d.E || rm -f d.E
-$xx -s -d: -f1,3 < $srcdir/d.I > d.O 2> d.E
-code=$?
-if test $code != 0; then
- $echo "Test d(<) failed: $xx return code $code differs from expected value 0" 1>&2
- errors=`expr $errors + 1`
-else
- cmp d.O $srcdir/d.X > /dev/null 2>&1
- case $? in
- 0) if test "$VERBOSE"; then $echo "passed d(<)"; fi;;
- 1) $echo "Test d(<) failed: files d.O and $srcdir/d.X differ" 1>&2
- (diff -c d.O $srcdir/d.X) 2> /dev/null
- errors=`expr $errors + 1`;;
- 2) $echo "Test d(<) may have failed." 1>&2
- $echo The command "cmp d.O $srcdir/d.X" failed. 1>&2
- errors=`expr $errors + 1`;;
- esac
-fi
-test -s d.E || rm -f d.E
-$xx -s -d: -f3- $srcdir/e.I > e.O 2> e.E
-code=$?
-if test $code != 0; then
- $echo "Test e(F) failed: $xx return code $code differs from expected value 0" 1>&2
- errors=`expr $errors + 1`
-else
- cmp e.O $srcdir/e.X > /dev/null 2>&1
- case $? in
- 0) if test "$VERBOSE"; then $echo "passed e(F)"; fi;;
- 1) $echo "Test e(F) failed: files e.O and $srcdir/e.X differ" 1>&2
- (diff -c e.O $srcdir/e.X) 2> /dev/null
- errors=`expr $errors + 1`;;
- 2) $echo "Test e(F) may have failed." 1>&2
- $echo The command "cmp e.O $srcdir/e.X" failed. 1>&2
- errors=`expr $errors + 1`;;
- esac
-fi
-test -s e.E || rm -f e.E
-cat $srcdir/e.I | $xx -s -d: -f3- > e.O 2> e.E
-code=$?
-if test $code != 0; then
- $echo "Test e(|) failed: $xx return code $code differs from expected value 0" 1>&2
- errors=`expr $errors + 1`
-else
- cmp e.O $srcdir/e.X > /dev/null 2>&1
- case $? in
- 0) if test "$VERBOSE"; then $echo "passed e(|)"; fi;;
- 1) $echo "Test e(|) failed: files e.O and $srcdir/e.X differ" 1>&2
- (diff -c e.O $srcdir/e.X) 2> /dev/null
- errors=`expr $errors + 1`;;
- 2) $echo "Test e(|) may have failed." 1>&2
- $echo The command "cmp e.O $srcdir/e.X" failed. 1>&2
- errors=`expr $errors + 1`;;
- esac
-fi
-test -s e.E || rm -f e.E
-$xx -s -d: -f3- < $srcdir/e.I > e.O 2> e.E
-code=$?
-if test $code != 0; then
- $echo "Test e(<) failed: $xx return code $code differs from expected value 0" 1>&2
- errors=`expr $errors + 1`
-else
- cmp e.O $srcdir/e.X > /dev/null 2>&1
- case $? in
- 0) if test "$VERBOSE"; then $echo "passed e(<)"; fi;;
- 1) $echo "Test e(<) failed: files e.O and $srcdir/e.X differ" 1>&2
- (diff -c e.O $srcdir/e.X) 2> /dev/null
- errors=`expr $errors + 1`;;
- 2) $echo "Test e(<) may have failed." 1>&2
- $echo The command "cmp e.O $srcdir/e.X" failed. 1>&2
- errors=`expr $errors + 1`;;
- esac
-fi
-test -s e.E || rm -f e.E
-$xx -s -d: -f3-4 $srcdir/f.I > f.O 2> f.E
-code=$?
-if test $code != 0; then
- $echo "Test f(F) failed: $xx return code $code differs from expected value 0" 1>&2
- errors=`expr $errors + 1`
-else
- cmp f.O $srcdir/f.X > /dev/null 2>&1
- case $? in
- 0) if test "$VERBOSE"; then $echo "passed f(F)"; fi;;
- 1) $echo "Test f(F) failed: files f.O and $srcdir/f.X differ" 1>&2
- (diff -c f.O $srcdir/f.X) 2> /dev/null
- errors=`expr $errors + 1`;;
- 2) $echo "Test f(F) may have failed." 1>&2
- $echo The command "cmp f.O $srcdir/f.X" failed. 1>&2
- errors=`expr $errors + 1`;;
- esac
-fi
-test -s f.E || rm -f f.E
-cat $srcdir/f.I | $xx -s -d: -f3-4 > f.O 2> f.E
-code=$?
-if test $code != 0; then
- $echo "Test f(|) failed: $xx return code $code differs from expected value 0" 1>&2
- errors=`expr $errors + 1`
-else
- cmp f.O $srcdir/f.X > /dev/null 2>&1
- case $? in
- 0) if test "$VERBOSE"; then $echo "passed f(|)"; fi;;
- 1) $echo "Test f(|) failed: files f.O and $srcdir/f.X differ" 1>&2
- (diff -c f.O $srcdir/f.X) 2> /dev/null
- errors=`expr $errors + 1`;;
- 2) $echo "Test f(|) may have failed." 1>&2
- $echo The command "cmp f.O $srcdir/f.X" failed. 1>&2
- errors=`expr $errors + 1`;;
- esac
-fi
-test -s f.E || rm -f f.E
-$xx -s -d: -f3-4 < $srcdir/f.I > f.O 2> f.E
-code=$?
-if test $code != 0; then
- $echo "Test f(<) failed: $xx return code $code differs from expected value 0" 1>&2
- errors=`expr $errors + 1`
-else
- cmp f.O $srcdir/f.X > /dev/null 2>&1
- case $? in
- 0) if test "$VERBOSE"; then $echo "passed f(<)"; fi;;
- 1) $echo "Test f(<) failed: files f.O and $srcdir/f.X differ" 1>&2
- (diff -c f.O $srcdir/f.X) 2> /dev/null
- errors=`expr $errors + 1`;;
- 2) $echo "Test f(<) may have failed." 1>&2
- $echo The command "cmp f.O $srcdir/f.X" failed. 1>&2
- errors=`expr $errors + 1`;;
- esac
-fi
-test -s f.E || rm -f f.E
-$xx -s -d: -f3,4 $srcdir/g.I > g.O 2> g.E
-code=$?
-if test $code != 0; then
- $echo "Test g(F) failed: $xx return code $code differs from expected value 0" 1>&2
- errors=`expr $errors + 1`
-else
- cmp g.O $srcdir/g.X > /dev/null 2>&1
- case $? in
- 0) if test "$VERBOSE"; then $echo "passed g(F)"; fi;;
- 1) $echo "Test g(F) failed: files g.O and $srcdir/g.X differ" 1>&2
- (diff -c g.O $srcdir/g.X) 2> /dev/null
- errors=`expr $errors + 1`;;
- 2) $echo "Test g(F) may have failed." 1>&2
- $echo The command "cmp g.O $srcdir/g.X" failed. 1>&2
- errors=`expr $errors + 1`;;
- esac
-fi
-test -s g.E || rm -f g.E
-cat $srcdir/g.I | $xx -s -d: -f3,4 > g.O 2> g.E
-code=$?
-if test $code != 0; then
- $echo "Test g(|) failed: $xx return code $code differs from expected value 0" 1>&2
- errors=`expr $errors + 1`
-else
- cmp g.O $srcdir/g.X > /dev/null 2>&1
- case $? in
- 0) if test "$VERBOSE"; then $echo "passed g(|)"; fi;;
- 1) $echo "Test g(|) failed: files g.O and $srcdir/g.X differ" 1>&2
- (diff -c g.O $srcdir/g.X) 2> /dev/null
- errors=`expr $errors + 1`;;
- 2) $echo "Test g(|) may have failed." 1>&2
- $echo The command "cmp g.O $srcdir/g.X" failed. 1>&2
- errors=`expr $errors + 1`;;
- esac
-fi
-test -s g.E || rm -f g.E
-$xx -s -d: -f3,4 < $srcdir/g.I > g.O 2> g.E
-code=$?
-if test $code != 0; then
- $echo "Test g(<) failed: $xx return code $code differs from expected value 0" 1>&2
- errors=`expr $errors + 1`
-else
- cmp g.O $srcdir/g.X > /dev/null 2>&1
- case $? in
- 0) if test "$VERBOSE"; then $echo "passed g(<)"; fi;;
- 1) $echo "Test g(<) failed: files g.O and $srcdir/g.X differ" 1>&2
- (diff -c g.O $srcdir/g.X) 2> /dev/null
- errors=`expr $errors + 1`;;
- 2) $echo "Test g(<) may have failed." 1>&2
- $echo The command "cmp g.O $srcdir/g.X" failed. 1>&2
- errors=`expr $errors + 1`;;
- esac
-fi
-test -s g.E || rm -f g.E
-$xx -s -d: -f2,3 $srcdir/h.I > h.O 2> h.E
-code=$?
-if test $code != 0; then
- $echo "Test h(F) failed: $xx return code $code differs from expected value 0" 1>&2
- errors=`expr $errors + 1`
-else
- cmp h.O $srcdir/h.X > /dev/null 2>&1
- case $? in
- 0) if test "$VERBOSE"; then $echo "passed h(F)"; fi;;
- 1) $echo "Test h(F) failed: files h.O and $srcdir/h.X differ" 1>&2
- (diff -c h.O $srcdir/h.X) 2> /dev/null
- errors=`expr $errors + 1`;;
- 2) $echo "Test h(F) may have failed." 1>&2
- $echo The command "cmp h.O $srcdir/h.X" failed. 1>&2
- errors=`expr $errors + 1`;;
- esac
-fi
-test -s h.E || rm -f h.E
-cat $srcdir/h.I | $xx -s -d: -f2,3 > h.O 2> h.E
-code=$?
-if test $code != 0; then
- $echo "Test h(|) failed: $xx return code $code differs from expected value 0" 1>&2
- errors=`expr $errors + 1`
-else
- cmp h.O $srcdir/h.X > /dev/null 2>&1
- case $? in
- 0) if test "$VERBOSE"; then $echo "passed h(|)"; fi;;
- 1) $echo "Test h(|) failed: files h.O and $srcdir/h.X differ" 1>&2
- (diff -c h.O $srcdir/h.X) 2> /dev/null
- errors=`expr $errors + 1`;;
- 2) $echo "Test h(|) may have failed." 1>&2
- $echo The command "cmp h.O $srcdir/h.X" failed. 1>&2
- errors=`expr $errors + 1`;;
- esac
-fi
-test -s h.E || rm -f h.E
-$xx -s -d: -f2,3 < $srcdir/h.I > h.O 2> h.E
-code=$?
-if test $code != 0; then
- $echo "Test h(<) failed: $xx return code $code differs from expected value 0" 1>&2
- errors=`expr $errors + 1`
-else
- cmp h.O $srcdir/h.X > /dev/null 2>&1
- case $? in
- 0) if test "$VERBOSE"; then $echo "passed h(<)"; fi;;
- 1) $echo "Test h(<) failed: files h.O and $srcdir/h.X differ" 1>&2
- (diff -c h.O $srcdir/h.X) 2> /dev/null
- errors=`expr $errors + 1`;;
- 2) $echo "Test h(<) may have failed." 1>&2
- $echo The command "cmp h.O $srcdir/h.X" failed. 1>&2
- errors=`expr $errors + 1`;;
- esac
-fi
-test -s h.E || rm -f h.E
-$xx -d: -f1-3 $srcdir/i.I > i.O 2> i.E
-code=$?
-if test $code != 0; then
- $echo "Test i(F) failed: $xx return code $code differs from expected value 0" 1>&2
- errors=`expr $errors + 1`
-else
- cmp i.O $srcdir/i.X > /dev/null 2>&1
- case $? in
- 0) if test "$VERBOSE"; then $echo "passed i(F)"; fi;;
- 1) $echo "Test i(F) failed: files i.O and $srcdir/i.X differ" 1>&2
- (diff -c i.O $srcdir/i.X) 2> /dev/null
- errors=`expr $errors + 1`;;
- 2) $echo "Test i(F) may have failed." 1>&2
- $echo The command "cmp i.O $srcdir/i.X" failed. 1>&2
- errors=`expr $errors + 1`;;
- esac
-fi
-test -s i.E || rm -f i.E
-cat $srcdir/i.I | $xx -d: -f1-3 > i.O 2> i.E
-code=$?
-if test $code != 0; then
- $echo "Test i(|) failed: $xx return code $code differs from expected value 0" 1>&2
- errors=`expr $errors + 1`
-else
- cmp i.O $srcdir/i.X > /dev/null 2>&1
- case $? in
- 0) if test "$VERBOSE"; then $echo "passed i(|)"; fi;;
- 1) $echo "Test i(|) failed: files i.O and $srcdir/i.X differ" 1>&2
- (diff -c i.O $srcdir/i.X) 2> /dev/null
- errors=`expr $errors + 1`;;
- 2) $echo "Test i(|) may have failed." 1>&2
- $echo The command "cmp i.O $srcdir/i.X" failed. 1>&2
- errors=`expr $errors + 1`;;
- esac
-fi
-test -s i.E || rm -f i.E
-$xx -d: -f1-3 < $srcdir/i.I > i.O 2> i.E
-code=$?
-if test $code != 0; then
- $echo "Test i(<) failed: $xx return code $code differs from expected value 0" 1>&2
- errors=`expr $errors + 1`
-else
- cmp i.O $srcdir/i.X > /dev/null 2>&1
- case $? in
- 0) if test "$VERBOSE"; then $echo "passed i(<)"; fi;;
- 1) $echo "Test i(<) failed: files i.O and $srcdir/i.X differ" 1>&2
- (diff -c i.O $srcdir/i.X) 2> /dev/null
- errors=`expr $errors + 1`;;
- 2) $echo "Test i(<) may have failed." 1>&2
- $echo The command "cmp i.O $srcdir/i.X" failed. 1>&2
- errors=`expr $errors + 1`;;
- esac
-fi
-test -s i.E || rm -f i.E
-$xx -d: -f1-4 $srcdir/j.I > j.O 2> j.E
-code=$?
-if test $code != 0; then
- $echo "Test j(F) failed: $xx return code $code differs from expected value 0" 1>&2
- errors=`expr $errors + 1`
-else
- cmp j.O $srcdir/j.X > /dev/null 2>&1
- case $? in
- 0) if test "$VERBOSE"; then $echo "passed j(F)"; fi;;
- 1) $echo "Test j(F) failed: files j.O and $srcdir/j.X differ" 1>&2
- (diff -c j.O $srcdir/j.X) 2> /dev/null
- errors=`expr $errors + 1`;;
- 2) $echo "Test j(F) may have failed." 1>&2
- $echo The command "cmp j.O $srcdir/j.X" failed. 1>&2
- errors=`expr $errors + 1`;;
- esac
-fi
-test -s j.E || rm -f j.E
-cat $srcdir/j.I | $xx -d: -f1-4 > j.O 2> j.E
-code=$?
-if test $code != 0; then
- $echo "Test j(|) failed: $xx return code $code differs from expected value 0" 1>&2
- errors=`expr $errors + 1`
-else
- cmp j.O $srcdir/j.X > /dev/null 2>&1
- case $? in
- 0) if test "$VERBOSE"; then $echo "passed j(|)"; fi;;
- 1) $echo "Test j(|) failed: files j.O and $srcdir/j.X differ" 1>&2
- (diff -c j.O $srcdir/j.X) 2> /dev/null
- errors=`expr $errors + 1`;;
- 2) $echo "Test j(|) may have failed." 1>&2
- $echo The command "cmp j.O $srcdir/j.X" failed. 1>&2
- errors=`expr $errors + 1`;;
- esac
-fi
-test -s j.E || rm -f j.E
-$xx -d: -f1-4 < $srcdir/j.I > j.O 2> j.E
-code=$?
-if test $code != 0; then
- $echo "Test j(<) failed: $xx return code $code differs from expected value 0" 1>&2
- errors=`expr $errors + 1`
-else
- cmp j.O $srcdir/j.X > /dev/null 2>&1
- case $? in
- 0) if test "$VERBOSE"; then $echo "passed j(<)"; fi;;
- 1) $echo "Test j(<) failed: files j.O and $srcdir/j.X differ" 1>&2
- (diff -c j.O $srcdir/j.X) 2> /dev/null
- errors=`expr $errors + 1`;;
- 2) $echo "Test j(<) may have failed." 1>&2
- $echo The command "cmp j.O $srcdir/j.X" failed. 1>&2
- errors=`expr $errors + 1`;;
- esac
-fi
-test -s j.E || rm -f j.E
-$xx -d: -f2-3 $srcdir/k.I > k.O 2> k.E
-code=$?
-if test $code != 0; then
- $echo "Test k(F) failed: $xx return code $code differs from expected value 0" 1>&2
- errors=`expr $errors + 1`
-else
- cmp k.O $srcdir/k.X > /dev/null 2>&1
- case $? in
- 0) if test "$VERBOSE"; then $echo "passed k(F)"; fi;;
- 1) $echo "Test k(F) failed: files k.O and $srcdir/k.X differ" 1>&2
- (diff -c k.O $srcdir/k.X) 2> /dev/null
- errors=`expr $errors + 1`;;
- 2) $echo "Test k(F) may have failed." 1>&2
- $echo The command "cmp k.O $srcdir/k.X" failed. 1>&2
- errors=`expr $errors + 1`;;
- esac
-fi
-test -s k.E || rm -f k.E
-cat $srcdir/k.I | $xx -d: -f2-3 > k.O 2> k.E
-code=$?
-if test $code != 0; then
- $echo "Test k(|) failed: $xx return code $code differs from expected value 0" 1>&2
- errors=`expr $errors + 1`
-else
- cmp k.O $srcdir/k.X > /dev/null 2>&1
- case $? in
- 0) if test "$VERBOSE"; then $echo "passed k(|)"; fi;;
- 1) $echo "Test k(|) failed: files k.O and $srcdir/k.X differ" 1>&2
- (diff -c k.O $srcdir/k.X) 2> /dev/null
- errors=`expr $errors + 1`;;
- 2) $echo "Test k(|) may have failed." 1>&2
- $echo The command "cmp k.O $srcdir/k.X" failed. 1>&2
- errors=`expr $errors + 1`;;
- esac
-fi
-test -s k.E || rm -f k.E
-$xx -d: -f2-3 < $srcdir/k.I > k.O 2> k.E
-code=$?
-if test $code != 0; then
- $echo "Test k(<) failed: $xx return code $code differs from expected value 0" 1>&2
- errors=`expr $errors + 1`
-else
- cmp k.O $srcdir/k.X > /dev/null 2>&1
- case $? in
- 0) if test "$VERBOSE"; then $echo "passed k(<)"; fi;;
- 1) $echo "Test k(<) failed: files k.O and $srcdir/k.X differ" 1>&2
- (diff -c k.O $srcdir/k.X) 2> /dev/null
- errors=`expr $errors + 1`;;
- 2) $echo "Test k(<) may have failed." 1>&2
- $echo The command "cmp k.O $srcdir/k.X" failed. 1>&2
- errors=`expr $errors + 1`;;
- esac
-fi
-test -s k.E || rm -f k.E
-$xx -d: -f2-4 $srcdir/l.I > l.O 2> l.E
-code=$?
-if test $code != 0; then
- $echo "Test l(F) failed: $xx return code $code differs from expected value 0" 1>&2
- errors=`expr $errors + 1`
-else
- cmp l.O $srcdir/l.X > /dev/null 2>&1
- case $? in
- 0) if test "$VERBOSE"; then $echo "passed l(F)"; fi;;
- 1) $echo "Test l(F) failed: files l.O and $srcdir/l.X differ" 1>&2
- (diff -c l.O $srcdir/l.X) 2> /dev/null
- errors=`expr $errors + 1`;;
- 2) $echo "Test l(F) may have failed." 1>&2
- $echo The command "cmp l.O $srcdir/l.X" failed. 1>&2
- errors=`expr $errors + 1`;;
- esac
-fi
-test -s l.E || rm -f l.E
-cat $srcdir/l.I | $xx -d: -f2-4 > l.O 2> l.E
-code=$?
-if test $code != 0; then
- $echo "Test l(|) failed: $xx return code $code differs from expected value 0" 1>&2
- errors=`expr $errors + 1`
-else
- cmp l.O $srcdir/l.X > /dev/null 2>&1
- case $? in
- 0) if test "$VERBOSE"; then $echo "passed l(|)"; fi;;
- 1) $echo "Test l(|) failed: files l.O and $srcdir/l.X differ" 1>&2
- (diff -c l.O $srcdir/l.X) 2> /dev/null
- errors=`expr $errors + 1`;;
- 2) $echo "Test l(|) may have failed." 1>&2
- $echo The command "cmp l.O $srcdir/l.X" failed. 1>&2
- errors=`expr $errors + 1`;;
- esac
-fi
-test -s l.E || rm -f l.E
-$xx -d: -f2-4 < $srcdir/l.I > l.O 2> l.E
-code=$?
-if test $code != 0; then
- $echo "Test l(<) failed: $xx return code $code differs from expected value 0" 1>&2
- errors=`expr $errors + 1`
-else
- cmp l.O $srcdir/l.X > /dev/null 2>&1
- case $? in
- 0) if test "$VERBOSE"; then $echo "passed l(<)"; fi;;
- 1) $echo "Test l(<) failed: files l.O and $srcdir/l.X differ" 1>&2
- (diff -c l.O $srcdir/l.X) 2> /dev/null
- errors=`expr $errors + 1`;;
- 2) $echo "Test l(<) may have failed." 1>&2
- $echo The command "cmp l.O $srcdir/l.X" failed. 1>&2
- errors=`expr $errors + 1`;;
- esac
-fi
-test -s l.E || rm -f l.E
-$xx -s -d: -f1-3 $srcdir/m.I > m.O 2> m.E
-code=$?
-if test $code != 0; then
- $echo "Test m(F) failed: $xx return code $code differs from expected value 0" 1>&2
- errors=`expr $errors + 1`
-else
- cmp m.O $srcdir/m.X > /dev/null 2>&1
- case $? in
- 0) if test "$VERBOSE"; then $echo "passed m(F)"; fi;;
- 1) $echo "Test m(F) failed: files m.O and $srcdir/m.X differ" 1>&2
- (diff -c m.O $srcdir/m.X) 2> /dev/null
- errors=`expr $errors + 1`;;
- 2) $echo "Test m(F) may have failed." 1>&2
- $echo The command "cmp m.O $srcdir/m.X" failed. 1>&2
- errors=`expr $errors + 1`;;
- esac
-fi
-test -s m.E || rm -f m.E
-cat $srcdir/m.I | $xx -s -d: -f1-3 > m.O 2> m.E
-code=$?
-if test $code != 0; then
- $echo "Test m(|) failed: $xx return code $code differs from expected value 0" 1>&2
- errors=`expr $errors + 1`
-else
- cmp m.O $srcdir/m.X > /dev/null 2>&1
- case $? in
- 0) if test "$VERBOSE"; then $echo "passed m(|)"; fi;;
- 1) $echo "Test m(|) failed: files m.O and $srcdir/m.X differ" 1>&2
- (diff -c m.O $srcdir/m.X) 2> /dev/null
- errors=`expr $errors + 1`;;
- 2) $echo "Test m(|) may have failed." 1>&2
- $echo The command "cmp m.O $srcdir/m.X" failed. 1>&2
- errors=`expr $errors + 1`;;
- esac
-fi
-test -s m.E || rm -f m.E
-$xx -s -d: -f1-3 < $srcdir/m.I > m.O 2> m.E
-code=$?
-if test $code != 0; then
- $echo "Test m(<) failed: $xx return code $code differs from expected value 0" 1>&2
- errors=`expr $errors + 1`
-else
- cmp m.O $srcdir/m.X > /dev/null 2>&1
- case $? in
- 0) if test "$VERBOSE"; then $echo "passed m(<)"; fi;;
- 1) $echo "Test m(<) failed: files m.O and $srcdir/m.X differ" 1>&2
- (diff -c m.O $srcdir/m.X) 2> /dev/null
- errors=`expr $errors + 1`;;
- 2) $echo "Test m(<) may have failed." 1>&2
- $echo The command "cmp m.O $srcdir/m.X" failed. 1>&2
- errors=`expr $errors + 1`;;
- esac
-fi
-test -s m.E || rm -f m.E
-$xx -s -d: -f1-4 $srcdir/n.I > n.O 2> n.E
-code=$?
-if test $code != 0; then
- $echo "Test n(F) failed: $xx return code $code differs from expected value 0" 1>&2
- errors=`expr $errors + 1`
-else
- cmp n.O $srcdir/n.X > /dev/null 2>&1
- case $? in
- 0) if test "$VERBOSE"; then $echo "passed n(F)"; fi;;
- 1) $echo "Test n(F) failed: files n.O and $srcdir/n.X differ" 1>&2
- (diff -c n.O $srcdir/n.X) 2> /dev/null
- errors=`expr $errors + 1`;;
- 2) $echo "Test n(F) may have failed." 1>&2
- $echo The command "cmp n.O $srcdir/n.X" failed. 1>&2
- errors=`expr $errors + 1`;;
- esac
-fi
-test -s n.E || rm -f n.E
-cat $srcdir/n.I | $xx -s -d: -f1-4 > n.O 2> n.E
-code=$?
-if test $code != 0; then
- $echo "Test n(|) failed: $xx return code $code differs from expected value 0" 1>&2
- errors=`expr $errors + 1`
-else
- cmp n.O $srcdir/n.X > /dev/null 2>&1
- case $? in
- 0) if test "$VERBOSE"; then $echo "passed n(|)"; fi;;
- 1) $echo "Test n(|) failed: files n.O and $srcdir/n.X differ" 1>&2
- (diff -c n.O $srcdir/n.X) 2> /dev/null
- errors=`expr $errors + 1`;;
- 2) $echo "Test n(|) may have failed." 1>&2
- $echo The command "cmp n.O $srcdir/n.X" failed. 1>&2
- errors=`expr $errors + 1`;;
- esac
-fi
-test -s n.E || rm -f n.E
-$xx -s -d: -f1-4 < $srcdir/n.I > n.O 2> n.E
-code=$?
-if test $code != 0; then
- $echo "Test n(<) failed: $xx return code $code differs from expected value 0" 1>&2
- errors=`expr $errors + 1`
-else
- cmp n.O $srcdir/n.X > /dev/null 2>&1
- case $? in
- 0) if test "$VERBOSE"; then $echo "passed n(<)"; fi;;
- 1) $echo "Test n(<) failed: files n.O and $srcdir/n.X differ" 1>&2
- (diff -c n.O $srcdir/n.X) 2> /dev/null
- errors=`expr $errors + 1`;;
- 2) $echo "Test n(<) may have failed." 1>&2
- $echo The command "cmp n.O $srcdir/n.X" failed. 1>&2
- errors=`expr $errors + 1`;;
- esac
-fi
-test -s n.E || rm -f n.E
-$xx -s -d: -f2-3 $srcdir/o.I > o.O 2> o.E
-code=$?
-if test $code != 0; then
- $echo "Test o(F) failed: $xx return code $code differs from expected value 0" 1>&2
- errors=`expr $errors + 1`
-else
- cmp o.O $srcdir/o.X > /dev/null 2>&1
- case $? in
- 0) if test "$VERBOSE"; then $echo "passed o(F)"; fi;;
- 1) $echo "Test o(F) failed: files o.O and $srcdir/o.X differ" 1>&2
- (diff -c o.O $srcdir/o.X) 2> /dev/null
- errors=`expr $errors + 1`;;
- 2) $echo "Test o(F) may have failed." 1>&2
- $echo The command "cmp o.O $srcdir/o.X" failed. 1>&2
- errors=`expr $errors + 1`;;
- esac
-fi
-test -s o.E || rm -f o.E
-cat $srcdir/o.I | $xx -s -d: -f2-3 > o.O 2> o.E
-code=$?
-if test $code != 0; then
- $echo "Test o(|) failed: $xx return code $code differs from expected value 0" 1>&2
- errors=`expr $errors + 1`
-else
- cmp o.O $srcdir/o.X > /dev/null 2>&1
- case $? in
- 0) if test "$VERBOSE"; then $echo "passed o(|)"; fi;;
- 1) $echo "Test o(|) failed: files o.O and $srcdir/o.X differ" 1>&2
- (diff -c o.O $srcdir/o.X) 2> /dev/null
- errors=`expr $errors + 1`;;
- 2) $echo "Test o(|) may have failed." 1>&2
- $echo The command "cmp o.O $srcdir/o.X" failed. 1>&2
- errors=`expr $errors + 1`;;
- esac
-fi
-test -s o.E || rm -f o.E
-$xx -s -d: -f2-3 < $srcdir/o.I > o.O 2> o.E
-code=$?
-if test $code != 0; then
- $echo "Test o(<) failed: $xx return code $code differs from expected value 0" 1>&2
- errors=`expr $errors + 1`
-else
- cmp o.O $srcdir/o.X > /dev/null 2>&1
- case $? in
- 0) if test "$VERBOSE"; then $echo "passed o(<)"; fi;;
- 1) $echo "Test o(<) failed: files o.O and $srcdir/o.X differ" 1>&2
- (diff -c o.O $srcdir/o.X) 2> /dev/null
- errors=`expr $errors + 1`;;
- 2) $echo "Test o(<) may have failed." 1>&2
- $echo The command "cmp o.O $srcdir/o.X" failed. 1>&2
- errors=`expr $errors + 1`;;
- esac
-fi
-test -s o.E || rm -f o.E
-$xx -s -d: -f2-4 $srcdir/p.I > p.O 2> p.E
-code=$?
-if test $code != 0; then
- $echo "Test p(F) failed: $xx return code $code differs from expected value 0" 1>&2
- errors=`expr $errors + 1`
-else
- cmp p.O $srcdir/p.X > /dev/null 2>&1
- case $? in
- 0) if test "$VERBOSE"; then $echo "passed p(F)"; fi;;
- 1) $echo "Test p(F) failed: files p.O and $srcdir/p.X differ" 1>&2
- (diff -c p.O $srcdir/p.X) 2> /dev/null
- errors=`expr $errors + 1`;;
- 2) $echo "Test p(F) may have failed." 1>&2
- $echo The command "cmp p.O $srcdir/p.X" failed. 1>&2
- errors=`expr $errors + 1`;;
- esac
-fi
-test -s p.E || rm -f p.E
-cat $srcdir/p.I | $xx -s -d: -f2-4 > p.O 2> p.E
-code=$?
-if test $code != 0; then
- $echo "Test p(|) failed: $xx return code $code differs from expected value 0" 1>&2
- errors=`expr $errors + 1`
-else
- cmp p.O $srcdir/p.X > /dev/null 2>&1
- case $? in
- 0) if test "$VERBOSE"; then $echo "passed p(|)"; fi;;
- 1) $echo "Test p(|) failed: files p.O and $srcdir/p.X differ" 1>&2
- (diff -c p.O $srcdir/p.X) 2> /dev/null
- errors=`expr $errors + 1`;;
- 2) $echo "Test p(|) may have failed." 1>&2
- $echo The command "cmp p.O $srcdir/p.X" failed. 1>&2
- errors=`expr $errors + 1`;;
- esac
-fi
-test -s p.E || rm -f p.E
-$xx -s -d: -f2-4 < $srcdir/p.I > p.O 2> p.E
-code=$?
-if test $code != 0; then
- $echo "Test p(<) failed: $xx return code $code differs from expected value 0" 1>&2
- errors=`expr $errors + 1`
-else
- cmp p.O $srcdir/p.X > /dev/null 2>&1
- case $? in
- 0) if test "$VERBOSE"; then $echo "passed p(<)"; fi;;
- 1) $echo "Test p(<) failed: files p.O and $srcdir/p.X differ" 1>&2
- (diff -c p.O $srcdir/p.X) 2> /dev/null
- errors=`expr $errors + 1`;;
- 2) $echo "Test p(<) may have failed." 1>&2
- $echo The command "cmp p.O $srcdir/p.X" failed. 1>&2
- errors=`expr $errors + 1`;;
- esac
-fi
-test -s p.E || rm -f p.E
-$xx -s -d: -f2-4 $srcdir/q.I > q.O 2> q.E
-code=$?
-if test $code != 0; then
- $echo "Test q(F) failed: $xx return code $code differs from expected value 0" 1>&2
- errors=`expr $errors + 1`
-else
- cmp q.O $srcdir/q.X > /dev/null 2>&1
- case $? in
- 0) if test "$VERBOSE"; then $echo "passed q(F)"; fi;;
- 1) $echo "Test q(F) failed: files q.O and $srcdir/q.X differ" 1>&2
- (diff -c q.O $srcdir/q.X) 2> /dev/null
- errors=`expr $errors + 1`;;
- 2) $echo "Test q(F) may have failed." 1>&2
- $echo The command "cmp q.O $srcdir/q.X" failed. 1>&2
- errors=`expr $errors + 1`;;
- esac
-fi
-test -s q.E || rm -f q.E
-cat $srcdir/q.I | $xx -s -d: -f2-4 > q.O 2> q.E
-code=$?
-if test $code != 0; then
- $echo "Test q(|) failed: $xx return code $code differs from expected value 0" 1>&2
- errors=`expr $errors + 1`
-else
- cmp q.O $srcdir/q.X > /dev/null 2>&1
- case $? in
- 0) if test "$VERBOSE"; then $echo "passed q(|)"; fi;;
- 1) $echo "Test q(|) failed: files q.O and $srcdir/q.X differ" 1>&2
- (diff -c q.O $srcdir/q.X) 2> /dev/null
- errors=`expr $errors + 1`;;
- 2) $echo "Test q(|) may have failed." 1>&2
- $echo The command "cmp q.O $srcdir/q.X" failed. 1>&2
- errors=`expr $errors + 1`;;
- esac
-fi
-test -s q.E || rm -f q.E
-$xx -s -d: -f2-4 < $srcdir/q.I > q.O 2> q.E
-code=$?
-if test $code != 0; then
- $echo "Test q(<) failed: $xx return code $code differs from expected value 0" 1>&2
- errors=`expr $errors + 1`
-else
- cmp q.O $srcdir/q.X > /dev/null 2>&1
- case $? in
- 0) if test "$VERBOSE"; then $echo "passed q(<)"; fi;;
- 1) $echo "Test q(<) failed: files q.O and $srcdir/q.X differ" 1>&2
- (diff -c q.O $srcdir/q.X) 2> /dev/null
- errors=`expr $errors + 1`;;
- 2) $echo "Test q(<) may have failed." 1>&2
- $echo The command "cmp q.O $srcdir/q.X" failed. 1>&2
- errors=`expr $errors + 1`;;
- esac
-fi
-test -s q.E || rm -f q.E
-$xx -s -d: -f2-4 $srcdir/r.I > r.O 2> r.E
-code=$?
-if test $code != 0; then
- $echo "Test r(F) failed: $xx return code $code differs from expected value 0" 1>&2
- errors=`expr $errors + 1`
-else
- cmp r.O $srcdir/r.X > /dev/null 2>&1
- case $? in
- 0) if test "$VERBOSE"; then $echo "passed r(F)"; fi;;
- 1) $echo "Test r(F) failed: files r.O and $srcdir/r.X differ" 1>&2
- (diff -c r.O $srcdir/r.X) 2> /dev/null
- errors=`expr $errors + 1`;;
- 2) $echo "Test r(F) may have failed." 1>&2
- $echo The command "cmp r.O $srcdir/r.X" failed. 1>&2
- errors=`expr $errors + 1`;;
- esac
-fi
-test -s r.E || rm -f r.E
-cat $srcdir/r.I | $xx -s -d: -f2-4 > r.O 2> r.E
-code=$?
-if test $code != 0; then
- $echo "Test r(|) failed: $xx return code $code differs from expected value 0" 1>&2
- errors=`expr $errors + 1`
-else
- cmp r.O $srcdir/r.X > /dev/null 2>&1
- case $? in
- 0) if test "$VERBOSE"; then $echo "passed r(|)"; fi;;
- 1) $echo "Test r(|) failed: files r.O and $srcdir/r.X differ" 1>&2
- (diff -c r.O $srcdir/r.X) 2> /dev/null
- errors=`expr $errors + 1`;;
- 2) $echo "Test r(|) may have failed." 1>&2
- $echo The command "cmp r.O $srcdir/r.X" failed. 1>&2
- errors=`expr $errors + 1`;;
- esac
-fi
-test -s r.E || rm -f r.E
-$xx -s -d: -f2-4 < $srcdir/r.I > r.O 2> r.E
-code=$?
-if test $code != 0; then
- $echo "Test r(<) failed: $xx return code $code differs from expected value 0" 1>&2
- errors=`expr $errors + 1`
-else
- cmp r.O $srcdir/r.X > /dev/null 2>&1
- case $? in
- 0) if test "$VERBOSE"; then $echo "passed r(<)"; fi;;
- 1) $echo "Test r(<) failed: files r.O and $srcdir/r.X differ" 1>&2
- (diff -c r.O $srcdir/r.X) 2> /dev/null
- errors=`expr $errors + 1`;;
- 2) $echo "Test r(<) may have failed." 1>&2
- $echo The command "cmp r.O $srcdir/r.X" failed. 1>&2
- errors=`expr $errors + 1`;;
- esac
-fi
-test -s r.E || rm -f r.E
-$xx -s -d: -f1-4 $srcdir/s.I > s.O 2> s.E
-code=$?
-if test $code != 0; then
- $echo "Test s(F) failed: $xx return code $code differs from expected value 0" 1>&2
- errors=`expr $errors + 1`
-else
- cmp s.O $srcdir/s.X > /dev/null 2>&1
- case $? in
- 0) if test "$VERBOSE"; then $echo "passed s(F)"; fi;;
- 1) $echo "Test s(F) failed: files s.O and $srcdir/s.X differ" 1>&2
- (diff -c s.O $srcdir/s.X) 2> /dev/null
- errors=`expr $errors + 1`;;
- 2) $echo "Test s(F) may have failed." 1>&2
- $echo The command "cmp s.O $srcdir/s.X" failed. 1>&2
- errors=`expr $errors + 1`;;
- esac
-fi
-test -s s.E || rm -f s.E
-cat $srcdir/s.I | $xx -s -d: -f1-4 > s.O 2> s.E
-code=$?
-if test $code != 0; then
- $echo "Test s(|) failed: $xx return code $code differs from expected value 0" 1>&2
- errors=`expr $errors + 1`
-else
- cmp s.O $srcdir/s.X > /dev/null 2>&1
- case $? in
- 0) if test "$VERBOSE"; then $echo "passed s(|)"; fi;;
- 1) $echo "Test s(|) failed: files s.O and $srcdir/s.X differ" 1>&2
- (diff -c s.O $srcdir/s.X) 2> /dev/null
- errors=`expr $errors + 1`;;
- 2) $echo "Test s(|) may have failed." 1>&2
- $echo The command "cmp s.O $srcdir/s.X" failed. 1>&2
- errors=`expr $errors + 1`;;
- esac
-fi
-test -s s.E || rm -f s.E
-$xx -s -d: -f1-4 < $srcdir/s.I > s.O 2> s.E
-code=$?
-if test $code != 0; then
- $echo "Test s(<) failed: $xx return code $code differs from expected value 0" 1>&2
- errors=`expr $errors + 1`
-else
- cmp s.O $srcdir/s.X > /dev/null 2>&1
- case $? in
- 0) if test "$VERBOSE"; then $echo "passed s(<)"; fi;;
- 1) $echo "Test s(<) failed: files s.O and $srcdir/s.X differ" 1>&2
- (diff -c s.O $srcdir/s.X) 2> /dev/null
- errors=`expr $errors + 1`;;
- 2) $echo "Test s(<) may have failed." 1>&2
- $echo The command "cmp s.O $srcdir/s.X" failed. 1>&2
- errors=`expr $errors + 1`;;
- esac
-fi
-test -s s.E || rm -f s.E
-$xx -s -d: -f3- $srcdir/t.I > t.O 2> t.E
-code=$?
-if test $code != 0; then
- $echo "Test t(F) failed: $xx return code $code differs from expected value 0" 1>&2
- errors=`expr $errors + 1`
-else
- cmp t.O $srcdir/t.X > /dev/null 2>&1
- case $? in
- 0) if test "$VERBOSE"; then $echo "passed t(F)"; fi;;
- 1) $echo "Test t(F) failed: files t.O and $srcdir/t.X differ" 1>&2
- (diff -c t.O $srcdir/t.X) 2> /dev/null
- errors=`expr $errors + 1`;;
- 2) $echo "Test t(F) may have failed." 1>&2
- $echo The command "cmp t.O $srcdir/t.X" failed. 1>&2
- errors=`expr $errors + 1`;;
- esac
-fi
-test -s t.E || rm -f t.E
-cat $srcdir/t.I | $xx -s -d: -f3- > t.O 2> t.E
-code=$?
-if test $code != 0; then
- $echo "Test t(|) failed: $xx return code $code differs from expected value 0" 1>&2
- errors=`expr $errors + 1`
-else
- cmp t.O $srcdir/t.X > /dev/null 2>&1
- case $? in
- 0) if test "$VERBOSE"; then $echo "passed t(|)"; fi;;
- 1) $echo "Test t(|) failed: files t.O and $srcdir/t.X differ" 1>&2
- (diff -c t.O $srcdir/t.X) 2> /dev/null
- errors=`expr $errors + 1`;;
- 2) $echo "Test t(|) may have failed." 1>&2
- $echo The command "cmp t.O $srcdir/t.X" failed. 1>&2
- errors=`expr $errors + 1`;;
- esac
-fi
-test -s t.E || rm -f t.E
-$xx -s -d: -f3- < $srcdir/t.I > t.O 2> t.E
-code=$?
-if test $code != 0; then
- $echo "Test t(<) failed: $xx return code $code differs from expected value 0" 1>&2
- errors=`expr $errors + 1`
-else
- cmp t.O $srcdir/t.X > /dev/null 2>&1
- case $? in
- 0) if test "$VERBOSE"; then $echo "passed t(<)"; fi;;
- 1) $echo "Test t(<) failed: files t.O and $srcdir/t.X differ" 1>&2
- (diff -c t.O $srcdir/t.X) 2> /dev/null
- errors=`expr $errors + 1`;;
- 2) $echo "Test t(<) may have failed." 1>&2
- $echo The command "cmp t.O $srcdir/t.X" failed. 1>&2
- errors=`expr $errors + 1`;;
- esac
-fi
-test -s t.E || rm -f t.E
-$xx -s -f3- $srcdir/u.I > u.O 2> u.E
-code=$?
-if test $code != 0; then
- $echo "Test u(F) failed: $xx return code $code differs from expected value 0" 1>&2
- errors=`expr $errors + 1`
-else
- cmp u.O $srcdir/u.X > /dev/null 2>&1
- case $? in
- 0) if test "$VERBOSE"; then $echo "passed u(F)"; fi;;
- 1) $echo "Test u(F) failed: files u.O and $srcdir/u.X differ" 1>&2
- (diff -c u.O $srcdir/u.X) 2> /dev/null
- errors=`expr $errors + 1`;;
- 2) $echo "Test u(F) may have failed." 1>&2
- $echo The command "cmp u.O $srcdir/u.X" failed. 1>&2
- errors=`expr $errors + 1`;;
- esac
-fi
-test -s u.E || rm -f u.E
-cat $srcdir/u.I | $xx -s -f3- > u.O 2> u.E
-code=$?
-if test $code != 0; then
- $echo "Test u(|) failed: $xx return code $code differs from expected value 0" 1>&2
- errors=`expr $errors + 1`
-else
- cmp u.O $srcdir/u.X > /dev/null 2>&1
- case $? in
- 0) if test "$VERBOSE"; then $echo "passed u(|)"; fi;;
- 1) $echo "Test u(|) failed: files u.O and $srcdir/u.X differ" 1>&2
- (diff -c u.O $srcdir/u.X) 2> /dev/null
- errors=`expr $errors + 1`;;
- 2) $echo "Test u(|) may have failed." 1>&2
- $echo The command "cmp u.O $srcdir/u.X" failed. 1>&2
- errors=`expr $errors + 1`;;
- esac
-fi
-test -s u.E || rm -f u.E
-$xx -s -f3- < $srcdir/u.I > u.O 2> u.E
-code=$?
-if test $code != 0; then
- $echo "Test u(<) failed: $xx return code $code differs from expected value 0" 1>&2
- errors=`expr $errors + 1`
-else
- cmp u.O $srcdir/u.X > /dev/null 2>&1
- case $? in
- 0) if test "$VERBOSE"; then $echo "passed u(<)"; fi;;
- 1) $echo "Test u(<) failed: files u.O and $srcdir/u.X differ" 1>&2
- (diff -c u.O $srcdir/u.X) 2> /dev/null
- errors=`expr $errors + 1`;;
- 2) $echo "Test u(<) may have failed." 1>&2
- $echo The command "cmp u.O $srcdir/u.X" failed. 1>&2
- errors=`expr $errors + 1`;;
- esac
-fi
-test -s u.E || rm -f u.E
-$xx -f3- $srcdir/v.I > v.O 2> v.E
-code=$?
-if test $code != 0; then
- $echo "Test v(F) failed: $xx return code $code differs from expected value 0" 1>&2
- errors=`expr $errors + 1`
-else
- cmp v.O $srcdir/v.X > /dev/null 2>&1
- case $? in
- 0) if test "$VERBOSE"; then $echo "passed v(F)"; fi;;
- 1) $echo "Test v(F) failed: files v.O and $srcdir/v.X differ" 1>&2
- (diff -c v.O $srcdir/v.X) 2> /dev/null
- errors=`expr $errors + 1`;;
- 2) $echo "Test v(F) may have failed." 1>&2
- $echo The command "cmp v.O $srcdir/v.X" failed. 1>&2
- errors=`expr $errors + 1`;;
- esac
-fi
-test -s v.E || rm -f v.E
-cat $srcdir/v.I | $xx -f3- > v.O 2> v.E
-code=$?
-if test $code != 0; then
- $echo "Test v(|) failed: $xx return code $code differs from expected value 0" 1>&2
- errors=`expr $errors + 1`
-else
- cmp v.O $srcdir/v.X > /dev/null 2>&1
- case $? in
- 0) if test "$VERBOSE"; then $echo "passed v(|)"; fi;;
- 1) $echo "Test v(|) failed: files v.O and $srcdir/v.X differ" 1>&2
- (diff -c v.O $srcdir/v.X) 2> /dev/null
- errors=`expr $errors + 1`;;
- 2) $echo "Test v(|) may have failed." 1>&2
- $echo The command "cmp v.O $srcdir/v.X" failed. 1>&2
- errors=`expr $errors + 1`;;
- esac
-fi
-test -s v.E || rm -f v.E
-$xx -f3- < $srcdir/v.I > v.O 2> v.E
-code=$?
-if test $code != 0; then
- $echo "Test v(<) failed: $xx return code $code differs from expected value 0" 1>&2
- errors=`expr $errors + 1`
-else
- cmp v.O $srcdir/v.X > /dev/null 2>&1
- case $? in
- 0) if test "$VERBOSE"; then $echo "passed v(<)"; fi;;
- 1) $echo "Test v(<) failed: files v.O and $srcdir/v.X differ" 1>&2
- (diff -c v.O $srcdir/v.X) 2> /dev/null
- errors=`expr $errors + 1`;;
- 2) $echo "Test v(<) may have failed." 1>&2
- $echo The command "cmp v.O $srcdir/v.X" failed. 1>&2
- errors=`expr $errors + 1`;;
- esac
-fi
-test -s v.E || rm -f v.E
-$xx -b 1 $srcdir/w.I > w.O 2> w.E
-code=$?
-if test $code != 0; then
- $echo "Test w(F) failed: $xx return code $code differs from expected value 0" 1>&2
- errors=`expr $errors + 1`
-else
- cmp w.O $srcdir/w.X > /dev/null 2>&1
- case $? in
- 0) if test "$VERBOSE"; then $echo "passed w(F)"; fi;;
- 1) $echo "Test w(F) failed: files w.O and $srcdir/w.X differ" 1>&2
- (diff -c w.O $srcdir/w.X) 2> /dev/null
- errors=`expr $errors + 1`;;
- 2) $echo "Test w(F) may have failed." 1>&2
- $echo The command "cmp w.O $srcdir/w.X" failed. 1>&2
- errors=`expr $errors + 1`;;
- esac
-fi
-test -s w.E || rm -f w.E
-cat $srcdir/w.I | $xx -b 1 > w.O 2> w.E
-code=$?
-if test $code != 0; then
- $echo "Test w(|) failed: $xx return code $code differs from expected value 0" 1>&2
- errors=`expr $errors + 1`
-else
- cmp w.O $srcdir/w.X > /dev/null 2>&1
- case $? in
- 0) if test "$VERBOSE"; then $echo "passed w(|)"; fi;;
- 1) $echo "Test w(|) failed: files w.O and $srcdir/w.X differ" 1>&2
- (diff -c w.O $srcdir/w.X) 2> /dev/null
- errors=`expr $errors + 1`;;
- 2) $echo "Test w(|) may have failed." 1>&2
- $echo The command "cmp w.O $srcdir/w.X" failed. 1>&2
- errors=`expr $errors + 1`;;
- esac
-fi
-test -s w.E || rm -f w.E
-$xx -b 1 < $srcdir/w.I > w.O 2> w.E
-code=$?
-if test $code != 0; then
- $echo "Test w(<) failed: $xx return code $code differs from expected value 0" 1>&2
- errors=`expr $errors + 1`
-else
- cmp w.O $srcdir/w.X > /dev/null 2>&1
- case $? in
- 0) if test "$VERBOSE"; then $echo "passed w(<)"; fi;;
- 1) $echo "Test w(<) failed: files w.O and $srcdir/w.X differ" 1>&2
- (diff -c w.O $srcdir/w.X) 2> /dev/null
- errors=`expr $errors + 1`;;
- 2) $echo "Test w(<) may have failed." 1>&2
- $echo The command "cmp w.O $srcdir/w.X" failed. 1>&2
- errors=`expr $errors + 1`;;
- esac
-fi
-test -s w.E || rm -f w.E
-$xx -s -d: -f2-4 $srcdir/x.I > x.O 2> x.E
-code=$?
-if test $code != 0; then
- $echo "Test x(F) failed: $xx return code $code differs from expected value 0" 1>&2
- errors=`expr $errors + 1`
-else
- cmp x.O $srcdir/x.X > /dev/null 2>&1
- case $? in
- 0) if test "$VERBOSE"; then $echo "passed x(F)"; fi;;
- 1) $echo "Test x(F) failed: files x.O and $srcdir/x.X differ" 1>&2
- (diff -c x.O $srcdir/x.X) 2> /dev/null
- errors=`expr $errors + 1`;;
- 2) $echo "Test x(F) may have failed." 1>&2
- $echo The command "cmp x.O $srcdir/x.X" failed. 1>&2
- errors=`expr $errors + 1`;;
- esac
-fi
-test -s x.E || rm -f x.E
-cat $srcdir/x.I | $xx -s -d: -f2-4 > x.O 2> x.E
-code=$?
-if test $code != 0; then
- $echo "Test x(|) failed: $xx return code $code differs from expected value 0" 1>&2
- errors=`expr $errors + 1`
-else
- cmp x.O $srcdir/x.X > /dev/null 2>&1
- case $? in
- 0) if test "$VERBOSE"; then $echo "passed x(|)"; fi;;
- 1) $echo "Test x(|) failed: files x.O and $srcdir/x.X differ" 1>&2
- (diff -c x.O $srcdir/x.X) 2> /dev/null
- errors=`expr $errors + 1`;;
- 2) $echo "Test x(|) may have failed." 1>&2
- $echo The command "cmp x.O $srcdir/x.X" failed. 1>&2
- errors=`expr $errors + 1`;;
- esac
-fi
-test -s x.E || rm -f x.E
-$xx -s -d: -f2-4 < $srcdir/x.I > x.O 2> x.E
-code=$?
-if test $code != 0; then
- $echo "Test x(<) failed: $xx return code $code differs from expected value 0" 1>&2
- errors=`expr $errors + 1`
-else
- cmp x.O $srcdir/x.X > /dev/null 2>&1
- case $? in
- 0) if test "$VERBOSE"; then $echo "passed x(<)"; fi;;
- 1) $echo "Test x(<) failed: files x.O and $srcdir/x.X differ" 1>&2
- (diff -c x.O $srcdir/x.X) 2> /dev/null
- errors=`expr $errors + 1`;;
- 2) $echo "Test x(<) may have failed." 1>&2
- $echo The command "cmp x.O $srcdir/x.X" failed. 1>&2
- errors=`expr $errors + 1`;;
- esac
-fi
-test -s x.E || rm -f x.E
-$xx -s -b4 $srcdir/y.I > y.O 2> y.E
-code=$?
-if test $code != 1; then
- $echo "Test y(F) failed: $xx return code $code differs from expected value 1" 1>&2
- errors=`expr $errors + 1`
-else
- cmp y.O $srcdir/y.X > /dev/null 2>&1
- case $? in
- 0) if test "$VERBOSE"; then $echo "passed y(F)"; fi;;
- 1) $echo "Test y(F) failed: files y.O and $srcdir/y.X differ" 1>&2
- (diff -c y.O $srcdir/y.X) 2> /dev/null
- errors=`expr $errors + 1`;;
- 2) $echo "Test y(F) may have failed." 1>&2
- $echo The command "cmp y.O $srcdir/y.X" failed. 1>&2
- errors=`expr $errors + 1`;;
- esac
-fi
-test -s y.E || rm -f y.E
-$xx -s -b4 < $srcdir/y.I > y.O 2> y.E
-code=$?
-if test $code != 1; then
- $echo "Test y(<) failed: $xx return code $code differs from expected value 1" 1>&2
- errors=`expr $errors + 1`
-else
- cmp y.O $srcdir/y.X > /dev/null 2>&1
- case $? in
- 0) if test "$VERBOSE"; then $echo "passed y(<)"; fi;;
- 1) $echo "Test y(<) failed: files y.O and $srcdir/y.X differ" 1>&2
- (diff -c y.O $srcdir/y.X) 2> /dev/null
- errors=`expr $errors + 1`;;
- 2) $echo "Test y(<) may have failed." 1>&2
- $echo The command "cmp y.O $srcdir/y.X" failed. 1>&2
- errors=`expr $errors + 1`;;
- esac
-fi
-test -s y.E || rm -f y.E
-$xx $srcdir/z.I > z.O 2> z.E
-code=$?
-if test $code != 1; then
- $echo "Test z(F) failed: $xx return code $code differs from expected value 1" 1>&2
- errors=`expr $errors + 1`
-else
- cmp z.O $srcdir/z.X > /dev/null 2>&1
- case $? in
- 0) if test "$VERBOSE"; then $echo "passed z(F)"; fi;;
- 1) $echo "Test z(F) failed: files z.O and $srcdir/z.X differ" 1>&2
- (diff -c z.O $srcdir/z.X) 2> /dev/null
- errors=`expr $errors + 1`;;
- 2) $echo "Test z(F) may have failed." 1>&2
- $echo The command "cmp z.O $srcdir/z.X" failed. 1>&2
- errors=`expr $errors + 1`;;
- esac
-fi
-test -s z.E || rm -f z.E
-$xx < $srcdir/z.I > z.O 2> z.E
-code=$?
-if test $code != 1; then
- $echo "Test z(<) failed: $xx return code $code differs from expected value 1" 1>&2
- errors=`expr $errors + 1`
-else
- cmp z.O $srcdir/z.X > /dev/null 2>&1
- case $? in
- 0) if test "$VERBOSE"; then $echo "passed z(<)"; fi;;
- 1) $echo "Test z(<) failed: files z.O and $srcdir/z.X differ" 1>&2
- (diff -c z.O $srcdir/z.X) 2> /dev/null
- errors=`expr $errors + 1`;;
- 2) $echo "Test z(<) may have failed." 1>&2
- $echo The command "cmp z.O $srcdir/z.X" failed. 1>&2
- errors=`expr $errors + 1`;;
- esac
-fi
-test -s z.E || rm -f z.E
-$xx -f '' $srcdir/empty-fl.I > empty-fl.O 2> empty-fl.E
-code=$?
-if test $code != 1; then
- $echo "Test empty-fl(F) failed: $xx return code $code differs from expected value 1" 1>&2
- errors=`expr $errors + 1`
-else
- cmp empty-fl.O $srcdir/empty-fl.X > /dev/null 2>&1
- case $? in
- 0) if test "$VERBOSE"; then $echo "passed empty-fl(F)"; fi;;
- 1) $echo "Test empty-fl(F) failed: files empty-fl.O and $srcdir/empty-fl.X differ" 1>&2
- (diff -c empty-fl.O $srcdir/empty-fl.X) 2> /dev/null
- errors=`expr $errors + 1`;;
- 2) $echo "Test empty-fl(F) may have failed." 1>&2
- $echo The command "cmp empty-fl.O $srcdir/empty-fl.X" failed. 1>&2
- errors=`expr $errors + 1`;;
- esac
-fi
-test -s empty-fl.E || rm -f empty-fl.E
-$xx -f '' < $srcdir/empty-fl.I > empty-fl.O 2> empty-fl.E
-code=$?
-if test $code != 1; then
- $echo "Test empty-fl(<) failed: $xx return code $code differs from expected value 1" 1>&2
- errors=`expr $errors + 1`
-else
- cmp empty-fl.O $srcdir/empty-fl.X > /dev/null 2>&1
- case $? in
- 0) if test "$VERBOSE"; then $echo "passed empty-fl(<)"; fi;;
- 1) $echo "Test empty-fl(<) failed: files empty-fl.O and $srcdir/empty-fl.X differ" 1>&2
- (diff -c empty-fl.O $srcdir/empty-fl.X) 2> /dev/null
- errors=`expr $errors + 1`;;
- 2) $echo "Test empty-fl(<) may have failed." 1>&2
- $echo The command "cmp empty-fl.O $srcdir/empty-fl.X" failed. 1>&2
- errors=`expr $errors + 1`;;
- esac
-fi
-test -s empty-fl.E || rm -f empty-fl.E
-$xx -f $srcdir/missing-fl.I > missing-fl.O 2> missing-fl.E
-code=$?
-if test $code != 1; then
- $echo "Test missing-fl(F) failed: $xx return code $code differs from expected value 1" 1>&2
- errors=`expr $errors + 1`
-else
- cmp missing-fl.O $srcdir/missing-fl.X > /dev/null 2>&1
- case $? in
- 0) if test "$VERBOSE"; then $echo "passed missing-fl(F)"; fi;;
- 1) $echo "Test missing-fl(F) failed: files missing-fl.O and $srcdir/missing-fl.X differ" 1>&2
- (diff -c missing-fl.O $srcdir/missing-fl.X) 2> /dev/null
- errors=`expr $errors + 1`;;
- 2) $echo "Test missing-fl(F) may have failed." 1>&2
- $echo The command "cmp missing-fl.O $srcdir/missing-fl.X" failed. 1>&2
- errors=`expr $errors + 1`;;
- esac
-fi
-test -s missing-fl.E || rm -f missing-fl.E
-$xx -f < $srcdir/missing-fl.I > missing-fl.O 2> missing-fl.E
-code=$?
-if test $code != 1; then
- $echo "Test missing-fl(<) failed: $xx return code $code differs from expected value 1" 1>&2
- errors=`expr $errors + 1`
-else
- cmp missing-fl.O $srcdir/missing-fl.X > /dev/null 2>&1
- case $? in
- 0) if test "$VERBOSE"; then $echo "passed missing-fl(<)"; fi;;
- 1) $echo "Test missing-fl(<) failed: files missing-fl.O and $srcdir/missing-fl.X differ" 1>&2
- (diff -c missing-fl.O $srcdir/missing-fl.X) 2> /dev/null
- errors=`expr $errors + 1`;;
- 2) $echo "Test missing-fl(<) may have failed." 1>&2
- $echo The command "cmp missing-fl.O $srcdir/missing-fl.X" failed. 1>&2
- errors=`expr $errors + 1`;;
- esac
-fi
-test -s missing-fl.E || rm -f missing-fl.E
-$xx -b '' $srcdir/empty-bl.I > empty-bl.O 2> empty-bl.E
-code=$?
-if test $code != 1; then
- $echo "Test empty-bl(F) failed: $xx return code $code differs from expected value 1" 1>&2
- errors=`expr $errors + 1`
-else
- cmp empty-bl.O $srcdir/empty-bl.X > /dev/null 2>&1
- case $? in
- 0) if test "$VERBOSE"; then $echo "passed empty-bl(F)"; fi;;
- 1) $echo "Test empty-bl(F) failed: files empty-bl.O and $srcdir/empty-bl.X differ" 1>&2
- (diff -c empty-bl.O $srcdir/empty-bl.X) 2> /dev/null
- errors=`expr $errors + 1`;;
- 2) $echo "Test empty-bl(F) may have failed." 1>&2
- $echo The command "cmp empty-bl.O $srcdir/empty-bl.X" failed. 1>&2
- errors=`expr $errors + 1`;;
- esac
-fi
-test -s empty-bl.E || rm -f empty-bl.E
-$xx -b '' < $srcdir/empty-bl.I > empty-bl.O 2> empty-bl.E
-code=$?
-if test $code != 1; then
- $echo "Test empty-bl(<) failed: $xx return code $code differs from expected value 1" 1>&2
- errors=`expr $errors + 1`
-else
- cmp empty-bl.O $srcdir/empty-bl.X > /dev/null 2>&1
- case $? in
- 0) if test "$VERBOSE"; then $echo "passed empty-bl(<)"; fi;;
- 1) $echo "Test empty-bl(<) failed: files empty-bl.O and $srcdir/empty-bl.X differ" 1>&2
- (diff -c empty-bl.O $srcdir/empty-bl.X) 2> /dev/null
- errors=`expr $errors + 1`;;
- 2) $echo "Test empty-bl(<) may have failed." 1>&2
- $echo The command "cmp empty-bl.O $srcdir/empty-bl.X" failed. 1>&2
- errors=`expr $errors + 1`;;
- esac
-fi
-test -s empty-bl.E || rm -f empty-bl.E
-$xx -b $srcdir/missing-bl.I > missing-bl.O 2> missing-bl.E
-code=$?
-if test $code != 1; then
- $echo "Test missing-bl(F) failed: $xx return code $code differs from expected value 1" 1>&2
- errors=`expr $errors + 1`
-else
- cmp missing-bl.O $srcdir/missing-bl.X > /dev/null 2>&1
- case $? in
- 0) if test "$VERBOSE"; then $echo "passed missing-bl(F)"; fi;;
- 1) $echo "Test missing-bl(F) failed: files missing-bl.O and $srcdir/missing-bl.X differ" 1>&2
- (diff -c missing-bl.O $srcdir/missing-bl.X) 2> /dev/null
- errors=`expr $errors + 1`;;
- 2) $echo "Test missing-bl(F) may have failed." 1>&2
- $echo The command "cmp missing-bl.O $srcdir/missing-bl.X" failed. 1>&2
- errors=`expr $errors + 1`;;
- esac
-fi
-test -s missing-bl.E || rm -f missing-bl.E
-$xx -b < $srcdir/missing-bl.I > missing-bl.O 2> missing-bl.E
-code=$?
-if test $code != 1; then
- $echo "Test missing-bl(<) failed: $xx return code $code differs from expected value 1" 1>&2
- errors=`expr $errors + 1`
-else
- cmp missing-bl.O $srcdir/missing-bl.X > /dev/null 2>&1
- case $? in
- 0) if test "$VERBOSE"; then $echo "passed missing-bl(<)"; fi;;
- 1) $echo "Test missing-bl(<) failed: files missing-bl.O and $srcdir/missing-bl.X differ" 1>&2
- (diff -c missing-bl.O $srcdir/missing-bl.X) 2> /dev/null
- errors=`expr $errors + 1`;;
- 2) $echo "Test missing-bl(<) may have failed." 1>&2
- $echo The command "cmp missing-bl.O $srcdir/missing-bl.X" failed. 1>&2
- errors=`expr $errors + 1`;;
- esac
-fi
-test -s missing-bl.E || rm -f missing-bl.E
-$xx -f1 $srcdir/empty-f1.I > empty-f1.O 2> empty-f1.E
-code=$?
-if test $code != 0; then
- $echo "Test empty-f1(F) failed: $xx return code $code differs from expected value 0" 1>&2
- errors=`expr $errors + 1`
-else
- cmp empty-f1.O $srcdir/empty-f1.X > /dev/null 2>&1
- case $? in
- 0) if test "$VERBOSE"; then $echo "passed empty-f1(F)"; fi;;
- 1) $echo "Test empty-f1(F) failed: files empty-f1.O and $srcdir/empty-f1.X differ" 1>&2
- (diff -c empty-f1.O $srcdir/empty-f1.X) 2> /dev/null
- errors=`expr $errors + 1`;;
- 2) $echo "Test empty-f1(F) may have failed." 1>&2
- $echo The command "cmp empty-f1.O $srcdir/empty-f1.X" failed. 1>&2
- errors=`expr $errors + 1`;;
- esac
-fi
-test -s empty-f1.E || rm -f empty-f1.E
-cat $srcdir/empty-f1.I | $xx -f1 > empty-f1.O 2> empty-f1.E
-code=$?
-if test $code != 0; then
- $echo "Test empty-f1(|) failed: $xx return code $code differs from expected value 0" 1>&2
- errors=`expr $errors + 1`
-else
- cmp empty-f1.O $srcdir/empty-f1.X > /dev/null 2>&1
- case $? in
- 0) if test "$VERBOSE"; then $echo "passed empty-f1(|)"; fi;;
- 1) $echo "Test empty-f1(|) failed: files empty-f1.O and $srcdir/empty-f1.X differ" 1>&2
- (diff -c empty-f1.O $srcdir/empty-f1.X) 2> /dev/null
- errors=`expr $errors + 1`;;
- 2) $echo "Test empty-f1(|) may have failed." 1>&2
- $echo The command "cmp empty-f1.O $srcdir/empty-f1.X" failed. 1>&2
- errors=`expr $errors + 1`;;
- esac
-fi
-test -s empty-f1.E || rm -f empty-f1.E
-$xx -f1 < $srcdir/empty-f1.I > empty-f1.O 2> empty-f1.E
-code=$?
-if test $code != 0; then
- $echo "Test empty-f1(<) failed: $xx return code $code differs from expected value 0" 1>&2
- errors=`expr $errors + 1`
-else
- cmp empty-f1.O $srcdir/empty-f1.X > /dev/null 2>&1
- case $? in
- 0) if test "$VERBOSE"; then $echo "passed empty-f1(<)"; fi;;
- 1) $echo "Test empty-f1(<) failed: files empty-f1.O and $srcdir/empty-f1.X differ" 1>&2
- (diff -c empty-f1.O $srcdir/empty-f1.X) 2> /dev/null
- errors=`expr $errors + 1`;;
- 2) $echo "Test empty-f1(<) may have failed." 1>&2
- $echo The command "cmp empty-f1.O $srcdir/empty-f1.X" failed. 1>&2
- errors=`expr $errors + 1`;;
- esac
-fi
-test -s empty-f1.E || rm -f empty-f1.E
-$xx -f2 $srcdir/empty-f2.I > empty-f2.O 2> empty-f2.E
-code=$?
-if test $code != 0; then
- $echo "Test empty-f2(F) failed: $xx return code $code differs from expected value 0" 1>&2
- errors=`expr $errors + 1`
-else
- cmp empty-f2.O $srcdir/empty-f2.X > /dev/null 2>&1
- case $? in
- 0) if test "$VERBOSE"; then $echo "passed empty-f2(F)"; fi;;
- 1) $echo "Test empty-f2(F) failed: files empty-f2.O and $srcdir/empty-f2.X differ" 1>&2
- (diff -c empty-f2.O $srcdir/empty-f2.X) 2> /dev/null
- errors=`expr $errors + 1`;;
- 2) $echo "Test empty-f2(F) may have failed." 1>&2
- $echo The command "cmp empty-f2.O $srcdir/empty-f2.X" failed. 1>&2
- errors=`expr $errors + 1`;;
- esac
-fi
-test -s empty-f2.E || rm -f empty-f2.E
-cat $srcdir/empty-f2.I | $xx -f2 > empty-f2.O 2> empty-f2.E
-code=$?
-if test $code != 0; then
- $echo "Test empty-f2(|) failed: $xx return code $code differs from expected value 0" 1>&2
- errors=`expr $errors + 1`
-else
- cmp empty-f2.O $srcdir/empty-f2.X > /dev/null 2>&1
- case $? in
- 0) if test "$VERBOSE"; then $echo "passed empty-f2(|)"; fi;;
- 1) $echo "Test empty-f2(|) failed: files empty-f2.O and $srcdir/empty-f2.X differ" 1>&2
- (diff -c empty-f2.O $srcdir/empty-f2.X) 2> /dev/null
- errors=`expr $errors + 1`;;
- 2) $echo "Test empty-f2(|) may have failed." 1>&2
- $echo The command "cmp empty-f2.O $srcdir/empty-f2.X" failed. 1>&2
- errors=`expr $errors + 1`;;
- esac
-fi
-test -s empty-f2.E || rm -f empty-f2.E
-$xx -f2 < $srcdir/empty-f2.I > empty-f2.O 2> empty-f2.E
-code=$?
-if test $code != 0; then
- $echo "Test empty-f2(<) failed: $xx return code $code differs from expected value 0" 1>&2
- errors=`expr $errors + 1`
-else
- cmp empty-f2.O $srcdir/empty-f2.X > /dev/null 2>&1
- case $? in
- 0) if test "$VERBOSE"; then $echo "passed empty-f2(<)"; fi;;
- 1) $echo "Test empty-f2(<) failed: files empty-f2.O and $srcdir/empty-f2.X differ" 1>&2
- (diff -c empty-f2.O $srcdir/empty-f2.X) 2> /dev/null
- errors=`expr $errors + 1`;;
- 2) $echo "Test empty-f2(<) may have failed." 1>&2
- $echo The command "cmp empty-f2.O $srcdir/empty-f2.X" failed. 1>&2
- errors=`expr $errors + 1`;;
- esac
-fi
-test -s empty-f2.E || rm -f empty-f2.E
-$xx -d: -f2,3 --out=_ $srcdir/o-delim.I > o-delim.O 2> o-delim.E
-code=$?
-if test $code != 0; then
- $echo "Test o-delim(F) failed: $xx return code $code differs from expected value 0" 1>&2
- errors=`expr $errors + 1`
-else
- cmp o-delim.O $srcdir/o-delim.X > /dev/null 2>&1
- case $? in
- 0) if test "$VERBOSE"; then $echo "passed o-delim(F)"; fi;;
- 1) $echo "Test o-delim(F) failed: files o-delim.O and $srcdir/o-delim.X differ" 1>&2
- (diff -c o-delim.O $srcdir/o-delim.X) 2> /dev/null
- errors=`expr $errors + 1`;;
- 2) $echo "Test o-delim(F) may have failed." 1>&2
- $echo The command "cmp o-delim.O $srcdir/o-delim.X" failed. 1>&2
- errors=`expr $errors + 1`;;
- esac
-fi
-test -s o-delim.E || rm -f o-delim.E
-cat $srcdir/o-delim.I | $xx -d: -f2,3 --out=_ > o-delim.O 2> o-delim.E
-code=$?
-if test $code != 0; then
- $echo "Test o-delim(|) failed: $xx return code $code differs from expected value 0" 1>&2
- errors=`expr $errors + 1`
-else
- cmp o-delim.O $srcdir/o-delim.X > /dev/null 2>&1
- case $? in
- 0) if test "$VERBOSE"; then $echo "passed o-delim(|)"; fi;;
- 1) $echo "Test o-delim(|) failed: files o-delim.O and $srcdir/o-delim.X differ" 1>&2
- (diff -c o-delim.O $srcdir/o-delim.X) 2> /dev/null
- errors=`expr $errors + 1`;;
- 2) $echo "Test o-delim(|) may have failed." 1>&2
- $echo The command "cmp o-delim.O $srcdir/o-delim.X" failed. 1>&2
- errors=`expr $errors + 1`;;
- esac
-fi
-test -s o-delim.E || rm -f o-delim.E
-$xx -d: -f2,3 --out=_ < $srcdir/o-delim.I > o-delim.O 2> o-delim.E
-code=$?
-if test $code != 0; then
- $echo "Test o-delim(<) failed: $xx return code $code differs from expected value 0" 1>&2
- errors=`expr $errors + 1`
-else
- cmp o-delim.O $srcdir/o-delim.X > /dev/null 2>&1
- case $? in
- 0) if test "$VERBOSE"; then $echo "passed o-delim(<)"; fi;;
- 1) $echo "Test o-delim(<) failed: files o-delim.O and $srcdir/o-delim.X differ" 1>&2
- (diff -c o-delim.O $srcdir/o-delim.X) 2> /dev/null
- errors=`expr $errors + 1`;;
- 2) $echo "Test o-delim(<) may have failed." 1>&2
- $echo The command "cmp o-delim.O $srcdir/o-delim.X" failed. 1>&2
- errors=`expr $errors + 1`;;
- esac
-fi
-test -s o-delim.E || rm -f o-delim.E
-$xx -d '' -f2,3 --out=_ $srcdir/nul-idelim.I > nul-idelim.O 2> nul-idelim.E
-code=$?
-if test $code != 0; then
- $echo "Test nul-idelim(F) failed: $xx return code $code differs from expected value 0" 1>&2
- errors=`expr $errors + 1`
-else
- cmp nul-idelim.O $srcdir/nul-idelim.X > /dev/null 2>&1
- case $? in
- 0) if test "$VERBOSE"; then $echo "passed nul-idelim(F)"; fi;;
- 1) $echo "Test nul-idelim(F) failed: files nul-idelim.O and $srcdir/nul-idelim.X differ" 1>&2
- (diff -c nul-idelim.O $srcdir/nul-idelim.X) 2> /dev/null
- errors=`expr $errors + 1`;;
- 2) $echo "Test nul-idelim(F) may have failed." 1>&2
- $echo The command "cmp nul-idelim.O $srcdir/nul-idelim.X" failed. 1>&2
- errors=`expr $errors + 1`;;
- esac
-fi
-test -s nul-idelim.E || rm -f nul-idelim.E
-cat $srcdir/nul-idelim.I | $xx -d '' -f2,3 --out=_ > nul-idelim.O 2> nul-idelim.E
-code=$?
-if test $code != 0; then
- $echo "Test nul-idelim(|) failed: $xx return code $code differs from expected value 0" 1>&2
- errors=`expr $errors + 1`
-else
- cmp nul-idelim.O $srcdir/nul-idelim.X > /dev/null 2>&1
- case $? in
- 0) if test "$VERBOSE"; then $echo "passed nul-idelim(|)"; fi;;
- 1) $echo "Test nul-idelim(|) failed: files nul-idelim.O and $srcdir/nul-idelim.X differ" 1>&2
- (diff -c nul-idelim.O $srcdir/nul-idelim.X) 2> /dev/null
- errors=`expr $errors + 1`;;
- 2) $echo "Test nul-idelim(|) may have failed." 1>&2
- $echo The command "cmp nul-idelim.O $srcdir/nul-idelim.X" failed. 1>&2
- errors=`expr $errors + 1`;;
- esac
-fi
-test -s nul-idelim.E || rm -f nul-idelim.E
-$xx -d '' -f2,3 --out=_ < $srcdir/nul-idelim.I > nul-idelim.O 2> nul-idelim.E
-code=$?
-if test $code != 0; then
- $echo "Test nul-idelim(<) failed: $xx return code $code differs from expected value 0" 1>&2
- errors=`expr $errors + 1`
-else
- cmp nul-idelim.O $srcdir/nul-idelim.X > /dev/null 2>&1
- case $? in
- 0) if test "$VERBOSE"; then $echo "passed nul-idelim(<)"; fi;;
- 1) $echo "Test nul-idelim(<) failed: files nul-idelim.O and $srcdir/nul-idelim.X differ" 1>&2
- (diff -c nul-idelim.O $srcdir/nul-idelim.X) 2> /dev/null
- errors=`expr $errors + 1`;;
- 2) $echo "Test nul-idelim(<) may have failed." 1>&2
- $echo The command "cmp nul-idelim.O $srcdir/nul-idelim.X" failed. 1>&2
- errors=`expr $errors + 1`;;
- esac
-fi
-test -s nul-idelim.E || rm -f nul-idelim.E
-$xx -d: -f2,3 --out= $srcdir/nul-odelim.I > nul-odelim.O 2> nul-odelim.E
-code=$?
-if test $code != 0; then
- $echo "Test nul-odelim(F) failed: $xx return code $code differs from expected value 0" 1>&2
- errors=`expr $errors + 1`
-else
- cmp nul-odelim.O $srcdir/nul-odelim.X > /dev/null 2>&1
- case $? in
- 0) if test "$VERBOSE"; then $echo "passed nul-odelim(F)"; fi;;
- 1) $echo "Test nul-odelim(F) failed: files nul-odelim.O and $srcdir/nul-odelim.X differ" 1>&2
- (diff -c nul-odelim.O $srcdir/nul-odelim.X) 2> /dev/null
- errors=`expr $errors + 1`;;
- 2) $echo "Test nul-odelim(F) may have failed." 1>&2
- $echo The command "cmp nul-odelim.O $srcdir/nul-odelim.X" failed. 1>&2
- errors=`expr $errors + 1`;;
- esac
-fi
-test -s nul-odelim.E || rm -f nul-odelim.E
-cat $srcdir/nul-odelim.I | $xx -d: -f2,3 --out= > nul-odelim.O 2> nul-odelim.E
-code=$?
-if test $code != 0; then
- $echo "Test nul-odelim(|) failed: $xx return code $code differs from expected value 0" 1>&2
- errors=`expr $errors + 1`
-else
- cmp nul-odelim.O $srcdir/nul-odelim.X > /dev/null 2>&1
- case $? in
- 0) if test "$VERBOSE"; then $echo "passed nul-odelim(|)"; fi;;
- 1) $echo "Test nul-odelim(|) failed: files nul-odelim.O and $srcdir/nul-odelim.X differ" 1>&2
- (diff -c nul-odelim.O $srcdir/nul-odelim.X) 2> /dev/null
- errors=`expr $errors + 1`;;
- 2) $echo "Test nul-odelim(|) may have failed." 1>&2
- $echo The command "cmp nul-odelim.O $srcdir/nul-odelim.X" failed. 1>&2
- errors=`expr $errors + 1`;;
- esac
-fi
-test -s nul-odelim.E || rm -f nul-odelim.E
-$xx -d: -f2,3 --out= < $srcdir/nul-odelim.I > nul-odelim.O 2> nul-odelim.E
-code=$?
-if test $code != 0; then
- $echo "Test nul-odelim(<) failed: $xx return code $code differs from expected value 0" 1>&2
- errors=`expr $errors + 1`
-else
- cmp nul-odelim.O $srcdir/nul-odelim.X > /dev/null 2>&1
- case $? in
- 0) if test "$VERBOSE"; then $echo "passed nul-odelim(<)"; fi;;
- 1) $echo "Test nul-odelim(<) failed: files nul-odelim.O and $srcdir/nul-odelim.X differ" 1>&2
- (diff -c nul-odelim.O $srcdir/nul-odelim.X) 2> /dev/null
- errors=`expr $errors + 1`;;
- 2) $echo "Test nul-odelim(<) may have failed." 1>&2
- $echo The command "cmp nul-odelim.O $srcdir/nul-odelim.X" failed. 1>&2
- errors=`expr $errors + 1`;;
- esac
-fi
-test -s nul-odelim.E || rm -f nul-odelim.E
-$xx -d: -f2,3 --out=_._ $srcdir/multichar-od.I > multichar-od.O 2> multichar-od.E
-code=$?
-if test $code != 0; then
- $echo "Test multichar-od(F) failed: $xx return code $code differs from expected value 0" 1>&2
- errors=`expr $errors + 1`
-else
- cmp multichar-od.O $srcdir/multichar-od.X > /dev/null 2>&1
- case $? in
- 0) if test "$VERBOSE"; then $echo "passed multichar-od(F)"; fi;;
- 1) $echo "Test multichar-od(F) failed: files multichar-od.O and $srcdir/multichar-od.X differ" 1>&2
- (diff -c multichar-od.O $srcdir/multichar-od.X) 2> /dev/null
- errors=`expr $errors + 1`;;
- 2) $echo "Test multichar-od(F) may have failed." 1>&2
- $echo The command "cmp multichar-od.O $srcdir/multichar-od.X" failed. 1>&2
- errors=`expr $errors + 1`;;
- esac
-fi
-test -s multichar-od.E || rm -f multichar-od.E
-cat $srcdir/multichar-od.I | $xx -d: -f2,3 --out=_._ > multichar-od.O 2> multichar-od.E
-code=$?
-if test $code != 0; then
- $echo "Test multichar-od(|) failed: $xx return code $code differs from expected value 0" 1>&2
- errors=`expr $errors + 1`
-else
- cmp multichar-od.O $srcdir/multichar-od.X > /dev/null 2>&1
- case $? in
- 0) if test "$VERBOSE"; then $echo "passed multichar-od(|)"; fi;;
- 1) $echo "Test multichar-od(|) failed: files multichar-od.O and $srcdir/multichar-od.X differ" 1>&2
- (diff -c multichar-od.O $srcdir/multichar-od.X) 2> /dev/null
- errors=`expr $errors + 1`;;
- 2) $echo "Test multichar-od(|) may have failed." 1>&2
- $echo The command "cmp multichar-od.O $srcdir/multichar-od.X" failed. 1>&2
- errors=`expr $errors + 1`;;
- esac
-fi
-test -s multichar-od.E || rm -f multichar-od.E
-$xx -d: -f2,3 --out=_._ < $srcdir/multichar-od.I > multichar-od.O 2> multichar-od.E
-code=$?
-if test $code != 0; then
- $echo "Test multichar-od(<) failed: $xx return code $code differs from expected value 0" 1>&2
- errors=`expr $errors + 1`
-else
- cmp multichar-od.O $srcdir/multichar-od.X > /dev/null 2>&1
- case $? in
- 0) if test "$VERBOSE"; then $echo "passed multichar-od(<)"; fi;;
- 1) $echo "Test multichar-od(<) failed: files multichar-od.O and $srcdir/multichar-od.X differ" 1>&2
- (diff -c multichar-od.O $srcdir/multichar-od.X) 2> /dev/null
- errors=`expr $errors + 1`;;
- 2) $echo "Test multichar-od(<) may have failed." 1>&2
- $echo The command "cmp multichar-od.O $srcdir/multichar-od.X" failed. 1>&2
- errors=`expr $errors + 1`;;
- esac
-fi
-test -s multichar-od.E || rm -f multichar-od.E
-$xx '-d­' -f2,3 --out=_ $srcdir/8bit-delim.I > 8bit-delim.O 2> 8bit-delim.E
-code=$?
-if test $code != 0; then
- $echo "Test 8bit-delim(F) failed: $xx return code $code differs from expected value 0" 1>&2
- errors=`expr $errors + 1`
-else
- cmp 8bit-delim.O $srcdir/8bit-delim.X > /dev/null 2>&1
- case $? in
- 0) if test "$VERBOSE"; then $echo "passed 8bit-delim(F)"; fi;;
- 1) $echo "Test 8bit-delim(F) failed: files 8bit-delim.O and $srcdir/8bit-delim.X differ" 1>&2
- (diff -c 8bit-delim.O $srcdir/8bit-delim.X) 2> /dev/null
- errors=`expr $errors + 1`;;
- 2) $echo "Test 8bit-delim(F) may have failed." 1>&2
- $echo The command "cmp 8bit-delim.O $srcdir/8bit-delim.X" failed. 1>&2
- errors=`expr $errors + 1`;;
- esac
-fi
-test -s 8bit-delim.E || rm -f 8bit-delim.E
-cat $srcdir/8bit-delim.I | $xx '-d­' -f2,3 --out=_ > 8bit-delim.O 2> 8bit-delim.E
-code=$?
-if test $code != 0; then
- $echo "Test 8bit-delim(|) failed: $xx return code $code differs from expected value 0" 1>&2
- errors=`expr $errors + 1`
-else
- cmp 8bit-delim.O $srcdir/8bit-delim.X > /dev/null 2>&1
- case $? in
- 0) if test "$VERBOSE"; then $echo "passed 8bit-delim(|)"; fi;;
- 1) $echo "Test 8bit-delim(|) failed: files 8bit-delim.O and $srcdir/8bit-delim.X differ" 1>&2
- (diff -c 8bit-delim.O $srcdir/8bit-delim.X) 2> /dev/null
- errors=`expr $errors + 1`;;
- 2) $echo "Test 8bit-delim(|) may have failed." 1>&2
- $echo The command "cmp 8bit-delim.O $srcdir/8bit-delim.X" failed. 1>&2
- errors=`expr $errors + 1`;;
- esac
-fi
-test -s 8bit-delim.E || rm -f 8bit-delim.E
-$xx '-d­' -f2,3 --out=_ < $srcdir/8bit-delim.I > 8bit-delim.O 2> 8bit-delim.E
-code=$?
-if test $code != 0; then
- $echo "Test 8bit-delim(<) failed: $xx return code $code differs from expected value 0" 1>&2
- errors=`expr $errors + 1`
-else
- cmp 8bit-delim.O $srcdir/8bit-delim.X > /dev/null 2>&1
- case $? in
- 0) if test "$VERBOSE"; then $echo "passed 8bit-delim(<)"; fi;;
- 1) $echo "Test 8bit-delim(<) failed: files 8bit-delim.O and $srcdir/8bit-delim.X differ" 1>&2
- (diff -c 8bit-delim.O $srcdir/8bit-delim.X) 2> /dev/null
- errors=`expr $errors + 1`;;
- 2) $echo "Test 8bit-delim(<) may have failed." 1>&2
- $echo The command "cmp 8bit-delim.O $srcdir/8bit-delim.X" failed. 1>&2
- errors=`expr $errors + 1`;;
- esac
-fi
-test -s 8bit-delim.E || rm -f 8bit-delim.E
-$xx -c1-3,5- --output-d=: $srcdir/out-delim1.I > out-delim1.O 2> out-delim1.E
-code=$?
-if test $code != 0; then
- $echo "Test out-delim1(F) failed: $xx return code $code differs from expected value 0" 1>&2
- errors=`expr $errors + 1`
-else
- cmp out-delim1.O $srcdir/out-delim1.X > /dev/null 2>&1
- case $? in
- 0) if test "$VERBOSE"; then $echo "passed out-delim1(F)"; fi;;
- 1) $echo "Test out-delim1(F) failed: files out-delim1.O and $srcdir/out-delim1.X differ" 1>&2
- (diff -c out-delim1.O $srcdir/out-delim1.X) 2> /dev/null
- errors=`expr $errors + 1`;;
- 2) $echo "Test out-delim1(F) may have failed." 1>&2
- $echo The command "cmp out-delim1.O $srcdir/out-delim1.X" failed. 1>&2
- errors=`expr $errors + 1`;;
- esac
-fi
-test -s out-delim1.E || rm -f out-delim1.E
-cat $srcdir/out-delim1.I | $xx -c1-3,5- --output-d=: > out-delim1.O 2> out-delim1.E
-code=$?
-if test $code != 0; then
- $echo "Test out-delim1(|) failed: $xx return code $code differs from expected value 0" 1>&2
- errors=`expr $errors + 1`
-else
- cmp out-delim1.O $srcdir/out-delim1.X > /dev/null 2>&1
- case $? in
- 0) if test "$VERBOSE"; then $echo "passed out-delim1(|)"; fi;;
- 1) $echo "Test out-delim1(|) failed: files out-delim1.O and $srcdir/out-delim1.X differ" 1>&2
- (diff -c out-delim1.O $srcdir/out-delim1.X) 2> /dev/null
- errors=`expr $errors + 1`;;
- 2) $echo "Test out-delim1(|) may have failed." 1>&2
- $echo The command "cmp out-delim1.O $srcdir/out-delim1.X" failed. 1>&2
- errors=`expr $errors + 1`;;
- esac
-fi
-test -s out-delim1.E || rm -f out-delim1.E
-$xx -c1-3,5- --output-d=: < $srcdir/out-delim1.I > out-delim1.O 2> out-delim1.E
-code=$?
-if test $code != 0; then
- $echo "Test out-delim1(<) failed: $xx return code $code differs from expected value 0" 1>&2
- errors=`expr $errors + 1`
-else
- cmp out-delim1.O $srcdir/out-delim1.X > /dev/null 2>&1
- case $? in
- 0) if test "$VERBOSE"; then $echo "passed out-delim1(<)"; fi;;
- 1) $echo "Test out-delim1(<) failed: files out-delim1.O and $srcdir/out-delim1.X differ" 1>&2
- (diff -c out-delim1.O $srcdir/out-delim1.X) 2> /dev/null
- errors=`expr $errors + 1`;;
- 2) $echo "Test out-delim1(<) may have failed." 1>&2
- $echo The command "cmp out-delim1.O $srcdir/out-delim1.X" failed. 1>&2
- errors=`expr $errors + 1`;;
- esac
-fi
-test -s out-delim1.E || rm -f out-delim1.E
-$xx -c1-3,2,5- --output-d=: $srcdir/out-delim2.I > out-delim2.O 2> out-delim2.E
-code=$?
-if test $code != 0; then
- $echo "Test out-delim2(F) failed: $xx return code $code differs from expected value 0" 1>&2
- errors=`expr $errors + 1`
-else
- cmp out-delim2.O $srcdir/out-delim2.X > /dev/null 2>&1
- case $? in
- 0) if test "$VERBOSE"; then $echo "passed out-delim2(F)"; fi;;
- 1) $echo "Test out-delim2(F) failed: files out-delim2.O and $srcdir/out-delim2.X differ" 1>&2
- (diff -c out-delim2.O $srcdir/out-delim2.X) 2> /dev/null
- errors=`expr $errors + 1`;;
- 2) $echo "Test out-delim2(F) may have failed." 1>&2
- $echo The command "cmp out-delim2.O $srcdir/out-delim2.X" failed. 1>&2
- errors=`expr $errors + 1`;;
- esac
-fi
-test -s out-delim2.E || rm -f out-delim2.E
-cat $srcdir/out-delim2.I | $xx -c1-3,2,5- --output-d=: > out-delim2.O 2> out-delim2.E
-code=$?
-if test $code != 0; then
- $echo "Test out-delim2(|) failed: $xx return code $code differs from expected value 0" 1>&2
- errors=`expr $errors + 1`
-else
- cmp out-delim2.O $srcdir/out-delim2.X > /dev/null 2>&1
- case $? in
- 0) if test "$VERBOSE"; then $echo "passed out-delim2(|)"; fi;;
- 1) $echo "Test out-delim2(|) failed: files out-delim2.O and $srcdir/out-delim2.X differ" 1>&2
- (diff -c out-delim2.O $srcdir/out-delim2.X) 2> /dev/null
- errors=`expr $errors + 1`;;
- 2) $echo "Test out-delim2(|) may have failed." 1>&2
- $echo The command "cmp out-delim2.O $srcdir/out-delim2.X" failed. 1>&2
- errors=`expr $errors + 1`;;
- esac
-fi
-test -s out-delim2.E || rm -f out-delim2.E
-$xx -c1-3,2,5- --output-d=: < $srcdir/out-delim2.I > out-delim2.O 2> out-delim2.E
-code=$?
-if test $code != 0; then
- $echo "Test out-delim2(<) failed: $xx return code $code differs from expected value 0" 1>&2
- errors=`expr $errors + 1`
-else
- cmp out-delim2.O $srcdir/out-delim2.X > /dev/null 2>&1
- case $? in
- 0) if test "$VERBOSE"; then $echo "passed out-delim2(<)"; fi;;
- 1) $echo "Test out-delim2(<) failed: files out-delim2.O and $srcdir/out-delim2.X differ" 1>&2
- (diff -c out-delim2.O $srcdir/out-delim2.X) 2> /dev/null
- errors=`expr $errors + 1`;;
- 2) $echo "Test out-delim2(<) may have failed." 1>&2
- $echo The command "cmp out-delim2.O $srcdir/out-delim2.X" failed. 1>&2
- errors=`expr $errors + 1`;;
- esac
-fi
-test -s out-delim2.E || rm -f out-delim2.E
-$xx -c1-3,2-4,6 --output-d=: $srcdir/out-delim3.I > out-delim3.O 2> out-delim3.E
-code=$?
-if test $code != 0; then
- $echo "Test out-delim3(F) failed: $xx return code $code differs from expected value 0" 1>&2
- errors=`expr $errors + 1`
-else
- cmp out-delim3.O $srcdir/out-delim3.X > /dev/null 2>&1
- case $? in
- 0) if test "$VERBOSE"; then $echo "passed out-delim3(F)"; fi;;
- 1) $echo "Test out-delim3(F) failed: files out-delim3.O and $srcdir/out-delim3.X differ" 1>&2
- (diff -c out-delim3.O $srcdir/out-delim3.X) 2> /dev/null
- errors=`expr $errors + 1`;;
- 2) $echo "Test out-delim3(F) may have failed." 1>&2
- $echo The command "cmp out-delim3.O $srcdir/out-delim3.X" failed. 1>&2
- errors=`expr $errors + 1`;;
- esac
-fi
-test -s out-delim3.E || rm -f out-delim3.E
-cat $srcdir/out-delim3.I | $xx -c1-3,2-4,6 --output-d=: > out-delim3.O 2> out-delim3.E
-code=$?
-if test $code != 0; then
- $echo "Test out-delim3(|) failed: $xx return code $code differs from expected value 0" 1>&2
- errors=`expr $errors + 1`
-else
- cmp out-delim3.O $srcdir/out-delim3.X > /dev/null 2>&1
- case $? in
- 0) if test "$VERBOSE"; then $echo "passed out-delim3(|)"; fi;;
- 1) $echo "Test out-delim3(|) failed: files out-delim3.O and $srcdir/out-delim3.X differ" 1>&2
- (diff -c out-delim3.O $srcdir/out-delim3.X) 2> /dev/null
- errors=`expr $errors + 1`;;
- 2) $echo "Test out-delim3(|) may have failed." 1>&2
- $echo The command "cmp out-delim3.O $srcdir/out-delim3.X" failed. 1>&2
- errors=`expr $errors + 1`;;
- esac
-fi
-test -s out-delim3.E || rm -f out-delim3.E
-$xx -c1-3,2-4,6 --output-d=: < $srcdir/out-delim3.I > out-delim3.O 2> out-delim3.E
-code=$?
-if test $code != 0; then
- $echo "Test out-delim3(<) failed: $xx return code $code differs from expected value 0" 1>&2
- errors=`expr $errors + 1`
-else
- cmp out-delim3.O $srcdir/out-delim3.X > /dev/null 2>&1
- case $? in
- 0) if test "$VERBOSE"; then $echo "passed out-delim3(<)"; fi;;
- 1) $echo "Test out-delim3(<) failed: files out-delim3.O and $srcdir/out-delim3.X differ" 1>&2
- (diff -c out-delim3.O $srcdir/out-delim3.X) 2> /dev/null
- errors=`expr $errors + 1`;;
- 2) $echo "Test out-delim3(<) may have failed." 1>&2
- $echo The command "cmp out-delim3.O $srcdir/out-delim3.X" failed. 1>&2
- errors=`expr $errors + 1`;;
- esac
-fi
-test -s out-delim3.E || rm -f out-delim3.E
-$xx -c1-3,2-4,6- --output-d=: $srcdir/out-delim3a.I > out-delim3a.O 2> out-delim3a.E
-code=$?
-if test $code != 0; then
- $echo "Test out-delim3a(F) failed: $xx return code $code differs from expected value 0" 1>&2
- errors=`expr $errors + 1`
-else
- cmp out-delim3a.O $srcdir/out-delim3a.X > /dev/null 2>&1
- case $? in
- 0) if test "$VERBOSE"; then $echo "passed out-delim3a(F)"; fi;;
- 1) $echo "Test out-delim3a(F) failed: files out-delim3a.O and $srcdir/out-delim3a.X differ" 1>&2
- (diff -c out-delim3a.O $srcdir/out-delim3a.X) 2> /dev/null
- errors=`expr $errors + 1`;;
- 2) $echo "Test out-delim3a(F) may have failed." 1>&2
- $echo The command "cmp out-delim3a.O $srcdir/out-delim3a.X" failed. 1>&2
- errors=`expr $errors + 1`;;
- esac
-fi
-test -s out-delim3a.E || rm -f out-delim3a.E
-cat $srcdir/out-delim3a.I | $xx -c1-3,2-4,6- --output-d=: > out-delim3a.O 2> out-delim3a.E
-code=$?
-if test $code != 0; then
- $echo "Test out-delim3a(|) failed: $xx return code $code differs from expected value 0" 1>&2
- errors=`expr $errors + 1`
-else
- cmp out-delim3a.O $srcdir/out-delim3a.X > /dev/null 2>&1
- case $? in
- 0) if test "$VERBOSE"; then $echo "passed out-delim3a(|)"; fi;;
- 1) $echo "Test out-delim3a(|) failed: files out-delim3a.O and $srcdir/out-delim3a.X differ" 1>&2
- (diff -c out-delim3a.O $srcdir/out-delim3a.X) 2> /dev/null
- errors=`expr $errors + 1`;;
- 2) $echo "Test out-delim3a(|) may have failed." 1>&2
- $echo The command "cmp out-delim3a.O $srcdir/out-delim3a.X" failed. 1>&2
- errors=`expr $errors + 1`;;
- esac
-fi
-test -s out-delim3a.E || rm -f out-delim3a.E
-$xx -c1-3,2-4,6- --output-d=: < $srcdir/out-delim3a.I > out-delim3a.O 2> out-delim3a.E
-code=$?
-if test $code != 0; then
- $echo "Test out-delim3a(<) failed: $xx return code $code differs from expected value 0" 1>&2
- errors=`expr $errors + 1`
-else
- cmp out-delim3a.O $srcdir/out-delim3a.X > /dev/null 2>&1
- case $? in
- 0) if test "$VERBOSE"; then $echo "passed out-delim3a(<)"; fi;;
- 1) $echo "Test out-delim3a(<) failed: files out-delim3a.O and $srcdir/out-delim3a.X differ" 1>&2
- (diff -c out-delim3a.O $srcdir/out-delim3a.X) 2> /dev/null
- errors=`expr $errors + 1`;;
- 2) $echo "Test out-delim3a(<) may have failed." 1>&2
- $echo The command "cmp out-delim3a.O $srcdir/out-delim3a.X" failed. 1>&2
- errors=`expr $errors + 1`;;
- esac
-fi
-test -s out-delim3a.E || rm -f out-delim3a.E
-$xx -c4-,2-3 --output-d=: $srcdir/out-delim4.I > out-delim4.O 2> out-delim4.E
-code=$?
-if test $code != 0; then
- $echo "Test out-delim4(F) failed: $xx return code $code differs from expected value 0" 1>&2
- errors=`expr $errors + 1`
-else
- cmp out-delim4.O $srcdir/out-delim4.X > /dev/null 2>&1
- case $? in
- 0) if test "$VERBOSE"; then $echo "passed out-delim4(F)"; fi;;
- 1) $echo "Test out-delim4(F) failed: files out-delim4.O and $srcdir/out-delim4.X differ" 1>&2
- (diff -c out-delim4.O $srcdir/out-delim4.X) 2> /dev/null
- errors=`expr $errors + 1`;;
- 2) $echo "Test out-delim4(F) may have failed." 1>&2
- $echo The command "cmp out-delim4.O $srcdir/out-delim4.X" failed. 1>&2
- errors=`expr $errors + 1`;;
- esac
-fi
-test -s out-delim4.E || rm -f out-delim4.E
-cat $srcdir/out-delim4.I | $xx -c4-,2-3 --output-d=: > out-delim4.O 2> out-delim4.E
-code=$?
-if test $code != 0; then
- $echo "Test out-delim4(|) failed: $xx return code $code differs from expected value 0" 1>&2
- errors=`expr $errors + 1`
-else
- cmp out-delim4.O $srcdir/out-delim4.X > /dev/null 2>&1
- case $? in
- 0) if test "$VERBOSE"; then $echo "passed out-delim4(|)"; fi;;
- 1) $echo "Test out-delim4(|) failed: files out-delim4.O and $srcdir/out-delim4.X differ" 1>&2
- (diff -c out-delim4.O $srcdir/out-delim4.X) 2> /dev/null
- errors=`expr $errors + 1`;;
- 2) $echo "Test out-delim4(|) may have failed." 1>&2
- $echo The command "cmp out-delim4.O $srcdir/out-delim4.X" failed. 1>&2
- errors=`expr $errors + 1`;;
- esac
-fi
-test -s out-delim4.E || rm -f out-delim4.E
-$xx -c4-,2-3 --output-d=: < $srcdir/out-delim4.I > out-delim4.O 2> out-delim4.E
-code=$?
-if test $code != 0; then
- $echo "Test out-delim4(<) failed: $xx return code $code differs from expected value 0" 1>&2
- errors=`expr $errors + 1`
-else
- cmp out-delim4.O $srcdir/out-delim4.X > /dev/null 2>&1
- case $? in
- 0) if test "$VERBOSE"; then $echo "passed out-delim4(<)"; fi;;
- 1) $echo "Test out-delim4(<) failed: files out-delim4.O and $srcdir/out-delim4.X differ" 1>&2
- (diff -c out-delim4.O $srcdir/out-delim4.X) 2> /dev/null
- errors=`expr $errors + 1`;;
- 2) $echo "Test out-delim4(<) may have failed." 1>&2
- $echo The command "cmp out-delim4.O $srcdir/out-delim4.X" failed. 1>&2
- errors=`expr $errors + 1`;;
- esac
-fi
-test -s out-delim4.E || rm -f out-delim4.E
-$xx -c2-3,4- --output-d=: $srcdir/out-delim5.I > out-delim5.O 2> out-delim5.E
-code=$?
-if test $code != 0; then
- $echo "Test out-delim5(F) failed: $xx return code $code differs from expected value 0" 1>&2
- errors=`expr $errors + 1`
-else
- cmp out-delim5.O $srcdir/out-delim5.X > /dev/null 2>&1
- case $? in
- 0) if test "$VERBOSE"; then $echo "passed out-delim5(F)"; fi;;
- 1) $echo "Test out-delim5(F) failed: files out-delim5.O and $srcdir/out-delim5.X differ" 1>&2
- (diff -c out-delim5.O $srcdir/out-delim5.X) 2> /dev/null
- errors=`expr $errors + 1`;;
- 2) $echo "Test out-delim5(F) may have failed." 1>&2
- $echo The command "cmp out-delim5.O $srcdir/out-delim5.X" failed. 1>&2
- errors=`expr $errors + 1`;;
- esac
-fi
-test -s out-delim5.E || rm -f out-delim5.E
-cat $srcdir/out-delim5.I | $xx -c2-3,4- --output-d=: > out-delim5.O 2> out-delim5.E
-code=$?
-if test $code != 0; then
- $echo "Test out-delim5(|) failed: $xx return code $code differs from expected value 0" 1>&2
- errors=`expr $errors + 1`
-else
- cmp out-delim5.O $srcdir/out-delim5.X > /dev/null 2>&1
- case $? in
- 0) if test "$VERBOSE"; then $echo "passed out-delim5(|)"; fi;;
- 1) $echo "Test out-delim5(|) failed: files out-delim5.O and $srcdir/out-delim5.X differ" 1>&2
- (diff -c out-delim5.O $srcdir/out-delim5.X) 2> /dev/null
- errors=`expr $errors + 1`;;
- 2) $echo "Test out-delim5(|) may have failed." 1>&2
- $echo The command "cmp out-delim5.O $srcdir/out-delim5.X" failed. 1>&2
- errors=`expr $errors + 1`;;
- esac
-fi
-test -s out-delim5.E || rm -f out-delim5.E
-$xx -c2-3,4- --output-d=: < $srcdir/out-delim5.I > out-delim5.O 2> out-delim5.E
-code=$?
-if test $code != 0; then
- $echo "Test out-delim5(<) failed: $xx return code $code differs from expected value 0" 1>&2
- errors=`expr $errors + 1`
-else
- cmp out-delim5.O $srcdir/out-delim5.X > /dev/null 2>&1
- case $? in
- 0) if test "$VERBOSE"; then $echo "passed out-delim5(<)"; fi;;
- 1) $echo "Test out-delim5(<) failed: files out-delim5.O and $srcdir/out-delim5.X differ" 1>&2
- (diff -c out-delim5.O $srcdir/out-delim5.X) 2> /dev/null
- errors=`expr $errors + 1`;;
- 2) $echo "Test out-delim5(<) may have failed." 1>&2
- $echo The command "cmp out-delim5.O $srcdir/out-delim5.X" failed. 1>&2
- errors=`expr $errors + 1`;;
- esac
-fi
-test -s out-delim5.E || rm -f out-delim5.E
-$xx -c2,1-3 --output-d=: $srcdir/out-delim6.I > out-delim6.O 2> out-delim6.E
-code=$?
-if test $code != 0; then
- $echo "Test out-delim6(F) failed: $xx return code $code differs from expected value 0" 1>&2
- errors=`expr $errors + 1`
-else
- cmp out-delim6.O $srcdir/out-delim6.X > /dev/null 2>&1
- case $? in
- 0) if test "$VERBOSE"; then $echo "passed out-delim6(F)"; fi;;
- 1) $echo "Test out-delim6(F) failed: files out-delim6.O and $srcdir/out-delim6.X differ" 1>&2
- (diff -c out-delim6.O $srcdir/out-delim6.X) 2> /dev/null
- errors=`expr $errors + 1`;;
- 2) $echo "Test out-delim6(F) may have failed." 1>&2
- $echo The command "cmp out-delim6.O $srcdir/out-delim6.X" failed. 1>&2
- errors=`expr $errors + 1`;;
- esac
-fi
-test -s out-delim6.E || rm -f out-delim6.E
-cat $srcdir/out-delim6.I | $xx -c2,1-3 --output-d=: > out-delim6.O 2> out-delim6.E
-code=$?
-if test $code != 0; then
- $echo "Test out-delim6(|) failed: $xx return code $code differs from expected value 0" 1>&2
- errors=`expr $errors + 1`
-else
- cmp out-delim6.O $srcdir/out-delim6.X > /dev/null 2>&1
- case $? in
- 0) if test "$VERBOSE"; then $echo "passed out-delim6(|)"; fi;;
- 1) $echo "Test out-delim6(|) failed: files out-delim6.O and $srcdir/out-delim6.X differ" 1>&2
- (diff -c out-delim6.O $srcdir/out-delim6.X) 2> /dev/null
- errors=`expr $errors + 1`;;
- 2) $echo "Test out-delim6(|) may have failed." 1>&2
- $echo The command "cmp out-delim6.O $srcdir/out-delim6.X" failed. 1>&2
- errors=`expr $errors + 1`;;
- esac
-fi
-test -s out-delim6.E || rm -f out-delim6.E
-$xx -c2,1-3 --output-d=: < $srcdir/out-delim6.I > out-delim6.O 2> out-delim6.E
-code=$?
-if test $code != 0; then
- $echo "Test out-delim6(<) failed: $xx return code $code differs from expected value 0" 1>&2
- errors=`expr $errors + 1`
-else
- cmp out-delim6.O $srcdir/out-delim6.X > /dev/null 2>&1
- case $? in
- 0) if test "$VERBOSE"; then $echo "passed out-delim6(<)"; fi;;
- 1) $echo "Test out-delim6(<) failed: files out-delim6.O and $srcdir/out-delim6.X differ" 1>&2
- (diff -c out-delim6.O $srcdir/out-delim6.X) 2> /dev/null
- errors=`expr $errors + 1`;;
- 2) $echo "Test out-delim6(<) may have failed." 1>&2
- $echo The command "cmp out-delim6.O $srcdir/out-delim6.X" failed. 1>&2
- errors=`expr $errors + 1`;;
- esac
-fi
-test -s out-delim6.E || rm -f out-delim6.E
-$xx -b1-2,3-4 --output-d=: $srcdir/od-abut.I > od-abut.O 2> od-abut.E
-code=$?
-if test $code != 0; then
- $echo "Test od-abut(F) failed: $xx return code $code differs from expected value 0" 1>&2
- errors=`expr $errors + 1`
-else
- cmp od-abut.O $srcdir/od-abut.X > /dev/null 2>&1
- case $? in
- 0) if test "$VERBOSE"; then $echo "passed od-abut(F)"; fi;;
- 1) $echo "Test od-abut(F) failed: files od-abut.O and $srcdir/od-abut.X differ" 1>&2
- (diff -c od-abut.O $srcdir/od-abut.X) 2> /dev/null
- errors=`expr $errors + 1`;;
- 2) $echo "Test od-abut(F) may have failed." 1>&2
- $echo The command "cmp od-abut.O $srcdir/od-abut.X" failed. 1>&2
- errors=`expr $errors + 1`;;
- esac
-fi
-test -s od-abut.E || rm -f od-abut.E
-cat $srcdir/od-abut.I | $xx -b1-2,3-4 --output-d=: > od-abut.O 2> od-abut.E
-code=$?
-if test $code != 0; then
- $echo "Test od-abut(|) failed: $xx return code $code differs from expected value 0" 1>&2
- errors=`expr $errors + 1`
-else
- cmp od-abut.O $srcdir/od-abut.X > /dev/null 2>&1
- case $? in
- 0) if test "$VERBOSE"; then $echo "passed od-abut(|)"; fi;;
- 1) $echo "Test od-abut(|) failed: files od-abut.O and $srcdir/od-abut.X differ" 1>&2
- (diff -c od-abut.O $srcdir/od-abut.X) 2> /dev/null
- errors=`expr $errors + 1`;;
- 2) $echo "Test od-abut(|) may have failed." 1>&2
- $echo The command "cmp od-abut.O $srcdir/od-abut.X" failed. 1>&2
- errors=`expr $errors + 1`;;
- esac
-fi
-test -s od-abut.E || rm -f od-abut.E
-$xx -b1-2,3-4 --output-d=: < $srcdir/od-abut.I > od-abut.O 2> od-abut.E
-code=$?
-if test $code != 0; then
- $echo "Test od-abut(<) failed: $xx return code $code differs from expected value 0" 1>&2
- errors=`expr $errors + 1`
-else
- cmp od-abut.O $srcdir/od-abut.X > /dev/null 2>&1
- case $? in
- 0) if test "$VERBOSE"; then $echo "passed od-abut(<)"; fi;;
- 1) $echo "Test od-abut(<) failed: files od-abut.O and $srcdir/od-abut.X differ" 1>&2
- (diff -c od-abut.O $srcdir/od-abut.X) 2> /dev/null
- errors=`expr $errors + 1`;;
- 2) $echo "Test od-abut(<) may have failed." 1>&2
- $echo The command "cmp od-abut.O $srcdir/od-abut.X" failed. 1>&2
- errors=`expr $errors + 1`;;
- esac
-fi
-test -s od-abut.E || rm -f od-abut.E
-$xx -b1-2,2 --output-d=: $srcdir/od-overlap.I > od-overlap.O 2> od-overlap.E
-code=$?
-if test $code != 0; then
- $echo "Test od-overlap(F) failed: $xx return code $code differs from expected value 0" 1>&2
- errors=`expr $errors + 1`
-else
- cmp od-overlap.O $srcdir/od-overlap.X > /dev/null 2>&1
- case $? in
- 0) if test "$VERBOSE"; then $echo "passed od-overlap(F)"; fi;;
- 1) $echo "Test od-overlap(F) failed: files od-overlap.O and $srcdir/od-overlap.X differ" 1>&2
- (diff -c od-overlap.O $srcdir/od-overlap.X) 2> /dev/null
- errors=`expr $errors + 1`;;
- 2) $echo "Test od-overlap(F) may have failed." 1>&2
- $echo The command "cmp od-overlap.O $srcdir/od-overlap.X" failed. 1>&2
- errors=`expr $errors + 1`;;
- esac
-fi
-test -s od-overlap.E || rm -f od-overlap.E
-cat $srcdir/od-overlap.I | $xx -b1-2,2 --output-d=: > od-overlap.O 2> od-overlap.E
-code=$?
-if test $code != 0; then
- $echo "Test od-overlap(|) failed: $xx return code $code differs from expected value 0" 1>&2
- errors=`expr $errors + 1`
-else
- cmp od-overlap.O $srcdir/od-overlap.X > /dev/null 2>&1
- case $? in
- 0) if test "$VERBOSE"; then $echo "passed od-overlap(|)"; fi;;
- 1) $echo "Test od-overlap(|) failed: files od-overlap.O and $srcdir/od-overlap.X differ" 1>&2
- (diff -c od-overlap.O $srcdir/od-overlap.X) 2> /dev/null
- errors=`expr $errors + 1`;;
- 2) $echo "Test od-overlap(|) may have failed." 1>&2
- $echo The command "cmp od-overlap.O $srcdir/od-overlap.X" failed. 1>&2
- errors=`expr $errors + 1`;;
- esac
-fi
-test -s od-overlap.E || rm -f od-overlap.E
-$xx -b1-2,2 --output-d=: < $srcdir/od-overlap.I > od-overlap.O 2> od-overlap.E
-code=$?
-if test $code != 0; then
- $echo "Test od-overlap(<) failed: $xx return code $code differs from expected value 0" 1>&2
- errors=`expr $errors + 1`
-else
- cmp od-overlap.O $srcdir/od-overlap.X > /dev/null 2>&1
- case $? in
- 0) if test "$VERBOSE"; then $echo "passed od-overlap(<)"; fi;;
- 1) $echo "Test od-overlap(<) failed: files od-overlap.O and $srcdir/od-overlap.X differ" 1>&2
- (diff -c od-overlap.O $srcdir/od-overlap.X) 2> /dev/null
- errors=`expr $errors + 1`;;
- 2) $echo "Test od-overlap(<) may have failed." 1>&2
- $echo The command "cmp od-overlap.O $srcdir/od-overlap.X" failed. 1>&2
- errors=`expr $errors + 1`;;
- esac
-fi
-test -s od-overlap.E || rm -f od-overlap.E
-$xx -b1-2,2- --output-d=: $srcdir/od-overlap2.I > od-overlap2.O 2> od-overlap2.E
-code=$?
-if test $code != 0; then
- $echo "Test od-overlap2(F) failed: $xx return code $code differs from expected value 0" 1>&2
- errors=`expr $errors + 1`
-else
- cmp od-overlap2.O $srcdir/od-overlap2.X > /dev/null 2>&1
- case $? in
- 0) if test "$VERBOSE"; then $echo "passed od-overlap2(F)"; fi;;
- 1) $echo "Test od-overlap2(F) failed: files od-overlap2.O and $srcdir/od-overlap2.X differ" 1>&2
- (diff -c od-overlap2.O $srcdir/od-overlap2.X) 2> /dev/null
- errors=`expr $errors + 1`;;
- 2) $echo "Test od-overlap2(F) may have failed." 1>&2
- $echo The command "cmp od-overlap2.O $srcdir/od-overlap2.X" failed. 1>&2
- errors=`expr $errors + 1`;;
- esac
-fi
-test -s od-overlap2.E || rm -f od-overlap2.E
-cat $srcdir/od-overlap2.I | $xx -b1-2,2- --output-d=: > od-overlap2.O 2> od-overlap2.E
-code=$?
-if test $code != 0; then
- $echo "Test od-overlap2(|) failed: $xx return code $code differs from expected value 0" 1>&2
- errors=`expr $errors + 1`
-else
- cmp od-overlap2.O $srcdir/od-overlap2.X > /dev/null 2>&1
- case $? in
- 0) if test "$VERBOSE"; then $echo "passed od-overlap2(|)"; fi;;
- 1) $echo "Test od-overlap2(|) failed: files od-overlap2.O and $srcdir/od-overlap2.X differ" 1>&2
- (diff -c od-overlap2.O $srcdir/od-overlap2.X) 2> /dev/null
- errors=`expr $errors + 1`;;
- 2) $echo "Test od-overlap2(|) may have failed." 1>&2
- $echo The command "cmp od-overlap2.O $srcdir/od-overlap2.X" failed. 1>&2
- errors=`expr $errors + 1`;;
- esac
-fi
-test -s od-overlap2.E || rm -f od-overlap2.E
-$xx -b1-2,2- --output-d=: < $srcdir/od-overlap2.I > od-overlap2.O 2> od-overlap2.E
-code=$?
-if test $code != 0; then
- $echo "Test od-overlap2(<) failed: $xx return code $code differs from expected value 0" 1>&2
- errors=`expr $errors + 1`
-else
- cmp od-overlap2.O $srcdir/od-overlap2.X > /dev/null 2>&1
- case $? in
- 0) if test "$VERBOSE"; then $echo "passed od-overlap2(<)"; fi;;
- 1) $echo "Test od-overlap2(<) failed: files od-overlap2.O and $srcdir/od-overlap2.X differ" 1>&2
- (diff -c od-overlap2.O $srcdir/od-overlap2.X) 2> /dev/null
- errors=`expr $errors + 1`;;
- 2) $echo "Test od-overlap2(<) may have failed." 1>&2
- $echo The command "cmp od-overlap2.O $srcdir/od-overlap2.X" failed. 1>&2
- errors=`expr $errors + 1`;;
- esac
-fi
-test -s od-overlap2.E || rm -f od-overlap2.E
-$xx -b1-3,2- --output-d=: $srcdir/od-overlap3.I > od-overlap3.O 2> od-overlap3.E
-code=$?
-if test $code != 0; then
- $echo "Test od-overlap3(F) failed: $xx return code $code differs from expected value 0" 1>&2
- errors=`expr $errors + 1`
-else
- cmp od-overlap3.O $srcdir/od-overlap3.X > /dev/null 2>&1
- case $? in
- 0) if test "$VERBOSE"; then $echo "passed od-overlap3(F)"; fi;;
- 1) $echo "Test od-overlap3(F) failed: files od-overlap3.O and $srcdir/od-overlap3.X differ" 1>&2
- (diff -c od-overlap3.O $srcdir/od-overlap3.X) 2> /dev/null
- errors=`expr $errors + 1`;;
- 2) $echo "Test od-overlap3(F) may have failed." 1>&2
- $echo The command "cmp od-overlap3.O $srcdir/od-overlap3.X" failed. 1>&2
- errors=`expr $errors + 1`;;
- esac
-fi
-test -s od-overlap3.E || rm -f od-overlap3.E
-cat $srcdir/od-overlap3.I | $xx -b1-3,2- --output-d=: > od-overlap3.O 2> od-overlap3.E
-code=$?
-if test $code != 0; then
- $echo "Test od-overlap3(|) failed: $xx return code $code differs from expected value 0" 1>&2
- errors=`expr $errors + 1`
-else
- cmp od-overlap3.O $srcdir/od-overlap3.X > /dev/null 2>&1
- case $? in
- 0) if test "$VERBOSE"; then $echo "passed od-overlap3(|)"; fi;;
- 1) $echo "Test od-overlap3(|) failed: files od-overlap3.O and $srcdir/od-overlap3.X differ" 1>&2
- (diff -c od-overlap3.O $srcdir/od-overlap3.X) 2> /dev/null
- errors=`expr $errors + 1`;;
- 2) $echo "Test od-overlap3(|) may have failed." 1>&2
- $echo The command "cmp od-overlap3.O $srcdir/od-overlap3.X" failed. 1>&2
- errors=`expr $errors + 1`;;
- esac
-fi
-test -s od-overlap3.E || rm -f od-overlap3.E
-$xx -b1-3,2- --output-d=: < $srcdir/od-overlap3.I > od-overlap3.O 2> od-overlap3.E
-code=$?
-if test $code != 0; then
- $echo "Test od-overlap3(<) failed: $xx return code $code differs from expected value 0" 1>&2
- errors=`expr $errors + 1`
-else
- cmp od-overlap3.O $srcdir/od-overlap3.X > /dev/null 2>&1
- case $? in
- 0) if test "$VERBOSE"; then $echo "passed od-overlap3(<)"; fi;;
- 1) $echo "Test od-overlap3(<) failed: files od-overlap3.O and $srcdir/od-overlap3.X differ" 1>&2
- (diff -c od-overlap3.O $srcdir/od-overlap3.X) 2> /dev/null
- errors=`expr $errors + 1`;;
- 2) $echo "Test od-overlap3(<) may have failed." 1>&2
- $echo The command "cmp od-overlap3.O $srcdir/od-overlap3.X" failed. 1>&2
- errors=`expr $errors + 1`;;
- esac
-fi
-test -s od-overlap3.E || rm -f od-overlap3.E
-$xx -b1-3,2-3 --output-d=: $srcdir/od-overlap4.I > od-overlap4.O 2> od-overlap4.E
-code=$?
-if test $code != 0; then
- $echo "Test od-overlap4(F) failed: $xx return code $code differs from expected value 0" 1>&2
- errors=`expr $errors + 1`
-else
- cmp od-overlap4.O $srcdir/od-overlap4.X > /dev/null 2>&1
- case $? in
- 0) if test "$VERBOSE"; then $echo "passed od-overlap4(F)"; fi;;
- 1) $echo "Test od-overlap4(F) failed: files od-overlap4.O and $srcdir/od-overlap4.X differ" 1>&2
- (diff -c od-overlap4.O $srcdir/od-overlap4.X) 2> /dev/null
- errors=`expr $errors + 1`;;
- 2) $echo "Test od-overlap4(F) may have failed." 1>&2
- $echo The command "cmp od-overlap4.O $srcdir/od-overlap4.X" failed. 1>&2
- errors=`expr $errors + 1`;;
- esac
-fi
-test -s od-overlap4.E || rm -f od-overlap4.E
-cat $srcdir/od-overlap4.I | $xx -b1-3,2-3 --output-d=: > od-overlap4.O 2> od-overlap4.E
-code=$?
-if test $code != 0; then
- $echo "Test od-overlap4(|) failed: $xx return code $code differs from expected value 0" 1>&2
- errors=`expr $errors + 1`
-else
- cmp od-overlap4.O $srcdir/od-overlap4.X > /dev/null 2>&1
- case $? in
- 0) if test "$VERBOSE"; then $echo "passed od-overlap4(|)"; fi;;
- 1) $echo "Test od-overlap4(|) failed: files od-overlap4.O and $srcdir/od-overlap4.X differ" 1>&2
- (diff -c od-overlap4.O $srcdir/od-overlap4.X) 2> /dev/null
- errors=`expr $errors + 1`;;
- 2) $echo "Test od-overlap4(|) may have failed." 1>&2
- $echo The command "cmp od-overlap4.O $srcdir/od-overlap4.X" failed. 1>&2
- errors=`expr $errors + 1`;;
- esac
-fi
-test -s od-overlap4.E || rm -f od-overlap4.E
-$xx -b1-3,2-3 --output-d=: < $srcdir/od-overlap4.I > od-overlap4.O 2> od-overlap4.E
-code=$?
-if test $code != 0; then
- $echo "Test od-overlap4(<) failed: $xx return code $code differs from expected value 0" 1>&2
- errors=`expr $errors + 1`
-else
- cmp od-overlap4.O $srcdir/od-overlap4.X > /dev/null 2>&1
- case $? in
- 0) if test "$VERBOSE"; then $echo "passed od-overlap4(<)"; fi;;
- 1) $echo "Test od-overlap4(<) failed: files od-overlap4.O and $srcdir/od-overlap4.X differ" 1>&2
- (diff -c od-overlap4.O $srcdir/od-overlap4.X) 2> /dev/null
- errors=`expr $errors + 1`;;
- 2) $echo "Test od-overlap4(<) may have failed." 1>&2
- $echo The command "cmp od-overlap4.O $srcdir/od-overlap4.X" failed. 1>&2
- errors=`expr $errors + 1`;;
- esac
-fi
-test -s od-overlap4.E || rm -f od-overlap4.E
-$xx -b1-3,1-4 --output-d=: $srcdir/od-overlap5.I > od-overlap5.O 2> od-overlap5.E
-code=$?
-if test $code != 0; then
- $echo "Test od-overlap5(F) failed: $xx return code $code differs from expected value 0" 1>&2
- errors=`expr $errors + 1`
-else
- cmp od-overlap5.O $srcdir/od-overlap5.X > /dev/null 2>&1
- case $? in
- 0) if test "$VERBOSE"; then $echo "passed od-overlap5(F)"; fi;;
- 1) $echo "Test od-overlap5(F) failed: files od-overlap5.O and $srcdir/od-overlap5.X differ" 1>&2
- (diff -c od-overlap5.O $srcdir/od-overlap5.X) 2> /dev/null
- errors=`expr $errors + 1`;;
- 2) $echo "Test od-overlap5(F) may have failed." 1>&2
- $echo The command "cmp od-overlap5.O $srcdir/od-overlap5.X" failed. 1>&2
- errors=`expr $errors + 1`;;
- esac
-fi
-test -s od-overlap5.E || rm -f od-overlap5.E
-cat $srcdir/od-overlap5.I | $xx -b1-3,1-4 --output-d=: > od-overlap5.O 2> od-overlap5.E
-code=$?
-if test $code != 0; then
- $echo "Test od-overlap5(|) failed: $xx return code $code differs from expected value 0" 1>&2
- errors=`expr $errors + 1`
-else
- cmp od-overlap5.O $srcdir/od-overlap5.X > /dev/null 2>&1
- case $? in
- 0) if test "$VERBOSE"; then $echo "passed od-overlap5(|)"; fi;;
- 1) $echo "Test od-overlap5(|) failed: files od-overlap5.O and $srcdir/od-overlap5.X differ" 1>&2
- (diff -c od-overlap5.O $srcdir/od-overlap5.X) 2> /dev/null
- errors=`expr $errors + 1`;;
- 2) $echo "Test od-overlap5(|) may have failed." 1>&2
- $echo The command "cmp od-overlap5.O $srcdir/od-overlap5.X" failed. 1>&2
- errors=`expr $errors + 1`;;
- esac
-fi
-test -s od-overlap5.E || rm -f od-overlap5.E
-$xx -b1-3,1-4 --output-d=: < $srcdir/od-overlap5.I > od-overlap5.O 2> od-overlap5.E
-code=$?
-if test $code != 0; then
- $echo "Test od-overlap5(<) failed: $xx return code $code differs from expected value 0" 1>&2
- errors=`expr $errors + 1`
-else
- cmp od-overlap5.O $srcdir/od-overlap5.X > /dev/null 2>&1
- case $? in
- 0) if test "$VERBOSE"; then $echo "passed od-overlap5(<)"; fi;;
- 1) $echo "Test od-overlap5(<) failed: files od-overlap5.O and $srcdir/od-overlap5.X differ" 1>&2
- (diff -c od-overlap5.O $srcdir/od-overlap5.X) 2> /dev/null
- errors=`expr $errors + 1`;;
- 2) $echo "Test od-overlap5(<) may have failed." 1>&2
- $echo The command "cmp od-overlap5.O $srcdir/od-overlap5.X" failed. 1>&2
- errors=`expr $errors + 1`;;
- esac
-fi
-test -s od-overlap5.E || rm -f od-overlap5.E
-if test $errors = 0; then
- $echo Passed all 171 tests. 1>&2
-else
- $echo Failed $errors tests. 1>&2
-fi
-test $errors = 0 || errors=1
-exit $errors
diff --git a/tests/cut/d.I b/tests/cut/d.I
deleted file mode 100644
index c997d50..0000000
--- a/tests/cut/d.I
+++ /dev/null
@@ -1 +0,0 @@
-a:b:c:
diff --git a/tests/cut/d.X b/tests/cut/d.X
deleted file mode 100644
index 7098509..0000000
--- a/tests/cut/d.X
+++ /dev/null
@@ -1 +0,0 @@
-a:c
diff --git a/tests/cut/e.I b/tests/cut/e.I
deleted file mode 100644
index c997d50..0000000
--- a/tests/cut/e.I
+++ /dev/null
@@ -1 +0,0 @@
-a:b:c:
diff --git a/tests/cut/e.X b/tests/cut/e.X
deleted file mode 100644
index b3112be..0000000
--- a/tests/cut/e.X
+++ /dev/null
@@ -1 +0,0 @@
-c:
diff --git a/tests/cut/empty-bl.I b/tests/cut/empty-bl.I
deleted file mode 100644
index 397db75..0000000
--- a/tests/cut/empty-bl.I
+++ /dev/null
@@ -1 +0,0 @@
-:
diff --git a/tests/cut/empty-bl.X b/tests/cut/empty-bl.X
deleted file mode 100644
index e69de29..0000000
--- a/tests/cut/empty-bl.X
+++ /dev/null
diff --git a/tests/cut/empty-f1.I b/tests/cut/empty-f1.I
deleted file mode 100644
index e69de29..0000000
--- a/tests/cut/empty-f1.I
+++ /dev/null
diff --git a/tests/cut/empty-f1.X b/tests/cut/empty-f1.X
deleted file mode 100644
index e69de29..0000000
--- a/tests/cut/empty-f1.X
+++ /dev/null
diff --git a/tests/cut/empty-f2.I b/tests/cut/empty-f2.I
deleted file mode 100644
index e69de29..0000000
--- a/tests/cut/empty-f2.I
+++ /dev/null
diff --git a/tests/cut/empty-f2.X b/tests/cut/empty-f2.X
deleted file mode 100644
index e69de29..0000000
--- a/tests/cut/empty-f2.X
+++ /dev/null
diff --git a/tests/cut/empty-fl.I b/tests/cut/empty-fl.I
deleted file mode 100644
index 397db75..0000000
--- a/tests/cut/empty-fl.I
+++ /dev/null
@@ -1 +0,0 @@
-:
diff --git a/tests/cut/empty-fl.X b/tests/cut/empty-fl.X
deleted file mode 100644
index e69de29..0000000
--- a/tests/cut/empty-fl.X
+++ /dev/null
diff --git a/tests/cut/f.I b/tests/cut/f.I
deleted file mode 100644
index c997d50..0000000
--- a/tests/cut/f.I
+++ /dev/null
@@ -1 +0,0 @@
-a:b:c:
diff --git a/tests/cut/f.X b/tests/cut/f.X
deleted file mode 100644
index b3112be..0000000
--- a/tests/cut/f.X
+++ /dev/null
@@ -1 +0,0 @@
-c:
diff --git a/tests/cut/g.I b/tests/cut/g.I
deleted file mode 100644
index c997d50..0000000
--- a/tests/cut/g.I
+++ /dev/null
@@ -1 +0,0 @@
-a:b:c:
diff --git a/tests/cut/g.X b/tests/cut/g.X
deleted file mode 100644
index b3112be..0000000
--- a/tests/cut/g.X
+++ /dev/null
@@ -1 +0,0 @@
-c:
diff --git a/tests/cut/h.I b/tests/cut/h.I
deleted file mode 100644
index 8baef1b..0000000
--- a/tests/cut/h.I
+++ /dev/null
@@ -1 +0,0 @@
-abc
diff --git a/tests/cut/h.X b/tests/cut/h.X
deleted file mode 100644
index e69de29..0000000
--- a/tests/cut/h.X
+++ /dev/null
diff --git a/tests/cut/i.I b/tests/cut/i.I
deleted file mode 100644
index 2d2bfd3..0000000
--- a/tests/cut/i.I
+++ /dev/null
@@ -1 +0,0 @@
-:::
diff --git a/tests/cut/i.X b/tests/cut/i.X
deleted file mode 100644
index bef3763..0000000
--- a/tests/cut/i.X
+++ /dev/null
@@ -1 +0,0 @@
-::
diff --git a/tests/cut/j.I b/tests/cut/j.I
deleted file mode 100644
index 2d2bfd3..0000000
--- a/tests/cut/j.I
+++ /dev/null
@@ -1 +0,0 @@
-:::
diff --git a/tests/cut/j.X b/tests/cut/j.X
deleted file mode 100644
index 2d2bfd3..0000000
--- a/tests/cut/j.X
+++ /dev/null
@@ -1 +0,0 @@
-:::
diff --git a/tests/cut/k.I b/tests/cut/k.I
deleted file mode 100644
index 2d2bfd3..0000000
--- a/tests/cut/k.I
+++ /dev/null
@@ -1 +0,0 @@
-:::
diff --git a/tests/cut/k.X b/tests/cut/k.X
deleted file mode 100644
index 397db75..0000000
--- a/tests/cut/k.X
+++ /dev/null
@@ -1 +0,0 @@
-:
diff --git a/tests/cut/l.I b/tests/cut/l.I
deleted file mode 100644
index 2d2bfd3..0000000
--- a/tests/cut/l.I
+++ /dev/null
@@ -1 +0,0 @@
-:::
diff --git a/tests/cut/l.X b/tests/cut/l.X
deleted file mode 100644
index bef3763..0000000
--- a/tests/cut/l.X
+++ /dev/null
@@ -1 +0,0 @@
-::
diff --git a/tests/cut/m.I b/tests/cut/m.I
deleted file mode 100644
index 2d2bfd3..0000000
--- a/tests/cut/m.I
+++ /dev/null
@@ -1 +0,0 @@
-:::
diff --git a/tests/cut/m.X b/tests/cut/m.X
deleted file mode 100644
index bef3763..0000000
--- a/tests/cut/m.X
+++ /dev/null
@@ -1 +0,0 @@
-::
diff --git a/tests/cut/missing-bl.I b/tests/cut/missing-bl.I
deleted file mode 100644
index 397db75..0000000
--- a/tests/cut/missing-bl.I
+++ /dev/null
@@ -1 +0,0 @@
-:
diff --git a/tests/cut/missing-bl.X b/tests/cut/missing-bl.X
deleted file mode 100644
index e69de29..0000000
--- a/tests/cut/missing-bl.X
+++ /dev/null
diff --git a/tests/cut/missing-fl.I b/tests/cut/missing-fl.I
deleted file mode 100644
index 397db75..0000000
--- a/tests/cut/missing-fl.I
+++ /dev/null
@@ -1 +0,0 @@
-:
diff --git a/tests/cut/missing-fl.X b/tests/cut/missing-fl.X
deleted file mode 100644
index e69de29..0000000
--- a/tests/cut/missing-fl.X
+++ /dev/null
diff --git a/tests/cut/multichar-od.I b/tests/cut/multichar-od.I
deleted file mode 100644
index af0abb2..0000000
--- a/tests/cut/multichar-od.I
+++ /dev/null
@@ -1 +0,0 @@
-a:b:c
diff --git a/tests/cut/multichar-od.X b/tests/cut/multichar-od.X
deleted file mode 100644
index c345002..0000000
--- a/tests/cut/multichar-od.X
+++ /dev/null
@@ -1 +0,0 @@
-b_._c
diff --git a/tests/cut/n.I b/tests/cut/n.I
deleted file mode 100644
index 2d2bfd3..0000000
--- a/tests/cut/n.I
+++ /dev/null
@@ -1 +0,0 @@
-:::
diff --git a/tests/cut/n.X b/tests/cut/n.X
deleted file mode 100644
index 2d2bfd3..0000000
--- a/tests/cut/n.X
+++ /dev/null
@@ -1 +0,0 @@
-:::
diff --git a/tests/cut/nul-idelim.I b/tests/cut/nul-idelim.I
deleted file mode 100644
index 5892d4f..0000000
--- a/tests/cut/nul-idelim.I
+++ /dev/null
Binary files differ
diff --git a/tests/cut/nul-idelim.X b/tests/cut/nul-idelim.X
deleted file mode 100644
index 01b7680..0000000
--- a/tests/cut/nul-idelim.X
+++ /dev/null
@@ -1 +0,0 @@
-b_c
diff --git a/tests/cut/nul-odelim.I b/tests/cut/nul-odelim.I
deleted file mode 100644
index af0abb2..0000000
--- a/tests/cut/nul-odelim.I
+++ /dev/null
@@ -1 +0,0 @@
-a:b:c
diff --git a/tests/cut/nul-odelim.X b/tests/cut/nul-odelim.X
deleted file mode 100644
index ef4b99c..0000000
--- a/tests/cut/nul-odelim.X
+++ /dev/null
Binary files differ
diff --git a/tests/cut/o-delim.I b/tests/cut/o-delim.I
deleted file mode 100644
index af0abb2..0000000
--- a/tests/cut/o-delim.I
+++ /dev/null
@@ -1 +0,0 @@
-a:b:c
diff --git a/tests/cut/o-delim.X b/tests/cut/o-delim.X
deleted file mode 100644
index 01b7680..0000000
--- a/tests/cut/o-delim.X
+++ /dev/null
@@ -1 +0,0 @@
-b_c
diff --git a/tests/cut/o.I b/tests/cut/o.I
deleted file mode 100644
index 2d2bfd3..0000000
--- a/tests/cut/o.I
+++ /dev/null
@@ -1 +0,0 @@
-:::
diff --git a/tests/cut/o.X b/tests/cut/o.X
deleted file mode 100644
index 397db75..0000000
--- a/tests/cut/o.X
+++ /dev/null
@@ -1 +0,0 @@
-:
diff --git a/tests/cut/od-abut.I b/tests/cut/od-abut.I
deleted file mode 100644
index acbe86c..0000000
--- a/tests/cut/od-abut.I
+++ /dev/null
@@ -1 +0,0 @@
-abcd
diff --git a/tests/cut/od-abut.X b/tests/cut/od-abut.X
deleted file mode 100644
index 9f61020..0000000
--- a/tests/cut/od-abut.X
+++ /dev/null
@@ -1 +0,0 @@
-ab:cd
diff --git a/tests/cut/od-overlap.I b/tests/cut/od-overlap.I
deleted file mode 100644
index 8baef1b..0000000
--- a/tests/cut/od-overlap.I
+++ /dev/null
@@ -1 +0,0 @@
-abc
diff --git a/tests/cut/od-overlap.X b/tests/cut/od-overlap.X
deleted file mode 100644
index 81bf396..0000000
--- a/tests/cut/od-overlap.X
+++ /dev/null
@@ -1 +0,0 @@
-ab
diff --git a/tests/cut/od-overlap2.I b/tests/cut/od-overlap2.I
deleted file mode 100644
index 8baef1b..0000000
--- a/tests/cut/od-overlap2.I
+++ /dev/null
@@ -1 +0,0 @@
-abc
diff --git a/tests/cut/od-overlap2.X b/tests/cut/od-overlap2.X
deleted file mode 100644
index 8baef1b..0000000
--- a/tests/cut/od-overlap2.X
+++ /dev/null
@@ -1 +0,0 @@
-abc
diff --git a/tests/cut/od-overlap3.I b/tests/cut/od-overlap3.I
deleted file mode 100644
index acbe86c..0000000
--- a/tests/cut/od-overlap3.I
+++ /dev/null
@@ -1 +0,0 @@
-abcd
diff --git a/tests/cut/od-overlap3.X b/tests/cut/od-overlap3.X
deleted file mode 100644
index acbe86c..0000000
--- a/tests/cut/od-overlap3.X
+++ /dev/null
@@ -1 +0,0 @@
-abcd
diff --git a/tests/cut/od-overlap4.I b/tests/cut/od-overlap4.I
deleted file mode 100644
index acbe86c..0000000
--- a/tests/cut/od-overlap4.I
+++ /dev/null
@@ -1 +0,0 @@
-abcd
diff --git a/tests/cut/od-overlap4.X b/tests/cut/od-overlap4.X
deleted file mode 100644
index 8baef1b..0000000
--- a/tests/cut/od-overlap4.X
+++ /dev/null
@@ -1 +0,0 @@
-abc
diff --git a/tests/cut/od-overlap5.I b/tests/cut/od-overlap5.I
deleted file mode 100644
index 00dedf6..0000000
--- a/tests/cut/od-overlap5.I
+++ /dev/null
@@ -1 +0,0 @@
-abcde
diff --git a/tests/cut/od-overlap5.X b/tests/cut/od-overlap5.X
deleted file mode 100644
index acbe86c..0000000
--- a/tests/cut/od-overlap5.X
+++ /dev/null
@@ -1 +0,0 @@
-abcd
diff --git a/tests/cut/out-delim1.I b/tests/cut/out-delim1.I
deleted file mode 100644
index b5b9ef6..0000000
--- a/tests/cut/out-delim1.I
+++ /dev/null
@@ -1 +0,0 @@
-abcdefg
diff --git a/tests/cut/out-delim1.X b/tests/cut/out-delim1.X
deleted file mode 100644
index 5f776fc..0000000
--- a/tests/cut/out-delim1.X
+++ /dev/null
@@ -1 +0,0 @@
-abc:efg
diff --git a/tests/cut/out-delim2.I b/tests/cut/out-delim2.I
deleted file mode 100644
index b5b9ef6..0000000
--- a/tests/cut/out-delim2.I
+++ /dev/null
@@ -1 +0,0 @@
-abcdefg
diff --git a/tests/cut/out-delim2.X b/tests/cut/out-delim2.X
deleted file mode 100644
index 5f776fc..0000000
--- a/tests/cut/out-delim2.X
+++ /dev/null
@@ -1 +0,0 @@
-abc:efg
diff --git a/tests/cut/out-delim3.I b/tests/cut/out-delim3.I
deleted file mode 100644
index b5b9ef6..0000000
--- a/tests/cut/out-delim3.I
+++ /dev/null
@@ -1 +0,0 @@
-abcdefg
diff --git a/tests/cut/out-delim3.X b/tests/cut/out-delim3.X
deleted file mode 100644
index 0ba7adf..0000000
--- a/tests/cut/out-delim3.X
+++ /dev/null
@@ -1 +0,0 @@
-abcd:f
diff --git a/tests/cut/out-delim3a.I b/tests/cut/out-delim3a.I
deleted file mode 100644
index b5b9ef6..0000000
--- a/tests/cut/out-delim3a.I
+++ /dev/null
@@ -1 +0,0 @@
-abcdefg
diff --git a/tests/cut/out-delim3a.X b/tests/cut/out-delim3a.X
deleted file mode 100644
index 0d93097..0000000
--- a/tests/cut/out-delim3a.X
+++ /dev/null
@@ -1 +0,0 @@
-abcd:fg
diff --git a/tests/cut/out-delim4.I b/tests/cut/out-delim4.I
deleted file mode 100644
index b5b9ef6..0000000
--- a/tests/cut/out-delim4.I
+++ /dev/null
@@ -1 +0,0 @@
-abcdefg
diff --git a/tests/cut/out-delim4.X b/tests/cut/out-delim4.X
deleted file mode 100644
index 3478d45..0000000
--- a/tests/cut/out-delim4.X
+++ /dev/null
@@ -1 +0,0 @@
-bc:defg
diff --git a/tests/cut/out-delim5.I b/tests/cut/out-delim5.I
deleted file mode 100644
index b5b9ef6..0000000
--- a/tests/cut/out-delim5.I
+++ /dev/null
@@ -1 +0,0 @@
-abcdefg
diff --git a/tests/cut/out-delim5.X b/tests/cut/out-delim5.X
deleted file mode 100644
index 3478d45..0000000
--- a/tests/cut/out-delim5.X
+++ /dev/null
@@ -1 +0,0 @@
-bc:defg
diff --git a/tests/cut/out-delim6.I b/tests/cut/out-delim6.I
deleted file mode 100644
index 8baef1b..0000000
--- a/tests/cut/out-delim6.I
+++ /dev/null
@@ -1 +0,0 @@
-abc
diff --git a/tests/cut/out-delim6.X b/tests/cut/out-delim6.X
deleted file mode 100644
index 8baef1b..0000000
--- a/tests/cut/out-delim6.X
+++ /dev/null
@@ -1 +0,0 @@
-abc
diff --git a/tests/cut/p.I b/tests/cut/p.I
deleted file mode 100644
index 2d2bfd3..0000000
--- a/tests/cut/p.I
+++ /dev/null
@@ -1 +0,0 @@
-:::
diff --git a/tests/cut/p.X b/tests/cut/p.X
deleted file mode 100644
index bef3763..0000000
--- a/tests/cut/p.X
+++ /dev/null
@@ -1 +0,0 @@
-::
diff --git a/tests/cut/q.I b/tests/cut/q.I
deleted file mode 100644
index 23a7be9..0000000
--- a/tests/cut/q.I
+++ /dev/null
@@ -1,2 +0,0 @@
-:::
-:
diff --git a/tests/cut/q.X b/tests/cut/q.X
deleted file mode 100644
index 3044d1f..0000000
--- a/tests/cut/q.X
+++ /dev/null
@@ -1,2 +0,0 @@
-::
-
diff --git a/tests/cut/r.I b/tests/cut/r.I
deleted file mode 100644
index cd58b76..0000000
--- a/tests/cut/r.I
+++ /dev/null
@@ -1,2 +0,0 @@
-:::
-:1
diff --git a/tests/cut/r.X b/tests/cut/r.X
deleted file mode 100644
index 6218391..0000000
--- a/tests/cut/r.X
+++ /dev/null
@@ -1,2 +0,0 @@
-::
-1
diff --git a/tests/cut/s.I b/tests/cut/s.I
deleted file mode 100644
index 44d25e6..0000000
--- a/tests/cut/s.I
+++ /dev/null
@@ -1,2 +0,0 @@
-:::
-:a
diff --git a/tests/cut/s.X b/tests/cut/s.X
deleted file mode 100644
index 44d25e6..0000000
--- a/tests/cut/s.X
+++ /dev/null
@@ -1,2 +0,0 @@
-:::
-:a
diff --git a/tests/cut/t.I b/tests/cut/t.I
deleted file mode 100644
index cd58b76..0000000
--- a/tests/cut/t.I
+++ /dev/null
@@ -1,2 +0,0 @@
-:::
-:1
diff --git a/tests/cut/t.X b/tests/cut/t.X
deleted file mode 100644
index 8710642..0000000
--- a/tests/cut/t.X
+++ /dev/null
@@ -1,2 +0,0 @@
-:
-
diff --git a/tests/cut/u.I b/tests/cut/u.I
deleted file mode 100644
index e69de29..0000000
--- a/tests/cut/u.I
+++ /dev/null
diff --git a/tests/cut/u.X b/tests/cut/u.X
deleted file mode 100644
index e69de29..0000000
--- a/tests/cut/u.X
+++ /dev/null
diff --git a/tests/cut/v.I b/tests/cut/v.I
deleted file mode 100644
index e69de29..0000000
--- a/tests/cut/v.I
+++ /dev/null
diff --git a/tests/cut/v.X b/tests/cut/v.X
deleted file mode 100644
index e69de29..0000000
--- a/tests/cut/v.X
+++ /dev/null
diff --git a/tests/cut/w.I b/tests/cut/w.I
deleted file mode 100644
index e69de29..0000000
--- a/tests/cut/w.I
+++ /dev/null
diff --git a/tests/cut/w.X b/tests/cut/w.X
deleted file mode 100644
index e69de29..0000000
--- a/tests/cut/w.X
+++ /dev/null
diff --git a/tests/cut/x.I b/tests/cut/x.I
deleted file mode 100644
index 397db75..0000000
--- a/tests/cut/x.I
+++ /dev/null
@@ -1 +0,0 @@
-:
diff --git a/tests/cut/x.X b/tests/cut/x.X
deleted file mode 100644
index 8b13789..0000000
--- a/tests/cut/x.X
+++ /dev/null
@@ -1 +0,0 @@
-
diff --git a/tests/cut/y.I b/tests/cut/y.I
deleted file mode 100644
index 397db75..0000000
--- a/tests/cut/y.I
+++ /dev/null
@@ -1 +0,0 @@
-:
diff --git a/tests/cut/y.X b/tests/cut/y.X
deleted file mode 100644
index e69de29..0000000
--- a/tests/cut/y.X
+++ /dev/null
diff --git a/tests/cut/z.I b/tests/cut/z.I
deleted file mode 100644
index 397db75..0000000
--- a/tests/cut/z.I
+++ /dev/null
@@ -1 +0,0 @@
-:
diff --git a/tests/cut/z.X b/tests/cut/z.X
deleted file mode 100644
index e69de29..0000000
--- a/tests/cut/z.X
+++ /dev/null
diff --git a/tests/d_type-check b/tests/d_type-check
new file mode 100644
index 0000000..1a2f76f
--- /dev/null
+++ b/tests/d_type-check
@@ -0,0 +1,69 @@
+#!/usr/bin/python
+# Exit 0 if "." and "./tempfile" have useful d_type information, else 1.
+# Intended to exit 0 only on Linux/GNU systems.
+import os
+import sys
+import tempfile
+
+fail = 1
+fname = None
+
+try:
+ import ctypes.util
+
+ (DT_UNKNOWN, DT_DIR, DT_REG) = (0, 4, 8)
+
+ class dirent(ctypes.Structure):
+ _fields_ = [
+ ("d_ino", ctypes.c_long),
+ ("d_off", ctypes.c_long),
+ ("d_reclen", ctypes.c_ushort),
+ ("d_type", ctypes.c_ubyte),
+ ("d_name", ctypes.c_char*256)]
+
+ # Pass NULL to dlopen, assuming the python
+ # interpreter is linked with the C runtime
+ libc = ctypes.CDLL(None)
+
+ # Setup correct types for all args and returns
+ # even if only passing, to avoid truncation etc.
+ dirp = ctypes.c_void_p
+ direntp = ctypes.POINTER(dirent)
+
+ libc.readdir.argtypes = [dirp]
+ libc.readdir.restype = direntp
+
+ libc.opendir.restype = dirp
+
+ # Ensure a file is present
+ f, fname = tempfile.mkstemp(dir='.')
+ fname = os.path.basename(fname)
+
+ dirp = libc.opendir(".")
+ if dirp:
+ while True:
+ ep = libc.readdir(dirp)
+ if not ep: break
+ d_type = ep.contents.d_type
+ name = ep.contents.d_name
+ if name == "." or name == "..":
+ if d_type != DT_DIR: break
+ # Check files too since on XFS, only dirs have DT_DIR
+ # while everything else has DT_UNKNOWN
+ elif name == fname:
+ if d_type == DT_REG:
+ fail = 0
+ break
+ elif d_type != DT_DIR and d_type != DT_UNKNOWN:
+ fail = 0
+ break
+except:
+ pass
+
+try:
+ if fname:
+ os.unlink(fname);
+except:
+ pass
+
+sys.exit(fail)
diff --git a/tests/dd/Makefile.am b/tests/dd/Makefile.am
deleted file mode 100644
index 91ba05d..0000000
--- a/tests/dd/Makefile.am
+++ /dev/null
@@ -1,13 +0,0 @@
-## Process this file with automake to produce Makefile.in -*-Makefile-*-.
-
-EXTRA_DIST = $(TESTS)
-
-TESTS_ENVIRONMENT = \
- top_srcdir=$(top_srcdir) \
- srcdir=$(srcdir) \
- PERL="$(PERL)" \
- CU_TEST_NAME=`basename $(abs_srcdir)`,$$tst \
- PATH="$(VG_PATH_PREFIX)`pwd`/../../src$(PATH_SEPARATOR)$$PATH" \
- PROG=dd
-
-TESTS = misc not-rewound skip-seek skip-seek2 unblock-sync
diff --git a/tests/dd/Makefile.in b/tests/dd/Makefile.in
deleted file mode 100644
index f76aae6..0000000
--- a/tests/dd/Makefile.in
+++ /dev/null
@@ -1,720 +0,0 @@
-# Makefile.in generated by automake 1.10 from Makefile.am.
-# @configure_input@
-
-# Copyright (C) 1994, 1995, 1996, 1997, 1998, 1999, 2000, 2001, 2002,
-# 2003, 2004, 2005, 2006 Free Software Foundation, Inc.
-# This Makefile.in is free software; the Free Software Foundation
-# gives unlimited permission to copy and/or distribute it,
-# with or without modifications, as long as this notice is preserved.
-
-# This program is distributed in the hope that it will be useful,
-# but WITHOUT ANY WARRANTY, to the extent permitted by law; without
-# even the implied warranty of MERCHANTABILITY or FITNESS FOR A
-# PARTICULAR PURPOSE.
-
-@SET_MAKE@
-VPATH = @srcdir@
-pkgdatadir = $(datadir)/@PACKAGE@
-pkglibdir = $(libdir)/@PACKAGE@
-pkgincludedir = $(includedir)/@PACKAGE@
-am__cd = CDPATH="$${ZSH_VERSION+.}$(PATH_SEPARATOR)" && cd
-install_sh_DATA = $(install_sh) -c -m 644
-install_sh_PROGRAM = $(install_sh) -c
-install_sh_SCRIPT = $(install_sh) -c
-INSTALL_HEADER = $(INSTALL_DATA)
-transform = $(program_transform_name)
-NORMAL_INSTALL = :
-PRE_INSTALL = :
-POST_INSTALL = :
-NORMAL_UNINSTALL = :
-PRE_UNINSTALL = :
-POST_UNINSTALL = :
-build_triplet = @build@
-host_triplet = @host@
-subdir = tests/dd
-DIST_COMMON = $(srcdir)/Makefile.am $(srcdir)/Makefile.in
-ACLOCAL_M4 = $(top_srcdir)/aclocal.m4
-am__aclocal_m4_deps = $(top_srcdir)/m4/absolute-header.m4 \
- $(top_srcdir)/m4/acl.m4 $(top_srcdir)/m4/alloca.m4 \
- $(top_srcdir)/m4/allocsa.m4 $(top_srcdir)/m4/argmatch.m4 \
- $(top_srcdir)/m4/arpa_inet_h.m4 $(top_srcdir)/m4/assert.m4 \
- $(top_srcdir)/m4/atexit.m4 $(top_srcdir)/m4/autobuild.m4 \
- $(top_srcdir)/m4/backupfile.m4 $(top_srcdir)/m4/base64.m4 \
- $(top_srcdir)/m4/bison.m4 $(top_srcdir)/m4/boottime.m4 \
- $(top_srcdir)/m4/c-strtod.m4 $(top_srcdir)/m4/calloc.m4 \
- $(top_srcdir)/m4/canon-host.m4 \
- $(top_srcdir)/m4/canonicalize.m4 \
- $(top_srcdir)/m4/chdir-long.m4 $(top_srcdir)/m4/check-decl.m4 \
- $(top_srcdir)/m4/chown.m4 $(top_srcdir)/m4/clock_time.m4 \
- $(top_srcdir)/m4/cloexec.m4 $(top_srcdir)/m4/close-stream.m4 \
- $(top_srcdir)/m4/closeout.m4 $(top_srcdir)/m4/codeset.m4 \
- $(top_srcdir)/m4/config-h.m4 $(top_srcdir)/m4/cycle-check.m4 \
- $(top_srcdir)/m4/d-ino.m4 $(top_srcdir)/m4/d-type.m4 \
- $(top_srcdir)/m4/dirfd.m4 $(top_srcdir)/m4/dirname.m4 \
- $(top_srcdir)/m4/dos.m4 $(top_srcdir)/m4/double-slash-root.m4 \
- $(top_srcdir)/m4/dup2.m4 $(top_srcdir)/m4/eealloc.m4 \
- $(top_srcdir)/m4/eoverflow.m4 $(top_srcdir)/m4/error.m4 \
- $(top_srcdir)/m4/euidaccess-stat.m4 \
- $(top_srcdir)/m4/euidaccess.m4 $(top_srcdir)/m4/exclude.m4 \
- $(top_srcdir)/m4/exitfail.m4 $(top_srcdir)/m4/extensions.m4 \
- $(top_srcdir)/m4/fchdir.m4 $(top_srcdir)/m4/fcntl-safer.m4 \
- $(top_srcdir)/m4/fcntl_h.m4 $(top_srcdir)/m4/fd-reopen.m4 \
- $(top_srcdir)/m4/file-type.m4 $(top_srcdir)/m4/fileblocks.m4 \
- $(top_srcdir)/m4/filemode.m4 $(top_srcdir)/m4/filenamecat.m4 \
- $(top_srcdir)/m4/flexmember.m4 $(top_srcdir)/m4/fnmatch.m4 \
- $(top_srcdir)/m4/fpending.m4 $(top_srcdir)/m4/fprintftime.m4 \
- $(top_srcdir)/m4/free.m4 $(top_srcdir)/m4/fstypename.m4 \
- $(top_srcdir)/m4/fsusage.m4 $(top_srcdir)/m4/ftruncate.m4 \
- $(top_srcdir)/m4/fts.m4 $(top_srcdir)/m4/getaddrinfo.m4 \
- $(top_srcdir)/m4/getcwd-abort-bug.m4 \
- $(top_srcdir)/m4/getcwd-path-max.m4 $(top_srcdir)/m4/getcwd.m4 \
- $(top_srcdir)/m4/getdate.m4 $(top_srcdir)/m4/getdelim.m4 \
- $(top_srcdir)/m4/getgroups.m4 $(top_srcdir)/m4/gethostname.m4 \
- $(top_srcdir)/m4/gethrxtime.m4 $(top_srcdir)/m4/getline.m4 \
- $(top_srcdir)/m4/getloadavg.m4 $(top_srcdir)/m4/getndelim2.m4 \
- $(top_srcdir)/m4/getopt.m4 $(top_srcdir)/m4/getpagesize.m4 \
- $(top_srcdir)/m4/getpass.m4 $(top_srcdir)/m4/gettext.m4 \
- $(top_srcdir)/m4/gettime.m4 $(top_srcdir)/m4/gettimeofday.m4 \
- $(top_srcdir)/m4/getugroups.m4 \
- $(top_srcdir)/m4/getusershell.m4 $(top_srcdir)/m4/glibc21.m4 \
- $(top_srcdir)/m4/gnulib-common.m4 \
- $(top_srcdir)/m4/gnulib-comp.m4 \
- $(top_srcdir)/m4/group-member.m4 \
- $(top_srcdir)/m4/hard-locale.m4 $(top_srcdir)/m4/hash.m4 \
- $(top_srcdir)/m4/host-os.m4 $(top_srcdir)/m4/human.m4 \
- $(top_srcdir)/m4/i-ring.m4 $(top_srcdir)/m4/iconv.m4 \
- $(top_srcdir)/m4/idcache.m4 $(top_srcdir)/m4/inet_ntop.m4 \
- $(top_srcdir)/m4/inline.m4 $(top_srcdir)/m4/intmax_t.m4 \
- $(top_srcdir)/m4/inttostr.m4 $(top_srcdir)/m4/inttypes-pri.m4 \
- $(top_srcdir)/m4/inttypes.m4 $(top_srcdir)/m4/inttypes_h.m4 \
- $(top_srcdir)/m4/isapipe.m4 $(top_srcdir)/m4/jm-macros.m4 \
- $(top_srcdir)/m4/jm-winsz1.m4 $(top_srcdir)/m4/jm-winsz2.m4 \
- $(top_srcdir)/m4/lchmod.m4 $(top_srcdir)/m4/lchown.m4 \
- $(top_srcdir)/m4/lib-check.m4 $(top_srcdir)/m4/lib-ignore.m4 \
- $(top_srcdir)/m4/lib-ld.m4 $(top_srcdir)/m4/lib-link.m4 \
- $(top_srcdir)/m4/lib-prefix.m4 $(top_srcdir)/m4/link-follow.m4 \
- $(top_srcdir)/m4/localcharset.m4 \
- $(top_srcdir)/m4/long-options.m4 \
- $(top_srcdir)/m4/longdouble.m4 $(top_srcdir)/m4/longlong.m4 \
- $(top_srcdir)/m4/ls-mntd-fs.m4 $(top_srcdir)/m4/lstat.m4 \
- $(top_srcdir)/m4/mbchar.m4 $(top_srcdir)/m4/mbiter.m4 \
- $(top_srcdir)/m4/mbrtowc.m4 $(top_srcdir)/m4/mbscasecmp.m4 \
- $(top_srcdir)/m4/mbstate_t.m4 $(top_srcdir)/m4/mbswidth.m4 \
- $(top_srcdir)/m4/md5.m4 $(top_srcdir)/m4/memcasecmp.m4 \
- $(top_srcdir)/m4/memchr.m4 $(top_srcdir)/m4/memcmp.m4 \
- $(top_srcdir)/m4/memcoll.m4 $(top_srcdir)/m4/memcpy.m4 \
- $(top_srcdir)/m4/memmove.m4 $(top_srcdir)/m4/mempcpy.m4 \
- $(top_srcdir)/m4/memrchr.m4 $(top_srcdir)/m4/memset.m4 \
- $(top_srcdir)/m4/memxfrm.m4 $(top_srcdir)/m4/mkancesdirs.m4 \
- $(top_srcdir)/m4/mkdir-p.m4 $(top_srcdir)/m4/mkdir-slash.m4 \
- $(top_srcdir)/m4/mkstemp.m4 $(top_srcdir)/m4/mktime.m4 \
- $(top_srcdir)/m4/modechange.m4 $(top_srcdir)/m4/mountlist.m4 \
- $(top_srcdir)/m4/mpsort.m4 $(top_srcdir)/m4/nanosleep.m4 \
- $(top_srcdir)/m4/netinet_in_h.m4 $(top_srcdir)/m4/nls.m4 \
- $(top_srcdir)/m4/openat.m4 $(top_srcdir)/m4/pathmax.m4 \
- $(top_srcdir)/m4/perl.m4 $(top_srcdir)/m4/physmem.m4 \
- $(top_srcdir)/m4/po.m4 $(top_srcdir)/m4/posixtm.m4 \
- $(top_srcdir)/m4/posixver.m4 $(top_srcdir)/m4/prereq.m4 \
- $(top_srcdir)/m4/progtest.m4 $(top_srcdir)/m4/putenv.m4 \
- $(top_srcdir)/m4/quote.m4 $(top_srcdir)/m4/quotearg.m4 \
- $(top_srcdir)/m4/randint.m4 $(top_srcdir)/m4/randperm.m4 \
- $(top_srcdir)/m4/randread.m4 $(top_srcdir)/m4/readlink.m4 \
- $(top_srcdir)/m4/readtokens.m4 $(top_srcdir)/m4/readutmp.m4 \
- $(top_srcdir)/m4/regex.m4 \
- $(top_srcdir)/m4/rename-dest-slash.m4 \
- $(top_srcdir)/m4/rename.m4 $(top_srcdir)/m4/rmdir-errno.m4 \
- $(top_srcdir)/m4/rmdir.m4 $(top_srcdir)/m4/root-dev-ino.m4 \
- $(top_srcdir)/m4/rpmatch.m4 $(top_srcdir)/m4/safe-read.m4 \
- $(top_srcdir)/m4/safe-write.m4 $(top_srcdir)/m4/same.m4 \
- $(top_srcdir)/m4/save-cwd.m4 $(top_srcdir)/m4/savedir.m4 \
- $(top_srcdir)/m4/savewd.m4 $(top_srcdir)/m4/setenv.m4 \
- $(top_srcdir)/m4/settime.m4 $(top_srcdir)/m4/sha1.m4 \
- $(top_srcdir)/m4/sha256.m4 $(top_srcdir)/m4/sha512.m4 \
- $(top_srcdir)/m4/sig2str.m4 $(top_srcdir)/m4/snprintf.m4 \
- $(top_srcdir)/m4/socklen.m4 $(top_srcdir)/m4/sockpfaf.m4 \
- $(top_srcdir)/m4/ssize_t.m4 $(top_srcdir)/m4/st_dm_mode.m4 \
- $(top_srcdir)/m4/stat-prog.m4 $(top_srcdir)/m4/stat-time.m4 \
- $(top_srcdir)/m4/stdarg.m4 $(top_srcdir)/m4/stdbool.m4 \
- $(top_srcdir)/m4/stdint.m4 $(top_srcdir)/m4/stdint_h.m4 \
- $(top_srcdir)/m4/stdio-safer.m4 $(top_srcdir)/m4/stdio_h.m4 \
- $(top_srcdir)/m4/stdlib-safer.m4 $(top_srcdir)/m4/stdlib_h.m4 \
- $(top_srcdir)/m4/stpcpy.m4 $(top_srcdir)/m4/strcspn.m4 \
- $(top_srcdir)/m4/strdup.m4 $(top_srcdir)/m4/strftime.m4 \
- $(top_srcdir)/m4/string_h.m4 $(top_srcdir)/m4/strndup.m4 \
- $(top_srcdir)/m4/strnlen.m4 $(top_srcdir)/m4/strnumcmp.m4 \
- $(top_srcdir)/m4/strpbrk.m4 $(top_srcdir)/m4/strtod.m4 \
- $(top_srcdir)/m4/strtoimax.m4 $(top_srcdir)/m4/strtol.m4 \
- $(top_srcdir)/m4/strtoll.m4 $(top_srcdir)/m4/strtoul.m4 \
- $(top_srcdir)/m4/strtoull.m4 $(top_srcdir)/m4/strtoumax.m4 \
- $(top_srcdir)/m4/strverscmp.m4 \
- $(top_srcdir)/m4/sys_socket_h.m4 \
- $(top_srcdir)/m4/sys_stat_h.m4 $(top_srcdir)/m4/sys_time_h.m4 \
- $(top_srcdir)/m4/tempname.m4 $(top_srcdir)/m4/time_h.m4 \
- $(top_srcdir)/m4/time_r.m4 $(top_srcdir)/m4/timespec.m4 \
- $(top_srcdir)/m4/tm_gmtoff.m4 $(top_srcdir)/m4/tzset.m4 \
- $(top_srcdir)/m4/unicodeio.m4 $(top_srcdir)/m4/unistd-safer.m4 \
- $(top_srcdir)/m4/unistd_h.m4 $(top_srcdir)/m4/unlink-busy.m4 \
- $(top_srcdir)/m4/unlinkdir.m4 $(top_srcdir)/m4/unlocked-io.m4 \
- $(top_srcdir)/m4/uptime.m4 $(top_srcdir)/m4/userspec.m4 \
- $(top_srcdir)/m4/utimbuf.m4 $(top_srcdir)/m4/utime.m4 \
- $(top_srcdir)/m4/utimecmp.m4 $(top_srcdir)/m4/utimens.m4 \
- $(top_srcdir)/m4/utimes-null.m4 $(top_srcdir)/m4/utimes.m4 \
- $(top_srcdir)/m4/vasnprintf.m4 $(top_srcdir)/m4/vasprintf.m4 \
- $(top_srcdir)/m4/wchar.m4 $(top_srcdir)/m4/wchar_t.m4 \
- $(top_srcdir)/m4/wctype.m4 $(top_srcdir)/m4/wcwidth.m4 \
- $(top_srcdir)/m4/wint_t.m4 $(top_srcdir)/m4/xalloc.m4 \
- $(top_srcdir)/m4/xfts.m4 $(top_srcdir)/m4/xgetcwd.m4 \
- $(top_srcdir)/m4/xnanosleep.m4 $(top_srcdir)/m4/xstrndup.m4 \
- $(top_srcdir)/m4/xstrtod.m4 $(top_srcdir)/m4/xstrtol.m4 \
- $(top_srcdir)/m4/yesno.m4 $(top_srcdir)/configure.ac
-am__configure_deps = $(am__aclocal_m4_deps) $(CONFIGURE_DEPENDENCIES) \
- $(ACLOCAL_M4)
-mkinstalldirs = $(install_sh) -d
-CONFIG_HEADER = $(top_builddir)/lib/config.h
-CONFIG_CLEAN_FILES =
-SOURCES =
-DIST_SOURCES =
-DISTFILES = $(DIST_COMMON) $(DIST_SOURCES) $(TEXINFOS) $(EXTRA_DIST)
-ABSOLUTE_DIRENT_H = @ABSOLUTE_DIRENT_H@
-ABSOLUTE_FCNTL_H = @ABSOLUTE_FCNTL_H@
-ABSOLUTE_INTTYPES_H = @ABSOLUTE_INTTYPES_H@
-ABSOLUTE_NETINET_IN_H = @ABSOLUTE_NETINET_IN_H@
-ABSOLUTE_STDINT_H = @ABSOLUTE_STDINT_H@
-ABSOLUTE_STDIO_H = @ABSOLUTE_STDIO_H@
-ABSOLUTE_STDLIB_H = @ABSOLUTE_STDLIB_H@
-ABSOLUTE_STRING_H = @ABSOLUTE_STRING_H@
-ABSOLUTE_SYS_SOCKET_H = @ABSOLUTE_SYS_SOCKET_H@
-ABSOLUTE_SYS_STAT_H = @ABSOLUTE_SYS_STAT_H@
-ABSOLUTE_SYS_TIME_H = @ABSOLUTE_SYS_TIME_H@
-ABSOLUTE_TIME_H = @ABSOLUTE_TIME_H@
-ABSOLUTE_UNISTD_H = @ABSOLUTE_UNISTD_H@
-ABSOLUTE_WCHAR_H = @ABSOLUTE_WCHAR_H@
-ABSOLUTE_WCTYPE_H = @ABSOLUTE_WCTYPE_H@
-ACLOCAL = @ACLOCAL@
-ALLOCA = @ALLOCA@
-ALLOCA_H = @ALLOCA_H@
-AMTAR = @AMTAR@
-ARPA_INET_H = @ARPA_INET_H@
-AUTOCONF = @AUTOCONF@
-AUTOHEADER = @AUTOHEADER@
-AUTOMAKE = @AUTOMAKE@
-AWK = @AWK@
-BITSIZEOF_PTRDIFF_T = @BITSIZEOF_PTRDIFF_T@
-BITSIZEOF_SIG_ATOMIC_T = @BITSIZEOF_SIG_ATOMIC_T@
-BITSIZEOF_SIZE_T = @BITSIZEOF_SIZE_T@
-BITSIZEOF_WCHAR_T = @BITSIZEOF_WCHAR_T@
-BITSIZEOF_WINT_T = @BITSIZEOF_WINT_T@
-CC = @CC@
-CCDEPMODE = @CCDEPMODE@
-CFLAGS = @CFLAGS@
-CPP = @CPP@
-CPPFLAGS = @CPPFLAGS@
-CYGPATH_W = @CYGPATH_W@
-DEFAULT_POSIX2_VERSION = @DEFAULT_POSIX2_VERSION@
-DEFS = @DEFS@
-DEPDIR = @DEPDIR@
-DF_PROG = @DF_PROG@
-DIRENT_H = @DIRENT_H@
-ECHO_C = @ECHO_C@
-ECHO_N = @ECHO_N@
-ECHO_T = @ECHO_T@
-EGREP = @EGREP@
-EOVERFLOW = @EOVERFLOW@
-EXEEXT = @EXEEXT@
-FCNTL_H = @FCNTL_H@
-FNMATCH_H = @FNMATCH_H@
-GETLOADAVG_LIBS = @GETLOADAVG_LIBS@
-GETOPT_H = @GETOPT_H@
-GLIBC21 = @GLIBC21@
-GMSGFMT = @GMSGFMT@
-GMSGFMT_015 = @GMSGFMT_015@
-GNULIB_CHOWN = @GNULIB_CHOWN@
-GNULIB_DUP2 = @GNULIB_DUP2@
-GNULIB_FCHDIR = @GNULIB_FCHDIR@
-GNULIB_FPRINTF_POSIX = @GNULIB_FPRINTF_POSIX@
-GNULIB_FTRUNCATE = @GNULIB_FTRUNCATE@
-GNULIB_GETCWD = @GNULIB_GETCWD@
-GNULIB_GETLOGIN_R = @GNULIB_GETLOGIN_R@
-GNULIB_GETSUBOPT = @GNULIB_GETSUBOPT@
-GNULIB_IMAXABS = @GNULIB_IMAXABS@
-GNULIB_IMAXDIV = @GNULIB_IMAXDIV@
-GNULIB_MBSCASECMP = @GNULIB_MBSCASECMP@
-GNULIB_MBSCASESTR = @GNULIB_MBSCASESTR@
-GNULIB_MBSCHR = @GNULIB_MBSCHR@
-GNULIB_MBSCSPN = @GNULIB_MBSCSPN@
-GNULIB_MBSLEN = @GNULIB_MBSLEN@
-GNULIB_MBSNCASECMP = @GNULIB_MBSNCASECMP@
-GNULIB_MBSPBRK = @GNULIB_MBSPBRK@
-GNULIB_MBSPCASECMP = @GNULIB_MBSPCASECMP@
-GNULIB_MBSRCHR = @GNULIB_MBSRCHR@
-GNULIB_MBSSEP = @GNULIB_MBSSEP@
-GNULIB_MBSSPN = @GNULIB_MBSSPN@
-GNULIB_MBSSTR = @GNULIB_MBSSTR@
-GNULIB_MBSTOK_R = @GNULIB_MBSTOK_R@
-GNULIB_MEMMEM = @GNULIB_MEMMEM@
-GNULIB_MEMPCPY = @GNULIB_MEMPCPY@
-GNULIB_MEMRCHR = @GNULIB_MEMRCHR@
-GNULIB_MKDTEMP = @GNULIB_MKDTEMP@
-GNULIB_MKSTEMP = @GNULIB_MKSTEMP@
-GNULIB_PRINTF_POSIX = @GNULIB_PRINTF_POSIX@
-GNULIB_READLINK = @GNULIB_READLINK@
-GNULIB_SNPRINTF = @GNULIB_SNPRINTF@
-GNULIB_SPRINTF_POSIX = @GNULIB_SPRINTF_POSIX@
-GNULIB_STPCPY = @GNULIB_STPCPY@
-GNULIB_STPNCPY = @GNULIB_STPNCPY@
-GNULIB_STRCASESTR = @GNULIB_STRCASESTR@
-GNULIB_STRCHRNUL = @GNULIB_STRCHRNUL@
-GNULIB_STRDUP = @GNULIB_STRDUP@
-GNULIB_STRNDUP = @GNULIB_STRNDUP@
-GNULIB_STRNLEN = @GNULIB_STRNLEN@
-GNULIB_STRPBRK = @GNULIB_STRPBRK@
-GNULIB_STRSEP = @GNULIB_STRSEP@
-GNULIB_STRTOIMAX = @GNULIB_STRTOIMAX@
-GNULIB_STRTOK_R = @GNULIB_STRTOK_R@
-GNULIB_STRTOUMAX = @GNULIB_STRTOUMAX@
-GNULIB_VFPRINTF_POSIX = @GNULIB_VFPRINTF_POSIX@
-GNULIB_VPRINTF_POSIX = @GNULIB_VPRINTF_POSIX@
-GNULIB_VSNPRINTF = @GNULIB_VSNPRINTF@
-GNULIB_VSPRINTF_POSIX = @GNULIB_VSPRINTF_POSIX@
-GNU_PACKAGE = @GNU_PACKAGE@
-GREP = @GREP@
-HAVE_DECL_GETLOGIN_R = @HAVE_DECL_GETLOGIN_R@
-HAVE_DECL_IMAXABS = @HAVE_DECL_IMAXABS@
-HAVE_DECL_IMAXDIV = @HAVE_DECL_IMAXDIV@
-HAVE_DECL_MEMMEM = @HAVE_DECL_MEMMEM@
-HAVE_DECL_MEMRCHR = @HAVE_DECL_MEMRCHR@
-HAVE_DECL_SNPRINTF = @HAVE_DECL_SNPRINTF@
-HAVE_DECL_STRDUP = @HAVE_DECL_STRDUP@
-HAVE_DECL_STRNCASECMP = @HAVE_DECL_STRNCASECMP@
-HAVE_DECL_STRNDUP = @HAVE_DECL_STRNDUP@
-HAVE_DECL_STRNLEN = @HAVE_DECL_STRNLEN@
-HAVE_DECL_STRTOIMAX = @HAVE_DECL_STRTOIMAX@
-HAVE_DECL_STRTOK_R = @HAVE_DECL_STRTOK_R@
-HAVE_DECL_STRTOUMAX = @HAVE_DECL_STRTOUMAX@
-HAVE_DECL_VSNPRINTF = @HAVE_DECL_VSNPRINTF@
-HAVE_DUP2 = @HAVE_DUP2@
-HAVE_FTRUNCATE = @HAVE_FTRUNCATE@
-HAVE_GETSUBOPT = @HAVE_GETSUBOPT@
-HAVE_INTTYPES_H = @HAVE_INTTYPES_H@
-HAVE_LONG_LONG_INT = @HAVE_LONG_LONG_INT@
-HAVE_MEMPCPY = @HAVE_MEMPCPY@
-HAVE_MKDTEMP = @HAVE_MKDTEMP@
-HAVE_NETINET_IN_H = @HAVE_NETINET_IN_H@
-HAVE_READLINK = @HAVE_READLINK@
-HAVE_SIGNED_SIG_ATOMIC_T = @HAVE_SIGNED_SIG_ATOMIC_T@
-HAVE_SIGNED_WCHAR_T = @HAVE_SIGNED_WCHAR_T@
-HAVE_SIGNED_WINT_T = @HAVE_SIGNED_WINT_T@
-HAVE_STDINT_H = @HAVE_STDINT_H@
-HAVE_STPCPY = @HAVE_STPCPY@
-HAVE_STPNCPY = @HAVE_STPNCPY@
-HAVE_STRCASECMP = @HAVE_STRCASECMP@
-HAVE_STRCASESTR = @HAVE_STRCASESTR@
-HAVE_STRCHRNUL = @HAVE_STRCHRNUL@
-HAVE_STRNDUP = @HAVE_STRNDUP@
-HAVE_STRPBRK = @HAVE_STRPBRK@
-HAVE_STRSEP = @HAVE_STRSEP@
-HAVE_STRUCT_TIMEVAL = @HAVE_STRUCT_TIMEVAL@
-HAVE_SYS_BITYPES_H = @HAVE_SYS_BITYPES_H@
-HAVE_SYS_INTTYPES_H = @HAVE_SYS_INTTYPES_H@
-HAVE_SYS_SOCKET_H = @HAVE_SYS_SOCKET_H@
-HAVE_SYS_TIME_H = @HAVE_SYS_TIME_H@
-HAVE_SYS_TYPES_H = @HAVE_SYS_TYPES_H@
-HAVE_UNISTD_H = @HAVE_UNISTD_H@
-HAVE_UNSIGNED_LONG_LONG_INT = @HAVE_UNSIGNED_LONG_LONG_INT@
-HAVE_WCTYPE_H = @HAVE_WCTYPE_H@
-HAVE_WINSOCK2_H = @HAVE_WINSOCK2_H@
-HAVE_WINT_T = @HAVE_WINT_T@
-HAVE_WS2TCPIP_H = @HAVE_WS2TCPIP_H@
-HAVE__BOOL = @HAVE__BOOL@
-HELP2MAN = @HELP2MAN@
-INSTALL = @INSTALL@
-INSTALL_DATA = @INSTALL_DATA@
-INSTALL_PROGRAM = @INSTALL_PROGRAM@
-INSTALL_SCRIPT = @INSTALL_SCRIPT@
-INSTALL_STRIP_PROGRAM = @INSTALL_STRIP_PROGRAM@
-INTLLIBS = @INTLLIBS@
-INTL_MACOSX_LIBS = @INTL_MACOSX_LIBS@
-INTTYPES_H = @INTTYPES_H@
-KMEM_GROUP = @KMEM_GROUP@
-LDFLAGS = @LDFLAGS@
-LIBCOREUTILS_LIBDEPS = @LIBCOREUTILS_LIBDEPS@
-LIBCOREUTILS_LTLIBDEPS = @LIBCOREUTILS_LTLIBDEPS@
-LIBICONV = @LIBICONV@
-LIBINTL = @LIBINTL@
-LIBOBJS = @LIBOBJS@
-LIBS = @LIBS@
-LIB_ACL = @LIB_ACL@
-LIB_ACL_TRIVIAL = @LIB_ACL_TRIVIAL@
-LIB_CLOCK_GETTIME = @LIB_CLOCK_GETTIME@
-LIB_CRYPT = @LIB_CRYPT@
-LIB_EACCESS = @LIB_EACCESS@
-LIB_FDATASYNC = @LIB_FDATASYNC@
-LIB_GETHRXTIME = @LIB_GETHRXTIME@
-LIB_NANOSLEEP = @LIB_NANOSLEEP@
-LN_S = @LN_S@
-LTLIBICONV = @LTLIBICONV@
-LTLIBINTL = @LTLIBINTL@
-LTLIBOBJS = @LTLIBOBJS@
-MAKEINFO = @MAKEINFO@
-MAN = @MAN@
-MKDIR_P = @MKDIR_P@
-MSGFMT = @MSGFMT@
-MSGFMT_015 = @MSGFMT_015@
-MSGMERGE = @MSGMERGE@
-NEED_SETGID = @NEED_SETGID@
-NETINET_IN_H = @NETINET_IN_H@
-OBJEXT = @OBJEXT@
-OPTIONAL_BIN_PROGS = @OPTIONAL_BIN_PROGS@
-PACKAGE = @PACKAGE@
-PACKAGE_BUGREPORT = @PACKAGE_BUGREPORT@
-PACKAGE_NAME = @PACKAGE_NAME@
-PACKAGE_STRING = @PACKAGE_STRING@
-PACKAGE_TARNAME = @PACKAGE_TARNAME@
-PACKAGE_VERSION = @PACKAGE_VERSION@
-PATH_SEPARATOR = @PATH_SEPARATOR@
-PERL = @PERL@
-POSUB = @POSUB@
-POW_LIB = @POW_LIB@
-PRIPTR_PREFIX = @PRIPTR_PREFIX@
-PRI_MACROS_BROKEN = @PRI_MACROS_BROKEN@
-PTRDIFF_T_SUFFIX = @PTRDIFF_T_SUFFIX@
-RANLIB = @RANLIB@
-REPLACE_CHOWN = @REPLACE_CHOWN@
-REPLACE_FCHDIR = @REPLACE_FCHDIR@
-REPLACE_FPRINTF = @REPLACE_FPRINTF@
-REPLACE_GETCWD = @REPLACE_GETCWD@
-REPLACE_GETTIMEOFDAY = @REPLACE_GETTIMEOFDAY@
-REPLACE_LOCALTIME_R = @REPLACE_LOCALTIME_R@
-REPLACE_MKSTEMP = @REPLACE_MKSTEMP@
-REPLACE_NANOSLEEP = @REPLACE_NANOSLEEP@
-REPLACE_PRINTF = @REPLACE_PRINTF@
-REPLACE_SNPRINTF = @REPLACE_SNPRINTF@
-REPLACE_SPRINTF = @REPLACE_SPRINTF@
-REPLACE_STRPTIME = @REPLACE_STRPTIME@
-REPLACE_TIMEGM = @REPLACE_TIMEGM@
-REPLACE_VFPRINTF = @REPLACE_VFPRINTF@
-REPLACE_VPRINTF = @REPLACE_VPRINTF@
-REPLACE_VSNPRINTF = @REPLACE_VSNPRINTF@
-REPLACE_VSPRINTF = @REPLACE_VSPRINTF@
-SEQ_LIBM = @SEQ_LIBM@
-SET_MAKE = @SET_MAKE@
-SHELL = @SHELL@
-SIG_ATOMIC_T_SUFFIX = @SIG_ATOMIC_T_SUFFIX@
-SIZE_T_SUFFIX = @SIZE_T_SUFFIX@
-STDBOOL_H = @STDBOOL_H@
-STDINT_H = @STDINT_H@
-STRIP = @STRIP@
-SYS_SOCKET_H = @SYS_SOCKET_H@
-SYS_STAT_H = @SYS_STAT_H@
-SYS_TIME_H = @SYS_TIME_H@
-SYS_TIME_H_DEFINES_STRUCT_TIMESPEC = @SYS_TIME_H_DEFINES_STRUCT_TIMESPEC@
-TIME_H_DEFINES_STRUCT_TIMESPEC = @TIME_H_DEFINES_STRUCT_TIMESPEC@
-U = @U@
-USE_NLS = @USE_NLS@
-VERSION = @VERSION@
-WCHAR_H = @WCHAR_H@
-WCHAR_T_SUFFIX = @WCHAR_T_SUFFIX@
-WCTYPE_H = @WCTYPE_H@
-WINT_T_SUFFIX = @WINT_T_SUFFIX@
-XGETTEXT = @XGETTEXT@
-XGETTEXT_015 = @XGETTEXT_015@
-YACC = @YACC@
-YFLAGS = @YFLAGS@
-abs_builddir = @abs_builddir@
-abs_srcdir = @abs_srcdir@
-abs_top_builddir = @abs_top_builddir@
-abs_top_srcdir = @abs_top_srcdir@
-ac_ct_CC = @ac_ct_CC@
-am__include = @am__include@
-am__leading_dot = @am__leading_dot@
-am__quote = @am__quote@
-am__tar = @am__tar@
-am__untar = @am__untar@
-bindir = @bindir@
-build = @build@
-build_alias = @build_alias@
-build_cpu = @build_cpu@
-build_os = @build_os@
-build_vendor = @build_vendor@
-builddir = @builddir@
-datadir = @datadir@
-datarootdir = @datarootdir@
-docdir = @docdir@
-dvidir = @dvidir@
-exec_prefix = @exec_prefix@
-gl_LIBOBJS = @gl_LIBOBJS@
-gl_LTLIBOBJS = @gl_LTLIBOBJS@
-host = @host@
-host_alias = @host_alias@
-host_cpu = @host_cpu@
-host_os = @host_os@
-host_vendor = @host_vendor@
-htmldir = @htmldir@
-includedir = @includedir@
-infodir = @infodir@
-install_sh = @install_sh@
-libdir = @libdir@
-libexecdir = @libexecdir@
-localedir = @localedir@
-localstatedir = @localstatedir@
-mandir = @mandir@
-mkdir_p = @mkdir_p@
-oldincludedir = @oldincludedir@
-pdfdir = @pdfdir@
-prefix = @prefix@
-program_transform_name = @program_transform_name@
-psdir = @psdir@
-sbindir = @sbindir@
-sharedstatedir = @sharedstatedir@
-srcdir = @srcdir@
-sysconfdir = @sysconfdir@
-target_alias = @target_alias@
-top_builddir = @top_builddir@
-top_srcdir = @top_srcdir@
-EXTRA_DIST = $(TESTS)
-TESTS_ENVIRONMENT = \
- top_srcdir=$(top_srcdir) \
- srcdir=$(srcdir) \
- PERL="$(PERL)" \
- CU_TEST_NAME=`basename $(abs_srcdir)`,$$tst \
- PATH="$(VG_PATH_PREFIX)`pwd`/../../src$(PATH_SEPARATOR)$$PATH" \
- PROG=dd
-
-TESTS = misc not-rewound skip-seek skip-seek2 unblock-sync
-all: all-am
-
-.SUFFIXES:
-$(srcdir)/Makefile.in: $(srcdir)/Makefile.am $(am__configure_deps)
- @for dep in $?; do \
- case '$(am__configure_deps)' in \
- *$$dep*) \
- cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh \
- && exit 0; \
- exit 1;; \
- esac; \
- done; \
- echo ' cd $(top_srcdir) && $(AUTOMAKE) --gnu tests/dd/Makefile'; \
- cd $(top_srcdir) && \
- $(AUTOMAKE) --gnu tests/dd/Makefile
-.PRECIOUS: Makefile
-Makefile: $(srcdir)/Makefile.in $(top_builddir)/config.status
- @case '$?' in \
- *config.status*) \
- cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh;; \
- *) \
- echo ' cd $(top_builddir) && $(SHELL) ./config.status $(subdir)/$@ $(am__depfiles_maybe)'; \
- cd $(top_builddir) && $(SHELL) ./config.status $(subdir)/$@ $(am__depfiles_maybe);; \
- esac;
-
-$(top_builddir)/config.status: $(top_srcdir)/configure $(CONFIG_STATUS_DEPENDENCIES)
- cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh
-
-$(top_srcdir)/configure: $(am__configure_deps)
- cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh
-$(ACLOCAL_M4): $(am__aclocal_m4_deps)
- cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh
-tags: TAGS
-TAGS:
-
-ctags: CTAGS
-CTAGS:
-
-
-check-TESTS: $(TESTS)
- @failed=0; all=0; xfail=0; xpass=0; skip=0; ws='[ ]'; \
- srcdir=$(srcdir); export srcdir; \
- list=' $(TESTS) '; \
- if test -n "$$list"; then \
- for tst in $$list; do \
- if test -f ./$$tst; then dir=./; \
- elif test -f $$tst; then dir=; \
- else dir="$(srcdir)/"; fi; \
- if $(TESTS_ENVIRONMENT) $${dir}$$tst; then \
- all=`expr $$all + 1`; \
- case " $(XFAIL_TESTS) " in \
- *$$ws$$tst$$ws*) \
- xpass=`expr $$xpass + 1`; \
- failed=`expr $$failed + 1`; \
- echo "XPASS: $$tst"; \
- ;; \
- *) \
- echo "PASS: $$tst"; \
- ;; \
- esac; \
- elif test $$? -ne 77; then \
- all=`expr $$all + 1`; \
- case " $(XFAIL_TESTS) " in \
- *$$ws$$tst$$ws*) \
- xfail=`expr $$xfail + 1`; \
- echo "XFAIL: $$tst"; \
- ;; \
- *) \
- failed=`expr $$failed + 1`; \
- echo "FAIL: $$tst"; \
- ;; \
- esac; \
- else \
- skip=`expr $$skip + 1`; \
- echo "SKIP: $$tst"; \
- fi; \
- done; \
- if test "$$failed" -eq 0; then \
- if test "$$xfail" -eq 0; then \
- banner="All $$all tests passed"; \
- else \
- banner="All $$all tests behaved as expected ($$xfail expected failures)"; \
- fi; \
- else \
- if test "$$xpass" -eq 0; then \
- banner="$$failed of $$all tests failed"; \
- else \
- banner="$$failed of $$all tests did not behave as expected ($$xpass unexpected passes)"; \
- fi; \
- fi; \
- dashes="$$banner"; \
- skipped=""; \
- if test "$$skip" -ne 0; then \
- skipped="($$skip tests were not run)"; \
- test `echo "$$skipped" | wc -c` -le `echo "$$banner" | wc -c` || \
- dashes="$$skipped"; \
- fi; \
- report=""; \
- if test "$$failed" -ne 0 && test -n "$(PACKAGE_BUGREPORT)"; then \
- report="Please report to $(PACKAGE_BUGREPORT)"; \
- test `echo "$$report" | wc -c` -le `echo "$$banner" | wc -c` || \
- dashes="$$report"; \
- fi; \
- dashes=`echo "$$dashes" | sed s/./=/g`; \
- echo "$$dashes"; \
- echo "$$banner"; \
- test -z "$$skipped" || echo "$$skipped"; \
- test -z "$$report" || echo "$$report"; \
- echo "$$dashes"; \
- test "$$failed" -eq 0; \
- else :; fi
-
-distdir: $(DISTFILES)
- @srcdirstrip=`echo "$(srcdir)" | sed 's/[].[^$$\\*]/\\\\&/g'`; \
- topsrcdirstrip=`echo "$(top_srcdir)" | sed 's/[].[^$$\\*]/\\\\&/g'`; \
- list='$(DISTFILES)'; \
- dist_files=`for file in $$list; do echo $$file; done | \
- sed -e "s|^$$srcdirstrip/||;t" \
- -e "s|^$$topsrcdirstrip/|$(top_builddir)/|;t"`; \
- case $$dist_files in \
- */*) $(MKDIR_P) `echo "$$dist_files" | \
- sed '/\//!d;s|^|$(distdir)/|;s,/[^/]*$$,,' | \
- sort -u` ;; \
- esac; \
- for file in $$dist_files; do \
- if test -f $$file || test -d $$file; then d=.; else d=$(srcdir); fi; \
- if test -d $$d/$$file; then \
- dir=`echo "/$$file" | sed -e 's,/[^/]*$$,,'`; \
- if test -d $(srcdir)/$$file && test $$d != $(srcdir); then \
- cp -pR $(srcdir)/$$file $(distdir)$$dir || exit 1; \
- fi; \
- cp -pR $$d/$$file $(distdir)$$dir || exit 1; \
- else \
- test -f $(distdir)/$$file \
- || cp -p $$d/$$file $(distdir)/$$file \
- || exit 1; \
- fi; \
- done
-check-am: all-am
- $(MAKE) $(AM_MAKEFLAGS) check-TESTS
-check: check-am
-all-am: Makefile
-installdirs:
-install: install-am
-install-exec: install-exec-am
-install-data: install-data-am
-uninstall: uninstall-am
-
-install-am: all-am
- @$(MAKE) $(AM_MAKEFLAGS) install-exec-am install-data-am
-
-installcheck: installcheck-am
-install-strip:
- $(MAKE) $(AM_MAKEFLAGS) INSTALL_PROGRAM="$(INSTALL_STRIP_PROGRAM)" \
- install_sh_PROGRAM="$(INSTALL_STRIP_PROGRAM)" INSTALL_STRIP_FLAG=-s \
- `test -z '$(STRIP)' || \
- echo "INSTALL_PROGRAM_ENV=STRIPPROG='$(STRIP)'"` install
-mostlyclean-generic:
-
-clean-generic:
-
-distclean-generic:
- -test -z "$(CONFIG_CLEAN_FILES)" || rm -f $(CONFIG_CLEAN_FILES)
-
-maintainer-clean-generic:
- @echo "This command is intended for maintainers to use"
- @echo "it deletes files that may require special tools to rebuild."
-clean: clean-am
-
-clean-am: clean-generic mostlyclean-am
-
-distclean: distclean-am
- -rm -f Makefile
-distclean-am: clean-am distclean-generic
-
-dvi: dvi-am
-
-dvi-am:
-
-html: html-am
-
-info: info-am
-
-info-am:
-
-install-data-am:
-
-install-dvi: install-dvi-am
-
-install-exec-am:
-
-install-html: install-html-am
-
-install-info: install-info-am
-
-install-man:
-
-install-pdf: install-pdf-am
-
-install-ps: install-ps-am
-
-installcheck-am:
-
-maintainer-clean: maintainer-clean-am
- -rm -f Makefile
-maintainer-clean-am: distclean-am maintainer-clean-generic
-
-mostlyclean: mostlyclean-am
-
-mostlyclean-am: mostlyclean-generic
-
-pdf: pdf-am
-
-pdf-am:
-
-ps: ps-am
-
-ps-am:
-
-uninstall-am:
-
-.MAKE: install-am install-strip
-
-.PHONY: all all-am check check-TESTS check-am clean clean-generic \
- distclean distclean-generic distdir dvi dvi-am html html-am \
- info info-am install install-am install-data install-data-am \
- install-dvi install-dvi-am install-exec install-exec-am \
- install-html install-html-am install-info install-info-am \
- install-man install-pdf install-pdf-am install-ps \
- install-ps-am install-strip installcheck installcheck-am \
- installdirs maintainer-clean maintainer-clean-generic \
- mostlyclean mostlyclean-generic pdf pdf-am ps ps-am uninstall \
- uninstall-am
-
-# Tell versions [3.59,3.63) of GNU make to not export all variables.
-# Otherwise a system limit (for SysV at least) may be exceeded.
-.NOEXPORT:
diff --git a/tests/dd/ascii.sh b/tests/dd/ascii.sh
new file mode 100755
index 0000000..df88726
--- /dev/null
+++ b/tests/dd/ascii.sh
@@ -0,0 +1,74 @@
+#!/bin/sh
+# test conv=ascii
+
+# Copyright (C) 2014-2016 Free Software Foundation, Inc.
+
+# This program is free software: you can redistribute it and/or modify
+# it under the terms of the GNU General Public License as published by
+# the Free Software Foundation, either version 3 of the License, or
+# (at your option) any later version.
+
+# This program is distributed in the hope that it will be useful,
+# but WITHOUT ANY WARRANTY; without even the implied warranty of
+# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
+# GNU General Public License for more details.
+
+# You should have received a copy of the GNU General Public License
+# along with this program. If not, see <http://www.gnu.org/licenses/>.
+
+. "${srcdir=.}/tests/init.sh"; path_prepend_ ./src
+print_ver_ dd printf
+
+{
+ # Two lines, EBCDIC " A A" and " A ", followed by all the bytes in order.
+ env printf '\100\301\100\301\100\301\100\100' &&
+ env printf $(env printf '\\%03o' $(seq 0 255));
+} >in || framework_failure_
+
+{
+ # The converted lines, with trailing spaces removed.
+env printf \
+' A A\n A\n'\
+'\000\001\002\003\n\234\011\206\177\n'\
+'\227\215\216\013\n\014\015\016\017\n'\
+'\020\021\022\023\n\235\205\010\207\n'\
+'\030\031\222\217\n\034\035\036\037\n'\
+'\200\201\202\203\n\204\012\027\033\n'\
+'\210\211\212\213\n\214\005\006\007\n'\
+'\220\221\026\223\n\224\225\226\004\n'\
+'\230\231\232\233\n\024\025\236\032\n'\
+'\040\240\241\242\n\243\244\245\246\n'\
+'\247\250\325\056\n\074\050\053\174\n'\
+'\046\251\252\253\n\254\255\256\257\n'\
+'\260\261\041\044\n\052\051\073\176\n'\
+'\055\057\262\263\n\264\265\266\267\n'\
+'\270\271\313\054\n\045\137\076\077\n'\
+'\272\273\274\275\n\276\277\300\301\n'\
+'\302\140\072\043\n\100\047\075\042\n'\
+'\303\141\142\143\n\144\145\146\147\n'\
+'\150\151\304\305\n\306\307\310\311\n'\
+'\312\152\153\154\n\155\156\157\160\n'\
+'\161\162\136\314\n\315\316\317\320\n'\
+'\321\345\163\164\n\165\166\167\170\n'\
+'\171\172\322\323\n\324\133\326\327\n'\
+'\330\331\332\333\n\334\335\336\337\n'\
+'\340\341\342\343\n\344\135\346\347\n'\
+'\173\101\102\103\n\104\105\106\107\n'\
+'\110\111\350\351\n\352\353\354\355\n'\
+'\175\112\113\114\n\115\116\117\120\n'\
+'\121\122\356\357\n\360\361\362\363\n'\
+'\134\237\123\124\n\125\126\127\130\n'\
+'\131\132\364\365\n\366\367\370\371\n'\
+'\060\061\062\063\n\064\065\066\067\n'\
+'\070\071\372\373\n\374\375\376\377\n';
+} >exp || framework_failure_
+
+dd if=in of=out conv=ascii cbs=4 || fail=1
+
+compare exp out \
+ || { od -v -to1 exp > exp2 || framework_failure_;
+ od -v -to1 out > out2 || framework_failure_;
+ compare exp2 out2;
+ fail=1; }
+
+Exit $fail
diff --git a/tests/dd/bytes.sh b/tests/dd/bytes.sh
new file mode 100755
index 0000000..ef7d8d9
--- /dev/null
+++ b/tests/dd/bytes.sh
@@ -0,0 +1,56 @@
+#!/bin/sh
+
+# Copyright (C) 2012-2016 Free Software Foundation, Inc.
+
+# This program is free software: you can redistribute it and/or modify
+# it under the terms of the GNU General Public License as published by
+# the Free Software Foundation, either version 3 of the License, or
+# (at your option) any later version.
+
+# This program is distributed in the hope that it will be useful,
+# but WITHOUT ANY WARRANTY; without even the implied warranty of
+# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
+# GNU General Public License for more details.
+
+# You should have received a copy of the GNU General Public License
+# along with this program. If not, see <http://www.gnu.org/licenses/>.
+
+. "${srcdir=.}/tests/init.sh"; path_prepend_ ./src
+print_ver_ dd
+
+# count_bytes
+echo 0123456789abcdefghijklm > in || framework_failure_
+dd count=14 conv=swab iflag=count_bytes < in > out 2> /dev/null || fail=1
+case $(cat out) in
+ 1032547698badc) ;;
+ *) fail=1 ;;
+esac
+
+# skip_bytes
+echo 0123456789abcdefghijklm > in || framework_failure_
+dd skip=10 iflag=skip_bytes < in > out 2> /dev/null || fail=1
+case $(cat out) in
+ abcdefghijklm) ;;
+ *) fail=1 ;;
+esac
+
+# skip records and bytes from pipe
+echo 0123456789abcdefghijklm |
+ dd skip=10 bs=2 iflag=skip_bytes > out 2> /dev/null || fail=1
+case $(cat out) in
+ abcdefghijklm) ;;
+ *) fail=1 ;;
+esac
+
+# seek bytes
+echo abcdefghijklm |
+ dd bs=5 seek=8 oflag=seek_bytes > out 2> /dev/null || fail=1
+printf '\0\0\0\0\0\0\0\0abcdefghijklm\n' > expected
+compare expected out || fail=1
+
+# Just truncation, no I/O
+dd bs=5 seek=8 oflag=seek_bytes of=out2 count=0 2> /dev/null || fail=1
+truncate -s8 expected2
+compare expected2 out2 || fail=1
+
+Exit $fail
diff --git a/tests/dd/direct.sh b/tests/dd/direct.sh
new file mode 100755
index 0000000..1c84b6d
--- /dev/null
+++ b/tests/dd/direct.sh
@@ -0,0 +1,35 @@
+#!/bin/sh
+# ensure that dd's oflag=direct works
+
+# Copyright (C) 2009-2016 Free Software Foundation, Inc.
+
+# This program is free software: you can redistribute it and/or modify
+# it under the terms of the GNU General Public License as published by
+# the Free Software Foundation, either version 3 of the License, or
+# (at your option) any later version.
+
+# This program is distributed in the hope that it will be useful,
+# but WITHOUT ANY WARRANTY; without even the implied warranty of
+# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
+# GNU General Public License for more details.
+
+# You should have received a copy of the GNU General Public License
+# along with this program. If not, see <http://www.gnu.org/licenses/>.
+
+. "${srcdir=.}/tests/init.sh"; path_prepend_ ./src
+print_ver_ dd
+
+truncate -s 8192 in || framework_failure_
+dd if=in oflag=direct of=out 2> /dev/null \
+ || skip_ 'this file system lacks support for O_DIRECT'
+
+truncate -s 511 short || framework_failure_
+truncate -s 8191 m1 || framework_failure_
+truncate -s 8193 p1 || framework_failure_
+
+for i in short m1 p1; do
+ rm -f out
+ dd if=$i oflag=direct of=out || fail=1
+done
+
+Exit $fail
diff --git a/tests/dd/misc b/tests/dd/misc
deleted file mode 100755
index fa5cfbe..0000000
--- a/tests/dd/misc
+++ /dev/null
@@ -1,92 +0,0 @@
-#!/bin/sh
-# Ensure dd treats `--' properly.
-# Also test some flag values.
-
-# Copyright (C) 1999, 2004, 2005, 2006 Free Software Foundation, Inc.
-
-# This program is free software; you can redistribute it and/or modify
-# it under the terms of the GNU General Public License as published by
-# the Free Software Foundation; either version 2 of the License, or
-# (at your option) any later version.
-
-# This program is distributed in the hope that it will be useful,
-# but WITHOUT ANY WARRANTY; without even the implied warranty of
-# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
-# GNU General Public License for more details.
-
-# You should have received a copy of the GNU General Public License
-# along with this program; if not, write to the Free Software
-# Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA
-# 02110-1301, USA.
-
-tmp_in=dd-in.$$
-tmp_in2=dd-in2.$$
-tmp_sym=dd-sym.$$
-tmp_out=dd-out.$$
-
-if test "$VERBOSE" = yes; then
- set -x
- dd --version
-fi
-
-fail=0
-warn=0
-test_failure=0
-echo data > $tmp_in || test_failure=1
-ln $tmp_in $tmp_in2 || test_failure=1
-ln -s $tmp_in $tmp_sym || test_failure=1
-if test $test_failure = 1; then
- echo 'failure in testing framework'
- exit 1
-fi
-
-dd if=$tmp_in of=$tmp_out 2> /dev/null || fail=1
-cmp $tmp_in $tmp_out || fail=1
-
-rm $tmp_out
-dd -- if=$tmp_in of=$tmp_out 2> /dev/null || fail=1
-cmp $tmp_in $tmp_out || fail=1
-
-if dd oflag=append if=$tmp_in of=$tmp_out 2> /dev/null; then
- cmp $tmp_in $tmp_out || fail=1
-fi
-
-if dd iflag=nofollow if=$tmp_in count=0 2> /dev/null; then
- dd iflag=nofollow if=$tmp_sym count=0 2> /dev/null && fail=1
-fi
-
-if dd iflag=directory if=. count=0 2> /dev/null; then
- dd iflag=directory count=0 <. 2> /dev/null || fail=1
- dd iflag=directory count=0 <$tmp_in 2> /dev/null && fail=1
-fi
-
-old_ls=`ls -u --full-time $tmp_in`
-sleep 1
-if dd iflag=noatime if=$tmp_in of=$tmp_out 2> /dev/null; then
- new_ls=`ls -u --full-time $tmp_in`
- if test "x$old_ls" != "x$new_ls"; then
- cat >&2 <<EOF
-=================================================================
-$0: WARNING!!!
-This operating system has the O_NOATIME file status flag,
-but it is silently ignored in some cases.
-Therefore, dd options like iflag=noatime may be silently ignored.
-=================================================================
-EOF
- warn=77
- fi
-fi
-
-if dd oflag=nolinks if=$tmp_in of=$tmp_out 2> /dev/null; then
- dd iflag=nolinks if=$tmp_in > /dev/null 2>&1 && fail=1
- dd iflag=nolinks < $tmp_in > /dev/null 2>&1 && fail=1
- dd oflag=nolinks < $tmp_in > $tmp_out 2>&1 || fail=1
-fi
-
-outbytes=`echo x | dd bs=3 ibs=10 obs=10 conv=sync 2>/dev/null | wc -c`
-test "$outbytes" -eq 3 || fail=1
-
-rm -f $tmp_in $tmp_in2 $tmp_sym $tmp_out || fail=1
-
-test $fail -eq 0 && fail=$warn
-exit $fail
diff --git a/tests/dd/misc.sh b/tests/dd/misc.sh
new file mode 100755
index 0000000..2c24b50
--- /dev/null
+++ b/tests/dd/misc.sh
@@ -0,0 +1,110 @@
+#!/bin/sh
+# Ensure dd treats '--' properly.
+# Also test some flag values.
+
+# Copyright (C) 1999-2016 Free Software Foundation, Inc.
+
+# This program is free software: you can redistribute it and/or modify
+# it under the terms of the GNU General Public License as published by
+# the Free Software Foundation, either version 3 of the License, or
+# (at your option) any later version.
+
+# This program is distributed in the hope that it will be useful,
+# but WITHOUT ANY WARRANTY; without even the implied warranty of
+# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
+# GNU General Public License for more details.
+
+# You should have received a copy of the GNU General Public License
+# along with this program. If not, see <http://www.gnu.org/licenses/>.
+
+. "${srcdir=.}/tests/init.sh"; path_prepend_ ./src
+print_ver_ dd
+
+tmp_in=dd-in
+tmp_in2=dd-in2
+tmp_sym=dd-sym
+tmp_out=dd-out
+
+warn=0
+echo data > $tmp_in || framework_failure_
+ln $tmp_in $tmp_in2 || framework_failure_
+ln -s $tmp_in $tmp_sym || framework_failure_
+
+# check status=none suppresses all output to stderr
+dd status=none if=$tmp_in of=/dev/null 2> err || fail=1
+compare /dev/null err || fail=1
+dd status=none if=$tmp_in skip=2 of=/dev/null 2> err || fail=1
+compare /dev/null err || fail=1
+# check later status=none overrides earlier status=noxfer
+dd status=noxfer status=none if=$tmp_in of=/dev/null 2> err || fail=1
+compare /dev/null err || fail=1
+# check later status=noxfer overrides earlier status=none
+dd status=none status=noxfer if=$tmp_in of=/dev/null 2> err || fail=1
+compare /dev/null err && fail=1
+
+dd if=$tmp_in of=$tmp_out 2> /dev/null || fail=1
+compare $tmp_in $tmp_out || fail=1
+
+rm $tmp_out
+dd -- if=$tmp_in of=$tmp_out 2> /dev/null || fail=1
+compare $tmp_in $tmp_out || fail=1
+
+if dd oflag=append if=$tmp_in of=$tmp_out 2> /dev/null; then
+ compare $tmp_in $tmp_out || fail=1
+fi
+
+case $(cat /dev/stdin <$tmp_in 2>/dev/null) in
+(data)
+ rm -f $tmp_out
+ dd if=/dev/stdin of=$tmp_out <$tmp_in || fail=1
+ compare $tmp_in $tmp_out || fail=1
+esac
+
+if dd iflag=nofollow if=$tmp_in count=0 2> /dev/null; then
+ returns_ 1 dd iflag=nofollow if=$tmp_sym count=0 2> /dev/null || fail=1
+fi
+
+if dd iflag=directory if=. count=0 2> /dev/null; then
+ dd iflag=directory count=0 <. 2> /dev/null || fail=1
+ returns_ 1 dd iflag=directory count=0 <$tmp_in 2> /dev/null || fail=1
+fi
+
+old_ls=$(ls -u --full-time $tmp_in)
+sleep 1
+if dd iflag=noatime if=$tmp_in of=$tmp_out 2> /dev/null; then
+ new_ls=$(ls -u --full-time $tmp_in)
+ if test "x$old_ls" != "x$new_ls"; then
+ cat >&2 <<EOF
+=================================================================
+$0: WARNING!!!
+This operating system has the O_NOATIME file status flag,
+but it is silently ignored in some cases.
+Therefore, dd options like iflag=noatime may be silently ignored.
+=================================================================
+EOF
+ warn=77
+ fi
+fi
+
+if dd oflag=nolinks if=$tmp_in of=$tmp_out 2> /dev/null; then
+ returns_ 1 dd iflag=nolinks if=$tmp_in > /dev/null 2>&1 || fail=1
+ returns_ 1 dd iflag=nolinks < $tmp_in > /dev/null 2>&1 || fail=1
+ dd oflag=nolinks < $tmp_in > $tmp_out 2>&1 || fail=1
+fi
+
+outbytes=$(echo x | dd bs=3 ibs=10 obs=10 conv=sync 2>/dev/null | wc -c)
+test "$outbytes" -eq 3 || fail=1
+
+# A delay is required to trigger a failure.
+# There might be some missed failures but it's unlikely.
+(echo a; sleep .1; echo b) \
+ | env LC_ALL=C dd bs=4 status=noxfer iflag=fullblock >out 2>err || fail=1
+printf 'a\nb\n' > out_ok || framework_failure_
+echo "1+0 records in
+1+0 records out" > err_ok || framework_failure_
+compare out_ok out || fail=1
+compare err_ok err || fail=1
+
+test $fail -eq 0 && fail=$warn
+
+Exit $fail
diff --git a/tests/dd/no-allocate.sh b/tests/dd/no-allocate.sh
new file mode 100755
index 0000000..a9c3b43
--- /dev/null
+++ b/tests/dd/no-allocate.sh
@@ -0,0 +1,76 @@
+#!/bin/sh
+# make sure that dd doesn't allocate memory unnecessarily
+
+# Copyright (C) 2013-2016 Free Software Foundation, Inc.
+
+# This program is free software: you can redistribute it and/or modify
+# it under the terms of the GNU General Public License as published by
+# the Free Software Foundation, either version 3 of the License, or
+# (at your option) any later version.
+
+# This program is distributed in the hope that it will be useful,
+# but WITHOUT ANY WARRANTY; without even the implied warranty of
+# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
+# GNU General Public License for more details.
+
+# You should have received a copy of the GNU General Public License
+# along with this program. If not, see <http://www.gnu.org/licenses/>.
+
+. "${srcdir=.}/tests/init.sh"; path_prepend_ ./src
+print_ver_ dd
+
+# Determine basic amount of memory needed.
+echo . > f || framework_failure_
+vm=$(get_min_ulimit_v_ timeout 10 dd if=f of=f2 status=none) \
+ || skip_ "this shell lacks ulimit support"
+rm f f2 || framework_failure_
+
+# count and skip are zero, we don't need to allocate memory
+(ulimit -v $vm && dd bs=30M count=0) || fail=1
+(ulimit -v $vm && dd ibs=30M count=0) || fail=1
+(ulimit -v $vm && dd obs=30M count=0) || fail=1
+
+check_dd_seek_alloc() {
+ local file="$1"
+ local buf="$2"
+ test "$file" = 'in' && { dd_file=if; dd_op=skip; }
+ test "$file" = 'out' && { dd_file=of; dd_op=seek; }
+ test "$buf" = 'in' && { dd_buf=ibs; }
+ test "$buf" = 'out' && { dd_buf=obs; }
+ test "$buf" = 'both' && { dd_buf=bs; }
+
+ # Provide input to the "tape"
+ timeout 10 dd count=1 if=/dev/zero of=tape&
+
+ # Allocate buffer and read from the "tape"
+ (ulimit -v $vm \
+ && timeout 10 dd $dd_buf=30M $dd_op=1 count=0 $dd_file=tape)
+ local ret=$?
+
+ # Be defensive in case the tape reader is blocked for some reason
+ test $ret = 124 && framework_failure_
+
+ # This should happen without delay,
+ # and is used to ensure we've not multiple writers to the "tape"
+ wait
+
+ # We want the "tape" reader to fail iff allocating
+ # a large buffer corresponding to the file being read
+ case "$file$buf" in
+ inout|outin) test $ret = 0;;
+ *) test $ret != 0;;
+ esac
+}
+
+# Use a fifo for which seek fails, but read does not.
+# For non seekable output we need to allocate a buffer
+# when simulating seeking with a read.
+if mkfifo tape; then
+ for file in 'in' 'out'; do
+ for buf in 'both' 'in' 'out'; do
+ check_dd_seek_alloc "$file" "$buf" || fail=1
+ done
+ done
+fi
+
+Exit $fail
diff --git a/tests/dd/nocache.sh b/tests/dd/nocache.sh
new file mode 100755
index 0000000..b554ded
--- /dev/null
+++ b/tests/dd/nocache.sh
@@ -0,0 +1,58 @@
+#!/bin/sh
+# Ensure dd handles the 'nocache' flag
+
+# Copyright (C) 2011-2016 Free Software Foundation, Inc.
+
+# This program is free software: you can redistribute it and/or modify
+# it under the terms of the GNU General Public License as published by
+# the Free Software Foundation, either version 3 of the License, or
+# (at your option) any later version.
+
+# This program is distributed in the hope that it will be useful,
+# but WITHOUT ANY WARRANTY; without even the implied warranty of
+# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
+# GNU General Public License for more details.
+
+# You should have received a copy of the GNU General Public License
+# along with this program. If not, see <http://www.gnu.org/licenses/>.
+
+. "${srcdir=.}/tests/init.sh"; path_prepend_ ./src
+print_ver_ dd
+
+# This should not call posix_fadvise
+dd iflag=nocache oflag=nocache if=/dev/null of=/dev/null || fail=1
+
+# We should get an error for trying to process a pipe
+dd count=0 | returns_ 1 dd iflag=nocache count=0 || fail=1
+
+# O_DIRECT is orthogonal to drop cache so mutually exclusive
+returns_ 1 dd iflag=nocache,direct if=/dev/null || fail=1
+
+# The rest ensure that the documented uses cases
+# proceed without error
+for f in ifile ofile; do
+ dd if=/dev/zero of=$f conv=fdatasync count=100 || framework_failure_
+done
+
+# Advise to drop cache for whole file
+if ! dd if=ifile iflag=nocache count=0 2>err; then
+ # We could check for 'Operation not supported' in err here,
+ # but that was seen to be brittle. HPUX returns ENOTTY for example.
+ # So assume that if this basic operation fails, it's due to lack
+ # of support by the system.
+ warn_ 'skipping part; this file system lacks support for posix_fadvise()'
+ skip=1
+fi
+
+if test "$skip" != 1; then
+ # Ensure drop cache for whole file
+ dd of=ofile oflag=nocache conv=notrunc,fdatasync count=0 || fail=1
+
+ # Drop cache for part of file
+ dd if=ifile iflag=nocache skip=10 count=10 of=/dev/null || fail=1
+
+ # Stream data just using readahead cache
+ dd if=ifile of=ofile iflag=nocache oflag=nocache || fail=1
+fi
+
+Exit $fail
diff --git a/tests/dd/not-rewound b/tests/dd/not-rewound
deleted file mode 100755
index 6caccd0..0000000
--- a/tests/dd/not-rewound
+++ /dev/null
@@ -1,50 +0,0 @@
-#!/bin/sh
-# Make sure dd does the right thing when the input file descriptor
-# is not rewound.
-
-# Copyright (C) 2000, 2004, 2006 Free Software Foundation, Inc.
-
-# This program is free software; you can redistribute it and/or modify
-# it under the terms of the GNU General Public License as published by
-# the Free Software Foundation; either version 2 of the License, or
-# (at your option) any later version.
-
-# This program is distributed in the hope that it will be useful,
-# but WITHOUT ANY WARRANTY; without even the implied warranty of
-# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
-# GNU General Public License for more details.
-
-# You should have received a copy of the GNU General Public License
-# along with this program; if not, write to the Free Software
-# Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA
-# 02110-1301, USA.
-
-if test "$VERBOSE" = yes; then
- set -x
- dd --version
-fi
-
-pwd=`pwd`
-tmp=dd-rw.$$
-trap 'status=$?; cd "$pwd" && rm -rf $tmp && exit $status' 0
-trap '(exit $?); exit' 1 2 13 15
-
-framework_failure=0
-mkdir $tmp || framework_failure=1
-cd $tmp || framework_failure=1
-
-if test $framework_failure = 1; then
- echo 'failure in testing framework'
- exit 1
-fi
-
-fail=0
-
-echo abcde > in
-(dd skip=1 count=1 bs=1; dd skip=1 bs=1) < in > out 2> /dev/null || fail=1
-case `cat out` in
- bde) ;;
- *) fail=1 ;;
-esac
-
-(exit $fail); exit $fail
diff --git a/tests/dd/not-rewound.sh b/tests/dd/not-rewound.sh
new file mode 100755
index 0000000..9bfc270
--- /dev/null
+++ b/tests/dd/not-rewound.sh
@@ -0,0 +1,31 @@
+#!/bin/sh
+# Make sure dd does the right thing when the input file descriptor
+# is not rewound.
+
+# Copyright (C) 2000-2016 Free Software Foundation, Inc.
+
+# This program is free software: you can redistribute it and/or modify
+# it under the terms of the GNU General Public License as published by
+# the Free Software Foundation, either version 3 of the License, or
+# (at your option) any later version.
+
+# This program is distributed in the hope that it will be useful,
+# but WITHOUT ANY WARRANTY; without even the implied warranty of
+# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
+# GNU General Public License for more details.
+
+# You should have received a copy of the GNU General Public License
+# along with this program. If not, see <http://www.gnu.org/licenses/>.
+
+. "${srcdir=.}/tests/init.sh"; path_prepend_ ./src
+print_ver_ dd
+
+
+echo abcde > in
+(dd skip=1 count=1 bs=1; dd skip=1 bs=1) < in > out 2> /dev/null || fail=1
+case $(cat out) in
+ bde) ;;
+ *) fail=1 ;;
+esac
+
+Exit $fail
diff --git a/tests/dd/reblock.sh b/tests/dd/reblock.sh
new file mode 100755
index 0000000..a50c129
--- /dev/null
+++ b/tests/dd/reblock.sh
@@ -0,0 +1,72 @@
+#!/bin/sh
+# test dd reblocking vs. bs=
+
+# Copyright (C) 2008-2016 Free Software Foundation, Inc.
+
+# This program is free software: you can redistribute it and/or modify
+# it under the terms of the GNU General Public License as published by
+# the Free Software Foundation, either version 3 of the License, or
+# (at your option) any later version.
+
+# This program is distributed in the hope that it will be useful,
+# but WITHOUT ANY WARRANTY; without even the implied warranty of
+# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
+# GNU General Public License for more details.
+
+# You should have received a copy of the GNU General Public License
+# along with this program. If not, see <http://www.gnu.org/licenses/>.
+
+. "${srcdir=.}/tests/init.sh"; path_prepend_ ./src
+print_ver_ dd
+
+# 2 short reads -> 1 full write + 1 partial write
+cat <<\EOF > exp-reblock || framework_failure_
+0+2 records in
+1+1 records out
+4 bytes copied
+EOF
+
+# 2 short reads -> 2 partial writes
+cat <<\EOF > exp-no-reblock || framework_failure_
+0+2 records in
+0+2 records out
+4 bytes copied
+EOF
+
+
+# Use a fifo rather than a pipe in the tests below
+# so that the producer (printf subshell) will wait
+# until the consumer (dd) opens the fifo therefore
+# increasing the chance that dd will read the data
+# from each printf separately.
+mkfifo_or_skip_ dd.fifo
+
+dd_reblock_1()
+{
+ local delay="$1"
+
+ # ensure that dd reblocks when bs= is not specified
+ dd ibs=3 obs=3 if=dd.fifo > out 2> err&
+ (printf 'ab'; sleep $delay; printf 'cd') > dd.fifo
+ wait #for dd to complete
+ sed 's/,.*//' err > k && mv k err
+ compare exp-reblock err
+}
+
+retry_delay_ dd_reblock_1 .1 6 || fail=1
+
+dd_reblock_2()
+{
+ local delay="$1"
+
+ # Demonstrate that bs=N supersedes even following ibs= and obs= settings.
+ dd bs=3 ibs=1 obs=1 if=dd.fifo > out 2> err&
+ (printf 'ab'; sleep $delay; printf 'cd') > dd.fifo
+ wait #for dd to complete
+ sed 's/,.*//' err > k && mv k err
+ compare exp-no-reblock err
+}
+
+retry_delay_ dd_reblock_2 .1 6 || fail=1
+
+Exit $fail
diff --git a/tests/dd/skip-seek b/tests/dd/skip-seek
deleted file mode 100755
index e6123cf..0000000
--- a/tests/dd/skip-seek
+++ /dev/null
@@ -1,98 +0,0 @@
-#!/bin/sh
-# -*- perl -*-
-# Test dd's skip and seek options.
-
-# Copyright (C) 2000, 2001, 2003, 2004, 2005 Free Software Foundation,
-# Inc.
-
-# This program is free software; you can redistribute it and/or modify
-# it under the terms of the GNU General Public License as published by
-# the Free Software Foundation; either version 2 of the License, or
-# (at your option) any later version.
-
-# This program is distributed in the hope that it will be useful,
-# but WITHOUT ANY WARRANTY; without even the implied warranty of
-# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
-# GNU General Public License for more details.
-
-# You should have received a copy of the GNU General Public License
-# along with this program; if not, write to the Free Software
-# Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA
-# 02110-1301, USA.
-
-: ${PERL=perl}
-: ${srcdir=.}
-
-$PERL -e 1 > /dev/null 2>&1 || {
- echo 1>&2 "$0: configure didn't find a usable version of Perl," \
- "so can't run this test"
- exit 77
-}
-
-SCRIPT_NAME=$0
-export SCRIPT_NAME
-
-exec $PERL -w -I$srcdir/.. -MCoreutils -- - <<\EOF
-require 5.003;
-use strict;
-
-(my $program_name = $0) =~ s|.*/||;
-
-# Turn off localisation of executable's ouput.
-@ENV{qw(LANGUAGE LANG LC_ALL)} = ('C') x 3;
-my $out = 'out';
-my $script_name = $ENV{SCRIPT_NAME};
-
-my @Tests =
- (
- [
- 'sk-seek1',
- qw (bs=1 skip=1 seek=2 conv=notrunc count=3 status=noxfer of=@AUX@ < ),
- {IN=> '0123456789abcdef'},
- {AUX=> 'zyxwvutsrqponmlkji'},
- {OUT=> ''},
- {ERR=> "3+0 records in\n3+0 records out\n"},
- {CMP=> ['zy123utsrqponmlkji', {'@AUX@'=> undef}]},
- ],
- [
- 'sk-seek2',
- qw (bs=5 skip=1 seek=1 conv=notrunc count=1 status=noxfer of=@AUX@ < ),
- {IN=> '0123456789abcdef'},
- {AUX=> 'zyxwvutsrqponmlkji'},
- {OUT=> ''},
- {ERR=> "1+0 records in\n1+0 records out\n"},
- {CMP=> ['zyxwv56789ponmlkji', {'@AUX@'=> undef}]},
- ],
- [
- 'sk-seek3',
- qw (bs=5 skip=1 seek=1 count=1 status=noxfer of=@AUX@ < ),
- {IN=> '0123456789abcdef'},
- {AUX=> 'zyxwvutsrqponmlkji'},
- {OUT=> ''},
- {ERR=> "1+0 records in\n1+0 records out\n"},
- {CMP=> ['zyxwv56789', {'@AUX@'=> undef}]},
- ],
- [
- # Before fileutils-4.0.45, the last 10 bytes of output
- # were these "\0\0\0\0\0\0\0\0 ".
- 'block-sync-1', qw(ibs=10 cbs=10 status=noxfer), 'conv=block,sync', '<',
- {IN=> "01234567\nabcdefghijkl\n"},
- {OUT=> "01234567 abcdefghij "},
- {ERR=> "2+1 records in\n0+1 records out\n1 truncated record\n"},
- ],
- [
- # Before coreutils-5.93, this would output just "c\n".
- 'sk-seek4', qw(bs=1 skip=1 status=noxfer),
- {IN_PIPE=> "abc\n"},
- {OUT=> "bc\n"},
- {ERR=> "3+0 records in\n3+0 records out\n"},
- ],
- );
-
-my $save_temps = $ENV{DEBUG};
-my $verbose = $ENV{VERBOSE};
-
-my $prog = $ENV{PROG} || die "$0: \$PROG not specified in environment\n";
-my $fail = run_tests ($program_name, $prog, \@Tests, $save_temps, $verbose);
-exit $fail;
-EOF
diff --git a/tests/dd/skip-seek-past-dev.sh b/tests/dd/skip-seek-past-dev.sh
new file mode 100755
index 0000000..c24bbb7
--- /dev/null
+++ b/tests/dd/skip-seek-past-dev.sh
@@ -0,0 +1,58 @@
+#!/bin/sh
+# test diagnostics are printed immediately when seeking beyond device.
+
+# Copyright (C) 2008-2016 Free Software Foundation, Inc.
+
+# This program is free software: you can redistribute it and/or modify
+# it under the terms of the GNU General Public License as published by
+# the Free Software Foundation, either version 3 of the License, or
+# (at your option) any later version.
+
+# This program is distributed in the hope that it will be useful,
+# but WITHOUT ANY WARRANTY; without even the implied warranty of
+# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
+# GNU General Public License for more details.
+
+# You should have received a copy of the GNU General Public License
+# along with this program. If not, see <http://www.gnu.org/licenses/>.
+
+. "${srcdir=.}/tests/init.sh"; path_prepend_ ./src
+print_ver_ dd
+
+# need write access to local device
+# (even though we don't actually write anything)
+require_root_
+require_local_dir_
+
+get_device_size() {
+ BLOCKDEV=blockdev
+ $BLOCKDEV -V >/dev/null 2>&1 || BLOCKDEV=/sbin/blockdev
+ $BLOCKDEV --getsize64 "$1"
+}
+
+
+# Get path to device the current dir is on.
+# Note df can only get fs size, not device size.
+device=$(df --output=source . | tail -n1) || framework_failure_
+
+dev_size=$(get_device_size "$device") ||
+ skip_ "failed to determine size of $device"
+
+# Don't use shell arithmetic as older versions of dash use longs
+DEV_OFLOW=$(expr $dev_size + 1)
+
+timeout 10 dd bs=1 skip=$DEV_OFLOW count=0 status=noxfer < "$device" 2> err
+test "$?" = "1" || fail=1
+echo "dd: 'standard input': cannot skip: Invalid argument
+0+0 records in
+0+0 records out" > err_ok || framework_failure_
+compare err_ok err || fail=1
+
+timeout 10 dd bs=1 seek=$DEV_OFLOW count=0 status=noxfer > "$device" 2> err
+test "$?" = "1" || fail=1
+echo "dd: 'standard output': cannot seek: Invalid argument
+0+0 records in
+0+0 records out" > err_ok || framework_failure_
+compare err_ok err || fail=1
+
+Exit $fail
diff --git a/tests/dd/skip-seek-past-file.sh b/tests/dd/skip-seek-past-file.sh
new file mode 100755
index 0000000..b77b8fa
--- /dev/null
+++ b/tests/dd/skip-seek-past-file.sh
@@ -0,0 +1,89 @@
+#!/bin/sh
+# test diagnostics are printed when seeking too far in seekable files.
+
+# Copyright (C) 2008-2016 Free Software Foundation, Inc.
+
+# This program is free software: you can redistribute it and/or modify
+# it under the terms of the GNU General Public License as published by
+# the Free Software Foundation, either version 3 of the License, or
+# (at your option) any later version.
+
+# This program is distributed in the hope that it will be useful,
+# but WITHOUT ANY WARRANTY; without even the implied warranty of
+# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
+# GNU General Public License for more details.
+
+# You should have received a copy of the GNU General Public License
+# along with this program. If not, see <http://www.gnu.org/licenses/>.
+
+. "${srcdir=.}/tests/init.sh"; path_prepend_ ./src
+print_ver_ dd
+require_sparse_support_ # for 'truncate --size=$OFF_T_MAX'
+eval $(getlimits) # for OFF_T limits
+
+
+printf "1234" > file || framework_failure_
+
+echo "\
+dd: 'standard input': cannot skip to specified offset
+0+0 records in
+0+0 records out" > skip_err || framework_failure_
+
+# skipping beyond number of blocks in file should issue a warning
+dd bs=1 skip=5 count=0 status=noxfer < file 2> err || fail=1
+compare skip_err err || fail=1
+
+# skipping beyond number of bytes in file should issue a warning
+dd bs=3 skip=2 count=0 status=noxfer < file 2> err || fail=1
+compare skip_err err || fail=1
+
+# skipping beyond number of blocks in pipe should issue a warning
+cat file | dd bs=1 skip=5 count=0 status=noxfer 2> err || fail=1
+compare skip_err err || fail=1
+
+# skipping beyond number of bytes in pipe should issue a warning
+cat file | dd bs=3 skip=2 count=0 status=noxfer 2> err || fail=1
+compare skip_err err || fail=1
+
+# Check seeking beyond file already offset into
+# skipping beyond number of blocks in file should issue a warning
+(dd bs=1 skip=1 count=0 2>/dev/null &&
+ dd bs=1 skip=4 status=noxfer 2> err) < file || fail=1
+compare skip_err err || fail=1
+
+# Check seeking beyond file already offset into
+# skipping beyond number of bytes in file should issue a warning
+(dd bs=1 skip=1 count=0 2>/dev/null &&
+ dd bs=2 skip=2 status=noxfer 2> err) < file || fail=1
+compare skip_err err || fail=1
+
+# seeking beyond end of file is OK
+dd bs=1 seek=5 count=0 status=noxfer > file 2> err || fail=1
+echo "0+0 records in
+0+0 records out" > err_ok || framework_failure_
+compare err_ok err || fail=1
+
+# skipping > OFF_T_MAX should fail immediately
+dd bs=1 skip=$OFF_T_OFLOW count=0 status=noxfer < file 2> err && fail=1
+# error message should be "... cannot skip: strerror(EOVERFLOW)"
+grep "cannot skip:" err >/dev/null || fail=1
+
+# skipping > max file size should fail immediately
+if ! truncate --size=$OFF_T_MAX in 2>/dev/null; then
+ # truncate is to ensure file system doesn't actually support OFF_T_MAX files
+ dd bs=1 skip=$OFF_T_MAX count=0 status=noxfer < file 2> err \
+ && lseek_ok=yes \
+ || lseek_ok=no
+
+ if test $lseek_ok = yes; then
+ # On Solaris 10 at least, lseek(>max file size) succeeds,
+ # so just check for the skip warning.
+ compare skip_err err || fail=1
+ else
+ # On Linux kernels at least, lseek(>max file size) fails.
+ # error message should be "... cannot skip: strerror(EINVAL)"
+ grep "cannot skip:" err >/dev/null || fail=1
+ fi
+fi
+
+Exit $fail
diff --git a/tests/dd/skip-seek.pl b/tests/dd/skip-seek.pl
new file mode 100755
index 0000000..11a65b1
--- /dev/null
+++ b/tests/dd/skip-seek.pl
@@ -0,0 +1,78 @@
+#!/usr/bin/perl
+# Test dd's skip and seek options.
+
+# Copyright (C) 2000-2016 Free Software Foundation, Inc.
+
+# This program is free software: you can redistribute it and/or modify
+# it under the terms of the GNU General Public License as published by
+# the Free Software Foundation, either version 3 of the License, or
+# (at your option) any later version.
+
+# This program is distributed in the hope that it will be useful,
+# but WITHOUT ANY WARRANTY; without even the implied warranty of
+# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
+# GNU General Public License for more details.
+
+# You should have received a copy of the GNU General Public License
+# along with this program. If not, see <http://www.gnu.org/licenses/>.
+
+use strict;
+
+(my $program_name = $0) =~ s|.*/||;
+
+# Turn off localization of executable's output.
+@ENV{qw(LANGUAGE LANG LC_ALL)} = ('C') x 3;
+my $out = 'out';
+
+my @Tests =
+ (
+ [
+ 'sk-seek1',
+ qw (bs=1 skip=1 seek=2 conv=notrunc count=3 status=noxfer of=@AUX@ < ),
+ {IN=> '0123456789abcdef'},
+ {AUX=> 'zyxwvutsrqponmlkji'},
+ {OUT=> ''},
+ {ERR=> "3+0 records in\n3+0 records out\n"},
+ {CMP=> ['zy123utsrqponmlkji', {'@AUX@'=> undef}]},
+ ],
+ [
+ 'sk-seek2',
+ qw (bs=5 skip=1 seek=1 conv=notrunc count=1 status=noxfer of=@AUX@ < ),
+ {IN=> '0123456789abcdef'},
+ {AUX=> 'zyxwvutsrqponmlkji'},
+ {OUT=> ''},
+ {ERR=> "1+0 records in\n1+0 records out\n"},
+ {CMP=> ['zyxwv56789ponmlkji', {'@AUX@'=> undef}]},
+ ],
+ [
+ 'sk-seek3',
+ qw (bs=5 skip=1 seek=1 count=1 status=noxfer of=@AUX@ < ),
+ {IN=> '0123456789abcdef'},
+ {AUX=> 'zyxwvutsrqponmlkji'},
+ {OUT=> ''},
+ {ERR=> "1+0 records in\n1+0 records out\n"},
+ {CMP=> ['zyxwv56789', {'@AUX@'=> undef}]},
+ ],
+ [
+ # Before fileutils-4.0.45, the last 10 bytes of output
+ # were these "\0\0\0\0\0\0\0\0 ".
+ 'block-sync-1', qw(ibs=10 cbs=10 status=noxfer), 'conv=block,sync', '<',
+ {IN=> "01234567\nabcdefghijkl\n"},
+ {OUT=> "01234567 abcdefghij "},
+ {ERR=> "2+1 records in\n0+1 records out\n1 truncated record\n"},
+ ],
+ [
+ # Before coreutils-5.93, this would output just "c\n".
+ 'sk-seek4', qw(bs=1 skip=1 status=noxfer),
+ {IN_PIPE=> "abc\n"},
+ {OUT=> "bc\n"},
+ {ERR=> "3+0 records in\n3+0 records out\n"},
+ ],
+ );
+
+my $save_temps = $ENV{DEBUG};
+my $verbose = $ENV{VERBOSE};
+
+my $prog = 'dd';
+my $fail = run_tests ($program_name, $prog, \@Tests, $save_temps, $verbose);
+exit $fail;
diff --git a/tests/dd/skip-seek2 b/tests/dd/skip-seek2
deleted file mode 100755
index a4fc9ab..0000000
--- a/tests/dd/skip-seek2
+++ /dev/null
@@ -1,57 +0,0 @@
-#!/bin/sh
-# show how to skip an amount that is smaller than the nominal block size.
-# There's a more realistic example in the documentation.
-
-# Copyright (C) 2000, 2004, 2006 Free Software Foundation, Inc.
-
-# This program is free software; you can redistribute it and/or modify
-# it under the terms of the GNU General Public License as published by
-# the Free Software Foundation; either version 2 of the License, or
-# (at your option) any later version.
-
-# This program is distributed in the hope that it will be useful,
-# but WITHOUT ANY WARRANTY; without even the implied warranty of
-# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
-# GNU General Public License for more details.
-
-# You should have received a copy of the GNU General Public License
-# along with this program; if not, write to the Free Software
-# Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA
-# 02110-1301, USA.
-
-if test "$VERBOSE" = yes; then
- set -x
- dd --version
-fi
-
-pwd=`pwd`
-tmp=skip-seek.$$
-trap 'status=$?; cd "$pwd" && rm -rf $tmp && exit $status' 0
-trap '(exit $?); exit' 1 2 13 15
-
-framework_failure=0
-mkdir $tmp || framework_failure=1
-cd $tmp || framework_failure=1
-
-if test $framework_failure = 1; then
- echo 'failure in testing framework'
- (exit 1); exit 1
-fi
-
-fail=0
-
-echo LA:3456789abcdef > in || fail=1
-(dd bs=1 skip=3 count=0 && dd bs=5) < in > out 2> /dev/null || fail=1
-case `cat out` in
- 3456789abcdef) ;;
- *) fail=1 ;;
-esac
-
-echo LA:3456789abcdef > in || fail=1
-(dd bs=1 skip=3 count=0 && dd bs=5 count=2) < in > out 2> /dev/null || fail=1
-case `cat out` in
- 3456789abc) ;;
- *) fail=1 ;;
-esac
-
-(exit $fail); exit $fail
diff --git a/tests/dd/skip-seek2.sh b/tests/dd/skip-seek2.sh
new file mode 100755
index 0000000..30da15a
--- /dev/null
+++ b/tests/dd/skip-seek2.sh
@@ -0,0 +1,38 @@
+#!/bin/sh
+# show how to skip an amount that is smaller than the nominal block size.
+# There's a more realistic example in the documentation.
+
+# Copyright (C) 2000-2016 Free Software Foundation, Inc.
+
+# This program is free software: you can redistribute it and/or modify
+# it under the terms of the GNU General Public License as published by
+# the Free Software Foundation, either version 3 of the License, or
+# (at your option) any later version.
+
+# This program is distributed in the hope that it will be useful,
+# but WITHOUT ANY WARRANTY; without even the implied warranty of
+# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
+# GNU General Public License for more details.
+
+# You should have received a copy of the GNU General Public License
+# along with this program. If not, see <http://www.gnu.org/licenses/>.
+
+. "${srcdir=.}/tests/init.sh"; path_prepend_ ./src
+print_ver_ dd
+
+
+echo LA:3456789abcdef > in || fail=1
+(dd bs=1 skip=3 count=0 && dd bs=5) < in > out 2> /dev/null || fail=1
+case $(cat out) in
+ 3456789abcdef) ;;
+ *) fail=1 ;;
+esac
+
+echo LA:3456789abcdef > in || fail=1
+(dd bs=1 skip=3 count=0 && dd bs=5 count=2) < in > out 2> /dev/null || fail=1
+case $(cat out) in
+ 3456789abc) ;;
+ *) fail=1 ;;
+esac
+
+Exit $fail
diff --git a/tests/dd/sparse.sh b/tests/dd/sparse.sh
new file mode 100755
index 0000000..c1e520d
--- /dev/null
+++ b/tests/dd/sparse.sh
@@ -0,0 +1,84 @@
+#!/bin/sh
+
+# Copyright (C) 2012-2016 Free Software Foundation, Inc.
+
+# This program is free software: you can redistribute it and/or modify
+# it under the terms of the GNU General Public License as published by
+# the Free Software Foundation, either version 3 of the License, or
+# (at your option) any later version.
+
+# This program is distributed in the hope that it will be useful,
+# but WITHOUT ANY WARRANTY; without even the implied warranty of
+# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
+# GNU General Public License for more details.
+
+# You should have received a copy of the GNU General Public License
+# along with this program. If not, see <http://www.gnu.org/licenses/>.
+
+. "${srcdir=.}/tests/init.sh"; path_prepend_ ./src
+print_ver_ dd
+is_local_dir_ . || very_expensive_
+require_sparse_support_
+
+# Ensure basic sparse generation works
+truncate -s1M sparse
+dd bs=32K if=sparse of=sparse.dd conv=sparse
+test $(stat -c %s sparse) = $(stat -c %s sparse.dd) || fail=1
+
+# Demonstrate that conv=sparse with oflag=append,
+# will do ineffective seeks in the output
+printf 'a\000\000b' > file.in
+printf 'ab' > exp
+dd if=file.in bs=1 conv=sparse oflag=append > out
+compare exp out || fail=1
+
+# Demonstrate conv=sparse with conv=notrunc,
+# where data in file.out is not overwritten with NULs
+printf '____' > out
+printf 'a__b' > exp
+dd if=file.in bs=1 conv=sparse,notrunc of=out
+compare exp out || fail=1
+
+# Ensure we fall back to write if seek fails
+dd if=file.in bs=1 conv=sparse | cat > file.out
+cmp file.in file.out || fail=1
+
+# Setup for block size tests: create a 3MiB file with a 1MiB
+# stretch of NUL bytes in the middle.
+rm -f file.in
+dd if=/dev/urandom of=file.in bs=1M count=3 iflag=fullblock || fail=1
+dd if=/dev/zero of=file.in bs=1M count=1 seek=1 conv=notrunc || fail=1
+
+kb_alloc() { du -k "$1"|cut -f1; }
+
+# sync out data for async allocators like NFS/BTRFS
+# sync file.in || fail=1
+
+# If our just-created input file appears to be too small,
+# skip the remaining tests. On at least Solaris 10 with NFS,
+# file.in is reported to occupy <= 1KiB for about 50 seconds
+# after its creation.
+if test $(kb_alloc file.in) -gt 3000; then
+
+ # Ensure NUL blocks smaller than the block size are not made sparse.
+ # Here, with a 2MiB block size, dd's conv=sparse must *not* introduce a hole.
+ dd if=file.in of=file.out bs=2M conv=sparse || fail=1
+
+ # Intermittently BTRFS returns 0 allocation for file.out unless synced
+ sync file.out || framework_failure_
+ test 2500 -lt $(kb_alloc file.out) || fail=1
+
+ # Note we recreate a sparse file first to avoid
+ # speculative preallocation seen in XFS, where a write() that
+ # extends a file can preallocate some extra space that
+ # a subsequent seek will not convert to a hole.
+ rm -f file.out
+ truncate --size=3M file.out
+
+ # Ensure that this 1MiB string of NULs *is* converted to a hole.
+ dd if=file.in of=file.out bs=1M conv=sparse,notrunc
+ test $(kb_alloc file.out) -lt 2500 || fail=1
+
+fi
+
+Exit $fail
diff --git a/tests/dd/stats.sh b/tests/dd/stats.sh
new file mode 100755
index 0000000..f87d2da
--- /dev/null
+++ b/tests/dd/stats.sh
@@ -0,0 +1,76 @@
+#!/bin/sh
+# Check stats output for SIG{INFO,USR1} and status=progress
+
+# Copyright (C) 2014-2016 Free Software Foundation, Inc.
+
+# This program is free software: you can redistribute it and/or modify
+# it under the terms of the GNU General Public License as published by
+# the Free Software Foundation, either version 3 of the License, or
+# (at your option) any later version.
+
+# This program is distributed in the hope that it will be useful,
+# but WITHOUT ANY WARRANTY; without even the implied warranty of
+# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
+# GNU General Public License for more details.
+
+# You should have received a copy of the GNU General Public License
+# along with this program. If not, see <http://www.gnu.org/licenses/>.
+
+. "${srcdir=.}/tests/init.sh"; path_prepend_ ./src
+print_ver_ dd
+require_trap_signame_
+
+kill -l | grep 'INFO' && SIGINFO='INFO' || SIGINFO='USR1'
+
+# This to avoid races in the USR1 case
+# as the dd process will terminate by default until
+# it has its handler enabled.
+trap '' $SIGINFO
+
+mkfifo_or_skip_ fifo
+
+# Terminate any background processes
+cleanup_()
+{
+ kill $pid 2>/dev/null
+ kill $pid2 2>/dev/null
+ wait
+}
+
+for open in '' '1'; do
+ > err || framework_failure_
+
+ # Run dd with the fullblock iflag to avoid short reads
+ # which can be triggered by reception of signals
+ dd iflag=fullblock if=/dev/zero of=fifo count=50 bs=5000000 2>err & pid=$!
+
+ # Note if we sleep here we give dd a chance to exec and block on open.
+ # Otherwise we're probably testing SIG_IGN in the forked shell or early dd.
+ test "$open" && sleep .1
+
+ # dd will block on open until fifo is opened for reading.
+ # Timeout in case dd goes away erroneously which we check for below.
+ timeout 20 sh -c 'wc -c < fifo > nwritten' & pid2=$!
+
+ # Send lots of signals immediately to ensure dd not killed due
+ # to race setting handler, or blocking on open of fifo.
+ # Many signals also check that short reads are handled.
+ until ! kill -s $SIGINFO $pid 2>/dev/null; do
+ sleep .01
+ done
+
+ wait
+
+ # Ensure all data processed and at least last status written
+ grep '250000000 bytes (250 MB, 238 MiB) copied' err || { cat err; fail=1; }
+done
+
+progress_output()
+{
+ { sleep $1; echo 1; } | dd bs=1 status=progress of=/dev/null 2>err
+ # Progress output should be for "byte copied", while final is "bytes ..."
+ grep 'byte copied' err
+}
+retry_delay_ progress_output 1 4 || { cat err; fail=1; }
+
+Exit $fail
diff --git a/tests/dd/stderr.sh b/tests/dd/stderr.sh
new file mode 100755
index 0000000..9fcf75d
--- /dev/null
+++ b/tests/dd/stderr.sh
@@ -0,0 +1,43 @@
+#!/bin/sh
+# Ensure dd recognizes failure to write to stderr.
+
+# Copyright (C) 2009-2016 Free Software Foundation, Inc.
+
+# This program is free software: you can redistribute it and/or modify
+# it under the terms of the GNU General Public License as published by
+# the Free Software Foundation, either version 3 of the License, or
+# (at your option) any later version.
+
+# This program is distributed in the hope that it will be useful,
+# but WITHOUT ANY WARRANTY; without even the implied warranty of
+# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
+# GNU General Public License for more details.
+
+# You should have received a copy of the GNU General Public License
+# along with this program. If not, see <http://www.gnu.org/licenses/>.
+
+. "${srcdir=.}/tests/init.sh"; path_prepend_ ./src
+print_ver_ dd
+
+p=$abs_top_builddir
+
+
+# Ensure this exits successfully, even though stderr is closed,
+# because it generates no stderr output.
+dd --help >/dev/null 2>&- || fail=1
+
+# If 2>&- works, ensure this fails, because stderr is closed and it
+# *does* generate output. 2>&- apparently does not work in HP-UX 11.23.
+# This test is ineffective unless /dev/stderr also works.
+# This exposes a failure present in 6.11 through 7.5.
+if "$p/src/test" -w /dev/stderr 2>/dev/null &&
+ "$p/src/test" ! -w /dev/stderr 2>&-; then
+ : | returns_ 1 dd 2>&- || fail=1
+fi
+
+# Likewise for /dev/full, if /dev/full works.
+if test -w /dev/full && test -c /dev/full; then
+ : | returns_ 1 dd 2>/dev/full || fail=1
+fi
+
+Exit $fail
diff --git a/tests/dd/unblock-sync b/tests/dd/unblock-sync
deleted file mode 100755
index d425091..0000000
--- a/tests/dd/unblock-sync
+++ /dev/null
@@ -1,56 +0,0 @@
-#!/bin/sh
-# Ensure that dd conv=unblock,sync works.
-
-# Copyright (C) 2003, 2005, 2006 Free Software Foundation, Inc.
-
-# This program is free software; you can redistribute it and/or modify
-# it under the terms of the GNU General Public License as published by
-# the Free Software Foundation; either version 2 of the License, or
-# (at your option) any later version.
-
-# This program is distributed in the hope that it will be useful,
-# but WITHOUT ANY WARRANTY; without even the implied warranty of
-# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
-# GNU General Public License for more details.
-
-# You should have received a copy of the GNU General Public License
-# along with this program; if not, write to the Free Software
-# Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA
-# 02110-1301, USA.
-
-if test "$VERBOSE" = yes; then
- set -x
- dd --version
-fi
-
-# . $srcdir/../envvar-check
-
-pwd=`pwd`
-t0=`echo "$0"|sed 's,.*/,,'`.tmp; tmp=$t0/$$
-trap 'status=$?; cd "$pwd" && chmod -R u+rwx $t0 && rm -rf $t0 && exit $status' 0
-trap '(exit $?); exit $?' 1 2 13 15
-
-framework_failure=0
-mkdir -p $tmp || framework_failure=1
-cd $tmp || framework_failure=1
-printf 000100020003xx > in || framework_failure=1
-
-if test $framework_failure = 1; then
- echo "$0: failure in testing framework" 1>&2
- (exit 1); exit 1
-fi
-
-fail=0
-
-dd cbs=4 ibs=4 conv=unblock,sync < in > out 2> /dev/null || fail=1
-cat <<\EOF > exp || fail=1
-0001
-0002
-0003
-xx
-EOF
-
-cmp out exp || fail=1
-test $fail = 1 && diff out exp 2> /dev/null
-
-(exit $fail); exit $fail
diff --git a/tests/dd/unblock-sync.sh b/tests/dd/unblock-sync.sh
new file mode 100755
index 0000000..4be0f50
--- /dev/null
+++ b/tests/dd/unblock-sync.sh
@@ -0,0 +1,35 @@
+#!/bin/sh
+# Ensure that dd conv=unblock,sync works.
+
+# Copyright (C) 2003-2016 Free Software Foundation, Inc.
+
+# This program is free software: you can redistribute it and/or modify
+# it under the terms of the GNU General Public License as published by
+# the Free Software Foundation, either version 3 of the License, or
+# (at your option) any later version.
+
+# This program is distributed in the hope that it will be useful,
+# but WITHOUT ANY WARRANTY; without even the implied warranty of
+# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
+# GNU General Public License for more details.
+
+# You should have received a copy of the GNU General Public License
+# along with this program. If not, see <http://www.gnu.org/licenses/>.
+
+. "${srcdir=.}/tests/init.sh"; path_prepend_ ./src
+print_ver_ dd
+
+printf 000100020003xx > in || framework_failure_
+
+
+dd cbs=4 ibs=4 conv=unblock,sync < in > out 2> /dev/null || fail=1
+cat <<\EOF > exp || fail=1
+0001
+0002
+0003
+xx
+EOF
+
+compare exp out || fail=1
+
+Exit $fail
diff --git a/tests/dd/unblock.pl b/tests/dd/unblock.pl
new file mode 100755
index 0000000..7f9abba
--- /dev/null
+++ b/tests/dd/unblock.pl
@@ -0,0 +1,59 @@
+#!/usr/bin/perl
+# Exercise dd's conv=unblock mode
+
+# Copyright (C) 2009-2016 Free Software Foundation, Inc.
+
+# This program is free software: you can redistribute it and/or modify
+# it under the terms of the GNU General Public License as published by
+# the Free Software Foundation, either version 3 of the License, or
+# (at your option) any later version.
+
+# This program is distributed in the hope that it will be useful,
+# but WITHOUT ANY WARRANTY; without even the implied warranty of
+# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
+# GNU General Public License for more details.
+
+# You should have received a copy of the GNU General Public License
+# along with this program. If not, see <http://www.gnu.org/licenses/>.
+
+use strict;
+
+(my $program_name = $0) =~ s|.*/||;
+
+# Turn off localization of executable's output.
+@ENV{qw(LANGUAGE LANG LC_ALL)} = ('C') x 3;
+my $out = 'out';
+
+my @t =
+ (
+ # An empty test name signals that these are the arguments to use for the
+ # following tests.
+ ['', [qw (cbs=3 conv=unblock status=noxfer < )]],
+ ['0', '', ''],
+ ['1', "a\n ", "a\n\n\n"],
+ ['2', "a\n ", "a\n\n"],
+ ['3', "a ", "a\n"],
+ ['4', "a \n ", "a \n\n\n"],
+ ['5', "a \n", "a \n\n"],
+ ['6', "a ", "a\n\n"],
+ ['7', "a \n", "a\n\n\n"],
+ );
+
+my @Tests;
+my $args;
+foreach my $t (@t)
+ {
+ $t->[0] eq ''
+ and $args = $t->[1], next;
+
+ push @Tests, [$t->[0], @$args, {IN=>$t->[1]}, {OUT=>$t->[2]},
+ {ERR_SUBST=>'s/^\d+\+\d+ records (?:in|out)$//'},
+ {ERR=>"\n\n"}];
+ }
+
+my $save_temps = $ENV{DEBUG};
+my $verbose = $ENV{VERBOSE};
+
+my $prog = 'dd';
+my $fail = run_tests ($program_name, $prog, \@Tests, $save_temps, $verbose);
+exit $fail;
diff --git a/tests/df/df-P.sh b/tests/df/df-P.sh
new file mode 100755
index 0000000..373ec02
--- /dev/null
+++ b/tests/df/df-P.sh
@@ -0,0 +1,37 @@
+#!/bin/sh
+# Ensure that df -P is not affected by BLOCK_SIZE settings
+
+# Copyright (C) 2007-2016 Free Software Foundation, Inc.
+
+# This program is free software: you can redistribute it and/or modify
+# it under the terms of the GNU General Public License as published by
+# the Free Software Foundation, either version 3 of the License, or
+# (at your option) any later version.
+
+# This program is distributed in the hope that it will be useful,
+# but WITHOUT ANY WARRANTY; without even the implied warranty of
+# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
+# GNU General Public License for more details.
+
+# You should have received a copy of the GNU General Public License
+# along with this program. If not, see <http://www.gnu.org/licenses/>.
+
+. "${srcdir=.}/tests/init.sh"; path_prepend_ ./src
+print_ver_ df
+
+
+ df -P . > t1 || fail=1
+BLOCK_SIZE=1M df -P . > t2 || fail=1
+
+# Since disk utilization may be changing, compare only df's header line.
+# That records the block size. E.g., for "1M", it would be:
+# Filesystem 1048576-blocks Used Available Capacity Mounted on
+# while for 1K, it would be
+# Filesystem 1024-blocks Used Available Capacity Mounted on
+
+head -n1 t1 > exp || fail=1
+head -n1 t2 > out || fail=1
+
+compare exp out || fail=1
+
+Exit $fail
diff --git a/tests/df/df-output.sh b/tests/df/df-output.sh
new file mode 100755
index 0000000..206300d
--- /dev/null
+++ b/tests/df/df-output.sh
@@ -0,0 +1,140 @@
+#!/bin/sh
+# Exercise df's --output option.
+
+# Copyright (C) 2012-2016 Free Software Foundation, Inc.
+
+# This program is free software: you can redistribute it and/or modify
+# it under the terms of the GNU General Public License as published by
+# the Free Software Foundation, either version 3 of the License, or
+# (at your option) any later version.
+
+# This program is distributed in the hope that it will be useful,
+# but WITHOUT ANY WARRANTY; without even the implied warranty of
+# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
+# GNU General Public License for more details.
+
+# You should have received a copy of the GNU General Public License
+# along with this program. If not, see <http://www.gnu.org/licenses/>.
+
+. "${srcdir=.}/tests/init.sh"; path_prepend_ ./src
+print_ver_ df
+
+# Ensure that --output is mutually exclusive with -i, -P, and -T.
+# Ensure that this limitation is not depending on the order of options.
+cat <<\EOF > exp || framework_failure_
+df: options OPT and --output are mutually exclusive
+Try 'df --help' for more information.
+EOF
+
+df -i --output '.' 2>out && fail=1
+sed 's/ -i / OPT /' out > out2
+compare exp out2 || fail=1
+
+df --output -i '.' 2>out && fail=1
+sed 's/ -i / OPT /' out > out2
+compare exp out2 || fail=1
+
+df -P --output '.' 2>out && fail=1
+sed 's/ -P / OPT /' out > out2
+compare exp out2 || fail=1
+
+df --output -P '.' 2>out && fail=1
+sed 's/ -P / OPT /' out > out2
+compare exp out2 || fail=1
+
+df -T --output '.' 2>out && fail=1
+sed 's/ -T / OPT /' out > out2
+compare exp out2 || fail=1
+
+df --output -T '.' 2>out && fail=1
+sed 's/ -T / OPT /' out > out2
+compare exp out2 || fail=1
+
+# Ensure that each field is only used once for the --output argument.
+cat <<\EOF > exp || framework_failure_
+df: option --output: field 'target' used more than once
+Try 'df --help' for more information.
+EOF
+
+df --output=target,source,target '.' 2>out && fail=1
+compare exp out || fail=1
+
+# Ensure that this limitation also works for splitted --output options.
+df --out=target,source --out=target '.' 2>out && fail=1
+compare exp out || fail=1
+
+# Ensure that the full output includes all fields, and
+# that --o (without argument) is identical to the full list.
+
+cat <<\EOF > exp || framework_failure_
+Filesystem Type Inodes IUsed IFree IUse% Size Used Avail Use% File Mounted on
+EOF
+
+df -h --o=source,fstype,itotal,iused,iavail,ipcent \
+ --o=size,used,avail,pcent,file,target '.' >out || fail=1
+sed -e '1 {
+ s/ [ ]*/ /g
+ q
+ }' out > out2
+compare exp out2 || fail=1
+
+df -h --output '.' >out || fail=1
+sed -e '1 {
+ s/ [ ]*/ /g
+ q
+ }' out > out2
+compare exp out2 || fail=1
+
+# Ensure that --output indicates the block size
+# when not using --human-readable
+cat <<\EOF > exp || framework_failure_
+1K-blocks
+EOF
+
+df -B1K --output=size '.' >out || fail=1
+sed -e '1 {
+ s/ *//
+ q
+ }' out > out2
+compare exp out2 || fail=1
+
+# Ensure that the grand total line now contains a "-" in the TARGET field ...
+cat <<\EOF > exp || framework_failure_
+-
+EOF
+
+df --output=source,target --total '.' >out || fail=1
+sed -n -e '3 {
+ s/^total[ ]*//
+ p
+ q
+ }' out > out2
+compare exp out2 || fail=1
+
+# ... but it should read "total" if there is no SOURCE field.
+cat <<\EOF > exp || framework_failure_
+total
+EOF
+
+df --output=target --total '.' >out || fail=1
+sed -n -e '3 {
+ p
+ q
+ }' out > out2
+compare exp out2 || fail=1
+
+# Ensure that --output is mentioned in the usage.
+df --help > out || fail=1
+grep ' --output' out >/dev/null || { fail=1; cat out; }
+
+# Ensure that the FILE field contains the argument.
+cat <<\EOF > exp || framework_failure_
+.
+exp
+EOF
+
+df --output=file '.' exp >out || fail=1
+sed '1d' out > out2
+compare exp out2 || fail=1
+
+Exit $fail
diff --git a/tests/df/df-symlink.sh b/tests/df/df-symlink.sh
new file mode 100755
index 0000000..01dff24
--- /dev/null
+++ b/tests/df/df-symlink.sh
@@ -0,0 +1,44 @@
+#!/bin/sh
+# Ensure that df dereferences symlinks to disk nodes
+
+# Copyright (C) 2013-2016 Free Software Foundation, Inc.
+
+# This program is free software: you can redistribute it and/or modify
+# it under the terms of the GNU General Public License as published by
+# the Free Software Foundation, either version 3 of the License, or
+# (at your option) any later version.
+
+# This program is distributed in the hope that it will be useful,
+# but WITHOUT ANY WARRANTY; without even the implied warranty of
+# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
+# GNU General Public License for more details.
+
+# You should have received a copy of the GNU General Public License
+# along with this program. If not, see <http://www.gnu.org/licenses/>.
+
+. "${srcdir=.}/tests/init.sh"; path_prepend_ ./src
+print_ver_ df
+
+disk=$(df --out=source '.' | tail -n1) ||
+ skip_ "cannot determine '.' file system"
+
+ln -s "$disk" symlink || framework_failure_
+
+df --out=source,target "$disk" > exp || skip_ "cannot get info for $disk"
+df --out=source,target symlink > out || fail=1
+compare exp out || fail=1
+
+# Ensure we output the same values for device nodes and '.'
+# This was not the case in coreutil-8.22 on systems
+# where the device in the mount list was a symlink itself.
+# I.e., '.' => /dev/mapper/fedora-home -> /dev/dm-2
+# Restrict this test to systems with a 1:1 mapping between
+# source and target. This excludes for example BTRFS sub-volumes.
+if test "$(df --output=source | grep -F "$disk" | wc -l)" = 1; then
+ df --out=source,target '.' > out || fail=1
+ compare exp out || fail=1
+fi
+
+test "$fail" = 1 && dump_mount_list_
+
+Exit $fail
diff --git a/tests/df/header.sh b/tests/df/header.sh
new file mode 100755
index 0000000..db77ddf
--- /dev/null
+++ b/tests/df/header.sh
@@ -0,0 +1,28 @@
+#!/bin/sh
+# Ensure that "df ." outputs a header.
+
+# Copyright (C) 2006-2016 Free Software Foundation, Inc.
+
+# This program is free software: you can redistribute it and/or modify
+# it under the terms of the GNU General Public License as published by
+# the Free Software Foundation, either version 3 of the License, or
+# (at your option) any later version.
+
+# This program is distributed in the hope that it will be useful,
+# but WITHOUT ANY WARRANTY; without even the implied warranty of
+# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
+# GNU General Public License for more details.
+
+# You should have received a copy of the GNU General Public License
+# along with this program. If not, see <http://www.gnu.org/licenses/>.
+
+. "${srcdir=.}/tests/init.sh"; path_prepend_ ./src
+print_ver_ df
+
+case $(df .) in
+*'
+'*) ;;
+*) fail=1;;
+esac
+
+Exit $fail
diff --git a/tests/df/no-mtab-status.sh b/tests/df/no-mtab-status.sh
new file mode 100755
index 0000000..82ee8f6
--- /dev/null
+++ b/tests/df/no-mtab-status.sh
@@ -0,0 +1,125 @@
+#!/bin/sh
+# Test df's behaviour when the mount list cannot be read.
+# This test is skipped on systems that lack LD_PRELOAD support; that's fine.
+
+# Copyright (C) 2012-2016 Free Software Foundation, Inc.
+
+# This program is free software: you can redistribute it and/or modify
+# it under the terms of the GNU General Public License as published by
+# the Free Software Foundation, either version 3 of the License, or
+# (at your option) any later version.
+
+# This program is distributed in the hope that it will be useful,
+# but WITHOUT ANY WARRANTY; without even the implied warranty of
+# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
+# GNU General Public License for more details.
+
+# You should have received a copy of the GNU General Public License
+# along with this program. If not, see <http://www.gnu.org/licenses/>.
+
+. "${srcdir=.}/tests/init.sh"; path_prepend_ ./src
+print_ver_ df
+require_gcc_shared_
+
+# Protect against inaccessible remote mounts etc.
+timeout 10 df || skip_ "df fails"
+
+grep '^#define HAVE_MNTENT_H 1' $CONFIG_HEADER > /dev/null \
+ || skip_ "no mntent.h available to confirm the interface"
+
+grep '^#define HAVE_GETMNTENT 1' $CONFIG_HEADER > /dev/null \
+ || skip_ "getmntent is not used on this system"
+
+# Simulate "mtab" failure.
+cat > k.c <<EOF || framework_failure_
+#define _GNU_SOURCE
+#include <stdio.h>
+#include <errno.h>
+#include <mntent.h>
+#include <string.h>
+#include <dlfcn.h>
+
+#define STREQ(a, b) (strcmp (a, b) == 0)
+
+FILE* fopen(const char *path, const char *mode)
+{
+ static FILE* (*fopen_func)(char const *, char const *);
+
+ /* get reference to original (libc provided) fopen */
+ if (!fopen_func)
+ {
+ fopen_func = (FILE*(*)(char const *, char const *))
+ dlsym(RTLD_NEXT, "fopen");
+ if (!fopen_func)
+ {
+ fprintf (stderr, "Failed to find fopen()\n");
+ errno = ESRCH;
+ return NULL;
+ }
+ }
+
+ /* Returning ENOENT here will get read_file_system_list()
+ to fall back to using getmntent() below. */
+ if (STREQ (path, "/proc/self/mountinfo"))
+ {
+ errno = ENOENT;
+ return NULL;
+ }
+ else
+ return fopen_func(path, mode);
+}
+
+struct mntent *getmntent (FILE *fp)
+{
+ /* Prove that LD_PRELOAD works. */
+ static int done = 0;
+ if (!done)
+ {
+ fclose (fopen ("x", "w"));
+ ++done;
+ }
+ /* Now simulate the failure. */
+ errno = ENOENT;
+ return NULL;
+}
+EOF
+
+# Then compile/link it:
+gcc_shared_ k.c k.so \
+ || framework_failure_ 'failed to build shared library'
+
+cleanup_() { unset LD_PRELOAD; }
+
+export LD_PRELOAD=$LD_PRELOAD:./k.so
+
+# Test if LD_PRELOAD works:
+df 2>/dev/null
+test -f x || skip_ "internal test failure: maybe LD_PRELOAD doesn't work?"
+
+# These tests are supposed to succeed:
+df '.' || fail=1
+df -i '.' || fail=1
+df -T '.' || fail=1
+df -Ti '.' || fail=1
+df --total '.' || fail=1
+
+# These tests are supposed to fail:
+returns_ 1 df || fail=1
+returns_ 1 df -i || fail=1
+returns_ 1 df -T || fail=1
+returns_ 1 df -Ti || fail=1
+returns_ 1 df --total || fail=1
+
+returns_ 1 df -a || fail=1
+returns_ 1 df -a '.' || fail=1
+
+returns_ 1 df -l || fail=1
+returns_ 1 df -l '.' || fail=1
+
+returns_ 1 df -t hello || fail=1
+returns_ 1 df -t hello '.' || fail=1
+
+returns_ 1 df -x hello || fail=1
+returns_ 1 df -x hello '.' || fail=1
+
+Exit $fail
diff --git a/tests/df/over-mount-device.sh b/tests/df/over-mount-device.sh
new file mode 100755
index 0000000..479d36d
--- /dev/null
+++ b/tests/df/over-mount-device.sh
@@ -0,0 +1,59 @@
+#!/bin/sh
+# Ensure that df /dev/loop0 errors out if overmounted by another device
+
+# Copyright (C) 2014-2016 Free Software Foundation, Inc.
+
+# This program is free software: you can redistribute it and/or modify
+# it under the terms of the GNU General Public License as published by
+# the Free Software Foundation, either version 3 of the License, or
+# (at your option) any later version.
+
+# This program is distributed in the hope that it will be useful,
+# but WITHOUT ANY WARRANTY; without even the implied warranty of
+# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
+# GNU General Public License for more details.
+
+# You should have received a copy of the GNU General Public License
+# along with this program. If not, see <http://www.gnu.org/licenses/>.
+
+. "${srcdir=.}/tests/init.sh"; path_prepend_ ./src
+print_ver_ df
+require_root_
+
+cwd=$(pwd)
+cleanup_() { cd /; umount "$cwd/mnt"; umount "$cwd/mnt"; }
+
+skip=0
+
+# Create 2 file systems
+for i in 1 2; do
+ dd if=/dev/zero of=blob$i bs=8192 count=200 > /dev/null 2>&1 \
+ || skip=1
+ mkfs -t ext2 -F blob$i \
+ || skip_ "failed to create ext2 file system"
+done
+
+# Mount both at the same place (eclipsing the first)
+mkdir mnt || skip=1
+mount -oloop blob1 mnt || skip=1
+eclipsed_dev=$(df --o=source mnt | tail -n1) || skip=1
+mount -oloop blob2 mnt || skip=1
+
+test $skip = 1 \
+ && skip_ "insufficient mount/ext2 support"
+
+df . || skip_ "failed to lookup the device for the current dir"
+
+echo "df: cannot access '$eclipsed_dev': over-mounted by another device" > exp
+
+# We should get an error for the eclipsed device and continue
+df $eclipsed_dev . > out 2> err && fail=1
+
+# header and single entry in output
+test $(wc -l < out) = 2 || fail=1
+
+compare exp err || fail=1
+
+test "$fail" = 1 && dump_mount_list_
+
+Exit $fail
diff --git a/tests/df/problematic-chars.sh b/tests/df/problematic-chars.sh
new file mode 100755
index 0000000..59ee055
--- /dev/null
+++ b/tests/df/problematic-chars.sh
@@ -0,0 +1,46 @@
+#!/bin/sh
+# Ensure that df outputs one line per entry
+
+# Copyright (C) 2012-2016 Free Software Foundation, Inc.
+
+# This program is free software: you can redistribute it and/or modify
+# it under the terms of the GNU General Public License as published by
+# the Free Software Foundation, either version 3 of the License, or
+# (at your option) any later version.
+
+# This program is distributed in the hope that it will be useful,
+# but WITHOUT ANY WARRANTY; without even the implied warranty of
+# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
+# GNU General Public License for more details.
+
+# You should have received a copy of the GNU General Public License
+# along with this program. If not, see <http://www.gnu.org/licenses/>.
+
+. "${srcdir=.}/tests/init.sh"; path_prepend_ ./src
+print_ver_ df
+require_root_
+
+mnt='mount
+point'
+
+cwd=$(pwd)
+cleanup_() { cd /; umount "$cwd/$mnt"; }
+
+skip=0
+# Create a file system, then mount it.
+dd if=/dev/zero of=blob bs=8192 count=200 > /dev/null 2>&1 \
+ || skip=1
+mkdir "$mnt" || skip=1
+mkfs -t ext2 -F blob \
+ || skip_ "failed to create ext2 file system"
+
+mount -oloop blob "$mnt" || skip=1
+
+test $skip = 1 \
+ && skip_ "insufficient mount/ext2 support"
+
+test $(df "$mnt" | wc -l) = 2 || fail=1
+
+test "$fail" = 1 && dump_mount_list_
+
+Exit $fail
diff --git a/tests/df/skip-duplicates.sh b/tests/df/skip-duplicates.sh
new file mode 100755
index 0000000..1b980b6
--- /dev/null
+++ b/tests/df/skip-duplicates.sh
@@ -0,0 +1,190 @@
+#!/bin/sh
+# Test df's behavior when the mount list contains duplicate entries.
+# This test is skipped on systems that lack LD_PRELOAD support; that's fine.
+
+# Copyright (C) 2012-2016 Free Software Foundation, Inc.
+
+# This program is free software: you can redistribute it and/or modify
+# it under the terms of the GNU General Public License as published by
+# the Free Software Foundation, either version 3 of the License, or
+# (at your option) any later version.
+
+# This program is distributed in the hope that it will be useful,
+# but WITHOUT ANY WARRANTY; without even the implied warranty of
+# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
+# GNU General Public License for more details.
+
+# You should have received a copy of the GNU General Public License
+# along with this program. If not, see <http://www.gnu.org/licenses/>.
+
+. "${srcdir=.}/tests/init.sh"; path_prepend_ ./src
+print_ver_ df
+require_gcc_shared_
+
+# We use --local here so as to not activate
+# potentially very many remote mounts.
+df --local || skip_ 'df fails'
+
+export CU_NONROOT_FS=$(df --local --output=target 2>&1 | grep /. | head -n1)
+export CU_REMOTE_FS=$(df --local --output=target 2>&1 | grep /. |
+ tail -n+2 | head -n1)
+
+unique_entries=1
+test -z "$CU_NONROOT_FS" || unique_entries=$(expr $unique_entries + 1)
+test -z "$CU_REMOTE_FS" || unique_entries=$(expr $unique_entries + 2)
+
+grep '^#define HAVE_MNTENT_H 1' $CONFIG_HEADER > /dev/null \
+ || skip_ "no mntent.h available to confirm the interface"
+
+grep '^#define HAVE_GETMNTENT 1' $CONFIG_HEADER > /dev/null \
+ || skip_ "getmntent is not used on this system"
+
+# Simulate an mtab file to test various cases.
+cat > k.c <<EOF || framework_failure_
+#define _GNU_SOURCE
+#include <stdio.h>
+#include <stdlib.h>
+#include <errno.h>
+#include <mntent.h>
+#include <string.h>
+#include <dlfcn.h>
+
+#define STREQ(a, b) (strcmp (a, b) == 0)
+
+FILE* fopen(const char *path, const char *mode)
+{
+ static FILE* (*fopen_func)(char const *, char const *);
+
+ /* get reference to original (libc provided) fopen */
+ if (!fopen_func)
+ {
+ fopen_func = (FILE*(*)(char const *, char const *))
+ dlsym(RTLD_NEXT, "fopen");
+ if (!fopen_func)
+ {
+ fprintf (stderr, "Failed to find fopen()\n");
+ errno = ESRCH;
+ return NULL;
+ }
+ }
+
+ /* Returning ENOENT here will get read_file_system_list()
+ to fall back to using getmntent() below. */
+ if (STREQ (path, "/proc/self/mountinfo"))
+ {
+ errno = ENOENT;
+ return NULL;
+ }
+ else
+ return fopen_func(path, mode);
+}
+
+#define STREQ(a, b) (strcmp (a, b) == 0)
+
+struct mntent *getmntent (FILE *fp)
+{
+ static char *nonroot_fs;
+ static char *remote_fs;
+ static int done;
+
+ /* Prove that LD_PRELOAD works. */
+ if (!done)
+ {
+ fclose (fopen ("x", "w"));
+ ++done;
+ }
+
+ static struct mntent mntents[] = {
+ {.mnt_fsname="/short", .mnt_dir="/invalid/mount/dir", .mnt_opts=""},
+ {.mnt_fsname="fsname", .mnt_dir="/", .mnt_opts=""},
+ {.mnt_fsname="/fsname", .mnt_dir="/.", .mnt_opts=""},
+ {.mnt_fsname="/fsname", .mnt_dir="/", .mnt_opts=""},
+ {.mnt_fsname="virtfs", .mnt_dir="/NONROOT", .mnt_type="t1", .mnt_opts=""},
+ {.mnt_fsname="virtfs2", .mnt_dir="/NONROOT", .mnt_type="t2", .mnt_opts=""},
+ {.mnt_fsname="netns", .mnt_dir="net:[1234567]", .mnt_opts=""},
+ {.mnt_fsname="rem:ote1",.mnt_dir="/REMOTE", .mnt_opts=""},
+ {.mnt_fsname="rem:ote1",.mnt_dir="/REMOTE", .mnt_opts=""},
+ {.mnt_fsname="rem:ote2",.mnt_dir="/REMOTE", .mnt_opts=""},
+ };
+
+ if (done == 1)
+ {
+ nonroot_fs = getenv ("CU_NONROOT_FS");
+ if (!nonroot_fs || !*nonroot_fs)
+ nonroot_fs = "/"; /* merge into / entries. */
+
+ remote_fs = getenv ("CU_REMOTE_FS");
+ }
+
+ if (done == 1 && !getenv ("CU_TEST_DUPE_INVALID"))
+ done++; /* skip the first entry. */
+
+ while (done++ <= 10)
+ {
+ if (!mntents[done-2].mnt_type)
+ mntents[done-2].mnt_type = "-";
+ if (!mntents[done-2].mnt_opts)
+ mntents[done-2].mnt_opts = "-";
+ if (STREQ (mntents[done-2].mnt_dir, "/NONROOT"))
+ mntents[done-2].mnt_dir = nonroot_fs;
+ if (STREQ (mntents[done-2].mnt_dir, "/REMOTE"))
+ {
+ if (!remote_fs || !*remote_fs)
+ continue;
+ else
+ mntents[done-2].mnt_dir = remote_fs;
+ }
+ return &mntents[done-2];
+ }
+
+ return NULL;
+}
+EOF
+
+# Then compile/link it:
+gcc_shared_ k.c k.so \
+ || framework_failure_ 'failed to build shared library'
+
+# Test if LD_PRELOAD works:
+LD_PRELOAD=$LD_PRELOAD:./k.so df
+test -f x || skip_ "internal test failure: maybe LD_PRELOAD doesn't work?"
+
+# The fake mtab file should only contain entries
+# having the same device number; thus the output should
+# consist of a header and unique entries.
+LD_PRELOAD=$LD_PRELOAD:./k.so df -T >out || fail=1
+test $(wc -l <out) -eq $(expr 1 + $unique_entries) || { fail=1; cat out; }
+
+# With --total we should suppress the duplicate but separate remote file system
+LD_PRELOAD=$LD_PRELOAD:./k.so df --total >out || fail=1
+test "$CU_REMOTE_FS" && elide_remote=1 || elide_remote=0
+test $(wc -l <out) -eq $(expr 2 + $unique_entries - $elide_remote) ||
+ { fail=1; cat out; }
+
+# Ensure we don't fail when unable to stat (currently) unavailable entries
+LD_PRELOAD=$LD_PRELOAD:./k.so CU_TEST_DUPE_INVALID=1 df -T >out || fail=1
+test $(wc -l <out) -eq $(expr 1 + $unique_entries) || { fail=1; cat out; }
+
+# df should also prefer "/fsname" over "fsname"
+if test "$unique_entries" = 2; then
+ test $(grep -c '/fsname' <out) -eq 1 || { fail=1; cat out; }
+ # ... and "/fsname" with '/' as Mounted on over '/.'
+ test $(grep -cF '/.' <out) -eq 0 || { fail=1; cat out; }
+fi
+
+# df should use the last seen devname (mnt_fsname) and devtype (mnt_type)
+test $(grep -c 'virtfs2.*t2' <out) -eq 1 || { fail=1; cat out; }
+
+# Ensure that filtering duplicates does not affect -a processing.
+LD_PRELOAD=$LD_PRELOAD:./k.so df -a >out || fail=1
+total_fs=6; test "$CU_REMOTE_FS" && total_fs=$(expr $total_fs + 3)
+test $(wc -l <out) -eq $total_fs || { fail=1; cat out; }
+# Ensure placeholder "-" values used for the eclipsed "virtfs"
+test $(grep -c 'virtfs *-' <out) -eq 1 || { fail=1; cat out; }
+
+# Ensure that filtering duplicates does not affect
+# argument processing (now without the fake getmntent()).
+df '.' '.' >out || fail=1
+test $(wc -l <out) -eq 3 || { fail=1; cat out; }
+
+Exit $fail
diff --git a/tests/df/skip-rootfs.sh b/tests/df/skip-rootfs.sh
new file mode 100755
index 0000000..c893144
--- /dev/null
+++ b/tests/df/skip-rootfs.sh
@@ -0,0 +1,53 @@
+#!/bin/sh
+# Test df's behavior for skipping the pseudo "rootfs" file system.
+
+# Copyright (C) 2012-2016 Free Software Foundation, Inc.
+
+# This program is free software: you can redistribute it and/or modify
+# it under the terms of the GNU General Public License as published by
+# the Free Software Foundation, either version 3 of the License, or
+# (at your option) any later version.
+
+# This program is distributed in the hope that it will be useful,
+# but WITHOUT ANY WARRANTY; without even the implied warranty of
+# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
+# GNU General Public License for more details.
+
+# You should have received a copy of the GNU General Public License
+# along with this program. If not, see <http://www.gnu.org/licenses/>.
+
+. "${srcdir=.}/tests/init.sh"; path_prepend_ ./src
+print_ver_ df
+
+# Protect against inaccessible remote mounts etc.
+timeout 10 df || skip_ "df fails"
+
+# Verify that rootfs is in mtab (and shown when the -a option is specified).
+# Note this is the case when /proc/self/mountinfo is parsed
+# rather than /proc/mounts. I.e., when libmount is being used.
+df -a >out || fail=1
+grep '^rootfs' out || skip_ 'no rootfs in mtab'
+
+# Ensure that rootfs is suppressed when no options is specified.
+df >out || fail=1
+grep '^rootfs' out && { fail=1; cat out; }
+
+# Ensure that rootfs is yet skipped when explicitly specifying "-t rootfs".
+# As df emits "no file systems processed" in this case, it would be a failure
+# if df exited with status Zero.
+returns_ 1 df -t rootfs >out || fail=1
+grep '^rootfs' out && { fail=1; cat out; }
+
+# Ensure that the rootfs is shown when explicitly both specifying "-t rootfs"
+# and the -a option.
+df -t rootfs -a >out || fail=1
+grep '^rootfs' out || { fail=1; cat out; }
+
+# Ensure that the rootfs is omitted in all_fs mode when it is explicitly
+# black-listed.
+df -a -x rootfs >out || fail=1
+grep '^rootfs' out && { fail=1; cat out; }
+
+test "$fail" = 1 && dump_mount_list_
+
+Exit $fail
diff --git a/tests/df/total-unprocessed.sh b/tests/df/total-unprocessed.sh
new file mode 100755
index 0000000..10d16a4
--- /dev/null
+++ b/tests/df/total-unprocessed.sh
@@ -0,0 +1,44 @@
+#!/bin/sh
+# Ensure that df exits non-Zero and writes an error message when
+# --total is used but no file system has been processed.
+
+# Copyright (C) 2012-2016 Free Software Foundation, Inc.
+
+# This program is free software: you can redistribute it and/or modify
+# it under the terms of the GNU General Public License as published by
+# the Free Software Foundation, either version 3 of the License, or
+# (at your option) any later version.
+
+# This program is distributed in the hope that it will be useful,
+# but WITHOUT ANY WARRANTY; without even the implied warranty of
+# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
+# GNU General Public License for more details.
+
+# You should have received a copy of the GNU General Public License
+# along with this program. If not, see <http://www.gnu.org/licenses/>.
+
+. "${srcdir=.}/tests/init.sh"; path_prepend_ ./src
+print_ver_ df
+require_mount_list_
+
+cat <<\EOF > exp || framework_failure_
+df: no file systems processed
+EOF
+
+# Check we exit with non-Zero.
+# Note we don't check when the file system can't be determined
+# as -t filtering is not applied in that case.
+if test "$(df --output=fstype . | tail -n1)" != '-'; then
+ df -t _non_existent_fstype_ --total . 2>out && fail=1
+ compare exp out || fail=1
+fi
+
+cat <<\EOF > exp || framework_failure_
+df: _does_not_exist_: No such file or directory
+EOF
+
+# Ensure that df writes the error message also in the following case.
+df --total _does_not_exist_ 2>out && fail=1
+compare exp out || fail=1
+
+Exit $fail
diff --git a/tests/df/total-verify.sh b/tests/df/total-verify.sh
new file mode 100755
index 0000000..79722e4
--- /dev/null
+++ b/tests/df/total-verify.sh
@@ -0,0 +1,67 @@
+#!/bin/sh
+# Ensure "df --total" computes accurate totals
+
+# Copyright (C) 2008-2016 Free Software Foundation, Inc.
+
+# This program is free software: you can redistribute it and/or modify
+# it under the terms of the GNU General Public License as published by
+# the Free Software Foundation, either version 3 of the License, or
+# (at your option) any later version.
+
+# This program is distributed in the hope that it will be useful,
+# but WITHOUT ANY WARRANTY; without even the implied warranty of
+# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
+# GNU General Public License for more details.
+
+# You should have received a copy of the GNU General Public License
+# along with this program. If not, see <http://www.gnu.org/licenses/>.
+
+. "${srcdir=.}/tests/init.sh"; path_prepend_ ./src
+print_ver_ df
+require_perl_
+
+# Protect against inaccessible remote mounts etc.
+timeout 10 df || skip_ "df fails"
+
+cat <<\EOF > check-df || framework_failure_
+my ($total, $used, $avail) = (0, 0, 0);
+while (<>)
+ {
+ $. == 1
+ and next; # skip first (header) line
+ # Recognize df output lines like these:
+ # /dev/sdc1 0 0 0 - /c
+ # tmpfs 1536000 12965 1523035 1% /tmp
+ # total 5285932 787409 4498523 15% -
+ /^(.*?) +(-?\d+|-) +(-?\d+|-) +(-?\d+|-) +(?:-|[0-9]+%) (.*)$/
+ or die "$0: invalid input line\n: $_";
+ if ($1 eq 'total' && $5 eq '-')
+ {
+ $total == $2 or die "$total != $2";
+ $used == $3 or die "$used != $3";
+ $avail == $4 or die "$avail != $4";
+ my $line = <>;
+ defined $line
+ and die "$0: extra line(s) after totals\n";
+ exit 0;
+ }
+ $total += $2 unless $2 eq '-';
+ $used += $3 unless $3 eq '-';
+ $avail += $4 unless $4 eq '-';
+ }
+die "$0: missing line of totals\n";
+EOF
+
+# Use --block-size=512 to keep df from printing rounded-to-kilobyte
+# numbers which wouldn't necessarily add up to the displayed total.
+df --total -P --block-size=512 > space || framework_failure_
+cat space # this helps when debugging any test failure
+df --total -i -P > inode || framework_failure_
+cat inode
+
+$PERL check-df space || fail=1
+$PERL check-df inode || fail=1
+
+test "$fail" = 1 && dump_mount_list_
+
+Exit $fail
diff --git a/tests/df/unreadable.sh b/tests/df/unreadable.sh
new file mode 100755
index 0000000..c575472
--- /dev/null
+++ b/tests/df/unreadable.sh
@@ -0,0 +1,29 @@
+#!/bin/sh
+# ensure that df can handle an unreadable argument
+
+# Copyright (C) 2009-2016 Free Software Foundation, Inc.
+
+# This program is free software: you can redistribute it and/or modify
+# it under the terms of the GNU General Public License as published by
+# the Free Software Foundation, either version 3 of the License, or
+# (at your option) any later version.
+
+# This program is distributed in the hope that it will be useful,
+# but WITHOUT ANY WARRANTY; without even the implied warranty of
+# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
+# GNU General Public License for more details.
+
+# You should have received a copy of the GNU General Public License
+# along with this program. If not, see <http://www.gnu.org/licenses/>.
+
+. "${srcdir=.}/tests/init.sh"; path_prepend_ ./src
+print_ver_ df
+skip_if_root_
+
+touch unreadable || fail=1
+chmod a-r unreadable || fail=1
+df unreadable || fail=1
+
+test "$fail" = 1 && dump_mount_list_
+
+Exit $fail
diff --git a/tests/dircolors/Makefile.am b/tests/dircolors/Makefile.am
deleted file mode 100644
index 41e754e..0000000
--- a/tests/dircolors/Makefile.am
+++ /dev/null
@@ -1,13 +0,0 @@
-## Process this file with automake to produce Makefile.in -*-Makefile-*-.
-
-EXTRA_DIST = $(TESTS)
-
-TESTS_ENVIRONMENT = \
- top_srcdir=$(top_srcdir) \
- srcdir=$(srcdir) \
- PERL="$(PERL)" \
- CU_TEST_NAME=`basename $(abs_srcdir)`,$$tst \
- PATH="$(VG_PATH_PREFIX)`pwd`/../../src$(PATH_SEPARATOR)$$PATH" \
- PROG=dircolors
-
-TESTS = simple
diff --git a/tests/dircolors/Makefile.in b/tests/dircolors/Makefile.in
deleted file mode 100644
index 9908cbf..0000000
--- a/tests/dircolors/Makefile.in
+++ /dev/null
@@ -1,720 +0,0 @@
-# Makefile.in generated by automake 1.10 from Makefile.am.
-# @configure_input@
-
-# Copyright (C) 1994, 1995, 1996, 1997, 1998, 1999, 2000, 2001, 2002,
-# 2003, 2004, 2005, 2006 Free Software Foundation, Inc.
-# This Makefile.in is free software; the Free Software Foundation
-# gives unlimited permission to copy and/or distribute it,
-# with or without modifications, as long as this notice is preserved.
-
-# This program is distributed in the hope that it will be useful,
-# but WITHOUT ANY WARRANTY, to the extent permitted by law; without
-# even the implied warranty of MERCHANTABILITY or FITNESS FOR A
-# PARTICULAR PURPOSE.
-
-@SET_MAKE@
-VPATH = @srcdir@
-pkgdatadir = $(datadir)/@PACKAGE@
-pkglibdir = $(libdir)/@PACKAGE@
-pkgincludedir = $(includedir)/@PACKAGE@
-am__cd = CDPATH="$${ZSH_VERSION+.}$(PATH_SEPARATOR)" && cd
-install_sh_DATA = $(install_sh) -c -m 644
-install_sh_PROGRAM = $(install_sh) -c
-install_sh_SCRIPT = $(install_sh) -c
-INSTALL_HEADER = $(INSTALL_DATA)
-transform = $(program_transform_name)
-NORMAL_INSTALL = :
-PRE_INSTALL = :
-POST_INSTALL = :
-NORMAL_UNINSTALL = :
-PRE_UNINSTALL = :
-POST_UNINSTALL = :
-build_triplet = @build@
-host_triplet = @host@
-subdir = tests/dircolors
-DIST_COMMON = $(srcdir)/Makefile.am $(srcdir)/Makefile.in
-ACLOCAL_M4 = $(top_srcdir)/aclocal.m4
-am__aclocal_m4_deps = $(top_srcdir)/m4/absolute-header.m4 \
- $(top_srcdir)/m4/acl.m4 $(top_srcdir)/m4/alloca.m4 \
- $(top_srcdir)/m4/allocsa.m4 $(top_srcdir)/m4/argmatch.m4 \
- $(top_srcdir)/m4/arpa_inet_h.m4 $(top_srcdir)/m4/assert.m4 \
- $(top_srcdir)/m4/atexit.m4 $(top_srcdir)/m4/autobuild.m4 \
- $(top_srcdir)/m4/backupfile.m4 $(top_srcdir)/m4/base64.m4 \
- $(top_srcdir)/m4/bison.m4 $(top_srcdir)/m4/boottime.m4 \
- $(top_srcdir)/m4/c-strtod.m4 $(top_srcdir)/m4/calloc.m4 \
- $(top_srcdir)/m4/canon-host.m4 \
- $(top_srcdir)/m4/canonicalize.m4 \
- $(top_srcdir)/m4/chdir-long.m4 $(top_srcdir)/m4/check-decl.m4 \
- $(top_srcdir)/m4/chown.m4 $(top_srcdir)/m4/clock_time.m4 \
- $(top_srcdir)/m4/cloexec.m4 $(top_srcdir)/m4/close-stream.m4 \
- $(top_srcdir)/m4/closeout.m4 $(top_srcdir)/m4/codeset.m4 \
- $(top_srcdir)/m4/config-h.m4 $(top_srcdir)/m4/cycle-check.m4 \
- $(top_srcdir)/m4/d-ino.m4 $(top_srcdir)/m4/d-type.m4 \
- $(top_srcdir)/m4/dirfd.m4 $(top_srcdir)/m4/dirname.m4 \
- $(top_srcdir)/m4/dos.m4 $(top_srcdir)/m4/double-slash-root.m4 \
- $(top_srcdir)/m4/dup2.m4 $(top_srcdir)/m4/eealloc.m4 \
- $(top_srcdir)/m4/eoverflow.m4 $(top_srcdir)/m4/error.m4 \
- $(top_srcdir)/m4/euidaccess-stat.m4 \
- $(top_srcdir)/m4/euidaccess.m4 $(top_srcdir)/m4/exclude.m4 \
- $(top_srcdir)/m4/exitfail.m4 $(top_srcdir)/m4/extensions.m4 \
- $(top_srcdir)/m4/fchdir.m4 $(top_srcdir)/m4/fcntl-safer.m4 \
- $(top_srcdir)/m4/fcntl_h.m4 $(top_srcdir)/m4/fd-reopen.m4 \
- $(top_srcdir)/m4/file-type.m4 $(top_srcdir)/m4/fileblocks.m4 \
- $(top_srcdir)/m4/filemode.m4 $(top_srcdir)/m4/filenamecat.m4 \
- $(top_srcdir)/m4/flexmember.m4 $(top_srcdir)/m4/fnmatch.m4 \
- $(top_srcdir)/m4/fpending.m4 $(top_srcdir)/m4/fprintftime.m4 \
- $(top_srcdir)/m4/free.m4 $(top_srcdir)/m4/fstypename.m4 \
- $(top_srcdir)/m4/fsusage.m4 $(top_srcdir)/m4/ftruncate.m4 \
- $(top_srcdir)/m4/fts.m4 $(top_srcdir)/m4/getaddrinfo.m4 \
- $(top_srcdir)/m4/getcwd-abort-bug.m4 \
- $(top_srcdir)/m4/getcwd-path-max.m4 $(top_srcdir)/m4/getcwd.m4 \
- $(top_srcdir)/m4/getdate.m4 $(top_srcdir)/m4/getdelim.m4 \
- $(top_srcdir)/m4/getgroups.m4 $(top_srcdir)/m4/gethostname.m4 \
- $(top_srcdir)/m4/gethrxtime.m4 $(top_srcdir)/m4/getline.m4 \
- $(top_srcdir)/m4/getloadavg.m4 $(top_srcdir)/m4/getndelim2.m4 \
- $(top_srcdir)/m4/getopt.m4 $(top_srcdir)/m4/getpagesize.m4 \
- $(top_srcdir)/m4/getpass.m4 $(top_srcdir)/m4/gettext.m4 \
- $(top_srcdir)/m4/gettime.m4 $(top_srcdir)/m4/gettimeofday.m4 \
- $(top_srcdir)/m4/getugroups.m4 \
- $(top_srcdir)/m4/getusershell.m4 $(top_srcdir)/m4/glibc21.m4 \
- $(top_srcdir)/m4/gnulib-common.m4 \
- $(top_srcdir)/m4/gnulib-comp.m4 \
- $(top_srcdir)/m4/group-member.m4 \
- $(top_srcdir)/m4/hard-locale.m4 $(top_srcdir)/m4/hash.m4 \
- $(top_srcdir)/m4/host-os.m4 $(top_srcdir)/m4/human.m4 \
- $(top_srcdir)/m4/i-ring.m4 $(top_srcdir)/m4/iconv.m4 \
- $(top_srcdir)/m4/idcache.m4 $(top_srcdir)/m4/inet_ntop.m4 \
- $(top_srcdir)/m4/inline.m4 $(top_srcdir)/m4/intmax_t.m4 \
- $(top_srcdir)/m4/inttostr.m4 $(top_srcdir)/m4/inttypes-pri.m4 \
- $(top_srcdir)/m4/inttypes.m4 $(top_srcdir)/m4/inttypes_h.m4 \
- $(top_srcdir)/m4/isapipe.m4 $(top_srcdir)/m4/jm-macros.m4 \
- $(top_srcdir)/m4/jm-winsz1.m4 $(top_srcdir)/m4/jm-winsz2.m4 \
- $(top_srcdir)/m4/lchmod.m4 $(top_srcdir)/m4/lchown.m4 \
- $(top_srcdir)/m4/lib-check.m4 $(top_srcdir)/m4/lib-ignore.m4 \
- $(top_srcdir)/m4/lib-ld.m4 $(top_srcdir)/m4/lib-link.m4 \
- $(top_srcdir)/m4/lib-prefix.m4 $(top_srcdir)/m4/link-follow.m4 \
- $(top_srcdir)/m4/localcharset.m4 \
- $(top_srcdir)/m4/long-options.m4 \
- $(top_srcdir)/m4/longdouble.m4 $(top_srcdir)/m4/longlong.m4 \
- $(top_srcdir)/m4/ls-mntd-fs.m4 $(top_srcdir)/m4/lstat.m4 \
- $(top_srcdir)/m4/mbchar.m4 $(top_srcdir)/m4/mbiter.m4 \
- $(top_srcdir)/m4/mbrtowc.m4 $(top_srcdir)/m4/mbscasecmp.m4 \
- $(top_srcdir)/m4/mbstate_t.m4 $(top_srcdir)/m4/mbswidth.m4 \
- $(top_srcdir)/m4/md5.m4 $(top_srcdir)/m4/memcasecmp.m4 \
- $(top_srcdir)/m4/memchr.m4 $(top_srcdir)/m4/memcmp.m4 \
- $(top_srcdir)/m4/memcoll.m4 $(top_srcdir)/m4/memcpy.m4 \
- $(top_srcdir)/m4/memmove.m4 $(top_srcdir)/m4/mempcpy.m4 \
- $(top_srcdir)/m4/memrchr.m4 $(top_srcdir)/m4/memset.m4 \
- $(top_srcdir)/m4/memxfrm.m4 $(top_srcdir)/m4/mkancesdirs.m4 \
- $(top_srcdir)/m4/mkdir-p.m4 $(top_srcdir)/m4/mkdir-slash.m4 \
- $(top_srcdir)/m4/mkstemp.m4 $(top_srcdir)/m4/mktime.m4 \
- $(top_srcdir)/m4/modechange.m4 $(top_srcdir)/m4/mountlist.m4 \
- $(top_srcdir)/m4/mpsort.m4 $(top_srcdir)/m4/nanosleep.m4 \
- $(top_srcdir)/m4/netinet_in_h.m4 $(top_srcdir)/m4/nls.m4 \
- $(top_srcdir)/m4/openat.m4 $(top_srcdir)/m4/pathmax.m4 \
- $(top_srcdir)/m4/perl.m4 $(top_srcdir)/m4/physmem.m4 \
- $(top_srcdir)/m4/po.m4 $(top_srcdir)/m4/posixtm.m4 \
- $(top_srcdir)/m4/posixver.m4 $(top_srcdir)/m4/prereq.m4 \
- $(top_srcdir)/m4/progtest.m4 $(top_srcdir)/m4/putenv.m4 \
- $(top_srcdir)/m4/quote.m4 $(top_srcdir)/m4/quotearg.m4 \
- $(top_srcdir)/m4/randint.m4 $(top_srcdir)/m4/randperm.m4 \
- $(top_srcdir)/m4/randread.m4 $(top_srcdir)/m4/readlink.m4 \
- $(top_srcdir)/m4/readtokens.m4 $(top_srcdir)/m4/readutmp.m4 \
- $(top_srcdir)/m4/regex.m4 \
- $(top_srcdir)/m4/rename-dest-slash.m4 \
- $(top_srcdir)/m4/rename.m4 $(top_srcdir)/m4/rmdir-errno.m4 \
- $(top_srcdir)/m4/rmdir.m4 $(top_srcdir)/m4/root-dev-ino.m4 \
- $(top_srcdir)/m4/rpmatch.m4 $(top_srcdir)/m4/safe-read.m4 \
- $(top_srcdir)/m4/safe-write.m4 $(top_srcdir)/m4/same.m4 \
- $(top_srcdir)/m4/save-cwd.m4 $(top_srcdir)/m4/savedir.m4 \
- $(top_srcdir)/m4/savewd.m4 $(top_srcdir)/m4/setenv.m4 \
- $(top_srcdir)/m4/settime.m4 $(top_srcdir)/m4/sha1.m4 \
- $(top_srcdir)/m4/sha256.m4 $(top_srcdir)/m4/sha512.m4 \
- $(top_srcdir)/m4/sig2str.m4 $(top_srcdir)/m4/snprintf.m4 \
- $(top_srcdir)/m4/socklen.m4 $(top_srcdir)/m4/sockpfaf.m4 \
- $(top_srcdir)/m4/ssize_t.m4 $(top_srcdir)/m4/st_dm_mode.m4 \
- $(top_srcdir)/m4/stat-prog.m4 $(top_srcdir)/m4/stat-time.m4 \
- $(top_srcdir)/m4/stdarg.m4 $(top_srcdir)/m4/stdbool.m4 \
- $(top_srcdir)/m4/stdint.m4 $(top_srcdir)/m4/stdint_h.m4 \
- $(top_srcdir)/m4/stdio-safer.m4 $(top_srcdir)/m4/stdio_h.m4 \
- $(top_srcdir)/m4/stdlib-safer.m4 $(top_srcdir)/m4/stdlib_h.m4 \
- $(top_srcdir)/m4/stpcpy.m4 $(top_srcdir)/m4/strcspn.m4 \
- $(top_srcdir)/m4/strdup.m4 $(top_srcdir)/m4/strftime.m4 \
- $(top_srcdir)/m4/string_h.m4 $(top_srcdir)/m4/strndup.m4 \
- $(top_srcdir)/m4/strnlen.m4 $(top_srcdir)/m4/strnumcmp.m4 \
- $(top_srcdir)/m4/strpbrk.m4 $(top_srcdir)/m4/strtod.m4 \
- $(top_srcdir)/m4/strtoimax.m4 $(top_srcdir)/m4/strtol.m4 \
- $(top_srcdir)/m4/strtoll.m4 $(top_srcdir)/m4/strtoul.m4 \
- $(top_srcdir)/m4/strtoull.m4 $(top_srcdir)/m4/strtoumax.m4 \
- $(top_srcdir)/m4/strverscmp.m4 \
- $(top_srcdir)/m4/sys_socket_h.m4 \
- $(top_srcdir)/m4/sys_stat_h.m4 $(top_srcdir)/m4/sys_time_h.m4 \
- $(top_srcdir)/m4/tempname.m4 $(top_srcdir)/m4/time_h.m4 \
- $(top_srcdir)/m4/time_r.m4 $(top_srcdir)/m4/timespec.m4 \
- $(top_srcdir)/m4/tm_gmtoff.m4 $(top_srcdir)/m4/tzset.m4 \
- $(top_srcdir)/m4/unicodeio.m4 $(top_srcdir)/m4/unistd-safer.m4 \
- $(top_srcdir)/m4/unistd_h.m4 $(top_srcdir)/m4/unlink-busy.m4 \
- $(top_srcdir)/m4/unlinkdir.m4 $(top_srcdir)/m4/unlocked-io.m4 \
- $(top_srcdir)/m4/uptime.m4 $(top_srcdir)/m4/userspec.m4 \
- $(top_srcdir)/m4/utimbuf.m4 $(top_srcdir)/m4/utime.m4 \
- $(top_srcdir)/m4/utimecmp.m4 $(top_srcdir)/m4/utimens.m4 \
- $(top_srcdir)/m4/utimes-null.m4 $(top_srcdir)/m4/utimes.m4 \
- $(top_srcdir)/m4/vasnprintf.m4 $(top_srcdir)/m4/vasprintf.m4 \
- $(top_srcdir)/m4/wchar.m4 $(top_srcdir)/m4/wchar_t.m4 \
- $(top_srcdir)/m4/wctype.m4 $(top_srcdir)/m4/wcwidth.m4 \
- $(top_srcdir)/m4/wint_t.m4 $(top_srcdir)/m4/xalloc.m4 \
- $(top_srcdir)/m4/xfts.m4 $(top_srcdir)/m4/xgetcwd.m4 \
- $(top_srcdir)/m4/xnanosleep.m4 $(top_srcdir)/m4/xstrndup.m4 \
- $(top_srcdir)/m4/xstrtod.m4 $(top_srcdir)/m4/xstrtol.m4 \
- $(top_srcdir)/m4/yesno.m4 $(top_srcdir)/configure.ac
-am__configure_deps = $(am__aclocal_m4_deps) $(CONFIGURE_DEPENDENCIES) \
- $(ACLOCAL_M4)
-mkinstalldirs = $(install_sh) -d
-CONFIG_HEADER = $(top_builddir)/lib/config.h
-CONFIG_CLEAN_FILES =
-SOURCES =
-DIST_SOURCES =
-DISTFILES = $(DIST_COMMON) $(DIST_SOURCES) $(TEXINFOS) $(EXTRA_DIST)
-ABSOLUTE_DIRENT_H = @ABSOLUTE_DIRENT_H@
-ABSOLUTE_FCNTL_H = @ABSOLUTE_FCNTL_H@
-ABSOLUTE_INTTYPES_H = @ABSOLUTE_INTTYPES_H@
-ABSOLUTE_NETINET_IN_H = @ABSOLUTE_NETINET_IN_H@
-ABSOLUTE_STDINT_H = @ABSOLUTE_STDINT_H@
-ABSOLUTE_STDIO_H = @ABSOLUTE_STDIO_H@
-ABSOLUTE_STDLIB_H = @ABSOLUTE_STDLIB_H@
-ABSOLUTE_STRING_H = @ABSOLUTE_STRING_H@
-ABSOLUTE_SYS_SOCKET_H = @ABSOLUTE_SYS_SOCKET_H@
-ABSOLUTE_SYS_STAT_H = @ABSOLUTE_SYS_STAT_H@
-ABSOLUTE_SYS_TIME_H = @ABSOLUTE_SYS_TIME_H@
-ABSOLUTE_TIME_H = @ABSOLUTE_TIME_H@
-ABSOLUTE_UNISTD_H = @ABSOLUTE_UNISTD_H@
-ABSOLUTE_WCHAR_H = @ABSOLUTE_WCHAR_H@
-ABSOLUTE_WCTYPE_H = @ABSOLUTE_WCTYPE_H@
-ACLOCAL = @ACLOCAL@
-ALLOCA = @ALLOCA@
-ALLOCA_H = @ALLOCA_H@
-AMTAR = @AMTAR@
-ARPA_INET_H = @ARPA_INET_H@
-AUTOCONF = @AUTOCONF@
-AUTOHEADER = @AUTOHEADER@
-AUTOMAKE = @AUTOMAKE@
-AWK = @AWK@
-BITSIZEOF_PTRDIFF_T = @BITSIZEOF_PTRDIFF_T@
-BITSIZEOF_SIG_ATOMIC_T = @BITSIZEOF_SIG_ATOMIC_T@
-BITSIZEOF_SIZE_T = @BITSIZEOF_SIZE_T@
-BITSIZEOF_WCHAR_T = @BITSIZEOF_WCHAR_T@
-BITSIZEOF_WINT_T = @BITSIZEOF_WINT_T@
-CC = @CC@
-CCDEPMODE = @CCDEPMODE@
-CFLAGS = @CFLAGS@
-CPP = @CPP@
-CPPFLAGS = @CPPFLAGS@
-CYGPATH_W = @CYGPATH_W@
-DEFAULT_POSIX2_VERSION = @DEFAULT_POSIX2_VERSION@
-DEFS = @DEFS@
-DEPDIR = @DEPDIR@
-DF_PROG = @DF_PROG@
-DIRENT_H = @DIRENT_H@
-ECHO_C = @ECHO_C@
-ECHO_N = @ECHO_N@
-ECHO_T = @ECHO_T@
-EGREP = @EGREP@
-EOVERFLOW = @EOVERFLOW@
-EXEEXT = @EXEEXT@
-FCNTL_H = @FCNTL_H@
-FNMATCH_H = @FNMATCH_H@
-GETLOADAVG_LIBS = @GETLOADAVG_LIBS@
-GETOPT_H = @GETOPT_H@
-GLIBC21 = @GLIBC21@
-GMSGFMT = @GMSGFMT@
-GMSGFMT_015 = @GMSGFMT_015@
-GNULIB_CHOWN = @GNULIB_CHOWN@
-GNULIB_DUP2 = @GNULIB_DUP2@
-GNULIB_FCHDIR = @GNULIB_FCHDIR@
-GNULIB_FPRINTF_POSIX = @GNULIB_FPRINTF_POSIX@
-GNULIB_FTRUNCATE = @GNULIB_FTRUNCATE@
-GNULIB_GETCWD = @GNULIB_GETCWD@
-GNULIB_GETLOGIN_R = @GNULIB_GETLOGIN_R@
-GNULIB_GETSUBOPT = @GNULIB_GETSUBOPT@
-GNULIB_IMAXABS = @GNULIB_IMAXABS@
-GNULIB_IMAXDIV = @GNULIB_IMAXDIV@
-GNULIB_MBSCASECMP = @GNULIB_MBSCASECMP@
-GNULIB_MBSCASESTR = @GNULIB_MBSCASESTR@
-GNULIB_MBSCHR = @GNULIB_MBSCHR@
-GNULIB_MBSCSPN = @GNULIB_MBSCSPN@
-GNULIB_MBSLEN = @GNULIB_MBSLEN@
-GNULIB_MBSNCASECMP = @GNULIB_MBSNCASECMP@
-GNULIB_MBSPBRK = @GNULIB_MBSPBRK@
-GNULIB_MBSPCASECMP = @GNULIB_MBSPCASECMP@
-GNULIB_MBSRCHR = @GNULIB_MBSRCHR@
-GNULIB_MBSSEP = @GNULIB_MBSSEP@
-GNULIB_MBSSPN = @GNULIB_MBSSPN@
-GNULIB_MBSSTR = @GNULIB_MBSSTR@
-GNULIB_MBSTOK_R = @GNULIB_MBSTOK_R@
-GNULIB_MEMMEM = @GNULIB_MEMMEM@
-GNULIB_MEMPCPY = @GNULIB_MEMPCPY@
-GNULIB_MEMRCHR = @GNULIB_MEMRCHR@
-GNULIB_MKDTEMP = @GNULIB_MKDTEMP@
-GNULIB_MKSTEMP = @GNULIB_MKSTEMP@
-GNULIB_PRINTF_POSIX = @GNULIB_PRINTF_POSIX@
-GNULIB_READLINK = @GNULIB_READLINK@
-GNULIB_SNPRINTF = @GNULIB_SNPRINTF@
-GNULIB_SPRINTF_POSIX = @GNULIB_SPRINTF_POSIX@
-GNULIB_STPCPY = @GNULIB_STPCPY@
-GNULIB_STPNCPY = @GNULIB_STPNCPY@
-GNULIB_STRCASESTR = @GNULIB_STRCASESTR@
-GNULIB_STRCHRNUL = @GNULIB_STRCHRNUL@
-GNULIB_STRDUP = @GNULIB_STRDUP@
-GNULIB_STRNDUP = @GNULIB_STRNDUP@
-GNULIB_STRNLEN = @GNULIB_STRNLEN@
-GNULIB_STRPBRK = @GNULIB_STRPBRK@
-GNULIB_STRSEP = @GNULIB_STRSEP@
-GNULIB_STRTOIMAX = @GNULIB_STRTOIMAX@
-GNULIB_STRTOK_R = @GNULIB_STRTOK_R@
-GNULIB_STRTOUMAX = @GNULIB_STRTOUMAX@
-GNULIB_VFPRINTF_POSIX = @GNULIB_VFPRINTF_POSIX@
-GNULIB_VPRINTF_POSIX = @GNULIB_VPRINTF_POSIX@
-GNULIB_VSNPRINTF = @GNULIB_VSNPRINTF@
-GNULIB_VSPRINTF_POSIX = @GNULIB_VSPRINTF_POSIX@
-GNU_PACKAGE = @GNU_PACKAGE@
-GREP = @GREP@
-HAVE_DECL_GETLOGIN_R = @HAVE_DECL_GETLOGIN_R@
-HAVE_DECL_IMAXABS = @HAVE_DECL_IMAXABS@
-HAVE_DECL_IMAXDIV = @HAVE_DECL_IMAXDIV@
-HAVE_DECL_MEMMEM = @HAVE_DECL_MEMMEM@
-HAVE_DECL_MEMRCHR = @HAVE_DECL_MEMRCHR@
-HAVE_DECL_SNPRINTF = @HAVE_DECL_SNPRINTF@
-HAVE_DECL_STRDUP = @HAVE_DECL_STRDUP@
-HAVE_DECL_STRNCASECMP = @HAVE_DECL_STRNCASECMP@
-HAVE_DECL_STRNDUP = @HAVE_DECL_STRNDUP@
-HAVE_DECL_STRNLEN = @HAVE_DECL_STRNLEN@
-HAVE_DECL_STRTOIMAX = @HAVE_DECL_STRTOIMAX@
-HAVE_DECL_STRTOK_R = @HAVE_DECL_STRTOK_R@
-HAVE_DECL_STRTOUMAX = @HAVE_DECL_STRTOUMAX@
-HAVE_DECL_VSNPRINTF = @HAVE_DECL_VSNPRINTF@
-HAVE_DUP2 = @HAVE_DUP2@
-HAVE_FTRUNCATE = @HAVE_FTRUNCATE@
-HAVE_GETSUBOPT = @HAVE_GETSUBOPT@
-HAVE_INTTYPES_H = @HAVE_INTTYPES_H@
-HAVE_LONG_LONG_INT = @HAVE_LONG_LONG_INT@
-HAVE_MEMPCPY = @HAVE_MEMPCPY@
-HAVE_MKDTEMP = @HAVE_MKDTEMP@
-HAVE_NETINET_IN_H = @HAVE_NETINET_IN_H@
-HAVE_READLINK = @HAVE_READLINK@
-HAVE_SIGNED_SIG_ATOMIC_T = @HAVE_SIGNED_SIG_ATOMIC_T@
-HAVE_SIGNED_WCHAR_T = @HAVE_SIGNED_WCHAR_T@
-HAVE_SIGNED_WINT_T = @HAVE_SIGNED_WINT_T@
-HAVE_STDINT_H = @HAVE_STDINT_H@
-HAVE_STPCPY = @HAVE_STPCPY@
-HAVE_STPNCPY = @HAVE_STPNCPY@
-HAVE_STRCASECMP = @HAVE_STRCASECMP@
-HAVE_STRCASESTR = @HAVE_STRCASESTR@
-HAVE_STRCHRNUL = @HAVE_STRCHRNUL@
-HAVE_STRNDUP = @HAVE_STRNDUP@
-HAVE_STRPBRK = @HAVE_STRPBRK@
-HAVE_STRSEP = @HAVE_STRSEP@
-HAVE_STRUCT_TIMEVAL = @HAVE_STRUCT_TIMEVAL@
-HAVE_SYS_BITYPES_H = @HAVE_SYS_BITYPES_H@
-HAVE_SYS_INTTYPES_H = @HAVE_SYS_INTTYPES_H@
-HAVE_SYS_SOCKET_H = @HAVE_SYS_SOCKET_H@
-HAVE_SYS_TIME_H = @HAVE_SYS_TIME_H@
-HAVE_SYS_TYPES_H = @HAVE_SYS_TYPES_H@
-HAVE_UNISTD_H = @HAVE_UNISTD_H@
-HAVE_UNSIGNED_LONG_LONG_INT = @HAVE_UNSIGNED_LONG_LONG_INT@
-HAVE_WCTYPE_H = @HAVE_WCTYPE_H@
-HAVE_WINSOCK2_H = @HAVE_WINSOCK2_H@
-HAVE_WINT_T = @HAVE_WINT_T@
-HAVE_WS2TCPIP_H = @HAVE_WS2TCPIP_H@
-HAVE__BOOL = @HAVE__BOOL@
-HELP2MAN = @HELP2MAN@
-INSTALL = @INSTALL@
-INSTALL_DATA = @INSTALL_DATA@
-INSTALL_PROGRAM = @INSTALL_PROGRAM@
-INSTALL_SCRIPT = @INSTALL_SCRIPT@
-INSTALL_STRIP_PROGRAM = @INSTALL_STRIP_PROGRAM@
-INTLLIBS = @INTLLIBS@
-INTL_MACOSX_LIBS = @INTL_MACOSX_LIBS@
-INTTYPES_H = @INTTYPES_H@
-KMEM_GROUP = @KMEM_GROUP@
-LDFLAGS = @LDFLAGS@
-LIBCOREUTILS_LIBDEPS = @LIBCOREUTILS_LIBDEPS@
-LIBCOREUTILS_LTLIBDEPS = @LIBCOREUTILS_LTLIBDEPS@
-LIBICONV = @LIBICONV@
-LIBINTL = @LIBINTL@
-LIBOBJS = @LIBOBJS@
-LIBS = @LIBS@
-LIB_ACL = @LIB_ACL@
-LIB_ACL_TRIVIAL = @LIB_ACL_TRIVIAL@
-LIB_CLOCK_GETTIME = @LIB_CLOCK_GETTIME@
-LIB_CRYPT = @LIB_CRYPT@
-LIB_EACCESS = @LIB_EACCESS@
-LIB_FDATASYNC = @LIB_FDATASYNC@
-LIB_GETHRXTIME = @LIB_GETHRXTIME@
-LIB_NANOSLEEP = @LIB_NANOSLEEP@
-LN_S = @LN_S@
-LTLIBICONV = @LTLIBICONV@
-LTLIBINTL = @LTLIBINTL@
-LTLIBOBJS = @LTLIBOBJS@
-MAKEINFO = @MAKEINFO@
-MAN = @MAN@
-MKDIR_P = @MKDIR_P@
-MSGFMT = @MSGFMT@
-MSGFMT_015 = @MSGFMT_015@
-MSGMERGE = @MSGMERGE@
-NEED_SETGID = @NEED_SETGID@
-NETINET_IN_H = @NETINET_IN_H@
-OBJEXT = @OBJEXT@
-OPTIONAL_BIN_PROGS = @OPTIONAL_BIN_PROGS@
-PACKAGE = @PACKAGE@
-PACKAGE_BUGREPORT = @PACKAGE_BUGREPORT@
-PACKAGE_NAME = @PACKAGE_NAME@
-PACKAGE_STRING = @PACKAGE_STRING@
-PACKAGE_TARNAME = @PACKAGE_TARNAME@
-PACKAGE_VERSION = @PACKAGE_VERSION@
-PATH_SEPARATOR = @PATH_SEPARATOR@
-PERL = @PERL@
-POSUB = @POSUB@
-POW_LIB = @POW_LIB@
-PRIPTR_PREFIX = @PRIPTR_PREFIX@
-PRI_MACROS_BROKEN = @PRI_MACROS_BROKEN@
-PTRDIFF_T_SUFFIX = @PTRDIFF_T_SUFFIX@
-RANLIB = @RANLIB@
-REPLACE_CHOWN = @REPLACE_CHOWN@
-REPLACE_FCHDIR = @REPLACE_FCHDIR@
-REPLACE_FPRINTF = @REPLACE_FPRINTF@
-REPLACE_GETCWD = @REPLACE_GETCWD@
-REPLACE_GETTIMEOFDAY = @REPLACE_GETTIMEOFDAY@
-REPLACE_LOCALTIME_R = @REPLACE_LOCALTIME_R@
-REPLACE_MKSTEMP = @REPLACE_MKSTEMP@
-REPLACE_NANOSLEEP = @REPLACE_NANOSLEEP@
-REPLACE_PRINTF = @REPLACE_PRINTF@
-REPLACE_SNPRINTF = @REPLACE_SNPRINTF@
-REPLACE_SPRINTF = @REPLACE_SPRINTF@
-REPLACE_STRPTIME = @REPLACE_STRPTIME@
-REPLACE_TIMEGM = @REPLACE_TIMEGM@
-REPLACE_VFPRINTF = @REPLACE_VFPRINTF@
-REPLACE_VPRINTF = @REPLACE_VPRINTF@
-REPLACE_VSNPRINTF = @REPLACE_VSNPRINTF@
-REPLACE_VSPRINTF = @REPLACE_VSPRINTF@
-SEQ_LIBM = @SEQ_LIBM@
-SET_MAKE = @SET_MAKE@
-SHELL = @SHELL@
-SIG_ATOMIC_T_SUFFIX = @SIG_ATOMIC_T_SUFFIX@
-SIZE_T_SUFFIX = @SIZE_T_SUFFIX@
-STDBOOL_H = @STDBOOL_H@
-STDINT_H = @STDINT_H@
-STRIP = @STRIP@
-SYS_SOCKET_H = @SYS_SOCKET_H@
-SYS_STAT_H = @SYS_STAT_H@
-SYS_TIME_H = @SYS_TIME_H@
-SYS_TIME_H_DEFINES_STRUCT_TIMESPEC = @SYS_TIME_H_DEFINES_STRUCT_TIMESPEC@
-TIME_H_DEFINES_STRUCT_TIMESPEC = @TIME_H_DEFINES_STRUCT_TIMESPEC@
-U = @U@
-USE_NLS = @USE_NLS@
-VERSION = @VERSION@
-WCHAR_H = @WCHAR_H@
-WCHAR_T_SUFFIX = @WCHAR_T_SUFFIX@
-WCTYPE_H = @WCTYPE_H@
-WINT_T_SUFFIX = @WINT_T_SUFFIX@
-XGETTEXT = @XGETTEXT@
-XGETTEXT_015 = @XGETTEXT_015@
-YACC = @YACC@
-YFLAGS = @YFLAGS@
-abs_builddir = @abs_builddir@
-abs_srcdir = @abs_srcdir@
-abs_top_builddir = @abs_top_builddir@
-abs_top_srcdir = @abs_top_srcdir@
-ac_ct_CC = @ac_ct_CC@
-am__include = @am__include@
-am__leading_dot = @am__leading_dot@
-am__quote = @am__quote@
-am__tar = @am__tar@
-am__untar = @am__untar@
-bindir = @bindir@
-build = @build@
-build_alias = @build_alias@
-build_cpu = @build_cpu@
-build_os = @build_os@
-build_vendor = @build_vendor@
-builddir = @builddir@
-datadir = @datadir@
-datarootdir = @datarootdir@
-docdir = @docdir@
-dvidir = @dvidir@
-exec_prefix = @exec_prefix@
-gl_LIBOBJS = @gl_LIBOBJS@
-gl_LTLIBOBJS = @gl_LTLIBOBJS@
-host = @host@
-host_alias = @host_alias@
-host_cpu = @host_cpu@
-host_os = @host_os@
-host_vendor = @host_vendor@
-htmldir = @htmldir@
-includedir = @includedir@
-infodir = @infodir@
-install_sh = @install_sh@
-libdir = @libdir@
-libexecdir = @libexecdir@
-localedir = @localedir@
-localstatedir = @localstatedir@
-mandir = @mandir@
-mkdir_p = @mkdir_p@
-oldincludedir = @oldincludedir@
-pdfdir = @pdfdir@
-prefix = @prefix@
-program_transform_name = @program_transform_name@
-psdir = @psdir@
-sbindir = @sbindir@
-sharedstatedir = @sharedstatedir@
-srcdir = @srcdir@
-sysconfdir = @sysconfdir@
-target_alias = @target_alias@
-top_builddir = @top_builddir@
-top_srcdir = @top_srcdir@
-EXTRA_DIST = $(TESTS)
-TESTS_ENVIRONMENT = \
- top_srcdir=$(top_srcdir) \
- srcdir=$(srcdir) \
- PERL="$(PERL)" \
- CU_TEST_NAME=`basename $(abs_srcdir)`,$$tst \
- PATH="$(VG_PATH_PREFIX)`pwd`/../../src$(PATH_SEPARATOR)$$PATH" \
- PROG=dircolors
-
-TESTS = simple
-all: all-am
-
-.SUFFIXES:
-$(srcdir)/Makefile.in: $(srcdir)/Makefile.am $(am__configure_deps)
- @for dep in $?; do \
- case '$(am__configure_deps)' in \
- *$$dep*) \
- cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh \
- && exit 0; \
- exit 1;; \
- esac; \
- done; \
- echo ' cd $(top_srcdir) && $(AUTOMAKE) --gnu tests/dircolors/Makefile'; \
- cd $(top_srcdir) && \
- $(AUTOMAKE) --gnu tests/dircolors/Makefile
-.PRECIOUS: Makefile
-Makefile: $(srcdir)/Makefile.in $(top_builddir)/config.status
- @case '$?' in \
- *config.status*) \
- cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh;; \
- *) \
- echo ' cd $(top_builddir) && $(SHELL) ./config.status $(subdir)/$@ $(am__depfiles_maybe)'; \
- cd $(top_builddir) && $(SHELL) ./config.status $(subdir)/$@ $(am__depfiles_maybe);; \
- esac;
-
-$(top_builddir)/config.status: $(top_srcdir)/configure $(CONFIG_STATUS_DEPENDENCIES)
- cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh
-
-$(top_srcdir)/configure: $(am__configure_deps)
- cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh
-$(ACLOCAL_M4): $(am__aclocal_m4_deps)
- cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh
-tags: TAGS
-TAGS:
-
-ctags: CTAGS
-CTAGS:
-
-
-check-TESTS: $(TESTS)
- @failed=0; all=0; xfail=0; xpass=0; skip=0; ws='[ ]'; \
- srcdir=$(srcdir); export srcdir; \
- list=' $(TESTS) '; \
- if test -n "$$list"; then \
- for tst in $$list; do \
- if test -f ./$$tst; then dir=./; \
- elif test -f $$tst; then dir=; \
- else dir="$(srcdir)/"; fi; \
- if $(TESTS_ENVIRONMENT) $${dir}$$tst; then \
- all=`expr $$all + 1`; \
- case " $(XFAIL_TESTS) " in \
- *$$ws$$tst$$ws*) \
- xpass=`expr $$xpass + 1`; \
- failed=`expr $$failed + 1`; \
- echo "XPASS: $$tst"; \
- ;; \
- *) \
- echo "PASS: $$tst"; \
- ;; \
- esac; \
- elif test $$? -ne 77; then \
- all=`expr $$all + 1`; \
- case " $(XFAIL_TESTS) " in \
- *$$ws$$tst$$ws*) \
- xfail=`expr $$xfail + 1`; \
- echo "XFAIL: $$tst"; \
- ;; \
- *) \
- failed=`expr $$failed + 1`; \
- echo "FAIL: $$tst"; \
- ;; \
- esac; \
- else \
- skip=`expr $$skip + 1`; \
- echo "SKIP: $$tst"; \
- fi; \
- done; \
- if test "$$failed" -eq 0; then \
- if test "$$xfail" -eq 0; then \
- banner="All $$all tests passed"; \
- else \
- banner="All $$all tests behaved as expected ($$xfail expected failures)"; \
- fi; \
- else \
- if test "$$xpass" -eq 0; then \
- banner="$$failed of $$all tests failed"; \
- else \
- banner="$$failed of $$all tests did not behave as expected ($$xpass unexpected passes)"; \
- fi; \
- fi; \
- dashes="$$banner"; \
- skipped=""; \
- if test "$$skip" -ne 0; then \
- skipped="($$skip tests were not run)"; \
- test `echo "$$skipped" | wc -c` -le `echo "$$banner" | wc -c` || \
- dashes="$$skipped"; \
- fi; \
- report=""; \
- if test "$$failed" -ne 0 && test -n "$(PACKAGE_BUGREPORT)"; then \
- report="Please report to $(PACKAGE_BUGREPORT)"; \
- test `echo "$$report" | wc -c` -le `echo "$$banner" | wc -c` || \
- dashes="$$report"; \
- fi; \
- dashes=`echo "$$dashes" | sed s/./=/g`; \
- echo "$$dashes"; \
- echo "$$banner"; \
- test -z "$$skipped" || echo "$$skipped"; \
- test -z "$$report" || echo "$$report"; \
- echo "$$dashes"; \
- test "$$failed" -eq 0; \
- else :; fi
-
-distdir: $(DISTFILES)
- @srcdirstrip=`echo "$(srcdir)" | sed 's/[].[^$$\\*]/\\\\&/g'`; \
- topsrcdirstrip=`echo "$(top_srcdir)" | sed 's/[].[^$$\\*]/\\\\&/g'`; \
- list='$(DISTFILES)'; \
- dist_files=`for file in $$list; do echo $$file; done | \
- sed -e "s|^$$srcdirstrip/||;t" \
- -e "s|^$$topsrcdirstrip/|$(top_builddir)/|;t"`; \
- case $$dist_files in \
- */*) $(MKDIR_P) `echo "$$dist_files" | \
- sed '/\//!d;s|^|$(distdir)/|;s,/[^/]*$$,,' | \
- sort -u` ;; \
- esac; \
- for file in $$dist_files; do \
- if test -f $$file || test -d $$file; then d=.; else d=$(srcdir); fi; \
- if test -d $$d/$$file; then \
- dir=`echo "/$$file" | sed -e 's,/[^/]*$$,,'`; \
- if test -d $(srcdir)/$$file && test $$d != $(srcdir); then \
- cp -pR $(srcdir)/$$file $(distdir)$$dir || exit 1; \
- fi; \
- cp -pR $$d/$$file $(distdir)$$dir || exit 1; \
- else \
- test -f $(distdir)/$$file \
- || cp -p $$d/$$file $(distdir)/$$file \
- || exit 1; \
- fi; \
- done
-check-am: all-am
- $(MAKE) $(AM_MAKEFLAGS) check-TESTS
-check: check-am
-all-am: Makefile
-installdirs:
-install: install-am
-install-exec: install-exec-am
-install-data: install-data-am
-uninstall: uninstall-am
-
-install-am: all-am
- @$(MAKE) $(AM_MAKEFLAGS) install-exec-am install-data-am
-
-installcheck: installcheck-am
-install-strip:
- $(MAKE) $(AM_MAKEFLAGS) INSTALL_PROGRAM="$(INSTALL_STRIP_PROGRAM)" \
- install_sh_PROGRAM="$(INSTALL_STRIP_PROGRAM)" INSTALL_STRIP_FLAG=-s \
- `test -z '$(STRIP)' || \
- echo "INSTALL_PROGRAM_ENV=STRIPPROG='$(STRIP)'"` install
-mostlyclean-generic:
-
-clean-generic:
-
-distclean-generic:
- -test -z "$(CONFIG_CLEAN_FILES)" || rm -f $(CONFIG_CLEAN_FILES)
-
-maintainer-clean-generic:
- @echo "This command is intended for maintainers to use"
- @echo "it deletes files that may require special tools to rebuild."
-clean: clean-am
-
-clean-am: clean-generic mostlyclean-am
-
-distclean: distclean-am
- -rm -f Makefile
-distclean-am: clean-am distclean-generic
-
-dvi: dvi-am
-
-dvi-am:
-
-html: html-am
-
-info: info-am
-
-info-am:
-
-install-data-am:
-
-install-dvi: install-dvi-am
-
-install-exec-am:
-
-install-html: install-html-am
-
-install-info: install-info-am
-
-install-man:
-
-install-pdf: install-pdf-am
-
-install-ps: install-ps-am
-
-installcheck-am:
-
-maintainer-clean: maintainer-clean-am
- -rm -f Makefile
-maintainer-clean-am: distclean-am maintainer-clean-generic
-
-mostlyclean: mostlyclean-am
-
-mostlyclean-am: mostlyclean-generic
-
-pdf: pdf-am
-
-pdf-am:
-
-ps: ps-am
-
-ps-am:
-
-uninstall-am:
-
-.MAKE: install-am install-strip
-
-.PHONY: all all-am check check-TESTS check-am clean clean-generic \
- distclean distclean-generic distdir dvi dvi-am html html-am \
- info info-am install install-am install-data install-data-am \
- install-dvi install-dvi-am install-exec install-exec-am \
- install-html install-html-am install-info install-info-am \
- install-man install-pdf install-pdf-am install-ps \
- install-ps-am install-strip installcheck installcheck-am \
- installdirs maintainer-clean maintainer-clean-generic \
- mostlyclean mostlyclean-generic pdf pdf-am ps ps-am uninstall \
- uninstall-am
-
-# Tell versions [3.59,3.63) of GNU make to not export all variables.
-# Otherwise a system limit (for SysV at least) may be exceeded.
-.NOEXPORT:
diff --git a/tests/dircolors/simple b/tests/dircolors/simple
deleted file mode 100755
index 2e5f110..0000000
--- a/tests/dircolors/simple
+++ /dev/null
@@ -1,60 +0,0 @@
-#!/bin/sh
-# Simple dircolors tests.
-
-# Copyright (C) 1998, 2003, 2005, 2006 Free Software Foundation, Inc.
-
-# This program is free software; you can redistribute it and/or modify
-# it under the terms of the GNU General Public License as published by
-# the Free Software Foundation; either version 2 of the License, or
-# (at your option) any later version.
-
-# This program is distributed in the hope that it will be useful,
-# but WITHOUT ANY WARRANTY; without even the implied warranty of
-# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
-# GNU General Public License for more details.
-
-# You should have received a copy of the GNU General Public License
-# along with this program; if not, write to the Free Software
-# Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA
-# 02110-1301, USA.
-
-: ${PERL=perl}
-: ${srcdir=.}
-
-$PERL -e 1 > /dev/null 2>&1 || {
- echo 1>&2 "$0: configure didn't find a usable version of Perl," \
- "so can't run this test"
- exit 77
-}
-
-exec $PERL -w -I$srcdir/.. -MCoreutils -- - <<\EOF
-require 5.003;
-use strict;
-
-(my $program_name = $0) =~ s|.*/||;
-
-# Turn off localisation of executable's ouput.
-@ENV{qw(LANGUAGE LANG LC_ALL)} = ('C') x 3;
-
-my @Tests =
- (
- ['a', '-b', {IN => {k => "exec\n"}},
- {ERR => "dircolors: k:1: invalid line; missing second token\n"},
- {EXIT => 1}],
- ['quote', '-b', {IN => "exec 'echo Hello;:'\n"},
- {OUT => "LS_COLORS='ex='\\''echo Hello;\\:'\\'':';\n"
- . "export LS_COLORS\n"}],
- ['other-wr', '-b', {IN => "owt 40;33\n"},
- {OUT => "LS_COLORS='tw=40;33:';\nexport LS_COLORS\n"}],
-
- # CAREFUL: always specify the -b option, unless explicitly testing
- # for csh syntax output.
- );
-
-my $save_temps = $ENV{DEBUG};
-my $verbose = $ENV{VERBOSE};
-
-my $prog = $ENV{PROG} || die "$0: \$PROG not specified in environment\n";
-my $fail = run_tests ($program_name, $prog, \@Tests, $save_temps, $verbose);
-exit $fail;
-EOF
diff --git a/tests/du/2g b/tests/du/2g
deleted file mode 100755
index 5ed11e7..0000000
--- a/tests/du/2g
+++ /dev/null
@@ -1,93 +0,0 @@
-#!/bin/sh
-# Ensure that du can handle a 2GB file (i.e., a file of size 2^31 bytes)
-# Before coreutils-5.93, on systems with a signed, 32-bit stat.st_blocks
-# one of du's computations would overflow.
-
-# Copyright (C) 2005, 2006 Free Software Foundation, Inc.
-
-# This program is free software; you can redistribute it and/or modify
-# it under the terms of the GNU General Public License as published by
-# the Free Software Foundation; either version 2 of the License, or
-# (at your option) any later version.
-
-# This program is distributed in the hope that it will be useful,
-# but WITHOUT ANY WARRANTY; without even the implied warranty of
-# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
-# GNU General Public License for more details.
-
-# You should have received a copy of the GNU General Public License
-# along with this program; if not, write to the Free Software
-# Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA
-# 02110-1301, USA.
-
-if test "$VERBOSE" = yes; then
- set -x
- du --version
-fi
-
-. $srcdir/../envvar-check
-
-# Creating a 2GB file counts as `very expensive'.
-. $srcdir/../very-expensive
-
-pwd=`pwd`
-t0=`echo "$0"|sed 's,.*/,,'`.tmp; tmp=$t0/$$
-trap 'status=$?; cd "$pwd" && chmod -R u+rwx $t0 && rm -rf $t0 && exit $status' 0
-trap '(exit $?); exit $?' 1 2 13 15
-
-framework_failure=0
-mkdir -p $tmp || framework_failure=1
-cd $tmp || framework_failure=1
-
-if test $framework_failure = 1; then
- echo "$0: failure in testing framework" 1>&2
- (exit 1); exit 1
-fi
-
-fail=0
-
-# Get number of free kilobytes on current partition, so we can
-# skip this test if there is insufficient free space.
-
-# This technique relies on the fact that the `Available' kilobyte
-# count is the number just before the one with a trailing `%'.
-free_kb=`df -kP .|tail -1|sed 's/ [0-9][0-9]*%.*//;s/ *$//;s/.* //'`
-case "$free_kb" in
- [0-9]*) ;;
- *) echo "invalid size from df: $free_kb" 1>&2; (exit 77); exit 77;;
-esac
-
-# Require about 3GB free.
-min_kb=3000000
-test $min_kb -lt $free_kb ||
-{
- echo "$0: skipping this test:"
- echo "too little free space on current partition: $free_kb (need $min_kb KB)" \
- 1>&2;
- (exit 77); exit 77
-}
-
-big=big
-rm -f $big
-test -t 1 || printf 'creating a 2GB file...\n'
-for i in `seq 100`; do
- # Note: 2147483648 == 2^31. Print floor(2^31/100) per iteration.
- printf %21474836s x >> $big || fail=1
- # On the final iteration, append the remaining 48 bytes.
- test $i = 100 && { printf %48s x >> $big || fail=1; }
- test -t 1 && printf 'creating a 2GB file: %d%% complete\r' $i
-done
-echo
-
-du -k $big > out1 || fail=1
-rm -f $big
-sed 's/^2[0-9][0-9][0-9][0-9][0-9][0-9] '$big'$/~2M/' out1 > out
-
-cat <<\EOF > exp || fail=1
-~2M
-EOF
-
-cmp out exp || fail=1
-test $fail = 1 && diff out exp 2> /dev/null
-
-(exit $fail); exit $fail
diff --git a/tests/du/2g.sh b/tests/du/2g.sh
new file mode 100755
index 0000000..fa816fb
--- /dev/null
+++ b/tests/du/2g.sh
@@ -0,0 +1,71 @@
+#!/bin/sh
+# Ensure that du can handle a 2GB file (i.e., a file of size 2^31 bytes)
+# Before coreutils-5.93, on systems with a signed, 32-bit stat.st_blocks
+# one of du's computations would overflow.
+
+# Copyright (C) 2005-2016 Free Software Foundation, Inc.
+
+# This program is free software: you can redistribute it and/or modify
+# it under the terms of the GNU General Public License as published by
+# the Free Software Foundation, either version 3 of the License, or
+# (at your option) any later version.
+
+# This program is distributed in the hope that it will be useful,
+# but WITHOUT ANY WARRANTY; without even the implied warranty of
+# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
+# GNU General Public License for more details.
+
+# You should have received a copy of the GNU General Public License
+# along with this program. If not, see <http://www.gnu.org/licenses/>.
+
+. "${srcdir=.}/tests/init.sh"; path_prepend_ ./src
+print_ver_ du
+
+# Creating a 2GB file counts as 'very expensive'.
+very_expensive_
+
+# Get number of free kilobytes on current partition, so we can
+# skip this test if there is insufficient free space.
+free_kb=$(df -k --output=avail . | tail -n1)
+case "$free_kb" in
+ [0-9]*) ;;
+ *) skip_ "invalid size from df: $free_kb";;
+esac
+
+# Require about 3GB free.
+min_kb=3000000
+test $min_kb -lt $free_kb ||
+{
+ skip_ \
+ "too little free space on current partition: $free_kb (need $min_kb KB)"
+}
+
+big=big
+
+if ! fallocate -l2G $big; then
+ rm -f $big
+ {
+ is_local_dir_ . || skip 'Not writing 2GB data to remote'
+ for i in $(seq 100); do
+ # Note: 2147483648 == 2^31. Print floor(2^31/100) per iteration.
+ printf %21474836s x || fail=1
+ done
+ # After the final iteration, append the remaining 48 bytes.
+ printf %48s x || fail=1
+ } > $big || fail=1
+fi
+
+# The allocation may be done asynchronously (BTRFS for example)
+sync $big || framework_failure_
+
+du -k $big > out1 || fail=1
+rm -f $big
+sed 's/^2[0-9][0-9][0-9][0-9][0-9][0-9] '$big'$/~2M/' out1 > out
+
+cat <<\EOF > exp || fail=1
+~2M
+EOF
+
+compare exp out || fail=1
+
+Exit $fail
diff --git a/tests/du/8gb b/tests/du/8gb
deleted file mode 100755
index 400c29d..0000000
--- a/tests/du/8gb
+++ /dev/null
@@ -1,77 +0,0 @@
-#!/bin/sh
-# Ensure that du does not rely on narrow types like size_t for
-# file sizes or sums.
-
-# Copyright (C) 2003, 2005, 2006 Free Software Foundation, Inc.
-
-# This program is free software; you can redistribute it and/or modify
-# it under the terms of the GNU General Public License as published by
-# the Free Software Foundation; either version 2 of the License, or
-# (at your option) any later version.
-
-# This program is distributed in the hope that it will be useful,
-# but WITHOUT ANY WARRANTY; without even the implied warranty of
-# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
-# GNU General Public License for more details.
-
-# You should have received a copy of the GNU General Public License
-# along with this program; if not, write to the Free Software
-# Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA
-# 02110-1301, USA.
-
-if test "$VERBOSE" = yes; then
- set -x
- du --version
-fi
-
-. $srcdir/../envvar-check
-. $srcdir/../sparse-file
-
-pwd=`pwd`
-t0=`echo "$0"|sed 's,.*/,,'`.tmp; tmp=$t0/$$
-trap 'status=$?; cd "$pwd" && chmod -R u+rwx $t0 && rm -rf $t0 && exit $status' 0
-trap '(exit $?); exit $?' 1 2 13 15
-
-framework_failure=0
-mkdir -p $tmp || framework_failure=1
-cd $tmp || framework_failure=1
-
-if test $framework_failure = 1; then
- echo "$0: failure in testing framework" 1>&2
- (exit 1); exit 1
-fi
-
-dd bs=1 seek=8G of=big < /dev/null 2> /dev/null
-if test $? != 0; then
- echo "$0: cannot create a file large enough for this test; possibly" 1>&2
- echo "$0: because file offsets are only 32 bits on this file system" 1>&2
- (exit 77); exit 77
-fi
-
-# FIXME: this should be a test of dd.
-# On some systems (at least linux-2.4.18 + NFS to disks on a Solaris system)
-# the `dd' command above mistakenly creates a file of length `0', yet
-# doesn't fail. The root of that failure is that the ftruncate call
-# returns zero but doesn't do its job. Detect this failure.
-set x `ls -gG big`
-size=$4
-if test "$size" = 0; then
- echo "$0: cannot create a file large enough for this test;" 1>&2
- echo "$0: possibly because this system's NFS support is buggy;" 1>&2
- echo "$0: Consider rerunning this test on a different file system." 1>&2
- (exit 77); exit 77
-fi
-
-fail=0
-
-# This would print `0 big' with coreutils-4.5.8.
-du -ab big > out || fail=1
-
-cat <<\EOF > exp
-8589934592 big
-EOF
-
-cmp out exp || fail=1
-test $fail = 1 && diff out exp 2> /dev/null
-
-(exit $fail); exit $fail
diff --git a/tests/du/8gb.sh b/tests/du/8gb.sh
new file mode 100755
index 0000000..25258c8
--- /dev/null
+++ b/tests/du/8gb.sh
@@ -0,0 +1,53 @@
+#!/bin/sh
+# Ensure that du does not rely on narrow types like size_t for
+# file sizes or sums.
+
+# Copyright (C) 2003-2016 Free Software Foundation, Inc.
+
+# This program is free software: you can redistribute it and/or modify
+# it under the terms of the GNU General Public License as published by
+# the Free Software Foundation, either version 3 of the License, or
+# (at your option) any later version.
+
+# This program is distributed in the hope that it will be useful,
+# but WITHOUT ANY WARRANTY; without even the implied warranty of
+# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
+# GNU General Public License for more details.
+
+# You should have received a copy of the GNU General Public License
+# along with this program. If not, see <http://www.gnu.org/licenses/>.
+
+. "${srcdir=.}/tests/init.sh"; path_prepend_ ./src
+print_ver_ du
+require_sparse_support_
+
+dd bs=1 seek=8G of=big < /dev/null 2> /dev/null
+if test $? != 0; then
+ skip_ 'cannot create a file large enough for this test; possibly
+because file offsets are only 32 bits on this file system'
+fi
+
+# FIXME: this should be a test of dd.
+# On some systems (at least linux-2.4.18 + NFS to disks on a Solaris system)
+# the 'dd' command above mistakenly creates a file of length '0', yet
+# doesn't fail. The root of that failure is that the ftruncate call
+# returns zero but doesn't do its job. Detect this failure.
+set x $(ls -gG big)
+size=$4
+if test "$size" = 0; then
+ skip_ "cannot create a file large enough for this test
+possibly because this system's NFS support is buggy
+Consider rerunning this test on a different file system."
+fi
+
+
+# This would print '0 big' with coreutils-4.5.8.
+du -ab big > out || fail=1
+
+cat <<\EOF > exp
+8589934592 big
+EOF
+
+compare exp out || fail=1
+
+Exit $fail
diff --git a/tests/du/Makefile.am b/tests/du/Makefile.am
deleted file mode 100644
index 3149cfa..0000000
--- a/tests/du/Makefile.am
+++ /dev/null
@@ -1,37 +0,0 @@
-# Make coreutils tests for "du". -*-Makefile-*-
-
-# Copyright (C) 2000, 2002-2007 Free Software Foundation, Inc.
-
-# This program is free software; you can redistribute it and/or modify
-# it under the terms of the GNU General Public License as published by
-# the Free Software Foundation; either version 2 of the License, or
-# (at your option) any later version.
-
-# This program is distributed in the hope that it will be useful,
-# but WITHOUT ANY WARRANTY; without even the implied warranty of
-# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
-# GNU General Public License for more details.
-
-# You should have received a copy of the GNU General Public License
-# along with this program; if not, write to the Free Software
-# Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA
-# 02110-1301, USA.
-
-TESTS = \
- one-file-system \
- inacc-dest \
- long-from-unreadable \
- long-sloop \
- 2g \
- files0-from \
- inaccessible-cwd \
- deref-args \
- slash \
- fd-leak \
- hard-link 8gb basic restore-wd \
- exclude no-x no-deref trailing-slash deref two-args slink
-EXTRA_DIST = $(TESTS)
-TESTS_ENVIRONMENT = \
- PERL="$(PERL)" \
- CU_TEST_NAME=`basename $(abs_srcdir)`,$$tst \
- PATH="$(VG_PATH_PREFIX)`pwd`/../../src$(PATH_SEPARATOR)$$PATH"
diff --git a/tests/du/Makefile.in b/tests/du/Makefile.in
deleted file mode 100644
index b68e6b4..0000000
--- a/tests/du/Makefile.in
+++ /dev/null
@@ -1,749 +0,0 @@
-# Makefile.in generated by automake 1.10 from Makefile.am.
-# @configure_input@
-
-# Copyright (C) 1994, 1995, 1996, 1997, 1998, 1999, 2000, 2001, 2002,
-# 2003, 2004, 2005, 2006 Free Software Foundation, Inc.
-# This Makefile.in is free software; the Free Software Foundation
-# gives unlimited permission to copy and/or distribute it,
-# with or without modifications, as long as this notice is preserved.
-
-# This program is distributed in the hope that it will be useful,
-# but WITHOUT ANY WARRANTY, to the extent permitted by law; without
-# even the implied warranty of MERCHANTABILITY or FITNESS FOR A
-# PARTICULAR PURPOSE.
-
-@SET_MAKE@
-
-# Make coreutils tests for "du". -*-Makefile-*-
-
-# Copyright (C) 2000, 2002-2007 Free Software Foundation, Inc.
-
-# This program is free software; you can redistribute it and/or modify
-# it under the terms of the GNU General Public License as published by
-# the Free Software Foundation; either version 2 of the License, or
-# (at your option) any later version.
-
-# This program is distributed in the hope that it will be useful,
-# but WITHOUT ANY WARRANTY; without even the implied warranty of
-# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
-# GNU General Public License for more details.
-
-# You should have received a copy of the GNU General Public License
-# along with this program; if not, write to the Free Software
-# Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA
-# 02110-1301, USA.
-VPATH = @srcdir@
-pkgdatadir = $(datadir)/@PACKAGE@
-pkglibdir = $(libdir)/@PACKAGE@
-pkgincludedir = $(includedir)/@PACKAGE@
-am__cd = CDPATH="$${ZSH_VERSION+.}$(PATH_SEPARATOR)" && cd
-install_sh_DATA = $(install_sh) -c -m 644
-install_sh_PROGRAM = $(install_sh) -c
-install_sh_SCRIPT = $(install_sh) -c
-INSTALL_HEADER = $(INSTALL_DATA)
-transform = $(program_transform_name)
-NORMAL_INSTALL = :
-PRE_INSTALL = :
-POST_INSTALL = :
-NORMAL_UNINSTALL = :
-PRE_UNINSTALL = :
-POST_UNINSTALL = :
-build_triplet = @build@
-host_triplet = @host@
-subdir = tests/du
-DIST_COMMON = $(srcdir)/Makefile.am $(srcdir)/Makefile.in
-ACLOCAL_M4 = $(top_srcdir)/aclocal.m4
-am__aclocal_m4_deps = $(top_srcdir)/m4/absolute-header.m4 \
- $(top_srcdir)/m4/acl.m4 $(top_srcdir)/m4/alloca.m4 \
- $(top_srcdir)/m4/allocsa.m4 $(top_srcdir)/m4/argmatch.m4 \
- $(top_srcdir)/m4/arpa_inet_h.m4 $(top_srcdir)/m4/assert.m4 \
- $(top_srcdir)/m4/atexit.m4 $(top_srcdir)/m4/autobuild.m4 \
- $(top_srcdir)/m4/backupfile.m4 $(top_srcdir)/m4/base64.m4 \
- $(top_srcdir)/m4/bison.m4 $(top_srcdir)/m4/boottime.m4 \
- $(top_srcdir)/m4/c-strtod.m4 $(top_srcdir)/m4/calloc.m4 \
- $(top_srcdir)/m4/canon-host.m4 \
- $(top_srcdir)/m4/canonicalize.m4 \
- $(top_srcdir)/m4/chdir-long.m4 $(top_srcdir)/m4/check-decl.m4 \
- $(top_srcdir)/m4/chown.m4 $(top_srcdir)/m4/clock_time.m4 \
- $(top_srcdir)/m4/cloexec.m4 $(top_srcdir)/m4/close-stream.m4 \
- $(top_srcdir)/m4/closeout.m4 $(top_srcdir)/m4/codeset.m4 \
- $(top_srcdir)/m4/config-h.m4 $(top_srcdir)/m4/cycle-check.m4 \
- $(top_srcdir)/m4/d-ino.m4 $(top_srcdir)/m4/d-type.m4 \
- $(top_srcdir)/m4/dirfd.m4 $(top_srcdir)/m4/dirname.m4 \
- $(top_srcdir)/m4/dos.m4 $(top_srcdir)/m4/double-slash-root.m4 \
- $(top_srcdir)/m4/dup2.m4 $(top_srcdir)/m4/eealloc.m4 \
- $(top_srcdir)/m4/eoverflow.m4 $(top_srcdir)/m4/error.m4 \
- $(top_srcdir)/m4/euidaccess-stat.m4 \
- $(top_srcdir)/m4/euidaccess.m4 $(top_srcdir)/m4/exclude.m4 \
- $(top_srcdir)/m4/exitfail.m4 $(top_srcdir)/m4/extensions.m4 \
- $(top_srcdir)/m4/fchdir.m4 $(top_srcdir)/m4/fcntl-safer.m4 \
- $(top_srcdir)/m4/fcntl_h.m4 $(top_srcdir)/m4/fd-reopen.m4 \
- $(top_srcdir)/m4/file-type.m4 $(top_srcdir)/m4/fileblocks.m4 \
- $(top_srcdir)/m4/filemode.m4 $(top_srcdir)/m4/filenamecat.m4 \
- $(top_srcdir)/m4/flexmember.m4 $(top_srcdir)/m4/fnmatch.m4 \
- $(top_srcdir)/m4/fpending.m4 $(top_srcdir)/m4/fprintftime.m4 \
- $(top_srcdir)/m4/free.m4 $(top_srcdir)/m4/fstypename.m4 \
- $(top_srcdir)/m4/fsusage.m4 $(top_srcdir)/m4/ftruncate.m4 \
- $(top_srcdir)/m4/fts.m4 $(top_srcdir)/m4/getaddrinfo.m4 \
- $(top_srcdir)/m4/getcwd-abort-bug.m4 \
- $(top_srcdir)/m4/getcwd-path-max.m4 $(top_srcdir)/m4/getcwd.m4 \
- $(top_srcdir)/m4/getdate.m4 $(top_srcdir)/m4/getdelim.m4 \
- $(top_srcdir)/m4/getgroups.m4 $(top_srcdir)/m4/gethostname.m4 \
- $(top_srcdir)/m4/gethrxtime.m4 $(top_srcdir)/m4/getline.m4 \
- $(top_srcdir)/m4/getloadavg.m4 $(top_srcdir)/m4/getndelim2.m4 \
- $(top_srcdir)/m4/getopt.m4 $(top_srcdir)/m4/getpagesize.m4 \
- $(top_srcdir)/m4/getpass.m4 $(top_srcdir)/m4/gettext.m4 \
- $(top_srcdir)/m4/gettime.m4 $(top_srcdir)/m4/gettimeofday.m4 \
- $(top_srcdir)/m4/getugroups.m4 \
- $(top_srcdir)/m4/getusershell.m4 $(top_srcdir)/m4/glibc21.m4 \
- $(top_srcdir)/m4/gnulib-common.m4 \
- $(top_srcdir)/m4/gnulib-comp.m4 \
- $(top_srcdir)/m4/group-member.m4 \
- $(top_srcdir)/m4/hard-locale.m4 $(top_srcdir)/m4/hash.m4 \
- $(top_srcdir)/m4/host-os.m4 $(top_srcdir)/m4/human.m4 \
- $(top_srcdir)/m4/i-ring.m4 $(top_srcdir)/m4/iconv.m4 \
- $(top_srcdir)/m4/idcache.m4 $(top_srcdir)/m4/inet_ntop.m4 \
- $(top_srcdir)/m4/inline.m4 $(top_srcdir)/m4/intmax_t.m4 \
- $(top_srcdir)/m4/inttostr.m4 $(top_srcdir)/m4/inttypes-pri.m4 \
- $(top_srcdir)/m4/inttypes.m4 $(top_srcdir)/m4/inttypes_h.m4 \
- $(top_srcdir)/m4/isapipe.m4 $(top_srcdir)/m4/jm-macros.m4 \
- $(top_srcdir)/m4/jm-winsz1.m4 $(top_srcdir)/m4/jm-winsz2.m4 \
- $(top_srcdir)/m4/lchmod.m4 $(top_srcdir)/m4/lchown.m4 \
- $(top_srcdir)/m4/lib-check.m4 $(top_srcdir)/m4/lib-ignore.m4 \
- $(top_srcdir)/m4/lib-ld.m4 $(top_srcdir)/m4/lib-link.m4 \
- $(top_srcdir)/m4/lib-prefix.m4 $(top_srcdir)/m4/link-follow.m4 \
- $(top_srcdir)/m4/localcharset.m4 \
- $(top_srcdir)/m4/long-options.m4 \
- $(top_srcdir)/m4/longdouble.m4 $(top_srcdir)/m4/longlong.m4 \
- $(top_srcdir)/m4/ls-mntd-fs.m4 $(top_srcdir)/m4/lstat.m4 \
- $(top_srcdir)/m4/mbchar.m4 $(top_srcdir)/m4/mbiter.m4 \
- $(top_srcdir)/m4/mbrtowc.m4 $(top_srcdir)/m4/mbscasecmp.m4 \
- $(top_srcdir)/m4/mbstate_t.m4 $(top_srcdir)/m4/mbswidth.m4 \
- $(top_srcdir)/m4/md5.m4 $(top_srcdir)/m4/memcasecmp.m4 \
- $(top_srcdir)/m4/memchr.m4 $(top_srcdir)/m4/memcmp.m4 \
- $(top_srcdir)/m4/memcoll.m4 $(top_srcdir)/m4/memcpy.m4 \
- $(top_srcdir)/m4/memmove.m4 $(top_srcdir)/m4/mempcpy.m4 \
- $(top_srcdir)/m4/memrchr.m4 $(top_srcdir)/m4/memset.m4 \
- $(top_srcdir)/m4/memxfrm.m4 $(top_srcdir)/m4/mkancesdirs.m4 \
- $(top_srcdir)/m4/mkdir-p.m4 $(top_srcdir)/m4/mkdir-slash.m4 \
- $(top_srcdir)/m4/mkstemp.m4 $(top_srcdir)/m4/mktime.m4 \
- $(top_srcdir)/m4/modechange.m4 $(top_srcdir)/m4/mountlist.m4 \
- $(top_srcdir)/m4/mpsort.m4 $(top_srcdir)/m4/nanosleep.m4 \
- $(top_srcdir)/m4/netinet_in_h.m4 $(top_srcdir)/m4/nls.m4 \
- $(top_srcdir)/m4/openat.m4 $(top_srcdir)/m4/pathmax.m4 \
- $(top_srcdir)/m4/perl.m4 $(top_srcdir)/m4/physmem.m4 \
- $(top_srcdir)/m4/po.m4 $(top_srcdir)/m4/posixtm.m4 \
- $(top_srcdir)/m4/posixver.m4 $(top_srcdir)/m4/prereq.m4 \
- $(top_srcdir)/m4/progtest.m4 $(top_srcdir)/m4/putenv.m4 \
- $(top_srcdir)/m4/quote.m4 $(top_srcdir)/m4/quotearg.m4 \
- $(top_srcdir)/m4/randint.m4 $(top_srcdir)/m4/randperm.m4 \
- $(top_srcdir)/m4/randread.m4 $(top_srcdir)/m4/readlink.m4 \
- $(top_srcdir)/m4/readtokens.m4 $(top_srcdir)/m4/readutmp.m4 \
- $(top_srcdir)/m4/regex.m4 \
- $(top_srcdir)/m4/rename-dest-slash.m4 \
- $(top_srcdir)/m4/rename.m4 $(top_srcdir)/m4/rmdir-errno.m4 \
- $(top_srcdir)/m4/rmdir.m4 $(top_srcdir)/m4/root-dev-ino.m4 \
- $(top_srcdir)/m4/rpmatch.m4 $(top_srcdir)/m4/safe-read.m4 \
- $(top_srcdir)/m4/safe-write.m4 $(top_srcdir)/m4/same.m4 \
- $(top_srcdir)/m4/save-cwd.m4 $(top_srcdir)/m4/savedir.m4 \
- $(top_srcdir)/m4/savewd.m4 $(top_srcdir)/m4/setenv.m4 \
- $(top_srcdir)/m4/settime.m4 $(top_srcdir)/m4/sha1.m4 \
- $(top_srcdir)/m4/sha256.m4 $(top_srcdir)/m4/sha512.m4 \
- $(top_srcdir)/m4/sig2str.m4 $(top_srcdir)/m4/snprintf.m4 \
- $(top_srcdir)/m4/socklen.m4 $(top_srcdir)/m4/sockpfaf.m4 \
- $(top_srcdir)/m4/ssize_t.m4 $(top_srcdir)/m4/st_dm_mode.m4 \
- $(top_srcdir)/m4/stat-prog.m4 $(top_srcdir)/m4/stat-time.m4 \
- $(top_srcdir)/m4/stdarg.m4 $(top_srcdir)/m4/stdbool.m4 \
- $(top_srcdir)/m4/stdint.m4 $(top_srcdir)/m4/stdint_h.m4 \
- $(top_srcdir)/m4/stdio-safer.m4 $(top_srcdir)/m4/stdio_h.m4 \
- $(top_srcdir)/m4/stdlib-safer.m4 $(top_srcdir)/m4/stdlib_h.m4 \
- $(top_srcdir)/m4/stpcpy.m4 $(top_srcdir)/m4/strcspn.m4 \
- $(top_srcdir)/m4/strdup.m4 $(top_srcdir)/m4/strftime.m4 \
- $(top_srcdir)/m4/string_h.m4 $(top_srcdir)/m4/strndup.m4 \
- $(top_srcdir)/m4/strnlen.m4 $(top_srcdir)/m4/strnumcmp.m4 \
- $(top_srcdir)/m4/strpbrk.m4 $(top_srcdir)/m4/strtod.m4 \
- $(top_srcdir)/m4/strtoimax.m4 $(top_srcdir)/m4/strtol.m4 \
- $(top_srcdir)/m4/strtoll.m4 $(top_srcdir)/m4/strtoul.m4 \
- $(top_srcdir)/m4/strtoull.m4 $(top_srcdir)/m4/strtoumax.m4 \
- $(top_srcdir)/m4/strverscmp.m4 \
- $(top_srcdir)/m4/sys_socket_h.m4 \
- $(top_srcdir)/m4/sys_stat_h.m4 $(top_srcdir)/m4/sys_time_h.m4 \
- $(top_srcdir)/m4/tempname.m4 $(top_srcdir)/m4/time_h.m4 \
- $(top_srcdir)/m4/time_r.m4 $(top_srcdir)/m4/timespec.m4 \
- $(top_srcdir)/m4/tm_gmtoff.m4 $(top_srcdir)/m4/tzset.m4 \
- $(top_srcdir)/m4/unicodeio.m4 $(top_srcdir)/m4/unistd-safer.m4 \
- $(top_srcdir)/m4/unistd_h.m4 $(top_srcdir)/m4/unlink-busy.m4 \
- $(top_srcdir)/m4/unlinkdir.m4 $(top_srcdir)/m4/unlocked-io.m4 \
- $(top_srcdir)/m4/uptime.m4 $(top_srcdir)/m4/userspec.m4 \
- $(top_srcdir)/m4/utimbuf.m4 $(top_srcdir)/m4/utime.m4 \
- $(top_srcdir)/m4/utimecmp.m4 $(top_srcdir)/m4/utimens.m4 \
- $(top_srcdir)/m4/utimes-null.m4 $(top_srcdir)/m4/utimes.m4 \
- $(top_srcdir)/m4/vasnprintf.m4 $(top_srcdir)/m4/vasprintf.m4 \
- $(top_srcdir)/m4/wchar.m4 $(top_srcdir)/m4/wchar_t.m4 \
- $(top_srcdir)/m4/wctype.m4 $(top_srcdir)/m4/wcwidth.m4 \
- $(top_srcdir)/m4/wint_t.m4 $(top_srcdir)/m4/xalloc.m4 \
- $(top_srcdir)/m4/xfts.m4 $(top_srcdir)/m4/xgetcwd.m4 \
- $(top_srcdir)/m4/xnanosleep.m4 $(top_srcdir)/m4/xstrndup.m4 \
- $(top_srcdir)/m4/xstrtod.m4 $(top_srcdir)/m4/xstrtol.m4 \
- $(top_srcdir)/m4/yesno.m4 $(top_srcdir)/configure.ac
-am__configure_deps = $(am__aclocal_m4_deps) $(CONFIGURE_DEPENDENCIES) \
- $(ACLOCAL_M4)
-mkinstalldirs = $(install_sh) -d
-CONFIG_HEADER = $(top_builddir)/lib/config.h
-CONFIG_CLEAN_FILES =
-SOURCES =
-DIST_SOURCES =
-DISTFILES = $(DIST_COMMON) $(DIST_SOURCES) $(TEXINFOS) $(EXTRA_DIST)
-ABSOLUTE_DIRENT_H = @ABSOLUTE_DIRENT_H@
-ABSOLUTE_FCNTL_H = @ABSOLUTE_FCNTL_H@
-ABSOLUTE_INTTYPES_H = @ABSOLUTE_INTTYPES_H@
-ABSOLUTE_NETINET_IN_H = @ABSOLUTE_NETINET_IN_H@
-ABSOLUTE_STDINT_H = @ABSOLUTE_STDINT_H@
-ABSOLUTE_STDIO_H = @ABSOLUTE_STDIO_H@
-ABSOLUTE_STDLIB_H = @ABSOLUTE_STDLIB_H@
-ABSOLUTE_STRING_H = @ABSOLUTE_STRING_H@
-ABSOLUTE_SYS_SOCKET_H = @ABSOLUTE_SYS_SOCKET_H@
-ABSOLUTE_SYS_STAT_H = @ABSOLUTE_SYS_STAT_H@
-ABSOLUTE_SYS_TIME_H = @ABSOLUTE_SYS_TIME_H@
-ABSOLUTE_TIME_H = @ABSOLUTE_TIME_H@
-ABSOLUTE_UNISTD_H = @ABSOLUTE_UNISTD_H@
-ABSOLUTE_WCHAR_H = @ABSOLUTE_WCHAR_H@
-ABSOLUTE_WCTYPE_H = @ABSOLUTE_WCTYPE_H@
-ACLOCAL = @ACLOCAL@
-ALLOCA = @ALLOCA@
-ALLOCA_H = @ALLOCA_H@
-AMTAR = @AMTAR@
-ARPA_INET_H = @ARPA_INET_H@
-AUTOCONF = @AUTOCONF@
-AUTOHEADER = @AUTOHEADER@
-AUTOMAKE = @AUTOMAKE@
-AWK = @AWK@
-BITSIZEOF_PTRDIFF_T = @BITSIZEOF_PTRDIFF_T@
-BITSIZEOF_SIG_ATOMIC_T = @BITSIZEOF_SIG_ATOMIC_T@
-BITSIZEOF_SIZE_T = @BITSIZEOF_SIZE_T@
-BITSIZEOF_WCHAR_T = @BITSIZEOF_WCHAR_T@
-BITSIZEOF_WINT_T = @BITSIZEOF_WINT_T@
-CC = @CC@
-CCDEPMODE = @CCDEPMODE@
-CFLAGS = @CFLAGS@
-CPP = @CPP@
-CPPFLAGS = @CPPFLAGS@
-CYGPATH_W = @CYGPATH_W@
-DEFAULT_POSIX2_VERSION = @DEFAULT_POSIX2_VERSION@
-DEFS = @DEFS@
-DEPDIR = @DEPDIR@
-DF_PROG = @DF_PROG@
-DIRENT_H = @DIRENT_H@
-ECHO_C = @ECHO_C@
-ECHO_N = @ECHO_N@
-ECHO_T = @ECHO_T@
-EGREP = @EGREP@
-EOVERFLOW = @EOVERFLOW@
-EXEEXT = @EXEEXT@
-FCNTL_H = @FCNTL_H@
-FNMATCH_H = @FNMATCH_H@
-GETLOADAVG_LIBS = @GETLOADAVG_LIBS@
-GETOPT_H = @GETOPT_H@
-GLIBC21 = @GLIBC21@
-GMSGFMT = @GMSGFMT@
-GMSGFMT_015 = @GMSGFMT_015@
-GNULIB_CHOWN = @GNULIB_CHOWN@
-GNULIB_DUP2 = @GNULIB_DUP2@
-GNULIB_FCHDIR = @GNULIB_FCHDIR@
-GNULIB_FPRINTF_POSIX = @GNULIB_FPRINTF_POSIX@
-GNULIB_FTRUNCATE = @GNULIB_FTRUNCATE@
-GNULIB_GETCWD = @GNULIB_GETCWD@
-GNULIB_GETLOGIN_R = @GNULIB_GETLOGIN_R@
-GNULIB_GETSUBOPT = @GNULIB_GETSUBOPT@
-GNULIB_IMAXABS = @GNULIB_IMAXABS@
-GNULIB_IMAXDIV = @GNULIB_IMAXDIV@
-GNULIB_MBSCASECMP = @GNULIB_MBSCASECMP@
-GNULIB_MBSCASESTR = @GNULIB_MBSCASESTR@
-GNULIB_MBSCHR = @GNULIB_MBSCHR@
-GNULIB_MBSCSPN = @GNULIB_MBSCSPN@
-GNULIB_MBSLEN = @GNULIB_MBSLEN@
-GNULIB_MBSNCASECMP = @GNULIB_MBSNCASECMP@
-GNULIB_MBSPBRK = @GNULIB_MBSPBRK@
-GNULIB_MBSPCASECMP = @GNULIB_MBSPCASECMP@
-GNULIB_MBSRCHR = @GNULIB_MBSRCHR@
-GNULIB_MBSSEP = @GNULIB_MBSSEP@
-GNULIB_MBSSPN = @GNULIB_MBSSPN@
-GNULIB_MBSSTR = @GNULIB_MBSSTR@
-GNULIB_MBSTOK_R = @GNULIB_MBSTOK_R@
-GNULIB_MEMMEM = @GNULIB_MEMMEM@
-GNULIB_MEMPCPY = @GNULIB_MEMPCPY@
-GNULIB_MEMRCHR = @GNULIB_MEMRCHR@
-GNULIB_MKDTEMP = @GNULIB_MKDTEMP@
-GNULIB_MKSTEMP = @GNULIB_MKSTEMP@
-GNULIB_PRINTF_POSIX = @GNULIB_PRINTF_POSIX@
-GNULIB_READLINK = @GNULIB_READLINK@
-GNULIB_SNPRINTF = @GNULIB_SNPRINTF@
-GNULIB_SPRINTF_POSIX = @GNULIB_SPRINTF_POSIX@
-GNULIB_STPCPY = @GNULIB_STPCPY@
-GNULIB_STPNCPY = @GNULIB_STPNCPY@
-GNULIB_STRCASESTR = @GNULIB_STRCASESTR@
-GNULIB_STRCHRNUL = @GNULIB_STRCHRNUL@
-GNULIB_STRDUP = @GNULIB_STRDUP@
-GNULIB_STRNDUP = @GNULIB_STRNDUP@
-GNULIB_STRNLEN = @GNULIB_STRNLEN@
-GNULIB_STRPBRK = @GNULIB_STRPBRK@
-GNULIB_STRSEP = @GNULIB_STRSEP@
-GNULIB_STRTOIMAX = @GNULIB_STRTOIMAX@
-GNULIB_STRTOK_R = @GNULIB_STRTOK_R@
-GNULIB_STRTOUMAX = @GNULIB_STRTOUMAX@
-GNULIB_VFPRINTF_POSIX = @GNULIB_VFPRINTF_POSIX@
-GNULIB_VPRINTF_POSIX = @GNULIB_VPRINTF_POSIX@
-GNULIB_VSNPRINTF = @GNULIB_VSNPRINTF@
-GNULIB_VSPRINTF_POSIX = @GNULIB_VSPRINTF_POSIX@
-GNU_PACKAGE = @GNU_PACKAGE@
-GREP = @GREP@
-HAVE_DECL_GETLOGIN_R = @HAVE_DECL_GETLOGIN_R@
-HAVE_DECL_IMAXABS = @HAVE_DECL_IMAXABS@
-HAVE_DECL_IMAXDIV = @HAVE_DECL_IMAXDIV@
-HAVE_DECL_MEMMEM = @HAVE_DECL_MEMMEM@
-HAVE_DECL_MEMRCHR = @HAVE_DECL_MEMRCHR@
-HAVE_DECL_SNPRINTF = @HAVE_DECL_SNPRINTF@
-HAVE_DECL_STRDUP = @HAVE_DECL_STRDUP@
-HAVE_DECL_STRNCASECMP = @HAVE_DECL_STRNCASECMP@
-HAVE_DECL_STRNDUP = @HAVE_DECL_STRNDUP@
-HAVE_DECL_STRNLEN = @HAVE_DECL_STRNLEN@
-HAVE_DECL_STRTOIMAX = @HAVE_DECL_STRTOIMAX@
-HAVE_DECL_STRTOK_R = @HAVE_DECL_STRTOK_R@
-HAVE_DECL_STRTOUMAX = @HAVE_DECL_STRTOUMAX@
-HAVE_DECL_VSNPRINTF = @HAVE_DECL_VSNPRINTF@
-HAVE_DUP2 = @HAVE_DUP2@
-HAVE_FTRUNCATE = @HAVE_FTRUNCATE@
-HAVE_GETSUBOPT = @HAVE_GETSUBOPT@
-HAVE_INTTYPES_H = @HAVE_INTTYPES_H@
-HAVE_LONG_LONG_INT = @HAVE_LONG_LONG_INT@
-HAVE_MEMPCPY = @HAVE_MEMPCPY@
-HAVE_MKDTEMP = @HAVE_MKDTEMP@
-HAVE_NETINET_IN_H = @HAVE_NETINET_IN_H@
-HAVE_READLINK = @HAVE_READLINK@
-HAVE_SIGNED_SIG_ATOMIC_T = @HAVE_SIGNED_SIG_ATOMIC_T@
-HAVE_SIGNED_WCHAR_T = @HAVE_SIGNED_WCHAR_T@
-HAVE_SIGNED_WINT_T = @HAVE_SIGNED_WINT_T@
-HAVE_STDINT_H = @HAVE_STDINT_H@
-HAVE_STPCPY = @HAVE_STPCPY@
-HAVE_STPNCPY = @HAVE_STPNCPY@
-HAVE_STRCASECMP = @HAVE_STRCASECMP@
-HAVE_STRCASESTR = @HAVE_STRCASESTR@
-HAVE_STRCHRNUL = @HAVE_STRCHRNUL@
-HAVE_STRNDUP = @HAVE_STRNDUP@
-HAVE_STRPBRK = @HAVE_STRPBRK@
-HAVE_STRSEP = @HAVE_STRSEP@
-HAVE_STRUCT_TIMEVAL = @HAVE_STRUCT_TIMEVAL@
-HAVE_SYS_BITYPES_H = @HAVE_SYS_BITYPES_H@
-HAVE_SYS_INTTYPES_H = @HAVE_SYS_INTTYPES_H@
-HAVE_SYS_SOCKET_H = @HAVE_SYS_SOCKET_H@
-HAVE_SYS_TIME_H = @HAVE_SYS_TIME_H@
-HAVE_SYS_TYPES_H = @HAVE_SYS_TYPES_H@
-HAVE_UNISTD_H = @HAVE_UNISTD_H@
-HAVE_UNSIGNED_LONG_LONG_INT = @HAVE_UNSIGNED_LONG_LONG_INT@
-HAVE_WCTYPE_H = @HAVE_WCTYPE_H@
-HAVE_WINSOCK2_H = @HAVE_WINSOCK2_H@
-HAVE_WINT_T = @HAVE_WINT_T@
-HAVE_WS2TCPIP_H = @HAVE_WS2TCPIP_H@
-HAVE__BOOL = @HAVE__BOOL@
-HELP2MAN = @HELP2MAN@
-INSTALL = @INSTALL@
-INSTALL_DATA = @INSTALL_DATA@
-INSTALL_PROGRAM = @INSTALL_PROGRAM@
-INSTALL_SCRIPT = @INSTALL_SCRIPT@
-INSTALL_STRIP_PROGRAM = @INSTALL_STRIP_PROGRAM@
-INTLLIBS = @INTLLIBS@
-INTL_MACOSX_LIBS = @INTL_MACOSX_LIBS@
-INTTYPES_H = @INTTYPES_H@
-KMEM_GROUP = @KMEM_GROUP@
-LDFLAGS = @LDFLAGS@
-LIBCOREUTILS_LIBDEPS = @LIBCOREUTILS_LIBDEPS@
-LIBCOREUTILS_LTLIBDEPS = @LIBCOREUTILS_LTLIBDEPS@
-LIBICONV = @LIBICONV@
-LIBINTL = @LIBINTL@
-LIBOBJS = @LIBOBJS@
-LIBS = @LIBS@
-LIB_ACL = @LIB_ACL@
-LIB_ACL_TRIVIAL = @LIB_ACL_TRIVIAL@
-LIB_CLOCK_GETTIME = @LIB_CLOCK_GETTIME@
-LIB_CRYPT = @LIB_CRYPT@
-LIB_EACCESS = @LIB_EACCESS@
-LIB_FDATASYNC = @LIB_FDATASYNC@
-LIB_GETHRXTIME = @LIB_GETHRXTIME@
-LIB_NANOSLEEP = @LIB_NANOSLEEP@
-LN_S = @LN_S@
-LTLIBICONV = @LTLIBICONV@
-LTLIBINTL = @LTLIBINTL@
-LTLIBOBJS = @LTLIBOBJS@
-MAKEINFO = @MAKEINFO@
-MAN = @MAN@
-MKDIR_P = @MKDIR_P@
-MSGFMT = @MSGFMT@
-MSGFMT_015 = @MSGFMT_015@
-MSGMERGE = @MSGMERGE@
-NEED_SETGID = @NEED_SETGID@
-NETINET_IN_H = @NETINET_IN_H@
-OBJEXT = @OBJEXT@
-OPTIONAL_BIN_PROGS = @OPTIONAL_BIN_PROGS@
-PACKAGE = @PACKAGE@
-PACKAGE_BUGREPORT = @PACKAGE_BUGREPORT@
-PACKAGE_NAME = @PACKAGE_NAME@
-PACKAGE_STRING = @PACKAGE_STRING@
-PACKAGE_TARNAME = @PACKAGE_TARNAME@
-PACKAGE_VERSION = @PACKAGE_VERSION@
-PATH_SEPARATOR = @PATH_SEPARATOR@
-PERL = @PERL@
-POSUB = @POSUB@
-POW_LIB = @POW_LIB@
-PRIPTR_PREFIX = @PRIPTR_PREFIX@
-PRI_MACROS_BROKEN = @PRI_MACROS_BROKEN@
-PTRDIFF_T_SUFFIX = @PTRDIFF_T_SUFFIX@
-RANLIB = @RANLIB@
-REPLACE_CHOWN = @REPLACE_CHOWN@
-REPLACE_FCHDIR = @REPLACE_FCHDIR@
-REPLACE_FPRINTF = @REPLACE_FPRINTF@
-REPLACE_GETCWD = @REPLACE_GETCWD@
-REPLACE_GETTIMEOFDAY = @REPLACE_GETTIMEOFDAY@
-REPLACE_LOCALTIME_R = @REPLACE_LOCALTIME_R@
-REPLACE_MKSTEMP = @REPLACE_MKSTEMP@
-REPLACE_NANOSLEEP = @REPLACE_NANOSLEEP@
-REPLACE_PRINTF = @REPLACE_PRINTF@
-REPLACE_SNPRINTF = @REPLACE_SNPRINTF@
-REPLACE_SPRINTF = @REPLACE_SPRINTF@
-REPLACE_STRPTIME = @REPLACE_STRPTIME@
-REPLACE_TIMEGM = @REPLACE_TIMEGM@
-REPLACE_VFPRINTF = @REPLACE_VFPRINTF@
-REPLACE_VPRINTF = @REPLACE_VPRINTF@
-REPLACE_VSNPRINTF = @REPLACE_VSNPRINTF@
-REPLACE_VSPRINTF = @REPLACE_VSPRINTF@
-SEQ_LIBM = @SEQ_LIBM@
-SET_MAKE = @SET_MAKE@
-SHELL = @SHELL@
-SIG_ATOMIC_T_SUFFIX = @SIG_ATOMIC_T_SUFFIX@
-SIZE_T_SUFFIX = @SIZE_T_SUFFIX@
-STDBOOL_H = @STDBOOL_H@
-STDINT_H = @STDINT_H@
-STRIP = @STRIP@
-SYS_SOCKET_H = @SYS_SOCKET_H@
-SYS_STAT_H = @SYS_STAT_H@
-SYS_TIME_H = @SYS_TIME_H@
-SYS_TIME_H_DEFINES_STRUCT_TIMESPEC = @SYS_TIME_H_DEFINES_STRUCT_TIMESPEC@
-TIME_H_DEFINES_STRUCT_TIMESPEC = @TIME_H_DEFINES_STRUCT_TIMESPEC@
-U = @U@
-USE_NLS = @USE_NLS@
-VERSION = @VERSION@
-WCHAR_H = @WCHAR_H@
-WCHAR_T_SUFFIX = @WCHAR_T_SUFFIX@
-WCTYPE_H = @WCTYPE_H@
-WINT_T_SUFFIX = @WINT_T_SUFFIX@
-XGETTEXT = @XGETTEXT@
-XGETTEXT_015 = @XGETTEXT_015@
-YACC = @YACC@
-YFLAGS = @YFLAGS@
-abs_builddir = @abs_builddir@
-abs_srcdir = @abs_srcdir@
-abs_top_builddir = @abs_top_builddir@
-abs_top_srcdir = @abs_top_srcdir@
-ac_ct_CC = @ac_ct_CC@
-am__include = @am__include@
-am__leading_dot = @am__leading_dot@
-am__quote = @am__quote@
-am__tar = @am__tar@
-am__untar = @am__untar@
-bindir = @bindir@
-build = @build@
-build_alias = @build_alias@
-build_cpu = @build_cpu@
-build_os = @build_os@
-build_vendor = @build_vendor@
-builddir = @builddir@
-datadir = @datadir@
-datarootdir = @datarootdir@
-docdir = @docdir@
-dvidir = @dvidir@
-exec_prefix = @exec_prefix@
-gl_LIBOBJS = @gl_LIBOBJS@
-gl_LTLIBOBJS = @gl_LTLIBOBJS@
-host = @host@
-host_alias = @host_alias@
-host_cpu = @host_cpu@
-host_os = @host_os@
-host_vendor = @host_vendor@
-htmldir = @htmldir@
-includedir = @includedir@
-infodir = @infodir@
-install_sh = @install_sh@
-libdir = @libdir@
-libexecdir = @libexecdir@
-localedir = @localedir@
-localstatedir = @localstatedir@
-mandir = @mandir@
-mkdir_p = @mkdir_p@
-oldincludedir = @oldincludedir@
-pdfdir = @pdfdir@
-prefix = @prefix@
-program_transform_name = @program_transform_name@
-psdir = @psdir@
-sbindir = @sbindir@
-sharedstatedir = @sharedstatedir@
-srcdir = @srcdir@
-sysconfdir = @sysconfdir@
-target_alias = @target_alias@
-top_builddir = @top_builddir@
-top_srcdir = @top_srcdir@
-TESTS = \
- one-file-system \
- inacc-dest \
- long-from-unreadable \
- long-sloop \
- 2g \
- files0-from \
- inaccessible-cwd \
- deref-args \
- slash \
- fd-leak \
- hard-link 8gb basic restore-wd \
- exclude no-x no-deref trailing-slash deref two-args slink
-
-EXTRA_DIST = $(TESTS)
-TESTS_ENVIRONMENT = \
- PERL="$(PERL)" \
- CU_TEST_NAME=`basename $(abs_srcdir)`,$$tst \
- PATH="$(VG_PATH_PREFIX)`pwd`/../../src$(PATH_SEPARATOR)$$PATH"
-
-all: all-am
-
-.SUFFIXES:
-$(srcdir)/Makefile.in: $(srcdir)/Makefile.am $(am__configure_deps)
- @for dep in $?; do \
- case '$(am__configure_deps)' in \
- *$$dep*) \
- cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh \
- && exit 0; \
- exit 1;; \
- esac; \
- done; \
- echo ' cd $(top_srcdir) && $(AUTOMAKE) --gnu tests/du/Makefile'; \
- cd $(top_srcdir) && \
- $(AUTOMAKE) --gnu tests/du/Makefile
-.PRECIOUS: Makefile
-Makefile: $(srcdir)/Makefile.in $(top_builddir)/config.status
- @case '$?' in \
- *config.status*) \
- cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh;; \
- *) \
- echo ' cd $(top_builddir) && $(SHELL) ./config.status $(subdir)/$@ $(am__depfiles_maybe)'; \
- cd $(top_builddir) && $(SHELL) ./config.status $(subdir)/$@ $(am__depfiles_maybe);; \
- esac;
-
-$(top_builddir)/config.status: $(top_srcdir)/configure $(CONFIG_STATUS_DEPENDENCIES)
- cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh
-
-$(top_srcdir)/configure: $(am__configure_deps)
- cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh
-$(ACLOCAL_M4): $(am__aclocal_m4_deps)
- cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh
-tags: TAGS
-TAGS:
-
-ctags: CTAGS
-CTAGS:
-
-
-check-TESTS: $(TESTS)
- @failed=0; all=0; xfail=0; xpass=0; skip=0; ws='[ ]'; \
- srcdir=$(srcdir); export srcdir; \
- list=' $(TESTS) '; \
- if test -n "$$list"; then \
- for tst in $$list; do \
- if test -f ./$$tst; then dir=./; \
- elif test -f $$tst; then dir=; \
- else dir="$(srcdir)/"; fi; \
- if $(TESTS_ENVIRONMENT) $${dir}$$tst; then \
- all=`expr $$all + 1`; \
- case " $(XFAIL_TESTS) " in \
- *$$ws$$tst$$ws*) \
- xpass=`expr $$xpass + 1`; \
- failed=`expr $$failed + 1`; \
- echo "XPASS: $$tst"; \
- ;; \
- *) \
- echo "PASS: $$tst"; \
- ;; \
- esac; \
- elif test $$? -ne 77; then \
- all=`expr $$all + 1`; \
- case " $(XFAIL_TESTS) " in \
- *$$ws$$tst$$ws*) \
- xfail=`expr $$xfail + 1`; \
- echo "XFAIL: $$tst"; \
- ;; \
- *) \
- failed=`expr $$failed + 1`; \
- echo "FAIL: $$tst"; \
- ;; \
- esac; \
- else \
- skip=`expr $$skip + 1`; \
- echo "SKIP: $$tst"; \
- fi; \
- done; \
- if test "$$failed" -eq 0; then \
- if test "$$xfail" -eq 0; then \
- banner="All $$all tests passed"; \
- else \
- banner="All $$all tests behaved as expected ($$xfail expected failures)"; \
- fi; \
- else \
- if test "$$xpass" -eq 0; then \
- banner="$$failed of $$all tests failed"; \
- else \
- banner="$$failed of $$all tests did not behave as expected ($$xpass unexpected passes)"; \
- fi; \
- fi; \
- dashes="$$banner"; \
- skipped=""; \
- if test "$$skip" -ne 0; then \
- skipped="($$skip tests were not run)"; \
- test `echo "$$skipped" | wc -c` -le `echo "$$banner" | wc -c` || \
- dashes="$$skipped"; \
- fi; \
- report=""; \
- if test "$$failed" -ne 0 && test -n "$(PACKAGE_BUGREPORT)"; then \
- report="Please report to $(PACKAGE_BUGREPORT)"; \
- test `echo "$$report" | wc -c` -le `echo "$$banner" | wc -c` || \
- dashes="$$report"; \
- fi; \
- dashes=`echo "$$dashes" | sed s/./=/g`; \
- echo "$$dashes"; \
- echo "$$banner"; \
- test -z "$$skipped" || echo "$$skipped"; \
- test -z "$$report" || echo "$$report"; \
- echo "$$dashes"; \
- test "$$failed" -eq 0; \
- else :; fi
-
-distdir: $(DISTFILES)
- @srcdirstrip=`echo "$(srcdir)" | sed 's/[].[^$$\\*]/\\\\&/g'`; \
- topsrcdirstrip=`echo "$(top_srcdir)" | sed 's/[].[^$$\\*]/\\\\&/g'`; \
- list='$(DISTFILES)'; \
- dist_files=`for file in $$list; do echo $$file; done | \
- sed -e "s|^$$srcdirstrip/||;t" \
- -e "s|^$$topsrcdirstrip/|$(top_builddir)/|;t"`; \
- case $$dist_files in \
- */*) $(MKDIR_P) `echo "$$dist_files" | \
- sed '/\//!d;s|^|$(distdir)/|;s,/[^/]*$$,,' | \
- sort -u` ;; \
- esac; \
- for file in $$dist_files; do \
- if test -f $$file || test -d $$file; then d=.; else d=$(srcdir); fi; \
- if test -d $$d/$$file; then \
- dir=`echo "/$$file" | sed -e 's,/[^/]*$$,,'`; \
- if test -d $(srcdir)/$$file && test $$d != $(srcdir); then \
- cp -pR $(srcdir)/$$file $(distdir)$$dir || exit 1; \
- fi; \
- cp -pR $$d/$$file $(distdir)$$dir || exit 1; \
- else \
- test -f $(distdir)/$$file \
- || cp -p $$d/$$file $(distdir)/$$file \
- || exit 1; \
- fi; \
- done
-check-am: all-am
- $(MAKE) $(AM_MAKEFLAGS) check-TESTS
-check: check-am
-all-am: Makefile
-installdirs:
-install: install-am
-install-exec: install-exec-am
-install-data: install-data-am
-uninstall: uninstall-am
-
-install-am: all-am
- @$(MAKE) $(AM_MAKEFLAGS) install-exec-am install-data-am
-
-installcheck: installcheck-am
-install-strip:
- $(MAKE) $(AM_MAKEFLAGS) INSTALL_PROGRAM="$(INSTALL_STRIP_PROGRAM)" \
- install_sh_PROGRAM="$(INSTALL_STRIP_PROGRAM)" INSTALL_STRIP_FLAG=-s \
- `test -z '$(STRIP)' || \
- echo "INSTALL_PROGRAM_ENV=STRIPPROG='$(STRIP)'"` install
-mostlyclean-generic:
-
-clean-generic:
-
-distclean-generic:
- -test -z "$(CONFIG_CLEAN_FILES)" || rm -f $(CONFIG_CLEAN_FILES)
-
-maintainer-clean-generic:
- @echo "This command is intended for maintainers to use"
- @echo "it deletes files that may require special tools to rebuild."
-clean: clean-am
-
-clean-am: clean-generic mostlyclean-am
-
-distclean: distclean-am
- -rm -f Makefile
-distclean-am: clean-am distclean-generic
-
-dvi: dvi-am
-
-dvi-am:
-
-html: html-am
-
-info: info-am
-
-info-am:
-
-install-data-am:
-
-install-dvi: install-dvi-am
-
-install-exec-am:
-
-install-html: install-html-am
-
-install-info: install-info-am
-
-install-man:
-
-install-pdf: install-pdf-am
-
-install-ps: install-ps-am
-
-installcheck-am:
-
-maintainer-clean: maintainer-clean-am
- -rm -f Makefile
-maintainer-clean-am: distclean-am maintainer-clean-generic
-
-mostlyclean: mostlyclean-am
-
-mostlyclean-am: mostlyclean-generic
-
-pdf: pdf-am
-
-pdf-am:
-
-ps: ps-am
-
-ps-am:
-
-uninstall-am:
-
-.MAKE: install-am install-strip
-
-.PHONY: all all-am check check-TESTS check-am clean clean-generic \
- distclean distclean-generic distdir dvi dvi-am html html-am \
- info info-am install install-am install-data install-data-am \
- install-dvi install-dvi-am install-exec install-exec-am \
- install-html install-html-am install-info install-info-am \
- install-man install-pdf install-pdf-am install-ps \
- install-ps-am install-strip installcheck installcheck-am \
- installdirs maintainer-clean maintainer-clean-generic \
- mostlyclean mostlyclean-generic pdf pdf-am ps ps-am uninstall \
- uninstall-am
-
-# Tell versions [3.59,3.63) of GNU make to not export all variables.
-# Otherwise a system limit (for SysV at least) may be exceeded.
-.NOEXPORT:
diff --git a/tests/du/basic b/tests/du/basic
deleted file mode 100755
index 665a416..0000000
--- a/tests/du/basic
+++ /dev/null
@@ -1,113 +0,0 @@
-#!/bin/sh
-# Compare actual numbers from du, assuming block size matches mine.
-
-# Copyright (C) 2003, 2006-2007 Free Software Foundation, Inc.
-
-# This program is free software; you can redistribute it and/or modify
-# it under the terms of the GNU General Public License as published by
-# the Free Software Foundation; either version 2 of the License, or
-# (at your option) any later version.
-
-# This program is distributed in the hope that it will be useful,
-# but WITHOUT ANY WARRANTY; without even the implied warranty of
-# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
-# GNU General Public License for more details.
-
-# You should have received a copy of the GNU General Public License
-# along with this program; if not, write to the Free Software
-# Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA
-# 02110-1301, USA.
-
-if test "$VERBOSE" = yes; then
- set -x
- du --version
-fi
-
-# DU_BLOCK_SIZE could cause problems
-. $srcdir/../envvar-check
-. $srcdir/../lang-default
-
-pwd=`pwd`
-t0=`echo "$0"|sed 's,.*/,,'`.tmp; tmp=$t0/$$
-trap 'status=$?; cd "$pwd" && chmod -R u+rwx $t0 && rm -rf $t0 && exit $status' 0
-trap '(exit $?); exit $?' 1 2 13 15
-
-framework_failure=0
-mkdir -p $tmp || framework_failure=1
-cd $tmp || framework_failure=1
-mkdir -p a/b d d/sub || framework_failure=1
-
-# Ensure that these files contain more than 64 bytes, so that we don't
-# immediately disqualify file systems (e.g., NetApp) on which smaller
-# files take up zero disk blocks.
-printf '%*s' 257 make-sure-the-file-is-non-empty > a/b/F || framework_failure=1
-printf %4096s x > d/1
-cp d/1 d/sub/2
-
-if test $framework_failure = 1; then
- echo "$0: failure in testing framework" 1>&2
- (exit 1); exit 1
-fi
-
-fail=0
-
-B=`stat --format=%B a/b/F`
-
-du --block-size=$B -a a > out || fail=1
-echo === >> out
-du --block-size=$B -a -S a >> out || fail=1
-echo === >> out
-du --block-size=$B -s a >> out || fail=1
-
-f=`stat --format=%b a/b/F`
-b=`stat --format=%b a/b`
-a=`stat --format=%b a`
-bf=`expr $b + $f`
-tot=`expr $bf + $a`
-
-cat <<EOF | sed 's/ *#.*//' > exp
-$f a/b/F
-$bf a/b
-$tot a
-===
-$f a/b/F # size of file, a/b/F
-$bf a/b # size of dir entry, a/b, + size of file, a/b/F
-$a a # size of dir entry, a
-===
-$tot a
-EOF
-
-cmp out exp || fail=1
-test $fail = 1 && diff -u out exp 2> /dev/null
-
-# Perform this test only if "." is on a local file system.
-# Otherwise, it would fail e.g., on an NFS-mounted Solaris ZFS file system.
-if df --local . >/dev/null 2>&1; then
- rm -f out exp
- du --block-size=$B -a d | sort -r -k2,2 > out || fail=1
- echo === >> out
- du --block-size=$B -S d | sort -r -k2,2 >> out || fail=1
-
- t2=`stat --format=%b d/sub/2`
- ts=`stat --format=%b d/sub`
- t1=`stat --format=%b d/1`
- td=`stat --format=%b d`
- tot=`expr $t1 + $t2 + $ts + $td`
- d1=`expr $td + $t1`
- s2=`expr $ts + $t2`
-
- cat <<EOF | sed 's/ *#.*//' > exp
-$t2 d/sub/2
-$s2 d/sub
-$t1 d/1
-$tot d
-===
-$s2 d/sub
-$d1 d # d + d/1; don't count the dir. entry for d/sub
-EOF
-
- cmp out exp || fail=1
- test $fail = 1 && diff out exp 2> /dev/null
-fi
-
-(exit $fail); exit $fail
diff --git a/tests/du/basic.sh b/tests/du/basic.sh
new file mode 100755
index 0000000..0218e97
--- /dev/null
+++ b/tests/du/basic.sh
@@ -0,0 +1,89 @@
+#!/bin/sh
+# Compare actual numbers from du, assuming block size matches mine.
+
+# Copyright (C) 2003-2016 Free Software Foundation, Inc.
+
+# This program is free software: you can redistribute it and/or modify
+# it under the terms of the GNU General Public License as published by
+# the Free Software Foundation, either version 3 of the License, or
+# (at your option) any later version.
+
+# This program is distributed in the hope that it will be useful,
+# but WITHOUT ANY WARRANTY; without even the implied warranty of
+# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
+# GNU General Public License for more details.
+
+# You should have received a copy of the GNU General Public License
+# along with this program. If not, see <http://www.gnu.org/licenses/>.
+
+. "${srcdir=.}/tests/init.sh"; path_prepend_ ./src
+print_ver_ du
+
+mkdir -p a/b d d/sub || framework_failure_
+
+# Ensure that these files contain more than 64 bytes, so that we don't
+# immediately disqualify file systems (e.g., NetApp) on which smaller
+# files take up zero disk blocks.
+printf '%*s' 257 make-sure-the-file-is-non-empty > a/b/F || framework_failure_
+printf %4096s x > d/1
+cp d/1 d/sub/2
+
+
+B=$(stat --format=%B a/b/F)
+
+du --block-size=$B -a a > out || fail=1
+echo === >> out
+du --block-size=$B -a -S a >> out || fail=1
+echo === >> out
+du --block-size=$B -s a >> out || fail=1
+
+f=$(stat --format=%b a/b/F)
+b=$(stat --format=%b a/b)
+a=$(stat --format=%b a)
+bf=$(expr $b + $f)
+tot=$(expr $bf + $a)
+
+cat <<EOF | sed 's/ *#.*//' > exp
+$f a/b/F
+$bf a/b
+$tot a
+===
+$f a/b/F # size of file, a/b/F
+$bf a/b # size of dir entry, a/b, + size of file, a/b/F
+$a a # size of dir entry, a
+===
+$tot a
+EOF
+
+compare exp out || fail=1
+
+# Perform this test only if "." is on a local file system.
+# Otherwise, it would fail e.g., on an NFS-mounted Solaris ZFS file system.
+if is_local_dir_ .; then
+ rm -f out exp
+ du --block-size=$B -a d | sort -r -k2,2 > out || fail=1
+ echo === >> out
+ du --block-size=$B -S d | sort -r -k2,2 >> out || fail=1
+
+ t2=$(stat --format=%b d/sub/2)
+ ts=$(stat --format=%b d/sub)
+ t1=$(stat --format=%b d/1)
+ td=$(stat --format=%b d)
+ tot=$(expr $t1 + $t2 + $ts + $td)
+ d1=$(expr $td + $t1)
+ s2=$(expr $ts + $t2)
+
+ cat <<EOF | sed 's/ *#.*//' > exp
+$t2 d/sub/2
+$s2 d/sub
+$t1 d/1
+$tot d
+===
+$s2 d/sub
+$d1 d # d + d/1; don't count the dir. entry for d/sub
+EOF
+
+ compare exp out || fail=1
+fi
+
+Exit $fail
diff --git a/tests/du/bigtime.sh b/tests/du/bigtime.sh
new file mode 100755
index 0000000..7640380
--- /dev/null
+++ b/tests/du/bigtime.sh
@@ -0,0 +1,52 @@
+#!/bin/sh
+# Exercise du on a file with a big time stamp.
+
+# Copyright (C) 2010-2016 Free Software Foundation, Inc.
+
+# This program is free software: you can redistribute it and/or modify
+# it under the terms of the GNU General Public License as published by
+# the Free Software Foundation, either version 3 of the License, or
+# (at your option) any later version.
+
+# This program is distributed in the hope that it will be useful,
+# but WITHOUT ANY WARRANTY; without even the implied warranty of
+# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
+# GNU General Public License for more details.
+
+# You should have received a copy of the GNU General Public License
+# along with this program. If not, see <http://www.gnu.org/licenses/>.
+
+. "${srcdir=.}/tests/init.sh"; path_prepend_ ./src
+print_ver_ du
+
+export LC_ALL=C
+export TZ=UTC0
+
+# 2**63 - 1
+bignum=9223372036854775807
+
+touch -d @$bignum future 2>/dev/null &&
+future_time=$(ls -l future) &&
+case "$future_time" in
+*" $bignum "*)
+ : ;;
+*' Dec 4 300627798676 '*)
+ skip_ "file system and localtime both handle big timestamps" ;;
+*)
+ skip_ "file system or localtime mishandles big time stamps:" \
+ "$future_time" ;;
+esac || skip_ "file system cannot represent big time stamps"
+
+printf "0\t$bignum\tfuture\n" > exp || framework_failure_
+printf "du: time '$bignum' is out of range\n" > err_ok || framework_failure_
+
+du --time future >out 2>err || fail=1
+
+# On some systems an empty file occupies 4 blocks.
+# Map the number of blocks to 0.
+sed 's/^[0-9][0-9]*/0/' out > k && mv k out
+
+compare exp out || fail=1
+compare err err_ok || fail=1
+
+Exit $fail
diff --git a/tests/du/bind-mount-dir-cycle-v2.sh b/tests/du/bind-mount-dir-cycle-v2.sh
new file mode 100755
index 0000000..e5d1d50
--- /dev/null
+++ b/tests/du/bind-mount-dir-cycle-v2.sh
@@ -0,0 +1,38 @@
+#!/bin/sh
+# Check that du can handle sub-bind-mounts cycles as well.
+
+# Copyright (C) 2014-2016 Free Software Foundation, Inc.
+
+# This program is free software: you can redistribute it and/or modify
+# it under the terms of the GNU General Public License as published by
+# the Free Software Foundation, either version 3 of the License, or
+# (at your option) any later version.
+
+# This program is distributed in the hope that it will be useful,
+# but WITHOUT ANY WARRANTY; without even the implied warranty of
+# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
+# GNU General Public License for more details.
+
+# You should have received a copy of the GNU General Public License
+# along with this program. If not, see <http://www.gnu.org/licenses/>.
+
+. "${srcdir=.}/tests/init.sh"; path_prepend_ ./src
+print_ver_ du
+require_root_
+
+cleanup_() { umount a/b/c; }
+
+mkdir -p a/b/c || framework_failure_
+mount --bind a a/b/c \
+ || skip_ 'This test requires mount with a working --bind option.'
+
+echo a/b/c > exp || framework_failure_
+echo a/b >> exp || framework_failure_
+
+du a/b > out 2> err || fail=1
+sed 's/^[0-9][0-9]* //' out > k && mv k out
+
+compare /dev/null err || fail=1
+compare exp out || fail=1
+
+Exit $fail
diff --git a/tests/du/bind-mount-dir-cycle.sh b/tests/du/bind-mount-dir-cycle.sh
new file mode 100755
index 0000000..42c9d1e
--- /dev/null
+++ b/tests/du/bind-mount-dir-cycle.sh
@@ -0,0 +1,37 @@
+#!/bin/sh
+# Exercise du's new ability to handle bind-mount-induced dir cycles.
+
+# Copyright (C) 2012-2016 Free Software Foundation, Inc.
+
+# This program is free software: you can redistribute it and/or modify
+# it under the terms of the GNU General Public License as published by
+# the Free Software Foundation, either version 3 of the License, or
+# (at your option) any later version.
+
+# This program is distributed in the hope that it will be useful,
+# but WITHOUT ANY WARRANTY; without even the implied warranty of
+# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
+# GNU General Public License for more details.
+
+# You should have received a copy of the GNU General Public License
+# along with this program. If not, see <http://www.gnu.org/licenses/>.
+
+. "${srcdir=.}/tests/init.sh"; path_prepend_ ./src
+print_ver_ du
+require_root_
+
+cleanup_() { umount a/b; }
+
+mkdir -p a/b || framework_failure_
+mount --bind a a/b \
+ || skip_ "This test requires mount with a working --bind option."
+
+echo a > exp || framework_failure_
+
+du a > out 2> err || fail=1
+sed 's/^[0-9][0-9]* //' out > k && mv k out
+
+compare /dev/null err || fail=1
+compare exp out || fail=1
+
+Exit $fail
diff --git a/tests/du/deref b/tests/du/deref
deleted file mode 100755
index 407797a..0000000
--- a/tests/du/deref
+++ /dev/null
@@ -1,50 +0,0 @@
-#!/bin/sh
-# prior to coreutils-4.5.3, du -D didn't work in some cases
-# Based on an example from Andreas Schwab and/or Michal Svec.
-
-# Copyright (C) 2002, 2006 Free Software Foundation, Inc.
-
-# This program is free software; you can redistribute it and/or modify
-# it under the terms of the GNU General Public License as published by
-# the Free Software Foundation; either version 2 of the License, or
-# (at your option) any later version.
-
-# This program is distributed in the hope that it will be useful,
-# but WITHOUT ANY WARRANTY; without even the implied warranty of
-# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
-# GNU General Public License for more details.
-
-# You should have received a copy of the GNU General Public License
-# along with this program; if not, write to the Free Software
-# Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA
-# 02110-1301, USA.
-
-if test "$VERBOSE" = yes; then
- set -x
- du --version
-fi
-
-pwd=`pwd`
-t0=`echo "$0"|sed 's,.*/,,'`.tmp; tmp=$t0/$$
-trap 'status=$?; cd "$pwd" && chmod -R u+rwx $t0 && rm -rf $t0 && exit $status' 0
-trap '(exit $?); exit $?' 1 2 13 15
-
-framework_failure=0
-mkdir -p $tmp || framework_failure=1
-cd $tmp || framework_failure=1
-mkdir -p a/sub || framework_failure=1
-ln -s a/sub slink || framework_failure=1
-touch b || framework_failure=1
-
-if test $framework_failure = 1; then
- echo "$0: failure in testing framework" 1>&2
- (exit 1); exit 1
-fi
-
-fail=0
-
-# This used to fail with the following diagnostic:
-# du: `b': No such file or directory
-du -sD slink b > /dev/null 2>&1 || fail=1
-
-(exit $fail); exit $fail
diff --git a/tests/du/deref-args b/tests/du/deref-args
deleted file mode 100755
index 79225f5..0000000
--- a/tests/du/deref-args
+++ /dev/null
@@ -1,69 +0,0 @@
-#!/bin/sh
-# Ensure that --dereference-args (-D) gives reasonable names.
-# This test would fail for coreutils-5.0.91.
-
-# Copyright (C) 2003, 2004, 2005, 2006 Free Software Foundation, Inc.
-
-# This program is free software; you can redistribute it and/or modify
-# it under the terms of the GNU General Public License as published by
-# the Free Software Foundation; either version 2 of the License, or
-# (at your option) any later version.
-
-# This program is distributed in the hope that it will be useful,
-# but WITHOUT ANY WARRANTY; without even the implied warranty of
-# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
-# GNU General Public License for more details.
-
-# You should have received a copy of the GNU General Public License
-# along with this program; if not, write to the Free Software
-# Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA
-# 02110-1301, USA.
-
-if test "$VERBOSE" = yes; then
- set -x
- du --version
-fi
-
-. $srcdir/../envvar-check
-
-pwd=`pwd`
-t0=`echo "$0"|sed 's,.*/,,'`.tmp; tmp=$t0/$$
-trap 'status=$?; cd "$pwd" && chmod -R u+rwx $t0 && rm -rf $t0 && exit $status' 0
-trap '(exit $?); exit $?' 1 2 13 15
-
-framework_failure=0
-mkdir -p $tmp || framework_failure=1
-cd $tmp || framework_failure=1
-mkdir -p dir/a
-ln -s dir slink
-printf %65536s x > 64k
-ln -s 64k slink-to-64k
-
-if test $framework_failure = 1; then
- echo "$0: failure in testing framework" 1>&2
- (exit 1); exit 1
-fi
-
-fail=0
-
-du -D slink | sed 's/^[0-9][0-9]* //' > out
-# Ensure that the trailing slash is preserved and handled properly.
-du -D slink/ | sed 's/^[0-9][0-9]* //' >> out
-
-# Ensure that -D makes du dereference even symlinks to non-directories.
-# Be sure to use --apparent-size. Otherwise, we'd get varying block counts
-# depending on file system type (e.g. 68 on ext3 vs. 64 on tmpfs and 72
-# on SELinux-enabled systems).
-du --apparent-size --block-size=1K -D slink-to-64k >> out
-cat <<\EOF > exp
-slink/a
-slink
-slink/a
-slink/
-64 slink-to-64k
-EOF
-
-cmp out exp || fail=1
-test $fail = 1 && diff out exp 2> /dev/null
-
-(exit $fail); exit $fail
diff --git a/tests/du/deref-args.sh b/tests/du/deref-args.sh
new file mode 100755
index 0000000..b24bb41
--- /dev/null
+++ b/tests/du/deref-args.sh
@@ -0,0 +1,48 @@
+#!/bin/sh
+# Ensure that --dereference-args (-D) gives reasonable names.
+# This test would fail for coreutils-5.0.91.
+
+# Copyright (C) 2003-2016 Free Software Foundation, Inc.
+
+# This program is free software: you can redistribute it and/or modify
+# it under the terms of the GNU General Public License as published by
+# the Free Software Foundation, either version 3 of the License, or
+# (at your option) any later version.
+
+# This program is distributed in the hope that it will be useful,
+# but WITHOUT ANY WARRANTY; without even the implied warranty of
+# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
+# GNU General Public License for more details.
+
+# You should have received a copy of the GNU General Public License
+# along with this program. If not, see <http://www.gnu.org/licenses/>.
+
+. "${srcdir=.}/tests/init.sh"; path_prepend_ ./src
+print_ver_ du
+
+mkdir -p dir/a || framework_failure_
+ln -s dir slink || framework_failure_
+printf %65536s x > 64k || framework_failure_
+ln -s 64k slink-to-64k || framework_failure_
+
+
+du -D slink | sed 's/^[0-9][0-9]* //' > out
+# Ensure that the trailing slash is preserved and handled properly.
+du -D slink/ | sed 's/^[0-9][0-9]* //' >> out
+
+# Ensure that -D makes du dereference even symlinks to non-directories.
+# Be sure to use --apparent-size. Otherwise, we'd get varying block counts
+# depending on file system type (e.g. 68 on ext3 vs. 64 on tmpfs and 72
+# on SELinux-enabled systems).
+du --apparent-size --block-size=1K -D slink-to-64k >> out
+cat <<\EOF > exp
+slink/a
+slink
+slink/a
+slink/
+64 slink-to-64k
+EOF
+
+compare exp out || fail=1
+
+Exit $fail
diff --git a/tests/du/deref.sh b/tests/du/deref.sh
new file mode 100755
index 0000000..aca3cb5
--- /dev/null
+++ b/tests/du/deref.sh
@@ -0,0 +1,48 @@
+#!/bin/sh
+# prior to coreutils-4.5.3, du -D didn't work in some cases
+# Based on an example from Andreas Schwab and/or Michal Svec.
+# Also, up to coreutils-8.5, du -L sometimes incorrectly
+# counted the space of the followed symlinks.
+
+# Copyright (C) 2002-2016 Free Software Foundation, Inc.
+
+# This program is free software: you can redistribute it and/or modify
+# it under the terms of the GNU General Public License as published by
+# the Free Software Foundation, either version 3 of the License, or
+# (at your option) any later version.
+
+# This program is distributed in the hope that it will be useful,
+# but WITHOUT ANY WARRANTY; without even the implied warranty of
+# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
+# GNU General Public License for more details.
+
+# You should have received a copy of the GNU General Public License
+# along with this program. If not, see <http://www.gnu.org/licenses/>.
+
+. "${srcdir=.}/tests/init.sh"; path_prepend_ ./src
+print_ver_ du
+
+mkdir -p a/sub || framework_failure_
+ln -s a/sub slink || framework_failure_
+touch b || framework_failure_
+ln -s .. a/sub/dotdot || framework_failure_
+ln -s nowhere dangle || framework_failure_
+
+
+# This used to fail with the following diagnostic:
+# du: 'b': No such file or directory
+du -sD slink b > /dev/null 2>&1 || fail=1
+
+# This used to fail to report the dangling symlink.
+returns_ 1 du -L dangle > /dev/null 2>&1 || fail=1
+
+# du -L used to mess up, either by counting the symlink's disk space itself
+# (-L should follow symlinks, not count their space)
+# or (briefly in July 2010) by omitting the entry for "a".
+du_L_output=$(du -L a) || fail=1
+du_lL_output=$(du -lL a) || fail=1
+du_x_output=$(du --exclude=dotdot a) || fail=1
+test "X$du_L_output" = "X$du_x_output" || fail=1
+test "X$du_lL_output" = "X$du_x_output" || fail=1
+
+Exit $fail
diff --git a/tests/du/exclude b/tests/du/exclude
deleted file mode 100755
index e197fcd..0000000
--- a/tests/du/exclude
+++ /dev/null
@@ -1,79 +0,0 @@
-#!/bin/sh
-# make sure du's --exclude option works
-
-# Copyright (C) 2003, 2004, 2005, 2006 Free Software Foundation, Inc.
-
-# This program is free software; you can redistribute it and/or modify
-# it under the terms of the GNU General Public License as published by
-# the Free Software Foundation; either version 2 of the License, or
-# (at your option) any later version.
-
-# This program is distributed in the hope that it will be useful,
-# but WITHOUT ANY WARRANTY; without even the implied warranty of
-# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
-# GNU General Public License for more details.
-
-# You should have received a copy of the GNU General Public License
-# along with this program; if not, write to the Free Software
-# Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA
-# 02110-1301, USA.
-
-if test "$VERBOSE" = yes; then
- set -x
- du --version
-fi
-
-. $srcdir/../envvar-check
-
-pwd=`pwd`
-t0=`echo "$0"|sed 's,.*/,,'`.tmp; tmp=$t0/$$
-trap 'status=$?; cd "$pwd" && chmod -R u+rwx $t0 && rm -rf $t0 && exit $status' 0
-trap '(exit $?); exit $?' 1 2 13 15
-
-framework_failure=0
-mkdir -p $tmp || framework_failure=1
-cd $tmp || framework_failure=1
-mkdir -p a/b/c a/x/y a/u/v
-
-if test $framework_failure = 1; then
- echo "$0: failure in testing framework" 1>&2
- (exit 1); exit 1
-fi
-
-fail=0
-
-du --exclude=x a | sed 's/^[0-9][0-9]* //' | sort > out || fail=1
-printf '===\n' >> out
-printf 'b\n' > excl
-du --exclude-from=excl a | sed 's/^[0-9][0-9]* //' | sort >> out || fail=1
-printf '===\n' >> out
-# Make sure that we can exclude an entire hierarchy.
-du --exclude=a a >> out || fail=1
-# Make sure that we can exclude based on more than one component.
-# Before coreutils-5.3.0, this part would fail.
-printf '===\n' >> out
-du --exclude=a/u --exclude=a/b a \
- | sed 's/^[0-9][0-9]* //' | sort >> out || fail=1
-cat <<\EOF > exp
-a
-a/b
-a/b/c
-a/u
-a/u/v
-===
-a
-a/u
-a/u/v
-a/x
-a/x/y
-===
-===
-a
-a/x
-a/x/y
-EOF
-
-cmp out exp || fail=1
-test $fail = 1 && diff out exp 2> /dev/null
-
-(exit $fail); exit $fail
diff --git a/tests/du/exclude.sh b/tests/du/exclude.sh
new file mode 100755
index 0000000..431318d
--- /dev/null
+++ b/tests/du/exclude.sh
@@ -0,0 +1,58 @@
+#!/bin/sh
+# make sure du's --exclude option works
+
+# Copyright (C) 2003-2016 Free Software Foundation, Inc.
+
+# This program is free software: you can redistribute it and/or modify
+# it under the terms of the GNU General Public License as published by
+# the Free Software Foundation, either version 3 of the License, or
+# (at your option) any later version.
+
+# This program is distributed in the hope that it will be useful,
+# but WITHOUT ANY WARRANTY; without even the implied warranty of
+# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
+# GNU General Public License for more details.
+
+# You should have received a copy of the GNU General Public License
+# along with this program. If not, see <http://www.gnu.org/licenses/>.
+
+. "${srcdir=.}/tests/init.sh"; path_prepend_ ./src
+print_ver_ du
+
+mkdir -p a/b/c a/x/y a/u/v || framework_failure_
+
+
+du --exclude=x a | sed 's/^[0-9][0-9]* //' | sort > out || fail=1
+printf '===\n' >> out
+printf 'b\n' > excl
+du --exclude-from=excl a | sed 's/^[0-9][0-9]* //' | sort >> out || fail=1
+printf '===\n' >> out
+# Make sure that we can exclude an entire hierarchy.
+du --exclude=a a >> out || fail=1
+# Make sure that we can exclude based on more than one component.
+# Before coreutils-5.3.0, this part would fail.
+printf '===\n' >> out
+du --exclude=a/u --exclude=a/b a \
+ | sed 's/^[0-9][0-9]* //' | sort >> out || fail=1
+cat <<\EOF > exp
+a
+a/b
+a/b/c
+a/u
+a/u/v
+===
+a
+a/u
+a/u/v
+a/x
+a/x/y
+===
+===
+a
+a/x
+a/x/y
+EOF
+
+compare exp out || fail=1
+
+Exit $fail
diff --git a/tests/du/fd-leak b/tests/du/fd-leak
deleted file mode 100755
index 465fcae..0000000
--- a/tests/du/fd-leak
+++ /dev/null
@@ -1,61 +0,0 @@
-#!/bin/sh
-# check for file descriptor leak
-
-# Copyright (C) 2003, 2006 Free Software Foundation, Inc.
-
-# This program is free software; you can redistribute it and/or modify
-# it under the terms of the GNU General Public License as published by
-# the Free Software Foundation; either version 2 of the License, or
-# (at your option) any later version.
-
-# This program is distributed in the hope that it will be useful,
-# but WITHOUT ANY WARRANTY; without even the implied warranty of
-# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
-# GNU General Public License for more details.
-
-# You should have received a copy of the GNU General Public License
-# along with this program; if not, write to the Free Software
-# Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA
-# 02110-1301, USA.
-
-if test "$VERBOSE" = yes; then
- set -x
- du --version
-fi
-
-# Call this an expensive test. It's not that expensive, but command line
-# limitations might induce failure on some losing systems.
-. $srcdir/../expensive
-
-pwd=`pwd`
-t0=`echo "$0"|sed 's,.*/,,'`.tmp; tmp=$t0/$$
-trap 'status=$?; cd "$pwd" && chmod -R u+rwx $t0 && rm -rf $t0 && exit $status' 0
-trap '(exit $?); exit $?' 1 2 13 15
-
-framework_failure=0
-mkdir -p $tmp || framework_failure=1
-cd $tmp || framework_failure=1
-# Create 1296 (36^2) files.
-# Their names and separating spaces take up 3887 bytes.
-x='a b c d e f g h i j k l m n o p q r s t u v w x y z 0 1 2 3 4 5 6 7 8 9'
-f=
-for i in $x; do
- for j in $x; do
- f="$f $i$j"
- done
-done
-
-# This may fail due to command line limitations.
-touch $f || framework_failure=1
-
-if test $framework_failure = 1; then
- echo "$0: failure in testing framework" 1>&2
- (exit 1); exit 1
-fi
-
-fail=0
-
-# With coreutils-5.0, this would fail due to a file descriptor leak.
-du $f > out || fail=1
-
-(exit $fail); exit $fail
diff --git a/tests/du/fd-leak.sh b/tests/du/fd-leak.sh
new file mode 100755
index 0000000..c32b965
--- /dev/null
+++ b/tests/du/fd-leak.sh
@@ -0,0 +1,43 @@
+#!/bin/sh
+# check for file descriptor leak
+
+# Copyright (C) 2003-2016 Free Software Foundation, Inc.
+
+# This program is free software: you can redistribute it and/or modify
+# it under the terms of the GNU General Public License as published by
+# the Free Software Foundation, either version 3 of the License, or
+# (at your option) any later version.
+
+# This program is distributed in the hope that it will be useful,
+# but WITHOUT ANY WARRANTY; without even the implied warranty of
+# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
+# GNU General Public License for more details.
+
+# You should have received a copy of the GNU General Public License
+# along with this program. If not, see <http://www.gnu.org/licenses/>.
+
+. "${srcdir=.}/tests/init.sh"; path_prepend_ ./src
+print_ver_ du
+
+# Call this an expensive test. It's not that expensive, but command line
+# limitations might induce failure on some losing systems.
+expensive_
+
+# Create 1296 (36^2) files.
+# Their names and separating spaces take up 3887 bytes.
+x='a b c d e f g h i j k l m n o p q r s t u v w x y z 0 1 2 3 4 5 6 7 8 9'
+f=
+for i in $x; do
+ for j in $x; do
+ f="$f $i$j"
+ done
+done
+
+# This may fail due to command line limitations.
+touch $f || framework_failure_
+
+
+# With coreutils-5.0, this would fail due to a file descriptor leak.
+du $f > out || fail=1
+
+Exit $fail
diff --git a/tests/du/files0-from b/tests/du/files0-from
deleted file mode 100755
index fdcb595..0000000
--- a/tests/du/files0-from
+++ /dev/null
@@ -1,107 +0,0 @@
-#!/bin/sh
-# -*- perl -*-
-# Exercise du's --files0-from option.
-
-# Copyright (C) 2004, 2005 Free Software Foundation, Inc.
-
-# This program is free software; you can redistribute it and/or modify
-# it under the terms of the GNU General Public License as published by
-# the Free Software Foundation; either version 2 of the License, or
-# (at your option) any later version.
-
-# This program is distributed in the hope that it will be useful,
-# but WITHOUT ANY WARRANTY; without even the implied warranty of
-# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
-# GNU General Public License for more details.
-
-# You should have received a copy of the GNU General Public License
-# along with this program; if not, write to the Free Software
-# Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA
-# 02110-1301, USA.
-
-: ${PERL=perl}
-: ${srcdir=.}
-
-. $srcdir/../envvar-check
-
-$PERL -e 1 > /dev/null 2>&1 || {
- echo 1>&2 "$0: configure didn't find a usable version of Perl," \
- "so can't run this test"
- exit 77
-}
-
-exec $PERL -w -I$srcdir/.. -MCoreutils -- - <<\EOF
-#/
-require 5.003;
-use strict;
-
-(my $program_name = $0) =~ s|.*/||;
-
-$ENV{PROG} = 'du';
-
-# Turn off localization of executable's ouput.
-@ENV{qw(LANGUAGE LANG LC_ALL)} = ('C') x 3;
-
-my @Tests =
- (
- # invalid extra command line argument
- ['f-extra-arg', '--files0-from=- no-such', {IN=>"a"}, {EXIT=>1},
- {ERR => "du: extra operand `no-such'\n"
- . "File operands cannot be combined with --files0-from.\n"
- . "Try `du --help' for more information.\n"}
- ],
-
- # missing input file
- ['missing', '--files0-from=missing', {EXIT=>1},
- {ERR => "du: cannot open `missing' for reading: "
- . "No such file or directory\n"}],
-
- # empty input
- ['empty', '--files0-from=-'],
-
- # empty input, from non-regular file
- ['empty-nonreg', '--files0-from=/dev/null'],
-
- # one NUL
- ['nul-1', '--files0-from=-', '<', {IN=>"\0"}, {EXIT=>1},
- {ERR => "du: -:1: invalid zero-length file name\n"}],
-
- # two NULs
- ['nul-2', '--files0-from=-', '<', {IN=>"\0\0"}, {EXIT=>1},
- {ERR => "du: -:1: invalid zero-length file name\n"
- . "du: -:2: invalid zero-length file name\n"}],
-
- # one file name, no NUL
- ['1', '--files0-from=-', '<',
- {IN=>{f=>"g"}}, {AUX=>{g=>''}},
- {OUT=>"0\tg\n"}, {OUT_SUBST=>'s/^\d+/0/'} ],
-
- # one file name, with NUL
- ['1a', '--files0-from=-', '<',
- {IN=>{f=>"g\0"}}, {AUX=>{g=>''}},
- {OUT=>"0\tg\n"}, {OUT_SUBST=>'s/^\d+/0/'} ],
-
- # two file names, no final NUL
- ['2', '--files0-from=-', '<',
- {IN=>{f=>"g\0g"}}, {AUX=>{g=>''}},
- {OUT=>"0\tg\n0\tg\n"}, {OUT_SUBST=>'s/^\d+/0/'} ],
-
- # two file names, with final NUL
- ['2a', '--files0-from=-', '<',
- {IN=>{f=>"g\0g\0"}}, {AUX=>{g=>''}},
- {OUT=>"0\tg\n0\tg\n"}, {OUT_SUBST=>'s/^\d+/0/'} ],
-
- # Ensure that du processes FILEs following a zero-length name.
- ['zero-len', '--files0-from=-', '<',
- {IN=>{f=>"\0g\0"}}, {AUX=>{g=>''}},
- {OUT=>"0\tg\n"}, {OUT_SUBST=>'s/^\d+/0/'},
- {ERR => "du: -:1: invalid zero-length file name\n"}, {EXIT=>1} ],
- );
-
-my $save_temps = $ENV{DEBUG};
-my $verbose = $ENV{VERBOSE};
-
-my $prog = $ENV{PROG} || die "$0: \$PROG not specified in environment\n";
-my $fail = run_tests ($program_name, $prog, \@Tests, $save_temps, $verbose);
-exit $fail;
-EOF
diff --git a/tests/du/files0-from-dir.sh b/tests/du/files0-from-dir.sh
new file mode 100755
index 0000000..7b6409b
--- /dev/null
+++ b/tests/du/files0-from-dir.sh
@@ -0,0 +1,39 @@
+#!/bin/sh
+# ensure that du and wc handle --files0-from=DIR
+
+# Copyright (C) 2011-2016 Free Software Foundation, Inc.
+
+# This program is free software: you can redistribute it and/or modify
+# it under the terms of the GNU General Public License as published by
+# the Free Software Foundation, either version 3 of the License, or
+# (at your option) any later version.
+
+# This program is distributed in the hope that it will be useful,
+# but WITHOUT ANY WARRANTY; without even the implied warranty of
+# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
+# GNU General Public License for more details.
+
+# You should have received a copy of the GNU General Public License
+# along with this program. If not, see <http://www.gnu.org/licenses/>.
+
+. "${srcdir=.}/tests/init.sh"; path_prepend_ ./src
+print_ver_ du wc
+
+mkdir dir
+
+# Skip this test if reading from a directory succeeds.
+# In that case, using --files0-from=dir would yield garbage,
+# interpreting the directory entry as a sequence of
+# NUL-separated file names.
+cat dir > /dev/null && skip_ "cat dir/ succeeds"
+
+for prog in du wc; do
+ $prog --files0-from=dir > /dev/null 2>err && fail=1
+ printf "$prog: dir:\n" > exp || fail=1
+ # The diagnostic string is usually "Is a directory" (ENOTDIR),
+ # but accept a different string or errno value.
+ sed "s/dir:.*/dir:/" err > k; mv k err
+ compare exp err || fail=1
+done
+
+Exit $fail
diff --git a/tests/du/files0-from.pl b/tests/du/files0-from.pl
new file mode 100755
index 0000000..b7ca3fd
--- /dev/null
+++ b/tests/du/files0-from.pl
@@ -0,0 +1,94 @@
+#!/usr/bin/perl
+# Exercise du's --files0-from option.
+# FIXME: keep this file in sync with tests/misc/wc-files0-from.
+
+# Copyright (C) 2004-2016 Free Software Foundation, Inc.
+
+# This program is free software: you can redistribute it and/or modify
+# it under the terms of the GNU General Public License as published by
+# the Free Software Foundation, either version 3 of the License, or
+# (at your option) any later version.
+
+# This program is distributed in the hope that it will be useful,
+# but WITHOUT ANY WARRANTY; without even the implied warranty of
+# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
+# GNU General Public License for more details.
+
+# You should have received a copy of the GNU General Public License
+# along with this program. If not, see <http://www.gnu.org/licenses/>.
+
+use strict;
+
+(my $program_name = $0) =~ s|.*/||;
+
+my $prog = 'du';
+
+# Turn off localization of executable's output.
+@ENV{qw(LANGUAGE LANG LC_ALL)} = ('C') x 3;
+
+my @Tests =
+ (
+ # invalid extra command line argument
+ ['f-extra-arg', '--files0-from=- no-such', {IN=>"a"}, {EXIT=>1},
+ {ERR => "$prog: extra operand 'no-such'\n"
+ . "file operands cannot be combined with --files0-from\n"
+ . "Try '$prog --help' for more information.\n"}
+ ],
+
+ # missing input file
+ ['missing', '--files0-from=missing', {EXIT=>1},
+ {ERR => "$prog: cannot open 'missing' for reading: "
+ . "No such file or directory\n"}],
+
+ # input file name of '-'
+ ['minus-in-stdin', '--files0-from=-', '<', {IN=>{f=>'-'}}, {EXIT=>1},
+ {ERR => "$prog: when reading file names from stdin, no file name of"
+ . " '-' allowed\n"}],
+
+ # empty input, regular file
+ ['empty', '--files0-from=@AUX@', {AUX=>''}],
+
+ # empty input, from non-regular file
+ ['empty-nonreg', '--files0-from=/dev/null'],
+
+ # one NUL
+ ['nul-1', '--files0-from=-', '<', {IN=>"\0"}, {EXIT=>1},
+ {ERR => "$prog: -:1: invalid zero-length file name\n"}],
+
+ # two NULs
+ ['nul-2', '--files0-from=-', '<', {IN=>"\0\0"}, {EXIT=>1},
+ {ERR => "$prog: -:1: invalid zero-length file name\n"
+ . "$prog: -:2: invalid zero-length file name\n"}],
+
+ # one file name, no NUL
+ ['1', '--files0-from=-', '<',
+ {IN=>{f=>"g"}}, {AUX=>{g=>''}},
+ {OUT=>"0\tg\n"}, {OUT_SUBST=>'s/^\d+/0/'} ],
+
+ # one file name, with NUL
+ ['1a', '--files0-from=-', '<',
+ {IN=>{f=>"g\0"}}, {AUX=>{g=>''}},
+ {OUT=>"0\tg\n"}, {OUT_SUBST=>'s/^\d+/0/'} ],
+
+ # two identical file names, no final NUL
+ ['2', '--files0-from=-', '<',
+ {IN=>{f=>"g\0g"}}, {AUX=>{g=>''}},
+ {OUT=>"0\tg\n"}, {OUT_SUBST=>'s/^\d+/0/'} ],
+
+ # two identical file names, with final NUL
+ ['2a', '--files0-from=-', '<',
+ {IN=>{f=>"g\0g\0"}}, {AUX=>{g=>''}},
+ {OUT=>"0\tg\n"}, {OUT_SUBST=>'s/^\d+/0/'} ],
+
+ # Ensure that $prog processes FILEs following a zero-length name.
+ ['zero-len', '--files0-from=-', '<',
+ {IN=>{f=>"\0g\0"}}, {AUX=>{g=>''}},
+ {OUT=>"0\tg\n"}, {OUT_SUBST=>'s/^\d+/0/'},
+ {ERR => "$prog: -:1: invalid zero-length file name\n"}, {EXIT=>1} ],
+ );
+
+my $save_temps = $ENV{DEBUG};
+my $verbose = $ENV{VERBOSE};
+
+my $fail = run_tests ($program_name, $prog, \@Tests, $save_temps, $verbose);
+exit $fail;
diff --git a/tests/du/hard-link b/tests/du/hard-link
deleted file mode 100755
index 1e7a5f9..0000000
--- a/tests/du/hard-link
+++ /dev/null
@@ -1,71 +0,0 @@
-#!/bin/sh
-# Ensure that hard-linked files are counted (and listed) only once.
-# Likewise for excluded directories.
-# Ensure that hard links _are_ listed twice when using --count-links.
-
-# Copyright (C) 2003, 2006 Free Software Foundation, Inc.
-
-# This program is free software; you can redistribute it and/or modify
-# it under the terms of the GNU General Public License as published by
-# the Free Software Foundation; either version 2 of the License, or
-# (at your option) any later version.
-
-# This program is distributed in the hope that it will be useful,
-# but WITHOUT ANY WARRANTY; without even the implied warranty of
-# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
-# GNU General Public License for more details.
-
-# You should have received a copy of the GNU General Public License
-# along with this program; if not, write to the Free Software
-# Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA
-# 02110-1301, USA.
-
-if test "$VERBOSE" = yes; then
- set -x
- du --version
-fi
-
-. $srcdir/../envvar-check
-. $srcdir/../lang-default
-
-pwd=`pwd`
-t0=`echo "$0"|sed 's,.*/,,'`.tmp; tmp=$t0/$$
-trap 'status=$?; cd "$pwd" && chmod -R u+rwx $t0 && rm -rf $t0 && exit $status' 0
-trap '(exit $?); exit $?' 1 2 13 15
-
-framework_failure=0
-mkdir -p $tmp || framework_failure=1
-cd $tmp || framework_failure=1
-
-mkdir -p dir/sub
-( cd dir && { echo non-empty > f1; ln f1 f2; echo non-empty > sub/F; } )
-
-if test $framework_failure = 1; then
- echo "$0: failure in testing framework" 1>&2
- (exit 1); exit 1
-fi
-
-fail=0
-
-# Note that for this first test, we transform f1 or f2
-# (whichever name we find first) to f_. That is necessary because,
-# depending on the type of file system, du could encounter either of those
-# two hard-linked files first, thus listing that one and not the other.
-du -a --exclude=sub dir \
- | sed 's/^[0-9][0-9]* //' | sed 's/f[12]/f_/' > out || fail=1
-echo === >> out
-du -a --exclude=sub --count-links dir \
- | sed 's/^[0-9][0-9]* //' | sort -r >> out || fail=1
-cat <<\EOF > exp
-dir/f_
-dir
-===
-dir/f2
-dir/f1
-dir
-EOF
-
-cmp out exp || fail=1
-test $fail = 1 && diff -u out exp 2> /dev/null
-
-(exit $fail); exit $fail
diff --git a/tests/du/hard-link.sh b/tests/du/hard-link.sh
new file mode 100755
index 0000000..fcdc5a5
--- /dev/null
+++ b/tests/du/hard-link.sh
@@ -0,0 +1,64 @@
+#!/bin/sh
+# Ensure that hard-linked files are counted (and listed) only once.
+# Likewise for excluded directories.
+# Ensure that hard links _are_ listed twice when using --count-links.
+
+# Copyright (C) 2003-2016 Free Software Foundation, Inc.
+
+# This program is free software: you can redistribute it and/or modify
+# it under the terms of the GNU General Public License as published by
+# the Free Software Foundation, either version 3 of the License, or
+# (at your option) any later version.
+
+# This program is distributed in the hope that it will be useful,
+# but WITHOUT ANY WARRANTY; without even the implied warranty of
+# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
+# GNU General Public License for more details.
+
+# You should have received a copy of the GNU General Public License
+# along with this program. If not, see <http://www.gnu.org/licenses/>.
+
+. "${srcdir=.}/tests/init.sh"; path_prepend_ ./src
+print_ver_ du
+
+mkdir -p dir/sub
+( cd dir &&
+ { echo non-empty > f1
+ ln f1 f2
+ ln -s f1 f3
+ echo non-empty > sub/F; } )
+
+du -a -L --exclude=sub --count-links dir \
+ | sed 's/^[0-9][0-9]* //' | sort -r > out || fail=1
+
+# For these tests, transform f1 or f2 or f3 (whichever name is find
+# first) to f_. That is necessary because, depending on the type of
+# file system, du could encounter any of those linked files first,
+# thus listing that one and not the others.
+for args in '-L' 'dir' '-L dir'
+do
+ echo === >> out
+ du -a --exclude=sub $args dir \
+ | sed 's/^[0-9][0-9]* //' | sed 's/f[123]/f_/' >> out || fail=1
+done
+
+cat <<\EOF > exp
+dir/f3
+dir/f2
+dir/f1
+dir
+===
+dir/f_
+dir
+===
+dir/f_
+dir/f_
+dir
+===
+dir/f_
+dir
+EOF
+
+compare exp out || fail=1
+
+Exit $fail
diff --git a/tests/du/inacc-dest b/tests/du/inacc-dest
deleted file mode 100755
index 0ff6b96..0000000
--- a/tests/du/inacc-dest
+++ /dev/null
@@ -1,83 +0,0 @@
-#!/bin/sh
-# Prior to coreutils-6.5, an inaccessible destination dir (chmod a-x)
-# would cause du to exit prematurely on systems with native openat support.
-
-# Copyright (C) 2006 Free Software Foundation, Inc.
-
-# This program is free software; you can redistribute it and/or modify
-# it under the terms of the GNU General Public License as published by
-# the Free Software Foundation; either version 2 of the License, or
-# (at your option) any later version.
-
-# This program is distributed in the hope that it will be useful,
-# but WITHOUT ANY WARRANTY; without even the implied warranty of
-# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
-# GNU General Public License for more details.
-
-# You should have received a copy of the GNU General Public License
-# along with this program; if not, write to the Free Software
-# Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA
-# 02110-1301, USA.
-
-if test "$VERBOSE" = yes; then
- set -x
- du --version
-fi
-
-. $srcdir/../envvar-check
-. $srcdir/../lang-default
-PRIV_CHECK_ARG=require-non-root . $srcdir/../priv-check
-
-pwd=`pwd`
-t0=`echo "$0"|sed 's,.*/,,'`.tmp; tmp=$t0/$$
-trap 'status=$?; cd "$pwd" && chmod -R u+rwx $t0 && rm -rf $t0 && exit $status' 0
-trap '(exit $?); exit $?' 1 2 13 15
-
-framework_failure=0
-mkdir -p $tmp || framework_failure=1
-cd $tmp || framework_failure=1
-
-mkdir f && cd f && mkdir a b c d e && touch c/j && chmod a-x c \
- || framework_failure=1
-
-if test $framework_failure = 1; then
- echo "$0: failure in testing framework" 1>&2
- (exit 1); exit 1
-fi
-
-fail=0
-
-du > ../t 2>&1 && fail=1
-
-# Accept either of the following outputs.
-# You get the first from a system with openat _emulation_ (via /proc),
-# the second from a system with native openat support.
-# FIXME: there may well be a third output, for systems with neither
-# /proc support, nor native openat support.
-
-sed 's/^[0-9][0-9]* //' ../t | sort -u > out
-cat <<\EOF > exp || fail=1
-.
-./a
-./b
-./d
-./e
-du: `./c': Permission denied
-EOF
-
-cat <<\EOF > exp2 || fail=1
-.
-./a
-./b
-./c
-./d
-./e
-du: cannot access `./c/j': Permission denied
-EOF
-
-cmp out exp > /dev/null 2>&1 || {
- cmp out exp2 || fail=1
- }
-test $fail = 1 && diff out exp 2> /dev/null
-
-(exit $fail); exit $fail
diff --git a/tests/du/inacc-dest.sh b/tests/du/inacc-dest.sh
new file mode 100755
index 0000000..29c9f72
--- /dev/null
+++ b/tests/du/inacc-dest.sh
@@ -0,0 +1,56 @@
+#!/bin/sh
+# Prior to coreutils-6.5, an inaccessible destination dir (chmod a-x)
+# would cause du to exit prematurely on systems with native openat support.
+
+# Copyright (C) 2006-2016 Free Software Foundation, Inc.
+
+# This program is free software: you can redistribute it and/or modify
+# it under the terms of the GNU General Public License as published by
+# the Free Software Foundation, either version 3 of the License, or
+# (at your option) any later version.
+
+# This program is distributed in the hope that it will be useful,
+# but WITHOUT ANY WARRANTY; without even the implied warranty of
+# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
+# GNU General Public License for more details.
+
+# You should have received a copy of the GNU General Public License
+# along with this program. If not, see <http://www.gnu.org/licenses/>.
+
+. "${srcdir=.}/tests/init.sh"; path_prepend_ ./src
+print_ver_ du
+skip_if_root_
+
+mkdir f && cd f && mkdir a b c d e && touch c/j && chmod a-x c \
+ || framework_failure_
+
+du > ../t 2>&1 && fail=1
+
+# Accept either of the following outputs.
+# You get the first from a system with openat _emulation_ (via /proc),
+# the second from a system with native openat support.
+# FIXME: there may well be a third output, for systems with neither
+# /proc support, nor native openat support.
+
+sed 's/^[0-9][0-9]* //' ../t | sort -u > out
+cat <<\EOF > exp || fail=1
+.
+./a
+./b
+./c
+./d
+./e
+du: cannot read directory './c': Permission denied
+EOF
+
+# Map a diagnostic like this
+# du: cannot access './c/j': Permission denied
+# to this:
+# du: cannot access './c': Permission denied
+# And accept "cannot read directory" in place of "cannot access"
+sed "s,/c/j': ,/c': ," out > t && mv t out
+sed 's,cannot access,cannot read directory,' out > t && mv t out
+
+compare exp out || fail=1
+
+Exit $fail
diff --git a/tests/du/inacc-dir.sh b/tests/du/inacc-dir.sh
new file mode 100755
index 0000000..ee71fe4
--- /dev/null
+++ b/tests/du/inacc-dir.sh
@@ -0,0 +1,42 @@
+#!/bin/sh
+# Ensure that du counts the size of an inaccessible directory.
+# Copyright (C) 2007-2016 Free Software Foundation, Inc.
+
+# This program is free software: you can redistribute it and/or modify
+# it under the terms of the GNU General Public License as published by
+# the Free Software Foundation, either version 3 of the License, or
+# (at your option) any later version.
+
+# This program is distributed in the hope that it will be useful,
+# but WITHOUT ANY WARRANTY; without even the implied warranty of
+# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
+# GNU General Public License for more details.
+
+# You should have received a copy of the GNU General Public License
+# along with this program. If not, see <http://www.gnu.org/licenses/>.
+
+. "${srcdir=.}/tests/init.sh"; path_prepend_ ./src
+print_ver_ du
+skip_if_root_
+
+mkdir -p a/sub || framework_failure_
+
+
+du -s a > exp || fail=1
+chmod 0 a/sub || fail=1
+# Expect failure, ignore diagnostics.
+du -s a > out 2> /dev/null && fail=1
+
+compare exp out || fail=1
+
+# Same as above, but don't use -s, so we print
+# an entry for the unreadable "sub", too.
+chmod 700 a/sub || fail=1
+du -k a > exp || fail=1
+chmod 0 a/sub || fail=1
+# Expect failure, ignore diagnostics.
+du -k a > out 2> /dev/null && fail=1
+
+compare exp out || fail=1
+
+Exit $fail
diff --git a/tests/du/inaccessible-cwd b/tests/du/inaccessible-cwd
deleted file mode 100755
index 0f9f9b7..0000000
--- a/tests/du/inaccessible-cwd
+++ /dev/null
@@ -1,53 +0,0 @@
-#!/bin/sh
-# Ensure that even when run from an inaccessible directory, du can still
-# operate on accessible directories elsewhere.
-
-# Copyright (C) 2003, 2006 Free Software Foundation, Inc.
-
-# This program is free software; you can redistribute it and/or modify
-# it under the terms of the GNU General Public License as published by
-# the Free Software Foundation; either version 2 of the License, or
-# (at your option) any later version.
-
-# This program is distributed in the hope that it will be useful,
-# but WITHOUT ANY WARRANTY; without even the implied warranty of
-# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
-# GNU General Public License for more details.
-
-# You should have received a copy of the GNU General Public License
-# along with this program; if not, write to the Free Software
-# Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA
-# 02110-1301, USA.
-
-# Before the switch to an fts-based implementation in coreutils 5.0.92,
-# this test would fail.
-
-if test "$VERBOSE" = yes; then
- set -x
- du --version
-fi
-
-PRIV_CHECK_ARG=require-non-root . $srcdir/../priv-check
-
-pwd=`pwd`
-t0=`echo "$0"|sed 's,.*/,,'`.tmp; tmp=$t0/$$
-trap 'status=$?; cd "$pwd" && chmod -R u+rwx $t0 && rm -rf $t0 && exit $status' 0
-trap '(exit $?); exit $?' 1 2 13 15
-
-framework_failure=0
-mkdir -p $tmp || framework_failure=1
-cd $tmp || framework_failure=1
-mkdir -p no-x a/b || framework_failure=1
-cd no-x || framework_failure=1
-chmod 0 . || framework_failure=1
-
-if test $framework_failure = 1; then
- echo "$0: failure in testing framework" 1>&2
- (exit 1); exit 1
-fi
-
-fail=0
-
-du "$pwd/$tmp/a" > /dev/null || fail=1
-
-(exit $fail); exit $fail
diff --git a/tests/du/inaccessible-cwd.sh b/tests/du/inaccessible-cwd.sh
new file mode 100755
index 0000000..c6ab6d8
--- /dev/null
+++ b/tests/du/inaccessible-cwd.sh
@@ -0,0 +1,40 @@
+#!/bin/sh
+# Ensure that even when run from an inaccessible directory, du can still
+# operate on accessible directories elsewhere.
+
+# Copyright (C) 2003-2016 Free Software Foundation, Inc.
+
+# This program is free software: you can redistribute it and/or modify
+# it under the terms of the GNU General Public License as published by
+# the Free Software Foundation, either version 3 of the License, or
+# (at your option) any later version.
+
+# This program is distributed in the hope that it will be useful,
+# but WITHOUT ANY WARRANTY; without even the implied warranty of
+# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
+# GNU General Public License for more details.
+
+# You should have received a copy of the GNU General Public License
+# along with this program. If not, see <http://www.gnu.org/licenses/>.
+
+# Before the switch to an fts-based implementation in coreutils 5.0.92,
+# this test would fail.
+
+. "${srcdir=.}/tests/init.sh"; path_prepend_ ./src
+print_ver_ du
+
+# Skip this test if your system has neither the openat-style functions
+# nor /proc/self/fd support with which to emulate them.
+require_openat_support_
+
+skip_if_root_
+
+cwd=$(pwd)
+mkdir -p no-x a/b || framework_failure_
+cd no-x || framework_failure_
+chmod 0 . || framework_failure_
+
+
+du "$cwd/a" > /dev/null || fail=1
+
+Exit $fail
diff --git a/tests/du/inodes.sh b/tests/du/inodes.sh
new file mode 100755
index 0000000..ba26962
--- /dev/null
+++ b/tests/du/inodes.sh
@@ -0,0 +1,140 @@
+#!/bin/sh
+# exercise du's --inodes option
+
+# Copyright (C) 2010-2016 Free Software Foundation, Inc.
+
+# This program is free software: you can redistribute it and/or modify
+# it under the terms of the GNU General Public License as published by
+# the Free Software Foundation, either version 3 of the License, or
+# (at your option) any later version.
+
+# This program is distributed in the hope that it will be useful,
+# but WITHOUT ANY WARRANTY; without even the implied warranty of
+# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
+# GNU General Public License for more details.
+
+# You should have received a copy of the GNU General Public License
+# along with this program. If not, see <http://www.gnu.org/licenses/>.
+
+. "${srcdir=.}/tests/init.sh"; path_prepend_ ./src
+print_ver_ du
+
+# An empty directory uses only 1 inode.
+mkdir d || framework_failure_
+printf '1\td\n' > exp || framework_failure_
+
+du --inodes d > out 2>err || fail=1
+compare exp out || fail=1
+compare /dev/null err || fail=1
+
+# Add a regular file: 2 inodes used.
+touch d/f || framework_failure_
+printf '2\td\n' > exp || framework_failure_
+
+du --inodes d > out 2>err || fail=1
+compare exp out || fail=1
+compare /dev/null err || fail=1
+
+# Add a hardlink to the file: still only 2 inodes used.
+ln -v d/f d/h || framework_failure_
+du --inodes d > out 2>err || fail=1
+compare exp out || fail=1
+compare /dev/null err || fail=1
+
+# Now count also hardlinks (-l,--count-links): 3 inodes.
+printf '3\td\n' > exp || framework_failure_
+du --inodes -l d > out 2>err || fail=1
+compare exp out || fail=1
+compare /dev/null err || fail=1
+
+# Create a directory and summarize: 3 inodes.
+mkdir d/d || framework_failure_
+du --inodes -s d > out 2>err || fail=1
+compare exp out || fail=1
+compare /dev/null err || fail=1
+
+# Count inodes separated: 1-2.
+printf '1\td/d\n2\td\n' > exp || framework_failure_
+du --inodes -S d > out 2>err || fail=1
+compare exp out || fail=1
+compare /dev/null err || fail=1
+
+# Count inodes cumulative (default): 1-3.
+printf '1\td/d\n3\td\n' > exp || framework_failure_
+du --inodes d > out 2>err || fail=1
+compare exp out || fail=1
+compare /dev/null err || fail=1
+
+# Count all items: 1-1-3.
+# Sort output because the directory entry order is not defined.
+# Also replace the hardlink with the original file name because
+# the system may either return 'd/f' or 'd/h' first, and du(1)
+# will ignore the other one.
+printf '1\td/d\n1\td/f\n3\td\n' | sort > exp || framework_failure_
+du --inodes -a d > out.tmp 2>err || fail=1
+sed 's/h$/f/' out.tmp | sort >out || framework_failure_
+compare exp out || fail=1
+compare /dev/null err || fail=1
+
+# Count all items and hardlinks again: 1-1-1-4
+# Sort output because the directory entry order is not defined.
+printf '1\td/d\n1\td/h\n1\td/f\n4\td\n' | sort > exp || framework_failure_
+du --inodes -al d > out.tmp 2>err || fail=1
+sort <out.tmp >out || framework_failure_
+compare exp out || fail=1
+compare /dev/null err || fail=1
+
+# Run with total (-c) line: 1-3-3
+printf '1\td/d\n3\td\n3\ttotal\n' > exp || framework_failure_
+du --inodes -c d > out 2>err || fail=1
+compare exp out || fail=1
+compare /dev/null err || fail=1
+
+# Create another file in the subdirectory: 2-4
+touch d/d/f || framework_failure_
+printf '2\td/d\n4\td\n' > exp || framework_failure_
+du --inodes d > out 2>err || fail=1
+compare exp out || fail=1
+compare /dev/null err || fail=1
+
+# Ensure human output (-h, --si) works.
+rm -rf d || framework_failure_
+mkdir d || framework_failure_
+seq --format="d/file%g" 1023 | xargs touch || framework_failure_
+printf '1.0K\td\n' > exp || framework_failure_
+du --inodes -h d > out 2>err || fail=1
+compare exp out || fail=1
+compare /dev/null err || fail=1
+
+printf '1.1k\td\n' > exp || framework_failure_
+du --inodes --si d > out 2>err || fail=1
+compare exp out || fail=1
+compare /dev/null err || fail=1
+
+# Verify --inodes ignores -B.
+printf '1024\td\n' > exp || framework_failure_
+du --inodes -B10 d > out 2>err || fail=1
+compare exp out || fail=1
+compare /dev/null err || fail=1
+
+# Verify --inodes works with --threshold.
+printf '1024\td\n' > exp || framework_failure_
+du --inodes --threshold=1000 d > out 2>err || fail=1
+compare exp out || fail=1
+compare /dev/null err || fail=1
+
+du --inodes --threshold=-1000 d > out 2>err || fail=1
+compare /dev/null out || fail=1
+compare /dev/null err || fail=1
+
+# Verify --inodes raises a warning for --apparent-size and -b.
+du --inodes -b d > out 2>err || fail=1
+grep ' ineffective ' err >/dev/null || { fail=1; cat out err; }
+
+du --inodes --apparent-size d > out 2>err || fail=1
+grep ' ineffective ' err >/dev/null || { fail=1; cat out err; }
+
+# Ensure that --inodes is mentioned in the usage.
+du --help > out || fail=1
+grep ' --inodes ' out >/dev/null || { fail=1; cat out; }
+Exit $fail
diff --git a/tests/du/long-from-unreadable b/tests/du/long-from-unreadable
deleted file mode 100755
index f43a6db..0000000
--- a/tests/du/long-from-unreadable
+++ /dev/null
@@ -1,89 +0,0 @@
-#!/bin/sh
-# Show fts fails on old-fashioned systems.
-
-# Copyright (C) 2006 Free Software Foundation, Inc.
-
-# This program is free software; you can redistribute it and/or modify
-# it under the terms of the GNU General Public License as published by
-# the Free Software Foundation; either version 2 of the License, or
-# (at your option) any later version.
-
-# This program is distributed in the hope that it will be useful,
-# but WITHOUT ANY WARRANTY; without even the implied warranty of
-# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
-# GNU General Public License for more details.
-
-# You should have received a copy of the GNU General Public License
-# along with this program; if not, write to the Free Software
-# Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA
-# 02110-1301, USA.
-
-# Show that fts (hence du, chmod, chgrp, chown) fails when all of the
-# following are true:
-# - `.' is not readable
-# - operating on a hierarchy containing a relative name longer than PATH_MAX
-# - run on a system where gnulib's openat emulation must resort to using
-# save_cwd and restore_cwd (which fail if `.' is not readable).
-# Thus, the following du invocation should succeed on newer Linux and
-# Solaris systems, yet it must fail on systems lacking both openat and
-# /proc support. However, before coreutils-6.0 this test would fail even
-# on Linux+PROC_FS systems because its fts implementation would revert
-# unnecessarily to using FTS_NOCHDIR mode in this corner case.
-
-if test "$VERBOSE" = yes; then
- set -x
- du --version
-fi
-
-. $srcdir/../envvar-check
-
-proc_file=/proc/self/fd
-if test ! -d $proc_file; then
- cat <<EOF >&2
-$0: Skipping this test.
-It would fail, since your system lacks /proc support.
-EOF
- (exit 77); exit 77
-fi
-
-pwd=`pwd`
-t0=`echo "$0"|sed 's,.*/,,'`.tmp; tmp=$t0/$$
-trap 'status=$?; cd "$pwd" && chmod -R u+rwx $t0 && rm -rf $t0 && exit $status' 0
-trap '(exit $?); exit $?' 1 2 13 15
-
-framework_failure=0
-mkdir -p $tmp || framework_failure=1
-cd $tmp || framework_failure=1
-
-dir=`printf '%200s\n' ' '|tr ' ' x`
-
-# Construct a hierarchy containing a relative file with a name
-# longer than PATH_MAX.
-# for i in `seq 52`; do
-# mkdir $dir || framework_failure=1
-# cd $dir || framework_failure=1
-# done
-# cd $tmp || framework_failure=1
-
-# Sheesh. Bash 3.1.5 can't create this hierarchy. I get
-# cd: error retrieving current directory: getcwd: cannot access parent directories:
-# Use perl instead:
-: ${PERL=perl}
-$PERL \
- -e 'my $d = '$dir'; foreach my $i (1..52)' \
- -e ' { mkdir ($d, 0700) && chdir $d or die "$!" }' \
- || framework_failure=1
-
-mkdir inaccessible || framework_failure=1
-cd inaccessible || framework_failure=1
-chmod 0 . || framework_failure=1
-
-if test $framework_failure = 1; then
- echo "$0: failure in testing framework" 1>&2
- (exit 1); exit 1
-fi
-
-fail=0
-du -s "$pwd/$tmp/$dir" > /dev/null || fail=1
-
-(exit $fail); exit $fail
diff --git a/tests/du/long-from-unreadable.sh b/tests/du/long-from-unreadable.sh
new file mode 100755
index 0000000..2d9bfc4
--- /dev/null
+++ b/tests/du/long-from-unreadable.sh
@@ -0,0 +1,73 @@
+#!/bin/sh
+# Show fts fails on old-fashioned systems.
+
+# Copyright (C) 2006-2016 Free Software Foundation, Inc.
+
+# This program is free software: you can redistribute it and/or modify
+# it under the terms of the GNU General Public License as published by
+# the Free Software Foundation, either version 3 of the License, or
+# (at your option) any later version.
+
+# This program is distributed in the hope that it will be useful,
+# but WITHOUT ANY WARRANTY; without even the implied warranty of
+# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
+# GNU General Public License for more details.
+
+# You should have received a copy of the GNU General Public License
+# along with this program. If not, see <http://www.gnu.org/licenses/>.
+
+# Show that fts (hence du, chmod, chgrp, chown) fails when all of the
+# following are true:
+# - '.' is not readable
+# - operating on a hierarchy containing a relative name longer than PATH_MAX
+# - run on a system where gnulib's openat emulation must resort to using
+# save_cwd and restore_cwd (which fail if '.' is not readable).
+# Thus, the following du invocation should succeed on newer Linux and
+# Solaris systems, yet it must fail on systems lacking both openat and
+# /proc support. However, before coreutils-6.0 this test would fail even
+# on Linux+PROC_FS systems because its fts implementation would revert
+# unnecessarily to using FTS_NOCHDIR mode in this corner case.
+
+. "${srcdir=.}/tests/init.sh"; path_prepend_ ./src
+print_ver_ du
+
+# ecryptfs for example uses some of the file name space
+# for encrypting filenames, so we must check dynamically.
+name_max=$(stat -f -c %l .)
+test "$name_max" -ge '200' || skip_ "NAME_MAX=$name_max is not sufficient"
+
+proc_file=/proc/self/fd
+if test ! -d $proc_file; then
+ skip_ 'This test would fail, since your system lacks /proc support.'
+fi
+
+dir=$(printf '%200s\n' ' '|tr ' ' x)
+
+# Construct a hierarchy containing a relative file with a name
+# longer than PATH_MAX.
+# for i in $(seq 52); do
+# mkdir $dir || framework_failure_
+# cd $dir || framework_failure_
+# done
+# cd $tmp || framework_failure_
+
+# Sheesh. Bash 3.1.5 can't create this hierarchy. I get
+# cd: error retrieving current directory: getcwd:
+# cannot access parent directories:
+# (all on one line).
+
+cwd=$(pwd)
+# Use perl instead:
+: ${PERL=perl}
+$PERL \
+ -e 'my $d = '$dir'; foreach my $i (1..52)' \
+ -e ' { mkdir ($d, 0700) && chdir $d or die "$!" }' \
+ || framework_failure_
+
+mkdir inaccessible || framework_failure_
+cd inaccessible || framework_failure_
+chmod 0 . || framework_failure_
+
+du -s "$cwd/$dir" > /dev/null || fail=1
+
+Exit $fail
diff --git a/tests/du/long-sloop b/tests/du/long-sloop
deleted file mode 100755
index f5f9423..0000000
--- a/tests/du/long-sloop
+++ /dev/null
@@ -1,99 +0,0 @@
-#!/bin/sh
-# Use du to exercise a corner of fts's FTS_LOGICAL code.
-# Show that du fails with ELOOP (Too many levels of symbolic links)
-# when it encounters that condition.
-
-# Copyright (C) 2006 Free Software Foundation, Inc.
-
-# This program is free software; you can redistribute it and/or modify
-# it under the terms of the GNU General Public License as published by
-# the Free Software Foundation; either version 2 of the License, or
-# (at your option) any later version.
-
-# This program is distributed in the hope that it will be useful,
-# but WITHOUT ANY WARRANTY; without even the implied warranty of
-# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
-# GNU General Public License for more details.
-
-# You should have received a copy of the GNU General Public License
-# along with this program; if not, write to the Free Software
-# Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA
-# 02110-1301, USA.
-
-if test "$VERBOSE" = yes; then
- set -x
- du --version
-fi
-
-. $srcdir/../lang-default
-
-pwd=`pwd`
-t0=`echo "$0"|sed 's,.*/,,'`.tmp; tmp=$t0/$$
-trap 'status=$?; cd "$pwd" && chmod -R u+rwx $t0 && rm -rf $t0 && exit $status' 0
-trap '(exit $?); exit $?' 1 2 13 15
-
-framework_failure=0
-mkdir -p $tmp || framework_failure=1
-cd $tmp || framework_failure=1
-
-# Create lots of directories, each containing a single symlink
-# pointing at the next directory in the list.
-
-# This number should be larger than the number of symlinks allowed in
-# file name resolution, but not too large as a number of entries
-# in a single directory.
-n=400
-
-dir_list=`seq $n`
-mkdir $dir_list || framework_failure=1
-file=1
-i_minus_1=0
-for i in $dir_list `expr $n + 1`; do
- case $i_minus_1 in
- 0) ;;
- *)
- ln -s ../$i $i_minus_1/s || framework_failure=1
- file=$file/s;;
- esac
- i_minus_1=$i
-done
-echo foo > $i
-
-if test $framework_failure = 1; then
- echo "$0: failure in testing framework" 1>&2
- (exit 1); exit 1
-fi
-
-# If a system can handle this many symlinks in a file name,
-# just skip this test.
-
-# The following also serves to record in `err' the string
-# corresponding to strerror (ELOOP). This is necessary because while
-# Linux/libc gives `Too many levels of symbolic links', Solaris
-# renders it as `Number of symbolic links encountered during path
-# name traversal exceeds MAXSYMLINKS'.
-
-cat $file > /dev/null 2> err && \
- {
- cat <<EOF >&2
-$0: Your system appears to be able to handle more than $n symlinks
-in file name resolution, so skipping this test.
-EOF
- (exit 77); exit 77
- }
-too_many=`sed 's/.*: //' err`
-
-fail=0
-
-# With coreutils-5.93 there was no failure.
-# With coreutils-5.94 we get the desired diagnostic:
-# du: cannot access `1/s/s/s/.../s': Too many levels of symbolic links
-du -L 1 > /dev/null 2> out1 && fail=1
-sed "s, .1/s/s/s/[/s]*',," out1 > out || fail=1
-
-echo "du: cannot access: $too_many" > exp || fail=1
-
-cmp out exp || fail=1
-test $fail = 1 && diff out exp 2> /dev/null
-
-(exit $fail); exit $fail
diff --git a/tests/du/long-sloop.sh b/tests/du/long-sloop.sh
new file mode 100755
index 0000000..ae2b5c9
--- /dev/null
+++ b/tests/du/long-sloop.sh
@@ -0,0 +1,72 @@
+#!/bin/sh
+# Use du to exercise a corner of fts's FTS_LOGICAL code.
+# Show that du fails with ELOOP (Too many levels of symbolic links)
+# when it encounters that condition.
+
+# Copyright (C) 2006-2016 Free Software Foundation, Inc.
+
+# This program is free software: you can redistribute it and/or modify
+# it under the terms of the GNU General Public License as published by
+# the Free Software Foundation, either version 3 of the License, or
+# (at your option) any later version.
+
+# This program is distributed in the hope that it will be useful,
+# but WITHOUT ANY WARRANTY; without even the implied warranty of
+# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
+# GNU General Public License for more details.
+
+# You should have received a copy of the GNU General Public License
+# along with this program. If not, see <http://www.gnu.org/licenses/>.
+
+. "${srcdir=.}/tests/init.sh"; path_prepend_ ./src
+print_ver_ du
+
+# Create lots of directories, each containing a single symlink
+# pointing at the next directory in the list.
+
+# This number should be larger than the number of symlinks allowed in
+# file name resolution, but not too large as a number of entries
+# in a single directory.
+n=400
+
+dir_list=$(seq $n)
+mkdir $dir_list || framework_failure_
+file=1
+i_minus_1=0
+for i in $dir_list $(expr $n + 1); do
+ case $i_minus_1 in
+ 0) ;;
+ *)
+ ln -s ../$i $i_minus_1/s || framework_failure_
+ file=$file/s;;
+ esac
+ i_minus_1=$i
+done
+echo foo > $i
+
+# If a system can handle this many symlinks in a file name,
+# just skip this test.
+
+# The following also serves to record in 'err' the string
+# corresponding to strerror (ELOOP). This is necessary because while
+# Linux/libc gives 'Too many levels of symbolic links', Solaris
+# renders it as "Number of symbolic links encountered during path
+# name traversal exceeds MAXSYMLINKS".
+
+cat $file > /dev/null 2> err &&
+ skip_ 'Your system appears to be able to handle more than $n symlinks
+in file name resolution'
+too_many=$(sed 's/.*: //' err)
+
+
+# With coreutils-5.93 there was no failure.
+# With coreutils-5.94 we get the desired diagnostic:
+# du: cannot access '1/s/s/s/.../s': Too many levels of symbolic links
+du -L 1 > /dev/null 2> out1 && fail=1
+sed "s, .1/s/s/s/[/s]*',," out1 > out || fail=1
+
+echo "du: cannot access: $too_many" > exp || fail=1
+
+compare exp out || fail=1
+
+Exit $fail
diff --git a/tests/du/max-depth.sh b/tests/du/max-depth.sh
new file mode 100755
index 0000000..b2e45a1
--- /dev/null
+++ b/tests/du/max-depth.sh
@@ -0,0 +1,39 @@
+#!/bin/sh
+# exercise du's --max-depth=N option
+
+# Copyright (C) 2010-2016 Free Software Foundation, Inc.
+
+# This program is free software: you can redistribute it and/or modify
+# it under the terms of the GNU General Public License as published by
+# the Free Software Foundation, either version 3 of the License, or
+# (at your option) any later version.
+
+# This program is distributed in the hope that it will be useful,
+# but WITHOUT ANY WARRANTY; without even the implied warranty of
+# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
+# GNU General Public License for more details.
+
+# You should have received a copy of the GNU General Public License
+# along with this program. If not, see <http://www.gnu.org/licenses/>.
+
+. "${srcdir=.}/tests/init.sh"; path_prepend_ ./src
+print_ver_ du
+
+mkdir -p a/b/c/d/e || framework_failure_
+printf 'a/b/c\na/b\na\n' > exp || framework_failure_
+
+du --max-depth=2 a > out 2>err || fail=1
+
+# Remove the sizes. They vary between file systems.
+cut -f2- out > k && mv k out
+compare exp out || fail=1
+compare /dev/null err || fail=1
+
+# Repeat, but use -d 1.
+printf 'a/b\na\n' > exp || framework_failure_
+du -d 1 a > out 2>err || fail=1
+cut -f2- out > k && mv k out
+compare exp out || fail=1
+compare /dev/null err || fail=1
+
+Exit $fail
diff --git a/tests/du/move-dir-while-traversing.sh b/tests/du/move-dir-while-traversing.sh
new file mode 100755
index 0000000..e80e94c
--- /dev/null
+++ b/tests/du/move-dir-while-traversing.sh
@@ -0,0 +1,100 @@
+#!/bin/sh
+# Trigger a failed assertion in coreutils-8.9 and earlier.
+
+# Copyright (C) 2011-2016 Free Software Foundation, Inc.
+
+# This program is free software: you can redistribute it and/or modify
+# it under the terms of the GNU General Public License as published by
+# the Free Software Foundation, either version 3 of the License, or
+# (at your option) any later version.
+
+# This program is distributed in the hope that it will be useful,
+# but WITHOUT ANY WARRANTY; without even the implied warranty of
+# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
+# GNU General Public License for more details.
+
+# You should have received a copy of the GNU General Public License
+# along with this program. If not, see <http://www.gnu.org/licenses/>.
+
+. "${srcdir=.}/tests/init.sh"; path_prepend_ ./src
+print_ver_ du
+require_trap_signame_
+
+# We use a python-inotify script, so...
+python -m pyinotify -h > /dev/null \
+ || skip_ 'python inotify package not installed'
+
+# Move a directory "up" while du is processing its sub-directories.
+# While du is processing a hierarchy .../B/C/D/... this script
+# detects when du opens D/, and then moves C/ "up" one level
+# so that it is a sibling of B/.
+# Given the inherent race condition, we have to add enough "weight"
+# under D/ so that in most cases, the monitor performs the single
+# rename syscall before du finishes processing the subtree under D/.
+
+cat <<'EOF' > inotify-watch-for-dir-access.py
+#!/usr/bin/env python
+import pyinotify as pn
+import os,sys
+
+dir = sys.argv[1]
+dest_parent = os.path.dirname(os.path.dirname(dir))
+dest = os.path.join(dest_parent, os.path.basename(dir))
+
+class ProcessDir(pn.ProcessEvent):
+
+ def process_IN_OPEN(self, event):
+ os.rename(dir, dest)
+ sys.exit(0)
+
+ def process_default(self, event):
+ pass
+
+wm = pn.WatchManager()
+notifier = pn.Notifier(wm)
+wm.watch_transient_file(dir, pn.IN_OPEN, ProcessDir)
+sys.stdout.write('started\n')
+sys.stdout.flush()
+notifier.loop()
+EOF
+chmod a+x inotify-watch-for-dir-access.py
+
+t=T/U
+mkdir d2 || framework_failure_
+long=d/e/f/g/h/i/j/k/l/m/n/o/p/q/r/s/t/u/v/w/x/y/z
+# One iteration of this loop creates a tree with which
+# du sometimes completes its traversal before the above rename.
+# Five iterations was not enough in 2 of 7 "make -j20 check" runs on a
+# 6/12-core system. However, using "10", I saw no failure in 20 trials.
+# Using 10 iterations was not enough, either.
+# Using 50, I saw no failure in 200 trials.
+for i in $(seq 50); do
+ mkdir -p $t/3/a/b/c/$i/$long || framework_failure_
+done
+
+# Terminate any background cp process
+cleanup_() { kill $pid 2>/dev/null && wait $pid; }
+
+# Prohibit suspension, which could otherwise cause a timeout-induced FP failure.
+trap '' TSTP
+
+timeout 6 ./inotify-watch-for-dir-access.py $t/3/a/b > start-msg & pid=$!
+
+# Wait for the watcher to start...
+nonempty() { sleep $1; test -s start-msg; }
+retry_delay_ nonempty .1 5 || fail=1
+
+# The above watches for an IN_OPEN event on $t/3/a/b,
+# and when it triggers, moves the parent, $t/3/a, up one level
+# so it's directly under $t.
+
+du -a $t d2 2> err
+# Before coreutils-8.10, du would abort.
+test $? = 1 || fail=1
+
+# check for the new diagnostic
+printf "du: fts_read failed: $t/3/a/b: No such file or directory\n" > exp \
+ || fail=1
+compare exp err || fail=1
+
+Exit $fail
diff --git a/tests/du/no-deref b/tests/du/no-deref
deleted file mode 100755
index 167f9c2..0000000
--- a/tests/du/no-deref
+++ /dev/null
@@ -1,54 +0,0 @@
-#!/bin/sh
-# Ensure that by default, du doesn't dereference command-line symlinks.
-
-# Copyright (C) 2003, 2004, 2006 Free Software Foundation, Inc.
-
-# This program is free software; you can redistribute it and/or modify
-# it under the terms of the GNU General Public License as published by
-# the Free Software Foundation; either version 2 of the License, or
-# (at your option) any later version.
-
-# This program is distributed in the hope that it will be useful,
-# but WITHOUT ANY WARRANTY; without even the implied warranty of
-# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
-# GNU General Public License for more details.
-
-# You should have received a copy of the GNU General Public License
-# along with this program; if not, write to the Free Software
-# Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA
-# 02110-1301, USA.
-
-if test "$VERBOSE" = yes; then
- set -x
- du --version
-fi
-
-. $srcdir/../envvar-check
-
-pwd=`pwd`
-t0=`echo "$0"|sed 's,.*/,,'`.tmp; tmp=$t0/$$
-trap 'status=$?; cd "$pwd" && chmod -R u+rwx $t0 && rm -rf $t0 && exit $status' 0
-trap '(exit $?); exit $?' 1 2 13 15
-
-framework_failure=0
-mkdir -p $tmp || framework_failure=1
-cd $tmp || framework_failure=1
-mkdir -p dir/a/b
-ln -s dir slink
-
-if test $framework_failure = 1; then
- echo "$0: failure in testing framework" 1>&2
- (exit 1); exit 1
-fi
-
-fail=0
-
-du slink | sed 's/^[0-9][0-9]* //' > out
-cat <<\EOF > exp
-slink
-EOF
-
-cmp out exp || fail=1
-test $fail = 1 && diff out exp 2> /dev/null
-
-(exit $fail); exit $fail
diff --git a/tests/du/no-deref.sh b/tests/du/no-deref.sh
new file mode 100755
index 0000000..3dd4a9e
--- /dev/null
+++ b/tests/du/no-deref.sh
@@ -0,0 +1,33 @@
+#!/bin/sh
+# Ensure that by default, du doesn't dereference command-line symlinks.
+
+# Copyright (C) 2003-2016 Free Software Foundation, Inc.
+
+# This program is free software: you can redistribute it and/or modify
+# it under the terms of the GNU General Public License as published by
+# the Free Software Foundation, either version 3 of the License, or
+# (at your option) any later version.
+
+# This program is distributed in the hope that it will be useful,
+# but WITHOUT ANY WARRANTY; without even the implied warranty of
+# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
+# GNU General Public License for more details.
+
+# You should have received a copy of the GNU General Public License
+# along with this program. If not, see <http://www.gnu.org/licenses/>.
+
+. "${srcdir=.}/tests/init.sh"; path_prepend_ ./src
+print_ver_ du
+
+mkdir -p dir/a/b || framework_failure_
+ln -s dir slink || framework_failure_
+
+
+du slink | sed 's/^[0-9][0-9]* //' > out
+cat <<\EOF > exp
+slink
+EOF
+
+compare exp out || fail=1
+
+Exit $fail
diff --git a/tests/du/no-x b/tests/du/no-x
deleted file mode 100755
index fa93e97..0000000
--- a/tests/du/no-x
+++ /dev/null
@@ -1,72 +0,0 @@
-#!/bin/sh
-# Make sure du gives the right diagnostic for a readable,
-# but inaccessible directory.
-
-# Copyright (C) 2003, 2006 Free Software Foundation, Inc.
-
-# This program is free software; you can redistribute it and/or modify
-# it under the terms of the GNU General Public License as published by
-# the Free Software Foundation; either version 2 of the License, or
-# (at your option) any later version.
-
-# This program is distributed in the hope that it will be useful,
-# but WITHOUT ANY WARRANTY; without even the implied warranty of
-# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
-# GNU General Public License for more details.
-
-# You should have received a copy of the GNU General Public License
-# along with this program; if not, write to the Free Software
-# Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA
-# 02110-1301, USA.
-
-if test "$VERBOSE" = yes; then
- set -x
- du --version
-fi
-
-. $srcdir/../lang-default
-PRIV_CHECK_ARG=require-non-root . $srcdir/../priv-check
-
-pwd=`pwd`
-t0=`echo "$0"|sed 's,.*/,,'`.tmp; tmp=$t0/$$
-trap 'status=$?; cd "$pwd" && chmod -R u+rwx $t0 && rm -rf $t0 && exit $status' 0
-trap '(exit $?); exit $?' 1 2 13 15
-
-framework_failure=0
-mkdir -p $tmp || framework_failure=1
-cd $tmp || framework_failure=1
-mkdir -p d/no-x/y || framework_failure=1
-chmod u=rw d/no-x || framework_failure=1
-
-if test $framework_failure = 1; then
- echo "$0: failure in testing framework" 1>&2
- (exit 1); exit 1
-fi
-
-fail=0
-
-# This must exit nonzero.
-du d >/dev/null 2>out && fail=1
-
-cat <<\EOF > exp
-du: `d/no-x': Permission denied
-EOF
-
-# With native fdopendir, du uses a different code path.
-cat <<\EOF > exp-native-fdopendir
-du: cannot access `d/no-x/y': Permission denied
-EOF
-
-if cmp out exp >/dev/null 2>&1; then
- :
-else
- if cmp out exp-native-fdopendir; then
- :
- else
- fail=1
- fi
-fi
-
-test $fail = 1 && diff out exp 2> /dev/null
-
-(exit $fail); exit $fail
diff --git a/tests/du/no-x.sh b/tests/du/no-x.sh
new file mode 100755
index 0000000..64c6fa5
--- /dev/null
+++ b/tests/du/no-x.sh
@@ -0,0 +1,49 @@
+#!/bin/sh
+# Make sure du gives the right diagnostic for a readable,
+# but inaccessible directory.
+
+# Copyright (C) 2003-2016 Free Software Foundation, Inc.
+
+# This program is free software: you can redistribute it and/or modify
+# it under the terms of the GNU General Public License as published by
+# the Free Software Foundation, either version 3 of the License, or
+# (at your option) any later version.
+
+# This program is distributed in the hope that it will be useful,
+# but WITHOUT ANY WARRANTY; without even the implied warranty of
+# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
+# GNU General Public License for more details.
+
+# You should have received a copy of the GNU General Public License
+# along with this program. If not, see <http://www.gnu.org/licenses/>.
+
+. "${srcdir=.}/tests/init.sh"; path_prepend_ ./src
+print_ver_ du
+skip_if_root_
+
+mkdir -p d/no-x/y || framework_failure_
+chmod u=rw d/no-x || framework_failure_
+
+
+# This must exit nonzero.
+du d >/dev/null 2>out && fail=1
+
+prog=du
+# NOTE: this code is the same for all tests/*/no-x tests.
+# Depending on whether fts is using native fdopendir, we see one
+# of the following diagnostics (note also the /y suffix in one case):
+# prog: 'd/no-x': Permission denied
+# prog: cannot access 'd/no-x/y': Permission denied
+# prog: cannot read directory 'd/no-x': Permission denied
+# Convert either of the latter two to the first one.
+sed "s/^$prog: cannot access /$prog: /" out > t && mv t out
+sed "s/^$prog: cannot read directory /$prog: /" out > t && mv t out
+sed 's,d/no-x/y,d/no-x,' out > t && mv t out
+
+cat <<EOF > exp
+$prog: 'd/no-x': Permission denied
+EOF
+
+compare exp out || fail=1
+
+Exit $fail
diff --git a/tests/du/one-file-system b/tests/du/one-file-system
deleted file mode 100755
index b595dc6..0000000
--- a/tests/du/one-file-system
+++ /dev/null
@@ -1,61 +0,0 @@
-#!/bin/sh
-# Test for a bug in fts's handling of FTS_XDEV, the flag behind
-# du's --one-file-system (-x) option.
-
-# Copyright (C) 2006 Free Software Foundation, Inc.
-
-# This program is free software; you can redistribute it and/or modify
-# it under the terms of the GNU General Public License as published by
-# the Free Software Foundation; either version 2 of the License, or
-# (at your option) any later version.
-
-# This program is distributed in the hope that it will be useful,
-# but WITHOUT ANY WARRANTY; without even the implied warranty of
-# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
-# GNU General Public License for more details.
-
-# You should have received a copy of the GNU General Public License
-# along with this program; if not, write to the Free Software
-# Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA
-# 02110-1301, USA.
-
-if test "$VERBOSE" = yes; then
- set -x
- du --version
-fi
-
-. $srcdir/../envvar-check
-
-pwd=`pwd`
-t0=`echo "$0"|sed 's,.*/,,'`.tmp; tmp=$t0/$$
-trap 'status=$?; cd "$pwd" && chmod -R u+rwx $t0 && rm -rf $t0 && exit $status' 0
-trap '(exit $?); exit $?' 1 2 13 15
-
-framework_failure=0
-mkdir -p $tmp || framework_failure=1
-cd $tmp || framework_failure=1
-mkdir -p b/c y/z || framework_failure=1
-
-if test $framework_failure = 1; then
- echo "$0: failure in testing framework" 1>&2
- (exit 1); exit 1
-fi
-
-fail=0
-
-# Due to a used-uninitialized variable, the "du -x" from coreutils-6.6
-# would not traverse into second and subsequent directories listed
-# on the command line.
-du -ax b y > t || fail=1
-sed 's/^[0-9][0-9]* //' t > out
-cat <<\EOF > exp || fail=1
-b/c
-b
-y/z
-y
-EOF
-
-cmp out exp || fail=1
-test $fail = 1 && diff out exp 2> /dev/null
-
-(exit $fail); exit $fail
diff --git a/tests/du/one-file-system.sh b/tests/du/one-file-system.sh
new file mode 100755
index 0000000..17ec63b
--- /dev/null
+++ b/tests/du/one-file-system.sh
@@ -0,0 +1,57 @@
+#!/bin/sh
+# Test for bugs in du's --one-file-system (-x) option.
+
+# Copyright (C) 2006-2016 Free Software Foundation, Inc.
+
+# This program is free software: you can redistribute it and/or modify
+# it under the terms of the GNU General Public License as published by
+# the Free Software Foundation, either version 3 of the License, or
+# (at your option) any later version.
+
+# This program is distributed in the hope that it will be useful,
+# but WITHOUT ANY WARRANTY; without even the implied warranty of
+# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
+# GNU General Public License for more details.
+
+# You should have received a copy of the GNU General Public License
+# along with this program. If not, see <http://www.gnu.org/licenses/>.
+
+. "${srcdir=.}/tests/init.sh"; path_prepend_ ./src
+print_ver_ du
+cleanup_() { rm -rf "$other_partition_tmpdir"; }
+. "$abs_srcdir/tests/other-fs-tmpdir"
+
+mkdir -p b/c y/z d "$other_partition_tmpdir/x" || framework_failure_
+ln -s "$other_partition_tmpdir/x" d || framework_failure_
+
+# Due to a used-uninitialized variable, the "du -x" from coreutils-6.6
+# would not traverse into second and subsequent directories listed
+# on the command line.
+du -ax b y > t || fail=1
+sed 's/^[0-9][0-9]* //' t > out
+cat <<\EOF > exp || fail=1
+b/c
+b
+y/z
+y
+EOF
+
+compare exp out || fail=1
+
+# "du -xL" reported a zero count for a file in a different file system,
+# instead of ignoring it.
+du -xL d > u || fail=1
+sed 's/^[0-9][0-9]* //' u > out1
+echo d > exp1 || fail=1
+compare exp1 out1 || fail=1
+
+# With coreutils-8.15, "du -xs FILE" would print no output.
+touch f
+for opt in -x -xs; do
+ du $opt f > u || fail=1
+ sed 's/^[0-9][0-9]* //' u > out2
+ echo f > exp2 || fail=1
+ compare exp2 out2 || fail=1
+done
+
+Exit $fail
diff --git a/tests/du/restore-wd b/tests/du/restore-wd
deleted file mode 100755
index 3b8a3c9..0000000
--- a/tests/du/restore-wd
+++ /dev/null
@@ -1,49 +0,0 @@
-#!/bin/sh
-# due to a bug in glibc's ftw.c, in some cases, nftw w/FTW_CHDIR
-# would not restore the working directory.
-
-# Copyright (C) 2003, 2006 Free Software Foundation, Inc.
-
-# This program is free software; you can redistribute it and/or modify
-# it under the terms of the GNU General Public License as published by
-# the Free Software Foundation; either version 2 of the License, or
-# (at your option) any later version.
-
-# This program is distributed in the hope that it will be useful,
-# but WITHOUT ANY WARRANTY; without even the implied warranty of
-# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
-# GNU General Public License for more details.
-
-# You should have received a copy of the GNU General Public License
-# along with this program; if not, write to the Free Software
-# Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA
-# 02110-1301, USA.
-
-if test "$VERBOSE" = yes; then
- set -x
- du --version
-fi
-
-pwd=`pwd`
-t0=`echo "$0"|sed 's,.*/,,'`.tmp; tmp=$t0/$$
-trap 'status=$?; cd "$pwd" && chmod -R u+rwx $t0 && rm -rf $t0 && exit $status' 0
-trap '(exit $?); exit $?' 1 2 13 15
-
-framework_failure=0
-mkdir -p $tmp || framework_failure=1
-cd $tmp || framework_failure=1
-mkdir a b || framework_failure=1
-
-if test $framework_failure = 1; then
- echo "$0: failure in testing framework" 1>&2
- (exit 1); exit 1
-fi
-
-fail=0
-
-# With du from coreutils-4.5.5 and 4.5.6, this would fail with
-# du: `b': No such file or directory
-
-du a b > out || fail=1
-
-(exit $fail); exit $fail
diff --git a/tests/du/restore-wd.sh b/tests/du/restore-wd.sh
new file mode 100755
index 0000000..a8a900c
--- /dev/null
+++ b/tests/du/restore-wd.sh
@@ -0,0 +1,31 @@
+#!/bin/sh
+# due to a bug in glibc's ftw.c, in some cases, nftw w/FTW_CHDIR
+# would not restore the working directory.
+
+# Copyright (C) 2003-2016 Free Software Foundation, Inc.
+
+# This program is free software: you can redistribute it and/or modify
+# it under the terms of the GNU General Public License as published by
+# the Free Software Foundation, either version 3 of the License, or
+# (at your option) any later version.
+
+# This program is distributed in the hope that it will be useful,
+# but WITHOUT ANY WARRANTY; without even the implied warranty of
+# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
+# GNU General Public License for more details.
+
+# You should have received a copy of the GNU General Public License
+# along with this program. If not, see <http://www.gnu.org/licenses/>.
+
+. "${srcdir=.}/tests/init.sh"; path_prepend_ ./src
+print_ver_ du
+
+mkdir a b || framework_failure_
+
+
+# With du from coreutils-4.5.5 and 4.5.6, this would fail with
+# du: 'b': No such file or directory
+
+du a b > out || fail=1
+
+Exit $fail
diff --git a/tests/du/slash b/tests/du/slash
deleted file mode 100755
index d3e1335..0000000
--- a/tests/du/slash
+++ /dev/null
@@ -1,54 +0,0 @@
-#!/bin/sh
-# `du /' would omit the `/' on the last line.
-
-# Copyright (C) 2003, 2004, 2006 Free Software Foundation, Inc.
-
-# This program is free software; you can redistribute it and/or modify
-# it under the terms of the GNU General Public License as published by
-# the Free Software Foundation; either version 2 of the License, or
-# (at your option) any later version.
-
-# This program is distributed in the hope that it will be useful,
-# but WITHOUT ANY WARRANTY; without even the implied warranty of
-# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
-# GNU General Public License for more details.
-
-# You should have received a copy of the GNU General Public License
-# along with this program; if not, write to the Free Software
-# Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA
-# 02110-1301, USA.
-
-if test "$VERBOSE" = yes; then
- set -x
- du --version
-fi
-
-. $srcdir/../envvar-check
-
-pwd=`pwd`
-t0=`echo "$0"|sed 's,.*/,,'`.tmp; tmp=$t0/$$
-trap 'status=$?; cd "$pwd" && chmod -R u+rwx $t0 && rm -rf $t0 && exit $status' 0
-trap '(exit $?); exit $?' 1 2 13 15
-
-framework_failure=0
-mkdir -p $tmp || framework_failure=1
-cd $tmp || framework_failure=1
-
-if test $framework_failure = 1; then
- echo "$0: failure in testing framework" 1>&2
- (exit 1); exit 1
-fi
-
-fail=0
-
-du --exclude='[^/]*' -x / > out-t || fail=1
-sed 's/^[0-9][0-9]* //' out-t > out
-rm -f out-t
-cat <<\EOF > exp
-/
-EOF
-
-cmp out exp || fail=1
-test $fail = 1 && diff out exp 2> /dev/null
-
-(exit $fail); exit $fail
diff --git a/tests/du/slash.sh b/tests/du/slash.sh
new file mode 100755
index 0000000..bb6d1fb
--- /dev/null
+++ b/tests/du/slash.sh
@@ -0,0 +1,33 @@
+#!/bin/sh
+# 'du /' would omit the '/' on the last line.
+
+# Copyright (C) 2003-2016 Free Software Foundation, Inc.
+
+# This program is free software: you can redistribute it and/or modify
+# it under the terms of the GNU General Public License as published by
+# the Free Software Foundation, either version 3 of the License, or
+# (at your option) any later version.
+
+# This program is distributed in the hope that it will be useful,
+# but WITHOUT ANY WARRANTY; without even the implied warranty of
+# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
+# GNU General Public License for more details.
+
+# You should have received a copy of the GNU General Public License
+# along with this program. If not, see <http://www.gnu.org/licenses/>.
+
+. "${srcdir=.}/tests/init.sh"; path_prepend_ ./src
+print_ver_ du
+require_readable_root_
+
+
+du --exclude='[^/]*' -x / > out-t || fail=1
+sed 's/^[0-9][0-9]* //' out-t > out
+rm -f out-t
+cat <<\EOF > exp
+/
+EOF
+
+compare exp out || fail=1
+
+Exit $fail
diff --git a/tests/du/slink b/tests/du/slink
deleted file mode 100755
index 8be1a30..0000000
--- a/tests/du/slink
+++ /dev/null
@@ -1,79 +0,0 @@
-#!/bin/sh
-# Ensure that the size of a long-named-symlink is > 0.
-
-# Copyright (C) 2002-2007 Free Software Foundation, Inc.
-
-# This program is free software; you can redistribute it and/or modify
-# it under the terms of the GNU General Public License as published by
-# the Free Software Foundation; either version 2 of the License, or
-# (at your option) any later version.
-
-# This program is distributed in the hope that it will be useful,
-# but WITHOUT ANY WARRANTY; without even the implied warranty of
-# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
-# GNU General Public License for more details.
-
-# You should have received a copy of the GNU General Public License
-# along with this program; if not, write to the Free Software
-# Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA
-# 02110-1301, USA.
-
-if test "$VERBOSE" = yes; then
- set -x
- du --version
-fi
-
-pwd=`pwd`
-t0=`echo "$0"|sed 's,.*/,,'`.tmp; tmp=$t0/$$
-trap 'status=$?; cd "$pwd" && chmod -R u+rwx $t0 && rm -rf $t0 && exit $status' 0
-trap '(exit $?); exit $?' 1 2 13 15
-
-framework_failure=0
-mkdir -p $tmp || framework_failure=1
-cd $tmp || framework_failure=1
-
-# Determine if `.' is on a local (would non-NFS be sufficient?) file system.
-# On at least some NFS implementations, symlinks never take up space,
-
-# So if this is a non-local file system, skip the test.
-if df --local . >/dev/null 2>&1; then
- : # Ok.
-else
- echo "$0: skipping this test, since \`.' is on a non-local file system" 1>&2
- (exit 77); exit 77
-fi
-
-if df --type=xfs . >/dev/null 2>&1; then
- # At least on Irix-6.5.19, when using an xfs file system,
- # each created symlink (name lengths up to 255) would have a size of `0'.
- echo "$0: skipping this test, since \`.' is on an XFS file system" 1>&2
- (exit 77); exit 77
-fi
-
-if df --type=nfsv3 . >/dev/null 2>&1; then
- # At least on OSF/1 4.0d, when using an nfsv3 file system,
- # each created symlink can end up having a size of 0.
- echo "$0: skipping this test, since \`.' is on an NFS file system" 1>&2
- (exit 77); exit 77
-fi
-
-if test $framework_failure = 1; then
- echo "$0: failure in testing framework" 1>&2
- (exit 1); exit 1
-fi
-
-fail=0
-symlink_name_lengths='1 15 16 31 32 59 60 63 64 127 128 255 256 511 512 1024'
-for len in $symlink_name_lengths; do
- name=`seq 1 $len|tr -c x y |head -c$len`
- # Record the names of symlinks that are successfully created.
- ln -fs $name $len > /dev/null 2>&1 \
- && symlinks="$symlinks $len"
-done
-
-du -a $symlinks > out || fail=1
-
-# Require that at least one of these symlinks has a non-zero size.
-grep '^[1-9]' out > /dev/null || fail=1
-
-(exit $fail); exit $fail
diff --git a/tests/du/threshold.sh b/tests/du/threshold.sh
new file mode 100755
index 0000000..d4746df
--- /dev/null
+++ b/tests/du/threshold.sh
@@ -0,0 +1,362 @@
+#!/bin/sh
+# Exercise du's --threshold option.
+
+# Copyright (C) 2013-2016 Free Software Foundation, Inc.
+
+# This program is free software: you can redistribute it and/or modify
+# it under the terms of the GNU General Public License as published by
+# the Free Software Foundation, either version 3 of the License, or
+# (at your option) any later version.
+
+# This program is distributed in the hope that it will be useful,
+# but WITHOUT ANY WARRANTY; without even the implied warranty of
+# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
+# GNU General Public License for more details.
+
+# You should have received a copy of the GNU General Public License
+# along with this program. If not, see <http://www.gnu.org/licenses/>.
+
+. "${srcdir=.}/tests/init.sh"; path_prepend_ ./src
+print_ver_ du
+
+mkdir -p a/b a/c || framework_failure_
+
+touch a/b/0 || framework_failure_
+printf '%1s' x > a/b/1 || framework_failure_
+printf '%2s' x > a/b/2 || framework_failure_
+printf '%3s' x > a/b/3 || framework_failure_
+
+Ba=$(stat --format="%B * %b" a | xargs expr)
+Bb=$(stat --format="%B * %b" a/b | xargs expr)
+Bc=$(stat --format="%B * %b" a/c | xargs expr)
+B0=$(stat --format="%B * %b" a/b/0 | xargs expr)
+B1=$(stat --format="%B * %b" a/b/1 | xargs expr)
+B2=$(stat --format="%B * %b" a/b/2 | xargs expr)
+B3=$(stat --format="%B * %b" a/b/3 | xargs expr)
+
+Sa=$(stat --format=%s a )
+Sb=$(stat --format=%s a/b )
+Sc=$(stat --format=%s a/c )
+S0=$(stat --format=%s a/b/0)
+S1=$(stat --format=%s a/b/1)
+S2=$(stat --format=%s a/b/2)
+S3=$(stat --format=%s a/b/3)
+
+Bb0123=$(expr $Bb + $B0 + $B1 + $B2 + $B3)
+Sb0123=$(expr $Sb + $S0 + $S1 + $S2 + $S3)
+
+Bab0123=$(expr $Ba + $Bc + $Bb0123)
+Sab0123=$(expr $Sa + $Sc + $Sb0123)
+
+# Sanity checks
+test $Ba -gt 4 || skip_ "block size of a directory is smaller than 4 bytes"
+test $Bc -gt 4 || skip_ "block size of an empty directory is smaller than 4 \
+bytes"
+test $Sa -gt 4 || skip_ "apparent size of a directory is smaller than 4 bytes"
+test $B1 -gt 4 || skip_ "block size of small file smaller than 4 bytes"
+test $S3 -eq 3 || framework_failure_
+test $S2 -eq 2 || framework_failure_
+test $S1 -eq 1 || framework_failure_
+test $S0 -eq 0 || framework_failure_
+test $B0 -eq 0 || skip_ "block size of an empty file unequal Zero"
+# block size of a/b/1 == a/b/2
+test $B1 -eq $B2 || framework_failure_
+# a is bigger than a/b.
+test $Sab0123 -gt $Sb0123 || framework_failure_
+test $Bab0123 -gt $Bb0123 || framework_failure_
+# a/b is bigger than empty a/c.
+test $Sb0123 -gt $Sc || framework_failure_
+test $Bb0123 -gt $Bc || framework_failure_
+
+# Exercise a bad argument: unparsable number.
+cat <<EOF > exp
+du: invalid --threshold argument 'SIZE'
+EOF
+du --threshold=SIZE a > out 2>&1 && fail=1
+compare exp out || fail=1
+
+cat <<EOF > exp
+du: invalid -t argument 'SIZE'
+EOF
+du -t SIZE a > out 2>&1 && fail=1
+compare exp out || fail=1
+
+# Exercise a bad argument: -0 is not valid.
+cat <<EOF > exp
+du: invalid --threshold argument '-0'
+EOF
+du --threshold=-0 a > out 2>&1 && fail=1
+compare exp out || fail=1
+
+du -t -0 a > out 2>&1 && fail=1
+compare exp out || fail=1
+
+du -t-0 a > out 2>&1 && fail=1
+compare exp out || fail=1
+
+# Exercise a bad argument: empty argument.
+cat <<EOF > exp
+du: invalid --threshold argument ''
+EOF
+du --threshold= a > out 2>&1 && fail=1
+compare exp out || fail=1
+
+# Exercise a bad argument: no argument.
+du --threshold > out.tmp 2>&1 && fail=1
+sed 's/argument.*/argument/; s/option.*requires/option requires/' \
+ < out.tmp > out || framework_failure_
+cat <<EOF > exp
+du: option requires an argument
+Try 'du --help' for more information.
+EOF
+compare exp out || fail=1
+rm -f out
+
+dutest ()
+{
+ args="$1"
+ exp="$2"
+
+ rm -f exp out
+
+ # Expected output.
+ if [ "$exp" = "" ] ; then
+ touch exp
+ else
+ printf "%s\n" $exp > exp
+ fi
+
+ rc=0
+ du -B1 $args a > out1 2>&1 || { cat out1 ; rc=1 ; }
+
+ # Remove the size column and sort the output.
+ cut -f2- out1 | sort > out || framework_failure_
+
+ compare exp out || { cat out1 ; rc=1 ; }
+ return $rc
+}
+
+# Check numbers around the total size of the main directory 'a'.
+# One byte greater than 'a'.
+s=$(expr $Sab0123 + 1) # apparent size
+dutest "--app -t $s" '' || fail=1
+dutest "--app -a -t $s" '' || fail=1
+dutest "--app -S -t $s" '' || fail=1
+dutest "--app -a -S -t $s" '' || fail=1
+dutest "--app -t -$s" 'a a/b a/c' || fail=1
+dutest "--app -a -t -$s" 'a a/b a/b/0 a/b/1 a/b/2 a/b/3 a/c' || fail=1
+dutest "--app -S -t -$s" 'a a/b a/c' || fail=1
+dutest "--app -a -S -t -$s" 'a a/b a/b/0 a/b/1 a/b/2 a/b/3 a/c' || fail=1
+s=$(expr $Bab0123 + 1) # block size
+dutest " -t $s" '' || fail=1
+dutest " -a -t $s" '' || fail=1
+dutest " -S -t $s" '' || fail=1
+dutest " -a -S -t $s" '' || fail=1
+dutest " -t -$s" 'a a/b a/c' || fail=1
+dutest " -a -t -$s" 'a a/b a/b/0 a/b/1 a/b/2 a/b/3 a/c' || fail=1
+dutest " -S -t -$s" 'a a/b a/c' || fail=1
+dutest " -a -S -t -$s" 'a a/b a/b/0 a/b/1 a/b/2 a/b/3 a/c' || fail=1
+
+# Exactly the size of 'a'.
+s=$Sab0123 # apparent size
+dutest "--app --th=$s" 'a' || fail=1
+dutest "--app -a --th=$s" 'a' || fail=1
+dutest "--app -S --th=$s" '' || fail=1
+dutest "--app -a -S --th=$s" '' || fail=1
+dutest "--app --th=-$s" 'a a/b a/c' || fail=1
+dutest "--app -a --th=-$s" 'a a/b a/b/0 a/b/1 a/b/2 a/b/3 a/c' || fail=1
+dutest "--app -S --th=-$s" 'a a/b a/c' || fail=1
+dutest "--app -a -S --th=-$s" 'a a/b a/b/0 a/b/1 a/b/2 a/b/3 a/c' || fail=1
+s=$Bab0123 # block size
+dutest " --th=$s" 'a' || fail=1
+dutest " -a --th=$s" 'a' || fail=1
+dutest " -S --th=$s" '' || fail=1
+dutest " -a -S --th=$s" '' || fail=1
+dutest " --th=-$s" 'a a/b a/c' || fail=1
+dutest " -a --th=-$s" 'a a/b a/b/0 a/b/1 a/b/2 a/b/3 a/c' || fail=1
+dutest " -S --th=-$s" 'a a/b a/c' || fail=1
+dutest " -a -S --th=-$s" 'a a/b a/b/0 a/b/1 a/b/2 a/b/3 a/c' || fail=1
+
+# One byte smaller than 'a'.
+s=$(expr $Sab0123 - 1) # apparent size
+dutest "--app --th=$s" 'a' || fail=1
+dutest "--app -a --th=$s" 'a' || fail=1
+dutest "--app -S --th=$s" '' || fail=1
+dutest "--app -a -S --th=$s" '' || fail=1
+dutest "--app --th=-$s" 'a/b a/c' || fail=1
+dutest "--app -a --th=-$s" 'a/b a/b/0 a/b/1 a/b/2 a/b/3 a/c' || fail=1
+dutest "--app -S --th=-$s" 'a a/b a/c' || fail=1
+dutest "--app -a -S --th=-$s" 'a a/b a/b/0 a/b/1 a/b/2 a/b/3 a/c' || fail=1
+s=$(expr $Bab0123 - 1) # block size
+dutest " --th=$s" 'a' || fail=1
+dutest " -a --th=$s" 'a' || fail=1
+dutest " -S --th=$s" '' || fail=1
+dutest " -a -S --th=$s" '' || fail=1
+dutest " --th=-$s" 'a/b a/c' || fail=1
+dutest " -a --th=-$s" 'a/b a/b/0 a/b/1 a/b/2 a/b/3 a/c' || fail=1
+dutest " -S --th=-$s" 'a a/b a/c' || fail=1
+dutest " -a -S --th=-$s" 'a a/b a/b/0 a/b/1 a/b/2 a/b/3 a/c' || fail=1
+
+
+# Check numbers around the total size of the sub directory 'a/b'.
+# One byte greater than 'a/b'.
+s=$(expr $Sb0123 + 1) # apparent size
+dutest "--app --th=$s" 'a' || fail=1
+dutest "--app -a --th=$s" 'a' || fail=1
+dutest "--app -S --th=$s" '' || fail=1
+dutest "--app -a -S --th=$s" '' || fail=1
+dutest "--app --th=-$s" 'a/b a/c' || fail=1
+dutest "--app -a --th=-$s" 'a/b a/b/0 a/b/1 a/b/2 a/b/3 a/c' || fail=1
+dutest "--app -S --th=-$s" 'a a/b a/c' || fail=1
+dutest "--app -a -S --th=-$s" 'a a/b a/b/0 a/b/1 a/b/2 a/b/3 a/c' || fail=1
+s=$(expr $Bb0123 + 1) # block size
+dutest " --th=$s" 'a' || fail=1
+dutest " -a --th=$s" 'a' || fail=1
+dutest " -S --th=$s" '' || fail=1
+dutest " -a -S --th=$s" '' || fail=1
+dutest " --th=-$s" 'a/b a/c' || fail=1
+dutest " -a --th=-$s" 'a/b a/b/0 a/b/1 a/b/2 a/b/3 a/c' || fail=1
+dutest " -S --th=-$s" 'a a/b a/c' || fail=1
+dutest " -a -S --th=-$s" 'a a/b a/b/0 a/b/1 a/b/2 a/b/3 a/c' || fail=1
+
+# Exactly the size of 'a/b'.
+s=$Sb0123 # apparent size
+dutest "--app --th=$s" 'a a/b' || fail=1
+dutest "--app -a --th=$s" 'a a/b' || fail=1
+dutest "--app -S --th=$s" 'a/b' || fail=1
+dutest "--app -a -S --th=$s" 'a/b' || fail=1
+dutest "--app --th=-$s" 'a/b a/c' || fail=1
+dutest "--app -a --th=-$s" 'a/b a/b/0 a/b/1 a/b/2 a/b/3 a/c' || fail=1
+dutest "--app -S --th=-$s" 'a a/b a/c' || fail=1
+dutest "--app -a -S --th=-$s" 'a a/b a/b/0 a/b/1 a/b/2 a/b/3 a/c' || fail=1
+s=$Bb0123 # block size
+dutest " --th=$s" 'a a/b' || fail=1
+dutest " -a --th=$s" 'a a/b' || fail=1
+dutest " -S --th=$s" 'a/b' || fail=1
+dutest " -a -S --th=$s" 'a/b' || fail=1
+dutest " --th=-$s" 'a/b a/c' || fail=1
+dutest " -a --th=-$s" 'a/b a/b/0 a/b/1 a/b/2 a/b/3 a/c' || fail=1
+dutest " -S --th=-$s" 'a a/b a/c' || fail=1
+dutest " -a -S --th=-$s" 'a a/b a/b/0 a/b/1 a/b/2 a/b/3 a/c' || fail=1
+
+# One byte smaller than 'a/b'.
+s=$(expr $Sb0123 - 1) # apparent size
+dutest "--app --th=$s" 'a a/b' || fail=1
+dutest "--app -a --th=$s" 'a a/b' || fail=1
+dutest "--app -S --th=$s" 'a/b' || fail=1
+dutest "--app -a -S --th=$s" 'a/b' || fail=1
+dutest "--app --th=-$s" 'a/c' || fail=1
+dutest "--app -a --th=-$s" 'a/b/0 a/b/1 a/b/2 a/b/3 a/c' || fail=1
+dutest "--app -S --th=-$s" 'a a/c' || fail=1
+dutest "--app -a -S --th=-$s" 'a a/b/0 a/b/1 a/b/2 a/b/3 a/c' || fail=1
+s=$(expr $Bb0123 - 1) # block size
+dutest " --th=$s" 'a a/b' || fail=1
+dutest " -a --th=$s" 'a a/b' || fail=1
+dutest " -S --th=$s" 'a/b' || fail=1
+dutest " -a -S --th=$s" 'a/b' || fail=1
+dutest " --th=-$s" 'a/c' || fail=1
+dutest " -a --th=-$s" 'a/b/0 a/b/1 a/b/2 a/b/3 a/c' || fail=1
+dutest " -S --th=-$s" 'a a/c' || fail=1
+dutest " -a -S --th=-$s" 'a a/b/0 a/b/1 a/b/2 a/b/3 a/c' || fail=1
+
+
+# Check numbers around the total size of the files a/b/[0123]'.
+echo One byte greater than 'a/b/3'.
+s=$(expr $S3 + 1) # apparent size
+dutest "--app --th=$s" 'a a/b a/c' || fail=1
+dutest "--app -a --th=$s" 'a a/b a/c' || fail=1
+dutest "--app -S --th=$s" 'a a/b a/c' || fail=1
+dutest "--app -a -S --th=$s" 'a a/b a/c' || fail=1
+dutest "--app --th=-$s" '' || fail=1
+dutest "--app -a --th=-$s" 'a/b/0 a/b/1 a/b/2 a/b/3' || fail=1
+dutest "--app -S --th=-$s" '' || fail=1
+dutest "--app -a -S --th=-$s" 'a/b/0 a/b/1 a/b/2 a/b/3' || fail=1
+s=$(expr $B3 + 1) # block size
+dutest " --th=$s" 'a a/b' || fail=1
+dutest " -a --th=$s" 'a a/b' || fail=1
+dutest " -S --th=$s" 'a/b' || fail=1
+dutest " -a -S --th=$s" 'a/b' || fail=1
+dutest " --th=-$s" 'a/c' || fail=1
+dutest " -a --th=-$s" 'a/b/0 a/b/1 a/b/2 a/b/3 a/c' || fail=1
+dutest " -S --th=-$s" 'a a/c' || fail=1
+dutest " -a -S --th=-$s" 'a a/b/0 a/b/1 a/b/2 a/b/3 a/c' || fail=1
+
+# Exactly the size of 'a/b/3'.
+echo Exactly the size of 'a/b/3'.
+s=$S3 # apparent size
+dutest "--app --th=$s" 'a a/b a/c' || fail=1
+dutest "--app -a --th=$s" 'a a/b a/b/3 a/c' || fail=1
+dutest "--app -S --th=$s" 'a a/b a/c' || fail=1
+dutest "--app -a -S --th=$s" 'a a/b a/b/3 a/c' || fail=1
+dutest "--app --th=-$s" '' || fail=1
+dutest "--app -a --th=-$s" 'a/b/0 a/b/1 a/b/2 a/b/3' || fail=1
+dutest "--app -S --th=-$s" '' || fail=1
+dutest "--app -a -S --th=-$s" 'a/b/0 a/b/1 a/b/2 a/b/3' || fail=1
+s=$B3 # block size
+dutest " --th=$s" 'a a/b a/c' || fail=1
+dutest " -a --th=$s" 'a a/b a/b/1 a/b/2 a/b/3 a/c' || fail=1
+dutest " -S --th=$s" 'a a/b a/c' || fail=1
+dutest " -a -S --th=$s" 'a a/b a/b/1 a/b/2 a/b/3 a/c' || fail=1
+dutest " --th=-$s" 'a/c' || fail=1
+dutest " -a --th=-$s" 'a/b/0 a/b/1 a/b/2 a/b/3 a/c' || fail=1
+dutest " -S --th=-$s" 'a a/c' || fail=1
+dutest " -a -S --th=-$s" 'a a/b/0 a/b/1 a/b/2 a/b/3 a/c' || fail=1
+
+# Exactly the size of 'a/b/2'.
+echo Exactly the size of 'a/b/2'.
+s=$S2 # apparent size
+dutest "--app --th=$s" 'a a/b a/c' || fail=1
+dutest "--app -a --th=$s" 'a a/b a/b/2 a/b/3 a/c' || fail=1
+dutest "--app -S --th=$s" 'a a/b a/c' || fail=1
+dutest "--app -a -S --th=$s" 'a a/b a/b/2 a/b/3 a/c' || fail=1
+dutest "--app --th=-$s" '' || fail=1
+dutest "--app -a --th=-$s" 'a/b/0 a/b/1 a/b/2' || fail=1
+dutest "--app -S --th=-$s" '' || fail=1
+dutest "--app -a -S --th=-$s" 'a/b/0 a/b/1 a/b/2' || fail=1
+s=$B2 # block size
+dutest " --th=$s" 'a a/b a/c' || fail=1
+dutest " -a --th=$s" 'a a/b a/b/1 a/b/2 a/b/3 a/c' || fail=1
+dutest " -S --th=$s" 'a a/b a/c' || fail=1
+dutest " -a -S --th=$s" 'a a/b a/b/1 a/b/2 a/b/3 a/c' || fail=1
+dutest " --th=-$s" 'a/c' || fail=1
+dutest " -a --th=-$s" 'a/b/0 a/b/1 a/b/2 a/b/3 a/c' || fail=1
+dutest " -S --th=-$s" 'a a/c' || fail=1
+dutest " -a -S --th=-$s" 'a a/b/0 a/b/1 a/b/2 a/b/3 a/c' || fail=1
+
+# Exactly the size of 'a/b/1'.
+echo Exactly the size of 'a/b/1'.
+s=$S1 # apparent size
+dutest "--app --th=$s" 'a a/b a/c' || fail=1
+dutest "--app -a --th=$s" 'a a/b a/b/1 a/b/2 a/b/3 a/c' || fail=1
+dutest "--app -S --th=$s" 'a a/b a/c' || fail=1
+dutest "--app -a -S --th=$s" 'a a/b a/b/1 a/b/2 a/b/3 a/c' || fail=1
+dutest "--app --th=-$s" '' || fail=1
+dutest "--app -a --th=-$s" 'a/b/0 a/b/1' || fail=1
+dutest "--app -S --th=-$s" '' || fail=1
+dutest "--app -a -S --th=-$s" 'a/b/0 a/b/1' || fail=1
+s=$B1 # block size
+dutest " --th=$s" 'a a/b a/c' || fail=1
+dutest " -a --th=$s" 'a a/b a/b/1 a/b/2 a/b/3 a/c' || fail=1
+dutest " -S --th=$s" 'a a/b a/c' || fail=1
+dutest " -a -S --th=$s" 'a a/b a/b/1 a/b/2 a/b/3 a/c' || fail=1
+dutest " --th=-$s" 'a/c' || fail=1
+dutest " -a --th=-$s" 'a/b/0 a/b/1 a/b/2 a/b/3 a/c' || fail=1
+dutest " -S --th=-$s" 'a a/c' || fail=1
+dutest " -a -S --th=-$s" 'a a/b/0 a/b/1 a/b/2 a/b/3 a/c' || fail=1
+
+# Exactly the size of 'a/b/0'.
+echo Exactly the size of 'a/b/0'.
+s=$S0 # apparent size
+dutest "--app --th=$s" 'a a/b a/c' || fail=1
+dutest "--app -a --th=$s" 'a a/b a/b/0 a/b/1 a/b/2 a/b/3 a/c' || fail=1
+dutest "--app -S --th=$s" 'a a/b a/c' || fail=1
+dutest "--app -a -S --th=$s" 'a a/b a/b/0 a/b/1 a/b/2 a/b/3 a/c' || fail=1
+# (maximum tests (-0) not possible).
+s=$B0 # block size
+dutest " --th=$s" 'a a/b a/c' || fail=1
+dutest " -a --th=$s" 'a a/b a/b/0 a/b/1 a/b/2 a/b/3 a/c' || fail=1
+dutest " -S --th=$s" 'a a/b a/c' || fail=1
+dutest " -a -S --th=$s" 'a a/b a/b/0 a/b/1 a/b/2 a/b/3 a/c' || fail=1
+# (maximum tests (-0) not possible).
+
+Exit $fail
diff --git a/tests/du/trailing-slash b/tests/du/trailing-slash
deleted file mode 100755
index 4d607cd..0000000
--- a/tests/du/trailing-slash
+++ /dev/null
@@ -1,68 +0,0 @@
-#!/bin/sh
-# Ensure that du works properly for an argument that refers to a
-# symbolic link, and that is specified with a trailing slash.
-
-# Copyright (C) 2002, 2003, 2004, 2006 Free Software Foundation, Inc.
-
-# This program is free software; you can redistribute it and/or modify
-# it under the terms of the GNU General Public License as published by
-# the Free Software Foundation; either version 2 of the License, or
-# (at your option) any later version.
-
-# This program is distributed in the hope that it will be useful,
-# but WITHOUT ANY WARRANTY; without even the implied warranty of
-# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
-# GNU General Public License for more details.
-
-# You should have received a copy of the GNU General Public License
-# along with this program; if not, write to the Free Software
-# Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA
-# 02110-1301, USA.
-
-# Before coreutils-4.5.3, it would remove a single trailing slash.
-
-if test "$VERBOSE" = yes; then
- set -x
- du --version
-fi
-
-. $srcdir/../envvar-check
-
-pwd=`pwd`
-t0=`echo "$0"|sed 's,.*/,,'`.tmp; tmp=$t0/$$
-trap 'status=$?; cd "$pwd" && chmod -R u+rwx $t0 && rm -rf $t0 && exit $status' 0
-trap '(exit $?); exit $?' 1 2 13 15
-
-framework_failure=0
-mkdir -p $tmp || framework_failure=1
-cd $tmp || framework_failure=1
-mkdir -p dir/1/2 || framework_failure=1
-ln -s dir slink || framework_failure=1
-
-if test $framework_failure = 1; then
- echo "$0: failure in testing framework" 1>&2
- (exit 1); exit 1
-fi
-
-fail=0
-
-du slink/ | sed 's/^[0-9][0-9]* //' > out
-echo === >> out
-
-# Ensure that with -L we get the same results (modulo the trailing slash
-# on the third line) even without the trailing slash on the command line.
-du -L slink | sed 's/^[0-9][0-9]* //' >> out
-cat <<\EOF > exp
-slink/1/2
-slink/1
-slink/
-===
-slink/1/2
-slink/1
-slink
-EOF
-
-cmp out exp || fail=1
-test $fail = 1 && diff out exp 2> /dev/null
-
-(exit $fail); exit $fail
diff --git a/tests/du/trailing-slash.sh b/tests/du/trailing-slash.sh
new file mode 100755
index 0000000..c483c65
--- /dev/null
+++ b/tests/du/trailing-slash.sh
@@ -0,0 +1,47 @@
+#!/bin/sh
+# Ensure that du works properly for an argument that refers to a
+# symbolic link, and that is specified with a trailing slash.
+
+# Copyright (C) 2002-2016 Free Software Foundation, Inc.
+
+# This program is free software: you can redistribute it and/or modify
+# it under the terms of the GNU General Public License as published by
+# the Free Software Foundation, either version 3 of the License, or
+# (at your option) any later version.
+
+# This program is distributed in the hope that it will be useful,
+# but WITHOUT ANY WARRANTY; without even the implied warranty of
+# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
+# GNU General Public License for more details.
+
+# You should have received a copy of the GNU General Public License
+# along with this program. If not, see <http://www.gnu.org/licenses/>.
+
+# Before coreutils-4.5.3, it would remove a single trailing slash.
+
+. "${srcdir=.}/tests/init.sh"; path_prepend_ ./src
+print_ver_ du
+
+mkdir -p dir/1/2 || framework_failure_
+ln -s dir slink || framework_failure_
+
+
+du slink/ | sed 's/^[0-9][0-9]* //' > out
+echo === >> out
+
+# Ensure that with -L we get the same results (modulo the trailing slash
+# on the third line) even without the trailing slash on the command line.
+du -L slink | sed 's/^[0-9][0-9]* //' >> out
+cat <<\EOF > exp
+slink/1/2
+slink/1
+slink/
+===
+slink/1/2
+slink/1
+slink
+EOF
+
+compare exp out || fail=1
+
+Exit $fail
diff --git a/tests/du/two-args b/tests/du/two-args
deleted file mode 100755
index 93700a0..0000000
--- a/tests/du/two-args
+++ /dev/null
@@ -1,51 +0,0 @@
-#!/bin/sh
-# Make sure `du d/1 d/2' works.
-# That command failed with du from fileutils-4.0q.
-
-# Copyright (C) 2000, 2004, 2006 Free Software Foundation, Inc.
-
-# This program is free software; you can redistribute it and/or modify
-# it under the terms of the GNU General Public License as published by
-# the Free Software Foundation; either version 2 of the License, or
-# (at your option) any later version.
-
-# This program is distributed in the hope that it will be useful,
-# but WITHOUT ANY WARRANTY; without even the implied warranty of
-# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
-# GNU General Public License for more details.
-
-# You should have received a copy of the GNU General Public License
-# along with this program; if not, write to the Free Software
-# Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA
-# 02110-1301, USA.
-
-if test "$VERBOSE" = yes; then
- set -x
- du --version
-fi
-
-pwd=`pwd`
-tmp=du2-$$
-trap 'status=$?; cd "$pwd" && rm -rf $tmp && exit $status' 0
-trap '(exit $?); exit' 1 2 13 15
-
-framework_failure=0
-mkdir $tmp || framework_failure=1
-cd $tmp || framework_failure=1
-
-if test $framework_failure = 1; then
- echo 'failure in testing framework'
- (exit 1); exit 1
-fi
-
-mkdir -p $tmp/1 $tmp/2
-
-test -d $tmp || fail=1
-du $tmp/1 $tmp/2 > /dev/null || fail=1
-
-# Make sure `du . $tmp' and `du .. $tmp' work.
-# These would fail prior to fileutils-4.0y.
-du . $tmp > /dev/null || fail=1
-du .. $tmp > /dev/null || fail=1
-
-(exit $fail); exit $fail
diff --git a/tests/du/two-args.sh b/tests/du/two-args.sh
new file mode 100755
index 0000000..15db12b
--- /dev/null
+++ b/tests/du/two-args.sh
@@ -0,0 +1,40 @@
+#!/bin/sh
+# Make sure 'du d/1 d/2' works.
+# That command failed with du from fileutils-4.0q.
+
+# Copyright (C) 2000-2016 Free Software Foundation, Inc.
+
+# This program is free software: you can redistribute it and/or modify
+# it under the terms of the GNU General Public License as published by
+# the Free Software Foundation, either version 3 of the License, or
+# (at your option) any later version.
+
+# This program is distributed in the hope that it will be useful,
+# but WITHOUT ANY WARRANTY; without even the implied warranty of
+# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
+# GNU General Public License for more details.
+
+# You should have received a copy of the GNU General Public License
+# along with this program. If not, see <http://www.gnu.org/licenses/>.
+
+. "${srcdir=.}/tests/init.sh"; path_prepend_ ./src
+print_ver_ du
+
+# Run this test from a sub-directory one level deeper than normal,
+# so that the "du .." below doesn't traverse sibling directories
+# that may be inaccessible due concurrently-running tests.
+mkdir sub || framework_failure_
+cd sub || framework_failure_
+
+t=t
+mkdir -p $t/1 $t/2 || framework_failure_
+
+test -d $t || fail=1
+du $t/1 $t/2 > /dev/null || fail=1
+
+# Make sure 'du . $t' and 'du .. $t' work.
+# These would fail prior to fileutils-4.0y.
+du . $t > /dev/null || fail=1
+du .. $t > /dev/null || fail=1
+
+Exit $fail
diff --git a/tests/envvar-check b/tests/envvar-check
index ff5927f..16d7069 100644
--- a/tests/envvar-check
+++ b/tests/envvar-check
@@ -1,12 +1,11 @@
# -*- sh -*-
# Check environment variables for sane values while testing.
-# Copyright (C) 2000, 2001, 2003, 2004, 2006 Free Software Foundation,
-# Inc.
+# Copyright (C) 2000-2016 Free Software Foundation, Inc.
-# This program is free software; you can redistribute it and/or modify
+# This program is free software: you can redistribute it and/or modify
# it under the terms of the GNU General Public License as published by
-# the Free Software Foundation; either version 2 of the License, or
+# the Free Software Foundation, either version 3 of the License, or
# (at your option) any later version.
# This program is distributed in the hope that it will be useful,
@@ -15,9 +14,7 @@
# GNU General Public License for more details.
# You should have received a copy of the GNU General Public License
-# along with this program; if not, write to the Free Software
-# Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA
-# 02110-1301, USA.
+# along with this program. If not, see <http://www.gnu.org/licenses/>.
if (FOO=FOO; unset FOO) >/dev/null 2>&1; then
as_unset=unset
@@ -25,22 +22,30 @@ else
as_unset=false
fi
-envvar_check_failed=0
+envvar_check_fail=0
vars='
_POSIX2_VERSION
+ _STDBUF_E
+ _STDBUF_I
+ _STDBUF_O
+ BASH_ENV
BLOCKSIZE
BLOCK_SIZE
CDPATH
COLUMNS
DF_BLOCK_SIZE
DU_BLOCK_SIZE
+ ENV
+ LANGUAGE
LS_BLOCK_SIZE
LS_COLORS
+ OMP_NUM_THREADS
POSIXLY_CORRECT
QUOTING_STYLE
SIMPLE_BACKUP_SUFFIX
TABSIZE
TERM
+ COLORTERM
TIME_STYLE
TMPDIR
VERSION_CONTROL
@@ -51,7 +56,7 @@ do
if eval test \"\${$var+set}\" = set; then
echo "$0: the $var environment variable is set --" \
' unset it and rerun this test' >&2
- envvar_check_failed=1
+ envvar_check_fail=1
fi
done
diff --git a/tests/expensive b/tests/expensive
deleted file mode 100644
index cc3f40d..0000000
--- a/tests/expensive
+++ /dev/null
@@ -1,30 +0,0 @@
-# Is a test expensive?
-
-# Copyright (C) 2000, 2004 Free Software Foundation, Inc.
-
-# This program is free software; you can redistribute it and/or modify
-# it under the terms of the GNU General Public License as published by
-# the Free Software Foundation; either version 2 of the License, or
-# (at your option) any later version.
-
-# This program is distributed in the hope that it will be useful,
-# but WITHOUT ANY WARRANTY; without even the implied warranty of
-# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
-# GNU General Public License for more details.
-
-# You should have received a copy of the GNU General Public License
-# along with this program; if not, write to the Free Software
-# Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA
-# 02110-1301, USA.
-
-if test "$RUN_EXPENSIVE_TESTS" != yes; then
- cat <<EOF >&2
-$0: This test is relatively expensive, so it is disabled by default.
-To run it anyway, rerun make check with the RUN_EXPENSIVE_TESTS
-environment variable set to yes. E.g.,
-
- env RUN_EXPENSIVE_TESTS=yes make check
-
-EOF
- (exit 77); exit 77
-fi
diff --git a/tests/expr/Makefile.am b/tests/expr/Makefile.am
deleted file mode 100644
index 7440c74..0000000
--- a/tests/expr/Makefile.am
+++ /dev/null
@@ -1,10 +0,0 @@
-## Process this file with automake to produce Makefile.in -*-Makefile-*-.
-TESTS = basic
-EXTRA_DIST = $(TESTS)
-TESTS_ENVIRONMENT = \
- top_srcdir=$(top_srcdir) \
- srcdir=$(srcdir) \
- PERL="$(PERL)" \
- CU_TEST_NAME=`basename $(abs_srcdir)`,$$tst \
- PATH="$(VG_PATH_PREFIX)`pwd`/../../src$(PATH_SEPARATOR)$$PATH" \
- PROG=expr
diff --git a/tests/expr/Makefile.in b/tests/expr/Makefile.in
deleted file mode 100644
index e853c76..0000000
--- a/tests/expr/Makefile.in
+++ /dev/null
@@ -1,720 +0,0 @@
-# Makefile.in generated by automake 1.10 from Makefile.am.
-# @configure_input@
-
-# Copyright (C) 1994, 1995, 1996, 1997, 1998, 1999, 2000, 2001, 2002,
-# 2003, 2004, 2005, 2006 Free Software Foundation, Inc.
-# This Makefile.in is free software; the Free Software Foundation
-# gives unlimited permission to copy and/or distribute it,
-# with or without modifications, as long as this notice is preserved.
-
-# This program is distributed in the hope that it will be useful,
-# but WITHOUT ANY WARRANTY, to the extent permitted by law; without
-# even the implied warranty of MERCHANTABILITY or FITNESS FOR A
-# PARTICULAR PURPOSE.
-
-@SET_MAKE@
-VPATH = @srcdir@
-pkgdatadir = $(datadir)/@PACKAGE@
-pkglibdir = $(libdir)/@PACKAGE@
-pkgincludedir = $(includedir)/@PACKAGE@
-am__cd = CDPATH="$${ZSH_VERSION+.}$(PATH_SEPARATOR)" && cd
-install_sh_DATA = $(install_sh) -c -m 644
-install_sh_PROGRAM = $(install_sh) -c
-install_sh_SCRIPT = $(install_sh) -c
-INSTALL_HEADER = $(INSTALL_DATA)
-transform = $(program_transform_name)
-NORMAL_INSTALL = :
-PRE_INSTALL = :
-POST_INSTALL = :
-NORMAL_UNINSTALL = :
-PRE_UNINSTALL = :
-POST_UNINSTALL = :
-build_triplet = @build@
-host_triplet = @host@
-subdir = tests/expr
-DIST_COMMON = $(srcdir)/Makefile.am $(srcdir)/Makefile.in
-ACLOCAL_M4 = $(top_srcdir)/aclocal.m4
-am__aclocal_m4_deps = $(top_srcdir)/m4/absolute-header.m4 \
- $(top_srcdir)/m4/acl.m4 $(top_srcdir)/m4/alloca.m4 \
- $(top_srcdir)/m4/allocsa.m4 $(top_srcdir)/m4/argmatch.m4 \
- $(top_srcdir)/m4/arpa_inet_h.m4 $(top_srcdir)/m4/assert.m4 \
- $(top_srcdir)/m4/atexit.m4 $(top_srcdir)/m4/autobuild.m4 \
- $(top_srcdir)/m4/backupfile.m4 $(top_srcdir)/m4/base64.m4 \
- $(top_srcdir)/m4/bison.m4 $(top_srcdir)/m4/boottime.m4 \
- $(top_srcdir)/m4/c-strtod.m4 $(top_srcdir)/m4/calloc.m4 \
- $(top_srcdir)/m4/canon-host.m4 \
- $(top_srcdir)/m4/canonicalize.m4 \
- $(top_srcdir)/m4/chdir-long.m4 $(top_srcdir)/m4/check-decl.m4 \
- $(top_srcdir)/m4/chown.m4 $(top_srcdir)/m4/clock_time.m4 \
- $(top_srcdir)/m4/cloexec.m4 $(top_srcdir)/m4/close-stream.m4 \
- $(top_srcdir)/m4/closeout.m4 $(top_srcdir)/m4/codeset.m4 \
- $(top_srcdir)/m4/config-h.m4 $(top_srcdir)/m4/cycle-check.m4 \
- $(top_srcdir)/m4/d-ino.m4 $(top_srcdir)/m4/d-type.m4 \
- $(top_srcdir)/m4/dirfd.m4 $(top_srcdir)/m4/dirname.m4 \
- $(top_srcdir)/m4/dos.m4 $(top_srcdir)/m4/double-slash-root.m4 \
- $(top_srcdir)/m4/dup2.m4 $(top_srcdir)/m4/eealloc.m4 \
- $(top_srcdir)/m4/eoverflow.m4 $(top_srcdir)/m4/error.m4 \
- $(top_srcdir)/m4/euidaccess-stat.m4 \
- $(top_srcdir)/m4/euidaccess.m4 $(top_srcdir)/m4/exclude.m4 \
- $(top_srcdir)/m4/exitfail.m4 $(top_srcdir)/m4/extensions.m4 \
- $(top_srcdir)/m4/fchdir.m4 $(top_srcdir)/m4/fcntl-safer.m4 \
- $(top_srcdir)/m4/fcntl_h.m4 $(top_srcdir)/m4/fd-reopen.m4 \
- $(top_srcdir)/m4/file-type.m4 $(top_srcdir)/m4/fileblocks.m4 \
- $(top_srcdir)/m4/filemode.m4 $(top_srcdir)/m4/filenamecat.m4 \
- $(top_srcdir)/m4/flexmember.m4 $(top_srcdir)/m4/fnmatch.m4 \
- $(top_srcdir)/m4/fpending.m4 $(top_srcdir)/m4/fprintftime.m4 \
- $(top_srcdir)/m4/free.m4 $(top_srcdir)/m4/fstypename.m4 \
- $(top_srcdir)/m4/fsusage.m4 $(top_srcdir)/m4/ftruncate.m4 \
- $(top_srcdir)/m4/fts.m4 $(top_srcdir)/m4/getaddrinfo.m4 \
- $(top_srcdir)/m4/getcwd-abort-bug.m4 \
- $(top_srcdir)/m4/getcwd-path-max.m4 $(top_srcdir)/m4/getcwd.m4 \
- $(top_srcdir)/m4/getdate.m4 $(top_srcdir)/m4/getdelim.m4 \
- $(top_srcdir)/m4/getgroups.m4 $(top_srcdir)/m4/gethostname.m4 \
- $(top_srcdir)/m4/gethrxtime.m4 $(top_srcdir)/m4/getline.m4 \
- $(top_srcdir)/m4/getloadavg.m4 $(top_srcdir)/m4/getndelim2.m4 \
- $(top_srcdir)/m4/getopt.m4 $(top_srcdir)/m4/getpagesize.m4 \
- $(top_srcdir)/m4/getpass.m4 $(top_srcdir)/m4/gettext.m4 \
- $(top_srcdir)/m4/gettime.m4 $(top_srcdir)/m4/gettimeofday.m4 \
- $(top_srcdir)/m4/getugroups.m4 \
- $(top_srcdir)/m4/getusershell.m4 $(top_srcdir)/m4/glibc21.m4 \
- $(top_srcdir)/m4/gnulib-common.m4 \
- $(top_srcdir)/m4/gnulib-comp.m4 \
- $(top_srcdir)/m4/group-member.m4 \
- $(top_srcdir)/m4/hard-locale.m4 $(top_srcdir)/m4/hash.m4 \
- $(top_srcdir)/m4/host-os.m4 $(top_srcdir)/m4/human.m4 \
- $(top_srcdir)/m4/i-ring.m4 $(top_srcdir)/m4/iconv.m4 \
- $(top_srcdir)/m4/idcache.m4 $(top_srcdir)/m4/inet_ntop.m4 \
- $(top_srcdir)/m4/inline.m4 $(top_srcdir)/m4/intmax_t.m4 \
- $(top_srcdir)/m4/inttostr.m4 $(top_srcdir)/m4/inttypes-pri.m4 \
- $(top_srcdir)/m4/inttypes.m4 $(top_srcdir)/m4/inttypes_h.m4 \
- $(top_srcdir)/m4/isapipe.m4 $(top_srcdir)/m4/jm-macros.m4 \
- $(top_srcdir)/m4/jm-winsz1.m4 $(top_srcdir)/m4/jm-winsz2.m4 \
- $(top_srcdir)/m4/lchmod.m4 $(top_srcdir)/m4/lchown.m4 \
- $(top_srcdir)/m4/lib-check.m4 $(top_srcdir)/m4/lib-ignore.m4 \
- $(top_srcdir)/m4/lib-ld.m4 $(top_srcdir)/m4/lib-link.m4 \
- $(top_srcdir)/m4/lib-prefix.m4 $(top_srcdir)/m4/link-follow.m4 \
- $(top_srcdir)/m4/localcharset.m4 \
- $(top_srcdir)/m4/long-options.m4 \
- $(top_srcdir)/m4/longdouble.m4 $(top_srcdir)/m4/longlong.m4 \
- $(top_srcdir)/m4/ls-mntd-fs.m4 $(top_srcdir)/m4/lstat.m4 \
- $(top_srcdir)/m4/mbchar.m4 $(top_srcdir)/m4/mbiter.m4 \
- $(top_srcdir)/m4/mbrtowc.m4 $(top_srcdir)/m4/mbscasecmp.m4 \
- $(top_srcdir)/m4/mbstate_t.m4 $(top_srcdir)/m4/mbswidth.m4 \
- $(top_srcdir)/m4/md5.m4 $(top_srcdir)/m4/memcasecmp.m4 \
- $(top_srcdir)/m4/memchr.m4 $(top_srcdir)/m4/memcmp.m4 \
- $(top_srcdir)/m4/memcoll.m4 $(top_srcdir)/m4/memcpy.m4 \
- $(top_srcdir)/m4/memmove.m4 $(top_srcdir)/m4/mempcpy.m4 \
- $(top_srcdir)/m4/memrchr.m4 $(top_srcdir)/m4/memset.m4 \
- $(top_srcdir)/m4/memxfrm.m4 $(top_srcdir)/m4/mkancesdirs.m4 \
- $(top_srcdir)/m4/mkdir-p.m4 $(top_srcdir)/m4/mkdir-slash.m4 \
- $(top_srcdir)/m4/mkstemp.m4 $(top_srcdir)/m4/mktime.m4 \
- $(top_srcdir)/m4/modechange.m4 $(top_srcdir)/m4/mountlist.m4 \
- $(top_srcdir)/m4/mpsort.m4 $(top_srcdir)/m4/nanosleep.m4 \
- $(top_srcdir)/m4/netinet_in_h.m4 $(top_srcdir)/m4/nls.m4 \
- $(top_srcdir)/m4/openat.m4 $(top_srcdir)/m4/pathmax.m4 \
- $(top_srcdir)/m4/perl.m4 $(top_srcdir)/m4/physmem.m4 \
- $(top_srcdir)/m4/po.m4 $(top_srcdir)/m4/posixtm.m4 \
- $(top_srcdir)/m4/posixver.m4 $(top_srcdir)/m4/prereq.m4 \
- $(top_srcdir)/m4/progtest.m4 $(top_srcdir)/m4/putenv.m4 \
- $(top_srcdir)/m4/quote.m4 $(top_srcdir)/m4/quotearg.m4 \
- $(top_srcdir)/m4/randint.m4 $(top_srcdir)/m4/randperm.m4 \
- $(top_srcdir)/m4/randread.m4 $(top_srcdir)/m4/readlink.m4 \
- $(top_srcdir)/m4/readtokens.m4 $(top_srcdir)/m4/readutmp.m4 \
- $(top_srcdir)/m4/regex.m4 \
- $(top_srcdir)/m4/rename-dest-slash.m4 \
- $(top_srcdir)/m4/rename.m4 $(top_srcdir)/m4/rmdir-errno.m4 \
- $(top_srcdir)/m4/rmdir.m4 $(top_srcdir)/m4/root-dev-ino.m4 \
- $(top_srcdir)/m4/rpmatch.m4 $(top_srcdir)/m4/safe-read.m4 \
- $(top_srcdir)/m4/safe-write.m4 $(top_srcdir)/m4/same.m4 \
- $(top_srcdir)/m4/save-cwd.m4 $(top_srcdir)/m4/savedir.m4 \
- $(top_srcdir)/m4/savewd.m4 $(top_srcdir)/m4/setenv.m4 \
- $(top_srcdir)/m4/settime.m4 $(top_srcdir)/m4/sha1.m4 \
- $(top_srcdir)/m4/sha256.m4 $(top_srcdir)/m4/sha512.m4 \
- $(top_srcdir)/m4/sig2str.m4 $(top_srcdir)/m4/snprintf.m4 \
- $(top_srcdir)/m4/socklen.m4 $(top_srcdir)/m4/sockpfaf.m4 \
- $(top_srcdir)/m4/ssize_t.m4 $(top_srcdir)/m4/st_dm_mode.m4 \
- $(top_srcdir)/m4/stat-prog.m4 $(top_srcdir)/m4/stat-time.m4 \
- $(top_srcdir)/m4/stdarg.m4 $(top_srcdir)/m4/stdbool.m4 \
- $(top_srcdir)/m4/stdint.m4 $(top_srcdir)/m4/stdint_h.m4 \
- $(top_srcdir)/m4/stdio-safer.m4 $(top_srcdir)/m4/stdio_h.m4 \
- $(top_srcdir)/m4/stdlib-safer.m4 $(top_srcdir)/m4/stdlib_h.m4 \
- $(top_srcdir)/m4/stpcpy.m4 $(top_srcdir)/m4/strcspn.m4 \
- $(top_srcdir)/m4/strdup.m4 $(top_srcdir)/m4/strftime.m4 \
- $(top_srcdir)/m4/string_h.m4 $(top_srcdir)/m4/strndup.m4 \
- $(top_srcdir)/m4/strnlen.m4 $(top_srcdir)/m4/strnumcmp.m4 \
- $(top_srcdir)/m4/strpbrk.m4 $(top_srcdir)/m4/strtod.m4 \
- $(top_srcdir)/m4/strtoimax.m4 $(top_srcdir)/m4/strtol.m4 \
- $(top_srcdir)/m4/strtoll.m4 $(top_srcdir)/m4/strtoul.m4 \
- $(top_srcdir)/m4/strtoull.m4 $(top_srcdir)/m4/strtoumax.m4 \
- $(top_srcdir)/m4/strverscmp.m4 \
- $(top_srcdir)/m4/sys_socket_h.m4 \
- $(top_srcdir)/m4/sys_stat_h.m4 $(top_srcdir)/m4/sys_time_h.m4 \
- $(top_srcdir)/m4/tempname.m4 $(top_srcdir)/m4/time_h.m4 \
- $(top_srcdir)/m4/time_r.m4 $(top_srcdir)/m4/timespec.m4 \
- $(top_srcdir)/m4/tm_gmtoff.m4 $(top_srcdir)/m4/tzset.m4 \
- $(top_srcdir)/m4/unicodeio.m4 $(top_srcdir)/m4/unistd-safer.m4 \
- $(top_srcdir)/m4/unistd_h.m4 $(top_srcdir)/m4/unlink-busy.m4 \
- $(top_srcdir)/m4/unlinkdir.m4 $(top_srcdir)/m4/unlocked-io.m4 \
- $(top_srcdir)/m4/uptime.m4 $(top_srcdir)/m4/userspec.m4 \
- $(top_srcdir)/m4/utimbuf.m4 $(top_srcdir)/m4/utime.m4 \
- $(top_srcdir)/m4/utimecmp.m4 $(top_srcdir)/m4/utimens.m4 \
- $(top_srcdir)/m4/utimes-null.m4 $(top_srcdir)/m4/utimes.m4 \
- $(top_srcdir)/m4/vasnprintf.m4 $(top_srcdir)/m4/vasprintf.m4 \
- $(top_srcdir)/m4/wchar.m4 $(top_srcdir)/m4/wchar_t.m4 \
- $(top_srcdir)/m4/wctype.m4 $(top_srcdir)/m4/wcwidth.m4 \
- $(top_srcdir)/m4/wint_t.m4 $(top_srcdir)/m4/xalloc.m4 \
- $(top_srcdir)/m4/xfts.m4 $(top_srcdir)/m4/xgetcwd.m4 \
- $(top_srcdir)/m4/xnanosleep.m4 $(top_srcdir)/m4/xstrndup.m4 \
- $(top_srcdir)/m4/xstrtod.m4 $(top_srcdir)/m4/xstrtol.m4 \
- $(top_srcdir)/m4/yesno.m4 $(top_srcdir)/configure.ac
-am__configure_deps = $(am__aclocal_m4_deps) $(CONFIGURE_DEPENDENCIES) \
- $(ACLOCAL_M4)
-mkinstalldirs = $(install_sh) -d
-CONFIG_HEADER = $(top_builddir)/lib/config.h
-CONFIG_CLEAN_FILES =
-SOURCES =
-DIST_SOURCES =
-DISTFILES = $(DIST_COMMON) $(DIST_SOURCES) $(TEXINFOS) $(EXTRA_DIST)
-ABSOLUTE_DIRENT_H = @ABSOLUTE_DIRENT_H@
-ABSOLUTE_FCNTL_H = @ABSOLUTE_FCNTL_H@
-ABSOLUTE_INTTYPES_H = @ABSOLUTE_INTTYPES_H@
-ABSOLUTE_NETINET_IN_H = @ABSOLUTE_NETINET_IN_H@
-ABSOLUTE_STDINT_H = @ABSOLUTE_STDINT_H@
-ABSOLUTE_STDIO_H = @ABSOLUTE_STDIO_H@
-ABSOLUTE_STDLIB_H = @ABSOLUTE_STDLIB_H@
-ABSOLUTE_STRING_H = @ABSOLUTE_STRING_H@
-ABSOLUTE_SYS_SOCKET_H = @ABSOLUTE_SYS_SOCKET_H@
-ABSOLUTE_SYS_STAT_H = @ABSOLUTE_SYS_STAT_H@
-ABSOLUTE_SYS_TIME_H = @ABSOLUTE_SYS_TIME_H@
-ABSOLUTE_TIME_H = @ABSOLUTE_TIME_H@
-ABSOLUTE_UNISTD_H = @ABSOLUTE_UNISTD_H@
-ABSOLUTE_WCHAR_H = @ABSOLUTE_WCHAR_H@
-ABSOLUTE_WCTYPE_H = @ABSOLUTE_WCTYPE_H@
-ACLOCAL = @ACLOCAL@
-ALLOCA = @ALLOCA@
-ALLOCA_H = @ALLOCA_H@
-AMTAR = @AMTAR@
-ARPA_INET_H = @ARPA_INET_H@
-AUTOCONF = @AUTOCONF@
-AUTOHEADER = @AUTOHEADER@
-AUTOMAKE = @AUTOMAKE@
-AWK = @AWK@
-BITSIZEOF_PTRDIFF_T = @BITSIZEOF_PTRDIFF_T@
-BITSIZEOF_SIG_ATOMIC_T = @BITSIZEOF_SIG_ATOMIC_T@
-BITSIZEOF_SIZE_T = @BITSIZEOF_SIZE_T@
-BITSIZEOF_WCHAR_T = @BITSIZEOF_WCHAR_T@
-BITSIZEOF_WINT_T = @BITSIZEOF_WINT_T@
-CC = @CC@
-CCDEPMODE = @CCDEPMODE@
-CFLAGS = @CFLAGS@
-CPP = @CPP@
-CPPFLAGS = @CPPFLAGS@
-CYGPATH_W = @CYGPATH_W@
-DEFAULT_POSIX2_VERSION = @DEFAULT_POSIX2_VERSION@
-DEFS = @DEFS@
-DEPDIR = @DEPDIR@
-DF_PROG = @DF_PROG@
-DIRENT_H = @DIRENT_H@
-ECHO_C = @ECHO_C@
-ECHO_N = @ECHO_N@
-ECHO_T = @ECHO_T@
-EGREP = @EGREP@
-EOVERFLOW = @EOVERFLOW@
-EXEEXT = @EXEEXT@
-FCNTL_H = @FCNTL_H@
-FNMATCH_H = @FNMATCH_H@
-GETLOADAVG_LIBS = @GETLOADAVG_LIBS@
-GETOPT_H = @GETOPT_H@
-GLIBC21 = @GLIBC21@
-GMSGFMT = @GMSGFMT@
-GMSGFMT_015 = @GMSGFMT_015@
-GNULIB_CHOWN = @GNULIB_CHOWN@
-GNULIB_DUP2 = @GNULIB_DUP2@
-GNULIB_FCHDIR = @GNULIB_FCHDIR@
-GNULIB_FPRINTF_POSIX = @GNULIB_FPRINTF_POSIX@
-GNULIB_FTRUNCATE = @GNULIB_FTRUNCATE@
-GNULIB_GETCWD = @GNULIB_GETCWD@
-GNULIB_GETLOGIN_R = @GNULIB_GETLOGIN_R@
-GNULIB_GETSUBOPT = @GNULIB_GETSUBOPT@
-GNULIB_IMAXABS = @GNULIB_IMAXABS@
-GNULIB_IMAXDIV = @GNULIB_IMAXDIV@
-GNULIB_MBSCASECMP = @GNULIB_MBSCASECMP@
-GNULIB_MBSCASESTR = @GNULIB_MBSCASESTR@
-GNULIB_MBSCHR = @GNULIB_MBSCHR@
-GNULIB_MBSCSPN = @GNULIB_MBSCSPN@
-GNULIB_MBSLEN = @GNULIB_MBSLEN@
-GNULIB_MBSNCASECMP = @GNULIB_MBSNCASECMP@
-GNULIB_MBSPBRK = @GNULIB_MBSPBRK@
-GNULIB_MBSPCASECMP = @GNULIB_MBSPCASECMP@
-GNULIB_MBSRCHR = @GNULIB_MBSRCHR@
-GNULIB_MBSSEP = @GNULIB_MBSSEP@
-GNULIB_MBSSPN = @GNULIB_MBSSPN@
-GNULIB_MBSSTR = @GNULIB_MBSSTR@
-GNULIB_MBSTOK_R = @GNULIB_MBSTOK_R@
-GNULIB_MEMMEM = @GNULIB_MEMMEM@
-GNULIB_MEMPCPY = @GNULIB_MEMPCPY@
-GNULIB_MEMRCHR = @GNULIB_MEMRCHR@
-GNULIB_MKDTEMP = @GNULIB_MKDTEMP@
-GNULIB_MKSTEMP = @GNULIB_MKSTEMP@
-GNULIB_PRINTF_POSIX = @GNULIB_PRINTF_POSIX@
-GNULIB_READLINK = @GNULIB_READLINK@
-GNULIB_SNPRINTF = @GNULIB_SNPRINTF@
-GNULIB_SPRINTF_POSIX = @GNULIB_SPRINTF_POSIX@
-GNULIB_STPCPY = @GNULIB_STPCPY@
-GNULIB_STPNCPY = @GNULIB_STPNCPY@
-GNULIB_STRCASESTR = @GNULIB_STRCASESTR@
-GNULIB_STRCHRNUL = @GNULIB_STRCHRNUL@
-GNULIB_STRDUP = @GNULIB_STRDUP@
-GNULIB_STRNDUP = @GNULIB_STRNDUP@
-GNULIB_STRNLEN = @GNULIB_STRNLEN@
-GNULIB_STRPBRK = @GNULIB_STRPBRK@
-GNULIB_STRSEP = @GNULIB_STRSEP@
-GNULIB_STRTOIMAX = @GNULIB_STRTOIMAX@
-GNULIB_STRTOK_R = @GNULIB_STRTOK_R@
-GNULIB_STRTOUMAX = @GNULIB_STRTOUMAX@
-GNULIB_VFPRINTF_POSIX = @GNULIB_VFPRINTF_POSIX@
-GNULIB_VPRINTF_POSIX = @GNULIB_VPRINTF_POSIX@
-GNULIB_VSNPRINTF = @GNULIB_VSNPRINTF@
-GNULIB_VSPRINTF_POSIX = @GNULIB_VSPRINTF_POSIX@
-GNU_PACKAGE = @GNU_PACKAGE@
-GREP = @GREP@
-HAVE_DECL_GETLOGIN_R = @HAVE_DECL_GETLOGIN_R@
-HAVE_DECL_IMAXABS = @HAVE_DECL_IMAXABS@
-HAVE_DECL_IMAXDIV = @HAVE_DECL_IMAXDIV@
-HAVE_DECL_MEMMEM = @HAVE_DECL_MEMMEM@
-HAVE_DECL_MEMRCHR = @HAVE_DECL_MEMRCHR@
-HAVE_DECL_SNPRINTF = @HAVE_DECL_SNPRINTF@
-HAVE_DECL_STRDUP = @HAVE_DECL_STRDUP@
-HAVE_DECL_STRNCASECMP = @HAVE_DECL_STRNCASECMP@
-HAVE_DECL_STRNDUP = @HAVE_DECL_STRNDUP@
-HAVE_DECL_STRNLEN = @HAVE_DECL_STRNLEN@
-HAVE_DECL_STRTOIMAX = @HAVE_DECL_STRTOIMAX@
-HAVE_DECL_STRTOK_R = @HAVE_DECL_STRTOK_R@
-HAVE_DECL_STRTOUMAX = @HAVE_DECL_STRTOUMAX@
-HAVE_DECL_VSNPRINTF = @HAVE_DECL_VSNPRINTF@
-HAVE_DUP2 = @HAVE_DUP2@
-HAVE_FTRUNCATE = @HAVE_FTRUNCATE@
-HAVE_GETSUBOPT = @HAVE_GETSUBOPT@
-HAVE_INTTYPES_H = @HAVE_INTTYPES_H@
-HAVE_LONG_LONG_INT = @HAVE_LONG_LONG_INT@
-HAVE_MEMPCPY = @HAVE_MEMPCPY@
-HAVE_MKDTEMP = @HAVE_MKDTEMP@
-HAVE_NETINET_IN_H = @HAVE_NETINET_IN_H@
-HAVE_READLINK = @HAVE_READLINK@
-HAVE_SIGNED_SIG_ATOMIC_T = @HAVE_SIGNED_SIG_ATOMIC_T@
-HAVE_SIGNED_WCHAR_T = @HAVE_SIGNED_WCHAR_T@
-HAVE_SIGNED_WINT_T = @HAVE_SIGNED_WINT_T@
-HAVE_STDINT_H = @HAVE_STDINT_H@
-HAVE_STPCPY = @HAVE_STPCPY@
-HAVE_STPNCPY = @HAVE_STPNCPY@
-HAVE_STRCASECMP = @HAVE_STRCASECMP@
-HAVE_STRCASESTR = @HAVE_STRCASESTR@
-HAVE_STRCHRNUL = @HAVE_STRCHRNUL@
-HAVE_STRNDUP = @HAVE_STRNDUP@
-HAVE_STRPBRK = @HAVE_STRPBRK@
-HAVE_STRSEP = @HAVE_STRSEP@
-HAVE_STRUCT_TIMEVAL = @HAVE_STRUCT_TIMEVAL@
-HAVE_SYS_BITYPES_H = @HAVE_SYS_BITYPES_H@
-HAVE_SYS_INTTYPES_H = @HAVE_SYS_INTTYPES_H@
-HAVE_SYS_SOCKET_H = @HAVE_SYS_SOCKET_H@
-HAVE_SYS_TIME_H = @HAVE_SYS_TIME_H@
-HAVE_SYS_TYPES_H = @HAVE_SYS_TYPES_H@
-HAVE_UNISTD_H = @HAVE_UNISTD_H@
-HAVE_UNSIGNED_LONG_LONG_INT = @HAVE_UNSIGNED_LONG_LONG_INT@
-HAVE_WCTYPE_H = @HAVE_WCTYPE_H@
-HAVE_WINSOCK2_H = @HAVE_WINSOCK2_H@
-HAVE_WINT_T = @HAVE_WINT_T@
-HAVE_WS2TCPIP_H = @HAVE_WS2TCPIP_H@
-HAVE__BOOL = @HAVE__BOOL@
-HELP2MAN = @HELP2MAN@
-INSTALL = @INSTALL@
-INSTALL_DATA = @INSTALL_DATA@
-INSTALL_PROGRAM = @INSTALL_PROGRAM@
-INSTALL_SCRIPT = @INSTALL_SCRIPT@
-INSTALL_STRIP_PROGRAM = @INSTALL_STRIP_PROGRAM@
-INTLLIBS = @INTLLIBS@
-INTL_MACOSX_LIBS = @INTL_MACOSX_LIBS@
-INTTYPES_H = @INTTYPES_H@
-KMEM_GROUP = @KMEM_GROUP@
-LDFLAGS = @LDFLAGS@
-LIBCOREUTILS_LIBDEPS = @LIBCOREUTILS_LIBDEPS@
-LIBCOREUTILS_LTLIBDEPS = @LIBCOREUTILS_LTLIBDEPS@
-LIBICONV = @LIBICONV@
-LIBINTL = @LIBINTL@
-LIBOBJS = @LIBOBJS@
-LIBS = @LIBS@
-LIB_ACL = @LIB_ACL@
-LIB_ACL_TRIVIAL = @LIB_ACL_TRIVIAL@
-LIB_CLOCK_GETTIME = @LIB_CLOCK_GETTIME@
-LIB_CRYPT = @LIB_CRYPT@
-LIB_EACCESS = @LIB_EACCESS@
-LIB_FDATASYNC = @LIB_FDATASYNC@
-LIB_GETHRXTIME = @LIB_GETHRXTIME@
-LIB_NANOSLEEP = @LIB_NANOSLEEP@
-LN_S = @LN_S@
-LTLIBICONV = @LTLIBICONV@
-LTLIBINTL = @LTLIBINTL@
-LTLIBOBJS = @LTLIBOBJS@
-MAKEINFO = @MAKEINFO@
-MAN = @MAN@
-MKDIR_P = @MKDIR_P@
-MSGFMT = @MSGFMT@
-MSGFMT_015 = @MSGFMT_015@
-MSGMERGE = @MSGMERGE@
-NEED_SETGID = @NEED_SETGID@
-NETINET_IN_H = @NETINET_IN_H@
-OBJEXT = @OBJEXT@
-OPTIONAL_BIN_PROGS = @OPTIONAL_BIN_PROGS@
-PACKAGE = @PACKAGE@
-PACKAGE_BUGREPORT = @PACKAGE_BUGREPORT@
-PACKAGE_NAME = @PACKAGE_NAME@
-PACKAGE_STRING = @PACKAGE_STRING@
-PACKAGE_TARNAME = @PACKAGE_TARNAME@
-PACKAGE_VERSION = @PACKAGE_VERSION@
-PATH_SEPARATOR = @PATH_SEPARATOR@
-PERL = @PERL@
-POSUB = @POSUB@
-POW_LIB = @POW_LIB@
-PRIPTR_PREFIX = @PRIPTR_PREFIX@
-PRI_MACROS_BROKEN = @PRI_MACROS_BROKEN@
-PTRDIFF_T_SUFFIX = @PTRDIFF_T_SUFFIX@
-RANLIB = @RANLIB@
-REPLACE_CHOWN = @REPLACE_CHOWN@
-REPLACE_FCHDIR = @REPLACE_FCHDIR@
-REPLACE_FPRINTF = @REPLACE_FPRINTF@
-REPLACE_GETCWD = @REPLACE_GETCWD@
-REPLACE_GETTIMEOFDAY = @REPLACE_GETTIMEOFDAY@
-REPLACE_LOCALTIME_R = @REPLACE_LOCALTIME_R@
-REPLACE_MKSTEMP = @REPLACE_MKSTEMP@
-REPLACE_NANOSLEEP = @REPLACE_NANOSLEEP@
-REPLACE_PRINTF = @REPLACE_PRINTF@
-REPLACE_SNPRINTF = @REPLACE_SNPRINTF@
-REPLACE_SPRINTF = @REPLACE_SPRINTF@
-REPLACE_STRPTIME = @REPLACE_STRPTIME@
-REPLACE_TIMEGM = @REPLACE_TIMEGM@
-REPLACE_VFPRINTF = @REPLACE_VFPRINTF@
-REPLACE_VPRINTF = @REPLACE_VPRINTF@
-REPLACE_VSNPRINTF = @REPLACE_VSNPRINTF@
-REPLACE_VSPRINTF = @REPLACE_VSPRINTF@
-SEQ_LIBM = @SEQ_LIBM@
-SET_MAKE = @SET_MAKE@
-SHELL = @SHELL@
-SIG_ATOMIC_T_SUFFIX = @SIG_ATOMIC_T_SUFFIX@
-SIZE_T_SUFFIX = @SIZE_T_SUFFIX@
-STDBOOL_H = @STDBOOL_H@
-STDINT_H = @STDINT_H@
-STRIP = @STRIP@
-SYS_SOCKET_H = @SYS_SOCKET_H@
-SYS_STAT_H = @SYS_STAT_H@
-SYS_TIME_H = @SYS_TIME_H@
-SYS_TIME_H_DEFINES_STRUCT_TIMESPEC = @SYS_TIME_H_DEFINES_STRUCT_TIMESPEC@
-TIME_H_DEFINES_STRUCT_TIMESPEC = @TIME_H_DEFINES_STRUCT_TIMESPEC@
-U = @U@
-USE_NLS = @USE_NLS@
-VERSION = @VERSION@
-WCHAR_H = @WCHAR_H@
-WCHAR_T_SUFFIX = @WCHAR_T_SUFFIX@
-WCTYPE_H = @WCTYPE_H@
-WINT_T_SUFFIX = @WINT_T_SUFFIX@
-XGETTEXT = @XGETTEXT@
-XGETTEXT_015 = @XGETTEXT_015@
-YACC = @YACC@
-YFLAGS = @YFLAGS@
-abs_builddir = @abs_builddir@
-abs_srcdir = @abs_srcdir@
-abs_top_builddir = @abs_top_builddir@
-abs_top_srcdir = @abs_top_srcdir@
-ac_ct_CC = @ac_ct_CC@
-am__include = @am__include@
-am__leading_dot = @am__leading_dot@
-am__quote = @am__quote@
-am__tar = @am__tar@
-am__untar = @am__untar@
-bindir = @bindir@
-build = @build@
-build_alias = @build_alias@
-build_cpu = @build_cpu@
-build_os = @build_os@
-build_vendor = @build_vendor@
-builddir = @builddir@
-datadir = @datadir@
-datarootdir = @datarootdir@
-docdir = @docdir@
-dvidir = @dvidir@
-exec_prefix = @exec_prefix@
-gl_LIBOBJS = @gl_LIBOBJS@
-gl_LTLIBOBJS = @gl_LTLIBOBJS@
-host = @host@
-host_alias = @host_alias@
-host_cpu = @host_cpu@
-host_os = @host_os@
-host_vendor = @host_vendor@
-htmldir = @htmldir@
-includedir = @includedir@
-infodir = @infodir@
-install_sh = @install_sh@
-libdir = @libdir@
-libexecdir = @libexecdir@
-localedir = @localedir@
-localstatedir = @localstatedir@
-mandir = @mandir@
-mkdir_p = @mkdir_p@
-oldincludedir = @oldincludedir@
-pdfdir = @pdfdir@
-prefix = @prefix@
-program_transform_name = @program_transform_name@
-psdir = @psdir@
-sbindir = @sbindir@
-sharedstatedir = @sharedstatedir@
-srcdir = @srcdir@
-sysconfdir = @sysconfdir@
-target_alias = @target_alias@
-top_builddir = @top_builddir@
-top_srcdir = @top_srcdir@
-TESTS = basic
-EXTRA_DIST = $(TESTS)
-TESTS_ENVIRONMENT = \
- top_srcdir=$(top_srcdir) \
- srcdir=$(srcdir) \
- PERL="$(PERL)" \
- CU_TEST_NAME=`basename $(abs_srcdir)`,$$tst \
- PATH="$(VG_PATH_PREFIX)`pwd`/../../src$(PATH_SEPARATOR)$$PATH" \
- PROG=expr
-
-all: all-am
-
-.SUFFIXES:
-$(srcdir)/Makefile.in: $(srcdir)/Makefile.am $(am__configure_deps)
- @for dep in $?; do \
- case '$(am__configure_deps)' in \
- *$$dep*) \
- cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh \
- && exit 0; \
- exit 1;; \
- esac; \
- done; \
- echo ' cd $(top_srcdir) && $(AUTOMAKE) --gnu tests/expr/Makefile'; \
- cd $(top_srcdir) && \
- $(AUTOMAKE) --gnu tests/expr/Makefile
-.PRECIOUS: Makefile
-Makefile: $(srcdir)/Makefile.in $(top_builddir)/config.status
- @case '$?' in \
- *config.status*) \
- cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh;; \
- *) \
- echo ' cd $(top_builddir) && $(SHELL) ./config.status $(subdir)/$@ $(am__depfiles_maybe)'; \
- cd $(top_builddir) && $(SHELL) ./config.status $(subdir)/$@ $(am__depfiles_maybe);; \
- esac;
-
-$(top_builddir)/config.status: $(top_srcdir)/configure $(CONFIG_STATUS_DEPENDENCIES)
- cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh
-
-$(top_srcdir)/configure: $(am__configure_deps)
- cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh
-$(ACLOCAL_M4): $(am__aclocal_m4_deps)
- cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh
-tags: TAGS
-TAGS:
-
-ctags: CTAGS
-CTAGS:
-
-
-check-TESTS: $(TESTS)
- @failed=0; all=0; xfail=0; xpass=0; skip=0; ws='[ ]'; \
- srcdir=$(srcdir); export srcdir; \
- list=' $(TESTS) '; \
- if test -n "$$list"; then \
- for tst in $$list; do \
- if test -f ./$$tst; then dir=./; \
- elif test -f $$tst; then dir=; \
- else dir="$(srcdir)/"; fi; \
- if $(TESTS_ENVIRONMENT) $${dir}$$tst; then \
- all=`expr $$all + 1`; \
- case " $(XFAIL_TESTS) " in \
- *$$ws$$tst$$ws*) \
- xpass=`expr $$xpass + 1`; \
- failed=`expr $$failed + 1`; \
- echo "XPASS: $$tst"; \
- ;; \
- *) \
- echo "PASS: $$tst"; \
- ;; \
- esac; \
- elif test $$? -ne 77; then \
- all=`expr $$all + 1`; \
- case " $(XFAIL_TESTS) " in \
- *$$ws$$tst$$ws*) \
- xfail=`expr $$xfail + 1`; \
- echo "XFAIL: $$tst"; \
- ;; \
- *) \
- failed=`expr $$failed + 1`; \
- echo "FAIL: $$tst"; \
- ;; \
- esac; \
- else \
- skip=`expr $$skip + 1`; \
- echo "SKIP: $$tst"; \
- fi; \
- done; \
- if test "$$failed" -eq 0; then \
- if test "$$xfail" -eq 0; then \
- banner="All $$all tests passed"; \
- else \
- banner="All $$all tests behaved as expected ($$xfail expected failures)"; \
- fi; \
- else \
- if test "$$xpass" -eq 0; then \
- banner="$$failed of $$all tests failed"; \
- else \
- banner="$$failed of $$all tests did not behave as expected ($$xpass unexpected passes)"; \
- fi; \
- fi; \
- dashes="$$banner"; \
- skipped=""; \
- if test "$$skip" -ne 0; then \
- skipped="($$skip tests were not run)"; \
- test `echo "$$skipped" | wc -c` -le `echo "$$banner" | wc -c` || \
- dashes="$$skipped"; \
- fi; \
- report=""; \
- if test "$$failed" -ne 0 && test -n "$(PACKAGE_BUGREPORT)"; then \
- report="Please report to $(PACKAGE_BUGREPORT)"; \
- test `echo "$$report" | wc -c` -le `echo "$$banner" | wc -c` || \
- dashes="$$report"; \
- fi; \
- dashes=`echo "$$dashes" | sed s/./=/g`; \
- echo "$$dashes"; \
- echo "$$banner"; \
- test -z "$$skipped" || echo "$$skipped"; \
- test -z "$$report" || echo "$$report"; \
- echo "$$dashes"; \
- test "$$failed" -eq 0; \
- else :; fi
-
-distdir: $(DISTFILES)
- @srcdirstrip=`echo "$(srcdir)" | sed 's/[].[^$$\\*]/\\\\&/g'`; \
- topsrcdirstrip=`echo "$(top_srcdir)" | sed 's/[].[^$$\\*]/\\\\&/g'`; \
- list='$(DISTFILES)'; \
- dist_files=`for file in $$list; do echo $$file; done | \
- sed -e "s|^$$srcdirstrip/||;t" \
- -e "s|^$$topsrcdirstrip/|$(top_builddir)/|;t"`; \
- case $$dist_files in \
- */*) $(MKDIR_P) `echo "$$dist_files" | \
- sed '/\//!d;s|^|$(distdir)/|;s,/[^/]*$$,,' | \
- sort -u` ;; \
- esac; \
- for file in $$dist_files; do \
- if test -f $$file || test -d $$file; then d=.; else d=$(srcdir); fi; \
- if test -d $$d/$$file; then \
- dir=`echo "/$$file" | sed -e 's,/[^/]*$$,,'`; \
- if test -d $(srcdir)/$$file && test $$d != $(srcdir); then \
- cp -pR $(srcdir)/$$file $(distdir)$$dir || exit 1; \
- fi; \
- cp -pR $$d/$$file $(distdir)$$dir || exit 1; \
- else \
- test -f $(distdir)/$$file \
- || cp -p $$d/$$file $(distdir)/$$file \
- || exit 1; \
- fi; \
- done
-check-am: all-am
- $(MAKE) $(AM_MAKEFLAGS) check-TESTS
-check: check-am
-all-am: Makefile
-installdirs:
-install: install-am
-install-exec: install-exec-am
-install-data: install-data-am
-uninstall: uninstall-am
-
-install-am: all-am
- @$(MAKE) $(AM_MAKEFLAGS) install-exec-am install-data-am
-
-installcheck: installcheck-am
-install-strip:
- $(MAKE) $(AM_MAKEFLAGS) INSTALL_PROGRAM="$(INSTALL_STRIP_PROGRAM)" \
- install_sh_PROGRAM="$(INSTALL_STRIP_PROGRAM)" INSTALL_STRIP_FLAG=-s \
- `test -z '$(STRIP)' || \
- echo "INSTALL_PROGRAM_ENV=STRIPPROG='$(STRIP)'"` install
-mostlyclean-generic:
-
-clean-generic:
-
-distclean-generic:
- -test -z "$(CONFIG_CLEAN_FILES)" || rm -f $(CONFIG_CLEAN_FILES)
-
-maintainer-clean-generic:
- @echo "This command is intended for maintainers to use"
- @echo "it deletes files that may require special tools to rebuild."
-clean: clean-am
-
-clean-am: clean-generic mostlyclean-am
-
-distclean: distclean-am
- -rm -f Makefile
-distclean-am: clean-am distclean-generic
-
-dvi: dvi-am
-
-dvi-am:
-
-html: html-am
-
-info: info-am
-
-info-am:
-
-install-data-am:
-
-install-dvi: install-dvi-am
-
-install-exec-am:
-
-install-html: install-html-am
-
-install-info: install-info-am
-
-install-man:
-
-install-pdf: install-pdf-am
-
-install-ps: install-ps-am
-
-installcheck-am:
-
-maintainer-clean: maintainer-clean-am
- -rm -f Makefile
-maintainer-clean-am: distclean-am maintainer-clean-generic
-
-mostlyclean: mostlyclean-am
-
-mostlyclean-am: mostlyclean-generic
-
-pdf: pdf-am
-
-pdf-am:
-
-ps: ps-am
-
-ps-am:
-
-uninstall-am:
-
-.MAKE: install-am install-strip
-
-.PHONY: all all-am check check-TESTS check-am clean clean-generic \
- distclean distclean-generic distdir dvi dvi-am html html-am \
- info info-am install install-am install-data install-data-am \
- install-dvi install-dvi-am install-exec install-exec-am \
- install-html install-html-am install-info install-info-am \
- install-man install-pdf install-pdf-am install-ps \
- install-ps-am install-strip installcheck installcheck-am \
- installdirs maintainer-clean maintainer-clean-generic \
- mostlyclean mostlyclean-generic pdf pdf-am ps ps-am uninstall \
- uninstall-am
-
-# Tell versions [3.59,3.63) of GNU make to not export all variables.
-# Otherwise a system limit (for SysV at least) may be exceeded.
-.NOEXPORT:
diff --git a/tests/expr/basic b/tests/expr/basic
deleted file mode 100755
index ee264d9..0000000
--- a/tests/expr/basic
+++ /dev/null
@@ -1,189 +0,0 @@
-#!/bin/sh
-# -*-perl-*-
-# Basic tests for "expr".
-
-# Copyright (C) 2001, 2003, 2004, 2005, 2006 Free Software Foundation,
-# Inc.
-
-# This program is free software; you can redistribute it and/or modify
-# it under the terms of the GNU General Public License as published by
-# the Free Software Foundation; either version 2 of the License, or
-# (at your option) any later version.
-
-# This program is distributed in the hope that it will be useful,
-# but WITHOUT ANY WARRANTY; without even the implied warranty of
-# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
-# GNU General Public License for more details.
-
-# You should have received a copy of the GNU General Public License
-# along with this program; if not, write to the Free Software
-# Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA
-# 02110-1301, USA.
-
-: ${PERL=perl}
-: ${srcdir=.}
-
-$PERL -e 1 > /dev/null 2>&1 || {
- echo 1>&2 "$0: configure didn't find a usable version of Perl," \
- "so can't run this test"
- exit 77
-}
-
-d=$srcdir/..
-exec $PERL -w -I$d -MCoreutils -- - << \EOF
-require 5.003;
-use strict;
-
-(my $program_name = $0) =~ s|.*/||;
-
-# Turn off localisation of executable's ouput.
-@ENV{qw(LANGUAGE LANG LC_ALL)} = ('C') x 3;
-
-my $prog = $ENV{PROG} || die "$0: \$PROG not specified in environment\n";
-
-my @Tests =
- (
- ['a', '5 + 6', {OUT => '11'}],
- ['b', '5 - 6', {OUT => '-1'}],
- ['c', '5 \* 6', {OUT => '30'}],
- ['d', '100 / 6', {OUT => '16'}],
- ['e', '100 % 6', {OUT => '4'}],
- ['f', '3 + -2', {OUT => '1'}],
- ['g', '-2 + -2', {OUT => '-4'}],
-
- ['paren1', '\( 100 % 6 \)', {OUT => '4'}],
- ['paren2', '\( 100 % 6 \) - 8', {OUT => '-4'}],
- ['paren3', '9 / \( 100 % 6 \) - 8', {OUT => '-6'}],
- ['paren4', '9 / \( \( 100 % 6 \) - 8 \)', {OUT => '-2'}],
- ['paren5', '9 + \( 100 % 6 \)', {OUT => '13'}],
-
- # Before 2.0.12, this would output `1'.
- ['0bang', '00 \< 0!', {OUT => '0'}, {EXIT => 1}],
-
- # In 5.1.3 and earlier, these would exit with status 0.
- ['00', '00', {OUT => '00'}, {EXIT => 1}],
- ['minus0', '-0', {OUT => '-0'}, {EXIT => 1}],
-
- # In 5.1.3 and earlier, these would report errors.
- ['andand', '0 \& 1 / 0', {OUT => '0'}, {EXIT => 1}],
- ['oror', '1 \| 1 / 0', {OUT => '1'}, {EXIT => 0}],
-
- # In 5.1.3 and earlier, this would output the empty string.
- ['orempty', '"" \| ""', {OUT => '0'}, {EXIT => 1}],
-
- # This evoked a syntax error diagnostic before 2.0.12.
- ['minus2', '-- 2 + 2', {OUT => '4'}],
-
- # This erroneously succeeded and output `3' before 2.0.12.
- ['fail-a', '3 + -', {ERR => "$prog: non-numeric argument\n"},
- {EXIT => 2}],
-
- # This erroneously succeeded before 5.3.1.
- ['bigcmp', '-- -2417851639229258349412352 \< 2417851639229258349412352',
- {OUT => '1'}, {EXIT => 0}],
-
- # In 5.94 and earlier, anchors incorrectly matched newlines.
- ['anchor', "'a\nb' : 'a\$'", {OUT => '0'}, {EXIT => 1}],
-
- # These tests are taken from grep/tests/bre.tests.
- ['bre1', '"abc" : "a\\(b\\)c"', {OUT => 'b'}],
- ['bre2', '"a(" : "a("', {OUT => '2'}],
- ['bre3', '_ : "a\\("',
- {ERR => "$prog: Unmatched ( or \\(\n"}, {EXIT => 2}],
- ['bre4', '_ : "a\\(b"',
- {ERR => "$prog: Unmatched ( or \\(\n"}, {EXIT => 2}],
- ['bre5', '"a(b" : "a(b"', {OUT => '3'}],
- ['bre6', '"a)" : "a)"', {OUT => '2'}],
- ['bre7', '_ : "a\\)"',
- {ERR => "$prog: Unmatched ) or \\)\n"}, {EXIT => 2}],
- ['bre8', '_ : "\\)"',
- {ERR => "$prog: Unmatched ) or \\)\n"}, {EXIT => 2}],
- ['bre9', '"ab" : "a\\(\\)b"', {OUT => ''}, {EXIT => 1}],
- ['bre10', '"a^b" : "a^b"', {OUT => '3'}],
- ['bre11', '"a\$b" : "a\$b"', {OUT => '3'}],
- ['bre12', '"" : "\\($\\)\\(^\\)"', {OUT => ''}, {EXIT => 1}],
- ['bre13', '"b" : "a*\\(^b\$\\)c*"', {OUT => 'b'}],
- ['bre14', '"X|" : "X\\(|\\)" : "(" "X|" : "X\\(|\\)" ")"', {OUT => '1'}],
- ['bre15', '"X*" : "X\\(*\\)" : "(" "X*" : "X\\(*\\)" ")"', {OUT => '1'}],
- ['bre16', '"abc" : "\\(\\)"', {OUT => ''}, {EXIT => 1}],
- ['bre17', '"{1}a" : "\\(\\{1\\}a\\)"', {OUT => '{1}a'}],
- ['bre18', '"X*" : "X\\(*\\)" : "^*"', {OUT => '1'}],
- ['bre19', '"{1}" : "^\\{1\\}"', {OUT => '3'}],
- ['bre20', '"{" : "{"', {OUT => '1'}],
- ['bre21', '"abbcbd" : "a\\(b*\\)c\\1d"', {OUT => ''}, {EXIT => 1}],
- ['bre22', '"abbcbbbd" : "a\\(b*\\)c\\1d"', {OUT => ''}, {EXIT => 1}],
- ['bre23', '"abc" : "\\(.\\)\\1"', {OUT => ''}, {EXIT => 1}],
- ['bre24', '"abbccd" : "a\\(\\([bc]\\)\\2\\)*d"', {OUT => 'cc'}],
- ['bre25', '"abbcbd" : "a\\(\\([bc]\\)\\2\\)*d"',
- {OUT => ''}, {EXIT => 1}],
- ['bre26', '"abbbd" : "a\\(\\(b\\)*\\2\\)*d"', {OUT => 'bbb'}],
- ['bre27', '"aabcd" : "\\(a\\)\\1bcd"', {OUT => 'a'}],
- ['bre28', '"aabcd" : "\\(a\\)\\1bc*d"', {OUT => 'a'}],
- ['bre29', '"aabd" : "\\(a\\)\\1bc*d"', {OUT => 'a'}],
- ['bre30', '"aabcccd" : "\\(a\\)\\1bc*d"', {OUT => 'a'}],
- ['bre31', '"aabcccd" : "\\(a\\)\\1bc*[ce]d"', {OUT => 'a'}],
- ['bre32', '"aabcccd" : "\\(a\\)\\1b\\(c\\)*cd\$"', {OUT => 'a'}],
- ['bre33', '"a*b" : "a\\(*\\)b"', {OUT => '*'}],
- ['bre34', '"ab" : "a\\(**\\)b"', {OUT => ''}, {EXIT => 1}],
- ['bre35', '"ab" : "a\\(***\\)b"', {OUT => ''}, {EXIT => 1}],
- ['bre36', '"*a" : "*a"', {OUT => '2'}],
- ['bre37', '"a" : "**a"', {OUT => '1'}],
- ['bre38', '"a" : "***a"', {OUT => '1'}],
- ['bre39', '"ab" : "a\\{1\\}b"', {OUT => '2'}],
- ['bre40', '"ab" : "a\\{1,\\}b"', {OUT => '2'}],
- ['bre41', '"aab" : "a\\{1,2\\}b"', {OUT => '3'}],
- ['bre42', '_ : "a\\{1"',
- {ERR => "$prog: Unmatched \\{\n"}, {EXIT => 2}],
- ['bre43', '_ : "a\\{1a"',
- {ERR => "$prog: Unmatched \\{\n"}, {EXIT => 2}],
- ['bre44', '_ : "a\\{1a\\}"',
- {ERR => "$prog: Invalid content of \\{\\}\n"}, {EXIT => 2}],
- ['bre45', '"a" : "a\\{,2\\}"', {OUT => '1'}],
- ['bre46', '"a" : "a\\{,\\}"', {OUT => '1'}],
- ['bre47', '_ : "a\\{1,x\\}"',
- {ERR => "$prog: Invalid content of \\{\\}\n"}, {EXIT => 2}],
- ['bre48', '_ : "a\\{1,x"',
- {ERR => "$prog: Unmatched \\{\n"}, {EXIT => 2}],
- ['bre49', '_ : "a\\{32768\\}"',
- {ERR => "$prog: Invalid content of \\{\\}\n"}, {EXIT => 2}],
- ['bre50', '_ : "a\\{1,0\\}"',
- {ERR => "$prog: Invalid content of \\{\\}\n"}, {EXIT => 2}],
- ['bre51', '"acabc" : ".*ab\\{0,0\\}c"', {OUT => '2'}],
- ['bre52', '"abcac" : "ab\\{0,1\\}c"', {OUT => '3'}],
- ['bre53', '"abbcac" : "ab\\{0,3\\}c"', {OUT => '4'}],
- ['bre54', '"abcac" : ".*ab\\{1,1\\}c"', {OUT => '3'}],
- ['bre55', '"abcac" : ".*ab\\{1,3\\}c"', {OUT => '3'}],
- ['bre56', '"abbcabc" : ".*ab\{2,2\}c"', {OUT => '4'}],
- ['bre57', '"abbcabc" : ".*ab\{2,4\}c"', {OUT => '4'}],
- ['bre58', '"aa" : "a\\{1\\}\\{1\\}"', {OUT => '1'}],
- ['bre59', '"aa" : "a*\\{1\\}"', {OUT => '2'}],
- ['bre60', '"aa" : "a\\{1\\}*"', {OUT => '2'}],
- ['bre61', '"acd" : "a\\(b\\)?c\\1d"', {OUT => ''}, {EXIT => 1}],
- ['bre62', '-- "-5" : "-\\{0,1\\}[0-9]*\$"', {OUT => '2'}],
-
- ['fail-b', '9 9', {ERR => "$prog: syntax error\n"},
- {EXIT => 2}],
- ['fail-c', {ERR => "$prog: missing operand\n"
- . "Try `$prog --help' for more information.\n"},
- {EXIT => 2}],
- );
-
-# Append a newline to end of each expected `OUT' string.
-my $t;
-foreach $t (@Tests)
- {
- my $arg1 = $t->[1];
- my $e;
- foreach $e (@$t)
- {
- $e->{OUT} .= "\n"
- if ref $e eq 'HASH' and exists $e->{OUT};
- }
- }
-
-my $save_temps = $ENV{SAVE_TEMPS};
-my $verbose = $ENV{VERBOSE};
-
-my $fail = run_tests ($program_name, $prog, \@Tests, $save_temps, $verbose);
-exit $fail;
-EOF
diff --git a/tests/factor/Makefile.am b/tests/factor/Makefile.am
deleted file mode 100644
index dedc143..0000000
--- a/tests/factor/Makefile.am
+++ /dev/null
@@ -1,10 +0,0 @@
-## Process this file with automake to produce Makefile.in -*-Makefile-*-.
-TESTS = basic
-EXTRA_DIST = $(TESTS)
-TESTS_ENVIRONMENT = \
- top_srcdir=$(top_srcdir) \
- srcdir=$(srcdir) \
- PERL="$(PERL)" \
- CU_TEST_NAME=`basename $(abs_srcdir)`,$$tst \
- PATH="$(VG_PATH_PREFIX)`pwd`/../../src$(PATH_SEPARATOR)$$PATH" \
- PROG=factor
diff --git a/tests/factor/Makefile.in b/tests/factor/Makefile.in
deleted file mode 100644
index dead356..0000000
--- a/tests/factor/Makefile.in
+++ /dev/null
@@ -1,720 +0,0 @@
-# Makefile.in generated by automake 1.10 from Makefile.am.
-# @configure_input@
-
-# Copyright (C) 1994, 1995, 1996, 1997, 1998, 1999, 2000, 2001, 2002,
-# 2003, 2004, 2005, 2006 Free Software Foundation, Inc.
-# This Makefile.in is free software; the Free Software Foundation
-# gives unlimited permission to copy and/or distribute it,
-# with or without modifications, as long as this notice is preserved.
-
-# This program is distributed in the hope that it will be useful,
-# but WITHOUT ANY WARRANTY, to the extent permitted by law; without
-# even the implied warranty of MERCHANTABILITY or FITNESS FOR A
-# PARTICULAR PURPOSE.
-
-@SET_MAKE@
-VPATH = @srcdir@
-pkgdatadir = $(datadir)/@PACKAGE@
-pkglibdir = $(libdir)/@PACKAGE@
-pkgincludedir = $(includedir)/@PACKAGE@
-am__cd = CDPATH="$${ZSH_VERSION+.}$(PATH_SEPARATOR)" && cd
-install_sh_DATA = $(install_sh) -c -m 644
-install_sh_PROGRAM = $(install_sh) -c
-install_sh_SCRIPT = $(install_sh) -c
-INSTALL_HEADER = $(INSTALL_DATA)
-transform = $(program_transform_name)
-NORMAL_INSTALL = :
-PRE_INSTALL = :
-POST_INSTALL = :
-NORMAL_UNINSTALL = :
-PRE_UNINSTALL = :
-POST_UNINSTALL = :
-build_triplet = @build@
-host_triplet = @host@
-subdir = tests/factor
-DIST_COMMON = $(srcdir)/Makefile.am $(srcdir)/Makefile.in
-ACLOCAL_M4 = $(top_srcdir)/aclocal.m4
-am__aclocal_m4_deps = $(top_srcdir)/m4/absolute-header.m4 \
- $(top_srcdir)/m4/acl.m4 $(top_srcdir)/m4/alloca.m4 \
- $(top_srcdir)/m4/allocsa.m4 $(top_srcdir)/m4/argmatch.m4 \
- $(top_srcdir)/m4/arpa_inet_h.m4 $(top_srcdir)/m4/assert.m4 \
- $(top_srcdir)/m4/atexit.m4 $(top_srcdir)/m4/autobuild.m4 \
- $(top_srcdir)/m4/backupfile.m4 $(top_srcdir)/m4/base64.m4 \
- $(top_srcdir)/m4/bison.m4 $(top_srcdir)/m4/boottime.m4 \
- $(top_srcdir)/m4/c-strtod.m4 $(top_srcdir)/m4/calloc.m4 \
- $(top_srcdir)/m4/canon-host.m4 \
- $(top_srcdir)/m4/canonicalize.m4 \
- $(top_srcdir)/m4/chdir-long.m4 $(top_srcdir)/m4/check-decl.m4 \
- $(top_srcdir)/m4/chown.m4 $(top_srcdir)/m4/clock_time.m4 \
- $(top_srcdir)/m4/cloexec.m4 $(top_srcdir)/m4/close-stream.m4 \
- $(top_srcdir)/m4/closeout.m4 $(top_srcdir)/m4/codeset.m4 \
- $(top_srcdir)/m4/config-h.m4 $(top_srcdir)/m4/cycle-check.m4 \
- $(top_srcdir)/m4/d-ino.m4 $(top_srcdir)/m4/d-type.m4 \
- $(top_srcdir)/m4/dirfd.m4 $(top_srcdir)/m4/dirname.m4 \
- $(top_srcdir)/m4/dos.m4 $(top_srcdir)/m4/double-slash-root.m4 \
- $(top_srcdir)/m4/dup2.m4 $(top_srcdir)/m4/eealloc.m4 \
- $(top_srcdir)/m4/eoverflow.m4 $(top_srcdir)/m4/error.m4 \
- $(top_srcdir)/m4/euidaccess-stat.m4 \
- $(top_srcdir)/m4/euidaccess.m4 $(top_srcdir)/m4/exclude.m4 \
- $(top_srcdir)/m4/exitfail.m4 $(top_srcdir)/m4/extensions.m4 \
- $(top_srcdir)/m4/fchdir.m4 $(top_srcdir)/m4/fcntl-safer.m4 \
- $(top_srcdir)/m4/fcntl_h.m4 $(top_srcdir)/m4/fd-reopen.m4 \
- $(top_srcdir)/m4/file-type.m4 $(top_srcdir)/m4/fileblocks.m4 \
- $(top_srcdir)/m4/filemode.m4 $(top_srcdir)/m4/filenamecat.m4 \
- $(top_srcdir)/m4/flexmember.m4 $(top_srcdir)/m4/fnmatch.m4 \
- $(top_srcdir)/m4/fpending.m4 $(top_srcdir)/m4/fprintftime.m4 \
- $(top_srcdir)/m4/free.m4 $(top_srcdir)/m4/fstypename.m4 \
- $(top_srcdir)/m4/fsusage.m4 $(top_srcdir)/m4/ftruncate.m4 \
- $(top_srcdir)/m4/fts.m4 $(top_srcdir)/m4/getaddrinfo.m4 \
- $(top_srcdir)/m4/getcwd-abort-bug.m4 \
- $(top_srcdir)/m4/getcwd-path-max.m4 $(top_srcdir)/m4/getcwd.m4 \
- $(top_srcdir)/m4/getdate.m4 $(top_srcdir)/m4/getdelim.m4 \
- $(top_srcdir)/m4/getgroups.m4 $(top_srcdir)/m4/gethostname.m4 \
- $(top_srcdir)/m4/gethrxtime.m4 $(top_srcdir)/m4/getline.m4 \
- $(top_srcdir)/m4/getloadavg.m4 $(top_srcdir)/m4/getndelim2.m4 \
- $(top_srcdir)/m4/getopt.m4 $(top_srcdir)/m4/getpagesize.m4 \
- $(top_srcdir)/m4/getpass.m4 $(top_srcdir)/m4/gettext.m4 \
- $(top_srcdir)/m4/gettime.m4 $(top_srcdir)/m4/gettimeofday.m4 \
- $(top_srcdir)/m4/getugroups.m4 \
- $(top_srcdir)/m4/getusershell.m4 $(top_srcdir)/m4/glibc21.m4 \
- $(top_srcdir)/m4/gnulib-common.m4 \
- $(top_srcdir)/m4/gnulib-comp.m4 \
- $(top_srcdir)/m4/group-member.m4 \
- $(top_srcdir)/m4/hard-locale.m4 $(top_srcdir)/m4/hash.m4 \
- $(top_srcdir)/m4/host-os.m4 $(top_srcdir)/m4/human.m4 \
- $(top_srcdir)/m4/i-ring.m4 $(top_srcdir)/m4/iconv.m4 \
- $(top_srcdir)/m4/idcache.m4 $(top_srcdir)/m4/inet_ntop.m4 \
- $(top_srcdir)/m4/inline.m4 $(top_srcdir)/m4/intmax_t.m4 \
- $(top_srcdir)/m4/inttostr.m4 $(top_srcdir)/m4/inttypes-pri.m4 \
- $(top_srcdir)/m4/inttypes.m4 $(top_srcdir)/m4/inttypes_h.m4 \
- $(top_srcdir)/m4/isapipe.m4 $(top_srcdir)/m4/jm-macros.m4 \
- $(top_srcdir)/m4/jm-winsz1.m4 $(top_srcdir)/m4/jm-winsz2.m4 \
- $(top_srcdir)/m4/lchmod.m4 $(top_srcdir)/m4/lchown.m4 \
- $(top_srcdir)/m4/lib-check.m4 $(top_srcdir)/m4/lib-ignore.m4 \
- $(top_srcdir)/m4/lib-ld.m4 $(top_srcdir)/m4/lib-link.m4 \
- $(top_srcdir)/m4/lib-prefix.m4 $(top_srcdir)/m4/link-follow.m4 \
- $(top_srcdir)/m4/localcharset.m4 \
- $(top_srcdir)/m4/long-options.m4 \
- $(top_srcdir)/m4/longdouble.m4 $(top_srcdir)/m4/longlong.m4 \
- $(top_srcdir)/m4/ls-mntd-fs.m4 $(top_srcdir)/m4/lstat.m4 \
- $(top_srcdir)/m4/mbchar.m4 $(top_srcdir)/m4/mbiter.m4 \
- $(top_srcdir)/m4/mbrtowc.m4 $(top_srcdir)/m4/mbscasecmp.m4 \
- $(top_srcdir)/m4/mbstate_t.m4 $(top_srcdir)/m4/mbswidth.m4 \
- $(top_srcdir)/m4/md5.m4 $(top_srcdir)/m4/memcasecmp.m4 \
- $(top_srcdir)/m4/memchr.m4 $(top_srcdir)/m4/memcmp.m4 \
- $(top_srcdir)/m4/memcoll.m4 $(top_srcdir)/m4/memcpy.m4 \
- $(top_srcdir)/m4/memmove.m4 $(top_srcdir)/m4/mempcpy.m4 \
- $(top_srcdir)/m4/memrchr.m4 $(top_srcdir)/m4/memset.m4 \
- $(top_srcdir)/m4/memxfrm.m4 $(top_srcdir)/m4/mkancesdirs.m4 \
- $(top_srcdir)/m4/mkdir-p.m4 $(top_srcdir)/m4/mkdir-slash.m4 \
- $(top_srcdir)/m4/mkstemp.m4 $(top_srcdir)/m4/mktime.m4 \
- $(top_srcdir)/m4/modechange.m4 $(top_srcdir)/m4/mountlist.m4 \
- $(top_srcdir)/m4/mpsort.m4 $(top_srcdir)/m4/nanosleep.m4 \
- $(top_srcdir)/m4/netinet_in_h.m4 $(top_srcdir)/m4/nls.m4 \
- $(top_srcdir)/m4/openat.m4 $(top_srcdir)/m4/pathmax.m4 \
- $(top_srcdir)/m4/perl.m4 $(top_srcdir)/m4/physmem.m4 \
- $(top_srcdir)/m4/po.m4 $(top_srcdir)/m4/posixtm.m4 \
- $(top_srcdir)/m4/posixver.m4 $(top_srcdir)/m4/prereq.m4 \
- $(top_srcdir)/m4/progtest.m4 $(top_srcdir)/m4/putenv.m4 \
- $(top_srcdir)/m4/quote.m4 $(top_srcdir)/m4/quotearg.m4 \
- $(top_srcdir)/m4/randint.m4 $(top_srcdir)/m4/randperm.m4 \
- $(top_srcdir)/m4/randread.m4 $(top_srcdir)/m4/readlink.m4 \
- $(top_srcdir)/m4/readtokens.m4 $(top_srcdir)/m4/readutmp.m4 \
- $(top_srcdir)/m4/regex.m4 \
- $(top_srcdir)/m4/rename-dest-slash.m4 \
- $(top_srcdir)/m4/rename.m4 $(top_srcdir)/m4/rmdir-errno.m4 \
- $(top_srcdir)/m4/rmdir.m4 $(top_srcdir)/m4/root-dev-ino.m4 \
- $(top_srcdir)/m4/rpmatch.m4 $(top_srcdir)/m4/safe-read.m4 \
- $(top_srcdir)/m4/safe-write.m4 $(top_srcdir)/m4/same.m4 \
- $(top_srcdir)/m4/save-cwd.m4 $(top_srcdir)/m4/savedir.m4 \
- $(top_srcdir)/m4/savewd.m4 $(top_srcdir)/m4/setenv.m4 \
- $(top_srcdir)/m4/settime.m4 $(top_srcdir)/m4/sha1.m4 \
- $(top_srcdir)/m4/sha256.m4 $(top_srcdir)/m4/sha512.m4 \
- $(top_srcdir)/m4/sig2str.m4 $(top_srcdir)/m4/snprintf.m4 \
- $(top_srcdir)/m4/socklen.m4 $(top_srcdir)/m4/sockpfaf.m4 \
- $(top_srcdir)/m4/ssize_t.m4 $(top_srcdir)/m4/st_dm_mode.m4 \
- $(top_srcdir)/m4/stat-prog.m4 $(top_srcdir)/m4/stat-time.m4 \
- $(top_srcdir)/m4/stdarg.m4 $(top_srcdir)/m4/stdbool.m4 \
- $(top_srcdir)/m4/stdint.m4 $(top_srcdir)/m4/stdint_h.m4 \
- $(top_srcdir)/m4/stdio-safer.m4 $(top_srcdir)/m4/stdio_h.m4 \
- $(top_srcdir)/m4/stdlib-safer.m4 $(top_srcdir)/m4/stdlib_h.m4 \
- $(top_srcdir)/m4/stpcpy.m4 $(top_srcdir)/m4/strcspn.m4 \
- $(top_srcdir)/m4/strdup.m4 $(top_srcdir)/m4/strftime.m4 \
- $(top_srcdir)/m4/string_h.m4 $(top_srcdir)/m4/strndup.m4 \
- $(top_srcdir)/m4/strnlen.m4 $(top_srcdir)/m4/strnumcmp.m4 \
- $(top_srcdir)/m4/strpbrk.m4 $(top_srcdir)/m4/strtod.m4 \
- $(top_srcdir)/m4/strtoimax.m4 $(top_srcdir)/m4/strtol.m4 \
- $(top_srcdir)/m4/strtoll.m4 $(top_srcdir)/m4/strtoul.m4 \
- $(top_srcdir)/m4/strtoull.m4 $(top_srcdir)/m4/strtoumax.m4 \
- $(top_srcdir)/m4/strverscmp.m4 \
- $(top_srcdir)/m4/sys_socket_h.m4 \
- $(top_srcdir)/m4/sys_stat_h.m4 $(top_srcdir)/m4/sys_time_h.m4 \
- $(top_srcdir)/m4/tempname.m4 $(top_srcdir)/m4/time_h.m4 \
- $(top_srcdir)/m4/time_r.m4 $(top_srcdir)/m4/timespec.m4 \
- $(top_srcdir)/m4/tm_gmtoff.m4 $(top_srcdir)/m4/tzset.m4 \
- $(top_srcdir)/m4/unicodeio.m4 $(top_srcdir)/m4/unistd-safer.m4 \
- $(top_srcdir)/m4/unistd_h.m4 $(top_srcdir)/m4/unlink-busy.m4 \
- $(top_srcdir)/m4/unlinkdir.m4 $(top_srcdir)/m4/unlocked-io.m4 \
- $(top_srcdir)/m4/uptime.m4 $(top_srcdir)/m4/userspec.m4 \
- $(top_srcdir)/m4/utimbuf.m4 $(top_srcdir)/m4/utime.m4 \
- $(top_srcdir)/m4/utimecmp.m4 $(top_srcdir)/m4/utimens.m4 \
- $(top_srcdir)/m4/utimes-null.m4 $(top_srcdir)/m4/utimes.m4 \
- $(top_srcdir)/m4/vasnprintf.m4 $(top_srcdir)/m4/vasprintf.m4 \
- $(top_srcdir)/m4/wchar.m4 $(top_srcdir)/m4/wchar_t.m4 \
- $(top_srcdir)/m4/wctype.m4 $(top_srcdir)/m4/wcwidth.m4 \
- $(top_srcdir)/m4/wint_t.m4 $(top_srcdir)/m4/xalloc.m4 \
- $(top_srcdir)/m4/xfts.m4 $(top_srcdir)/m4/xgetcwd.m4 \
- $(top_srcdir)/m4/xnanosleep.m4 $(top_srcdir)/m4/xstrndup.m4 \
- $(top_srcdir)/m4/xstrtod.m4 $(top_srcdir)/m4/xstrtol.m4 \
- $(top_srcdir)/m4/yesno.m4 $(top_srcdir)/configure.ac
-am__configure_deps = $(am__aclocal_m4_deps) $(CONFIGURE_DEPENDENCIES) \
- $(ACLOCAL_M4)
-mkinstalldirs = $(install_sh) -d
-CONFIG_HEADER = $(top_builddir)/lib/config.h
-CONFIG_CLEAN_FILES =
-SOURCES =
-DIST_SOURCES =
-DISTFILES = $(DIST_COMMON) $(DIST_SOURCES) $(TEXINFOS) $(EXTRA_DIST)
-ABSOLUTE_DIRENT_H = @ABSOLUTE_DIRENT_H@
-ABSOLUTE_FCNTL_H = @ABSOLUTE_FCNTL_H@
-ABSOLUTE_INTTYPES_H = @ABSOLUTE_INTTYPES_H@
-ABSOLUTE_NETINET_IN_H = @ABSOLUTE_NETINET_IN_H@
-ABSOLUTE_STDINT_H = @ABSOLUTE_STDINT_H@
-ABSOLUTE_STDIO_H = @ABSOLUTE_STDIO_H@
-ABSOLUTE_STDLIB_H = @ABSOLUTE_STDLIB_H@
-ABSOLUTE_STRING_H = @ABSOLUTE_STRING_H@
-ABSOLUTE_SYS_SOCKET_H = @ABSOLUTE_SYS_SOCKET_H@
-ABSOLUTE_SYS_STAT_H = @ABSOLUTE_SYS_STAT_H@
-ABSOLUTE_SYS_TIME_H = @ABSOLUTE_SYS_TIME_H@
-ABSOLUTE_TIME_H = @ABSOLUTE_TIME_H@
-ABSOLUTE_UNISTD_H = @ABSOLUTE_UNISTD_H@
-ABSOLUTE_WCHAR_H = @ABSOLUTE_WCHAR_H@
-ABSOLUTE_WCTYPE_H = @ABSOLUTE_WCTYPE_H@
-ACLOCAL = @ACLOCAL@
-ALLOCA = @ALLOCA@
-ALLOCA_H = @ALLOCA_H@
-AMTAR = @AMTAR@
-ARPA_INET_H = @ARPA_INET_H@
-AUTOCONF = @AUTOCONF@
-AUTOHEADER = @AUTOHEADER@
-AUTOMAKE = @AUTOMAKE@
-AWK = @AWK@
-BITSIZEOF_PTRDIFF_T = @BITSIZEOF_PTRDIFF_T@
-BITSIZEOF_SIG_ATOMIC_T = @BITSIZEOF_SIG_ATOMIC_T@
-BITSIZEOF_SIZE_T = @BITSIZEOF_SIZE_T@
-BITSIZEOF_WCHAR_T = @BITSIZEOF_WCHAR_T@
-BITSIZEOF_WINT_T = @BITSIZEOF_WINT_T@
-CC = @CC@
-CCDEPMODE = @CCDEPMODE@
-CFLAGS = @CFLAGS@
-CPP = @CPP@
-CPPFLAGS = @CPPFLAGS@
-CYGPATH_W = @CYGPATH_W@
-DEFAULT_POSIX2_VERSION = @DEFAULT_POSIX2_VERSION@
-DEFS = @DEFS@
-DEPDIR = @DEPDIR@
-DF_PROG = @DF_PROG@
-DIRENT_H = @DIRENT_H@
-ECHO_C = @ECHO_C@
-ECHO_N = @ECHO_N@
-ECHO_T = @ECHO_T@
-EGREP = @EGREP@
-EOVERFLOW = @EOVERFLOW@
-EXEEXT = @EXEEXT@
-FCNTL_H = @FCNTL_H@
-FNMATCH_H = @FNMATCH_H@
-GETLOADAVG_LIBS = @GETLOADAVG_LIBS@
-GETOPT_H = @GETOPT_H@
-GLIBC21 = @GLIBC21@
-GMSGFMT = @GMSGFMT@
-GMSGFMT_015 = @GMSGFMT_015@
-GNULIB_CHOWN = @GNULIB_CHOWN@
-GNULIB_DUP2 = @GNULIB_DUP2@
-GNULIB_FCHDIR = @GNULIB_FCHDIR@
-GNULIB_FPRINTF_POSIX = @GNULIB_FPRINTF_POSIX@
-GNULIB_FTRUNCATE = @GNULIB_FTRUNCATE@
-GNULIB_GETCWD = @GNULIB_GETCWD@
-GNULIB_GETLOGIN_R = @GNULIB_GETLOGIN_R@
-GNULIB_GETSUBOPT = @GNULIB_GETSUBOPT@
-GNULIB_IMAXABS = @GNULIB_IMAXABS@
-GNULIB_IMAXDIV = @GNULIB_IMAXDIV@
-GNULIB_MBSCASECMP = @GNULIB_MBSCASECMP@
-GNULIB_MBSCASESTR = @GNULIB_MBSCASESTR@
-GNULIB_MBSCHR = @GNULIB_MBSCHR@
-GNULIB_MBSCSPN = @GNULIB_MBSCSPN@
-GNULIB_MBSLEN = @GNULIB_MBSLEN@
-GNULIB_MBSNCASECMP = @GNULIB_MBSNCASECMP@
-GNULIB_MBSPBRK = @GNULIB_MBSPBRK@
-GNULIB_MBSPCASECMP = @GNULIB_MBSPCASECMP@
-GNULIB_MBSRCHR = @GNULIB_MBSRCHR@
-GNULIB_MBSSEP = @GNULIB_MBSSEP@
-GNULIB_MBSSPN = @GNULIB_MBSSPN@
-GNULIB_MBSSTR = @GNULIB_MBSSTR@
-GNULIB_MBSTOK_R = @GNULIB_MBSTOK_R@
-GNULIB_MEMMEM = @GNULIB_MEMMEM@
-GNULIB_MEMPCPY = @GNULIB_MEMPCPY@
-GNULIB_MEMRCHR = @GNULIB_MEMRCHR@
-GNULIB_MKDTEMP = @GNULIB_MKDTEMP@
-GNULIB_MKSTEMP = @GNULIB_MKSTEMP@
-GNULIB_PRINTF_POSIX = @GNULIB_PRINTF_POSIX@
-GNULIB_READLINK = @GNULIB_READLINK@
-GNULIB_SNPRINTF = @GNULIB_SNPRINTF@
-GNULIB_SPRINTF_POSIX = @GNULIB_SPRINTF_POSIX@
-GNULIB_STPCPY = @GNULIB_STPCPY@
-GNULIB_STPNCPY = @GNULIB_STPNCPY@
-GNULIB_STRCASESTR = @GNULIB_STRCASESTR@
-GNULIB_STRCHRNUL = @GNULIB_STRCHRNUL@
-GNULIB_STRDUP = @GNULIB_STRDUP@
-GNULIB_STRNDUP = @GNULIB_STRNDUP@
-GNULIB_STRNLEN = @GNULIB_STRNLEN@
-GNULIB_STRPBRK = @GNULIB_STRPBRK@
-GNULIB_STRSEP = @GNULIB_STRSEP@
-GNULIB_STRTOIMAX = @GNULIB_STRTOIMAX@
-GNULIB_STRTOK_R = @GNULIB_STRTOK_R@
-GNULIB_STRTOUMAX = @GNULIB_STRTOUMAX@
-GNULIB_VFPRINTF_POSIX = @GNULIB_VFPRINTF_POSIX@
-GNULIB_VPRINTF_POSIX = @GNULIB_VPRINTF_POSIX@
-GNULIB_VSNPRINTF = @GNULIB_VSNPRINTF@
-GNULIB_VSPRINTF_POSIX = @GNULIB_VSPRINTF_POSIX@
-GNU_PACKAGE = @GNU_PACKAGE@
-GREP = @GREP@
-HAVE_DECL_GETLOGIN_R = @HAVE_DECL_GETLOGIN_R@
-HAVE_DECL_IMAXABS = @HAVE_DECL_IMAXABS@
-HAVE_DECL_IMAXDIV = @HAVE_DECL_IMAXDIV@
-HAVE_DECL_MEMMEM = @HAVE_DECL_MEMMEM@
-HAVE_DECL_MEMRCHR = @HAVE_DECL_MEMRCHR@
-HAVE_DECL_SNPRINTF = @HAVE_DECL_SNPRINTF@
-HAVE_DECL_STRDUP = @HAVE_DECL_STRDUP@
-HAVE_DECL_STRNCASECMP = @HAVE_DECL_STRNCASECMP@
-HAVE_DECL_STRNDUP = @HAVE_DECL_STRNDUP@
-HAVE_DECL_STRNLEN = @HAVE_DECL_STRNLEN@
-HAVE_DECL_STRTOIMAX = @HAVE_DECL_STRTOIMAX@
-HAVE_DECL_STRTOK_R = @HAVE_DECL_STRTOK_R@
-HAVE_DECL_STRTOUMAX = @HAVE_DECL_STRTOUMAX@
-HAVE_DECL_VSNPRINTF = @HAVE_DECL_VSNPRINTF@
-HAVE_DUP2 = @HAVE_DUP2@
-HAVE_FTRUNCATE = @HAVE_FTRUNCATE@
-HAVE_GETSUBOPT = @HAVE_GETSUBOPT@
-HAVE_INTTYPES_H = @HAVE_INTTYPES_H@
-HAVE_LONG_LONG_INT = @HAVE_LONG_LONG_INT@
-HAVE_MEMPCPY = @HAVE_MEMPCPY@
-HAVE_MKDTEMP = @HAVE_MKDTEMP@
-HAVE_NETINET_IN_H = @HAVE_NETINET_IN_H@
-HAVE_READLINK = @HAVE_READLINK@
-HAVE_SIGNED_SIG_ATOMIC_T = @HAVE_SIGNED_SIG_ATOMIC_T@
-HAVE_SIGNED_WCHAR_T = @HAVE_SIGNED_WCHAR_T@
-HAVE_SIGNED_WINT_T = @HAVE_SIGNED_WINT_T@
-HAVE_STDINT_H = @HAVE_STDINT_H@
-HAVE_STPCPY = @HAVE_STPCPY@
-HAVE_STPNCPY = @HAVE_STPNCPY@
-HAVE_STRCASECMP = @HAVE_STRCASECMP@
-HAVE_STRCASESTR = @HAVE_STRCASESTR@
-HAVE_STRCHRNUL = @HAVE_STRCHRNUL@
-HAVE_STRNDUP = @HAVE_STRNDUP@
-HAVE_STRPBRK = @HAVE_STRPBRK@
-HAVE_STRSEP = @HAVE_STRSEP@
-HAVE_STRUCT_TIMEVAL = @HAVE_STRUCT_TIMEVAL@
-HAVE_SYS_BITYPES_H = @HAVE_SYS_BITYPES_H@
-HAVE_SYS_INTTYPES_H = @HAVE_SYS_INTTYPES_H@
-HAVE_SYS_SOCKET_H = @HAVE_SYS_SOCKET_H@
-HAVE_SYS_TIME_H = @HAVE_SYS_TIME_H@
-HAVE_SYS_TYPES_H = @HAVE_SYS_TYPES_H@
-HAVE_UNISTD_H = @HAVE_UNISTD_H@
-HAVE_UNSIGNED_LONG_LONG_INT = @HAVE_UNSIGNED_LONG_LONG_INT@
-HAVE_WCTYPE_H = @HAVE_WCTYPE_H@
-HAVE_WINSOCK2_H = @HAVE_WINSOCK2_H@
-HAVE_WINT_T = @HAVE_WINT_T@
-HAVE_WS2TCPIP_H = @HAVE_WS2TCPIP_H@
-HAVE__BOOL = @HAVE__BOOL@
-HELP2MAN = @HELP2MAN@
-INSTALL = @INSTALL@
-INSTALL_DATA = @INSTALL_DATA@
-INSTALL_PROGRAM = @INSTALL_PROGRAM@
-INSTALL_SCRIPT = @INSTALL_SCRIPT@
-INSTALL_STRIP_PROGRAM = @INSTALL_STRIP_PROGRAM@
-INTLLIBS = @INTLLIBS@
-INTL_MACOSX_LIBS = @INTL_MACOSX_LIBS@
-INTTYPES_H = @INTTYPES_H@
-KMEM_GROUP = @KMEM_GROUP@
-LDFLAGS = @LDFLAGS@
-LIBCOREUTILS_LIBDEPS = @LIBCOREUTILS_LIBDEPS@
-LIBCOREUTILS_LTLIBDEPS = @LIBCOREUTILS_LTLIBDEPS@
-LIBICONV = @LIBICONV@
-LIBINTL = @LIBINTL@
-LIBOBJS = @LIBOBJS@
-LIBS = @LIBS@
-LIB_ACL = @LIB_ACL@
-LIB_ACL_TRIVIAL = @LIB_ACL_TRIVIAL@
-LIB_CLOCK_GETTIME = @LIB_CLOCK_GETTIME@
-LIB_CRYPT = @LIB_CRYPT@
-LIB_EACCESS = @LIB_EACCESS@
-LIB_FDATASYNC = @LIB_FDATASYNC@
-LIB_GETHRXTIME = @LIB_GETHRXTIME@
-LIB_NANOSLEEP = @LIB_NANOSLEEP@
-LN_S = @LN_S@
-LTLIBICONV = @LTLIBICONV@
-LTLIBINTL = @LTLIBINTL@
-LTLIBOBJS = @LTLIBOBJS@
-MAKEINFO = @MAKEINFO@
-MAN = @MAN@
-MKDIR_P = @MKDIR_P@
-MSGFMT = @MSGFMT@
-MSGFMT_015 = @MSGFMT_015@
-MSGMERGE = @MSGMERGE@
-NEED_SETGID = @NEED_SETGID@
-NETINET_IN_H = @NETINET_IN_H@
-OBJEXT = @OBJEXT@
-OPTIONAL_BIN_PROGS = @OPTIONAL_BIN_PROGS@
-PACKAGE = @PACKAGE@
-PACKAGE_BUGREPORT = @PACKAGE_BUGREPORT@
-PACKAGE_NAME = @PACKAGE_NAME@
-PACKAGE_STRING = @PACKAGE_STRING@
-PACKAGE_TARNAME = @PACKAGE_TARNAME@
-PACKAGE_VERSION = @PACKAGE_VERSION@
-PATH_SEPARATOR = @PATH_SEPARATOR@
-PERL = @PERL@
-POSUB = @POSUB@
-POW_LIB = @POW_LIB@
-PRIPTR_PREFIX = @PRIPTR_PREFIX@
-PRI_MACROS_BROKEN = @PRI_MACROS_BROKEN@
-PTRDIFF_T_SUFFIX = @PTRDIFF_T_SUFFIX@
-RANLIB = @RANLIB@
-REPLACE_CHOWN = @REPLACE_CHOWN@
-REPLACE_FCHDIR = @REPLACE_FCHDIR@
-REPLACE_FPRINTF = @REPLACE_FPRINTF@
-REPLACE_GETCWD = @REPLACE_GETCWD@
-REPLACE_GETTIMEOFDAY = @REPLACE_GETTIMEOFDAY@
-REPLACE_LOCALTIME_R = @REPLACE_LOCALTIME_R@
-REPLACE_MKSTEMP = @REPLACE_MKSTEMP@
-REPLACE_NANOSLEEP = @REPLACE_NANOSLEEP@
-REPLACE_PRINTF = @REPLACE_PRINTF@
-REPLACE_SNPRINTF = @REPLACE_SNPRINTF@
-REPLACE_SPRINTF = @REPLACE_SPRINTF@
-REPLACE_STRPTIME = @REPLACE_STRPTIME@
-REPLACE_TIMEGM = @REPLACE_TIMEGM@
-REPLACE_VFPRINTF = @REPLACE_VFPRINTF@
-REPLACE_VPRINTF = @REPLACE_VPRINTF@
-REPLACE_VSNPRINTF = @REPLACE_VSNPRINTF@
-REPLACE_VSPRINTF = @REPLACE_VSPRINTF@
-SEQ_LIBM = @SEQ_LIBM@
-SET_MAKE = @SET_MAKE@
-SHELL = @SHELL@
-SIG_ATOMIC_T_SUFFIX = @SIG_ATOMIC_T_SUFFIX@
-SIZE_T_SUFFIX = @SIZE_T_SUFFIX@
-STDBOOL_H = @STDBOOL_H@
-STDINT_H = @STDINT_H@
-STRIP = @STRIP@
-SYS_SOCKET_H = @SYS_SOCKET_H@
-SYS_STAT_H = @SYS_STAT_H@
-SYS_TIME_H = @SYS_TIME_H@
-SYS_TIME_H_DEFINES_STRUCT_TIMESPEC = @SYS_TIME_H_DEFINES_STRUCT_TIMESPEC@
-TIME_H_DEFINES_STRUCT_TIMESPEC = @TIME_H_DEFINES_STRUCT_TIMESPEC@
-U = @U@
-USE_NLS = @USE_NLS@
-VERSION = @VERSION@
-WCHAR_H = @WCHAR_H@
-WCHAR_T_SUFFIX = @WCHAR_T_SUFFIX@
-WCTYPE_H = @WCTYPE_H@
-WINT_T_SUFFIX = @WINT_T_SUFFIX@
-XGETTEXT = @XGETTEXT@
-XGETTEXT_015 = @XGETTEXT_015@
-YACC = @YACC@
-YFLAGS = @YFLAGS@
-abs_builddir = @abs_builddir@
-abs_srcdir = @abs_srcdir@
-abs_top_builddir = @abs_top_builddir@
-abs_top_srcdir = @abs_top_srcdir@
-ac_ct_CC = @ac_ct_CC@
-am__include = @am__include@
-am__leading_dot = @am__leading_dot@
-am__quote = @am__quote@
-am__tar = @am__tar@
-am__untar = @am__untar@
-bindir = @bindir@
-build = @build@
-build_alias = @build_alias@
-build_cpu = @build_cpu@
-build_os = @build_os@
-build_vendor = @build_vendor@
-builddir = @builddir@
-datadir = @datadir@
-datarootdir = @datarootdir@
-docdir = @docdir@
-dvidir = @dvidir@
-exec_prefix = @exec_prefix@
-gl_LIBOBJS = @gl_LIBOBJS@
-gl_LTLIBOBJS = @gl_LTLIBOBJS@
-host = @host@
-host_alias = @host_alias@
-host_cpu = @host_cpu@
-host_os = @host_os@
-host_vendor = @host_vendor@
-htmldir = @htmldir@
-includedir = @includedir@
-infodir = @infodir@
-install_sh = @install_sh@
-libdir = @libdir@
-libexecdir = @libexecdir@
-localedir = @localedir@
-localstatedir = @localstatedir@
-mandir = @mandir@
-mkdir_p = @mkdir_p@
-oldincludedir = @oldincludedir@
-pdfdir = @pdfdir@
-prefix = @prefix@
-program_transform_name = @program_transform_name@
-psdir = @psdir@
-sbindir = @sbindir@
-sharedstatedir = @sharedstatedir@
-srcdir = @srcdir@
-sysconfdir = @sysconfdir@
-target_alias = @target_alias@
-top_builddir = @top_builddir@
-top_srcdir = @top_srcdir@
-TESTS = basic
-EXTRA_DIST = $(TESTS)
-TESTS_ENVIRONMENT = \
- top_srcdir=$(top_srcdir) \
- srcdir=$(srcdir) \
- PERL="$(PERL)" \
- CU_TEST_NAME=`basename $(abs_srcdir)`,$$tst \
- PATH="$(VG_PATH_PREFIX)`pwd`/../../src$(PATH_SEPARATOR)$$PATH" \
- PROG=factor
-
-all: all-am
-
-.SUFFIXES:
-$(srcdir)/Makefile.in: $(srcdir)/Makefile.am $(am__configure_deps)
- @for dep in $?; do \
- case '$(am__configure_deps)' in \
- *$$dep*) \
- cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh \
- && exit 0; \
- exit 1;; \
- esac; \
- done; \
- echo ' cd $(top_srcdir) && $(AUTOMAKE) --gnu tests/factor/Makefile'; \
- cd $(top_srcdir) && \
- $(AUTOMAKE) --gnu tests/factor/Makefile
-.PRECIOUS: Makefile
-Makefile: $(srcdir)/Makefile.in $(top_builddir)/config.status
- @case '$?' in \
- *config.status*) \
- cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh;; \
- *) \
- echo ' cd $(top_builddir) && $(SHELL) ./config.status $(subdir)/$@ $(am__depfiles_maybe)'; \
- cd $(top_builddir) && $(SHELL) ./config.status $(subdir)/$@ $(am__depfiles_maybe);; \
- esac;
-
-$(top_builddir)/config.status: $(top_srcdir)/configure $(CONFIG_STATUS_DEPENDENCIES)
- cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh
-
-$(top_srcdir)/configure: $(am__configure_deps)
- cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh
-$(ACLOCAL_M4): $(am__aclocal_m4_deps)
- cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh
-tags: TAGS
-TAGS:
-
-ctags: CTAGS
-CTAGS:
-
-
-check-TESTS: $(TESTS)
- @failed=0; all=0; xfail=0; xpass=0; skip=0; ws='[ ]'; \
- srcdir=$(srcdir); export srcdir; \
- list=' $(TESTS) '; \
- if test -n "$$list"; then \
- for tst in $$list; do \
- if test -f ./$$tst; then dir=./; \
- elif test -f $$tst; then dir=; \
- else dir="$(srcdir)/"; fi; \
- if $(TESTS_ENVIRONMENT) $${dir}$$tst; then \
- all=`expr $$all + 1`; \
- case " $(XFAIL_TESTS) " in \
- *$$ws$$tst$$ws*) \
- xpass=`expr $$xpass + 1`; \
- failed=`expr $$failed + 1`; \
- echo "XPASS: $$tst"; \
- ;; \
- *) \
- echo "PASS: $$tst"; \
- ;; \
- esac; \
- elif test $$? -ne 77; then \
- all=`expr $$all + 1`; \
- case " $(XFAIL_TESTS) " in \
- *$$ws$$tst$$ws*) \
- xfail=`expr $$xfail + 1`; \
- echo "XFAIL: $$tst"; \
- ;; \
- *) \
- failed=`expr $$failed + 1`; \
- echo "FAIL: $$tst"; \
- ;; \
- esac; \
- else \
- skip=`expr $$skip + 1`; \
- echo "SKIP: $$tst"; \
- fi; \
- done; \
- if test "$$failed" -eq 0; then \
- if test "$$xfail" -eq 0; then \
- banner="All $$all tests passed"; \
- else \
- banner="All $$all tests behaved as expected ($$xfail expected failures)"; \
- fi; \
- else \
- if test "$$xpass" -eq 0; then \
- banner="$$failed of $$all tests failed"; \
- else \
- banner="$$failed of $$all tests did not behave as expected ($$xpass unexpected passes)"; \
- fi; \
- fi; \
- dashes="$$banner"; \
- skipped=""; \
- if test "$$skip" -ne 0; then \
- skipped="($$skip tests were not run)"; \
- test `echo "$$skipped" | wc -c` -le `echo "$$banner" | wc -c` || \
- dashes="$$skipped"; \
- fi; \
- report=""; \
- if test "$$failed" -ne 0 && test -n "$(PACKAGE_BUGREPORT)"; then \
- report="Please report to $(PACKAGE_BUGREPORT)"; \
- test `echo "$$report" | wc -c` -le `echo "$$banner" | wc -c` || \
- dashes="$$report"; \
- fi; \
- dashes=`echo "$$dashes" | sed s/./=/g`; \
- echo "$$dashes"; \
- echo "$$banner"; \
- test -z "$$skipped" || echo "$$skipped"; \
- test -z "$$report" || echo "$$report"; \
- echo "$$dashes"; \
- test "$$failed" -eq 0; \
- else :; fi
-
-distdir: $(DISTFILES)
- @srcdirstrip=`echo "$(srcdir)" | sed 's/[].[^$$\\*]/\\\\&/g'`; \
- topsrcdirstrip=`echo "$(top_srcdir)" | sed 's/[].[^$$\\*]/\\\\&/g'`; \
- list='$(DISTFILES)'; \
- dist_files=`for file in $$list; do echo $$file; done | \
- sed -e "s|^$$srcdirstrip/||;t" \
- -e "s|^$$topsrcdirstrip/|$(top_builddir)/|;t"`; \
- case $$dist_files in \
- */*) $(MKDIR_P) `echo "$$dist_files" | \
- sed '/\//!d;s|^|$(distdir)/|;s,/[^/]*$$,,' | \
- sort -u` ;; \
- esac; \
- for file in $$dist_files; do \
- if test -f $$file || test -d $$file; then d=.; else d=$(srcdir); fi; \
- if test -d $$d/$$file; then \
- dir=`echo "/$$file" | sed -e 's,/[^/]*$$,,'`; \
- if test -d $(srcdir)/$$file && test $$d != $(srcdir); then \
- cp -pR $(srcdir)/$$file $(distdir)$$dir || exit 1; \
- fi; \
- cp -pR $$d/$$file $(distdir)$$dir || exit 1; \
- else \
- test -f $(distdir)/$$file \
- || cp -p $$d/$$file $(distdir)/$$file \
- || exit 1; \
- fi; \
- done
-check-am: all-am
- $(MAKE) $(AM_MAKEFLAGS) check-TESTS
-check: check-am
-all-am: Makefile
-installdirs:
-install: install-am
-install-exec: install-exec-am
-install-data: install-data-am
-uninstall: uninstall-am
-
-install-am: all-am
- @$(MAKE) $(AM_MAKEFLAGS) install-exec-am install-data-am
-
-installcheck: installcheck-am
-install-strip:
- $(MAKE) $(AM_MAKEFLAGS) INSTALL_PROGRAM="$(INSTALL_STRIP_PROGRAM)" \
- install_sh_PROGRAM="$(INSTALL_STRIP_PROGRAM)" INSTALL_STRIP_FLAG=-s \
- `test -z '$(STRIP)' || \
- echo "INSTALL_PROGRAM_ENV=STRIPPROG='$(STRIP)'"` install
-mostlyclean-generic:
-
-clean-generic:
-
-distclean-generic:
- -test -z "$(CONFIG_CLEAN_FILES)" || rm -f $(CONFIG_CLEAN_FILES)
-
-maintainer-clean-generic:
- @echo "This command is intended for maintainers to use"
- @echo "it deletes files that may require special tools to rebuild."
-clean: clean-am
-
-clean-am: clean-generic mostlyclean-am
-
-distclean: distclean-am
- -rm -f Makefile
-distclean-am: clean-am distclean-generic
-
-dvi: dvi-am
-
-dvi-am:
-
-html: html-am
-
-info: info-am
-
-info-am:
-
-install-data-am:
-
-install-dvi: install-dvi-am
-
-install-exec-am:
-
-install-html: install-html-am
-
-install-info: install-info-am
-
-install-man:
-
-install-pdf: install-pdf-am
-
-install-ps: install-ps-am
-
-installcheck-am:
-
-maintainer-clean: maintainer-clean-am
- -rm -f Makefile
-maintainer-clean-am: distclean-am maintainer-clean-generic
-
-mostlyclean: mostlyclean-am
-
-mostlyclean-am: mostlyclean-generic
-
-pdf: pdf-am
-
-pdf-am:
-
-ps: ps-am
-
-ps-am:
-
-uninstall-am:
-
-.MAKE: install-am install-strip
-
-.PHONY: all all-am check check-TESTS check-am clean clean-generic \
- distclean distclean-generic distdir dvi dvi-am html html-am \
- info info-am install install-am install-data install-data-am \
- install-dvi install-dvi-am install-exec install-exec-am \
- install-html install-html-am install-info install-info-am \
- install-man install-pdf install-pdf-am install-ps \
- install-ps-am install-strip installcheck installcheck-am \
- installdirs maintainer-clean maintainer-clean-generic \
- mostlyclean mostlyclean-generic pdf pdf-am ps ps-am uninstall \
- uninstall-am
-
-# Tell versions [3.59,3.63) of GNU make to not export all variables.
-# Otherwise a system limit (for SysV at least) may be exceeded.
-.NOEXPORT:
diff --git a/tests/factor/basic b/tests/factor/basic
deleted file mode 100755
index 8b91cce..0000000
--- a/tests/factor/basic
+++ /dev/null
@@ -1,114 +0,0 @@
-#!/bin/sh
-# -*-perl-*-
-# Basic tests for "factor".
-
-# Copyright (C) 1998, 1999, 2000, 2003, 2004, 2005 Free Software
-# Foundation, Inc.
-
-# This program is free software; you can redistribute it and/or modify
-# it under the terms of the GNU General Public License as published by
-# the Free Software Foundation; either version 2 of the License, or
-# (at your option) any later version.
-
-# This program is distributed in the hope that it will be useful,
-# but WITHOUT ANY WARRANTY; without even the implied warranty of
-# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
-# GNU General Public License for more details.
-
-# You should have received a copy of the GNU General Public License
-# along with this program; if not, write to the Free Software
-# Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA
-# 02110-1301, USA.
-
-: ${PERL=perl}
-: ${srcdir=.}
-
-$PERL -e 1 > /dev/null 2>&1 || {
- echo 1>&2 "$0: configure didn't find a usable version of Perl," \
- "so can't run this test"
- exit 77
-}
-
-d=$srcdir/..
-exec $PERL -w -I$d -MCoreutils -- - << \EOF
-require 5.003;
-use strict;
-
-(my $program_name = $0) =~ s|.*/||;
-
-# Turn off localisation of executable's ouput.
-@ENV{qw(LANGUAGE LANG LC_ALL)} = ('C') x 3;
-
-my $prog = $ENV{PROG} || die "$0: \$PROG not specified in environment\n";
-
-my @Tests =
- (
- ['1', '9', {OUT => '3 3'}],
- ['1a', '7', {OUT => '7'}],
- ['2', '4294967291', {OUT => '4294967291'}],
- ['3', '4294967292', {OUT => '2 2 3 3 7 11 31 151 331'}],
- ['4', '4294967293', {OUT => '9241 464773'}],
-
- ['a', '4294966201', {OUT => '12197 352133'}],
- ['b', '4294966339', {OUT => '13187 325697'}],
- ['c', '4294966631', {OUT => '13729 312839'}],
- ['d', '4294966457', {OUT => '14891 288427'}],
- ['e', '4294966759', {OUT => '21649 198391'}],
- ['f', '4294966573', {OUT => '23071 186163'}],
- ['g', '4294967101', {OUT => '23603 181967'}],
- ['h', '4294966519', {OUT => '34583 124193'}],
- ['i', '4294966561', {OUT => '36067 119083'}],
- ['j', '4294966901', {OUT => '37747 113783'}],
- ['k', '4294966691', {OUT => '39241 109451'}],
- ['l', '4294966969', {OUT => '44201 97169'}],
- ['m', '4294967099', {OUT => '44483 96553'}],
- ['n', '4294966271', {OUT => '44617 96263'}],
- ['o', '4294966789', {OUT => '50411 85199'}],
- ['p', '4294966189', {OUT => '53197 80737'}],
- ['q', '4294967213', {OUT => '57139 75167'}],
- ['s', '4294967071', {OUT => '65521 65551'}],
- ['t', '4294966194', {OUT => '2 3 3 3 3 3 3 3 53 97 191'}],
- ['u', '4294966272', {OUT => '2 2 2 2 2 2 2 2 2 2 3 23 89 683'}],
- ['v', '4294966400', {OUT => '2 2 2 2 2 2 2 5 5 1342177'}],
- ['w', '4294966464', {OUT => '2 2 2 2 2 2 3 3 3 2485513'}],
- ['x', '4294966896', {OUT => '2 2 2 2 3 3 3 11 607 1489'}],
- ['y', '4294966998', {OUT => '2 3 7 3917 26107'}],
- ['z', '-1',
- {ERR => "$prog: invalid option -- 1\n"
- . "Try `$prog --help' for more information.\n"},
- {EXIT => 1}],
- ['cont', 'a 4',
- {OUT => "4: 2 2\n"},
- {ERR => "$prog: `a' is not a valid positive integer\n"},
- {EXIT => 1}],
- );
-
-# Prepend the command line argument and append a newline to end
-# of each expected `OUT' string.
-my $t;
-
-Test:
-foreach $t (@Tests)
- {
- my $arg1 = $t->[1];
-
- # Don't fiddle with expected OUT string if there's a nonzero exit status.
- foreach my $e (@$t)
- {
- ref $e eq 'HASH' && exists $e->{EXIT} && $e->{EXIT}
- and next Test;
- }
-
- foreach my $e (@$t)
- {
- ref $e eq 'HASH' && exists $e->{OUT}
- and $e->{OUT} = "$arg1: $e->{OUT}\n"
- }
- }
-
-my $save_temps = $ENV{SAVE_TEMPS};
-my $verbose = $ENV{VERBOSE};
-
-my $fail = run_tests ($program_name, $prog, \@Tests, $save_temps, $verbose);
-exit $fail;
-EOF
diff --git a/tests/factor/create-test.sh b/tests/factor/create-test.sh
new file mode 100755
index 0000000..e168523
--- /dev/null
+++ b/tests/factor/create-test.sh
@@ -0,0 +1,83 @@
+#!/bin/sh
+# Create the factor test scripts.
+
+# Copyright (C) 2012-2016 Free Software Foundation, Inc.
+
+test_name=$1
+template=$2
+
+# Extract the test name: remove .sh suffix from the basename.
+t=`echo "$test_name"|sed 's,.*/,,;s,\.sh$,,'`
+
+# prefix of 2^64
+p=184467440737
+
+# prefix of 2^96
+q=79228162514264337593543
+
+# Each of these numbers has a Pollard rho factor larger than 2^64,
+# and thus exercises some hard-to-reach code in factor.c.
+t1=170141183460469225450570946617781744489
+t2=170141183460469229545748130981302223887
+
+# Factors of the above:
+# t1: 9223372036854775421 18446744073709551709
+# t2: 9223372036854775643 18446744073709551709
+
+# Each test is a triple: lo, hi, sha1 of result.
+# The test script, run.sh, runs seq lo hi|factor|sha1sum
+# and verifies that the actual and expected checksums are the same.
+# New tests must be added to tests/local.mk (factor_tests), too.
+case $t in
+ t00) set 0 10000000 a451244522b1b662c86cb3cbb55aee3e085a61a0 ;;
+ t01) set 10000000 20000000 c792a2e02f1c8536b5121f624b04039d20187016 ;;
+ t02) set 20000000 30000000 8115e8dff97d1674134ec054598d939a2a5f6113 ;;
+ t03) set 30000000 40000000 fe7b832c8e0ed55035152c0f9ebd59de73224a60 ;;
+ t04) set 40000000 50000000 b8786d66c432e48bc5b342ee3c6752b7f096f206 ;;
+ t05) set 50000000 60000000 a74fe518c5f79873c2b9016745b88b42c8fd3ede ;;
+ t06) set 60000000 70000000 689bc70d681791e5d1b8ac1316a05d0c4473d6db ;;
+ t07) set 70000000 80000000 d370808f2ab8c865f64c2ff909c5722db5b7d58d ;;
+ t08) set 80000000 90000000 7978aa66bf2bdb446398336ea6f02605e9a77581 ;;
+ t09) set $t1 $t1 4622287c5f040cdb7b3bbe4d19d29a71ab277827 ;;
+ t10) set $t2 $t2 dea308253708b57afad357e8c0d2a111460ef50e ;;
+ t11) set ${p}08551616 ${p}08651615 66c57cd58f4fb572df7f088d17e4f4c1d4f01bb1 ;;
+ t12) set ${p}08651616 ${p}08751615 729228e693b1a568ecc85b199927424c7d16d410 ;;
+ t13) set ${p}08751616 ${p}08851615 5a0c985017c2d285e4698f836f5a059e0b684563 ;;
+ t14) set ${p}08851616 ${p}08951615 0482295c514e371c98ce9fd335deed0c9c44a4f4 ;;
+ t15) set ${p}08951616 ${p}09051615 9c0e1105ac7c45e27e7bbeb5e213f530d2ad1a71 ;;
+ t16) set ${p}09051616 ${p}09151615 604366d2b1d75371d0679e6a68962d66336cd383 ;;
+ t17) set ${p}09151616 ${p}09251615 9192d2bdee930135b28d7160e6d395a7027871da ;;
+ t18) set ${p}09251616 ${p}09351615 bcf56ae55d20d700690cff4d3327b78f83fc01bf ;;
+ t19) set ${p}09351616 ${p}09451615 16b106398749e5f24d278ba7c58229ae43f650ac ;;
+ t20) set ${p}09451616 ${p}09551615 ad2c6ed63525f8e7c83c4c416e7715fa1bebc54c ;;
+ t21) set ${p}09551616 ${p}09651615 2b6f9c11742d9de045515a6627c27a042c49f8ba ;;
+ t22) set ${p}09651616 ${p}09751615 54851acd51c4819beb666e26bc0100dc9adbc310 ;;
+ t23) set ${p}09751616 ${p}09851615 6939c2a7afd2d81f45f818a159b7c5226f83a50b ;;
+ t24) set ${p}09851616 ${p}09951615 0f2c8bc011d2a45e2afa01459391e68873363c6c ;;
+ t25) set ${p}09951616 ${p}10051615 630dc2ad72f4c222bad1405e6c5bea590f92a98c ;;
+ t26) set ${q}940336 ${q}942335 63cbd6313d78247b04d63bbbac50cb8f8d33ff71 ;;
+ t27) set ${q}942336 ${q}944335 0d03d63653767173182491b86fa18f8f680bb036 ;;
+ t28) set ${q}944336 ${q}946335 ca43bd38cd9f97cc5bb63613cb19643578640f0b ;;
+ t29) set ${q}946336 ${q}948335 86d59545a0c13567fa96811821ea5cde950611b1 ;;
+ t30) set ${q}948336 ${q}950335 c3740e702fa9c97e6cf00150860e0b936a141a6b ;;
+ t31) set ${q}950336 ${q}952335 551c3c4c4640d86fda311b5c3006dac45505c0ce ;;
+ t32) set ${q}952336 ${q}954335 b1b0b00463c2f853d70ef9c4f7a96de5cb614156 ;;
+ t33) set ${q}954336 ${q}956335 8938a484a9ef6bb16478091d294fcde9f8ecea69 ;;
+ t34) set ${q}956336 ${q}958335 d1ae6bc712d994f35edf55c785d71ddf31f16535 ;;
+ t35) set ${q}958336 ${q}960335 2374919a89196e1fce93adfe779cb4664556d4b6 ;;
+ t36) set ${q}960336 ${q}962335 569e4363e8d9e8830a187d9ab27365eef08abde1 ;;
+ *)
+ echo "$0: error: unknown test: '$test_name' -> '$t'" >&2
+ exit 1
+ ;;
+esac
+
+TEMPLATE="TEST SCRIPT DERIVED FROM THE TEMPLATE $template"
+
+# Create the test script from the template for this test
+# by substituting the START, the END and the CKSUM.
+exec sed \
+ -e "s/__START__/$1/" \
+ -e "s/__END__/$2/" \
+ -e "s/__CKSUM__/$3/" \
+ -e "s!__TEMPLATE__!$TEMPLATE!" "$template"
diff --git a/tests/factor/run.sh b/tests/factor/run.sh
new file mode 100755
index 0000000..8ebbf0d
--- /dev/null
+++ b/tests/factor/run.sh
@@ -0,0 +1,34 @@
+#!/bin/sh
+
+# === THIS IS A __TEMPLATE__ ===
+
+# Test the factor rewrite.
+# The test is to run this command
+# seq $START $END | factor | shasum -c --status <(echo $CKSUM -)
+# I.e., to ensure that the factorizations of integers $1..$2
+# match what we expect.
+#
+# See: tests/factor/create-test.sh
+
+# Copyright (C) 2012-2016 Free Software Foundation, Inc.
+
+. "${srcdir=.}/tests/init.sh"; path_prepend_ ./src
+
+# Don't run these tests by default.
+very_expensive_
+
+print_ver_ factor seq sha1sum
+
+# Template variables.
+START=__START__
+ END=__END__
+CKSUM=__CKSUM__
+
+test "$START" = '__ST''ART__' && skip_ 'ignoring factor test template'
+
+echo "$CKSUM -" > exp
+
+f=1
+seq $START $END | factor | sha1sum -c --status exp && f=0
+
+Exit $f
diff --git a/tests/fiemap-capable b/tests/fiemap-capable
new file mode 100644
index 0000000..05c6926
--- /dev/null
+++ b/tests/fiemap-capable
@@ -0,0 +1,16 @@
+import struct, fcntl, sys, os
+
+def sizeof(t): return struct.calcsize(t)
+IOCPARM_MASK = 0x7f
+IOC_OUT = 0x40000000
+IOC_IN = 0x80000000
+IOC_INOUT = (IOC_IN|IOC_OUT)
+def _IOWR(x,y,t): return (IOC_INOUT|((sizeof(t)&IOCPARM_MASK)<<16)|((x)<<8)|y)
+
+try:
+ fd = os.open (len (sys.argv) == 2 and sys.argv[1] or '.', os.O_RDONLY)
+ struct_fiemap = '=qqllll'
+ FS_IOC_FIEMAP = _IOWR (ord ('f'), 11, struct_fiemap)
+ fcntl.ioctl (fd, FS_IOC_FIEMAP, struct.pack(struct_fiemap, 0,~0,0,0,0,0))
+except:
+ sys.exit (1)
diff --git a/tests/filefrag-extent-compare b/tests/filefrag-extent-compare
new file mode 100644
index 0000000..155e7ff
--- /dev/null
+++ b/tests/filefrag-extent-compare
@@ -0,0 +1,85 @@
+eval '(exit $?0)' && eval 'exec perl -wS "$0" ${1+"$@"}'
+ & eval 'exec perl -wS "$0" $argv:q'
+ if 0;
+# Determine whether two files have the same extents by comparing
+# the logical block numbers and lengths from filefrag -v for each.
+
+# Invoke like this:
+# This helper function, f, extracts logical block number and lengths.
+# f() { awk '/^ *[0-9]/ {printf "%d %d ",$2,NF<5?$NF:$5} END {print ""}'; }
+# { filefrag -v j1 | f; filefrag -v j2 | f; } | ./filefrag-extent-compare
+
+use warnings;
+use strict;
+(my $ME = $0) =~ s|.*/||;
+
+my @line = <>;
+my $n_lines = @line;
+$n_lines == 2
+ or die "$ME: expected exactly two input lines; got $n_lines\n";
+
+my @A = split ' ', $line[0];
+my @B = split ' ', $line[1];
+@A % 2 || @B % 2
+ and die "$ME: unexpected input: odd number of numbers; expected even\n";
+
+my @a;
+my @b;
+foreach my $i (0..@A/2-1) { $a[$i] = { L_BLK => $A[2*$i], LEN => $A[2*$i+1] } };
+foreach my $i (0..@B/2-1) { $b[$i] = { L_BLK => $B[2*$i], LEN => $B[2*$i+1] } };
+
+# Merge adjacent extents in array E.
+sub merge_extents($)
+{
+ my ($e) = @_;
+
+ my $i = 0;
+ while (1)
+ {
+ !defined $e->[$i+1]
+ and last;
+ $e->[$i]->{L_BLK} + $e->[$i]->{LEN} != $e->[$i+1]->{L_BLK}
+ and ++$i, next;
+
+ $e->[$i]->{LEN} += $e->[$i+1]->{LEN};
+ # Remove $e->[$i+1]
+ splice @$e, $i+1, 1;
+ }
+}
+
+merge_extents \@a;
+merge_extents \@b;
+
+@a == @b
+ or die "$ME: extent counts differ, even after adjustment\n";
+
+my $i = 0;
+while (defined $a[$i])
+ {
+ my $start_match = $a[$i]->{L_BLK} == $b[$i]->{L_BLK};
+ my $len_match = $a[$i]->{LEN} == $b[$i]->{LEN};
+ if ( ! ($start_match && ($len_match || $i == (@a - 1))))
+ {
+ # On XFS on Linux kernel 2.6.38, it was seen that the size of the
+ # last extent can vary, and can extend beyond the length of the file.
+ # So we ignore the length of the last extent, because if the
+ # file is the wrong length we'll get failures elsewhere.
+ die "$ME: differing extent:\n"
+ . " [$i]=$a[$i]->{L_BLK} $a[$i]->{LEN}\n"
+ . " [$i]=$b[$i]->{L_BLK} $b[$i]->{LEN}\n";
+ }
+ $i++;
+ }
+
+### Setup "GNU" style for perl-mode and cperl-mode.
+## Local Variables:
+## mode: perl
+## perl-indent-level: 2
+## perl-continued-statement-offset: 2
+## perl-continued-brace-offset: 0
+## perl-brace-offset: 0
+## perl-brace-imaginary-offset: 0
+## perl-label-offset: -2
+## perl-extra-newline-before-brace: t
+## perl-merge-trailing-else: nil
+## End:
diff --git a/tests/fmt/Makefile.am b/tests/fmt/Makefile.am
deleted file mode 100644
index 3ed6f72..0000000
--- a/tests/fmt/Makefile.am
+++ /dev/null
@@ -1,13 +0,0 @@
-## Process this file with automake to produce Makefile.in -*-Makefile-*-.
-
-EXTRA_DIST = $(TESTS)
-
-TESTS_ENVIRONMENT = \
- top_srcdir=$(top_srcdir) \
- srcdir=$(srcdir) \
- PERL="$(PERL)" \
- CU_TEST_NAME=`basename $(abs_srcdir)`,$$tst \
- PATH="$(VG_PATH_PREFIX)`pwd`/../../src$(PATH_SEPARATOR)$$PATH" \
- PROG=fmt
-
-TESTS = basic long-line
diff --git a/tests/fmt/Makefile.in b/tests/fmt/Makefile.in
deleted file mode 100644
index cef5c9a..0000000
--- a/tests/fmt/Makefile.in
+++ /dev/null
@@ -1,720 +0,0 @@
-# Makefile.in generated by automake 1.10 from Makefile.am.
-# @configure_input@
-
-# Copyright (C) 1994, 1995, 1996, 1997, 1998, 1999, 2000, 2001, 2002,
-# 2003, 2004, 2005, 2006 Free Software Foundation, Inc.
-# This Makefile.in is free software; the Free Software Foundation
-# gives unlimited permission to copy and/or distribute it,
-# with or without modifications, as long as this notice is preserved.
-
-# This program is distributed in the hope that it will be useful,
-# but WITHOUT ANY WARRANTY, to the extent permitted by law; without
-# even the implied warranty of MERCHANTABILITY or FITNESS FOR A
-# PARTICULAR PURPOSE.
-
-@SET_MAKE@
-VPATH = @srcdir@
-pkgdatadir = $(datadir)/@PACKAGE@
-pkglibdir = $(libdir)/@PACKAGE@
-pkgincludedir = $(includedir)/@PACKAGE@
-am__cd = CDPATH="$${ZSH_VERSION+.}$(PATH_SEPARATOR)" && cd
-install_sh_DATA = $(install_sh) -c -m 644
-install_sh_PROGRAM = $(install_sh) -c
-install_sh_SCRIPT = $(install_sh) -c
-INSTALL_HEADER = $(INSTALL_DATA)
-transform = $(program_transform_name)
-NORMAL_INSTALL = :
-PRE_INSTALL = :
-POST_INSTALL = :
-NORMAL_UNINSTALL = :
-PRE_UNINSTALL = :
-POST_UNINSTALL = :
-build_triplet = @build@
-host_triplet = @host@
-subdir = tests/fmt
-DIST_COMMON = $(srcdir)/Makefile.am $(srcdir)/Makefile.in
-ACLOCAL_M4 = $(top_srcdir)/aclocal.m4
-am__aclocal_m4_deps = $(top_srcdir)/m4/absolute-header.m4 \
- $(top_srcdir)/m4/acl.m4 $(top_srcdir)/m4/alloca.m4 \
- $(top_srcdir)/m4/allocsa.m4 $(top_srcdir)/m4/argmatch.m4 \
- $(top_srcdir)/m4/arpa_inet_h.m4 $(top_srcdir)/m4/assert.m4 \
- $(top_srcdir)/m4/atexit.m4 $(top_srcdir)/m4/autobuild.m4 \
- $(top_srcdir)/m4/backupfile.m4 $(top_srcdir)/m4/base64.m4 \
- $(top_srcdir)/m4/bison.m4 $(top_srcdir)/m4/boottime.m4 \
- $(top_srcdir)/m4/c-strtod.m4 $(top_srcdir)/m4/calloc.m4 \
- $(top_srcdir)/m4/canon-host.m4 \
- $(top_srcdir)/m4/canonicalize.m4 \
- $(top_srcdir)/m4/chdir-long.m4 $(top_srcdir)/m4/check-decl.m4 \
- $(top_srcdir)/m4/chown.m4 $(top_srcdir)/m4/clock_time.m4 \
- $(top_srcdir)/m4/cloexec.m4 $(top_srcdir)/m4/close-stream.m4 \
- $(top_srcdir)/m4/closeout.m4 $(top_srcdir)/m4/codeset.m4 \
- $(top_srcdir)/m4/config-h.m4 $(top_srcdir)/m4/cycle-check.m4 \
- $(top_srcdir)/m4/d-ino.m4 $(top_srcdir)/m4/d-type.m4 \
- $(top_srcdir)/m4/dirfd.m4 $(top_srcdir)/m4/dirname.m4 \
- $(top_srcdir)/m4/dos.m4 $(top_srcdir)/m4/double-slash-root.m4 \
- $(top_srcdir)/m4/dup2.m4 $(top_srcdir)/m4/eealloc.m4 \
- $(top_srcdir)/m4/eoverflow.m4 $(top_srcdir)/m4/error.m4 \
- $(top_srcdir)/m4/euidaccess-stat.m4 \
- $(top_srcdir)/m4/euidaccess.m4 $(top_srcdir)/m4/exclude.m4 \
- $(top_srcdir)/m4/exitfail.m4 $(top_srcdir)/m4/extensions.m4 \
- $(top_srcdir)/m4/fchdir.m4 $(top_srcdir)/m4/fcntl-safer.m4 \
- $(top_srcdir)/m4/fcntl_h.m4 $(top_srcdir)/m4/fd-reopen.m4 \
- $(top_srcdir)/m4/file-type.m4 $(top_srcdir)/m4/fileblocks.m4 \
- $(top_srcdir)/m4/filemode.m4 $(top_srcdir)/m4/filenamecat.m4 \
- $(top_srcdir)/m4/flexmember.m4 $(top_srcdir)/m4/fnmatch.m4 \
- $(top_srcdir)/m4/fpending.m4 $(top_srcdir)/m4/fprintftime.m4 \
- $(top_srcdir)/m4/free.m4 $(top_srcdir)/m4/fstypename.m4 \
- $(top_srcdir)/m4/fsusage.m4 $(top_srcdir)/m4/ftruncate.m4 \
- $(top_srcdir)/m4/fts.m4 $(top_srcdir)/m4/getaddrinfo.m4 \
- $(top_srcdir)/m4/getcwd-abort-bug.m4 \
- $(top_srcdir)/m4/getcwd-path-max.m4 $(top_srcdir)/m4/getcwd.m4 \
- $(top_srcdir)/m4/getdate.m4 $(top_srcdir)/m4/getdelim.m4 \
- $(top_srcdir)/m4/getgroups.m4 $(top_srcdir)/m4/gethostname.m4 \
- $(top_srcdir)/m4/gethrxtime.m4 $(top_srcdir)/m4/getline.m4 \
- $(top_srcdir)/m4/getloadavg.m4 $(top_srcdir)/m4/getndelim2.m4 \
- $(top_srcdir)/m4/getopt.m4 $(top_srcdir)/m4/getpagesize.m4 \
- $(top_srcdir)/m4/getpass.m4 $(top_srcdir)/m4/gettext.m4 \
- $(top_srcdir)/m4/gettime.m4 $(top_srcdir)/m4/gettimeofday.m4 \
- $(top_srcdir)/m4/getugroups.m4 \
- $(top_srcdir)/m4/getusershell.m4 $(top_srcdir)/m4/glibc21.m4 \
- $(top_srcdir)/m4/gnulib-common.m4 \
- $(top_srcdir)/m4/gnulib-comp.m4 \
- $(top_srcdir)/m4/group-member.m4 \
- $(top_srcdir)/m4/hard-locale.m4 $(top_srcdir)/m4/hash.m4 \
- $(top_srcdir)/m4/host-os.m4 $(top_srcdir)/m4/human.m4 \
- $(top_srcdir)/m4/i-ring.m4 $(top_srcdir)/m4/iconv.m4 \
- $(top_srcdir)/m4/idcache.m4 $(top_srcdir)/m4/inet_ntop.m4 \
- $(top_srcdir)/m4/inline.m4 $(top_srcdir)/m4/intmax_t.m4 \
- $(top_srcdir)/m4/inttostr.m4 $(top_srcdir)/m4/inttypes-pri.m4 \
- $(top_srcdir)/m4/inttypes.m4 $(top_srcdir)/m4/inttypes_h.m4 \
- $(top_srcdir)/m4/isapipe.m4 $(top_srcdir)/m4/jm-macros.m4 \
- $(top_srcdir)/m4/jm-winsz1.m4 $(top_srcdir)/m4/jm-winsz2.m4 \
- $(top_srcdir)/m4/lchmod.m4 $(top_srcdir)/m4/lchown.m4 \
- $(top_srcdir)/m4/lib-check.m4 $(top_srcdir)/m4/lib-ignore.m4 \
- $(top_srcdir)/m4/lib-ld.m4 $(top_srcdir)/m4/lib-link.m4 \
- $(top_srcdir)/m4/lib-prefix.m4 $(top_srcdir)/m4/link-follow.m4 \
- $(top_srcdir)/m4/localcharset.m4 \
- $(top_srcdir)/m4/long-options.m4 \
- $(top_srcdir)/m4/longdouble.m4 $(top_srcdir)/m4/longlong.m4 \
- $(top_srcdir)/m4/ls-mntd-fs.m4 $(top_srcdir)/m4/lstat.m4 \
- $(top_srcdir)/m4/mbchar.m4 $(top_srcdir)/m4/mbiter.m4 \
- $(top_srcdir)/m4/mbrtowc.m4 $(top_srcdir)/m4/mbscasecmp.m4 \
- $(top_srcdir)/m4/mbstate_t.m4 $(top_srcdir)/m4/mbswidth.m4 \
- $(top_srcdir)/m4/md5.m4 $(top_srcdir)/m4/memcasecmp.m4 \
- $(top_srcdir)/m4/memchr.m4 $(top_srcdir)/m4/memcmp.m4 \
- $(top_srcdir)/m4/memcoll.m4 $(top_srcdir)/m4/memcpy.m4 \
- $(top_srcdir)/m4/memmove.m4 $(top_srcdir)/m4/mempcpy.m4 \
- $(top_srcdir)/m4/memrchr.m4 $(top_srcdir)/m4/memset.m4 \
- $(top_srcdir)/m4/memxfrm.m4 $(top_srcdir)/m4/mkancesdirs.m4 \
- $(top_srcdir)/m4/mkdir-p.m4 $(top_srcdir)/m4/mkdir-slash.m4 \
- $(top_srcdir)/m4/mkstemp.m4 $(top_srcdir)/m4/mktime.m4 \
- $(top_srcdir)/m4/modechange.m4 $(top_srcdir)/m4/mountlist.m4 \
- $(top_srcdir)/m4/mpsort.m4 $(top_srcdir)/m4/nanosleep.m4 \
- $(top_srcdir)/m4/netinet_in_h.m4 $(top_srcdir)/m4/nls.m4 \
- $(top_srcdir)/m4/openat.m4 $(top_srcdir)/m4/pathmax.m4 \
- $(top_srcdir)/m4/perl.m4 $(top_srcdir)/m4/physmem.m4 \
- $(top_srcdir)/m4/po.m4 $(top_srcdir)/m4/posixtm.m4 \
- $(top_srcdir)/m4/posixver.m4 $(top_srcdir)/m4/prereq.m4 \
- $(top_srcdir)/m4/progtest.m4 $(top_srcdir)/m4/putenv.m4 \
- $(top_srcdir)/m4/quote.m4 $(top_srcdir)/m4/quotearg.m4 \
- $(top_srcdir)/m4/randint.m4 $(top_srcdir)/m4/randperm.m4 \
- $(top_srcdir)/m4/randread.m4 $(top_srcdir)/m4/readlink.m4 \
- $(top_srcdir)/m4/readtokens.m4 $(top_srcdir)/m4/readutmp.m4 \
- $(top_srcdir)/m4/regex.m4 \
- $(top_srcdir)/m4/rename-dest-slash.m4 \
- $(top_srcdir)/m4/rename.m4 $(top_srcdir)/m4/rmdir-errno.m4 \
- $(top_srcdir)/m4/rmdir.m4 $(top_srcdir)/m4/root-dev-ino.m4 \
- $(top_srcdir)/m4/rpmatch.m4 $(top_srcdir)/m4/safe-read.m4 \
- $(top_srcdir)/m4/safe-write.m4 $(top_srcdir)/m4/same.m4 \
- $(top_srcdir)/m4/save-cwd.m4 $(top_srcdir)/m4/savedir.m4 \
- $(top_srcdir)/m4/savewd.m4 $(top_srcdir)/m4/setenv.m4 \
- $(top_srcdir)/m4/settime.m4 $(top_srcdir)/m4/sha1.m4 \
- $(top_srcdir)/m4/sha256.m4 $(top_srcdir)/m4/sha512.m4 \
- $(top_srcdir)/m4/sig2str.m4 $(top_srcdir)/m4/snprintf.m4 \
- $(top_srcdir)/m4/socklen.m4 $(top_srcdir)/m4/sockpfaf.m4 \
- $(top_srcdir)/m4/ssize_t.m4 $(top_srcdir)/m4/st_dm_mode.m4 \
- $(top_srcdir)/m4/stat-prog.m4 $(top_srcdir)/m4/stat-time.m4 \
- $(top_srcdir)/m4/stdarg.m4 $(top_srcdir)/m4/stdbool.m4 \
- $(top_srcdir)/m4/stdint.m4 $(top_srcdir)/m4/stdint_h.m4 \
- $(top_srcdir)/m4/stdio-safer.m4 $(top_srcdir)/m4/stdio_h.m4 \
- $(top_srcdir)/m4/stdlib-safer.m4 $(top_srcdir)/m4/stdlib_h.m4 \
- $(top_srcdir)/m4/stpcpy.m4 $(top_srcdir)/m4/strcspn.m4 \
- $(top_srcdir)/m4/strdup.m4 $(top_srcdir)/m4/strftime.m4 \
- $(top_srcdir)/m4/string_h.m4 $(top_srcdir)/m4/strndup.m4 \
- $(top_srcdir)/m4/strnlen.m4 $(top_srcdir)/m4/strnumcmp.m4 \
- $(top_srcdir)/m4/strpbrk.m4 $(top_srcdir)/m4/strtod.m4 \
- $(top_srcdir)/m4/strtoimax.m4 $(top_srcdir)/m4/strtol.m4 \
- $(top_srcdir)/m4/strtoll.m4 $(top_srcdir)/m4/strtoul.m4 \
- $(top_srcdir)/m4/strtoull.m4 $(top_srcdir)/m4/strtoumax.m4 \
- $(top_srcdir)/m4/strverscmp.m4 \
- $(top_srcdir)/m4/sys_socket_h.m4 \
- $(top_srcdir)/m4/sys_stat_h.m4 $(top_srcdir)/m4/sys_time_h.m4 \
- $(top_srcdir)/m4/tempname.m4 $(top_srcdir)/m4/time_h.m4 \
- $(top_srcdir)/m4/time_r.m4 $(top_srcdir)/m4/timespec.m4 \
- $(top_srcdir)/m4/tm_gmtoff.m4 $(top_srcdir)/m4/tzset.m4 \
- $(top_srcdir)/m4/unicodeio.m4 $(top_srcdir)/m4/unistd-safer.m4 \
- $(top_srcdir)/m4/unistd_h.m4 $(top_srcdir)/m4/unlink-busy.m4 \
- $(top_srcdir)/m4/unlinkdir.m4 $(top_srcdir)/m4/unlocked-io.m4 \
- $(top_srcdir)/m4/uptime.m4 $(top_srcdir)/m4/userspec.m4 \
- $(top_srcdir)/m4/utimbuf.m4 $(top_srcdir)/m4/utime.m4 \
- $(top_srcdir)/m4/utimecmp.m4 $(top_srcdir)/m4/utimens.m4 \
- $(top_srcdir)/m4/utimes-null.m4 $(top_srcdir)/m4/utimes.m4 \
- $(top_srcdir)/m4/vasnprintf.m4 $(top_srcdir)/m4/vasprintf.m4 \
- $(top_srcdir)/m4/wchar.m4 $(top_srcdir)/m4/wchar_t.m4 \
- $(top_srcdir)/m4/wctype.m4 $(top_srcdir)/m4/wcwidth.m4 \
- $(top_srcdir)/m4/wint_t.m4 $(top_srcdir)/m4/xalloc.m4 \
- $(top_srcdir)/m4/xfts.m4 $(top_srcdir)/m4/xgetcwd.m4 \
- $(top_srcdir)/m4/xnanosleep.m4 $(top_srcdir)/m4/xstrndup.m4 \
- $(top_srcdir)/m4/xstrtod.m4 $(top_srcdir)/m4/xstrtol.m4 \
- $(top_srcdir)/m4/yesno.m4 $(top_srcdir)/configure.ac
-am__configure_deps = $(am__aclocal_m4_deps) $(CONFIGURE_DEPENDENCIES) \
- $(ACLOCAL_M4)
-mkinstalldirs = $(install_sh) -d
-CONFIG_HEADER = $(top_builddir)/lib/config.h
-CONFIG_CLEAN_FILES =
-SOURCES =
-DIST_SOURCES =
-DISTFILES = $(DIST_COMMON) $(DIST_SOURCES) $(TEXINFOS) $(EXTRA_DIST)
-ABSOLUTE_DIRENT_H = @ABSOLUTE_DIRENT_H@
-ABSOLUTE_FCNTL_H = @ABSOLUTE_FCNTL_H@
-ABSOLUTE_INTTYPES_H = @ABSOLUTE_INTTYPES_H@
-ABSOLUTE_NETINET_IN_H = @ABSOLUTE_NETINET_IN_H@
-ABSOLUTE_STDINT_H = @ABSOLUTE_STDINT_H@
-ABSOLUTE_STDIO_H = @ABSOLUTE_STDIO_H@
-ABSOLUTE_STDLIB_H = @ABSOLUTE_STDLIB_H@
-ABSOLUTE_STRING_H = @ABSOLUTE_STRING_H@
-ABSOLUTE_SYS_SOCKET_H = @ABSOLUTE_SYS_SOCKET_H@
-ABSOLUTE_SYS_STAT_H = @ABSOLUTE_SYS_STAT_H@
-ABSOLUTE_SYS_TIME_H = @ABSOLUTE_SYS_TIME_H@
-ABSOLUTE_TIME_H = @ABSOLUTE_TIME_H@
-ABSOLUTE_UNISTD_H = @ABSOLUTE_UNISTD_H@
-ABSOLUTE_WCHAR_H = @ABSOLUTE_WCHAR_H@
-ABSOLUTE_WCTYPE_H = @ABSOLUTE_WCTYPE_H@
-ACLOCAL = @ACLOCAL@
-ALLOCA = @ALLOCA@
-ALLOCA_H = @ALLOCA_H@
-AMTAR = @AMTAR@
-ARPA_INET_H = @ARPA_INET_H@
-AUTOCONF = @AUTOCONF@
-AUTOHEADER = @AUTOHEADER@
-AUTOMAKE = @AUTOMAKE@
-AWK = @AWK@
-BITSIZEOF_PTRDIFF_T = @BITSIZEOF_PTRDIFF_T@
-BITSIZEOF_SIG_ATOMIC_T = @BITSIZEOF_SIG_ATOMIC_T@
-BITSIZEOF_SIZE_T = @BITSIZEOF_SIZE_T@
-BITSIZEOF_WCHAR_T = @BITSIZEOF_WCHAR_T@
-BITSIZEOF_WINT_T = @BITSIZEOF_WINT_T@
-CC = @CC@
-CCDEPMODE = @CCDEPMODE@
-CFLAGS = @CFLAGS@
-CPP = @CPP@
-CPPFLAGS = @CPPFLAGS@
-CYGPATH_W = @CYGPATH_W@
-DEFAULT_POSIX2_VERSION = @DEFAULT_POSIX2_VERSION@
-DEFS = @DEFS@
-DEPDIR = @DEPDIR@
-DF_PROG = @DF_PROG@
-DIRENT_H = @DIRENT_H@
-ECHO_C = @ECHO_C@
-ECHO_N = @ECHO_N@
-ECHO_T = @ECHO_T@
-EGREP = @EGREP@
-EOVERFLOW = @EOVERFLOW@
-EXEEXT = @EXEEXT@
-FCNTL_H = @FCNTL_H@
-FNMATCH_H = @FNMATCH_H@
-GETLOADAVG_LIBS = @GETLOADAVG_LIBS@
-GETOPT_H = @GETOPT_H@
-GLIBC21 = @GLIBC21@
-GMSGFMT = @GMSGFMT@
-GMSGFMT_015 = @GMSGFMT_015@
-GNULIB_CHOWN = @GNULIB_CHOWN@
-GNULIB_DUP2 = @GNULIB_DUP2@
-GNULIB_FCHDIR = @GNULIB_FCHDIR@
-GNULIB_FPRINTF_POSIX = @GNULIB_FPRINTF_POSIX@
-GNULIB_FTRUNCATE = @GNULIB_FTRUNCATE@
-GNULIB_GETCWD = @GNULIB_GETCWD@
-GNULIB_GETLOGIN_R = @GNULIB_GETLOGIN_R@
-GNULIB_GETSUBOPT = @GNULIB_GETSUBOPT@
-GNULIB_IMAXABS = @GNULIB_IMAXABS@
-GNULIB_IMAXDIV = @GNULIB_IMAXDIV@
-GNULIB_MBSCASECMP = @GNULIB_MBSCASECMP@
-GNULIB_MBSCASESTR = @GNULIB_MBSCASESTR@
-GNULIB_MBSCHR = @GNULIB_MBSCHR@
-GNULIB_MBSCSPN = @GNULIB_MBSCSPN@
-GNULIB_MBSLEN = @GNULIB_MBSLEN@
-GNULIB_MBSNCASECMP = @GNULIB_MBSNCASECMP@
-GNULIB_MBSPBRK = @GNULIB_MBSPBRK@
-GNULIB_MBSPCASECMP = @GNULIB_MBSPCASECMP@
-GNULIB_MBSRCHR = @GNULIB_MBSRCHR@
-GNULIB_MBSSEP = @GNULIB_MBSSEP@
-GNULIB_MBSSPN = @GNULIB_MBSSPN@
-GNULIB_MBSSTR = @GNULIB_MBSSTR@
-GNULIB_MBSTOK_R = @GNULIB_MBSTOK_R@
-GNULIB_MEMMEM = @GNULIB_MEMMEM@
-GNULIB_MEMPCPY = @GNULIB_MEMPCPY@
-GNULIB_MEMRCHR = @GNULIB_MEMRCHR@
-GNULIB_MKDTEMP = @GNULIB_MKDTEMP@
-GNULIB_MKSTEMP = @GNULIB_MKSTEMP@
-GNULIB_PRINTF_POSIX = @GNULIB_PRINTF_POSIX@
-GNULIB_READLINK = @GNULIB_READLINK@
-GNULIB_SNPRINTF = @GNULIB_SNPRINTF@
-GNULIB_SPRINTF_POSIX = @GNULIB_SPRINTF_POSIX@
-GNULIB_STPCPY = @GNULIB_STPCPY@
-GNULIB_STPNCPY = @GNULIB_STPNCPY@
-GNULIB_STRCASESTR = @GNULIB_STRCASESTR@
-GNULIB_STRCHRNUL = @GNULIB_STRCHRNUL@
-GNULIB_STRDUP = @GNULIB_STRDUP@
-GNULIB_STRNDUP = @GNULIB_STRNDUP@
-GNULIB_STRNLEN = @GNULIB_STRNLEN@
-GNULIB_STRPBRK = @GNULIB_STRPBRK@
-GNULIB_STRSEP = @GNULIB_STRSEP@
-GNULIB_STRTOIMAX = @GNULIB_STRTOIMAX@
-GNULIB_STRTOK_R = @GNULIB_STRTOK_R@
-GNULIB_STRTOUMAX = @GNULIB_STRTOUMAX@
-GNULIB_VFPRINTF_POSIX = @GNULIB_VFPRINTF_POSIX@
-GNULIB_VPRINTF_POSIX = @GNULIB_VPRINTF_POSIX@
-GNULIB_VSNPRINTF = @GNULIB_VSNPRINTF@
-GNULIB_VSPRINTF_POSIX = @GNULIB_VSPRINTF_POSIX@
-GNU_PACKAGE = @GNU_PACKAGE@
-GREP = @GREP@
-HAVE_DECL_GETLOGIN_R = @HAVE_DECL_GETLOGIN_R@
-HAVE_DECL_IMAXABS = @HAVE_DECL_IMAXABS@
-HAVE_DECL_IMAXDIV = @HAVE_DECL_IMAXDIV@
-HAVE_DECL_MEMMEM = @HAVE_DECL_MEMMEM@
-HAVE_DECL_MEMRCHR = @HAVE_DECL_MEMRCHR@
-HAVE_DECL_SNPRINTF = @HAVE_DECL_SNPRINTF@
-HAVE_DECL_STRDUP = @HAVE_DECL_STRDUP@
-HAVE_DECL_STRNCASECMP = @HAVE_DECL_STRNCASECMP@
-HAVE_DECL_STRNDUP = @HAVE_DECL_STRNDUP@
-HAVE_DECL_STRNLEN = @HAVE_DECL_STRNLEN@
-HAVE_DECL_STRTOIMAX = @HAVE_DECL_STRTOIMAX@
-HAVE_DECL_STRTOK_R = @HAVE_DECL_STRTOK_R@
-HAVE_DECL_STRTOUMAX = @HAVE_DECL_STRTOUMAX@
-HAVE_DECL_VSNPRINTF = @HAVE_DECL_VSNPRINTF@
-HAVE_DUP2 = @HAVE_DUP2@
-HAVE_FTRUNCATE = @HAVE_FTRUNCATE@
-HAVE_GETSUBOPT = @HAVE_GETSUBOPT@
-HAVE_INTTYPES_H = @HAVE_INTTYPES_H@
-HAVE_LONG_LONG_INT = @HAVE_LONG_LONG_INT@
-HAVE_MEMPCPY = @HAVE_MEMPCPY@
-HAVE_MKDTEMP = @HAVE_MKDTEMP@
-HAVE_NETINET_IN_H = @HAVE_NETINET_IN_H@
-HAVE_READLINK = @HAVE_READLINK@
-HAVE_SIGNED_SIG_ATOMIC_T = @HAVE_SIGNED_SIG_ATOMIC_T@
-HAVE_SIGNED_WCHAR_T = @HAVE_SIGNED_WCHAR_T@
-HAVE_SIGNED_WINT_T = @HAVE_SIGNED_WINT_T@
-HAVE_STDINT_H = @HAVE_STDINT_H@
-HAVE_STPCPY = @HAVE_STPCPY@
-HAVE_STPNCPY = @HAVE_STPNCPY@
-HAVE_STRCASECMP = @HAVE_STRCASECMP@
-HAVE_STRCASESTR = @HAVE_STRCASESTR@
-HAVE_STRCHRNUL = @HAVE_STRCHRNUL@
-HAVE_STRNDUP = @HAVE_STRNDUP@
-HAVE_STRPBRK = @HAVE_STRPBRK@
-HAVE_STRSEP = @HAVE_STRSEP@
-HAVE_STRUCT_TIMEVAL = @HAVE_STRUCT_TIMEVAL@
-HAVE_SYS_BITYPES_H = @HAVE_SYS_BITYPES_H@
-HAVE_SYS_INTTYPES_H = @HAVE_SYS_INTTYPES_H@
-HAVE_SYS_SOCKET_H = @HAVE_SYS_SOCKET_H@
-HAVE_SYS_TIME_H = @HAVE_SYS_TIME_H@
-HAVE_SYS_TYPES_H = @HAVE_SYS_TYPES_H@
-HAVE_UNISTD_H = @HAVE_UNISTD_H@
-HAVE_UNSIGNED_LONG_LONG_INT = @HAVE_UNSIGNED_LONG_LONG_INT@
-HAVE_WCTYPE_H = @HAVE_WCTYPE_H@
-HAVE_WINSOCK2_H = @HAVE_WINSOCK2_H@
-HAVE_WINT_T = @HAVE_WINT_T@
-HAVE_WS2TCPIP_H = @HAVE_WS2TCPIP_H@
-HAVE__BOOL = @HAVE__BOOL@
-HELP2MAN = @HELP2MAN@
-INSTALL = @INSTALL@
-INSTALL_DATA = @INSTALL_DATA@
-INSTALL_PROGRAM = @INSTALL_PROGRAM@
-INSTALL_SCRIPT = @INSTALL_SCRIPT@
-INSTALL_STRIP_PROGRAM = @INSTALL_STRIP_PROGRAM@
-INTLLIBS = @INTLLIBS@
-INTL_MACOSX_LIBS = @INTL_MACOSX_LIBS@
-INTTYPES_H = @INTTYPES_H@
-KMEM_GROUP = @KMEM_GROUP@
-LDFLAGS = @LDFLAGS@
-LIBCOREUTILS_LIBDEPS = @LIBCOREUTILS_LIBDEPS@
-LIBCOREUTILS_LTLIBDEPS = @LIBCOREUTILS_LTLIBDEPS@
-LIBICONV = @LIBICONV@
-LIBINTL = @LIBINTL@
-LIBOBJS = @LIBOBJS@
-LIBS = @LIBS@
-LIB_ACL = @LIB_ACL@
-LIB_ACL_TRIVIAL = @LIB_ACL_TRIVIAL@
-LIB_CLOCK_GETTIME = @LIB_CLOCK_GETTIME@
-LIB_CRYPT = @LIB_CRYPT@
-LIB_EACCESS = @LIB_EACCESS@
-LIB_FDATASYNC = @LIB_FDATASYNC@
-LIB_GETHRXTIME = @LIB_GETHRXTIME@
-LIB_NANOSLEEP = @LIB_NANOSLEEP@
-LN_S = @LN_S@
-LTLIBICONV = @LTLIBICONV@
-LTLIBINTL = @LTLIBINTL@
-LTLIBOBJS = @LTLIBOBJS@
-MAKEINFO = @MAKEINFO@
-MAN = @MAN@
-MKDIR_P = @MKDIR_P@
-MSGFMT = @MSGFMT@
-MSGFMT_015 = @MSGFMT_015@
-MSGMERGE = @MSGMERGE@
-NEED_SETGID = @NEED_SETGID@
-NETINET_IN_H = @NETINET_IN_H@
-OBJEXT = @OBJEXT@
-OPTIONAL_BIN_PROGS = @OPTIONAL_BIN_PROGS@
-PACKAGE = @PACKAGE@
-PACKAGE_BUGREPORT = @PACKAGE_BUGREPORT@
-PACKAGE_NAME = @PACKAGE_NAME@
-PACKAGE_STRING = @PACKAGE_STRING@
-PACKAGE_TARNAME = @PACKAGE_TARNAME@
-PACKAGE_VERSION = @PACKAGE_VERSION@
-PATH_SEPARATOR = @PATH_SEPARATOR@
-PERL = @PERL@
-POSUB = @POSUB@
-POW_LIB = @POW_LIB@
-PRIPTR_PREFIX = @PRIPTR_PREFIX@
-PRI_MACROS_BROKEN = @PRI_MACROS_BROKEN@
-PTRDIFF_T_SUFFIX = @PTRDIFF_T_SUFFIX@
-RANLIB = @RANLIB@
-REPLACE_CHOWN = @REPLACE_CHOWN@
-REPLACE_FCHDIR = @REPLACE_FCHDIR@
-REPLACE_FPRINTF = @REPLACE_FPRINTF@
-REPLACE_GETCWD = @REPLACE_GETCWD@
-REPLACE_GETTIMEOFDAY = @REPLACE_GETTIMEOFDAY@
-REPLACE_LOCALTIME_R = @REPLACE_LOCALTIME_R@
-REPLACE_MKSTEMP = @REPLACE_MKSTEMP@
-REPLACE_NANOSLEEP = @REPLACE_NANOSLEEP@
-REPLACE_PRINTF = @REPLACE_PRINTF@
-REPLACE_SNPRINTF = @REPLACE_SNPRINTF@
-REPLACE_SPRINTF = @REPLACE_SPRINTF@
-REPLACE_STRPTIME = @REPLACE_STRPTIME@
-REPLACE_TIMEGM = @REPLACE_TIMEGM@
-REPLACE_VFPRINTF = @REPLACE_VFPRINTF@
-REPLACE_VPRINTF = @REPLACE_VPRINTF@
-REPLACE_VSNPRINTF = @REPLACE_VSNPRINTF@
-REPLACE_VSPRINTF = @REPLACE_VSPRINTF@
-SEQ_LIBM = @SEQ_LIBM@
-SET_MAKE = @SET_MAKE@
-SHELL = @SHELL@
-SIG_ATOMIC_T_SUFFIX = @SIG_ATOMIC_T_SUFFIX@
-SIZE_T_SUFFIX = @SIZE_T_SUFFIX@
-STDBOOL_H = @STDBOOL_H@
-STDINT_H = @STDINT_H@
-STRIP = @STRIP@
-SYS_SOCKET_H = @SYS_SOCKET_H@
-SYS_STAT_H = @SYS_STAT_H@
-SYS_TIME_H = @SYS_TIME_H@
-SYS_TIME_H_DEFINES_STRUCT_TIMESPEC = @SYS_TIME_H_DEFINES_STRUCT_TIMESPEC@
-TIME_H_DEFINES_STRUCT_TIMESPEC = @TIME_H_DEFINES_STRUCT_TIMESPEC@
-U = @U@
-USE_NLS = @USE_NLS@
-VERSION = @VERSION@
-WCHAR_H = @WCHAR_H@
-WCHAR_T_SUFFIX = @WCHAR_T_SUFFIX@
-WCTYPE_H = @WCTYPE_H@
-WINT_T_SUFFIX = @WINT_T_SUFFIX@
-XGETTEXT = @XGETTEXT@
-XGETTEXT_015 = @XGETTEXT_015@
-YACC = @YACC@
-YFLAGS = @YFLAGS@
-abs_builddir = @abs_builddir@
-abs_srcdir = @abs_srcdir@
-abs_top_builddir = @abs_top_builddir@
-abs_top_srcdir = @abs_top_srcdir@
-ac_ct_CC = @ac_ct_CC@
-am__include = @am__include@
-am__leading_dot = @am__leading_dot@
-am__quote = @am__quote@
-am__tar = @am__tar@
-am__untar = @am__untar@
-bindir = @bindir@
-build = @build@
-build_alias = @build_alias@
-build_cpu = @build_cpu@
-build_os = @build_os@
-build_vendor = @build_vendor@
-builddir = @builddir@
-datadir = @datadir@
-datarootdir = @datarootdir@
-docdir = @docdir@
-dvidir = @dvidir@
-exec_prefix = @exec_prefix@
-gl_LIBOBJS = @gl_LIBOBJS@
-gl_LTLIBOBJS = @gl_LTLIBOBJS@
-host = @host@
-host_alias = @host_alias@
-host_cpu = @host_cpu@
-host_os = @host_os@
-host_vendor = @host_vendor@
-htmldir = @htmldir@
-includedir = @includedir@
-infodir = @infodir@
-install_sh = @install_sh@
-libdir = @libdir@
-libexecdir = @libexecdir@
-localedir = @localedir@
-localstatedir = @localstatedir@
-mandir = @mandir@
-mkdir_p = @mkdir_p@
-oldincludedir = @oldincludedir@
-pdfdir = @pdfdir@
-prefix = @prefix@
-program_transform_name = @program_transform_name@
-psdir = @psdir@
-sbindir = @sbindir@
-sharedstatedir = @sharedstatedir@
-srcdir = @srcdir@
-sysconfdir = @sysconfdir@
-target_alias = @target_alias@
-top_builddir = @top_builddir@
-top_srcdir = @top_srcdir@
-EXTRA_DIST = $(TESTS)
-TESTS_ENVIRONMENT = \
- top_srcdir=$(top_srcdir) \
- srcdir=$(srcdir) \
- PERL="$(PERL)" \
- CU_TEST_NAME=`basename $(abs_srcdir)`,$$tst \
- PATH="$(VG_PATH_PREFIX)`pwd`/../../src$(PATH_SEPARATOR)$$PATH" \
- PROG=fmt
-
-TESTS = basic long-line
-all: all-am
-
-.SUFFIXES:
-$(srcdir)/Makefile.in: $(srcdir)/Makefile.am $(am__configure_deps)
- @for dep in $?; do \
- case '$(am__configure_deps)' in \
- *$$dep*) \
- cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh \
- && exit 0; \
- exit 1;; \
- esac; \
- done; \
- echo ' cd $(top_srcdir) && $(AUTOMAKE) --gnu tests/fmt/Makefile'; \
- cd $(top_srcdir) && \
- $(AUTOMAKE) --gnu tests/fmt/Makefile
-.PRECIOUS: Makefile
-Makefile: $(srcdir)/Makefile.in $(top_builddir)/config.status
- @case '$?' in \
- *config.status*) \
- cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh;; \
- *) \
- echo ' cd $(top_builddir) && $(SHELL) ./config.status $(subdir)/$@ $(am__depfiles_maybe)'; \
- cd $(top_builddir) && $(SHELL) ./config.status $(subdir)/$@ $(am__depfiles_maybe);; \
- esac;
-
-$(top_builddir)/config.status: $(top_srcdir)/configure $(CONFIG_STATUS_DEPENDENCIES)
- cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh
-
-$(top_srcdir)/configure: $(am__configure_deps)
- cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh
-$(ACLOCAL_M4): $(am__aclocal_m4_deps)
- cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh
-tags: TAGS
-TAGS:
-
-ctags: CTAGS
-CTAGS:
-
-
-check-TESTS: $(TESTS)
- @failed=0; all=0; xfail=0; xpass=0; skip=0; ws='[ ]'; \
- srcdir=$(srcdir); export srcdir; \
- list=' $(TESTS) '; \
- if test -n "$$list"; then \
- for tst in $$list; do \
- if test -f ./$$tst; then dir=./; \
- elif test -f $$tst; then dir=; \
- else dir="$(srcdir)/"; fi; \
- if $(TESTS_ENVIRONMENT) $${dir}$$tst; then \
- all=`expr $$all + 1`; \
- case " $(XFAIL_TESTS) " in \
- *$$ws$$tst$$ws*) \
- xpass=`expr $$xpass + 1`; \
- failed=`expr $$failed + 1`; \
- echo "XPASS: $$tst"; \
- ;; \
- *) \
- echo "PASS: $$tst"; \
- ;; \
- esac; \
- elif test $$? -ne 77; then \
- all=`expr $$all + 1`; \
- case " $(XFAIL_TESTS) " in \
- *$$ws$$tst$$ws*) \
- xfail=`expr $$xfail + 1`; \
- echo "XFAIL: $$tst"; \
- ;; \
- *) \
- failed=`expr $$failed + 1`; \
- echo "FAIL: $$tst"; \
- ;; \
- esac; \
- else \
- skip=`expr $$skip + 1`; \
- echo "SKIP: $$tst"; \
- fi; \
- done; \
- if test "$$failed" -eq 0; then \
- if test "$$xfail" -eq 0; then \
- banner="All $$all tests passed"; \
- else \
- banner="All $$all tests behaved as expected ($$xfail expected failures)"; \
- fi; \
- else \
- if test "$$xpass" -eq 0; then \
- banner="$$failed of $$all tests failed"; \
- else \
- banner="$$failed of $$all tests did not behave as expected ($$xpass unexpected passes)"; \
- fi; \
- fi; \
- dashes="$$banner"; \
- skipped=""; \
- if test "$$skip" -ne 0; then \
- skipped="($$skip tests were not run)"; \
- test `echo "$$skipped" | wc -c` -le `echo "$$banner" | wc -c` || \
- dashes="$$skipped"; \
- fi; \
- report=""; \
- if test "$$failed" -ne 0 && test -n "$(PACKAGE_BUGREPORT)"; then \
- report="Please report to $(PACKAGE_BUGREPORT)"; \
- test `echo "$$report" | wc -c` -le `echo "$$banner" | wc -c` || \
- dashes="$$report"; \
- fi; \
- dashes=`echo "$$dashes" | sed s/./=/g`; \
- echo "$$dashes"; \
- echo "$$banner"; \
- test -z "$$skipped" || echo "$$skipped"; \
- test -z "$$report" || echo "$$report"; \
- echo "$$dashes"; \
- test "$$failed" -eq 0; \
- else :; fi
-
-distdir: $(DISTFILES)
- @srcdirstrip=`echo "$(srcdir)" | sed 's/[].[^$$\\*]/\\\\&/g'`; \
- topsrcdirstrip=`echo "$(top_srcdir)" | sed 's/[].[^$$\\*]/\\\\&/g'`; \
- list='$(DISTFILES)'; \
- dist_files=`for file in $$list; do echo $$file; done | \
- sed -e "s|^$$srcdirstrip/||;t" \
- -e "s|^$$topsrcdirstrip/|$(top_builddir)/|;t"`; \
- case $$dist_files in \
- */*) $(MKDIR_P) `echo "$$dist_files" | \
- sed '/\//!d;s|^|$(distdir)/|;s,/[^/]*$$,,' | \
- sort -u` ;; \
- esac; \
- for file in $$dist_files; do \
- if test -f $$file || test -d $$file; then d=.; else d=$(srcdir); fi; \
- if test -d $$d/$$file; then \
- dir=`echo "/$$file" | sed -e 's,/[^/]*$$,,'`; \
- if test -d $(srcdir)/$$file && test $$d != $(srcdir); then \
- cp -pR $(srcdir)/$$file $(distdir)$$dir || exit 1; \
- fi; \
- cp -pR $$d/$$file $(distdir)$$dir || exit 1; \
- else \
- test -f $(distdir)/$$file \
- || cp -p $$d/$$file $(distdir)/$$file \
- || exit 1; \
- fi; \
- done
-check-am: all-am
- $(MAKE) $(AM_MAKEFLAGS) check-TESTS
-check: check-am
-all-am: Makefile
-installdirs:
-install: install-am
-install-exec: install-exec-am
-install-data: install-data-am
-uninstall: uninstall-am
-
-install-am: all-am
- @$(MAKE) $(AM_MAKEFLAGS) install-exec-am install-data-am
-
-installcheck: installcheck-am
-install-strip:
- $(MAKE) $(AM_MAKEFLAGS) INSTALL_PROGRAM="$(INSTALL_STRIP_PROGRAM)" \
- install_sh_PROGRAM="$(INSTALL_STRIP_PROGRAM)" INSTALL_STRIP_FLAG=-s \
- `test -z '$(STRIP)' || \
- echo "INSTALL_PROGRAM_ENV=STRIPPROG='$(STRIP)'"` install
-mostlyclean-generic:
-
-clean-generic:
-
-distclean-generic:
- -test -z "$(CONFIG_CLEAN_FILES)" || rm -f $(CONFIG_CLEAN_FILES)
-
-maintainer-clean-generic:
- @echo "This command is intended for maintainers to use"
- @echo "it deletes files that may require special tools to rebuild."
-clean: clean-am
-
-clean-am: clean-generic mostlyclean-am
-
-distclean: distclean-am
- -rm -f Makefile
-distclean-am: clean-am distclean-generic
-
-dvi: dvi-am
-
-dvi-am:
-
-html: html-am
-
-info: info-am
-
-info-am:
-
-install-data-am:
-
-install-dvi: install-dvi-am
-
-install-exec-am:
-
-install-html: install-html-am
-
-install-info: install-info-am
-
-install-man:
-
-install-pdf: install-pdf-am
-
-install-ps: install-ps-am
-
-installcheck-am:
-
-maintainer-clean: maintainer-clean-am
- -rm -f Makefile
-maintainer-clean-am: distclean-am maintainer-clean-generic
-
-mostlyclean: mostlyclean-am
-
-mostlyclean-am: mostlyclean-generic
-
-pdf: pdf-am
-
-pdf-am:
-
-ps: ps-am
-
-ps-am:
-
-uninstall-am:
-
-.MAKE: install-am install-strip
-
-.PHONY: all all-am check check-TESTS check-am clean clean-generic \
- distclean distclean-generic distdir dvi dvi-am html html-am \
- info info-am install install-am install-data install-data-am \
- install-dvi install-dvi-am install-exec install-exec-am \
- install-html install-html-am install-info install-info-am \
- install-man install-pdf install-pdf-am install-ps \
- install-ps-am install-strip installcheck installcheck-am \
- installdirs maintainer-clean maintainer-clean-generic \
- mostlyclean mostlyclean-generic pdf pdf-am ps ps-am uninstall \
- uninstall-am
-
-# Tell versions [3.59,3.63) of GNU make to not export all variables.
-# Otherwise a system limit (for SysV at least) may be exceeded.
-.NOEXPORT:
diff --git a/tests/fmt/base.pl b/tests/fmt/base.pl
new file mode 100755
index 0000000..d7954a8
--- /dev/null
+++ b/tests/fmt/base.pl
@@ -0,0 +1,67 @@
+#!/usr/bin/perl
+# Basic tests for "fmt".
+
+# Copyright (C) 2001-2016 Free Software Foundation, Inc.
+
+# This program is free software: you can redistribute it and/or modify
+# it under the terms of the GNU General Public License as published by
+# the Free Software Foundation, either version 3 of the License, or
+# (at your option) any later version.
+
+# This program is distributed in the hope that it will be useful,
+# but WITHOUT ANY WARRANTY; without even the implied warranty of
+# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
+# GNU General Public License for more details.
+
+# You should have received a copy of the GNU General Public License
+# along with this program. If not, see <http://www.gnu.org/licenses/>.
+
+use strict;
+
+(my $program_name = $0) =~ s|.*/||;
+my $normalize_strerror = "s/': .*/'/";
+
+my @Tests =
+ (
+ ['8-bit-pfx', qw (-p 'ç'),
+ {IN=> "ça\nçb\n"},
+ {OUT=>"ça b\n"}],
+ ['wide-1', '-w 32768',
+ {ERR => "fmt: invalid width: '32768'\n"}, {EXIT => 1},
+ {ERR_SUBST => $normalize_strerror}],
+ ['wide-2', '-w 2147483647',
+ {ERR => "fmt: invalid width: '2147483647'\n"}, {EXIT => 1},
+ {ERR_SUBST => $normalize_strerror}],
+ ['bad-suffix', '-72x', {IN=> ''},
+ {ERR => "fmt: invalid width: '72x'\n"}, {EXIT => 1}],
+ ['no-file', 'no-such-file',
+ {ERR => "fmt: cannot open 'no-such-file' for reading:"
+ . " No such file or directory\n"}, {EXIT => 1}],
+ ['obs-1', '-c -72',
+ {ERR => "fmt: invalid option -- 7; -WIDTH is recognized only when it"
+ . " is the first\noption; use -w N instead\n"
+ . "Try 'fmt --help' for more information.\n" }, {EXIT => 1}],
+
+ # With --prefix=P, do not remove leading space on lines without the prefix.
+ ['pfx-1', qw (-p '>'),
+ {IN=> " 1\n 2\n\t3\n\t\t4\n> quoted\n> text\n"},
+ {OUT=> " 1\n 2\n\t3\n\t\t4\n> quoted text\n"}],
+
+ # Don't remove prefix from a prefix-only line.
+ ['pfx-only', qw (-p '>'),
+ {IN=> ">\n"},
+ {OUT=> ">\n"}],
+
+ # With a multi-byte prefix, say, "foo", don't empty a line that
+ # starts with a strict prefix (e.g. "fo") of that prefix.
+ # With fmt from coreutils-6.7, it would mistakenly output an empty line.
+ ['pfx-of-pfx', qw (-p 'foo'),
+ {IN=> "fo\n"},
+ {OUT=> "fo\n"}],
+);
+
+my $save_temps = $ENV{DEBUG};
+my $verbose = $ENV{VERBOSE};
+my $prog = 'fmt';
+my $fail = run_tests ($program_name, $prog, \@Tests, $save_temps, $verbose);
+exit $fail;
diff --git a/tests/fmt/basic b/tests/fmt/basic
deleted file mode 100755
index 66abe13..0000000
--- a/tests/fmt/basic
+++ /dev/null
@@ -1,87 +0,0 @@
-#!/bin/sh
-# -*- perl -*-
-# Basic tests for "fmt".
-
-# Copyright (C) 2001, 2002, 2003, 2004, 2005, 2006, 2007 Free Software
-# Foundation, Inc.
-
-# This program is free software; you can redistribute it and/or modify
-# it under the terms of the GNU General Public License as published by
-# the Free Software Foundation; either version 2 of the License, or
-# (at your option) any later version.
-
-# This program is distributed in the hope that it will be useful,
-# but WITHOUT ANY WARRANTY; without even the implied warranty of
-# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
-# GNU General Public License for more details.
-
-# You should have received a copy of the GNU General Public License
-# along with this program; if not, write to the Free Software
-# Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA
-# 02110-1301, USA.
-
-: ${PERL=perl}
-: ${srcdir=.}
-
-$PERL -e 1 > /dev/null 2>&1 || {
- echo 1>&2 "$0: configure didn't find a usable version of Perl," \
- "so can't run this test"
- exit 77
-}
-
-# Export this to avoid hassles when run in a UTF-8 locale,
-# since we use 8-bit characters below, and those values are
-# interpolated into strings (to perform substitution) in Coreutils.pm.
-LC_ALL=C
-export LC_ALL
-
-exec $PERL -w -I$srcdir/.. -MCoreutils -- - <<\EOF
-require 5.003;
-use strict;
-
-(my $program_name = $0) =~ s|.*/||;
-
-my @Tests =
- (
- ['8-bit-pfx', qw (-p 'ç'),
- {IN=> "ça\nçb\n"},
- {OUT=>"ça b\n"}],
- ['wide-1', '-w 32768',
- {ERR => "fmt: invalid width: `32768'\n"}, {EXIT => 1}],
- ['wide-2', '-w 2147483647',
- {ERR => "fmt: invalid width: `2147483647'\n"}, {EXIT => 1}],
- ['bad-suffix', '-72x', {IN=> ''},
- {ERR => "fmt: invalid width: `72x'\n"}, {EXIT => 1}],
- ['no-file', 'no-such-file',
- {ERR => "fmt: cannot open `no-such-file' for reading:"
- . " No such file or directory\n"}, {EXIT => 1}],
- ['obs-1', '-c -72',
- {ERR => "fmt: invalid option -- 7; -WIDTH is recognized only when it"
- . " is the first\noption; use -w N instead\n"
- . "Try `fmt --help' for more information.\n" }, {EXIT => 1}],
-
- # With --prefix=P, do not remove leading space on lines without the prefix.
- ['pfx-1', qw (-p '>'),
- {IN=> " 1\n 2\n\t3\n\t\t4\n> quoted\n> text\n"},
- {OUT=> " 1\n 2\n\t3\n\t\t4\n> quoted text\n"}],
-
- # Don't remove prefix from a prefix-only line.
- ['pfx-only', qw (-p '>'),
- {IN=> ">\n"},
- {OUT=> ">\n"}],
-
- # With a multi-byte prefix, say, "foo", don't empty a line that
- # starts with a strict prefix (e.g. "fo") of that prefix.
- # With fmt from coreutils-6.7, it would mistakenly output an empty line.
- ['pfx-of-pfx', qw (-p 'foo'),
- {IN=> "fo\n"},
- {OUT=> "fo\n"}],
-);
-
-my $save_temps = $ENV{DEBUG};
-my $verbose = $ENV{VERBOSE};
-
-my $prog = $ENV{PROG} || die "$0: \$PROG not specified in environment\n";
-my $fail = run_tests ($program_name, $prog, \@Tests, $save_temps, $verbose);
-exit $fail;
-EOF
diff --git a/tests/fmt/goal-option.sh b/tests/fmt/goal-option.sh
new file mode 100755
index 0000000..4cfeafa
--- /dev/null
+++ b/tests/fmt/goal-option.sh
@@ -0,0 +1,56 @@
+#!/bin/sh
+# Exercise the fmt -g option.
+
+# Copyright (C) 2012-2016 Free Software Foundation, Inc.
+
+# This program is free software: you can redistribute it and/or modify
+# it under the terms of the GNU General Public License as published by
+# the Free Software Foundation, either version 3 of the License, or
+# (at your option) any later version.
+
+# This program is distributed in the hope that it will be useful,
+# but WITHOUT ANY WARRANTY; without even the implied warranty of
+# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
+# GNU General Public License for more details.
+
+# You should have received a copy of the GNU General Public License
+# along with this program. If not, see <http://www.gnu.org/licenses/>.
+
+. "${srcdir=.}/tests/init.sh"; path_prepend_ ./src
+print_ver_ fmt
+
+cat <<\_EOF_ > base || fail=1
+
+@command{fmt} prefers breaking lines at the end of a sentence, and tries to
+avoid line breaks after the first word of a sentence or before the last word
+of a sentence. A @dfn{sentence break} is defined as either the end of a
+paragraph or a word ending in any of @samp{.?!}, followed by two spaces or end
+of line, ignoring any intervening parentheses or quotes. Like @TeX{},
+@command{fmt} reads entire ''paragraphs'' before choosing line breaks; the
+algorithm is a variant of that given by
+Donald E. Knuth and Michael F. Plass
+in ''Breaking Paragraphs Into Lines'',
+@cite{Software---Practice & Experience}
+@b{11}, 11 (November 1981), 1119--1184.
+_EOF_
+
+fmt -g 60 -w 72 base > out || fail=1
+
+cat <<\_EOF_ > exp
+
+@command{fmt} prefers breaking lines at the end of a sentence,
+and tries to avoid line breaks after the first word of a sentence
+or before the last word of a sentence. A @dfn{sentence break}
+is defined as either the end of a paragraph or a word ending
+in any of @samp{.?!}, followed by two spaces or end of line,
+ignoring any intervening parentheses or quotes. Like @TeX{},
+@command{fmt} reads entire ''paragraphs'' before choosing line
+breaks; the algorithm is a variant of that given by Donald
+E. Knuth and Michael F. Plass in ''Breaking Paragraphs Into
+Lines'', @cite{Software---Practice & Experience} @b{11}, 11
+(November 1981), 1119--1184.
+_EOF_
+
+compare exp out || fail=1
+
+Exit $fail
diff --git a/tests/fmt/long-line b/tests/fmt/long-line
deleted file mode 100755
index f7e74c8..0000000
--- a/tests/fmt/long-line
+++ /dev/null
@@ -1,81 +0,0 @@
-#!/bin/sh
-# make sure fmt -s works even on long lines
-
-# Copyright (C) 2002, 2006 Free Software Foundation, Inc.
-
-# This program is free software; you can redistribute it and/or modify
-# it under the terms of the GNU General Public License as published by
-# the Free Software Foundation; either version 2 of the License, or
-# (at your option) any later version.
-
-# This program is distributed in the hope that it will be useful,
-# but WITHOUT ANY WARRANTY; without even the implied warranty of
-# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
-# GNU General Public License for more details.
-
-# You should have received a copy of the GNU General Public License
-# along with this program; if not, write to the Free Software
-# Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA
-# 02110-1301, USA.
-
-if test "$VERBOSE" = yes; then
- set -x
- fmt --version
-fi
-
-pwd=`pwd`
-t0=`echo "$0"|sed 's,.*/,,'`.tmp; tmp=$t0/$$
-trap 'status=$?; cd "$pwd" && chmod -R u+rwx $t0 && rm -rf $t0 && exit $status' 0
-trap '(exit $?); exit $?' 1 2 13 15
-
-framework_failure=0
-mkdir -p $tmp || framework_failure=1
-cd $tmp || framework_failure=1
-(echo ' '; yes) | head -n1000 | tr '\n' ' ' > in || framework_failure=1
-
-cat <<\EOF > exp || framework_failure=1
- y y y y y y y y y y y y y y y y y y y y y y y y y y y y y y y y y y
- y y y y y y y y y y y y y y y y y y y y y y y y y y y y y y y y y y
- y y y y y y y y y y y y y y y y y y y y y y y y y y y y y y y y y y
- y y y y y y y y y y y y y y y y y y y y y y y y y y y y y y y y y y
- y y y y y y y y y y y y y y y y y y y y y y y y y y y y y y y y y y
- y y y y y y y y y y y y y y y y y y y y y y y y y y y y y y y y y y
- y y y y y y y y y y y y y y y y y y y y y y y y y y y y y y y y y y
- y y y y y y y y y y y y y y y y y y y y y y y y y y y y y y y y y y
- y y y y y y y y y y y y y y y y y y y y y y y y y y y y y y y y y y
- y y y y y y y y y y y y y y y y y y y y y y y y y y y y y y y y y y
- y y y y y y y y y y y y y y y y y y y y y y y y y y y y y y y y y y
- y y y y y y y y y y y y y y y y y y y y y y y y y y y y y y y y y y
- y y y y y y y y y y y y y y y y y y y y y y y y y y y y y y y y y y
- y y y y y y y y y y y y y y y y y y y y y y y y y y y y y y y y y y
- y y y y y y y y y y y y y y y y y y y y y y y y y y y y y y y y y y
- y y y y y y y y y y y y y y y y y y y y y y y y y y y y y y y y y y
- y y y y y y y y y y y y y y y y y y y y y y y y y y y y y y y y y y
- y y y y y y y y y y y y y y y y y y y y y y y y y y y y y y y y y y
- y y y y y y y y y y y y y y y y y y y y y y y y y y y y y y y y y y y
- y y y y y y y y y y y y y y y y y y y y y y y y y y y y y y y y y y y
- y y y y y y y y y y y y y y y y y y y y y y y y y y y y y y y y y y y
- y y y y y y y y y y y y y y y y y y y y y y y y y y y y y y y y y y y
- y y y y y y y y y y y y y y y y y y y y y y y y y y y y y y y y y y y
- y y y y y y y y y y y y y y y y y y y y y y y y y y y y y y y y y y y
- y y y y y y y y y y y y y y y y y y y y y y y y y y y y y y y y y y y
- y y y y y y y y y y y y y y y y y y y y y y y y y y y y y y y y y y y
- y y y y y y y y y y y y y y y y y y y y y y y y y y y y y y y y y y y
- y y y y y y y y y y y y y y y y y y y y y y y y y y y y y y y y y y y
- y y y y y y y y y y y y y y y y y y y y y y y y y y y y y y y y y y y
- y y
-EOF
-
-if test $framework_failure = 1; then
- echo "$0: failure in testing framework" 1>&2
- (exit 1); exit 1
-fi
-
-fail=0
-
-fmt -s in > out || fail=1
-
-cmp out exp || fail=1
-test $fail = 1 && diff out exp 2> /dev/null
-
-(exit $fail); exit $fail
diff --git a/tests/fmt/long-line.sh b/tests/fmt/long-line.sh
new file mode 100755
index 0000000..2d56bf5
--- /dev/null
+++ b/tests/fmt/long-line.sh
@@ -0,0 +1,61 @@
+#!/bin/sh
+# make sure fmt -s works even on long lines
+
+# Copyright (C) 2002-2016 Free Software Foundation, Inc.
+
+# This program is free software: you can redistribute it and/or modify
+# it under the terms of the GNU General Public License as published by
+# the Free Software Foundation, either version 3 of the License, or
+# (at your option) any later version.
+
+# This program is distributed in the hope that it will be useful,
+# but WITHOUT ANY WARRANTY; without even the implied warranty of
+# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
+# GNU General Public License for more details.
+
+# You should have received a copy of the GNU General Public License
+# along with this program. If not, see <http://www.gnu.org/licenses/>.
+
+. "${srcdir=.}/tests/init.sh"; path_prepend_ ./src
+print_ver_ fmt
+
+printf '%2030s\n' ' '|sed 's/../ y/g' > in || framework_failure_
+
+cat <<\EOF > exp || framework_failure_
+ y y y y y y y y y y y y y y y y y y y y y y y y y y y y y y y y y y y
+ y y y y y y y y y y y y y y y y y y y y y y y y y y y y y y y y y y y
+ y y y y y y y y y y y y y y y y y y y y y y y y y y y y y y y y y y y
+ y y y y y y y y y y y y y y y y y y y y y y y y y y y y y y y y y y y
+ y y y y y y y y y y y y y y y y y y y y y y y y y y y y y y y y y y y
+ y y y y y y y y y y y y y y y y y y y y y y y y y y y y y y y y y y y
+ y y y y y y y y y y y y y y y y y y y y y y y y y y y y y y y y y y y
+ y y y y y y y y y y y y y y y y y y y y y y y y y y y y y y y y y y y
+ y y y y y y y y y y y y y y y y y y y y y y y y y y y y y y y y y y y
+ y y y y y y y y y y y y y y y y y y y y y y y y y y y y y y y y y y y
+ y y y y y y y y y y y y y y y y y y y y y y y y y y y y y y y y y y y
+ y y y y y y y y y y y y y y y y y y y y y y y y y y y y y y y y y y y
+ y y y y y y y y y y y y y y y y y y y y y y y y y y y y y y y y y y y
+ y y y y y y y y y y y y y y y y y y y y y y y y y y y y y y y y y y y
+ y y y y y y y y y y y y y y y y y y y y y y y y y y y y y y y y y y y
+ y y y y y y y y y y y y y y y y y y y y y y y y y y y y y y y y y y y
+ y y y y y y y y y y y y y y y y y y y y y y y y y y y y y y y y y y y
+ y y y y y y y y y y y y y y y y y y y y y y y y y y y y y y y y y y y
+ y y y y y y y y y y y y y y y y y y y y y y y y y y y y y y y y y y y
+ y y y y y y y y y y y y y y y y y y y y y y y y y y y y y y y y y y y
+ y y y y y y y y y y y y y y y y y y y y y y y y y y y y y y y y y y y
+ y y y y y y y y y y y y y y y y y y y y y y y y y y y y y y y y y y y
+ y y y y y y y y y y y y y y y y y y y y y y y y y y y y y y y y y y y
+ y y y y y y y y y y y y y y y y y y y y y y y y y y y y y y y y y y y
+ y y y y y y y y y y y y y y y y y y y y y y y y y y y y y y y y y y y
+ y y y y y y y y y y y y y y y y y y y y y y y y y y y y y y y y y y y
+ y y y y y y y y y y y y y y y y y y y y y y y y y y y y y y y y y y y
+ y y y y y y y y y y y y y y y y y y y y y y y y y y y y y y y y y y y
+ y y y y y y y y y y y y y y y y y y y y y y y y y y y y y y y y y y y
+EOF
+
+
+fmt -s in > out || fail=1
+
+compare exp out || fail=1
+
+Exit $fail
diff --git a/tests/group-names b/tests/group-names
deleted file mode 100644
index eb57160..0000000
--- a/tests/group-names
+++ /dev/null
@@ -1,37 +0,0 @@
-# -*- sh -*-
-# Set `groups' to a space-separated list of at least two groups of which
-# the user is a member.
-
-# Copyright (C) 2000, 2004, 2005 Free Software Foundation, Inc.
-
-# This program is free software; you can redistribute it and/or modify
-# it under the terms of the GNU General Public License as published by
-# the Free Software Foundation; either version 2 of the License, or
-# (at your option) any later version.
-
-# This program is distributed in the hope that it will be useful,
-# but WITHOUT ANY WARRANTY; without even the implied warranty of
-# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
-# GNU General Public License for more details.
-
-# You should have received a copy of the GNU General Public License
-# along with this program; if not, write to the Free Software
-# Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA
-# 02110-1301, USA.
-
-groups=${COREUTILS_GROUPS-`(id -G || /usr/xpg4/bin/id -G) 2>/dev/null`}
-case "$groups" in
- *' '*) ;;
- *) cat <<EOF 1>&2
-$0: this test requires that you be a member of more than one group,
-but running \`id -G' either failed or found just one. If you really
-are a member of at least two groups, then rerun this test with
-COREUTILS_GROUPS set in your environment to the space-separated list
-of group names or numbers. E.g.,
-
- env COREUTILS_GROUPS='users cdrom' make check
-
-EOF
- (exit 77); exit 77
- ;;
-esac
diff --git a/tests/head/Makefile.am b/tests/head/Makefile.am
deleted file mode 100644
index eb6e6ce..0000000
--- a/tests/head/Makefile.am
+++ /dev/null
@@ -1,69 +0,0 @@
-# Make coreutils tests. -*-Makefile-*-
-
-# Copyright (C) 1997, 1998, 2000, 2003, 2004, 2006 Free Software
-# Foundation, Inc.
-
-# This program is free software; you can redistribute it and/or modify
-# it under the terms of the GNU General Public License as published by
-# the Free Software Foundation; either version 2 of the License, or
-# (at your option) any later version.
-
-# This program is distributed in the hope that it will be useful,
-# but WITHOUT ANY WARRANTY; without even the implied warranty of
-# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
-# GNU General Public License for more details.
-
-# You should have received a copy of the GNU General Public License
-# along with this program; if not, write to the Free Software
-# Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA
-# 02110-1301, USA.
-
-##test-files-begin
-x = head
-explicit = in in-1024
-maint_gen = idem-0.I idem-0.X idem-1.I idem-1.X idem-2.I idem-2.X idem-3.I \
-idem-3.X basic-0-10.I basic-0-10.X basic-0-09.I basic-0-09.X basic-0-11.I \
-basic-0-11.X obs-0.I obs-0.X obs-1.I obs-1.X obs-2.I obs-2.X obs-3.I obs-3.X \
-fail-1.I fail-1.X null-1.I null-1.X no-oct-1.I no-oct-1.X no-oct-2.I \
-no-oct-2.X no-oct-3.I no-oct-3.X no-oct-4.I no-oct-4.X posix-0.I posix-0.X \
-posix-1.I posix-1.X posix-2.I posix-2.X posix-3.I posix-3.X
-run_gen = idem-0.O idem-0.E idem-1.O idem-1.E idem-2.O idem-2.E idem-3.O \
-idem-3.E basic-0-10.O basic-0-10.E basic-0-09.O basic-0-09.E basic-0-11.O \
-basic-0-11.E obs-0.O obs-0.E obs-1.O obs-1.E obs-2.O obs-2.E obs-3.O obs-3.E \
-obs-4.O obs-4.E obs-5.O obs-5.E fail-1.O fail-1.E null-1.O null-1.E \
-no-oct-1.O no-oct-1.E no-oct-2.O no-oct-2.E no-oct-3.O no-oct-3.E no-oct-4.O \
-no-oct-4.E posix-0.O posix-0.E posix-1.O posix-1.E posix-2.O posix-2.E \
-posix-3.O posix-3.E posix-4.O posix-4.E posix-5.O posix-5.E
-##test-files-end
-
-EXTRA_DIST = Test.pm $x-tests $(explicit) $(maint_gen)
-noinst_SCRIPTS = $x-tests
-TESTS_ENVIRONMENT = \
- CU_TEST_NAME=`basename $(abs_srcdir)`,$$tst \
- PATH="$(VG_PATH_PREFIX)`pwd`/../../src$(PATH_SEPARATOR)$$PATH"
-
-editpl = sed -e 's,@''PERL''@,$(PERL),g' -e 's,@''srcdir''@,$(srcdir),g'
-
-TESTS = $x-tests
-
-mk_script = $(srcdir)/../mk-script
-$(srcdir)/$x-tests: $(mk_script) Test.pm Makefile.am
- test '$x' = test && prog=../../src/$x || prog=$x; \
- $(PERL) -I$(srcdir) -w -- $(mk_script) $(srcdir) $$prog > $@.n
- mv $@.n $@
- chmod 755 $@
-
-MAINTAINERCLEANFILES = $x-tests $(maint_gen)
-CLEANFILES = $(run_gen)
-
-check: $(maint_gen)
-
-$(srcdir)/Makefile.am: ../Makefile.am.in Test.pm $(mk_script)
- rm -f $@ $@t
- sed -n '1,/^##test-files-begin/p' $(srcdir)/../Makefile.am.in > $@t
- tool=`echo $(subdir)|sed 's/^tests.//;s/-test//'`; \
- echo "x = $$tool" >> $@t
- $(PERL) -I$(srcdir) -w -- $(mk_script) $(srcdir) --list >> $@t
- sed -n '/^##test-files-end/,$$p' $(srcdir)/../Makefile.am.in >> $@t
- chmod -w $@t
- mv $@t $@
diff --git a/tests/head/Makefile.in b/tests/head/Makefile.in
deleted file mode 100644
index a5d6e56..0000000
--- a/tests/head/Makefile.in
+++ /dev/null
@@ -1,779 +0,0 @@
-# Makefile.in generated by automake 1.10 from Makefile.am.
-# @configure_input@
-
-# Copyright (C) 1994, 1995, 1996, 1997, 1998, 1999, 2000, 2001, 2002,
-# 2003, 2004, 2005, 2006 Free Software Foundation, Inc.
-# This Makefile.in is free software; the Free Software Foundation
-# gives unlimited permission to copy and/or distribute it,
-# with or without modifications, as long as this notice is preserved.
-
-# This program is distributed in the hope that it will be useful,
-# but WITHOUT ANY WARRANTY, to the extent permitted by law; without
-# even the implied warranty of MERCHANTABILITY or FITNESS FOR A
-# PARTICULAR PURPOSE.
-
-@SET_MAKE@
-
-# Make coreutils tests. -*-Makefile-*-
-
-# Copyright (C) 1997, 1998, 2000, 2003, 2004, 2006 Free Software
-# Foundation, Inc.
-
-# This program is free software; you can redistribute it and/or modify
-# it under the terms of the GNU General Public License as published by
-# the Free Software Foundation; either version 2 of the License, or
-# (at your option) any later version.
-
-# This program is distributed in the hope that it will be useful,
-# but WITHOUT ANY WARRANTY; without even the implied warranty of
-# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
-# GNU General Public License for more details.
-
-# You should have received a copy of the GNU General Public License
-# along with this program; if not, write to the Free Software
-# Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA
-# 02110-1301, USA.
-
-VPATH = @srcdir@
-pkgdatadir = $(datadir)/@PACKAGE@
-pkglibdir = $(libdir)/@PACKAGE@
-pkgincludedir = $(includedir)/@PACKAGE@
-am__cd = CDPATH="$${ZSH_VERSION+.}$(PATH_SEPARATOR)" && cd
-install_sh_DATA = $(install_sh) -c -m 644
-install_sh_PROGRAM = $(install_sh) -c
-install_sh_SCRIPT = $(install_sh) -c
-INSTALL_HEADER = $(INSTALL_DATA)
-transform = $(program_transform_name)
-NORMAL_INSTALL = :
-PRE_INSTALL = :
-POST_INSTALL = :
-NORMAL_UNINSTALL = :
-PRE_UNINSTALL = :
-POST_UNINSTALL = :
-build_triplet = @build@
-host_triplet = @host@
-subdir = tests/head
-DIST_COMMON = $(srcdir)/Makefile.am $(srcdir)/Makefile.in
-ACLOCAL_M4 = $(top_srcdir)/aclocal.m4
-am__aclocal_m4_deps = $(top_srcdir)/m4/absolute-header.m4 \
- $(top_srcdir)/m4/acl.m4 $(top_srcdir)/m4/alloca.m4 \
- $(top_srcdir)/m4/allocsa.m4 $(top_srcdir)/m4/argmatch.m4 \
- $(top_srcdir)/m4/arpa_inet_h.m4 $(top_srcdir)/m4/assert.m4 \
- $(top_srcdir)/m4/atexit.m4 $(top_srcdir)/m4/autobuild.m4 \
- $(top_srcdir)/m4/backupfile.m4 $(top_srcdir)/m4/base64.m4 \
- $(top_srcdir)/m4/bison.m4 $(top_srcdir)/m4/boottime.m4 \
- $(top_srcdir)/m4/c-strtod.m4 $(top_srcdir)/m4/calloc.m4 \
- $(top_srcdir)/m4/canon-host.m4 \
- $(top_srcdir)/m4/canonicalize.m4 \
- $(top_srcdir)/m4/chdir-long.m4 $(top_srcdir)/m4/check-decl.m4 \
- $(top_srcdir)/m4/chown.m4 $(top_srcdir)/m4/clock_time.m4 \
- $(top_srcdir)/m4/cloexec.m4 $(top_srcdir)/m4/close-stream.m4 \
- $(top_srcdir)/m4/closeout.m4 $(top_srcdir)/m4/codeset.m4 \
- $(top_srcdir)/m4/config-h.m4 $(top_srcdir)/m4/cycle-check.m4 \
- $(top_srcdir)/m4/d-ino.m4 $(top_srcdir)/m4/d-type.m4 \
- $(top_srcdir)/m4/dirfd.m4 $(top_srcdir)/m4/dirname.m4 \
- $(top_srcdir)/m4/dos.m4 $(top_srcdir)/m4/double-slash-root.m4 \
- $(top_srcdir)/m4/dup2.m4 $(top_srcdir)/m4/eealloc.m4 \
- $(top_srcdir)/m4/eoverflow.m4 $(top_srcdir)/m4/error.m4 \
- $(top_srcdir)/m4/euidaccess-stat.m4 \
- $(top_srcdir)/m4/euidaccess.m4 $(top_srcdir)/m4/exclude.m4 \
- $(top_srcdir)/m4/exitfail.m4 $(top_srcdir)/m4/extensions.m4 \
- $(top_srcdir)/m4/fchdir.m4 $(top_srcdir)/m4/fcntl-safer.m4 \
- $(top_srcdir)/m4/fcntl_h.m4 $(top_srcdir)/m4/fd-reopen.m4 \
- $(top_srcdir)/m4/file-type.m4 $(top_srcdir)/m4/fileblocks.m4 \
- $(top_srcdir)/m4/filemode.m4 $(top_srcdir)/m4/filenamecat.m4 \
- $(top_srcdir)/m4/flexmember.m4 $(top_srcdir)/m4/fnmatch.m4 \
- $(top_srcdir)/m4/fpending.m4 $(top_srcdir)/m4/fprintftime.m4 \
- $(top_srcdir)/m4/free.m4 $(top_srcdir)/m4/fstypename.m4 \
- $(top_srcdir)/m4/fsusage.m4 $(top_srcdir)/m4/ftruncate.m4 \
- $(top_srcdir)/m4/fts.m4 $(top_srcdir)/m4/getaddrinfo.m4 \
- $(top_srcdir)/m4/getcwd-abort-bug.m4 \
- $(top_srcdir)/m4/getcwd-path-max.m4 $(top_srcdir)/m4/getcwd.m4 \
- $(top_srcdir)/m4/getdate.m4 $(top_srcdir)/m4/getdelim.m4 \
- $(top_srcdir)/m4/getgroups.m4 $(top_srcdir)/m4/gethostname.m4 \
- $(top_srcdir)/m4/gethrxtime.m4 $(top_srcdir)/m4/getline.m4 \
- $(top_srcdir)/m4/getloadavg.m4 $(top_srcdir)/m4/getndelim2.m4 \
- $(top_srcdir)/m4/getopt.m4 $(top_srcdir)/m4/getpagesize.m4 \
- $(top_srcdir)/m4/getpass.m4 $(top_srcdir)/m4/gettext.m4 \
- $(top_srcdir)/m4/gettime.m4 $(top_srcdir)/m4/gettimeofday.m4 \
- $(top_srcdir)/m4/getugroups.m4 \
- $(top_srcdir)/m4/getusershell.m4 $(top_srcdir)/m4/glibc21.m4 \
- $(top_srcdir)/m4/gnulib-common.m4 \
- $(top_srcdir)/m4/gnulib-comp.m4 \
- $(top_srcdir)/m4/group-member.m4 \
- $(top_srcdir)/m4/hard-locale.m4 $(top_srcdir)/m4/hash.m4 \
- $(top_srcdir)/m4/host-os.m4 $(top_srcdir)/m4/human.m4 \
- $(top_srcdir)/m4/i-ring.m4 $(top_srcdir)/m4/iconv.m4 \
- $(top_srcdir)/m4/idcache.m4 $(top_srcdir)/m4/inet_ntop.m4 \
- $(top_srcdir)/m4/inline.m4 $(top_srcdir)/m4/intmax_t.m4 \
- $(top_srcdir)/m4/inttostr.m4 $(top_srcdir)/m4/inttypes-pri.m4 \
- $(top_srcdir)/m4/inttypes.m4 $(top_srcdir)/m4/inttypes_h.m4 \
- $(top_srcdir)/m4/isapipe.m4 $(top_srcdir)/m4/jm-macros.m4 \
- $(top_srcdir)/m4/jm-winsz1.m4 $(top_srcdir)/m4/jm-winsz2.m4 \
- $(top_srcdir)/m4/lchmod.m4 $(top_srcdir)/m4/lchown.m4 \
- $(top_srcdir)/m4/lib-check.m4 $(top_srcdir)/m4/lib-ignore.m4 \
- $(top_srcdir)/m4/lib-ld.m4 $(top_srcdir)/m4/lib-link.m4 \
- $(top_srcdir)/m4/lib-prefix.m4 $(top_srcdir)/m4/link-follow.m4 \
- $(top_srcdir)/m4/localcharset.m4 \
- $(top_srcdir)/m4/long-options.m4 \
- $(top_srcdir)/m4/longdouble.m4 $(top_srcdir)/m4/longlong.m4 \
- $(top_srcdir)/m4/ls-mntd-fs.m4 $(top_srcdir)/m4/lstat.m4 \
- $(top_srcdir)/m4/mbchar.m4 $(top_srcdir)/m4/mbiter.m4 \
- $(top_srcdir)/m4/mbrtowc.m4 $(top_srcdir)/m4/mbscasecmp.m4 \
- $(top_srcdir)/m4/mbstate_t.m4 $(top_srcdir)/m4/mbswidth.m4 \
- $(top_srcdir)/m4/md5.m4 $(top_srcdir)/m4/memcasecmp.m4 \
- $(top_srcdir)/m4/memchr.m4 $(top_srcdir)/m4/memcmp.m4 \
- $(top_srcdir)/m4/memcoll.m4 $(top_srcdir)/m4/memcpy.m4 \
- $(top_srcdir)/m4/memmove.m4 $(top_srcdir)/m4/mempcpy.m4 \
- $(top_srcdir)/m4/memrchr.m4 $(top_srcdir)/m4/memset.m4 \
- $(top_srcdir)/m4/memxfrm.m4 $(top_srcdir)/m4/mkancesdirs.m4 \
- $(top_srcdir)/m4/mkdir-p.m4 $(top_srcdir)/m4/mkdir-slash.m4 \
- $(top_srcdir)/m4/mkstemp.m4 $(top_srcdir)/m4/mktime.m4 \
- $(top_srcdir)/m4/modechange.m4 $(top_srcdir)/m4/mountlist.m4 \
- $(top_srcdir)/m4/mpsort.m4 $(top_srcdir)/m4/nanosleep.m4 \
- $(top_srcdir)/m4/netinet_in_h.m4 $(top_srcdir)/m4/nls.m4 \
- $(top_srcdir)/m4/openat.m4 $(top_srcdir)/m4/pathmax.m4 \
- $(top_srcdir)/m4/perl.m4 $(top_srcdir)/m4/physmem.m4 \
- $(top_srcdir)/m4/po.m4 $(top_srcdir)/m4/posixtm.m4 \
- $(top_srcdir)/m4/posixver.m4 $(top_srcdir)/m4/prereq.m4 \
- $(top_srcdir)/m4/progtest.m4 $(top_srcdir)/m4/putenv.m4 \
- $(top_srcdir)/m4/quote.m4 $(top_srcdir)/m4/quotearg.m4 \
- $(top_srcdir)/m4/randint.m4 $(top_srcdir)/m4/randperm.m4 \
- $(top_srcdir)/m4/randread.m4 $(top_srcdir)/m4/readlink.m4 \
- $(top_srcdir)/m4/readtokens.m4 $(top_srcdir)/m4/readutmp.m4 \
- $(top_srcdir)/m4/regex.m4 \
- $(top_srcdir)/m4/rename-dest-slash.m4 \
- $(top_srcdir)/m4/rename.m4 $(top_srcdir)/m4/rmdir-errno.m4 \
- $(top_srcdir)/m4/rmdir.m4 $(top_srcdir)/m4/root-dev-ino.m4 \
- $(top_srcdir)/m4/rpmatch.m4 $(top_srcdir)/m4/safe-read.m4 \
- $(top_srcdir)/m4/safe-write.m4 $(top_srcdir)/m4/same.m4 \
- $(top_srcdir)/m4/save-cwd.m4 $(top_srcdir)/m4/savedir.m4 \
- $(top_srcdir)/m4/savewd.m4 $(top_srcdir)/m4/setenv.m4 \
- $(top_srcdir)/m4/settime.m4 $(top_srcdir)/m4/sha1.m4 \
- $(top_srcdir)/m4/sha256.m4 $(top_srcdir)/m4/sha512.m4 \
- $(top_srcdir)/m4/sig2str.m4 $(top_srcdir)/m4/snprintf.m4 \
- $(top_srcdir)/m4/socklen.m4 $(top_srcdir)/m4/sockpfaf.m4 \
- $(top_srcdir)/m4/ssize_t.m4 $(top_srcdir)/m4/st_dm_mode.m4 \
- $(top_srcdir)/m4/stat-prog.m4 $(top_srcdir)/m4/stat-time.m4 \
- $(top_srcdir)/m4/stdarg.m4 $(top_srcdir)/m4/stdbool.m4 \
- $(top_srcdir)/m4/stdint.m4 $(top_srcdir)/m4/stdint_h.m4 \
- $(top_srcdir)/m4/stdio-safer.m4 $(top_srcdir)/m4/stdio_h.m4 \
- $(top_srcdir)/m4/stdlib-safer.m4 $(top_srcdir)/m4/stdlib_h.m4 \
- $(top_srcdir)/m4/stpcpy.m4 $(top_srcdir)/m4/strcspn.m4 \
- $(top_srcdir)/m4/strdup.m4 $(top_srcdir)/m4/strftime.m4 \
- $(top_srcdir)/m4/string_h.m4 $(top_srcdir)/m4/strndup.m4 \
- $(top_srcdir)/m4/strnlen.m4 $(top_srcdir)/m4/strnumcmp.m4 \
- $(top_srcdir)/m4/strpbrk.m4 $(top_srcdir)/m4/strtod.m4 \
- $(top_srcdir)/m4/strtoimax.m4 $(top_srcdir)/m4/strtol.m4 \
- $(top_srcdir)/m4/strtoll.m4 $(top_srcdir)/m4/strtoul.m4 \
- $(top_srcdir)/m4/strtoull.m4 $(top_srcdir)/m4/strtoumax.m4 \
- $(top_srcdir)/m4/strverscmp.m4 \
- $(top_srcdir)/m4/sys_socket_h.m4 \
- $(top_srcdir)/m4/sys_stat_h.m4 $(top_srcdir)/m4/sys_time_h.m4 \
- $(top_srcdir)/m4/tempname.m4 $(top_srcdir)/m4/time_h.m4 \
- $(top_srcdir)/m4/time_r.m4 $(top_srcdir)/m4/timespec.m4 \
- $(top_srcdir)/m4/tm_gmtoff.m4 $(top_srcdir)/m4/tzset.m4 \
- $(top_srcdir)/m4/unicodeio.m4 $(top_srcdir)/m4/unistd-safer.m4 \
- $(top_srcdir)/m4/unistd_h.m4 $(top_srcdir)/m4/unlink-busy.m4 \
- $(top_srcdir)/m4/unlinkdir.m4 $(top_srcdir)/m4/unlocked-io.m4 \
- $(top_srcdir)/m4/uptime.m4 $(top_srcdir)/m4/userspec.m4 \
- $(top_srcdir)/m4/utimbuf.m4 $(top_srcdir)/m4/utime.m4 \
- $(top_srcdir)/m4/utimecmp.m4 $(top_srcdir)/m4/utimens.m4 \
- $(top_srcdir)/m4/utimes-null.m4 $(top_srcdir)/m4/utimes.m4 \
- $(top_srcdir)/m4/vasnprintf.m4 $(top_srcdir)/m4/vasprintf.m4 \
- $(top_srcdir)/m4/wchar.m4 $(top_srcdir)/m4/wchar_t.m4 \
- $(top_srcdir)/m4/wctype.m4 $(top_srcdir)/m4/wcwidth.m4 \
- $(top_srcdir)/m4/wint_t.m4 $(top_srcdir)/m4/xalloc.m4 \
- $(top_srcdir)/m4/xfts.m4 $(top_srcdir)/m4/xgetcwd.m4 \
- $(top_srcdir)/m4/xnanosleep.m4 $(top_srcdir)/m4/xstrndup.m4 \
- $(top_srcdir)/m4/xstrtod.m4 $(top_srcdir)/m4/xstrtol.m4 \
- $(top_srcdir)/m4/yesno.m4 $(top_srcdir)/configure.ac
-am__configure_deps = $(am__aclocal_m4_deps) $(CONFIGURE_DEPENDENCIES) \
- $(ACLOCAL_M4)
-mkinstalldirs = $(install_sh) -d
-CONFIG_HEADER = $(top_builddir)/lib/config.h
-CONFIG_CLEAN_FILES =
-SCRIPTS = $(noinst_SCRIPTS)
-SOURCES =
-DIST_SOURCES =
-DISTFILES = $(DIST_COMMON) $(DIST_SOURCES) $(TEXINFOS) $(EXTRA_DIST)
-ABSOLUTE_DIRENT_H = @ABSOLUTE_DIRENT_H@
-ABSOLUTE_FCNTL_H = @ABSOLUTE_FCNTL_H@
-ABSOLUTE_INTTYPES_H = @ABSOLUTE_INTTYPES_H@
-ABSOLUTE_NETINET_IN_H = @ABSOLUTE_NETINET_IN_H@
-ABSOLUTE_STDINT_H = @ABSOLUTE_STDINT_H@
-ABSOLUTE_STDIO_H = @ABSOLUTE_STDIO_H@
-ABSOLUTE_STDLIB_H = @ABSOLUTE_STDLIB_H@
-ABSOLUTE_STRING_H = @ABSOLUTE_STRING_H@
-ABSOLUTE_SYS_SOCKET_H = @ABSOLUTE_SYS_SOCKET_H@
-ABSOLUTE_SYS_STAT_H = @ABSOLUTE_SYS_STAT_H@
-ABSOLUTE_SYS_TIME_H = @ABSOLUTE_SYS_TIME_H@
-ABSOLUTE_TIME_H = @ABSOLUTE_TIME_H@
-ABSOLUTE_UNISTD_H = @ABSOLUTE_UNISTD_H@
-ABSOLUTE_WCHAR_H = @ABSOLUTE_WCHAR_H@
-ABSOLUTE_WCTYPE_H = @ABSOLUTE_WCTYPE_H@
-ACLOCAL = @ACLOCAL@
-ALLOCA = @ALLOCA@
-ALLOCA_H = @ALLOCA_H@
-AMTAR = @AMTAR@
-ARPA_INET_H = @ARPA_INET_H@
-AUTOCONF = @AUTOCONF@
-AUTOHEADER = @AUTOHEADER@
-AUTOMAKE = @AUTOMAKE@
-AWK = @AWK@
-BITSIZEOF_PTRDIFF_T = @BITSIZEOF_PTRDIFF_T@
-BITSIZEOF_SIG_ATOMIC_T = @BITSIZEOF_SIG_ATOMIC_T@
-BITSIZEOF_SIZE_T = @BITSIZEOF_SIZE_T@
-BITSIZEOF_WCHAR_T = @BITSIZEOF_WCHAR_T@
-BITSIZEOF_WINT_T = @BITSIZEOF_WINT_T@
-CC = @CC@
-CCDEPMODE = @CCDEPMODE@
-CFLAGS = @CFLAGS@
-CPP = @CPP@
-CPPFLAGS = @CPPFLAGS@
-CYGPATH_W = @CYGPATH_W@
-DEFAULT_POSIX2_VERSION = @DEFAULT_POSIX2_VERSION@
-DEFS = @DEFS@
-DEPDIR = @DEPDIR@
-DF_PROG = @DF_PROG@
-DIRENT_H = @DIRENT_H@
-ECHO_C = @ECHO_C@
-ECHO_N = @ECHO_N@
-ECHO_T = @ECHO_T@
-EGREP = @EGREP@
-EOVERFLOW = @EOVERFLOW@
-EXEEXT = @EXEEXT@
-FCNTL_H = @FCNTL_H@
-FNMATCH_H = @FNMATCH_H@
-GETLOADAVG_LIBS = @GETLOADAVG_LIBS@
-GETOPT_H = @GETOPT_H@
-GLIBC21 = @GLIBC21@
-GMSGFMT = @GMSGFMT@
-GMSGFMT_015 = @GMSGFMT_015@
-GNULIB_CHOWN = @GNULIB_CHOWN@
-GNULIB_DUP2 = @GNULIB_DUP2@
-GNULIB_FCHDIR = @GNULIB_FCHDIR@
-GNULIB_FPRINTF_POSIX = @GNULIB_FPRINTF_POSIX@
-GNULIB_FTRUNCATE = @GNULIB_FTRUNCATE@
-GNULIB_GETCWD = @GNULIB_GETCWD@
-GNULIB_GETLOGIN_R = @GNULIB_GETLOGIN_R@
-GNULIB_GETSUBOPT = @GNULIB_GETSUBOPT@
-GNULIB_IMAXABS = @GNULIB_IMAXABS@
-GNULIB_IMAXDIV = @GNULIB_IMAXDIV@
-GNULIB_MBSCASECMP = @GNULIB_MBSCASECMP@
-GNULIB_MBSCASESTR = @GNULIB_MBSCASESTR@
-GNULIB_MBSCHR = @GNULIB_MBSCHR@
-GNULIB_MBSCSPN = @GNULIB_MBSCSPN@
-GNULIB_MBSLEN = @GNULIB_MBSLEN@
-GNULIB_MBSNCASECMP = @GNULIB_MBSNCASECMP@
-GNULIB_MBSPBRK = @GNULIB_MBSPBRK@
-GNULIB_MBSPCASECMP = @GNULIB_MBSPCASECMP@
-GNULIB_MBSRCHR = @GNULIB_MBSRCHR@
-GNULIB_MBSSEP = @GNULIB_MBSSEP@
-GNULIB_MBSSPN = @GNULIB_MBSSPN@
-GNULIB_MBSSTR = @GNULIB_MBSSTR@
-GNULIB_MBSTOK_R = @GNULIB_MBSTOK_R@
-GNULIB_MEMMEM = @GNULIB_MEMMEM@
-GNULIB_MEMPCPY = @GNULIB_MEMPCPY@
-GNULIB_MEMRCHR = @GNULIB_MEMRCHR@
-GNULIB_MKDTEMP = @GNULIB_MKDTEMP@
-GNULIB_MKSTEMP = @GNULIB_MKSTEMP@
-GNULIB_PRINTF_POSIX = @GNULIB_PRINTF_POSIX@
-GNULIB_READLINK = @GNULIB_READLINK@
-GNULIB_SNPRINTF = @GNULIB_SNPRINTF@
-GNULIB_SPRINTF_POSIX = @GNULIB_SPRINTF_POSIX@
-GNULIB_STPCPY = @GNULIB_STPCPY@
-GNULIB_STPNCPY = @GNULIB_STPNCPY@
-GNULIB_STRCASESTR = @GNULIB_STRCASESTR@
-GNULIB_STRCHRNUL = @GNULIB_STRCHRNUL@
-GNULIB_STRDUP = @GNULIB_STRDUP@
-GNULIB_STRNDUP = @GNULIB_STRNDUP@
-GNULIB_STRNLEN = @GNULIB_STRNLEN@
-GNULIB_STRPBRK = @GNULIB_STRPBRK@
-GNULIB_STRSEP = @GNULIB_STRSEP@
-GNULIB_STRTOIMAX = @GNULIB_STRTOIMAX@
-GNULIB_STRTOK_R = @GNULIB_STRTOK_R@
-GNULIB_STRTOUMAX = @GNULIB_STRTOUMAX@
-GNULIB_VFPRINTF_POSIX = @GNULIB_VFPRINTF_POSIX@
-GNULIB_VPRINTF_POSIX = @GNULIB_VPRINTF_POSIX@
-GNULIB_VSNPRINTF = @GNULIB_VSNPRINTF@
-GNULIB_VSPRINTF_POSIX = @GNULIB_VSPRINTF_POSIX@
-GNU_PACKAGE = @GNU_PACKAGE@
-GREP = @GREP@
-HAVE_DECL_GETLOGIN_R = @HAVE_DECL_GETLOGIN_R@
-HAVE_DECL_IMAXABS = @HAVE_DECL_IMAXABS@
-HAVE_DECL_IMAXDIV = @HAVE_DECL_IMAXDIV@
-HAVE_DECL_MEMMEM = @HAVE_DECL_MEMMEM@
-HAVE_DECL_MEMRCHR = @HAVE_DECL_MEMRCHR@
-HAVE_DECL_SNPRINTF = @HAVE_DECL_SNPRINTF@
-HAVE_DECL_STRDUP = @HAVE_DECL_STRDUP@
-HAVE_DECL_STRNCASECMP = @HAVE_DECL_STRNCASECMP@
-HAVE_DECL_STRNDUP = @HAVE_DECL_STRNDUP@
-HAVE_DECL_STRNLEN = @HAVE_DECL_STRNLEN@
-HAVE_DECL_STRTOIMAX = @HAVE_DECL_STRTOIMAX@
-HAVE_DECL_STRTOK_R = @HAVE_DECL_STRTOK_R@
-HAVE_DECL_STRTOUMAX = @HAVE_DECL_STRTOUMAX@
-HAVE_DECL_VSNPRINTF = @HAVE_DECL_VSNPRINTF@
-HAVE_DUP2 = @HAVE_DUP2@
-HAVE_FTRUNCATE = @HAVE_FTRUNCATE@
-HAVE_GETSUBOPT = @HAVE_GETSUBOPT@
-HAVE_INTTYPES_H = @HAVE_INTTYPES_H@
-HAVE_LONG_LONG_INT = @HAVE_LONG_LONG_INT@
-HAVE_MEMPCPY = @HAVE_MEMPCPY@
-HAVE_MKDTEMP = @HAVE_MKDTEMP@
-HAVE_NETINET_IN_H = @HAVE_NETINET_IN_H@
-HAVE_READLINK = @HAVE_READLINK@
-HAVE_SIGNED_SIG_ATOMIC_T = @HAVE_SIGNED_SIG_ATOMIC_T@
-HAVE_SIGNED_WCHAR_T = @HAVE_SIGNED_WCHAR_T@
-HAVE_SIGNED_WINT_T = @HAVE_SIGNED_WINT_T@
-HAVE_STDINT_H = @HAVE_STDINT_H@
-HAVE_STPCPY = @HAVE_STPCPY@
-HAVE_STPNCPY = @HAVE_STPNCPY@
-HAVE_STRCASECMP = @HAVE_STRCASECMP@
-HAVE_STRCASESTR = @HAVE_STRCASESTR@
-HAVE_STRCHRNUL = @HAVE_STRCHRNUL@
-HAVE_STRNDUP = @HAVE_STRNDUP@
-HAVE_STRPBRK = @HAVE_STRPBRK@
-HAVE_STRSEP = @HAVE_STRSEP@
-HAVE_STRUCT_TIMEVAL = @HAVE_STRUCT_TIMEVAL@
-HAVE_SYS_BITYPES_H = @HAVE_SYS_BITYPES_H@
-HAVE_SYS_INTTYPES_H = @HAVE_SYS_INTTYPES_H@
-HAVE_SYS_SOCKET_H = @HAVE_SYS_SOCKET_H@
-HAVE_SYS_TIME_H = @HAVE_SYS_TIME_H@
-HAVE_SYS_TYPES_H = @HAVE_SYS_TYPES_H@
-HAVE_UNISTD_H = @HAVE_UNISTD_H@
-HAVE_UNSIGNED_LONG_LONG_INT = @HAVE_UNSIGNED_LONG_LONG_INT@
-HAVE_WCTYPE_H = @HAVE_WCTYPE_H@
-HAVE_WINSOCK2_H = @HAVE_WINSOCK2_H@
-HAVE_WINT_T = @HAVE_WINT_T@
-HAVE_WS2TCPIP_H = @HAVE_WS2TCPIP_H@
-HAVE__BOOL = @HAVE__BOOL@
-HELP2MAN = @HELP2MAN@
-INSTALL = @INSTALL@
-INSTALL_DATA = @INSTALL_DATA@
-INSTALL_PROGRAM = @INSTALL_PROGRAM@
-INSTALL_SCRIPT = @INSTALL_SCRIPT@
-INSTALL_STRIP_PROGRAM = @INSTALL_STRIP_PROGRAM@
-INTLLIBS = @INTLLIBS@
-INTL_MACOSX_LIBS = @INTL_MACOSX_LIBS@
-INTTYPES_H = @INTTYPES_H@
-KMEM_GROUP = @KMEM_GROUP@
-LDFLAGS = @LDFLAGS@
-LIBCOREUTILS_LIBDEPS = @LIBCOREUTILS_LIBDEPS@
-LIBCOREUTILS_LTLIBDEPS = @LIBCOREUTILS_LTLIBDEPS@
-LIBICONV = @LIBICONV@
-LIBINTL = @LIBINTL@
-LIBOBJS = @LIBOBJS@
-LIBS = @LIBS@
-LIB_ACL = @LIB_ACL@
-LIB_ACL_TRIVIAL = @LIB_ACL_TRIVIAL@
-LIB_CLOCK_GETTIME = @LIB_CLOCK_GETTIME@
-LIB_CRYPT = @LIB_CRYPT@
-LIB_EACCESS = @LIB_EACCESS@
-LIB_FDATASYNC = @LIB_FDATASYNC@
-LIB_GETHRXTIME = @LIB_GETHRXTIME@
-LIB_NANOSLEEP = @LIB_NANOSLEEP@
-LN_S = @LN_S@
-LTLIBICONV = @LTLIBICONV@
-LTLIBINTL = @LTLIBINTL@
-LTLIBOBJS = @LTLIBOBJS@
-MAKEINFO = @MAKEINFO@
-MAN = @MAN@
-MKDIR_P = @MKDIR_P@
-MSGFMT = @MSGFMT@
-MSGFMT_015 = @MSGFMT_015@
-MSGMERGE = @MSGMERGE@
-NEED_SETGID = @NEED_SETGID@
-NETINET_IN_H = @NETINET_IN_H@
-OBJEXT = @OBJEXT@
-OPTIONAL_BIN_PROGS = @OPTIONAL_BIN_PROGS@
-PACKAGE = @PACKAGE@
-PACKAGE_BUGREPORT = @PACKAGE_BUGREPORT@
-PACKAGE_NAME = @PACKAGE_NAME@
-PACKAGE_STRING = @PACKAGE_STRING@
-PACKAGE_TARNAME = @PACKAGE_TARNAME@
-PACKAGE_VERSION = @PACKAGE_VERSION@
-PATH_SEPARATOR = @PATH_SEPARATOR@
-PERL = @PERL@
-POSUB = @POSUB@
-POW_LIB = @POW_LIB@
-PRIPTR_PREFIX = @PRIPTR_PREFIX@
-PRI_MACROS_BROKEN = @PRI_MACROS_BROKEN@
-PTRDIFF_T_SUFFIX = @PTRDIFF_T_SUFFIX@
-RANLIB = @RANLIB@
-REPLACE_CHOWN = @REPLACE_CHOWN@
-REPLACE_FCHDIR = @REPLACE_FCHDIR@
-REPLACE_FPRINTF = @REPLACE_FPRINTF@
-REPLACE_GETCWD = @REPLACE_GETCWD@
-REPLACE_GETTIMEOFDAY = @REPLACE_GETTIMEOFDAY@
-REPLACE_LOCALTIME_R = @REPLACE_LOCALTIME_R@
-REPLACE_MKSTEMP = @REPLACE_MKSTEMP@
-REPLACE_NANOSLEEP = @REPLACE_NANOSLEEP@
-REPLACE_PRINTF = @REPLACE_PRINTF@
-REPLACE_SNPRINTF = @REPLACE_SNPRINTF@
-REPLACE_SPRINTF = @REPLACE_SPRINTF@
-REPLACE_STRPTIME = @REPLACE_STRPTIME@
-REPLACE_TIMEGM = @REPLACE_TIMEGM@
-REPLACE_VFPRINTF = @REPLACE_VFPRINTF@
-REPLACE_VPRINTF = @REPLACE_VPRINTF@
-REPLACE_VSNPRINTF = @REPLACE_VSNPRINTF@
-REPLACE_VSPRINTF = @REPLACE_VSPRINTF@
-SEQ_LIBM = @SEQ_LIBM@
-SET_MAKE = @SET_MAKE@
-SHELL = @SHELL@
-SIG_ATOMIC_T_SUFFIX = @SIG_ATOMIC_T_SUFFIX@
-SIZE_T_SUFFIX = @SIZE_T_SUFFIX@
-STDBOOL_H = @STDBOOL_H@
-STDINT_H = @STDINT_H@
-STRIP = @STRIP@
-SYS_SOCKET_H = @SYS_SOCKET_H@
-SYS_STAT_H = @SYS_STAT_H@
-SYS_TIME_H = @SYS_TIME_H@
-SYS_TIME_H_DEFINES_STRUCT_TIMESPEC = @SYS_TIME_H_DEFINES_STRUCT_TIMESPEC@
-TIME_H_DEFINES_STRUCT_TIMESPEC = @TIME_H_DEFINES_STRUCT_TIMESPEC@
-U = @U@
-USE_NLS = @USE_NLS@
-VERSION = @VERSION@
-WCHAR_H = @WCHAR_H@
-WCHAR_T_SUFFIX = @WCHAR_T_SUFFIX@
-WCTYPE_H = @WCTYPE_H@
-WINT_T_SUFFIX = @WINT_T_SUFFIX@
-XGETTEXT = @XGETTEXT@
-XGETTEXT_015 = @XGETTEXT_015@
-YACC = @YACC@
-YFLAGS = @YFLAGS@
-abs_builddir = @abs_builddir@
-abs_srcdir = @abs_srcdir@
-abs_top_builddir = @abs_top_builddir@
-abs_top_srcdir = @abs_top_srcdir@
-ac_ct_CC = @ac_ct_CC@
-am__include = @am__include@
-am__leading_dot = @am__leading_dot@
-am__quote = @am__quote@
-am__tar = @am__tar@
-am__untar = @am__untar@
-bindir = @bindir@
-build = @build@
-build_alias = @build_alias@
-build_cpu = @build_cpu@
-build_os = @build_os@
-build_vendor = @build_vendor@
-builddir = @builddir@
-datadir = @datadir@
-datarootdir = @datarootdir@
-docdir = @docdir@
-dvidir = @dvidir@
-exec_prefix = @exec_prefix@
-gl_LIBOBJS = @gl_LIBOBJS@
-gl_LTLIBOBJS = @gl_LTLIBOBJS@
-host = @host@
-host_alias = @host_alias@
-host_cpu = @host_cpu@
-host_os = @host_os@
-host_vendor = @host_vendor@
-htmldir = @htmldir@
-includedir = @includedir@
-infodir = @infodir@
-install_sh = @install_sh@
-libdir = @libdir@
-libexecdir = @libexecdir@
-localedir = @localedir@
-localstatedir = @localstatedir@
-mandir = @mandir@
-mkdir_p = @mkdir_p@
-oldincludedir = @oldincludedir@
-pdfdir = @pdfdir@
-prefix = @prefix@
-program_transform_name = @program_transform_name@
-psdir = @psdir@
-sbindir = @sbindir@
-sharedstatedir = @sharedstatedir@
-srcdir = @srcdir@
-sysconfdir = @sysconfdir@
-target_alias = @target_alias@
-top_builddir = @top_builddir@
-top_srcdir = @top_srcdir@
-x = head
-explicit = in in-1024
-maint_gen = idem-0.I idem-0.X idem-1.I idem-1.X idem-2.I idem-2.X idem-3.I \
-idem-3.X basic-0-10.I basic-0-10.X basic-0-09.I basic-0-09.X basic-0-11.I \
-basic-0-11.X obs-0.I obs-0.X obs-1.I obs-1.X obs-2.I obs-2.X obs-3.I obs-3.X \
-fail-1.I fail-1.X null-1.I null-1.X no-oct-1.I no-oct-1.X no-oct-2.I \
-no-oct-2.X no-oct-3.I no-oct-3.X no-oct-4.I no-oct-4.X posix-0.I posix-0.X \
-posix-1.I posix-1.X posix-2.I posix-2.X posix-3.I posix-3.X
-
-run_gen = idem-0.O idem-0.E idem-1.O idem-1.E idem-2.O idem-2.E idem-3.O \
-idem-3.E basic-0-10.O basic-0-10.E basic-0-09.O basic-0-09.E basic-0-11.O \
-basic-0-11.E obs-0.O obs-0.E obs-1.O obs-1.E obs-2.O obs-2.E obs-3.O obs-3.E \
-obs-4.O obs-4.E obs-5.O obs-5.E fail-1.O fail-1.E null-1.O null-1.E \
-no-oct-1.O no-oct-1.E no-oct-2.O no-oct-2.E no-oct-3.O no-oct-3.E no-oct-4.O \
-no-oct-4.E posix-0.O posix-0.E posix-1.O posix-1.E posix-2.O posix-2.E \
-posix-3.O posix-3.E posix-4.O posix-4.E posix-5.O posix-5.E
-
-EXTRA_DIST = Test.pm $x-tests $(explicit) $(maint_gen)
-noinst_SCRIPTS = $x-tests
-TESTS_ENVIRONMENT = \
- CU_TEST_NAME=`basename $(abs_srcdir)`,$$tst \
- PATH="$(VG_PATH_PREFIX)`pwd`/../../src$(PATH_SEPARATOR)$$PATH"
-
-editpl = sed -e 's,@''PERL''@,$(PERL),g' -e 's,@''srcdir''@,$(srcdir),g'
-TESTS = $x-tests
-mk_script = $(srcdir)/../mk-script
-MAINTAINERCLEANFILES = $x-tests $(maint_gen)
-CLEANFILES = $(run_gen)
-all: all-am
-
-.SUFFIXES:
-$(srcdir)/Makefile.in: $(srcdir)/Makefile.am $(am__configure_deps)
- @for dep in $?; do \
- case '$(am__configure_deps)' in \
- *$$dep*) \
- cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh \
- && exit 0; \
- exit 1;; \
- esac; \
- done; \
- echo ' cd $(top_srcdir) && $(AUTOMAKE) --gnu tests/head/Makefile'; \
- cd $(top_srcdir) && \
- $(AUTOMAKE) --gnu tests/head/Makefile
-.PRECIOUS: Makefile
-Makefile: $(srcdir)/Makefile.in $(top_builddir)/config.status
- @case '$?' in \
- *config.status*) \
- cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh;; \
- *) \
- echo ' cd $(top_builddir) && $(SHELL) ./config.status $(subdir)/$@ $(am__depfiles_maybe)'; \
- cd $(top_builddir) && $(SHELL) ./config.status $(subdir)/$@ $(am__depfiles_maybe);; \
- esac;
-
-$(top_builddir)/config.status: $(top_srcdir)/configure $(CONFIG_STATUS_DEPENDENCIES)
- cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh
-
-$(top_srcdir)/configure: $(am__configure_deps)
- cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh
-$(ACLOCAL_M4): $(am__aclocal_m4_deps)
- cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh
-tags: TAGS
-TAGS:
-
-ctags: CTAGS
-CTAGS:
-
-
-check-TESTS: $(TESTS)
- @failed=0; all=0; xfail=0; xpass=0; skip=0; ws='[ ]'; \
- srcdir=$(srcdir); export srcdir; \
- list=' $(TESTS) '; \
- if test -n "$$list"; then \
- for tst in $$list; do \
- if test -f ./$$tst; then dir=./; \
- elif test -f $$tst; then dir=; \
- else dir="$(srcdir)/"; fi; \
- if $(TESTS_ENVIRONMENT) $${dir}$$tst; then \
- all=`expr $$all + 1`; \
- case " $(XFAIL_TESTS) " in \
- *$$ws$$tst$$ws*) \
- xpass=`expr $$xpass + 1`; \
- failed=`expr $$failed + 1`; \
- echo "XPASS: $$tst"; \
- ;; \
- *) \
- echo "PASS: $$tst"; \
- ;; \
- esac; \
- elif test $$? -ne 77; then \
- all=`expr $$all + 1`; \
- case " $(XFAIL_TESTS) " in \
- *$$ws$$tst$$ws*) \
- xfail=`expr $$xfail + 1`; \
- echo "XFAIL: $$tst"; \
- ;; \
- *) \
- failed=`expr $$failed + 1`; \
- echo "FAIL: $$tst"; \
- ;; \
- esac; \
- else \
- skip=`expr $$skip + 1`; \
- echo "SKIP: $$tst"; \
- fi; \
- done; \
- if test "$$failed" -eq 0; then \
- if test "$$xfail" -eq 0; then \
- banner="All $$all tests passed"; \
- else \
- banner="All $$all tests behaved as expected ($$xfail expected failures)"; \
- fi; \
- else \
- if test "$$xpass" -eq 0; then \
- banner="$$failed of $$all tests failed"; \
- else \
- banner="$$failed of $$all tests did not behave as expected ($$xpass unexpected passes)"; \
- fi; \
- fi; \
- dashes="$$banner"; \
- skipped=""; \
- if test "$$skip" -ne 0; then \
- skipped="($$skip tests were not run)"; \
- test `echo "$$skipped" | wc -c` -le `echo "$$banner" | wc -c` || \
- dashes="$$skipped"; \
- fi; \
- report=""; \
- if test "$$failed" -ne 0 && test -n "$(PACKAGE_BUGREPORT)"; then \
- report="Please report to $(PACKAGE_BUGREPORT)"; \
- test `echo "$$report" | wc -c` -le `echo "$$banner" | wc -c` || \
- dashes="$$report"; \
- fi; \
- dashes=`echo "$$dashes" | sed s/./=/g`; \
- echo "$$dashes"; \
- echo "$$banner"; \
- test -z "$$skipped" || echo "$$skipped"; \
- test -z "$$report" || echo "$$report"; \
- echo "$$dashes"; \
- test "$$failed" -eq 0; \
- else :; fi
-
-distdir: $(DISTFILES)
- @srcdirstrip=`echo "$(srcdir)" | sed 's/[].[^$$\\*]/\\\\&/g'`; \
- topsrcdirstrip=`echo "$(top_srcdir)" | sed 's/[].[^$$\\*]/\\\\&/g'`; \
- list='$(DISTFILES)'; \
- dist_files=`for file in $$list; do echo $$file; done | \
- sed -e "s|^$$srcdirstrip/||;t" \
- -e "s|^$$topsrcdirstrip/|$(top_builddir)/|;t"`; \
- case $$dist_files in \
- */*) $(MKDIR_P) `echo "$$dist_files" | \
- sed '/\//!d;s|^|$(distdir)/|;s,/[^/]*$$,,' | \
- sort -u` ;; \
- esac; \
- for file in $$dist_files; do \
- if test -f $$file || test -d $$file; then d=.; else d=$(srcdir); fi; \
- if test -d $$d/$$file; then \
- dir=`echo "/$$file" | sed -e 's,/[^/]*$$,,'`; \
- if test -d $(srcdir)/$$file && test $$d != $(srcdir); then \
- cp -pR $(srcdir)/$$file $(distdir)$$dir || exit 1; \
- fi; \
- cp -pR $$d/$$file $(distdir)$$dir || exit 1; \
- else \
- test -f $(distdir)/$$file \
- || cp -p $$d/$$file $(distdir)/$$file \
- || exit 1; \
- fi; \
- done
-check-am: all-am
- $(MAKE) $(AM_MAKEFLAGS) check-TESTS
-check: check-am
-all-am: Makefile $(SCRIPTS)
-installdirs:
-install: install-am
-install-exec: install-exec-am
-install-data: install-data-am
-uninstall: uninstall-am
-
-install-am: all-am
- @$(MAKE) $(AM_MAKEFLAGS) install-exec-am install-data-am
-
-installcheck: installcheck-am
-install-strip:
- $(MAKE) $(AM_MAKEFLAGS) INSTALL_PROGRAM="$(INSTALL_STRIP_PROGRAM)" \
- install_sh_PROGRAM="$(INSTALL_STRIP_PROGRAM)" INSTALL_STRIP_FLAG=-s \
- `test -z '$(STRIP)' || \
- echo "INSTALL_PROGRAM_ENV=STRIPPROG='$(STRIP)'"` install
-mostlyclean-generic:
-
-clean-generic:
- -test -z "$(CLEANFILES)" || rm -f $(CLEANFILES)
-
-distclean-generic:
- -test -z "$(CONFIG_CLEAN_FILES)" || rm -f $(CONFIG_CLEAN_FILES)
-
-maintainer-clean-generic:
- @echo "This command is intended for maintainers to use"
- @echo "it deletes files that may require special tools to rebuild."
- -test -z "$(MAINTAINERCLEANFILES)" || rm -f $(MAINTAINERCLEANFILES)
-clean: clean-am
-
-clean-am: clean-generic mostlyclean-am
-
-distclean: distclean-am
- -rm -f Makefile
-distclean-am: clean-am distclean-generic
-
-dvi: dvi-am
-
-dvi-am:
-
-html: html-am
-
-info: info-am
-
-info-am:
-
-install-data-am:
-
-install-dvi: install-dvi-am
-
-install-exec-am:
-
-install-html: install-html-am
-
-install-info: install-info-am
-
-install-man:
-
-install-pdf: install-pdf-am
-
-install-ps: install-ps-am
-
-installcheck-am:
-
-maintainer-clean: maintainer-clean-am
- -rm -f Makefile
-maintainer-clean-am: distclean-am maintainer-clean-generic
-
-mostlyclean: mostlyclean-am
-
-mostlyclean-am: mostlyclean-generic
-
-pdf: pdf-am
-
-pdf-am:
-
-ps: ps-am
-
-ps-am:
-
-uninstall-am:
-
-.MAKE: install-am install-strip
-
-.PHONY: all all-am check check-TESTS check-am clean clean-generic \
- distclean distclean-generic distdir dvi dvi-am html html-am \
- info info-am install install-am install-data install-data-am \
- install-dvi install-dvi-am install-exec install-exec-am \
- install-html install-html-am install-info install-info-am \
- install-man install-pdf install-pdf-am install-ps \
- install-ps-am install-strip installcheck installcheck-am \
- installdirs maintainer-clean maintainer-clean-generic \
- mostlyclean mostlyclean-generic pdf pdf-am ps ps-am uninstall \
- uninstall-am
-
-$(srcdir)/$x-tests: $(mk_script) Test.pm Makefile.am
- test '$x' = test && prog=../../src/$x || prog=$x; \
- $(PERL) -I$(srcdir) -w -- $(mk_script) $(srcdir) $$prog > $@.n
- mv $@.n $@
- chmod 755 $@
-
-check: $(maint_gen)
-
-$(srcdir)/Makefile.am: ../Makefile.am.in Test.pm $(mk_script)
- rm -f $@ $@t
- sed -n '1,/^##test-files-begin/p' $(srcdir)/../Makefile.am.in > $@t
- tool=`echo $(subdir)|sed 's/^tests.//;s/-test//'`; \
- echo "x = $$tool" >> $@t
- $(PERL) -I$(srcdir) -w -- $(mk_script) $(srcdir) --list >> $@t
- sed -n '/^##test-files-end/,$$p' $(srcdir)/../Makefile.am.in >> $@t
- chmod -w $@t
- mv $@t $@
-# Tell versions [3.59,3.63) of GNU make to not export all variables.
-# Otherwise a system limit (for SysV at least) may be exceeded.
-.NOEXPORT:
diff --git a/tests/head/Test.pm b/tests/head/Test.pm
deleted file mode 100644
index 263ccaf..0000000
--- a/tests/head/Test.pm
+++ /dev/null
@@ -1,110 +0,0 @@
-# Test "head".
-
-# Copyright (C) 1997, 1998, 1999, 2000, 2002, 2003, 2005 Free Software
-# Foundation, Inc.
-
-# This program is free software; you can redistribute it and/or modify
-# it under the terms of the GNU General Public License as published by
-# the Free Software Foundation; either version 2 of the License, or
-# (at your option) any later version.
-
-# This program is distributed in the hope that it will be useful,
-# but WITHOUT ANY WARRANTY; without even the implied warranty of
-# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
-# GNU General Public License for more details.
-
-# You should have received a copy of the GNU General Public License
-# along with this program; if not, write to the Free Software
-# Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA
-# 02110-1301, USA.
-
-package Test;
-require 5.002;
-use strict;
-
-my @tv = (
-# test name, options, input, expected output, expected return code
-#
-['idem-0', '', "", "", 0],
-['idem-1', '', "a", "a", 0],
-['idem-2', '', "\n", "\n", 0],
-['idem-3', '', "a\n", "a\n", 0],
-
-['basic-0-10', '',
- "1\n2\n3\n4\n5\n6\n7\n8\n9\n0\n",
- "1\n2\n3\n4\n5\n6\n7\n8\n9\n0\n", 0],
-
-['basic-0-09', '',
- "1\n2\n3\n4\n5\n6\n7\n8\n9\n",
- "1\n2\n3\n4\n5\n6\n7\n8\n9\n", 0],
-
-['basic-0-11', '',
- "1\n2\n3\n4\n5\n6\n7\n8\n9\n0\nb\n",
- "1\n2\n3\n4\n5\n6\n7\n8\n9\n0\n", 0],
-
-['obs-0', '-1', "1\n2\n", "1\n", 0],
-['obs-1', '-1c', "", "", 0],
-['obs-2', '-1c', "12", "1", 0],
-['obs-3', '-14c', "1234567890abcdefg", "1234567890abcd", 0],
-['obs-4', '-2b', [\'in'], [\'in-1024'], 0],
-['obs-5', '-1k', [\'in'], [\'in-1024'], 0],
-
-# This test fails for textutils-1.22, because head let 4096m overflow to 0
-# and did not fail. Now head fails with a diagnostic.
-
-# Disable this test because it fails on systems with 64-bit longs.
-# ['fail-0', '-n 4096m', "a\n", "", 1],
-
-# In spite of its name, this test passes -- just to contrast with the above.
-['fail-1', '-n 2048m', "a\n", "a\n", 0],
-
-# Make sure we don't break like AIX 4.3.1 on files with \0 in them.
-['null-1', '', "a\0a\n", "a\0a\n", 0],
-
-# Make sure counts are interpreted as decimal.
-# Before 2.0f, these would have been interpreted as octal
-['no-oct-1', '-08', "\n"x12, "\n"x8, 0],
-['no-oct-2', '-010', "\n"x12, "\n"x10, 0],
-['no-oct-3', '-n 08', "\n"x12, "\n"x8, 0],
-['no-oct-4', '-c 08', "\n"x12, "\n"x8, 0],
-
-);
-
-sub test_vector
-{
- my @derived_tests;
- foreach my $t (@tv)
- {
- my ($test_name, $flags, $in, $exp, $ret) = @$t;
-
- # Derive equivalent, posix-style tests from the obsolescent ones.
- next if $test_name !~ /^obs-/;
-
- $test_name =~ s/^obs-/posix-/;
- if ($flags =~ /-(\d+)$/)
- {
- $flags = "-n $1";
- }
- elsif ($flags =~ /-(\d+)([cbk])$/)
- {
- my $suffix = $2;
- $suffix = '' if $suffix eq 'c';
- $flags = "-c $1$suffix";
- }
- else
- {
- $flags = "-l $`";
- }
- push (@derived_tests, [$test_name, $flags, $in, $exp, $ret]);
- }
-
- foreach my $t (@tv, @derived_tests)
- {
- my ($test_name) = @$t;
- $Test::input_via{$test_name} = {REDIR => 0, FILE => 0, PIPE => 0}
- }
-
- return (@tv, @derived_tests);
-}
-
-1;
diff --git a/tests/head/basic-0-09.I b/tests/head/basic-0-09.I
deleted file mode 100644
index 0719398..0000000
--- a/tests/head/basic-0-09.I
+++ /dev/null
@@ -1,9 +0,0 @@
-1
-2
-3
-4
-5
-6
-7
-8
-9
diff --git a/tests/head/basic-0-09.X b/tests/head/basic-0-09.X
deleted file mode 100644
index 0719398..0000000
--- a/tests/head/basic-0-09.X
+++ /dev/null
@@ -1,9 +0,0 @@
-1
-2
-3
-4
-5
-6
-7
-8
-9
diff --git a/tests/head/basic-0-10.I b/tests/head/basic-0-10.I
deleted file mode 100644
index e53eaa1..0000000
--- a/tests/head/basic-0-10.I
+++ /dev/null
@@ -1,10 +0,0 @@
-1
-2
-3
-4
-5
-6
-7
-8
-9
-0
diff --git a/tests/head/basic-0-10.X b/tests/head/basic-0-10.X
deleted file mode 100644
index e53eaa1..0000000
--- a/tests/head/basic-0-10.X
+++ /dev/null
@@ -1,10 +0,0 @@
-1
-2
-3
-4
-5
-6
-7
-8
-9
-0
diff --git a/tests/head/basic-0-11.I b/tests/head/basic-0-11.I
deleted file mode 100644
index 6424b5d..0000000
--- a/tests/head/basic-0-11.I
+++ /dev/null
@@ -1,11 +0,0 @@
-1
-2
-3
-4
-5
-6
-7
-8
-9
-0
-b
diff --git a/tests/head/basic-0-11.X b/tests/head/basic-0-11.X
deleted file mode 100644
index e53eaa1..0000000
--- a/tests/head/basic-0-11.X
+++ /dev/null
@@ -1,10 +0,0 @@
-1
-2
-3
-4
-5
-6
-7
-8
-9
-0
diff --git a/tests/head/fail-1.I b/tests/head/fail-1.I
deleted file mode 100644
index 7898192..0000000
--- a/tests/head/fail-1.I
+++ /dev/null
@@ -1 +0,0 @@
-a
diff --git a/tests/head/fail-1.X b/tests/head/fail-1.X
deleted file mode 100644
index 7898192..0000000
--- a/tests/head/fail-1.X
+++ /dev/null
@@ -1 +0,0 @@
-a
diff --git a/tests/head/head-tests b/tests/head/head-tests
deleted file mode 100755
index 3b2d37d..0000000
--- a/tests/head/head-tests
+++ /dev/null
@@ -1,1377 +0,0 @@
-#! /bin/sh
-# This script was generated automatically by mk-script.
-case $# in
- 0) xx='head';;
- *) xx="$1";;
-esac
-test "$VERBOSE" && echo=echo || echo=:
-$echo testing program: $xx
-errors=0
-test "$srcdir" || srcdir=.
-test "$VERBOSE" && $xx --version 2> /dev/null
-
-# Make sure we get English translations.
-LANGUAGE=C
-export LANGUAGE
-LC_ALL=C
-export LC_ALL
-LANG=C
-export LANG
-
-$xx $srcdir/idem-0.I > idem-0.O 2> idem-0.E
-code=$?
-if test $code != 0; then
- $echo "Test idem-0(F) failed: $xx return code $code differs from expected value 0" 1>&2
- errors=`expr $errors + 1`
-else
- cmp idem-0.O $srcdir/idem-0.X > /dev/null 2>&1
- case $? in
- 0) if test "$VERBOSE"; then $echo "passed idem-0(F)"; fi;;
- 1) $echo "Test idem-0(F) failed: files idem-0.O and $srcdir/idem-0.X differ" 1>&2
- (diff -c idem-0.O $srcdir/idem-0.X) 2> /dev/null
- errors=`expr $errors + 1`;;
- 2) $echo "Test idem-0(F) may have failed." 1>&2
- $echo The command "cmp idem-0.O $srcdir/idem-0.X" failed. 1>&2
- errors=`expr $errors + 1`;;
- esac
-fi
-test -s idem-0.E || rm -f idem-0.E
-cat $srcdir/idem-0.I | $xx > idem-0.O 2> idem-0.E
-code=$?
-if test $code != 0; then
- $echo "Test idem-0(|) failed: $xx return code $code differs from expected value 0" 1>&2
- errors=`expr $errors + 1`
-else
- cmp idem-0.O $srcdir/idem-0.X > /dev/null 2>&1
- case $? in
- 0) if test "$VERBOSE"; then $echo "passed idem-0(|)"; fi;;
- 1) $echo "Test idem-0(|) failed: files idem-0.O and $srcdir/idem-0.X differ" 1>&2
- (diff -c idem-0.O $srcdir/idem-0.X) 2> /dev/null
- errors=`expr $errors + 1`;;
- 2) $echo "Test idem-0(|) may have failed." 1>&2
- $echo The command "cmp idem-0.O $srcdir/idem-0.X" failed. 1>&2
- errors=`expr $errors + 1`;;
- esac
-fi
-test -s idem-0.E || rm -f idem-0.E
-$xx < $srcdir/idem-0.I > idem-0.O 2> idem-0.E
-code=$?
-if test $code != 0; then
- $echo "Test idem-0(<) failed: $xx return code $code differs from expected value 0" 1>&2
- errors=`expr $errors + 1`
-else
- cmp idem-0.O $srcdir/idem-0.X > /dev/null 2>&1
- case $? in
- 0) if test "$VERBOSE"; then $echo "passed idem-0(<)"; fi;;
- 1) $echo "Test idem-0(<) failed: files idem-0.O and $srcdir/idem-0.X differ" 1>&2
- (diff -c idem-0.O $srcdir/idem-0.X) 2> /dev/null
- errors=`expr $errors + 1`;;
- 2) $echo "Test idem-0(<) may have failed." 1>&2
- $echo The command "cmp idem-0.O $srcdir/idem-0.X" failed. 1>&2
- errors=`expr $errors + 1`;;
- esac
-fi
-test -s idem-0.E || rm -f idem-0.E
-$xx $srcdir/idem-1.I > idem-1.O 2> idem-1.E
-code=$?
-if test $code != 0; then
- $echo "Test idem-1(F) failed: $xx return code $code differs from expected value 0" 1>&2
- errors=`expr $errors + 1`
-else
- cmp idem-1.O $srcdir/idem-1.X > /dev/null 2>&1
- case $? in
- 0) if test "$VERBOSE"; then $echo "passed idem-1(F)"; fi;;
- 1) $echo "Test idem-1(F) failed: files idem-1.O and $srcdir/idem-1.X differ" 1>&2
- (diff -c idem-1.O $srcdir/idem-1.X) 2> /dev/null
- errors=`expr $errors + 1`;;
- 2) $echo "Test idem-1(F) may have failed." 1>&2
- $echo The command "cmp idem-1.O $srcdir/idem-1.X" failed. 1>&2
- errors=`expr $errors + 1`;;
- esac
-fi
-test -s idem-1.E || rm -f idem-1.E
-cat $srcdir/idem-1.I | $xx > idem-1.O 2> idem-1.E
-code=$?
-if test $code != 0; then
- $echo "Test idem-1(|) failed: $xx return code $code differs from expected value 0" 1>&2
- errors=`expr $errors + 1`
-else
- cmp idem-1.O $srcdir/idem-1.X > /dev/null 2>&1
- case $? in
- 0) if test "$VERBOSE"; then $echo "passed idem-1(|)"; fi;;
- 1) $echo "Test idem-1(|) failed: files idem-1.O and $srcdir/idem-1.X differ" 1>&2
- (diff -c idem-1.O $srcdir/idem-1.X) 2> /dev/null
- errors=`expr $errors + 1`;;
- 2) $echo "Test idem-1(|) may have failed." 1>&2
- $echo The command "cmp idem-1.O $srcdir/idem-1.X" failed. 1>&2
- errors=`expr $errors + 1`;;
- esac
-fi
-test -s idem-1.E || rm -f idem-1.E
-$xx < $srcdir/idem-1.I > idem-1.O 2> idem-1.E
-code=$?
-if test $code != 0; then
- $echo "Test idem-1(<) failed: $xx return code $code differs from expected value 0" 1>&2
- errors=`expr $errors + 1`
-else
- cmp idem-1.O $srcdir/idem-1.X > /dev/null 2>&1
- case $? in
- 0) if test "$VERBOSE"; then $echo "passed idem-1(<)"; fi;;
- 1) $echo "Test idem-1(<) failed: files idem-1.O and $srcdir/idem-1.X differ" 1>&2
- (diff -c idem-1.O $srcdir/idem-1.X) 2> /dev/null
- errors=`expr $errors + 1`;;
- 2) $echo "Test idem-1(<) may have failed." 1>&2
- $echo The command "cmp idem-1.O $srcdir/idem-1.X" failed. 1>&2
- errors=`expr $errors + 1`;;
- esac
-fi
-test -s idem-1.E || rm -f idem-1.E
-$xx $srcdir/idem-2.I > idem-2.O 2> idem-2.E
-code=$?
-if test $code != 0; then
- $echo "Test idem-2(F) failed: $xx return code $code differs from expected value 0" 1>&2
- errors=`expr $errors + 1`
-else
- cmp idem-2.O $srcdir/idem-2.X > /dev/null 2>&1
- case $? in
- 0) if test "$VERBOSE"; then $echo "passed idem-2(F)"; fi;;
- 1) $echo "Test idem-2(F) failed: files idem-2.O and $srcdir/idem-2.X differ" 1>&2
- (diff -c idem-2.O $srcdir/idem-2.X) 2> /dev/null
- errors=`expr $errors + 1`;;
- 2) $echo "Test idem-2(F) may have failed." 1>&2
- $echo The command "cmp idem-2.O $srcdir/idem-2.X" failed. 1>&2
- errors=`expr $errors + 1`;;
- esac
-fi
-test -s idem-2.E || rm -f idem-2.E
-cat $srcdir/idem-2.I | $xx > idem-2.O 2> idem-2.E
-code=$?
-if test $code != 0; then
- $echo "Test idem-2(|) failed: $xx return code $code differs from expected value 0" 1>&2
- errors=`expr $errors + 1`
-else
- cmp idem-2.O $srcdir/idem-2.X > /dev/null 2>&1
- case $? in
- 0) if test "$VERBOSE"; then $echo "passed idem-2(|)"; fi;;
- 1) $echo "Test idem-2(|) failed: files idem-2.O and $srcdir/idem-2.X differ" 1>&2
- (diff -c idem-2.O $srcdir/idem-2.X) 2> /dev/null
- errors=`expr $errors + 1`;;
- 2) $echo "Test idem-2(|) may have failed." 1>&2
- $echo The command "cmp idem-2.O $srcdir/idem-2.X" failed. 1>&2
- errors=`expr $errors + 1`;;
- esac
-fi
-test -s idem-2.E || rm -f idem-2.E
-$xx < $srcdir/idem-2.I > idem-2.O 2> idem-2.E
-code=$?
-if test $code != 0; then
- $echo "Test idem-2(<) failed: $xx return code $code differs from expected value 0" 1>&2
- errors=`expr $errors + 1`
-else
- cmp idem-2.O $srcdir/idem-2.X > /dev/null 2>&1
- case $? in
- 0) if test "$VERBOSE"; then $echo "passed idem-2(<)"; fi;;
- 1) $echo "Test idem-2(<) failed: files idem-2.O and $srcdir/idem-2.X differ" 1>&2
- (diff -c idem-2.O $srcdir/idem-2.X) 2> /dev/null
- errors=`expr $errors + 1`;;
- 2) $echo "Test idem-2(<) may have failed." 1>&2
- $echo The command "cmp idem-2.O $srcdir/idem-2.X" failed. 1>&2
- errors=`expr $errors + 1`;;
- esac
-fi
-test -s idem-2.E || rm -f idem-2.E
-$xx $srcdir/idem-3.I > idem-3.O 2> idem-3.E
-code=$?
-if test $code != 0; then
- $echo "Test idem-3(F) failed: $xx return code $code differs from expected value 0" 1>&2
- errors=`expr $errors + 1`
-else
- cmp idem-3.O $srcdir/idem-3.X > /dev/null 2>&1
- case $? in
- 0) if test "$VERBOSE"; then $echo "passed idem-3(F)"; fi;;
- 1) $echo "Test idem-3(F) failed: files idem-3.O and $srcdir/idem-3.X differ" 1>&2
- (diff -c idem-3.O $srcdir/idem-3.X) 2> /dev/null
- errors=`expr $errors + 1`;;
- 2) $echo "Test idem-3(F) may have failed." 1>&2
- $echo The command "cmp idem-3.O $srcdir/idem-3.X" failed. 1>&2
- errors=`expr $errors + 1`;;
- esac
-fi
-test -s idem-3.E || rm -f idem-3.E
-cat $srcdir/idem-3.I | $xx > idem-3.O 2> idem-3.E
-code=$?
-if test $code != 0; then
- $echo "Test idem-3(|) failed: $xx return code $code differs from expected value 0" 1>&2
- errors=`expr $errors + 1`
-else
- cmp idem-3.O $srcdir/idem-3.X > /dev/null 2>&1
- case $? in
- 0) if test "$VERBOSE"; then $echo "passed idem-3(|)"; fi;;
- 1) $echo "Test idem-3(|) failed: files idem-3.O and $srcdir/idem-3.X differ" 1>&2
- (diff -c idem-3.O $srcdir/idem-3.X) 2> /dev/null
- errors=`expr $errors + 1`;;
- 2) $echo "Test idem-3(|) may have failed." 1>&2
- $echo The command "cmp idem-3.O $srcdir/idem-3.X" failed. 1>&2
- errors=`expr $errors + 1`;;
- esac
-fi
-test -s idem-3.E || rm -f idem-3.E
-$xx < $srcdir/idem-3.I > idem-3.O 2> idem-3.E
-code=$?
-if test $code != 0; then
- $echo "Test idem-3(<) failed: $xx return code $code differs from expected value 0" 1>&2
- errors=`expr $errors + 1`
-else
- cmp idem-3.O $srcdir/idem-3.X > /dev/null 2>&1
- case $? in
- 0) if test "$VERBOSE"; then $echo "passed idem-3(<)"; fi;;
- 1) $echo "Test idem-3(<) failed: files idem-3.O and $srcdir/idem-3.X differ" 1>&2
- (diff -c idem-3.O $srcdir/idem-3.X) 2> /dev/null
- errors=`expr $errors + 1`;;
- 2) $echo "Test idem-3(<) may have failed." 1>&2
- $echo The command "cmp idem-3.O $srcdir/idem-3.X" failed. 1>&2
- errors=`expr $errors + 1`;;
- esac
-fi
-test -s idem-3.E || rm -f idem-3.E
-$xx $srcdir/basic-0-10.I > basic-0-10.O 2> basic-0-10.E
-code=$?
-if test $code != 0; then
- $echo "Test basic-0-10(F) failed: $xx return code $code differs from expected value 0" 1>&2
- errors=`expr $errors + 1`
-else
- cmp basic-0-10.O $srcdir/basic-0-10.X > /dev/null 2>&1
- case $? in
- 0) if test "$VERBOSE"; then $echo "passed basic-0-10(F)"; fi;;
- 1) $echo "Test basic-0-10(F) failed: files basic-0-10.O and $srcdir/basic-0-10.X differ" 1>&2
- (diff -c basic-0-10.O $srcdir/basic-0-10.X) 2> /dev/null
- errors=`expr $errors + 1`;;
- 2) $echo "Test basic-0-10(F) may have failed." 1>&2
- $echo The command "cmp basic-0-10.O $srcdir/basic-0-10.X" failed. 1>&2
- errors=`expr $errors + 1`;;
- esac
-fi
-test -s basic-0-10.E || rm -f basic-0-10.E
-cat $srcdir/basic-0-10.I | $xx > basic-0-10.O 2> basic-0-10.E
-code=$?
-if test $code != 0; then
- $echo "Test basic-0-10(|) failed: $xx return code $code differs from expected value 0" 1>&2
- errors=`expr $errors + 1`
-else
- cmp basic-0-10.O $srcdir/basic-0-10.X > /dev/null 2>&1
- case $? in
- 0) if test "$VERBOSE"; then $echo "passed basic-0-10(|)"; fi;;
- 1) $echo "Test basic-0-10(|) failed: files basic-0-10.O and $srcdir/basic-0-10.X differ" 1>&2
- (diff -c basic-0-10.O $srcdir/basic-0-10.X) 2> /dev/null
- errors=`expr $errors + 1`;;
- 2) $echo "Test basic-0-10(|) may have failed." 1>&2
- $echo The command "cmp basic-0-10.O $srcdir/basic-0-10.X" failed. 1>&2
- errors=`expr $errors + 1`;;
- esac
-fi
-test -s basic-0-10.E || rm -f basic-0-10.E
-$xx < $srcdir/basic-0-10.I > basic-0-10.O 2> basic-0-10.E
-code=$?
-if test $code != 0; then
- $echo "Test basic-0-10(<) failed: $xx return code $code differs from expected value 0" 1>&2
- errors=`expr $errors + 1`
-else
- cmp basic-0-10.O $srcdir/basic-0-10.X > /dev/null 2>&1
- case $? in
- 0) if test "$VERBOSE"; then $echo "passed basic-0-10(<)"; fi;;
- 1) $echo "Test basic-0-10(<) failed: files basic-0-10.O and $srcdir/basic-0-10.X differ" 1>&2
- (diff -c basic-0-10.O $srcdir/basic-0-10.X) 2> /dev/null
- errors=`expr $errors + 1`;;
- 2) $echo "Test basic-0-10(<) may have failed." 1>&2
- $echo The command "cmp basic-0-10.O $srcdir/basic-0-10.X" failed. 1>&2
- errors=`expr $errors + 1`;;
- esac
-fi
-test -s basic-0-10.E || rm -f basic-0-10.E
-$xx $srcdir/basic-0-09.I > basic-0-09.O 2> basic-0-09.E
-code=$?
-if test $code != 0; then
- $echo "Test basic-0-09(F) failed: $xx return code $code differs from expected value 0" 1>&2
- errors=`expr $errors + 1`
-else
- cmp basic-0-09.O $srcdir/basic-0-09.X > /dev/null 2>&1
- case $? in
- 0) if test "$VERBOSE"; then $echo "passed basic-0-09(F)"; fi;;
- 1) $echo "Test basic-0-09(F) failed: files basic-0-09.O and $srcdir/basic-0-09.X differ" 1>&2
- (diff -c basic-0-09.O $srcdir/basic-0-09.X) 2> /dev/null
- errors=`expr $errors + 1`;;
- 2) $echo "Test basic-0-09(F) may have failed." 1>&2
- $echo The command "cmp basic-0-09.O $srcdir/basic-0-09.X" failed. 1>&2
- errors=`expr $errors + 1`;;
- esac
-fi
-test -s basic-0-09.E || rm -f basic-0-09.E
-cat $srcdir/basic-0-09.I | $xx > basic-0-09.O 2> basic-0-09.E
-code=$?
-if test $code != 0; then
- $echo "Test basic-0-09(|) failed: $xx return code $code differs from expected value 0" 1>&2
- errors=`expr $errors + 1`
-else
- cmp basic-0-09.O $srcdir/basic-0-09.X > /dev/null 2>&1
- case $? in
- 0) if test "$VERBOSE"; then $echo "passed basic-0-09(|)"; fi;;
- 1) $echo "Test basic-0-09(|) failed: files basic-0-09.O and $srcdir/basic-0-09.X differ" 1>&2
- (diff -c basic-0-09.O $srcdir/basic-0-09.X) 2> /dev/null
- errors=`expr $errors + 1`;;
- 2) $echo "Test basic-0-09(|) may have failed." 1>&2
- $echo The command "cmp basic-0-09.O $srcdir/basic-0-09.X" failed. 1>&2
- errors=`expr $errors + 1`;;
- esac
-fi
-test -s basic-0-09.E || rm -f basic-0-09.E
-$xx < $srcdir/basic-0-09.I > basic-0-09.O 2> basic-0-09.E
-code=$?
-if test $code != 0; then
- $echo "Test basic-0-09(<) failed: $xx return code $code differs from expected value 0" 1>&2
- errors=`expr $errors + 1`
-else
- cmp basic-0-09.O $srcdir/basic-0-09.X > /dev/null 2>&1
- case $? in
- 0) if test "$VERBOSE"; then $echo "passed basic-0-09(<)"; fi;;
- 1) $echo "Test basic-0-09(<) failed: files basic-0-09.O and $srcdir/basic-0-09.X differ" 1>&2
- (diff -c basic-0-09.O $srcdir/basic-0-09.X) 2> /dev/null
- errors=`expr $errors + 1`;;
- 2) $echo "Test basic-0-09(<) may have failed." 1>&2
- $echo The command "cmp basic-0-09.O $srcdir/basic-0-09.X" failed. 1>&2
- errors=`expr $errors + 1`;;
- esac
-fi
-test -s basic-0-09.E || rm -f basic-0-09.E
-$xx $srcdir/basic-0-11.I > basic-0-11.O 2> basic-0-11.E
-code=$?
-if test $code != 0; then
- $echo "Test basic-0-11(F) failed: $xx return code $code differs from expected value 0" 1>&2
- errors=`expr $errors + 1`
-else
- cmp basic-0-11.O $srcdir/basic-0-11.X > /dev/null 2>&1
- case $? in
- 0) if test "$VERBOSE"; then $echo "passed basic-0-11(F)"; fi;;
- 1) $echo "Test basic-0-11(F) failed: files basic-0-11.O and $srcdir/basic-0-11.X differ" 1>&2
- (diff -c basic-0-11.O $srcdir/basic-0-11.X) 2> /dev/null
- errors=`expr $errors + 1`;;
- 2) $echo "Test basic-0-11(F) may have failed." 1>&2
- $echo The command "cmp basic-0-11.O $srcdir/basic-0-11.X" failed. 1>&2
- errors=`expr $errors + 1`;;
- esac
-fi
-test -s basic-0-11.E || rm -f basic-0-11.E
-cat $srcdir/basic-0-11.I | $xx > basic-0-11.O 2> basic-0-11.E
-code=$?
-if test $code != 0; then
- $echo "Test basic-0-11(|) failed: $xx return code $code differs from expected value 0" 1>&2
- errors=`expr $errors + 1`
-else
- cmp basic-0-11.O $srcdir/basic-0-11.X > /dev/null 2>&1
- case $? in
- 0) if test "$VERBOSE"; then $echo "passed basic-0-11(|)"; fi;;
- 1) $echo "Test basic-0-11(|) failed: files basic-0-11.O and $srcdir/basic-0-11.X differ" 1>&2
- (diff -c basic-0-11.O $srcdir/basic-0-11.X) 2> /dev/null
- errors=`expr $errors + 1`;;
- 2) $echo "Test basic-0-11(|) may have failed." 1>&2
- $echo The command "cmp basic-0-11.O $srcdir/basic-0-11.X" failed. 1>&2
- errors=`expr $errors + 1`;;
- esac
-fi
-test -s basic-0-11.E || rm -f basic-0-11.E
-$xx < $srcdir/basic-0-11.I > basic-0-11.O 2> basic-0-11.E
-code=$?
-if test $code != 0; then
- $echo "Test basic-0-11(<) failed: $xx return code $code differs from expected value 0" 1>&2
- errors=`expr $errors + 1`
-else
- cmp basic-0-11.O $srcdir/basic-0-11.X > /dev/null 2>&1
- case $? in
- 0) if test "$VERBOSE"; then $echo "passed basic-0-11(<)"; fi;;
- 1) $echo "Test basic-0-11(<) failed: files basic-0-11.O and $srcdir/basic-0-11.X differ" 1>&2
- (diff -c basic-0-11.O $srcdir/basic-0-11.X) 2> /dev/null
- errors=`expr $errors + 1`;;
- 2) $echo "Test basic-0-11(<) may have failed." 1>&2
- $echo The command "cmp basic-0-11.O $srcdir/basic-0-11.X" failed. 1>&2
- errors=`expr $errors + 1`;;
- esac
-fi
-test -s basic-0-11.E || rm -f basic-0-11.E
-$xx -1 $srcdir/obs-0.I > obs-0.O 2> obs-0.E
-code=$?
-if test $code != 0; then
- $echo "Test obs-0(F) failed: $xx return code $code differs from expected value 0" 1>&2
- errors=`expr $errors + 1`
-else
- cmp obs-0.O $srcdir/obs-0.X > /dev/null 2>&1
- case $? in
- 0) if test "$VERBOSE"; then $echo "passed obs-0(F)"; fi;;
- 1) $echo "Test obs-0(F) failed: files obs-0.O and $srcdir/obs-0.X differ" 1>&2
- (diff -c obs-0.O $srcdir/obs-0.X) 2> /dev/null
- errors=`expr $errors + 1`;;
- 2) $echo "Test obs-0(F) may have failed." 1>&2
- $echo The command "cmp obs-0.O $srcdir/obs-0.X" failed. 1>&2
- errors=`expr $errors + 1`;;
- esac
-fi
-test -s obs-0.E || rm -f obs-0.E
-cat $srcdir/obs-0.I | $xx -1 > obs-0.O 2> obs-0.E
-code=$?
-if test $code != 0; then
- $echo "Test obs-0(|) failed: $xx return code $code differs from expected value 0" 1>&2
- errors=`expr $errors + 1`
-else
- cmp obs-0.O $srcdir/obs-0.X > /dev/null 2>&1
- case $? in
- 0) if test "$VERBOSE"; then $echo "passed obs-0(|)"; fi;;
- 1) $echo "Test obs-0(|) failed: files obs-0.O and $srcdir/obs-0.X differ" 1>&2
- (diff -c obs-0.O $srcdir/obs-0.X) 2> /dev/null
- errors=`expr $errors + 1`;;
- 2) $echo "Test obs-0(|) may have failed." 1>&2
- $echo The command "cmp obs-0.O $srcdir/obs-0.X" failed. 1>&2
- errors=`expr $errors + 1`;;
- esac
-fi
-test -s obs-0.E || rm -f obs-0.E
-$xx -1 < $srcdir/obs-0.I > obs-0.O 2> obs-0.E
-code=$?
-if test $code != 0; then
- $echo "Test obs-0(<) failed: $xx return code $code differs from expected value 0" 1>&2
- errors=`expr $errors + 1`
-else
- cmp obs-0.O $srcdir/obs-0.X > /dev/null 2>&1
- case $? in
- 0) if test "$VERBOSE"; then $echo "passed obs-0(<)"; fi;;
- 1) $echo "Test obs-0(<) failed: files obs-0.O and $srcdir/obs-0.X differ" 1>&2
- (diff -c obs-0.O $srcdir/obs-0.X) 2> /dev/null
- errors=`expr $errors + 1`;;
- 2) $echo "Test obs-0(<) may have failed." 1>&2
- $echo The command "cmp obs-0.O $srcdir/obs-0.X" failed. 1>&2
- errors=`expr $errors + 1`;;
- esac
-fi
-test -s obs-0.E || rm -f obs-0.E
-$xx -1c $srcdir/obs-1.I > obs-1.O 2> obs-1.E
-code=$?
-if test $code != 0; then
- $echo "Test obs-1(F) failed: $xx return code $code differs from expected value 0" 1>&2
- errors=`expr $errors + 1`
-else
- cmp obs-1.O $srcdir/obs-1.X > /dev/null 2>&1
- case $? in
- 0) if test "$VERBOSE"; then $echo "passed obs-1(F)"; fi;;
- 1) $echo "Test obs-1(F) failed: files obs-1.O and $srcdir/obs-1.X differ" 1>&2
- (diff -c obs-1.O $srcdir/obs-1.X) 2> /dev/null
- errors=`expr $errors + 1`;;
- 2) $echo "Test obs-1(F) may have failed." 1>&2
- $echo The command "cmp obs-1.O $srcdir/obs-1.X" failed. 1>&2
- errors=`expr $errors + 1`;;
- esac
-fi
-test -s obs-1.E || rm -f obs-1.E
-cat $srcdir/obs-1.I | $xx -1c > obs-1.O 2> obs-1.E
-code=$?
-if test $code != 0; then
- $echo "Test obs-1(|) failed: $xx return code $code differs from expected value 0" 1>&2
- errors=`expr $errors + 1`
-else
- cmp obs-1.O $srcdir/obs-1.X > /dev/null 2>&1
- case $? in
- 0) if test "$VERBOSE"; then $echo "passed obs-1(|)"; fi;;
- 1) $echo "Test obs-1(|) failed: files obs-1.O and $srcdir/obs-1.X differ" 1>&2
- (diff -c obs-1.O $srcdir/obs-1.X) 2> /dev/null
- errors=`expr $errors + 1`;;
- 2) $echo "Test obs-1(|) may have failed." 1>&2
- $echo The command "cmp obs-1.O $srcdir/obs-1.X" failed. 1>&2
- errors=`expr $errors + 1`;;
- esac
-fi
-test -s obs-1.E || rm -f obs-1.E
-$xx -1c < $srcdir/obs-1.I > obs-1.O 2> obs-1.E
-code=$?
-if test $code != 0; then
- $echo "Test obs-1(<) failed: $xx return code $code differs from expected value 0" 1>&2
- errors=`expr $errors + 1`
-else
- cmp obs-1.O $srcdir/obs-1.X > /dev/null 2>&1
- case $? in
- 0) if test "$VERBOSE"; then $echo "passed obs-1(<)"; fi;;
- 1) $echo "Test obs-1(<) failed: files obs-1.O and $srcdir/obs-1.X differ" 1>&2
- (diff -c obs-1.O $srcdir/obs-1.X) 2> /dev/null
- errors=`expr $errors + 1`;;
- 2) $echo "Test obs-1(<) may have failed." 1>&2
- $echo The command "cmp obs-1.O $srcdir/obs-1.X" failed. 1>&2
- errors=`expr $errors + 1`;;
- esac
-fi
-test -s obs-1.E || rm -f obs-1.E
-$xx -1c $srcdir/obs-2.I > obs-2.O 2> obs-2.E
-code=$?
-if test $code != 0; then
- $echo "Test obs-2(F) failed: $xx return code $code differs from expected value 0" 1>&2
- errors=`expr $errors + 1`
-else
- cmp obs-2.O $srcdir/obs-2.X > /dev/null 2>&1
- case $? in
- 0) if test "$VERBOSE"; then $echo "passed obs-2(F)"; fi;;
- 1) $echo "Test obs-2(F) failed: files obs-2.O and $srcdir/obs-2.X differ" 1>&2
- (diff -c obs-2.O $srcdir/obs-2.X) 2> /dev/null
- errors=`expr $errors + 1`;;
- 2) $echo "Test obs-2(F) may have failed." 1>&2
- $echo The command "cmp obs-2.O $srcdir/obs-2.X" failed. 1>&2
- errors=`expr $errors + 1`;;
- esac
-fi
-test -s obs-2.E || rm -f obs-2.E
-cat $srcdir/obs-2.I | $xx -1c > obs-2.O 2> obs-2.E
-code=$?
-if test $code != 0; then
- $echo "Test obs-2(|) failed: $xx return code $code differs from expected value 0" 1>&2
- errors=`expr $errors + 1`
-else
- cmp obs-2.O $srcdir/obs-2.X > /dev/null 2>&1
- case $? in
- 0) if test "$VERBOSE"; then $echo "passed obs-2(|)"; fi;;
- 1) $echo "Test obs-2(|) failed: files obs-2.O and $srcdir/obs-2.X differ" 1>&2
- (diff -c obs-2.O $srcdir/obs-2.X) 2> /dev/null
- errors=`expr $errors + 1`;;
- 2) $echo "Test obs-2(|) may have failed." 1>&2
- $echo The command "cmp obs-2.O $srcdir/obs-2.X" failed. 1>&2
- errors=`expr $errors + 1`;;
- esac
-fi
-test -s obs-2.E || rm -f obs-2.E
-$xx -1c < $srcdir/obs-2.I > obs-2.O 2> obs-2.E
-code=$?
-if test $code != 0; then
- $echo "Test obs-2(<) failed: $xx return code $code differs from expected value 0" 1>&2
- errors=`expr $errors + 1`
-else
- cmp obs-2.O $srcdir/obs-2.X > /dev/null 2>&1
- case $? in
- 0) if test "$VERBOSE"; then $echo "passed obs-2(<)"; fi;;
- 1) $echo "Test obs-2(<) failed: files obs-2.O and $srcdir/obs-2.X differ" 1>&2
- (diff -c obs-2.O $srcdir/obs-2.X) 2> /dev/null
- errors=`expr $errors + 1`;;
- 2) $echo "Test obs-2(<) may have failed." 1>&2
- $echo The command "cmp obs-2.O $srcdir/obs-2.X" failed. 1>&2
- errors=`expr $errors + 1`;;
- esac
-fi
-test -s obs-2.E || rm -f obs-2.E
-$xx -14c $srcdir/obs-3.I > obs-3.O 2> obs-3.E
-code=$?
-if test $code != 0; then
- $echo "Test obs-3(F) failed: $xx return code $code differs from expected value 0" 1>&2
- errors=`expr $errors + 1`
-else
- cmp obs-3.O $srcdir/obs-3.X > /dev/null 2>&1
- case $? in
- 0) if test "$VERBOSE"; then $echo "passed obs-3(F)"; fi;;
- 1) $echo "Test obs-3(F) failed: files obs-3.O and $srcdir/obs-3.X differ" 1>&2
- (diff -c obs-3.O $srcdir/obs-3.X) 2> /dev/null
- errors=`expr $errors + 1`;;
- 2) $echo "Test obs-3(F) may have failed." 1>&2
- $echo The command "cmp obs-3.O $srcdir/obs-3.X" failed. 1>&2
- errors=`expr $errors + 1`;;
- esac
-fi
-test -s obs-3.E || rm -f obs-3.E
-cat $srcdir/obs-3.I | $xx -14c > obs-3.O 2> obs-3.E
-code=$?
-if test $code != 0; then
- $echo "Test obs-3(|) failed: $xx return code $code differs from expected value 0" 1>&2
- errors=`expr $errors + 1`
-else
- cmp obs-3.O $srcdir/obs-3.X > /dev/null 2>&1
- case $? in
- 0) if test "$VERBOSE"; then $echo "passed obs-3(|)"; fi;;
- 1) $echo "Test obs-3(|) failed: files obs-3.O and $srcdir/obs-3.X differ" 1>&2
- (diff -c obs-3.O $srcdir/obs-3.X) 2> /dev/null
- errors=`expr $errors + 1`;;
- 2) $echo "Test obs-3(|) may have failed." 1>&2
- $echo The command "cmp obs-3.O $srcdir/obs-3.X" failed. 1>&2
- errors=`expr $errors + 1`;;
- esac
-fi
-test -s obs-3.E || rm -f obs-3.E
-$xx -14c < $srcdir/obs-3.I > obs-3.O 2> obs-3.E
-code=$?
-if test $code != 0; then
- $echo "Test obs-3(<) failed: $xx return code $code differs from expected value 0" 1>&2
- errors=`expr $errors + 1`
-else
- cmp obs-3.O $srcdir/obs-3.X > /dev/null 2>&1
- case $? in
- 0) if test "$VERBOSE"; then $echo "passed obs-3(<)"; fi;;
- 1) $echo "Test obs-3(<) failed: files obs-3.O and $srcdir/obs-3.X differ" 1>&2
- (diff -c obs-3.O $srcdir/obs-3.X) 2> /dev/null
- errors=`expr $errors + 1`;;
- 2) $echo "Test obs-3(<) may have failed." 1>&2
- $echo The command "cmp obs-3.O $srcdir/obs-3.X" failed. 1>&2
- errors=`expr $errors + 1`;;
- esac
-fi
-test -s obs-3.E || rm -f obs-3.E
-$xx -2b $srcdir/in > obs-4.O 2> obs-4.E
-code=$?
-if test $code != 0; then
- $echo "Test obs-4(F) failed: $xx return code $code differs from expected value 0" 1>&2
- errors=`expr $errors + 1`
-else
- cmp obs-4.O $srcdir/in-1024 > /dev/null 2>&1
- case $? in
- 0) if test "$VERBOSE"; then $echo "passed obs-4(F)"; fi;;
- 1) $echo "Test obs-4(F) failed: files obs-4.O and $srcdir/in-1024 differ" 1>&2
- (diff -c obs-4.O $srcdir/in-1024) 2> /dev/null
- errors=`expr $errors + 1`;;
- 2) $echo "Test obs-4(F) may have failed." 1>&2
- $echo The command "cmp obs-4.O $srcdir/in-1024" failed. 1>&2
- errors=`expr $errors + 1`;;
- esac
-fi
-test -s obs-4.E || rm -f obs-4.E
-cat $srcdir/in | $xx -2b > obs-4.O 2> obs-4.E
-code=$?
-if test $code != 0; then
- $echo "Test obs-4(|) failed: $xx return code $code differs from expected value 0" 1>&2
- errors=`expr $errors + 1`
-else
- cmp obs-4.O $srcdir/in-1024 > /dev/null 2>&1
- case $? in
- 0) if test "$VERBOSE"; then $echo "passed obs-4(|)"; fi;;
- 1) $echo "Test obs-4(|) failed: files obs-4.O and $srcdir/in-1024 differ" 1>&2
- (diff -c obs-4.O $srcdir/in-1024) 2> /dev/null
- errors=`expr $errors + 1`;;
- 2) $echo "Test obs-4(|) may have failed." 1>&2
- $echo The command "cmp obs-4.O $srcdir/in-1024" failed. 1>&2
- errors=`expr $errors + 1`;;
- esac
-fi
-test -s obs-4.E || rm -f obs-4.E
-$xx -2b < $srcdir/in > obs-4.O 2> obs-4.E
-code=$?
-if test $code != 0; then
- $echo "Test obs-4(<) failed: $xx return code $code differs from expected value 0" 1>&2
- errors=`expr $errors + 1`
-else
- cmp obs-4.O $srcdir/in-1024 > /dev/null 2>&1
- case $? in
- 0) if test "$VERBOSE"; then $echo "passed obs-4(<)"; fi;;
- 1) $echo "Test obs-4(<) failed: files obs-4.O and $srcdir/in-1024 differ" 1>&2
- (diff -c obs-4.O $srcdir/in-1024) 2> /dev/null
- errors=`expr $errors + 1`;;
- 2) $echo "Test obs-4(<) may have failed." 1>&2
- $echo The command "cmp obs-4.O $srcdir/in-1024" failed. 1>&2
- errors=`expr $errors + 1`;;
- esac
-fi
-test -s obs-4.E || rm -f obs-4.E
-$xx -1k $srcdir/in > obs-5.O 2> obs-5.E
-code=$?
-if test $code != 0; then
- $echo "Test obs-5(F) failed: $xx return code $code differs from expected value 0" 1>&2
- errors=`expr $errors + 1`
-else
- cmp obs-5.O $srcdir/in-1024 > /dev/null 2>&1
- case $? in
- 0) if test "$VERBOSE"; then $echo "passed obs-5(F)"; fi;;
- 1) $echo "Test obs-5(F) failed: files obs-5.O and $srcdir/in-1024 differ" 1>&2
- (diff -c obs-5.O $srcdir/in-1024) 2> /dev/null
- errors=`expr $errors + 1`;;
- 2) $echo "Test obs-5(F) may have failed." 1>&2
- $echo The command "cmp obs-5.O $srcdir/in-1024" failed. 1>&2
- errors=`expr $errors + 1`;;
- esac
-fi
-test -s obs-5.E || rm -f obs-5.E
-cat $srcdir/in | $xx -1k > obs-5.O 2> obs-5.E
-code=$?
-if test $code != 0; then
- $echo "Test obs-5(|) failed: $xx return code $code differs from expected value 0" 1>&2
- errors=`expr $errors + 1`
-else
- cmp obs-5.O $srcdir/in-1024 > /dev/null 2>&1
- case $? in
- 0) if test "$VERBOSE"; then $echo "passed obs-5(|)"; fi;;
- 1) $echo "Test obs-5(|) failed: files obs-5.O and $srcdir/in-1024 differ" 1>&2
- (diff -c obs-5.O $srcdir/in-1024) 2> /dev/null
- errors=`expr $errors + 1`;;
- 2) $echo "Test obs-5(|) may have failed." 1>&2
- $echo The command "cmp obs-5.O $srcdir/in-1024" failed. 1>&2
- errors=`expr $errors + 1`;;
- esac
-fi
-test -s obs-5.E || rm -f obs-5.E
-$xx -1k < $srcdir/in > obs-5.O 2> obs-5.E
-code=$?
-if test $code != 0; then
- $echo "Test obs-5(<) failed: $xx return code $code differs from expected value 0" 1>&2
- errors=`expr $errors + 1`
-else
- cmp obs-5.O $srcdir/in-1024 > /dev/null 2>&1
- case $? in
- 0) if test "$VERBOSE"; then $echo "passed obs-5(<)"; fi;;
- 1) $echo "Test obs-5(<) failed: files obs-5.O and $srcdir/in-1024 differ" 1>&2
- (diff -c obs-5.O $srcdir/in-1024) 2> /dev/null
- errors=`expr $errors + 1`;;
- 2) $echo "Test obs-5(<) may have failed." 1>&2
- $echo The command "cmp obs-5.O $srcdir/in-1024" failed. 1>&2
- errors=`expr $errors + 1`;;
- esac
-fi
-test -s obs-5.E || rm -f obs-5.E
-$xx -n 2048m $srcdir/fail-1.I > fail-1.O 2> fail-1.E
-code=$?
-if test $code != 0; then
- $echo "Test fail-1(F) failed: $xx return code $code differs from expected value 0" 1>&2
- errors=`expr $errors + 1`
-else
- cmp fail-1.O $srcdir/fail-1.X > /dev/null 2>&1
- case $? in
- 0) if test "$VERBOSE"; then $echo "passed fail-1(F)"; fi;;
- 1) $echo "Test fail-1(F) failed: files fail-1.O and $srcdir/fail-1.X differ" 1>&2
- (diff -c fail-1.O $srcdir/fail-1.X) 2> /dev/null
- errors=`expr $errors + 1`;;
- 2) $echo "Test fail-1(F) may have failed." 1>&2
- $echo The command "cmp fail-1.O $srcdir/fail-1.X" failed. 1>&2
- errors=`expr $errors + 1`;;
- esac
-fi
-test -s fail-1.E || rm -f fail-1.E
-cat $srcdir/fail-1.I | $xx -n 2048m > fail-1.O 2> fail-1.E
-code=$?
-if test $code != 0; then
- $echo "Test fail-1(|) failed: $xx return code $code differs from expected value 0" 1>&2
- errors=`expr $errors + 1`
-else
- cmp fail-1.O $srcdir/fail-1.X > /dev/null 2>&1
- case $? in
- 0) if test "$VERBOSE"; then $echo "passed fail-1(|)"; fi;;
- 1) $echo "Test fail-1(|) failed: files fail-1.O and $srcdir/fail-1.X differ" 1>&2
- (diff -c fail-1.O $srcdir/fail-1.X) 2> /dev/null
- errors=`expr $errors + 1`;;
- 2) $echo "Test fail-1(|) may have failed." 1>&2
- $echo The command "cmp fail-1.O $srcdir/fail-1.X" failed. 1>&2
- errors=`expr $errors + 1`;;
- esac
-fi
-test -s fail-1.E || rm -f fail-1.E
-$xx -n 2048m < $srcdir/fail-1.I > fail-1.O 2> fail-1.E
-code=$?
-if test $code != 0; then
- $echo "Test fail-1(<) failed: $xx return code $code differs from expected value 0" 1>&2
- errors=`expr $errors + 1`
-else
- cmp fail-1.O $srcdir/fail-1.X > /dev/null 2>&1
- case $? in
- 0) if test "$VERBOSE"; then $echo "passed fail-1(<)"; fi;;
- 1) $echo "Test fail-1(<) failed: files fail-1.O and $srcdir/fail-1.X differ" 1>&2
- (diff -c fail-1.O $srcdir/fail-1.X) 2> /dev/null
- errors=`expr $errors + 1`;;
- 2) $echo "Test fail-1(<) may have failed." 1>&2
- $echo The command "cmp fail-1.O $srcdir/fail-1.X" failed. 1>&2
- errors=`expr $errors + 1`;;
- esac
-fi
-test -s fail-1.E || rm -f fail-1.E
-$xx $srcdir/null-1.I > null-1.O 2> null-1.E
-code=$?
-if test $code != 0; then
- $echo "Test null-1(F) failed: $xx return code $code differs from expected value 0" 1>&2
- errors=`expr $errors + 1`
-else
- cmp null-1.O $srcdir/null-1.X > /dev/null 2>&1
- case $? in
- 0) if test "$VERBOSE"; then $echo "passed null-1(F)"; fi;;
- 1) $echo "Test null-1(F) failed: files null-1.O and $srcdir/null-1.X differ" 1>&2
- (diff -c null-1.O $srcdir/null-1.X) 2> /dev/null
- errors=`expr $errors + 1`;;
- 2) $echo "Test null-1(F) may have failed." 1>&2
- $echo The command "cmp null-1.O $srcdir/null-1.X" failed. 1>&2
- errors=`expr $errors + 1`;;
- esac
-fi
-test -s null-1.E || rm -f null-1.E
-cat $srcdir/null-1.I | $xx > null-1.O 2> null-1.E
-code=$?
-if test $code != 0; then
- $echo "Test null-1(|) failed: $xx return code $code differs from expected value 0" 1>&2
- errors=`expr $errors + 1`
-else
- cmp null-1.O $srcdir/null-1.X > /dev/null 2>&1
- case $? in
- 0) if test "$VERBOSE"; then $echo "passed null-1(|)"; fi;;
- 1) $echo "Test null-1(|) failed: files null-1.O and $srcdir/null-1.X differ" 1>&2
- (diff -c null-1.O $srcdir/null-1.X) 2> /dev/null
- errors=`expr $errors + 1`;;
- 2) $echo "Test null-1(|) may have failed." 1>&2
- $echo The command "cmp null-1.O $srcdir/null-1.X" failed. 1>&2
- errors=`expr $errors + 1`;;
- esac
-fi
-test -s null-1.E || rm -f null-1.E
-$xx < $srcdir/null-1.I > null-1.O 2> null-1.E
-code=$?
-if test $code != 0; then
- $echo "Test null-1(<) failed: $xx return code $code differs from expected value 0" 1>&2
- errors=`expr $errors + 1`
-else
- cmp null-1.O $srcdir/null-1.X > /dev/null 2>&1
- case $? in
- 0) if test "$VERBOSE"; then $echo "passed null-1(<)"; fi;;
- 1) $echo "Test null-1(<) failed: files null-1.O and $srcdir/null-1.X differ" 1>&2
- (diff -c null-1.O $srcdir/null-1.X) 2> /dev/null
- errors=`expr $errors + 1`;;
- 2) $echo "Test null-1(<) may have failed." 1>&2
- $echo The command "cmp null-1.O $srcdir/null-1.X" failed. 1>&2
- errors=`expr $errors + 1`;;
- esac
-fi
-test -s null-1.E || rm -f null-1.E
-$xx -08 $srcdir/no-oct-1.I > no-oct-1.O 2> no-oct-1.E
-code=$?
-if test $code != 0; then
- $echo "Test no-oct-1(F) failed: $xx return code $code differs from expected value 0" 1>&2
- errors=`expr $errors + 1`
-else
- cmp no-oct-1.O $srcdir/no-oct-1.X > /dev/null 2>&1
- case $? in
- 0) if test "$VERBOSE"; then $echo "passed no-oct-1(F)"; fi;;
- 1) $echo "Test no-oct-1(F) failed: files no-oct-1.O and $srcdir/no-oct-1.X differ" 1>&2
- (diff -c no-oct-1.O $srcdir/no-oct-1.X) 2> /dev/null
- errors=`expr $errors + 1`;;
- 2) $echo "Test no-oct-1(F) may have failed." 1>&2
- $echo The command "cmp no-oct-1.O $srcdir/no-oct-1.X" failed. 1>&2
- errors=`expr $errors + 1`;;
- esac
-fi
-test -s no-oct-1.E || rm -f no-oct-1.E
-cat $srcdir/no-oct-1.I | $xx -08 > no-oct-1.O 2> no-oct-1.E
-code=$?
-if test $code != 0; then
- $echo "Test no-oct-1(|) failed: $xx return code $code differs from expected value 0" 1>&2
- errors=`expr $errors + 1`
-else
- cmp no-oct-1.O $srcdir/no-oct-1.X > /dev/null 2>&1
- case $? in
- 0) if test "$VERBOSE"; then $echo "passed no-oct-1(|)"; fi;;
- 1) $echo "Test no-oct-1(|) failed: files no-oct-1.O and $srcdir/no-oct-1.X differ" 1>&2
- (diff -c no-oct-1.O $srcdir/no-oct-1.X) 2> /dev/null
- errors=`expr $errors + 1`;;
- 2) $echo "Test no-oct-1(|) may have failed." 1>&2
- $echo The command "cmp no-oct-1.O $srcdir/no-oct-1.X" failed. 1>&2
- errors=`expr $errors + 1`;;
- esac
-fi
-test -s no-oct-1.E || rm -f no-oct-1.E
-$xx -08 < $srcdir/no-oct-1.I > no-oct-1.O 2> no-oct-1.E
-code=$?
-if test $code != 0; then
- $echo "Test no-oct-1(<) failed: $xx return code $code differs from expected value 0" 1>&2
- errors=`expr $errors + 1`
-else
- cmp no-oct-1.O $srcdir/no-oct-1.X > /dev/null 2>&1
- case $? in
- 0) if test "$VERBOSE"; then $echo "passed no-oct-1(<)"; fi;;
- 1) $echo "Test no-oct-1(<) failed: files no-oct-1.O and $srcdir/no-oct-1.X differ" 1>&2
- (diff -c no-oct-1.O $srcdir/no-oct-1.X) 2> /dev/null
- errors=`expr $errors + 1`;;
- 2) $echo "Test no-oct-1(<) may have failed." 1>&2
- $echo The command "cmp no-oct-1.O $srcdir/no-oct-1.X" failed. 1>&2
- errors=`expr $errors + 1`;;
- esac
-fi
-test -s no-oct-1.E || rm -f no-oct-1.E
-$xx -010 $srcdir/no-oct-2.I > no-oct-2.O 2> no-oct-2.E
-code=$?
-if test $code != 0; then
- $echo "Test no-oct-2(F) failed: $xx return code $code differs from expected value 0" 1>&2
- errors=`expr $errors + 1`
-else
- cmp no-oct-2.O $srcdir/no-oct-2.X > /dev/null 2>&1
- case $? in
- 0) if test "$VERBOSE"; then $echo "passed no-oct-2(F)"; fi;;
- 1) $echo "Test no-oct-2(F) failed: files no-oct-2.O and $srcdir/no-oct-2.X differ" 1>&2
- (diff -c no-oct-2.O $srcdir/no-oct-2.X) 2> /dev/null
- errors=`expr $errors + 1`;;
- 2) $echo "Test no-oct-2(F) may have failed." 1>&2
- $echo The command "cmp no-oct-2.O $srcdir/no-oct-2.X" failed. 1>&2
- errors=`expr $errors + 1`;;
- esac
-fi
-test -s no-oct-2.E || rm -f no-oct-2.E
-cat $srcdir/no-oct-2.I | $xx -010 > no-oct-2.O 2> no-oct-2.E
-code=$?
-if test $code != 0; then
- $echo "Test no-oct-2(|) failed: $xx return code $code differs from expected value 0" 1>&2
- errors=`expr $errors + 1`
-else
- cmp no-oct-2.O $srcdir/no-oct-2.X > /dev/null 2>&1
- case $? in
- 0) if test "$VERBOSE"; then $echo "passed no-oct-2(|)"; fi;;
- 1) $echo "Test no-oct-2(|) failed: files no-oct-2.O and $srcdir/no-oct-2.X differ" 1>&2
- (diff -c no-oct-2.O $srcdir/no-oct-2.X) 2> /dev/null
- errors=`expr $errors + 1`;;
- 2) $echo "Test no-oct-2(|) may have failed." 1>&2
- $echo The command "cmp no-oct-2.O $srcdir/no-oct-2.X" failed. 1>&2
- errors=`expr $errors + 1`;;
- esac
-fi
-test -s no-oct-2.E || rm -f no-oct-2.E
-$xx -010 < $srcdir/no-oct-2.I > no-oct-2.O 2> no-oct-2.E
-code=$?
-if test $code != 0; then
- $echo "Test no-oct-2(<) failed: $xx return code $code differs from expected value 0" 1>&2
- errors=`expr $errors + 1`
-else
- cmp no-oct-2.O $srcdir/no-oct-2.X > /dev/null 2>&1
- case $? in
- 0) if test "$VERBOSE"; then $echo "passed no-oct-2(<)"; fi;;
- 1) $echo "Test no-oct-2(<) failed: files no-oct-2.O and $srcdir/no-oct-2.X differ" 1>&2
- (diff -c no-oct-2.O $srcdir/no-oct-2.X) 2> /dev/null
- errors=`expr $errors + 1`;;
- 2) $echo "Test no-oct-2(<) may have failed." 1>&2
- $echo The command "cmp no-oct-2.O $srcdir/no-oct-2.X" failed. 1>&2
- errors=`expr $errors + 1`;;
- esac
-fi
-test -s no-oct-2.E || rm -f no-oct-2.E
-$xx -n 08 $srcdir/no-oct-3.I > no-oct-3.O 2> no-oct-3.E
-code=$?
-if test $code != 0; then
- $echo "Test no-oct-3(F) failed: $xx return code $code differs from expected value 0" 1>&2
- errors=`expr $errors + 1`
-else
- cmp no-oct-3.O $srcdir/no-oct-3.X > /dev/null 2>&1
- case $? in
- 0) if test "$VERBOSE"; then $echo "passed no-oct-3(F)"; fi;;
- 1) $echo "Test no-oct-3(F) failed: files no-oct-3.O and $srcdir/no-oct-3.X differ" 1>&2
- (diff -c no-oct-3.O $srcdir/no-oct-3.X) 2> /dev/null
- errors=`expr $errors + 1`;;
- 2) $echo "Test no-oct-3(F) may have failed." 1>&2
- $echo The command "cmp no-oct-3.O $srcdir/no-oct-3.X" failed. 1>&2
- errors=`expr $errors + 1`;;
- esac
-fi
-test -s no-oct-3.E || rm -f no-oct-3.E
-cat $srcdir/no-oct-3.I | $xx -n 08 > no-oct-3.O 2> no-oct-3.E
-code=$?
-if test $code != 0; then
- $echo "Test no-oct-3(|) failed: $xx return code $code differs from expected value 0" 1>&2
- errors=`expr $errors + 1`
-else
- cmp no-oct-3.O $srcdir/no-oct-3.X > /dev/null 2>&1
- case $? in
- 0) if test "$VERBOSE"; then $echo "passed no-oct-3(|)"; fi;;
- 1) $echo "Test no-oct-3(|) failed: files no-oct-3.O and $srcdir/no-oct-3.X differ" 1>&2
- (diff -c no-oct-3.O $srcdir/no-oct-3.X) 2> /dev/null
- errors=`expr $errors + 1`;;
- 2) $echo "Test no-oct-3(|) may have failed." 1>&2
- $echo The command "cmp no-oct-3.O $srcdir/no-oct-3.X" failed. 1>&2
- errors=`expr $errors + 1`;;
- esac
-fi
-test -s no-oct-3.E || rm -f no-oct-3.E
-$xx -n 08 < $srcdir/no-oct-3.I > no-oct-3.O 2> no-oct-3.E
-code=$?
-if test $code != 0; then
- $echo "Test no-oct-3(<) failed: $xx return code $code differs from expected value 0" 1>&2
- errors=`expr $errors + 1`
-else
- cmp no-oct-3.O $srcdir/no-oct-3.X > /dev/null 2>&1
- case $? in
- 0) if test "$VERBOSE"; then $echo "passed no-oct-3(<)"; fi;;
- 1) $echo "Test no-oct-3(<) failed: files no-oct-3.O and $srcdir/no-oct-3.X differ" 1>&2
- (diff -c no-oct-3.O $srcdir/no-oct-3.X) 2> /dev/null
- errors=`expr $errors + 1`;;
- 2) $echo "Test no-oct-3(<) may have failed." 1>&2
- $echo The command "cmp no-oct-3.O $srcdir/no-oct-3.X" failed. 1>&2
- errors=`expr $errors + 1`;;
- esac
-fi
-test -s no-oct-3.E || rm -f no-oct-3.E
-$xx -c 08 $srcdir/no-oct-4.I > no-oct-4.O 2> no-oct-4.E
-code=$?
-if test $code != 0; then
- $echo "Test no-oct-4(F) failed: $xx return code $code differs from expected value 0" 1>&2
- errors=`expr $errors + 1`
-else
- cmp no-oct-4.O $srcdir/no-oct-4.X > /dev/null 2>&1
- case $? in
- 0) if test "$VERBOSE"; then $echo "passed no-oct-4(F)"; fi;;
- 1) $echo "Test no-oct-4(F) failed: files no-oct-4.O and $srcdir/no-oct-4.X differ" 1>&2
- (diff -c no-oct-4.O $srcdir/no-oct-4.X) 2> /dev/null
- errors=`expr $errors + 1`;;
- 2) $echo "Test no-oct-4(F) may have failed." 1>&2
- $echo The command "cmp no-oct-4.O $srcdir/no-oct-4.X" failed. 1>&2
- errors=`expr $errors + 1`;;
- esac
-fi
-test -s no-oct-4.E || rm -f no-oct-4.E
-cat $srcdir/no-oct-4.I | $xx -c 08 > no-oct-4.O 2> no-oct-4.E
-code=$?
-if test $code != 0; then
- $echo "Test no-oct-4(|) failed: $xx return code $code differs from expected value 0" 1>&2
- errors=`expr $errors + 1`
-else
- cmp no-oct-4.O $srcdir/no-oct-4.X > /dev/null 2>&1
- case $? in
- 0) if test "$VERBOSE"; then $echo "passed no-oct-4(|)"; fi;;
- 1) $echo "Test no-oct-4(|) failed: files no-oct-4.O and $srcdir/no-oct-4.X differ" 1>&2
- (diff -c no-oct-4.O $srcdir/no-oct-4.X) 2> /dev/null
- errors=`expr $errors + 1`;;
- 2) $echo "Test no-oct-4(|) may have failed." 1>&2
- $echo The command "cmp no-oct-4.O $srcdir/no-oct-4.X" failed. 1>&2
- errors=`expr $errors + 1`;;
- esac
-fi
-test -s no-oct-4.E || rm -f no-oct-4.E
-$xx -c 08 < $srcdir/no-oct-4.I > no-oct-4.O 2> no-oct-4.E
-code=$?
-if test $code != 0; then
- $echo "Test no-oct-4(<) failed: $xx return code $code differs from expected value 0" 1>&2
- errors=`expr $errors + 1`
-else
- cmp no-oct-4.O $srcdir/no-oct-4.X > /dev/null 2>&1
- case $? in
- 0) if test "$VERBOSE"; then $echo "passed no-oct-4(<)"; fi;;
- 1) $echo "Test no-oct-4(<) failed: files no-oct-4.O and $srcdir/no-oct-4.X differ" 1>&2
- (diff -c no-oct-4.O $srcdir/no-oct-4.X) 2> /dev/null
- errors=`expr $errors + 1`;;
- 2) $echo "Test no-oct-4(<) may have failed." 1>&2
- $echo The command "cmp no-oct-4.O $srcdir/no-oct-4.X" failed. 1>&2
- errors=`expr $errors + 1`;;
- esac
-fi
-test -s no-oct-4.E || rm -f no-oct-4.E
-$xx -n 1 $srcdir/posix-0.I > posix-0.O 2> posix-0.E
-code=$?
-if test $code != 0; then
- $echo "Test posix-0(F) failed: $xx return code $code differs from expected value 0" 1>&2
- errors=`expr $errors + 1`
-else
- cmp posix-0.O $srcdir/posix-0.X > /dev/null 2>&1
- case $? in
- 0) if test "$VERBOSE"; then $echo "passed posix-0(F)"; fi;;
- 1) $echo "Test posix-0(F) failed: files posix-0.O and $srcdir/posix-0.X differ" 1>&2
- (diff -c posix-0.O $srcdir/posix-0.X) 2> /dev/null
- errors=`expr $errors + 1`;;
- 2) $echo "Test posix-0(F) may have failed." 1>&2
- $echo The command "cmp posix-0.O $srcdir/posix-0.X" failed. 1>&2
- errors=`expr $errors + 1`;;
- esac
-fi
-test -s posix-0.E || rm -f posix-0.E
-cat $srcdir/posix-0.I | $xx -n 1 > posix-0.O 2> posix-0.E
-code=$?
-if test $code != 0; then
- $echo "Test posix-0(|) failed: $xx return code $code differs from expected value 0" 1>&2
- errors=`expr $errors + 1`
-else
- cmp posix-0.O $srcdir/posix-0.X > /dev/null 2>&1
- case $? in
- 0) if test "$VERBOSE"; then $echo "passed posix-0(|)"; fi;;
- 1) $echo "Test posix-0(|) failed: files posix-0.O and $srcdir/posix-0.X differ" 1>&2
- (diff -c posix-0.O $srcdir/posix-0.X) 2> /dev/null
- errors=`expr $errors + 1`;;
- 2) $echo "Test posix-0(|) may have failed." 1>&2
- $echo The command "cmp posix-0.O $srcdir/posix-0.X" failed. 1>&2
- errors=`expr $errors + 1`;;
- esac
-fi
-test -s posix-0.E || rm -f posix-0.E
-$xx -n 1 < $srcdir/posix-0.I > posix-0.O 2> posix-0.E
-code=$?
-if test $code != 0; then
- $echo "Test posix-0(<) failed: $xx return code $code differs from expected value 0" 1>&2
- errors=`expr $errors + 1`
-else
- cmp posix-0.O $srcdir/posix-0.X > /dev/null 2>&1
- case $? in
- 0) if test "$VERBOSE"; then $echo "passed posix-0(<)"; fi;;
- 1) $echo "Test posix-0(<) failed: files posix-0.O and $srcdir/posix-0.X differ" 1>&2
- (diff -c posix-0.O $srcdir/posix-0.X) 2> /dev/null
- errors=`expr $errors + 1`;;
- 2) $echo "Test posix-0(<) may have failed." 1>&2
- $echo The command "cmp posix-0.O $srcdir/posix-0.X" failed. 1>&2
- errors=`expr $errors + 1`;;
- esac
-fi
-test -s posix-0.E || rm -f posix-0.E
-$xx -c 1 $srcdir/posix-1.I > posix-1.O 2> posix-1.E
-code=$?
-if test $code != 0; then
- $echo "Test posix-1(F) failed: $xx return code $code differs from expected value 0" 1>&2
- errors=`expr $errors + 1`
-else
- cmp posix-1.O $srcdir/posix-1.X > /dev/null 2>&1
- case $? in
- 0) if test "$VERBOSE"; then $echo "passed posix-1(F)"; fi;;
- 1) $echo "Test posix-1(F) failed: files posix-1.O and $srcdir/posix-1.X differ" 1>&2
- (diff -c posix-1.O $srcdir/posix-1.X) 2> /dev/null
- errors=`expr $errors + 1`;;
- 2) $echo "Test posix-1(F) may have failed." 1>&2
- $echo The command "cmp posix-1.O $srcdir/posix-1.X" failed. 1>&2
- errors=`expr $errors + 1`;;
- esac
-fi
-test -s posix-1.E || rm -f posix-1.E
-cat $srcdir/posix-1.I | $xx -c 1 > posix-1.O 2> posix-1.E
-code=$?
-if test $code != 0; then
- $echo "Test posix-1(|) failed: $xx return code $code differs from expected value 0" 1>&2
- errors=`expr $errors + 1`
-else
- cmp posix-1.O $srcdir/posix-1.X > /dev/null 2>&1
- case $? in
- 0) if test "$VERBOSE"; then $echo "passed posix-1(|)"; fi;;
- 1) $echo "Test posix-1(|) failed: files posix-1.O and $srcdir/posix-1.X differ" 1>&2
- (diff -c posix-1.O $srcdir/posix-1.X) 2> /dev/null
- errors=`expr $errors + 1`;;
- 2) $echo "Test posix-1(|) may have failed." 1>&2
- $echo The command "cmp posix-1.O $srcdir/posix-1.X" failed. 1>&2
- errors=`expr $errors + 1`;;
- esac
-fi
-test -s posix-1.E || rm -f posix-1.E
-$xx -c 1 < $srcdir/posix-1.I > posix-1.O 2> posix-1.E
-code=$?
-if test $code != 0; then
- $echo "Test posix-1(<) failed: $xx return code $code differs from expected value 0" 1>&2
- errors=`expr $errors + 1`
-else
- cmp posix-1.O $srcdir/posix-1.X > /dev/null 2>&1
- case $? in
- 0) if test "$VERBOSE"; then $echo "passed posix-1(<)"; fi;;
- 1) $echo "Test posix-1(<) failed: files posix-1.O and $srcdir/posix-1.X differ" 1>&2
- (diff -c posix-1.O $srcdir/posix-1.X) 2> /dev/null
- errors=`expr $errors + 1`;;
- 2) $echo "Test posix-1(<) may have failed." 1>&2
- $echo The command "cmp posix-1.O $srcdir/posix-1.X" failed. 1>&2
- errors=`expr $errors + 1`;;
- esac
-fi
-test -s posix-1.E || rm -f posix-1.E
-$xx -c 1 $srcdir/posix-2.I > posix-2.O 2> posix-2.E
-code=$?
-if test $code != 0; then
- $echo "Test posix-2(F) failed: $xx return code $code differs from expected value 0" 1>&2
- errors=`expr $errors + 1`
-else
- cmp posix-2.O $srcdir/posix-2.X > /dev/null 2>&1
- case $? in
- 0) if test "$VERBOSE"; then $echo "passed posix-2(F)"; fi;;
- 1) $echo "Test posix-2(F) failed: files posix-2.O and $srcdir/posix-2.X differ" 1>&2
- (diff -c posix-2.O $srcdir/posix-2.X) 2> /dev/null
- errors=`expr $errors + 1`;;
- 2) $echo "Test posix-2(F) may have failed." 1>&2
- $echo The command "cmp posix-2.O $srcdir/posix-2.X" failed. 1>&2
- errors=`expr $errors + 1`;;
- esac
-fi
-test -s posix-2.E || rm -f posix-2.E
-cat $srcdir/posix-2.I | $xx -c 1 > posix-2.O 2> posix-2.E
-code=$?
-if test $code != 0; then
- $echo "Test posix-2(|) failed: $xx return code $code differs from expected value 0" 1>&2
- errors=`expr $errors + 1`
-else
- cmp posix-2.O $srcdir/posix-2.X > /dev/null 2>&1
- case $? in
- 0) if test "$VERBOSE"; then $echo "passed posix-2(|)"; fi;;
- 1) $echo "Test posix-2(|) failed: files posix-2.O and $srcdir/posix-2.X differ" 1>&2
- (diff -c posix-2.O $srcdir/posix-2.X) 2> /dev/null
- errors=`expr $errors + 1`;;
- 2) $echo "Test posix-2(|) may have failed." 1>&2
- $echo The command "cmp posix-2.O $srcdir/posix-2.X" failed. 1>&2
- errors=`expr $errors + 1`;;
- esac
-fi
-test -s posix-2.E || rm -f posix-2.E
-$xx -c 1 < $srcdir/posix-2.I > posix-2.O 2> posix-2.E
-code=$?
-if test $code != 0; then
- $echo "Test posix-2(<) failed: $xx return code $code differs from expected value 0" 1>&2
- errors=`expr $errors + 1`
-else
- cmp posix-2.O $srcdir/posix-2.X > /dev/null 2>&1
- case $? in
- 0) if test "$VERBOSE"; then $echo "passed posix-2(<)"; fi;;
- 1) $echo "Test posix-2(<) failed: files posix-2.O and $srcdir/posix-2.X differ" 1>&2
- (diff -c posix-2.O $srcdir/posix-2.X) 2> /dev/null
- errors=`expr $errors + 1`;;
- 2) $echo "Test posix-2(<) may have failed." 1>&2
- $echo The command "cmp posix-2.O $srcdir/posix-2.X" failed. 1>&2
- errors=`expr $errors + 1`;;
- esac
-fi
-test -s posix-2.E || rm -f posix-2.E
-$xx -c 14 $srcdir/posix-3.I > posix-3.O 2> posix-3.E
-code=$?
-if test $code != 0; then
- $echo "Test posix-3(F) failed: $xx return code $code differs from expected value 0" 1>&2
- errors=`expr $errors + 1`
-else
- cmp posix-3.O $srcdir/posix-3.X > /dev/null 2>&1
- case $? in
- 0) if test "$VERBOSE"; then $echo "passed posix-3(F)"; fi;;
- 1) $echo "Test posix-3(F) failed: files posix-3.O and $srcdir/posix-3.X differ" 1>&2
- (diff -c posix-3.O $srcdir/posix-3.X) 2> /dev/null
- errors=`expr $errors + 1`;;
- 2) $echo "Test posix-3(F) may have failed." 1>&2
- $echo The command "cmp posix-3.O $srcdir/posix-3.X" failed. 1>&2
- errors=`expr $errors + 1`;;
- esac
-fi
-test -s posix-3.E || rm -f posix-3.E
-cat $srcdir/posix-3.I | $xx -c 14 > posix-3.O 2> posix-3.E
-code=$?
-if test $code != 0; then
- $echo "Test posix-3(|) failed: $xx return code $code differs from expected value 0" 1>&2
- errors=`expr $errors + 1`
-else
- cmp posix-3.O $srcdir/posix-3.X > /dev/null 2>&1
- case $? in
- 0) if test "$VERBOSE"; then $echo "passed posix-3(|)"; fi;;
- 1) $echo "Test posix-3(|) failed: files posix-3.O and $srcdir/posix-3.X differ" 1>&2
- (diff -c posix-3.O $srcdir/posix-3.X) 2> /dev/null
- errors=`expr $errors + 1`;;
- 2) $echo "Test posix-3(|) may have failed." 1>&2
- $echo The command "cmp posix-3.O $srcdir/posix-3.X" failed. 1>&2
- errors=`expr $errors + 1`;;
- esac
-fi
-test -s posix-3.E || rm -f posix-3.E
-$xx -c 14 < $srcdir/posix-3.I > posix-3.O 2> posix-3.E
-code=$?
-if test $code != 0; then
- $echo "Test posix-3(<) failed: $xx return code $code differs from expected value 0" 1>&2
- errors=`expr $errors + 1`
-else
- cmp posix-3.O $srcdir/posix-3.X > /dev/null 2>&1
- case $? in
- 0) if test "$VERBOSE"; then $echo "passed posix-3(<)"; fi;;
- 1) $echo "Test posix-3(<) failed: files posix-3.O and $srcdir/posix-3.X differ" 1>&2
- (diff -c posix-3.O $srcdir/posix-3.X) 2> /dev/null
- errors=`expr $errors + 1`;;
- 2) $echo "Test posix-3(<) may have failed." 1>&2
- $echo The command "cmp posix-3.O $srcdir/posix-3.X" failed. 1>&2
- errors=`expr $errors + 1`;;
- esac
-fi
-test -s posix-3.E || rm -f posix-3.E
-$xx -c 2b $srcdir/in > posix-4.O 2> posix-4.E
-code=$?
-if test $code != 0; then
- $echo "Test posix-4(F) failed: $xx return code $code differs from expected value 0" 1>&2
- errors=`expr $errors + 1`
-else
- cmp posix-4.O $srcdir/in-1024 > /dev/null 2>&1
- case $? in
- 0) if test "$VERBOSE"; then $echo "passed posix-4(F)"; fi;;
- 1) $echo "Test posix-4(F) failed: files posix-4.O and $srcdir/in-1024 differ" 1>&2
- (diff -c posix-4.O $srcdir/in-1024) 2> /dev/null
- errors=`expr $errors + 1`;;
- 2) $echo "Test posix-4(F) may have failed." 1>&2
- $echo The command "cmp posix-4.O $srcdir/in-1024" failed. 1>&2
- errors=`expr $errors + 1`;;
- esac
-fi
-test -s posix-4.E || rm -f posix-4.E
-cat $srcdir/in | $xx -c 2b > posix-4.O 2> posix-4.E
-code=$?
-if test $code != 0; then
- $echo "Test posix-4(|) failed: $xx return code $code differs from expected value 0" 1>&2
- errors=`expr $errors + 1`
-else
- cmp posix-4.O $srcdir/in-1024 > /dev/null 2>&1
- case $? in
- 0) if test "$VERBOSE"; then $echo "passed posix-4(|)"; fi;;
- 1) $echo "Test posix-4(|) failed: files posix-4.O and $srcdir/in-1024 differ" 1>&2
- (diff -c posix-4.O $srcdir/in-1024) 2> /dev/null
- errors=`expr $errors + 1`;;
- 2) $echo "Test posix-4(|) may have failed." 1>&2
- $echo The command "cmp posix-4.O $srcdir/in-1024" failed. 1>&2
- errors=`expr $errors + 1`;;
- esac
-fi
-test -s posix-4.E || rm -f posix-4.E
-$xx -c 2b < $srcdir/in > posix-4.O 2> posix-4.E
-code=$?
-if test $code != 0; then
- $echo "Test posix-4(<) failed: $xx return code $code differs from expected value 0" 1>&2
- errors=`expr $errors + 1`
-else
- cmp posix-4.O $srcdir/in-1024 > /dev/null 2>&1
- case $? in
- 0) if test "$VERBOSE"; then $echo "passed posix-4(<)"; fi;;
- 1) $echo "Test posix-4(<) failed: files posix-4.O and $srcdir/in-1024 differ" 1>&2
- (diff -c posix-4.O $srcdir/in-1024) 2> /dev/null
- errors=`expr $errors + 1`;;
- 2) $echo "Test posix-4(<) may have failed." 1>&2
- $echo The command "cmp posix-4.O $srcdir/in-1024" failed. 1>&2
- errors=`expr $errors + 1`;;
- esac
-fi
-test -s posix-4.E || rm -f posix-4.E
-$xx -c 1k $srcdir/in > posix-5.O 2> posix-5.E
-code=$?
-if test $code != 0; then
- $echo "Test posix-5(F) failed: $xx return code $code differs from expected value 0" 1>&2
- errors=`expr $errors + 1`
-else
- cmp posix-5.O $srcdir/in-1024 > /dev/null 2>&1
- case $? in
- 0) if test "$VERBOSE"; then $echo "passed posix-5(F)"; fi;;
- 1) $echo "Test posix-5(F) failed: files posix-5.O and $srcdir/in-1024 differ" 1>&2
- (diff -c posix-5.O $srcdir/in-1024) 2> /dev/null
- errors=`expr $errors + 1`;;
- 2) $echo "Test posix-5(F) may have failed." 1>&2
- $echo The command "cmp posix-5.O $srcdir/in-1024" failed. 1>&2
- errors=`expr $errors + 1`;;
- esac
-fi
-test -s posix-5.E || rm -f posix-5.E
-cat $srcdir/in | $xx -c 1k > posix-5.O 2> posix-5.E
-code=$?
-if test $code != 0; then
- $echo "Test posix-5(|) failed: $xx return code $code differs from expected value 0" 1>&2
- errors=`expr $errors + 1`
-else
- cmp posix-5.O $srcdir/in-1024 > /dev/null 2>&1
- case $? in
- 0) if test "$VERBOSE"; then $echo "passed posix-5(|)"; fi;;
- 1) $echo "Test posix-5(|) failed: files posix-5.O and $srcdir/in-1024 differ" 1>&2
- (diff -c posix-5.O $srcdir/in-1024) 2> /dev/null
- errors=`expr $errors + 1`;;
- 2) $echo "Test posix-5(|) may have failed." 1>&2
- $echo The command "cmp posix-5.O $srcdir/in-1024" failed. 1>&2
- errors=`expr $errors + 1`;;
- esac
-fi
-test -s posix-5.E || rm -f posix-5.E
-$xx -c 1k < $srcdir/in > posix-5.O 2> posix-5.E
-code=$?
-if test $code != 0; then
- $echo "Test posix-5(<) failed: $xx return code $code differs from expected value 0" 1>&2
- errors=`expr $errors + 1`
-else
- cmp posix-5.O $srcdir/in-1024 > /dev/null 2>&1
- case $? in
- 0) if test "$VERBOSE"; then $echo "passed posix-5(<)"; fi;;
- 1) $echo "Test posix-5(<) failed: files posix-5.O and $srcdir/in-1024 differ" 1>&2
- (diff -c posix-5.O $srcdir/in-1024) 2> /dev/null
- errors=`expr $errors + 1`;;
- 2) $echo "Test posix-5(<) may have failed." 1>&2
- $echo The command "cmp posix-5.O $srcdir/in-1024" failed. 1>&2
- errors=`expr $errors + 1`;;
- esac
-fi
-test -s posix-5.E || rm -f posix-5.E
-if test $errors = 0; then
- $echo Passed all 75 tests. 1>&2
-else
- $echo Failed $errors tests. 1>&2
-fi
-test $errors = 0 || errors=1
-exit $errors
diff --git a/tests/head/idem-0.I b/tests/head/idem-0.I
deleted file mode 100644
index e69de29..0000000
--- a/tests/head/idem-0.I
+++ /dev/null
diff --git a/tests/head/idem-0.X b/tests/head/idem-0.X
deleted file mode 100644
index e69de29..0000000
--- a/tests/head/idem-0.X
+++ /dev/null
diff --git a/tests/head/idem-1.I b/tests/head/idem-1.I
deleted file mode 100644
index 2e65efe..0000000
--- a/tests/head/idem-1.I
+++ /dev/null
@@ -1 +0,0 @@
-a \ No newline at end of file
diff --git a/tests/head/idem-1.X b/tests/head/idem-1.X
deleted file mode 100644
index 2e65efe..0000000
--- a/tests/head/idem-1.X
+++ /dev/null
@@ -1 +0,0 @@
-a \ No newline at end of file
diff --git a/tests/head/idem-2.I b/tests/head/idem-2.I
deleted file mode 100644
index 8b13789..0000000
--- a/tests/head/idem-2.I
+++ /dev/null
@@ -1 +0,0 @@
-
diff --git a/tests/head/idem-2.X b/tests/head/idem-2.X
deleted file mode 100644
index 8b13789..0000000
--- a/tests/head/idem-2.X
+++ /dev/null
@@ -1 +0,0 @@
-
diff --git a/tests/head/idem-3.I b/tests/head/idem-3.I
deleted file mode 100644
index 7898192..0000000
--- a/tests/head/idem-3.I
+++ /dev/null
@@ -1 +0,0 @@
-a
diff --git a/tests/head/idem-3.X b/tests/head/idem-3.X
deleted file mode 100644
index 7898192..0000000
--- a/tests/head/idem-3.X
+++ /dev/null
@@ -1 +0,0 @@
-a
diff --git a/tests/head/in b/tests/head/in
deleted file mode 100644
index d5b2b75..0000000
--- a/tests/head/in
+++ /dev/null
@@ -1,15 +0,0 @@
-8ca240627bbeaa9066aa9ba0ce6de080db8d19a6e26c423663c7a6e0185207841a467de16d80db
-c5a4a1ee35a8b13d4cc26cb47e05686db78cc71bc8c1e0769245988dd58d03974600b59872857c
-934cd484c093949db0676a3ac679a8bae4d41256959874c02ab792cb42ca33de72469a69d521aa
-060877520abad96725a85ace28072cd566b5b189e58331288d92e601c393ddad1eb60cddc46bb7
-4b7666dd9b8c36688cd3d0e6c4b091c5c6926b4468b19a40018d655d1840ed11da6a360bdc0e3c
-75355ad402c13a9c49228e11980eadb65a32070c1716b07074422534029bc6941981e65ae774e7
-6762616d66391aa2be539d2c2853e324429859ca998410ee54cc1521001804e5811bde40439d29
-bc8a304a58b823a69d1a2d5351993d1642b17398c031c8b7e78b451735e6326bb949141d3d5736
-2b03ad03c1ab427076be6e785722a18cc6846248e6b35483ec3aa85b2ae22bbb6e2919686a5a95
-a71785d1e1e12e1412cb14334dc7a591b83ed785474132993e69377ac4c1747a0db2a8cb1811ac
-722e7aa3e5c3d21c885bc6eeb2b0eb502476abe2d77691ce42587dd0934b44b568d2b113e12a39
-eb1853ec3a5c9ed7321b127422da35451a2e289c09ed2b19857922099275a0dd14ba2487180a85
-8d5e9796ad1c5c44d3a910a7623363718684b667a48a26e3ad85b008ce5a20e94ebe57da18edc6
-b661009a8a113ed6a922840da8d51c13ca4973b9a76dc05c142496c3083adcd8ba24686b471a77
-77ca4bb8
diff --git a/tests/head/in-1024 b/tests/head/in-1024
deleted file mode 100644
index 448aeaa..0000000
--- a/tests/head/in-1024
+++ /dev/null
@@ -1,13 +0,0 @@
-8ca240627bbeaa9066aa9ba0ce6de080db8d19a6e26c423663c7a6e0185207841a467de16d80db
-c5a4a1ee35a8b13d4cc26cb47e05686db78cc71bc8c1e0769245988dd58d03974600b59872857c
-934cd484c093949db0676a3ac679a8bae4d41256959874c02ab792cb42ca33de72469a69d521aa
-060877520abad96725a85ace28072cd566b5b189e58331288d92e601c393ddad1eb60cddc46bb7
-4b7666dd9b8c36688cd3d0e6c4b091c5c6926b4468b19a40018d655d1840ed11da6a360bdc0e3c
-75355ad402c13a9c49228e11980eadb65a32070c1716b07074422534029bc6941981e65ae774e7
-6762616d66391aa2be539d2c2853e324429859ca998410ee54cc1521001804e5811bde40439d29
-bc8a304a58b823a69d1a2d5351993d1642b17398c031c8b7e78b451735e6326bb949141d3d5736
-2b03ad03c1ab427076be6e785722a18cc6846248e6b35483ec3aa85b2ae22bbb6e2919686a5a95
-a71785d1e1e12e1412cb14334dc7a591b83ed785474132993e69377ac4c1747a0db2a8cb1811ac
-722e7aa3e5c3d21c885bc6eeb2b0eb502476abe2d77691ce42587dd0934b44b568d2b113e12a39
-eb1853ec3a5c9ed7321b127422da35451a2e289c09ed2b19857922099275a0dd14ba2487180a85
-8d5e9796ad1c5c44d3a910a7623363718684b667a48a26e3ad85b008ce5a20e94ebe57da18ed \ No newline at end of file
diff --git a/tests/head/no-oct-1.I b/tests/head/no-oct-1.I
deleted file mode 100644
index 1901ba9..0000000
--- a/tests/head/no-oct-1.I
+++ /dev/null
@@ -1,12 +0,0 @@
-
-
-
-
-
-
-
-
-
-
-
-
diff --git a/tests/head/no-oct-1.X b/tests/head/no-oct-1.X
deleted file mode 100644
index 12a6f48..0000000
--- a/tests/head/no-oct-1.X
+++ /dev/null
@@ -1,8 +0,0 @@
-
-
-
-
-
-
-
-
diff --git a/tests/head/no-oct-2.I b/tests/head/no-oct-2.I
deleted file mode 100644
index 1901ba9..0000000
--- a/tests/head/no-oct-2.I
+++ /dev/null
@@ -1,12 +0,0 @@
-
-
-
-
-
-
-
-
-
-
-
-
diff --git a/tests/head/no-oct-2.X b/tests/head/no-oct-2.X
deleted file mode 100644
index 584ba87..0000000
--- a/tests/head/no-oct-2.X
+++ /dev/null
@@ -1,10 +0,0 @@
-
-
-
-
-
-
-
-
-
-
diff --git a/tests/head/no-oct-3.I b/tests/head/no-oct-3.I
deleted file mode 100644
index 1901ba9..0000000
--- a/tests/head/no-oct-3.I
+++ /dev/null
@@ -1,12 +0,0 @@
-
-
-
-
-
-
-
-
-
-
-
-
diff --git a/tests/head/no-oct-3.X b/tests/head/no-oct-3.X
deleted file mode 100644
index 12a6f48..0000000
--- a/tests/head/no-oct-3.X
+++ /dev/null
@@ -1,8 +0,0 @@
-
-
-
-
-
-
-
-
diff --git a/tests/head/no-oct-4.I b/tests/head/no-oct-4.I
deleted file mode 100644
index 1901ba9..0000000
--- a/tests/head/no-oct-4.I
+++ /dev/null
@@ -1,12 +0,0 @@
-
-
-
-
-
-
-
-
-
-
-
-
diff --git a/tests/head/no-oct-4.X b/tests/head/no-oct-4.X
deleted file mode 100644
index 12a6f48..0000000
--- a/tests/head/no-oct-4.X
+++ /dev/null
@@ -1,8 +0,0 @@
-
-
-
-
-
-
-
-
diff --git a/tests/head/null-1.I b/tests/head/null-1.I
deleted file mode 100644
index 1574677..0000000
--- a/tests/head/null-1.I
+++ /dev/null
Binary files differ
diff --git a/tests/head/null-1.X b/tests/head/null-1.X
deleted file mode 100644
index 1574677..0000000
--- a/tests/head/null-1.X
+++ /dev/null
Binary files differ
diff --git a/tests/head/obs-0.I b/tests/head/obs-0.I
deleted file mode 100644
index 1191247..0000000
--- a/tests/head/obs-0.I
+++ /dev/null
@@ -1,2 +0,0 @@
-1
-2
diff --git a/tests/head/obs-0.X b/tests/head/obs-0.X
deleted file mode 100644
index d00491f..0000000
--- a/tests/head/obs-0.X
+++ /dev/null
@@ -1 +0,0 @@
-1
diff --git a/tests/head/obs-1.I b/tests/head/obs-1.I
deleted file mode 100644
index e69de29..0000000
--- a/tests/head/obs-1.I
+++ /dev/null
diff --git a/tests/head/obs-1.X b/tests/head/obs-1.X
deleted file mode 100644
index e69de29..0000000
--- a/tests/head/obs-1.X
+++ /dev/null
diff --git a/tests/head/obs-2.I b/tests/head/obs-2.I
deleted file mode 100644
index 3cacc0b..0000000
--- a/tests/head/obs-2.I
+++ /dev/null
@@ -1 +0,0 @@
-12 \ No newline at end of file
diff --git a/tests/head/obs-2.X b/tests/head/obs-2.X
deleted file mode 100644
index 56a6051..0000000
--- a/tests/head/obs-2.X
+++ /dev/null
@@ -1 +0,0 @@
-1 \ No newline at end of file
diff --git a/tests/head/obs-3.I b/tests/head/obs-3.I
deleted file mode 100644
index d44e770..0000000
--- a/tests/head/obs-3.I
+++ /dev/null
@@ -1 +0,0 @@
-1234567890abcdefg \ No newline at end of file
diff --git a/tests/head/obs-3.X b/tests/head/obs-3.X
deleted file mode 100644
index 41f3900..0000000
--- a/tests/head/obs-3.X
+++ /dev/null
@@ -1 +0,0 @@
-1234567890abcd \ No newline at end of file
diff --git a/tests/head/posix-0.I b/tests/head/posix-0.I
deleted file mode 100644
index 1191247..0000000
--- a/tests/head/posix-0.I
+++ /dev/null
@@ -1,2 +0,0 @@
-1
-2
diff --git a/tests/head/posix-0.X b/tests/head/posix-0.X
deleted file mode 100644
index d00491f..0000000
--- a/tests/head/posix-0.X
+++ /dev/null
@@ -1 +0,0 @@
-1
diff --git a/tests/head/posix-1.I b/tests/head/posix-1.I
deleted file mode 100644
index e69de29..0000000
--- a/tests/head/posix-1.I
+++ /dev/null
diff --git a/tests/head/posix-1.X b/tests/head/posix-1.X
deleted file mode 100644
index e69de29..0000000
--- a/tests/head/posix-1.X
+++ /dev/null
diff --git a/tests/head/posix-2.I b/tests/head/posix-2.I
deleted file mode 100644
index 3cacc0b..0000000
--- a/tests/head/posix-2.I
+++ /dev/null
@@ -1 +0,0 @@
-12 \ No newline at end of file
diff --git a/tests/head/posix-2.X b/tests/head/posix-2.X
deleted file mode 100644
index 56a6051..0000000
--- a/tests/head/posix-2.X
+++ /dev/null
@@ -1 +0,0 @@
-1 \ No newline at end of file
diff --git a/tests/head/posix-3.I b/tests/head/posix-3.I
deleted file mode 100644
index d44e770..0000000
--- a/tests/head/posix-3.I
+++ /dev/null
@@ -1 +0,0 @@
-1234567890abcdefg \ No newline at end of file
diff --git a/tests/head/posix-3.X b/tests/head/posix-3.X
deleted file mode 100644
index 41f3900..0000000
--- a/tests/head/posix-3.X
+++ /dev/null
@@ -1 +0,0 @@
-1234567890abcd \ No newline at end of file
diff --git a/tests/help-version b/tests/help-version
deleted file mode 100755
index c17cc49..0000000
--- a/tests/help-version
+++ /dev/null
@@ -1,222 +0,0 @@
-#! /bin/sh
-# Make sure all these programs work properly
-# when invoked with --help or --version.
-
-# Copyright (C) 2000, 2001, 2002, 2003, 2004, 2005, 2006 Free Software
-# Foundation, Inc.
-
-# This program is free software; you can redistribute it and/or modify
-# it under the terms of the GNU General Public License as published by
-# the Free Software Foundation; either version 2 of the License, or
-# (at your option) any later version.
-
-# This program is distributed in the hope that it will be useful,
-# but WITHOUT ANY WARRANTY; without even the implied warranty of
-# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
-# GNU General Public License for more details.
-
-# You should have received a copy of the GNU General Public License
-# along with this program; if not, write to the Free Software
-# Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA
-# 02110-1301, USA.
-
-test "$VERBOSE" = yes && set -x
-
-# Ensure that $SHELL is set to *some* value and exported.
-# This is required for dircolors, which would fail e.g., when
-# invoked via debuild (which removes SHELL from the environment).
-test "x$SHELL" = x && SHELL=/bin/sh
-export SHELL
-
-. $srcdir/envvar-check
-
-expected_failure_status_nohup=127
-expected_failure_status_printenv=2
-expected_failure_status_tty=3
-expected_failure_status_sort=2
-expected_failure_status_expr=3
-expected_failure_status_lbracket=2
-expected_failure_status_dir=2
-expected_failure_status_ls=2
-expected_failure_status_vdir=2
-
-case "$all_programs" in
- *groups*)
- if test -w /dev/full && test -c /dev/full \
- && echo > /dev/full 2>/dev/null; then
- cat 1>&2 <<\EOF
-************************************************
-WARNING: On this system, the built-in echo function of /bin/sh
-does not report failure when writing to a full device.
-To demonstrate, run this command:
-
- /bin/sh -c 'echo hello > /dev/full; echo status=$?'
-
-Notice that the failing echo leaves its exit status set to zero
-and does not produce a diagnostic.
-
-That bug in /bin/sh would cause the test of the groups
-scripts to fail, so it is being removed from the list of
-programs checked by this test.
-************************************************
-EOF
- all_programs=`echo $all_programs | tr ' ' '\n' | grep -v '^groups$'`
- fi
- ;;
-esac
-
-fail=0
-
-for lang in C fr da; do
- for i in $all_programs; do
-
- # Skip `test'; it doesn't accept --help or --version.
- test $i = test && continue;
-
- # false fails even when invoked with --help or --version.
- if test $i = false; then
- env LC_MESSAGES=$lang ../src/$i --help >/dev/null && fail=1
- env LC_MESSAGES=$lang ../src/$i --version >/dev/null && fail=1
- continue
- fi
-
- # The just-built install executable is always named `ginstall'.
- test $i = install && i=ginstall
-
- # Make sure they exit successfully, under normal conditions.
- ../src/$i --help > h-$i || fail=1
- ../src/$i --version >/dev/null || fail=1
-
- # Make sure they mention the bug-reporting address in --help output.
- grep "$PACKAGE_BUGREPORT" h-$i > /dev/null || fail=1
- rm -f h-$i
-
- # Make sure they fail upon `disk full' error.
- if test -w /dev/full && test -c /dev/full; then
- ../src/$i --help >/dev/full 2>/dev/null && fail=1
- ../src/$i --version >/dev/full 2>/dev/null && fail=1
- status=$?
- test $i = [ && prog=lbracket || prog=$i
- eval "expected=\$expected_failure_status_$prog"
- test x$expected = x && expected=1
- if test $status = $expected; then
- : # ok
- else
- fail=1
- echo "*** $i: bad exit status \`$status' (expected $expected)," 1>&2
- echo " with --help or --version output redirected to /dev/full" 1>&2
- fi
- fi
- done
-done
-
-tmp=tmp-$$
-tmp_in=in-$$
-tmp_in2=in2-$$
-tmp_dir=dir-$$
-tmp_out=out-$$
-mkdir $tmp || fail=1
-cd $tmp || fail=1
-
-comm_args="$tmp_in $tmp_in"
-csplit_args="$tmp_in //"
-cut_args='-f 1'
-join_args="$tmp_in $tmp_in"
-tr_args='a a'
-
-chmod_args="a+x $tmp_in"
-# Punt on these.
-chgrp_args=--version
-chown_args=--version
-mkfifo_args=--version
-mknod_args=--version
-# Punt on uptime, since it fails (e.g., failing to get boot time)
-# on some systems, and we shouldn't let that stop `make check'.
-uptime_args=--version
-
-cmp_args="$tmp_in $tmp_in2"
-
-# Tell dd not to print the line with transfer rate and total.
-# The transfer rate would vary between runs.
-dd_args=status=noxfer
-
-diff_args="$tmp_in $tmp_in2"
-sdiff_args="$tmp_in $tmp_in2"
-diff3_args="$tmp_in $tmp_in2 $tmp_in2"
-cp_args="$tmp_in $tmp_in2"
-ln_args="$tmp_in ln-target"
-ginstall_args="$tmp_in $tmp_in2"
-mv_args="$tmp_in $tmp_in2"
-mkdir_args=$tmp_dir/subdir
-rmdir_args=$tmp_dir
-rm_args=$tmp_in
-shred_args=$tmp_in
-touch_args=$tmp_in2
-
-basename_args=$tmp_in
-dirname_args=$tmp_in
-expr_args=foo
-
-# Punt, in case GNU `id' hasn't been installed yet.
-groups_args=--version
-
-pathchk_args=$tmp_in
-yes_args=--version
-logname_args=--version
-nohup_args=--version
-printf_args=foo
-seq_args=10
-sleep_args=0
-su_args=--version
-
-# I'd rather not run sync, since it spins up disks that I've
-# deliberately caused to spin down (but not unmounted).
-sync_args=--version
-
-test_args=foo
-
-# This is necessary in the unusual event that there is
-# no valid entry in /etc/mtab.
-df_args=/
-
-# This is necessary in the unusual event that getpwuid (getuid ()) fails.
-id_args=-u
-
-sleep 10m &
-kill_args=$!
-
-link_args="$tmp_in link-target"
-unlink_args=$tmp_in
-
-ln -s . slink
-readlink_args=slink
-
-stat_args=$tmp_in
-unlink_args=$tmp_in
-lbracket_args=": ]"
-
-for i in $all_programs; do
- # Skip these.
- case $i in chroot|stty|tty|false) continue;; esac
-
- rm -rf $tmp_in $tmp_in2 $tmp_dir $tmp_out
- echo > $tmp_in
- echo > $tmp_in2
- mkdir $tmp_dir
- # echo ================== $i
- test $i = [ && prog=lbracket || prog=$i
- eval "args=\$${prog}_args"
- if ../../src/$i $args < $tmp_in > $tmp_out; then
- : # ok
- else
- echo FAIL: $i
- fail=1
- fi
- rm -rf $tmp_in $tmp_in2 $tmp_out $tmp_dir
-done
-
-# FIXME: trap
-cd ..
-rm -rf $tmp
-
-exit $fail
diff --git a/tests/id/context.sh b/tests/id/context.sh
new file mode 100755
index 0000000..bffbcf2
--- /dev/null
+++ b/tests/id/context.sh
@@ -0,0 +1,35 @@
+#!/bin/sh
+# Ensure that "id" outputs SELinux context only without specified user
+# Copyright (C) 2008-2016 Free Software Foundation, Inc.
+
+# This program is free software: you can redistribute it and/or modify
+# it under the terms of the GNU General Public License as published by
+# the Free Software Foundation, either version 3 of the License, or
+# (at your option) any later version.
+
+# This program is distributed in the hope that it will be useful,
+# but WITHOUT ANY WARRANTY; without even the implied warranty of
+# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
+# GNU General Public License for more details.
+
+# You should have received a copy of the GNU General Public License
+# along with this program. If not, see <http://www.gnu.org/licenses/>.
+
+. "${srcdir=.}/tests/init.sh"; path_prepend_ ./src
+print_ver_ id
+# Require selinux - when selinux is disabled, id never prints scontext.
+require_selinux_
+
+
+# Check without specified user, context string should be present.
+id | grep context= >/dev/null || fail=1
+
+# Check with specified user, no context string should be present.
+# But if the current user is nameless, skip this part.
+name=$(id -nu) || { test $? -ne 1 && fail=1; }
+if test "$name"; then
+ id "$name" > id_name || fail=1
+ grep context= id_name >/dev/null && fail=1
+fi
+
+Exit $fail
diff --git a/tests/id/gnu-zero-uids.sh b/tests/id/gnu-zero-uids.sh
new file mode 100755
index 0000000..6eea1d0
--- /dev/null
+++ b/tests/id/gnu-zero-uids.sh
@@ -0,0 +1,29 @@
+#!/bin/sh
+# On GNU, 'id' must fail for processes with zero UIDs.
+
+# Copyright (C) 2011-2016 Free Software Foundation, Inc.
+
+# This program is free software: you can redistribute it and/or modify
+# it under the terms of the GNU General Public License as published by
+# the Free Software Foundation, either version 3 of the License, or
+# (at your option) any later version.
+
+# This program is distributed in the hope that it will be useful,
+# but WITHOUT ANY WARRANTY; without even the implied warranty of
+# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
+# GNU General Public License for more details.
+
+# You should have received a copy of the GNU General Public License
+# along with this program. If not, see <http://www.gnu.org/licenses/>.
+
+. "${srcdir=.}/tests/init.sh"; path_prepend_ ./src
+print_ver_ id
+
+require_gnu_
+
+sush - true || skip_ "the 'sush' command does not work"
+
+# Run 'id' with zero UIDs. It should exit with a non-zero status.
+returns_ 1 sush - id > out || fail=1
+
+Exit $fail
diff --git a/tests/id/no-context.sh b/tests/id/no-context.sh
new file mode 100755
index 0000000..d2d3750
--- /dev/null
+++ b/tests/id/no-context.sh
@@ -0,0 +1,35 @@
+#!/bin/sh
+# With POSIXLY_CORRECT, id must not print context=...
+
+# Copyright (C) 2009-2016 Free Software Foundation, Inc.
+
+# This program is free software: you can redistribute it and/or modify
+# it under the terms of the GNU General Public License as published by
+# the Free Software Foundation, either version 3 of the License, or
+# (at your option) any later version.
+
+# This program is distributed in the hope that it will be useful,
+# but WITHOUT ANY WARRANTY; without even the implied warranty of
+# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
+# GNU General Public License for more details.
+
+# You should have received a copy of the GNU General Public License
+# along with this program. If not, see <http://www.gnu.org/licenses/>.
+
+. "${srcdir=.}/tests/init.sh"; path_prepend_ ./src
+print_ver_ id
+
+# We don't need selinux *FS* support to test id,
+# but this is as good a witness as any, in general.
+require_selinux_
+
+
+# Require the context=... part by default.
+id > out || fail=1
+grep context= out || fail=1
+
+# Require no context=... part in conforming mode.
+POSIXLY_CORRECT=1 id > out || fail=1
+grep context= out && fail=1
+
+Exit $fail
diff --git a/tests/id/setgid.sh b/tests/id/setgid.sh
new file mode 100755
index 0000000..ea0db85
--- /dev/null
+++ b/tests/id/setgid.sh
@@ -0,0 +1,40 @@
+#!/bin/sh
+# Verify that id [-G] prints the right group when run set-GID.
+
+# Copyright (C) 2012-2016 Free Software Foundation, Inc.
+
+# This program is free software: you can redistribute it and/or modify
+# it under the terms of the GNU General Public License as published by
+# the Free Software Foundation, either version 3 of the License, or
+# (at your option) any later version.
+
+# This program is distributed in the hope that it will be useful,
+# but WITHOUT ANY WARRANTY; without even the implied warranty of
+# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
+# GNU General Public License for more details.
+
+# You should have received a copy of the GNU General Public License
+# along with this program. If not, see <http://www.gnu.org/licenses/>.
+
+. "${srcdir=.}/tests/init.sh"; path_prepend_ ./src
+print_ver_ id
+require_root_
+
+# Construct a different group number
+gp1=$(expr $NON_ROOT_GID + 1)
+
+echo $gp1 > exp || framework_failure_
+
+# With coreutils-8.16 and earlier, id -G would print both:
+# $gp1 $NON_ROOT_GID
+chroot --skip-chdir --user=$NON_ROOT_USERNAME:+$gp1 --groups='' / \
+ env PATH="$PATH" id -G > out || fail=1
+compare exp out || fail=1
+
+# With coreutils-8.22 and earlier, id would erroneously print
+# groups=$NON_ROOT_GID
+chroot --skip-chdir --user=$NON_ROOT_USERNAME:+$gp1 --groups='' / \
+ env PATH="$PATH" id > out || fail=1
+grep -F "groups=$gp1" out || { cat out; fail=1; }
+
+Exit $fail
diff --git a/tests/id/smack.sh b/tests/id/smack.sh
new file mode 100755
index 0000000..644218a
--- /dev/null
+++ b/tests/id/smack.sh
@@ -0,0 +1,37 @@
+#!/bin/sh
+# SMACK test for the id-command.
+# Derived from tests/id/context.sh and tests/id/no-context.sh.
+# Copyright (C) 2014-2016 Free Software Foundation, Inc.
+
+# This program is free software: you can redistribute it and/or modify
+# it under the terms of the GNU General Public License as published by
+# the Free Software Foundation, either version 3 of the License, or
+# (at your option) any later version.
+
+# This program is distributed in the hope that it will be useful,
+# but WITHOUT ANY WARRANTY; without even the implied warranty of
+# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
+# GNU General Public License for more details.
+
+# You should have received a copy of the GNU General Public License
+# along with this program. If not, see <http://www.gnu.org/licenses/>.
+
+. "${srcdir=.}/tests/init.sh"; path_prepend_ ./src
+print_ver_ id
+
+require_smack_
+
+# Check the string "context=" presence without specified user.
+id > out || fail=1
+grep 'context=' out || { cat out; fail=1; }
+
+# Check context=" is absent without specified user in conforming mode.
+POSIXLY_CORRECT=1 id > out || fail=1
+grep 'context=' out && fail=1
+
+# Check the string "context=" absence with specified user.
+# But if the current user is nameless, skip this part.
+id -nu > /dev/null && id $(id -nu) > out
+grep 'context=' out && fail=1
+
+Exit $fail
diff --git a/tests/id/uid.sh b/tests/id/uid.sh
new file mode 100755
index 0000000..183280c
--- /dev/null
+++ b/tests/id/uid.sh
@@ -0,0 +1,37 @@
+#!/bin/sh
+# Ensure that "id" works with numeric user ids
+# Copyright (C) 2013-2016 Free Software Foundation, Inc.
+
+# This program is free software: you can redistribute it and/or modify
+# it under the terms of the GNU General Public License as published by
+# the Free Software Foundation, either version 3 of the License, or
+# (at your option) any later version.
+
+# This program is distributed in the hope that it will be useful,
+# but WITHOUT ANY WARRANTY; without even the implied warranty of
+# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
+# GNU General Public License for more details.
+
+# You should have received a copy of the GNU General Public License
+# along with this program. If not, see <http://www.gnu.org/licenses/>.
+
+. "${srcdir=.}/tests/init.sh"; path_prepend_ ./src
+print_ver_ id
+
+uid=$(id -u) || fail=1
+user=$(id -nu) || fail=1
+
+# Ensure the empty user spec is discarded
+returns_ 1 id '' || fail=1
+
+for mode in '' '-G' '-g'; do
+ id $mode $user > user_out || fail=1 # lookup name for comparison
+
+ id $mode $uid > uid_out || fail=1 # lookup name "$uid" before id "$uid"
+ compare user_out uid_out || fail=1
+
+ id $mode +$uid > uid_out || fail=1 # lookup only id "$uid"
+ compare user_out uid_out || fail=1
+done
+
+Exit $fail
diff --git a/tests/id/zero.sh b/tests/id/zero.sh
new file mode 100755
index 0000000..28db15d
--- /dev/null
+++ b/tests/id/zero.sh
@@ -0,0 +1,66 @@
+#!/bin/sh
+# Exercise "id --zero".
+
+# Copyright (C) 2013-2016 Free Software Foundation, Inc.
+
+# This program is free software: you can redistribute it and/or modify
+# it under the terms of the GNU General Public License as published by
+# the Free Software Foundation, either version 3 of the License, or
+# (at your option) any later version.
+
+# This program is distributed in the hope that it will be useful,
+# but WITHOUT ANY WARRANTY; without even the implied warranty of
+# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
+# GNU General Public License for more details.
+
+# You should have received a copy of the GNU General Public License
+# along with this program. If not, see <http://www.gnu.org/licenses/>.
+
+. "${srcdir=.}/tests/init.sh"; path_prepend_ ./src
+print_ver_ id
+
+u="$( id -nu )"
+id || fail=1
+id "$u" || fail=1
+
+# id(1) should refuse --zero in default format.
+echo 'id: option --zero not permitted in default format' > err-exp \
+ || framework_failure_
+id --zero > out 2>err && fail=1
+compare /dev/null out || fail=1
+compare err-exp err || fail=1
+
+# Create a nice list of users.
+# Add $USER to ensure we have at least one explicit entry.
+users="$u"
+# Add a few typical users to test single group and multiple groups.
+for u in root man postfix sshd nobody ; do
+ id $u >/dev/null 2>&1 && users="$users $u"
+done
+# Add $users and '' (implicit $USER) to list to process.
+printf '%s\n' $users '' >> users || framework_failure_
+
+# Exercise "id -z" with various options.
+printf '\n' > exp || framework_failure_
+> out || framework_failure_
+
+while read u ; do
+ for o in g gr G Gr u ur ; do
+ for n in '' n ; do
+ printf '%s: ' "id -${o}${n}[z] $u" >> exp || framework_failure_
+ printf '\n%s: ' "id -${o}${n}[z] $u" >> out || framework_failure_
+ # There may be no name corresponding to an id, so don't check
+ # exit status when in name lookup mode
+ id -${o}${n} $u >> exp ||
+ { test $? -ne 1 || test -z "$n" && fail=1; }
+ id -${o}${n}z $u > tmp ||
+ { test $? -ne 1 || test -z "$n" && fail=1; }
+ head -c-1 < tmp >> out || framework_failure_
+ done
+ done
+done < users
+printf '\n' >> out || framework_failure_
+tr '\0' ' ' < out > out2 || framework_failure_
+compare exp out2 || fail=1
+
+Exit $fail
diff --git a/tests/init.sh b/tests/init.sh
new file mode 100755
index 0000000..ee08022
--- /dev/null
+++ b/tests/init.sh
@@ -0,0 +1,613 @@
+# source this file; set up for tests
+
+# Copyright (C) 2009-2016 Free Software Foundation, Inc.
+
+# This program is free software: you can redistribute it and/or modify
+# it under the terms of the GNU General Public License as published by
+# the Free Software Foundation, either version 3 of the License, or
+# (at your option) any later version.
+
+# This program is distributed in the hope that it will be useful,
+# but WITHOUT ANY WARRANTY; without even the implied warranty of
+# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
+# GNU General Public License for more details.
+
+# You should have received a copy of the GNU General Public License
+# along with this program. If not, see <http://www.gnu.org/licenses/>.
+
+# Using this file in a test
+# =========================
+#
+# The typical skeleton of a test looks like this:
+#
+# #!/bin/sh
+# . "${srcdir=.}/init.sh"; path_prepend_ .
+# Execute some commands.
+# Note that these commands are executed in a subdirectory, therefore you
+# need to prepend "../" to relative filenames in the build directory.
+# Note that the "path_prepend_ ." is useful only if the body of your
+# test invokes programs residing in the initial directory.
+# For example, if the programs you want to test are in src/, and this test
+# script is named tests/test-1, then you would use "path_prepend_ ../src",
+# or perhaps export PATH='$(abs_top_builddir)/src$(PATH_SEPARATOR)'"$$PATH"
+# to all tests via automake's TESTS_ENVIRONMENT.
+# Set the exit code 0 for success, 77 for skipped, or 1 or other for failure.
+# Use the skip_ and fail_ functions to print a diagnostic and then exit
+# with the corresponding exit code.
+# Exit $?
+
+# Executing a test that uses this file
+# ====================================
+#
+# Running a single test:
+# $ make check TESTS=test-foo.sh
+#
+# Running a single test, with verbose output:
+# $ make check TESTS=test-foo.sh VERBOSE=yes
+#
+# Running a single test, with single-stepping:
+# 1. Go into a sub-shell:
+# $ bash
+# 2. Set relevant environment variables from TESTS_ENVIRONMENT in the
+# Makefile:
+# $ export srcdir=../../tests # this is an example
+# 3. Execute the commands from the test, copy&pasting them one by one:
+# $ . "$srcdir/init.sh"; path_prepend_ .
+# ...
+# 4. Finally
+# $ exit
+
+ME_=`expr "./$0" : '.*/\(.*\)$'`
+
+# We use a trap below for cleanup. This requires us to go through
+# hoops to get the right exit status transported through the handler.
+# So use 'Exit STATUS' instead of 'exit STATUS' inside of the tests.
+# Turn off errexit here so that we don't trip the bug with OSF1/Tru64
+# sh inside this function.
+Exit () { set +e; (exit $1); exit $1; }
+
+# Print warnings (e.g., about skipped and failed tests) to this file number.
+# Override by defining to say, 9, in init.cfg, and putting say,
+# export ...ENVVAR_SETTINGS...; $(SHELL) 9>&2
+# in the definition of TESTS_ENVIRONMENT in your tests/Makefile.am file.
+# This is useful when using automake's parallel tests mode, to print
+# the reason for skip/failure to console, rather than to the .log files.
+: ${stderr_fileno_=2}
+
+# Note that correct expansion of "$*" depends on IFS starting with ' '.
+# Always write the full diagnostic to stderr.
+# When stderr_fileno_ is not 2, also emit the first line of the
+# diagnostic to that file descriptor.
+warn_ ()
+{
+ # If IFS does not start with ' ', set it and emit the warning in a subshell.
+ case $IFS in
+ ' '*) printf '%s\n' "$*" >&2
+ test $stderr_fileno_ = 2 \
+ || { printf '%s\n' "$*" | sed 1q >&$stderr_fileno_ ; } ;;
+ *) (IFS=' '; warn_ "$@");;
+ esac
+}
+fail_ () { warn_ "$ME_: failed test: $@"; Exit 1; }
+skip_ () { warn_ "$ME_: skipped test: $@"; Exit 77; }
+fatal_ () { warn_ "$ME_: hard error: $@"; Exit 99; }
+framework_failure_ () { warn_ "$ME_: set-up failure: $@"; Exit 99; }
+
+# This is used to simplify checking of the return value
+# which is useful when ensuring a command fails as desired.
+# I.e., just doing `command ... &&fail=1` will not catch
+# a segfault in command for example. With this helper you
+# instead check an explicit exit code like
+# returns_ 1 command ... || fail
+returns_ () {
+ # Disable tracing so it doesn't interfere with stderr of the wrapped command
+ { set +x; } 2>/dev/null
+
+ local exp_exit="$1"
+ shift
+ "$@"
+ test $? -eq $exp_exit && ret_=0 || ret_=1
+
+ if test "$VERBOSE" = yes && test "$gl_set_x_corrupts_stderr_" = false; then
+ set -x
+ fi
+ { return $ret_; } 2>/dev/null
+}
+
+# Sanitize this shell to POSIX mode, if possible.
+DUALCASE=1; export DUALCASE
+if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
+ emulate sh
+ NULLCMD=:
+ alias -g '${1+"$@"}'='"$@"'
+ setopt NO_GLOB_SUBST
+else
+ case `(set -o) 2>/dev/null` in
+ *posix*) set -o posix ;;
+ esac
+fi
+
+# We require $(...) support unconditionally.
+# We require a few additional shell features only when $EXEEXT is nonempty,
+# in order to support automatic $EXEEXT emulation:
+# - hyphen-containing alias names
+# - we prefer to use ${var#...} substitution, rather than having
+# to work around lack of support for that feature.
+# The following code attempts to find a shell with support for these features.
+# If the current shell passes the test, we're done. Otherwise, test other
+# shells until we find one that passes. If one is found, re-exec it.
+# If no acceptable shell is found, skip the current test.
+#
+# The "...set -x; P=1 true 2>err..." test is to disqualify any shell that
+# emits "P=1" into err, as /bin/sh from SunOS 5.11 and OpenBSD 4.7 do.
+#
+# Use "9" to indicate success (rather than 0), in case some shell acts
+# like Solaris 10's /bin/sh but exits successfully instead of with status 2.
+
+# Eval this code in a subshell to determine a shell's suitability.
+# 10 - passes all tests; ok to use
+# 9 - ok, but enabling "set -x" corrupts app stderr; prefer higher score
+# ? - not ok
+gl_shell_test_script_='
+test $(echo y) = y || exit 1
+f_local_() { local v=1; }; f_local_ || exit 1
+score_=10
+if test "$VERBOSE" = yes; then
+ test -n "$( (exec 3>&1; set -x; P=1 true 2>&3) 2> /dev/null)" && score_=9
+fi
+test -z "$EXEEXT" && exit $score_
+shopt -s expand_aliases
+alias a-b="echo zoo"
+v=abx
+ test ${v%x} = ab \
+ && test ${v#a} = bx \
+ && test $(a-b) = zoo \
+ && exit $score_
+'
+
+if test "x$1" = "x--no-reexec"; then
+ shift
+else
+ # Assume a working shell. Export to subshells (setup_ needs this).
+ gl_set_x_corrupts_stderr_=false
+ export gl_set_x_corrupts_stderr_
+
+ # Record the first marginally acceptable shell.
+ marginal_=
+
+ # Search for a shell that meets our requirements.
+ for re_shell_ in __current__ "${CONFIG_SHELL:-no_shell}" \
+ /bin/sh bash dash zsh pdksh fail
+ do
+ test "$re_shell_" = no_shell && continue
+
+ # If we've made it all the way to the sentinel, "fail" without
+ # finding even a marginal shell, skip this test.
+ if test "$re_shell_" = fail; then
+ test -z "$marginal_" && skip_ failed to find an adequate shell
+ re_shell_=$marginal_
+ break
+ fi
+
+ # When testing the current shell, simply "eval" the test code.
+ # Otherwise, run it via $re_shell_ -c ...
+ if test "$re_shell_" = __current__; then
+ # 'eval'ing this code makes Solaris 10's /bin/sh exit with
+ # $? set to 2. It does not evaluate any of the code after the
+ # "unexpected" first '('. Thus, we must run it in a subshell.
+ ( eval "$gl_shell_test_script_" ) > /dev/null 2>&1
+ else
+ "$re_shell_" -c "$gl_shell_test_script_" 2>/dev/null
+ fi
+
+ st_=$?
+
+ # $re_shell_ works just fine. Use it.
+ if test $st_ = 10; then
+ gl_set_x_corrupts_stderr_=false
+ break
+ fi
+
+ # If this is our first marginally acceptable shell, remember it.
+ if test "$st_:$marginal_" = 9: ; then
+ marginal_="$re_shell_"
+ gl_set_x_corrupts_stderr_=true
+ fi
+ done
+
+ if test "$re_shell_" != __current__; then
+ # Found a usable shell. Preserve -v and -x.
+ case $- in
+ *v*x* | *x*v*) opts_=-vx ;;
+ *v*) opts_=-v ;;
+ *x*) opts_=-x ;;
+ *) opts_= ;;
+ esac
+ re_shell=$re_shell_
+ export re_shell
+ exec "$re_shell_" $opts_ "$0" --no-reexec "$@"
+ echo "$ME_: exec failed" 1>&2
+ exit 127
+ fi
+fi
+
+# If this is bash, turn off all aliases.
+test -n "$BASH_VERSION" && unalias -a
+
+# Note that when supporting $EXEEXT (transparently mapping from PROG_NAME to
+# PROG_NAME.exe), we want to support hyphen-containing names like test-acos.
+# That is part of the shell-selection test above. Why use aliases rather
+# than functions? Because support for hyphen-containing aliases is more
+# widespread than that for hyphen-containing function names.
+test -n "$EXEEXT" && shopt -s expand_aliases
+
+# Enable glibc's malloc-perturbing option.
+# This is useful for exposing code that depends on the fact that
+# malloc-related functions often return memory that is mostly zeroed.
+# If you have the time and cycles, use valgrind to do an even better job.
+: ${MALLOC_PERTURB_=87}
+export MALLOC_PERTURB_
+
+# This is a stub function that is run upon trap (upon regular exit and
+# interrupt). Override it with a per-test function, e.g., to unmount
+# a partition, or to undo any other global state changes.
+cleanup_ () { :; }
+
+# Emit a header similar to that from diff -u; Print the simulated "diff"
+# command so that the order of arguments is clear. Don't bother with @@ lines.
+emit_diff_u_header_ ()
+{
+ printf '%s\n' "diff -u $*" \
+ "--- $1 1970-01-01" \
+ "+++ $2 1970-01-01"
+}
+
+# Arrange not to let diff or cmp operate on /dev/null,
+# since on some systems (at least OSF/1 5.1), that doesn't work.
+# When there are not two arguments, or no argument is /dev/null, return 2.
+# When one argument is /dev/null and the other is not empty,
+# cat the nonempty file to stderr and return 1.
+# Otherwise, return 0.
+compare_dev_null_ ()
+{
+ test $# = 2 || return 2
+
+ if test "x$1" = x/dev/null; then
+ test -s "$2" || return 0
+ emit_diff_u_header_ "$@"; sed 's/^/+/' "$2"
+ return 1
+ fi
+
+ if test "x$2" = x/dev/null; then
+ test -s "$1" || return 0
+ emit_diff_u_header_ "$@"; sed 's/^/-/' "$1"
+ return 1
+ fi
+
+ return 2
+}
+
+if diff_out_=`exec 2>/dev/null; diff -u "$0" "$0" < /dev/null` \
+ && diff -u Makefile "$0" 2>/dev/null | grep '^[+]#!' >/dev/null; then
+ # diff accepts the -u option and does not (like AIX 7 'diff') produce an
+ # extra space on column 1 of every content line.
+ if test -z "$diff_out_"; then
+ compare_ () { diff -u "$@"; }
+ else
+ compare_ ()
+ {
+ if diff -u "$@" > diff.out; then
+ # No differences were found, but Solaris 'diff' produces output
+ # "No differences encountered". Hide this output.
+ rm -f diff.out
+ true
+ else
+ cat diff.out
+ rm -f diff.out
+ false
+ fi
+ }
+ fi
+elif diff_out_=`exec 2>/dev/null; diff -c "$0" "$0" < /dev/null`; then
+ if test -z "$diff_out_"; then
+ compare_ () { diff -c "$@"; }
+ else
+ compare_ ()
+ {
+ if diff -c "$@" > diff.out; then
+ # No differences were found, but AIX and HP-UX 'diff' produce output
+ # "No differences encountered" or "There are no differences between the
+ # files.". Hide this output.
+ rm -f diff.out
+ true
+ else
+ cat diff.out
+ rm -f diff.out
+ false
+ fi
+ }
+ fi
+elif cmp -s /dev/null /dev/null 2>/dev/null; then
+ compare_ () { cmp -s "$@"; }
+else
+ compare_ () { cmp "$@"; }
+fi
+
+# Usage: compare EXPECTED ACTUAL
+#
+# Given compare_dev_null_'s preprocessing, defer to compare_ if 2 or more.
+# Otherwise, propagate $? to caller: any diffs have already been printed.
+compare ()
+{
+ # This looks like it can be factored to use a simple "case $?"
+ # after unchecked compare_dev_null_ invocation, but that would
+ # fail in a "set -e" environment.
+ if compare_dev_null_ "$@"; then
+ return 0
+ else
+ case $? in
+ 1) return 1;;
+ *) compare_ "$@";;
+ esac
+ fi
+}
+
+# An arbitrary prefix to help distinguish test directories.
+testdir_prefix_ () { printf gt; }
+
+# Run the user-overridable cleanup_ function, remove the temporary
+# directory and exit with the incoming value of $?.
+remove_tmp_ ()
+{
+ __st=$?
+ cleanup_
+ # cd out of the directory we're about to remove
+ cd "$initial_cwd_" || cd / || cd /tmp
+ chmod -R u+rwx "$test_dir_"
+ # If removal fails and exit status was to be 0, then change it to 1.
+ rm -rf "$test_dir_" || { test $__st = 0 && __st=1; }
+ exit $__st
+}
+
+# Given a directory name, DIR, if every entry in it that matches *.exe
+# contains only the specified bytes (see the case stmt below), then print
+# a space-separated list of those names and return 0. Otherwise, don't
+# print anything and return 1. Naming constraints apply also to DIR.
+find_exe_basenames_ ()
+{
+ feb_dir_=$1
+ feb_fail_=0
+ feb_result_=
+ feb_sp_=
+ for feb_file_ in $feb_dir_/*.exe; do
+ # If there was no *.exe file, or there existed a file named "*.exe" that
+ # was deleted between the above glob expansion and the existence test
+ # below, just skip it.
+ test "x$feb_file_" = "x$feb_dir_/*.exe" && test ! -f "$feb_file_" \
+ && continue
+ # Exempt [.exe, since we can't create a function by that name, yet
+ # we can't invoke [ by PATH search anyways due to shell builtins.
+ test "x$feb_file_" = "x$feb_dir_/[.exe" && continue
+ case $feb_file_ in
+ *[!-a-zA-Z/0-9_.+]*) feb_fail_=1; break;;
+ *) # Remove leading file name components as well as the .exe suffix.
+ feb_file_=${feb_file_##*/}
+ feb_file_=${feb_file_%.exe}
+ feb_result_="$feb_result_$feb_sp_$feb_file_";;
+ esac
+ feb_sp_=' '
+ done
+ test $feb_fail_ = 0 && printf %s "$feb_result_"
+ return $feb_fail_
+}
+
+# Consider the files in directory, $1.
+# For each file name of the form PROG.exe, create an alias named
+# PROG that simply invokes PROG.exe, then return 0. If any selected
+# file name or the directory name, $1, contains an unexpected character,
+# define no alias and return 1.
+create_exe_shims_ ()
+{
+ case $EXEEXT in
+ '') return 0 ;;
+ .exe) ;;
+ *) echo "$0: unexpected \$EXEEXT value: $EXEEXT" 1>&2; return 1 ;;
+ esac
+
+ base_names_=`find_exe_basenames_ $1` \
+ || { echo "$0 (exe_shim): skipping directory: $1" 1>&2; return 0; }
+
+ if test -n "$base_names_"; then
+ for base_ in $base_names_; do
+ alias "$base_"="$base_$EXEEXT"
+ done
+ fi
+
+ return 0
+}
+
+# Use this function to prepend to PATH an absolute name for each
+# specified, possibly-$initial_cwd_-relative, directory.
+path_prepend_ ()
+{
+ while test $# != 0; do
+ path_dir_=$1
+ case $path_dir_ in
+ '') fail_ "invalid path dir: '$1'";;
+ /*) abs_path_dir_=$path_dir_;;
+ *) abs_path_dir_=$initial_cwd_/$path_dir_;;
+ esac
+ case $abs_path_dir_ in
+ *:*) fail_ "invalid path dir: '$abs_path_dir_'";;
+ esac
+ PATH="$abs_path_dir_:$PATH"
+
+ # Create an alias, FOO, for each FOO.exe in this directory.
+ create_exe_shims_ "$abs_path_dir_" \
+ || fail_ "something failed (above): $abs_path_dir_"
+ shift
+ done
+ export PATH
+}
+
+setup_ ()
+{
+ if test "$VERBOSE" = yes; then
+ # Test whether set -x may cause the selected shell to corrupt an
+ # application's stderr. Many do, including zsh-4.3.10 and the /bin/sh
+ # from SunOS 5.11, OpenBSD 4.7 and Irix 5.x and 6.5.
+ # If enabling verbose output this way would cause trouble, simply
+ # issue a warning and refrain.
+ if $gl_set_x_corrupts_stderr_; then
+ warn_ "using SHELL=$SHELL with 'set -x' corrupts stderr"
+ else
+ set -x
+ fi
+ fi
+
+ initial_cwd_=$PWD
+ fail=0
+
+ pfx_=`testdir_prefix_`
+ test_dir_=`mktempd_ "$initial_cwd_" "$pfx_-$ME_.XXXX"` \
+ || fail_ "failed to create temporary directory in $initial_cwd_"
+ cd "$test_dir_" || fail_ "failed to cd to temporary directory"
+
+ # As autoconf-generated configure scripts do, ensure that IFS
+ # is defined initially, so that saving and restoring $IFS works.
+ gl_init_sh_nl_='
+'
+ IFS=" "" $gl_init_sh_nl_"
+
+ # This trap statement, along with a trap on 0 below, ensure that the
+ # temporary directory, $test_dir_, is removed upon exit as well as
+ # upon receipt of any of the listed signals.
+ for sig_ in 1 2 3 13 15; do
+ eval "trap 'Exit $(expr $sig_ + 128)' $sig_"
+ done
+}
+
+# Create a temporary directory, much like mktemp -d does.
+# Written by Jim Meyering.
+#
+# Usage: mktempd_ /tmp phoey.XXXXXXXXXX
+#
+# First, try to use the mktemp program.
+# Failing that, we'll roll our own mktemp-like function:
+# - try to get random bytes from /dev/urandom
+# - failing that, generate output from a combination of quickly-varying
+# sources and gzip. Ignore non-varying gzip header, and extract
+# "random" bits from there.
+# - given those bits, map to file-name bytes using tr, and try to create
+# the desired directory.
+# - make only $MAX_TRIES_ attempts
+
+# Helper function. Print $N pseudo-random bytes from a-zA-Z0-9.
+rand_bytes_ ()
+{
+ n_=$1
+
+ # Maybe try openssl rand -base64 $n_prime_|tr '+/=\012' abcd first?
+ # But if they have openssl, they probably have mktemp, too.
+
+ chars_=abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789
+ dev_rand_=/dev/urandom
+ if test -r "$dev_rand_"; then
+ # Note: 256-length($chars_) == 194; 3 copies of $chars_ is 186 + 8 = 194.
+ dd ibs=$n_ count=1 if=$dev_rand_ 2>/dev/null \
+ | LC_ALL=C tr -c $chars_ 01234567$chars_$chars_$chars_
+ return
+ fi
+
+ n_plus_50_=`expr $n_ + 50`
+ cmds_='date; date +%N; free; who -a; w; ps auxww; ps ef; netstat -n'
+ data_=` (eval "$cmds_") 2>&1 | gzip `
+
+ # Ensure that $data_ has length at least 50+$n_
+ while :; do
+ len_=`echo "$data_"|wc -c`
+ test $n_plus_50_ -le $len_ && break;
+ data_=` (echo "$data_"; eval "$cmds_") 2>&1 | gzip `
+ done
+
+ echo "$data_" \
+ | dd bs=1 skip=50 count=$n_ 2>/dev/null \
+ | LC_ALL=C tr -c $chars_ 01234567$chars_$chars_$chars_
+}
+
+mktempd_ ()
+{
+ case $# in
+ 2);;
+ *) fail_ "Usage: mktempd_ DIR TEMPLATE";;
+ esac
+
+ destdir_=$1
+ template_=$2
+
+ MAX_TRIES_=4
+
+ # Disallow any trailing slash on specified destdir:
+ # it would subvert the post-mktemp "case"-based destdir test.
+ case $destdir_ in
+ /) ;;
+ */) fail_ "invalid destination dir: remove trailing slash(es)";;
+ esac
+
+ case $template_ in
+ *XXXX) ;;
+ *) fail_ \
+ "invalid template: $template_ (must have a suffix of at least 4 X's)";;
+ esac
+
+ # First, try to use mktemp.
+ d=`unset TMPDIR; { mktemp -d -t -p "$destdir_" "$template_"; } 2>/dev/null` \
+ || fail=1
+
+ # The resulting name must be in the specified directory.
+ case $d in "$destdir_"*);; *) fail=1;; esac
+
+ # It must have created the directory.
+ test -d "$d" || fail=1
+
+ # It must have 0700 permissions. Handle sticky "S" bits.
+ perms=`ls -dgo "$d" 2>/dev/null|tr S -` || fail=1
+ case $perms in drwx------*) ;; *) fail=1;; esac
+
+ test $fail = 0 && {
+ echo "$d"
+ return
+ }
+
+ # If we reach this point, we'll have to create a directory manually.
+
+ # Get a copy of the template without its suffix of X's.
+ base_template_=`echo "$template_"|sed 's/XX*$//'`
+
+ # Calculate how many X's we've just removed.
+ template_length_=`echo "$template_" | wc -c`
+ nx_=`echo "$base_template_" | wc -c`
+ nx_=`expr $template_length_ - $nx_`
+
+ err_=
+ i_=1
+ while :; do
+ X_=`rand_bytes_ $nx_`
+ candidate_dir_="$destdir_/$base_template_$X_"
+ err_=`mkdir -m 0700 "$candidate_dir_" 2>&1` \
+ && { echo "$candidate_dir_"; return; }
+ test $MAX_TRIES_ -le $i_ && break;
+ i_=`expr $i_ + 1`
+ done
+ fail_ "$err_"
+}
+
+# If you want to override the testdir_prefix_ function,
+# or to add more utility functions, use this file.
+test -f "$srcdir/init.cfg" \
+ && . "$srcdir/init.cfg"
+
+setup_ "$@"
+# This trap is here, rather than in the setup_ function, because some
+# shells run the exit trap at shell function exit, rather than script exit.
+trap remove_tmp_ 0
diff --git a/tests/input-tty b/tests/input-tty
deleted file mode 100644
index 7df1515..0000000
--- a/tests/input-tty
+++ /dev/null
@@ -1,10 +0,0 @@
-# Require a controlling input `terminal'.
-
-tty -s || have_input_tty=no
-test -t 1 || have_input_tty=no
-if test "$have_input_tty" = no; then
- echo "$0: This test must have a controlling input \`terminal'," 1>&2
- echo " so it may not be run via \`batch', \`at', or \`rsh'." 1>&2
- echo " On some systems, it may not even be run in the background." 1>&2
- (exit 77); exit 77
-fi
diff --git a/tests/install/Makefile.am b/tests/install/Makefile.am
deleted file mode 100644
index 5544d7d..0000000
--- a/tests/install/Makefile.am
+++ /dev/null
@@ -1,7 +0,0 @@
-## Process this file with automake to produce Makefile.in -*-Makefile-*-.
-TESTS = trap basic-1 create-leading d-slashdot
-EXTRA_DIST = $(TESTS)
-TESTS_ENVIRONMENT = \
- EXEEXT='$(EXEEXT)' \
- CU_TEST_NAME=`basename $(abs_srcdir)`,$$tst \
- PATH="$(VG_PATH_PREFIX)`pwd`/../../src$(PATH_SEPARATOR)$$PATH"
diff --git a/tests/install/Makefile.in b/tests/install/Makefile.in
deleted file mode 100644
index 4828378..0000000
--- a/tests/install/Makefile.in
+++ /dev/null
@@ -1,717 +0,0 @@
-# Makefile.in generated by automake 1.10 from Makefile.am.
-# @configure_input@
-
-# Copyright (C) 1994, 1995, 1996, 1997, 1998, 1999, 2000, 2001, 2002,
-# 2003, 2004, 2005, 2006 Free Software Foundation, Inc.
-# This Makefile.in is free software; the Free Software Foundation
-# gives unlimited permission to copy and/or distribute it,
-# with or without modifications, as long as this notice is preserved.
-
-# This program is distributed in the hope that it will be useful,
-# but WITHOUT ANY WARRANTY, to the extent permitted by law; without
-# even the implied warranty of MERCHANTABILITY or FITNESS FOR A
-# PARTICULAR PURPOSE.
-
-@SET_MAKE@
-VPATH = @srcdir@
-pkgdatadir = $(datadir)/@PACKAGE@
-pkglibdir = $(libdir)/@PACKAGE@
-pkgincludedir = $(includedir)/@PACKAGE@
-am__cd = CDPATH="$${ZSH_VERSION+.}$(PATH_SEPARATOR)" && cd
-install_sh_DATA = $(install_sh) -c -m 644
-install_sh_PROGRAM = $(install_sh) -c
-install_sh_SCRIPT = $(install_sh) -c
-INSTALL_HEADER = $(INSTALL_DATA)
-transform = $(program_transform_name)
-NORMAL_INSTALL = :
-PRE_INSTALL = :
-POST_INSTALL = :
-NORMAL_UNINSTALL = :
-PRE_UNINSTALL = :
-POST_UNINSTALL = :
-build_triplet = @build@
-host_triplet = @host@
-subdir = tests/install
-DIST_COMMON = $(srcdir)/Makefile.am $(srcdir)/Makefile.in
-ACLOCAL_M4 = $(top_srcdir)/aclocal.m4
-am__aclocal_m4_deps = $(top_srcdir)/m4/absolute-header.m4 \
- $(top_srcdir)/m4/acl.m4 $(top_srcdir)/m4/alloca.m4 \
- $(top_srcdir)/m4/allocsa.m4 $(top_srcdir)/m4/argmatch.m4 \
- $(top_srcdir)/m4/arpa_inet_h.m4 $(top_srcdir)/m4/assert.m4 \
- $(top_srcdir)/m4/atexit.m4 $(top_srcdir)/m4/autobuild.m4 \
- $(top_srcdir)/m4/backupfile.m4 $(top_srcdir)/m4/base64.m4 \
- $(top_srcdir)/m4/bison.m4 $(top_srcdir)/m4/boottime.m4 \
- $(top_srcdir)/m4/c-strtod.m4 $(top_srcdir)/m4/calloc.m4 \
- $(top_srcdir)/m4/canon-host.m4 \
- $(top_srcdir)/m4/canonicalize.m4 \
- $(top_srcdir)/m4/chdir-long.m4 $(top_srcdir)/m4/check-decl.m4 \
- $(top_srcdir)/m4/chown.m4 $(top_srcdir)/m4/clock_time.m4 \
- $(top_srcdir)/m4/cloexec.m4 $(top_srcdir)/m4/close-stream.m4 \
- $(top_srcdir)/m4/closeout.m4 $(top_srcdir)/m4/codeset.m4 \
- $(top_srcdir)/m4/config-h.m4 $(top_srcdir)/m4/cycle-check.m4 \
- $(top_srcdir)/m4/d-ino.m4 $(top_srcdir)/m4/d-type.m4 \
- $(top_srcdir)/m4/dirfd.m4 $(top_srcdir)/m4/dirname.m4 \
- $(top_srcdir)/m4/dos.m4 $(top_srcdir)/m4/double-slash-root.m4 \
- $(top_srcdir)/m4/dup2.m4 $(top_srcdir)/m4/eealloc.m4 \
- $(top_srcdir)/m4/eoverflow.m4 $(top_srcdir)/m4/error.m4 \
- $(top_srcdir)/m4/euidaccess-stat.m4 \
- $(top_srcdir)/m4/euidaccess.m4 $(top_srcdir)/m4/exclude.m4 \
- $(top_srcdir)/m4/exitfail.m4 $(top_srcdir)/m4/extensions.m4 \
- $(top_srcdir)/m4/fchdir.m4 $(top_srcdir)/m4/fcntl-safer.m4 \
- $(top_srcdir)/m4/fcntl_h.m4 $(top_srcdir)/m4/fd-reopen.m4 \
- $(top_srcdir)/m4/file-type.m4 $(top_srcdir)/m4/fileblocks.m4 \
- $(top_srcdir)/m4/filemode.m4 $(top_srcdir)/m4/filenamecat.m4 \
- $(top_srcdir)/m4/flexmember.m4 $(top_srcdir)/m4/fnmatch.m4 \
- $(top_srcdir)/m4/fpending.m4 $(top_srcdir)/m4/fprintftime.m4 \
- $(top_srcdir)/m4/free.m4 $(top_srcdir)/m4/fstypename.m4 \
- $(top_srcdir)/m4/fsusage.m4 $(top_srcdir)/m4/ftruncate.m4 \
- $(top_srcdir)/m4/fts.m4 $(top_srcdir)/m4/getaddrinfo.m4 \
- $(top_srcdir)/m4/getcwd-abort-bug.m4 \
- $(top_srcdir)/m4/getcwd-path-max.m4 $(top_srcdir)/m4/getcwd.m4 \
- $(top_srcdir)/m4/getdate.m4 $(top_srcdir)/m4/getdelim.m4 \
- $(top_srcdir)/m4/getgroups.m4 $(top_srcdir)/m4/gethostname.m4 \
- $(top_srcdir)/m4/gethrxtime.m4 $(top_srcdir)/m4/getline.m4 \
- $(top_srcdir)/m4/getloadavg.m4 $(top_srcdir)/m4/getndelim2.m4 \
- $(top_srcdir)/m4/getopt.m4 $(top_srcdir)/m4/getpagesize.m4 \
- $(top_srcdir)/m4/getpass.m4 $(top_srcdir)/m4/gettext.m4 \
- $(top_srcdir)/m4/gettime.m4 $(top_srcdir)/m4/gettimeofday.m4 \
- $(top_srcdir)/m4/getugroups.m4 \
- $(top_srcdir)/m4/getusershell.m4 $(top_srcdir)/m4/glibc21.m4 \
- $(top_srcdir)/m4/gnulib-common.m4 \
- $(top_srcdir)/m4/gnulib-comp.m4 \
- $(top_srcdir)/m4/group-member.m4 \
- $(top_srcdir)/m4/hard-locale.m4 $(top_srcdir)/m4/hash.m4 \
- $(top_srcdir)/m4/host-os.m4 $(top_srcdir)/m4/human.m4 \
- $(top_srcdir)/m4/i-ring.m4 $(top_srcdir)/m4/iconv.m4 \
- $(top_srcdir)/m4/idcache.m4 $(top_srcdir)/m4/inet_ntop.m4 \
- $(top_srcdir)/m4/inline.m4 $(top_srcdir)/m4/intmax_t.m4 \
- $(top_srcdir)/m4/inttostr.m4 $(top_srcdir)/m4/inttypes-pri.m4 \
- $(top_srcdir)/m4/inttypes.m4 $(top_srcdir)/m4/inttypes_h.m4 \
- $(top_srcdir)/m4/isapipe.m4 $(top_srcdir)/m4/jm-macros.m4 \
- $(top_srcdir)/m4/jm-winsz1.m4 $(top_srcdir)/m4/jm-winsz2.m4 \
- $(top_srcdir)/m4/lchmod.m4 $(top_srcdir)/m4/lchown.m4 \
- $(top_srcdir)/m4/lib-check.m4 $(top_srcdir)/m4/lib-ignore.m4 \
- $(top_srcdir)/m4/lib-ld.m4 $(top_srcdir)/m4/lib-link.m4 \
- $(top_srcdir)/m4/lib-prefix.m4 $(top_srcdir)/m4/link-follow.m4 \
- $(top_srcdir)/m4/localcharset.m4 \
- $(top_srcdir)/m4/long-options.m4 \
- $(top_srcdir)/m4/longdouble.m4 $(top_srcdir)/m4/longlong.m4 \
- $(top_srcdir)/m4/ls-mntd-fs.m4 $(top_srcdir)/m4/lstat.m4 \
- $(top_srcdir)/m4/mbchar.m4 $(top_srcdir)/m4/mbiter.m4 \
- $(top_srcdir)/m4/mbrtowc.m4 $(top_srcdir)/m4/mbscasecmp.m4 \
- $(top_srcdir)/m4/mbstate_t.m4 $(top_srcdir)/m4/mbswidth.m4 \
- $(top_srcdir)/m4/md5.m4 $(top_srcdir)/m4/memcasecmp.m4 \
- $(top_srcdir)/m4/memchr.m4 $(top_srcdir)/m4/memcmp.m4 \
- $(top_srcdir)/m4/memcoll.m4 $(top_srcdir)/m4/memcpy.m4 \
- $(top_srcdir)/m4/memmove.m4 $(top_srcdir)/m4/mempcpy.m4 \
- $(top_srcdir)/m4/memrchr.m4 $(top_srcdir)/m4/memset.m4 \
- $(top_srcdir)/m4/memxfrm.m4 $(top_srcdir)/m4/mkancesdirs.m4 \
- $(top_srcdir)/m4/mkdir-p.m4 $(top_srcdir)/m4/mkdir-slash.m4 \
- $(top_srcdir)/m4/mkstemp.m4 $(top_srcdir)/m4/mktime.m4 \
- $(top_srcdir)/m4/modechange.m4 $(top_srcdir)/m4/mountlist.m4 \
- $(top_srcdir)/m4/mpsort.m4 $(top_srcdir)/m4/nanosleep.m4 \
- $(top_srcdir)/m4/netinet_in_h.m4 $(top_srcdir)/m4/nls.m4 \
- $(top_srcdir)/m4/openat.m4 $(top_srcdir)/m4/pathmax.m4 \
- $(top_srcdir)/m4/perl.m4 $(top_srcdir)/m4/physmem.m4 \
- $(top_srcdir)/m4/po.m4 $(top_srcdir)/m4/posixtm.m4 \
- $(top_srcdir)/m4/posixver.m4 $(top_srcdir)/m4/prereq.m4 \
- $(top_srcdir)/m4/progtest.m4 $(top_srcdir)/m4/putenv.m4 \
- $(top_srcdir)/m4/quote.m4 $(top_srcdir)/m4/quotearg.m4 \
- $(top_srcdir)/m4/randint.m4 $(top_srcdir)/m4/randperm.m4 \
- $(top_srcdir)/m4/randread.m4 $(top_srcdir)/m4/readlink.m4 \
- $(top_srcdir)/m4/readtokens.m4 $(top_srcdir)/m4/readutmp.m4 \
- $(top_srcdir)/m4/regex.m4 \
- $(top_srcdir)/m4/rename-dest-slash.m4 \
- $(top_srcdir)/m4/rename.m4 $(top_srcdir)/m4/rmdir-errno.m4 \
- $(top_srcdir)/m4/rmdir.m4 $(top_srcdir)/m4/root-dev-ino.m4 \
- $(top_srcdir)/m4/rpmatch.m4 $(top_srcdir)/m4/safe-read.m4 \
- $(top_srcdir)/m4/safe-write.m4 $(top_srcdir)/m4/same.m4 \
- $(top_srcdir)/m4/save-cwd.m4 $(top_srcdir)/m4/savedir.m4 \
- $(top_srcdir)/m4/savewd.m4 $(top_srcdir)/m4/setenv.m4 \
- $(top_srcdir)/m4/settime.m4 $(top_srcdir)/m4/sha1.m4 \
- $(top_srcdir)/m4/sha256.m4 $(top_srcdir)/m4/sha512.m4 \
- $(top_srcdir)/m4/sig2str.m4 $(top_srcdir)/m4/snprintf.m4 \
- $(top_srcdir)/m4/socklen.m4 $(top_srcdir)/m4/sockpfaf.m4 \
- $(top_srcdir)/m4/ssize_t.m4 $(top_srcdir)/m4/st_dm_mode.m4 \
- $(top_srcdir)/m4/stat-prog.m4 $(top_srcdir)/m4/stat-time.m4 \
- $(top_srcdir)/m4/stdarg.m4 $(top_srcdir)/m4/stdbool.m4 \
- $(top_srcdir)/m4/stdint.m4 $(top_srcdir)/m4/stdint_h.m4 \
- $(top_srcdir)/m4/stdio-safer.m4 $(top_srcdir)/m4/stdio_h.m4 \
- $(top_srcdir)/m4/stdlib-safer.m4 $(top_srcdir)/m4/stdlib_h.m4 \
- $(top_srcdir)/m4/stpcpy.m4 $(top_srcdir)/m4/strcspn.m4 \
- $(top_srcdir)/m4/strdup.m4 $(top_srcdir)/m4/strftime.m4 \
- $(top_srcdir)/m4/string_h.m4 $(top_srcdir)/m4/strndup.m4 \
- $(top_srcdir)/m4/strnlen.m4 $(top_srcdir)/m4/strnumcmp.m4 \
- $(top_srcdir)/m4/strpbrk.m4 $(top_srcdir)/m4/strtod.m4 \
- $(top_srcdir)/m4/strtoimax.m4 $(top_srcdir)/m4/strtol.m4 \
- $(top_srcdir)/m4/strtoll.m4 $(top_srcdir)/m4/strtoul.m4 \
- $(top_srcdir)/m4/strtoull.m4 $(top_srcdir)/m4/strtoumax.m4 \
- $(top_srcdir)/m4/strverscmp.m4 \
- $(top_srcdir)/m4/sys_socket_h.m4 \
- $(top_srcdir)/m4/sys_stat_h.m4 $(top_srcdir)/m4/sys_time_h.m4 \
- $(top_srcdir)/m4/tempname.m4 $(top_srcdir)/m4/time_h.m4 \
- $(top_srcdir)/m4/time_r.m4 $(top_srcdir)/m4/timespec.m4 \
- $(top_srcdir)/m4/tm_gmtoff.m4 $(top_srcdir)/m4/tzset.m4 \
- $(top_srcdir)/m4/unicodeio.m4 $(top_srcdir)/m4/unistd-safer.m4 \
- $(top_srcdir)/m4/unistd_h.m4 $(top_srcdir)/m4/unlink-busy.m4 \
- $(top_srcdir)/m4/unlinkdir.m4 $(top_srcdir)/m4/unlocked-io.m4 \
- $(top_srcdir)/m4/uptime.m4 $(top_srcdir)/m4/userspec.m4 \
- $(top_srcdir)/m4/utimbuf.m4 $(top_srcdir)/m4/utime.m4 \
- $(top_srcdir)/m4/utimecmp.m4 $(top_srcdir)/m4/utimens.m4 \
- $(top_srcdir)/m4/utimes-null.m4 $(top_srcdir)/m4/utimes.m4 \
- $(top_srcdir)/m4/vasnprintf.m4 $(top_srcdir)/m4/vasprintf.m4 \
- $(top_srcdir)/m4/wchar.m4 $(top_srcdir)/m4/wchar_t.m4 \
- $(top_srcdir)/m4/wctype.m4 $(top_srcdir)/m4/wcwidth.m4 \
- $(top_srcdir)/m4/wint_t.m4 $(top_srcdir)/m4/xalloc.m4 \
- $(top_srcdir)/m4/xfts.m4 $(top_srcdir)/m4/xgetcwd.m4 \
- $(top_srcdir)/m4/xnanosleep.m4 $(top_srcdir)/m4/xstrndup.m4 \
- $(top_srcdir)/m4/xstrtod.m4 $(top_srcdir)/m4/xstrtol.m4 \
- $(top_srcdir)/m4/yesno.m4 $(top_srcdir)/configure.ac
-am__configure_deps = $(am__aclocal_m4_deps) $(CONFIGURE_DEPENDENCIES) \
- $(ACLOCAL_M4)
-mkinstalldirs = $(install_sh) -d
-CONFIG_HEADER = $(top_builddir)/lib/config.h
-CONFIG_CLEAN_FILES =
-SOURCES =
-DIST_SOURCES =
-DISTFILES = $(DIST_COMMON) $(DIST_SOURCES) $(TEXINFOS) $(EXTRA_DIST)
-ABSOLUTE_DIRENT_H = @ABSOLUTE_DIRENT_H@
-ABSOLUTE_FCNTL_H = @ABSOLUTE_FCNTL_H@
-ABSOLUTE_INTTYPES_H = @ABSOLUTE_INTTYPES_H@
-ABSOLUTE_NETINET_IN_H = @ABSOLUTE_NETINET_IN_H@
-ABSOLUTE_STDINT_H = @ABSOLUTE_STDINT_H@
-ABSOLUTE_STDIO_H = @ABSOLUTE_STDIO_H@
-ABSOLUTE_STDLIB_H = @ABSOLUTE_STDLIB_H@
-ABSOLUTE_STRING_H = @ABSOLUTE_STRING_H@
-ABSOLUTE_SYS_SOCKET_H = @ABSOLUTE_SYS_SOCKET_H@
-ABSOLUTE_SYS_STAT_H = @ABSOLUTE_SYS_STAT_H@
-ABSOLUTE_SYS_TIME_H = @ABSOLUTE_SYS_TIME_H@
-ABSOLUTE_TIME_H = @ABSOLUTE_TIME_H@
-ABSOLUTE_UNISTD_H = @ABSOLUTE_UNISTD_H@
-ABSOLUTE_WCHAR_H = @ABSOLUTE_WCHAR_H@
-ABSOLUTE_WCTYPE_H = @ABSOLUTE_WCTYPE_H@
-ACLOCAL = @ACLOCAL@
-ALLOCA = @ALLOCA@
-ALLOCA_H = @ALLOCA_H@
-AMTAR = @AMTAR@
-ARPA_INET_H = @ARPA_INET_H@
-AUTOCONF = @AUTOCONF@
-AUTOHEADER = @AUTOHEADER@
-AUTOMAKE = @AUTOMAKE@
-AWK = @AWK@
-BITSIZEOF_PTRDIFF_T = @BITSIZEOF_PTRDIFF_T@
-BITSIZEOF_SIG_ATOMIC_T = @BITSIZEOF_SIG_ATOMIC_T@
-BITSIZEOF_SIZE_T = @BITSIZEOF_SIZE_T@
-BITSIZEOF_WCHAR_T = @BITSIZEOF_WCHAR_T@
-BITSIZEOF_WINT_T = @BITSIZEOF_WINT_T@
-CC = @CC@
-CCDEPMODE = @CCDEPMODE@
-CFLAGS = @CFLAGS@
-CPP = @CPP@
-CPPFLAGS = @CPPFLAGS@
-CYGPATH_W = @CYGPATH_W@
-DEFAULT_POSIX2_VERSION = @DEFAULT_POSIX2_VERSION@
-DEFS = @DEFS@
-DEPDIR = @DEPDIR@
-DF_PROG = @DF_PROG@
-DIRENT_H = @DIRENT_H@
-ECHO_C = @ECHO_C@
-ECHO_N = @ECHO_N@
-ECHO_T = @ECHO_T@
-EGREP = @EGREP@
-EOVERFLOW = @EOVERFLOW@
-EXEEXT = @EXEEXT@
-FCNTL_H = @FCNTL_H@
-FNMATCH_H = @FNMATCH_H@
-GETLOADAVG_LIBS = @GETLOADAVG_LIBS@
-GETOPT_H = @GETOPT_H@
-GLIBC21 = @GLIBC21@
-GMSGFMT = @GMSGFMT@
-GMSGFMT_015 = @GMSGFMT_015@
-GNULIB_CHOWN = @GNULIB_CHOWN@
-GNULIB_DUP2 = @GNULIB_DUP2@
-GNULIB_FCHDIR = @GNULIB_FCHDIR@
-GNULIB_FPRINTF_POSIX = @GNULIB_FPRINTF_POSIX@
-GNULIB_FTRUNCATE = @GNULIB_FTRUNCATE@
-GNULIB_GETCWD = @GNULIB_GETCWD@
-GNULIB_GETLOGIN_R = @GNULIB_GETLOGIN_R@
-GNULIB_GETSUBOPT = @GNULIB_GETSUBOPT@
-GNULIB_IMAXABS = @GNULIB_IMAXABS@
-GNULIB_IMAXDIV = @GNULIB_IMAXDIV@
-GNULIB_MBSCASECMP = @GNULIB_MBSCASECMP@
-GNULIB_MBSCASESTR = @GNULIB_MBSCASESTR@
-GNULIB_MBSCHR = @GNULIB_MBSCHR@
-GNULIB_MBSCSPN = @GNULIB_MBSCSPN@
-GNULIB_MBSLEN = @GNULIB_MBSLEN@
-GNULIB_MBSNCASECMP = @GNULIB_MBSNCASECMP@
-GNULIB_MBSPBRK = @GNULIB_MBSPBRK@
-GNULIB_MBSPCASECMP = @GNULIB_MBSPCASECMP@
-GNULIB_MBSRCHR = @GNULIB_MBSRCHR@
-GNULIB_MBSSEP = @GNULIB_MBSSEP@
-GNULIB_MBSSPN = @GNULIB_MBSSPN@
-GNULIB_MBSSTR = @GNULIB_MBSSTR@
-GNULIB_MBSTOK_R = @GNULIB_MBSTOK_R@
-GNULIB_MEMMEM = @GNULIB_MEMMEM@
-GNULIB_MEMPCPY = @GNULIB_MEMPCPY@
-GNULIB_MEMRCHR = @GNULIB_MEMRCHR@
-GNULIB_MKDTEMP = @GNULIB_MKDTEMP@
-GNULIB_MKSTEMP = @GNULIB_MKSTEMP@
-GNULIB_PRINTF_POSIX = @GNULIB_PRINTF_POSIX@
-GNULIB_READLINK = @GNULIB_READLINK@
-GNULIB_SNPRINTF = @GNULIB_SNPRINTF@
-GNULIB_SPRINTF_POSIX = @GNULIB_SPRINTF_POSIX@
-GNULIB_STPCPY = @GNULIB_STPCPY@
-GNULIB_STPNCPY = @GNULIB_STPNCPY@
-GNULIB_STRCASESTR = @GNULIB_STRCASESTR@
-GNULIB_STRCHRNUL = @GNULIB_STRCHRNUL@
-GNULIB_STRDUP = @GNULIB_STRDUP@
-GNULIB_STRNDUP = @GNULIB_STRNDUP@
-GNULIB_STRNLEN = @GNULIB_STRNLEN@
-GNULIB_STRPBRK = @GNULIB_STRPBRK@
-GNULIB_STRSEP = @GNULIB_STRSEP@
-GNULIB_STRTOIMAX = @GNULIB_STRTOIMAX@
-GNULIB_STRTOK_R = @GNULIB_STRTOK_R@
-GNULIB_STRTOUMAX = @GNULIB_STRTOUMAX@
-GNULIB_VFPRINTF_POSIX = @GNULIB_VFPRINTF_POSIX@
-GNULIB_VPRINTF_POSIX = @GNULIB_VPRINTF_POSIX@
-GNULIB_VSNPRINTF = @GNULIB_VSNPRINTF@
-GNULIB_VSPRINTF_POSIX = @GNULIB_VSPRINTF_POSIX@
-GNU_PACKAGE = @GNU_PACKAGE@
-GREP = @GREP@
-HAVE_DECL_GETLOGIN_R = @HAVE_DECL_GETLOGIN_R@
-HAVE_DECL_IMAXABS = @HAVE_DECL_IMAXABS@
-HAVE_DECL_IMAXDIV = @HAVE_DECL_IMAXDIV@
-HAVE_DECL_MEMMEM = @HAVE_DECL_MEMMEM@
-HAVE_DECL_MEMRCHR = @HAVE_DECL_MEMRCHR@
-HAVE_DECL_SNPRINTF = @HAVE_DECL_SNPRINTF@
-HAVE_DECL_STRDUP = @HAVE_DECL_STRDUP@
-HAVE_DECL_STRNCASECMP = @HAVE_DECL_STRNCASECMP@
-HAVE_DECL_STRNDUP = @HAVE_DECL_STRNDUP@
-HAVE_DECL_STRNLEN = @HAVE_DECL_STRNLEN@
-HAVE_DECL_STRTOIMAX = @HAVE_DECL_STRTOIMAX@
-HAVE_DECL_STRTOK_R = @HAVE_DECL_STRTOK_R@
-HAVE_DECL_STRTOUMAX = @HAVE_DECL_STRTOUMAX@
-HAVE_DECL_VSNPRINTF = @HAVE_DECL_VSNPRINTF@
-HAVE_DUP2 = @HAVE_DUP2@
-HAVE_FTRUNCATE = @HAVE_FTRUNCATE@
-HAVE_GETSUBOPT = @HAVE_GETSUBOPT@
-HAVE_INTTYPES_H = @HAVE_INTTYPES_H@
-HAVE_LONG_LONG_INT = @HAVE_LONG_LONG_INT@
-HAVE_MEMPCPY = @HAVE_MEMPCPY@
-HAVE_MKDTEMP = @HAVE_MKDTEMP@
-HAVE_NETINET_IN_H = @HAVE_NETINET_IN_H@
-HAVE_READLINK = @HAVE_READLINK@
-HAVE_SIGNED_SIG_ATOMIC_T = @HAVE_SIGNED_SIG_ATOMIC_T@
-HAVE_SIGNED_WCHAR_T = @HAVE_SIGNED_WCHAR_T@
-HAVE_SIGNED_WINT_T = @HAVE_SIGNED_WINT_T@
-HAVE_STDINT_H = @HAVE_STDINT_H@
-HAVE_STPCPY = @HAVE_STPCPY@
-HAVE_STPNCPY = @HAVE_STPNCPY@
-HAVE_STRCASECMP = @HAVE_STRCASECMP@
-HAVE_STRCASESTR = @HAVE_STRCASESTR@
-HAVE_STRCHRNUL = @HAVE_STRCHRNUL@
-HAVE_STRNDUP = @HAVE_STRNDUP@
-HAVE_STRPBRK = @HAVE_STRPBRK@
-HAVE_STRSEP = @HAVE_STRSEP@
-HAVE_STRUCT_TIMEVAL = @HAVE_STRUCT_TIMEVAL@
-HAVE_SYS_BITYPES_H = @HAVE_SYS_BITYPES_H@
-HAVE_SYS_INTTYPES_H = @HAVE_SYS_INTTYPES_H@
-HAVE_SYS_SOCKET_H = @HAVE_SYS_SOCKET_H@
-HAVE_SYS_TIME_H = @HAVE_SYS_TIME_H@
-HAVE_SYS_TYPES_H = @HAVE_SYS_TYPES_H@
-HAVE_UNISTD_H = @HAVE_UNISTD_H@
-HAVE_UNSIGNED_LONG_LONG_INT = @HAVE_UNSIGNED_LONG_LONG_INT@
-HAVE_WCTYPE_H = @HAVE_WCTYPE_H@
-HAVE_WINSOCK2_H = @HAVE_WINSOCK2_H@
-HAVE_WINT_T = @HAVE_WINT_T@
-HAVE_WS2TCPIP_H = @HAVE_WS2TCPIP_H@
-HAVE__BOOL = @HAVE__BOOL@
-HELP2MAN = @HELP2MAN@
-INSTALL = @INSTALL@
-INSTALL_DATA = @INSTALL_DATA@
-INSTALL_PROGRAM = @INSTALL_PROGRAM@
-INSTALL_SCRIPT = @INSTALL_SCRIPT@
-INSTALL_STRIP_PROGRAM = @INSTALL_STRIP_PROGRAM@
-INTLLIBS = @INTLLIBS@
-INTL_MACOSX_LIBS = @INTL_MACOSX_LIBS@
-INTTYPES_H = @INTTYPES_H@
-KMEM_GROUP = @KMEM_GROUP@
-LDFLAGS = @LDFLAGS@
-LIBCOREUTILS_LIBDEPS = @LIBCOREUTILS_LIBDEPS@
-LIBCOREUTILS_LTLIBDEPS = @LIBCOREUTILS_LTLIBDEPS@
-LIBICONV = @LIBICONV@
-LIBINTL = @LIBINTL@
-LIBOBJS = @LIBOBJS@
-LIBS = @LIBS@
-LIB_ACL = @LIB_ACL@
-LIB_ACL_TRIVIAL = @LIB_ACL_TRIVIAL@
-LIB_CLOCK_GETTIME = @LIB_CLOCK_GETTIME@
-LIB_CRYPT = @LIB_CRYPT@
-LIB_EACCESS = @LIB_EACCESS@
-LIB_FDATASYNC = @LIB_FDATASYNC@
-LIB_GETHRXTIME = @LIB_GETHRXTIME@
-LIB_NANOSLEEP = @LIB_NANOSLEEP@
-LN_S = @LN_S@
-LTLIBICONV = @LTLIBICONV@
-LTLIBINTL = @LTLIBINTL@
-LTLIBOBJS = @LTLIBOBJS@
-MAKEINFO = @MAKEINFO@
-MAN = @MAN@
-MKDIR_P = @MKDIR_P@
-MSGFMT = @MSGFMT@
-MSGFMT_015 = @MSGFMT_015@
-MSGMERGE = @MSGMERGE@
-NEED_SETGID = @NEED_SETGID@
-NETINET_IN_H = @NETINET_IN_H@
-OBJEXT = @OBJEXT@
-OPTIONAL_BIN_PROGS = @OPTIONAL_BIN_PROGS@
-PACKAGE = @PACKAGE@
-PACKAGE_BUGREPORT = @PACKAGE_BUGREPORT@
-PACKAGE_NAME = @PACKAGE_NAME@
-PACKAGE_STRING = @PACKAGE_STRING@
-PACKAGE_TARNAME = @PACKAGE_TARNAME@
-PACKAGE_VERSION = @PACKAGE_VERSION@
-PATH_SEPARATOR = @PATH_SEPARATOR@
-PERL = @PERL@
-POSUB = @POSUB@
-POW_LIB = @POW_LIB@
-PRIPTR_PREFIX = @PRIPTR_PREFIX@
-PRI_MACROS_BROKEN = @PRI_MACROS_BROKEN@
-PTRDIFF_T_SUFFIX = @PTRDIFF_T_SUFFIX@
-RANLIB = @RANLIB@
-REPLACE_CHOWN = @REPLACE_CHOWN@
-REPLACE_FCHDIR = @REPLACE_FCHDIR@
-REPLACE_FPRINTF = @REPLACE_FPRINTF@
-REPLACE_GETCWD = @REPLACE_GETCWD@
-REPLACE_GETTIMEOFDAY = @REPLACE_GETTIMEOFDAY@
-REPLACE_LOCALTIME_R = @REPLACE_LOCALTIME_R@
-REPLACE_MKSTEMP = @REPLACE_MKSTEMP@
-REPLACE_NANOSLEEP = @REPLACE_NANOSLEEP@
-REPLACE_PRINTF = @REPLACE_PRINTF@
-REPLACE_SNPRINTF = @REPLACE_SNPRINTF@
-REPLACE_SPRINTF = @REPLACE_SPRINTF@
-REPLACE_STRPTIME = @REPLACE_STRPTIME@
-REPLACE_TIMEGM = @REPLACE_TIMEGM@
-REPLACE_VFPRINTF = @REPLACE_VFPRINTF@
-REPLACE_VPRINTF = @REPLACE_VPRINTF@
-REPLACE_VSNPRINTF = @REPLACE_VSNPRINTF@
-REPLACE_VSPRINTF = @REPLACE_VSPRINTF@
-SEQ_LIBM = @SEQ_LIBM@
-SET_MAKE = @SET_MAKE@
-SHELL = @SHELL@
-SIG_ATOMIC_T_SUFFIX = @SIG_ATOMIC_T_SUFFIX@
-SIZE_T_SUFFIX = @SIZE_T_SUFFIX@
-STDBOOL_H = @STDBOOL_H@
-STDINT_H = @STDINT_H@
-STRIP = @STRIP@
-SYS_SOCKET_H = @SYS_SOCKET_H@
-SYS_STAT_H = @SYS_STAT_H@
-SYS_TIME_H = @SYS_TIME_H@
-SYS_TIME_H_DEFINES_STRUCT_TIMESPEC = @SYS_TIME_H_DEFINES_STRUCT_TIMESPEC@
-TIME_H_DEFINES_STRUCT_TIMESPEC = @TIME_H_DEFINES_STRUCT_TIMESPEC@
-U = @U@
-USE_NLS = @USE_NLS@
-VERSION = @VERSION@
-WCHAR_H = @WCHAR_H@
-WCHAR_T_SUFFIX = @WCHAR_T_SUFFIX@
-WCTYPE_H = @WCTYPE_H@
-WINT_T_SUFFIX = @WINT_T_SUFFIX@
-XGETTEXT = @XGETTEXT@
-XGETTEXT_015 = @XGETTEXT_015@
-YACC = @YACC@
-YFLAGS = @YFLAGS@
-abs_builddir = @abs_builddir@
-abs_srcdir = @abs_srcdir@
-abs_top_builddir = @abs_top_builddir@
-abs_top_srcdir = @abs_top_srcdir@
-ac_ct_CC = @ac_ct_CC@
-am__include = @am__include@
-am__leading_dot = @am__leading_dot@
-am__quote = @am__quote@
-am__tar = @am__tar@
-am__untar = @am__untar@
-bindir = @bindir@
-build = @build@
-build_alias = @build_alias@
-build_cpu = @build_cpu@
-build_os = @build_os@
-build_vendor = @build_vendor@
-builddir = @builddir@
-datadir = @datadir@
-datarootdir = @datarootdir@
-docdir = @docdir@
-dvidir = @dvidir@
-exec_prefix = @exec_prefix@
-gl_LIBOBJS = @gl_LIBOBJS@
-gl_LTLIBOBJS = @gl_LTLIBOBJS@
-host = @host@
-host_alias = @host_alias@
-host_cpu = @host_cpu@
-host_os = @host_os@
-host_vendor = @host_vendor@
-htmldir = @htmldir@
-includedir = @includedir@
-infodir = @infodir@
-install_sh = @install_sh@
-libdir = @libdir@
-libexecdir = @libexecdir@
-localedir = @localedir@
-localstatedir = @localstatedir@
-mandir = @mandir@
-mkdir_p = @mkdir_p@
-oldincludedir = @oldincludedir@
-pdfdir = @pdfdir@
-prefix = @prefix@
-program_transform_name = @program_transform_name@
-psdir = @psdir@
-sbindir = @sbindir@
-sharedstatedir = @sharedstatedir@
-srcdir = @srcdir@
-sysconfdir = @sysconfdir@
-target_alias = @target_alias@
-top_builddir = @top_builddir@
-top_srcdir = @top_srcdir@
-TESTS = trap basic-1 create-leading d-slashdot
-EXTRA_DIST = $(TESTS)
-TESTS_ENVIRONMENT = \
- EXEEXT='$(EXEEXT)' \
- CU_TEST_NAME=`basename $(abs_srcdir)`,$$tst \
- PATH="$(VG_PATH_PREFIX)`pwd`/../../src$(PATH_SEPARATOR)$$PATH"
-
-all: all-am
-
-.SUFFIXES:
-$(srcdir)/Makefile.in: $(srcdir)/Makefile.am $(am__configure_deps)
- @for dep in $?; do \
- case '$(am__configure_deps)' in \
- *$$dep*) \
- cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh \
- && exit 0; \
- exit 1;; \
- esac; \
- done; \
- echo ' cd $(top_srcdir) && $(AUTOMAKE) --gnu tests/install/Makefile'; \
- cd $(top_srcdir) && \
- $(AUTOMAKE) --gnu tests/install/Makefile
-.PRECIOUS: Makefile
-Makefile: $(srcdir)/Makefile.in $(top_builddir)/config.status
- @case '$?' in \
- *config.status*) \
- cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh;; \
- *) \
- echo ' cd $(top_builddir) && $(SHELL) ./config.status $(subdir)/$@ $(am__depfiles_maybe)'; \
- cd $(top_builddir) && $(SHELL) ./config.status $(subdir)/$@ $(am__depfiles_maybe);; \
- esac;
-
-$(top_builddir)/config.status: $(top_srcdir)/configure $(CONFIG_STATUS_DEPENDENCIES)
- cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh
-
-$(top_srcdir)/configure: $(am__configure_deps)
- cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh
-$(ACLOCAL_M4): $(am__aclocal_m4_deps)
- cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh
-tags: TAGS
-TAGS:
-
-ctags: CTAGS
-CTAGS:
-
-
-check-TESTS: $(TESTS)
- @failed=0; all=0; xfail=0; xpass=0; skip=0; ws='[ ]'; \
- srcdir=$(srcdir); export srcdir; \
- list=' $(TESTS) '; \
- if test -n "$$list"; then \
- for tst in $$list; do \
- if test -f ./$$tst; then dir=./; \
- elif test -f $$tst; then dir=; \
- else dir="$(srcdir)/"; fi; \
- if $(TESTS_ENVIRONMENT) $${dir}$$tst; then \
- all=`expr $$all + 1`; \
- case " $(XFAIL_TESTS) " in \
- *$$ws$$tst$$ws*) \
- xpass=`expr $$xpass + 1`; \
- failed=`expr $$failed + 1`; \
- echo "XPASS: $$tst"; \
- ;; \
- *) \
- echo "PASS: $$tst"; \
- ;; \
- esac; \
- elif test $$? -ne 77; then \
- all=`expr $$all + 1`; \
- case " $(XFAIL_TESTS) " in \
- *$$ws$$tst$$ws*) \
- xfail=`expr $$xfail + 1`; \
- echo "XFAIL: $$tst"; \
- ;; \
- *) \
- failed=`expr $$failed + 1`; \
- echo "FAIL: $$tst"; \
- ;; \
- esac; \
- else \
- skip=`expr $$skip + 1`; \
- echo "SKIP: $$tst"; \
- fi; \
- done; \
- if test "$$failed" -eq 0; then \
- if test "$$xfail" -eq 0; then \
- banner="All $$all tests passed"; \
- else \
- banner="All $$all tests behaved as expected ($$xfail expected failures)"; \
- fi; \
- else \
- if test "$$xpass" -eq 0; then \
- banner="$$failed of $$all tests failed"; \
- else \
- banner="$$failed of $$all tests did not behave as expected ($$xpass unexpected passes)"; \
- fi; \
- fi; \
- dashes="$$banner"; \
- skipped=""; \
- if test "$$skip" -ne 0; then \
- skipped="($$skip tests were not run)"; \
- test `echo "$$skipped" | wc -c` -le `echo "$$banner" | wc -c` || \
- dashes="$$skipped"; \
- fi; \
- report=""; \
- if test "$$failed" -ne 0 && test -n "$(PACKAGE_BUGREPORT)"; then \
- report="Please report to $(PACKAGE_BUGREPORT)"; \
- test `echo "$$report" | wc -c` -le `echo "$$banner" | wc -c` || \
- dashes="$$report"; \
- fi; \
- dashes=`echo "$$dashes" | sed s/./=/g`; \
- echo "$$dashes"; \
- echo "$$banner"; \
- test -z "$$skipped" || echo "$$skipped"; \
- test -z "$$report" || echo "$$report"; \
- echo "$$dashes"; \
- test "$$failed" -eq 0; \
- else :; fi
-
-distdir: $(DISTFILES)
- @srcdirstrip=`echo "$(srcdir)" | sed 's/[].[^$$\\*]/\\\\&/g'`; \
- topsrcdirstrip=`echo "$(top_srcdir)" | sed 's/[].[^$$\\*]/\\\\&/g'`; \
- list='$(DISTFILES)'; \
- dist_files=`for file in $$list; do echo $$file; done | \
- sed -e "s|^$$srcdirstrip/||;t" \
- -e "s|^$$topsrcdirstrip/|$(top_builddir)/|;t"`; \
- case $$dist_files in \
- */*) $(MKDIR_P) `echo "$$dist_files" | \
- sed '/\//!d;s|^|$(distdir)/|;s,/[^/]*$$,,' | \
- sort -u` ;; \
- esac; \
- for file in $$dist_files; do \
- if test -f $$file || test -d $$file; then d=.; else d=$(srcdir); fi; \
- if test -d $$d/$$file; then \
- dir=`echo "/$$file" | sed -e 's,/[^/]*$$,,'`; \
- if test -d $(srcdir)/$$file && test $$d != $(srcdir); then \
- cp -pR $(srcdir)/$$file $(distdir)$$dir || exit 1; \
- fi; \
- cp -pR $$d/$$file $(distdir)$$dir || exit 1; \
- else \
- test -f $(distdir)/$$file \
- || cp -p $$d/$$file $(distdir)/$$file \
- || exit 1; \
- fi; \
- done
-check-am: all-am
- $(MAKE) $(AM_MAKEFLAGS) check-TESTS
-check: check-am
-all-am: Makefile
-installdirs:
-install: install-am
-install-exec: install-exec-am
-install-data: install-data-am
-uninstall: uninstall-am
-
-install-am: all-am
- @$(MAKE) $(AM_MAKEFLAGS) install-exec-am install-data-am
-
-installcheck: installcheck-am
-install-strip:
- $(MAKE) $(AM_MAKEFLAGS) INSTALL_PROGRAM="$(INSTALL_STRIP_PROGRAM)" \
- install_sh_PROGRAM="$(INSTALL_STRIP_PROGRAM)" INSTALL_STRIP_FLAG=-s \
- `test -z '$(STRIP)' || \
- echo "INSTALL_PROGRAM_ENV=STRIPPROG='$(STRIP)'"` install
-mostlyclean-generic:
-
-clean-generic:
-
-distclean-generic:
- -test -z "$(CONFIG_CLEAN_FILES)" || rm -f $(CONFIG_CLEAN_FILES)
-
-maintainer-clean-generic:
- @echo "This command is intended for maintainers to use"
- @echo "it deletes files that may require special tools to rebuild."
-clean: clean-am
-
-clean-am: clean-generic mostlyclean-am
-
-distclean: distclean-am
- -rm -f Makefile
-distclean-am: clean-am distclean-generic
-
-dvi: dvi-am
-
-dvi-am:
-
-html: html-am
-
-info: info-am
-
-info-am:
-
-install-data-am:
-
-install-dvi: install-dvi-am
-
-install-exec-am:
-
-install-html: install-html-am
-
-install-info: install-info-am
-
-install-man:
-
-install-pdf: install-pdf-am
-
-install-ps: install-ps-am
-
-installcheck-am:
-
-maintainer-clean: maintainer-clean-am
- -rm -f Makefile
-maintainer-clean-am: distclean-am maintainer-clean-generic
-
-mostlyclean: mostlyclean-am
-
-mostlyclean-am: mostlyclean-generic
-
-pdf: pdf-am
-
-pdf-am:
-
-ps: ps-am
-
-ps-am:
-
-uninstall-am:
-
-.MAKE: install-am install-strip
-
-.PHONY: all all-am check check-TESTS check-am clean clean-generic \
- distclean distclean-generic distdir dvi dvi-am html html-am \
- info info-am install install-am install-data install-data-am \
- install-dvi install-dvi-am install-exec install-exec-am \
- install-html install-html-am install-info install-info-am \
- install-man install-pdf install-pdf-am install-ps \
- install-ps-am install-strip installcheck installcheck-am \
- installdirs maintainer-clean maintainer-clean-generic \
- mostlyclean mostlyclean-generic pdf pdf-am ps ps-am uninstall \
- uninstall-am
-
-# Tell versions [3.59,3.63) of GNU make to not export all variables.
-# Otherwise a system limit (for SysV at least) may be exceeded.
-.NOEXPORT:
diff --git a/tests/install/basic-1 b/tests/install/basic-1
deleted file mode 100755
index 3270604..0000000
--- a/tests/install/basic-1
+++ /dev/null
@@ -1,154 +0,0 @@
-#! /bin/sh
-# Basic tests for "install".
-
-# Copyright (C) 1998, 2000-2002, 2004-2007 Free Software Foundation, Inc.
-
-# This program is free software; you can redistribute it and/or modify
-# it under the terms of the GNU General Public License as published by
-# the Free Software Foundation; either version 2 of the License, or
-# (at your option) any later version.
-
-# This program is distributed in the hope that it will be useful,
-# but WITHOUT ANY WARRANTY; without even the implied warranty of
-# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
-# GNU General Public License for more details.
-
-# You should have received a copy of the GNU General Public License
-# along with this program; if not, write to the Free Software
-# Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA
-# 02110-1301, USA.
-
-if test "$VERBOSE" = yes; then
- set -x
- ginstall --version
-fi
-
-# Make sure we get English translations.
-LANGUAGE=C
-export LANGUAGE
-LC_ALL=C
-export LC_ALL
-LANG=C
-export LANG
-
-. $srcdir/../envvar-check
-PRIV_CHECK_ARG=require-non-root . $srcdir/../priv-check
-
-dir=dir
-file=file
-
-pwd=`pwd`
-t0=`echo "$0"|sed 's,.*/,,'`.tmp; tmp=$t0/$$
-trap 'status=$?; cd "$pwd" && chmod -R u+rwx $t0 && rm -rf $t0 && exit $status' 0
-trap '(exit $?); exit $?' 1 2 13 15
-
-framework_failure=0
-mkdir -p $tmp || framework_failure=1
-cd $tmp || framework_failure=1
-
-rm -rf $dir $file || framework_failure=1
-mkdir -p $dir || framework_failure=1
-echo foo > $file || framework_failure=1
-
-if test $framework_failure = 1; then
- echo 'failure in testing framework'
- exit 1
-fi
-
-fail=0
-ginstall $file $dir || fail=1
-# Make sure the source file still exists.
-test -f $file || fail=1
-# Make sure the dest file has been created.
-test -f $dir/$file || fail=1
-
-# Make sure strip works.
-dd=dd$EXEEXT
-dd2=dd2$EXEEXT
-
-just_built_dd=$pwd/../../src/$dd
-
-test -r "$just_built_dd" || \
- {
- cat 1>&2 <<EOF
-$0: WARNING!!!
-Your just-built dd binary, $just_built_dd
-is not readable, so skipping the remaining tests in this file.
-EOF
- exit 77
- }
-
-cp "$just_built_dd" . || fail=1
-cp $dd $dd2 || fail=1
-
-strip $dd2 || \
- {
- cat 1>&2 <<EOF
-$0: WARNING!!!
-Your strip command doesn't seem to work, so skipping
-the test of install's --strip option.
-EOF
- exit 77
- }
-
-# This test would fail with 3.16s when using versions of strip that
-# don't work on read-only files (the one from binutils works fine).
-ginstall -s -c -m 555 $dd $dir || fail=1
-# Make sure the source file is still around.
-test -f $dd || fail=1
-
-# Make sure that the destination file has the requested permissions.
-set X `ls -l $dir/$dd`
-shift
-test "$1" = -r-xr-xr-x || fail=1
-
-# These failed in coreutils CVS from 2004-06-25 to 2004-08-11.
-ginstall -d . || fail=1
-ginstall -d newdir || fail=1
-test -d newdir || fail=1
-ginstall -d newdir1 newdir2 newdir3 || fail=1
-test -d newdir1 || fail=1
-test -d newdir2 || fail=1
-test -d newdir3 || fail=1
-
-# This fails because mkdir-p.c's make_dir_parents fails to return to its
-# initial working directory ($abs) after creating the first argument, and
-# hence cannot do anything meaningful with the following relative-named dirs.
-abs=$pwd/$tmp
-mkdir sub || fail=1
-(cd sub && chmod 0 . && ginstall -d "$abs/xx/yy" rel/sub1 rel/sub2 2> /dev/null) && fail=1
-chmod 755 sub
-
-# Ensure that the first argument-dir has been created.
-test -d xx/yy || fail=1
-
-# Make sure that the `rel' directory was not created...
-test -d sub/rel && fail=1
-# and make sure it was not created in the wrong place.
-test -d xx/rel && fail=1
-
-# Test that we can install from an unreadable directory with an
-# inaccessible parent. coreutils 5.97 fails this test.
-# Perform this test only if "." is on a local file system.
-# Otherwise, it would fail e.g., on an NFS-mounted file system.
-if df --local . >/dev/null 2>&1; then
- mkdir -p sub1/d || fail=1
- (cd sub1/d && chmod a-r . && chmod a-rx .. &&
- ginstall -d "$abs/xx/zz" rel/a rel/b) || fail=1
- chmod 755 sub1 sub1/d || fail=1
- test -d xx/zz || fail=1
- test -d sub1/d/rel/a || fail=1
- test -d sub1/d/rel/b || fail=1
-fi
-
-touch file || fail=1
-ginstall -Dv file sub3/a/b/c/file >out 2>&1 || fail=1
-diff - out <<\EOF || fail=1
-ginstall: creating directory `sub3'
-ginstall: creating directory `sub3/a'
-ginstall: creating directory `sub3/a/b'
-ginstall: creating directory `sub3/a/b/c'
-`file' -> `sub3/a/b/c/file'
-EOF
-
-(exit $fail); exit $fail
diff --git a/tests/install/basic-1.sh b/tests/install/basic-1.sh
new file mode 100755
index 0000000..23a2d58
--- /dev/null
+++ b/tests/install/basic-1.sh
@@ -0,0 +1,146 @@
+#!/bin/sh
+# Basic tests for "install".
+
+# Copyright (C) 1998-2016 Free Software Foundation, Inc.
+
+# This program is free software: you can redistribute it and/or modify
+# it under the terms of the GNU General Public License as published by
+# the Free Software Foundation, either version 3 of the License, or
+# (at your option) any later version.
+
+# This program is distributed in the hope that it will be useful,
+# but WITHOUT ANY WARRANTY; without even the implied warranty of
+# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
+# GNU General Public License for more details.
+
+# You should have received a copy of the GNU General Public License
+# along with this program. If not, see <http://www.gnu.org/licenses/>.
+
+. "${srcdir=.}/tests/init.sh"; path_prepend_ ./src
+print_ver_ ginstall
+skip_if_root_
+
+dir=dir
+file=file
+
+rm -rf $dir $file || framework_failure_
+mkdir -p $dir || framework_failure_
+echo foo > $file || framework_failure_
+
+ginstall $file $dir || fail=1
+# Make sure the source file still exists.
+test -f $file || fail=1
+# Make sure the dest file has been created.
+test -f $dir/$file || fail=1
+
+# Make sure strip works.
+dd=dd$EXEEXT
+dd2=dd2$EXEEXT
+
+just_built_dd=$abs_top_builddir/src/$dd
+
+test -r "$just_built_dd" \
+ || warn_ "WARNING!!! Your just-built dd binary, $just_built_dd
+is not readable, so skipping the remaining tests in this file."
+
+cp "$just_built_dd" . || fail=1
+cp $dd $dd2 || fail=1
+
+strip=-s
+if ! strip $dd2; then
+ ! test -e $abs_top_builddir/src/coreutils \
+ && warn_ "WARNING!!! Your strip command doesn't seem to work,
+so skipping the test of install's --strip option."
+ strip=
+fi
+
+# This test would fail with 3.16s when using versions of strip that
+# don't work on read-only files (the one from binutils works fine).
+ginstall $strip -c -m 555 $dd $dir || fail=1
+# Make sure the source file is still around.
+test -f $dd || fail=1
+
+# Make sure that the destination file has the requested permissions.
+mode=$(ls -l $dir/$dd|cut -b-10)
+test "$mode" = -r-xr-xr-x || fail=1
+
+# These failed in coreutils CVS from 2004-06-25 to 2004-08-11.
+ginstall -d . || fail=1
+ginstall -d newdir || fail=1
+test -d newdir || fail=1
+ginstall -d newdir1 newdir2 newdir3 || fail=1
+test -d newdir1 || fail=1
+test -d newdir2 || fail=1
+test -d newdir3 || fail=1
+
+# This fails because mkdir-p.c's make_dir_parents fails to return to its
+# initial working directory ($iwd) after creating the first argument, and
+# hence cannot do anything meaningful with the following relative-named dirs.
+iwd=$(pwd)
+mkdir sub || fail=1
+(cd sub &&
+ chmod 0 . &&
+ returns_ 1 ginstall -d "$iwd/xx/yy" rel/sub1 rel/sub2 2> /dev/null
+) || fail=1
+chmod 755 sub
+
+# Ensure that the first argument-dir has been created.
+test -d xx/yy || fail=1
+
+# Make sure that the 'rel' directory was not created...
+test -d sub/rel && fail=1
+# and make sure it was not created in the wrong place.
+test -d xx/rel && fail=1
+
+# Test that we can install from an unreadable directory with an
+# inaccessible parent. coreutils 5.97 fails this test.
+# Perform this test only if "." is on a local file system.
+# Otherwise, it would fail e.g., on an NFS-mounted file system.
+if is_local_dir_ .; then
+ mkdir -p sub1/d || fail=1
+ (cd sub1/d && chmod a-r . && chmod a-rx .. &&
+ ginstall -d "$iwd/xx/zz" rel/a rel/b) || fail=1
+ chmod 755 sub1 sub1/d || fail=1
+ test -d xx/zz || fail=1
+ test -d sub1/d/rel/a || fail=1
+ test -d sub1/d/rel/b || fail=1
+fi
+
+touch file || fail=1
+ginstall -Dv file sub3/a/b/c/file >out 2>&1 || fail=1
+compare - out <<\EOF || fail=1
+ginstall: creating directory 'sub3'
+ginstall: creating directory 'sub3/a'
+ginstall: creating directory 'sub3/a/b'
+ginstall: creating directory 'sub3/a/b/c'
+'file' -> 'sub3/a/b/c/file'
+EOF
+
+# Test -D together with -t (available since coreutils >= 8.23).
+# Let ginstall create a completely new destination hierarchy.
+ginstall -t sub4/a/b/c -Dv file >out 2>&1 || fail=1
+compare - out <<\EOF || fail=1
+ginstall: creating directory 'sub4'
+ginstall: creating directory 'sub4/a'
+ginstall: creating directory 'sub4/a/b'
+ginstall: creating directory 'sub4/a/b/c'
+'file' -> 'sub4/a/b/c/file'
+EOF
+
+# Ensure that -D with an already existing file as -t's option argument fails.
+touch sub4/file_exists || framework_failure_
+ginstall -t sub4/file_exists -Dv file >out 2>&1 && fail=1
+compare - out <<\EOF || fail=1
+ginstall: target 'sub4/file_exists' is not a directory
+EOF
+
+# Ensure that -D with an already existing directory for -t's option argument
+# succeeds.
+mkdir sub4/dir_exists || framework_failure_
+touch sub4/dir_exists || framework_failure_
+ginstall -t sub4/dir_exists -Dv file >out 2>&1 || fail=1
+compare - out <<\EOF || fail=1
+'file' -> 'sub4/dir_exists/file'
+EOF
+
+Exit $fail
diff --git a/tests/install/create-leading b/tests/install/create-leading
deleted file mode 100755
index fd7a5f7..0000000
--- a/tests/install/create-leading
+++ /dev/null
@@ -1,49 +0,0 @@
-#! /bin/sh
-# Test -D option.
-
-# Copyright (C) 2000, 2001, 2006 Free Software Foundation, Inc.
-
-# This program is free software; you can redistribute it and/or modify
-# it under the terms of the GNU General Public License as published by
-# the Free Software Foundation; either version 2 of the License, or
-# (at your option) any later version.
-
-# This program is distributed in the hope that it will be useful,
-# but WITHOUT ANY WARRANTY; without even the implied warranty of
-# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
-# GNU General Public License for more details.
-
-# You should have received a copy of the GNU General Public License
-# along with this program; if not, write to the Free Software
-# Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA
-# 02110-1301, USA.
-
-# Note that the tests below use `ginstall', not install, because
-# that's the name of the binary in ../../src.
-
-if test "$VERBOSE" = yes; then
- set -x
- ginstall --version
-fi
-
-. $srcdir/../envvar-check
-
-pwd=`pwd`
-dir=install-D$$
-
-trap 'cd "$pwd" && rm -rf $dir' 0 1 2 3 15
-
-mkdir $dir
-
-fail=0
-cd $dir
-file=file
-echo foo > $file
-
-# Before 4.0q, this would mistakenly create $file, not `dest'
-# in no-dir1/no-dir2/.
-ginstall -D $file no-dir1/no-dir2/dest || fail=1
-test -d no-dir1/no-dir2 || fail=1
-test -r no-dir1/no-dir2/dest || fail=1
-
-exit $fail
diff --git a/tests/install/create-leading.sh b/tests/install/create-leading.sh
new file mode 100755
index 0000000..4b8e4b4
--- /dev/null
+++ b/tests/install/create-leading.sh
@@ -0,0 +1,42 @@
+#!/bin/sh
+# Test -D option.
+
+# Copyright (C) 2000-2016 Free Software Foundation, Inc.
+
+# This program is free software: you can redistribute it and/or modify
+# it under the terms of the GNU General Public License as published by
+# the Free Software Foundation, either version 3 of the License, or
+# (at your option) any later version.
+
+# This program is distributed in the hope that it will be useful,
+# but WITHOUT ANY WARRANTY; without even the implied warranty of
+# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
+# GNU General Public License for more details.
+
+# You should have received a copy of the GNU General Public License
+# along with this program. If not, see <http://www.gnu.org/licenses/>.
+
+# Note that the tests below use 'ginstall', not install, because
+# that's the name of the binary in ../../src.
+
+. "${srcdir=.}/tests/init.sh"; path_prepend_ ./src
+print_ver_ ginstall
+
+
+file=file
+echo foo > $file || framework_failure_
+
+# Before 4.0q, this would mistakenly create $file, not 'dest'
+# in no-dir1/no-dir2/.
+ginstall -D $file no-dir1/no-dir2/dest || fail=1
+test -d no-dir1/no-dir2 || fail=1
+test -r no-dir1/no-dir2/dest || fail=1
+
+# Between 6.1 and 8.24, this would not copy $file
+# due to incorrectly modified working directory
+mkdir dir1 || framework_failure_
+touch dir1/file1 || framework_failure_
+ginstall -D "$PWD/dir1/file1" $file -t "$PWD/no-dir2/" || fail=1
+test -r no-dir2/$file && test -r no-dir2/file1 || fail=1
+
+Exit $fail
diff --git a/tests/install/d-slashdot b/tests/install/d-slashdot
deleted file mode 100755
index 7bf7c5d..0000000
--- a/tests/install/d-slashdot
+++ /dev/null
@@ -1,48 +0,0 @@
-#!/bin/sh
-# Ensure that ginstall -d works with arguments specified with a trailing "/.".
-
-# Copyright (C) 2005, 2006 Free Software Foundation, Inc.
-
-# This program is free software; you can redistribute it and/or modify
-# it under the terms of the GNU General Public License as published by
-# the Free Software Foundation; either version 2 of the License, or
-# (at your option) any later version.
-
-# This program is distributed in the hope that it will be useful,
-# but WITHOUT ANY WARRANTY; without even the implied warranty of
-# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
-# GNU General Public License for more details.
-
-# You should have received a copy of the GNU General Public License
-# along with this program; if not, write to the Free Software
-# Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA
-# 02110-1301, USA.
-
-if test "$VERBOSE" = yes; then
- set -x
- install --version
-fi
-
-pwd=`pwd`
-tmp=`echo "$0"|sed 's,.*/,,'`.tmp
-trap 'status=$?; cd "$pwd" && rm -rf $tmp && exit $status' 0
-trap '(exit $?); exit' 1 2 13 15
-
-framework_failure=0
-mkdir $tmp || framework_failure=1
-cd $tmp || framework_failure=1
-
-if test $framework_failure = 1; then
- echo 'failure in testing framework'
- (exit 1); exit 1
-fi
-
-fail=0
-
-ginstall -d d1/. || fail=1
-test -d d1 || fail=1
-
-ginstall -d d2/.. || fail=1
-test -d d2 || fail=1
-
-(exit $fail); exit $fail
diff --git a/tests/install/d-slashdot.sh b/tests/install/d-slashdot.sh
new file mode 100755
index 0000000..1db0387
--- /dev/null
+++ b/tests/install/d-slashdot.sh
@@ -0,0 +1,29 @@
+#!/bin/sh
+# Ensure that ginstall -d works with arguments specified with a trailing "/.".
+
+# Copyright (C) 2005-2016 Free Software Foundation, Inc.
+
+# This program is free software: you can redistribute it and/or modify
+# it under the terms of the GNU General Public License as published by
+# the Free Software Foundation, either version 3 of the License, or
+# (at your option) any later version.
+
+# This program is distributed in the hope that it will be useful,
+# but WITHOUT ANY WARRANTY; without even the implied warranty of
+# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
+# GNU General Public License for more details.
+
+# You should have received a copy of the GNU General Public License
+# along with this program. If not, see <http://www.gnu.org/licenses/>.
+
+. "${srcdir=.}/tests/init.sh"; path_prepend_ ./src
+print_ver_ ginstall
+
+
+ginstall -d d1/. || fail=1
+test -d d1 || fail=1
+
+ginstall -d d2/.. || fail=1
+test -d d2 || fail=1
+
+Exit $fail
diff --git a/tests/install/install-C-root.sh b/tests/install/install-C-root.sh
new file mode 100755
index 0000000..425bc43
--- /dev/null
+++ b/tests/install/install-C-root.sh
@@ -0,0 +1,77 @@
+#!/bin/sh
+# Ensure "install -C" compares owner and group.
+
+# Copyright (C) 2008-2016 Free Software Foundation, Inc.
+
+# This program is free software: you can redistribute it and/or modify
+# it under the terms of the GNU General Public License as published by
+# the Free Software Foundation, either version 3 of the License, or
+# (at your option) any later version.
+
+# This program is distributed in the hope that it will be useful,
+# but WITHOUT ANY WARRANTY; without even the implied warranty of
+# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
+# GNU General Public License for more details.
+
+# You should have received a copy of the GNU General Public License
+# along with this program. If not, see <http://www.gnu.org/licenses/>.
+
+. "${srcdir=.}/tests/init.sh"; path_prepend_ ./src
+print_ver_ ginstall
+require_root_
+skip_if_setgid_
+skip_if_nondefault_group_
+
+u1=1
+u2=2
+g1=1
+g2=2
+
+
+echo test > a || framework_failure_
+echo "'a' -> 'b'" > out_installed_first
+echo "removed 'b'
+'a' -> 'b'" > out_installed_second
+> out_empty
+
+# destination file does not exist
+ginstall -Cv -o$u1 -g$g1 a b > out || fail=1
+compare out out_installed_first || fail=1
+
+# destination file exists
+ginstall -Cv -o$u1 -g$g1 a b > out || fail=1
+compare out out_empty || fail=1
+
+# destination file exists but -C is not given
+ginstall -v -o$u1 -g$g1 a b > out || fail=1
+compare out out_installed_second || fail=1
+
+# destination file exists but owner differs
+ginstall -Cv -o$u2 -g$g1 a b > out || fail=1
+compare out out_installed_second || fail=1
+ginstall -Cv -o$u2 -g$g1 a b > out || fail=1
+compare out out_empty || fail=1
+
+# destination file exists but group differs
+ginstall -Cv -o$u2 -g$g2 a b > out || fail=1
+compare out out_installed_second || fail=1
+ginstall -Cv -o$u2 -g$g2 a b > out || fail=1
+compare out out_empty || fail=1
+
+# destination file exists but owner differs from getuid ()
+ginstall -Cv -o$u2 a b > out || fail=1
+compare out out_installed_second || fail=1
+ginstall -Cv a b > out || fail=1
+compare out out_installed_second || fail=1
+ginstall -Cv a b > out || fail=1
+compare out out_empty || fail=1
+
+# destination file exists but group differs from getgid ()
+ginstall -Cv -g$g2 a b > out || fail=1
+compare out out_installed_second || fail=1
+ginstall -Cv a b > out || fail=1
+compare out out_installed_second || fail=1
+ginstall -Cv a b > out || fail=1
+compare out out_empty || fail=1
+
+Exit $fail
diff --git a/tests/install/install-C-selinux.sh b/tests/install/install-C-selinux.sh
new file mode 100755
index 0000000..1ddbb0c
--- /dev/null
+++ b/tests/install/install-C-selinux.sh
@@ -0,0 +1,51 @@
+#!/bin/sh
+# Ensure "install -C" compares SELinux context.
+
+# Copyright (C) 2008-2016 Free Software Foundation, Inc.
+
+# This program is free software: you can redistribute it and/or modify
+# it under the terms of the GNU General Public License as published by
+# the Free Software Foundation, either version 3 of the License, or
+# (at your option) any later version.
+
+# This program is distributed in the hope that it will be useful,
+# but WITHOUT ANY WARRANTY; without even the implied warranty of
+# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
+# GNU General Public License for more details.
+
+# You should have received a copy of the GNU General Public License
+# along with this program. If not, see <http://www.gnu.org/licenses/>.
+
+. "${srcdir=.}/tests/init.sh"; path_prepend_ ./src
+print_ver_ ginstall
+require_selinux_
+skip_if_nondefault_group_
+
+echo test > a || framework_failure_
+chcon -u system_u a || skip_ "chcon doesn't work"
+
+echo "'a' -> 'b'" > out_installed_first
+echo "removed 'b'
+'a' -> 'b'" > out_installed_second
+> out_empty
+
+# destination file does not exist
+ginstall -Cv --preserve-context a b > out || fail=1
+compare out out_installed_first || fail=1
+
+# destination file exists
+ginstall -Cv --preserve-context a b > out || fail=1
+compare out out_empty || fail=1
+
+# destination file exists but -C is not given
+ginstall -v --preserve-context a b > out || fail=1
+compare out out_installed_second || fail=1
+
+# destination file exists but SELinux context differs
+chcon -u unconfined_u a || skip_ "chcon doesn't work"
+ginstall -Cv --preserve-context a b > out || fail=1
+compare out out_installed_second || fail=1
+ginstall -Cv --preserve-context a b > out || fail=1
+compare out out_empty || fail=1
+
+Exit $fail
diff --git a/tests/install/install-C.sh b/tests/install/install-C.sh
new file mode 100755
index 0000000..7c4ec15
--- /dev/null
+++ b/tests/install/install-C.sh
@@ -0,0 +1,115 @@
+#!/bin/sh
+# Ensure "install -C" works. (basic tests)
+
+# Copyright (C) 2008-2016 Free Software Foundation, Inc.
+
+# This program is free software: you can redistribute it and/or modify
+# it under the terms of the GNU General Public License as published by
+# the Free Software Foundation, either version 3 of the License, or
+# (at your option) any later version.
+
+# This program is distributed in the hope that it will be useful,
+# but WITHOUT ANY WARRANTY; without even the implied warranty of
+# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
+# GNU General Public License for more details.
+
+# You should have received a copy of the GNU General Public License
+# along with this program. If not, see <http://www.gnu.org/licenses/>.
+
+. "${srcdir=.}/tests/init.sh"; path_prepend_ ./src
+print_ver_ ginstall
+skip_if_setgid_
+skip_if_nondefault_group_
+
+# Note if a group is not specified, install(1) will assume that a file
+# would be installed with the current user's group ID, and thus if the
+# file is the same except that it does have a different group due to
+# its parent directory being g+s for example, then the copy will be
+# done again redundantly in a futile attempt to reset the group ID to
+# that of the current user.
+#
+# install -d -g wheel -m 2775 test # Create setgid dir
+# touch test/a # Create source
+# install -Cv -m664 test/a test/i1 # install source with mode
+# install -Cv -m664 test/i1 test/i2 # install dest
+# install -Cv -m664 test/i1 test/i2 # again to see redundant install
+#
+# Similarly if an existing file exists that is the same and has the
+# current users group ID, but when an actual install of the file would
+# reset to a different group ID due to the directory being g+s for example,
+# then the install will not be done when it should.
+#
+# install -Cv -m664 -g "$(id -nrg)" test/i1 test/i2 # set i2 to uesr's gid
+# install -Cv -m664 test/i1 test/i2 # this should install but doesn't
+#
+# Therefore we skip the test in the presence of setgid dirs
+# An additional complication on HFS is that it...
+
+mode1=0644
+mode2=0755
+mode3=2755
+
+
+echo test > a || framework_failure_
+echo "'a' -> 'b'" > out_installed_first || framework_failure_
+echo "removed 'b'
+'a' -> 'b'" > out_installed_second || framework_failure_
+> out_empty || framework_failure_
+
+# destination file does not exist
+ginstall -Cv -m$mode1 a b > out || fail=1
+compare out out_installed_first || fail=1
+
+# destination file exists
+ginstall -Cv -m$mode1 a b > out || fail=1
+compare out out_empty || fail=1
+
+# destination file exists (long option)
+ginstall -v --compare -m$mode1 a b > out || fail=1
+compare out out_empty || fail=1
+
+# destination file exists but -C is not given
+ginstall -v -m$mode1 a b > out || fail=1
+compare out out_installed_second || fail=1
+
+# option -C ignored if any non-permission mode should be set
+ginstall -Cv -m$mode3 a b > out || fail=1
+compare out out_installed_second || fail=1
+ginstall -Cv -m$mode3 a b > out || fail=1
+compare out out_installed_second || fail=1
+
+# files are not regular files
+ln -s a c || framework_failure_
+ln -s b d || framework_failure_
+ginstall -Cv -m$mode1 c d > out || fail=1
+echo "removed 'd'
+'c' -> 'd'" > out_installed_second_cd
+compare out out_installed_second_cd || fail=1
+
+# destination file exists but content differs
+echo test1 > a || framework_failure_
+ginstall -Cv -m$mode1 a b > out || fail=1
+compare out out_installed_second || fail=1
+ginstall -Cv -m$mode1 a b > out || fail=1
+compare out out_empty || fail=1
+
+# destination file exists but content differs (same size)
+echo test2 > a || framework_failure_
+ginstall -Cv -m$mode1 a b > out || fail=1
+compare out out_installed_second || fail=1
+ginstall -Cv -m$mode1 a b > out || fail=1
+compare out out_empty || fail=1
+
+# destination file exists but mode differs
+ginstall -Cv -m$mode2 a b > out || fail=1
+compare out out_installed_second || fail=1
+ginstall -Cv -m$mode2 a b > out || fail=1
+compare out out_empty || fail=1
+
+# options -C and --preserve-timestamps are mutually exclusive
+returns_ 1 ginstall -C --preserve-timestamps a b || fail=1
+
+# options -C and --strip are mutually exclusive
+returns_ 1 ginstall -C --strip --strip-program=echo a b || fail=1
+
+Exit $fail
diff --git a/tests/install/strip-program.sh b/tests/install/strip-program.sh
new file mode 100755
index 0000000..b587bb3
--- /dev/null
+++ b/tests/install/strip-program.sh
@@ -0,0 +1,40 @@
+#!/bin/sh
+# Ensure "install -s --strip-program=PROGRAM" uses the program to strip
+
+# Copyright (C) 2008-2016 Free Software Foundation, Inc.
+
+# This program is free software: you can redistribute it and/or modify
+# it under the terms of the GNU General Public License as published by
+# the Free Software Foundation, either version 3 of the License, or
+# (at your option) any later version.
+
+# This program is distributed in the hope that it will be useful,
+# but WITHOUT ANY WARRANTY; without even the implied warranty of
+# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
+# GNU General Public License for more details.
+
+# You should have received a copy of the GNU General Public License
+# along with this program. If not, see <http://www.gnu.org/licenses/>.
+
+. "${srcdir=.}/tests/init.sh"; path_prepend_ ./src
+print_ver_ ginstall
+
+working_umask_or_skip_
+
+cat <<EOF > b || framework_failure_
+#!$SHELL
+sed s/b/B/ \$1 > \$1.t && mv \$1.t \$1
+EOF
+chmod a+x b || framework_failure_
+
+
+echo abc > src || fail=1
+echo aBc > exp || fail=1
+ginstall src dest -s --strip-program=./b || fail=1
+compare exp dest || fail=1
+
+# Check that install cleans up properly if strip fails.
+returns_ 1 ginstall src dest2 -s --strip-program=./FOO || fail=1
+test -e dest2 && fail=1
+
+Exit $fail
diff --git a/tests/install/trap b/tests/install/trap
deleted file mode 100755
index aaf0a33..0000000
--- a/tests/install/trap
+++ /dev/null
@@ -1,52 +0,0 @@
-#!/bin/sh
-# Ensure that `install -s' doesn't infloop when its parent
-# process traps CHLD signal.
-
-# Copyright (C) 2004, 2005, 2006 Free Software Foundation, Inc.
-
-# This program is free software; you can redistribute it and/or modify
-# it under the terms of the GNU General Public License as published by
-# the Free Software Foundation; either version 2 of the License, or
-# (at your option) any later version.
-
-# This program is distributed in the hope that it will be useful,
-# but WITHOUT ANY WARRANTY; without even the implied warranty of
-# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
-# GNU General Public License for more details.
-
-# You should have received a copy of the GNU General Public License
-# along with this program; if not, write to the Free Software
-# Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA
-# 02110-1301, USA.
-
-if test "$VERBOSE" = yes; then
- set -x
- ginstall --version
-fi
-
-pwd=`pwd`
-t0=`echo "$0"|sed 's,.*/,,'`.tmp; tmp=$t0/$$
-trap 'status=$?; cd "$pwd" && chmod -R u+rwx $t0 && rm -rf $t0 && exit $status' 0
-trap '(exit $?); exit $?' 1 2 13 15
-
-framework_failure=0
-mkdir -p $tmp || framework_failure=1
-cd $tmp || framework_failure=1
-
-if test $framework_failure = 1; then
- echo "$0: failure in testing framework" 1>&2
- (exit 1); exit 1
-fi
-
-fail=0
-
-# Use a subshell and an exec to work around a bug in FreeBSD 5.0 /bin/sh.
-(
- # ash doesn't support "trap '' CHLD"; it knows only signal numbers.
- sig=`"$pwd/../../src/kill" -l CHLD 2>/dev/null` && trap '' $sig
-
- # Before 2004-04-21, install would infloop, in the `while (wait...' loop:
- exec ginstall -s "$pwd/../../src/ginstall$EXEEXT" .
-)
-
-(exit $fail); exit $fail
diff --git a/tests/install/trap.sh b/tests/install/trap.sh
new file mode 100755
index 0000000..d9ba77a
--- /dev/null
+++ b/tests/install/trap.sh
@@ -0,0 +1,33 @@
+#!/bin/sh
+# Ensure that 'install -s' doesn't infloop when its parent
+# process traps CHLD signal.
+
+# Copyright (C) 2004-2016 Free Software Foundation, Inc.
+
+# This program is free software: you can redistribute it and/or modify
+# it under the terms of the GNU General Public License as published by
+# the Free Software Foundation, either version 3 of the License, or
+# (at your option) any later version.
+
+# This program is distributed in the hope that it will be useful,
+# but WITHOUT ANY WARRANTY; without even the implied warranty of
+# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
+# GNU General Public License for more details.
+
+# You should have received a copy of the GNU General Public License
+# along with this program. If not, see <http://www.gnu.org/licenses/>.
+
+. "${srcdir=.}/tests/init.sh"; path_prepend_ ./src
+print_ver_ ginstall
+require_trap_signame_
+
+
+# Use a subshell and an exec to work around a bug in FreeBSD 5.0 /bin/sh.
+(
+ trap '' CHLD
+
+ # Before 2004-04-21, install would infloop, in the 'while (wait...' loop:
+ exec ginstall -s "$abs_top_builddir/src/ginstall$EXEEXT" .
+)
+
+Exit $fail
diff --git a/tests/join/1a.I1 b/tests/join/1a.I1
deleted file mode 100644
index 8f6edfd..0000000
--- a/tests/join/1a.I1
+++ /dev/null
@@ -1 +0,0 @@
-a 1
diff --git a/tests/join/1a.I2 b/tests/join/1a.I2
deleted file mode 100644
index 6178079..0000000
--- a/tests/join/1a.I2
+++ /dev/null
@@ -1 +0,0 @@
-b
diff --git a/tests/join/1a.X b/tests/join/1a.X
deleted file mode 100644
index 8f6edfd..0000000
--- a/tests/join/1a.X
+++ /dev/null
@@ -1 +0,0 @@
-a 1
diff --git a/tests/join/1b.I1 b/tests/join/1b.I1
deleted file mode 100644
index 8f6edfd..0000000
--- a/tests/join/1b.I1
+++ /dev/null
@@ -1 +0,0 @@
-a 1
diff --git a/tests/join/1b.I2 b/tests/join/1b.I2
deleted file mode 100644
index 6178079..0000000
--- a/tests/join/1b.I2
+++ /dev/null
@@ -1 +0,0 @@
-b
diff --git a/tests/join/1b.X b/tests/join/1b.X
deleted file mode 100644
index 6178079..0000000
--- a/tests/join/1b.X
+++ /dev/null
@@ -1 +0,0 @@
-b
diff --git a/tests/join/1c.I1 b/tests/join/1c.I1
deleted file mode 100644
index 8f6edfd..0000000
--- a/tests/join/1c.I1
+++ /dev/null
@@ -1 +0,0 @@
-a 1
diff --git a/tests/join/1c.I2 b/tests/join/1c.I2
deleted file mode 100644
index 6178079..0000000
--- a/tests/join/1c.I2
+++ /dev/null
@@ -1 +0,0 @@
-b
diff --git a/tests/join/1c.X b/tests/join/1c.X
deleted file mode 100644
index 58991da..0000000
--- a/tests/join/1c.X
+++ /dev/null
@@ -1,2 +0,0 @@
-a 1
-b
diff --git a/tests/join/1d.I1 b/tests/join/1d.I1
deleted file mode 100644
index 58991da..0000000
--- a/tests/join/1d.I1
+++ /dev/null
@@ -1,2 +0,0 @@
-a 1
-b
diff --git a/tests/join/1d.I2 b/tests/join/1d.I2
deleted file mode 100644
index 6178079..0000000
--- a/tests/join/1d.I2
+++ /dev/null
@@ -1 +0,0 @@
-b
diff --git a/tests/join/1d.X b/tests/join/1d.X
deleted file mode 100644
index 58991da..0000000
--- a/tests/join/1d.X
+++ /dev/null
@@ -1,2 +0,0 @@
-a 1
-b
diff --git a/tests/join/1e.I1 b/tests/join/1e.I1
deleted file mode 100644
index 58991da..0000000
--- a/tests/join/1e.I1
+++ /dev/null
@@ -1,2 +0,0 @@
-a 1
-b
diff --git a/tests/join/1e.I2 b/tests/join/1e.I2
deleted file mode 100644
index 6178079..0000000
--- a/tests/join/1e.I2
+++ /dev/null
@@ -1 +0,0 @@
-b
diff --git a/tests/join/1e.X b/tests/join/1e.X
deleted file mode 100644
index 6178079..0000000
--- a/tests/join/1e.X
+++ /dev/null
@@ -1 +0,0 @@
-b
diff --git a/tests/join/1f.I1 b/tests/join/1f.I1
deleted file mode 100644
index 6178079..0000000
--- a/tests/join/1f.I1
+++ /dev/null
@@ -1 +0,0 @@
-b
diff --git a/tests/join/1f.I2 b/tests/join/1f.I2
deleted file mode 100644
index 422c2b7..0000000
--- a/tests/join/1f.I2
+++ /dev/null
@@ -1,2 +0,0 @@
-a
-b
diff --git a/tests/join/1f.X b/tests/join/1f.X
deleted file mode 100644
index 422c2b7..0000000
--- a/tests/join/1f.X
+++ /dev/null
@@ -1,2 +0,0 @@
-a
-b
diff --git a/tests/join/2a.I1 b/tests/join/2a.I1
deleted file mode 100644
index de98044..0000000
--- a/tests/join/2a.I1
+++ /dev/null
@@ -1,3 +0,0 @@
-a
-b
-c
diff --git a/tests/join/2a.I2 b/tests/join/2a.I2
deleted file mode 100644
index d357ea7..0000000
--- a/tests/join/2a.I2
+++ /dev/null
@@ -1,3 +0,0 @@
-a x y
-b
-c
diff --git a/tests/join/2a.X b/tests/join/2a.X
deleted file mode 100644
index d357ea7..0000000
--- a/tests/join/2a.X
+++ /dev/null
@@ -1,3 +0,0 @@
-a x y
-b
-c
diff --git a/tests/join/2b.I1 b/tests/join/2b.I1
deleted file mode 100644
index de98044..0000000
--- a/tests/join/2b.I1
+++ /dev/null
@@ -1,3 +0,0 @@
-a
-b
-c
diff --git a/tests/join/2b.I2 b/tests/join/2b.I2
deleted file mode 100644
index d357ea7..0000000
--- a/tests/join/2b.I2
+++ /dev/null
@@ -1,3 +0,0 @@
-a x y
-b
-c
diff --git a/tests/join/2b.X b/tests/join/2b.X
deleted file mode 100644
index ae4364b..0000000
--- a/tests/join/2b.X
+++ /dev/null
@@ -1,3 +0,0 @@
-a x y
-b . .
-c . .
diff --git a/tests/join/2c.I1 b/tests/join/2c.I1
deleted file mode 100644
index d68dd40..0000000
--- a/tests/join/2c.I1
+++ /dev/null
@@ -1,4 +0,0 @@
-a
-b
-c
-d
diff --git a/tests/join/2c.I2 b/tests/join/2c.I2
deleted file mode 100644
index d357ea7..0000000
--- a/tests/join/2c.I2
+++ /dev/null
@@ -1,3 +0,0 @@
-a x y
-b
-c
diff --git a/tests/join/2c.X b/tests/join/2c.X
deleted file mode 100644
index c3e9632..0000000
--- a/tests/join/2c.X
+++ /dev/null
@@ -1,4 +0,0 @@
-a x y
-b . .
-c . .
-. . .
diff --git a/tests/join/3a.I1 b/tests/join/3a.I1
deleted file mode 100644
index 052c29c..0000000
--- a/tests/join/3a.I1
+++ /dev/null
@@ -1,2 +0,0 @@
-a:1
-b:1
diff --git a/tests/join/3a.I2 b/tests/join/3a.I2
deleted file mode 100644
index 8591468..0000000
--- a/tests/join/3a.I2
+++ /dev/null
@@ -1,2 +0,0 @@
-a:2:
-b:2:
diff --git a/tests/join/3a.X b/tests/join/3a.X
deleted file mode 100644
index 18e1ee8..0000000
--- a/tests/join/3a.X
+++ /dev/null
@@ -1,2 +0,0 @@
-a:1:2:
-b:1:2:
diff --git a/tests/join/4a.I1 b/tests/join/4a.I1
deleted file mode 100644
index 8f6edfd..0000000
--- a/tests/join/4a.I1
+++ /dev/null
@@ -1 +0,0 @@
-a 1
diff --git a/tests/join/4a.I2 b/tests/join/4a.I2
deleted file mode 100644
index 6178079..0000000
--- a/tests/join/4a.I2
+++ /dev/null
@@ -1 +0,0 @@
-b
diff --git a/tests/join/4a.X b/tests/join/4a.X
deleted file mode 100644
index 8f6edfd..0000000
--- a/tests/join/4a.X
+++ /dev/null
@@ -1 +0,0 @@
-a 1
diff --git a/tests/join/4b.I1 b/tests/join/4b.I1
deleted file mode 100644
index 8f6edfd..0000000
--- a/tests/join/4b.I1
+++ /dev/null
@@ -1 +0,0 @@
-a 1
diff --git a/tests/join/4b.I2 b/tests/join/4b.I2
deleted file mode 100644
index 6178079..0000000
--- a/tests/join/4b.I2
+++ /dev/null
@@ -1 +0,0 @@
-b
diff --git a/tests/join/4b.X b/tests/join/4b.X
deleted file mode 100644
index 6178079..0000000
--- a/tests/join/4b.X
+++ /dev/null
@@ -1 +0,0 @@
-b
diff --git a/tests/join/4c.I1 b/tests/join/4c.I1
deleted file mode 100644
index 58991da..0000000
--- a/tests/join/4c.I1
+++ /dev/null
@@ -1,2 +0,0 @@
-a 1
-b
diff --git a/tests/join/4c.I2 b/tests/join/4c.I2
deleted file mode 100644
index 6178079..0000000
--- a/tests/join/4c.I2
+++ /dev/null
@@ -1 +0,0 @@
-b
diff --git a/tests/join/4c.X b/tests/join/4c.X
deleted file mode 100644
index 8f6edfd..0000000
--- a/tests/join/4c.X
+++ /dev/null
@@ -1 +0,0 @@
-a 1
diff --git a/tests/join/4d.I1 b/tests/join/4d.I1
deleted file mode 100644
index 58991da..0000000
--- a/tests/join/4d.I1
+++ /dev/null
@@ -1,2 +0,0 @@
-a 1
-b
diff --git a/tests/join/4d.I2 b/tests/join/4d.I2
deleted file mode 100644
index 6178079..0000000
--- a/tests/join/4d.I2
+++ /dev/null
@@ -1 +0,0 @@
-b
diff --git a/tests/join/4d.X b/tests/join/4d.X
deleted file mode 100644
index e69de29..0000000
--- a/tests/join/4d.X
+++ /dev/null
diff --git a/tests/join/4e.I1 b/tests/join/4e.I1
deleted file mode 100644
index 6178079..0000000
--- a/tests/join/4e.I1
+++ /dev/null
@@ -1 +0,0 @@
-b
diff --git a/tests/join/4e.I2 b/tests/join/4e.I2
deleted file mode 100644
index 58991da..0000000
--- a/tests/join/4e.I2
+++ /dev/null
@@ -1,2 +0,0 @@
-a 1
-b
diff --git a/tests/join/4e.X b/tests/join/4e.X
deleted file mode 100644
index 8f6edfd..0000000
--- a/tests/join/4e.X
+++ /dev/null
@@ -1 +0,0 @@
-a 1
diff --git a/tests/join/5a.I1 b/tests/join/5a.I1
deleted file mode 100644
index ddbfef7..0000000
--- a/tests/join/5a.I1
+++ /dev/null
@@ -1,2 +0,0 @@
-a 1
-b 2
diff --git a/tests/join/5a.I2 b/tests/join/5a.I2
deleted file mode 100644
index 78ea278..0000000
--- a/tests/join/5a.I2
+++ /dev/null
@@ -1,2 +0,0 @@
-a 11
-b
diff --git a/tests/join/5a.X b/tests/join/5a.X
deleted file mode 100644
index 2dc6c6d..0000000
--- a/tests/join/5a.X
+++ /dev/null
@@ -1,2 +0,0 @@
-a 11
-b -
diff --git a/tests/join/5b.I1 b/tests/join/5b.I1
deleted file mode 100644
index 8a2bc05..0000000
--- a/tests/join/5b.I1
+++ /dev/null
@@ -1,4 +0,0 @@
-apr 15
-aug 20
-dec 18
-feb 05
diff --git a/tests/join/5b.I2 b/tests/join/5b.I2
deleted file mode 100644
index e0b6a06..0000000
--- a/tests/join/5b.I2
+++ /dev/null
@@ -1,4 +0,0 @@
-apr 06
-aug 14
-date
-feb 15 \ No newline at end of file
diff --git a/tests/join/5b.X b/tests/join/5b.X
deleted file mode 100644
index 4e72fd7..0000000
--- a/tests/join/5b.X
+++ /dev/null
@@ -1,4 +0,0 @@
-apr 06
-aug 14
-dec -
-feb 15
diff --git a/tests/join/5c.I1 b/tests/join/5c.I1
deleted file mode 100644
index 0dfe9fc..0000000
--- a/tests/join/5c.I1
+++ /dev/null
@@ -1,2 +0,0 @@
-aug 20
-dec 18
diff --git a/tests/join/5c.I2 b/tests/join/5c.I2
deleted file mode 100644
index 134df69..0000000
--- a/tests/join/5c.I2
+++ /dev/null
@@ -1,3 +0,0 @@
-aug 14
-date
-feb 15 \ No newline at end of file
diff --git a/tests/join/5c.X b/tests/join/5c.X
deleted file mode 100644
index 0ff0307..0000000
--- a/tests/join/5c.X
+++ /dev/null
@@ -1,2 +0,0 @@
-aug 14
-dec -
diff --git a/tests/join/5d.I1 b/tests/join/5d.I1
deleted file mode 100644
index 804d3d0..0000000
--- a/tests/join/5d.I1
+++ /dev/null
@@ -1 +0,0 @@
-dec 18
diff --git a/tests/join/5d.I2 b/tests/join/5d.I2
deleted file mode 100644
index e69de29..0000000
--- a/tests/join/5d.I2
+++ /dev/null
diff --git a/tests/join/5d.X b/tests/join/5d.X
deleted file mode 100644
index 4713c1a..0000000
--- a/tests/join/5d.X
+++ /dev/null
@@ -1 +0,0 @@
-dec -
diff --git a/tests/join/5e.I1 b/tests/join/5e.I1
deleted file mode 100644
index 8a2bc05..0000000
--- a/tests/join/5e.I1
+++ /dev/null
@@ -1,4 +0,0 @@
-apr 15
-aug 20
-dec 18
-feb 05
diff --git a/tests/join/5e.I2 b/tests/join/5e.I2
deleted file mode 100644
index 8c0c3a6..0000000
--- a/tests/join/5e.I2
+++ /dev/null
@@ -1,4 +0,0 @@
-apr 06
-aug 14
-date
-feb 15
diff --git a/tests/join/5e.X b/tests/join/5e.X
deleted file mode 100644
index 817fecd..0000000
--- a/tests/join/5e.X
+++ /dev/null
@@ -1,4 +0,0 @@
-apr 06
-aug 14
-- -
-feb 15
diff --git a/tests/join/5f.I1 b/tests/join/5f.I1
deleted file mode 100644
index 8a2bc05..0000000
--- a/tests/join/5f.I1
+++ /dev/null
@@ -1,4 +0,0 @@
-apr 15
-aug 20
-dec 18
-feb 05
diff --git a/tests/join/5f.I2 b/tests/join/5f.I2
deleted file mode 100644
index 8c0c3a6..0000000
--- a/tests/join/5f.I2
+++ /dev/null
@@ -1,4 +0,0 @@
-apr 06
-aug 14
-date
-feb 15
diff --git a/tests/join/5f.X b/tests/join/5f.X
deleted file mode 100644
index e524722..0000000
--- a/tests/join/5f.X
+++ /dev/null
@@ -1,4 +0,0 @@
-06 apr
-14 aug
-- -
-15 feb
diff --git a/tests/join/5g.I1 b/tests/join/5g.I1
deleted file mode 100644
index 8a2bc05..0000000
--- a/tests/join/5g.I1
+++ /dev/null
@@ -1,4 +0,0 @@
-apr 15
-aug 20
-dec 18
-feb 05
diff --git a/tests/join/5g.I2 b/tests/join/5g.I2
deleted file mode 100644
index 8c0c3a6..0000000
--- a/tests/join/5g.I2
+++ /dev/null
@@ -1,4 +0,0 @@
-apr 06
-aug 14
-date
-feb 15
diff --git a/tests/join/5g.X b/tests/join/5g.X
deleted file mode 100644
index 7b73724..0000000
--- a/tests/join/5g.X
+++ /dev/null
@@ -1,4 +0,0 @@
-06 apr
-14 aug
-- dec
-15 feb
diff --git a/tests/join/5h.I1 b/tests/join/5h.I1
deleted file mode 100644
index 8a2bc05..0000000
--- a/tests/join/5h.I1
+++ /dev/null
@@ -1,4 +0,0 @@
-apr 15
-aug 20
-dec 18
-feb 05
diff --git a/tests/join/5h.I2 b/tests/join/5h.I2
deleted file mode 100644
index b1a2541..0000000
--- a/tests/join/5h.I2
+++ /dev/null
@@ -1,3 +0,0 @@
-apr 06
-aug 14
-date
diff --git a/tests/join/5h.X b/tests/join/5h.X
deleted file mode 100644
index 0541c87..0000000
--- a/tests/join/5h.X
+++ /dev/null
@@ -1,4 +0,0 @@
-06 apr
-14 aug
-- dec
-- feb
diff --git a/tests/join/5i.I1 b/tests/join/5i.I1
deleted file mode 100644
index 8a2bc05..0000000
--- a/tests/join/5i.I1
+++ /dev/null
@@ -1,4 +0,0 @@
-apr 15
-aug 20
-dec 18
-feb 05
diff --git a/tests/join/5i.I2 b/tests/join/5i.I2
deleted file mode 100644
index b1a2541..0000000
--- a/tests/join/5i.I2
+++ /dev/null
@@ -1,3 +0,0 @@
-apr 06
-aug 14
-date
diff --git a/tests/join/5i.X b/tests/join/5i.X
deleted file mode 100644
index 93a107b..0000000
--- a/tests/join/5i.X
+++ /dev/null
@@ -1,4 +0,0 @@
-apr 06
-aug 14
-dec -
-feb -
diff --git a/tests/join/5j.I1 b/tests/join/5j.I1
deleted file mode 100644
index 8a2bc05..0000000
--- a/tests/join/5j.I1
+++ /dev/null
@@ -1,4 +0,0 @@
-apr 15
-aug 20
-dec 18
-feb 05
diff --git a/tests/join/5j.I2 b/tests/join/5j.I2
deleted file mode 100644
index b1a2541..0000000
--- a/tests/join/5j.I2
+++ /dev/null
@@ -1,3 +0,0 @@
-apr 06
-aug 14
-date
diff --git a/tests/join/5j.X b/tests/join/5j.X
deleted file mode 100644
index fc56438..0000000
--- a/tests/join/5j.X
+++ /dev/null
@@ -1,3 +0,0 @@
-06 apr
-14 aug
-- -
diff --git a/tests/join/5k.I1 b/tests/join/5k.I1
deleted file mode 100644
index 8a2bc05..0000000
--- a/tests/join/5k.I1
+++ /dev/null
@@ -1,4 +0,0 @@
-apr 15
-aug 20
-dec 18
-feb 05
diff --git a/tests/join/5k.I2 b/tests/join/5k.I2
deleted file mode 100644
index b1a2541..0000000
--- a/tests/join/5k.I2
+++ /dev/null
@@ -1,3 +0,0 @@
-apr 06
-aug 14
-date
diff --git a/tests/join/5k.X b/tests/join/5k.X
deleted file mode 100644
index fc56438..0000000
--- a/tests/join/5k.X
+++ /dev/null
@@ -1,3 +0,0 @@
-06 apr
-14 aug
-- -
diff --git a/tests/join/5l.I1 b/tests/join/5l.I1
deleted file mode 100644
index a08fbc1..0000000
--- a/tests/join/5l.I1
+++ /dev/null
@@ -1,3 +0,0 @@
-apr 15
-aug 20
-dec 18
diff --git a/tests/join/5l.I2 b/tests/join/5l.I2
deleted file mode 100644
index 8c0c3a6..0000000
--- a/tests/join/5l.I2
+++ /dev/null
@@ -1,4 +0,0 @@
-apr 06
-aug 14
-date
-feb 15
diff --git a/tests/join/5l.X b/tests/join/5l.X
deleted file mode 100644
index 85a7d60..0000000
--- a/tests/join/5l.X
+++ /dev/null
@@ -1,3 +0,0 @@
-06 apr
-14 aug
-- dec
diff --git a/tests/join/5m.I1 b/tests/join/5m.I1
deleted file mode 100644
index a08fbc1..0000000
--- a/tests/join/5m.I1
+++ /dev/null
@@ -1,3 +0,0 @@
-apr 15
-aug 20
-dec 18
diff --git a/tests/join/5m.I2 b/tests/join/5m.I2
deleted file mode 100644
index 8c0c3a6..0000000
--- a/tests/join/5m.I2
+++ /dev/null
@@ -1,4 +0,0 @@
-apr 06
-aug 14
-date
-feb 15
diff --git a/tests/join/5m.X b/tests/join/5m.X
deleted file mode 100644
index f62d2c6..0000000
--- a/tests/join/5m.X
+++ /dev/null
@@ -1,4 +0,0 @@
-06 apr
-14 aug
-- -
-15 -
diff --git a/tests/join/6a.I1 b/tests/join/6a.I1
deleted file mode 100644
index 1f07036..0000000
--- a/tests/join/6a.I1
+++ /dev/null
@@ -1,3 +0,0 @@
-a 1
-b 2
-d 4
diff --git a/tests/join/6a.I2 b/tests/join/6a.I2
deleted file mode 100644
index 77da603..0000000
--- a/tests/join/6a.I2
+++ /dev/null
@@ -1,4 +0,0 @@
-a 21
-b 22
-c 23
-f 26
diff --git a/tests/join/6a.X b/tests/join/6a.X
deleted file mode 100644
index 8903d61..0000000
--- a/tests/join/6a.X
+++ /dev/null
@@ -1,2 +0,0 @@
-a 1 21
-b 2 22
diff --git a/tests/join/6b.I1 b/tests/join/6b.I1
deleted file mode 100644
index 1f07036..0000000
--- a/tests/join/6b.I1
+++ /dev/null
@@ -1,3 +0,0 @@
-a 1
-b 2
-d 4
diff --git a/tests/join/6b.I2 b/tests/join/6b.I2
deleted file mode 100644
index 77da603..0000000
--- a/tests/join/6b.I2
+++ /dev/null
@@ -1,4 +0,0 @@
-a 21
-b 22
-c 23
-f 26
diff --git a/tests/join/6b.X b/tests/join/6b.X
deleted file mode 100644
index c71cd04..0000000
--- a/tests/join/6b.X
+++ /dev/null
@@ -1,3 +0,0 @@
-a 1 21
-b 2 22
-d 4
diff --git a/tests/join/6c.I1 b/tests/join/6c.I1
deleted file mode 100644
index 77da603..0000000
--- a/tests/join/6c.I1
+++ /dev/null
@@ -1,4 +0,0 @@
-a 21
-b 22
-c 23
-f 26
diff --git a/tests/join/6c.I2 b/tests/join/6c.I2
deleted file mode 100644
index 1f07036..0000000
--- a/tests/join/6c.I2
+++ /dev/null
@@ -1,3 +0,0 @@
-a 1
-b 2
-d 4
diff --git a/tests/join/6c.X b/tests/join/6c.X
deleted file mode 100644
index 3ae4f65..0000000
--- a/tests/join/6c.X
+++ /dev/null
@@ -1,4 +0,0 @@
-a 21 1
-b 22 2
-c 23
-f 26
diff --git a/tests/join/7a.I1 b/tests/join/7a.I1
deleted file mode 100644
index de98044..0000000
--- a/tests/join/7a.I1
+++ /dev/null
@@ -1,3 +0,0 @@
-a
-b
-c
diff --git a/tests/join/7a.I2 b/tests/join/7a.I2
deleted file mode 100644
index d357ea7..0000000
--- a/tests/join/7a.I2
+++ /dev/null
@@ -1,3 +0,0 @@
-a x y
-b
-c
diff --git a/tests/join/7a.X b/tests/join/7a.X
deleted file mode 100644
index bd812ad..0000000
--- a/tests/join/7a.X
+++ /dev/null
@@ -1,3 +0,0 @@
-.
-.
-.
diff --git a/tests/join/8-bit-t.I1 b/tests/join/8-bit-t.I1
deleted file mode 100644
index 92f6a0d..0000000
--- a/tests/join/8-bit-t.I1
+++ /dev/null
@@ -1,2 +0,0 @@
-a§1
-b§1
diff --git a/tests/join/8-bit-t.I2 b/tests/join/8-bit-t.I2
deleted file mode 100644
index 2dba960..0000000
--- a/tests/join/8-bit-t.I2
+++ /dev/null
@@ -1,2 +0,0 @@
-a§2§
-b§2§
diff --git a/tests/join/8-bit-t.X b/tests/join/8-bit-t.X
deleted file mode 100644
index 8fef844..0000000
--- a/tests/join/8-bit-t.X
+++ /dev/null
@@ -1,2 +0,0 @@
-a§1§2§
-b§1§2§
diff --git a/tests/join/8a.I1 b/tests/join/8a.I1
deleted file mode 100644
index 1a57375..0000000
--- a/tests/join/8a.I1
+++ /dev/null
@@ -1,4 +0,0 @@
-a
-b
-c
-d G
diff --git a/tests/join/8a.I2 b/tests/join/8a.I2
deleted file mode 100644
index f489109..0000000
--- a/tests/join/8a.I2
+++ /dev/null
@@ -1,4 +0,0 @@
-a x y
-b
-c
-e
diff --git a/tests/join/8a.X b/tests/join/8a.X
deleted file mode 100644
index c0d471a..0000000
--- a/tests/join/8a.X
+++ /dev/null
@@ -1,4 +0,0 @@
-a .
-b .
-c .
-d G
diff --git a/tests/join/8b.I1 b/tests/join/8b.I1
deleted file mode 100644
index 1a57375..0000000
--- a/tests/join/8b.I1
+++ /dev/null
@@ -1,4 +0,0 @@
-a
-b
-c
-d G
diff --git a/tests/join/8b.I2 b/tests/join/8b.I2
deleted file mode 100644
index f489109..0000000
--- a/tests/join/8b.I2
+++ /dev/null
@@ -1,4 +0,0 @@
-a x y
-b
-c
-e
diff --git a/tests/join/8b.X b/tests/join/8b.X
deleted file mode 100644
index d41b2fd..0000000
--- a/tests/join/8b.X
+++ /dev/null
@@ -1,5 +0,0 @@
-a .
-b .
-c .
-d G
-e .
diff --git a/tests/join/9a.I1 b/tests/join/9a.I1
deleted file mode 100644
index f170a3b..0000000
--- a/tests/join/9a.I1
+++ /dev/null
@@ -1,2 +0,0 @@
- a 1
- b 2
diff --git a/tests/join/9a.I2 b/tests/join/9a.I2
deleted file mode 100644
index 2c9897a..0000000
--- a/tests/join/9a.I2
+++ /dev/null
@@ -1,2 +0,0 @@
- a Y
- b Z
diff --git a/tests/join/9a.X b/tests/join/9a.X
deleted file mode 100644
index 6f1fef3..0000000
--- a/tests/join/9a.X
+++ /dev/null
@@ -1,2 +0,0 @@
-a 1 Y
-b 2 Z
diff --git a/tests/join/Makefile.am b/tests/join/Makefile.am
deleted file mode 100644
index fe2d5cd..0000000
--- a/tests/join/Makefile.am
+++ /dev/null
@@ -1,74 +0,0 @@
-# Make coreutils tests. -*-Makefile-*-
-
-# Copyright (C) 1997, 1998, 2000, 2003, 2004, 2006 Free Software
-# Foundation, Inc.
-
-# This program is free software; you can redistribute it and/or modify
-# it under the terms of the GNU General Public License as published by
-# the Free Software Foundation; either version 2 of the License, or
-# (at your option) any later version.
-
-# This program is distributed in the hope that it will be useful,
-# but WITHOUT ANY WARRANTY; without even the implied warranty of
-# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
-# GNU General Public License for more details.
-
-# You should have received a copy of the GNU General Public License
-# along with this program; if not, write to the Free Software
-# Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA
-# 02110-1301, USA.
-
-##test-files-begin
-x = join
-explicit =
-maint_gen = 1a.I1 1a.I2 1a.X 1b.I1 1b.I2 1b.X 1c.I1 1c.I2 1c.X 1d.I1 1d.I2 \
-1d.X 1e.I1 1e.I2 1e.X 1f.I1 1f.I2 1f.X 2a.I1 2a.I2 2a.X 2b.I1 2b.I2 2b.X \
-2c.I1 2c.I2 2c.X 3a.I1 3a.I2 3a.X 4a.I1 4a.I2 4a.X 4b.I1 4b.I2 4b.X 4c.I1 \
-4c.I2 4c.X 4d.I1 4d.I2 4d.X 4e.I1 4e.I2 4e.X 5a.I1 5a.I2 5a.X 5b.I1 5b.I2 \
-5b.X 5c.I1 5c.I2 5c.X 5d.I1 5d.I2 5d.X 5e.I1 5e.I2 5e.X 5f.I1 5f.I2 5f.X \
-5g.I1 5g.I2 5g.X 5h.I1 5h.I2 5h.X 5i.I1 5i.I2 5i.X 5j.I1 5j.I2 5j.X 5k.I1 \
-5k.I2 5k.X 5l.I1 5l.I2 5l.X 5m.I1 5m.I2 5m.X 6a.I1 6a.I2 6a.X 6b.I1 6b.I2 \
-6b.X 6c.I1 6c.I2 6c.X 7a.I1 7a.I2 7a.X 8a.I1 8a.I2 8a.X 8b.I1 8b.I2 8b.X \
-9a.I1 9a.I2 9a.X trailing-sp.I1 trailing-sp.I2 trailing-sp.X sp-vs-blank.I1 \
-sp-vs-blank.I2 sp-vs-blank.X 8-bit-t.I1 8-bit-t.I2 8-bit-t.X bigfield.I1 \
-bigfield.I2 bigfield.X invalid-j.X
-run_gen = 1a.O 1a.E 1b.O 1b.E 1c.O 1c.E 1d.O 1d.E 1e.O 1e.E 1f.O 1f.E 2a.O \
-2a.E 2b.O 2b.E 2c.O 2c.E 3a.O 3a.E 4a.O 4a.E 4b.O 4b.E 4c.O 4c.E 4d.O 4d.E \
-4e.O 4e.E 5a.O 5a.E 5b.O 5b.E 5c.O 5c.E 5d.O 5d.E 5e.O 5e.E 5f.O 5f.E 5g.O \
-5g.E 5h.O 5h.E 5i.O 5i.E 5j.O 5j.E 5k.O 5k.E 5l.O 5l.E 5m.O 5m.E 6a.O 6a.E \
-6b.O 6b.E 6c.O 6c.E 7a.O 7a.E 8a.O 8a.E 8b.O 8b.E 9a.O 9a.E trailing-sp.O \
-trailing-sp.E sp-vs-blank.O sp-vs-blank.E 8-bit-t.O 8-bit-t.E bigfield.O \
-bigfield.E invalid-j.O invalid-j.E
-##test-files-end
-
-EXTRA_DIST = Test.pm $x-tests $(explicit) $(maint_gen)
-noinst_SCRIPTS = $x-tests
-TESTS_ENVIRONMENT = \
- CU_TEST_NAME=`basename $(abs_srcdir)`,$$tst \
- PATH="$(VG_PATH_PREFIX)`pwd`/../../src$(PATH_SEPARATOR)$$PATH"
-
-editpl = sed -e 's,@''PERL''@,$(PERL),g' -e 's,@''srcdir''@,$(srcdir),g'
-
-TESTS = $x-tests
-
-mk_script = $(srcdir)/../mk-script
-$(srcdir)/$x-tests: $(mk_script) Test.pm Makefile.am
- test '$x' = test && prog=../../src/$x || prog=$x; \
- $(PERL) -I$(srcdir) -w -- $(mk_script) $(srcdir) $$prog > $@.n
- mv $@.n $@
- chmod 755 $@
-
-MAINTAINERCLEANFILES = $x-tests $(maint_gen)
-CLEANFILES = $(run_gen)
-
-check: $(maint_gen)
-
-$(srcdir)/Makefile.am: ../Makefile.am.in Test.pm $(mk_script)
- rm -f $@ $@t
- sed -n '1,/^##test-files-begin/p' $(srcdir)/../Makefile.am.in > $@t
- tool=`echo $(subdir)|sed 's/^tests.//;s/-test//'`; \
- echo "x = $$tool" >> $@t
- $(PERL) -I$(srcdir) -w -- $(mk_script) $(srcdir) --list >> $@t
- sed -n '/^##test-files-end/,$$p' $(srcdir)/../Makefile.am.in >> $@t
- chmod -w $@t
- mv $@t $@
diff --git a/tests/join/Makefile.in b/tests/join/Makefile.in
deleted file mode 100644
index b114a9b..0000000
--- a/tests/join/Makefile.in
+++ /dev/null
@@ -1,784 +0,0 @@
-# Makefile.in generated by automake 1.10 from Makefile.am.
-# @configure_input@
-
-# Copyright (C) 1994, 1995, 1996, 1997, 1998, 1999, 2000, 2001, 2002,
-# 2003, 2004, 2005, 2006 Free Software Foundation, Inc.
-# This Makefile.in is free software; the Free Software Foundation
-# gives unlimited permission to copy and/or distribute it,
-# with or without modifications, as long as this notice is preserved.
-
-# This program is distributed in the hope that it will be useful,
-# but WITHOUT ANY WARRANTY, to the extent permitted by law; without
-# even the implied warranty of MERCHANTABILITY or FITNESS FOR A
-# PARTICULAR PURPOSE.
-
-@SET_MAKE@
-
-# Make coreutils tests. -*-Makefile-*-
-
-# Copyright (C) 1997, 1998, 2000, 2003, 2004, 2006 Free Software
-# Foundation, Inc.
-
-# This program is free software; you can redistribute it and/or modify
-# it under the terms of the GNU General Public License as published by
-# the Free Software Foundation; either version 2 of the License, or
-# (at your option) any later version.
-
-# This program is distributed in the hope that it will be useful,
-# but WITHOUT ANY WARRANTY; without even the implied warranty of
-# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
-# GNU General Public License for more details.
-
-# You should have received a copy of the GNU General Public License
-# along with this program; if not, write to the Free Software
-# Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA
-# 02110-1301, USA.
-
-VPATH = @srcdir@
-pkgdatadir = $(datadir)/@PACKAGE@
-pkglibdir = $(libdir)/@PACKAGE@
-pkgincludedir = $(includedir)/@PACKAGE@
-am__cd = CDPATH="$${ZSH_VERSION+.}$(PATH_SEPARATOR)" && cd
-install_sh_DATA = $(install_sh) -c -m 644
-install_sh_PROGRAM = $(install_sh) -c
-install_sh_SCRIPT = $(install_sh) -c
-INSTALL_HEADER = $(INSTALL_DATA)
-transform = $(program_transform_name)
-NORMAL_INSTALL = :
-PRE_INSTALL = :
-POST_INSTALL = :
-NORMAL_UNINSTALL = :
-PRE_UNINSTALL = :
-POST_UNINSTALL = :
-build_triplet = @build@
-host_triplet = @host@
-subdir = tests/join
-DIST_COMMON = $(srcdir)/Makefile.am $(srcdir)/Makefile.in TODO
-ACLOCAL_M4 = $(top_srcdir)/aclocal.m4
-am__aclocal_m4_deps = $(top_srcdir)/m4/absolute-header.m4 \
- $(top_srcdir)/m4/acl.m4 $(top_srcdir)/m4/alloca.m4 \
- $(top_srcdir)/m4/allocsa.m4 $(top_srcdir)/m4/argmatch.m4 \
- $(top_srcdir)/m4/arpa_inet_h.m4 $(top_srcdir)/m4/assert.m4 \
- $(top_srcdir)/m4/atexit.m4 $(top_srcdir)/m4/autobuild.m4 \
- $(top_srcdir)/m4/backupfile.m4 $(top_srcdir)/m4/base64.m4 \
- $(top_srcdir)/m4/bison.m4 $(top_srcdir)/m4/boottime.m4 \
- $(top_srcdir)/m4/c-strtod.m4 $(top_srcdir)/m4/calloc.m4 \
- $(top_srcdir)/m4/canon-host.m4 \
- $(top_srcdir)/m4/canonicalize.m4 \
- $(top_srcdir)/m4/chdir-long.m4 $(top_srcdir)/m4/check-decl.m4 \
- $(top_srcdir)/m4/chown.m4 $(top_srcdir)/m4/clock_time.m4 \
- $(top_srcdir)/m4/cloexec.m4 $(top_srcdir)/m4/close-stream.m4 \
- $(top_srcdir)/m4/closeout.m4 $(top_srcdir)/m4/codeset.m4 \
- $(top_srcdir)/m4/config-h.m4 $(top_srcdir)/m4/cycle-check.m4 \
- $(top_srcdir)/m4/d-ino.m4 $(top_srcdir)/m4/d-type.m4 \
- $(top_srcdir)/m4/dirfd.m4 $(top_srcdir)/m4/dirname.m4 \
- $(top_srcdir)/m4/dos.m4 $(top_srcdir)/m4/double-slash-root.m4 \
- $(top_srcdir)/m4/dup2.m4 $(top_srcdir)/m4/eealloc.m4 \
- $(top_srcdir)/m4/eoverflow.m4 $(top_srcdir)/m4/error.m4 \
- $(top_srcdir)/m4/euidaccess-stat.m4 \
- $(top_srcdir)/m4/euidaccess.m4 $(top_srcdir)/m4/exclude.m4 \
- $(top_srcdir)/m4/exitfail.m4 $(top_srcdir)/m4/extensions.m4 \
- $(top_srcdir)/m4/fchdir.m4 $(top_srcdir)/m4/fcntl-safer.m4 \
- $(top_srcdir)/m4/fcntl_h.m4 $(top_srcdir)/m4/fd-reopen.m4 \
- $(top_srcdir)/m4/file-type.m4 $(top_srcdir)/m4/fileblocks.m4 \
- $(top_srcdir)/m4/filemode.m4 $(top_srcdir)/m4/filenamecat.m4 \
- $(top_srcdir)/m4/flexmember.m4 $(top_srcdir)/m4/fnmatch.m4 \
- $(top_srcdir)/m4/fpending.m4 $(top_srcdir)/m4/fprintftime.m4 \
- $(top_srcdir)/m4/free.m4 $(top_srcdir)/m4/fstypename.m4 \
- $(top_srcdir)/m4/fsusage.m4 $(top_srcdir)/m4/ftruncate.m4 \
- $(top_srcdir)/m4/fts.m4 $(top_srcdir)/m4/getaddrinfo.m4 \
- $(top_srcdir)/m4/getcwd-abort-bug.m4 \
- $(top_srcdir)/m4/getcwd-path-max.m4 $(top_srcdir)/m4/getcwd.m4 \
- $(top_srcdir)/m4/getdate.m4 $(top_srcdir)/m4/getdelim.m4 \
- $(top_srcdir)/m4/getgroups.m4 $(top_srcdir)/m4/gethostname.m4 \
- $(top_srcdir)/m4/gethrxtime.m4 $(top_srcdir)/m4/getline.m4 \
- $(top_srcdir)/m4/getloadavg.m4 $(top_srcdir)/m4/getndelim2.m4 \
- $(top_srcdir)/m4/getopt.m4 $(top_srcdir)/m4/getpagesize.m4 \
- $(top_srcdir)/m4/getpass.m4 $(top_srcdir)/m4/gettext.m4 \
- $(top_srcdir)/m4/gettime.m4 $(top_srcdir)/m4/gettimeofday.m4 \
- $(top_srcdir)/m4/getugroups.m4 \
- $(top_srcdir)/m4/getusershell.m4 $(top_srcdir)/m4/glibc21.m4 \
- $(top_srcdir)/m4/gnulib-common.m4 \
- $(top_srcdir)/m4/gnulib-comp.m4 \
- $(top_srcdir)/m4/group-member.m4 \
- $(top_srcdir)/m4/hard-locale.m4 $(top_srcdir)/m4/hash.m4 \
- $(top_srcdir)/m4/host-os.m4 $(top_srcdir)/m4/human.m4 \
- $(top_srcdir)/m4/i-ring.m4 $(top_srcdir)/m4/iconv.m4 \
- $(top_srcdir)/m4/idcache.m4 $(top_srcdir)/m4/inet_ntop.m4 \
- $(top_srcdir)/m4/inline.m4 $(top_srcdir)/m4/intmax_t.m4 \
- $(top_srcdir)/m4/inttostr.m4 $(top_srcdir)/m4/inttypes-pri.m4 \
- $(top_srcdir)/m4/inttypes.m4 $(top_srcdir)/m4/inttypes_h.m4 \
- $(top_srcdir)/m4/isapipe.m4 $(top_srcdir)/m4/jm-macros.m4 \
- $(top_srcdir)/m4/jm-winsz1.m4 $(top_srcdir)/m4/jm-winsz2.m4 \
- $(top_srcdir)/m4/lchmod.m4 $(top_srcdir)/m4/lchown.m4 \
- $(top_srcdir)/m4/lib-check.m4 $(top_srcdir)/m4/lib-ignore.m4 \
- $(top_srcdir)/m4/lib-ld.m4 $(top_srcdir)/m4/lib-link.m4 \
- $(top_srcdir)/m4/lib-prefix.m4 $(top_srcdir)/m4/link-follow.m4 \
- $(top_srcdir)/m4/localcharset.m4 \
- $(top_srcdir)/m4/long-options.m4 \
- $(top_srcdir)/m4/longdouble.m4 $(top_srcdir)/m4/longlong.m4 \
- $(top_srcdir)/m4/ls-mntd-fs.m4 $(top_srcdir)/m4/lstat.m4 \
- $(top_srcdir)/m4/mbchar.m4 $(top_srcdir)/m4/mbiter.m4 \
- $(top_srcdir)/m4/mbrtowc.m4 $(top_srcdir)/m4/mbscasecmp.m4 \
- $(top_srcdir)/m4/mbstate_t.m4 $(top_srcdir)/m4/mbswidth.m4 \
- $(top_srcdir)/m4/md5.m4 $(top_srcdir)/m4/memcasecmp.m4 \
- $(top_srcdir)/m4/memchr.m4 $(top_srcdir)/m4/memcmp.m4 \
- $(top_srcdir)/m4/memcoll.m4 $(top_srcdir)/m4/memcpy.m4 \
- $(top_srcdir)/m4/memmove.m4 $(top_srcdir)/m4/mempcpy.m4 \
- $(top_srcdir)/m4/memrchr.m4 $(top_srcdir)/m4/memset.m4 \
- $(top_srcdir)/m4/memxfrm.m4 $(top_srcdir)/m4/mkancesdirs.m4 \
- $(top_srcdir)/m4/mkdir-p.m4 $(top_srcdir)/m4/mkdir-slash.m4 \
- $(top_srcdir)/m4/mkstemp.m4 $(top_srcdir)/m4/mktime.m4 \
- $(top_srcdir)/m4/modechange.m4 $(top_srcdir)/m4/mountlist.m4 \
- $(top_srcdir)/m4/mpsort.m4 $(top_srcdir)/m4/nanosleep.m4 \
- $(top_srcdir)/m4/netinet_in_h.m4 $(top_srcdir)/m4/nls.m4 \
- $(top_srcdir)/m4/openat.m4 $(top_srcdir)/m4/pathmax.m4 \
- $(top_srcdir)/m4/perl.m4 $(top_srcdir)/m4/physmem.m4 \
- $(top_srcdir)/m4/po.m4 $(top_srcdir)/m4/posixtm.m4 \
- $(top_srcdir)/m4/posixver.m4 $(top_srcdir)/m4/prereq.m4 \
- $(top_srcdir)/m4/progtest.m4 $(top_srcdir)/m4/putenv.m4 \
- $(top_srcdir)/m4/quote.m4 $(top_srcdir)/m4/quotearg.m4 \
- $(top_srcdir)/m4/randint.m4 $(top_srcdir)/m4/randperm.m4 \
- $(top_srcdir)/m4/randread.m4 $(top_srcdir)/m4/readlink.m4 \
- $(top_srcdir)/m4/readtokens.m4 $(top_srcdir)/m4/readutmp.m4 \
- $(top_srcdir)/m4/regex.m4 \
- $(top_srcdir)/m4/rename-dest-slash.m4 \
- $(top_srcdir)/m4/rename.m4 $(top_srcdir)/m4/rmdir-errno.m4 \
- $(top_srcdir)/m4/rmdir.m4 $(top_srcdir)/m4/root-dev-ino.m4 \
- $(top_srcdir)/m4/rpmatch.m4 $(top_srcdir)/m4/safe-read.m4 \
- $(top_srcdir)/m4/safe-write.m4 $(top_srcdir)/m4/same.m4 \
- $(top_srcdir)/m4/save-cwd.m4 $(top_srcdir)/m4/savedir.m4 \
- $(top_srcdir)/m4/savewd.m4 $(top_srcdir)/m4/setenv.m4 \
- $(top_srcdir)/m4/settime.m4 $(top_srcdir)/m4/sha1.m4 \
- $(top_srcdir)/m4/sha256.m4 $(top_srcdir)/m4/sha512.m4 \
- $(top_srcdir)/m4/sig2str.m4 $(top_srcdir)/m4/snprintf.m4 \
- $(top_srcdir)/m4/socklen.m4 $(top_srcdir)/m4/sockpfaf.m4 \
- $(top_srcdir)/m4/ssize_t.m4 $(top_srcdir)/m4/st_dm_mode.m4 \
- $(top_srcdir)/m4/stat-prog.m4 $(top_srcdir)/m4/stat-time.m4 \
- $(top_srcdir)/m4/stdarg.m4 $(top_srcdir)/m4/stdbool.m4 \
- $(top_srcdir)/m4/stdint.m4 $(top_srcdir)/m4/stdint_h.m4 \
- $(top_srcdir)/m4/stdio-safer.m4 $(top_srcdir)/m4/stdio_h.m4 \
- $(top_srcdir)/m4/stdlib-safer.m4 $(top_srcdir)/m4/stdlib_h.m4 \
- $(top_srcdir)/m4/stpcpy.m4 $(top_srcdir)/m4/strcspn.m4 \
- $(top_srcdir)/m4/strdup.m4 $(top_srcdir)/m4/strftime.m4 \
- $(top_srcdir)/m4/string_h.m4 $(top_srcdir)/m4/strndup.m4 \
- $(top_srcdir)/m4/strnlen.m4 $(top_srcdir)/m4/strnumcmp.m4 \
- $(top_srcdir)/m4/strpbrk.m4 $(top_srcdir)/m4/strtod.m4 \
- $(top_srcdir)/m4/strtoimax.m4 $(top_srcdir)/m4/strtol.m4 \
- $(top_srcdir)/m4/strtoll.m4 $(top_srcdir)/m4/strtoul.m4 \
- $(top_srcdir)/m4/strtoull.m4 $(top_srcdir)/m4/strtoumax.m4 \
- $(top_srcdir)/m4/strverscmp.m4 \
- $(top_srcdir)/m4/sys_socket_h.m4 \
- $(top_srcdir)/m4/sys_stat_h.m4 $(top_srcdir)/m4/sys_time_h.m4 \
- $(top_srcdir)/m4/tempname.m4 $(top_srcdir)/m4/time_h.m4 \
- $(top_srcdir)/m4/time_r.m4 $(top_srcdir)/m4/timespec.m4 \
- $(top_srcdir)/m4/tm_gmtoff.m4 $(top_srcdir)/m4/tzset.m4 \
- $(top_srcdir)/m4/unicodeio.m4 $(top_srcdir)/m4/unistd-safer.m4 \
- $(top_srcdir)/m4/unistd_h.m4 $(top_srcdir)/m4/unlink-busy.m4 \
- $(top_srcdir)/m4/unlinkdir.m4 $(top_srcdir)/m4/unlocked-io.m4 \
- $(top_srcdir)/m4/uptime.m4 $(top_srcdir)/m4/userspec.m4 \
- $(top_srcdir)/m4/utimbuf.m4 $(top_srcdir)/m4/utime.m4 \
- $(top_srcdir)/m4/utimecmp.m4 $(top_srcdir)/m4/utimens.m4 \
- $(top_srcdir)/m4/utimes-null.m4 $(top_srcdir)/m4/utimes.m4 \
- $(top_srcdir)/m4/vasnprintf.m4 $(top_srcdir)/m4/vasprintf.m4 \
- $(top_srcdir)/m4/wchar.m4 $(top_srcdir)/m4/wchar_t.m4 \
- $(top_srcdir)/m4/wctype.m4 $(top_srcdir)/m4/wcwidth.m4 \
- $(top_srcdir)/m4/wint_t.m4 $(top_srcdir)/m4/xalloc.m4 \
- $(top_srcdir)/m4/xfts.m4 $(top_srcdir)/m4/xgetcwd.m4 \
- $(top_srcdir)/m4/xnanosleep.m4 $(top_srcdir)/m4/xstrndup.m4 \
- $(top_srcdir)/m4/xstrtod.m4 $(top_srcdir)/m4/xstrtol.m4 \
- $(top_srcdir)/m4/yesno.m4 $(top_srcdir)/configure.ac
-am__configure_deps = $(am__aclocal_m4_deps) $(CONFIGURE_DEPENDENCIES) \
- $(ACLOCAL_M4)
-mkinstalldirs = $(install_sh) -d
-CONFIG_HEADER = $(top_builddir)/lib/config.h
-CONFIG_CLEAN_FILES =
-SCRIPTS = $(noinst_SCRIPTS)
-SOURCES =
-DIST_SOURCES =
-DISTFILES = $(DIST_COMMON) $(DIST_SOURCES) $(TEXINFOS) $(EXTRA_DIST)
-ABSOLUTE_DIRENT_H = @ABSOLUTE_DIRENT_H@
-ABSOLUTE_FCNTL_H = @ABSOLUTE_FCNTL_H@
-ABSOLUTE_INTTYPES_H = @ABSOLUTE_INTTYPES_H@
-ABSOLUTE_NETINET_IN_H = @ABSOLUTE_NETINET_IN_H@
-ABSOLUTE_STDINT_H = @ABSOLUTE_STDINT_H@
-ABSOLUTE_STDIO_H = @ABSOLUTE_STDIO_H@
-ABSOLUTE_STDLIB_H = @ABSOLUTE_STDLIB_H@
-ABSOLUTE_STRING_H = @ABSOLUTE_STRING_H@
-ABSOLUTE_SYS_SOCKET_H = @ABSOLUTE_SYS_SOCKET_H@
-ABSOLUTE_SYS_STAT_H = @ABSOLUTE_SYS_STAT_H@
-ABSOLUTE_SYS_TIME_H = @ABSOLUTE_SYS_TIME_H@
-ABSOLUTE_TIME_H = @ABSOLUTE_TIME_H@
-ABSOLUTE_UNISTD_H = @ABSOLUTE_UNISTD_H@
-ABSOLUTE_WCHAR_H = @ABSOLUTE_WCHAR_H@
-ABSOLUTE_WCTYPE_H = @ABSOLUTE_WCTYPE_H@
-ACLOCAL = @ACLOCAL@
-ALLOCA = @ALLOCA@
-ALLOCA_H = @ALLOCA_H@
-AMTAR = @AMTAR@
-ARPA_INET_H = @ARPA_INET_H@
-AUTOCONF = @AUTOCONF@
-AUTOHEADER = @AUTOHEADER@
-AUTOMAKE = @AUTOMAKE@
-AWK = @AWK@
-BITSIZEOF_PTRDIFF_T = @BITSIZEOF_PTRDIFF_T@
-BITSIZEOF_SIG_ATOMIC_T = @BITSIZEOF_SIG_ATOMIC_T@
-BITSIZEOF_SIZE_T = @BITSIZEOF_SIZE_T@
-BITSIZEOF_WCHAR_T = @BITSIZEOF_WCHAR_T@
-BITSIZEOF_WINT_T = @BITSIZEOF_WINT_T@
-CC = @CC@
-CCDEPMODE = @CCDEPMODE@
-CFLAGS = @CFLAGS@
-CPP = @CPP@
-CPPFLAGS = @CPPFLAGS@
-CYGPATH_W = @CYGPATH_W@
-DEFAULT_POSIX2_VERSION = @DEFAULT_POSIX2_VERSION@
-DEFS = @DEFS@
-DEPDIR = @DEPDIR@
-DF_PROG = @DF_PROG@
-DIRENT_H = @DIRENT_H@
-ECHO_C = @ECHO_C@
-ECHO_N = @ECHO_N@
-ECHO_T = @ECHO_T@
-EGREP = @EGREP@
-EOVERFLOW = @EOVERFLOW@
-EXEEXT = @EXEEXT@
-FCNTL_H = @FCNTL_H@
-FNMATCH_H = @FNMATCH_H@
-GETLOADAVG_LIBS = @GETLOADAVG_LIBS@
-GETOPT_H = @GETOPT_H@
-GLIBC21 = @GLIBC21@
-GMSGFMT = @GMSGFMT@
-GMSGFMT_015 = @GMSGFMT_015@
-GNULIB_CHOWN = @GNULIB_CHOWN@
-GNULIB_DUP2 = @GNULIB_DUP2@
-GNULIB_FCHDIR = @GNULIB_FCHDIR@
-GNULIB_FPRINTF_POSIX = @GNULIB_FPRINTF_POSIX@
-GNULIB_FTRUNCATE = @GNULIB_FTRUNCATE@
-GNULIB_GETCWD = @GNULIB_GETCWD@
-GNULIB_GETLOGIN_R = @GNULIB_GETLOGIN_R@
-GNULIB_GETSUBOPT = @GNULIB_GETSUBOPT@
-GNULIB_IMAXABS = @GNULIB_IMAXABS@
-GNULIB_IMAXDIV = @GNULIB_IMAXDIV@
-GNULIB_MBSCASECMP = @GNULIB_MBSCASECMP@
-GNULIB_MBSCASESTR = @GNULIB_MBSCASESTR@
-GNULIB_MBSCHR = @GNULIB_MBSCHR@
-GNULIB_MBSCSPN = @GNULIB_MBSCSPN@
-GNULIB_MBSLEN = @GNULIB_MBSLEN@
-GNULIB_MBSNCASECMP = @GNULIB_MBSNCASECMP@
-GNULIB_MBSPBRK = @GNULIB_MBSPBRK@
-GNULIB_MBSPCASECMP = @GNULIB_MBSPCASECMP@
-GNULIB_MBSRCHR = @GNULIB_MBSRCHR@
-GNULIB_MBSSEP = @GNULIB_MBSSEP@
-GNULIB_MBSSPN = @GNULIB_MBSSPN@
-GNULIB_MBSSTR = @GNULIB_MBSSTR@
-GNULIB_MBSTOK_R = @GNULIB_MBSTOK_R@
-GNULIB_MEMMEM = @GNULIB_MEMMEM@
-GNULIB_MEMPCPY = @GNULIB_MEMPCPY@
-GNULIB_MEMRCHR = @GNULIB_MEMRCHR@
-GNULIB_MKDTEMP = @GNULIB_MKDTEMP@
-GNULIB_MKSTEMP = @GNULIB_MKSTEMP@
-GNULIB_PRINTF_POSIX = @GNULIB_PRINTF_POSIX@
-GNULIB_READLINK = @GNULIB_READLINK@
-GNULIB_SNPRINTF = @GNULIB_SNPRINTF@
-GNULIB_SPRINTF_POSIX = @GNULIB_SPRINTF_POSIX@
-GNULIB_STPCPY = @GNULIB_STPCPY@
-GNULIB_STPNCPY = @GNULIB_STPNCPY@
-GNULIB_STRCASESTR = @GNULIB_STRCASESTR@
-GNULIB_STRCHRNUL = @GNULIB_STRCHRNUL@
-GNULIB_STRDUP = @GNULIB_STRDUP@
-GNULIB_STRNDUP = @GNULIB_STRNDUP@
-GNULIB_STRNLEN = @GNULIB_STRNLEN@
-GNULIB_STRPBRK = @GNULIB_STRPBRK@
-GNULIB_STRSEP = @GNULIB_STRSEP@
-GNULIB_STRTOIMAX = @GNULIB_STRTOIMAX@
-GNULIB_STRTOK_R = @GNULIB_STRTOK_R@
-GNULIB_STRTOUMAX = @GNULIB_STRTOUMAX@
-GNULIB_VFPRINTF_POSIX = @GNULIB_VFPRINTF_POSIX@
-GNULIB_VPRINTF_POSIX = @GNULIB_VPRINTF_POSIX@
-GNULIB_VSNPRINTF = @GNULIB_VSNPRINTF@
-GNULIB_VSPRINTF_POSIX = @GNULIB_VSPRINTF_POSIX@
-GNU_PACKAGE = @GNU_PACKAGE@
-GREP = @GREP@
-HAVE_DECL_GETLOGIN_R = @HAVE_DECL_GETLOGIN_R@
-HAVE_DECL_IMAXABS = @HAVE_DECL_IMAXABS@
-HAVE_DECL_IMAXDIV = @HAVE_DECL_IMAXDIV@
-HAVE_DECL_MEMMEM = @HAVE_DECL_MEMMEM@
-HAVE_DECL_MEMRCHR = @HAVE_DECL_MEMRCHR@
-HAVE_DECL_SNPRINTF = @HAVE_DECL_SNPRINTF@
-HAVE_DECL_STRDUP = @HAVE_DECL_STRDUP@
-HAVE_DECL_STRNCASECMP = @HAVE_DECL_STRNCASECMP@
-HAVE_DECL_STRNDUP = @HAVE_DECL_STRNDUP@
-HAVE_DECL_STRNLEN = @HAVE_DECL_STRNLEN@
-HAVE_DECL_STRTOIMAX = @HAVE_DECL_STRTOIMAX@
-HAVE_DECL_STRTOK_R = @HAVE_DECL_STRTOK_R@
-HAVE_DECL_STRTOUMAX = @HAVE_DECL_STRTOUMAX@
-HAVE_DECL_VSNPRINTF = @HAVE_DECL_VSNPRINTF@
-HAVE_DUP2 = @HAVE_DUP2@
-HAVE_FTRUNCATE = @HAVE_FTRUNCATE@
-HAVE_GETSUBOPT = @HAVE_GETSUBOPT@
-HAVE_INTTYPES_H = @HAVE_INTTYPES_H@
-HAVE_LONG_LONG_INT = @HAVE_LONG_LONG_INT@
-HAVE_MEMPCPY = @HAVE_MEMPCPY@
-HAVE_MKDTEMP = @HAVE_MKDTEMP@
-HAVE_NETINET_IN_H = @HAVE_NETINET_IN_H@
-HAVE_READLINK = @HAVE_READLINK@
-HAVE_SIGNED_SIG_ATOMIC_T = @HAVE_SIGNED_SIG_ATOMIC_T@
-HAVE_SIGNED_WCHAR_T = @HAVE_SIGNED_WCHAR_T@
-HAVE_SIGNED_WINT_T = @HAVE_SIGNED_WINT_T@
-HAVE_STDINT_H = @HAVE_STDINT_H@
-HAVE_STPCPY = @HAVE_STPCPY@
-HAVE_STPNCPY = @HAVE_STPNCPY@
-HAVE_STRCASECMP = @HAVE_STRCASECMP@
-HAVE_STRCASESTR = @HAVE_STRCASESTR@
-HAVE_STRCHRNUL = @HAVE_STRCHRNUL@
-HAVE_STRNDUP = @HAVE_STRNDUP@
-HAVE_STRPBRK = @HAVE_STRPBRK@
-HAVE_STRSEP = @HAVE_STRSEP@
-HAVE_STRUCT_TIMEVAL = @HAVE_STRUCT_TIMEVAL@
-HAVE_SYS_BITYPES_H = @HAVE_SYS_BITYPES_H@
-HAVE_SYS_INTTYPES_H = @HAVE_SYS_INTTYPES_H@
-HAVE_SYS_SOCKET_H = @HAVE_SYS_SOCKET_H@
-HAVE_SYS_TIME_H = @HAVE_SYS_TIME_H@
-HAVE_SYS_TYPES_H = @HAVE_SYS_TYPES_H@
-HAVE_UNISTD_H = @HAVE_UNISTD_H@
-HAVE_UNSIGNED_LONG_LONG_INT = @HAVE_UNSIGNED_LONG_LONG_INT@
-HAVE_WCTYPE_H = @HAVE_WCTYPE_H@
-HAVE_WINSOCK2_H = @HAVE_WINSOCK2_H@
-HAVE_WINT_T = @HAVE_WINT_T@
-HAVE_WS2TCPIP_H = @HAVE_WS2TCPIP_H@
-HAVE__BOOL = @HAVE__BOOL@
-HELP2MAN = @HELP2MAN@
-INSTALL = @INSTALL@
-INSTALL_DATA = @INSTALL_DATA@
-INSTALL_PROGRAM = @INSTALL_PROGRAM@
-INSTALL_SCRIPT = @INSTALL_SCRIPT@
-INSTALL_STRIP_PROGRAM = @INSTALL_STRIP_PROGRAM@
-INTLLIBS = @INTLLIBS@
-INTL_MACOSX_LIBS = @INTL_MACOSX_LIBS@
-INTTYPES_H = @INTTYPES_H@
-KMEM_GROUP = @KMEM_GROUP@
-LDFLAGS = @LDFLAGS@
-LIBCOREUTILS_LIBDEPS = @LIBCOREUTILS_LIBDEPS@
-LIBCOREUTILS_LTLIBDEPS = @LIBCOREUTILS_LTLIBDEPS@
-LIBICONV = @LIBICONV@
-LIBINTL = @LIBINTL@
-LIBOBJS = @LIBOBJS@
-LIBS = @LIBS@
-LIB_ACL = @LIB_ACL@
-LIB_ACL_TRIVIAL = @LIB_ACL_TRIVIAL@
-LIB_CLOCK_GETTIME = @LIB_CLOCK_GETTIME@
-LIB_CRYPT = @LIB_CRYPT@
-LIB_EACCESS = @LIB_EACCESS@
-LIB_FDATASYNC = @LIB_FDATASYNC@
-LIB_GETHRXTIME = @LIB_GETHRXTIME@
-LIB_NANOSLEEP = @LIB_NANOSLEEP@
-LN_S = @LN_S@
-LTLIBICONV = @LTLIBICONV@
-LTLIBINTL = @LTLIBINTL@
-LTLIBOBJS = @LTLIBOBJS@
-MAKEINFO = @MAKEINFO@
-MAN = @MAN@
-MKDIR_P = @MKDIR_P@
-MSGFMT = @MSGFMT@
-MSGFMT_015 = @MSGFMT_015@
-MSGMERGE = @MSGMERGE@
-NEED_SETGID = @NEED_SETGID@
-NETINET_IN_H = @NETINET_IN_H@
-OBJEXT = @OBJEXT@
-OPTIONAL_BIN_PROGS = @OPTIONAL_BIN_PROGS@
-PACKAGE = @PACKAGE@
-PACKAGE_BUGREPORT = @PACKAGE_BUGREPORT@
-PACKAGE_NAME = @PACKAGE_NAME@
-PACKAGE_STRING = @PACKAGE_STRING@
-PACKAGE_TARNAME = @PACKAGE_TARNAME@
-PACKAGE_VERSION = @PACKAGE_VERSION@
-PATH_SEPARATOR = @PATH_SEPARATOR@
-PERL = @PERL@
-POSUB = @POSUB@
-POW_LIB = @POW_LIB@
-PRIPTR_PREFIX = @PRIPTR_PREFIX@
-PRI_MACROS_BROKEN = @PRI_MACROS_BROKEN@
-PTRDIFF_T_SUFFIX = @PTRDIFF_T_SUFFIX@
-RANLIB = @RANLIB@
-REPLACE_CHOWN = @REPLACE_CHOWN@
-REPLACE_FCHDIR = @REPLACE_FCHDIR@
-REPLACE_FPRINTF = @REPLACE_FPRINTF@
-REPLACE_GETCWD = @REPLACE_GETCWD@
-REPLACE_GETTIMEOFDAY = @REPLACE_GETTIMEOFDAY@
-REPLACE_LOCALTIME_R = @REPLACE_LOCALTIME_R@
-REPLACE_MKSTEMP = @REPLACE_MKSTEMP@
-REPLACE_NANOSLEEP = @REPLACE_NANOSLEEP@
-REPLACE_PRINTF = @REPLACE_PRINTF@
-REPLACE_SNPRINTF = @REPLACE_SNPRINTF@
-REPLACE_SPRINTF = @REPLACE_SPRINTF@
-REPLACE_STRPTIME = @REPLACE_STRPTIME@
-REPLACE_TIMEGM = @REPLACE_TIMEGM@
-REPLACE_VFPRINTF = @REPLACE_VFPRINTF@
-REPLACE_VPRINTF = @REPLACE_VPRINTF@
-REPLACE_VSNPRINTF = @REPLACE_VSNPRINTF@
-REPLACE_VSPRINTF = @REPLACE_VSPRINTF@
-SEQ_LIBM = @SEQ_LIBM@
-SET_MAKE = @SET_MAKE@
-SHELL = @SHELL@
-SIG_ATOMIC_T_SUFFIX = @SIG_ATOMIC_T_SUFFIX@
-SIZE_T_SUFFIX = @SIZE_T_SUFFIX@
-STDBOOL_H = @STDBOOL_H@
-STDINT_H = @STDINT_H@
-STRIP = @STRIP@
-SYS_SOCKET_H = @SYS_SOCKET_H@
-SYS_STAT_H = @SYS_STAT_H@
-SYS_TIME_H = @SYS_TIME_H@
-SYS_TIME_H_DEFINES_STRUCT_TIMESPEC = @SYS_TIME_H_DEFINES_STRUCT_TIMESPEC@
-TIME_H_DEFINES_STRUCT_TIMESPEC = @TIME_H_DEFINES_STRUCT_TIMESPEC@
-U = @U@
-USE_NLS = @USE_NLS@
-VERSION = @VERSION@
-WCHAR_H = @WCHAR_H@
-WCHAR_T_SUFFIX = @WCHAR_T_SUFFIX@
-WCTYPE_H = @WCTYPE_H@
-WINT_T_SUFFIX = @WINT_T_SUFFIX@
-XGETTEXT = @XGETTEXT@
-XGETTEXT_015 = @XGETTEXT_015@
-YACC = @YACC@
-YFLAGS = @YFLAGS@
-abs_builddir = @abs_builddir@
-abs_srcdir = @abs_srcdir@
-abs_top_builddir = @abs_top_builddir@
-abs_top_srcdir = @abs_top_srcdir@
-ac_ct_CC = @ac_ct_CC@
-am__include = @am__include@
-am__leading_dot = @am__leading_dot@
-am__quote = @am__quote@
-am__tar = @am__tar@
-am__untar = @am__untar@
-bindir = @bindir@
-build = @build@
-build_alias = @build_alias@
-build_cpu = @build_cpu@
-build_os = @build_os@
-build_vendor = @build_vendor@
-builddir = @builddir@
-datadir = @datadir@
-datarootdir = @datarootdir@
-docdir = @docdir@
-dvidir = @dvidir@
-exec_prefix = @exec_prefix@
-gl_LIBOBJS = @gl_LIBOBJS@
-gl_LTLIBOBJS = @gl_LTLIBOBJS@
-host = @host@
-host_alias = @host_alias@
-host_cpu = @host_cpu@
-host_os = @host_os@
-host_vendor = @host_vendor@
-htmldir = @htmldir@
-includedir = @includedir@
-infodir = @infodir@
-install_sh = @install_sh@
-libdir = @libdir@
-libexecdir = @libexecdir@
-localedir = @localedir@
-localstatedir = @localstatedir@
-mandir = @mandir@
-mkdir_p = @mkdir_p@
-oldincludedir = @oldincludedir@
-pdfdir = @pdfdir@
-prefix = @prefix@
-program_transform_name = @program_transform_name@
-psdir = @psdir@
-sbindir = @sbindir@
-sharedstatedir = @sharedstatedir@
-srcdir = @srcdir@
-sysconfdir = @sysconfdir@
-target_alias = @target_alias@
-top_builddir = @top_builddir@
-top_srcdir = @top_srcdir@
-x = join
-explicit =
-maint_gen = 1a.I1 1a.I2 1a.X 1b.I1 1b.I2 1b.X 1c.I1 1c.I2 1c.X 1d.I1 1d.I2 \
-1d.X 1e.I1 1e.I2 1e.X 1f.I1 1f.I2 1f.X 2a.I1 2a.I2 2a.X 2b.I1 2b.I2 2b.X \
-2c.I1 2c.I2 2c.X 3a.I1 3a.I2 3a.X 4a.I1 4a.I2 4a.X 4b.I1 4b.I2 4b.X 4c.I1 \
-4c.I2 4c.X 4d.I1 4d.I2 4d.X 4e.I1 4e.I2 4e.X 5a.I1 5a.I2 5a.X 5b.I1 5b.I2 \
-5b.X 5c.I1 5c.I2 5c.X 5d.I1 5d.I2 5d.X 5e.I1 5e.I2 5e.X 5f.I1 5f.I2 5f.X \
-5g.I1 5g.I2 5g.X 5h.I1 5h.I2 5h.X 5i.I1 5i.I2 5i.X 5j.I1 5j.I2 5j.X 5k.I1 \
-5k.I2 5k.X 5l.I1 5l.I2 5l.X 5m.I1 5m.I2 5m.X 6a.I1 6a.I2 6a.X 6b.I1 6b.I2 \
-6b.X 6c.I1 6c.I2 6c.X 7a.I1 7a.I2 7a.X 8a.I1 8a.I2 8a.X 8b.I1 8b.I2 8b.X \
-9a.I1 9a.I2 9a.X trailing-sp.I1 trailing-sp.I2 trailing-sp.X sp-vs-blank.I1 \
-sp-vs-blank.I2 sp-vs-blank.X 8-bit-t.I1 8-bit-t.I2 8-bit-t.X bigfield.I1 \
-bigfield.I2 bigfield.X invalid-j.X
-
-run_gen = 1a.O 1a.E 1b.O 1b.E 1c.O 1c.E 1d.O 1d.E 1e.O 1e.E 1f.O 1f.E 2a.O \
-2a.E 2b.O 2b.E 2c.O 2c.E 3a.O 3a.E 4a.O 4a.E 4b.O 4b.E 4c.O 4c.E 4d.O 4d.E \
-4e.O 4e.E 5a.O 5a.E 5b.O 5b.E 5c.O 5c.E 5d.O 5d.E 5e.O 5e.E 5f.O 5f.E 5g.O \
-5g.E 5h.O 5h.E 5i.O 5i.E 5j.O 5j.E 5k.O 5k.E 5l.O 5l.E 5m.O 5m.E 6a.O 6a.E \
-6b.O 6b.E 6c.O 6c.E 7a.O 7a.E 8a.O 8a.E 8b.O 8b.E 9a.O 9a.E trailing-sp.O \
-trailing-sp.E sp-vs-blank.O sp-vs-blank.E 8-bit-t.O 8-bit-t.E bigfield.O \
-bigfield.E invalid-j.O invalid-j.E
-
-EXTRA_DIST = Test.pm $x-tests $(explicit) $(maint_gen)
-noinst_SCRIPTS = $x-tests
-TESTS_ENVIRONMENT = \
- CU_TEST_NAME=`basename $(abs_srcdir)`,$$tst \
- PATH="$(VG_PATH_PREFIX)`pwd`/../../src$(PATH_SEPARATOR)$$PATH"
-
-editpl = sed -e 's,@''PERL''@,$(PERL),g' -e 's,@''srcdir''@,$(srcdir),g'
-TESTS = $x-tests
-mk_script = $(srcdir)/../mk-script
-MAINTAINERCLEANFILES = $x-tests $(maint_gen)
-CLEANFILES = $(run_gen)
-all: all-am
-
-.SUFFIXES:
-$(srcdir)/Makefile.in: $(srcdir)/Makefile.am $(am__configure_deps)
- @for dep in $?; do \
- case '$(am__configure_deps)' in \
- *$$dep*) \
- cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh \
- && exit 0; \
- exit 1;; \
- esac; \
- done; \
- echo ' cd $(top_srcdir) && $(AUTOMAKE) --gnu tests/join/Makefile'; \
- cd $(top_srcdir) && \
- $(AUTOMAKE) --gnu tests/join/Makefile
-.PRECIOUS: Makefile
-Makefile: $(srcdir)/Makefile.in $(top_builddir)/config.status
- @case '$?' in \
- *config.status*) \
- cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh;; \
- *) \
- echo ' cd $(top_builddir) && $(SHELL) ./config.status $(subdir)/$@ $(am__depfiles_maybe)'; \
- cd $(top_builddir) && $(SHELL) ./config.status $(subdir)/$@ $(am__depfiles_maybe);; \
- esac;
-
-$(top_builddir)/config.status: $(top_srcdir)/configure $(CONFIG_STATUS_DEPENDENCIES)
- cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh
-
-$(top_srcdir)/configure: $(am__configure_deps)
- cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh
-$(ACLOCAL_M4): $(am__aclocal_m4_deps)
- cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh
-tags: TAGS
-TAGS:
-
-ctags: CTAGS
-CTAGS:
-
-
-check-TESTS: $(TESTS)
- @failed=0; all=0; xfail=0; xpass=0; skip=0; ws='[ ]'; \
- srcdir=$(srcdir); export srcdir; \
- list=' $(TESTS) '; \
- if test -n "$$list"; then \
- for tst in $$list; do \
- if test -f ./$$tst; then dir=./; \
- elif test -f $$tst; then dir=; \
- else dir="$(srcdir)/"; fi; \
- if $(TESTS_ENVIRONMENT) $${dir}$$tst; then \
- all=`expr $$all + 1`; \
- case " $(XFAIL_TESTS) " in \
- *$$ws$$tst$$ws*) \
- xpass=`expr $$xpass + 1`; \
- failed=`expr $$failed + 1`; \
- echo "XPASS: $$tst"; \
- ;; \
- *) \
- echo "PASS: $$tst"; \
- ;; \
- esac; \
- elif test $$? -ne 77; then \
- all=`expr $$all + 1`; \
- case " $(XFAIL_TESTS) " in \
- *$$ws$$tst$$ws*) \
- xfail=`expr $$xfail + 1`; \
- echo "XFAIL: $$tst"; \
- ;; \
- *) \
- failed=`expr $$failed + 1`; \
- echo "FAIL: $$tst"; \
- ;; \
- esac; \
- else \
- skip=`expr $$skip + 1`; \
- echo "SKIP: $$tst"; \
- fi; \
- done; \
- if test "$$failed" -eq 0; then \
- if test "$$xfail" -eq 0; then \
- banner="All $$all tests passed"; \
- else \
- banner="All $$all tests behaved as expected ($$xfail expected failures)"; \
- fi; \
- else \
- if test "$$xpass" -eq 0; then \
- banner="$$failed of $$all tests failed"; \
- else \
- banner="$$failed of $$all tests did not behave as expected ($$xpass unexpected passes)"; \
- fi; \
- fi; \
- dashes="$$banner"; \
- skipped=""; \
- if test "$$skip" -ne 0; then \
- skipped="($$skip tests were not run)"; \
- test `echo "$$skipped" | wc -c` -le `echo "$$banner" | wc -c` || \
- dashes="$$skipped"; \
- fi; \
- report=""; \
- if test "$$failed" -ne 0 && test -n "$(PACKAGE_BUGREPORT)"; then \
- report="Please report to $(PACKAGE_BUGREPORT)"; \
- test `echo "$$report" | wc -c` -le `echo "$$banner" | wc -c` || \
- dashes="$$report"; \
- fi; \
- dashes=`echo "$$dashes" | sed s/./=/g`; \
- echo "$$dashes"; \
- echo "$$banner"; \
- test -z "$$skipped" || echo "$$skipped"; \
- test -z "$$report" || echo "$$report"; \
- echo "$$dashes"; \
- test "$$failed" -eq 0; \
- else :; fi
-
-distdir: $(DISTFILES)
- @srcdirstrip=`echo "$(srcdir)" | sed 's/[].[^$$\\*]/\\\\&/g'`; \
- topsrcdirstrip=`echo "$(top_srcdir)" | sed 's/[].[^$$\\*]/\\\\&/g'`; \
- list='$(DISTFILES)'; \
- dist_files=`for file in $$list; do echo $$file; done | \
- sed -e "s|^$$srcdirstrip/||;t" \
- -e "s|^$$topsrcdirstrip/|$(top_builddir)/|;t"`; \
- case $$dist_files in \
- */*) $(MKDIR_P) `echo "$$dist_files" | \
- sed '/\//!d;s|^|$(distdir)/|;s,/[^/]*$$,,' | \
- sort -u` ;; \
- esac; \
- for file in $$dist_files; do \
- if test -f $$file || test -d $$file; then d=.; else d=$(srcdir); fi; \
- if test -d $$d/$$file; then \
- dir=`echo "/$$file" | sed -e 's,/[^/]*$$,,'`; \
- if test -d $(srcdir)/$$file && test $$d != $(srcdir); then \
- cp -pR $(srcdir)/$$file $(distdir)$$dir || exit 1; \
- fi; \
- cp -pR $$d/$$file $(distdir)$$dir || exit 1; \
- else \
- test -f $(distdir)/$$file \
- || cp -p $$d/$$file $(distdir)/$$file \
- || exit 1; \
- fi; \
- done
-check-am: all-am
- $(MAKE) $(AM_MAKEFLAGS) check-TESTS
-check: check-am
-all-am: Makefile $(SCRIPTS)
-installdirs:
-install: install-am
-install-exec: install-exec-am
-install-data: install-data-am
-uninstall: uninstall-am
-
-install-am: all-am
- @$(MAKE) $(AM_MAKEFLAGS) install-exec-am install-data-am
-
-installcheck: installcheck-am
-install-strip:
- $(MAKE) $(AM_MAKEFLAGS) INSTALL_PROGRAM="$(INSTALL_STRIP_PROGRAM)" \
- install_sh_PROGRAM="$(INSTALL_STRIP_PROGRAM)" INSTALL_STRIP_FLAG=-s \
- `test -z '$(STRIP)' || \
- echo "INSTALL_PROGRAM_ENV=STRIPPROG='$(STRIP)'"` install
-mostlyclean-generic:
-
-clean-generic:
- -test -z "$(CLEANFILES)" || rm -f $(CLEANFILES)
-
-distclean-generic:
- -test -z "$(CONFIG_CLEAN_FILES)" || rm -f $(CONFIG_CLEAN_FILES)
-
-maintainer-clean-generic:
- @echo "This command is intended for maintainers to use"
- @echo "it deletes files that may require special tools to rebuild."
- -test -z "$(MAINTAINERCLEANFILES)" || rm -f $(MAINTAINERCLEANFILES)
-clean: clean-am
-
-clean-am: clean-generic mostlyclean-am
-
-distclean: distclean-am
- -rm -f Makefile
-distclean-am: clean-am distclean-generic
-
-dvi: dvi-am
-
-dvi-am:
-
-html: html-am
-
-info: info-am
-
-info-am:
-
-install-data-am:
-
-install-dvi: install-dvi-am
-
-install-exec-am:
-
-install-html: install-html-am
-
-install-info: install-info-am
-
-install-man:
-
-install-pdf: install-pdf-am
-
-install-ps: install-ps-am
-
-installcheck-am:
-
-maintainer-clean: maintainer-clean-am
- -rm -f Makefile
-maintainer-clean-am: distclean-am maintainer-clean-generic
-
-mostlyclean: mostlyclean-am
-
-mostlyclean-am: mostlyclean-generic
-
-pdf: pdf-am
-
-pdf-am:
-
-ps: ps-am
-
-ps-am:
-
-uninstall-am:
-
-.MAKE: install-am install-strip
-
-.PHONY: all all-am check check-TESTS check-am clean clean-generic \
- distclean distclean-generic distdir dvi dvi-am html html-am \
- info info-am install install-am install-data install-data-am \
- install-dvi install-dvi-am install-exec install-exec-am \
- install-html install-html-am install-info install-info-am \
- install-man install-pdf install-pdf-am install-ps \
- install-ps-am install-strip installcheck installcheck-am \
- installdirs maintainer-clean maintainer-clean-generic \
- mostlyclean mostlyclean-generic pdf pdf-am ps ps-am uninstall \
- uninstall-am
-
-$(srcdir)/$x-tests: $(mk_script) Test.pm Makefile.am
- test '$x' = test && prog=../../src/$x || prog=$x; \
- $(PERL) -I$(srcdir) -w -- $(mk_script) $(srcdir) $$prog > $@.n
- mv $@.n $@
- chmod 755 $@
-
-check: $(maint_gen)
-
-$(srcdir)/Makefile.am: ../Makefile.am.in Test.pm $(mk_script)
- rm -f $@ $@t
- sed -n '1,/^##test-files-begin/p' $(srcdir)/../Makefile.am.in > $@t
- tool=`echo $(subdir)|sed 's/^tests.//;s/-test//'`; \
- echo "x = $$tool" >> $@t
- $(PERL) -I$(srcdir) -w -- $(mk_script) $(srcdir) --list >> $@t
- sed -n '/^##test-files-end/,$$p' $(srcdir)/../Makefile.am.in >> $@t
- chmod -w $@t
- mv $@t $@
-# Tell versions [3.59,3.63) of GNU make to not export all variables.
-# Otherwise a system limit (for SysV at least) may be exceeded.
-.NOEXPORT:
diff --git a/tests/join/TODO b/tests/join/TODO
deleted file mode 100644
index 265ea47..0000000
--- a/tests/join/TODO
+++ /dev/null
@@ -1,2 +0,0 @@
-rename tr-tests
-make sure all test_names are distinct!
diff --git a/tests/join/Test.pm b/tests/join/Test.pm
deleted file mode 100644
index 3d60ce3..0000000
--- a/tests/join/Test.pm
+++ /dev/null
@@ -1,153 +0,0 @@
-# Test "join".
-
-# Copyright (C) 1996, 1999, 2000, 2003, 2004 Free Software Foundation, Inc.
-
-# This program is free software; you can redistribute it and/or modify
-# it under the terms of the GNU General Public License as published by
-# the Free Software Foundation; either version 2 of the License, or
-# (at your option) any later version.
-
-# This program is distributed in the hope that it will be useful,
-# but WITHOUT ANY WARRANTY; without even the implied warranty of
-# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
-# GNU General Public License for more details.
-
-# You should have received a copy of the GNU General Public License
-# along with this program; if not, write to the Free Software
-# Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA
-# 02110-1301, USA.
-
-package Test;
-require 5.002;
-use strict;
-
-my $delim = chr 0247;
-sub t_subst ($)
-{
- (my $s = $_[0]) =~ s/:/$delim/g;
- return $s;
-}
-
-my @tv = (
-# test name
-# flags file-1 file-2 expected output expected return code
-#
-['1a', '-a1', ["a 1\n", "b\n"], "a 1\n", 0],
-['1b', '-a2', ["a 1\n", "b\n"], "b\n", 0], # Got "\n"
-['1c', '-a1 -a2', ["a 1\n", "b\n"], "a 1\nb\n", 0], # Got "a 1\n\n"
-['1d', '-a1', ["a 1\nb\n", "b\n"], "a 1\nb\n", 0],
-['1e', '-a2', ["a 1\nb\n", "b\n"], "b\n", 0],
-['1f', '-a2', ["b\n", "a\nb\n"], "a\nb\n", 0],
-
-['2a', '-a1 -e .', ["a\nb\nc\n", "a x y\nb\nc\n"], "a x y\nb\nc\n", 0],
-['2b', '-a1 -e . -o 2.1,2.2,2.3', ["a\nb\nc\n", "a x y\nb\nc\n"],
- "a x y\nb . .\nc . .\n", 0],
-['2c', '-a1 -e . -o 2.1,2.2,2.3', ["a\nb\nc\nd\n", "a x y\nb\nc\n"],
- "a x y\nb . .\nc . .\n. . .\n", 0],
-
-['3a', '-t:', ["a:1\nb:1\n", "a:2:\nb:2:\n"], "a:1:2:\nb:1:2:\n", 0],
-
-# Just like -a1 and -a2 when there are no pairable lines
-['4a', '-v 1', ["a 1\n", "b\n"], "a 1\n", 0],
-['4b', '-v 2', ["a 1\n", "b\n"], "b\n", 0],
-
-['4c', '-v 1', ["a 1\nb\n", "b\n"], "a 1\n", 0],
-['4d', '-v 2', ["a 1\nb\n", "b\n"], "", 0],
-['4e', '-v 2', ["b\n", "a 1\nb\n"], "a 1\n", 0],
-['5a', '-a1 -e - -o 1.1,2.2',
- ["a 1\nb 2\n", "a 11\nb\n"], "a 11\nb -\n", 0],
-['5b', '-a1 -e - -o 1.1,2.2',
- ["apr 15\naug 20\ndec 18\nfeb 05\n", "apr 06\naug 14\ndate\nfeb 15"],
- "apr 06\naug 14\ndec -\nfeb 15\n", 0],
-['5c', '-a1 -e - -o 1.1,2.2',
- ["aug 20\ndec 18\n", "aug 14\ndate\nfeb 15"],
- "aug 14\ndec -\n", 0],
-['5d', '-a1 -e - -o 1.1,2.2',
- ["dec 18\n", ""], "dec -\n", 0],
-['5e', '-a2 -e - -o 1.1,2.2',
- ["apr 15\naug 20\ndec 18\nfeb 05\n", "apr 06\naug 14\ndate\nfeb 15\n"],
- "apr 06\naug 14\n- -\nfeb 15\n", 0],
-['5f', '-a2 -e - -o 2.2,1.1',
- ["apr 15\naug 20\ndec 18\nfeb 05\n", "apr 06\naug 14\ndate\nfeb 15\n"],
- "06 apr\n14 aug\n- -\n15 feb\n", 0],
-['5g', '-a1 -e - -o 2.2,1.1',
- ["apr 15\naug 20\ndec 18\nfeb 05\n", "apr 06\naug 14\ndate\nfeb 15\n"],
- "06 apr\n14 aug\n- dec\n15 feb\n", 0],
-
-['5h', '-a1 -e - -o 2.2,1.1',
- ["apr 15\naug 20\ndec 18\nfeb 05\n", "apr 06\naug 14\ndate\n"],
- "06 apr\n14 aug\n- dec\n- feb\n", 0],
-['5i', '-a1 -e - -o 1.1,2.2',
- ["apr 15\naug 20\ndec 18\nfeb 05\n", "apr 06\naug 14\ndate\n"],
- "apr 06\naug 14\ndec -\nfeb -\n", 0],
-
-['5j', '-a2 -e - -o 2.2,1.1',
- ["apr 15\naug 20\ndec 18\nfeb 05\n", "apr 06\naug 14\ndate\n"],
- "06 apr\n14 aug\n- -\n", 0],
-['5k', '-a2 -e - -o 2.2,1.1',
- ["apr 15\naug 20\ndec 18\nfeb 05\n", "apr 06\naug 14\ndate\n"],
- "06 apr\n14 aug\n- -\n", 0],
-
-['5l', '-a1 -e - -o 2.2,1.1',
- ["apr 15\naug 20\ndec 18\n", "apr 06\naug 14\ndate\nfeb 15\n"],
- "06 apr\n14 aug\n- dec\n", 0],
-['5m', '-a2 -e - -o 2.2,1.1',
- ["apr 15\naug 20\ndec 18\n", "apr 06\naug 14\ndate\nfeb 15\n"],
- "06 apr\n14 aug\n- -\n15 -\n", 0],
-
-['6a', '-e -',
- ["a 1\nb 2\nd 4\n", "a 21\nb 22\nc 23\nf 26\n"],
- "a 1 21\nb 2 22\n", 0],
-['6b', '-a1 -e -',
- ["a 1\nb 2\nd 4\n", "a 21\nb 22\nc 23\nf 26\n"],
- "a 1 21\nb 2 22\nd 4\n", 0],
-['6c', '-a1 -e -',
- ["a 21\nb 22\nc 23\nf 26\n", "a 1\nb 2\nd 4\n"],
- "a 21 1\nb 22 2\nc 23\nf 26\n", 0],
-
-['7a', '-a1 -e . -o 2.7',
- ["a\nb\nc\n", "a x y\nb\nc\n"], ".\n.\n.\n", 0],
-
-['8a', '-a1 -e . -o 0,1.2',
- ["a\nb\nc\nd G\n", "a x y\nb\nc\ne\n"],
- "a .\nb .\nc .\nd G\n", 0],
-['8b', '-a1 -a2 -e . -o 0,1.2',
- ["a\nb\nc\nd G\n", "a x y\nb\nc\ne\n"],
- "a .\nb .\nc .\nd G\ne .\n", 0],
-
-# From David Dyck
-['9a', '', [" a 1\n b 2\n", " a Y\n b Z\n"], "a 1 Y\nb 2 Z\n", 0],
-
-# From Tim Smithers: fixed in 1.22l
-['trailing-sp', '-t: -1 1 -2 1', ["a:x \n", "a:y \n"], "a:x :y \n", 0],
-
-# From Paul Eggert: fixed in 1.22n
-['sp-vs-blank', '', ["\f 1\n", "\f 2\n"], "\f 1 2\n", 0],
-
-# From Paul Eggert: fixed in 1.22n (this would fail on Solaris7,
-# with LC_ALL set to en_US).
-# Unfortunately, that Solaris7's en_US local folds case (making
-# the first input file sorted) is not portable, so this test would
-# fail on e.g. Linux systems, because the input to join isn't sorted.
-# ['lc-collate', '', ["a 1a\nB 1B\n", "B 2B\n"], "B 1B 2B\n", 0],
-
-# Based on a report from Antonio Rendas. Fixed in 2.0.9.
-['8-bit-t', t_subst "-t:",
- [t_subst "a:1\nb:1\n", t_subst "a:2:\nb:2:\n"],
- t_subst "a:1:2:\nb:1:2:\n", 0],
-
-['bigfield', '-1 340282366920938463463374607431768211456 -2 2',
- ["a\n", "b\n"], " a b\n", 0],
-
-# FIXME: change this to ensure the diagnostic makes sense
-['invalid-j', '-j x', {}, "", 1],
-
-);
-
-
-sub test_vector
-{
- return @tv;
-}
-
-1;
diff --git a/tests/join/bigfield.I1 b/tests/join/bigfield.I1
deleted file mode 100644
index 7898192..0000000
--- a/tests/join/bigfield.I1
+++ /dev/null
@@ -1 +0,0 @@
-a
diff --git a/tests/join/bigfield.I2 b/tests/join/bigfield.I2
deleted file mode 100644
index 6178079..0000000
--- a/tests/join/bigfield.I2
+++ /dev/null
@@ -1 +0,0 @@
-b
diff --git a/tests/join/bigfield.X b/tests/join/bigfield.X
deleted file mode 100644
index bb5aeea..0000000
--- a/tests/join/bigfield.X
+++ /dev/null
@@ -1 +0,0 @@
- a b
diff --git a/tests/join/invalid-j.X b/tests/join/invalid-j.X
deleted file mode 100644
index e69de29..0000000
--- a/tests/join/invalid-j.X
+++ /dev/null
diff --git a/tests/join/join-tests b/tests/join/join-tests
deleted file mode 100755
index 1c49c21..0000000
--- a/tests/join/join-tests
+++ /dev/null
@@ -1,747 +0,0 @@
-#! /bin/sh
-# This script was generated automatically by mk-script.
-case $# in
- 0) xx='join';;
- *) xx="$1";;
-esac
-test "$VERBOSE" && echo=echo || echo=:
-$echo testing program: $xx
-errors=0
-test "$srcdir" || srcdir=.
-test "$VERBOSE" && $xx --version 2> /dev/null
-
-# Make sure we get English translations.
-LANGUAGE=C
-export LANGUAGE
-LC_ALL=C
-export LC_ALL
-LANG=C
-export LANG
-
-$xx -a1 $srcdir/1a.I1 $srcdir/1a.I2 > 1a.O 2> 1a.E
-code=$?
-if test $code != 0; then
- $echo "Test 1a failed: $xx return code $code differs from expected value 0" 1>&2
- errors=`expr $errors + 1`
-else
- cmp 1a.O $srcdir/1a.X > /dev/null 2>&1
- case $? in
- 0) if test "$VERBOSE"; then $echo "passed 1a"; fi;;
- 1) $echo "Test 1a failed: files 1a.O and $srcdir/1a.X differ" 1>&2
- (diff -c 1a.O $srcdir/1a.X) 2> /dev/null
- errors=`expr $errors + 1`;;
- 2) $echo "Test 1a may have failed." 1>&2
- $echo The command "cmp 1a.O $srcdir/1a.X" failed. 1>&2
- errors=`expr $errors + 1`;;
- esac
-fi
-test -s 1a.E || rm -f 1a.E
-$xx -a2 $srcdir/1b.I1 $srcdir/1b.I2 > 1b.O 2> 1b.E
-code=$?
-if test $code != 0; then
- $echo "Test 1b failed: $xx return code $code differs from expected value 0" 1>&2
- errors=`expr $errors + 1`
-else
- cmp 1b.O $srcdir/1b.X > /dev/null 2>&1
- case $? in
- 0) if test "$VERBOSE"; then $echo "passed 1b"; fi;;
- 1) $echo "Test 1b failed: files 1b.O and $srcdir/1b.X differ" 1>&2
- (diff -c 1b.O $srcdir/1b.X) 2> /dev/null
- errors=`expr $errors + 1`;;
- 2) $echo "Test 1b may have failed." 1>&2
- $echo The command "cmp 1b.O $srcdir/1b.X" failed. 1>&2
- errors=`expr $errors + 1`;;
- esac
-fi
-test -s 1b.E || rm -f 1b.E
-$xx -a1 -a2 $srcdir/1c.I1 $srcdir/1c.I2 > 1c.O 2> 1c.E
-code=$?
-if test $code != 0; then
- $echo "Test 1c failed: $xx return code $code differs from expected value 0" 1>&2
- errors=`expr $errors + 1`
-else
- cmp 1c.O $srcdir/1c.X > /dev/null 2>&1
- case $? in
- 0) if test "$VERBOSE"; then $echo "passed 1c"; fi;;
- 1) $echo "Test 1c failed: files 1c.O and $srcdir/1c.X differ" 1>&2
- (diff -c 1c.O $srcdir/1c.X) 2> /dev/null
- errors=`expr $errors + 1`;;
- 2) $echo "Test 1c may have failed." 1>&2
- $echo The command "cmp 1c.O $srcdir/1c.X" failed. 1>&2
- errors=`expr $errors + 1`;;
- esac
-fi
-test -s 1c.E || rm -f 1c.E
-$xx -a1 $srcdir/1d.I1 $srcdir/1d.I2 > 1d.O 2> 1d.E
-code=$?
-if test $code != 0; then
- $echo "Test 1d failed: $xx return code $code differs from expected value 0" 1>&2
- errors=`expr $errors + 1`
-else
- cmp 1d.O $srcdir/1d.X > /dev/null 2>&1
- case $? in
- 0) if test "$VERBOSE"; then $echo "passed 1d"; fi;;
- 1) $echo "Test 1d failed: files 1d.O and $srcdir/1d.X differ" 1>&2
- (diff -c 1d.O $srcdir/1d.X) 2> /dev/null
- errors=`expr $errors + 1`;;
- 2) $echo "Test 1d may have failed." 1>&2
- $echo The command "cmp 1d.O $srcdir/1d.X" failed. 1>&2
- errors=`expr $errors + 1`;;
- esac
-fi
-test -s 1d.E || rm -f 1d.E
-$xx -a2 $srcdir/1e.I1 $srcdir/1e.I2 > 1e.O 2> 1e.E
-code=$?
-if test $code != 0; then
- $echo "Test 1e failed: $xx return code $code differs from expected value 0" 1>&2
- errors=`expr $errors + 1`
-else
- cmp 1e.O $srcdir/1e.X > /dev/null 2>&1
- case $? in
- 0) if test "$VERBOSE"; then $echo "passed 1e"; fi;;
- 1) $echo "Test 1e failed: files 1e.O and $srcdir/1e.X differ" 1>&2
- (diff -c 1e.O $srcdir/1e.X) 2> /dev/null
- errors=`expr $errors + 1`;;
- 2) $echo "Test 1e may have failed." 1>&2
- $echo The command "cmp 1e.O $srcdir/1e.X" failed. 1>&2
- errors=`expr $errors + 1`;;
- esac
-fi
-test -s 1e.E || rm -f 1e.E
-$xx -a2 $srcdir/1f.I1 $srcdir/1f.I2 > 1f.O 2> 1f.E
-code=$?
-if test $code != 0; then
- $echo "Test 1f failed: $xx return code $code differs from expected value 0" 1>&2
- errors=`expr $errors + 1`
-else
- cmp 1f.O $srcdir/1f.X > /dev/null 2>&1
- case $? in
- 0) if test "$VERBOSE"; then $echo "passed 1f"; fi;;
- 1) $echo "Test 1f failed: files 1f.O and $srcdir/1f.X differ" 1>&2
- (diff -c 1f.O $srcdir/1f.X) 2> /dev/null
- errors=`expr $errors + 1`;;
- 2) $echo "Test 1f may have failed." 1>&2
- $echo The command "cmp 1f.O $srcdir/1f.X" failed. 1>&2
- errors=`expr $errors + 1`;;
- esac
-fi
-test -s 1f.E || rm -f 1f.E
-$xx -a1 -e . $srcdir/2a.I1 $srcdir/2a.I2 > 2a.O 2> 2a.E
-code=$?
-if test $code != 0; then
- $echo "Test 2a failed: $xx return code $code differs from expected value 0" 1>&2
- errors=`expr $errors + 1`
-else
- cmp 2a.O $srcdir/2a.X > /dev/null 2>&1
- case $? in
- 0) if test "$VERBOSE"; then $echo "passed 2a"; fi;;
- 1) $echo "Test 2a failed: files 2a.O and $srcdir/2a.X differ" 1>&2
- (diff -c 2a.O $srcdir/2a.X) 2> /dev/null
- errors=`expr $errors + 1`;;
- 2) $echo "Test 2a may have failed." 1>&2
- $echo The command "cmp 2a.O $srcdir/2a.X" failed. 1>&2
- errors=`expr $errors + 1`;;
- esac
-fi
-test -s 2a.E || rm -f 2a.E
-$xx -a1 -e . -o 2.1,2.2,2.3 $srcdir/2b.I1 $srcdir/2b.I2 > 2b.O 2> 2b.E
-code=$?
-if test $code != 0; then
- $echo "Test 2b failed: $xx return code $code differs from expected value 0" 1>&2
- errors=`expr $errors + 1`
-else
- cmp 2b.O $srcdir/2b.X > /dev/null 2>&1
- case $? in
- 0) if test "$VERBOSE"; then $echo "passed 2b"; fi;;
- 1) $echo "Test 2b failed: files 2b.O and $srcdir/2b.X differ" 1>&2
- (diff -c 2b.O $srcdir/2b.X) 2> /dev/null
- errors=`expr $errors + 1`;;
- 2) $echo "Test 2b may have failed." 1>&2
- $echo The command "cmp 2b.O $srcdir/2b.X" failed. 1>&2
- errors=`expr $errors + 1`;;
- esac
-fi
-test -s 2b.E || rm -f 2b.E
-$xx -a1 -e . -o 2.1,2.2,2.3 $srcdir/2c.I1 $srcdir/2c.I2 > 2c.O 2> 2c.E
-code=$?
-if test $code != 0; then
- $echo "Test 2c failed: $xx return code $code differs from expected value 0" 1>&2
- errors=`expr $errors + 1`
-else
- cmp 2c.O $srcdir/2c.X > /dev/null 2>&1
- case $? in
- 0) if test "$VERBOSE"; then $echo "passed 2c"; fi;;
- 1) $echo "Test 2c failed: files 2c.O and $srcdir/2c.X differ" 1>&2
- (diff -c 2c.O $srcdir/2c.X) 2> /dev/null
- errors=`expr $errors + 1`;;
- 2) $echo "Test 2c may have failed." 1>&2
- $echo The command "cmp 2c.O $srcdir/2c.X" failed. 1>&2
- errors=`expr $errors + 1`;;
- esac
-fi
-test -s 2c.E || rm -f 2c.E
-$xx -t: $srcdir/3a.I1 $srcdir/3a.I2 > 3a.O 2> 3a.E
-code=$?
-if test $code != 0; then
- $echo "Test 3a failed: $xx return code $code differs from expected value 0" 1>&2
- errors=`expr $errors + 1`
-else
- cmp 3a.O $srcdir/3a.X > /dev/null 2>&1
- case $? in
- 0) if test "$VERBOSE"; then $echo "passed 3a"; fi;;
- 1) $echo "Test 3a failed: files 3a.O and $srcdir/3a.X differ" 1>&2
- (diff -c 3a.O $srcdir/3a.X) 2> /dev/null
- errors=`expr $errors + 1`;;
- 2) $echo "Test 3a may have failed." 1>&2
- $echo The command "cmp 3a.O $srcdir/3a.X" failed. 1>&2
- errors=`expr $errors + 1`;;
- esac
-fi
-test -s 3a.E || rm -f 3a.E
-$xx -v 1 $srcdir/4a.I1 $srcdir/4a.I2 > 4a.O 2> 4a.E
-code=$?
-if test $code != 0; then
- $echo "Test 4a failed: $xx return code $code differs from expected value 0" 1>&2
- errors=`expr $errors + 1`
-else
- cmp 4a.O $srcdir/4a.X > /dev/null 2>&1
- case $? in
- 0) if test "$VERBOSE"; then $echo "passed 4a"; fi;;
- 1) $echo "Test 4a failed: files 4a.O and $srcdir/4a.X differ" 1>&2
- (diff -c 4a.O $srcdir/4a.X) 2> /dev/null
- errors=`expr $errors + 1`;;
- 2) $echo "Test 4a may have failed." 1>&2
- $echo The command "cmp 4a.O $srcdir/4a.X" failed. 1>&2
- errors=`expr $errors + 1`;;
- esac
-fi
-test -s 4a.E || rm -f 4a.E
-$xx -v 2 $srcdir/4b.I1 $srcdir/4b.I2 > 4b.O 2> 4b.E
-code=$?
-if test $code != 0; then
- $echo "Test 4b failed: $xx return code $code differs from expected value 0" 1>&2
- errors=`expr $errors + 1`
-else
- cmp 4b.O $srcdir/4b.X > /dev/null 2>&1
- case $? in
- 0) if test "$VERBOSE"; then $echo "passed 4b"; fi;;
- 1) $echo "Test 4b failed: files 4b.O and $srcdir/4b.X differ" 1>&2
- (diff -c 4b.O $srcdir/4b.X) 2> /dev/null
- errors=`expr $errors + 1`;;
- 2) $echo "Test 4b may have failed." 1>&2
- $echo The command "cmp 4b.O $srcdir/4b.X" failed. 1>&2
- errors=`expr $errors + 1`;;
- esac
-fi
-test -s 4b.E || rm -f 4b.E
-$xx -v 1 $srcdir/4c.I1 $srcdir/4c.I2 > 4c.O 2> 4c.E
-code=$?
-if test $code != 0; then
- $echo "Test 4c failed: $xx return code $code differs from expected value 0" 1>&2
- errors=`expr $errors + 1`
-else
- cmp 4c.O $srcdir/4c.X > /dev/null 2>&1
- case $? in
- 0) if test "$VERBOSE"; then $echo "passed 4c"; fi;;
- 1) $echo "Test 4c failed: files 4c.O and $srcdir/4c.X differ" 1>&2
- (diff -c 4c.O $srcdir/4c.X) 2> /dev/null
- errors=`expr $errors + 1`;;
- 2) $echo "Test 4c may have failed." 1>&2
- $echo The command "cmp 4c.O $srcdir/4c.X" failed. 1>&2
- errors=`expr $errors + 1`;;
- esac
-fi
-test -s 4c.E || rm -f 4c.E
-$xx -v 2 $srcdir/4d.I1 $srcdir/4d.I2 > 4d.O 2> 4d.E
-code=$?
-if test $code != 0; then
- $echo "Test 4d failed: $xx return code $code differs from expected value 0" 1>&2
- errors=`expr $errors + 1`
-else
- cmp 4d.O $srcdir/4d.X > /dev/null 2>&1
- case $? in
- 0) if test "$VERBOSE"; then $echo "passed 4d"; fi;;
- 1) $echo "Test 4d failed: files 4d.O and $srcdir/4d.X differ" 1>&2
- (diff -c 4d.O $srcdir/4d.X) 2> /dev/null
- errors=`expr $errors + 1`;;
- 2) $echo "Test 4d may have failed." 1>&2
- $echo The command "cmp 4d.O $srcdir/4d.X" failed. 1>&2
- errors=`expr $errors + 1`;;
- esac
-fi
-test -s 4d.E || rm -f 4d.E
-$xx -v 2 $srcdir/4e.I1 $srcdir/4e.I2 > 4e.O 2> 4e.E
-code=$?
-if test $code != 0; then
- $echo "Test 4e failed: $xx return code $code differs from expected value 0" 1>&2
- errors=`expr $errors + 1`
-else
- cmp 4e.O $srcdir/4e.X > /dev/null 2>&1
- case $? in
- 0) if test "$VERBOSE"; then $echo "passed 4e"; fi;;
- 1) $echo "Test 4e failed: files 4e.O and $srcdir/4e.X differ" 1>&2
- (diff -c 4e.O $srcdir/4e.X) 2> /dev/null
- errors=`expr $errors + 1`;;
- 2) $echo "Test 4e may have failed." 1>&2
- $echo The command "cmp 4e.O $srcdir/4e.X" failed. 1>&2
- errors=`expr $errors + 1`;;
- esac
-fi
-test -s 4e.E || rm -f 4e.E
-$xx -a1 -e - -o 1.1,2.2 $srcdir/5a.I1 $srcdir/5a.I2 > 5a.O 2> 5a.E
-code=$?
-if test $code != 0; then
- $echo "Test 5a failed: $xx return code $code differs from expected value 0" 1>&2
- errors=`expr $errors + 1`
-else
- cmp 5a.O $srcdir/5a.X > /dev/null 2>&1
- case $? in
- 0) if test "$VERBOSE"; then $echo "passed 5a"; fi;;
- 1) $echo "Test 5a failed: files 5a.O and $srcdir/5a.X differ" 1>&2
- (diff -c 5a.O $srcdir/5a.X) 2> /dev/null
- errors=`expr $errors + 1`;;
- 2) $echo "Test 5a may have failed." 1>&2
- $echo The command "cmp 5a.O $srcdir/5a.X" failed. 1>&2
- errors=`expr $errors + 1`;;
- esac
-fi
-test -s 5a.E || rm -f 5a.E
-$xx -a1 -e - -o 1.1,2.2 $srcdir/5b.I1 $srcdir/5b.I2 > 5b.O 2> 5b.E
-code=$?
-if test $code != 0; then
- $echo "Test 5b failed: $xx return code $code differs from expected value 0" 1>&2
- errors=`expr $errors + 1`
-else
- cmp 5b.O $srcdir/5b.X > /dev/null 2>&1
- case $? in
- 0) if test "$VERBOSE"; then $echo "passed 5b"; fi;;
- 1) $echo "Test 5b failed: files 5b.O and $srcdir/5b.X differ" 1>&2
- (diff -c 5b.O $srcdir/5b.X) 2> /dev/null
- errors=`expr $errors + 1`;;
- 2) $echo "Test 5b may have failed." 1>&2
- $echo The command "cmp 5b.O $srcdir/5b.X" failed. 1>&2
- errors=`expr $errors + 1`;;
- esac
-fi
-test -s 5b.E || rm -f 5b.E
-$xx -a1 -e - -o 1.1,2.2 $srcdir/5c.I1 $srcdir/5c.I2 > 5c.O 2> 5c.E
-code=$?
-if test $code != 0; then
- $echo "Test 5c failed: $xx return code $code differs from expected value 0" 1>&2
- errors=`expr $errors + 1`
-else
- cmp 5c.O $srcdir/5c.X > /dev/null 2>&1
- case $? in
- 0) if test "$VERBOSE"; then $echo "passed 5c"; fi;;
- 1) $echo "Test 5c failed: files 5c.O and $srcdir/5c.X differ" 1>&2
- (diff -c 5c.O $srcdir/5c.X) 2> /dev/null
- errors=`expr $errors + 1`;;
- 2) $echo "Test 5c may have failed." 1>&2
- $echo The command "cmp 5c.O $srcdir/5c.X" failed. 1>&2
- errors=`expr $errors + 1`;;
- esac
-fi
-test -s 5c.E || rm -f 5c.E
-$xx -a1 -e - -o 1.1,2.2 $srcdir/5d.I1 $srcdir/5d.I2 > 5d.O 2> 5d.E
-code=$?
-if test $code != 0; then
- $echo "Test 5d failed: $xx return code $code differs from expected value 0" 1>&2
- errors=`expr $errors + 1`
-else
- cmp 5d.O $srcdir/5d.X > /dev/null 2>&1
- case $? in
- 0) if test "$VERBOSE"; then $echo "passed 5d"; fi;;
- 1) $echo "Test 5d failed: files 5d.O and $srcdir/5d.X differ" 1>&2
- (diff -c 5d.O $srcdir/5d.X) 2> /dev/null
- errors=`expr $errors + 1`;;
- 2) $echo "Test 5d may have failed." 1>&2
- $echo The command "cmp 5d.O $srcdir/5d.X" failed. 1>&2
- errors=`expr $errors + 1`;;
- esac
-fi
-test -s 5d.E || rm -f 5d.E
-$xx -a2 -e - -o 1.1,2.2 $srcdir/5e.I1 $srcdir/5e.I2 > 5e.O 2> 5e.E
-code=$?
-if test $code != 0; then
- $echo "Test 5e failed: $xx return code $code differs from expected value 0" 1>&2
- errors=`expr $errors + 1`
-else
- cmp 5e.O $srcdir/5e.X > /dev/null 2>&1
- case $? in
- 0) if test "$VERBOSE"; then $echo "passed 5e"; fi;;
- 1) $echo "Test 5e failed: files 5e.O and $srcdir/5e.X differ" 1>&2
- (diff -c 5e.O $srcdir/5e.X) 2> /dev/null
- errors=`expr $errors + 1`;;
- 2) $echo "Test 5e may have failed." 1>&2
- $echo The command "cmp 5e.O $srcdir/5e.X" failed. 1>&2
- errors=`expr $errors + 1`;;
- esac
-fi
-test -s 5e.E || rm -f 5e.E
-$xx -a2 -e - -o 2.2,1.1 $srcdir/5f.I1 $srcdir/5f.I2 > 5f.O 2> 5f.E
-code=$?
-if test $code != 0; then
- $echo "Test 5f failed: $xx return code $code differs from expected value 0" 1>&2
- errors=`expr $errors + 1`
-else
- cmp 5f.O $srcdir/5f.X > /dev/null 2>&1
- case $? in
- 0) if test "$VERBOSE"; then $echo "passed 5f"; fi;;
- 1) $echo "Test 5f failed: files 5f.O and $srcdir/5f.X differ" 1>&2
- (diff -c 5f.O $srcdir/5f.X) 2> /dev/null
- errors=`expr $errors + 1`;;
- 2) $echo "Test 5f may have failed." 1>&2
- $echo The command "cmp 5f.O $srcdir/5f.X" failed. 1>&2
- errors=`expr $errors + 1`;;
- esac
-fi
-test -s 5f.E || rm -f 5f.E
-$xx -a1 -e - -o 2.2,1.1 $srcdir/5g.I1 $srcdir/5g.I2 > 5g.O 2> 5g.E
-code=$?
-if test $code != 0; then
- $echo "Test 5g failed: $xx return code $code differs from expected value 0" 1>&2
- errors=`expr $errors + 1`
-else
- cmp 5g.O $srcdir/5g.X > /dev/null 2>&1
- case $? in
- 0) if test "$VERBOSE"; then $echo "passed 5g"; fi;;
- 1) $echo "Test 5g failed: files 5g.O and $srcdir/5g.X differ" 1>&2
- (diff -c 5g.O $srcdir/5g.X) 2> /dev/null
- errors=`expr $errors + 1`;;
- 2) $echo "Test 5g may have failed." 1>&2
- $echo The command "cmp 5g.O $srcdir/5g.X" failed. 1>&2
- errors=`expr $errors + 1`;;
- esac
-fi
-test -s 5g.E || rm -f 5g.E
-$xx -a1 -e - -o 2.2,1.1 $srcdir/5h.I1 $srcdir/5h.I2 > 5h.O 2> 5h.E
-code=$?
-if test $code != 0; then
- $echo "Test 5h failed: $xx return code $code differs from expected value 0" 1>&2
- errors=`expr $errors + 1`
-else
- cmp 5h.O $srcdir/5h.X > /dev/null 2>&1
- case $? in
- 0) if test "$VERBOSE"; then $echo "passed 5h"; fi;;
- 1) $echo "Test 5h failed: files 5h.O and $srcdir/5h.X differ" 1>&2
- (diff -c 5h.O $srcdir/5h.X) 2> /dev/null
- errors=`expr $errors + 1`;;
- 2) $echo "Test 5h may have failed." 1>&2
- $echo The command "cmp 5h.O $srcdir/5h.X" failed. 1>&2
- errors=`expr $errors + 1`;;
- esac
-fi
-test -s 5h.E || rm -f 5h.E
-$xx -a1 -e - -o 1.1,2.2 $srcdir/5i.I1 $srcdir/5i.I2 > 5i.O 2> 5i.E
-code=$?
-if test $code != 0; then
- $echo "Test 5i failed: $xx return code $code differs from expected value 0" 1>&2
- errors=`expr $errors + 1`
-else
- cmp 5i.O $srcdir/5i.X > /dev/null 2>&1
- case $? in
- 0) if test "$VERBOSE"; then $echo "passed 5i"; fi;;
- 1) $echo "Test 5i failed: files 5i.O and $srcdir/5i.X differ" 1>&2
- (diff -c 5i.O $srcdir/5i.X) 2> /dev/null
- errors=`expr $errors + 1`;;
- 2) $echo "Test 5i may have failed." 1>&2
- $echo The command "cmp 5i.O $srcdir/5i.X" failed. 1>&2
- errors=`expr $errors + 1`;;
- esac
-fi
-test -s 5i.E || rm -f 5i.E
-$xx -a2 -e - -o 2.2,1.1 $srcdir/5j.I1 $srcdir/5j.I2 > 5j.O 2> 5j.E
-code=$?
-if test $code != 0; then
- $echo "Test 5j failed: $xx return code $code differs from expected value 0" 1>&2
- errors=`expr $errors + 1`
-else
- cmp 5j.O $srcdir/5j.X > /dev/null 2>&1
- case $? in
- 0) if test "$VERBOSE"; then $echo "passed 5j"; fi;;
- 1) $echo "Test 5j failed: files 5j.O and $srcdir/5j.X differ" 1>&2
- (diff -c 5j.O $srcdir/5j.X) 2> /dev/null
- errors=`expr $errors + 1`;;
- 2) $echo "Test 5j may have failed." 1>&2
- $echo The command "cmp 5j.O $srcdir/5j.X" failed. 1>&2
- errors=`expr $errors + 1`;;
- esac
-fi
-test -s 5j.E || rm -f 5j.E
-$xx -a2 -e - -o 2.2,1.1 $srcdir/5k.I1 $srcdir/5k.I2 > 5k.O 2> 5k.E
-code=$?
-if test $code != 0; then
- $echo "Test 5k failed: $xx return code $code differs from expected value 0" 1>&2
- errors=`expr $errors + 1`
-else
- cmp 5k.O $srcdir/5k.X > /dev/null 2>&1
- case $? in
- 0) if test "$VERBOSE"; then $echo "passed 5k"; fi;;
- 1) $echo "Test 5k failed: files 5k.O and $srcdir/5k.X differ" 1>&2
- (diff -c 5k.O $srcdir/5k.X) 2> /dev/null
- errors=`expr $errors + 1`;;
- 2) $echo "Test 5k may have failed." 1>&2
- $echo The command "cmp 5k.O $srcdir/5k.X" failed. 1>&2
- errors=`expr $errors + 1`;;
- esac
-fi
-test -s 5k.E || rm -f 5k.E
-$xx -a1 -e - -o 2.2,1.1 $srcdir/5l.I1 $srcdir/5l.I2 > 5l.O 2> 5l.E
-code=$?
-if test $code != 0; then
- $echo "Test 5l failed: $xx return code $code differs from expected value 0" 1>&2
- errors=`expr $errors + 1`
-else
- cmp 5l.O $srcdir/5l.X > /dev/null 2>&1
- case $? in
- 0) if test "$VERBOSE"; then $echo "passed 5l"; fi;;
- 1) $echo "Test 5l failed: files 5l.O and $srcdir/5l.X differ" 1>&2
- (diff -c 5l.O $srcdir/5l.X) 2> /dev/null
- errors=`expr $errors + 1`;;
- 2) $echo "Test 5l may have failed." 1>&2
- $echo The command "cmp 5l.O $srcdir/5l.X" failed. 1>&2
- errors=`expr $errors + 1`;;
- esac
-fi
-test -s 5l.E || rm -f 5l.E
-$xx -a2 -e - -o 2.2,1.1 $srcdir/5m.I1 $srcdir/5m.I2 > 5m.O 2> 5m.E
-code=$?
-if test $code != 0; then
- $echo "Test 5m failed: $xx return code $code differs from expected value 0" 1>&2
- errors=`expr $errors + 1`
-else
- cmp 5m.O $srcdir/5m.X > /dev/null 2>&1
- case $? in
- 0) if test "$VERBOSE"; then $echo "passed 5m"; fi;;
- 1) $echo "Test 5m failed: files 5m.O and $srcdir/5m.X differ" 1>&2
- (diff -c 5m.O $srcdir/5m.X) 2> /dev/null
- errors=`expr $errors + 1`;;
- 2) $echo "Test 5m may have failed." 1>&2
- $echo The command "cmp 5m.O $srcdir/5m.X" failed. 1>&2
- errors=`expr $errors + 1`;;
- esac
-fi
-test -s 5m.E || rm -f 5m.E
-$xx -e - $srcdir/6a.I1 $srcdir/6a.I2 > 6a.O 2> 6a.E
-code=$?
-if test $code != 0; then
- $echo "Test 6a failed: $xx return code $code differs from expected value 0" 1>&2
- errors=`expr $errors + 1`
-else
- cmp 6a.O $srcdir/6a.X > /dev/null 2>&1
- case $? in
- 0) if test "$VERBOSE"; then $echo "passed 6a"; fi;;
- 1) $echo "Test 6a failed: files 6a.O and $srcdir/6a.X differ" 1>&2
- (diff -c 6a.O $srcdir/6a.X) 2> /dev/null
- errors=`expr $errors + 1`;;
- 2) $echo "Test 6a may have failed." 1>&2
- $echo The command "cmp 6a.O $srcdir/6a.X" failed. 1>&2
- errors=`expr $errors + 1`;;
- esac
-fi
-test -s 6a.E || rm -f 6a.E
-$xx -a1 -e - $srcdir/6b.I1 $srcdir/6b.I2 > 6b.O 2> 6b.E
-code=$?
-if test $code != 0; then
- $echo "Test 6b failed: $xx return code $code differs from expected value 0" 1>&2
- errors=`expr $errors + 1`
-else
- cmp 6b.O $srcdir/6b.X > /dev/null 2>&1
- case $? in
- 0) if test "$VERBOSE"; then $echo "passed 6b"; fi;;
- 1) $echo "Test 6b failed: files 6b.O and $srcdir/6b.X differ" 1>&2
- (diff -c 6b.O $srcdir/6b.X) 2> /dev/null
- errors=`expr $errors + 1`;;
- 2) $echo "Test 6b may have failed." 1>&2
- $echo The command "cmp 6b.O $srcdir/6b.X" failed. 1>&2
- errors=`expr $errors + 1`;;
- esac
-fi
-test -s 6b.E || rm -f 6b.E
-$xx -a1 -e - $srcdir/6c.I1 $srcdir/6c.I2 > 6c.O 2> 6c.E
-code=$?
-if test $code != 0; then
- $echo "Test 6c failed: $xx return code $code differs from expected value 0" 1>&2
- errors=`expr $errors + 1`
-else
- cmp 6c.O $srcdir/6c.X > /dev/null 2>&1
- case $? in
- 0) if test "$VERBOSE"; then $echo "passed 6c"; fi;;
- 1) $echo "Test 6c failed: files 6c.O and $srcdir/6c.X differ" 1>&2
- (diff -c 6c.O $srcdir/6c.X) 2> /dev/null
- errors=`expr $errors + 1`;;
- 2) $echo "Test 6c may have failed." 1>&2
- $echo The command "cmp 6c.O $srcdir/6c.X" failed. 1>&2
- errors=`expr $errors + 1`;;
- esac
-fi
-test -s 6c.E || rm -f 6c.E
-$xx -a1 -e . -o 2.7 $srcdir/7a.I1 $srcdir/7a.I2 > 7a.O 2> 7a.E
-code=$?
-if test $code != 0; then
- $echo "Test 7a failed: $xx return code $code differs from expected value 0" 1>&2
- errors=`expr $errors + 1`
-else
- cmp 7a.O $srcdir/7a.X > /dev/null 2>&1
- case $? in
- 0) if test "$VERBOSE"; then $echo "passed 7a"; fi;;
- 1) $echo "Test 7a failed: files 7a.O and $srcdir/7a.X differ" 1>&2
- (diff -c 7a.O $srcdir/7a.X) 2> /dev/null
- errors=`expr $errors + 1`;;
- 2) $echo "Test 7a may have failed." 1>&2
- $echo The command "cmp 7a.O $srcdir/7a.X" failed. 1>&2
- errors=`expr $errors + 1`;;
- esac
-fi
-test -s 7a.E || rm -f 7a.E
-$xx -a1 -e . -o 0,1.2 $srcdir/8a.I1 $srcdir/8a.I2 > 8a.O 2> 8a.E
-code=$?
-if test $code != 0; then
- $echo "Test 8a failed: $xx return code $code differs from expected value 0" 1>&2
- errors=`expr $errors + 1`
-else
- cmp 8a.O $srcdir/8a.X > /dev/null 2>&1
- case $? in
- 0) if test "$VERBOSE"; then $echo "passed 8a"; fi;;
- 1) $echo "Test 8a failed: files 8a.O and $srcdir/8a.X differ" 1>&2
- (diff -c 8a.O $srcdir/8a.X) 2> /dev/null
- errors=`expr $errors + 1`;;
- 2) $echo "Test 8a may have failed." 1>&2
- $echo The command "cmp 8a.O $srcdir/8a.X" failed. 1>&2
- errors=`expr $errors + 1`;;
- esac
-fi
-test -s 8a.E || rm -f 8a.E
-$xx -a1 -a2 -e . -o 0,1.2 $srcdir/8b.I1 $srcdir/8b.I2 > 8b.O 2> 8b.E
-code=$?
-if test $code != 0; then
- $echo "Test 8b failed: $xx return code $code differs from expected value 0" 1>&2
- errors=`expr $errors + 1`
-else
- cmp 8b.O $srcdir/8b.X > /dev/null 2>&1
- case $? in
- 0) if test "$VERBOSE"; then $echo "passed 8b"; fi;;
- 1) $echo "Test 8b failed: files 8b.O and $srcdir/8b.X differ" 1>&2
- (diff -c 8b.O $srcdir/8b.X) 2> /dev/null
- errors=`expr $errors + 1`;;
- 2) $echo "Test 8b may have failed." 1>&2
- $echo The command "cmp 8b.O $srcdir/8b.X" failed. 1>&2
- errors=`expr $errors + 1`;;
- esac
-fi
-test -s 8b.E || rm -f 8b.E
-$xx $srcdir/9a.I1 $srcdir/9a.I2 > 9a.O 2> 9a.E
-code=$?
-if test $code != 0; then
- $echo "Test 9a failed: $xx return code $code differs from expected value 0" 1>&2
- errors=`expr $errors + 1`
-else
- cmp 9a.O $srcdir/9a.X > /dev/null 2>&1
- case $? in
- 0) if test "$VERBOSE"; then $echo "passed 9a"; fi;;
- 1) $echo "Test 9a failed: files 9a.O and $srcdir/9a.X differ" 1>&2
- (diff -c 9a.O $srcdir/9a.X) 2> /dev/null
- errors=`expr $errors + 1`;;
- 2) $echo "Test 9a may have failed." 1>&2
- $echo The command "cmp 9a.O $srcdir/9a.X" failed. 1>&2
- errors=`expr $errors + 1`;;
- esac
-fi
-test -s 9a.E || rm -f 9a.E
-$xx -t: -1 1 -2 1 $srcdir/trailing-sp.I1 $srcdir/trailing-sp.I2 > trailing-sp.O 2> trailing-sp.E
-code=$?
-if test $code != 0; then
- $echo "Test trailing-sp failed: $xx return code $code differs from expected value 0" 1>&2
- errors=`expr $errors + 1`
-else
- cmp trailing-sp.O $srcdir/trailing-sp.X > /dev/null 2>&1
- case $? in
- 0) if test "$VERBOSE"; then $echo "passed trailing-sp"; fi;;
- 1) $echo "Test trailing-sp failed: files trailing-sp.O and $srcdir/trailing-sp.X differ" 1>&2
- (diff -c trailing-sp.O $srcdir/trailing-sp.X) 2> /dev/null
- errors=`expr $errors + 1`;;
- 2) $echo "Test trailing-sp may have failed." 1>&2
- $echo The command "cmp trailing-sp.O $srcdir/trailing-sp.X" failed. 1>&2
- errors=`expr $errors + 1`;;
- esac
-fi
-test -s trailing-sp.E || rm -f trailing-sp.E
-$xx $srcdir/sp-vs-blank.I1 $srcdir/sp-vs-blank.I2 > sp-vs-blank.O 2> sp-vs-blank.E
-code=$?
-if test $code != 0; then
- $echo "Test sp-vs-blank failed: $xx return code $code differs from expected value 0" 1>&2
- errors=`expr $errors + 1`
-else
- cmp sp-vs-blank.O $srcdir/sp-vs-blank.X > /dev/null 2>&1
- case $? in
- 0) if test "$VERBOSE"; then $echo "passed sp-vs-blank"; fi;;
- 1) $echo "Test sp-vs-blank failed: files sp-vs-blank.O and $srcdir/sp-vs-blank.X differ" 1>&2
- (diff -c sp-vs-blank.O $srcdir/sp-vs-blank.X) 2> /dev/null
- errors=`expr $errors + 1`;;
- 2) $echo "Test sp-vs-blank may have failed." 1>&2
- $echo The command "cmp sp-vs-blank.O $srcdir/sp-vs-blank.X" failed. 1>&2
- errors=`expr $errors + 1`;;
- esac
-fi
-test -s sp-vs-blank.E || rm -f sp-vs-blank.E
-$xx -t§ $srcdir/8-bit-t.I1 $srcdir/8-bit-t.I2 > 8-bit-t.O 2> 8-bit-t.E
-code=$?
-if test $code != 0; then
- $echo "Test 8-bit-t failed: $xx return code $code differs from expected value 0" 1>&2
- errors=`expr $errors + 1`
-else
- cmp 8-bit-t.O $srcdir/8-bit-t.X > /dev/null 2>&1
- case $? in
- 0) if test "$VERBOSE"; then $echo "passed 8-bit-t"; fi;;
- 1) $echo "Test 8-bit-t failed: files 8-bit-t.O and $srcdir/8-bit-t.X differ" 1>&2
- (diff -c 8-bit-t.O $srcdir/8-bit-t.X) 2> /dev/null
- errors=`expr $errors + 1`;;
- 2) $echo "Test 8-bit-t may have failed." 1>&2
- $echo The command "cmp 8-bit-t.O $srcdir/8-bit-t.X" failed. 1>&2
- errors=`expr $errors + 1`;;
- esac
-fi
-test -s 8-bit-t.E || rm -f 8-bit-t.E
-$xx -1 340282366920938463463374607431768211456 -2 2 $srcdir/bigfield.I1 $srcdir/bigfield.I2 > bigfield.O 2> bigfield.E
-code=$?
-if test $code != 0; then
- $echo "Test bigfield failed: $xx return code $code differs from expected value 0" 1>&2
- errors=`expr $errors + 1`
-else
- cmp bigfield.O $srcdir/bigfield.X > /dev/null 2>&1
- case $? in
- 0) if test "$VERBOSE"; then $echo "passed bigfield"; fi;;
- 1) $echo "Test bigfield failed: files bigfield.O and $srcdir/bigfield.X differ" 1>&2
- (diff -c bigfield.O $srcdir/bigfield.X) 2> /dev/null
- errors=`expr $errors + 1`;;
- 2) $echo "Test bigfield may have failed." 1>&2
- $echo The command "cmp bigfield.O $srcdir/bigfield.X" failed. 1>&2
- errors=`expr $errors + 1`;;
- esac
-fi
-test -s bigfield.E || rm -f bigfield.E
-$xx -j x > invalid-j.O 2> invalid-j.E
-code=$?
-if test $code != 1; then
- $echo "Test invalid-j failed: $xx return code $code differs from expected value 1" 1>&2
- errors=`expr $errors + 1`
-else
- cmp invalid-j.O $srcdir/invalid-j.X > /dev/null 2>&1
- case $? in
- 0) if test "$VERBOSE"; then $echo "passed invalid-j"; fi;;
- 1) $echo "Test invalid-j failed: files invalid-j.O and $srcdir/invalid-j.X differ" 1>&2
- (diff -c invalid-j.O $srcdir/invalid-j.X) 2> /dev/null
- errors=`expr $errors + 1`;;
- 2) $echo "Test invalid-j may have failed." 1>&2
- $echo The command "cmp invalid-j.O $srcdir/invalid-j.X" failed. 1>&2
- errors=`expr $errors + 1`;;
- esac
-fi
-test -s invalid-j.E || rm -f invalid-j.E
-if test $errors = 0; then
- $echo Passed all 40 tests. 1>&2
-else
- $echo Failed $errors tests. 1>&2
-fi
-test $errors = 0 || errors=1
-exit $errors
diff --git a/tests/join/sp-vs-blank.I1 b/tests/join/sp-vs-blank.I1
deleted file mode 100644
index 3ae5da9..0000000
--- a/tests/join/sp-vs-blank.I1
+++ /dev/null
@@ -1 +0,0 @@
- 1
diff --git a/tests/join/sp-vs-blank.I2 b/tests/join/sp-vs-blank.I2
deleted file mode 100644
index 30bc757..0000000
--- a/tests/join/sp-vs-blank.I2
+++ /dev/null
@@ -1 +0,0 @@
- 2
diff --git a/tests/join/sp-vs-blank.X b/tests/join/sp-vs-blank.X
deleted file mode 100644
index d5b2a3b..0000000
--- a/tests/join/sp-vs-blank.X
+++ /dev/null
@@ -1 +0,0 @@
- 1 2
diff --git a/tests/join/trailing-sp.I1 b/tests/join/trailing-sp.I1
deleted file mode 100644
index 6d034ed..0000000
--- a/tests/join/trailing-sp.I1
+++ /dev/null
@@ -1 +0,0 @@
-a:x
diff --git a/tests/join/trailing-sp.I2 b/tests/join/trailing-sp.I2
deleted file mode 100644
index 6ca8c65..0000000
--- a/tests/join/trailing-sp.I2
+++ /dev/null
@@ -1 +0,0 @@
-a:y
diff --git a/tests/join/trailing-sp.X b/tests/join/trailing-sp.X
deleted file mode 100644
index 2969d5a..0000000
--- a/tests/join/trailing-sp.X
+++ /dev/null
@@ -1 +0,0 @@
-a:x :y
diff --git a/tests/ln/Makefile.am b/tests/ln/Makefile.am
deleted file mode 100644
index 7ae15a7..0000000
--- a/tests/ln/Makefile.am
+++ /dev/null
@@ -1,6 +0,0 @@
-## Process this file with automake to produce Makefile.in -*-Makefile-*-.
-TESTS = hard-backup target-1 sf-1 misc backup-1
-EXTRA_DIST = $(TESTS)
-TESTS_ENVIRONMENT = \
- CU_TEST_NAME=`basename $(abs_srcdir)`,$$tst \
- PATH="$(VG_PATH_PREFIX)`pwd`/../../src$(PATH_SEPARATOR)$$PATH"
diff --git a/tests/ln/Makefile.in b/tests/ln/Makefile.in
deleted file mode 100644
index d59ce9a..0000000
--- a/tests/ln/Makefile.in
+++ /dev/null
@@ -1,716 +0,0 @@
-# Makefile.in generated by automake 1.10 from Makefile.am.
-# @configure_input@
-
-# Copyright (C) 1994, 1995, 1996, 1997, 1998, 1999, 2000, 2001, 2002,
-# 2003, 2004, 2005, 2006 Free Software Foundation, Inc.
-# This Makefile.in is free software; the Free Software Foundation
-# gives unlimited permission to copy and/or distribute it,
-# with or without modifications, as long as this notice is preserved.
-
-# This program is distributed in the hope that it will be useful,
-# but WITHOUT ANY WARRANTY, to the extent permitted by law; without
-# even the implied warranty of MERCHANTABILITY or FITNESS FOR A
-# PARTICULAR PURPOSE.
-
-@SET_MAKE@
-VPATH = @srcdir@
-pkgdatadir = $(datadir)/@PACKAGE@
-pkglibdir = $(libdir)/@PACKAGE@
-pkgincludedir = $(includedir)/@PACKAGE@
-am__cd = CDPATH="$${ZSH_VERSION+.}$(PATH_SEPARATOR)" && cd
-install_sh_DATA = $(install_sh) -c -m 644
-install_sh_PROGRAM = $(install_sh) -c
-install_sh_SCRIPT = $(install_sh) -c
-INSTALL_HEADER = $(INSTALL_DATA)
-transform = $(program_transform_name)
-NORMAL_INSTALL = :
-PRE_INSTALL = :
-POST_INSTALL = :
-NORMAL_UNINSTALL = :
-PRE_UNINSTALL = :
-POST_UNINSTALL = :
-build_triplet = @build@
-host_triplet = @host@
-subdir = tests/ln
-DIST_COMMON = $(srcdir)/Makefile.am $(srcdir)/Makefile.in
-ACLOCAL_M4 = $(top_srcdir)/aclocal.m4
-am__aclocal_m4_deps = $(top_srcdir)/m4/absolute-header.m4 \
- $(top_srcdir)/m4/acl.m4 $(top_srcdir)/m4/alloca.m4 \
- $(top_srcdir)/m4/allocsa.m4 $(top_srcdir)/m4/argmatch.m4 \
- $(top_srcdir)/m4/arpa_inet_h.m4 $(top_srcdir)/m4/assert.m4 \
- $(top_srcdir)/m4/atexit.m4 $(top_srcdir)/m4/autobuild.m4 \
- $(top_srcdir)/m4/backupfile.m4 $(top_srcdir)/m4/base64.m4 \
- $(top_srcdir)/m4/bison.m4 $(top_srcdir)/m4/boottime.m4 \
- $(top_srcdir)/m4/c-strtod.m4 $(top_srcdir)/m4/calloc.m4 \
- $(top_srcdir)/m4/canon-host.m4 \
- $(top_srcdir)/m4/canonicalize.m4 \
- $(top_srcdir)/m4/chdir-long.m4 $(top_srcdir)/m4/check-decl.m4 \
- $(top_srcdir)/m4/chown.m4 $(top_srcdir)/m4/clock_time.m4 \
- $(top_srcdir)/m4/cloexec.m4 $(top_srcdir)/m4/close-stream.m4 \
- $(top_srcdir)/m4/closeout.m4 $(top_srcdir)/m4/codeset.m4 \
- $(top_srcdir)/m4/config-h.m4 $(top_srcdir)/m4/cycle-check.m4 \
- $(top_srcdir)/m4/d-ino.m4 $(top_srcdir)/m4/d-type.m4 \
- $(top_srcdir)/m4/dirfd.m4 $(top_srcdir)/m4/dirname.m4 \
- $(top_srcdir)/m4/dos.m4 $(top_srcdir)/m4/double-slash-root.m4 \
- $(top_srcdir)/m4/dup2.m4 $(top_srcdir)/m4/eealloc.m4 \
- $(top_srcdir)/m4/eoverflow.m4 $(top_srcdir)/m4/error.m4 \
- $(top_srcdir)/m4/euidaccess-stat.m4 \
- $(top_srcdir)/m4/euidaccess.m4 $(top_srcdir)/m4/exclude.m4 \
- $(top_srcdir)/m4/exitfail.m4 $(top_srcdir)/m4/extensions.m4 \
- $(top_srcdir)/m4/fchdir.m4 $(top_srcdir)/m4/fcntl-safer.m4 \
- $(top_srcdir)/m4/fcntl_h.m4 $(top_srcdir)/m4/fd-reopen.m4 \
- $(top_srcdir)/m4/file-type.m4 $(top_srcdir)/m4/fileblocks.m4 \
- $(top_srcdir)/m4/filemode.m4 $(top_srcdir)/m4/filenamecat.m4 \
- $(top_srcdir)/m4/flexmember.m4 $(top_srcdir)/m4/fnmatch.m4 \
- $(top_srcdir)/m4/fpending.m4 $(top_srcdir)/m4/fprintftime.m4 \
- $(top_srcdir)/m4/free.m4 $(top_srcdir)/m4/fstypename.m4 \
- $(top_srcdir)/m4/fsusage.m4 $(top_srcdir)/m4/ftruncate.m4 \
- $(top_srcdir)/m4/fts.m4 $(top_srcdir)/m4/getaddrinfo.m4 \
- $(top_srcdir)/m4/getcwd-abort-bug.m4 \
- $(top_srcdir)/m4/getcwd-path-max.m4 $(top_srcdir)/m4/getcwd.m4 \
- $(top_srcdir)/m4/getdate.m4 $(top_srcdir)/m4/getdelim.m4 \
- $(top_srcdir)/m4/getgroups.m4 $(top_srcdir)/m4/gethostname.m4 \
- $(top_srcdir)/m4/gethrxtime.m4 $(top_srcdir)/m4/getline.m4 \
- $(top_srcdir)/m4/getloadavg.m4 $(top_srcdir)/m4/getndelim2.m4 \
- $(top_srcdir)/m4/getopt.m4 $(top_srcdir)/m4/getpagesize.m4 \
- $(top_srcdir)/m4/getpass.m4 $(top_srcdir)/m4/gettext.m4 \
- $(top_srcdir)/m4/gettime.m4 $(top_srcdir)/m4/gettimeofday.m4 \
- $(top_srcdir)/m4/getugroups.m4 \
- $(top_srcdir)/m4/getusershell.m4 $(top_srcdir)/m4/glibc21.m4 \
- $(top_srcdir)/m4/gnulib-common.m4 \
- $(top_srcdir)/m4/gnulib-comp.m4 \
- $(top_srcdir)/m4/group-member.m4 \
- $(top_srcdir)/m4/hard-locale.m4 $(top_srcdir)/m4/hash.m4 \
- $(top_srcdir)/m4/host-os.m4 $(top_srcdir)/m4/human.m4 \
- $(top_srcdir)/m4/i-ring.m4 $(top_srcdir)/m4/iconv.m4 \
- $(top_srcdir)/m4/idcache.m4 $(top_srcdir)/m4/inet_ntop.m4 \
- $(top_srcdir)/m4/inline.m4 $(top_srcdir)/m4/intmax_t.m4 \
- $(top_srcdir)/m4/inttostr.m4 $(top_srcdir)/m4/inttypes-pri.m4 \
- $(top_srcdir)/m4/inttypes.m4 $(top_srcdir)/m4/inttypes_h.m4 \
- $(top_srcdir)/m4/isapipe.m4 $(top_srcdir)/m4/jm-macros.m4 \
- $(top_srcdir)/m4/jm-winsz1.m4 $(top_srcdir)/m4/jm-winsz2.m4 \
- $(top_srcdir)/m4/lchmod.m4 $(top_srcdir)/m4/lchown.m4 \
- $(top_srcdir)/m4/lib-check.m4 $(top_srcdir)/m4/lib-ignore.m4 \
- $(top_srcdir)/m4/lib-ld.m4 $(top_srcdir)/m4/lib-link.m4 \
- $(top_srcdir)/m4/lib-prefix.m4 $(top_srcdir)/m4/link-follow.m4 \
- $(top_srcdir)/m4/localcharset.m4 \
- $(top_srcdir)/m4/long-options.m4 \
- $(top_srcdir)/m4/longdouble.m4 $(top_srcdir)/m4/longlong.m4 \
- $(top_srcdir)/m4/ls-mntd-fs.m4 $(top_srcdir)/m4/lstat.m4 \
- $(top_srcdir)/m4/mbchar.m4 $(top_srcdir)/m4/mbiter.m4 \
- $(top_srcdir)/m4/mbrtowc.m4 $(top_srcdir)/m4/mbscasecmp.m4 \
- $(top_srcdir)/m4/mbstate_t.m4 $(top_srcdir)/m4/mbswidth.m4 \
- $(top_srcdir)/m4/md5.m4 $(top_srcdir)/m4/memcasecmp.m4 \
- $(top_srcdir)/m4/memchr.m4 $(top_srcdir)/m4/memcmp.m4 \
- $(top_srcdir)/m4/memcoll.m4 $(top_srcdir)/m4/memcpy.m4 \
- $(top_srcdir)/m4/memmove.m4 $(top_srcdir)/m4/mempcpy.m4 \
- $(top_srcdir)/m4/memrchr.m4 $(top_srcdir)/m4/memset.m4 \
- $(top_srcdir)/m4/memxfrm.m4 $(top_srcdir)/m4/mkancesdirs.m4 \
- $(top_srcdir)/m4/mkdir-p.m4 $(top_srcdir)/m4/mkdir-slash.m4 \
- $(top_srcdir)/m4/mkstemp.m4 $(top_srcdir)/m4/mktime.m4 \
- $(top_srcdir)/m4/modechange.m4 $(top_srcdir)/m4/mountlist.m4 \
- $(top_srcdir)/m4/mpsort.m4 $(top_srcdir)/m4/nanosleep.m4 \
- $(top_srcdir)/m4/netinet_in_h.m4 $(top_srcdir)/m4/nls.m4 \
- $(top_srcdir)/m4/openat.m4 $(top_srcdir)/m4/pathmax.m4 \
- $(top_srcdir)/m4/perl.m4 $(top_srcdir)/m4/physmem.m4 \
- $(top_srcdir)/m4/po.m4 $(top_srcdir)/m4/posixtm.m4 \
- $(top_srcdir)/m4/posixver.m4 $(top_srcdir)/m4/prereq.m4 \
- $(top_srcdir)/m4/progtest.m4 $(top_srcdir)/m4/putenv.m4 \
- $(top_srcdir)/m4/quote.m4 $(top_srcdir)/m4/quotearg.m4 \
- $(top_srcdir)/m4/randint.m4 $(top_srcdir)/m4/randperm.m4 \
- $(top_srcdir)/m4/randread.m4 $(top_srcdir)/m4/readlink.m4 \
- $(top_srcdir)/m4/readtokens.m4 $(top_srcdir)/m4/readutmp.m4 \
- $(top_srcdir)/m4/regex.m4 \
- $(top_srcdir)/m4/rename-dest-slash.m4 \
- $(top_srcdir)/m4/rename.m4 $(top_srcdir)/m4/rmdir-errno.m4 \
- $(top_srcdir)/m4/rmdir.m4 $(top_srcdir)/m4/root-dev-ino.m4 \
- $(top_srcdir)/m4/rpmatch.m4 $(top_srcdir)/m4/safe-read.m4 \
- $(top_srcdir)/m4/safe-write.m4 $(top_srcdir)/m4/same.m4 \
- $(top_srcdir)/m4/save-cwd.m4 $(top_srcdir)/m4/savedir.m4 \
- $(top_srcdir)/m4/savewd.m4 $(top_srcdir)/m4/setenv.m4 \
- $(top_srcdir)/m4/settime.m4 $(top_srcdir)/m4/sha1.m4 \
- $(top_srcdir)/m4/sha256.m4 $(top_srcdir)/m4/sha512.m4 \
- $(top_srcdir)/m4/sig2str.m4 $(top_srcdir)/m4/snprintf.m4 \
- $(top_srcdir)/m4/socklen.m4 $(top_srcdir)/m4/sockpfaf.m4 \
- $(top_srcdir)/m4/ssize_t.m4 $(top_srcdir)/m4/st_dm_mode.m4 \
- $(top_srcdir)/m4/stat-prog.m4 $(top_srcdir)/m4/stat-time.m4 \
- $(top_srcdir)/m4/stdarg.m4 $(top_srcdir)/m4/stdbool.m4 \
- $(top_srcdir)/m4/stdint.m4 $(top_srcdir)/m4/stdint_h.m4 \
- $(top_srcdir)/m4/stdio-safer.m4 $(top_srcdir)/m4/stdio_h.m4 \
- $(top_srcdir)/m4/stdlib-safer.m4 $(top_srcdir)/m4/stdlib_h.m4 \
- $(top_srcdir)/m4/stpcpy.m4 $(top_srcdir)/m4/strcspn.m4 \
- $(top_srcdir)/m4/strdup.m4 $(top_srcdir)/m4/strftime.m4 \
- $(top_srcdir)/m4/string_h.m4 $(top_srcdir)/m4/strndup.m4 \
- $(top_srcdir)/m4/strnlen.m4 $(top_srcdir)/m4/strnumcmp.m4 \
- $(top_srcdir)/m4/strpbrk.m4 $(top_srcdir)/m4/strtod.m4 \
- $(top_srcdir)/m4/strtoimax.m4 $(top_srcdir)/m4/strtol.m4 \
- $(top_srcdir)/m4/strtoll.m4 $(top_srcdir)/m4/strtoul.m4 \
- $(top_srcdir)/m4/strtoull.m4 $(top_srcdir)/m4/strtoumax.m4 \
- $(top_srcdir)/m4/strverscmp.m4 \
- $(top_srcdir)/m4/sys_socket_h.m4 \
- $(top_srcdir)/m4/sys_stat_h.m4 $(top_srcdir)/m4/sys_time_h.m4 \
- $(top_srcdir)/m4/tempname.m4 $(top_srcdir)/m4/time_h.m4 \
- $(top_srcdir)/m4/time_r.m4 $(top_srcdir)/m4/timespec.m4 \
- $(top_srcdir)/m4/tm_gmtoff.m4 $(top_srcdir)/m4/tzset.m4 \
- $(top_srcdir)/m4/unicodeio.m4 $(top_srcdir)/m4/unistd-safer.m4 \
- $(top_srcdir)/m4/unistd_h.m4 $(top_srcdir)/m4/unlink-busy.m4 \
- $(top_srcdir)/m4/unlinkdir.m4 $(top_srcdir)/m4/unlocked-io.m4 \
- $(top_srcdir)/m4/uptime.m4 $(top_srcdir)/m4/userspec.m4 \
- $(top_srcdir)/m4/utimbuf.m4 $(top_srcdir)/m4/utime.m4 \
- $(top_srcdir)/m4/utimecmp.m4 $(top_srcdir)/m4/utimens.m4 \
- $(top_srcdir)/m4/utimes-null.m4 $(top_srcdir)/m4/utimes.m4 \
- $(top_srcdir)/m4/vasnprintf.m4 $(top_srcdir)/m4/vasprintf.m4 \
- $(top_srcdir)/m4/wchar.m4 $(top_srcdir)/m4/wchar_t.m4 \
- $(top_srcdir)/m4/wctype.m4 $(top_srcdir)/m4/wcwidth.m4 \
- $(top_srcdir)/m4/wint_t.m4 $(top_srcdir)/m4/xalloc.m4 \
- $(top_srcdir)/m4/xfts.m4 $(top_srcdir)/m4/xgetcwd.m4 \
- $(top_srcdir)/m4/xnanosleep.m4 $(top_srcdir)/m4/xstrndup.m4 \
- $(top_srcdir)/m4/xstrtod.m4 $(top_srcdir)/m4/xstrtol.m4 \
- $(top_srcdir)/m4/yesno.m4 $(top_srcdir)/configure.ac
-am__configure_deps = $(am__aclocal_m4_deps) $(CONFIGURE_DEPENDENCIES) \
- $(ACLOCAL_M4)
-mkinstalldirs = $(install_sh) -d
-CONFIG_HEADER = $(top_builddir)/lib/config.h
-CONFIG_CLEAN_FILES =
-SOURCES =
-DIST_SOURCES =
-DISTFILES = $(DIST_COMMON) $(DIST_SOURCES) $(TEXINFOS) $(EXTRA_DIST)
-ABSOLUTE_DIRENT_H = @ABSOLUTE_DIRENT_H@
-ABSOLUTE_FCNTL_H = @ABSOLUTE_FCNTL_H@
-ABSOLUTE_INTTYPES_H = @ABSOLUTE_INTTYPES_H@
-ABSOLUTE_NETINET_IN_H = @ABSOLUTE_NETINET_IN_H@
-ABSOLUTE_STDINT_H = @ABSOLUTE_STDINT_H@
-ABSOLUTE_STDIO_H = @ABSOLUTE_STDIO_H@
-ABSOLUTE_STDLIB_H = @ABSOLUTE_STDLIB_H@
-ABSOLUTE_STRING_H = @ABSOLUTE_STRING_H@
-ABSOLUTE_SYS_SOCKET_H = @ABSOLUTE_SYS_SOCKET_H@
-ABSOLUTE_SYS_STAT_H = @ABSOLUTE_SYS_STAT_H@
-ABSOLUTE_SYS_TIME_H = @ABSOLUTE_SYS_TIME_H@
-ABSOLUTE_TIME_H = @ABSOLUTE_TIME_H@
-ABSOLUTE_UNISTD_H = @ABSOLUTE_UNISTD_H@
-ABSOLUTE_WCHAR_H = @ABSOLUTE_WCHAR_H@
-ABSOLUTE_WCTYPE_H = @ABSOLUTE_WCTYPE_H@
-ACLOCAL = @ACLOCAL@
-ALLOCA = @ALLOCA@
-ALLOCA_H = @ALLOCA_H@
-AMTAR = @AMTAR@
-ARPA_INET_H = @ARPA_INET_H@
-AUTOCONF = @AUTOCONF@
-AUTOHEADER = @AUTOHEADER@
-AUTOMAKE = @AUTOMAKE@
-AWK = @AWK@
-BITSIZEOF_PTRDIFF_T = @BITSIZEOF_PTRDIFF_T@
-BITSIZEOF_SIG_ATOMIC_T = @BITSIZEOF_SIG_ATOMIC_T@
-BITSIZEOF_SIZE_T = @BITSIZEOF_SIZE_T@
-BITSIZEOF_WCHAR_T = @BITSIZEOF_WCHAR_T@
-BITSIZEOF_WINT_T = @BITSIZEOF_WINT_T@
-CC = @CC@
-CCDEPMODE = @CCDEPMODE@
-CFLAGS = @CFLAGS@
-CPP = @CPP@
-CPPFLAGS = @CPPFLAGS@
-CYGPATH_W = @CYGPATH_W@
-DEFAULT_POSIX2_VERSION = @DEFAULT_POSIX2_VERSION@
-DEFS = @DEFS@
-DEPDIR = @DEPDIR@
-DF_PROG = @DF_PROG@
-DIRENT_H = @DIRENT_H@
-ECHO_C = @ECHO_C@
-ECHO_N = @ECHO_N@
-ECHO_T = @ECHO_T@
-EGREP = @EGREP@
-EOVERFLOW = @EOVERFLOW@
-EXEEXT = @EXEEXT@
-FCNTL_H = @FCNTL_H@
-FNMATCH_H = @FNMATCH_H@
-GETLOADAVG_LIBS = @GETLOADAVG_LIBS@
-GETOPT_H = @GETOPT_H@
-GLIBC21 = @GLIBC21@
-GMSGFMT = @GMSGFMT@
-GMSGFMT_015 = @GMSGFMT_015@
-GNULIB_CHOWN = @GNULIB_CHOWN@
-GNULIB_DUP2 = @GNULIB_DUP2@
-GNULIB_FCHDIR = @GNULIB_FCHDIR@
-GNULIB_FPRINTF_POSIX = @GNULIB_FPRINTF_POSIX@
-GNULIB_FTRUNCATE = @GNULIB_FTRUNCATE@
-GNULIB_GETCWD = @GNULIB_GETCWD@
-GNULIB_GETLOGIN_R = @GNULIB_GETLOGIN_R@
-GNULIB_GETSUBOPT = @GNULIB_GETSUBOPT@
-GNULIB_IMAXABS = @GNULIB_IMAXABS@
-GNULIB_IMAXDIV = @GNULIB_IMAXDIV@
-GNULIB_MBSCASECMP = @GNULIB_MBSCASECMP@
-GNULIB_MBSCASESTR = @GNULIB_MBSCASESTR@
-GNULIB_MBSCHR = @GNULIB_MBSCHR@
-GNULIB_MBSCSPN = @GNULIB_MBSCSPN@
-GNULIB_MBSLEN = @GNULIB_MBSLEN@
-GNULIB_MBSNCASECMP = @GNULIB_MBSNCASECMP@
-GNULIB_MBSPBRK = @GNULIB_MBSPBRK@
-GNULIB_MBSPCASECMP = @GNULIB_MBSPCASECMP@
-GNULIB_MBSRCHR = @GNULIB_MBSRCHR@
-GNULIB_MBSSEP = @GNULIB_MBSSEP@
-GNULIB_MBSSPN = @GNULIB_MBSSPN@
-GNULIB_MBSSTR = @GNULIB_MBSSTR@
-GNULIB_MBSTOK_R = @GNULIB_MBSTOK_R@
-GNULIB_MEMMEM = @GNULIB_MEMMEM@
-GNULIB_MEMPCPY = @GNULIB_MEMPCPY@
-GNULIB_MEMRCHR = @GNULIB_MEMRCHR@
-GNULIB_MKDTEMP = @GNULIB_MKDTEMP@
-GNULIB_MKSTEMP = @GNULIB_MKSTEMP@
-GNULIB_PRINTF_POSIX = @GNULIB_PRINTF_POSIX@
-GNULIB_READLINK = @GNULIB_READLINK@
-GNULIB_SNPRINTF = @GNULIB_SNPRINTF@
-GNULIB_SPRINTF_POSIX = @GNULIB_SPRINTF_POSIX@
-GNULIB_STPCPY = @GNULIB_STPCPY@
-GNULIB_STPNCPY = @GNULIB_STPNCPY@
-GNULIB_STRCASESTR = @GNULIB_STRCASESTR@
-GNULIB_STRCHRNUL = @GNULIB_STRCHRNUL@
-GNULIB_STRDUP = @GNULIB_STRDUP@
-GNULIB_STRNDUP = @GNULIB_STRNDUP@
-GNULIB_STRNLEN = @GNULIB_STRNLEN@
-GNULIB_STRPBRK = @GNULIB_STRPBRK@
-GNULIB_STRSEP = @GNULIB_STRSEP@
-GNULIB_STRTOIMAX = @GNULIB_STRTOIMAX@
-GNULIB_STRTOK_R = @GNULIB_STRTOK_R@
-GNULIB_STRTOUMAX = @GNULIB_STRTOUMAX@
-GNULIB_VFPRINTF_POSIX = @GNULIB_VFPRINTF_POSIX@
-GNULIB_VPRINTF_POSIX = @GNULIB_VPRINTF_POSIX@
-GNULIB_VSNPRINTF = @GNULIB_VSNPRINTF@
-GNULIB_VSPRINTF_POSIX = @GNULIB_VSPRINTF_POSIX@
-GNU_PACKAGE = @GNU_PACKAGE@
-GREP = @GREP@
-HAVE_DECL_GETLOGIN_R = @HAVE_DECL_GETLOGIN_R@
-HAVE_DECL_IMAXABS = @HAVE_DECL_IMAXABS@
-HAVE_DECL_IMAXDIV = @HAVE_DECL_IMAXDIV@
-HAVE_DECL_MEMMEM = @HAVE_DECL_MEMMEM@
-HAVE_DECL_MEMRCHR = @HAVE_DECL_MEMRCHR@
-HAVE_DECL_SNPRINTF = @HAVE_DECL_SNPRINTF@
-HAVE_DECL_STRDUP = @HAVE_DECL_STRDUP@
-HAVE_DECL_STRNCASECMP = @HAVE_DECL_STRNCASECMP@
-HAVE_DECL_STRNDUP = @HAVE_DECL_STRNDUP@
-HAVE_DECL_STRNLEN = @HAVE_DECL_STRNLEN@
-HAVE_DECL_STRTOIMAX = @HAVE_DECL_STRTOIMAX@
-HAVE_DECL_STRTOK_R = @HAVE_DECL_STRTOK_R@
-HAVE_DECL_STRTOUMAX = @HAVE_DECL_STRTOUMAX@
-HAVE_DECL_VSNPRINTF = @HAVE_DECL_VSNPRINTF@
-HAVE_DUP2 = @HAVE_DUP2@
-HAVE_FTRUNCATE = @HAVE_FTRUNCATE@
-HAVE_GETSUBOPT = @HAVE_GETSUBOPT@
-HAVE_INTTYPES_H = @HAVE_INTTYPES_H@
-HAVE_LONG_LONG_INT = @HAVE_LONG_LONG_INT@
-HAVE_MEMPCPY = @HAVE_MEMPCPY@
-HAVE_MKDTEMP = @HAVE_MKDTEMP@
-HAVE_NETINET_IN_H = @HAVE_NETINET_IN_H@
-HAVE_READLINK = @HAVE_READLINK@
-HAVE_SIGNED_SIG_ATOMIC_T = @HAVE_SIGNED_SIG_ATOMIC_T@
-HAVE_SIGNED_WCHAR_T = @HAVE_SIGNED_WCHAR_T@
-HAVE_SIGNED_WINT_T = @HAVE_SIGNED_WINT_T@
-HAVE_STDINT_H = @HAVE_STDINT_H@
-HAVE_STPCPY = @HAVE_STPCPY@
-HAVE_STPNCPY = @HAVE_STPNCPY@
-HAVE_STRCASECMP = @HAVE_STRCASECMP@
-HAVE_STRCASESTR = @HAVE_STRCASESTR@
-HAVE_STRCHRNUL = @HAVE_STRCHRNUL@
-HAVE_STRNDUP = @HAVE_STRNDUP@
-HAVE_STRPBRK = @HAVE_STRPBRK@
-HAVE_STRSEP = @HAVE_STRSEP@
-HAVE_STRUCT_TIMEVAL = @HAVE_STRUCT_TIMEVAL@
-HAVE_SYS_BITYPES_H = @HAVE_SYS_BITYPES_H@
-HAVE_SYS_INTTYPES_H = @HAVE_SYS_INTTYPES_H@
-HAVE_SYS_SOCKET_H = @HAVE_SYS_SOCKET_H@
-HAVE_SYS_TIME_H = @HAVE_SYS_TIME_H@
-HAVE_SYS_TYPES_H = @HAVE_SYS_TYPES_H@
-HAVE_UNISTD_H = @HAVE_UNISTD_H@
-HAVE_UNSIGNED_LONG_LONG_INT = @HAVE_UNSIGNED_LONG_LONG_INT@
-HAVE_WCTYPE_H = @HAVE_WCTYPE_H@
-HAVE_WINSOCK2_H = @HAVE_WINSOCK2_H@
-HAVE_WINT_T = @HAVE_WINT_T@
-HAVE_WS2TCPIP_H = @HAVE_WS2TCPIP_H@
-HAVE__BOOL = @HAVE__BOOL@
-HELP2MAN = @HELP2MAN@
-INSTALL = @INSTALL@
-INSTALL_DATA = @INSTALL_DATA@
-INSTALL_PROGRAM = @INSTALL_PROGRAM@
-INSTALL_SCRIPT = @INSTALL_SCRIPT@
-INSTALL_STRIP_PROGRAM = @INSTALL_STRIP_PROGRAM@
-INTLLIBS = @INTLLIBS@
-INTL_MACOSX_LIBS = @INTL_MACOSX_LIBS@
-INTTYPES_H = @INTTYPES_H@
-KMEM_GROUP = @KMEM_GROUP@
-LDFLAGS = @LDFLAGS@
-LIBCOREUTILS_LIBDEPS = @LIBCOREUTILS_LIBDEPS@
-LIBCOREUTILS_LTLIBDEPS = @LIBCOREUTILS_LTLIBDEPS@
-LIBICONV = @LIBICONV@
-LIBINTL = @LIBINTL@
-LIBOBJS = @LIBOBJS@
-LIBS = @LIBS@
-LIB_ACL = @LIB_ACL@
-LIB_ACL_TRIVIAL = @LIB_ACL_TRIVIAL@
-LIB_CLOCK_GETTIME = @LIB_CLOCK_GETTIME@
-LIB_CRYPT = @LIB_CRYPT@
-LIB_EACCESS = @LIB_EACCESS@
-LIB_FDATASYNC = @LIB_FDATASYNC@
-LIB_GETHRXTIME = @LIB_GETHRXTIME@
-LIB_NANOSLEEP = @LIB_NANOSLEEP@
-LN_S = @LN_S@
-LTLIBICONV = @LTLIBICONV@
-LTLIBINTL = @LTLIBINTL@
-LTLIBOBJS = @LTLIBOBJS@
-MAKEINFO = @MAKEINFO@
-MAN = @MAN@
-MKDIR_P = @MKDIR_P@
-MSGFMT = @MSGFMT@
-MSGFMT_015 = @MSGFMT_015@
-MSGMERGE = @MSGMERGE@
-NEED_SETGID = @NEED_SETGID@
-NETINET_IN_H = @NETINET_IN_H@
-OBJEXT = @OBJEXT@
-OPTIONAL_BIN_PROGS = @OPTIONAL_BIN_PROGS@
-PACKAGE = @PACKAGE@
-PACKAGE_BUGREPORT = @PACKAGE_BUGREPORT@
-PACKAGE_NAME = @PACKAGE_NAME@
-PACKAGE_STRING = @PACKAGE_STRING@
-PACKAGE_TARNAME = @PACKAGE_TARNAME@
-PACKAGE_VERSION = @PACKAGE_VERSION@
-PATH_SEPARATOR = @PATH_SEPARATOR@
-PERL = @PERL@
-POSUB = @POSUB@
-POW_LIB = @POW_LIB@
-PRIPTR_PREFIX = @PRIPTR_PREFIX@
-PRI_MACROS_BROKEN = @PRI_MACROS_BROKEN@
-PTRDIFF_T_SUFFIX = @PTRDIFF_T_SUFFIX@
-RANLIB = @RANLIB@
-REPLACE_CHOWN = @REPLACE_CHOWN@
-REPLACE_FCHDIR = @REPLACE_FCHDIR@
-REPLACE_FPRINTF = @REPLACE_FPRINTF@
-REPLACE_GETCWD = @REPLACE_GETCWD@
-REPLACE_GETTIMEOFDAY = @REPLACE_GETTIMEOFDAY@
-REPLACE_LOCALTIME_R = @REPLACE_LOCALTIME_R@
-REPLACE_MKSTEMP = @REPLACE_MKSTEMP@
-REPLACE_NANOSLEEP = @REPLACE_NANOSLEEP@
-REPLACE_PRINTF = @REPLACE_PRINTF@
-REPLACE_SNPRINTF = @REPLACE_SNPRINTF@
-REPLACE_SPRINTF = @REPLACE_SPRINTF@
-REPLACE_STRPTIME = @REPLACE_STRPTIME@
-REPLACE_TIMEGM = @REPLACE_TIMEGM@
-REPLACE_VFPRINTF = @REPLACE_VFPRINTF@
-REPLACE_VPRINTF = @REPLACE_VPRINTF@
-REPLACE_VSNPRINTF = @REPLACE_VSNPRINTF@
-REPLACE_VSPRINTF = @REPLACE_VSPRINTF@
-SEQ_LIBM = @SEQ_LIBM@
-SET_MAKE = @SET_MAKE@
-SHELL = @SHELL@
-SIG_ATOMIC_T_SUFFIX = @SIG_ATOMIC_T_SUFFIX@
-SIZE_T_SUFFIX = @SIZE_T_SUFFIX@
-STDBOOL_H = @STDBOOL_H@
-STDINT_H = @STDINT_H@
-STRIP = @STRIP@
-SYS_SOCKET_H = @SYS_SOCKET_H@
-SYS_STAT_H = @SYS_STAT_H@
-SYS_TIME_H = @SYS_TIME_H@
-SYS_TIME_H_DEFINES_STRUCT_TIMESPEC = @SYS_TIME_H_DEFINES_STRUCT_TIMESPEC@
-TIME_H_DEFINES_STRUCT_TIMESPEC = @TIME_H_DEFINES_STRUCT_TIMESPEC@
-U = @U@
-USE_NLS = @USE_NLS@
-VERSION = @VERSION@
-WCHAR_H = @WCHAR_H@
-WCHAR_T_SUFFIX = @WCHAR_T_SUFFIX@
-WCTYPE_H = @WCTYPE_H@
-WINT_T_SUFFIX = @WINT_T_SUFFIX@
-XGETTEXT = @XGETTEXT@
-XGETTEXT_015 = @XGETTEXT_015@
-YACC = @YACC@
-YFLAGS = @YFLAGS@
-abs_builddir = @abs_builddir@
-abs_srcdir = @abs_srcdir@
-abs_top_builddir = @abs_top_builddir@
-abs_top_srcdir = @abs_top_srcdir@
-ac_ct_CC = @ac_ct_CC@
-am__include = @am__include@
-am__leading_dot = @am__leading_dot@
-am__quote = @am__quote@
-am__tar = @am__tar@
-am__untar = @am__untar@
-bindir = @bindir@
-build = @build@
-build_alias = @build_alias@
-build_cpu = @build_cpu@
-build_os = @build_os@
-build_vendor = @build_vendor@
-builddir = @builddir@
-datadir = @datadir@
-datarootdir = @datarootdir@
-docdir = @docdir@
-dvidir = @dvidir@
-exec_prefix = @exec_prefix@
-gl_LIBOBJS = @gl_LIBOBJS@
-gl_LTLIBOBJS = @gl_LTLIBOBJS@
-host = @host@
-host_alias = @host_alias@
-host_cpu = @host_cpu@
-host_os = @host_os@
-host_vendor = @host_vendor@
-htmldir = @htmldir@
-includedir = @includedir@
-infodir = @infodir@
-install_sh = @install_sh@
-libdir = @libdir@
-libexecdir = @libexecdir@
-localedir = @localedir@
-localstatedir = @localstatedir@
-mandir = @mandir@
-mkdir_p = @mkdir_p@
-oldincludedir = @oldincludedir@
-pdfdir = @pdfdir@
-prefix = @prefix@
-program_transform_name = @program_transform_name@
-psdir = @psdir@
-sbindir = @sbindir@
-sharedstatedir = @sharedstatedir@
-srcdir = @srcdir@
-sysconfdir = @sysconfdir@
-target_alias = @target_alias@
-top_builddir = @top_builddir@
-top_srcdir = @top_srcdir@
-TESTS = hard-backup target-1 sf-1 misc backup-1
-EXTRA_DIST = $(TESTS)
-TESTS_ENVIRONMENT = \
- CU_TEST_NAME=`basename $(abs_srcdir)`,$$tst \
- PATH="$(VG_PATH_PREFIX)`pwd`/../../src$(PATH_SEPARATOR)$$PATH"
-
-all: all-am
-
-.SUFFIXES:
-$(srcdir)/Makefile.in: $(srcdir)/Makefile.am $(am__configure_deps)
- @for dep in $?; do \
- case '$(am__configure_deps)' in \
- *$$dep*) \
- cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh \
- && exit 0; \
- exit 1;; \
- esac; \
- done; \
- echo ' cd $(top_srcdir) && $(AUTOMAKE) --gnu tests/ln/Makefile'; \
- cd $(top_srcdir) && \
- $(AUTOMAKE) --gnu tests/ln/Makefile
-.PRECIOUS: Makefile
-Makefile: $(srcdir)/Makefile.in $(top_builddir)/config.status
- @case '$?' in \
- *config.status*) \
- cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh;; \
- *) \
- echo ' cd $(top_builddir) && $(SHELL) ./config.status $(subdir)/$@ $(am__depfiles_maybe)'; \
- cd $(top_builddir) && $(SHELL) ./config.status $(subdir)/$@ $(am__depfiles_maybe);; \
- esac;
-
-$(top_builddir)/config.status: $(top_srcdir)/configure $(CONFIG_STATUS_DEPENDENCIES)
- cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh
-
-$(top_srcdir)/configure: $(am__configure_deps)
- cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh
-$(ACLOCAL_M4): $(am__aclocal_m4_deps)
- cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh
-tags: TAGS
-TAGS:
-
-ctags: CTAGS
-CTAGS:
-
-
-check-TESTS: $(TESTS)
- @failed=0; all=0; xfail=0; xpass=0; skip=0; ws='[ ]'; \
- srcdir=$(srcdir); export srcdir; \
- list=' $(TESTS) '; \
- if test -n "$$list"; then \
- for tst in $$list; do \
- if test -f ./$$tst; then dir=./; \
- elif test -f $$tst; then dir=; \
- else dir="$(srcdir)/"; fi; \
- if $(TESTS_ENVIRONMENT) $${dir}$$tst; then \
- all=`expr $$all + 1`; \
- case " $(XFAIL_TESTS) " in \
- *$$ws$$tst$$ws*) \
- xpass=`expr $$xpass + 1`; \
- failed=`expr $$failed + 1`; \
- echo "XPASS: $$tst"; \
- ;; \
- *) \
- echo "PASS: $$tst"; \
- ;; \
- esac; \
- elif test $$? -ne 77; then \
- all=`expr $$all + 1`; \
- case " $(XFAIL_TESTS) " in \
- *$$ws$$tst$$ws*) \
- xfail=`expr $$xfail + 1`; \
- echo "XFAIL: $$tst"; \
- ;; \
- *) \
- failed=`expr $$failed + 1`; \
- echo "FAIL: $$tst"; \
- ;; \
- esac; \
- else \
- skip=`expr $$skip + 1`; \
- echo "SKIP: $$tst"; \
- fi; \
- done; \
- if test "$$failed" -eq 0; then \
- if test "$$xfail" -eq 0; then \
- banner="All $$all tests passed"; \
- else \
- banner="All $$all tests behaved as expected ($$xfail expected failures)"; \
- fi; \
- else \
- if test "$$xpass" -eq 0; then \
- banner="$$failed of $$all tests failed"; \
- else \
- banner="$$failed of $$all tests did not behave as expected ($$xpass unexpected passes)"; \
- fi; \
- fi; \
- dashes="$$banner"; \
- skipped=""; \
- if test "$$skip" -ne 0; then \
- skipped="($$skip tests were not run)"; \
- test `echo "$$skipped" | wc -c` -le `echo "$$banner" | wc -c` || \
- dashes="$$skipped"; \
- fi; \
- report=""; \
- if test "$$failed" -ne 0 && test -n "$(PACKAGE_BUGREPORT)"; then \
- report="Please report to $(PACKAGE_BUGREPORT)"; \
- test `echo "$$report" | wc -c` -le `echo "$$banner" | wc -c` || \
- dashes="$$report"; \
- fi; \
- dashes=`echo "$$dashes" | sed s/./=/g`; \
- echo "$$dashes"; \
- echo "$$banner"; \
- test -z "$$skipped" || echo "$$skipped"; \
- test -z "$$report" || echo "$$report"; \
- echo "$$dashes"; \
- test "$$failed" -eq 0; \
- else :; fi
-
-distdir: $(DISTFILES)
- @srcdirstrip=`echo "$(srcdir)" | sed 's/[].[^$$\\*]/\\\\&/g'`; \
- topsrcdirstrip=`echo "$(top_srcdir)" | sed 's/[].[^$$\\*]/\\\\&/g'`; \
- list='$(DISTFILES)'; \
- dist_files=`for file in $$list; do echo $$file; done | \
- sed -e "s|^$$srcdirstrip/||;t" \
- -e "s|^$$topsrcdirstrip/|$(top_builddir)/|;t"`; \
- case $$dist_files in \
- */*) $(MKDIR_P) `echo "$$dist_files" | \
- sed '/\//!d;s|^|$(distdir)/|;s,/[^/]*$$,,' | \
- sort -u` ;; \
- esac; \
- for file in $$dist_files; do \
- if test -f $$file || test -d $$file; then d=.; else d=$(srcdir); fi; \
- if test -d $$d/$$file; then \
- dir=`echo "/$$file" | sed -e 's,/[^/]*$$,,'`; \
- if test -d $(srcdir)/$$file && test $$d != $(srcdir); then \
- cp -pR $(srcdir)/$$file $(distdir)$$dir || exit 1; \
- fi; \
- cp -pR $$d/$$file $(distdir)$$dir || exit 1; \
- else \
- test -f $(distdir)/$$file \
- || cp -p $$d/$$file $(distdir)/$$file \
- || exit 1; \
- fi; \
- done
-check-am: all-am
- $(MAKE) $(AM_MAKEFLAGS) check-TESTS
-check: check-am
-all-am: Makefile
-installdirs:
-install: install-am
-install-exec: install-exec-am
-install-data: install-data-am
-uninstall: uninstall-am
-
-install-am: all-am
- @$(MAKE) $(AM_MAKEFLAGS) install-exec-am install-data-am
-
-installcheck: installcheck-am
-install-strip:
- $(MAKE) $(AM_MAKEFLAGS) INSTALL_PROGRAM="$(INSTALL_STRIP_PROGRAM)" \
- install_sh_PROGRAM="$(INSTALL_STRIP_PROGRAM)" INSTALL_STRIP_FLAG=-s \
- `test -z '$(STRIP)' || \
- echo "INSTALL_PROGRAM_ENV=STRIPPROG='$(STRIP)'"` install
-mostlyclean-generic:
-
-clean-generic:
-
-distclean-generic:
- -test -z "$(CONFIG_CLEAN_FILES)" || rm -f $(CONFIG_CLEAN_FILES)
-
-maintainer-clean-generic:
- @echo "This command is intended for maintainers to use"
- @echo "it deletes files that may require special tools to rebuild."
-clean: clean-am
-
-clean-am: clean-generic mostlyclean-am
-
-distclean: distclean-am
- -rm -f Makefile
-distclean-am: clean-am distclean-generic
-
-dvi: dvi-am
-
-dvi-am:
-
-html: html-am
-
-info: info-am
-
-info-am:
-
-install-data-am:
-
-install-dvi: install-dvi-am
-
-install-exec-am:
-
-install-html: install-html-am
-
-install-info: install-info-am
-
-install-man:
-
-install-pdf: install-pdf-am
-
-install-ps: install-ps-am
-
-installcheck-am:
-
-maintainer-clean: maintainer-clean-am
- -rm -f Makefile
-maintainer-clean-am: distclean-am maintainer-clean-generic
-
-mostlyclean: mostlyclean-am
-
-mostlyclean-am: mostlyclean-generic
-
-pdf: pdf-am
-
-pdf-am:
-
-ps: ps-am
-
-ps-am:
-
-uninstall-am:
-
-.MAKE: install-am install-strip
-
-.PHONY: all all-am check check-TESTS check-am clean clean-generic \
- distclean distclean-generic distdir dvi dvi-am html html-am \
- info info-am install install-am install-data install-data-am \
- install-dvi install-dvi-am install-exec install-exec-am \
- install-html install-html-am install-info install-info-am \
- install-man install-pdf install-pdf-am install-ps \
- install-ps-am install-strip installcheck installcheck-am \
- installdirs maintainer-clean maintainer-clean-generic \
- mostlyclean mostlyclean-generic pdf pdf-am ps ps-am uninstall \
- uninstall-am
-
-# Tell versions [3.59,3.63) of GNU make to not export all variables.
-# Otherwise a system limit (for SysV at least) may be exceeded.
-.NOEXPORT:
diff --git a/tests/ln/backup-1 b/tests/ln/backup-1
deleted file mode 100755
index b246693..0000000
--- a/tests/ln/backup-1
+++ /dev/null
@@ -1,42 +0,0 @@
-#!/bin/sh
-# Try to create a symlink with backup where the destination file exists
-# and the backup file name is a hard link to the destination file.
-
-# Copyright (C) 1999 Free Software Foundation, Inc.
-
-# This program is free software; you can redistribute it and/or modify
-# it under the terms of the GNU General Public License as published by
-# the Free Software Foundation; either version 2 of the License, or
-# (at your option) any later version.
-
-# This program is distributed in the hope that it will be useful,
-# but WITHOUT ANY WARRANTY; without even the implied warranty of
-# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
-# GNU General Public License for more details.
-
-# You should have received a copy of the GNU General Public License
-# along with this program; if not, write to the Free Software
-# Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA
-# 02110-1301, USA.
-
-# Based on a problem report from Jamie Lokier.
-
-if test "$VERBOSE" = yes; then
- set -x
- ln --version
-fi
-
-trap "rm -rf a b b~" 0 1 2 3 15
-
-framework_failure=0
-touch a b || framework_failure=1
-
-if test $framework_failure = 1; then
- echo 'failure in testing framework'
- exit 1
-fi
-
-ln b b~ || fail=1
-ln -f --b=simple a b || fail=1
-
-exit $fail
diff --git a/tests/ln/backup-1.sh b/tests/ln/backup-1.sh
new file mode 100755
index 0000000..068ca46
--- /dev/null
+++ b/tests/ln/backup-1.sh
@@ -0,0 +1,30 @@
+#!/bin/sh
+# Try to create a symlink with backup where the destination file exists
+# and the backup file name is a hard link to the destination file.
+
+# Copyright (C) 1999-2016 Free Software Foundation, Inc.
+
+# This program is free software: you can redistribute it and/or modify
+# it under the terms of the GNU General Public License as published by
+# the Free Software Foundation, either version 3 of the License, or
+# (at your option) any later version.
+
+# This program is distributed in the hope that it will be useful,
+# but WITHOUT ANY WARRANTY; without even the implied warranty of
+# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
+# GNU General Public License for more details.
+
+# You should have received a copy of the GNU General Public License
+# along with this program. If not, see <http://www.gnu.org/licenses/>.
+
+# Based on a problem report from Jamie Lokier.
+
+. "${srcdir=.}/tests/init.sh"; path_prepend_ ./src
+print_ver_ ln
+
+touch a b || framework_failure_
+
+ln b b~ || fail=1
+ln -f --b=simple a b || fail=1
+
+Exit $fail
diff --git a/tests/ln/hard-backup b/tests/ln/hard-backup
deleted file mode 100755
index e37938d..0000000
--- a/tests/ln/hard-backup
+++ /dev/null
@@ -1,54 +0,0 @@
-#!/bin/sh
-# Ensure that 'ln --backup F F' gives a proper diagnostic.
-
-# Copyright (C) 2006 Free Software Foundation, Inc.
-
-# This program is free software; you can redistribute it and/or modify
-# it under the terms of the GNU General Public License as published by
-# the Free Software Foundation; either version 2 of the License, or
-# (at your option) any later version.
-
-# This program is distributed in the hope that it will be useful,
-# but WITHOUT ANY WARRANTY; without even the implied warranty of
-# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
-# GNU General Public License for more details.
-
-# You should have received a copy of the GNU General Public License
-# along with this program; if not, write to the Free Software
-# Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA
-# 02110-1301, USA.
-
-if test "$VERBOSE" = yes; then
- set -x
- ln --version
-fi
-
-. $srcdir/../envvar-check
-. $srcdir/../lang-default
-
-pwd=`pwd`
-t0=`echo "$0"|sed 's,.*/,,'`.tmp; tmp=$t0/$$
-trap 'status=$?; cd "$pwd" && chmod -R u+rwx $t0 && rm -rf $t0 && exit $status' 0
-trap '(exit $?); exit $?' 1 2 13 15
-
-framework_failure=0
-mkdir -p $tmp || framework_failure=1
-cd $tmp || framework_failure=1
-touch f || framework_failure=1
-
-if test $framework_failure = 1; then
- echo "$0: failure in testing framework" 1>&2
- (exit 1); exit 1
-fi
-
-fail=0
-
-ln --backup f f 2> out && fail=1
-cat <<\EOF > exp || fail=1
-ln: `f' and `f' are the same file
-EOF
-
-cmp out exp || fail=1
-test $fail = 1 && diff out exp 2> /dev/null
-
-(exit $fail); exit $fail
diff --git a/tests/ln/hard-backup.sh b/tests/ln/hard-backup.sh
new file mode 100755
index 0000000..203bce2
--- /dev/null
+++ b/tests/ln/hard-backup.sh
@@ -0,0 +1,32 @@
+#!/bin/sh
+# Ensure that 'ln --backup F F' gives a proper diagnostic.
+
+# Copyright (C) 2006-2016 Free Software Foundation, Inc.
+
+# This program is free software: you can redistribute it and/or modify
+# it under the terms of the GNU General Public License as published by
+# the Free Software Foundation, either version 3 of the License, or
+# (at your option) any later version.
+
+# This program is distributed in the hope that it will be useful,
+# but WITHOUT ANY WARRANTY; without even the implied warranty of
+# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
+# GNU General Public License for more details.
+
+# You should have received a copy of the GNU General Public License
+# along with this program. If not, see <http://www.gnu.org/licenses/>.
+
+. "${srcdir=.}/tests/init.sh"; path_prepend_ ./src
+print_ver_ ln
+
+touch f || framework_failure_
+
+
+ln --backup f f 2> out && fail=1
+cat <<\EOF > exp || fail=1
+ln: 'f' and 'f' are the same file
+EOF
+
+compare exp out || fail=1
+
+Exit $fail
diff --git a/tests/ln/hard-to-sym.sh b/tests/ln/hard-to-sym.sh
new file mode 100755
index 0000000..30d83c0
--- /dev/null
+++ b/tests/ln/hard-to-sym.sh
@@ -0,0 +1,83 @@
+#!/bin/sh
+# Tests for ln -L/-P.
+
+# Copyright (C) 2009-2016 Free Software Foundation, Inc.
+
+# This program is free software: you can redistribute it and/or modify
+# it under the terms of the GNU General Public License as published by
+# the Free Software Foundation, either version 3 of the License, or
+# (at your option) any later version.
+
+# This program is distributed in the hope that it will be useful,
+# but WITHOUT ANY WARRANTY; without even the implied warranty of
+# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
+# GNU General Public License for more details.
+
+# You should have received a copy of the GNU General Public License
+# along with this program. If not, see <http://www.gnu.org/licenses/>.
+
+. "${srcdir=.}/tests/init.sh"; path_prepend_ ./src
+print_ver_ ln
+
+
+# ===================================================
+# ensure -s silently overrides -L, -P
+touch a || framework_failure_
+ln -L -s a symlink1 || fail=1
+ln -P -s symlink1 symlink2 || fail=1
+ln -s -L -P symlink2 symlink3 || fail=1
+
+# ===================================================
+# ensure that -L follows symlinks, and overrides -P
+if ln -P -L symlink3 hard-to-a; then
+ ls=$(ls -lG hard-to-a)x
+ case "$ls" in
+ *'hard-to-ax') ;;
+ *'hard-to-a -> '*x) fail=1 ;;
+ *) framework_failure_ ;;
+ esac
+else
+ fail=1
+fi
+
+# ===================================================
+# ensure that -P links (or at least duplicates) symlinks, and overrides -L
+if ln -L -P symlink3 hard-to-3; then
+ ls=$(ls -lG hard-to-3)x
+ case "$ls" in
+ *'hard-to-3 -> symlink2x') ;;
+ *'hard-to-3x') fail=1 ;;
+ *'hard-to-3 -> '*x) fail=1 ;;
+ *) framework_failure_ ;;
+ esac
+else
+ fail=1
+fi
+
+# ===================================================
+# Create a hard link to a dangling symlink.
+ln -s /no-such-dir || framework_failure_
+ln -L no-such-dir hard-to-dangle 2>err && fail=1
+case $(cat err) in
+ *" failed to access 'no-such-dir'":*) ;;
+ *) fail=1 ;;
+esac
+ln -P no-such-dir hard-to-dangle || fail=1
+
+# ===================================================
+# Create a hard link to a symlink to a directory.
+mkdir d || framework_failure_
+ln -s d link-to-dir || framework_failure_
+ln -L link-to-dir hard-to-dir-link 2>err && fail=1
+case $(cat err) in
+ *": link-to-dir: hard link not allowed for directory"*) ;;
+ *) fail=1 ;;
+esac
+ln -P link-to-dir/ hard-to-dir-link 2>err && fail=1
+case $(cat err) in
+ *": link-to-dir/: hard link not allowed for directory"*) ;;
+ *) fail=1 ;;
+esac
+ln -P link-to-dir hard-to-dir-link || fail=1
+
+Exit $fail
diff --git a/tests/ln/misc b/tests/ln/misc
deleted file mode 100755
index 9fc348a..0000000
--- a/tests/ln/misc
+++ /dev/null
@@ -1,166 +0,0 @@
-#!/bin/sh
-# Miscellaneous tests for "ln".
-
-# Copyright (C) 1998, 1999, 2000, 2004, 2006 Free Software Foundation, Inc.
-
-# This program is free software; you can redistribute it and/or modify
-# it under the terms of the GNU General Public License as published by
-# the Free Software Foundation; either version 2 of the License, or
-# (at your option) any later version.
-
-# This program is distributed in the hope that it will be useful,
-# but WITHOUT ANY WARRANTY; without even the implied warranty of
-# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
-# GNU General Public License for more details.
-
-# You should have received a copy of the GNU General Public License
-# along with this program; if not, write to the Free Software
-# Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA
-# 02110-1301, USA.
-
-if test "$VERBOSE" = yes; then
- set -x
- ln --version
-fi
-
-pwd=`pwd`
-tmp=t2-ln.$$
-trap 'status=$?; cd "$pwd" && rm -rf $tmp && exit $status' 0
-trap '(exit $?); exit' 1 2 13 15
-
-framework_failure=0
-mkdir $tmp || framework_failure=1
-cd $tmp || framework_failure=1
-
-t=tln-symlink
-d=tln-subdir
-ld=tln-symlink-to-subdir
-f=tln-file
-fail=0
-
-# Create a simple symlink with both source and destination files
-# in current directory.
-touch $f || framework_failure=1
-rm -f $t || framework_failure=1
-ln -s $f $t || fail=1
-test -f $t || fail=1
-rm $t $f
-
-# Create a symlink with source file and explicit destination directory/file.
-touch $f || framework_failure=1
-rm -rf $d || framework_failure=1
-mkdir $d || framework_failure=1
-ln -s ../$f $d/$t || fail=1
-test -f $d/$t || fail=1
-rm -rf $d $f
-
-# Create a symlink with source file and destination directory.
-touch $f || framework_failure=1
-rm -rf $d || framework_failure=1
-mkdir $d || framework_failure=1
-ln -s ../$f $d || fail=1
-test -f $d/$f || fail=1
-rm -rf $d $f
-
-# See whether a trailing slash is followed too far.
-touch $f || framework_failure=1
-rm -rf $d || framework_failure=1
-mkdir $d $d/$f || framework_failure=1
-ln $f $d/ 2> /dev/null && fail=1
-ln -s $f $d/ 2> /dev/null && fail=1
-rm -rf $d $f
-
-# Make sure we get a failure with existing dest without -f option
-touch $t || framework_failure=1
-# FIXME: don't ignore the error message but rather test
-# it to make sure it's the right one.
-ln -s $t $t 2> /dev/null && fail=1
-rm $t
-
-# Make sure -sf fails when src and dest are the same
-touch $t || framework_failure=1
-ln -sf $t $t 2> /dev/null && fail=1
-rm $t
-
-# Create a symlink with source file and no explicit directory
-rm -rf $d || framework_failure=1
-mkdir $d || framework_failure=1
-touch $d/$f || framework_failure=1
-ln -s $d/$f || fail=1
-test -f $f || fail=1
-rm -rf $d $f
-
-# Create a symlink with source file and destination symlink-to-directory.
-rm -rf $d $f $ld || framework_failure=1
-touch $f || framework_failure=1
-mkdir $d || framework_failure=1
-ln -s $d $ld
-ln -s ../$f $ld || fail=1
-test -f $d/$f || fail=1
-rm -rf $d $f $ld
-
-# Create a symlink with source file and destination symlink-to-directory.
-# BUT use the new --no-dereference option.
-rm -rf $d $f $ld || framework_failure=1
-touch $f || framework_failure=1
-mkdir $d || framework_failure=1
-ln -s $d $ld
-af=`pwd`/$f
-ln --no-dereference -fs "$af" $ld || fail=1
-test -f $ld || fail=1
-rm -rf $d $f $ld
-
-# Try to create a symlink with backup where the destination file exists
-# and the backup file name is a hard link to the destination file.
-touch a b || framework_failure=1
-ln b b~ || framework_failure=1
-ln -f --b=simple a b || fail=1
-
-# ===================================================
-# determine if link(2) follows symlinks on this system
-touch a || framework_failure=1
-ln -s a symlink || framework_failure=1
-ln symlink hard-to-sym > /dev/null 2>&1 || framework_failure=1
-ls=`ls -lG hard-to-sym`x
-case "$ls" in
- *'hard-to-symx') link_follows_symlink=yes ;;
- *'hard-to-sym -> ax') link_follows_symlink=no ;;
- *) framework_failure=1 ;;
-esac
-
-if test $link_follows_symlink = no; then
- # Create a hard link to a dangling symlink.
- # This is not portable. At least sunos4.1.4 and OpenBSD 2.3 fail this test.
- # They get this:
- # ln: cannot create hard link `hard-to-dangle' to `no-such-dir': \
- # No such file or directory
- #
- ln -s /no-such-dir || fail=1
- ln no-such-dir hard-to-dangle > /dev/null 2>&1 || fail=1
-fi
-rm -rf a symlink hard-to-sym hard-to-dangle
-# ===================================================
-
-# Make sure ln can make simple backups.
-# This was fixed in 4.0.34. Broken in 4.0r.
-for cmd in ln cp mv ginstall; do
- rm -rf a x a.orig
- touch a x || framework_failure=1
- $cmd --backup=simple --suffix=.orig x a || fail=1
- test -f a.orig || fail=1
-done
-
-# ===================================================
-# With coreutils-5.2.1, this would mistakenly access argv[1][-1].
-# I'm including it here, in case some day programs like valgrind detect that.
-# Purify probably would have done so.
-ln foo '' 2> /dev/null
-
-# ===================================================
-
-if test $framework_failure = 1; then
- echo 'failure in testing framework' 1>&2
- exit 1
-fi
-
-exit $fail
diff --git a/tests/ln/misc.sh b/tests/ln/misc.sh
new file mode 100755
index 0000000..8cf2187
--- /dev/null
+++ b/tests/ln/misc.sh
@@ -0,0 +1,124 @@
+#!/bin/sh
+# Miscellaneous tests for "ln".
+
+# Copyright (C) 1998-2016 Free Software Foundation, Inc.
+
+# This program is free software: you can redistribute it and/or modify
+# it under the terms of the GNU General Public License as published by
+# the Free Software Foundation, either version 3 of the License, or
+# (at your option) any later version.
+
+# This program is distributed in the hope that it will be useful,
+# but WITHOUT ANY WARRANTY; without even the implied warranty of
+# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
+# GNU General Public License for more details.
+
+# You should have received a copy of the GNU General Public License
+# along with this program. If not, see <http://www.gnu.org/licenses/>.
+
+. "${srcdir=.}/tests/init.sh"; path_prepend_ ./src
+print_ver_ ln
+
+t=tln-symlink
+d=tln-subdir
+ld=tln-symlink-to-subdir
+f=tln-file
+
+# Create a simple symlink with both source and destination files
+# in current directory.
+touch $f || framework_failure_
+rm -f $t || framework_failure_
+ln -s $f $t || fail=1
+test -f $t || fail=1
+rm $t $f
+
+# Create a symlink with source file and explicit destination directory/file.
+touch $f || framework_failure_
+rm -rf $d || framework_failure_
+mkdir $d || framework_failure_
+ln -s ../$f $d/$t || fail=1
+test -f $d/$t || fail=1
+rm -rf $d $f
+
+# Create a symlink with source file and destination directory.
+touch $f || framework_failure_
+rm -rf $d || framework_failure_
+mkdir $d || framework_failure_
+ln -s ../$f $d || fail=1
+test -f $d/$f || fail=1
+rm -rf $d $f
+
+# See whether a trailing slash is followed too far.
+touch $f || framework_failure_
+rm -rf $d || framework_failure_
+mkdir $d $d/$f || framework_failure_
+returns_ 1 ln $f $d/ 2> /dev/null || fail=1
+returns_ 1 ln -s $f $d/ 2> /dev/null || fail=1
+rm -rf $d $f
+
+# Make sure we get a failure with existing dest without -f option
+touch $t || framework_failure_
+# FIXME: don't ignore the error message but rather test
+# it to make sure it's the right one.
+returns_ 1 ln -s $t $t 2> /dev/null || fail=1
+rm $t
+
+# Make sure -sf fails when src and dest are the same
+touch $t || framework_failure_
+returns_ 1 ln -sf $t $t 2> /dev/null || fail=1
+rm $t
+
+# Create a symlink with source file and no explicit directory
+rm -rf $d || framework_failure_
+mkdir $d || framework_failure_
+touch $d/$f || framework_failure_
+ln -s $d/$f || fail=1
+test -f $f || fail=1
+rm -rf $d $f
+
+# Create a symlink with source file and destination symlink-to-directory.
+rm -rf $d $f $ld || framework_failure_
+touch $f || framework_failure_
+mkdir $d || framework_failure_
+ln -s $d $ld
+ln -s ../$f $ld || fail=1
+test -f $d/$f || fail=1
+rm -rf $d $f $ld
+
+# Create a symlink with source file and destination symlink-to-directory.
+# BUT use the new --no-dereference option.
+rm -rf $d $f $ld || framework_failure_
+touch $f || framework_failure_
+mkdir $d || framework_failure_
+ln -s $d $ld
+af=$(pwd)/$f
+ln --no-dereference -fs "$af" $ld || fail=1
+test -f $ld || fail=1
+rm -rf $d $f $ld
+
+# Try to create a symlink with backup where the destination file exists
+# and the backup file name is a hard link to the destination file.
+touch a b || framework_failure_
+ln b b~ || framework_failure_
+ln -f --b=simple a b || fail=1
+
+# ===================================================
+
+# Make sure ln can make simple backups.
+# This was fixed in 4.0.34. Broken in 4.0r.
+for cmd in ln cp mv ginstall; do
+ rm -rf a x a.orig
+ touch a x || framework_failure_
+ $cmd --backup=simple --suffix=.orig x a || fail=1
+ test -f a.orig || fail=1
+done
+
+# ===================================================
+# With coreutils-5.2.1, this would mistakenly access argv[1][-1].
+# I'm including it here, in case some day programs like valgrind detect that.
+# Purify probably would have done so.
+ln foo '' 2> /dev/null
+
+# ===================================================
+
+Exit $fail
diff --git a/tests/ln/relative.sh b/tests/ln/relative.sh
new file mode 100755
index 0000000..35ce998
--- /dev/null
+++ b/tests/ln/relative.sh
@@ -0,0 +1,53 @@
+#!/bin/sh
+# Test "ln --relative".
+
+# Copyright (C) 2012-2016 Free Software Foundation, Inc.
+
+# This program is free software: you can redistribute it and/or modify
+# it under the terms of the GNU General Public License as published by
+# the Free Software Foundation, either version 3 of the License, or
+# (at your option) any later version.
+
+# This program is distributed in the hope that it will be useful,
+# but WITHOUT ANY WARRANTY; without even the implied warranty of
+# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
+# GNU General Public License for more details.
+
+# You should have received a copy of the GNU General Public License
+# along with this program. If not, see <http://www.gnu.org/licenses/>.
+
+. "${srcdir=.}/tests/init.sh"; path_prepend_ ./src
+print_ver_ ln
+
+mkdir -p usr/bin || framework_failure_
+mkdir -p usr/lib/foo || framework_failure_
+touch usr/lib/foo/foo || framework_failure_
+
+ln -sr usr/lib/foo/foo usr/bin/foo
+test $(readlink usr/bin/foo) = '../lib/foo/foo' || fail=1
+
+ln -sr usr/bin/foo usr/lib/foo/link-to-foo
+test $(readlink usr/lib/foo/link-to-foo) = 'foo' || fail=1
+
+# Correctly update an existing link, which was broken in <= 8.21
+ln -s dir1/dir2/f existing_link
+ln -srf here existing_link
+test $(readlink existing_link) = 'here' || fail=1
+
+# Demonstrate resolved symlinks used to generate relative links
+# so here, 'web/latest' will not be linked to the intermediate 'latest' link.
+# You'd probably want to use realpath(1) in conjunction
+# with ln(1) without --relative to give greater control.
+ln -s release1 alpha
+ln -s release2 beta
+ln -s beta latest
+mkdir web
+ln -sr latest web/latest
+test $(readlink web/latest) = '../release2' || fail=1
+
+# Expect this to fail with exit status 1, or to succeed quietly (freebsd).
+# Prior to coreutils-8.23, it would segfault.
+ln -sr '' F
+case $? in [01]) ;; *) fail=1;; esac
+
+Exit $fail
diff --git a/tests/ln/sf-1 b/tests/ln/sf-1
deleted file mode 100755
index 971c25b..0000000
--- a/tests/ln/sf-1
+++ /dev/null
@@ -1,54 +0,0 @@
-#!/bin/sh
-# Test "ln -sf".
-
-# Copyright (C) 1997, 1998, 1999, 2000 Free Software Foundation, Inc.
-
-# This program is free software; you can redistribute it and/or modify
-# it under the terms of the GNU General Public License as published by
-# the Free Software Foundation; either version 2 of the License, or
-# (at your option) any later version.
-
-# This program is distributed in the hope that it will be useful,
-# but WITHOUT ANY WARRANTY; without even the implied warranty of
-# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
-# GNU General Public License for more details.
-
-# You should have received a copy of the GNU General Public License
-# along with this program; if not, write to the Free Software
-# Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA
-# 02110-1301, USA.
-
-test=sf-1
-
-if test "$VERBOSE" = yes; then
- set -x
- ln --version
-fi
-
-# Make sure we get English translations.
-. $srcdir/../lang-default
-
-tmp=t-ln.$$
-
-test_failure=0
-mkdir $tmp || test_failure=1
-cd $tmp || test_failure=1
-echo foo > a || test_failure=1
-ln -s . b || test_failure=1
-
-if test $test_failure = 1; then
- echo 'failure in testing framework'
- exit 1
-fi
-
-fail=0
-ln -sf a b > err 2>&1 && fail=1
-case `cat err` in
- *'are the same file') ;;
- *) fail=1 ;;
-esac
-
-cd ..
-rm -rf $tmp
-
-exit $fail
diff --git a/tests/ln/sf-1.sh b/tests/ln/sf-1.sh
new file mode 100755
index 0000000..ccf91a2
--- /dev/null
+++ b/tests/ln/sf-1.sh
@@ -0,0 +1,46 @@
+#!/bin/sh
+# Test "ln -sf".
+
+# Copyright (C) 1997-2016 Free Software Foundation, Inc.
+
+# This program is free software: you can redistribute it and/or modify
+# it under the terms of the GNU General Public License as published by
+# the Free Software Foundation, either version 3 of the License, or
+# (at your option) any later version.
+
+# This program is distributed in the hope that it will be useful,
+# but WITHOUT ANY WARRANTY; without even the implied warranty of
+# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
+# GNU General Public License for more details.
+
+# You should have received a copy of the GNU General Public License
+# along with this program. If not, see <http://www.gnu.org/licenses/>.
+
+. "${srcdir=.}/tests/init.sh"; path_prepend_ ./src
+print_ver_ ln
+
+echo foo > a || framework_failure_
+
+# Check that a target directory of '.' is supported
+# and that indirectly specifying the same target and link name
+# through that is detected.
+ln -s . b || framework_failure_
+ln -sf a b > err 2>&1 && fail=1
+case $(cat err) in
+ *'are the same file') ;;
+ *) fail=1 ;;
+esac
+
+# Ensure we replace symlinks that don't or can't link to an existing target.
+# coreutils-8.22 would fail to replace {ENOTDIR,ELOOP,ENAMETOOLONG}_link below.
+name_max_plus1=$(expr $(stat -f -c %l .) + 1)
+test $name_max_plus1 -gt 1 || skip_ 'Error determining NAME_MAX'
+long_name=$(printf '%0*d' $name_max_plus1 0)
+for f in '' f; do
+ ln -s$f missing ENOENT_link || fail=1
+ ln -s$f a/b ENOTDIR_link || fail=1
+ ln -s$f ELOOP_link ELOOP_link || fail=1
+ ln -s$f "$long_name" ENAMETOOLONG_link || fail=1
+done
+
+Exit $fail
diff --git a/tests/ln/slash-decorated-nonexistent-dest.sh b/tests/ln/slash-decorated-nonexistent-dest.sh
new file mode 100755
index 0000000..ccb0623
--- /dev/null
+++ b/tests/ln/slash-decorated-nonexistent-dest.sh
@@ -0,0 +1,29 @@
+#!/bin/sh
+# ensure that touch f; ln -T f no-such-file/ does not mistakenly succeed
+
+# Copyright (C) 2009-2016 Free Software Foundation, Inc.
+
+# This program is free software: you can redistribute it and/or modify
+# it under the terms of the GNU General Public License as published by
+# the Free Software Foundation, either version 3 of the License, or
+# (at your option) any later version.
+
+# This program is distributed in the hope that it will be useful,
+# but WITHOUT ANY WARRANTY; without even the implied warranty of
+# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
+# GNU General Public License for more details.
+
+# You should have received a copy of the GNU General Public License
+# along with this program. If not, see <http://www.gnu.org/licenses/>.
+
+. "${srcdir=.}/tests/init.sh"; path_prepend_ ./src
+print_ver_ ln
+
+touch f || framework_failure_
+
+
+# Before coreutils-7.6, this would succeed on Solaris 10
+returns_ 1 ln -T f no-such-file/ || fail=1
+test -e no-such-file && fail=1
+
+Exit $fail
diff --git a/tests/ln/target-1 b/tests/ln/target-1
deleted file mode 100755
index 3efb987..0000000
--- a/tests/ln/target-1
+++ /dev/null
@@ -1,50 +0,0 @@
-#!/bin/sh
-# Test "ln --target-dir" with one file.
-
-# Copyright (C) 2002, 2006 Free Software Foundation, Inc.
-
-# This program is free software; you can redistribute it and/or modify
-# it under the terms of the GNU General Public License as published by
-# the Free Software Foundation; either version 2 of the License, or
-# (at your option) any later version.
-
-# This program is distributed in the hope that it will be useful,
-# but WITHOUT ANY WARRANTY; without even the implied warranty of
-# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
-# GNU General Public License for more details.
-
-# You should have received a copy of the GNU General Public License
-# along with this program; if not, write to the Free Software
-# Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA
-# 02110-1301, USA.
-
-# Before coreutils-4.5.3, --target-dir didn't work with one file.
-# It would create the desired link, but would fail with a diagnosis like this:
-# ln: `d/.': cannot overwrite directory
-# Based on a test case from Dmitry V. Levin.
-
-if test "$VERBOSE" = yes; then
- set -x
- ln --version
-fi
-
-pwd=`pwd`
-t0=`echo "$0"|sed 's,.*/,,'`.tmp; tmp=$t0/$$
-trap 'status=$?; cd "$pwd" && chmod -R u+rwx $t0 && rm -rf $t0 && exit $status' 0
-trap '(exit $?); exit $?' 1 2 13 15
-
-framework_failure=0
-mkdir -p $tmp || framework_failure=1
-cd $tmp || framework_failure=1
-mkdir d || framework_failure=1
-
-if test $framework_failure = 1; then
- echo "$0: failure in testing framework" 1>&2
- (exit 1); exit 1
-fi
-
-fail=0
-
-ln -s --target-dir=d ../f || fail=1
-
-(exit $fail); exit $fail
diff --git a/tests/ln/target-1.sh b/tests/ln/target-1.sh
new file mode 100755
index 0000000..4a8a596
--- /dev/null
+++ b/tests/ln/target-1.sh
@@ -0,0 +1,30 @@
+#!/bin/sh
+# Test "ln --target-dir" with one file.
+
+# Copyright (C) 2002-2016 Free Software Foundation, Inc.
+
+# This program is free software: you can redistribute it and/or modify
+# it under the terms of the GNU General Public License as published by
+# the Free Software Foundation, either version 3 of the License, or
+# (at your option) any later version.
+
+# This program is distributed in the hope that it will be useful,
+# but WITHOUT ANY WARRANTY; without even the implied warranty of
+# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
+# GNU General Public License for more details.
+
+# You should have received a copy of the GNU General Public License
+# along with this program. If not, see <http://www.gnu.org/licenses/>.
+
+# Before coreutils-4.5.3, --target-dir didn't work with one file.
+# It would create the desired link, but would fail with a diagnosis like this:
+# ln: 'd/.': cannot overwrite directory
+# Based on a test case from Dmitry V. Levin.
+
+. "${srcdir=.}/tests/init.sh"; path_prepend_ ./src
+print_ver_ ln
+
+mkdir d || framework_failure_
+ln -s --target-dir=d ../f || fail=1
+
+Exit $fail
diff --git a/tests/local.mk b/tests/local.mk
new file mode 100644
index 0000000..8898897
--- /dev/null
+++ b/tests/local.mk
@@ -0,0 +1,860 @@
+## Process this file with automake to produce Makefile.in -*-Makefile-*-.
+
+## Copyright (C) 2007-2016 Free Software Foundation, Inc.
+
+## This program is free software: you can redistribute it and/or modify
+## it under the terms of the GNU General Public License as published by
+## the Free Software Foundation, either version 3 of the License, or
+## (at your option) any later version.
+
+## This program is distributed in the hope that it will be useful,
+## but WITHOUT ANY WARRANTY; without even the implied warranty of
+## MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
+## GNU General Public License for more details.
+
+## You should have received a copy of the GNU General Public License
+## along with this program. If not, see <http://www.gnu.org/licenses/>.
+
+# Indirections required so that we'll still be able to know the
+# complete list of our tests even if the user overrides TESTS
+# from the command line (as permitted by the test harness API).
+TESTS = $(all_tests) $(factor_tests)
+root_tests = $(all_root_tests)
+
+EXTRA_DIST += $(all_tests)
+
+TEST_EXTENSIONS = .sh .pl .xpl
+
+if HAVE_PERL
+TESTSUITE_PERL = $(PERL)
+else
+TESTSUITE_PERL = $(SHELL) $(srcdir)/no-perl
+endif
+
+# Options passed to the perl invocations running the perl test scripts.
+TESTSUITE_PERL_OPTIONS = -w -I$(srcdir)/tests -MCuSkip -MCoreutils
+# '$f' is set by the Automake-generated test harness to the path of the
+# current test script stripped of VPATH components, and is used by the
+# CuTmpdir module to determine the name of the temporary files to be
+# used. Note that $f is a shell variable, not a make macro, so the use
+# of '$$f' below is correct, and not a typo.
+TESTSUITE_PERL_OPTIONS += -M"CuTmpdir qw($$f)"
+
+SH_LOG_COMPILER = $(SHELL)
+PL_LOG_COMPILER = $(TESTSUITE_PERL) $(TESTSUITE_PERL_OPTIONS)
+# Perl scripts that must be run in tainted mode.
+XPL_LOG_COMPILER = $(TESTSUITE_PERL) -T $(TESTSUITE_PERL_OPTIONS)
+
+# We don't want this to go in the top-level directory.
+TEST_SUITE_LOG = tests/test-suite.log
+
+# Note that the first lines are statements. They ensure that environment
+# variables that can perturb tests are unset or set to expected values.
+# The rest are envvar settings that propagate build-related Makefile
+# variables to test scripts.
+TESTS_ENVIRONMENT = \
+ . $(srcdir)/tests/lang-default; \
+ tmp__=$${TMPDIR-/tmp}; \
+ test -d "$$tmp__" && test -w "$$tmp__" || tmp__=.; \
+ . $(srcdir)/tests/envvar-check; \
+ TMPDIR=$$tmp__; export TMPDIR; \
+ export \
+ VERSION='$(VERSION)' \
+ LOCALE_FR='$(LOCALE_FR)' \
+ LOCALE_FR_UTF8='$(LOCALE_FR_UTF8)' \
+ abs_top_builddir='$(abs_top_builddir)' \
+ abs_top_srcdir='$(abs_top_srcdir)' \
+ abs_srcdir='$(abs_srcdir)' \
+ built_programs='$(built_programs) $(single_binary_progs)' \
+ host_os=$(host_os) \
+ host_triplet='$(host_triplet)' \
+ srcdir='$(srcdir)' \
+ top_srcdir='$(top_srcdir)' \
+ CONFIG_HEADER='$(abs_top_builddir)/$(CONFIG_INCLUDE)' \
+ CU_TEST_NAME=`basename '$(abs_srcdir)'`,`echo $$tst|sed 's,^\./,,;s,/,-,g'` \
+ CC='$(CC)' \
+ AWK='$(AWK)' \
+ EGREP='$(EGREP)' \
+ EXEEXT='$(EXEEXT)' \
+ MAKE=$(MAKE) \
+ PACKAGE_VERSION=$(PACKAGE_VERSION) \
+ PERL='$(PERL)' \
+ SHELL='$(PREFERABLY_POSIX_SHELL)' \
+ ; test -d /usr/xpg4/bin && PATH='/usr/xpg4/bin$(PATH_SEPARATOR)'"$$PATH"; \
+ PATH='$(abs_top_builddir)/src$(PATH_SEPARATOR)'"$$PATH" \
+ ; 9>&2
+
+# On failure, display the global testsuite log on stdout.
+VERBOSE = yes
+
+EXTRA_DIST += \
+ init.cfg \
+ tests/Coreutils.pm \
+ tests/CuSkip.pm \
+ tests/CuTmpdir.pm \
+ tests/d_type-check \
+ tests/envvar-check \
+ tests/factor/run.sh \
+ tests/factor/create-test.sh \
+ tests/filefrag-extent-compare \
+ tests/fiemap-capable \
+ tests/init.sh \
+ tests/lang-default \
+ tests/no-perl \
+ tests/other-fs-tmpdir \
+ tests/sample-test \
+ $(pr_data)
+
+all_root_tests = \
+ tests/chown/basic.sh \
+ tests/cp/cp-a-selinux.sh \
+ tests/cp/preserve-gid.sh \
+ tests/cp/special-bits.sh \
+ tests/cp/cp-mv-enotsup-xattr.sh \
+ tests/cp/capability.sh \
+ tests/cp/sparse-fiemap.sh \
+ tests/dd/skip-seek-past-dev.sh \
+ tests/df/problematic-chars.sh \
+ tests/df/over-mount-device.sh \
+ tests/du/bind-mount-dir-cycle.sh \
+ tests/du/bind-mount-dir-cycle-v2.sh \
+ tests/id/setgid.sh \
+ tests/install/install-C-root.sh \
+ tests/ls/capability.sh \
+ tests/ls/nameless-uid.sh \
+ tests/misc/chcon.sh \
+ tests/misc/chroot-credentials.sh \
+ tests/misc/selinux.sh \
+ tests/misc/truncate-owned-by-other.sh \
+ tests/mkdir/writable-under-readonly.sh \
+ tests/mkdir/smack-root.sh \
+ tests/mv/hardlink-case.sh \
+ tests/mv/sticky-to-xpart.sh \
+ tests/rm/fail-2eperm.sh \
+ tests/rm/no-give-up.sh \
+ tests/rm/one-file-system.sh \
+ tests/rm/read-only.sh \
+ tests/tail-2/append-only.sh \
+ tests/touch/now-owned-by-other.sh
+
+ALL_RECURSIVE_TARGETS += check-root
+.PHONY: check-root
+check-root:
+ $(MAKE) check TESTS='$(root_tests)' SUBDIRS=.
+
+# Do not choose a name that is a shell keyword like 'if', or a
+# commonly-used utility like 'cat' or 'test', as the name of a test.
+# Otherwise, VPATH builds will fail on hosts like Solaris, since they
+# will expand 'if test ...' to 'if .../test ...', and the '.../test'
+# will execute the test script rather than the standard utility.
+
+# Notes on the ordering of these tests:
+# Place early in the list tests of the tools that
+# are most commonly used in test scripts themselves.
+# E.g., nearly every test script uses rm and chmod.
+# help-version comes early because it's a basic sanity test.
+# Put seq early, since lots of other tests use it.
+# Put tests that sleep early, but not all together, so in parallel builds
+# they share time with tests that burn CPU, not with others that sleep.
+# Put head-elide-tail early, because it's long-running.
+
+all_tests = \
+ tests/misc/help-version.sh \
+ tests/tail-2/inotify-race.sh \
+ tests/tail-2/inotify-race2.sh \
+ tests/misc/invalid-opt.pl \
+ tests/rm/ext3-perf.sh \
+ tests/rm/cycle.sh \
+ tests/cp/link-heap.sh \
+ tests/cp/no-ctx.sh \
+ tests/misc/tty-eof.pl \
+ tests/tail-2/inotify-hash-abuse.sh \
+ tests/tail-2/inotify-hash-abuse2.sh \
+ tests/tail-2/F-vs-missing.sh \
+ tests/tail-2/F-vs-rename.sh \
+ tests/tail-2/F-headers.sh \
+ tests/tail-2/descriptor-vs-rename.sh \
+ tests/tail-2/inotify-rotate.sh \
+ tests/tail-2/inotify-rotate-resources.sh \
+ tests/chmod/no-x.sh \
+ tests/chgrp/basic.sh \
+ tests/rm/dangling-symlink.sh \
+ tests/misc/ls-time.sh \
+ tests/rm/d-1.sh \
+ tests/rm/d-2.sh \
+ tests/rm/d-3.sh \
+ tests/rm/deep-1.sh \
+ tests/rm/deep-2.sh \
+ tests/rm/dir-no-w.sh \
+ tests/rm/dir-nonrecur.sh \
+ tests/rm/dot-rel.sh \
+ tests/rm/isatty.sh \
+ tests/rm/empty-inacc.sh \
+ tests/rm/empty-name.pl \
+ tests/rm/f-1.sh \
+ tests/rm/fail-eacces.sh \
+ tests/rm/fail-eperm.xpl \
+ tests/tail-2/assert.sh \
+ tests/rm/hash.sh \
+ tests/rm/i-1.sh \
+ tests/rm/i-never.sh \
+ tests/rm/i-no-r.sh \
+ tests/rm/ignorable.sh \
+ tests/rm/inaccessible.sh \
+ tests/rm/interactive-always.sh \
+ tests/rm/interactive-once.sh \
+ tests/rm/ir-1.sh \
+ tests/rm/one-file-system2.sh \
+ tests/rm/r-1.sh \
+ tests/rm/r-2.sh \
+ tests/rm/r-3.sh \
+ tests/rm/r-4.sh \
+ tests/rm/r-root.sh \
+ tests/rm/readdir-bug.sh \
+ tests/rm/rm1.sh \
+ tests/touch/empty-file.sh \
+ tests/rm/rm2.sh \
+ tests/rm/rm3.sh \
+ tests/rm/rm4.sh \
+ tests/rm/rm5.sh \
+ tests/rm/sunos-1.sh \
+ tests/rm/unread2.sh \
+ tests/rm/unread3.sh \
+ tests/rm/unreadable.pl \
+ tests/rm/v-slash.sh \
+ tests/rm/many-dir-entries-vs-OOM.sh \
+ tests/chgrp/default-no-deref.sh \
+ tests/chgrp/deref.sh \
+ tests/chgrp/no-x.sh \
+ tests/chgrp/posix-H.sh \
+ tests/chgrp/recurse.sh \
+ tests/fmt/base.pl \
+ tests/fmt/long-line.sh \
+ tests/fmt/goal-option.sh \
+ tests/misc/env.sh \
+ tests/misc/ptx.pl \
+ tests/misc/test.pl \
+ tests/misc/seq.pl \
+ tests/misc/seq-long-double.sh \
+ tests/misc/seq-precision.sh \
+ tests/misc/head.pl \
+ tests/misc/head-elide-tail.pl \
+ tests/tail-2/tail-n0f.sh \
+ tests/misc/ls-misc.pl \
+ tests/misc/date.pl \
+ tests/misc/date-next-dow.pl \
+ tests/misc/ptx-overrun.sh \
+ tests/misc/xstrtol.pl \
+ tests/tail-2/pid.sh \
+ tests/misc/od.pl \
+ tests/misc/od-endian.sh \
+ tests/misc/od-float.sh \
+ tests/misc/mktemp.pl \
+ tests/misc/arch.sh \
+ tests/misc/join.pl \
+ tests/pr/pr-tests.pl \
+ tests/misc/pwd-option.sh \
+ tests/misc/chcon-fail.sh \
+ tests/misc/coreutils.sh \
+ tests/misc/cut.pl \
+ tests/misc/cut-huge-range.sh \
+ tests/misc/wc.pl \
+ tests/misc/wc-files0-from.pl \
+ tests/misc/wc-files0.sh \
+ tests/misc/wc-parallel.sh \
+ tests/misc/wc-proc.sh \
+ tests/misc/cat-proc.sh \
+ tests/misc/cat-buf.sh \
+ tests/misc/cat-self.sh \
+ tests/misc/base64.pl \
+ tests/misc/basename.pl \
+ tests/misc/close-stdout.sh \
+ tests/misc/chroot-fail.sh \
+ tests/misc/comm.pl \
+ tests/misc/csplit.sh \
+ tests/misc/csplit-1000.sh \
+ tests/misc/csplit-heap.sh \
+ tests/misc/csplit-io-err.sh \
+ tests/misc/csplit-suppress-matched.pl \
+ tests/misc/date-sec.sh \
+ tests/misc/dircolors.pl \
+ tests/misc/dirname.pl \
+ tests/misc/env-null.sh \
+ tests/misc/expand.pl \
+ tests/misc/expr.pl \
+ tests/misc/factor.pl \
+ tests/misc/factor-parallel.sh \
+ tests/misc/false-status.sh \
+ tests/misc/fold.pl \
+ tests/misc/groups-dash.sh \
+ tests/misc/groups-version.sh \
+ tests/misc/head-c.sh \
+ tests/misc/head-pos.sh \
+ tests/misc/head-write-error.sh \
+ tests/misc/kill.sh \
+ tests/misc/md5sum.pl \
+ tests/misc/md5sum-bsd.sh \
+ tests/misc/md5sum-newline.pl \
+ tests/misc/md5sum-parallel.sh \
+ tests/misc/mknod.sh \
+ tests/misc/nice.sh \
+ tests/misc/nice-fail.sh \
+ tests/misc/nl.sh \
+ tests/misc/nohup.sh \
+ tests/misc/nproc-avail.sh \
+ tests/misc/nproc-positive.sh \
+ tests/misc/numfmt.pl \
+ tests/misc/od-N.sh \
+ tests/misc/od-j.sh \
+ tests/misc/od-multiple-t.sh \
+ tests/misc/od-x8.sh \
+ tests/misc/paste.pl \
+ tests/misc/pathchk1.sh \
+ tests/misc/printenv.sh \
+ tests/misc/printf.sh \
+ tests/misc/printf-cov.pl \
+ tests/misc/printf-hex.sh \
+ tests/misc/printf-surprise.sh \
+ tests/misc/printf-quote.sh \
+ tests/misc/pwd-long.sh \
+ tests/misc/readlink-fp-loop.sh \
+ tests/misc/readlink-root.sh \
+ tests/misc/realpath.sh \
+ tests/misc/runcon-no-reorder.sh \
+ tests/misc/sha1sum.pl \
+ tests/misc/sha1sum-vec.pl \
+ tests/misc/sha224sum.pl \
+ tests/misc/sha256sum.pl \
+ tests/misc/sha384sum.pl \
+ tests/misc/sha512sum.pl \
+ tests/misc/shred-exact.sh \
+ tests/misc/shred-passes.sh \
+ tests/misc/shred-remove.sh \
+ tests/misc/shred-size.sh \
+ tests/misc/shuf.sh \
+ tests/misc/shuf-reservoir.sh \
+ tests/misc/sort.pl \
+ tests/misc/sort-benchmark-random.sh \
+ tests/misc/sort-compress.sh \
+ tests/misc/sort-compress-hang.sh \
+ tests/misc/sort-compress-proc.sh \
+ tests/misc/sort-continue.sh \
+ tests/misc/sort-debug-keys.sh \
+ tests/misc/sort-debug-warn.sh \
+ tests/misc/sort-discrim.sh \
+ tests/misc/sort-files0-from.pl \
+ tests/misc/sort-float.sh \
+ tests/misc/sort-merge.pl \
+ tests/misc/sort-merge-fdlimit.sh \
+ tests/misc/sort-month.sh \
+ tests/misc/sort-exit-early.sh \
+ tests/misc/sort-rand.sh \
+ tests/misc/sort-spinlock-abuse.sh \
+ tests/misc/sort-stale-thread-mem.sh \
+ tests/misc/sort-unique.sh \
+ tests/misc/sort-unique-segv.sh \
+ tests/misc/sort-version.sh \
+ tests/misc/sort-NaN-infloop.sh \
+ tests/misc/sort-u-FMR.sh \
+ tests/split/filter.sh \
+ tests/split/suffix-auto-length.sh \
+ tests/split/suffix-length.sh \
+ tests/split/additional-suffix.sh \
+ tests/split/b-chunk.sh \
+ tests/split/fail.sh \
+ tests/split/lines.sh \
+ tests/split/line-bytes.sh \
+ tests/split/l-chunk.sh \
+ tests/split/r-chunk.sh \
+ tests/split/record-sep.sh \
+ tests/split/numeric.sh \
+ tests/split/guard-input.sh \
+ tests/misc/stat-birthtime.sh \
+ tests/misc/stat-fmt.sh \
+ tests/misc/stat-hyphen.sh \
+ tests/misc/stat-mount.sh \
+ tests/misc/stat-nanoseconds.sh \
+ tests/misc/stat-printf.pl \
+ tests/misc/stat-slash.sh \
+ tests/misc/stdbuf.sh \
+ tests/misc/stty.sh \
+ tests/misc/stty-invalid.sh \
+ tests/misc/stty-pairs.sh \
+ tests/misc/stty-row-col.sh \
+ tests/misc/sum.pl \
+ tests/misc/sum-sysv.sh \
+ tests/misc/sync.sh \
+ tests/misc/tac.pl \
+ tests/misc/tac-continue.sh \
+ tests/misc/tac-2-nonseekable.sh \
+ tests/misc/tail.pl \
+ tests/misc/tee.sh \
+ tests/misc/test-diag.pl \
+ tests/misc/timeout.sh \
+ tests/misc/timeout-blocked.pl \
+ tests/misc/timeout-group.sh \
+ tests/misc/timeout-parameters.sh \
+ tests/misc/tr.pl \
+ tests/misc/tr-case-class.sh \
+ tests/misc/truncate-dangling-symlink.sh \
+ tests/misc/truncate-dir-fail.sh \
+ tests/misc/truncate-fail-diag.sh \
+ tests/misc/truncate-fifo.sh \
+ tests/misc/truncate-no-create-missing.sh \
+ tests/misc/truncate-overflow.sh \
+ tests/misc/truncate-parameters.sh \
+ tests/misc/truncate-relative.sh \
+ tests/misc/tsort.pl \
+ tests/misc/unexpand.pl \
+ tests/misc/uniq.pl \
+ tests/misc/uniq-perf.sh \
+ tests/misc/xattr.sh \
+ tests/misc/yes.sh \
+ tests/tail-2/wait.sh \
+ tests/tail-2/retry.sh \
+ tests/tail-2/symlink.sh \
+ tests/tail-2/tail-c.sh \
+ tests/tail-2/truncate.sh \
+ tests/chmod/c-option.sh \
+ tests/chmod/equal-x.sh \
+ tests/chmod/equals.sh \
+ tests/chmod/inaccessible.sh \
+ tests/chmod/octal.sh \
+ tests/chmod/setgid.sh \
+ tests/chmod/silent.sh \
+ tests/chmod/thru-dangling.sh \
+ tests/chmod/umask-x.sh \
+ tests/chmod/usage.sh \
+ tests/chown/deref.sh \
+ tests/chown/preserve-root.sh \
+ tests/chown/separator.sh \
+ tests/cp/abuse.sh \
+ tests/cp/acl.sh \
+ tests/cp/attr-existing.sh \
+ tests/cp/backup-1.sh \
+ tests/cp/backup-dir.sh \
+ tests/cp/backup-is-src.sh \
+ tests/cp/cp-HL.sh \
+ tests/cp/cp-deref.sh \
+ tests/cp/cp-i.sh \
+ tests/cp/cp-mv-backup.sh \
+ tests/cp/cp-parents.sh \
+ tests/cp/deref-slink.sh \
+ tests/cp/dir-rm-dest.sh \
+ tests/cp/dir-slash.sh \
+ tests/cp/dir-vs-file.sh \
+ tests/cp/existing-perm-dir.sh \
+ tests/cp/existing-perm-race.sh \
+ tests/cp/fail-perm.sh \
+ tests/cp/fiemap-extents.sh \
+ tests/cp/fiemap-FMR.sh \
+ tests/cp/fiemap-perf.sh \
+ tests/cp/fiemap-2.sh \
+ tests/cp/file-perm-race.sh \
+ tests/cp/into-self.sh \
+ tests/cp/link.sh \
+ tests/cp/link-deref.sh \
+ tests/cp/link-no-deref.sh \
+ tests/cp/link-preserve.sh \
+ tests/cp/link-symlink.sh \
+ tests/cp/nfs-removal-race.sh \
+ tests/cp/no-deref-link1.sh \
+ tests/cp/no-deref-link2.sh \
+ tests/cp/no-deref-link3.sh \
+ tests/cp/parent-perm.sh \
+ tests/cp/parent-perm-race.sh \
+ tests/cp/perm.sh \
+ tests/cp/preserve-2.sh \
+ tests/cp/preserve-link.sh \
+ tests/cp/preserve-mode.sh \
+ tests/cp/preserve-slink-time.sh \
+ tests/cp/proc-short-read.sh \
+ tests/cp/proc-zero-len.sh \
+ tests/cp/r-vs-symlink.sh \
+ tests/cp/reflink-auto.sh \
+ tests/cp/reflink-perm.sh \
+ tests/cp/same-file.sh \
+ tests/cp/slink-2-slink.sh \
+ tests/cp/sparse.sh \
+ tests/cp/sparse-to-pipe.sh \
+ tests/cp/special-f.sh \
+ tests/cp/src-base-dot.sh \
+ tests/cp/symlink-slash.sh \
+ tests/cp/thru-dangling.sh \
+ tests/df/header.sh \
+ tests/df/df-P.sh \
+ tests/df/df-output.sh \
+ tests/df/df-symlink.sh \
+ tests/df/unreadable.sh \
+ tests/df/total-unprocessed.sh \
+ tests/df/no-mtab-status.sh \
+ tests/df/skip-duplicates.sh \
+ tests/df/skip-rootfs.sh \
+ tests/dd/ascii.sh \
+ tests/dd/direct.sh \
+ tests/dd/misc.sh \
+ tests/dd/no-allocate.sh \
+ tests/dd/nocache.sh \
+ tests/dd/not-rewound.sh \
+ tests/dd/reblock.sh \
+ tests/dd/skip-seek.pl \
+ tests/dd/skip-seek2.sh \
+ tests/dd/bytes.sh \
+ tests/dd/skip-seek-past-file.sh \
+ tests/dd/sparse.sh \
+ tests/dd/stderr.sh \
+ tests/dd/unblock.pl \
+ tests/dd/unblock-sync.sh \
+ tests/dd/stats.sh \
+ tests/df/total-verify.sh \
+ tests/du/2g.sh \
+ tests/du/8gb.sh \
+ tests/du/basic.sh \
+ tests/du/bigtime.sh \
+ tests/du/deref.sh \
+ tests/du/deref-args.sh \
+ tests/du/exclude.sh \
+ tests/du/fd-leak.sh \
+ tests/du/files0-from.pl \
+ tests/du/files0-from-dir.sh \
+ tests/du/hard-link.sh \
+ tests/du/inacc-dest.sh \
+ tests/du/inacc-dir.sh \
+ tests/du/inaccessible-cwd.sh \
+ tests/du/inodes.sh \
+ tests/du/long-from-unreadable.sh \
+ tests/du/long-sloop.sh \
+ tests/du/max-depth.sh \
+ tests/du/move-dir-while-traversing.sh \
+ tests/du/no-deref.sh \
+ tests/du/no-x.sh \
+ tests/du/one-file-system.sh \
+ tests/du/restore-wd.sh \
+ tests/du/slash.sh \
+ tests/du/threshold.sh \
+ tests/du/trailing-slash.sh \
+ tests/du/two-args.sh \
+ tests/id/gnu-zero-uids.sh \
+ tests/id/no-context.sh \
+ tests/id/context.sh \
+ tests/id/uid.sh \
+ tests/id/zero.sh \
+ tests/id/smack.sh \
+ tests/install/basic-1.sh \
+ tests/install/create-leading.sh \
+ tests/install/d-slashdot.sh \
+ tests/install/install-C.sh \
+ tests/install/install-C-selinux.sh \
+ tests/install/strip-program.sh \
+ tests/install/trap.sh \
+ tests/ln/backup-1.sh \
+ tests/ln/hard-backup.sh \
+ tests/ln/hard-to-sym.sh \
+ tests/ln/misc.sh \
+ tests/ln/relative.sh \
+ tests/ln/sf-1.sh \
+ tests/ln/slash-decorated-nonexistent-dest.sh \
+ tests/ln/target-1.sh \
+ tests/ls/abmon-align.sh \
+ tests/ls/block-size.sh \
+ tests/ls/color-clear-to-eol.sh \
+ tests/ls/color-dtype-dir.sh \
+ tests/ls/color-norm.sh \
+ tests/ls/color-term.sh \
+ tests/ls/dangle.sh \
+ tests/ls/dired.sh \
+ tests/ls/file-type.sh \
+ tests/ls/follow-slink.sh \
+ tests/ls/getxattr-speedup.sh \
+ tests/ls/hex-option.sh \
+ tests/ls/infloop.sh \
+ tests/ls/inode.sh \
+ tests/ls/m-option.sh \
+ tests/ls/w-option.sh \
+ tests/ls/multihardlink.sh \
+ tests/ls/no-arg.sh \
+ tests/ls/no-cap.sh \
+ tests/ls/proc-selinux-segfault.sh \
+ tests/ls/readdir-mountpoint-inode.sh \
+ tests/ls/recursive.sh \
+ tests/ls/root-rel-symlink-color.sh \
+ tests/ls/rt-1.sh \
+ tests/ls/slink-acl.sh \
+ tests/ls/stat-dtype.sh \
+ tests/ls/stat-failed.sh \
+ tests/ls/stat-free-color.sh \
+ tests/ls/stat-free-symlinks.sh \
+ tests/ls/stat-vs-dirent.sh \
+ tests/ls/symlink-slash.sh \
+ tests/ls/time-style-diag.sh \
+ tests/ls/x-option.sh \
+ tests/mkdir/p-1.sh \
+ tests/mkdir/p-2.sh \
+ tests/mkdir/p-3.sh \
+ tests/mkdir/p-acl.sh \
+ tests/mkdir/p-slashdot.sh \
+ tests/mkdir/p-thru-slink.sh \
+ tests/mkdir/p-v.sh \
+ tests/mkdir/parents.sh \
+ tests/mkdir/perm.sh \
+ tests/mkdir/selinux.sh \
+ tests/mkdir/restorecon.sh \
+ tests/mkdir/special-1.sh \
+ tests/mkdir/t-slash.sh \
+ tests/mkdir/smack-no-root.sh \
+ tests/mv/acl.sh \
+ tests/mv/atomic.sh \
+ tests/mv/atomic2.sh \
+ tests/mv/backup-dir.sh \
+ tests/mv/backup-is-src.sh \
+ tests/mv/childproof.sh \
+ tests/mv/diag.sh \
+ tests/mv/dir-file.sh \
+ tests/mv/dir2dir.sh \
+ tests/mv/dup-source.sh \
+ tests/mv/force.sh \
+ tests/mv/hard-2.sh \
+ tests/mv/hard-3.sh \
+ tests/mv/hard-4.sh \
+ tests/mv/hard-link-1.sh \
+ tests/mv/i-1.pl \
+ tests/mv/i-2.sh \
+ tests/mv/i-3.sh \
+ tests/mv/i-4.sh \
+ tests/mv/i-5.sh \
+ tests/mv/i-link-no.sh \
+ tests/mv/into-self.sh \
+ tests/mv/into-self-2.sh \
+ tests/mv/into-self-3.sh \
+ tests/mv/into-self-4.sh \
+ tests/mv/leak-fd.sh \
+ tests/mv/mv-n.sh \
+ tests/mv/mv-special-1.sh \
+ tests/mv/no-target-dir.sh \
+ tests/mv/part-fail.sh \
+ tests/mv/part-hardlink.sh \
+ tests/mv/part-rename.sh \
+ tests/mv/part-symlink.sh \
+ tests/mv/partition-perm.sh \
+ tests/mv/perm-1.sh \
+ tests/mv/symlink-onto-hardlink.sh \
+ tests/mv/symlink-onto-hardlink-to-self.sh \
+ tests/mv/to-symlink.sh \
+ tests/mv/trailing-slash.sh \
+ tests/mv/update.sh \
+ tests/readlink/can-e.sh \
+ tests/readlink/can-f.sh \
+ tests/readlink/can-m.sh \
+ tests/readlink/multi.sh \
+ tests/readlink/rl-1.sh \
+ tests/rmdir/fail-perm.sh \
+ tests/rmdir/ignore.sh \
+ tests/rmdir/t-slash.sh \
+ tests/tail-2/assert-2.sh \
+ tests/tail-2/big-4gb.sh \
+ tests/tail-2/flush-initial.sh \
+ tests/tail-2/follow-name.sh \
+ tests/tail-2/follow-stdin.sh \
+ tests/tail-2/pipe-f.sh \
+ tests/tail-2/pipe-f2.sh \
+ tests/tail-2/proc-ksyms.sh \
+ tests/tail-2/start-middle.sh \
+ tests/touch/60-seconds.sh \
+ tests/touch/dangling-symlink.sh \
+ tests/touch/dir-1.sh \
+ tests/touch/fail-diag.sh \
+ tests/touch/fifo.sh \
+ tests/touch/no-create-missing.sh \
+ tests/touch/no-dereference.sh \
+ tests/touch/no-rights.sh \
+ tests/touch/not-owner.sh \
+ tests/touch/obsolescent.sh \
+ tests/touch/read-only.sh \
+ tests/touch/relative.sh \
+ tests/touch/trailing-slash.sh \
+ $(all_root_tests)
+
+# See tests/factor/create-test.sh.
+tf = tests/factor
+factor_tests = \
+ $(tf)/t00.sh $(tf)/t01.sh $(tf)/t02.sh $(tf)/t03.sh $(tf)/t04.sh \
+ $(tf)/t05.sh $(tf)/t06.sh $(tf)/t07.sh $(tf)/t08.sh $(tf)/t09.sh \
+ $(tf)/t10.sh $(tf)/t11.sh $(tf)/t12.sh $(tf)/t13.sh $(tf)/t14.sh \
+ $(tf)/t15.sh $(tf)/t16.sh $(tf)/t17.sh $(tf)/t18.sh $(tf)/t19.sh \
+ $(tf)/t20.sh $(tf)/t21.sh $(tf)/t22.sh $(tf)/t23.sh $(tf)/t24.sh \
+ $(tf)/t25.sh $(tf)/t26.sh $(tf)/t27.sh $(tf)/t28.sh $(tf)/t29.sh \
+ $(tf)/t30.sh $(tf)/t31.sh $(tf)/t32.sh $(tf)/t33.sh $(tf)/t34.sh \
+ $(tf)/t35.sh $(tf)/t36.sh
+
+$(factor_tests): $(tf)/run.sh $(tf)/create-test.sh
+ $(AM_V_GEN)$(MKDIR_P) $(tf)
+ $(AM_V_at)$(SHELL) $(srcdir)/$(tf)/create-test.sh $@ \
+ $(srcdir)/$(tf)/run.sh > $@-t
+ $(AM_V_at)chmod a+x $@-t
+ $(AM_V_at)mv -f $@-t $@
+
+CLEANFILES += $(factor_tests)
+
+pr_data = \
+ tests/pr/0F \
+ tests/pr/0FF \
+ tests/pr/0FFnt \
+ tests/pr/0FFt \
+ tests/pr/0FnFnt \
+ tests/pr/0FnFt \
+ tests/pr/0Fnt \
+ tests/pr/0Ft \
+ tests/pr/2-S_f-t_notab \
+ tests/pr/2-Sf-t_notab \
+ tests/pr/2f-t_notab \
+ tests/pr/2s_f-t_notab \
+ tests/pr/2s_w60f-t_nota \
+ tests/pr/2sf-t_notab \
+ tests/pr/2sw60f-t_notab \
+ tests/pr/2w60f-t_notab \
+ tests/pr/3-0F \
+ tests/pr/3-5l24f-t \
+ tests/pr/3-FF \
+ tests/pr/3a2l17-FF \
+ tests/pr/3a3f-0F \
+ tests/pr/3a3l15-t \
+ tests/pr/3a3l15f-t \
+ tests/pr/3b2l17-FF \
+ tests/pr/3b3f-0F \
+ tests/pr/3b3f-0FF \
+ tests/pr/3b3f-FF \
+ tests/pr/3b3l15-t \
+ tests/pr/3b3l15f-t \
+ tests/pr/3f-0F \
+ tests/pr/3f-FF \
+ tests/pr/3l24-t \
+ tests/pr/3l24f-t \
+ tests/pr/3ml24-FF \
+ tests/pr/3ml24-t \
+ tests/pr/3ml24-t-FF \
+ tests/pr/3ml24f-t \
+ tests/pr/4-7l24-FF \
+ tests/pr/4l24-FF \
+ tests/pr/FF \
+ tests/pr/FFn \
+ tests/pr/FFtn \
+ tests/pr/FnFn \
+ tests/pr/Ja3l24f-lm \
+ tests/pr/Jb3l24f-lm \
+ tests/pr/Jml24f-lm-lo \
+ tests/pr/W-72l24f-ll \
+ tests/pr/W20l24f-ll \
+ tests/pr/W26l24f-ll \
+ tests/pr/W27l24f-ll \
+ tests/pr/W28l24f-ll \
+ tests/pr/W35Ja3l24f-lm \
+ tests/pr/W35Jb3l24f-lm \
+ tests/pr/W35Jml24f-lmlo \
+ tests/pr/W35a3l24f-lm \
+ tests/pr/W35b3l24f-lm \
+ tests/pr/W35ml24f-lm-lo \
+ tests/pr/W72Jl24f-ll \
+ tests/pr/a2l15-FF \
+ tests/pr/a2l17-FF \
+ tests/pr/a3-0F \
+ tests/pr/a3f-0F \
+ tests/pr/a3f-0FF \
+ tests/pr/a3f-FF \
+ tests/pr/a3l15-t \
+ tests/pr/a3l15f-t \
+ tests/pr/a3l24f-lm \
+ tests/pr/b2l15-FF \
+ tests/pr/b2l17-FF \
+ tests/pr/b3-0F \
+ tests/pr/b3f-0F \
+ tests/pr/b3f-0FF \
+ tests/pr/b3f-FF \
+ tests/pr/b3l15-t \
+ tests/pr/b3l15f-t \
+ tests/pr/b3l24f-lm \
+ tests/pr/l24-FF \
+ tests/pr/l24-t \
+ tests/pr/l24f-t \
+ tests/pr/loli \
+ tests/pr/ml20-FF-t \
+ tests/pr/ml24-FF \
+ tests/pr/ml24-t \
+ tests/pr/ml24-t-FF \
+ tests/pr/ml24f-0F \
+ tests/pr/ml24f-lm-lo \
+ tests/pr/ml24f-t \
+ tests/pr/ml24f-t-0F \
+ tests/pr/n+2-5l24f-0FF \
+ tests/pr/n+2l24f-0FF \
+ tests/pr/n+2l24f-bl \
+ tests/pr/n+3-7l24-FF \
+ tests/pr/n+3l24f-0FF \
+ tests/pr/n+3l24f-bl \
+ tests/pr/n+3ml20f-bl-FF \
+ tests/pr/n+3ml24f-bl-tn \
+ tests/pr/n+3ml24f-tn-bl \
+ tests/pr/n+4-8a2l17-FF \
+ tests/pr/n+4b2l17f-0FF \
+ tests/pr/n+5-8b3l17f-FF \
+ tests/pr/n+5a3l13f-0FF \
+ tests/pr/n+6a2l17-FF \
+ tests/pr/n+6b3l13f-FF \
+ tests/pr/n+7l24-FF \
+ tests/pr/n+8l20-FF \
+ tests/pr/nJml24f-lmlmlo \
+ tests/pr/nJml24f-lmlolm \
+ tests/pr/nN1+3l24f-bl \
+ tests/pr/nN15l24f-bl \
+ tests/pr/nSml20-bl-FF \
+ tests/pr/nSml20-t-t-FF \
+ tests/pr/nSml20-t-tFFFF \
+ tests/pr/nSml24-bl-FF \
+ tests/pr/nSml24-t-t-FF \
+ tests/pr/nSml24-t-tFFFF \
+ tests/pr/nl24f-bl \
+ tests/pr/o3Jml24f-lm-lo \
+ tests/pr/o3a3Sl24f-tn \
+ tests/pr/o3a3Snl24f-tn \
+ tests/pr/o3a3l24f-tn \
+ tests/pr/o3b3Sl24f-tn \
+ tests/pr/o3b3Snl24f-tn \
+ tests/pr/o3b3l24f-tn \
+ tests/pr/o3mSl24f-bl-tn \
+ tests/pr/o3mSnl24fbltn \
+ tests/pr/o3ml24f-bl-tn \
+ tests/pr/t-0FF \
+ tests/pr/t-FF \
+ tests/pr/t-bl \
+ tests/pr/t-t \
+ tests/pr/tFFn \
+ tests/pr/tFFt \
+ tests/pr/tFFt-bl \
+ tests/pr/tFFt-ll \
+ tests/pr/tFFt-lm \
+ tests/pr/tFnFt \
+ tests/pr/t_notab \
+ tests/pr/t_tab \
+ tests/pr/t_tab_ \
+ tests/pr/ta3-0FF \
+ tests/pr/ta3-FF \
+ tests/pr/tb3-0FF \
+ tests/pr/tb3-FF \
+ tests/pr/tn \
+ tests/pr/tn2e5o3-t_tab \
+ tests/pr/tn2e8-t_tab \
+ tests/pr/tn2e8o3-t_tab \
+ tests/pr/tn_2e8-t_tab \
+ tests/pr/tn_2e8S-t_tab \
+ tests/pr/tne8-t_tab \
+ tests/pr/tne8o3-t_tab \
+ tests/pr/tt-0FF \
+ tests/pr/tt-FF \
+ tests/pr/tt-bl \
+ tests/pr/tt-t \
+ tests/pr/tta3-0FF \
+ tests/pr/tta3-FF \
+ tests/pr/ttb3-0FF \
+ tests/pr/ttb3-FF \
+ tests/pr/w72l24f-ll
+
+$(TEST_LOGS): $(PROGRAMS)
diff --git a/tests/ls-2/Makefile.am b/tests/ls-2/Makefile.am
deleted file mode 100644
index 5ea746e..0000000
--- a/tests/ls-2/Makefile.am
+++ /dev/null
@@ -1,13 +0,0 @@
-## Process this file with automake to produce Makefile.in -*-Makefile-*-.
-
-EXTRA_DIST = $(TESTS)
-
-TESTS_ENVIRONMENT = \
- top_srcdir=$(top_srcdir) \
- srcdir=$(srcdir) \
- PERL="$(PERL)" \
- CU_TEST_NAME=`basename $(abs_srcdir)`,$$tst \
- PATH="$(VG_PATH_PREFIX)`pwd`/../../src$(PATH_SEPARATOR)$$PATH" \
- PROG=ls
-
-TESTS = tests
diff --git a/tests/ls-2/Makefile.in b/tests/ls-2/Makefile.in
deleted file mode 100644
index 98146a7..0000000
--- a/tests/ls-2/Makefile.in
+++ /dev/null
@@ -1,720 +0,0 @@
-# Makefile.in generated by automake 1.10 from Makefile.am.
-# @configure_input@
-
-# Copyright (C) 1994, 1995, 1996, 1997, 1998, 1999, 2000, 2001, 2002,
-# 2003, 2004, 2005, 2006 Free Software Foundation, Inc.
-# This Makefile.in is free software; the Free Software Foundation
-# gives unlimited permission to copy and/or distribute it,
-# with or without modifications, as long as this notice is preserved.
-
-# This program is distributed in the hope that it will be useful,
-# but WITHOUT ANY WARRANTY, to the extent permitted by law; without
-# even the implied warranty of MERCHANTABILITY or FITNESS FOR A
-# PARTICULAR PURPOSE.
-
-@SET_MAKE@
-VPATH = @srcdir@
-pkgdatadir = $(datadir)/@PACKAGE@
-pkglibdir = $(libdir)/@PACKAGE@
-pkgincludedir = $(includedir)/@PACKAGE@
-am__cd = CDPATH="$${ZSH_VERSION+.}$(PATH_SEPARATOR)" && cd
-install_sh_DATA = $(install_sh) -c -m 644
-install_sh_PROGRAM = $(install_sh) -c
-install_sh_SCRIPT = $(install_sh) -c
-INSTALL_HEADER = $(INSTALL_DATA)
-transform = $(program_transform_name)
-NORMAL_INSTALL = :
-PRE_INSTALL = :
-POST_INSTALL = :
-NORMAL_UNINSTALL = :
-PRE_UNINSTALL = :
-POST_UNINSTALL = :
-build_triplet = @build@
-host_triplet = @host@
-subdir = tests/ls-2
-DIST_COMMON = $(srcdir)/Makefile.am $(srcdir)/Makefile.in
-ACLOCAL_M4 = $(top_srcdir)/aclocal.m4
-am__aclocal_m4_deps = $(top_srcdir)/m4/absolute-header.m4 \
- $(top_srcdir)/m4/acl.m4 $(top_srcdir)/m4/alloca.m4 \
- $(top_srcdir)/m4/allocsa.m4 $(top_srcdir)/m4/argmatch.m4 \
- $(top_srcdir)/m4/arpa_inet_h.m4 $(top_srcdir)/m4/assert.m4 \
- $(top_srcdir)/m4/atexit.m4 $(top_srcdir)/m4/autobuild.m4 \
- $(top_srcdir)/m4/backupfile.m4 $(top_srcdir)/m4/base64.m4 \
- $(top_srcdir)/m4/bison.m4 $(top_srcdir)/m4/boottime.m4 \
- $(top_srcdir)/m4/c-strtod.m4 $(top_srcdir)/m4/calloc.m4 \
- $(top_srcdir)/m4/canon-host.m4 \
- $(top_srcdir)/m4/canonicalize.m4 \
- $(top_srcdir)/m4/chdir-long.m4 $(top_srcdir)/m4/check-decl.m4 \
- $(top_srcdir)/m4/chown.m4 $(top_srcdir)/m4/clock_time.m4 \
- $(top_srcdir)/m4/cloexec.m4 $(top_srcdir)/m4/close-stream.m4 \
- $(top_srcdir)/m4/closeout.m4 $(top_srcdir)/m4/codeset.m4 \
- $(top_srcdir)/m4/config-h.m4 $(top_srcdir)/m4/cycle-check.m4 \
- $(top_srcdir)/m4/d-ino.m4 $(top_srcdir)/m4/d-type.m4 \
- $(top_srcdir)/m4/dirfd.m4 $(top_srcdir)/m4/dirname.m4 \
- $(top_srcdir)/m4/dos.m4 $(top_srcdir)/m4/double-slash-root.m4 \
- $(top_srcdir)/m4/dup2.m4 $(top_srcdir)/m4/eealloc.m4 \
- $(top_srcdir)/m4/eoverflow.m4 $(top_srcdir)/m4/error.m4 \
- $(top_srcdir)/m4/euidaccess-stat.m4 \
- $(top_srcdir)/m4/euidaccess.m4 $(top_srcdir)/m4/exclude.m4 \
- $(top_srcdir)/m4/exitfail.m4 $(top_srcdir)/m4/extensions.m4 \
- $(top_srcdir)/m4/fchdir.m4 $(top_srcdir)/m4/fcntl-safer.m4 \
- $(top_srcdir)/m4/fcntl_h.m4 $(top_srcdir)/m4/fd-reopen.m4 \
- $(top_srcdir)/m4/file-type.m4 $(top_srcdir)/m4/fileblocks.m4 \
- $(top_srcdir)/m4/filemode.m4 $(top_srcdir)/m4/filenamecat.m4 \
- $(top_srcdir)/m4/flexmember.m4 $(top_srcdir)/m4/fnmatch.m4 \
- $(top_srcdir)/m4/fpending.m4 $(top_srcdir)/m4/fprintftime.m4 \
- $(top_srcdir)/m4/free.m4 $(top_srcdir)/m4/fstypename.m4 \
- $(top_srcdir)/m4/fsusage.m4 $(top_srcdir)/m4/ftruncate.m4 \
- $(top_srcdir)/m4/fts.m4 $(top_srcdir)/m4/getaddrinfo.m4 \
- $(top_srcdir)/m4/getcwd-abort-bug.m4 \
- $(top_srcdir)/m4/getcwd-path-max.m4 $(top_srcdir)/m4/getcwd.m4 \
- $(top_srcdir)/m4/getdate.m4 $(top_srcdir)/m4/getdelim.m4 \
- $(top_srcdir)/m4/getgroups.m4 $(top_srcdir)/m4/gethostname.m4 \
- $(top_srcdir)/m4/gethrxtime.m4 $(top_srcdir)/m4/getline.m4 \
- $(top_srcdir)/m4/getloadavg.m4 $(top_srcdir)/m4/getndelim2.m4 \
- $(top_srcdir)/m4/getopt.m4 $(top_srcdir)/m4/getpagesize.m4 \
- $(top_srcdir)/m4/getpass.m4 $(top_srcdir)/m4/gettext.m4 \
- $(top_srcdir)/m4/gettime.m4 $(top_srcdir)/m4/gettimeofday.m4 \
- $(top_srcdir)/m4/getugroups.m4 \
- $(top_srcdir)/m4/getusershell.m4 $(top_srcdir)/m4/glibc21.m4 \
- $(top_srcdir)/m4/gnulib-common.m4 \
- $(top_srcdir)/m4/gnulib-comp.m4 \
- $(top_srcdir)/m4/group-member.m4 \
- $(top_srcdir)/m4/hard-locale.m4 $(top_srcdir)/m4/hash.m4 \
- $(top_srcdir)/m4/host-os.m4 $(top_srcdir)/m4/human.m4 \
- $(top_srcdir)/m4/i-ring.m4 $(top_srcdir)/m4/iconv.m4 \
- $(top_srcdir)/m4/idcache.m4 $(top_srcdir)/m4/inet_ntop.m4 \
- $(top_srcdir)/m4/inline.m4 $(top_srcdir)/m4/intmax_t.m4 \
- $(top_srcdir)/m4/inttostr.m4 $(top_srcdir)/m4/inttypes-pri.m4 \
- $(top_srcdir)/m4/inttypes.m4 $(top_srcdir)/m4/inttypes_h.m4 \
- $(top_srcdir)/m4/isapipe.m4 $(top_srcdir)/m4/jm-macros.m4 \
- $(top_srcdir)/m4/jm-winsz1.m4 $(top_srcdir)/m4/jm-winsz2.m4 \
- $(top_srcdir)/m4/lchmod.m4 $(top_srcdir)/m4/lchown.m4 \
- $(top_srcdir)/m4/lib-check.m4 $(top_srcdir)/m4/lib-ignore.m4 \
- $(top_srcdir)/m4/lib-ld.m4 $(top_srcdir)/m4/lib-link.m4 \
- $(top_srcdir)/m4/lib-prefix.m4 $(top_srcdir)/m4/link-follow.m4 \
- $(top_srcdir)/m4/localcharset.m4 \
- $(top_srcdir)/m4/long-options.m4 \
- $(top_srcdir)/m4/longdouble.m4 $(top_srcdir)/m4/longlong.m4 \
- $(top_srcdir)/m4/ls-mntd-fs.m4 $(top_srcdir)/m4/lstat.m4 \
- $(top_srcdir)/m4/mbchar.m4 $(top_srcdir)/m4/mbiter.m4 \
- $(top_srcdir)/m4/mbrtowc.m4 $(top_srcdir)/m4/mbscasecmp.m4 \
- $(top_srcdir)/m4/mbstate_t.m4 $(top_srcdir)/m4/mbswidth.m4 \
- $(top_srcdir)/m4/md5.m4 $(top_srcdir)/m4/memcasecmp.m4 \
- $(top_srcdir)/m4/memchr.m4 $(top_srcdir)/m4/memcmp.m4 \
- $(top_srcdir)/m4/memcoll.m4 $(top_srcdir)/m4/memcpy.m4 \
- $(top_srcdir)/m4/memmove.m4 $(top_srcdir)/m4/mempcpy.m4 \
- $(top_srcdir)/m4/memrchr.m4 $(top_srcdir)/m4/memset.m4 \
- $(top_srcdir)/m4/memxfrm.m4 $(top_srcdir)/m4/mkancesdirs.m4 \
- $(top_srcdir)/m4/mkdir-p.m4 $(top_srcdir)/m4/mkdir-slash.m4 \
- $(top_srcdir)/m4/mkstemp.m4 $(top_srcdir)/m4/mktime.m4 \
- $(top_srcdir)/m4/modechange.m4 $(top_srcdir)/m4/mountlist.m4 \
- $(top_srcdir)/m4/mpsort.m4 $(top_srcdir)/m4/nanosleep.m4 \
- $(top_srcdir)/m4/netinet_in_h.m4 $(top_srcdir)/m4/nls.m4 \
- $(top_srcdir)/m4/openat.m4 $(top_srcdir)/m4/pathmax.m4 \
- $(top_srcdir)/m4/perl.m4 $(top_srcdir)/m4/physmem.m4 \
- $(top_srcdir)/m4/po.m4 $(top_srcdir)/m4/posixtm.m4 \
- $(top_srcdir)/m4/posixver.m4 $(top_srcdir)/m4/prereq.m4 \
- $(top_srcdir)/m4/progtest.m4 $(top_srcdir)/m4/putenv.m4 \
- $(top_srcdir)/m4/quote.m4 $(top_srcdir)/m4/quotearg.m4 \
- $(top_srcdir)/m4/randint.m4 $(top_srcdir)/m4/randperm.m4 \
- $(top_srcdir)/m4/randread.m4 $(top_srcdir)/m4/readlink.m4 \
- $(top_srcdir)/m4/readtokens.m4 $(top_srcdir)/m4/readutmp.m4 \
- $(top_srcdir)/m4/regex.m4 \
- $(top_srcdir)/m4/rename-dest-slash.m4 \
- $(top_srcdir)/m4/rename.m4 $(top_srcdir)/m4/rmdir-errno.m4 \
- $(top_srcdir)/m4/rmdir.m4 $(top_srcdir)/m4/root-dev-ino.m4 \
- $(top_srcdir)/m4/rpmatch.m4 $(top_srcdir)/m4/safe-read.m4 \
- $(top_srcdir)/m4/safe-write.m4 $(top_srcdir)/m4/same.m4 \
- $(top_srcdir)/m4/save-cwd.m4 $(top_srcdir)/m4/savedir.m4 \
- $(top_srcdir)/m4/savewd.m4 $(top_srcdir)/m4/setenv.m4 \
- $(top_srcdir)/m4/settime.m4 $(top_srcdir)/m4/sha1.m4 \
- $(top_srcdir)/m4/sha256.m4 $(top_srcdir)/m4/sha512.m4 \
- $(top_srcdir)/m4/sig2str.m4 $(top_srcdir)/m4/snprintf.m4 \
- $(top_srcdir)/m4/socklen.m4 $(top_srcdir)/m4/sockpfaf.m4 \
- $(top_srcdir)/m4/ssize_t.m4 $(top_srcdir)/m4/st_dm_mode.m4 \
- $(top_srcdir)/m4/stat-prog.m4 $(top_srcdir)/m4/stat-time.m4 \
- $(top_srcdir)/m4/stdarg.m4 $(top_srcdir)/m4/stdbool.m4 \
- $(top_srcdir)/m4/stdint.m4 $(top_srcdir)/m4/stdint_h.m4 \
- $(top_srcdir)/m4/stdio-safer.m4 $(top_srcdir)/m4/stdio_h.m4 \
- $(top_srcdir)/m4/stdlib-safer.m4 $(top_srcdir)/m4/stdlib_h.m4 \
- $(top_srcdir)/m4/stpcpy.m4 $(top_srcdir)/m4/strcspn.m4 \
- $(top_srcdir)/m4/strdup.m4 $(top_srcdir)/m4/strftime.m4 \
- $(top_srcdir)/m4/string_h.m4 $(top_srcdir)/m4/strndup.m4 \
- $(top_srcdir)/m4/strnlen.m4 $(top_srcdir)/m4/strnumcmp.m4 \
- $(top_srcdir)/m4/strpbrk.m4 $(top_srcdir)/m4/strtod.m4 \
- $(top_srcdir)/m4/strtoimax.m4 $(top_srcdir)/m4/strtol.m4 \
- $(top_srcdir)/m4/strtoll.m4 $(top_srcdir)/m4/strtoul.m4 \
- $(top_srcdir)/m4/strtoull.m4 $(top_srcdir)/m4/strtoumax.m4 \
- $(top_srcdir)/m4/strverscmp.m4 \
- $(top_srcdir)/m4/sys_socket_h.m4 \
- $(top_srcdir)/m4/sys_stat_h.m4 $(top_srcdir)/m4/sys_time_h.m4 \
- $(top_srcdir)/m4/tempname.m4 $(top_srcdir)/m4/time_h.m4 \
- $(top_srcdir)/m4/time_r.m4 $(top_srcdir)/m4/timespec.m4 \
- $(top_srcdir)/m4/tm_gmtoff.m4 $(top_srcdir)/m4/tzset.m4 \
- $(top_srcdir)/m4/unicodeio.m4 $(top_srcdir)/m4/unistd-safer.m4 \
- $(top_srcdir)/m4/unistd_h.m4 $(top_srcdir)/m4/unlink-busy.m4 \
- $(top_srcdir)/m4/unlinkdir.m4 $(top_srcdir)/m4/unlocked-io.m4 \
- $(top_srcdir)/m4/uptime.m4 $(top_srcdir)/m4/userspec.m4 \
- $(top_srcdir)/m4/utimbuf.m4 $(top_srcdir)/m4/utime.m4 \
- $(top_srcdir)/m4/utimecmp.m4 $(top_srcdir)/m4/utimens.m4 \
- $(top_srcdir)/m4/utimes-null.m4 $(top_srcdir)/m4/utimes.m4 \
- $(top_srcdir)/m4/vasnprintf.m4 $(top_srcdir)/m4/vasprintf.m4 \
- $(top_srcdir)/m4/wchar.m4 $(top_srcdir)/m4/wchar_t.m4 \
- $(top_srcdir)/m4/wctype.m4 $(top_srcdir)/m4/wcwidth.m4 \
- $(top_srcdir)/m4/wint_t.m4 $(top_srcdir)/m4/xalloc.m4 \
- $(top_srcdir)/m4/xfts.m4 $(top_srcdir)/m4/xgetcwd.m4 \
- $(top_srcdir)/m4/xnanosleep.m4 $(top_srcdir)/m4/xstrndup.m4 \
- $(top_srcdir)/m4/xstrtod.m4 $(top_srcdir)/m4/xstrtol.m4 \
- $(top_srcdir)/m4/yesno.m4 $(top_srcdir)/configure.ac
-am__configure_deps = $(am__aclocal_m4_deps) $(CONFIGURE_DEPENDENCIES) \
- $(ACLOCAL_M4)
-mkinstalldirs = $(install_sh) -d
-CONFIG_HEADER = $(top_builddir)/lib/config.h
-CONFIG_CLEAN_FILES =
-SOURCES =
-DIST_SOURCES =
-DISTFILES = $(DIST_COMMON) $(DIST_SOURCES) $(TEXINFOS) $(EXTRA_DIST)
-ABSOLUTE_DIRENT_H = @ABSOLUTE_DIRENT_H@
-ABSOLUTE_FCNTL_H = @ABSOLUTE_FCNTL_H@
-ABSOLUTE_INTTYPES_H = @ABSOLUTE_INTTYPES_H@
-ABSOLUTE_NETINET_IN_H = @ABSOLUTE_NETINET_IN_H@
-ABSOLUTE_STDINT_H = @ABSOLUTE_STDINT_H@
-ABSOLUTE_STDIO_H = @ABSOLUTE_STDIO_H@
-ABSOLUTE_STDLIB_H = @ABSOLUTE_STDLIB_H@
-ABSOLUTE_STRING_H = @ABSOLUTE_STRING_H@
-ABSOLUTE_SYS_SOCKET_H = @ABSOLUTE_SYS_SOCKET_H@
-ABSOLUTE_SYS_STAT_H = @ABSOLUTE_SYS_STAT_H@
-ABSOLUTE_SYS_TIME_H = @ABSOLUTE_SYS_TIME_H@
-ABSOLUTE_TIME_H = @ABSOLUTE_TIME_H@
-ABSOLUTE_UNISTD_H = @ABSOLUTE_UNISTD_H@
-ABSOLUTE_WCHAR_H = @ABSOLUTE_WCHAR_H@
-ABSOLUTE_WCTYPE_H = @ABSOLUTE_WCTYPE_H@
-ACLOCAL = @ACLOCAL@
-ALLOCA = @ALLOCA@
-ALLOCA_H = @ALLOCA_H@
-AMTAR = @AMTAR@
-ARPA_INET_H = @ARPA_INET_H@
-AUTOCONF = @AUTOCONF@
-AUTOHEADER = @AUTOHEADER@
-AUTOMAKE = @AUTOMAKE@
-AWK = @AWK@
-BITSIZEOF_PTRDIFF_T = @BITSIZEOF_PTRDIFF_T@
-BITSIZEOF_SIG_ATOMIC_T = @BITSIZEOF_SIG_ATOMIC_T@
-BITSIZEOF_SIZE_T = @BITSIZEOF_SIZE_T@
-BITSIZEOF_WCHAR_T = @BITSIZEOF_WCHAR_T@
-BITSIZEOF_WINT_T = @BITSIZEOF_WINT_T@
-CC = @CC@
-CCDEPMODE = @CCDEPMODE@
-CFLAGS = @CFLAGS@
-CPP = @CPP@
-CPPFLAGS = @CPPFLAGS@
-CYGPATH_W = @CYGPATH_W@
-DEFAULT_POSIX2_VERSION = @DEFAULT_POSIX2_VERSION@
-DEFS = @DEFS@
-DEPDIR = @DEPDIR@
-DF_PROG = @DF_PROG@
-DIRENT_H = @DIRENT_H@
-ECHO_C = @ECHO_C@
-ECHO_N = @ECHO_N@
-ECHO_T = @ECHO_T@
-EGREP = @EGREP@
-EOVERFLOW = @EOVERFLOW@
-EXEEXT = @EXEEXT@
-FCNTL_H = @FCNTL_H@
-FNMATCH_H = @FNMATCH_H@
-GETLOADAVG_LIBS = @GETLOADAVG_LIBS@
-GETOPT_H = @GETOPT_H@
-GLIBC21 = @GLIBC21@
-GMSGFMT = @GMSGFMT@
-GMSGFMT_015 = @GMSGFMT_015@
-GNULIB_CHOWN = @GNULIB_CHOWN@
-GNULIB_DUP2 = @GNULIB_DUP2@
-GNULIB_FCHDIR = @GNULIB_FCHDIR@
-GNULIB_FPRINTF_POSIX = @GNULIB_FPRINTF_POSIX@
-GNULIB_FTRUNCATE = @GNULIB_FTRUNCATE@
-GNULIB_GETCWD = @GNULIB_GETCWD@
-GNULIB_GETLOGIN_R = @GNULIB_GETLOGIN_R@
-GNULIB_GETSUBOPT = @GNULIB_GETSUBOPT@
-GNULIB_IMAXABS = @GNULIB_IMAXABS@
-GNULIB_IMAXDIV = @GNULIB_IMAXDIV@
-GNULIB_MBSCASECMP = @GNULIB_MBSCASECMP@
-GNULIB_MBSCASESTR = @GNULIB_MBSCASESTR@
-GNULIB_MBSCHR = @GNULIB_MBSCHR@
-GNULIB_MBSCSPN = @GNULIB_MBSCSPN@
-GNULIB_MBSLEN = @GNULIB_MBSLEN@
-GNULIB_MBSNCASECMP = @GNULIB_MBSNCASECMP@
-GNULIB_MBSPBRK = @GNULIB_MBSPBRK@
-GNULIB_MBSPCASECMP = @GNULIB_MBSPCASECMP@
-GNULIB_MBSRCHR = @GNULIB_MBSRCHR@
-GNULIB_MBSSEP = @GNULIB_MBSSEP@
-GNULIB_MBSSPN = @GNULIB_MBSSPN@
-GNULIB_MBSSTR = @GNULIB_MBSSTR@
-GNULIB_MBSTOK_R = @GNULIB_MBSTOK_R@
-GNULIB_MEMMEM = @GNULIB_MEMMEM@
-GNULIB_MEMPCPY = @GNULIB_MEMPCPY@
-GNULIB_MEMRCHR = @GNULIB_MEMRCHR@
-GNULIB_MKDTEMP = @GNULIB_MKDTEMP@
-GNULIB_MKSTEMP = @GNULIB_MKSTEMP@
-GNULIB_PRINTF_POSIX = @GNULIB_PRINTF_POSIX@
-GNULIB_READLINK = @GNULIB_READLINK@
-GNULIB_SNPRINTF = @GNULIB_SNPRINTF@
-GNULIB_SPRINTF_POSIX = @GNULIB_SPRINTF_POSIX@
-GNULIB_STPCPY = @GNULIB_STPCPY@
-GNULIB_STPNCPY = @GNULIB_STPNCPY@
-GNULIB_STRCASESTR = @GNULIB_STRCASESTR@
-GNULIB_STRCHRNUL = @GNULIB_STRCHRNUL@
-GNULIB_STRDUP = @GNULIB_STRDUP@
-GNULIB_STRNDUP = @GNULIB_STRNDUP@
-GNULIB_STRNLEN = @GNULIB_STRNLEN@
-GNULIB_STRPBRK = @GNULIB_STRPBRK@
-GNULIB_STRSEP = @GNULIB_STRSEP@
-GNULIB_STRTOIMAX = @GNULIB_STRTOIMAX@
-GNULIB_STRTOK_R = @GNULIB_STRTOK_R@
-GNULIB_STRTOUMAX = @GNULIB_STRTOUMAX@
-GNULIB_VFPRINTF_POSIX = @GNULIB_VFPRINTF_POSIX@
-GNULIB_VPRINTF_POSIX = @GNULIB_VPRINTF_POSIX@
-GNULIB_VSNPRINTF = @GNULIB_VSNPRINTF@
-GNULIB_VSPRINTF_POSIX = @GNULIB_VSPRINTF_POSIX@
-GNU_PACKAGE = @GNU_PACKAGE@
-GREP = @GREP@
-HAVE_DECL_GETLOGIN_R = @HAVE_DECL_GETLOGIN_R@
-HAVE_DECL_IMAXABS = @HAVE_DECL_IMAXABS@
-HAVE_DECL_IMAXDIV = @HAVE_DECL_IMAXDIV@
-HAVE_DECL_MEMMEM = @HAVE_DECL_MEMMEM@
-HAVE_DECL_MEMRCHR = @HAVE_DECL_MEMRCHR@
-HAVE_DECL_SNPRINTF = @HAVE_DECL_SNPRINTF@
-HAVE_DECL_STRDUP = @HAVE_DECL_STRDUP@
-HAVE_DECL_STRNCASECMP = @HAVE_DECL_STRNCASECMP@
-HAVE_DECL_STRNDUP = @HAVE_DECL_STRNDUP@
-HAVE_DECL_STRNLEN = @HAVE_DECL_STRNLEN@
-HAVE_DECL_STRTOIMAX = @HAVE_DECL_STRTOIMAX@
-HAVE_DECL_STRTOK_R = @HAVE_DECL_STRTOK_R@
-HAVE_DECL_STRTOUMAX = @HAVE_DECL_STRTOUMAX@
-HAVE_DECL_VSNPRINTF = @HAVE_DECL_VSNPRINTF@
-HAVE_DUP2 = @HAVE_DUP2@
-HAVE_FTRUNCATE = @HAVE_FTRUNCATE@
-HAVE_GETSUBOPT = @HAVE_GETSUBOPT@
-HAVE_INTTYPES_H = @HAVE_INTTYPES_H@
-HAVE_LONG_LONG_INT = @HAVE_LONG_LONG_INT@
-HAVE_MEMPCPY = @HAVE_MEMPCPY@
-HAVE_MKDTEMP = @HAVE_MKDTEMP@
-HAVE_NETINET_IN_H = @HAVE_NETINET_IN_H@
-HAVE_READLINK = @HAVE_READLINK@
-HAVE_SIGNED_SIG_ATOMIC_T = @HAVE_SIGNED_SIG_ATOMIC_T@
-HAVE_SIGNED_WCHAR_T = @HAVE_SIGNED_WCHAR_T@
-HAVE_SIGNED_WINT_T = @HAVE_SIGNED_WINT_T@
-HAVE_STDINT_H = @HAVE_STDINT_H@
-HAVE_STPCPY = @HAVE_STPCPY@
-HAVE_STPNCPY = @HAVE_STPNCPY@
-HAVE_STRCASECMP = @HAVE_STRCASECMP@
-HAVE_STRCASESTR = @HAVE_STRCASESTR@
-HAVE_STRCHRNUL = @HAVE_STRCHRNUL@
-HAVE_STRNDUP = @HAVE_STRNDUP@
-HAVE_STRPBRK = @HAVE_STRPBRK@
-HAVE_STRSEP = @HAVE_STRSEP@
-HAVE_STRUCT_TIMEVAL = @HAVE_STRUCT_TIMEVAL@
-HAVE_SYS_BITYPES_H = @HAVE_SYS_BITYPES_H@
-HAVE_SYS_INTTYPES_H = @HAVE_SYS_INTTYPES_H@
-HAVE_SYS_SOCKET_H = @HAVE_SYS_SOCKET_H@
-HAVE_SYS_TIME_H = @HAVE_SYS_TIME_H@
-HAVE_SYS_TYPES_H = @HAVE_SYS_TYPES_H@
-HAVE_UNISTD_H = @HAVE_UNISTD_H@
-HAVE_UNSIGNED_LONG_LONG_INT = @HAVE_UNSIGNED_LONG_LONG_INT@
-HAVE_WCTYPE_H = @HAVE_WCTYPE_H@
-HAVE_WINSOCK2_H = @HAVE_WINSOCK2_H@
-HAVE_WINT_T = @HAVE_WINT_T@
-HAVE_WS2TCPIP_H = @HAVE_WS2TCPIP_H@
-HAVE__BOOL = @HAVE__BOOL@
-HELP2MAN = @HELP2MAN@
-INSTALL = @INSTALL@
-INSTALL_DATA = @INSTALL_DATA@
-INSTALL_PROGRAM = @INSTALL_PROGRAM@
-INSTALL_SCRIPT = @INSTALL_SCRIPT@
-INSTALL_STRIP_PROGRAM = @INSTALL_STRIP_PROGRAM@
-INTLLIBS = @INTLLIBS@
-INTL_MACOSX_LIBS = @INTL_MACOSX_LIBS@
-INTTYPES_H = @INTTYPES_H@
-KMEM_GROUP = @KMEM_GROUP@
-LDFLAGS = @LDFLAGS@
-LIBCOREUTILS_LIBDEPS = @LIBCOREUTILS_LIBDEPS@
-LIBCOREUTILS_LTLIBDEPS = @LIBCOREUTILS_LTLIBDEPS@
-LIBICONV = @LIBICONV@
-LIBINTL = @LIBINTL@
-LIBOBJS = @LIBOBJS@
-LIBS = @LIBS@
-LIB_ACL = @LIB_ACL@
-LIB_ACL_TRIVIAL = @LIB_ACL_TRIVIAL@
-LIB_CLOCK_GETTIME = @LIB_CLOCK_GETTIME@
-LIB_CRYPT = @LIB_CRYPT@
-LIB_EACCESS = @LIB_EACCESS@
-LIB_FDATASYNC = @LIB_FDATASYNC@
-LIB_GETHRXTIME = @LIB_GETHRXTIME@
-LIB_NANOSLEEP = @LIB_NANOSLEEP@
-LN_S = @LN_S@
-LTLIBICONV = @LTLIBICONV@
-LTLIBINTL = @LTLIBINTL@
-LTLIBOBJS = @LTLIBOBJS@
-MAKEINFO = @MAKEINFO@
-MAN = @MAN@
-MKDIR_P = @MKDIR_P@
-MSGFMT = @MSGFMT@
-MSGFMT_015 = @MSGFMT_015@
-MSGMERGE = @MSGMERGE@
-NEED_SETGID = @NEED_SETGID@
-NETINET_IN_H = @NETINET_IN_H@
-OBJEXT = @OBJEXT@
-OPTIONAL_BIN_PROGS = @OPTIONAL_BIN_PROGS@
-PACKAGE = @PACKAGE@
-PACKAGE_BUGREPORT = @PACKAGE_BUGREPORT@
-PACKAGE_NAME = @PACKAGE_NAME@
-PACKAGE_STRING = @PACKAGE_STRING@
-PACKAGE_TARNAME = @PACKAGE_TARNAME@
-PACKAGE_VERSION = @PACKAGE_VERSION@
-PATH_SEPARATOR = @PATH_SEPARATOR@
-PERL = @PERL@
-POSUB = @POSUB@
-POW_LIB = @POW_LIB@
-PRIPTR_PREFIX = @PRIPTR_PREFIX@
-PRI_MACROS_BROKEN = @PRI_MACROS_BROKEN@
-PTRDIFF_T_SUFFIX = @PTRDIFF_T_SUFFIX@
-RANLIB = @RANLIB@
-REPLACE_CHOWN = @REPLACE_CHOWN@
-REPLACE_FCHDIR = @REPLACE_FCHDIR@
-REPLACE_FPRINTF = @REPLACE_FPRINTF@
-REPLACE_GETCWD = @REPLACE_GETCWD@
-REPLACE_GETTIMEOFDAY = @REPLACE_GETTIMEOFDAY@
-REPLACE_LOCALTIME_R = @REPLACE_LOCALTIME_R@
-REPLACE_MKSTEMP = @REPLACE_MKSTEMP@
-REPLACE_NANOSLEEP = @REPLACE_NANOSLEEP@
-REPLACE_PRINTF = @REPLACE_PRINTF@
-REPLACE_SNPRINTF = @REPLACE_SNPRINTF@
-REPLACE_SPRINTF = @REPLACE_SPRINTF@
-REPLACE_STRPTIME = @REPLACE_STRPTIME@
-REPLACE_TIMEGM = @REPLACE_TIMEGM@
-REPLACE_VFPRINTF = @REPLACE_VFPRINTF@
-REPLACE_VPRINTF = @REPLACE_VPRINTF@
-REPLACE_VSNPRINTF = @REPLACE_VSNPRINTF@
-REPLACE_VSPRINTF = @REPLACE_VSPRINTF@
-SEQ_LIBM = @SEQ_LIBM@
-SET_MAKE = @SET_MAKE@
-SHELL = @SHELL@
-SIG_ATOMIC_T_SUFFIX = @SIG_ATOMIC_T_SUFFIX@
-SIZE_T_SUFFIX = @SIZE_T_SUFFIX@
-STDBOOL_H = @STDBOOL_H@
-STDINT_H = @STDINT_H@
-STRIP = @STRIP@
-SYS_SOCKET_H = @SYS_SOCKET_H@
-SYS_STAT_H = @SYS_STAT_H@
-SYS_TIME_H = @SYS_TIME_H@
-SYS_TIME_H_DEFINES_STRUCT_TIMESPEC = @SYS_TIME_H_DEFINES_STRUCT_TIMESPEC@
-TIME_H_DEFINES_STRUCT_TIMESPEC = @TIME_H_DEFINES_STRUCT_TIMESPEC@
-U = @U@
-USE_NLS = @USE_NLS@
-VERSION = @VERSION@
-WCHAR_H = @WCHAR_H@
-WCHAR_T_SUFFIX = @WCHAR_T_SUFFIX@
-WCTYPE_H = @WCTYPE_H@
-WINT_T_SUFFIX = @WINT_T_SUFFIX@
-XGETTEXT = @XGETTEXT@
-XGETTEXT_015 = @XGETTEXT_015@
-YACC = @YACC@
-YFLAGS = @YFLAGS@
-abs_builddir = @abs_builddir@
-abs_srcdir = @abs_srcdir@
-abs_top_builddir = @abs_top_builddir@
-abs_top_srcdir = @abs_top_srcdir@
-ac_ct_CC = @ac_ct_CC@
-am__include = @am__include@
-am__leading_dot = @am__leading_dot@
-am__quote = @am__quote@
-am__tar = @am__tar@
-am__untar = @am__untar@
-bindir = @bindir@
-build = @build@
-build_alias = @build_alias@
-build_cpu = @build_cpu@
-build_os = @build_os@
-build_vendor = @build_vendor@
-builddir = @builddir@
-datadir = @datadir@
-datarootdir = @datarootdir@
-docdir = @docdir@
-dvidir = @dvidir@
-exec_prefix = @exec_prefix@
-gl_LIBOBJS = @gl_LIBOBJS@
-gl_LTLIBOBJS = @gl_LTLIBOBJS@
-host = @host@
-host_alias = @host_alias@
-host_cpu = @host_cpu@
-host_os = @host_os@
-host_vendor = @host_vendor@
-htmldir = @htmldir@
-includedir = @includedir@
-infodir = @infodir@
-install_sh = @install_sh@
-libdir = @libdir@
-libexecdir = @libexecdir@
-localedir = @localedir@
-localstatedir = @localstatedir@
-mandir = @mandir@
-mkdir_p = @mkdir_p@
-oldincludedir = @oldincludedir@
-pdfdir = @pdfdir@
-prefix = @prefix@
-program_transform_name = @program_transform_name@
-psdir = @psdir@
-sbindir = @sbindir@
-sharedstatedir = @sharedstatedir@
-srcdir = @srcdir@
-sysconfdir = @sysconfdir@
-target_alias = @target_alias@
-top_builddir = @top_builddir@
-top_srcdir = @top_srcdir@
-EXTRA_DIST = $(TESTS)
-TESTS_ENVIRONMENT = \
- top_srcdir=$(top_srcdir) \
- srcdir=$(srcdir) \
- PERL="$(PERL)" \
- CU_TEST_NAME=`basename $(abs_srcdir)`,$$tst \
- PATH="$(VG_PATH_PREFIX)`pwd`/../../src$(PATH_SEPARATOR)$$PATH" \
- PROG=ls
-
-TESTS = tests
-all: all-am
-
-.SUFFIXES:
-$(srcdir)/Makefile.in: $(srcdir)/Makefile.am $(am__configure_deps)
- @for dep in $?; do \
- case '$(am__configure_deps)' in \
- *$$dep*) \
- cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh \
- && exit 0; \
- exit 1;; \
- esac; \
- done; \
- echo ' cd $(top_srcdir) && $(AUTOMAKE) --gnu tests/ls-2/Makefile'; \
- cd $(top_srcdir) && \
- $(AUTOMAKE) --gnu tests/ls-2/Makefile
-.PRECIOUS: Makefile
-Makefile: $(srcdir)/Makefile.in $(top_builddir)/config.status
- @case '$?' in \
- *config.status*) \
- cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh;; \
- *) \
- echo ' cd $(top_builddir) && $(SHELL) ./config.status $(subdir)/$@ $(am__depfiles_maybe)'; \
- cd $(top_builddir) && $(SHELL) ./config.status $(subdir)/$@ $(am__depfiles_maybe);; \
- esac;
-
-$(top_builddir)/config.status: $(top_srcdir)/configure $(CONFIG_STATUS_DEPENDENCIES)
- cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh
-
-$(top_srcdir)/configure: $(am__configure_deps)
- cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh
-$(ACLOCAL_M4): $(am__aclocal_m4_deps)
- cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh
-tags: TAGS
-TAGS:
-
-ctags: CTAGS
-CTAGS:
-
-
-check-TESTS: $(TESTS)
- @failed=0; all=0; xfail=0; xpass=0; skip=0; ws='[ ]'; \
- srcdir=$(srcdir); export srcdir; \
- list=' $(TESTS) '; \
- if test -n "$$list"; then \
- for tst in $$list; do \
- if test -f ./$$tst; then dir=./; \
- elif test -f $$tst; then dir=; \
- else dir="$(srcdir)/"; fi; \
- if $(TESTS_ENVIRONMENT) $${dir}$$tst; then \
- all=`expr $$all + 1`; \
- case " $(XFAIL_TESTS) " in \
- *$$ws$$tst$$ws*) \
- xpass=`expr $$xpass + 1`; \
- failed=`expr $$failed + 1`; \
- echo "XPASS: $$tst"; \
- ;; \
- *) \
- echo "PASS: $$tst"; \
- ;; \
- esac; \
- elif test $$? -ne 77; then \
- all=`expr $$all + 1`; \
- case " $(XFAIL_TESTS) " in \
- *$$ws$$tst$$ws*) \
- xfail=`expr $$xfail + 1`; \
- echo "XFAIL: $$tst"; \
- ;; \
- *) \
- failed=`expr $$failed + 1`; \
- echo "FAIL: $$tst"; \
- ;; \
- esac; \
- else \
- skip=`expr $$skip + 1`; \
- echo "SKIP: $$tst"; \
- fi; \
- done; \
- if test "$$failed" -eq 0; then \
- if test "$$xfail" -eq 0; then \
- banner="All $$all tests passed"; \
- else \
- banner="All $$all tests behaved as expected ($$xfail expected failures)"; \
- fi; \
- else \
- if test "$$xpass" -eq 0; then \
- banner="$$failed of $$all tests failed"; \
- else \
- banner="$$failed of $$all tests did not behave as expected ($$xpass unexpected passes)"; \
- fi; \
- fi; \
- dashes="$$banner"; \
- skipped=""; \
- if test "$$skip" -ne 0; then \
- skipped="($$skip tests were not run)"; \
- test `echo "$$skipped" | wc -c` -le `echo "$$banner" | wc -c` || \
- dashes="$$skipped"; \
- fi; \
- report=""; \
- if test "$$failed" -ne 0 && test -n "$(PACKAGE_BUGREPORT)"; then \
- report="Please report to $(PACKAGE_BUGREPORT)"; \
- test `echo "$$report" | wc -c` -le `echo "$$banner" | wc -c` || \
- dashes="$$report"; \
- fi; \
- dashes=`echo "$$dashes" | sed s/./=/g`; \
- echo "$$dashes"; \
- echo "$$banner"; \
- test -z "$$skipped" || echo "$$skipped"; \
- test -z "$$report" || echo "$$report"; \
- echo "$$dashes"; \
- test "$$failed" -eq 0; \
- else :; fi
-
-distdir: $(DISTFILES)
- @srcdirstrip=`echo "$(srcdir)" | sed 's/[].[^$$\\*]/\\\\&/g'`; \
- topsrcdirstrip=`echo "$(top_srcdir)" | sed 's/[].[^$$\\*]/\\\\&/g'`; \
- list='$(DISTFILES)'; \
- dist_files=`for file in $$list; do echo $$file; done | \
- sed -e "s|^$$srcdirstrip/||;t" \
- -e "s|^$$topsrcdirstrip/|$(top_builddir)/|;t"`; \
- case $$dist_files in \
- */*) $(MKDIR_P) `echo "$$dist_files" | \
- sed '/\//!d;s|^|$(distdir)/|;s,/[^/]*$$,,' | \
- sort -u` ;; \
- esac; \
- for file in $$dist_files; do \
- if test -f $$file || test -d $$file; then d=.; else d=$(srcdir); fi; \
- if test -d $$d/$$file; then \
- dir=`echo "/$$file" | sed -e 's,/[^/]*$$,,'`; \
- if test -d $(srcdir)/$$file && test $$d != $(srcdir); then \
- cp -pR $(srcdir)/$$file $(distdir)$$dir || exit 1; \
- fi; \
- cp -pR $$d/$$file $(distdir)$$dir || exit 1; \
- else \
- test -f $(distdir)/$$file \
- || cp -p $$d/$$file $(distdir)/$$file \
- || exit 1; \
- fi; \
- done
-check-am: all-am
- $(MAKE) $(AM_MAKEFLAGS) check-TESTS
-check: check-am
-all-am: Makefile
-installdirs:
-install: install-am
-install-exec: install-exec-am
-install-data: install-data-am
-uninstall: uninstall-am
-
-install-am: all-am
- @$(MAKE) $(AM_MAKEFLAGS) install-exec-am install-data-am
-
-installcheck: installcheck-am
-install-strip:
- $(MAKE) $(AM_MAKEFLAGS) INSTALL_PROGRAM="$(INSTALL_STRIP_PROGRAM)" \
- install_sh_PROGRAM="$(INSTALL_STRIP_PROGRAM)" INSTALL_STRIP_FLAG=-s \
- `test -z '$(STRIP)' || \
- echo "INSTALL_PROGRAM_ENV=STRIPPROG='$(STRIP)'"` install
-mostlyclean-generic:
-
-clean-generic:
-
-distclean-generic:
- -test -z "$(CONFIG_CLEAN_FILES)" || rm -f $(CONFIG_CLEAN_FILES)
-
-maintainer-clean-generic:
- @echo "This command is intended for maintainers to use"
- @echo "it deletes files that may require special tools to rebuild."
-clean: clean-am
-
-clean-am: clean-generic mostlyclean-am
-
-distclean: distclean-am
- -rm -f Makefile
-distclean-am: clean-am distclean-generic
-
-dvi: dvi-am
-
-dvi-am:
-
-html: html-am
-
-info: info-am
-
-info-am:
-
-install-data-am:
-
-install-dvi: install-dvi-am
-
-install-exec-am:
-
-install-html: install-html-am
-
-install-info: install-info-am
-
-install-man:
-
-install-pdf: install-pdf-am
-
-install-ps: install-ps-am
-
-installcheck-am:
-
-maintainer-clean: maintainer-clean-am
- -rm -f Makefile
-maintainer-clean-am: distclean-am maintainer-clean-generic
-
-mostlyclean: mostlyclean-am
-
-mostlyclean-am: mostlyclean-generic
-
-pdf: pdf-am
-
-pdf-am:
-
-ps: ps-am
-
-ps-am:
-
-uninstall-am:
-
-.MAKE: install-am install-strip
-
-.PHONY: all all-am check check-TESTS check-am clean clean-generic \
- distclean distclean-generic distdir dvi dvi-am html html-am \
- info info-am install install-am install-data install-data-am \
- install-dvi install-dvi-am install-exec install-exec-am \
- install-html install-html-am install-info install-info-am \
- install-man install-pdf install-pdf-am install-ps \
- install-ps-am install-strip installcheck installcheck-am \
- installdirs maintainer-clean maintainer-clean-generic \
- mostlyclean mostlyclean-generic pdf pdf-am ps ps-am uninstall \
- uninstall-am
-
-# Tell versions [3.59,3.63) of GNU make to not export all variables.
-# Otherwise a system limit (for SysV at least) may be exceeded.
-.NOEXPORT:
diff --git a/tests/ls-2/tests b/tests/ls-2/tests
deleted file mode 100755
index d0257a6..0000000
--- a/tests/ls-2/tests
+++ /dev/null
@@ -1,164 +0,0 @@
-#!/bin/sh
-# -*- perl -*-
-
-# Copyright (C) 1998, 2000, 2001, 2002, 2003, 2004, 2005, 2006 Free
-# Software Foundation, Inc.
-
-# This program is free software; you can redistribute it and/or modify
-# it under the terms of the GNU General Public License as published by
-# the Free Software Foundation; either version 2 of the License, or
-# (at your option) any later version.
-
-# This program is distributed in the hope that it will be useful,
-# but WITHOUT ANY WARRANTY; without even the implied warranty of
-# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
-# GNU General Public License for more details.
-
-# You should have received a copy of the GNU General Public License
-# along with this program; if not, write to the Free Software
-# Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA
-# 02110-1301, USA.
-
-: ${PERL=perl}
-: ${srcdir=.}
-
-$PERL -e 1 > /dev/null 2>&1 || {
- echo 1>&2 "$0: configure didn't find a usable version of Perl," \
- "so can't run this test"
- exit 77
-}
-
-# Set up files used by the setuid-etc tests; skip this entire test if
-# that cannot be done for some reason.
-test=../../src/test
-touch setuid && chmod u+s setuid && $test -u setuid &&
-touch setgid && chmod g+s setgid && $test -g setgid &&
-mkdir sticky && chmod +t sticky && $test -k sticky &&
-mkdir owt && chmod +t,o+w owt && $test -k owt &&
-mkdir owr && chmod o+w owr || {
- echo 1>&2 "$0: cannot create setuid/setgid/sticky files," \
- "so can't run this test"
- exit 77
-}
-
-exec $PERL -w -I$srcdir/.. -MCoreutils -- - << \EOF
-require 5.003;
-use strict;
-
-(my $program_name = $0) =~ s|.*/||;
-
-# Turn off localisation of executable's ouput.
-@ENV{qw(LANGUAGE LANG LC_ALL)} = ('C') x 3;
-
-my $mkdir = {PRE => sub {mkdir 'd',0755 or die "d: $!\n"}};
-my $rmdir = {POST => sub {rmdir 'd' or die "d: $!\n"}};
-
-my $mkdir2 = {PRE => sub {mkdir 'd',0755 or die "d: $!\n";
- mkdir 'd/e',0755 or die "d/e: $!\n" }};
-my $rmdir2 = {POST => sub {rmdir 'd/e' or die "d/e: $!\n";
- rmdir 'd' or die "d: $!\n" }};
-
-my $slink_d = {PRE => sub {symlink '/', 'd' or die "d: $!\n";
- $ENV{LS_COLORS}='ln=01;36:di=01;34:or=40;31;01'
- }};
-my $unlink_d = {POST => sub {unlink 'd' or die "d: $!\n"}};
-
-my $mkdir_d_slink = {PRE => sub {mkdir 'd',0755 or die "d: $!\n";
- symlink '/', 'd/s' or die "d/s: $!\n" }};
-my $rmdir_d_slink = {POST => sub {unlink 'd/s' or die "d/s: $!\n";
- rmdir 'd' or die "d: $!\n" }};
-
-sub make_j_d ()
-{
- mkdir 'j', 0700 or die "creating j: $!\n";
- (open F, '>j/d') && close F or die "creating j/d: $!\n";
- chmod 0555, 'j/d' or die "making j/d executable: $!\n";
-}
-
-my $exe_in_subdir = {PRE => sub { make_j_d (); $ENV{LS_COLORS}='ex=01;32' }};
-my $remove_j = {POST => sub {unlink 'j/d' or die "j/d: $!\n";
- rmdir 'j' or die "j: $!\n" }};
-
-my $q_bell = {IN => {"q\a" => ''}};
-my @Tests =
- (
- # test-name options input expected-output
- #
- # quoting tests............................................
- ['q-', $q_bell, {OUT => "q\a\n"}, {EXIT => 0}],
- ['q-N', '-N', $q_bell, {OUT => "q\a\n"}, {ERR => ''}],
- ['q-q', '-q', $q_bell, {OUT => "q?\n"}],
- ['q-Q', '-Q', $q_bell, {OUT => "\"q\\a\"\n"}],
-
- ['q-lit-q', '--quoting=literal -q', $q_bell, {OUT => "q?\n"}],
- ['q-qs-lit', '--quoting=literal', $q_bell, {OUT => "q\a\n"}],
- ['q-qs-sh', '--quoting=shell', $q_bell, {OUT => "q\a\n"}],
- ['q-qs-sh-a', '--quoting=shell-always', $q_bell, {OUT => "'q\a'\n"}],
- ['q-qs-c', '--quoting=c', $q_bell, {OUT => "\"q\\a\"\n"}],
- ['q-qs-esc', '--quoting=escape', $q_bell, {OUT => "q\\a\n"}],
- ['q-qs-c-1', '--quoting=c',
- {IN => {"t\004" => ''}}, {OUT => "\"t\\004\"\n"}],
-
- ['emptydir', 'd', {OUT => ''}, $mkdir, $rmdir],
- ['emptydir-x2', 'd d', {OUT => "d:\n\nd:\n"}, $mkdir, $rmdir],
- ['emptydir-R', '-R d', {OUT => "d:\n"}, $mkdir, $rmdir],
-
- # test `ls -R .' ............................................
- ['R-dot', '--ignore="[a-ce-zA-Z]*" -R .', {OUT => ".:\nd\n\n\./d:\n"},
- $mkdir, $rmdir],
-
- ['slink-dir-F', '-F d', {OUT => "d@\n"}, $slink_d, $unlink_d],
- ['slink-dir-dF', '-dF d', {OUT => "d@\n"}, $slink_d, $unlink_d],
- ['slinkdir-dFH', '-dFH d', {OUT => "d/\n"}, $slink_d, $unlink_d],
- ['slinkdir-dFL', '-dFL d', {OUT => "d/\n"}, $slink_d, $unlink_d],
-
- # Test for a bug that was fixed in coreutils-4.5.4.
- ['sl-F-color', '-F --color=always d',
- {OUT => "\e[0m\e[01;36md\e[0m\@\n\e[m"},
- $slink_d, $unlink_d],
- ['sl-dF-color', '-dF --color=always d',
- {OUT => "\e[0m\e[01;36md\e[0m\@\n\e[m"},
- $slink_d, $unlink_d],
-
- # Test for a bug that was introduced in coreutils-4.5.4; fixed in 4.5.5.
- # To demonstrate it, the file in question (with executable bit set)
- # must not be a command line argument.
- ['color-exe1', '--color=always j',
- {OUT => "\e[0m\e[01;32md\e[0m\n\e[m"},
- $exe_in_subdir, $remove_j],
-
- # From Stéphane Chazelas.
- ['no-a-isdir-b', 'no-dir d',
- {OUT => "d:\n"},
- {ERR => "ls: cannot access no-dir: No such file or directory\n"},
- $mkdir, $rmdir, {EXIT => 2}],
-
- ['recursive-2', '-R d', {OUT => "d:\ne\n\nd/e:\n"}, $mkdir2, $rmdir2],
-
- ['setuid-etc', '-1 -d --color=always owr owt setgid setuid sticky',
- {OUT =>
- "\e[0m\e[34;42mowr\e[0m\n"
- . "\e[30;42mowt\e[0m\n"
- . "\e[30;43msetgid\e[0m\n"
- . "\e[37;41msetuid\e[0m\n"
- . "\e[37;44msticky\e[0m\n"
- . "\e[m"
- },
-
- {POST => sub {
- unlink qw(setuid setgid);
- foreach my $dir (qw(owr owt sticky)) {rmdir $dir} }},
- ],
-
- # For 5.97 and earlier, --file-type acted like --indicator-style=slash.
- ['file-type', '--file-type d', {OUT => "s@\n"},
- $mkdir_d_slink, $rmdir_d_slink],
- );
-
-my $save_temps = $ENV{SAVE_TEMPS};
-my $verbose = $ENV{VERBOSE};
-
-my $prog = $ENV{PROG} || die "$0: \$PROG not specified in environment\n";
-my $fail = run_tests ($program_name, $prog, \@Tests, $save_temps, $verbose);
-exit $fail;
-EOF
diff --git a/tests/ls/Makefile.am b/tests/ls/Makefile.am
deleted file mode 100644
index 461ba07..0000000
--- a/tests/ls/Makefile.am
+++ /dev/null
@@ -1,36 +0,0 @@
-# Make coreutils tests for "ls". -*-Makefile-*-
-
-# Copyright (C) 1997-2003, 2006-2007 Free Software Foundation, Inc.
-
-# This program is free software; you can redistribute it and/or modify
-# it under the terms of the GNU General Public License as published by
-# the Free Software Foundation; either version 2 of the License, or
-# (at your option) any later version.
-
-# This program is distributed in the hope that it will be useful,
-# but WITHOUT ANY WARRANTY; without even the implied warranty of
-# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
-# GNU General Public License for more details.
-
-# You should have received a copy of the GNU General Public License
-# along with this program; if not, write to the Free Software
-# Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA
-# 02110-1301, USA.
-
-TESTS = \
- nameless-uid \
- color-dtype-dir \
- stat-failed \
- stat-dtype \
- inode dangle file-type recursive dired infloop \
- rt-1 time-1 symlink-slash follow-slink no-arg m-option \
- stat-vs-dirent
-
-EXTRA_DIST = $(TESTS)
-TESTS_ENVIRONMENT = \
- top_srcdir=$(top_srcdir) \
- srcdir=$(srcdir) \
- CU_TEST_NAME=`basename $(abs_srcdir)`,$$tst \
- PATH="$(VG_PATH_PREFIX)`pwd`/../../src$(PATH_SEPARATOR)$$PATH" \
- PERL="$(PERL)" \
- PROG=ls
diff --git a/tests/ls/Makefile.in b/tests/ls/Makefile.in
deleted file mode 100644
index a77a08a..0000000
--- a/tests/ls/Makefile.in
+++ /dev/null
@@ -1,747 +0,0 @@
-# Makefile.in generated by automake 1.10 from Makefile.am.
-# @configure_input@
-
-# Copyright (C) 1994, 1995, 1996, 1997, 1998, 1999, 2000, 2001, 2002,
-# 2003, 2004, 2005, 2006 Free Software Foundation, Inc.
-# This Makefile.in is free software; the Free Software Foundation
-# gives unlimited permission to copy and/or distribute it,
-# with or without modifications, as long as this notice is preserved.
-
-# This program is distributed in the hope that it will be useful,
-# but WITHOUT ANY WARRANTY, to the extent permitted by law; without
-# even the implied warranty of MERCHANTABILITY or FITNESS FOR A
-# PARTICULAR PURPOSE.
-
-@SET_MAKE@
-
-# Make coreutils tests for "ls". -*-Makefile-*-
-
-# Copyright (C) 1997-2003, 2006-2007 Free Software Foundation, Inc.
-
-# This program is free software; you can redistribute it and/or modify
-# it under the terms of the GNU General Public License as published by
-# the Free Software Foundation; either version 2 of the License, or
-# (at your option) any later version.
-
-# This program is distributed in the hope that it will be useful,
-# but WITHOUT ANY WARRANTY; without even the implied warranty of
-# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
-# GNU General Public License for more details.
-
-# You should have received a copy of the GNU General Public License
-# along with this program; if not, write to the Free Software
-# Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA
-# 02110-1301, USA.
-VPATH = @srcdir@
-pkgdatadir = $(datadir)/@PACKAGE@
-pkglibdir = $(libdir)/@PACKAGE@
-pkgincludedir = $(includedir)/@PACKAGE@
-am__cd = CDPATH="$${ZSH_VERSION+.}$(PATH_SEPARATOR)" && cd
-install_sh_DATA = $(install_sh) -c -m 644
-install_sh_PROGRAM = $(install_sh) -c
-install_sh_SCRIPT = $(install_sh) -c
-INSTALL_HEADER = $(INSTALL_DATA)
-transform = $(program_transform_name)
-NORMAL_INSTALL = :
-PRE_INSTALL = :
-POST_INSTALL = :
-NORMAL_UNINSTALL = :
-PRE_UNINSTALL = :
-POST_UNINSTALL = :
-build_triplet = @build@
-host_triplet = @host@
-subdir = tests/ls
-DIST_COMMON = $(srcdir)/Makefile.am $(srcdir)/Makefile.in
-ACLOCAL_M4 = $(top_srcdir)/aclocal.m4
-am__aclocal_m4_deps = $(top_srcdir)/m4/absolute-header.m4 \
- $(top_srcdir)/m4/acl.m4 $(top_srcdir)/m4/alloca.m4 \
- $(top_srcdir)/m4/allocsa.m4 $(top_srcdir)/m4/argmatch.m4 \
- $(top_srcdir)/m4/arpa_inet_h.m4 $(top_srcdir)/m4/assert.m4 \
- $(top_srcdir)/m4/atexit.m4 $(top_srcdir)/m4/autobuild.m4 \
- $(top_srcdir)/m4/backupfile.m4 $(top_srcdir)/m4/base64.m4 \
- $(top_srcdir)/m4/bison.m4 $(top_srcdir)/m4/boottime.m4 \
- $(top_srcdir)/m4/c-strtod.m4 $(top_srcdir)/m4/calloc.m4 \
- $(top_srcdir)/m4/canon-host.m4 \
- $(top_srcdir)/m4/canonicalize.m4 \
- $(top_srcdir)/m4/chdir-long.m4 $(top_srcdir)/m4/check-decl.m4 \
- $(top_srcdir)/m4/chown.m4 $(top_srcdir)/m4/clock_time.m4 \
- $(top_srcdir)/m4/cloexec.m4 $(top_srcdir)/m4/close-stream.m4 \
- $(top_srcdir)/m4/closeout.m4 $(top_srcdir)/m4/codeset.m4 \
- $(top_srcdir)/m4/config-h.m4 $(top_srcdir)/m4/cycle-check.m4 \
- $(top_srcdir)/m4/d-ino.m4 $(top_srcdir)/m4/d-type.m4 \
- $(top_srcdir)/m4/dirfd.m4 $(top_srcdir)/m4/dirname.m4 \
- $(top_srcdir)/m4/dos.m4 $(top_srcdir)/m4/double-slash-root.m4 \
- $(top_srcdir)/m4/dup2.m4 $(top_srcdir)/m4/eealloc.m4 \
- $(top_srcdir)/m4/eoverflow.m4 $(top_srcdir)/m4/error.m4 \
- $(top_srcdir)/m4/euidaccess-stat.m4 \
- $(top_srcdir)/m4/euidaccess.m4 $(top_srcdir)/m4/exclude.m4 \
- $(top_srcdir)/m4/exitfail.m4 $(top_srcdir)/m4/extensions.m4 \
- $(top_srcdir)/m4/fchdir.m4 $(top_srcdir)/m4/fcntl-safer.m4 \
- $(top_srcdir)/m4/fcntl_h.m4 $(top_srcdir)/m4/fd-reopen.m4 \
- $(top_srcdir)/m4/file-type.m4 $(top_srcdir)/m4/fileblocks.m4 \
- $(top_srcdir)/m4/filemode.m4 $(top_srcdir)/m4/filenamecat.m4 \
- $(top_srcdir)/m4/flexmember.m4 $(top_srcdir)/m4/fnmatch.m4 \
- $(top_srcdir)/m4/fpending.m4 $(top_srcdir)/m4/fprintftime.m4 \
- $(top_srcdir)/m4/free.m4 $(top_srcdir)/m4/fstypename.m4 \
- $(top_srcdir)/m4/fsusage.m4 $(top_srcdir)/m4/ftruncate.m4 \
- $(top_srcdir)/m4/fts.m4 $(top_srcdir)/m4/getaddrinfo.m4 \
- $(top_srcdir)/m4/getcwd-abort-bug.m4 \
- $(top_srcdir)/m4/getcwd-path-max.m4 $(top_srcdir)/m4/getcwd.m4 \
- $(top_srcdir)/m4/getdate.m4 $(top_srcdir)/m4/getdelim.m4 \
- $(top_srcdir)/m4/getgroups.m4 $(top_srcdir)/m4/gethostname.m4 \
- $(top_srcdir)/m4/gethrxtime.m4 $(top_srcdir)/m4/getline.m4 \
- $(top_srcdir)/m4/getloadavg.m4 $(top_srcdir)/m4/getndelim2.m4 \
- $(top_srcdir)/m4/getopt.m4 $(top_srcdir)/m4/getpagesize.m4 \
- $(top_srcdir)/m4/getpass.m4 $(top_srcdir)/m4/gettext.m4 \
- $(top_srcdir)/m4/gettime.m4 $(top_srcdir)/m4/gettimeofday.m4 \
- $(top_srcdir)/m4/getugroups.m4 \
- $(top_srcdir)/m4/getusershell.m4 $(top_srcdir)/m4/glibc21.m4 \
- $(top_srcdir)/m4/gnulib-common.m4 \
- $(top_srcdir)/m4/gnulib-comp.m4 \
- $(top_srcdir)/m4/group-member.m4 \
- $(top_srcdir)/m4/hard-locale.m4 $(top_srcdir)/m4/hash.m4 \
- $(top_srcdir)/m4/host-os.m4 $(top_srcdir)/m4/human.m4 \
- $(top_srcdir)/m4/i-ring.m4 $(top_srcdir)/m4/iconv.m4 \
- $(top_srcdir)/m4/idcache.m4 $(top_srcdir)/m4/inet_ntop.m4 \
- $(top_srcdir)/m4/inline.m4 $(top_srcdir)/m4/intmax_t.m4 \
- $(top_srcdir)/m4/inttostr.m4 $(top_srcdir)/m4/inttypes-pri.m4 \
- $(top_srcdir)/m4/inttypes.m4 $(top_srcdir)/m4/inttypes_h.m4 \
- $(top_srcdir)/m4/isapipe.m4 $(top_srcdir)/m4/jm-macros.m4 \
- $(top_srcdir)/m4/jm-winsz1.m4 $(top_srcdir)/m4/jm-winsz2.m4 \
- $(top_srcdir)/m4/lchmod.m4 $(top_srcdir)/m4/lchown.m4 \
- $(top_srcdir)/m4/lib-check.m4 $(top_srcdir)/m4/lib-ignore.m4 \
- $(top_srcdir)/m4/lib-ld.m4 $(top_srcdir)/m4/lib-link.m4 \
- $(top_srcdir)/m4/lib-prefix.m4 $(top_srcdir)/m4/link-follow.m4 \
- $(top_srcdir)/m4/localcharset.m4 \
- $(top_srcdir)/m4/long-options.m4 \
- $(top_srcdir)/m4/longdouble.m4 $(top_srcdir)/m4/longlong.m4 \
- $(top_srcdir)/m4/ls-mntd-fs.m4 $(top_srcdir)/m4/lstat.m4 \
- $(top_srcdir)/m4/mbchar.m4 $(top_srcdir)/m4/mbiter.m4 \
- $(top_srcdir)/m4/mbrtowc.m4 $(top_srcdir)/m4/mbscasecmp.m4 \
- $(top_srcdir)/m4/mbstate_t.m4 $(top_srcdir)/m4/mbswidth.m4 \
- $(top_srcdir)/m4/md5.m4 $(top_srcdir)/m4/memcasecmp.m4 \
- $(top_srcdir)/m4/memchr.m4 $(top_srcdir)/m4/memcmp.m4 \
- $(top_srcdir)/m4/memcoll.m4 $(top_srcdir)/m4/memcpy.m4 \
- $(top_srcdir)/m4/memmove.m4 $(top_srcdir)/m4/mempcpy.m4 \
- $(top_srcdir)/m4/memrchr.m4 $(top_srcdir)/m4/memset.m4 \
- $(top_srcdir)/m4/memxfrm.m4 $(top_srcdir)/m4/mkancesdirs.m4 \
- $(top_srcdir)/m4/mkdir-p.m4 $(top_srcdir)/m4/mkdir-slash.m4 \
- $(top_srcdir)/m4/mkstemp.m4 $(top_srcdir)/m4/mktime.m4 \
- $(top_srcdir)/m4/modechange.m4 $(top_srcdir)/m4/mountlist.m4 \
- $(top_srcdir)/m4/mpsort.m4 $(top_srcdir)/m4/nanosleep.m4 \
- $(top_srcdir)/m4/netinet_in_h.m4 $(top_srcdir)/m4/nls.m4 \
- $(top_srcdir)/m4/openat.m4 $(top_srcdir)/m4/pathmax.m4 \
- $(top_srcdir)/m4/perl.m4 $(top_srcdir)/m4/physmem.m4 \
- $(top_srcdir)/m4/po.m4 $(top_srcdir)/m4/posixtm.m4 \
- $(top_srcdir)/m4/posixver.m4 $(top_srcdir)/m4/prereq.m4 \
- $(top_srcdir)/m4/progtest.m4 $(top_srcdir)/m4/putenv.m4 \
- $(top_srcdir)/m4/quote.m4 $(top_srcdir)/m4/quotearg.m4 \
- $(top_srcdir)/m4/randint.m4 $(top_srcdir)/m4/randperm.m4 \
- $(top_srcdir)/m4/randread.m4 $(top_srcdir)/m4/readlink.m4 \
- $(top_srcdir)/m4/readtokens.m4 $(top_srcdir)/m4/readutmp.m4 \
- $(top_srcdir)/m4/regex.m4 \
- $(top_srcdir)/m4/rename-dest-slash.m4 \
- $(top_srcdir)/m4/rename.m4 $(top_srcdir)/m4/rmdir-errno.m4 \
- $(top_srcdir)/m4/rmdir.m4 $(top_srcdir)/m4/root-dev-ino.m4 \
- $(top_srcdir)/m4/rpmatch.m4 $(top_srcdir)/m4/safe-read.m4 \
- $(top_srcdir)/m4/safe-write.m4 $(top_srcdir)/m4/same.m4 \
- $(top_srcdir)/m4/save-cwd.m4 $(top_srcdir)/m4/savedir.m4 \
- $(top_srcdir)/m4/savewd.m4 $(top_srcdir)/m4/setenv.m4 \
- $(top_srcdir)/m4/settime.m4 $(top_srcdir)/m4/sha1.m4 \
- $(top_srcdir)/m4/sha256.m4 $(top_srcdir)/m4/sha512.m4 \
- $(top_srcdir)/m4/sig2str.m4 $(top_srcdir)/m4/snprintf.m4 \
- $(top_srcdir)/m4/socklen.m4 $(top_srcdir)/m4/sockpfaf.m4 \
- $(top_srcdir)/m4/ssize_t.m4 $(top_srcdir)/m4/st_dm_mode.m4 \
- $(top_srcdir)/m4/stat-prog.m4 $(top_srcdir)/m4/stat-time.m4 \
- $(top_srcdir)/m4/stdarg.m4 $(top_srcdir)/m4/stdbool.m4 \
- $(top_srcdir)/m4/stdint.m4 $(top_srcdir)/m4/stdint_h.m4 \
- $(top_srcdir)/m4/stdio-safer.m4 $(top_srcdir)/m4/stdio_h.m4 \
- $(top_srcdir)/m4/stdlib-safer.m4 $(top_srcdir)/m4/stdlib_h.m4 \
- $(top_srcdir)/m4/stpcpy.m4 $(top_srcdir)/m4/strcspn.m4 \
- $(top_srcdir)/m4/strdup.m4 $(top_srcdir)/m4/strftime.m4 \
- $(top_srcdir)/m4/string_h.m4 $(top_srcdir)/m4/strndup.m4 \
- $(top_srcdir)/m4/strnlen.m4 $(top_srcdir)/m4/strnumcmp.m4 \
- $(top_srcdir)/m4/strpbrk.m4 $(top_srcdir)/m4/strtod.m4 \
- $(top_srcdir)/m4/strtoimax.m4 $(top_srcdir)/m4/strtol.m4 \
- $(top_srcdir)/m4/strtoll.m4 $(top_srcdir)/m4/strtoul.m4 \
- $(top_srcdir)/m4/strtoull.m4 $(top_srcdir)/m4/strtoumax.m4 \
- $(top_srcdir)/m4/strverscmp.m4 \
- $(top_srcdir)/m4/sys_socket_h.m4 \
- $(top_srcdir)/m4/sys_stat_h.m4 $(top_srcdir)/m4/sys_time_h.m4 \
- $(top_srcdir)/m4/tempname.m4 $(top_srcdir)/m4/time_h.m4 \
- $(top_srcdir)/m4/time_r.m4 $(top_srcdir)/m4/timespec.m4 \
- $(top_srcdir)/m4/tm_gmtoff.m4 $(top_srcdir)/m4/tzset.m4 \
- $(top_srcdir)/m4/unicodeio.m4 $(top_srcdir)/m4/unistd-safer.m4 \
- $(top_srcdir)/m4/unistd_h.m4 $(top_srcdir)/m4/unlink-busy.m4 \
- $(top_srcdir)/m4/unlinkdir.m4 $(top_srcdir)/m4/unlocked-io.m4 \
- $(top_srcdir)/m4/uptime.m4 $(top_srcdir)/m4/userspec.m4 \
- $(top_srcdir)/m4/utimbuf.m4 $(top_srcdir)/m4/utime.m4 \
- $(top_srcdir)/m4/utimecmp.m4 $(top_srcdir)/m4/utimens.m4 \
- $(top_srcdir)/m4/utimes-null.m4 $(top_srcdir)/m4/utimes.m4 \
- $(top_srcdir)/m4/vasnprintf.m4 $(top_srcdir)/m4/vasprintf.m4 \
- $(top_srcdir)/m4/wchar.m4 $(top_srcdir)/m4/wchar_t.m4 \
- $(top_srcdir)/m4/wctype.m4 $(top_srcdir)/m4/wcwidth.m4 \
- $(top_srcdir)/m4/wint_t.m4 $(top_srcdir)/m4/xalloc.m4 \
- $(top_srcdir)/m4/xfts.m4 $(top_srcdir)/m4/xgetcwd.m4 \
- $(top_srcdir)/m4/xnanosleep.m4 $(top_srcdir)/m4/xstrndup.m4 \
- $(top_srcdir)/m4/xstrtod.m4 $(top_srcdir)/m4/xstrtol.m4 \
- $(top_srcdir)/m4/yesno.m4 $(top_srcdir)/configure.ac
-am__configure_deps = $(am__aclocal_m4_deps) $(CONFIGURE_DEPENDENCIES) \
- $(ACLOCAL_M4)
-mkinstalldirs = $(install_sh) -d
-CONFIG_HEADER = $(top_builddir)/lib/config.h
-CONFIG_CLEAN_FILES =
-SOURCES =
-DIST_SOURCES =
-DISTFILES = $(DIST_COMMON) $(DIST_SOURCES) $(TEXINFOS) $(EXTRA_DIST)
-ABSOLUTE_DIRENT_H = @ABSOLUTE_DIRENT_H@
-ABSOLUTE_FCNTL_H = @ABSOLUTE_FCNTL_H@
-ABSOLUTE_INTTYPES_H = @ABSOLUTE_INTTYPES_H@
-ABSOLUTE_NETINET_IN_H = @ABSOLUTE_NETINET_IN_H@
-ABSOLUTE_STDINT_H = @ABSOLUTE_STDINT_H@
-ABSOLUTE_STDIO_H = @ABSOLUTE_STDIO_H@
-ABSOLUTE_STDLIB_H = @ABSOLUTE_STDLIB_H@
-ABSOLUTE_STRING_H = @ABSOLUTE_STRING_H@
-ABSOLUTE_SYS_SOCKET_H = @ABSOLUTE_SYS_SOCKET_H@
-ABSOLUTE_SYS_STAT_H = @ABSOLUTE_SYS_STAT_H@
-ABSOLUTE_SYS_TIME_H = @ABSOLUTE_SYS_TIME_H@
-ABSOLUTE_TIME_H = @ABSOLUTE_TIME_H@
-ABSOLUTE_UNISTD_H = @ABSOLUTE_UNISTD_H@
-ABSOLUTE_WCHAR_H = @ABSOLUTE_WCHAR_H@
-ABSOLUTE_WCTYPE_H = @ABSOLUTE_WCTYPE_H@
-ACLOCAL = @ACLOCAL@
-ALLOCA = @ALLOCA@
-ALLOCA_H = @ALLOCA_H@
-AMTAR = @AMTAR@
-ARPA_INET_H = @ARPA_INET_H@
-AUTOCONF = @AUTOCONF@
-AUTOHEADER = @AUTOHEADER@
-AUTOMAKE = @AUTOMAKE@
-AWK = @AWK@
-BITSIZEOF_PTRDIFF_T = @BITSIZEOF_PTRDIFF_T@
-BITSIZEOF_SIG_ATOMIC_T = @BITSIZEOF_SIG_ATOMIC_T@
-BITSIZEOF_SIZE_T = @BITSIZEOF_SIZE_T@
-BITSIZEOF_WCHAR_T = @BITSIZEOF_WCHAR_T@
-BITSIZEOF_WINT_T = @BITSIZEOF_WINT_T@
-CC = @CC@
-CCDEPMODE = @CCDEPMODE@
-CFLAGS = @CFLAGS@
-CPP = @CPP@
-CPPFLAGS = @CPPFLAGS@
-CYGPATH_W = @CYGPATH_W@
-DEFAULT_POSIX2_VERSION = @DEFAULT_POSIX2_VERSION@
-DEFS = @DEFS@
-DEPDIR = @DEPDIR@
-DF_PROG = @DF_PROG@
-DIRENT_H = @DIRENT_H@
-ECHO_C = @ECHO_C@
-ECHO_N = @ECHO_N@
-ECHO_T = @ECHO_T@
-EGREP = @EGREP@
-EOVERFLOW = @EOVERFLOW@
-EXEEXT = @EXEEXT@
-FCNTL_H = @FCNTL_H@
-FNMATCH_H = @FNMATCH_H@
-GETLOADAVG_LIBS = @GETLOADAVG_LIBS@
-GETOPT_H = @GETOPT_H@
-GLIBC21 = @GLIBC21@
-GMSGFMT = @GMSGFMT@
-GMSGFMT_015 = @GMSGFMT_015@
-GNULIB_CHOWN = @GNULIB_CHOWN@
-GNULIB_DUP2 = @GNULIB_DUP2@
-GNULIB_FCHDIR = @GNULIB_FCHDIR@
-GNULIB_FPRINTF_POSIX = @GNULIB_FPRINTF_POSIX@
-GNULIB_FTRUNCATE = @GNULIB_FTRUNCATE@
-GNULIB_GETCWD = @GNULIB_GETCWD@
-GNULIB_GETLOGIN_R = @GNULIB_GETLOGIN_R@
-GNULIB_GETSUBOPT = @GNULIB_GETSUBOPT@
-GNULIB_IMAXABS = @GNULIB_IMAXABS@
-GNULIB_IMAXDIV = @GNULIB_IMAXDIV@
-GNULIB_MBSCASECMP = @GNULIB_MBSCASECMP@
-GNULIB_MBSCASESTR = @GNULIB_MBSCASESTR@
-GNULIB_MBSCHR = @GNULIB_MBSCHR@
-GNULIB_MBSCSPN = @GNULIB_MBSCSPN@
-GNULIB_MBSLEN = @GNULIB_MBSLEN@
-GNULIB_MBSNCASECMP = @GNULIB_MBSNCASECMP@
-GNULIB_MBSPBRK = @GNULIB_MBSPBRK@
-GNULIB_MBSPCASECMP = @GNULIB_MBSPCASECMP@
-GNULIB_MBSRCHR = @GNULIB_MBSRCHR@
-GNULIB_MBSSEP = @GNULIB_MBSSEP@
-GNULIB_MBSSPN = @GNULIB_MBSSPN@
-GNULIB_MBSSTR = @GNULIB_MBSSTR@
-GNULIB_MBSTOK_R = @GNULIB_MBSTOK_R@
-GNULIB_MEMMEM = @GNULIB_MEMMEM@
-GNULIB_MEMPCPY = @GNULIB_MEMPCPY@
-GNULIB_MEMRCHR = @GNULIB_MEMRCHR@
-GNULIB_MKDTEMP = @GNULIB_MKDTEMP@
-GNULIB_MKSTEMP = @GNULIB_MKSTEMP@
-GNULIB_PRINTF_POSIX = @GNULIB_PRINTF_POSIX@
-GNULIB_READLINK = @GNULIB_READLINK@
-GNULIB_SNPRINTF = @GNULIB_SNPRINTF@
-GNULIB_SPRINTF_POSIX = @GNULIB_SPRINTF_POSIX@
-GNULIB_STPCPY = @GNULIB_STPCPY@
-GNULIB_STPNCPY = @GNULIB_STPNCPY@
-GNULIB_STRCASESTR = @GNULIB_STRCASESTR@
-GNULIB_STRCHRNUL = @GNULIB_STRCHRNUL@
-GNULIB_STRDUP = @GNULIB_STRDUP@
-GNULIB_STRNDUP = @GNULIB_STRNDUP@
-GNULIB_STRNLEN = @GNULIB_STRNLEN@
-GNULIB_STRPBRK = @GNULIB_STRPBRK@
-GNULIB_STRSEP = @GNULIB_STRSEP@
-GNULIB_STRTOIMAX = @GNULIB_STRTOIMAX@
-GNULIB_STRTOK_R = @GNULIB_STRTOK_R@
-GNULIB_STRTOUMAX = @GNULIB_STRTOUMAX@
-GNULIB_VFPRINTF_POSIX = @GNULIB_VFPRINTF_POSIX@
-GNULIB_VPRINTF_POSIX = @GNULIB_VPRINTF_POSIX@
-GNULIB_VSNPRINTF = @GNULIB_VSNPRINTF@
-GNULIB_VSPRINTF_POSIX = @GNULIB_VSPRINTF_POSIX@
-GNU_PACKAGE = @GNU_PACKAGE@
-GREP = @GREP@
-HAVE_DECL_GETLOGIN_R = @HAVE_DECL_GETLOGIN_R@
-HAVE_DECL_IMAXABS = @HAVE_DECL_IMAXABS@
-HAVE_DECL_IMAXDIV = @HAVE_DECL_IMAXDIV@
-HAVE_DECL_MEMMEM = @HAVE_DECL_MEMMEM@
-HAVE_DECL_MEMRCHR = @HAVE_DECL_MEMRCHR@
-HAVE_DECL_SNPRINTF = @HAVE_DECL_SNPRINTF@
-HAVE_DECL_STRDUP = @HAVE_DECL_STRDUP@
-HAVE_DECL_STRNCASECMP = @HAVE_DECL_STRNCASECMP@
-HAVE_DECL_STRNDUP = @HAVE_DECL_STRNDUP@
-HAVE_DECL_STRNLEN = @HAVE_DECL_STRNLEN@
-HAVE_DECL_STRTOIMAX = @HAVE_DECL_STRTOIMAX@
-HAVE_DECL_STRTOK_R = @HAVE_DECL_STRTOK_R@
-HAVE_DECL_STRTOUMAX = @HAVE_DECL_STRTOUMAX@
-HAVE_DECL_VSNPRINTF = @HAVE_DECL_VSNPRINTF@
-HAVE_DUP2 = @HAVE_DUP2@
-HAVE_FTRUNCATE = @HAVE_FTRUNCATE@
-HAVE_GETSUBOPT = @HAVE_GETSUBOPT@
-HAVE_INTTYPES_H = @HAVE_INTTYPES_H@
-HAVE_LONG_LONG_INT = @HAVE_LONG_LONG_INT@
-HAVE_MEMPCPY = @HAVE_MEMPCPY@
-HAVE_MKDTEMP = @HAVE_MKDTEMP@
-HAVE_NETINET_IN_H = @HAVE_NETINET_IN_H@
-HAVE_READLINK = @HAVE_READLINK@
-HAVE_SIGNED_SIG_ATOMIC_T = @HAVE_SIGNED_SIG_ATOMIC_T@
-HAVE_SIGNED_WCHAR_T = @HAVE_SIGNED_WCHAR_T@
-HAVE_SIGNED_WINT_T = @HAVE_SIGNED_WINT_T@
-HAVE_STDINT_H = @HAVE_STDINT_H@
-HAVE_STPCPY = @HAVE_STPCPY@
-HAVE_STPNCPY = @HAVE_STPNCPY@
-HAVE_STRCASECMP = @HAVE_STRCASECMP@
-HAVE_STRCASESTR = @HAVE_STRCASESTR@
-HAVE_STRCHRNUL = @HAVE_STRCHRNUL@
-HAVE_STRNDUP = @HAVE_STRNDUP@
-HAVE_STRPBRK = @HAVE_STRPBRK@
-HAVE_STRSEP = @HAVE_STRSEP@
-HAVE_STRUCT_TIMEVAL = @HAVE_STRUCT_TIMEVAL@
-HAVE_SYS_BITYPES_H = @HAVE_SYS_BITYPES_H@
-HAVE_SYS_INTTYPES_H = @HAVE_SYS_INTTYPES_H@
-HAVE_SYS_SOCKET_H = @HAVE_SYS_SOCKET_H@
-HAVE_SYS_TIME_H = @HAVE_SYS_TIME_H@
-HAVE_SYS_TYPES_H = @HAVE_SYS_TYPES_H@
-HAVE_UNISTD_H = @HAVE_UNISTD_H@
-HAVE_UNSIGNED_LONG_LONG_INT = @HAVE_UNSIGNED_LONG_LONG_INT@
-HAVE_WCTYPE_H = @HAVE_WCTYPE_H@
-HAVE_WINSOCK2_H = @HAVE_WINSOCK2_H@
-HAVE_WINT_T = @HAVE_WINT_T@
-HAVE_WS2TCPIP_H = @HAVE_WS2TCPIP_H@
-HAVE__BOOL = @HAVE__BOOL@
-HELP2MAN = @HELP2MAN@
-INSTALL = @INSTALL@
-INSTALL_DATA = @INSTALL_DATA@
-INSTALL_PROGRAM = @INSTALL_PROGRAM@
-INSTALL_SCRIPT = @INSTALL_SCRIPT@
-INSTALL_STRIP_PROGRAM = @INSTALL_STRIP_PROGRAM@
-INTLLIBS = @INTLLIBS@
-INTL_MACOSX_LIBS = @INTL_MACOSX_LIBS@
-INTTYPES_H = @INTTYPES_H@
-KMEM_GROUP = @KMEM_GROUP@
-LDFLAGS = @LDFLAGS@
-LIBCOREUTILS_LIBDEPS = @LIBCOREUTILS_LIBDEPS@
-LIBCOREUTILS_LTLIBDEPS = @LIBCOREUTILS_LTLIBDEPS@
-LIBICONV = @LIBICONV@
-LIBINTL = @LIBINTL@
-LIBOBJS = @LIBOBJS@
-LIBS = @LIBS@
-LIB_ACL = @LIB_ACL@
-LIB_ACL_TRIVIAL = @LIB_ACL_TRIVIAL@
-LIB_CLOCK_GETTIME = @LIB_CLOCK_GETTIME@
-LIB_CRYPT = @LIB_CRYPT@
-LIB_EACCESS = @LIB_EACCESS@
-LIB_FDATASYNC = @LIB_FDATASYNC@
-LIB_GETHRXTIME = @LIB_GETHRXTIME@
-LIB_NANOSLEEP = @LIB_NANOSLEEP@
-LN_S = @LN_S@
-LTLIBICONV = @LTLIBICONV@
-LTLIBINTL = @LTLIBINTL@
-LTLIBOBJS = @LTLIBOBJS@
-MAKEINFO = @MAKEINFO@
-MAN = @MAN@
-MKDIR_P = @MKDIR_P@
-MSGFMT = @MSGFMT@
-MSGFMT_015 = @MSGFMT_015@
-MSGMERGE = @MSGMERGE@
-NEED_SETGID = @NEED_SETGID@
-NETINET_IN_H = @NETINET_IN_H@
-OBJEXT = @OBJEXT@
-OPTIONAL_BIN_PROGS = @OPTIONAL_BIN_PROGS@
-PACKAGE = @PACKAGE@
-PACKAGE_BUGREPORT = @PACKAGE_BUGREPORT@
-PACKAGE_NAME = @PACKAGE_NAME@
-PACKAGE_STRING = @PACKAGE_STRING@
-PACKAGE_TARNAME = @PACKAGE_TARNAME@
-PACKAGE_VERSION = @PACKAGE_VERSION@
-PATH_SEPARATOR = @PATH_SEPARATOR@
-PERL = @PERL@
-POSUB = @POSUB@
-POW_LIB = @POW_LIB@
-PRIPTR_PREFIX = @PRIPTR_PREFIX@
-PRI_MACROS_BROKEN = @PRI_MACROS_BROKEN@
-PTRDIFF_T_SUFFIX = @PTRDIFF_T_SUFFIX@
-RANLIB = @RANLIB@
-REPLACE_CHOWN = @REPLACE_CHOWN@
-REPLACE_FCHDIR = @REPLACE_FCHDIR@
-REPLACE_FPRINTF = @REPLACE_FPRINTF@
-REPLACE_GETCWD = @REPLACE_GETCWD@
-REPLACE_GETTIMEOFDAY = @REPLACE_GETTIMEOFDAY@
-REPLACE_LOCALTIME_R = @REPLACE_LOCALTIME_R@
-REPLACE_MKSTEMP = @REPLACE_MKSTEMP@
-REPLACE_NANOSLEEP = @REPLACE_NANOSLEEP@
-REPLACE_PRINTF = @REPLACE_PRINTF@
-REPLACE_SNPRINTF = @REPLACE_SNPRINTF@
-REPLACE_SPRINTF = @REPLACE_SPRINTF@
-REPLACE_STRPTIME = @REPLACE_STRPTIME@
-REPLACE_TIMEGM = @REPLACE_TIMEGM@
-REPLACE_VFPRINTF = @REPLACE_VFPRINTF@
-REPLACE_VPRINTF = @REPLACE_VPRINTF@
-REPLACE_VSNPRINTF = @REPLACE_VSNPRINTF@
-REPLACE_VSPRINTF = @REPLACE_VSPRINTF@
-SEQ_LIBM = @SEQ_LIBM@
-SET_MAKE = @SET_MAKE@
-SHELL = @SHELL@
-SIG_ATOMIC_T_SUFFIX = @SIG_ATOMIC_T_SUFFIX@
-SIZE_T_SUFFIX = @SIZE_T_SUFFIX@
-STDBOOL_H = @STDBOOL_H@
-STDINT_H = @STDINT_H@
-STRIP = @STRIP@
-SYS_SOCKET_H = @SYS_SOCKET_H@
-SYS_STAT_H = @SYS_STAT_H@
-SYS_TIME_H = @SYS_TIME_H@
-SYS_TIME_H_DEFINES_STRUCT_TIMESPEC = @SYS_TIME_H_DEFINES_STRUCT_TIMESPEC@
-TIME_H_DEFINES_STRUCT_TIMESPEC = @TIME_H_DEFINES_STRUCT_TIMESPEC@
-U = @U@
-USE_NLS = @USE_NLS@
-VERSION = @VERSION@
-WCHAR_H = @WCHAR_H@
-WCHAR_T_SUFFIX = @WCHAR_T_SUFFIX@
-WCTYPE_H = @WCTYPE_H@
-WINT_T_SUFFIX = @WINT_T_SUFFIX@
-XGETTEXT = @XGETTEXT@
-XGETTEXT_015 = @XGETTEXT_015@
-YACC = @YACC@
-YFLAGS = @YFLAGS@
-abs_builddir = @abs_builddir@
-abs_srcdir = @abs_srcdir@
-abs_top_builddir = @abs_top_builddir@
-abs_top_srcdir = @abs_top_srcdir@
-ac_ct_CC = @ac_ct_CC@
-am__include = @am__include@
-am__leading_dot = @am__leading_dot@
-am__quote = @am__quote@
-am__tar = @am__tar@
-am__untar = @am__untar@
-bindir = @bindir@
-build = @build@
-build_alias = @build_alias@
-build_cpu = @build_cpu@
-build_os = @build_os@
-build_vendor = @build_vendor@
-builddir = @builddir@
-datadir = @datadir@
-datarootdir = @datarootdir@
-docdir = @docdir@
-dvidir = @dvidir@
-exec_prefix = @exec_prefix@
-gl_LIBOBJS = @gl_LIBOBJS@
-gl_LTLIBOBJS = @gl_LTLIBOBJS@
-host = @host@
-host_alias = @host_alias@
-host_cpu = @host_cpu@
-host_os = @host_os@
-host_vendor = @host_vendor@
-htmldir = @htmldir@
-includedir = @includedir@
-infodir = @infodir@
-install_sh = @install_sh@
-libdir = @libdir@
-libexecdir = @libexecdir@
-localedir = @localedir@
-localstatedir = @localstatedir@
-mandir = @mandir@
-mkdir_p = @mkdir_p@
-oldincludedir = @oldincludedir@
-pdfdir = @pdfdir@
-prefix = @prefix@
-program_transform_name = @program_transform_name@
-psdir = @psdir@
-sbindir = @sbindir@
-sharedstatedir = @sharedstatedir@
-srcdir = @srcdir@
-sysconfdir = @sysconfdir@
-target_alias = @target_alias@
-top_builddir = @top_builddir@
-top_srcdir = @top_srcdir@
-TESTS = \
- nameless-uid \
- color-dtype-dir \
- stat-failed \
- stat-dtype \
- inode dangle file-type recursive dired infloop \
- rt-1 time-1 symlink-slash follow-slink no-arg m-option \
- stat-vs-dirent
-
-EXTRA_DIST = $(TESTS)
-TESTS_ENVIRONMENT = \
- top_srcdir=$(top_srcdir) \
- srcdir=$(srcdir) \
- CU_TEST_NAME=`basename $(abs_srcdir)`,$$tst \
- PATH="$(VG_PATH_PREFIX)`pwd`/../../src$(PATH_SEPARATOR)$$PATH" \
- PERL="$(PERL)" \
- PROG=ls
-
-all: all-am
-
-.SUFFIXES:
-$(srcdir)/Makefile.in: $(srcdir)/Makefile.am $(am__configure_deps)
- @for dep in $?; do \
- case '$(am__configure_deps)' in \
- *$$dep*) \
- cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh \
- && exit 0; \
- exit 1;; \
- esac; \
- done; \
- echo ' cd $(top_srcdir) && $(AUTOMAKE) --gnu tests/ls/Makefile'; \
- cd $(top_srcdir) && \
- $(AUTOMAKE) --gnu tests/ls/Makefile
-.PRECIOUS: Makefile
-Makefile: $(srcdir)/Makefile.in $(top_builddir)/config.status
- @case '$?' in \
- *config.status*) \
- cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh;; \
- *) \
- echo ' cd $(top_builddir) && $(SHELL) ./config.status $(subdir)/$@ $(am__depfiles_maybe)'; \
- cd $(top_builddir) && $(SHELL) ./config.status $(subdir)/$@ $(am__depfiles_maybe);; \
- esac;
-
-$(top_builddir)/config.status: $(top_srcdir)/configure $(CONFIG_STATUS_DEPENDENCIES)
- cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh
-
-$(top_srcdir)/configure: $(am__configure_deps)
- cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh
-$(ACLOCAL_M4): $(am__aclocal_m4_deps)
- cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh
-tags: TAGS
-TAGS:
-
-ctags: CTAGS
-CTAGS:
-
-
-check-TESTS: $(TESTS)
- @failed=0; all=0; xfail=0; xpass=0; skip=0; ws='[ ]'; \
- srcdir=$(srcdir); export srcdir; \
- list=' $(TESTS) '; \
- if test -n "$$list"; then \
- for tst in $$list; do \
- if test -f ./$$tst; then dir=./; \
- elif test -f $$tst; then dir=; \
- else dir="$(srcdir)/"; fi; \
- if $(TESTS_ENVIRONMENT) $${dir}$$tst; then \
- all=`expr $$all + 1`; \
- case " $(XFAIL_TESTS) " in \
- *$$ws$$tst$$ws*) \
- xpass=`expr $$xpass + 1`; \
- failed=`expr $$failed + 1`; \
- echo "XPASS: $$tst"; \
- ;; \
- *) \
- echo "PASS: $$tst"; \
- ;; \
- esac; \
- elif test $$? -ne 77; then \
- all=`expr $$all + 1`; \
- case " $(XFAIL_TESTS) " in \
- *$$ws$$tst$$ws*) \
- xfail=`expr $$xfail + 1`; \
- echo "XFAIL: $$tst"; \
- ;; \
- *) \
- failed=`expr $$failed + 1`; \
- echo "FAIL: $$tst"; \
- ;; \
- esac; \
- else \
- skip=`expr $$skip + 1`; \
- echo "SKIP: $$tst"; \
- fi; \
- done; \
- if test "$$failed" -eq 0; then \
- if test "$$xfail" -eq 0; then \
- banner="All $$all tests passed"; \
- else \
- banner="All $$all tests behaved as expected ($$xfail expected failures)"; \
- fi; \
- else \
- if test "$$xpass" -eq 0; then \
- banner="$$failed of $$all tests failed"; \
- else \
- banner="$$failed of $$all tests did not behave as expected ($$xpass unexpected passes)"; \
- fi; \
- fi; \
- dashes="$$banner"; \
- skipped=""; \
- if test "$$skip" -ne 0; then \
- skipped="($$skip tests were not run)"; \
- test `echo "$$skipped" | wc -c` -le `echo "$$banner" | wc -c` || \
- dashes="$$skipped"; \
- fi; \
- report=""; \
- if test "$$failed" -ne 0 && test -n "$(PACKAGE_BUGREPORT)"; then \
- report="Please report to $(PACKAGE_BUGREPORT)"; \
- test `echo "$$report" | wc -c` -le `echo "$$banner" | wc -c` || \
- dashes="$$report"; \
- fi; \
- dashes=`echo "$$dashes" | sed s/./=/g`; \
- echo "$$dashes"; \
- echo "$$banner"; \
- test -z "$$skipped" || echo "$$skipped"; \
- test -z "$$report" || echo "$$report"; \
- echo "$$dashes"; \
- test "$$failed" -eq 0; \
- else :; fi
-
-distdir: $(DISTFILES)
- @srcdirstrip=`echo "$(srcdir)" | sed 's/[].[^$$\\*]/\\\\&/g'`; \
- topsrcdirstrip=`echo "$(top_srcdir)" | sed 's/[].[^$$\\*]/\\\\&/g'`; \
- list='$(DISTFILES)'; \
- dist_files=`for file in $$list; do echo $$file; done | \
- sed -e "s|^$$srcdirstrip/||;t" \
- -e "s|^$$topsrcdirstrip/|$(top_builddir)/|;t"`; \
- case $$dist_files in \
- */*) $(MKDIR_P) `echo "$$dist_files" | \
- sed '/\//!d;s|^|$(distdir)/|;s,/[^/]*$$,,' | \
- sort -u` ;; \
- esac; \
- for file in $$dist_files; do \
- if test -f $$file || test -d $$file; then d=.; else d=$(srcdir); fi; \
- if test -d $$d/$$file; then \
- dir=`echo "/$$file" | sed -e 's,/[^/]*$$,,'`; \
- if test -d $(srcdir)/$$file && test $$d != $(srcdir); then \
- cp -pR $(srcdir)/$$file $(distdir)$$dir || exit 1; \
- fi; \
- cp -pR $$d/$$file $(distdir)$$dir || exit 1; \
- else \
- test -f $(distdir)/$$file \
- || cp -p $$d/$$file $(distdir)/$$file \
- || exit 1; \
- fi; \
- done
-check-am: all-am
- $(MAKE) $(AM_MAKEFLAGS) check-TESTS
-check: check-am
-all-am: Makefile
-installdirs:
-install: install-am
-install-exec: install-exec-am
-install-data: install-data-am
-uninstall: uninstall-am
-
-install-am: all-am
- @$(MAKE) $(AM_MAKEFLAGS) install-exec-am install-data-am
-
-installcheck: installcheck-am
-install-strip:
- $(MAKE) $(AM_MAKEFLAGS) INSTALL_PROGRAM="$(INSTALL_STRIP_PROGRAM)" \
- install_sh_PROGRAM="$(INSTALL_STRIP_PROGRAM)" INSTALL_STRIP_FLAG=-s \
- `test -z '$(STRIP)' || \
- echo "INSTALL_PROGRAM_ENV=STRIPPROG='$(STRIP)'"` install
-mostlyclean-generic:
-
-clean-generic:
-
-distclean-generic:
- -test -z "$(CONFIG_CLEAN_FILES)" || rm -f $(CONFIG_CLEAN_FILES)
-
-maintainer-clean-generic:
- @echo "This command is intended for maintainers to use"
- @echo "it deletes files that may require special tools to rebuild."
-clean: clean-am
-
-clean-am: clean-generic mostlyclean-am
-
-distclean: distclean-am
- -rm -f Makefile
-distclean-am: clean-am distclean-generic
-
-dvi: dvi-am
-
-dvi-am:
-
-html: html-am
-
-info: info-am
-
-info-am:
-
-install-data-am:
-
-install-dvi: install-dvi-am
-
-install-exec-am:
-
-install-html: install-html-am
-
-install-info: install-info-am
-
-install-man:
-
-install-pdf: install-pdf-am
-
-install-ps: install-ps-am
-
-installcheck-am:
-
-maintainer-clean: maintainer-clean-am
- -rm -f Makefile
-maintainer-clean-am: distclean-am maintainer-clean-generic
-
-mostlyclean: mostlyclean-am
-
-mostlyclean-am: mostlyclean-generic
-
-pdf: pdf-am
-
-pdf-am:
-
-ps: ps-am
-
-ps-am:
-
-uninstall-am:
-
-.MAKE: install-am install-strip
-
-.PHONY: all all-am check check-TESTS check-am clean clean-generic \
- distclean distclean-generic distdir dvi dvi-am html html-am \
- info info-am install install-am install-data install-data-am \
- install-dvi install-dvi-am install-exec install-exec-am \
- install-html install-html-am install-info install-info-am \
- install-man install-pdf install-pdf-am install-ps \
- install-ps-am install-strip installcheck installcheck-am \
- installdirs maintainer-clean maintainer-clean-generic \
- mostlyclean mostlyclean-generic pdf pdf-am ps ps-am uninstall \
- uninstall-am
-
-# Tell versions [3.59,3.63) of GNU make to not export all variables.
-# Otherwise a system limit (for SysV at least) may be exceeded.
-.NOEXPORT:
diff --git a/tests/ls/abmon-align.sh b/tests/ls/abmon-align.sh
new file mode 100755
index 0000000..07f4b3b
--- /dev/null
+++ b/tests/ls/abmon-align.sh
@@ -0,0 +1,49 @@
+#!/bin/sh
+# Ensure ls output is aligned when using abbreviated months from the locale
+
+# Copyright (C) 2009-2016 Free Software Foundation, Inc.
+
+# This program is free software: you can redistribute it and/or modify
+# it under the terms of the GNU General Public License as published by
+# the Free Software Foundation, either version 3 of the License, or
+# (at your option) any later version.
+
+# This program is distributed in the hope that it will be useful,
+# but WITHOUT ANY WARRANTY; without even the implied warranty of
+# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
+# GNU General Public License for more details.
+
+# You should have received a copy of the GNU General Public License
+# along with this program. If not, see <http://www.gnu.org/licenses/>.
+
+. "${srcdir=.}/tests/init.sh"; path_prepend_ ./src
+print_ver_ ls
+
+for mon in $(seq -w 12); do
+ touch -d"+$mon month" $mon.ts || framework_failure_
+done
+
+
+# Note some of the following locales may be missing but if so
+# we should fail back to the C locale which should be aligned
+
+for format in "%b" "[%b" "%b]" "[%b]"; do
+ for LOC in C gv_GB ga_IE fi_FI.utf8 zh_CN ar_SY $LOCALE_FR_UTF8; do
+ # The sed usage here is slightly different from the original,
+ # removing the \(.*\), to avoid triggering misbehavior in at least
+ # GNU sed 4.2 (possibly miscompiled) on Mac OS X (Darwin 9.8.0).
+ n_widths=$(
+ LC_ALL=$LOC TIME_STYLE=+"$format" ls -lgG *.ts |
+ LC_ALL=C sed 's/.\{15\}//;s/ ..\.ts$//;s/ /./g' |
+ while read mon; do echo "$mon" | LC_ALL=$LOC wc -L; done |
+ uniq | wc -l
+ )
+ test "$n_widths" = "1" || { fail=1; break 2; }
+ done
+done
+if test "$fail" = "1"; then
+ echo "misalignment detected in $LOC locale:"
+ LC_ALL=$LOC TIME_STYLE=+%b ls -lgG *.ts
+fi
+
+Exit $fail
diff --git a/tests/ls/block-size.sh b/tests/ls/block-size.sh
new file mode 100755
index 0000000..bc54672
--- /dev/null
+++ b/tests/ls/block-size.sh
@@ -0,0 +1,173 @@
+#!/bin/sh
+# Exercise ls --block-size and related options.
+
+# Copyright (C) 2011-2016 Free Software Foundation, Inc.
+
+# This program is free software: you can redistribute it and/or modify
+# it under the terms of the GNU General Public License as published by
+# the Free Software Foundation, either version 3 of the License, or
+# (at your option) any later version.
+
+# This program is distributed in the hope that it will be useful,
+# but WITHOUT ANY WARRANTY; without even the implied warranty of
+# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
+# GNU General Public License for more details.
+
+# You should have received a copy of the GNU General Public License
+# along with this program. If not, see <http://www.gnu.org/licenses/>.
+
+. "${srcdir=.}/tests/init.sh"; path_prepend_ ./src
+print_ver_ ls
+
+TZ=UTC0
+export TZ
+
+mkdir sub
+cd sub
+
+for size in 1024 4096 262144; do
+ echo foo | dd conv=sync bs=$size >file$size || fail=1
+done
+touch -d '2001-01-01 00:00' file* || fail=1
+
+size_etc='s/[^ ]* *[^ ]* *//'
+
+ls -og * | sed "$size_etc" >../out || fail=1
+POSIXLY_CORRECT=1 ls -og * | sed "$size_etc" >>../out || fail=1
+POSIXLY_CORRECT=1 ls -k -og * | sed "$size_etc" >>../out || fail=1
+
+for var in BLOCKSIZE BLOCK_SIZE LS_BLOCK_SIZE; do
+ for blocksize in 1 512 1K 1KiB; do
+ (eval $var=$blocksize && export $var &&
+ ls -og * &&
+ ls -og -k * &&
+ ls -og -k --block-size=$blocksize *
+ ) | sed "$size_etc" >>../out || fail=1
+ done
+done
+
+cd ..
+
+cat >exp <<'EOF'
+1024 Jan 1 2001 file1024
+262144 Jan 1 2001 file262144
+4096 Jan 1 2001 file4096
+1024 Jan 1 2001 file1024
+262144 Jan 1 2001 file262144
+4096 Jan 1 2001 file4096
+1024 Jan 1 2001 file1024
+262144 Jan 1 2001 file262144
+4096 Jan 1 2001 file4096
+1024 Jan 1 2001 file1024
+262144 Jan 1 2001 file262144
+4096 Jan 1 2001 file4096
+1024 Jan 1 2001 file1024
+262144 Jan 1 2001 file262144
+4096 Jan 1 2001 file4096
+1024 Jan 1 2001 file1024
+262144 Jan 1 2001 file262144
+4096 Jan 1 2001 file4096
+1024 Jan 1 2001 file1024
+262144 Jan 1 2001 file262144
+4096 Jan 1 2001 file4096
+1024 Jan 1 2001 file1024
+262144 Jan 1 2001 file262144
+4096 Jan 1 2001 file4096
+2 Jan 1 2001 file1024
+512 Jan 1 2001 file262144
+8 Jan 1 2001 file4096
+1024 Jan 1 2001 file1024
+262144 Jan 1 2001 file262144
+4096 Jan 1 2001 file4096
+1024 Jan 1 2001 file1024
+262144 Jan 1 2001 file262144
+4096 Jan 1 2001 file4096
+1 Jan 1 2001 file1024
+256 Jan 1 2001 file262144
+4 Jan 1 2001 file4096
+1024 Jan 1 2001 file1024
+262144 Jan 1 2001 file262144
+4096 Jan 1 2001 file4096
+1024 Jan 1 2001 file1024
+262144 Jan 1 2001 file262144
+4096 Jan 1 2001 file4096
+1 Jan 1 2001 file1024
+256 Jan 1 2001 file262144
+4 Jan 1 2001 file4096
+1024 Jan 1 2001 file1024
+262144 Jan 1 2001 file262144
+4096 Jan 1 2001 file4096
+1024 Jan 1 2001 file1024
+262144 Jan 1 2001 file262144
+4096 Jan 1 2001 file4096
+1024 Jan 1 2001 file1024
+262144 Jan 1 2001 file262144
+4096 Jan 1 2001 file4096
+2 Jan 1 2001 file1024
+512 Jan 1 2001 file262144
+8 Jan 1 2001 file4096
+2 Jan 1 2001 file1024
+512 Jan 1 2001 file262144
+8 Jan 1 2001 file4096
+2 Jan 1 2001 file1024
+512 Jan 1 2001 file262144
+8 Jan 1 2001 file4096
+1 Jan 1 2001 file1024
+256 Jan 1 2001 file262144
+4 Jan 1 2001 file4096
+1 Jan 1 2001 file1024
+256 Jan 1 2001 file262144
+4 Jan 1 2001 file4096
+1 Jan 1 2001 file1024
+256 Jan 1 2001 file262144
+4 Jan 1 2001 file4096
+1 Jan 1 2001 file1024
+256 Jan 1 2001 file262144
+4 Jan 1 2001 file4096
+1 Jan 1 2001 file1024
+256 Jan 1 2001 file262144
+4 Jan 1 2001 file4096
+1 Jan 1 2001 file1024
+256 Jan 1 2001 file262144
+4 Jan 1 2001 file4096
+1024 Jan 1 2001 file1024
+262144 Jan 1 2001 file262144
+4096 Jan 1 2001 file4096
+1024 Jan 1 2001 file1024
+262144 Jan 1 2001 file262144
+4096 Jan 1 2001 file4096
+1024 Jan 1 2001 file1024
+262144 Jan 1 2001 file262144
+4096 Jan 1 2001 file4096
+2 Jan 1 2001 file1024
+512 Jan 1 2001 file262144
+8 Jan 1 2001 file4096
+2 Jan 1 2001 file1024
+512 Jan 1 2001 file262144
+8 Jan 1 2001 file4096
+2 Jan 1 2001 file1024
+512 Jan 1 2001 file262144
+8 Jan 1 2001 file4096
+1 Jan 1 2001 file1024
+256 Jan 1 2001 file262144
+4 Jan 1 2001 file4096
+1 Jan 1 2001 file1024
+256 Jan 1 2001 file262144
+4 Jan 1 2001 file4096
+1 Jan 1 2001 file1024
+256 Jan 1 2001 file262144
+4 Jan 1 2001 file4096
+1 Jan 1 2001 file1024
+256 Jan 1 2001 file262144
+4 Jan 1 2001 file4096
+1 Jan 1 2001 file1024
+256 Jan 1 2001 file262144
+4 Jan 1 2001 file4096
+1 Jan 1 2001 file1024
+256 Jan 1 2001 file262144
+4 Jan 1 2001 file4096
+EOF
+
+compare exp out || fail=1
+
+Exit $fail
diff --git a/tests/ls/capability.sh b/tests/ls/capability.sh
new file mode 100755
index 0000000..402fae9
--- /dev/null
+++ b/tests/ls/capability.sh
@@ -0,0 +1,63 @@
+#!/bin/sh
+# Ensure "ls --color" properly colorizes file with capability.
+
+# Copyright (C) 2008-2016 Free Software Foundation, Inc.
+
+# This program is free software: you can redistribute it and/or modify
+# it under the terms of the GNU General Public License as published by
+# the Free Software Foundation, either version 3 of the License, or
+# (at your option) any later version.
+
+# This program is distributed in the hope that it will be useful,
+# but WITHOUT ANY WARRANTY; without even the implied warranty of
+# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
+# GNU General Public License for more details.
+
+# You should have received a copy of the GNU General Public License
+# along with this program. If not, see <http://www.gnu.org/licenses/>.
+
+. "${srcdir=.}/tests/init.sh"; path_prepend_ ./src
+print_ver_ ls printf
+require_root_
+
+grep '^#define HAVE_CAP 1' $CONFIG_HEADER > /dev/null \
+ || skip_ "configured without libcap support"
+
+(setcap --help) 2>&1 |grep 'usage: setcap' > /dev/null \
+ || skip_ "setcap utility not found"
+
+# Don't let a different umask perturb the results.
+umask 22
+
+# We create 2 files of the same name as
+# before coreutils 8.1 only the name rather than
+# the full path was used to read the capabilities
+# thus giving false positives and negatives.
+mkdir test test/dir
+cd test
+touch cap_pos dir/cap_pos dir/cap_neg
+for file in cap_pos dir/cap_neg; do
+ setcap 'cap_net_bind_service=ep' $file ||
+ skip_ "setcap doesn't work"
+done
+
+code='30;41'
+# Note we explicitly disable "executable" coloring
+# so that capability coloring is not dependent on it,
+# as was the case before coreutils 8.1
+for ex in '' ex=:; do
+ LS_COLORS="di=:${ex}ca=$code" \
+ ls --color=always cap_pos dir > out || fail=1
+
+ env printf "\
+\e[0m\e[${code}mcap_pos\e[0m
+
+dir:
+\e[${code}mcap_neg\e[0m
+cap_pos
+" > out_ok || framework_failure_
+
+ compare out out_ok || fail=1
+done
+
+Exit $fail
diff --git a/tests/ls/color-clear-to-eol.sh b/tests/ls/color-clear-to-eol.sh
new file mode 100755
index 0000000..20ce3d9
--- /dev/null
+++ b/tests/ls/color-clear-to-eol.sh
@@ -0,0 +1,41 @@
+#!/bin/sh
+# ensure that ls --color works well when a colored name is wrapped
+
+# Copyright (C) 2009-2016 Free Software Foundation, Inc.
+
+# This program is free software: you can redistribute it and/or modify
+# it under the terms of the GNU General Public License as published by
+# the Free Software Foundation, either version 3 of the License, or
+# (at your option) any later version.
+
+# This program is distributed in the hope that it will be useful,
+# but WITHOUT ANY WARRANTY; without even the implied warranty of
+# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
+# GNU General Public License for more details.
+
+# You should have received a copy of the GNU General Public License
+# along with this program. If not, see <http://www.gnu.org/licenses/>.
+
+. "${srcdir=.}/tests/init.sh"; path_prepend_ ./src
+print_ver_ ls
+
+long_name=zzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzz.foo
+touch $long_name || framework_failure_
+
+e='\33'
+color_code='0;31;42'
+c_pre="$e[0m$e[${color_code}m"
+c_post="$e[0m$e[K\n"
+printf "$c_pre$long_name$c_post\n" > exp || framework_failure_
+
+env TERM=xterm COLUMNS=80 LS_COLORS="*.foo=$color_code" TIME_STYLE=+T \
+ ls -og --color=always $long_name > out || fail=1
+
+# Append a newline, to accommodate less-capable versions of sed.
+echo >> out || fail=1
+
+sed 's/.*T //' out > k && mv k out
+
+compare exp out || fail=1
+
+Exit $fail
diff --git a/tests/ls/color-dtype-dir b/tests/ls/color-dtype-dir
deleted file mode 100755
index f3f9ee9..0000000
--- a/tests/ls/color-dtype-dir
+++ /dev/null
@@ -1,67 +0,0 @@
-#!/bin/sh
-# Ensure "ls --color" properly colors other-writable and sticky directories.
-# Before coreutils-6.2, this test would fail, coloring all three
-# directories the same as the first one -- but only on a file system
-# with dirent.d_type support.
-
-# Copyright (C) 2006 Free Software Foundation, Inc.
-
-# This program is free software; you can redistribute it and/or modify
-# it under the terms of the GNU General Public License as published by
-# the Free Software Foundation; either version 2 of the License, or
-# (at your option) any later version.
-
-# This program is distributed in the hope that it will be useful,
-# but WITHOUT ANY WARRANTY; without even the implied warranty of
-# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
-# GNU General Public License for more details.
-
-# You should have received a copy of the GNU General Public License
-# along with this program; if not, write to the Free Software
-# Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA
-# 02110-1301, USA.
-
-if test "$VERBOSE" = yes; then
- set -x
- ls --version
-fi
-
-. $srcdir/../envvar-check
-
-pwd=`pwd`
-t0=`echo "$0"|sed 's,.*/,,'`.tmp; tmp=$t0/$$
-trap 'status=$?; cd "$pwd" && chmod -R u+rwx $t0 && rm -rf $t0 && exit $status' 0
-trap '(exit $?); exit $?' 1 2 13 15
-
-framework_failure=0
-mkdir -p $tmp || framework_failure=1
-cd $tmp || framework_failure=1
-
-mkdir d other-writable sticky || framework_failure=1
-chmod o+w other-writable || framework_failure=1
-chmod o+t sticky || framework_failure=1
-
-if test $framework_failure = 1; then
- echo "$0: failure in testing framework" 1>&2
- (exit 1); exit 1
-fi
-
-fail=0
-
-ls --color=always > out || fail=1
-cat -A out > o1 || fail=1
-echo >> o1 || fail=1
-mv o1 out || fail=1
-
-cat <<\EOF > exp || fail=1
-^[[0m^[[01;34md^[[0m$
-^[[34;42mother-writable^[[0m$
-^[[0mout^[[0m$
-^[[37;44msticky^[[0m$
-^[[m
-EOF
-
-cmp out exp || fail=1
-test $fail = 1 && diff out exp 2> /dev/null
-
-(exit $fail); exit $fail
diff --git a/tests/ls/color-dtype-dir.sh b/tests/ls/color-dtype-dir.sh
new file mode 100755
index 0000000..a247813
--- /dev/null
+++ b/tests/ls/color-dtype-dir.sh
@@ -0,0 +1,64 @@
+#!/bin/sh
+# Ensure "ls --color" properly colors other-writable and sticky directories.
+# Before coreutils-6.2, this test would fail, coloring all three
+# directories the same as the first one -- but only on a file system
+# with dirent.d_type support.
+
+# Copyright (C) 2006-2016 Free Software Foundation, Inc.
+
+# This program is free software: you can redistribute it and/or modify
+# it under the terms of the GNU General Public License as published by
+# the Free Software Foundation, either version 3 of the License, or
+# (at your option) any later version.
+
+# This program is distributed in the hope that it will be useful,
+# but WITHOUT ANY WARRANTY; without even the implied warranty of
+# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
+# GNU General Public License for more details.
+
+# You should have received a copy of the GNU General Public License
+# along with this program. If not, see <http://www.gnu.org/licenses/>.
+
+. "${srcdir=.}/tests/init.sh"; path_prepend_ ./src
+print_ver_ ls
+
+# Don't let a different umask perturb the results.
+umask 22
+
+mkdir d other-writable sticky || framework_failure_
+chmod o+w other-writable || framework_failure_
+chmod o+t sticky || framework_failure_
+
+
+TERM=xterm ls --color=always > out || fail=1
+cat -A out > o1 || fail=1
+mv o1 out || fail=1
+
+cat <<\EOF > exp || fail=1
+^[[0m^[[01;34md^[[0m$
+^[[34;42mother-writable^[[0m$
+out$
+^[[37;44msticky^[[0m$
+EOF
+
+compare exp out || fail=1
+
+rm exp
+
+# Turn off colors for other-writable dirs and ensure
+# we fall back to the color for standard directories.
+
+LS_COLORS="ow=:" ls --color=always > out || fail=1
+cat -A out > o1 || fail=1
+mv o1 out || fail=1
+
+cat <<\EOF > exp || fail=1
+^[[0m^[[01;34md^[[0m$
+^[[01;34mother-writable^[[0m$
+out$
+^[[37;44msticky^[[0m$
+EOF
+
+compare exp out || fail=1
+
+Exit $fail
diff --git a/tests/ls/color-norm.sh b/tests/ls/color-norm.sh
new file mode 100755
index 0000000..5ad2c9d
--- /dev/null
+++ b/tests/ls/color-norm.sh
@@ -0,0 +1,84 @@
+#!/bin/sh
+# Ensure "ls --color" properly colors "normal" text and files.
+# I.e., that it uses NORMAL to style non file name output and
+# file names with no associated color (unless FILE is also set).
+
+# Copyright (C) 2010-2016 Free Software Foundation, Inc.
+
+# This program is free software: you can redistribute it and/or modify
+# it under the terms of the GNU General Public License as published by
+# the Free Software Foundation, either version 3 of the License, or
+# (at your option) any later version.
+
+# This program is distributed in the hope that it will be useful,
+# but WITHOUT ANY WARRANTY; without even the implied warranty of
+# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
+# GNU General Public License for more details.
+
+# You should have received a copy of the GNU General Public License
+# along with this program. If not, see <http://www.gnu.org/licenses/>.
+
+. "${srcdir=.}/tests/init.sh"; path_prepend_ ./src
+print_ver_ ls
+
+# Don't let a different umask perturb the results.
+umask 22
+
+# Output time as something constant
+export TIME_STYLE="+norm"
+
+# helper to strip ls columns up to "norm" time
+qls() { sed 's/-r.*norm/norm/'; }
+
+touch exe || framework_failure_
+chmod u+x exe || framework_failure_
+touch nocolor || framework_failure_
+
+TCOLORS="no=7:ex=01;32"
+
+# Non coloured files inherit NORMAL attributes
+LS_COLORS=$TCOLORS ls -gGU --color exe nocolor | qls >> out || fail=1
+LS_COLORS=$TCOLORS ls -xU --color exe nocolor >> out || fail=1
+LS_COLORS=$TCOLORS ls -gGU --color nocolor exe | qls >> out || fail=1
+LS_COLORS=$TCOLORS ls -xU --color nocolor exe >> out || fail=1
+
+# NORMAL does not override FILE though
+LS_COLORS=$TCOLORS:fi=1 ls -gGU --color nocolor exe | qls >> out || fail=1
+
+# Support uncolored ordinary files that do _not_ inherit from NORMAL.
+# Note there is a redundant RESET output before a non colored
+# file in this case which may be removed in future.
+LS_COLORS=$TCOLORS:fi= ls -gGU --color nocolor exe | qls >> out || fail=1
+LS_COLORS=$TCOLORS:fi=0 ls -gGU --color nocolor exe | qls >> out || fail=1
+
+# A caveat worth noting is that commas (-m), indicator chars (-F)
+# and the "total" line, do not currently use NORMAL attributes
+LS_COLORS=$TCOLORS ls -mFU --color nocolor exe >> out || fail=1
+
+# Ensure no coloring is done unless enabled
+LS_COLORS=$TCOLORS ls -gGU nocolor exe | qls >> out || fail=1
+
+cat -A out > out.display || framework_failure_
+mv out.display out || framework_failure_
+
+cat <<\EOF > exp || framework_failure_
+^[[0m^[[7mnorm ^[[m^[[01;32mexe^[[0m$
+^[[7mnorm nocolor^[[0m$
+^[[0m^[[7m^[[m^[[01;32mexe^[[0m ^[[7mnocolor^[[0m$
+^[[0m^[[7mnorm nocolor^[[0m$
+^[[7mnorm ^[[m^[[01;32mexe^[[0m$
+^[[0m^[[7mnocolor^[[0m ^[[7m^[[m^[[01;32mexe^[[0m$
+^[[0m^[[7mnorm ^[[m^[[1mnocolor^[[0m$
+^[[7mnorm ^[[m^[[01;32mexe^[[0m$
+^[[0m^[[7mnorm ^[[m^[[mnocolor^[[0m$
+^[[7mnorm ^[[m^[[01;32mexe^[[0m$
+^[[0m^[[7mnorm ^[[m^[[0mnocolor^[[0m$
+^[[7mnorm ^[[m^[[01;32mexe^[[0m$
+^[[0m^[[7mnocolor^[[0m, ^[[7m^[[m^[[01;32mexe^[[0m*$
+norm nocolor$
+norm exe$
+EOF
+
+compare exp out || fail=1
+
+Exit $fail
diff --git a/tests/ls/color-term.sh b/tests/ls/color-term.sh
new file mode 100755
index 0000000..af19532
--- /dev/null
+++ b/tests/ls/color-term.sh
@@ -0,0 +1,48 @@
+#!/bin/sh
+# Ensure "ls --color" doesn't output colors for TERM=dumb
+
+# Copyright (C) 2014-2016 Free Software Foundation, Inc.
+
+# This program is free software: you can redistribute it and/or modify
+# it under the terms of the GNU General Public License as published by
+# the Free Software Foundation, either version 3 of the License, or
+# (at your option) any later version.
+
+# This program is distributed in the hope that it will be useful,
+# but WITHOUT ANY WARRANTY; without even the implied warranty of
+# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
+# GNU General Public License for more details.
+
+# You should have received a copy of the GNU General Public License
+# along with this program. If not, see <http://www.gnu.org/licenses/>.
+
+. "${srcdir=.}/tests/init.sh"; path_prepend_ ./src
+print_ver_ ls
+
+# Output time as something constant
+export TIME_STYLE="+norm"
+
+touch exe || framework_failure_
+chmod u+x exe || framework_failure_
+
+# output colors
+LS_COLORS='' COLORTERM='nonempty' TERM='' ls --color=always exe >> out || fail=1
+LS_COLORS='' COLORTERM='' TERM='xterm' ls --color=always exe >> out || fail=1
+
+# Don't output colors
+LS_COLORS='' COLORTERM='' TERM='dumb' ls --color=always exe >> out || fail=1
+LS_COLORS='' COLORTERM='' TERM='' ls --color=always exe >> out || fail=1
+
+cat -A out > out.display || framework_failure_
+mv out.display out || framework_failure_
+
+cat <<\EOF > exp || framework_failure_
+^[[0m^[[01;32mexe^[[0m$
+^[[0m^[[01;32mexe^[[0m$
+exe$
+exe$
+EOF
+
+compare exp out || fail=1
+
+Exit $fail
diff --git a/tests/ls/dangle b/tests/ls/dangle
deleted file mode 100755
index a3bc0d2..0000000
--- a/tests/ls/dangle
+++ /dev/null
@@ -1,67 +0,0 @@
-#!/bin/sh
-# Make sure ls properly handles dangling symlinks vs. ls's -L, -H, options.
-
-# Copyright (C) 2003, 2006 Free Software Foundation, Inc.
-
-# This program is free software; you can redistribute it and/or modify
-# it under the terms of the GNU General Public License as published by
-# the Free Software Foundation; either version 2 of the License, or
-# (at your option) any later version.
-
-# This program is distributed in the hope that it will be useful,
-# but WITHOUT ANY WARRANTY; without even the implied warranty of
-# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
-# GNU General Public License for more details.
-
-# You should have received a copy of the GNU General Public License
-# along with this program; if not, write to the Free Software
-# Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA
-# 02110-1301, USA.
-
-if test "$VERBOSE" = yes; then
- set -x
- ls --version
-fi
-
-pwd=`pwd`
-t0=`echo "$0"|sed 's,.*/,,'`.tmp; tmp=$t0/$$
-trap 'status=$?; cd "$pwd" && chmod -R u+rwx $t0 && rm -rf $t0 && exit $status' 0
-trap '(exit $?); exit $?' 1 2 13 15
-
-framework_failure=0
-mkdir -p $tmp || framework_failure=1
-cd $tmp || framework_failure=1
-ln -s no-such-file dangle || framework_failure=1
-mkdir -p dir/sub || framework_failure=1
-ln -s dir slink-to-dir || framework_failure=1
-
-if test $framework_failure = 1; then
- echo "$0: failure in testing framework" 1>&2
- (exit 1); exit 1
-fi
-
-fail=0
-
-# This must exit nonzero.
-ls -L dangle > /dev/null 2>&1 && fail=1
-# So must this.
-ls -H dangle > /dev/null 2>&1 && fail=1
-
-# This must exit successfully.
-ls dangle >> out || fail=1
-
-ls slink-to-dir >> out 2>&1 || fail=1
-ls -H slink-to-dir >> out 2>&1 || fail=1
-ls -L slink-to-dir >> out 2>&1 || fail=1
-
-cat <<\EOF > exp
-dangle
-sub
-sub
-sub
-EOF
-
-cmp out exp || fail=1
-test $fail = 1 && diff out exp 2> /dev/null
-
-(exit $fail); exit $fail
diff --git a/tests/ls/dangle.sh b/tests/ls/dangle.sh
new file mode 100755
index 0000000..d27c0d1
--- /dev/null
+++ b/tests/ls/dangle.sh
@@ -0,0 +1,64 @@
+#!/bin/sh
+# Make sure ls properly handles dangling symlinks vs. ls's -L, -H, options.
+
+# Copyright (C) 2003-2016 Free Software Foundation, Inc.
+
+# This program is free software: you can redistribute it and/or modify
+# it under the terms of the GNU General Public License as published by
+# the Free Software Foundation, either version 3 of the License, or
+# (at your option) any later version.
+
+# This program is distributed in the hope that it will be useful,
+# but WITHOUT ANY WARRANTY; without even the implied warranty of
+# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
+# GNU General Public License for more details.
+
+# You should have received a copy of the GNU General Public License
+# along with this program. If not, see <http://www.gnu.org/licenses/>.
+
+. "${srcdir=.}/tests/init.sh"; path_prepend_ ./src
+print_ver_ ls
+
+LS_MINOR_PROBLEM=1
+LS_FAILURE=2
+
+ln -s no-such-file dangle || framework_failure_
+mkdir -p dir/sub || framework_failure_
+ln -s dir slink-to-dir || framework_failure_
+mkdir d || framework_failure_
+ln -s no-such d/dangle || framework_failure_
+printf '? dangle\n' > subdir_Li_exp || framework_failure_
+printf 'total 0\n? dangle\n' > subdir_Ls_exp || framework_failure_
+
+# This must exit nonzero.
+returns_ $LS_FAILURE ls -L dangle > /dev/null 2>&1 || fail=1
+# So must this.
+returns_ $LS_FAILURE ls -H dangle > /dev/null 2>&1 || fail=1
+
+# This must exit successfully.
+ls dangle >> out || fail=1
+
+ls slink-to-dir >> out 2>&1 || fail=1
+ls -H slink-to-dir >> out 2>&1 || fail=1
+ls -L slink-to-dir >> out 2>&1 || fail=1
+
+cat <<\EOF > exp
+dangle
+sub
+sub
+sub
+EOF
+
+compare exp out || fail=1
+
+# Ensure that ls -Li prints "?" as the inode of a dangling symlink.
+rm -f out
+returns_ $LS_MINOR_PROBLEM ls -Li d > out 2>/dev/null || fail=1
+compare subdir_Li_exp out || fail=1
+
+# Ensure that ls -Ls prints "?" as the allocation of a dangling symlink.
+rm -f out
+returns_ $LS_MINOR_PROBLEM ls -Ls d > out 2>/dev/null || fail=1
+compare subdir_Ls_exp out || fail=1
+
+Exit $fail
diff --git a/tests/ls/dired b/tests/ls/dired
deleted file mode 100755
index d6f32b4..0000000
--- a/tests/ls/dired
+++ /dev/null
@@ -1,56 +0,0 @@
-#!/bin/sh
-# make sure --dired option works
-
-# Copyright (C) 2001, 2002, 2004, 2006 Free Software Foundation, Inc.
-
-# This program is free software; you can redistribute it and/or modify
-# it under the terms of the GNU General Public License as published by
-# the Free Software Foundation; either version 2 of the License, or
-# (at your option) any later version.
-
-# This program is distributed in the hope that it will be useful,
-# but WITHOUT ANY WARRANTY; without even the implied warranty of
-# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
-# GNU General Public License for more details.
-
-# You should have received a copy of the GNU General Public License
-# along with this program; if not, write to the Free Software
-# Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA
-# 02110-1301, USA.
-
-if test "$VERBOSE" = yes; then
- set -x
- ls --version
-fi
-
-. $srcdir/../envvar-check
-
-pwd=`pwd`
-tmp=dired.$$
-trap 'status=$?; cd "$pwd" && rm -rf $tmp && exit $status' 0
-trap '(exit $?); exit' 1 2 13 15
-
-framework_failure=0
-mkdir $tmp || framework_failure=1
-cd $tmp || framework_failure=1
-mkdir dir || framework_failure=1
-
-if test $framework_failure = 1; then
- echo 'failure in testing framework' 1>&2
- (exit 1); exit 1
-fi
-
-fail=0
-
-LC_MESSAGES=C ls -lR --dired dir > out || fail=1
-cat <<EOF > exp
- dir:
- total 0
-//SUBDIRED// 2 5
-//DIRED-OPTIONS// --quoting-style=literal
-EOF
-
-cmp out exp || fail=1
-test $fail = 1 && diff out exp 2> /dev/null
-
-(exit $fail); exit $fail
diff --git a/tests/ls/dired.sh b/tests/ls/dired.sh
new file mode 100755
index 0000000..2759a76
--- /dev/null
+++ b/tests/ls/dired.sh
@@ -0,0 +1,35 @@
+#!/bin/sh
+# make sure --dired option works
+
+# Copyright (C) 2001-2016 Free Software Foundation, Inc.
+
+# This program is free software: you can redistribute it and/or modify
+# it under the terms of the GNU General Public License as published by
+# the Free Software Foundation, either version 3 of the License, or
+# (at your option) any later version.
+
+# This program is distributed in the hope that it will be useful,
+# but WITHOUT ANY WARRANTY; without even the implied warranty of
+# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
+# GNU General Public License for more details.
+
+# You should have received a copy of the GNU General Public License
+# along with this program. If not, see <http://www.gnu.org/licenses/>.
+
+. "${srcdir=.}/tests/init.sh"; path_prepend_ ./src
+print_ver_ ls
+
+mkdir dir || framework_failure_
+
+
+LC_MESSAGES=C ls -lR --dired dir > out || fail=1
+cat <<EOF > exp
+ dir:
+ total 0
+//SUBDIRED// 2 5
+//DIRED-OPTIONS// --quoting-style=literal
+EOF
+
+compare exp out || fail=1
+
+Exit $fail
diff --git a/tests/ls/file-type b/tests/ls/file-type
deleted file mode 100755
index 80d778a..0000000
--- a/tests/ls/file-type
+++ /dev/null
@@ -1,90 +0,0 @@
-#!/bin/sh
-# contrast ls -F, ls -p, and ls --indicator-style=file-type
-
-# Copyright (C) 2002, 2005, 2006 Free Software Foundation, Inc.
-
-# This program is free software; you can redistribute it and/or modify
-# it under the terms of the GNU General Public License as published by
-# the Free Software Foundation; either version 2 of the License, or
-# (at your option) any later version.
-
-# This program is distributed in the hope that it will be useful,
-# but WITHOUT ANY WARRANTY; without even the implied warranty of
-# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
-# GNU General Public License for more details.
-
-# You should have received a copy of the GNU General Public License
-# along with this program; if not, write to the Free Software
-# Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA
-# 02110-1301, USA.
-
-if test "$VERBOSE" = yes; then
- set -x
- ls --version
-fi
-
-. $srcdir/../envvar-check
-. $srcdir/../lang-default
-
-pwd=`pwd`
-t0=`echo "$0"|sed 's,.*/,,'`.tmp; tmp=$t0/$$
-trap 'status=$?; cd "$pwd" && chmod -R u+rwx $t0 && rm -rf $t0 && exit $status' 0
-trap '(exit $?); exit $?' 1 2 13 15
-
-framework_failure=0
-mkdir -p $tmp || framework_failure=1
-cd $tmp || framework_failure=1
-mkdir sub
-cd sub
-mkdir dir
-touch regular executable
-chmod a+x executable
-ln -s regular slink-reg
-ln -s dir slink-dir
-ln -s nowhere slink-dangle
-mknod block b 20 20 2> /dev/null && block="block
-"
-mknod char c 10 10 2> /dev/null && char="char
-"
-mkfifo fifo
-cd ..
-
-
-if test $framework_failure = 1; then
- echo "$0: failure in testing framework" 1>&2
- (exit 1); exit 1
-fi
-
-fail=0
-
-ls -F sub > out || fail=1
-cat <<EOF > exp
-$block${char}dir/
-executable*
-fifo|
-regular
-slink-dangle@
-slink-dir@
-slink-reg@
-EOF
-
-sed 's/\*//' exp > exp2
-ls --indicator-style=file-type sub > out2 || fail=1
-
-sed 's/[@|]$//' exp2 > exp3
-ls -p sub > out3 || fail=1
-
-cmp out exp || fail=1
-test $fail = 1 && diff out exp 2> /dev/null
-
-cmp out2 exp2 || fail=1
-test $fail = 1 && diff out2 exp2 2> /dev/null
-
-cmp out3 exp3 || fail=1
-test $fail = 1 && diff out3 exp3 2> /dev/null
-
-ls --color=auto -F sub > out || fail=1
-cmp out exp || fail=1
-test $fail = 1 && diff out exp 2> /dev/null
-
-(exit $fail); exit $fail
diff --git a/tests/ls/file-type.sh b/tests/ls/file-type.sh
new file mode 100755
index 0000000..91e7c97
--- /dev/null
+++ b/tests/ls/file-type.sh
@@ -0,0 +1,65 @@
+#!/bin/sh
+# contrast ls -F, ls -p, and ls --indicator-style=file-type
+
+# Copyright (C) 2002-2016 Free Software Foundation, Inc.
+
+# This program is free software: you can redistribute it and/or modify
+# it under the terms of the GNU General Public License as published by
+# the Free Software Foundation, either version 3 of the License, or
+# (at your option) any later version.
+
+# This program is distributed in the hope that it will be useful,
+# but WITHOUT ANY WARRANTY; without even the implied warranty of
+# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
+# GNU General Public License for more details.
+
+# You should have received a copy of the GNU General Public License
+# along with this program. If not, see <http://www.gnu.org/licenses/>.
+
+. "${srcdir=.}/tests/init.sh"; path_prepend_ ./src
+print_ver_ ls
+
+mkdir sub
+cd sub
+mkdir dir
+touch regular executable
+chmod a+x executable
+ln -s regular slink-reg
+ln -s dir slink-dir
+ln -s nowhere slink-dangle
+mknod block b 20 20 2> /dev/null && block="block
+"
+mknod char c 10 10 2> /dev/null && char="char
+"
+mkfifo_or_skip_ fifo
+cd ..
+
+
+
+ls -F sub > out || fail=1
+cat <<EOF > exp
+$block${char}dir/
+executable*
+fifo|
+regular
+slink-dangle@
+slink-dir@
+slink-reg@
+EOF
+
+sed 's/\*//' exp > exp2
+ls --indicator-style=file-type sub > out2 || fail=1
+
+sed 's/[@|]$//' exp2 > exp3
+ls -p sub > out3 || fail=1
+
+compare exp out || fail=1
+
+compare exp2 out2 || fail=1
+
+compare exp3 out3 || fail=1
+
+ls --color=auto -F sub > out || fail=1
+compare exp out || fail=1
+
+Exit $fail
diff --git a/tests/ls/follow-slink b/tests/ls/follow-slink
deleted file mode 100755
index 00e9b1b..0000000
--- a/tests/ls/follow-slink
+++ /dev/null
@@ -1,86 +0,0 @@
-#!/bin/sh
-# make sure ls -L always follows symlinks
-
-# Copyright (C) 2000, 2002, 2004, 2006, 2007 Free Software Foundation, Inc.
-
-# This program is free software; you can redistribute it and/or modify
-# it under the terms of the GNU General Public License as published by
-# the Free Software Foundation; either version 2 of the License, or
-# (at your option) any later version.
-
-# This program is distributed in the hope that it will be useful,
-# but WITHOUT ANY WARRANTY; without even the implied warranty of
-# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
-# GNU General Public License for more details.
-
-# You should have received a copy of the GNU General Public License
-# along with this program; if not, write to the Free Software
-# Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA
-# 02110-1301, USA.
-
-if test "$VERBOSE" = yes; then
- set -x
- ls --version
-fi
-
-pwd=`pwd`
-tmp=follow-sl.$$
-trap 'status=$?; cd "$pwd" && rm -rf $tmp && exit $status' 0
-trap '(exit $?); exit' 1 2 13 15
-
-framework_failure=0
-mkdir $tmp || framework_failure=1
-cd $tmp || framework_failure=1
-
-# Isolate output files from directory being listed
-mkdir dir dir/sub dir1 || framework_failure=1
-cd dir || framework_failure=1
-ln -s link link || framework_failure=1
-ln -s ../../dir1 sub/link-to-dir || framework_failure=1
-
-# Make sure the symlink was created.
-# `ln -s link link' succeeds, but creates no file on
-# systems running some DJGPP-2.03 libc.
-ls -F link > /dev/null || framework_failure=1
-
-if test $framework_failure = 1; then
- echo 'failure in testing framework'
- (exit 1); exit 1
-fi
-
-fail=0
-
-# When explicitly listing a broken link, the command must fail.
-ls -L link 2> /dev/null && fail=1
-
-# When encountering a broken link implicitly, Solaris 9 and OpenBSD 3.4
-# list the link, provided no further information about the link needed
-# to be printed. Since POSIX does not specify one way or the other, we
-# opt for compatibility (this was broken in 5.3.0 through 5.94).
-LC_ALL=C ls -L > ../out-L || fail=1
-LC_ALL=C ls -FLR sub > ../out-FLR-sub || fail=1
-
-cd .. || fail=1
-
-cat <<\EOF > exp-L
-link
-sub
-EOF
-
-cat <<\EOF > exp-FLR-sub
-sub:
-link-to-dir/
-
-sub/link-to-dir:
-EOF
-
-cmp out-L exp-L || {
- fail=1
- diff out-L exp-L
-}
-cmp out-FLR-sub exp-FLR-sub || {
- fail=1
- diff out-FLR-sub exp-FLR-sub
-}
-
-(exit $fail); exit $fail
diff --git a/tests/ls/follow-slink.sh b/tests/ls/follow-slink.sh
new file mode 100755
index 0000000..5a21641
--- /dev/null
+++ b/tests/ls/follow-slink.sh
@@ -0,0 +1,63 @@
+#!/bin/sh
+# make sure ls -L always follows symlinks
+
+# Copyright (C) 2000-2016 Free Software Foundation, Inc.
+
+# This program is free software: you can redistribute it and/or modify
+# it under the terms of the GNU General Public License as published by
+# the Free Software Foundation, either version 3 of the License, or
+# (at your option) any later version.
+
+# This program is distributed in the hope that it will be useful,
+# but WITHOUT ANY WARRANTY; without even the implied warranty of
+# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
+# GNU General Public License for more details.
+
+# You should have received a copy of the GNU General Public License
+# along with this program. If not, see <http://www.gnu.org/licenses/>.
+
+. "${srcdir=.}/tests/init.sh"; path_prepend_ ./src
+print_ver_ ls
+
+LS_FAILURE=2
+
+# Isolate output files from directory being listed
+mkdir dir dir/sub dir1 || framework_failure_
+cd dir || framework_failure_
+ln -s link link || framework_failure_
+ln -s ../../dir1 sub/link-to-dir || framework_failure_
+
+# Make sure the symlink was created.
+# 'ln -s link link' succeeds, but creates no file on
+# systems running some DJGPP-2.03 libc.
+ls -F link > /dev/null || framework_failure_
+
+
+# When explicitly listing a broken link, the command must fail.
+returns_ $LS_FAILURE ls -L link 2> /dev/null || fail=1
+
+# When encountering a broken link implicitly, Solaris 9 and OpenBSD 3.4
+# list the link, provided no further information about the link needed
+# to be printed. Since POSIX does not specify one way or the other, we
+# opt for compatibility (this was broken in 5.3.0 through 5.94).
+LC_ALL=C ls -L > ../out-L || fail=1
+LC_ALL=C ls -FLR sub > ../out-FLR-sub || fail=1
+
+cd .. || fail=1
+
+cat <<\EOF > exp-L
+link
+sub
+EOF
+
+cat <<\EOF > exp-FLR-sub
+sub:
+link-to-dir/
+
+sub/link-to-dir:
+EOF
+
+compare exp-L out-L || fail=1
+compare exp-FLR-sub out-FLR-sub || fail=1
+
+Exit $fail
diff --git a/tests/ls/getxattr-speedup.sh b/tests/ls/getxattr-speedup.sh
new file mode 100755
index 0000000..2e84555
--- /dev/null
+++ b/tests/ls/getxattr-speedup.sh
@@ -0,0 +1,66 @@
+#!/bin/sh
+# Show that we've eliminated most of ls' failing getxattr syscalls,
+# regardless of how many files are in a directory we list.
+# This test is skipped on systems that lack LD_PRELOAD support; that's fine.
+# Similarly, on a system that lacks getxattr altogether, skipping it is fine.
+
+# Copyright (C) 2012-2016 Free Software Foundation, Inc.
+
+# This program is free software: you can redistribute it and/or modify
+# it under the terms of the GNU General Public License as published by
+# the Free Software Foundation, either version 3 of the License, or
+# (at your option) any later version.
+
+# This program is distributed in the hope that it will be useful,
+# but WITHOUT ANY WARRANTY; without even the implied warranty of
+# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
+# GNU General Public License for more details.
+
+# You should have received a copy of the GNU General Public License
+# along with this program. If not, see <http://www.gnu.org/licenses/>.
+
+. "${srcdir=.}/tests/init.sh"; path_prepend_ ./src
+print_ver_ ls
+require_gcc_shared_
+
+# Replace each getxattr and lgetxattr call with a call to these stubs.
+# Count those and write the total number of calls to the file "x"
+# via a global destructor.
+cat > k.c <<'EOF' || framework_failure_
+#include <errno.h>
+#include <stdio.h>
+#include <sys/types.h>
+
+static unsigned long int n_calls;
+
+static void __attribute__ ((destructor))
+print_call_count (void)
+{
+ FILE *fp = fopen ("x", "w"); if (!fp) return;
+ fprintf (fp, "%lu\n", n_calls); fclose (fp);
+}
+
+static ssize_t incr () { ++n_calls; errno = ENOTSUP; return -1; }
+ssize_t getxattr (const char *path, const char *name, void *value, size_t size)
+{ return incr (); }
+ssize_t lgetxattr(const char *path, const char *name, void *value, size_t size)
+{ return incr (); }
+EOF
+
+# Then compile/link it:
+gcc_shared_ k.c k.so \
+ || framework_failure_ 'failed to build shared library'
+
+# Create a few files:
+seq 20 | xargs touch || framework_failure_
+
+# Finally, run the test:
+LD_PRELOAD=$LD_PRELOAD:./k.so ls --color=always -l . || fail=1
+
+test -f x || skip_ "internal test failure: maybe LD_PRELOAD doesn't work?"
+
+# Ensure that there were no more than 3 *getxattr calls.
+n_calls=$(cat x)
+test "$n_calls" -le 3 || fail=1
+
+Exit $fail
diff --git a/tests/ls/hex-option.sh b/tests/ls/hex-option.sh
new file mode 100755
index 0000000..84be1b4
--- /dev/null
+++ b/tests/ls/hex-option.sh
@@ -0,0 +1,24 @@
+#!/bin/sh
+# accept hex/oct numbers to -w and -T
+
+# Copyright (C) 2014-2016 Free Software Foundation, Inc.
+
+# This program is free software: you can redistribute it and/or modify
+# it under the terms of the GNU General Public License as published by
+# the Free Software Foundation, either version 3 of the License, or
+# (at your option) any later version.
+
+# This program is distributed in the hope that it will be useful,
+# but WITHOUT ANY WARRANTY; without even the implied warranty of
+# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
+# GNU General Public License for more details.
+
+# You should have received a copy of the GNU General Public License
+# along with this program. If not, see <http://www.gnu.org/licenses/>.
+
+. "${srcdir=.}/tests/init.sh"; path_prepend_ ./src
+print_ver_ ls
+
+ls -x -T0x10 -w010 || fail=1
+
+Exit $fail
diff --git a/tests/ls/infloop b/tests/ls/infloop
deleted file mode 100755
index f7790b8..0000000
--- a/tests/ls/infloop
+++ /dev/null
@@ -1,61 +0,0 @@
-#!/bin/sh
-# show that the following no longer makes ls infloop
-# mkdir loop; cd loop; ln -s ../loop sub; ls -RL
-
-# Copyright (C) 2001, 2002, 2004, 2006 Free Software Foundation, Inc.
-
-# This program is free software; you can redistribute it and/or modify
-# it under the terms of the GNU General Public License as published by
-# the Free Software Foundation; either version 2 of the License, or
-# (at your option) any later version.
-
-# This program is distributed in the hope that it will be useful,
-# but WITHOUT ANY WARRANTY; without even the implied warranty of
-# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
-# GNU General Public License for more details.
-
-# You should have received a copy of the GNU General Public License
-# along with this program; if not, write to the Free Software
-# Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA
-# 02110-1301, USA.
-
-if test "$VERBOSE" = yes; then
- set -x
- ls --version
-fi
-
-. $srcdir/../lang-default
-
-pwd=`pwd`
-tmp=infloop.$$
-trap 'status=$?; cd "$pwd" && rm -rf $tmp && exit $status' 0
-trap '(exit $?); exit' 1 2 13 15
-
-framework_failure=0
-mkdir $tmp || framework_failure=1
-cd $tmp || framework_failure=1
-mkdir loop || framework_failure=1
-ln -s ../loop loop/sub || framework_failure=1
-
-if test $framework_failure = 1; then
- echo 'failure in testing framework' 1>&2
- (exit 1); exit 1
-fi
-
-fail=0
-
-ls -RL loop 2>err | head -n 7 > out
-# With an inf-looping ls, out will contain these 7 lines:
-cat <<EOF > bad
-loop:
-sub
-
-loop/sub:
-sub
-
-loop/sub/sub:
-EOF
-
-cmp out bad 2>/dev/null && fail=1
-
-(exit $fail); exit $fail
diff --git a/tests/ls/infloop.sh b/tests/ls/infloop.sh
new file mode 100755
index 0000000..e06a9a4
--- /dev/null
+++ b/tests/ls/infloop.sh
@@ -0,0 +1,42 @@
+#!/bin/sh
+# show that the following no longer makes ls infloop
+# mkdir loop; cd loop; ln -s ../loop sub; ls -RL
+# Also ensure ls exits with status = 2 in that case.
+# Copyright (C) 2001-2016 Free Software Foundation, Inc.
+
+# This program is free software: you can redistribute it and/or modify
+# it under the terms of the GNU General Public License as published by
+# the Free Software Foundation, either version 3 of the License, or
+# (at your option) any later version.
+
+# This program is distributed in the hope that it will be useful,
+# but WITHOUT ANY WARRANTY; without even the implied warranty of
+# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
+# GNU General Public License for more details.
+
+# You should have received a copy of the GNU General Public License
+# along with this program. If not, see <http://www.gnu.org/licenses/>.
+
+. "${srcdir=.}/tests/init.sh"; path_prepend_ ./src
+print_ver_ ls
+
+mkdir loop || framework_failure_
+ln -s ../loop loop/sub || framework_failure_
+
+cat <<\EOF > exp-out || framework_failure_
+loop:
+sub
+EOF
+
+cat <<\EOF > exp-err || framework_failure_
+ls: loop/sub: not listing already-listed directory
+EOF
+
+timeout 10 ls -RL loop >out 2>err
+# Ensure that ls exits with status 2 upon detecting a cycle
+test $? = 2 || fail=1
+
+compare exp-err err || fail=1
+compare exp-out out || fail=1
+
+Exit $fail
diff --git a/tests/ls/inode b/tests/ls/inode
deleted file mode 100755
index 305eb22..0000000
--- a/tests/ls/inode
+++ /dev/null
@@ -1,83 +0,0 @@
-#!/bin/sh
-# Make sure that ls -i works properly on symlinks.
-
-# Copyright (C) 2003, 2006 Free Software Foundation, Inc.
-
-# This program is free software; you can redistribute it and/or modify
-# it under the terms of the GNU General Public License as published by
-# the Free Software Foundation; either version 2 of the License, or
-# (at your option) any later version.
-
-# This program is distributed in the hope that it will be useful,
-# but WITHOUT ANY WARRANTY; without even the implied warranty of
-# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
-# GNU General Public License for more details.
-
-# You should have received a copy of the GNU General Public License
-# along with this program; if not, write to the Free Software
-# Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA
-# 02110-1301, USA.
-
-if test "$VERBOSE" = yes; then
- set -x
- ls --version
-fi
-
-pwd=`pwd`
-t0=`echo "$0"|sed 's,.*/,,'`.tmp; tmp=$t0/$$
-trap 'status=$?; cd "$pwd" && chmod -R u+rwx $t0 && rm -rf $t0 && exit $status' 0
-trap '(exit $?); exit $?' 1 2 13 15
-
-framework_failure=0
-mkdir -p $tmp || framework_failure=1
-cd $tmp || framework_failure=1
-touch f || framework_failure=1
-ln -s f slink || framework_failure=1
-
-if test $framework_failure = 1; then
- echo "$0: failure in testing framework" 1>&2
- (exit 1); exit 1
-fi
-
-fail=0
-
-# When listed explicitly:
-
-set x `ls -Ci f slink`; shift
-test $# = 4 || fail=1
-# The inode numbers should differ.
-test "$1" != "$3" || fail=1
-
-set x `ls -CLi f slink`; shift
-test $# = 4 || fail=1
-# With -L, they must be the same.
-test "$1" = "$3" || fail=1
-
-set x `ls -CHi f slink`; shift
-test $# = 4 || fail=1
-# With -H, they must be the same, too, from the command line.
-# Note that POSIX says -H must make ls dereference only
-# symlinks (specified on the command line) to directories,
-# but the historical BSD meaning of -H is to dereference
-# any symlink given on the command line. For compatibility GNU ls
-# implements the BSD semantics.
-test "$1" = "$3" || fail=1
-
-# When listed from a directory:
-
-set x `ls -Ci`; shift
-test $# = 4 || fail=1
-# The inode numbers should differ.
-test "$1" != "$3" || fail=1
-
-set x `ls -CLi`; shift
-test $# = 4 || fail=1
-# With -L, they must be the same.
-test "$1" = "$3" || fail=1
-
-set x `ls -CHi`; shift
-test $# = 4 || fail=1
-# With -H, they must be different from inside a directory.
-test "$1" != "$3" || fail=1
-
-(exit $fail); exit $fail
diff --git a/tests/ls/inode.sh b/tests/ls/inode.sh
new file mode 100755
index 0000000..b365d80
--- /dev/null
+++ b/tests/ls/inode.sh
@@ -0,0 +1,65 @@
+#!/bin/sh
+# Make sure that ls -i works properly on symlinks.
+
+# Copyright (C) 2003-2016 Free Software Foundation, Inc.
+
+# This program is free software: you can redistribute it and/or modify
+# it under the terms of the GNU General Public License as published by
+# the Free Software Foundation, either version 3 of the License, or
+# (at your option) any later version.
+
+# This program is distributed in the hope that it will be useful,
+# but WITHOUT ANY WARRANTY; without even the implied warranty of
+# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
+# GNU General Public License for more details.
+
+# You should have received a copy of the GNU General Public License
+# along with this program. If not, see <http://www.gnu.org/licenses/>.
+
+. "${srcdir=.}/tests/init.sh"; path_prepend_ ./src
+print_ver_ ls
+
+touch f || framework_failure_
+ln -s f slink || framework_failure_
+
+
+# When listed explicitly:
+
+set x $(ls -Ci f slink); shift
+test $# = 4 || fail=1
+# The inode numbers should differ.
+test "$1" != "$3" || fail=1
+
+set x $(ls -CLi f slink); shift
+test $# = 4 || fail=1
+# With -L, they must be the same.
+test "$1" = "$3" || fail=1
+
+set x $(ls -CHi f slink); shift
+test $# = 4 || fail=1
+# With -H, they must be the same, too, from the command line.
+# Note that POSIX says -H must make ls dereference only
+# symlinks (specified on the command line) to directories,
+# but the historical BSD meaning of -H is to dereference
+# any symlink given on the command line. For compatibility GNU ls
+# implements the BSD semantics.
+test "$1" = "$3" || fail=1
+
+# When listed from a directory:
+
+set x $(ls -Ci); shift
+test $# = 4 || fail=1
+# The inode numbers should differ.
+test "$1" != "$3" || fail=1
+
+set x $(ls -CLi); shift
+test $# = 4 || fail=1
+# With -L, they must be the same.
+test "$1" = "$3" || fail=1
+
+set x $(ls -CHi); shift
+test $# = 4 || fail=1
+# With -H, they must be different from inside a directory.
+test "$1" != "$3" || fail=1
+
+Exit $fail
diff --git a/tests/ls/m-option b/tests/ls/m-option
deleted file mode 100755
index e002fc4..0000000
--- a/tests/ls/m-option
+++ /dev/null
@@ -1,61 +0,0 @@
-#!/bin/sh
-# exercise the -m option
-
-# Copyright (C) 2003, 2006 Free Software Foundation, Inc.
-
-# This program is free software; you can redistribute it and/or modify
-# it under the terms of the GNU General Public License as published by
-# the Free Software Foundation; either version 2 of the License, or
-# (at your option) any later version.
-
-# This program is distributed in the hope that it will be useful,
-# but WITHOUT ANY WARRANTY; without even the implied warranty of
-# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
-# GNU General Public License for more details.
-
-# You should have received a copy of the GNU General Public License
-# along with this program; if not, write to the Free Software
-# Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA
-# 02110-1301, USA.
-
-if test "$VERBOSE" = yes; then
- set -x
- ls --version
-fi
-
-. $srcdir/../envvar-check
-
-pwd=`pwd`
-t0=`echo "$0"|sed 's,.*/,,'`.tmp; tmp=$t0/$$
-trap 'status=$?; cd "$pwd" && chmod -R u+rwx $t0 && rm -rf $t0 && exit $status' 0
-trap '(exit $?); exit $?' 1 2 13 15
-
-framework_failure=0
-mkdir -p $tmp || framework_failure=1
-cd $tmp || framework_failure=1
-seq 2000 > b || framework_failure=1
-touch a || framework_failure=1
-
-if test $framework_failure = 1; then
- echo "$0: failure in testing framework" 1>&2
- (exit 1); exit 1
-fi
-
-fail=0
-
-# Before coreutils-5.1.1, the following would output a space after the comma.
-ls -w2 -m a b > out || fail=1
-
-# Before coreutils-5.1.1, the following would produce leading white space.
-# All of the sed business is because the sizes are not portable.
-ls -sm a b | sed 's/^[0-9]/0/;s/, [0-9][0-9]* b/, 12 b/' >> out || fail=1
-cat <<\EOF > exp || fail=1
-a,
-b
-0 a, 12 b
-EOF
-
-cmp out exp || fail=1
-test $fail = 1 && diff out exp 2> /dev/null
-
-(exit $fail); exit $fail
diff --git a/tests/ls/m-option.sh b/tests/ls/m-option.sh
new file mode 100755
index 0000000..bfd084a
--- /dev/null
+++ b/tests/ls/m-option.sh
@@ -0,0 +1,40 @@
+#!/bin/sh
+# exercise the -m option
+
+# Copyright (C) 2003-2016 Free Software Foundation, Inc.
+
+# This program is free software: you can redistribute it and/or modify
+# it under the terms of the GNU General Public License as published by
+# the Free Software Foundation, either version 3 of the License, or
+# (at your option) any later version.
+
+# This program is distributed in the hope that it will be useful,
+# but WITHOUT ANY WARRANTY; without even the implied warranty of
+# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
+# GNU General Public License for more details.
+
+# You should have received a copy of the GNU General Public License
+# along with this program. If not, see <http://www.gnu.org/licenses/>.
+
+. "${srcdir=.}/tests/init.sh"; path_prepend_ ./src
+print_ver_ ls
+
+seq 2000 > b || framework_failure_
+touch a || framework_failure_
+
+
+# Before coreutils-5.1.1, the following would output a space after the comma.
+ls -w2 -m a b > out || fail=1
+
+# Before coreutils-5.1.1, the following would produce leading white space.
+# All of the sed business is because the sizes are not portable.
+ls -sm a b | sed 's/^[0-9]/0/;s/, [0-9][0-9]* b/, 12 b/' >> out || fail=1
+cat <<\EOF > exp || fail=1
+a,
+b
+0 a, 12 b
+EOF
+
+compare exp out || fail=1
+
+Exit $fail
diff --git a/tests/ls/multihardlink.sh b/tests/ls/multihardlink.sh
new file mode 100755
index 0000000..b651fe4
--- /dev/null
+++ b/tests/ls/multihardlink.sh
@@ -0,0 +1,80 @@
+#!/bin/sh
+# Ensure "ls --color" properly colorizes hard linked files.
+
+# Copyright (C) 2008-2016 Free Software Foundation, Inc.
+
+# This program is free software: you can redistribute it and/or modify
+# it under the terms of the GNU General Public License as published by
+# the Free Software Foundation, either version 3 of the License, or
+# (at your option) any later version.
+
+# This program is distributed in the hope that it will be useful,
+# but WITHOUT ANY WARRANTY; without even the implied warranty of
+# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
+# GNU General Public License for more details.
+
+# You should have received a copy of the GNU General Public License
+# along with this program. If not, see <http://www.gnu.org/licenses/>.
+
+. "${srcdir=.}/tests/init.sh"; path_prepend_ ./src
+print_ver_ ls
+working_umask_or_skip_
+
+touch file file1 || framework_failure_
+ln file1 file2 || skip_ "can't create hard link"
+code_mh='44;37'
+code_ex='01;32'
+code_png='01;35'
+c0=$(printf '\033[0m')
+c_mh=$(printf '\033[%sm' $code_mh)
+c_ex=$(printf '\033[%sm' $code_ex)
+c_png=$(printf '\033[%sm' $code_png)
+
+# regular file - not hard linked
+LS_COLORS="mh=$code_mh" ls -U1 --color=always file > out || fail=1
+printf "file\n" > out_ok || framework_failure_
+compare out out_ok || fail=1
+
+# hard links
+LS_COLORS="mh=$code_mh" ls -U1 --color=always file1 file2 > out || fail=1
+printf "$c0${c_mh}file1$c0
+${c_mh}file2$c0
+" > out_ok || framework_failure_
+compare out out_ok || fail=1
+
+# hard links and png (hard link coloring takes precedence)
+mv file2 file2.png || framework_failure_
+LS_COLORS="mh=$code_mh:*.png=$code_png" ls -U1 --color=always file1 file2.png \
+ > out || fail=1
+printf "$c0${c_mh}file1$c0
+${c_mh}file2.png$c0
+" > out_ok || framework_failure_
+compare out out_ok || fail=1
+
+# hard links and exe (exe coloring takes precedence)
+chmod a+x file2.png || framework_failure_
+LS_COLORS="mh=$code_mh:*.png=$code_png:ex=$code_ex" \
+ ls -U1 --color=always file1 file2.png > out || fail=1
+chmod a-x file2.png || framework_failure_
+printf "$c0${c_ex}file1$c0
+${c_ex}file2.png$c0
+" > out_ok || framework_failure_
+compare out out_ok || fail=1
+
+# hard links and png (hard link coloring disabled => png coloring enabled)
+LS_COLORS="mh=00:*.png=$code_png" ls -U1 --color=always file1 file2.png > out \
+ || fail=1
+printf "file1
+$c0${c_png}file2.png$c0
+" > out_ok || framework_failure_
+compare out out_ok || fail=1
+
+# hard links and png (hard link coloring not enabled explicitly => png coloring)
+LS_COLORS="*.png=$code_png" ls -U1 --color=always file1 file2.png > out \
+ || fail=1
+printf "file1
+$c0${c_png}file2.png$c0
+" > out_ok || framework_failure_
+compare out out_ok || fail=1
+
+Exit $fail
diff --git a/tests/ls/nameless-uid b/tests/ls/nameless-uid
deleted file mode 100755
index 70b0613..0000000
--- a/tests/ls/nameless-uid
+++ /dev/null
@@ -1,65 +0,0 @@
-#!/bin/sh
-# Ensure that ls -l works on files with nameless uid and/or gid
-
-# Copyright (C) 2006 Free Software Foundation, Inc.
-
-# This program is free software; you can redistribute it and/or modify
-# it under the terms of the GNU General Public License as published by
-# the Free Software Foundation; either version 2 of the License, or
-# (at your option) any later version.
-
-# This program is distributed in the hope that it will be useful,
-# but WITHOUT ANY WARRANTY; without even the implied warranty of
-# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
-# GNU General Public License for more details.
-
-# You should have received a copy of the GNU General Public License
-# along with this program; if not, write to the Free Software
-# Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA
-# 02110-1301, USA.
-
-if test "$VERBOSE" = yes; then
- set -x
- ls --version
-fi
-
-. $srcdir/../envvar-check
-. $srcdir/../lang-default
-PRIV_CHECK_ARG=require-root . $srcdir/../priv-check
-
-$PERL -e 1 > /dev/null 2>&1 || {
- echo 1>&2 "$0: configure didn't find a usable version of Perl," \
- "so can't run this test"
- (exit 77); exit 77
-}
-
-nameless_uid=`$PERL -e 'foreach my $i (1000..16*1024) { getpwuid $i or (print "$i\n"), exit }'`
-
-if test x$nameless_uid = x; then
- echo "$0: couldn't find a nameless UID" 1>&2
- (exit 77); exit 77
-fi
-
-pwd=`pwd`
-t0=`echo "$0"|sed 's,.*/,,'`.tmp; tmp=$t0/$$
-trap 'status=$?; cd "$pwd" && chmod -R u+rwx $t0 && rm -rf $t0 && exit $status' 0
-trap '(exit $?); exit $?' 1 2 13 15
-
-framework_failure=0
-mkdir -p $tmp || framework_failure=1
-cd $tmp || framework_failure=1
-
-touch f || framework_failure=1
-chown $nameless_uid f || framework_failure=1
-
-if test $framework_failure = 1; then
- echo "$0: failure in testing framework" 1>&2
- (exit 1); exit 1
-fi
-
-fail=0
-
-set -- `ls -o f` || fail=1
-test $3 = $nameless_uid || fail=1
-
-(exit $fail); exit $fail
diff --git a/tests/ls/nameless-uid.sh b/tests/ls/nameless-uid.sh
new file mode 100755
index 0000000..5b2e982
--- /dev/null
+++ b/tests/ls/nameless-uid.sh
@@ -0,0 +1,40 @@
+#!/bin/sh
+# Ensure that ls -l works on files with nameless uid and/or gid
+
+# Copyright (C) 2006-2016 Free Software Foundation, Inc.
+
+# This program is free software: you can redistribute it and/or modify
+# it under the terms of the GNU General Public License as published by
+# the Free Software Foundation, either version 3 of the License, or
+# (at your option) any later version.
+
+# This program is distributed in the hope that it will be useful,
+# but WITHOUT ANY WARRANTY; without even the implied warranty of
+# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
+# GNU General Public License for more details.
+
+# You should have received a copy of the GNU General Public License
+# along with this program. If not, see <http://www.gnu.org/licenses/>.
+
+. "${srcdir=.}/tests/init.sh"; path_prepend_ ./src
+print_ver_ ls
+
+require_root_
+require_perl_
+
+nameless_uid=$($PERL -e '
+ foreach my $i (1000..16*1024) { getpwuid $i or (print "$i\n"), exit }
+')
+
+if test x$nameless_uid = x; then
+ skip_ "couldn't find a nameless UID"
+fi
+
+touch f || framework_failure_
+chown $nameless_uid f || framework_failure_
+
+
+set -- $(ls -o f) || fail=1
+test $3 = $nameless_uid || fail=1
+
+Exit $fail
diff --git a/tests/ls/no-arg b/tests/ls/no-arg
deleted file mode 100755
index 0c56e03..0000000
--- a/tests/ls/no-arg
+++ /dev/null
@@ -1,76 +0,0 @@
-#!/bin/sh
-# make sure ls and `ls -R' do the right thing when invoked with no arguments.
-
-# Copyright (C) 2001, 2003, 2004, 2006 Free Software Foundation, Inc.
-
-# This program is free software; you can redistribute it and/or modify
-# it under the terms of the GNU General Public License as published by
-# the Free Software Foundation; either version 2 of the License, or
-# (at your option) any later version.
-
-# This program is distributed in the hope that it will be useful,
-# but WITHOUT ANY WARRANTY; without even the implied warranty of
-# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
-# GNU General Public License for more details.
-
-# You should have received a copy of the GNU General Public License
-# along with this program; if not, write to the Free Software
-# Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA
-# 02110-1301, USA.
-
-if test "$VERBOSE" = yes; then
- set -x
- ls --version
-fi
-
-pwd=`pwd`
-tmp=no-args.$$
-trap 'status=$?; cd "$pwd" && rm -rf $tmp && exit $status' 0
-trap '(exit $?); exit' 1 2 13 15
-
-framework_failure=0
-mkdir $tmp || framework_failure=1
-cd $tmp || framework_failure=1
-mkdir -p dir/subdir || framework_failure=1
-touch dir/subdir/file2 || framework_failure=1
-ln -s f symlink || framework_failure=1
-
-cat > exp <<\EOF || framework_failure=1
-dir
-exp
-out
-symlink
-EOF
-
-if test $framework_failure = 1; then
- echo 'failure in testing framework'
- (exit 1); exit 1
-fi
-
-fail=0
-
-ls -1 > out || fail=1
-
-cmp out exp || fail=1
-test $fail = 1 && diff out exp 2> /dev/null
-
-cat > exp <<\EOF
-.:
-dir
-exp
-out
-symlink
-
-./dir:
-subdir
-
-./dir/subdir:
-file2
-EOF
-
-ls -R1 > out || fail=1
-
-cmp out exp || fail=1
-test $fail = 1 && diff out exp 2> /dev/null
-
-(exit $fail); exit $fail
diff --git a/tests/ls/no-arg.sh b/tests/ls/no-arg.sh
new file mode 100755
index 0000000..f17cde4
--- /dev/null
+++ b/tests/ls/no-arg.sh
@@ -0,0 +1,56 @@
+#!/bin/sh
+# make sure ls and 'ls -R' do the right thing when invoked with no arguments.
+
+# Copyright (C) 2001-2016 Free Software Foundation, Inc.
+
+# This program is free software: you can redistribute it and/or modify
+# it under the terms of the GNU General Public License as published by
+# the Free Software Foundation, either version 3 of the License, or
+# (at your option) any later version.
+
+# This program is distributed in the hope that it will be useful,
+# but WITHOUT ANY WARRANTY; without even the implied warranty of
+# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
+# GNU General Public License for more details.
+
+# You should have received a copy of the GNU General Public License
+# along with this program. If not, see <http://www.gnu.org/licenses/>.
+
+. "${srcdir=.}/tests/init.sh"; path_prepend_ ./src
+print_ver_ ls
+
+mkdir -p dir/subdir || framework_failure_
+touch dir/subdir/file2 || framework_failure_
+ln -s f symlink || framework_failure_
+
+cat > exp <<\EOF || framework_failure_
+dir
+exp
+out
+symlink
+EOF
+
+
+ls -1 > out || fail=1
+
+compare exp out || fail=1
+
+cat > exp <<\EOF
+.:
+dir
+exp
+out
+symlink
+
+./dir:
+subdir
+
+./dir/subdir:
+file2
+EOF
+
+ls -R1 > out || fail=1
+
+compare exp out || fail=1
+
+Exit $fail
diff --git a/tests/ls/no-cap.sh b/tests/ls/no-cap.sh
new file mode 100755
index 0000000..199b803
--- /dev/null
+++ b/tests/ls/no-cap.sh
@@ -0,0 +1,33 @@
+#!/bin/sh
+# ensure that an empty "ca=" attribute disables ls's capability-checking
+
+# Copyright (C) 2008-2016 Free Software Foundation, Inc.
+
+# This program is free software: you can redistribute it and/or modify
+# it under the terms of the GNU General Public License as published by
+# the Free Software Foundation, either version 3 of the License, or
+# (at your option) any later version.
+
+# This program is distributed in the hope that it will be useful,
+# but WITHOUT ANY WARRANTY; without even the implied warranty of
+# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
+# GNU General Public License for more details.
+
+# You should have received a copy of the GNU General Public License
+# along with this program. If not, see <http://www.gnu.org/licenses/>.
+
+. "${srcdir=.}/tests/init.sh"; path_prepend_ ./src
+print_ver_ ls
+require_strace_ capget
+
+LS_COLORS=ca=1; export LS_COLORS
+strace -e capget ls --color=always > /dev/null 2> out || fail=1
+$EGREP 'capget\(' out || skip_ "your ls doesn't call capget"
+
+rm -f out
+
+LS_COLORS=ca=:; export LS_COLORS
+strace -e capget ls --color=always > /dev/null 2> out || fail=1
+$EGREP 'capget\(' out && fail=1
+
+Exit $fail
diff --git a/tests/ls/proc-selinux-segfault.sh b/tests/ls/proc-selinux-segfault.sh
new file mode 100755
index 0000000..3728d5d
--- /dev/null
+++ b/tests/ls/proc-selinux-segfault.sh
@@ -0,0 +1,27 @@
+#!/bin/sh
+# ls -l /proc/sys would segfault when built against libselinux1 2.0.15-2+b1
+
+# Copyright (C) 2008-2016 Free Software Foundation, Inc.
+
+# This program is free software: you can redistribute it and/or modify
+# it under the terms of the GNU General Public License as published by
+# the Free Software Foundation, either version 3 of the License, or
+# (at your option) any later version.
+
+# This program is distributed in the hope that it will be useful,
+# but WITHOUT ANY WARRANTY; without even the implied warranty of
+# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
+# GNU General Public License for more details.
+
+# You should have received a copy of the GNU General Public License
+# along with this program. If not, see <http://www.gnu.org/licenses/>.
+
+. "${srcdir=.}/tests/init.sh"; path_prepend_ ./src
+print_ver_ ls
+
+f=/proc/sys
+test -r $f || f=.
+
+ls -l $f > out || fail=1
+
+Exit $fail
diff --git a/tests/ls/readdir-mountpoint-inode.sh b/tests/ls/readdir-mountpoint-inode.sh
new file mode 100755
index 0000000..b29abb8
--- /dev/null
+++ b/tests/ls/readdir-mountpoint-inode.sh
@@ -0,0 +1,70 @@
+#!/bin/sh
+# ensure that ls -i works also for mount points
+
+# Copyright (C) 2009-2016 Free Software Foundation, Inc.
+
+# This program is free software: you can redistribute it and/or modify
+# it under the terms of the GNU General Public License as published by
+# the Free Software Foundation, either version 3 of the License, or
+# (at your option) any later version.
+
+# This program is distributed in the hope that it will be useful,
+# but WITHOUT ANY WARRANTY; without even the implied warranty of
+# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
+# GNU General Public License for more details.
+
+# You should have received a copy of the GNU General Public License
+# along with this program. If not, see <http://www.gnu.org/licenses/>.
+
+. "${srcdir=.}/tests/init.sh"; path_prepend_ ./src
+print_ver_ ls
+
+# We use --local here so as to not activate
+# potentially very many remote mounts.
+df --local --out=target | sed -n '/^\/./p' > mount_points
+test -s mount_points ||
+ skip_ "this test requires a non-root mount point"
+
+# Given e.g., /dev/shm, produce the list of GNU ls options that
+# let us list just that entry using readdir data from its parent:
+# ls -i -I '[^s]*' -I 's[^h]*' -I 'sh[^m]*' -I 'shm?*' -I '.?*' \
+# -I '?' -I '??' /dev
+
+ls_ignore_options()
+{
+ name=$1
+ opts="-I '.?*' -I '$name?*'"
+ while :; do
+ glob=$(echo "$name"|sed 's/\(.*\)\(.\)$/\1[^\2]*/')
+ opts="$opts -I '$glob'"
+ name=$(echo "$name"|sed 's/.$//')
+ test -z "$name" && break
+ glob=$(echo "$name"|sed 's/./?/g')
+ opts="$opts -I '$glob'"
+ done
+ echo "$opts"
+}
+
+inode_via_readdir()
+{
+ mount_point=$1
+ base=$(basename "$mount_point")
+ case "$base" in
+ .*) skip_ 'mount point component starts with "."' ;;
+ *[*?]*) skip_ 'mount point component contains "?" or "*"' ;;
+ esac
+ opts=$(ls_ignore_options "$base")
+ parent_dir=$(dirname "$mount_point")
+ eval "ls -i $opts '$parent_dir'" | sed 's/ .*//'
+}
+
+while read dir; do
+ readdir_inode=$(inode_via_readdir "$dir")
+ test $? = 77 && continue
+ stat_inode=$(timeout 1 stat --format=%i "$dir")
+ # If stat fails or says the inode is 0, skip $dir.
+ case $stat_inode in 0|'') continue;; esac
+ test "$readdir_inode" = "$stat_inode" || fail=1
+done < mount_points
+
+Exit $fail
diff --git a/tests/ls/recursive b/tests/ls/recursive
deleted file mode 100755
index c4a2725..0000000
--- a/tests/ls/recursive
+++ /dev/null
@@ -1,85 +0,0 @@
-#!/bin/sh
-# 4.1.1 and 4.1.2 had a bug whereby some recursive listings
-# didn't include a blank line between per-directory groups of files.
-
-# Copyright (C) 2001, 2002, 2004, 2006 Free Software Foundation, Inc.
-
-# This program is free software; you can redistribute it and/or modify
-# it under the terms of the GNU General Public License as published by
-# the Free Software Foundation; either version 2 of the License, or
-# (at your option) any later version.
-
-# This program is distributed in the hope that it will be useful,
-# but WITHOUT ANY WARRANTY; without even the implied warranty of
-# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
-# GNU General Public License for more details.
-
-# You should have received a copy of the GNU General Public License
-# along with this program; if not, write to the Free Software
-# Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA
-# 02110-1301, USA.
-
-if test "$VERBOSE" = yes; then
- set -x
- ls --version
-fi
-
-. $srcdir/../envvar-check
-
-pwd=`pwd`
-tmp=recursive.$$
-trap 'status=$?; cd "$pwd" && rm -rf $tmp && exit $status' 0
-trap '(exit $?); exit' 1 2 13 15
-
-framework_failure=0
-mkdir $tmp || framework_failure=1
-cd $tmp || framework_failure=1
-
-mkdir x y a b c a/1 a/2 a/3 || framework_failure=1
-touch f a/1/I a/1/II || framework_failure=1
-
-if test $framework_failure = 1; then
- echo "$0: failure in testing framework" 1>&2
- (exit 1); exit 1
-fi
-
-fail=0
-
-# This first example is from Andreas Schwab's bug report.
-ls -R1 a b c > out || fail=1
-cat <<EOF > exp
-a:
-1
-2
-3
-
-a/1:
-I
-II
-
-a/2:
-
-a/3:
-
-b:
-
-c:
-EOF
-
-cmp out exp || fail=1
-test $fail = 1 && diff out exp 2> /dev/null
-
-rm -rf out exp
-ls -R1 x y f > out || fail=1
-cat <<EOF > exp
-f
-
-x:
-
-y:
-EOF
-
-cmp out exp || fail=1
-test $fail = 1 && diff out exp 2> /dev/null
-
-(exit $fail); exit $fail
diff --git a/tests/ls/recursive.sh b/tests/ls/recursive.sh
new file mode 100755
index 0000000..48c498d
--- /dev/null
+++ b/tests/ls/recursive.sh
@@ -0,0 +1,62 @@
+#!/bin/sh
+# 4.1.1 and 4.1.2 had a bug whereby some recursive listings
+# didn't include a blank line between per-directory groups of files.
+
+# Copyright (C) 2001-2016 Free Software Foundation, Inc.
+
+# This program is free software: you can redistribute it and/or modify
+# it under the terms of the GNU General Public License as published by
+# the Free Software Foundation, either version 3 of the License, or
+# (at your option) any later version.
+
+# This program is distributed in the hope that it will be useful,
+# but WITHOUT ANY WARRANTY; without even the implied warranty of
+# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
+# GNU General Public License for more details.
+
+# You should have received a copy of the GNU General Public License
+# along with this program. If not, see <http://www.gnu.org/licenses/>.
+
+. "${srcdir=.}/tests/init.sh"; path_prepend_ ./src
+print_ver_ ls
+
+mkdir x y a b c a/1 a/2 a/3 || framework_failure_
+touch f a/1/I a/1/II || framework_failure_
+
+
+# This first example is from Andreas Schwab's bug report.
+ls -R1 a b c > out || fail=1
+cat <<EOF > exp
+a:
+1
+2
+3
+
+a/1:
+I
+II
+
+a/2:
+
+a/3:
+
+b:
+
+c:
+EOF
+
+compare exp out || fail=1
+
+rm -rf out exp
+ls -R1 x y f > out || fail=1
+cat <<EOF > exp
+f
+
+x:
+
+y:
+EOF
+
+compare exp out || fail=1
+
+Exit $fail
diff --git a/tests/ls/root-rel-symlink-color.sh b/tests/ls/root-rel-symlink-color.sh
new file mode 100755
index 0000000..5d5a832
--- /dev/null
+++ b/tests/ls/root-rel-symlink-color.sh
@@ -0,0 +1,51 @@
+#!/bin/sh
+# Exercise the 8.17 ls bug with coloring relative-named symlinks in "/".
+
+# Copyright (C) 2012-2016 Free Software Foundation, Inc.
+
+# This program is free software: you can redistribute it and/or modify
+# it under the terms of the GNU General Public License as published by
+# the Free Software Foundation, either version 3 of the License, or
+# (at your option) any later version.
+
+# This program is distributed in the hope that it will be useful,
+# but WITHOUT ANY WARRANTY; without even the implied warranty of
+# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
+# GNU General Public License for more details.
+
+# You should have received a copy of the GNU General Public License
+# along with this program. If not, see <http://www.gnu.org/licenses/>.
+
+. "${srcdir=.}/tests/init.sh"; path_prepend_ ./src
+print_ver_ ls test
+
+symlink_to_rel=
+for i in /*; do
+ # Skip non-symlinks:
+ env test -h "$i" || continue
+
+ # Skip dangling symlinks:
+ env test -e "$i" || continue
+
+ # Skip any symlink-to-absolute-name:
+ case $(readlink "$i") in /*) continue ;; esac
+
+ symlink_to_rel=$i
+ break
+done
+
+test -z "$symlink_to_rel" \
+ && skip_ no relative symlink in /
+
+e='\33'
+color_code='01;36'
+c_pre="$e[0m$e[${color_code}m"
+c_post="$e[0m"
+printf "$c_pre$symlink_to_rel$c_post\n" > exp || framework_failure_
+
+env TERM=xterm LS_COLORS="ln=$color_code:or=1;31;42" \
+ ls -d --color=always "$symlink_to_rel" > out || fail=1
+
+compare exp out || fail=1
+
+Exit $fail
diff --git a/tests/ls/rt-1 b/tests/ls/rt-1
deleted file mode 100755
index 5c0f3c8..0000000
--- a/tests/ls/rt-1
+++ /dev/null
@@ -1,71 +0,0 @@
-#!/bin/sh
-# Make sure name is used as secondary key when sorting on mtime or ctime.
-
-# Copyright (C) 1998, 2001, 2002, 2004, 2006 Free Software Foundation, Inc.
-
-# This program is free software; you can redistribute it and/or modify
-# it under the terms of the GNU General Public License as published by
-# the Free Software Foundation; either version 2 of the License, or
-# (at your option) any later version.
-
-# This program is distributed in the hope that it will be useful,
-# but WITHOUT ANY WARRANTY; without even the implied warranty of
-# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
-# GNU General Public License for more details.
-
-# You should have received a copy of the GNU General Public License
-# along with this program; if not, write to the Free Software
-# Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA
-# 02110-1301, USA.
-
-. $srcdir/../envvar-check
-. $srcdir/../lang-default
-
-if test "$VERBOSE" = yes; then
- set -x
- ls --version
- touch --version
-fi
-
-pwd=`pwd`
-tmp=t-ls.$$
-trap 'status=$?; cd "$pwd" && rm -rf $tmp && exit $status' 0
-trap '(exit $?); exit' 1 2 13 15
-
-framework_failure=0
-mkdir $tmp || framework_failure=1
-cd $tmp || framework_failure=1
-
-date=1998-01-15
-
-touch -d "$date" c || framework_failure=1
-touch -d "$date" a || framework_failure=1
-touch -d "$date" b || framework_failure=1
-
-if test $framework_failure = 1; then
- echo "$0: failure in testing framework" 1>&2
- (exit 1); exit 1
-fi
-
-fail=0
-
-ls -1t a b c > out || fail=1
-cat <<EOF > exp
-a
-b
-c
-EOF
-cmp out exp || fail=1
-test $fail = 1 && diff out exp 2> /dev/null
-
-rm -rf out exp
-ls -1rt a b c > out || fail=1
-cat <<EOF > exp
-c
-b
-a
-EOF
-cmp out exp || fail=1
-test $fail = 1 && diff out exp 2> /dev/null
-
-(exit $fail); exit $fail
diff --git a/tests/ls/rt-1.sh b/tests/ls/rt-1.sh
new file mode 100755
index 0000000..7f75236
--- /dev/null
+++ b/tests/ls/rt-1.sh
@@ -0,0 +1,46 @@
+#!/bin/sh
+# Make sure name is used as secondary key when sorting on mtime or ctime.
+
+# Copyright (C) 1998-2016 Free Software Foundation, Inc.
+
+# This program is free software: you can redistribute it and/or modify
+# it under the terms of the GNU General Public License as published by
+# the Free Software Foundation, either version 3 of the License, or
+# (at your option) any later version.
+
+# This program is distributed in the hope that it will be useful,
+# but WITHOUT ANY WARRANTY; without even the implied warranty of
+# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
+# GNU General Public License for more details.
+
+# You should have received a copy of the GNU General Public License
+# along with this program. If not, see <http://www.gnu.org/licenses/>.
+
+. "${srcdir=.}/tests/init.sh"; path_prepend_ ./src
+print_ver_ ls touch
+
+date=1998-01-15
+
+touch -d "$date" c || framework_failure_
+touch -d "$date" a || framework_failure_
+touch -d "$date" b || framework_failure_
+
+
+ls -1t a b c > out || fail=1
+cat <<EOF > exp
+a
+b
+c
+EOF
+compare exp out || fail=1
+
+rm -rf out exp
+ls -1rt a b c > out || fail=1
+cat <<EOF > exp
+c
+b
+a
+EOF
+compare exp out || fail=1
+
+Exit $fail
diff --git a/tests/ls/slink-acl.sh b/tests/ls/slink-acl.sh
new file mode 100755
index 0000000..62f02f6
--- /dev/null
+++ b/tests/ls/slink-acl.sh
@@ -0,0 +1,33 @@
+#!/bin/sh
+# verify that ls -lL works when applied to a symlink to an ACL'd file
+
+# Copyright (C) 2011-2016 Free Software Foundation, Inc.
+
+# This program is free software: you can redistribute it and/or modify
+# it under the terms of the GNU General Public License as published by
+# the Free Software Foundation, either version 3 of the License, or
+# (at your option) any later version.
+
+# This program is distributed in the hope that it will be useful,
+# but WITHOUT ANY WARRANTY; without even the implied warranty of
+# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
+# GNU General Public License for more details.
+
+# You should have received a copy of the GNU General Public License
+# along with this program. If not, see <http://www.gnu.org/licenses/>.
+
+. "${srcdir=.}/tests/init.sh"; path_prepend_ ./src
+print_ver_ ls
+
+require_setfacl_
+
+touch k || framework_failure_
+setfacl -m user::r-- k || framework_failure_
+ln -s k s || framework_failure_
+
+set _ $(ls -Log s); shift; link=$1
+set _ $(ls -og k); shift; reg=$1
+
+test "$link" = "$reg" || fail=1
+
+Exit $fail
diff --git a/tests/ls/stat-dtype b/tests/ls/stat-dtype
deleted file mode 100755
index 9e903ac..0000000
--- a/tests/ls/stat-dtype
+++ /dev/null
@@ -1,86 +0,0 @@
-#!/bin/sh
-# Ensure that ls --file-type does not call stat unnecessarily.
-# Also check for the dtype-related (and fs-type dependent) bug
-# in coreutils-6.0 that made ls -CF columns misaligned.
-
-# Copyright (C) 2006 Free Software Foundation, Inc.
-
-# This program is free software; you can redistribute it and/or modify
-# it under the terms of the GNU General Public License as published by
-# the Free Software Foundation; either version 2 of the License, or
-# (at your option) any later version.
-
-# This program is distributed in the hope that it will be useful,
-# but WITHOUT ANY WARRANTY; without even the implied warranty of
-# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
-# GNU General Public License for more details.
-
-# You should have received a copy of the GNU General Public License
-# along with this program; if not, write to the Free Software
-# Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA
-# 02110-1301, USA.
-
-# The trick is to create an un-stat'able symlink and to see if ls
-# can report its type nonetheless, using dirent.d_type.
-
-if test "$VERBOSE" = yes; then
- set -x
- ls --version
-fi
-
-. $srcdir/../envvar-check
-
-pwd=`pwd`
-t0=`echo "$0"|sed 's,.*/,,'`.tmp; tmp=$t0/$$
-trap 'status=$?; cd "$pwd" && chmod -R u+rwx $t0 && rm -rf $t0 && exit $status' 0
-trap '(exit $?); exit $?' 1 2 13 15
-
-framework_failure=0
-mkdir -p $tmp || framework_failure=1
-cd $tmp || framework_failure=1
-
-# Skip this test unless "." is on a file system with useful d_type info.
-# FIXME: This uses "ls -p" to decide whether to test "ls" with other options,
-# but if ls's d_type code is buggy then "ls -p" might be buggy too.
-mkdir -p c/d || framework_failure=1
-chmod a-x c || framework_failure=1
-if test "X`ls -p c 2>&1`" != Xd/; then
- echo "$0: '.' is not on a suitable file system for this test" 1>&2
- echo "$0: skipping this test" 1>&2
- (exit 77); exit 77
-fi
-
-mkdir d || framework_failure=1
-ln -s / d/s || framework_failure=1
-chmod 600 d || framework_failure=1
-
-mkdir -p e/a2345 e/b || framework_failure=1
-chmod 600 e || framework_failure=1
-
-if test $framework_failure = 1; then
- echo "$0: failure in testing framework" 1>&2
- (exit 1); exit 1
-fi
-
-fail=0
-
-ls --file-type d > out || fail=1
-cat <<\EOF > exp || fail=1
-s@
-EOF
-
-cmp out exp || fail=1
-test $fail = 1 && diff out exp 2> /dev/null
-
-rm -f out exp
-# Check for the ls -CF misaligned-columns bug:
-ls -CF e > out || fail=1
-
-# coreutils-6.0 would print two spaces after the first slash,
-# rather than the appropriate TAB.
-printf 'a2345/\tb/\n' > exp || fail=1
-
-cmp out exp || fail=1
-test $fail = 1 && diff out exp 2> /dev/null
-
-(exit $fail); exit $fail
diff --git a/tests/ls/stat-dtype.sh b/tests/ls/stat-dtype.sh
new file mode 100755
index 0000000..9d96cda
--- /dev/null
+++ b/tests/ls/stat-dtype.sh
@@ -0,0 +1,61 @@
+#!/bin/sh
+# Ensure that ls --file-type does not call stat unnecessarily.
+# Also check for the dtype-related (and fs-type dependent) bug
+# in coreutils-6.0 that made ls -CF columns misaligned.
+
+# Copyright (C) 2006-2016 Free Software Foundation, Inc.
+
+# This program is free software: you can redistribute it and/or modify
+# it under the terms of the GNU General Public License as published by
+# the Free Software Foundation, either version 3 of the License, or
+# (at your option) any later version.
+
+# This program is distributed in the hope that it will be useful,
+# but WITHOUT ANY WARRANTY; without even the implied warranty of
+# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
+# GNU General Public License for more details.
+
+# You should have received a copy of the GNU General Public License
+# along with this program. If not, see <http://www.gnu.org/licenses/>.
+
+# The trick is to create an un-stat'able symlink and to see if ls
+# can report its type nonetheless, using dirent.d_type.
+
+. "${srcdir=.}/tests/init.sh"; path_prepend_ ./src
+print_ver_ ls
+
+# Skip this test unless "." is on a file system with useful d_type info.
+# FIXME: This uses "ls -p" to decide whether to test "ls" with other options,
+# but if ls's d_type code is buggy then "ls -p" might be buggy too.
+mkdir -p c/d || framework_failure_
+chmod a-x c || framework_failure_
+if test "X$(ls -p c 2>&1)" != Xd/; then
+ skip_ "'.' is not on a suitable file system for this test"
+fi
+
+mkdir d || framework_failure_
+ln -s / d/s || framework_failure_
+chmod 600 d || framework_failure_
+
+mkdir -p e/a2345 e/b || framework_failure_
+chmod 600 e || framework_failure_
+
+
+ls --file-type d > out || fail=1
+cat <<\EOF > exp || fail=1
+s@
+EOF
+
+compare exp out || fail=1
+
+rm -f out exp
+# Check for the ls -CF misaligned-columns bug:
+ls -CF e > out || fail=1
+
+# coreutils-6.0 would print two spaces after the first slash,
+# rather than the appropriate TAB.
+printf 'a2345/\tb/\n' > exp || fail=1
+
+compare exp out || fail=1
+
+Exit $fail
diff --git a/tests/ls/stat-failed b/tests/ls/stat-failed
deleted file mode 100755
index fb1cff8..0000000
--- a/tests/ls/stat-failed
+++ /dev/null
@@ -1,75 +0,0 @@
-#!/bin/sh
-# Verify that ls works properly when it fails to stat a file that is
-# not mentioned on the command line.
-
-# Copyright (C) 2006 Free Software Foundation, Inc.
-
-# This program is free software; you can redistribute it and/or modify
-# it under the terms of the GNU General Public License as published by
-# the Free Software Foundation; either version 2 of the License, or
-# (at your option) any later version.
-
-# This program is distributed in the hope that it will be useful,
-# but WITHOUT ANY WARRANTY; without even the implied warranty of
-# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
-# GNU General Public License for more details.
-
-# You should have received a copy of the GNU General Public License
-# along with this program; if not, write to the Free Software
-# Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA
-# 02110-1301, USA.
-
-if test "$VERBOSE" = yes; then
- set -x
- ls --version
-fi
-
-. $srcdir/../envvar-check
-. $srcdir/../lang-default
-PRIV_CHECK_ARG=require-non-root . $srcdir/../priv-check
-
-pwd=`pwd`
-t0=`echo "$0"|sed 's,.*/,,'`.tmp; tmp=$t0/$$
-trap 'status=$?; cd "$pwd" && chmod -R u+rwx $t0 && rm -rf $t0 && exit $status' 0
-trap '(exit $?); exit $?' 1 2 13 15
-
-framework_failure=0
-mkdir -p $tmp || framework_failure=1
-cd $tmp || framework_failure=1
-mkdir d || framework_failure=1
-ln -s / d/s || framework_failure=1
-chmod 600 d || framework_failure=1
-
-if test $framework_failure = 1; then
- echo "$0: failure in testing framework" 1>&2
- (exit 1); exit 1
-fi
-
-fail=0
-
-ls -Log d > out 2> err
-test $? = 1 || fail=1
-
-cat <<\EOF > exp || fail=1
-total 0
-?????????? ? ? ? s
-EOF
-
-sed 's/^l/?/' out | cmp - exp || fail=1
-test $fail = 1 && diff out exp 2> /dev/null
-
-# Ensure that the offsets in --dired output are accurate.
-rm -f out exp
-ls --dired -l d > out 2> /dev/null && fail=1
-
-cat <<\EOF > exp || fail=1
- total 0
- ?????????? ? ? ? ? ? s
-//DIRED// 44 45
-//DIRED-OPTIONS// --quoting-style=literal
-EOF
-
-sed 's/^ l/ ?/' out | cmp - exp || fail=1
-test $fail = 1 && diff out exp 2> /dev/null
-
-(exit $fail); exit $fail
diff --git a/tests/ls/stat-failed.sh b/tests/ls/stat-failed.sh
new file mode 100755
index 0000000..b0e11e6
--- /dev/null
+++ b/tests/ls/stat-failed.sh
@@ -0,0 +1,58 @@
+#!/bin/sh
+# Verify that ls works properly when it fails to stat a file that is
+# not mentioned on the command line.
+
+# Copyright (C) 2006-2016 Free Software Foundation, Inc.
+
+# This program is free software: you can redistribute it and/or modify
+# it under the terms of the GNU General Public License as published by
+# the Free Software Foundation, either version 3 of the License, or
+# (at your option) any later version.
+
+# This program is distributed in the hope that it will be useful,
+# but WITHOUT ANY WARRANTY; without even the implied warranty of
+# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
+# GNU General Public License for more details.
+
+# You should have received a copy of the GNU General Public License
+# along with this program. If not, see <http://www.gnu.org/licenses/>.
+
+. "${srcdir=.}/tests/init.sh"; path_prepend_ ./src
+print_ver_ ls
+skip_if_root_
+
+LS_MINOR_PROBLEM=1
+
+mkdir d || framework_failure_
+ln -s / d/s || framework_failure_
+chmod 600 d || framework_failure_
+
+
+ls -Log d > out
+test $? = 1 || fail=1
+
+# Linux 2.6.32 client with Isilon OneFS always returns d_type==DT_DIR ('d')
+# Newer Linux 3.10.0 returns the more correct DT_UNKNOWN ('?')
+grep '^[l?]?' out || skip_ 'unrecognized d_type returned'
+
+cat <<\EOF > exp || framework_failure_
+total 0
+?????????? ? ? ? s
+EOF
+
+sed 's/^l/?/' out | compare exp - || fail=1
+
+# Ensure that the offsets in --dired output are accurate.
+rm -f out exp
+returns_ $LS_MINOR_PROBLEM ls --dired -l d > out || fail=1
+
+cat <<\EOF > exp || framework_failure_
+ total 0
+ ?????????? ? ? ? ? ? s
+//DIRED// 44 45
+//DIRED-OPTIONS// --quoting-style=literal
+EOF
+
+sed 's/^ l/ ?/' out | compare exp - || fail=1
+
+Exit $fail
diff --git a/tests/ls/stat-free-color.sh b/tests/ls/stat-free-color.sh
new file mode 100755
index 0000000..25bdeb0
--- /dev/null
+++ b/tests/ls/stat-free-color.sh
@@ -0,0 +1,84 @@
+#!/bin/sh
+# Show that --color need not use stat, as long as we have d_type support.
+
+# Copyright (C) 2011-2016 Free Software Foundation, Inc.
+
+# This program is free software: you can redistribute it and/or modify
+# it under the terms of the GNU General Public License as published by
+# the Free Software Foundation, either version 3 of the License, or
+# (at your option) any later version.
+
+# This program is distributed in the hope that it will be useful,
+# but WITHOUT ANY WARRANTY; without even the implied warranty of
+# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
+# GNU General Public License for more details.
+
+# You should have received a copy of the GNU General Public License
+# along with this program. If not, see <http://www.gnu.org/licenses/>.
+
+. "${srcdir=.}/tests/init.sh"; path_prepend_ ./src
+print_ver_ ls
+
+# Note this list of _file name_ stat functions must be
+# as cross platform as possible and so doesn't include
+# fstatat64 as that's not available on aarch64 for example.
+stats='stat,lstat,stat64,lstat64,newfstatat'
+
+require_strace_ $stats
+require_dirent_d_type_
+
+# Disable enough features via LS_COLORS so that ls --color
+# can do its job without calling stat (other than the obligatory
+# one-call-per-command-line argument).
+cat <<EOF > color-without-stat || framework_failure_
+RESET 0
+DIR 01;34
+LINK 01;36
+FIFO 40;33
+SOCK 01;35
+DOOR 01;35
+BLK 40;33;01
+CHR 40;33;01
+ORPHAN 00
+SETUID 00
+SETGID 00
+CAPABILITY 00
+STICKY_OTHER_WRITABLE 00
+OTHER_WRITABLE 00
+STICKY 00
+EXEC 00
+MULTIHARDLINK 00
+EOF
+eval $(dircolors -b color-without-stat)
+
+# The system may perform additional stat-like calls before main.
+# Furthermore, underlying library functions may also implicitly
+# add an extra stat call, e.g. opendir since glibc-2.21-360-g46f894d.
+# To avoid counting those, first get a baseline count for running
+# ls with one empty directory argument. Then, compare that with the
+# invocation under test.
+mkdir d || framework_failure_
+
+strace -o log1 -e $stats ls --color=always d || fail=1
+n_stat1=$(wc -l < log1) || framework_failure_
+
+test $n_stat1 = 0 \
+ && skip_ 'No stat calls recognized on this platform'
+
+# Populate the test directory.
+mkdir d/subdir \
+ && touch d/regf \
+ && ln d/regf d/hlink \
+ && ln -s regf d/slink \
+ && ln -s nowhere d/dangle \
+ || framework_failure_
+
+# Invocation under test.
+strace -o log2 -e $stats ls --color=always d || fail=1
+n_stat2=$(wc -l < log2) || framework_failure_
+
+# Expect the same number of stat calls.
+test $n_stat1 = $n_stat2 \
+ || { fail=1; head -n30 log*; }
+
+Exit $fail
diff --git a/tests/ls/stat-free-symlinks.sh b/tests/ls/stat-free-symlinks.sh
new file mode 100755
index 0000000..2a97151
--- /dev/null
+++ b/tests/ls/stat-free-symlinks.sh
@@ -0,0 +1,52 @@
+#!/bin/sh
+# ensure that ls does not stat a symlink in an unusual case
+
+# Copyright (C) 2007-2016 Free Software Foundation, Inc.
+
+# This program is free software: you can redistribute it and/or modify
+# it under the terms of the GNU General Public License as published by
+# the Free Software Foundation, either version 3 of the License, or
+# (at your option) any later version.
+
+# This program is distributed in the hope that it will be useful,
+# but WITHOUT ANY WARRANTY; without even the implied warranty of
+# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
+# GNU General Public License for more details.
+
+# You should have received a copy of the GNU General Public License
+# along with this program. If not, see <http://www.gnu.org/licenses/>.
+
+. "${srcdir=.}/tests/init.sh"; path_prepend_ ./src
+print_ver_ ls
+require_strace_ stat
+
+touch x || framework_failure_
+chmod a+x x || framework_failure_
+ln -s x link-to-x || framework_failure_
+
+
+# ls from coreutils 6.9 would unnecessarily stat a symlink in an unusual case:
+# When not coloring orphan and missing entries, and without ln=target,
+# ensure that ls -F (or -d, or -l: i.e., when not dereferencing)
+# does not stat a symlink to directory, and does still color that
+# symlink and an executable file properly.
+
+LS_COLORS='or=0:mi=0:ex=01;32:ln=01;35' \
+ strace -qe stat ls -F --color=always x link-to-x > out.tmp 2> err || fail
+# Elide info messages strace can send to stdout of the form:
+# [ Process PID=1234 runs in 32 bit mode. ]
+sed '/Process PID=/d' out.tmp > out
+
+# With coreutils 6.9 and earlier, this file would contain a
+# line showing ls had called stat on "x".
+grep '^stat("x"' err && fail=1
+
+# Check that output is colorized, as requested, too.
+{
+ printf '\033[0m\033[01;35mlink-to-x\033[0m@\n'
+ printf '\033[01;32mx\033[0m*\n'
+} > exp || fail=1
+
+compare exp out || fail=1
+
+Exit $fail
diff --git a/tests/ls/stat-vs-dirent b/tests/ls/stat-vs-dirent
deleted file mode 100755
index b71d7dd..0000000
--- a/tests/ls/stat-vs-dirent
+++ /dev/null
@@ -1,83 +0,0 @@
-#!/bin/sh
-# Ensure that d_ino (from ls -di) and st_ino (from stat --format=%i) match.
-
-# Copyright (C) 2006 Free Software Foundation, Inc.
-
-# This program is free software; you can redistribute it and/or modify
-# it under the terms of the GNU General Public License as published by
-# the Free Software Foundation; either version 2 of the License, or
-# (at your option) any later version.
-
-# This program is distributed in the hope that it will be useful,
-# but WITHOUT ANY WARRANTY; without even the implied warranty of
-# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
-# GNU General Public License for more details.
-
-# You should have received a copy of the GNU General Public License
-# along with this program; if not, write to the Free Software
-# Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA
-# 02110-1301, USA.
-
-if test "$VERBOSE" = yes; then
- set -x
- ls --version
-fi
-
-. $srcdir/../envvar-check
-
-pwd=`pwd`
-t0=`echo "$0"|sed 's,.*/,,'`.tmp; tmp=$t0/$$
-trap 'status=$?; cd "$pwd" && chmod -R u+rwx $t0 && rm -rf $t0 && exit $status' 0
-trap '(exit $?); exit $?' 1 2 13 15
-
-framework_failure=0
-mkdir -p $tmp || framework_failure=1
-cd $tmp || framework_failure=1
-
-if test $framework_failure = 1; then
- echo "$0: failure in testing framework" 1>&2
- (exit 1); exit 1
-fi
-
-fail=0
-
-root_dev_ino=`stat --format=%d-%i /`
-t=`pwd`
-while :; do
- ls -i1 "$t" > tmp
- if test $? = 0; then
- # Extract the inode number from the first line of output from ls -i1.
- # This value comes from dirent.d_ino, on systems with d_ino support.
- d_ino=`sed -n '1s/^ *\([0-9][0-9]*\) .*/\1/p;q' tmp`
-
- # Extract the name of the corresponding directory entry.
- file=`sed -n '1s/^ *[0-9][0-9]* *//p;q' tmp`
-
- # Get its inode number (stat.st_ino) via stat(1)'s call to lstat.
- st_ino=`stat --format=%i "$t/$file"`
-
- # Make sure that they are the same.
- # We know from experience that there may be mismatches on some
- # buggy file systems, at mount points.
- if test "$d_ino" != "$st_ino"; then
- echo "$0: test failed: $t/$file: d_ino($d_ino) != st_ino($st_ino)
- This may indicate a flaw in your kernel or file system implementation.
- The flaw isn't serious for coreutils, but it might break other tools,
- so you should report it to your operating system vendor." 1>&2
-
- # This test fails too often, and we don't want to be distracted
- # with reports, since the code that could be affected by the losing
- # behavior (pwd and getcwd) works around any mismatch.
- # So do continue to issue the warning, but don't count it as a
- # real failure.
- # fail=1
- break
- fi
- fi
-
- t=`(cd "$t/.."; pwd)`
- dev_ino=`stat --format=%d-%i "$t"`
- test $dev_ino = $root_dev_ino && break
-done
-
-(exit $fail); exit $fail
diff --git a/tests/ls/stat-vs-dirent.sh b/tests/ls/stat-vs-dirent.sh
new file mode 100755
index 0000000..b9f3cd1
--- /dev/null
+++ b/tests/ls/stat-vs-dirent.sh
@@ -0,0 +1,60 @@
+#!/bin/sh
+# Ensure that d_ino (from ls -di) and st_ino (from stat --format=%i) match.
+
+# Copyright (C) 2006-2016 Free Software Foundation, Inc.
+
+# This program is free software: you can redistribute it and/or modify
+# it under the terms of the GNU General Public License as published by
+# the Free Software Foundation, either version 3 of the License, or
+# (at your option) any later version.
+
+# This program is distributed in the hope that it will be useful,
+# but WITHOUT ANY WARRANTY; without even the implied warranty of
+# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
+# GNU General Public License for more details.
+
+# You should have received a copy of the GNU General Public License
+# along with this program. If not, see <http://www.gnu.org/licenses/>.
+
+. "${srcdir=.}/tests/init.sh"; path_prepend_ ./src
+print_ver_ ls
+
+
+root_dev_ino=$(stat --format=%d-%i /)
+t=$(pwd)
+while :; do
+ ls -i1 "$t" > tmp
+ if test $? = 0; then
+ # Extract the inode number from the first line of output from ls -i1.
+ # This value comes from dirent.d_ino, on systems with d_ino support.
+ d_ino=$(sed -n '1s/^ *\([0-9][0-9]*\) .*/\1/p;q' tmp)
+
+ # Extract the name of the corresponding directory entry.
+ file=$(sed -n '1s/^ *[0-9][0-9]* //p;q' tmp)
+
+ # Get its inode number (stat.st_ino) via stat(1)'s call to lstat.
+ st_ino=$(stat --format=%i "$t/$file")
+
+ # Make sure that they are the same.
+ # We know from experience that there may be mismatches on some
+ # buggy file systems, at mount points.
+ # Note that when a directory contains only entries whose names
+ # start with ".", d_ino and file will both be empty. In that case,
+ # skip the test.
+ if test -n "$d_ino" && test "$d_ino" != "$st_ino"; then
+ echo "$0: test failed: $t/$file: d_ino($d_ino) != st_ino($st_ino)
+ This may indicate a flaw in your kernel or file system implementation.
+ The flaw isn't serious for coreutils, but it might break other tools,
+ so you should report it to your operating system vendor." 1>&2
+
+ fail=1
+ break
+ fi
+ fi
+
+ t=$(cd "$t/.."; pwd)
+ dev_ino=$(stat --format=%d-%i "$t")
+ test $dev_ino = $root_dev_ino && break
+done
+
+Exit $fail
diff --git a/tests/ls/symlink-slash b/tests/ls/symlink-slash
deleted file mode 100755
index 1caa221..0000000
--- a/tests/ls/symlink-slash
+++ /dev/null
@@ -1,52 +0,0 @@
-#!/bin/sh
-# Do dereference a symlink arg if its name is written with a trailing slash.
-
-# Copyright (C) 1999, 2000, 2004 Free Software Foundation, Inc.
-
-# This program is free software; you can redistribute it and/or modify
-# it under the terms of the GNU General Public License as published by
-# the Free Software Foundation; either version 2 of the License, or
-# (at your option) any later version.
-
-# This program is distributed in the hope that it will be useful,
-# but WITHOUT ANY WARRANTY; without even the implied warranty of
-# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
-# GNU General Public License for more details.
-
-# You should have received a copy of the GNU General Public License
-# along with this program; if not, write to the Free Software
-# Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA
-# 02110-1301, USA.
-
-if test "$VERBOSE" = yes; then
- set -x
- ls --version
-fi
-
-. $srcdir/../envvar-check
-. $srcdir/../lang-default
-
-tmp=t-ls.$$
-
-framework_failure=0
-mkdir $tmp || framework_failure=1
-cd $tmp || framework_failure=1
-
-mkdir dir || framework_failure=1
-ln -s dir symlink || framework_failure=1
-
-if test $framework_failure = 1; then
- echo 'failure in testing framework'
- exit 1
-fi
-
-fail=0
-set `ls -l symlink/`
-
-# Prior to fileutils-4.0k, the following would have output `... symlink -> dir'.
-test "$*" = 'total 0' && : || fail=1
-
-cd ..
-rm -rf $tmp
-
-exit $fail
diff --git a/tests/ls/symlink-slash.sh b/tests/ls/symlink-slash.sh
new file mode 100755
index 0000000..c74e876
--- /dev/null
+++ b/tests/ls/symlink-slash.sh
@@ -0,0 +1,30 @@
+#!/bin/sh
+# Do dereference a symlink arg if its name is written with a trailing slash.
+
+# Copyright (C) 1999-2016 Free Software Foundation, Inc.
+
+# This program is free software: you can redistribute it and/or modify
+# it under the terms of the GNU General Public License as published by
+# the Free Software Foundation, either version 3 of the License, or
+# (at your option) any later version.
+
+# This program is distributed in the hope that it will be useful,
+# but WITHOUT ANY WARRANTY; without even the implied warranty of
+# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
+# GNU General Public License for more details.
+
+# You should have received a copy of the GNU General Public License
+# along with this program. If not, see <http://www.gnu.org/licenses/>.
+
+. "${srcdir=.}/tests/init.sh"; path_prepend_ ./src
+print_ver_ ls
+
+mkdir dir || framework_failure_
+ln -s dir symlink || framework_failure_
+
+set $(ls -l symlink/)
+
+# Prior to fileutils-4.0k, the following would have output '... symlink -> dir'.
+test "$*" = 'total 0' && : || fail=1
+
+Exit $fail
diff --git a/tests/ls/time-1 b/tests/ls/time-1
deleted file mode 100755
index aaaf04a..0000000
--- a/tests/ls/time-1
+++ /dev/null
@@ -1,145 +0,0 @@
-#!/bin/sh
-# Test some of ls's sorting options.
-
-# Copyright (C) 1998, 1999, 2000, 2001, 2004 Free Software Foundation,
-# Inc.
-
-# This program is free software; you can redistribute it and/or modify
-# it under the terms of the GNU General Public License as published by
-# the Free Software Foundation; either version 2 of the License, or
-# (at your option) any later version.
-
-# This program is distributed in the hope that it will be useful,
-# but WITHOUT ANY WARRANTY; without even the implied warranty of
-# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
-# GNU General Public License for more details.
-
-# You should have received a copy of the GNU General Public License
-# along with this program; if not, write to the Free Software
-# Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA
-# 02110-1301, USA.
-
-if test "$VERBOSE" = yes; then
- set -x
- ls --version
-fi
-
-# Avoid any possible glitches due to daylight-saving changes near the
-# time stamps used during the test.
-TZ=UTC0
-export TZ
-
-# Avoid glitches due to the environment specifying `ls' styles.
-unset QUOTING_STYLE
-unset TIME_STYLE
-
-tmp=t-ls.$$
-
-framework_failure=0
-mkdir $tmp || framework_failure=1
-cd $tmp || framework_failure=1
-
-t1='1998-01-15 21:00'
-t2='1998-01-15 22:00'
-t3='1998-01-15 23:00'
-
-u1='1998-01-14 11:00'
-u2='1998-01-14 12:00'
-u3='1998-01-14 13:00'
-
-touch -m -d "$t3" a || framework_failure=1
-touch -m -d "$t2" b || framework_failure=1
-touch -m -d "$t1" c || framework_failure=1
-
-touch -a -d "$u3" c || framework_failure=1
-touch -a -d "$u2" b || framework_failure=1
-# Make sure A has ctime at least 1 second more recent than C's.
-sleep 2
-touch -a -d "$u1" a || framework_failure=1
-
-fail=0
-
-# A has ctime more recent than C.
-set `ls -c a c`
-test "$*" = 'a c' || fail=1
-
-# Sleep so long in an attempt to avoid spurious failures
-# due to NFS caching and/or clock skew.
-sleep 2
-
-# Create a link, updating c's ctime.
-ln c d || framework_failure=1
-
-# Before we go any further, verify that touch's -m option works.
-set -- `ls --full -l a`
-case "$*" in
- *" $t3:00.000000000 +0000 a") ;;
- *)
- # This might be what's making HPUX 11 systems fail this test.
- cat >&2 << EOF
-A basic test of touch -m has just failed, so the subsequent
-tests in this file will not be run.
-
-In the output below, the date of last modification for \`a' should
-have been $t3.
-EOF
- #`
- ls --full -l a
- framework_failure=1
- ;;
-esac
-
-# Now test touch's -a option.
-set -- `ls --full -lu a`
-case "$*" in
- *" $u1:00.000000000 +0000 a") ;;
- *)
- # This might be what's making HPUX 11 systems fail this test.
- cat >&2 << EOF
-A basic test of touch -a has just failed, so the subsequent
-tests in this file will not be run.
-
-In the output below, the date of last access for \`a' should
-have been $u1.
-EOF
- ls --full -lu a
- (exit 77); exit 77
- ;;
-esac
-
-if test $framework_failure = 1; then
- echo 'failure in testing framework'
- exit 1
-fi
-
-set `ls -ut a b c`
-test "$*" = 'c b a' && : || fail=1
-test $fail = 1 && ls -l --full-time --time=access a b c
-
-set `ls -t a b c`
-test "$*" = 'a b c' && : || fail=1
-test $fail = 1 && ls -l --full-time a b c
-
-# Now, C should have ctime more recent than A.
-set `ls -ct a c`
-if test "$*" = 'c a'; then
- : ok
-else
- # In spite of documentation, (e.g., stat(2)), neither link nor chmod
- # update a file's st_ctime on SunOS4.1.4.
- cat >&2 << \EOF
-failed ls ctime test -- this failure is expected at least for SunOS4.1.4
-and for tmpfs file systems on Solaris 5.5.1.
-
-In the output below, `c' should have had a ctime more recent than
-that of `a', but does not.
-EOF
- #'
- ls -ctl --full-time a c
- fail=1
-fi
-
-cd ..
-rm -rf $tmp
-
-exit $fail
diff --git a/tests/ls/time-style-diag.sh b/tests/ls/time-style-diag.sh
new file mode 100755
index 0000000..04be4dd
--- /dev/null
+++ b/tests/ls/time-style-diag.sh
@@ -0,0 +1,39 @@
+#!/bin/sh
+# Ensure that an invalid --time-style=ARG is diagnosed the way we want.
+
+# Copyright (C) 2011-2016 Free Software Foundation, Inc.
+
+# This program is free software: you can redistribute it and/or modify
+# it under the terms of the GNU General Public License as published by
+# the Free Software Foundation, either version 3 of the License, or
+# (at your option) any later version.
+
+# This program is distributed in the hope that it will be useful,
+# but WITHOUT ANY WARRANTY; without even the implied warranty of
+# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
+# GNU General Public License for more details.
+
+# You should have received a copy of the GNU General Public License
+# along with this program. If not, see <http://www.gnu.org/licenses/>.
+
+. "${srcdir=.}/tests/init.sh"; path_prepend_ ./src
+print_ver_ ls
+
+ls -l --time-style=XX > out 2> err
+test $? = 2 || fail=1
+
+cat <<\EOF > exp || fail=1
+ls: invalid argument 'XX' for 'time style'
+Valid arguments are:
+ - [posix-]full-iso
+ - [posix-]long-iso
+ - [posix-]iso
+ - [posix-]locale
+ - +FORMAT (e.g., +%H:%M) for a 'date'-style format
+Try 'ls --help' for more information.
+EOF
+
+compare exp err || fail=1
+compare /dev/null out || fail=1
+
+Exit $fail
diff --git a/tests/ls/w-option.sh b/tests/ls/w-option.sh
new file mode 100755
index 0000000..49cb44f
--- /dev/null
+++ b/tests/ls/w-option.sh
@@ -0,0 +1,48 @@
+#!/bin/sh
+# exercise the -w option
+
+# Copyright (C) 2015-2016 Free Software Foundation, Inc.
+
+# This program is free software: you can redistribute it and/or modify
+# it under the terms of the GNU General Public License as published by
+# the Free Software Foundation, either version 3 of the License, or
+# (at your option) any later version.
+
+# This program is distributed in the hope that it will be useful,
+# but WITHOUT ANY WARRANTY; without even the implied warranty of
+# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
+# GNU General Public License for more details.
+
+# You should have received a copy of the GNU General Public License
+# along with this program. If not, see <http://www.gnu.org/licenses/>.
+
+. "${srcdir=.}/tests/init.sh"; path_prepend_ ./src
+print_ver_ ls
+getlimits_
+
+touch a b || framework_failure_
+chmod a+x a || framework_failure_
+
+# Negative values disallowed
+returns_ 2 ls -w-1 || fail=1
+
+# Verify octal parsing (especially since 0 is allowed)
+returns_ 2 ls -w08 || fail=1
+
+# Overflowed values are capped at SIZE_MAX
+ls -w$SIZE_OFLOW || fail=1
+
+# After coreutils 8.24 -w0 means no limit
+# and delimiting with spaces
+ls -w0 -x -T1 a b > out || fail=1
+printf '%s\n' 'a b' > exp || framework_failure_
+compare exp out || fail=1
+
+# Ensure that 0 line length doesn't cause division by zero
+TERM=xterm ls -w0 -x --color=always || fail=1
+
+# coreutils <= 8.24 could display 1 column too few
+ls -w4 -x -T0 a b > out || fail=1
+compare exp out || fail=1
+
+Exit $fail
diff --git a/tests/ls/x-option.sh b/tests/ls/x-option.sh
new file mode 100755
index 0000000..4bcdda4
--- /dev/null
+++ b/tests/ls/x-option.sh
@@ -0,0 +1,37 @@
+#!/bin/sh
+# Exercise the -x option.
+
+# Copyright (C) 2007-2016 Free Software Foundation, Inc.
+
+# This program is free software: you can redistribute it and/or modify
+# it under the terms of the GNU General Public License as published by
+# the Free Software Foundation, either version 3 of the License, or
+# (at your option) any later version.
+
+# This program is distributed in the hope that it will be useful,
+# but WITHOUT ANY WARRANTY; without even the implied warranty of
+# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
+# GNU General Public License for more details.
+
+# You should have received a copy of the GNU General Public License
+# along with this program. If not, see <http://www.gnu.org/licenses/>.
+
+. "${srcdir=.}/tests/init.sh"; path_prepend_ ./src
+print_ver_ ls
+
+mkdir subdir || framework_failure_
+touch subdir/b || framework_failure_
+touch subdir/a || framework_failure_
+
+
+# Coreutils 6.8 and 6.9 would output this in the wrong order.
+ls -x subdir > out || fail=1
+ls -rx subdir >> out || fail=1
+cat <<\EOF > exp || fail=1
+a b
+b a
+EOF
+
+compare exp out || fail=1
+
+Exit $fail
diff --git a/tests/md5sum/Makefile.am b/tests/md5sum/Makefile.am
deleted file mode 100644
index 0ed74e0..0000000
--- a/tests/md5sum/Makefile.am
+++ /dev/null
@@ -1,13 +0,0 @@
-## Process this file with automake to produce Makefile.in -*-Makefile-*-.
-
-EXTRA_DIST = $(TESTS)
-
-TESTS_ENVIRONMENT = \
- top_srcdir=$(top_srcdir) \
- srcdir=$(srcdir) \
- PERL="$(PERL)" \
- CU_TEST_NAME=`basename $(abs_srcdir)`,$$tst \
- PATH="$(VG_PATH_PREFIX)`pwd`/../../src$(PATH_SEPARATOR)$$PATH" \
- PROG=md5sum
-
-TESTS = basic-1 newline-1
diff --git a/tests/md5sum/Makefile.in b/tests/md5sum/Makefile.in
deleted file mode 100644
index bfb9447..0000000
--- a/tests/md5sum/Makefile.in
+++ /dev/null
@@ -1,720 +0,0 @@
-# Makefile.in generated by automake 1.10 from Makefile.am.
-# @configure_input@
-
-# Copyright (C) 1994, 1995, 1996, 1997, 1998, 1999, 2000, 2001, 2002,
-# 2003, 2004, 2005, 2006 Free Software Foundation, Inc.
-# This Makefile.in is free software; the Free Software Foundation
-# gives unlimited permission to copy and/or distribute it,
-# with or without modifications, as long as this notice is preserved.
-
-# This program is distributed in the hope that it will be useful,
-# but WITHOUT ANY WARRANTY, to the extent permitted by law; without
-# even the implied warranty of MERCHANTABILITY or FITNESS FOR A
-# PARTICULAR PURPOSE.
-
-@SET_MAKE@
-VPATH = @srcdir@
-pkgdatadir = $(datadir)/@PACKAGE@
-pkglibdir = $(libdir)/@PACKAGE@
-pkgincludedir = $(includedir)/@PACKAGE@
-am__cd = CDPATH="$${ZSH_VERSION+.}$(PATH_SEPARATOR)" && cd
-install_sh_DATA = $(install_sh) -c -m 644
-install_sh_PROGRAM = $(install_sh) -c
-install_sh_SCRIPT = $(install_sh) -c
-INSTALL_HEADER = $(INSTALL_DATA)
-transform = $(program_transform_name)
-NORMAL_INSTALL = :
-PRE_INSTALL = :
-POST_INSTALL = :
-NORMAL_UNINSTALL = :
-PRE_UNINSTALL = :
-POST_UNINSTALL = :
-build_triplet = @build@
-host_triplet = @host@
-subdir = tests/md5sum
-DIST_COMMON = $(srcdir)/Makefile.am $(srcdir)/Makefile.in
-ACLOCAL_M4 = $(top_srcdir)/aclocal.m4
-am__aclocal_m4_deps = $(top_srcdir)/m4/absolute-header.m4 \
- $(top_srcdir)/m4/acl.m4 $(top_srcdir)/m4/alloca.m4 \
- $(top_srcdir)/m4/allocsa.m4 $(top_srcdir)/m4/argmatch.m4 \
- $(top_srcdir)/m4/arpa_inet_h.m4 $(top_srcdir)/m4/assert.m4 \
- $(top_srcdir)/m4/atexit.m4 $(top_srcdir)/m4/autobuild.m4 \
- $(top_srcdir)/m4/backupfile.m4 $(top_srcdir)/m4/base64.m4 \
- $(top_srcdir)/m4/bison.m4 $(top_srcdir)/m4/boottime.m4 \
- $(top_srcdir)/m4/c-strtod.m4 $(top_srcdir)/m4/calloc.m4 \
- $(top_srcdir)/m4/canon-host.m4 \
- $(top_srcdir)/m4/canonicalize.m4 \
- $(top_srcdir)/m4/chdir-long.m4 $(top_srcdir)/m4/check-decl.m4 \
- $(top_srcdir)/m4/chown.m4 $(top_srcdir)/m4/clock_time.m4 \
- $(top_srcdir)/m4/cloexec.m4 $(top_srcdir)/m4/close-stream.m4 \
- $(top_srcdir)/m4/closeout.m4 $(top_srcdir)/m4/codeset.m4 \
- $(top_srcdir)/m4/config-h.m4 $(top_srcdir)/m4/cycle-check.m4 \
- $(top_srcdir)/m4/d-ino.m4 $(top_srcdir)/m4/d-type.m4 \
- $(top_srcdir)/m4/dirfd.m4 $(top_srcdir)/m4/dirname.m4 \
- $(top_srcdir)/m4/dos.m4 $(top_srcdir)/m4/double-slash-root.m4 \
- $(top_srcdir)/m4/dup2.m4 $(top_srcdir)/m4/eealloc.m4 \
- $(top_srcdir)/m4/eoverflow.m4 $(top_srcdir)/m4/error.m4 \
- $(top_srcdir)/m4/euidaccess-stat.m4 \
- $(top_srcdir)/m4/euidaccess.m4 $(top_srcdir)/m4/exclude.m4 \
- $(top_srcdir)/m4/exitfail.m4 $(top_srcdir)/m4/extensions.m4 \
- $(top_srcdir)/m4/fchdir.m4 $(top_srcdir)/m4/fcntl-safer.m4 \
- $(top_srcdir)/m4/fcntl_h.m4 $(top_srcdir)/m4/fd-reopen.m4 \
- $(top_srcdir)/m4/file-type.m4 $(top_srcdir)/m4/fileblocks.m4 \
- $(top_srcdir)/m4/filemode.m4 $(top_srcdir)/m4/filenamecat.m4 \
- $(top_srcdir)/m4/flexmember.m4 $(top_srcdir)/m4/fnmatch.m4 \
- $(top_srcdir)/m4/fpending.m4 $(top_srcdir)/m4/fprintftime.m4 \
- $(top_srcdir)/m4/free.m4 $(top_srcdir)/m4/fstypename.m4 \
- $(top_srcdir)/m4/fsusage.m4 $(top_srcdir)/m4/ftruncate.m4 \
- $(top_srcdir)/m4/fts.m4 $(top_srcdir)/m4/getaddrinfo.m4 \
- $(top_srcdir)/m4/getcwd-abort-bug.m4 \
- $(top_srcdir)/m4/getcwd-path-max.m4 $(top_srcdir)/m4/getcwd.m4 \
- $(top_srcdir)/m4/getdate.m4 $(top_srcdir)/m4/getdelim.m4 \
- $(top_srcdir)/m4/getgroups.m4 $(top_srcdir)/m4/gethostname.m4 \
- $(top_srcdir)/m4/gethrxtime.m4 $(top_srcdir)/m4/getline.m4 \
- $(top_srcdir)/m4/getloadavg.m4 $(top_srcdir)/m4/getndelim2.m4 \
- $(top_srcdir)/m4/getopt.m4 $(top_srcdir)/m4/getpagesize.m4 \
- $(top_srcdir)/m4/getpass.m4 $(top_srcdir)/m4/gettext.m4 \
- $(top_srcdir)/m4/gettime.m4 $(top_srcdir)/m4/gettimeofday.m4 \
- $(top_srcdir)/m4/getugroups.m4 \
- $(top_srcdir)/m4/getusershell.m4 $(top_srcdir)/m4/glibc21.m4 \
- $(top_srcdir)/m4/gnulib-common.m4 \
- $(top_srcdir)/m4/gnulib-comp.m4 \
- $(top_srcdir)/m4/group-member.m4 \
- $(top_srcdir)/m4/hard-locale.m4 $(top_srcdir)/m4/hash.m4 \
- $(top_srcdir)/m4/host-os.m4 $(top_srcdir)/m4/human.m4 \
- $(top_srcdir)/m4/i-ring.m4 $(top_srcdir)/m4/iconv.m4 \
- $(top_srcdir)/m4/idcache.m4 $(top_srcdir)/m4/inet_ntop.m4 \
- $(top_srcdir)/m4/inline.m4 $(top_srcdir)/m4/intmax_t.m4 \
- $(top_srcdir)/m4/inttostr.m4 $(top_srcdir)/m4/inttypes-pri.m4 \
- $(top_srcdir)/m4/inttypes.m4 $(top_srcdir)/m4/inttypes_h.m4 \
- $(top_srcdir)/m4/isapipe.m4 $(top_srcdir)/m4/jm-macros.m4 \
- $(top_srcdir)/m4/jm-winsz1.m4 $(top_srcdir)/m4/jm-winsz2.m4 \
- $(top_srcdir)/m4/lchmod.m4 $(top_srcdir)/m4/lchown.m4 \
- $(top_srcdir)/m4/lib-check.m4 $(top_srcdir)/m4/lib-ignore.m4 \
- $(top_srcdir)/m4/lib-ld.m4 $(top_srcdir)/m4/lib-link.m4 \
- $(top_srcdir)/m4/lib-prefix.m4 $(top_srcdir)/m4/link-follow.m4 \
- $(top_srcdir)/m4/localcharset.m4 \
- $(top_srcdir)/m4/long-options.m4 \
- $(top_srcdir)/m4/longdouble.m4 $(top_srcdir)/m4/longlong.m4 \
- $(top_srcdir)/m4/ls-mntd-fs.m4 $(top_srcdir)/m4/lstat.m4 \
- $(top_srcdir)/m4/mbchar.m4 $(top_srcdir)/m4/mbiter.m4 \
- $(top_srcdir)/m4/mbrtowc.m4 $(top_srcdir)/m4/mbscasecmp.m4 \
- $(top_srcdir)/m4/mbstate_t.m4 $(top_srcdir)/m4/mbswidth.m4 \
- $(top_srcdir)/m4/md5.m4 $(top_srcdir)/m4/memcasecmp.m4 \
- $(top_srcdir)/m4/memchr.m4 $(top_srcdir)/m4/memcmp.m4 \
- $(top_srcdir)/m4/memcoll.m4 $(top_srcdir)/m4/memcpy.m4 \
- $(top_srcdir)/m4/memmove.m4 $(top_srcdir)/m4/mempcpy.m4 \
- $(top_srcdir)/m4/memrchr.m4 $(top_srcdir)/m4/memset.m4 \
- $(top_srcdir)/m4/memxfrm.m4 $(top_srcdir)/m4/mkancesdirs.m4 \
- $(top_srcdir)/m4/mkdir-p.m4 $(top_srcdir)/m4/mkdir-slash.m4 \
- $(top_srcdir)/m4/mkstemp.m4 $(top_srcdir)/m4/mktime.m4 \
- $(top_srcdir)/m4/modechange.m4 $(top_srcdir)/m4/mountlist.m4 \
- $(top_srcdir)/m4/mpsort.m4 $(top_srcdir)/m4/nanosleep.m4 \
- $(top_srcdir)/m4/netinet_in_h.m4 $(top_srcdir)/m4/nls.m4 \
- $(top_srcdir)/m4/openat.m4 $(top_srcdir)/m4/pathmax.m4 \
- $(top_srcdir)/m4/perl.m4 $(top_srcdir)/m4/physmem.m4 \
- $(top_srcdir)/m4/po.m4 $(top_srcdir)/m4/posixtm.m4 \
- $(top_srcdir)/m4/posixver.m4 $(top_srcdir)/m4/prereq.m4 \
- $(top_srcdir)/m4/progtest.m4 $(top_srcdir)/m4/putenv.m4 \
- $(top_srcdir)/m4/quote.m4 $(top_srcdir)/m4/quotearg.m4 \
- $(top_srcdir)/m4/randint.m4 $(top_srcdir)/m4/randperm.m4 \
- $(top_srcdir)/m4/randread.m4 $(top_srcdir)/m4/readlink.m4 \
- $(top_srcdir)/m4/readtokens.m4 $(top_srcdir)/m4/readutmp.m4 \
- $(top_srcdir)/m4/regex.m4 \
- $(top_srcdir)/m4/rename-dest-slash.m4 \
- $(top_srcdir)/m4/rename.m4 $(top_srcdir)/m4/rmdir-errno.m4 \
- $(top_srcdir)/m4/rmdir.m4 $(top_srcdir)/m4/root-dev-ino.m4 \
- $(top_srcdir)/m4/rpmatch.m4 $(top_srcdir)/m4/safe-read.m4 \
- $(top_srcdir)/m4/safe-write.m4 $(top_srcdir)/m4/same.m4 \
- $(top_srcdir)/m4/save-cwd.m4 $(top_srcdir)/m4/savedir.m4 \
- $(top_srcdir)/m4/savewd.m4 $(top_srcdir)/m4/setenv.m4 \
- $(top_srcdir)/m4/settime.m4 $(top_srcdir)/m4/sha1.m4 \
- $(top_srcdir)/m4/sha256.m4 $(top_srcdir)/m4/sha512.m4 \
- $(top_srcdir)/m4/sig2str.m4 $(top_srcdir)/m4/snprintf.m4 \
- $(top_srcdir)/m4/socklen.m4 $(top_srcdir)/m4/sockpfaf.m4 \
- $(top_srcdir)/m4/ssize_t.m4 $(top_srcdir)/m4/st_dm_mode.m4 \
- $(top_srcdir)/m4/stat-prog.m4 $(top_srcdir)/m4/stat-time.m4 \
- $(top_srcdir)/m4/stdarg.m4 $(top_srcdir)/m4/stdbool.m4 \
- $(top_srcdir)/m4/stdint.m4 $(top_srcdir)/m4/stdint_h.m4 \
- $(top_srcdir)/m4/stdio-safer.m4 $(top_srcdir)/m4/stdio_h.m4 \
- $(top_srcdir)/m4/stdlib-safer.m4 $(top_srcdir)/m4/stdlib_h.m4 \
- $(top_srcdir)/m4/stpcpy.m4 $(top_srcdir)/m4/strcspn.m4 \
- $(top_srcdir)/m4/strdup.m4 $(top_srcdir)/m4/strftime.m4 \
- $(top_srcdir)/m4/string_h.m4 $(top_srcdir)/m4/strndup.m4 \
- $(top_srcdir)/m4/strnlen.m4 $(top_srcdir)/m4/strnumcmp.m4 \
- $(top_srcdir)/m4/strpbrk.m4 $(top_srcdir)/m4/strtod.m4 \
- $(top_srcdir)/m4/strtoimax.m4 $(top_srcdir)/m4/strtol.m4 \
- $(top_srcdir)/m4/strtoll.m4 $(top_srcdir)/m4/strtoul.m4 \
- $(top_srcdir)/m4/strtoull.m4 $(top_srcdir)/m4/strtoumax.m4 \
- $(top_srcdir)/m4/strverscmp.m4 \
- $(top_srcdir)/m4/sys_socket_h.m4 \
- $(top_srcdir)/m4/sys_stat_h.m4 $(top_srcdir)/m4/sys_time_h.m4 \
- $(top_srcdir)/m4/tempname.m4 $(top_srcdir)/m4/time_h.m4 \
- $(top_srcdir)/m4/time_r.m4 $(top_srcdir)/m4/timespec.m4 \
- $(top_srcdir)/m4/tm_gmtoff.m4 $(top_srcdir)/m4/tzset.m4 \
- $(top_srcdir)/m4/unicodeio.m4 $(top_srcdir)/m4/unistd-safer.m4 \
- $(top_srcdir)/m4/unistd_h.m4 $(top_srcdir)/m4/unlink-busy.m4 \
- $(top_srcdir)/m4/unlinkdir.m4 $(top_srcdir)/m4/unlocked-io.m4 \
- $(top_srcdir)/m4/uptime.m4 $(top_srcdir)/m4/userspec.m4 \
- $(top_srcdir)/m4/utimbuf.m4 $(top_srcdir)/m4/utime.m4 \
- $(top_srcdir)/m4/utimecmp.m4 $(top_srcdir)/m4/utimens.m4 \
- $(top_srcdir)/m4/utimes-null.m4 $(top_srcdir)/m4/utimes.m4 \
- $(top_srcdir)/m4/vasnprintf.m4 $(top_srcdir)/m4/vasprintf.m4 \
- $(top_srcdir)/m4/wchar.m4 $(top_srcdir)/m4/wchar_t.m4 \
- $(top_srcdir)/m4/wctype.m4 $(top_srcdir)/m4/wcwidth.m4 \
- $(top_srcdir)/m4/wint_t.m4 $(top_srcdir)/m4/xalloc.m4 \
- $(top_srcdir)/m4/xfts.m4 $(top_srcdir)/m4/xgetcwd.m4 \
- $(top_srcdir)/m4/xnanosleep.m4 $(top_srcdir)/m4/xstrndup.m4 \
- $(top_srcdir)/m4/xstrtod.m4 $(top_srcdir)/m4/xstrtol.m4 \
- $(top_srcdir)/m4/yesno.m4 $(top_srcdir)/configure.ac
-am__configure_deps = $(am__aclocal_m4_deps) $(CONFIGURE_DEPENDENCIES) \
- $(ACLOCAL_M4)
-mkinstalldirs = $(install_sh) -d
-CONFIG_HEADER = $(top_builddir)/lib/config.h
-CONFIG_CLEAN_FILES =
-SOURCES =
-DIST_SOURCES =
-DISTFILES = $(DIST_COMMON) $(DIST_SOURCES) $(TEXINFOS) $(EXTRA_DIST)
-ABSOLUTE_DIRENT_H = @ABSOLUTE_DIRENT_H@
-ABSOLUTE_FCNTL_H = @ABSOLUTE_FCNTL_H@
-ABSOLUTE_INTTYPES_H = @ABSOLUTE_INTTYPES_H@
-ABSOLUTE_NETINET_IN_H = @ABSOLUTE_NETINET_IN_H@
-ABSOLUTE_STDINT_H = @ABSOLUTE_STDINT_H@
-ABSOLUTE_STDIO_H = @ABSOLUTE_STDIO_H@
-ABSOLUTE_STDLIB_H = @ABSOLUTE_STDLIB_H@
-ABSOLUTE_STRING_H = @ABSOLUTE_STRING_H@
-ABSOLUTE_SYS_SOCKET_H = @ABSOLUTE_SYS_SOCKET_H@
-ABSOLUTE_SYS_STAT_H = @ABSOLUTE_SYS_STAT_H@
-ABSOLUTE_SYS_TIME_H = @ABSOLUTE_SYS_TIME_H@
-ABSOLUTE_TIME_H = @ABSOLUTE_TIME_H@
-ABSOLUTE_UNISTD_H = @ABSOLUTE_UNISTD_H@
-ABSOLUTE_WCHAR_H = @ABSOLUTE_WCHAR_H@
-ABSOLUTE_WCTYPE_H = @ABSOLUTE_WCTYPE_H@
-ACLOCAL = @ACLOCAL@
-ALLOCA = @ALLOCA@
-ALLOCA_H = @ALLOCA_H@
-AMTAR = @AMTAR@
-ARPA_INET_H = @ARPA_INET_H@
-AUTOCONF = @AUTOCONF@
-AUTOHEADER = @AUTOHEADER@
-AUTOMAKE = @AUTOMAKE@
-AWK = @AWK@
-BITSIZEOF_PTRDIFF_T = @BITSIZEOF_PTRDIFF_T@
-BITSIZEOF_SIG_ATOMIC_T = @BITSIZEOF_SIG_ATOMIC_T@
-BITSIZEOF_SIZE_T = @BITSIZEOF_SIZE_T@
-BITSIZEOF_WCHAR_T = @BITSIZEOF_WCHAR_T@
-BITSIZEOF_WINT_T = @BITSIZEOF_WINT_T@
-CC = @CC@
-CCDEPMODE = @CCDEPMODE@
-CFLAGS = @CFLAGS@
-CPP = @CPP@
-CPPFLAGS = @CPPFLAGS@
-CYGPATH_W = @CYGPATH_W@
-DEFAULT_POSIX2_VERSION = @DEFAULT_POSIX2_VERSION@
-DEFS = @DEFS@
-DEPDIR = @DEPDIR@
-DF_PROG = @DF_PROG@
-DIRENT_H = @DIRENT_H@
-ECHO_C = @ECHO_C@
-ECHO_N = @ECHO_N@
-ECHO_T = @ECHO_T@
-EGREP = @EGREP@
-EOVERFLOW = @EOVERFLOW@
-EXEEXT = @EXEEXT@
-FCNTL_H = @FCNTL_H@
-FNMATCH_H = @FNMATCH_H@
-GETLOADAVG_LIBS = @GETLOADAVG_LIBS@
-GETOPT_H = @GETOPT_H@
-GLIBC21 = @GLIBC21@
-GMSGFMT = @GMSGFMT@
-GMSGFMT_015 = @GMSGFMT_015@
-GNULIB_CHOWN = @GNULIB_CHOWN@
-GNULIB_DUP2 = @GNULIB_DUP2@
-GNULIB_FCHDIR = @GNULIB_FCHDIR@
-GNULIB_FPRINTF_POSIX = @GNULIB_FPRINTF_POSIX@
-GNULIB_FTRUNCATE = @GNULIB_FTRUNCATE@
-GNULIB_GETCWD = @GNULIB_GETCWD@
-GNULIB_GETLOGIN_R = @GNULIB_GETLOGIN_R@
-GNULIB_GETSUBOPT = @GNULIB_GETSUBOPT@
-GNULIB_IMAXABS = @GNULIB_IMAXABS@
-GNULIB_IMAXDIV = @GNULIB_IMAXDIV@
-GNULIB_MBSCASECMP = @GNULIB_MBSCASECMP@
-GNULIB_MBSCASESTR = @GNULIB_MBSCASESTR@
-GNULIB_MBSCHR = @GNULIB_MBSCHR@
-GNULIB_MBSCSPN = @GNULIB_MBSCSPN@
-GNULIB_MBSLEN = @GNULIB_MBSLEN@
-GNULIB_MBSNCASECMP = @GNULIB_MBSNCASECMP@
-GNULIB_MBSPBRK = @GNULIB_MBSPBRK@
-GNULIB_MBSPCASECMP = @GNULIB_MBSPCASECMP@
-GNULIB_MBSRCHR = @GNULIB_MBSRCHR@
-GNULIB_MBSSEP = @GNULIB_MBSSEP@
-GNULIB_MBSSPN = @GNULIB_MBSSPN@
-GNULIB_MBSSTR = @GNULIB_MBSSTR@
-GNULIB_MBSTOK_R = @GNULIB_MBSTOK_R@
-GNULIB_MEMMEM = @GNULIB_MEMMEM@
-GNULIB_MEMPCPY = @GNULIB_MEMPCPY@
-GNULIB_MEMRCHR = @GNULIB_MEMRCHR@
-GNULIB_MKDTEMP = @GNULIB_MKDTEMP@
-GNULIB_MKSTEMP = @GNULIB_MKSTEMP@
-GNULIB_PRINTF_POSIX = @GNULIB_PRINTF_POSIX@
-GNULIB_READLINK = @GNULIB_READLINK@
-GNULIB_SNPRINTF = @GNULIB_SNPRINTF@
-GNULIB_SPRINTF_POSIX = @GNULIB_SPRINTF_POSIX@
-GNULIB_STPCPY = @GNULIB_STPCPY@
-GNULIB_STPNCPY = @GNULIB_STPNCPY@
-GNULIB_STRCASESTR = @GNULIB_STRCASESTR@
-GNULIB_STRCHRNUL = @GNULIB_STRCHRNUL@
-GNULIB_STRDUP = @GNULIB_STRDUP@
-GNULIB_STRNDUP = @GNULIB_STRNDUP@
-GNULIB_STRNLEN = @GNULIB_STRNLEN@
-GNULIB_STRPBRK = @GNULIB_STRPBRK@
-GNULIB_STRSEP = @GNULIB_STRSEP@
-GNULIB_STRTOIMAX = @GNULIB_STRTOIMAX@
-GNULIB_STRTOK_R = @GNULIB_STRTOK_R@
-GNULIB_STRTOUMAX = @GNULIB_STRTOUMAX@
-GNULIB_VFPRINTF_POSIX = @GNULIB_VFPRINTF_POSIX@
-GNULIB_VPRINTF_POSIX = @GNULIB_VPRINTF_POSIX@
-GNULIB_VSNPRINTF = @GNULIB_VSNPRINTF@
-GNULIB_VSPRINTF_POSIX = @GNULIB_VSPRINTF_POSIX@
-GNU_PACKAGE = @GNU_PACKAGE@
-GREP = @GREP@
-HAVE_DECL_GETLOGIN_R = @HAVE_DECL_GETLOGIN_R@
-HAVE_DECL_IMAXABS = @HAVE_DECL_IMAXABS@
-HAVE_DECL_IMAXDIV = @HAVE_DECL_IMAXDIV@
-HAVE_DECL_MEMMEM = @HAVE_DECL_MEMMEM@
-HAVE_DECL_MEMRCHR = @HAVE_DECL_MEMRCHR@
-HAVE_DECL_SNPRINTF = @HAVE_DECL_SNPRINTF@
-HAVE_DECL_STRDUP = @HAVE_DECL_STRDUP@
-HAVE_DECL_STRNCASECMP = @HAVE_DECL_STRNCASECMP@
-HAVE_DECL_STRNDUP = @HAVE_DECL_STRNDUP@
-HAVE_DECL_STRNLEN = @HAVE_DECL_STRNLEN@
-HAVE_DECL_STRTOIMAX = @HAVE_DECL_STRTOIMAX@
-HAVE_DECL_STRTOK_R = @HAVE_DECL_STRTOK_R@
-HAVE_DECL_STRTOUMAX = @HAVE_DECL_STRTOUMAX@
-HAVE_DECL_VSNPRINTF = @HAVE_DECL_VSNPRINTF@
-HAVE_DUP2 = @HAVE_DUP2@
-HAVE_FTRUNCATE = @HAVE_FTRUNCATE@
-HAVE_GETSUBOPT = @HAVE_GETSUBOPT@
-HAVE_INTTYPES_H = @HAVE_INTTYPES_H@
-HAVE_LONG_LONG_INT = @HAVE_LONG_LONG_INT@
-HAVE_MEMPCPY = @HAVE_MEMPCPY@
-HAVE_MKDTEMP = @HAVE_MKDTEMP@
-HAVE_NETINET_IN_H = @HAVE_NETINET_IN_H@
-HAVE_READLINK = @HAVE_READLINK@
-HAVE_SIGNED_SIG_ATOMIC_T = @HAVE_SIGNED_SIG_ATOMIC_T@
-HAVE_SIGNED_WCHAR_T = @HAVE_SIGNED_WCHAR_T@
-HAVE_SIGNED_WINT_T = @HAVE_SIGNED_WINT_T@
-HAVE_STDINT_H = @HAVE_STDINT_H@
-HAVE_STPCPY = @HAVE_STPCPY@
-HAVE_STPNCPY = @HAVE_STPNCPY@
-HAVE_STRCASECMP = @HAVE_STRCASECMP@
-HAVE_STRCASESTR = @HAVE_STRCASESTR@
-HAVE_STRCHRNUL = @HAVE_STRCHRNUL@
-HAVE_STRNDUP = @HAVE_STRNDUP@
-HAVE_STRPBRK = @HAVE_STRPBRK@
-HAVE_STRSEP = @HAVE_STRSEP@
-HAVE_STRUCT_TIMEVAL = @HAVE_STRUCT_TIMEVAL@
-HAVE_SYS_BITYPES_H = @HAVE_SYS_BITYPES_H@
-HAVE_SYS_INTTYPES_H = @HAVE_SYS_INTTYPES_H@
-HAVE_SYS_SOCKET_H = @HAVE_SYS_SOCKET_H@
-HAVE_SYS_TIME_H = @HAVE_SYS_TIME_H@
-HAVE_SYS_TYPES_H = @HAVE_SYS_TYPES_H@
-HAVE_UNISTD_H = @HAVE_UNISTD_H@
-HAVE_UNSIGNED_LONG_LONG_INT = @HAVE_UNSIGNED_LONG_LONG_INT@
-HAVE_WCTYPE_H = @HAVE_WCTYPE_H@
-HAVE_WINSOCK2_H = @HAVE_WINSOCK2_H@
-HAVE_WINT_T = @HAVE_WINT_T@
-HAVE_WS2TCPIP_H = @HAVE_WS2TCPIP_H@
-HAVE__BOOL = @HAVE__BOOL@
-HELP2MAN = @HELP2MAN@
-INSTALL = @INSTALL@
-INSTALL_DATA = @INSTALL_DATA@
-INSTALL_PROGRAM = @INSTALL_PROGRAM@
-INSTALL_SCRIPT = @INSTALL_SCRIPT@
-INSTALL_STRIP_PROGRAM = @INSTALL_STRIP_PROGRAM@
-INTLLIBS = @INTLLIBS@
-INTL_MACOSX_LIBS = @INTL_MACOSX_LIBS@
-INTTYPES_H = @INTTYPES_H@
-KMEM_GROUP = @KMEM_GROUP@
-LDFLAGS = @LDFLAGS@
-LIBCOREUTILS_LIBDEPS = @LIBCOREUTILS_LIBDEPS@
-LIBCOREUTILS_LTLIBDEPS = @LIBCOREUTILS_LTLIBDEPS@
-LIBICONV = @LIBICONV@
-LIBINTL = @LIBINTL@
-LIBOBJS = @LIBOBJS@
-LIBS = @LIBS@
-LIB_ACL = @LIB_ACL@
-LIB_ACL_TRIVIAL = @LIB_ACL_TRIVIAL@
-LIB_CLOCK_GETTIME = @LIB_CLOCK_GETTIME@
-LIB_CRYPT = @LIB_CRYPT@
-LIB_EACCESS = @LIB_EACCESS@
-LIB_FDATASYNC = @LIB_FDATASYNC@
-LIB_GETHRXTIME = @LIB_GETHRXTIME@
-LIB_NANOSLEEP = @LIB_NANOSLEEP@
-LN_S = @LN_S@
-LTLIBICONV = @LTLIBICONV@
-LTLIBINTL = @LTLIBINTL@
-LTLIBOBJS = @LTLIBOBJS@
-MAKEINFO = @MAKEINFO@
-MAN = @MAN@
-MKDIR_P = @MKDIR_P@
-MSGFMT = @MSGFMT@
-MSGFMT_015 = @MSGFMT_015@
-MSGMERGE = @MSGMERGE@
-NEED_SETGID = @NEED_SETGID@
-NETINET_IN_H = @NETINET_IN_H@
-OBJEXT = @OBJEXT@
-OPTIONAL_BIN_PROGS = @OPTIONAL_BIN_PROGS@
-PACKAGE = @PACKAGE@
-PACKAGE_BUGREPORT = @PACKAGE_BUGREPORT@
-PACKAGE_NAME = @PACKAGE_NAME@
-PACKAGE_STRING = @PACKAGE_STRING@
-PACKAGE_TARNAME = @PACKAGE_TARNAME@
-PACKAGE_VERSION = @PACKAGE_VERSION@
-PATH_SEPARATOR = @PATH_SEPARATOR@
-PERL = @PERL@
-POSUB = @POSUB@
-POW_LIB = @POW_LIB@
-PRIPTR_PREFIX = @PRIPTR_PREFIX@
-PRI_MACROS_BROKEN = @PRI_MACROS_BROKEN@
-PTRDIFF_T_SUFFIX = @PTRDIFF_T_SUFFIX@
-RANLIB = @RANLIB@
-REPLACE_CHOWN = @REPLACE_CHOWN@
-REPLACE_FCHDIR = @REPLACE_FCHDIR@
-REPLACE_FPRINTF = @REPLACE_FPRINTF@
-REPLACE_GETCWD = @REPLACE_GETCWD@
-REPLACE_GETTIMEOFDAY = @REPLACE_GETTIMEOFDAY@
-REPLACE_LOCALTIME_R = @REPLACE_LOCALTIME_R@
-REPLACE_MKSTEMP = @REPLACE_MKSTEMP@
-REPLACE_NANOSLEEP = @REPLACE_NANOSLEEP@
-REPLACE_PRINTF = @REPLACE_PRINTF@
-REPLACE_SNPRINTF = @REPLACE_SNPRINTF@
-REPLACE_SPRINTF = @REPLACE_SPRINTF@
-REPLACE_STRPTIME = @REPLACE_STRPTIME@
-REPLACE_TIMEGM = @REPLACE_TIMEGM@
-REPLACE_VFPRINTF = @REPLACE_VFPRINTF@
-REPLACE_VPRINTF = @REPLACE_VPRINTF@
-REPLACE_VSNPRINTF = @REPLACE_VSNPRINTF@
-REPLACE_VSPRINTF = @REPLACE_VSPRINTF@
-SEQ_LIBM = @SEQ_LIBM@
-SET_MAKE = @SET_MAKE@
-SHELL = @SHELL@
-SIG_ATOMIC_T_SUFFIX = @SIG_ATOMIC_T_SUFFIX@
-SIZE_T_SUFFIX = @SIZE_T_SUFFIX@
-STDBOOL_H = @STDBOOL_H@
-STDINT_H = @STDINT_H@
-STRIP = @STRIP@
-SYS_SOCKET_H = @SYS_SOCKET_H@
-SYS_STAT_H = @SYS_STAT_H@
-SYS_TIME_H = @SYS_TIME_H@
-SYS_TIME_H_DEFINES_STRUCT_TIMESPEC = @SYS_TIME_H_DEFINES_STRUCT_TIMESPEC@
-TIME_H_DEFINES_STRUCT_TIMESPEC = @TIME_H_DEFINES_STRUCT_TIMESPEC@
-U = @U@
-USE_NLS = @USE_NLS@
-VERSION = @VERSION@
-WCHAR_H = @WCHAR_H@
-WCHAR_T_SUFFIX = @WCHAR_T_SUFFIX@
-WCTYPE_H = @WCTYPE_H@
-WINT_T_SUFFIX = @WINT_T_SUFFIX@
-XGETTEXT = @XGETTEXT@
-XGETTEXT_015 = @XGETTEXT_015@
-YACC = @YACC@
-YFLAGS = @YFLAGS@
-abs_builddir = @abs_builddir@
-abs_srcdir = @abs_srcdir@
-abs_top_builddir = @abs_top_builddir@
-abs_top_srcdir = @abs_top_srcdir@
-ac_ct_CC = @ac_ct_CC@
-am__include = @am__include@
-am__leading_dot = @am__leading_dot@
-am__quote = @am__quote@
-am__tar = @am__tar@
-am__untar = @am__untar@
-bindir = @bindir@
-build = @build@
-build_alias = @build_alias@
-build_cpu = @build_cpu@
-build_os = @build_os@
-build_vendor = @build_vendor@
-builddir = @builddir@
-datadir = @datadir@
-datarootdir = @datarootdir@
-docdir = @docdir@
-dvidir = @dvidir@
-exec_prefix = @exec_prefix@
-gl_LIBOBJS = @gl_LIBOBJS@
-gl_LTLIBOBJS = @gl_LTLIBOBJS@
-host = @host@
-host_alias = @host_alias@
-host_cpu = @host_cpu@
-host_os = @host_os@
-host_vendor = @host_vendor@
-htmldir = @htmldir@
-includedir = @includedir@
-infodir = @infodir@
-install_sh = @install_sh@
-libdir = @libdir@
-libexecdir = @libexecdir@
-localedir = @localedir@
-localstatedir = @localstatedir@
-mandir = @mandir@
-mkdir_p = @mkdir_p@
-oldincludedir = @oldincludedir@
-pdfdir = @pdfdir@
-prefix = @prefix@
-program_transform_name = @program_transform_name@
-psdir = @psdir@
-sbindir = @sbindir@
-sharedstatedir = @sharedstatedir@
-srcdir = @srcdir@
-sysconfdir = @sysconfdir@
-target_alias = @target_alias@
-top_builddir = @top_builddir@
-top_srcdir = @top_srcdir@
-EXTRA_DIST = $(TESTS)
-TESTS_ENVIRONMENT = \
- top_srcdir=$(top_srcdir) \
- srcdir=$(srcdir) \
- PERL="$(PERL)" \
- CU_TEST_NAME=`basename $(abs_srcdir)`,$$tst \
- PATH="$(VG_PATH_PREFIX)`pwd`/../../src$(PATH_SEPARATOR)$$PATH" \
- PROG=md5sum
-
-TESTS = basic-1 newline-1
-all: all-am
-
-.SUFFIXES:
-$(srcdir)/Makefile.in: $(srcdir)/Makefile.am $(am__configure_deps)
- @for dep in $?; do \
- case '$(am__configure_deps)' in \
- *$$dep*) \
- cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh \
- && exit 0; \
- exit 1;; \
- esac; \
- done; \
- echo ' cd $(top_srcdir) && $(AUTOMAKE) --gnu tests/md5sum/Makefile'; \
- cd $(top_srcdir) && \
- $(AUTOMAKE) --gnu tests/md5sum/Makefile
-.PRECIOUS: Makefile
-Makefile: $(srcdir)/Makefile.in $(top_builddir)/config.status
- @case '$?' in \
- *config.status*) \
- cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh;; \
- *) \
- echo ' cd $(top_builddir) && $(SHELL) ./config.status $(subdir)/$@ $(am__depfiles_maybe)'; \
- cd $(top_builddir) && $(SHELL) ./config.status $(subdir)/$@ $(am__depfiles_maybe);; \
- esac;
-
-$(top_builddir)/config.status: $(top_srcdir)/configure $(CONFIG_STATUS_DEPENDENCIES)
- cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh
-
-$(top_srcdir)/configure: $(am__configure_deps)
- cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh
-$(ACLOCAL_M4): $(am__aclocal_m4_deps)
- cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh
-tags: TAGS
-TAGS:
-
-ctags: CTAGS
-CTAGS:
-
-
-check-TESTS: $(TESTS)
- @failed=0; all=0; xfail=0; xpass=0; skip=0; ws='[ ]'; \
- srcdir=$(srcdir); export srcdir; \
- list=' $(TESTS) '; \
- if test -n "$$list"; then \
- for tst in $$list; do \
- if test -f ./$$tst; then dir=./; \
- elif test -f $$tst; then dir=; \
- else dir="$(srcdir)/"; fi; \
- if $(TESTS_ENVIRONMENT) $${dir}$$tst; then \
- all=`expr $$all + 1`; \
- case " $(XFAIL_TESTS) " in \
- *$$ws$$tst$$ws*) \
- xpass=`expr $$xpass + 1`; \
- failed=`expr $$failed + 1`; \
- echo "XPASS: $$tst"; \
- ;; \
- *) \
- echo "PASS: $$tst"; \
- ;; \
- esac; \
- elif test $$? -ne 77; then \
- all=`expr $$all + 1`; \
- case " $(XFAIL_TESTS) " in \
- *$$ws$$tst$$ws*) \
- xfail=`expr $$xfail + 1`; \
- echo "XFAIL: $$tst"; \
- ;; \
- *) \
- failed=`expr $$failed + 1`; \
- echo "FAIL: $$tst"; \
- ;; \
- esac; \
- else \
- skip=`expr $$skip + 1`; \
- echo "SKIP: $$tst"; \
- fi; \
- done; \
- if test "$$failed" -eq 0; then \
- if test "$$xfail" -eq 0; then \
- banner="All $$all tests passed"; \
- else \
- banner="All $$all tests behaved as expected ($$xfail expected failures)"; \
- fi; \
- else \
- if test "$$xpass" -eq 0; then \
- banner="$$failed of $$all tests failed"; \
- else \
- banner="$$failed of $$all tests did not behave as expected ($$xpass unexpected passes)"; \
- fi; \
- fi; \
- dashes="$$banner"; \
- skipped=""; \
- if test "$$skip" -ne 0; then \
- skipped="($$skip tests were not run)"; \
- test `echo "$$skipped" | wc -c` -le `echo "$$banner" | wc -c` || \
- dashes="$$skipped"; \
- fi; \
- report=""; \
- if test "$$failed" -ne 0 && test -n "$(PACKAGE_BUGREPORT)"; then \
- report="Please report to $(PACKAGE_BUGREPORT)"; \
- test `echo "$$report" | wc -c` -le `echo "$$banner" | wc -c` || \
- dashes="$$report"; \
- fi; \
- dashes=`echo "$$dashes" | sed s/./=/g`; \
- echo "$$dashes"; \
- echo "$$banner"; \
- test -z "$$skipped" || echo "$$skipped"; \
- test -z "$$report" || echo "$$report"; \
- echo "$$dashes"; \
- test "$$failed" -eq 0; \
- else :; fi
-
-distdir: $(DISTFILES)
- @srcdirstrip=`echo "$(srcdir)" | sed 's/[].[^$$\\*]/\\\\&/g'`; \
- topsrcdirstrip=`echo "$(top_srcdir)" | sed 's/[].[^$$\\*]/\\\\&/g'`; \
- list='$(DISTFILES)'; \
- dist_files=`for file in $$list; do echo $$file; done | \
- sed -e "s|^$$srcdirstrip/||;t" \
- -e "s|^$$topsrcdirstrip/|$(top_builddir)/|;t"`; \
- case $$dist_files in \
- */*) $(MKDIR_P) `echo "$$dist_files" | \
- sed '/\//!d;s|^|$(distdir)/|;s,/[^/]*$$,,' | \
- sort -u` ;; \
- esac; \
- for file in $$dist_files; do \
- if test -f $$file || test -d $$file; then d=.; else d=$(srcdir); fi; \
- if test -d $$d/$$file; then \
- dir=`echo "/$$file" | sed -e 's,/[^/]*$$,,'`; \
- if test -d $(srcdir)/$$file && test $$d != $(srcdir); then \
- cp -pR $(srcdir)/$$file $(distdir)$$dir || exit 1; \
- fi; \
- cp -pR $$d/$$file $(distdir)$$dir || exit 1; \
- else \
- test -f $(distdir)/$$file \
- || cp -p $$d/$$file $(distdir)/$$file \
- || exit 1; \
- fi; \
- done
-check-am: all-am
- $(MAKE) $(AM_MAKEFLAGS) check-TESTS
-check: check-am
-all-am: Makefile
-installdirs:
-install: install-am
-install-exec: install-exec-am
-install-data: install-data-am
-uninstall: uninstall-am
-
-install-am: all-am
- @$(MAKE) $(AM_MAKEFLAGS) install-exec-am install-data-am
-
-installcheck: installcheck-am
-install-strip:
- $(MAKE) $(AM_MAKEFLAGS) INSTALL_PROGRAM="$(INSTALL_STRIP_PROGRAM)" \
- install_sh_PROGRAM="$(INSTALL_STRIP_PROGRAM)" INSTALL_STRIP_FLAG=-s \
- `test -z '$(STRIP)' || \
- echo "INSTALL_PROGRAM_ENV=STRIPPROG='$(STRIP)'"` install
-mostlyclean-generic:
-
-clean-generic:
-
-distclean-generic:
- -test -z "$(CONFIG_CLEAN_FILES)" || rm -f $(CONFIG_CLEAN_FILES)
-
-maintainer-clean-generic:
- @echo "This command is intended for maintainers to use"
- @echo "it deletes files that may require special tools to rebuild."
-clean: clean-am
-
-clean-am: clean-generic mostlyclean-am
-
-distclean: distclean-am
- -rm -f Makefile
-distclean-am: clean-am distclean-generic
-
-dvi: dvi-am
-
-dvi-am:
-
-html: html-am
-
-info: info-am
-
-info-am:
-
-install-data-am:
-
-install-dvi: install-dvi-am
-
-install-exec-am:
-
-install-html: install-html-am
-
-install-info: install-info-am
-
-install-man:
-
-install-pdf: install-pdf-am
-
-install-ps: install-ps-am
-
-installcheck-am:
-
-maintainer-clean: maintainer-clean-am
- -rm -f Makefile
-maintainer-clean-am: distclean-am maintainer-clean-generic
-
-mostlyclean: mostlyclean-am
-
-mostlyclean-am: mostlyclean-generic
-
-pdf: pdf-am
-
-pdf-am:
-
-ps: ps-am
-
-ps-am:
-
-uninstall-am:
-
-.MAKE: install-am install-strip
-
-.PHONY: all all-am check check-TESTS check-am clean clean-generic \
- distclean distclean-generic distdir dvi dvi-am html html-am \
- info info-am install install-am install-data install-data-am \
- install-dvi install-dvi-am install-exec install-exec-am \
- install-html install-html-am install-info install-info-am \
- install-man install-pdf install-pdf-am install-ps \
- install-ps-am install-strip installcheck installcheck-am \
- installdirs maintainer-clean maintainer-clean-generic \
- mostlyclean mostlyclean-generic pdf pdf-am ps ps-am uninstall \
- uninstall-am
-
-# Tell versions [3.59,3.63) of GNU make to not export all variables.
-# Otherwise a system limit (for SysV at least) may be exceeded.
-.NOEXPORT:
diff --git a/tests/md5sum/basic-1 b/tests/md5sum/basic-1
deleted file mode 100755
index 5f02af2..0000000
--- a/tests/md5sum/basic-1
+++ /dev/null
@@ -1,89 +0,0 @@
-#!/bin/sh
-# Basic tests for "md5sum".
-
-# Copyright (C) 1998, 1999, 2003, 2005 Free Software Foundation, Inc.
-
-# This program is free software; you can redistribute it and/or modify
-# it under the terms of the GNU General Public License as published by
-# the Free Software Foundation; either version 2 of the License, or
-# (at your option) any later version.
-
-# This program is distributed in the hope that it will be useful,
-# but WITHOUT ANY WARRANTY; without even the implied warranty of
-# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
-# GNU General Public License for more details.
-
-# You should have received a copy of the GNU General Public License
-# along with this program; if not, write to the Free Software
-# Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA
-# 02110-1301, USA.
-
-: ${PERL=perl}
-: ${srcdir=.}
-
-$PERL -e 1 > /dev/null 2>&1 || {
- echo 1>&2 "$0: configure didn't find a usable version of Perl," \
- "so can't run this test"
- exit 77
-}
-
-exec $PERL -w -I$srcdir/.. -MCoreutils -- - <<\EOF
-require 5.003;
-use strict;
-
-(my $program_name = $0) =~ s|.*/||;
-
-# Turn off localisation of executable's ouput.
-@ENV{qw(LANGUAGE LANG LC_ALL)} = ('C') x 3;
-
-my $degenerate = "d41d8cd98f00b204e9800998ecf8427e";
-
-my @Tests =
- (
- ['1', {IN=> {f=> ''}}, {OUT=>"$degenerate f\n"}],
- ['2', {IN=> {f=> 'a'}}, {OUT=>"0cc175b9c0f1b6a831c399e269772661 f\n"}],
- ['3', {IN=> {f=> 'abc'}}, {OUT=>"900150983cd24fb0d6963f7d28e17f72 f\n"}],
- ['4', {IN=> {f=> 'message digest'}},
- {OUT=>"f96b697d7cb7938d525a2f31aaf161d0 f\n"}],
- ['5', {IN=> {f=> 'abcdefghijklmnopqrstuvwxyz'}},
- {OUT=>"c3fcd3d76192e4007dfb496cca67e13b f\n"}],
- ['6', {IN=> {f=> join ('', 'A'..'Z', 'a'..'z', '0'..'9')}},
- {OUT=>"d174ab98d277d9f5a5611c2c9f419d9f f\n"}],
- ['7', {IN=> {f=> '1234567890' x 8}},
- {OUT=>"57edf4a22be3c955ac49da2e2107b67a f\n"}],
- ['backslash', {IN=> {".\\foo"=> ''}},
- {OUT=>"\\$degenerate .\\\\foo\n"}],
- ['check-1', '--check', {AUX=> {f=> ''}},
- {IN=> {'f.md5' => "$degenerate f\n"}},
- {OUT=>"f: OK\n"}],
- ['check-2', '--check', '--status', {IN=>{'f.md5' => "$degenerate f\n"}},
- {AUX=> {f=> 'foo'}}, {EXIT=> 1}],
- # The sha1sum and md5sum drivers share a lot of code.
- # Ensure that md5sum does *not* share the part that makes
- # sha1sum accept BSD format.
- ['check-bsd', '--check', {IN=> {'f.sha1' => "SHA1 (f) = $degenerate\n"}},
- {AUX=> {f=> ''}},
- {ERR=>"md5sum: f.sha1: no properly formatted "
- . "MD5 checksum lines found\n"},
- {EXIT=> 1}],
- ['check-bsd2', '--check', {IN=> {'f.md5' => "MD5 (f) = $degenerate\n"}},
- {AUX=> {f=> ''}}, {OUT=>"f: OK\n"}],
- ['check-bsd3', '--check', '--status',
- {IN=> {'f.md5' => "MD5 (f) = $degenerate\n"}},
- {AUX=> {f=> 'bar'}}, {EXIT=> 1}],
- );
-
-# Insert the `--text' argument for each test.
-my $t;
-foreach $t (@Tests)
- {
- splice @$t, 1, 0, '--text' unless @$t[1] =~ /--check/;
- }
-
-my $save_temps = $ENV{DEBUG};
-my $verbose = $ENV{VERBOSE};
-
-my $prog = $ENV{PROG} || die "$0: \$PROG not specified in environment\n";
-my $fail = run_tests ($program_name, $prog, \@Tests, $save_temps, $verbose);
-exit $fail;
-EOF
diff --git a/tests/md5sum/newline-1 b/tests/md5sum/newline-1
deleted file mode 100755
index 5a4506f..0000000
--- a/tests/md5sum/newline-1
+++ /dev/null
@@ -1,69 +0,0 @@
-#!/bin/sh
-# Newline tests for "md5sum".
-
-# Copyright (C) 1999, 2000, 2003, 2005 Free Software Foundation, Inc.
-
-# This program is free software; you can redistribute it and/or modify
-# it under the terms of the GNU General Public License as published by
-# the Free Software Foundation; either version 2 of the License, or
-# (at your option) any later version.
-
-# This program is distributed in the hope that it will be useful,
-# but WITHOUT ANY WARRANTY; without even the implied warranty of
-# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
-# GNU General Public License for more details.
-
-# You should have received a copy of the GNU General Public License
-# along with this program; if not, write to the Free Software
-# Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA
-# 02110-1301, USA.
-
-: ${PERL=perl}
-: ${srcdir=.}
-
-$PERL -e 1 > /dev/null 2>&1 || {
- echo 1>&2 "$0: configure didn't find a usable version of Perl," \
- "so can't run this test"
- exit 77
-}
-
-# See if we can create a filename that contains a newline.
-# Be careful to do it in a subshell so that we can redirect the
-# error output if it fails.
-(> 'a
-b') 2> /dev/null \
- && filename_may_contain_newline=yes \
- || filename_may_contain_newline=no
-rm -f 'a
-b'
-
-if test $filename_may_contain_newline = no; then
- echo 1>&2 "$0: can't create newline-containing file name," \
- "so can't run this test"
- exit 77
-fi
-
-exec $PERL -w -I$srcdir/.. -MCoreutils -- - <<\EOF
-require 5.003;
-use strict;
-
-(my $program_name = $0) =~ s|.*/||;
-
-# Turn off localisation of executable's ouput.
-@ENV{qw(LANGUAGE LANG LC_ALL)} = ('C') x 3;
-
-my $degenerate = "d41d8cd98f00b204e9800998ecf8427e";
-my $t = '--text';
-
-my @Tests =
- (
- ['newline', $t, {IN=> {"a\nb"=> ''}}, {OUT=>"\\$degenerate a\\nb\n"}],
- );
-
-my $save_temps = $ENV{DEBUG};
-my $verbose = $ENV{VERBOSE};
-
-my $prog = $ENV{PROG} || die "$0: \$PROG not specified in environment\n";
-my $fail = run_tests ($program_name, $prog, \@Tests, $save_temps, $verbose);
-exit $fail;
-EOF
diff --git a/tests/misc/Makefile.am b/tests/misc/Makefile.am
deleted file mode 100644
index 4d6a754..0000000
--- a/tests/misc/Makefile.am
+++ /dev/null
@@ -1,88 +0,0 @@
-# Make miscellaneous coreutils tests. -*-Makefile-*-
-
-# Copyright (C) 200-2007 Free Software Foundation, Inc.
-
-# This program is free software; you can redistribute it and/or modify
-# it under the terms of the GNU General Public License as published by
-# the Free Software Foundation; either version 2 of the License, or
-# (at your option) any later version.
-
-# This program is distributed in the hope that it will be useful,
-# but WITHOUT ANY WARRANTY; without even the implied warranty of
-# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
-# GNU General Public License for more details.
-
-# You should have received a copy of the GNU General Public License
-# along with this program; if not, write to the Free Software
-# Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA
-# 02110-1301, USA.
-
-EXTRA_DIST = $(TESTS)
-
-TESTS_ENVIRONMENT = \
- top_srcdir=$(top_srcdir) \
- abs_top_builddir=$(abs_top_builddir) \
- srcdir=$(srcdir) \
- PACKAGE_VERSION=$(PACKAGE_VERSION) \
- PERL="$(PERL)" \
- BUILD_SRC_DIR="`pwd`/../../src" \
- CU_TEST_NAME=`basename $(abs_srcdir)`,$$tst \
- PATH="$(VG_PATH_PREFIX)`pwd`/../../src$(PATH_SEPARATOR)$$PATH" \
- CONFIG_HEADER=$(CONFIG_HEADER) \
- REPLACE_GETCWD=$(REPLACE_GETCWD) \
- host_os=$(host_os) \
- PROG=`../../src/basename -- "$$tst"`
-
-# Do not choose a name that is a shell keyword like 'if', or a
-# commonly-used utility like 'cat' or 'test', as the name of a test.
-# Otherwise, VPATH builds will fail on hosts like Solaris, since they
-# will expand 'if test ...' to 'if .../test ...', and the '.../test'
-# will execute the test script rather than the standard utility.
-
-TESTS = \
- pr \
- df-P \
- pwd-unreadable-parent \
- cut \
- wc-files0-from \
- wc-files0 \
- cat-proc \
- base64 \
- basename \
- close-stdout \
- csplit \
- date \
- date-sec \
- df \
- dirname \
- expand \
- false-status \
- fold \
- head-c \
- head-elide-tail \
- head-pos \
- mknod \
- nice \
- nl \
- nohup \
- paste-no-nl \
- pathchk1 \
- printf \
- printf-hex \
- pwd-long \
- sha224sum \
- sha256sum \
- sha384sum \
- sha512sum \
- shuf \
- sort-compress \
- sort-merge \
- sort-rand \
- split-a \
- split-fail \
- split-l \
- stat-fmt \
- stat-printf \
- tac-continue \
- test-diag \
- tty-eof
diff --git a/tests/misc/Makefile.in b/tests/misc/Makefile.in
deleted file mode 100644
index 357d695..0000000
--- a/tests/misc/Makefile.in
+++ /dev/null
@@ -1,798 +0,0 @@
-# Makefile.in generated by automake 1.10 from Makefile.am.
-# @configure_input@
-
-# Copyright (C) 1994, 1995, 1996, 1997, 1998, 1999, 2000, 2001, 2002,
-# 2003, 2004, 2005, 2006 Free Software Foundation, Inc.
-# This Makefile.in is free software; the Free Software Foundation
-# gives unlimited permission to copy and/or distribute it,
-# with or without modifications, as long as this notice is preserved.
-
-# This program is distributed in the hope that it will be useful,
-# but WITHOUT ANY WARRANTY, to the extent permitted by law; without
-# even the implied warranty of MERCHANTABILITY or FITNESS FOR A
-# PARTICULAR PURPOSE.
-
-@SET_MAKE@
-
-# Make miscellaneous coreutils tests. -*-Makefile-*-
-
-# Copyright (C) 200-2007 Free Software Foundation, Inc.
-
-# This program is free software; you can redistribute it and/or modify
-# it under the terms of the GNU General Public License as published by
-# the Free Software Foundation; either version 2 of the License, or
-# (at your option) any later version.
-
-# This program is distributed in the hope that it will be useful,
-# but WITHOUT ANY WARRANTY; without even the implied warranty of
-# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
-# GNU General Public License for more details.
-
-# You should have received a copy of the GNU General Public License
-# along with this program; if not, write to the Free Software
-# Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA
-# 02110-1301, USA.
-VPATH = @srcdir@
-pkgdatadir = $(datadir)/@PACKAGE@
-pkglibdir = $(libdir)/@PACKAGE@
-pkgincludedir = $(includedir)/@PACKAGE@
-am__cd = CDPATH="$${ZSH_VERSION+.}$(PATH_SEPARATOR)" && cd
-install_sh_DATA = $(install_sh) -c -m 644
-install_sh_PROGRAM = $(install_sh) -c
-install_sh_SCRIPT = $(install_sh) -c
-INSTALL_HEADER = $(INSTALL_DATA)
-transform = $(program_transform_name)
-NORMAL_INSTALL = :
-PRE_INSTALL = :
-POST_INSTALL = :
-NORMAL_UNINSTALL = :
-PRE_UNINSTALL = :
-POST_UNINSTALL = :
-build_triplet = @build@
-host_triplet = @host@
-subdir = tests/misc
-DIST_COMMON = $(srcdir)/Makefile.am $(srcdir)/Makefile.in
-ACLOCAL_M4 = $(top_srcdir)/aclocal.m4
-am__aclocal_m4_deps = $(top_srcdir)/m4/absolute-header.m4 \
- $(top_srcdir)/m4/acl.m4 $(top_srcdir)/m4/alloca.m4 \
- $(top_srcdir)/m4/allocsa.m4 $(top_srcdir)/m4/argmatch.m4 \
- $(top_srcdir)/m4/arpa_inet_h.m4 $(top_srcdir)/m4/assert.m4 \
- $(top_srcdir)/m4/atexit.m4 $(top_srcdir)/m4/autobuild.m4 \
- $(top_srcdir)/m4/backupfile.m4 $(top_srcdir)/m4/base64.m4 \
- $(top_srcdir)/m4/bison.m4 $(top_srcdir)/m4/boottime.m4 \
- $(top_srcdir)/m4/c-strtod.m4 $(top_srcdir)/m4/calloc.m4 \
- $(top_srcdir)/m4/canon-host.m4 \
- $(top_srcdir)/m4/canonicalize.m4 \
- $(top_srcdir)/m4/chdir-long.m4 $(top_srcdir)/m4/check-decl.m4 \
- $(top_srcdir)/m4/chown.m4 $(top_srcdir)/m4/clock_time.m4 \
- $(top_srcdir)/m4/cloexec.m4 $(top_srcdir)/m4/close-stream.m4 \
- $(top_srcdir)/m4/closeout.m4 $(top_srcdir)/m4/codeset.m4 \
- $(top_srcdir)/m4/config-h.m4 $(top_srcdir)/m4/cycle-check.m4 \
- $(top_srcdir)/m4/d-ino.m4 $(top_srcdir)/m4/d-type.m4 \
- $(top_srcdir)/m4/dirfd.m4 $(top_srcdir)/m4/dirname.m4 \
- $(top_srcdir)/m4/dos.m4 $(top_srcdir)/m4/double-slash-root.m4 \
- $(top_srcdir)/m4/dup2.m4 $(top_srcdir)/m4/eealloc.m4 \
- $(top_srcdir)/m4/eoverflow.m4 $(top_srcdir)/m4/error.m4 \
- $(top_srcdir)/m4/euidaccess-stat.m4 \
- $(top_srcdir)/m4/euidaccess.m4 $(top_srcdir)/m4/exclude.m4 \
- $(top_srcdir)/m4/exitfail.m4 $(top_srcdir)/m4/extensions.m4 \
- $(top_srcdir)/m4/fchdir.m4 $(top_srcdir)/m4/fcntl-safer.m4 \
- $(top_srcdir)/m4/fcntl_h.m4 $(top_srcdir)/m4/fd-reopen.m4 \
- $(top_srcdir)/m4/file-type.m4 $(top_srcdir)/m4/fileblocks.m4 \
- $(top_srcdir)/m4/filemode.m4 $(top_srcdir)/m4/filenamecat.m4 \
- $(top_srcdir)/m4/flexmember.m4 $(top_srcdir)/m4/fnmatch.m4 \
- $(top_srcdir)/m4/fpending.m4 $(top_srcdir)/m4/fprintftime.m4 \
- $(top_srcdir)/m4/free.m4 $(top_srcdir)/m4/fstypename.m4 \
- $(top_srcdir)/m4/fsusage.m4 $(top_srcdir)/m4/ftruncate.m4 \
- $(top_srcdir)/m4/fts.m4 $(top_srcdir)/m4/getaddrinfo.m4 \
- $(top_srcdir)/m4/getcwd-abort-bug.m4 \
- $(top_srcdir)/m4/getcwd-path-max.m4 $(top_srcdir)/m4/getcwd.m4 \
- $(top_srcdir)/m4/getdate.m4 $(top_srcdir)/m4/getdelim.m4 \
- $(top_srcdir)/m4/getgroups.m4 $(top_srcdir)/m4/gethostname.m4 \
- $(top_srcdir)/m4/gethrxtime.m4 $(top_srcdir)/m4/getline.m4 \
- $(top_srcdir)/m4/getloadavg.m4 $(top_srcdir)/m4/getndelim2.m4 \
- $(top_srcdir)/m4/getopt.m4 $(top_srcdir)/m4/getpagesize.m4 \
- $(top_srcdir)/m4/getpass.m4 $(top_srcdir)/m4/gettext.m4 \
- $(top_srcdir)/m4/gettime.m4 $(top_srcdir)/m4/gettimeofday.m4 \
- $(top_srcdir)/m4/getugroups.m4 \
- $(top_srcdir)/m4/getusershell.m4 $(top_srcdir)/m4/glibc21.m4 \
- $(top_srcdir)/m4/gnulib-common.m4 \
- $(top_srcdir)/m4/gnulib-comp.m4 \
- $(top_srcdir)/m4/group-member.m4 \
- $(top_srcdir)/m4/hard-locale.m4 $(top_srcdir)/m4/hash.m4 \
- $(top_srcdir)/m4/host-os.m4 $(top_srcdir)/m4/human.m4 \
- $(top_srcdir)/m4/i-ring.m4 $(top_srcdir)/m4/iconv.m4 \
- $(top_srcdir)/m4/idcache.m4 $(top_srcdir)/m4/inet_ntop.m4 \
- $(top_srcdir)/m4/inline.m4 $(top_srcdir)/m4/intmax_t.m4 \
- $(top_srcdir)/m4/inttostr.m4 $(top_srcdir)/m4/inttypes-pri.m4 \
- $(top_srcdir)/m4/inttypes.m4 $(top_srcdir)/m4/inttypes_h.m4 \
- $(top_srcdir)/m4/isapipe.m4 $(top_srcdir)/m4/jm-macros.m4 \
- $(top_srcdir)/m4/jm-winsz1.m4 $(top_srcdir)/m4/jm-winsz2.m4 \
- $(top_srcdir)/m4/lchmod.m4 $(top_srcdir)/m4/lchown.m4 \
- $(top_srcdir)/m4/lib-check.m4 $(top_srcdir)/m4/lib-ignore.m4 \
- $(top_srcdir)/m4/lib-ld.m4 $(top_srcdir)/m4/lib-link.m4 \
- $(top_srcdir)/m4/lib-prefix.m4 $(top_srcdir)/m4/link-follow.m4 \
- $(top_srcdir)/m4/localcharset.m4 \
- $(top_srcdir)/m4/long-options.m4 \
- $(top_srcdir)/m4/longdouble.m4 $(top_srcdir)/m4/longlong.m4 \
- $(top_srcdir)/m4/ls-mntd-fs.m4 $(top_srcdir)/m4/lstat.m4 \
- $(top_srcdir)/m4/mbchar.m4 $(top_srcdir)/m4/mbiter.m4 \
- $(top_srcdir)/m4/mbrtowc.m4 $(top_srcdir)/m4/mbscasecmp.m4 \
- $(top_srcdir)/m4/mbstate_t.m4 $(top_srcdir)/m4/mbswidth.m4 \
- $(top_srcdir)/m4/md5.m4 $(top_srcdir)/m4/memcasecmp.m4 \
- $(top_srcdir)/m4/memchr.m4 $(top_srcdir)/m4/memcmp.m4 \
- $(top_srcdir)/m4/memcoll.m4 $(top_srcdir)/m4/memcpy.m4 \
- $(top_srcdir)/m4/memmove.m4 $(top_srcdir)/m4/mempcpy.m4 \
- $(top_srcdir)/m4/memrchr.m4 $(top_srcdir)/m4/memset.m4 \
- $(top_srcdir)/m4/memxfrm.m4 $(top_srcdir)/m4/mkancesdirs.m4 \
- $(top_srcdir)/m4/mkdir-p.m4 $(top_srcdir)/m4/mkdir-slash.m4 \
- $(top_srcdir)/m4/mkstemp.m4 $(top_srcdir)/m4/mktime.m4 \
- $(top_srcdir)/m4/modechange.m4 $(top_srcdir)/m4/mountlist.m4 \
- $(top_srcdir)/m4/mpsort.m4 $(top_srcdir)/m4/nanosleep.m4 \
- $(top_srcdir)/m4/netinet_in_h.m4 $(top_srcdir)/m4/nls.m4 \
- $(top_srcdir)/m4/openat.m4 $(top_srcdir)/m4/pathmax.m4 \
- $(top_srcdir)/m4/perl.m4 $(top_srcdir)/m4/physmem.m4 \
- $(top_srcdir)/m4/po.m4 $(top_srcdir)/m4/posixtm.m4 \
- $(top_srcdir)/m4/posixver.m4 $(top_srcdir)/m4/prereq.m4 \
- $(top_srcdir)/m4/progtest.m4 $(top_srcdir)/m4/putenv.m4 \
- $(top_srcdir)/m4/quote.m4 $(top_srcdir)/m4/quotearg.m4 \
- $(top_srcdir)/m4/randint.m4 $(top_srcdir)/m4/randperm.m4 \
- $(top_srcdir)/m4/randread.m4 $(top_srcdir)/m4/readlink.m4 \
- $(top_srcdir)/m4/readtokens.m4 $(top_srcdir)/m4/readutmp.m4 \
- $(top_srcdir)/m4/regex.m4 \
- $(top_srcdir)/m4/rename-dest-slash.m4 \
- $(top_srcdir)/m4/rename.m4 $(top_srcdir)/m4/rmdir-errno.m4 \
- $(top_srcdir)/m4/rmdir.m4 $(top_srcdir)/m4/root-dev-ino.m4 \
- $(top_srcdir)/m4/rpmatch.m4 $(top_srcdir)/m4/safe-read.m4 \
- $(top_srcdir)/m4/safe-write.m4 $(top_srcdir)/m4/same.m4 \
- $(top_srcdir)/m4/save-cwd.m4 $(top_srcdir)/m4/savedir.m4 \
- $(top_srcdir)/m4/savewd.m4 $(top_srcdir)/m4/setenv.m4 \
- $(top_srcdir)/m4/settime.m4 $(top_srcdir)/m4/sha1.m4 \
- $(top_srcdir)/m4/sha256.m4 $(top_srcdir)/m4/sha512.m4 \
- $(top_srcdir)/m4/sig2str.m4 $(top_srcdir)/m4/snprintf.m4 \
- $(top_srcdir)/m4/socklen.m4 $(top_srcdir)/m4/sockpfaf.m4 \
- $(top_srcdir)/m4/ssize_t.m4 $(top_srcdir)/m4/st_dm_mode.m4 \
- $(top_srcdir)/m4/stat-prog.m4 $(top_srcdir)/m4/stat-time.m4 \
- $(top_srcdir)/m4/stdarg.m4 $(top_srcdir)/m4/stdbool.m4 \
- $(top_srcdir)/m4/stdint.m4 $(top_srcdir)/m4/stdint_h.m4 \
- $(top_srcdir)/m4/stdio-safer.m4 $(top_srcdir)/m4/stdio_h.m4 \
- $(top_srcdir)/m4/stdlib-safer.m4 $(top_srcdir)/m4/stdlib_h.m4 \
- $(top_srcdir)/m4/stpcpy.m4 $(top_srcdir)/m4/strcspn.m4 \
- $(top_srcdir)/m4/strdup.m4 $(top_srcdir)/m4/strftime.m4 \
- $(top_srcdir)/m4/string_h.m4 $(top_srcdir)/m4/strndup.m4 \
- $(top_srcdir)/m4/strnlen.m4 $(top_srcdir)/m4/strnumcmp.m4 \
- $(top_srcdir)/m4/strpbrk.m4 $(top_srcdir)/m4/strtod.m4 \
- $(top_srcdir)/m4/strtoimax.m4 $(top_srcdir)/m4/strtol.m4 \
- $(top_srcdir)/m4/strtoll.m4 $(top_srcdir)/m4/strtoul.m4 \
- $(top_srcdir)/m4/strtoull.m4 $(top_srcdir)/m4/strtoumax.m4 \
- $(top_srcdir)/m4/strverscmp.m4 \
- $(top_srcdir)/m4/sys_socket_h.m4 \
- $(top_srcdir)/m4/sys_stat_h.m4 $(top_srcdir)/m4/sys_time_h.m4 \
- $(top_srcdir)/m4/tempname.m4 $(top_srcdir)/m4/time_h.m4 \
- $(top_srcdir)/m4/time_r.m4 $(top_srcdir)/m4/timespec.m4 \
- $(top_srcdir)/m4/tm_gmtoff.m4 $(top_srcdir)/m4/tzset.m4 \
- $(top_srcdir)/m4/unicodeio.m4 $(top_srcdir)/m4/unistd-safer.m4 \
- $(top_srcdir)/m4/unistd_h.m4 $(top_srcdir)/m4/unlink-busy.m4 \
- $(top_srcdir)/m4/unlinkdir.m4 $(top_srcdir)/m4/unlocked-io.m4 \
- $(top_srcdir)/m4/uptime.m4 $(top_srcdir)/m4/userspec.m4 \
- $(top_srcdir)/m4/utimbuf.m4 $(top_srcdir)/m4/utime.m4 \
- $(top_srcdir)/m4/utimecmp.m4 $(top_srcdir)/m4/utimens.m4 \
- $(top_srcdir)/m4/utimes-null.m4 $(top_srcdir)/m4/utimes.m4 \
- $(top_srcdir)/m4/vasnprintf.m4 $(top_srcdir)/m4/vasprintf.m4 \
- $(top_srcdir)/m4/wchar.m4 $(top_srcdir)/m4/wchar_t.m4 \
- $(top_srcdir)/m4/wctype.m4 $(top_srcdir)/m4/wcwidth.m4 \
- $(top_srcdir)/m4/wint_t.m4 $(top_srcdir)/m4/xalloc.m4 \
- $(top_srcdir)/m4/xfts.m4 $(top_srcdir)/m4/xgetcwd.m4 \
- $(top_srcdir)/m4/xnanosleep.m4 $(top_srcdir)/m4/xstrndup.m4 \
- $(top_srcdir)/m4/xstrtod.m4 $(top_srcdir)/m4/xstrtol.m4 \
- $(top_srcdir)/m4/yesno.m4 $(top_srcdir)/configure.ac
-am__configure_deps = $(am__aclocal_m4_deps) $(CONFIGURE_DEPENDENCIES) \
- $(ACLOCAL_M4)
-mkinstalldirs = $(install_sh) -d
-CONFIG_HEADER = $(top_builddir)/lib/config.h
-CONFIG_CLEAN_FILES =
-SOURCES =
-DIST_SOURCES =
-DISTFILES = $(DIST_COMMON) $(DIST_SOURCES) $(TEXINFOS) $(EXTRA_DIST)
-ABSOLUTE_DIRENT_H = @ABSOLUTE_DIRENT_H@
-ABSOLUTE_FCNTL_H = @ABSOLUTE_FCNTL_H@
-ABSOLUTE_INTTYPES_H = @ABSOLUTE_INTTYPES_H@
-ABSOLUTE_NETINET_IN_H = @ABSOLUTE_NETINET_IN_H@
-ABSOLUTE_STDINT_H = @ABSOLUTE_STDINT_H@
-ABSOLUTE_STDIO_H = @ABSOLUTE_STDIO_H@
-ABSOLUTE_STDLIB_H = @ABSOLUTE_STDLIB_H@
-ABSOLUTE_STRING_H = @ABSOLUTE_STRING_H@
-ABSOLUTE_SYS_SOCKET_H = @ABSOLUTE_SYS_SOCKET_H@
-ABSOLUTE_SYS_STAT_H = @ABSOLUTE_SYS_STAT_H@
-ABSOLUTE_SYS_TIME_H = @ABSOLUTE_SYS_TIME_H@
-ABSOLUTE_TIME_H = @ABSOLUTE_TIME_H@
-ABSOLUTE_UNISTD_H = @ABSOLUTE_UNISTD_H@
-ABSOLUTE_WCHAR_H = @ABSOLUTE_WCHAR_H@
-ABSOLUTE_WCTYPE_H = @ABSOLUTE_WCTYPE_H@
-ACLOCAL = @ACLOCAL@
-ALLOCA = @ALLOCA@
-ALLOCA_H = @ALLOCA_H@
-AMTAR = @AMTAR@
-ARPA_INET_H = @ARPA_INET_H@
-AUTOCONF = @AUTOCONF@
-AUTOHEADER = @AUTOHEADER@
-AUTOMAKE = @AUTOMAKE@
-AWK = @AWK@
-BITSIZEOF_PTRDIFF_T = @BITSIZEOF_PTRDIFF_T@
-BITSIZEOF_SIG_ATOMIC_T = @BITSIZEOF_SIG_ATOMIC_T@
-BITSIZEOF_SIZE_T = @BITSIZEOF_SIZE_T@
-BITSIZEOF_WCHAR_T = @BITSIZEOF_WCHAR_T@
-BITSIZEOF_WINT_T = @BITSIZEOF_WINT_T@
-CC = @CC@
-CCDEPMODE = @CCDEPMODE@
-CFLAGS = @CFLAGS@
-CPP = @CPP@
-CPPFLAGS = @CPPFLAGS@
-CYGPATH_W = @CYGPATH_W@
-DEFAULT_POSIX2_VERSION = @DEFAULT_POSIX2_VERSION@
-DEFS = @DEFS@
-DEPDIR = @DEPDIR@
-DF_PROG = @DF_PROG@
-DIRENT_H = @DIRENT_H@
-ECHO_C = @ECHO_C@
-ECHO_N = @ECHO_N@
-ECHO_T = @ECHO_T@
-EGREP = @EGREP@
-EOVERFLOW = @EOVERFLOW@
-EXEEXT = @EXEEXT@
-FCNTL_H = @FCNTL_H@
-FNMATCH_H = @FNMATCH_H@
-GETLOADAVG_LIBS = @GETLOADAVG_LIBS@
-GETOPT_H = @GETOPT_H@
-GLIBC21 = @GLIBC21@
-GMSGFMT = @GMSGFMT@
-GMSGFMT_015 = @GMSGFMT_015@
-GNULIB_CHOWN = @GNULIB_CHOWN@
-GNULIB_DUP2 = @GNULIB_DUP2@
-GNULIB_FCHDIR = @GNULIB_FCHDIR@
-GNULIB_FPRINTF_POSIX = @GNULIB_FPRINTF_POSIX@
-GNULIB_FTRUNCATE = @GNULIB_FTRUNCATE@
-GNULIB_GETCWD = @GNULIB_GETCWD@
-GNULIB_GETLOGIN_R = @GNULIB_GETLOGIN_R@
-GNULIB_GETSUBOPT = @GNULIB_GETSUBOPT@
-GNULIB_IMAXABS = @GNULIB_IMAXABS@
-GNULIB_IMAXDIV = @GNULIB_IMAXDIV@
-GNULIB_MBSCASECMP = @GNULIB_MBSCASECMP@
-GNULIB_MBSCASESTR = @GNULIB_MBSCASESTR@
-GNULIB_MBSCHR = @GNULIB_MBSCHR@
-GNULIB_MBSCSPN = @GNULIB_MBSCSPN@
-GNULIB_MBSLEN = @GNULIB_MBSLEN@
-GNULIB_MBSNCASECMP = @GNULIB_MBSNCASECMP@
-GNULIB_MBSPBRK = @GNULIB_MBSPBRK@
-GNULIB_MBSPCASECMP = @GNULIB_MBSPCASECMP@
-GNULIB_MBSRCHR = @GNULIB_MBSRCHR@
-GNULIB_MBSSEP = @GNULIB_MBSSEP@
-GNULIB_MBSSPN = @GNULIB_MBSSPN@
-GNULIB_MBSSTR = @GNULIB_MBSSTR@
-GNULIB_MBSTOK_R = @GNULIB_MBSTOK_R@
-GNULIB_MEMMEM = @GNULIB_MEMMEM@
-GNULIB_MEMPCPY = @GNULIB_MEMPCPY@
-GNULIB_MEMRCHR = @GNULIB_MEMRCHR@
-GNULIB_MKDTEMP = @GNULIB_MKDTEMP@
-GNULIB_MKSTEMP = @GNULIB_MKSTEMP@
-GNULIB_PRINTF_POSIX = @GNULIB_PRINTF_POSIX@
-GNULIB_READLINK = @GNULIB_READLINK@
-GNULIB_SNPRINTF = @GNULIB_SNPRINTF@
-GNULIB_SPRINTF_POSIX = @GNULIB_SPRINTF_POSIX@
-GNULIB_STPCPY = @GNULIB_STPCPY@
-GNULIB_STPNCPY = @GNULIB_STPNCPY@
-GNULIB_STRCASESTR = @GNULIB_STRCASESTR@
-GNULIB_STRCHRNUL = @GNULIB_STRCHRNUL@
-GNULIB_STRDUP = @GNULIB_STRDUP@
-GNULIB_STRNDUP = @GNULIB_STRNDUP@
-GNULIB_STRNLEN = @GNULIB_STRNLEN@
-GNULIB_STRPBRK = @GNULIB_STRPBRK@
-GNULIB_STRSEP = @GNULIB_STRSEP@
-GNULIB_STRTOIMAX = @GNULIB_STRTOIMAX@
-GNULIB_STRTOK_R = @GNULIB_STRTOK_R@
-GNULIB_STRTOUMAX = @GNULIB_STRTOUMAX@
-GNULIB_VFPRINTF_POSIX = @GNULIB_VFPRINTF_POSIX@
-GNULIB_VPRINTF_POSIX = @GNULIB_VPRINTF_POSIX@
-GNULIB_VSNPRINTF = @GNULIB_VSNPRINTF@
-GNULIB_VSPRINTF_POSIX = @GNULIB_VSPRINTF_POSIX@
-GNU_PACKAGE = @GNU_PACKAGE@
-GREP = @GREP@
-HAVE_DECL_GETLOGIN_R = @HAVE_DECL_GETLOGIN_R@
-HAVE_DECL_IMAXABS = @HAVE_DECL_IMAXABS@
-HAVE_DECL_IMAXDIV = @HAVE_DECL_IMAXDIV@
-HAVE_DECL_MEMMEM = @HAVE_DECL_MEMMEM@
-HAVE_DECL_MEMRCHR = @HAVE_DECL_MEMRCHR@
-HAVE_DECL_SNPRINTF = @HAVE_DECL_SNPRINTF@
-HAVE_DECL_STRDUP = @HAVE_DECL_STRDUP@
-HAVE_DECL_STRNCASECMP = @HAVE_DECL_STRNCASECMP@
-HAVE_DECL_STRNDUP = @HAVE_DECL_STRNDUP@
-HAVE_DECL_STRNLEN = @HAVE_DECL_STRNLEN@
-HAVE_DECL_STRTOIMAX = @HAVE_DECL_STRTOIMAX@
-HAVE_DECL_STRTOK_R = @HAVE_DECL_STRTOK_R@
-HAVE_DECL_STRTOUMAX = @HAVE_DECL_STRTOUMAX@
-HAVE_DECL_VSNPRINTF = @HAVE_DECL_VSNPRINTF@
-HAVE_DUP2 = @HAVE_DUP2@
-HAVE_FTRUNCATE = @HAVE_FTRUNCATE@
-HAVE_GETSUBOPT = @HAVE_GETSUBOPT@
-HAVE_INTTYPES_H = @HAVE_INTTYPES_H@
-HAVE_LONG_LONG_INT = @HAVE_LONG_LONG_INT@
-HAVE_MEMPCPY = @HAVE_MEMPCPY@
-HAVE_MKDTEMP = @HAVE_MKDTEMP@
-HAVE_NETINET_IN_H = @HAVE_NETINET_IN_H@
-HAVE_READLINK = @HAVE_READLINK@
-HAVE_SIGNED_SIG_ATOMIC_T = @HAVE_SIGNED_SIG_ATOMIC_T@
-HAVE_SIGNED_WCHAR_T = @HAVE_SIGNED_WCHAR_T@
-HAVE_SIGNED_WINT_T = @HAVE_SIGNED_WINT_T@
-HAVE_STDINT_H = @HAVE_STDINT_H@
-HAVE_STPCPY = @HAVE_STPCPY@
-HAVE_STPNCPY = @HAVE_STPNCPY@
-HAVE_STRCASECMP = @HAVE_STRCASECMP@
-HAVE_STRCASESTR = @HAVE_STRCASESTR@
-HAVE_STRCHRNUL = @HAVE_STRCHRNUL@
-HAVE_STRNDUP = @HAVE_STRNDUP@
-HAVE_STRPBRK = @HAVE_STRPBRK@
-HAVE_STRSEP = @HAVE_STRSEP@
-HAVE_STRUCT_TIMEVAL = @HAVE_STRUCT_TIMEVAL@
-HAVE_SYS_BITYPES_H = @HAVE_SYS_BITYPES_H@
-HAVE_SYS_INTTYPES_H = @HAVE_SYS_INTTYPES_H@
-HAVE_SYS_SOCKET_H = @HAVE_SYS_SOCKET_H@
-HAVE_SYS_TIME_H = @HAVE_SYS_TIME_H@
-HAVE_SYS_TYPES_H = @HAVE_SYS_TYPES_H@
-HAVE_UNISTD_H = @HAVE_UNISTD_H@
-HAVE_UNSIGNED_LONG_LONG_INT = @HAVE_UNSIGNED_LONG_LONG_INT@
-HAVE_WCTYPE_H = @HAVE_WCTYPE_H@
-HAVE_WINSOCK2_H = @HAVE_WINSOCK2_H@
-HAVE_WINT_T = @HAVE_WINT_T@
-HAVE_WS2TCPIP_H = @HAVE_WS2TCPIP_H@
-HAVE__BOOL = @HAVE__BOOL@
-HELP2MAN = @HELP2MAN@
-INSTALL = @INSTALL@
-INSTALL_DATA = @INSTALL_DATA@
-INSTALL_PROGRAM = @INSTALL_PROGRAM@
-INSTALL_SCRIPT = @INSTALL_SCRIPT@
-INSTALL_STRIP_PROGRAM = @INSTALL_STRIP_PROGRAM@
-INTLLIBS = @INTLLIBS@
-INTL_MACOSX_LIBS = @INTL_MACOSX_LIBS@
-INTTYPES_H = @INTTYPES_H@
-KMEM_GROUP = @KMEM_GROUP@
-LDFLAGS = @LDFLAGS@
-LIBCOREUTILS_LIBDEPS = @LIBCOREUTILS_LIBDEPS@
-LIBCOREUTILS_LTLIBDEPS = @LIBCOREUTILS_LTLIBDEPS@
-LIBICONV = @LIBICONV@
-LIBINTL = @LIBINTL@
-LIBOBJS = @LIBOBJS@
-LIBS = @LIBS@
-LIB_ACL = @LIB_ACL@
-LIB_ACL_TRIVIAL = @LIB_ACL_TRIVIAL@
-LIB_CLOCK_GETTIME = @LIB_CLOCK_GETTIME@
-LIB_CRYPT = @LIB_CRYPT@
-LIB_EACCESS = @LIB_EACCESS@
-LIB_FDATASYNC = @LIB_FDATASYNC@
-LIB_GETHRXTIME = @LIB_GETHRXTIME@
-LIB_NANOSLEEP = @LIB_NANOSLEEP@
-LN_S = @LN_S@
-LTLIBICONV = @LTLIBICONV@
-LTLIBINTL = @LTLIBINTL@
-LTLIBOBJS = @LTLIBOBJS@
-MAKEINFO = @MAKEINFO@
-MAN = @MAN@
-MKDIR_P = @MKDIR_P@
-MSGFMT = @MSGFMT@
-MSGFMT_015 = @MSGFMT_015@
-MSGMERGE = @MSGMERGE@
-NEED_SETGID = @NEED_SETGID@
-NETINET_IN_H = @NETINET_IN_H@
-OBJEXT = @OBJEXT@
-OPTIONAL_BIN_PROGS = @OPTIONAL_BIN_PROGS@
-PACKAGE = @PACKAGE@
-PACKAGE_BUGREPORT = @PACKAGE_BUGREPORT@
-PACKAGE_NAME = @PACKAGE_NAME@
-PACKAGE_STRING = @PACKAGE_STRING@
-PACKAGE_TARNAME = @PACKAGE_TARNAME@
-PACKAGE_VERSION = @PACKAGE_VERSION@
-PATH_SEPARATOR = @PATH_SEPARATOR@
-PERL = @PERL@
-POSUB = @POSUB@
-POW_LIB = @POW_LIB@
-PRIPTR_PREFIX = @PRIPTR_PREFIX@
-PRI_MACROS_BROKEN = @PRI_MACROS_BROKEN@
-PTRDIFF_T_SUFFIX = @PTRDIFF_T_SUFFIX@
-RANLIB = @RANLIB@
-REPLACE_CHOWN = @REPLACE_CHOWN@
-REPLACE_FCHDIR = @REPLACE_FCHDIR@
-REPLACE_FPRINTF = @REPLACE_FPRINTF@
-REPLACE_GETCWD = @REPLACE_GETCWD@
-REPLACE_GETTIMEOFDAY = @REPLACE_GETTIMEOFDAY@
-REPLACE_LOCALTIME_R = @REPLACE_LOCALTIME_R@
-REPLACE_MKSTEMP = @REPLACE_MKSTEMP@
-REPLACE_NANOSLEEP = @REPLACE_NANOSLEEP@
-REPLACE_PRINTF = @REPLACE_PRINTF@
-REPLACE_SNPRINTF = @REPLACE_SNPRINTF@
-REPLACE_SPRINTF = @REPLACE_SPRINTF@
-REPLACE_STRPTIME = @REPLACE_STRPTIME@
-REPLACE_TIMEGM = @REPLACE_TIMEGM@
-REPLACE_VFPRINTF = @REPLACE_VFPRINTF@
-REPLACE_VPRINTF = @REPLACE_VPRINTF@
-REPLACE_VSNPRINTF = @REPLACE_VSNPRINTF@
-REPLACE_VSPRINTF = @REPLACE_VSPRINTF@
-SEQ_LIBM = @SEQ_LIBM@
-SET_MAKE = @SET_MAKE@
-SHELL = @SHELL@
-SIG_ATOMIC_T_SUFFIX = @SIG_ATOMIC_T_SUFFIX@
-SIZE_T_SUFFIX = @SIZE_T_SUFFIX@
-STDBOOL_H = @STDBOOL_H@
-STDINT_H = @STDINT_H@
-STRIP = @STRIP@
-SYS_SOCKET_H = @SYS_SOCKET_H@
-SYS_STAT_H = @SYS_STAT_H@
-SYS_TIME_H = @SYS_TIME_H@
-SYS_TIME_H_DEFINES_STRUCT_TIMESPEC = @SYS_TIME_H_DEFINES_STRUCT_TIMESPEC@
-TIME_H_DEFINES_STRUCT_TIMESPEC = @TIME_H_DEFINES_STRUCT_TIMESPEC@
-U = @U@
-USE_NLS = @USE_NLS@
-VERSION = @VERSION@
-WCHAR_H = @WCHAR_H@
-WCHAR_T_SUFFIX = @WCHAR_T_SUFFIX@
-WCTYPE_H = @WCTYPE_H@
-WINT_T_SUFFIX = @WINT_T_SUFFIX@
-XGETTEXT = @XGETTEXT@
-XGETTEXT_015 = @XGETTEXT_015@
-YACC = @YACC@
-YFLAGS = @YFLAGS@
-abs_builddir = @abs_builddir@
-abs_srcdir = @abs_srcdir@
-abs_top_builddir = @abs_top_builddir@
-abs_top_srcdir = @abs_top_srcdir@
-ac_ct_CC = @ac_ct_CC@
-am__include = @am__include@
-am__leading_dot = @am__leading_dot@
-am__quote = @am__quote@
-am__tar = @am__tar@
-am__untar = @am__untar@
-bindir = @bindir@
-build = @build@
-build_alias = @build_alias@
-build_cpu = @build_cpu@
-build_os = @build_os@
-build_vendor = @build_vendor@
-builddir = @builddir@
-datadir = @datadir@
-datarootdir = @datarootdir@
-docdir = @docdir@
-dvidir = @dvidir@
-exec_prefix = @exec_prefix@
-gl_LIBOBJS = @gl_LIBOBJS@
-gl_LTLIBOBJS = @gl_LTLIBOBJS@
-host = @host@
-host_alias = @host_alias@
-host_cpu = @host_cpu@
-host_os = @host_os@
-host_vendor = @host_vendor@
-htmldir = @htmldir@
-includedir = @includedir@
-infodir = @infodir@
-install_sh = @install_sh@
-libdir = @libdir@
-libexecdir = @libexecdir@
-localedir = @localedir@
-localstatedir = @localstatedir@
-mandir = @mandir@
-mkdir_p = @mkdir_p@
-oldincludedir = @oldincludedir@
-pdfdir = @pdfdir@
-prefix = @prefix@
-program_transform_name = @program_transform_name@
-psdir = @psdir@
-sbindir = @sbindir@
-sharedstatedir = @sharedstatedir@
-srcdir = @srcdir@
-sysconfdir = @sysconfdir@
-target_alias = @target_alias@
-top_builddir = @top_builddir@
-top_srcdir = @top_srcdir@
-EXTRA_DIST = $(TESTS)
-TESTS_ENVIRONMENT = \
- top_srcdir=$(top_srcdir) \
- abs_top_builddir=$(abs_top_builddir) \
- srcdir=$(srcdir) \
- PACKAGE_VERSION=$(PACKAGE_VERSION) \
- PERL="$(PERL)" \
- BUILD_SRC_DIR="`pwd`/../../src" \
- CU_TEST_NAME=`basename $(abs_srcdir)`,$$tst \
- PATH="$(VG_PATH_PREFIX)`pwd`/../../src$(PATH_SEPARATOR)$$PATH" \
- CONFIG_HEADER=$(CONFIG_HEADER) \
- REPLACE_GETCWD=$(REPLACE_GETCWD) \
- host_os=$(host_os) \
- PROG=`../../src/basename -- "$$tst"`
-
-
-# Do not choose a name that is a shell keyword like 'if', or a
-# commonly-used utility like 'cat' or 'test', as the name of a test.
-# Otherwise, VPATH builds will fail on hosts like Solaris, since they
-# will expand 'if test ...' to 'if .../test ...', and the '.../test'
-# will execute the test script rather than the standard utility.
-TESTS = \
- pr \
- df-P \
- pwd-unreadable-parent \
- cut \
- wc-files0-from \
- wc-files0 \
- cat-proc \
- base64 \
- basename \
- close-stdout \
- csplit \
- date \
- date-sec \
- df \
- dirname \
- expand \
- false-status \
- fold \
- head-c \
- head-elide-tail \
- head-pos \
- mknod \
- nice \
- nl \
- nohup \
- paste-no-nl \
- pathchk1 \
- printf \
- printf-hex \
- pwd-long \
- sha224sum \
- sha256sum \
- sha384sum \
- sha512sum \
- shuf \
- sort-compress \
- sort-merge \
- sort-rand \
- split-a \
- split-fail \
- split-l \
- stat-fmt \
- stat-printf \
- tac-continue \
- test-diag \
- tty-eof
-
-all: all-am
-
-.SUFFIXES:
-$(srcdir)/Makefile.in: $(srcdir)/Makefile.am $(am__configure_deps)
- @for dep in $?; do \
- case '$(am__configure_deps)' in \
- *$$dep*) \
- cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh \
- && exit 0; \
- exit 1;; \
- esac; \
- done; \
- echo ' cd $(top_srcdir) && $(AUTOMAKE) --gnu tests/misc/Makefile'; \
- cd $(top_srcdir) && \
- $(AUTOMAKE) --gnu tests/misc/Makefile
-.PRECIOUS: Makefile
-Makefile: $(srcdir)/Makefile.in $(top_builddir)/config.status
- @case '$?' in \
- *config.status*) \
- cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh;; \
- *) \
- echo ' cd $(top_builddir) && $(SHELL) ./config.status $(subdir)/$@ $(am__depfiles_maybe)'; \
- cd $(top_builddir) && $(SHELL) ./config.status $(subdir)/$@ $(am__depfiles_maybe);; \
- esac;
-
-$(top_builddir)/config.status: $(top_srcdir)/configure $(CONFIG_STATUS_DEPENDENCIES)
- cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh
-
-$(top_srcdir)/configure: $(am__configure_deps)
- cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh
-$(ACLOCAL_M4): $(am__aclocal_m4_deps)
- cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh
-tags: TAGS
-TAGS:
-
-ctags: CTAGS
-CTAGS:
-
-
-check-TESTS: $(TESTS)
- @failed=0; all=0; xfail=0; xpass=0; skip=0; ws='[ ]'; \
- srcdir=$(srcdir); export srcdir; \
- list=' $(TESTS) '; \
- if test -n "$$list"; then \
- for tst in $$list; do \
- if test -f ./$$tst; then dir=./; \
- elif test -f $$tst; then dir=; \
- else dir="$(srcdir)/"; fi; \
- if $(TESTS_ENVIRONMENT) $${dir}$$tst; then \
- all=`expr $$all + 1`; \
- case " $(XFAIL_TESTS) " in \
- *$$ws$$tst$$ws*) \
- xpass=`expr $$xpass + 1`; \
- failed=`expr $$failed + 1`; \
- echo "XPASS: $$tst"; \
- ;; \
- *) \
- echo "PASS: $$tst"; \
- ;; \
- esac; \
- elif test $$? -ne 77; then \
- all=`expr $$all + 1`; \
- case " $(XFAIL_TESTS) " in \
- *$$ws$$tst$$ws*) \
- xfail=`expr $$xfail + 1`; \
- echo "XFAIL: $$tst"; \
- ;; \
- *) \
- failed=`expr $$failed + 1`; \
- echo "FAIL: $$tst"; \
- ;; \
- esac; \
- else \
- skip=`expr $$skip + 1`; \
- echo "SKIP: $$tst"; \
- fi; \
- done; \
- if test "$$failed" -eq 0; then \
- if test "$$xfail" -eq 0; then \
- banner="All $$all tests passed"; \
- else \
- banner="All $$all tests behaved as expected ($$xfail expected failures)"; \
- fi; \
- else \
- if test "$$xpass" -eq 0; then \
- banner="$$failed of $$all tests failed"; \
- else \
- banner="$$failed of $$all tests did not behave as expected ($$xpass unexpected passes)"; \
- fi; \
- fi; \
- dashes="$$banner"; \
- skipped=""; \
- if test "$$skip" -ne 0; then \
- skipped="($$skip tests were not run)"; \
- test `echo "$$skipped" | wc -c` -le `echo "$$banner" | wc -c` || \
- dashes="$$skipped"; \
- fi; \
- report=""; \
- if test "$$failed" -ne 0 && test -n "$(PACKAGE_BUGREPORT)"; then \
- report="Please report to $(PACKAGE_BUGREPORT)"; \
- test `echo "$$report" | wc -c` -le `echo "$$banner" | wc -c` || \
- dashes="$$report"; \
- fi; \
- dashes=`echo "$$dashes" | sed s/./=/g`; \
- echo "$$dashes"; \
- echo "$$banner"; \
- test -z "$$skipped" || echo "$$skipped"; \
- test -z "$$report" || echo "$$report"; \
- echo "$$dashes"; \
- test "$$failed" -eq 0; \
- else :; fi
-
-distdir: $(DISTFILES)
- @srcdirstrip=`echo "$(srcdir)" | sed 's/[].[^$$\\*]/\\\\&/g'`; \
- topsrcdirstrip=`echo "$(top_srcdir)" | sed 's/[].[^$$\\*]/\\\\&/g'`; \
- list='$(DISTFILES)'; \
- dist_files=`for file in $$list; do echo $$file; done | \
- sed -e "s|^$$srcdirstrip/||;t" \
- -e "s|^$$topsrcdirstrip/|$(top_builddir)/|;t"`; \
- case $$dist_files in \
- */*) $(MKDIR_P) `echo "$$dist_files" | \
- sed '/\//!d;s|^|$(distdir)/|;s,/[^/]*$$,,' | \
- sort -u` ;; \
- esac; \
- for file in $$dist_files; do \
- if test -f $$file || test -d $$file; then d=.; else d=$(srcdir); fi; \
- if test -d $$d/$$file; then \
- dir=`echo "/$$file" | sed -e 's,/[^/]*$$,,'`; \
- if test -d $(srcdir)/$$file && test $$d != $(srcdir); then \
- cp -pR $(srcdir)/$$file $(distdir)$$dir || exit 1; \
- fi; \
- cp -pR $$d/$$file $(distdir)$$dir || exit 1; \
- else \
- test -f $(distdir)/$$file \
- || cp -p $$d/$$file $(distdir)/$$file \
- || exit 1; \
- fi; \
- done
-check-am: all-am
- $(MAKE) $(AM_MAKEFLAGS) check-TESTS
-check: check-am
-all-am: Makefile
-installdirs:
-install: install-am
-install-exec: install-exec-am
-install-data: install-data-am
-uninstall: uninstall-am
-
-install-am: all-am
- @$(MAKE) $(AM_MAKEFLAGS) install-exec-am install-data-am
-
-installcheck: installcheck-am
-install-strip:
- $(MAKE) $(AM_MAKEFLAGS) INSTALL_PROGRAM="$(INSTALL_STRIP_PROGRAM)" \
- install_sh_PROGRAM="$(INSTALL_STRIP_PROGRAM)" INSTALL_STRIP_FLAG=-s \
- `test -z '$(STRIP)' || \
- echo "INSTALL_PROGRAM_ENV=STRIPPROG='$(STRIP)'"` install
-mostlyclean-generic:
-
-clean-generic:
-
-distclean-generic:
- -test -z "$(CONFIG_CLEAN_FILES)" || rm -f $(CONFIG_CLEAN_FILES)
-
-maintainer-clean-generic:
- @echo "This command is intended for maintainers to use"
- @echo "it deletes files that may require special tools to rebuild."
-clean: clean-am
-
-clean-am: clean-generic mostlyclean-am
-
-distclean: distclean-am
- -rm -f Makefile
-distclean-am: clean-am distclean-generic
-
-dvi: dvi-am
-
-dvi-am:
-
-html: html-am
-
-info: info-am
-
-info-am:
-
-install-data-am:
-
-install-dvi: install-dvi-am
-
-install-exec-am:
-
-install-html: install-html-am
-
-install-info: install-info-am
-
-install-man:
-
-install-pdf: install-pdf-am
-
-install-ps: install-ps-am
-
-installcheck-am:
-
-maintainer-clean: maintainer-clean-am
- -rm -f Makefile
-maintainer-clean-am: distclean-am maintainer-clean-generic
-
-mostlyclean: mostlyclean-am
-
-mostlyclean-am: mostlyclean-generic
-
-pdf: pdf-am
-
-pdf-am:
-
-ps: ps-am
-
-ps-am:
-
-uninstall-am:
-
-.MAKE: install-am install-strip
-
-.PHONY: all all-am check check-TESTS check-am clean clean-generic \
- distclean distclean-generic distdir dvi dvi-am html html-am \
- info info-am install install-am install-data install-data-am \
- install-dvi install-dvi-am install-exec install-exec-am \
- install-html install-html-am install-info install-info-am \
- install-man install-pdf install-pdf-am install-ps \
- install-ps-am install-strip installcheck installcheck-am \
- installdirs maintainer-clean maintainer-clean-generic \
- mostlyclean mostlyclean-generic pdf pdf-am ps ps-am uninstall \
- uninstall-am
-
-# Tell versions [3.59,3.63) of GNU make to not export all variables.
-# Otherwise a system limit (for SysV at least) may be exceeded.
-.NOEXPORT:
diff --git a/tests/misc/arch.sh b/tests/misc/arch.sh
new file mode 100755
index 0000000..c47603b
--- /dev/null
+++ b/tests/misc/arch.sh
@@ -0,0 +1,27 @@
+#!/bin/sh
+# Ensure that arch output is equal to uname -m
+
+# Copyright (C) 2007-2016 Free Software Foundation, Inc.
+
+# This program is free software: you can redistribute it and/or modify
+# it under the terms of the GNU General Public License as published by
+# the Free Software Foundation, either version 3 of the License, or
+# (at your option) any later version.
+
+# This program is distributed in the hope that it will be useful,
+# but WITHOUT ANY WARRANTY; without even the implied warranty of
+# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
+# GNU General Public License for more details.
+
+# You should have received a copy of the GNU General Public License
+# along with this program. If not, see <http://www.gnu.org/licenses/>.
+
+. "${srcdir=.}/tests/init.sh"; path_prepend_ ./src
+print_ver_ arch
+
+arch > out || fail=1
+uname -m > exp || fail=1
+
+compare exp out || fail=1
+
+Exit $fail
diff --git a/tests/misc/base64 b/tests/misc/base64
deleted file mode 100755
index 70295fb..0000000
--- a/tests/misc/base64
+++ /dev/null
@@ -1,169 +0,0 @@
-#!/bin/sh
-# -*- perl -*-
-# Exercise base64.
-
-# Copyright (C) 2006, 2007 Free Software Foundation, Inc.
-
-# This program is free software; you can redistribute it and/or modify
-# it under the terms of the GNU General Public License as published by
-# the Free Software Foundation; either version 2 of the License, or
-# (at your option) any later version.
-
-# This program is distributed in the hope that it will be useful,
-# but WITHOUT ANY WARRANTY; without even the implied warranty of
-# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
-# GNU General Public License for more details.
-
-# You should have received a copy of the GNU General Public License
-# along with this program; if not, write to the Free Software
-# Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA
-# 02110-1301, USA.
-
-: ${PERL=perl}
-: ${srcdir=.}
-
-$PERL -e 1 > /dev/null 2>&1 || {
- echo 1>&2 "$0: configure didn't find a usable version of Perl," \
- "so can't run this test"
- exit 77
-}
-
-exec $PERL -w -I$srcdir/.. -MCoreutils -- - <<\EOF
-require 5.003;
-use strict;
-
-(my $program_name = $0) =~ s|.*/||;
-
-# Turn off localisation of executable's ouput.
-@ENV{qw(LANGUAGE LANG LC_ALL)} = ('C') x 3;
-
-# Return the encoding of a string of N 'a's.
-sub enc($)
-{
- my ($n) = @_;
- my %remainder = ( 0 => '', 1 => 'YQ==', 2 => 'YWE=' );
- return 'YWFh' x ($n / 3) . $remainder{$n % 3};
-}
-
-# Construct an encoded string of length 4KB, using 3K "a"s.
-my $a3k = enc 3072;
-my @a3k_nl;
-# A few copies, each with different number of newlines at the start.
-for my $k (0..3)
- {
- (my $t = $a3k) =~ s/^/"\n"x $k/e;
- push @a3k_nl, $t;
- }
-
-# Return a copy of S, with newlines inserted every WIDTH bytes.
-# Ensure that the result (if not the empty string) is newline-terminated.
-sub wrap($$)
-{
- my ($s, $width) = @_;
- $s =~ s/(.{$width})/$1\n/g;
- substr ($s, -1, 1) ne "\n"
- and $s .= "\n";
- return $s;
-}
-
-my @Tests =
- (
- ['empty', {IN=>''}, {OUT=>""}],
- ['inout', {IN=>'a'}, {OUT=>"YQ==\n"}],
- ['wrap', '--wrap 0', {IN=>'foo'}, {OUT=>'Zm9v'}],
- ['wrap5-39', '--wrap=5', {IN=>'a' x 39}, {OUT=>wrap enc(39),5}],
- ['wrap5-40', '--wrap=5', {IN=>'a' x 40}, {OUT=>wrap enc(40),5}],
- ['wrap5-41', '--wrap=5', {IN=>'a' x 41}, {OUT=>wrap enc(41),5}],
- ['wrap5-42', '--wrap=5', {IN=>'a' x 42}, {OUT=>wrap enc(42),5}],
- ['wrap5-43', '--wrap=5', {IN=>'a' x 43}, {OUT=>wrap enc(43),5}],
- ['wrap5-44', '--wrap=5', {IN=>'a' x 44}, {OUT=>wrap enc(44),5}],
- ['wrap5-45', '--wrap=5', {IN=>'a' x 45}, {OUT=>wrap enc(45),5}],
- ['wrap5-46', '--wrap=5', {IN=>'a' x 46}, {OUT=>wrap enc(46),5}],
-
- ['buf-1', '--decode', {IN=>enc 1}, {OUT=>'a' x 1}],
- ['buf-2', '--decode', {IN=>enc 2}, {OUT=>'a' x 2}],
- ['buf-3', '--decode', {IN=>enc 3}, {OUT=>'a' x 3}],
- ['buf-4', '--decode', {IN=>enc 4}, {OUT=>'a' x 4}],
- # 4KB worth of input.
- ['buf-4k0', '--decode', {IN=>enc 3072+0}, {OUT=>'a' x (3072+0)}],
- ['buf-4k1', '--decode', {IN=>enc 3072+1}, {OUT=>'a' x (3072+1)}],
- ['buf-4k2', '--decode', {IN=>enc 3072+2}, {OUT=>'a' x (3072+2)}],
- ['buf-4k3', '--decode', {IN=>enc 3072+3}, {OUT=>'a' x (3072+3)}],
- ['buf-4km1','--decode', {IN=>enc 3072-1}, {OUT=>'a' x (3072-1)}],
- ['buf-4km2','--decode', {IN=>enc 3072-2}, {OUT=>'a' x (3072-2)}],
- ['buf-4km3','--decode', {IN=>enc 3072-3}, {OUT=>'a' x (3072-3)}],
- ['buf-4km4','--decode', {IN=>enc 3072-4}, {OUT=>'a' x (3072-4)}],
-
- # Exercise the case in which the final base-64 byte is
- # in a buffer all by itself.
- ['b4k-1', '--decode', {IN=>$a3k_nl[1]}, {OUT=>'a' x (3072+0)}],
- ['b4k-2', '--decode', {IN=>$a3k_nl[2]}, {OUT=>'a' x (3072+0)}],
- ['b4k-3', '--decode', {IN=>$a3k_nl[3]}, {OUT=>'a' x (3072+0)}],
-
- ['baddecode', '--decode', {IN=>'a'}, {OUT=>""},
- {ERR_SUBST => 's/.*: invalid input//'}, {ERR => "\n"}, {EXIT => 1}],
- ['baddecode2', '--decode', {IN=>'ab'}, {OUT=>"i"},
- {ERR_SUBST => 's/.*: invalid input//'}, {ERR => "\n"}, {EXIT => 1}],
- ['baddecode3', '--decode', {IN=>'Zzz'}, {OUT=>"g<"},
- {ERR_SUBST => 's/.*: invalid input//'}, {ERR => "\n"}, {EXIT => 1}],
- ['baddecode4', '--decode', {IN=>'Zz='}, {OUT=>"g"},
- {ERR_SUBST => 's/.*: invalid input//'}, {ERR => "\n"}, {EXIT => 1}],
- ['baddecode5', '--decode', {IN=>'Z==='}, {OUT=>""},
- {ERR_SUBST => 's/.*: invalid input//'}, {ERR => "\n"}, {EXIT => 1}]
- );
-
-# For each non-failing test, create a --decode test using the
-# expected output as input. Also, add tests inserting newlines.
-my @new;
-foreach my $t (@Tests)
- {
- my $exit_val;
- my $in;
- my @out;
-
- # If the test has a single option of "--decode", then skip it.
- !ref $t->[1] && $t->[1] eq '--decode'
- and next;
-
- foreach my $e (@$t)
- {
- ref $e && ref $e eq 'HASH'
- or next;
- defined $e->{EXIT}
- and $exit_val = $e->{EXIT};
- defined $e->{IN}
- and $in = $e->{IN};
- if (defined $e->{OUT})
- {
- my $t = $e->{OUT};
- push @out, $t;
- my $len = length $t;
- foreach my $i (0..$len)
- {
- my $u = $t;
- substr ($u, $i, 0) = "\n";
- push @out, $u;
- 10 <= $i
- and last;
- }
- }
- }
- $exit_val
- and next;
-
- my $i = 0;
- foreach my $o (@out)
- {
- push @new, ["d$i-$t->[0]", '--decode', {IN => $o}, {OUT => $in}];
- ++$i;
- }
- }
-push @Tests, @new;
-
-my $save_temps = $ENV{DEBUG};
-my $verbose = $ENV{VERBOSE};
-
-my $prog = $ENV{PROG} || die "$0: \$PROG not specified in environment\n";
-my $fail = run_tests ($program_name, $prog, \@Tests, $save_temps, $verbose);
-exit $fail;
-EOF
diff --git a/tests/misc/base64.pl b/tests/misc/base64.pl
new file mode 100755
index 0000000..7084373
--- /dev/null
+++ b/tests/misc/base64.pl
@@ -0,0 +1,210 @@
+#!/usr/bin/perl
+# Exercise base{32,64}.
+
+# Copyright (C) 2006-2016 Free Software Foundation, Inc.
+
+# This program is free software: you can redistribute it and/or modify
+# it under the terms of the GNU General Public License as published by
+# the Free Software Foundation, either version 3 of the License, or
+# (at your option) any later version.
+
+# This program is distributed in the hope that it will be useful,
+# but WITHOUT ANY WARRANTY; without even the implied warranty of
+# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
+# GNU General Public License for more details.
+
+# You should have received a copy of the GNU General Public License
+# along with this program. If not, see <http://www.gnu.org/licenses/>.
+
+use strict;
+
+(my $program_name = $0) =~ s|.*/||;
+
+# Turn off localization of executable's output.
+@ENV{qw(LANGUAGE LANG LC_ALL)} = ('C') x 3;
+
+# Return the encoding of a string of N 'a's.
+sub enc64($)
+{
+ my ($n) = @_;
+ my %remainder = ( 0 => '', 1 => 'YQ==', 2 => 'YWE=' );
+ return 'YWFh' x ($n / 3) . $remainder{$n % 3};
+}
+
+sub enc32($)
+{
+ my ($n) = @_;
+ my %remainder = ( 0 => '', 1 => 'ME======', 2 => 'MFQQ====',
+ 3 => 'MFQWC===', 4 => 'MFQWCYI=');
+ return 'MFQWCYLB' x ($n / 5) . $remainder{$n % 5};
+}
+
+# Function reference to appropriate encoder
+my $enc;
+
+# An encoded string of length 4KB, using 3K "a"s.
+my $a3k;
+my @a3k_nl;
+
+# Return a copy of S, with newlines inserted every WIDTH bytes.
+# Ensure that the result (if not the empty string) is newline-terminated.
+sub wrap($$)
+{
+ my ($s, $width) = @_;
+ $s =~ s/(.{$width})/$1\n/g;
+ substr ($s, -1, 1) ne "\n"
+ and $s .= "\n";
+ return $s;
+}
+
+my @Tests;
+
+sub gen_tests($)
+{
+ my ($prog) = @_;
+ @Tests=
+ (
+ ['empty', {IN=>''}, {OUT=>""}],
+ ['inout1', {IN=>'a'x1}, {OUT=>&$enc(1)."\n"}],
+ ['inout2', {IN=>'a'x2}, {OUT=>&$enc(2)."\n"}],
+ ['inout3', {IN=>'a'x3}, {OUT=>&$enc(3)."\n"}],
+ ['inout4', {IN=>'a'x4}, {OUT=>&$enc(4)."\n"}],
+ ['inout5', {IN=>'a'x5}, {OUT=>&$enc(5)."\n"}],
+ ['wrap', '--wrap 0', {IN=>'a'}, {OUT=>&$enc(1)}],
+ ['wrap-zero', '--wrap 08', {IN=>'a'}, {OUT=>&$enc(1)."\n"}],
+ ['wrap5-39', '--wrap=5', {IN=>'a' x 39}, {OUT=>wrap &$enc(39),5}],
+ ['wrap5-40', '--wrap=5', {IN=>'a' x 40}, {OUT=>wrap &$enc(40),5}],
+ ['wrap5-41', '--wrap=5', {IN=>'a' x 41}, {OUT=>wrap &$enc(41),5}],
+ ['wrap5-42', '--wrap=5', {IN=>'a' x 42}, {OUT=>wrap &$enc(42),5}],
+ ['wrap5-43', '--wrap=5', {IN=>'a' x 43}, {OUT=>wrap &$enc(43),5}],
+ ['wrap5-44', '--wrap=5', {IN=>'a' x 44}, {OUT=>wrap &$enc(44),5}],
+ ['wrap5-45', '--wrap=5', {IN=>'a' x 45}, {OUT=>wrap &$enc(45),5}],
+ ['wrap5-46', '--wrap=5', {IN=>'a' x 46}, {OUT=>wrap &$enc(46),5}],
+
+ ['wrap-bad-1', '-w0x0', {IN=>''}, {OUT=>""},
+ {ERR_SUBST => 's/base..:/base..:/'},
+ {ERR => "base..: invalid wrap size: '0x0'\n"}, {EXIT => 1}],
+ ['wrap-bad-2', '-w1k', {IN=>''}, {OUT=>""},
+ {ERR_SUBST => 's/base..:/base..:/'},
+ {ERR => "base..: invalid wrap size: '1k'\n"}, {EXIT => 1}],
+ ['wrap-bad-3', '-w-1', {IN=>''}, {OUT=>""},
+ {ERR_SUBST => 's/base..:/base..:/'},
+ {ERR => "base..: invalid wrap size: '-1'\n"}, {EXIT => 1}],
+ ['wrap-bad-4', '-w-0', {IN=>''}, {OUT=>""},
+ {ERR_SUBST => 's/base..:/base..:/'},
+ {ERR => "base..: invalid wrap size: '-0'\n"}, {EXIT => 1}],
+
+ ['buf-1', '--decode', {IN=>&$enc(1)}, {OUT=>'a' x 1}],
+ ['buf-2', '--decode', {IN=>&$enc(2)}, {OUT=>'a' x 2}],
+ ['buf-3', '--decode', {IN=>&$enc(3)}, {OUT=>'a' x 3}],
+ ['buf-4', '--decode', {IN=>&$enc(4)}, {OUT=>'a' x 4}],
+ # 4KB worth of input.
+ ['buf-4k0', '--decode', {IN=>&$enc(3072+0)}, {OUT=>'a' x (3072+0)}],
+ ['buf-4k1', '--decode', {IN=>&$enc(3072+1)}, {OUT=>'a' x (3072+1)}],
+ ['buf-4k2', '--decode', {IN=>&$enc(3072+2)}, {OUT=>'a' x (3072+2)}],
+ ['buf-4k3', '--decode', {IN=>&$enc(3072+3)}, {OUT=>'a' x (3072+3)}],
+ ['buf-4km1','--decode', {IN=>&$enc(3072-1)}, {OUT=>'a' x (3072-1)}],
+ ['buf-4km2','--decode', {IN=>&$enc(3072-2)}, {OUT=>'a' x (3072-2)}],
+ ['buf-4km3','--decode', {IN=>&$enc(3072-3)}, {OUT=>'a' x (3072-3)}],
+ ['buf-4km4','--decode', {IN=>&$enc(3072-4)}, {OUT=>'a' x (3072-4)}],
+
+ # Exercise the case in which the final base-64 byte is
+ # in a buffer all by itself.
+ ['b4k-1', '--decode', {IN=>$a3k_nl[1]}, {OUT=>'a' x (3072+0)}],
+ ['b4k-2', '--decode', {IN=>$a3k_nl[2]}, {OUT=>'a' x (3072+0)}],
+ ['b4k-3', '--decode', {IN=>$a3k_nl[3]}, {OUT=>'a' x (3072+0)}],
+ );
+
+ if ($prog eq "base64")
+ {
+ push @Tests, (
+ ['baddecode', '--decode', {IN=>'a'}, {OUT=>""},
+ {ERR_SUBST => 's/.*: invalid input//'}, {ERR => "\n"}, {EXIT => 1}],
+ ['baddecode2', '--decode', {IN=>'ab'}, {OUT=>"i"},
+ {ERR_SUBST => 's/.*: invalid input//'}, {ERR => "\n"}, {EXIT => 1}],
+ ['baddecode3', '--decode', {IN=>'Zzz'}, {OUT=>"g<"},
+ {ERR_SUBST => 's/.*: invalid input//'}, {ERR => "\n"}, {EXIT => 1}],
+ ['baddecode4', '--decode', {IN=>'Zz='}, {OUT=>"g"},
+ {ERR_SUBST => 's/.*: invalid input//'}, {ERR => "\n"}, {EXIT => 1}],
+ ['baddecode5', '--decode', {IN=>'Z==='}, {OUT=>""},
+ {ERR_SUBST => 's/.*: invalid input//'}, {ERR => "\n"}, {EXIT => 1}]
+ );
+ }
+
+ # For each non-failing test, create a --decode test using the
+ # expected output as input. Also, add tests inserting newlines.
+ my @new;
+ foreach my $t (@Tests)
+ {
+ my $exit_val;
+ my $in;
+ my @out;
+
+ # If the test has a single option of "--decode", then skip it.
+ !ref $t->[1] && $t->[1] eq '--decode'
+ and next;
+
+ foreach my $e (@$t)
+ {
+ ref $e && ref $e eq 'HASH'
+ or next;
+ defined $e->{EXIT}
+ and $exit_val = $e->{EXIT};
+ defined $e->{IN}
+ and $in = $e->{IN};
+ if (defined $e->{OUT})
+ {
+ my $t = $e->{OUT};
+ push @out, $t;
+ my $len = length $t;
+ foreach my $i (0..$len)
+ {
+ my $u = $t;
+ substr ($u, $i, 0) = "\n";
+ push @out, $u;
+ 10 <= $i
+ and last;
+ }
+ }
+ }
+ $exit_val
+ and next;
+
+ my $i = 0;
+ foreach my $o (@out)
+ {
+ push @new, ["d$i-$t->[0]", '--decode', {IN => $o}, {OUT => $in}];
+ ++$i;
+ }
+ }
+ push @Tests, @new;
+}
+
+my $save_temps = $ENV{DEBUG};
+my $verbose = $ENV{VERBOSE};
+
+my $fail = 0;
+foreach my $prog (qw(base32 base64))
+ {
+ $enc = $prog eq "base32" ? \&enc32 : \&enc64;
+
+ # Construct an encoded string of length 4KB, using 3K "a"s.
+ $a3k = &$enc(3072);
+ @a3k_nl = ();
+ # A few copies, each with different number of newlines at the start.
+ for my $k (0..3)
+ {
+ (my $t = $a3k) =~ s/^/"\n"x $k/e;
+ push @a3k_nl, $t;
+ }
+
+ gen_tests($prog);
+
+ $fail = run_tests ($program_name, $prog, \@Tests, $save_temps, $verbose);
+ if ($fail != 0)
+ {
+ last;
+ }
+ }
+
+exit $fail;
diff --git a/tests/misc/basename b/tests/misc/basename
deleted file mode 100755
index 89d96ff..0000000
--- a/tests/misc/basename
+++ /dev/null
@@ -1,95 +0,0 @@
-#!/bin/sh
-# -*-perl-*-
-
-# Copyright (C) 2006 Free Software Foundation, Inc.
-
-# This program is free software; you can redistribute it and/or modify
-# it under the terms of the GNU General Public License as published by
-# the Free Software Foundation; either version 2 of the License, or
-# (at your option) any later version.
-
-# This program is distributed in the hope that it will be useful,
-# but WITHOUT ANY WARRANTY; without even the implied warranty of
-# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
-# GNU General Public License for more details.
-
-# You should have received a copy of the GNU General Public License
-# along with this program; if not, write to the Free Software
-# Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA
-# 02110-1301, USA.
-
-: ${PERL=perl}
-: ${srcdir=.}
-
-$PERL -e 1 > /dev/null 2>&1 || {
- echo 1>&2 "$0: configure didn't find a usable version of Perl," \
- "so can't run this test"
- exit 77
-}
-
-d=$srcdir/..
-exec $PERL -w -I$d -MCoreutils -- - << \EOF
-require 5.003;
-use strict;
-use File::stat;
-
-(my $program_name = $0) =~ s|.*/||;
-
-# Turn off localisation of executable's ouput.
-@ENV{qw(LANGUAGE LANG LC_ALL)} = ('C') x 3;
-
-my $stat_single = stat('/');
-my $stat_double = stat('//');
-my $double_slash = ($stat_single->dev == $stat_double->dev
- && $stat_single->ino == $stat_double->ino) ? '/' : '//';
-
-my $prog = $ENV{PROG} || die "$0: \$PROG not specified in environment\n";
-
-my @Tests =
- (
- ['fail-1', {ERR => "$prog: missing operand\n"
- . "Try `$prog --help' for more information.\n"}, {EXIT => '1'}],
- ['fail-2', qw(a b c), {ERR => "$prog: extra operand `c'\n"
- . "Try `$prog --help' for more information.\n"}, {EXIT => '1'}],
-
- ['a', qw(d/f), {OUT => 'f'}],
- ['b', qw(/d/f), {OUT => 'f'}],
- ['c', qw(d/f/), {OUT => 'f'}],
- ['d', qw(d/f//), {OUT => 'f'}],
- ['e', qw(f), {OUT => 'f'}],
- ['f', qw(/), {OUT => '/'}],
- ['g', qw(//), {OUT => "$double_slash"}],
- ['h', qw(///), {OUT => '/'}],
- ['i', qw(///a///), {OUT => 'a'}],
- ['j', qw(''), {OUT => ''}],
- ['1', qw(f.s .s), {OUT => 'f'}],
- ['2', qw(fs s), {OUT => 'f'}],
- ['3', qw(fs fs), {OUT => 'fs'}],
- ['4', qw(fs/ s), {OUT => 'f'}],
- ['5', qw(dir/file.suf .suf), {OUT => 'file'}],
- ['6', qw(// /), {OUT => "$double_slash"}],
- ['7', qw(// //), {OUT => "$double_slash"}],
- ['8', qw(fs x), {OUT => 'fs'}],
- ['9', qw(fs ''), {OUT => 'fs'}],
- ['10', qw(fs/ s/), {OUT => 'fs'}],
- );
-
-# Append a newline to end of each expected `OUT' string.
-my $t;
-foreach $t (@Tests)
- {
- my $arg1 = $t->[1];
- my $e;
- foreach $e (@$t)
- {
- $e->{OUT} = "$e->{OUT}\n"
- if ref $e eq 'HASH' and exists $e->{OUT};
- }
- }
-
-my $save_temps = $ENV{SAVE_TEMPS};
-my $verbose = $ENV{VERBOSE};
-
-my $fail = run_tests ($program_name, $prog, \@Tests, $save_temps, $verbose);
-exit $fail;
-EOF
diff --git a/tests/misc/basename.pl b/tests/misc/basename.pl
new file mode 100755
index 0000000..8312c3b
--- /dev/null
+++ b/tests/misc/basename.pl
@@ -0,0 +1,92 @@
+#!/usr/bin/perl
+# Test basename.
+# Copyright (C) 2006-2016 Free Software Foundation, Inc.
+
+# This program is free software: you can redistribute it and/or modify
+# it under the terms of the GNU General Public License as published by
+# the Free Software Foundation, either version 3 of the License, or
+# (at your option) any later version.
+
+# This program is distributed in the hope that it will be useful,
+# but WITHOUT ANY WARRANTY; without even the implied warranty of
+# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
+# GNU General Public License for more details.
+
+# You should have received a copy of the GNU General Public License
+# along with this program. If not, see <http://www.gnu.org/licenses/>.
+
+use strict;
+use File::stat;
+
+(my $program_name = $0) =~ s|.*/||;
+
+# Turn off localization of executable's output.
+@ENV{qw(LANGUAGE LANG LC_ALL)} = ('C') x 3;
+
+my $stat_single = stat('/');
+my $stat_double = stat('//');
+my $double_slash = ($stat_single->dev == $stat_double->dev
+ && $stat_single->ino == $stat_double->ino) ? '/' : '//';
+
+my $prog = 'basename';
+
+my @Tests =
+ (
+ ['fail-1', {ERR => "$prog: missing operand\n"
+ . "Try '$prog --help' for more information.\n"}, {EXIT => '1'}],
+ ['fail-2', qw(a b c), {ERR => "$prog: extra operand 'c'\n"
+ . "Try '$prog --help' for more information.\n"}, {EXIT => '1'}],
+
+ ['a', qw(d/f), {OUT => 'f'}],
+ ['b', qw(/d/f), {OUT => 'f'}],
+ ['c', qw(d/f/), {OUT => 'f'}],
+ ['d', qw(d/f//), {OUT => 'f'}],
+ ['e', qw(f), {OUT => 'f'}],
+ ['f', qw(/), {OUT => '/'}],
+ ['g', qw(//), {OUT => "$double_slash"}],
+ ['h', qw(///), {OUT => '/'}],
+ ['i', qw(///a///), {OUT => 'a'}],
+ ['j', qw(''), {OUT => ''}],
+ ['k', qw(aa a), {OUT => 'a'}],
+ ['l', qw(-a a b), {OUT => "a\nb"}],
+ ['m', qw(-s a aa ba ab), {OUT => "a\nb\nab"}],
+ ['n', qw(a-a -a), {OUT => 'a'}],
+ ['1', qw(f.s .s), {OUT => 'f'}],
+ ['2', qw(fs s), {OUT => 'f'}],
+ ['3', qw(fs fs), {OUT => 'fs'}],
+ ['4', qw(fs/ s), {OUT => 'f'}],
+ ['5', qw(dir/file.suf .suf), {OUT => 'file'}],
+ ['6', qw(// /), {OUT => "$double_slash"}],
+ ['7', qw(// //), {OUT => "$double_slash"}],
+ ['8', qw(fs x), {OUT => 'fs'}],
+ ['9', qw(fs ''), {OUT => 'fs'}],
+ ['10', qw(fs/ s/), {OUT => 'fs'}],
+
+ # Exercise -z option.
+ ['z0', qw(-z a), {OUT => "a\0"}],
+ ['z1', qw(--zero a), {OUT => "a\0"}],
+ ['z2', qw(-za a b), {OUT => "a\0b\0"}],
+ ['z3', qw(-z ba a), {OUT => "b\0"}],
+ ['z4', qw(-z -s a ba), {OUT => "b\0"}],
+ );
+
+# Append a newline to end of each expected 'OUT' string.
+# Skip -z tests, i.e., those whose 'OUT' string has a trailing '\0'.
+my $t;
+foreach $t (@Tests)
+ {
+ my $arg1 = $t->[1];
+ my $e;
+ foreach $e (@$t)
+ {
+ $e->{OUT} = "$e->{OUT}\n"
+ if ref $e eq 'HASH' and exists $e->{OUT}
+ and not $e->{OUT} =~ /\0$/;
+ }
+ }
+
+my $save_temps = $ENV{SAVE_TEMPS};
+my $verbose = $ENV{VERBOSE};
+
+my $fail = run_tests ($program_name, $prog, \@Tests, $save_temps, $verbose);
+exit $fail;
diff --git a/tests/misc/cat-buf.sh b/tests/misc/cat-buf.sh
new file mode 100755
index 0000000..a6960b5
--- /dev/null
+++ b/tests/misc/cat-buf.sh
@@ -0,0 +1,47 @@
+#!/bin/sh
+# Ensure that cat outputs processed data immediately.
+
+# Copyright (C) 2009-2016 Free Software Foundation, Inc.
+
+# This program is free software: you can redistribute it and/or modify
+# it under the terms of the GNU General Public License as published by
+# the Free Software Foundation, either version 3 of the License, or
+# (at your option) any later version.
+
+# This program is distributed in the hope that it will be useful,
+# but WITHOUT ANY WARRANTY; without even the implied warranty of
+# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
+# GNU General Public License for more details.
+
+# You should have received a copy of the GNU General Public License
+# along with this program. If not, see <http://www.gnu.org/licenses/>.
+
+. "${srcdir=.}/tests/init.sh"; path_prepend_ ./src
+print_ver_ cat
+
+# Use a fifo rather than a pipe in the tests below
+# so that the producer (cat) will wait until the
+# consumer (dd) opens the fifo therefore increasing
+# the chance that dd will read the data from each
+# write separately.
+mkfifo_or_skip_ fifo
+
+# Terminate any background cp process
+cleanup_() { kill $pid 2>/dev/null && wait $pid; }
+
+echo 1 > exp
+
+cat_buf_1()
+{
+ local delay="$1"
+
+ > out || framework_failure_
+ dd count=1 if=fifo > out & pid=$!
+ (echo 1; sleep $delay; echo 2) | cat -v > fifo
+ wait $pid
+ compare exp out
+}
+
+retry_delay_ cat_buf_1 .1 6 || fail=1
+
+Exit $fail
diff --git a/tests/misc/cat-proc b/tests/misc/cat-proc
deleted file mode 100755
index 22f3847..0000000
--- a/tests/misc/cat-proc
+++ /dev/null
@@ -1,60 +0,0 @@
-#!/bin/sh
-# Ensure that cat -E produces same output as cat, module `$'s,
-# even when applied to a file in /proc.
-
-# Copyright (C) 2006 Free Software Foundation, Inc.
-
-# This program is free software; you can redistribute it and/or modify
-# it under the terms of the GNU General Public License as published by
-# the Free Software Foundation; either version 2 of the License, or
-# (at your option) any later version.
-
-# This program is distributed in the hope that it will be useful,
-# but WITHOUT ANY WARRANTY; without even the implied warranty of
-# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
-# GNU General Public License for more details.
-
-# You should have received a copy of the GNU General Public License
-# along with this program; if not, write to the Free Software
-# Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA
-# 02110-1301, USA.
-
-if test "$VERBOSE" = yes; then
- set -x
- cat --version
-fi
-
-pwd=`pwd`
-t0=`echo "$0"|sed 's,.*/,,'`.tmp; tmp=$t0/$$
-trap 'status=$?; cd "$pwd" && chmod -R u+rwx $t0 && rm -rf $t0 && exit $status' 0
-trap '(exit $?); exit $?' 1 2 13 15
-
-framework_failure=0
-mkdir -p $tmp || framework_failure=1
-cd $tmp || framework_failure=1
-
-if test $framework_failure = 1; then
- echo "$0: failure in testing framework" 1>&2
- (exit 1); exit 1
-fi
-
-f=/proc/cpuinfo
-test -f $f \
- || {
- echo "$0: no $f skipping this test" 1>&2
- (exit 77); exit 77
- }
-
-fail=0
-
-# Yes, parts of /proc/cpuinfo might change between cat runs.
-# If that happens, consider choosing a file that's less likely to change,
-# or just filter out the changing lines. The sed filter should help
-# to avoid any spurious numeric differences.
-cat -E $f | sed 's/[0-9][0-9]*/D/g' | tr -d '$' > out || fail=1
-cat $f | sed 's/[0-9][0-9]*/D/g' | tr -d '$' > exp || fail=1
-
-cmp out exp || fail=1
-test $fail = 1 && diff out exp 2> /dev/null
-
-(exit $fail); exit $fail
diff --git a/tests/misc/cat-proc.sh b/tests/misc/cat-proc.sh
new file mode 100755
index 0000000..c91939d
--- /dev/null
+++ b/tests/misc/cat-proc.sh
@@ -0,0 +1,38 @@
+#!/bin/sh
+# Ensure that cat -E produces same output as cat, module '$'s,
+# even when applied to a file in /proc.
+
+# Copyright (C) 2006-2016 Free Software Foundation, Inc.
+
+# This program is free software: you can redistribute it and/or modify
+# it under the terms of the GNU General Public License as published by
+# the Free Software Foundation, either version 3 of the License, or
+# (at your option) any later version.
+
+# This program is distributed in the hope that it will be useful,
+# but WITHOUT ANY WARRANTY; without even the implied warranty of
+# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
+# GNU General Public License for more details.
+
+# You should have received a copy of the GNU General Public License
+# along with this program. If not, see <http://www.gnu.org/licenses/>.
+
+. "${srcdir=.}/tests/init.sh"; path_prepend_ ./src
+print_ver_ cat
+
+
+f=/proc/cpuinfo
+test -f $f \
+ || skip_ "no $f"
+
+
+# Yes, parts of /proc/cpuinfo might change between cat runs.
+# If that happens, consider choosing a file that's less likely to change,
+# or just filter out the changing lines. The sed filter should help
+# to avoid any spurious numeric differences.
+cat -E $f | sed 's/[0-9][0-9]*/D/g' | tr -d '$' > out || fail=1
+cat $f | sed 's/[0-9][0-9]*/D/g' | tr -d '$' > exp || fail=1
+
+compare exp out || fail=1
+
+Exit $fail
diff --git a/tests/misc/cat-self.sh b/tests/misc/cat-self.sh
new file mode 100755
index 0000000..4cd162e
--- /dev/null
+++ b/tests/misc/cat-self.sh
@@ -0,0 +1,33 @@
+#!/bin/sh
+# Check that cat operates correctly when the input is the same as the output.
+
+# Copyright 2014-2016 Free Software Foundation, Inc.
+
+# This program is free software: you can redistribute it and/or modify
+# it under the terms of the GNU General Public License as published by
+# the Free Software Foundation, either version 3 of the License, or
+# (at your option) any later version.
+
+# This program is distributed in the hope that it will be useful,
+# but WITHOUT ANY WARRANTY; without even the implied warranty of
+# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
+# GNU General Public License for more details.
+
+# You should have received a copy of the GNU General Public License
+# along with this program. If not, see <http://www.gnu.org/licenses/>.
+
+. "${srcdir=.}/tests/init.sh"; path_prepend_ ./src
+print_ver_ cat
+
+echo x >out || framework_failure_
+echo x >out1 || framework_failure_
+returns_ 1 cat out >>out || fail=1
+compare out out1 || fail=1
+
+# This example is taken from the POSIX spec for 'cat'.
+echo x >doc || framework_failure_
+echo y >doc.end || framework_failure_
+cat doc doc.end >doc || fail=1
+compare doc doc.end || fail=1
+
+Exit $fail
diff --git a/tests/misc/chcon-fail.sh b/tests/misc/chcon-fail.sh
new file mode 100755
index 0000000..0bcfaee
--- /dev/null
+++ b/tests/misc/chcon-fail.sh
@@ -0,0 +1,37 @@
+#!/bin/sh
+# Ensure that chcon fails when it should.
+# These tests don't use any actual SE Linux syscalls.
+
+# Copyright (C) 2007-2016 Free Software Foundation, Inc.
+
+# This program is free software: you can redistribute it and/or modify
+# it under the terms of the GNU General Public License as published by
+# the Free Software Foundation, either version 3 of the License, or
+# (at your option) any later version.
+
+# This program is distributed in the hope that it will be useful,
+# but WITHOUT ANY WARRANTY; without even the implied warranty of
+# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
+# GNU General Public License for more details.
+
+# You should have received a copy of the GNU General Public License
+# along with this program. If not, see <http://www.gnu.org/licenses/>.
+
+. "${srcdir=.}/tests/init.sh"; path_prepend_ ./src
+print_ver_ chcon
+
+
+# neither context nor file
+returns_ 1 chcon 2> /dev/null || fail=1
+
+# No file
+returns_ 1 chcon CON 2> /dev/null || fail=1
+
+# No file
+touch f
+returns_ 1 chcon --reference=f 2> /dev/null || fail=1
+
+# No file
+returns_ 1 chcon -u anyone 2> /dev/null || fail=1
+
+Exit $fail
diff --git a/tests/misc/chcon.sh b/tests/misc/chcon.sh
new file mode 100755
index 0000000..bd40fbc
--- /dev/null
+++ b/tests/misc/chcon.sh
@@ -0,0 +1,77 @@
+#!/bin/sh
+# exercise chcon
+
+# Copyright (C) 2007-2016 Free Software Foundation, Inc.
+
+# This program is free software: you can redistribute it and/or modify
+# it under the terms of the GNU General Public License as published by
+# the Free Software Foundation, either version 3 of the License, or
+# (at your option) any later version.
+
+# This program is distributed in the hope that it will be useful,
+# but WITHOUT ANY WARRANTY; without even the implied warranty of
+# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
+# GNU General Public License for more details.
+
+# You should have received a copy of the GNU General Public License
+# along with this program. If not, see <http://www.gnu.org/licenses/>.
+
+. "${srcdir=.}/tests/init.sh"; path_prepend_ ./src
+print_ver_ chcon
+require_root_
+require_selinux_
+skip_if_mcstransd_is_running_
+
+mkdir -p d/sub/s2 || framework_failure_
+touch f g d/sub/1 d/sub/2 || framework_failure_
+
+
+# Set to a specified context.
+# Use root:object_r:tmp_t:s0. It is special in that
+# it works even when mcstransd isn't running.
+u1=root
+r1=object_r
+t1=tmp_t
+range=s0
+ctx=$u1:$r1:$t1:$range
+chcon $ctx f || fail=1
+stat --printf='f|%C\n' f > out || fail=1
+
+# Use --reference.
+chcon --ref=f g || fail=1
+stat --printf='g|%C\n' g >> out || fail=1
+
+# Change the individual parts of the context, one by one.
+u2=user_u
+r2=object_r
+t2=unlabeled_t
+for i in --user=$u2 --role=$r2 --type=$t2 --range=$range; do
+ chcon $i f || fail=1
+ stat --printf="f|$i|"'%C\n' f >> out || fail=1
+done
+
+# Same, but change back using the short-named options.
+for i in -u$u1 -r$r1 -t$t1; do
+ chcon $i f || fail=1
+ stat --printf="f|$i|"'%C\n' f >> out || fail=1
+done
+
+cat <<EOF > exp || fail=1
+f|$ctx
+g|$ctx
+f|--user=$u2|$u2:$r1:$t1:$range
+f|--role=$r2|$u2:$r2:$t1:$range
+f|--type=$t2|$u2:$r2:$t2:$range
+f|--range=$range|$u2:$r2:$t2:$range
+f|-uroot|root:object_r:$t2:$range
+f|-robject_r|root:object_r:$t2:$range
+f|-ttmp_t|root:object_r:tmp_t:$range
+EOF
+
+compare exp out || fail=1
+
+chcon --verbose -u$u1 f > out || fail=1
+echo "changing security context of 'f'" > exp
+compare exp out || fail=1
+
+Exit $fail
diff --git a/tests/misc/chroot-credentials.sh b/tests/misc/chroot-credentials.sh
new file mode 100755
index 0000000..3188876
--- /dev/null
+++ b/tests/misc/chroot-credentials.sh
@@ -0,0 +1,120 @@
+#!/bin/sh
+# Verify that the credentials are changed correctly.
+
+# Copyright (C) 2009-2016 Free Software Foundation, Inc.
+
+# This program is free software: you can redistribute it and/or modify
+# it under the terms of the GNU General Public License as published by
+# the Free Software Foundation, either version 3 of the License, or
+# (at your option) any later version.
+
+# This program is distributed in the hope that it will be useful,
+# but WITHOUT ANY WARRANTY; without even the implied warranty of
+# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
+# GNU General Public License for more details.
+
+# You should have received a copy of the GNU General Public License
+# along with this program. If not, see <http://www.gnu.org/licenses/>.
+
+
+. "${srcdir=.}/tests/init.sh"; path_prepend_ ./src
+print_ver_ chroot
+
+require_root_
+
+EXIT_CANCELED=125
+
+grep '^#define HAVE_SETGROUPS 1' "$CONFIG_HEADER" >/dev/null \
+ && HAVE_SETGROUPS=1
+
+root=$(id -nu 0) || skip_ "Couldn't look up root username"
+
+# verify numeric IDs looked up similarly to names
+NON_ROOT_UID=$(id -u $NON_ROOT_USERNAME)
+NON_ROOT_GROUP=$NON_ROOT_GID # Used where we want name lookups to occur
+
+# "uid:" is supported (unlike chown etc.) since we treat it like "uid"
+chroot --userspec=$NON_ROOT_UID: / true || fail=1
+
+# verify that invalid groups are diagnosed
+for g in ' ' ',' '0trail'; do
+ returns_ $EXIT_CANCELED chroot --groups="$g" / id -G >invalid || fail=1
+ compare /dev/null invalid || fail=1
+done
+
+# Verify that root credentials are kept.
+test $(chroot / whoami) = "$root" || fail=1
+test "$(groups)" = "$(chroot / groups)" || fail=1
+
+# Verify that credentials are changed correctly.
+whoami_after_chroot=$(
+ chroot --userspec=$NON_ROOT_USERNAME:$NON_ROOT_GROUP / whoami
+)
+test "$whoami_after_chroot" != "$root" || fail=1
+
+# Verify that when specifying only a group we don't change the
+# list of supplemental groups
+test "$(chroot --userspec=:$NON_ROOT_GROUP / id -G)" = \
+ "$NON_ROOT_GID $(id -G)" || fail=1
+
+if ! test "$HAVE_SETGROUPS"; then
+ Exit $fail
+fi
+
+
+# Verify that there are no additional groups.
+id_G_after_chroot=$(
+ chroot --userspec=$NON_ROOT_USERNAME:$NON_ROOT_GROUP \
+ --groups=$NON_ROOT_GROUP / id -G
+)
+test "$id_G_after_chroot" = $NON_ROOT_GID || fail=1
+
+# Verify that when specifying only the user name we get all their groups
+test "$(chroot --userspec=$NON_ROOT_USERNAME / id -G)" = \
+ "$(id -G $NON_ROOT_USERNAME)" || fail=1
+
+# Ditto with trailing : on the user name.
+test "$(chroot --userspec=$NON_ROOT_USERNAME: / id -G)" = \
+ "$(id -G $NON_ROOT_USERNAME)" || fail=1
+
+# Verify that when specifying only the user and clearing supplemental groups
+# that we only get the primary group
+test "$(chroot --userspec=$NON_ROOT_USERNAME --groups='' / id -G)" = \
+ $NON_ROOT_GID || fail=1
+
+# Verify that when specifying only the UID we get all their groups
+test "$(chroot --userspec=$NON_ROOT_UID / id -G)" = \
+ "$(id -G $NON_ROOT_USERNAME)" || fail=1
+
+# Verify that when specifying only the user and clearing supplemental groups
+# that we only get the primary group. Note this variant with prepended '+'
+# results in no lookups in the name database which could be useful depending
+# on your chroot setup.
+test "$(chroot --userspec=+$NON_ROOT_UID:+$NON_ROOT_GID --groups='' / id -G)" =\
+ $NON_ROOT_GID || fail=1
+
+# Verify that when specifying only a group we get the current user ID
+test "$(chroot --userspec=:$NON_ROOT_GROUP / id -u)" = "$(id -u)" \
+ || fail=1
+
+# verify that arbitrary numeric IDs are supported
+test "$(chroot --userspec=1234:+5678 --groups=' +8765,4321' / id -G)" \
+ || fail=1
+
+# demonstrate that extraneous commas are supported
+test "$(chroot --userspec=1234:+5678 --groups=',8765,,4321,' / id -G)" \
+ || fail=1
+
+# demonstrate that --groups is not cumulative
+test "$(chroot --groups='invalid ignored' --groups='' / id -G)" \
+ || fail=1
+
+if ! id -u +12342; then
+ # Ensure supplemental groups cleared from some arbitrary unknown ID
+ test "$(chroot --userspec=+12342:+5678 / id -G)" = '5678' || fail=1
+
+ # Ensure we fail when we don't know what groups to set for an unknown ID
+ returns_ $EXIT_CANCELED chroot --userspec=+12342 / true || fail=1
+fi
+
+Exit $fail
diff --git a/tests/misc/chroot-fail.sh b/tests/misc/chroot-fail.sh
new file mode 100755
index 0000000..bb840c7
--- /dev/null
+++ b/tests/misc/chroot-fail.sh
@@ -0,0 +1,68 @@
+#!/bin/sh
+# Verify that internal failure in chroot gives exact status.
+
+# Copyright (C) 2009-2016 Free Software Foundation, Inc.
+
+# This program is free software: you can redistribute it and/or modify
+# it under the terms of the GNU General Public License as published by
+# the Free Software Foundation, either version 3 of the License, or
+# (at your option) any later version.
+
+# This program is distributed in the hope that it will be useful,
+# but WITHOUT ANY WARRANTY; without even the implied warranty of
+# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
+# GNU General Public License for more details.
+
+# You should have received a copy of the GNU General Public License
+# along with this program. If not, see <http://www.gnu.org/licenses/>.
+
+
+. "${srcdir=.}/tests/init.sh"; path_prepend_ ./src
+print_ver_ chroot pwd
+
+# These tests verify exact status of internal failure; since none of
+# them actually run a command, we don't need root privileges
+chroot # missing argument
+test $? = 125 || fail=1
+chroot --- / true # unknown option
+test $? = 125 || fail=1
+
+# chroot("/") succeeds for non-root users on some systems, but not all.
+if chroot / true ; then
+ can_chroot_root=1
+ chroot / sh -c 'exit 2' # exit status propagation
+ test $? = 2 || fail=1
+ chroot / . # invalid command
+ test $? = 126 || fail=1
+ chroot / no_such # no such command
+ test $? = 127 || fail=1
+else
+ test $? = 125 || fail=1
+ can_chroot_root=0
+fi
+
+# Ensure that --skip-chdir fails with a non-"/" argument.
+cat <<\EOF > exp || framework_failure_
+chroot: option --skip-chdir only permitted if NEWROOT is old '/'
+Try 'chroot --help' for more information.
+EOF
+chroot --skip-chdir . env pwd >out 2>err && fail=1
+compare /dev/null out || fail=1
+compare exp err || fail=1
+
+# Ensure we chdir("/") appropriately when NEWROOT is old "/".
+if test $can_chroot_root = 1; then
+ ln -s / isroot || framework_failure_
+ for dir in '/' '/.' '/../' isroot; do
+ # Verify that chroot(1) succeeds and performs chdir("/")
+ # (chroot(1) of coreutils-8.23 failed to run the latter).
+ curdir=$(chroot "$dir" env pwd) || fail=1
+ test "$curdir" = '/' || fail=1
+
+ # Test the "--skip-chdir" option.
+ curdir=$(chroot --skip-chdir "$dir" env pwd) || fail=1
+ test "$curdir" = '/' && fail=1
+ done
+fi
+
+Exit $fail
diff --git a/tests/misc/close-stdout b/tests/misc/close-stdout
deleted file mode 100755
index dd8bbc5..0000000
--- a/tests/misc/close-stdout
+++ /dev/null
@@ -1,77 +0,0 @@
-#!/bin/sh
-# Ensure that several programs work fine, even with stdout initially closed.
-# This is effectively a test of closeout.c's close_stdout function.
-
-# Copyright (C) 2004, 2006 Free Software Foundation, Inc.
-
-# This program is free software; you can redistribute it and/or modify
-# it under the terms of the GNU General Public License as published by
-# the Free Software Foundation; either version 2 of the License, or
-# (at your option) any later version.
-
-# This program is distributed in the hope that it will be useful,
-# but WITHOUT ANY WARRANTY; without even the implied warranty of
-# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
-# GNU General Public License for more details.
-
-# You should have received a copy of the GNU General Public License
-# along with this program; if not, write to the Free Software
-# Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA
-# 02110-1301, USA.
-
-if test "$VERBOSE" = yes; then
- set -x
- rm --version
-fi
-
-pwd=`pwd`
-t0=`echo "$0"|sed 's,.*/,,'`.tmp; tmp=$t0/$$
-trap 'status=$?; cd "$pwd" && chmod -R u+rwx $t0 && rm -rf $t0 && exit $status' 0
-trap '(exit $?); exit $?' 1 2 13 15
-
-framework_failure=0
-mkdir -p $tmp || framework_failure=1
-cd $tmp || framework_failure=1
-
-if test $framework_failure = 1; then
- echo "$0: failure in testing framework" 1>&2
- (exit 1); exit 1
-fi
-
-PATH="$pwd/../..:$PATH"
-export PATH
-
-fail=0
-
-# Ensure these exit successfully, even though stdout is closed,
-# because they generate no output.
-touch a
-cp a b >&- || fail=1
-test -f b || fail=1
-chmod o-w . >&- || fail=1
-ln a c >&- || fail=1
-rm c >&- || fail=1
-mkdir d >&- || fail=1
-mv d e >&- || fail=1
-rmdir e >&- || fail=1
-touch e >&- || fail=1
-sleep 0 >&- || fail=1
-"$pwd/../../src/true" >&- || fail=1
-"$pwd/../../src/printf" '' >&- || fail=1
-
-# If >&- works, ensure these fail, because stdout is closed and they
-# *do* generate output. >&- apparently does not work in HP-UX 11.23.
-# This test is ineffective unless /dev/stdout also works.
-if "$pwd/../../src/test" -w /dev/stdout >/dev/null &&
- "$pwd/../../src/test" ! -w /dev/stdout >&-; then
- "$pwd/../../src/printf" 'foo' >&- 2>/dev/null && fail=1
- cp --verbose a b >&- 2>/dev/null && fail=1
-fi
-
-# Likewise for /dev/full, if /dev/full works.
-if test -w /dev/full && test -c /dev/full; then
- "$pwd/../../src/printf" 'foo' >/dev/full 2>/dev/null && fail=1
- cp --verbose a b >/dev/full 2>/dev/null && fail=1
-fi
-
-(exit $fail); exit $fail
diff --git a/tests/misc/close-stdout.sh b/tests/misc/close-stdout.sh
new file mode 100755
index 0000000..166041b
--- /dev/null
+++ b/tests/misc/close-stdout.sh
@@ -0,0 +1,65 @@
+#!/bin/sh
+# Ensure that several programs work fine, even with stdout initially closed.
+# This is effectively a test of closeout.c's close_stdout function.
+
+# Copyright (C) 2004-2016 Free Software Foundation, Inc.
+
+# This program is free software: you can redistribute it and/or modify
+# it under the terms of the GNU General Public License as published by
+# the Free Software Foundation, either version 3 of the License, or
+# (at your option) any later version.
+
+# This program is distributed in the hope that it will be useful,
+# but WITHOUT ANY WARRANTY; without even the implied warranty of
+# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
+# GNU General Public License for more details.
+
+# You should have received a copy of the GNU General Public License
+# along with this program. If not, see <http://www.gnu.org/licenses/>.
+
+. "${srcdir=.}/tests/init.sh"; path_prepend_ ./src
+print_ver_ rm
+
+p=$abs_top_builddir
+
+
+# Ensure these exit successfully, even though stdout is closed,
+# because they generate no output.
+touch a
+cp a b >&- || fail=1
+test -f b || fail=1
+chmod o-w . >&- || fail=1
+ln a c >&- || fail=1
+rm c >&- || fail=1
+mkdir d >&- || fail=1
+mv d e >&- || fail=1
+rmdir e >&- || fail=1
+touch e >&- || fail=1
+sleep 0 >&- || fail=1
+"$p/src/true" >&- || fail=1
+"$p/src/printf" '' >&- || fail=1
+
+# If >&- works, ensure these fail, because stdout is closed and they
+# *do* generate output. >&- apparently does not work in HP-UX 11.23.
+# This test is ineffective unless /dev/stdout also works.
+if "$p/src/test" -w /dev/stdout >/dev/null &&
+ "$p/src/test" ! -w /dev/stdout >&-; then
+ returns_ 1 "$p/src/printf" 'foo' >&- 2>/dev/null || fail=1
+ returns_ 1 cp --verbose a b >&- 2>/dev/null || fail=1
+ rm -Rf tmpfile-?????? || fail=1
+ returns_ 1 mktemp tmpfile-XXXXXX >&- 2>/dev/null || fail=1
+ returns_ 1 mktemp tmpfile-XXXXXX -q >&- 2>/dev/null || fail=1
+ case $(echo tmpfile-??????) in 'tmpfile-??????') ;; *) fail=1 ;; esac
+fi
+
+# Likewise for /dev/full, if /dev/full works.
+if test -w /dev/full && test -c /dev/full; then
+ returns_ 1 "$p/src/printf" 'foo' >/dev/full 2>/dev/null || fail=1
+ returns_ 1 cp --verbose a b >/dev/full 2>/dev/null || fail=1
+ rm -Rf tmpdir-?????? || fail=1
+ returns_ 1 mktemp -d tmpdir-XXXXXX >/dev/full 2>/dev/null || fail=1
+ returns_ 1 mktemp -d -q tmpdir-XXXXXX >/dev/full 2>/dev/null || fail=1
+ case $(echo tmpfile-??????) in 'tmpfile-??????') ;; *) fail=1 ;; esac
+fi
+
+Exit $fail
diff --git a/tests/misc/comm.pl b/tests/misc/comm.pl
new file mode 100755
index 0000000..c5cd27f
--- /dev/null
+++ b/tests/misc/comm.pl
@@ -0,0 +1,157 @@
+#!/usr/bin/perl
+# -*- perl -*-
+# Test comm
+
+# Copyright (C) 2008-2016 Free Software Foundation, Inc.
+
+# This program is free software: you can redistribute it and/or modify
+# it under the terms of the GNU General Public License as published by
+# the Free Software Foundation, either version 3 of the License, or
+# (at your option) any later version.
+
+# This program is distributed in the hope that it will be useful,
+# but WITHOUT ANY WARRANTY; without even the implied warranty of
+# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
+# GNU General Public License for more details.
+
+# You should have received a copy of the GNU General Public License
+# along with this program. If not, see <http://www.gnu.org/licenses/>.
+
+require 5.003;
+use strict;
+
+(my $program_name = $0) =~ s|.*/||;
+
+my $prog = 'comm';
+
+# Turn off localization of executable's ouput.
+@ENV{qw(LANGUAGE LANG LC_ALL)} = ('C') x 3;
+
+my @inputs = ({IN=>{a=>"1\n3"}}, {IN=>{b=>"2\n3"}});
+my @zinputs = ({IN=>{za=>"1\0003"}}, {IN=>{zb=>"2\0003"}});
+
+my @Tests =
+ (
+ # basic operation
+ ['basic', @inputs, {OUT=>"1\n\t2\n\t\t3\n"} ],
+ ['zbasic', '-z', @zinputs, {OUT=>"1\0\t2\0\t\t3\0"} ],
+
+ # suppress lines unique to file 1
+ ['opt-1', '-1', @inputs, {OUT=>"2\n\t3\n"} ],
+ ['zopt-1', '-z', '-1', @zinputs, {OUT=>"2\0\t3\0"} ],
+
+ # suppress lines unique to file 2
+ ['opt-2', '-2', @inputs, {OUT=>"1\n\t3\n"} ],
+
+ # suppress lines that appear in both files
+ ['opt-3', '-3', @inputs, {OUT=>"1\n\t2\n"} ],
+
+ # suppress lines unique to file 1 and lines unique to file 2
+ ['opt-12', '-1', '-2', @inputs, {OUT=>"3\n"} ],
+
+ # suppress lines unique to file 1 and those that appear in both files
+ ['opt-13', '-1', '-3', @inputs, {OUT=>"2\n"} ],
+
+ # suppress lines unique to file 2 and those that appear in both files
+ ['opt-23', '-2', '-3', @inputs, {OUT=>"1\n"} ],
+
+ # suppress all output (really?)
+ ['opt-123', '-1', '-2', '-3', @inputs, {OUT=>""} ],
+
+ # invalid missing command line argument (1)
+ ['missing-arg1', $inputs[0], {EXIT=>1},
+ {ERR => "$prog: missing operand after 'a'\n"
+ . "Try '$prog --help' for more information.\n"}],
+
+ # invalid missing command line argument (both)
+ ['missing-arg2', {EXIT=>1},
+ {ERR => "$prog: missing operand\n"
+ . "Try '$prog --help' for more information.\n"}],
+
+ # invalid extra command line argument
+ ['extra-arg', @inputs, 'no-such', {EXIT=>1},
+ {ERR => "$prog: extra operand 'no-such'\n"
+ . "Try '$prog --help' for more information.\n"}],
+
+ # out-of-order input
+ ['ooo', {IN=>{a=>"1\n3"}}, {IN=>{b=>"3\n2"}}, {EXIT=>1},
+ {OUT => "1\n\t\t3\n\t2\n"},
+ {ERR => "$prog: file 2 is not in sorted order\n"}],
+
+ # out-of-order input, fatal
+ ['ooo2', '--check-order', {IN=>{a=>"1\n3"}}, {IN=>{b=>"3\n2"}}, {EXIT=>1},
+ {OUT => "1\n\t\t3\n"},
+ {ERR => "$prog: file 2 is not in sorted order\n"}],
+
+ # out-of-order input, ignored
+ ['ooo3', '--nocheck-order', {IN=>{a=>"1\n3"}}, {IN=>{b=>"3\n2"}},
+ {OUT => "1\n\t\t3\n\t2\n"}],
+
+ # both inputs out-of-order
+ ['ooo4', {IN=>{a=>"3\n1\n0"}}, {IN=>{b=>"3\n2\n0"}}, {EXIT=>1},
+ {OUT => "\t\t3\n1\n0\n\t2\n\t0\n"},
+ {ERR => "$prog: file 1 is not in sorted order\n".
+ "$prog: file 2 is not in sorted order\n" }],
+
+ # both inputs out-of-order on last pair
+ ['ooo5', {IN=>{a=>"3\n1"}}, {IN=>{b=>"3\n2"}}, {EXIT=>1},
+ {OUT => "\t\t3\n1\n\t2\n"},
+ {ERR => "$prog: file 1 is not in sorted order\n".
+ "$prog: file 2 is not in sorted order\n" }],
+
+ # first input out-of-order extended
+ ['ooo5b', {IN=>{a=>"0\n3\n1"}}, {IN=>{b=>"2\n3"}}, {EXIT=>1},
+ {OUT => "0\n\t2\n\t\t3\n1\n"},
+ {ERR => "$prog: file 1 is not in sorted order\n"}],
+
+ # second input out-of-order extended
+ ['ooo5c', {IN=>{a=>"0\n3"}}, {IN=>{b=>"2\n3\n1"}}, {EXIT=>1},
+ {OUT => "0\n\t2\n\t\t3\n\t1\n"},
+ {ERR => "$prog: file 2 is not in sorted order\n"}],
+
+ # both inputs out-of-order, but fully pairable
+ ['ooo6', {IN=>{a=>"2\n1\n0"}}, {IN=>{b=>"2\n1\n0"}}, {EXIT=>0},
+ {OUT => "\t\t2\n\t\t1\n\t\t0\n"}],
+
+ # both inputs out-of-order, fully pairable, but forced to fail
+ ['ooo7', '--check-order', {IN=>{a=>"2\n1\n0"}}, {IN=>{b=>"2\n1\n0"}},
+ {EXIT=>1},
+ {OUT => "\t\t2\n"},
+ {ERR => "$prog: file 1 is not in sorted order\n"}],
+
+ # out-of-order, line 2 is a prefix of line 1
+ # until coreutils-7.2, this test would fail -- no disorder detected
+ ['ooo-prefix', '--check-order', {IN=>{a=>"Xa\nX\n"}}, {IN=>{b=>""}},
+ {EXIT=>1},
+ {OUT => "Xa\n"},
+ {ERR => "$prog: file 1 is not in sorted order\n"}],
+
+ # alternate delimiter: ','
+ ['delim-comma', '--output-delimiter=,', @inputs,
+ {OUT=>"1\n,2\n,,3\n"} ],
+
+ # two-character alternate delimiter: '++'
+ ['delim-2char', '--output-delimiter=++', @inputs,
+ {OUT=>"1\n++2\n++++3\n"} ],
+
+ # NUL delimiter
+ ['delim-empty', '--output-delimiter=', @inputs,
+ {OUT=>"1\n\0002\n\000\0003\n"} ],
+ ['zdelim-empty', '-z', '-z --output-delimiter=', @zinputs,
+ {OUT=>"1\000\0002\000\000\0003\000"} ],
+
+ # invalid dual delimiter
+ ['delim-dual', '--output-delimiter=,', '--output-delimiter=+', @inputs,
+ {EXIT=>1}, {ERR => "$prog: multiple output delimiters specified\n"}],
+
+ # valid dual delimiter specification
+ ['delim-dual2', '--output-delimiter=,', '--output-delimiter=,', @inputs,
+ {OUT=>"1\n,2\n,,3\n"} ],
+
+ );
+
+my $save_temps = $ENV{DEBUG};
+my $verbose = $ENV{VERBOSE};
+
+my $fail = run_tests ($program_name, $prog, \@Tests, $save_temps, $verbose);
+exit $fail;
diff --git a/tests/misc/coreutils.sh b/tests/misc/coreutils.sh
new file mode 100755
index 0000000..bcddcf3
--- /dev/null
+++ b/tests/misc/coreutils.sh
@@ -0,0 +1,36 @@
+#!/bin/sh
+# Verify behavior of separate coreutils multicall binary
+
+# Copyright (C) 2014-2016 Free Software Foundation, Inc.
+
+# This program is free software: you can redistribute it and/or modify
+# it under the terms of the GNU General Public License as published by
+# the Free Software Foundation, either version 3 of the License, or
+# (at your option) any later version.
+
+# This program is distributed in the hope that it will be useful,
+# but WITHOUT ANY WARRANTY; without even the implied warranty of
+# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
+# GNU General Public License for more details.
+
+# You should have received a copy of the GNU General Public License
+# along with this program. If not, see <http://www.gnu.org/licenses/>.
+
+
+. "${srcdir=.}/tests/init.sh"; path_prepend_ ./src
+print_ver_ coreutils
+
+test -s "$abs_top_builddir/src/coreutils.h" \
+ || skip_ "multicall binary is disabled"
+
+# Yes outputs all its params so is good to verify argv manipulations
+echo 'y' > exp
+coreutils --coreutils-prog=yes | head -n10 | uniq > out
+compare exp out || fail=1
+
+# Ensure if incorrect program passed, we diagnose
+echo "coreutils: unknown program 'blah'" > exp
+coreutils --coreutils-prog='blah' --help 2>err && fail=1
+compare exp err || fail=1
+
+Exit $fail
diff --git a/tests/misc/csplit b/tests/misc/csplit
deleted file mode 100755
index 885d692..0000000
--- a/tests/misc/csplit
+++ /dev/null
@@ -1,116 +0,0 @@
-#!/bin/sh
-# various csplit tests
-
-# Copyright (C) 2001, 2002, 2003, 2004, 2005 2006 Free Software
-# Foundation, Inc.
-
-# This program is free software; you can redistribute it and/or modify
-# it under the terms of the GNU General Public License as published by
-# the Free Software Foundation; either version 2 of the License, or
-# (at your option) any later version.
-
-# This program is distributed in the hope that it will be useful,
-# but WITHOUT ANY WARRANTY; without even the implied warranty of
-# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
-# GNU General Public License for more details.
-
-# You should have received a copy of the GNU General Public License
-# along with this program; if not, write to the Free Software
-# Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA
-# 02110-1301, USA.
-
-if test "$VERBOSE" = yes; then
- set -x
- csplit --version
-fi
-
-. $srcdir/../lang-default
-
-pwd=`pwd`
-tmp=csplit.$$
-trap 'status=$?; cd "$pwd" && rm -rf $tmp && exit $status' 0
-trap '(exit $?); exit' 1 2 13 15
-
-framework_failure=0
-mkdir $tmp || framework_failure=1
-cd $tmp || framework_failure=1
-
-if test $framework_failure = 1; then
- echo "$0: failure in testing framework" 1>&2
- (exit 1); exit 1
-fi
-
-fail=0
-
-# csplit could get a failed assertion to 2.0.17
-(echo a; echo; echo) > in
-csplit in '/^$/' 2 > out || fail=1
-cat <<EOF > exp
-2
-0
-2
-EOF
-cmp out exp || fail=1
-test $fail = 1 && diff out exp 2> /dev/null
-rm -f in out exp
-
-# Ensure that xx02 contains just two newlines.
-# This would fail due to reading from freed buffer with coreutils-5.0.91.
-printf '\n\n' > exp
-cp xx02 out || fail=1
-cmp out exp || fail=1
-test $fail = 1 && diff out exp 2> /dev/null
-rm -f in out exp
-
-# csplit would infloop
-(echo; echo a) > in
-csplit in '/a/-1' '{*}' > out || fail=1
-cat <<EOF > exp
-0
-3
-EOF
-cmp out exp || fail=1
-test $fail = 1 && diff out exp 2> /dev/null
-rm -f in out exp
-
-# `echo |csplit - 1 1' used to abort.
-echo > in
-csplit in 1 1 > out 2> err || fail=1
-cat <<EOF > exp
-0
-0
-1
-EOF
-cmp out exp || fail=1
-test $fail = 1 && diff out exp 2> /dev/null
-cat <<\EOF > experr
-csplit: warning: line number `1' is the same as preceding line number
-EOF
-cmp err experr || fail=1
-test $fail = 1 && diff err experr 2> /dev/null
-rm -f in out exp err experr
-
-# make sure `csplit FILE 0' fails.
-echo > in
-csplit in 0 > out 2> err && fail=1
-csplit in 2 1 > out 2>> err && fail=1
-csplit in 3 3 > out 2>> err && fail=1
-cat <<\EOF > experr
-csplit: 0: line number must be greater than zero
-csplit: line number `1' is smaller than preceding line number, 2
-csplit: warning: line number `3' is the same as preceding line number
-csplit: `3': line number out of range
-EOF
-cmp err experr || fail=1
-test $fail = 1 && diff err experr 2> /dev/null
-
-# Ensure that lines longer than the initial buffer length don't cause
-# trouble (e.g. reading from freed memory, resulting in corrupt output).
-# This test failed at least in coreutils-5.2.1 and 5.3.0, and was fixed
-# in 5.3.1.
-rm -f in out exp err experr xx??
-printf 'x%8199s\nx\n%8199s\nx\n' x x > in
-csplit in '/x\{1\}/' '{*}' > /dev/null || fail=1
-cat xx?? | cmp - in || fail=1
-
-(exit $fail); exit $fail
diff --git a/tests/misc/csplit-1000.sh b/tests/misc/csplit-1000.sh
new file mode 100755
index 0000000..4b86b02
--- /dev/null
+++ b/tests/misc/csplit-1000.sh
@@ -0,0 +1,29 @@
+#!/bin/sh
+# cause a 1-byte heap buffer overrun
+
+# Copyright (C) 2010-2016 Free Software Foundation, Inc.
+
+# This program is free software: you can redistribute it and/or modify
+# it under the terms of the GNU General Public License as published by
+# the Free Software Foundation, either version 3 of the License, or
+# (at your option) any later version.
+
+# This program is distributed in the hope that it will be useful,
+# but WITHOUT ANY WARRANTY; without even the implied warranty of
+# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
+# GNU General Public License for more details.
+
+# You should have received a copy of the GNU General Public License
+# along with this program. If not, see <http://www.gnu.org/licenses/>.
+
+. "${srcdir=.}/tests/init.sh"; path_prepend_ ./src
+print_ver_ csplit
+
+# Before coreutils-8.7, this would overrun the 6-byte filename_space buffer.
+# It's hard to detect that without using valgrind, so here, we simply
+# run the demonstrator.
+seq 1000 | csplit - '/./' '{*}' || fail=1
+test -f xx1000 || fail=1
+test -f xx1001 && fail=1
+
+Exit $fail
diff --git a/tests/misc/csplit-heap.sh b/tests/misc/csplit-heap.sh
new file mode 100755
index 0000000..c242bd4
--- /dev/null
+++ b/tests/misc/csplit-heap.sh
@@ -0,0 +1,32 @@
+#!/bin/sh
+# ensure that csplit uses a bounded amount of memory
+
+# Copyright (C) 2010-2016 Free Software Foundation, Inc.
+
+# This program is free software: you can redistribute it and/or modify
+# it under the terms of the GNU General Public License as published by
+# the Free Software Foundation, either version 3 of the License, or
+# (at your option) any later version.
+
+# This program is distributed in the hope that it will be useful,
+# but WITHOUT ANY WARRANTY; without even the implied warranty of
+# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
+# GNU General Public License for more details.
+
+# You should have received a copy of the GNU General Public License
+# along with this program. If not, see <http://www.gnu.org/licenses/>.
+
+. "${srcdir=.}/tests/init.sh"; path_prepend_ ./src
+print_ver_ csplit
+
+# Determine basic amount of memory needed.
+{ echo y; echo n; } > f || framework_failure_
+vm=$(get_min_ulimit_v_ csplit -z f %n%1) \
+ || skip_ "this shell lacks ulimit support"
+
+(
+ ulimit -v $(($vm + 1000)) \
+ && { yes | head -n2500000; echo n; } | csplit -z - %n%1
+) || fail=1
+
+Exit $fail
diff --git a/tests/misc/csplit-io-err.sh b/tests/misc/csplit-io-err.sh
new file mode 100755
index 0000000..982df16
--- /dev/null
+++ b/tests/misc/csplit-io-err.sh
@@ -0,0 +1,78 @@
+#!/bin/sh
+# Ensure we handle i/o errors correctly in csplit
+
+# Copyright (C) 2015-2016 Free Software Foundation, Inc.
+
+# This program is free software: you can redistribute it and/or modify
+# it under the terms of the GNU General Public License as published by
+# the Free Software Foundation, either version 3 of the License, or
+# (at your option) any later version.
+
+# This program is distributed in the hope that it will be useful,
+# but WITHOUT ANY WARRANTY; without even the implied warranty of
+# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
+# GNU General Public License for more details.
+
+# You should have received a copy of the GNU General Public License
+# along with this program. If not, see <http://www.gnu.org/licenses/>.
+
+. "${srcdir=.}/tests/init.sh"; path_prepend_ ./src
+print_ver_ csplit
+require_gcc_shared_
+
+if ! test -w /dev/full || ! test -c /dev/full; then
+ skip_ '/dev/full is required'
+fi
+
+# Ensure error messages are in English
+LC_ALL=C
+export LC_ALL
+
+# Replace fwrite and ferror, always returning an error
+cat > k.c <<'EOF' || framework_failure_
+#include <stdio.h>
+#include <errno.h>
+
+#undef fwrite
+#undef fwrite_unlocked
+
+size_t
+fwrite (const void *ptr, size_t size, size_t nitems, FILE *stream)
+{
+ fclose (fopen ("preloaded","w")); /* marker for preloaded interception */
+ errno = ENOSPC;
+ return 0;
+}
+
+size_t
+fwrite_unlocked (const void *ptr, size_t size, size_t nitems, FILE *stream)
+{
+ return fwrite (ptr, size, nitems, stream);
+}
+EOF
+
+# Get the wording of the OS-dependent ENOSPC message
+returns_ 1 seq 1 >/dev/full 2>msgt || framework_failure_
+sed 's/seq: write error: //' msgt > msg || framework_failure_
+
+# Create the expected error message
+{ printf "%s" "csplit: write error for 'xx01': " ; cat msg ; } > exp \
+ || framework_failure_
+
+# compile/link the interception shared library:
+gcc_shared_ k.c k.so \
+ || skip_ 'failed to build forced-fwrite-failure shared library'
+
+# Split the input, and force fwrite() failure -
+# the 'csplit' command should fail with exit code 1
+# (checked with 'returns_ 1 ... || fail=1')
+seq 10 \
+ | LD_PRELOAD=$LD_PRELOAD:./k.so returns_ 1 csplit - 1 4 2>out \
+ || fail=1
+
+test -e preloaded || skip_ 'LD_PRELOAD interception failed'
+
+# Ensure we got the expected error message
+compare exp out || fail=1
+
+Exit $fail
diff --git a/tests/misc/csplit-suppress-matched.pl b/tests/misc/csplit-suppress-matched.pl
new file mode 100755
index 0000000..ee0ddad
--- /dev/null
+++ b/tests/misc/csplit-suppress-matched.pl
@@ -0,0 +1,213 @@
+#!/usr/bin/perl
+
+# Copyright (C) 2013-2016 Free Software Foundation, Inc.
+
+# This program is free software: you can redistribute it and/or modify
+# it under the terms of the GNU General Public License as published by
+# the Free Software Foundation, either version 3 of the License, or
+# (at your option) any later version.
+
+# This program is distributed in the hope that it will be useful,
+# but WITHOUT ANY WARRANTY; without even the implied warranty of
+# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
+# GNU General Public License for more details.
+
+# You should have received a copy of the GNU General Public License
+# along with this program. If not, see <http://www.gnu.org/licenses/>.
+
+use strict;
+use Data::Dumper;
+
+my $limits = getlimits ();
+
+my $prog = 'csplit';
+
+# Turn off localization of executable's output.
+@ENV{qw(LANGUAGE LANG LC_ALL)} = ('C') x 3;
+
+# Input from 'seq 6'
+my $IN_SEQ_6 =<<EOF;
+1
+2
+3
+4
+5
+6
+EOF
+
+# Input from a possible run of 'uniq --group'
+# (groups separated by empty lines)
+my $IN_UNIQ =<<EOF;
+a
+a
+YY
+
+XX
+b
+b
+YY
+
+XX
+c
+YY
+
+XX
+d
+d
+d
+EOF
+
+# Standard Coreutils::run_tests() structure, except the addition of
+# "OUTPUTS" array, containing the expected content of the output files.
+# See code below for conversion into PRE/CMP/POST checks.
+my @csplit_tests =
+(
+ # without --suppress-matched,
+ # the newline (matched line) appears in the output files
+ ["re-base", "-q - '/^\$/' '{*}'", {IN_PIPE => $IN_UNIQ},
+ {OUTPUTS => [ "a\na\nYY\n", "\nXX\nb\nb\nYY\n","\nXX\nc\nYY\n",
+ "\nXX\nd\nd\nd\n" ] }],
+
+ # the newline (matched line) does not appears in the output files
+ ["re-1", " --suppress-matched -q - '/^\$/' '{*}'", {IN_PIPE => $IN_UNIQ},
+ {OUTPUTS => ["a\na\nYY\n", "XX\nb\nb\nYY\n", "XX\nc\nYY\n",
+ "XX\nd\nd\nd\n"]}],
+
+ # the 'XX' (matched line + offset 1) does not appears in the output files.
+ # the newline appears in the files (before each split, at the end of the file)
+ ["re-2", "--suppress-matched -q - '/^\$/1' '{*}'", {IN_PIPE => $IN_UNIQ},
+ {OUTPUTS => ["a\na\nYY\n\n","b\nb\nYY\n\n","c\nYY\n\n","d\nd\nd\n"]}],
+
+ # the 'YY' (matched line + offset of -1) does not appears in the output files
+ # the newline appears in the files (as the first line of the new split)
+ ["re-3", " --suppress-matched -q - '/^\$/-1' '{*}'", {IN_PIPE => $IN_UNIQ},
+ {OUTPUTS => ["a\na\n", "\nXX\nb\nb\n", "\nXX\nc\n", "\nXX\nd\nd\nd\n"]}],
+
+ # Test two consecutive matched lines
+ # without suppress-matched, the second file should contain a single newline.
+ ["re-4.1", "-q - '/^\$/' '{*}'", {IN_PIPE => "a\n\n\nb\n"},
+ {OUTPUTS => [ "a\n", "\n", "\nb\n" ]}],
+ # suppress-matched will cause the second file to be empty.
+ ["re-4.2", "--suppress-match -q - '/^\$/' '{*}'", {IN_PIPE => "a\n\n\nb\n"},
+ {OUTPUTS => [ "a\n", "", "b\n" ]}],
+ # suppress-matched + elide-empty should output just two files.
+ ["re-4.3", "--suppress-match -zq - '/^\$/' '{*}'", {IN_PIPE => "a\n\n\nb\n"},
+ {OUTPUTS => [ "a\n", "b\n" ]}],
+
+
+ # Test a matched-line as the last line
+ # default: last file with newline should be created.
+ ["re-5.1", "-q - '/^\$/' '{*}'", {IN_PIPE => "a\n\nb\n\n"},
+ {OUTPUTS => [ "a\n", "\nb\n", "\n" ]}],
+ # suppress-matched - last empty files should be created.
+ ["re-5.2", "--suppress-match -q - '/^\$/' '{*}'", {IN_PIPE => "a\n\nb\n\n"},
+ {OUTPUTS => [ "a\n", "b\n", "" ]}],
+ # suppress-matched + elide-empty: just two files should be created.
+ ["re-5.3", "--suppress-match -zq - '/^\$/' '{*}'", {IN_PIPE => "a\n\nb\n\n"},
+ {OUTPUTS => [ "a\n", "b\n" ]}],
+
+ # without suppress-matched,
+ # the matched lines (2/4/6) appears in the output files
+ ["int-base", '-q - 2 4 6', {IN_PIPE => $IN_SEQ_6},
+ {OUTPUTS => [ "1\n", "2\n3\n", "4\n5\n", "6\n" ]}],
+ # suppress matched - the matching lines (2/4/6) should not appear.
+ ["int-1", '--suppress-matched -q - 2 4 6', {IN_PIPE => $IN_SEQ_6},
+ {OUTPUTS => [ "1\n", "3\n", "5\n", "" ]}],
+ # suppress matched + elide-empty
+ ["int-2", '--suppress-matched -zq - 2 4 6', {IN_PIPE => $IN_SEQ_6},
+ {OUTPUTS => [ "1\n", "3\n", "5\n" ]}],
+);
+
+
+
+=pod
+The following loop translate the above @Tests to a Cureutils::run_tests()
+compatible structure. It converts "OUTPUTS" key into "CMP" + "POST" keys:
+1. Each element in the OUTPUTS key is expected to be an output file
+ from csplit (named xx00, xx01, xx02...)
+ create a "CMP" key for each one, with the output and the filename.
+2. Add a "POST" key, ensuring no extra files have been created.
+ (e.g. if there are 4 expected outputs, xx00 to xx03,
+ ensure xx04 doesn't exist).
+3. Add a "PRE" key, deleting all existing 'xx*' files.
+
+Example:
+
+Before conversion:
+ my @csplit_tests =
+ (
+ ["1", '-z -q - 2 4 6',
+ {IN_PIPE => "1\n2\n3\n4\n5\n6\n"},
+ {OUTPUTS => [ "1\n", "2\n3\n", "4\n5\n", "6\n" ],
+ ]
+ )
+
+After conversion:
+
+ my @csplit_tests =
+ (
+ ["1", '-z -q - 2 4 6',
+ {IN_PIPE => "1\n2\n3\n4\n5\n6\n"},
+ {PRE => sub { unlink glob './xx??' ; }},
+ {CMP => ["1\n", {'xx00'=> undef}]},
+ {CMP => ["2\n3\n", {'xx01'=> undef}]},
+ {CMP => ["4\n5\n", {'xx02'=> undef}]},
+ {CMP => ["6\n", {'xx03'=> undef}]},
+ {POST => sub { die "extra file" if -e 'xx04'}},
+ ],
+ );
+=cut
+my @Tests;
+foreach my $t (@csplit_tests)
+ {
+ my ($test_name, $cmdline, @others) = @$t;
+ my $new_ent = [$test_name, $cmdline];
+
+ my $out_file_num = 0 ;
+
+ foreach my $e (@others)
+ {
+ die "Internal error: expecting a hash (e.g. IN_PIPE/OUTPUTS/ERR)" .
+ "in test '$test_name', got $e"
+ unless ref $e && (ref $e eq 'HASH');
+
+ my ($key, $value) = each %$e;
+ if ($key eq 'OUTPUTS')
+ {
+ # Convert each expected OUTPUT to a 'CMP' key.
+ foreach my $output (@$value)
+ {
+ my $filename = sprintf("xx%02d",$out_file_num++);
+ my $cmp = {CMP => [ $output, { $filename => undef}]};
+ push @$new_ent, $cmp;
+ }
+
+ # Add a 'POST' check
+ # Ensure no extra files have been created.
+ my $filename = sprintf("xx%02d",$out_file_num++);
+ my $post = { POST => sub { die "Test failed: an extraneous file " .
+ "'$filename' has been created\n"
+ if -e $filename; } } ;
+ push @$new_ent, $post;
+
+ # before running each test, cleanup the 'xx00' files
+ # from previous runs.
+ my $pre = { PRE => sub { unlink glob "./xx??"; } };
+ push @$new_ent, $pre;
+ }
+ else
+ {
+ # pass other entities as-is (e.g. OUT, ERR, OUT_SUBST, EXIT)
+ # run_tests() will know how to handle them.
+ push @$new_ent, $e;
+ }
+ }
+
+ push @Tests, $new_ent;
+ }
+
+my $save_temps = $ENV{DEBUG};
+my $verbose = $ENV{VERBOSE};
+
+my $fail = run_tests ($prog, $prog, \@Tests, $save_temps, $verbose);
+exit $fail;
diff --git a/tests/misc/csplit.sh b/tests/misc/csplit.sh
new file mode 100755
index 0000000..97ff9e6
--- /dev/null
+++ b/tests/misc/csplit.sh
@@ -0,0 +1,103 @@
+#!/bin/sh
+# various csplit tests
+
+# Copyright (C) 2001-2016 Free Software Foundation, Inc.
+
+# This program is free software: you can redistribute it and/or modify
+# it under the terms of the GNU General Public License as published by
+# the Free Software Foundation, either version 3 of the License, or
+# (at your option) any later version.
+
+# This program is distributed in the hope that it will be useful,
+# but WITHOUT ANY WARRANTY; without even the implied warranty of
+# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
+# GNU General Public License for more details.
+
+# You should have received a copy of the GNU General Public License
+# along with this program. If not, see <http://www.gnu.org/licenses/>.
+
+. "${srcdir=.}/tests/init.sh"; path_prepend_ ./src
+print_ver_ csplit
+
+
+# csplit could get a failed assertion to 2.0.17
+(echo a; echo; echo) > in
+csplit in '/^$/' 2 > out || fail=1
+cat <<EOF > exp
+2
+0
+2
+EOF
+compare exp out || fail=1
+rm -f in out exp
+
+# Ensure that xx02 contains just two newlines.
+# This would fail due to reading from freed buffer with coreutils-5.0.91.
+printf '\n\n' > exp
+cp xx02 out || fail=1
+compare exp out || fail=1
+rm -f in out exp
+
+# csplit would infloop
+(echo; echo a) > in
+csplit in '/a/-1' '{*}' > out || fail=1
+cat <<EOF > exp
+0
+3
+EOF
+compare exp out || fail=1
+rm -f in out exp
+
+# 'echo |csplit - 1 1' used to abort.
+echo > in
+csplit in 1 1 > out 2> err || fail=1
+cat <<EOF > exp
+0
+0
+1
+EOF
+compare exp out || fail=1
+cat <<\EOF > experr
+csplit: warning: line number '1' is the same as preceding line number
+EOF
+compare experr err || fail=1
+rm -f in out exp err experr
+
+# 'echo | csplit -b '%0#6.3x' - 1' incorrectly warned about the format
+# up through coreutils 8.6.
+echo > in
+csplit -b '%0#6.3x' in 1 > out 2> err || fail=1
+cat <<EOF > exp
+0
+1
+EOF
+compare exp out || fail=1
+touch experr
+compare experr err || fail=1
+compare 'xx 000' experr || fail=1
+compare 'xx 0x001' in || fail=1
+rm -f in out exp err experr xx*
+
+# make sure 'csplit FILE 0' fails.
+echo > in
+csplit in 0 > out 2> err && fail=1
+csplit in 2 1 > out 2>> err && fail=1
+csplit in 3 3 > out 2>> err && fail=1
+cat <<\EOF > experr
+csplit: 0: line number must be greater than zero
+csplit: line number '1' is smaller than preceding line number, 2
+csplit: warning: line number '3' is the same as preceding line number
+csplit: '3': line number out of range
+EOF
+compare experr err || fail=1
+
+# Ensure that lines longer than the initial buffer length don't cause
+# trouble (e.g. reading from freed memory, resulting in corrupt output).
+# This test failed at least in coreutils-5.2.1 and 5.3.0, and was fixed
+# in 5.3.1.
+rm -f in out exp err experr xx??
+printf 'x%8199s\nx\n%8199s\nx\n' x x > in
+csplit in '/x\{1\}/' '{*}' > /dev/null || fail=1
+cat xx?? | compare - in || fail=1
+
+Exit $fail
diff --git a/tests/misc/cut b/tests/misc/cut
deleted file mode 100755
index 3db4c9b..0000000
--- a/tests/misc/cut
+++ /dev/null
@@ -1,51 +0,0 @@
-#!/bin/sh
-# Test "cut". -*- perl -*-
-
-# Copyright (C) 2006 Free Software Foundation, Inc.
-
-# This program is free software; you can redistribute it and/or modify
-# it under the terms of the GNU General Public License as published by
-# the Free Software Foundation; either version 2 of the License, or
-# (at your option) any later version.
-
-# This program is distributed in the hope that it will be useful,
-# but WITHOUT ANY WARRANTY; without even the implied warranty of
-# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
-# GNU General Public License for more details.
-
-# You should have received a copy of the GNU General Public License
-# along with this program; if not, write to the Free Software
-# Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA
-# 02110-1301, USA.
-
-: ${PERL=perl}
-: ${srcdir=.}
-
-$PERL -e 1 > /dev/null 2>&1 || {
- echo 1>&2 "$0: configure didn't find a usable version of Perl," \
- "so can't run this test"
- exit 77
-}
-
-exec $PERL -w -I$srcdir/.. -MCoreutils -- - <<\EOF
-require 5.003;
-use strict;
-
-(my $ME = $0) =~ s|.*/||;
-
-# Turn off localisation of executable's ouput.
-@ENV{qw(LANGUAGE LANG LC_ALL)} = ('C') x 3;
-
-my @Tests =
- (
- # Provoke a double-free in cut from coreutils-6.7.
- ['dbl-free', '-f2-', {IN=>{f=>'x'}}, {IN=>{g=>'y'}}, {OUT=>"x\ny\n"}],
- );
-
-my $save_temps = $ENV{DEBUG};
-my $verbose = $ENV{VERBOSE};
-
-my $prog = 'cut';
-my $fail = run_tests ($ME, $prog, \@Tests, $save_temps, $verbose);
-exit $fail;
-EOF
diff --git a/tests/misc/cut-huge-range.sh b/tests/misc/cut-huge-range.sh
new file mode 100755
index 0000000..92b62a9
--- /dev/null
+++ b/tests/misc/cut-huge-range.sh
@@ -0,0 +1,66 @@
+#!/bin/sh
+# Ensure that cut does not allocate mem for large ranges
+
+# Copyright (C) 2012-2016 Free Software Foundation, Inc.
+
+# This program is free software: you can redistribute it and/or modify
+# it under the terms of the GNU General Public License as published by
+# the Free Software Foundation, either version 3 of the License, or
+# (at your option) any later version.
+
+# This program is distributed in the hope that it will be useful,
+# but WITHOUT ANY WARRANTY; without even the implied warranty of
+# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
+# GNU General Public License for more details.
+
+# You should have received a copy of the GNU General Public License
+# along with this program. If not, see <http://www.gnu.org/licenses/>.
+
+. "${srcdir=.}/tests/init.sh"; path_prepend_ ./src
+print_ver_ cut
+getlimits_
+
+vm=$(get_min_ulimit_v_ cut -b1 /dev/null) \
+ || skip_ "this shell lacks ulimit support"
+
+# sed script to subtract one from the input.
+# Each input line should consist of a positive decimal number.
+# Each output line's number is one less than the input's.
+# There's no limit (other than line length) on the number's magnitude.
+subtract_one='
+ s/$/@/
+ : again
+ s/0@/@9/
+ s/1@/0/
+ s/2@/1/
+ s/3@/2/
+ s/4@/3/
+ s/5@/4/
+ s/6@/5/
+ s/7@/6/
+ s/8@/7/
+ s/9@/8/
+ t again
+'
+
+# Ensure we can cut up to our sentinel value.
+# This is currently SIZE_MAX, but could be raised to UINTMAX_MAX
+# if we didn't allocate memory for each line as a unit.
+# Don't use expr to subtract one, since SIZE_MAX may exceed its maximum value.
+CUT_MAX=$(echo $SIZE_MAX | sed "$subtract_one")
+
+# From coreutils-8.10 through 8.20, this would make cut try to allocate
+# a 256MiB bit vector.
+(ulimit -v $vm && cut -b$CUT_MAX- /dev/null > err 2>&1) || fail=1
+
+# Up to and including coreutils-8.21, cut would allocate possibly needed
+# memory upfront. Subsequently extra memory is no longer needed.
+(ulimit -v $vm && cut -b1-$CUT_MAX /dev/null >> err 2>&1) || fail=1
+
+# Explicitly disallow values above CUT_MAX
+(ulimit -v $vm && returns_ 1 cut -b$SIZE_MAX /dev/null 2>/dev/null) || fail=1
+(ulimit -v $vm && returns_ 1 cut -b$SIZE_OFLOW /dev/null 2>/dev/null) || fail=1
+
+compare /dev/null err || fail=1
+
+Exit $fail
diff --git a/tests/misc/cut.pl b/tests/misc/cut.pl
new file mode 100755
index 0000000..f6f8a56
--- /dev/null
+++ b/tests/misc/cut.pl
@@ -0,0 +1,255 @@
+#!/usr/bin/perl
+# Test "cut".
+
+# Copyright (C) 2006-2016 Free Software Foundation, Inc.
+
+# This program is free software: you can redistribute it and/or modify
+# it under the terms of the GNU General Public License as published by
+# the Free Software Foundation, either version 3 of the License, or
+# (at your option) any later version.
+
+# This program is distributed in the hope that it will be useful,
+# but WITHOUT ANY WARRANTY; without even the implied warranty of
+# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
+# GNU General Public License for more details.
+
+# You should have received a copy of the GNU General Public License
+# along with this program. If not, see <http://www.gnu.org/licenses/>.
+
+use strict;
+
+(my $ME = $0) =~ s|.*/||;
+
+# Turn off localization of executable's output.
+@ENV{qw(LANGUAGE LANG LC_ALL)} = ('C') x 3;
+
+my $mb_locale = $ENV{LOCALE_FR_UTF8};
+! defined $mb_locale || $mb_locale eq 'none'
+ and $mb_locale = 'C';
+
+my $prog = 'cut';
+my $try = "Try '$prog --help' for more information.\n";
+my $from_field1 = "$prog: fields are numbered from 1\n$try";
+my $from_pos1 = "$prog: byte/character positions are numbered from 1\n$try";
+my $inval_fld = "$prog: invalid field range\n$try";
+my $inval_pos = "$prog: invalid byte or character range\n$try";
+my $no_endpoint = "$prog: invalid range with no endpoint: -\n$try";
+my $nofield = "$prog: an input delimiter may be specified only when " .
+ "operating on fields\n$try";
+
+my @Tests =
+ (
+ # Provoke a double-free in cut from coreutils-6.7.
+ ['dbl-free', '-f2-', {IN=>{f=>'x'}}, {IN=>{g=>'y'}}, {OUT=>"x\ny\n"}],
+
+ # This failed (as it should) even before coreutils-6.9.90,
+ # but cut from 6.9.90 produces a more useful diagnostic.
+ ['zero-1', '-b0', {ERR=>$from_pos1}, {EXIT => 1} ],
+
+ # Up to coreutils-6.9, specifying a range of 0-2 was not an error.
+ # It was treated just like "-2".
+ ['zero-2', '-f0-2', {ERR=>$from_field1}, {EXIT => 1} ],
+
+ # Up to coreutils-8.20, specifying a range of 0- was not an error.
+ ['zero-3b', '-b0-', {ERR=>$from_pos1}, {EXIT => 1} ],
+ ['zero-3c', '-c0-', {ERR=>$from_pos1}, {EXIT => 1} ],
+ ['zero-3f', '-f0-', {ERR=>$from_field1}, {EXIT => 1} ],
+
+ ['1', '-d:', '-f1,3-', {IN=>"a:b:c\n"}, {OUT=>"a:c\n"}],
+ ['2', '-d:', '-f1,3-', {IN=>"a:b:c\n"}, {OUT=>"a:c\n"}],
+ ['3', qw(-d: -f2-), {IN=>"a:b:c\n"}, {OUT=>"b:c\n"}],
+ ['4', qw(-d: -f4), {IN=>"a:b:c\n"}, {OUT=>"\n"}],
+ ['5', qw(-d: -f4), {IN=>""}, {OUT=>""}],
+ ['6', '-c4', {IN=>"123\n"}, {OUT=>"\n"}],
+ ['7', '-c4', {IN=>"123"}, {OUT=>"\n"}],
+ ['8', '-c4', {IN=>"123\n1"}, {OUT=>"\n\n"}],
+ ['9', '-c4', {IN=>""}, {OUT=>""}],
+ ['a', qw(-s -d:), '-f3-', {IN=>"a:b:c\n"}, {OUT=>"c\n"}],
+ ['b', qw(-s -d:), '-f2,3', {IN=>"a:b:c\n"}, {OUT=>"b:c\n"}],
+ ['c', qw(-s -d:), '-f1,3', {IN=>"a:b:c\n"}, {OUT=>"a:c\n"}],
+ # Trailing colon should not be output
+ ['d', qw(-s -d:), '-f1,3', {IN=>"a:b:c:\n"}, {OUT=>"a:c\n"}],
+ ['e', qw(-s -d:), '-f3-', {IN=>"a:b:c:\n"}, {OUT=>"c:\n"}],
+ ['f', qw(-s -d:), '-f3-4', {IN=>"a:b:c:\n"}, {OUT=>"c:\n"}],
+ ['g', qw(-s -d:), '-f3,4', {IN=>"a:b:c:\n"}, {OUT=>"c:\n"}],
+ # Make sure -s suppresses non-delimited lines
+ ['h', qw(-s -d:), '-f2,3', {IN=>"abc\n"}, {OUT=>""}],
+ #
+ ['i', qw(-d: -f1-3), {IN=>":::\n"}, {OUT=>"::\n"}],
+ ['j', qw(-d: -f1-4), {IN=>":::\n"}, {OUT=>":::\n"}],
+ ['k', qw(-d: -f2-3), {IN=>":::\n"}, {OUT=>":\n"}],
+ ['l', qw(-d: -f2-4), {IN=>":::\n"}, {OUT=>"::\n"}],
+ ['m', qw(-s -d: -f1-3), {IN=>":::\n"}, {OUT=>"::\n"}],
+ ['n', qw(-s -d: -f1-4), {IN=>":::\n"}, {OUT=>":::\n"}],
+ ['o', qw(-s -d: -f2-3), {IN=>":::\n"}, {OUT=>":\n"}],
+ ['p', qw(-s -d: -f2-4), {IN=>":::\n"}, {OUT=>"::\n"}],
+ ['q', qw(-s -d: -f2-4), {IN=>":::\n:\n"}, {OUT=>"::\n\n"}],
+ ['r', qw(-s -d: -f2-4), {IN=>":::\n:1\n"}, {OUT=>"::\n1\n"}],
+ ['s', qw(-s -d: -f1-4), {IN=>":::\n:a\n"}, {OUT=>":::\n:a\n"}],
+ ['t', qw(-s -d: -f3-), {IN=>":::\n:1\n"}, {OUT=>":\n\n"}],
+ # Make sure it handles empty input properly, with and without -s.
+ ['u', qw(-s -f3-), {IN=>""}, {OUT=>""}],
+ ['v', '-f3-', {IN=>""}, {OUT=>""}],
+ # Make sure it handles empty input properly.
+ ['w', qw(-b 1), {IN=>""}, {OUT=>""}],
+ ['x', qw(-s -d: -f2-4), {IN=>":\n"}, {OUT=>"\n"}],
+ # Errors
+ # -s may be used only with -f
+ ['y', qw(-s -b4), {IN=>":\n"}, {OUT=>""}, {EXIT=>1},
+ {ERR=>"$prog: suppressing non-delimited lines makes sense\n"
+ . "\tonly when operating on fields\n$try"}],
+ # You must specify bytes or fields (or chars)
+ ['z', '', {IN=>":\n"}, {OUT=>""}, {EXIT=>1},
+ {ERR=>"$prog: you must specify a list of bytes, characters, or fields\n$try"}
+ ],
+ # Empty field list
+ ['empty-fl', qw(-f ''), {IN=>":\n"}, {OUT=>""}, {EXIT=>1},
+ {ERR=>$from_field1}],
+ # Missing field list
+ ['missing-fl', qw(-f --), {IN=>":\n"}, {OUT=>""}, {EXIT=>1},
+ {ERR=>$inval_fld}],
+ # Empty byte list
+ ['empty-bl', qw(-b ''), {IN=>":\n"}, {OUT=>""}, {EXIT=>1}, {ERR=>$from_pos1}],
+ # Missing byte list
+ ['missing-bl', qw(-b --), {IN=>":\n"}, {OUT=>""}, {EXIT=>1},
+ {ERR=>$inval_pos}],
+
+ # This test fails with cut from textutils-1.22.
+ ['empty-f1', '-f1', {IN=>""}, {OUT=>""}],
+
+ ['empty-f2', '-f2', {IN=>""}, {OUT=>""}],
+
+ ['o-delim', qw(-d: --out=_), '-f2,3', {IN=>"a:b:c\n"}, {OUT=>"b_c\n"}],
+ ['nul-idelim', qw(-d '' --out=_), '-f2,3', {IN=>"a\0b\0c\n"}, {OUT=>"b_c\n"}],
+ ['nul-odelim', qw(-d: --out=), '-f2,3', {IN=>"a:b:c\n"}, {OUT=>"b\0c\n"}],
+ ['multichar-od', qw(-d: --out=_._), '-f2,3', {IN=>"a:b:c\n"},
+ {OUT=>"b_._c\n"}],
+
+ # Ensure delim is not allowed without a field
+ # Prior to 8.21, a NUL delim was allowed without a field
+ ['delim-no-field1', qw(-d ''), '-b1', {EXIT=>1}, {ERR=>$nofield}],
+ ['delim-no-field2', qw(-d:), '-b1', {EXIT=>1}, {ERR=>$nofield}],
+
+ # Prior to 1.22i, you couldn't use a delimiter that would sign-extend.
+ ['8bit-delim', '-d', "\255", '--out=_', '-f2,3', {IN=>"a\255b\255c\n"},
+ {OUT=>"b_c\n"}],
+
+ # newline processing for fields
+ ['newline-1', '-f1-', {IN=>"a\nb"}, {OUT=>"a\nb\n"}],
+ ['newline-2', '-f1-', {IN=>""}, {OUT=>""}],
+ ['newline-3', '-d:', '-f1', {IN=>"a:1\nb:2\n"}, {OUT=>"a\nb\n"}],
+ ['newline-4', '-d:', '-f1', {IN=>"a:1\nb:2"}, {OUT=>"a\nb\n"}],
+ ['newline-5', '-d:', '-f2', {IN=>"a:1\nb:2\n"}, {OUT=>"1\n2\n"}],
+ ['newline-6', '-d:', '-f2', {IN=>"a:1\nb:2"}, {OUT=>"1\n2\n"}],
+ ['newline-7', '-s', '-d:', '-f1', {IN=>"a:1\nb:2"}, {OUT=>"a\nb\n"}],
+ ['newline-8', '-s', '-d:', '-f1', {IN=>"a:1\nb:2\n"}, {OUT=>"a\nb\n"}],
+ ['newline-9', '-s', '-d:', '-f1', {IN=>"a1\nb2"}, {OUT=>""}],
+ ['newline-10', '-s', '-d:', '-f1,2', {IN=>"a:1\nb:2"}, {OUT=>"a:1\nb:2\n"}],
+ ['newline-11', '-s', '-d:', '-f1,2', {IN=>"a:1\nb:2\n"}, {OUT=>"a:1\nb:2\n"}],
+ ['newline-12', '-s', '-d:', '-f1', {IN=>"a:1\nb:"}, {OUT=>"a\nb\n"}],
+ ['newline-13', '-d:', '-f1-', {IN=>"a1:\n:"}, {OUT=>"a1:\n:\n"}],
+ # newline processing for fields when -d == '\n'
+ ['newline-14', "-d'\n'", '-f1', {IN=>"a:1\nb:"}, {OUT=>"a:1\n"}],
+ ['newline-15', '-s', "-d'\n'", '-f1', {IN=>"a:1\nb:"}, {OUT=>"a:1\n"}],
+ ['newline-16', '-s', "-d'\n'", '-f2', {IN=>"\nb"}, {OUT=>"b\n"}],
+ ['newline-17', '-s', "-d'\n'", '-f1', {IN=>"\nb"}, {OUT=>"\n"}],
+ ['newline-18', "-d'\n'", '-f2', {IN=>"\nb"}, {OUT=>"b\n"}],
+ ['newline-19', "-d'\n'", '-f1', {IN=>"\nb"}, {OUT=>"\n"}],
+ ['newline-20', '-s', "-d'\n'", '-f1-', {IN=>"\n"}, {OUT=>"\n"}],
+ ['newline-21', '-s', "-d'\n'", '-f1-', {IN=>"\nb"}, {OUT=>"\nb\n"}],
+ ['newline-22', "-d'\n'", '-f1-', {IN=>"\nb"}, {OUT=>"\nb\n"}],
+ ['newline-23', "-d'\n'", '-f1-', '--ou=:', {IN=>"a\nb\n"}, {OUT=>"a:b\n"}],
+ ['newline-24', "-d'\n'", '-f1,2', '--ou=:', {IN=>"a\nb\n"}, {OUT=>"a:b\n"}],
+
+ # --zero-terminated
+ ['zerot-1', "-z", '-c1', {IN=>"ab\0cd\0"}, {OUT=>"a\0c\0"}],
+ ['zerot-2', "-z", '-c1', {IN=>"ab\0cd"}, {OUT=>"a\0c\0"}],
+ ['zerot-3', '-z -f1-', {IN=>""}, {OUT=>""}],
+ ['zerot-4', '-z -d:', '-f1', {IN=>"a:1\0b:2"}, {OUT=>"a\0b\0"}],
+ ['zerot-5', '-z -d:', '-f1-', {IN=>"a1:\0:"}, {OUT=>"a1:\0:\0"}],
+ ['zerot-6', "-z -d ''", '-f1,2', '--ou=:', {IN=>"a\0b\0"}, {OUT=>"a:b\0"}],
+
+ # New functionality:
+ ['out-delim1', '-c1-3,5-', '--output-d=:', {IN=>"abcdefg\n"},
+ {OUT=>"abc:efg\n"}],
+ # A totally overlapped field shouldn't change anything:
+ ['out-delim2', '-c1-3,2,5-', '--output-d=:', {IN=>"abcdefg\n"},
+ {OUT=>"abc:efg\n"}],
+ # Partial overlap: index '2' is not at the start of a range.
+ ['out-delim3', '-c1-3,2-4,6', '--output-d=:', {IN=>"abcdefg\n"},
+ {OUT=>"abcd:f\n"}],
+ ['out-delim3a', '-c1-3,2-4,6-', '--output-d=:', {IN=>"abcdefg\n"},
+ {OUT=>"abcd:fg\n"}],
+ # Ensure that the following two commands produce the same output.
+ # Before an off-by-1 fix, the output from the former would not contain a ':'.
+ ['out-delim4', '-c4-,2-3', '--output-d=:',
+ {IN=>"abcdefg\n"}, {OUT=>"bc:defg\n"}],
+ ['out-delim5', '-c2-3,4-', '--output-d=:',
+ {IN=>"abcdefg\n"}, {OUT=>"bc:defg\n"}],
+ # This test would fail for cut from coreutils-5.0.1 and earlier.
+ ['out-delim6', '-c2,1-3', '--output-d=:', {IN=>"abc\n"}, {OUT=>"abc\n"}],
+ #
+ ['od-abut', '-b1-2,3-4', '--output-d=:', {IN=>"abcd\n"}, {OUT=>"ab:cd\n"}],
+ ['od-overlap', '-b1-2,2', '--output-d=:', {IN=>"abc\n"}, {OUT=>"ab\n"}],
+ ['od-overlap2', '-b1-2,2-', '--output-d=:', {IN=>"abc\n"}, {OUT=>"abc\n"}],
+ ['od-overlap3', '-b1-3,2-', '--output-d=:', {IN=>"abcd\n"}, {OUT=>"abcd\n"}],
+ ['od-overlap4', '-b1-3,2-3', '--output-d=:', {IN=>"abcd\n"}, {OUT=>"abc\n"}],
+ ['od-overlap5', '-b1-3,1-4', '--output-d=:',
+ {IN=>"abcde\n"}, {OUT=>"abcd\n"}],
+
+ # None of the following invalid ranges provoked an error up to coreutils-6.9.
+ ['inval1', qw(-f 2-0), {IN=>''}, {OUT=>''}, {EXIT=>1},
+ {ERR=>"$prog: invalid decreasing range\n$try"}],
+ ['inval2', qw(-f -), {IN=>''}, {OUT=>''}, {EXIT=>1}, {ERR=>$no_endpoint}],
+ ['inval3', '-f', '4,-', {IN=>''}, {OUT=>''}, {EXIT=>1}, {ERR=>$no_endpoint}],
+ ['inval4', '-f', '1-2,-', {IN=>''}, {OUT=>''}, {EXIT=>1},
+ {ERR=>$no_endpoint}],
+ ['inval5', '-f', '1-,-', {IN=>''}, {OUT=>''}, {EXIT=>1}, {ERR=>$no_endpoint}],
+ ['inval6', '-f', '-1,-', {IN=>''}, {OUT=>''}, {EXIT=>1}, {ERR=>$no_endpoint}],
+ # This would evoke a segfault from 5.3.0..8.10
+ ['big-unbounded-b', '--output-d=:', '-b1234567890-', {IN=>''}, {OUT=>''}],
+ ['big-unbounded-b2a', '--output-d=:', '-b1,9-', {IN=>'123456789'},
+ {OUT=>"1:9\n"}],
+ ['big-unbounded-b2b', '--output-d=:', '-b1,1234567890-', {IN=>''}, {OUT=>''}],
+ ['big-unbounded-c', '--output-d=:', '-c1234567890-', {IN=>''}, {OUT=>''}],
+ ['big-unbounded-f', '--output-d=:', '-f1234567890-', {IN=>''}, {OUT=>''}],
+
+ ['overlapping-unbounded-1', '-b3-,2-', {IN=>"1234\n"}, {OUT=>"234\n"}],
+ ['overlapping-unbounded-2', '-b2-,3-', {IN=>"1234\n"}, {OUT=>"234\n"}],
+
+ # When printing output delimiters, and with one or more ranges subsumed
+ # by a to-EOL range, cut 8.20 and earlier would print extraneous delimiters.
+ ['EOL-subsumed-1', '--output-d=: -b2-,3,4-4,5',
+ {IN=>"123456\n"}, {OUT=>"23456\n"}],
+ ['EOL-subsumed-2', '--output-d=: -b3,4-4,5,2-',
+ {IN=>"123456\n"}, {OUT=>"23456\n"}],
+ ['EOL-subsumed-3', '--complement -b3,4-4,5,2-',
+ {IN=>"123456\n"}, {OUT=>"1\n"}],
+ ['EOL-subsumed-4', '--output-d=: -b1-2,2-3,3-',
+ {IN=>"1234\n"}, {OUT=>"1234\n"}],
+ );
+
+if ($mb_locale ne 'C')
+ {
+ # Duplicate each test vector, appending "-mb" to the test name and
+ # inserting {ENV => "LC_ALL=$mb_locale"} in the copy, so that we
+ # provide coverage for the distro-added multi-byte code paths.
+ my @new;
+ foreach my $t (@Tests)
+ {
+ my @new_t = @$t;
+ my $test_name = shift @new_t;
+
+ push @new, ["$test_name-mb", @new_t, {ENV => "LC_ALL=$mb_locale"}];
+ }
+ push @Tests, @new;
+ }
+
+
+@Tests = triple_test \@Tests;
+
+my $save_temps = $ENV{DEBUG};
+my $verbose = $ENV{VERBOSE};
+
+my $fail = run_tests ($ME, $prog, \@Tests, $save_temps, $verbose);
+exit $fail;
diff --git a/tests/misc/date b/tests/misc/date
deleted file mode 100755
index 0ff8345..0000000
--- a/tests/misc/date
+++ /dev/null
@@ -1,323 +0,0 @@
-#!/bin/sh
-# Test "date".
-
-# Copyright (C) 2005-2007 Free Software Foundation, Inc.
-
-# This program is free software; you can redistribute it and/or modify
-# it under the terms of the GNU General Public License as published by
-# the Free Software Foundation; either version 2 of the License, or
-# (at your option) any later version.
-
-# This program is distributed in the hope that it will be useful,
-# but WITHOUT ANY WARRANTY; without even the implied warranty of
-# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
-# GNU General Public License for more details.
-
-# You should have received a copy of the GNU General Public License
-# along with this program; if not, write to the Free Software
-# Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA
-# 02110-1301, USA.
-
-: ${PERL=perl}
-: ${srcdir=.}
-
-$PERL -e 1 > /dev/null 2>&1 || {
- echo 1>&2 "$0: configure didn't find a usable version of Perl," \
- "so can't run this test"
- exit 77
-}
-
-exec $PERL -w -I$srcdir/.. -MCoreutils -- - <<\EOF
-require 5.003;
-use strict;
-
-(my $ME = $0) =~ s|.*/||;
-
-# Turn off localisation of executable's ouput.
-@ENV{qw(LANGUAGE LANG LC_ALL)} = ('C') x 3;
-
-# Export TZ=UTC0 so that zone-dependent strings match.
-$ENV{TZ} = 'UTC0';
-
-my $t0 = '08:17:48';
-my $d0 = '1997-01-19';
-my $d1 = "$d0 $t0 +0";
-
-my $ts = '08:17:49'; # next second
-my $tm = '08:18:48'; # next minute
-my $th = '09:17:48'; # next hour
-
-my $dd = '1997-01-20'; # next day
-my $dw = '1997-01-26'; # next week
-my $dm = '1997-02-19'; # next month
-my $dy = '1998-01-19'; # next month
-
-my $fmt = "'+%Y-%m-%d %T'";
-
-# Determine a number of seconds that will provoke an invalid
-# time diagnostic from date. If possible, use a number that
-# is less than 2^64, yet so large that it would cause the resulting
-# tm_year value to be too large for a 32-bit int. But some systems
-# (Solaris 8) have a buggy localtime that mistakenly accepts such
-# invalid times and give garbage in tm_year. Other systems might
-# have an int type that is wider than 32. So if this localtime
-# call succeeds, use 2^64 as the number of seconds.
-my $n_seconds = 72057594037927935;
-my @d = localtime ($n_seconds);
-my $year = $d[5];
-defined $year
- and $n_seconds = '18446744073709551616';
-
-my @Tests =
- (
- # test-name, [option, option, ...] {OUT=>"expected-output"}
- #
- ['1', "-d '$d1' +'%% %a %A %b %B'", {OUT=>"% Sun Sunday Jan January"}],
-
- # [Actually, skip it on *all* systems. -- this Perl code is run at
- # distribution-build-time, not at configure/test time. ]
-
- # Skip the test of %c on SunOS4 systems. Such systems would fail this
- # test because their underlying strftime doesn't handle the %c format
- # properly. GNU strftime must rely on the underlying host library
- # function to get locale-dependent behavior, as strftime is the only
- # portable interface to that behavior.
- # ['2', "-d '$d1' +'%c'", {OUT=>"Sun Jan 19 $t0 1997"}],
-
- ['3', "-d '$d1' +'%d_%D_%e_%h_%H'", {OUT=>"19_01/19/97_19_Jan_08"}],
- ['4', "-d '$d1' +'%I_%j_%k_%l_%m'", {OUT=>"08_019_ 8_ 8_01"}],
- ['5', "-d '$d1' +'%M_%n_%p_%r'", {OUT=>"17_\n_AM_$t0 AM"}],
- ['6', "-d '$d1' +'%s_%S_%t_%T'", {OUT=>"853661868_48_\t_$t0"}],
- ['7', "-d '$d1' +'%U_%V_%w_%W'", {OUT=>"03_03_0_02"}],
- ['8', "-d '$d1' +'%x_%X_%y_%Y'", {OUT=>"01/19/97_${t0}_97_1997"}],
- ['9', "-d '$d1' +'%z'", {OUT=>"+0000"}],
-
- ['leap-1', "--date '02/29/1996 1 year' +%Y-%m-%d", {OUT=>"1997-03-01"}],
-
- ['U95-1', "--date '1995-1-1' +%U", {OUT=>"01"}],
- ['U95-2', "--date '1995-1-7' +%U", {OUT=>"01"}],
- ['U95-3', "--date '1995-1-8' +%U", {OUT=>"02"}],
-
- ['U92-1', "--date '1992-1-1' +%U", {OUT=>"00"}],
- ['U92-2', "--date '1992-1-4' +%U", {OUT=>"00"}],
- ['U92-3', "--date '1992-1-5' +%U", {OUT=>"01"}],
-
- ['V92-1', "--date '1992-1-1' +%V", {OUT=>"01"}],
- ['V92-2', "--date '1992-1-5' +%V", {OUT=>"01"}],
- ['V92-3', "--date '1992-1-6' +%V", {OUT=>"02"}],
-
- ['W92-1', "--date '1992-1-1' +%W", {OUT=>"00"}],
- ['W92-2', "--date '1992-1-5' +%W", {OUT=>"00"}],
- ['W92-3', "--date '1992-1-6' +%W", {OUT=>"01"}],
-
- ['millen-1', "--date '1998-1-1 3 years' +%Y", {OUT=>"2001"}],
-
- ['rel-0', "-d '$d1 now' '+%Y-%m-%d %T'", {OUT=>"$d0 $t0"}],
-
- ['rel-1a', "-d '$d1 yesterday' $fmt", {OUT=>"1997-01-18 $t0"}],
- ['rel-1b', "-d '$d1 tomorrow' $fmt", {OUT=>"1997-01-20 $t0"}],
-
- ['rel-2a', "-d '$d1 6 years ago' $fmt", {OUT=>"1991-01-19 $t0"}],
- ['rel-2b', "-d '$d1 7 months ago' $fmt", {OUT=>"1996-06-19 $t0"}],
- ['rel-2c', "-d '$d1 8 weeks ago' $fmt", {OUT=>"1996-11-24 $t0"}],
- ['rel-2d', "-d '$d1 1 day ago' $fmt", {OUT=>"1997-01-18 $t0"}],
- ['rel-2e', "-d '$d1 2 hours ago' $fmt", {OUT=>"$d0 06:17:48"}],
- ['rel-2f', "-d '$d1 3 minutes ago' $fmt", {OUT=>"$d0 08:14:48"}],
- ['rel-2g', "-d '$d1 4 seconds ago' $fmt", {OUT=>"$d0 08:17:44"}],
-
- ['rel-3a', "-d '$d1 4 seconds ago' $fmt", {OUT=>"$d0 08:17:44"}],
-
- ['next-s', "-d '$d1 next second' '+%Y-%m-%d %T'", {OUT=>"$d0 $ts"}],
- ['next-m', "-d '$d1 next minute' '+%Y-%m-%d %T'", {OUT=>"$d0 $tm"}],
- ['next-h', "-d '$d1 next hour' '+%Y-%m-%d %T'", {OUT=>"$d0 $th"}],
- ['next-d', "-d '$d1 next day' '+%Y-%m-%d %T'", {OUT=>"$dd $t0"}],
- ['next-w', "-d '$d1 next week' '+%Y-%m-%d %T'", {OUT=>"$dw $t0"}],
- ['next-mo', "-d '$d1 next month' '+%Y-%m-%d %T'", {OUT=>"$dm $t0"}],
- ['next-y', "-d '$d1 next year' '+%Y-%m-%d %T'", {OUT=>"$dy $t0"}],
-
- ['utc-0', "-u -d '08/01/97 6:00' '+%D,%H:%M'", {OUT=>"08/01/97,06:00"},
- {ENV => 'TZ=UTC+4'}],
-
- ['utc-0a', "-u -d '08/01/97 6:00 UTC +4 hours' '+%D,%H:%M'",
- {OUT=>"08/01/97,10:00"}],
- # Make sure --file=FILE works with -u.
- ['utc-1', "-u --file=f '+%Y-%m-%d %T'",
- {AUX=>{f=>"$d0 $t0\n$d0 $t0"}},
- {OUT=>"$d0 $t0\n$d0 $t0"},
- {ENV => 'TZ=UTC+1'}],
-
- ['utc-1a', "-u --file=f '+%Y-%m-%d %T'",
- {AUX=>{f=>"$d0 $t0 UTC +1 hour\n$d0 $t0 UTC +1 hour"}},
- {OUT=>"$d0 $th\n$d0 $th"}],
-
- # From the examples in the documentation.
- ['date2sec-0', "-d '1970-01-01 00:00:01' +%s", {OUT=>"7201"},
- {ENV => 'TZ=UTC+2'}],
-
- # Same as above, but don't rely on TZ in environment.
- ['date2sec-0a', "-d '1970-01-01 00:00:01 UTC +2 hours' +%s",
- {OUT=>"7201"}],
-
- ['date2sec-1', "-d 2000-01-01 +%s", {OUT=>"946684800"}],
- ['sec2date-0', "-d '1970-01-01 UTC 946684800 sec' +'%Y-%m-%d %T %z'",
- {OUT=>"2000-01-01 00:00:00 +0000"}],
-
- ['this-m', "-d '$d0 $t0 this minute' $fmt", {OUT=>"$d0 $t0"}],
- ['this-h', "-d '$d0 $t0 this hour' $fmt", {OUT=>"$d0 $t0"}],
- ['this-w', "-d '$d0 $t0 this week' $fmt", {OUT=>"$d0 $t0"}],
- ['this-mo', "-d '$d0 $t0 this month' $fmt", {OUT=>"$d0 $t0"}],
- ['this-y', "-d '$d0 $t0 this year' $fmt", {OUT=>"$d0 $t0"}],
-
- ['risks-1', "-d 'Nov 10 1996' $fmt", {OUT=>"1996-11-10 00:00:00"}],
-
- # This one would pass if TZ (with any, or even no, value) were in
- # the environment.
- ['regress-1', "-u -d '1996-11-10 0:00:00 +0' $fmt",
- {OUT=>"1996-11-10 00:00:00"},
- {ENV =>'LANG=C'}],
-
-
- ['datevtime-1', "-d 000909 $fmt", {OUT=>"2000-09-09 00:00:00"}],
-
- # test for RFC-822 conformance
- ['rfc822-1', "-R -d '$d1'", {OUT=>"Sun, 19 Jan 1997 08:17:48 +0000"},
- # Solaris 5.9's /bin/sh emits this diagnostic to stderr
- # if you don't have support for the named locale.
- {ERR_SUBST => q!s/^couldn't set locale correctly\n//!},
- {ENV => 'LC_ALL=de_DE TZ=UTC0'}],
-
- # Relative seconds, with time. fixed in 2.0j
- ['relative-1', "--utc -d '1970-01-01 00:00:00 UTC +961062237 sec' $fmt",
- {OUT=>"2000-06-15 09:43:57"}],
-
- # Relative seconds, no time.
- ['relative-2', "--utc -d '1970-01-01 UTC +961062237 sec' $fmt",
- {OUT=>"2000-06-15 09:43:57"},
- {ENV => 'TZ=UTC+1'}],
-
- # Relative days, no time, across time zones.
- ['relative-3', "-I -d '2006-04-23 21 days ago'", {OUT=>"2006-04-02"},
- {ENV=>'TZ=PST8PDT,M4.1.0,M10.5.0'}],
-
- # This would infloop (or appear to) prior to coreutils-4.5.5,
- # due to a bug in strftime.c.
- ['wide-fmt', "-d '1999-06-01'", '+%3004Y', {OUT=>'0' x 3000 . "1999"}],
-
- # Ensure that we can parse MONTHNAME-DAY-YEAR.
- ['moname-d-y', '--iso -d May-23-2003', {OUT=>"2003-05-23"}],
- ['moname-d-y-r', '--rfc-3339=date -d May-23-2003', {OUT=>"2003-05-23"}],
-
- ['epoch', '--iso=sec -d @31536000',
- {OUT=>"1971-01-01T00:00:00+0000"}],
- ['epoch-r', '--rfc-3339=sec -d @31536000',
- {OUT=>"1971-01-01 00:00:00+00:00"}],
-
- ['ns-10', '--iso=ns', '-d "1969-12-31 13:00:00.00000001-1100"',
- {OUT=>"1970-01-01T00:00:00,000000010+0000"}],
- ['ns-10-r', '--rfc-3339=ns', '-d "1969-12-31 13:00:00.00000001-1100"',
- {OUT=>"1970-01-01 00:00:00.000000010+00:00"}],
-
- ['ns-max32', '--iso=ns', '-d "2038-01-19 03:14:07.999999999"',
- {OUT=>"2038-01-19T03:14:07,999999999+0000"}],
- ['ns-max32-r', '--rfc-3339=ns', '-d "2038-01-19 03:14:07.999999999"',
- {OUT=>"2038-01-19 03:14:07.999999999+00:00"}],
-
- ['tz-1', '+%:::z', {OUT=>"-12:34:56"}, {ENV=>'TZ=XXX12:34:56'}],
-
- ['tz-2', '+%:::z', {OUT=>"+12:34:56"}, {ENV=>'TZ=XXX-12:34:56'}],
-
- ['tz-3', '+%::z', {OUT=>"+01:02:03"}, {ENV=>'TZ=XXX-1:02:03'}],
-
- ['tz-4', '+%:::z', {OUT=>"+12"}, {ENV=>'TZ=XXX-12'}],
-
- ['tz-5', '+%:z', {OUT=>"-00:01"}, {ENV=>'TZ=XXX0:01'}],
-
- # Accept %:z with a field width before the `:'.
- ['tz-5w','+%8:z', {OUT=>"-0000:01"}, {ENV=>'TZ=XXX0:01'}],
- # Don't recognize %:z with a field width between the `:' and the `z'.
- ['tz-5wf', '+%:8z', {OUT=>"%:8z"}, {ENV=>'TZ=XXX0:01'}],
-
- ['ns-relative',
- '--iso=ns', "-d'1970-01-01 00:00:00.1234567 UTC +961062237.987654321 sec'",
- {OUT=>"2000-06-15T09:43:58,111111021+0000"}],
- ['ns-relativer', '--rfc-3339=ns',
- "-d'1970-01-01 00:00:00.1234567 UTC +961062237.987654321 sec'",
- {OUT=>"2000-06-15 09:43:58.111111021+00:00"}],
-
- # Since coreutils/lib/getdate.y revision 1.96 (post-coreutils-5.3.0),
- # a command like the following would mistakenly exit nonzero with an
- # `invalid date ...' diagnostic, but when run in a time zone for
- # which daylight savings time is in effect for the starting date.
- # Unfortunately (for ease of testing), if you set TZ at all, this
- # failure is not triggered, hence the removal of TZ from the environment.
- ['cross-dst', "-d'2005-03-27 +1 day'", '+%Y', {OUT=>"2005"},
- {ENV_DEL => 'TZ'},
- ],
-
- ['empty-fmt', '+', {OUT=>""}],
-
- ['neg-secs', '-d @-22 +%05s', {OUT=>"-0022"}],
- ['neg-secs2', '-d @-22 +%_5s', {OUT=>" -22"}],
-
- # Before today's fix, date would print uninitialized data
- # to standard output for an out-of-range date:
- # $ date -d @$(echo 2^56-1|bc) 2> /dev/null | od -a -N3
- # 0000000 p 4 6
- # 0000003
- ['uninit-64', "-d \@$n_seconds",
- {OUT=>''},
- # Use ERR_SUBST to get around fact that the diagnostic
- # you get on a system with 32-bit time_t is not the same as
- # the one you get for a system where it's 64 bits wide:
- # - date: time 72057594037927935 is out of range
- # + date: invalid date `@72057594037927935'
- {ERR_SUBST => 's/.*//'},
- {ERR => "\n"},
- {EXIT => 1},
- ],
-
- ['fill-1', '-d 1999-12-08 +%_3d', {OUT=>' 8'}],
- ['fill-2', '-d 1999-12-08 +%03d', {OUT=>'008'}],
-
- # Test the combination of the to-upper-case modifier (^) and a conversion
- # specifier that expands to a string containing lower case characters.
- ['subfmt-up1', '-d "1999-12-08 7:30" "+%^c"',
- # Solaris 5.9 prints 'WED DEC 08 07:30:00 1999', while
- # most others print 'WED DEC 8 07:30:00 1999'.
- {OUT_SUBST => 's/ [ 0]8.*//'},
- {OUT=>'WED DEC'}],
- );
-
-# Repeat the cross-dst test, using Jan 1, 2005 and every interval from 1..364.
-foreach my $i (1..364)
- {
- push @Tests, ["cross-dst$i",
- "-d'2005-01-01 +$i day'", '+%Y', {OUT=>"2005"},
- {ENV_DEL => 'TZ'},
- ];
- }
-
-# Append "\n" to each OUT=> RHS if the expected exit value is either
-# zero or not specified (defaults to zero).
-foreach my $t (@Tests)
- {
- my $exit_val;
- foreach my $e (@$t)
- {
- ref $e && ref $e eq 'HASH' && defined $e->{EXIT}
- and $exit_val = $e->{EXIT};
- }
- foreach my $e (@$t)
- {
- ref $e && ref $e eq 'HASH' && defined $e->{OUT} && ! $exit_val
- and $e->{OUT} .= "\n";
- }
- }
-
-my $save_temps = $ENV{DEBUG};
-my $verbose = $ENV{VERBOSE};
-
-my $prog = 'date';
-my $fail = run_tests ($ME, $prog, \@Tests, $save_temps, $verbose);
-exit $fail;
-EOF
diff --git a/tests/misc/date-next-dow.pl b/tests/misc/date-next-dow.pl
new file mode 100755
index 0000000..5c1aa35
--- /dev/null
+++ b/tests/misc/date-next-dow.pl
@@ -0,0 +1,78 @@
+#!/usr/bin/perl
+# Test "date".
+
+# Copyright (C) 2005-2016 Free Software Foundation, Inc.
+
+# This program is free software: you can redistribute it and/or modify
+# it under the terms of the GNU General Public License as published by
+# the Free Software Foundation, either version 3 of the License, or
+# (at your option) any later version.
+
+# This program is distributed in the hope that it will be useful,
+# but WITHOUT ANY WARRANTY; without even the implied warranty of
+# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
+# GNU General Public License for more details.
+
+# You should have received a copy of the GNU General Public License
+# along with this program. If not, see <http://www.gnu.org/licenses/>.
+
+use strict;
+use POSIX qw(strftime);
+
+(my $ME = $0) =~ s|.*/||;
+
+# Turn off localization of executable's output.
+@ENV{qw(LANGUAGE LANG LC_ALL)} = ('C') x 3;
+
+# Export TZ=UTC0 so that zone-dependent strings match.
+$ENV{TZ} = 'UTC0';
+
+my $now = time;
+my @d = localtime ($now);
+my @d_week = localtime ($now + 7 * 24 * 3600);
+my $wday = $d[6];
+my $wday_str = qw(sun mon tue wed thu fri sat)[$wday];
+
+my @Tests =
+ (
+ # test-name, [option, option, ...] {OUT=>"expected-output"}
+ #
+
+ # Running "date -d mon +%a" on a Monday must print Mon.
+ ['dow', "-d $wday_str +%a", {OUT => ucfirst $wday_str}],
+ # It had better be the same date, too.
+ ['dow2', "-d $wday_str +%Y-%m-%d", {OUT => strftime("%Y-%m-%d", @d)}],
+
+ ['next-dow', "-d 'next $wday_str' +%Y-%m-%d",
+ {OUT => strftime("%Y-%m-%d", @d_week)}],
+ );
+
+# Append "\n" to each OUT=> RHS if the expected exit value is either
+# zero or not specified (defaults to zero).
+foreach my $t (@Tests)
+ {
+ my $exit_val;
+ foreach my $e (@$t)
+ {
+ ref $e && ref $e eq 'HASH' && defined $e->{EXIT}
+ and $exit_val = $e->{EXIT};
+ }
+ foreach my $e (@$t)
+ {
+ ref $e && ref $e eq 'HASH' && defined $e->{OUT} && ! $exit_val
+ and $e->{OUT} .= "\n";
+ }
+ }
+
+my $save_temps = $ENV{DEBUG};
+my $verbose = $ENV{VERBOSE};
+
+my $prog = 'date';
+my $fail = run_tests ($ME, $prog, \@Tests, $save_temps, $verbose);
+
+# Skip the test if the starting and stopping day numbers differ.
+my @d_post = localtime (time);
+$d_post[7] == $d[7]
+ or CuSkip::skip "$ME: test straddled a day boundary; skipped";
+
+exit $fail;
diff --git a/tests/misc/date-sec b/tests/misc/date-sec
deleted file mode 100755
index 6852c87..0000000
--- a/tests/misc/date-sec
+++ /dev/null
@@ -1,67 +0,0 @@
-#!/bin/sh
-# Ensure that a command like
-# `date --date="21:04 +0100" +%S' always prints `00'.
-# Before coreutils-5.2.1, it would print the seconds from the current time.
-
-# Copyright (C) 2004, 2006 Free Software Foundation, Inc.
-
-# This program is free software; you can redistribute it and/or modify
-# it under the terms of the GNU General Public License as published by
-# the Free Software Foundation; either version 2 of the License, or
-# (at your option) any later version.
-
-# This program is distributed in the hope that it will be useful,
-# but WITHOUT ANY WARRANTY; without even the implied warranty of
-# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
-# GNU General Public License for more details.
-
-# You should have received a copy of the GNU General Public License
-# along with this program; if not, write to the Free Software
-# Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA
-# 02110-1301, USA.
-
-if test "$VERBOSE" = yes; then
- set -x
- date --version
-fi
-
-pwd=`pwd`
-t0=`echo "$0"|sed 's,.*/,,'`.tmp; tmp=$t0/$$
-trap 'status=$?; cd "$pwd" && chmod -R u+rwx $t0 && rm -rf $t0 && exit $status' 0
-trap '(exit $?); exit $?' 1 2 13 15
-
-framework_failure=0
-mkdir -p $tmp || framework_failure=1
-cd $tmp || framework_failure=1
-
-if test $framework_failure = 1; then
- echo "$0: failure in testing framework" 1>&2
- (exit 1); exit 1
-fi
-
-fail=0
-
-# It would be easier simply to sleep for two seconds between two runs
-# of `date --date="21:04 +0100" +%S` and ensure that both outputs
-# are `00', but I prefer not to sleep unconditionally. `make check'
-# takes long enough as it is.
-
-n=0
-# See if the current number of seconds is `00' or just before.
-s=`date +%S`
-case "$s" in
- 58) n=3;;
- 59) n=2;;
- 00) n=1;;
-esac
-
-# If necessary, wait for the system clock to pass the minute mark.
-test $n = 0 || sleep $n
-
-s=`date --date="21:04 +0100" +%S`
-case "$s" in
- 00) ;;
- *) fail=1;;
-esac
-
-(exit $fail); exit $fail
diff --git a/tests/misc/date-sec.sh b/tests/misc/date-sec.sh
new file mode 100755
index 0000000..4086075
--- /dev/null
+++ b/tests/misc/date-sec.sh
@@ -0,0 +1,49 @@
+#!/bin/sh
+# Ensure that a command like
+# date --date="21:04 +0100" +%S' always prints '00'.
+# Before coreutils-5.2.1, it would print the seconds from the current time.
+
+# Copyright (C) 2004-2016 Free Software Foundation, Inc.
+
+# This program is free software: you can redistribute it and/or modify
+# it under the terms of the GNU General Public License as published by
+# the Free Software Foundation, either version 3 of the License, or
+# (at your option) any later version.
+
+# This program is distributed in the hope that it will be useful,
+# but WITHOUT ANY WARRANTY; without even the implied warranty of
+# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
+# GNU General Public License for more details.
+
+# You should have received a copy of the GNU General Public License
+# along with this program. If not, see <http://www.gnu.org/licenses/>.
+
+. "${srcdir=.}/tests/init.sh"; path_prepend_ ./src
+print_ver_ date
+
+
+
+# It would be easier simply to sleep for two seconds between two runs
+# of $(date --date="21:04 +0100" +%S) and ensure that both outputs
+# are '00', but I prefer not to sleep unconditionally. 'make check'
+# takes long enough as it is.
+
+n=0
+# See if the current number of seconds is '00' or just before.
+s=$(date +%S)
+case "$s" in
+ 58) n=3;;
+ 59) n=2;;
+ 00) n=1;;
+esac
+
+# If necessary, wait for the system clock to pass the minute mark.
+test $n = 0 || sleep $n
+
+s=$(date --date="21:04 +0100" +%S)
+case "$s" in
+ 00) ;;
+ *) fail=1;;
+esac
+
+Exit $fail
diff --git a/tests/misc/date.pl b/tests/misc/date.pl
new file mode 100755
index 0000000..2d19254
--- /dev/null
+++ b/tests/misc/date.pl
@@ -0,0 +1,318 @@
+#!/usr/bin/perl
+# Test "date".
+
+# Copyright (C) 2005-2016 Free Software Foundation, Inc.
+
+# This program is free software: you can redistribute it and/or modify
+# it under the terms of the GNU General Public License as published by
+# the Free Software Foundation, either version 3 of the License, or
+# (at your option) any later version.
+
+# This program is distributed in the hope that it will be useful,
+# but WITHOUT ANY WARRANTY; without even the implied warranty of
+# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
+# GNU General Public License for more details.
+
+# You should have received a copy of the GNU General Public License
+# along with this program. If not, see <http://www.gnu.org/licenses/>.
+
+use strict;
+
+(my $ME = $0) =~ s|.*/||;
+
+# Turn off localization of executable's output.
+@ENV{qw(LANGUAGE LANG LC_ALL)} = ('C') x 3;
+
+# Export TZ=UTC0 so that zone-dependent strings match.
+$ENV{TZ} = 'UTC0';
+
+my $t0 = '08:17:48';
+my $d0 = '1997-01-19';
+my $d1 = "$d0 $t0 +0";
+my $dT = "${d0}T$t0+0"; # ISO 8601 with "T" separator
+
+my $ts = '08:17:49'; # next second
+my $tm = '08:18:48'; # next minute
+my $th = '09:17:48'; # next hour
+
+my $dd = '1997-01-20'; # next day
+my $dw = '1997-01-26'; # next week
+my $dm = '1997-02-19'; # next month
+my $dy = '1998-01-19'; # next month
+
+my $fmt = "'+%Y-%m-%d %T'";
+
+my @Tests =
+ (
+ # test-name, [option, option, ...] {OUT=>"expected-output"}
+ #
+ ['1', "-d '$d1' +'%% %a %A %b %B'", {OUT=>"% Sun Sunday Jan January"}],
+
+ # [Actually, skip it on *all* systems. -- this Perl code is run at
+ # distribution-build-time, not at configure/test time. ]
+
+ # Skip the test of %c on SunOS4 systems. Such systems would fail this
+ # test because their underlying strftime doesn't handle the %c format
+ # properly. GNU strftime must rely on the underlying host library
+ # function to get locale-dependent behavior, as strftime is the only
+ # portable interface to that behavior.
+ # ['2', "-d '$d1' +'%c'", {OUT=>"Sun Jan 19 $t0 1997"}],
+
+ ['3', "-d '$d1' +'%d_%D_%e_%h_%H'", {OUT=>"19_01/19/97_19_Jan_08"}],
+ ['3T',"-d '$dT' +'%d_%D_%e_%h_%H'", {OUT=>"19_01/19/97_19_Jan_08"}],
+
+ ['4', "-d '$d1' +'%I_%j_%k_%l_%m'", {OUT=>"08_019_ 8_ 8_01"}],
+ ['5', "-d '$d1' +'%M_%n_%p_%r'", {OUT=>"17_\n_AM_$t0 AM"}],
+ ['6', "-d '$d1' +'%s_%S_%t_%T'", {OUT=>"853661868_48_\t_$t0"}],
+ ['7', "-d '$d1' +'%U_%V_%w_%W'", {OUT=>"03_03_0_02"}],
+ ['8', "-d '$d1' +'%x_%X_%y_%Y'", {OUT=>"01/19/97_${t0}_97_1997"}],
+ ['9', "-d '$d1' +'%z'", {OUT=>"+0000"}],
+
+ ['leap-1', "--date '02/29/1996 1 year' +%Y-%m-%d", {OUT=>"1997-03-01"}],
+
+ ['U95-1', "--date '1995-1-1' +%U", {OUT=>"01"}],
+ ['U95-2', "--date '1995-1-7' +%U", {OUT=>"01"}],
+ ['U95-3', "--date '1995-1-8' +%U", {OUT=>"02"}],
+
+ ['U92-1', "--date '1992-1-1' +%U", {OUT=>"00"}],
+ ['U92-2', "--date '1992-1-4' +%U", {OUT=>"00"}],
+ ['U92-3', "--date '1992-1-5' +%U", {OUT=>"01"}],
+
+ ['V92-1', "--date '1992-1-1' +%V", {OUT=>"01"}],
+ ['V92-2', "--date '1992-1-5' +%V", {OUT=>"01"}],
+ ['V92-3', "--date '1992-1-6' +%V", {OUT=>"02"}],
+
+ ['W92-1', "--date '1992-1-1' +%W", {OUT=>"00"}],
+ ['W92-2', "--date '1992-1-5' +%W", {OUT=>"00"}],
+ ['W92-3', "--date '1992-1-6' +%W", {OUT=>"01"}],
+
+ ['millen-1', "--date '1998-1-1 3 years' +%Y", {OUT=>"2001"}],
+
+ ['rel-0', "-d '$d1 now' '+%Y-%m-%d %T'", {OUT=>"$d0 $t0"}],
+
+ ['rel-1a', "-d '$d1 yesterday' $fmt", {OUT=>"1997-01-18 $t0"}],
+ ['rel-1b', "-d '$d1 tomorrow' $fmt", {OUT=>"1997-01-20 $t0"}],
+
+ ['rel-2a', "-d '$d1 6 years ago' $fmt", {OUT=>"1991-01-19 $t0"}],
+ ['rel-2b', "-d '$d1 7 months ago' $fmt", {OUT=>"1996-06-19 $t0"}],
+ ['rel-2c', "-d '$d1 8 weeks ago' $fmt", {OUT=>"1996-11-24 $t0"}],
+ ['rel-2d', "-d '$d1 1 day ago' $fmt", {OUT=>"1997-01-18 $t0"}],
+ ['rel-2e', "-d '$d1 2 hours ago' $fmt", {OUT=>"$d0 06:17:48"}],
+ ['rel-2f', "-d '$d1 3 minutes ago' $fmt", {OUT=>"$d0 08:14:48"}],
+ ['rel-2g', "-d '$d1 4 seconds ago' $fmt", {OUT=>"$d0 08:17:44"}],
+
+ ['rel-3a', "-d '$d1 4 seconds ago' $fmt", {OUT=>"$d0 08:17:44"}],
+
+ # This has always worked, ...
+ ['rel-1day', "-d '20050101 1 day' +%F", {OUT=>"2005-01-02"}],
+ # ...but up to coreutils-6.9, this was rejected due to the "+".
+ ['rel-plus1', "-d '20050101 +1 day' +%F", {OUT=>"2005-01-02"}],
+
+ ['next-s', "-d '$d1 next second' '+%Y-%m-%d %T'", {OUT=>"$d0 $ts"}],
+ ['next-m', "-d '$d1 next minute' '+%Y-%m-%d %T'", {OUT=>"$d0 $tm"}],
+ ['next-h', "-d '$d1 next hour' '+%Y-%m-%d %T'", {OUT=>"$d0 $th"}],
+ ['next-d', "-d '$d1 next day' '+%Y-%m-%d %T'", {OUT=>"$dd $t0"}],
+ ['next-w', "-d '$d1 next week' '+%Y-%m-%d %T'", {OUT=>"$dw $t0"}],
+ ['next-mo', "-d '$d1 next month' '+%Y-%m-%d %T'", {OUT=>"$dm $t0"}],
+ ['next-y', "-d '$d1 next year' '+%Y-%m-%d %T'", {OUT=>"$dy $t0"}],
+
+ ['utc-0', "-u -d '08/01/97 6:00' '+%D,%H:%M'", {OUT=>"08/01/97,06:00"},
+ {ENV => 'TZ=UTC+4'}],
+
+ ['utc-0a', "-u -d '08/01/97 6:00 UTC +4 hours' '+%D,%H:%M'",
+ {OUT=>"08/01/97,10:00"}],
+ # Make sure --file=FILE works with -u.
+ ['utc-1', "-u --file=f '+%Y-%m-%d %T'",
+ {AUX=>{f=>"$d0 $t0\n$d0 $t0"}},
+ {OUT=>"$d0 $t0\n$d0 $t0"},
+ {ENV => 'TZ=UTC+1'}],
+
+ ['utc-1a', "-u --file=f '+%Y-%m-%d %T'",
+ {AUX=>{f=>"$d0 $t0 UTC +1 hour\n$d0 $t0 UTC +1 hour"}},
+ {OUT=>"$d0 $th\n$d0 $th"}],
+
+ # From the examples in the documentation.
+ ['date2sec-0', "-d '1970-01-01 00:00:01' +%s", {OUT=>"7201"},
+ {ENV => 'TZ=UTC+2'}],
+
+ # Same as above, but don't rely on TZ in environment.
+ ['date2sec-0a', "-d '1970-01-01 00:00:01 UTC +2 hours' +%s",
+ {OUT=>"7201"}],
+
+ ['date2sec-1', "-d 2000-01-01 +%s", {OUT=>"946684800"}],
+ ['sec2date-0', "-d '1970-01-01 UTC 946684800 sec' +'%Y-%m-%d %T %z'",
+ {OUT=>"2000-01-01 00:00:00 +0000"}],
+
+ ['this-m', "-d '$d0 $t0 this minute' $fmt", {OUT=>"$d0 $t0"}],
+ ['this-h', "-d '$d0 $t0 this hour' $fmt", {OUT=>"$d0 $t0"}],
+ ['this-w', "-d '$d0 $t0 this week' $fmt", {OUT=>"$d0 $t0"}],
+ ['this-mo', "-d '$d0 $t0 this month' $fmt", {OUT=>"$d0 $t0"}],
+ ['this-y', "-d '$d0 $t0 this year' $fmt", {OUT=>"$d0 $t0"}],
+
+ ['risks-1', "-d 'Nov 10 1996' $fmt", {OUT=>"1996-11-10 00:00:00"}],
+
+ # This one would pass if TZ (with any, or even no, value) were in
+ # the environment.
+ ['regress-1', "-u -d '1996-11-10 0:00:00 +0' $fmt",
+ {OUT=>"1996-11-10 00:00:00"},
+ {ENV =>'LANG=C'}],
+
+
+ ['datevtime-1', "-d 000909 $fmt", {OUT=>"2000-09-09 00:00:00"}],
+
+ # test for RFC-822 conformance
+ ['rfc822-1', "-R -d '$d1'", {OUT=>"Sun, 19 Jan 1997 08:17:48 +0000"},
+ # Solaris 5.9's /bin/sh emits this diagnostic to stderr
+ # if you don't have support for the named locale.
+ {ERR_SUBST => q!s/^couldn't set locale correctly\n//!},
+ {ENV => 'LC_ALL=de_DE TZ=UTC0'}],
+
+ # Relative seconds, with time. fixed in 2.0j
+ ['relative-1', "--utc -d '1970-01-01 00:00:00 UTC +961062237 sec' $fmt",
+ {OUT=>"2000-06-15 09:43:57"}],
+
+ # Relative seconds, no time.
+ ['relative-2', "--utc -d '1970-01-01 UTC +961062237 sec' $fmt",
+ {OUT=>"2000-06-15 09:43:57"},
+ {ENV => 'TZ=UTC+1'}],
+
+ # Relative days, no time, across time zones.
+ ['relative-3', "-I -d '2006-04-23 21 days ago'", {OUT=>"2006-04-02"},
+ {ENV=>'TZ=PST8PDT,M4.1.0,M10.5.0'}],
+
+ # This would infloop (or appear to) prior to coreutils-4.5.5,
+ # due to a bug in strftime.c.
+ ['wide-fmt', "-d '1999-06-01'", '+%3004Y', {OUT=>'0' x 3000 . "1999"}],
+
+ # Ensure that we can parse MONTHNAME-DAY-YEAR.
+ ['moname-d-y', '--iso -d May-23-2003', {OUT=>"2003-05-23"}],
+ ['moname-d-y-r', '--rfc-3339=date -d May-23-2003', {OUT=>"2003-05-23"}],
+
+ ['epoch', '--iso=sec -d @31536000',
+ {OUT=>"1971-01-01T00:00:00+00:00"}],
+ ['epoch-r', '--rfc-3339=sec -d @31536000',
+ {OUT=>"1971-01-01 00:00:00+00:00"}],
+
+ ['ns-10', '--iso=ns', '-d "1969-12-31 13:00:00.00000001-1100"',
+ {OUT=>"1970-01-01T00:00:00,000000010+00:00"}],
+ ['ns-10-r', '--rfc-3339=ns', '-d "1969-12-31 13:00:00.00000001-1100"',
+ {OUT=>"1970-01-01 00:00:00.000000010+00:00"}],
+
+ ['ns-max32', '--iso=ns', '-d "2038-01-19 03:14:07.999999999"',
+ {OUT=>"2038-01-19T03:14:07,999999999+00:00"}],
+ ['ns-max32-r', '--rfc-3339=ns', '-d "2038-01-19 03:14:07.999999999"',
+ {OUT=>"2038-01-19 03:14:07.999999999+00:00"}],
+
+ ['tz-1', '+%:::z', {OUT=>"-12:34:56"}, {ENV=>'TZ=XXX12:34:56'}],
+
+ ['tz-2', '+%:::z', {OUT=>"+12:34:56"}, {ENV=>'TZ=XXX-12:34:56'}],
+
+ ['tz-3', '+%::z', {OUT=>"+01:02:03"}, {ENV=>'TZ=XXX-1:02:03'}],
+
+ ['tz-4', '+%:::z', {OUT=>"+12"}, {ENV=>'TZ=XXX-12'}],
+
+ ['tz-5', '+%:z', {OUT=>"-00:01"}, {ENV=>'TZ=XXX0:01'}],
+
+ # Accept %:z with a field width before the ':'.
+ ['tz-5w','+%8:z', {OUT=>"-0000:01"}, {ENV=>'TZ=XXX0:01'}],
+ # Don't recognize %:z with a field width between the ':' and the 'z'.
+ ['tz-5wf', '+%:8z', {OUT=>"%:8z"}, {ENV=>'TZ=XXX0:01'}],
+
+ ['ns-relative',
+ '--iso=ns',
+ "-d'1970-01-01 00:00:00.1234567 UTC +961062237.987654321 sec'",
+ {OUT=>"2000-06-15T09:43:58,111111021+00:00"}],
+ ['ns-relativer', '--rfc-3339=ns',
+ "-d'1970-01-01 00:00:00.1234567 UTC +961062237.987654321 sec'",
+ {OUT=>"2000-06-15 09:43:58.111111021+00:00"}],
+
+ # Since coreutils/lib/getdate.y revision 1.96 (post-coreutils-5.3.0),
+ # a command like the following would mistakenly exit nonzero with an
+ # 'invalid date ...' diagnostic, but when run in a time zone for
+ # which daylight savings time is in effect for the starting date.
+ # Unfortunately (for ease of testing), if you set TZ at all, this
+ # failure is not triggered, hence the removal of TZ from the environment.
+ ['cross-dst', "-d'2005-03-27 +1 day'", '+%Y', {OUT=>"2005"},
+ {ENV_DEL => 'TZ'},
+ ],
+
+ ['empty-fmt', '+', {OUT=>""}],
+
+ ['neg-secs', '-d @-22 +%05s', {OUT=>"-0022"}],
+ ['neg-secs2', '-d @-22 +%_5s', {OUT=>" -22"}],
+
+ # FIXME: Ensure date doesn't print uninitialized data
+ # for an out-of-range date. This test is currently
+ # disabled as various systems have different limits
+ # for localtime(), and we can't use perl for example
+ # to determine those limits as it doesn't always call
+ # down to the system localtime() as it has configure
+ # time checks and settings itself for these limits.
+ #['uninit-64', "-d \@72057594037927935",
+ # {OUT=>''},
+ # # Use ERR_SUBST to get around fact that the diagnostic
+ # # you get on a system with 32-bit time_t is not the same as
+ # # the one you get for a system where it's 64 bits wide:
+ # # - date: time 72057594037927935 is out of range
+ # # + date: invalid date '@72057594037927935'
+ # {ERR_SUBST => 's/.*//'},
+ # {ERR => "\n"},
+ # {EXIT => 1},
+ #],
+
+ ['fill-1', '-d 1999-12-08 +%_3d', {OUT=>' 8'}],
+ ['fill-2', '-d 1999-12-08 +%03d', {OUT=>'008'}],
+
+ # Test the combination of the to-upper-case modifier (^) and a conversion
+ # specifier that expands to a string containing lower case characters.
+ ['subfmt-up1', '-d "1999-12-08 7:30" "+%^c"',
+ # Solaris 5.9 prints 'WED DEC 08 07:30:00 1999', while
+ # most others print 'WED DEC 8 07:30:00 1999'.
+ {OUT_SUBST => 's/ [ 0]8.*//'},
+ {OUT=>'WED DEC'}],
+
+ ['invalid-high-bit-set', "-d '\xb0'",
+ {ERR => "date: invalid date '\\260'\n"},
+ {EXIT => 1},
+ ],
+
+ # From coreutils-5.3.0 to 8.22 inclusive
+ # this would either infinite loop or crash
+ ['invalid-TZ-crash', "-d 'TZ=\"\"\"'",
+ {ERR => "date: invalid date 'TZ=\"\"\"'\n"},
+ {EXIT => 1},
+ ],
+ );
+
+# Repeat the cross-dst test, using Jan 1, 2005 and every interval from 1..364.
+foreach my $i (1..364)
+ {
+ push @Tests, ["cross-dst$i",
+ "-d'2005-01-01 +$i day'", '+%Y', {OUT=>"2005"},
+ {ENV_DEL => 'TZ'},
+ ];
+ }
+
+# Append "\n" to each OUT=> RHS if the expected exit value is either
+# zero or not specified (defaults to zero).
+foreach my $t (@Tests)
+ {
+ my $exit_val;
+ foreach my $e (@$t)
+ {
+ ref $e && ref $e eq 'HASH' && defined $e->{EXIT}
+ and $exit_val = $e->{EXIT};
+ }
+ foreach my $e (@$t)
+ {
+ ref $e && ref $e eq 'HASH' && defined $e->{OUT} && ! $exit_val
+ and $e->{OUT} .= "\n";
+ }
+ }
+
+my $save_temps = $ENV{DEBUG};
+my $verbose = $ENV{VERBOSE};
+
+my $prog = 'date';
+my $fail = run_tests ($ME, $prog, \@Tests, $save_temps, $verbose);
+exit $fail;
diff --git a/tests/misc/df b/tests/misc/df
deleted file mode 100755
index 31040ca..0000000
--- a/tests/misc/df
+++ /dev/null
@@ -1,34 +0,0 @@
-#!/bin/sh
-# Ensure that "df ." outputs a header.
-
-# Copyright (C) 2006 Free Software Foundation, Inc.
-
-# This program is free software; you can redistribute it and/or modify
-# it under the terms of the GNU General Public License as published by
-# the Free Software Foundation; either version 2 of the License, or
-# (at your option) any later version.
-
-# This program is distributed in the hope that it will be useful,
-# but WITHOUT ANY WARRANTY; without even the implied warranty of
-# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
-# GNU General Public License for more details.
-
-# You should have received a copy of the GNU General Public License
-# along with this program; if not, write to the Free Software
-# Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA
-# 02110-1301, USA.
-
-if test "$VERBOSE" = yes; then
- set -x
- df --version
-fi
-
-case `df .` in
-*'
-'*)
- fail=0;;
-*)
- fail=1;;
-esac
-
-(exit $fail); exit $fail
diff --git a/tests/misc/df-P b/tests/misc/df-P
deleted file mode 100755
index 3a5ec9b..0000000
--- a/tests/misc/df-P
+++ /dev/null
@@ -1,60 +0,0 @@
-#!/bin/sh
-# Ensure that df -P is not affected by BLOCK_SIZE settings
-
-# Copyright (C) 2007 Free Software Foundation, Inc.
-
-# This program is free software; you can redistribute it and/or modify
-# it under the terms of the GNU General Public License as published by
-# the Free Software Foundation; either version 2 of the License, or
-# (at your option) any later version.
-
-# This program is distributed in the hope that it will be useful,
-# but WITHOUT ANY WARRANTY; without even the implied warranty of
-# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
-# GNU General Public License for more details.
-
-# You should have received a copy of the GNU General Public License
-# along with this program; if not, write to the Free Software
-# Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA
-# 02110-1301, USA.
-
-if test "$VERBOSE" = yes; then
- set -x
- df --version
-fi
-
-. $srcdir/../envvar-check
-. $srcdir/../lang-default
-
-pwd=`pwd`
-t0=`echo "$0"|sed 's,.*/,,'`.tmp; tmp=$t0/$$
-trap 'status=$?; cd "$pwd" && chmod -R u+rwx $t0 && rm -rf $t0 && exit $status' 0
-trap '(exit $?); exit $?' 1 2 13 15
-
-framework_failure=0
-mkdir -p $tmp || framework_failure=1
-cd $tmp || framework_failure=1
-
-if test $framework_failure = 1; then
- echo "$0: failure in testing framework" 1>&2
- (exit 1); exit 1
-fi
-
-fail=0
-
- df -P . > t1 || fail=1
-BLOCK_SIZE=1M df -P . > t2 || fail=1
-
-# Since disk utilization may be changing, compare only df's header line.
-# That records the block size. E.g., for "1M", it would be:
-# Filesystem 1048576-blocks Used Available Capacity Mounted on
-# while for 1K, it would be
-# Filesystem 1024-blocks Used Available Capacity Mounted on
-
-head -n1 t1 > exp || fail=1
-head -n1 t2 > out || fail=1
-
-cmp out exp || fail=1
-test $fail = 1 && diff out exp 2> /dev/null
-
-(exit $fail); exit $fail
diff --git a/tests/misc/dircolors.pl b/tests/misc/dircolors.pl
new file mode 100755
index 0000000..65da045
--- /dev/null
+++ b/tests/misc/dircolors.pl
@@ -0,0 +1,54 @@
+#!/usr/bin/perl
+# Simple dircolors tests.
+
+# Copyright (C) 1998-2016 Free Software Foundation, Inc.
+
+# This program is free software: you can redistribute it and/or modify
+# it under the terms of the GNU General Public License as published by
+# the Free Software Foundation, either version 3 of the License, or
+# (at your option) any later version.
+
+# This program is distributed in the hope that it will be useful,
+# but WITHOUT ANY WARRANTY; without even the implied warranty of
+# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
+# GNU General Public License for more details.
+
+# You should have received a copy of the GNU General Public License
+# along with this program. If not, see <http://www.gnu.org/licenses/>.
+
+use strict;
+
+(my $program_name = $0) =~ s|.*/||;
+
+# Turn off localization of executable's output.
+@ENV{qw(LANGUAGE LANG LC_ALL)} = ('C') x 3;
+
+my @Tests =
+ (
+ ['a', '-b', {IN => {k => "exec\n"}},
+ {ERR => "dircolors: k:1: invalid line; missing second token\n"},
+ {EXIT => 1}],
+ ['quote', '-b', {IN => "exec 'echo Hello;:'\n"},
+ {OUT => "LS_COLORS='ex='\\''echo Hello;\\:'\\'':';\n"
+ . "export LS_COLORS\n"}],
+ ['other-wr', '-b', {IN => "owt 40;33\n"},
+ {OUT => "LS_COLORS='tw=40;33:';\nexport LS_COLORS\n"}],
+ ['term-1', '-b', {IN => "TERM none\nowt 40;33\n"},
+ {OUT => "LS_COLORS='tw=40;33:';\nexport LS_COLORS\n"}],
+ ['term-2', '-b', {IN => "TERM non*\nowt 40;33\n"},
+ {OUT => "LS_COLORS='tw=40;33:';\nexport LS_COLORS\n"}],
+ ['term-3', '-b', {IN => "TERM nomatch\nowt 40;33\n"},
+ {OUT => "LS_COLORS='';\nexport LS_COLORS\n"}],
+ ['term-4', '-b', {IN => "TERM N*match\nowt 40;33\n"},
+ {OUT => "LS_COLORS='';\nexport LS_COLORS\n"}],
+
+ # CAREFUL: always specify the -b option, unless explicitly testing
+ # for csh syntax output.
+ );
+
+my $save_temps = $ENV{DEBUG};
+my $verbose = $ENV{VERBOSE};
+
+my $prog = 'dircolors';
+my $fail = run_tests ($program_name, $prog, \@Tests, $save_temps, $verbose);
+exit $fail;
diff --git a/tests/misc/dirname b/tests/misc/dirname
deleted file mode 100755
index c217d9a..0000000
--- a/tests/misc/dirname
+++ /dev/null
@@ -1,89 +0,0 @@
-#!/bin/sh
-# -*-perl-*-
-# Test "dirname".
-
-# Copyright (C) 2006 Free Software Foundation, Inc.
-
-# This program is free software; you can redistribute it and/or modify
-# it under the terms of the GNU General Public License as published by
-# the Free Software Foundation; either version 2 of the License, or
-# (at your option) any later version.
-
-# This program is distributed in the hope that it will be useful,
-# but WITHOUT ANY WARRANTY; without even the implied warranty of
-# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
-# GNU General Public License for more details.
-
-# You should have received a copy of the GNU General Public License
-# along with this program; if not, write to the Free Software
-# Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA
-# 02110-1301, USA.
-
-: ${PERL=perl}
-: ${srcdir=.}
-
-$PERL -e 1 > /dev/null 2>&1 || {
- echo 1>&2 "$0: configure didn't find a usable version of Perl," \
- "so can't run this test"
- exit 77
-}
-
-d=$srcdir/..
-exec $PERL -w -I$d -MCoreutils -- - << \EOF
-require 5.003;
-use strict;
-use File::stat;
-
-(my $program_name = $0) =~ s|.*/||;
-
-# Turn off localisation of executable's ouput.
-@ENV{qw(LANGUAGE LANG LC_ALL)} = ('C') x 3;
-
-my $stat_single = stat('/');
-my $stat_double = stat('//');
-my $double_slash = ($stat_single->dev == $stat_double->dev
- && $stat_single->ino == $stat_double->ino) ? '/' : '//';
-
-my $prog = $ENV{PROG} || die "$0: \$PROG not specified in environment\n";
-
-my @Tests =
- (
- ['fail-1', {ERR => "$prog: missing operand\n"
- . "Try `$prog --help' for more information.\n"}, {EXIT => '1'}],
- ['fail-2', qw(a b), {ERR => "$prog: extra operand `b'\n"
- . "Try `$prog --help' for more information.\n"}, {EXIT => '1'}],
-
- ['a', qw(d/f), {OUT => 'd'}],
- ['b', qw(/d/f), {OUT => '/d'}],
- ['c', qw(d/f/), {OUT => 'd'}],
- ['d', qw(d/f//), {OUT => 'd'}],
- ['e', qw(f), {OUT => '.'}],
- ['f', qw(/), {OUT => '/'}],
- ['g', qw(//), {OUT => "$double_slash"}],
- ['h', qw(///), {OUT => '/'}],
- ['i', qw(//a//), {OUT => "$double_slash"}],
- ['j', qw(///a///), {OUT => '/'}],
- ['k', qw(///a///b), {OUT => '///a'}],
- ['l', qw(///a//b/), {OUT => '///a'}],
- ['m', qw(''), {OUT => '.'}],
- );
-
-# Append a newline to end of each expected `OUT' string.
-my $t;
-foreach $t (@Tests)
- {
- my $arg1 = $t->[1];
- my $e;
- foreach $e (@$t)
- {
- $e->{OUT} = "$e->{OUT}\n"
- if ref $e eq 'HASH' and exists $e->{OUT};
- }
- }
-
-my $save_temps = $ENV{SAVE_TEMPS};
-my $verbose = $ENV{VERBOSE};
-
-my $fail = run_tests ($program_name, $prog, \@Tests, $save_temps, $verbose);
-exit $fail;
-EOF
diff --git a/tests/misc/dirname.pl b/tests/misc/dirname.pl
new file mode 100755
index 0000000..0791641
--- /dev/null
+++ b/tests/misc/dirname.pl
@@ -0,0 +1,72 @@
+#!/usr/bin/perl
+# Test "dirname".
+
+# Copyright (C) 2006-2016 Free Software Foundation, Inc.
+
+# This program is free software: you can redistribute it and/or modify
+# it under the terms of the GNU General Public License as published by
+# the Free Software Foundation, either version 3 of the License, or
+# (at your option) any later version.
+
+# This program is distributed in the hope that it will be useful,
+# but WITHOUT ANY WARRANTY; without even the implied warranty of
+# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
+# GNU General Public License for more details.
+
+# You should have received a copy of the GNU General Public License
+# along with this program. If not, see <http://www.gnu.org/licenses/>.
+
+use strict;
+use File::stat;
+
+(my $program_name = $0) =~ s|.*/||;
+
+# Turn off localization of executable's output.
+@ENV{qw(LANGUAGE LANG LC_ALL)} = ('C') x 3;
+
+my $stat_single = stat('/');
+my $stat_double = stat('//');
+my $double_slash = ($stat_single->dev == $stat_double->dev
+ && $stat_single->ino == $stat_double->ino) ? '/' : '//';
+
+my $prog = 'dirname';
+
+my @Tests =
+ (
+ ['fail-1', {ERR => "$prog: missing operand\n"
+ . "Try '$prog --help' for more information.\n"}, {EXIT => '1'}],
+
+ ['a', qw(d/f), {OUT => 'd'}],
+ ['b', qw(/d/f), {OUT => '/d'}],
+ ['c', qw(d/f/), {OUT => 'd'}],
+ ['d', qw(d/f//), {OUT => 'd'}],
+ ['e', qw(f), {OUT => '.'}],
+ ['f', qw(/), {OUT => '/'}],
+ ['g', qw(//), {OUT => "$double_slash"}],
+ ['h', qw(///), {OUT => '/'}],
+ ['i', qw(//a//), {OUT => "$double_slash"}],
+ ['j', qw(///a///), {OUT => '/'}],
+ ['k', qw(///a///b), {OUT => '///a'}],
+ ['l', qw(///a//b/), {OUT => '///a'}],
+ ['m', qw(''), {OUT => '.'}],
+ ['n', qw(a/b c/d), {OUT => "a\nc"}],
+ );
+
+# Append a newline to end of each expected 'OUT' string.
+my $t;
+foreach $t (@Tests)
+ {
+ my $arg1 = $t->[1];
+ my $e;
+ foreach $e (@$t)
+ {
+ $e->{OUT} = "$e->{OUT}\n"
+ if ref $e eq 'HASH' and exists $e->{OUT};
+ }
+ }
+
+my $save_temps = $ENV{SAVE_TEMPS};
+my $verbose = $ENV{VERBOSE};
+
+my $fail = run_tests ($program_name, $prog, \@Tests, $save_temps, $verbose);
+exit $fail;
diff --git a/tests/misc/env-null.sh b/tests/misc/env-null.sh
new file mode 100755
index 0000000..f84ff27
--- /dev/null
+++ b/tests/misc/env-null.sh
@@ -0,0 +1,61 @@
+#!/bin/sh
+# Verify behavior of env -0 and printenv -0.
+
+# Copyright (C) 2009-2016 Free Software Foundation, Inc.
+
+# This program is free software: you can redistribute it and/or modify
+# it under the terms of the GNU General Public License as published by
+# the Free Software Foundation, either version 3 of the License, or
+# (at your option) any later version.
+
+# This program is distributed in the hope that it will be useful,
+# but WITHOUT ANY WARRANTY; without even the implied warranty of
+# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
+# GNU General Public License for more details.
+
+# You should have received a copy of the GNU General Public License
+# along with this program. If not, see <http://www.gnu.org/licenses/>.
+
+. "${srcdir=.}/tests/init.sh"; path_prepend_ ./src
+print_ver_ env printenv
+
+# POSIX is clear that environ may, but need not be, sorted.
+# Environment variable values may contain newlines, which cannot be
+# observed by merely inspecting output from env.
+# Cygwin requires a minimal environment to launch new processes: execve
+# adds missing variables SYSTEMROOT and WINDIR, which show up in a
+# subsequent env. Cygwin also requires /bin to always be part of PATH,
+# and attempts to unset or reduce PATH may cause execve to fail.
+#
+# For these reasons, it is better to compare two outputs from distinct
+# programs that should be the same, rather than building an exp file.
+env -i PATH="$PATH" env -0 > out1 || fail=1
+env -i PATH="$PATH" printenv -0 > out2 || fail=1
+compare out1 out2 || fail=1
+env -i PATH="$PATH" env --null > out2 || fail=1
+compare out1 out2 || fail=1
+env -i PATH="$PATH" printenv --null > out2 || fail=1
+compare out1 out2 || fail=1
+
+# env -0 does not work if a command is specified.
+env -0 echo hi > out
+test $? = 125 || fail=1
+compare /dev/null out || fail=1
+
+# Test env -0 on a one-variable environment.
+printf 'a=b\nc=\0' > exp || framework_failure_
+env -i -0 "$(printf 'a=b\nc=')" > out || fail=1
+compare exp out || fail=1
+
+# Test printenv -0 on particular values.
+printf 'b\nc=\0' > exp || framework_failure_
+env "$(printf 'a=b\nc=')" printenv -0 a > out || fail=1
+compare exp out || fail=1
+env -u a printenv -0 a > out
+test $? = 1 || fail=1
+compare /dev/null out || fail=1
+env -u b "$(printf 'a=b\nc=')" printenv -0 b a > out
+test $? = 1 || fail=1
+compare exp out || fail=1
+
+Exit $fail
diff --git a/tests/misc/env.sh b/tests/misc/env.sh
new file mode 100755
index 0000000..666d777
--- /dev/null
+++ b/tests/misc/env.sh
@@ -0,0 +1,159 @@
+#!/bin/sh
+# Verify behavior of env.
+
+# Copyright (C) 2009-2016 Free Software Foundation, Inc.
+
+# This program is free software: you can redistribute it and/or modify
+# it under the terms of the GNU General Public License as published by
+# the Free Software Foundation, either version 3 of the License, or
+# (at your option) any later version.
+
+# This program is distributed in the hope that it will be useful,
+# but WITHOUT ANY WARRANTY; without even the implied warranty of
+# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
+# GNU General Public License for more details.
+
+# You should have received a copy of the GNU General Public License
+# along with this program. If not, see <http://www.gnu.org/licenses/>.
+
+
+. "${srcdir=.}/tests/init.sh"; path_prepend_ ./src
+print_ver_ env
+
+# A simple shebang program to call "echo" from symlinks like "./-u" or "./--".
+echo "#!$abs_top_builddir/src/echo simple_echo" > simple_echo \
+ || framework_failure_
+chmod a+x simple_echo || framework_failure_
+
+# Verify we can run the shebang which is not the case if
+# there are spaces in $abs_top_builddir.
+./simple_echo || skip_ "Error running simple_echo script"
+
+# Verify clearing the environment
+a=1
+export a
+env - > out || fail=1
+compare /dev/null out || fail=1
+env -i > out || fail=1
+compare /dev/null out || fail=1
+env -u a -i -u a -- > out || fail=1
+compare /dev/null out || fail=1
+env -i -- a=b > out || fail=1
+echo a=b > exp || framework_failure_
+compare exp out || fail=1
+
+# These tests verify exact status of internal failure.
+env --- # unknown option
+test $? = 125 || fail=1
+env -u # missing option argument
+test $? = 125 || fail=1
+env sh -c 'exit 2' # exit status propagation
+test $? = 2 || fail=2
+env . # invalid command
+test $? = 126 || fail=1
+env no_such # no such command
+test $? = 127 || fail=1
+
+# POSIX is clear that environ may, but need not be, sorted.
+# Environment variable values may contain newlines, which cannot be
+# observed by merely inspecting output from env.
+# Cygwin requires a minimal environment to launch new processes: execve
+# adds missing variables SYSTEMROOT and WINDIR, which show up in a
+# subsequent env. Cygwin also requires /bin to always be part of PATH,
+# and attempts to unset or reduce PATH may cause execve to fail.
+#
+# For these reasons, it is more portable to grep that our desired changes
+# took place, rather than comparing output of env over an entire environment.
+if env | grep '^ENV_TEST' >/dev/null ; then
+ skip_ "environment has potential interference from ENV_TEST*"
+fi
+
+ENV_TEST1=a
+export ENV_TEST1
+>out || framework_failure_
+env ENV_TEST2= > all || fail=1
+grep '^ENV_TEST' all | LC_ALL=C sort >> out || framework_failure_
+env -u ENV_TEST1 ENV_TEST3=c > all || fail=1
+grep '^ENV_TEST' all | LC_ALL=C sort >> out || framework_failure_
+env ENV_TEST1=b > all || fail=1
+grep '^ENV_TEST' all | LC_ALL=C sort >> out || framework_failure_
+env ENV_TEST2= env > all || fail=1
+grep '^ENV_TEST' all | LC_ALL=C sort >> out || framework_failure_
+env -u ENV_TEST1 ENV_TEST3=c env > all || fail=1
+grep '^ENV_TEST' all | LC_ALL=C sort >> out || framework_failure_
+env ENV_TEST1=b env > all || fail=1
+grep '^ENV_TEST' all | LC_ALL=C sort >> out || framework_failure_
+cat <<EOF >exp || framework_failure_
+ENV_TEST1=a
+ENV_TEST2=
+ENV_TEST3=c
+ENV_TEST1=b
+ENV_TEST1=a
+ENV_TEST2=
+ENV_TEST3=c
+ENV_TEST1=b
+EOF
+compare exp out || fail=1
+
+# PATH modifications affect exec.
+mkdir unlikely_name || framework_failure_
+cat <<EOF > unlikely_name/also_unlikely || framework_failure_
+#!/bin/sh
+echo pass
+EOF
+chmod +x unlikely_name/also_unlikely || framework_failure_
+returns_ 127 env also_unlikely || fail=1
+test x$(PATH=$PATH:unlikely_name env also_unlikely) = xpass || fail=1
+test x$(env PATH="$PATH":unlikely_name also_unlikely) = xpass || fail=1
+
+# Explicitly put . on the PATH for the rest of this test.
+PATH=$PATH:
+export PATH
+
+# Use -- to end options (but not variable assignments).
+# On some systems, execve("-i") invokes a shebang script ./-i on PATH as
+# '/bin/sh -i', rather than '/bin/sh -- -i', which doesn't do what we want.
+# Avoid the issue by using a shebang to 'echo' passing a second parameter
+# before the '-i'. See the definition of simple_echo before.
+# Test -u, rather than -i, to minimize PATH problems.
+ln -s "simple_echo" ./-u || framework_failure_
+case $(env -u echo echo good) in
+ good) ;;
+ *) fail=1 ;;
+esac
+case $(env -u echo -- echo good) in
+ good) ;;
+ *) fail=1 ;;
+esac
+case $(env -- -u pass) in
+ *pass) ;;
+ *) fail=1 ;;
+esac
+
+# After options have ended, the first argument not containing = is a program.
+env a=b -- true
+test $? = 127 || fail=1
+ln -s "simple_echo" ./-- || framework_failure_
+case $(env a=b -- true || echo fail) in
+ *true) ;;
+ *) fail=1 ;;
+esac
+
+# No way to directly invoke program name containing =.
+cat <<EOF >./c=d || framework_failure_
+#!/bin/sh
+echo pass
+EOF
+chmod +x c=d || framework_failure_
+test "x$(env c=d echo fail)" = xfail || fail=1
+test "x$(env -- c=d echo fail)" = xfail || fail=1
+test "x$(env ./c=d echo fail)" = xfail || fail=1
+test "x$(env sh -c 'exec "$@"' sh c=d echo fail)" = xpass || fail=1
+test "x$(sh -c '\c=d echo fail')" = xpass && #dash 0.5.4 fails so check first
+ { test "x$(env sh -c '\c=d echo fail')" = xpass || fail=1; }
+
+# catch unsetenv failure, broken through coreutils 8.0
+returns_ 125 env -u a=b true || fail=1
+returns_ 125 env -u '' true || fail=1
+
+Exit $fail
diff --git a/tests/misc/expand b/tests/misc/expand
deleted file mode 100755
index dcf0681..0000000
--- a/tests/misc/expand
+++ /dev/null
@@ -1,54 +0,0 @@
-#!/bin/sh
-# -*- perl -*-
-# Exercise expand.
-
-# Copyright (C) 2004, 2005, 2006 Free Software Foundation, Inc.
-
-# This program is free software; you can redistribute it and/or modify
-# it under the terms of the GNU General Public License as published by
-# the Free Software Foundation; either version 2 of the License, or
-# (at your option) any later version.
-
-# This program is distributed in the hope that it will be useful,
-# but WITHOUT ANY WARRANTY; without even the implied warranty of
-# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
-# GNU General Public License for more details.
-
-# You should have received a copy of the GNU General Public License
-# along with this program; if not, write to the Free Software
-# Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA
-# 02110-1301, USA.
-
-: ${PERL=perl}
-: ${srcdir=.}
-
-$PERL -e 1 > /dev/null 2>&1 || {
- echo 1>&2 "$0: configure didn't find a usable version of Perl," \
- "so can't run this test"
- exit 77
-}
-
-exec $PERL -w -I$srcdir/.. -MCoreutils -- - <<\EOF
-#/
-require 5.003;
-use strict;
-
-(my $program_name = $0) =~ s|.*/||;
-
-# Turn off localization of executable's ouput.
-@ENV{qw(LANGUAGE LANG LC_ALL)} = ('C') x 3;
-
-my @Tests =
- (
- ['t1', '--tabs=3', {IN=>"a\tb"}, {OUT=>"a b"}],
- ['t2', '--tabs=3,6,9', {IN=>"a\tb\tc\td\te"}, {OUT=>"a b c d e"}],
- ['i1', '--tabs=3 -i', {IN=>"\ta\tb"}, {OUT=>" a\tb"}],
- );
-
-my $save_temps = $ENV{DEBUG};
-my $verbose = $ENV{VERBOSE};
-
-my $prog = $ENV{PROG} || die "$0: \$PROG not specified in environment\n";
-my $fail = run_tests ($program_name, $prog, \@Tests, $save_temps, $verbose);
-exit $fail;
-EOF
diff --git a/tests/misc/expand.pl b/tests/misc/expand.pl
new file mode 100755
index 0000000..a6b4a4d
--- /dev/null
+++ b/tests/misc/expand.pl
@@ -0,0 +1,39 @@
+#!/usr/bin/perl
+# Exercise expand.
+
+# Copyright (C) 2004-2016 Free Software Foundation, Inc.
+
+# This program is free software: you can redistribute it and/or modify
+# it under the terms of the GNU General Public License as published by
+# the Free Software Foundation, either version 3 of the License, or
+# (at your option) any later version.
+
+# This program is distributed in the hope that it will be useful,
+# but WITHOUT ANY WARRANTY; without even the implied warranty of
+# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
+# GNU General Public License for more details.
+
+# You should have received a copy of the GNU General Public License
+# along with this program. If not, see <http://www.gnu.org/licenses/>.
+
+use strict;
+
+(my $program_name = $0) =~ s|.*/||;
+
+# Turn off localization of executable's output.
+@ENV{qw(LANGUAGE LANG LC_ALL)} = ('C') x 3;
+
+my @Tests =
+ (
+ ['t1', '--tabs=3', {IN=>"a\tb"}, {OUT=>"a b"}],
+ ['t2', '--tabs=3,6,9', {IN=>"a\tb\tc\td\te"}, {OUT=>"a b c d e"}],
+ ['i1', '--tabs=3 -i', {IN=>"\ta\tb"}, {OUT=>" a\tb"}],
+ ['i2', '--tabs=3 -i', {IN=>" \ta\tb"}, {OUT=>" a\tb"}],
+ );
+
+my $save_temps = $ENV{DEBUG};
+my $verbose = $ENV{VERBOSE};
+
+my $prog = 'expand';
+my $fail = run_tests ($program_name, $prog, \@Tests, $save_temps, $verbose);
+exit $fail;
diff --git a/tests/misc/expr.pl b/tests/misc/expr.pl
new file mode 100755
index 0000000..f480f62
--- /dev/null
+++ b/tests/misc/expr.pl
@@ -0,0 +1,198 @@
+#!/usr/bin/perl
+# Basic tests for "expr".
+
+# Copyright (C) 2001-2016 Free Software Foundation, Inc.
+
+# This program is free software: you can redistribute it and/or modify
+# it under the terms of the GNU General Public License as published by
+# the Free Software Foundation, either version 3 of the License, or
+# (at your option) any later version.
+
+# This program is distributed in the hope that it will be useful,
+# but WITHOUT ANY WARRANTY; without even the implied warranty of
+# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
+# GNU General Public License for more details.
+
+# You should have received a copy of the GNU General Public License
+# along with this program. If not, see <http://www.gnu.org/licenses/>.
+
+use strict;
+
+(my $program_name = $0) =~ s|.*/||;
+my $prog = 'expr';
+
+# Turn off localization of executable's output.
+@ENV{qw(LANGUAGE LANG LC_ALL)} = ('C') x 3;
+
+my $big = '98782897298723498732987928734';
+my $big_p1 = '98782897298723498732987928735';
+my $big_sum = '197565794597446997465975857469';
+my $big_prod = '9758060798730154302876482828124348356960410232492450771490';
+
+my @Tests =
+ (
+ ['a', '5 + 6', {OUT => '11'}],
+ ['b', '5 - 6', {OUT => '-1'}],
+ ['c', '5 \* 6', {OUT => '30'}],
+ ['d', '100 / 6', {OUT => '16'}],
+ ['e', '100 % 6', {OUT => '4'}],
+ ['f', '3 + -2', {OUT => '1'}],
+ ['g', '-2 + -2', {OUT => '-4'}],
+
+ # Verify option processing.
+ # Added when option processing broke in the 7.0 beta release
+ ['opt1', '-- -11 + 12', {OUT => '1'}],
+ ['opt2', '-11 + 12', {OUT => '1'}],
+ ['opt3', '-- -1 + 2', {OUT => '1'}],
+ ['opt4', '-1 + 2', {OUT => '1'}],
+ # This evoked a syntax error diagnostic before 2.0.12.
+ ['opt5', '-- 2 + 2', {OUT => '4'}],
+
+ ['paren1', '\( 100 % 6 \)', {OUT => '4'}],
+ ['paren2', '\( 100 % 6 \) - 8', {OUT => '-4'}],
+ ['paren3', '9 / \( 100 % 6 \) - 8', {OUT => '-6'}],
+ ['paren4', '9 / \( \( 100 % 6 \) - 8 \)', {OUT => '-2'}],
+ ['paren5', '9 + \( 100 % 6 \)', {OUT => '13'}],
+
+ # Before 2.0.12, this would output '1'.
+ ['0bang', '00 \< 0!', {OUT => '0'}, {EXIT => 1}],
+
+ # In 5.1.3 and earlier, these would exit with status 0.
+ ['00', '00', {OUT => '00'}, {EXIT => 1}],
+ ['minus0', '-0', {OUT => '-0'}, {EXIT => 1}],
+
+ # In 5.1.3 and earlier, these would report errors.
+ ['andand', '0 \& 1 / 0', {OUT => '0'}, {EXIT => 1}],
+ ['oror', '1 \| 1 / 0', {OUT => '1'}, {EXIT => 0}],
+
+ # In 5.1.3 and earlier, this would output the empty string.
+ ['orempty', '"" \| ""', {OUT => '0'}, {EXIT => 1}],
+
+
+ # This erroneously succeeded and output '3' before 2.0.12.
+ ['fail-a', '3 + -', {ERR => "$prog: non-integer argument\n"},
+ {EXIT => 2}],
+
+ # This erroneously succeeded before 5.3.1.
+ ['bigcmp', '-- -2417851639229258349412352 \< 2417851639229258349412352',
+ {OUT => '1'}, {EXIT => 0}],
+
+ # In 5.94 and earlier, anchors incorrectly matched newlines.
+ ['anchor', "'a\nb' : 'a\$'", {OUT => '0'}, {EXIT => 1}],
+
+ # These tests are taken from grep/tests/bre.tests.
+ ['bre1', '"abc" : "a\\(b\\)c"', {OUT => 'b'}],
+ ['bre2', '"a(" : "a("', {OUT => '2'}],
+ ['bre3', '_ : "a\\("',
+ {ERR => "$prog: Unmatched ( or \\(\n"}, {EXIT => 2}],
+ ['bre4', '_ : "a\\(b"',
+ {ERR => "$prog: Unmatched ( or \\(\n"}, {EXIT => 2}],
+ ['bre5', '"a(b" : "a(b"', {OUT => '3'}],
+ ['bre6', '"a)" : "a)"', {OUT => '2'}],
+ ['bre7', '_ : "a\\)"',
+ {ERR => "$prog: Unmatched ) or \\)\n"}, {EXIT => 2}],
+ ['bre8', '_ : "\\)"',
+ {ERR => "$prog: Unmatched ) or \\)\n"}, {EXIT => 2}],
+ ['bre9', '"ab" : "a\\(\\)b"', {OUT => ''}, {EXIT => 1}],
+ ['bre10', '"a^b" : "a^b"', {OUT => '3'}],
+ ['bre11', '"a\$b" : "a\$b"', {OUT => '3'}],
+ ['bre12', '"" : "\\($\\)\\(^\\)"', {OUT => ''}, {EXIT => 1}],
+ ['bre13', '"b" : "a*\\(^b\$\\)c*"', {OUT => 'b'}],
+ ['bre14', '"X|" : "X\\(|\\)" : "(" "X|" : "X\\(|\\)" ")"', {OUT => '1'}],
+ ['bre15', '"X*" : "X\\(*\\)" : "(" "X*" : "X\\(*\\)" ")"', {OUT => '1'}],
+ ['bre16', '"abc" : "\\(\\)"', {OUT => ''}, {EXIT => 1}],
+ ['bre17', '"{1}a" : "\\(\\{1\\}a\\)"', {OUT => '{1}a'}],
+ ['bre18', '"X*" : "X\\(*\\)" : "^*"', {OUT => '1'}],
+ ['bre19', '"{1}" : "^\\{1\\}"', {OUT => '3'}],
+ ['bre20', '"{" : "{"', {OUT => '1'}],
+ ['bre21', '"abbcbd" : "a\\(b*\\)c\\1d"', {OUT => ''}, {EXIT => 1}],
+ ['bre22', '"abbcbbbd" : "a\\(b*\\)c\\1d"', {OUT => ''}, {EXIT => 1}],
+ ['bre23', '"abc" : "\\(.\\)\\1"', {OUT => ''}, {EXIT => 1}],
+ ['bre24', '"abbccd" : "a\\(\\([bc]\\)\\2\\)*d"', {OUT => 'cc'}],
+ ['bre25', '"abbcbd" : "a\\(\\([bc]\\)\\2\\)*d"',
+ {OUT => ''}, {EXIT => 1}],
+ ['bre26', '"abbbd" : "a\\(\\(b\\)*\\2\\)*d"', {OUT => 'bbb'}],
+ ['bre27', '"aabcd" : "\\(a\\)\\1bcd"', {OUT => 'a'}],
+ ['bre28', '"aabcd" : "\\(a\\)\\1bc*d"', {OUT => 'a'}],
+ ['bre29', '"aabd" : "\\(a\\)\\1bc*d"', {OUT => 'a'}],
+ ['bre30', '"aabcccd" : "\\(a\\)\\1bc*d"', {OUT => 'a'}],
+ ['bre31', '"aabcccd" : "\\(a\\)\\1bc*[ce]d"', {OUT => 'a'}],
+ ['bre32', '"aabcccd" : "\\(a\\)\\1b\\(c\\)*cd\$"', {OUT => 'a'}],
+ ['bre33', '"a*b" : "a\\(*\\)b"', {OUT => '*'}],
+ ['bre34', '"ab" : "a\\(**\\)b"', {OUT => ''}, {EXIT => 1}],
+ ['bre35', '"ab" : "a\\(***\\)b"', {OUT => ''}, {EXIT => 1}],
+ ['bre36', '"*a" : "*a"', {OUT => '2'}],
+ ['bre37', '"a" : "**a"', {OUT => '1'}],
+ ['bre38', '"a" : "***a"', {OUT => '1'}],
+ ['bre39', '"ab" : "a\\{1\\}b"', {OUT => '2'}],
+ ['bre40', '"ab" : "a\\{1,\\}b"', {OUT => '2'}],
+ ['bre41', '"aab" : "a\\{1,2\\}b"', {OUT => '3'}],
+ ['bre42', '_ : "a\\{1"',
+ {ERR => "$prog: Unmatched \\{\n"}, {EXIT => 2}],
+ ['bre43', '_ : "a\\{1a"',
+ {ERR => "$prog: Unmatched \\{\n"}, {EXIT => 2}],
+ ['bre44', '_ : "a\\{1a\\}"',
+ {ERR => "$prog: Invalid content of \\{\\}\n"}, {EXIT => 2}],
+ ['bre45', '"a" : "a\\{,2\\}"', {OUT => '1'}],
+ ['bre46', '"a" : "a\\{,\\}"', {OUT => '1'}],
+ ['bre47', '_ : "a\\{1,x\\}"',
+ {ERR => "$prog: Invalid content of \\{\\}\n"}, {EXIT => 2}],
+ ['bre48', '_ : "a\\{1,x"',
+ {ERR => "$prog: Unmatched \\{\n"}, {EXIT => 2}],
+ ['bre49', '_ : "a\\{32768\\}"',
+ {ERR => "$prog: Invalid content of \\{\\}\n"}, {EXIT => 2},
+ # Map AIX-6's different diagnostic to the one we expect:
+ {ERR_SUBST =>
+ 's,Regular expression too big,Invalid content of \\\\{\\\\},'},
+ ],
+ ['bre50', '_ : "a\\{1,0\\}"',
+ {ERR => "$prog: Invalid content of \\{\\}\n"}, {EXIT => 2}],
+ ['bre51', '"acabc" : ".*ab\\{0,0\\}c"', {OUT => '2'}],
+ ['bre52', '"abcac" : "ab\\{0,1\\}c"', {OUT => '3'}],
+ ['bre53', '"abbcac" : "ab\\{0,3\\}c"', {OUT => '4'}],
+ ['bre54', '"abcac" : ".*ab\\{1,1\\}c"', {OUT => '3'}],
+ ['bre55', '"abcac" : ".*ab\\{1,3\\}c"', {OUT => '3'}],
+ ['bre56', '"abbcabc" : ".*ab\{2,2\}c"', {OUT => '4'}],
+ ['bre57', '"abbcabc" : ".*ab\{2,4\}c"', {OUT => '4'}],
+ ['bre58', '"aa" : "a\\{1\\}\\{1\\}"', {OUT => '1'}],
+ ['bre59', '"aa" : "a*\\{1\\}"', {OUT => '2'}],
+ ['bre60', '"aa" : "a\\{1\\}*"', {OUT => '2'}],
+ ['bre61', '"acd" : "a\\(b\\)?c\\1d"', {OUT => ''}, {EXIT => 1}],
+ ['bre62', '-- "-5" : "-\\{0,1\\}[0-9]*\$"', {OUT => '2'}],
+
+ ['fail-b', '9 9', {ERR => "$prog: syntax error\n"},
+ {EXIT => 2}],
+ ['fail-c', {ERR => "$prog: missing operand\n"
+ . "Try '$prog --help' for more information.\n"},
+ {EXIT => 2}],
+
+ ['bignum-add', "$big + 1", {OUT => $big_p1}],
+ ['bignum-add2', "$big + $big_p1", {OUT => $big_sum}],
+ ['bignum-sub', "$big_p1 - 1", {OUT => $big}],
+ ['bignum-sub2', "$big_sum - $big", {OUT => $big_p1}],
+ ['bignum-mul', "$big_p1 '*' $big", {OUT => $big_prod}],
+ ['bignum-div', "$big_prod / $big", {OUT => $big_p1}],
+ );
+
+# If using big numbers fails, remove all /^bignum-/ tests
+qx!expr $big_prod '*' $big_prod '*' $big_prod!
+ or @Tests = grep {$_->[0] !~ /^bignum-/} @Tests;
+
+# Append a newline to end of each expected 'OUT' string.
+my $t;
+foreach $t (@Tests)
+ {
+ my $arg1 = $t->[1];
+ my $e;
+ foreach $e (@$t)
+ {
+ $e->{OUT} .= "\n"
+ if ref $e eq 'HASH' and exists $e->{OUT};
+ }
+ }
+
+my $save_temps = $ENV{SAVE_TEMPS};
+my $verbose = $ENV{VERBOSE};
+
+my $fail = run_tests ($program_name, $prog, \@Tests, $save_temps, $verbose);
+exit $fail;
diff --git a/tests/misc/factor-parallel.sh b/tests/misc/factor-parallel.sh
new file mode 100755
index 0000000..93a7318
--- /dev/null
+++ b/tests/misc/factor-parallel.sh
@@ -0,0 +1,34 @@
+#!/bin/sh
+# Test for complete lines on output
+
+# Copyright (C) 2015-2016 Free Software Foundation, Inc.
+
+# This program is free software: you can redistribute it and/or modify
+# it under the terms of the GNU General Public License as published by
+# the Free Software Foundation, either version 3 of the License, or
+# (at your option) any later version.
+
+# This program is distributed in the hope that it will be useful,
+# but WITHOUT ANY WARRANTY; without even the implied warranty of
+# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
+# GNU General Public License for more details.
+
+# You should have received a copy of the GNU General Public License
+# along with this program. If not, see <http://www.gnu.org/licenses/>.
+
+. "${srcdir=.}/tests/init.sh"; path_prepend_ ./src
+print_ver_ factor
+
+
+odd() { LC_ALL=C sed '/[24680]$/d'; }
+primes() { LC_ALL=C sed 's/.*: //; / /d'; }
+
+# Before v8.24 the number reported here would vary
+# Note -u not supplied to split, increased batching of quickly processed items.
+# As processing cost increases it becomes advantageous to use -u to keep
+# the factor processes supplied with data.
+nprimes=$(seq 1e6 | odd | split -nr/4 --filter='factor' | primes | wc -l)
+
+test "$nprimes" = '78498' || fail=1
+
+Exit $fail
diff --git a/tests/misc/factor.pl b/tests/misc/factor.pl
new file mode 100755
index 0000000..4c29753
--- /dev/null
+++ b/tests/misc/factor.pl
@@ -0,0 +1,115 @@
+#!/usr/bin/perl
+# Basic tests for "factor".
+
+# Copyright (C) 1998-2016 Free Software Foundation, Inc.
+
+# This program is free software: you can redistribute it and/or modify
+# it under the terms of the GNU General Public License as published by
+# the Free Software Foundation, either version 3 of the License, or
+# (at your option) any later version.
+
+# This program is distributed in the hope that it will be useful,
+# but WITHOUT ANY WARRANTY; without even the implied warranty of
+# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
+# GNU General Public License for more details.
+
+# You should have received a copy of the GNU General Public License
+# along with this program. If not, see <http://www.gnu.org/licenses/>.
+
+use strict;
+
+(my $program_name = $0) =~ s|.*/||;
+my $prog = 'factor';
+
+# Turn off localization of executable's output.
+@ENV{qw(LANGUAGE LANG LC_ALL)} = ('C') x 3;
+
+my @Tests =
+ (
+ ['1', '9', {OUT => '3 3'}],
+ ['1a', '7', {OUT => '7'}],
+ ['1b', ' +7', {OUT => '7'}],
+ ['2', '4294967291', {OUT => '4294967291'}],
+ ['3', '4294967292', {OUT => '2 2 3 3 7 11 31 151 331'}],
+ ['4', '4294967293', {OUT => '9241 464773'}],
+
+ ['a', '4294966201', {OUT => '12197 352133'}],
+ ['b', '4294966339', {OUT => '13187 325697'}],
+ ['c', '4294966631', {OUT => '13729 312839'}],
+ ['d', '4294966457', {OUT => '14891 288427'}],
+ ['e', '4294966759', {OUT => '21649 198391'}],
+ ['f', '4294966573', {OUT => '23071 186163'}],
+ ['g', '4294967101', {OUT => '23603 181967'}],
+ ['h', '4294966519', {OUT => '34583 124193'}],
+ ['i', '4294966561', {OUT => '36067 119083'}],
+ ['j', '4294966901', {OUT => '37747 113783'}],
+ ['k', '4294966691', {OUT => '39241 109451'}],
+ ['l', '4294966969', {OUT => '44201 97169'}],
+ ['m', '4294967099', {OUT => '44483 96553'}],
+ ['n', '4294966271', {OUT => '44617 96263'}],
+ ['o', '4294966789', {OUT => '50411 85199'}],
+ ['p', '4294966189', {OUT => '53197 80737'}],
+ ['q', '4294967213', {OUT => '57139 75167'}],
+ ['s', '4294967071', {OUT => '65521 65551'}],
+ ['t', '4294966194', {OUT => '2 3 3 3 3 3 3 3 53 97 191'}],
+ ['u', '4294966272', {OUT => '2 2 2 2 2 2 2 2 2 2 3 23 89 683'}],
+ ['v', '4294966400', {OUT => '2 2 2 2 2 2 2 5 5 1342177'}],
+ ['w', '4294966464', {OUT => '2 2 2 2 2 2 3 3 3 2485513'}],
+ ['x', '4294966896', {OUT => '2 2 2 2 3 3 3 11 607 1489'}],
+ ['y', '4294966998', {OUT => '2 3 7 3917 26107'}],
+ ['z', '-1',
+ # Map newer glibc diagnostic to expected.
+ # Also map OpenBSD 5.1's "unknown option" to expected "invalid option".
+ {ERR_SUBST => q!s/'1'/1/;s/unknown/invalid/!},
+ {ERR => "$prog: invalid option -- 1\n"
+ . "Try '$prog --help' for more information.\n"},
+ {EXIT => 1}],
+ ['cont', 'a 4',
+ {OUT => "4: 2 2\n"},
+ {ERR => "$prog: 'a' is not a valid positive integer\n"},
+ {EXIT => 1}],
+ ['bug-2012-a', '465658903', {OUT => '15259 30517'}],
+ ['bug-2012-b', '2242724851', {OUT => '33487 66973'}],
+ ['bug-2012-c', '6635692801', {OUT => '57601 115201'}],
+ ['bug-2012-d', '17709149503', {OUT => '94099 188197'}],
+ ['bug-2012-e', '17754345703', {OUT => '94219 188437'}],
+ );
+
+# If we have GMP support, append tests to exercise it.
+(system "grep '^#define HAVE_GMP 1' $ENV{CONFIG_HEADER} > /dev/null") == 0
+ and push (@Tests,
+ ['bug-gmp-2_sup_128', '340282366920938463463374607431768211456',
+ {OUT => '2 'x127 . '2'}],
+ ['bug-gmp-2_sup_256',
+ '115792089237316195423570985008687907853'
+ . '269984665640564039457584007913129639936',
+ {OUT => '2 'x255 . '2'}]);
+
+# Prepend the command line argument and append a newline to end
+# of each expected 'OUT' string.
+my $t;
+
+Test:
+foreach $t (@Tests)
+ {
+ (my $arg1 = $t->[1]) =~ s| *\+?||;
+
+ # Don't fiddle with expected OUT string if there's a nonzero exit status.
+ foreach my $e (@$t)
+ {
+ ref $e eq 'HASH' && exists $e->{EXIT} && $e->{EXIT}
+ and next Test;
+ }
+
+ foreach my $e (@$t)
+ {
+ ref $e eq 'HASH' && exists $e->{OUT}
+ and $e->{OUT} = "$arg1: $e->{OUT}\n"
+ }
+ }
+
+my $save_temps = $ENV{SAVE_TEMPS};
+my $verbose = $ENV{VERBOSE};
+
+my $fail = run_tests ($program_name, $prog, \@Tests, $save_temps, $verbose);
+exit $fail;
diff --git a/tests/misc/false-status b/tests/misc/false-status
deleted file mode 100755
index 612b5f9..0000000
--- a/tests/misc/false-status
+++ /dev/null
@@ -1,45 +0,0 @@
-#!/bin/sh
-# ensure that false exits nonzero even with --help or --version
-
-# Copyright (C) 2003, 2006 Free Software Foundation, Inc.
-
-# This program is free software; you can redistribute it and/or modify
-# it under the terms of the GNU General Public License as published by
-# the Free Software Foundation; either version 2 of the License, or
-# (at your option) any later version.
-
-# This program is distributed in the hope that it will be useful,
-# but WITHOUT ANY WARRANTY; without even the implied warranty of
-# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
-# GNU General Public License for more details.
-
-# You should have received a copy of the GNU General Public License
-# along with this program; if not, write to the Free Software
-# Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA
-# 02110-1301, USA.
-
-if test "$VERBOSE" = yes; then
- set -x
- false --version
-fi
-
-pwd=`pwd`
-t0=`echo "$0"|sed 's,.*/,,'`.tmp; tmp=$t0/$$
-trap 'status=$?; cd "$pwd" && chmod -R u+rwx $t0 && rm -rf $t0 && exit $status' 0
-trap '(exit $?); exit $?' 1 2 13 15
-
-framework_failure=0
-mkdir -p $tmp || framework_failure=1
-cd $tmp || framework_failure=1
-
-if test $framework_failure = 1; then
- echo "$0: failure in testing framework" 1>&2
- (exit 1); exit 1
-fi
-
-fail=0
-
-false --version > /dev/null && fail=1
-false --help > /dev/null && fail=1
-
-(exit $fail); exit $fail
diff --git a/tests/misc/false-status.sh b/tests/misc/false-status.sh
new file mode 100755
index 0000000..e446da1
--- /dev/null
+++ b/tests/misc/false-status.sh
@@ -0,0 +1,31 @@
+#!/bin/sh
+# ensure that false exits nonzero even with --help or --version
+# and ensure that true exits nonzero when it can't write --help or --version
+
+# Copyright (C) 2003-2016 Free Software Foundation, Inc.
+
+# This program is free software: you can redistribute it and/or modify
+# it under the terms of the GNU General Public License as published by
+# the Free Software Foundation, either version 3 of the License, or
+# (at your option) any later version.
+
+# This program is distributed in the hope that it will be useful,
+# but WITHOUT ANY WARRANTY; without even the implied warranty of
+# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
+# GNU General Public License for more details.
+
+# You should have received a copy of the GNU General Public License
+# along with this program. If not, see <http://www.gnu.org/licenses/>.
+
+. "${srcdir=.}/tests/init.sh"; path_prepend_ ./src
+print_ver_ false true
+
+returns_ 1 env false --version > /dev/null || fail=1
+returns_ 1 env false --help > /dev/null || fail=1
+
+if test -w /dev/full && test -c /dev/full; then
+ returns_ 1 env true --version > /dev/full || fail=1
+ returns_ 1 env true --help > /dev/full || fail=1
+fi
+
+Exit $fail
diff --git a/tests/misc/fold b/tests/misc/fold
deleted file mode 100755
index ceab2e9..0000000
--- a/tests/misc/fold
+++ /dev/null
@@ -1,68 +0,0 @@
-#!/bin/sh
-# -*- perl -*-
-# Exercise fold.
-
-# Copyright (C) 2003, 2005, 2006 Free Software Foundation, Inc.
-
-# This program is free software; you can redistribute it and/or modify
-# it under the terms of the GNU General Public License as published by
-# the Free Software Foundation; either version 2 of the License, or
-# (at your option) any later version.
-
-# This program is distributed in the hope that it will be useful,
-# but WITHOUT ANY WARRANTY; without even the implied warranty of
-# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
-# GNU General Public License for more details.
-
-# You should have received a copy of the GNU General Public License
-# along with this program; if not, write to the Free Software
-# Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA
-# 02110-1301, USA.
-
-: ${PERL=perl}
-: ${srcdir=.}
-
-$PERL -e 1 > /dev/null 2>&1 || {
- echo 1>&2 "$0: configure didn't find a usable version of Perl," \
- "so can't run this test"
- exit 77
-}
-
-# Ensure that we don't run an older version of fold.
-# Prior to 5.0.91, some of the tests below would cause fold to infloop,
-# and since `make check' might be run even after a build failure, it'd
-# expose just such an older version.
-ver=`fold --version|sed 1q`
-case $ver in
- *" $PACKAGE_VERSION") ;;
- *) echo 1>&2 \
- "$0: found unexpected version of fold, \`$ver'"
- "(expected $PACKAGE_VERSION)"
- exit 1;;
-esac
-
-exec $PERL -w -I$srcdir/.. -MCoreutils -- - <<\EOF
-#/
-require 5.003;
-use strict;
-
-(my $program_name = $0) =~ s|.*/||;
-
-# Turn off localization of executable's ouput.
-@ENV{qw(LANGUAGE LANG LC_ALL)} = ('C') x 3;
-
-my @Tests =
- (
- ['s1', '-w2 -s', {IN=>"a\t"}, {OUT=>"a\n\t"}],
- ['s2', '-w4 -s', {IN=>"abcdef d\n"}, {OUT=>"abcd\nef d\n"}],
- ['s3', '-w4 -s', {IN=>"a cd fgh\n"}, {OUT=>"a \ncd \nfgh\n"}],
- ['s4', '-w4 -s', {IN=>"abc ef\n"}, {OUT=>"abc \nef\n"}],
- );
-
-my $save_temps = $ENV{DEBUG};
-my $verbose = $ENV{VERBOSE};
-
-my $prog = $ENV{PROG} || die "$0: \$PROG not specified in environment\n";
-my $fail = run_tests ($program_name, $prog, \@Tests, $save_temps, $verbose);
-exit $fail;
-EOF
diff --git a/tests/misc/fold.pl b/tests/misc/fold.pl
new file mode 100755
index 0000000..7b192b4
--- /dev/null
+++ b/tests/misc/fold.pl
@@ -0,0 +1,39 @@
+#!/usr/bin/perl
+# Exercise fold.
+
+# Copyright (C) 2003-2016 Free Software Foundation, Inc.
+
+# This program is free software: you can redistribute it and/or modify
+# it under the terms of the GNU General Public License as published by
+# the Free Software Foundation, either version 3 of the License, or
+# (at your option) any later version.
+
+# This program is distributed in the hope that it will be useful,
+# but WITHOUT ANY WARRANTY; without even the implied warranty of
+# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
+# GNU General Public License for more details.
+
+# You should have received a copy of the GNU General Public License
+# along with this program. If not, see <http://www.gnu.org/licenses/>.
+
+use strict;
+
+(my $program_name = $0) =~ s|.*/||;
+
+# Turn off localization of executable's output.
+@ENV{qw(LANGUAGE LANG LC_ALL)} = ('C') x 3;
+
+my @Tests =
+ (
+ ['s1', '-w2 -s', {IN=>"a\t"}, {OUT=>"a\n\t"}],
+ ['s2', '-w4 -s', {IN=>"abcdef d\n"}, {OUT=>"abcd\nef d\n"}],
+ ['s3', '-w4 -s', {IN=>"a cd fgh\n"}, {OUT=>"a \ncd \nfgh\n"}],
+ ['s4', '-w4 -s', {IN=>"abc ef\n"}, {OUT=>"abc \nef\n"}],
+ );
+
+my $save_temps = $ENV{DEBUG};
+my $verbose = $ENV{VERBOSE};
+
+my $prog = 'fold';
+my $fail = run_tests ($program_name, $prog, \@Tests, $save_temps, $verbose);
+exit $fail;
diff --git a/tests/misc/groups-dash.sh b/tests/misc/groups-dash.sh
new file mode 100755
index 0000000..f3c37f7
--- /dev/null
+++ b/tests/misc/groups-dash.sh
@@ -0,0 +1,31 @@
+#!/bin/sh
+# ensure groups handles -- sanely
+
+# Copyright (C) 2007-2016 Free Software Foundation, Inc.
+
+# This program is free software: you can redistribute it and/or modify
+# it under the terms of the GNU General Public License as published by
+# the Free Software Foundation, either version 3 of the License, or
+# (at your option) any later version.
+
+# This program is distributed in the hope that it will be useful,
+# but WITHOUT ANY WARRANTY; without even the implied warranty of
+# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
+# GNU General Public License for more details.
+
+# You should have received a copy of the GNU General Public License
+# along with this program. If not, see <http://www.gnu.org/licenses/>.
+
+. "${srcdir=.}/tests/init.sh"; path_prepend_ ./src
+print_ver_ groups
+
+# Coreutils 6.9 and earlier failed to display information on first argument
+# if later argument was --.
+groups none -- > out 2>&1 && fail=1
+echo $? >> out
+groups -- none -- > exp 2>&1 && fail=1
+echo $? >> exp
+
+compare exp out || fail=1
+
+Exit $fail
diff --git a/tests/misc/groups-version.sh b/tests/misc/groups-version.sh
new file mode 100755
index 0000000..3d74ce0
--- /dev/null
+++ b/tests/misc/groups-version.sh
@@ -0,0 +1,27 @@
+#!/bin/sh
+# ensure groups --version output is similar to id --version
+
+# Copyright (C) 2007-2016 Free Software Foundation, Inc.
+
+# This program is free software: you can redistribute it and/or modify
+# it under the terms of the GNU General Public License as published by
+# the Free Software Foundation, either version 3 of the License, or
+# (at your option) any later version.
+
+# This program is distributed in the hope that it will be useful,
+# but WITHOUT ANY WARRANTY; without even the implied warranty of
+# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
+# GNU General Public License for more details.
+
+# You should have received a copy of the GNU General Public License
+# along with this program. If not, see <http://www.gnu.org/licenses/>.
+
+. "${srcdir=.}/tests/init.sh"; path_prepend_ ./src
+print_ver_ groups
+
+groups --version | sed 's/^groups/id/; /^$/q' > out || fail=1
+id --version | sed '/^$/q' > exp || fail=1
+
+compare exp out || fail=1
+
+Exit $fail
diff --git a/tests/misc/head-c b/tests/misc/head-c
deleted file mode 100755
index ba13c32..0000000
--- a/tests/misc/head-c
+++ /dev/null
@@ -1,49 +0,0 @@
-#!/bin/sh
-# exercise the fix of 2001-08-18, based on test case from Ian Bruce
-
-# Copyright (C) 2001, 2004, 2006 Free Software Foundation, Inc.
-
-# This program is free software; you can redistribute it and/or modify
-# it under the terms of the GNU General Public License as published by
-# the Free Software Foundation; either version 2 of the License, or
-# (at your option) any later version.
-
-# This program is distributed in the hope that it will be useful,
-# but WITHOUT ANY WARRANTY; without even the implied warranty of
-# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
-# GNU General Public License for more details.
-
-# You should have received a copy of the GNU General Public License
-# along with this program; if not, write to the Free Software
-# Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA
-# 02110-1301, USA.
-
-if test "$VERBOSE" = yes; then
- set -x
- head --version
-fi
-
-pwd=`pwd`
-tmp=head-c.$$
-trap 'status=$?; cd "$pwd" && rm -rf $tmp && exit $status' 0
-trap '(exit $?); exit' 1 2 13 15
-
-framework_failure=0
-mkdir $tmp || framework_failure=1
-cd $tmp || framework_failure=1
-echo abc > in || framework_failure=1
-
-if test $framework_failure = 1; then
- echo 'failure in testing framework' 1>&2
- (exit 1); exit 1
-fi
-
-fail=0
-
-(head -c1; head -c1) < in > out || fail=1
-case "`cat out`" in
- ab) ;;
- *) fail=1 ;;
-esac
-
-(exit $fail); exit $fail
diff --git a/tests/misc/head-c.sh b/tests/misc/head-c.sh
new file mode 100755
index 0000000..abe9fef
--- /dev/null
+++ b/tests/misc/head-c.sh
@@ -0,0 +1,59 @@
+#!/bin/sh
+# exercise head -c
+
+# Copyright (C) 2001-2016 Free Software Foundation, Inc.
+
+# This program is free software: you can redistribute it and/or modify
+# it under the terms of the GNU General Public License as published by
+# the Free Software Foundation, either version 3 of the License, or
+# (at your option) any later version.
+
+# This program is distributed in the hope that it will be useful,
+# but WITHOUT ANY WARRANTY; without even the implied warranty of
+# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
+# GNU General Public License for more details.
+
+# You should have received a copy of the GNU General Public License
+# along with this program. If not, see <http://www.gnu.org/licenses/>.
+
+. "${srcdir=.}/tests/init.sh"; path_prepend_ ./src
+print_ver_ head
+getlimits_
+
+vm=$(get_min_ulimit_v_ head -c1 /dev/null) \
+ || skip_ "this shell lacks ulimit support"
+
+# exercise the fix of 2001-08-18, based on test case from Ian Bruce
+echo abc > in || framework_failure_
+(head -c1; head -c1) < in > out || fail=1
+case "$(cat out)" in
+ ab) ;;
+ *) fail=1 ;;
+esac
+
+# Test for a bug in coreutils 5.0.1 through 8.22.
+printf 'abc\ndef\n' > in1 || framework_failure_
+(dd bs=1 skip=1 count=0 status=none && head -c-4) < in1 > out1 || fail=1
+case "$(cat out1)" in
+ bc) ;;
+ *) fail=1 ;;
+esac
+
+# Only allocate memory as needed.
+# Coreutils <= 8.21 would allocate memory up front
+# based on the value passed to -c
+(ulimit -v $(($vm+8000)) && head --bytes=-$SSIZE_MAX < /dev/null) || fail=1
+
+# Make sure it works on funny files in /proc and /sys.
+
+for file in /proc/version /sys/kernel/profiling; do
+ if test -r $file; then
+ cp -f $file copy &&
+ head -c -1 copy > exp1 || framework_failure_
+
+ head -c -1 $file > out1 || fail=1
+ compare exp1 out1 || fail=1
+ fi
+done
+
+Exit $fail
diff --git a/tests/misc/head-elide-tail b/tests/misc/head-elide-tail
deleted file mode 100755
index 911ca61..0000000
--- a/tests/misc/head-elide-tail
+++ /dev/null
@@ -1,123 +0,0 @@
-#!/bin/sh
-# -*- perl -*-
-# Exercise head's --bytes=-N option.
-
-# Copyright (C) 2003, 2005 Free Software Foundation, Inc.
-
-# This program is free software; you can redistribute it and/or modify
-# it under the terms of the GNU General Public License as published by
-# the Free Software Foundation; either version 2 of the License, or
-# (at your option) any later version.
-
-# This program is distributed in the hope that it will be useful,
-# but WITHOUT ANY WARRANTY; without even the implied warranty of
-# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
-# GNU General Public License for more details.
-
-# You should have received a copy of the GNU General Public License
-# along with this program; if not, write to the Free Software
-# Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA
-# 02110-1301, USA.
-
-: ${PERL=perl}
-: ${srcdir=.}
-
-$PERL -e 1 > /dev/null 2>&1 || {
- echo 1>&2 "$0: configure didn't find a usable version of Perl," \
- "so can't run this test"
- exit 77
-}
-
-exec $PERL -w -I$srcdir/.. -MCoreutils -- - <<\EOF
-#/
-require 5.003;
-use strict;
-
-(my $program_name = $0) =~ s|.*/||;
-
-$ENV{PROG} = 'head';
-
-# Turn off localization of executable's ouput.
-@ENV{qw(LANGUAGE LANG LC_ALL)} = ('C') x 3;
-
-# This should match the definition in head.c.
-my $READ_BUFSIZE = 4096;
-
-my @Tests =
- (
- # Elide the exact size of the file.
- ['elide-b1', "--bytes=-2", {IN=>"a\n"}, {OUT=>''}],
- # Elide more than the size of the file.
- ['elide-b2', "--bytes=-2", {IN=>"a"}, {OUT=>''}],
- # Leave just one byte.
- ['elide-b3', "--bytes=-2", {IN=>"abc"}, {OUT=>'a'}],
- # Make it so the elided bytes straddle the end of the first
- # $READ_BUFSIZE block.
- ['elide-b4', "--bytes=-2",
- {IN=> 'a' x ($READ_BUFSIZE-3) . "\nbcd"},
- {OUT=>'a' x ($READ_BUFSIZE-3) . "\nb"}],
- # Make it so the elided bytes straddle the end of the 2nd
- # $READ_BUFSIZE block.
- ['elide-b5', "--bytes=-2",
- {IN=> 'a' x (2 * $READ_BUFSIZE - 2) . 'bcd'},
- {OUT=>'a' x (2 * $READ_BUFSIZE - 2) . 'b'}],
-
- ['elide-l0', "--lines=-1", {IN=>''}, {OUT=>''}],
- ['elide-l1', "--lines=-1", {IN=>"a\n"}, {OUT=>''}],
- ['elide-l2', "--lines=-1", {IN=>"a"}, {OUT=>''}],
- ['elide-l3', "--lines=-1", {IN=>"a\nb"}, {OUT=>"a\n"}],
- ['elide-l4', "--lines=-1", {IN=>"a\nb\n"}, {OUT=>"a\n"}],
- );
-
-if ($ENV{RUN_EXPENSIVE_TESTS})
- {
- # Brute force: use all combinations of file sizes [0..20] and
- # number of bytes to elide [0..20]. For better coverage, recompile
- # head with -DHEAD_TAIL_PIPE_READ_BUFSIZE=4 and
- # -DHEAD_TAIL_PIPE_BYTECOUNT_THRESHOLD=8
- my $s = "abcdefghijklmnopqrst";
- for my $file_size (0..20)
- {
- for my $n_elide (0..20)
- {
- my $input = substr $s, 0, $file_size;
- my $out_len = $n_elide < $file_size ? $file_size - $n_elide : 0;
- my $output = substr $input, 0, $out_len;
- my $t = ["elideb$file_size-$n_elide", "--bytes=-$n_elide",
- {IN=>$input}, {OUT=>$output}];
- push @Tests, $t;
- my @u = @$t;
- # Insert the ---presume-input-pipe option.
- $u[0] .= 'p';
- $u[1] .= ' ---presume-input-pipe';
- push @Tests, \@u;
- }
- }
-
- $s =~ s/(.)/$1\n/g;
- for my $file_size (0..20)
- {
- for my $n_elide (0..20)
- {
- my $input = substr $s, 0, 2 * $file_size;
- my $out_len = $n_elide < $file_size ? $file_size - $n_elide : 0;
- my $output = substr $input, 0, 2 * $out_len;
- my $t = ["elidel$file_size-$n_elide", "--lines=-$n_elide",
- {IN=>$input}, {OUT=>$output}];
- push @Tests, $t;
- my @u = @$t;
- # Insert the ---presume-input-pipe option.
- $u[0] .= 'p';
- $u[1] .= ' ---presume-input-pipe';
- push @Tests, \@u;
- }
- }
- }
-
-my $save_temps = $ENV{DEBUG};
-my $verbose = $ENV{VERBOSE};
-
-my $prog = $ENV{PROG} || die "$0: \$PROG not specified in environment\n";
-my $fail = run_tests ($program_name, $prog, \@Tests, $save_temps, $verbose);
-exit $fail;
-EOF
diff --git a/tests/misc/head-elide-tail.pl b/tests/misc/head-elide-tail.pl
new file mode 100755
index 0000000..dedc803
--- /dev/null
+++ b/tests/misc/head-elide-tail.pl
@@ -0,0 +1,110 @@
+#!/usr/bin/perl
+# Exercise head's --bytes=-N option.
+
+# Copyright (C) 2003-2016 Free Software Foundation, Inc.
+
+# This program is free software: you can redistribute it and/or modify
+# it under the terms of the GNU General Public License as published by
+# the Free Software Foundation, either version 3 of the License, or
+# (at your option) any later version.
+
+# This program is distributed in the hope that it will be useful,
+# but WITHOUT ANY WARRANTY; without even the implied warranty of
+# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
+# GNU General Public License for more details.
+
+# You should have received a copy of the GNU General Public License
+# along with this program. If not, see <http://www.gnu.org/licenses/>.
+
+use strict;
+
+(my $program_name = $0) =~ s|.*/||;
+
+$ENV{PROG} = 'head';
+
+# Turn off localization of executable's output.
+@ENV{qw(LANGUAGE LANG LC_ALL)} = ('C') x 3;
+
+# This should match the definition in head.c.
+my $READ_BUFSIZE = 8192;
+
+my @Tests =
+ (
+ # Elide the exact size of the file.
+ ['elide-b1', "--bytes=-2", {IN=>"a\n"}, {OUT=>''}],
+ # Elide more than the size of the file.
+ ['elide-b2', "--bytes=-2", {IN=>"a"}, {OUT=>''}],
+ # Leave just one byte.
+ ['elide-b3', "--bytes=-2", {IN=>"abc"}, {OUT=>'a'}],
+ # Make it so the elided bytes straddle the end of the first
+ # $READ_BUFSIZE block.
+ ['elide-b4', "--bytes=-2",
+ {IN=> 'a' x ($READ_BUFSIZE-3) . "\nbcd"},
+ {OUT=>'a' x ($READ_BUFSIZE-3) . "\nb"}],
+ # Make it so the elided bytes straddle the end of the 2nd
+ # $READ_BUFSIZE block.
+ ['elide-b5', "--bytes=-2",
+ {IN=> 'a' x (2 * $READ_BUFSIZE - 2) . 'bcd'},
+ {OUT=>'a' x (2 * $READ_BUFSIZE - 2) . 'b'}],
+
+ ['elide-l0', "--lines=-1", {IN=>''}, {OUT=>''}],
+ ['elide-l1', "--lines=-1", {IN=>"a\n"}, {OUT=>''}],
+ ['elide-l2', "--lines=-1", {IN=>"a"}, {OUT=>''}],
+ ['elide-l3', "--lines=-1", {IN=>"a\nb"}, {OUT=>"a\n"}],
+ ['elide-l4', "--lines=-1", {IN=>"a\nb\n"}, {OUT=>"a\n"}],
+ ['elide-l5', "--lines=-0", {IN=>"a\nb\n"}, {OUT=>"a\nb\n"}],
+ ['elide-l6', "--lines=-0", {IN=>"a\nb"}, {OUT=>"a\nb"}],
+ );
+
+if ($ENV{RUN_EXPENSIVE_TESTS})
+ {
+ # Brute force: use all combinations of file sizes [0..20] and
+ # number of bytes to elide [0..20]. For better coverage, recompile
+ # head with -DHEAD_TAIL_PIPE_READ_BUFSIZE=4 and
+ # -DHEAD_TAIL_PIPE_BYTECOUNT_THRESHOLD=8
+ my $s = "abcdefghijklmnopqrst";
+ for my $file_size (0..20)
+ {
+ for my $n_elide (0..20)
+ {
+ my $input = substr $s, 0, $file_size;
+ my $out_len = $n_elide < $file_size ? $file_size - $n_elide : 0;
+ my $output = substr $input, 0, $out_len;
+ my $t = ["elideb$file_size-$n_elide", "--bytes=-$n_elide",
+ {IN=>$input}, {OUT=>$output}];
+ push @Tests, $t;
+ my @u = @$t;
+ # Insert the ---presume-input-pipe option.
+ $u[0] .= 'p';
+ $u[1] .= ' ---presume-input-pipe';
+ push @Tests, \@u;
+ }
+ }
+
+ $s =~ s/(.)/$1\n/g;
+ $s .= 'u'; # test without trailing '\n'
+ for my $file_size (0..21)
+ {
+ for my $n_elide (0..21)
+ {
+ my $input = substr $s, 0, 2 * $file_size;
+ my $out_len = $n_elide < $file_size ? $file_size - $n_elide : 0;
+ my $output = substr $input, 0, 2 * $out_len;
+ my $t = ["elidel$file_size-$n_elide", "--lines=-$n_elide",
+ {IN=>$input}, {OUT=>$output}];
+ push @Tests, $t;
+ my @u = @$t;
+ # Insert the ---presume-input-pipe option.
+ $u[0] .= 'p';
+ $u[1] .= ' ---presume-input-pipe';
+ push @Tests, \@u;
+ }
+ }
+ }
+
+my $save_temps = $ENV{DEBUG};
+my $verbose = $ENV{VERBOSE};
+
+my $prog = $ENV{PROG} || die "$0: \$PROG not specified in environment\n";
+my $fail = run_tests ($program_name, $prog, \@Tests, $save_temps, $verbose);
+exit $fail;
diff --git a/tests/misc/head-pos b/tests/misc/head-pos
deleted file mode 100755
index 9069feb..0000000
--- a/tests/misc/head-pos
+++ /dev/null
@@ -1,51 +0,0 @@
-#!/bin/sh
-# When reading a specified number of lines, ensure that the output
-# file pointer is positioned just after those lines.
-
-# Copyright (C) 2002, 2004, 2006 Free Software Foundation, Inc.
-
-# This program is free software; you can redistribute it and/or modify
-# it under the terms of the GNU General Public License as published by
-# the Free Software Foundation; either version 2 of the License, or
-# (at your option) any later version.
-
-# This program is distributed in the hope that it will be useful,
-# but WITHOUT ANY WARRANTY; without even the implied warranty of
-# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
-# GNU General Public License for more details.
-
-# You should have received a copy of the GNU General Public License
-# along with this program; if not, write to the Free Software
-# Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA
-# 02110-1301, USA.
-
-if test "$VERBOSE" = yes; then
- set -x
- head --version
-fi
-
-pwd=`pwd`
-tmp=head-pos.$$
-trap 'status=$?; cd "$pwd" && rm -rf $tmp && exit $status' 0
-trap '(exit $?); exit' 1 2 13 15
-
-framework_failure=0
-mkdir $tmp || framework_failure=1
-cd $tmp || framework_failure=1
-(echo a; echo b) > in || framework_failure=1
-
-if test $framework_failure = 1; then
- echo "$0: failure in testing framework" 1>&2
- (exit 1); exit 1
-fi
-
-fail=0
-(head -n 1 >/dev/null; cat) < in > out || fail=1
-cat <<EOF > exp
-b
-EOF
-
-cmp out exp || fail=1
-test $fail = 1 && diff out exp 2> /dev/null
-
-(exit $fail); exit $fail
diff --git a/tests/misc/head-pos.sh b/tests/misc/head-pos.sh
new file mode 100755
index 0000000..88c84c4
--- /dev/null
+++ b/tests/misc/head-pos.sh
@@ -0,0 +1,44 @@
+#!/bin/sh
+# When reading a specified number of lines, ensure that the output
+# file pointer is positioned just after those lines.
+
+# Copyright (C) 2002-2016 Free Software Foundation, Inc.
+
+# This program is free software: you can redistribute it and/or modify
+# it under the terms of the GNU General Public License as published by
+# the Free Software Foundation, either version 3 of the License, or
+# (at your option) any later version.
+
+# This program is distributed in the hope that it will be useful,
+# but WITHOUT ANY WARRANTY; without even the implied warranty of
+# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
+# GNU General Public License for more details.
+
+# You should have received a copy of the GNU General Public License
+# along with this program. If not, see <http://www.gnu.org/licenses/>.
+
+. "${srcdir=.}/tests/init.sh"; path_prepend_ ./src
+print_ver_ head
+
+(echo a; echo b) > in || framework_failure_
+echo b > exp || framework_failure_
+
+for i in -1 1; do
+ (head -n $i >/dev/null; cat) < in > out || fail=1
+ compare exp out || fail=1
+done
+
+# Exercise the (start_pos < pos) block in elide_tail_lines_seekable.
+# So far, this is the only test to do that.
+# Do that by creating a file larger than BUFSIZ (I've seen 128K) and
+# elide a suffix of it (by line count) that is also larger than BUFSIZ.
+# 50000 lines times 6 bytes per line gives us enough leeway even on a
+# system with a BUFSIZ of 256K.
+n_lines=50000
+seq 70000 > in2 || framework_failure_
+echo $n_lines > exp-n || framework_failure_
+
+(head -n-$n_lines>/dev/null; wc -l) < in2 > n
+compare exp-n n || fail=1
+
+Exit $fail
diff --git a/tests/misc/head-write-error.sh b/tests/misc/head-write-error.sh
new file mode 100755
index 0000000..4c021f5
--- /dev/null
+++ b/tests/misc/head-write-error.sh
@@ -0,0 +1,52 @@
+#!/bin/sh
+# Ensure we diagnose and not continue writing to
+# the output if we get a write error.
+
+# Copyright (C) 2014-2016 Free Software Foundation, Inc.
+
+# This program is free software: you can redistribute it and/or modify
+# it under the terms of the GNU General Public License as published by
+# the Free Software Foundation, either version 3 of the License, or
+# (at your option) any later version.
+
+# This program is distributed in the hope that it will be useful,
+# but WITHOUT ANY WARRANTY; without even the implied warranty of
+# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
+# GNU General Public License for more details.
+
+# You should have received a copy of the GNU General Public License
+# along with this program. If not, see <http://www.gnu.org/licenses/>.
+
+. "${srcdir=.}/tests/init.sh"; path_prepend_ ./src
+print_ver_ head
+
+if ! test -w /dev/full || ! test -c /dev/full; then
+ skip_ '/dev/full is required'
+fi
+
+# We can't use /dev/zero as that's bypassed in the --lines case
+# due to lseek() indicating it has a size of zero.
+yes | head -c10M > bigseek || framework_failure_
+
+# This is the single output diagnostic expected,
+# (without the possibly varying :strerror(ENOSPC) suffix).
+printf '%s\n' "head: error writing 'standard output'" > exp
+
+# Memory is bounded in these cases
+for item in lines bytes; do
+ for N in 0 1; do
+ # pipe case
+ yes | timeout 10s head --$item=-$N > /dev/full 2> errt && fail=1
+ test $? = 124 && fail=1
+ sed 's/\(head:.*\):.*/\1/' errt > err
+ compare exp err || fail=1
+
+ # seekable case
+ timeout 10s head --$item=-$N bigseek > /dev/full 2> errt && fail=1
+ test $? = 124 && fail=1
+ sed 's/\(head:.*\):.*/\1/' errt > err
+ compare exp err || fail=1
+ done
+done
+
+Exit $fail
diff --git a/tests/misc/head.pl b/tests/misc/head.pl
new file mode 100755
index 0000000..1f565cf
--- /dev/null
+++ b/tests/misc/head.pl
@@ -0,0 +1,87 @@
+#!/usr/bin/perl
+# test head
+
+# Copyright (C) 2008-2016 Free Software Foundation, Inc.
+
+# This program is free software: you can redistribute it and/or modify
+# it under the terms of the GNU General Public License as published by
+# the Free Software Foundation, either version 3 of the License, or
+# (at your option) any later version.
+
+# This program is distributed in the hope that it will be useful,
+# but WITHOUT ANY WARRANTY; without even the implied warranty of
+# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
+# GNU General Public License for more details.
+
+# You should have received a copy of the GNU General Public License
+# along with this program. If not, see <http://www.gnu.org/licenses/>.
+
+use strict;
+
+my $prog = 'head';
+
+# Turn off localization of executable's output.
+@ENV{qw(LANGUAGE LANG LC_ALL)} = ('C') x 3;
+
+my $in = join ('', map { "$_\n" } 0..600);
+my $in_1024 = substr $in, 0, 1024;
+
+# FIXME: set this properly
+my $x32_bit_long = 0;
+
+my @Tests =
+(
+ ['idem-0', {IN=>''}, {OUT=>''}],
+ ['idem-1', {IN=>'a'}, {OUT=>'a'}],
+ ['idem-2', {IN=>"\n"}, {OUT=>"\n"}],
+ ['idem-3', {IN=>"a\n"}, {OUT=>"a\n"}],
+
+ ['basic-10',
+ {IN=>"1\n2\n3\n4\n5\n6\n7\n8\n9\n0\n"},
+ {OUT=>"1\n2\n3\n4\n5\n6\n7\n8\n9\n0\n"}],
+
+ ['basic-09',
+ {IN=>"1\n2\n3\n4\n5\n6\n7\n8\n9\n"},
+ {OUT=>"1\n2\n3\n4\n5\n6\n7\n8\n9\n"}],
+
+ ['basic-11',
+ {IN=>"1\n2\n3\n4\n5\n6\n7\n8\n9\n0\nb\n"},
+ {OUT=>"1\n2\n3\n4\n5\n6\n7\n8\n9\n0\n"}],
+
+ ['obs-0', '-1', {IN=>"1\n2\n"}, {OUT=>"1\n"}],
+ ['obs-1', '-1c', {IN=>''}, {OUT=>''}],
+ ['obs-2', '-1c', {IN=>'12'}, {OUT=>'1'}],
+ ['obs-3', '-14c', {IN=>'1234567890abcdefg'}, {OUT=>'1234567890abcd'}],
+ ['obs-4', '-2b', {IN=>$in}, {OUT=>$in_1024}],
+ ['obs-5', '-1k', {IN=>$in}, {OUT=>$in_1024}],
+
+ # This test fails for textutils-1.22, because head let 4096m overflow to 0
+ # and did not fail. Now head fails with a diagnostic.
+ # Disable this test because it fails on systems with 64-bit uintmax_t.
+ # ['fail-0', qw(-n 4096m), {IN=>"a\n"}, {EXIT=>1}],
+
+ # In spite of its name, this test passes -- just to contrast with the above.
+ ['fail-1', qw(-n 2048m), {IN=>"a\n"}, {OUT=>"a\n"}],
+
+ # Make sure we don't break like AIX 4.3.1 on files with \0 in them.
+ ['null-1', {IN=>"a\0a\n"}, {OUT=>"a\0a\n"}],
+
+ # Make sure counts are interpreted as decimal.
+ # Before 2.0f, these would have been interpreted as octal
+ ['no-oct-1', '-08', {IN=>"\n"x12}, {OUT=>"\n"x8}],
+ ['no-oct-2', '-010', {IN=>"\n"x12}, {OUT=>"\n"x10}],
+ ['no-oct-3', '-n 08', {IN=>"\n"x12}, {OUT=>"\n"x8}],
+ ['no-oct-4', '-c 08', {IN=>"\n"x12}, {OUT=>"\n"x8}],
+
+ # --zero-terminated
+ ['zero-1', '-z -n 1', {IN=>"x\0y"}, {OUT=>"x\0"}],
+ ['zero-2', '-z -n 2', {IN=>"x\0y"}, {OUT=>"x\0y"}],
+);
+
+@Tests = triple_test \@Tests;
+
+my $save_temps = $ENV{DEBUG};
+my $verbose = $ENV{VERBOSE};
+
+my $fail = run_tests ($prog, $prog, \@Tests, $save_temps, $verbose);
+exit $fail;
diff --git a/tests/misc/help-version.sh b/tests/misc/help-version.sh
new file mode 100755
index 0000000..e7e6a52
--- /dev/null
+++ b/tests/misc/help-version.sh
@@ -0,0 +1,270 @@
+#!/bin/sh
+# Make sure all of these programs work properly
+# when invoked with --help or --version.
+
+# Copyright (C) 2000-2016 Free Software Foundation, Inc.
+
+# This program is free software: you can redistribute it and/or modify
+# it under the terms of the GNU General Public License as published by
+# the Free Software Foundation, either version 3 of the License, or
+# (at your option) any later version.
+
+# This program is distributed in the hope that it will be useful,
+# but WITHOUT ANY WARRANTY; without even the implied warranty of
+# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
+# GNU General Public License for more details.
+
+# You should have received a copy of the GNU General Public License
+# along with this program. If not, see <http://www.gnu.org/licenses/>.
+
+. "${srcdir=.}/tests/init.sh"; path_prepend_ ./src
+
+# Terminate any background processes
+cleanup_() { kill $pid 2>/dev/null && wait $pid; }
+
+expected_failure_status_chroot=125
+expected_failure_status_env=125
+expected_failure_status_nice=125
+expected_failure_status_nohup=125
+expected_failure_status_stdbuf=125
+expected_failure_status_timeout=125
+expected_failure_status_printenv=2
+expected_failure_status_tty=3
+expected_failure_status_sort=2
+expected_failure_status_expr=3
+expected_failure_status_lbracket=2
+expected_failure_status_dir=2
+expected_failure_status_ls=2
+expected_failure_status_vdir=2
+
+expected_failure_status_cmp=2
+expected_failure_status_zcmp=2
+expected_failure_status_sdiff=2
+expected_failure_status_diff3=2
+expected_failure_status_diff=2
+expected_failure_status_zdiff=2
+expected_failure_status_zgrep=2
+expected_failure_status_zegrep=2
+expected_failure_status_zfgrep=2
+
+expected_failure_status_grep=2
+expected_failure_status_egrep=2
+expected_failure_status_fgrep=2
+
+test "$built_programs" \
+ || fail_ "built_programs not specified!?!"
+
+test "$VERSION" \
+ || fail_ "set envvar VERSION; it is required for a PATH sanity-check"
+
+# Extract version from --version output of the first program
+for i in $built_programs; do
+ v=$(env $i --version | sed -n '1s/.* //p;q')
+ break
+done
+
+# Ensure that it matches $VERSION.
+test "x$v" = "x$VERSION" \
+ || fail_ "--version-\$VERSION mismatch"
+
+for i in $built_programs; do
+
+ # Skip 'test'; it doesn't accept --help or --version.
+ test $i = test && continue
+
+ # false fails even when invoked with --help or --version.
+ # true and false are tested with these options separately.
+ test $i = false || test $i = true && continue
+
+ # The just-built install executable is always named 'ginstall'.
+ test $i = install && i=ginstall
+
+ # Make sure they exit successfully, under normal conditions.
+ env $i --help >/dev/null || fail=1
+ env $i --version >/dev/null || fail=1
+
+ # Make sure they fail upon 'disk full' error.
+ if test -w /dev/full && test -c /dev/full; then
+ test $i = [ && prog=lbracket || prog=$(echo $i|sed "s/$EXEEXT$//")
+ eval "expected=\$expected_failure_status_$prog"
+ test x$expected = x && expected=1
+
+ returns_ $expected env $i --help >/dev/full 2>/dev/null &&
+ returns_ $expected env $i --version >/dev/full 2>/dev/null ||
+ {
+ fail=1
+ env $i --help >/dev/full 2>/dev/null
+ status=$?
+ echo "*** $i: bad exit status '$status' (expected $expected)," 1>&2
+ echo " with --help or --version output redirected to /dev/full" 1>&2
+ }
+ fi
+done
+
+bigZ_in=bigZ-in.Z
+zin=zin.gz
+zin2=zin2.gz
+
+tmp=tmp-$$
+tmp_in=in-$$
+tmp_in2=in2-$$
+tmp_dir=dir-$$
+tmp_out=out-$$
+mkdir $tmp || fail=1
+cd $tmp || fail=1
+
+comm_setup () { args="$tmp_in $tmp_in"; }
+csplit_setup () { args="$tmp_in //"; }
+cut_setup () { args='-f 1'; }
+join_setup () { args="$tmp_in $tmp_in"; }
+tr_setup () { args='a a'; }
+
+chmod_setup () { args="a+x $tmp_in"; }
+# Punt on these.
+chgrp_setup () { args=--version; }
+chown_setup () { args=--version; }
+mkfifo_setup () { args=--version; }
+mknod_setup () { args=--version; }
+# Punt on uptime, since it fails (e.g., failing to get boot time)
+# on some systems, and we shouldn't let that stop 'make check'.
+uptime_setup () { args=--version; }
+
+# Create a file in the current directory, not in $TMPDIR.
+mktemp_setup () { args=mktemp.XXXX; }
+
+cmp_setup () { args="$tmp_in $tmp_in2"; }
+
+# Tell dd not to print the line with transfer rate and total.
+# The transfer rate would vary between runs.
+dd_setup () { args=status=noxfer; }
+
+zdiff_setup () { args="$zin $zin2"; }
+zcmp_setup () { args="$zin $zin2"; }
+zcat_setup () { args=$zin; }
+gunzip_setup () { args=$zin; }
+zmore_setup () { args=$zin; }
+zless_setup () { args=$zin; }
+znew_setup () { args=$bigZ_in; }
+zforce_setup () { args=$zin; }
+zgrep_setup () { args="z $zin"; }
+zegrep_setup () { args="z $zin"; }
+zfgrep_setup () { args="z $zin"; }
+gzexe_setup () { args=$tmp_in; }
+
+# We know that $tmp_in contains a "0"
+grep_setup () { args="0 $tmp_in"; }
+egrep_setup () { args="0 $tmp_in"; }
+fgrep_setup () { args="0 $tmp_in"; }
+
+diff_setup () { args="$tmp_in $tmp_in2"; }
+sdiff_setup () { args="$tmp_in $tmp_in2"; }
+diff3_setup () { args="$tmp_in $tmp_in2 $tmp_in2"; }
+cp_setup () { args="$tmp_in $tmp_in2"; }
+ln_setup () { args="$tmp_in ln-target"; }
+ginstall_setup () { args="$tmp_in $tmp_in2"; }
+mv_setup () { args="$tmp_in $tmp_in2"; }
+mkdir_setup () { args=$tmp_dir/subdir; }
+realpath_setup () { args=$tmp_in; }
+rmdir_setup () { args=$tmp_dir; }
+rm_setup () { args=$tmp_in; }
+shred_setup () { args=$tmp_in; }
+touch_setup () { args=$tmp_in2; }
+truncate_setup () { args="--reference=$tmp_in $tmp_in2"; }
+
+mkid_setup () { printf 'f(){}\ntypedef int t;\n' > f.c; args=. ; }
+lid_setup () { args=; }
+fid_setup () { args=f.c; }
+fnid_setup () { args=; }
+xtokid_setup () { args=; }
+aid_setup () { args=f; }
+eid_setup () { args=--version; }
+gid_setup () { args=f; }
+defid_setup () { args=t; }
+
+basename_setup () { args=$tmp_in; }
+dirname_setup () { args=$tmp_in; }
+expr_setup () { args=foo; }
+
+# Punt, in case GNU 'id' hasn't been installed yet.
+groups_setup () { args=--version; }
+
+pathchk_setup () { args=$tmp_in; }
+yes_setup () { args=--version; }
+logname_setup () { args=--version; }
+nohup_setup () { args=--version; }
+printf_setup () { args=foo; }
+seq_setup () { args=10; }
+sleep_setup () { args=0; }
+stdbuf_setup () { args="-oL true"; }
+timeout_setup () { args=--version; }
+
+# I'd rather not run sync, since it spins up disks that I've
+# deliberately caused to spin down (but not unmounted).
+sync_setup () { args=--version; }
+
+test_setup () { args=foo; }
+
+# This is necessary in the unusual event that there is
+# no valid entry in /etc/mtab.
+df_setup () { args=/; }
+
+# This is necessary in the unusual event that getpwuid (getuid ()) fails.
+id_setup () { args=-u; }
+
+# Use env to avoid invoking built-in sleep of Solaris 11's /bin/sh.
+kill_setup () {
+ external=env
+ $external sleep 10m & pid=$!
+ args=$pid
+}
+
+link_setup () { args="$tmp_in link-target"; }
+unlink_setup () { args=$tmp_in; }
+
+readlink_setup () {
+ ln -s . slink
+ args=slink;
+}
+
+stat_setup () { args=$tmp_in; }
+unlink_setup () { args=$tmp_in; }
+lbracket_setup () { args=": ]"; }
+
+parted_setup () { args="-s $tmp_in mklabel gpt"
+ dd if=/dev/null of=$tmp_in seek=2000; }
+
+# Ensure that each program "works" (exits successfully) when doing
+# something more than --help or --version.
+for i in $built_programs; do
+ # Skip these.
+ case $i in chroot|stty|tty|false|chcon|runcon|coreutils) continue;; esac
+
+ rm -rf $tmp_in $tmp_in2 $tmp_dir $tmp_out $bigZ_in $zin $zin2
+ echo z |gzip > $zin
+ cp $zin $zin2
+ cp $zin $bigZ_in
+
+ # This is sort of kludgey: use numbers so this is valid input for factor,
+ # and two tokens so it's valid input for tsort.
+ echo 2147483647 0 > $tmp_in
+ # Make $tmp_in2 identical. Then, using $tmp_in and $tmp_in2 as arguments
+ # to the likes of cmp and diff makes them exit successfully.
+ cp $tmp_in $tmp_in2
+ mkdir $tmp_dir
+ # echo ================== $i
+ test $i = [ && prog=lbracket || prog=$(echo $i|sed "s/$EXEEXT$//")
+ if type ${prog}_setup > /dev/null 2>&1; then
+ ${prog}_setup
+ else
+ args=
+ fi
+ if env $i $args < $tmp_in > $tmp_out; then
+ : # ok
+ else
+ echo FAIL: $i
+ fail=1
+ fi
+ rm -rf $tmp_in $tmp_in2 $tmp_out $tmp_dir
+done
+
+Exit $fail
diff --git a/tests/misc/invalid-opt.pl b/tests/misc/invalid-opt.pl
new file mode 100755
index 0000000..6a4162f
--- /dev/null
+++ b/tests/misc/invalid-opt.pl
@@ -0,0 +1,102 @@
+#!/usr/bin/perl
+# exercise the 'invalid option' handling code in each program
+
+# Copyright (C) 2008-2016 Free Software Foundation, Inc.
+
+# This program is free software: you can redistribute it and/or modify
+# it under the terms of the GNU General Public License as published by
+# the Free Software Foundation, either version 3 of the License, or
+# (at your option) any later version.
+
+# This program is distributed in the hope that it will be useful,
+# but WITHOUT ANY WARRANTY; without even the implied warranty of
+# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
+# GNU General Public License for more details.
+
+# You should have received a copy of the GNU General Public License
+# along with this program. If not, see <http://www.gnu.org/licenses/>.
+
+require 5.003;
+use strict;
+
+# Turn off localization of executable's output.
+@ENV{qw(LANGUAGE LANG LC_ALL)} = ('C') x 3;
+
+my %exit_status =
+ (
+ ls => 2,
+ dir => 2,
+ vdir => 2,
+ test => 2,
+ chroot => 125,
+ echo => 0,
+ env => 125,
+ expr => 0,
+ nice => 125,
+ nohup => 125,
+ sort => 2,
+ stdbuf => 125,
+ test => 0,
+ timeout => 125,
+ true => 0,
+ tty => 2,
+ printf => 0,
+ printenv => 2,
+ );
+
+my %expected_out =
+ (
+ echo => "-/\n",
+ expr => "-/\n",
+ printf => "-/",
+ );
+
+my %expected_err =
+ (
+ false => '',
+ stty => '',
+ );
+
+my $fail = 0;
+my @built_programs = split ' ', $ENV{built_programs};
+foreach my $prog (@built_programs)
+ {
+ $prog eq '['
+ and next;
+
+ my $try = "Try '$prog --help' for more information.\n";
+ my $x = $exit_status{$prog};
+ defined $x
+ or $x = 1;
+
+ my $out = $expected_out{$prog};
+ defined $out
+ or $out = '';
+
+ my $err = $expected_err{$prog};
+ defined $err
+ or $err = $x == 0 ? '' : "$prog: invalid option -- /\n$try";
+
+ # Accommodate different syntax in glibc's getopt
+ # diagnostics by filtering out single quotes.
+ # Also accommodate BSD getopt.
+ my $err_subst = "s,'/',/,; s,unknown,invalid,";
+
+ # Depending on how this script is run, stty emits different
+ # diagnostics. Don't bother checking them.
+ $prog eq 'stty'
+ and $err_subst = 's/(.|\n)*//ms';
+
+ my @Tests = (["$prog-invalid-opt", '-/', {OUT=>$out},
+ {ERR_SUBST => $err_subst},
+ {EXIT=>$x}, {ERR=>$err}]);
+
+ my $save_temps = $ENV{DEBUG};
+ my $verbose = $ENV{VERBOSE};
+
+ my $f = run_tests ($prog, \$prog, \@Tests, $save_temps, $verbose);
+ $f
+ and $fail = 1;
+ }
+
+exit $fail;
diff --git a/tests/misc/join.pl b/tests/misc/join.pl
new file mode 100755
index 0000000..4d399d8
--- /dev/null
+++ b/tests/misc/join.pl
@@ -0,0 +1,338 @@
+#!/usr/bin/perl
+# Test join.
+
+# Copyright (C) 2008-2016 Free Software Foundation, Inc.
+
+# This program is free software: you can redistribute it and/or modify
+# it under the terms of the GNU General Public License as published by
+# the Free Software Foundation, either version 3 of the License, or
+# (at your option) any later version.
+
+# This program is distributed in the hope that it will be useful,
+# but WITHOUT ANY WARRANTY; without even the implied warranty of
+# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
+# GNU General Public License for more details.
+
+# You should have received a copy of the GNU General Public License
+# along with this program. If not, see <http://www.gnu.org/licenses/>.
+
+use strict;
+
+my $limits = getlimits ();
+
+# Turn off localization of executable's output.
+@ENV{qw(LANGUAGE LANG LC_ALL)} = ('C') x 3;
+
+my $prog = 'join';
+
+my $delim = chr 0247;
+sub t_subst ($)
+{
+ (my $s = $_[0]) =~ s/:/$delim/g;
+ return $s;
+}
+
+my @tv = (
+# test name
+# flags file-1 file-2 expected output expected return code
+#
+['1a', '-a1', ["a 1\n", "b\n"], "a 1\n", 0],
+['1b', '-a2', ["a 1\n", "b\n"], "b\n", 0], # Got "\n"
+['1c', '-a1 -a2', ["a 1\n", "b\n"], "a 1\nb\n", 0], # Got "a 1\n\n"
+['1d', '-a1', ["a 1\nb\n", "b\n"], "a 1\nb\n", 0],
+['1e', '-a2', ["a 1\nb\n", "b\n"], "b\n", 0],
+['1f', '-a2', ["b\n", "a\nb\n"], "a\nb\n", 0],
+
+['2a', '-a1 -e .', ["a\nb\nc\n", "a x y\nb\nc\n"], "a x y\nb\nc\n", 0],
+['2b', '-a1 -e . -o 2.1,2.2,2.3', ["a\nb\nc\n", "a x y\nb\nc\n"],
+ "a x y\nb . .\nc . .\n", 0],
+['2c', '-a1 -e . -o 2.1,2.2,2.3', ["a\nb\nc\nd\n", "a x y\nb\nc\n"],
+ "a x y\nb . .\nc . .\n. . .\n", 0],
+
+['3a', '-t:', ["a:1\nb:1\n", "a:2:\nb:2:\n"], "a:1:2:\nb:1:2:\n", 0],
+
+# operate on whole line (as sort does by default)
+['3b', '-t ""', ["a 1\nb 1\n", "a 1\nb 2\n"], "a 1\n", 0],
+# use NUL as the field delimiter
+['3c', '-t "\\0"', ["a\0a\n", "a\0b\n"], "a\0a\0b\n", 0],
+
+# Just like -a1 and -a2 when there are no pairable lines
+['4a', '-v 1', ["a 1\n", "b\n"], "a 1\n", 0],
+['4b', '-v 2', ["a 1\n", "b\n"], "b\n", 0],
+
+['4c', '-v 1', ["a 1\nb\n", "b\n"], "a 1\n", 0],
+['4d', '-v 2', ["a 1\nb\n", "b\n"], "", 0],
+['4e', '-v 2', ["b\n", "a 1\nb\n"], "a 1\n", 0],
+['5a', '-a1 -e - -o 1.1,2.2',
+ ["a 1\nb 2\n", "a 11\nb\n"], "a 11\nb -\n", 0],
+['5b', '-a1 -e - -o 1.1,2.2',
+ ["apr 15\naug 20\ndec 18\nfeb 05\n", "apr 06\naug 14\ndate\nfeb 15"],
+ "apr 06\naug 14\ndec -\nfeb 15\n", 0],
+['5c', '-a1 -e - -o 1.1,2.2',
+ ["aug 20\ndec 18\n", "aug 14\ndate\nfeb 15"],
+ "aug 14\ndec -\n", 0],
+['5d', '-a1 -e - -o 1.1,2.2',
+ ["dec 18\n", ""], "dec -\n", 0],
+['5e', '-a2 -e - -o 1.1,2.2',
+ ["apr 15\naug 20\ndec 18\nfeb 05\n", "apr 06\naug 14\ndate\nfeb 15\n"],
+ "apr 06\naug 14\n- -\nfeb 15\n", 0],
+['5f', '-a2 -e - -o 2.2,1.1',
+ ["apr 15\naug 20\ndec 18\nfeb 05\n", "apr 06\naug 14\ndate\nfeb 15\n"],
+ "06 apr\n14 aug\n- -\n15 feb\n", 0],
+['5g', '-a1 -e - -o 2.2,1.1',
+ ["apr 15\naug 20\ndec 18\nfeb 05\n", "apr 06\naug 14\ndate\nfeb 15\n"],
+ "06 apr\n14 aug\n- dec\n15 feb\n", 0],
+
+['5h', '-a1 -e - -o 2.2,1.1',
+ ["apr 15\naug 20\ndec 18\nfeb 05\n", "apr 06\naug 14\ndate\n"],
+ "06 apr\n14 aug\n- dec\n- feb\n", 0],
+['5i', '-a1 -e - -o 1.1,2.2',
+ ["apr 15\naug 20\ndec 18\nfeb 05\n", "apr 06\naug 14\ndate\n"],
+ "apr 06\naug 14\ndec -\nfeb -\n", 0],
+
+['5j', '-a2 -e - -o 2.2,1.1',
+ ["apr 15\naug 20\ndec 18\nfeb 05\n", "apr 06\naug 14\ndate\n"],
+ "06 apr\n14 aug\n- -\n", 0],
+['5k', '-a2 -e - -o 2.2,1.1',
+ ["apr 15\naug 20\ndec 18\nfeb 05\n", "apr 06\naug 14\ndate\n"],
+ "06 apr\n14 aug\n- -\n", 0],
+
+['5l', '-a1 -e - -o 2.2,1.1',
+ ["apr 15\naug 20\ndec 18\n", "apr 06\naug 14\ndate\nfeb 15\n"],
+ "06 apr\n14 aug\n- dec\n", 0],
+['5m', '-a2 -e - -o 2.2,1.1',
+ ["apr 15\naug 20\ndec 18\n", "apr 06\naug 14\ndate\nfeb 15\n"],
+ "06 apr\n14 aug\n- -\n15 -\n", 0],
+
+['6a', '-e -',
+ ["a 1\nb 2\nd 4\n", "a 21\nb 22\nc 23\nf 26\n"],
+ "a 1 21\nb 2 22\n", 0],
+['6b', '-a1 -e -',
+ ["a 1\nb 2\nd 4\n", "a 21\nb 22\nc 23\nf 26\n"],
+ "a 1 21\nb 2 22\nd 4\n", 0],
+['6c', '-a1 -e -',
+ ["a 21\nb 22\nc 23\nf 26\n", "a 1\nb 2\nd 4\n"],
+ "a 21 1\nb 22 2\nc 23\nf 26\n", 0],
+
+['7a', '-a1 -e . -o 2.7',
+ ["a\nb\nc\n", "a x y\nb\nc\n"], ".\n.\n.\n", 0],
+
+['8a', '-a1 -e . -o 0,1.2',
+ ["a\nb\nc\nd G\n", "a x y\nb\nc\ne\n"],
+ "a .\nb .\nc .\nd G\n", 0],
+['8b', '-a1 -a2 -e . -o 0,1.2',
+ ["a\nb\nc\nd G\n", "a x y\nb\nc\ne\n"],
+ "a .\nb .\nc .\nd G\ne .\n", 0],
+
+# From David Dyck
+['9a', '', [" a 1\n b 2\n", " a Y\n b Z\n"], "a 1 Y\nb 2 Z\n", 0],
+
+# -o 'auto'
+['10a', '-a1 -a2 -e . -o auto',
+ ["a 1 2\nb 1\nd 1 2\n", "a 3 4\nb 3 4\nc 3 4\n"],
+ "a 1 2 3 4\nb 1 . 3 4\nc . . 3 4\nd 1 2 . .\n", 0],
+['10b', '-a1 -a2 -j3 -e . -o auto',
+ ["a 1 2\nb 1\nd 1 2\n", "a 3 4\nb 3 4\nc 3 4\n"],
+ "2 a 1 . .\n. b 1 . .\n2 d 1 . .\n4 . . a 3\n4 . . b 3\n4 . . c 3\n"],
+['10c', '-a1 -1 1 -2 4 -e. -o auto',
+ ["a 1 2\nb 1\nd 1 2\n", "a 3 4\nb 3 4\nc 3 4\n"],
+ "a 1 2 . . .\nb 1 . . . .\nd 1 2 . . .\n"],
+['10d', '-a2 -1 1 -2 4 -e. -o auto',
+ ["a 1 2\nb 1\nd 1 2\n", "a 3 4\nb 3 4\nc 3 4\n"],
+ ". . . a 3 4\n. . . b 3 4\n. . . c 3 4\n"],
+['10e', '-o auto',
+ ["a 1 2\nb 1 2 discard\n", "a 3 4\nb 3 4 discard\n"],
+ "a 1 2 3 4\nb 1 2 3 4\n"],
+['10f', '-t, -o auto',
+ ["a,1,,2\nb,1,2\n", "a,3,4\nb,3,4\n"],
+ "a,1,,2,3,4\nb,1,2,,3,4\n"],
+
+# For -v2, print the match field correctly with the default output format,
+# when that match field is different between file 1 and file 2. Fixed in 8.10
+['v2-order', '-v2 -2 2', ["", "2 1\n"], "1 2\n", 0],
+
+# From Tim Smithers: fixed in 1.22l
+['trailing-sp', '-t: -1 1 -2 1', ["a:x \n", "a:y \n"], "a:x :y \n", 0],
+
+# From Paul Eggert: fixed in 1.22n
+['sp-vs-blank', '', ["\f 1\n", "\f 2\n"], "\f 1 2\n", 0],
+
+# From Paul Eggert: fixed in 1.22n (this would fail on Solaris7,
+# with LC_ALL set to en_US).
+# Unfortunately, that Solaris7's en_US locale folds case (making
+# the first input file sorted) is not portable, so this test would
+# fail on e.g. Linux systems, because the input to join isn't sorted.
+# ['lc-collate', '', ["a 1a\nB 1B\n", "B 2B\n"], "B 1B 2B\n", 0],
+
+# Based on a report from Antonio Rendas. Fixed in 2.0.9.
+['8-bit-t', t_subst "-t:",
+ [t_subst "a:1\nb:1\n", t_subst "a:2:\nb:2:\n"],
+ t_subst "a:1:2:\nb:1:2:\n", 0],
+
+# fields > SIZE_MAX are silently interpreted as SIZE_MAX
+['bigfield1', "-1 $limits->{UINTMAX_OFLOW} -2 2",
+ ["a\n", "b\n"], " a b\n", 0],
+['bigfield2', "-1 $limits->{SIZE_OFLOW} -2 2",
+ ["a\n", "b\n"], " a b\n", 0],
+
+# FIXME: change this to ensure the diagnostic makes sense
+['invalid-j', '-j x', {}, "", 1,
+ "$prog: invalid field number: 'x'\n"],
+
+# With ordering check, inputs in order
+['chkodr-1', '--check-order',
+ [" a 1\n b 2\n", " a Y\n b Z\n"], "a 1 Y\nb 2 Z\n", 0],
+
+# Without check, inputs in order
+['chkodr-2', '--nocheck-order',
+ [" a 1\n b 2\n", " a Y\n b Z\n"], "a 1 Y\nb 2 Z\n", 0],
+
+# Without check, both inputs out of order (in fact, in reverse order)
+# but all pairable. Support for this is a GNU extension.
+['chkodr-3', '--nocheck-order',
+ [" b 1\n a 2\n", " b Y\n a Z\n"], "b 1 Y\na 2 Z\n", 0],
+
+# The extension should work without --nocheck-order, since that is the
+# default.
+['chkodr-4', '',
+ [" b 1\n a 2\n", " b Y\n a Z\n"], "b 1 Y\na 2 Z\n", 0],
+
+# With check, both inputs out of order (in fact, in reverse order)
+['chkodr-5', '--check-order',
+ [" b 1\n a 2\n", " b Y\n a Z\n"], "", 1,
+ "$prog: chkodr-5.1:2: is not sorted: a 2\n"],
+
+# Similar, but with only file 2 not sorted.
+['chkodr-5b', '--check-order',
+ [" a 2\n b 1\n", " b Y\n a Z\n"], "", 1,
+ "$prog: chkodr-5b.2:2: is not sorted: a Z\n"],
+
+# Similar, but with the offending line having length 0 (excluding newline).
+['chkodr-5c', '--check-order',
+ [" a 2\n b 1\n", " b Y\n\n"], "", 1,
+ "$prog: chkodr-5c.2:2: is not sorted: \n"],
+
+# Similar, but elicit a warning for each input file (without --check-order).
+['chkodr-5d', '',
+ ["a\nx\n\n", "b\ny\n\n"], "", 1,
+ "$prog: chkodr-5d.1:3: is not sorted: \n" .
+ "$prog: chkodr-5d.2:3: is not sorted: \n"],
+
+# Similar, but make it so each offending line has no newline.
+['chkodr-5e', '',
+ ["a\nx\no", "b\ny\np"], "", 1,
+ "$prog: chkodr-5e.1:3: is not sorted: o\n" .
+ "$prog: chkodr-5e.2:3: is not sorted: p\n"],
+
+# Without order check, both inputs out of order and some lines
+# unpairable. This is NOT supported by the GNU extension. All that
+# we really care about for this test is that the return status is
+# zero, since that is the only way to actually verify that the
+# --nocheck-order option had any effect. We don't actually want to
+# guarantee that join produces this output on stdout.
+['chkodr-6', '--nocheck-order',
+ [" b 1\n a 2\n", " b Y\n c Z\n"], "b 1 Y\n", 0],
+
+# Before 6.10.143, this would mistakenly fail with the diagnostic:
+# join: File 1 is not in sorted order
+['chkodr-7', '-12', ["2 a\n1 b\n", "2 c\n1 d"], "", 0],
+
+# After 8.9, join doesn't report disorder by default
+# when comparing against an empty input file.
+['chkodr-8', '', ["2 a\n1 b\n", ""], "", 0],
+
+# Test '--header' feature
+['header-1', '--header',
+ [ "ID Name\n1 A\n2 B\n", "ID Color\n1 red\n"], "ID Name Color\n1 A red\n", 0],
+
+# '--header' with '--check-order' : The header line is out-of-order but the
+# actual data is in order. This join should succeed.
+['header-2', '--header --check-order',
+ ["ID Name\n1 A\n2 B\n", "ID Color\n2 green\n"],
+ "ID Name Color\n2 B green\n", 0],
+
+# '--header' with '--check-order' : The header line is out-of-order AND the
+# actual data out-of-order. This join should fail.
+['header-3', '--header --check-order',
+ ["ID Name\n2 B\n1 A\n", "ID Color\n2 blue\n"], "ID Name Color\n", 1,
+ "$prog: header-3.1:3: is not sorted: 1 A\n"],
+
+# '--header' with specific output format '-o'.
+# output header line should respect the requested format
+['header-4', '--header -o "0,1.3,2.2"',
+ ["ID Group Name\n1 Foo A\n2 Bar B\n", "ID Color\n2 blue\n"],
+ "ID Name Color\n2 B blue\n", 0],
+
+# '--header' always outputs headers from the first file
+# even if the headers from the second file don't match
+['header-5', '--header',
+ [ "ID1 Name\n1 A\n2 B\n", "ID2 Color\n1 red\n"],
+ "ID1 Name Color\n1 A red\n", 0],
+
+# '--header' doesn't check order of a header
+# even if there is no header in the second file
+['header-6', '--header -a1',
+ [ "ID1 Name\n1 A\n", ""],
+ "ID1 Name\n1 A\n", 0],
+
+# Zero-terminated lines
+['z1', '-z',
+ ["a\0c\0e\0", "a\0b\0c\0"], "a\0c\0", 0],
+
+# not zero-terminated, but related to the code change:
+# the old readlinebuffer() auto-added '\n' to the last line.
+# the new readlinebuffer_delim() does not.
+# Ensure it doesn't matter.
+['z2', '',
+ ["a\nc\ne\n", "a\nb\nc"], "a\nc\n", 0],
+['z3', '',
+ ["a\nc\ne", "a\nb\nc"], "a\nc\n", 0],
+# missing last NUL at the end of the last line (=end of file)
+['z4', '-z',
+ ["a\0c\0e", "a\0b\0c"], "a\0c\0", 0],
+# With -z, embedded newlines are treated as field separators.
+# Note '\n' are converted to ' ' in this case.
+['z5', '-z -a1 -a2',
+ ["a\n\n1\0c 3\0", "a 2\0b\n8\0c 9\0"], "a 1 2\0b 8\0c 3 9\0"],
+# One can avoid field processing like:
+['z6', '-z -t ""',
+ ["a\n1\n\0", "a\n1\n\0"], "a\n1\n\0"],
+
+);
+
+# Convert the above old-style test vectors to the newer
+# format used by Coreutils.pm.
+
+my @Tests;
+foreach my $t (@tv)
+ {
+ my ($test_name, $flags, $in, $exp, $ret, $err_msg) = @$t;
+ my $new_ent = [$test_name, $flags];
+ if (!ref $in)
+ {
+ push @$new_ent, {IN=>$in};
+ }
+ elsif (ref $in eq 'HASH')
+ {
+ # ignore
+ }
+ else
+ {
+ foreach my $e (@$in)
+ {
+ push @$new_ent, {IN=>$e};
+ }
+ }
+ push @$new_ent, {OUT=>$exp};
+ $ret
+ and push @$new_ent, {EXIT=>$ret}, {ERR=>$err_msg};
+ push @Tests, $new_ent;
+ }
+
+@Tests = triple_test \@Tests;
+
+my $save_temps = $ENV{DEBUG};
+my $verbose = $ENV{VERBOSE};
+
+my $fail = run_tests ($prog, $prog, \@Tests, $save_temps, $verbose);
+exit $fail;
diff --git a/tests/misc/kill.sh b/tests/misc/kill.sh
new file mode 100755
index 0000000..779ce3e
--- /dev/null
+++ b/tests/misc/kill.sh
@@ -0,0 +1,63 @@
+#!/bin/sh
+# Validate kill operation
+
+# Copyright (C) 2015-2016 Free Software Foundation, Inc.
+
+# This program is free software: you can redistribute it and/or modify
+# it under the terms of the GNU General Public License as published by
+# the Free Software Foundation, either version 3 of the License, or
+# (at your option) any later version.
+
+# This program is distributed in the hope that it will be useful,
+# but WITHOUT ANY WARRANTY; without even the implied warranty of
+# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
+# GNU General Public License for more details.
+
+# You should have received a copy of the GNU General Public License
+# along with this program. If not, see <http://www.gnu.org/licenses/>.
+
+. "${srcdir=.}/tests/init.sh"; path_prepend_ ./src
+print_ver_ kill
+
+# params required
+returns_ 1 env kill || fail=1
+returns_ 1 env kill -TERM || fail=1
+
+# Invalid combinations
+returns_ 1 env kill -l -l || fail=1
+returns_ 1 env kill -l -t || fail=1
+returns_ 1 env kill -l -s 1 || fail=1
+returns_ 1 env kill -t -s 1 || fail=1
+
+# signal sending
+returns_ 1 env kill -0 no_pid || fail=1
+env kill -0 $$ || fail=1
+env kill -s0 $$ || fail=1
+env kill -n0 $$ || fail=1 # bash compat
+env kill -CONT $$ || fail=1
+env kill -Cont $$ || fail=1
+returns_ 1 env kill -cont $$ || fail=1
+env kill -0 -1 || fail=1 # to group
+
+# table listing
+env kill -l || fail=1
+env kill -t || fail=1
+env kill -L || fail=1 # bash compat
+env kill -t TERM HUP || fail=1
+
+# Verify (multi) name to signal number and vice versa
+SIGTERM=$(env kill -l HUP TERM | tail -n1) || fail=1
+test $(env kill -l "$SIGTERM") = TERM || fail=1
+
+# Verify we only consider the lower "signal" bits,
+# to support ksh which just adds 256 to the signal value
+STD_TERM_STATUS=$(expr "$SIGTERM" + 128)
+KSH_TERM_STATUS=$(expr "$SIGTERM" + 256)
+test $(env kill -l $STD_TERM_STATUS $KSH_TERM_STATUS | uniq) = TERM || fail=1
+
+# Verify invalid signal spec is diagnosed
+returns_ 1 env kill -l -1 || fail=1
+returns_ 1 env kill -l -1 0 || fail=1
+returns_ 1 env kill -l INVALID TERM || fail=1
+
+Exit $fail
diff --git a/tests/misc/ls-misc.pl b/tests/misc/ls-misc.pl
new file mode 100755
index 0000000..1ce672b
--- /dev/null
+++ b/tests/misc/ls-misc.pl
@@ -0,0 +1,372 @@
+#!/usr/bin/perl
+
+# Copyright (C) 1998-2016 Free Software Foundation, Inc.
+
+# This program is free software: you can redistribute it and/or modify
+# it under the terms of the GNU General Public License as published by
+# the Free Software Foundation, either version 3 of the License, or
+# (at your option) any later version.
+
+# This program is distributed in the hope that it will be useful,
+# but WITHOUT ANY WARRANTY; without even the implied warranty of
+# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
+# GNU General Public License for more details.
+
+# You should have received a copy of the GNU General Public License
+# along with this program. If not, see <http://www.gnu.org/licenses/>.
+
+use strict;
+
+(my $ME = $0) =~ s|.*/||;
+my $prog = 'ls';
+
+# Turn off localization of executable's output.
+@ENV{qw(LANGUAGE LANG LC_ALL)} = ('C') x 3;
+
+my $saved_ls_colors;
+
+sub push_ls_colors($)
+{
+ $saved_ls_colors = $ENV{LS_COLORS} || '';
+ $ENV{LS_COLORS} = $_[0];
+}
+
+sub restore_ls_colors()
+{
+ $ENV{LS_COLORS} = $saved_ls_colors;
+}
+
+# If the string $S is a well-behaved file name, simply return it.
+# If it contains white space, quotes, etc., quote it, and return the new string.
+sub shell_quote($)
+{
+ my ($s) = @_;
+ if ($s =~ m![^\w+/.,-]!)
+ {
+ # Convert each single quote to '\''
+ $s =~ s/\'/\'\\\'\'/g;
+ # Then single quote the string.
+ $s = "'$s'";
+ }
+ return $s;
+}
+
+# Set up files used by the setuid-etc tests; skip this entire test if
+# that cannot be done.
+sub setuid_setup()
+{
+ my $test = 'env test';
+ system (qq(touch setuid && chmod u+s setuid && $test -u setuid &&
+ touch setgid && chmod g+s setgid && $test -g setgid &&
+ mkdir sticky && chmod +t sticky && $test -k sticky &&
+ mkdir owt && chmod +t,o+w owt && $test -k owt &&
+ mkdir owr && chmod o+w owr)) == 0
+ or CuSkip::skip "$ME: cannot create setuid/setgid/sticky files,"
+ . "so can't run this test\n";
+}
+
+sub mk_file(@)
+{
+ foreach my $f (@_)
+ {
+ open (F, '>', $f) && close F
+ or die "creating $f: $!\n";
+ }
+}
+
+sub mkdir_d {mkdir 'd',0755 or die "d: $!\n"}
+sub rmdir_d {rmdir 'd' or die "d: $!\n"}
+my $mkdir = {PRE => sub {mkdir_d}};
+my $rmdir = {POST => sub {rmdir_d}};
+my $mkdir_reg = {PRE => sub {mkdir_d; mk_file 'd/f' }};
+my $rmdir_reg = {POST => sub {unlink 'd/f' or die "d/f: $!\n";
+ rmdir 'd' or die "d: $!\n"}};
+
+my $mkdir2 = {PRE => sub {mkdir 'd',0755 or die "d: $!\n";
+ mkdir 'd/e',0755 or die "d/e: $!\n" }};
+my $rmdir2 = {POST => sub {rmdir 'd/e' or die "d/e: $!\n";
+ rmdir 'd' or die "d: $!\n" }};
+
+my $target = {PRE => sub {
+ mkdir 'd',0755 or die "d: $!\n";
+ symlink '.', 'd/X' or die "d/X: $!\n";
+ push_ls_colors('ln=target')
+ }};
+my $target2 = {POST => sub {unlink 'd/X' or die "d/X: $!\n";
+ rmdir 'd' or die "d: $!\n";
+ restore_ls_colors
+ }};
+my $slink_d = {PRE => sub {symlink '/', 'd' or die "d: $!\n";
+ push_ls_colors('ln=01;36:di=01;34:or=40;31;01')
+ }};
+my $unlink_d = {POST => sub {unlink 'd' or die "d: $!\n"; restore_ls_colors}};
+
+my $mkdir_d_slink = {PRE => sub {mkdir 'd',0755 or die "d: $!\n";
+ symlink '/', 'd/s' or die "d/s: $!\n" }};
+my $rmdir_d_slink = {POST => sub {unlink 'd/s' or die "d/s: $!\n";
+ rmdir 'd' or die "d: $!\n" }};
+
+sub make_j_d ()
+{
+ mkdir 'j', 0700 or die "creating j: $!\n";
+ mk_file 'j/d';
+ chmod 0555, 'j/d' or die "making j/d executable: $!\n";
+}
+
+my @v1 = (qw(0 9 A Z a z), 'zz~', 'zz', 'zz.~1~', 'zz.0');
+my @v_files = ((map { ".$_" } @v1), @v1);
+my $exe_in_subdir = {PRE => sub { make_j_d (); push_ls_colors('ex=01;32') }};
+my $remove_j = {POST => sub {unlink 'j/d' or die "j/d: $!\n";
+ rmdir 'j' or die "j: $!\n";
+ restore_ls_colors }};
+
+my $e = "\e[0m";
+my $q_bell = {IN => {"q\a" => ''}};
+my @Tests =
+ (
+ # test-name options input expected-output
+ #
+ # quoting tests............................................
+ ['q-', $q_bell, {OUT => "q\a\n"}, {EXIT => 0}],
+ ['q-N', '-N', $q_bell, {OUT => "q\a\n"}, {ERR => ''}],
+ ['q-q', '-q', $q_bell, {OUT => "q?\n"}],
+ ['q-Q', '-Q', $q_bell, {OUT => "\"q\\a\"\n"}],
+
+ ['q-qs-lit', '--quoting=literal', $q_bell, {OUT => "q\a\n"}],
+ ['q-qs-sh', '--quoting=shell', $q_bell, {OUT => "q\a\n"}],
+ ['q-qs-sh-a', '--quoting=shell-always',$q_bell, {OUT => "'q\a'\n"}],
+ ['q-qs-sh-e', '--quoting=shell-escape',$q_bell, {OUT => "'q'\$'\\a'\n"}],
+ ['q-qs-c', '--quoting=c', $q_bell, {OUT => "\"q\\a\"\n"}],
+ ['q-qs-esc', '--quoting=escape', $q_bell, {OUT => "q\\a\n"}],
+ ['q-qs-loc', '--quoting=locale', $q_bell, {OUT => "'q\\a'\n"}],
+ ['q-qs-cloc', '--quoting=clocale', $q_bell, {OUT => "\"q\\a\"\n"}],
+
+ ['q-qs-lit-q', '--quoting=literal -q', $q_bell, {OUT => "q?\n"}],
+ ['q-qs-sh-q', '--quoting=shell -q', $q_bell, {OUT => "q?\n"}],
+ ['q-qs-sh-a-q', '--quoting=shell-al -q', $q_bell, {OUT => "'q?'\n"}],
+ ['q-qs-sh-e-q', '--quoting=shell-escape -q',
+ $q_bell, {OUT => "'q'\$'\\a'\n"}],
+ ['q-qs-c-q', '--quoting=c -q', $q_bell, {OUT => "\"q\\a\"\n"}],
+ ['q-qs-esc-q', '--quoting=escape -q', $q_bell, {OUT => "q\\a\n"}],
+ ['q-qs-loc-q', '--quoting=locale -q', $q_bell, {OUT => "'q\\a'\n"}],
+ ['q-qs-cloc-q', '--quoting=clocale -q', $q_bell, {OUT => "\"q\\a\"\n"}],
+
+ ['q-qs-c-1', '--quoting=c',
+ {IN => {"t\004" => ''}}, {OUT => "\"t\\004\"\n"}],
+
+ ['emptydir', 'd', {OUT => ''}, $mkdir, $rmdir],
+ ['emptydir-x2', 'd d', {OUT => "d:\n\nd:\n"}, $mkdir, $rmdir],
+ ['emptydir-R', '-R d', {OUT => "d:\n"}, $mkdir, $rmdir],
+
+ # test 'ls -R .' ............................................
+ ['R-dot', '--ignore="[a-ce-zA-Z]*" -R .', {OUT => ".:\nd\n\n\./d:\n"},
+ $mkdir, $rmdir],
+
+ ['slink-dir-F', '-F d', {OUT => "d@\n"}, $slink_d, $unlink_d],
+ ['slink-dir-dF', '-dF d', {OUT => "d@\n"}, $slink_d, $unlink_d],
+ ['slinkdir-dFH', '-dFH d', {OUT => "d/\n"}, $slink_d, $unlink_d],
+ ['slinkdir-dFL', '-dFL d', {OUT => "d/\n"}, $slink_d, $unlink_d],
+
+ # Test for a bug that was fixed in coreutils-4.5.4.
+ ['sl-F-color', '-F --color=always d',
+ {OUT => "$e\e[01;36md$e\@\n"},
+ $slink_d, $unlink_d],
+ ['sl-dF-color', '-dF --color=always d',
+ {OUT => "$e\e[01;36md$e\@\n"},
+ $slink_d, $unlink_d],
+
+ # A listing with no output should have no color sequences at all.
+ ['no-c-empty', '--color=always d', {OUT => ""}, $mkdir, $rmdir],
+ # A listing with only regular files should have no color sequences at all.
+ ['no-c-reg', '--color=always d', {OUT => "f\n"}, $mkdir_reg, $rmdir_reg],
+
+ # Test for a bug fixed after coreutils-6.9.
+ ['sl-target', '--color=always d',
+ {OUT => "$e\e[01;34mX$e\n"}, $target, $target2],
+
+ # Test for another bug fixed after coreutils-6.9.
+ # This one bites only for a system/file system with d_type support.
+ ['sl-dangle', '--color=always d',
+ {OUT => "$e\e[40;31;01mX$e\n"},
+ {PRE => sub {
+ mkdir 'd',0755 or die "d: $!\n";
+ symlink 'non-existent', 'd/X' or die "d/X: $!\n";
+ push_ls_colors('or=40;31;01')
+ }},
+ {POST => sub {unlink 'd/X' or die "d/X: $!\n";
+ rmdir 'd' or die "d: $!\n";
+ restore_ls_colors; }},
+ ],
+
+ # Test for a bug fixed after coreutils-8.2.
+ ['sl-dangle2', '-o --time-style=+:TIME: --color=always l',
+ {OUT_SUBST => 's/.*:TIME: //'},
+ {OUT => "l -> nowhere\n"},
+ {PRE => sub {symlink 'nowhere', 'l' or die "l: $!\n";
+ push_ls_colors('ln=target')
+ }},
+ {POST => sub {unlink 'l' or die "l: $!\n";
+ restore_ls_colors; }},
+ ],
+ ['sl-dangle3', '-o --time-style=+:TIME: --color=always l',
+ {OUT_SUBST => 's/.*:TIME: //'},
+ {OUT => "$e\e[40ml$e -> \e[34mnowhere$e\n"},
+ {PRE => sub {symlink 'nowhere', 'l' or die "l: $!\n";
+ push_ls_colors('ln=target:or=40:mi=34:')
+ }},
+ {POST => sub {unlink 'l' or die "l: $!\n";
+ restore_ls_colors; }},
+ ],
+ ['sl-dangle4', '-o --time-style=+:TIME: --color=always l',
+ {OUT_SUBST => 's/.*:TIME: //'},
+ {OUT => "$e\e[36ml$e -> \e[35mnowhere$e\n"},
+ {PRE => sub {symlink 'nowhere', 'l' or die "l: $!\n";
+ push_ls_colors('ln=34:mi=35:or=36:')
+ }},
+ {POST => sub {unlink 'l' or die "l: $!\n";
+ restore_ls_colors; }},
+ ],
+ ['sl-dangle5', '-o --time-style=+:TIME: --color=always l',
+ {OUT_SUBST => 's/.*:TIME: //'},
+ {OUT => "$e\e[34ml$e -> \e[35mnowhere$e\n"},
+ {PRE => sub {symlink 'nowhere', 'l' or die "l: $!\n";
+ push_ls_colors('ln=34:mi=35:')
+ }},
+ {POST => sub {unlink 'l' or die "l: $!\n";
+ restore_ls_colors; }},
+ ],
+
+ # Test for a bug fixed after coreutils-8.13
+ # where 'argetm' was errenously printed for dangling links
+ # when ln=target was used in LS_COLORS
+ ['sl-dangle6', '-L --color=always d',
+ {OUT => "s\n"},
+ {PRE => sub {mkdir 'd',0755 or die "d: $!\n";
+ symlink 'dangle', 'd/s' or die "d/s: $!\n";
+ push_ls_colors('ln=target')
+ }},
+ {POST => sub {unlink 'd/s' or die "d/s: $!\n";
+ rmdir 'd' or die "d: $!\n";
+ restore_ls_colors; }},
+ {ERR => "ls: cannot access 'd/s': No such file or directory\n"},
+ {EXIT => 1}
+ ],
+ # Related to the above fix, is this case where
+ # the code simulates "linkok". In this case "linkmode"
+ # should always be zero, and hence not trigger any
+ # issues with type being set to C_LINK
+ ['sl-dangle7', '--color=always d',
+ {OUT => "$e\e[ms$e\n"},
+ {PRE => sub {mkdir 'd',0755 or die "d: $!\n";
+ symlink 'dangle', 'd/s' or die "d/s: $!\n";
+ push_ls_colors('ln=target:or=:ex=:')
+ }},
+ {POST => sub {unlink 'd/s' or die "d/s: $!\n";
+ rmdir 'd' or die "d: $!\n";
+ restore_ls_colors; }},
+ ],
+ # Another case with simulated "linkok", that does
+ # actually use the value of 'ln' from $LS_COLORS.
+ # This path is not taken though when 'ln=target'.
+ ['sl-dangle8', '--color=always s',
+ {OUT => "$e\e[1;36ms$e\n"},
+ {PRE => sub {symlink 'dangle', 's' or die "s: $!\n";
+ push_ls_colors('ln=1;36:or=:')
+ }},
+ {POST => sub {unlink 's' or die "s: $!\n";
+ restore_ls_colors; }},
+ ],
+ # The patch associated with sl-dangle[678] introduced a regression
+ # that was fixed after coreutils-8.19. This edge case triggers when
+ # listing a dir containing dangling symlinks, but with orphans uncolored.
+ # I.e., the same as the previous test, but listing the directory
+ # rather than the symlink directly.
+ ['sl-dangle9', '--color=always d',
+ {OUT => "$e\e[1;36ms$e\n"},
+ {PRE => sub {mkdir 'd',0755 or die "d: $!\n";
+ symlink 'dangle', 'd/s' or die "d/s: $!\n";
+ push_ls_colors('ln=1;36:or=:')
+ }},
+ {POST => sub {unlink 'd/s' or die "d/s: $!\n";
+ rmdir 'd' or die "d: $!\n";
+ restore_ls_colors; }},
+ ],
+
+ # Test for a bug that was introduced in coreutils-4.5.4; fixed in 4.5.5.
+ # To demonstrate it, the file in question (with executable bit set)
+ # must not be a command line argument.
+ ['color-exe1', '--color=always j',
+ {OUT => "$e\e[01;32md$e\n"},
+ $exe_in_subdir, $remove_j],
+
+ # From Stéphane Chazelas.
+ ['no-a-isdir-b', 'no-dir d',
+ {OUT => "d:\n"},
+ {ERR => "ls: cannot access 'no-dir': No such file or directory\n"},
+ $mkdir, $rmdir, {EXIT => 2}],
+
+ ['recursive-2', '-R d', {OUT => "d:\ne\n\nd/e:\n"}, $mkdir2, $rmdir2],
+
+ ['setuid-etc', '-1 -d --color=always owr owt setgid setuid sticky',
+ {OUT =>
+ "$e\e[34;42mowr$e\n"
+ . "\e[30;42mowt$e\n"
+ . "\e[30;43msetgid$e\n"
+ . "\e[37;41msetuid$e\n"
+ . "\e[37;44msticky$e\n"
+ },
+
+ {PRE => sub {
+ push_ls_colors('ow=34;42:tw=30;42:sg=30;43:su=37;41:st=37;44'); }},
+ {POST => sub {
+ unlink qw(setuid setgid);
+ foreach my $dir (qw(owr owt sticky)) {rmdir $dir}
+ restore_ls_colors; }},
+ ],
+
+ # For 5.97 and earlier, --file-type acted like --indicator-style=slash.
+ ['file-type', '--file-type d', {OUT => "s@\n"},
+ $mkdir_d_slink, $rmdir_d_slink],
+
+ # 7.1 had a regression in how -v -a ordered some files
+ ['version-sort', '-v -A ' . join (' ', @v_files),
+ {OUT => join ("\n", @v_files) . "\n"},
+ {PRE => sub { mk_file @v_files }},
+ {POST => sub { unlink @v_files }},
+ ],
+
+ # Test for the ls -1U bug fixed in coreutils-7.5.
+ # It is triggered only with -1U and with two or more arguments,
+ # at least one of which is a nonempty directory.
+ ['multi-arg-U1', '-U1 d no-such',
+ {OUT => "d:\nf\n"},
+ {ERR_SUBST=>"s/ch':.*/ch':/"},
+ {ERR => "$prog: cannot access 'no-such':\n"},
+ $mkdir_reg,
+ $rmdir_reg,
+ {EXIT => 2},
+ ],
+ );
+
+umask 022;
+
+# Start with an unset LS_COLORS environment variable.
+delete $ENV{LS_COLORS};
+
+my $save_temps = $ENV{SAVE_TEMPS};
+my $verbose = $ENV{VERBOSE};
+
+setuid_setup;
+my $fail = run_tests ($ME, $prog, \@Tests, $save_temps, $verbose);
+$fail
+ and exit 1;
+
+# Be careful to use the just-build dircolors.
+my $env = qx/dircolors -b/;
+$env =~ s/^LS_COLORS=\'//;
+$env =~ s/\';.*//sm;
+$ENV{LS_COLORS} = $env;
+
+setuid_setup;
+$fail = run_tests ($ME, $prog, \@Tests, $save_temps, $verbose);
+exit $fail;
diff --git a/tests/misc/ls-time.sh b/tests/misc/ls-time.sh
new file mode 100755
index 0000000..09a0fc1
--- /dev/null
+++ b/tests/misc/ls-time.sh
@@ -0,0 +1,145 @@
+#!/bin/sh
+# Test some of ls's sorting options.
+
+# Copyright (C) 1998-2016 Free Software Foundation, Inc.
+
+# This program is free software: you can redistribute it and/or modify
+# it under the terms of the GNU General Public License as published by
+# the Free Software Foundation, either version 3 of the License, or
+# (at your option) any later version.
+
+# This program is distributed in the hope that it will be useful,
+# but WITHOUT ANY WARRANTY; without even the implied warranty of
+# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
+# GNU General Public License for more details.
+
+# You should have received a copy of the GNU General Public License
+# along with this program. If not, see <http://www.gnu.org/licenses/>.
+
+. "${srcdir=.}/tests/init.sh"; path_prepend_ ./src
+print_ver_ ls
+
+# Avoid any possible glitches due to daylight-saving changes near the
+# time stamps used during the test.
+TZ=UTC0
+export TZ
+
+t1='1998-01-15 21:00'
+t2='1998-01-15 22:00'
+t3='1998-01-15 23:00'
+
+u1='1998-01-14 11:00'
+u2='1998-01-14 12:00'
+u3='1998-01-14 13:00'
+
+touch -m -d "$t3" a || framework_failure_
+touch -m -d "$t2" b || framework_failure_
+touch -m -d "$t1" c || framework_failure_
+
+touch -a -d "$u3" c || framework_failure_
+touch -a -d "$u2" b || framework_failure_
+# Make sure A has ctime at least 1 second more recent than C's.
+sleep 2
+touch -a -d "$u1" a || framework_failure_
+# Updating the atime is usually enough to update the ctime, but on
+# Solaris 10's tmpfs, ctime is not updated, so force an update here:
+{ ln a a-ctime && rm a-ctime; } || framework_failure_
+
+
+# A has ctime more recent than C.
+set $(ls -c a c)
+test "$*" = 'a c' || fail=1
+
+# Sleep so long in an attempt to avoid spurious failures
+# due to NFS caching and/or clock skew.
+sleep 2
+
+# Create a link, updating c's ctime.
+ln c d || framework_failure_
+
+# Before we go any further, verify that touch's -m option works.
+set -- $(ls --full -l a)
+case "$*" in
+ *" $t3:00.000000000 +0000 a") ;;
+ *)
+ # This might be what's making HPUX 11 systems fail this test.
+ cat >&2 << EOF
+A basic test of touch -m has just failed, so the subsequent
+tests in this file will not be run.
+
+In the output below, the date of last modification for 'a' should
+have been $t3.
+EOF
+ ls --full -l a
+ framework_failure_
+ ;;
+esac
+
+# Ensure that touch's -a option works.
+set -- $(ls --full -lu a)
+case "$*" in
+ *" $u1:00.000000000 +0000 a") ;;
+ *)
+ # This might be what's making HPUX 11 systems fail this test.
+ cat >&2 << EOF
+A fundamental touch -a test has just failed, so the subsequent
+tests in this file will not be run.
+
+In the output below, the date of last access for 'a' should
+have been $u1.
+EOF
+ ls --full -lu a
+ Exit 77
+ ;;
+esac
+
+set $(ls -ut a b c)
+test "$*" = 'c b a' && : || fail=1
+test $fail = 1 && ls -l --full-time --time=access a b c
+
+set $(ls -t a b c)
+test "$*" = 'a b c' && : || fail=1
+test $fail = 1 && ls -l --full-time a b c
+
+# Now, C should have ctime more recent than A.
+set $(ls -ct a c)
+if test "$*" = 'c a'; then
+ : ok
+else
+ # In spite of documentation, (e.g., stat(2)), neither link nor chmod
+ # update a file's st_ctime on SunOS4.1.4.
+ cat >&2 << \EOF
+failed ls ctime test -- this failure is expected at least for SunOS4.1.4
+and for tmpfs file systems on Solaris 5.5.1.
+It is also expected to fail on a btrfs file system until
+http://bugzilla.redhat.com/591068 is addressed.
+
+In the output below, 'c' should have had a ctime more recent than
+that of 'a', but does not.
+EOF
+ #'
+ ls -ctl --full-time a c
+ fail=1
+fi
+
+# This check is ineffective if:
+# en_US locale is not on the system.
+# The system en_US message catalog has a specific TIME_FMT translation,
+# which was inadvertently the case between coreutils 8.1 and 8.5 inclusive.
+
+if gettext --version >/dev/null 2>&1; then
+
+ default_tf1='%b %e %Y'
+ en_tf1=$(LC_ALL=en_US gettext coreutils "$default_tf1")
+
+ if test "$default_tf1" = "$en_tf1"; then
+ LC_ALL=en_US ls -l c >en_output
+ ls -l --time-style=long-iso c >liso_output
+ if compare en_output liso_output; then
+ fail=1
+ echo "Long ISO TIME_FMT being used for en_US locale." >&2
+ fi
+ fi
+fi
+
+Exit $fail
diff --git a/tests/misc/md5sum-bsd.sh b/tests/misc/md5sum-bsd.sh
new file mode 100755
index 0000000..e86434c
--- /dev/null
+++ b/tests/misc/md5sum-bsd.sh
@@ -0,0 +1,88 @@
+#!/bin/sh
+# 'md5sum' tests for generation and checking of
+# BSD traditional and alternate formats (md5 [-r])
+
+# Copyright (C) 2011-2016 Free Software Foundation, Inc.
+
+# This program is free software: you can redistribute it and/or modify
+# it under the terms of the GNU General Public License as published by
+# the Free Software Foundation, either version 3 of the License, or
+# (at your option) any later version.
+
+# This program is distributed in the hope that it will be useful,
+# but WITHOUT ANY WARRANTY; without even the implied warranty of
+# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
+# GNU General Public License for more details.
+
+# You should have received a copy of the GNU General Public License
+# along with this program. If not, see <http://www.gnu.org/licenses/>.
+
+. "${srcdir=.}/tests/init.sh"; path_prepend_ ./src
+print_ver_ md5sum
+
+## BSD alternate format tests ##
+
+# Ensure we can --check BSD alternate format.
+# Note we start this list with a name
+# that's unambiguous in BSD format.
+# I.e., one not starting with ' ' or '*'
+for i in 'a' ' b' '*c' 'dd' ' '; do
+ echo "$i" > "$i"
+ md5sum "$i" >> check.md5sum
+done
+sed 's/ / /' check.md5sum > check.md5
+
+# Note only a single format is supported per run
+md5sum --strict -c check.md5sum || fail=1
+md5sum --strict -c check.md5 || fail=1
+
+# If we skip the first entry in the BSD format checksums
+# then it'll be detected as standard format and error.
+# This unlikely caveat was thought better than mandating
+# an option to avoid the ambiguity.
+tail -n+2 check.md5 | returns_ 1 md5sum --strict -c || fail=1
+
+
+## BSD traditional format tests (--tag option) ##
+
+# Ensure --tag and --check are mutually exclusive
+returns_ 1 md5sum --tag --check /dev/null || fail=1
+
+# Ensure --tag and --text are mutually exclusive
+# We don't support --text with BSD tradition format,
+# as that would complicate the output format,
+# while providing little benefit over --text processing
+# available with the default md5sum output format.
+returns_ 1 md5sum --tag --text /dev/null || fail=1
+
+# Ensure we can --check BSD traditional format we produce
+rm check.md5
+for i in 'a' ' b' '*c' 'dd' ' '; do
+ echo "$i" > "$i"
+ md5sum --tag "$i" >> check.md5
+done
+md5sum --strict -c check.md5 || fail=1
+
+# Ensure we can --check BSD traditional format we produce
+# with the GNU extension of escaped newlines
+nl='
+'
+tab=' '
+rm check.md5
+for i in 'a\b' 'a\' "a${nl}b" "a${tab}b"; do
+ > "$i"
+ md5sum --tag "$i" >> check.md5
+done
+md5sum --strict -c check.md5 || fail=1
+
+# Ensure BSD traditional format with GNU extension escapes
+# is in the expected format
+ex_file='test
+\\file'
+ex_output='\MD5 (test\n\\\\file) = d41d8cd98f00b204e9800998ecf8427e'
+touch "$ex_file"
+printf "%s\n" "$ex_output" > exp
+md5sum --tag "$ex_file" > out
+compare exp out || fail=1
+
+Exit $fail
diff --git a/tests/misc/md5sum-newline.pl b/tests/misc/md5sum-newline.pl
new file mode 100755
index 0000000..32dbbe2
--- /dev/null
+++ b/tests/misc/md5sum-newline.pl
@@ -0,0 +1,44 @@
+#!/usr/bin/perl
+# Newline tests for "md5sum".
+
+# Copyright (C) 1999-2016 Free Software Foundation, Inc.
+
+# This program is free software: you can redistribute it and/or modify
+# it under the terms of the GNU General Public License as published by
+# the Free Software Foundation, either version 3 of the License, or
+# (at your option) any later version.
+
+# This program is distributed in the hope that it will be useful,
+# but WITHOUT ANY WARRANTY; without even the implied warranty of
+# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
+# GNU General Public License for more details.
+
+# You should have received a copy of the GNU General Public License
+# along with this program. If not, see <http://www.gnu.org/licenses/>.
+
+use strict;
+
+(my $ME = $0) =~ s|.*/||;
+
+# Turn off localization of executable's output.
+@ENV{qw(LANGUAGE LANG LC_ALL)} = ('C') x 3;
+
+# See if we can create a file name that contains a newline.
+# Use system, since Perl doesn't let you do this with "open".
+system ('touch', "a\nb") == 0
+ or CuSkip::skip "$ME: failed to create newline-containing file name\n";
+
+my $degenerate = "d41d8cd98f00b204e9800998ecf8427e";
+my $t = '--text';
+
+my @Tests =
+ (
+ ['newline', $t, {IN=> {"a\nb"=> ''}}, {OUT=>"\\$degenerate a\\nb\n"}],
+ );
+
+my $save_temps = $ENV{DEBUG};
+my $verbose = $ENV{VERBOSE};
+
+my $prog = 'md5sum';
+my $fail = run_tests ($ME, $prog, \@Tests, $save_temps, $verbose);
+exit $fail;
diff --git a/tests/misc/md5sum-parallel.sh b/tests/misc/md5sum-parallel.sh
new file mode 100755
index 0000000..a159338
--- /dev/null
+++ b/tests/misc/md5sum-parallel.sh
@@ -0,0 +1,36 @@
+#!/bin/sh
+# Ensure that md5sum prints each checksum atomically
+# so that concurrent md5sums don't intersperse their output
+
+# Copyright (C) 2009-2016 Free Software Foundation, Inc.
+
+# This program is free software: you can redistribute it and/or modify
+# it under the terms of the GNU General Public License as published by
+# the Free Software Foundation, either version 3 of the License, or
+# (at your option) any later version.
+
+# This program is distributed in the hope that it will be useful,
+# but WITHOUT ANY WARRANTY; without even the implied warranty of
+# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
+# GNU General Public License for more details.
+
+# You should have received a copy of the GNU General Public License
+# along with this program. If not, see <http://www.gnu.org/licenses/>.
+
+. "${srcdir=.}/tests/init.sh"; path_prepend_ ./src
+print_ver_ md5sum
+
+xargs -P2 </dev/null >/dev/null 2>&1 \
+ || skip_ 'xargs -P is required'
+
+(mkdir tmp && cd tmp && seq 500 | xargs touch)
+
+# This will output at least 16KiB per process
+# and start 3 processes, with 2 running concurrently,
+# which triggers often on Fedora 11 at least.
+(find tmp tmp tmp -type f | xargs -n500 -P2 md5sum 2>err) |
+sed -n '/[0-9a-f]\{32\} /!p' |
+grep . > /dev/null && fail=1
+compare /dev/null err || fail=1
+
+Exit $fail
diff --git a/tests/misc/md5sum.pl b/tests/misc/md5sum.pl
new file mode 100755
index 0000000..2eb6369
--- /dev/null
+++ b/tests/misc/md5sum.pl
@@ -0,0 +1,175 @@
+#!/usr/bin/perl
+# Basic tests for "md5sum".
+
+# Copyright (C) 1998-2016 Free Software Foundation, Inc.
+
+# This program is free software: you can redistribute it and/or modify
+# it under the terms of the GNU General Public License as published by
+# the Free Software Foundation, either version 3 of the License, or
+# (at your option) any later version.
+
+# This program is distributed in the hope that it will be useful,
+# but WITHOUT ANY WARRANTY; without even the implied warranty of
+# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
+# GNU General Public License for more details.
+
+# You should have received a copy of the GNU General Public License
+# along with this program. If not, see <http://www.gnu.org/licenses/>.
+
+use strict;
+
+my $prog = 'md5sum';
+
+# Turn off localization of executable's output.
+@ENV{qw(LANGUAGE LANG LC_ALL)} = ('C') x 3;
+
+my $degenerate = "d41d8cd98f00b204e9800998ecf8427e";
+
+my $try_help = "Try 'md5sum --help' for more information.\n";
+
+my @Tests =
+ (
+ ['1', {IN=> {f=> ''}}, {OUT=>"$degenerate f\n"}],
+ ['2', {IN=> {f=> 'a'}}, {OUT=>"0cc175b9c0f1b6a831c399e269772661 f\n"}],
+ ['3', {IN=> {f=> 'abc'}}, {OUT=>"900150983cd24fb0d6963f7d28e17f72 f\n"}],
+ ['4', {IN=> {f=> 'message digest'}},
+ {OUT=>"f96b697d7cb7938d525a2f31aaf161d0 f\n"}],
+ ['5', {IN=> {f=> 'abcdefghijklmnopqrstuvwxyz'}},
+ {OUT=>"c3fcd3d76192e4007dfb496cca67e13b f\n"}],
+ ['6', {IN=> {f=> join ('', 'A'..'Z', 'a'..'z', '0'..'9')}},
+ {OUT=>"d174ab98d277d9f5a5611c2c9f419d9f f\n"}],
+ ['7', {IN=> {f=> '1234567890' x 8}},
+ {OUT=>"57edf4a22be3c955ac49da2e2107b67a f\n"}],
+ ['backslash-1', {IN=> {".\nfoo"=> ''}},
+ {OUT=>"\\$degenerate .\\nfoo\n"}],
+ ['backslash-2', {IN=> {".\\foo"=> ''}},
+ {OUT=>"\\$degenerate .\\\\foo\n"}],
+ ['check-1', '--check', {AUX=> {f=> ''}},
+ {IN=> {'f.md5' => "$degenerate f\n"}},
+ {OUT=>"f: OK\n"}],
+
+ # Same as above, but with an added empty line, to provoke --strict.
+ ['ck-strict-1', '--check --strict', {AUX=> {f=> ''}},
+ {IN=> {'f.md5' => "$degenerate f\n\n"}},
+ {OUT=>"f: OK\n"},
+ {ERR=>"md5sum: "
+ . "WARNING: 1 line is improperly formatted\n"},
+ {EXIT=> 1}],
+
+ # As above, but with the invalid line first, to ensure that following
+ # lines are processed in spite of the preceding invalid input line.
+ ['ck-strict-2', '--check --strict', {AUX=> {f=> ''}},
+ {IN=> {'in.md5' => "\n$degenerate f\n"}},
+ {OUT=>"f: OK\n"},
+ {ERR=>"md5sum: "
+ . "WARNING: 1 line is improperly formatted\n"},
+ {EXIT=> 1}],
+ ['check-2', '--check', '--status', {IN=>{'f.md5' => "$degenerate f\n"}},
+ {AUX=> {f=> 'foo'}}, {EXIT=> 1}],
+ ['check-quiet1', '--check', '--quiet', {AUX=> {f=> ''}},
+ {IN=> {'f.md5' => "$degenerate f\n"}},
+ {OUT=>""}],
+ ['check-quiet2', '--check', '--quiet',
+ {IN=>{'f.md5' => "$degenerate f\n"}},
+ {AUX=> {f=> 'foo'}}, {OUT=>"f: FAILED\n"},
+ {ERR=>"md5sum: WARNING: 1 computed"
+ . " checksum did NOT match\n"},
+ {EXIT=> 1}],
+ # Exercise new-after-8.6, easier-to-translate diagnostics.
+ ['check-multifail', '--check',
+ {IN=>{'f.md5' =>
+ "$degenerate f\n"
+ . "$degenerate f\n"
+ . "invalid\n" }},
+ {AUX=> {f=> 'foo'}},
+ {OUT=>"f: FAILED\nf: FAILED\n"},
+ {ERR=>"md5sum: WARNING: 1 line is improperly formatted\n"
+ . "md5sum: WARNING: 2 computed checksums did NOT match\n"},
+ {EXIT=> 1}],
+ # Similar to the above, but use --warn to evoke one more diagnostic.
+ ['check-multifail-warn', '--check', '--warn',
+ {IN=>{'f.md5' =>
+ "$degenerate f\n"
+ . "$degenerate f\n"
+ . "invalid\n" }},
+ {AUX=> {f=> 'foo'}},
+ {OUT=>"f: FAILED\nf: FAILED\n"},
+ {ERR=>"md5sum: f.md5: 3: "
+ . "improperly formatted MD5 checksum line\n"
+ . "md5sum: WARNING: 1 line is improperly formatted\n"
+ . "md5sum: WARNING: 2 computed checksums did NOT match\n"},
+ {EXIT=> 1}],
+ # The sha1sum and md5sum drivers share a lot of code.
+ # Ensure that md5sum does *not* share the part that makes
+ # sha1sum accept BSD format.
+ ['check-bsd', '--check', {IN=> {'f.sha1' => "SHA1 (f) = $degenerate\n"}},
+ {AUX=> {f=> ''}},
+ {ERR=>"md5sum: f.sha1: no properly formatted "
+ . "MD5 checksum lines found\n"},
+ {EXIT=> 1}],
+ ['check-bsd2', '--check', {IN=> {'f.md5' => "MD5 (f) = $degenerate\n"}},
+ {AUX=> {f=> ''}}, {OUT=>"f: OK\n"}],
+ ['check-bsd3', '--check', '--status',
+ {IN=> {'f.md5' => "MD5 (f) = $degenerate\n"}},
+ {AUX=> {f=> 'bar'}}, {EXIT=> 1}],
+ ['check-openssl', '--check', {IN=> {'f.sha1' => "SHA1(f)= $degenerate\n"}},
+ {AUX=> {f=> ''}},
+ {ERR=>"md5sum: f.sha1: no properly formatted "
+ . "MD5 checksum lines found\n"},
+ {EXIT=> 1}],
+ ['check-openssl2', '--check', {IN=> {'f.md5' => "MD5(f)= $degenerate\n"}},
+ {AUX=> {f=> ''}}, {OUT=>"f: OK\n"}],
+ ['check-openssl3', '--check', '--status',
+ {IN=> {'f.md5' => "MD5(f)= $degenerate\n"}},
+ {AUX=> {f=> 'bar'}}, {EXIT=> 1}],
+ ['check-ignore-missing-1', '--check', '--ignore-missing',
+ {AUX=> {f=> ''}},
+ {IN=> {'f.md5' => "$degenerate f\n".
+ "$degenerate f.missing\n"}},
+ {OUT=>"f: OK\n"}],
+ ['check-ignore-missing-2', '--check', '--ignore-missing',
+ {AUX=> {f=> ''}},
+ {IN=> {'f.md5' => "$degenerate f\n".
+ "$degenerate f.missing\n"}},
+ {OUT=>"f: OK\n"}],
+ ['check-ignore-missing-3', '--check', '--quiet', '--ignore-missing',
+ {AUX=> {f=> ''}},
+ {IN=> {'f.md5' => "$degenerate missing/f\n".
+ "$degenerate f\n"}},
+ {OUT=>""}],
+ ['check-ignore-missing-4', '--ignore-missing',
+ {IN=> {f=> ''}},
+ {ERR=>"md5sum: the --ignore-missing option is ".
+ "meaningful only when verifying checksums\n".
+ $try_help},
+ {EXIT=> 1}],
+ ['check-ignore-missing-5', '--check', '--ignore-missing',
+ {AUX=> {f=> ''}},
+ {IN=> {'f.md5' => "$degenerate missing\n"}},
+ {ERR=>
+ "md5sum: f.md5: no file was verified\n"},
+ {EXIT=> 1}],
+ ['bsd-segv', '--check', {IN=> {'z' => "MD5 ("}}, {EXIT=> 1},
+ {ERR=> "$prog: z: no properly formatted MD5 checksum lines found\n"}],
+
+ # Ensure that when there's a NUL byte among the checksum hex digits
+ # we detect the invalid formatting and don't even open the file.
+ # Up to coreutils-6.10, this would report:
+ # h: FAILED
+ # md5sum: WARNING: 1 of 1 computed checksum did NOT match
+ ['nul-in-cksum', '--check', {IN=> {'h'=>("\0"x32)." h\n"}}, {EXIT=> 1},
+ {ERR=> "$prog: h: no properly formatted MD5 checksum lines found\n"}],
+ );
+
+# Insert the '--text' argument for each test.
+my $t;
+foreach $t (@Tests)
+ {
+ splice @$t, 1, 0, '--text' unless @$t[1] =~ /--check/;
+ }
+
+my $save_temps = $ENV{DEBUG};
+my $verbose = $ENV{VERBOSE};
+
+my $fail = run_tests ($prog, $prog, \@Tests, $save_temps, $verbose);
+exit $fail;
diff --git a/tests/misc/mknod b/tests/misc/mknod
deleted file mode 100755
index 12cb0a6..0000000
--- a/tests/misc/mknod
+++ /dev/null
@@ -1,56 +0,0 @@
-#!/bin/sh
-# Ensure that mknod, mkfifo, mkdir -m MODE work with a restrictive umask
-
-# Copyright (C) 2004, 2006 Free Software Foundation, Inc.
-
-# This program is free software; you can redistribute it and/or modify
-# it under the terms of the GNU General Public License as published by
-# the Free Software Foundation; either version 2 of the License, or
-# (at your option) any later version.
-
-# This program is distributed in the hope that it will be useful,
-# but WITHOUT ANY WARRANTY; without even the implied warranty of
-# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
-# GNU General Public License for more details.
-
-# You should have received a copy of the GNU General Public License
-# along with this program; if not, write to the Free Software
-# Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA
-# 02110-1301, USA.
-
-if test "$VERBOSE" = yes; then
- set -x
- mknod --version
-fi
-
-pwd=`pwd`
-t0=`echo "$0"|sed 's,.*/,,'`.tmp; tmp=$t0/$$
-trap 'status=$?; cd "$pwd" && chmod -R u+rwx $t0 && rm -rf $t0 && exit $status' 0
-trap '(exit $?); exit $?' 1 2 13 15
-
-framework_failure=0
-mkdir -p $tmp || framework_failure=1
-cd $tmp || framework_failure=1
-
-if test $framework_failure = 1; then
- echo "$0: failure in testing framework" 1>&2
- (exit 1); exit 1
-fi
-
-fail=0
-
-umask 777
-
-mknod -m 734 f1 p || fail=1
-set _ `ls -dgo f1`; shift; mode=$1
-test $mode = prwx-wxr-- || fail=1
-
-mkfifo -m 734 f2 || fail=1
-set _ `ls -dgo f2`; shift; mode=$1
-test $mode = prwx-wxr-- || fail=1
-
-mkdir -m 734 f3 || fail=1
-set _ `ls -dgo f3`; shift; mode=$1
-test $mode = drwx-wxr-- || test $mode = drwx-wsr-- || fail=1
-
-(exit $fail); exit $fail
diff --git a/tests/misc/mknod.sh b/tests/misc/mknod.sh
new file mode 100755
index 0000000..17ce78d
--- /dev/null
+++ b/tests/misc/mknod.sh
@@ -0,0 +1,39 @@
+#!/bin/sh
+# Ensure that mknod, mkfifo, mkdir -m MODE work with a restrictive umask
+
+# Copyright (C) 2004-2016 Free Software Foundation, Inc.
+
+# This program is free software: you can redistribute it and/or modify
+# it under the terms of the GNU General Public License as published by
+# the Free Software Foundation, either version 3 of the License, or
+# (at your option) any later version.
+
+# This program is distributed in the hope that it will be useful,
+# but WITHOUT ANY WARRANTY; without even the implied warranty of
+# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
+# GNU General Public License for more details.
+
+# You should have received a copy of the GNU General Public License
+# along with this program. If not, see <http://www.gnu.org/licenses/>.
+
+. "${srcdir=.}/tests/init.sh"; path_prepend_ ./src
+print_ver_ mknod
+
+# Ensure fifos are supported
+mkfifo_or_skip_ fifo
+
+umask 777
+
+mknod -m 734 f1 p || fail=1
+mode=$(ls -dgo f1|cut -b-10)
+test $mode = prwx-wxr-- || fail=1
+
+mkfifo -m 734 f2 || fail=1
+mode=$(ls -dgo f2|cut -b-10)
+test $mode = prwx-wxr-- || fail=1
+
+mkdir -m 734 f3 || fail=1
+mode=$(ls -dgo f3|cut -b-10)
+test $mode = drwx-wxr-- || test $mode = drwx-wsr-- || fail=1
+
+Exit $fail
diff --git a/tests/misc/mktemp.pl b/tests/misc/mktemp.pl
new file mode 100755
index 0000000..2442c64
--- /dev/null
+++ b/tests/misc/mktemp.pl
@@ -0,0 +1,200 @@
+#!/usr/bin/perl
+# Test "mktemp".
+
+# Copyright (C) 2007-2016 Free Software Foundation, Inc.
+
+# This program is free software: you can redistribute it and/or modify
+# it under the terms of the GNU General Public License as published by
+# the Free Software Foundation, either version 3 of the License, or
+# (at your option) any later version.
+
+# This program is distributed in the hope that it will be useful,
+# but WITHOUT ANY WARRANTY; without even the implied warranty of
+# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
+# GNU General Public License for more details.
+
+# You should have received a copy of the GNU General Public License
+# along with this program. If not, see <http://www.gnu.org/licenses/>.
+
+use strict;
+
+(my $ME = $0) =~ s|.*/||;
+
+sub check_tmp($$)
+{
+ my ($file, $file_or_dir) = @_;
+
+ my (undef, undef, $mode, undef) = stat $file
+ or die "$ME: failed to stat $file: $!\n";
+ my $required_mode;
+ if ($file_or_dir eq 'D') {
+ -d $file or die "$ME: $file isn't a directory\n";
+ -x $file or die "$ME: $file isn't owner-searchable\n";
+ $required_mode = 0700;
+ } elsif ($file_or_dir eq 'F') {
+ -f $file or die "$ME: $file isn't a regular file\n";
+ $required_mode = 0600;
+ }
+ -r $file or die "$ME: $file isn't owner-readable\n";
+ -w $file or die "$ME: $file isn't owner-writable\n";
+ ($mode & 0777) == $required_mode
+ or die "$ME: $file doesn't have required permissions\n";
+
+ $file_or_dir eq 'D'
+ and do { rmdir $file or die "$ME: failed to rmdir $file: $!\n" };
+ $file_or_dir eq 'F'
+ and do { unlink $file or die "$ME: failed to unlink $file: $!\n" };
+}
+
+# Turn off localization of executable's output.
+@ENV{qw(LANGUAGE LANG LC_ALL)} = ('C') x 3;
+my $prog = 'mktemp';
+my $bad_dir = 'no/such/dir';
+
+my @Tests =
+ (
+ # test-name, [option, option, ...] {OUT=>"expected-output"}
+ #
+ ['too-many', '-q a b',
+ {ERR=>"$prog: too many templates\n"
+ . "Try '$prog --help' for more information.\n"}, {EXIT => 1} ],
+
+ ['too-few-x', '-q foo.XX', {EXIT => 1},
+ {ERR=>"$prog: too few X's in template 'foo.XX'\n"}],
+
+ ['1f', 'bar.XXXX', {OUT => "bar.ZZZZ\n"},
+ {OUT_SUBST => 's,\.....$,.ZZZZ,'},
+ {POST => sub { my ($f) = @_; defined $f or return; chomp $f;
+ check_tmp $f, 'F'; }}
+ ],
+
+ ['2f', '-- -XXXX', {OUT => "-ZZZZ\n"},
+ {OUT_SUBST => 's,-....$,-ZZZZ,'},
+ {POST => sub { my ($f) = @_; defined $f or return; chomp $f;
+ check_tmp $f, 'F'; }}
+ ],
+
+ # Create a temporary directory.
+ ['1d', '-d f.XXXX', {OUT => "f.ZZZZ\n"},
+ {OUT_SUBST => 's,\.....$,.ZZZZ,'},
+ {POST => sub { my ($f) = @_; defined $f or return; chomp $f;
+ check_tmp $f, 'D'; }}
+ ],
+
+ # Use a template consisting solely of X's
+ ['1d-allX', '-d XXXX', {OUT => "ZZZZ\n"},
+ {PRE => sub {mkdir 'XXXX',0755 or die "XXXX: $!\n"}},
+ {OUT_SUBST => 's,^....$,ZZZZ,'},
+ {POST => sub { my ($f) = @_; defined $f or return; chomp $f;
+ check_tmp $f, 'D'; rmdir 'XXXX' or die "rmdir XXXX: $!\n"; }}
+ ],
+
+ # Test -u
+ ['uf', '-u f.XXXX', {OUT => "f.ZZZZ\n"},
+ {OUT_SUBST => 's,\.....$,.ZZZZ,'},
+ {POST => sub { my ($f) = @_; defined $f or return; chomp $f;
+ -e $f and die "dry-run created file"; }}],
+ ['ud', '-d --dry-run d.XXXX', {OUT => "d.ZZZZ\n"},
+ {OUT_SUBST => 's,\.....$,.ZZZZ,'},
+ {POST => sub { my ($f) = @_; defined $f or return; chomp $f;
+ -e $f and die "dry-run created directory"; }}],
+
+ # Test bad templates
+ ['invalid-tl', '-t a/bXXXX',
+ {ERR=>"$prog: invalid template, 'a/bXXXX', "
+ . "contains directory separator\n"}, {EXIT => 1} ],
+
+ ['invalid-t2', '--tmpdir=a /bXXXX',
+ {ERR=>"$prog: invalid template, '/bXXXX'; "
+ . "with --tmpdir, it may not be absolute\n"}, {EXIT => 1} ],
+
+ # Suffix after X.
+ ['suffix1f', 'aXXXXb', {OUT=>"aZZZZb\n"},
+ {OUT_SUBST=>'s,a....b,aZZZZb,'},
+ {POST => sub { my ($f) = @_; defined $f or return; chomp $f;
+ check_tmp $f, 'F'; }}],
+ ['suffix1d', '-d aXXXXb', {OUT=>"aZZZZb\n"},
+ {OUT_SUBST=>'s,a....b,aZZZZb,'},
+ {POST => sub { my ($f) = @_; defined $f or return; chomp $f;
+ check_tmp $f, 'D'; }}],
+ ['suffix1u', '-u aXXXXb', {OUT=>"aZZZZb\n"},
+ {OUT_SUBST=>'s,a....b,aZZZZb,'},
+ {POST => sub { my ($f) = @_; defined $f or return; chomp $f;
+ -e $f and die "dry-run created file"; }}],
+
+ ['suffix2f', 'aXXXXaaXXXXa', {OUT=>"aXXXXaaZZZZa\n"},
+ {OUT_SUBST=>'s,a....a$,aZZZZa,'},
+ {POST => sub { my ($f) = @_; defined $f or return; chomp $f;
+ check_tmp $f, 'F'; }}],
+ ['suffix2d', '-d --suffix= aXXXXaaXXXX', {OUT=>"aXXXXaaZZZZ\n"},
+ {OUT_SUBST=>'s,a....$,aZZZZ,'},
+ {POST => sub { my ($f) = @_; defined $f or return; chomp $f;
+ check_tmp $f, 'D'; }}],
+
+ ['suffix3f', '--suffix=b aXXXX', {OUT=>"aZZZZb\n"},
+ {OUT_SUBST=>'s,a....b,aZZZZb,'},
+ {POST => sub { my ($f) = @_; defined $f or return; chomp $f;
+ check_tmp $f, 'F'; }}],
+
+ ['suffix4f', '--suffix=X aXXXX', {OUT=>"aZZZZX\n"},
+ {OUT_SUBST=>'s,^a....,aZZZZ,'},
+ {POST => sub { my ($f) = @_; defined $f or return; chomp $f;
+ check_tmp $f, 'F'; }}],
+
+ ['suffix5f', '--suffix /b aXXXX', {EXIT=>1},
+ {ERR=>"$prog: invalid suffix '/b', contains directory separator\n"}],
+
+ ['suffix6f', 'aXXXX/b', {EXIT=>1},
+ {ERR=>"$prog: invalid suffix '/b', contains directory separator\n"}],
+
+ ['suffix7f', '--suffix= aXXXXb', {EXIT=>1},
+ {ERR=>"$prog: with --suffix, template 'aXXXXb' must end in X\n"}],
+ ['suffix7d', '-d --suffix=aXXXXb ""', {EXIT=>1},
+ {ERR=>"$prog: with --suffix, template '' must end in X\n"}],
+
+ ['suffix8f', 'aXXXX --suffix=b', {OUT=>"aZZZZb\n"},
+ {OUT_SUBST=>'s,^a....,aZZZZ,'},
+ {POST => sub { my ($f) = @_; defined $f or return; chomp $f;
+ check_tmp $f, 'F'; }}],
+
+ ['suffix9f', 'aXXXX --suffix=b', {EXIT=>1},
+ {ENV=>"POSIXLY_CORRECT=1"},
+ {ERR=>"$prog: too many templates\n"
+ . "Try '$prog --help' for more information.\n"}],
+
+ ['suffix10f', 'aXXb', {EXIT => 1},
+ {ERR=>"$prog: too few X's in template 'aXXb'\n"}],
+ ['suffix10d', '-d --suffix=X aXX', {EXIT => 1},
+ {ERR=>"$prog: too few X's in template 'aXXX'\n"}],
+
+ ['suffix11f', '--suffix=.txt', {OUT=>"./tmp.ZZZZZZZZZZ.txt\n"},
+ {ENV=>"TMPDIR=."},
+ {OUT_SUBST=>'s,\..{10}\.,.ZZZZZZZZZZ.,'},
+ {POST => sub { my ($f) = @_; defined $f or return; chomp $f;
+ check_tmp $f, 'F'; }}],
+
+
+ # Test template with subdirectory
+ ['tmp-w-slash', '--tmpdir=. a/bXXXX',
+ {PRE => sub {mkdir 'a',0755 or die "a: $!\n"}},
+ {OUT_SUBST => 's,b....$,bZZZZ,'},
+ {OUT => "./a/bZZZZ\n"},
+ {POST => sub { my ($f) = @_; defined $f or return; chomp $f;
+ check_tmp $f, 'F'; unlink $f; rmdir 'a' or die "rmdir a: $!\n" }}
+ ],
+
+ ['pipe-bad-tmpdir',
+ {ENV => "TMPDIR=$bad_dir"},
+ {ERR_SUBST => "s,($bad_dir/)[^']+': .*,\$1...,"},
+ {ERR => "$prog: failed to create file via template '$bad_dir/...\n"},
+ {EXIT => 1}],
+ ['pipe-bad-tmpdir-u', '-u', {OUT => "$bad_dir/tmp.ZZZZZZZZZZ\n"},
+ {ENV => "TMPDIR=$bad_dir"},
+ {OUT_SUBST => 's,\..{10}$,.ZZZZZZZZZZ,'}],
+ );
+
+my $save_temps = $ENV{DEBUG};
+my $verbose = $ENV{VERBOSE};
+
+my $fail = run_tests ($ME, $prog, \@Tests, $save_temps, $verbose);
+exit $fail;
diff --git a/tests/misc/nice b/tests/misc/nice
deleted file mode 100755
index 02c10b5..0000000
--- a/tests/misc/nice
+++ /dev/null
@@ -1,86 +0,0 @@
-#! /bin/sh
-# Test "nice".
-
-# Copyright (C) 2002, 2003, 2005, 2006 Free Software Foundation, Inc.
-
-# This program is free software; you can redistribute it and/or modify
-# it under the terms of the GNU General Public License as published by
-# the Free Software Foundation; either version 2 of the License, or
-# (at your option) any later version.
-
-# This program is distributed in the hope that it will be useful,
-# but WITHOUT ANY WARRANTY; without even the implied warranty of
-# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
-# GNU General Public License for more details.
-
-# You should have received a copy of the GNU General Public License
-# along with this program; if not, write to the Free Software
-# Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA
-# 02110-1301, USA.
-
-# This script takes no arguments.
-
-if test -n "$DJDIR"; then
- echo "$0: cannot test nice on DJGPP" >&2
- exit 77
-fi
-
-tests='
-0 empty 10
-1 -1 1
-2 -12 12
-3 -1:-2 2
-4 -n:1 1
-5 -n:1:-2 2
-6 -n:1:-+12 12
-7 -2:-n:1 1
-8 -2:-n:12 12
-9 -+1 1
-10 -+12 12
-11 -+1:-+12 12
-12 -n:+1 1
-13 --1:-2 2
-14 --1:-2:-13 13
-15 --1:-n:2 2
-16 --1:-n:2:-3 3
-17 --1:-n:2:-13 13
-18 -n:-1:-12 12
-19 --1:-12 12
-NA LAST NA
-'
-set $tests
-
-if test "$VERBOSE" = yes; then
- nice --version
- set -x
-fi
-
-# Require that this test be run at `nice' level 0.
-niceness=`nice`
-if test "$niceness" = 0; then
- : ok
-else
- echo "$0: this test must be run at nice level 0" 1>&2
- exit 77
-fi
-
-fail=0
-while :; do
- test_name=$1
- args=$2
- expected_result=$3
- test $args = empty && args=''
- test x$args = xLAST && break
- args=`echo x$args|tr : ' '|sed 's/^x//'`
- if test "$VERBOSE" = yes; then
- #echo "testing \`nice $args nice\` = $expected_result ..."
- echo "test $test_name... " | tr -d '\n'
- fi
- test x`nice $args nice 2> /dev/null` = x$expected_result \
- && ok=ok || ok=FAIL fail=1
- test "$VERBOSE" = yes && echo $ok
- test x`nice $args nice 2> /dev/null` = x$expected_result || fail=1
- shift; shift; shift
-done
-
-exit $fail
diff --git a/tests/misc/nice-fail.sh b/tests/misc/nice-fail.sh
new file mode 100755
index 0000000..92d00be
--- /dev/null
+++ b/tests/misc/nice-fail.sh
@@ -0,0 +1,38 @@
+#!/bin/sh
+# Verify that internal failure in nice gives exact status.
+
+# Copyright (C) 2009-2016 Free Software Foundation, Inc.
+
+# This program is free software: you can redistribute it and/or modify
+# it under the terms of the GNU General Public License as published by
+# the Free Software Foundation, either version 3 of the License, or
+# (at your option) any later version.
+
+# This program is distributed in the hope that it will be useful,
+# but WITHOUT ANY WARRANTY; without even the implied warranty of
+# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
+# GNU General Public License for more details.
+
+# You should have received a copy of the GNU General Public License
+# along with this program. If not, see <http://www.gnu.org/licenses/>.
+
+
+. "${srcdir=.}/tests/init.sh"; path_prepend_ ./src
+print_ver_ nice
+
+
+# These tests verify exact status of internal failure.
+nice -n 1 # missing command
+test $? = 125 || fail=1
+nice --- # unknown option
+test $? = 125 || fail=1
+nice -n 1a # invalid adjustment
+test $? = 125 || fail=1
+nice sh -c 'exit 2' # exit status propagation
+test $? = 2 || fail=2
+nice . # invalid command
+test $? = 126 || fail=1
+nice no_such # no such command
+test $? = 127 || fail=1
+
+Exit $fail
diff --git a/tests/misc/nice.sh b/tests/misc/nice.sh
new file mode 100755
index 0000000..85523eb
--- /dev/null
+++ b/tests/misc/nice.sh
@@ -0,0 +1,94 @@
+#!/bin/sh
+# Test "nice".
+
+# Copyright (C) 2002-2016 Free Software Foundation, Inc.
+
+# This program is free software: you can redistribute it and/or modify
+# it under the terms of the GNU General Public License as published by
+# the Free Software Foundation, either version 3 of the License, or
+# (at your option) any later version.
+
+# This program is distributed in the hope that it will be useful,
+# but WITHOUT ANY WARRANTY; without even the implied warranty of
+# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
+# GNU General Public License for more details.
+
+# You should have received a copy of the GNU General Public License
+# along with this program. If not, see <http://www.gnu.org/licenses/>.
+
+. "${srcdir=.}/tests/init.sh"; path_prepend_ ./src
+print_ver_ nice
+
+tests='
+0 empty 10
+1 -1 1
+2 -12 12
+3 -1:-2 2
+4 -n:1 1
+5 -n:1:-2 2
+6 -n:1:-+12 12
+7 -2:-n:1 1
+8 -2:-n:12 12
+9 -+1 1
+10 -+12 12
+11 -+1:-+12 12
+12 -n:+1 1
+13 --1:-2 2
+14 --1:-2:-13 13
+15 --1:-n:2 2
+16 --1:-n:2:-3 3
+17 --1:-n:2:-13 13
+18 -n:-1:-12 12
+19 --1:-12 12
+NA LAST NA
+'
+set $tests
+
+# Require that this test be run at 'nice' level 0.
+niceness=$(nice)
+if test "$niceness" = 0; then
+ : ok
+else
+ skip_ "this test must be run at nice level 0"
+fi
+
+while :; do
+ test_name=$1
+ args=$2
+ expected_result=$3
+ test $args = empty && args=''
+ test x$args = xLAST && break
+ args=$(echo x$args|tr : ' '|sed 's/^x//')
+ if test "$VERBOSE" = yes; then
+ #echo "testing \$(nice $args nice\) = $expected_result ..."
+ echo "test $test_name... " | tr -d '\n'
+ fi
+ test x$(nice $args nice 2> /dev/null) = x$expected_result \
+ && ok=ok || ok=FAIL fail=1
+ test "$VERBOSE" = yes && echo $ok
+ shift; shift; shift
+done
+
+# Test negative niceness - command must be run whether or not change happens.
+if test x$(nice -n -1 nice 2> /dev/null) = x0 ; then
+ # unprivileged user - warn about failure to change
+ nice -n -1 true 2> err || fail=1
+ compare /dev/null err && fail=1
+ mv err exp || framework_failure_
+ nice --1 true 2> err || fail=1
+ compare exp err || fail=1
+ # Failure to write advisory message is fatal. Buggy through coreutils 8.0.
+ if test -w /dev/full && test -c /dev/full; then
+ nice -n -1 nice > out 2> /dev/full
+ test $? = 125 || fail=1
+ compare /dev/null out || fail=1
+ fi
+else
+ # superuser - change succeeds
+ nice -n -1 nice 2> err || fail=1
+ compare /dev/null err || fail=1
+ test x$(nice -n -1 nice) = x-1 || fail=1
+ test x$(nice --1 nice) = x-1 || fail=1
+fi
+
+Exit $fail
diff --git a/tests/misc/nl b/tests/misc/nl
deleted file mode 100755
index 72d2c21..0000000
--- a/tests/misc/nl
+++ /dev/null
@@ -1,63 +0,0 @@
-#!/bin/sh
-# exercise nl functionality
-
-# Copyright (C) 2002, 2003, 2006 Free Software Foundation, Inc.
-
-# This program is free software; you can redistribute it and/or modify
-# it under the terms of the GNU General Public License as published by
-# the Free Software Foundation; either version 2 of the License, or
-# (at your option) any later version.
-
-# This program is distributed in the hope that it will be useful,
-# but WITHOUT ANY WARRANTY; without even the implied warranty of
-# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
-# GNU General Public License for more details.
-
-# You should have received a copy of the GNU General Public License
-# along with this program; if not, write to the Free Software
-# Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA
-# 02110-1301, USA.
-
-if test "$VERBOSE" = yes; then
- set -x
- nl --version
-fi
-
-pwd=`pwd`
-t0=`echo "$0"|sed 's,.*/,,'`.tmp; tmp=$t0/$$
-trap 'status=$?; cd "$pwd" && chmod -R u+rwx $t0 && rm -rf $t0 && exit $status' 0
-trap '(exit $?); exit $?' 1 2 13 15
-
-framework_failure=0
-mkdir -p $tmp || framework_failure=1
-cd $tmp || framework_failure=1
-
-if test $framework_failure = 1; then
- echo "$0: failure in testing framework" 1>&2
- (exit 1); exit 1
-fi
-
-fail=0
-
-echo a | nl > out || fail=1
-echo b | nl -s%n >> out || fail=1
-echo c | nl -n ln >> out || fail=1
-echo d | nl -n rn >> out || fail=1
-echo e | nl -n rz >> out || fail=1
-echo === >> out
-printf 'a\n\n' | nl > t || fail=1; cat -A t >> out
-cat <<\EOF > exp
- 1 a
- 1%nb
-1 c
- 1 d
-000001 e
-===
- 1^Ia$
- $
-EOF
-
-cmp out exp || fail=1
-test $fail = 1 && diff out exp 2> /dev/null
-
-(exit $fail); exit $fail
diff --git a/tests/misc/nl.sh b/tests/misc/nl.sh
new file mode 100755
index 0000000..e111d7a
--- /dev/null
+++ b/tests/misc/nl.sh
@@ -0,0 +1,43 @@
+#!/bin/sh
+# exercise nl functionality
+
+# Copyright (C) 2002-2016 Free Software Foundation, Inc.
+
+# This program is free software: you can redistribute it and/or modify
+# it under the terms of the GNU General Public License as published by
+# the Free Software Foundation, either version 3 of the License, or
+# (at your option) any later version.
+
+# This program is distributed in the hope that it will be useful,
+# but WITHOUT ANY WARRANTY; without even the implied warranty of
+# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
+# GNU General Public License for more details.
+
+# You should have received a copy of the GNU General Public License
+# along with this program. If not, see <http://www.gnu.org/licenses/>.
+
+. "${srcdir=.}/tests/init.sh"; path_prepend_ ./src
+print_ver_ nl
+
+
+echo a | nl > out || fail=1
+echo b | nl -s%n >> out || fail=1
+echo c | nl -n ln >> out || fail=1
+echo d | nl -n rn >> out || fail=1
+echo e | nl -n rz >> out || fail=1
+echo === >> out
+printf 'a\n\n' | nl > t || fail=1; cat -A t >> out
+cat <<\EOF > exp
+ 1 a
+ 1%nb
+1 c
+ 1 d
+000001 e
+===
+ 1^Ia$
+ $
+EOF
+
+compare exp out || fail=1
+
+Exit $fail
diff --git a/tests/misc/nohup b/tests/misc/nohup
deleted file mode 100755
index 6166473..0000000
--- a/tests/misc/nohup
+++ /dev/null
@@ -1,128 +0,0 @@
-#!/bin/sh
-# test nohup
-
-# Copyright (C) 2003, 2006 Free Software Foundation, Inc.
-
-# This program is free software; you can redistribute it and/or modify
-# it under the terms of the GNU General Public License as published by
-# the Free Software Foundation; either version 2 of the License, or
-# (at your option) any later version.
-
-# This program is distributed in the hope that it will be useful,
-# but WITHOUT ANY WARRANTY; without even the implied warranty of
-# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
-# GNU General Public License for more details.
-
-# You should have received a copy of the GNU General Public License
-# along with this program; if not, write to the Free Software
-# Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA
-# 02110-1301, USA.
-
-if test "$VERBOSE" = yes; then
- set -x
- nohup --version
-fi
-
-. $srcdir/../envvar-check
-. $srcdir/../lang-default
-
-pwd=`pwd`
-t0=`echo "$0"|sed 's,.*/,,'`.tmp; tmp=$t0/$$
-trap 'status=$?; cd "$pwd" && chmod -R u+rwx $t0 && rm -rf $t0 && exit $status' 0
-trap '(exit $?); exit $?' 1 2 13 15
-
-framework_failure=0
-mkdir -p $tmp || framework_failure=1
-cd $tmp || framework_failure=1
-
-if test $framework_failure = 1; then
- echo "$0: failure in testing framework" 1>&2
- (exit 1); exit 1
-fi
-
-fail=0
-
-nohup sh -c 'echo stdout; echo stderr 1>&2' 2>err || fail=1
-
-# Be careful. The results of the above nohup command
-# change depending on whether stdin and stdout are redirected.
-if test -t 1; then
- test "`cat nohup.out`" = stdout || fail=1
- if test -t 0; then
- echo 'nohup: ignoring input and appending output to `nohup.out'\'
- else
- echo 'nohup: appending output to `nohup.out'\'
- fi >exp || fail=1
-else
- # Here it should not even exist.
- test -f nohup.out && fail=1
- if test -t 0; then
- echo 'nohup: ignoring input' >exp
- else
- rm -f exp
- fi || fail=1
-fi
-echo 'stderr' >> exp || fail=1
-
-cmp exp err || fail=1
-test $fail = 1 && diff exp err 2> /dev/null
-rm -f nohup.out err exp
-# ----------------------
-
-# Be careful. The results of the following nohup command
-# change depending on whether stderr is redirected.
-nohup sh -c 'echo stdout; echo stderr 1>&2' >out || fail=1
-if test -t 2; then
- test "`cat out|tr '\n' -`" = stdout-stderr- || fail=1
-else
- test "`cat out|tr '\n' -`" = stdout- || fail=1
-fi
-# It must *not* exist.
-test -f nohup.out && fail=1
-rm -f nohup.out err
-# ----------------------
-
-nohup no-such-command 2> err
-errno=$?
-if test -t 1; then
- test $errno = 127 || fail=1
- # It must exist.
- test -f nohup.out || fail=1
- # It must be empty.
- test -s nohup.out && fail=1
-fi
-
-cat <<\EOF > exp || fail=1
-nohup: appending output to `nohup.out'
-nohup: cannot run command `no-such-command': No such file or directory
-EOF
-# Disable these comparisons. Too much variation in 2nd line.
-# cmp exp err || fail=1
-# test $fail = 1 && diff exp err 2> /dev/null
-rm -f nohup.out err exp
-# ----------------------
-
-touch k; chmod 0 k
-nohup ./k 2> err
-errno=$?
-test $errno = 126 || fail=1
-if test -t 1; then
- # It must exist.
- test -f nohup.out || fail=1
- # It must be empty.
- test -s nohup.out && fail=1
-fi
-
-cat <<\EOF > exp || fail=1
-nohup: appending output to `nohup.out'
-nohup: cannot run command `./k': Permission denied
-EOF
-# Disable these comparisons. Too much variation in 2nd line.
-# cmp exp err || fail=1
-# test $fail = 1 && diff exp err 2> /dev/null
-
-# Make sure it fails with exit status of 127 when given too few arguments.
-nohup >/dev/null 2>&1
-test $? = 127 || fail=1
-
-(exit $fail); exit $fail
diff --git a/tests/misc/nohup.sh b/tests/misc/nohup.sh
new file mode 100755
index 0000000..ad60185
--- /dev/null
+++ b/tests/misc/nohup.sh
@@ -0,0 +1,126 @@
+#!/bin/sh
+# test nohup
+
+# Copyright (C) 2003-2016 Free Software Foundation, Inc.
+
+# This program is free software: you can redistribute it and/or modify
+# it under the terms of the GNU General Public License as published by
+# the Free Software Foundation, either version 3 of the License, or
+# (at your option) any later version.
+
+# This program is distributed in the hope that it will be useful,
+# but WITHOUT ANY WARRANTY; without even the implied warranty of
+# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
+# GNU General Public License for more details.
+
+# You should have received a copy of the GNU General Public License
+# along with this program. If not, see <http://www.gnu.org/licenses/>.
+
+. "${srcdir=.}/tests/init.sh"; path_prepend_ ./src
+print_ver_ nohup
+
+
+nohup sh -c 'echo stdout; echo stderr 1>&2' 2>err || fail=1
+
+# Be careful. The results of the above nohup command
+# change depending on whether stdin and stdout are redirected.
+if test -t 1; then
+ test "$(cat nohup.out)" = stdout || fail=1
+ if test -t 0; then
+ echo 'nohup: ignoring input and appending output to 'nohup.out'\'
+ else
+ echo 'nohup: appending output to 'nohup.out'\'
+ fi >exp || fail=1
+else
+ # Here it should not even exist.
+ test -f nohup.out && fail=1
+ if test -t 0; then
+ echo 'nohup: ignoring input' >exp
+ else
+ rm -f exp
+ fi || fail=1
+fi
+echo 'stderr' >> exp || fail=1
+
+compare exp err || fail=1
+rm -f nohup.out err exp
+# ----------------------
+
+# Be careful. The results of the following nohup command
+# change depending on whether stderr is redirected.
+nohup sh -c 'echo stdout; echo stderr 1>&2' >out || fail=1
+if test -t 2; then
+ test "$(cat out|tr '\n' -)" = stdout-stderr- || fail=1
+else
+ test "$(cat out|tr '\n' -)" = stdout- || fail=1
+fi
+# It must *not* exist.
+test -f nohup.out && fail=1
+rm -f nohup.out err
+# ----------------------
+
+# Bug present through coreutils 8.0: failure to print advisory message
+# to stderr must be fatal. Requires stdout to be terminal.
+if test -w /dev/full && test -c /dev/full; then
+(
+ # POSIX shells immediately exit the subshell on exec error.
+ # So check we can write to /dev/tty before the exec, which
+ # isn't possible if we've no controlling tty for example.
+ test -c /dev/tty && >/dev/tty || exit 0
+
+ exec >/dev/tty
+ test -t 1 || exit 0
+ nohup echo hi 2> /dev/full
+ test $? = 125 || fail=1
+ test -f nohup.out || fail=1
+ compare /dev/null nohup.out || fail=1
+ rm -f nohup.out
+ exit $fail
+) || fail=1
+fi
+
+nohup no-such-command 2> err
+errno=$?
+if test -t 1; then
+ test $errno = 127 || fail=1
+ # It must exist.
+ test -f nohup.out || fail=1
+ # It must be empty.
+ compare /dev/null nohup.out || fail=1
+fi
+
+cat <<\EOF > exp || fail=1
+nohup: appending output to 'nohup.out'
+nohup: cannot run command 'no-such-command': No such file or directory
+EOF
+# Disable these comparisons. Too much variation in 2nd line.
+# compare exp err || fail=1
+rm -f nohup.out err exp
+# ----------------------
+
+touch k; chmod 0 k
+nohup ./k 2> err
+errno=$?
+test $errno = 126 || fail=1
+if test -t 1; then
+ # It must exist.
+ test -f nohup.out || fail=1
+ # It must be empty.
+ compare /dev/null nohup.out || fail=1
+fi
+
+cat <<\EOF > exp || fail=1
+nohup: appending output to 'nohup.out'
+nohup: cannot run command './k': Permission denied
+EOF
+# Disable these comparisons. Too much variation in 2nd line.
+# compare exp err || fail=1
+
+# Make sure it fails with exit status of 125 when given too few arguments,
+# except that POSIX requires 127 in this case.
+nohup >/dev/null 2>&1
+test $? = 125 || fail=1
+POSIXLY_CORRECT=1 nohup >/dev/null 2>&1
+test $? = 127 || fail=1
+
+Exit $fail
diff --git a/tests/misc/nproc-avail.sh b/tests/misc/nproc-avail.sh
new file mode 100755
index 0000000..b5d19c4
--- /dev/null
+++ b/tests/misc/nproc-avail.sh
@@ -0,0 +1,27 @@
+#!/bin/sh
+# Ensure that "nproc" is less than or equal to "nproc --all".
+
+# Copyright (C) 2009-2016 Free Software Foundation, Inc.
+
+# This program is free software: you can redistribute it and/or modify
+# it under the terms of the GNU General Public License as published by
+# the Free Software Foundation, either version 3 of the License, or
+# (at your option) any later version.
+
+# This program is distributed in the hope that it will be useful,
+# but WITHOUT ANY WARRANTY; without even the implied warranty of
+# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
+# GNU General Public License for more details.
+
+# You should have received a copy of the GNU General Public License
+# along with this program. If not, see <http://www.gnu.org/licenses/>.
+
+. "${srcdir=.}/tests/init.sh"; path_prepend_ ./src
+print_ver_ nproc
+
+all=$(nproc --all)
+available=$(OMP_NUM_THREADS= nproc)
+
+test $available -le $all || fail=1
+
+Exit $fail
diff --git a/tests/misc/nproc-positive.sh b/tests/misc/nproc-positive.sh
new file mode 100755
index 0000000..dc7e603
--- /dev/null
+++ b/tests/misc/nproc-positive.sh
@@ -0,0 +1,44 @@
+#!/bin/sh
+# Ensure that nproc prints a number > 0
+
+# Copyright (C) 2009-2016 Free Software Foundation, Inc.
+
+# This program is free software: you can redistribute it and/or modify
+# it under the terms of the GNU General Public License as published by
+# the Free Software Foundation, either version 3 of the License, or
+# (at your option) any later version.
+
+# This program is distributed in the hope that it will be useful,
+# but WITHOUT ANY WARRANTY; without even the implied warranty of
+# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
+# GNU General Public License for more details.
+
+# You should have received a copy of the GNU General Public License
+# along with this program. If not, see <http://www.gnu.org/licenses/>.
+
+. "${srcdir=.}/tests/init.sh"; path_prepend_ ./src
+print_ver_ nproc
+
+for mode in --all ''; do
+ procs=$(nproc $mode)
+ test "$procs" -gt 0 || fail=1
+done
+
+for i in -1000 0 1 1000; do
+ procs=$(OMP_NUM_THREADS=$i nproc)
+ test "$procs" -gt 0 || fail=1
+done
+
+for i in 0 ' 1' 1000; do
+ procs=$(nproc --ignore="$i")
+ test "$procs" -gt 0 || fail=1
+done
+
+for i in -1 N; do
+ returns_ 1 nproc --ignore=$i || fail=1
+done
+
+procs=$(OMP_NUM_THREADS=42 nproc --ignore=40)
+test "$procs" -eq 2 || fail=1
+
+Exit $fail
diff --git a/tests/misc/numfmt.pl b/tests/misc/numfmt.pl
new file mode 100755
index 0000000..3f2d6cc
--- /dev/null
+++ b/tests/misc/numfmt.pl
@@ -0,0 +1,1116 @@
+#!/usr/bin/perl
+# Basic tests for "numfmt".
+
+# Copyright (C) 2012-2016 Free Software Foundation, Inc.
+
+# This program is free software: you can redistribute it and/or modify
+# it under the terms of the GNU General Public License as published by
+# the Free Software Foundation, either version 3 of the License, or
+# (at your option) any later version.
+
+# This program is distributed in the hope that it will be useful,
+# but WITHOUT ANY WARRANTY; without even the implied warranty of
+# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
+# GNU General Public License for more details.
+
+# You should have received a copy of the GNU General Public License
+# along with this program. If not, see <http://www.gnu.org/licenses/>.
+
+use strict;
+
+(my $program_name = $0) =~ s|.*/||;
+my $prog = 'numfmt';
+
+my $limits = getlimits ();
+
+# TODO: add localization tests with "grouping"
+# Turn off localization of executable's output.
+@ENV{qw(LANGUAGE LANG LC_ALL)} = ('C') x 3;
+
+my $locale = $ENV{LOCALE_FR_UTF8};
+! defined $locale || $locale eq 'none'
+ and $locale = 'C';
+
+my $try = "Try '$prog --help' for more information.\n";
+
+my @Tests =
+ (
+ ['1', '1234', {OUT => "1234"}],
+ ['2', '--from=si 1K', {OUT => "1000"}],
+ ['3', '--from=iec 1K', {OUT => "1024"}],
+ ['4', '--from=auto 1K', {OUT => "1000"}],
+ ['5', '--from=auto 1Ki', {OUT => "1024"}],
+ ['5.1', '--from=iec-i 1Ki', {OUT => "1024"}],
+
+ ['6', {IN_PIPE => "1234\n"}, {OUT => "1234"}],
+ ['7', '--from=si', {IN_PIPE => "2K\n"}, {OUT => "2000"}],
+ ['7a', '--invalid=fail', {IN_PIPE => "no_NL"}, {OUT => "no_NL"},
+ {ERR => "$prog: invalid number: 'no_NL'\n"},
+ {EXIT => '2'}],
+
+ ['8', '--to=si 2000', {OUT => "2.0K"}],
+ ['9', '--to=si 2001', {OUT => "2.1K"}],
+ ['10', '--to=si 1999', {OUT => "2.0K"}],
+ ['11', '--to=si --round=down 2001', {OUT => "2.0K"}],
+ ['12', '--to=si --round=down 1999', {OUT => "1.9K"}],
+ ['13', '--to=si --round=up 1901', {OUT => "2.0K"}],
+ ['14', '--to=si --round=down 1901', {OUT => "1.9K"}],
+ ['15', '--to=si --round=nearest 1901', {OUT => "1.9K"}],
+ ['16', '--to=si --round=nearest 1945', {OUT => "1.9K"}],
+ ['17', '--to=si --round=nearest 1955', {OUT => "2.0K"}],
+
+ ['18', '--to=iec 2048', {OUT => "2.0K"}],
+ ['19', '--to=iec 2049', {OUT => "2.1K"}],
+ ['20', '--to=iec 2047', {OUT => "2.0K"}],
+ ['21', '--to=iec --round=down 2049', {OUT => "2.0K"}],
+ ['22', '--to=iec --round=down 2047', {OUT => "1.9K"}],
+ ['23', '--to=iec --round=up 2040', {OUT => "2.0K"}],
+ ['24', '--to=iec --round=down 2040', {OUT => "1.9K"}],
+ ['25', '--to=iec --round=nearest 1996', {OUT => "1.9K"}],
+ ['26', '--to=iec --round=nearest 1997', {OUT => "2.0K"}],
+ ['27', '--to=iec-i 2048', {OUT => "2.0Ki"}],
+
+ ['neg-1', '-- -1234', {OUT => "-1234"}],
+ ['neg-2', '--padding=5 -- -1234', {OUT => "-1234"}],
+ ['neg-3', '--padding=6 -- -1234', {OUT => " -1234"}],
+ ['neg-4', '--to=iec -- 9100 -9100', {OUT => "8.9K\n-8.9K"}],
+ ['neg-5', '-- -0.1', {OUT => "-0.1"}],
+ ['neg-6', '-- -0', {OUT => "0"}],
+ ['neg-7', '-- -0.-1',
+ {ERR => "$prog: invalid number: '-0.-1'\n"},
+ {EXIT => '2'}],
+
+ ['float-1', '1.1', {OUT => "1.1"}],
+ ['float-2', '1.22', {OUT => "1.22"}],
+ ['float-3', '1.22.',
+ {ERR => "$prog: invalid suffix in input: '1.22.'\n"},
+ {EXIT => '2'}],
+
+ ['unit-1', '--from-unit=512 4', {OUT => "2048"}],
+ ['unit-2', '--to-unit=512 2048', {OUT => "4"}],
+ ['unit-3', '--from-unit=512 --from=si 4M', {OUT => "2048000000"}],
+ ['unit-4', '--from-unit=512 --from=iec --to=iec 4M', {OUT => "2.0G"}],
+ ['unit-5', '--from-unit=AA --from=iec --to=iec 4M',
+ {ERR => "$prog: invalid unit size: 'AA'\n"},
+ {EXIT => '1'}],
+ ['unit-6', '--from-unit=54W --from=iec --to=iec 4M',
+ {ERR => "$prog: invalid unit size: '54W'\n"},
+ {EXIT => '1'}],
+ ['unit-7', '--from-unit=K 30', {OUT=>"30000"}],
+ ['unit-7.1', '--from-unit=Ki 30', {OUT=>"30720"}],
+ ['unit-7.2', '--from-unit=i 0',
+ {ERR => "$prog: invalid unit size: 'i'\n"},
+ {EXIT => '1'}],
+ ['unit-7.3', '--from-unit=1i 0',
+ {ERR => "$prog: invalid unit size: '1i'\n"},
+ {EXIT => '1'}],
+ ['unit-8', '--from-unit='.$limits->{UINTMAX_OFLOW}.' --to=iec 30',
+ {ERR => "$prog: invalid unit size: '$limits->{UINTMAX_OFLOW}'\n"},
+ {EXIT => '1'}],
+ ['unit-9', '--from-unit=0 1',
+ {ERR => "$prog: invalid unit size: '0'\n"},
+ {EXIT => '1'}],
+ ['unit-10', '--to-unit=0 1',
+ {ERR => "$prog: invalid unit size: '0'\n"},
+ {EXIT => '1'}],
+
+ # Test Suffix logic
+ ['suf-1', '4000', {OUT=>'4000'}],
+ ['suf-2', '4Q',
+ {ERR => "$prog: invalid suffix in input: '4Q'\n"},
+ {EXIT => '2'}],
+ ['suf-2.1', '4M',
+ {ERR => "$prog: rejecting suffix " .
+ "in input: '4M' (consider using --from)\n"},
+ {EXIT => '2'}],
+ ['suf-3', '--from=si 4M', {OUT=>'4000000'}],
+ ['suf-4', '--from=si 4Q',
+ {ERR => "$prog: invalid suffix in input: '4Q'\n"},
+ {EXIT => '2'}],
+ ['suf-5', '--from=si 4MQ',
+ {ERR => "$prog: invalid suffix in input '4MQ': 'Q'\n"},
+ {EXIT => '2'}],
+
+ ['suf-6', '--from=iec 4M', {OUT=>'4194304'}],
+ ['suf-7', '--from=auto 4M', {OUT=>'4000000'}],
+ ['suf-8', '--from=auto 4Mi', {OUT=>'4194304'}],
+ ['suf-9', '--from=auto 4MiQ',
+ {ERR => "$prog: invalid suffix in input '4MiQ': 'Q'\n"},
+ {EXIT => '2'}],
+ ['suf-10', '--from=auto 4QiQ',
+ {ERR => "$prog: invalid suffix in input: '4QiQ'\n"},
+ {EXIT => '2'}],
+
+ # characters after a white space are OK - printed as-is
+ ['suf-11', '"4 M"', {OUT=>'4 M'}],
+
+ # Custom suffix
+ ['suf-12', '--suffix=Foo 70Foo', {OUT=>'70Foo'}],
+ ['suf-13', '--suffix=Foo 70', {OUT=>'70Foo'}],
+ ['suf-14', '--suffix=Foo --from=si 70K', {OUT=>'70000Foo'}],
+ ['suf-15', '--suffix=Foo --from=si 70KFoo', {OUT=>'70000Foo'}],
+ ['suf-16', '--suffix=Foo --to=si 7000Foo', {OUT=>'7.0KFoo'}],
+ ['suf-17', '--suffix=Foo --to=si 7000Bar',
+ {ERR => "$prog: invalid suffix in input: '7000Bar'\n"},
+ {EXIT => '2'}],
+ ['suf-18', '--suffix=Foo --to=si 7000FooF',
+ {ERR => "$prog: invalid suffix in input: '7000FooF'\n"},
+ {EXIT => '2'}],
+ # space(s) between number and suffix. Note only field 1 is used
+ # by default so specify the NUL delimiter to consider the whole "line".
+ ['suf-19', "-d '' --from=si '4.0 K'", {OUT => "4000"}],
+
+ ## GROUPING
+
+ # "C" locale - no grouping (locale-specific tests, below)
+ ['grp-1', '--from=si --grouping 7M', {OUT=>'7000000'}],
+ ['grp-2', '--from=si --to=si --grouping 7M',
+ {ERR => "$prog: grouping cannot be combined with --to\n"},
+ {EXIT => '1'}],
+
+
+ ## Padding
+ ['pad-1', '--padding=10 5', {OUT=>' 5'}],
+ ['pad-2', '--padding=-10 5', {OUT=>'5 '}],
+ ['pad-3', '--padding=A 5',
+ {ERR => "$prog: invalid padding value 'A'\n"},
+ {EXIT => '1'}],
+ ['pad-3.1', '--padding=0 5',
+ {ERR => "$prog: invalid padding value '0'\n"},
+ {EXIT => '1'}],
+ ['pad-4', '--padding=10 --to=si 50000', {OUT=>' 50K'}],
+ ['pad-5', '--padding=-10 --to=si 50000', {OUT=>'50K '}],
+
+ # padding too narrow
+ ['pad-6', '--padding=2 --to=si 1000', {OUT=>'1.0K'}],
+
+
+ # Padding + suffix
+ ['pad-7', '--padding=10 --suffix=foo --to=si 50000',
+ {OUT=>' 50Kfoo'}],
+ ['pad-8', '--padding=-10 --suffix=foo --to=si 50000',
+ {OUT=>'50Kfoo '}],
+
+
+ # Delimiters
+ ['delim-1', '--delimiter=: --from=auto 40M:', {OUT=>'40000000:'}],
+ ['delim-2', '--delimiter="" --from=auto "40 M"',{OUT=>'40000000'}],
+ ['delim-3', '--delimiter=" " --from=auto "40M Foo"',{OUT=>'40000000 Foo'}],
+ ['delim-4', '--delimiter=: --from=auto 40M:60M', {OUT=>'40000000:60M'}],
+ ['delim-5', '-d: --field=2 --from=auto :40M:60M', {OUT=>':40000000:60M'}],
+ ['delim-6', '-d: --field 3 --from=auto 40M:60M', {OUT=>"40M:60M"}],
+ ['delim-err-1', '-d,, --to=si 1', {EXIT=>1},
+ {ERR => "$prog: the delimiter must be a single character\n"}],
+
+ #Fields
+ ['field-1', '--field A',
+ {ERR => "$prog: invalid field value 'A'\n$try"},
+ {EXIT => '1'}],
+ ['field-2', '--field 2 --from=auto "Hello 40M World 90G"',
+ {OUT=>'Hello 40000000 World 90G'}],
+ ['field-3', '--field 3 --from=auto "Hello 40M World 90G"',
+ {OUT=>"Hello 40M "},
+ {ERR=>"$prog: invalid number: 'World'\n"},
+ {EXIT => 2},],
+ # Last field - no text after number
+ ['field-4', '--field 4 --from=auto "Hello 40M World 90G"',
+ {OUT=>"Hello 40M World 90000000000"}],
+ # Last field - a delimiter after the number
+ ['field-5', '--field 4 --from=auto "Hello 40M World 90G "',
+ {OUT=>"Hello 40M World 90000000000 "}],
+
+ # Mix Fields + Delimiters
+ ['field-6', '--delimiter=: --field 2 --from=auto "Hello:40M:World:90G"',
+ {OUT=>"Hello:40000000:World:90G"}],
+
+ # not enough fields
+ ['field-8', '--field 3 --to=si "Hello World"', {OUT=>"Hello World"}],
+
+ # Multiple fields
+ ['field-range-1', '--field 2,4 --to=si "1000 2000 3000 4000 5000"',
+ {OUT=>"1000 2.0K 3000 4.0K 5000"}],
+
+ ['field-range-2', '--field 2-4 --to=si "1000 2000 3000 4000 5000"',
+ {OUT=>"1000 2.0K 3.0K 4.0K 5000"}],
+
+ ['field-range-3', '--field 1,2,3-5 --to=si "1000 2000 3000 4000 5000"',
+ {OUT=>"1.0K 2.0K 3.0K 4.0K 5.0K"}],
+
+ ['field-range-4', '--field 1-5 --to=si "1000 2000 3000 4000 5000"',
+ {OUT=>"1.0K 2.0K 3.0K 4.0K 5.0K"}],
+
+ ['field-range-5', '--field 1-3,5 --to=si "1000 2000 3000 4000 5000"',
+ {OUT=>"1.0K 2.0K 3.0K 4000 5.0K"}],
+
+ ['field-range-6', '--field 3- --to=si "1000 2000 3000 4000 5000"',
+ {OUT=>"1000 2000 3.0K 4.0K 5.0K"}],
+
+ ['field-range-7', '--field -3 --to=si "1000 2000 3000 4000 5000"',
+ {OUT=>"1.0K 2.0K 3.0K 4000 5000"}],
+
+ ['field-range-8', '--field 1-2,4-5 --to=si "1000 2000 3000 4000 5000"',
+ {OUT=>"1.0K 2.0K 3000 4.0K 5.0K"}],
+ ['field-range-9', '--field 4-5,1-2 --to=si "1000 2000 3000 4000 5000"',
+ {OUT=>"1.0K 2.0K 3000 4.0K 5.0K"}],
+
+ ['field-range-10','--field 1-3,2-4 --to=si "1000 2000 3000 4000 5000"',
+ {OUT=>"1.0K 2.0K 3.0K 4.0K 5000"}],
+ ['field-range-11','--field 2-4,1-3 --to=si "1000 2000 3000 4000 5000"',
+ {OUT=>"1.0K 2.0K 3.0K 4.0K 5000"}],
+
+ ['field-range-12','--field 1-1,3-3 --to=si "1000 2000 3000 4000 5000"',
+ {OUT=>"1.0K 2000 3.0K 4000 5000"}],
+
+ ['field-range-13', '--field 1,-2 --to=si "1000 2000 3000"',
+ {OUT=>"1.0K 2.0K 3000"}],
+
+ ['field-range-14', '--field -2,4- --to=si "1000 2000 3000 4000 5000"',
+ {OUT=>"1.0K 2.0K 3000 4.0K 5.0K"}],
+ ['field-range-15', '--field -2,-4 --to=si "1000 2000 3000 4000 5000"',
+ {OUT=>"1.0K 2.0K 3.0K 4.0K 5000"}],
+ ['field-range-16', '--field 2-,4- --to=si "1000 2000 3000 4000 5000"',
+ {OUT=>"1000 2.0K 3.0K 4.0K 5.0K"}],
+ ['field-range-17', '--field 4-,2- --to=si "1000 2000 3000 4000 5000"',
+ {OUT=>"1000 2.0K 3.0K 4.0K 5.0K"}],
+
+ # white space are valid field separators
+ # (undocumented? but works in cut as well).
+ ['field-range-18', '--field "1,2 4" --to=si "1000 2000 3000 4000 5000"',
+ {OUT=>"1.0K 2.0K 3000 4.0K 5000"}],
+
+ # Unlike 'cut', a lone '-' means 'all fields', even as part of a list
+ # of fields.
+ ['field-range-19','--field 3,- --to=si "1000 2000 3000 4000 5000"',
+ {OUT=>"1.0K 2.0K 3.0K 4.0K 5.0K"}],
+
+ ['all-fields-1', '--field=- --to=si "1000 2000 3000 4000 5000"',
+ {OUT=>"1.0K 2.0K 3.0K 4.0K 5.0K"}],
+
+ ['field-range-err-1', '--field -foo --to=si 10',
+ {EXIT=>1}, {ERR=>"$prog: invalid field value 'foo'\n$try"}],
+ ['field-range-err-2', '--field --3 --to=si 10',
+ {EXIT=>1}, {ERR=>"$prog: invalid field range\n$try"}],
+ ['field-range-err-3', '--field 0 --to=si 10',
+ {EXIT=>1}, {ERR=>"$prog: fields are numbered from 1\n$try"}],
+ ['field-range-err-4', '--field 3-2 --to=si 10',
+ {EXIT=>1}, {ERR=>"$prog: invalid decreasing range\n$try"}],
+ ['field-range-err-6', '--field - --field 1- --to=si 10',
+ {EXIT=>1}, {ERR=>"$prog: multiple field specifications\n"}],
+ ['field-range-err-7', '--field -1 --field 1- --to=si 10',
+ {EXIT=>1}, {ERR=>"$prog: multiple field specifications\n"}],
+ ['field-range-err-8', '--field -1 --field 1,2,3 --to=si 10',
+ {EXIT=>1}, {ERR=>"$prog: multiple field specifications\n"}],
+ ['field-range-err-9', '--field 1- --field 1,2,3 --to=si 10',
+ {EXIT=>1}, {ERR=>"$prog: multiple field specifications\n"}],
+ ['field-range-err-10','--field 1,2,3 --field 1- --to=si 10',
+ {EXIT=>1}, {ERR=>"$prog: multiple field specifications\n"}],
+ ['field-range-err-11','--field 1-2-3 --to=si 10',
+ {EXIT=>1}, {ERR=>"$prog: invalid field range\n$try"}],
+ ['field-range-err-12','--field 0-1 --to=si 10',
+ {EXIT=>1}, {ERR=>"$prog: fields are numbered from 1\n$try"}],
+ ['field-range-err-13','--field '.$limits->{SIZE_MAX}.',22 --to=si 10',
+ {EXIT=>1}, {ERR=>"$prog: field number " .
+ "'".$limits->{SIZE_MAX}."' is too large\n$try"}],
+
+ # Auto-consume white-space, setup auto-padding
+ ['whitespace-1', '--to=si --field 2 "A 500 B"', {OUT=>"A 500 B"}],
+ ['whitespace-2', '--to=si --field 2 "A 5000 B"', {OUT=>"A 5.0K B"}],
+ ['whitespace-3', '--to=si " 500"', {OUT=>" 500"}],
+ ['whitespace-4', '--to=si " 6500"', {OUT=>" 6.5K"}],
+ # NOTE: auto-padding is not enabled if the value is on the first
+ # field and there's no white-space before it.
+ ['whitespace-5', '--to=si "6000000"', {OUT=>"6.0M"}],
+ # but if there is whitespace, assume auto-padding is desired.
+ ['whitespace-6', '--to=si " 6000000"', {OUT=>" 6.0M"}],
+
+ # auto-padding - lines have same padding-width
+ # (padding_buffer will be alloc'd just once)
+ ['whitespace-7', '--to=si --field 2',
+ {IN_PIPE=>"rootfs 100000\n" .
+ "udevxx 2000000\n"},
+ {OUT =>"rootfs 100K\n" .
+ "udevxx 2.0M"}],
+ # auto-padding - second line requires a
+ # larger padding (padding-buffer needs to be realloc'd)
+ ['whitespace-8', '--to=si --field 2',
+ {IN_PIPE=>"rootfs 100000\n" .
+ "udev 20000000\n"},
+ {OUT =>"rootfs 100K\n" .
+ "udev 20M"}],
+
+
+ # Corner-cases:
+ # weird mix of identical suffix,delimiters
+ # The priority is:
+ # 1. delimiters (and fields) are parsed (in process_line()
+ # 2. optional custom suffix is removed (in process_suffixed_number())
+ # 3. Remaining suffixes must be valid SI/IEC (in human_xstrtol())
+
+ # custom suffix comes BEFORE SI/IEC suffix,
+ # so these are 40 of "M", not 40,000,000.
+ ['mix-1', '--suffix=M --from=si 40M', {OUT=>"40M"}],
+
+ # These are forty-million Ms .
+ ['mix-2', '--suffix=M --from=si 40MM', {OUT=>"40000000M"}],
+
+ ['mix-3', '--suffix=M --from=auto 40MM', {OUT=>"40000000M"}],
+ ['mix-4', '--suffix=M --from=auto 40MiM', {OUT=>"41943040M"}],
+ ['mix-5', '--suffix=M --to=si --from=si 4MM', {OUT=>"4.0MM"}],
+
+ # This might be confusing to the user, but it's legit:
+ # The M in the output is the custom suffix, not Mega.
+ ['mix-6', '--suffix=M 40', {OUT=>"40M"}],
+ ['mix-7', '--suffix=M 4000000', {OUT=>"4000000M"}],
+ ['mix-8', '--suffix=M --to=si 4000000', {OUT=>"4.0MM"}],
+
+ # The output 'M' is the custom suffix.
+ ['mix-10', '--delimiter=M --suffix=M 40', {OUT=>"40M"}],
+
+ # The INPUT 'M' is a delimiter (delimiters are top priority)
+ # The output contains one M for custom suffix, and one 'M' delimiter.
+ ['mix-11', '--delimiter=M --suffix=M 40M', {OUT=>"40MM"}],
+
+ # Same as above, the "M" is NOT treated as a mega SI prefix,
+ ['mix-12', '--delimiter=M --from=si --suffix=M 40M', {OUT=>"40MM"}],
+
+ # The 'M' is treated as a delimiter, and so the input value is '4000'
+ ['mix-13', '--delimiter=M --to=si --from=auto 4000M5000M9000',
+ {OUT=>"4.0KM5000M9000"}],
+ # 'M' is the delimiter, so the second input field is '5000'
+ ['mix-14', '--delimiter=M --field 2 --from=auto --to=si 4000M5000M9000',
+ {OUT=>"4000M5.0KM9000"}],
+
+
+
+ ## Header testing
+
+ # header - silently ignored with command line parameters
+ ['header-1', '--header --to=iec 4096', {OUT=>"4.0K"}],
+
+ # header warning with --debug
+ ['header-2', '--debug --header --to=iec 4096', {OUT=>"4.0K"},
+ {ERR=>"$prog: --header ignored with command-line input\n"}],
+
+ ['header-3', '--header=A',
+ {ERR=>"$prog: invalid header value 'A'\n"},
+ {EXIT => 1},],
+ ['header-4', '--header=0',
+ {ERR=>"$prog: invalid header value '0'\n"},
+ {EXIT => 1},],
+ ['header-5', '--header=-6',
+ {ERR=>"$prog: invalid header value '-6'\n"},
+ {EXIT => 1},],
+ ['header-6', '--debug --header --to=iec',
+ {IN_PIPE=>"size\n5000\n90000\n"},
+ {OUT=>"size\n4.9K\n88K"}],
+ ['header-7', '--debug --header=3 --to=iec',
+ {IN_PIPE=>"hello\nworld\nsize\n5000\n90000\n"},
+ {OUT=>"hello\nworld\nsize\n4.9K\n88K"}],
+ # header, but no actual content
+ ['header-8', '--header=2 --to=iec',
+ {IN_PIPE=>"hello\nworld\n"},
+ {OUT=>"hello\nworld"}],
+ # not enough header lines
+ ['header-9', '--header=3 --to=iec',
+ {IN_PIPE=>"hello\nworld\n"},
+ {OUT=>"hello\nworld"}],
+
+
+ ## human_strtod testing
+
+ # NO_DIGITS_FOUND
+ ['strtod-1', '--from=si "foo"',
+ {ERR=>"$prog: invalid number: 'foo'\n"},
+ {EXIT=> 2}],
+ ['strtod-2', '--from=si ""',
+ {ERR=>"$prog: invalid number: ''\n"},
+ {EXIT=> 2}],
+
+ # FRACTION_NO_DIGITS_FOUND
+ ['strtod-5', '--from=si 12.',
+ {ERR=>"$prog: invalid number: '12.'\n"},
+ {EXIT=>2}],
+ ['strtod-6', '--from=si 12.K',
+ {ERR=>"$prog: invalid number: '12.K'\n"},
+ {EXIT=>2}],
+
+ # whitespace is not allowed after decimal-point
+ ['strtod-6.1', '--from=si --delimiter=, "12. 2"',
+ {ERR=>"$prog: invalid number: '12. 2'\n"},
+ {EXIT=>2}],
+
+ # INVALID_SUFFIX
+ ['strtod-9', '--from=si 12.2Q',
+ {ERR=>"$prog: invalid suffix in input: '12.2Q'\n"},
+ {EXIT=>2}],
+
+ # VALID_BUT_FORBIDDEN_SUFFIX
+ ['strtod-10', '12M',
+ {ERR => "$prog: rejecting suffix " .
+ "in input: '12M' (consider using --from)\n"},
+ {EXIT=>2}],
+
+ # MISSING_I_SUFFIX
+ ['strtod-11', '--from=iec-i 12M',
+ {ERR => "$prog: missing 'i' suffix in input: " .
+ "'12M' (e.g Ki/Mi/Gi)\n"},
+ {EXIT=>2}],
+
+ #
+ # Test double_to_human()
+ #
+
+ # 1K and smaller
+ ['dbl-to-human-1','--to=si 800', {OUT=>"800"}],
+ ['dbl-to-human-2','--to=si 0', {OUT=>"0"}],
+ ['dbl-to-human-2.1','--to=si 999', {OUT=>"999"}],
+ ['dbl-to-human-2.2','--to=si 1000', {OUT=>"1.0K"}],
+ #NOTE: the following are consistent with "ls -lh" output
+ ['dbl-to-human-2.3','--to=iec 999', {OUT=>"999"}],
+ ['dbl-to-human-2.4','--to=iec 1023', {OUT=>"1023"}],
+ ['dbl-to-human-2.5','--to=iec 1024', {OUT=>"1.0K"}],
+ ['dbl-to-human-2.6','--to=iec 1025', {OUT=>"1.1K"}],
+ ['dbl-to-human-2.7','--to=iec 0', {OUT=>"0"}],
+ # no "i" suffix if output has no suffix
+ ['dbl-to-human-2.8','--to=iec-i 0', {OUT=>"0"}],
+
+ # values resulting in "N.Nx" output
+ ['dbl-to-human-3','--to=si 8000', {OUT=>"8.0K"}],
+ ['dbl-to-human-3.1','--to=si 8001', {OUT=>"8.1K"}],
+ ['dbl-to-human-4','--to=si --round=down 8001', {OUT=>"8.0K"}],
+
+ ['dbl-to-human-5','--to=si --round=down 3500', {OUT=>"3.5K"}],
+ ['dbl-to-human-6','--to=si --round=nearest 3500', {OUT=>"3.5K"}],
+ ['dbl-to-human-7','--to=si --round=up 3500', {OUT=>"3.5K"}],
+
+ ['dbl-to-human-8','--to=si --round=down 3501', {OUT=>"3.5K"}],
+ ['dbl-to-human-9','--to=si --round=nearest 3501', {OUT=>"3.5K"}],
+ ['dbl-to-human-10','--to=si --round=up 3501', {OUT=>"3.6K"}],
+
+ ['dbl-to-human-11','--to=si --round=nearest 3550', {OUT=>"3.6K"}],
+ ['dbl-to-human-12','--to=si --from=si 999.89K', {OUT=>"1.0M"}],
+ ['dbl-to-human-13','--to=si --from=si 9.9K', {OUT=>"9.9K"}],
+ ['dbl-to-human-14','--to=si 9900', {OUT=>"9.9K"}],
+ ['dbl-to-human-15','--to=iec --from=si 3.3K', {OUT=>"3.3K"}],
+ ['dbl-to-human-16','--to=iec --round=down --from=si 3.3K', {OUT=>"3.2K"}],
+
+ # values resulting in 'NNx' output
+ ['dbl-to-human-17','--to=si 9999', {OUT=>"10K"}],
+ ['dbl-to-human-18','--to=si --round=down 35000', {OUT=>"35K"}],
+ ['dbl-to-human-19','--to=iec 35000', {OUT=>"35K"}],
+ ['dbl-to-human-20','--to=iec --round=down 35000', {OUT=>"34K"}],
+ ['dbl-to-human-21','--to=iec 35000000', {OUT=>"34M"}],
+ ['dbl-to-human-22','--to=iec --round=down 35000000', {OUT=>"33M"}],
+ ['dbl-to-human-23','--to=si 35000001', {OUT=>"36M"}],
+ ['dbl-to-human-24','--to=si --from=si 9.99M', {OUT=>"10M"}],
+ ['dbl-to-human-25','--to=si --from=iec 9.99M', {OUT=>"11M"}],
+ ['dbl-to-human-25.1','--to=iec 99999', {OUT=>"98K"}],
+
+ # values resulting in 'NNNx' output
+ ['dbl-to-human-26','--to=si 999000000000', {OUT=>"999G"}],
+ ['dbl-to-human-27','--to=iec 999000000000', {OUT=>"931G"}],
+ ['dbl-to-human-28','--to=si 123600000000000', {OUT=>"124T"}],
+ ['dbl-to-human-29','--to=si 998123', {OUT=>"999K"}],
+ ['dbl-to-human-30','--to=si --round=nearest 998123', {OUT=>"998K"}],
+ ['dbl-to-human-31','--to=si 99999', {OUT=>"100K"}],
+ ['dbl-to-human-32','--to=iec 102399', {OUT=>"100K"}],
+ ['dbl-to-human-33','--to=iec-i 102399', {OUT=>"100Ki"}],
+
+
+ # Default --round=from-zero
+ ['round-1','--to-unit=1024 -- 6000 -6000',
+ {OUT=>"6\n-6"}],
+ ['round-2','--to-unit=1024 -- 6000.0 -6000.0',
+ {OUT=>"5.9\n-5.9"}],
+ ['round-3','--to-unit=1024 -- 6000.00 -6000.00',
+ {OUT=>"5.86\n-5.86"}],
+ ['round-4','--to-unit=1024 -- 6000.000 -6000.000',
+ {OUT=>"5.860\n-5.860"}],
+ ['round-5','--to-unit=1024 -- 6000.0000 -6000.0000',
+ {OUT=>"5.8594\n-5.8594"}],
+ # --round=up
+ ['round-1-up','--round=up --to-unit=1024 -- 6000 -6000',
+ {OUT=>"6\n-5"}],
+ ['round-2-up','--round=up --to-unit=1024 -- 6000.0 -6000.0',
+ {OUT=>"5.9\n-5.8"}],
+ ['round-3-up','--round=up --to-unit=1024 -- 6000.00 -6000.00',
+ {OUT=>"5.86\n-5.85"}],
+ ['round-4-up','--round=up --to-unit=1024 -- 6000.000 -6000.000',
+ {OUT=>"5.860\n-5.859"}],
+ ['round-5-up','--round=up --to-unit=1024 -- 6000.0000 -6000.0000',
+ {OUT=>"5.8594\n-5.8593"}],
+ # --round=down
+ ['round-1-down','--round=down --to-unit=1024 -- 6000 -6000',
+ {OUT=>"5\n-6"}],
+ ['round-2-down','--round=down --to-unit=1024 -- 6000.0 -6000.0',
+ {OUT=>"5.8\n-5.9"}],
+ ['round-3-down','--round=down --to-unit=1024 -- 6000.00 -6000.00',
+ {OUT=>"5.85\n-5.86"}],
+ ['round-4-down','--round=down --to-unit=1024 -- 6000.000 -6000.000',
+ {OUT=>"5.859\n-5.860"}],
+ ['round-5-down','--round=down --to-unit=1024 -- 6000.0000 -6000.0000',
+ {OUT=>"5.8593\n-5.8594"}],
+ # --round=towards-zero
+ ['round-1-to-zero','--ro=towards-zero --to-u=1024 -- 6000 -6000',
+ {OUT=>"5\n-5"}],
+ ['round-2-to-zero','--ro=towards-zero --to-u=1024 -- 6000.0 -6000.0',
+ {OUT=>"5.8\n-5.8"}],
+ ['round-3-to-zero','--ro=towards-zero --to-u=1024 -- 6000.00 -6000.00',
+ {OUT=>"5.85\n-5.85"}],
+ ['round-4-to-zero','--ro=towards-zero --to-u=1024 -- 6000.000 -6000.000',
+ {OUT=>"5.859\n-5.859"}],
+ ['round-5-to-zero','--ro=towards-zero --to-u=1024 -- 6000.0000 -6000.0000',
+ {OUT=>"5.8593\n-5.8593"}],
+ # --round=nearest
+ ['round-1-near','--ro=nearest --to-u=1024 -- 6000 -6000',
+ {OUT=>"6\n-6"}],
+ ['round-2-near','--ro=nearest --to-u=1024 -- 6000.0 -6000.0',
+ {OUT=>"5.9\n-5.9"}],
+ ['round-3-near','--ro=nearest --to-u=1024 -- 6000.00 -6000.00',
+ {OUT=>"5.86\n-5.86"}],
+ ['round-4-near','--ro=nearest --to-u=1024 -- 6000.000 -6000.000',
+ {OUT=>"5.859\n-5.859"}],
+ ['round-5-near','--ro=nearest --to-u=1024 -- 6000.0000 -6000.0000',
+ {OUT=>"5.8594\n-5.8594"}],
+
+
+ # Leading zeros weren't handled appropriately before 8.24
+ ['leading-1','0000000000000000000000000001', {OUT=>"1"}],
+ ['leading-2','.1', {OUT=>"0.1"}],
+ ['leading-3','bad.1',
+ {ERR => "$prog: invalid number: 'bad.1'\n"},
+ {EXIT => 2}],
+ ['leading-4','..1',
+ {ERR => "$prog: invalid suffix in input: '..1'\n"},
+ {EXIT => 2}],
+ ['leading-5','1.',
+ {ERR => "$prog: invalid number: '1.'\n"},
+ {EXIT => 2}],
+
+ # precision override
+ ['precision-1','--format=%.4f 9991239123 --to=si', {OUT=>"9.9913G"}],
+ ['precision-2','--format=%.1f 9991239123 --to=si', {OUT=>"10.0G"}],
+ ['precision-3','--format=%.1f 1', {OUT=>"1.0"}],
+ ['precision-4','--format=%.1f 1.12', {OUT=>"1.2"}],
+ ['precision-5','--format=%.1f 9991239123 --to-unit=G', {OUT=>"10.0"}],
+ ['precision-6','--format="% .1f" 9991239123 --to-unit=G', {OUT=>"10.0"}],
+ ['precision-7','--format=%.-1f 1.1',
+ {ERR => "$prog: invalid precision in format '%.-1f'\n"},
+ {EXIT => 1}],
+ ['precision-8','--format=%.+1f 1.1',
+ {ERR => "$prog: invalid precision in format '%.+1f'\n"},
+ {EXIT => 1}],
+ ['precision-9','--format="%. 1f" 1.1',
+ {ERR => "$prog: invalid precision in format '%. 1f'\n"},
+ {EXIT => 1}],
+
+ # debug warnings
+ ['debug-1', '--debug 4096', {OUT=>"4096"},
+ {ERR=>"$prog: no conversion option specified\n"}],
+ # '--padding' is a valid conversion option - no warning should be printed
+ ['debug-1.1', '--debug --padding 10 4096', {OUT=>" 4096"}],
+ ['debug-2', '--debug --grouping --from=si 4.0K', {OUT=>"4000"},
+ {ERR=>"$prog: grouping has no effect in this locale\n"}],
+
+ # dev-debug messages - the actual messages don't matter
+ # just ensure the program works, and for code coverage testing.
+ ['devdebug-1', '---debug --from=si 4.9K', {OUT=>"4900"},
+ {ERR=>""},
+ {ERR_SUBST=>"s/.*//msg"}],
+ ['devdebug-2', '---debug 4900', {OUT=>"4900"},
+ {ERR=>""},
+ {ERR_SUBST=>"s/.*//msg"}],
+ ['devdebug-3', '---debug --from=auto 4Mi', {OUT=>"4194304"},
+ {ERR=>""},
+ {ERR_SUBST=>"s/.*//msg"}],
+ ['devdebug-4', '---debug --to=si 4000000', {OUT=>"4.0M"},
+ {ERR=>""},
+ {ERR_SUBST=>"s/.*//msg"}],
+ ['devdebug-5', '---debug --to=si --padding=5 4000000', {OUT=>" 4.0M"},
+ {ERR=>""},
+ {ERR_SUBST=>"s/.*//msg"}],
+ ['devdebug-6', '---debug --suffix=Foo 1234Foo', {OUT=>"1234Foo"},
+ {ERR=>""},
+ {ERR_SUBST=>"s/.*//msg"}],
+ ['devdebug-7', '---debug --suffix=Foo 1234', {OUT=>"1234Foo"},
+ {ERR=>""},
+ {ERR_SUBST=>"s/.*//msg"}],
+ ['devdebug-9', '---debug --grouping 10000', {OUT=>"10000"},
+ {ERR=>""},
+ {ERR_SUBST=>"s/.*//msg"}],
+ ['devdebug-10', '---debug --format %f 10000', {OUT=>"10000"},
+ {ERR=>""},
+ {ERR_SUBST=>"s/.*//msg"}],
+ ['devdebug-11', '---debug --format "%\'-10f" 10000',{OUT=>"10000 "},
+ {ERR=>""},
+ {ERR_SUBST=>"s/.*//msg"}],
+
+ # Invalid parameters
+ ['help-1', '--foobar',
+ {ERR=>"$prog: unrecognized option\n$try"},
+ {ERR_SUBST=>"s/option.*/option/; s/unknown/unrecognized/"},
+ {EXIT=>1}],
+
+ ## Format string - check error detection
+ ['fmt-err-1', '--format ""',
+ {ERR=>"$prog: format '' has no % directive\n"},
+ {EXIT=>1}],
+ ['fmt-err-2', '--format "hello"',
+ {ERR=>"$prog: format 'hello' has no % directive\n"},
+ {EXIT=>1}],
+ ['fmt-err-3', '--format "hello%"',
+ {ERR=>"$prog: format 'hello%' ends in %\n"},
+ {EXIT=>1}],
+ ['fmt-err-4', '--format "%d"',
+ {ERR=>"$prog: invalid format '%d', " .
+ "directive must be %[0]['][-][N][.][N]f\n"},
+ {EXIT=>1}],
+ ['fmt-err-5', '--format "% -43 f"',
+ {ERR=>"$prog: invalid format '% -43 f', " .
+ "directive must be %[0]['][-][N][.][N]f\n"},
+ {EXIT=>1}],
+ ['fmt-err-6', '--format "%f %f"',
+ {ERR=>"$prog: format '%f %f' has too many % directives\n"},
+ {EXIT=>1}],
+ ['fmt-err-7', '--format "%'.$limits->{LONG_OFLOW}.'f"',
+ {ERR=>"$prog: invalid format '%$limits->{LONG_OFLOW}f'".
+ " (width overflow)\n"},
+ {EXIT=>1}],
+ ['fmt-err-9', '--format "%f" --grouping',
+ {ERR=>"$prog: --grouping cannot be combined with --format\n"},
+ {EXIT=>1}],
+ ['fmt-err-10', '--format "%\'f" --to=si',
+ {ERR=>"$prog: grouping cannot be combined with --to\n"},
+ {EXIT=>1}],
+ ['fmt-err-11', '--debug --format "%\'f" 5000', {OUT=>"5000"},
+ {ERR=>"$prog: grouping has no effect in this locale\n"}],
+
+ ## Format string - check some corner cases
+ ['fmt-1', '--format "%% %f" 5000', {OUT=>"%%5000"}],
+ ['fmt-2', '--format "%f %%" 5000', {OUT=>"5000 %%"}],
+
+ ['fmt-3', '--format "--%f--" 5000000', {OUT=>"--5000000--"}],
+ ['fmt-4', '--format "--%f--" --to=si 5000000', {OUT=>"--5.0M--"}],
+
+ ['fmt-5', '--format "--%10f--" --to=si 5000000',{OUT=>"-- 5.0M--"}],
+ ['fmt-6', '--format "--%-10f--" --to=si 5000000',{OUT=>"--5.0M --"}],
+ ['fmt-7', '--format "--%10f--" 5000000',{OUT=>"-- 5000000--"}],
+ ['fmt-8', '--format "--%-10f--" 5000000',{OUT=>"--5000000 --"}],
+
+ # too-short width
+ ['fmt-9', '--format "--%5f--" 5000000',{OUT=>"--5000000--"}],
+
+ # Format + Suffix
+ ['fmt-10', '--format "--%10f--" --suffix Foo 50', {OUT=>"-- 50Foo--"}],
+ ['fmt-11', '--format "--%-10f--" --suffix Foo 50',{OUT=>"--50Foo --"}],
+
+ # Grouping in C locale - no grouping effect
+ ['fmt-12', '--format "%\'f" 50000',{OUT=>"50000"}],
+ ['fmt-13', '--format "%\'10f" 50000', {OUT=>" 50000"}],
+ ['fmt-14', '--format "%\'-10f" 50000',{OUT=>"50000 "}],
+
+ # Very large format strings
+ ['fmt-15', '--format "--%100000f--" --to=si 4200',
+ {OUT=>"--" . " " x 99996 . "4.2K--" }],
+
+ # --format padding overrides --padding
+ ['fmt-16', '--format="%6f" --padding=66 1234',{OUT=>" 1234"}],
+
+ # zero padding
+ ['fmt-17', '--format="%06f" 1234',{OUT=>"001234"}],
+ # also support spaces (which are ignored as spacing is handled separately)
+ ['fmt-18', '--format="%0 6f" 1234',{OUT=>"001234"}],
+ # handle generic padding in combination
+ ['fmt-22', '--format="%06f" --padding=7 1234',{OUT=>" 001234"}],
+ ['fmt-23', '--format="%06f" --padding=-7 1234',{OUT=>"001234 "}],
+
+
+ ## Check all errors again, this time with --invalid=fail
+ ## Input will be printed without conversion,
+ ## and exit code will be 2
+ ['ign-err-1', '--invalid=fail 4Q',
+ {ERR => "$prog: invalid suffix in input: '4Q'\n"},
+ {OUT => "4Q\n"},
+ {EXIT => 2}],
+ ['ign-err-2', '--invalid=fail 4M',
+ {ERR => "$prog: rejecting suffix " .
+ "in input: '4M' (consider using --from)\n"},
+ {OUT => "4M\n"},
+ {EXIT => 2}],
+ ['ign-err-3', '--invalid=fail --from=si 4MQ',
+ {ERR => "$prog: invalid suffix in input '4MQ': 'Q'\n"},
+ {OUT => "4MQ\n"},
+ {EXIT => 2}],
+ ['ign-err-4', '--invalid=fail --suffix=Foo --to=si 7000FooF',
+ {ERR => "$prog: invalid suffix in input: '7000FooF'\n"},
+ {OUT => "7000FooF\n"},
+ {EXIT => 2}],
+ ['ign-err-5','--invalid=fail --field 3 --from=auto "Hello 40M World 90G"',
+ {ERR => "$prog: invalid number: 'World'\n"},
+ {OUT => "Hello 40M World 90G\n"},
+ {EXIT => 2}],
+ ['ign-err-7', '--invalid=fail --from=si "foo"',
+ {ERR => "$prog: invalid number: 'foo'\n"},
+ {OUT => "foo\n"},
+ {EXIT=> 2}],
+ ['ign-err-8', '--invalid=fail 12M',
+ {ERR => "$prog: rejecting suffix " .
+ "in input: '12M' (consider using --from)\n"},
+ {OUT => "12M\n"},
+ {EXIT => 2}],
+ ['ign-err-9', '--invalid=fail --from=iec-i 12M',
+ {ERR => "$prog: missing 'i' suffix in input: " .
+ "'12M' (e.g Ki/Mi/Gi)\n"},
+ {OUT => "12M\n"},
+ {EXIT=>2}],
+
+ ## Ignore Errors with multiple conversions
+ ['ign-err-m1', '--invalid=ignore --to=si 1000 2000 bad 3000',
+ {OUT => "1.0K\n2.0K\nbad\n3.0K"},
+ {EXIT => 0}],
+ ['ign-err-m1.1', '--invalid=ignore --to=si',
+ {IN_PIPE => "1000\n2000\nbad\n3000\n"},
+ {OUT => "1.0K\n2.0K\nbad\n3.0K"},
+ {EXIT => 0}],
+ ['ign-err-m1.3', '--invalid=fail --debug --to=si 1000 2000 3000',
+ {OUT => "1.0K\n2.0K\n3.0K"},
+ {EXIT => 0}],
+ ['ign-err-m2', '--invalid=fail --to=si 1000 Foo 3000',
+ {OUT => "1.0K\nFoo\n3.0K\n"},
+ {ERR => "$prog: invalid number: 'Foo'\n"},
+ {EXIT => 2}],
+ ['ign-err-m2.1', '--invalid=warn --to=si',
+ {IN_PIPE => "1000\nFoo\n3000\n"},
+ {OUT => "1.0K\nFoo\n3.0K"},
+ {ERR => "$prog: invalid number: 'Foo'\n"},
+ {EXIT => 0}],
+
+ # --debug will trigger a final warning at EOF
+ ['ign-err-m2.2', '--invalid=fail --debug --to=si 1000 Foo 3000',
+ {OUT => "1.0K\nFoo\n3.0K\n"},
+ {ERR => "$prog: invalid number: 'Foo'\n" .
+ "$prog: failed to convert some of the input numbers\n"},
+ {EXIT => 2}],
+
+ ['ign-err-m3', '--invalid=fail --field 2 --from=si --to=iec',
+ {IN_PIPE => "A 1K x\nB 2M y\nC 3G z\n"},
+ {OUT => "A 1000 x\nB 2.0M y\nC 2.8G z"},
+ {EXIT => 0}],
+ # invalid input on one of the fields
+ ['ign-err-m3.1', '--invalid=fail --field 2 --from=si --to=iec',
+ {IN_PIPE => "A 1K x\nB Foo y\nC 3G z\n"},
+ {OUT => "A 1000 x\nB Foo y\nC 2.8G z\n"},
+ {ERR => "$prog: invalid number: 'Foo'\n"},
+ {EXIT => 2}],
+ );
+
+# test null-terminated lines
+my @NullDelim_Tests =
+ (
+ # Input from STDIN
+ ['z1', '-z --to=iec',
+ {IN_PIPE => "1025\x002048\x00"}, {OUT=>"1.1K\x002.0K\x00"}],
+
+ # Input from the commandline - terminated by NULL vs NL
+ ['z3', ' --to=iec 1024', {OUT=>"1.0K\n"}],
+ ['z2', '-z --to=iec 1024', {OUT=>"1.0K\x00"}],
+
+ # Input from STDIN, with fields
+ ['z4', '-z --field=3 --to=si',
+ {IN_PIPE => "A B 1001 C\x00" .
+ "D E 2002 F\x00"},
+ {OUT => "A B 1.1K C\x00" .
+ "D E 2.1K F\x00"}],
+
+ # Input from STDIN, with fields and embedded NL
+ ['z5', '-z --field=3 --to=si',
+ {IN_PIPE => "A\nB 1001 C\x00" .
+ "D E\n2002 F\x00"},
+ {OUT => "A B 1.1K C\x00" .
+ "D E 2.1K F\x00"}],
+ );
+
+my @Limit_Tests =
+ (
+ # Large Values
+ ['large-1','1000000000000000', {OUT=>"1000000000000000"}],
+ # 18 digits is OK
+ ['large-2','1000000000000000000', {OUT=>"1000000000000000000"}],
+ # 19 digits is too much (without output scaling)
+ ['large-3','10000000000000000000',
+ {ERR => "$prog: value too large to be printed: '1e+19' " .
+ "(consider using --to)\n"},
+ {EXIT=>2}],
+ ['large-4','1000000000000000000.0',
+ {ERR => "$prog: value/precision too large to be printed: " .
+ "'1e+18/1' (consider using --to)\n"},
+ {EXIT=>2}],
+
+
+ # Test input:
+ # Up to 27 digits is OK.
+ ['large-3.1', '--to=si 1', {OUT=> "1"}],
+ ['large-3.2', '--to=si 10', {OUT=> "10"}],
+ ['large-3.3', '--to=si 100', {OUT=> "100"}],
+ ['large-3.4', '--to=si 1000', {OUT=>"1.0K"}],
+ ['large-3.5', '--to=si 10000', {OUT=> "10K"}],
+ ['large-3.6', '--to=si 100000', {OUT=>"100K"}],
+ ['large-3.7', '--to=si 1000000', {OUT=>"1.0M"}],
+ ['large-3.8', '--to=si 10000000', {OUT=> "10M"}],
+ ['large-3.9', '--to=si 100000000', {OUT=>"100M"}],
+ ['large-3.10','--to=si 1000000000', {OUT=>"1.0G"}],
+ ['large-3.11','--to=si 10000000000', {OUT=> "10G"}],
+ ['large-3.12','--to=si 100000000000', {OUT=>"100G"}],
+ ['large-3.13','--to=si 1000000000000', {OUT=>"1.0T"}],
+ ['large-3.14','--to=si 10000000000000', {OUT=> "10T"}],
+ ['large-3.15','--to=si 100000000000000', {OUT=>"100T"}],
+ ['large-3.16','--to=si 1000000000000000', {OUT=>"1.0P"}],
+ ['large-3.17','--to=si 10000000000000000', {OUT=> "10P"}],
+ ['large-3.18','--to=si 100000000000000000', {OUT=>"100P"}],
+ ['large-3.19','--to=si 1000000000000000000', {OUT=>"1.0E"}],
+ ['large-3.20','--to=si 10000000000000000000', {OUT=> "10E"}],
+ ['large-3.21','--to=si 210000000000000000000', {OUT=>"210E"}],
+ ['large-3.22','--to=si 3210000000000000000000', {OUT=>"3.3Z"}],
+ ['large-3.23','--to=si 43210000000000000000000', {OUT=> "44Z"}],
+ ['large-3.24','--to=si 543210000000000000000000', {OUT=>"544Z"}],
+ ['large-3.25','--to=si 6543210000000000000000000', {OUT=>"6.6Y"}],
+ ['large-3.26','--to=si 76543210000000000000000000', {OUT=> "77Y"}],
+ ['large-3.27','--to=si 876543210000000000000000000', {OUT=>"877Y"}],
+
+ # More than 27 digits is not OK
+ ['large-3.28','--to=si 9876543210000000000000000000',
+ {ERR => "$prog: value too large to be converted: " .
+ "'9876543210000000000000000000'\n"},
+ {EXIT => 2}],
+
+ # Test Output
+ ['large-4.1', '--from=si 9.7M', {OUT=>"9700000"}],
+ ['large-4.2', '--from=si 10M', {OUT =>"10000000"}],
+ ['large-4.3', '--from=si 200M', {OUT =>"200000000"}],
+ ['large-4.4', '--from=si 3G', {OUT =>"3000000000"}],
+ ['large-4.5', '--from=si 40G', {OUT =>"40000000000"}],
+ ['large-4.6', '--from=si 500G', {OUT =>"500000000000"}],
+ ['large-4.7', '--from=si 6T', {OUT =>"6000000000000"}],
+ ['large-4.8', '--from=si 70T', {OUT =>"70000000000000"}],
+ ['large-4.9', '--from=si 800T', {OUT =>"800000000000000"}],
+ ['large-4.10','--from=si 9P', {OUT =>"9000000000000000"}],
+ ['large-4.11','--from=si 10P', {OUT =>"10000000000000000"}],
+ ['large-4.12','--from=si 200P', {OUT =>"200000000000000000"}],
+ ['large-4.13','--from=si 3E', {OUT =>"3000000000000000000"}],
+
+ # More than 18 digits of output without scaling - no good.
+ ['large-4.14','--from=si 40E',
+ {ERR => "$prog: value too large to be printed: '4e+19' " .
+ "(consider using --to)\n"},
+ {EXIT => 2}],
+ ['large-4.15','--from=si 500E',
+ {ERR => "$prog: value too large to be printed: '5e+20' " .
+ "(consider using --to)\n"},
+ {EXIT => 2}],
+ ['large-4.16','--from=si 6Z',
+ {ERR => "$prog: value too large to be printed: '6e+21' " .
+ "(consider using --to)\n"},
+ {EXIT => 2}],
+ ['large-4.17','--from=si 70Z',
+ {ERR => "$prog: value too large to be printed: '7e+22' " .
+ "(consider using --to)\n"},
+ {EXIT => 2}],
+ ['large-4.18','--from=si 800Z',
+ {ERR => "$prog: value too large to be printed: '8e+23' " .
+ "(consider using --to)\n"},
+ {EXIT => 2}],
+ ['large-4.19','--from=si 9Y',
+ {ERR => "$prog: value too large to be printed: '9e+24' " .
+ "(consider using --to)\n"},
+ {EXIT => 2}],
+ ['large-4.20','--from=si 10Y',
+ {ERR => "$prog: value too large to be printed: '1e+25' " .
+ "(consider using --to)\n"},
+ {EXIT => 2}],
+ ['large-4.21','--from=si 200Y',
+ {ERR => "$prog: value too large to be printed: '2e+26' " .
+ "(consider using --to)\n"},
+ {EXIT => 2}],
+
+ ['large-5.1','--to=si 1000000000000000000', {OUT=>"1.0E"}],
+ ['large-5','--from=si --to=si 2E', {OUT=>"2.0E"}],
+ ['large-6','--from=si --to=si 3.4Z', {OUT=>"3.4Z"}],
+ ['large-7','--from=si --to=si 80Y', {OUT=>"80Y"}],
+ ['large-8','--from=si --to=si 9000Z', {OUT=>"9.0Y"}],
+
+ ['large-10','--from=si --to=si 999Y', {OUT=>"999Y"}],
+ ['large-11','--from=si --to=iec 999Y', {OUT=>"827Y"}],
+ ['large-12','--from=si --round=down --to=iec 999Y', {OUT=>"826Y"}],
+
+ # units can also affect the output
+ ['large-13','--from=si --from-unit=1000000 9P',
+ {ERR => "$prog: value too large to be printed: '9e+21' " .
+ "(consider using --to)\n"},
+ {EXIT => 2}],
+ ['large-13.1','--from=si --from-unit=1000000 --to=si 9P', {OUT=>"9.0Z"}],
+
+ # Numbers>999Y are never acceptable, regardless of scaling
+ ['large-14','--from=si --to=si 999Y', {OUT=>"999Y"}],
+ ['large-14.1','--from=si --to=si 1000Y',
+ {ERR => "$prog: value too large to be printed: '1e+27' " .
+ "(cannot handle values > 999Y)\n"},
+ {EXIT => 2}],
+ ['large-14.2','--from=si --to=si --from-unit=10000 1Y',
+ {ERR => "$prog: value too large to be printed: '1e+28' " .
+ "(cannot handle values > 999Y)\n"},
+ {EXIT => 2}],
+
+ # intmax_t overflow when rounding caused this to fail before 8.24
+ ['large-15',$limits->{INTMAX_OFLOW}, {OUT=>$limits->{INTMAX_OFLOW}}],
+ ['large-16','9.300000000000000000', {OUT=>'9.300000000000000000'}],
+
+ # INTEGRAL_OVERFLOW
+ ['strtod-3', '--from=si "1234567890123456789012345678901234567890'.
+ '1234567890123456789012345678901234567890"',
+ {ERR=>"$prog: value too large to be converted: '" .
+ "1234567890123456789012345678901234567890" .
+ "1234567890123456789012345678901234567890'\n",
+ },
+ {EXIT=> 2}],
+
+ # FRACTION_OVERFLOW
+ ['strtod-7', '--from=si "12.1234567890123456789012345678901234567890'.
+ '1234567890123456789012345678901234567890"',
+ {ERR=>"$prog: value too large to be converted: '" .
+ "12.1234567890123456789012345678901234567890" .
+ "1234567890123456789012345678901234567890'\n",
+ },
+ {EXIT=> 2}],
+
+ ['debug-4', '--to=si --debug 12345678901234567890',
+ {OUT=>"13E"},
+ {ERR=>"$prog: large input value '12345678901234567890':" .
+ " possible precision loss\n"}],
+ ['debug-5', '--to=si --from=si --debug 1.12345678901234567890Y',
+ {OUT=>"1.2Y"},
+ {ERR=>"$prog: large input value '1.12345678901234567890Y':" .
+ " possible precision loss\n"}],
+
+ ['ign-err-10','--invalid=fail 10000000000000000000',
+ {ERR => "$prog: value too large to be printed: '1e+19' " .
+ "(consider using --to)\n"},
+ {OUT => "10000000000000000000\n"},
+ {EXIT=>2}],
+ ['ign-err-11','--invalid=fail --to=si 9876543210000000000000000000',
+ {ERR => "$prog: value too large to be converted: " .
+ "'9876543210000000000000000000'\n"},
+ {OUT => "9876543210000000000000000000\n"},
+ {EXIT => 2}],
+ );
+# Restrict these tests to systems with LDBL_DIG == 18
+(system "$prog ---debug 1 2>&1|grep 'MAX_UNSCALED_DIGITS: 18' > /dev/null") == 0
+ and push @Tests, @Limit_Tests;
+
+my @Locale_Tests =
+ (
+ # Locale that supports grouping, but without '--grouping' parameter
+ ['lcl-grp-1', '--from=si 7M', {OUT=>"7000000"},
+ {ENV=>"LC_ALL=$locale"}],
+
+ # Locale with grouping
+ ['lcl-grp-2', '--from=si --grouping 7M', {OUT=>"7 000 000"},
+ {ENV=>"LC_ALL=$locale"}],
+
+ # Locale with grouping and debug - no debug warning message
+ ['lcl-grp-3', '--from=si --debug --grouping 7M', {OUT=>"7 000 000"},
+ {ENV=>"LC_ALL=$locale"}],
+
+ # Input with locale'd decimal-point
+ ['lcl-stdtod-1', '--from=si 12,2K', {OUT=>"12200"},
+ {ENV=>"LC_ALL=$locale"}],
+
+ ['lcl-dbl-to-human-1', '--to=si 1100', {OUT=>"1,1K"},
+ {ENV=>"LC_ALL=$locale"}],
+
+ # Format + Grouping
+ ['lcl-fmt-1', '--format "%\'f" 50000',{OUT=>"50 000"},
+ {ENV=>"LC_ALL=$locale"}],
+ ['lcl-fmt-2', '--format "--%\'10f--" 50000', {OUT=>"-- 50 000--"},
+ {ENV=>"LC_ALL=$locale"}],
+ ['lcl-fmt-3', '--format "--%\'-10f--" 50000',{OUT=>"--50 000 --"},
+ {ENV=>"LC_ALL=$locale"}],
+ ['lcl-fmt-4', '--format "--%-10f--" --to=si 5000000',
+ {OUT=>"--5,0M --"},
+ {ENV=>"LC_ALL=$locale"}],
+ # handle zero/grouping in combination
+ ['lcl-fmt-5', '--format="%\'06f" 1234',{OUT=>"01 234"},
+ {ENV=>"LC_ALL=$locale"}],
+ ['lcl-fmt-6', '--format="%0\'6f" 1234',{OUT=>"01 234"},
+ {ENV=>"LC_ALL=$locale"}],
+ ['lcl-fmt-7', '--format="%0\'\'6f" 1234',{OUT=>"01 234"},
+ {ENV=>"LC_ALL=$locale"}],
+
+ );
+if ($locale ne 'C')
+ {
+ # Reset locale to 'C' if LOCALE_FR_UTF8 doesn't output as expected
+ # as determined by the separate printf program.
+ open(LOC_NUM, "env LC_ALL=$locale printf \"%'d\" 1234|")
+ or die "Can't fork command: $!";
+ my $loc_num = <LOC_NUM>;
+ close(LOC_NUM) || die "Failed to read grouped number from printf";
+ if ($loc_num ne '1 234')
+ {
+ warn "skipping locale grouping tests as 1234 groups like $loc_num\n";
+ $locale = 'C';
+ }
+ }
+push @Tests, @Locale_Tests if $locale ne 'C';
+
+## Check all valid/invalid suffixes
+foreach my $suf ( 'A' .. 'Z', 'a' .. 'z' ) {
+ if ( $suf =~ /^[KMGTPEZY]$/ )
+ {
+ push @Tests, ["auto-suf-si-$suf","--from=si --to=si 1$suf",
+ {OUT=>"1.0$suf"}];
+ push @Tests, ["auto-suf-iec-$suf","--from=iec --to=iec 1$suf",
+ {OUT=>"1.0$suf"}];
+ push @Tests, ["auto-suf-auto-$suf","--from=auto --to=iec 1${suf}i",
+ {OUT=>"1.0$suf"}];
+ push @Tests, ["auto-suf-iec-to-ieci-$suf","--from=iec --to=iec-i 1${suf}",
+ {OUT=>"1.0${suf}i"}];
+ push @Tests, ["auto-suf-ieci-to-iec-$suf",
+ "--from=iec-i --to=iec 1${suf}i",{OUT=>"1.0${suf}"}];
+ }
+ else
+ {
+ push @Tests, ["auto-suf-si-$suf","--from=si --to=si 1$suf",
+ {ERR=>"$prog: invalid suffix in input: '1${suf}'\n"},
+ {EXIT=>2}];
+ }
+}
+
+# Prepend the command line argument and append a newline to end
+# of each expected 'OUT' string.
+my $t;
+
+Test:
+foreach $t (@Tests)
+ {
+ # Don't fiddle with expected OUT string if there's a nonzero exit status.
+ foreach my $e (@$t)
+ {
+ ref $e eq 'HASH' && exists $e->{EXIT} && $e->{EXIT}
+ and next Test;
+ }
+
+ foreach my $e (@$t)
+ {
+ ref $e eq 'HASH' && exists $e->{OUT}
+ and $e->{OUT} .= "\n"
+ }
+ }
+
+# Add test for null-terminated lines (after adjusting the OUT string, above).
+push @Tests, @NullDelim_Tests;
+
+my $save_temps = $ENV{SAVE_TEMPS};
+my $verbose = $ENV{VERBOSE};
+
+my $fail = run_tests ($program_name, $prog, \@Tests, $save_temps, $verbose);
+exit $fail;
diff --git a/tests/misc/od-N.sh b/tests/misc/od-N.sh
new file mode 100755
index 0000000..a231308
--- /dev/null
+++ b/tests/misc/od-N.sh
@@ -0,0 +1,32 @@
+#!/bin/sh
+# Verify that 'od -N N' reads no more than N bytes of input.
+
+# Copyright (C) 2001-2016 Free Software Foundation, Inc.
+
+# This program is free software: you can redistribute it and/or modify
+# it under the terms of the GNU General Public License as published by
+# the Free Software Foundation, either version 3 of the License, or
+# (at your option) any later version.
+
+# This program is distributed in the hope that it will be useful,
+# but WITHOUT ANY WARRANTY; without even the implied warranty of
+# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
+# GNU General Public License for more details.
+
+# You should have received a copy of the GNU General Public License
+# along with this program. If not, see <http://www.gnu.org/licenses/>.
+
+. "${srcdir=.}/tests/init.sh"; path_prepend_ ./src
+print_ver_ od
+
+echo abcdefg > in || framework_failure_
+
+
+(od -An -N3 -c; od -An -N3 -c) < in > out
+cat <<EOF > exp || fail=1
+ a b c
+ d e f
+EOF
+compare exp out || fail=1
+
+Exit $fail
diff --git a/tests/misc/od-endian.sh b/tests/misc/od-endian.sh
new file mode 100755
index 0000000..3336409
--- /dev/null
+++ b/tests/misc/od-endian.sh
@@ -0,0 +1,49 @@
+#!/bin/sh
+# verify that od --endian works properly
+
+# Copyright (C) 2014-2016 Free Software Foundation, Inc.
+
+# This program is free software: you can redistribute it and/or modify
+# it under the terms of the GNU General Public License as published by
+# the Free Software Foundation, either version 3 of the License, or
+# (at your option) any later version.
+
+# This program is distributed in the hope that it will be useful,
+# but WITHOUT ANY WARRANTY; without even the implied warranty of
+# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
+# GNU General Public License for more details.
+
+# You should have received a copy of the GNU General Public License
+# along with this program. If not, see <http://www.gnu.org/licenses/>.
+
+. "${srcdir=.}/tests/init.sh"; path_prepend_ ./src
+print_ver_ od
+
+in='0123456789abcdef'
+
+NL='
+'
+
+# rev(1) is not generally available, so here's a simplistic
+# implementation sufficient for our purposes.
+rev() {
+ while read line; do
+ printf '%s' "$line" | sed "s/./&\\$NL/g" | tac | paste -s -d ''
+ done
+}
+
+in_swapped() { printf '%s' "$in" | sed "s/.\{$1\}/&\\$NL/g" | rev |tr -d '\n'; }
+
+for e in little big; do
+ test $e = little && eo=big || eo=little
+ for s in 1 2 4 8 16; do
+ for t in x f; do
+ od -t $t$s --endian=$e /dev/null > /dev/null 2>&1 || continue
+ printf '%s' "$in" | od -An -t $t$s --endian=$e > out1
+ in_swapped "$s" | od -An -t $t$s --endian=$eo > out2
+ compare out1 out2 || fail=1
+ done
+ done
+done
+
+Exit $fail
diff --git a/tests/misc/od-float.sh b/tests/misc/od-float.sh
new file mode 100755
index 0000000..24054e7
--- /dev/null
+++ b/tests/misc/od-float.sh
@@ -0,0 +1,72 @@
+#!/bin/sh
+# Test od on floating-point values.
+
+# Copyright (C) 2010-2016 Free Software Foundation, Inc.
+
+# This program is free software: you can redistribute it and/or modify
+# it under the terms of the GNU General Public License as published by
+# the Free Software Foundation, either version 3 of the License, or
+# (at your option) any later version.
+
+# This program is distributed in the hope that it will be useful,
+# but WITHOUT ANY WARRANTY; without even the implied warranty of
+# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
+# GNU General Public License for more details.
+
+# You should have received a copy of the GNU General Public License
+# along with this program. If not, see <http://www.gnu.org/licenses/>.
+
+. "${srcdir=.}/tests/init.sh"; path_prepend_ ./src
+print_ver_ od
+
+export LC_ALL=C
+
+# Test for a bug in coreutils up through 8.7: od was losing
+# information when asked to parse floating-point values. The numeric
+# tests are valid only on Intel-like hosts, but that should be good
+# enough to detect regressions, as they are designed to succeed on
+# non-Intel-like hosts. Also, test for another bug in coreutils 8.7
+# on x86: sometimes there was no space between the columns.
+
+set x $(echo aaaabaaa | tr ab '\376\377' | od -t fF) ||
+ fail=1
+case "$*" in
+*0-*) fail=1;;
+esac
+case $3,$4 in
+-1.694740e+38,-1.694740e+38) fail=1;;
+esac
+
+set x $(echo aaaaaaaabaaaaaaa | tr ab '\376\377' | od -t fD) ||
+ fail=1
+case "$*" in
+*0-*) fail=1;;
+esac
+case $3,$4 in
+-5.314010372517808e+303,-5.314010372517808e+303) fail=1;;
+esac
+
+set x $(echo aaaaaaaaaaaaaaaabaaaaaaaaaaaaaaa | tr ab '\376\377' | od -t fL) ||
+ fail=1
+case "$*" in
+*0-*) fail=1;;
+esac
+case $3,$4 in
+-1.023442870282055988e+4855,-1.023442870282055988e+4855) fail=1;;
+esac
+
+# Ensure od doesn't crash as it did on glibc <= 2.5:
+# https://sourceware.org/bugzilla/show_bug.cgi?id=4586
+set x $(printf 00000000ff000000 | tr 0f '\000\377' | od -t fL) || fail=1
+# With coreutils <= 8.7 we used to print "nan" for the above invalid value.
+# However since v8.7-22-ga71c22f we deferred to the system printf routines
+# through the use of the ftoastr module. So the following check would only
+# be valid on x86_64 if we again handle the conversion internally or
+# if this glibc bug is resolved:
+# https://sourceware.org/bugzilla/show_bug.cgi?id=17661
+#case "$*" in
+#*nan*) ;;
+#*) fail=1;;
+#esac
+
+Exit $fail
diff --git a/tests/misc/od-j.sh b/tests/misc/od-j.sh
new file mode 100755
index 0000000..9240a44
--- /dev/null
+++ b/tests/misc/od-j.sh
@@ -0,0 +1,39 @@
+#!/bin/sh
+# Verify that 'od -j N' skips N bytes of input.
+
+# Copyright 2014-2016 Free Software Foundation, Inc.
+
+# This program is free software: you can redistribute it and/or modify
+# it under the terms of the GNU General Public License as published by
+# the Free Software Foundation, either version 3 of the License, or
+# (at your option) any later version.
+
+# This program is distributed in the hope that it will be useful,
+# but WITHOUT ANY WARRANTY; without even the implied warranty of
+# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
+# GNU General Public License for more details.
+
+# You should have received a copy of the GNU General Public License
+# along with this program. If not, see <http://www.gnu.org/licenses/>.
+
+. "${srcdir=.}/tests/init.sh"; path_prepend_ ./src
+print_ver_ od
+
+for file in ${srcdir=.}/tests/init.sh /proc/version /sys/kernel/profiling; do
+ test -r $file || continue
+
+ cp -f $file copy &&
+ bytes=$(wc -c < copy) || framework_failure_
+
+ od -An $file > exp || fail=1
+ od -An -j $bytes $file $file > out || fail=1
+ compare exp out || fail=1
+
+ od -An -j 4096 copy copy > exp1 2> experr1; expstatus=$?
+ od -An -j 4096 $file $file > out1 2> err1; status=$?
+ test $status -eq $expstatus || fail=1
+ compare exp1 out1 || fail=1
+ compare experr1 err1 || fail=1
+done
+
+Exit $fail
diff --git a/tests/misc/od-multiple-t.sh b/tests/misc/od-multiple-t.sh
new file mode 100755
index 0000000..06c167c
--- /dev/null
+++ b/tests/misc/od-multiple-t.sh
@@ -0,0 +1,42 @@
+#!/bin/sh
+# verify that multiple -t specifiers to od align well
+# This would fail before coreutils-6.13.
+
+# Copyright (C) 2008-2016 Free Software Foundation, Inc.
+
+# This program is free software: you can redistribute it and/or modify
+# it under the terms of the GNU General Public License as published by
+# the Free Software Foundation, either version 3 of the License, or
+# (at your option) any later version.
+
+# This program is distributed in the hope that it will be useful,
+# but WITHOUT ANY WARRANTY; without even the implied warranty of
+# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
+# GNU General Public License for more details.
+
+# You should have received a copy of the GNU General Public License
+# along with this program. If not, see <http://www.gnu.org/licenses/>.
+
+. "${srcdir=.}/tests/init.sh"; path_prepend_ ./src
+print_ver_ od
+
+# Choose 48 bytes for the input, as that is lcm for 1, 2, 4, 8, 12, 16;
+# we don't anticipate any other native object size on modern hardware.
+seq 19 > in || framework_failure_
+test $(wc -c < in) -eq 48 || framework_failure_
+
+
+list='a c dC dS dI dL oC oS oI oL uC uS uI uL xC xS xI xL fF fD fL'
+for format1 in $list; do
+ for format2 in $list; do
+ od -An -t${format1}z -t${format2}z in > out-raw || fail=1
+ linewidth=$(head -n1 out-raw | wc -c)
+ linecount=$(wc -l < out-raw)
+ echo $format1 $format2 $(wc -c < out-raw) >> out
+ echo $format1 $format2 $(expr $linewidth '*' $linecount) >> exp
+ done
+done
+
+compare exp out || fail=1
+
+Exit $fail
diff --git a/tests/misc/od-x8.sh b/tests/misc/od-x8.sh
new file mode 100755
index 0000000..e8b43ab
--- /dev/null
+++ b/tests/misc/od-x8.sh
@@ -0,0 +1,43 @@
+#!/bin/sh
+# verify that od -t x8 works properly
+# This would fail before coreutils-4.5.2.
+
+# Copyright (C) 2002-2016 Free Software Foundation, Inc.
+
+# This program is free software: you can redistribute it and/or modify
+# it under the terms of the GNU General Public License as published by
+# the Free Software Foundation, either version 3 of the License, or
+# (at your option) any later version.
+
+# This program is distributed in the hope that it will be useful,
+# but WITHOUT ANY WARRANTY; without even the implied warranty of
+# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
+# GNU General Public License for more details.
+
+# You should have received a copy of the GNU General Public License
+# along with this program. If not, see <http://www.gnu.org/licenses/>.
+
+. "${srcdir=.}/tests/init.sh"; path_prepend_ ./src
+print_ver_ od
+
+od -t x8 /dev/null >/dev/null ||
+ skip_ "od lacks support for 8-byte quantities"
+
+echo abcdefgh |tr -d '\n' > in || framework_failure_
+
+
+od -An -t x8 in > out-raw || fail=1
+sed 's/^ //;s/\(..\)/\1 /g;s/ $//' out-raw \
+ | tr ' ' '\n' \
+ | sort -n \
+ > out
+
+od -An -t x1 in \
+ | sed 's/^ //' \
+ | tr ' ' '\n' \
+ | sort -n \
+ > exp
+
+compare exp out || fail=1
+
+Exit $fail
diff --git a/tests/misc/od.pl b/tests/misc/od.pl
new file mode 100755
index 0000000..0c148b7
--- /dev/null
+++ b/tests/misc/od.pl
@@ -0,0 +1,74 @@
+#!/usr/bin/perl
+# Exercise od
+
+# Copyright (C) 2006-2016 Free Software Foundation, Inc.
+
+# This program is free software: you can redistribute it and/or modify
+# it under the terms of the GNU General Public License as published by
+# the Free Software Foundation, either version 3 of the License, or
+# (at your option) any later version.
+
+# This program is distributed in the hope that it will be useful,
+# but WITHOUT ANY WARRANTY; without even the implied warranty of
+# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
+# GNU General Public License for more details.
+
+# You should have received a copy of the GNU General Public License
+# along with this program. If not, see <http://www.gnu.org/licenses/>.
+
+use strict;
+
+(my $program_name = $0) =~ s|.*/||;
+
+# Turn off localization of executable's output.
+@ENV{qw(LANGUAGE LANG LC_ALL)} = ('C') x 3;
+
+# Use a file in /proc whose size is not likely to
+# change between the wc and od invocations.
+my $proc_file = '/proc/version';
+-f $proc_file
+ or $proc_file = '/dev/null';
+
+# Count the bytes in $proc_file, _by reading_.
+my $len = 0;
+open FH, '<', $proc_file
+ or die "$program_name: can't open '$proc_file' for reading: $!\n";
+while (defined (my $line = <FH>))
+ {
+ $len += length $line;
+ }
+close FH;
+my $proc_file_byte_count = $len;
+
+my @Tests =
+ (
+ # Skip the exact length of the input file.
+ # Up to coreutils-6.9, this would ignore the "-j 1".
+ ['j-bug1', '-c -j 1 -An', {IN=>{g=>'a'}}, {OUT=>''}],
+ ['j-bug2', '-c -j 2 -An', {IN=>{g=>'a'}}, {IN=>{h=>'b'}}, {OUT=>''}],
+ # Skip the sum of the lengths of the first three inputs.
+ ['j-bug3', '-c -j 3 -An', {IN=>{g=>'a'}}, {IN=>{h=>'b'}},
+ {IN=>{i=>'c'}}, {OUT=>''}],
+ # Skip the sum of the lengths of the first three inputs, printing the 4th.
+ ['j-bug4', '-c -j 3 -An', {IN=>{g=>'a'}}, {IN=>{h=>'b'}},
+ {IN=>{i=>'c'}}, {IN=>{j=>'d'}}, {OUT=>" d\n"}],
+
+ # Ensure that od -j doesn't fseek across a nonempty file in /proc,
+ # even if the kernel reports that the file has stat.st_size = 0.
+ ['j-proc', "-An -c -j $proc_file_byte_count $proc_file",
+ {IN=>{f2=>'e'}}, {OUT=>" e\n"}],
+
+ # Ensure that a large width does not cause trouble.
+ # From coreutils-7.0 through coreutils-8.21, these would print
+ # approximately 128KiB of padding.
+ ['wide-a', '-a -w65537 -An', {IN=>{g=>'x'}}, {OUT=>" x\n"}],
+ ['wide-c', '-c -w65537 -An', {IN=>{g=>'x'}}, {OUT=>" x\n"}],
+ ['wide-x', '-tx1 -w65537 -An', {IN=>{g=>'B'}}, {OUT=>" 42\n"}],
+ );
+
+my $save_temps = $ENV{DEBUG};
+my $verbose = $ENV{VERBOSE};
+
+my $prog = 'od';
+my $fail = run_tests ($program_name, $prog, \@Tests, $save_temps, $verbose);
+exit $fail;
diff --git a/tests/misc/paste-no-nl b/tests/misc/paste-no-nl
deleted file mode 100755
index 6fafb08..0000000
--- a/tests/misc/paste-no-nl
+++ /dev/null
@@ -1,64 +0,0 @@
-#!/bin/sh
-# -*- perl -*-
-# Ensure that paste properly handles files lacking a final newline.
-
-# Copyright (C) 2003, 2005 Free Software Foundation, Inc.
-
-# This program is free software; you can redistribute it and/or modify
-# it under the terms of the GNU General Public License as published by
-# the Free Software Foundation; either version 2 of the License, or
-# (at your option) any later version.
-
-# This program is distributed in the hope that it will be useful,
-# but WITHOUT ANY WARRANTY; without even the implied warranty of
-# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
-# GNU General Public License for more details.
-
-# You should have received a copy of the GNU General Public License
-# along with this program; if not, write to the Free Software
-# Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA
-# 02110-1301, USA.
-
-: ${PERL=perl}
-: ${srcdir=.}
-
-$PERL -e 1 > /dev/null 2>&1 || {
- echo 1>&2 "$0: configure didn't find a usable version of Perl," \
- "so can't run this test"
- exit 77
-}
-
-exec $PERL -w -I$srcdir/.. -MCoreutils -- - <<\EOF
-#/
-require 5.003;
-use strict;
-
-(my $program_name = $0) =~ s|.*/||;
-
-$ENV{PROG} = 'paste';
-
-# Turn off localization of executable's ouput.
-@ENV{qw(LANGUAGE LANG LC_ALL)} = ('C') x 3;
-
-my @Tests =
- (
- ['no-nl-1', {IN=>"a"}, {IN=>"b"}, {OUT=>"a\tb\n"}],
- ['no-nl-2', {IN=>"a\n"}, {IN=>"b"}, {OUT=>"a\tb\n"}],
- ['no-nl-3', {IN=>"a"}, {IN=>"b\n"}, {OUT=>"a\tb\n"}],
- ['no-nl-4', {IN=>"a\n"}, {IN=>"b\n"}, {OUT=>"a\tb\n"}],
-
- # Same as above, but with a two lines in each input file and
- # the addition of the -d option to make SPACE be the output delimiter.
- ['no-nla1', '-d" "', {IN=>"1\na"}, {IN=>"2\nb"}, {OUT=>"1 2\na b\n"}],
- ['no-nla2', '-d" "', {IN=>"1\na\n"}, {IN=>"2\nb"}, {OUT=>"1 2\na b\n"}],
- ['no-nla3', '-d" "', {IN=>"1\na"}, {IN=>"2\nb\n"}, {OUT=>"1 2\na b\n"}],
- ['no-nla4', '-d" "', {IN=>"1\na\n"}, {IN=>"2\nb\n"}, {OUT=>"1 2\na b\n"}],
- );
-
-my $save_temps = $ENV{DEBUG};
-my $verbose = $ENV{VERBOSE};
-
-my $prog = $ENV{PROG} || die "$0: \$PROG not specified in environment\n";
-my $fail = run_tests ($program_name, $prog, \@Tests, $save_temps, $verbose);
-exit $fail;
-EOF
diff --git a/tests/misc/paste.pl b/tests/misc/paste.pl
new file mode 100755
index 0000000..7c95597
--- /dev/null
+++ b/tests/misc/paste.pl
@@ -0,0 +1,74 @@
+#!/usr/bin/perl
+# Test paste.
+
+# Copyright (C) 2003-2016 Free Software Foundation, Inc.
+
+# This program is free software: you can redistribute it and/or modify
+# it under the terms of the GNU General Public License as published by
+# the Free Software Foundation, either version 3 of the License, or
+# (at your option) any later version.
+
+# This program is distributed in the hope that it will be useful,
+# but WITHOUT ANY WARRANTY; without even the implied warranty of
+# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
+# GNU General Public License for more details.
+
+# You should have received a copy of the GNU General Public License
+# along with this program. If not, see <http://www.gnu.org/licenses/>.
+
+use strict;
+
+(my $program_name = $0) =~ s|.*/||;
+
+# Turn off localization of executable's output.
+@ENV{qw(LANGUAGE LANG LC_ALL)} = ('C') x 3;
+
+my $prog = 'paste';
+my $msg = "$prog: delimiter list ends with an unescaped backslash: ";
+
+my @Tests =
+ (
+ # Ensure that paste properly handles files lacking a final newline.
+ ['no-nl-1', {IN=>"a"}, {IN=>"b"}, {OUT=>"a\tb\n"}],
+ ['no-nl-2', {IN=>"a\n"}, {IN=>"b"}, {OUT=>"a\tb\n"}],
+ ['no-nl-3', {IN=>"a"}, {IN=>"b\n"}, {OUT=>"a\tb\n"}],
+ ['no-nl-4', {IN=>"a\n"}, {IN=>"b\n"}, {OUT=>"a\tb\n"}],
+
+ ['zno-nl-1', '-z', {IN=>"a"}, {IN=>"b"}, {OUT=>"a\tb\0"}],
+ ['zno-nl-2', '-z', {IN=>"a\0"}, {IN=>"b"}, {OUT=>"a\tb\0"}],
+ ['zno-nl-3', '-z', {IN=>"a"}, {IN=>"b\0"}, {OUT=>"a\tb\0"}],
+ ['zno-nl-4', '-z', {IN=>"a\0"}, {IN=>"b\0"}, {OUT=>"a\tb\0"}],
+
+ # Same as above, but with a two lines in each input file and
+ # the addition of the -d option to make SPACE be the output delimiter.
+ ['no-nla1', '-d" "', {IN=>"1\na"}, {IN=>"2\nb"}, {OUT=>"1 2\na b\n"}],
+ ['no-nla2', '-d" "', {IN=>"1\na\n"}, {IN=>"2\nb"}, {OUT=>"1 2\na b\n"}],
+ ['no-nla3', '-d" "', {IN=>"1\na"}, {IN=>"2\nb\n"}, {OUT=>"1 2\na b\n"}],
+ ['no-nla4', '-d" "', {IN=>"1\na\n"}, {IN=>"2\nb\n"}, {OUT=>"1 2\na b\n"}],
+
+ ['zno-nla1', '-zd" "', {IN=>"1\0a"}, {IN=>"2\0b"}, {OUT=>"1 2\0a b\0"}],
+ ['zno-nla2', '-zd" "', {IN=>"1\0a\0"}, {IN=>"2\0b"}, {OUT=>"1 2\0a b\0"}],
+ ['zno-nla3', '-zd" "', {IN=>"1\0a"}, {IN=>"2\0b\0"}, {OUT=>"1 2\0a b\0"}],
+ ['zno-nla4', '-zd" "', {IN=>"1\0a\0"}, {IN=>"2\0b\0"}, {OUT=>"1 2\0a b\0"}],
+
+ # Specifying a delimiter with a trailing backslash would overrun a
+ # malloc'd buffer.
+ ['delim-bs1', q!-d'\'!, {IN=>{'a'x50=>''}}, {EXIT => 1},
+ # We print a single backslash into the expected output
+ {ERR => $msg . q!\\! . "\n"} ],
+
+ # Prior to coreutils-5.1.2, this sort of abuse would make paste
+ # scribble on command-line arguments. With paste from coreutils-5.1.0,
+ # this example would mangle the first file name argument, if it contains
+ # accepted backslash-escapes:
+ # $ paste -d\\ '123\b\b\b.....@' 2>&1 |cat -A
+ # paste: 23^H^H^H.....@...@: No such file or directory$
+ ['delim-bs2', q!-d'\'!, {IN=>{'123\b\b\b.....@'=>''}}, {EXIT => 1},
+ {ERR => $msg . q!\\! . "\n"} ],
+ );
+
+my $save_temps = $ENV{DEBUG};
+my $verbose = $ENV{VERBOSE};
+
+my $fail = run_tests ($program_name, $prog, \@Tests, $save_temps, $verbose);
+exit $fail;
diff --git a/tests/misc/pathchk1 b/tests/misc/pathchk1
deleted file mode 100755
index 9305f0c..0000000
--- a/tests/misc/pathchk1
+++ /dev/null
@@ -1,57 +0,0 @@
-#!/bin/sh
-# pathchk tests
-
-# Copyright (C) 2002, 2004, 2005, 2006 Free Software Foundation, Inc.
-
-# This program is free software; you can redistribute it and/or modify
-# it under the terms of the GNU General Public License as published by
-# the Free Software Foundation; either version 2 of the License, or
-# (at your option) any later version.
-
-# This program is distributed in the hope that it will be useful,
-# but WITHOUT ANY WARRANTY; without even the implied warranty of
-# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
-# GNU General Public License for more details.
-
-# You should have received a copy of the GNU General Public License
-# along with this program; if not, write to the Free Software
-# Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA
-# 02110-1301, USA.
-
-if test "$VERBOSE" = yes; then
- set -x
- pathchk --version
-fi
-
-PRIV_CHECK_ARG=require-non-root . $srcdir/../priv-check
-
-pwd=`pwd`
-t0=`echo "$0"|sed 's,.*/,,'`.tmp; tmp=$t0/$$
-trap 'status=$?; cd "$pwd" && rm -rf $t0 && exit $status' 0
-trap '(exit $?); exit' 1 2 13 15
-
-framework_failure=0
-mkdir -p $tmp || framework_failure=1
-cd $tmp || framework_failure=1
-touch file || framework_failure=1
-
-if test $framework_failure = 1; then
- echo "$0: failure in testing framework" 1>&2
- (exit 1); exit 1
-fi
-
-fail=0
-
-# This should exit nonzero. Before 2.0.13, it gave a diagnostic,
-# but exited successfully.
-pathchk file/x > /dev/null 2>&1 && fail=1
-
-# This should exit nonzero. Through 5.3.0 it exited with status zero.
-pathchk -p '' > /dev/null 2>&1 && fail=1
-
-# This tests the new -P option.
-pathchk -P '' > /dev/null 2>&1 && fail=1
-pathchk -P -- - > /dev/null 2>&1 && fail=1
-pathchk -p -P x/- > /dev/null 2>&1 && fail=1
-
-(exit $fail); exit $fail
diff --git a/tests/misc/pathchk1.sh b/tests/misc/pathchk1.sh
new file mode 100755
index 0000000..6005765
--- /dev/null
+++ b/tests/misc/pathchk1.sh
@@ -0,0 +1,38 @@
+#!/bin/sh
+# pathchk tests
+
+# Copyright (C) 2002-2016 Free Software Foundation, Inc.
+
+# This program is free software: you can redistribute it and/or modify
+# it under the terms of the GNU General Public License as published by
+# the Free Software Foundation, either version 3 of the License, or
+# (at your option) any later version.
+
+# This program is distributed in the hope that it will be useful,
+# but WITHOUT ANY WARRANTY; without even the implied warranty of
+# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
+# GNU General Public License for more details.
+
+# You should have received a copy of the GNU General Public License
+# along with this program. If not, see <http://www.gnu.org/licenses/>.
+
+. "${srcdir=.}/tests/init.sh"; path_prepend_ ./src
+print_ver_ pathchk
+skip_if_root_
+
+touch file || framework_failure_
+
+
+# This should exit nonzero. Before 2.0.13, it gave a diagnostic,
+# but exited successfully.
+returns_ 1 pathchk file/x > /dev/null 2>&1 || fail=1
+
+# This should exit nonzero. Through 5.3.0 it exited with status zero.
+returns_ 1 pathchk -p '' > /dev/null 2>&1 || fail=1
+
+# This tests the new -P option.
+returns_ 1 pathchk -P '' > /dev/null 2>&1 || fail=1
+returns_ 1 pathchk -P -- - > /dev/null 2>&1 || fail=1
+returns_ 1 pathchk -p -P x/- > /dev/null 2>&1 || fail=1
+
+Exit $fail
diff --git a/tests/misc/pr b/tests/misc/pr
deleted file mode 100755
index a40ea31..0000000
--- a/tests/misc/pr
+++ /dev/null
@@ -1,61 +0,0 @@
-#!/bin/sh
-# -*- perl -*-
-# Exercise a bug with pr -m -s
-
-# Copyright (C) 2007 Free Software Foundation, Inc.
-
-# This program is free software; you can redistribute it and/or modify
-# it under the terms of the GNU General Public License as published by
-# the Free Software Foundation; either version 2 of the License, or
-# (at your option) any later version.
-
-# This program is distributed in the hope that it will be useful,
-# but WITHOUT ANY WARRANTY; without even the implied warranty of
-# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
-# GNU General Public License for more details.
-
-# You should have received a copy of the GNU General Public License
-# along with this program; if not, write to the Free Software
-# Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA
-# 02110-1301, USA.
-
-: ${PERL=perl}
-: ${srcdir=.}
-
-. $srcdir/../envvar-check
-
-$PERL -e 1 > /dev/null 2>&1 || {
- echo 1>&2 "$0: configure didn't find a usable version of Perl," \
- "so can't run this test"
- exit 77
-}
-
-exec $PERL -w -I$srcdir/.. -MCoreutils -- - <<\EOF
-#/
-require 5.003;
-use strict;
-
-(my $program_name = $0) =~ s|.*/||;
-
-$ENV{PROG} = 'pr';
-my $ME = $ENV{PROG};
-
-# Turn off localization of executable's ouput.
-@ENV{qw(LANGUAGE LANG LC_ALL)} = ('C') x 3;
-
-my @Tests =
- (
- ['merge-w-tabs', '-m -s -t',
- {IN=>{1=>"a\tb\tc\n"}},
- {IN=>{2=>"m\tn\to\n"}},
- {IN=>{3=>"x\ty\tz\n"}},
- {OUT=>join("\t", qw(a b c m n o x y z)) . "\n"} ],
- );
-
-my $save_temps = $ENV{DEBUG};
-my $verbose = $ENV{VERBOSE};
-
-my $prog = $ENV{PROG} || die "$0: \$PROG not specified in environment\n";
-my $fail = run_tests ($program_name, $prog, \@Tests, $save_temps, $verbose);
-exit $fail;
-EOF
diff --git a/tests/misc/printenv.sh b/tests/misc/printenv.sh
new file mode 100755
index 0000000..5df4146
--- /dev/null
+++ b/tests/misc/printenv.sh
@@ -0,0 +1,85 @@
+#!/bin/sh
+# Verify behavior of printenv.
+
+# Copyright (C) 2009-2016 Free Software Foundation, Inc.
+
+# This program is free software: you can redistribute it and/or modify
+# it under the terms of the GNU General Public License as published by
+# the Free Software Foundation, either version 3 of the License, or
+# (at your option) any later version.
+
+# This program is distributed in the hope that it will be useful,
+# but WITHOUT ANY WARRANTY; without even the implied warranty of
+# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
+# GNU General Public License for more details.
+
+# You should have received a copy of the GNU General Public License
+# along with this program. If not, see <http://www.gnu.org/licenses/>.
+
+. "${srcdir=.}/tests/init.sh"; path_prepend_ ./src
+print_ver_ printenv
+
+# Without arguments, printenv behaves like env. Some shells provide
+# printenv as a builtin, so we must invoke it via "env".
+# But beware of $_, set by many shells to the last command run.
+# Also, filter out LD_PRELOAD, which is set when running under valgrind.
+# Note the apparently redundant "env env": this is to ensure to get
+# env's output the same way as that of printenv and works around a bug
+# on aarch64 at least where libc's execvp reverses the order of the
+# output.
+env -- env | grep -Ev '^(_|LD_PRELOAD)=' > exp || framework_failure_
+env -- printenv | grep -Ev '^(_|LD_PRELOAD)=' > out || fail=1
+compare exp out || fail=1
+
+# POSIX is clear that environ may, but need not be, sorted.
+# Environment variable values may contain newlines, which cannot be
+# observed by merely inspecting output from printenv.
+if env -- printenv | grep '^ENV_TEST' >/dev/null ; then
+ skip_ "environment has potential interference from ENV_TEST*"
+fi
+
+# Printing a single variable's value.
+env -- printenv ENV_TEST > out
+test $? = 1 || fail=1
+compare /dev/null out || fail=1
+echo a > exp || framework_failure_
+ENV_TEST=a env -- printenv ENV_TEST > out || fail=1
+compare exp out || fail=1
+
+# Printing multiple variables. Order follows command line.
+ENV_TEST1=a ENV_TEST2=b env -- printenv ENV_TEST2 ENV_TEST1 ENV_TEST2 > out \
+ || fail=1
+ENV_TEST1=a ENV_TEST2=b env -- printenv ENV_TEST1 ENV_TEST2 >> out || fail=1
+cat <<EOF > exp || framework_failure_
+b
+a
+b
+a
+b
+EOF
+compare exp out || fail=1
+
+# Exit status reflects missing variable, but remaining arguments processed.
+ENV_TEST1=a env -- printenv ENV_TEST2 ENV_TEST1 > out
+test $? = 1 || fail=1
+ENV_TEST1=a env -- printenv ENV_TEST1 ENV_TEST2 >> out
+test $? = 1 || fail=1
+cat <<EOF > exp || framework_failure_
+a
+a
+EOF
+compare exp out || fail=1
+
+# Non-standard environment variable name. Shells won't create it, but
+# env can, and printenv must be able to deal with it.
+echo b > exp || framework_failure_
+env -- -a=b printenv -- -a > out || fail=1
+compare exp out || fail=1
+
+# Silently reject invalid env-var names.
+# Bug present through coreutils 8.0.
+env a=b=c printenv a=b > out
+test $? = 1 || fail=1
+compare /dev/null out || fail=1
+
+Exit $fail
diff --git a/tests/misc/printf b/tests/misc/printf
deleted file mode 100755
index 481cb37..0000000
--- a/tests/misc/printf
+++ /dev/null
@@ -1,114 +0,0 @@
-#!/bin/sh
-# basic tests for printf
-
-# Copyright (C) 2002, 2003, 2004, 2006 Free Software Foundation, Inc.
-
-# This program is free software; you can redistribute it and/or modify
-# it under the terms of the GNU General Public License as published by
-# the Free Software Foundation; either version 2 of the License, or
-# (at your option) any later version.
-
-# This program is distributed in the hope that it will be useful,
-# but WITHOUT ANY WARRANTY; without even the implied warranty of
-# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
-# GNU General Public License for more details.
-
-# You should have received a copy of the GNU General Public License
-# along with this program; if not, write to the Free Software
-# Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA
-# 02110-1301, USA.
-
-prog=`pwd`/../../src/printf
-
-if test "$VERBOSE" = yes; then
- set -x
- "$prog" --version
-fi
-
-pwd=`pwd`
-t0=`echo "$0"|sed 's,.*/,,'`.tmp; tmp=$t0/$$
-trap 'status=$?; cd "$pwd" && chmod -R u+rwx $t0 && rm -rf $t0 && exit $status' 0
-trap '(exit $?); exit $?' 1 2 13 15
-
-framework_failure=0
-mkdir -p $tmp || framework_failure=1
-cd $tmp || framework_failure=1
-
-if test $framework_failure = 1; then
- echo "$0: failure in testing framework" 1>&2
- (exit 1); exit 1
-fi
-
-fail=0
-
-# This would fail (by printing the `--') for printf in sh-utils
-# and in coreutils 4.5.1.
-"$prog" -- 'foo\n' > out || fail=1
-cat <<\EOF > exp
-foo
-EOF
-
-cmp out exp || fail=1
-test $fail = 1 && diff out exp 2> /dev/null
-
-rm -f out exp
-# Until coreutils-4.5.10, this would elicit a segfault.
-"$prog" '1 %*sy\n' -3 x > out || fail=1
-
-# Until coreutils 5.2.2, this would succeed.
-if POSIXLY_CORRECT=1 "$prog" '2 \x' >/dev/null 2>&1; then
- fail=1
-else
- echo '2 failed, as expected' >> out
-fi
-
-# Until coreutils-4.5.12, these would fail.
-"$prog" '3 \x40\n' >> out || fail=1
-POSIXLY_CORRECT=1 \
-"$prog" '4 \x40\n' >> out || fail=1
-"$prog" '5 % +d\n' 234 >> out || fail=1
-
-# This should print "6 !\n", but don't rely on `!' being the
-# one-byte representation of octal 041. With printf prior to
-# coreutils-5.0.1, it would print six bytes: "6 \41\n".
-"$prog" '6 \41\n' | tr '\41' '!' >> out
-
-# Note that as of coreutils-5.0.1, printf with a format of '\0002x'
-# prints a NUL byte followed by the digit `2' and an `x'.
-# By contrast bash's printf outputs the same thing as $(printf '\2x') does.
-"$prog" '7 \2y \02y \002y \0002y\n' |tr '\0\2' '*=' >> out
-
-"$prog" '8 %b %b %b %b\n' '\1y' '\01y' '\001y' '\0001y'|tr '\1' = >> out
-
-"$prog" '9 %*dx\n' -2 0 >>out || fail=1
-
-"$prog" '10 %.*dx\n' -2147483648 0 >>out || fail=1
-
-"$prog" '11 %*c\n' 2 x >>out || fail=1
-
-"$prog" '%#d\n' 0 >>out 2> /dev/null && fail=1
-
-"$prog" '%0s\n' 0 >>out 2> /dev/null && fail=1
-
-"$prog" '%.9c\n' 0 >>out 2> /dev/null && fail=1
-
-"$prog" '%'\''s\n' 0 >>out 2> /dev/null && fail=1
-
-cat <<\EOF > exp
-1 x y
-2 failed, as expected
-3 @
-4 @
-5 +234
-6 !
-7 =y =y =y *2y
-8 =y =y =y =y
-9 0 x
-10 0x
-11 x
-EOF
-
-cmp out exp || fail=1
-test $fail = 1 && diff -au out exp 2> /dev/null
-
-(exit $fail); exit $fail
diff --git a/tests/misc/printf-cov.pl b/tests/misc/printf-cov.pl
new file mode 100755
index 0000000..c1e8acd
--- /dev/null
+++ b/tests/misc/printf-cov.pl
@@ -0,0 +1,101 @@
+#!/usr/bin/perl
+# improve printf.c test coverage
+
+# Copyright (C) 2008-2016 Free Software Foundation, Inc.
+
+# This program is free software: you can redistribute it and/or modify
+# it under the terms of the GNU General Public License as published by
+# the Free Software Foundation, either version 3 of the License, or
+# (at your option) any later version.
+
+# This program is distributed in the hope that it will be useful,
+# but WITHOUT ANY WARRANTY; without even the implied warranty of
+# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
+# GNU General Public License for more details.
+
+# You should have received a copy of the GNU General Public License
+# along with this program. If not, see <http://www.gnu.org/licenses/>.
+
+use strict;
+
+my $prog = 'printf';
+my $try = "Try '$prog --help' for more information.\n";
+my $pow_2_31 = 2**31;
+
+# Turn off localization of executable's output.
+@ENV{qw(LANGUAGE LANG LC_ALL)} = ('C') x 3;
+
+my @Tests =
+(
+ ['no-args', {EXIT=>1}, {ERR=>"$prog: missing operand\n$try"}],
+ ['no-arg2', '--', {EXIT=>1}, {ERR=>"$prog: missing operand\n$try"}],
+ ['escape-1', q('\a\b\f\n\r\t\v\z\c'), {OUT=>"\a\b\f\n\r\t\x0b\\z"}],
+ ['hex-ucX', '%X 999', {OUT=>"3E7"}],
+ ['hex-ucXw', '%4X 999', {OUT=>" 3E7"}],
+ ['hex-ucXp', '%.4X 999', {OUT=>"03E7"}],
+ ['hex-ucXwp', '%5.4X 999', {OUT=>" 03E7"}],
+ ['hex-vw', '%*X 4 42', {OUT=>" 2A"}],
+ ['hex-vp', '%.*X 4 42', {OUT=>"002A"}],
+ ['hex-vwvp', '%*.*X 3 2 15', {OUT=>" 0F"}],
+ ['b', q('nl\ntab\tx'), {OUT=>"nl\ntab\tx"}],
+ ['c1', '%c 123', {OUT=>"1"}],
+ ['cw', '%\*c 3 123', {OUT=>" 1"}],
+ ['d-ucXwp', '%5.4d 999', {OUT=>" 0999"}],
+ ['d-vw', '%*d 4 42', {OUT=>" 42"}],
+ ['d-vp', '%.*d 4 42', {OUT=>"0042"}],
+ ['d-vwvp', '%*.*d 3 2 15', {OUT=>" 15"}],
+ ['d-neg-prec', '%.*d -3 15', {OUT=>"15"}],
+ ['d-big-prec', "%.*d $pow_2_31 15", # INT_MAX
+ {EXIT=>1}, {ERR=>"$prog: invalid precision: '$pow_2_31'\n"}],
+ ['d-big-fwidth', "%*d $pow_2_31 15", # INT_MAX
+ {EXIT=>1}, {ERR=>"$prog: invalid field width: '$pow_2_31'\n"}],
+ ['F', '%F 1', {OUT=>"1.000000"}],
+ ['LF', '%LF 1', {OUT=>"1.000000"}],
+ ['E', '%E 2', {OUT=>"2.000000E+00"}],
+ ['LE', '%LE 2', {OUT=>"2.000000E+00"}],
+ ['s', '%s x', {OUT=>"x"}],
+ ['sw', '%\*s 2 x', {OUT=>" x"}],
+ ['sp', '%.\*s 2 abcd', {OUT=>"ab"}],
+ ['swp', '%\*.\*s 2 2 abcd', {OUT=>"ab"}],
+ ['sw-no-args', '%\*s'],
+ ['sw-no-args2', '%.\*s'],
+ ['G-ucXwp', '%5.4G 3', {OUT=>" 3"}],
+ ['G-vw', '%*G 4 42', {OUT=>" 42"}],
+ ['G-vp', '%.*G 4 42', {OUT=>"42"}],
+ ['G-vwvp', '%*.*G 5 3 15', {OUT=>" 15"}],
+ ['esc', q('\xaa\0377'), {OUT=>"\xaa\0377"}],
+ ['esc-bad-hex', q('\x'), {EXIT=>1},
+ {ERR=>"$prog: missing hexadecimal number in escape\n"}],
+ # ['u4', q('\u09ac'), {OUT=>"\xe0a6ac"}],
+ ['u-invalid', q('\u0000'), {EXIT=>1},
+ {ERR=>"$prog: invalid universal character name \\u0000\n"}],
+ ['u-missing', q('\u'), {EXIT=>1},
+ {ERR=>"$prog: missing hexadecimal number in escape\n"}],
+ ['d-invalid', '%d no-num', {OUT=>'0'}, {EXIT=>1},
+ # Depending on the strtol implementation we expect one of these:
+ # no-num: Invalid argument (FreeBSD6)
+ # no-num: expected a numeric value (glibc, Solaris 10)
+ {ERR_SUBST => 's/Invalid argument$/expected a numeric value/'},
+ {ERR=>"$prog: 'no-num': expected a numeric value\n"}],
+ ['d-bad-suffix', '%d 9z', {OUT=>'9'}, {EXIT=>1},
+ {ERR=>"$prog: '9z': value not completely converted\n"}],
+ ['d-out-of-range', '%d '.('9'x30), {EXIT=>1},
+ {OUT=>"inaccurate"}, {OUT_SUBST => 's/\d+/inaccurate/'},
+ {ERR=>"$prog: 9...9\n"}, {ERR_SUBST => "s/'9+.*/9...9/"}],
+ ['excess', 'B 1', {OUT=>'B'},
+ {ERR=>"$prog: warning: ignoring excess arguments, starting with '1'\n"}],
+ ['percent', '%%', {OUT=>'%'}],
+ ['d-sp', q('% d' 33), {OUT=>' 33'}],
+ ['d-plus', q('%+d' 33), {OUT=>'+33'}],
+ ['d-minus', q('%-d' 33), {OUT=> '33'}],
+ ['d-zero', q('%02d' 1), {OUT=> '01'}],
+ ['d-quote', q("%'d" 3333), {OUT=> '3333'}, {OUT_SUBST => 'tr/3//c'}],
+ ['d-hash', q("%#d" 3333), {EXIT=>1},
+ {ERR=>"$prog: %#d: invalid conversion specification\n"}],
+);
+
+my $save_temps = $ENV{DEBUG};
+my $verbose = $ENV{VERBOSE};
+
+my $fail = run_tests ($prog, \$prog, \@Tests, $save_temps, $verbose);
+exit $fail;
diff --git a/tests/misc/printf-hex b/tests/misc/printf-hex
deleted file mode 100755
index d3d5d04..0000000
--- a/tests/misc/printf-hex
+++ /dev/null
@@ -1,52 +0,0 @@
-#!/bin/sh
-# make sure that only two hex. digits are consumed in a \xHHH sequence
-
-# Copyright (C) 2002, 2004, 2006 Free Software Foundation, Inc.
-
-# This program is free software; you can redistribute it and/or modify
-# it under the terms of the GNU General Public License as published by
-# the Free Software Foundation; either version 2 of the License, or
-# (at your option) any later version.
-
-# This program is distributed in the hope that it will be useful,
-# but WITHOUT ANY WARRANTY; without even the implied warranty of
-# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
-# GNU General Public License for more details.
-
-# You should have received a copy of the GNU General Public License
-# along with this program; if not, write to the Free Software
-# Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA
-# 02110-1301, USA.
-
-prog=`pwd`/../../src/printf
-
-if test "$VERBOSE" = yes; then
- set -x
- "$prog" --version
-fi
-
-pwd=`pwd`
-t0=`echo "$0"|sed 's,.*/,,'`.tmp; tmp=$t0/$$
-trap 'status=$?; cd "$pwd" && chmod -R u+rwx $t0 && rm -rf $t0 && exit $status' 0
-trap '(exit $?); exit $?' 1 2 13 15
-
-framework_failure=0
-mkdir -p $tmp || framework_failure=1
-cd $tmp || framework_failure=1
-
-if test $framework_failure = 1; then
- echo "$0: failure in testing framework" 1>&2
- (exit 1); exit 1
-fi
-
-fail=0
-
-"$prog" '\x7e3\n' > out || fail=1
-cat <<\EOF > exp
-~3
-EOF
-
-cmp out exp || fail=1
-test $fail = 1 && diff out exp 2> /dev/null
-
-(exit $fail); exit $fail
diff --git a/tests/misc/printf-hex.sh b/tests/misc/printf-hex.sh
new file mode 100755
index 0000000..d6bfbda
--- /dev/null
+++ b/tests/misc/printf-hex.sh
@@ -0,0 +1,29 @@
+#!/bin/sh
+# make sure that only two hex. digits are consumed in a \xHHH sequence
+
+# Copyright (C) 2002-2016 Free Software Foundation, Inc.
+
+# This program is free software: you can redistribute it and/or modify
+# it under the terms of the GNU General Public License as published by
+# the Free Software Foundation, either version 3 of the License, or
+# (at your option) any later version.
+
+# This program is distributed in the hope that it will be useful,
+# but WITHOUT ANY WARRANTY; without even the implied warranty of
+# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
+# GNU General Public License for more details.
+
+# You should have received a copy of the GNU General Public License
+# along with this program. If not, see <http://www.gnu.org/licenses/>.
+
+. "${srcdir=.}/tests/init.sh"; path_prepend_ ./src
+print_ver_ printf
+
+env printf '\x7e3\n' > out || fail=1
+cat <<\EOF > exp
+~3
+EOF
+
+compare exp out || fail=1
+
+Exit $fail
diff --git a/tests/misc/printf-quote.sh b/tests/misc/printf-quote.sh
new file mode 100755
index 0000000..9636656
--- /dev/null
+++ b/tests/misc/printf-quote.sh
@@ -0,0 +1,57 @@
+#!/bin/sh
+# tests for printf %q
+
+# Copyright (C) 2015-2016 Free Software Foundation, Inc.
+
+# This program is free software: you can redistribute it and/or modify
+# it under the terms of the GNU General Public License as published by
+# the Free Software Foundation, either version 3 of the License, or
+# (at your option) any later version.
+
+# This program is distributed in the hope that it will be useful,
+# but WITHOUT ANY WARRANTY; without even the implied warranty of
+# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
+# GNU General Public License for more details.
+
+# You should have received a copy of the GNU General Public License
+# along with this program. If not, see <http://www.gnu.org/licenses/>.
+
+. "${srcdir=.}/tests/init.sh"; path_prepend_ ./src
+print_ver_ printf
+
+prog='env printf'
+
+# Equivalent output to ls --quoting=shell-escape
+$prog '%q\n' '' "'" a 'a b' '~a' 'a~' "$($prog %b 'a\r')" > out
+cat <<\EOF > exp || framework_failure_
+''
+''\'''
+a
+'a b'
+'~a'
+a~
+'a'$'\r'
+EOF
+compare exp out || fail=1
+
+unset LC_ALL
+f=$LOCALE_FR_UTF8
+: ${LOCALE_FR_UTF8=none}
+if test "$LOCALE_FR_UTF8" != "none"; then
+ (
+ #printable multi-byte
+ LC_ALL=$f $prog '%q\n' 'áḃç' > out
+ #non-printable multi-byte
+ LC_ALL=$f $prog '%q\n' "$(LC_ALL=$f $prog '\u0378')" >> out
+ #printable multi-byte in C locale
+ LC_ALL=C $prog '%q\n' 'áḃç' >> out
+ )
+ cat <<\EOF > exp || framework_failure_
+áḃç
+''$'\315\270'
+''$'\303\241\341\270\203\303\247'
+EOF
+ compare exp out || fail=1
+fi
+
+Exit $fail
diff --git a/tests/misc/printf-surprise.sh b/tests/misc/printf-surprise.sh
new file mode 100755
index 0000000..b7003a6
--- /dev/null
+++ b/tests/misc/printf-surprise.sh
@@ -0,0 +1,96 @@
+#!/bin/sh
+# Detect printf(3) failure even when it doesn't set stream error indicator
+
+# Copyright (C) 2007-2016 Free Software Foundation, Inc.
+
+# This program is free software: you can redistribute it and/or modify
+# it under the terms of the GNU General Public License as published by
+# the Free Software Foundation, either version 3 of the License, or
+# (at your option) any later version.
+
+# This program is distributed in the hope that it will be useful,
+# but WITHOUT ANY WARRANTY; without even the implied warranty of
+# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
+# GNU General Public License for more details.
+
+# You should have received a copy of the GNU General Public License
+# along with this program. If not, see <http://www.gnu.org/licenses/>.
+
+prog=printf
+
+. "${srcdir=.}/tests/init.sh"; path_prepend_ ./src
+print_ver_ printf
+
+vm=$(get_min_ulimit_v_ env $prog %20f 0) \
+ || skip_ "this shell lacks ulimit support"
+
+# Up to coreutils-6.9, "printf %.Nf 0" would encounter an ENOMEM internal
+# error from glibc's printf(3) function whenever N was large relative to
+# the size of available memory. As of Oct 2007, that internal stream-
+# related failure was not reflected (for any libc I know of) in the usual
+# stream error indicator that is tested by ferror. The result was that
+# while the printf command obviously failed (generated no output),
+# it mistakenly exited successfully (exit status of 0).
+
+# Testing it is tricky, because there is so much variance
+# in quality for this corner of printf(3) implementations.
+# Most implementations do attempt to allocate N bytes of storage.
+# Using the maximum value for N (2^31-1) causes glibc-2.7 to try to
+# allocate almost 2^64 bytes, while freeBSD 6.1's implementation
+# correctly outputs almost 2GB worth of 0's, which takes too long.
+# We want to test implementations that allocate N bytes, but without
+# triggering the above extremes.
+
+# Some other versions of glibc-2.7 have a snprintf function that segfaults
+# when an internal (technically unnecessary!) memory allocation fails.
+
+# The compromise is to limit virtual memory to something reasonable,
+# and to make an N-byte-allocating-printf require more than that, thus
+# triggering the printf(3) misbehavior -- which, btw, is required by ISO C99.
+
+mkfifo_or_skip_ fifo
+
+# Disable MALLOC_PERTURB_, to avoid triggering this bug
+# http://bugs.debian.org/481543#77
+export MALLOC_PERTURB_=0
+
+# Terminate any background process
+cleanup_() { kill $pid 2>/dev/null && wait $pid; }
+
+head -c 10 fifo > out & pid=$!
+
+# Trigger large mem allocation failure
+( ulimit -v $vm && env $prog %20000000f 0 2>err-msg > fifo )
+exit=$?
+
+# Map this longer, and rarer, diagnostic to the common one.
+# printf: cannot perform formatted output: Cannot allocate memory" \
+sed 's/cannot perform .*/write error/' err-msg > k && mv k err-msg
+err_msg=$(tr '\n' : < err-msg)
+
+# By some bug, on Solaris 11 (5.11 snv_86), err_msg ends up
+# containing '1> fifo:printf: write error:'. Recognize that, too.
+
+case $err_msg in
+ "$prog: write error:"*) diagnostic=y ;;
+ "1> fifo:$prog: write error:") diagnostic=y ;;
+ '') diagnostic=n ;;
+ *) diagnostic=unexpected ;;
+esac
+n_out=$(wc -c < out)
+
+case $n_out:$diagnostic:$exit in
+ 10:n:0) ;; # ok, succeeds w/no diagnostic: FreeBSD 6.1
+ 0:y:1) ;; # ok, glibc-2.8 and newer, when printf(3) fails with ENOMEM
+
+ # With MALLOC_PERTURB_=0, this no longer happens.
+ # *:139) # segfault; known bug at least in debian unstable's libc6 2.7-11
+ # echo 1>&2 "$0: bug in snprintf causes low-mem use of printf to segfault"
+ # fail=77;;
+
+ # 10:y) ;; # Fail: doesn't happen: nobody succeeds with a diagnostic
+ # 0:n) ;; # Fail pre-patch: no output, no diag
+ *) fail=1;;
+esac
+
+Exit $fail
diff --git a/tests/misc/printf.sh b/tests/misc/printf.sh
new file mode 100755
index 0000000..cb7a57f
--- /dev/null
+++ b/tests/misc/printf.sh
@@ -0,0 +1,129 @@
+#!/bin/sh
+# basic tests for printf
+
+# Copyright (C) 2002-2016 Free Software Foundation, Inc.
+
+# This program is free software: you can redistribute it and/or modify
+# it under the terms of the GNU General Public License as published by
+# the Free Software Foundation, either version 3 of the License, or
+# (at your option) any later version.
+
+# This program is distributed in the hope that it will be useful,
+# but WITHOUT ANY WARRANTY; without even the implied warranty of
+# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
+# GNU General Public License for more details.
+
+# You should have received a copy of the GNU General Public License
+# along with this program. If not, see <http://www.gnu.org/licenses/>.
+
+prog='env printf'
+
+. "${srcdir=.}/tests/init.sh"; path_prepend_ ./src
+print_ver_ printf
+
+getlimits_
+
+
+# Verify the 3 methods of specifying "Escape":
+printf '%s\n' . . . | tr . '\033' > exp
+$prog '\x1b\n\33\n\e\n' > out || fail=1
+compare exp out || fail=1
+
+# This would fail (by printing the '--') for printf in sh-utils
+# and in coreutils 4.5.1.
+$prog -- 'foo\n' > out || fail=1
+cat <<\EOF > exp
+foo
+EOF
+
+compare exp out || fail=1
+
+rm -f out exp
+# Until coreutils-4.5.10, this would elicit a segfault.
+$prog '1 %*sy\n' -3 x > out || fail=1
+
+# Until coreutils 5.2.2, this would succeed.
+if POSIXLY_CORRECT=1 $prog '2 \x' >/dev/null 2>&1; then
+ fail=1
+else
+ echo '2 failed, as expected' >> out
+fi
+
+# Until coreutils-4.5.12, these would fail.
+$prog '3 \x40\n' >> out || fail=1
+POSIXLY_CORRECT=1 \
+$prog '4 \x40\n' >> out || fail=1
+$prog '5 % +d\n' 234 >> out || fail=1
+
+# This should print "6 !\n", but don't rely on '!' being the
+# one-byte representation of octal 041. With printf prior to
+# coreutils-5.0.1, it would print six bytes: "6 \41\n".
+$prog '6 \41\n' | tr '\41' '!' >> out
+
+# Note that as of coreutils-5.0.1, printf with a format of '\0002x'
+# prints a NUL byte followed by the digit '2' and an 'x'.
+# By contrast bash's printf outputs the same thing as $(printf '\2x') does.
+$prog '7 \2y \02y \002y \0002y\n' |tr '\0\2' '*=' >> out
+
+$prog '8 %b %b %b %b\n' '\1y' '\01y' '\001y' '\0001y'|tr '\1' = >> out
+
+$prog '9 %*dx\n' -2 0 >>out || fail=1
+
+$prog '10 %.*dx\n' $INT_UFLOW 0 >>out || fail=1
+returns_ 1 $prog '%.*dx\n' $INT_OFLOW 0 >>out 2> /dev/null || fail=1
+
+$prog '11 %*c\n' 2 x >>out || fail=1
+
+returns_ 1 $prog '%#d\n' 0 >>out 2> /dev/null || fail=1
+
+returns_ 1 $prog '%0s\n' 0 >>out 2> /dev/null || fail=1
+
+returns_ 1 $prog '%.9c\n' 0 >>out 2> /dev/null || fail=1
+
+returns_ 1 $prog '%'\''s\n' 0 >>out 2> /dev/null || fail=1
+
+cat <<\EOF > exp
+1 x y
+2 failed, as expected
+3 @
+4 @
+5 +234
+6 !
+7 =y =y =y *2y
+8 =y =y =y =y
+9 0 x
+10 0x
+11 x
+EOF
+
+compare exp out || fail=1
+
+# Verify handling of single quote chars (\' or \")
+
+$prog '%d\n' '"a' >out 2>err # valid
+$prog '%d\n' '"a"' >>out 2>>err # invalid
+$prog '%d\n' '"' >>out 2>>err # invalid
+$prog '%d\n' 'a' >>out 2>>err # invalid
+
+cat <<EOF > exp
+97
+97
+0
+0
+EOF
+
+# POSIX says strtoimax *may* set errno to EINVAL in the latter
+# two cases. So far, that happens at least on MacOS X 10.5.
+# Map that output to the more common expected output.
+sed 's/: Invalid.*/: expected a numeric value/' err > k && mv k err
+
+cat <<EOF > exp_err
+printf: warning: ": character(s) following character constant have been ignored
+printf: '"': expected a numeric value
+printf: 'a': expected a numeric value
+EOF
+
+compare exp out || fail=1
+compare exp_err err || fail=1
+
+Exit $fail
diff --git a/tests/misc/ptx-overrun.sh b/tests/misc/ptx-overrun.sh
new file mode 100755
index 0000000..a4f2e38
--- /dev/null
+++ b/tests/misc/ptx-overrun.sh
@@ -0,0 +1,44 @@
+#!/bin/sh
+
+# Copyright (C) 2008-2016 Free Software Foundation, Inc.
+
+# This program is free software: you can redistribute it and/or modify
+# it under the terms of the GNU General Public License as published by
+# the Free Software Foundation, either version 3 of the License, or
+# (at your option) any later version.
+
+# This program is distributed in the hope that it will be useful,
+# but WITHOUT ANY WARRANTY; without even the implied warranty of
+# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
+# GNU General Public License for more details.
+
+# You should have received a copy of the GNU General Public License
+# along with this program. If not, see <http://www.gnu.org/licenses/>.
+
+. "${srcdir=.}/tests/init.sh"; path_prepend_ ./src
+print_ver_ ptx
+
+# Trigger a heap-clobbering bug in ptx from coreutils-6.10 and earlier.
+# Using a long file name makes an abort more likely.
+# Even with no file name, valgrind detects the buffer overrun.
+f=01234567890123456789012345678901234567890123456789
+touch $f empty || framework_failure_
+
+# Specifying a regular expression ending in a lone backslash
+# would cause ptx to write beyond the end of a malloc'd buffer.
+ptx -F '\' $f < /dev/null > out || fail=1
+ptx -S 'foo\' $f < /dev/null >> out || fail=1
+ptx -W 'bar\\\' $f < /dev/null >> out || fail=1
+compare out empty || fail=1
+
+
+# Trigger an invalid heap reference noticed by gcc -fsanitize=address
+# from coreutils-8.22 and earlier. As well as an invalid memory reference,
+# the issue can be seen in the output, with non deterministice whitespace
+# trimming when multiple files are specified.
+printf '%s\n' 'This is a ptx whitespace Trimming test' > ws.in
+ptx ws.in ws.in | sort | uniq -u > out
+compare /dev/null out || fail=1
+
+
+Exit $fail
diff --git a/tests/misc/ptx.pl b/tests/misc/ptx.pl
new file mode 100755
index 0000000..f0703c2
--- /dev/null
+++ b/tests/misc/ptx.pl
@@ -0,0 +1,51 @@
+#!/usr/bin/perl
+
+# Copyright (C) 2008-2016 Free Software Foundation, Inc.
+
+# This program is free software: you can redistribute it and/or modify
+# it under the terms of the GNU General Public License as published by
+# the Free Software Foundation, either version 3 of the License, or
+# (at your option) any later version.
+
+# This program is distributed in the hope that it will be useful,
+# but WITHOUT ANY WARRANTY; without even the implied warranty of
+# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
+# GNU General Public License for more details.
+
+# You should have received a copy of the GNU General Public License
+# along with this program. If not, see <http://www.gnu.org/licenses/>.
+
+use strict;
+
+my $prog = 'ptx';
+
+# Turn off localization of executable's output.
+@ENV{qw(LANGUAGE LANG LC_ALL)} = ('C') x 3;
+
+my @Tests =
+(
+["1tok", '-w10', {IN=>"bar\n"}, {OUT=>" bar\n"}],
+["2tok", '-w10', {IN=>"foo bar\n"}, {OUT=>" / bar\n foo/\n"}],
+
+# with coreutils-6.12 and earlier, this would infloop with -wN, N < 10
+["narrow", '-w2', {IN=>"qux\n"}, {OUT=>" qux\n"}],
+["narrow-g", '-g1 -w2', {IN=>"ta\n"}, {OUT=>" ta\n"}],
+
+# with coreutils-6.12 and earlier, this would act like "ptx F1 F1"
+["2files", '-g1 -w1', {IN=>{F1=>"a"}}, {IN=>{F2=>"b"}}, {OUT=>" a\n b\n"}],
+
+# with coreutils-8.22 and earlier, the --format long option would
+# fall through into the --help case.
+["format-r", '--format=roff', {IN=>"foo\n"},
+ {OUT=>".xx \"\" \"\" \"foo\" \"\"\n"}],
+["format-t", '--format=tex', {IN=>"foo\n"},
+ {OUT=>"\\xx {}{}{foo}{}{}\n"}],
+);
+
+@Tests = triple_test \@Tests;
+
+my $save_temps = $ENV{DEBUG};
+my $verbose = $ENV{VERBOSE};
+
+my $fail = run_tests ($prog, $prog, \@Tests, $save_temps, $verbose);
+exit $fail;
diff --git a/tests/misc/pwd-long b/tests/misc/pwd-long
deleted file mode 100755
index 6fc83e2..0000000
--- a/tests/misc/pwd-long
+++ /dev/null
@@ -1,132 +0,0 @@
-#!/bin/sh
-# Ensure that pwd works even when run from a very deep directory.
-
-# Copyright (C) 2006-2007 Free Software Foundation, Inc.
-
-# This program is free software; you can redistribute it and/or modify
-# it under the terms of the GNU General Public License as published by
-# the Free Software Foundation; either version 2 of the License, or
-# (at your option) any later version.
-
-# This program is distributed in the hope that it will be useful,
-# but WITHOUT ANY WARRANTY; without even the implied warranty of
-# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
-# GNU General Public License for more details.
-
-# You should have received a copy of the GNU General Public License
-# along with this program; if not, write to the Free Software
-# Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA
-# 02110-1301, USA.
-
-: ${PERL=perl}
-
-$PERL -e 1 > /dev/null 2>&1 || {
- echo 1>&2 "$0: configure didn't find a usable version of Perl," \
- "so can't run this test"
- exit 77
-}
-
-framework_failure=0
-pwd=`"${BUILD_SRC_DIR?}"/pwd` || framework_failure=1
-t0=`echo "$0"|sed 's,.*/,,'`.tmp; tmp=$t0/$$
-trap 'status=$?; cd "$pwd" && chmod -R u+rwx $t0 && rm -rf $t0 && exit $status' 0
-trap '(exit $?); exit $?' 1 2 13 15
-
-mkdir -p $tmp || framework_failure=1
-cd $tmp || framework_failure=1
-
-if test $framework_failure = 1; then
- echo "$0: failure in testing framework" 1>&2
- (exit 1); exit 1
-fi
-
-ARGV_0=$0
-export ARGV_0
-
-CWD=$pwd/$tmp
-export CWD
-
-$PERL -Tw -- - <<\EOF
-
-# Show that pwd works even when the length of the resulting
-# directory name is longer than PATH_MAX.
-use strict;
-
-(my $ME = $ENV{ARGV_0}) =~ s|.*/||;
-
-sub normalize_to_cwd_relative ($$$)
-{
- my ($dir, $dev, $ino) = @_;
- my $slash = -1;
- my $next_slash;
- while (1)
- {
- $slash = index $dir, '/', $slash + 1;
- $slash <= -1
- and die "$ME: $dir does not contain old CWD\n";
- my $dir_prefix = $slash ? substr ($dir, 0, $slash) : '/';
- my ($d, $i) = (stat $dir_prefix)[0, 1];
- $d == $dev && $i == $ino
- and return substr $dir, $slash + 1;
- }
-}
-
-# Set up a safe, well-known environment
-delete @ENV{qw(BASH_ENV CDPATH ENV PATH)};
-$ENV{IFS} = '';
-
-# Save CWD's device and inode numbers.
-my ($dev, $ino) = (stat '.')[0, 1];
-
-# Construct the expected "."-relative part of pwd's output.
-my $z = 'z' x 31;
-my $n = 256;
-my $expected = "/$z" x $n;
-# Remove the leading "/".
-substr ($expected, 0, 1) = '';
-
-my $i = 0;
-do
- {
- mkdir $z, 0700
- or die "$ME: at depth $i: $!\n";
- chdir $z;
- }
-until (++$i == $n);
-
-my $build_src_dir = $ENV{BUILD_SRC_DIR};
-$build_src_dir
- or die "$ME: envvar BUILD_SRC_DIR not defined\n";
-if ($build_src_dir !~ m!^([-+.:/\w]+)$!)
- {
- warn "$0: skipping this test; odd build source directory name:\n"
- . "$build_src_dir\n";
- exit 77;
- }
-$build_src_dir = $1;
-
-my $pwd_binary = "$build_src_dir/pwd";
-
--x $pwd_binary
- or die "$ME: $pwd_binary is not an executable file\n";
-chomp (my $actual = `$pwd_binary`);
-
-# Convert the absolute name from pwd into a $CWD-relative name.
-# This is necessary in order to avoid a spurious failure when run
-# from a directory in a bind-mounted partition. What happens is
-# pwd reads a ".." that contains two or more entries with identical
-# dev,ino that match the ones we're looking for, and it chooses a
-# name that does not correspond to the one already recorded in $CWD.
-$actual = normalize_to_cwd_relative $actual, $dev, $ino;
-
-if ($expected ne $actual)
- {
- my $e_len = length $expected;
- my $a_len = length $actual;
- warn "expected len: $e_len\n";
- warn "actual len: $a_len\n";
- warn "expected: $expected\n";
- warn "actual: $actual\n";
- exit 1;
- }
-EOF
diff --git a/tests/misc/pwd-long.sh b/tests/misc/pwd-long.sh
new file mode 100755
index 0000000..c3d48be
--- /dev/null
+++ b/tests/misc/pwd-long.sh
@@ -0,0 +1,123 @@
+#!/bin/sh
+# -*- perl -*-
+# Ensure that pwd works even when run from a very deep directory.
+
+# Copyright (C) 2006-2016 Free Software Foundation, Inc.
+
+# This program is free software: you can redistribute it and/or modify
+# it under the terms of the GNU General Public License as published by
+# the Free Software Foundation, either version 3 of the License, or
+# (at your option) any later version.
+
+# This program is distributed in the hope that it will be useful,
+# but WITHOUT ANY WARRANTY; without even the implied warranty of
+# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
+# GNU General Public License for more details.
+
+# You should have received a copy of the GNU General Public License
+# along with this program. If not, see <http://www.gnu.org/licenses/>.
+
+. "${srcdir=.}/tests/init.sh"; path_prepend_ ./src
+print_ver_ pwd
+
+require_readable_root_
+require_perl_
+
+ARGV_0=$0
+export ARGV_0
+
+# Don't use CuTmpdir here, since File::Temp's use of rmtree can't
+# remove the deep tree we create.
+$PERL -Tw -I"$abs_srcdir/tests" -MCuSkip -- - <<\EOF
+
+# Show that pwd works even when the length of the resulting
+# directory name is longer than PATH_MAX.
+use strict;
+
+(my $ME = $ENV{ARGV_0}) =~ s|.*/||;
+
+sub normalize_to_cwd_relative ($$$)
+{
+ my ($dir, $dev, $ino) = @_;
+ my $slash = -1;
+ my $next_slash;
+ while (1)
+ {
+ $slash = index $dir, '/', $slash + 1;
+ $slash <= -1
+ and die "$ME: $dir does not contain old CWD\n";
+ my $dir_prefix = $slash ? substr ($dir, 0, $slash) : '/';
+ my ($d, $i) = (stat $dir_prefix)[0, 1];
+ defined $d && defined $i
+ or die "$ME: $dir_prefix: stat failed: $!\n";
+ $d eq $dev && $i eq $ino
+ and return substr $dir, $slash + 1;
+ }
+}
+
+# Set up a safe, well-known environment
+$ENV{IFS} = '';
+
+# Taint checking requires a sanitized $PATH. This script performs no $PATH
+# search, so on most Unix-based systems, it is fine simply to clear $ENV{PATH}.
+# However, on Cygwin, it's used to find cygwin1.dll, so set it.
+$ENV{PATH} = '/bin:/usr/bin';
+
+# Save CWD's device and inode numbers.
+my ($dev, $ino) = (stat '.')[0, 1];
+
+# Construct the expected "."-relative part of pwd's output.
+my $z = 'z' x 31;
+my $n = 256;
+my $expected = "/$z" x $n;
+# Remove the leading "/".
+substr ($expected, 0, 1) = '';
+
+my $i = 0;
+do
+ {
+ mkdir $z, 0700
+ or CuSkip::skip "$ME: skipping this test; cannot create long "
+ . "directory name at depth $i: $!\n";
+ chdir $z
+ }
+until (++$i == $n);
+
+my $abs_top_builddir = $ENV{abs_top_builddir};
+$abs_top_builddir
+ or die "$ME: envvar abs_top_builddir not defined\n";
+my $build_src_dir = "$abs_top_builddir/src";
+$build_src_dir =~ m!^([-+.:/\w]+)$!
+ or CuSkip::skip "$ME: skipping this test; odd build source directory name:\n"
+ . "$build_src_dir\n";
+$build_src_dir = $1;
+
+my $pwd_binary = "$build_src_dir/pwd";
+
+-x $pwd_binary
+ or die "$ME: $pwd_binary is not an executable file\n";
+chomp (my $actual = qx!$pwd_binary!);
+
+# Convert the absolute name from pwd into a $CWD-relative name.
+# This is necessary in order to avoid a spurious failure when run
+# from a directory in a bind-mounted partition. What happens is
+# pwd reads a ".." that contains two or more entries with identical
+# dev,ino that match the ones we're looking for, and it chooses a
+# name that does not correspond to the one already recorded in $CWD.
+$actual = normalize_to_cwd_relative $actual, $dev, $ino;
+
+if ($expected ne $actual)
+ {
+ my $e_len = length $expected;
+ my $a_len = length $actual;
+ warn "expected len: $e_len\n";
+ warn "actual len: $a_len\n";
+ warn "expected: $expected\n";
+ warn "actual: $actual\n";
+ exit 1;
+ }
+EOF
+
+fail=$?
+
+Exit $fail
diff --git a/tests/misc/pwd-option.sh b/tests/misc/pwd-option.sh
new file mode 100755
index 0000000..5ed0019
--- /dev/null
+++ b/tests/misc/pwd-option.sh
@@ -0,0 +1,62 @@
+#!/bin/sh
+# Ensure that pwd options work.
+
+# Copyright (C) 2009-2016 Free Software Foundation, Inc.
+
+# This program is free software: you can redistribute it and/or modify
+# it under the terms of the GNU General Public License as published by
+# the Free Software Foundation, either version 3 of the License, or
+# (at your option) any later version.
+
+# This program is distributed in the hope that it will be useful,
+# but WITHOUT ANY WARRANTY; without even the implied warranty of
+# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
+# GNU General Public License for more details.
+
+# You should have received a copy of the GNU General Public License
+# along with this program. If not, see <http://www.gnu.org/licenses/>.
+
+. "${srcdir=.}/tests/init.sh"; path_prepend_ ./src
+print_ver_ pwd
+
+mkdir -p a/b || framework_failure_
+ln -s a/b c || framework_failure_
+base=$(env -- pwd -P)
+
+# Remove any logical paths from $PWD.
+cd "$base" || framework_failure_
+test "x$PWD" = "x$base" || framework_failure_
+
+# Enter a logical directory.
+cd c || framework_failure_
+test "x$PWD" = "x$base/c" || skip_ "cd does not properly update \$PWD"
+
+env -- pwd -L > out || fail=1
+printf %s\\n "$base/c" > exp || fail=1
+
+env -- pwd --logical -P >> out || fail=1
+printf %s\\n "$base/a/b" >> exp || fail=1
+
+env -- pwd --physical >> out || fail=1
+printf %s\\n "$base/a/b" >> exp || fail=1
+
+# By default, we use -P unless POSIXLY_CORRECT.
+env -- pwd >> out || fail=1
+printf %s\\n "$base/a/b" >> exp || fail=1
+
+env -- POSIXLY_CORRECT=1 pwd >> out || fail=1
+printf %s\\n "$base/c" >> exp || fail=1
+
+# Make sure we reject bogus values, and silently fall back to -P.
+env -- PWD="$PWD/." pwd -L >> out || fail=1
+printf %s\\n "$base/a/b" >> exp || fail=1
+
+env -- PWD=bogus pwd -L >> out || fail=1
+printf %s\\n "$base/a/b" >> exp || fail=1
+
+env -- PWD="$base/a/../c" pwd -L >> out || fail=1
+printf %s\\n "$base/a/b" >> exp || fail=1
+
+compare exp out || fail=1
+
+Exit $fail
diff --git a/tests/misc/pwd-unreadable-parent b/tests/misc/pwd-unreadable-parent
deleted file mode 100755
index 72c666e..0000000
--- a/tests/misc/pwd-unreadable-parent
+++ /dev/null
@@ -1,70 +0,0 @@
-#!/bin/sh
-# Ensure that pwd and "readlink -e ." work even when a parent directory
-# is unreadable. Perform this test only on systems with a usable getcwd
-# function that has this capability.
-
-# Copyright (C) 2007 Free Software Foundation, Inc.
-
-# This program is free software; you can redistribute it and/or modify
-# it under the terms of the GNU General Public License as published by
-# the Free Software Foundation; either version 2 of the License, or
-# (at your option) any later version.
-
-# This program is distributed in the hope that it will be useful,
-# but WITHOUT ANY WARRANTY; without even the implied warranty of
-# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
-# GNU General Public License for more details.
-
-# You should have received a copy of the GNU General Public License
-# along with this program; if not, write to the Free Software
-# Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA
-# 02110-1301, USA.
-
-if test "$VERBOSE" = yes; then
- set -x
- pwd --version
- readlink --version
-fi
-
-test $host_os != linux-gnu &&
- {
- echo 1>&2 "$0: vendor getcwd may be inadequate; skipping this test"
- (exit 77); exit 77
- }
-
-# Linux ia64 has the gl_FUNC_GETCWD_ABORT_BUG, so we can't use
-# the system getcwd.
-test $REPLACE_GETCWD = 1 &&
- {
- echo 1>&2 "$0: can't use buggy system getcwd; skipping this test"
- (exit 77); exit 77
- }
-
-pwd=`pwd`
-t0=`echo "$0"|sed 's,.*/,,'`.tmp; tmp=$t0/$$
-trap 'status=$?; cd "$pwd" && chmod -R u+rwx $t0 && rm -rf $t0 && exit $status' 0
-trap '(exit $?); exit $?' 1 2 13 15
-
-framework_failure=0
-mkdir -p $tmp || framework_failure=1
-cd $tmp || framework_failure=1
-
-mkdir -p a/b || framework_failure=1
-cd a/b || framework_failure=1
-chmod a=x .. || framework_failure=1
-
-if test $framework_failure = 1; then
- echo "$0: failure in testing framework" 1>&2
- (exit 1); exit 1
-fi
-
-pwd_exe=$pwd/../../src/pwd
-
-fail=0
-$pwd_exe > exp || fail=1
-readlink -ev . > out || fail=1
-
-cmp out exp || fail=1
-test $fail = 1 && diff out exp 2> /dev/null
-
-(exit $fail); exit $fail
diff --git a/tests/misc/readlink-fp-loop.sh b/tests/misc/readlink-fp-loop.sh
new file mode 100755
index 0000000..bcb1e2f
--- /dev/null
+++ b/tests/misc/readlink-fp-loop.sh
@@ -0,0 +1,68 @@
+#!/bin/sh
+# readlink from 6.9 would fail with a false-positive symlink loop error
+
+# Copyright (C) 2007-2016 Free Software Foundation, Inc.
+
+# This program is free software: you can redistribute it and/or modify
+# it under the terms of the GNU General Public License as published by
+# the Free Software Foundation, either version 3 of the License, or
+# (at your option) any later version.
+
+# This program is distributed in the hope that it will be useful,
+# but WITHOUT ANY WARRANTY; without even the implied warranty of
+# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
+# GNU General Public License for more details.
+
+# You should have received a copy of the GNU General Public License
+# along with this program. If not, see <http://www.gnu.org/licenses/>.
+
+. "${srcdir=.}/tests/init.sh"; path_prepend_ ./src
+print_ver_ readlink pwd
+cwd=$(env pwd -P)
+
+# To trigger this bug, we have to construct a name/situation during
+# the resolution of which the code dereferences the same symlink (S)
+# two different times with no actual loop. In addition, arrange
+# so that the second and fourth calls to readlink operate on S.
+
+ln -s s p || framework_failure_
+ln -s d s || framework_failure_
+mkdir d || framework_failure_
+echo 2 > d/2 || framework_failure_
+ln -s ../s/2 d/1 || framework_failure_
+
+# With coreutils-6.9, this would fail with ELOOP.
+readlink -v -e p/1 > out || fail=1
+# readlink -e d/2 > exp || fail=1
+echo "$cwd/d/2" > exp || fail=1
+compare exp out || fail=1
+
+# Construct a real loop and make sure readlink still detects it.
+ln -sf ../s/1 d/2 || framework_failure_
+readlink -v -e p/1 2> out && fail=1
+readlink_msg=$(cat out)
+case $readlink_msg in
+ "readlink: p/1: "*) ;;
+ *) fail=1;;
+esac
+symlink_loop_msg=${readlink_msg#"readlink: p/1: "}
+
+# Exercise the hash table code.
+ln -nsf ../s/3 d/2 || framework_failure_
+ln -nsf ../p/4 d/3 || framework_failure_
+ln -nsf ../p/5 d/4 || framework_failure_
+ln -nsf ../p/6 d/5 || framework_failure_
+ln -nsf ../p/7 d/6 || framework_failure_
+ln -nsf ../p/8 d/7 || framework_failure_
+echo x > d/8 || framework_failure_
+readlink -v -e p/1 > out || fail=1
+echo "$cwd/d/8" > exp || fail=1
+compare exp out || fail=1
+
+# A trivial loop
+ln -s loop loop
+readlink -v -e loop 2> out && fail=1
+echo "readlink: loop: $symlink_loop_msg" > exp || framework_failure_
+compare exp out || fail=1
+
+Exit $fail
diff --git a/tests/misc/readlink-root.sh b/tests/misc/readlink-root.sh
new file mode 100755
index 0000000..01e0b19
--- /dev/null
+++ b/tests/misc/readlink-root.sh
@@ -0,0 +1,92 @@
+#!/bin/sh
+# tests for canonicalize-existing mode (readlink -e) on /.
+
+# Copyright (C) 2012-2016 Free Software Foundation, Inc.
+
+# This program is free software: you can redistribute it and/or modify
+# it under the terms of the GNU General Public License as published by
+# the Free Software Foundation, either version 3 of the License, or
+# (at your option) any later version.
+
+# This program is distributed in the hope that it will be useful,
+# but WITHOUT ANY WARRANTY; without even the implied warranty of
+# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
+# GNU General Public License for more details.
+
+# You should have received a copy of the GNU General Public License
+# along with this program. If not, see <http://www.gnu.org/licenses/>.
+
+. "${srcdir=.}/tests/init.sh"; path_prepend_ ./src
+print_ver_ readlink
+
+stat_single=$(stat -c %d:%i /) || framework_failure_
+stat_double=$(stat -c %d:%i //) || framework_failure_
+double_slash=//
+if test x"$stat_single" = x"$stat_double"; then
+ double_slash=/
+fi
+
+test -d /dev || framework_failure_
+
+ln -s / one || framework_failure_
+ln -s // two || framework_failure_
+ln -s /// three || framework_failure_
+ln -s /./..// one-dots || framework_failure_
+ln -s //./..// two-dots || framework_failure_
+ln -s ///./..// three-dots || framework_failure_
+ln -s /dev one-dev || framework_failure_
+ln -s //dev two-dev || framework_failure_
+ln -s ///dev three-dev || framework_failure_
+
+cat >exp <<EOF || framework_failure_
+/
+$double_slash
+/
+/
+$double_slash
+/
+/
+$double_slash
+/
+/
+$double_slash
+/
+/dev
+${double_slash}dev
+/dev
+/dev
+${double_slash}dev
+/dev
+/dev
+${double_slash}dev
+/dev
+EOF
+
+{
+ readlink -e / || fail=1
+ readlink -e // || fail=1
+ readlink -e /// || fail=1
+ readlink -e /.//.. || fail=1
+ readlink -e //.//.. || fail=1
+ readlink -e ///.//.. || fail=1
+ readlink -e one || fail=1
+ readlink -e two || fail=1
+ readlink -e three || fail=1
+ readlink -e one-dots || fail=1
+ readlink -e two-dots || fail=1
+ readlink -e three-dots || fail=1
+ readlink -e one-dev || fail=1
+ # We know /dev exists, but cannot assume //dev exists
+ readlink -f two-dev || fail=1
+ readlink -e three-dev || fail=1
+ readlink -e one/dev || fail=1
+ readlink -f two/dev || fail=1
+ readlink -e three/dev || fail=1
+ readlink -e one-dots/dev || fail=1
+ readlink -f two-dots/dev || fail=1
+ readlink -e three-dots/dev || fail=1
+} > out
+
+compare exp out || fail=1
+
+Exit $fail
diff --git a/tests/misc/realpath.sh b/tests/misc/realpath.sh
new file mode 100755
index 0000000..c2c8f08
--- /dev/null
+++ b/tests/misc/realpath.sh
@@ -0,0 +1,111 @@
+#!/bin/sh
+# Validate realpath operation
+
+# Copyright (C) 2011-2016 Free Software Foundation, Inc.
+
+# This program is free software: you can redistribute it and/or modify
+# it under the terms of the GNU General Public License as published by
+# the Free Software Foundation, either version 3 of the License, or
+# (at your option) any later version.
+
+# This program is distributed in the hope that it will be useful,
+# but WITHOUT ANY WARRANTY; without even the implied warranty of
+# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
+# GNU General Public License for more details.
+
+# You should have received a copy of the GNU General Public License
+# along with this program. If not, see <http://www.gnu.org/licenses/>.
+
+. "${srcdir=.}/tests/init.sh"; path_prepend_ ./src
+print_ver_ realpath
+
+stat_single=$(stat -c %d:%i /) || framework_failure_
+stat_double=$(stat -c %d:%i //) || framework_failure_
+double_slash=//
+if test x"$stat_single" = x"$stat_double"; then
+ double_slash=/
+fi
+nl='
+'
+
+test -d /dev || framework_failure_
+
+# Setup dir, file, symlink structure
+
+mkdir -p dir1/dir2 || framework_failure_
+ln -s dir1/dir2 ldir2 || framework_failure_
+touch dir1/f dir1/dir2/f || framework_failure_
+ln -s / one || framework_failure_
+ln -s // two || framework_failure_
+ln -s /// three || framework_failure_
+
+# Basic operation
+realpath -Pqz . >/dev/null || fail=1
+# Operand is required
+returns_ 1 realpath >/dev/null || fail=1
+returns_ 1 realpath --relative-base . --relative-to . || fail=1
+returns_ 1 realpath --relative-base . || fail=1
+
+# -e --relative-* require directories
+returns_ 1 realpath -e --relative-to=dir1/f --relative-base=. . || fail=1
+realpath -e --relative-to=dir1/ --relative-base=. . || fail=1
+
+# Note NUL params are unconditionally rejected by canonicalize_filename_mode
+returns_ 1 realpath -m '' || fail=1
+returns_ 1 realpath --relative-base= --relative-to=. . || fail=1
+
+# symlink resolution
+this=$(realpath .)
+test "$(realpath ldir2/..)" = "$this/dir1" || fail=1
+test "$(realpath -L ldir2/..)" = "$this" || fail=1
+test "$(realpath -s ldir2)" = "$this/ldir2" || fail=1
+
+# relative string handling
+test $(realpath -m --relative-to=prefix prefixed/1) = '../prefixed/1' || fail=1
+test $(realpath -m --relative-to=prefixed prefix/1) = '../prefix/1' || fail=1
+test $(realpath -m --relative-to=prefixed prefixed/1) = '1' || fail=1
+
+# Ensure no redundant trailing '/' present, as was the case in v8.15
+test $(realpath -sm --relative-to=/usr /) = '..' || fail=1
+# Ensure no redundant leading '../' present, as was the case in v8.15
+test $(realpath -sm --relative-to=/ /usr) = 'usr' || fail=1
+
+# Ensure --relative-base works
+out=$(realpath -sm --relative-base=/usr --relative-to=/usr /tmp /usr) || fail=1
+test "$out" = "/tmp$nl." || fail=1
+out=$(realpath -sm --relative-base=/ --relative-to=/ / /usr) || fail=1
+test "$out" = ".${nl}usr" || fail=1
+# --relative-to defaults to the value of --relative-base
+out=$(realpath -sm --relative-base=/usr /tmp /usr) || fail=1
+test "$out" = "/tmp$nl." || fail=1
+out=$(realpath -sm --relative-base=/ / /usr) || fail=1
+test "$out" = ".${nl}usr" || fail=1
+# For now, --relative-base must be a prefix of --relative-to, or all output
+# will be absolute (compare to MacOS 'relpath -d dir start end').
+out=$(realpath -sm --relative-base=/usr/local --relative-to=/usr \
+ /usr /usr/local) || fail=1
+test "$out" = "/usr${nl}/usr/local" || fail=1
+
+# Ensure // is handled correctly.
+test "$(realpath / // ///)" = "/$nl$double_slash$nl/" || fail=1
+test "$(realpath one two three)" = "/$nl$double_slash$nl/" || fail=1
+out=$(realpath -sm --relative-to=/ / // /dev //dev) || fail=1
+if test $double_slash = //; then
+ test "$out" = ".$nl//${nl}dev$nl//dev" || fail=1
+else
+ test "$out" = ".$nl.${nl}dev${nl}dev" || fail=1
+fi
+out=$(realpath -sm --relative-to=// / // /dev //dev) || fail=1
+if test $double_slash = //; then
+ test "$out" = "/$nl.$nl/dev${nl}dev" || fail=1
+else
+ test "$out" = ".$nl.${nl}dev${nl}dev" || fail=1
+fi
+out=$(realpath --relative-base=/ --relative-to=// / //) || fail=1
+if test $double_slash = //; then
+ test "$out" = "/$nl//" || fail=1
+else
+ test "$out" = ".$nl." || fail=1
+fi
+
+Exit $fail
diff --git a/tests/misc/runcon-no-reorder.sh b/tests/misc/runcon-no-reorder.sh
new file mode 100755
index 0000000..cfb8398
--- /dev/null
+++ b/tests/misc/runcon-no-reorder.sh
@@ -0,0 +1,42 @@
+#!/bin/sh
+# Ensure that runcon does not reorder its arguments.
+
+# Copyright (C) 2007-2016 Free Software Foundation, Inc.
+
+# This program is free software: you can redistribute it and/or modify
+# it under the terms of the GNU General Public License as published by
+# the Free Software Foundation, either version 3 of the License, or
+# (at your option) any later version.
+
+# This program is distributed in the hope that it will be useful,
+# but WITHOUT ANY WARRANTY; without even the implied warranty of
+# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
+# GNU General Public License for more details.
+
+# You should have received a copy of the GNU General Public License
+# along with this program. If not, see <http://www.gnu.org/licenses/>.
+
+. "${srcdir=.}/tests/init.sh"; path_prepend_ ./src
+print_ver_ runcon
+
+diag='runcon: runcon may be used only on a SELinux kernel'
+echo "$diag" > exp || framework_failure_
+
+
+# This test works even on systems without SELinux.
+# On such a system it fails with the above diagnostic, which is fine.
+# Before the no-reorder change, it would have failed with a diagnostic
+# about -j being an invalid option.
+runcon $(id -Z) true -j 2> out && > exp
+
+# When run on a system with no /selinux/context (i.e., in a chroot),
+# it chcon fails with this: "runcon: invalid context: \
+# root:system_r:unconfined_t:s0-s0:c0.c1023: No such file or directory"
+# That diagnostic is ok, too, so map it to the more common one.
+case $(cat out) in
+ 'runcon: invalid context: '*) echo "$diag" > out;;
+esac
+
+compare exp out || fail=1
+
+Exit $fail
diff --git a/tests/misc/selinux.sh b/tests/misc/selinux.sh
new file mode 100755
index 0000000..a951568
--- /dev/null
+++ b/tests/misc/selinux.sh
@@ -0,0 +1,65 @@
+#!/bin/sh
+# Test SELinux-related options.
+
+# Copyright (C) 2007-2016 Free Software Foundation, Inc.
+
+# This program is free software: you can redistribute it and/or modify
+# it under the terms of the GNU General Public License as published by
+# the Free Software Foundation, either version 3 of the License, or
+# (at your option) any later version.
+
+# This program is distributed in the hope that it will be useful,
+# but WITHOUT ANY WARRANTY; without even the implied warranty of
+# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
+# GNU General Public License for more details.
+
+# You should have received a copy of the GNU General Public License
+# along with this program. If not, see <http://www.gnu.org/licenses/>.
+
+. "${srcdir=.}/tests/init.sh"; path_prepend_ ./src
+print_ver_ chcon cp ls mv stat
+
+require_root_
+require_selinux_
+skip_if_mcstransd_is_running_
+
+# Create a regular file, dir, fifo.
+touch f || framework_failure_
+mkdir d s1 s2 || framework_failure_
+mkfifo_or_skip_ p
+
+
+# special context that works both with and without mcstransd
+ctx=root:object_r:tmp_t:s0
+
+chcon $ctx f d p ||
+ skip_ '"chcon '$ctx' ..." failed'
+
+# inspect that context with both ls -Z and stat.
+for i in d f p; do
+ c=$(ls -dogZ $i|cut -d' ' -f3); test x$c = x$ctx || fail=1
+ c=$(stat --printf %C $i); test x$c = x$ctx || fail=1
+done
+
+# ensure that ls -l output includes the ".".
+c=$(ls -l f|cut -c11); test "$c" = . || fail=1
+
+# Copy with an invalid context and ensure it fails
+# Note this may succeed when root and selinux is in permissive mode
+if test "$(getenforce)" = Enforcing; then
+ returns_ 1 cp --context='invalid-selinux-context' f f.cp || fail=1
+fi
+
+# Copy each to a new directory and ensure that context is preserved.
+cp -r --preserve=all d f p s1 || fail=1
+for i in d f p; do
+ c=$(stat --printf %C s1/$i); test x$c = x$ctx || fail=1
+done
+
+# Now, move each to a new directory and ensure that context is preserved.
+mv d f p s2 || fail=1
+for i in d f p; do
+ c=$(stat --printf %C s2/$i); test x$c = x$ctx || fail=1
+done
+
+Exit $fail
diff --git a/tests/misc/seq-long-double.sh b/tests/misc/seq-long-double.sh
new file mode 100755
index 0000000..b88c60c
--- /dev/null
+++ b/tests/misc/seq-long-double.sh
@@ -0,0 +1,47 @@
+#!/bin/sh
+# Test for this fix: 461231f022bdb3ee392622d31dc475034adceeb2.
+# Ensure that seq prints exactly two numbers for a 2-number integral
+# range at the limit of floating point precision.
+
+# Copyright (C) 2008-2016 Free Software Foundation, Inc.
+
+# This program is free software: you can redistribute it and/or modify
+# it under the terms of the GNU General Public License as published by
+# the Free Software Foundation, either version 3 of the License, or
+# (at your option) any later version.
+
+# This program is distributed in the hope that it will be useful,
+# but WITHOUT ANY WARRANTY; without even the implied warranty of
+# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
+# GNU General Public License for more details.
+
+# You should have received a copy of the GNU General Public License
+# along with this program. If not, see <http://www.gnu.org/licenses/>.
+
+. "${srcdir=.}/tests/init.sh"; path_prepend_ ./src
+print_ver_ seq
+getlimits_
+
+# Run this test only with glibc and sizeof (long double) > sizeof (double).
+# Otherwise, there are known failures:
+# http://thread.gmane.org/gmane.comp.gnu.coreutils.bugs/14939/focus=14944
+cat <<\EOF > long.c
+#include <features.h>
+#if defined __GNU_LIBRARY__ && __GLIBC__ >= 2
+int foo[sizeof (long double) - sizeof (double) - 1];
+#else
+"run this test only with glibc"
+#endif
+EOF
+$CC -c long.c \
+ || skip_ \
+ 'this test runs only on systems with glibc and long double != double'
+
+a=$INTMAX_MAX
+b=$INTMAX_OFLOW
+
+seq $a $b > out || fail=1
+printf "$a\n$b\n" > exp || fail=1
+compare exp out || fail=1
+
+Exit $fail
diff --git a/tests/misc/seq-precision.sh b/tests/misc/seq-precision.sh
new file mode 100755
index 0000000..7ac9e45
--- /dev/null
+++ b/tests/misc/seq-precision.sh
@@ -0,0 +1,79 @@
+#!/bin/sh
+# Test for output with appropriate precision
+
+# Copyright (C) 2015-2016 Free Software Foundation, Inc.
+
+# This program is free software: you can redistribute it and/or modify
+# it under the terms of the GNU General Public License as published by
+# the Free Software Foundation, either version 3 of the License, or
+# (at your option) any later version.
+
+# This program is distributed in the hope that it will be useful,
+# but WITHOUT ANY WARRANTY; without even the implied warranty of
+# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
+# GNU General Public License for more details.
+
+# You should have received a copy of the GNU General Public License
+# along with this program. If not, see <http://www.gnu.org/licenses/>.
+
+. "${srcdir=.}/tests/init.sh"; path_prepend_ ./src
+print_ver_ seq
+
+# Integer only. Before v8.24 these would switch output format
+
+seq 999999 inf | head -n2 > out || fail=1
+printf "%s\n" 999999 1000000 > exp || framework_failure_
+compare exp out || fail=1
+
+# Exercise buffer handling in non floating point output
+for i in $(seq 100); do
+ n1="$(printf '%*s' $i '' | tr ' ' 9)"
+ n2="1$(echo $n1 | tr 9 0)"
+
+ seq $n1 $n2 > out || fail=1
+ printf "%s\n" "$n1" "$n2" > exp || framework_failure_
+ compare exp out || fail=1
+done
+
+seq 0xF423F 0xF4240 > out || fail=1
+printf "%s\n" 999999 1000000 > exp || framework_failure_
+compare exp out || fail=1
+
+# Ensure consistent precision for inf
+seq 1 .1 inf | head -n2 > out || fail=1
+printf "%s\n" 1.0 1.1 > exp || framework_failure_
+compare exp out || fail=1
+
+# Ensure standard output methods with inf start
+seq inf inf | head -n2 | uniq > out || fail=1
+test "$(wc -l < out)" = 1 || fail=1
+
+# Ensure auto precision for hex float
+seq 1 0x1p-1 2 > out || fail=1
+printf "%s\n" 1 1.5 2 > exp || framework_failure_
+compare exp out || fail=1
+
+# Ensure consistent precision for hex
+seq 1 .1 0x2 | head -n2 > out || fail=1
+printf "%s\n" 1.0 1.1 > exp || framework_failure_
+compare exp out || fail=1
+
+# Ensure consistent handling of precision/width for exponents
+
+seq 1.1e1 12 > out || fail=1
+printf "%s\n" 11 12 > exp || framework_failure_
+compare exp out || fail=1
+
+seq 11 1.2e1 > out || fail=1
+printf "%s\n" 11 12 > exp || framework_failure_
+compare exp out || fail=1
+
+seq -w 1.1e4 | head -n1 > out || fail=1
+printf "%s\n" 00001 > exp || framework_failure_
+compare exp out || fail=1
+
+seq -w 1.10000e5 1.10000e5 > out || fail=1
+printf "%s\n" 110000 > exp || framework_failure_
+compare exp out || fail=1
+
+Exit $fail
diff --git a/tests/misc/seq.pl b/tests/misc/seq.pl
new file mode 100755
index 0000000..6564415
--- /dev/null
+++ b/tests/misc/seq.pl
@@ -0,0 +1,172 @@
+#!/usr/bin/perl
+# Test "seq".
+
+# Copyright (C) 1999-2016 Free Software Foundation, Inc.
+
+# This program is free software: you can redistribute it and/or modify
+# it under the terms of the GNU General Public License as published by
+# the Free Software Foundation, either version 3 of the License, or
+# (at your option) any later version.
+
+# This program is distributed in the hope that it will be useful,
+# but WITHOUT ANY WARRANTY; without even the implied warranty of
+# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
+# GNU General Public License for more details.
+
+# You should have received a copy of the GNU General Public License
+# along with this program. If not, see <http://www.gnu.org/licenses/>.
+
+use strict;
+
+(my $program_name = $0) =~ s|.*/||;
+
+# Turn off localization of executable's output.
+@ENV{qw(LANGUAGE LANG LC_ALL)} = ('C') x 3;
+
+my $prog = 'seq';
+my $try_help = "Try '$prog --help' for more information.\n";
+
+my $locale = $ENV{LOCALE_FR_UTF8};
+! defined $locale || $locale eq 'none'
+ and $locale = 'C';
+
+my $p = '9' x 81;
+(my $q = $p) =~ s/9/0/g;
+$q = "1$q";
+(my $r = $q) =~ s/0$/1/;
+
+my @Tests =
+ (
+ ['onearg-1', qw(10), {OUT => [(1..10)]}],
+ ['onearg-2', qw(-1)],
+ ['empty-rev', qw(1 -1 3)],
+ ['neg-1', qw(-10 10 10), {OUT => [qw(-10 0 10)]}],
+ # ['neg-2', qw(-.1 .1 .11), {OUT => [qw(-0.1 0.0 0.1)]}],
+ ['neg-3', qw(1 -1 0), {OUT => [qw(1 0)]}],
+ ['neg-4', qw(1 -1 -1), {OUT => [qw(1 0 -1)]}],
+
+ ['float-1', qw(0.8 0.1 0.9), {OUT => [qw(0.8 0.9)]}],
+ ['float-2', qw(0.1 0.99 1.99), {OUT => [qw(0.10 1.09)]}],
+ ['float-3', qw(10.8 0.1 10.95), {OUT => [qw(10.8 10.9)]}],
+ ['float-4', qw(0.1 -0.1 -0.2), {OUT => [qw(0.1 0.0 -0.1 -0.2)]},
+ {OUT_SUBST => 's,^-0\.0$,0.0,'},
+ ],
+ ['float-5', qw(0.8 1e-1 0.9), {OUT => [qw(0.8 0.9)]}],
+ # Don't append lots of zeros to that 0.9000...; for example, changing the
+ # number to 0.90000000000000000000 tickles a bug in Solaris 8 strtold
+ # that would cause the test to fail.
+ ['float-6', qw(0.8 0.1 0.9000000000000), {OUT => [qw(0.8 0.9)]}],
+
+ ['wid-1', qw(.8 1e-2 .81), {OUT => [qw(0.80 0.81)]}],
+ ['wid-2', qw(.89999 1e-7 .8999901), {OUT => [qw(0.8999900 0.8999901)]}],
+
+ ['eq-wid-1', qw(-w 1 -1 -1), {OUT => [qw(01 00 -1)]}],
+ # Prior to 2.0g, this test would fail on e.g., HPUX systems
+ # because it'd end up using %3.1f as the format instead of %4.1f.
+ ['eq-wid-2', qw(-w -.1 .1 .11),{OUT => [qw(-0.1 00.0 00.1)]}],
+ ['eq-wid-3', qw(-w 1 3.0), {OUT => [qw(1 2 3)]}],
+ ['eq-wid-4', qw(-w .8 1e-2 .81), {OUT => [qw(0.80 0.81)]}],
+ ['eq-wid-5', qw(-w 1 .5 2), {OUT => [qw(1.0 1.5 2.0)]}],
+ ['eq-wid-6', qw(-w +1 2), {OUT => [qw(1 2)]}],
+ ['eq-wid-7', qw(-w " .1" " .1"), {OUT => [qw(0.1)]}],
+ ['eq-wid-8', qw(-w 9 0.5 10), {OUT => [qw(09.0 09.5 10.0)]}],
+ # Prior to 8.21, these tests involving numbers in scentific notation
+ # would fail with misalignment or wrong widths.
+ ['eq-wid-9', qw(-w -1e-3 1), {OUT => [qw(-0.001 00.999)]}],
+ ['eq-wid-10',qw(-w -1e-003 1), {OUT => [qw(-0.001 00.999)]}],
+ ['eq-wid-11',qw(-w -1.e-3 1), {OUT => [qw(-0.001 00.999)]}],
+ ['eq-wid-12',qw(-w -1.0e-4 1), {OUT => [qw(-0.00010 00.99990)]}],
+ ['eq-wid-13',qw(-w 999 1e3), {OUT => [qw(0999 1000)]}],
+ # Prior to 8.21, if the start value hadn't a precision, while step did,
+ # then misalignment would occur if the sequence narrowed.
+ ['eq-wid-14',qw(-w -1 1.0 0), {OUT => [qw(-1.0 00.0)]}],
+ ['eq-wid-15',qw(-w 10 -.1 9.9), {OUT => [qw(10.0 09.9)]}],
+
+ # Prior to coreutils-4.5.11, some of these were not accepted.
+ ['fmt-1', qw(-f %2.1f 1.5 .5 2),{OUT => [qw(1.5 2.0)]}],
+ ['fmt-2', qw(-f %0.1f 1.5 .5 2),{OUT => [qw(1.5 2.0)]}],
+ ['fmt-3', qw(-f %.1f 1.5 .5 2),{OUT => [qw(1.5 2.0)]}],
+
+ ['fmt-4', qw(-f %3.0f 1 2), {OUT => [' 1', ' 2']}],
+ ['fmt-5', qw(-f %-3.0f 1 2), {OUT => ['1 ', '2 ']}],
+ ['fmt-6', qw(-f %+3.0f 1 2), {OUT => [' +1', ' +2']}],
+ ['fmt-7', qw(-f %0+3.0f 1 2), {OUT => [qw(+01 +02)]}],
+ ['fmt-8', qw(-f %0+.0f 1 2), {OUT => [qw(+1 +2)]}],
+ ['fmt-9', '-f "% -3.0f"', qw(-1 0), {OUT => ['-1 ', ' 0 ']}],
+ ['fmt-a', '-f "% -.0f"',qw(-1 0), {OUT => ['-1', ' 0']}],
+ ['fmt-b', qw(-f %%%g%% 1), {OUT => ['%1%']}],
+
+ # In coreutils-[6.0..6.9], this would mistakenly succeed and print "%Lg".
+ ['fmt-c', qw(-f %%g 1), {EXIT => 1},
+ {ERR => "seq: format '%%g' has no % directive\n"}],
+
+ # In coreutils-6.9..6.10, this would fail with an erroneous diagnostic:
+ # "seq: memory exhausted". In coreutils-6.0..6.8, it would mistakenly
+ # succeed and print a blank line.
+ ['fmt-eos1', qw(-f % 1), {EXIT => 1},
+ {ERR => "seq: format '%' ends in %\n"}],
+ ['fmt-eos2', qw(-f %g% 1), {EXIT => 1},
+ {ERR => "seq: format '%g%' has too many % directives\n"}],
+
+ ['fmt-d', qw(-f "" 1), {EXIT => 1},
+ {ERR => "seq: format '' has no % directive\n"}],
+ ['fmt-e', qw(-f %g%g 1), {EXIT => 1},
+ {ERR => "seq: format '%g%g' has too many % directives\n"}],
+
+ # With coreutils-6.12 and earlier, with a UTF8 numeric locale that uses
+ # something other than "." as the decimal point, this use of seq would
+ # fail to print the "2,0" endpoint.
+ ['locale-dec-pt', qw(-0.1 0.1 2),
+ {OUT => [qw(-0.1 0.0 0.1 0.2 0.3 0.4 0.5 0.6 0.7 0.8 0.9 1.0
+ 1.1 1.2 1.3 1.4 1.5 1.6 1.7 1.8 1.9 2.0)]},
+
+ {ENV => "LC_ALL=$locale"},
+ {OUT_SUBST => 's/,/./g'},
+ ],
+
+ # With coreutils-8.19 and prior, this would infloop.
+ ['long-1', "$p $r", {OUT => [$p, $q, $r]}],
+
+ # Exercise the code that trims leading zeros.
+ ['long-leading-zeros1', qw(000 2), {OUT => [qw(0 1 2)]}],
+ ['long-leading-zeros2', qw(000 02), {OUT => [qw(0 1 2)]}],
+ ['long-leading-zeros3', qw(00 02), {OUT => [qw(0 1 2)]}],
+ ['long-leading-zeros4', qw(0 02), {OUT => [qw(0 1 2)]}],
+
+ # Exercise the -s option, which was broken in 8.20
+ ['sep-1', qw(-s, 1 3), {OUT => [qw(1,2,3)]}],
+ ['sep-2', qw(-s, 1 1), {OUT => [qw(1)]}],
+ ['sep-3', qw(-s,, 1 3), {OUT => [qw(1,,2,,3)]}],
+
+ # Exercise fast path avoidance logic.
+ # In 8.20 a step value != 1, with positive integer start and end was broken
+ ['not-fast-1', qw(1 3 1), {OUT => [qw(1)]}],
+ ['not-fast-2', qw(1 1 4.2), {OUT => [qw(1 2 3 4)]}],
+ ['not-fast-3', qw(1 1 0)],
+ # In 8.20..8.22 a start or end of -0 was broken
+ ['not-fast-4', qw(-0 10), {OUT => [qw(-0 1 2 3 4 5 6 7 8 9 10)]}],
+ ['not-fast-5', qw(1 -0)],
+
+ # Ensure the correct parameters are passed to the fast path
+ ['fast-1', qw(4), {OUT => [qw(1 2 3 4)]}],
+ ['fast-2', qw(1 4), {OUT => [qw(1 2 3 4)]}],
+ ['fast-3', qw(1 1 4), {OUT => [qw(1 2 3 4)]}],
+ );
+
+# Append a newline to each entry in the OUT array.
+my $t;
+foreach $t (@Tests)
+ {
+ my $e;
+ foreach $e (@$t)
+ {
+ $e->{OUT} = join ("\n", @{$e->{OUT}}) . "\n"
+ if ref $e eq 'HASH' and exists $e->{OUT};
+ }
+ }
+
+my $save_temps = $ENV{SAVE_TEMPS};
+my $verbose = $ENV{VERBOSE};
+
+my $fail = run_tests ($program_name, $prog, \@Tests, $save_temps, $verbose);
+exit $fail;
diff --git a/tests/misc/sha1sum-vec.pl b/tests/misc/sha1sum-vec.pl
new file mode 100755
index 0000000..4933527
--- /dev/null
+++ b/tests/misc/sha1sum-vec.pl
@@ -0,0 +1,534 @@
+#!/usr/bin/perl
+# Sample vectors for "sha1sum".
+
+# Copyright (C) 2000-2016 Free Software Foundation, Inc.
+
+# This program is free software: you can redistribute it and/or modify
+# it under the terms of the GNU General Public License as published by
+# the Free Software Foundation, either version 3 of the License, or
+# (at your option) any later version.
+
+# This program is distributed in the hope that it will be useful,
+# but WITHOUT ANY WARRANTY; without even the implied warranty of
+# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
+# GNU General Public License for more details.
+
+# You should have received a copy of the GNU General Public License
+# along with this program. If not, see <http://www.gnu.org/licenses/>.
+
+use strict;
+
+(my $program_name = $0) =~ s|.*/||;
+
+# Turn off localization of executable's output.
+@ENV{qw(LANGUAGE LANG LC_ALL)} = ('C') x 3;
+
+# The data from which these tests were derived came from here:
+# http://csrc.nist.gov/cryptval/shs/sha1-vectors.zip
+
+my @Tests =
+ (
+ ['1', {IN=> {f=> '0 1 ^'}},
+ {OUT=>'DA39A3EE5E6B4B0D3255BFEF95601890AFD80709'}],
+ ['2', {IN=> {f=> '5 0 2 1 2 1 2 ^'}},
+ {OUT=>'3CDF2936DA2FC556BFA533AB1EB59CE710AC80E5'}],
+ ['3', {IN=> {f=> '5 0 1 3 4 4 4 ^'}},
+ {OUT=>'19C1E2048FA7393CFBF2D310AD8209EC11D996E5'}],
+ ['4', {IN=> {f=> '7 0 4 3 4 4 1 4 4 ^'}},
+ {OUT=>'CA775D8C80FAA6F87FA62BECA6CA6089D63B56E5'}],
+ ['5', {IN=> {f=> '10 0 4 1 5 3 4 4 3 1 3 4 ^'}},
+ {OUT=>'71AC973D0E4B50AE9E5043FF4D615381120A25A0'}],
+ ['6', {IN=> {f=> '10 0 3 1 6 5 5 1 3 6 6 4 ^'}},
+ {OUT=>'A6B5B9F854CFB76701C3BDDBF374B3094EA49CBA'}],
+ ['7', {IN=> {f=> '13 1 3 2 5 3 3 3 4 6 6 1 4 6 2 ^'}},
+ {OUT=>'D87A0EE74E4B9AD72E6847C87BDEEB3D07844380'}],
+ ['8', {IN=> {f=> '16 1 3 5 5 1 2 1 3 3 6 3 5 2 3 5 7 2 ^'}},
+ {OUT=>'1976B8DD509FE66BF09C9A8D33534D4EF4F63BFD'}],
+ ['9', {IN=> {f=> '15 1 8 1 5 3 2 7 4 5 6 7 3 3 1 6 3 ^'}},
+ {OUT=>'5A78F439B6DB845BB8A558E4CEB106CD7B7FF783'}],
+ ['10', {IN=> {f=> '15 1 4 6 8 2 1 4 2 5 1 6 8 8 6 4 7 ^'}},
+ {OUT=>'F871BCE62436C1E280357416695EE2EF9B83695C'}],
+ ['11', {IN=> {f=> '18 1 1 2 7 3 8 6 7 5 4 3 4 3 5 3 3 2 6 8 ^'}},
+ {OUT=>'62B243D1B780E1D31CF1BA2DE3F01C72AEEA0E47'}],
+ ['12', {IN=> {f=> '16 0 9 8 1 8 1 7 6 7 7 1 2 6 9 5 4 7 ^'}},
+ {OUT=>'1698994A273404848E56E7FDA4457B5900DE1342'}],
+ ['13', {IN=> {f=> '18 0 7 1 7 3 9 4 7 7 5 2 8 1 7 8 2 7 2 9 ^'}},
+ {OUT=>'056F4CDC02791DA7ED1EB2303314F7667518DEEF'}],
+ ['14', {IN=> {f=> '19 1 2 3 1 8 8 6 9 10 3 10 8 9 2 4 1 5 1 5 9 ^'}},
+ {OUT=>'9FE2DA967BD8441EEA1C32DF68DDAA9DC1FC8E4B'}],
+ ['15', {IN=> {f=> '19 1 8 5 4 8 1 3 9 5 7 7 2 7 2 7 8 7 4 8 10 ^'}},
+ {OUT=>'73A31777B4ACE9384EFA8BBEAD45C51A71ABA6DD'}],
+ ['16', {IN=> {f=> '20 1 1 9 7 4 1 4 5 1 10 8 6 4 4 9 9 9 8 2 9 10 ^'}},
+ {OUT=>'3F9D7C4E2384EDDABFF5DD8A31E23DE3D03F42AC'}],
+ ['17', {IN=> {f=> '19 1 11 6 7 7 2 6 2 6 10 6 9 10 5 11 1 6 8 11 4 ^'}},
+ {OUT=>'4814908F72B93FFD011135BEE347DE9A08DA838F'}],
+ ['18', {IN=> {f=> '22 0 10 5 10 3 7 8 9 9 1 1 1 10 2 1 5 10 2 9 9 9 7 8 ^'}},
+ {OUT=>'0978374B67A412A3102C5AA0B10E1A6596FC68EB'}],
+ ['19', {IN=> {f=> '21 0 1 10 1 6 9 4 2 5 2 11 8 12 12 9 8 1 3 10 7 11 12 ^'}},
+ {OUT=>'44AD6CB618BD935460D46D3F921D87B99AB91C1E'}],
+ ['20', {IN=> {f=> '24 1 3 9 5 12 3 4 2 9 12 11 6 6 1 1 9 5 9 1 4 9 4 10 8 9 ^'}},
+ {OUT=>'02DC989AF265B09CF8485640842128DCF95E9F39'}],
+ ['21', {IN=> {f=> '25 1 3 2 3 11 1 12 5 6 2 7 8 4 8 8 9 9 8 4 9 1 4 8 10 9 9 ^'}},
+ {OUT=>'67507B8D497B35D6E99FC01976D73F54AECA75CF'}],
+ ['22', {IN=> {f=> '23 0 11 10 7 10 10 6 10 9 4 5 10 5 8 4 1 10 12 4 6 1 8 11 6 ^'}},
+ {OUT=>'1EAE0373C1317CB60C36A42A867B716039D441F5'}],
+ ['23', {IN=> {f=> '22 0 12 8 10 4 3 8 5 5 7 11 13 11 12 11 4 12 3 6 5 11 10 5 ^'}},
+ {OUT=>'9C3834589E5BFFAC9F50950E0199B3EC2620BEC8'}],
+ ['24', {IN=> {f=> '26 1 10 9 6 9 7 2 10 4 4 5 5 2 12 13 5 3 1 10 1 4 7 8 13 13 12 9 ^'}},
+ {OUT=>'209F7ABC7F3B878EE46CDF3A1FBB9C21C3474F32'}],
+ ['25', {IN=> {f=> '31 0 2 6 5 4 7 3 10 6 13 6 3 9 6 2 10 5 3 8 4 1 11 3 5 3 7 11 1 12 9 12 5 ^'}},
+ {OUT=>'05FC054B00D97753A9B3E2DA8FBBA3EE808CEF22'}],
+ ['26', {IN=> {f=> '27 1 14 5 1 3 7 2 3 9 3 4 14 4 4 10 8 5 14 1 11 12 12 10 4 13 7 11 9 ^'}},
+ {OUT=>'0C4980EA3A46C757DFBFC5BAA38AC6C8E72DDCE7'}],
+ ['27', {IN=> {f=> '30 1 4 9 5 5 8 9 5 10 4 2 4 7 9 9 6 3 5 1 8 3 2 13 3 14 9 8 9 10 14 10 ^'}},
+ {OUT=>'96A460D2972D276928B69864445BEA353BDCFFD2'}],
+ ['28', {IN=> {f=> '27 0 12 9 5 8 7 2 14 12 3 8 14 6 6 4 7 5 7 10 7 11 10 1 9 6 7 12 14 ^'}},
+ {OUT=>'F3EF04D8FA8C6FA9850F394A4554C080956FA64B'}],
+ ['29', {IN=> {f=> '24 0 12 9 9 2 11 13 12 11 11 6 14 13 10 5 6 8 10 4 3 11 11 14 5 14 ^'}},
+ {OUT=>'F2A31D875D1D7B30874D416C4D2EA6BAF0FFBAFE'}],
+ ['30', {IN=> {f=> '24 0 15 4 5 3 8 12 15 8 14 15 9 12 12 3 10 13 6 11 10 4 13 14 8 8 ^'}},
+ {OUT=>'F4942D3B9E9588DCFDC6312A84DF75D05F111C20'}],
+ ['31', {IN=> {f=> '28 1 1 8 1 5 11 4 9 12 4 13 15 5 9 11 7 14 11 1 11 7 8 8 11 1 13 15 12 13 ^'}},
+ {OUT=>'310207DF35B014E4676D30806FA34424813734DD'}],
+ ['32', {IN=> {f=> '32 1 5 8 3 8 10 7 8 1 5 13 12 14 5 3 6 4 12 15 6 6 10 11 13 9 1 11 6 10 3 7 14 2 ^'}},
+ {OUT=>'4DA1955B2FA7C7E74E3F47D7360CE530BBF57CA3'}],
+ ['33', {IN=> {f=> '31 0 10 3 5 1 14 11 11 16 1 2 2 11 6 13 15 12 6 5 16 2 14 2 10 12 2 5 5 6 10 13 15 ^'}},
+ {OUT=>'74C4BC5B26FB4A08602D40CCEC6C6161B6C11478'}],
+ ['34', {IN=> {f=> '34 0 3 10 8 16 9 5 12 15 4 11 13 3 6 5 10 8 1 3 9 3 11 1 2 16 12 10 6 1 9 1 16 5 6 14 ^'}},
+ {OUT=>'0B103CE297338DFC7395F7715EE47539B556DDB6'}],
+ ['35', {IN=> {f=> '30 1 1 12 4 4 2 15 13 15 11 15 5 11 9 7 15 16 6 16 12 3 2 10 16 5 5 7 1 7 11 16 ^'}},
+ {OUT=>'EFC72D99E3D2311CE14190C0B726BDC68F4B0821'}],
+ ['36', {IN=> {f=> '34 0 7 9 11 2 5 5 5 4 13 13 14 4 7 12 6 4 8 2 9 9 13 13 3 3 6 7 16 7 6 15 5 8 15 14 ^'}},
+ {OUT=>'660EDAC0A8F4CE33DA0D8DBAE597650E97687250'}],
+ ['37', {IN=> {f=> '36 1 4 6 16 15 11 14 14 4 7 10 3 4 10 3 6 7 14 4 6 6 5 2 7 8 16 2 12 16 10 14 3 2 3 7 14 3 ^'}},
+ {OUT=>'FE0A55A988B3B93946A63EB36B23785A5E6EFC3E'}],
+ ['38', {IN=> {f=> '32 0 15 10 9 1 14 10 14 6 6 16 3 2 3 8 3 12 8 11 17 3 9 7 16 14 4 11 15 5 13 9 5 17 ^'}},
+ {OUT=>'0CBDF2A5781C59F907513147A0DE3CC774B54BF3'}],
+ ['39', {IN=> {f=> '30 0 17 17 13 8 2 6 8 16 1 12 5 17 2 9 8 10 13 14 11 17 12 5 14 9 11 9 11 4 11 12 ^'}},
+ {OUT=>'663E40FEE5A44BFCB1C99EA5935A6B5BC9F583B0'}],
+ ['40', {IN=> {f=> '30 1 16 6 10 5 8 3 17 16 14 1 15 15 15 6 13 2 11 6 13 11 13 4 6 7 11 11 12 16 13 16 ^'}},
+ {OUT=>'00162134256952DD9AE6B51EFB159B35C3C138C7'}],
+ ['41', {IN=> {f=> '33 1 16 16 14 16 2 4 16 11 6 15 7 4 17 6 5 7 6 3 14 16 5 17 11 13 1 1 14 13 3 6 14 5 16 ^'}},
+ {OUT=>'CEB88E4736E354416E2010FC1061B3B53B81664B'}],
+ ['42', {IN=> {f=> '39 1 2 16 13 7 8 6 2 15 1 9 12 4 4 11 13 7 2 11 9 18 4 5 4 8 2 14 9 9 1 8 13 11 15 8 5 9 10 16 7 ^'}},
+ {OUT=>'A6A2C4B6BCC41DDC67278F3DF4D8D0B9DD7784EF'}],
+ ['43', {IN=> {f=> '34 0 2 7 1 1 17 13 6 11 10 8 5 12 15 6 15 10 12 4 18 1 2 8 11 12 16 10 12 18 11 16 12 11 17 6 ^'}},
+ {OUT=>'C23D083CD8820B57800A869F5F261D45E02DC55D'}],
+ ['44', {IN=> {f=> '34 1 4 7 13 7 10 7 10 6 1 12 7 18 11 18 2 10 15 10 14 8 18 9 9 12 12 3 13 12 6 4 9 17 13 17 ^'}},
+ {OUT=>'E8AC31927B78DDEC41A31CA7A44EB7177165E7AB'}],
+ ['45', {IN=> {f=> '40 0 5 7 3 2 1 17 14 4 16 6 13 1 13 6 6 10 1 3 18 3 11 7 9 5 7 11 17 1 9 16 5 15 10 17 3 8 15 17 8 12 ^'}},
+ {OUT=>'E864EC5DBAB0F9FF6984AB6AD43A8C9B81CC9F9C'}],
+ ['46', {IN=> {f=> '40 0 11 3 15 17 11 1 1 4 3 14 18 4 2 18 8 15 6 4 6 3 15 11 16 10 17 17 9 6 3 2 6 16 4 9 12 6 8 1 11 17 ^'}},
+ {OUT=>'CFED6269069417A84D6DE2347220F4B858BCD530'}],
+ ['47', {IN=> {f=> '37 1 2 19 12 8 16 14 2 9 16 2 6 6 7 9 10 9 11 9 14 11 15 5 16 9 2 17 2 8 15 8 4 3 14 14 16 16 12 ^'}},
+ {OUT=>'D9217BFB46C96348722C3783D29D4B1A3FEDA38C'}],
+ ['48', {IN=> {f=> '37 1 11 10 16 12 11 7 14 14 14 6 10 10 1 6 13 19 5 6 4 7 12 12 10 5 10 15 15 8 5 13 17 13 5 6 14 1 19 ^'}},
+ {OUT=>'DEC24E5554F79697218D317315FA986229CE3350'}],
+ ['49', {IN=> {f=> '38 1 2 6 5 17 9 11 18 18 8 6 13 15 3 3 15 5 13 18 3 2 5 5 14 7 13 4 17 7 2 17 3 18 15 7 15 16 18 11 ^'}},
+ {OUT=>'83A099DF7071437BA5495A5B0BFBFEFE1C0EF7F3'}],
+ ['50', {IN=> {f=> '38 1 12 8 6 3 17 12 13 19 15 9 7 17 16 15 3 11 11 5 2 13 19 16 2 4 16 7 8 1 2 9 17 12 3 5 18 19 11 9 ^'}},
+ {OUT=>'AA3198E30891A83E33CE3BFA0587D86A197D4F80'}],
+ ['51', {IN=> {f=> '39 1 14 16 14 8 9 16 5 1 6 3 17 18 16 9 1 15 9 10 9 19 1 3 3 20 11 13 17 1 19 8 3 4 3 7 1 14 19 19 19 ^'}},
+ {OUT=>'9B6ACBEB4989CBEE7015C7D515A75672FFDE3442'}],
+ ['52', {IN=> {f=> '37 1 18 13 11 5 18 4 19 10 6 19 11 17 10 10 7 9 13 16 9 10 18 4 12 5 16 5 20 12 3 8 10 1 18 1 6 20 14 ^'}},
+ {OUT=>'B021EB08A436B02658EAA7BA3C88D49F1219C035'}],
+ ['53', {IN=> {f=> '36 0 8 9 6 12 11 7 7 3 17 13 6 20 17 9 20 16 10 12 17 8 11 8 11 10 5 10 14 18 8 19 9 12 12 2 20 19 ^'}},
+ {OUT=>'CAE36DAB8AEA29F62E0855D9CB3CD8E7D39094B1'}],
+ ['54', {IN=> {f=> '39 0 12 16 20 3 9 9 19 17 13 13 4 17 2 11 7 14 3 6 16 13 10 13 5 16 10 2 8 2 17 19 4 17 7 19 6 9 15 15 6 ^'}},
+ {OUT=>'02DE8BA699F3C1B0CB5AD89A01F2346E630459D7'}],
+ ['55', {IN=> {f=> '43 0 7 2 18 5 7 18 5 2 15 7 11 10 9 3 2 14 19 3 11 8 18 15 5 3 5 12 15 16 10 17 7 19 16 2 1 16 6 3 19 12 5 18 16 ^'}},
+ {OUT=>'88021458847DD39B4495368F7254941859FAD44B'}],
+ ['56', {IN=> {f=> '49 1 9 11 2 1 12 11 14 12 14 10 4 11 6 8 16 7 5 11 20 8 17 4 14 4 15 3 2 2 4 3 2 3 14 15 10 2 12 7 3 7 20 20 19 10 2 3 1 10 20 ^'}},
+ {OUT=>'91A165295C666FE85C2ADBC5A10329DAF0CB81A0'}],
+ ['57', {IN=> {f=> '36 0 19 20 12 5 19 21 5 21 11 14 19 1 17 8 9 4 19 3 17 1 14 21 14 7 6 5 20 14 21 20 4 6 21 7 11 12 ^'}},
+ {OUT=>'4B31312EAF8B506811151A9DBD162961F7548C4B'}],
+ ['58', {IN=> {f=> '41 0 12 9 11 6 16 18 18 10 11 20 6 12 11 5 7 21 19 18 6 15 21 10 4 14 9 19 10 3 3 5 13 1 8 12 3 13 9 7 10 17 14 ^'}},
+ {OUT=>'3FE70971B20558F7E9BAC303ED2BC14BDE659A62'}],
+ ['59', {IN=> {f=> '45 0 10 6 8 3 17 18 3 21 19 6 17 15 4 9 15 9 15 14 4 7 14 8 10 13 4 11 10 7 6 21 1 14 5 11 7 7 2 13 13 3 9 13 8 14 20 ^'}},
+ {OUT=>'93FB769D5BF49D6C563685954E2AECC024DC02D6'}],
+ ['60', {IN=> {f=> '39 1 3 7 18 4 9 9 5 15 13 17 10 15 16 20 8 19 9 10 9 1 19 14 21 2 18 13 10 4 18 16 4 21 15 10 18 19 3 12 18 ^'}},
+ {OUT=>'BC8827C3E614D515E83DEA503989DEA4FDA6EA13'}],
+ ['61', {IN=> {f=> '41 0 14 4 13 11 1 11 1 10 2 12 4 21 10 21 18 9 2 16 7 20 6 7 12 19 20 1 13 12 10 8 21 15 7 19 13 6 8 19 20 18 19 ^'}},
+ {OUT=>'E83868DBE4A389AB48E61CFC4ED894F32AE112AC'}],
+ ['62', {IN=> {f=> '37 0 11 18 1 17 14 15 20 16 20 8 2 17 10 4 21 5 19 19 14 22 21 18 13 14 1 3 12 11 11 4 22 13 5 18 7 21 21 ^'}},
+ {OUT=>'55C95459CDE4B33791B4B2BCAAF840930AF3F3BD'}],
+ ['63', {IN=> {f=> '48 0 9 22 19 12 8 16 5 17 5 9 1 2 9 6 12 6 1 7 4 3 15 1 14 1 12 3 10 2 10 14 21 13 17 6 6 17 1 21 2 14 16 17 9 11 20 21 11 18 ^'}},
+ {OUT=>'36BB0E2BA438A3E03214D9ED2B28A4D5C578FCAA'}],
+ ['64', {IN=> {f=> '50 1 12 8 20 13 2 9 20 9 14 10 1 16 2 22 6 4 16 14 15 1 12 4 14 9 21 3 3 9 8 21 15 14 8 4 14 4 2 3 8 12 8 6 1 2 18 20 15 3 19 10 ^'}},
+ {OUT=>'3ACBF874199763EBA20F3789DFC59572ACA4CF33'}],
+ ['65', {IN=> {f=> '44 0 10 20 14 6 3 4 21 1 12 4 18 2 6 7 6 9 20 14 10 10 19 17 21 12 15 17 7 10 11 8 10 12 1 19 19 9 18 21 4 18 11 9 22 5 ^'}},
+ {OUT=>'86BE037C4D509C9202020767D860DAB039CADACE'}],
+ ['66', {IN=> {f=> '47 0 15 8 15 3 5 6 2 19 12 17 4 20 8 11 20 2 18 4 16 20 12 9 9 6 16 21 16 3 16 18 3 19 5 16 2 4 2 12 11 15 11 14 17 2 10 18 8 ^'}},
+ {OUT=>'51B57D7080A87394EEC3EB2E0B242E553F2827C9'}],
+ ['67', {IN=> {f=> '48 1 5 13 3 21 5 3 6 18 18 10 1 21 21 7 1 13 12 19 1 14 6 8 21 19 21 11 19 13 2 13 4 1 10 22 16 4 9 4 10 16 3 7 15 11 9 13 17 12 ^'}},
+ {OUT=>'1EFBFA78866315CE6A71E457F3A750A38FACAB41'}],
+ ['68', {IN=> {f=> '45 0 14 7 6 2 20 3 6 19 19 10 2 22 12 17 12 1 20 7 7 15 20 6 18 8 3 14 23 18 15 4 7 5 23 15 7 14 10 10 19 17 2 4 15 17 21 ^'}},
+ {OUT=>'57D6CB41AEEC20236F365B3A490C61D0CFA39611'}],
+ ['69', {IN=> {f=> '45 1 15 11 8 9 17 5 12 18 14 6 20 17 21 12 16 9 22 9 20 15 2 22 11 2 6 11 9 8 2 4 14 19 3 21 21 23 8 2 11 4 8 4 20 22 11 ^'}},
+ {OUT=>'C532CB64B4BA826372BCCF2B4B5793D5B88BB715'}],
+ ['70', {IN=> {f=> '38 0 21 18 22 10 19 9 14 17 23 21 10 7 15 13 16 5 4 10 13 14 20 23 12 20 23 18 10 12 8 21 11 6 12 7 19 14 18 17 ^'}},
+ {OUT=>'15833B5631032663E783686A209C6A2B47A1080E'}],
+ ['71', {IN=> {f=> '40 0 18 22 6 9 22 5 23 13 6 8 23 20 22 5 22 15 19 20 9 9 1 13 13 10 14 13 5 22 14 21 9 21 19 14 14 4 18 13 12 14 ^'}},
+ {OUT=>'D04F2043C96E10CD83B574B1E1C217052CD4A6B2'}],
+ ['72', {IN=> {f=> '48 1 7 3 15 5 17 14 23 14 5 17 22 11 1 8 13 23 6 21 3 6 11 7 23 8 6 21 4 4 22 19 13 8 5 19 7 5 23 1 4 19 11 23 11 21 14 1 3 21 ^'}},
+ {OUT=>'E8882627C64DB743F7DB8B4413DD033FC63BEB20'}],
+ ['73', {IN=> {f=> '43 0 22 14 11 7 18 16 17 24 12 12 3 13 19 16 22 4 16 4 6 23 8 18 11 2 3 20 22 9 21 8 23 1 23 20 7 16 13 23 4 13 3 7 22 ^'}},
+ {OUT=>'CD2D32286B8867BC124A0AF2236FC74BE3622199'}],
+ ['74', {IN=> {f=> '47 1 23 6 13 19 2 3 7 2 9 9 15 6 13 4 22 6 19 20 1 9 7 14 1 15 3 23 24 22 18 12 12 17 19 10 8 11 22 12 10 2 20 15 18 17 18 7 19 ^'}},
+ {OUT=>'019B70D745375091ED5C7B218445EC986D0F5A82'}],
+ ['75', {IN=> {f=> '47 1 12 21 6 12 4 7 18 17 3 2 14 24 14 1 23 1 11 15 10 6 18 20 7 1 8 1 16 6 20 23 23 21 10 10 12 24 10 11 23 2 12 23 9 3 24 24 10 ^'}},
+ {OUT=>'E5FF5FEC1DADBAED02BF2DAD4026BE6A96B3F2AF'}],
+ ['76', {IN=> {f=> '52 0 14 10 18 15 14 5 16 11 22 2 15 24 8 22 1 4 24 9 10 15 3 9 5 4 17 15 9 12 19 19 1 3 10 6 8 3 17 8 18 24 19 3 4 15 4 9 2 24 5 20 13 13 ^'}},
+ {OUT=>'6F4E23B3F2E2C068D13921FE4E5E053FFED4E146'}],
+ ['77', {IN=> {f=> '42 0 20 17 19 22 13 8 10 19 15 11 1 14 17 20 22 10 7 11 16 9 21 22 17 23 12 15 4 24 7 21 18 2 21 16 1 19 18 20 11 3 15 17 ^'}},
+ {OUT=>'25E179602A575C915067566FBA6DA930E97F8678'}],
+ ['78', {IN=> {f=> '50 0 18 1 6 14 5 5 5 19 13 10 24 19 16 24 15 13 2 19 15 24 21 17 4 13 17 1 1 9 1 10 2 18 1 21 19 5 18 12 2 22 16 23 15 19 6 18 9 1 23 5 ^'}},
+ {OUT=>'67DED0E68E235C8A523E051E86108EEB757EFBFD'}],
+ ['79', {IN=> {f=> '51 0 21 13 14 11 18 12 13 3 19 9 20 22 20 2 11 12 6 1 12 16 18 2 9 8 4 3 11 17 11 5 4 19 16 11 23 13 18 1 20 8 2 16 16 21 4 19 5 5 20 24 16 ^'}},
+ {OUT=>'AF78536EA83C822796745556D62A3EE82C7BE098'}],
+ ['80', {IN=> {f=> '53 1 20 25 17 11 8 4 19 25 17 7 16 21 6 4 8 2 15 9 2 9 19 3 6 3 3 10 25 13 15 7 8 20 21 12 10 12 5 24 11 20 3 13 13 16 9 13 10 3 9 16 3 7 25 ^'}},
+ {OUT=>'64D7AC52E47834BE72455F6C64325F9C358B610D'}],
+ ['81', {IN=> {f=> '49 1 9 9 14 2 13 17 25 2 18 5 19 23 9 25 9 10 23 12 12 7 13 8 15 7 1 6 21 2 8 7 6 16 14 14 12 15 13 24 10 15 11 10 8 14 15 21 25 21 25 ^'}},
+ {OUT=>'9D4866BAA3639C13E541F250FFA3D8BC157A491F'}],
+ ['82', {IN=> {f=> '47 0 9 18 20 22 21 20 11 14 23 22 10 13 14 8 19 12 2 11 20 23 13 4 10 6 5 7 23 11 3 16 8 21 4 8 18 5 12 14 8 6 20 19 24 8 23 17 23 ^'}},
+ {OUT=>'2E258811961D3EB876F30E7019241A01F9517BEC'}],
+ ['83', {IN=> {f=> '48 1 7 19 1 18 1 14 22 13 14 5 8 22 18 14 25 17 11 12 22 2 12 12 16 12 13 18 17 12 17 14 18 8 25 9 23 5 3 8 14 24 17 7 3 3 23 17 22 19 ^'}},
+ {OUT=>'8E0EBC487146F83BC9077A1630E0FB3AB3C89E63'}],
+ ['84', {IN=> {f=> '51 1 19 17 16 22 24 14 16 20 23 20 9 19 16 7 12 16 5 8 9 7 10 21 24 10 11 19 1 21 14 14 19 3 22 8 12 20 1 18 5 6 5 12 14 1 1 11 9 22 3 24 4 ^'}},
+ {OUT=>'CE8953741FFF3425D2311FBBF4AB481B669DEF70'}],
+ ['85', {IN=> {f=> '52 1 6 1 11 16 1 12 8 11 11 17 10 22 7 3 10 2 6 4 24 16 24 19 4 5 18 11 12 9 20 21 25 2 21 18 10 20 25 21 3 17 17 5 8 22 25 19 8 10 19 7 11 18 ^'}},
+ {OUT=>'789D1D2DAB52086BD90C0E137E2515ED9C6B59B5'}],
+ ['86', {IN=> {f=> '44 0 26 14 21 25 25 4 9 13 5 8 9 21 8 12 26 24 9 24 15 1 23 22 16 14 8 22 15 19 24 20 7 8 15 24 12 4 4 23 21 13 19 15 21 12 ^'}},
+ {OUT=>'B76CE7472700DD68D6328B7AA8437FB051D15745'}],
+ ['87', {IN=> {f=> '59 1 15 7 3 21 20 8 22 14 23 26 19 2 10 18 3 5 3 1 9 15 15 3 7 13 23 9 7 1 13 17 14 25 9 16 2 2 6 13 7 19 25 17 1 5 21 2 7 22 5 6 25 3 12 19 6 2 4 24 17 ^'}},
+ {OUT=>'F218669B596C5FFB0B1C14BD03C467FC873230A0'}],
+ ['88', {IN=> {f=> '60 0 9 18 20 19 4 11 14 1 6 8 26 6 9 22 4 10 2 7 21 9 8 24 25 14 22 12 22 3 23 3 3 20 6 11 23 6 1 7 5 18 5 15 25 26 1 1 10 11 11 4 12 11 20 3 14 2 3 2 23 15 ^'}},
+ {OUT=>'1FF3BDBE0D504CB0CDFAB17E6C37ABA6B3CFFDED'}],
+ ['89', {IN=> {f=> '49 0 12 17 24 11 8 6 24 16 15 22 21 14 6 12 20 19 5 5 12 11 6 23 2 16 23 7 24 6 21 2 17 17 5 25 11 25 20 25 24 18 6 12 19 25 7 6 5 2 25 ^'}},
+ {OUT=>'2F3CBACBB14405A4652ED52793C1814FD8C4FCE0'}],
+ ['90', {IN=> {f=> '54 1 12 16 1 15 7 1 26 19 19 13 20 11 17 6 20 5 24 24 1 21 11 9 20 21 15 10 19 26 3 2 6 7 12 9 10 8 14 10 15 5 17 8 21 1 20 25 6 19 8 3 22 16 16 20 ^'}},
+ {OUT=>'982C8AB6CE164F481915AF59AAED9FFF2A391752'}],
+ ['91', {IN=> {f=> '63 0 17 13 11 10 17 15 12 6 13 14 17 4 12 10 24 5 13 24 3 5 2 5 11 14 8 5 10 17 16 8 4 14 21 15 3 6 17 25 8 2 3 3 19 10 13 22 22 8 2 13 25 17 2 1 19 1 14 20 2 5 4 15 24 ^'}},
+ {OUT=>'5CD92012D488A07ECE0E47901D0E083B6BD93E3F'}],
+ ['92', {IN=> {f=> '49 0 14 20 7 25 20 26 20 16 7 17 17 22 1 13 6 5 1 18 14 15 23 15 10 5 19 18 18 26 12 13 3 25 12 21 16 24 4 16 3 6 26 26 10 20 13 1 20 24 15 ^'}},
+ {OUT=>'69603FEC02920851D4B3B8782E07B92BB2963009'}],
+ ['93', {IN=> {f=> '56 0 3 8 14 5 5 7 11 13 11 26 11 4 26 17 20 19 11 10 3 10 14 9 6 9 7 16 10 4 4 19 19 2 26 13 19 17 15 24 15 4 21 22 13 13 12 22 2 14 20 5 18 7 17 24 20 20 ^'}},
+ {OUT=>'3E90F76437B1EA44CF98A08D83EA24CECF6E6191'}],
+ ['94', {IN=> {f=> '58 1 6 17 9 20 2 10 19 3 22 4 1 11 3 5 3 21 11 15 12 23 26 5 2 27 6 5 16 6 3 2 23 5 3 20 20 4 24 2 18 21 7 14 10 27 23 6 24 6 19 23 3 9 22 16 21 17 19 23 ^'}},
+ {OUT=>'34C09F107C42D990EB4881D4BF2DDDCAB01563AE'}],
+ ['95', {IN=> {f=> '58 1 17 7 21 19 6 16 15 15 20 14 2 25 19 14 18 19 7 9 1 14 11 10 16 3 23 14 26 10 11 1 18 1 12 24 19 19 1 7 2 3 24 7 12 9 2 8 16 20 24 5 26 26 4 9 2 7 25 17 ^'}},
+ {OUT=>'474BE0E5892EB2382109BFC5E3C8249A9283B03D'}],
+ ['96', {IN=> {f=> '54 1 8 12 18 14 26 7 17 18 4 20 1 16 14 21 26 4 6 8 24 11 25 15 24 16 23 4 10 23 21 24 15 10 9 26 7 14 24 21 6 20 5 17 16 17 1 3 12 1 4 13 3 9 21 26 ^'}},
+ {OUT=>'A04B4F75051786682483252438F6A75BF4705EC6'}],
+ ['97', {IN=> {f=> '56 1 7 18 11 1 19 20 23 12 12 27 13 13 15 16 13 1 16 15 12 26 3 16 16 8 17 13 21 4 6 5 19 14 16 4 16 11 14 18 18 27 9 13 21 3 26 22 3 7 6 4 26 3 15 8 25 21 ^'}},
+ {OUT=>'BE88A6716083EB50ED9416719D6A247661299383'}],
+ ['98', {IN=> {f=> '50 1 20 13 9 11 20 6 11 21 27 25 20 7 4 18 26 16 27 5 12 19 7 23 6 25 25 2 11 13 25 21 18 17 6 12 14 13 24 11 14 19 26 27 25 6 1 15 4 7 27 15 ^'}},
+ {OUT=>'C67E38717FEE1A5F65EC6C7C7C42AFC00CD37F04'}],
+ ['99', {IN=> {f=> '51 0 15 16 26 27 23 14 12 28 22 15 8 19 2 20 13 1 24 2 25 1 6 19 19 8 11 24 24 21 13 27 5 11 28 17 7 25 6 23 24 14 25 12 5 13 26 2 5 8 10 16 17 ^'}},
+ {OUT=>'959AC4082388E19E9BE5DE571C047EF10C174A8D'}],
+ ['100', {IN=> {f=> '58 1 5 26 18 19 21 3 12 11 13 4 14 22 22 14 16 13 3 22 16 23 5 19 6 13 10 26 17 27 26 4 3 25 6 14 2 3 5 7 23 11 22 8 25 2 9 25 18 17 8 2 14 4 19 1 5 27 13 24 ^'}},
+ {OUT=>'BAA7AA7B7753FA0ABDC4A541842B5D238D949F0A'}],
+ ['101', {IN=> {f=> '53 0 2 27 28 2 17 23 10 27 18 26 7 22 16 3 27 1 26 21 28 10 3 6 2 2 10 17 13 16 6 17 21 23 13 20 22 5 6 11 12 12 8 23 13 17 9 23 20 3 28 27 12 17 22 ^'}},
+ {OUT=>'351394DCEBC08155D100FCD488578E6AE71D0E9C'}],
+ ['102', {IN=> {f=> '59 0 28 19 5 21 4 27 8 1 19 14 20 6 7 9 1 6 22 3 19 26 14 8 6 7 19 15 23 1 17 16 6 26 14 5 22 25 4 7 10 16 21 10 18 19 24 16 23 8 3 17 28 18 10 2 5 3 21 21 15 ^'}},
+ {OUT=>'AB8BE94C5AF60D9477EF1252D604E58E27B2A9EE'}],
+ ['103', {IN=> {f=> '58 0 6 24 1 4 24 18 10 22 1 21 12 5 4 4 20 25 24 26 8 25 11 2 7 27 22 19 4 18 27 10 28 4 12 24 8 16 12 11 16 17 25 8 12 16 1 9 9 10 5 24 23 18 5 14 18 8 4 28 ^'}},
+ {OUT=>'3429EC74A695FDD3228F152564952308AFE0680A'}],
+ ['104', {IN=> {f=> '61 0 5 17 8 28 1 22 4 11 3 2 17 3 14 9 27 13 18 24 9 8 7 28 25 14 21 27 24 6 18 16 2 12 15 9 14 10 1 8 17 4 6 15 26 11 15 2 28 20 26 16 3 7 5 8 9 26 10 12 25 11 22 ^'}},
+ {OUT=>'907FA46C029BC67EAA8E4F46E3C2A232F85BD122'}],
+ ['105', {IN=> {f=> '53 0 9 13 24 15 20 2 4 8 2 22 20 19 4 15 14 28 13 25 10 10 12 28 24 22 26 28 15 9 11 26 19 22 27 2 21 8 20 23 26 12 10 21 9 15 13 25 7 26 1 13 5 9 20 ^'}},
+ {OUT=>'2644C87D1FBBBC0FC8D65F64BCA2492DA15BAAE4'}],
+ ['106', {IN=> {f=> '58 0 3 9 21 22 7 1 23 28 1 2 8 22 12 18 28 5 18 14 7 11 17 20 20 7 21 13 8 28 21 22 2 16 20 15 28 9 3 22 13 10 23 4 16 11 14 1 10 8 14 14 15 18 13 12 21 18 25 28 ^'}},
+ {OUT=>'110A3EEB408756E2E81ABAF4C5DCD4D4C6AFCF6D'}],
+ ['107', {IN=> {f=> '60 1 29 20 2 29 22 8 16 20 4 12 9 6 12 16 16 7 9 20 29 11 9 4 1 15 25 16 29 10 22 7 2 8 5 18 14 23 24 4 6 26 3 11 6 12 1 7 14 24 14 6 10 21 16 23 29 25 6 14 17 24 ^'}},
+ {OUT=>'CD4FDC35FAC7E1ADB5DE40F47F256EF74D584959'}],
+ ['108', {IN=> {f=> '64 0 12 10 5 10 15 25 8 15 3 7 13 25 16 14 1 29 22 26 15 27 9 1 8 8 28 6 13 5 13 3 15 5 23 8 23 2 5 5 4 17 13 14 7 17 12 27 3 18 5 7 5 26 18 15 22 28 16 13 7 2 23 19 25 15 ^'}},
+ {OUT=>'8E6E273208AC256F9ECCF296F3F5A37BC8A0F9F7'}],
+ ['109', {IN=> {f=> '56 1 17 7 16 25 23 11 11 15 2 13 9 26 2 24 26 7 28 11 2 29 7 22 23 5 28 19 1 27 29 1 24 11 18 20 3 13 11 7 3 15 17 24 1 18 13 6 3 25 27 16 28 18 24 8 23 22 ^'}},
+ {OUT=>'FE0606100BDBC268DB39B503E0FDFE3766185828'}],
+ ['110', {IN=> {f=> '51 1 29 28 6 28 14 12 28 27 22 4 14 25 1 3 9 7 11 14 15 16 10 19 12 19 11 20 13 28 4 27 28 7 27 12 4 28 21 17 22 20 17 15 15 23 22 13 12 21 22 21 29 ^'}},
+ {OUT=>'6C63C3E58047BCDB35A17F74EEBA4E9B14420809'}],
+ ['111', {IN=> {f=> '64 1 12 14 12 18 27 8 7 4 9 14 16 15 8 11 21 20 10 10 21 23 20 2 11 23 1 11 1 5 3 23 16 15 27 14 5 16 3 22 2 3 24 3 19 29 4 4 10 8 20 14 15 1 26 12 27 25 4 28 22 11 19 19 24 9 ^'}},
+ {OUT=>'BCC2BD305F0BCDA8CF2D478EF9FE080486CB265F'}],
+ ['112', {IN=> {f=> '60 1 20 8 9 5 25 19 17 19 15 7 24 24 21 3 20 16 8 3 17 28 18 29 9 23 9 10 29 4 12 24 15 5 8 22 17 29 12 3 8 29 15 21 21 4 7 20 7 10 7 26 10 16 24 6 7 12 8 12 15 17 ^'}},
+ {OUT=>'CE5223FD3DD920A3B666481D5625B16457DCB5E8'}],
+ ['113', {IN=> {f=> '60 0 9 17 11 28 12 26 26 6 29 13 10 20 6 23 10 4 3 26 26 14 20 20 25 14 13 15 24 14 11 4 23 27 24 20 9 16 17 24 13 12 6 1 14 26 25 7 8 21 1 19 3 2 2 17 21 13 5 9 21 11 ^'}},
+ {OUT=>'948886776E42E4F5FAE1B2D0C906AC3759E3F8B0'}],
+ ['114', {IN=> {f=> '54 0 25 1 27 24 6 23 16 5 1 20 29 22 25 9 25 10 3 28 28 25 19 18 16 24 14 15 5 28 12 28 26 29 2 15 15 9 5 18 19 22 12 15 4 6 15 24 16 9 4 26 25 18 27 12 ^'}},
+ {OUT=>'4C12A51FCFE242F832E3D7329304B11B75161EFB'}],
+ ['115', {IN=> {f=> '61 1 20 4 26 12 3 22 1 22 30 3 28 10 9 24 14 29 6 30 3 10 20 14 6 3 19 21 21 28 16 18 11 30 11 20 30 1 9 8 11 5 19 10 24 4 22 4 2 26 5 15 20 8 3 13 30 18 8 1 25 28 19 ^'}},
+ {OUT=>'C54BDD2050504D92F551D378AD5FC72C9ED03932'}],
+ ['116', {IN=> {f=> '56 1 20 15 21 18 18 12 16 13 24 9 21 2 28 6 1 23 9 18 27 27 4 9 13 10 8 14 16 15 12 11 14 21 14 10 11 25 17 17 30 21 13 27 26 26 22 14 13 17 21 19 9 9 20 23 13 28 ^'}},
+ {OUT=>'8F53E8FA79EA09FD1B682AF5ED1515ECA965604C'}],
+ ['117', {IN=> {f=> '59 1 10 28 24 10 22 27 23 27 8 17 14 6 4 21 26 15 1 8 29 27 6 28 15 3 27 25 25 14 19 13 29 8 24 2 8 2 4 12 19 11 10 6 26 14 22 24 30 10 11 12 2 12 17 23 8 8 12 28 12 ^'}},
+ {OUT=>'2D7E17F6294524CE78B33EAB72CDD08E5FF6E313'}],
+ ['118', {IN=> {f=> '56 0 14 28 2 17 4 8 3 26 9 23 21 30 30 20 4 13 28 29 9 3 17 7 19 30 28 1 2 20 9 12 24 15 30 20 27 3 23 11 6 29 25 23 26 17 20 10 22 15 23 6 25 5 4 30 2 29 ^'}},
+ {OUT=>'64582B4B57F782C9302BFE7D07F74AA176627A3A'}],
+ ['119', {IN=> {f=> '63 1 23 15 27 14 26 1 1 7 19 12 7 6 20 18 14 4 15 17 28 7 11 7 8 9 22 17 12 5 23 18 25 18 6 12 26 30 12 30 14 3 1 18 10 20 27 21 8 6 24 26 20 11 24 7 2 4 18 15 14 30 16 19 14 ^'}},
+ {OUT=>'6D88795B71D3E386BBD1EB830FB9F161BA98869F'}],
+ ['120', {IN=> {f=> '52 0 27 15 4 19 25 29 29 7 14 18 9 11 9 27 11 15 29 9 28 20 2 30 26 21 17 8 28 17 22 29 24 8 11 18 29 15 6 7 27 27 17 24 18 23 11 19 8 30 5 24 22 24 ^'}},
+ {OUT=>'86AD34A6463F12CEE6DE9596ABA72F0DF1397FD1'}],
+ ['121', {IN=> {f=> '66 1 25 15 28 23 5 10 21 5 8 7 3 10 19 17 6 9 15 29 10 7 4 1 16 21 16 29 13 18 5 3 8 15 8 21 29 20 5 27 2 13 27 7 7 30 2 18 26 10 2 5 29 21 15 25 26 24 8 12 20 3 9 10 30 7 12 29 ^'}},
+ {OUT=>'7EB46685A57C0D466152DC339C8122548C757ED1'}],
+ ['122', {IN=> {f=> '53 1 30 26 20 11 22 19 27 2 16 10 6 4 24 17 20 25 20 15 8 23 23 20 30 18 16 3 30 15 26 23 28 7 21 8 7 31 31 14 26 18 3 1 26 28 15 25 11 31 3 25 9 21 30 ^'}},
+ {OUT=>'E7A98FB0692684054407CC221ABC60C199D6F52A'}],
+ ['123', {IN=> {f=> '67 0 2 6 14 4 9 5 28 8 17 22 1 4 8 7 10 14 19 10 14 8 27 9 24 26 4 30 11 8 19 5 21 7 2 27 20 16 20 20 22 14 13 16 26 14 10 3 25 22 25 23 21 10 15 15 29 8 13 4 2 13 22 20 7 4 20 31 23 ^'}},
+ {OUT=>'34DF1306662206FD0A5FC2969A4BEEC4EB0197F7'}],
+ ['124', {IN=> {f=> '65 0 2 2 28 13 19 14 12 23 27 6 2 14 2 22 6 25 30 29 31 13 14 16 31 12 16 30 5 14 31 11 4 1 1 25 21 13 26 22 21 5 22 14 29 1 21 3 14 30 4 2 29 12 15 23 3 15 5 1 6 23 22 13 1 14 23 ^'}},
+ {OUT=>'56CF7EBF08D10F0CB9FE7EE3B63A5C3A02BCB450'}],
+ ['125', {IN=> {f=> '59 1 25 5 15 6 13 3 22 11 23 31 24 6 5 20 4 14 3 29 8 29 19 7 29 23 25 28 19 11 15 27 21 14 1 19 20 26 12 7 12 1 18 13 29 28 23 29 14 23 7 1 9 29 24 5 30 18 5 25 30 ^'}},
+ {OUT=>'3BAE5CB8226642088DA760A6F78B0CF8EDDEA9F1'}],
+ ['126', {IN=> {f=> '55 1 31 25 13 7 24 25 24 1 12 19 9 7 6 28 20 14 28 21 19 31 20 20 6 24 18 27 24 4 18 21 1 31 15 1 15 2 27 4 26 25 4 23 19 2 31 22 30 21 22 5 27 12 30 28 31 ^'}},
+ {OUT=>'6475DF681E061FA506672C27CBABFA9AA6DDFF62'}],
+ ['127', {IN=> {f=> '62 0 27 15 18 14 25 15 17 7 28 11 28 29 30 1 17 12 10 2 18 20 21 2 11 12 5 4 12 25 14 5 5 24 22 18 31 15 22 29 11 3 21 31 21 27 3 28 7 10 25 2 15 30 9 30 7 22 15 9 3 20 24 14 ^'}},
+ {OUT=>'79D81991FA4E4957C8062753439DBFD47BBB277D'}],
+ ['128', {IN=> {f=> '60 0 28 14 18 9 27 14 22 27 31 10 8 14 7 15 7 20 5 26 1 29 7 17 17 8 3 13 27 18 8 31 27 28 22 22 17 19 18 18 11 19 13 25 10 19 6 28 4 31 23 10 18 26 31 5 10 13 12 8 15 27 ^'}},
+ {OUT=>'BAE224477B20302E881F5249F52EC6C34DA8ECEF'}],
+ ['129', {IN=> {f=> '60 1 24 22 4 29 22 31 28 20 4 16 21 3 1 15 5 15 6 30 3 29 29 7 27 20 2 20 31 22 26 9 29 16 4 26 32 17 20 14 28 17 19 6 24 11 26 28 5 18 15 8 16 20 21 4 9 12 4 8 17 29 ^'}},
+ {OUT=>'EDE4DEB4293CFE4138C2C056B7C46FF821CC0ACC'}],
+ ['130', {IN=> {f=> '69 1 5 3 11 15 12 24 31 23 1 6 28 2 8 31 6 7 30 5 19 23 12 6 9 31 19 17 24 25 22 6 12 16 3 7 9 9 11 29 4 11 2 5 13 29 10 12 30 32 18 28 18 27 3 30 4 4 26 6 13 31 13 2 11 7 24 4 17 29 12 ^'}},
+ {OUT=>'A771FA5C812BD0C9596D869EC99E4F4AC988B13F'}],
+ ['131', {IN=> {f=> '95 0 21 19 21 23 11 42 36 2 13 4 1 33 22 16 27 9 4 33 16 3 30 15 11 32 13 17 38 32 9 38 4 36 15 32 27 19 42 18 6 36 22 10 29 12 25 40 15 29 23 28 30 4 8 11 24 9 10 31 28 43 23 16 29 33 5 40 26 3 19 12 36 43 5 35 37 5 14 11 45 35 16 10 8 32 4 15 35 26 2 39 22 37 22 30 29 ^'}},
+ {OUT=>'E99D566212BBBCEEE903946F6100C9C96039A8F4'}],
+ ['132', {IN=> {f=> '106 1 18 14 51 2 6 32 51 9 32 50 44 46 51 8 11 53 45 55 16 10 3 52 8 20 20 46 46 13 32 2 46 50 43 25 54 9 31 29 2 47 15 29 24 45 44 18 37 14 28 39 36 44 47 16 50 10 44 24 53 35 22 40 20 15 51 22 18 22 42 6 54 49 38 21 7 13 30 16 7 52 16 22 13 38 7 11 44 33 9 25 13 37 42 14 45 53 30 38 5 25 5 35 38 22 28 53 ^'}},
+ {OUT=>'B48CE6B1D13903E3925AE0C88CB931388C013F9C'}],
+ ['133', {IN=> {f=> '127 0 58 35 43 28 5 28 63 8 12 25 9 47 53 29 62 7 37 2 3 48 5 12 55 56 28 35 12 63 6 58 27 27 48 44 35 14 17 22 56 10 8 1 16 15 42 63 14 51 57 19 41 7 8 56 47 34 52 22 48 60 43 9 1 52 4 21 49 61 18 50 23 13 46 62 23 45 62 9 56 18 23 31 8 30 27 36 13 38 4 58 53 47 24 18 41 58 19 12 18 52 42 29 44 45 26 63 34 32 41 64 15 26 55 19 2 49 6 30 53 13 54 12 53 37 12 37 43 ^'}},
+ {OUT=>'E647D5BAF670D4BF3AFC0A6B72A2424B0C64F194'}],
+ ['134', {IN=> {f=> '148 0 60 4 51 47 58 38 17 63 33 23 28 43 12 69 70 33 17 12 50 18 18 36 45 2 67 4 45 20 4 33 38 29 45 8 22 58 39 71 38 32 53 35 19 53 31 29 51 35 4 63 18 33 26 47 70 9 64 62 63 30 15 1 35 28 16 40 20 14 50 33 19 38 30 27 55 10 16 46 47 7 55 12 53 26 56 33 29 55 25 17 48 43 21 43 18 24 63 27 68 46 38 33 35 10 18 11 27 5 9 58 35 70 36 36 39 47 2 10 66 47 5 18 21 44 71 51 57 3 22 7 56 55 28 25 14 40 16 24 48 37 66 50 24 45 18 39 53 55 ^'}},
+ {OUT=>'65C1CD932A06B05CD0B43AFB3BC7891F6BCEF45C'}],
+ ['135', {IN=> {f=> '165 1 15 62 35 29 15 40 19 76 67 4 5 71 46 61 26 8 77 48 1 23 12 60 40 24 44 33 29 42 73 66 49 61 20 30 1 54 52 42 39 64 23 65 37 24 20 11 26 66 22 77 22 57 7 38 57 33 61 73 7 64 1 49 35 76 14 27 21 45 68 38 58 73 13 72 47 73 33 8 66 23 38 4 56 77 47 10 71 13 20 31 41 6 51 3 18 17 61 47 14 48 76 46 28 34 43 1 56 4 25 7 65 41 1 34 37 23 59 59 27 26 13 15 14 75 60 14 1 28 59 26 65 61 16 23 17 28 6 19 2 35 49 30 29 48 2 63 73 59 1 3 76 41 11 19 18 43 54 63 67 51 4 9 78 60 66 ^'}},
+ {OUT=>'70FFAE353A5CD0F8A65A8B2746D0F16281B25EC7'}],
+ ['136', {IN=> {f=> '181 0 18 19 84 17 12 10 57 18 77 51 52 16 39 74 49 52 63 38 72 2 15 64 83 62 49 56 11 26 68 58 83 33 23 50 63 71 53 27 84 22 39 41 52 58 11 64 7 60 45 70 22 5 73 38 30 30 48 21 75 80 40 21 8 53 9 26 30 34 81 71 71 51 23 75 33 41 23 32 5 8 66 40 72 40 16 66 45 14 48 34 21 41 27 3 55 27 37 23 41 65 4 57 51 74 22 19 75 42 16 19 46 16 10 48 20 19 37 41 14 57 9 17 55 38 5 60 7 46 20 43 36 39 52 20 10 62 45 23 46 7 35 75 29 70 35 36 34 25 12 15 84 26 10 6 71 29 79 33 32 25 59 76 82 64 58 7 8 19 41 74 2 53 65 24 1 55 51 36 21 79 7 ^'}},
+ {OUT=>'CC8221F2B829B8CF39646BF46888317C3EB378EA'}],
+ ['137', {IN=> {f=> '184 1 60 66 66 6 3 9 73 12 7 40 70 18 71 70 65 51 14 14 27 50 9 87 81 50 22 19 40 37 16 79 12 34 37 76 82 10 61 7 81 49 67 26 45 82 50 81 63 45 69 31 31 76 51 9 59 34 51 54 34 83 10 33 51 86 81 82 69 18 8 22 64 19 86 62 58 33 37 17 34 5 29 83 42 76 50 54 66 39 9 1 36 43 17 65 6 35 56 72 71 83 88 10 1 8 87 22 6 21 78 25 89 43 62 40 55 85 31 89 74 63 46 28 24 26 31 17 7 8 27 19 12 85 17 20 27 77 10 2 54 80 17 52 74 76 69 78 11 20 80 4 29 24 85 75 18 39 23 70 83 29 57 67 72 70 33 4 15 46 42 2 69 13 53 33 69 64 33 64 14 40 69 59 78 54 ^'}},
+ {OUT=>'26ACCC2D6D51FF7BF3E5895588907765111BB69B'}],
+ ['138', {IN=> {f=> '193 1 68 43 95 53 38 58 55 28 20 16 67 48 17 86 32 44 68 67 28 16 14 79 25 15 72 67 50 80 18 30 10 75 1 60 45 87 78 28 95 49 63 70 59 26 6 51 73 60 65 18 26 8 87 5 58 31 25 57 40 46 78 57 34 78 61 36 66 57 38 80 22 32 68 71 30 74 37 81 66 77 66 55 2 51 24 93 61 40 68 45 61 12 63 24 89 59 52 72 43 20 20 69 36 40 88 46 9 62 55 77 84 20 18 6 77 15 52 39 75 3 26 4 85 17 62 29 11 92 46 58 29 59 28 42 80 71 96 2 49 85 37 63 4 61 14 2 53 87 25 86 6 75 76 93 41 39 93 92 42 56 41 63 26 28 18 77 11 50 78 79 1 12 12 91 29 13 58 5 56 92 66 59 4 39 47 95 5 5 62 33 13 80 27 ^'}},
+ {OUT=>'01072915B8E868D9B28E759CF2BC1AEA4BB92165'}],
+ ['139', {IN=> {f=> '203 1 35 28 11 7 20 7 17 3 3 30 89 13 65 56 66 63 22 82 16 31 55 56 77 91 91 71 101 13 10 85 101 95 17 99 98 91 33 14 20 48 32 7 64 29 38 35 25 4 95 23 34 1 85 81 23 31 96 71 84 50 15 79 47 25 51 45 35 66 19 61 60 9 31 93 64 70 30 42 86 53 1 71 46 42 22 38 96 10 99 34 76 26 55 73 63 63 97 23 92 81 64 46 1 30 31 35 86 91 88 64 87 16 37 69 84 94 60 100 3 47 52 8 71 87 57 29 76 43 18 45 46 15 65 12 44 42 66 60 15 68 19 58 39 62 76 9 92 101 57 32 4 34 15 41 62 32 89 71 43 35 31 41 21 17 82 33 96 27 62 29 82 57 46 62 15 24 99 37 83 40 52 46 56 80 98 3 91 74 6 27 7 58 94 10 41 79 97 84 77 74 26 99 35 ^'}},
+ {OUT=>'3016115711D74236ADF0C371E47992F87A428598'}],
+ ['140', {IN=> {f=> '212 1 26 101 17 91 45 97 80 59 102 30 68 4 85 9 4 39 16 18 85 70 11 87 62 72 78 38 3 41 53 82 82 35 18 13 94 64 52 39 77 59 26 9 65 46 64 98 32 29 86 79 16 63 54 76 56 98 16 98 78 22 72 33 103 104 52 84 12 65 15 85 101 97 84 31 51 26 100 100 38 80 13 2 78 7 24 44 84 103 27 7 28 16 33 99 25 103 54 14 42 62 87 92 27 22 42 5 52 100 84 73 72 63 24 48 56 52 23 5 17 76 31 1 95 58 43 60 50 62 30 23 35 79 20 35 3 72 32 45 51 87 41 84 27 79 77 70 102 15 54 15 100 8 52 69 105 3 30 84 42 93 66 89 69 74 24 33 42 97 4 38 99 106 13 93 6 106 74 100 54 45 21 59 56 37 9 50 32 75 79 31 77 9 61 1 8 68 6 60 81 7 100 99 14 61 48 25 73 26 70 72 94 34 ^'}},
+ {OUT=>'BF30417999C1368F008C1F19FECA4D18A5E1C3C9'}],
+ ['141', {IN=> {f=> '233 0 11 98 110 88 35 110 35 64 49 88 93 28 85 6 78 65 90 52 24 97 51 39 51 59 23 1 3 49 33 11 78 27 35 55 64 5 102 4 70 25 56 58 38 66 11 31 96 66 104 59 41 86 58 29 79 41 40 72 51 12 92 34 52 44 69 104 21 97 89 96 48 21 4 61 40 28 67 34 23 85 44 22 62 52 33 84 23 30 73 74 4 79 12 81 47 80 53 47 89 40 19 80 62 34 61 29 41 95 43 1 70 63 55 53 18 19 13 48 10 19 89 49 4 52 53 56 76 10 8 104 77 15 28 38 75 109 3 85 90 8 40 8 93 90 43 39 14 60 17 36 78 56 105 80 35 75 36 58 82 50 100 98 45 74 13 66 95 72 71 95 34 14 98 72 33 38 37 52 6 14 107 59 3 29 61 67 98 92 5 93 17 98 36 87 41 75 71 57 88 17 25 91 84 3 58 20 92 69 51 50 36 31 14 25 18 30 18 1 41 104 30 82 59 87 70 34 96 28 47 62 81 103 48 ^'}},
+ {OUT=>'62BA49087185F2742C26E1C1F4844112178BF673'}],
+ ['142', {IN=> {f=> '234 1 63 90 108 108 102 64 82 88 4 111 76 97 22 1 108 41 34 91 33 20 25 24 26 8 83 11 31 7 85 109 106 4 105 85 68 28 33 99 53 8 16 12 11 74 17 83 66 70 16 30 9 67 68 34 24 81 47 92 72 47 37 33 38 92 17 8 28 88 22 62 69 32 89 75 3 72 96 85 13 105 24 38 37 94 115 83 72 108 114 24 93 76 103 60 99 102 9 43 10 59 95 46 33 93 15 26 69 44 2 86 107 55 45 61 65 92 66 9 55 39 70 83 29 98 67 13 111 15 20 31 62 8 2 51 20 19 33 44 14 115 71 112 97 10 41 28 53 51 26 57 15 38 98 55 106 22 56 31 50 95 107 110 84 70 10 108 96 73 100 25 36 55 88 71 63 96 30 90 96 79 22 7 30 23 28 59 89 8 51 99 47 86 34 18 43 65 98 104 107 49 7 79 71 8 57 21 29 80 2 74 78 44 57 9 61 22 13 68 52 91 74 98 43 30 58 68 95 101 72 102 76 42 99 61 ^'}},
+ {OUT=>'E1F6B9536F384DD3098285BBFD495A474140DC5A'}],
+ ['143', {IN=> {f=> '249 0 27 117 45 119 80 2 59 52 8 76 20 94 102 69 96 42 46 106 67 9 110 89 71 69 34 31 15 85 16 29 100 82 37 62 68 95 108 44 23 114 34 36 56 93 11 30 96 12 31 67 14 114 14 66 70 30 81 46 53 119 85 6 104 47 92 72 70 5 70 15 115 68 105 33 97 13 85 106 14 61 29 22 86 45 57 69 91 38 38 28 66 13 60 95 103 3 15 5 113 38 23 62 5 65 94 107 73 104 37 47 102 117 3 78 35 7 95 56 78 45 52 28 46 43 37 32 53 19 55 29 47 97 76 115 83 71 11 45 62 73 99 116 2 24 116 7 28 41 2 29 37 52 23 5 118 79 31 57 89 61 24 101 78 50 93 73 41 7 33 45 47 24 1 48 73 36 3 25 87 46 28 108 54 68 53 67 119 28 36 118 104 42 88 27 112 4 74 85 1 63 39 97 71 74 75 76 10 49 12 79 11 50 103 118 94 117 118 37 27 12 94 60 28 51 47 82 110 17 15 105 23 52 43 12 21 22 81 41 12 74 90 42 108 117 98 67 4 69 85 ^'}},
+ {OUT=>'B522DAE1D67726EBA7C4136D4E2F6D6D645AC43E'}],
+ ['144', {IN=> {f=> '243 0 76 81 26 101 13 68 62 106 87 19 98 32 81 63 79 93 31 121 123 75 52 11 66 41 54 87 38 5 104 62 51 38 55 29 31 120 44 16 48 94 46 105 91 66 78 27 43 6 64 2 55 79 75 84 113 22 4 113 109 31 33 17 96 11 29 63 98 103 107 116 34 14 9 95 38 18 51 75 33 109 118 55 66 4 76 7 75 70 82 74 23 1 26 69 40 112 99 47 65 31 70 119 52 103 88 85 86 28 16 12 76 25 22 78 64 21 86 27 61 77 72 108 2 18 106 119 121 54 16 85 72 2 73 26 88 66 60 80 35 24 117 63 24 44 67 52 122 119 33 72 16 99 98 69 54 19 42 28 53 114 32 117 81 100 57 49 123 56 21 68 80 53 95 1 45 95 107 98 87 1 27 24 99 116 16 67 1 113 91 84 25 40 25 72 3 28 90 87 112 80 16 117 45 77 36 90 105 59 88 122 64 108 108 71 98 18 50 115 93 105 77 35 6 46 55 47 102 4 26 87 111 120 81 113 4 57 105 3 84 94 115 61 73 ^'}},
+ {OUT=>'E9A021C3EB0B9F2C710554D4BF21B19F78E09478'}],
+ ['145', {IN=> {f=> '255 1 91 47 51 9 57 9 55 94 61 61 68 46 107 6 35 81 114 78 96 74 14 89 73 67 67 69 113 107 11 98 113 109 20 92 17 67 70 88 57 10 124 9 60 122 93 91 45 7 15 24 51 5 98 115 24 49 90 104 117 66 128 94 64 80 12 43 91 46 111 59 58 77 30 14 88 60 123 68 41 44 68 40 104 118 41 43 93 90 105 92 16 127 26 54 125 114 79 71 24 48 21 25 118 40 103 49 91 44 67 65 25 119 109 18 48 23 69 112 38 61 64 87 84 104 119 110 122 92 22 1 8 83 34 100 32 62 41 46 112 34 102 76 56 39 4 127 30 13 19 110 124 7 16 128 95 4 124 11 104 116 126 49 95 3 55 96 70 90 101 4 122 96 75 118 39 128 99 92 18 42 20 87 83 35 75 111 61 67 71 28 101 9 56 34 105 95 71 23 73 71 26 57 15 23 76 55 99 89 128 98 117 68 43 88 62 38 62 39 2 83 36 15 26 60 128 96 73 74 10 1 12 42 22 2 77 33 33 32 57 13 14 82 57 12 39 3 58 80 14 87 85 44 69 109 119 ^'}},
+ {OUT=>'DF13573188F3BF705E697A3E1F580145F2183377'}],
+ ['146', {IN=> {f=> '283 0 102 55 53 41 60 88 25 67 58 76 44 22 68 118 108 40 95 96 81 90 85 28 77 18 11 37 72 93 60 110 124 119 95 131 91 37 109 126 8 73 69 72 80 17 83 5 76 20 32 15 10 1 103 18 22 116 98 9 51 104 102 44 33 15 12 24 31 89 1 6 28 101 8 64 72 106 30 5 52 89 111 39 108 64 85 17 57 124 22 105 78 115 3 40 108 66 108 77 128 103 44 35 38 13 95 10 111 63 98 117 61 51 126 69 96 70 70 59 39 13 97 33 112 2 77 7 123 70 83 29 66 67 49 79 19 104 115 14 60 2 55 40 71 33 28 114 51 91 17 46 45 128 57 87 62 25 115 38 50 55 90 74 8 51 102 79 43 94 36 122 94 12 41 36 25 104 91 24 7 99 80 30 126 32 63 122 107 114 27 28 79 41 12 35 51 115 122 70 22 79 65 2 88 27 17 59 15 23 44 57 5 65 6 26 78 80 125 93 84 100 45 22 129 68 36 111 74 118 11 50 42 120 47 21 8 86 112 26 67 60 99 45 93 47 8 38 59 52 56 124 20 82 18 117 24 18 46 106 19 117 26 41 47 45 130 7 15 1 4 5 100 10 85 50 44 11 48 92 119 108 42 118 125 ^'}},
+ {OUT=>'188835CFE52ECFA0C4135C2825F245DC29973970'}],
+ ['147', {IN=> {f=> '272 0 8 61 99 70 96 20 87 123 134 82 22 2 110 118 33 86 5 7 5 94 56 15 60 96 54 13 22 55 99 4 25 105 17 37 69 10 38 117 117 30 70 13 9 109 115 62 94 52 66 117 100 135 7 75 23 5 81 110 31 118 29 1 62 11 41 88 109 119 102 37 3 30 123 47 31 56 134 29 124 116 118 99 21 56 77 91 23 37 135 81 44 51 67 95 51 133 30 57 67 116 122 48 100 7 132 97 106 69 93 4 95 125 102 103 119 81 57 133 96 37 118 50 117 113 81 127 17 45 103 32 121 129 60 43 65 127 30 36 132 110 52 53 35 71 12 76 22 72 130 112 99 76 26 21 73 63 63 97 23 58 115 132 114 1 132 31 35 18 23 54 30 53 118 37 35 84 94 60 100 3 47 18 110 105 87 57 63 76 43 52 45 46 49 65 12 10 42 66 60 117 34 19 92 5 28 76 9 126 101 125 32 38 34 15 7 62 32 21 3 43 69 31 109 123 51 116 135 130 129 130 63 14 57 80 62 15 126 31 105 83 108 120 80 124 46 98 105 91 6 6 27 7 58 128 78 7 79 63 84 77 74 128 65 61 95 121 17 24 123 117 51 122 ^'}},
+ {OUT=>'41B615A34EE2CEC9D84A91B141CFAB115821950B'}],
+ ['148', {IN=> {f=> '284 0 44 71 43 20 126 58 53 47 98 18 19 119 93 29 70 39 94 112 44 115 135 98 82 10 67 29 102 113 68 80 19 75 1 91 114 87 80 7 40 37 86 120 16 104 136 117 82 138 32 65 114 119 137 121 8 12 46 126 26 119 73 130 60 76 113 100 14 133 26 116 34 120 80 95 84 53 15 24 44 51 4 10 23 77 24 99 66 37 54 63 42 136 21 34 76 5 17 128 101 1 59 40 113 112 32 97 31 93 105 79 91 18 39 1 103 132 51 68 124 111 13 97 43 128 69 84 85 72 15 12 26 87 16 16 92 101 13 77 4 118 89 103 56 42 16 60 44 39 126 46 18 83 93 41 105 3 82 106 115 91 6 4 54 115 15 120 109 113 48 41 9 95 20 62 67 105 111 25 132 7 116 46 138 44 83 61 124 131 35 107 6 109 81 114 67 41 137 77 56 74 73 34 12 14 69 52 11 98 47 54 83 81 6 1 15 88 35 139 80 83 49 89 27 47 130 92 133 87 51 112 76 49 109 49 57 93 73 22 117 50 64 58 97 139 36 131 111 133 58 33 8 88 55 38 90 46 30 118 57 29 82 74 41 117 38 46 94 92 5 105 15 117 70 103 68 60 120 48 21 110 85 40 81 66 ^'}},
+ {OUT=>'AB3DD6221D2AFE6613B815DA1C389EEC74AA0337'}],
+ ['149', {IN=> {f=> '291 0 46 113 52 134 79 74 64 57 18 23 9 52 8 16 103 57 138 59 59 65 92 2 7 130 92 8 34 40 86 131 140 100 112 4 42 1 110 108 43 37 15 67 19 35 94 61 130 98 35 88 34 65 104 56 126 118 50 87 10 81 109 90 86 118 32 6 114 88 39 38 39 62 3 12 134 72 137 35 75 81 115 106 140 112 11 123 41 103 45 95 84 71 107 13 26 110 96 62 16 109 84 59 53 38 27 8 28 13 32 137 17 138 41 122 36 99 65 99 83 36 112 29 49 70 96 126 136 131 116 3 18 17 126 142 14 37 141 141 123 42 13 20 83 42 139 83 54 49 58 42 7 137 29 48 16 121 127 34 52 140 106 128 58 36 124 83 24 69 54 61 112 17 6 95 97 24 57 86 124 59 71 119 67 1 109 54 68 49 57 132 32 5 71 113 40 80 104 75 106 133 31 126 130 104 62 9 39 44 66 116 141 135 96 132 19 41 121 126 124 77 8 4 60 82 6 101 124 89 51 123 48 40 85 77 21 112 10 69 66 115 87 16 108 30 84 65 80 103 32 131 134 73 47 10 63 39 50 93 37 135 114 69 48 34 58 23 27 133 37 9 40 98 41 115 99 70 83 29 42 67 133 55 79 80 91 122 12 2 115 112 47 ^'}},
+ {OUT=>'0706D414B4AA7FB4A9051AA70D6856A7264054FB'}],
+ ['150', {IN=> {f=> '293 1 33 13 99 138 1 42 89 118 87 113 99 12 134 142 100 38 5 55 75 14 110 108 42 64 130 79 138 62 64 69 57 11 123 25 59 16 111 94 24 65 30 51 119 48 107 92 84 69 28 136 143 54 20 6 70 47 142 64 4 65 59 73 99 134 146 102 125 116 57 137 137 72 48 128 78 5 80 63 54 85 30 22 129 68 21 21 74 28 128 107 27 60 2 93 95 71 37 11 37 15 39 102 3 104 65 80 59 52 113 34 20 67 60 27 81 135 46 106 106 102 68 128 17 15 100 124 15 43 136 122 100 67 142 35 14 53 120 2 89 93 99 73 9 122 39 77 15 96 90 43 79 134 60 92 105 55 96 31 119 77 97 72 23 140 38 30 43 83 136 88 107 117 72 109 118 58 91 119 73 95 100 59 138 123 54 49 143 50 133 66 106 45 80 88 42 93 5 59 77 101 74 110 104 40 92 19 77 76 86 102 129 3 144 101 139 134 56 90 18 91 94 85 55 10 137 11 58 1 107 113 70 22 7 56 29 143 111 8 46 45 116 122 129 89 7 121 53 95 14 49 118 62 125 91 37 97 15 35 100 63 140 63 50 51 58 26 127 6 45 59 102 121 114 85 141 135 10 72 19 106 66 66 41 53 13 38 1 21 103 50 108 46 119 ^'}},
+ {OUT=>'3CBF8151F3A00B1D5A809CBB8C4F3135055A6BD1'}],
+ ['151', {IN=> {f=> '297 1 46 31 132 112 28 63 124 97 129 43 40 72 99 107 132 137 96 139 99 145 121 144 118 37 81 39 94 60 55 109 47 109 110 75 42 12 139 137 43 128 106 107 19 126 12 101 148 127 15 117 125 125 62 96 13 76 70 96 101 110 138 8 95 76 143 17 32 97 79 149 39 31 94 123 21 41 135 55 84 70 33 135 118 50 62 121 81 1 45 144 93 60 5 64 137 8 105 91 82 67 27 113 119 53 18 98 79 48 84 32 135 128 5 1 20 76 17 85 108 72 36 141 140 49 150 105 104 3 149 14 54 18 148 64 49 125 37 28 28 101 22 104 91 32 82 117 12 114 69 58 2 58 115 9 108 47 59 65 14 92 7 4 86 98 16 82 92 95 38 94 10 10 48 97 104 66 115 97 142 115 122 119 40 97 16 32 47 34 88 89 26 50 12 76 80 51 40 9 133 24 44 40 122 84 108 22 142 140 99 44 15 54 8 42 125 150 130 21 79 124 62 46 119 15 29 91 57 150 42 138 71 61 68 80 114 6 1 70 121 18 35 113 56 87 86 10 73 14 29 41 72 89 1 133 87 101 123 59 90 142 77 133 52 78 48 34 138 134 27 17 60 131 147 61 93 148 39 132 49 62 71 36 91 4 139 49 100 120 43 113 144 30 94 73 127 40 125 ^'}},
+ {OUT=>'DA5D6A0319272BBCCEA63ACFA6799756FFDA6840'}],
+ ['152', {IN=> {f=> '313 1 35 97 95 76 105 88 32 138 30 69 61 40 47 21 107 6 39 81 114 53 125 53 147 14 4 73 146 96 98 13 136 11 98 117 138 153 67 146 71 99 88 7 139 24 13 35 47 97 145 74 36 119 3 51 84 48 119 53 49 15 79 17 120 103 148 64 30 41 97 120 75 111 63 58 131 134 18 13 10 48 18 16 48 43 15 54 18 41 47 122 144 80 92 145 77 1 33 89 54 46 78 48 21 54 43 40 53 24 16 73 42 94 29 44 34 151 152 23 123 12 142 140 43 37 88 29 19 35 72 96 151 130 62 112 34 36 91 120 50 112 138 2 105 60 68 137 131 5 17 19 139 74 11 120 78 149 58 128 15 104 16 126 78 20 57 134 71 49 90 76 108 126 100 54 68 39 132 153 42 147 146 124 62 87 35 75 61 65 46 100 82 105 113 31 63 5 95 54 71 77 127 150 80 36 144 2 130 59 74 39 3 152 121 122 18 117 12 117 141 118 135 62 36 69 5 39 53 150 52 153 143 30 66 96 126 131 56 137 8 7 86 142 14 7 111 141 93 136 137 134 43 12 89 23 44 9 152 146 121 97 19 38 110 91 67 14 32 110 66 68 8 130 84 73 118 59 24 41 72 121 150 55 37 138 27 104 66 124 9 51 109 47 125 109 148 8 29 47 72 146 149 61 93 10 20 54 15 76 133 125 106 110 67 ^'}},
+ {OUT=>'FB4429C95F6277B346D3B389413758DFFFEEDC98'}],
+ ['153', {IN=> {f=> '330 0 23 9 26 136 27 51 115 122 44 106 6 146 108 113 85 51 8 96 47 56 137 62 59 89 143 71 140 14 85 156 139 99 154 30 53 115 35 147 108 148 58 52 28 103 19 92 95 152 152 10 11 13 155 67 11 83 101 69 153 152 45 141 14 120 129 140 119 59 2 89 73 70 83 29 16 67 81 29 1 54 65 96 117 2 37 47 128 33 3 89 108 98 139 49 78 27 103 39 119 94 132 90 38 132 55 65 131 90 58 2 54 100 69 118 22 44 19 7 148 93 25 29 123 81 64 131 55 30 1 89 38 97 82 64 9 28 86 123 151 10 133 40 154 102 4 111 65 9 63 59 124 116 72 105 76 57 137 97 32 145 108 78 112 50 43 34 75 20 22 129 68 11 118 74 125 118 57 17 20 129 53 65 61 144 1 17 142 156 52 100 54 15 20 59 52 63 131 20 57 124 31 125 46 106 76 92 8 98 154 152 80 114 15 140 136 112 100 17 92 25 151 150 80 99 69 83 49 43 156 102 19 57 122 96 30 3 39 134 40 32 75 5 76 127 138 99 17 57 52 150 130 18 127 33 23 116 107 78 77 77 42 69 68 48 41 69 33 75 40 49 128 103 4 146 93 10 83 66 96 152 30 38 12 33 5 39 47 41 34 60 74 20 42 156 67 46 56 102 89 3 124 81 99 104 56 50 8 61 74 55 15 87 108 28 138 47 93 60 2 124 46 126 103 91 145 36 25 116 122 51 ^'}},
+ {OUT=>'2C6E30D9C895B42DCCCFC84C906EC88C09B20DE1'}],
+ ['154', {IN=> {f=> '322 0 75 7 107 158 81 105 154 90 20 125 77 114 69 92 7 58 21 98 154 50 128 149 117 127 153 45 3 18 121 86 29 71 79 101 2 5 22 143 10 27 53 146 157 148 112 33 22 80 123 24 147 1 112 82 159 63 74 97 109 33 151 32 89 87 132 117 46 129 59 115 91 114 118 37 21 9 94 60 25 89 47 79 110 55 12 143 99 87 43 88 56 57 160 76 12 71 128 77 146 117 95 105 42 66 3 76 20 76 101 100 118 149 45 26 143 148 32 57 39 129 19 31 84 123 1 152 135 5 54 30 13 125 68 30 62 101 51 142 5 94 83 20 116 24 107 109 105 91 42 17 27 93 69 3 139 68 79 38 84 2 85 128 126 122 131 46 17 35 98 42 26 111 100 29 120 55 84 114 109 145 14 18 138 14 9 85 7 18 129 91 2 94 51 133 82 87 123 64 39 8 103 38 75 110 78 7 9 45 115 42 138 135 86 78 16 62 52 75 159 54 151 121 149 77 74 16 85 47 102 105 82 119 10 67 137 153 148 135 28 49 26 151 153 36 80 11 130 113 24 44 30 102 24 58 133 122 140 99 24 156 54 119 42 115 140 90 132 19 94 2 157 99 136 19 71 7 130 153 108 51 21 58 70 74 137 1 40 111 149 5 103 6 27 76 141 23 125 140 1 72 29 152 103 87 51 93 29 80 132 77 123 153 68 159 14 98 114 158 121 158 81 131 ^'}},
+ {OUT=>'3DE3189A5E19F225CDCE254DFF23DACD22C61363'}],
+ ['155', {IN=> {f=> '322 0 35 93 109 125 119 10 10 19 135 26 4 74 135 35 120 129 113 92 17 29 47 88 14 159 149 87 45 36 75 68 22 138 20 59 61 144 151 11 107 6 153 81 114 43 85 157 97 148 118 73 126 56 58 137 96 11 98 67 98 103 57 146 21 59 88 151 139 148 127 25 17 47 115 34 160 109 107 51 64 28 69 13 49 149 69 141 90 93 118 64 10 1 67 80 35 111 13 58 101 124 132 147 154 18 162 6 162 33 5 34 142 41 161 82 114 70 92 145 57 155 137 114 79 44 36 48 48 21 14 13 40 33 14 150 33 32 54 143 14 4 101 142 23 93 136 132 120 147 17 38 163 143 5 52 46 151 130 32 72 34 124 150 51 100 112 128 126 65 10 28 87 81 159 131 19 99 54 125 110 58 119 28 78 129 104 140 126 38 154 27 114 61 153 90 66 98 76 50 158 48 39 82 123 22 147 136 114 52 37 35 75 41 15 150 60 52 55 103 21 23 129 95 24 71 47 97 130 50 140 144 106 100 9 64 19 117 122 71 92 8 77 156 97 121 98 85 2 36 39 109 143 23 120 156 133 93 154 36 66 116 131 160 127 162 161 46 142 14 141 81 141 63 86 117 104 3 146 39 127 34 133 102 106 91 57 9 28 60 61 7 158 12 80 26 8 122 80 44 63 68 49 158 21 32 81 150 15 141 108 161 64 46 124 123 31 99 27 105 109 98 112 144 ^'}},
+ {OUT=>'93530A9BC9A817F6922518A73A1505C411D05DA2'}],
+ ['156', {IN=> {f=> '336 1 34 161 107 149 48 67 138 109 156 104 37 133 60 80 84 81 160 9 16 96 164 1 95 112 4 86 163 116 98 103 55 31 8 56 37 36 127 32 9 89 103 31 100 161 85 106 119 89 154 43 115 162 137 108 128 38 42 155 103 9 62 65 102 122 10 138 160 125 47 158 43 91 69 123 132 35 121 4 110 89 130 69 29 139 69 53 70 83 29 163 67 41 9 108 34 45 76 87 2 144 164 98 33 160 79 78 48 89 9 38 134 93 146 79 54 122 80 38 112 55 55 101 70 8 129 44 70 59 98 149 24 136 124 138 63 25 166 83 51 34 91 45 30 118 59 28 87 72 44 116 28 36 103 101 113 10 114 62 111 71 65 126 53 19 114 86 42 85 36 57 137 57 159 95 88 78 72 20 23 14 65 10 22 129 68 1 68 74 75 108 7 7 147 109 13 35 51 104 158 164 122 126 2 50 4 132 127 59 52 13 81 20 47 107 74 148 115 46 106 46 82 115 68 144 142 60 104 15 90 136 102 100 134 42 15 141 100 40 49 49 73 166 13 156 82 166 37 82 96 137 130 166 134 20 139 45 122 56 107 98 79 124 17 32 130 120 165 77 23 130 96 67 68 47 37 12 29 18 38 158 19 160 55 147 39 118 83 121 96 43 137 33 66 86 112 147 155 149 140 5 19 17 148 161 10 44 159 146 57 16 26 102 49 3 104 61 59 74 56 10 165 31 54 25 142 157 37 58 165 128 154 73 50 149 94 137 ^'}},
+ {OUT=>'E31354345F832D31E05C1B842D405D4BD4588EC8'}],
+ ['157', {IN=> {f=> '330 1 61 51 65 132 23 169 116 122 14 66 7 98 131 72 69 127 72 163 125 68 69 51 47 159 31 164 71 118 50 83 113 81 127 153 45 137 134 121 68 163 26 43 65 127 166 138 98 144 18 53 137 139 148 76 158 4 62 78 167 102 144 94 55 141 63 29 97 91 24 115 166 80 69 132 99 1 120 23 88 64 87 118 37 137 152 94 60 168 71 47 52 110 37 155 125 63 42 43 52 11 12 151 31 12 44 110 32 128 117 68 87 24 39 164 76 145 58 101 91 100 140 151 143 130 32 21 3 111 1 31 75 123 153 116 135 130 27 164 165 116 23 12 62 83 24 133 139 49 74 154 80 158 80 64 105 91 6 142 27 75 24 128 112 41 79 29 84 145 40 128 99 95 95 19 17 160 89 15 17 84 64 11 93 10 66 78 73 127 148 18 129 139 143 49 150 9 84 82 154 85 15 88 82 60 87 19 12 133 58 20 39 65 51 141 134 27 70 167 120 117 86 60 16 44 16 57 132 18 142 85 104 59 47 141 58 2 66 96 46 119 153 40 110 126 103 90 144 13 26 106 144 80 145 134 103 95 24 44 21 84 140 13 97 104 140 99 6 147 54 83 42 106 131 54 96 135 67 118 121 81 109 10 53 132 112 117 81 33 155 49 61 38 119 1 13 102 131 148 94 131 143 67 123 148 89 104 135 72 145 152 76 87 6 66 2 71 123 77 114 108 59 123 166 62 96 140 94 149 116 169 ^'}},
+ {OUT=>'3FF76957E80B60CF74D015AD431FCA147B3AF232'}],
+ ['158', {IN=> {f=> '349 0 125 17 93 82 80 110 156 147 156 99 154 4 29 90 163 120 84 113 56 8 157 29 61 169 141 113 78 48 50 13 138 11 50 61 99 106 2 107 6 117 81 114 34 49 112 52 130 82 73 108 20 22 110 60 11 98 22 62 58 48 146 149 23 88 142 139 121 91 16 163 2 88 171 133 100 62 51 46 10 24 150 49 131 60 114 63 84 91 64 165 138 40 44 172 111 141 58 74 115 96 129 145 164 153 170 126 24 169 16 115 41 125 46 87 61 92 145 39 155 92 78 70 35 27 21 48 21 151 159 40 15 5 132 170 23 18 107 160 150 56 133 23 66 109 123 102 102 172 166 145 116 151 34 1 151 130 5 36 34 97 114 15 82 128 112 119 99 29 138 165 42 36 159 95 19 63 36 89 101 40 92 1 33 93 104 113 126 2 136 96 52 108 90 57 89 31 5 113 30 39 37 96 4 147 127 105 43 165 35 75 23 143 105 24 25 10 94 12 160 102 95 170 71 20 70 112 23 95 144 61 73 137 55 1 81 95 26 65 172 41 147 79 103 80 40 121 36 12 64 98 169 93 111 115 48 127 9 39 107 131 115 118 162 161 10 142 14 123 54 141 36 41 99 77 140 128 167 82 25 106 57 70 64 21 19 15 34 126 149 167 53 163 127 86 35 8 54 23 40 140 3 169 45 150 152 96 81 143 28 28 124 87 13 90 9 87 109 53 67 164 28 131 89 149 42 55 126 79 132 74 19 133 30 68 72 75 148 9 10 72 152 144 83 106 153 74 163 98 152 ^'}},
+ {OUT=>'34AE3B806BE143A84DCE82E4B830EB7D3D2BAC69'}],
+ ['159', {IN=> {f=> '375 1 94 28 13 8 20 28 18 118 5 140 89 67 171 64 152 85 61 101 80 154 149 34 115 135 128 108 110 20 33 128 103 35 38 57 95 10 111 151 98 29 149 7 82 69 96 114 26 103 171 101 53 121 24 2 121 51 35 70 83 29 154 67 5 167 63 16 27 58 60 2 99 128 71 33 160 70 51 3 44 149 2 89 84 101 43 18 113 71 38 94 55 46 74 52 139 102 35 43 50 80 122 6 100 88 129 36 25 148 47 24 7 55 36 30 82 32 19 78 63 26 71 28 167 85 56 167 95 159 78 26 66 35 65 90 44 159 105 59 15 67 57 137 21 132 50 70 78 36 169 5 172 56 1 22 129 68 168 23 74 30 99 138 174 120 91 153 8 42 68 158 155 104 99 133 5 135 96 82 59 52 144 36 20 38 62 29 112 106 46 106 19 73 70 41 135 133 42 95 15 45 136 93 100 98 173 6 132 55 4 4 31 64 130 162 156 64 157 19 46 96 92 103 139 134 2 94 18 86 38 89 62 61 79 157 14 112 111 156 32 14 85 78 31 59 20 1 161 169 149 29 122 150 133 37 102 30 109 65 85 51 174 110 164 66 77 76 111 119 131 95 5 1 166 103 134 141 17 158 123 137 48 165 175 102 13 3 86 43 23 47 56 150 165 4 36 174 115 157 168 13 147 119 109 55 41 140 67 27 31 27 53 126 17 163 116 122 160 60 7 92 113 66 45 109 60 151 125 62 39 39 17 153 13 152 53 94 50 53 89 57 127 153 45 119 104 121 56 145 172 19 41 103 166 108 68 126 12 53 131 127 148 52 134 168 50 48 155 72 132 82 37 129 63 175 160 ^'}},
+ {OUT=>'D7447E53D66BB5E4C26E8B41F83EFD107BF4ADDA'}],
+ ['160', {IN=> {f=> '366 1 73 15 79 139 71 51 132 81 135 111 166 61 37 60 118 37 92 134 94 60 150 53 47 25 110 19 137 107 27 176 43 16 145 146 142 165 12 17 92 166 110 117 41 69 6 12 164 76 109 40 101 82 82 131 134 115 143 112 32 164 146 93 162 31 66 123 144 80 135 94 137 156 107 157 173 62 65 176 124 112 4 65 127 44 131 53 19 105 91 149 106 27 57 158 92 85 14 79 20 84 127 174 128 72 68 59 171 17 124 80 167 8 57 28 172 66 144 48 42 37 109 121 18 120 103 116 13 132 39 73 145 76 158 43 82 33 51 153 164 97 13 2 3 20 24 114 98 9 25 131 102 99 86 42 16 26 159 39 105 161 133 49 59 41 20 105 31 136 30 87 10 119 135 13 83 99 58 45 99 156 26 61 135 143 80 118 107 76 77 24 44 12 66 95 147 61 86 140 99 167 138 54 47 42 97 122 18 60 90 40 73 85 63 82 1 35 96 94 81 54 15 128 40 52 2 101 1 165 93 113 130 85 95 98 58 105 112 53 68 108 72 100 152 49 87 140 39 154 62 114 77 105 63 50 87 157 26 78 122 67 140 71 170 119 5 93 64 50 104 144 129 138 75 130 4 178 60 139 120 54 113 32 2 133 17 43 163 129 89 72 149 155 30 38 7 138 5 44 61 69 76 175 107 6 93 81 114 28 25 82 22 118 58 73 96 175 177 92 36 11 98 171 38 28 42 146 125 178 88 136 139 103 67 10 151 151 70 153 115 94 32 51 34 177 173 132 49 119 54 96 45 78 73 64 159 120 22 20 154 111 117 58 56 109 72 143 ^'}},
+ {OUT=>'77DD2A4482705BC2E9DC96EC0A13395771AC850C'}],
+ ['161', {IN=> {f=> '372 1 136 146 144 170 90 15 169 180 88 41 89 10 60 52 92 145 21 155 47 42 61 26 18 176 48 21 124 141 40 179 178 114 143 14 164 71 142 132 11 124 23 39 82 114 84 57 163 130 127 89 133 16 138 151 130 160 34 70 78 161 64 92 112 110 72 175 102 138 179 173 159 59 19 27 18 53 92 22 65 156 170 57 104 86 126 148 118 155 78 43 63 90 48 80 168 142 68 12 39 174 69 168 147 118 96 34 129 35 75 5 107 60 170 180 147 85 3 133 75 95 152 71 175 43 94 178 50 144 16 46 101 46 165 45 68 163 38 172 5 138 61 85 62 177 76 36 167 19 53 151 66 66 97 3 100 164 12 98 131 70 109 162 161 156 142 14 105 27 141 9 178 81 50 113 110 131 37 16 79 12 34 37 167 173 10 152 7 81 140 158 26 136 82 50 172 154 45 160 31 122 167 142 9 150 125 51 54 125 174 10 124 51 177 81 173 69 109 8 22 155 19 86 62 149 33 37 108 34 96 29 174 133 167 50 54 66 130 9 1 36 134 108 65 97 126 56 163 71 83 88 10 1 8 178 22 6 112 169 116 89 43 153 40 146 85 31 89 74 154 137 28 115 117 122 108 98 8 27 110 103 176 17 20 27 77 10 93 145 80 17 143 165 76 69 78 102 20 91 171 95 29 115 176 166 109 39 23 70 83 29 148 67 163 161 33 4 15 46 42 2 69 104 53 33 160 64 33 155 14 131 160 59 78 71 19 176 107 65 38 82 55 40 56 40 115 84 29 25 44 68 104 176 76 64 123 18 25 136 23 6 171 31 30 30 58 14 13 72 57 14 41 177 ^'}},
+ {OUT=>'EAA1465DB1F59DE3F25EB8629602B568E693BB57'}],
+ ['162', {IN=> {f=> '363 0 135 69 16 167 79 143 46 178 26 3 65 58 36 135 97 35 175 51 152 57 137 173 108 10 54 78 4 153 173 164 48 177 22 129 68 168 167 74 174 91 106 174 96 75 129 168 34 36 158 147 88 75 101 149 103 64 42 59 52 112 180 20 30 22 173 80 98 46 106 179 65 30 17 127 125 26 87 15 5 136 85 100 66 141 182 124 15 156 148 15 56 98 146 156 48 149 3 14 96 52 79 115 134 170 54 178 54 22 73 30 45 39 133 182 96 103 148 176 6 45 62 183 51 180 153 145 145 117 21 90 118 109 21 62 22 101 49 53 11 142 86 132 66 69 44 79 87 115 55 5 169 150 63 110 109 177 150 91 129 40 149 159 102 165 3 70 27 175 23 56 126 165 164 20 158 91 157 136 157 131 111 69 39 33 132 43 19 175 179 37 118 9 155 116 122 128 52 7 84 89 58 13 85 44 135 125 54 183 23 161 145 173 136 29 62 50 13 57 25 127 153 45 95 64 121 40 121 140 171 9 71 166 68 28 102 4 53 123 111 148 20 102 160 34 8 139 32 116 66 13 113 63 143 97 63 10 59 124 66 41 132 71 115 106 151 46 22 45 118 37 67 124 94 60 140 43 47 10 110 9 127 97 7 156 43 180 125 126 137 145 12 2 82 146 100 117 26 59 180 181 164 76 89 30 101 77 72 126 114 95 143 102 32 149 131 83 157 31 61 123 139 60 135 74 169 122 151 102 137 168 62 55 166 119 97 163 60 112 24 116 38 178 105 91 134 86 27 47 138 72 70 183 79 15 84 117 154 128 57 53 39 161 88 ^'}},
+ {OUT=>'9329D5B40E0DC43AA25FED69A0FA9C211A948411'}],
+ ['163', {IN=> {f=> '393 1 92 72 151 33 183 164 42 112 32 10 5 93 97 18 112 71 92 168 116 179 186 65 137 68 134 3 82 9 19 121 148 65 160 173 158 167 90 66 180 172 99 86 83 86 26 16 10 135 23 81 137 125 17 19 25 183 73 7 104 185 79 165 119 119 176 59 75 18 5 59 132 26 21 127 119 80 94 83 52 61 24 44 4 50 55 115 29 70 140 99 159 130 54 15 42 89 114 173 28 50 16 33 53 47 58 180 19 64 78 49 30 186 104 32 44 157 85 1 149 85 97 114 77 63 58 50 89 80 21 36 84 72 60 152 25 87 108 15 138 54 106 77 97 23 42 55 149 181 62 106 43 132 31 138 111 176 93 40 10 96 128 105 114 43 98 4 146 20 107 120 14 113 181 101 1 19 155 113 57 64 117 131 6 22 186 138 184 36 61 29 36 175 107 6 61 81 114 20 180 42 169 102 26 73 80 151 153 68 4 11 98 139 6 175 34 146 93 154 88 128 139 79 35 2 135 119 46 129 91 86 179 51 18 169 141 108 49 103 46 72 21 70 49 64 151 96 185 175 130 111 85 58 32 101 40 101 131 136 139 170 70 10 169 175 73 41 69 177 45 47 92 145 11 155 22 22 56 21 13 166 48 21 109 131 40 174 178 104 128 9 149 51 132 122 173 119 23 24 67 109 74 32 158 110 117 74 123 6 118 151 130 150 167 34 55 58 146 54 72 112 105 57 160 82 123 159 153 159 39 19 7 8 33 87 12 50 146 150 37 104 71 126 133 108 145 68 38 38 90 43 75 148 122 43 2 39 154 54 163 147 113 91 29 109 35 75 182 87 35 155 170 127 80 185 118 60 95 142 71 165 28 84 168 25 144 178 31 81 41 160 25 53 143 ^'}},
+ {OUT=>'E94C0B6AA62AA08C625FAF817DDF8F51EC645273'}],
+ ['164', {IN=> {f=> '381 1 14 172 163 130 45 69 46 145 36 36 151 169 13 135 42 26 81 153 76 148 178 90 131 30 101 162 161 132 142 14 89 3 141 175 146 65 26 89 94 99 187 8 55 162 2 13 143 173 2 120 173 41 132 150 2 112 42 18 140 130 37 128 23 106 159 118 167 150 101 11 30 109 150 184 124 19 169 73 165 53 109 158 172 147 11 46 38 149 25 21 92 184 64 179 158 133 135 34 38 58 114 9 183 4 118 76 49 89 102 40 163 47 75 80 176 175 8 154 14 180 104 153 84 89 11 129 8 138 85 181 73 66 154 121 20 115 93 114 108 82 182 19 86 103 176 183 186 177 53 10 69 137 56 1 135 141 68 69 54 86 12 75 171 87 187 107 144 150 93 23 7 70 83 29 140 67 139 153 183 178 189 30 18 2 29 72 29 33 160 56 9 123 164 107 136 19 70 31 177 152 99 57 38 66 55 32 32 24 83 60 21 1 36 52 80 168 44 32 115 184 25 120 181 172 155 189 22 30 26 180 5 64 49 188 1 28 111 57 176 167 67 131 22 160 186 169 65 34 30 117 91 17 163 39 134 57 137 155 90 170 42 78 170 141 167 158 42 177 22 129 68 168 143 74 150 85 82 174 78 63 111 156 28 12 158 141 76 57 77 125 79 40 12 59 52 88 156 20 24 182 149 56 92 46 106 167 59 189 121 119 14 81 15 165 136 79 100 42 117 182 118 175 138 124 3 50 74 134 156 36 143 181 180 96 22 61 97 134 164 24 166 30 10 61 6 33 9 115 176 84 97 142 152 15 50 165 45 168 135 133 127 93 15 66 94 91 9 32 16 95 37 29 171 118 68 108 66 63 20 55 186 ^'}},
+ {OUT=>'7FF02B909D82AD668E31E547E0FB66CB8E213771'}],
+ ['165', {IN=> {f=> '396 1 97 10 5 160 132 18 83 73 159 141 55 120 31 131 141 102 138 3 52 9 148 189 56 99 165 146 2 140 64 157 100 121 113 102 24 21 24 123 16 10 139 152 19 109 146 116 122 92 43 7 75 62 49 170 58 26 117 125 45 147 5 125 136 155 118 2 26 50 161 21 182 127 153 45 68 19 121 22 94 104 144 166 35 166 23 176 75 188 53 114 93 148 177 66 151 16 156 121 180 98 48 179 95 63 107 97 45 1 23 97 57 23 132 53 79 97 124 19 188 18 118 37 22 106 94 60 122 25 47 176 110 184 109 79 164 120 43 153 89 90 128 109 12 168 64 110 82 117 192 41 171 163 164 76 53 12 101 68 54 117 78 59 143 84 32 122 104 65 148 31 52 123 130 24 135 38 151 95 142 93 101 159 62 37 148 110 70 127 51 85 181 89 11 142 105 91 107 50 27 29 102 36 43 165 79 6 84 99 118 128 30 26 3 143 17 68 66 139 187 15 165 158 24 88 20 179 174 81 79 18 106 47 74 150 104 179 162 59 131 62 116 166 82 184 188 97 136 41 136 167 140 143 175 72 42 174 148 75 74 71 86 14 16 191 117 11 63 119 119 186 182 13 171 49 182 80 167 73 147 119 107 164 41 57 181 168 29 114 26 184 121 101 80 76 65 34 49 24 44 191 38 25 91 5 58 140 99 153 124 54 184 42 83 108 155 4 20 191 3 29 35 40 180 7 40 66 25 12 180 86 26 38 139 73 1 137 79 85 102 71 39 28 44 77 56 190 12 66 72 30 152 7 87 84 190 126 48 100 77 91 186 36 31 143 163 50 94 25 126 1 114 105 170 93 22 173 90 116 87 96 19 74 4 122 183 83 120 177 113 169 181 77 182 1 149 186 ^'}},
+ {OUT=>'5BB3570858FA1744123BAC2873B0BB9810F53FA1'}],
+ ['166', {IN=> {f=> '384 1 25 56 85 107 177 6 186 138 184 28 61 184 191 175 107 6 29 81 114 12 156 2 137 86 189 73 64 127 129 44 167 11 98 107 169 143 26 146 61 130 88 120 139 55 3 189 119 87 22 105 67 78 147 51 2 161 109 84 49 87 38 48 192 62 25 64 143 72 169 151 106 111 53 58 8 93 8 85 123 120 131 170 38 2 169 167 49 41 37 153 21 39 92 145 190 155 177 185 48 13 5 150 48 21 85 115 40 166 178 88 104 1 125 19 116 106 141 111 23 43 101 58 187 150 78 101 50 107 185 86 151 130 134 143 34 31 26 122 38 40 112 97 33 136 50 99 127 121 159 7 19 170 187 1 79 191 26 130 118 5 104 47 126 109 92 129 52 30 193 90 35 67 116 90 3 181 39 122 30 155 147 105 83 21 77 35 75 174 55 190 131 154 95 72 185 94 36 95 126 71 149 4 68 152 180 144 146 7 49 33 152 188 29 111 194 172 148 125 35 59 36 125 11 36 141 149 183 125 27 1 71 133 61 138 168 85 131 5 96 162 161 117 142 14 79 183 141 165 126 55 11 74 84 79 167 3 40 142 177 193 128 173 192 100 163 16 127 145 182 97 17 193 120 115 32 108 18 96 154 103 152 150 86 181 15 99 135 179 124 194 164 68 160 43 109 138 152 142 6 21 23 149 20 11 82 164 44 159 148 133 115 24 28 53 104 9 183 179 108 56 39 84 87 30 163 32 70 75 166 170 8 139 9 175 99 143 64 89 186 114 183 133 85 161 63 61 154 111 15 115 78 109 108 72 177 14 71 103 176 173 176 157 38 10 54 132 41 186 130 126 63 69 39 76 7 65 171 82 172 102 124 140 83 113 ^'}},
+ {OUT=>'905F43940B3591CE39D1145ACB1ECA80AB5E43CD'}],
+ ['167', {IN=> {f=> '396 1 189 70 83 29 132 67 115 145 151 170 181 14 192 2 187 40 5 33 160 48 183 91 132 83 112 177 62 189 153 128 91 49 38 50 55 24 8 8 51 36 13 175 28 36 56 160 12 107 168 25 104 157 156 139 165 14 30 192 164 195 56 41 180 159 28 79 41 144 167 51 115 188 136 154 145 65 2 22 93 83 191 147 23 110 57 137 131 66 138 26 78 146 125 159 150 34 177 22 129 68 168 111 74 118 77 50 174 54 47 87 140 20 178 158 133 60 33 45 93 47 8 170 59 52 56 124 20 16 150 117 24 84 46 106 151 51 158 173 113 111 196 73 15 133 136 71 100 10 85 182 110 143 114 92 185 42 42 118 156 20 135 173 156 96 180 37 73 134 156 182 150 196 192 45 172 17 167 91 168 68 89 134 120 190 173 34 141 37 152 111 117 103 61 7 34 62 67 191 190 8 87 21 195 139 86 44 76 66 55 186 23 31 87 183 5 155 122 191 68 53 149 136 35 115 26 121 131 102 123 3 42 197 133 179 56 84 165 136 190 130 49 157 80 101 103 97 197 11 19 118 1 5 119 137 9 104 193 141 116 122 72 38 7 70 47 44 155 43 16 107 125 40 127 193 105 131 145 108 185 6 50 141 1 167 127 153 45 53 192 121 12 79 84 129 151 15 166 196 156 60 188 53 109 83 148 162 46 146 6 136 111 160 88 38 169 85 63 87 97 35 194 3 82 52 13 132 43 59 92 109 4 178 3 118 37 195 96 94 60 112 15 47 166 110 179 99 69 149 100 43 138 69 70 123 89 12 158 54 90 72 117 182 31 166 153 164 76 33 2 101 63 44 112 58 39 143 74 32 107 89 55 143 31 47 123 125 4 135 18 141 80 137 88 81 154 187 ^'}},
+ {OUT=>'336C79FBD82F33E490C577E3F791C3CBFE842AFF'}],
+ ['168', {IN=> {f=> '406 0 23 134 103 49 99 44 64 160 68 190 114 105 91 86 22 27 15 74 8 22 151 79 199 84 85 90 128 9 5 175 129 17 40 59 125 187 194 144 151 3 60 6 158 153 67 58 18 99 19 53 129 90 179 134 52 124 55 95 138 82 170 167 69 122 13 108 160 119 115 161 51 14 167 120 47 60 57 86 16 184 96 197 42 98 112 165 154 199 157 21 168 52 146 66 126 119 93 150 20 36 153 140 194 93 26 156 114 80 80 55 44 13 35 24 44 191 24 190 63 177 44 140 99 146 117 54 163 42 76 101 134 176 185 177 168 1 21 19 180 193 12 52 197 191 173 65 19 31 118 59 1 123 72 71 88 64 11 193 37 63 28 169 184 45 72 195 152 186 87 56 176 112 41 93 77 84 158 29 3 136 142 36 80 4 119 166 86 98 163 93 1 145 83 102 66 75 191 46 4 94 155 55 120 149 113 148 181 49 175 180 142 87 5 51 65 92 167 196 186 138 184 23 61 164 171 175 107 6 9 81 114 7 141 177 117 76 174 73 54 112 114 29 152 11 98 87 154 123 21 146 41 115 88 115 139 40 183 189 109 67 7 90 52 73 127 51 192 156 89 69 49 77 33 33 182 57 10 64 138 57 159 136 91 111 33 58 193 88 188 75 118 110 126 170 18 197 169 162 34 41 17 138 6 34 92 145 185 155 157 170 43 8 140 48 21 70 105 40 161 178 78 89 196 110 199 106 96 121 106 23 185 28 96 48 167 145 58 91 35 97 180 66 151 130 124 128 34 16 6 107 28 20 112 92 18 121 30 84 107 101 159 187 19 155 182 181 74 186 11 120 98 185 104 32 126 94 82 119 42 25 173 90 30 62 96 70 178 176 39 102 15 150 147 100 78 16 57 35 75 169 35 170 116 144 75 146 ^'}},
+ {OUT=>'5C6D07A6B44F7A75A64F6CE592F3BAE91E022210'}],
+ ['169', {IN=> {f=> '409 1 185 70 12 95 110 71 133 183 52 136 148 144 114 186 17 25 144 164 5 79 178 172 124 117 19 43 20 93 174 36 125 117 151 109 3 164 55 101 37 122 152 77 131 168 88 162 161 93 142 14 63 167 141 149 94 39 190 50 68 47 135 198 16 110 153 177 104 173 192 68 147 179 119 137 166 73 180 169 88 91 24 76 10 80 146 79 128 150 62 149 194 83 111 171 124 170 156 60 152 27 109 106 120 134 201 184 202 149 12 198 66 132 12 127 132 133 83 8 12 45 88 9 183 155 92 24 23 76 63 14 163 8 62 67 150 162 8 115 1 167 91 127 32 89 162 90 159 125 85 129 47 53 154 95 7 115 54 101 108 56 169 6 47 103 176 157 160 125 14 10 30 124 17 178 122 102 55 69 15 60 202 49 171 74 148 94 92 124 67 200 184 70 83 29 127 67 100 140 131 165 176 4 182 2 167 20 193 33 160 43 173 71 112 68 97 157 57 169 138 113 86 44 38 40 55 19 196 201 31 21 8 165 23 26 41 155 195 183 102 158 25 94 142 146 129 150 9 30 177 154 195 51 36 175 139 28 59 31 124 167 41 105 173 121 134 130 65 185 17 78 78 181 137 13 95 57 137 116 51 118 16 78 131 115 154 145 29 177 22 129 68 168 91 74 98 72 30 174 39 37 72 130 15 163 158 128 50 18 25 73 27 191 150 59 52 36 104 20 11 130 97 4 79 46 106 141 46 138 163 108 106 191 68 15 113 136 66 100 193 65 182 105 123 99 72 180 37 22 108 156 10 130 168 141 96 160 22 58 134 151 162 140 181 187 35 157 7 147 76 163 58 84 129 100 190 153 24 126 32 142 96 107 88 41 2 14 42 52 186 170 3 82 11 180 119 66 29 56 66 50 171 3 11 77 163 5 150 112 128 ^'}},
+ {OUT=>'7E0D3E9D33127F4A30EB8D9C134A58409FA8695B'}],
+ ['170', {IN=> {f=> '413 1 47 25 135 129 7 108 19 107 117 102 102 3 28 190 112 165 56 63 165 122 183 116 28 157 52 73 89 90 169 202 12 111 185 203 91 116 200 97 193 134 116 122 44 31 7 63 26 37 134 22 2 93 125 33 99 186 77 124 131 94 171 183 50 113 178 146 127 153 45 32 164 121 203 58 56 108 130 192 166 168 128 39 188 53 102 69 148 141 18 139 197 108 97 132 74 24 155 71 63 59 97 21 194 180 61 45 204 132 29 31 85 88 188 164 187 118 37 167 82 94 60 98 1 47 152 110 172 85 55 128 72 43 117 41 42 116 61 12 144 40 62 58 117 168 17 159 139 164 76 5 193 101 56 30 105 30 11 143 60 32 86 68 41 136 31 40 123 118 181 135 195 127 59 130 81 53 147 62 13 124 98 34 79 39 49 145 53 180 94 105 91 71 2 27 5 54 193 7 141 79 199 84 75 70 128 199 195 160 119 17 20 54 115 187 184 129 146 193 40 201 143 138 57 43 18 94 204 38 114 80 179 114 47 119 50 80 118 82 160 152 49 112 198 88 155 104 95 151 36 199 162 100 27 50 47 86 195 16 179 81 192 27 83 107 150 134 194 147 1 158 32 131 61 111 119 83 140 5 21 133 120 174 78 26 136 109 65 80 40 29 203 25 24 44 191 14 170 43 162 34 140 99 141 112 54 148 42 71 96 119 161 165 167 148 186 11 4 180 188 197 42 182 181 168 50 14 26 103 49 1 113 67 61 78 59 196 173 32 53 8 154 169 30 72 175 152 176 87 36 166 102 36 88 77 79 138 24 188 131 127 26 70 194 114 146 66 93 158 93 191 125 78 92 51 60 176 26 4 74 135 35 120 129 113 133 181 29 170 170 137 77 190 46 45 77 157 191 186 138 184 18 61 144 151 175 107 6 194 81 114 2 126 110 ^'}},
+ {OUT=>'9A5F50DFCFB19286206C229019F0ABF25283028C'}],
+ ['171', {IN=> {f=> '427 1 85 60 150 73 38 88 90 5 128 11 98 55 130 91 13 146 9 91 88 107 139 16 159 189 93 35 191 66 28 65 95 51 184 148 57 45 49 61 25 9 166 49 194 64 130 33 143 112 67 111 1 58 177 80 164 59 110 94 118 170 194 197 169 154 10 41 193 114 190 26 92 145 177 155 125 146 35 200 124 48 21 46 89 40 153 178 62 65 196 86 175 90 80 89 98 23 169 4 88 32 135 137 26 75 11 81 172 34 151 130 108 104 34 200 182 83 12 196 112 84 202 97 206 60 75 69 159 163 19 131 174 157 66 178 195 104 66 161 104 8 126 70 66 103 26 17 141 90 22 54 64 38 146 168 39 70 199 142 147 92 70 8 25 35 75 161 3 138 92 128 43 59 185 55 205 95 100 71 123 173 42 126 128 144 94 176 205 20 139 149 198 59 168 172 109 112 9 33 10 73 154 36 115 97 131 99 196 144 45 81 22 112 142 72 131 148 83 162 161 78 142 14 53 157 141 139 74 29 180 35 58 27 115 198 1 90 138 167 89 173 192 48 137 159 114 132 156 58 160 154 68 76 19 56 5 70 141 64 113 150 47 129 184 73 96 166 124 155 151 55 147 17 109 86 100 129 201 164 192 149 7 193 56 112 200 107 122 133 63 206 2 40 78 9 183 140 82 4 13 71 48 4 163 201 57 62 140 157 8 100 204 162 86 117 12 89 147 75 144 120 85 109 37 48 154 85 2 115 39 96 108 46 164 1 32 103 176 147 150 105 207 10 15 119 2 173 117 87 50 69 50 202 39 171 69 133 89 72 114 57 195 179 70 83 29 122 67 85 135 111 160 171 202 172 2 147 183 33 160 38 163 51 92 53 82 137 52 149 123 98 81 39 38 30 55 14 186 196 11 6 3 155 18 16 26 150 180 168 97 148 25 84 127 136 119 135 4 30 162 144 195 46 31 170 119 28 190 ^'}},
+ {OUT=>'DCA737E269F9D8626D488988C996E06B352C0708'}],
+ ['172', {IN=> {f=> '443 1 17 96 167 27 91 152 100 106 109 65 164 10 57 71 167 123 209 74 57 137 95 30 90 2 78 110 101 147 138 22 177 22 129 68 168 63 74 70 65 2 174 18 23 51 116 8 142 158 121 36 207 207 45 209 170 122 59 52 8 76 20 4 102 69 186 72 46 106 127 39 110 149 101 99 184 61 15 85 136 59 100 172 37 182 98 95 78 44 173 30 204 94 156 206 123 161 120 96 132 1 37 134 144 134 126 160 180 21 136 203 119 55 156 44 77 122 72 190 125 10 105 25 128 75 93 67 13 205 196 14 31 179 142 206 75 207 159 91 38 8 28 66 43 150 185 193 63 135 5 143 98 143 32 5 125 124 197 103 14 97 107 102 87 3 18 185 97 155 56 48 165 112 178 106 13 157 32 53 79 85 149 197 7 106 175 203 71 101 195 92 193 129 116 122 24 26 7 58 11 32 119 7 202 83 125 28 79 181 57 119 121 84 161 168 50 93 163 131 127 153 45 17 144 121 198 43 36 93 115 177 166 148 108 24 188 53 97 59 148 126 208 134 192 88 87 112 64 14 145 61 63 39 97 11 194 165 46 40 199 132 19 11 80 73 178 154 177 118 37 147 72 94 60 88 201 47 142 110 167 75 45 113 52 43 102 21 22 111 41 12 134 30 42 48 117 158 7 154 129 164 76 195 188 101 51 20 100 10 201 143 50 32 71 53 31 131 31 35 123 113 166 135 180 117 44 125 76 33 142 62 3 114 93 19 59 34 34 130 38 170 74 105 91 56 192 27 205 34 178 202 131 79 199 84 65 50 128 189 185 145 109 17 49 105 187 174 114 141 183 20 196 128 123 47 28 18 89 189 23 99 70 179 94 42 114 45 65 98 82 150 137 29 102 183 68 150 89 75 141 21 184 157 80 7 40 37 86 190 16 174 66 187 12 68 102 135 114 189 137 191 148 12 116 56 96 119 73 130 200 6 113 100 154 63 26 116 104 50 80 25 14 193 83 ^'}},
+ {OUT=>'B8FFC1D4972FCE63241E0E77850AC46DDE75DBFA'}],
+ ['173', {IN=> {f=> '436 1 24 44 191 211 138 11 138 18 140 99 133 104 54 124 42 63 88 95 137 133 151 116 162 208 193 180 180 173 26 158 165 160 26 6 18 79 33 1 97 59 45 62 51 172 141 24 37 189 130 145 6 72 143 152 160 87 4 150 86 28 80 77 71 106 16 164 123 103 10 54 178 106 114 34 85 150 93 175 93 70 76 27 36 152 207 4 42 103 3 120 97 113 109 181 210 162 154 129 61 166 38 13 53 141 183 186 138 184 10 61 112 119 175 107 6 170 81 114 207 102 125 65 50 135 73 28 73 75 203 113 11 98 35 115 71 8 146 202 76 88 102 139 1 144 189 83 15 181 51 13 60 75 51 179 143 37 30 49 51 20 207 156 44 184 64 125 18 133 97 52 111 194 58 167 75 149 49 105 84 113 170 179 197 169 149 208 41 178 99 180 21 92 145 172 155 105 131 30 208 200 114 48 21 31 79 40 148 178 52 50 196 71 160 80 70 69 93 23 159 202 83 22 115 132 6 65 209 71 167 14 151 130 98 89 34 190 167 68 2 181 112 79 192 82 191 45 55 49 159 148 19 116 169 142 61 173 185 94 46 146 104 206 126 55 56 93 16 12 121 90 17 49 44 18 126 163 39 50 189 137 147 87 65 3 5 35 75 156 196 118 77 118 23 54 185 40 195 95 90 71 113 163 32 116 108 144 74 166 190 15 134 134 188 39 158 172 94 107 212 23 53 134 36 105 77 111 89 186 124 35 61 7 102 132 67 131 128 78 162 161 63 142 14 43 147 141 129 54 19 170 20 48 7 95 198 199 70 123 157 74 173 192 28 127 139 109 127 146 43 140 139 48 61 14 36 60 136 49 98 150 32 109 174 63 81 161 124 140 146 50 142 7 109 66 80 124 201 144 182 149 2 188 46 92 185 87 112 133 43 201 205 35 68 9 183 125 72 197 3 66 33 207 163 191 52 57 130 152 8 85 204 157 81 107 205 187 ^'}},
+ {OUT=>'E9C9BF41C8549354151B977003CE1D830BE667DB'}],
+ ['174', {IN=> {f=> '462 1 126 54 123 113 85 81 23 41 154 71 210 115 18 89 108 32 157 209 11 103 176 133 136 77 193 10 209 112 196 166 110 66 43 69 194 36 202 25 171 62 112 82 44 100 43 188 172 70 83 29 115 67 64 128 83 153 164 195 158 2 119 187 169 33 160 31 149 23 64 32 61 109 45 121 102 77 74 32 38 16 55 7 172 189 198 200 211 141 11 2 5 143 159 147 90 134 25 70 106 122 105 114 212 30 141 130 195 39 24 163 91 28 11 7 76 167 17 81 137 85 86 94 65 149 5 42 66 157 113 204 59 57 137 80 15 70 207 78 95 91 142 133 17 177 22 129 68 168 43 74 50 60 197 174 3 13 36 106 3 127 158 116 26 197 192 25 194 155 102 59 52 203 56 20 214 82 49 171 67 46 106 117 34 90 139 96 94 179 56 15 65 136 54 100 157 17 182 93 75 63 24 168 25 189 84 156 201 118 156 105 96 112 201 22 134 139 114 116 145 175 11 121 198 99 40 151 34 72 117 52 190 105 90 20 118 60 83 52 208 205 181 209 16 174 122 206 70 202 144 71 18 208 8 66 38 135 170 178 53 115 5 138 88 123 17 200 115 119 182 98 9 87 97 102 72 3 8 180 82 145 56 33 165 102 173 96 213 157 12 33 69 80 129 192 2 101 165 203 51 86 190 87 193 124 116 122 4 21 7 53 211 27 104 207 197 73 125 23 59 176 37 114 111 74 151 153 50 73 148 116 127 153 45 2 124 121 193 28 16 78 100 162 166 128 88 9 188 53 92 49 148 111 193 129 187 68 77 92 54 4 135 51 63 19 97 1 194 150 31 35 194 132 9 206 75 58 168 144 167 118 37 127 62 94 60 78 196 47 132 110 162 65 35 98 32 43 87 1 2 106 21 12 124 20 22 38 117 148 212 149 119 164 76 180 183 101 46 10 95 205 186 143 40 32 56 38 21 126 31 30 123 108 151 135 165 107 29 120 71 13 137 62 208 104 88 4 39 29 19 115 23 160 54 105 91 41 177 27 200 14 163 124 ^'}},
+ {OUT=>'0942908960B54F96CB43452E583F4F9CB66E398A'}],
+ ['175', {IN=> {f=> '453 0 115 79 199 84 49 18 128 173 169 121 93 17 186 41 89 187 158 90 133 167 206 188 104 99 31 4 18 81 165 217 75 54 179 62 34 106 37 41 66 82 134 113 215 86 159 36 142 65 43 125 215 160 149 48 193 24 21 86 182 16 166 42 179 206 44 94 111 82 181 121 167 132 198 92 48 72 119 57 114 184 200 81 68 122 39 26 84 96 26 80 1 208 177 217 24 44 191 206 118 209 123 8 140 99 128 99 54 109 42 58 83 80 122 113 141 96 147 203 183 180 175 158 16 143 155 155 11 1 13 64 23 1 87 54 35 52 46 157 121 19 27 174 115 130 209 72 123 152 150 87 202 140 76 23 75 77 66 86 11 149 118 88 44 168 101 94 14 80 145 93 165 73 65 66 12 21 137 192 4 22 83 201 120 77 113 94 181 195 157 144 124 51 151 33 211 38 131 178 186 138 184 5 61 92 99 175 107 6 155 81 114 207 87 105 45 40 120 73 18 58 60 193 98 11 98 15 100 51 3 146 187 61 88 97 139 204 129 189 73 213 171 36 216 55 55 51 174 138 17 15 49 41 15 197 146 39 174 64 120 3 123 82 37 111 179 58 157 70 134 39 100 74 108 170 164 197 169 144 198 41 163 84 170 16 92 145 167 155 85 116 25 208 200 104 48 21 16 69 40 143 178 42 35 196 56 145 70 60 49 88 23 149 192 78 12 95 127 204 55 199 61 162 212 151 130 88 74 34 180 152 53 210 166 112 74 182 67 176 30 35 29 159 133 19 101 164 127 56 168 175 84 26 131 104 196 126 40 46 83 6 7 101 90 12 44 24 216 106 158 39 30 179 132 147 82 60 216 203 35 75 151 181 98 62 108 3 49 185 25 185 95 80 71 103 153 22 106 88 144 54 156 175 10 129 119 178 19 148 172 79 102 207 13 208 33 114 36 95 57 91 79 176 104 25 41 210 92 122 62 131 108 73 162 161 48 142 14 33 137 141 119 34 9 160 5 38 205 75 198 189 50 108 112 ^'}},
+ {OUT=>'FCE34051C34D4B81B85DDC4B543CDE8007E284B3'}],
+ ['176', {IN=> {f=> '454 1 53 173 192 113 111 102 120 132 22 112 118 20 40 7 8 213 46 129 28 77 150 11 81 160 49 60 154 124 119 139 43 135 213 109 38 52 117 201 116 168 149 215 181 32 64 164 59 98 133 15 194 198 28 54 9 183 104 58 176 209 59 12 200 163 177 45 50 116 145 8 64 204 150 74 93 184 89 111 39 108 108 85 61 13 36 154 61 210 115 3 84 108 22 152 209 216 103 176 123 126 57 183 10 199 107 186 161 105 51 38 69 184 26 202 15 171 57 97 77 24 90 33 183 167 70 83 29 110 67 49 123 63 148 159 190 148 2 99 172 159 33 160 26 139 3 44 17 46 89 40 101 87 62 69 27 38 6 55 2 162 184 183 190 211 131 6 212 210 138 144 132 85 124 25 60 91 112 95 99 212 30 126 120 195 34 19 158 71 28 211 217 56 167 7 71 122 70 66 79 65 134 27 61 147 103 199 44 57 137 65 50 202 78 80 81 137 128 12 177 22 129 68 168 23 74 30 55 182 174 208 3 21 96 218 112 158 111 16 187 177 5 179 140 82 59 52 188 36 20 214 62 29 156 62 46 106 107 29 70 129 91 89 174 51 15 45 136 49 100 142 217 182 88 55 48 4 163 20 174 74 156 196 113 151 90 96 92 191 7 134 134 94 106 130 170 1 106 193 79 25 146 24 67 112 32 190 85 210 75 15 108 45 73 37 193 205 166 194 1 169 102 206 65 197 129 51 218 198 208 66 33 120 155 163 43 95 5 133 78 103 2 185 105 114 167 93 4 77 87 102 57 3 218 175 67 135 56 18 165 92 168 86 203 157 212 13 59 75 109 187 217 96 155 203 31 71 185 82 193 119 116 122 204 16 7 48 201 22 89 197 192 63 125 18 39 171 17 109 101 64 141 138 50 53 133 101 127 153 45 207 104 121 188 13 216 63 85 147 166 108 68 214 188 53 87 39 148 96 178 124 182 48 67 72 44 214 125 41 63 219 97 211 194 135 16 30 189 132 219 191 70 43 158 181 ^'}},
+ {OUT=>'61E8916532503627F4024D13884640A46F1D61D4'}],
+ ['177', {IN=> {f=> '475 0 153 118 37 99 48 94 60 64 189 47 118 110 155 51 21 77 4 43 66 195 196 99 215 12 110 6 216 24 117 134 205 142 105 164 76 159 176 101 39 218 88 184 165 143 26 32 35 17 7 119 31 23 123 101 130 135 144 93 8 113 64 207 130 62 201 90 81 205 11 22 220 94 2 146 26 105 91 20 156 27 193 208 142 178 107 79 199 84 41 2 128 165 161 109 85 17 174 37 81 187 150 78 129 159 194 184 92 87 23 214 18 77 153 209 63 46 179 46 30 102 33 29 50 82 126 101 203 78 147 20 138 53 27 117 207 148 145 32 181 16 13 86 178 16 162 30 175 198 32 90 99 66 177 113 155 124 186 80 44 60 119 49 106 176 192 65 52 106 27 26 68 92 14 80 211 200 169 213 24 44 191 202 102 197 111 140 99 124 95 54 97 42 54 79 68 110 97 133 80 135 199 175 180 171 146 8 131 147 151 221 219 9 52 15 1 79 50 27 44 42 145 105 15 19 162 103 118 201 72 107 152 142 87 190 132 68 19 71 77 62 70 7 137 114 76 214 36 160 97 78 220 76 141 93 157 57 61 58 9 125 180 4 6 67 189 120 61 113 82 181 183 153 136 120 43 139 29 199 26 123 174 186 138 184 1 61 76 83 175 107 6 143 81 114 207 75 89 29 32 108 73 10 46 48 185 86 11 98 221 88 35 221 146 175 49 88 93 139 196 117 189 65 201 163 24 208 51 39 51 170 134 1 3 49 33 11 189 138 35 166 64 116 213 115 70 25 111 167 58 149 66 122 31 96 66 104 170 152 197 169 140 190 41 151 72 162 12 92 145 163 155 69 104 21 208 200 96 48 21 4 61 40 139 178 34 23 196 44 133 62 52 33 84 23 141 184 74 4 79 123 192 47 191 53 158 200 151 130 80 62 34 172 140 41 206 154 112 70 174 55 164 18 19 13 159 121 19 89 160 115 52 164 167 76 10 119 104 188 126 28 38 75 220 3 85 90 8 40 8 204 90 154 39 14 171 128 147 78 56 216 191 35 75 147 169 82 50 100 209 45 185 13 177 95 150 ^'}},
+ {OUT=>'F008D5D7853B6A17B7466CD9E18BD135E520FAF4'}],
+ ['178', {IN=> {f=> '471 0 71 89 139 8 92 60 144 26 142 154 3 122 98 164 216 134 172 58 95 200 224 201 5 86 36 81 29 63 65 162 76 11 13 196 78 108 55 131 80 66 162 161 27 142 14 19 123 141 105 6 220 146 209 24 184 47 198 175 22 87 133 38 173 192 205 103 91 97 115 122 7 92 103 25 2 213 213 36 124 13 62 150 221 61 150 39 45 149 124 104 134 38 130 208 109 18 32 112 201 96 158 149 215 176 22 44 149 39 88 133 220 189 193 23 44 9 183 89 48 161 204 54 222 195 163 167 40 45 106 140 8 49 204 145 69 83 169 89 96 24 93 103 85 41 3 31 154 51 210 115 213 79 108 12 147 209 206 103 176 113 116 37 173 10 189 102 176 156 100 36 33 69 174 16 202 5 171 52 82 72 4 80 23 178 162 70 83 29 105 67 34 118 43 143 154 185 138 2 79 157 149 33 160 21 129 208 24 2 31 69 35 81 72 47 64 22 38 221 55 222 152 179 168 180 211 121 1 207 200 133 129 117 80 114 25 50 76 102 85 84 212 30 111 110 195 29 14 153 51 28 196 212 36 167 222 61 107 55 46 64 65 119 220 12 56 137 93 194 29 57 137 50 210 30 197 78 65 71 132 123 7 177 22 129 68 168 3 74 10 50 167 174 198 218 6 86 218 97 158 106 6 177 162 210 164 125 62 59 52 173 16 20 214 42 9 141 57 46 106 97 24 50 119 86 84 169 46 15 25 136 44 100 127 202 182 83 35 33 209 158 15 159 64 156 191 108 146 75 96 72 181 217 134 129 74 96 115 165 216 91 188 59 10 141 14 62 107 12 190 65 205 60 10 98 30 63 22 178 205 151 179 211 164 82 206 60 192 114 31 203 188 193 66 28 105 140 148 33 75 5 128 68 83 212 170 95 109 152 88 224 67 77 102 42 3 213 170 52 125 56 3 165 82 163 76 193 157 197 218 49 70 89 182 217 91 145 203 11 56 180 77 193 114 116 122 189 11 7 43 191 17 74 187 187 53 125 13 19 166 222 104 91 54 131 123 50 33 118 86 127 167 ^'}},
+ {OUT=>'BD8D2E873CF659B5C77AAC1616827EF8A3B1A3B3'}],
+ ['179', {IN=> {f=> '480 1 45 193 76 121 181 219 195 42 64 126 166 80 40 200 188 53 80 25 148 75 157 117 175 20 53 44 30 207 111 27 63 198 97 204 194 114 222 23 182 132 212 170 63 22 144 120 143 118 37 79 38 94 60 54 184 47 108 110 150 41 11 62 211 43 51 180 181 94 200 12 100 223 201 14 117 124 200 137 95 164 76 144 171 101 34 213 83 169 150 143 16 32 20 2 224 114 31 18 123 96 115 135 129 83 220 108 59 192 125 62 196 80 76 195 218 17 210 79 214 136 6 105 91 5 141 27 188 193 127 168 97 79 199 84 31 209 128 155 151 94 75 17 159 32 71 187 140 63 124 149 179 179 77 72 13 204 18 72 138 199 48 36 179 26 25 97 28 14 30 82 116 86 188 68 132 133 38 7 107 197 133 140 12 166 6 3 86 173 16 157 15 170 188 17 85 84 46 172 103 140 114 171 65 39 45 119 39 96 166 182 45 32 86 12 26 48 87 226 80 201 190 159 208 24 44 191 197 82 182 96 217 140 99 119 90 54 82 42 49 74 53 95 77 123 60 120 194 165 180 166 131 225 116 137 146 211 219 4 37 5 1 69 45 17 34 37 130 85 10 9 147 88 103 191 72 87 152 132 87 175 122 58 14 66 77 57 50 2 122 109 61 209 26 150 92 58 205 71 136 93 147 37 56 48 212 221 110 165 4 213 47 174 120 41 113 67 181 168 148 126 115 33 124 24 184 11 113 169 186 138 184 223 61 56 63 175 107 6 128 81 114 207 60 69 9 22 93 73 31 33 175 71 11 98 206 73 15 221 146 160 34 88 88 139 186 102 189 55 186 153 9 198 46 19 51 165 129 208 215 49 23 6 179 128 30 156 64 111 203 105 55 10 111 152 58 139 61 107 21 91 56 99 170 137 197 169 135 180 41 136 57 152 7 92 145 158 155 49 89 16 208 200 86 48 21 216 51 40 134 178 24 8 196 29 118 52 42 13 79 23 131 174 69 221 59 118 177 37 181 43 153 185 151 130 70 47 34 162 125 26 201 139 112 65 164 40 149 3 226 220 159 106 19 74 155 100 47 159 157 193 ^'}},
+ {OUT=>'B25A04DD425302ED211A1C2412D2410FA10C63B6'}],
+ ['180', {IN=> {f=> '471 0 211 98 104 174 126 7 24 61 213 225 57 90 1 33 209 183 62 147 39 215 157 121 147 71 49 216 170 35 75 140 148 54 29 86 188 38 185 221 163 95 58 71 81 131 84 44 144 10 134 142 228 118 86 156 204 126 172 46 91 196 220 197 218 70 36 73 13 47 57 154 60 3 226 188 70 100 51 131 64 62 162 161 15 142 14 11 115 141 97 219 216 138 201 16 172 31 198 167 6 75 125 26 173 192 193 95 75 93 111 114 224 76 91 213 13 227 201 213 28 120 1 50 150 213 45 142 31 33 145 124 92 130 34 126 204 109 2 16 108 201 80 150 149 215 172 14 28 137 23 80 133 208 185 189 19 36 9 183 77 40 149 200 50 214 191 163 159 36 41 98 136 8 37 204 141 65 75 157 89 84 12 81 99 85 25 224 27 154 43 210 115 205 75 108 4 143 209 198 103 176 105 108 21 165 10 181 98 168 152 96 24 29 69 166 8 202 226 171 48 70 68 217 72 15 174 158 70 83 29 101 67 22 114 27 139 150 181 130 2 63 145 141 33 160 17 121 196 8 219 19 53 31 65 60 35 60 18 38 217 55 222 144 175 156 172 211 113 226 203 192 129 117 105 76 106 25 42 64 94 77 72 212 30 99 102 195 25 10 149 35 28 184 208 20 167 218 53 95 43 30 52 65 107 220 52 129 85 190 17 57 137 38 202 14 193 78 53 63 128 119 3 177 22 129 68 168 216 74 223 46 155 174 190 214 223 78 218 85 158 102 227 169 150 198 152 113 46 59 52 161 20 214 26 222 129 53 46 106 89 20 34 111 82 80 165 42 15 9 136 40 100 115 190 182 79 19 21 197 154 11 147 56 156 187 104 142 63 96 56 173 209 134 125 58 88 103 161 212 79 184 43 227 137 6 58 103 225 190 49 201 48 6 90 18 55 10 166 205 139 167 203 160 66 206 56 188 102 15 191 180 181 66 24 93 128 136 25 59 5 124 60 67 204 158 87 105 140 84 224 59 69 102 30 3 209 166 40 117 56 220 165 74 159 68 185 157 185 206 41 66 167 ^'}},
+ {OUT=>'A404E21588123E0893718B4B44E91414A785B91F'}],
+ ['181', {IN=> {f=> '490 1 176 217 85 133 203 218 38 174 71 193 108 116 122 171 5 7 37 179 11 56 175 181 41 125 7 226 160 204 98 79 42 119 105 50 9 100 68 127 153 45 185 60 121 177 211 183 30 52 114 166 64 24 192 188 53 76 17 148 63 145 113 171 4 45 28 22 203 103 19 63 186 97 200 194 102 214 19 178 132 208 158 59 10 136 112 135 118 37 63 30 94 60 46 180 47 100 110 146 33 3 50 199 43 39 168 169 90 188 12 92 219 189 6 117 116 196 133 87 164 76 132 167 101 30 209 79 157 138 143 8 32 8 221 220 110 31 14 123 92 103 135 117 75 212 104 55 180 121 62 192 72 72 187 206 13 202 67 206 128 221 105 91 224 129 27 184 181 115 160 89 79 199 84 23 197 128 147 143 82 67 17 147 28 63 187 132 51 120 141 167 175 65 60 5 196 18 68 126 191 36 28 179 10 21 93 24 2 14 82 108 74 176 60 120 215 129 26 222 99 189 121 136 227 154 229 226 86 169 16 153 3 166 180 5 81 72 30 168 95 128 106 159 53 35 33 119 31 88 158 174 29 16 70 26 32 83 218 80 193 182 151 204 24 44 191 193 66 170 84 213 140 99 115 86 54 70 42 45 70 41 83 61 115 44 108 190 157 180 162 119 221 104 129 142 203 219 25 228 1 61 41 9 26 33 118 69 6 1 135 76 91 183 72 71 152 124 87 163 114 50 10 62 77 53 34 229 110 105 49 205 18 142 88 42 193 67 132 93 139 21 52 40 204 213 98 153 4 201 31 162 120 25 113 55 181 156 144 118 111 25 112 20 172 230 105 165 186 138 184 223 61 40 47 175 107 6 116 81 114 207 48 53 224 14 81 73 223 19 21 167 59 11 98 194 61 230 221 146 148 22 88 84 139 178 90 189 47 174 145 228 190 42 3 51 161 125 196 207 49 15 2 171 120 26 148 64 107 195 97 43 229 111 140 58 131 57 95 13 87 48 95 170 125 197 169 131 172 41 124 45 144 3 92 145 154 155 33 77 12 208 200 78 48 21 208 43 40 130 178 16 227 196 17 106 44 34 228 75 23 123 166 65 217 43 114 165 29 173 35 200 ^'}},
+ {OUT=>'A1E13BC55BF6DAD83CF3AABDA3287AD68681EA64'}],
+ ['182', {IN=> {f=> '479 0 167 151 130 58 29 34 150 107 8 195 121 112 59 152 22 131 218 208 202 159 88 19 56 149 82 41 153 145 54 199 86 104 166 126 228 16 53 209 225 41 90 230 29 197 171 46 143 39 203 149 117 147 67 45 216 158 35 75 136 136 38 17 78 176 34 185 213 155 95 50 71 73 123 225 76 28 144 227 126 130 228 114 74 148 192 118 172 34 87 192 216 193 206 54 36 65 230 31 49 146 44 228 214 180 62 92 47 131 48 58 162 161 3 142 14 3 107 141 89 207 212 130 193 8 160 15 198 159 223 63 117 14 173 192 181 87 59 89 107 106 216 60 79 201 1 227 189 213 20 116 222 38 150 205 29 134 23 21 141 124 80 126 30 122 200 109 219 104 201 64 142 149 215 168 6 12 125 7 72 133 196 181 185 15 28 9 183 65 32 137 196 46 206 187 163 151 32 37 90 132 8 25 204 137 61 67 145 89 72 69 95 85 9 220 23 154 35 210 115 197 71 108 229 139 209 190 103 176 97 100 5 157 10 173 94 160 148 92 12 25 69 158 202 222 171 44 58 64 205 64 7 170 154 70 83 29 97 67 10 110 11 135 146 177 122 2 47 133 133 33 160 13 113 184 225 211 7 37 27 49 48 23 56 14 38 213 55 222 136 171 144 164 211 105 226 199 184 125 105 93 72 98 25 34 52 86 69 60 212 30 87 94 195 21 6 145 19 28 172 204 4 167 214 45 83 31 14 40 65 95 220 221 48 121 77 186 5 57 137 26 194 231 189 78 41 55 124 115 232 177 22 129 68 168 204 74 211 42 143 174 182 210 215 70 218 73 158 98 223 161 138 186 140 101 30 59 52 149 217 20 214 10 210 117 49 46 106 81 16 18 103 78 76 161 38 15 226 136 36 100 103 178 182 75 3 9 185 150 7 135 48 156 183 100 138 51 96 40 165 201 134 121 42 80 91 157 208 67 180 27 219 133 231 54 99 213 190 33 197 36 2 82 6 47 231 154 205 127 155 195 156 50 206 52 184 90 232 179 172 169 66 20 81 116 124 17 43 5 120 52 51 196 146 79 101 128 80 224 65 ^'}},
+ {OUT=>'D5FD35FFABED6733C92365929DF0FB4CAE864D15'}],
+ ['183', {IN=> {f=> '503 1 55 102 9 3 202 159 19 103 56 206 165 60 152 54 171 157 164 185 27 59 45 171 217 80 123 203 203 23 169 66 193 103 116 122 156 7 32 169 6 41 165 176 31 125 2 211 155 189 93 69 32 109 90 50 225 85 53 127 153 45 175 40 121 172 201 168 15 37 99 166 44 4 182 188 53 71 7 148 48 130 108 166 220 35 8 12 198 93 9 63 171 97 195 194 87 204 14 173 132 203 143 54 231 126 102 125 118 37 43 20 94 60 36 175 47 90 110 141 23 229 35 184 43 24 153 154 85 173 12 82 214 174 232 117 106 191 128 77 164 76 117 162 101 25 204 74 142 123 143 234 32 229 211 215 105 31 9 123 87 88 135 102 65 202 99 50 165 116 62 187 62 67 177 191 8 192 52 196 118 206 105 91 214 114 27 179 166 100 150 79 79 199 84 13 182 128 137 133 67 57 17 132 23 53 187 122 36 115 131 152 170 50 45 231 186 18 63 111 181 21 18 179 226 16 88 19 223 230 82 98 59 161 50 105 200 124 11 207 89 179 106 131 212 139 224 221 86 164 16 148 224 161 170 226 76 57 10 163 85 113 96 144 38 30 18 119 21 78 148 164 9 232 50 221 26 12 78 208 80 183 172 141 199 24 44 191 188 46 155 69 208 140 99 110 81 54 55 42 40 65 26 68 41 105 24 93 185 147 180 157 104 216 89 119 137 193 219 231 10 223 1 51 36 235 16 28 103 49 1 227 120 61 76 173 72 51 152 114 87 148 104 40 5 57 77 48 14 229 95 100 34 200 8 132 83 22 178 62 127 93 129 1 47 30 194 203 83 138 4 186 11 147 120 5 113 40 181 141 139 108 106 15 97 15 157 220 95 160 186 138 184 223 61 20 27 175 107 6 101 81 114 207 33 33 209 4 66 73 218 4 6 157 44 11 98 179 46 215 221 146 133 7 88 79 139 168 75 189 37 159 135 218 180 37 219 51 156 120 181 197 49 5 233 161 110 21 138 64 102 185 87 28 219 111 125 58 121 52 80 3 82 38 90 170 110 197 169 126 162 41 109 30 134 234 92 145 149 155 13 62 7 208 200 68 48 21 198 33 40 125 178 6 217 196 2 91 34 24 213 70 23 113 161 ^'}},
+ {OUT=>'C12E9C280EE9C079E0506FF89F9B20536E0A83EF'}],
+ ['184', {IN=> {f=> '470 0 58 210 15 107 144 15 159 21 142 152 151 130 48 14 34 140 92 231 190 106 112 54 142 7 116 208 193 187 159 73 19 41 144 67 36 148 135 44 184 71 104 156 126 218 6 43 204 225 21 90 230 24 182 156 26 138 39 188 139 112 147 62 40 216 143 35 75 131 121 18 2 68 161 29 185 203 145 95 40 71 63 113 220 66 8 144 212 116 115 228 109 59 138 177 108 172 19 82 187 211 188 191 34 36 55 215 11 39 136 24 223 199 170 52 82 42 131 28 53 162 161 226 142 14 231 97 141 79 192 207 120 183 236 145 233 198 149 208 48 107 237 173 192 166 77 39 84 102 96 206 40 64 186 224 227 174 213 10 111 212 23 150 195 9 124 13 6 136 124 65 121 25 117 195 109 204 218 99 201 44 132 149 215 163 234 230 110 225 62 133 181 176 180 10 18 9 183 50 22 122 191 41 196 182 163 141 27 32 80 127 8 10 204 132 56 57 130 89 57 223 54 90 85 227 215 18 154 25 210 115 187 66 108 224 134 209 180 103 176 87 90 223 147 10 163 89 150 143 87 235 20 69 148 228 202 217 171 39 43 59 190 54 235 165 149 70 83 29 92 67 233 105 229 130 141 172 112 2 27 118 123 33 160 8 103 169 210 201 230 17 22 29 33 8 51 9 38 208 55 222 126 166 129 154 211 95 226 194 174 120 90 78 67 88 25 24 37 76 59 45 212 30 72 84 195 16 1 140 237 28 157 199 222 167 209 35 68 16 232 25 65 80 220 211 43 111 67 181 228 57 137 11 184 216 184 78 26 45 119 110 232 177 22 129 68 168 189 74 196 37 128 174 172 205 205 60 218 58 158 93 218 151 123 171 125 86 10 59 52 134 202 20 214 228 195 102 44 46 106 71 11 236 93 73 71 156 33 15 211 136 31 100 88 163 182 70 221 232 170 145 2 120 38 156 178 95 133 36 96 20 155 191 134 116 22 70 76 152 203 52 175 7 209 128 226 49 94 198 190 13 192 21 235 72 229 37 221 139 205 112 140 185 151 30 206 47 179 75 217 101 ^'}},
+ {OUT=>'E22769DC00748A9BBD6C05BBC8E81F2CD1DC4E2D'}],
+ ['185', {IN=> {f=> '502 0 158 148 66 13 60 95 103 3 15 5 113 38 23 182 125 65 94 107 73 224 37 47 102 237 3 198 155 7 95 56 198 165 52 148 46 163 157 152 173 19 55 29 167 217 76 115 203 191 11 165 62 193 99 116 122 144 236 7 28 161 2 29 157 172 23 125 238 199 151 177 89 61 24 101 78 50 213 73 41 127 153 45 167 24 121 168 193 156 3 25 87 166 28 228 174 188 53 67 239 148 36 118 104 162 208 27 232 4 194 85 1 63 159 97 191 194 75 196 10 169 132 199 131 50 223 118 94 117 118 37 27 12 94 60 28 171 47 82 110 137 15 225 23 172 43 12 141 142 81 161 12 74 210 162 228 117 98 187 124 69 164 76 105 158 101 21 200 70 130 111 143 230 32 221 203 211 101 31 5 123 83 76 135 90 57 194 95 46 153 112 62 183 54 63 169 179 4 184 40 188 110 194 105 91 206 102 27 175 154 88 142 71 79 199 84 5 170 128 129 125 55 49 17 120 19 45 187 114 24 111 123 140 166 38 33 227 178 18 59 99 173 9 10 179 214 12 84 15 215 218 82 90 47 149 42 93 188 120 239 195 81 171 94 127 200 127 220 217 86 160 16 144 216 157 162 218 72 45 234 159 77 101 88 132 26 26 6 119 13 70 140 156 233 220 34 213 26 236 74 200 80 175 164 133 195 24 44 191 184 30 143 57 204 140 99 106 77 54 43 42 36 61 14 56 25 97 8 81 181 139 180 153 92 212 77 111 133 185 219 231 238 219 1 43 32 231 8 24 91 33 237 223 108 49 64 165 72 35 152 106 87 136 96 32 1 53 77 44 238 229 83 96 22 196 124 79 6 166 58 123 93 121 225 43 22 186 195 71 126 4 174 235 135 120 229 113 28 181 129 135 100 102 7 85 11 145 212 87 156 186 138 184 223 61 4 11 175 107 6 89 81 114 207 21 17 197 236 54 73 214 232 234 149 32 11 98 167 34 203 221 146 121 235 88 75 139 160 63 189 29 147 127 210 172 33 207 51 152 116 169 189 49 237 233 153 102 17 130 64 98 177 79 16 211 111 113 58 113 48 68 235 78 30 86 170 98 197 169 122 154 41 97 18 126 234 92 145 145 155 237 50 209 ^'}},
+ {OUT=>'F29835A93475740E888E8C14318F3CA45A3C8606'}],
+ ['186', {IN=> {f=> '481 1 208 200 56 48 21 186 21 40 119 178 236 205 196 226 73 22 12 195 64 23 101 144 54 206 241 103 132 7 151 13 138 140 151 130 40 2 34 132 80 223 186 94 112 50 134 237 104 200 181 175 159 61 19 29 140 55 32 144 127 36 172 59 104 148 126 210 240 35 200 225 5 90 230 20 170 144 10 134 39 176 131 108 147 58 36 216 131 35 75 127 109 2 232 60 149 25 185 195 137 95 32 71 55 105 216 58 234 144 200 108 103 228 105 47 130 165 100 172 7 78 183 207 184 179 18 36 47 203 237 31 128 8 219 187 162 44 74 38 131 12 49 162 161 218 142 14 227 89 141 71 180 203 112 175 232 133 221 198 141 196 36 99 229 173 192 154 69 23 80 98 88 198 24 52 174 216 227 162 213 2 107 204 11 150 187 235 116 5 236 132 124 53 117 21 113 191 109 192 206 95 201 28 124 149 215 159 230 218 98 213 54 133 169 172 176 6 10 9 183 38 14 110 187 37 188 178 163 133 23 28 72 123 8 240 204 128 52 49 118 89 45 215 42 86 85 215 211 14 154 17 210 115 179 62 108 220 130 209 172 103 176 79 82 211 139 10 155 85 142 139 83 227 16 69 140 224 202 213 171 35 31 55 178 46 231 161 145 70 83 29 88 67 225 101 217 126 137 168 104 2 11 106 115 33 160 4 95 157 198 193 222 1 18 13 21 238 47 5 38 204 55 222 118 162 117 146 211 87 226 190 166 116 78 66 63 80 25 16 25 68 51 33 212 30 60 76 195 12 239 136 225 28 145 195 210 167 205 27 56 4 220 13 65 68 220 203 39 103 59 177 220 57 137 241 176 204 180 78 14 37 115 106 232 177 22 129 68 168 177 74 184 33 116 174 164 201 197 52 218 46 158 89 214 143 111 159 113 74 236 59 52 122 190 20 214 216 183 90 40 46 106 63 7 224 85 69 67 152 29 15 199 136 27 100 76 151 182 66 209 224 158 141 240 108 30 156 174 91 129 24 96 4 147 183 134 112 6 62 64 148 199 40 171 233 201 124 222 45 90 186 190 239 188 9 235 64 221 29 213 127 178 ^'}},
+ {OUT=>'1A1D77C6D0F97C4B620FAA90F3F8644408E4B13D'}],
+ ['187', {IN=> {f=> '508 1 94 122 173 145 6 206 41 173 57 199 146 150 136 66 9 48 83 91 239 243 5 109 30 7 174 113 57 90 95 69 224 29 39 102 229 3 194 151 239 87 56 190 165 44 144 38 155 157 140 161 11 51 13 163 217 72 107 203 179 243 161 58 193 95 116 122 132 236 7 24 153 242 17 149 168 15 125 238 187 147 165 85 53 16 93 66 50 201 61 29 127 153 45 159 8 121 164 185 144 235 13 75 166 12 216 166 188 53 63 235 148 24 106 100 158 196 19 220 240 190 77 237 63 147 97 187 194 63 188 6 165 132 195 119 46 215 110 86 109 118 37 11 4 94 60 20 167 47 74 110 133 7 221 11 160 43 129 130 77 149 12 66 206 150 224 117 90 183 120 61 164 76 93 154 101 17 196 66 118 99 143 226 32 213 195 207 97 31 1 123 79 64 135 78 49 186 91 42 141 108 62 179 46 59 161 167 176 28 180 102 182 105 91 198 90 27 171 142 76 134 63 79 199 84 241 158 128 121 117 43 41 17 108 15 37 187 106 12 107 115 128 162 26 21 223 170 18 55 87 165 241 2 179 202 8 80 11 207 206 82 82 35 137 34 81 176 116 231 183 73 163 82 123 188 115 216 213 86 156 16 140 208 153 154 210 68 33 222 155 69 89 80 120 14 22 238 119 5 62 132 148 221 208 18 205 26 224 70 192 80 167 156 125 191 24 44 191 180 14 131 45 200 140 99 102 73 54 31 42 32 57 2 44 9 89 236 69 177 131 180 149 80 208 65 103 129 177 219 231 230 215 1 35 28 227 20 79 17 237 219 96 37 52 157 72 19 152 98 87 124 88 24 241 49 77 40 226 229 71 92 10 192 236 116 75 234 154 54 119 93 113 213 39 14 178 187 59 114 4 162 223 123 120 217 113 16 181 117 131 92 98 243 73 7 133 204 79 152 186 138 184 223 61 232 239 175 107 6 77 81 114 207 9 1 185 232 42 73 210 224 226 141 20 11 98 155 22 191 221 146 109 227 88 71 139 152 51 189 21 135 119 202 164 29 195 51 148 112 157 181 49 233 233 145 94 13 122 64 94 169 71 4 203 111 101 58 105 44 56 231 74 22 82 170 86 197 169 118 146 41 85 6 118 234 92 145 141 149 ^'}},
+ {OUT=>'4EC84870E9BDD25F523C6DFB6EDD605052CA4EAA'}],
+ ['188', {IN=> {f=> '484 1 219 32 243 208 200 48 48 21 178 13 40 115 178 232 197 196 218 61 14 4 183 60 23 93 136 50 202 229 99 120 245 143 5 134 128 151 130 32 236 34 124 68 215 182 82 112 46 126 229 92 192 169 163 159 49 19 17 136 43 28 140 119 28 160 47 104 140 126 202 236 27 196 225 235 90 230 16 158 132 240 130 39 164 123 104 147 54 32 216 119 35 75 123 97 232 224 52 137 21 185 187 129 95 24 71 47 97 212 50 222 144 188 100 91 228 101 35 122 153 92 172 241 74 179 203 180 167 2 36 39 191 225 23 120 238 215 175 154 36 66 34 131 242 45 162 161 210 142 14 223 81 141 63 168 199 104 167 228 121 209 198 133 184 24 91 221 173 192 142 61 7 76 94 80 190 8 40 162 208 227 150 213 240 103 196 245 150 179 223 108 243 228 128 124 41 113 17 109 187 109 180 194 91 201 12 116 149 215 155 226 206 86 201 46 133 157 168 172 2 2 9 183 26 6 98 183 33 180 174 163 125 19 24 64 119 8 232 204 124 48 41 106 89 33 207 30 82 85 203 207 10 154 9 210 115 171 58 108 216 126 209 164 103 176 71 74 199 131 10 147 81 134 135 79 219 12 69 132 220 202 209 171 31 19 51 166 38 227 157 141 70 83 29 84 67 217 97 205 122 133 164 96 2 241 94 107 33 160 87 145 186 185 214 231 14 243 9 230 43 1 38 200 55 222 110 158 105 138 211 79 226 186 158 112 66 54 59 72 25 8 13 60 43 21 212 30 48 68 195 8 239 132 213 28 133 191 198 167 201 19 44 238 208 1 65 56 220 195 35 95 51 173 212 57 137 233 168 192 176 78 2 29 111 102 232 177 22 129 68 168 165 74 172 29 104 174 156 197 189 44 218 34 158 85 210 135 99 147 101 62 224 59 52 110 178 20 214 204 171 78 36 46 106 55 3 212 77 65 63 148 25 15 187 136 23 100 64 139 182 62 197 216 146 137 240 96 22 156 170 87 125 12 96 234 139 175 134 108 236 54 52 144 195 28 167 221 193 120 218 41 86 174 190 227 184 243 235 56 213 21 205 115 205 71 ^'}},
+ {OUT=>'D689513FED08B80C39B67371959BC4E3FECB0537'}],
+ ['189', {IN=> {f=> '506 0 110 165 141 238 206 37 169 45 187 134 142 124 66 5 36 71 79 235 231 5 105 22 239 166 101 49 86 83 65 224 21 31 102 221 3 190 147 231 79 56 182 165 36 140 30 147 157 128 149 3 47 245 159 217 68 99 203 167 235 157 54 193 91 116 122 120 236 7 20 145 242 5 141 164 7 125 238 175 143 153 81 45 8 85 54 50 189 49 17 127 153 45 151 240 121 160 177 132 227 1 63 166 244 204 158 188 53 59 231 148 12 94 96 154 184 11 208 236 186 69 233 63 135 97 183 194 51 180 2 161 132 191 107 42 207 102 78 101 118 37 243 244 94 60 12 163 47 66 110 129 247 217 247 148 43 236 117 118 73 137 12 58 202 138 220 117 82 179 116 53 164 76 81 150 101 13 192 62 106 87 143 222 32 205 187 203 93 31 245 123 75 52 135 66 41 178 87 38 129 104 62 175 38 55 153 155 244 168 16 172 94 170 105 91 190 78 27 167 130 64 126 55 79 199 84 237 146 128 113 109 31 33 17 96 11 29 187 98 103 107 116 158 14 9 219 162 18 51 75 157 233 242 179 190 4 76 7 199 194 82 74 23 125 26 69 164 112 223 171 65 155 70 119 176 103 212 209 86 152 16 136 200 149 146 202 64 21 210 151 61 77 72 108 2 18 230 119 245 54 124 140 209 196 2 197 26 212 66 184 80 159 148 117 187 24 44 191 176 246 119 33 196 140 99 98 69 54 19 42 28 53 238 32 241 81 224 57 173 123 180 145 68 204 53 95 125 169 219 231 222 211 1 27 24 223 240 16 67 1 237 215 84 25 40 149 72 3 152 90 87 112 80 16 241 45 77 36 214 229 59 88 246 188 232 108 71 222 142 50 115 93 105 201 35 6 170 179 47 102 4 150 211 111 120 205 113 4 181 105 127 84 94 239 61 3 121 196 71 148 186 138 184 223 61 220 227 175 107 6 65 81 114 207 245 233 173 228 30 73 206 216 218 133 8 11 98 143 10 179 221 146 97 219 88 67 139 144 39 189 13 123 111 194 156 25 183 51 144 108 145 173 49 229 233 137 86 9 114 64 90 161 63 240 195 111 89 58 97 40 44 227 70 14 78 170 74 197 169 114 138 41 73 242 110 234 177 ^'}},
+ {OUT=>'C4FED58F209FC3C34AD19F86A6DACADC86C04D33'}],
+ ['190', {IN=> {f=> '491 0 145 135 155 207 20 243 208 200 40 48 21 170 5 40 111 178 228 189 196 210 49 6 246 171 56 23 85 128 46 198 217 95 108 241 135 247 130 116 151 130 24 228 34 116 56 207 178 70 112 42 118 221 80 184 157 151 159 37 19 5 132 31 24 136 111 20 148 35 104 132 126 194 232 19 192 225 223 90 230 12 146 120 228 126 39 152 115 100 147 50 28 216 107 35 75 119 85 220 216 44 125 17 185 179 121 95 16 71 39 89 208 42 210 144 176 92 79 228 97 23 114 141 84 172 233 70 175 199 176 155 236 36 31 179 213 15 112 226 211 163 146 28 58 30 131 230 41 162 161 202 142 14 219 73 141 55 156 195 96 159 224 109 197 198 125 172 12 83 213 173 192 130 53 241 72 90 72 182 242 28 150 200 227 138 213 236 99 188 237 150 171 211 100 239 220 124 124 29 109 13 105 183 109 168 182 87 201 246 108 149 215 151 222 194 74 189 38 133 145 164 168 248 244 9 183 14 248 86 179 29 172 170 163 117 15 20 56 115 8 224 204 120 44 33 94 89 21 199 18 78 85 191 203 6 154 1 210 115 163 54 108 212 122 209 156 103 176 63 66 187 123 10 139 77 126 131 75 211 8 69 124 216 202 205 171 27 7 47 154 30 223 153 137 70 83 29 80 67 209 93 193 118 129 160 88 2 229 82 99 33 160 246 79 133 174 177 206 219 10 231 247 222 39 247 38 196 55 222 102 154 93 130 211 71 226 182 150 108 54 42 55 64 25 1 52 35 9 212 30 36 60 195 4 239 128 201 28 121 187 186 167 197 11 32 230 196 239 65 44 220 187 31 87 43 169 204 57 137 225 160 180 172 78 240 21 107 98 232 177 22 129 68 168 153 74 160 25 92 174 148 193 181 36 218 22 158 81 206 127 87 135 89 50 212 59 52 98 166 20 214 192 159 66 32 46 106 47 249 200 69 61 59 144 21 15 175 136 19 100 52 127 182 58 185 208 134 133 240 84 14 156 166 83 121 96 222 131 167 134 104 224 46 40 140 191 16 163 209 185 116 214 37 82 162 190 215 180 235 235 48 205 13 197 103 205 76 104 161 139 232 146 ^'}},
+ {OUT=>'051888C6D00029C176DE792B84DECE2DC1C74B00'}],
+ ['191', {IN=> {f=> '516 0 33 165 33 175 122 134 112 66 1 24 59 67 231 219 5 101 14 227 158 89 41 82 71 61 224 13 23 102 213 3 186 143 223 71 56 174 165 28 136 22 139 157 116 137 247 43 233 155 217 64 91 203 155 227 153 50 193 87 116 122 108 236 7 16 137 242 245 133 160 251 125 238 163 139 141 77 37 77 42 50 177 37 5 127 153 45 143 228 121 156 169 120 219 241 51 166 232 192 150 188 53 55 227 148 82 92 150 172 3 196 232 182 61 229 63 123 97 179 194 39 172 250 157 132 187 95 38 199 94 70 93 118 37 231 240 94 60 4 159 47 58 110 125 243 213 239 136 43 228 105 106 69 125 12 50 198 126 216 117 74 175 112 45 164 76 69 146 101 9 188 58 94 75 143 218 32 197 179 199 89 31 245 123 71 40 135 54 33 170 83 34 117 100 62 171 30 51 145 143 244 160 4 164 86 158 105 91 182 66 27 163 118 52 118 47 79 199 84 233 134 128 105 101 19 25 17 84 7 21 187 90 240 99 99 104 154 2 249 215 154 18 47 63 149 225 238 179 178 72 3 191 182 82 66 11 113 18 57 152 108 215 159 57 147 58 115 164 91 208 205 86 148 16 132 192 145 138 194 60 9 198 147 53 65 64 96 242 14 222 119 241 46 116 132 197 184 238 189 26 200 62 176 80 151 140 109 183 24 44 191 172 234 107 21 192 140 99 94 65 54 7 42 24 49 230 20 229 73 212 45 169 115 180 141 56 200 41 87 121 161 219 231 214 207 1 19 20 219 236 12 55 237 237 211 72 13 28 141 72 239 152 82 87 100 72 8 241 41 77 32 202 229 47 84 238 184 228 100 67 210 130 46 111 93 97 189 31 250 162 171 35 90 4 138 199 99 120 193 113 244 181 93 123 76 90 235 49 251 109 188 63 144 186 138 184 223 61 208 215 175 107 6 53 81 114 207 237 221 161 224 18 73 202 208 210 125 248 11 98 131 250 167 221 146 85 211 88 63 139 136 27 189 5 111 103 186 148 21 171 51 140 104 133 165 49 225 233 129 78 5 106 64 86 153 55 232 187 111 77 58 89 36 32 223 66 6 74 170 62 197 169 110 130 41 61 234 102 234 92 145 133 155 201 14 243 208 200 36 48 21 166 1 40 109 178 147 ^'}},
+ {OUT=>'1A3540BEE05518505827954F58B751C475AEECE0'}],
+ ['192', {IN=> {f=> '522 0 179 196 200 34 251 241 156 51 23 75 118 41 193 202 90 93 236 125 242 125 101 151 130 14 218 34 106 41 197 173 55 112 37 108 211 65 174 142 136 159 22 19 245 127 16 19 131 101 10 133 20 104 122 126 184 227 9 187 225 208 90 230 7 131 105 213 121 39 137 105 95 147 45 23 216 92 35 75 114 70 205 206 34 110 12 185 169 111 95 6 71 29 79 203 32 195 144 161 82 64 228 92 8 104 126 74 172 223 65 170 194 171 140 221 36 21 164 198 5 102 211 206 148 136 18 48 25 131 215 36 162 161 192 142 14 214 63 141 45 141 190 86 149 219 94 182 198 115 157 252 73 203 173 192 115 43 226 67 85 62 172 227 13 135 190 227 123 213 231 94 178 227 150 161 196 90 234 210 119 124 14 104 8 100 178 109 153 167 82 201 231 98 149 215 146 217 179 59 174 28 133 130 159 163 248 239 9 183 254 243 71 174 24 162 165 163 107 10 15 46 110 8 214 204 115 39 23 79 89 6 189 3 73 85 176 198 1 154 246 210 115 153 49 108 207 117 209 146 103 176 53 56 172 113 10 129 72 116 126 70 201 3 69 114 211 202 200 171 22 247 42 139 20 218 148 132 70 83 29 75 67 199 88 178 113 124 155 78 2 214 67 89 33 160 246 69 118 159 167 196 204 5 216 237 212 34 247 38 191 55 222 92 149 78 120 211 61 226 177 140 103 39 27 50 54 25 245 241 42 25 249 212 30 21 50 195 254 239 123 186 28 106 182 171 167 192 1 17 220 181 229 65 29 220 177 26 77 33 164 194 57 137 215 150 165 167 78 230 11 102 93 232 177 22 129 68 168 138 74 145 20 77 174 138 188 171 26 218 7 158 76 201 117 72 120 74 35 197 59 52 83 151 20 214 177 144 51 27 46 106 37 249 185 59 56 54 139 16 15 160 136 14 100 37 112 182 53 170 198 119 128 240 69 4 156 161 78 116 240 96 207 121 157 134 99 209 36 25 135 186 1 158 194 175 111 209 32 77 147 190 200 175 225 235 38 195 3 187 88 205 61 89 151 134 217 206 30 162 24 166 113 128 103 66 253 15 50 58 228 210 5 98 8 218 152 80 35 79 62 58 224 7 17 102 207 3 183 140 217 65 56 168 165 22 133 16 133 157 107 128 244 12 ^'}},
+ {OUT=>'DFA19180359D5A7A38E842F172359CAF4208FC05'}],
+ ['193', {IN=> {f=> '517 1 218 150 217 59 81 203 140 217 148 45 193 82 116 122 93 236 7 11 127 242 235 123 155 246 125 238 148 134 126 72 27 247 67 27 50 162 22 247 127 153 45 133 213 121 151 159 105 209 231 36 166 217 177 140 188 53 50 222 148 242 67 87 145 157 250 181 227 177 51 224 63 108 97 174 194 24 162 250 152 132 182 80 33 189 84 60 83 118 37 216 235 94 60 251 154 47 48 110 120 238 208 229 121 43 218 90 91 64 110 12 40 193 111 211 117 64 170 107 35 164 76 54 141 101 4 183 53 79 60 143 213 32 187 169 194 84 31 245 123 66 25 135 39 23 160 78 29 102 95 62 166 20 46 135 128 244 150 246 154 76 143 105 91 172 51 27 158 103 37 108 37 79 199 84 228 119 128 95 91 4 15 17 69 2 11 187 80 230 94 89 89 149 244 239 210 144 18 42 48 139 215 233 179 163 252 67 255 181 167 82 56 253 98 8 42 137 103 205 144 47 137 43 110 149 76 203 200 86 143 16 127 182 140 128 184 55 251 183 142 43 50 54 81 232 9 212 119 236 36 106 122 182 169 223 179 26 185 57 166 80 141 130 99 178 24 44 191 167 219 92 6 187 140 99 89 60 54 249 42 19 44 220 5 214 63 197 30 164 105 180 136 41 195 26 77 116 151 219 231 204 202 1 9 15 214 231 7 40 222 237 206 57 255 13 131 72 224 152 72 87 85 62 255 241 36 77 27 187 229 32 79 228 179 223 90 62 195 115 41 106 93 87 174 26 245 152 161 20 75 4 123 184 84 120 178 113 234 181 78 118 66 85 230 34 251 94 178 53 139 186 138 184 223 61 193 200 175 107 6 38 81 114 207 227 206 146 219 3 73 197 198 200 115 238 11 98 116 240 152 221 146 70 201 88 58 139 126 12 189 252 96 93 176 138 16 156 51 135 99 118 155 49 220 233 119 68 96 64 81 143 45 222 177 111 62 58 79 31 17 218 61 253 69 170 47 197 169 105 120 41 46 224 92 234 92 145 128 155 186 256 243 208 200 26 48 21 156 248 40 104 178 221 175 196 196 28 249 239 150 49 23 71 114 39 191 196 88 87 234 121 240 123 95 151 130 10 214 34 102 35 193 171 49 112 35 104 207 59 170 136 130 159 16 19 241 125 213 ^'}},
+ {OUT=>'7B0FA84EBBCFF7D7F4500F73D79660C4A3431B67'}],
+ ['194', {IN=> {f=> '529 1 15 127 93 2 121 8 104 114 126 176 223 1 183 225 196 90 230 3 119 93 201 117 39 125 97 91 147 41 19 216 80 35 75 110 58 193 198 26 98 8 185 161 103 95 257 71 21 71 199 24 183 144 149 74 52 228 88 255 96 114 66 172 215 61 166 190 167 128 209 36 13 152 186 256 94 199 202 136 128 10 40 21 131 203 32 162 161 184 142 14 210 55 141 37 129 186 78 141 215 82 170 198 107 145 244 65 195 173 192 103 35 214 63 81 54 164 215 1 123 182 227 111 213 227 90 170 219 150 153 184 82 230 202 115 124 2 100 4 96 174 109 141 155 78 201 219 90 149 215 142 213 167 47 162 20 133 118 155 159 248 235 9 183 246 239 59 170 20 154 161 163 99 6 11 38 106 8 206 204 111 35 15 67 89 253 181 250 69 85 164 194 256 154 242 210 115 145 45 108 203 113 209 138 103 176 45 48 160 105 10 121 68 108 122 66 193 258 69 106 207 202 196 171 18 239 38 127 12 214 144 128 70 83 29 71 67 191 84 166 109 120 151 70 2 202 55 81 33 160 246 61 106 147 159 188 192 1 204 229 204 30 247 38 187 55 222 84 145 66 112 211 53 226 173 132 99 27 15 46 46 25 241 233 34 17 241 212 30 9 42 195 254 239 119 174 28 94 178 159 167 188 252 5 212 169 221 65 17 220 169 22 69 25 160 186 57 137 207 142 153 163 78 222 3 98 89 232 177 22 129 68 168 126 74 133 16 65 174 130 184 163 18 218 254 158 72 197 109 60 108 62 23 185 59 52 71 139 20 214 165 132 39 23 46 106 29 249 173 51 52 50 135 12 15 148 136 10 100 25 100 182 49 158 190 107 124 240 57 255 156 157 74 112 232 96 195 113 149 134 95 197 28 13 131 182 248 154 182 167 107 205 28 73 135 190 188 171 217 235 30 187 254 179 76 205 49 77 143 130 205 206 26 158 12 154 101 120 91 66 253 3 38 46 224 198 5 94 206 144 68 27 75 50 54 224 258 9 102 199 3 179 136 209 57 56 160 165 14 129 8 125 157 95 116 240 36 212 148 217 57 77 203 134 213 146 43 193 80 116 122 87 236 7 9 123 242 231 119 153 244 125 238 142 132 120 70 23 245 63 21 50 156 16 243 127 153 45 129 207 121 149 155 99 205 227 30 166 211 57 ^'}},
+ {OUT=>'9E886081C9ACAAD0F97B10810D1DE6FCDCE6B5F4'}],
+ ['195', {IN=> {f=> '548 0 134 188 53 47 219 148 236 58 84 142 148 247 172 224 174 45 221 63 99 97 171 194 15 156 250 149 132 179 71 30 183 78 54 77 118 37 207 232 94 60 248 151 47 42 110 117 235 205 223 112 43 212 81 82 61 101 12 34 190 102 208 117 58 167 104 29 164 76 45 138 101 1 180 50 70 51 143 210 32 181 163 191 81 31 245 123 63 16 135 30 17 154 75 26 93 92 62 163 14 43 129 119 244 144 240 148 70 134 105 91 166 42 27 155 94 28 102 31 79 199 84 225 110 128 89 85 255 9 17 60 259 5 187 74 224 91 83 80 146 238 233 207 138 18 39 39 133 209 230 179 154 252 64 255 175 158 82 50 247 89 2 33 128 100 199 135 41 131 34 107 140 67 200 197 86 140 16 124 176 137 122 178 52 245 174 139 37 41 48 72 226 6 206 119 233 30 100 116 173 160 214 173 26 176 54 160 80 135 124 93 175 24 44 191 164 210 83 257 184 140 99 86 57 54 243 42 16 41 214 256 205 57 188 21 161 99 180 133 32 192 17 71 113 145 219 231 198 199 1 3 12 211 228 4 31 213 237 203 48 249 4 125 72 215 152 66 87 76 56 252 241 33 77 24 178 229 23 76 222 176 220 84 59 186 106 38 103 93 81 165 23 242 146 155 11 66 4 114 175 75 120 169 113 228 181 69 115 60 82 227 25 251 85 172 47 136 186 138 184 223 61 184 191 175 107 6 29 81 114 207 221 197 137 216 254 73 194 192 194 109 232 11 98 107 234 143 221 146 61 195 88 55 139 120 3 189 249 87 87 170 132 13 147 51 132 96 109 149 49 217 233 113 62 257 90 64 78 137 39 216 171 111 53 58 73 28 8 215 58 250 66 170 38 197 169 102 114 41 37 218 86 234 92 145 125 155 177 250 243 208 200 20 48 21 150 245 40 101 178 218 169 196 190 19 246 236 141 46 23 65 108 36 188 187 85 78 231 115 237 120 86 151 130 4 208 34 96 26 187 168 40 112 32 98 201 50 164 127 121 159 7 19 235 122 1 14 126 91 118 5 104 112 126 174 222 259 182 225 193 90 230 2 116 90 198 116 39 122 95 90 147 40 18 216 77 35 75 109 55 190 196 24 95 7 185 159 101 95 256 71 19 69 198 22 180 144 146 72 49 228 87 253 94 111 64 172 213 60 165 189 166 125 206 36 11 149 183 255 92 196 201 133 126 8 38 20 131 213 ^'}},
+ {OUT=>'A4D46E4BA0AE4B012F75B1B50D0534D578AE9CB6'}],
+ ['196', {IN=> {f=> '547 0 29 162 161 178 142 14 207 49 141 31 120 183 72 135 212 73 161 198 101 136 238 59 189 173 192 94 29 205 60 78 48 158 206 254 114 176 227 102 213 224 87 164 213 150 147 175 76 227 196 112 124 255 97 1 93 171 109 132 146 75 201 210 84 149 215 139 210 158 38 153 14 133 109 152 156 248 232 9 183 240 236 50 167 17 148 158 163 93 3 8 32 103 8 200 204 108 32 9 58 89 247 175 244 66 85 155 191 256 154 239 210 115 139 42 108 200 110 209 132 103 176 39 42 151 99 10 115 65 102 119 63 187 258 69 100 204 202 193 171 15 233 35 118 6 211 141 125 70 83 29 68 67 185 81 157 106 117 148 64 2 193 46 75 33 160 246 55 97 138 153 182 183 260 195 223 198 27 247 38 184 55 222 78 142 57 106 211 47 226 170 126 96 18 6 43 40 25 238 227 28 11 235 212 30 36 195 254 239 116 165 28 85 175 150 167 185 249 258 206 160 215 65 8 220 163 19 63 19 157 180 57 137 201 136 144 160 78 216 259 95 86 232 177 22 129 68 168 117 74 124 13 56 174 124 181 157 12 218 248 158 69 194 103 51 99 53 14 176 59 52 62 130 20 214 156 123 30 20 46 106 23 249 164 45 49 47 132 9 15 139 136 7 100 16 91 182 46 149 184 98 121 240 48 252 156 154 71 109 226 96 186 107 143 134 92 188 22 4 128 179 242 151 173 161 104 202 25 70 126 190 179 168 211 235 24 181 251 173 67 205 40 68 137 127 196 206 23 155 3 145 92 114 82 66 253 256 29 37 221 189 5 91 256 197 138 59 21 72 41 51 224 255 3 102 193 3 176 133 203 51 56 154 165 8 126 2 119 157 86 107 237 33 203 145 217 54 71 203 125 207 143 40 193 77 116 122 78 236 7 6 117 242 225 113 150 241 125 238 133 129 111 67 17 242 57 12 50 147 7 237 127 153 45 123 198 121 146 149 90 199 221 21 166 202 162 130 188 53 45 217 148 232 52 82 140 142 245 166 222 172 41 219 63 93 97 169 194 9 152 250 147 132 177 65 28 179 74 50 73 118 37 201 230 94 60 246 149 47 38 110 115 233 203 219 106 43 208 75 76 59 95 12 30 188 96 206 117 54 165 102 25 164 76 39 136 101 261 178 48 64 45 143 208 32 177 159 189 79 31 245 123 61 10 135 24 13 150 73 24 87 90 62 161 10 41 125 209 ^'}},
+ {OUT=>'6342B199EE64C7B2C9CBCD4F2DCB65ACEF51516F'}],
+ ['197', {IN=> {f=> '542 1 244 136 232 140 62 122 105 91 158 30 27 151 82 16 94 23 79 199 84 221 98 128 81 77 247 1 17 48 259 261 187 66 216 87 75 68 142 230 225 203 130 18 35 27 125 201 226 179 142 252 60 255 167 146 82 42 239 77 258 21 116 96 191 123 33 123 22 103 128 55 196 193 86 136 16 120 168 133 114 170 48 237 162 135 29 29 40 60 218 2 198 119 229 22 92 108 161 148 202 165 26 164 50 152 80 127 116 85 171 24 44 191 160 198 71 249 180 140 99 82 53 54 235 42 12 37 206 248 193 49 176 9 157 91 180 129 20 188 5 63 109 137 219 231 190 195 1 259 8 207 224 19 201 237 199 36 241 256 117 72 203 152 58 87 64 48 248 241 29 77 20 166 229 11 72 214 172 216 76 55 174 94 34 99 93 73 153 19 238 138 147 263 54 4 102 163 63 120 157 113 220 181 57 111 52 78 223 13 251 73 164 39 132 186 138 184 223 61 172 179 175 107 6 17 81 114 207 213 185 125 212 246 73 190 184 186 101 224 11 98 95 226 131 221 146 49 187 88 51 139 112 255 189 245 75 79 162 124 9 135 51 128 92 97 141 49 213 233 105 54 257 82 64 74 129 31 208 163 111 41 58 65 24 260 211 54 246 62 170 26 197 169 98 106 41 25 210 78 234 92 145 121 155 165 242 243 208 200 12 48 21 142 241 40 97 178 214 161 196 182 7 242 232 129 42 23 57 100 32 184 175 81 66 227 107 233 116 74 151 130 260 200 34 88 14 179 164 28 112 28 90 193 38 156 115 109 159 259 19 227 118 253 10 122 83 256 106 257 104 104 126 166 218 255 178 225 181 90 230 262 104 78 186 112 39 110 87 86 147 36 14 216 65 35 75 105 43 178 188 16 83 3 185 151 93 95 252 71 11 61 194 14 168 144 134 64 37 228 83 245 86 99 56 172 205 56 161 185 162 113 194 36 3 137 171 251 84 184 197 121 118 30 16 131 188 27 162 161 174 142 14 205 45 141 27 114 181 68 131 210 67 155 198 97 130 234 55 185 173 192 88 25 199 58 76 44 154 200 250 108 172 227 96 213 222 85 160 209 150 143 169 72 225 192 110 124 251 95 263 91 169 109 126 140 73 201 204 80 149 215 137 208 152 32 147 10 133 103 150 154 248 230 9 183 236 234 44 165 15 144 156 163 89 1 6 28 101 8 196 204 106 164 ^'}},
+ {OUT=>'AABFD63688EB678357869130083E1B52F6EA861D'}],
+ ['198', {IN=> {f=> '567 0 1 46 89 239 167 236 62 85 143 187 256 154 235 210 115 131 38 108 196 106 209 124 103 176 31 34 139 91 10 107 61 94 115 59 179 258 69 92 200 202 189 171 11 225 31 106 264 207 137 121 70 83 29 64 67 177 77 145 102 113 144 56 2 181 34 67 33 160 246 47 85 126 145 174 171 260 183 215 190 23 247 38 180 55 222 70 138 45 98 211 39 226 166 118 92 6 260 39 32 25 234 219 20 3 227 212 30 254 28 195 254 239 112 153 28 73 171 138 167 181 245 250 198 148 207 65 262 220 155 15 55 11 153 172 57 137 193 128 132 156 78 208 255 91 82 232 177 22 129 68 168 105 74 112 9 44 174 116 177 149 4 218 240 158 65 190 95 39 87 41 2 164 59 52 50 118 20 214 144 111 18 16 46 106 15 249 152 37 45 43 128 5 15 127 136 3 100 4 79 182 42 137 176 86 117 240 36 248 156 150 67 105 218 96 174 99 135 134 88 176 14 258 124 175 234 147 161 153 100 198 21 66 114 190 167 164 203 235 16 173 247 165 55 205 28 56 129 123 184 206 19 151 257 133 80 106 70 66 253 248 17 25 217 177 5 87 252 185 130 47 13 68 29 47 224 251 261 102 185 3 172 129 195 43 56 146 165 122 260 111 157 74 95 233 29 191 141 217 50 63 203 113 199 139 36 193 73 116 122 66 236 7 2 109 242 217 105 146 237 125 238 121 125 99 63 9 238 49 50 135 261 229 127 153 45 115 186 121 142 141 78 191 213 9 166 190 150 122 188 53 41 213 148 224 40 78 136 130 241 154 218 168 33 215 63 81 97 165 194 263 144 250 143 132 173 53 24 171 66 42 65 118 37 189 226 94 60 242 145 47 30 110 111 229 199 211 94 43 200 63 64 55 83 12 22 184 84 202 117 46 161 98 17 164 76 27 132 101 261 174 44 52 33 143 204 32 169 151 185 75 31 245 123 57 264 135 12 5 142 69 20 75 86 62 157 2 37 117 101 244 132 228 136 58 116 105 91 154 24 27 149 76 10 90 19 79 199 84 219 92 128 77 73 243 263 17 42 259 259 187 62 212 85 71 62 140 226 221 201 126 18 33 21 121 197 224 179 136 252 58 255 163 140 82 38 235 71 256 15 110 94 187 117 29 119 16 101 122 49 194 191 86 134 16 118 164 131 110 166 46 233 156 133 25 23 36 54 214 194 119 227 18 88 104 155 142 196 161 26 158 48 148 80 123 112 81 169 24 44 191 158 192 65 245 178 140 223 ^'}},
+ {OUT=>'F732B7372DAF44801F81EFFE3108726239837936'}],
+ ['199', {IN=> {f=> '551 1 78 49 54 227 42 8 33 198 240 181 41 164 265 153 83 180 125 8 184 261 55 105 129 219 231 182 191 1 255 4 203 220 264 7 189 237 195 24 233 248 109 72 191 152 50 87 52 40 244 241 25 77 16 154 229 267 68 206 168 212 68 51 162 82 30 95 93 65 141 15 234 130 139 255 42 4 90 151 51 120 145 113 212 181 45 107 44 74 219 1 251 61 156 31 128 186 138 184 223 61 160 167 175 107 6 5 81 114 207 205 173 113 208 238 73 186 176 178 93 216 11 98 83 218 119 221 146 37 179 88 47 139 104 247 189 241 63 71 154 116 5 123 51 124 88 85 133 49 209 233 97 46 257 74 64 70 121 23 200 155 111 29 58 57 20 252 207 50 242 58 170 14 197 169 94 98 41 13 202 70 234 92 145 117 155 153 234 243 208 200 4 48 21 134 237 40 93 178 210 153 196 174 263 238 228 117 38 23 49 92 28 180 163 77 54 223 99 229 112 62 151 130 256 192 34 80 2 171 160 16 112 24 82 185 26 148 103 97 159 251 19 219 114 245 6 118 75 252 94 249 104 96 126 158 214 251 174 225 169 90 230 262 92 66 174 108 39 98 79 82 147 32 10 216 53 35 75 101 31 166 180 8 71 267 185 143 85 95 248 71 3 53 190 6 156 144 122 56 25 228 79 237 78 87 48 172 197 52 157 181 158 101 182 36 263 125 159 247 76 172 193 109 110 260 22 12 131 176 23 162 161 166 142 14 201 37 141 19 102 177 60 123 206 55 143 198 89 118 226 47 177 173 192 76 17 187 54 72 36 146 188 242 96 164 227 84 213 218 81 152 201 150 135 157 64 221 184 106 124 243 91 263 87 165 109 114 128 69 201 192 72 149 215 133 204 140 20 135 2 133 91 146 150 248 226 9 183 228 230 32 161 11 136 152 163 81 265 2 20 97 8 188 204 102 26 265 40 89 235 163 232 60 85 137 185 256 154 233 210 115 127 36 108 194 104 209 120 103 176 27 30 133 87 10 103 59 90 113 57 175 258 69 88 198 202 187 171 9 221 29 100 262 205 135 119 70 83 29 62 67 173 75 139 100 111 142 52 2 175 28 63 33 160 246 43 79 120 141 170 165 260 177 211 186 21 247 38 178 55 222 66 136 39 94 211 35 226 164 114 90 256 37 28 25 232 215 16 267 223 212 30 250 24 195 254 239 110 147 28 67 169 132 167 179 243 246 194 142 203 65 263 ^'}},
+ {OUT=>'5E9347FE4574CDCB80281ED092191199BADD7B42'}],
+ ['200', {IN=> {f=> '578 0 220 147 11 47 3 149 164 57 137 185 120 120 152 78 200 251 87 78 232 177 22 129 68 168 93 74 100 5 32 174 108 173 141 266 218 232 158 61 186 87 27 75 29 260 152 59 52 38 106 20 214 132 99 6 12 46 106 7 249 140 29 41 39 124 1 15 115 136 269 100 262 67 182 38 125 168 74 113 240 24 244 156 146 63 101 210 96 162 91 127 134 84 164 6 250 120 171 226 143 149 145 96 194 17 62 102 190 155 160 195 235 8 165 243 157 43 205 16 44 121 119 172 206 15 147 249 121 68 98 58 66 253 240 5 13 213 165 5 83 248 173 122 35 5 64 17 43 224 247 257 102 177 3 168 125 187 35 56 138 165 262 118 256 103 157 62 83 229 25 179 137 217 46 55 203 101 191 135 32 193 69 116 122 54 236 7 268 101 242 209 97 142 233 125 238 109 121 87 59 1 234 41 258 50 123 253 221 127 153 45 107 174 121 138 133 66 183 205 267 166 178 138 114 188 53 37 209 148 216 28 74 132 118 237 142 214 164 25 211 63 69 97 161 194 255 136 250 139 132 169 41 20 163 58 34 57 118 37 177 222 94 60 238 141 47 22 110 107 225 195 203 82 43 192 51 52 51 71 12 14 180 72 198 117 38 157 94 9 164 76 15 128 101 261 170 40 40 21 143 200 32 161 143 181 71 31 245 123 53 256 135 267 134 65 16 63 82 62 153 264 33 109 89 244 124 220 128 50 104 105 91 146 12 27 145 64 268 82 11 79 199 84 215 80 128 69 65 235 259 17 30 259 255 187 54 204 81 63 50 136 218 213 197 118 18 29 9 113 189 220 179 124 252 54 255 155 128 82 30 227 59 252 3 98 90 179 105 21 111 4 97 110 37 190 187 86 130 16 114 156 127 102 158 42 225 144 129 17 11 28 42 206 266 186 119 223 10 80 96 143 130 184 153 26 146 44 140 80 115 104 73 165 24 44 191 154 180 53 237 174 140 99 76 47 54 223 42 6 31 194 236 175 37 158 261 151 79 180 123 2 182 257 51 103 125 219 231 178 189 1 253 2 201 218 264 1 183 237 193 18 229 244 105 72 185 152 46 87 46 36 242 241 23 77 14 148 229 263 66 202 166 210 64 49 156 76 28 93 93 61 135 13 232 126 135 251 36 4 84 145 45 120 139 113 208 181 39 105 40 72 217 265 251 55 152 27 126 186 138 184 223 61 154 161 175 107 6 269 81 114 207 201 167 107 206 234 73 184 172 174 89 212 11 98 77 214 113 221 146 31 175 88 45 139 100 243 189 213 ^'}},
+ {OUT=>'D5776B7DFFF75C1358ABDBBB3F27A20BB6CA7C55'}],
+ ['201', {IN=> {f=> '578 1 51 63 146 108 1 111 51 120 84 73 125 49 205 233 89 38 257 66 64 66 113 15 192 147 111 17 58 49 16 244 203 46 238 54 170 2 197 169 90 90 41 1 194 62 234 92 145 113 155 141 226 243 208 200 268 48 21 126 233 40 89 178 206 145 196 166 255 234 224 105 34 23 41 84 24 176 151 73 42 219 91 225 108 50 151 130 252 184 34 72 262 163 156 4 112 20 74 177 14 140 91 85 159 243 19 211 110 237 2 114 67 248 82 241 104 88 126 150 210 247 170 225 157 90 230 262 80 54 162 104 39 86 71 78 147 28 6 216 41 35 75 97 19 154 172 59 267 185 135 77 95 244 71 267 45 186 270 144 144 110 48 13 228 75 229 70 75 40 172 189 48 153 177 154 89 170 36 259 113 147 243 68 160 189 97 102 256 14 8 131 164 19 162 161 158 142 14 197 29 141 11 90 173 52 115 202 43 131 198 81 106 218 39 169 173 192 64 9 175 50 68 28 138 176 234 84 156 227 72 213 214 77 144 193 150 127 145 56 217 176 102 124 235 87 263 83 161 109 102 116 65 201 180 64 149 215 129 200 128 8 123 266 133 79 142 146 248 222 9 183 220 226 20 157 7 128 148 163 73 265 270 12 93 8 180 204 98 22 261 28 89 227 155 224 56 85 125 181 256 154 229 210 115 119 32 108 190 100 209 112 103 176 19 22 121 79 10 95 55 82 109 53 167 258 69 80 194 202 183 171 5 213 25 88 258 201 131 115 70 83 29 58 67 165 71 127 96 107 138 44 2 163 16 55 33 160 246 35 67 108 133 162 153 260 165 203 178 17 247 38 174 55 222 58 132 27 86 211 27 226 160 106 86 260 248 33 20 25 228 207 8 263 215 212 30 242 16 195 254 239 106 135 28 55 165 120 167 175 239 238 186 130 195 65 250 220 143 9 43 271 147 160 57 137 181 116 114 150 78 196 249 85 76 232 177 22 129 68 168 87 74 94 3 26 174 104 171 137 264 218 228 158 59 184 83 21 69 23 256 146 59 52 32 100 20 214 126 93 10 46 106 3 249 134 25 39 37 122 271 15 109 136 269 100 258 61 182 36 119 164 68 111 240 18 242 156 144 61 99 206 96 156 87 123 134 82 158 2 246 118 169 222 141 143 141 94 192 15 60 96 190 149 158 191 235 4 161 241 153 37 205 10 38 117 117 166 206 13 145 245 115 62 94 52 66 253 236 271 7 211 159 5 81 246 167 118 29 1 62 11 41 224 245 255 102 173 3 166 123 183 31 56 134 165 260 116 254 81 ^'}},
+ {OUT=>'022B7ADA472FB7A9DA9219621C9C5F563D3792F6'}],
+ ['202', {IN=> {f=> '583 1 157 50 71 225 21 167 133 217 42 47 203 89 183 131 28 193 65 116 122 42 236 7 268 93 242 201 89 138 229 125 238 97 117 75 55 267 230 33 250 50 111 245 213 127 153 45 99 162 121 134 125 54 175 197 259 166 166 126 106 188 53 33 205 148 208 16 70 128 106 233 130 210 160 17 207 63 57 97 157 194 247 128 250 135 132 165 29 16 155 50 26 49 118 37 165 218 94 60 234 137 47 14 110 103 221 191 195 70 43 184 39 40 47 59 12 6 176 60 194 117 30 153 90 1 164 76 3 124 101 261 166 36 28 9 143 196 32 153 135 177 67 31 245 123 49 248 135 262 263 126 61 12 51 78 62 149 260 29 101 77 244 116 212 120 42 92 105 91 138 27 141 52 260 74 3 79 199 84 211 68 128 61 57 227 255 17 18 259 251 187 46 196 77 55 38 132 210 205 193 110 18 25 271 105 181 216 179 112 252 50 255 147 116 82 22 219 47 248 265 86 86 171 93 13 103 266 93 98 25 186 183 86 126 16 110 148 123 94 150 38 217 132 125 9 273 20 30 198 266 178 119 219 2 72 88 131 118 172 145 26 134 40 132 80 107 96 65 161 24 44 191 150 168 41 229 170 140 99 72 43 54 215 42 2 27 186 228 163 29 146 253 147 71 180 119 264 178 249 43 99 117 219 231 170 185 1 249 272 197 214 264 263 171 237 189 6 221 236 97 72 173 152 38 87 34 28 238 241 19 77 10 136 229 255 62 194 162 206 56 45 144 64 24 89 93 53 123 9 228 118 127 243 24 4 72 133 33 120 127 113 200 181 27 101 32 68 213 257 251 43 144 19 122 186 138 184 223 61 142 149 175 107 6 261 81 114 207 193 155 95 202 226 73 180 164 166 81 204 11 98 65 206 101 221 146 19 167 88 41 139 92 235 189 235 45 59 142 104 273 105 51 118 82 67 121 49 203 233 85 34 257 62 64 64 109 11 188 143 111 11 58 45 14 240 201 44 236 52 170 270 197 169 88 86 41 269 190 58 234 92 145 111 155 135 222 243 208 200 266 48 21 122 231 40 87 178 204 141 196 162 251 232 222 99 32 23 37 80 22 174 145 71 36 217 87 223 106 44 151 130 250 180 34 68 258 159 154 272 112 18 70 173 8 136 85 79 159 239 19 207 108 233 112 63 246 76 237 104 84 126 146 208 245 168 225 151 90 230 262 74 48 156 102 39 80 67 76 147 26 4 216 35 35 75 95 13 148 168 270 53 267 185 131 73 95 242 71 265 41 184 268 138 144 104 44 7 228 73 225 66 69 36 272 ^'}},
+ {OUT=>'7F1DE4ECA20362DA624653D225A5B3F7964A9FF2'}],
+ ['203', {IN=> {f=> '588 0 181 44 149 173 150 77 158 36 255 101 135 239 60 148 185 85 94 252 6 4 131 152 15 162 161 150 142 14 193 21 141 3 78 169 44 107 198 31 119 198 73 94 210 31 161 173 192 52 1 163 46 64 20 130 164 226 72 148 227 60 213 210 73 136 185 150 119 133 48 213 168 98 124 227 83 263 79 157 109 90 104 61 201 168 56 149 215 125 196 116 272 111 262 133 67 138 142 248 218 9 183 212 222 8 153 3 120 144 163 65 265 270 4 89 8 172 204 94 18 257 16 89 219 147 216 52 85 113 177 256 154 225 210 115 111 28 108 186 96 209 104 103 176 11 14 109 71 10 87 51 74 105 49 159 258 69 72 190 202 179 171 1 205 21 76 254 197 127 111 70 83 29 54 67 157 67 115 92 103 134 36 2 151 4 47 33 160 246 27 55 96 125 154 141 260 153 195 170 13 247 38 170 55 222 50 128 15 78 211 19 226 156 98 82 252 240 29 12 25 224 199 259 207 212 30 234 8 195 254 239 102 123 28 43 161 108 167 171 235 230 178 118 187 65 242 220 135 5 35 267 143 152 57 137 173 108 102 146 78 188 245 81 72 232 177 22 129 68 168 75 74 82 275 14 174 96 167 129 260 218 220 158 55 180 75 9 57 11 248 134 59 52 20 88 20 214 114 81 264 6 46 106 271 249 122 17 35 33 118 271 15 97 136 269 100 250 49 182 32 107 156 56 107 240 6 238 156 140 57 95 198 96 144 79 115 134 78 146 270 238 114 165 214 137 131 133 90 188 11 56 84 190 137 154 183 235 272 153 237 145 25 205 274 26 109 113 154 206 9 141 237 103 50 86 40 66 253 228 263 271 207 147 5 77 242 155 110 17 269 58 275 37 224 241 251 102 165 3 162 119 175 23 56 126 165 256 112 250 91 157 44 65 223 19 161 131 217 40 43 203 83 179 129 26 193 63 116 122 36 236 7 268 89 242 197 85 136 227 125 238 91 115 69 53 265 228 29 246 50 105 241 209 127 153 45 95 156 121 132 121 48 171 193 255 166 160 120 102 188 53 31 203 148 204 10 68 126 100 231 124 208 158 13 205 63 51 97 155 194 243 124 250 133 132 163 23 14 151 46 22 45 118 37 159 216 94 60 232 135 47 10 110 101 219 189 191 64 43 180 33 34 45 53 12 2 174 54 192 117 26 151 88 273 164 76 273 122 101 261 164 34 22 3 143 194 32 149 131 175 65 31 245 123 47 244 135 258 261 122 59 10 45 76 62 147 258 27 97 71 244 112 208 116 38 86 105 91 134 270 27 139 46 256 70 275 79 199 160 ^'}},
+ {OUT=>'CA0F2B1BFB4469C11ED006A994734F0F2F5EFD17'}],
+ ['204', {IN=> {f=> '594 0 207 56 128 53 49 219 251 17 6 259 247 187 38 188 73 47 26 128 202 197 189 102 18 21 263 97 173 212 179 100 252 46 255 139 104 82 14 211 35 244 257 74 82 163 81 5 95 258 89 86 13 182 179 86 122 16 106 140 119 86 142 34 209 120 121 1 265 12 18 190 266 170 119 215 272 64 80 119 106 160 137 26 122 36 124 80 99 88 57 157 24 44 191 146 156 29 221 166 140 99 68 39 54 207 42 276 23 178 220 151 21 134 245 143 63 180 115 256 174 241 35 95 109 219 231 162 181 1 245 272 193 210 264 255 159 237 185 272 213 228 89 72 161 152 30 87 22 20 234 241 15 77 6 124 229 247 58 186 158 202 48 41 132 52 20 85 93 45 111 5 224 110 119 235 12 4 60 121 21 120 115 113 192 181 15 97 24 64 209 249 251 31 136 11 118 186 138 184 223 61 130 137 175 107 6 253 81 114 207 185 143 83 198 218 73 176 156 158 73 196 11 98 53 198 89 221 146 7 159 88 37 139 84 227 189 231 33 51 134 96 273 93 51 114 78 55 113 49 199 233 77 26 257 54 64 60 101 3 180 135 111 277 58 37 10 232 197 40 232 48 170 262 197 169 84 78 41 261 182 50 234 92 145 107 155 123 214 243 208 200 262 48 21 114 227 40 83 178 200 133 196 154 243 228 218 87 28 23 29 72 18 170 133 67 24 213 79 219 102 32 151 130 246 172 34 60 250 151 150 264 112 14 62 165 274 128 73 67 159 231 19 199 104 225 274 108 55 242 64 229 104 76 126 138 204 241 164 225 139 90 230 262 62 36 144 98 39 68 59 72 147 22 216 23 35 75 91 1 136 160 266 41 267 185 123 65 95 238 71 261 33 180 264 126 144 92 36 273 228 69 217 58 57 28 172 177 42 147 171 148 71 152 36 253 95 129 237 56 142 183 79 90 250 2 2 131 146 13 162 161 146 142 14 191 17 141 277 72 167 40 103 196 25 113 198 69 88 206 27 157 173 192 46 275 157 44 62 16 126 158 222 66 144 227 54 213 208 71 132 181 150 115 127 44 211 164 96 124 223 81 263 77 155 109 84 98 59 201 162 52 149 215 123 194 110 268 105 260 133 61 136 140 248 216 9 183 208 220 2 151 1 116 142 163 61 265 270 87 8 168 204 92 16 255 10 89 215 143 212 50 85 107 175 256 154 223 210 115 107 26 108 184 94 209 100 103 176 7 10 103 67 10 83 49 70 103 47 155 258 69 68 188 202 177 171 277 201 19 70 252 195 125 109 70 83 29 52 67 153 65 109 90 101 132 32 2 145 276 43 33 160 246 23 259 ^'}},
+ {OUT=>'833D63F5C2EA0CD43EC15F2B9DD97FF12B030479'}],
+ ['205', {IN=> {f=> '600 1 87 119 148 132 260 144 189 164 10 247 38 167 55 222 44 125 6 72 211 13 226 153 92 79 246 234 26 6 25 221 193 273 256 201 212 30 228 2 195 254 239 99 114 28 34 158 99 167 168 232 224 172 109 181 65 236 220 129 2 29 264 140 146 57 137 167 102 93 143 78 182 242 78 69 232 177 22 129 68 168 66 74 73 275 5 174 90 164 123 257 218 214 158 52 177 69 48 2 242 125 59 52 11 79 20 214 105 72 258 3 46 106 268 249 113 11 32 30 115 271 15 88 136 269 100 244 40 182 29 98 150 47 104 240 276 235 156 137 54 92 192 96 135 73 109 134 75 137 267 232 111 162 208 134 122 127 87 185 8 53 75 190 128 151 177 235 269 147 234 139 16 205 268 17 103 110 145 206 6 138 231 94 41 80 31 66 253 222 257 265 204 138 5 74 239 146 104 8 266 55 269 34 224 238 248 102 159 3 159 116 169 17 56 120 165 253 109 247 85 157 35 56 220 16 152 128 217 37 37 203 74 173 126 23 193 60 116 122 27 236 7 268 83 242 191 79 133 224 125 238 82 112 60 50 262 225 23 240 50 96 235 203 127 153 45 89 147 121 129 115 39 165 187 249 166 151 111 96 188 53 28 200 148 198 1 65 123 91 228 115 205 155 7 202 63 42 97 152 194 237 118 250 130 132 160 14 11 145 40 16 39 118 37 150 213 94 60 229 132 47 4 110 98 216 186 185 55 43 174 24 25 42 44 12 275 171 45 189 117 20 148 85 270 164 76 267 119 101 261 161 31 13 273 143 191 32 143 125 172 62 31 245 123 44 238 135 252 258 116 56 7 36 73 62 144 255 24 91 62 244 106 202 110 32 77 105 91 128 264 27 136 37 250 64 272 79 199 84 206 53 128 51 47 217 250 17 3 259 246 187 36 186 72 45 23 127 200 195 188 100 18 20 261 95 171 211 179 97 252 45 255 137 101 82 12 209 32 243 255 71 81 161 78 3 93 256 88 83 10 181 178 86 121 16 105 138 118 84 140 33 207 117 120 278 263 10 15 188 266 168 119 214 271 62 78 116 103 157 135 26 119 35 122 80 97 86 55 156 24 44 191 145 153 26 219 165 140 99 67 38 54 205 42 276 22 176 218 148 19 131 243 142 61 180 114 254 173 239 33 94 107 219 231 160 180 1 244 272 192 209 264 253 156 237 184 270 211 226 87 72 158 152 28 87 19 18 233 241 14 77 5 121 229 245 57 184 157 201 46 40 129 49 19 84 93 43 108 4 223 108 117 233 9 4 57 118 18 120 112 113 190 181 12 96 22 63 208 247 251 28 134 9 117 186 138 184 223 61 127 216 ^'}},
+ {OUT=>'14FD356190416C00592B86FF7CA50B622F85593A'}],
+ ['206', {IN=> {f=> '590 1 175 107 6 247 81 114 207 179 134 74 195 212 73 173 150 152 67 190 11 98 44 192 80 221 146 279 153 88 34 139 78 221 189 228 24 45 128 90 273 84 51 111 75 46 107 49 196 233 71 20 257 48 64 57 95 278 174 129 111 271 58 31 7 226 194 37 229 45 170 256 197 169 81 72 41 255 176 44 234 92 145 104 155 114 208 243 208 200 259 48 21 108 224 40 80 178 197 127 196 148 237 225 215 78 25 23 23 66 15 167 124 64 15 210 73 216 99 23 151 130 243 166 34 54 244 145 147 258 112 11 56 159 268 122 64 58 159 225 19 193 101 219 274 105 49 239 55 223 104 70 126 132 201 238 161 225 130 90 230 262 53 27 135 95 39 59 53 69 147 19 278 216 14 35 75 88 273 127 154 263 32 267 185 117 59 95 235 71 258 27 177 261 117 144 83 30 267 228 66 211 52 48 22 172 171 39 144 168 145 62 143 36 250 86 120 234 50 133 180 70 84 247 277 280 131 137 10 162 161 140 142 14 188 11 141 274 63 164 34 97 193 16 104 198 63 79 200 21 151 173 192 37 272 148 41 59 10 120 149 216 57 138 227 45 213 205 68 126 175 150 109 118 38 208 158 93 124 217 78 263 74 152 109 75 89 56 201 153 46 149 215 120 191 101 262 96 257 133 52 133 137 248 213 9 183 202 217 274 148 279 110 139 163 55 265 270 275 84 8 162 204 89 13 252 1 89 209 137 206 47 85 98 172 256 154 220 210 115 101 23 108 181 91 209 94 103 176 1 4 94 61 10 77 46 64 100 44 149 258 69 62 185 202 174 171 277 195 16 61 249 192 122 106 70 83 29 49 67 147 62 100 87 98 129 26 2 136 270 37 33 160 246 17 40 81 115 144 126 260 138 185 160 8 247 38 165 55 222 40 123 68 211 9 226 151 88 77 242 230 24 2 25 219 189 271 254 197 212 30 224 279 195 254 239 97 108 28 28 156 93 167 166 230 220 168 103 177 65 232 220 125 25 262 138 142 57 137 163 98 87 141 78 178 240 76 67 232 177 22 129 68 168 60 74 67 275 280 174 86 162 119 255 218 210 158 50 175 65 275 42 277 238 119 59 52 5 73 20 214 99 66 254 1 46 106 266 249 107 7 30 28 113 271 15 82 136 269 100 240 34 182 27 92 146 41 102 240 272 233 156 135 52 90 188 96 129 69 105 134 73 131 265 228 109 160 204 132 116 123 85 183 6 51 69 190 122 149 173 235 267 143 232 135 10 205 264 11 99 108 139 206 4 136 227 88 35 76 25 66 253 218 253 261 202 132 5 72 237 140 203 ^'}},
+ {OUT=>'4AB6B57EDDEF1CE935622F935C1619AE7C1667D6'}],
+ ['207', {IN=> {f=> '620 0 279 262 51 261 30 224 234 244 102 151 3 155 112 161 9 56 112 165 249 105 243 77 157 23 44 216 12 140 124 217 33 29 203 62 165 122 19 193 56 116 122 15 236 7 268 75 242 183 71 129 220 125 238 70 108 48 46 258 221 15 232 50 84 227 195 127 153 45 81 135 121 125 107 27 157 179 241 166 139 99 88 188 53 24 196 148 190 272 61 119 79 224 103 201 151 282 198 63 30 97 148 194 229 110 250 126 132 156 2 7 137 32 8 31 118 37 138 209 94 60 225 128 47 279 110 94 212 182 177 43 43 166 12 13 38 32 12 271 167 33 185 117 12 144 81 266 164 76 259 115 101 261 157 27 1 265 143 187 32 135 117 168 58 31 245 123 40 230 135 244 254 108 52 3 24 69 62 140 251 20 83 50 244 98 194 102 24 65 105 91 120 256 27 132 25 242 56 268 79 199 84 202 41 128 43 39 209 246 17 274 259 242 187 28 178 68 37 11 123 192 187 184 92 18 16 253 87 163 207 179 85 252 41 255 129 89 82 4 201 20 239 247 59 77 153 66 278 85 248 84 71 281 177 174 86 117 16 101 130 114 76 132 29 199 105 116 274 255 2 3 180 266 160 119 210 267 54 70 104 91 145 127 26 107 31 114 80 89 78 47 152 24 44 191 141 141 14 211 161 140 99 63 34 54 197 42 276 18 168 210 136 11 119 235 138 53 180 110 246 169 231 25 90 99 219 231 152 176 1 240 272 188 205 264 245 144 237 180 262 203 218 79 72 146 152 20 87 7 10 229 241 10 77 1 109 229 237 53 176 153 197 38 36 117 37 15 80 93 35 96 219 100 109 225 280 4 45 106 6 120 100 113 182 181 92 14 59 204 239 251 16 126 1 113 186 138 184 223 61 115 122 175 107 6 243 81 114 207 175 128 68 193 208 73 171 146 148 63 186 11 98 38 188 74 221 146 275 149 88 32 139 74 217 189 226 18 41 124 86 273 78 51 109 73 40 103 49 194 233 67 16 257 44 64 55 91 276 170 125 111 267 58 27 5 222 192 35 227 43 170 252 197 169 79 68 41 251 172 40 234 92 145 102 155 108 204 243 208 200 257 48 21 104 222 40 78 178 195 123 196 144 233 223 213 72 23 23 19 62 13 165 118 62 9 208 69 214 97 17 151 130 241 162 34 50 240 141 145 254 112 9 52 155 264 118 58 52 159 221 19 189 99 215 274 103 45 237 49 219 104 66 126 128 199 236 159 225 124 90 230 262 47 21 129 93 39 53 49 67 147 17 278 216 8 35 75 86 269 121 150 261 26 267 185 113 55 95 233 71 256 23 175 259 111 144 77 26 263 228 64 207 48 42 18 172 167 37 142 166 143 56 137 36 248 80 114 232 46 127 257 ^'}},
+ {OUT=>'B456A6A968ACD66CAA974F96A9A916E700AA3C5D'}],
+ ['208', {IN=> {f=> '605 1 58 76 243 273 280 131 125 6 162 161 132 142 14 184 3 141 270 51 160 26 89 189 4 92 198 55 67 192 13 143 173 192 25 268 136 37 55 2 112 137 208 45 130 227 33 213 201 64 118 167 150 101 106 30 204 150 89 124 209 74 263 70 148 109 63 77 52 201 141 38 149 215 116 187 89 254 84 253 133 40 129 133 248 209 9 183 194 213 266 144 279 102 135 163 47 265 270 271 80 8 154 204 85 9 248 274 89 201 129 198 43 85 86 168 256 154 216 210 115 93 19 108 177 87 209 86 103 176 278 281 82 53 10 69 42 56 96 40 141 258 69 54 181 202 170 171 277 187 12 49 245 188 118 102 70 83 29 45 67 139 58 88 83 94 125 18 2 124 262 29 33 160 246 9 28 69 107 136 114 260 126 177 152 4 247 38 161 55 222 32 119 273 60 211 1 226 147 80 73 234 222 20 279 25 215 181 267 250 189 212 30 216 275 195 254 239 93 96 28 16 152 81 167 162 226 212 160 91 169 65 224 220 117 281 17 258 134 134 57 137 155 90 75 137 78 170 236 72 63 232 177 22 129 68 168 48 74 55 275 272 174 78 158 111 251 218 202 158 46 171 57 267 30 269 230 107 59 52 278 61 20 214 87 54 246 282 46 106 262 249 95 284 26 24 109 271 15 70 136 269 100 232 22 182 23 80 138 29 98 240 264 229 156 131 48 86 180 96 117 61 97 134 69 119 261 220 105 156 196 128 104 115 81 179 2 47 57 190 110 145 165 235 263 135 228 127 283 205 256 284 91 104 127 206 132 219 76 23 68 13 66 253 210 245 253 198 120 5 68 233 128 92 275 260 49 257 28 224 232 242 102 147 3 153 110 157 5 56 108 165 247 103 241 73 157 17 38 214 10 134 122 217 31 25 203 56 161 120 17 193 54 116 122 9 236 7 268 71 242 179 67 127 218 125 238 64 106 42 44 256 219 11 228 50 78 223 191 127 153 45 77 129 121 123 103 21 153 175 237 166 133 93 84 188 53 22 194 148 186 268 59 117 73 222 97 199 149 280 196 63 24 97 146 194 225 106 250 124 132 154 281 5 133 28 4 27 118 37 132 207 94 60 223 126 47 277 110 92 210 180 173 37 43 162 6 7 36 26 12 269 165 27 183 117 8 142 79 264 164 76 255 113 101 261 155 25 280 261 143 185 32 131 113 166 56 31 245 123 38 226 135 240 252 104 50 1 18 67 62 138 249 18 79 44 244 94 190 98 20 59 105 91 116 252 27 130 19 238 52 266 79 199 84 200 35 128 39 35 205 244 17 270 259 240 187 24 174 66 33 5 121 188 183 182 88 18 14 249 83 159 205 179 79 252 186 ^'}},
+ {OUT=>'FD1C257FE046B2A27E2F0CD55ED2DECA845F01D7'}],
+ ['209', {IN=> {f=> '615 0 255 121 77 82 283 193 8 235 239 47 73 145 54 274 77 240 80 59 273 173 170 86 113 16 97 122 110 68 124 25 191 93 112 270 247 281 278 172 266 152 119 206 263 46 62 92 79 133 119 26 95 27 106 80 81 70 39 148 24 44 191 137 129 2 203 157 140 99 59 30 54 189 42 276 14 160 202 124 3 107 227 134 45 180 106 238 165 223 17 86 91 219 231 144 172 1 236 272 184 201 264 237 132 237 176 254 195 210 71 72 134 152 12 87 282 2 225 241 6 77 284 97 229 229 49 168 149 193 30 32 105 25 11 76 93 27 84 283 215 92 101 217 272 4 33 94 281 120 88 113 174 181 275 88 6 55 200 231 251 4 118 280 109 186 138 184 223 61 103 110 175 107 6 235 81 114 207 167 116 56 189 200 73 167 138 140 55 178 11 98 26 180 62 221 146 267 141 88 28 139 66 209 189 222 6 33 116 78 273 66 51 105 69 28 95 49 190 233 59 8 257 36 64 51 83 272 162 117 111 259 58 19 1 214 188 31 223 39 170 244 197 169 75 60 41 243 164 32 234 92 145 98 155 96 196 243 208 200 253 48 21 96 218 40 74 178 191 115 196 136 225 219 209 60 19 23 11 54 9 161 106 58 284 204 61 210 93 5 151 130 237 154 34 42 232 133 141 246 112 5 44 147 256 110 46 40 159 213 19 181 95 207 274 99 37 233 37 211 104 58 126 120 195 232 155 225 112 90 230 262 35 9 117 89 39 41 41 63 147 13 278 216 283 35 75 82 261 109 142 257 14 267 185 105 47 95 229 71 252 15 171 255 99 144 65 18 255 228 60 199 40 30 10 172 159 33 138 162 139 44 125 36 244 68 102 228 38 115 174 52 72 241 271 280 131 119 4 162 161 128 142 14 182 286 141 268 45 158 22 85 187 285 86 198 51 61 188 9 139 173 192 19 266 130 35 53 285 108 131 204 39 126 227 27 213 199 62 114 163 150 97 100 26 202 146 87 124 205 72 263 68 146 109 57 71 50 201 135 34 149 215 114 185 83 250 78 251 133 34 127 131 248 207 9 183 190 211 262 142 279 98 133 163 43 265 270 269 78 8 150 204 83 7 246 270 89 197 125 194 41 85 80 166 256 154 214 210 115 89 17 108 175 85 209 82 103 176 276 279 76 49 10 65 40 52 94 38 137 258 69 50 179 202 168 171 277 183 10 43 243 186 116 100 70 83 29 43 67 135 56 82 81 92 123 14 2 118 258 25 33 160 246 5 22 63 103 132 108 260 120 173 148 2 247 38 159 55 222 28 117 269 56 211 284 226 145 76 71 230 218 18 277 25 213 177 265 248 185 212 30 212 273 195 254 239 91 90 28 10 150 75 167 160 224 175 ^'}},
+ {OUT=>'66E0D01780F1063E2929EAAD74826BC64060E38C'}],
+ ['210', {IN=> {f=> '613 0 152 79 161 65 216 220 109 281 9 254 130 126 57 137 147 82 63 133 78 162 232 68 59 232 177 22 129 68 168 36 74 43 275 264 174 70 154 103 247 218 194 158 42 167 49 259 18 261 222 95 59 52 270 49 20 214 75 42 238 282 46 106 258 249 83 280 22 20 105 271 15 58 136 269 100 224 10 182 19 68 130 17 94 240 256 225 156 127 44 82 172 96 105 53 89 134 65 107 257 212 101 152 188 124 92 107 77 175 287 43 45 190 98 141 157 235 259 127 224 119 275 205 248 276 83 100 115 206 285 128 211 64 11 60 1 66 253 202 237 245 194 108 5 64 229 116 84 267 256 45 249 24 224 228 238 102 139 3 149 106 149 286 56 100 165 243 99 237 65 157 5 26 210 6 122 118 217 27 17 203 44 153 116 13 193 50 116 122 286 236 7 268 63 242 171 59 123 214 125 238 52 102 30 40 252 215 3 220 50 66 215 183 127 153 45 69 117 121 119 95 9 145 167 229 166 121 81 76 188 53 18 190 148 178 260 55 113 61 218 85 195 145 276 192 63 12 97 142 194 217 98 250 120 132 150 273 1 125 20 285 19 118 37 120 203 94 60 219 122 47 273 110 88 206 176 165 25 43 154 283 284 32 14 12 265 161 15 179 117 138 75 260 164 76 247 109 101 261 151 21 272 253 143 181 32 123 105 162 52 31 245 123 34 218 135 232 248 96 46 286 6 63 62 134 245 14 71 32 244 86 182 90 12 47 105 91 108 244 27 126 7 230 44 262 79 199 84 196 23 128 31 27 197 240 17 262 259 236 187 16 166 62 25 282 117 180 175 178 80 18 10 241 75 151 201 179 67 252 35 255 117 71 82 281 189 2 233 235 41 71 141 48 272 73 236 78 53 269 171 168 86 111 16 95 118 108 64 120 23 187 87 110 268 243 279 274 168 266 148 119 204 261 42 58 86 73 127 115 26 89 25 102 80 77 66 35 146 24 44 191 135 123 285 199 155 140 99 57 28 54 185 42 276 12 156 198 118 288 101 223 132 41 180 104 234 163 219 13 84 87 219 231 140 170 1 234 272 182 199 264 233 126 237 174 250 191 206 67 72 128 152 8 87 278 287 223 241 4 77 284 91 229 225 47 164 147 191 26 30 99 19 9 74 93 23 78 283 213 88 97 213 268 4 27 88 277 120 82 113 170 181 271 86 2 53 198 227 251 287 114 278 107 186 138 184 223 61 97 104 175 107 6 231 81 114 207 163 110 50 187 196 73 165 134 136 51 174 11 98 20 176 56 221 146 263 137 88 26 139 62 205 189 220 29 112 74 273 60 51 103 67 22 91 49 188 233 55 4 257 32 64 49 79 270 158 113 111 255 58 15 288 210 213 ^'}},
+ {OUT=>'A8478DF406F179FD4EF97F4574D7F99EA1CE9EB8'}],
+ ['211', {IN=> {f=> '624 1 28 220 36 170 238 197 169 72 54 41 237 158 26 234 92 145 95 155 87 190 243 208 200 250 48 21 90 215 40 71 178 188 109 196 130 219 216 206 51 16 23 5 48 6 158 97 55 278 201 55 207 90 286 151 130 234 148 34 36 226 127 138 240 112 2 38 141 250 104 37 31 159 207 19 175 92 201 274 96 31 230 28 205 104 52 126 114 192 229 152 225 103 90 230 262 26 108 86 39 32 35 60 147 10 278 216 277 35 75 79 255 100 136 254 5 267 185 99 41 95 226 71 249 9 168 252 90 144 56 12 249 228 57 193 34 21 4 172 153 30 135 159 136 35 116 36 241 59 93 225 32 106 171 43 66 238 268 280 131 110 1 162 161 122 142 14 179 283 141 265 36 155 16 79 184 279 77 198 45 52 182 3 133 173 192 10 263 121 32 50 282 102 122 198 30 120 227 18 213 196 59 108 157 150 91 91 20 199 140 84 124 199 69 263 65 143 109 48 62 47 201 126 28 149 215 111 182 74 244 69 248 133 25 124 128 248 204 9 183 184 208 256 139 279 92 130 163 37 265 270 266 75 8 144 204 80 4 243 264 89 191 119 188 38 85 71 163 256 154 211 210 115 83 14 108 172 82 209 76 103 176 273 276 67 43 10 59 37 46 91 35 131 258 69 44 176 202 165 171 277 177 7 34 240 183 113 97 70 83 29 40 67 129 53 73 78 89 120 8 2 109 252 19 33 160 246 289 13 54 97 126 99 260 111 167 142 289 247 38 156 55 222 22 114 263 50 211 281 226 142 70 68 224 212 15 274 25 210 171 262 245 179 212 30 206 270 195 254 239 88 81 28 1 147 66 167 157 221 202 150 76 159 65 214 220 107 281 7 253 129 124 57 137 145 80 60 132 78 160 231 67 58 232 177 22 129 68 168 33 74 40 275 262 174 68 153 101 246 218 192 158 41 166 47 257 15 259 220 92 59 52 268 46 20 214 72 39 236 282 46 106 257 249 80 279 21 19 104 271 15 55 136 269 100 222 7 182 18 65 128 14 93 240 254 224 156 126 43 81 170 96 102 51 87 134 64 104 256 210 100 151 186 123 89 105 76 174 287 42 42 190 95 140 155 235 258 125 223 117 273 205 246 274 81 99 112 206 285 127 209 61 8 58 288 66 253 200 235 243 193 105 5 63 228 113 82 265 255 44 247 23 224 227 237 102 137 3 148 105 147 285 56 98 165 242 98 236 63 157 2 23 209 5 119 117 217 26 15 203 41 151 115 12 193 49 116 122 284 236 7 268 61 242 169 57 122 213 125 238 49 101 27 39 251 214 1 218 50 63 213 181 127 153 45 67 114 121 118 93 6 143 165 227 166 118 78 74 188 53 17 189 148 176 258 54 112 58 217 82 194 144 275 191 141 ^'}},
+ {OUT=>'248E58CF09A372114FC2F93B09C5FC14F3D0059E'}],
+ ['212', {IN=> {f=> '628 1 3 97 139 194 211 92 250 117 132 147 267 290 119 14 282 13 118 37 111 200 94 60 216 119 47 270 110 85 203 173 159 16 43 148 277 278 29 5 12 262 158 6 176 117 286 135 72 257 164 76 241 106 101 261 148 18 266 247 143 178 32 117 99 159 49 31 245 123 31 212 135 226 245 90 43 286 289 60 62 131 242 11 65 23 244 80 176 84 6 38 105 91 102 238 27 123 290 224 38 259 79 199 84 193 14 128 25 21 191 237 17 256 259 233 187 10 160 59 19 276 114 174 169 175 74 18 7 235 69 145 198 179 58 252 32 255 111 62 82 278 183 285 230 229 32 68 135 39 269 67 230 75 44 263 168 165 86 108 16 92 112 105 58 114 20 181 78 107 265 237 276 268 162 266 142 119 201 258 36 52 77 64 118 109 26 80 22 96 80 71 60 29 143 24 44 191 132 114 279 193 152 140 99 54 25 54 179 42 276 9 150 192 109 285 92 217 129 35 180 101 228 160 213 7 81 81 219 231 134 167 1 231 272 179 196 264 227 117 237 171 244 185 200 61 72 119 152 2 87 272 284 220 241 1 77 284 82 229 219 44 158 144 188 20 27 90 10 6 71 93 17 69 283 210 82 91 207 262 4 18 79 271 120 73 113 164 181 265 83 288 50 195 221 251 281 108 275 104 186 138 184 223 61 88 95 175 107 6 225 81 114 207 157 101 41 184 190 73 162 128 130 45 168 11 98 11 170 47 221 146 257 131 88 23 139 56 199 189 217 283 23 106 68 273 51 51 100 64 13 85 49 185 233 49 290 257 26 64 46 73 267 152 107 111 249 58 9 288 204 183 26 218 34 170 234 197 169 70 50 41 233 154 22 234 92 145 93 155 81 186 243 208 200 248 48 21 86 213 40 69 178 186 105 196 126 215 214 204 45 14 23 1 44 4 156 91 53 274 199 51 205 88 282 151 130 232 144 34 32 222 123 136 236 112 34 137 246 100 31 25 159 203 19 171 90 197 274 94 27 228 22 201 104 48 126 110 190 227 150 225 97 90 230 262 20 286 102 84 39 26 31 58 147 8 278 216 273 35 75 77 251 94 132 252 291 267 185 95 37 95 224 71 247 5 166 250 84 144 50 8 245 228 55 189 30 15 172 149 28 133 157 134 29 110 36 239 53 87 223 28 100 169 37 62 236 266 280 131 104 291 162 161 118 142 14 177 281 141 263 30 153 12 75 182 275 71 198 41 46 178 291 129 173 192 4 261 115 30 48 280 98 116 194 24 116 227 12 213 194 57 104 153 150 87 85 16 197 136 82 124 195 67 263 63 141 109 42 56 45 201 120 24 149 215 109 180 68 240 63 246 133 19 122 126 248 202 9 183 180 206 252 137 279 88 128 163 33 265 270 264 73 8 140 204 78 2 241 76 ^'}},
+ {OUT=>'F15767DE91796A6816977EFA4FCED4B7FD9B8A57'}],
+ ['213', {IN=> {f=> '622 0 89 183 111 180 34 85 59 159 256 154 207 210 115 75 10 108 168 78 209 68 103 176 269 272 55 35 10 51 33 38 87 31 123 258 69 36 172 202 161 171 277 169 3 22 236 179 109 93 70 83 29 36 67 121 49 61 74 85 116 2 97 244 11 33 160 246 285 1 42 89 118 87 260 99 159 134 289 247 38 152 55 222 14 110 255 42 211 277 226 138 62 64 216 204 11 270 25 206 163 258 241 171 212 30 198 266 195 254 239 84 69 28 283 143 54 167 153 217 194 142 64 151 65 206 220 99 281 293 249 125 116 57 137 137 72 48 128 78 152 227 63 54 232 177 22 129 68 168 21 74 28 275 254 174 60 149 93 242 218 184 158 37 162 39 249 3 251 212 80 59 52 260 34 20 214 60 27 228 282 46 106 253 249 68 275 17 15 100 271 15 43 136 269 100 214 289 182 14 53 120 2 89 240 246 220 156 122 39 77 162 96 90 43 79 134 60 92 252 202 96 147 178 119 77 97 72 170 287 38 30 190 83 136 147 235 254 117 219 109 265 205 238 266 73 95 100 206 285 123 201 49 290 50 280 66 253 192 227 235 189 93 5 59 224 101 74 257 251 40 239 19 224 223 233 102 129 3 144 101 139 281 56 90 165 238 94 232 55 157 284 11 205 1 107 113 217 22 7 203 29 143 111 8 193 45 116 122 276 236 7 268 53 242 161 49 118 209 125 238 37 97 15 35 247 210 287 210 50 51 205 173 127 153 45 59 102 121 114 85 288 135 157 219 166 106 66 66 188 53 13 185 148 168 250 50 108 46 213 70 190 140 271 187 63 291 97 137 194 207 88 250 115 132 145 263 290 115 10 280 9 118 37 105 198 94 60 214 117 47 268 110 83 201 171 155 10 43 144 273 274 27 293 12 260 156 174 117 284 133 70 255 164 76 237 104 101 261 146 16 262 243 143 176 32 113 95 157 47 31 245 123 29 208 135 222 243 86 41 286 285 58 62 129 240 9 61 17 244 76 172 80 2 32 105 91 98 234 27 121 286 220 34 257 79 199 84 191 8 128 21 17 187 235 17 252 259 231 187 6 156 57 15 272 112 170 165 173 70 18 5 231 65 141 196 179 52 252 30 255 107 56 82 276 179 281 228 225 26 66 131 33 267 63 226 73 38 259 166 163 86 106 16 90 108 103 54 110 18 177 72 105 263 233 274 264 158 266 138 119 199 256 32 48 71 58 112 105 26 74 20 92 80 67 56 25 141 24 44 191 130 108 275 189 150 140 99 52 23 54 175 42 276 7 146 188 103 283 86 213 127 31 180 99 224 158 209 3 79 77 219 231 130 165 1 229 272 177 194 264 223 111 237 169 240 181 196 57 72 113 152 292 87 268 282 218 241 293 77 284 76 229 80 ^'}},
+ {OUT=>'36A6BC5E680E15675D9696338C88B36248BBBAF4'}],
+ ['214', {IN=> {f=> '635 1 40 150 140 184 12 23 78 294 2 67 93 9 57 283 206 74 83 199 254 4 6 67 263 120 61 113 156 181 257 79 284 46 191 213 251 273 100 271 100 186 138 184 223 61 76 83 175 107 6 217 81 114 207 149 89 29 180 182 73 158 120 122 37 160 11 98 295 162 35 221 146 249 123 88 19 139 48 191 189 213 275 15 98 60 273 39 51 96 60 1 77 49 181 233 41 286 257 18 64 42 65 263 144 99 111 241 58 1 288 196 179 22 214 30 170 226 197 169 66 42 41 225 146 14 234 92 145 89 155 69 178 243 208 200 244 48 21 78 209 40 65 178 182 97 196 118 207 210 200 33 10 23 289 36 152 79 49 266 195 43 201 84 274 151 130 228 136 34 24 214 115 132 228 112 292 26 129 238 92 19 13 159 195 19 163 86 189 274 90 19 224 10 193 104 40 126 102 186 223 146 225 85 90 230 262 8 278 90 80 39 14 23 54 147 4 278 216 265 35 75 73 243 82 124 248 283 267 185 87 29 95 220 71 243 293 162 246 72 144 38 237 228 51 181 22 3 288 172 141 24 129 153 130 17 98 36 235 41 75 219 20 88 165 25 54 232 262 280 131 92 291 162 161 110 142 14 173 277 141 259 18 149 4 67 178 267 59 198 33 34 170 287 121 173 192 288 257 103 26 44 276 90 104 186 12 108 227 213 190 53 96 145 150 79 73 8 193 128 78 124 187 63 263 59 137 109 30 44 41 201 108 16 149 215 105 176 56 232 51 242 133 7 118 122 248 198 9 183 172 202 244 133 279 80 124 163 25 265 270 260 69 8 132 204 74 294 237 252 89 179 107 176 32 85 53 157 256 154 205 210 115 71 8 108 166 76 209 64 103 176 267 270 49 31 10 47 31 34 85 29 119 258 69 32 170 202 159 171 277 165 1 16 234 177 107 91 70 83 29 34 67 117 47 55 72 83 114 292 2 91 240 7 33 160 246 283 291 36 85 114 81 260 93 155 130 289 247 38 150 55 222 10 108 251 38 211 275 226 136 58 62 212 200 9 268 25 204 159 256 239 167 212 30 194 264 195 254 239 82 63 28 279 141 48 167 151 215 190 138 58 147 65 202 220 95 281 291 247 123 112 57 137 133 68 42 126 78 148 225 61 52 232 177 22 129 68 168 15 74 22 275 250 174 56 147 89 240 218 180 158 35 160 35 245 293 247 208 74 59 52 256 28 20 214 54 21 224 282 46 106 251 249 62 273 15 13 98 271 15 37 136 269 100 210 285 182 12 47 116 292 87 240 242 218 156 120 37 75 158 96 84 39 75 134 58 86 250 198 94 145 174 117 71 93 70 168 287 36 24 190 77 134 143 235 252 113 217 105 261 205 234 262 69 93 94 206 285 121 197 43 286 46 276 66 253 188 223 231 187 87 5 57 222 95 285 ^'}},
+ {OUT=>'4DEA6251B2A6DF017A8093AB066EE3863A4EC369'}],
+ ['215', {IN=> {f=> '636 0 251 248 37 233 16 224 220 230 102 123 3 141 98 133 278 56 84 165 235 91 229 49 157 278 2 202 295 98 110 217 19 1 203 20 137 108 5 193 42 116 122 270 236 7 268 47 242 155 43 115 206 125 238 28 94 6 32 244 207 284 204 50 42 199 167 127 153 45 53 93 121 111 79 282 129 151 213 166 97 57 60 188 53 10 182 148 162 244 47 105 37 210 61 187 137 268 184 63 285 97 134 194 201 82 250 112 132 142 257 290 109 4 277 3 118 37 96 195 94 60 211 114 47 265 110 80 198 168 149 1 43 138 267 268 24 287 12 257 153 288 171 117 281 130 67 252 164 76 231 101 101 261 143 13 256 237 143 173 32 107 89 154 44 31 245 123 26 202 135 216 240 80 38 286 279 55 62 126 237 6 55 8 244 70 166 74 293 23 105 91 92 228 27 118 280 214 28 254 79 199 84 188 296 128 15 11 181 232 17 246 259 228 187 150 54 9 266 109 164 159 170 64 18 2 225 59 135 193 179 43 252 27 255 101 47 82 273 173 275 225 219 17 63 125 24 264 57 220 70 29 253 163 160 86 103 16 87 102 100 48 104 15 171 63 102 260 227 271 258 152 266 132 119 196 253 26 42 62 49 103 99 26 65 17 86 80 61 50 19 138 24 44 191 127 99 269 183 147 140 99 49 20 54 169 42 276 4 140 182 94 280 77 207 124 25 180 96 218 155 203 294 76 71 219 231 124 162 1 226 272 174 191 264 217 102 237 166 234 175 190 51 72 104 152 289 87 262 279 215 241 293 77 284 67 229 209 39 148 139 183 10 22 75 292 1 66 93 7 54 283 205 72 81 197 252 4 3 64 261 120 58 113 154 181 255 78 283 45 190 211 251 271 98 270 99 186 138 184 223 61 73 80 175 107 6 215 81 114 207 147 86 26 179 180 73 157 118 120 35 158 11 98 293 160 32 221 146 247 121 88 18 139 46 189 189 212 273 13 96 58 273 36 51 95 59 295 75 49 180 233 39 285 257 16 64 41 63 262 142 97 111 239 58 296 288 194 178 21 213 29 170 224 197 169 65 40 41 223 144 12 234 92 145 88 155 66 176 243 208 200 243 48 21 76 208 40 64 178 181 95 196 116 205 209 199 30 9 23 288 34 296 151 76 48 264 194 41 200 83 272 151 130 227 134 34 22 212 113 131 226 112 292 24 127 236 90 16 10 159 193 19 161 85 187 274 89 17 223 7 191 104 38 126 100 185 222 145 225 82 90 230 262 5 276 87 79 39 11 21 53 147 3 278 216 263 35 75 72 241 79 122 247 281 267 185 85 27 95 219 71 242 292 161 245 69 144 35 295 235 228 50 179 20 287 172 139 23 128 152 129 14 95 36 234 38 72 218 18 85 164 22 52 231 261 280 131 89 291 162 161 108 142 14 172 276 91 ^'}},
+ {OUT=>'D30E70E357D57E3D82CA554B8A3D58DFF528FA94'}],
+ ['216', {IN=> {f=> '635 1 256 9 146 297 61 175 261 50 198 27 25 164 284 115 173 192 282 254 94 23 41 273 84 95 180 3 102 227 290 213 187 50 90 139 150 73 64 2 190 122 75 124 181 60 263 56 134 109 21 35 38 201 99 10 149 215 102 173 47 226 42 239 133 297 115 119 248 195 9 183 166 199 238 130 279 74 121 163 19 265 270 257 66 8 126 204 71 294 234 246 89 173 101 170 29 85 44 154 256 154 202 210 115 65 5 108 163 73 209 58 103 176 264 267 40 25 10 41 28 28 82 26 113 258 69 26 167 202 156 171 277 159 297 7 231 174 104 88 70 83 29 31 67 111 44 46 69 80 111 289 2 82 234 1 33 160 246 280 285 27 79 108 72 260 84 149 124 289 247 38 147 55 222 4 105 245 32 211 272 226 133 52 59 206 194 6 265 25 201 153 253 236 161 212 30 188 261 195 254 239 79 54 28 273 138 39 167 148 212 184 132 49 141 65 196 220 89 281 288 244 120 106 57 137 127 62 33 123 78 142 222 58 49 232 177 22 129 68 168 6 74 13 275 244 174 50 144 83 237 218 174 158 32 157 29 239 287 241 202 65 59 52 250 19 20 214 45 12 218 282 46 106 248 249 53 270 12 10 95 271 15 28 136 269 100 204 279 182 9 38 110 286 84 240 236 215 156 117 34 72 152 96 75 33 69 134 55 77 247 192 91 142 168 114 62 87 67 165 287 33 15 190 68 131 137 235 249 107 214 99 255 205 228 256 63 90 85 206 285 118 191 34 280 40 270 66 253 182 217 225 184 78 5 54 219 86 64 247 246 35 229 14 224 218 228 102 119 3 139 96 129 276 56 80 165 233 89 227 45 157 274 295 200 295 92 108 217 17 296 203 14 133 106 3 193 40 116 122 266 236 7 268 43 242 151 39 113 204 125 238 22 92 30 242 205 282 200 50 36 195 163 127 153 45 49 87 121 109 75 278 125 147 209 166 91 51 56 188 53 8 180 148 158 240 45 103 31 208 55 185 135 266 182 63 281 97 132 194 197 78 250 110 132 140 253 290 105 275 298 118 37 90 193 94 60 209 112 47 263 110 78 196 166 145 294 43 134 263 264 22 283 12 255 151 284 169 117 279 128 65 250 164 76 227 99 101 261 141 11 252 233 143 171 32 103 85 152 42 31 245 123 24 198 135 212 238 76 36 286 275 53 62 124 235 4 51 2 244 66 162 70 291 17 105 91 88 224 27 116 276 210 24 252 79 199 84 186 292 128 11 7 177 230 17 242 259 226 187 295 146 52 5 262 107 160 155 168 60 18 221 55 131 191 179 37 252 25 255 97 41 82 271 169 271 223 215 11 61 121 18 262 53 216 68 23 249 161 158 86 101 16 85 98 98 44 100 13 167 57 100 258 223 269 254 148 266 128 119 194 251 22 38 56 43 275 ^'}},
+ {OUT=>'70CA84D827F7FD61446233F88CF2F990B0F3E2AA'}],
+ ['217', {IN=> {f=> '642 0 91 26 53 13 78 80 53 42 11 134 24 44 191 123 87 261 175 143 140 99 45 16 54 161 42 276 132 174 82 276 65 199 120 17 180 92 210 151 195 290 72 63 219 231 116 158 1 222 272 170 187 264 209 90 237 162 226 167 182 43 72 92 152 285 87 254 275 211 241 293 77 284 55 229 201 35 140 135 179 2 18 63 284 298 62 93 300 42 283 201 64 73 189 244 4 292 52 253 120 46 113 146 181 247 74 279 41 186 203 251 263 90 266 95 186 138 184 223 61 61 68 175 107 6 207 81 114 207 139 74 14 175 172 73 153 110 112 27 150 11 98 285 152 20 221 146 239 113 88 14 139 38 181 189 208 265 5 88 50 273 24 51 91 55 287 67 49 176 233 31 281 257 8 64 37 55 258 134 89 111 231 58 292 288 186 174 17 209 25 170 216 197 169 61 32 41 215 136 4 234 92 145 84 155 54 168 243 208 200 239 48 21 68 204 40 60 178 177 87 196 108 197 205 195 18 5 23 284 26 296 147 64 44 256 190 33 196 79 264 151 130 223 126 34 14 204 105 127 218 112 292 16 119 228 82 4 299 159 185 19 153 81 179 274 85 9 219 296 183 104 30 126 92 181 218 141 225 70 90 230 262 294 268 75 75 39 300 13 49 147 300 278 216 255 35 75 68 233 67 114 243 273 267 185 77 19 95 215 71 238 288 157 241 57 144 23 291 227 228 46 171 12 289 283 172 131 19 124 148 125 2 83 36 230 26 60 214 10 73 160 10 44 227 257 280 131 77 291 162 161 100 142 14 168 272 141 254 3 144 295 57 173 257 44 198 23 19 160 282 111 173 192 278 252 88 21 39 271 80 89 176 298 98 227 286 213 185 48 86 135 150 69 58 299 188 118 73 124 177 58 263 54 132 109 15 29 36 201 93 6 149 215 100 171 41 222 36 237 133 293 113 117 248 193 9 183 162 197 234 128 279 70 119 163 15 265 270 255 64 8 122 204 69 294 232 242 89 169 97 166 27 85 38 152 256 154 200 210 115 61 3 108 161 71 209 54 103 176 262 265 34 21 10 37 26 24 80 24 109 258 69 22 165 202 154 171 277 155 297 1 229 172 102 86 70 83 29 29 67 107 42 40 67 78 109 287 2 76 230 298 33 160 246 278 281 21 75 104 66 260 78 145 120 289 247 38 145 55 222 103 241 28 211 270 226 131 48 57 202 190 4 263 25 199 149 251 234 157 212 30 184 259 195 254 239 77 48 28 269 136 33 167 146 210 180 128 43 137 65 192 220 85 281 286 242 118 102 57 137 123 58 27 121 78 138 220 56 47 232 177 22 129 68 168 74 7 275 240 174 46 142 79 235 218 170 158 30 155 25 235 283 237 198 59 59 52 246 13 20 214 39 6 214 282 46 106 246 249 47 268 10 8 93 271 15 22 136 269 100 200 275 42 ^'}},
+ {OUT=>'8D500C9CFDE0288530A2106B70BED39326C52C3C'}],
+ ['218', {IN=> {f=> '644 0 6 29 104 280 81 240 230 212 156 114 31 69 146 96 66 27 63 134 52 68 244 186 88 139 162 111 53 81 64 162 287 30 6 190 59 128 131 235 246 101 211 93 249 205 222 250 57 87 76 206 285 115 185 25 274 34 264 66 253 176 211 219 181 69 5 51 216 77 58 241 243 32 223 11 224 215 225 102 113 3 136 93 123 273 56 74 165 230 86 224 39 157 268 289 197 295 83 105 217 14 293 203 5 127 103 193 37 116 122 260 236 7 268 37 242 145 33 110 201 125 238 13 89 293 27 239 202 279 194 50 27 189 157 127 153 45 43 78 121 106 69 272 119 141 203 166 82 42 50 188 53 5 177 148 152 234 42 100 22 205 46 182 132 263 179 63 275 97 129 194 191 72 250 107 132 137 247 290 99 296 272 295 118 37 81 190 94 60 206 109 47 260 110 75 193 163 139 288 43 128 257 258 19 277 12 252 148 278 166 117 276 125 62 247 164 76 221 96 101 261 138 8 246 227 143 168 32 97 79 149 39 31 245 123 21 192 135 206 235 70 33 286 269 50 62 121 232 1 45 295 244 60 156 64 288 8 105 91 82 218 27 113 270 204 18 249 79 199 84 183 286 128 5 1 171 227 17 236 259 223 187 292 140 49 301 256 104 154 149 165 54 18 299 215 49 125 188 179 28 252 22 255 91 32 82 268 163 265 220 209 2 58 115 9 259 47 210 65 14 243 158 155 86 98 16 82 92 95 38 94 10 161 48 97 255 217 266 248 142 266 122 119 191 248 16 32 47 34 88 89 26 50 12 76 80 51 40 9 133 24 44 191 122 84 259 173 142 140 99 44 15 54 159 42 276 301 130 172 79 275 62 197 119 15 180 91 208 150 193 289 71 61 219 231 114 157 1 221 272 169 186 264 207 87 237 161 224 165 180 41 72 89 152 284 87 252 274 210 241 293 77 284 52 229 199 34 138 134 178 17 60 282 298 61 93 299 39 283 200 62 71 187 242 4 290 49 251 120 43 113 144 181 245 73 278 40 185 201 251 261 88 265 94 186 138 184 223 61 58 65 175 107 6 205 81 114 207 137 71 11 174 170 73 152 108 110 25 148 11 98 283 150 17 221 146 237 111 88 13 139 36 179 189 207 263 3 86 48 273 21 51 90 54 285 65 49 175 233 29 280 257 6 64 36 53 257 132 87 111 229 58 291 288 184 173 16 208 24 170 214 197 169 60 30 41 213 134 2 234 92 145 83 155 51 166 243 208 200 238 48 21 66 203 40 59 178 176 85 196 106 195 204 194 15 4 23 283 24 296 146 61 43 254 189 31 195 78 262 151 130 222 124 34 12 202 103 126 216 112 292 14 117 226 80 1 297 159 183 19 151 80 177 274 84 7 218 294 181 104 28 126 90 180 217 140 225 67 90 230 262 292 266 72 74 39 298 11 48 147 300 278 216 253 265 ^'}},
+ {OUT=>'F3D4D139EDFC24596377BC97A96FB7621F27FFC7'}],
+ ['219', {IN=> {f=> '638 1 75 65 227 58 108 240 267 267 185 71 13 95 212 71 235 285 154 238 48 144 14 288 221 228 43 165 6 283 280 172 125 16 121 145 122 297 74 36 227 17 51 211 4 64 157 1 38 224 254 280 131 68 291 162 161 94 142 14 165 269 141 251 298 141 292 51 170 251 35 198 17 10 154 279 105 173 192 272 249 79 18 36 268 74 80 170 292 92 227 280 213 182 45 80 129 150 63 49 296 185 112 70 124 171 55 263 51 129 109 6 20 33 201 84 149 215 97 168 32 216 27 234 133 287 110 114 248 190 9 183 156 194 228 125 279 64 116 163 9 265 270 252 61 8 116 204 66 294 229 236 89 163 91 160 24 85 29 149 256 154 197 210 115 55 108 158 68 209 48 103 176 259 262 25 15 10 31 23 18 77 21 103 258 69 16 162 202 151 171 277 149 297 296 226 169 99 83 70 83 29 26 67 101 39 31 64 75 106 284 2 67 224 295 33 160 246 275 275 12 69 98 57 260 69 139 114 289 247 38 142 55 222 298 100 235 22 211 267 226 128 42 54 196 184 1 260 25 196 143 248 231 151 212 30 178 256 195 254 239 74 39 28 263 133 24 167 143 207 174 122 34 131 65 186 220 79 281 283 239 115 96 57 137 117 52 18 118 78 132 217 53 44 232 177 22 129 68 168 295 74 302 275 234 174 40 139 73 232 218 164 158 27 152 19 229 277 231 192 50 59 52 240 4 20 214 30 301 208 282 46 106 243 249 38 265 7 5 90 271 15 13 136 269 100 194 269 182 4 23 100 276 79 240 226 210 156 112 29 67 142 96 60 23 59 134 50 62 242 182 86 137 158 109 47 77 62 160 287 28 190 53 126 127 235 244 97 209 89 245 205 218 246 53 85 70 206 285 113 181 19 270 30 260 66 253 172 207 215 179 63 5 49 214 71 54 237 241 30 219 9 224 213 223 102 109 3 134 91 119 271 56 70 165 228 84 222 35 157 264 285 195 295 77 103 217 12 291 203 303 123 101 302 193 35 116 122 256 236 7 268 33 242 141 29 108 199 125 238 7 87 289 25 237 200 277 190 50 21 185 153 127 153 45 39 72 121 104 65 268 115 137 199 166 76 36 46 188 53 3 175 148 148 230 40 98 16 203 40 180 130 261 177 63 271 97 127 194 187 68 250 105 132 135 243 290 95 294 270 293 118 37 75 188 94 60 204 107 47 258 110 73 191 161 135 284 43 124 253 254 17 273 12 250 146 274 164 117 274 123 60 245 164 76 217 94 101 261 136 6 242 223 143 166 32 93 75 147 37 31 245 123 19 188 135 202 233 66 31 286 265 48 62 119 230 303 41 291 244 56 152 60 286 2 105 91 78 214 27 111 266 200 14 247 79 199 84 181 282 128 1 301 167 225 17 232 259 221 187 290 136 47 299 252 102 150 145 163 157 ^'}},
+ {OUT=>'5509BAFFAC6D507860CEFC5AB5832CB63CD4B687'}],
+ ['220', {IN=> {f=> '653 0 18 299 207 41 117 184 179 16 252 18 255 83 20 82 264 155 257 216 201 296 54 107 303 255 39 202 61 2 235 154 151 86 94 16 78 84 91 30 86 6 153 36 93 251 209 262 240 134 266 114 119 187 244 8 24 35 22 76 81 26 38 8 68 80 43 32 1 129 24 44 191 118 72 251 165 138 140 99 40 11 54 151 42 276 301 122 164 67 271 50 189 115 7 180 87 200 146 185 285 67 53 219 231 106 153 1 217 272 165 182 264 199 75 237 157 216 157 172 33 72 77 152 280 87 244 270 206 241 293 77 284 40 229 191 30 130 130 174 298 13 48 274 298 57 93 295 27 283 196 54 63 179 234 4 282 37 243 120 31 113 136 181 237 69 274 36 181 193 251 253 80 261 90 186 138 184 223 61 46 53 175 107 6 197 81 114 207 129 59 305 170 162 73 148 100 102 17 140 11 98 275 142 5 221 146 229 103 88 9 139 28 171 189 203 255 301 78 40 273 9 51 86 50 277 57 49 171 233 21 276 257 304 64 32 45 253 124 79 111 221 58 287 288 176 169 12 204 20 170 206 197 169 56 22 41 205 126 300 234 92 145 79 155 39 158 243 208 200 234 48 21 58 199 40 55 178 172 77 196 98 187 200 190 3 23 279 16 296 142 49 39 246 185 23 191 74 254 151 130 218 116 34 4 194 95 122 208 112 292 6 109 218 72 295 289 159 175 19 143 76 169 274 80 305 214 286 173 104 20 126 82 176 213 136 225 55 90 230 262 284 258 60 70 39 290 3 44 147 300 278 216 245 35 75 63 223 52 104 238 263 267 185 67 9 95 210 71 233 283 152 236 42 144 8 286 217 228 41 161 2 279 278 172 121 14 119 143 120 293 68 36 225 11 45 209 58 155 301 34 222 252 280 131 62 291 162 161 90 142 14 163 267 141 249 294 139 290 47 168 247 29 198 13 4 150 277 101 173 192 268 247 73 16 34 266 70 74 166 288 88 227 276 213 180 43 76 125 150 59 43 294 183 108 68 124 167 53 263 49 127 109 14 31 201 78 302 149 215 95 166 26 212 21 232 133 283 108 112 248 188 9 183 152 192 224 123 279 60 114 163 5 265 270 250 59 8 112 204 64 294 227 232 89 159 87 156 22 85 23 147 256 154 195 210 115 51 304 108 156 66 209 44 103 176 257 260 19 11 10 27 21 14 75 19 99 258 69 12 160 202 149 171 277 145 297 292 224 167 97 81 70 83 29 24 67 97 37 25 62 73 104 282 2 61 220 293 33 160 246 273 271 6 65 94 51 260 63 135 110 289 247 38 140 55 222 296 98 231 18 211 265 226 126 38 52 192 180 305 258 25 194 139 246 229 147 212 30 174 254 195 254 239 72 33 28 259 131 18 167 141 205 170 118 28 127 65 182 220 75 281 281 237 113 92 57 137 113 48 12 116 78 128 215 51 42 232 177 22 129 68 168 291 161 ^'}},
+ {OUT=>'0C0AEA0C2FD7A620C77866B1A177481E26B4F592'}],
+ ['221', {IN=> {f=> '653 0 296 275 228 174 34 136 67 229 218 158 158 24 149 13 223 271 225 186 41 59 52 234 302 20 214 21 295 202 282 46 106 240 249 29 262 4 2 87 271 15 4 136 269 100 188 263 182 1 14 94 270 76 240 220 207 156 109 26 64 136 96 51 17 53 134 47 53 239 176 83 134 152 106 38 71 59 157 287 25 298 190 44 123 121 235 241 91 206 83 239 205 212 240 47 82 61 206 285 110 175 10 264 24 254 66 253 166 201 209 176 54 5 46 211 62 48 231 238 27 213 6 224 210 220 102 103 3 131 88 113 268 56 64 165 225 81 219 29 157 258 279 192 295 68 100 217 9 288 203 297 117 98 302 193 32 116 122 250 236 7 268 27 242 135 23 105 196 125 238 305 84 283 22 234 197 274 184 50 12 179 147 127 153 45 33 63 121 101 59 262 109 131 193 166 67 27 40 188 53 172 148 142 224 37 95 7 200 31 177 127 258 174 63 265 97 124 194 181 62 250 102 132 132 237 290 89 291 267 290 118 37 66 185 94 60 201 104 47 255 110 70 188 158 129 278 43 118 247 248 14 267 12 247 143 268 161 117 271 120 57 242 164 76 211 91 101 261 133 3 236 217 143 163 32 87 69 144 34 31 245 123 16 182 135 196 230 60 28 286 259 45 62 116 227 303 35 285 244 50 146 54 283 300 105 91 72 208 27 108 260 194 8 244 79 199 84 178 276 128 302 298 161 222 17 226 259 218 187 287 130 44 296 246 99 144 139 160 44 18 299 205 39 115 183 179 13 252 17 255 81 17 82 263 153 255 215 199 294 53 105 301 254 37 200 60 306 233 153 150 86 93 16 77 82 90 28 84 5 151 33 92 250 207 261 238 132 266 112 119 186 243 6 22 32 19 73 79 26 35 7 66 80 41 30 306 128 24 44 191 117 69 249 163 137 140 99 39 10 54 149 42 276 301 120 162 64 270 47 187 114 5 180 86 198 145 183 284 66 51 219 231 104 152 1 216 272 164 181 264 197 72 237 156 214 155 170 31 72 74 152 279 87 242 269 205 241 293 77 284 37 229 189 29 128 129 173 297 12 45 272 298 56 93 294 24 283 195 52 61 177 232 4 280 34 241 120 28 113 134 181 235 68 273 35 180 191 251 251 78 260 89 186 138 184 223 61 43 50 175 107 6 195 81 114 207 127 56 303 169 160 73 147 98 100 15 138 11 98 273 140 2 221 146 227 101 88 8 139 26 169 189 202 253 300 76 38 273 6 51 85 49 275 55 49 170 233 19 275 257 303 64 31 43 252 122 77 111 219 58 286 288 174 168 11 203 19 170 204 197 169 55 20 41 203 124 299 234 92 145 78 155 36 156 243 208 200 233 48 21 56 198 40 54 178 171 75 196 96 185 199 189 306 23 278 14 296 141 46 38 244 184 21 190 73 252 151 130 217 114 34 2 192 93 121 206 112 292 4 107 216 70 293 112 ^'}},
+ {OUT=>'149176007FEE58A591E3F00F8DB658B605F8390C'}],
+ ['222', {IN=> {f=> '646 1 159 169 19 137 73 163 274 77 302 211 280 167 104 14 126 76 173 210 133 225 46 90 230 262 278 252 51 67 39 284 306 41 147 300 278 216 239 35 75 60 217 43 98 235 257 267 185 61 3 95 207 71 230 280 149 233 33 144 308 283 211 228 38 155 305 273 275 172 115 11 116 140 117 287 59 36 222 2 36 206 303 49 152 295 28 219 249 280 131 53 291 162 161 84 142 14 160 264 141 246 288 136 287 41 165 241 20 198 7 304 144 274 95 173 192 262 244 64 13 31 263 64 65 160 282 82 227 270 213 177 40 70 119 150 53 34 291 180 102 65 124 161 50 263 46 124 109 300 5 28 201 69 299 149 215 92 163 17 206 12 229 133 277 105 109 248 185 9 183 146 189 218 120 279 54 111 163 308 265 270 247 56 8 106 204 61 294 224 226 89 153 81 150 19 85 14 144 256 154 192 210 115 45 304 108 153 63 209 38 103 176 254 257 10 5 10 21 18 8 72 16 93 258 69 6 157 202 146 171 277 139 297 286 221 164 94 78 70 83 29 21 67 91 34 16 59 70 101 279 2 52 214 290 33 160 246 270 265 306 59 88 42 260 54 129 104 289 247 38 137 55 222 293 95 225 12 211 262 226 123 32 49 186 174 305 255 25 191 133 243 226 141 212 30 168 251 195 254 239 69 24 28 253 128 9 167 138 202 164 112 19 121 65 176 220 69 281 278 234 110 86 57 137 107 42 3 113 78 122 212 48 39 232 177 22 129 68 168 285 74 292 275 224 174 30 134 63 227 218 154 158 22 147 9 219 267 221 182 35 59 52 230 298 20 214 15 291 198 282 46 106 238 249 23 260 2 85 271 15 307 136 269 100 184 259 182 308 8 90 266 74 240 216 205 156 107 24 62 132 96 45 13 49 134 45 47 237 172 81 132 148 104 32 67 57 155 287 23 294 190 38 121 117 235 239 87 204 79 235 205 208 236 43 80 55 206 285 108 171 4 260 20 250 66 253 162 197 205 174 48 5 44 209 56 44 227 236 25 209 4 224 208 218 102 99 3 129 86 109 266 56 60 165 223 79 217 25 157 254 275 190 295 62 98 217 7 286 203 293 113 96 302 193 30 116 122 246 236 7 268 23 242 131 19 103 194 125 238 301 82 279 20 232 195 272 180 50 6 175 143 127 153 45 29 57 121 99 55 258 105 127 189 166 61 21 36 188 53 307 170 148 138 220 35 93 1 198 25 175 125 256 172 63 261 97 122 194 177 58 250 100 132 130 233 290 85 289 265 288 118 37 60 183 94 60 199 102 47 253 110 68 186 156 125 274 43 114 243 244 12 263 12 245 141 264 159 117 269 118 55 240 164 76 207 89 101 261 131 1 232 213 143 161 32 83 65 142 32 31 245 123 14 178 135 192 228 56 26 286 255 43 62 114 225 303 31 281 244 46 142 50 281 296 105 91 238 ^'}},
+ {OUT=>'17C0D7B0256159F3626786FFDB20237AE154FA84'}],
+ ['223', {IN=> {f=> '647 0 200 27 104 252 186 240 79 199 84 174 268 128 298 294 153 218 17 218 259 214 187 283 122 40 292 238 95 136 131 156 36 18 299 197 31 107 179 179 1 252 13 255 73 5 82 259 145 247 211 191 286 49 97 293 250 29 192 56 298 225 149 146 86 89 16 73 74 86 20 76 1 143 21 88 246 199 257 230 124 266 104 119 182 239 309 14 20 7 61 71 26 23 3 58 80 33 22 302 124 24 44 191 113 57 241 155 133 140 99 35 6 54 141 42 276 301 112 154 52 266 35 179 110 308 180 82 190 141 175 280 62 43 219 231 96 148 1 212 272 160 177 264 189 60 237 152 206 147 162 23 72 62 152 275 87 234 265 201 241 293 77 284 25 229 181 25 120 125 169 293 8 33 264 298 52 93 290 12 283 191 44 53 169 224 4 272 22 233 120 16 113 126 181 227 64 269 31 176 183 251 243 70 256 85 186 138 184 223 61 31 38 175 107 6 187 81 114 207 119 44 295 165 152 73 143 90 92 7 130 11 98 265 132 301 221 146 219 93 88 4 139 18 161 189 198 245 296 68 30 273 305 51 81 45 267 47 49 166 233 11 271 257 299 64 27 35 248 114 69 111 211 58 282 288 166 164 7 199 15 170 196 197 169 51 12 41 195 116 295 234 92 145 74 155 24 148 243 208 200 229 48 21 48 194 40 50 178 167 67 196 88 177 195 185 299 306 23 274 6 296 137 34 34 236 180 13 186 69 244 151 130 213 106 34 305 184 85 117 198 112 292 307 99 208 62 285 279 159 165 19 133 71 159 274 75 300 209 276 163 104 10 126 72 171 208 131 225 40 90 230 262 274 248 45 65 39 280 304 39 147 300 278 216 235 35 75 58 213 37 94 233 253 267 185 57 310 95 205 71 228 278 147 231 27 144 304 281 207 228 36 151 303 269 273 172 111 9 114 138 115 283 53 36 220 307 30 204 301 43 150 291 24 217 247 280 131 47 291 162 161 80 142 14 158 262 141 244 284 134 285 37 163 237 14 198 3 300 140 272 91 173 192 258 242 58 11 29 261 60 59 156 278 78 227 266 213 175 38 66 115 150 49 28 289 178 98 63 124 157 48 263 44 122 109 296 310 26 201 63 297 149 215 90 161 11 202 6 227 133 273 103 107 248 183 9 183 142 187 214 118 279 50 109 163 306 265 270 245 54 8 102 204 59 294 222 222 89 149 77 146 17 85 8 142 256 154 190 210 115 41 304 108 151 61 209 34 103 176 252 255 4 1 10 17 16 4 70 14 89 258 69 2 155 202 144 171 277 135 297 282 219 162 92 76 70 83 29 19 67 87 32 10 57 68 99 277 2 46 210 288 33 160 246 268 261 302 55 84 36 260 48 125 100 289 247 38 135 55 222 291 93 221 8 211 260 226 121 28 47 182 170 305 253 25 189 129 241 224 137 212 30 164 249 195 254 239 86 ^'}},
+ {OUT=>'741A58618ABEB1D983D67AFDCBC49AA397A3B8E0'}],
+ ['224', {IN=> {f=> '665 0 15 28 247 125 167 135 199 158 106 10 115 65 170 220 63 281 275 231 107 80 57 137 101 36 306 110 78 116 209 45 36 232 177 22 129 68 168 279 74 286 275 218 174 24 131 57 224 218 148 158 19 144 3 213 261 215 176 26 59 52 224 292 20 214 6 285 192 282 46 106 235 249 14 257 311 309 82 271 15 301 136 269 100 178 253 182 308 311 84 260 71 240 210 202 156 104 21 59 126 96 36 7 43 134 42 38 234 166 78 129 142 101 23 61 54 152 287 20 288 190 29 118 111 235 236 81 201 73 229 205 202 230 37 77 46 206 285 105 165 307 254 14 244 66 253 156 191 199 171 39 5 41 206 47 38 221 233 22 203 1 224 205 215 102 93 3 126 83 103 263 56 54 165 220 76 214 19 157 248 269 187 295 53 95 217 4 283 203 287 107 93 302 193 27 116 122 240 236 7 268 17 242 125 13 100 191 125 238 295 79 273 17 229 192 269 174 50 309 169 137 127 153 45 23 48 121 96 49 252 99 121 183 166 52 12 30 188 53 307 167 148 132 214 32 90 304 195 16 172 122 253 169 63 255 97 119 194 171 52 250 97 132 127 227 290 79 286 262 285 118 37 51 180 94 60 196 99 47 250 110 65 183 153 119 268 43 108 237 238 9 257 12 242 138 258 156 117 266 115 52 237 164 76 201 86 101 261 128 310 226 207 143 158 32 77 59 139 29 31 245 123 11 172 135 186 225 50 23 286 249 40 62 111 222 303 25 275 244 40 136 44 278 290 105 91 62 198 27 103 250 184 310 239 79 199 84 173 266 128 297 293 151 217 17 216 259 213 187 282 120 39 291 236 94 134 129 155 34 18 299 195 29 105 178 179 310 252 12 255 71 2 82 258 143 245 210 189 284 48 95 291 249 27 190 55 296 223 148 145 86 88 16 72 72 85 18 74 141 18 87 245 197 256 228 122 266 102 119 181 238 308 12 17 4 58 69 26 20 2 56 80 31 20 301 123 24 44 191 112 54 239 153 132 140 99 34 5 54 139 42 276 301 110 152 49 265 32 177 109 307 180 81 188 140 173 279 61 41 219 231 94 147 1 211 272 159 176 264 187 57 237 151 204 145 160 21 72 59 152 274 87 232 264 200 241 293 77 284 22 229 179 24 118 124 168 292 7 30 262 298 51 93 289 9 283 190 42 51 167 222 4 270 19 231 120 13 113 124 181 225 63 268 30 175 181 251 241 68 255 84 186 138 184 223 61 28 35 175 107 6 185 81 114 207 117 41 293 164 150 73 142 88 90 5 128 11 98 263 130 299 221 146 217 91 88 3 139 16 159 189 197 243 295 66 28 273 303 51 80 44 265 45 49 165 233 9 270 257 298 64 26 33 247 112 67 111 209 58 281 288 164 163 6 198 14 170 194 197 169 50 10 41 193 114 294 234 92 145 73 155 21 146 243 208 200 228 48 21 46 193 40 49 178 166 65 196 86 175 194 184 297 306 23 273 206 ^'}},
+ {OUT=>'B738D6B3409EB9ED2F1719B84D13F7C36169CDEC'}],
+ ['225', {IN=> {f=> '641 0 296 134 25 31 230 177 7 183 66 238 151 130 210 100 34 302 178 79 114 192 112 292 304 93 202 56 279 273 159 159 19 127 68 153 274 72 297 206 270 157 104 4 126 66 168 205 128 225 31 90 230 262 268 242 36 62 39 274 301 36 147 300 278 216 229 35 75 55 207 28 88 230 247 267 185 51 307 95 202 71 225 275 144 228 18 144 298 278 201 228 33 145 300 263 270 172 105 6 111 135 112 277 44 36 217 301 21 201 298 34 147 285 18 214 244 280 131 38 291 162 161 74 142 14 155 259 141 241 278 131 282 31 160 231 5 198 311 294 134 269 85 173 192 252 239 49 8 26 258 54 50 150 272 72 227 260 213 172 35 60 109 150 43 19 286 175 92 60 124 151 45 263 41 119 109 290 304 23 201 54 294 149 215 87 158 2 196 311 224 133 267 100 104 248 180 9 183 136 184 208 115 279 44 106 163 303 265 270 242 51 8 96 204 56 294 219 216 89 143 71 140 14 85 313 139 256 154 187 210 115 35 304 108 148 58 209 28 103 176 249 252 309 309 10 11 13 312 67 11 83 258 69 310 152 202 141 171 277 129 297 276 216 159 89 73 70 83 29 16 67 81 29 1 54 65 96 274 2 37 204 285 33 160 246 265 255 296 49 78 27 260 39 119 94 289 247 38 132 55 222 288 90 215 2 211 257 226 118 22 44 176 164 305 250 25 186 123 238 221 131 212 30 158 246 195 254 239 64 9 28 243 123 308 167 133 197 154 102 4 111 65 166 220 59 281 273 229 105 76 57 137 97 32 302 108 78 112 207 43 34 232 177 22 129 68 168 275 74 282 275 214 174 20 129 53 222 218 144 158 17 142 313 209 257 211 172 20 59 52 220 288 20 214 281 188 282 46 106 233 249 8 255 311 309 80 271 15 297 136 269 100 174 249 182 308 307 80 256 69 240 206 200 156 102 19 57 122 96 30 3 39 134 40 32 232 162 76 127 138 99 17 57 52 150 287 18 284 190 23 116 107 235 234 77 199 69 225 205 198 226 33 75 40 206 285 103 161 303 250 10 240 66 253 152 187 195 169 33 5 39 204 41 34 217 231 20 199 313 224 203 213 102 89 3 124 81 99 261 56 50 165 218 74 212 15 157 244 265 185 295 47 93 217 2 281 203 283 103 91 302 193 25 116 122 236 236 7 268 13 242 121 9 98 189 125 238 291 77 269 15 227 190 267 170 50 305 165 133 127 153 45 19 42 121 94 45 248 95 117 179 166 46 6 26 188 53 307 165 148 128 210 30 88 300 193 10 170 120 251 167 63 251 97 117 194 167 48 250 95 132 125 223 290 75 284 260 283 118 37 45 178 94 60 194 97 47 248 110 63 181 151 115 264 43 104 233 234 7 253 12 240 136 254 154 117 264 113 50 235 164 76 197 84 101 261 126 310 222 203 143 276 ^'}},
+ {OUT=>'3D33DE31F64055D3B128AC9A6AA3F92DFD4F5330'}],
+ ['226', {IN=> {f=> '656 0 32 69 51 135 25 31 245 123 7 164 135 178 221 42 19 286 241 36 62 107 218 303 17 267 244 32 128 36 274 282 105 91 54 190 27 99 242 176 306 235 79 199 84 169 258 128 293 289 143 213 17 208 259 209 187 278 112 35 287 228 90 126 121 151 26 18 299 187 21 97 174 179 302 252 8 255 63 306 82 254 135 237 206 181 276 44 87 283 245 19 182 51 288 215 144 141 86 84 16 68 64 81 10 66 312 133 6 83 241 189 252 220 114 266 94 119 177 234 304 4 5 308 46 61 26 8 314 48 80 23 12 297 119 24 44 191 108 42 231 145 128 140 99 30 1 54 131 42 276 301 102 144 37 261 20 169 105 303 180 77 180 136 165 275 57 33 219 231 86 143 1 207 272 155 172 264 179 45 237 147 196 137 152 13 72 47 152 270 87 224 260 196 241 293 77 284 10 229 171 20 110 120 164 288 3 18 254 298 47 93 285 313 283 186 34 43 159 214 4 262 7 223 120 1 113 116 181 217 59 264 26 171 173 251 233 60 251 80 186 138 184 223 61 16 23 175 107 6 177 81 114 207 109 29 285 160 142 73 138 80 82 313 120 11 98 255 122 291 221 146 209 83 88 315 139 8 151 189 193 235 291 58 20 273 295 51 76 40 257 37 49 161 233 1 266 257 294 64 22 25 243 104 59 111 201 58 277 288 156 159 2 194 10 170 186 197 169 46 2 41 185 106 290 234 92 145 69 155 9 138 243 208 200 224 48 21 38 189 40 45 178 162 57 196 78 167 190 180 289 306 23 269 312 296 132 19 29 226 175 3 181 64 234 151 130 208 96 34 300 174 75 112 188 112 292 302 89 198 52 275 269 159 155 19 123 66 149 274 70 295 204 266 153 104 126 62 166 203 126 225 25 90 230 262 264 238 30 60 39 270 299 34 147 300 278 216 225 35 75 53 203 22 84 228 243 267 185 47 305 95 200 71 223 273 142 226 12 144 294 276 197 228 31 141 298 259 268 172 101 4 109 133 110 273 38 36 215 297 15 199 296 28 145 281 14 212 242 280 131 32 291 162 161 70 142 14 153 257 141 239 274 129 280 27 158 227 315 198 309 290 130 267 81 173 192 248 237 43 6 24 256 50 44 146 268 68 227 256 213 170 33 56 105 150 39 13 284 173 88 58 124 147 43 263 39 117 109 286 300 21 201 48 292 149 215 85 156 312 192 307 222 133 263 98 102 248 178 9 183 132 182 204 113 279 40 104 163 301 265 270 240 49 8 92 204 54 294 217 212 89 139 67 136 12 85 309 137 256 154 185 210 115 31 304 108 146 56 209 24 103 176 247 250 305 307 10 7 11 310 65 9 79 258 69 308 150 202 139 171 277 125 297 272 214 157 87 71 70 83 29 14 67 77 27 311 52 63 94 272 2 31 200 283 33 160 246 263 251 292 45 74 21 260 33 115 90 289 247 38 130 55 222 286 88 211 227 ^'}},
+ {OUT=>'B6925F4DF94949B8844C867428BA3DEDF4CF2B51'}],
+ ['227', {IN=> {f=> '668 0 211 254 226 115 16 41 170 158 305 247 25 183 117 235 218 125 212 30 152 243 195 254 239 61 28 237 120 302 167 130 194 148 96 312 105 65 160 220 53 281 270 226 102 70 57 137 91 26 296 105 78 106 204 40 31 232 177 22 129 68 168 269 74 276 275 208 174 14 126 47 219 218 138 158 14 139 310 203 251 205 166 11 59 52 214 282 20 214 308 275 182 282 46 106 230 249 316 252 311 309 77 271 15 291 136 269 100 168 243 182 308 301 74 250 66 240 200 197 156 99 16 54 116 96 21 314 33 134 37 23 229 156 73 124 132 96 8 51 49 147 287 15 278 190 14 113 101 235 231 71 196 63 219 205 192 220 27 72 31 206 285 100 155 297 244 4 234 66 253 146 181 189 166 24 5 36 201 32 28 211 228 17 193 313 224 200 210 102 83 3 121 78 93 258 56 44 165 215 71 209 9 157 238 259 182 295 38 90 217 316 278 203 277 97 88 302 193 22 116 122 230 236 7 268 7 242 115 3 95 186 125 238 285 74 263 12 224 187 264 164 50 299 159 127 127 153 45 13 33 121 91 39 242 89 111 173 166 37 314 20 188 53 307 162 148 122 204 27 85 294 190 1 167 117 248 164 63 245 97 114 194 161 42 250 92 132 122 217 290 69 281 257 280 118 37 36 175 94 60 191 94 47 245 110 60 178 148 109 258 43 98 227 228 4 247 12 237 133 248 151 117 261 110 47 232 164 76 191 81 101 261 123 310 216 197 143 153 32 67 49 134 24 31 245 123 6 162 135 176 220 40 18 286 239 35 62 106 217 303 15 265 244 30 126 34 273 280 105 91 52 188 27 98 240 174 305 234 79 199 84 168 256 128 292 288 141 212 17 206 259 208 187 277 110 34 286 226 89 124 119 150 24 18 299 185 19 95 173 179 300 252 7 255 61 304 82 253 133 235 205 179 274 43 85 281 244 17 180 50 286 213 143 140 86 83 16 67 62 80 8 64 312 131 3 82 240 187 251 218 112 266 92 119 176 233 303 2 2 306 43 59 26 5 314 46 80 21 10 296 118 24 44 191 107 39 229 143 127 140 99 29 54 129 42 276 301 100 142 34 260 17 167 104 302 180 76 178 135 163 274 56 31 219 231 84 142 1 206 272 154 171 264 177 42 237 146 194 135 150 11 72 44 152 269 87 222 259 195 241 293 77 284 7 229 169 19 108 119 163 287 2 15 252 298 46 93 284 311 283 185 32 41 157 212 4 260 4 221 120 315 113 114 181 215 58 263 25 170 171 251 231 58 250 79 186 138 184 223 61 13 20 175 107 6 175 81 114 207 107 26 283 159 140 73 137 78 80 312 118 11 98 253 120 289 221 146 207 81 88 315 139 6 149 189 192 233 290 56 18 273 293 51 75 39 255 35 49 160 233 316 265 257 293 64 21 23 242 102 57 111 199 58 276 288 154 158 1 193 9 170 184 197 169 45 41 183 104 289 234 92 145 68 155 6 136 243 208 203 ^'}},
+ {OUT=>'CF5E7256292ABEC431D8E8B9CBEAF22AF072377E'}],
+ ['228', {IN=> {f=> '656 0 221 48 21 32 186 40 42 178 159 51 196 72 161 187 177 283 306 23 266 309 296 129 10 26 220 172 316 178 61 228 151 130 205 90 34 297 168 69 109 182 112 292 299 83 192 46 269 263 159 149 19 117 63 143 274 67 292 201 260 147 104 313 126 56 163 200 123 225 16 90 230 262 258 232 21 57 39 264 296 31 147 300 278 216 219 35 75 50 197 13 78 225 237 267 185 41 302 95 197 71 220 270 139 223 3 144 288 273 191 228 28 135 295 253 265 172 95 1 106 130 107 267 29 36 212 291 6 196 293 19 142 275 8 209 239 280 131 23 291 162 161 64 142 14 150 254 141 236 268 126 277 21 155 221 309 198 306 284 124 264 75 173 192 242 234 34 3 21 253 44 35 140 262 62 227 250 213 167 30 50 99 150 33 4 281 170 82 55 124 141 40 263 36 114 109 280 294 18 201 39 289 149 215 82 153 306 186 301 219 133 257 95 99 248 175 9 183 126 179 198 110 279 34 101 163 298 265 270 237 46 8 86 204 51 294 214 206 89 133 61 130 9 85 303 134 256 154 182 210 115 25 304 108 143 53 209 18 103 176 244 247 299 304 10 1 8 307 62 6 73 258 69 305 147 202 136 171 277 119 297 266 211 154 84 68 70 83 29 11 67 71 24 305 49 60 91 269 2 22 194 280 33 160 246 260 245 286 39 68 12 260 24 109 84 289 247 38 127 55 222 283 85 205 311 211 252 226 113 12 39 166 154 305 245 25 181 113 233 216 121 212 30 148 241 195 254 239 59 313 28 233 118 298 167 128 192 144 92 308 101 65 156 220 49 281 268 224 100 66 57 137 87 22 292 103 78 102 202 38 29 232 177 22 129 68 168 265 74 272 275 204 174 10 124 43 217 218 134 158 12 137 308 199 247 201 162 5 59 52 210 278 20 214 304 271 178 282 46 106 228 249 312 250 311 309 75 271 15 287 136 269 100 164 239 182 308 297 70 246 64 240 196 195 156 97 14 52 112 96 15 312 29 134 35 17 227 152 71 122 128 94 2 47 47 145 287 13 274 190 8 111 97 235 229 67 194 59 215 205 188 216 23 70 25 206 285 98 151 293 240 230 66 253 142 177 185 164 18 5 34 199 26 24 207 226 15 189 313 224 198 208 102 79 3 119 76 89 256 56 40 165 213 69 207 5 157 234 255 180 295 32 88 217 316 276 203 273 93 86 302 193 20 116 122 226 236 7 268 3 242 111 318 93 184 125 238 281 72 259 10 222 185 262 160 50 295 155 123 127 153 45 9 27 121 89 35 238 85 107 169 166 31 310 16 188 53 307 160 148 118 200 25 83 290 188 314 165 115 246 162 63 241 97 112 194 157 38 250 90 132 120 213 290 65 279 255 278 118 37 30 173 94 60 189 92 47 243 110 58 176 146 105 254 43 94 223 224 2 243 12 235 131 244 149 117 259 108 45 230 164 76 187 79 101 261 109 ^'}},
+ {OUT=>'975DCE94902923977F129C0E4ACF40AD28DDB9AA'}],
+ ['229', {IN=> {f=> '656 0 310 208 189 143 149 32 59 41 130 20 31 245 123 2 154 135 168 216 32 14 286 231 31 62 102 213 303 7 257 244 22 118 26 269 272 105 91 44 180 27 94 232 166 301 230 79 199 84 164 248 128 288 284 133 208 17 198 259 204 187 273 102 30 282 218 85 116 111 146 16 18 299 177 11 87 169 179 292 252 3 255 53 296 82 249 125 227 201 171 266 39 77 273 240 9 172 46 278 205 139 136 86 79 16 63 54 76 56 312 123 312 78 236 179 247 210 104 266 84 119 172 229 299 315 311 298 31 51 26 314 314 38 80 13 2 292 114 24 44 191 103 27 221 135 123 140 99 25 317 54 121 42 276 301 92 134 22 256 5 159 100 298 180 72 170 131 155 270 52 23 219 231 76 138 1 202 272 150 167 264 169 30 237 142 186 127 142 3 72 32 152 265 87 214 255 191 241 293 77 284 316 229 161 15 100 115 159 283 319 3 244 298 42 93 280 303 283 181 24 33 149 204 4 252 313 213 120 307 113 106 181 207 54 259 21 166 163 251 223 50 246 75 186 138 184 223 61 1 8 175 107 6 167 81 114 207 99 14 275 155 132 73 133 70 72 308 110 11 98 245 112 281 221 146 199 73 88 315 139 319 141 189 188 225 286 48 10 273 285 51 71 35 247 27 49 156 233 312 261 257 289 64 17 15 238 94 49 111 191 58 272 288 146 154 318 189 5 170 176 197 169 41 313 41 175 96 285 234 92 145 64 155 315 128 243 208 200 219 48 21 28 184 40 40 178 157 47 196 68 157 185 175 279 306 23 264 307 296 127 4 24 216 170 314 176 59 224 151 130 203 86 34 295 164 65 107 178 112 292 297 79 188 42 265 259 159 145 19 113 61 139 274 65 290 199 256 143 104 311 126 52 161 198 121 225 10 90 230 262 254 228 15 55 39 260 294 29 147 300 278 216 215 35 75 48 193 7 74 223 233 267 185 37 300 95 195 71 218 268 137 221 318 144 284 271 187 228 26 131 293 249 263 172 91 320 104 128 105 263 23 36 210 287 194 291 13 140 271 4 207 237 280 131 17 291 162 161 60 142 14 148 252 141 234 264 124 275 17 153 217 305 198 304 280 120 262 71 173 192 238 232 28 1 19 251 40 29 136 258 58 227 246 213 165 28 46 95 150 29 319 279 168 78 53 124 137 38 263 34 112 109 276 290 16 201 33 287 149 215 80 151 302 182 297 217 133 253 93 97 248 173 9 183 122 177 194 108 279 30 99 163 296 265 270 235 44 8 82 204 49 294 212 202 89 129 57 126 7 85 299 132 256 154 180 210 115 21 304 108 141 51 209 14 103 176 242 245 295 302 10 318 6 305 60 4 69 258 69 303 145 202 134 171 277 115 297 262 209 152 82 66 70 83 29 9 67 67 22 301 47 58 89 267 2 16 190 278 33 160 246 258 241 282 35 64 6 260 18 105 80 289 247 38 125 55 292 ^'}},
+ {OUT=>'333B0259B18CE64D6B52CF563DD3041E5F63A516'}],
+ );
+
+sub binary_expand ($$)
+{
+ my ($test_name, $line) = @_;
+ my ($n, $b, $rest) = split ' ', $line, 3;
+ defined $n && defined $b or die "$test_name: too few args\n";
+ my @a = split ' ', $rest, $n + 1;
+ my $caret = pop @a;
+ $caret eq '^' or die "test $test_name: @a missing '^'\n";
+ $b eq '1' || $b eq '0' or die "test $test_name: bad 'b'=$b\n";
+ my $n_bad = @a;
+ @a == $n or
+ die "test $test_name: wrong number of args (expected $n, found $n_bad)\n";
+ my $bit_string = '';
+ foreach my $a (@a)
+ {
+ $bit_string .= $b x $a;
+ $b = 1 - $b;
+ }
+ my $t = pack ("B*", $bit_string);
+ # print "$bit_string\n $t\n";
+ return $t;
+}
+
+my $t;
+foreach $t (@Tests)
+ {
+ # Expand each input.
+ my $in = $t->[1]->{IN};
+ $in->{f} = binary_expand $t->[0], $in->{f};
+
+ # Convert each expected output string to lower case, and append " f\n".
+ my $h = $t->[2];
+ $h->{OUT} = lc $h->{OUT} . " f\n";
+
+ # Insert the '--text' argument for each test.
+ splice @$t, 1, 0, '--text';
+ }
+
+my $save_temps = $ENV{DEBUG};
+my $verbose = $ENV{VERBOSE};
+
+my $prog = 'sha1sum';
+my $fail = run_tests ($program_name, $prog, \@Tests, $save_temps, $verbose);
+exit $fail;
diff --git a/tests/misc/sha1sum.pl b/tests/misc/sha1sum.pl
new file mode 100755
index 0000000..b9e8c47
--- /dev/null
+++ b/tests/misc/sha1sum.pl
@@ -0,0 +1,92 @@
+#!/usr/bin/perl
+# Test "sha1sum".
+
+# Copyright (C) 2000-2016 Free Software Foundation, Inc.
+
+# This program is free software: you can redistribute it and/or modify
+# it under the terms of the GNU General Public License as published by
+# the Free Software Foundation, either version 3 of the License, or
+# (at your option) any later version.
+
+# This program is distributed in the hope that it will be useful,
+# but WITHOUT ANY WARRANTY; without even the implied warranty of
+# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
+# GNU General Public License for more details.
+
+# You should have received a copy of the GNU General Public License
+# along with this program. If not, see <http://www.gnu.org/licenses/>.
+
+use strict;
+
+my $prog = 'sha1sum';
+
+# Turn off localization of executable's output.
+@ENV{qw(LANGUAGE LANG LC_ALL)} = ('C') x 3;
+
+my $sha_degenerate = "da39a3ee5e6b4b0d3255bfef95601890afd80709";
+
+my @Tests =
+ (
+ ['s1', {IN=> {f=> ''}},
+ {OUT=>"$sha_degenerate f\n"}],
+ ['s2', {IN=> {f=> 'a'}},
+ {OUT=>"86f7e437faa5a7fce15d1ddcb9eaeaea377667b8 f\n"}],
+ ['s3', {IN=> {f=> 'abc'}},
+ {OUT=>"a9993e364706816aba3e25717850c26c9cd0d89d f\n"}],
+ ['s4',
+ {IN=> {f=> 'abcdbcdecdefdefgefghfghighijhijkijkljklmklmnlmnomnopnopq'}},
+ {OUT=>"84983e441c3bd26ebaae4aa1f95129e5e54670f1 f\n"}],
+ ['s5', {IN=> {f=> 'abcdefghijklmnopqrstuvwxyz'}},
+ {OUT=>"32d10c7b8cf96570ca04ce37f2a19d84240d3a89 f\n"}],
+ ['s6', {IN=> {f=> join ('', 'A'..'Z', 'a'..'z', '0'..'9')}},
+ {OUT=>"761c457bf73b14d27e9e9265c46f4b4dda11f940 f\n"}],
+ ['s7', {IN=> {f=> '1234567890' x 8}},
+ {OUT=>"50abf5706a150990a08b2c5ea40fa0e585554732 f\n"}],
+ ['million-a', {IN=> {f=> 'a' x 1000000}},
+ {OUT=>"34aa973cd4c4daa4f61eeb2bdbad27316534016f f\n"}],
+ ['bs-sha-1', {IN=> {".\nfoo"=> ''}},
+ {OUT=>"\\$sha_degenerate .\\nfoo\n"}],
+ ['bs-sha-2', {IN=> {".\\foo"=> ''}},
+ {OUT=>"\\$sha_degenerate .\\\\foo\n"}],
+ # The sha1sum and md5sum drivers share a lot of code.
+ # Ensure that sha1sum does *not* share the part that makes
+ # md5sum accept BSD format.
+ ['check-bsd', '--check', {IN=> {'f.md5' => "MD5 (f) = $sha_degenerate\n"}},
+ {AUX=> {f=> ''}},
+ {ERR=>"sha1sum: f.md5: no properly formatted "
+ . "SHA1 checksum lines found\n"},
+ {EXIT=> 1}],
+ ['check-bsd2', '--check',
+ {IN=> {'f.sha1' => "SHA1 (f) = $sha_degenerate\n"}},
+ {AUX=> {f=> ''}}, {OUT=>"f: OK\n"}],
+ ['check-bsd3', '--check', '--status',
+ {IN=> {'f.sha1' => "SHA1 (f) = $sha_degenerate\n"}},
+ {AUX=> {f=> 'bar'}}, {EXIT=> 1}],
+ ['check-openssl', '--check',
+ {IN=> {'f.md5' => "MD5(f)= $sha_degenerate\n"}},
+ {AUX=> {f=> ''}},
+ {ERR=>"sha1sum: f.md5: no properly formatted "
+ . "SHA1 checksum lines found\n"},
+ {EXIT=> 1}],
+ ['check-openssl2', '--check',
+ {IN=> {'f.sha1' => "SHA1(f)= $sha_degenerate\n"}},
+ {AUX=> {f=> ''}}, {OUT=>"f: OK\n"}],
+ ['check-openssl3', '--check', '--status',
+ {IN=> {'f.sha1' => "SHA1(f)= $sha_degenerate\n"}},
+ {AUX=> {f=> 'bar'}}, {EXIT=> 1}],
+ ['bsd-segv', '--check', {IN=> {'z' => "SHA1 ("}}, {EXIT=> 1},
+ {ERR=> "$prog: z: no properly formatted SHA1 checksum lines found\n"}],
+ );
+
+# Insert the '--text' argument for each test.
+my $t;
+foreach $t (@Tests)
+ {
+ splice @$t, 1, 0, '--text' unless @$t[1] =~ /--check/;
+ }
+
+my $save_temps = $ENV{DEBUG};
+my $verbose = $ENV{VERBOSE};
+
+my $fail = run_tests ($prog, $prog, \@Tests, $save_temps, $verbose);
+exit $fail;
diff --git a/tests/misc/sha224sum b/tests/misc/sha224sum
deleted file mode 100755
index 2b3c402..0000000
--- a/tests/misc/sha224sum
+++ /dev/null
@@ -1,63 +0,0 @@
-#!/bin/sh
-# Test "sha224sum".
-
-# Copyright (C) 2005 Free Software Foundation, Inc.
-
-# This program is free software; you can redistribute it and/or modify
-# it under the terms of the GNU General Public License as published by
-# the Free Software Foundation; either version 2 of the License, or
-# (at your option) any later version.
-
-# This program is distributed in the hope that it will be useful,
-# but WITHOUT ANY WARRANTY; without even the implied warranty of
-# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
-# GNU General Public License for more details.
-
-# You should have received a copy of the GNU General Public License
-# along with this program; if not, write to the Free Software
-# Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA
-# 02110-1301, USA.
-
-: ${PERL=perl}
-: ${srcdir=.}
-
-$PERL -e 1 > /dev/null 2>&1 || {
- echo 1>&2 "$0: configure didn't find a usable version of Perl," \
- "so can't run this test"
- exit 77
-}
-
-exec $PERL -w -I$srcdir/.. -MCoreutils -- - <<\EOF
-require 5.003;
-use strict;
-
-(my $program_name = $0) =~ s|.*/||;
-
-# Turn off localisation of executable's ouput.
-@ENV{qw(LANGUAGE LANG LC_ALL)} = ('C') x 3;
-
-my @Tests =
- (
- ['s3', {IN=> {f=> 'abc'}},
- {OUT=>"23097d223405d8228642a477bda255b32aadbce4bda0b3f7e36c9da7 f\n"}],
- ['s4',
- {IN=> {f=> 'abcdbcdecdefdefgefghfghighijhijkijkljklmklmnlmnomnopnopq'}},
- {OUT=>"75388b16512776cc5dba5da1fd890150b0c6455cb4f58b1952522525 f\n"}],
- ['s8', {IN=> {f=> 'a' x 1000000}},
- {OUT=>"20794655980c91d8bbb4c1ea97618a4bf03f42581948b2ee4ee7ad67 f\n"}],
- );
-
-# Insert the `--text' argument for each test.
-my $t;
-foreach $t (@Tests)
- {
- splice @$t, 1, 0, '--text' unless @$t[1] =~ /--check/;
- }
-
-my $save_temps = $ENV{DEBUG};
-my $verbose = $ENV{VERBOSE};
-
-my $prog = $ENV{PROG} || die "$0: \$PROG not specified in environment\n";
-my $fail = run_tests ($program_name, $prog, \@Tests, $save_temps, $verbose);
-exit $fail;
-EOF
diff --git a/tests/misc/sha224sum.pl b/tests/misc/sha224sum.pl
new file mode 100755
index 0000000..40416b5
--- /dev/null
+++ b/tests/misc/sha224sum.pl
@@ -0,0 +1,49 @@
+#!/usr/bin/perl
+# Test "sha224sum".
+
+# Copyright (C) 2005-2016 Free Software Foundation, Inc.
+
+# This program is free software: you can redistribute it and/or modify
+# it under the terms of the GNU General Public License as published by
+# the Free Software Foundation, either version 3 of the License, or
+# (at your option) any later version.
+
+# This program is distributed in the hope that it will be useful,
+# but WITHOUT ANY WARRANTY; without even the implied warranty of
+# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
+# GNU General Public License for more details.
+
+# You should have received a copy of the GNU General Public License
+# along with this program. If not, see <http://www.gnu.org/licenses/>.
+
+use strict;
+
+(my $program_name = $0) =~ s|.*/||;
+
+# Turn off localization of executable's output.
+@ENV{qw(LANGUAGE LANG LC_ALL)} = ('C') x 3;
+
+my @Tests =
+ (
+ ['s3', {IN=> {f=> 'abc'}},
+ {OUT=>"23097d223405d8228642a477bda255b32aadbce4bda0b3f7e36c9da7 f\n"}],
+ ['s4',
+ {IN=> {f=> 'abcdbcdecdefdefgefghfghighijhijkijkljklmklmnlmnomnopnopq'}},
+ {OUT=>"75388b16512776cc5dba5da1fd890150b0c6455cb4f58b1952522525 f\n"}],
+ ['s8', {IN=> {f=> 'a' x 1000000}},
+ {OUT=>"20794655980c91d8bbb4c1ea97618a4bf03f42581948b2ee4ee7ad67 f\n"}],
+ );
+
+# Insert the '--text' argument for each test.
+my $t;
+foreach $t (@Tests)
+ {
+ splice @$t, 1, 0, '--text' unless @$t[1] =~ /--check/;
+ }
+
+my $save_temps = $ENV{DEBUG};
+my $verbose = $ENV{VERBOSE};
+
+my $prog = 'sha224sum';
+my $fail = run_tests ($program_name, $prog, \@Tests, $save_temps, $verbose);
+exit $fail;
diff --git a/tests/misc/sha256sum b/tests/misc/sha256sum
deleted file mode 100755
index 59ee072..0000000
--- a/tests/misc/sha256sum
+++ /dev/null
@@ -1,69 +0,0 @@
-#!/bin/sh
-# Test "sha256sum".
-
-# Copyright (C) 2005 Free Software Foundation, Inc.
-
-# This program is free software; you can redistribute it and/or modify
-# it under the terms of the GNU General Public License as published by
-# the Free Software Foundation; either version 2 of the License, or
-# (at your option) any later version.
-
-# This program is distributed in the hope that it will be useful,
-# but WITHOUT ANY WARRANTY; without even the implied warranty of
-# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
-# GNU General Public License for more details.
-
-# You should have received a copy of the GNU General Public License
-# along with this program; if not, write to the Free Software
-# Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA
-# 02110-1301, USA.
-
-: ${PERL=perl}
-: ${srcdir=.}
-
-$PERL -e 1 > /dev/null 2>&1 || {
- echo 1>&2 "$0: configure didn't find a usable version of Perl," \
- "so can't run this test"
- exit 77
-}
-
-exec $PERL -w -I$srcdir/.. -MCoreutils -- - <<\EOF
-require 5.003;
-use strict;
-
-(my $program_name = $0) =~ s|.*/||;
-
-# Turn off localisation of executable's ouput.
-@ENV{qw(LANGUAGE LANG LC_ALL)} = ('C') x 3;
-
-my $sha_degenerate = "e3b0c44298fc1c149afbf4c8996fb92427ae41e4649b934ca495991b7852b855";
-
-my @Tests =
- (
- ['s1', {IN=> {f=> ''}},
- {OUT=>"$sha_degenerate f\n"}],
- ['s2', {IN=> {f=> 'a'}},
- {OUT=>"ca978112ca1bbdcafac231b39a23dc4da786eff8147c4e72b9807785afee48bb f\n"}],
- ['s3', {IN=> {f=> 'abc'}},
- {OUT=>"ba7816bf8f01cfea414140de5dae2223b00361a396177a9cb410ff61f20015ad f\n"}],
- ['s4',
- {IN=> {f=> 'abcdbcdecdefdefgefghfghighijhijkijkljklmklmnlmnomnopnopq'}},
- {OUT=>"248d6a61d20638b8e5c026930c3e6039a33ce45964ff2167f6ecedd419db06c1 f\n"}],
- ['s8', {IN=> {f=> 'a' x 1000000}},
- {OUT=>"cdc76e5c9914fb9281a1c7e284d73e67f1809a48a497200e046d39ccc7112cd0 f\n"}],
- );
-
-# Insert the `--text' argument for each test.
-my $t;
-foreach $t (@Tests)
- {
- splice @$t, 1, 0, '--text' unless @$t[1] =~ /--check/;
- }
-
-my $save_temps = $ENV{DEBUG};
-my $verbose = $ENV{VERBOSE};
-
-my $prog = $ENV{PROG} || die "$0: \$PROG not specified in environment\n";
-my $fail = run_tests ($program_name, $prog, \@Tests, $save_temps, $verbose);
-exit $fail;
-EOF
diff --git a/tests/misc/sha256sum.pl b/tests/misc/sha256sum.pl
new file mode 100755
index 0000000..e71ab6f
--- /dev/null
+++ b/tests/misc/sha256sum.pl
@@ -0,0 +1,55 @@
+#!/usr/bin/perl
+# Test "sha256sum".
+
+# Copyright (C) 2005-2016 Free Software Foundation, Inc.
+
+# This program is free software: you can redistribute it and/or modify
+# it under the terms of the GNU General Public License as published by
+# the Free Software Foundation, either version 3 of the License, or
+# (at your option) any later version.
+
+# This program is distributed in the hope that it will be useful,
+# but WITHOUT ANY WARRANTY; without even the implied warranty of
+# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
+# GNU General Public License for more details.
+
+# You should have received a copy of the GNU General Public License
+# along with this program. If not, see <http://www.gnu.org/licenses/>.
+
+use strict;
+
+(my $program_name = $0) =~ s|.*/||;
+
+# Turn off localization of executable's output.
+@ENV{qw(LANGUAGE LANG LC_ALL)} = ('C') x 3;
+
+my $sha_degenerate = "e3b0c44298fc1c149afbf4c8996fb92427ae41e4649b934ca495991b7852b855";
+
+my @Tests =
+ (
+ ['s1', {IN=> {f=> ''}},
+ {OUT=>"$sha_degenerate f\n"}],
+ ['s2', {IN=> {f=> 'a'}},
+ {OUT=>"ca978112ca1bbdcafac231b39a23dc4da786eff8147c4e72b9807785afee48bb f\n"}],
+ ['s3', {IN=> {f=> 'abc'}},
+ {OUT=>"ba7816bf8f01cfea414140de5dae2223b00361a396177a9cb410ff61f20015ad f\n"}],
+ ['s4',
+ {IN=> {f=> 'abcdbcdecdefdefgefghfghighijhijkijkljklmklmnlmnomnopnopq'}},
+ {OUT=>"248d6a61d20638b8e5c026930c3e6039a33ce45964ff2167f6ecedd419db06c1 f\n"}],
+ ['s8', {IN=> {f=> 'a' x 1000000}},
+ {OUT=>"cdc76e5c9914fb9281a1c7e284d73e67f1809a48a497200e046d39ccc7112cd0 f\n"}],
+ );
+
+# Insert the '--text' argument for each test.
+my $t;
+foreach $t (@Tests)
+ {
+ splice @$t, 1, 0, '--text' unless @$t[1] =~ /--check/;
+ }
+
+my $save_temps = $ENV{DEBUG};
+my $verbose = $ENV{VERBOSE};
+
+my $prog = 'sha256sum';
+my $fail = run_tests ($program_name, $prog, \@Tests, $save_temps, $verbose);
+exit $fail;
diff --git a/tests/misc/sha384sum b/tests/misc/sha384sum
deleted file mode 100755
index 8236104..0000000
--- a/tests/misc/sha384sum
+++ /dev/null
@@ -1,69 +0,0 @@
-#!/bin/sh
-# Test "sha384sum".
-
-# Copyright (C) 2005 Free Software Foundation, Inc.
-
-# This program is free software; you can redistribute it and/or modify
-# it under the terms of the GNU General Public License as published by
-# the Free Software Foundation; either version 2 of the License, or
-# (at your option) any later version.
-
-# This program is distributed in the hope that it will be useful,
-# but WITHOUT ANY WARRANTY; without even the implied warranty of
-# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
-# GNU General Public License for more details.
-
-# You should have received a copy of the GNU General Public License
-# along with this program; if not, write to the Free Software
-# Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA
-# 02110-1301, USA.
-
-: ${PERL=perl}
-: ${srcdir=.}
-
-$PERL -e 1 > /dev/null 2>&1 || {
- echo 1>&2 "$0: configure didn't find a usable version of Perl," \
- "so can't run this test"
- exit 77
-}
-
-exec $PERL -w -I$srcdir/.. -MCoreutils -- - <<\EOF
-require 5.003;
-use strict;
-
-(my $program_name = $0) =~ s|.*/||;
-
-# Turn off localisation of executable's ouput.
-@ENV{qw(LANGUAGE LANG LC_ALL)} = ('C') x 3;
-
-my $sha_degenerate = "38b060a751ac96384cd9327eb1b1e36a21fdb71114be07434c0cc7bf63f6e1da274edebfe76f65fbd51ad2f14898b95b";
-
-my @Tests =
- (
- ['s1', {IN=> {f=> ''}},
- {OUT=>"$sha_degenerate f\n"}],
- ['s2', {IN=> {f=> 'a'}},
- {OUT=>"54a59b9f22b0b80880d8427e548b7c23abd873486e1f035dce9cd697e85175033caa88e6d57bc35efae0b5afd3145f31 f\n"}],
- ['s3', {IN=> {f=> 'abc'}},
- {OUT=>"cb00753f45a35e8bb5a03d699ac65007272c32ab0eded1631a8b605a43ff5bed8086072ba1e7cc2358baeca134c825a7 f\n"}],
- ['s4',
- {IN=> {f=> 'abcdefghbcdefghicdefghijdefghijkefghijklfghijklmghijklmnhijklmnoijklmnopjklmnopqklmnopqrlmnopqrsmnopqrstnopqrstu'}},
- {OUT=>"09330c33f71147e83d192fc782cd1b4753111b173b3b05d22fa08086e3b0f712fcc7c71a557e2db966c3e9fa91746039 f\n"}],
- ['s8', {IN=> {f=> 'a' x 1000000}},
- {OUT=>"9d0e1809716474cb086e834e310a4a1ced149e9c00f248527972cec5704c2a5b07b8b3dc38ecc4ebae97ddd87f3d8985 f\n"}],
- );
-
-# Insert the `--text' argument for each test.
-my $t;
-foreach $t (@Tests)
- {
- splice @$t, 1, 0, '--text' unless @$t[1] =~ /--check/;
- }
-
-my $save_temps = $ENV{DEBUG};
-my $verbose = $ENV{VERBOSE};
-
-my $prog = $ENV{PROG} || die "$0: \$PROG not specified in environment\n";
-my $fail = run_tests ($program_name, $prog, \@Tests, $save_temps, $verbose);
-exit $fail;
-EOF
diff --git a/tests/misc/sha384sum.pl b/tests/misc/sha384sum.pl
new file mode 100755
index 0000000..547a067
--- /dev/null
+++ b/tests/misc/sha384sum.pl
@@ -0,0 +1,55 @@
+#!/usr/bin/perl
+# Test "sha384sum".
+
+# Copyright (C) 2005-2016 Free Software Foundation, Inc.
+
+# This program is free software: you can redistribute it and/or modify
+# it under the terms of the GNU General Public License as published by
+# the Free Software Foundation, either version 3 of the License, or
+# (at your option) any later version.
+
+# This program is distributed in the hope that it will be useful,
+# but WITHOUT ANY WARRANTY; without even the implied warranty of
+# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
+# GNU General Public License for more details.
+
+# You should have received a copy of the GNU General Public License
+# along with this program. If not, see <http://www.gnu.org/licenses/>.
+
+use strict;
+
+(my $program_name = $0) =~ s|.*/||;
+
+# Turn off localization of executable's output.
+@ENV{qw(LANGUAGE LANG LC_ALL)} = ('C') x 3;
+
+my $sha_degenerate = "38b060a751ac96384cd9327eb1b1e36a21fdb71114be07434c0cc7bf63f6e1da274edebfe76f65fbd51ad2f14898b95b";
+
+my @Tests =
+ (
+ ['s1', {IN=> {f=> ''}},
+ {OUT=>"$sha_degenerate f\n"}],
+ ['s2', {IN=> {f=> 'a'}},
+ {OUT=>"54a59b9f22b0b80880d8427e548b7c23abd873486e1f035dce9cd697e85175033caa88e6d57bc35efae0b5afd3145f31 f\n"}],
+ ['s3', {IN=> {f=> 'abc'}},
+ {OUT=>"cb00753f45a35e8bb5a03d699ac65007272c32ab0eded1631a8b605a43ff5bed8086072ba1e7cc2358baeca134c825a7 f\n"}],
+ ['s4',
+ {IN=> {f=> 'abcdefghbcdefghicdefghijdefghijkefghijklfghijklmghijklmnhijklmnoijklmnopjklmnopqklmnopqrlmnopqrsmnopqrstnopqrstu'}},
+ {OUT=>"09330c33f71147e83d192fc782cd1b4753111b173b3b05d22fa08086e3b0f712fcc7c71a557e2db966c3e9fa91746039 f\n"}],
+ ['s8', {IN=> {f=> 'a' x 1000000}},
+ {OUT=>"9d0e1809716474cb086e834e310a4a1ced149e9c00f248527972cec5704c2a5b07b8b3dc38ecc4ebae97ddd87f3d8985 f\n"}],
+ );
+
+# Insert the '--text' argument for each test.
+my $t;
+foreach $t (@Tests)
+ {
+ splice @$t, 1, 0, '--text' unless @$t[1] =~ /--check/;
+ }
+
+my $save_temps = $ENV{DEBUG};
+my $verbose = $ENV{VERBOSE};
+
+my $prog = 'sha384sum';
+my $fail = run_tests ($program_name, $prog, \@Tests, $save_temps, $verbose);
+exit $fail;
diff --git a/tests/misc/sha512sum b/tests/misc/sha512sum
deleted file mode 100755
index 84f4cfb..0000000
--- a/tests/misc/sha512sum
+++ /dev/null
@@ -1,69 +0,0 @@
-#!/bin/sh
-# Test "sha512sum".
-
-# Copyright (C) 2005 Free Software Foundation, Inc.
-
-# This program is free software; you can redistribute it and/or modify
-# it under the terms of the GNU General Public License as published by
-# the Free Software Foundation; either version 2 of the License, or
-# (at your option) any later version.
-
-# This program is distributed in the hope that it will be useful,
-# but WITHOUT ANY WARRANTY; without even the implied warranty of
-# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
-# GNU General Public License for more details.
-
-# You should have received a copy of the GNU General Public License
-# along with this program; if not, write to the Free Software
-# Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA
-# 02110-1301, USA.
-
-: ${PERL=perl}
-: ${srcdir=.}
-
-$PERL -e 1 > /dev/null 2>&1 || {
- echo 1>&2 "$0: configure didn't find a usable version of Perl," \
- "so can't run this test"
- exit 77
-}
-
-exec $PERL -w -I$srcdir/.. -MCoreutils -- - <<\EOF
-require 5.003;
-use strict;
-
-(my $program_name = $0) =~ s|.*/||;
-
-# Turn off localisation of executable's ouput.
-@ENV{qw(LANGUAGE LANG LC_ALL)} = ('C') x 3;
-
-my $sha_degenerate = "cf83e1357eefb8bdf1542850d66d8007d620e4050b5715dc83f4a921d36ce9ce47d0d13c5d85f2b0ff8318d2877eec2f63b931bd47417a81a538327af927da3e";
-
-my @Tests =
- (
- ['s1', {IN=> {f=> ''}},
- {OUT=>"$sha_degenerate f\n"}],
- ['s2', {IN=> {f=> 'a'}},
- {OUT=>"1f40fc92da241694750979ee6cf582f2d5d7d28e18335de05abc54d0560e0f5302860c652bf08d560252aa5e74210546f369fbbbce8c12cfc7957b2652fe9a75 f\n"}],
- ['s3', {IN=> {f=> 'abc'}},
- {OUT=>"ddaf35a193617abacc417349ae20413112e6fa4e89a97ea20a9eeee64b55d39a2192992a274fc1a836ba3c23a3feebbd454d4423643ce80e2a9ac94fa54ca49f f\n"}],
- ['s4',
- {IN=> {f=> 'abcdefghbcdefghicdefghijdefghijkefghijklfghijklmghijklmnhijklmnoijklmnopjklmnopqklmnopqrlmnopqrsmnopqrstnopqrstu'}},
- {OUT=>"8e959b75dae313da8cf4f72814fc143f8f7779c6eb9f7fa17299aeadb6889018501d289e4900f7e4331b99dec4b5433ac7d329eeb6dd26545e96e55b874be909 f\n"}],
- ['s8', {IN=> {f=> 'a' x 1000000}},
- {OUT=>"e718483d0ce769644e2e42c7bc15b4638e1f98b13b2044285632a803afa973ebde0ff244877ea60a4cb0432ce577c31beb009c5c2c49aa2e4eadb217ad8cc09b f\n"}],
- );
-
-# Insert the `--text' argument for each test.
-my $t;
-foreach $t (@Tests)
- {
- splice @$t, 1, 0, '--text' unless @$t[1] =~ /--check/;
- }
-
-my $save_temps = $ENV{DEBUG};
-my $verbose = $ENV{VERBOSE};
-
-my $prog = $ENV{PROG} || die "$0: \$PROG not specified in environment\n";
-my $fail = run_tests ($program_name, $prog, \@Tests, $save_temps, $verbose);
-exit $fail;
-EOF
diff --git a/tests/misc/sha512sum.pl b/tests/misc/sha512sum.pl
new file mode 100755
index 0000000..7462cb5
--- /dev/null
+++ b/tests/misc/sha512sum.pl
@@ -0,0 +1,55 @@
+#!/usr/bin/perl
+# Test "sha512sum".
+
+# Copyright (C) 2005-2016 Free Software Foundation, Inc.
+
+# This program is free software: you can redistribute it and/or modify
+# it under the terms of the GNU General Public License as published by
+# the Free Software Foundation, either version 3 of the License, or
+# (at your option) any later version.
+
+# This program is distributed in the hope that it will be useful,
+# but WITHOUT ANY WARRANTY; without even the implied warranty of
+# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
+# GNU General Public License for more details.
+
+# You should have received a copy of the GNU General Public License
+# along with this program. If not, see <http://www.gnu.org/licenses/>.
+
+use strict;
+
+(my $program_name = $0) =~ s|.*/||;
+
+# Turn off localization of executable's output.
+@ENV{qw(LANGUAGE LANG LC_ALL)} = ('C') x 3;
+
+my $sha_degenerate = "cf83e1357eefb8bdf1542850d66d8007d620e4050b5715dc83f4a921d36ce9ce47d0d13c5d85f2b0ff8318d2877eec2f63b931bd47417a81a538327af927da3e";
+
+my @Tests =
+ (
+ ['s1', {IN=> {f=> ''}},
+ {OUT=>"$sha_degenerate f\n"}],
+ ['s2', {IN=> {f=> 'a'}},
+ {OUT=>"1f40fc92da241694750979ee6cf582f2d5d7d28e18335de05abc54d0560e0f5302860c652bf08d560252aa5e74210546f369fbbbce8c12cfc7957b2652fe9a75 f\n"}],
+ ['s3', {IN=> {f=> 'abc'}},
+ {OUT=>"ddaf35a193617abacc417349ae20413112e6fa4e89a97ea20a9eeee64b55d39a2192992a274fc1a836ba3c23a3feebbd454d4423643ce80e2a9ac94fa54ca49f f\n"}],
+ ['s4',
+ {IN=> {f=> 'abcdefghbcdefghicdefghijdefghijkefghijklfghijklmghijklmnhijklmnoijklmnopjklmnopqklmnopqrlmnopqrsmnopqrstnopqrstu'}},
+ {OUT=>"8e959b75dae313da8cf4f72814fc143f8f7779c6eb9f7fa17299aeadb6889018501d289e4900f7e4331b99dec4b5433ac7d329eeb6dd26545e96e55b874be909 f\n"}],
+ ['s8', {IN=> {f=> 'a' x 1000000}},
+ {OUT=>"e718483d0ce769644e2e42c7bc15b4638e1f98b13b2044285632a803afa973ebde0ff244877ea60a4cb0432ce577c31beb009c5c2c49aa2e4eadb217ad8cc09b f\n"}],
+ );
+
+# Insert the '--text' argument for each test.
+my $t;
+foreach $t (@Tests)
+ {
+ splice @$t, 1, 0, '--text' unless @$t[1] =~ /--check/;
+ }
+
+my $save_temps = $ENV{DEBUG};
+my $verbose = $ENV{VERBOSE};
+
+my $prog = 'sha512sum';
+my $fail = run_tests ($program_name, $prog, \@Tests, $save_temps, $verbose);
+exit $fail;
diff --git a/tests/misc/shred-exact.sh b/tests/misc/shred-exact.sh
new file mode 100755
index 0000000..8f163cc
--- /dev/null
+++ b/tests/misc/shred-exact.sh
@@ -0,0 +1,49 @@
+#!/bin/sh
+# Test functionality of --exact
+
+# Copyright (C) 2000-2016 Free Software Foundation, Inc.
+
+# This program is free software: you can redistribute it and/or modify
+# it under the terms of the GNU General Public License as published by
+# the Free Software Foundation, either version 3 of the License, or
+# (at your option) any later version.
+
+# This program is distributed in the hope that it will be useful,
+# but WITHOUT ANY WARRANTY; without even the implied warranty of
+# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
+# GNU General Public License for more details.
+
+# You should have received a copy of the GNU General Public License
+# along with this program. If not, see <http://www.gnu.org/licenses/>.
+
+. "${srcdir=.}/tests/init.sh"; path_prepend_ ./src
+print_ver_ shred
+
+
+# make sure that neither --exact nor --zero gobbles a command line argument
+for opt in --exact --zero; do
+ echo a > a || fail=1
+ echo bb > b || fail=1
+ echo ccc > c || fail=1
+
+ shred --remove $opt a b || fail=1
+ test -f a && fail=1
+ test -f b && fail=1
+
+ shred --remove $opt c || fail=1
+ test -f c && fail=1
+done
+
+
+# make sure direct I/O is handled appropriately at end of file
+# Create a 1MiB file as we'll probably not be using blocks larger than that
+# (i.e., we want to test failed writes not at the start).
+truncate -s1MiB file.slop || framework_failure_
+truncate -s+1 file.slop || framework_failure_
+shred --exact -n2 file.slop || fail=1
+
+# make sure direct I/O is handled appropriately at start of file
+truncate -s1 file.slop || framework_failure_
+shred --exact -n2 file.slop || fail=1
+
+Exit $fail
diff --git a/tests/misc/shred-passes.sh b/tests/misc/shred-passes.sh
new file mode 100755
index 0000000..da0946a
--- /dev/null
+++ b/tests/misc/shred-passes.sh
@@ -0,0 +1,83 @@
+#!/bin/sh
+# Verify the operations done by shred
+
+# Copyright (C) 2009-2016 Free Software Foundation, Inc.
+
+# This program is free software: you can redistribute it and/or modify
+# it under the terms of the GNU General Public License as published by
+# the Free Software Foundation, either version 3 of the License, or
+# (at your option) any later version.
+
+# This program is distributed in the hope that it will be useful,
+# but WITHOUT ANY WARRANTY; without even the implied warranty of
+# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
+# GNU General Public License for more details.
+
+# You should have received a copy of the GNU General Public License
+# along with this program. If not, see <http://www.gnu.org/licenses/>.
+
+. "${srcdir=.}/tests/init.sh"; path_prepend_ ./src
+print_ver_ shred
+
+
+# shred a single letter, which should result in
+# 3 random passes and a single rename.
+printf 1 > f || framework_failure_
+echo "\
+shred: f: pass 1/3 (random)...
+shred: f: pass 2/3 (random)...
+shred: f: pass 3/3 (random)...
+shred: f: removing
+shred: f: renamed to 0
+shred: f: removed" > exp || framework_failure_
+
+shred -v -u f 2>out || fail=1
+compare exp out || fail=1
+
+
+# Likewise but for a zero length file
+# to bypass the data passes
+touch f || framework_failure_
+echo "\
+shred: f: removing
+shred: f: renamed to 0
+shred: f: removed" > exp || framework_failure_
+
+shred -v -u f 2>out || fail=1
+compare exp out || fail=1
+
+
+# shred data 20 times and verify the passes used.
+# This would consume all random data between 5.93 and 8.24 inclusive.
+dd bs=100K count=1 if=/dev/zero | tr '\0' 'U' > Us || framework_failure_
+printf 1 > f || framework_failure_
+echo "\
+shred: f: pass 1/20 (random)...
+shred: f: pass 2/20 (ffffff)...
+shred: f: pass 3/20 (924924)...
+shred: f: pass 4/20 (888888)...
+shred: f: pass 5/20 (db6db6)...
+shred: f: pass 6/20 (777777)...
+shred: f: pass 7/20 (492492)...
+shred: f: pass 8/20 (bbbbbb)...
+shred: f: pass 9/20 (555555)...
+shred: f: pass 10/20 (aaaaaa)...
+shred: f: pass 11/20 (random)...
+shred: f: pass 12/20 (6db6db)...
+shred: f: pass 13/20 (249249)...
+shred: f: pass 14/20 (999999)...
+shred: f: pass 15/20 (111111)...
+shred: f: pass 16/20 (000000)...
+shred: f: pass 17/20 (b6db6d)...
+shred: f: pass 18/20 (eeeeee)...
+shred: f: pass 19/20 (333333)...
+shred: f: pass 20/20 (random)...
+shred: f: removing
+shred: f: renamed to 0
+shred: f: removed" > exp || framework_failure_
+
+shred -v -u -n20 -s4096 --random-source=Us f 2>out || fail=1
+compare exp out || fail=1
+
+
+Exit $fail
diff --git a/tests/misc/shred-remove.sh b/tests/misc/shred-remove.sh
new file mode 100755
index 0000000..178f5b5
--- /dev/null
+++ b/tests/misc/shred-remove.sh
@@ -0,0 +1,47 @@
+#!/bin/sh
+# Exercise shred --remove
+
+# Copyright (C) 1999-2016 Free Software Foundation, Inc.
+
+# This program is free software: you can redistribute it and/or modify
+# it under the terms of the GNU General Public License as published by
+# the Free Software Foundation, either version 3 of the License, or
+# (at your option) any later version.
+
+# This program is distributed in the hope that it will be useful,
+# but WITHOUT ANY WARRANTY; without even the implied warranty of
+# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
+# GNU General Public License for more details.
+
+# You should have received a copy of the GNU General Public License
+# along with this program. If not, see <http://www.gnu.org/licenses/>.
+
+. "${srcdir=.}/tests/init.sh"; path_prepend_ ./src
+print_ver_ shred
+skip_if_root_
+
+# The length of the basename is what matters.
+# In this case, shred-4.0l would try to rename the file 256^10 times
+# before terminating.
+file=0123456789
+touch $file || framework_failure_
+chmod u-w $file || framework_failure_
+
+# This would take so long that it appears to infloop
+# when using version from fileutils-4.0k.
+# When the command completes, expect it to fail.
+returns_ 1 shred -u $file > /dev/null 2>&1 || fail=1
+rm -f $file || framework_failure_
+
+# Ensure all --remove methods at least unlink the file
+for mode in '' '=unlink' '=wipe' '=wipesync'; do
+ touch $file || framework_failure_
+ shred -n0 --remove"$mode" $file || fail=1
+ test -e $file && fail=1
+done
+
+# Ensure incorrect params are diagnosed
+touch $file || framework_failure_
+returns_ 1 shred -n0 --remove=none $file 2>/dev/null || fail=1
+
+Exit $fail
diff --git a/tests/misc/shred-size.sh b/tests/misc/shred-size.sh
new file mode 100755
index 0000000..a98b4ba
--- /dev/null
+++ b/tests/misc/shred-size.sh
@@ -0,0 +1,34 @@
+#!/bin/sh
+# Exercise shred --size
+
+# Copyright (C) 2014-2016 Free Software Foundation, Inc.
+
+# This program is free software: you can redistribute it and/or modify
+# it under the terms of the GNU General Public License as published by
+# the Free Software Foundation, either version 3 of the License, or
+# (at your option) any later version.
+
+# This program is distributed in the hope that it will be useful,
+# but WITHOUT ANY WARRANTY; without even the implied warranty of
+# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
+# GNU General Public License for more details.
+
+# You should have received a copy of the GNU General Public License
+# along with this program. If not, see <http://www.gnu.org/licenses/>.
+
+. "${srcdir=.}/tests/init.sh"; path_prepend_ ./src
+print_ver_ shred
+
+# Negative size
+echo "shred: invalid file size: '-2'" > exp || framework_failure_
+echo 1234 > f || framework_failure_
+shred -s-2 f 2>err && fail=1
+compare exp err || fail=1
+
+# Octal/Hex
+shred -s010 f || fail=1
+test $(stat --printf=%s f) = 8 || fail=1
+shred -s0x10 f || fail=1
+test $(stat --printf=%s f) = 16 || fail=1
+
+Exit $fail
diff --git a/tests/misc/shuf b/tests/misc/shuf
deleted file mode 100755
index a2d5891..0000000
--- a/tests/misc/shuf
+++ /dev/null
@@ -1,68 +0,0 @@
-#!/bin/sh
-# Ensure that shuf randomizes its input.
-
-# Copyright (C) 2006, 2007 Free Software Foundation, Inc.
-
-# This program is free software; you can redistribute it and/or modify
-# it under the terms of the GNU General Public License as published by
-# the Free Software Foundation; either version 2 of the License, or
-# (at your option) any later version.
-
-# This program is distributed in the hope that it will be useful,
-# but WITHOUT ANY WARRANTY; without even the implied warranty of
-# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
-# GNU General Public License for more details.
-
-# You should have received a copy of the GNU General Public License
-# along with this program; if not, write to the Free Software
-# Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA
-# 02110-1301, USA.
-
-if test "$VERBOSE" = yes; then
- set -x
- shuf --version
-fi
-
-pwd=`pwd`
-t0=`echo "$0"|sed 's,.*/,,'`.tmp; tmp=$t0/$$
-trap 'status=$?; cd "$pwd" && chmod -R u+rwx $t0 && rm -rf $t0 && exit $status' 0
-trap '(exit $?); exit $?' 1 2 13 15
-
-framework_failure=0
-mkdir -p $tmp || framework_failure=1
-cd $tmp || framework_failure=1
-seq 100 > in || framework_failure=1
-
-if test $framework_failure = 1; then
- echo "$0: failure in testing framework" 1>&2
- (exit 1); exit 1
-fi
-
-fail=0
-
-shuf in >out || fail=1
-
-# Fail if the input is the same as the output.
-# This is a probabilistic test :-)
-# However, the odds of failure are very low: 1 in 100! (~ 1 in 10^158)
-cmp in out > /dev/null && { fail=1; echo "not random?" 1>&2; }
-
-# Fail if the sorted output is not the same as the input.
-sort -n out > out1
-cmp in out1 || { fail=1; echo "not a permutation" 1>&2; }
-
-# Exercise shuf's -i option.
-shuf -i 1-100 > out || fail=1
-cmp in out > /dev/null && { fail=1; echo "not random?" 1>&2; }
-sort -n out > out1
-cmp in out1 || { fail=1; echo "not a permutation" 1>&2; }
-
-# Exercise shuf's -e option.
-t=`shuf -e a b c d e | sort | fmt`
-test "$t" = 'a b c d e' || { fail=1; echo "not a permutation" 1>&2; }
-
-# Before coreutils-6.3, this would infloop.
-# "seq 1860" produces 8193 (8K + 1) bytes of output.
-seq 1860 | shuf > /dev/null || fail=1
-
-(exit $fail); exit $fail
diff --git a/tests/misc/shuf-reservoir.sh b/tests/misc/shuf-reservoir.sh
new file mode 100755
index 0000000..7774e33
--- /dev/null
+++ b/tests/misc/shuf-reservoir.sh
@@ -0,0 +1,73 @@
+#!/bin/sh
+# Exercise shuf's reservoir-sampling code
+# NOTE:
+# These tests do not check valid randomness,
+# they just check memory allocation related code.
+
+# Copyright (C) 2013-2016 Free Software Foundation, Inc.
+
+# This program is free software: you can redistribute it and/or modify
+# it under the terms of the GNU General Public License as published by
+# the Free Software Foundation, either version 3 of the License, or
+# (at your option) any later version.
+
+# This program is distributed in the hope that it will be useful,
+# but WITHOUT ANY WARRANTY; without even the implied warranty of
+# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
+# GNU General Public License for more details.
+
+# You should have received a copy of the GNU General Public License
+# along with this program. If not, see <http://www.gnu.org/licenses/>.
+
+. "${srcdir=.}/tests/init.sh"; path_prepend_ ./src
+print_ver_ shuf
+expensive_
+require_valgrind_
+
+# Only exit with error for leaks when in development mode
+# in which case we enable code to suppress inconsequential leaks.
+grep '^#define lint 1' "$CONFIG_HEADER" && leaklevel=full || leaklevel=summary
+
+# Run "shuf" with specific number of input lines and output lines
+# Check the output for expected number of lines.
+run_shuf_n()
+{
+ INPUT_LINES="$1"
+ OUTPUT_LINES="$2"
+
+ # Critical memory-related bugs will cause a segfault here
+ # (with varying numbers of input/output lines)
+ seq "$INPUT_LINES" | valgrind --leak-check=$leaklevel --error-exitcode=1 \
+ shuf -n "$OUTPUT_LINES" -o "out_${INPUT_LINES}_${OUTPUT_LINES}" || return 1
+
+ EXPECTED_LINES="$OUTPUT_LINES"
+ test "$INPUT_LINES" -lt "$OUTPUT_LINES" && EXPECTED_LINES="$INPUT_LINES"
+
+ # There is no sure way to verify shuffled output (as it is random).
+ # Ensure we have the correct number of all numeric lines non duplicated lines.
+ GOOD_LINES=$(grep '^[0-9][0-9]*$' "out_${INPUT_LINES}_${OUTPUT_LINES}" |
+ sort -un | wc -l) || framework_failure_
+ LINES=$(wc -l < "out_${INPUT_LINES}_${OUTPUT_LINES}") || framework_failure_
+
+ test "$EXPECTED_LINES" -eq "$GOOD_LINES" || return 1
+ test "$EXPECTED_LINES" -eq "$LINES" || return 1
+
+ return 0
+}
+
+# Test multiple combinations of input lines and output lines.
+# (e.g. small number of input lines and large number of output lines,
+# and vice-versa. Also, each reservoir allocation uses a 1024-lines batch,
+# so test 1023/1024/1025 and related values).
+TEST_LINES="0 1 5 1023 1024 1025 3071 3072 3073"
+
+for IN_N in $TEST_LINES; do
+ for OUT_N in $TEST_LINES; do
+ run_shuf_n "$IN_N" "$OUT_N" || {
+ fail=1
+ echo "shuf-reservoir-sampling failed with IN_N=$IN_N OUT_N=$OUT_N" >&2;
+ }
+ done
+done
+
+Exit $fail
diff --git a/tests/misc/shuf.sh b/tests/misc/shuf.sh
new file mode 100755
index 0000000..dcc7e82
--- /dev/null
+++ b/tests/misc/shuf.sh
@@ -0,0 +1,169 @@
+#!/bin/sh
+# Ensure that shuf randomizes its input.
+
+# Copyright (C) 2006-2016 Free Software Foundation, Inc.
+
+# This program is free software: you can redistribute it and/or modify
+# it under the terms of the GNU General Public License as published by
+# the Free Software Foundation, either version 3 of the License, or
+# (at your option) any later version.
+
+# This program is distributed in the hope that it will be useful,
+# but WITHOUT ANY WARRANTY; without even the implied warranty of
+# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
+# GNU General Public License for more details.
+
+# You should have received a copy of the GNU General Public License
+# along with this program. If not, see <http://www.gnu.org/licenses/>.
+
+. "${srcdir=.}/tests/init.sh"; path_prepend_ ./src
+print_ver_ shuf
+getlimits_
+
+seq 100 > in || framework_failure_
+
+shuf in >out || fail=1
+
+# Fail if the input is the same as the output.
+# This is a probabilistic test :-)
+# However, the odds of failure are very low: 1 in 100! (~ 1 in 10^158)
+compare in out > /dev/null && { fail=1; echo "not random?" 1>&2; }
+
+# Fail if the sorted output is not the same as the input.
+sort -n out > out1
+compare in out1 || { fail=1; echo "not a permutation" 1>&2; }
+
+# Exercise shuf's -i option.
+shuf -i 1-100 > out || fail=1
+compare in out > /dev/null && { fail=1; echo "not random?" 1>&2; }
+sort -n out > out1
+compare in out1 || { fail=1; echo "not a permutation" 1>&2; }
+
+# Exercise shuf's -e option.
+t=$(shuf -e a b c d e | sort | fmt)
+test "$t" = 'a b c d e' || { fail=1; echo "not a permutation" 1>&2; }
+
+# coreutils-8.22 dumps core.
+shuf -er
+test $? -eq 1 || fail=1
+
+# coreutils-8.22 and 8.23 dump core
+# with a single redundant operand with --input-range
+shuf -i0-0 1
+test $? -eq 1 || fail=1
+
+# Before coreutils-6.3, this would infloop.
+# "seq 1860" produces 8193 (8K + 1) bytes of output.
+seq 1860 | shuf > /dev/null || fail=1
+
+# coreutils-6.12 and earlier would output a newline terminator, not \0.
+shuf --zero-terminated -i 1-1 > out || fail=1
+printf '1\0' > exp || framework_failure_
+cmp out exp || { fail=1; echo "missing NUL terminator?" 1>&2; }
+
+# Ensure shuf -n operates efficiently for small n. Before coreutils-8.13
+# this would try to allocate $SIZE_MAX * sizeof(size_t)
+timeout 10 shuf -i1-$SIZE_MAX -n2 >/dev/null ||
+ { fail=1; echo "couldn't get a small subset" >&2; }
+
+# Ensure shuf -n0 doesn't read any input or open specified files
+touch unreadable || framework_failure_
+chmod 0 unreadable || framework_failure_
+if ! test -r unreadable; then
+ shuf -n0 unreadable || fail=1
+ { shuf -n1 unreadable || test $? -ne 1; } && fail=1
+fi
+
+# Multiple -n is accepted, should use the smallest value
+shuf -n10 -i0-9 -n3 -n20 > exp || framework_failure_
+c=$(wc -l < exp) || framework_failure_
+test "$c" -eq 3 || { fail=1; echo "Multiple -n failed">&2 ; }
+
+# Test error conditions
+
+# -i and -e must not be used together
+: | { shuf -i0-9 -e A B || test $? -ne 1; } &&
+ { fail=1; echo "shuf did not detect erroneous -e and -i usage.">&2 ; }
+# Test invalid value for -n
+: | { shuf -nA || test $? -ne 1; } &&
+ { fail=1; echo "shuf did not detect erroneous -n usage.">&2 ; }
+# Test multiple -i
+{ shuf -i0-9 -n10 -i8-90 || test $? -ne 1; } &&
+ { fail=1; echo "shuf did not detect multiple -i usage.">&2 ; }
+# Test invalid range
+for ARG in '1' 'A' '1-' '1-A'; do
+ { shuf -i$ARG || test $? -ne 1; } &&
+ { fail=1; echo "shuf did not detect erroneous -i$ARG usage.">&2 ; }
+done
+
+# multiple -o are forbidden
+{ shuf -i0-9 -o A -o B || test $? -ne 1; } &&
+ { fail=1; echo "shuf did not detect erroneous multiple -o usage.">&2 ; }
+# multiple random-sources are forbidden
+{ shuf -i0-9 --random-source A --random-source B || test $? -ne 1; } &&
+ { fail=1; echo "shuf did not detect multiple --random-source usage.">&2 ; }
+
+# Test --repeat option
+
+# --repeat without count should return an indefinite number of lines
+shuf --rep -i 0-10 | head -n 1000 > exp || framework_failure_
+c=$(wc -l < exp) || framework_failure_
+test "$c" -eq 1000 \
+ || { fail=1; echo "--repeat does not repeat indefinitely">&2 ; }
+
+# --repeat can output more values than the input range
+shuf --rep -i0-9 -n1000 > exp || framework_failure_
+c=$(wc -l < exp) || framework_failure_
+test "$c" -eq 1000 || { fail=1; echo "--repeat with --count failed">&2 ; }
+
+# Check output values (this is not bullet-proof, but drawing 1000 values
+# between 0 and 9 should produce all values, unless there's a bug in shuf
+# or a very poor random source, or extremely bad luck)
+c=$(sort -nu exp | paste -s -d ' ') || framework_failure_
+test "$c" = "0 1 2 3 4 5 6 7 8 9" ||
+ { fail=1; echo "--repeat produced bad output">&2 ; }
+
+# check --repeat with non-zero low value
+shuf --rep -i222-233 -n2000 > exp || framework_failure_
+c=$(sort -nu exp | paste -s -d ' ') || framework_failure_
+test "$c" = "222 223 224 225 226 227 228 229 230 231 232 233" ||
+ { fail=1; echo "--repeat produced bad output with non-zero low">&2 ; }
+
+# --repeat,-i,count=0 should not fail and produce no output
+shuf --rep -i0-9 -n0 > exp || framework_failure_
+# file size should be zero (no output from shuf)
+test \! -s exp ||
+ { fail=1; echo "--repeat,-i0-9,-n0 produced bad output">&2 ; }
+
+# --repeat with -e, without count, should repeat indefinitely
+shuf --rep -e A B C D | head -n 1000 > exp || framework_failure_
+c=$(wc -l < exp) || framework_failure_
+test "$c" -eq 1000 ||
+ { fail=1; echo "--repeat,-e does not repeat indefinitely">&2 ; }
+
+# --repeat with STDIN, without count, should repeat indefinitely
+printf "A\nB\nC\nD\nE\n" | shuf --rep | head -n 1000 > exp || framework_failure_
+c=$(wc -l < exp) || framework_failure_
+test "$c" -eq 1000 ||
+ { fail=1; echo "--repeat,STDIN does not repeat indefinitely">&2 ; }
+
+# --repeat with STDIN,count - can return move values than input lines
+printf "A\nB\nC\nD\nE\n" | shuf --rep -n2000 > exp || framework_failure_
+c=$(wc -l < exp) || framework_failure_
+test "$c" -eq 2000 ||
+ { fail=1; echo "--repeat,STDIN,count failed">&2 ; }
+
+# Check output values (this is not bullet-proof, but drawing 2000 values
+# between A and E should produce all values, unless there's a bug in shuf
+# or a very poor random source, or extremely bad luck)
+c=$(sort -u exp | paste -s -d ' ') || framework_failure_
+test "$c" = "A B C D E" ||
+ { fail=1; echo "--repeat,STDIN,count produced bad output">&2 ; }
+
+# --repeat,stdin,count=0 should not fail and produce no output
+printf "A\nB\nC\nD\nE\n" | shuf --rep -n0 > exp || framework_failure_
+# file size should be zero (no output from shuf)
+test \! -s exp ||
+ { fail=1; echo "--repeat,STDIN,-n0 produced bad output">&2 ; }
+
+Exit $fail
diff --git a/tests/misc/sort-NaN-infloop.sh b/tests/misc/sort-NaN-infloop.sh
new file mode 100755
index 0000000..25e7025
--- /dev/null
+++ b/tests/misc/sort-NaN-infloop.sh
@@ -0,0 +1,28 @@
+#!/bin/sh
+# exercise the NaN-infloop bug in coreutils-8.13
+
+# Copyright (C) 2011-2016 Free Software Foundation, Inc.
+
+# This program is free software: you can redistribute it and/or modify
+# it under the terms of the GNU General Public License as published by
+# the Free Software Foundation, either version 3 of the License, or
+# (at your option) any later version.
+
+# This program is distributed in the hope that it will be useful,
+# but WITHOUT ANY WARRANTY; without even the implied warranty of
+# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
+# GNU General Public License for more details.
+
+# You should have received a copy of the GNU General Public License
+# along with this program. If not, see <http://www.gnu.org/licenses/>.
+
+. "${srcdir=.}/tests/init.sh"; path_prepend_ ./src
+print_ver_ sort
+
+echo nan > F || fail=1
+printf 'nan\nnan\n' > exp || fail=1
+timeout 10 sort -g -m F F > out || fail=1
+
+compare exp out || fail=1
+
+Exit $fail
diff --git a/tests/misc/sort-benchmark-random.sh b/tests/misc/sort-benchmark-random.sh
new file mode 100755
index 0000000..f91585a
--- /dev/null
+++ b/tests/misc/sort-benchmark-random.sh
@@ -0,0 +1,53 @@
+#!/bin/sh
+# Benchmark sort on randomly generated data.
+
+# Copyright (C) 2010-2016 Free Software Foundation, Inc.
+
+# This program is free software: you can redistribute it and/or modify
+# it under the terms of the GNU General Public License as published by
+# the Free Software Foundation, either version 3 of the License, or
+# (at your option) any later version.
+
+# This program is distributed in the hope that it will be useful,
+# but WITHOUT ANY WARRANTY; without even the implied warranty of
+# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
+# GNU General Public License for more details.
+
+# You should have received a copy of the GNU General Public License
+# along with this program. If not, see <http://www.gnu.org/licenses/>.
+
+# Written by Glen Lenker.
+
+. "${srcdir=.}/tests/init.sh"; path_prepend_ ./src
+print_ver_ sort
+
+very_expensive_
+
+perl -e '
+my $num_lines = 500000;
+my $length = 100;
+
+for (my $i=0; $i < $num_lines; $i++)
+{
+ for (my $j=0; $j < $length; $j++)
+ {
+ printf "%c", 32 + rand(94);
+ }
+ print "\n";
+}' > in || framework_failure_
+
+# We need to generate a lot of data for sort to show a noticeable
+# improvement in performance. Sorting it in PERL may take awhile.
+
+perl -e '
+open (FILE, "<in");
+my @list = <FILE>;
+print sort(@list);
+close (FILE);
+' > exp || framework_failure_
+
+time sort in > out || fail=1
+
+compare exp out || fail=1
+
+Exit $fail
diff --git a/tests/misc/sort-compress b/tests/misc/sort-compress
deleted file mode 100755
index 0cafb2e..0000000
--- a/tests/misc/sort-compress
+++ /dev/null
@@ -1,92 +0,0 @@
-#!/bin/sh
-# Test use of compression by sort
-
-# Copyright (C) 2007 Free Software Foundation, Inc.
-
-# This program is free software; you can redistribute it and/or modify
-# it under the terms of the GNU General Public License as published by
-# the Free Software Foundation; either version 2 of the License, or
-# (at your option) any later version.
-
-# This program is distributed in the hope that it will be useful,
-# but WITHOUT ANY WARRANTY; without even the implied warranty of
-# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
-# GNU General Public License for more details.
-
-# You should have received a copy of the GNU General Public License
-# along with this program; if not, write to the Free Software
-# Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA
-# 02110-1301, USA.
-
-if test "$VERBOSE" = yes; then
- set -x
- sort --version
-fi
-
-pwd=`pwd`
-t0=`echo "$0"|sed 's,.*/,,'`.tmp; tmp=$t0/$$
-trap 'status=$?; cd "$pwd" && chmod -R u+rwx $t0 && rm -rf $t0 && exit $status' 0
-trap '(exit $?); exit $?' 1 2 13 15
-
-framework_failure=0
-mkdir -p $tmp || framework_failure=1
-cd $tmp || framework_failure=1
-seq -w 2000 > exp || framework_failure=1
-tac exp > in || framework_failure=1
-SORT=$abs_top_builddir/src/sort
-
-if test $framework_failure = 1; then
- echo "$0: failure in testing framework" 1>&2
- (exit 1); exit 1
-fi
-
-fail=0
-
-# This should force the use of temp files compressed with the default gzip
-sort -S 1k in > out || fail=1
-cmp exp out || fail=1
-test $fail = 1 && diff out exp 2> /dev/null
-
-# Create our own gzip program that will be used as the default
-cat <<\EOF > gzip || fail=1
-#!/bin/sh
-tr 41 14
-touch ok
-EOF
-
-chmod +x gzip
-
-# This will find our new gzip in PATH
-PATH=.:$PATH sort -S 1k --compress-program=gzip in > out || fail=1
-cmp exp out || fail=1
-test $fail = 1 && diff out exp 2> /dev/null
-test -f ok || fail=1
-rm -f ok
-
-# This is to make sure it works with no compression.
-PATH=.:$PATH sort -S 1k in > out || fail=1
-cmp exp out || fail=1
-test $fail = 1 && diff out exp 2> /dev/null
-test -f ok && fail=1
-
-# This is to make sure we can use something other than gzip
-mv gzip dzip || fail=1
-sort --compress-program=./dzip -S 1k in > out || fail=1
-cmp exp out || fail=1
-test $fail = 1 && diff out exp 2> /dev/null
-test -f ok || fail=1
-rm -f ok
-
-# Make sure it can find other programs in PATH correctly
-PATH=.:$PATH sort --compress-program=dzip -S 1k in > out || fail=1
-cmp exp out || fail=1
-test $fail = 1 && diff out exp 2> /dev/null
-test -f ok || fail=1
-rm -f dzip ok
-
-# This is to make sure sort functions if it can't find the default gzip
-PATH=. "$SORT" -S 1k in > out || fail=1
-cmp exp out || fail=1
-test $fail = 1 && diff out exp 2> /dev/null
-
-(exit $fail); exit $fail
diff --git a/tests/misc/sort-compress-hang.sh b/tests/misc/sort-compress-hang.sh
new file mode 100755
index 0000000..109b14e
--- /dev/null
+++ b/tests/misc/sort-compress-hang.sh
@@ -0,0 +1,57 @@
+#!/bin/sh
+# Test for sort --compress hang
+
+# Copyright (C) 2010-2016 Free Software Foundation, Inc.
+
+# This program is free software: you can redistribute it and/or modify
+# it under the terms of the GNU General Public License as published by
+# the Free Software Foundation, either version 3 of the License, or
+# (at your option) any later version.
+
+# This program is distributed in the hope that it will be useful,
+# but WITHOUT ANY WARRANTY; without even the implied warranty of
+# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
+# GNU General Public License for more details.
+
+# You should have received a copy of the GNU General Public License
+# along with this program. If not, see <http://www.gnu.org/licenses/>.
+
+. "${srcdir=.}/tests/init.sh"; path_prepend_ ./src
+print_ver_ sort
+very_expensive_
+
+cat <<EOF >compress || framework_failure_
+#!$SHELL
+tr 41 14 || exit
+touch ok
+EOF
+
+chmod +x compress
+
+seq -w 200000 > exp || fail=1
+tac exp > in || fail=1
+
+# When the bug occurs, 'sort' hangs forever. When it doesn't occur,
+# 'sort' could be running slowly on an overburdened machine.
+# On a circa-2010 Linux server using NFS, a successful test completes
+# in about 170 seconds, so specify 1700 seconds as a safety margin.
+# Note --foreground will not kill any of the "compress" sub processes,
+# assuming they're well behaved and exit in a timely manner, but will
+# allow this command to be responsive to Ctrl-C
+timeout --foreground 1700 sort --compress-program=./compress -S 1k in > out \
+ || fail=1
+
+compare exp out || fail=1
+test -f ok || fail=1
+rm -f compress ok
+
+# If $TMPDIR is relative, give subprocesses time to react when 'sort' exits.
+# Otherwise, under NFS, when 'sort' unlinks the temp files and they
+# are renamed to .nfsXXXX instead of being removed, the parent cleanup
+# of this directory will fail because the files are still open.
+case $TMPDIR in
+/*) ;;
+*) sleep 1;;
+esac
+
+Exit $fail
diff --git a/tests/misc/sort-compress-proc.sh b/tests/misc/sort-compress-proc.sh
new file mode 100755
index 0000000..aa58ee1
--- /dev/null
+++ b/tests/misc/sort-compress-proc.sh
@@ -0,0 +1,90 @@
+#!/bin/sh
+# Test use of compression subprocesses by sort
+
+# Copyright (C) 2010-2016 Free Software Foundation, Inc.
+
+# This program is free software: you can redistribute it and/or modify
+# it under the terms of the GNU General Public License as published by
+# the Free Software Foundation, either version 3 of the License, or
+# (at your option) any later version.
+
+# This program is distributed in the hope that it will be useful,
+# but WITHOUT ANY WARRANTY; without even the implied warranty of
+# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
+# GNU General Public License for more details.
+
+# You should have received a copy of the GNU General Public License
+# along with this program. If not, see <http://www.gnu.org/licenses/>.
+
+. "${srcdir=.}/tests/init.sh"; path_prepend_ ./src
+print_ver_ sort
+expensive_
+
+# Terminate any background processes
+cleanup_() { kill $pid 2>/dev/null && wait $pid; }
+
+SORT_FAILURE=2
+
+seq -w 2000 > exp || fail=1
+tac exp > in || fail=1
+insize=$(stat -c %s - <in) || fail=1
+
+# This compressor's behavior is adjustable via environment variables.
+export PRE_COMPRESS=
+export POST_COMPRESS=
+
+printf '%s\n' '#!'"$SHELL" >compress || framework_failure_
+cat <<\EOF >>compress || framework_failure_
+eval "$PRE_COMPRESS"
+tr 41 14 || exit
+eval "$POST_COMPRESS"
+EOF
+
+chmod +x compress
+
+# "Impatient exit" tests
+#
+# In these test cases, the biggest compressor (or decompressor) exits
+# with nonzero status, after sleeping a bit. Until coreutils 8.7
+# 'sort' impatiently exited without waiting for its decompression
+# subprocesses in these cases. Check compression too, while we're here.
+#
+for compress_arg in '' '-d'
+do
+ POST_COMPRESS='
+ test "X$1" != "X'$compress_arg'" || {
+ test "X$1" = "X" && exec <&1
+ size=$(stat -c %s -)
+ exec >/dev/null 2>&1 <&1 || exit
+ expr $size "<" '"$insize"' / 2 || { sleep 1; exit 1; }
+ }
+ ' sort --compress-program=./compress -S 1k --batch-size=2 in > out
+ test $? -eq $SORT_FAILURE || fail=1
+done
+
+# "Pre-exec child" test
+#
+# Ignore a random child process created before 'sort' was exec'ed.
+# This bug was also present in coreutils 8.7.
+#
+( (sleep 1; exec false) & pid=$!
+ PRE_COMPRESS='test -f ok || sleep 2'
+ POST_COMPRESS='touch ok'
+ exec sort --compress-program=./compress -S 1k in >out
+) || fail=1
+compare exp out || fail=1
+test -f ok || fail=1
+rm -f ok
+
+rm -f compress
+
+# If $TMPDIR is relative, give subprocesses time to react when 'sort' exits.
+# Otherwise, under NFS, when 'sort' unlinks the temp files and they
+# are renamed to .nfsXXXX instead of being removed, the parent cleanup
+# of this directory will fail because the files are still open.
+case $TMPDIR in
+/*) ;;
+*) sleep 1;;
+esac
+
+Exit $fail
diff --git a/tests/misc/sort-compress.sh b/tests/misc/sort-compress.sh
new file mode 100755
index 0000000..537480a
--- /dev/null
+++ b/tests/misc/sort-compress.sh
@@ -0,0 +1,72 @@
+#!/bin/sh
+# Test use of compression by sort
+
+# Copyright (C) 2007-2016 Free Software Foundation, Inc.
+
+# This program is free software: you can redistribute it and/or modify
+# it under the terms of the GNU General Public License as published by
+# the Free Software Foundation, either version 3 of the License, or
+# (at your option) any later version.
+
+# This program is distributed in the hope that it will be useful,
+# but WITHOUT ANY WARRANTY; without even the implied warranty of
+# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
+# GNU General Public License for more details.
+
+# You should have received a copy of the GNU General Public License
+# along with this program. If not, see <http://www.gnu.org/licenses/>.
+
+. "${srcdir=.}/tests/init.sh"; path_prepend_ ./src
+print_ver_ sort
+require_trap_signame_
+
+seq -w 2000 > exp || framework_failure_
+tac exp > in || framework_failure_
+
+# This should force the use of temp files
+sort -S 1k in > out || fail=1
+compare exp out || fail=1
+
+# Create our own gzip program that will be used as the default
+cat <<EOF > gzip || fail=1
+#!$SHELL
+tr 41 14
+touch ok
+EOF
+
+chmod +x gzip
+
+# Ensure 'sort' is immune to parent's SIGCHLD handler
+# Use a subshell and an exec to work around a bug in FreeBSD 5.0 /bin/sh.
+(
+ trap '' CHLD
+
+ # This should force the use of child processes for "compression"
+ PATH=.:$PATH exec sort -S 1k --compress-program=gzip in > /dev/null
+) || fail=1
+
+# This will find our new gzip in PATH
+PATH=.:$PATH sort -S 1k --compress-program=gzip in > out || fail=1
+compare exp out || fail=1
+test -f ok || fail=1
+rm -f ok
+
+# This is to make sure it works with no compression.
+PATH=.:$PATH sort -S 1k in > out || fail=1
+compare exp out || fail=1
+test -f ok && fail=1
+
+# This is to make sure we can use something other than gzip
+mv gzip dzip || fail=1
+sort --compress-program=./dzip -S 1k in > out || fail=1
+compare exp out || fail=1
+test -f ok || fail=1
+rm -f ok
+
+# Make sure it can find other programs in PATH correctly
+PATH=.:$PATH sort --compress-program=dzip -S 1k in > out || fail=1
+compare exp out || fail=1
+test -f ok || fail=1
+rm -f dzip ok
+
+Exit $fail
diff --git a/tests/misc/sort-continue.sh b/tests/misc/sort-continue.sh
new file mode 100755
index 0000000..df75419
--- /dev/null
+++ b/tests/misc/sort-continue.sh
@@ -0,0 +1,47 @@
+#!/bin/sh
+# Tests for file descriptor exhaustion.
+
+# Copyright (C) 2009-2016 Free Software Foundation, Inc.
+
+# This program is free software: you can redistribute it and/or modify
+# it under the terms of the GNU General Public License as published by
+# the Free Software Foundation, either version 3 of the License, or
+# (at your option) any later version.
+
+# This program is distributed in the hope that it will be useful,
+# but WITHOUT ANY WARRANTY; without even the implied warranty of
+# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
+# GNU General Public License for more details.
+
+# You should have received a copy of the GNU General Public License
+# along with this program. If not, see <http://www.gnu.org/licenses/>.
+
+. "${srcdir=.}/tests/init.sh"; path_prepend_ ./src
+print_ver_ sort
+
+# Skip the test when running under valgrind.
+( ulimit -n 6; sort 3<&- 4<&- 5<&- < /dev/null ) \
+ || skip_ 'fd-limited sort failed; are you running under valgrind?'
+
+for i in $(seq 31); do
+ echo $i | tee -a in > __test.$i || framework_failure_
+done
+
+# glob before ulimit to avoid issues on bash 3.2 on OS X 10.6.8 at least
+test_files=$(echo __test.*)
+
+(
+ ulimit -n 6
+ sort -n -m $test_files 3<&- 4<&- 5<&- < /dev/null > out
+) &&
+compare in out ||
+ { fail=1; echo 'file descriptor exhaustion not handled' 1>&2; }
+
+echo 32 | tee -a in > in1
+(
+ ulimit -n 6
+ sort -n -m $test_files - 3<&- 4<&- 5<&- < in1 > out
+) &&
+compare in out || { fail=1; echo 'stdin not handled properly' 1>&2; }
+
+Exit $fail
diff --git a/tests/misc/sort-debug-keys.sh b/tests/misc/sort-debug-keys.sh
new file mode 100755
index 0000000..dc02be8
--- /dev/null
+++ b/tests/misc/sort-debug-keys.sh
@@ -0,0 +1,337 @@
+#!/bin/sh
+# Test annotation of sort keys
+
+# Copyright (C) 2010-2016 Free Software Foundation, Inc.
+
+# This program is free software: you can redistribute it and/or modify
+# it under the terms of the GNU General Public License as published by
+# the Free Software Foundation, either version 3 of the License, or
+# (at your option) any later version.
+
+# This program is distributed in the hope that it will be useful,
+# but WITHOUT ANY WARRANTY; without even the implied warranty of
+# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
+# GNU General Public License for more details.
+
+# You should have received a copy of the GNU General Public License
+# along with this program. If not, see <http://www.gnu.org/licenses/>.
+
+. "${srcdir=.}/tests/init.sh"; path_prepend_ ./src
+print_ver_ sort printf
+
+number() { cat -n | sed 's/^ *//'; }
+
+cat <<\EOF > exp
+1
+ ^ no match for key
+
+^ no match for key
+44
+ ^ no match for key
+33
+ ^ no match for key
+2
+ ^ no match for key
+1
+ ^ no match for key
+
+^ no match for key
+44
+ ^ no match for key
+33
+ ^ no match for key
+2
+ ^ no match for key
+
+^ no match for key
+1
+_
+2
+_
+33
+__
+44
+__
+2>
+ ^ no match for key
+3>1
+ _
+1>2
+ _
+1
+ ^ no match for key
+
+^ no match for key
+44
+ ^ no match for key
+33
+ ^ no match for key
+2
+ ^ no match for key
+1
+ ^ no match for key
+
+^ no match for key
+44
+ ^ no match for key
+33
+ ^ no match for key
+2
+ ^ no match for key
+
+^ no match for key
+1
+_
+2
+_
+33
+__
+44
+__
+2>
+ ^ no match for key
+3>1
+ _
+1>2
+ _
+1
+ ^ no match for key
+
+^ no match for key
+44
+ ^ no match for key
+33
+ ^ no match for key
+2
+ ^ no match for key
+1
+ ^ no match for key
+
+^ no match for key
+44
+ ^ no match for key
+33
+ ^ no match for key
+2
+ ^ no match for key
+
+^ no match for key
+1
+_
+2
+_
+33
+__
+44
+__
+2>
+ ^ no match for key
+3>1
+ _
+1>2
+ _
+
+^ no match for key
+JAN
+___
+FEB
+___
+FEB
+ ^ no match for key
+
+^ no match for key
+JAN
+ ^ no match for key
+JAZZ
+^ no match for key
+
+^ no match for key
+JAN
+___
+FEB
+___
+2>JAZZ
+ ^ no match for key
+3>
+ ^ no match for key
+4>JAN
+ ___
+1>FEB
+ ___
+
+^ no match for key
+JANZ
+___
+JAN
+___
+FEB
+___
+3>
+ ^ no match for key
+2>JANZ
+ ___
+4>JAN
+ ___
+1>FEB
+ ___
+ 1.2ignore
+ ___
+ 1.1e4ignore
+ _____
+>>a
+___
+>b
+__
+a
+ ^ no match for key
+
+^ no match for key
+a
+_
+b
+_
+-3
+__
+-2
+__
+-0
+__
+--Mi-1
+^ no match for key
+-0
+__
+1
+_
+ 1
+ _
+__
+1
+_
+_
+ 1
+ _
+1
+_
+ 1
+__
+1
+_
+2,5
+_
+2.4
+___
+2.,,3
+__
+2.4
+___
+2,,3
+_
+2.4
+___
+1a
+_
+2b
+_
+>a
+ _
+A>chr10
+ ^ no match for key
+B>chr1
+ ^ no match for key
+1 2
+ __
+1 3
+ __
+EOF
+
+(
+for type in n h g; do
+ printf '1\n\n44\n33\n2\n' | sort -s -k2$type --debug
+ printf '1\n\n44\n33\n2\n' | sort -s -k1.3$type --debug
+ printf '1\n\n44\n33\n2\n' | sort -s -k1$type --debug
+ printf '2\n\n1\n' | number | sort -s -k2g --debug
+done
+
+printf 'FEB\n\nJAN\n' | sort -s -k1M --debug
+printf 'FEB\n\nJAN\n' | sort -s -k2,2M --debug
+printf 'FEB\nJAZZ\n\nJAN\n' | sort -s -k1M --debug
+printf 'FEB\nJAZZ\n\nJAN\n' | number | sort -s -k2,2M --debug
+printf 'FEB\nJANZ\n\nJAN\n' | sort -s -k1M --debug
+printf 'FEB\nJANZ\n\nJAN\n' | number | sort -s -k2,2M --debug
+
+printf ' 1.2ignore\n 1.1e4ignore\n' | sort -s -g --debug
+
+printf '\tb\n\t\ta\n' | sort -s -d --debug # ignore = 1
+
+printf 'a\n\n' | sort -s -k2,2 --debug #lena = 0
+
+printf 'b\na\n' | sort -s -k1 --debug #otherwise key compare
+
+printf -- '-0\n1\n-2\n--Mi-1\n-3\n-0\n' | sort -s --debug -k1,1h
+
+printf ' 1\n1\n' | sort -b --debug
+printf ' 1\n1\n' | sort -sb --debug
+printf ' 1\n1\n' | sort --debug
+
+# strnumcmp is a bit weird, so we don't match exactly
+printf '2,5\n2.4\n' | sort -s -k1n --debug
+printf '2.,,3\n2.4\n' | sort -s -k1n --debug
+printf '2,,3\n2.4\n' | sort -s -k1n --debug
+
+# -z means we convert \0 to \n
+env printf '1a\x002b\x00' | sort -s -n -z --debug
+
+# Check that \0 and \t intermix.
+printf '\0\ta\n' | sort -s -k2b,2 --debug | tr -d '\0'
+
+# Check that key end before key start is not underlined
+printf 'A\tchr10\nB\tchr1\n' | sort -s -k2.4b,2.3n --debug
+
+# Ensure that -b applied before -k offsets
+printf '1 2\n1 3\n' | sort -s -k1.2b --debug
+) > out
+
+compare exp out || fail=1
+
+cat <<\EOF > exp
+ 1²---++3 1,234 Mi
+ _
+ _________
+________________________
+ 1²---++3 1,234 Mi
+ _____
+ ________
+_______________________
++1234 1234Gi 1,234M
+^ no match for key
+_____
+^ no match for key
+ ____
+ ____
+ _____
+ _____
+ _____
+ ______
+___________________
+EOF
+
+unset LC_ALL
+f=$LOCALE_FR_UTF8
+
+: ${LOCALE_FR_UTF8=none}
+if test "$LOCALE_FR_UTF8" != "none"; then
+ (
+ echo ' 1²---++3 1,234 Mi' |
+ LC_ALL=C sort --debug -k2g -k1b,1
+ echo ' 1²---++3 1,234 Mi' |
+ LC_COLLATE=$f LC_CTYPE=$f LC_NUMERIC=$f LC_MESSAGES=C \
+ sort --debug -k2g -k1b,1
+ echo '+1234 1234Gi 1,234M' |
+ LC_COLLATE=$f LC_CTYPE=$f LC_NUMERIC=$f LC_MESSAGES=C \
+ sort --debug -k1,1n -k1,1g \
+ -k1,1h -k2,2n -k2,2g -k2,2h -k3,3n -k3,3g -k3,3h
+ ) > out
+ compare exp out || fail=1
+fi
+
+Exit $fail
diff --git a/tests/misc/sort-debug-warn.sh b/tests/misc/sort-debug-warn.sh
new file mode 100755
index 0000000..a31132d
--- /dev/null
+++ b/tests/misc/sort-debug-warn.sh
@@ -0,0 +1,92 @@
+#!/bin/sh
+# Test warnings for sort options
+
+# Copyright (C) 2010-2016 Free Software Foundation, Inc.
+
+# This program is free software: you can redistribute it and/or modify
+# it under the terms of the GNU General Public License as published by
+# the Free Software Foundation, either version 3 of the License, or
+# (at your option) any later version.
+
+# This program is distributed in the hope that it will be useful,
+# but WITHOUT ANY WARRANTY; without even the implied warranty of
+# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
+# GNU General Public License for more details.
+
+# You should have received a copy of the GNU General Public License
+# along with this program. If not, see <http://www.gnu.org/licenses/>.
+
+. "${srcdir=.}/tests/init.sh"; path_prepend_ ./src
+print_ver_ sort
+
+cat <<\EOF > exp
+sort: using simple byte comparison
+sort: key 1 has zero width and will be ignored
+sort: using simple byte comparison
+sort: key 1 has zero width and will be ignored
+sort: using simple byte comparison
+sort: key 1 is numeric and spans multiple fields
+sort: using simple byte comparison
+sort: options '-bghMRrV' are ignored
+sort: using simple byte comparison
+sort: options '-bghMRV' are ignored
+sort: option '-r' only applies to last-resort comparison
+sort: using simple byte comparison
+sort: option '-r' only applies to last-resort comparison
+sort: using simple byte comparison
+sort: options '-bg' are ignored
+sort: using simple byte comparison
+sort: using simple byte comparison
+sort: option '-b' is ignored
+sort: using simple byte comparison
+sort: using simple byte comparison
+sort: using simple byte comparison
+sort: leading blanks are significant in key 1; consider also specifying 'b'
+sort: using simple byte comparison
+sort: leading blanks are significant in key 1; consider also specifying 'b'
+sort: option '-d' is ignored
+sort: using simple byte comparison
+sort: leading blanks are significant in key 1; consider also specifying 'b'
+sort: option '-i' is ignored
+sort: using simple byte comparison
+sort: using simple byte comparison
+sort: using simple byte comparison
+sort: failed to set locale; using simple byte comparison
+EOF
+
+sort -s -k2,1 --debug /dev/null 2>>out
+sort -s -k2,1n --debug /dev/null 2>>out
+sort -s -k1,2n --debug /dev/null 2>>out
+sort -s -rRVMhgb -k1,1n --debug /dev/null 2>>out
+sort -rRVMhgb -k1,1n --debug /dev/null 2>>out
+sort -r -k1,1n --debug /dev/null 2>>out
+sort -gbr -k1,1n -k1,1r --debug /dev/null 2>>out
+sort -b -k1b,1bn --debug /dev/null 2>>out # no warning
+sort -b -k1,1bn --debug /dev/null 2>>out
+sort -b -k1,1bn -k2b,2 --debug /dev/null 2>>out # no warning
+sort -r -k1,1r --debug /dev/null 2>>out # no warning for redundant options
+sort -i -k1,1i --debug /dev/null 2>>out # no warning
+sort -d -k1,1b --debug /dev/null 2>>out
+sort -i -k1,1d --debug /dev/null 2>>out
+sort -r --debug /dev/null 2>>out #no warning
+sort -rM --debug /dev/null 2>>out #no warning
+sort -rM -k1,1 --debug /dev/null 2>>out #no warning
+LC_ALL=missing sort --debug /dev/null 2>>out
+
+compare exp out || fail=1
+
+cat <<\EOF > exp
+sort: using simple byte comparison
+sort: key 1 is numeric and spans multiple fields
+sort: obsolescent key '+2 -1' used; consider '-k 3,1' instead
+sort: key 2 has zero width and will be ignored
+sort: leading blanks are significant in key 2; consider also specifying 'b'
+sort: option '-b' is ignored
+sort: option '-r' only applies to last-resort comparison
+EOF
+
+sort --debug -rb -k2n +2.2 -1b /dev/null 2>out
+
+compare exp out || fail=1
+
+Exit $fail
diff --git a/tests/misc/sort-discrim.sh b/tests/misc/sort-discrim.sh
new file mode 100755
index 0000000..eb682d7
--- /dev/null
+++ b/tests/misc/sort-discrim.sh
@@ -0,0 +1,89 @@
+#!/bin/sh
+# Test discriminator-based sorting.
+
+# Copyright (C) 2012-2016 Free Software Foundation, Inc.
+
+# This program is free software: you can redistribute it and/or modify
+# it under the terms of the GNU General Public License as published by
+# the Free Software Foundation, either version 3 of the License, or
+# (at your option) any later version.
+
+# This program is distributed in the hope that it will be useful,
+# but WITHOUT ANY WARRANTY; without even the implied warranty of
+# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
+# GNU General Public License for more details.
+
+# You should have received a copy of the GNU General Public License
+# along with this program. If not, see <http://www.gnu.org/licenses/>.
+
+. "${srcdir=.}/tests/init.sh"; path_prepend_ ./src
+print_ver_ sort
+
+# Set limit variables.
+getlimits_
+
+# These tests are designed for a 'sort' implementation that uses a
+# discriminator, i.e., a brief summary of a key that may have lost info,
+# but whose ordering is consistent with that of the original key.
+# The tests are useful even if 'sort' does not use this representation.
+
+# Test lexicographic sorting.
+
+# A long-enough string so that it overruns a small discriminator buffer size.
+long_prefix='aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa'
+seq -f "$long_prefix%5.0f" 10000 > exp || fail=1
+sort -R exp | LC_ALL=C sort > out || fail=1
+compare exp out || fail=1
+
+
+# Test numeric sorting.
+
+# These tests are designed for an internal representation that ordinarily
+# looks at the number plus two decimal digits, but if -h is
+# used it looks at one decimal place plus a 4-bit SI prefix value.
+# In both cases, there's an extra factor of 2 for the sign.
+# Note INTMAX_MAX is used below as that's that largest number
+# expr can handle on all systems (without GMP).
+max_int100=$(expr $INTMAX_MAX / 100) &&
+max_frac100=$(printf '%.2d' $(expr $INTMAX_MAX % 100)) &&
+max_int160=$(expr $INTMAX_MAX / 160) &&
+max_frac160=$(expr $INTMAX_MAX / 16 % 10) &&
+{ printf -- "\
+ -$UINTMAX_OFLOW
+ -$UINTMAX_MAX
+ -${max_int100}0.1
+ -${max_int100}0
+ -${max_int100}0.0
+ -${max_int160}0.1
+ -${max_int160}0
+ -${max_int160}0.0
+ -$max_int100.${max_frac100}1
+ -$max_int100.$max_frac100
+ -$max_int160.${max_frac160}1
+ -$max_int160.$max_frac160
+" &&
+ seq -- -10 .001 10 &&
+ printf "\
+ $max_int160
+ $max_int160.$max_frac160
+ $max_int160.${max_frac160}1
+ $max_int100
+ $max_int100.$max_frac100
+ $max_int100.${max_frac100}1
+ ${max_int160}0
+ ${max_int160}0.0
+ ${max_int160}0.1
+ ${max_int100}0
+ ${max_int100}0.0
+ ${max_int100}0.1
+ $UINTMAX_MAX
+ $UINTMAX_OFLOW
+"
+} > exp || fail=1
+
+for opts in -n -h; do
+ sort -R exp | LC_ALL=C sort $opts > out || fail=1
+ compare exp out || fail=1
+done
+
+Exit $fail
diff --git a/tests/misc/sort-exit-early.sh b/tests/misc/sort-exit-early.sh
new file mode 100755
index 0000000..08a1be8
--- /dev/null
+++ b/tests/misc/sort-exit-early.sh
@@ -0,0 +1,37 @@
+#!/bin/sh
+# Test 'sort' exits early on inaccessible inputs or output
+
+# Copyright (C) 2012-2016 Free Software Foundation, Inc.
+
+# This program is free software: you can redistribute it and/or modify
+# it under the terms of the GNU General Public License as published by
+# the Free Software Foundation, either version 3 of the License, or
+# (at your option) any later version.
+
+# This program is distributed in the hope that it will be useful,
+# but WITHOUT ANY WARRANTY; without even the implied warranty of
+# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
+# GNU General Public License for more details.
+
+# You should have received a copy of the GNU General Public License
+# along with this program. If not, see <http://www.gnu.org/licenses/>.
+
+. "${srcdir=.}/tests/init.sh"; path_prepend_ ./src
+print_ver_ sort
+skip_if_root_
+
+SORT_FAILURE=2
+
+# Check output is writable before starting to sort
+touch input
+chmod a-w input
+returns_ $SORT_FAILURE timeout 10 sort -o input || fail=1
+
+# Check all inputs are readable before starting to sort
+# Also ensure the output isn't created in this case
+touch output
+chmod a-r output
+returns_ $SORT_FAILURE timeout 10 sort -o typo - output || fail=1
+test -e typo && fail=1
+
+Exit $fail
diff --git a/tests/misc/sort-files0-from.pl b/tests/misc/sort-files0-from.pl
new file mode 100755
index 0000000..0777a3b
--- /dev/null
+++ b/tests/misc/sort-files0-from.pl
@@ -0,0 +1,96 @@
+#!/usr/bin/perl
+# Exercise sort's --files0-from option.
+# FIXME: keep this file in sync with tests/du/files0-from.
+
+# Copyright (C) 2006-2016 Free Software Foundation, Inc.
+
+# This program is free software: you can redistribute it and/or modify
+# it under the terms of the GNU General Public License as published by
+# the Free Software Foundation, either version 3 of the License, or
+# (at your option) any later version.
+
+# This program is distributed in the hope that it will be useful,
+# but WITHOUT ANY WARRANTY; without even the implied warranty of
+# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
+# GNU General Public License for more details.
+
+# You should have received a copy of the GNU General Public License
+# along with this program. If not, see <http://www.gnu.org/licenses/>.
+
+use strict;
+
+(my $program_name = $0) =~ s|.*/||;
+
+my $prog = 'sort';
+
+# Turn off localization of executable's output.
+@ENV{qw(LANGUAGE LANG LC_ALL)} = ('C') x 3;
+
+my @Tests =
+ (
+ # invalid extra command line argument
+ ['f-extra-arg', '--files0-from=- no-such', {IN=>"a"}, {EXIT=>2},
+ {ERR => "$prog: extra operand 'no-such'\n"
+ . "file operands cannot be combined with --files0-from\n"
+ . "Try '$prog --help' for more information.\n"}
+ ],
+
+ # missing input file
+ ['missing', '--files0-from=missing', {EXIT=>2},
+ {ERR => "$prog: cannot open 'missing' for reading: "
+ . "No such file or directory\n"}],
+
+ # input file name of '-'
+ ['minus-in-stdin', '--files0-from=-', '<', {IN=>{f=>'-'}}, {EXIT=>2},
+ {ERR => "$prog: when reading file names from stdin, no file name of"
+ . " '-' allowed\n"}],
+
+ # empty input, regular file
+ ['empty', '--files0-from=@AUX@', {AUX=>''}, {EXIT=>2},
+ {ERR_SUBST => 's/no input from.+$//'}, {ERR => "$prog: \n"}],
+
+ # empty input, from non-regular file
+ ['empty-nonreg', '--files0-from=/dev/null', {EXIT=>2},
+ {ERR => "$prog: no input from '/dev/null'\n"}],
+
+ # one NUL
+ ['nul-1', '--files0-from=-', '<', {IN=>"\0"}, {EXIT=>2},
+ {ERR => "$prog: -:1: invalid zero-length file name\n"}],
+
+ # two NULs
+ # Note that the behavior here differs from 'wc' in that the
+ # first zero-length file name is treated as fatal, so there
+ # is only one line of diagnostic output.
+ ['nul-2', '--files0-from=-', '<', {IN=>"\0\0"}, {EXIT=>2},
+ {ERR => "$prog: -:1: invalid zero-length file name\n"}],
+
+ # one file name, no NUL
+ ['1', '--files0-from=-', '<',
+ {IN=>{f=>"g"}}, {AUX=>{g=>'a'}}, {OUT=>"a\n"} ],
+
+ # one file name, with NUL
+ ['1a', '--files0-from=-', '<',
+ {IN=>{f=>"g\0"}}, {AUX=>{g=>'a'}}, {OUT=>"a\n"} ],
+
+ # two file names, no final NUL
+ ['2', '--files0-from=-', '<',
+ {IN=>{f=>"g\0g"}}, {AUX=>{g=>'a'}}, {OUT=>"a\na\n"} ],
+
+ # two file names, with final NUL
+ ['2a', '--files0-from=-', '<',
+ {IN=>{f=>"g\0g\0"}}, {AUX=>{g=>'a'}}, {OUT=>"a\na\n"} ],
+
+ # Ensure that $prog does nothing when there is a zero-length filename.
+ # Note that the behavior here differs from 'wc' in that the
+ # first zero-length file name is treated as fatal, so there
+ # should be no output on STDOUT.
+ ['zero-len', '--files0-from=-', '<',
+ {IN=>{f=>"\0g\0"}}, {AUX=>{g=>''}},
+ {ERR => "$prog: -:1: invalid zero-length file name\n"}, {EXIT=>2} ],
+ );
+
+my $save_temps = $ENV{DEBUG};
+my $verbose = $ENV{VERBOSE};
+
+my $fail = run_tests ($program_name, $prog, \@Tests, $save_temps, $verbose);
+exit $fail;
diff --git a/tests/misc/sort-float.sh b/tests/misc/sort-float.sh
new file mode 100755
index 0000000..5beab7c
--- /dev/null
+++ b/tests/misc/sort-float.sh
@@ -0,0 +1,94 @@
+#!/bin/sh
+# Ensure sort -g sorts floating point limits correctly
+
+# Copyright (C) 2010-2016 Free Software Foundation, Inc.
+
+# This program is free software: you can redistribute it and/or modify
+# it under the terms of the GNU General Public License as published by
+# the Free Software Foundation, either version 3 of the License, or
+# (at your option) any later version.
+
+# This program is distributed in the hope that it will be useful,
+# but WITHOUT ANY WARRANTY; without even the implied warranty of
+# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
+# GNU General Public License for more details.
+
+# You should have received a copy of the GNU General Public License
+# along with this program. If not, see <http://www.gnu.org/licenses/>.
+
+. "${srcdir=.}/tests/init.sh"; path_prepend_ ./src
+print_ver_ sort
+
+# Return 0 if LDBL_MIN is smaller than DBL_MIN, else 1.
+# Dissect numbers like these, comparing first exponent, then
+# whole part of mantissa, then fraction, until finding enough
+# of a difference to determine the relative order of the numbers.
+# These are "reversed":
+# $ ./getlimits |grep DBL_MIN
+# DBL_MIN=2.225074e-308
+# LDBL_MIN=2.004168e-292
+#
+# These are in the expected order:
+# $ ./getlimits|grep DBL_MIN
+# DBL_MIN=2.225074e-308
+# LDBL_MIN=3.362103e-4932
+
+dbl_minima_order()
+{
+ LC_ALL=C getlimits_
+ set -- $(echo $LDBL_MIN | tr .e- ' ')
+ local ldbl_whole=$1 ldbl_frac=$2 ldbl_exp=$3
+
+ set -- $(echo $DBL_MIN |tr .e- ' ')
+ local dbl_whole=$1 dbl_frac=$2 dbl_exp=$3
+
+ test "$dbl_exp" -lt "$ldbl_exp" && return 0
+ test "$ldbl_exp" -lt "$dbl_exp" && return 1
+ test "$ldbl_whole" -lt "$dbl_whole" && return 0
+ test "$dbl_whole" -lt "$ldbl_whole" && return 1
+ test "$ldbl_frac" -le "$dbl_frac" && return 0
+ return 1
+}
+
+# On some systems, DBL_MIN < LDBL_MIN. Detect that.
+dbl_minima_order; reversed=$?
+
+for LOC in C $LOCALE_FR; do
+
+ LC_ALL=$LOC getlimits_
+
+ # See if sort should be using long doubles
+ grep '^#define HAVE_C99_STRTOLD 1' $CONFIG_HEADER > /dev/null ||
+ { LDBL_MAX="$DBL_MAX"; LDBL_MIN="$DBL_MIN"; }
+
+ # If DBL_MIN happens to be smaller than LDBL_MIN, swap them,
+ # so that out expected output is sorted.
+ if test $reversed = 1; then
+ t=$LDBL_MIN
+ LDBL_MIN=$DBL_MIN
+ DBL_MIN=$t
+ fi
+
+ printf -- "\
+-$LDBL_MAX
+-$DBL_MAX
+-$FLT_MAX
+-$FLT_MIN
+-$DBL_MIN
+-$LDBL_MIN
+0
+$LDBL_MIN
+$DBL_MIN
+$FLT_MIN
+$FLT_MAX
+$DBL_MAX
+$LDBL_MAX
+" |
+ grep '^[0-9.,e+-]*$' > exp # restrict to numeric just in case
+
+ tac exp | LC_ALL=$LOC sort -sg > out || fail=1
+
+ compare exp out || fail=1
+done
+
+Exit $fail
diff --git a/tests/misc/sort-merge b/tests/misc/sort-merge
deleted file mode 100755
index a737e4d..0000000
--- a/tests/misc/sort-merge
+++ /dev/null
@@ -1,50 +0,0 @@
-#!/bin/sh
-# Test "sort -m".
-
-# Copyright (C) 2002, 2003, 2005, 2006 Free Software Foundation, Inc.
-
-# This program is free software; you can redistribute it and/or modify
-# it under the terms of the GNU General Public License as published by
-# the Free Software Foundation; either version 2 of the License, or
-# (at your option) any later version.
-
-# This program is distributed in the hope that it will be useful,
-# but WITHOUT ANY WARRANTY; without even the implied warranty of
-# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
-# GNU General Public License for more details.
-
-# You should have received a copy of the GNU General Public License
-# along with this program; if not, write to the Free Software
-# Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA
-# 02110-1301, USA.
-
-: ${PERL=perl}
-: ${srcdir=.}
-
-$PERL -e 1 > /dev/null 2>&1 || {
- echo 1>&2 "$0: configure didn't find a usable version of Perl," \
- "so can't run this test"
- exit 77
-}
-
-exec $PERL -w -I$srcdir/.. -MCoreutils -- - <<\EOF
-require 5.003;
-use strict;
-
-(my $program_name = $0) =~ s|.*/||;
-
-# Turn off localisation of executable's ouput.
-@ENV{qw(LANGUAGE LANG LC_ALL)} = ('C') x 3;
-
-my @Tests =
- (
- ['m1', '-m', {IN=> {empty=> ''}}, {IN=> {f=> "foo\n"}}, {OUT=>"foo\n"}],
- );
-
-my $save_temps = $ENV{DEBUG};
-my $verbose = $ENV{VERBOSE};
-
-my $prog = 'sort';
-my $fail = run_tests ($program_name, $prog, \@Tests, $save_temps, $verbose);
-exit $fail;
-EOF
diff --git a/tests/misc/sort-merge-fdlimit.sh b/tests/misc/sort-merge-fdlimit.sh
new file mode 100755
index 0000000..f78f0f0
--- /dev/null
+++ b/tests/misc/sort-merge-fdlimit.sh
@@ -0,0 +1,72 @@
+#!/bin/sh
+# Test whether sort avoids opening more file descriptors than it is
+# allowed when merging files.
+
+# Copyright (C) 2009-2016 Free Software Foundation, Inc.
+
+# This program is free software: you can redistribute it and/or modify
+# it under the terms of the GNU General Public License as published by
+# the Free Software Foundation, either version 3 of the License, or
+# (at your option) any later version.
+
+# This program is distributed in the hope that it will be useful,
+# but WITHOUT ANY WARRANTY; without even the implied warranty of
+# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
+# GNU General Public License for more details.
+
+# You should have received a copy of the GNU General Public License
+# along with this program. If not, see <http://www.gnu.org/licenses/>.
+
+. "${srcdir=.}/tests/init.sh"; path_prepend_ ./src
+print_ver_ sort
+
+mkdir in err || framework_failure_
+
+
+for i in $(seq 17); do
+ echo $i >in/$i
+done
+seq 17 >some-data
+
+# When these tests are run inside the automated testing framework, they
+# have one less available file descriptor than when run outside the
+# automated testing framework. If a test with a batch size of b fails
+# inside the ATF, then the same test with batch size b+1 may pass outside
+# the ATF but fail inside it.
+
+# The default batch size (nmerge) is 16.
+(ulimit -n 19 \
+ && sort -m --batch-size=16 in/* 2>err/merge-default-err \
+ || ! grep "open failed" err/merge-default-err) || fail=1
+
+# If sort opens a file to sort by random hashes of keys,
+# it needs to consider this file against its limit on open file
+# descriptors. Test once with the default random source
+# and once with an explicit source.
+for randsource in '' --random-source=some-data; do
+ (ulimit -n 20 \
+ && sort -mR $randsource --batch-size=16 in/* 2>err/merge-random-err \
+ || ! grep "open failed" err/merge-random-err) || fail=1
+done
+
+# 'sort -m' should work in a limited file descriptor
+# environment when the output is repeatedly one of its inputs.
+# In coreutils 8.7 and earlier, 'sort' would dump core on this test.
+#
+# This test uses 'exec' to redirect file descriptors rather than
+# ordinary redirection on the 'sort' command. This is intended to
+# work around bugs in OpenBSD /bin/sh, and some other sh variants,
+# that squirrel away file descriptors before closing them; see
+# <http://lists.gnu.org/archive/html/bug-tar/2010-10/msg00075.html>.
+# This test finds the bug only with shells that do not close FDs on
+# exec, and will miss the bug (if present) on other shells, but it's
+# not easy to fix this without running afoul of the OpenBSD-like sh bugs.
+(seq 6 && echo 6) >exp || fail=1
+echo 6 >out || fail=1
+(exec 3<&- 4<&- 5<&- 6</dev/null 7<&6 8<&6 9<&6 &&
+ ulimit -n 10 &&
+ sort -n -m --batch-size=7 -o out out in/1 in/2 in/3 in/4 in/5 out
+) &&
+compare exp out || fail=1
+
+Exit $fail
diff --git a/tests/misc/sort-merge.pl b/tests/misc/sort-merge.pl
new file mode 100755
index 0000000..23f6ed2
--- /dev/null
+++ b/tests/misc/sort-merge.pl
@@ -0,0 +1,84 @@
+#!/usr/bin/perl
+# Test "sort -m".
+
+# Copyright (C) 2002-2016 Free Software Foundation, Inc.
+
+# This program is free software: you can redistribute it and/or modify
+# it under the terms of the GNU General Public License as published by
+# the Free Software Foundation, either version 3 of the License, or
+# (at your option) any later version.
+
+# This program is distributed in the hope that it will be useful,
+# but WITHOUT ANY WARRANTY; without even the implied warranty of
+# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
+# GNU General Public License for more details.
+
+# You should have received a copy of the GNU General Public License
+# along with this program. If not, see <http://www.gnu.org/licenses/>.
+
+use strict;
+
+my $limits = getlimits ();
+
+(my $program_name = $0) =~ s|.*/||;
+my $prog = 'sort';
+
+# Turn off localization of executable's output.
+@ENV{qw(LANGUAGE LANG LC_ALL)} = ('C') x 3;
+
+# three empty files and one that says 'foo'
+my @inputs = (+(map{{IN=> {"empty$_"=> ''}}}1..3), {IN=> {foo=> "foo\n"}});
+
+my $big_input = "aaa\n" x 1024;
+
+# don't need to check for existence, since we're running in a temp dir
+my $badtmp = 'does/not/exist';
+
+my $bigint = $limits->{UINTMAX_OFLOW};
+
+my @Tests =
+ (
+ ['m1', '-m', @inputs, {OUT=>"foo\n"}],
+
+ # check validation of --batch-size option
+ ['nmerge-0', "-m --batch-size=0", @inputs,
+ {ERR=>"$prog: invalid --batch-size argument '0'\n".
+ "$prog: minimum --batch-size argument is '2'\n"}, {EXIT=>2}],
+
+ ['nmerge-1', "-m --batch-size=1", @inputs,
+ {ERR=>"$prog: invalid --batch-size argument '1'\n".
+ "$prog: minimum --batch-size argument is '2'\n"}, {EXIT=>2}],
+
+ ['nmerge-neg', "-m --batch-size=-1", @inputs,
+ {ERR=>"$prog: invalid --batch-size argument '-1'\n"}, {EXIT=>2}],
+
+ ['nmerge-nan', "-m --batch-size=a", @inputs,
+ {ERR=>"$prog: invalid --batch-size argument 'a'\n"}, {EXIT=>2}],
+
+ ['nmerge-big', "-m --batch-size=$bigint", @inputs,
+ {ERR_SUBST=>'s/(current rlimit is) \d+/$1/'},
+ {ERR=>"$prog: --batch-size argument '$bigint' too large\n".
+ "$prog: maximum --batch-size argument with current rlimit is\n"},
+ {EXIT=>2}],
+
+ # This should work since nmerge >= the number of input files
+ ['nmerge-yes', "-m --batch-size=4 -T$badtmp", @inputs, {OUT=>"foo\n"}],
+
+ # this should fail since nmerge < # of input files, so
+ # temp files are needed
+ ['nmerge-no', "-m --batch-size=2 -T$badtmp", @inputs,
+ {ERR_SUBST=>"s|': .*|':|"},
+ {ERR=>"$prog: cannot create temporary file in '$badtmp':\n"},
+ {EXIT=>2}],
+
+ # This used to fail because setting batch-size without also setting
+ # buffer size would cause the buffer size to be set to the minimum.
+ ['batch-size', "--batch-size=16 -T$badtmp", {IN=> {big=> $big_input}},
+ {OUT=>$big_input}],
+ );
+
+my $save_temps = $ENV{DEBUG};
+my $verbose = $ENV{VERBOSE};
+
+my $fail = run_tests ($program_name, $prog, \@Tests, $save_temps, $verbose);
+exit $fail;
diff --git a/tests/misc/sort-month.sh b/tests/misc/sort-month.sh
new file mode 100755
index 0000000..e2ac150
--- /dev/null
+++ b/tests/misc/sort-month.sh
@@ -0,0 +1,34 @@
+#!/bin/sh
+# Test sorting of abbreviated months from the locale
+
+# Copyright (C) 2010-2016 Free Software Foundation, Inc.
+
+# This program is free software: you can redistribute it and/or modify
+# it under the terms of the GNU General Public License as published by
+# the Free Software Foundation, either version 3 of the License, or
+# (at your option) any later version.
+
+# This program is distributed in the hope that it will be useful,
+# but WITHOUT ANY WARRANTY; without even the implied warranty of
+# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
+# GNU General Public License for more details.
+
+# You should have received a copy of the GNU General Public License
+# along with this program. If not, see <http://www.gnu.org/licenses/>.
+
+. "${srcdir=.}/tests/init.sh"; path_prepend_ ./src
+print_ver_ sort
+
+locale --version >/dev/null 2>&1 ||
+ skip_ 'The locale utility is not present'
+
+# C will be used if the locale is not present
+for LOC in "$LOCALE_FR" "$LOCALE_FR_UTF8" "ja_JP.utf8"; do
+ mon="$(LC_ALL=$LOC locale abmon 2>/dev/null);"
+ smon=$(LC_ALL=$LOC locale abmon 2>/dev/null |
+ tr ';' '\n' | shuf | nl | LC_ALL=$LOC sort -k2,2M |
+ cut -f2 | tr '\n' ';')
+ test "$mon" = "$smon" || { fail=1; break; }
+done
+
+Exit $fail
diff --git a/tests/misc/sort-rand b/tests/misc/sort-rand
deleted file mode 100755
index f997318..0000000
--- a/tests/misc/sort-rand
+++ /dev/null
@@ -1,54 +0,0 @@
-#!/bin/sh
-# Ensure that sort --sort-random doesn't sort.
-
-# Copyright (C) 2005, 2006 Free Software Foundation, Inc.
-
-# This program is free software; you can redistribute it and/or modify
-# it under the terms of the GNU General Public License as published by
-# the Free Software Foundation; either version 2 of the License, or
-# (at your option) any later version.
-
-# This program is distributed in the hope that it will be useful,
-# but WITHOUT ANY WARRANTY; without even the implied warranty of
-# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
-# GNU General Public License for more details.
-
-# You should have received a copy of the GNU General Public License
-# along with this program; if not, write to the Free Software
-# Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA
-# 02110-1301, USA.
-
-if test "$VERBOSE" = yes; then
- set -x
- sort --version
-fi
-
-pwd=`pwd`
-t0=`echo "$0"|sed 's,.*/,,'`.tmp; tmp=$t0/$$
-trap 'status=$?; cd "$pwd" && chmod -R u+rwx $t0 && rm -rf $t0 && exit $status' 0
-trap '(exit $?); exit $?' 1 2 13 15
-
-framework_failure=0
-mkdir -p $tmp || framework_failure=1
-cd $tmp || framework_failure=1
-seq 100 > in || framework_failure=1
-
-if test $framework_failure = 1; then
- echo "$0: failure in testing framework" 1>&2
- (exit 1); exit 1
-fi
-
-fail=0
-
-sort --random-sort in > out || fail=1
-
-# Fail if the input is the same as the output.
-# This is a probabilistic test :-)
-# However, the odds of failure are very low: 1 in 100! (~ 1 in 10^158)
-cmp in out > /dev/null && { fail=1; echo "not random?" 1>&2; }
-
-# Fail if the sorted output is not the same as the input.
-sort -n out > out1
-cmp in out1 || { fail=1; echo "not a permutation" 1>&2; }
-
-(exit $fail); exit $fail
diff --git a/tests/misc/sort-rand.sh b/tests/misc/sort-rand.sh
new file mode 100755
index 0000000..859685c
--- /dev/null
+++ b/tests/misc/sort-rand.sh
@@ -0,0 +1,52 @@
+#!/bin/sh
+# Ensure that sort --sort-random doesn't sort.
+
+# Copyright (C) 2005-2016 Free Software Foundation, Inc.
+
+# This program is free software: you can redistribute it and/or modify
+# it under the terms of the GNU General Public License as published by
+# the Free Software Foundation, either version 3 of the License, or
+# (at your option) any later version.
+
+# This program is distributed in the hope that it will be useful,
+# but WITHOUT ANY WARRANTY; without even the implied warranty of
+# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
+# GNU General Public License for more details.
+
+# You should have received a copy of the GNU General Public License
+# along with this program. If not, see <http://www.gnu.org/licenses/>.
+
+. "${srcdir=.}/tests/init.sh"; path_prepend_ ./src
+print_ver_ sort
+
+seq 100 > in || framework_failure_
+
+
+sort --random-sort in > out || fail=1
+
+# Fail if the input is the same as the output.
+# This is a probabilistic test :-)
+# However, the odds of failure are very low: 1 in 100! (~ 1 in 10^158)
+compare in out > /dev/null && { fail=1; echo "not random?" 1>&2; }
+
+# Fail if the sorted output is not the same as the input.
+sort -n out > out1
+compare in out1 || { fail=1; echo "not a permutation" 1>&2; }
+
+# If locale is available then use it to find a random non-C locale.
+if (locale --version) > /dev/null 2>&1; then
+ locale=$(locale -a | sort --random-sort | $AWK '/^.._/{print;exit}')
+ LC_ALL=$locale sort --random-sort in > out1 || fail=1
+ LC_ALL=$locale sort --random-sort in > out2 || fail=1
+
+ # Fail if the output "randomly" is the same twice in a row.
+ compare out1 out2 > /dev/null &&
+ { fail=1; echo "not random with LC_ALL=$locale" 1>&2; }
+
+ # Fail if the sorted output is not the same as the input.
+ sort -n out > out1
+ compare in out1 ||
+ { fail=1; echo "not a permutation with LC_ALL=$locale" 1>&2; }
+fi
+
+Exit $fail
diff --git a/tests/misc/sort-spinlock-abuse.sh b/tests/misc/sort-spinlock-abuse.sh
new file mode 100755
index 0000000..b64675a
--- /dev/null
+++ b/tests/misc/sort-spinlock-abuse.sh
@@ -0,0 +1,48 @@
+#!/bin/sh
+# trigger a bug that would make parallel sort use 100% of one or more
+# CPU while blocked on output.
+
+# Copyright (C) 2010-2016 Free Software Foundation, Inc.
+
+# This program is free software: you can redistribute it and/or modify
+# it under the terms of the GNU General Public License as published by
+# the Free Software Foundation, either version 3 of the License, or
+# (at your option) any later version.
+
+# This program is distributed in the hope that it will be useful,
+# but WITHOUT ANY WARRANTY; without even the implied warranty of
+# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
+# GNU General Public License for more details.
+
+# You should have received a copy of the GNU General Public License
+# along with this program. If not, see <http://www.gnu.org/licenses/>.
+
+. "${srcdir=.}/tests/init.sh"; path_prepend_ ./src
+print_ver_ sort
+
+# This isn't terribly expensive, but it must not be run under heavy load.
+# Since the "very expensive" tests are already run only with -j1, adding
+# this test to the list ensures it still gets _some_ (albeit minimal)
+# coverage while not causing false-positive failures in day to day runs.
+very_expensive_
+
+grep '^#define HAVE_PTHREAD_T 1' "$CONFIG_HEADER" > /dev/null ||
+ skip_ 'requires pthreads'
+
+# Terminate any background processes
+cleanup_() { kill $pid 2>/dev/null && wait $pid; }
+
+seq 100000 > in || framework_failure_
+mkfifo_or_skip_ fifo
+
+# Arrange for sort to require 8.0+ seconds of wall-clock time,
+# while actually using far less than 1 second of CPU time.
+(for i in $(seq 80); do read line; echo $i; sleep .1; done
+ cat > /dev/null) < fifo & pid=$!
+
+# However, under heavy load, it can easily take more than
+# one second of CPU time, so set a permissive limit:
+ulimit -t 7
+sort --parallel=2 in > fifo || fail=1
+
+Exit $fail
diff --git a/tests/misc/sort-stale-thread-mem.sh b/tests/misc/sort-stale-thread-mem.sh
new file mode 100755
index 0000000..1ec0e5b
--- /dev/null
+++ b/tests/misc/sort-stale-thread-mem.sh
@@ -0,0 +1,52 @@
+#!/bin/sh
+# Trigger a bug that would cause 'sort' to reference stale thread stack memory.
+
+# Copyright (C) 2010-2016 Free Software Foundation, Inc.
+
+# This program is free software: you can redistribute it and/or modify
+# it under the terms of the GNU General Public License as published by
+# the Free Software Foundation, either version 3 of the License, or
+# (at your option) any later version.
+
+# This program is distributed in the hope that it will be useful,
+# but WITHOUT ANY WARRANTY; without even the implied warranty of
+# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
+# GNU General Public License for more details.
+
+# You should have received a copy of the GNU General Public License
+# along with this program. If not, see <http://www.gnu.org/licenses/>.
+
+# written by Jim Meyering and Paul Eggert
+
+. "${srcdir=.}/tests/init.sh"; path_prepend_ ./src
+print_ver_ sort
+
+very_expensive_
+require_valgrind_
+
+grep '^#define HAVE_PTHREAD_T 1' "$CONFIG_HEADER" > /dev/null ||
+ skip_ 'requires pthreads'
+
+# gensort output seems to trigger the failure more often,
+# so prefer gensort if it is available.
+(gensort -a 10000 in) 2>/dev/null ||
+ seq -f %-98f 10000 | shuf > in ||
+ framework_failure_
+
+# On Fedora-17-beta (valgrind-3.7.0-2.fc17.x86_64), this evokes two
+# "Conditional jump or move depends on uninitialised value(s)" errors,
+# each originating from _dl_start.
+valgrind --quiet --error-exitcode=3 sort --version > /dev/null ||
+ framework_failure_ 'valgrind fails for trivial sort invocation'
+
+# With the bug, 'sort' would fail under valgrind about half the time,
+# on some circa-2010 multicore Linux platforms. Run the test 100 times
+# so that the probability of missing the bug should be about 1 in
+# 2**100 on these hosts.
+for i in $(seq 100); do
+ valgrind --quiet --error-exitcode=3 \
+ sort -S 100K --parallel=2 in > /dev/null ||
+ { fail=$?; echo iteration $i failed; Exit $fail; }
+done
+
+Exit $fail
diff --git a/tests/misc/sort-u-FMR.sh b/tests/misc/sort-u-FMR.sh
new file mode 100755
index 0000000..c22e468
--- /dev/null
+++ b/tests/misc/sort-u-FMR.sh
@@ -0,0 +1,29 @@
+#!/bin/sh
+# Before 8.19, this would trigger a free-memory read.
+
+# Copyright (C) 2012-2016 Free Software Foundation, Inc.
+
+# This program is free software: you can redistribute it and/or modify
+# it under the terms of the GNU General Public License as published by
+# the Free Software Foundation, either version 3 of the License, or
+# (at your option) any later version.
+
+# This program is distributed in the hope that it will be useful,
+# but WITHOUT ANY WARRANTY; without even the implied warranty of
+# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
+# GNU General Public License for more details.
+
+# You should have received a copy of the GNU General Public License
+# along with this program. If not, see <http://www.gnu.org/licenses/>.
+
+. "${srcdir=.}/tests/init.sh"; path_prepend_ ./src
+print_ver_ sort
+require_valgrind_
+
+{ echo 0; printf '%0900d\n' 1; } > in || framework_failure_
+
+valgrind --error-exitcode=1 sort --p=1 -S32b -u in > out || fail=1
+
+compare in out || fail=1
+
+Exit $fail
diff --git a/tests/misc/sort-unique-segv.sh b/tests/misc/sort-unique-segv.sh
new file mode 100755
index 0000000..4551f81
--- /dev/null
+++ b/tests/misc/sort-unique-segv.sh
@@ -0,0 +1,48 @@
+#!/bin/sh
+# parallel sort with --unique (-u) would segfault
+
+# Copyright (C) 2010-2016 Free Software Foundation, Inc.
+
+# This program is free software: you can redistribute it and/or modify
+# it under the terms of the GNU General Public License as published by
+# the Free Software Foundation, either version 3 of the License, or
+# (at your option) any later version.
+
+# This program is distributed in the hope that it will be useful,
+# but WITHOUT ANY WARRANTY; without even the implied warranty of
+# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
+# GNU General Public License for more details.
+
+# You should have received a copy of the GNU General Public License
+# along with this program. If not, see <http://www.gnu.org/licenses/>.
+
+. "${srcdir=.}/tests/init.sh"; path_prepend_ ./src
+print_ver_ sort
+
+grep '^#define HAVE_PTHREAD_T 1' "$CONFIG_HEADER" > /dev/null ||
+ skip_ 'requires pthreads'
+
+cat <<\EOF > in || framework_failure_
+
+
+
+
+
+
+
+z
+zzzzzz
+zzzzzzz
+zzzzzzz
+zzzzzzz
+zzzzzzzzz
+zzzzzzzzzzz
+zzzzzzzzzzzz
+EOF
+
+sort --parallel=1 -u in > exp || fail=1
+
+sort --parallel=2 -u -S 10b < in > out || fail=1
+compare exp out || fail=1
+
+Exit $fail
diff --git a/tests/misc/sort-unique.sh b/tests/misc/sort-unique.sh
new file mode 100755
index 0000000..df602ae
--- /dev/null
+++ b/tests/misc/sort-unique.sh
@@ -0,0 +1,42 @@
+#!/bin/sh
+# Test 'sort -u'.
+
+# Copyright (C) 2010-2016 Free Software Foundation, Inc.
+
+# This program is free software: you can redistribute it and/or modify
+# it under the terms of the GNU General Public License as published by
+# the Free Software Foundation, either version 3 of the License, or
+# (at your option) any later version.
+
+# This program is distributed in the hope that it will be useful,
+# but WITHOUT ANY WARRANTY; without even the implied warranty of
+# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
+# GNU General Public License for more details.
+
+# You should have received a copy of the GNU General Public License
+# along with this program. If not, see <http://www.gnu.org/licenses/>.
+
+. "${srcdir=.}/tests/init.sh"; path_prepend_ ./src
+print_ver_ sort
+
+cat > in <<\EOF
+1
+2
+1
+3
+EOF
+
+cat > exp <<\EOF
+1
+2
+3
+EOF
+
+for LOC in C "$LOCALE_FR" "$LOCALE_FR_UTF8"; do
+ test -z "$LOC" && continue
+
+ LC_ALL=$LOC sort -u in > out || { fail=1; break; }
+ compare exp out || { fail=1; break; }
+done
+
+Exit $fail
diff --git a/tests/misc/sort-version.sh b/tests/misc/sort-version.sh
new file mode 100755
index 0000000..a691ea3
--- /dev/null
+++ b/tests/misc/sort-version.sh
@@ -0,0 +1,106 @@
+#!/bin/sh
+# exercise sort's --sort=version option
+
+# Copyright (C) 2008-2016 Free Software Foundation, Inc.
+
+# This program is free software: you can redistribute it and/or modify
+# it under the terms of the GNU General Public License as published by
+# the Free Software Foundation, either version 3 of the License, or
+# (at your option) any later version.
+
+# This program is distributed in the hope that it will be useful,
+# but WITHOUT ANY WARRANTY; without even the implied warranty of
+# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
+# GNU General Public License for more details.
+
+# You should have received a copy of the GNU General Public License
+# along with this program. If not, see <http://www.gnu.org/licenses/>.
+
+. "${srcdir=.}/tests/init.sh"; path_prepend_ ./src
+print_ver_ sort
+
+cat > in << _EOF_
+gcc-c++-10.fc9.tar.gz
+gcc-c++-10.8.12-0.7rc2.fc9.tar.bz2
+glibc-2-0.1.beta1.fc10.rpm
+glibc-common-5-0.2.beta2.fc9.ebuild
+glibc-common-5-0.2b.deb
+glibc-common-11b.ebuild
+glibc-common-11-0.6rc2.ebuild
+libstdc++-0.5.8.11-0.7rc2.fc10.tar.gz
+libstdc++-4a.fc8.tar.gz
+libstdc++-4.10.4.20040204svn.rpm
+libstdc++-devel-3.fc8.ebuild
+libstdc++-devel-3a.fc9.tar.gz
+libstdc++-devel-8.fc8.deb
+libstdc++-devel-8.6.2-0.4b.fc8
+nss_ldap-1-0.2b.fc9.tar.bz2
+nss_ldap-1-0.6rc2.fc8.tar.gz
+nss_ldap-1.0-0.1a.tar.gz
+nss_ldap-10beta1.fc8.tar.gz
+nss_ldap-10.11.8.6.20040204cvs.fc10.ebuild
+string start 5.0.0 end of str
+string start 5.1.0 end of str
+string start 5.10.0 end of str
+string start 5.2.0 end of str
+string start 5.20.0 end of str
+string start 5.3.0 end of str
+string start 5.30.0 end of str
+string start 5.4.0 end of str
+string start 5.40.0 end of str
+string start 5.5.0 end of str
+string start 5.50.0 end of str
+string start 5.6.0 end of str
+string start 5.60.0 end of str
+string start 5.7.0 end of str
+string start 5.70.0 end of str
+string start 5.8.0 end of str
+string start 5.80.0 end of str
+string start 5.9.0 end of str
+string start 5.90.0 end of str
+_EOF_
+
+cat > exp << _EOF_
+gcc-c++-10.fc9.tar.gz
+gcc-c++-10.8.12-0.7rc2.fc9.tar.bz2
+glibc-2-0.1.beta1.fc10.rpm
+glibc-common-5-0.2.beta2.fc9.ebuild
+glibc-common-5-0.2b.deb
+glibc-common-11b.ebuild
+glibc-common-11-0.6rc2.ebuild
+libstdc++-0.5.8.11-0.7rc2.fc10.tar.gz
+libstdc++-4a.fc8.tar.gz
+libstdc++-4.10.4.20040204svn.rpm
+libstdc++-devel-3.fc8.ebuild
+libstdc++-devel-3a.fc9.tar.gz
+libstdc++-devel-8.fc8.deb
+libstdc++-devel-8.6.2-0.4b.fc8
+nss_ldap-1-0.2b.fc9.tar.bz2
+nss_ldap-1-0.6rc2.fc8.tar.gz
+nss_ldap-1.0-0.1a.tar.gz
+nss_ldap-10beta1.fc8.tar.gz
+nss_ldap-10.11.8.6.20040204cvs.fc10.ebuild
+string start 5.0.0 end of str
+string start 5.1.0 end of str
+string start 5.2.0 end of str
+string start 5.3.0 end of str
+string start 5.4.0 end of str
+string start 5.5.0 end of str
+string start 5.6.0 end of str
+string start 5.7.0 end of str
+string start 5.8.0 end of str
+string start 5.9.0 end of str
+string start 5.10.0 end of str
+string start 5.20.0 end of str
+string start 5.30.0 end of str
+string start 5.40.0 end of str
+string start 5.50.0 end of str
+string start 5.60.0 end of str
+string start 5.70.0 end of str
+string start 5.80.0 end of str
+string start 5.90.0 end of str
+_EOF_
+
+sort --sort=version -o out in || fail=1
+compare exp out || fail=1
+Exit $fail
diff --git a/tests/misc/sort.pl b/tests/misc/sort.pl
new file mode 100755
index 0000000..c3e7f8e
--- /dev/null
+++ b/tests/misc/sort.pl
@@ -0,0 +1,441 @@
+#!/usr/bin/perl
+
+# Copyright (C) 2008-2016 Free Software Foundation, Inc.
+
+# This program is free software: you can redistribute it and/or modify
+# it under the terms of the GNU General Public License as published by
+# the Free Software Foundation, either version 3 of the License, or
+# (at your option) any later version.
+
+# This program is distributed in the hope that it will be useful,
+# but WITHOUT ANY WARRANTY; without even the implied warranty of
+# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
+# GNU General Public License for more details.
+
+# You should have received a copy of the GNU General Public License
+# along with this program. If not, see <http://www.gnu.org/licenses/>.
+
+use strict;
+
+my $limits = getlimits ();
+
+my $prog = 'sort';
+
+# Turn off localization of executable's output.
+@ENV{qw(LANGUAGE LANG LC_ALL)} = ('C') x 3;
+
+my $mb_locale = $ENV{LOCALE_FR_UTF8};
+! defined $mb_locale || $mb_locale eq 'none'
+ and $mb_locale = 'C';
+
+# Since each test is run with a file name and with redirected stdin,
+# the name in the diagnostic is either the file name or "-".
+# Normalize each diagnostic to use '-'.
+my $normalize_filename = {ERR_SUBST => 's/^$prog: .*?:/$prog: -:/'};
+
+my $no_file = "$prog: cannot read: no-file: No such file or directory\n";
+
+my @Tests =
+(
+["n1", '-n', {IN=>".01\n0\n"}, {OUT=>"0\n.01\n"}],
+["n2", '-n', {IN=>".02\n.01\n"}, {OUT=>".01\n.02\n"}],
+["n3", '-n', {IN=>".02\n.00\n"}, {OUT=>".00\n.02\n"}],
+["n4", '-n', {IN=>".02\n.000\n"}, {OUT=>".000\n.02\n"}],
+["n5", '-n', {IN=>".021\n.029\n"}, {OUT=>".021\n.029\n"}],
+
+["n6", '-n', {IN=>".02\n.0*\n"}, {OUT=>".0*\n.02\n"}],
+["n7", '-n', {IN=>".02\n.*\n"}, {OUT=>".*\n.02\n"}],
+["n8a", '-s -n -k1,1', {IN=>".0a\n.0b\n"}, {OUT=>".0a\n.0b\n"}],
+["n8b", '-s -n -k1,1', {IN=>".0b\n.0a\n"}, {OUT=>".0b\n.0a\n"}],
+["n9a", '-s -n -k1,1', {IN=>".000a\n.000b\n"}, {OUT=>".000a\n.000b\n"}],
+["n9b", '-s -n -k1,1', {IN=>".000b\n.000a\n"}, {OUT=>".000b\n.000a\n"}],
+["n10a", '-s -n -k1,1', {IN=>".00a\n.000b\n"}, {OUT=>".00a\n.000b\n"}],
+["n10b", '-s -n -k1,1', {IN=>".00b\n.000a\n"}, {OUT=>".00b\n.000a\n"}],
+["n11a", '-s -n -k1,1', {IN=>".01a\n.010\n"}, {OUT=>".01a\n.010\n"}],
+["n11b", '-s -n -k1,1', {IN=>".010\n.01a\n"}, {OUT=>".010\n.01a\n"}],
+
+# human readable suffixes
+["h1", '-h',
+ {IN=>"1Y\n1Z\n1E\n1P\n1T\n1G\n1M\n1K\n02\n1\nY\n-1k\n-1M\n-1G\n-1T\n"
+ . "-1P\n-1E\n-1Z\n-1Y\n"},
+ {OUT=>"-1Y\n-1Z\n-1E\n-1P\n-1T\n-1G\n-1M\n-1k\nY\n1\n02\n1K\n1M\n1G\n1T\n"
+ . "1P\n1E\n1Z\n1Y\n"}],
+["h2", '-h', {IN=>"1M\n-2G\n-3K"}, {OUT=>"-2G\n-3K\n1M\n"}],
+# check that it works with powers of 1024
+["h3", '-k 2,2h -k 1,1', {IN=>"a 1G\nb 1023M\n"}, {OUT=>"b 1023M\na 1G\n"}],
+# decimal at end => allowed
+["h4", '-h', {IN=>"1.E\n2.M\n"}, {OUT=>"2.M\n1.E\n"}],
+# double decimal => ignore suffix
+["h5", '-h', {IN=>"1..2E\n2..2M\n"}, {OUT=>"1..2E\n2..2M\n"}],
+# "M" sorts before "G" regardless of the positive number attached.
+["h6", '-h', {IN=>"1GiB\n1030MiB\n"}, {OUT=>"1030MiB\n1GiB\n"}],
+# check option incompatibility
+["h7", '-hn', {IN=>""}, {OUT=>""}, {EXIT=>2},
+ {ERR=>"$prog: options '-hn' are incompatible\n"}],
+# check key processing
+["h8", '-n -k2,2h', {IN=>"1 1E\n2 2M\n"}, {OUT=>"2 2M\n1 1E\n"}],
+# SI and IEC prefixes on separate keys allowed
+["h9", '-h -k1,1 -k2,2', {IN=>"1M 1Mi\n1M 1Mi\n"}, {OUT=>"1M 1Mi\n1M 1Mi\n"}],
+# This invalid SI and IEC prefix mixture is not significant so not noticed
+["h10", '-h -k1,1 -k2,2', {IN=>"1M 2M\n2M 1Mi\n"}, {OUT=>"1M 2M\n2M 1Mi\n"}],
+
+["01a", '', {IN=>"A\nB\nC\n"}, {OUT=>"A\nB\nC\n"}],
+#
+["02a", '-c', {IN=>"A\nB\nC\n"}, {OUT=>''}],
+["02b", '-c', {IN=>"A\nC\nB\n"}, {OUT=>''}, {EXIT=>1},
+ {ERR=>"$prog: -:3: disorder: B\n"}, $normalize_filename],
+["02c", '-c -k1,1', {IN=>"a\na b\n"}, {OUT=>''}],
+["02d", '-C', {IN=>"A\nB\nC\n"}, {OUT=>''}],
+["02e", '-C', {IN=>"A\nC\nB\n"}, {OUT=>''}, {EXIT=>1}],
+# This should fail because there are duplicate keys
+["02m", '-cu', {IN=>"A\nA\n"}, {OUT=>''}, {EXIT=>1},
+ {ERR=>"$prog: -:2: disorder: A\n"}, $normalize_filename],
+["02n", '-cu', {IN=>"A\nB\n"}, {OUT=>''}],
+["02o", '-cu', {IN=>"A\nB\nB\n"}, {OUT=>''}, {EXIT=>1},
+ {ERR=>"$prog: -:3: disorder: B\n"}, $normalize_filename],
+["02p", '-cu', {IN=>"B\nA\nB\n"}, {OUT=>''}, {EXIT=>1},
+ {ERR=>"$prog: -:2: disorder: A\n"}, $normalize_filename],
+["02q", '-c -k 1,1fR', {IN=>"ABC\nABc\nAbC\nAbc\naBC\naBc\nabC\nabc\n"}],
+["02r", '-c -k 1,1fV', {IN=>"ABC\nABc\nAbC\nAbc\naBC\naBc\nabC\nabc\n"}],
+["02s", '-c -k 1,1dfR',
+ {IN=>".ABC\n.ABc.\nA.bC\nA.bc.\naB.C\naB.c.\nabC.\nabc..\n"}],
+#
+["03a", '-k1', {IN=>"B\nA\n"}, {OUT=>"A\nB\n"}],
+["03b", '-k1,1', {IN=>"B\nA\n"}, {OUT=>"A\nB\n"}],
+["03c", '-k1 -k2', {IN=>"A b\nA a\n"}, {OUT=>"A a\nA b\n"}],
+# Fail with a diagnostic when -k specifies field == 0.
+["03d", '-k0', {EXIT=>2},
+ {ERR=>"$prog: -: invalid field specification '0'\n"},
+ $normalize_filename],
+# Fail with a diagnostic when -k specifies character == 0.
+["03e", '-k1.0', {EXIT=>2},
+ {ERR=>"$prog: character offset is zero: invalid field specification '1.0'\n"}],
+["03f", '-k1.1,-k0', {EXIT=>2},
+ {ERR=>"$prog: invalid number after ',': invalid count at start of '-k0'\n"}],
+# This is ok.
+["03g", '-k1.1,1.0', {IN=>''}],
+# This is equivalent to 3f.
+["03h", '-k1.1,1', {IN=>''}],
+# This too, is equivalent to 3f.
+["03i", '-k1,1', {IN=>''}],
+#
+["04a", '-nc', {IN=>"2\n11\n"}],
+["04b", '-n', {IN=>"11\n2\n"}, {OUT=>"2\n11\n"}],
+["04c", '-k1n', {IN=>"11\n2\n"}, {OUT=>"2\n11\n"}],
+["04d", '-k1', {IN=>"11\n2\n"}, {OUT=>"11\n2\n"}],
+["04e", '-k2', {IN=>"ignored B\nz-ig A\n"}, {OUT=>"z-ig A\nignored B\n"}],
+#
+["05a", '-k1,2', {IN=>"A B\nA A\n"}, {OUT=>"A A\nA B\n"}],
+["05b", '-k1,2', {IN=>"A B A\nA A Z\n"}, {OUT=>"A A Z\nA B A\n"}],
+["05c", '-k1 -k2', {IN=>"A B A\nA A Z\n"}, {OUT=>"A A Z\nA B A\n"}],
+["05d", '-k2,2', {IN=>"A B A\nA A Z\n"}, {OUT=>"A A Z\nA B A\n"}],
+["05e", '-k2,2', {IN=>"A B Z\nA A A\n"}, {OUT=>"A A A\nA B Z\n"}],
+["05f", '-k2,2', {IN=>"A B A\nA A Z\n"}, {OUT=>"A A Z\nA B A\n"}],
+#
+["06a", '-k 1,2', {IN=>"A B\nA A\n"}, {OUT=>"A A\nA B\n"}],
+["06b", '-k 1,2', {IN=>"A B A\nA A Z\n"}, {OUT=>"A A Z\nA B A\n"}],
+["06c", '-k 1 -k 2', {IN=>"A B A\nA A Z\n"}, {OUT=>"A A Z\nA B A\n"}],
+["06d", '-k 2,2', {IN=>"A B A\nA A Z\n"}, {OUT=>"A A Z\nA B A\n"}],
+["06e", '-k 2,2', {IN=>"A B Z\nA A A\n"}, {OUT=>"A A A\nA B Z\n"}],
+["06f", '-k 2,2', {IN=>"A B A\nA A Z\n"}, {OUT=>"A A Z\nA B A\n"}],
+#
+["07a", '-k 2,3', {IN=>"9 a b\n7 a a\n"}, {OUT=>"7 a a\n9 a b\n"}],
+["07b", '-k 2,3', {IN=>"a a b\nz a a\n"}, {OUT=>"z a a\na a b\n"}],
+["07c", '-k 2,3', {IN=>"y k b\nz k a\n"}, {OUT=>"z k a\ny k b\n"}],
+["07d", '+1 -3', {IN=>"y k b\nz k a\n"}, {OUT=>"z k a\ny k b\n"}],
+# ensure a character position of 0 includes whole field
+["07e", '-k 2,3.0', {IN=>"a a b\nz a a\n"}, {OUT=>"z a a\na a b\n"}],
+# ensure fields with end position before start are ignored
+["07f", '-n -k1.3,1.1', {IN=>"a 2\nb 1\n"}, {OUT=>"a 2\nb 1\n"}],
+["07g", '-n -k2.2,1.2', {IN=>"aa 2\nbb 1\n"}, {OUT=>"aa 2\nbb 1\n"}],
+["07h", '-k1.3nb,1.3', {IN=>" a 2\n b 1\n"}, {OUT=>" a 2\n b 1\n"}],
+# ensure obsolescent key limits are handled correctly
+["07i", '-s +0 -1', {IN=>"a c\na b\n"}, {OUT=>"a c\na b\n"}],
+["07j", '-s +0 -1.0', {IN=>"a c\na b\n"}, {OUT=>"a c\na b\n"}],
+["07k", '-s +0 -1.1', {IN=>"a c\na b\n"}, {OUT=>"a c\na b\n"}],
+["07l", '-s +0 -1.2', {IN=>"a c\na b\n"}, {OUT=>"a b\na c\n"}],
+["07m", '-s +0 -1.1b', {IN=>"a c\na b\n"}, {OUT=>"a b\na c\n"}],
+#
+# report an error for '.' without following char spec
+["08a", '-k 2.,3', {EXIT=>2},
+ {ERR=>"$prog: invalid number after '.': invalid count at start of ',3'\n"}],
+# report an error for ',' without following POS2
+["08b", '-k 2,', {EXIT=>2},
+ {ERR=>"$prog: invalid number after ',': invalid count at start of ''\n"}],
+#
+# Test new -g option.
+["09a", '-g', {IN=>"1e2\n2e1\n"}, {OUT=>"2e1\n1e2\n"}],
+# Make sure -n works how we expect.
+["09b", '-n', {IN=>"1e2\n2e1\n"}, {OUT=>"1e2\n2e1\n"}],
+["09c", '-n', {IN=>"2e1\n1e2\n"}, {OUT=>"1e2\n2e1\n"}],
+["09d", '-k2g', {IN=>"a 1e2\nb 2e1\n"}, {OUT=>"b 2e1\na 1e2\n"}],
+#
+# Bug reported by Roger Peel <R.Peel@ee.surrey.ac.uk>
+["10a", '-t : -k 2.2,2.2', {IN=>":ba\n:ab\n"}, {OUT=>":ba\n:ab\n"}],
+# Equivalent to above, but using obsolescent '+pos -pos' option syntax.
+["10b", '-t : +1.1 -1.2', {IN=>":ba\n:ab\n"}, {OUT=>":ba\n:ab\n"}],
+#
+# The same as the preceding two, but with input lines reversed.
+["10c", '-t : -k 2.2,2.2', {IN=>":ab\n:ba\n"}, {OUT=>":ba\n:ab\n"}],
+# Equivalent to above, but using obsolescent '+pos -pos' option syntax.
+["10d", '-t : +1.1 -1.2', {IN=>":ab\n:ba\n"}, {OUT=>":ba\n:ab\n"}],
+# Try without -t...
+# But note that we have to count the delimiting space at the beginning
+# of each field that has it.
+["10a0", '-k 2.3,2.3', {IN=>"z ba\nz ab\n"}, {OUT=>"z ba\nz ab\n"}],
+["10a1", '-k 1.2,1.2', {IN=>"ba\nab\n"}, {OUT=>"ba\nab\n"}],
+["10a2", '-b -k 2.2,2.2', {IN=>"z ba\nz ab\n"}, {OUT=>"z ba\nz ab\n"}],
+#
+# An even simpler example demonstrating the bug.
+["10e", '-k 1.2,1.2', {IN=>"ab\nba\n"}, {OUT=>"ba\nab\n"}],
+#
+# The way sort works on these inputs (10f and 10g) seems wrong to me.
+# See http://git.sv.gnu.org/gitweb/?p=coreutils.git;a=commitdiff;h=3c467c0d223
+# POSIX doesn't seem to say one way or the other, but that's the way all
+# other sort implementations work.
+["10f", '-t : -k 1.3,1.3', {IN=>":ab\n:ba\n"}, {OUT=>":ba\n:ab\n"}],
+["10g", '-k 1.4,1.4', {IN=>"a ab\nb ba\n"}, {OUT=>"b ba\na ab\n"}],
+#
+# Exercise bug re using -b to skip trailing blanks.
+["11a", '-t: -k1,1b -k2,2', {IN=>"a\t:a\na :b\n"}, {OUT=>"a\t:a\na :b\n"}],
+["11b", '-t: -k1,1b -k2,2', {IN=>"a :b\na\t:a\n"}, {OUT=>"a\t:a\na :b\n"}],
+["11c", '-t: -k2,2b -k3,3', {IN=>"z:a\t:a\na :b\n"}, {OUT=>"z:a\t:a\na :b\n"}],
+# Before 1.22m, the first key comparison reported equality.
+# With 1.22m, they compare different: "a" sorts before "a\n",
+# and the second key spec isn't even used.
+["11d", '-t: -k2,2b -k3,3', {IN=>"z:a :b\na\t:a\n"}, {OUT=>"a\t:a\nz:a :b\n"}],
+#
+# Exercise bug re comparing '-' and integers.
+["12a", '-n -t: +1', {IN=>"a:1\nb:-\n"}, {OUT=>"b:-\na:1\n"}],
+["12b", '-n -t: +1', {IN=>"b:-\na:1\n"}, {OUT=>"b:-\na:1\n"}],
+# Try some other (e.g. 'X') invalid character.
+["12c", '-n -t: +1', {IN=>"a:1\nb:X\n"}, {OUT=>"b:X\na:1\n"}],
+["12d", '-n -t: +1', {IN=>"b:X\na:1\n"}, {OUT=>"b:X\na:1\n"}],
+# From Karl Heuer
+["13a", '+0.1n', {IN=>"axx\nb-1\n"}, {OUT=>"b-1\naxx\n"}],
+["13b", '+0.1n', {IN=>"b-1\naxx\n"}, {OUT=>"b-1\naxx\n"}],
+#
+# From Carl Johnson <carlj@cjlinux.home.org>
+["14a", '-d -u', {IN=>"mal\nmal-\nmala\n"}, {OUT=>"mal\nmala\n"}],
+# Be sure to fix the (translate && ignore) case in keycompare.
+["14b", '-f -d -u', {IN=>"mal\nmal-\nmala\n"}, {OUT=>"mal\nmala\n"}],
+#
+# Experiment with -i.
+["15a", '-i -u', {IN=>"a\na\1\n"}, {OUT=>"a\n"}],
+["15b", '-i -u', {IN=>"a\n\1a\n"}, {OUT=>"a\n"}],
+["15c", '-i -u', {IN=>"a\1\na\n"}, {OUT=>"a\1\n"}],
+["15d", '-i -u', {IN=>"\1a\na\n"}, {OUT=>"\1a\n"}],
+["15e", '-i -u', {IN=>"a\n\1\1\1\1\1a\1\1\1\1\n"}, {OUT=>"a\n"}],
+
+# This would fail (printing only the 7) for 8.6..8.18.
+# Use --parallel=1 for reproducibility, and a small buffer size
+# to let us trigger the problem with a smaller input.
+["unique-1", '--p=1 -S32b -u', {IN=>"7\n"x11 . "1\n"}, {OUT=>"1\n7\n"}],
+# Demonstrate that 8.19's key-spec-adjusting code is required.
+# These are more finicky in that they are arch-dependent.
+["unique-key-i686", '-u -k2,2 --p=1 -S32b',
+ {IN=>"a 7\n"x10 . "b 1\n"}, {OUT=>"b 1\na 7\n"}],
+["unique-key-x86_64", '-u -k2,2 --p=1 -S32b',
+ {IN=>"a 7\n"x11 . "b 1\n"}, {OUT=>"b 1\na 7\n"}],
+# Before 8.19, this would trigger a free-memory read.
+["unique-free-mem-read", '-u --p=1 -S32b',
+ {IN=>"a\n"."b"x900 ."\n"},
+ {OUT=>"a\n"."b"x900 ."\n"}],
+
+# From Erick Branderhorst -- fixed around 1.19e
+["16a", '-f',
+ {IN=>"éminence\nüberhaupt\n's-Gravenhage\naëroclub\nAag\naagtappels\n"},
+ {OUT=>"'s-Gravenhage\nAag\naagtappels\naëroclub\néminence\nüberhaupt\n"}],
+
+# This provokes a one-byte memory overrun of a malloc'd block for versions
+# of sort from textutils-1.19p and before.
+["17", '-c', {IN=>"xxxxxxxxxxxxxxxxxxxxxxxxxxxxxx\n"}],
+
+# POSIX says -n no longer implies -b, so here we're comparing ' 9' and '10'.
+["18a", '-k1.1,1.2n', {IN=>" 901\n100\n"}, {OUT=>" 901\n100\n"}],
+
+# Just like above, because the global '-b' has no effect on the
+# key specifier when a key-specific option ('n' in this case) is used.
+["18b", '-b -k1.1,1.2n', {IN=>" 901\n100\n"}, {OUT=>" 901\n100\n"}],
+
+# Here we're comparing ' 90' and '10', because the 'b' on the key-end specifier
+# makes sort ignore leading blanks when determining that key's *end*.
+["18c", '-k1.1,1.2nb', {IN=>" 901\n100\n"}, {OUT=>"100\n 901\n"}],
+
+# Here we're comparing '9' and '10', because the 'b' on the key-start specifier
+# makes sort ignore leading blanks when determining that key's *start*.
+["18d", '-k1.1b,1.2n', {IN=>" 901\n100\n"}, {OUT=>" 901\n100\n"}],
+
+# This compares '90' and '10', as it ignores leading blanks for both
+# key start and key end.
+["18e", '-nb -k1.1,1.2', {IN=>" 901\n100\n"}, {OUT=>"100\n 901\n"}],
+
+# When ignoring leading blanks for end position, ensure blanks from
+# next field are not included in the sort. I.e., order should not change here.
+["18f", '-k1,1b', {IN=>"a y\na z\n"}, {OUT=>"a y\na z\n"}],
+
+# When ignoring leading blanks for start position, ensure blanks from
+# next field are not included in the sort. I.e., order should not change here.
+# This was noticed as an issue on fedora 8 (only in multibyte locales).
+["18g", '-k1b,1', {IN=>"a y\na z\n"}, {OUT=>"a y\na z\n"},
+ {ENV => "LC_ALL=$mb_locale"}],
+
+# This looks odd, but works properly -- 2nd keyspec is never
+# used because all lines are different.
+["19a", '+0 +1nr', {IN=>"b 2\nb 1\nb 3\n"}, {OUT=>"b 1\nb 2\nb 3\n"}],
+
+# The test *intended* by the author of the above, but using the
+# more-intuitive POSIX-style -k options.
+["19b", '-k1,1 -k2nr', {IN=>"b 2\nb 1\nb 3\n"}, {OUT=>"b 3\nb 2\nb 1\n"}],
+
+# This test failed when sort-1.22 was compiled on a Next x86 system
+# without optimization. Without optimization gcc uses the buggy version
+# of memcmp in the Next C library. With optimization, gcc uses its
+# (working) builtin version. Test case form William Lewis.
+["20a", '',
+ {IN=>"_________U__free\n_________U__malloc\n_________U__abort\n"
+ . "_________U__memcpy\n_________U__memset\n"
+ . "_________U_dyld_stub_binding_helper\n_________U__malloc\n"
+ . "_________U___iob\n_________U__abort\n_________U__fprintf\n"},
+ {OUT=>"_________U___iob\n_________U__abort\n_________U__abort\n"
+ . "_________U__fprintf\n_________U__free\n_________U__malloc\n"
+ . "_________U__malloc\n_________U__memcpy\n_________U__memset\n"
+ . "_________U_dyld_stub_binding_helper\n"}],
+
+# Demonstrate that folding changes the ordering of e.g. A, a, and _
+# because while they normally (in the C locale) collate like A, _, a,
+# when using -f, 'a' is compared as if it were 'A'.
+["21a", '', {IN=>"A\na\n_\n"}, {OUT=>"A\n_\na\n"}],
+["21b", '-f', {IN=>"A\na\n_\n"}, {OUT=>"A\na\n_\n"}],
+["21c", '-f', {IN=>"a\nA\n_\n"}, {OUT=>"A\na\n_\n"}],
+["21d", '-f', {IN=>"_\na\nA\n"}, {OUT=>"A\na\n_\n"}],
+["21e", '-f', {IN=>"a\n_\nA\n"}, {OUT=>"A\na\n_\n"}],
+["21f", '-fs', {IN=>"A\na\n_\n"}, {OUT=>"A\na\n_\n"}],
+["21g", '-fu', {IN=>"a\n_\n"}, {OUT=>"a\n_\n"}],
+
+# This test failed until 1.22f. From Zvi Har'El.
+["22a", '-k 2,2fd -k 1,1r', {IN=>"3 b\n4 B\n"}, {OUT=>"4 B\n3 b\n"}],
+["22b", '-k 2,2d -k 1,1r', {IN=>"3 b\n4 b\n"}, {OUT=>"4 b\n3 b\n"}],
+
+# This fails in Fedora 20, per Göran Uddeborg in: http://bugs.gnu.org/18540
+["23", '-s -k1,1 -t/', {IN=>"a b/x\na-b-c/x\n"}, {OUT=>"a b/x\na-b-c/x\n"},
+ {ENV => "LC_ALL=$mb_locale"}],
+
+["no-file1", 'no-file', {EXIT=>2}, {ERR=>$no_file}],
+# This test failed until 1.22f. Sort didn't give an error.
+# From Will Edgington.
+["o-no-file1", qw(-o no-file no-file), {EXIT=>2}, {ERR=>$no_file}],
+
+["create-empty", qw(-o no/such/file /dev/null), {EXIT=>2},
+ {ERR=>"$prog: open failed: no/such/file: No such file or directory\n"}],
+
+# From Paul Eggert. This was fixed in textutils-1.22k.
+["neg-nls", '-n', {IN=>"-1\n-9\n"}, {OUT=>"-9\n-1\n"}],
+
+# From Paul Eggert. This was fixed in textutils-1.22m.
+# The bug was visible only when using the internationalized sorting code
+# (i.e., not when configured with --disable-nls).
+["nul-nls", '', {IN=>"\0b\n\0a\n"}, {OUT=>"\0a\n\0b\n"}],
+
+# Paul Eggert wrote:
+# A previous version of POSIX incorrectly required that the newline
+# at the end of the input line contributed to the sort, which would
+# mean that an empty line should sort after a line starting with a tab
+# (because \t precedes \n in the ASCII collating sequence).
+# GNU 'sort' was altered to do this, but was changed back once it
+# was discovered to be a POSIX bug (and the POSIX bug was fixed).
+# Check that 'sort' conforms to the fixed POSIX, not to the buggy one.
+["use-nl", '', {IN=>"\n\t\n"}, {OUT=>"\n\t\n"}],
+
+# Specifying two -o options should evoke a failure
+["o2", qw(-o x -o y), {EXIT=>2},
+ {ERR=>"foo\n"}, {ERR_SUBST => 's/^$prog: .*/foo/'}],
+
+# Specifying incompatible options should evoke a failure.
+["incompat1", '-in', {EXIT=>2},
+ {ERR=>"$prog: options '-in' are incompatible\n"}],
+["incompat2", '-nR', {EXIT=>2},
+ {ERR=>"$prog: options '-nR' are incompatible\n"}],
+["incompat3", '-dfgiMnR', {EXIT=>2},
+ {ERR=>"$prog: options '-dfgMnR' are incompatible\n"}],
+["incompat4", qw(-c -o /dev/null), {EXIT=>2},
+ {ERR=>"$prog: options '-co' are incompatible\n"}],
+["incompat5", qw(-C -o /dev/null), {EXIT=>2},
+ {ERR=>"$prog: options '-Co' are incompatible\n"}],
+["incompat6", '-cC', {EXIT=>2},
+ {ERR=>"$prog: options '-cC' are incompatible\n"}],
+["incompat7", qw(--sort=random -n), {EXIT=>2},
+ {ERR=>"$prog: options '-nR' are incompatible\n"}],
+
+# -t '\0' is accepted, as of coreutils-5.0.91
+['nul-tab', "-k2,2 -t '\\0'",
+ {IN=>"a\0z\01\nb\0y\02\n"}, {OUT=>"b\0y\02\na\0z\01\n"}],
+
+# fields > SIZE_MAX are silently interpreted as SIZE_MAX
+["bigfield1", "-k $limits->{UINTMAX_OFLOW}",
+ {IN=>"2\n1\n"}, {OUT=>"1\n2\n"}],
+["bigfield2", "-k $limits->{SIZE_OFLOW}",
+ {IN=>"2\n1\n"}, {OUT=>"1\n2\n"}],
+
+# Using an old-style key-specifying option like +1 with an invalid
+# ordering-option character would cause sort to try to free an invalid
+# (non-malloc'd) pointer. This bug affects coreutils-6.5 through 6.9.
+['obs-inval', '+1x', {EXIT=>2},
+ {ERR=>"foo\n"}, {ERR_SUBST => 's/^$prog: .*/foo/'}],
+
+# Exercise the code that enlarges the line buffer. See the thread here:
+# http://thread.gmane.org/gmane.comp.gnu.coreutils.bugs/11006
+['realloc-buf', '-S1', {IN=>'a'x4000 ."\n"}, {OUT=>'a'x4000 ."\n"}],
+['realloc-buf-2', '-S1', {IN=>'a'x5 ."\n"}, {OUT=>'a'x5 ."\n"}],
+
+["sort-numeric", '--sort=numeric', {IN=>".01\n0\n"}, {OUT=>"0\n.01\n"}],
+["sort-gennum", '--sort=general-numeric',
+ {IN=>"1e2\n2e1\n"}, {OUT=>"2e1\n1e2\n"}],
+
+# -m with output file also used as an input file
+# In coreutils-7.2, this caused a segfault.
+# This test looks a little strange. Here's why:
+# since we're using "-o f", standard output will be empty, hence OUT=>''
+# We still want to ensure that the output file, "f" has expected contents,
+# hence the added CMP=> directive.
+["output-is-input", '-m -o f', {IN=> {f=> "a\n"}}, {OUT=>''},
+ {CMP=> ["a\n", {'f'=> undef}]} ],
+["output-is-input-2", '-m -o f', {OUT=>''},
+ {IN=> {f=> "a\n"}}, {IN=> {g=> "b\n"}}, {IN=> {h=> "c\n"}},
+ {CMP=> ["a\nb\nc\n", {'f'=> undef}]} ],
+["output-is-input-3", '-m -o f', {OUT=>''},
+ {IN=> {g=> "a\n"}}, {IN=> {h=> "b\n"}}, {IN=> {f=> "c\n"}},
+ {CMP=> ["a\nb\nc\n", {'f'=> undef}]} ],
+
+# --zero-terminated
+['zero-1', '-z', {IN=>"2\0001\000"}, {OUT=>"1\0002\000"}],
+['zero-2', '-z -k2,2', {IN=>"1\n2\0002\n1\000"}, {OUT=>"2\n1\0001\n2\000"}],
+['zero-3', '-zb -k2,2', {IN=>"1\n\n2\0002\n1\0"}, {OUT=>"2\n1\0001\n\n2\0"}],
+);
+
+# Add _POSIX2_VERSION=199209 to the environment of each test
+# that uses an old-style option like +1.
+foreach my $t (@Tests)
+ {
+ foreach my $e (@$t)
+ {
+ !ref $e && $e =~ /\+\d/
+ and push (@$t, {ENV=>'_POSIX2_VERSION=199209'}), last;
+ }
+ }
+
+@Tests = triple_test \@Tests;
+
+# Remember that triple_test creates from each test with exactly one "IN"
+# file two more tests (.p and .r suffix on name) corresponding to reading
+# input from a file and from a pipe. The pipe-reading test would fail
+# due to a race condition about 1 in 20 times.
+# Remove the IN_PIPE version of the "output-is-input" test above.
+# The others aren't susceptible because they have three inputs each.
+@Tests = grep {$_->[0] ne 'output-is-input.p'} @Tests;
+
+my $save_temps = $ENV{DEBUG};
+my $verbose = $ENV{VERBOSE};
+
+my $fail = run_tests ($prog, $prog, \@Tests, $save_temps, $verbose);
+exit $fail;
diff --git a/tests/misc/split-a b/tests/misc/split-a
deleted file mode 100755
index 3026aac..0000000
--- a/tests/misc/split-a
+++ /dev/null
@@ -1,96 +0,0 @@
-#!/bin/sh
-# Show that split -a works.
-
-# Copyright (C) 2002, 2003, 2004, 2006 Free Software Foundation, Inc.
-
-# This program is free software; you can redistribute it and/or modify
-# it under the terms of the GNU General Public License as published by
-# the Free Software Foundation; either version 2 of the License, or
-# (at your option) any later version.
-
-# This program is distributed in the hope that it will be useful,
-# but WITHOUT ANY WARRANTY; without even the implied warranty of
-# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
-# GNU General Public License for more details.
-
-# You should have received a copy of the GNU General Public License
-# along with this program; if not, write to the Free Software
-# Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA
-# 02110-1301, USA.
-
-if test "$VERBOSE" = yes; then
- set -x
- split --version
-fi
-
-. $srcdir/../lang-default
-
-pwd=`pwd`
-tmp=split-a.$$
-trap 'status=$?; cd "$pwd" && rm -rf $tmp && exit $status' 0
-trap '(exit $?); exit' 1 2 13 15
-
-framework_failure=0
-mkdir $tmp || framework_failure=1
-cd $tmp || framework_failure=1
-
-if test $framework_failure = 1; then
- echo "$0: failure in testing framework" 1>&2
- (exit 1); exit 1
-fi
-
-fail=0
-
-# Generate a 27-byte file
-# yes|tr -d y|head -n27 > in
-echo abcdefghijklmnopqrstuvwxyz > in
-
-# This should fail.
-split -b 1 -a 1 in 2> err && fail=1
-test -f xa || fail=1
-test -f xz || fail=1
-test -f xaa && fail=1
-test -f xaz && fail=1
-rm -f x*
-
-# With a longer suffix, it must succeed.
-split --verbose -b 1 -a 2 in 2> err || fail=1
-test -f xaa || fail=1
-test -f xaz || fail=1
-test -f xba || fail=1
-test -f xbb && fail=1
-
-cat <<\EOF > exp
-creating file `xaa'
-creating file `xab'
-creating file `xac'
-creating file `xad'
-creating file `xae'
-creating file `xaf'
-creating file `xag'
-creating file `xah'
-creating file `xai'
-creating file `xaj'
-creating file `xak'
-creating file `xal'
-creating file `xam'
-creating file `xan'
-creating file `xao'
-creating file `xap'
-creating file `xaq'
-creating file `xar'
-creating file `xas'
-creating file `xat'
-creating file `xau'
-creating file `xav'
-creating file `xaw'
-creating file `xax'
-creating file `xay'
-creating file `xaz'
-creating file `xba'
-EOF
-
-cmp err exp || fail=1
-test $fail = 1 && diff err exp 2> /dev/null
-
-(exit $fail); exit $fail
diff --git a/tests/misc/split-fail b/tests/misc/split-fail
deleted file mode 100755
index 70435b4..0000000
--- a/tests/misc/split-fail
+++ /dev/null
@@ -1,88 +0,0 @@
-#!/bin/sh
-# split must fail when given length/count of zero.
-
-# Copyright (C) 2003, 2004, 2005, 2006 Free Software Foundation, Inc.
-
-# This program is free software; you can redistribute it and/or modify
-# it under the terms of the GNU General Public License as published by
-# the Free Software Foundation; either version 2 of the License, or
-# (at your option) any later version.
-
-# This program is distributed in the hope that it will be useful,
-# but WITHOUT ANY WARRANTY; without even the implied warranty of
-# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
-# GNU General Public License for more details.
-
-# You should have received a copy of the GNU General Public License
-# along with this program; if not, write to the Free Software
-# Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA
-# 02110-1301, USA.
-
-if test "$VERBOSE" = yes; then
- set -x
- split --version
-fi
-
-. $srcdir/../lang-default
-
-pwd=`pwd`
-t0=`echo "$0"|sed 's,.*/,,'`.tmp; tmp=$t0/$$
-trap 'status=$?; cd "$pwd" && chmod -R u+rwx $t0 && rm -rf $t0 && exit $status' 0
-trap '(exit $?); exit $?' 1 2 13 15
-
-framework_failure=0
-mkdir -p $tmp || framework_failure=1
-cd $tmp || framework_failure=1
-touch in || framework_failure=1
-
-if test $framework_failure = 1; then
- echo "$0: failure in testing framework" 1>&2
- (exit 1); exit 1
-fi
-
-fail=0
-
-split -a 0 in 2> /dev/null || fail=1
-split -b 0 in 2> /dev/null && fail=1
-split -C 0 in 2> /dev/null && fail=1
-split -l 0 in 2> /dev/null && fail=1
-
-# Make sure that the obsolete -N notation still works
-split -1 in 2> /dev/null || fail=1
-
-# Then make sure that -0 evokes a failure.
-split -0 in 2> /dev/null && fail=1
-
-# Ensure that split --lines=N and --bytes=N work for N=2^32,
-# assuming our host supports integers that wide.
-if _4gb=`expr 4294967296 + 0 2>/dev/null`; then
- split --lines=$_4gb in || fail=1
- split --bytes=$_4gb in || fail=1
-fi
-
-# Currently (coreutils-5.0.1) split --line-bytes=M fails
-# with `invalid number of bytes' for M=2^32 or larger. Actually,
-# the limit is SIZE_MAX, which is 2^32 on 32-bit systems.
-# On 64-bit systems, there's no problem with a count of 2^32,
-# So disable this test in order to avoid the `failure' on 64-bit systems.
-#split --line-bytes=$_4gb 2> /dev/null in && fail=1
-
-# Make sure that a huge obsolete option evokes the right failure.
-split -99999999999999999991 2> out && fail=1
-
-# On losing systems (x86 Solaris 5.9 c89), we get a message like this:
-# split: line count option -9999999999... is too large
-# while on most, we get this:
-# split: line count option -99999999999999999991... is too large
-# so map them both to -99*.
-sed 's/99[19]*/99*/' out > out-t
-mv -f out-t out
-
-cat <<\EOF > exp
-split: line count option -99*... is too large
-EOF
-cmp out exp || fail=1
-test $fail = 1 && diff out exp 2> /dev/null
-
-
-(exit $fail); exit $fail
diff --git a/tests/misc/split-l b/tests/misc/split-l
deleted file mode 100755
index 4491683..0000000
--- a/tests/misc/split-l
+++ /dev/null
@@ -1,64 +0,0 @@
-#!/bin/sh
-# show that `split --lines=2' works.
-
-# Copyright (C) 2002, 2006 Free Software Foundation, Inc.
-
-# This program is free software; you can redistribute it and/or modify
-# it under the terms of the GNU General Public License as published by
-# the Free Software Foundation; either version 2 of the License, or
-# (at your option) any later version.
-
-# This program is distributed in the hope that it will be useful,
-# but WITHOUT ANY WARRANTY; without even the implied warranty of
-# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
-# GNU General Public License for more details.
-
-# You should have received a copy of the GNU General Public License
-# along with this program; if not, write to the Free Software
-# Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA
-# 02110-1301, USA.
-
-if test "$VERBOSE" = yes; then
- set -x
- ln --version
-fi
-
-pwd=`pwd`
-t0=`echo "$0"|sed 's,.*/,,'`.tmp; tmp=$t0/$$
-trap 'status=$?; cd "$pwd" && chmod -R u+rwx $t0 && rm -rf $t0 && exit $status' 0
-trap '(exit $?); exit $?' 1 2 13 15
-
-framework_failure=0
-mkdir -p $tmp || framework_failure=1
-cd $tmp || framework_failure=1
-printf '1\n2\n3\n4\n5\n' > in || framework_failure=1
-
-if test $framework_failure = 1; then
- echo "$0: failure in testing framework" 1>&2
- (exit 1); exit 1
-fi
-
-fail=0
-
-split --lines=2 in > out || fail=1
-cat <<\EOF > exp-1
-1
-2
-EOF
-cat <<\EOF > exp-2
-3
-4
-EOF
-cat <<\EOF > exp-3
-5
-EOF
-
-cmp xaa exp-1 || fail=1
-test $fail = 1 && diff xaa exp 2> /dev/null
-cmp xab exp-2 || fail=1
-test $fail = 2 && diff xab exp 2> /dev/null
-cmp xac exp-3 || fail=1
-test $fail = 3 && diff xac exp 2> /dev/null
-test -f xad && fail=1
-
-(exit $fail); exit $fail
diff --git a/tests/misc/stat-birthtime.sh b/tests/misc/stat-birthtime.sh
new file mode 100755
index 0000000..60db566
--- /dev/null
+++ b/tests/misc/stat-birthtime.sh
@@ -0,0 +1,51 @@
+#!/bin/sh
+# ensure that stat attempts birthtime access
+
+# Copyright (C) 2010-2016 Free Software Foundation, Inc.
+
+# This program is free software: you can redistribute it and/or modify
+# it under the terms of the GNU General Public License as published by
+# the Free Software Foundation, either version 3 of the License, or
+# (at your option) any later version.
+
+# This program is distributed in the hope that it will be useful,
+# but WITHOUT ANY WARRANTY; without even the implied warranty of
+# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
+# GNU General Public License for more details.
+
+# You should have received a copy of the GNU General Public License
+# along with this program. If not, see <http://www.gnu.org/licenses/>.
+
+. "${srcdir=.}/tests/init.sh"; path_prepend_ ./src
+print_ver_ stat
+
+# Whether birthtime is supported or not, it better not change even when
+# [acm]time are modified. :)
+touch a || fail=1
+btime=$(stat --format %W a) || fail=1
+atime=$(stat --format %X a) || fail=1
+mtime=$(stat --format %Y a) || fail=1
+ctime=$(stat --format %Z a) || fail=1
+
+# Wait up to 2.17s for timestamps to change.
+# ----------------------------------------
+# iterations file system resolution e.g.
+# ----------------------------------------
+# 1 nano or micro second ext4
+# 4 1 second ext3
+# 5 2 second FAT
+# ----------------------------------------
+check_timestamps_updated()
+{
+ local delay="$1"
+ sleep $delay
+ touch a || fail=1
+
+ test "x$btime" = x$(stat --format %W a) &&
+ test "x$atime" != x$(stat --format %X a) &&
+ test "x$mtime" != x$(stat --format %Y a) &&
+ test "x$ctime" != x$(stat --format %Z a)
+}
+retry_delay_ check_timestamps_updated .07 5 || fail=1
+
+Exit $fail
diff --git a/tests/misc/stat-fmt b/tests/misc/stat-fmt
deleted file mode 100755
index 435fbbb..0000000
--- a/tests/misc/stat-fmt
+++ /dev/null
@@ -1,48 +0,0 @@
-#!/bin/sh
-# ensure that stat properly handles a format string ending with %
-
-# Copyright (C) 2003, 2004, 2006 Free Software Foundation, Inc.
-
-# This program is free software; you can redistribute it and/or modify
-# it under the terms of the GNU General Public License as published by
-# the Free Software Foundation; either version 2 of the License, or
-# (at your option) any later version.
-
-# This program is distributed in the hope that it will be useful,
-# but WITHOUT ANY WARRANTY; without even the implied warranty of
-# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
-# GNU General Public License for more details.
-
-# You should have received a copy of the GNU General Public License
-# along with this program; if not, write to the Free Software
-# Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA
-# 02110-1301, USA.
-
-if test "$VERBOSE" = yes; then
- set -x
- stat --version
-fi
-
-pwd=`pwd`
-t0=`echo "$0"|sed 's,.*/,,'`.tmp; tmp=$t0/$$
-trap 'status=$?; cd "$pwd" && chmod -R u+rwx $t0 && rm -rf $t0 && exit $status' 0
-trap '(exit $?); exit $?' 1 2 13 15
-
-framework_failure=0
-mkdir -p $tmp || framework_failure=1
-cd $tmp || framework_failure=1
-
-if test $framework_failure = 1; then
- echo "$0: failure in testing framework" 1>&2
- (exit 1); exit 1
-fi
-
-fail=0
-
-for i in `seq 50`; do
- fmt=`printf "%${i}s" %`
- out=`stat --form="$fmt" .`
- test "$out" = "$fmt" || fail=1
-done
-
-(exit $fail); exit $fail
diff --git a/tests/misc/stat-fmt.sh b/tests/misc/stat-fmt.sh
new file mode 100755
index 0000000..baa7ca7
--- /dev/null
+++ b/tests/misc/stat-fmt.sh
@@ -0,0 +1,30 @@
+#!/bin/sh
+# ensure that stat properly handles a format string ending with %
+
+# Copyright (C) 2003-2016 Free Software Foundation, Inc.
+
+# This program is free software: you can redistribute it and/or modify
+# it under the terms of the GNU General Public License as published by
+# the Free Software Foundation, either version 3 of the License, or
+# (at your option) any later version.
+
+# This program is distributed in the hope that it will be useful,
+# but WITHOUT ANY WARRANTY; without even the implied warranty of
+# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
+# GNU General Public License for more details.
+
+# You should have received a copy of the GNU General Public License
+# along with this program. If not, see <http://www.gnu.org/licenses/>.
+
+. "${srcdir=.}/tests/init.sh"; path_prepend_ ./src
+print_ver_ stat
+
+
+
+for i in $(seq 50); do
+ fmt=$(printf "%${i}s" %)
+ out=$(stat --form="$fmt" .)
+ test "$out" = "$fmt" || fail=1
+done
+
+Exit $fail
diff --git a/tests/misc/stat-hyphen.sh b/tests/misc/stat-hyphen.sh
new file mode 100755
index 0000000..50052f6
--- /dev/null
+++ b/tests/misc/stat-hyphen.sh
@@ -0,0 +1,30 @@
+#!/bin/sh
+# demonstrate that stat - works and stat -f - does not.
+
+# Copyright (C) 2009-2016 Free Software Foundation, Inc.
+
+# This program is free software: you can redistribute it and/or modify
+# it under the terms of the GNU General Public License as published by
+# the Free Software Foundation, either version 3 of the License, or
+# (at your option) any later version.
+
+# This program is distributed in the hope that it will be useful,
+# but WITHOUT ANY WARRANTY; without even the implied warranty of
+# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
+# GNU General Public License for more details.
+
+# You should have received a copy of the GNU General Public License
+# along with this program. If not, see <http://www.gnu.org/licenses/>.
+
+. "${srcdir=.}/tests/init.sh"; path_prepend_ ./src
+print_ver_ stat
+
+printf -- '-\n' > exp || framework_failure_
+touch f || framework_failure_
+
+stat --format=%n - < f > out || fail=1
+returns_ 1 stat -f - < f || fail=1
+
+compare exp out || fail=1
+
+Exit $fail
diff --git a/tests/misc/stat-mount.sh b/tests/misc/stat-mount.sh
new file mode 100755
index 0000000..00afd22
--- /dev/null
+++ b/tests/misc/stat-mount.sh
@@ -0,0 +1,28 @@
+#!/bin/sh
+# Test stat -c%m
+
+# Copyright (C) 2010-2016 Free Software Foundation, Inc.
+
+# This program is free software: you can redistribute it and/or modify
+# it under the terms of the GNU General Public License as published by
+# the Free Software Foundation, either version 3 of the License, or
+# (at your option) any later version.
+
+# This program is distributed in the hope that it will be useful,
+# but WITHOUT ANY WARRANTY; without even the implied warranty of
+# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
+# GNU General Public License for more details.
+
+# You should have received a copy of the GNU General Public License
+# along with this program. If not, see <http://www.gnu.org/licenses/>.
+
+. "${srcdir=.}/tests/init.sh"; path_prepend_ ./src
+print_ver_ stat
+
+stat_mnt=$(stat -c%m .) || fail=1
+case "$stat_mnt" in
+ /*) ;;
+ *) fail=1;;
+esac
+
+Exit $fail
diff --git a/tests/misc/stat-nanoseconds.sh b/tests/misc/stat-nanoseconds.sh
new file mode 100755
index 0000000..13175ee
--- /dev/null
+++ b/tests/misc/stat-nanoseconds.sh
@@ -0,0 +1,46 @@
+#!/bin/sh
+# Exercise format strings involving %:X, %:Y, etc.
+
+# Copyright (C) 2010-2016 Free Software Foundation, Inc.
+
+# This program is free software: you can redistribute it and/or modify
+# it under the terms of the GNU General Public License as published by
+# the Free Software Foundation, either version 3 of the License, or
+# (at your option) any later version.
+
+# This program is distributed in the hope that it will be useful,
+# but WITHOUT ANY WARRANTY; without even the implied warranty of
+# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
+# GNU General Public License for more details.
+
+# You should have received a copy of the GNU General Public License
+# along with this program. If not, see <http://www.gnu.org/licenses/>.
+
+print_ver_ stat
+. "${srcdir=.}/tests/init.sh"; path_prepend_ ./src
+
+# Set this to avoid problems with weird time zones.
+TZ=UTC0
+export TZ
+
+# Use a time stamp near the Epoch to avoid trouble with leap seconds.
+touch -d '1970-01-01 18:43:33.023456789' k || framework_failure_
+
+ls --full-time | grep 18:43:33.023456789 \
+ || skip_ this file system does not support sub-second time stamps
+
+test "$(stat -c %X k)" = 67413 || fail=1
+test "$(stat -c %.X k)" = 67413.023456789 || fail=1
+test "$(stat -c %.1X k)" = 67413.0 || fail=1
+test "$(stat -c %.3X k)" = 67413.023 || fail=1
+test "$(stat -c %.6X k)" = 67413.023456 || fail=1
+test "$(stat -c %.9X k)" = 67413.023456789 || fail=1
+test "$(stat -c %13.6X k)" = ' 67413.023456' || fail=1
+test "$(stat -c %013.6X k)" = 067413.023456 || fail=1
+test "$(stat -c %-13.6X k)" = '67413.023456 ' || fail=1
+test "$(stat -c %18.10X k)" = ' 67413.0234567890' || fail=1
+test "$(stat -c %I18.10X k)" = ' 67413.0234567890' || fail=1
+test "$(stat -c %018.10X k)" = 0067413.0234567890 || fail=1
+test "$(stat -c %-18.10X k)" = '67413.0234567890 ' || fail=1
+
+Exit $fail
diff --git a/tests/misc/stat-printf b/tests/misc/stat-printf
deleted file mode 100755
index ecd4940..0000000
--- a/tests/misc/stat-printf
+++ /dev/null
@@ -1,78 +0,0 @@
-#!/bin/sh
-# Test "stat --printf".
-
-# Copyright (C) 2005, 2006 Free Software Foundation, Inc.
-
-# This program is free software; you can redistribute it and/or modify
-# it under the terms of the GNU General Public License as published by
-# the Free Software Foundation; either version 2 of the License, or
-# (at your option) any later version.
-
-# This program is distributed in the hope that it will be useful,
-# but WITHOUT ANY WARRANTY; without even the implied warranty of
-# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
-# GNU General Public License for more details.
-
-# You should have received a copy of the GNU General Public License
-# along with this program; if not, write to the Free Software
-# Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA
-# 02110-1301, USA.
-
-: ${PERL=perl}
-: ${srcdir=.}
-
-$PERL -e 1 > /dev/null 2>&1 || {
- echo 1>&2 "$0: configure didn't find a usable version of Perl," \
- "so can't run this test"
- exit 77
-}
-
-exec $PERL -w -I$srcdir/.. -MCoreutils -- - <<\EOF
-require 5.003;
-use strict;
-
-(my $ME = $0) =~ s|.*/||;
-my $prog = 'stat';
-
-# Turn off localisation of executable's ouput.
-@ENV{qw(LANGUAGE LANG LC_ALL)} = ('C') x 3;
-
-my @Tests =
- (
- # test-name, [option, option, ...] {OUT=>"expected-output"}
- #
- ['nl', q!--printf='\n' .!, {OUT=>"\n"}],
- ['no-nl', "--printf=%n .", {OUT=>"."}],
- ['pct-and-esc', q!--printf='\0%n\0' .!, {OUT=>"\0.\0"}],
- ['backslash', q!--printf='\\\\' .!, {OUT=>"\\"}],
- ['nul', q!--printf='\0' .!, {OUT=>"\0"}],
- # Don't bother testing \v, since Perl doesn't handle it.
- ['bel-etc', q!--printf='\a\b\f\n\r\t' .!, {OUT=>"\a\b\f\n\r\t"}],
- ['octal-1', q!--printf='\012\377' .!, {OUT=>"\012\377"}],
- ['octal-2', q!--printf='.\012a\377b' .!, {OUT=>".\012a\377b"}],
- ['hex-1', q!--printf='\x34\xf' .!, {OUT=>"\x34\xf"}],
- ['hex-2', q!--printf='.\x18p\xfq' .!, {OUT=>".\x18p\x0fq"}],
- ['hex-3', q!--printf='\x' .!, {OUT=>'x'},
- {ERR=>"$prog: warning: unrecognized escape `\\x'\n"}],
-
- # With --format, there *is* a trailing newline.
- ['f-nl', "--format=%n .", {OUT=>".\n"}],
- ['f-nl2', "--format=%n . .", {OUT=>".\n.\n"}],
-
- ['end-pct', "--printf=% .", {OUT=>"%"}],
- ['pct-pct', "--printf=%% .", {OUT=>"%"}],
- ['end-bs', "--printf='\\' .", {OUT=>'\\'},
- {ERR=>"$prog: warning: backslash at end of format\n"}],
-
- ['err-1', "--printf=%9% .", {EXIT => 1},
- {ERR=>"$prog: %9%: invalid directive\n"}],
- ['err-2', "--printf=%9 .", {EXIT => 1},
- {ERR=>"$prog: %9: invalid directive\n"}],
- );
-
-my $save_temps = $ENV{DEBUG};
-my $verbose = $ENV{VERBOSE};
-
-my $fail = run_tests ($ME, $prog, \@Tests, $save_temps, $verbose);
-exit $fail;
-EOF
diff --git a/tests/misc/stat-printf.pl b/tests/misc/stat-printf.pl
new file mode 100755
index 0000000..2d447fd
--- /dev/null
+++ b/tests/misc/stat-printf.pl
@@ -0,0 +1,64 @@
+#!/usr/bin/perl
+# Test "stat --printf".
+
+# Copyright (C) 2005-2016 Free Software Foundation, Inc.
+
+# This program is free software: you can redistribute it and/or modify
+# it under the terms of the GNU General Public License as published by
+# the Free Software Foundation, either version 3 of the License, or
+# (at your option) any later version.
+
+# This program is distributed in the hope that it will be useful,
+# but WITHOUT ANY WARRANTY; without even the implied warranty of
+# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
+# GNU General Public License for more details.
+
+# You should have received a copy of the GNU General Public License
+# along with this program. If not, see <http://www.gnu.org/licenses/>.
+
+use strict;
+
+(my $ME = $0) =~ s|.*/||;
+my $prog = 'stat';
+
+# Turn off localization of executable's output.
+@ENV{qw(LANGUAGE LANG LC_ALL)} = ('C') x 3;
+
+my @Tests =
+ (
+ # test-name, [option, option, ...] {OUT=>"expected-output"}
+ #
+ ['nl', q!--printf='\n' .!, {OUT=>"\n"}],
+ ['no-nl', "--printf=%n .", {OUT=>"."}],
+ ['pct-and-esc', q!--printf='\0%n\0' .!, {OUT=>"\0.\0"}],
+ ['backslash', q!--printf='\\\\' .!, {OUT=>"\\"}],
+ ['nul', q!--printf='\0' .!, {OUT=>"\0"}],
+ # Don't bother testing \v, since Perl doesn't handle it.
+ ['bel-etc', q!--printf='\a\b\f\n\r\t' .!, {OUT=>"\a\b\f\n\r\t"}],
+ ['octal-1', q!--printf='\012\377' .!, {OUT=>"\012\377"}],
+ ['octal-2', q!--printf='.\012a\377b' .!, {OUT=>".\012a\377b"}],
+ ['hex-1', q!--printf='\x34\xf' .!, {OUT=>"\x34\xf"}],
+ ['hex-2', q!--printf='.\x18p\xfq' .!, {OUT=>".\x18p\x0fq"}],
+ ['hex-3', q!--printf='\x' .!, {OUT=>'x'},
+ {ERR=>"$prog: warning: unrecognized escape '\\x'\n"}],
+
+ # With --format, there *is* a trailing newline.
+ ['f-nl', "--format=%n .", {OUT=>".\n"}],
+ ['f-nl2', "--format=%n . .", {OUT=>".\n.\n"}],
+
+ ['end-pct', "--printf=% .", {OUT=>"%"}],
+ ['pct-pct', "--printf=%% .", {OUT=>"%"}],
+ ['end-bs', "--printf='\\' .", {OUT=>'\\'},
+ {ERR=>"$prog: warning: backslash at end of format\n"}],
+
+ ['err-1', "--printf=%9% .", {EXIT => 1},
+ {ERR=>"$prog: '%9%': invalid directive\n"}],
+ ['err-2', "--printf=%9 .", {EXIT => 1},
+ {ERR=>"$prog: '%9': invalid directive\n"}],
+ );
+
+my $save_temps = $ENV{DEBUG};
+my $verbose = $ENV{VERBOSE};
+
+my $fail = run_tests ($ME, $prog, \@Tests, $save_temps, $verbose);
+exit $fail;
diff --git a/tests/misc/stat-slash.sh b/tests/misc/stat-slash.sh
new file mode 100755
index 0000000..eb5c416
--- /dev/null
+++ b/tests/misc/stat-slash.sh
@@ -0,0 +1,44 @@
+#!/bin/sh
+# demonstrate that stat handles trailing slashes correctly
+
+# Copyright (C) 2009-2016 Free Software Foundation, Inc.
+
+# This program is free software: you can redistribute it and/or modify
+# it under the terms of the GNU General Public License as published by
+# the Free Software Foundation, either version 3 of the License, or
+# (at your option) any later version.
+
+# This program is distributed in the hope that it will be useful,
+# but WITHOUT ANY WARRANTY; without even the implied warranty of
+# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
+# GNU General Public License for more details.
+
+# You should have received a copy of the GNU General Public License
+# along with this program. If not, see <http://www.gnu.org/licenses/>.
+
+. "${srcdir=.}/tests/init.sh"; path_prepend_ ./src
+print_ver_ stat
+
+touch file || framework_failure_
+mkdir dir || framework_failure_
+ln -s file link1 || framework_failure_
+ln -s dir link2 || framework_failure_
+
+cat <<EOF > exp || framework_failure_
+link1
+symbolic link
+directory
+directory
+EOF
+
+# This failed on Solaris 9 for coreutils 8.0.
+stat --format=%n link1 > out || fail=1
+returns_ 1 stat --format=%n link1/ >> out || fail=1
+
+stat --format=%F link2 >> out || fail=1
+stat -L --format=%F link2 >> out || fail=1
+stat --format=%F link2/ >> out || fail=1
+
+compare exp out || fail=1
+
+Exit $fail
diff --git a/tests/misc/stdbuf.sh b/tests/misc/stdbuf.sh
new file mode 100755
index 0000000..7b9aed5
--- /dev/null
+++ b/tests/misc/stdbuf.sh
@@ -0,0 +1,127 @@
+#!/bin/sh
+# Exercise stdbuf functionality
+
+# Copyright (C) 2009-2016 Free Software Foundation, Inc.
+
+# This program is free software: you can redistribute it and/or modify
+# it under the terms of the GNU General Public License as published by
+# the Free Software Foundation, either version 3 of the License, or
+# (at your option) any later version.
+
+# This program is distributed in the hope that it will be useful,
+# but WITHOUT ANY WARRANTY; without even the implied warranty of
+# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
+# GNU General Public License for more details.
+
+# You should have received a copy of the GNU General Public License
+# along with this program. If not, see <http://www.gnu.org/licenses/>.
+
+. "${srcdir=.}/tests/init.sh"; path_prepend_ ./src
+print_ver_ stdbuf
+
+getlimits_
+
+# stdbuf fails when the absolute top build dir name contains e.g.,
+# space, TAB, NL
+lf='
+'
+case $abs_top_builddir in
+ *[\\\"\#\$\&\'\`$lf\ \ ]*)
+ skip_ "unsafe absolute build directory name: $abs_top_builddir";;
+esac
+
+# Use a fifo rather than a pipe in the tests below
+# so that the producer (uniq) will wait until the
+# consumer (dd) opens the fifo therefore increasing
+# the chance that dd will read the data from each
+# write separately.
+mkfifo_or_skip_ fifo
+
+
+# Verify input parameter checking
+stdbuf -o1 true || fail=1 # verify size syntax
+stdbuf -oK true || fail=1 # verify size syntax
+stdbuf -o0 true || fail=1 # verify unbuffered syntax
+stdbuf -oL true || fail=1 # verify line buffered syntax
+stdbuf -ol true # Capital 'L' required
+test $? = 125 || fail=1 # Internal error is a particular status
+stdbuf -o$SIZE_OFLOW true # size too large
+test $? = 125 || fail=1
+stdbuf -iL true # line buffering stdin disallowed
+test $? = 125 || fail=1
+stdbuf true # a buffering mode must be specified
+test $? = 125 || fail=1
+stdbuf -i0 -o0 -e0 true || fail=1 #check all files
+stdbuf -o1 . # invalid command
+test $? = 126 || fail=1
+stdbuf -o1 no_such # no such command
+test $? = 127 || fail=1
+
+# Terminate any background processes
+cleanup_() { kill $pid 2>/dev/null && wait $pid; }
+
+# Ensure line buffering stdout takes effect
+stdbuf_linebuffer()
+{
+ local delay="$1"
+
+ printf '1\n' > exp
+ > out || framework_failure_
+ dd count=1 if=fifo > out 2> err & pid=$!
+ (printf '1\n'; sleep $delay; printf '2\n') | stdbuf -oL uniq > fifo
+ wait $pid
+ compare exp out
+}
+
+retry_delay_ stdbuf_linebuffer .1 6 || fail=1
+
+stdbuf_unbuffer()
+{
+ local delay="$1"
+
+ # Ensure un buffering stdout takes effect
+ printf '1\n' > exp
+ > out || framework_failure_
+ dd count=1 if=fifo > out 2> err & pid=$!
+ (printf '1\n'; sleep $delay; printf '2\n') | stdbuf -o0 uniq > fifo
+ wait $pid
+ compare exp out
+}
+
+retry_delay_ stdbuf_unbuffer .1 6 || fail=1
+
+# Ensure un buffering stdin takes effect
+# The following works for me, but is racy. I.e., we're depending
+# on dd to run and close the fifo before the second write by uniq.
+# If we add a sleep, then we're just testing -oL
+ # printf '3\n' > exp
+ # dd count=1 if=fifo > /dev/null 2> err &
+ # printf '1\n\2\n3\n' | (stdbuf -i0 -oL uniq > fifo; cat) > out
+ # wait # for dd to complete
+ # compare exp out || fail=1
+# One could remove the need for dd (used to close the fifo to get uniq to quit
+# early), if head -n1 read stdin char by char. Note uniq | head -c2 doesn't
+# suffice due to the buffering implicit in the pipe. sed currently does read
+# stdin char by char, so we can test with 'sed 1q'. However I'm wary about
+# adding this dependency on a program outside of coreutils.
+ # printf '2\n' > exp
+ # printf '1\n2\n' | (stdbuf -i0 sed 1q >/dev/null; cat) > out
+ # compare exp out || fail=1
+
+# Ensure block buffering stdout takes effect
+# We don't currently test block buffering failures as
+# this doesn't work on GLIBC-2.7 or GLIBC-2.9 at least.
+ # stdbuf_blockbuffer()
+ # {
+ # local delay="$1"
+ #
+ # printf '1\n2\n' > exp
+ # dd count=1 if=fifo > out 2> err &
+ # (printf '1\n'; sleep $delay; printf '2\n') | stdbuf -o4 uniq > fifo
+ # wait # for dd to complete
+ # compare exp out
+ # }
+ #
+ # retry_delay_ stdbuf_blockbuffer .1 6 || fail=1
+
+Exit $fail
diff --git a/tests/misc/stty-invalid.sh b/tests/misc/stty-invalid.sh
new file mode 100755
index 0000000..2c2aad8
--- /dev/null
+++ b/tests/misc/stty-invalid.sh
@@ -0,0 +1,48 @@
+#!/bin/sh
+# Ensure that stty diagnoses invalid inputs, rather than silently misbehaving.
+
+# Copyright (C) 2007-2016 Free Software Foundation, Inc.
+
+# This program is free software: you can redistribute it and/or modify
+# it under the terms of the GNU General Public License as published by
+# the Free Software Foundation, either version 3 of the License, or
+# (at your option) any later version.
+
+# This program is distributed in the hope that it will be useful,
+# but WITHOUT ANY WARRANTY; without even the implied warranty of
+# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
+# GNU General Public License for more details.
+
+# You should have received a copy of the GNU General Public License
+# along with this program. If not, see <http://www.gnu.org/licenses/>.
+
+. "${srcdir=.}/tests/init.sh"; path_prepend_ ./src
+print_ver_ stty
+require_controlling_input_terminal_
+require_trap_signame_
+
+trap '' TTOU # Ignore SIGTTOU
+
+
+saved_state=$(stty -g) || fail=1
+stty $saved_state || fail=1
+
+# Before coreutils-6.9.90, if stty were given an argument with 35 colons
+# separating 36 hexadecimal strings, stty would fail to diagnose as invalid
+# any number that was out of range as long as sscanf happened to
+# overflow/wrap it back into the range of the corresponding type (either
+# tcflag_t or cc_t).
+
+# For each of the following, with coreutils-6.9 and earlier,
+# stty would fail to diagnose the error on at least Solaris 10.
+hex_2_64=10000000000000000
+returns_ 1 stty $(echo $saved_state |sed 's/^[^:]*:/'$hex_2_64:/) \
+ 2>/dev/null || fail=1
+returns_ 1 stty $(echo $saved_state |sed 's/:[0-9a-f]*$/:'$hex_2_64/) \
+ 2>/dev/null || fail=1
+
+# Just in case either of the above mistakenly succeeds (and changes
+# the state of our tty), try to restore the initial state.
+stty $saved_state || fail=1
+
+Exit $fail
diff --git a/tests/misc/stty-pairs.sh b/tests/misc/stty-pairs.sh
new file mode 100755
index 0000000..a008bef
--- /dev/null
+++ b/tests/misc/stty-pairs.sh
@@ -0,0 +1,65 @@
+#!/bin/sh
+# Make sure stty can parse most of its options - in pairs [expensive].
+
+# Copyright (C) 1998-2016 Free Software Foundation, Inc.
+
+# This program is free software: you can redistribute it and/or modify
+# it under the terms of the GNU General Public License as published by
+# the Free Software Foundation, either version 3 of the License, or
+# (at your option) any later version.
+
+# This program is distributed in the hope that it will be useful,
+# but WITHOUT ANY WARRANTY; without even the implied warranty of
+# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
+# GNU General Public License for more details.
+
+# You should have received a copy of the GNU General Public License
+# along with this program. If not, see <http://www.gnu.org/licenses/>.
+
+. "${srcdir=.}/tests/init.sh"; path_prepend_ ./src
+print_ver_ stty
+
+expensive_
+
+# Make sure there's a tty on stdin.
+require_controlling_input_terminal_
+require_trap_signame_
+
+trap '' TTOU # Ignore SIGTTOU
+
+# Get the reversible settings from stty.c.
+stty_reversible_init_
+
+saved_state=.saved-state
+stty --save > $saved_state || fail=1
+stty $(cat $saved_state) || fail=1
+
+# Build a list of all boolean options stty accepts on this system.
+# Don't depend on terminal width. Put each option on its own line,
+# remove all non-boolean ones, remove 'parenb' and 'cread' explicitly,
+# then remove any leading hyphens.
+sed_del='/^speed/d;/^rows/d;/^columns/d;/ = /d;s/parenb//;s/cread//'
+options=$(stty -a | tr -s ';' '\n' | sed "s/^ //;$sed_del;s/-//g")
+
+# Take them in pairs, with and without the leading '-'.
+for opt1 in $options; do
+ for opt2 in $options; do
+
+ stty $opt1 $opt2 || fail=1
+
+ if stty_reversible_query_ "$opt1" ; then
+ stty -$opt1 $opt2 || fail=1
+ fi
+ if stty_reversible_query_ "$opt2" ; then
+ stty $opt1 -$opt2 || fail=1
+ fi
+ if stty_reversible_query_ "$opt1" \
+ && stty_reversible_query_ "$opt2" ; then
+ stty -$opt1 -$opt2 || fail=1
+ fi
+ done
+done
+
+stty $(cat $saved_state)
+
+Exit $fail
diff --git a/tests/misc/stty-row-col.sh b/tests/misc/stty-row-col.sh
new file mode 100755
index 0000000..1e9f877
--- /dev/null
+++ b/tests/misc/stty-row-col.sh
@@ -0,0 +1,91 @@
+#!/bin/sh
+# Test "stty" with rows and columns.
+
+# Copyright (C) 1998-2016 Free Software Foundation, Inc.
+
+# This program is free software: you can redistribute it and/or modify
+# it under the terms of the GNU General Public License as published by
+# the Free Software Foundation, either version 3 of the License, or
+# (at your option) any later version.
+
+# This program is distributed in the hope that it will be useful,
+# but WITHOUT ANY WARRANTY; without even the implied warranty of
+# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
+# GNU General Public License for more details.
+
+# You should have received a copy of the GNU General Public License
+# along with this program. If not, see <http://www.gnu.org/licenses/>.
+
+# Setting this envvar to a very small value used to cause e.g., 'stty size'
+# to generate slightly different output on certain systems.
+COLUMNS=80
+export COLUMNS
+
+# Make sure we get English-language behavior.
+# See the report about a possibly-related Solaris problem by Alexandre Peshansky
+# <http://lists.gnu.org/archive/html/bug-coreutils/2004-10/msg00035.html>.
+# Currently stty isn't localized, but it might be in the future.
+LC_ALL=C
+export LC_ALL
+
+. "${srcdir=.}/tests/init.sh"; path_prepend_ ./src
+print_ver_ stty
+
+require_controlling_input_terminal_
+require_trap_signame_
+
+trap '' TTOU # Ignore SIGTTOU
+
+# Versions of GNU stty from shellutils-1.9.2c and earlier failed
+# tests #2 and #4 when run on SunOS 4.1.3.
+
+tests='
+1 rows_40_columns_80 40_80
+2 rows_1_columns_1 1_1
+3 rows_40_columns_80 40_80
+4 rows_1 1_80
+5 columns_1 1_1
+6 rows_40 40_1
+7 rows_1 1_1
+8 columns_80 1_80
+9 rows_30 30_80
+10 rows_0x1E 30_80
+11 rows_036 30_80
+NA LAST NA
+'
+set $tests
+
+saved_size=$(stty size) && test -n "$saved_size" \
+ || skip_ "can't get window size"
+
+# Linux virtual consoles issue an error if you
+# try to increase their size. So skip in that case.
+if test "x$saved_size" != "x0 0"; then
+ srow=$(echo $saved_size | cut -d ' ' -f1)
+ scol=$(echo $saved_size | cut -d ' ' -f2)
+ stty rows $(expr $srow + 1) cols $(expr $scol + 1) ||
+ skip_ "can't increase window size"
+fi
+
+while :; do
+ test_name=$1
+ args=$2
+ expected_result="$(echo $3|tr _ ' ')"
+ test "$args" = empty && args=''
+ test "x$args" = xLAST && break
+ args=$(echo x$args|tr _ ' '|sed 's/^x//')
+ if test "$VERBOSE" = yes; then
+ # echo "testing \$(stty $args; stty size\) = $expected_result ..."
+ echo "test $test_name... " | tr -d '\n'
+ fi
+ stty $args || exit 1
+ test x"$(stty size 2> /dev/null)" = "x$expected_result" \
+ && ok=ok || ok=FAIL fail=1
+ test "$VERBOSE" = yes && echo $ok
+ shift; shift; shift
+done
+
+set x $saved_size
+stty rows $2 columns $3 || exit 1
+
+Exit $fail
diff --git a/tests/misc/stty.sh b/tests/misc/stty.sh
new file mode 100755
index 0000000..5735b76
--- /dev/null
+++ b/tests/misc/stty.sh
@@ -0,0 +1,84 @@
+#!/bin/sh
+# Make sure stty can parse most of its options.
+
+# Copyright (C) 1998-2016 Free Software Foundation, Inc.
+
+# This program is free software: you can redistribute it and/or modify
+# it under the terms of the GNU General Public License as published by
+# the Free Software Foundation, either version 3 of the License, or
+# (at your option) any later version.
+
+# This program is distributed in the hope that it will be useful,
+# but WITHOUT ANY WARRANTY; without even the implied warranty of
+# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
+# GNU General Public License for more details.
+
+# You should have received a copy of the GNU General Public License
+# along with this program. If not, see <http://www.gnu.org/licenses/>.
+
+# Make sure there's a tty on stdin.
+. "${srcdir=.}/tests/init.sh"; path_prepend_ ./src
+print_ver_ stty
+
+require_controlling_input_terminal_
+require_trap_signame_
+
+trap '' TTOU # Ignore SIGTTOU
+
+# Get the reversible settings from stty.c.
+stty_reversible_init_
+
+saved_state=.saved-state
+stty --save > $saved_state || fail=1
+stty $(cat $saved_state) || fail=1
+
+# This would segfault prior to sh-utils-2.0j.
+stty erase - || fail=1
+
+# Ensure "immediate" and "wait" mode supported, with and without settings
+for mode in '-drain' 'drain'; do
+ for opt in 'echo' ''; do
+ stty "$mode" $opt || fail=1
+ done
+done
+
+# These would improperly ignore invalid options through coreutils 5.2.1.
+returns_ 1 stty -F 2>/dev/null || fail=1
+returns_ 1 stty -raw -F no/such/file 2>/dev/null || fail=1
+returns_ 1 stty -raw -a 2>/dev/null || fail=1
+
+# Build a list of all boolean options stty accepts on this system.
+# Don't depend on terminal width. Put each option on its own line,
+# remove all non-boolean ones, then remove any leading hyphens.
+sed_del='/^speed/d;/^rows/d;/^columns/d;/ = /d'
+options=$(stty -a | tr -s ';' '\n' | sed "s/^ //;$sed_del;s/-//g")
+
+# Take them one at a time, with and without the leading '-'.
+for opt in $options; do
+ # 'stty parenb' and 'stty -parenb' fail with this message
+ # stty: standard input: unable to perform all requested operations
+ # on Linux 2.2.0-pre4 kernels. Also since around Linux 2.6.30
+ # other serial control settings give the same error. So skip them.
+ # Also on ppc*|sparc* glibc platforms 'icanon' gives the same error.
+ # See: http://debbugs.gnu.org/7228#14
+ case $opt in
+ parenb|parodd|cmspar) continue;;
+ cstopb|crtscts|cdtrdsr|icanon) continue;;
+ esac
+
+ # This is listed as supported on FreeBSD
+ # but the ioctl returns ENOTTY.
+ test $opt = extproc && continue
+
+ stty $opt || fail=1
+
+ # Likewise, 'stty -cread' would fail, so skip that, too.
+ test $opt = cread && continue
+ if stty_reversible_query_ "$opt" ; then
+ stty -$opt || { fail=1; echo -$opt; }
+ fi
+done
+
+stty $(cat $saved_state)
+
+Exit $fail
diff --git a/tests/misc/sum-sysv.sh b/tests/misc/sum-sysv.sh
new file mode 100755
index 0000000..a4795c2
--- /dev/null
+++ b/tests/misc/sum-sysv.sh
@@ -0,0 +1,50 @@
+#!/bin/sh
+# make sure 'sum -s' works for input whose sum of bytes is larger than 2^32
+
+# Copyright (C) 2001-2016 Free Software Foundation, Inc.
+
+# This program is free software: you can redistribute it and/or modify
+# it under the terms of the GNU General Public License as published by
+# the Free Software Foundation, either version 3 of the License, or
+# (at your option) any later version.
+
+# This program is distributed in the hope that it will be useful,
+# but WITHOUT ANY WARRANTY; without even the implied warranty of
+# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
+# GNU General Public License for more details.
+
+# You should have received a copy of the GNU General Public License
+# along with this program. If not, see <http://www.gnu.org/licenses/>.
+
+# Avoid a problem when run in a UTF-8 locale.
+# Otherwise, Perl would try to (and fail to) interpret
+# each string below as a sequence of multi-byte characters.
+LC_ALL=C
+export LC_ALL
+
+. "${srcdir=.}/tests/init.sh"; path_prepend_ ./src
+print_ver_ sum
+
+require_perl_
+
+# FYI, 16843009 is floor (2^32 / 255).
+
+# aka: perl -e 'print chr(255) x 16843009'
+$PERL -e '$s = chr(255) x 65537; foreach (1..257) {print $s}' \
+ | sum -s > out || fail=1
+cat > exp <<\EOF
+65535 32897
+EOF
+compare exp out || fail=1
+
+rm -f out exp
+
+# aka: perl -e 'print chr(255) x 16843010'
+$PERL -e '$s = chr(255) x 65537; foreach (1..257) {print $s}; print chr(255)' \
+ | sum -s > out || fail=1
+cat > exp <<\EOF
+254 32897
+EOF
+compare exp out || fail=1
+
+Exit $fail
diff --git a/tests/misc/sum.pl b/tests/misc/sum.pl
new file mode 100755
index 0000000..d7c425d
--- /dev/null
+++ b/tests/misc/sum.pl
@@ -0,0 +1,61 @@
+#!/usr/bin/perl
+# Test "sum".
+
+# Copyright (C) 2000-2016 Free Software Foundation, Inc.
+
+# This program is free software: you can redistribute it and/or modify
+# it under the terms of the GNU General Public License as published by
+# the Free Software Foundation, either version 3 of the License, or
+# (at your option) any later version.
+
+# This program is distributed in the hope that it will be useful,
+# but WITHOUT ANY WARRANTY; without even the implied warranty of
+# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
+# GNU General Public License for more details.
+
+# You should have received a copy of the GNU General Public License
+# along with this program. If not, see <http://www.gnu.org/licenses/>.
+
+use strict;
+
+(my $program_name = $0) =~ s|.*/||;
+
+# Turn off localization of executable's output.
+@ENV{qw(LANGUAGE LANG LC_ALL)} = ('C') x 3;
+
+my $in_1k = 'a' x 1024;
+my $in_2k = 'b' x 2048;
+
+my @Tests =
+ (
+ ['1', {IN=> {f=> ''}}, {OUT=>"00000 0\n"}],
+ ['2', {IN=> {f=> 'a'}}, {OUT=>"00097 1\n"}],
+ ['3', {IN=> {f=> 'abc'}}, {OUT=>"16556 1\n"}],
+ ['4', {IN=> {f=> 'message digest'}}, {OUT=>"26423 1\n"}],
+ ['5', {IN=> {f=> 'abcdefghijklmnopqrstuvwxyz'}}, {OUT=>"53553 1\n"}],
+ ['6', {IN=> {f=> join ('', 'A'..'Z', 'a'..'z', '0'..'9')}},
+ {OUT=>"25587 1\n"}],
+ ['7', {IN=> {f=> '1234567890' x 8}}, {OUT=>"21845 1\n"}],
+
+ ['a-r-1k', '-r', {IN=> {f=> $in_1k}}, {OUT=>"65409 1\n"}],
+ ['a-s-1k', '-s', {IN=> {f=> $in_1k}}, {OUT=>"33793 2 f\n"}],
+ ['b-r-2k', '-r', {IN=> {f=> $in_2k}}, {OUT=>"65223 2\n"}],
+ ['b-s-2k', '-s', {IN=> {f=> $in_2k}}, {OUT=>"4099 4 f\n"}],
+
+ ['1s', '-s', {IN=> {f=> ''}}, {OUT=>"0 0 f\n"}],
+ ['2s', '-s', {IN=> {f=> 'a'}}, {OUT=>"97 1 f\n"}],
+ ['3s', '-s', {IN=> {f=> 'abc'}}, {OUT=>"294 1 f\n"}],
+ ['4s', '-s', {IN=> {f=> 'message digest'}}, {OUT=>"1413 1 f\n"}],
+ ['5s', '-s', {IN=> {f=> 'abcdefghijklmnopqrstuvwxyz'}},
+ {OUT=>"2847 1 f\n"}],
+ ['6s', '-s', {IN=> {f=> join ('', 'A'..'Z', 'a'..'z', '0'..'9')}},
+ {OUT=>"5387 1 f\n"}],
+ ['7s', '-s', {IN=> {f=> '1234567890' x 8}}, {OUT=>"4200 1 f\n"}],
+ );
+
+my $save_temps = $ENV{DEBUG};
+my $verbose = $ENV{VERBOSE};
+
+my $prog = 'sum';
+my $fail = run_tests ($program_name, $prog, \@Tests, $save_temps, $verbose);
+exit $fail;
diff --git a/tests/misc/sync.sh b/tests/misc/sync.sh
new file mode 100755
index 0000000..5bf569c
--- /dev/null
+++ b/tests/misc/sync.sh
@@ -0,0 +1,52 @@
+#!/bin/sh
+# Test various sync(1) operations
+
+# Copyright (C) 2015-2016 Free Software Foundation, Inc.
+
+# This program is free software: you can redistribute it and/or modify
+# it under the terms of the GNU General Public License as published by
+# the Free Software Foundation, either version 3 of the License, or
+# (at your option) any later version.
+
+# This program is distributed in the hope that it will be useful,
+# but WITHOUT ANY WARRANTY; without even the implied warranty of
+# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
+# GNU General Public License for more details.
+
+# You should have received a copy of the GNU General Public License
+# along with this program. If not, see <http://www.gnu.org/licenses/>.
+
+. "${srcdir=.}/tests/init.sh"; path_prepend_ ./src
+print_ver_ sync
+
+touch file
+
+# fdatasync+syncfs is nonsensical
+returns_ 1 sync --data --file-system || fail=1
+
+# fdatasync needs an operand
+returns_ 1 sync -d || fail=1
+
+# Test syncing of file (fsync) (little side effects)
+sync file || fail=1
+
+# Ensure multiple args are processed and diagnosed
+returns_ 1 sync file nofile || fail=1
+
+# Ensure inaccessible dirs give an appropriate error
+mkdir norw || framework_failure_
+chmod 0 norw || framework_failure_
+if ! test -r norw; then
+ sync norw 2>err
+ printf "sync: error opening 'norw': Permission denied\n" >exp
+ compare exp err || fail=1
+fi
+
+if test "$fail" != '1'; then
+ # Ensure a fifo doesn't block
+ mkfifo_or_skip_ fifo
+ timeout 10 sync fifo
+ test $? = 124 && fail=1
+fi
+
+Exit $fail
diff --git a/tests/misc/tac-2-nonseekable.sh b/tests/misc/tac-2-nonseekable.sh
new file mode 100755
index 0000000..47e7849
--- /dev/null
+++ b/tests/misc/tac-2-nonseekable.sh
@@ -0,0 +1,39 @@
+#!/bin/sh
+# ensure that tac works with non-seekable or quasi-seekable inputs
+
+# Copyright (C) 2011-2016 Free Software Foundation, Inc.
+
+# This program is free software: you can redistribute it and/or modify
+# it under the terms of the GNU General Public License as published by
+# the Free Software Foundation, either version 3 of the License, or
+# (at your option) any later version.
+
+# This program is distributed in the hope that it will be useful,
+# but WITHOUT ANY WARRANTY; without even the implied warranty of
+# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
+# GNU General Public License for more details.
+
+# You should have received a copy of the GNU General Public License
+# along with this program. If not, see <http://www.gnu.org/licenses/>.
+
+. "${srcdir=.}/tests/init.sh"; path_prepend_ ./src
+print_ver_ tac
+
+echo x | tac - - > out 2> err || fail=1
+echo x > exp || fail=1
+compare exp out || fail=1
+compare /dev/null err || fail=1
+
+# Make sure it works on funny files in /proc and /sys.
+
+for file in /proc/version /sys/kernel/profiling; do
+ if test -r $file; then
+ cp -f $file copy &&
+ tac copy > exp1 || framework_failure_
+
+ tac $file > out1 || fail=1
+ compare exp1 out1 || fail=1
+ fi
+done
+
+Exit $fail
diff --git a/tests/misc/tac-continue b/tests/misc/tac-continue
deleted file mode 100755
index d8f50ff..0000000
--- a/tests/misc/tac-continue
+++ /dev/null
@@ -1,92 +0,0 @@
-#!/bin/sh
-# Ensure that tac processes all command line arguments, even
-# when it encounters an error with say the first one.
-# With coreutils-5.2.1 and earlier, this test would fail.
-
-# Copyright (C) 2004, 2006 Free Software Foundation, Inc.
-
-# This program is free software; you can redistribute it and/or modify
-# it under the terms of the GNU General Public License as published by
-# the Free Software Foundation; either version 2 of the License, or
-# (at your option) any later version.
-
-# This program is distributed in the hope that it will be useful,
-# but WITHOUT ANY WARRANTY; without even the implied warranty of
-# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
-# GNU General Public License for more details.
-
-# You should have received a copy of the GNU General Public License
-# along with this program; if not, write to the Free Software
-# Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA
-# 02110-1301, USA.
-
-if test "$VERBOSE" = yes; then
- set -x
- tac --version
-fi
-
-. $srcdir/../lang-default
-
-# See if the envvar is defined.
-if test x = "x$FULL_PARTITION_TMPDIR"; then
- echo "$0: FULL_PARTITION_TMPDIR not defined; skipping this test" 1>&2
- (exit 77); exit 77
-fi
-
-if ! test -d "$FULL_PARTITION_TMPDIR"; then
- echo "$0: $FULL_PARTITION_TMPDIR:" \
- "\$FULL_PARTITION_TMPDIR does not specify a directory" 1>&2
- (exit 1); exit 1
-fi
-
-pwd=`pwd`
-t0=`echo "$0"|sed 's,.*/,,'`.tmp; tmp=$t0/$$
-trap 'status=$?; cd "$pwd" && chmod -R u+rwx $t0 && rm -rf $t0 && exit $status' 0
-trap '(exit $?); exit $?' 1 2 13 15
-
-framework_failure=0
-mkdir -p $tmp || framework_failure=1
-cd $tmp || framework_failure=1
-
-fp_tmp="$FULL_PARTITION_TMPDIR/tac-cont-$$"
-t0="$t0 $fp_tmp"
-# Make sure we can create an empty file there (i.e. no shortage of inodes).
-if ! touch $fp_tmp; then
- echo "$0: $fp_tmp: cannot create empty file" 1>&2
- (exit 1); exit 1
-fi
-
-# Make sure that we fail when trying to create a file large enough
-# to consume a non-inode block.
-if seq 1000 > $fp_tmp 2>/dev/null; then
- echo "$0: $FULL_PARTITION_TMPDIR: not a full partition" 1>&2
- (exit 1); exit 1
-fi
-
-seq 5 > in
-
-if test $framework_failure = 1; then
- echo "$0: failure in testing framework" 1>&2
- (exit 1); exit 1
-fi
-
-fail=0
-
-# Give tac a fifo command line argument.
-# This makes it try to create a temporary file in $TMPDIR.
-mkfifo fifo
-seq 1000 > fifo &
-TMPDIR=$FULL_PARTITION_TMPDIR tac fifo in >out 2>err && fail=1
-
-cat <<\EOF > exp || fail=1
-5
-4
-3
-2
-1
-EOF
-
-cmp out exp || fail=1
-test $fail = 1 && diff out exp 2> /dev/null
-
-(exit $fail); exit $fail
diff --git a/tests/misc/tac-continue.sh b/tests/misc/tac-continue.sh
new file mode 100755
index 0000000..f091936
--- /dev/null
+++ b/tests/misc/tac-continue.sh
@@ -0,0 +1,76 @@
+#!/bin/sh
+# Ensure that tac processes all command line arguments, even
+# when it encounters an error with say the first one.
+# With coreutils-5.2.1 and earlier, this test would fail.
+
+# Copyright (C) 2004-2016 Free Software Foundation, Inc.
+
+# This program is free software: you can redistribute it and/or modify
+# it under the terms of the GNU General Public License as published by
+# the Free Software Foundation, either version 3 of the License, or
+# (at your option) any later version.
+
+# This program is distributed in the hope that it will be useful,
+# but WITHOUT ANY WARRANTY; without even the implied warranty of
+# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
+# GNU General Public License for more details.
+
+# You should have received a copy of the GNU General Public License
+# along with this program. If not, see <http://www.gnu.org/licenses/>.
+
+. "${srcdir=.}/tests/init.sh"; path_prepend_ ./src
+print_ver_ tac
+
+# See if the envvar is defined.
+if test x = "x$FULL_PARTITION_TMPDIR"; then
+ skip_ "FULL_PARTITION_TMPDIR not defined"
+fi
+
+if ! test -d "$FULL_PARTITION_TMPDIR"; then
+ echo "$0: $FULL_PARTITION_TMPDIR:" \
+ "\$FULL_PARTITION_TMPDIR does not specify a directory" 1>&2
+ Exit 1
+fi
+
+fp_tmp="$FULL_PARTITION_TMPDIR/tac-cont-$$"
+cleanup_()
+{
+ # Terminate any background process
+ # and remove tmp dir
+ rm -f "$fp_tmp"
+ kill $pid 2>/dev/null && wait $pid
+}
+
+# Make sure we can create an empty file there (i.e., no shortage of inodes).
+if ! touch $fp_tmp; then
+ echo "$0: $fp_tmp: cannot create empty file" 1>&2
+ Exit 1
+fi
+
+# Make sure that we fail when trying to create a file large enough
+# to consume a non-inode block.
+if seq 1000 > $fp_tmp 2>/dev/null; then
+ echo "$0: $FULL_PARTITION_TMPDIR: not a full partition" 1>&2
+ Exit 1
+fi
+
+seq 5 > in
+
+
+# Give tac a fifo command line argument.
+# This makes it try to create a temporary file in $TMPDIR.
+mkfifo_or_skip_ fifo
+seq 1000 > fifo & pid=$!
+TMPDIR=$FULL_PARTITION_TMPDIR tac fifo in >out 2>err && fail=1
+
+cat <<\EOF > exp || fail=1
+5
+4
+3
+2
+1
+EOF
+
+compare exp out || fail=1
+
+Exit $fail
diff --git a/tests/misc/tac.pl b/tests/misc/tac.pl
new file mode 100755
index 0000000..fb76719
--- /dev/null
+++ b/tests/misc/tac.pl
@@ -0,0 +1,91 @@
+#!/usr/bin/perl
+
+# Copyright (C) 2008-2016 Free Software Foundation, Inc.
+
+# This program is free software: you can redistribute it and/or modify
+# it under the terms of the GNU General Public License as published by
+# the Free Software Foundation, either version 3 of the License, or
+# (at your option) any later version.
+
+# This program is distributed in the hope that it will be useful,
+# but WITHOUT ANY WARRANTY; without even the implied warranty of
+# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
+# GNU General Public License for more details.
+
+# You should have received a copy of the GNU General Public License
+# along with this program. If not, see <http://www.gnu.org/licenses/>.
+
+use strict;
+
+my $prog = 'tac';
+
+# Turn off localization of executable's output.
+@ENV{qw(LANGUAGE LANG LC_ALL)} = ('C') x 3;
+
+my $bad_dir = 'no/such/dir';
+
+# This must be longer than 16KiB to trigger the double free in coreutils-8.5.
+my $long_line = 'o' x (16 * 1024 + 1);
+
+my @Tests =
+(
+ ['segfault', '-r', {IN=>"a\n"}, {IN=>"b\n"}, {OUT=>"a\nb\n"}],
+ ['segfault2','-r', {IN=>"a\nb\n"}, {IN=>"1\n2\n"}, {OUT=>"b\na\n2\n1\n"}],
+
+ ['basic-0', '', {IN=>""}, {OUT=>""}],
+ ['basic-a', '', {IN=>"a"}, {OUT=>"a"}],
+ ['basic-b', '', {IN=>"\n"}, {OUT=>"\n"}],
+ ['basic-c', '', {IN=>"a\n"}, {OUT=>"a\n"}],
+ ['basic-d', '', {IN=>"a\nb"}, {OUT=>"ba\n"}],
+ ['basic-e', '', {IN=>"a\nb\n"}, {OUT=>"b\na\n"}],
+ ['basic-f', '', {IN=>"1234567\n8\n"}, {OUT=>"8\n1234567\n"}],
+ ['basic-g', '', {IN=>"12345678\n9\n"}, {OUT=>"9\n12345678\n"}],
+ ['basic-h', '', {IN=>"123456\n8\n"}, {OUT=>"8\n123456\n"}],
+ ['basic-i', '', {IN=>"12345\n8\n"}, {OUT=>"8\n12345\n"}],
+ ['basic-j', '', {IN=>"1234\n8\n"}, {OUT=>"8\n1234\n"}],
+ ['basic-k', '', {IN=>"123\n8\n"}, {OUT=>"8\n123\n"}],
+
+ ['nul-0', '-s ""', {IN=>""}, {OUT=>""}],
+ ['nul-a', '-s ""', {IN=>"a"}, {OUT=>"a"}],
+ ['nul-b', '-s ""', {IN=>"\0"}, {OUT=>"\0"}],
+ ['nul-c', '-s ""', {IN=>"a\0"}, {OUT=>"a\0"}],
+ ['nul-d', '-s ""', {IN=>"a\0b"}, {OUT=>"ba\0"}],
+ ['nul-e', '-s ""', {IN=>"a\0b\0"}, {OUT=>"b\0a\0"}],
+
+ ['opt-b', '-b', {IN=>"\na\nb\nc"}, {OUT=>"\nc\nb\na"}],
+ ['opt-s', '-s:', {IN=>"a:b:c:"}, {OUT=>"c:b:a:"}],
+ ['opt-sb', qw(-s : -b), {IN=>":a:b:c"}, {OUT=>":c:b:a"}],
+ ['opt-r', qw(-r -s '\._+'),
+ {IN=>"1._2.__3.___4._"},
+ {OUT=>"4._3.___2.__1._"}],
+
+ ['opt-r2', qw(-r -s '\._+'),
+ {IN=>"a.___b.__1._2.__3.___4._"},
+ {OUT=>"4._3.___2.__1._b.__a.___"}],
+
+ # This gave incorrect output (.___4._2.__3._1) with tac-1.22.
+ ['opt-br', qw(-b -r -s '\._+'),
+ {IN=>"._1._2.__3.___4"}, {OUT=>".___4.__3._2._1"}],
+
+ ['opt-br2', qw(-b -r -s '\._+'),
+ {IN=>".__x.___y.____z._1._2.__3.___4"},
+ {OUT=>".___4.__3._2._1.____z.___y.__x"}],
+
+ ['pipe-bad-tmpdir',
+ {ENV => "TMPDIR=$bad_dir"},
+ {IN_PIPE => "a\n"},
+ {ERR_SUBST => "s,'$bad_dir': .*,...,"},
+ {ERR => "$prog: failed to create temporary file in ...\n"},
+ {EXIT => 1}],
+
+ # coreutils-8.5's tac would double-free its primary buffer.
+ ['double-free', {IN=>$long_line}, {OUT=>$long_line}],
+);
+
+@Tests = triple_test \@Tests;
+
+my $save_temps = $ENV{DEBUG};
+my $verbose = $ENV{VERBOSE};
+
+my $fail = run_tests ($prog, $prog, \@Tests, $save_temps, $verbose);
+exit $fail;
diff --git a/tests/misc/tail.pl b/tests/misc/tail.pl
new file mode 100755
index 0000000..0d9bc48
--- /dev/null
+++ b/tests/misc/tail.pl
@@ -0,0 +1,145 @@
+#!/usr/bin/perl
+# Test tail.
+
+# Copyright (C) 2008-2016 Free Software Foundation, Inc.
+
+# This program is free software: you can redistribute it and/or modify
+# it under the terms of the GNU General Public License as published by
+# the Free Software Foundation, either version 3 of the License, or
+# (at your option) any later version.
+
+# This program is distributed in the hope that it will be useful,
+# but WITHOUT ANY WARRANTY; without even the implied warranty of
+# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
+# GNU General Public License for more details.
+
+# You should have received a copy of the GNU General Public License
+# along with this program. If not, see <http://www.gnu.org/licenses/>.
+
+use strict;
+
+my $prog = 'tail';
+my $normalize_strerror = "s/': .*/'/";
+
+# Turn off localization of executable's output.
+@ENV{qw(LANGUAGE LANG LC_ALL)} = ('C') x 3;
+
+my @tv = (
+# test name, options, input, expected output, expected return code
+#
+['obs-plus-c1', '+2c', 'abcd', 'bcd', 0],
+['obs-plus-c2', '+8c', 'abcd', '', 0],
+['obs-c3', '-1c', 'abcd', 'd', 0],
+['obs-c4', '-9c', 'abcd', 'abcd', 0],
+['obs-c5', '-12c', 'x' . ('y' x 12) . 'z', ('y' x 11) . 'z', 0],
+
+['obs-l1', '-1l', 'x', 'x', 0],
+['obs-l2', '-1l', "x\ny\n", "y\n", 0],
+['obs-l3', '-1l', "x\ny", "y", 0],
+['obs-plus-l4', '+1l', "x\ny\n", "x\ny\n", 0],
+['obs-plus-l5', '+2l', "x\ny\n", "y\n", 0],
+
+# Same as -l tests, but without the 'l'.
+['obs-1', '-1', 'x', 'x', 0],
+['obs-2', '-1', "x\ny\n", "y\n", 0],
+['obs-3', '-1', "x\ny", "y", 0],
+['obs-plus-4', '+1', "x\ny\n", "x\ny\n", 0],
+['obs-plus-5', '+2', "x\ny\n", "y\n", 0],
+
+# This is equivalent to +10c
+['obs-plus-x1', '+c', 'x' . ('y' x 10) . 'z', 'yyz', 0],
+# This is equivalent to +10l
+['obs-plus-x2', '+l', "x\n" . ("y\n" x 10) . 'z', "y\ny\nz", 0],
+# With no number, this is like -10l
+['obs-l', '-l', "x\n" . ("y\n" x 10) . 'z', ("y\n" x 9) . 'z', 0],
+
+['obs-b', '-b', "x\n" x (512 * 10 / 2 + 1), "x\n" x (512 * 10 / 2), 0],
+
+['err-1', '+cl', '', '', 1,
+ "$prog: cannot open '+cl' for reading: No such file or directory\n"],
+
+['err-2', '-cl', '', '', 1,
+ "$prog: invalid number of bytes: 'l'\n", $normalize_strerror],
+
+['err-3', '+2cz', '', '', 1,
+ "$prog: cannot open '+2cz' for reading: No such file or directory\n"],
+
+# This should get 'tail: invalid option -- 2'
+['err-4', '-2cX', '', '', 1,
+ "$prog: option used in invalid context -- 2\n"],
+
+# Since the number is larger than 2^64, this should provoke
+# the diagnostic: 'tail: 99999999999999999999: invalid number of bytes'
+# on all systems... probably, for now, maybe.
+['err-5', '-c99999999999999999999', '', '', 1,
+ "$prog: invalid number of bytes: '99999999999999999999'\n",
+ $normalize_strerror],
+['err-6', '-c --', '', '', 1,
+ "$prog: invalid number of bytes: '-'\n", $normalize_strerror],
+
+# Same as -n 10
+['minus-1', '-', '', '', 0],
+['minus-2', '-', "x\n" . ("y\n" x 10) . 'z', ("y\n" x 9) . 'z', 0],
+
+['c-2', '-c 2', "abcd\n", "d\n", 0],
+['c-2-minus', '-c 2 --', "abcd\n", "d\n", 0],
+['c2', '-c2', "abcd\n", "d\n", 0],
+['c2-minus', '-c2 --', "abcd\n", "d\n", 0],
+
+['n-1', '-n 10', "x\n" . ("y\n" x 10) . 'z', ("y\n" x 9) . 'z', 0],
+['n-2', '-n -10', "x\n" . ("y\n" x 10) . 'z', ("y\n" x 9) . 'z', 0],
+['n-3', '-n +10', "x\n" . ("y\n" x 10) . 'z', "y\ny\nz", 0],
+
+# Accept +0 as synonym for +1.
+['n-4', '-n +0', "y\n" x 5, "y\n" x 5, 0],
+['n-4a', '-n +1', "y\n" x 5, "y\n" x 5, 0],
+
+# Note that -0 is *not* a synonym for -1.
+['n-5', '-n -0', "y\n" x 5, '', 0],
+['n-5a', '-n -1', "y\n" x 5, "y\n", 0],
+['n-5b', '-n 0', "y\n" x 5, '', 0],
+
+# With textutils-1.22, this failed.
+['f-pipe-1', '-f -n 1', "a\nb\n", "b\n", 0],
+
+# --zero-terminated
+['zero-1', '-z -n 1', "x\0y", "y", 0],
+['zero-2', '-z -n 2', "x\0y", "x\0y", 0],
+);
+
+my @Tests;
+
+foreach my $t (@tv)
+ {
+ my ($test_name, $flags, $in, $exp, $ret, $err_msg, $err_sub) = @$t;
+ my $e = [$test_name, $flags, {IN=>$in}, {OUT=>$exp}];
+ $ret
+ and push @$e, {EXIT=>$ret}, {ERR=>$err_msg}, {ERR_SUBST=>$err_sub};
+
+ $test_name =~ /^(obs-plus-|minus-)/
+ and push @$e, {ENV=>'_POSIX2_VERSION=199209'};
+
+ $test_name =~ /^(err-6|c-2)$/
+ and push @$e, {ENV=>'_POSIX2_VERSION=200112'};
+
+ $test_name =~ /^f-pipe-/
+ and push @$e, {ENV=>'POSIXLY_CORRECT=1'};
+
+ push @Tests, $e;
+ }
+
+@Tests = triple_test \@Tests;
+
+# If you run the minus* tests with a FILE arg they'd hang.
+# If you run the err-1 or err-3 tests with a FILE, they'd misinterpret
+# the arg unless we are using the obsolete form.
+@Tests = grep { $_->[0] !~ /^(minus|err-[13])/ || $_->[0] =~ /\.[rp]$/ } @Tests;
+
+# Using redirection or a file would make this hang.
+@Tests = grep { $_->[0] !~ /^f-/ || $_->[0] =~ /\.p$/ } @Tests;
+
+my $save_temps = $ENV{DEBUG};
+my $verbose = $ENV{VERBOSE};
+
+my $fail = run_tests ($prog, $prog, \@Tests, $save_temps, $verbose);
+exit $fail;
diff --git a/tests/misc/tee.sh b/tests/misc/tee.sh
new file mode 100755
index 0000000..424e240
--- /dev/null
+++ b/tests/misc/tee.sh
@@ -0,0 +1,109 @@
+#!/bin/sh
+# test for basic tee functionality.
+
+# Copyright (C) 2005-2016 Free Software Foundation, Inc.
+
+# This program is free software: you can redistribute it and/or modify
+# it under the terms of the GNU General Public License as published by
+# the Free Software Foundation, either version 3 of the License, or
+# (at your option) any later version.
+
+# This program is distributed in the hope that it will be useful,
+# but WITHOUT ANY WARRANTY; without even the implied warranty of
+# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
+# GNU General Public License for more details.
+
+# You should have received a copy of the GNU General Public License
+# along with this program. If not, see <http://www.gnu.org/licenses/>.
+
+. "${srcdir=.}/tests/init.sh"; path_prepend_ ./src
+print_ver_ tee
+
+echo line >sample || framework_failure_
+
+# POSIX says: "Processing of at least 13 file operands shall be supported."
+for n in 0 1 2 12 13; do
+ files=$(seq $n)
+ rm -f $files
+ tee $files <sample >out || fail=1
+ for f in out $files; do
+ compare sample $f || fail=1
+ done
+done
+
+# Ensure tee treats '-' as the name of a file, as mandated by POSIX.
+# Between v5.3.0 and v8.23, a '-' argument caused tee to send another
+# copy of input to standard output.
+tee - <sample >out 2>err || fail=1
+compare sample ./- || fail=1
+compare sample out || fail=1
+compare /dev/null err || fail
+
+# Ensure tee exits early if no more writable outputs
+if test -w /dev/full && test -c /dev/full; then
+ yes | returns_ 1 timeout 10 tee /dev/full 2>err >/dev/full || fail=1
+ # Ensure an error for each of the 2 outputs
+ # (and no redundant errors for stdout).
+ test $(wc -l < err) = 2 || { cat err; fail=1; }
+
+
+ # Ensure we continue with outputs that are OK
+ seq 10000 > multi_read || framework_failure_
+
+ returns_ 1 tee /dev/full out2 2>err >out1 <multi_read || fail=1
+ cmp multi_read out1 || fail=1
+ cmp multi_read out2 || fail=1
+ # Ensure an error for failing output
+ test $(wc -l < err) = 1 || { cat err; fail=1; }
+
+ returns_ 1 tee out1 out2 2>err >/dev/full <multi_read || fail=1
+ cmp multi_read out1 || fail=1
+ cmp multi_read out2 || fail=1
+ # Ensure an error for failing output
+ test $(wc -l < err) = 1 || { cat err; fail=1; }
+fi
+
+
+# Ensure tee honors --output-error modes
+mkfifo_or_skip_ fifo
+read_fifo() { timeout 10 dd count=1 if=fifo of=/dev/null status=none & }
+
+# Determine platform sigpipe exit status
+read_fifo
+yes >fifo
+pipe_status=$?
+
+# Default operation is to continue on output errors but exit silently on SIGPIPE
+read_fifo
+yes | returns_ $pipe_status timeout 10 tee ./e/noent 2>err >fifo || fail=1
+test $(wc -l < err) = 1 || { cat err; fail=1; }
+
+# With -p, SIGPIPE is suppressed, exit 0 for EPIPE when all outputs finished
+read_fifo
+yes | timeout 10 tee -p 2>err >fifo || fail=1
+test $(wc -l < err) = 0 || { cat err; fail=1; }
+
+# With --output-error=warn, exit 1 for EPIPE when all outputs finished
+read_fifo
+yes | returns_ 1 timeout 10 tee --output-error=warn 2>err >fifo || fail=1
+test $(wc -l < err) = 1 || { cat err; fail=1; }
+
+# With --output-error=exit, exit 1 immediately for EPIPE
+read_fifo
+yes | returns_ 1 timeout 10 tee --output-error=exit /dev/null 2>err >fifo \
+ || fail=1
+test $(wc -l < err) = 1 || { cat err; fail=1; }
+
+# With --output-error=exit, exit 1 immediately on output error
+read_fifo
+yes | returns_ 1 timeout 10 tee --output-error=exit ./e/noent 2>err >fifo \
+ || fail=1
+test $(wc -l < err) = 1 || { cat err; fail=1; }
+
+# With --output-error=exit-nopipe, exit 0 for EPIPE
+read_fifo
+yes | timeout 10 tee --output-error=exit-nopipe 2>err >fifo || fail=1
+test $(wc -l < err) = 0 || { cat err; fail=1; }
+
+wait
+Exit $fail
diff --git a/tests/misc/test-diag b/tests/misc/test-diag
deleted file mode 100755
index d2a40fa..0000000
--- a/tests/misc/test-diag
+++ /dev/null
@@ -1,53 +0,0 @@
-#!/bin/sh
-# Test the diagnostics of "test".
-
-# Copyright (C) 2006, 2007 Free Software Foundation, Inc.
-
-# This program is free software; you can redistribute it and/or modify
-# it under the terms of the GNU General Public License as published by
-# the Free Software Foundation; either version 2 of the License, or
-# (at your option) any later version.
-
-# This program is distributed in the hope that it will be useful,
-# but WITHOUT ANY WARRANTY; without even the implied warranty of
-# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
-# GNU General Public License for more details.
-
-# You should have received a copy of the GNU General Public License
-# along with this program; if not, write to the Free Software
-# Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA
-# 02110-1301, USA.
-
-: ${PERL=perl}
-: ${srcdir=.}
-
-$PERL -e 1 > /dev/null 2>&1 || {
- echo 1>&2 "$0: configure didn't find a usable version of Perl," \
- "so can't run this test"
- exit 77
-}
-
-exec $PERL -w -I$srcdir/.. -MCoreutils -- - <<\EOF
-require 5.003;
-use strict;
-
-(my $program_name = $0) =~ s|.*/||;
-
-# Turn off localisation of executable's ouput.
-@ENV{qw(LANGUAGE LANG LC_ALL)} = ('C') x 3;
-
-my $prog = '../../src/test';
-my @Tests =
- (
- # In coreutils-5.93, this diagnostic lacked the newline.
- ['o', '-o arg', {ERR => "test: extra argument `-o'\n"},
- {ERR_SUBST => 's!^$prog:!test:!'},
- {EXIT => 2}],
- );
-
-my $save_temps = $ENV{DEBUG};
-my $verbose = $ENV{VERBOSE};
-
-my $fail = run_tests ($program_name, $prog, \@Tests, $save_temps, $verbose);
-exit $fail;
-EOF
diff --git a/tests/misc/test-diag.pl b/tests/misc/test-diag.pl
new file mode 100755
index 0000000..b0a1ec2
--- /dev/null
+++ b/tests/misc/test-diag.pl
@@ -0,0 +1,38 @@
+#!/usr/bin/perl
+# Test the diagnostics of "test".
+
+# Copyright (C) 2006-2016 Free Software Foundation, Inc.
+
+# This program is free software: you can redistribute it and/or modify
+# it under the terms of the GNU General Public License as published by
+# the Free Software Foundation, either version 3 of the License, or
+# (at your option) any later version.
+
+# This program is distributed in the hope that it will be useful,
+# but WITHOUT ANY WARRANTY; without even the implied warranty of
+# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
+# GNU General Public License for more details.
+
+# You should have received a copy of the GNU General Public License
+# along with this program. If not, see <http://www.gnu.org/licenses/>.
+
+use strict;
+
+(my $program_name = $0) =~ s|.*/||;
+
+# Turn off localization of executable's output.
+@ENV{qw(LANGUAGE LANG LC_ALL)} = ('C') x 3;
+
+my @Tests =
+ (
+ # In coreutils-5.93, this diagnostic lacked the newline.
+ ['o', '-o arg', {ERR => "test: extra argument '-o'\n"},
+ {ERR_SUBST => 's!^.*:!test:!'},
+ {EXIT => 2}],
+ );
+
+my $save_temps = $ENV{DEBUG};
+my $verbose = $ENV{VERBOSE};
+my $prog = 'test';
+my $fail = run_tests ($program_name, \$prog, \@Tests, $save_temps, $verbose);
+exit $fail;
diff --git a/tests/misc/test.pl b/tests/misc/test.pl
new file mode 100755
index 0000000..1091d3a
--- /dev/null
+++ b/tests/misc/test.pl
@@ -0,0 +1,197 @@
+#!/usr/bin/perl
+
+# Copyright (C) 2008-2016 Free Software Foundation, Inc.
+
+# This program is free software: you can redistribute it and/or modify
+# it under the terms of the GNU General Public License as published by
+# the Free Software Foundation, either version 3 of the License, or
+# (at your option) any later version.
+
+# This program is distributed in the hope that it will be useful,
+# but WITHOUT ANY WARRANTY; without even the implied warranty of
+# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
+# GNU General Public License for more details.
+
+# You should have received a copy of the GNU General Public License
+# along with this program. If not, see <http://www.gnu.org/licenses/>.
+
+use strict;
+
+my $limits = getlimits ();
+
+my $prog = 'test';
+
+# Turn off localization of executable's output.
+@ENV{qw(LANGUAGE LANG LC_ALL)} = ('C') x 3;
+
+sub digest_test ($)
+{
+ my ($t) = @_;
+ my @args;
+ my $ret = 0;
+ my @list_of_hashref;
+ foreach my $e (@$t)
+ {
+ !ref $e
+ and push (@args, $e), next;
+ ref $e eq 'HASH'
+ or (warn "$0: $t->[0]: unexpected entry type\n"), next;
+
+ exists $e->{EXIT}
+ and $ret = $e->{EXIT}, next;
+
+ push @list_of_hashref, $e;
+ }
+ shift @args; # discard test name
+ my $flags = join ' ', @args;
+
+ return ($flags, $ret, \@list_of_hashref);
+}
+
+sub add_inverse_op_tests($)
+{
+ my ($tests) = @_;
+ my @new;
+
+ my %inverse_op =
+ (
+ eq => 'ne',
+ lt => 'ge',
+ gt => 'le',
+ );
+
+ foreach my $t (@$tests)
+ {
+ push @new, $t;
+
+ my $test_name = $t->[0];
+ my ($flags, $ret, $LoH) = digest_test $t;
+
+ # Generate corresponding tests of inverse ops.
+ # E.g. generate tests of '-ge' from those of '-lt'.
+ foreach my $op (qw(gt lt eq))
+ {
+ if ($test_name =~ /$op-/ && $flags =~ / -$op /)
+ {
+ my $inv = $inverse_op{$op};
+ $test_name =~ s/$op/$inv/;
+ $flags =~ s/-$op/-$inv/;
+ $ret = 1 - $ret;
+ push (@new, [$test_name, $flags, {EXIT=>$ret}, @$LoH]);
+ }
+ }
+ }
+ return @new;
+}
+
+sub add_pn_tests($)
+{
+ my ($tests) = @_;
+ my @new;
+
+ # Generate parenthesized and negated versions of each test.
+ # There are a few exceptions.
+ my %not_N = map {$_ => 1} qw (1a);
+ my %not_P = map {$_ => 1} qw (1a
+ streq-6 strne-6
+ paren-1 paren-2 paren-3 paren-4 paren-5);
+ foreach my $t (@$tests)
+ {
+ push @new, $t;
+
+ my $test_name = $t->[0];
+ my ($flags, $ret, $LoH) = digest_test $t;
+ next if $ret == 2;
+
+ push (@new, ["N-$test_name", "! $flags", {EXIT=>1-$ret}, @$LoH])
+ unless $not_N{$test_name};
+ push (@new, ["P-$test_name", "'(' $flags ')'", {EXIT=>$ret}, @$LoH])
+ unless $not_P{$test_name};
+ push (@new, ["NP-$test_name", "! '(' $flags ')'", {EXIT=>1-$ret}, @$LoH])
+ unless $not_P{$test_name};
+ push (@new, ["NNP-$test_name", "! ! '(' $flags ')'", {EXIT=>$ret, @$LoH}])
+ unless $not_P{$test_name};
+ }
+
+ return @new;
+}
+
+my @Tests =
+(
+ ['1a', {EXIT=>1}],
+ ['1b', qw(-z '')],
+ ['1c', 'any-string'],
+ ['1d', qw(-n any-string)],
+ ['1e', "''", {EXIT=>1}],
+ ['1f', '-'],
+ ['1g', '--'],
+ ['1h', '-0'],
+ ['1i', '-f'],
+ ['1j', '--help'],
+ ['1k', '--version'],
+
+ ['streq-1', qw(t = t)],
+ ['streq-2', qw(t = f), {EXIT=>1}],
+ ['streqeq-1', qw(t == t)],
+ ['streqeq-2', qw(t == f), {EXIT=>1}],
+ ['streq-3', qw(! = !)],
+ ['streq-4', qw(= = =)],
+ ['streq-5', "'(' = '('"],
+ ['streq-6', "'(' = ')'", {EXIT=>1}],
+ ['strne-1', qw(t != t), {EXIT=>1}],
+ ['strne-2', qw(t != f)],
+ ['strne-3', qw(! != !), {EXIT=>1}],
+ ['strne-4', qw(= != =), {EXIT=>1}],
+ ['strne-5', "'(' != '('", {EXIT=>1}],
+ ['strne-6', "'(' != ')'"],
+
+ ['and-1', qw(t -a t)],
+ ['and-2', qw('' -a t), {EXIT=>1}],
+ ['and-3', qw(t -a ''), {EXIT=>1}],
+ ['and-4', qw('' -a ''), {EXIT=>1}],
+
+ ['or-1', qw(t -o t)],
+ ['or-2', qw('' -o t)],
+ ['or-3', qw(t -o '')],
+ ['or-4', qw('' -o ''), {EXIT=>1}],
+
+ ['eq-1', qw(9 -eq 9)],
+ ['eq-2', qw(0 -eq 0)],
+ ['eq-3', qw(0 -eq 00)],
+ ['eq-4', qw(8 -eq 9), {EXIT=>1}],
+ ['eq-5', qw(1 -eq 0), {EXIT=>1}],
+ ['eq-6', "$limits->{UINTMAX_OFLOW} -eq 0", {EXIT=>1}],
+
+ ['gt-1', qw(5 -gt 5), {EXIT=>1}],
+ ['gt-2', qw(5 -gt 4)],
+ ['gt-3', qw(4 -gt 5), {EXIT=>1}],
+ ['gt-4', qw(-1 -gt -2)],
+ ['gt-5', "$limits->{UINTMAX_OFLOW} -gt $limits->{INTMAX_UFLOW}"],
+
+ ['lt-1', qw(5 -lt 5), {EXIT=>1}],
+ ['lt-2', qw(5 -lt 4), {EXIT=>1}],
+ ['lt-3', qw(4 -lt 5)],
+ ['lt-4', qw(-1 -lt -2), {EXIT=>1}],
+ ['lt-5', "$limits->{INTMAX_UFLOW} -lt $limits->{UINTMAX_OFLOW}"],
+
+ ['inv-1', qw(0x0 -eq 00), {EXIT=>2},
+ {ERR=>"$prog: invalid integer '0x0'\n"}],
+
+ ['t1', "-t"],
+ ['t2', qw(-t 1), {EXIT=>1}],
+
+ ['paren-1', "'(' '' ')'", {EXIT=>1}],
+ ['paren-2', "'(' '(' ')'"],
+ ['paren-3', "'(' ')' ')'"],
+ ['paren-4', "'(' ! ')'"],
+ ['paren-5', "'(' -a ')'"],
+);
+
+@Tests = add_inverse_op_tests \@Tests;
+@Tests = add_pn_tests \@Tests;
+
+my $save_temps = $ENV{DEBUG};
+my $verbose = $ENV{VERBOSE};
+
+my $fail = run_tests ($prog, \$prog, \@Tests, $save_temps, $verbose);
+exit $fail;
diff --git a/tests/misc/timeout-blocked.pl b/tests/misc/timeout-blocked.pl
new file mode 100755
index 0000000..8d9fc3e
--- /dev/null
+++ b/tests/misc/timeout-blocked.pl
@@ -0,0 +1,48 @@
+#!/usr/bin/perl
+# Test that timeout handles blocked SIGALRM from its parent.
+
+# Copyright (C) 2013-2016 Free Software Foundation, Inc.
+
+# This program is free software: you can redistribute it and/or modify
+# it under the terms of the GNU General Public License as published by
+# the Free Software Foundation, either version 3 of the License, or
+# (at your option) any later version.
+
+# This program is distributed in the hope that it will be useful,
+# but WITHOUT ANY WARRANTY; without even the implied warranty of
+# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
+# GNU General Public License for more details.
+
+# You should have received a copy of the GNU General Public License
+# along with this program. If not, see <http://www.gnu.org/licenses/>.
+
+use strict;
+
+(my $ME = $0) =~ s|.*/||;
+
+eval { require POSIX; };
+$@
+ and CuSkip::skip "$ME: this script requires Perl's POSIX module\n";
+
+use POSIX qw(:signal_h);
+my $sigset = POSIX::SigSet->new(SIGALRM); # define the signals to block
+my $old_sigset = POSIX::SigSet->new; # where the old sigmask will be kept
+unless (defined sigprocmask(SIG_BLOCK, $sigset, $old_sigset)) {
+ CuSkip::skip "$ME: sigprocmask failed; skipped";
+}
+
+my @Tests =
+ (
+ # test-name, [option, option, ...] {OUT=>"expected-output"}
+ #
+
+ ['block-alrm', ".1 sleep 10", {EXIT => 124}],
+ );
+
+my $save_temps = $ENV{DEBUG};
+my $verbose = $ENV{VERBOSE};
+
+my $prog = 'timeout';
+my $fail = run_tests ($ME, $prog, \@Tests, $save_temps, $verbose);
+
+exit $fail;
diff --git a/tests/misc/timeout-group.sh b/tests/misc/timeout-group.sh
new file mode 100755
index 0000000..b79316f
--- /dev/null
+++ b/tests/misc/timeout-group.sh
@@ -0,0 +1,103 @@
+#!/bin/sh
+# test program group handling
+
+# Copyright (C) 2011-2016 Free Software Foundation, Inc.
+
+# This program is free software: you can redistribute it and/or modify
+# it under the terms of the GNU General Public License as published by
+# the Free Software Foundation, either version 3 of the License, or
+# (at your option) any later version.
+
+# This program is distributed in the hope that it will be useful,
+# but WITHOUT ANY WARRANTY; without even the implied warranty of
+# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
+# GNU General Public License for more details.
+
+# You should have received a copy of the GNU General Public License
+# along with this program. If not, see <http://www.gnu.org/licenses/>.
+
+. "${srcdir=.}/tests/init.sh"; path_prepend_ ./src
+print_ver_ timeout
+require_trap_signame_
+require_kill_group_
+
+# construct a program group hierarchy as follows:
+# timeout-group - foreground group
+# group.sh - separate group
+# timeout.cmd - same group as group.sh
+#
+# We then send a SIGINT to the "separate group"
+# to simulate what happens when a Ctrl-C
+# is sent to the foreground group.
+
+setsid true || skip_ "setsid required to control groups"
+
+printf '%s\n' '#!'"$SHELL" > timeout.cmd || framework_failure_
+cat >> timeout.cmd <<\EOF
+trap 'touch int.received; exit' INT
+touch timeout.running
+count=$1
+until test -e int.received || test $count = 0; do
+ sleep 1
+ count=$(expr $count - 1)
+done
+EOF
+chmod a+x timeout.cmd
+
+cat > group.sh <<EOF
+#!$SHELL
+trap '' INT
+timeout --foreground 25 ./timeout.cmd 20&
+wait
+EOF
+chmod a+x group.sh
+
+check_timeout_cmd_running()
+{
+ local delay="$1"
+ test -e timeout.running ||
+ { sleep $delay; return 1; }
+}
+
+# Terminate any background processes
+cleanup_() { kill $pid 2>/dev/null && wait $pid; }
+
+# Start above script in its own group.
+# We could use timeout for this, but that assumes an implementation.
+setsid ./group.sh & pid=$!
+# Wait 6.3s for timeout.cmd to start
+retry_delay_ check_timeout_cmd_running .1 6 || fail=1
+# Simulate a Ctrl-C to the group to test timely exit
+kill -INT -- -$pid
+wait
+test -e int.received || fail=1
+
+rm -f int.received timeout.running
+
+
+# Ensure cascaded timeouts work
+# or more generally, ensure we timeout
+# commands that create their own group
+# This didn't work before 8.13.
+
+start=$(date +%s)
+
+# Note the first timeout must send a signal that
+# the second is handling for it to be propagated to the command.
+# SIGINT, SIGTERM, SIGALRM etc. are implicit.
+timeout -sALRM 30 timeout -sINT 25 ./timeout.cmd 20 & pid=$!
+# Wait 6.3s for timeout.cmd to start
+retry_delay_ check_timeout_cmd_running .1 6 || fail=1
+kill -ALRM $pid # trigger the alarm of the first timeout command
+wait $pid
+ret=$?
+test $ret -eq 124 ||
+ skip_ "timeout returned $ret. SIGALRM not handled?"
+test -e int.received || fail=1
+
+end=$(date +%s)
+
+test $(expr $end - $start) -lt 20 ||
+ skip_ "timeout.cmd didn't receive a signal until after sleep?"
+
+Exit $fail
diff --git a/tests/misc/timeout-parameters.sh b/tests/misc/timeout-parameters.sh
new file mode 100755
index 0000000..881e60d
--- /dev/null
+++ b/tests/misc/timeout-parameters.sh
@@ -0,0 +1,80 @@
+#!/bin/sh
+# Validate timeout parameter combinations
+
+# Copyright (C) 2008-2016 Free Software Foundation, Inc.
+
+# This program is free software: you can redistribute it and/or modify
+# it under the terms of the GNU General Public License as published by
+# the Free Software Foundation, either version 3 of the License, or
+# (at your option) any later version.
+
+# This program is distributed in the hope that it will be useful,
+# but WITHOUT ANY WARRANTY; without even the implied warranty of
+# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
+# GNU General Public License for more details.
+
+# You should have received a copy of the GNU General Public License
+# along with this program. If not, see <http://www.gnu.org/licenses/>.
+
+. "${srcdir=.}/tests/init.sh"; path_prepend_ ./src
+print_ver_ timeout
+getlimits_
+
+
+# internal errors are 125, distinct from execution failure
+
+# invalid timeout
+timeout invalid sleep 0
+test $? = 125 || fail=1
+
+# invalid kill delay
+timeout --kill-after=invalid 1 sleep 0
+test $? = 125 || fail=1
+
+# invalid timeout suffix
+timeout 42D sleep 0
+test $? = 125 || fail=1
+
+# It was seen on 32 bit Linux/HPPA that a kernel time_t overflowed,
+# thus causing the timer to fire immediately.
+# So verify that doesn't happen before checking large timeouts
+KERNEL_OVERFLOW_LIMIT=$(expr $TIME_T_MAX - $(date +%s) + 100)
+timeout $KERNEL_OVERFLOW_LIMIT sleep 0
+if test $? != 124; then
+ # timeout overflow
+ timeout $UINT_OFLOW sleep 0
+ test $? = 0 || fail=1
+
+ # timeout overflow
+ timeout $(expr $UINT_MAX / 86400 + 1)d sleep 0
+ test $? = 0 || fail=1
+
+ # timeout overflow
+ timeout 999999999999999999999999999999999999999999999999999999999999d sleep 0
+ test $? = 0 || fail=1
+
+ # floating point notation
+ timeout 2.34e+5d sleep 0
+ test $? = 0 || fail=1
+fi
+
+# floating point notation
+timeout 2.34 sleep 0
+test $? = 0 || fail=1
+
+# nanoseconds potentially supported
+timeout .999999999 sleep 0 || fail=1
+
+# invalid signal spec
+timeout --signal=invalid 1 sleep 0
+test $? = 125 || fail=1
+
+# invalid command
+timeout 10 .
+test $? = 126 || fail=1
+
+# no such command
+timeout 10 no_such
+test $? = 127 || fail=1
+
+Exit $fail
diff --git a/tests/misc/timeout.sh b/tests/misc/timeout.sh
new file mode 100755
index 0000000..dcee6d7
--- /dev/null
+++ b/tests/misc/timeout.sh
@@ -0,0 +1,64 @@
+#!/bin/sh
+# Validate timeout basic operation
+
+# Copyright (C) 2008-2016 Free Software Foundation, Inc.
+
+# This program is free software: you can redistribute it and/or modify
+# it under the terms of the GNU General Public License as published by
+# the Free Software Foundation, either version 3 of the License, or
+# (at your option) any later version.
+
+# This program is distributed in the hope that it will be useful,
+# but WITHOUT ANY WARRANTY; without even the implied warranty of
+# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
+# GNU General Public License for more details.
+
+# You should have received a copy of the GNU General Public License
+# along with this program. If not, see <http://www.gnu.org/licenses/>.
+
+. "${srcdir=.}/tests/init.sh"; path_prepend_ ./src
+print_ver_ timeout
+require_trap_signame_
+
+# no timeout
+timeout 10 true || fail=1
+
+# no timeout (suffix check)
+timeout 1d true || fail=1
+
+# disabled timeout
+timeout 0 true || fail=1
+
+# exit status propagation
+timeout 10 sh -c 'exit 2'
+test $? = 2 || fail=1
+
+# timeout
+timeout .1 sleep 10
+test $? = 124 || fail=1
+
+# exit status propagation even on timeout
+timeout --preserve-status .1 sleep 10
+# exit status should be 128+TERM
+test $? = 124 && fail=1
+
+# kill delay. Note once the initial timeout triggers,
+# the exit status will be 124 even if the command
+# exits on its own accord.
+timeout -s0 -k1 .1 sleep 10
+test $? = 124 && fail=1
+
+# Ensure 'timeout' is immune to parent's SIGCHLD handler
+# Use a subshell and an exec to work around a bug in FreeBSD 5.0 /bin/sh.
+(
+ trap '' CHLD
+
+ exec timeout 10 true
+) || fail=1
+
+# Don't be confused when starting off with a child (Bug#9098).
+out=$(sleep .1 & exec timeout .5 sh -c 'sleep 2; echo foo')
+status=$?
+test "$out" = "" && test $status = 124 || fail=1
+
+Exit $fail
diff --git a/tests/misc/tr-case-class.sh b/tests/misc/tr-case-class.sh
new file mode 100755
index 0000000..5529b25
--- /dev/null
+++ b/tests/misc/tr-case-class.sh
@@ -0,0 +1,113 @@
+#!/bin/sh
+# Test case conversion classes
+
+# Copyright (C) 2010-2016 Free Software Foundation, Inc.
+
+# This program is free software: you can redistribute it and/or modify
+# it under the terms of the GNU General Public License as published by
+# the Free Software Foundation, either version 3 of the License, or
+# (at your option) any later version.
+
+# This program is distributed in the hope that it will be useful,
+# but WITHOUT ANY WARRANTY; without even the implied warranty of
+# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
+# GNU General Public License for more details.
+
+# You should have received a copy of the GNU General Public License
+# along with this program. If not, see <http://www.gnu.org/licenses/>.
+
+. "${srcdir=.}/tests/init.sh"; path_prepend_ ./src
+print_ver_ tr
+
+# Ensure we support translation of case classes with extension
+echo '01234567899999999999999999' > exp
+echo 'abcdefghijklmnopqrstuvwxyz' |
+tr '[:lower:]' '0-9' > out || fail=1
+compare exp out || fail=1
+echo 'abcdefghijklmnopqrstuvwxyz' |
+tr '[:lower:][:lower:]' '[:upper:]0-9' > out || fail=1
+compare exp out || fail=1
+
+# Validate the alignment of case classes
+returns_ 1 tr 'A-Z[:lower:]' 'a-y[:upper:]' </dev/null || fail=1
+returns_ 1 tr '[:upper:][:lower:]' 'a-y[:upper:]' </dev/null || fail=1
+returns_ 1 tr 'A-Y[:lower:]' 'a-z[:upper:]' </dev/null || fail=1
+returns_ 1 tr 'A-Z[:lower:]' '[:lower:][:upper:]' </dev/null || fail=1
+returns_ 1 tr 'A-Z[:lower:]' '[:lower:]A-Z' </dev/null || fail=1
+tr '[:upper:][:lower:]' 'a-z[:upper:]' < /dev/null || fail=1
+tr '[:upper:][:lower:]' '[:upper:]a-z' < /dev/null || fail=1
+
+# Before coreutils 8.6 the trailing space in string1
+# caused the case class in string2 to be extended.
+# However that was not portable, dependent on locale
+# and in contravention of POSIX.
+tr '[:upper:] ' '[:lower:]' < /dev/null 2>out && fail=1
+echo 'tr: when translating with string1 longer than string2,
+the latter string must not end with a character class' > exp
+compare exp out || fail=1
+
+# Up to coreutils-6.9, tr rejected an unmatched [:lower:] or [:upper:] in SET1.
+echo '#$%123abcABC' | tr '[:lower:]' '[.*]' > out || fail=1
+echo '#$%123...ABC' > exp
+compare exp out || fail=1
+echo '#$%123abcABC' | tr '[:upper:]' '[.*]' > out || fail=1
+echo '#$%123abc...' > exp
+compare exp out || fail=1
+
+# When doing a case-converting translation with something after the
+# [:upper:] and [:lower:] elements, ensure that tr honors the following byte.
+echo 'abc.' | tr '[:lower:].' '[:upper:]x' > out || fail=1
+echo 'ABCx' > exp
+compare exp out || fail=1
+
+# Before coreutils 8.6 the disparate number of upper and lower
+# characters in some locales, triggered abort()s and invalid behavior
+export LC_ALL=en_US.ISO-8859-1
+
+if test "$(locale charmap 2>/dev/null)" = ISO-8859-1; then
+ # Up to coreutils-6.9.91, this would fail with the diagnostic:
+ # tr: misaligned [:upper:] and/or [:lower:] construct
+ # with LC_CTYPE=en_US.ISO-8859-1.
+ tr '[:upper:]' '[:lower:]' < /dev/null || fail=1
+
+ tr '[:upper:] ' '[:lower:]' < /dev/null 2>out && fail=1
+ echo 'tr: when translating with string1 longer than string2,
+the latter string must not end with a character class' > exp
+ compare exp out || fail=1
+
+ # Ensure when there are a different number of elements
+ # in each string, we validate the case mapping correctly
+ echo 'abc.xyz' |
+ tr 'ab[:lower:]' '0-1[:upper:]' > out || fail=1
+ echo 'ABC.XYZ' > exp
+ compare exp out || fail=1
+
+ # Ensure we extend string2 appropriately
+ echo 'ABC- XYZ' |
+ tr '[:upper:]- ' '[:lower:]_' > out || fail=1
+ echo 'abc__xyz' > exp
+ compare exp out || fail=1
+
+ # Ensure the size of the case classes are accounted
+ # for as a unit.
+ echo 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' |
+ tr '[:upper:]A-B' '[:lower:]0' >out || fail=1
+ echo '00cdefghijklmnopqrstuvwxyz' > exp
+ compare exp out || fail=1
+
+ # Ensure the size of the case classes are accounted
+ # for as a unit.
+ echo 'a' |
+ tr -t '[:lower:]a' '[:upper:]0' >out || fail=1
+ echo '0' > exp
+ compare exp out || fail=1
+
+ # Ensure the size of the case classes are accounted
+ # for as a unit.
+ echo 'a' |
+ tr -t '[:lower:][:lower:]a' '[:lower:][:upper:]0' >out || fail=1
+ echo '0' > exp
+ compare exp out || fail=1
+fi
+
+Exit $fail
diff --git a/tests/misc/tr.pl b/tests/misc/tr.pl
new file mode 100755
index 0000000..d01abc6
--- /dev/null
+++ b/tests/misc/tr.pl
@@ -0,0 +1,174 @@
+#!/usr/bin/perl
+
+# Copyright (C) 2008-2016 Free Software Foundation, Inc.
+
+# This program is free software: you can redistribute it and/or modify
+# it under the terms of the GNU General Public License as published by
+# the Free Software Foundation, either version 3 of the License, or
+# (at your option) any later version.
+
+# This program is distributed in the hope that it will be useful,
+# but WITHOUT ANY WARRANTY; without even the implied warranty of
+# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
+# GNU General Public License for more details.
+
+# You should have received a copy of the GNU General Public License
+# along with this program. If not, see <http://www.gnu.org/licenses/>.
+
+use strict;
+
+my $prog = 'tr';
+
+# Turn off localization of executable's output.
+@ENV{qw(LANGUAGE LANG LC_ALL)} = ('C') x 3;
+
+my $map_all_to_1 =
+ "$prog: when translating with complemented character classes,\n"
+ . "string2 must map all characters in the domain to one\n";
+
+my @Tests =
+(
+ ['1', qw(abcd '[]*]'), {IN=>'abcd'}, {OUT=>']]]]'}],
+ ['2', qw(abc '[%*]xyz'), {IN=>'abc'}, {OUT=>'xyz'}],
+ ['3', qw('' '[.*]'), {IN=>'abc'}, {OUT=>'abc'}],
+
+ # Test --truncate-set1 behavior when string1 is longer than string2
+ ['4', qw(-t abcd xy), {IN=>'abcde'}, {OUT=>'xycde'}],
+ # Test bsd behavior (the default) when string1 is longer than string2
+ ['5', qw(abcd xy), {IN=>'abcde'}, {OUT=>'xyyye'}],
+ # Do it the posix way
+ ['6', qw(abcd 'x[y*]'), {IN=>'abcde'}, {OUT=>'xyyye'}],
+ ['7', qw(-s a-p '%[.*]$'), {IN=>'abcdefghijklmnop'}, {OUT=>'%.$'}],
+ ['8', qw(-s a-p '[.*]$'), {IN=>'abcdefghijklmnop'}, {OUT=>'.$'}],
+ ['9', qw(-s a-p '%[.*]'), {IN=>'abcdefghijklmnop'}, {OUT=>'%.'}],
+ ['a', qw(-s '[a-z]'), {IN=>'aabbcc'}, {OUT=>'abc'}],
+ ['b', qw(-s '[a-c]'), {IN=>'aabbcc'}, {OUT=>'abc'}],
+ ['c', qw(-s '[a-b]'), {IN=>'aabbcc'}, {OUT=>'abcc'}],
+ ['d', qw(-s '[b-c]'), {IN=>'aabbcc'}, {OUT=>'aabc'}],
+ ['e', qw(-s '[\0-\5]'),
+ {IN=>"\0\0a\1\1b\2\2\2c\3\3\3d\4\4\4\4e\5\5"}, {OUT=>"\0a\1b\2c\3d\4e\5"}],
+ # tests of delete
+ ['f', qw(-d '[=[=]'), {IN=>'[[[[[[[]]]]]]]]'}, {OUT=>']]]]]]]]'}],
+ ['g', qw(-d '[=]=]'), {IN=>'[[[[[[[]]]]]]]]'}, {OUT=>'[[[[[[['}],
+ ['h', qw(-d '[:xdigit:]'), {IN=>'0123456789acbdefABCDEF'}, {OUT=>''}],
+ ['i', qw(-d '[:xdigit:]'), {IN=>'w0x1y2z3456789acbdefABCDEFz'},
+ {OUT=>'wxyzz'}],
+ ['j', qw(-d '[:digit:]'), {IN=>'0123456789'}, {OUT=>''}],
+ ['k', qw(-d '[:digit:]'),
+ {IN=>'a0b1c2d3e4f5g6h7i8j9k'}, {OUT=>'abcdefghijk'}],
+ ['l', qw(-d '[:lower:]'), {IN=>'abcdefghijklmnopqrstuvwxyz'}, {OUT=>''}],
+ ['m', qw(-d '[:upper:]'), {IN=>'ABCDEFGHIJKLMNOPQRSTUVWXYZ'}, {OUT=>''}],
+ ['n', qw(-d '[:lower:][:upper:]'),
+ {IN=>'abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ'}, {OUT=>''}],
+ ['o', qw(-d '[:alpha:]'),
+ {IN=>'abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ'}, {OUT=>''}],
+ ['p', qw(-d '[:alnum:]'),
+ {IN=>'abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789'},
+ {OUT=>''}],
+ ['q', qw(-d '[:alnum:]'),
+ {IN=>'.abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789.'},
+ {OUT=>'..'}],
+ ['r', qw(-ds '[:alnum:]' .),
+ {IN=>'.abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789.'},
+ {OUT=>'.'}],
+
+ # The classic example, with string2 BSD-style
+ ['s', qw(-cs '[:alnum:]' '\n'),
+ {IN=>'The big black fox jumped over the fence.'},
+ {OUT=>"The\nbig\nblack\nfox\njumped\nover\nthe\nfence\n"}],
+
+ # The classic example, POSIX-style
+ ['t', qw(-cs '[:alnum:]' '[\n*]'),
+ {IN=>'The big black fox jumped over the fence.'},
+ {OUT=>"The\nbig\nblack\nfox\njumped\nover\nthe\nfence\n"}],
+ ['u', qw(-ds b a), {IN=>'aabbaa'}, {OUT=>'a'}],
+ ['v', qw(-ds '[:xdigit:]' Z), {IN=>'ZZ0123456789acbdefABCDEFZZ'}, {OUT=>'Z'}],
+
+ # Try some data with 8th bit set in case something is mistakenly
+ # sign-extended.
+ ['w', qw(-ds '\350' '\345'),
+ {IN=>"\300\301\377\345\345\350\345"},
+ {OUT=>"\300\301\377\345"}],
+ ['x', qw(-s abcdefghijklmn '[:*016]'),
+ {IN=>'abcdefghijklmnop'}, {OUT=>':op'}],
+ ['y', qw(-d a-z), {IN=>'abc $code'}, {OUT=>' $'}],
+ ['z', qw(-ds a-z '$.'), {IN=>'a.b.c $$$$code\\'}, {OUT=>'. $\\'}],
+
+ # Make sure that a-a is accepted.
+ ['range-a-a', qw(a-a z), {IN=>'abc'}, {OUT=>'zbc'}],
+ #
+ ['null', qw(a ''), {IN=>''}, {OUT=>''}, {EXIT=>1},
+ {ERR=>"$prog: when not truncating set1, string2 must be non-empty\n"}],
+ ['upcase', qw('[:lower:]' '[:upper:]'),
+ {IN=>'abcxyzABCXYZ'},
+ {OUT=>'ABCXYZABCXYZ'}],
+ ['dncase', qw('[:upper:]' '[:lower:]'),
+ {IN=>'abcxyzABCXYZ'},
+ {OUT=>'abcxyzabcxyz'}],
+ #
+ ['rep-cclass', qw('a[=*2][=c=]' xyyz), {IN=>'a=c'}, {OUT=>'xyz'}],
+ ['rep-1', qw('[:*3][:digit:]' a-m), {IN=>':1239'}, {OUT=>'cefgm'}],
+ ['rep-2', qw('a[b*512]c' '1[x*]2'), {IN=>'abc'}, {OUT=>'1x2'}],
+ ['rep-3', qw('a[b*513]c' '1[x*]2'), {IN=>'abc'}, {OUT=>'1x2'}],
+ # Another couple octal repeat count tests.
+ ['o-rep-1', qw('[b*08]' '[x*]'), {IN=>''}, {OUT=>''}, {EXIT=>1},
+ {ERR=>"$prog: invalid repeat count '08' in [c*n] construct\n"}],
+ ['o-rep-2', qw('[b*010]cd' '[a*7]BC[x*]'), {IN=>'bcd'}, {OUT=>'BCx'}],
+
+ ['esc', qw('a\-z' A-Z), {IN=>'abc-z'}, {OUT=>'AbcBC'}],
+ ['bs-055', qw('a\055b' def), {IN=>"a\055b"}, {OUT=>'def'}],
+ ['bs-at-end', qw('\\' x), {IN=>"\\"}, {OUT=>'x'},
+ {ERR=>"$prog: warning: an unescaped backslash at end of "
+ . "string is not portable\n"}],
+
+ #
+ # From Ross
+ ['ross-0a', qw(-cs '[:upper:]' 'X[Y*]'), {IN=>''}, {OUT=>''}, {EXIT=>1},
+ {ERR=>$map_all_to_1}],
+ ['ross-0b', qw(-cs '[:cntrl:]' 'X[Y*]'), {IN=>''}, {OUT=>''}, {EXIT=>1},
+ {ERR=>$map_all_to_1}],
+ ['ross-1a', qw(-cs '[:upper:]' '[X*]'),
+ {IN=>'AMZamz123.-+AMZ'}, {OUT=>'AMZXAMZ'}],
+ ['ross-1b', qw(-cs '[:upper:][:digit:]' '[Z*]'), {IN=>''}, {OUT=>''}],
+ ['ross-2', qw(-dcs '[:lower:]' n-rs-z),
+ {IN=>'amzAMZ123.-+amz'}, {OUT=>'amzamz'}],
+ ['ross-3', qw(-ds '[:xdigit:]' '[:alnum:]'),
+ {IN=>'.ZABCDEFGzabcdefg.0123456788899.GG'}, {OUT=>'.ZGzg..G'}],
+ ['ross-4', qw(-dcs '[:alnum:]' '[:digit:]'), {IN=>''}, {OUT=>''}],
+ ['ross-5', qw(-dc '[:lower:]'), {IN=>''}, {OUT=>''}],
+ ['ross-6', qw(-dc '[:upper:]'), {IN=>''}, {OUT=>''}],
+
+ # Ensure that these fail.
+ # Prior to 2.0.20, each would evoke a failed assertion.
+ ['empty-eq', qw('[==]' x), {IN=>''}, {OUT=>''}, {EXIT=>1},
+ {ERR=>"$prog: missing equivalence class character '[==]'\n"}],
+ ['empty-cc', qw('[::]' x), {IN=>''}, {OUT=>''}, {EXIT=>1},
+ {ERR=>"$prog: missing character class name '[::]'\n"}],
+
+ # Weird repeat counts.
+ ['repeat-bs-9', qw(abc '[b*\9]'), {IN=>'abcd'}, {OUT=>'[b*d'}],
+ ['repeat-0', qw(abc '[b*0]'), {IN=>'abcd'}, {OUT=>'bbbd'}],
+ ['repeat-zeros', qw(abc '[b*00000000000000000000]'),
+ {IN=>'abcd'}, {OUT=>'bbbd'}],
+ ['repeat-compl', qw(-c '[a*65536]\n' '[b*]'), {IN=>'abcd'}, {OUT=>'abbb'}],
+ ['repeat-xC', qw(-C '[a*65536]\n' '[b*]'), {IN=>'abcd'}, {OUT=>'abbb'}],
+
+ # From Glenn Fowler.
+ ['fowler-1', qw(ah -H), {IN=>'aha'}, {OUT=>'-H-'}],
+
+ # Up to coreutils-6.9, this would provoke a failed assertion.
+ ['no-abort-1', qw(-c a '[b*256]'), {IN=>'abc'}, {OUT=>'abb'}],
+);
+
+@Tests = triple_test \@Tests;
+
+# tr takes its input only from stdin, not from a file argument, so
+# remove the tests that provide file arguments and keep only the ones
+# generated by triple_test (identifiable by their .r and .p suffixes).
+@Tests = grep {$_->[0] =~ /\.[pr]$/} @Tests;
+
+my $save_temps = $ENV{DEBUG};
+my $verbose = $ENV{VERBOSE};
+
+my $fail = run_tests ($prog, $prog, \@Tests, $save_temps, $verbose);
+exit $fail;
diff --git a/tests/misc/truncate-dangling-symlink.sh b/tests/misc/truncate-dangling-symlink.sh
new file mode 100755
index 0000000..8497f53
--- /dev/null
+++ b/tests/misc/truncate-dangling-symlink.sh
@@ -0,0 +1,28 @@
+#!/bin/sh
+# Make sure truncate can create a file through a dangling symlink.
+
+# Copyright (C) 2008-2016 Free Software Foundation, Inc.
+
+# This program is free software: you can redistribute it and/or modify
+# it under the terms of the GNU General Public License as published by
+# the Free Software Foundation, either version 3 of the License, or
+# (at your option) any later version.
+
+# This program is distributed in the hope that it will be useful,
+# but WITHOUT ANY WARRANTY; without even the implied warranty of
+# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
+# GNU General Public License for more details.
+
+# You should have received a copy of the GNU General Public License
+# along with this program. If not, see <http://www.gnu.org/licenses/>.
+
+. "${srcdir=.}/tests/init.sh"; path_prepend_ ./src
+print_ver_ truncate
+
+ln -s truncate-target t-symlink
+
+truncate -s0 t-symlink || fail=1
+
+test -f truncate-target || fail=1
+
+Exit $fail
diff --git a/tests/misc/truncate-dir-fail.sh b/tests/misc/truncate-dir-fail.sh
new file mode 100755
index 0000000..df3ec2b
--- /dev/null
+++ b/tests/misc/truncate-dir-fail.sh
@@ -0,0 +1,25 @@
+#!/bin/sh
+# Make sure truncate fails for a directory.
+
+# Copyright (C) 2008-2016 Free Software Foundation, Inc.
+
+# This program is free software: you can redistribute it and/or modify
+# it under the terms of the GNU General Public License as published by
+# the Free Software Foundation, either version 3 of the License, or
+# (at your option) any later version.
+
+# This program is distributed in the hope that it will be useful,
+# but WITHOUT ANY WARRANTY; without even the implied warranty of
+# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
+# GNU General Public License for more details.
+
+# You should have received a copy of the GNU General Public License
+# along with this program. If not, see <http://www.gnu.org/licenses/>.
+
+. "${srcdir=.}/tests/init.sh"; path_prepend_ ./src
+print_ver_ truncate
+
+# truncate on dir not allowed
+returns_ 1 truncate -s+0 . || fail=1
+
+Exit $fail
diff --git a/tests/misc/truncate-fail-diag.sh b/tests/misc/truncate-fail-diag.sh
new file mode 100755
index 0000000..b920f6e
--- /dev/null
+++ b/tests/misc/truncate-fail-diag.sh
@@ -0,0 +1,43 @@
+#!/bin/sh
+# make sure truncate gives reasonable diagnostics
+# Note open() checks for trailing '/' before checking for existence
+# open (".", O_CREAT & (O_WRONLY | O_RDWR), ...) -> EISDIR
+# open ("missing/", O_CREAT & (O_WRONLY | O_RDWR), ...) -> EISDIR
+# open ("missing/file", O_CREAT & (O_WRONLY | O_RDWR), ...) -> ENOENT
+
+# Copyright (C) 2008-2016 Free Software Foundation, Inc.
+
+# This program is free software: you can redistribute it and/or modify
+# it under the terms of the GNU General Public License as published by
+# the Free Software Foundation, either version 3 of the License, or
+# (at your option) any later version.
+
+# This program is distributed in the hope that it will be useful,
+# but WITHOUT ANY WARRANTY; without even the implied warranty of
+# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
+# GNU General Public License for more details.
+
+# You should have received a copy of the GNU General Public License
+# along with this program. If not, see <http://www.gnu.org/licenses/>.
+
+. "${srcdir=.}/tests/init.sh"; path_prepend_ ./src
+print_ver_ truncate
+skip_if_root_
+
+
+d1=no
+
+dir=$d1/such-dir
+truncate -s0 $dir > out 2>&1 && fail=1
+cat <<EOF > exp
+truncate: cannot open '$dir' for writing: No such file or directory
+EOF
+compare exp out || fail=1
+
+dir=$d1/
+truncate -s0 $dir > out 2>&1 && fail=1
+#The following can be returned at least
+#truncate: cannot open '$dir' for writing: Not a directory
+#truncate: cannot open '$dir' for writing: Is a directory
+
+Exit $fail
diff --git a/tests/misc/truncate-fifo.sh b/tests/misc/truncate-fifo.sh
new file mode 100755
index 0000000..6ef331d
--- /dev/null
+++ b/tests/misc/truncate-fifo.sh
@@ -0,0 +1,27 @@
+#!/bin/sh
+# Make sure truncate works on fifos without hanging
+
+# Copyright (C) 2008-2016 Free Software Foundation, Inc.
+
+# This program is free software: you can redistribute it and/or modify
+# it under the terms of the GNU General Public License as published by
+# the Free Software Foundation, either version 3 of the License, or
+# (at your option) any later version.
+
+# This program is distributed in the hope that it will be useful,
+# but WITHOUT ANY WARRANTY; without even the implied warranty of
+# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
+# GNU General Public License for more details.
+
+# You should have received a copy of the GNU General Public License
+# along with this program. If not, see <http://www.gnu.org/licenses/>.
+
+. "${srcdir=.}/tests/init.sh"; path_prepend_ ./src
+print_ver_ truncate
+
+mkfifo_or_skip_ fifo
+
+timeout 10 truncate -s0 fifo
+test "$?" = 124 && fail=1
+
+Exit $fail
diff --git a/tests/misc/truncate-no-create-missing.sh b/tests/misc/truncate-no-create-missing.sh
new file mode 100755
index 0000000..63c25b3
--- /dev/null
+++ b/tests/misc/truncate-no-create-missing.sh
@@ -0,0 +1,26 @@
+#!/bin/sh
+# Ensure that truncate -c no-such-file doesn't fail.
+
+# Copyright (C) 2008-2016 Free Software Foundation, Inc.
+
+# This program is free software: you can redistribute it and/or modify
+# it under the terms of the GNU General Public License as published by
+# the Free Software Foundation, either version 3 of the License, or
+# (at your option) any later version.
+
+# This program is distributed in the hope that it will be useful,
+# but WITHOUT ANY WARRANTY; without even the implied warranty of
+# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
+# GNU General Public License for more details.
+
+# You should have received a copy of the GNU General Public License
+# along with this program. If not, see <http://www.gnu.org/licenses/>.
+
+. "${srcdir=.}/tests/init.sh"; path_prepend_ ./src
+print_ver_ truncate
+
+
+# truncate -c no-such-file should not fail.
+truncate -s0 -c no-such-file || fail=1
+
+Exit $fail
diff --git a/tests/misc/truncate-overflow.sh b/tests/misc/truncate-overflow.sh
new file mode 100755
index 0000000..476bf49
--- /dev/null
+++ b/tests/misc/truncate-overflow.sh
@@ -0,0 +1,39 @@
+#!/bin/sh
+# Validate truncate integer overflow
+
+# Copyright (C) 2008-2016 Free Software Foundation, Inc.
+
+# This program is free software: you can redistribute it and/or modify
+# it under the terms of the GNU General Public License as published by
+# the Free Software Foundation, either version 3 of the License, or
+# (at your option) any later version.
+
+# This program is distributed in the hope that it will be useful,
+# but WITHOUT ANY WARRANTY; without even the implied warranty of
+# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
+# GNU General Public License for more details.
+
+# You should have received a copy of the GNU General Public License
+# along with this program. If not, see <http://www.gnu.org/licenses/>.
+
+. "${srcdir=.}/tests/init.sh"; path_prepend_ ./src
+print_ver_ truncate
+getlimits_
+
+
+# -= overflow
+truncate -s-1 create-zero-len-file || fail=1
+
+echo > non-empty-file
+
+# signed overflow
+returns_ 1 truncate -s$OFF_T_OFLOW file || fail=1
+
+# += signed overflow
+returns_ 1 truncate -s+$OFF_T_MAX non-empty-file || fail=1
+
+# *= signed overflow
+IO_BLOCK_OFLOW=$(expr $OFF_T_MAX / $(stat -f -c%s .) + 1)
+returns_ 1 truncate --io-blocks --size=$IO_BLOCK_OFLOW file || fail=1
+
+Exit $fail
diff --git a/tests/misc/truncate-owned-by-other.sh b/tests/misc/truncate-owned-by-other.sh
new file mode 100755
index 0000000..fd1ae24
--- /dev/null
+++ b/tests/misc/truncate-owned-by-other.sh
@@ -0,0 +1,35 @@
+#!/bin/sh
+# Demonstrate that "truncate -s0 writable-but-owned-by-other" works.
+
+# Copyright (C) 2008-2016 Free Software Foundation, Inc.
+
+# This program is free software: you can redistribute it and/or modify
+# it under the terms of the GNU General Public License as published by
+# the Free Software Foundation, either version 3 of the License, or
+# (at your option) any later version.
+
+# This program is distributed in the hope that it will be useful,
+# but WITHOUT ANY WARRANTY; without even the implied warranty of
+# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
+# GNU General Public License for more details.
+
+# You should have received a copy of the GNU General Public License
+# along with this program. If not, see <http://www.gnu.org/licenses/>.
+
+. "${srcdir=.}/tests/init.sh"; path_prepend_ ./src
+print_ver_ truncate
+
+require_root_
+
+# Create a file owned by root, and writable by $NON_ROOT_USERNAME.
+echo > root-owned || framework_failure_
+chgrp +$NON_ROOT_GID . root-owned || framework_failure_
+chmod g+w root-owned
+
+# Ensure that the current directory is searchable by $NON_ROOT_USERNAME.
+chmod g+x .
+
+chroot --skip-chdir --user=$NON_ROOT_USERNAME / env PATH="$PATH" \
+ truncate -s0 root-owned || fail=1
+
+Exit $fail
diff --git a/tests/misc/truncate-parameters.sh b/tests/misc/truncate-parameters.sh
new file mode 100755
index 0000000..bb10686
--- /dev/null
+++ b/tests/misc/truncate-parameters.sh
@@ -0,0 +1,54 @@
+#!/bin/sh
+# Validate truncate parameter combinations
+
+# Copyright (C) 2008-2016 Free Software Foundation, Inc.
+
+# This program is free software: you can redistribute it and/or modify
+# it under the terms of the GNU General Public License as published by
+# the Free Software Foundation, either version 3 of the License, or
+# (at your option) any later version.
+
+# This program is distributed in the hope that it will be useful,
+# but WITHOUT ANY WARRANTY; without even the implied warranty of
+# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
+# GNU General Public License for more details.
+
+# You should have received a copy of the GNU General Public License
+# along with this program. If not, see <http://www.gnu.org/licenses/>.
+
+. "${srcdir=.}/tests/init.sh"; path_prepend_ ./src
+print_ver_ truncate
+
+
+# must specify at least 1 file
+returns_ 1 truncate --size=0 || fail=1
+
+# must specify size. don't default to 0
+returns_ 1 truncate file || fail=1
+
+# mixture of absolute size & reference not allowed
+returns_ 1 truncate --size=0 --reference=file file || fail=1
+
+# blocks without size is not valid
+returns_ 1 truncate --io-blocks --reference=file file || fail=1
+
+# must specify valid numbers
+returns_ 1 truncate --size="invalid" file || fail=1
+
+# spaces not significant around size
+returns_ 1 truncate --size="> -1" file || fail=1
+truncate --size=" >1" file || fail=1 #file now 1
+truncate --size=" +1" file || fail=1 #file now 2
+test $(stat --format %s file) = 2 || fail=1
+
+# reference allowed with relative size
+truncate --size=" +1" -r file file || fail=1 #file now 3
+test $(stat --format %s file) = 3 || fail=1
+
+# reference allowed alone also
+truncate -r file file || fail=1 #file still 3
+test $(stat --format %s file) = 3 || fail=1
+truncate -r file file2 || fail=1 #file2 now 3
+test $(stat --format %s file2) = 3 || fail=1
+
+Exit $fail
diff --git a/tests/misc/truncate-relative.sh b/tests/misc/truncate-relative.sh
new file mode 100755
index 0000000..eb9cd7b
--- /dev/null
+++ b/tests/misc/truncate-relative.sh
@@ -0,0 +1,35 @@
+#!/bin/sh
+# Validate truncate relative sizes
+
+# Copyright (C) 2008-2016 Free Software Foundation, Inc.
+
+# This program is free software: you can redistribute it and/or modify
+# it under the terms of the GNU General Public License as published by
+# the Free Software Foundation, either version 3 of the License, or
+# (at your option) any later version.
+
+# This program is distributed in the hope that it will be useful,
+# but WITHOUT ANY WARRANTY; without even the implied warranty of
+# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
+# GNU General Public License for more details.
+
+# You should have received a copy of the GNU General Public License
+# along with this program. If not, see <http://www.gnu.org/licenses/>.
+
+. "${srcdir=.}/tests/init.sh"; path_prepend_ ./src
+print_ver_ truncate
+
+
+# mixture of relative modifiers not allowed
+returns_ 1 truncate --size="+>0" file || fail=1
+
+# mixture of relative modifiers not allowed
+returns_ 1 truncate --size=">+0" file || fail=1
+
+# division by zero
+returns_ 1 truncate --size="/0" file || fail=1
+
+# division by zero
+returns_ 1 truncate --size="%0" file || fail=1
+
+Exit $fail
diff --git a/tests/misc/tsort.pl b/tests/misc/tsort.pl
new file mode 100755
index 0000000..83509a8
--- /dev/null
+++ b/tests/misc/tsort.pl
@@ -0,0 +1,66 @@
+#!/usr/bin/perl
+# Test "tsort".
+
+# Copyright (C) 1999-2016 Free Software Foundation, Inc.
+
+# This program is free software: you can redistribute it and/or modify
+# it under the terms of the GNU General Public License as published by
+# the Free Software Foundation, either version 3 of the License, or
+# (at your option) any later version.
+
+# This program is distributed in the hope that it will be useful,
+# but WITHOUT ANY WARRANTY; without even the implied warranty of
+# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
+# GNU General Public License for more details.
+
+# You should have received a copy of the GNU General Public License
+# along with this program. If not, see <http://www.gnu.org/licenses/>.
+
+use strict;
+
+(my $program_name = $0) =~ s|.*/||;
+
+# Turn off localization of executable's output.
+@ENV{qw(LANGUAGE LANG LC_ALL)} = ('C') x 3;
+
+my @Tests =
+ (
+ ['cycle-1', {IN => {f => "t b\nt s\ns t\n"}}, {OUT => "s\nt\nb\n"},
+ {EXIT => 1},
+ {ERR => "tsort: f: input contains a loop:\ntsort: s\ntsort: t\n"} ],
+ ['cycle-2', {IN => {f => "t x\nt s\ns t\n"}}, {OUT => "s\nt\nx\n"},
+ {EXIT => 1},
+ {ERR => "tsort: f: input contains a loop:\ntsort: s\ntsort: t\n"} ],
+
+ ['posix-1', {IN => "a b c c d e\ng g\nf g e f\nh h\n"},
+ {OUT => "a\nc\nd\nh\nb\ne\nf\ng\n"}],
+ ['posix-2', {IN => "b a\nd c\nz h x h r h\n"},
+ {OUT => "b\nd\nr\nx\nz\na\nc\nh\n"}],
+
+ ['linear-1', {IN => "a b b c c d d e e f f g\n"},
+ {OUT => "a\nb\nc\nd\ne\nf\ng\n"}],
+
+ ['tree-1', {IN => "a b b c c d d e e f f g\nc x x y y z\n"},
+ {OUT => "a\nb\nc\nx\nd\ny\ne\nz\nf\ng\n"}],
+ ['tree-2', {IN => "a b b c c d d e e f f g\nc x x y y z\nf r r s s t\n"},
+ {OUT => "a\nb\nc\nx\nd\ny\ne\nz\nf\nr\ng\ns\nt\n"}],
+
+ # Before coreutils-5.0.1, given an odd number of input tokens,
+ # tsort would accept that and treat the input as if an additional
+ # copy of the final token were appended.
+ ['odd', {IN => "a\n"},
+ {EXIT => 1},
+ {ERR => "tsort: odd.1: input contains an odd number of tokens\n"}],
+
+ ['only-one', {IN => {f => ""}}, {IN => {g => ""}},
+ {EXIT => 1},
+ {ERR => "tsort: extra operand 'g'\n"
+ . "Try 'tsort --help' for more information.\n"}],
+ );
+
+my $save_temps = $ENV{DEBUG};
+my $verbose = $ENV{VERBOSE};
+
+my $prog = 'tsort';
+my $fail = run_tests ($program_name, $prog, \@Tests, $save_temps, $verbose);
+exit $fail;
diff --git a/tests/misc/tty-eof b/tests/misc/tty-eof
deleted file mode 100755
index dca154e..0000000
--- a/tests/misc/tty-eof
+++ /dev/null
@@ -1,128 +0,0 @@
-#!/bin/sh
-# -*- perl -*-
-# Test whether programs exit upon a single EOF from a tty.
-
-# Copyright (C) 2003, 2006, 2007 Free Software Foundation, Inc.
-
-# This program is free software; you can redistribute it and/or modify
-# it under the terms of the GNU General Public License as published by
-# the Free Software Foundation; either version 2 of the License, or
-# (at your option) any later version.
-
-# This program is distributed in the hope that it will be useful,
-# but WITHOUT ANY WARRANTY; without even the implied warranty of
-# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
-# GNU General Public License for more details.
-
-# You should have received a copy of the GNU General Public License
-# along with this program; if not, write to the Free Software
-# Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA
-# 02110-1301, USA.
-
-: ${PERL=perl}
-
-$PERL -e 1 > /dev/null 2>&1 || {
- echo 1>&2 "$0: configure didn't find a usable version of Perl," \
- "so can't run this test"
- exit 77
-}
-
-ARGV_0=$0
-export ARGV_0
-
-exec $PERL -w -- - <<\EOF
-
-# Ensure that cat exits upon a single EOF (^D) from a tty.
-# Do the same for all programs that can read stdin,
-# require no arguments and that write to standard output.
-use strict;
-
-(my $ME = $ENV{ARGV_0}) =~ s|.*/||;
-
-# Some older versions of Expect.pm (e.g. 1.07) lack the log_user method,
-# so check for that, too.
-eval { require Expect; Expect->require_version('1.11') };
-$@ and (warn "$ME: this script requires Perl's Expect package >=1.11\n"),
- exit 77;
-
-{
- my $fail = 0;
- my @stdin_reading_commands = qw(
- base64
- cat
- cksum
- dd
- expand
- fmt
- fold
- head
- md5sum
- nl
- od
- paste
- pr
- ptx
- sha1sum
- sha224sum
- sha256sum
- sha384sum
- sha512sum
- shuf
- sort
- sum
- tac
- tail
- tee
- tsort
- unexpand
- uniq
- wc
- );
- my $stderr = 'tty-eof.err';
- foreach my $cmd ((@stdin_reading_commands), 'cut -f2')
- {
- my $exp = new Expect;
- $exp->log_user(0);
- $exp->spawn("$cmd 2> $stderr")
- or (warn "$ME: cannot run `$cmd': $!\n"), $fail=1, next;
- # No input for cut -f2.
- $cmd =~ /^cut/
- or $exp->send("a b\n");
- $exp->send("\cD"); # This is Control-D. FIXME: what if that's not EOF?
- $exp->expect (0, '-re', "^a b\\r?\$");
- my $found = $exp->expect (1, '-re', "^.+\$");
- # $found and warn "F: $found: " . $exp->exp_match () . "\n";
- $exp->expect(1, 'eof');
- # Expect no output from cut, since we gave it no input.
- defined $found || $cmd =~ /^cut/
- or (warn "$ME: $cmd didn't produce expected output\n"),
- $fail=1, next;
- defined $exp->exitstatus
- or (warn "$ME: $cmd didn't exit after ^D from standard input\n"),
- $fail=1, next;
- my $s = $exp->exitstatus;
- $s == 0
- or (warn "$ME: $cmd exited with status $s (expected 0)\n"),
- $fail=1;
- $exp->hard_close();
-
- # dd normally writes to stderr. If it exits successfully, we're done.
- $cmd eq 'dd' && $s == 0
- and next;
-
- if (-s $stderr)
- {
- warn "$ME: $cmd wrote to stderr:\n";
- system "cat $stderr";
- $fail = 1;
- }
- }
- continue
- {
- unlink $stderr
- or warn "$ME: failed to remove stderr file from $cmd, $stderr: $!\n";
- }
-
- exit $fail
-}
-EOF
diff --git a/tests/misc/tty-eof.pl b/tests/misc/tty-eof.pl
new file mode 100755
index 0000000..ef6441d
--- /dev/null
+++ b/tests/misc/tty-eof.pl
@@ -0,0 +1,113 @@
+#!/usr/bin/perl
+# Test whether programs exit upon a single EOF from a tty.
+# Ensure that e.g., cat exits upon a single EOF (^D) from a tty.
+# Do the same for all programs that can read stdin,
+# require no arguments and that write to standard output.
+
+# Copyright (C) 2003-2016 Free Software Foundation, Inc.
+
+# This program is free software: you can redistribute it and/or modify
+# it under the terms of the GNU General Public License as published by
+# the Free Software Foundation, either version 3 of the License, or
+# (at your option) any later version.
+
+# This program is distributed in the hope that it will be useful,
+# but WITHOUT ANY WARRANTY; without even the implied warranty of
+# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
+# GNU General Public License for more details.
+
+# You should have received a copy of the GNU General Public License
+# along with this program. If not, see <http://www.gnu.org/licenses/>.
+
+use strict;
+(my $ME = $0) =~ s|.*/||;
+
+# Some older versions of Expect.pm (e.g. 1.07) lack the log_user method,
+# so check for that, too.
+eval { require Expect; Expect->require_version('1.11') };
+$@
+ and CuSkip::skip "$ME: this script requires Perl's Expect package >=1.11\n";
+
+{
+ my $fail = 0;
+ my @stdin_reading_commands = qw(
+ base32
+ base64
+ cat
+ cksum
+ dd
+ expand
+ fmt
+ fold
+ head
+ md5sum
+ nl
+ od
+ paste
+ pr
+ ptx
+ sha1sum
+ sha224sum
+ sha256sum
+ sha384sum
+ sha512sum
+ shuf
+ sort
+ sum
+ tac
+ tail
+ tee
+ tsort
+ unexpand
+ uniq
+ wc
+ );
+ my $stderr = 'tty-eof.err';
+ foreach my $cmd ((@stdin_reading_commands), 'cut -f2',
+ 'numfmt --invalid=ignore')
+ {
+ my $exp = new Expect;
+ $exp->log_user(0);
+ $ENV{built_programs} =~ /\b$cmd\b/ || next;
+ $exp->spawn("$cmd 2> $stderr")
+ or (warn "$ME: cannot run '$cmd': $!\n"), $fail=1, next;
+ # No input for cut -f2.
+ $cmd =~ /^cut/
+ or $exp->send("a b\n");
+ $exp->send("\cD"); # This is Control-D. FIXME: what if that's not EOF?
+ $exp->expect (0, '-re', "^a b\\r?\$");
+ my $found = $exp->expect (1, '-re', "^.+\$");
+ $found and warn "F: $found: " . $exp->exp_match () . "\n";
+ $exp->expect(10, 'eof');
+ # Expect no output from cut, since we gave it no input.
+ defined $found || $cmd =~ /^cut/
+ or (warn "$ME: $cmd didn't produce expected output\n"),
+ $fail=1, next;
+ defined $exp->exitstatus
+ or (warn "$ME: $cmd didn't exit after ^D from standard input\n"),
+ $fail=1, next;
+ my $s = $exp->exitstatus;
+ $s == 0
+ or (warn "$ME: $cmd exited with status $s (expected 0)\n"),
+ $fail=1;
+ $exp->hard_close();
+
+ # dd normally writes to stderr. If it exits successfully, we're done.
+ $cmd eq 'dd' && $s == 0
+ and next;
+
+ if (-s $stderr)
+ {
+ warn "$ME: $cmd wrote to stderr:\n";
+ system "cat $stderr";
+ $fail = 1;
+ }
+ }
+ continue
+ {
+ unlink $stderr
+ or warn "$ME: failed to remove stderr file from $cmd, $stderr: $!\n";
+ }
+
+ exit $fail
+}
diff --git a/tests/misc/unexpand.pl b/tests/misc/unexpand.pl
new file mode 100755
index 0000000..c592c5a
--- /dev/null
+++ b/tests/misc/unexpand.pl
@@ -0,0 +1,99 @@
+#!/usr/bin/perl
+# Test "unexpand".
+
+# Copyright (C) 2000-2016 Free Software Foundation, Inc.
+
+# This program is free software: you can redistribute it and/or modify
+# it under the terms of the GNU General Public License as published by
+# the Free Software Foundation, either version 3 of the License, or
+# (at your option) any later version.
+
+# This program is distributed in the hope that it will be useful,
+# but WITHOUT ANY WARRANTY; without even the implied warranty of
+# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
+# GNU General Public License for more details.
+
+# You should have received a copy of the GNU General Public License
+# along with this program. If not, see <http://www.gnu.org/licenses/>.
+
+use strict;
+
+my $limits = getlimits ();
+
+(my $program_name = $0) =~ s|.*/||;
+
+# Turn off localization of executable's output.
+@ENV{qw(LANGUAGE LANG LC_ALL)} = ('C') x 3;
+
+my $prog = 'unexpand';
+
+my @Tests =
+ (
+ ['a1', {IN=> ' 'x 1 ."y\n"}, {OUT=> ' 'x 1 ."y\n"}],
+ ['a2', {IN=> ' 'x 2 ."y\n"}, {OUT=> ' 'x 2 ."y\n"}],
+ ['a3', {IN=> ' 'x 3 ."y\n"}, {OUT=> ' 'x 3 ."y\n"}],
+ ['a4', {IN=> ' 'x 4 ."y\n"}, {OUT=> ' 'x 4 ."y\n"}],
+ ['a5', {IN=> ' 'x 5 ."y\n"}, {OUT=> ' 'x 5 ."y\n"}],
+ ['a6', {IN=> ' 'x 6 ."y\n"}, {OUT=> ' 'x 6 ."y\n"}],
+ ['a7', {IN=> ' 'x 7 ."y\n"}, {OUT=> ' 'x 7 ."y\n"}],
+ ['a8', {IN=> ' 'x 8 ."y\n"}, {OUT=> "\ty\n"}],
+
+ ['aa-1', '-a', {IN=> 'w'.' 'x 1 ."y\n"}, {OUT=> 'w'.' 'x 1 ."y\n"}],
+ ['aa-2', '-a', {IN=> 'w'.' 'x 2 ."y\n"}, {OUT=> 'w'.' 'x 2 ."y\n"}],
+ ['aa-3', '-a', {IN=> 'w'.' 'x 3 ."y\n"}, {OUT=> 'w'.' 'x 3 ."y\n"}],
+ ['aa-4', '-a', {IN=> 'w'.' 'x 4 ."y\n"}, {OUT=> 'w'.' 'x 4 ."y\n"}],
+ ['aa-5', '-a', {IN=> 'w'.' 'x 5 ."y\n"}, {OUT=> 'w'.' 'x 5 ."y\n"}],
+ ['aa-6', '-a', {IN=> 'w'.' 'x 6 ."y\n"}, {OUT=> 'w'.' 'x 6 ."y\n"}],
+ ['aa-7', '-a', {IN=> 'w'.' 'x 7 ."y\n"}, {OUT=> "w\ty\n"}],
+ ['aa-8', '-a', {IN=> 'w'.' 'x 8 ."y\n"}, {OUT=> "w\t y\n"}],
+
+ ['b-1', '-t', '2,4', {IN=> " ."}, {OUT=>"\t\t ."}],
+ # These would infloop prior to textutils-2.0d.
+
+ ['infloop-1', '-t', '1,2', {IN=> " \t\t .\n"}, {OUT=>"\t\t\t .\n"}],
+ ['infloop-2', '-t', '4,5', {IN=> ' 'x4 . "\t\t \n"}, {OUT=>"\t\t\t \n"}],
+ ['infloop-3', '-t', '2,3', {IN=> "x \t\t \n"}, {OUT=>"x\t\t\t \n"}],
+ ['infloop-4', '-t', '1,2', {IN=> " \t\t \n"}, {OUT=>"\t\t\t \n"}],
+ ['c-1', '-t', '1,2', {IN=> "x\t\t .\n"}, {OUT=>"x\t\t .\n"}],
+
+ # -t implies -a
+ # Feature addition (--first-only) prompted by a report from Jie Xu.
+ ['tabs-1', qw(-t 3), {IN=> " a b\n"}, {OUT=>"\ta\tb\n"}],
+ ['tabs-2', qw(-t 3 --first-only), {IN=> " a b\n"}, {OUT=>"\ta b\n"}],
+
+ # blanks
+ ['blanks-1', qw(-t 1), {IN=> " b c d\n"}, {OUT=> "\tb\t\tc\t\t\td\n"}],
+ ['blanks-2', qw(-t 1), {IN=> "a \n"}, {OUT=> "a \n"}],
+ ['blanks-3', qw(-t 1), {IN=> "a \n"}, {OUT=> "a\t\t\n"}],
+ ['blanks-4', qw(-t 1), {IN=> "a \n"}, {OUT=> "a\t\t\t\n"}],
+ ['blanks-5', qw(-t 1), {IN=> "a "}, {OUT=> "a "}],
+ ['blanks-6', qw(-t 1), {IN=> "a "}, {OUT=> "a\t\t"}],
+ ['blanks-7', qw(-t 1), {IN=> "a "}, {OUT=> "a\t\t\t"}],
+ ['blanks-8', qw(-t 1), {IN=> " a a a\n"}, {OUT=> "\ta a\t\ta\n"}],
+ ['blanks-9', qw(-t 2), {IN=> " a a a\n"}, {OUT=> "\t a\ta\t a\n"}],
+ ['blanks-10', '-t', '3,4', {IN=> "0 2 4 6\t8\n"}, {OUT=> "0 2 4 6\t8\n"}],
+ ['blanks-11', '-t', '3,4', {IN=> " 4\n"}, {OUT=> "\t\t4\n"}],
+ ['blanks-12', '-t', '3,4', {IN=> "01 4\n"}, {OUT=> "01\t\t4\n"}],
+ ['blanks-13', '-t', '3,4', {IN=> "0 4\n"}, {OUT=> "0\t\t4\n"}],
+
+ # POSIX says spaces should only follow tabs. Also a single
+ # trailing space is not converted to a tab, when before
+ # a field starting with non blanks
+ ['posix-1', '-a', {IN=> "1234567 \t1\n"}, {OUT=>"1234567\t\t1\n"}],
+ ['posix-2', '-a', {IN=> "1234567 \t1\n"}, {OUT=>"1234567\t\t1\n"}],
+ ['posix-3', '-a', {IN=> "1234567 \t1\n"}, {OUT=>"1234567\t\t1\n"}],
+ ['posix-4', '-a', {IN=> "1234567\t1\n"}, {OUT=>"1234567\t1\n"}],
+ ['posix-5', '-a', {IN=> "1234567 1\n"}, {OUT=>"1234567\t 1\n"}],
+ ['posix-6', '-a', {IN=> "1234567 1\n"}, {OUT=>"1234567 1\n"}],
+
+ # It is debatable whether this test should require an environment
+ # setting of e.g., _POSIX2_VERSION=1.
+ ['obs-ovflo', "-$limits->{UINTMAX_OFLOW}", {IN=>''}, {OUT=>''},
+ {EXIT => 1}, {ERR => "$prog: tab stop value is too large\n"}],
+ );
+
+my $save_temps = $ENV{DEBUG};
+my $verbose = $ENV{VERBOSE};
+
+my $fail = run_tests ($program_name, $prog, \@Tests, $save_temps, $verbose);
+exit $fail;
diff --git a/tests/misc/uniq-perf.sh b/tests/misc/uniq-perf.sh
new file mode 100755
index 0000000..c8db86f
--- /dev/null
+++ b/tests/misc/uniq-perf.sh
@@ -0,0 +1,25 @@
+#!/bin/sh
+# before coreutils-8.10, seq 100000|uniq -f 10000000000 would run for days
+
+# Copyright (C) 2011-2016 Free Software Foundation, Inc.
+
+# This program is free software: you can redistribute it and/or modify
+# it under the terms of the GNU General Public License as published by
+# the Free Software Foundation, either version 3 of the License, or
+# (at your option) any later version.
+
+# This program is distributed in the hope that it will be useful,
+# but WITHOUT ANY WARRANTY; without even the implied warranty of
+# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
+# GNU General Public License for more details.
+
+# You should have received a copy of the GNU General Public License
+# along with this program. If not, see <http://www.gnu.org/licenses/>.
+
+. "${srcdir=.}/tests/init.sh"; path_prepend_ ./src
+print_ver_ uniq
+
+seq 100 > in || fail=1
+timeout 10 uniq -f 10000000000 in || fail=1
+
+Exit $fail
diff --git a/tests/misc/uniq.pl b/tests/misc/uniq.pl
new file mode 100755
index 0000000..f028036
--- /dev/null
+++ b/tests/misc/uniq.pl
@@ -0,0 +1,272 @@
+#!/usr/bin/perl
+# Test uniq.
+
+# Copyright (C) 2008-2016 Free Software Foundation, Inc.
+
+# This program is free software: you can redistribute it and/or modify
+# it under the terms of the GNU General Public License as published by
+# the Free Software Foundation, either version 3 of the License, or
+# (at your option) any later version.
+
+# This program is distributed in the hope that it will be useful,
+# but WITHOUT ANY WARRANTY; without even the implied warranty of
+# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
+# GNU General Public License for more details.
+
+# You should have received a copy of the GNU General Public License
+# along with this program. If not, see <http://www.gnu.org/licenses/>.
+
+use strict;
+
+my $limits = getlimits ();
+
+my $prog = 'uniq';
+my $try = "Try '$prog --help' for more information.\n";
+
+# Turn off localization of executable's output.
+@ENV{qw(LANGUAGE LANG LC_ALL)} = ('C') x 3;
+
+# When possible, create a "-z"-testing variant of each test.
+sub add_z_variants($)
+{
+ my ($tests) = @_;
+ my @new;
+ TEST:
+ foreach my $t (@$tests)
+ {
+ push @new, $t;
+
+ # skip the obsolete-syntax tests
+ $t->[0] =~ /^obs-plus/
+ and next;
+
+ my @args;
+ my @list_of_hash;
+
+ foreach my $e (@$t)
+ {
+ !ref $e
+ and push (@args, $e), next;
+
+ ref $e && ref $e eq 'HASH'
+ or (warn "$0: $t->[0]: unexpected entry type\n"), next;
+ my $tmp = $e;
+ foreach my $k (qw(IN OUT))
+ {
+ my $val = $e->{$k};
+ # skip any test whose input or output already contains a NUL byte
+ if (defined $val)
+ {
+ $val =~ /\0/
+ and next TEST;
+
+ # Convert each NL in input or output to \0.
+ $val =~ s/\n/\0/g;
+ $tmp = {$k => $val};
+ last;
+ }
+ }
+ push @list_of_hash, $tmp;
+ }
+
+ shift @args; # discard test name
+
+ # skip any test that uses the -z option
+ grep /z/, @args
+ and next;
+
+ push @new, ["$t->[0]-z", '-z', @args, @list_of_hash];
+ }
+ return @new;
+}
+
+my @Tests =
+(
+ ['1', '', {IN=>''}, {OUT=>''}],
+ ['2', '', {IN=>"a\na\n"}, {OUT=>"a\n"}],
+ ['3', '', {IN=>"a\na"}, {OUT=>"a\n"}],
+ ['4', '', {IN=>"a\nb"}, {OUT=>"a\nb\n"}],
+ ['5', '', {IN=>"a\na\nb"}, {OUT=>"a\nb\n"}],
+ ['6', '', {IN=>"b\na\na\n"}, {OUT=>"b\na\n"}],
+ ['7', '', {IN=>"a\nb\nc\n"}, {OUT=>"a\nb\nc\n"}],
+
+ # Ensure that newlines are not interpreted with -z.
+ ['2z', '-z', {IN=>"a\na\n"}, {OUT=>"a\na\n\0"}],
+ ['3z', '-z', {IN=>"a\na"}, {OUT=>"a\na\0"}],
+ ['4z', '-z', {IN=>"a\nb"}, {OUT=>"a\nb\0"}],
+ ['5z', '-z', {IN=>"a\na\nb"}, {OUT=>"a\na\nb\0"}],
+ ['10z', '-z -f1', {IN=>"a\nb\n\0c\nb\n\0"}, {OUT=>"a\nb\n\0"}],
+ ['20z', '-dz', {IN=>"a\na\n"}, {OUT=>""}],
+
+ # Make sure that eight bit characters work
+ ['8', '', {IN=>"ö\nv\n"}, {OUT=>"ö\nv\n"}],
+ # Test output of -u option; only unique lines
+ ['9', '-u', {IN=>"a\na\n"}, {OUT=>""}],
+ ['10', '-u', {IN=>"a\nb\n"}, {OUT=>"a\nb\n"}],
+ ['11', '-u', {IN=>"a\nb\na\n"}, {OUT=>"a\nb\na\n"}],
+ ['12', '-u', {IN=>"a\na\n"}, {OUT=>""}],
+ ['13', '-u', {IN=>"a\na\n"}, {OUT=>""}],
+ #['5', '-u', "a\na\n", "", 0],
+ # Test output of -d option; only repeated lines
+ ['20', '-d', {IN=>"a\na\n"}, {OUT=>"a\n"}],
+ ['21', '-d', {IN=>"a\nb\n"}, {OUT=>""}],
+ ['22', '-d', {IN=>"a\nb\na\n"}, {OUT=>""}],
+ ['23', '-d', {IN=>"a\na\nb\n"}, {OUT=>"a\n"}],
+ # Check the key options
+ # If we skip over fields or characters, is the output deterministic?
+ ['obs30', '-1', {IN=>"a a\nb a\n"}, {OUT=>"a a\n"}],
+ ['31', qw(-f 1), {IN=>"a a\nb a\n"}, {OUT=>"a a\n"}],
+ ['32', qw(-f 1), {IN=>"a a\nb b\n"}, {OUT=>"a a\nb b\n"}],
+ ['33', qw(-f 1), {IN=>"a a a\nb a c\n"}, {OUT=>"a a a\nb a c\n"}],
+ ['34', qw(-f 1), {IN=>"b a\na a\n"}, {OUT=>"b a\n"}],
+ ['35', qw(-f 2), {IN=>"a a c\nb a c\n"}, {OUT=>"a a c\n"}],
+ # Skip over characters.
+ ['obs-plus40', '+1', {IN=>"aaa\naaa\n"}, {OUT=>"aaa\n"}],
+ ['obs-plus41', '+1', {IN=>"baa\naaa\n"}, {OUT=>"baa\n"}],
+ ['42', qw(-s 1), {IN=>"aaa\naaa\n"}, {OUT=>"aaa\n"}],
+ ['43', qw(-s 2), {IN=>"baa\naaa\n"}, {OUT=>"baa\n"}],
+ ['obs-plus44', qw(+1 --), {IN=>"aaa\naaa\n"}, {OUT=>"aaa\n"}],
+ ['obs-plus45', qw(+1 --), {IN=>"baa\naaa\n"}, {OUT=>"baa\n"}],
+ # Skip over fields and characters
+ ['50', qw(-f 1 -s 1), {IN=>"a aaa\nb ab\n"}, {OUT=>"a aaa\nb ab\n"}],
+ ['51', qw(-f 1 -s 1), {IN=>"a aaa\nb aaa\n"}, {OUT=>"a aaa\n"}],
+ ['52', qw(-s 1 -f 1), {IN=>"a aaa\nb ab\n"}, {OUT=>"a aaa\nb ab\n"}],
+ ['53', qw(-s 1 -f 1), {IN=>"a aaa\nb aaa\n"}, {OUT=>"a aaa\n"}],
+ # Fixed in 2.0.15
+ ['54', qw(-s 4), {IN=>"abc\nabcd\n"}, {OUT=>"abc\n"}],
+ # Supported in 2.0.15
+ ['55', qw(-s 0), {IN=>"abc\nabcd\n"}, {OUT=>"abc\nabcd\n"}],
+ ['56', qw(-s 0), {IN=>"abc\n"}, {OUT=>"abc\n"}],
+ ['57', qw(-w 0), {IN=>"abc\nabcd\n"}, {OUT=>"abc\n"}],
+ # Only account for a number of characters
+ ['60', qw(-w 1), {IN=>"a a\nb a\n"}, {OUT=>"a a\nb a\n"}],
+ ['61', qw(-w 3), {IN=>"a a\nb a\n"}, {OUT=>"a a\nb a\n"}],
+ ['62', qw(-w 1 -f 1), {IN=>"a a a\nb a c\n"}, {OUT=>"a a a\n"}],
+ ['63', qw(-f 1 -w 1), {IN=>"a a a\nb a c\n"}, {OUT=>"a a a\n"}],
+ # The blank after field one is checked too
+ ['64', qw(-f 1 -w 4), {IN=>"a a a\nb a c\n"}, {OUT=>"a a a\nb a c\n"}],
+ ['65', qw(-f 1 -w 3), {IN=>"a a a\nb a c\n"}, {OUT=>"a a a\n"}],
+ # Make sure we don't break if the file contains \0
+ ['90', '', {IN=>"a\0a\na\n"}, {OUT=>"a\0a\na\n"}],
+ # Check fields separated by tabs and by spaces
+ ['91', '', {IN=>"a\ta\na a\n"}, {OUT=>"a\ta\na a\n"}],
+ ['92', qw(-f 1), {IN=>"a\ta\na a\n"}, {OUT=>"a\ta\na a\n"}],
+ ['93', qw(-f 2), {IN=>"a\ta a\na a a\n"}, {OUT=>"a\ta a\n"}],
+ ['94', qw(-f 1), {IN=>"a\ta\na\ta\n"}, {OUT=>"a\ta\n"}],
+ # Check the count option; add tests for other options too
+ ['101', '-c', {IN=>"a\nb\n"}, {OUT=>" 1 a\n 1 b\n"}],
+ ['102', '-c', {IN=>"a\na\n"}, {OUT=>" 2 a\n"}],
+ # Check the local -D (--all-repeated) option
+ ['110', '-D', {IN=>"a\na\n"}, {OUT=>"a\na\n"}],
+ ['111', qw(-D -w1), {IN=>"a a\na b\n"}, {OUT=>"a a\na b\n"}],
+ ['112', qw(-D -c), {IN=>"a a\na b\n"}, {OUT=>""}, {EXIT=>1}, {ERR=>
+ "$prog: printing all duplicated lines and repeat counts is meaningless\n$try"}
+ ],
+ ['113', '--all-repeated=separate', {IN=>"a\na\n"}, {OUT=>"a\na\n"}],
+ ['114', '--all-repeated=separate',
+ {IN=>"a\na\nb\nc\nc\n"}, {OUT=>"a\na\n\nc\nc\n"}],
+ ['115', '--all-repeated=separate',
+ {IN=>"a\na\nb\nb\nc\n"}, {OUT=>"a\na\n\nb\nb\n"}],
+ ['116', '--all-repeated=prepend', {IN=>"a\na\n"}, {OUT=>"\na\na\n"}],
+ ['117', '--all-repeated=prepend',
+ {IN=>"a\na\nb\nc\nc\n"}, {OUT=>"\na\na\n\nc\nc\n"}],
+ ['118', '--all-repeated=prepend', {IN=>"a\nb\n"}, {OUT=>""}],
+ ['119', '--all-repeated=badoption', {IN=>"a\n"}, {OUT=>""}, {EXIT=>1},
+ {ERR=>"$prog: invalid argument 'badoption' for '--all-repeated'\n"
+ . "Valid arguments are:\n"
+ . " - 'none'\n"
+ . " - 'prepend'\n"
+ . " - 'separate'\n"
+ . $try}],
+ # Check that -d and -u suppress all output, as POSIX requires.
+ ['120', qw(-d -u), {IN=>"a\na\n\b"}, {OUT=>""}],
+ ['121', "-d -u -w$limits->{UINTMAX_OFLOW}", {IN=>"a\na\n\b"}, {OUT=>""}],
+ ['122', "-d -u -w$limits->{SIZE_OFLOW}", {IN=>"a\na\n\b"}, {OUT=>""}],
+ # Check that --zero-terminated is synonymous with -z.
+ ['123', '--zero-terminated', {IN=>"a\na\nb"}, {OUT=>"a\na\nb\0"}],
+ ['124', '--zero-terminated', {IN=>"a\0a\0b"}, {OUT=>"a\0b\0"}],
+ # Check ignore-case
+ ['125', '', {IN=>"A\na\n"}, {OUT=>"A\na\n"}],
+ ['126', '-i', {IN=>"A\na\n"}, {OUT=>"A\n"}],
+ ['127', '--ignore-case', {IN=>"A\na\n"}, {OUT=>"A\n"}],
+ # Check grouping
+ ['128', '--group=prepend', {IN=>"a\na\nb\n"}, {OUT=>"\na\na\n\nb\n"}],
+ ['129', '--group=append', {IN=>"a\na\nb\n"}, {OUT=>"a\na\n\nb\n\n"}],
+ ['130', '--group=separate',{IN=>"a\na\nb\n"}, {OUT=>"a\na\n\nb\n"}],
+ # no explicit grouping = separate
+ ['131', '--group', {IN=>"a\na\nb\n"}, {OUT=>"a\na\n\nb\n"}],
+ ['132', '--group=both', {IN=>"a\na\nb\n"}, {OUT=>"\na\na\n\nb\n\n"}],
+ # Grouping in the special case of a single group
+ ['133', '--group=prepend', {IN=>"a\na\n"}, {OUT=>"\na\na\n"}],
+ ['134', '--group=append', {IN=>"a\na\n"}, {OUT=>"a\na\n\n"}],
+ ['135', '--group=separate',{IN=>"a\na\n"}, {OUT=>"a\na\n"}],
+ ['136', '--group', {IN=>"a\na\n"}, {OUT=>"a\na\n"}],
+ # Grouping with empty input - should never print anything
+ ['137', '--group=prepend', {IN=>""}, {OUT=>""}],
+ ['138', '--group=append', {IN=>""}, {OUT=>""}],
+ ['139', '--group=separate', {IN=>""}, {OUT=>""}],
+ ['140', '--group=both', {IN=>""}, {OUT=>""}],
+ # Grouping with other options - must fail
+ ['141', '--group -c', {IN=>""}, {OUT=>""}, {EXIT=>1},
+ {ERR=>"$prog: --group is mutually exclusive with -c/-d/-D/-u\n" .
+ "Try 'uniq --help' for more information.\n"}],
+ ['142', '--group -d', {IN=>""}, {OUT=>""}, {EXIT=>1},
+ {ERR=>"$prog: --group is mutually exclusive with -c/-d/-D/-u\n" .
+ "Try 'uniq --help' for more information.\n"}],
+ ['143', '--group -u', {IN=>""}, {OUT=>""}, {EXIT=>1},
+ {ERR=>"$prog: --group is mutually exclusive with -c/-d/-D/-u\n" .
+ "Try 'uniq --help' for more information.\n"}],
+ ['144', '--group -D', {IN=>""}, {OUT=>""}, {EXIT=>1},
+ {ERR=>"$prog: --group is mutually exclusive with -c/-d/-D/-u\n" .
+ "Try 'uniq --help' for more information.\n"}],
+ # Grouping with badoption
+ ['145', '--group=badoption',{IN=>""}, {OUT=>""}, {EXIT=>1},
+ {ERR=>"$prog: invalid argument 'badoption' for '--group'\n" .
+ "Valid arguments are:\n" .
+ " - 'prepend'\n" .
+ " - 'append'\n" .
+ " - 'separate'\n" .
+ " - 'both'\n" .
+ "Try '$prog --help' for more information.\n"}],
+);
+
+# Locale related tests
+
+my $locale = $ENV{LOCALE_FR};
+if ( defined $locale && $locale ne 'none' )
+ {
+ # I've only ever triggered the problem in a non-C locale.
+
+ # See if isblank returns true for nbsp.
+ my $x = qx!env printf '\xa0'| LC_ALL=$locale tr '[:blank:]' x!;
+ # If so, expect just one line of output in the schar test.
+ # Otherwise, expect two.
+ my $in = " y z\n\xa0 y z\n";
+ my $schar_exp = $x eq 'x' ? " y z\n" : $in;
+
+ my @Locale_Tests =
+ (
+ # Test for a subtle, system-and-locale-dependent bug in uniq.
+ ['schar', '-f1', {IN => $in}, {OUT => $schar_exp},
+ {ENV => "LC_ALL=$locale"}]
+ );
+
+ push @Tests, @Locale_Tests;
+ }
+
+
+# Set _POSIX2_VERSION=199209 in the environment of each obs-plus* test.
+foreach my $t (@Tests)
+ {
+ $t->[0] =~ /^obs-plus/
+ and push @$t, {ENV=>'_POSIX2_VERSION=199209'};
+ }
+
+@Tests = add_z_variants \@Tests;
+@Tests = triple_test \@Tests;
+
+my $save_temps = $ENV{DEBUG};
+my $verbose = $ENV{VERBOSE};
+
+my $fail = run_tests ($prog, $prog, \@Tests, $save_temps, $verbose);
+exit $fail;
diff --git a/tests/misc/wc-files0 b/tests/misc/wc-files0
deleted file mode 100755
index 8991e7e..0000000
--- a/tests/misc/wc-files0
+++ /dev/null
@@ -1,66 +0,0 @@
-#!/bin/sh
-# Show that wc's new --files0-from option works.
-
-# Copyright (C) 2006 Free Software Foundation, Inc.
-
-# This program is free software; you can redistribute it and/or modify
-# it under the terms of the GNU General Public License as published by
-# the Free Software Foundation; either version 2 of the License, or
-# (at your option) any later version.
-
-# This program is distributed in the hope that it will be useful,
-# but WITHOUT ANY WARRANTY; without even the implied warranty of
-# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
-# GNU General Public License for more details.
-
-# You should have received a copy of the GNU General Public License
-# along with this program; if not, write to the Free Software
-# Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA
-# 02110-1301, USA.
-
-if test "$VERBOSE" = yes; then
- set -x
- wc --version
-fi
-
-. $srcdir/../lang-default
-
-pwd=`pwd`
-t0=`echo "$0"|sed 's,.*/,,'`.tmp; tmp=$t0/$$
-trap 'status=$?; cd "$pwd" && chmod -R u+rwx $t0 && rm -rf $t0 && exit $status' 0
-trap '(exit $?); exit $?' 1 2 13 15
-
-framework_failure=0
-mkdir -p $tmp || framework_failure=1
-cd $tmp || framework_failure=1
-
-echo 2 > 2b || framework_failure=1
-echo 2 words > 2w || framework_failure=1
-printf '2b\n2w\n' |tr '\n' '\0' > names || framework_failure=1
-
-if test $framework_failure = 1; then
- echo "$0: failure in testing framework" 1>&2
- (exit 1); exit 1
-fi
-
-fail=0
-
-wc --files0-from=names > out || fail=1
-cat <<\EOF > exp || fail=1
- 1 1 2 2b
- 1 2 8 2w
- 2 3 10 total
-EOF
-
-cmp out exp || fail=1
-test $fail = 1 && diff out exp 2> /dev/null
-
-if test "$fail" = ''; then
- # Repeat the above test, but read the file name list from stdin.
- rm -f out
- wc --files0-from=- < names > out || fail=1
- cmp out exp || fail=1
- test $fail = 1 && diff out exp 2> /dev/null
-fi
-
-(exit $fail); exit $fail
diff --git a/tests/misc/wc-files0-from b/tests/misc/wc-files0-from
deleted file mode 100755
index 72f1bdf..0000000
--- a/tests/misc/wc-files0-from
+++ /dev/null
@@ -1,108 +0,0 @@
-#!/bin/sh
-# -*- perl -*-
-# Exercise wc's --files0-from option.
-# This file bears a striking resemblance to tests/du/files0-from.
-
-# Copyright (C) 2006 Free Software Foundation, Inc.
-
-# This program is free software; you can redistribute it and/or modify
-# it under the terms of the GNU General Public License as published by
-# the Free Software Foundation; either version 2 of the License, or
-# (at your option) any later version.
-
-# This program is distributed in the hope that it will be useful,
-# but WITHOUT ANY WARRANTY; without even the implied warranty of
-# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
-# GNU General Public License for more details.
-
-# You should have received a copy of the GNU General Public License
-# along with this program; if not, write to the Free Software
-# Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA
-# 02110-1301, USA.
-
-: ${PERL=perl}
-: ${srcdir=.}
-
-. $srcdir/../envvar-check
-
-$PERL -e 1 > /dev/null 2>&1 || {
- echo 1>&2 "$0: configure didn't find a usable version of Perl," \
- "so can't run this test"
- exit 77
-}
-
-exec $PERL -w -I$srcdir/.. -MCoreutils -- - <<\EOF
-#/
-require 5.003;
-use strict;
-
-(my $program_name = $0) =~ s|.*/||;
-
-$ENV{PROG} = 'wc';
-my $ME = $ENV{PROG};
-
-# Turn off localization of executable's ouput.
-@ENV{qw(LANGUAGE LANG LC_ALL)} = ('C') x 3;
-
-my @Tests =
- (
- # invalid extra command line argument
- ['f-extra-arg', '--files0-from=- no-such', {IN=>"a"}, {EXIT=>1},
- {ERR => "$ME: extra operand `no-such'\n"
- . "File operands cannot be combined with --files0-from.\n"
- . "Try `$ME --help' for more information.\n"}
- ],
-
- # missing input file
- ['missing', '--files0-from=missing', {EXIT=>1},
- {ERR => "$ME: cannot open `missing' for reading: "
- . "No such file or directory\n"}],
-
- # empty input
- ['empty', '--files0-from=-'],
-
- # empty input, from non-regular file
- ['empty-nonreg', '--files0-from=/dev/null'],
-
- # one NUL
- ['nul-1', '--files0-from=-', '<', {IN=>"\0"}, {EXIT=>1},
- {ERR => "$ME: : No such file or directory\n"}],
-
- # two NULs
- ['nul-2', '--files0-from=-', '<', {IN=>"\0\0"}, {EXIT=>1},
- {OUT=>"0 0 0 total\n"},
- {ERR => "$ME: : No such file or directory\n"
- . "$ME: : No such file or directory\n"}],
-
- # one file name, no NUL
- ['1', '--files0-from=-', '<',
- {IN=>{f=>"g"}}, {AUX=>{g=>''}}, {OUT=>"0 0 0 g\n"} ],
-
- # one file name, with NUL
- ['1a', '--files0-from=-', '<',
- {IN=>{f=>"g\0"}}, {AUX=>{g=>''}}, {OUT=>"0 0 0 g\n"} ],
-
- # two file names, no final NUL
- ['2', '--files0-from=-', '<',
- {IN=>{f=>"g\0g"}}, {AUX=>{g=>''}},
- {OUT=>"0 0 0 g\n0 0 0 g\n0 0 0 total\n"} ],
-
- # two file names, with final NUL
- ['2a', '--files0-from=-', '<',
- {IN=>{f=>"g\0g\0"}}, {AUX=>{g=>''}},
- {OUT=>"0 0 0 g\n0 0 0 g\n0 0 0 total\n"} ],
-
- # Ensure that wc processes FILEs following a zero-length name.
- ['zero-len', '--files0-from=-', '<',
- {IN=>{f=>"\0g\0"}}, {AUX=>{g=>''}},
- {OUT=>"0 0 0 g\n0 0 0 total\n"},
- {ERR => "$ME: : No such file or directory\n"}, {EXIT=>1} ],
- );
-
-my $save_temps = $ENV{DEBUG};
-my $verbose = $ENV{VERBOSE};
-
-my $prog = $ENV{PROG} || die "$0: \$PROG not specified in environment\n";
-my $fail = run_tests ($program_name, $prog, \@Tests, $save_temps, $verbose);
-exit $fail;
-EOF
diff --git a/tests/misc/wc-files0-from.pl b/tests/misc/wc-files0-from.pl
new file mode 100755
index 0000000..9795e54
--- /dev/null
+++ b/tests/misc/wc-files0-from.pl
@@ -0,0 +1,93 @@
+#!/usr/bin/perl
+# Exercise wc's --files0-from option.
+# FIXME: keep this file in sync with tests/du/files0-from.
+
+# Copyright (C) 2006-2016 Free Software Foundation, Inc.
+
+# This program is free software: you can redistribute it and/or modify
+# it under the terms of the GNU General Public License as published by
+# the Free Software Foundation, either version 3 of the License, or
+# (at your option) any later version.
+
+# This program is distributed in the hope that it will be useful,
+# but WITHOUT ANY WARRANTY; without even the implied warranty of
+# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
+# GNU General Public License for more details.
+
+# You should have received a copy of the GNU General Public License
+# along with this program. If not, see <http://www.gnu.org/licenses/>.
+
+use strict;
+
+(my $program_name = $0) =~ s|.*/||;
+
+my $prog = 'wc';
+
+# Turn off localization of executable's output.
+@ENV{qw(LANGUAGE LANG LC_ALL)} = ('C') x 3;
+
+my @Tests =
+ (
+ # invalid extra command line argument
+ ['f-extra-arg', '--files0-from=- no-such', {IN=>"a"}, {EXIT=>1},
+ {ERR => "$prog: extra operand 'no-such'\n"
+ . "file operands cannot be combined with --files0-from\n"
+ . "Try '$prog --help' for more information.\n"}
+ ],
+
+ # missing input file
+ ['missing', '--files0-from=missing', {EXIT=>1},
+ {ERR => "$prog: cannot open 'missing' for reading: "
+ . "No such file or directory\n"}],
+
+ # input file name of '-'
+ ['minus-in-stdin', '--files0-from=-', '<', {IN=>{f=>'-'}}, {EXIT=>1},
+ {ERR => "$prog: when reading file names from stdin, no file name of"
+ . " '-' allowed\n"}],
+
+ # empty input, regular file
+ ['empty', '--files0-from=@AUX@', {AUX=>''}],
+
+ # empty input, from non-regular file
+ ['empty-nonreg', '--files0-from=/dev/null'],
+
+ # one NUL
+ ['nul-1', '--files0-from=-', '<', {IN=>"\0"}, {EXIT=>1},
+ {ERR => "$prog: -:1: invalid zero-length file name\n"}],
+
+ # two NULs
+ ['nul-2', '--files0-from=-', '<', {IN=>"\0\0"}, {EXIT=>1},
+ {OUT=>"0 0 0 total\n"},
+ {ERR => "$prog: -:1: invalid zero-length file name\n"
+ . "$prog: -:2: invalid zero-length file name\n"}],
+
+ # one file name, no NUL
+ ['1', '--files0-from=-', '<',
+ {IN=>{f=>"g"}}, {AUX=>{g=>''}}, {OUT=>"0 0 0 g\n"} ],
+
+ # one file name, with NUL
+ ['1a', '--files0-from=-', '<',
+ {IN=>{f=>"g\0"}}, {AUX=>{g=>''}}, {OUT=>"0 0 0 g\n"} ],
+
+ # two file names, no final NUL
+ ['2', '--files0-from=-', '<',
+ {IN=>{f=>"g\0g"}}, {AUX=>{g=>''}},
+ {OUT=>"0 0 0 g\n0 0 0 g\n0 0 0 total\n"} ],
+
+ # two file names, with final NUL
+ ['2a', '--files0-from=-', '<',
+ {IN=>{f=>"g\0g\0"}}, {AUX=>{g=>''}},
+ {OUT=>"0 0 0 g\n0 0 0 g\n0 0 0 total\n"} ],
+
+ # Ensure that $prog processes FILEs following a zero-length name.
+ ['zero-len', '--files0-from=-', '<',
+ {IN=>{f=>"\0g\0"}}, {AUX=>{g=>''}},
+ {OUT=>"0 0 0 g\n0 0 0 total\n"},
+ {ERR => "$prog: -:1: invalid zero-length file name\n"}, {EXIT=>1} ],
+ );
+
+my $save_temps = $ENV{DEBUG};
+my $verbose = $ENV{VERBOSE};
+
+my $fail = run_tests ($program_name, $prog, \@Tests, $save_temps, $verbose);
+exit $fail;
diff --git a/tests/misc/wc-files0.sh b/tests/misc/wc-files0.sh
new file mode 100755
index 0000000..12b7d6a
--- /dev/null
+++ b/tests/misc/wc-files0.sh
@@ -0,0 +1,51 @@
+#!/bin/sh
+# Show that wc's new --files0-from option works.
+
+# Copyright (C) 2006-2016 Free Software Foundation, Inc.
+
+# This program is free software: you can redistribute it and/or modify
+# it under the terms of the GNU General Public License as published by
+# the Free Software Foundation, either version 3 of the License, or
+# (at your option) any later version.
+
+# This program is distributed in the hope that it will be useful,
+# but WITHOUT ANY WARRANTY; without even the implied warranty of
+# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
+# GNU General Public License for more details.
+
+# You should have received a copy of the GNU General Public License
+# along with this program. If not, see <http://www.gnu.org/licenses/>.
+
+. "${srcdir=.}/tests/init.sh"; path_prepend_ ./src
+print_ver_ wc
+
+echo 2 > 2b || framework_failure_
+echo 2 words > 2w || framework_failure_
+printf '2b\n2w\n' |tr '\n' '\0' > names || framework_failure_
+
+
+wc --files0-from=names > out || fail=1
+cat <<\EOF > exp || fail=1
+ 1 1 2 2b
+ 1 2 8 2w
+ 2 3 10 total
+EOF
+
+compare exp out || fail=1
+
+if ! test "$fail" = 1; then
+ # Repeat the above test, but read the file name list from stdin.
+ rm -f out
+ wc --files0-from=- < names > out || fail=1
+ compare exp out || fail=1
+fi
+
+# Ensure file name containing new lines are output on a single line
+nlname='1
+2'
+touch "$nlname" || framework_failure_
+printf '%s\0' "$nlname" | wc --files0-from=- > out || fail=1
+printf '%s\n' "0 0 0 '1'$'\\n''2'" > exp || framework_failure_
+compare exp out || fail=1
+
+Exit $fail
diff --git a/tests/misc/wc-parallel.sh b/tests/misc/wc-parallel.sh
new file mode 100755
index 0000000..87a26b5
--- /dev/null
+++ b/tests/misc/wc-parallel.sh
@@ -0,0 +1,36 @@
+#!/bin/sh
+# Ensure that wc prints counts atomically
+# so that concurrent processes don't intersperse their output
+
+# Copyright (C) 2009-2016 Free Software Foundation, Inc.
+
+# This program is free software: you can redistribute it and/or modify
+# it under the terms of the GNU General Public License as published by
+# the Free Software Foundation, either version 3 of the License, or
+# (at your option) any later version.
+
+# This program is distributed in the hope that it will be useful,
+# but WITHOUT ANY WARRANTY; without even the implied warranty of
+# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
+# GNU General Public License for more details.
+
+# You should have received a copy of the GNU General Public License
+# along with this program. If not, see <http://www.gnu.org/licenses/>.
+
+. "${srcdir=.}/tests/init.sh"; path_prepend_ ./src
+print_ver_ wc
+
+xargs -P2 </dev/null >/dev/null 2>&1 \
+ || skip_ 'xargs -P is required'
+
+(mkdir tmp && cd tmp && seq 2000 | xargs touch)
+
+# This will output at least 16KiB per process
+# and start 3 processes, with 2 running concurrently,
+# which triggers often on Fedora 11 at least.
+(find tmp tmp tmp -type f | xargs -n2000 -P2 wc 2>err) |
+sed -n '/0 0 0 /!p' |
+grep . > /dev/null && fail=1
+compare /dev/null err || fail=1
+
+Exit $fail
diff --git a/tests/misc/wc-proc.sh b/tests/misc/wc-proc.sh
new file mode 100755
index 0000000..d6a36ba
--- /dev/null
+++ b/tests/misc/wc-proc.sh
@@ -0,0 +1,32 @@
+#!/bin/sh
+# Test wc on /proc and /sys files.
+
+# Copyright 2014-2016 Free Software Foundation, Inc.
+
+# This program is free software: you can redistribute it and/or modify
+# it under the terms of the GNU General Public License as published by
+# the Free Software Foundation, either version 3 of the License, or
+# (at your option) any later version.
+
+# This program is distributed in the hope that it will be useful,
+# but WITHOUT ANY WARRANTY; without even the implied warranty of
+# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
+# GNU General Public License for more details.
+
+# You should have received a copy of the GNU General Public License
+# along with this program. If not, see <http://www.gnu.org/licenses/>.
+
+. "${srcdir=.}/tests/init.sh"; path_prepend_ ./src
+print_ver_ wc
+
+for file in /proc/version /sys/kernel/profiling; do
+ if test -r $file; then
+ cp -f $file copy &&
+ wc -c < copy > exp1 || framework_failure_
+
+ wc -c < $file > out1 || fail=1
+ compare exp1 out1 || fail=1
+ fi
+done
+
+Exit $fail
diff --git a/tests/misc/wc.pl b/tests/misc/wc.pl
new file mode 100755
index 0000000..50f4e05
--- /dev/null
+++ b/tests/misc/wc.pl
@@ -0,0 +1,50 @@
+#!/usr/bin/perl
+# Basic tests for "wc".
+
+# Copyright (C) 1997-2016 Free Software Foundation, Inc.
+
+# This program is free software: you can redistribute it and/or modify
+# it under the terms of the GNU General Public License as published by
+# the Free Software Foundation, either version 3 of the License, or
+# (at your option) any later version.
+
+# This program is distributed in the hope that it will be useful,
+# but WITHOUT ANY WARRANTY; without even the implied warranty of
+# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
+# GNU General Public License for more details.
+
+# You should have received a copy of the GNU General Public License
+# along with this program. If not, see <http://www.gnu.org/licenses/>.
+
+use strict;
+
+my $prog = 'wc';
+
+# Turn off localization of executable's output.
+@ENV{qw(LANGUAGE LANG LC_ALL)} = ('C') x 3;
+
+my @Tests =
+ (
+ ['a0', '-c', {IN_PIPE=>''}, {OUT=>"0\n"}],
+ ['a1', '-l', {IN_PIPE=>''}, {OUT=>"0\n"}],
+ ['a2', '-w', {IN_PIPE=>''}, {OUT=>"0\n"}],
+ ['a3', '-c', {IN_PIPE=>'x'}, {OUT=>"1\n"}],
+ ['a4', '-w', {IN_PIPE=>'x'}, {OUT=>"1\n"}],
+ ['a5', '-w', {IN_PIPE=>"x y\n"}, {OUT=>"2\n"}],
+ ['a6', '-w', {IN_PIPE=>"x y\nz"}, {OUT=>"3\n"}],
+ # Remember, -l counts *newline* bytes, not logical lines.
+ ['a7', '-l', {IN_PIPE=>"x y"}, {OUT=>"0\n"}],
+ ['a8', '-l', {IN_PIPE=>"x y\n"}, {OUT=>"1\n"}],
+ ['a9', '-l', {IN_PIPE=>"x\ny\n"}, {OUT=>"2\n"}],
+ ['b0', '', {IN_PIPE=>""}, {OUT=>" 0 0 0\n"}],
+ ['b1', '', {IN_PIPE=>"a b\nc\n"}, {OUT=>" 2 3 6\n"}],
+ ['c0', '-L', {IN_PIPE=>"1\n12\n"}, {OUT=>"2\n"}],
+ ['c1', '-L', {IN_PIPE=>"1\n123\n1\n"}, {OUT=>"3\n"}],
+ ['c2', '-L', {IN_PIPE=>"\n123456"}, {OUT=>"6\n"}],
+ );
+
+my $save_temps = $ENV{DEBUG};
+my $verbose = $ENV{VERBOSE};
+
+my $fail = run_tests ($prog, $prog, \@Tests, $save_temps, $verbose);
+exit $fail;
diff --git a/tests/misc/xattr.sh b/tests/misc/xattr.sh
new file mode 100755
index 0000000..1a0ccb9
--- /dev/null
+++ b/tests/misc/xattr.sh
@@ -0,0 +1,130 @@
+#!/bin/sh
+# Ensure that cp --preserve=xattr, cp --preserve=all and mv preserve extended
+# attributes and install does not preserve extended attributes.
+# cp -a should preserve xattr, error diagnostics should not be displayed
+
+# Copyright (C) 2009-2016 Free Software Foundation, Inc.
+
+# This program is free software: you can redistribute it and/or modify
+# it under the terms of the GNU General Public License as published by
+# the Free Software Foundation, either version 3 of the License, or
+# (at your option) any later version.
+
+# This program is distributed in the hope that it will be useful,
+# but WITHOUT ANY WARRANTY; without even the implied warranty of
+# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
+# GNU General Public License for more details.
+
+# You should have received a copy of the GNU General Public License
+# along with this program. If not, see <http://www.gnu.org/licenses/>.
+
+. "${srcdir=.}/tests/init.sh"; path_prepend_ ./src
+print_ver_ cp mv ginstall
+
+# Skip this test if cp was built without xattr support:
+touch src dest || framework_failure_
+cp --preserve=xattr -n src dest \
+ || skip_ "coreutils built without xattr support"
+
+# this code was taken from test mv/backup-is-src
+cleanup_() { rm -rf "$other_partition_tmpdir"; }
+. "$abs_srcdir/tests/other-fs-tmpdir"
+b_other="$other_partition_tmpdir/b"
+rm -f "$b_other" || framework_failure_
+
+# testing xattr name-value pair
+xattr_name="user.foo"
+xattr_value="bar"
+xattr_pair="$xattr_name=\"$xattr_value\""
+
+# create new file and check its xattrs
+touch a || framework_failure_
+getfattr -d a >out_a || skip_ "failed to get xattr of file"
+grep -F "$xattr_pair" out_a && framework_failure_
+
+# try to set user xattr on file
+setfattr -n "$xattr_name" -v "$xattr_value" a >out_a \
+ || skip_ "failed to set xattr of file"
+getfattr -d a >out_a || skip_ "failed to get xattr of file"
+grep -F "$xattr_pair" out_a \
+ || skip_ "failed to set xattr of file"
+
+
+# cp should not preserve xattr by default
+cp a b || fail=1
+getfattr -d b >out_b || skip_ "failed to get xattr of file"
+grep -F "$xattr_pair" out_b && fail=1
+
+# test if --preserve=xattr option works
+cp --preserve=xattr a b || fail=1
+getfattr -d b >out_b || skip_ "failed to get xattr of file"
+grep -F "$xattr_pair" out_b || fail=1
+
+# test if --preserve=all option works
+cp --preserve=all a c || fail=1
+getfattr -d c >out_c || skip_ "failed to get xattr of file"
+grep -F "$xattr_pair" out_c || fail=1
+
+# cp's -a option must produce no diagnostics.
+cp -a a d 2>err && { compare /dev/null err || fail=1; }
+getfattr -d d >out_d || skip_ "failed to get xattr of file"
+grep -F "$xattr_pair" out_d || fail=1
+
+# test if --preserve=xattr works even for files without write access
+chmod a-w a || framework_failure_
+rm -f e
+cp --preserve=xattr a e || fail=1
+getfattr -d e >out_e || skip_ "failed to get xattr of file"
+grep -F "$xattr_pair" out_e || fail=1
+
+# Ensure that permission bits are preserved, too.
+src_perm=$(stat --format=%a a)
+dst_perm=$(stat --format=%a e)
+test "$dst_perm" = "$src_perm" || fail=1
+
+chmod u+w a || framework_failure_
+
+rm b || framework_failure_
+
+# install should never preserve xattr
+ginstall a b || fail=1
+getfattr -d b >out_b || skip_ "failed to get xattr of file"
+grep -F "$xattr_pair" out_b && fail=1
+
+# mv should preserve xattr when renaming within a file system.
+# This is implicitly done by rename () and doesn't need explicit
+# xattr support in mv.
+mv a b || fail=1
+getfattr -d b >out_b || skip_ "failed to get xattr of file"
+grep -F "$xattr_pair" out_b || cat >&2 <<EOF
+=================================================================
+$0: WARNING!!!
+rename () does not preserve extended attributes
+=================================================================
+EOF
+
+# try to set user xattr on file on other partition
+test_mv=1
+touch "$b_other" || framework_failure_
+setfattr -n "$xattr_name" -v "$xattr_value" "$b_other" >out_a \
+ || test_mv=0
+getfattr -d "$b_other" >out_b || test_mv=0
+grep -F "$xattr_pair" out_b || test_mv=0
+rm -f "$b_other" || framework_failure_
+
+if test $test_mv -eq 1; then
+ # mv should preserve xattr when copying content from one partition to another
+ mv b "$b_other" || fail=1
+ getfattr -d "$b_other" >out_b ||
+ skip_ "failed to get xattr of file"
+ grep -F "$xattr_pair" out_b || fail=1
+else
+ cat >&2 <<EOF
+=================================================================
+$0: WARNING!!!
+failed to set xattr of file $b_other
+=================================================================
+EOF
+fi
+
+Exit $fail
diff --git a/tests/misc/xstrtol.pl b/tests/misc/xstrtol.pl
new file mode 100755
index 0000000..fb066fe
--- /dev/null
+++ b/tests/misc/xstrtol.pl
@@ -0,0 +1,49 @@
+#!/usr/bin/perl
+# exercise xstrtol's diagnostics via pr
+
+# Copyright (C) 2007-2016 Free Software Foundation, Inc.
+
+# This program is free software: you can redistribute it and/or modify
+# it under the terms of the GNU General Public License as published by
+# the Free Software Foundation, either version 3 of the License, or
+# (at your option) any later version.
+
+# This program is distributed in the hope that it will be useful,
+# but WITHOUT ANY WARRANTY; without even the implied warranty of
+# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
+# GNU General Public License for more details.
+
+# You should have received a copy of the GNU General Public License
+# along with this program. If not, see <http://www.gnu.org/licenses/>.
+
+use strict;
+
+(my $ME = $0) =~ s|.*/||;
+
+# Turn off localization of executable's output.
+@ENV{qw(LANGUAGE LANG LC_ALL)} = ('C') x 3;
+
+my $prog = 'pr';
+my $too_big = '9' x 81; # Big enough to overflow a 256-bit integer.
+my @Tests =
+ (
+ # test-name, [option, option, ...] {OUT=>"expected-output"}
+
+ ['inval-suffix', "--pages=${too_big}h", {EXIT => 1},
+ {ERR=>"$prog: invalid suffix in --pages argument '${too_big}h'\n"}],
+
+ ['too-big', "--pages=$too_big", {EXIT => 1},
+ {ERR=>"$prog: --pages argument '$too_big' too large\n"}],
+
+ ['simply-inval', "--pages=x", {EXIT => 1},
+ {ERR=>"$prog: invalid --pages argument 'x'\n"}],
+
+ ['inv-pg-range', "--pages=9x", {EXIT => 1},
+ {ERR=>"$prog: invalid page range '9x'\n"}],
+ );
+
+my $save_temps = $ENV{DEBUG};
+my $verbose = $ENV{VERBOSE};
+
+my $fail = run_tests ($ME, $prog, \@Tests, $save_temps, $verbose);
+exit $fail;
diff --git a/tests/misc/yes.sh b/tests/misc/yes.sh
new file mode 100755
index 0000000..1371593
--- /dev/null
+++ b/tests/misc/yes.sh
@@ -0,0 +1,43 @@
+#!/bin/sh
+# Validate yes buffer handling
+
+# Copyright (C) 2015-2016 Free Software Foundation, Inc.
+
+# This program is free software: you can redistribute it and/or modify
+# it under the terms of the GNU General Public License as published by
+# the Free Software Foundation, either version 3 of the License, or
+# (at your option) any later version.
+
+# This program is distributed in the hope that it will be useful,
+# but WITHOUT ANY WARRANTY; without even the implied warranty of
+# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
+# GNU General Public License for more details.
+
+# You should have received a copy of the GNU General Public License
+# along with this program. If not, see <http://www.gnu.org/licenses/>.
+
+. "${srcdir=.}/tests/init.sh"; path_prepend_ ./src
+print_ver_ yes
+
+# Check various single item sizes, with the most important
+# size being BUFSIZ used for the local buffer to yes(1).
+# Note a \n is added, so actual sizes required internally
+# are 1 more than the size used here.
+for size in 1 1999 4095 4096 8191 8192 16383 16384; do
+ printf "%${size}s\n" '' > out.1
+ yes "$(printf %${size}s '')" | head -n2 | uniq > out.2
+ compare out.1 out.2 || fail=1
+done
+
+# Check the many small items case,
+# both fitting and overflowing the internal buffer
+external=env
+if external true $(seq 4000); then
+ for i in 100 4000; do
+ seq $i | paste -s -d ' ' | sed p > out.1
+ yes $(seq $i) | head -n2 > out.2
+ compare out.1 out.2 || fail=1
+ done
+fi
+
+Exit $fail
diff --git a/tests/mk-script b/tests/mk-script
deleted file mode 100755
index d3de016..0000000
--- a/tests/mk-script
+++ /dev/null
@@ -1,382 +0,0 @@
-#! /usr/bin/perl -w
-# -*- perl -*-
-# Make test scripts.
-
-# Copyright (C) 1998, 2000, 2001, 2002, 2003, 2005 Free Software
-# Foundation, Inc.
-
-# This program is free software; you can redistribute it and/or modify
-# it under the terms of the GNU General Public License as published by
-# the Free Software Foundation; either version 2 of the License, or
-# (at your option) any later version.
-
-# This program is distributed in the hope that it will be useful,
-# but WITHOUT ANY WARRANTY; without even the implied warranty of
-# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
-# GNU General Public License for more details.
-
-# You should have received a copy of the GNU General Public License
-# along with this program; if not, write to the Free Software
-# Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA
-# 02110-1301, USA.
-
-my $In = '.I';
-my $Out = '.O';
-my $Exp = '.X';
-my $Err = '.E';
-
-require 5.002;
-use strict;
-use POSIX qw (assert);
-
-(my $ME = $0) =~ s|.*/||;
-
-BEGIN { push @INC, '.' if '.' ne '.'; }
-use Test;
-
-my $srcdir = shift;
-
-sub validate
-{
- my %seen;
- my %seen_8dot3;
-
- my $bad_test_name;
- my $test_vector;
- foreach $test_vector (Test::test_vector ())
- {
- my ($test_name, $flags, $in_spec, $expected, $e_ret_code, $rest) =
- @$test_vector;
- die "$0: wrong number of elements in test $test_name\n"
- if (!defined $e_ret_code || defined $rest);
- assert (!ref $test_name);
- assert (!ref $flags);
- assert (!ref $e_ret_code);
-
- die "$0: duplicate test name \`$test_name'\n"
- if (defined $seen{$test_name});
- $seen{$test_name} = 1;
-
- if (0)
- {
- my $t8 = lc substr $test_name, 0, 8;
- if ($seen_8dot3{$t8})
- {
- warn "$ME: 8.3 test name conflict: "
- . "$test_name, $seen_8dot3{$t8}\n";
- $bad_test_name = 1;
- }
- $seen_8dot3{$t8} = $test_name;
- }
- }
-
- $bad_test_name
- and exit 1;
-}
-
-# Given a spec for the input file(s) or expected output file of a single
-# test, create a file for any string. A file is created for each literal
-# string -- not for named files. Whether a perl `string' is treated as
-# a string to be put in a file for a test or the name of an existing file
-# depends on how many references have to be traversed to get from
-# the top level variable to the actual string literal.
-# If $SPEC is a literal Perl string (not a reference), then treat $SPEC
-# as the contents of a file.
-# If $SPEC is a hash reference, then there are no inputs.
-# If $SPEC is an array reference, consider each element of the array.
-# If the element is a string reference, treat the string as the name of
-# an existing file. Otherwise, the element must be a string and is treated
-# just like a scalar $SPEC. When a file is created, its name is derived
-# from the name TEST_NAME of the corresponding test and the TYPE of file.
-# E.g., the inputs for test `3a' would be named t3a.in1 and t3a.in2, and
-# the expected output for test `7c' would be named t7c.exp.
-#
-# Also, return two lists of file names:
-# - maintainer-generated files -- names of files created by this function
-# - files named explicitly in Test.pm
-
-sub spec_to_list ($$$)
-{
- my ($spec, $test_name, $type) = @_;
-
- assert ($type eq $In || $type eq $Exp);
-
- my @explicit_file;
- my @maint_gen_file;
- my @content_string;
-
- # If SPEC is a hash reference, return empty lists.
- if (ref $spec eq 'HASH')
- {
- assert ($type eq $In);
- return {
- EXPLICIT => \@explicit_file,
- MAINT_GEN => \@maint_gen_file
- };
- }
-
- if (ref $spec)
- {
- assert (ref $spec eq 'ARRAY' || ref $spec eq 'HASH');
- my $file_spec;
- foreach $file_spec (@$spec)
- {
- # A file spec may be a string or a reference.
- # If it's a string, that string is to be the contents of a
- # generated (by this script) file with name derived from the
- # name of this test.
- # If it's a reference, then it must be the name of an existing
- # file.
- if (ref $file_spec)
- {
- my $r = ref $file_spec;
- die "bad test: $test_name is $r\n"
- if ref $file_spec ne 'SCALAR';
- my $existing_file = $$file_spec;
- # FIXME: make sure $existing_file exists somewhere.
- push (@explicit_file, $existing_file);
- }
- else
- {
- push (@content_string, $file_spec);
- }
- }
- }
- else
- {
- push (@content_string, $spec);
- }
-
- my $i = 1;
- my $file_contents;
- foreach $file_contents (@content_string)
- {
- my $suffix = (@content_string > 1 ? $i : '');
- my $maint_gen_file = "$test_name$type$suffix";
- push (@maint_gen_file, $maint_gen_file);
- open (F, ">$srcdir/$maint_gen_file") || die "$0: $maint_gen_file: $!\n";
- print F $file_contents;
- close (F) || die "$0: $maint_gen_file: $!\n";
- ++$i;
- }
-
- my $n_fail = 0;
- foreach $i (@explicit_file, @maint_gen_file)
- {
- my $max_len = 14;
- if (length ($i) > $max_len)
- {
- warn "$0: $i: generated test file name would be longer than"
- . " $max_len characters\n";
- ++$n_fail;
- }
- }
- exit (1) if $n_fail;
-
- my %h = (
- EXPLICIT => \@explicit_file,
- MAINT_GEN => \@maint_gen_file
- );
-
- return \%h;
-}
-
-sub wrap
-{
- my ($preferred_line_len, @tok) = @_;
- assert ($preferred_line_len > 0);
- my @lines;
- my $line = '';
- my $word;
- foreach $word (@tok)
- {
- if ($line && length ($line) + 1 + length ($word) > $preferred_line_len)
- {
- push (@lines, $line);
- $line = $word;
- next;
- }
- my $sp = ($line ? ' ' : '');
- $line .= "$sp$word";
- }
- push (@lines, $line);
- return @lines;
-}
-
-# ~~~~~~~ main ~~~~~~~~
-{
- $| = 1;
-
- die "Usage: $0: srcdir program-name\n" if @ARGV != 1;
-
- my $xx = $ARGV[0];
-
- if ($xx eq '--list')
- {
- validate ();
- # Output three lists of files:
- # EXPLICIT -- file names specified in Test.pm
- # MAINT_GEN -- maintainer-generated files
- # RUN_GEN -- files created when running the tests
- my $test_vector;
- my @exp;
- my @maint;
- my @run;
- foreach $test_vector (Test::test_vector ())
- {
- my ($test_name, $flags, $in_spec, $exp_spec, $e_ret_code)
- = @$test_vector;
-
- push (@run, ("$test_name$Out", "$test_name$Err"));
-
- my $in = spec_to_list ($in_spec, $test_name, $In);
- push (@exp, @{$in->{EXPLICIT}});
- push (@maint, @{$in->{MAINT_GEN}});
-
- my $e = spec_to_list ($exp_spec, $test_name, $Exp);
- push (@exp, @{$e->{EXPLICIT}});
- push (@maint, @{$e->{MAINT_GEN}});
- }
-
- # The list of explicitly mentioned files may contain duplicates.
- # Eliminated any duplicates.
- my %e = map {$_ => 1} @exp;
- @exp = sort keys %e;
-
- my $len = 77;
- print join (" \\\n", wrap ($len, 'explicit =', @exp)), "\n";
- print join (" \\\n", wrap ($len, 'maint_gen =', @maint)), "\n";
- print join (" \\\n", wrap ($len, 'run_gen =', @run)), "\n";
-
- exit 0;
- }
-
- print <<EOF1;
-#! /bin/sh
-# This script was generated automatically by $ME.
-case \$# in
- 0\) xx='$xx';;
- *\) xx="\$1";;
-esac
-test "\$VERBOSE" && echo=echo || echo=:
-\$echo testing program: \$xx
-errors=0
-test "\$srcdir" || srcdir=.
-test "\$VERBOSE" && \$xx --version 2> /dev/null
-
-# Make sure we get English translations.
-LANGUAGE=C
-export LANGUAGE
-LC_ALL=C
-export LC_ALL
-LANG=C
-export LANG
-
-EOF1
-
- validate ();
-
- my $n_tests = 0;
- my $test_vector;
- foreach $test_vector (Test::test_vector ())
- {
- my ($test_name, $flags, $in_spec, $exp_spec, $e_ret_code)
- = @$test_vector;
-
- my $in = spec_to_list ($in_spec, $test_name, $In);
-
- my @srcdir_rel_in_file;
- my $f;
- foreach $f (@{$in->{EXPLICIT}}, @{$in->{MAINT_GEN}})
- {
- push (@srcdir_rel_in_file, "\$srcdir/$f");
- }
-
- my $exp = spec_to_list ($exp_spec, $test_name, $Exp);
- my @all = (@{$exp->{EXPLICIT}}, @{$exp->{MAINT_GEN}});
- assert (@all == 1);
- my $exp_name = "\$srcdir/$all[0]";
- my $out = "$test_name$Out";
- my $err_output = "$test_name$Err";
-
- my %valid_via = map {$_ => 1} qw (REDIR FILE PIPE);
- my %via_msg_string = (REDIR => '<', FILE => 'F', PIPE => '|');
-
- # Inhibit warnings about `used only once'.
- die if 0 && $Test::input_via{$test_name} && $Test::input_via_default;
- die if 0 && $Test::env{$test_name} && $Test::env_default;
-
- my $vias = $Test::input_via{$test_name} || $Test::input_via_default
- || {FILE => 0};
-
- my $n_vias = keys %$vias;
- my $via;
- foreach $via (sort keys %$vias)
- {
- my $cmd;
- my $val = $vias->{$via};
- my $via_msg = ($n_vias == 1 ? '' : $via_msg_string{$via});
- my $file_args = join (' ', @srcdir_rel_in_file);
-
- my $env = $Test::env{$test_name} || $Test::env_default || [''];
- @$env == 1
- or die "$ME: unexpected environment: @$env\n";
- $env = $env->[0];
- my $env_prefix = ($env ? "$env " : '');
-
- if ($via eq 'FILE')
- {
- $cmd = "$env_prefix\$xx $flags $file_args > $out 2> $err_output";
- }
- elsif ($via eq 'PIPE')
- {
- $via_msg = "|$val" if $val;
- $val ||= 'cat';
- $cmd = "$val $file_args | $env_prefix\$xx $flags"
- . " > $out 2> $err_output";
- }
- else
- {
- assert (@srcdir_rel_in_file == 1);
- $cmd = "$env_prefix\$xx $flags"
- . " < $file_args > $out 2> $err_output";
- }
-
- my $e = $env;
- my $sep = ($via_msg && $e ? ':' : '');
- my $msg = "$e$sep$via_msg";
- $msg = "($msg)" if $msg;
- my $t_name = "$test_name$msg";
- ++$n_tests;
- print <<EOF;
-$cmd
-code=\$?
-if test \$code != $e_ret_code; then
- \$echo "Test $t_name failed: \$xx return code \$code differs from expected value $e_ret_code" 1>&2
- errors=`expr \$errors + 1`
-else
- cmp $out $exp_name > /dev/null 2>&1
- case \$? in
- 0) if test "\$VERBOSE"; then \$echo "passed $t_name"; fi;;
- 1) \$echo "Test $t_name failed: files $out and $exp_name differ" 1>&2
- (diff -c $out $exp_name) 2> /dev/null
- errors=`expr \$errors + 1`;;
- 2) \$echo "Test $t_name may have failed." 1>&2
- \$echo The command \"cmp $out $exp_name\" failed. 1>&2
- errors=`expr \$errors + 1`;;
- esac
-fi
-test -s $err_output || rm -f $err_output
-EOF
- }
- }
- print <<EOF3
-if test \$errors = 0; then
- \$echo Passed all $n_tests tests. 1>&2
-else
- \$echo Failed \$errors tests. 1>&2
-fi
-test \$errors = 0 || errors=1
-exit \$errors
-EOF3
-}
diff --git a/tests/mkdir/Makefile.am b/tests/mkdir/Makefile.am
deleted file mode 100644
index fc2ab77..0000000
--- a/tests/mkdir/Makefile.am
+++ /dev/null
@@ -1,9 +0,0 @@
-## Process this file with automake to produce Makefile.in -*-Makefile-*-.
-TESTS = \
- p-thru-slink \
- p-3 p-1 p-2 p-v special-1 perm parents t-slash p-slashdot
-EXTRA_DIST = $(TESTS)
-TESTS_ENVIRONMENT = \
- srcdir=$(srcdir) \
- CU_TEST_NAME=`basename $(abs_srcdir)`,$$tst \
- PATH="$(VG_PATH_PREFIX)`pwd`/../../src$(PATH_SEPARATOR)$$PATH"
diff --git a/tests/mkdir/Makefile.in b/tests/mkdir/Makefile.in
deleted file mode 100644
index 78efc69..0000000
--- a/tests/mkdir/Makefile.in
+++ /dev/null
@@ -1,720 +0,0 @@
-# Makefile.in generated by automake 1.10 from Makefile.am.
-# @configure_input@
-
-# Copyright (C) 1994, 1995, 1996, 1997, 1998, 1999, 2000, 2001, 2002,
-# 2003, 2004, 2005, 2006 Free Software Foundation, Inc.
-# This Makefile.in is free software; the Free Software Foundation
-# gives unlimited permission to copy and/or distribute it,
-# with or without modifications, as long as this notice is preserved.
-
-# This program is distributed in the hope that it will be useful,
-# but WITHOUT ANY WARRANTY, to the extent permitted by law; without
-# even the implied warranty of MERCHANTABILITY or FITNESS FOR A
-# PARTICULAR PURPOSE.
-
-@SET_MAKE@
-VPATH = @srcdir@
-pkgdatadir = $(datadir)/@PACKAGE@
-pkglibdir = $(libdir)/@PACKAGE@
-pkgincludedir = $(includedir)/@PACKAGE@
-am__cd = CDPATH="$${ZSH_VERSION+.}$(PATH_SEPARATOR)" && cd
-install_sh_DATA = $(install_sh) -c -m 644
-install_sh_PROGRAM = $(install_sh) -c
-install_sh_SCRIPT = $(install_sh) -c
-INSTALL_HEADER = $(INSTALL_DATA)
-transform = $(program_transform_name)
-NORMAL_INSTALL = :
-PRE_INSTALL = :
-POST_INSTALL = :
-NORMAL_UNINSTALL = :
-PRE_UNINSTALL = :
-POST_UNINSTALL = :
-build_triplet = @build@
-host_triplet = @host@
-subdir = tests/mkdir
-DIST_COMMON = $(srcdir)/Makefile.am $(srcdir)/Makefile.in
-ACLOCAL_M4 = $(top_srcdir)/aclocal.m4
-am__aclocal_m4_deps = $(top_srcdir)/m4/absolute-header.m4 \
- $(top_srcdir)/m4/acl.m4 $(top_srcdir)/m4/alloca.m4 \
- $(top_srcdir)/m4/allocsa.m4 $(top_srcdir)/m4/argmatch.m4 \
- $(top_srcdir)/m4/arpa_inet_h.m4 $(top_srcdir)/m4/assert.m4 \
- $(top_srcdir)/m4/atexit.m4 $(top_srcdir)/m4/autobuild.m4 \
- $(top_srcdir)/m4/backupfile.m4 $(top_srcdir)/m4/base64.m4 \
- $(top_srcdir)/m4/bison.m4 $(top_srcdir)/m4/boottime.m4 \
- $(top_srcdir)/m4/c-strtod.m4 $(top_srcdir)/m4/calloc.m4 \
- $(top_srcdir)/m4/canon-host.m4 \
- $(top_srcdir)/m4/canonicalize.m4 \
- $(top_srcdir)/m4/chdir-long.m4 $(top_srcdir)/m4/check-decl.m4 \
- $(top_srcdir)/m4/chown.m4 $(top_srcdir)/m4/clock_time.m4 \
- $(top_srcdir)/m4/cloexec.m4 $(top_srcdir)/m4/close-stream.m4 \
- $(top_srcdir)/m4/closeout.m4 $(top_srcdir)/m4/codeset.m4 \
- $(top_srcdir)/m4/config-h.m4 $(top_srcdir)/m4/cycle-check.m4 \
- $(top_srcdir)/m4/d-ino.m4 $(top_srcdir)/m4/d-type.m4 \
- $(top_srcdir)/m4/dirfd.m4 $(top_srcdir)/m4/dirname.m4 \
- $(top_srcdir)/m4/dos.m4 $(top_srcdir)/m4/double-slash-root.m4 \
- $(top_srcdir)/m4/dup2.m4 $(top_srcdir)/m4/eealloc.m4 \
- $(top_srcdir)/m4/eoverflow.m4 $(top_srcdir)/m4/error.m4 \
- $(top_srcdir)/m4/euidaccess-stat.m4 \
- $(top_srcdir)/m4/euidaccess.m4 $(top_srcdir)/m4/exclude.m4 \
- $(top_srcdir)/m4/exitfail.m4 $(top_srcdir)/m4/extensions.m4 \
- $(top_srcdir)/m4/fchdir.m4 $(top_srcdir)/m4/fcntl-safer.m4 \
- $(top_srcdir)/m4/fcntl_h.m4 $(top_srcdir)/m4/fd-reopen.m4 \
- $(top_srcdir)/m4/file-type.m4 $(top_srcdir)/m4/fileblocks.m4 \
- $(top_srcdir)/m4/filemode.m4 $(top_srcdir)/m4/filenamecat.m4 \
- $(top_srcdir)/m4/flexmember.m4 $(top_srcdir)/m4/fnmatch.m4 \
- $(top_srcdir)/m4/fpending.m4 $(top_srcdir)/m4/fprintftime.m4 \
- $(top_srcdir)/m4/free.m4 $(top_srcdir)/m4/fstypename.m4 \
- $(top_srcdir)/m4/fsusage.m4 $(top_srcdir)/m4/ftruncate.m4 \
- $(top_srcdir)/m4/fts.m4 $(top_srcdir)/m4/getaddrinfo.m4 \
- $(top_srcdir)/m4/getcwd-abort-bug.m4 \
- $(top_srcdir)/m4/getcwd-path-max.m4 $(top_srcdir)/m4/getcwd.m4 \
- $(top_srcdir)/m4/getdate.m4 $(top_srcdir)/m4/getdelim.m4 \
- $(top_srcdir)/m4/getgroups.m4 $(top_srcdir)/m4/gethostname.m4 \
- $(top_srcdir)/m4/gethrxtime.m4 $(top_srcdir)/m4/getline.m4 \
- $(top_srcdir)/m4/getloadavg.m4 $(top_srcdir)/m4/getndelim2.m4 \
- $(top_srcdir)/m4/getopt.m4 $(top_srcdir)/m4/getpagesize.m4 \
- $(top_srcdir)/m4/getpass.m4 $(top_srcdir)/m4/gettext.m4 \
- $(top_srcdir)/m4/gettime.m4 $(top_srcdir)/m4/gettimeofday.m4 \
- $(top_srcdir)/m4/getugroups.m4 \
- $(top_srcdir)/m4/getusershell.m4 $(top_srcdir)/m4/glibc21.m4 \
- $(top_srcdir)/m4/gnulib-common.m4 \
- $(top_srcdir)/m4/gnulib-comp.m4 \
- $(top_srcdir)/m4/group-member.m4 \
- $(top_srcdir)/m4/hard-locale.m4 $(top_srcdir)/m4/hash.m4 \
- $(top_srcdir)/m4/host-os.m4 $(top_srcdir)/m4/human.m4 \
- $(top_srcdir)/m4/i-ring.m4 $(top_srcdir)/m4/iconv.m4 \
- $(top_srcdir)/m4/idcache.m4 $(top_srcdir)/m4/inet_ntop.m4 \
- $(top_srcdir)/m4/inline.m4 $(top_srcdir)/m4/intmax_t.m4 \
- $(top_srcdir)/m4/inttostr.m4 $(top_srcdir)/m4/inttypes-pri.m4 \
- $(top_srcdir)/m4/inttypes.m4 $(top_srcdir)/m4/inttypes_h.m4 \
- $(top_srcdir)/m4/isapipe.m4 $(top_srcdir)/m4/jm-macros.m4 \
- $(top_srcdir)/m4/jm-winsz1.m4 $(top_srcdir)/m4/jm-winsz2.m4 \
- $(top_srcdir)/m4/lchmod.m4 $(top_srcdir)/m4/lchown.m4 \
- $(top_srcdir)/m4/lib-check.m4 $(top_srcdir)/m4/lib-ignore.m4 \
- $(top_srcdir)/m4/lib-ld.m4 $(top_srcdir)/m4/lib-link.m4 \
- $(top_srcdir)/m4/lib-prefix.m4 $(top_srcdir)/m4/link-follow.m4 \
- $(top_srcdir)/m4/localcharset.m4 \
- $(top_srcdir)/m4/long-options.m4 \
- $(top_srcdir)/m4/longdouble.m4 $(top_srcdir)/m4/longlong.m4 \
- $(top_srcdir)/m4/ls-mntd-fs.m4 $(top_srcdir)/m4/lstat.m4 \
- $(top_srcdir)/m4/mbchar.m4 $(top_srcdir)/m4/mbiter.m4 \
- $(top_srcdir)/m4/mbrtowc.m4 $(top_srcdir)/m4/mbscasecmp.m4 \
- $(top_srcdir)/m4/mbstate_t.m4 $(top_srcdir)/m4/mbswidth.m4 \
- $(top_srcdir)/m4/md5.m4 $(top_srcdir)/m4/memcasecmp.m4 \
- $(top_srcdir)/m4/memchr.m4 $(top_srcdir)/m4/memcmp.m4 \
- $(top_srcdir)/m4/memcoll.m4 $(top_srcdir)/m4/memcpy.m4 \
- $(top_srcdir)/m4/memmove.m4 $(top_srcdir)/m4/mempcpy.m4 \
- $(top_srcdir)/m4/memrchr.m4 $(top_srcdir)/m4/memset.m4 \
- $(top_srcdir)/m4/memxfrm.m4 $(top_srcdir)/m4/mkancesdirs.m4 \
- $(top_srcdir)/m4/mkdir-p.m4 $(top_srcdir)/m4/mkdir-slash.m4 \
- $(top_srcdir)/m4/mkstemp.m4 $(top_srcdir)/m4/mktime.m4 \
- $(top_srcdir)/m4/modechange.m4 $(top_srcdir)/m4/mountlist.m4 \
- $(top_srcdir)/m4/mpsort.m4 $(top_srcdir)/m4/nanosleep.m4 \
- $(top_srcdir)/m4/netinet_in_h.m4 $(top_srcdir)/m4/nls.m4 \
- $(top_srcdir)/m4/openat.m4 $(top_srcdir)/m4/pathmax.m4 \
- $(top_srcdir)/m4/perl.m4 $(top_srcdir)/m4/physmem.m4 \
- $(top_srcdir)/m4/po.m4 $(top_srcdir)/m4/posixtm.m4 \
- $(top_srcdir)/m4/posixver.m4 $(top_srcdir)/m4/prereq.m4 \
- $(top_srcdir)/m4/progtest.m4 $(top_srcdir)/m4/putenv.m4 \
- $(top_srcdir)/m4/quote.m4 $(top_srcdir)/m4/quotearg.m4 \
- $(top_srcdir)/m4/randint.m4 $(top_srcdir)/m4/randperm.m4 \
- $(top_srcdir)/m4/randread.m4 $(top_srcdir)/m4/readlink.m4 \
- $(top_srcdir)/m4/readtokens.m4 $(top_srcdir)/m4/readutmp.m4 \
- $(top_srcdir)/m4/regex.m4 \
- $(top_srcdir)/m4/rename-dest-slash.m4 \
- $(top_srcdir)/m4/rename.m4 $(top_srcdir)/m4/rmdir-errno.m4 \
- $(top_srcdir)/m4/rmdir.m4 $(top_srcdir)/m4/root-dev-ino.m4 \
- $(top_srcdir)/m4/rpmatch.m4 $(top_srcdir)/m4/safe-read.m4 \
- $(top_srcdir)/m4/safe-write.m4 $(top_srcdir)/m4/same.m4 \
- $(top_srcdir)/m4/save-cwd.m4 $(top_srcdir)/m4/savedir.m4 \
- $(top_srcdir)/m4/savewd.m4 $(top_srcdir)/m4/setenv.m4 \
- $(top_srcdir)/m4/settime.m4 $(top_srcdir)/m4/sha1.m4 \
- $(top_srcdir)/m4/sha256.m4 $(top_srcdir)/m4/sha512.m4 \
- $(top_srcdir)/m4/sig2str.m4 $(top_srcdir)/m4/snprintf.m4 \
- $(top_srcdir)/m4/socklen.m4 $(top_srcdir)/m4/sockpfaf.m4 \
- $(top_srcdir)/m4/ssize_t.m4 $(top_srcdir)/m4/st_dm_mode.m4 \
- $(top_srcdir)/m4/stat-prog.m4 $(top_srcdir)/m4/stat-time.m4 \
- $(top_srcdir)/m4/stdarg.m4 $(top_srcdir)/m4/stdbool.m4 \
- $(top_srcdir)/m4/stdint.m4 $(top_srcdir)/m4/stdint_h.m4 \
- $(top_srcdir)/m4/stdio-safer.m4 $(top_srcdir)/m4/stdio_h.m4 \
- $(top_srcdir)/m4/stdlib-safer.m4 $(top_srcdir)/m4/stdlib_h.m4 \
- $(top_srcdir)/m4/stpcpy.m4 $(top_srcdir)/m4/strcspn.m4 \
- $(top_srcdir)/m4/strdup.m4 $(top_srcdir)/m4/strftime.m4 \
- $(top_srcdir)/m4/string_h.m4 $(top_srcdir)/m4/strndup.m4 \
- $(top_srcdir)/m4/strnlen.m4 $(top_srcdir)/m4/strnumcmp.m4 \
- $(top_srcdir)/m4/strpbrk.m4 $(top_srcdir)/m4/strtod.m4 \
- $(top_srcdir)/m4/strtoimax.m4 $(top_srcdir)/m4/strtol.m4 \
- $(top_srcdir)/m4/strtoll.m4 $(top_srcdir)/m4/strtoul.m4 \
- $(top_srcdir)/m4/strtoull.m4 $(top_srcdir)/m4/strtoumax.m4 \
- $(top_srcdir)/m4/strverscmp.m4 \
- $(top_srcdir)/m4/sys_socket_h.m4 \
- $(top_srcdir)/m4/sys_stat_h.m4 $(top_srcdir)/m4/sys_time_h.m4 \
- $(top_srcdir)/m4/tempname.m4 $(top_srcdir)/m4/time_h.m4 \
- $(top_srcdir)/m4/time_r.m4 $(top_srcdir)/m4/timespec.m4 \
- $(top_srcdir)/m4/tm_gmtoff.m4 $(top_srcdir)/m4/tzset.m4 \
- $(top_srcdir)/m4/unicodeio.m4 $(top_srcdir)/m4/unistd-safer.m4 \
- $(top_srcdir)/m4/unistd_h.m4 $(top_srcdir)/m4/unlink-busy.m4 \
- $(top_srcdir)/m4/unlinkdir.m4 $(top_srcdir)/m4/unlocked-io.m4 \
- $(top_srcdir)/m4/uptime.m4 $(top_srcdir)/m4/userspec.m4 \
- $(top_srcdir)/m4/utimbuf.m4 $(top_srcdir)/m4/utime.m4 \
- $(top_srcdir)/m4/utimecmp.m4 $(top_srcdir)/m4/utimens.m4 \
- $(top_srcdir)/m4/utimes-null.m4 $(top_srcdir)/m4/utimes.m4 \
- $(top_srcdir)/m4/vasnprintf.m4 $(top_srcdir)/m4/vasprintf.m4 \
- $(top_srcdir)/m4/wchar.m4 $(top_srcdir)/m4/wchar_t.m4 \
- $(top_srcdir)/m4/wctype.m4 $(top_srcdir)/m4/wcwidth.m4 \
- $(top_srcdir)/m4/wint_t.m4 $(top_srcdir)/m4/xalloc.m4 \
- $(top_srcdir)/m4/xfts.m4 $(top_srcdir)/m4/xgetcwd.m4 \
- $(top_srcdir)/m4/xnanosleep.m4 $(top_srcdir)/m4/xstrndup.m4 \
- $(top_srcdir)/m4/xstrtod.m4 $(top_srcdir)/m4/xstrtol.m4 \
- $(top_srcdir)/m4/yesno.m4 $(top_srcdir)/configure.ac
-am__configure_deps = $(am__aclocal_m4_deps) $(CONFIGURE_DEPENDENCIES) \
- $(ACLOCAL_M4)
-mkinstalldirs = $(install_sh) -d
-CONFIG_HEADER = $(top_builddir)/lib/config.h
-CONFIG_CLEAN_FILES =
-SOURCES =
-DIST_SOURCES =
-DISTFILES = $(DIST_COMMON) $(DIST_SOURCES) $(TEXINFOS) $(EXTRA_DIST)
-ABSOLUTE_DIRENT_H = @ABSOLUTE_DIRENT_H@
-ABSOLUTE_FCNTL_H = @ABSOLUTE_FCNTL_H@
-ABSOLUTE_INTTYPES_H = @ABSOLUTE_INTTYPES_H@
-ABSOLUTE_NETINET_IN_H = @ABSOLUTE_NETINET_IN_H@
-ABSOLUTE_STDINT_H = @ABSOLUTE_STDINT_H@
-ABSOLUTE_STDIO_H = @ABSOLUTE_STDIO_H@
-ABSOLUTE_STDLIB_H = @ABSOLUTE_STDLIB_H@
-ABSOLUTE_STRING_H = @ABSOLUTE_STRING_H@
-ABSOLUTE_SYS_SOCKET_H = @ABSOLUTE_SYS_SOCKET_H@
-ABSOLUTE_SYS_STAT_H = @ABSOLUTE_SYS_STAT_H@
-ABSOLUTE_SYS_TIME_H = @ABSOLUTE_SYS_TIME_H@
-ABSOLUTE_TIME_H = @ABSOLUTE_TIME_H@
-ABSOLUTE_UNISTD_H = @ABSOLUTE_UNISTD_H@
-ABSOLUTE_WCHAR_H = @ABSOLUTE_WCHAR_H@
-ABSOLUTE_WCTYPE_H = @ABSOLUTE_WCTYPE_H@
-ACLOCAL = @ACLOCAL@
-ALLOCA = @ALLOCA@
-ALLOCA_H = @ALLOCA_H@
-AMTAR = @AMTAR@
-ARPA_INET_H = @ARPA_INET_H@
-AUTOCONF = @AUTOCONF@
-AUTOHEADER = @AUTOHEADER@
-AUTOMAKE = @AUTOMAKE@
-AWK = @AWK@
-BITSIZEOF_PTRDIFF_T = @BITSIZEOF_PTRDIFF_T@
-BITSIZEOF_SIG_ATOMIC_T = @BITSIZEOF_SIG_ATOMIC_T@
-BITSIZEOF_SIZE_T = @BITSIZEOF_SIZE_T@
-BITSIZEOF_WCHAR_T = @BITSIZEOF_WCHAR_T@
-BITSIZEOF_WINT_T = @BITSIZEOF_WINT_T@
-CC = @CC@
-CCDEPMODE = @CCDEPMODE@
-CFLAGS = @CFLAGS@
-CPP = @CPP@
-CPPFLAGS = @CPPFLAGS@
-CYGPATH_W = @CYGPATH_W@
-DEFAULT_POSIX2_VERSION = @DEFAULT_POSIX2_VERSION@
-DEFS = @DEFS@
-DEPDIR = @DEPDIR@
-DF_PROG = @DF_PROG@
-DIRENT_H = @DIRENT_H@
-ECHO_C = @ECHO_C@
-ECHO_N = @ECHO_N@
-ECHO_T = @ECHO_T@
-EGREP = @EGREP@
-EOVERFLOW = @EOVERFLOW@
-EXEEXT = @EXEEXT@
-FCNTL_H = @FCNTL_H@
-FNMATCH_H = @FNMATCH_H@
-GETLOADAVG_LIBS = @GETLOADAVG_LIBS@
-GETOPT_H = @GETOPT_H@
-GLIBC21 = @GLIBC21@
-GMSGFMT = @GMSGFMT@
-GMSGFMT_015 = @GMSGFMT_015@
-GNULIB_CHOWN = @GNULIB_CHOWN@
-GNULIB_DUP2 = @GNULIB_DUP2@
-GNULIB_FCHDIR = @GNULIB_FCHDIR@
-GNULIB_FPRINTF_POSIX = @GNULIB_FPRINTF_POSIX@
-GNULIB_FTRUNCATE = @GNULIB_FTRUNCATE@
-GNULIB_GETCWD = @GNULIB_GETCWD@
-GNULIB_GETLOGIN_R = @GNULIB_GETLOGIN_R@
-GNULIB_GETSUBOPT = @GNULIB_GETSUBOPT@
-GNULIB_IMAXABS = @GNULIB_IMAXABS@
-GNULIB_IMAXDIV = @GNULIB_IMAXDIV@
-GNULIB_MBSCASECMP = @GNULIB_MBSCASECMP@
-GNULIB_MBSCASESTR = @GNULIB_MBSCASESTR@
-GNULIB_MBSCHR = @GNULIB_MBSCHR@
-GNULIB_MBSCSPN = @GNULIB_MBSCSPN@
-GNULIB_MBSLEN = @GNULIB_MBSLEN@
-GNULIB_MBSNCASECMP = @GNULIB_MBSNCASECMP@
-GNULIB_MBSPBRK = @GNULIB_MBSPBRK@
-GNULIB_MBSPCASECMP = @GNULIB_MBSPCASECMP@
-GNULIB_MBSRCHR = @GNULIB_MBSRCHR@
-GNULIB_MBSSEP = @GNULIB_MBSSEP@
-GNULIB_MBSSPN = @GNULIB_MBSSPN@
-GNULIB_MBSSTR = @GNULIB_MBSSTR@
-GNULIB_MBSTOK_R = @GNULIB_MBSTOK_R@
-GNULIB_MEMMEM = @GNULIB_MEMMEM@
-GNULIB_MEMPCPY = @GNULIB_MEMPCPY@
-GNULIB_MEMRCHR = @GNULIB_MEMRCHR@
-GNULIB_MKDTEMP = @GNULIB_MKDTEMP@
-GNULIB_MKSTEMP = @GNULIB_MKSTEMP@
-GNULIB_PRINTF_POSIX = @GNULIB_PRINTF_POSIX@
-GNULIB_READLINK = @GNULIB_READLINK@
-GNULIB_SNPRINTF = @GNULIB_SNPRINTF@
-GNULIB_SPRINTF_POSIX = @GNULIB_SPRINTF_POSIX@
-GNULIB_STPCPY = @GNULIB_STPCPY@
-GNULIB_STPNCPY = @GNULIB_STPNCPY@
-GNULIB_STRCASESTR = @GNULIB_STRCASESTR@
-GNULIB_STRCHRNUL = @GNULIB_STRCHRNUL@
-GNULIB_STRDUP = @GNULIB_STRDUP@
-GNULIB_STRNDUP = @GNULIB_STRNDUP@
-GNULIB_STRNLEN = @GNULIB_STRNLEN@
-GNULIB_STRPBRK = @GNULIB_STRPBRK@
-GNULIB_STRSEP = @GNULIB_STRSEP@
-GNULIB_STRTOIMAX = @GNULIB_STRTOIMAX@
-GNULIB_STRTOK_R = @GNULIB_STRTOK_R@
-GNULIB_STRTOUMAX = @GNULIB_STRTOUMAX@
-GNULIB_VFPRINTF_POSIX = @GNULIB_VFPRINTF_POSIX@
-GNULIB_VPRINTF_POSIX = @GNULIB_VPRINTF_POSIX@
-GNULIB_VSNPRINTF = @GNULIB_VSNPRINTF@
-GNULIB_VSPRINTF_POSIX = @GNULIB_VSPRINTF_POSIX@
-GNU_PACKAGE = @GNU_PACKAGE@
-GREP = @GREP@
-HAVE_DECL_GETLOGIN_R = @HAVE_DECL_GETLOGIN_R@
-HAVE_DECL_IMAXABS = @HAVE_DECL_IMAXABS@
-HAVE_DECL_IMAXDIV = @HAVE_DECL_IMAXDIV@
-HAVE_DECL_MEMMEM = @HAVE_DECL_MEMMEM@
-HAVE_DECL_MEMRCHR = @HAVE_DECL_MEMRCHR@
-HAVE_DECL_SNPRINTF = @HAVE_DECL_SNPRINTF@
-HAVE_DECL_STRDUP = @HAVE_DECL_STRDUP@
-HAVE_DECL_STRNCASECMP = @HAVE_DECL_STRNCASECMP@
-HAVE_DECL_STRNDUP = @HAVE_DECL_STRNDUP@
-HAVE_DECL_STRNLEN = @HAVE_DECL_STRNLEN@
-HAVE_DECL_STRTOIMAX = @HAVE_DECL_STRTOIMAX@
-HAVE_DECL_STRTOK_R = @HAVE_DECL_STRTOK_R@
-HAVE_DECL_STRTOUMAX = @HAVE_DECL_STRTOUMAX@
-HAVE_DECL_VSNPRINTF = @HAVE_DECL_VSNPRINTF@
-HAVE_DUP2 = @HAVE_DUP2@
-HAVE_FTRUNCATE = @HAVE_FTRUNCATE@
-HAVE_GETSUBOPT = @HAVE_GETSUBOPT@
-HAVE_INTTYPES_H = @HAVE_INTTYPES_H@
-HAVE_LONG_LONG_INT = @HAVE_LONG_LONG_INT@
-HAVE_MEMPCPY = @HAVE_MEMPCPY@
-HAVE_MKDTEMP = @HAVE_MKDTEMP@
-HAVE_NETINET_IN_H = @HAVE_NETINET_IN_H@
-HAVE_READLINK = @HAVE_READLINK@
-HAVE_SIGNED_SIG_ATOMIC_T = @HAVE_SIGNED_SIG_ATOMIC_T@
-HAVE_SIGNED_WCHAR_T = @HAVE_SIGNED_WCHAR_T@
-HAVE_SIGNED_WINT_T = @HAVE_SIGNED_WINT_T@
-HAVE_STDINT_H = @HAVE_STDINT_H@
-HAVE_STPCPY = @HAVE_STPCPY@
-HAVE_STPNCPY = @HAVE_STPNCPY@
-HAVE_STRCASECMP = @HAVE_STRCASECMP@
-HAVE_STRCASESTR = @HAVE_STRCASESTR@
-HAVE_STRCHRNUL = @HAVE_STRCHRNUL@
-HAVE_STRNDUP = @HAVE_STRNDUP@
-HAVE_STRPBRK = @HAVE_STRPBRK@
-HAVE_STRSEP = @HAVE_STRSEP@
-HAVE_STRUCT_TIMEVAL = @HAVE_STRUCT_TIMEVAL@
-HAVE_SYS_BITYPES_H = @HAVE_SYS_BITYPES_H@
-HAVE_SYS_INTTYPES_H = @HAVE_SYS_INTTYPES_H@
-HAVE_SYS_SOCKET_H = @HAVE_SYS_SOCKET_H@
-HAVE_SYS_TIME_H = @HAVE_SYS_TIME_H@
-HAVE_SYS_TYPES_H = @HAVE_SYS_TYPES_H@
-HAVE_UNISTD_H = @HAVE_UNISTD_H@
-HAVE_UNSIGNED_LONG_LONG_INT = @HAVE_UNSIGNED_LONG_LONG_INT@
-HAVE_WCTYPE_H = @HAVE_WCTYPE_H@
-HAVE_WINSOCK2_H = @HAVE_WINSOCK2_H@
-HAVE_WINT_T = @HAVE_WINT_T@
-HAVE_WS2TCPIP_H = @HAVE_WS2TCPIP_H@
-HAVE__BOOL = @HAVE__BOOL@
-HELP2MAN = @HELP2MAN@
-INSTALL = @INSTALL@
-INSTALL_DATA = @INSTALL_DATA@
-INSTALL_PROGRAM = @INSTALL_PROGRAM@
-INSTALL_SCRIPT = @INSTALL_SCRIPT@
-INSTALL_STRIP_PROGRAM = @INSTALL_STRIP_PROGRAM@
-INTLLIBS = @INTLLIBS@
-INTL_MACOSX_LIBS = @INTL_MACOSX_LIBS@
-INTTYPES_H = @INTTYPES_H@
-KMEM_GROUP = @KMEM_GROUP@
-LDFLAGS = @LDFLAGS@
-LIBCOREUTILS_LIBDEPS = @LIBCOREUTILS_LIBDEPS@
-LIBCOREUTILS_LTLIBDEPS = @LIBCOREUTILS_LTLIBDEPS@
-LIBICONV = @LIBICONV@
-LIBINTL = @LIBINTL@
-LIBOBJS = @LIBOBJS@
-LIBS = @LIBS@
-LIB_ACL = @LIB_ACL@
-LIB_ACL_TRIVIAL = @LIB_ACL_TRIVIAL@
-LIB_CLOCK_GETTIME = @LIB_CLOCK_GETTIME@
-LIB_CRYPT = @LIB_CRYPT@
-LIB_EACCESS = @LIB_EACCESS@
-LIB_FDATASYNC = @LIB_FDATASYNC@
-LIB_GETHRXTIME = @LIB_GETHRXTIME@
-LIB_NANOSLEEP = @LIB_NANOSLEEP@
-LN_S = @LN_S@
-LTLIBICONV = @LTLIBICONV@
-LTLIBINTL = @LTLIBINTL@
-LTLIBOBJS = @LTLIBOBJS@
-MAKEINFO = @MAKEINFO@
-MAN = @MAN@
-MKDIR_P = @MKDIR_P@
-MSGFMT = @MSGFMT@
-MSGFMT_015 = @MSGFMT_015@
-MSGMERGE = @MSGMERGE@
-NEED_SETGID = @NEED_SETGID@
-NETINET_IN_H = @NETINET_IN_H@
-OBJEXT = @OBJEXT@
-OPTIONAL_BIN_PROGS = @OPTIONAL_BIN_PROGS@
-PACKAGE = @PACKAGE@
-PACKAGE_BUGREPORT = @PACKAGE_BUGREPORT@
-PACKAGE_NAME = @PACKAGE_NAME@
-PACKAGE_STRING = @PACKAGE_STRING@
-PACKAGE_TARNAME = @PACKAGE_TARNAME@
-PACKAGE_VERSION = @PACKAGE_VERSION@
-PATH_SEPARATOR = @PATH_SEPARATOR@
-PERL = @PERL@
-POSUB = @POSUB@
-POW_LIB = @POW_LIB@
-PRIPTR_PREFIX = @PRIPTR_PREFIX@
-PRI_MACROS_BROKEN = @PRI_MACROS_BROKEN@
-PTRDIFF_T_SUFFIX = @PTRDIFF_T_SUFFIX@
-RANLIB = @RANLIB@
-REPLACE_CHOWN = @REPLACE_CHOWN@
-REPLACE_FCHDIR = @REPLACE_FCHDIR@
-REPLACE_FPRINTF = @REPLACE_FPRINTF@
-REPLACE_GETCWD = @REPLACE_GETCWD@
-REPLACE_GETTIMEOFDAY = @REPLACE_GETTIMEOFDAY@
-REPLACE_LOCALTIME_R = @REPLACE_LOCALTIME_R@
-REPLACE_MKSTEMP = @REPLACE_MKSTEMP@
-REPLACE_NANOSLEEP = @REPLACE_NANOSLEEP@
-REPLACE_PRINTF = @REPLACE_PRINTF@
-REPLACE_SNPRINTF = @REPLACE_SNPRINTF@
-REPLACE_SPRINTF = @REPLACE_SPRINTF@
-REPLACE_STRPTIME = @REPLACE_STRPTIME@
-REPLACE_TIMEGM = @REPLACE_TIMEGM@
-REPLACE_VFPRINTF = @REPLACE_VFPRINTF@
-REPLACE_VPRINTF = @REPLACE_VPRINTF@
-REPLACE_VSNPRINTF = @REPLACE_VSNPRINTF@
-REPLACE_VSPRINTF = @REPLACE_VSPRINTF@
-SEQ_LIBM = @SEQ_LIBM@
-SET_MAKE = @SET_MAKE@
-SHELL = @SHELL@
-SIG_ATOMIC_T_SUFFIX = @SIG_ATOMIC_T_SUFFIX@
-SIZE_T_SUFFIX = @SIZE_T_SUFFIX@
-STDBOOL_H = @STDBOOL_H@
-STDINT_H = @STDINT_H@
-STRIP = @STRIP@
-SYS_SOCKET_H = @SYS_SOCKET_H@
-SYS_STAT_H = @SYS_STAT_H@
-SYS_TIME_H = @SYS_TIME_H@
-SYS_TIME_H_DEFINES_STRUCT_TIMESPEC = @SYS_TIME_H_DEFINES_STRUCT_TIMESPEC@
-TIME_H_DEFINES_STRUCT_TIMESPEC = @TIME_H_DEFINES_STRUCT_TIMESPEC@
-U = @U@
-USE_NLS = @USE_NLS@
-VERSION = @VERSION@
-WCHAR_H = @WCHAR_H@
-WCHAR_T_SUFFIX = @WCHAR_T_SUFFIX@
-WCTYPE_H = @WCTYPE_H@
-WINT_T_SUFFIX = @WINT_T_SUFFIX@
-XGETTEXT = @XGETTEXT@
-XGETTEXT_015 = @XGETTEXT_015@
-YACC = @YACC@
-YFLAGS = @YFLAGS@
-abs_builddir = @abs_builddir@
-abs_srcdir = @abs_srcdir@
-abs_top_builddir = @abs_top_builddir@
-abs_top_srcdir = @abs_top_srcdir@
-ac_ct_CC = @ac_ct_CC@
-am__include = @am__include@
-am__leading_dot = @am__leading_dot@
-am__quote = @am__quote@
-am__tar = @am__tar@
-am__untar = @am__untar@
-bindir = @bindir@
-build = @build@
-build_alias = @build_alias@
-build_cpu = @build_cpu@
-build_os = @build_os@
-build_vendor = @build_vendor@
-builddir = @builddir@
-datadir = @datadir@
-datarootdir = @datarootdir@
-docdir = @docdir@
-dvidir = @dvidir@
-exec_prefix = @exec_prefix@
-gl_LIBOBJS = @gl_LIBOBJS@
-gl_LTLIBOBJS = @gl_LTLIBOBJS@
-host = @host@
-host_alias = @host_alias@
-host_cpu = @host_cpu@
-host_os = @host_os@
-host_vendor = @host_vendor@
-htmldir = @htmldir@
-includedir = @includedir@
-infodir = @infodir@
-install_sh = @install_sh@
-libdir = @libdir@
-libexecdir = @libexecdir@
-localedir = @localedir@
-localstatedir = @localstatedir@
-mandir = @mandir@
-mkdir_p = @mkdir_p@
-oldincludedir = @oldincludedir@
-pdfdir = @pdfdir@
-prefix = @prefix@
-program_transform_name = @program_transform_name@
-psdir = @psdir@
-sbindir = @sbindir@
-sharedstatedir = @sharedstatedir@
-srcdir = @srcdir@
-sysconfdir = @sysconfdir@
-target_alias = @target_alias@
-top_builddir = @top_builddir@
-top_srcdir = @top_srcdir@
-TESTS = \
- p-thru-slink \
- p-3 p-1 p-2 p-v special-1 perm parents t-slash p-slashdot
-
-EXTRA_DIST = $(TESTS)
-TESTS_ENVIRONMENT = \
- srcdir=$(srcdir) \
- CU_TEST_NAME=`basename $(abs_srcdir)`,$$tst \
- PATH="$(VG_PATH_PREFIX)`pwd`/../../src$(PATH_SEPARATOR)$$PATH"
-
-all: all-am
-
-.SUFFIXES:
-$(srcdir)/Makefile.in: $(srcdir)/Makefile.am $(am__configure_deps)
- @for dep in $?; do \
- case '$(am__configure_deps)' in \
- *$$dep*) \
- cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh \
- && exit 0; \
- exit 1;; \
- esac; \
- done; \
- echo ' cd $(top_srcdir) && $(AUTOMAKE) --gnu tests/mkdir/Makefile'; \
- cd $(top_srcdir) && \
- $(AUTOMAKE) --gnu tests/mkdir/Makefile
-.PRECIOUS: Makefile
-Makefile: $(srcdir)/Makefile.in $(top_builddir)/config.status
- @case '$?' in \
- *config.status*) \
- cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh;; \
- *) \
- echo ' cd $(top_builddir) && $(SHELL) ./config.status $(subdir)/$@ $(am__depfiles_maybe)'; \
- cd $(top_builddir) && $(SHELL) ./config.status $(subdir)/$@ $(am__depfiles_maybe);; \
- esac;
-
-$(top_builddir)/config.status: $(top_srcdir)/configure $(CONFIG_STATUS_DEPENDENCIES)
- cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh
-
-$(top_srcdir)/configure: $(am__configure_deps)
- cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh
-$(ACLOCAL_M4): $(am__aclocal_m4_deps)
- cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh
-tags: TAGS
-TAGS:
-
-ctags: CTAGS
-CTAGS:
-
-
-check-TESTS: $(TESTS)
- @failed=0; all=0; xfail=0; xpass=0; skip=0; ws='[ ]'; \
- srcdir=$(srcdir); export srcdir; \
- list=' $(TESTS) '; \
- if test -n "$$list"; then \
- for tst in $$list; do \
- if test -f ./$$tst; then dir=./; \
- elif test -f $$tst; then dir=; \
- else dir="$(srcdir)/"; fi; \
- if $(TESTS_ENVIRONMENT) $${dir}$$tst; then \
- all=`expr $$all + 1`; \
- case " $(XFAIL_TESTS) " in \
- *$$ws$$tst$$ws*) \
- xpass=`expr $$xpass + 1`; \
- failed=`expr $$failed + 1`; \
- echo "XPASS: $$tst"; \
- ;; \
- *) \
- echo "PASS: $$tst"; \
- ;; \
- esac; \
- elif test $$? -ne 77; then \
- all=`expr $$all + 1`; \
- case " $(XFAIL_TESTS) " in \
- *$$ws$$tst$$ws*) \
- xfail=`expr $$xfail + 1`; \
- echo "XFAIL: $$tst"; \
- ;; \
- *) \
- failed=`expr $$failed + 1`; \
- echo "FAIL: $$tst"; \
- ;; \
- esac; \
- else \
- skip=`expr $$skip + 1`; \
- echo "SKIP: $$tst"; \
- fi; \
- done; \
- if test "$$failed" -eq 0; then \
- if test "$$xfail" -eq 0; then \
- banner="All $$all tests passed"; \
- else \
- banner="All $$all tests behaved as expected ($$xfail expected failures)"; \
- fi; \
- else \
- if test "$$xpass" -eq 0; then \
- banner="$$failed of $$all tests failed"; \
- else \
- banner="$$failed of $$all tests did not behave as expected ($$xpass unexpected passes)"; \
- fi; \
- fi; \
- dashes="$$banner"; \
- skipped=""; \
- if test "$$skip" -ne 0; then \
- skipped="($$skip tests were not run)"; \
- test `echo "$$skipped" | wc -c` -le `echo "$$banner" | wc -c` || \
- dashes="$$skipped"; \
- fi; \
- report=""; \
- if test "$$failed" -ne 0 && test -n "$(PACKAGE_BUGREPORT)"; then \
- report="Please report to $(PACKAGE_BUGREPORT)"; \
- test `echo "$$report" | wc -c` -le `echo "$$banner" | wc -c` || \
- dashes="$$report"; \
- fi; \
- dashes=`echo "$$dashes" | sed s/./=/g`; \
- echo "$$dashes"; \
- echo "$$banner"; \
- test -z "$$skipped" || echo "$$skipped"; \
- test -z "$$report" || echo "$$report"; \
- echo "$$dashes"; \
- test "$$failed" -eq 0; \
- else :; fi
-
-distdir: $(DISTFILES)
- @srcdirstrip=`echo "$(srcdir)" | sed 's/[].[^$$\\*]/\\\\&/g'`; \
- topsrcdirstrip=`echo "$(top_srcdir)" | sed 's/[].[^$$\\*]/\\\\&/g'`; \
- list='$(DISTFILES)'; \
- dist_files=`for file in $$list; do echo $$file; done | \
- sed -e "s|^$$srcdirstrip/||;t" \
- -e "s|^$$topsrcdirstrip/|$(top_builddir)/|;t"`; \
- case $$dist_files in \
- */*) $(MKDIR_P) `echo "$$dist_files" | \
- sed '/\//!d;s|^|$(distdir)/|;s,/[^/]*$$,,' | \
- sort -u` ;; \
- esac; \
- for file in $$dist_files; do \
- if test -f $$file || test -d $$file; then d=.; else d=$(srcdir); fi; \
- if test -d $$d/$$file; then \
- dir=`echo "/$$file" | sed -e 's,/[^/]*$$,,'`; \
- if test -d $(srcdir)/$$file && test $$d != $(srcdir); then \
- cp -pR $(srcdir)/$$file $(distdir)$$dir || exit 1; \
- fi; \
- cp -pR $$d/$$file $(distdir)$$dir || exit 1; \
- else \
- test -f $(distdir)/$$file \
- || cp -p $$d/$$file $(distdir)/$$file \
- || exit 1; \
- fi; \
- done
-check-am: all-am
- $(MAKE) $(AM_MAKEFLAGS) check-TESTS
-check: check-am
-all-am: Makefile
-installdirs:
-install: install-am
-install-exec: install-exec-am
-install-data: install-data-am
-uninstall: uninstall-am
-
-install-am: all-am
- @$(MAKE) $(AM_MAKEFLAGS) install-exec-am install-data-am
-
-installcheck: installcheck-am
-install-strip:
- $(MAKE) $(AM_MAKEFLAGS) INSTALL_PROGRAM="$(INSTALL_STRIP_PROGRAM)" \
- install_sh_PROGRAM="$(INSTALL_STRIP_PROGRAM)" INSTALL_STRIP_FLAG=-s \
- `test -z '$(STRIP)' || \
- echo "INSTALL_PROGRAM_ENV=STRIPPROG='$(STRIP)'"` install
-mostlyclean-generic:
-
-clean-generic:
-
-distclean-generic:
- -test -z "$(CONFIG_CLEAN_FILES)" || rm -f $(CONFIG_CLEAN_FILES)
-
-maintainer-clean-generic:
- @echo "This command is intended for maintainers to use"
- @echo "it deletes files that may require special tools to rebuild."
-clean: clean-am
-
-clean-am: clean-generic mostlyclean-am
-
-distclean: distclean-am
- -rm -f Makefile
-distclean-am: clean-am distclean-generic
-
-dvi: dvi-am
-
-dvi-am:
-
-html: html-am
-
-info: info-am
-
-info-am:
-
-install-data-am:
-
-install-dvi: install-dvi-am
-
-install-exec-am:
-
-install-html: install-html-am
-
-install-info: install-info-am
-
-install-man:
-
-install-pdf: install-pdf-am
-
-install-ps: install-ps-am
-
-installcheck-am:
-
-maintainer-clean: maintainer-clean-am
- -rm -f Makefile
-maintainer-clean-am: distclean-am maintainer-clean-generic
-
-mostlyclean: mostlyclean-am
-
-mostlyclean-am: mostlyclean-generic
-
-pdf: pdf-am
-
-pdf-am:
-
-ps: ps-am
-
-ps-am:
-
-uninstall-am:
-
-.MAKE: install-am install-strip
-
-.PHONY: all all-am check check-TESTS check-am clean clean-generic \
- distclean distclean-generic distdir dvi dvi-am html html-am \
- info info-am install install-am install-data install-data-am \
- install-dvi install-dvi-am install-exec install-exec-am \
- install-html install-html-am install-info install-info-am \
- install-man install-pdf install-pdf-am install-ps \
- install-ps-am install-strip installcheck installcheck-am \
- installdirs maintainer-clean maintainer-clean-generic \
- mostlyclean mostlyclean-generic pdf pdf-am ps ps-am uninstall \
- uninstall-am
-
-# Tell versions [3.59,3.63) of GNU make to not export all variables.
-# Otherwise a system limit (for SysV at least) may be exceeded.
-.NOEXPORT:
diff --git a/tests/mkdir/p-1 b/tests/mkdir/p-1
deleted file mode 100755
index 7e384e4..0000000
--- a/tests/mkdir/p-1
+++ /dev/null
@@ -1,35 +0,0 @@
-#!/bin/sh
-# Test "mkdir -p".
-
-# Copyright (C) 1997, 2000, 2002, 2006 Free Software Foundation, Inc.
-
-# This program is free software; you can redistribute it and/or modify
-# it under the terms of the GNU General Public License as published by
-# the Free Software Foundation; either version 2 of the License, or
-# (at your option) any later version.
-
-# This program is distributed in the hope that it will be useful,
-# but WITHOUT ANY WARRANTY; without even the implied warranty of
-# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
-# GNU General Public License for more details.
-
-# You should have received a copy of the GNU General Public License
-# along with this program; if not, write to the Free Software
-# Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA
-# 02110-1301, USA.
-
-if test "$VERBOSE" = yes; then
- set -x
- mkdir --version
-fi
-
-pwd=`pwd`
-tmp=`echo "$0"|sed 's,.*/,,'`.tmp
-trap 'status=$?; cd "$pwd" && rm -rf $tmp && exit $status' 0
-trap '(exit $?); exit' 1 2 13 15
-
-mkdir --parents "$pwd/$tmp" || fail=1
-
-test -d $tmp || fail=1
-
-exit $fail
diff --git a/tests/mkdir/p-1.sh b/tests/mkdir/p-1.sh
new file mode 100755
index 0000000..24e99d5
--- /dev/null
+++ b/tests/mkdir/p-1.sh
@@ -0,0 +1,25 @@
+#!/bin/sh
+# Test "mkdir -p".
+
+# Copyright (C) 1997-2016 Free Software Foundation, Inc.
+
+# This program is free software: you can redistribute it and/or modify
+# it under the terms of the GNU General Public License as published by
+# the Free Software Foundation, either version 3 of the License, or
+# (at your option) any later version.
+
+# This program is distributed in the hope that it will be useful,
+# but WITHOUT ANY WARRANTY; without even the implied warranty of
+# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
+# GNU General Public License for more details.
+
+# You should have received a copy of the GNU General Public License
+# along with this program. If not, see <http://www.gnu.org/licenses/>.
+
+. "${srcdir=.}/tests/init.sh"; path_prepend_ ./src
+print_ver_ mkdir
+
+mkdir --parents "$(pwd)/t" || fail=1
+test -d t || fail=1
+
+Exit $fail
diff --git a/tests/mkdir/p-2 b/tests/mkdir/p-2
deleted file mode 100755
index 53ad876..0000000
--- a/tests/mkdir/p-2
+++ /dev/null
@@ -1,35 +0,0 @@
-#!/bin/sh
-# Just like p-1, but with an absolute path.
-
-# Copyright (C) 1997, 2000, 2002, 2006 Free Software Foundation, Inc.
-
-# This program is free software; you can redistribute it and/or modify
-# it under the terms of the GNU General Public License as published by
-# the Free Software Foundation; either version 2 of the License, or
-# (at your option) any later version.
-
-# This program is distributed in the hope that it will be useful,
-# but WITHOUT ANY WARRANTY; without even the implied warranty of
-# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
-# GNU General Public License for more details.
-
-# You should have received a copy of the GNU General Public License
-# along with this program; if not, write to the Free Software
-# Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA
-# 02110-1301, USA.
-
-if test "$VERBOSE" = yes; then
- set -x
- mkdir --version
-fi
-
-pwd=`pwd`
-tmp=`echo "$0"|sed 's,.*/,,'`.tmp
-trap 'status=$?; cd "$pwd" && rm -rf $tmp && exit $status' 0
-trap '(exit $?); exit' 1 2 13 15
-
-mkdir --parents $tmp || fail=1
-
-test -d $tmp || fail=1
-
-exit $fail
diff --git a/tests/mkdir/p-2.sh b/tests/mkdir/p-2.sh
new file mode 100755
index 0000000..6742d05
--- /dev/null
+++ b/tests/mkdir/p-2.sh
@@ -0,0 +1,25 @@
+#!/bin/sh
+# Just like p-1, but with an absolute path.
+
+# Copyright (C) 1997-2016 Free Software Foundation, Inc.
+
+# This program is free software: you can redistribute it and/or modify
+# it under the terms of the GNU General Public License as published by
+# the Free Software Foundation, either version 3 of the License, or
+# (at your option) any later version.
+
+# This program is distributed in the hope that it will be useful,
+# but WITHOUT ANY WARRANTY; without even the implied warranty of
+# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
+# GNU General Public License for more details.
+
+# You should have received a copy of the GNU General Public License
+# along with this program. If not, see <http://www.gnu.org/licenses/>.
+
+. "${srcdir=.}/tests/init.sh"; path_prepend_ ./src
+print_ver_ mkdir
+
+mkdir --parents "$(pwd)/t/u" || fail=1
+test -d t/u || fail=1
+
+Exit $fail
diff --git a/tests/mkdir/p-3 b/tests/mkdir/p-3
deleted file mode 100755
index 54e99e1..0000000
--- a/tests/mkdir/p-3
+++ /dev/null
@@ -1,69 +0,0 @@
-#!/bin/sh
-# Ensure that mkdir-p.c's fail-to-return-to-initial-working-directory
-# causes immediate failure. Also, ensure that we don't create
-# subsequent, relative command-line arguments in the wrong place.
-
-# Copyright (C) 2005-2007 Free Software Foundation, Inc.
-
-# This program is free software; you can redistribute it and/or modify
-# it under the terms of the GNU General Public License as published by
-# the Free Software Foundation; either version 2 of the License, or
-# (at your option) any later version.
-
-# This program is distributed in the hope that it will be useful,
-# but WITHOUT ANY WARRANTY; without even the implied warranty of
-# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
-# GNU General Public License for more details.
-
-# You should have received a copy of the GNU General Public License
-# along with this program; if not, write to the Free Software
-# Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA
-# 02110-1301, USA.
-
-if test "$VERBOSE" = yes; then
- set -x
- mkdir --version
-fi
-
-PRIV_CHECK_ARG=require-non-root . $srcdir/../priv-check
-
-pwd=`pwd`
-t0=`echo "$0"|sed 's,.*/,,'`.tmp; tmp=$t0/$$
-trap 'status=$?; cd "$pwd" && chmod -R u+rwx $t0 && rm -rf $t0 && exit $status' 0
-trap '(exit $?); exit $?' 1 2 13 15
-
-framework_failure=0
-mkdir -p $tmp || framework_failure=1
-cd $tmp || framework_failure=1
-mkdir no-access || framework_failure=1
-mkdir no-acce2s || framework_failure=1
-mkdir -p no-acce3s/d || framework_failure=1
-
-if test $framework_failure = 1; then
- echo "$0: failure in testing framework" 1>&2
- (exit 1); exit 1
-fi
-
-p=$pwd/$tmp
-(cd no-access && chmod 0 . && mkdir -p "$p/a/b" u/v) 2> /dev/null && fail=1
-test -d "$p/a/b" || fail=1
-
-# Same as above, but with a following *absolute* name, it should succeed
-(cd no-acce2s && chmod 0 . && mkdir -p "$p/b/b" "$p/z") || fail=1
-test -d "$p/b/b" && test -d "$p/z" || fail=1
-
-# Same as above, but a trailing relative name in an unreadable directory
-# whose parent is inaccessible. coreutils 5.97 fails this test.
-# Perform this test only if "." is on a local file system.
-# Otherwise, it would fail e.g., on an NFS-mounted file system.
-if df --local . >/dev/null 2>&1; then
- (cd no-acce3s/d && chmod a-r . && chmod a-rx .. &&
- mkdir -p a/b "$p/b/c" d/e && test -d a/b && test -d d/e) || fail=1
- test -d "$p/b/c" || fail=1
-fi
-
-b=`ls "$p/a" | tr -d '\n'`
-# With coreutils-5.3.0, this would fail with $b=bu.
-test "x$b" = xb || fail=1
-
-exit $fail
diff --git a/tests/mkdir/p-3.sh b/tests/mkdir/p-3.sh
new file mode 100755
index 0000000..b3bb468
--- /dev/null
+++ b/tests/mkdir/p-3.sh
@@ -0,0 +1,52 @@
+#!/bin/sh
+# Ensure that mkdir-p.c's fail-to-return-to-initial-working-directory
+# causes immediate failure. Also, ensure that we don't create
+# subsequent, relative command-line arguments in the wrong place.
+
+# Copyright (C) 2005-2016 Free Software Foundation, Inc.
+
+# This program is free software: you can redistribute it and/or modify
+# it under the terms of the GNU General Public License as published by
+# the Free Software Foundation, either version 3 of the License, or
+# (at your option) any later version.
+
+# This program is distributed in the hope that it will be useful,
+# but WITHOUT ANY WARRANTY; without even the implied warranty of
+# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
+# GNU General Public License for more details.
+
+# You should have received a copy of the GNU General Public License
+# along with this program. If not, see <http://www.gnu.org/licenses/>.
+
+. "${srcdir=.}/tests/init.sh"; path_prepend_ ./src
+print_ver_ mkdir
+skip_if_root_
+
+mkdir no-access || framework_failure_
+mkdir no-acce2s || framework_failure_
+mkdir -p no-acce3s/d || framework_failure_
+
+p=$(pwd)
+(cd no-access && chmod 0 . && mkdir -p "$p/a/b" u/v) 2> /dev/null
+test $? -eq 1 || fail=1
+test -d "$p/a/b" || fail=1
+
+# Same as above, but with a following *absolute* name, it should succeed
+(cd no-acce2s && chmod 0 . && mkdir -p "$p/b/b" "$p/z") || fail=1
+test -d "$p/b/b" && test -d "$p/z" || fail=1
+
+# Same as above, but a trailing relative name in an unreadable directory
+# whose parent is inaccessible. coreutils 5.97 fails this test.
+# Perform this test only if "." is on a local file system.
+# Otherwise, it would fail e.g., on an NFS-mounted file system.
+if is_local_dir_ .; then
+ (cd no-acce3s/d && chmod a-r . && chmod a-rx .. &&
+ mkdir -p a/b "$p/b/c" d/e && test -d a/b && test -d d/e) || fail=1
+ test -d "$p/b/c" || fail=1
+fi
+
+b=$(ls "$p/a" | tr -d '\n')
+# With coreutils-5.3.0, this would fail with $b=bu.
+test "x$b" = xb || fail=1
+
+Exit $fail
diff --git a/tests/mkdir/p-acl.sh b/tests/mkdir/p-acl.sh
new file mode 100755
index 0000000..71b162b
--- /dev/null
+++ b/tests/mkdir/p-acl.sh
@@ -0,0 +1,35 @@
+#!/bin/sh
+# Test "mkdir -p" with default ACLs.
+
+# Copyright (C) 1997-2016 Free Software Foundation, Inc.
+
+# This program is free software: you can redistribute it and/or modify
+# it under the terms of the GNU General Public License as published by
+# the Free Software Foundation, either version 3 of the License, or
+# (at your option) any later version.
+
+# This program is distributed in the hope that it will be useful,
+# but WITHOUT ANY WARRANTY; without even the implied warranty of
+# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
+# GNU General Public License for more details.
+
+# You should have received a copy of the GNU General Public License
+# along with this program. If not, see <http://www.gnu.org/licenses/>.
+
+. "${srcdir=.}/tests/init.sh"; path_prepend_ ./src
+print_ver_ mkdir
+
+require_setfacl_
+
+mkdir d || framework_failure_
+setfacl -d -m group::rwx d || framework_failure_
+umask 077
+
+mkdir --parents d/e || fail=1
+ls_l=$(ls -ld d/e) || fail=1
+case $ls_l in
+ d???rw[sx]*) ;;
+ *) fail=1 ;;
+esac
+
+Exit $fail
diff --git a/tests/mkdir/p-slashdot b/tests/mkdir/p-slashdot
deleted file mode 100755
index 5a3561d..0000000
--- a/tests/mkdir/p-slashdot
+++ /dev/null
@@ -1,48 +0,0 @@
-#!/bin/sh
-# Ensure that mkdir -p works with arguments specified with a trailing "/.".
-
-# Copyright (C) 2005, 2006 Free Software Foundation, Inc.
-
-# This program is free software; you can redistribute it and/or modify
-# it under the terms of the GNU General Public License as published by
-# the Free Software Foundation; either version 2 of the License, or
-# (at your option) any later version.
-
-# This program is distributed in the hope that it will be useful,
-# but WITHOUT ANY WARRANTY; without even the implied warranty of
-# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
-# GNU General Public License for more details.
-
-# You should have received a copy of the GNU General Public License
-# along with this program; if not, write to the Free Software
-# Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA
-# 02110-1301, USA.
-
-if test "$VERBOSE" = yes; then
- set -x
- mkdir --version
-fi
-
-pwd=`pwd`
-tmp=`echo "$0"|sed 's,.*/,,'`.tmp
-trap 'status=$?; cd "$pwd" && rm -rf $tmp && exit $status' 0
-trap '(exit $?); exit' 1 2 13 15
-
-framework_failure=0
-mkdir $tmp || framework_failure=1
-cd $tmp || framework_failure=1
-
-if test $framework_failure = 1; then
- echo 'failure in testing framework'
- (exit 1); exit 1
-fi
-
-fail=0
-
-mkdir -p d1/. || fail=1
-test -d d1 || fail=1
-
-mkdir -p d2/.. || fail=1
-test -d d2 || fail=1
-
-(exit $fail); exit $fail
diff --git a/tests/mkdir/p-slashdot.sh b/tests/mkdir/p-slashdot.sh
new file mode 100755
index 0000000..9ce1b6d
--- /dev/null
+++ b/tests/mkdir/p-slashdot.sh
@@ -0,0 +1,29 @@
+#!/bin/sh
+# Ensure that mkdir -p works with arguments specified with a trailing "/.".
+
+# Copyright (C) 2005-2016 Free Software Foundation, Inc.
+
+# This program is free software: you can redistribute it and/or modify
+# it under the terms of the GNU General Public License as published by
+# the Free Software Foundation, either version 3 of the License, or
+# (at your option) any later version.
+
+# This program is distributed in the hope that it will be useful,
+# but WITHOUT ANY WARRANTY; without even the implied warranty of
+# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
+# GNU General Public License for more details.
+
+# You should have received a copy of the GNU General Public License
+# along with this program. If not, see <http://www.gnu.org/licenses/>.
+
+. "${srcdir=.}/tests/init.sh"; path_prepend_ ./src
+print_ver_ mkdir
+
+
+mkdir -p d1/. || fail=1
+test -d d1 || fail=1
+
+mkdir -p d2/.. || fail=1
+test -d d2 || fail=1
+
+Exit $fail
diff --git a/tests/mkdir/p-thru-slink b/tests/mkdir/p-thru-slink
deleted file mode 100755
index f44be66..0000000
--- a/tests/mkdir/p-thru-slink
+++ /dev/null
@@ -1,46 +0,0 @@
-#!/bin/sh
-# Ensure that mkdir -p foo/bar works when foo is a symbolic link to a directory
-
-# Copyright (C) 2005, 2006 Free Software Foundation, Inc.
-
-# This program is free software; you can redistribute it and/or modify
-# it under the terms of the GNU General Public License as published by
-# the Free Software Foundation; either version 2 of the License, or
-# (at your option) any later version.
-
-# This program is distributed in the hope that it will be useful,
-# but WITHOUT ANY WARRANTY; without even the implied warranty of
-# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
-# GNU General Public License for more details.
-
-# You should have received a copy of the GNU General Public License
-# along with this program; if not, write to the Free Software
-# Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA
-# 02110-1301, USA.
-
-if test "$VERBOSE" = yes; then
- set -x
- mkdir --version
-fi
-
-pwd=`pwd`
-t0=`echo "$0"|sed 's,.*/,,'`.tmp; tmp=$t0/$$
-trap 'status=$?; cd "$pwd" && chmod -R u+rwx $t0 && rm -rf $t0 && exit $status' 0
-trap '(exit $?); exit $?' 1 2 13 15
-
-framework_failure=0
-mkdir -p $tmp || framework_failure=1
-cd $tmp || framework_failure=1
-ln -s . slink || framework_failure=1
-
-if test $framework_failure = 1; then
- echo "$0: failure in testing framework" 1>&2
- (exit 1); exit 1
-fi
-
-fail=0
-
-mkdir -p slink/x || fail=1
-test -d x || fail=1
-
-(exit $fail); exit $fail
diff --git a/tests/mkdir/p-thru-slink.sh b/tests/mkdir/p-thru-slink.sh
new file mode 100755
index 0000000..521c16c
--- /dev/null
+++ b/tests/mkdir/p-thru-slink.sh
@@ -0,0 +1,27 @@
+#!/bin/sh
+# Ensure that mkdir -p foo/bar works when foo is a symbolic link to a directory
+
+# Copyright (C) 2005-2016 Free Software Foundation, Inc.
+
+# This program is free software: you can redistribute it and/or modify
+# it under the terms of the GNU General Public License as published by
+# the Free Software Foundation, either version 3 of the License, or
+# (at your option) any later version.
+
+# This program is distributed in the hope that it will be useful,
+# but WITHOUT ANY WARRANTY; without even the implied warranty of
+# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
+# GNU General Public License for more details.
+
+# You should have received a copy of the GNU General Public License
+# along with this program. If not, see <http://www.gnu.org/licenses/>.
+
+. "${srcdir=.}/tests/init.sh"; path_prepend_ ./src
+print_ver_ mkdir
+
+ln -s . slink || framework_failure_
+
+mkdir -p slink/x || fail=1
+test -d x || fail=1
+
+Exit $fail
diff --git a/tests/mkdir/p-v b/tests/mkdir/p-v
deleted file mode 100755
index 2675423..0000000
--- a/tests/mkdir/p-v
+++ /dev/null
@@ -1,56 +0,0 @@
-#!/bin/sh
-# Test mkdir -pv.
-
-# Copyright (C) 2006 Free Software Foundation, Inc.
-
-# This program is free software; you can redistribute it and/or modify
-# it under the terms of the GNU General Public License as published by
-# the Free Software Foundation; either version 2 of the License, or
-# (at your option) any later version.
-
-# This program is distributed in the hope that it will be useful,
-# but WITHOUT ANY WARRANTY; without even the implied warranty of
-# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
-# GNU General Public License for more details.
-
-# You should have received a copy of the GNU General Public License
-# along with this program; if not, write to the Free Software
-# Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA
-# 02110-1301, USA.
-
-if test "$VERBOSE" = yes; then
- set -x
- mkdir --version
-fi
-
-# Make sure we get English translations.
-LANGUAGE=C
-export LANGUAGE
-LC_ALL=C
-export LC_ALL
-LANG=C
-export LANG
-
-pwd=`pwd`
-t0=`echo "$0"|sed 's,.*/,,'`.tmp; tmp=$t0/$$
-trap 'status=$?; cd "$pwd" && rm -rf $t0 && exit $status' 0
-trap '(exit $?); exit $?' 1 2 13 15
-
-framework_failure=0
-mkdir -p $tmp || framework_failure=1
-cd $tmp || framework_failure=1
-
-if test $framework_failure = 1; then
- echo "$0: failure in testing framework" 1>&2
- (exit 1); exit 1
-fi
-
-mkdir -pv foo/a/b/c/d 2>out || exit
-
-diff - out <<\EOF
-mkdir: created directory `foo'
-mkdir: created directory `foo/a'
-mkdir: created directory `foo/a/b'
-mkdir: created directory `foo/a/b/c'
-mkdir: created directory `foo/a/b/c/d'
-EOF
diff --git a/tests/mkdir/p-v.sh b/tests/mkdir/p-v.sh
new file mode 100755
index 0000000..3b5a136
--- /dev/null
+++ b/tests/mkdir/p-v.sh
@@ -0,0 +1,32 @@
+#!/bin/sh
+# Test mkdir -pv.
+
+# Copyright (C) 2006-2016 Free Software Foundation, Inc.
+
+# This program is free software: you can redistribute it and/or modify
+# it under the terms of the GNU General Public License as published by
+# the Free Software Foundation, either version 3 of the License, or
+# (at your option) any later version.
+
+# This program is distributed in the hope that it will be useful,
+# but WITHOUT ANY WARRANTY; without even the implied warranty of
+# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
+# GNU General Public License for more details.
+
+# You should have received a copy of the GNU General Public License
+# along with this program. If not, see <http://www.gnu.org/licenses/>.
+
+. "${srcdir=.}/tests/init.sh"; path_prepend_ ./src
+print_ver_ mkdir
+
+mkdir -pv foo/a/b/c/d >out || fail=1
+
+compare - out <<\EOF
+mkdir: created directory 'foo'
+mkdir: created directory 'foo/a'
+mkdir: created directory 'foo/a/b'
+mkdir: created directory 'foo/a/b/c'
+mkdir: created directory 'foo/a/b/c/d'
+EOF
+
+Exit $fail
diff --git a/tests/mkdir/parents b/tests/mkdir/parents
deleted file mode 100755
index f0ead6e..0000000
--- a/tests/mkdir/parents
+++ /dev/null
@@ -1,76 +0,0 @@
-#!/bin/sh
-# make sure mkdir's -p options works properly
-
-# Copyright (C) 2000, 2004, 2006 Free Software Foundation, Inc.
-
-# This program is free software; you can redistribute it and/or modify
-# it under the terms of the GNU General Public License as published by
-# the Free Software Foundation; either version 2 of the License, or
-# (at your option) any later version.
-
-# This program is distributed in the hope that it will be useful,
-# but WITHOUT ANY WARRANTY; without even the implied warranty of
-# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
-# GNU General Public License for more details.
-
-# You should have received a copy of the GNU General Public License
-# along with this program; if not, write to the Free Software
-# Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA
-# 02110-1301, USA.
-
-if test "$VERBOSE" = yes; then
- set -x
- mkdir --version
-fi
-
-pwd=`pwd`
-tmp=parents-$$
-trap 'status=$?; cd "$pwd" && rm -rf $tmp && exit $status' 0
-trap '(exit $?); exit' 1 2 13 15
-
-framework_failure=0
-
-# Record absolute path of srcdir.
-cd $srcdir || framework_failure=1
-abs_srcdir=`pwd`
-
-cd "$pwd" || framework_failure=1
-mkdir $tmp || framework_failure=1
-cd $tmp || framework_failure=1
-mkdir -m 700 e-dir || framework_failure=1
-
-if test $framework_failure = 1; then
- echo 'failure in testing framework'
- (exit 1); exit 1
-fi
-
-. "$abs_srcdir/../setgid-check"
-
-fail=0
-
-# Make sure `mkdir -p existing-dir' succeeds
-# and that `mkdir existing-dir' fails.
-mkdir -p e-dir || fail=1
-mkdir e-dir > /dev/null 2>&1 && fail=1
-
-# Create an existing directory.
-umask 077
-mode_str=drwxr-x-wx
-mode_arg=`"$abs_srcdir/../rwx-to-mode" $mode_str`
-mkdir -m $mode_arg a || fail=1
-
-# this `mkdir -p ...' shouldn't change perms of existing dir `a'.
-d_mode_str=drwx-w--wx
-d_mode_arg=`"$abs_srcdir/../rwx-to-mode" $d_mode_str`
-mkdir -p -m $d_mode_arg a/b/c/d
-
-# Make sure the permissions of `a' haven't been changed.
-p=`ls -ld a|sed 's/ .*//'`; case $p in $mode_str);; *) fail=1;; esac
-# `b's and `c's should reflect the umask
-p=`ls -ld a/b|sed 's/ .*//'`; case $p in drwx------);; *) fail=1;; esac
-p=`ls -ld a/b/c|sed 's/ .*//'`; case $p in drwx------);; *) fail=1;; esac
-
-# `d's perms are determined by the -m argument.
-p=`ls -ld a/b/c/d|sed 's/ .*//'`; case $p in $d_mode_str);; *) fail=1;; esac
-
-(exit $fail); exit $fail
diff --git a/tests/mkdir/parents.sh b/tests/mkdir/parents.sh
new file mode 100755
index 0000000..72aef24
--- /dev/null
+++ b/tests/mkdir/parents.sh
@@ -0,0 +1,52 @@
+#!/bin/sh
+# make sure mkdir's -p options works properly
+
+# Copyright (C) 2000-2016 Free Software Foundation, Inc.
+
+# This program is free software: you can redistribute it and/or modify
+# it under the terms of the GNU General Public License as published by
+# the Free Software Foundation, either version 3 of the License, or
+# (at your option) any later version.
+
+# This program is distributed in the hope that it will be useful,
+# but WITHOUT ANY WARRANTY; without even the implied warranty of
+# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
+# GNU General Public License for more details.
+
+# You should have received a copy of the GNU General Public License
+# along with this program. If not, see <http://www.gnu.org/licenses/>.
+
+. "${srcdir=.}/tests/init.sh"; path_prepend_ ./src
+print_ver_ mkdir
+skip_if_setgid_
+require_no_default_acl_ .
+
+mkdir -m 700 e-dir || framework_failure_
+
+
+# Make sure 'mkdir -p existing-dir' succeeds
+# and that 'mkdir existing-dir' fails.
+mkdir -p e-dir || fail=1
+returns_ 1 mkdir e-dir > /dev/null 2>&1 || fail=1
+
+# Create an existing directory.
+umask 077
+mode_str=drwxr-x-wx
+mode_arg=$(rwx_to_mode_ $mode_str)
+mkdir -m $mode_arg a || fail=1
+
+# this 'mkdir -p ...' shouldn't change perms of existing dir 'a'.
+d_mode_str=drwx-w--wx
+d_mode_arg=$(rwx_to_mode_ $d_mode_str)
+mkdir -p -m $d_mode_arg a/b/c/d
+
+# Make sure the permissions of 'a' haven't been changed.
+p=$(ls -ld a|cut -b-10); case $p in $mode_str);; *) fail=1;; esac
+# 'b's and 'c's should reflect the umask
+p=$(ls -ld a/b|cut -b-10); case $p in drwx------);; *) fail=1;; esac
+p=$(ls -ld a/b/c|cut -b-10); case $p in drwx------);; *) fail=1;; esac
+
+# 'd's perms are determined by the -m argument.
+p=$(ls -ld a/b/c/d|cut -b-10); case $p in $d_mode_str);; *) fail=1;; esac
+
+Exit $fail
diff --git a/tests/mkdir/perm b/tests/mkdir/perm
deleted file mode 100755
index 3853f2a..0000000
--- a/tests/mkdir/perm
+++ /dev/null
@@ -1,109 +0,0 @@
-#!/bin/sh
-# Verify that mkdir's `-m MODE' option works properly
-# with various umask settings.
-
-# Copyright (C) 2000, 2002, 2003, 2004, 2005, 2006 Free Software
-# Foundation, Inc.
-
-# This program is free software; you can redistribute it and/or modify
-# it under the terms of the GNU General Public License as published by
-# the Free Software Foundation; either version 2 of the License, or
-# (at your option) any later version.
-
-# This program is distributed in the hope that it will be useful,
-# but WITHOUT ANY WARRANTY; without even the implied warranty of
-# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
-# GNU General Public License for more details.
-
-# You should have received a copy of the GNU General Public License
-# along with this program; if not, write to the Free Software
-# Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA
-# 02110-1301, USA.
-
-if test "$VERBOSE" = yes; then
- set -x
- mkdir --version
-fi
-
-pwd=`pwd`
-t0=`echo "$0"|sed 's,.*/,,'`.tmp; tmp=$t0/$$
-trap 'status=$?; cd "$pwd" && chmod -R u+rwx $t0 && rm -rf $t0 && exit $status' 0
-trap '(exit $?); exit' 1 2 13 15
-
-framework_failure=0
-
-# Record absolute path of srcdir and cd back to current dir.
-cd $srcdir || framework_failure=1
-abs_srcdir=`pwd`
-cd "$pwd" || framework_failure=1
-
-mkdir -p $tmp || framework_failure=1
-cd $tmp || framework_failure=1
-
-if test $framework_failure = 1; then
- echo 'failure in testing framework'
- (exit 1); exit 1
-fi
-
-. "$abs_srcdir/../setgid-check"
-. "$abs_srcdir/../umask-check"
-
-fail=0
-
-# parent parent/dir
-# umask -m option resulting perm resulting perm
-tests='
- 000 : empty : drwxrwxrwx : drwxrwxrwx :
- 000 : -m 016 : drwxrwxrwx : d-----xrw- :
- 077 : empty : drwx------ : drwx------ :
- 050 : empty : drwx-w-rwx : drwx-w-rwx :
- 050 : -m 312 : drwx-w-rwx : d-wx--x-w- :
- 160 : empty : drwx--xrwx : drw---xrwx :
- 160 : -m 743 : drwx--xrwx : drwxr---wx :
- 027 : -m =+x : drwxr-x--- : d--x--x--- :
- 027 : -m =+X : drwxr-x--- : d--x--x--- :
- - : - : last : last :
- '
-colon_tests=`echo $tests | sed 's/^ *//; s/ *: */:/g'`
-
-for p in empty -p; do
- test _$p = _empty && p=
-
- old_IFS=$IFS
- IFS=':'
- set $colon_tests
- IFS=$old_IFS
-
- while :; do
- test "$VERBOSE" = yes && set -x
- umask=$1 mode=$2 parent_perms=$3 sub_perms=$4
- test "_$mode" = _empty && mode=
- test $sub_perms = last && break
- # echo p=$p umask=$1 mode=$2 parent_perms=$3 sub_perms=$4
- shift; shift; shift; shift
- umask $umask
-
- # If we're not using -p, then create the parent manually,
- # and adjust expectations accordingly.
- test x$p = x && \
- {
- mkdir -m =,u=rwx parent || fail=1
- parent_perms=drwx------
- }
-
- mkdir $p $mode parent/sub || fail=1
-
- perms=`ls -ld parent | sed 's/ .*//; s/+$//'`
- test "$parent_perms" = "$perms" \
- || { fail=1; echo parent: expected $parent_perms, got $perms; }
-
- perms=`ls -ld parent/sub | sed 's/ .*//; s/+$//'`
- test "$sub_perms" = "$perms" \
- || { fail=1; echo parent/sub: expected $sub_perms, got $perms; }
-
- chmod -R u+rwx parent
- rm -rf parent || fail=1
- done
-done
-
-(exit $fail); exit $fail
diff --git a/tests/mkdir/perm.sh b/tests/mkdir/perm.sh
new file mode 100755
index 0000000..4cc7fdb
--- /dev/null
+++ b/tests/mkdir/perm.sh
@@ -0,0 +1,84 @@
+#!/bin/sh
+# Verify that mkdir's '-m MODE' option works properly
+# with various umask settings.
+
+# Copyright (C) 2000-2016 Free Software Foundation, Inc.
+
+# This program is free software: you can redistribute it and/or modify
+# it under the terms of the GNU General Public License as published by
+# the Free Software Foundation, either version 3 of the License, or
+# (at your option) any later version.
+
+# This program is distributed in the hope that it will be useful,
+# but WITHOUT ANY WARRANTY; without even the implied warranty of
+# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
+# GNU General Public License for more details.
+
+# You should have received a copy of the GNU General Public License
+# along with this program. If not, see <http://www.gnu.org/licenses/>.
+
+. "${srcdir=.}/tests/init.sh"; path_prepend_ ./src
+print_ver_ mkdir
+skip_if_setgid_
+require_no_default_acl_ .
+
+working_umask_or_skip_
+
+
+# parent parent/dir
+# umask -m option resulting perm resulting perm
+tests='
+ 000 : empty : drwxrwxrwx : drwxrwxrwx :
+ 000 : -m 016 : drwxrwxrwx : d-----xrw- :
+ 077 : empty : drwx------ : drwx------ :
+ 050 : empty : drwx-w-rwx : drwx-w-rwx :
+ 050 : -m 312 : drwx-w-rwx : d-wx--x-w- :
+ 160 : empty : drwx--xrwx : drw---xrwx :
+ 160 : -m 743 : drwx--xrwx : drwxr---wx :
+ 027 : -m =+x : drwxr-x--- : d--x--x--- :
+ 027 : -m =+X : drwxr-x--- : d--x--x--- :
+ - : - : last : last :
+ '
+colon_tests=$(echo $tests | sed 's/^ *//; s/ *: */:/g')
+
+for p in empty -p; do
+ test _$p = _empty && p=
+
+ old_IFS=$IFS
+ IFS=':'
+ set $colon_tests
+ IFS=$old_IFS
+
+ while :; do
+ test "$VERBOSE" = yes && set -x
+ umask=$1 mode=$2 parent_perms=$3 sub_perms=$4
+ test "_$mode" = _empty && mode=
+ test $sub_perms = last && break
+ # echo p=$p umask=$1 mode=$2 parent_perms=$3 sub_perms=$4
+ shift; shift; shift; shift
+ umask $umask
+
+ # If we're not using -p, then create the parent manually,
+ # and adjust expectations accordingly.
+ test x$p = x &&
+ {
+ mkdir -m =,u=rwx parent || fail=1
+ parent_perms=drwx------
+ }
+
+ mkdir $p $mode parent/sub || fail=1
+
+ perms=$(stat --printf %A parent)
+ test "$parent_perms" = "$perms" \
+ || { fail=1; echo parent: expected $parent_perms, got $perms; }
+
+ perms=$(stat --printf %A parent/sub)
+ test "$sub_perms" = "$perms" \
+ || { fail=1; echo parent/sub: expected $sub_perms, got $perms; }
+
+ chmod -R u+rwx parent
+ rm -rf parent || fail=1
+ done
+done
+
+Exit $fail
diff --git a/tests/mkdir/restorecon.sh b/tests/mkdir/restorecon.sh
new file mode 100755
index 0000000..0e7f03b
--- /dev/null
+++ b/tests/mkdir/restorecon.sh
@@ -0,0 +1,73 @@
+#!/bin/sh
+# test mkdir, mknod, mkfifo -Z
+
+# Copyright (C) 2013-2016 Free Software Foundation, Inc.
+
+# This program is free software: you can redistribute it and/or modify
+# it under the terms of the GNU General Public License as published by
+# the Free Software Foundation, either version 3 of the License, or
+# (at your option) any later version.
+
+# This program is distributed in the hope that it will be useful,
+# but WITHOUT ANY WARRANTY; without even the implied warranty of
+# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
+# GNU General Public License for more details.
+
+# You should have received a copy of the GNU General Public License
+# along with this program. If not, see <http://www.gnu.org/licenses/>.
+
+. "${srcdir=.}/tests/init.sh"; path_prepend_ ./src
+print_ver_ mkdir mknod mkfifo
+require_selinux_
+
+
+get_selinux_type() { ls -Zd "$1" | sed -n 's/.*:\(.*_t\):.*/\1/p'; }
+
+mkdir subdir || framework_failure_
+chcon 'root:object_r:tmp_t:s0' subdir || framework_failure_
+cd subdir
+
+# --- mkdir -Z ---
+# Since in a tmp_t dir, dirs can be created as user_tmp_t ...
+mkdir standard || framework_failure_
+mkdir restored || framework_failure_
+if restorecon restored 2>/dev/null; then
+ # ... but when restored can be set to user_home_t
+ # So ensure the type for these mkdir -Z cases matches
+ # the directory type as set by restorecon.
+ mkdir -Z single || fail=1
+ # Run these as separate processes in case global context
+ # set for an arg, impacts on another arg
+ # TODO: Have the defaultcon() vary over these directories
+ for dir in single_p single_p/existing multi/ple; do
+ mkdir -Zp "$dir" || fail=1
+ done
+ restored_type=$(get_selinux_type 'restored')
+ test "$(get_selinux_type 'single')" = "$restored_type" || fail=1
+ test "$(get_selinux_type 'single_p')" = "$restored_type" || fail=1
+ test "$(get_selinux_type 'single_p/existing')" = "$restored_type" || fail=1
+ test "$(get_selinux_type 'multi')" = "$restored_type" || fail=1
+ test "$(get_selinux_type 'multi/ple')" = "$restored_type" || fail=1
+fi
+if test "$fail" = '1'; then
+ ls -UZd standard restored
+ ls -UZd single single_p single_p/existing multi multi/ple
+fi
+
+# --- mknod -Z and mkfifo -Z ---
+# Assume if selinux present that we can create fifos
+for cmd_w_arg in 'mknod' 'mkfifo'; do
+ # In OpenBSD's /bin/sh, mknod is a shell built-in.
+ # Running via "env" ensures we run our program and not the built-in.
+ basename="$cmd_w_arg"
+ test "$basename" = 'mknod' && nt='p' || nt=''
+ env -- $cmd_w_arg $basename $nt || fail=1
+ env -- $cmd_w_arg ${basename}_restore $nt || fail=1
+ if restorecon ${basename}_restore 2>/dev/null; then
+ env -- $cmd_w_arg -Z ${basename}_Z $nt || fail=1
+ restored_type=$(get_selinux_type "${basename}_restore")
+ test "$(get_selinux_type ${basename}_Z)" = "$restored_type" || fail=1
+ fi
+done
+
+Exit $fail
diff --git a/tests/mkdir/selinux.sh b/tests/mkdir/selinux.sh
new file mode 100755
index 0000000..6edea81
--- /dev/null
+++ b/tests/mkdir/selinux.sh
@@ -0,0 +1,56 @@
+#!/bin/sh
+# ensure that an invalid context doesn't cause a segfault
+
+# Copyright (C) 2008-2016 Free Software Foundation, Inc.
+
+# This program is free software: you can redistribute it and/or modify
+# it under the terms of the GNU General Public License as published by
+# the Free Software Foundation, either version 3 of the License, or
+# (at your option) any later version.
+
+# This program is distributed in the hope that it will be useful,
+# but WITHOUT ANY WARRANTY; without even the implied warranty of
+# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
+# GNU General Public License for more details.
+
+# You should have received a copy of the GNU General Public License
+# along with this program. If not, see <http://www.gnu.org/licenses/>.
+
+. "${srcdir=.}/tests/init.sh"; path_prepend_ ./src
+print_ver_ mkdir mkfifo mknod
+
+# Note: on an SELinux/enforcing system running mcstransd older than
+# mcstrans-0.2.8-1.fc9, the following commands may mistakenly exit
+# successfully, in spite of the invalid context string.
+require_selinux_enforcing_
+
+c=invalid-selinux-context
+msg="failed to set default file creation context to '$c':"
+
+# Test each of mkdir, mknod, mkfifo with "-Z invalid-context".
+
+for cmd_w_arg in 'mkdir dir' 'mknod b p' 'mkfifo f'; do
+ # In OpenBSD's /bin/sh, mknod is a shell built-in.
+ # Running via "env" ensures we run our program and not the built-in.
+ env -- $cmd_w_arg --context=$c 2> out && fail=1
+ set $cmd_w_arg; cmd=$1
+ echo "$cmd: $msg" > exp || fail=1
+
+ # Some systems fail with ENOTSUP, EINVAL, ENOENT, or even
+ # "Unknown system error", or "Function not implemented".
+ # For AIX 5.3: "Unsupported attribute value"
+ # For HP-UX 11.23: Unknown error (252)
+ sed \
+ -e 's/ Not supported$//' \
+ -e 's/ Invalid argument$//' \
+ -e 's/ Unknown system error$//' \
+ -e 's/ Operation not supported$//' \
+ -e 's/ Function not implemented$//' \
+ -e 's/ Unsupported attribute value$//' \
+ -e 's/ Unknown error .*$//' \
+ -e 's/ No such file or directory$//' out > k || fail=1
+ mv k out || fail=1
+ compare exp out || fail=1
+done
+
+Exit $fail
diff --git a/tests/mkdir/smack-no-root.sh b/tests/mkdir/smack-no-root.sh
new file mode 100755
index 0000000..51fc8c7
--- /dev/null
+++ b/tests/mkdir/smack-no-root.sh
@@ -0,0 +1,39 @@
+#!/bin/sh
+# SMACK test for the mkdir,mknod, mkfifo commands.
+# Derived from tests/mkdir/selinux.sh.
+# Ensure that an unsettable SMACK label doesn't cause a segfault.
+
+# Copyright (C) 2014-2016 Free Software Foundation, Inc.
+
+# This program is free software: you can redistribute it and/or modify
+# it under the terms of the GNU General Public License as published by
+# the Free Software Foundation, either version 3 of the License, or
+# (at your option) any later version.
+
+# This program is distributed in the hope that it will be useful,
+# but WITHOUT ANY WARRANTY; without even the implied warranty of
+# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
+# GNU General Public License for more details.
+
+# You should have received a copy of the GNU General Public License
+# along with this program. If not, see <http://www.gnu.org/licenses/>.
+
+. "${srcdir=.}/tests/init.sh"; path_prepend_ ./src
+print_ver_ mkdir mkfifo mknod
+
+require_smack_
+
+c=arbitrary-smack-label
+msg="failed to set default file creation context to '$c':"
+
+for cmd in 'mkdir dir' 'mknod b p' 'mkfifo f'; do
+ $cmd --context="$c" 2> out && fail=1
+ set $cmd
+ echo "$1: $msg" > exp || fail=1
+
+ sed -e 's/ Operation not permitted$//' out > k || fail=1
+ mv k out || fail=1
+ compare exp out || fail=1
+done
+
+Exit $fail
diff --git a/tests/mkdir/smack-root.sh b/tests/mkdir/smack-root.sh
new file mode 100755
index 0000000..de0fa68
--- /dev/null
+++ b/tests/mkdir/smack-root.sh
@@ -0,0 +1,36 @@
+#!/bin/sh
+# SMACK test for the mkdir,mknod, mkfifo commands.
+# Derived from tests/mkdir/selinux.sh.
+# Ensure that SMACK label gets set.
+
+# Copyright (C) 2014-2016 Free Software Foundation, Inc.
+
+# This program is free software: you can redistribute it and/or modify
+# it under the terms of the GNU General Public License as published by
+# the Free Software Foundation, either version 3 of the License, or
+# (at your option) any later version.
+
+# This program is distributed in the hope that it will be useful,
+# but WITHOUT ANY WARRANTY; without even the implied warranty of
+# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
+# GNU General Public License for more details.
+
+# You should have received a copy of the GNU General Public License
+# along with this program. If not, see <http://www.gnu.org/licenses/>.
+
+. "${srcdir=.}/tests/init.sh"; path_prepend_ ./src
+print_ver_ mkdir mkfifo mknod
+
+require_smack_
+require_root_
+
+c=arbitrary-smack-label
+
+for cmd in 'mkdir dir' 'mknod b p' 'mkfifo f'; do
+ $cmd --context="$c" || { fail=1; continue; }
+ set $cmd
+ ls -dZ $2 > out || fail=1
+ test "$(cut -f1 -d' ' out)" = "$c" || { cat out; fail=1; }
+done
+
+Exit $fail
diff --git a/tests/mkdir/special-1 b/tests/mkdir/special-1
deleted file mode 100755
index a5b6504..0000000
--- a/tests/mkdir/special-1
+++ /dev/null
@@ -1,58 +0,0 @@
-#!/bin/sh
-# verify that mkdir honors special bits in MODE
-
-# Copyright (C) 2000, 2006 Free Software Foundation, Inc.
-
-# This program is free software; you can redistribute it and/or modify
-# it under the terms of the GNU General Public License as published by
-# the Free Software Foundation; either version 2 of the License, or
-# (at your option) any later version.
-
-# This program is distributed in the hope that it will be useful,
-# but WITHOUT ANY WARRANTY; without even the implied warranty of
-# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
-# GNU General Public License for more details.
-
-# You should have received a copy of the GNU General Public License
-# along with this program; if not, write to the Free Software
-# Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA
-# 02110-1301, USA.
-
-if test "$VERBOSE" = yes; then
- set -x
- mkdir --version
-fi
-
-tmp=mkdir-sp-$$
-trap 'status=$?; rm -rf $tmp && exit $status' 0
-trap 'exit $?' 1 2 13 15
-
-set_mode_string=u=rwx,g=rx,o=w,-s,+t
-output_mode_string=drwxr-x-wT
-
-mkdir -m$set_mode_string $tmp || fail=1
-
-test -d $tmp || fail=1
-set -- `ls -ld $tmp`
-case "$1" in
- $output_mode_string) ;;
- *) fail=1 ;;
-esac
-
-rmdir $tmp || fail=1
-tmp2=$tmp/sub
-
-# This should fail.
-mkdir -m$set_mode_string $tmp2 2> /dev/null && fail=1
-
-# Now test the --parents option.
-mkdir --parents -m$set_mode_string $tmp2 || fail=1
-
-test -d $tmp2 || fail=1
-set -- `ls -ld $tmp2`
-case "$1" in
- $output_mode_string) ;;
- *) fail=1 ;;
-esac
-
-exit $fail
diff --git a/tests/mkdir/special-1.sh b/tests/mkdir/special-1.sh
new file mode 100755
index 0000000..c915cc6
--- /dev/null
+++ b/tests/mkdir/special-1.sh
@@ -0,0 +1,51 @@
+#!/bin/sh
+# verify that mkdir honors special bits in MODE
+
+# Copyright (C) 2000-2016 Free Software Foundation, Inc.
+
+# This program is free software: you can redistribute it and/or modify
+# it under the terms of the GNU General Public License as published by
+# the Free Software Foundation, either version 3 of the License, or
+# (at your option) any later version.
+
+# This program is distributed in the hope that it will be useful,
+# but WITHOUT ANY WARRANTY; without even the implied warranty of
+# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
+# GNU General Public License for more details.
+
+# You should have received a copy of the GNU General Public License
+# along with this program. If not, see <http://www.gnu.org/licenses/>.
+
+. "${srcdir=.}/tests/init.sh"; path_prepend_ ./src
+print_ver_ mkdir
+
+set_mode_string=u=rwx,g=rx,o=w,-s,+t
+output_mode_string=drwxr-x-wT
+
+tmp=t
+mkdir -m$set_mode_string $tmp || fail=1
+
+test -d $tmp || fail=1
+mode=$(ls -ld $tmp|cut -b-10)
+case "$mode" in
+ $output_mode_string) ;;
+ *) fail=1 ;;
+esac
+
+rmdir $tmp || fail=1
+tmp2=$tmp/sub
+
+# This should fail.
+returns_ 1 mkdir -m$set_mode_string $tmp2 2> /dev/null || fail=1
+
+# Now test the --parents option.
+mkdir --parents -m$set_mode_string $tmp2 || fail=1
+
+test -d $tmp2 || fail=1
+mode=$(ls -ld $tmp2|cut -b-10)
+case "$mode" in
+ $output_mode_string) ;;
+ *) fail=1 ;;
+esac
+
+Exit $fail
diff --git a/tests/mkdir/t-slash b/tests/mkdir/t-slash
deleted file mode 100755
index e002ab2..0000000
--- a/tests/mkdir/t-slash
+++ /dev/null
@@ -1,50 +0,0 @@
-#!/bin/sh
-# Ensure that mkdir works with arguments specified with and without
-# a trailing slash.
-
-# Copyright (C) 2000, 2004, 2006 Free Software Foundation, Inc.
-
-# This program is free software; you can redistribute it and/or modify
-# it under the terms of the GNU General Public License as published by
-# the Free Software Foundation; either version 2 of the License, or
-# (at your option) any later version.
-
-# This program is distributed in the hope that it will be useful,
-# but WITHOUT ANY WARRANTY; without even the implied warranty of
-# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
-# GNU General Public License for more details.
-
-# You should have received a copy of the GNU General Public License
-# along with this program; if not, write to the Free Software
-# Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA
-# 02110-1301, USA.
-
-if test "$VERBOSE" = yes; then
- set -x
- mkdir --version
-fi
-
-pwd=`pwd`
-tmp=t-slash.$$
-trap 'status=$?; cd "$pwd" && rm -rf $tmp && exit $status' 0
-trap '(exit $?); exit' 1 2 13 15
-
-framework_failure=0
-mkdir $tmp || framework_failure=1
-cd $tmp || framework_failure=1
-
-if test $framework_failure = 1; then
- echo 'failure in testing framework'
- (exit 1); exit 1
-fi
-
-fail=0
-
-mkdir -p dir/ || fail=1
-test -d dir || fail=1
-
-# This failed on NetBSD for fileutils-4.0.33.
-mkdir d2/ || fail=1
-test -d d2 || fail=1
-
-(exit $fail); exit $fail
diff --git a/tests/mkdir/t-slash.sh b/tests/mkdir/t-slash.sh
new file mode 100755
index 0000000..d1a6eb8
--- /dev/null
+++ b/tests/mkdir/t-slash.sh
@@ -0,0 +1,31 @@
+#!/bin/sh
+# Ensure that mkdir works with arguments specified with and without
+# a trailing slash.
+
+# Copyright (C) 2000-2016 Free Software Foundation, Inc.
+
+# This program is free software: you can redistribute it and/or modify
+# it under the terms of the GNU General Public License as published by
+# the Free Software Foundation, either version 3 of the License, or
+# (at your option) any later version.
+
+# This program is distributed in the hope that it will be useful,
+# but WITHOUT ANY WARRANTY; without even the implied warranty of
+# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
+# GNU General Public License for more details.
+
+# You should have received a copy of the GNU General Public License
+# along with this program. If not, see <http://www.gnu.org/licenses/>.
+
+. "${srcdir=.}/tests/init.sh"; path_prepend_ ./src
+print_ver_ mkdir
+
+
+mkdir -p dir/ || fail=1
+test -d dir || fail=1
+
+# This failed on NetBSD for fileutils-4.0.33.
+mkdir d2/ || fail=1
+test -d d2 || fail=1
+
+Exit $fail
diff --git a/tests/mkdir/writable-under-readonly.sh b/tests/mkdir/writable-under-readonly.sh
new file mode 100755
index 0000000..ae3beb3
--- /dev/null
+++ b/tests/mkdir/writable-under-readonly.sh
@@ -0,0 +1,52 @@
+#!/bin/sh
+# FIXME: convert this to a root-only test.
+
+# Copyright (C) 2005-2016 Free Software Foundation, Inc.
+
+# This program is free software: you can redistribute it and/or modify
+# it under the terms of the GNU General Public License as published by
+# the Free Software Foundation, either version 3 of the License, or
+# (at your option) any later version.
+
+# This program is distributed in the hope that it will be useful,
+# but WITHOUT ANY WARRANTY; without even the implied warranty of
+# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
+# GNU General Public License for more details.
+
+# You should have received a copy of the GNU General Public License
+# along with this program. If not, see <http://www.gnu.org/licenses/>.
+
+# Test for the 2005-10-13 patch to lib/mkdir-p.c that fixed this sort
+# of bug in mkdir:
+#
+# "mkdir -p /a/b/c" no longer fails merely because a leading prefix
+# directory (e.g., /a or /a/b) exists on a read-only file system.
+#
+# Demonstrate the problem, as root:
+
+. "${srcdir=.}/tests/init.sh"; path_prepend_ ./src
+print_ver_ mkdir
+require_root_
+
+# FIXME: for now, skip it unconditionally
+skip_ temporarily disabled
+
+# FIXME: define cleanup_ to do the umount
+
+# FIXME: use mktemp
+cd /tmp \
+ && dd if=/dev/zero of=1 bs=8192 count=50 \
+ && dd if=/dev/zero of=2 bs=8192 count=50 \
+ && mkdir -p mnt-ro && mkfs -t ext2 1 && mkfs -t ext2 2 \
+ && mount -o loop=/dev/loop3 1 mnt-ro \
+ && mkdir -p mnt-ro/rw \
+ && mount -o remount,ro mnt-ro \
+ && mount -o loop=/dev/loop4 2 mnt-ro/rw
+
+mkdir -p mnt-ro/rw/sub || fail=1
+
+# To clean up
+umount /tmp/2
+umount /tmp/1
+
+Exit $fail
diff --git a/tests/mv/Makefile.am b/tests/mv/Makefile.am
deleted file mode 100644
index 71c9119..0000000
--- a/tests/mv/Makefile.am
+++ /dev/null
@@ -1,50 +0,0 @@
-# Make coreutils tests for "mv". -*-Makefile-*-
-
-# Copyright (C) 1998, 1999, 2000, 2001, 2002, 2003, 2004, 2005, 2006, 2007
-# Free Software Foundation, Inc.
-
-# This program is free software; you can redistribute it and/or modify
-# it under the terms of the GNU General Public License as published by
-# the Free Software Foundation; either version 2 of the License, or
-# (at your option) any later version.
-
-# This program is distributed in the hope that it will be useful,
-# but WITHOUT ANY WARRANTY; without even the implied warranty of
-# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
-# GNU General Public License for more details.
-
-# You should have received a copy of the GNU General Public License
-# along with this program; if not, write to the Free Software
-# Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA
-# 02110-1301, USA.
-
-TESTS = \
- hard-verbose \
- backup-dir \
- dir2dir \
- no-target-dir \
- atomic \
- acl \
- reply-no \
- leak-fd \
- part-hardlink \
- hard-4 \
- hard-3 \
- hard-2 \
- perm-1 \
- i-link-no \
- part-fail \
- dup-source childproof i-4 i-5 update i-2 mv-special-1 \
- into-self into-self-2 into-self-3 into-self-4 \
- backup-is-src \
- i-1 hard-link-1 force partition-perm to-symlink dir-file diag \
- part-symlink part-rename trailing-slash
-
-EXTRA_DIST = $(TESTS) vfat
-TESTS_ENVIRONMENT = \
- PERL="$(PERL)" \
- EGREP="$(EGREP)" \
- CU_TEST_NAME=`basename $(abs_srcdir)`,$$tst \
- PATH="$(VG_PATH_PREFIX)`pwd`/../../src$(PATH_SEPARATOR)$$PATH" \
- CONFIG_HEADER=$(CONFIG_HEADER) \
- PROG=mv
diff --git a/tests/mv/Makefile.in b/tests/mv/Makefile.in
deleted file mode 100644
index b86230a..0000000
--- a/tests/mv/Makefile.in
+++ /dev/null
@@ -1,761 +0,0 @@
-# Makefile.in generated by automake 1.10 from Makefile.am.
-# @configure_input@
-
-# Copyright (C) 1994, 1995, 1996, 1997, 1998, 1999, 2000, 2001, 2002,
-# 2003, 2004, 2005, 2006 Free Software Foundation, Inc.
-# This Makefile.in is free software; the Free Software Foundation
-# gives unlimited permission to copy and/or distribute it,
-# with or without modifications, as long as this notice is preserved.
-
-# This program is distributed in the hope that it will be useful,
-# but WITHOUT ANY WARRANTY, to the extent permitted by law; without
-# even the implied warranty of MERCHANTABILITY or FITNESS FOR A
-# PARTICULAR PURPOSE.
-
-@SET_MAKE@
-
-# Make coreutils tests for "mv". -*-Makefile-*-
-
-# Copyright (C) 1998, 1999, 2000, 2001, 2002, 2003, 2004, 2005, 2006, 2007
-# Free Software Foundation, Inc.
-
-# This program is free software; you can redistribute it and/or modify
-# it under the terms of the GNU General Public License as published by
-# the Free Software Foundation; either version 2 of the License, or
-# (at your option) any later version.
-
-# This program is distributed in the hope that it will be useful,
-# but WITHOUT ANY WARRANTY; without even the implied warranty of
-# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
-# GNU General Public License for more details.
-
-# You should have received a copy of the GNU General Public License
-# along with this program; if not, write to the Free Software
-# Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA
-# 02110-1301, USA.
-VPATH = @srcdir@
-pkgdatadir = $(datadir)/@PACKAGE@
-pkglibdir = $(libdir)/@PACKAGE@
-pkgincludedir = $(includedir)/@PACKAGE@
-am__cd = CDPATH="$${ZSH_VERSION+.}$(PATH_SEPARATOR)" && cd
-install_sh_DATA = $(install_sh) -c -m 644
-install_sh_PROGRAM = $(install_sh) -c
-install_sh_SCRIPT = $(install_sh) -c
-INSTALL_HEADER = $(INSTALL_DATA)
-transform = $(program_transform_name)
-NORMAL_INSTALL = :
-PRE_INSTALL = :
-POST_INSTALL = :
-NORMAL_UNINSTALL = :
-PRE_UNINSTALL = :
-POST_UNINSTALL = :
-build_triplet = @build@
-host_triplet = @host@
-subdir = tests/mv
-DIST_COMMON = $(srcdir)/Makefile.am $(srcdir)/Makefile.in
-ACLOCAL_M4 = $(top_srcdir)/aclocal.m4
-am__aclocal_m4_deps = $(top_srcdir)/m4/absolute-header.m4 \
- $(top_srcdir)/m4/acl.m4 $(top_srcdir)/m4/alloca.m4 \
- $(top_srcdir)/m4/allocsa.m4 $(top_srcdir)/m4/argmatch.m4 \
- $(top_srcdir)/m4/arpa_inet_h.m4 $(top_srcdir)/m4/assert.m4 \
- $(top_srcdir)/m4/atexit.m4 $(top_srcdir)/m4/autobuild.m4 \
- $(top_srcdir)/m4/backupfile.m4 $(top_srcdir)/m4/base64.m4 \
- $(top_srcdir)/m4/bison.m4 $(top_srcdir)/m4/boottime.m4 \
- $(top_srcdir)/m4/c-strtod.m4 $(top_srcdir)/m4/calloc.m4 \
- $(top_srcdir)/m4/canon-host.m4 \
- $(top_srcdir)/m4/canonicalize.m4 \
- $(top_srcdir)/m4/chdir-long.m4 $(top_srcdir)/m4/check-decl.m4 \
- $(top_srcdir)/m4/chown.m4 $(top_srcdir)/m4/clock_time.m4 \
- $(top_srcdir)/m4/cloexec.m4 $(top_srcdir)/m4/close-stream.m4 \
- $(top_srcdir)/m4/closeout.m4 $(top_srcdir)/m4/codeset.m4 \
- $(top_srcdir)/m4/config-h.m4 $(top_srcdir)/m4/cycle-check.m4 \
- $(top_srcdir)/m4/d-ino.m4 $(top_srcdir)/m4/d-type.m4 \
- $(top_srcdir)/m4/dirfd.m4 $(top_srcdir)/m4/dirname.m4 \
- $(top_srcdir)/m4/dos.m4 $(top_srcdir)/m4/double-slash-root.m4 \
- $(top_srcdir)/m4/dup2.m4 $(top_srcdir)/m4/eealloc.m4 \
- $(top_srcdir)/m4/eoverflow.m4 $(top_srcdir)/m4/error.m4 \
- $(top_srcdir)/m4/euidaccess-stat.m4 \
- $(top_srcdir)/m4/euidaccess.m4 $(top_srcdir)/m4/exclude.m4 \
- $(top_srcdir)/m4/exitfail.m4 $(top_srcdir)/m4/extensions.m4 \
- $(top_srcdir)/m4/fchdir.m4 $(top_srcdir)/m4/fcntl-safer.m4 \
- $(top_srcdir)/m4/fcntl_h.m4 $(top_srcdir)/m4/fd-reopen.m4 \
- $(top_srcdir)/m4/file-type.m4 $(top_srcdir)/m4/fileblocks.m4 \
- $(top_srcdir)/m4/filemode.m4 $(top_srcdir)/m4/filenamecat.m4 \
- $(top_srcdir)/m4/flexmember.m4 $(top_srcdir)/m4/fnmatch.m4 \
- $(top_srcdir)/m4/fpending.m4 $(top_srcdir)/m4/fprintftime.m4 \
- $(top_srcdir)/m4/free.m4 $(top_srcdir)/m4/fstypename.m4 \
- $(top_srcdir)/m4/fsusage.m4 $(top_srcdir)/m4/ftruncate.m4 \
- $(top_srcdir)/m4/fts.m4 $(top_srcdir)/m4/getaddrinfo.m4 \
- $(top_srcdir)/m4/getcwd-abort-bug.m4 \
- $(top_srcdir)/m4/getcwd-path-max.m4 $(top_srcdir)/m4/getcwd.m4 \
- $(top_srcdir)/m4/getdate.m4 $(top_srcdir)/m4/getdelim.m4 \
- $(top_srcdir)/m4/getgroups.m4 $(top_srcdir)/m4/gethostname.m4 \
- $(top_srcdir)/m4/gethrxtime.m4 $(top_srcdir)/m4/getline.m4 \
- $(top_srcdir)/m4/getloadavg.m4 $(top_srcdir)/m4/getndelim2.m4 \
- $(top_srcdir)/m4/getopt.m4 $(top_srcdir)/m4/getpagesize.m4 \
- $(top_srcdir)/m4/getpass.m4 $(top_srcdir)/m4/gettext.m4 \
- $(top_srcdir)/m4/gettime.m4 $(top_srcdir)/m4/gettimeofday.m4 \
- $(top_srcdir)/m4/getugroups.m4 \
- $(top_srcdir)/m4/getusershell.m4 $(top_srcdir)/m4/glibc21.m4 \
- $(top_srcdir)/m4/gnulib-common.m4 \
- $(top_srcdir)/m4/gnulib-comp.m4 \
- $(top_srcdir)/m4/group-member.m4 \
- $(top_srcdir)/m4/hard-locale.m4 $(top_srcdir)/m4/hash.m4 \
- $(top_srcdir)/m4/host-os.m4 $(top_srcdir)/m4/human.m4 \
- $(top_srcdir)/m4/i-ring.m4 $(top_srcdir)/m4/iconv.m4 \
- $(top_srcdir)/m4/idcache.m4 $(top_srcdir)/m4/inet_ntop.m4 \
- $(top_srcdir)/m4/inline.m4 $(top_srcdir)/m4/intmax_t.m4 \
- $(top_srcdir)/m4/inttostr.m4 $(top_srcdir)/m4/inttypes-pri.m4 \
- $(top_srcdir)/m4/inttypes.m4 $(top_srcdir)/m4/inttypes_h.m4 \
- $(top_srcdir)/m4/isapipe.m4 $(top_srcdir)/m4/jm-macros.m4 \
- $(top_srcdir)/m4/jm-winsz1.m4 $(top_srcdir)/m4/jm-winsz2.m4 \
- $(top_srcdir)/m4/lchmod.m4 $(top_srcdir)/m4/lchown.m4 \
- $(top_srcdir)/m4/lib-check.m4 $(top_srcdir)/m4/lib-ignore.m4 \
- $(top_srcdir)/m4/lib-ld.m4 $(top_srcdir)/m4/lib-link.m4 \
- $(top_srcdir)/m4/lib-prefix.m4 $(top_srcdir)/m4/link-follow.m4 \
- $(top_srcdir)/m4/localcharset.m4 \
- $(top_srcdir)/m4/long-options.m4 \
- $(top_srcdir)/m4/longdouble.m4 $(top_srcdir)/m4/longlong.m4 \
- $(top_srcdir)/m4/ls-mntd-fs.m4 $(top_srcdir)/m4/lstat.m4 \
- $(top_srcdir)/m4/mbchar.m4 $(top_srcdir)/m4/mbiter.m4 \
- $(top_srcdir)/m4/mbrtowc.m4 $(top_srcdir)/m4/mbscasecmp.m4 \
- $(top_srcdir)/m4/mbstate_t.m4 $(top_srcdir)/m4/mbswidth.m4 \
- $(top_srcdir)/m4/md5.m4 $(top_srcdir)/m4/memcasecmp.m4 \
- $(top_srcdir)/m4/memchr.m4 $(top_srcdir)/m4/memcmp.m4 \
- $(top_srcdir)/m4/memcoll.m4 $(top_srcdir)/m4/memcpy.m4 \
- $(top_srcdir)/m4/memmove.m4 $(top_srcdir)/m4/mempcpy.m4 \
- $(top_srcdir)/m4/memrchr.m4 $(top_srcdir)/m4/memset.m4 \
- $(top_srcdir)/m4/memxfrm.m4 $(top_srcdir)/m4/mkancesdirs.m4 \
- $(top_srcdir)/m4/mkdir-p.m4 $(top_srcdir)/m4/mkdir-slash.m4 \
- $(top_srcdir)/m4/mkstemp.m4 $(top_srcdir)/m4/mktime.m4 \
- $(top_srcdir)/m4/modechange.m4 $(top_srcdir)/m4/mountlist.m4 \
- $(top_srcdir)/m4/mpsort.m4 $(top_srcdir)/m4/nanosleep.m4 \
- $(top_srcdir)/m4/netinet_in_h.m4 $(top_srcdir)/m4/nls.m4 \
- $(top_srcdir)/m4/openat.m4 $(top_srcdir)/m4/pathmax.m4 \
- $(top_srcdir)/m4/perl.m4 $(top_srcdir)/m4/physmem.m4 \
- $(top_srcdir)/m4/po.m4 $(top_srcdir)/m4/posixtm.m4 \
- $(top_srcdir)/m4/posixver.m4 $(top_srcdir)/m4/prereq.m4 \
- $(top_srcdir)/m4/progtest.m4 $(top_srcdir)/m4/putenv.m4 \
- $(top_srcdir)/m4/quote.m4 $(top_srcdir)/m4/quotearg.m4 \
- $(top_srcdir)/m4/randint.m4 $(top_srcdir)/m4/randperm.m4 \
- $(top_srcdir)/m4/randread.m4 $(top_srcdir)/m4/readlink.m4 \
- $(top_srcdir)/m4/readtokens.m4 $(top_srcdir)/m4/readutmp.m4 \
- $(top_srcdir)/m4/regex.m4 \
- $(top_srcdir)/m4/rename-dest-slash.m4 \
- $(top_srcdir)/m4/rename.m4 $(top_srcdir)/m4/rmdir-errno.m4 \
- $(top_srcdir)/m4/rmdir.m4 $(top_srcdir)/m4/root-dev-ino.m4 \
- $(top_srcdir)/m4/rpmatch.m4 $(top_srcdir)/m4/safe-read.m4 \
- $(top_srcdir)/m4/safe-write.m4 $(top_srcdir)/m4/same.m4 \
- $(top_srcdir)/m4/save-cwd.m4 $(top_srcdir)/m4/savedir.m4 \
- $(top_srcdir)/m4/savewd.m4 $(top_srcdir)/m4/setenv.m4 \
- $(top_srcdir)/m4/settime.m4 $(top_srcdir)/m4/sha1.m4 \
- $(top_srcdir)/m4/sha256.m4 $(top_srcdir)/m4/sha512.m4 \
- $(top_srcdir)/m4/sig2str.m4 $(top_srcdir)/m4/snprintf.m4 \
- $(top_srcdir)/m4/socklen.m4 $(top_srcdir)/m4/sockpfaf.m4 \
- $(top_srcdir)/m4/ssize_t.m4 $(top_srcdir)/m4/st_dm_mode.m4 \
- $(top_srcdir)/m4/stat-prog.m4 $(top_srcdir)/m4/stat-time.m4 \
- $(top_srcdir)/m4/stdarg.m4 $(top_srcdir)/m4/stdbool.m4 \
- $(top_srcdir)/m4/stdint.m4 $(top_srcdir)/m4/stdint_h.m4 \
- $(top_srcdir)/m4/stdio-safer.m4 $(top_srcdir)/m4/stdio_h.m4 \
- $(top_srcdir)/m4/stdlib-safer.m4 $(top_srcdir)/m4/stdlib_h.m4 \
- $(top_srcdir)/m4/stpcpy.m4 $(top_srcdir)/m4/strcspn.m4 \
- $(top_srcdir)/m4/strdup.m4 $(top_srcdir)/m4/strftime.m4 \
- $(top_srcdir)/m4/string_h.m4 $(top_srcdir)/m4/strndup.m4 \
- $(top_srcdir)/m4/strnlen.m4 $(top_srcdir)/m4/strnumcmp.m4 \
- $(top_srcdir)/m4/strpbrk.m4 $(top_srcdir)/m4/strtod.m4 \
- $(top_srcdir)/m4/strtoimax.m4 $(top_srcdir)/m4/strtol.m4 \
- $(top_srcdir)/m4/strtoll.m4 $(top_srcdir)/m4/strtoul.m4 \
- $(top_srcdir)/m4/strtoull.m4 $(top_srcdir)/m4/strtoumax.m4 \
- $(top_srcdir)/m4/strverscmp.m4 \
- $(top_srcdir)/m4/sys_socket_h.m4 \
- $(top_srcdir)/m4/sys_stat_h.m4 $(top_srcdir)/m4/sys_time_h.m4 \
- $(top_srcdir)/m4/tempname.m4 $(top_srcdir)/m4/time_h.m4 \
- $(top_srcdir)/m4/time_r.m4 $(top_srcdir)/m4/timespec.m4 \
- $(top_srcdir)/m4/tm_gmtoff.m4 $(top_srcdir)/m4/tzset.m4 \
- $(top_srcdir)/m4/unicodeio.m4 $(top_srcdir)/m4/unistd-safer.m4 \
- $(top_srcdir)/m4/unistd_h.m4 $(top_srcdir)/m4/unlink-busy.m4 \
- $(top_srcdir)/m4/unlinkdir.m4 $(top_srcdir)/m4/unlocked-io.m4 \
- $(top_srcdir)/m4/uptime.m4 $(top_srcdir)/m4/userspec.m4 \
- $(top_srcdir)/m4/utimbuf.m4 $(top_srcdir)/m4/utime.m4 \
- $(top_srcdir)/m4/utimecmp.m4 $(top_srcdir)/m4/utimens.m4 \
- $(top_srcdir)/m4/utimes-null.m4 $(top_srcdir)/m4/utimes.m4 \
- $(top_srcdir)/m4/vasnprintf.m4 $(top_srcdir)/m4/vasprintf.m4 \
- $(top_srcdir)/m4/wchar.m4 $(top_srcdir)/m4/wchar_t.m4 \
- $(top_srcdir)/m4/wctype.m4 $(top_srcdir)/m4/wcwidth.m4 \
- $(top_srcdir)/m4/wint_t.m4 $(top_srcdir)/m4/xalloc.m4 \
- $(top_srcdir)/m4/xfts.m4 $(top_srcdir)/m4/xgetcwd.m4 \
- $(top_srcdir)/m4/xnanosleep.m4 $(top_srcdir)/m4/xstrndup.m4 \
- $(top_srcdir)/m4/xstrtod.m4 $(top_srcdir)/m4/xstrtol.m4 \
- $(top_srcdir)/m4/yesno.m4 $(top_srcdir)/configure.ac
-am__configure_deps = $(am__aclocal_m4_deps) $(CONFIGURE_DEPENDENCIES) \
- $(ACLOCAL_M4)
-mkinstalldirs = $(install_sh) -d
-CONFIG_HEADER = $(top_builddir)/lib/config.h
-CONFIG_CLEAN_FILES =
-SOURCES =
-DIST_SOURCES =
-DISTFILES = $(DIST_COMMON) $(DIST_SOURCES) $(TEXINFOS) $(EXTRA_DIST)
-ABSOLUTE_DIRENT_H = @ABSOLUTE_DIRENT_H@
-ABSOLUTE_FCNTL_H = @ABSOLUTE_FCNTL_H@
-ABSOLUTE_INTTYPES_H = @ABSOLUTE_INTTYPES_H@
-ABSOLUTE_NETINET_IN_H = @ABSOLUTE_NETINET_IN_H@
-ABSOLUTE_STDINT_H = @ABSOLUTE_STDINT_H@
-ABSOLUTE_STDIO_H = @ABSOLUTE_STDIO_H@
-ABSOLUTE_STDLIB_H = @ABSOLUTE_STDLIB_H@
-ABSOLUTE_STRING_H = @ABSOLUTE_STRING_H@
-ABSOLUTE_SYS_SOCKET_H = @ABSOLUTE_SYS_SOCKET_H@
-ABSOLUTE_SYS_STAT_H = @ABSOLUTE_SYS_STAT_H@
-ABSOLUTE_SYS_TIME_H = @ABSOLUTE_SYS_TIME_H@
-ABSOLUTE_TIME_H = @ABSOLUTE_TIME_H@
-ABSOLUTE_UNISTD_H = @ABSOLUTE_UNISTD_H@
-ABSOLUTE_WCHAR_H = @ABSOLUTE_WCHAR_H@
-ABSOLUTE_WCTYPE_H = @ABSOLUTE_WCTYPE_H@
-ACLOCAL = @ACLOCAL@
-ALLOCA = @ALLOCA@
-ALLOCA_H = @ALLOCA_H@
-AMTAR = @AMTAR@
-ARPA_INET_H = @ARPA_INET_H@
-AUTOCONF = @AUTOCONF@
-AUTOHEADER = @AUTOHEADER@
-AUTOMAKE = @AUTOMAKE@
-AWK = @AWK@
-BITSIZEOF_PTRDIFF_T = @BITSIZEOF_PTRDIFF_T@
-BITSIZEOF_SIG_ATOMIC_T = @BITSIZEOF_SIG_ATOMIC_T@
-BITSIZEOF_SIZE_T = @BITSIZEOF_SIZE_T@
-BITSIZEOF_WCHAR_T = @BITSIZEOF_WCHAR_T@
-BITSIZEOF_WINT_T = @BITSIZEOF_WINT_T@
-CC = @CC@
-CCDEPMODE = @CCDEPMODE@
-CFLAGS = @CFLAGS@
-CPP = @CPP@
-CPPFLAGS = @CPPFLAGS@
-CYGPATH_W = @CYGPATH_W@
-DEFAULT_POSIX2_VERSION = @DEFAULT_POSIX2_VERSION@
-DEFS = @DEFS@
-DEPDIR = @DEPDIR@
-DF_PROG = @DF_PROG@
-DIRENT_H = @DIRENT_H@
-ECHO_C = @ECHO_C@
-ECHO_N = @ECHO_N@
-ECHO_T = @ECHO_T@
-EGREP = @EGREP@
-EOVERFLOW = @EOVERFLOW@
-EXEEXT = @EXEEXT@
-FCNTL_H = @FCNTL_H@
-FNMATCH_H = @FNMATCH_H@
-GETLOADAVG_LIBS = @GETLOADAVG_LIBS@
-GETOPT_H = @GETOPT_H@
-GLIBC21 = @GLIBC21@
-GMSGFMT = @GMSGFMT@
-GMSGFMT_015 = @GMSGFMT_015@
-GNULIB_CHOWN = @GNULIB_CHOWN@
-GNULIB_DUP2 = @GNULIB_DUP2@
-GNULIB_FCHDIR = @GNULIB_FCHDIR@
-GNULIB_FPRINTF_POSIX = @GNULIB_FPRINTF_POSIX@
-GNULIB_FTRUNCATE = @GNULIB_FTRUNCATE@
-GNULIB_GETCWD = @GNULIB_GETCWD@
-GNULIB_GETLOGIN_R = @GNULIB_GETLOGIN_R@
-GNULIB_GETSUBOPT = @GNULIB_GETSUBOPT@
-GNULIB_IMAXABS = @GNULIB_IMAXABS@
-GNULIB_IMAXDIV = @GNULIB_IMAXDIV@
-GNULIB_MBSCASECMP = @GNULIB_MBSCASECMP@
-GNULIB_MBSCASESTR = @GNULIB_MBSCASESTR@
-GNULIB_MBSCHR = @GNULIB_MBSCHR@
-GNULIB_MBSCSPN = @GNULIB_MBSCSPN@
-GNULIB_MBSLEN = @GNULIB_MBSLEN@
-GNULIB_MBSNCASECMP = @GNULIB_MBSNCASECMP@
-GNULIB_MBSPBRK = @GNULIB_MBSPBRK@
-GNULIB_MBSPCASECMP = @GNULIB_MBSPCASECMP@
-GNULIB_MBSRCHR = @GNULIB_MBSRCHR@
-GNULIB_MBSSEP = @GNULIB_MBSSEP@
-GNULIB_MBSSPN = @GNULIB_MBSSPN@
-GNULIB_MBSSTR = @GNULIB_MBSSTR@
-GNULIB_MBSTOK_R = @GNULIB_MBSTOK_R@
-GNULIB_MEMMEM = @GNULIB_MEMMEM@
-GNULIB_MEMPCPY = @GNULIB_MEMPCPY@
-GNULIB_MEMRCHR = @GNULIB_MEMRCHR@
-GNULIB_MKDTEMP = @GNULIB_MKDTEMP@
-GNULIB_MKSTEMP = @GNULIB_MKSTEMP@
-GNULIB_PRINTF_POSIX = @GNULIB_PRINTF_POSIX@
-GNULIB_READLINK = @GNULIB_READLINK@
-GNULIB_SNPRINTF = @GNULIB_SNPRINTF@
-GNULIB_SPRINTF_POSIX = @GNULIB_SPRINTF_POSIX@
-GNULIB_STPCPY = @GNULIB_STPCPY@
-GNULIB_STPNCPY = @GNULIB_STPNCPY@
-GNULIB_STRCASESTR = @GNULIB_STRCASESTR@
-GNULIB_STRCHRNUL = @GNULIB_STRCHRNUL@
-GNULIB_STRDUP = @GNULIB_STRDUP@
-GNULIB_STRNDUP = @GNULIB_STRNDUP@
-GNULIB_STRNLEN = @GNULIB_STRNLEN@
-GNULIB_STRPBRK = @GNULIB_STRPBRK@
-GNULIB_STRSEP = @GNULIB_STRSEP@
-GNULIB_STRTOIMAX = @GNULIB_STRTOIMAX@
-GNULIB_STRTOK_R = @GNULIB_STRTOK_R@
-GNULIB_STRTOUMAX = @GNULIB_STRTOUMAX@
-GNULIB_VFPRINTF_POSIX = @GNULIB_VFPRINTF_POSIX@
-GNULIB_VPRINTF_POSIX = @GNULIB_VPRINTF_POSIX@
-GNULIB_VSNPRINTF = @GNULIB_VSNPRINTF@
-GNULIB_VSPRINTF_POSIX = @GNULIB_VSPRINTF_POSIX@
-GNU_PACKAGE = @GNU_PACKAGE@
-GREP = @GREP@
-HAVE_DECL_GETLOGIN_R = @HAVE_DECL_GETLOGIN_R@
-HAVE_DECL_IMAXABS = @HAVE_DECL_IMAXABS@
-HAVE_DECL_IMAXDIV = @HAVE_DECL_IMAXDIV@
-HAVE_DECL_MEMMEM = @HAVE_DECL_MEMMEM@
-HAVE_DECL_MEMRCHR = @HAVE_DECL_MEMRCHR@
-HAVE_DECL_SNPRINTF = @HAVE_DECL_SNPRINTF@
-HAVE_DECL_STRDUP = @HAVE_DECL_STRDUP@
-HAVE_DECL_STRNCASECMP = @HAVE_DECL_STRNCASECMP@
-HAVE_DECL_STRNDUP = @HAVE_DECL_STRNDUP@
-HAVE_DECL_STRNLEN = @HAVE_DECL_STRNLEN@
-HAVE_DECL_STRTOIMAX = @HAVE_DECL_STRTOIMAX@
-HAVE_DECL_STRTOK_R = @HAVE_DECL_STRTOK_R@
-HAVE_DECL_STRTOUMAX = @HAVE_DECL_STRTOUMAX@
-HAVE_DECL_VSNPRINTF = @HAVE_DECL_VSNPRINTF@
-HAVE_DUP2 = @HAVE_DUP2@
-HAVE_FTRUNCATE = @HAVE_FTRUNCATE@
-HAVE_GETSUBOPT = @HAVE_GETSUBOPT@
-HAVE_INTTYPES_H = @HAVE_INTTYPES_H@
-HAVE_LONG_LONG_INT = @HAVE_LONG_LONG_INT@
-HAVE_MEMPCPY = @HAVE_MEMPCPY@
-HAVE_MKDTEMP = @HAVE_MKDTEMP@
-HAVE_NETINET_IN_H = @HAVE_NETINET_IN_H@
-HAVE_READLINK = @HAVE_READLINK@
-HAVE_SIGNED_SIG_ATOMIC_T = @HAVE_SIGNED_SIG_ATOMIC_T@
-HAVE_SIGNED_WCHAR_T = @HAVE_SIGNED_WCHAR_T@
-HAVE_SIGNED_WINT_T = @HAVE_SIGNED_WINT_T@
-HAVE_STDINT_H = @HAVE_STDINT_H@
-HAVE_STPCPY = @HAVE_STPCPY@
-HAVE_STPNCPY = @HAVE_STPNCPY@
-HAVE_STRCASECMP = @HAVE_STRCASECMP@
-HAVE_STRCASESTR = @HAVE_STRCASESTR@
-HAVE_STRCHRNUL = @HAVE_STRCHRNUL@
-HAVE_STRNDUP = @HAVE_STRNDUP@
-HAVE_STRPBRK = @HAVE_STRPBRK@
-HAVE_STRSEP = @HAVE_STRSEP@
-HAVE_STRUCT_TIMEVAL = @HAVE_STRUCT_TIMEVAL@
-HAVE_SYS_BITYPES_H = @HAVE_SYS_BITYPES_H@
-HAVE_SYS_INTTYPES_H = @HAVE_SYS_INTTYPES_H@
-HAVE_SYS_SOCKET_H = @HAVE_SYS_SOCKET_H@
-HAVE_SYS_TIME_H = @HAVE_SYS_TIME_H@
-HAVE_SYS_TYPES_H = @HAVE_SYS_TYPES_H@
-HAVE_UNISTD_H = @HAVE_UNISTD_H@
-HAVE_UNSIGNED_LONG_LONG_INT = @HAVE_UNSIGNED_LONG_LONG_INT@
-HAVE_WCTYPE_H = @HAVE_WCTYPE_H@
-HAVE_WINSOCK2_H = @HAVE_WINSOCK2_H@
-HAVE_WINT_T = @HAVE_WINT_T@
-HAVE_WS2TCPIP_H = @HAVE_WS2TCPIP_H@
-HAVE__BOOL = @HAVE__BOOL@
-HELP2MAN = @HELP2MAN@
-INSTALL = @INSTALL@
-INSTALL_DATA = @INSTALL_DATA@
-INSTALL_PROGRAM = @INSTALL_PROGRAM@
-INSTALL_SCRIPT = @INSTALL_SCRIPT@
-INSTALL_STRIP_PROGRAM = @INSTALL_STRIP_PROGRAM@
-INTLLIBS = @INTLLIBS@
-INTL_MACOSX_LIBS = @INTL_MACOSX_LIBS@
-INTTYPES_H = @INTTYPES_H@
-KMEM_GROUP = @KMEM_GROUP@
-LDFLAGS = @LDFLAGS@
-LIBCOREUTILS_LIBDEPS = @LIBCOREUTILS_LIBDEPS@
-LIBCOREUTILS_LTLIBDEPS = @LIBCOREUTILS_LTLIBDEPS@
-LIBICONV = @LIBICONV@
-LIBINTL = @LIBINTL@
-LIBOBJS = @LIBOBJS@
-LIBS = @LIBS@
-LIB_ACL = @LIB_ACL@
-LIB_ACL_TRIVIAL = @LIB_ACL_TRIVIAL@
-LIB_CLOCK_GETTIME = @LIB_CLOCK_GETTIME@
-LIB_CRYPT = @LIB_CRYPT@
-LIB_EACCESS = @LIB_EACCESS@
-LIB_FDATASYNC = @LIB_FDATASYNC@
-LIB_GETHRXTIME = @LIB_GETHRXTIME@
-LIB_NANOSLEEP = @LIB_NANOSLEEP@
-LN_S = @LN_S@
-LTLIBICONV = @LTLIBICONV@
-LTLIBINTL = @LTLIBINTL@
-LTLIBOBJS = @LTLIBOBJS@
-MAKEINFO = @MAKEINFO@
-MAN = @MAN@
-MKDIR_P = @MKDIR_P@
-MSGFMT = @MSGFMT@
-MSGFMT_015 = @MSGFMT_015@
-MSGMERGE = @MSGMERGE@
-NEED_SETGID = @NEED_SETGID@
-NETINET_IN_H = @NETINET_IN_H@
-OBJEXT = @OBJEXT@
-OPTIONAL_BIN_PROGS = @OPTIONAL_BIN_PROGS@
-PACKAGE = @PACKAGE@
-PACKAGE_BUGREPORT = @PACKAGE_BUGREPORT@
-PACKAGE_NAME = @PACKAGE_NAME@
-PACKAGE_STRING = @PACKAGE_STRING@
-PACKAGE_TARNAME = @PACKAGE_TARNAME@
-PACKAGE_VERSION = @PACKAGE_VERSION@
-PATH_SEPARATOR = @PATH_SEPARATOR@
-PERL = @PERL@
-POSUB = @POSUB@
-POW_LIB = @POW_LIB@
-PRIPTR_PREFIX = @PRIPTR_PREFIX@
-PRI_MACROS_BROKEN = @PRI_MACROS_BROKEN@
-PTRDIFF_T_SUFFIX = @PTRDIFF_T_SUFFIX@
-RANLIB = @RANLIB@
-REPLACE_CHOWN = @REPLACE_CHOWN@
-REPLACE_FCHDIR = @REPLACE_FCHDIR@
-REPLACE_FPRINTF = @REPLACE_FPRINTF@
-REPLACE_GETCWD = @REPLACE_GETCWD@
-REPLACE_GETTIMEOFDAY = @REPLACE_GETTIMEOFDAY@
-REPLACE_LOCALTIME_R = @REPLACE_LOCALTIME_R@
-REPLACE_MKSTEMP = @REPLACE_MKSTEMP@
-REPLACE_NANOSLEEP = @REPLACE_NANOSLEEP@
-REPLACE_PRINTF = @REPLACE_PRINTF@
-REPLACE_SNPRINTF = @REPLACE_SNPRINTF@
-REPLACE_SPRINTF = @REPLACE_SPRINTF@
-REPLACE_STRPTIME = @REPLACE_STRPTIME@
-REPLACE_TIMEGM = @REPLACE_TIMEGM@
-REPLACE_VFPRINTF = @REPLACE_VFPRINTF@
-REPLACE_VPRINTF = @REPLACE_VPRINTF@
-REPLACE_VSNPRINTF = @REPLACE_VSNPRINTF@
-REPLACE_VSPRINTF = @REPLACE_VSPRINTF@
-SEQ_LIBM = @SEQ_LIBM@
-SET_MAKE = @SET_MAKE@
-SHELL = @SHELL@
-SIG_ATOMIC_T_SUFFIX = @SIG_ATOMIC_T_SUFFIX@
-SIZE_T_SUFFIX = @SIZE_T_SUFFIX@
-STDBOOL_H = @STDBOOL_H@
-STDINT_H = @STDINT_H@
-STRIP = @STRIP@
-SYS_SOCKET_H = @SYS_SOCKET_H@
-SYS_STAT_H = @SYS_STAT_H@
-SYS_TIME_H = @SYS_TIME_H@
-SYS_TIME_H_DEFINES_STRUCT_TIMESPEC = @SYS_TIME_H_DEFINES_STRUCT_TIMESPEC@
-TIME_H_DEFINES_STRUCT_TIMESPEC = @TIME_H_DEFINES_STRUCT_TIMESPEC@
-U = @U@
-USE_NLS = @USE_NLS@
-VERSION = @VERSION@
-WCHAR_H = @WCHAR_H@
-WCHAR_T_SUFFIX = @WCHAR_T_SUFFIX@
-WCTYPE_H = @WCTYPE_H@
-WINT_T_SUFFIX = @WINT_T_SUFFIX@
-XGETTEXT = @XGETTEXT@
-XGETTEXT_015 = @XGETTEXT_015@
-YACC = @YACC@
-YFLAGS = @YFLAGS@
-abs_builddir = @abs_builddir@
-abs_srcdir = @abs_srcdir@
-abs_top_builddir = @abs_top_builddir@
-abs_top_srcdir = @abs_top_srcdir@
-ac_ct_CC = @ac_ct_CC@
-am__include = @am__include@
-am__leading_dot = @am__leading_dot@
-am__quote = @am__quote@
-am__tar = @am__tar@
-am__untar = @am__untar@
-bindir = @bindir@
-build = @build@
-build_alias = @build_alias@
-build_cpu = @build_cpu@
-build_os = @build_os@
-build_vendor = @build_vendor@
-builddir = @builddir@
-datadir = @datadir@
-datarootdir = @datarootdir@
-docdir = @docdir@
-dvidir = @dvidir@
-exec_prefix = @exec_prefix@
-gl_LIBOBJS = @gl_LIBOBJS@
-gl_LTLIBOBJS = @gl_LTLIBOBJS@
-host = @host@
-host_alias = @host_alias@
-host_cpu = @host_cpu@
-host_os = @host_os@
-host_vendor = @host_vendor@
-htmldir = @htmldir@
-includedir = @includedir@
-infodir = @infodir@
-install_sh = @install_sh@
-libdir = @libdir@
-libexecdir = @libexecdir@
-localedir = @localedir@
-localstatedir = @localstatedir@
-mandir = @mandir@
-mkdir_p = @mkdir_p@
-oldincludedir = @oldincludedir@
-pdfdir = @pdfdir@
-prefix = @prefix@
-program_transform_name = @program_transform_name@
-psdir = @psdir@
-sbindir = @sbindir@
-sharedstatedir = @sharedstatedir@
-srcdir = @srcdir@
-sysconfdir = @sysconfdir@
-target_alias = @target_alias@
-top_builddir = @top_builddir@
-top_srcdir = @top_srcdir@
-TESTS = \
- hard-verbose \
- backup-dir \
- dir2dir \
- no-target-dir \
- atomic \
- acl \
- reply-no \
- leak-fd \
- part-hardlink \
- hard-4 \
- hard-3 \
- hard-2 \
- perm-1 \
- i-link-no \
- part-fail \
- dup-source childproof i-4 i-5 update i-2 mv-special-1 \
- into-self into-self-2 into-self-3 into-self-4 \
- backup-is-src \
- i-1 hard-link-1 force partition-perm to-symlink dir-file diag \
- part-symlink part-rename trailing-slash
-
-EXTRA_DIST = $(TESTS) vfat
-TESTS_ENVIRONMENT = \
- PERL="$(PERL)" \
- EGREP="$(EGREP)" \
- CU_TEST_NAME=`basename $(abs_srcdir)`,$$tst \
- PATH="$(VG_PATH_PREFIX)`pwd`/../../src$(PATH_SEPARATOR)$$PATH" \
- CONFIG_HEADER=$(CONFIG_HEADER) \
- PROG=mv
-
-all: all-am
-
-.SUFFIXES:
-$(srcdir)/Makefile.in: $(srcdir)/Makefile.am $(am__configure_deps)
- @for dep in $?; do \
- case '$(am__configure_deps)' in \
- *$$dep*) \
- cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh \
- && exit 0; \
- exit 1;; \
- esac; \
- done; \
- echo ' cd $(top_srcdir) && $(AUTOMAKE) --gnu tests/mv/Makefile'; \
- cd $(top_srcdir) && \
- $(AUTOMAKE) --gnu tests/mv/Makefile
-.PRECIOUS: Makefile
-Makefile: $(srcdir)/Makefile.in $(top_builddir)/config.status
- @case '$?' in \
- *config.status*) \
- cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh;; \
- *) \
- echo ' cd $(top_builddir) && $(SHELL) ./config.status $(subdir)/$@ $(am__depfiles_maybe)'; \
- cd $(top_builddir) && $(SHELL) ./config.status $(subdir)/$@ $(am__depfiles_maybe);; \
- esac;
-
-$(top_builddir)/config.status: $(top_srcdir)/configure $(CONFIG_STATUS_DEPENDENCIES)
- cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh
-
-$(top_srcdir)/configure: $(am__configure_deps)
- cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh
-$(ACLOCAL_M4): $(am__aclocal_m4_deps)
- cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh
-tags: TAGS
-TAGS:
-
-ctags: CTAGS
-CTAGS:
-
-
-check-TESTS: $(TESTS)
- @failed=0; all=0; xfail=0; xpass=0; skip=0; ws='[ ]'; \
- srcdir=$(srcdir); export srcdir; \
- list=' $(TESTS) '; \
- if test -n "$$list"; then \
- for tst in $$list; do \
- if test -f ./$$tst; then dir=./; \
- elif test -f $$tst; then dir=; \
- else dir="$(srcdir)/"; fi; \
- if $(TESTS_ENVIRONMENT) $${dir}$$tst; then \
- all=`expr $$all + 1`; \
- case " $(XFAIL_TESTS) " in \
- *$$ws$$tst$$ws*) \
- xpass=`expr $$xpass + 1`; \
- failed=`expr $$failed + 1`; \
- echo "XPASS: $$tst"; \
- ;; \
- *) \
- echo "PASS: $$tst"; \
- ;; \
- esac; \
- elif test $$? -ne 77; then \
- all=`expr $$all + 1`; \
- case " $(XFAIL_TESTS) " in \
- *$$ws$$tst$$ws*) \
- xfail=`expr $$xfail + 1`; \
- echo "XFAIL: $$tst"; \
- ;; \
- *) \
- failed=`expr $$failed + 1`; \
- echo "FAIL: $$tst"; \
- ;; \
- esac; \
- else \
- skip=`expr $$skip + 1`; \
- echo "SKIP: $$tst"; \
- fi; \
- done; \
- if test "$$failed" -eq 0; then \
- if test "$$xfail" -eq 0; then \
- banner="All $$all tests passed"; \
- else \
- banner="All $$all tests behaved as expected ($$xfail expected failures)"; \
- fi; \
- else \
- if test "$$xpass" -eq 0; then \
- banner="$$failed of $$all tests failed"; \
- else \
- banner="$$failed of $$all tests did not behave as expected ($$xpass unexpected passes)"; \
- fi; \
- fi; \
- dashes="$$banner"; \
- skipped=""; \
- if test "$$skip" -ne 0; then \
- skipped="($$skip tests were not run)"; \
- test `echo "$$skipped" | wc -c` -le `echo "$$banner" | wc -c` || \
- dashes="$$skipped"; \
- fi; \
- report=""; \
- if test "$$failed" -ne 0 && test -n "$(PACKAGE_BUGREPORT)"; then \
- report="Please report to $(PACKAGE_BUGREPORT)"; \
- test `echo "$$report" | wc -c` -le `echo "$$banner" | wc -c` || \
- dashes="$$report"; \
- fi; \
- dashes=`echo "$$dashes" | sed s/./=/g`; \
- echo "$$dashes"; \
- echo "$$banner"; \
- test -z "$$skipped" || echo "$$skipped"; \
- test -z "$$report" || echo "$$report"; \
- echo "$$dashes"; \
- test "$$failed" -eq 0; \
- else :; fi
-
-distdir: $(DISTFILES)
- @srcdirstrip=`echo "$(srcdir)" | sed 's/[].[^$$\\*]/\\\\&/g'`; \
- topsrcdirstrip=`echo "$(top_srcdir)" | sed 's/[].[^$$\\*]/\\\\&/g'`; \
- list='$(DISTFILES)'; \
- dist_files=`for file in $$list; do echo $$file; done | \
- sed -e "s|^$$srcdirstrip/||;t" \
- -e "s|^$$topsrcdirstrip/|$(top_builddir)/|;t"`; \
- case $$dist_files in \
- */*) $(MKDIR_P) `echo "$$dist_files" | \
- sed '/\//!d;s|^|$(distdir)/|;s,/[^/]*$$,,' | \
- sort -u` ;; \
- esac; \
- for file in $$dist_files; do \
- if test -f $$file || test -d $$file; then d=.; else d=$(srcdir); fi; \
- if test -d $$d/$$file; then \
- dir=`echo "/$$file" | sed -e 's,/[^/]*$$,,'`; \
- if test -d $(srcdir)/$$file && test $$d != $(srcdir); then \
- cp -pR $(srcdir)/$$file $(distdir)$$dir || exit 1; \
- fi; \
- cp -pR $$d/$$file $(distdir)$$dir || exit 1; \
- else \
- test -f $(distdir)/$$file \
- || cp -p $$d/$$file $(distdir)/$$file \
- || exit 1; \
- fi; \
- done
-check-am: all-am
- $(MAKE) $(AM_MAKEFLAGS) check-TESTS
-check: check-am
-all-am: Makefile
-installdirs:
-install: install-am
-install-exec: install-exec-am
-install-data: install-data-am
-uninstall: uninstall-am
-
-install-am: all-am
- @$(MAKE) $(AM_MAKEFLAGS) install-exec-am install-data-am
-
-installcheck: installcheck-am
-install-strip:
- $(MAKE) $(AM_MAKEFLAGS) INSTALL_PROGRAM="$(INSTALL_STRIP_PROGRAM)" \
- install_sh_PROGRAM="$(INSTALL_STRIP_PROGRAM)" INSTALL_STRIP_FLAG=-s \
- `test -z '$(STRIP)' || \
- echo "INSTALL_PROGRAM_ENV=STRIPPROG='$(STRIP)'"` install
-mostlyclean-generic:
-
-clean-generic:
-
-distclean-generic:
- -test -z "$(CONFIG_CLEAN_FILES)" || rm -f $(CONFIG_CLEAN_FILES)
-
-maintainer-clean-generic:
- @echo "This command is intended for maintainers to use"
- @echo "it deletes files that may require special tools to rebuild."
-clean: clean-am
-
-clean-am: clean-generic mostlyclean-am
-
-distclean: distclean-am
- -rm -f Makefile
-distclean-am: clean-am distclean-generic
-
-dvi: dvi-am
-
-dvi-am:
-
-html: html-am
-
-info: info-am
-
-info-am:
-
-install-data-am:
-
-install-dvi: install-dvi-am
-
-install-exec-am:
-
-install-html: install-html-am
-
-install-info: install-info-am
-
-install-man:
-
-install-pdf: install-pdf-am
-
-install-ps: install-ps-am
-
-installcheck-am:
-
-maintainer-clean: maintainer-clean-am
- -rm -f Makefile
-maintainer-clean-am: distclean-am maintainer-clean-generic
-
-mostlyclean: mostlyclean-am
-
-mostlyclean-am: mostlyclean-generic
-
-pdf: pdf-am
-
-pdf-am:
-
-ps: ps-am
-
-ps-am:
-
-uninstall-am:
-
-.MAKE: install-am install-strip
-
-.PHONY: all all-am check check-TESTS check-am clean clean-generic \
- distclean distclean-generic distdir dvi dvi-am html html-am \
- info info-am install install-am install-data install-data-am \
- install-dvi install-dvi-am install-exec install-exec-am \
- install-html install-html-am install-info install-info-am \
- install-man install-pdf install-pdf-am install-ps \
- install-ps-am install-strip installcheck installcheck-am \
- installdirs maintainer-clean maintainer-clean-generic \
- mostlyclean mostlyclean-generic pdf pdf-am ps ps-am uninstall \
- uninstall-am
-
-# Tell versions [3.59,3.63) of GNU make to not export all variables.
-# Otherwise a system limit (for SysV at least) may be exceeded.
-.NOEXPORT:
diff --git a/tests/mv/acl b/tests/mv/acl
deleted file mode 100755
index 9128686..0000000
--- a/tests/mv/acl
+++ /dev/null
@@ -1,105 +0,0 @@
-#!/bin/sh
-# move files/directories across file system boundaries
-# and make sure acls are preserved
-
-# Copyright (C) 2005, 2006 Free Software Foundation, Inc.
-
-# This program is free software; you can redistribute it and/or modify
-# it under the terms of the GNU General Public License as published by
-# the Free Software Foundation; either version 2 of the License, or
-# (at your option) any later version.
-
-# This program is distributed in the hope that it will be useful,
-# but WITHOUT ANY WARRANTY; without even the implied warranty of
-# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
-# GNU General Public License for more details.
-
-# You should have received a copy of the GNU General Public License
-# along with this program; if not, write to the Free Software
-# Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA
-# 02110-1301, USA.
-
-. $srcdir/../acl
-. $srcdir/../other-fs-tmpdir
-# Make sure we get English translations.
-. $srcdir/../lang-default
-
-# Skip this test if cp was built without ACL support:
-grep '^#define USE_ACL 0' $CONFIG_HEADER > /dev/null && \
- {
- echo 1>&2 "$0: insufficient ACL support, so skipping this test"
- (exit 77); exit 77
- }
-
-if test "$VERBOSE" = yes; then
- set -x
- mv --version
- getfacl --version
- setfacl --version
-fi
-
-if test -z "$other_partition_tmpdir"; then
- (exit 77); exit 77
-fi
-
-pwd=`pwd`
-t0=`echo "$0"|sed 's,.*/,,'`.tmp; tmp=$t0/$$
-trap 'status=$?; cd "$pwd" && chmod -R u+rwx $t0 && rm -rf $t0 && exit $status' 0
-trap '(exit $?); exit $?' 1 2 13 15
-
-t0="$t0 $other_partition_tmpdir"
-
-framework_failure=0
-mkdir -p $tmp || framework_failure=1
-cd $tmp || framework_failure=1
-
-touch file || framework_failure=1
-t1=$other_partition_tmpdir/t1
-touch $t1 || framework_failure=1
-
-if test $framework_failure = 1; then
- echo 'failure in testing framework'
- (exit 1); exit 1
-fi
-
-skip=no
-# Ensure that setfacl and getfacl work on this file system.
-setfacl -m user:bin:rw file 2> /dev/null || skip=.
-# And on the destination file system.
-setfacl -m user:bin:rw $t1 || skip=$other_partition_tmpdir
-acl1=`getfacl file` || skip=yes
-
-test $skip != no &&
- {
- echo "$0: '$skip' is not on a suitable file system for this test" 1>&2
- echo "$0: skipping this test" 1>&2
- (exit 77); exit 77
- }
-
-# move the access acl of a file
-mv file $other_partition_tmpdir || fail=1
-acl2=`cd $other_partition_tmpdir && getfacl file` || framework_failure=1
-test "$acl1" = "$acl2" || fail=1
-
-# move the access acl of a directory
-mkdir dir || framework_failure=1
-setfacl -m user:bin:rw dir || framework_failure=1
-acl1=`getfacl dir` || framework_failure=1
-mv dir $other_partition_tmpdir || fail=1
-acl2=`cd $other_partition_tmpdir && getfacl dir` || framework_failure=1
-test "$acl1" = "$acl2" || fail=1
-
-# move the default acl of a directory
-mkdir dir2 || framework_failure=1
-setfacl -d -m user:bin:rw dir2 || framework_failure=1
-acl1=`getfacl dir2` || framework_failure=1
-mv dir2 $other_partition_tmpdir || fail=1
-acl2=`cd $other_partition_tmpdir && getfacl dir2` || framework_failure=1
-test "$acl1" = "$acl2" || fail=1
-
-if test $framework_failure = 1; then
- echo 'failure in testing framework'
- (exit 1); exit 1
-fi
-
-exit $fail
diff --git a/tests/mv/acl.sh b/tests/mv/acl.sh
new file mode 100755
index 0000000..9ed6332
--- /dev/null
+++ b/tests/mv/acl.sh
@@ -0,0 +1,67 @@
+#!/bin/sh
+# move files/directories across file system boundaries
+# and make sure acls are preserved
+
+# Copyright (C) 2005-2016 Free Software Foundation, Inc.
+
+# This program is free software: you can redistribute it and/or modify
+# it under the terms of the GNU General Public License as published by
+# the Free Software Foundation, either version 3 of the License, or
+# (at your option) any later version.
+
+# This program is distributed in the hope that it will be useful,
+# but WITHOUT ANY WARRANTY; without even the implied warranty of
+# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
+# GNU General Public License for more details.
+
+# You should have received a copy of the GNU General Public License
+# along with this program. If not, see <http://www.gnu.org/licenses/>.
+
+. "${srcdir=.}/tests/init.sh"; path_prepend_ ./src
+print_ver_ mv
+
+require_acl_
+
+# Skip this test if cp was built without ACL support:
+grep '^#define USE_ACL 1' $CONFIG_HEADER > /dev/null ||
+ skip_ "insufficient ACL support"
+
+cleanup_() { rm -rf "$other_partition_tmpdir"; }
+. "$abs_srcdir/tests/other-fs-tmpdir"
+
+touch file || framework_failure_
+t1=$other_partition_tmpdir/t1
+touch $t1 || framework_failure_
+
+skip_partition=none
+# Ensure that setfacl and getfacl work on this file system.
+setfacl -m user:bin:rw- file 2> /dev/null || skip_partition=.
+# And on the destination file system.
+setfacl -m user:bin:rw- $t1 || skip_partition=$other_partition_tmpdir
+acl1=$(getfacl file) || skip_partition=.
+
+test $skip_partition != none &&
+ skip_ "'$skip_partition' is not on a suitable file system for this test"
+
+# move the access acl of a file
+mv file "$other_partition_tmpdir" || fail=1
+acl2=$(cd "$other_partition_tmpdir" && getfacl file) || framework_failure_
+test "$acl1" = "$acl2" || fail=1
+
+# move the access acl of a directory
+mkdir dir || framework_failure_
+setfacl -m user:bin:rw- dir || framework_failure_
+acl1=$(getfacl dir) || framework_failure_
+mv dir "$other_partition_tmpdir" || fail=1
+acl2=$(cd "$other_partition_tmpdir" && getfacl dir) || framework_failure_
+test "$acl1" = "$acl2" || fail=1
+
+# move the default acl of a directory
+mkdir dir2 || framework_failure_
+setfacl -d -m user:bin:rw- dir2 || framework_failure_
+acl1=$(getfacl dir2) || framework_failure_
+mv dir2 "$other_partition_tmpdir" || fail=1
+acl2=$(cd "$other_partition_tmpdir" && getfacl dir2) || framework_failure_
+test "$acl1" = "$acl2" || fail=1
+
+Exit $fail
diff --git a/tests/mv/atomic b/tests/mv/atomic
deleted file mode 100755
index 1fa0736..0000000
--- a/tests/mv/atomic
+++ /dev/null
@@ -1,69 +0,0 @@
-#!/bin/sh
-# ensure that mv doesn't first unlink its destination in one particular case
-
-# Copyright (C) 2006, 2006 Free Software Foundation, Inc.
-
-# This program is free software; you can redistribute it and/or modify
-# it under the terms of the GNU General Public License as published by
-# the Free Software Foundation; either version 2 of the License, or
-# (at your option) any later version.
-
-# This program is distributed in the hope that it will be useful,
-# but WITHOUT ANY WARRANTY; without even the implied warranty of
-# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
-# GNU General Public License for more details.
-
-# You should have received a copy of the GNU General Public License
-# along with this program; if not, write to the Free Software
-# Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA
-# 02110-1301, USA.
-
-if test "$VERBOSE" = yes; then
- set -x
- mv --version
-fi
-
-pwd=`pwd`
-t0=`echo "$0"|sed 's,.*/,,'`.tmp; tmp=$t0/$$
-trap 'status=$?; cd "$pwd" && chmod -R u+rwx $t0 && rm -rf $t0 && exit $status' 0
-trap '(exit $?); exit $?' 1 2 13 15
-
-framework_failure=0
-mkdir -p $tmp || framework_failure=1
-cd $tmp || framework_failure=1
-
-# Before the fix, mv would unnecessarily unlink the destination symlink:
-# $ rm -rf s[12]; ln -s / s1; ln -s /tmp s2; strace -qe unlink /bin/mv -T s1 s2
-# unlink("s2") = 0
-#
-# With the fix, it doesn't call unlink:
-# $ rm -rf s[12]; ln -s / s1; ln -s /tmp s2; strace -qe unlink ./mv -T s1 s2
-# $
-
-ln -s t1 s1 || framework_failure=1
-ln -s t2 s2 || framework_failure=1
-
-if test $framework_failure = 1; then
- echo "$0: failure in testing framework" 1>&2
- (exit 1); exit 1
-fi
-
-# Skip this test on systems without strace.
-strace -V < /dev/null > ver 2>&1 || skip=1
-if test "$skip" = 1; then
- echo "$0: no strace program, so skipping this test" 1>&2
- (exit 77); exit 77
-fi
-
-fail=0
-
-strace -qe unlink mv -T s1 s2 > out 2>&1 || fail=1
-$EGREP 'unlink.*"s1"' out && fail=1
-
-# Ensure that the source, s1, is gone.
-ls -dl s1 > /dev/null 2>&1 && fail=1
-
-# Ensure that the destination, s2, contains the link from s1.
-test "`readlink s2`" = t1 || fail=1
-
-(exit $fail); exit $fail
diff --git a/tests/mv/atomic.sh b/tests/mv/atomic.sh
new file mode 100755
index 0000000..42cbc79
--- /dev/null
+++ b/tests/mv/atomic.sh
@@ -0,0 +1,46 @@
+#!/bin/sh
+# ensure that mv doesn't first unlink its destination in one particular case
+
+# Copyright (C) 2006-2016 Free Software Foundation, Inc.
+
+# This program is free software: you can redistribute it and/or modify
+# it under the terms of the GNU General Public License as published by
+# the Free Software Foundation, either version 3 of the License, or
+# (at your option) any later version.
+
+# This program is distributed in the hope that it will be useful,
+# but WITHOUT ANY WARRANTY; without even the implied warranty of
+# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
+# GNU General Public License for more details.
+
+# You should have received a copy of the GNU General Public License
+# along with this program. If not, see <http://www.gnu.org/licenses/>.
+
+. "${srcdir=.}/tests/init.sh"; path_prepend_ ./src
+print_ver_ mv
+require_strace_ unlink
+
+# Before the fix, mv would unnecessarily unlink the destination symlink:
+# $ rm -rf s[12]; ln -s / s1; ln -s /tmp s2
+# $ strace -qe unlink /bin/mv -T s1 s2
+# unlink("s2") = 0
+#
+# With the fix, it doesn't call unlink:
+# $ rm -rf s[12]; ln -s / s1; ln -s /tmp s2
+# $ strace -qe unlink ./mv -T s1 s2
+# $
+
+ln -s t1 s1 || framework_failure_
+ln -s t2 s2 || framework_failure_
+
+
+strace -qe unlink mv -T s1 s2 > out 2>&1 || fail=1
+$EGREP 'unlink.*"s1"' out && fail=1
+
+# Ensure that the source, s1, is gone.
+ls -dl s1 > /dev/null 2>&1 && fail=1
+
+# Ensure that the destination, s2, contains the link from s1.
+test "$(readlink s2)" = t1 || fail=1
+
+Exit $fail
diff --git a/tests/mv/atomic2.sh b/tests/mv/atomic2.sh
new file mode 100755
index 0000000..bb774d8
--- /dev/null
+++ b/tests/mv/atomic2.sh
@@ -0,0 +1,45 @@
+#!/bin/sh
+# ensure that mv doesn't first unlink a multi-hard-linked destination
+
+# Copyright (C) 2008-2016 Free Software Foundation, Inc.
+
+# This program is free software: you can redistribute it and/or modify
+# it under the terms of the GNU General Public License as published by
+# the Free Software Foundation, either version 3 of the License, or
+# (at your option) any later version.
+
+# This program is distributed in the hope that it will be useful,
+# but WITHOUT ANY WARRANTY; without even the implied warranty of
+# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
+# GNU General Public License for more details.
+
+# You should have received a copy of the GNU General Public License
+# along with this program. If not, see <http://www.gnu.org/licenses/>.
+
+. "${srcdir=.}/tests/init.sh"; path_prepend_ ./src
+print_ver_ mv
+require_strace_ unlink
+
+# Before the fix, mv would unnecessarily unlink the destination symlink:
+# $ rm -f a b b2; touch a b; ln b b2; strace -e unlink /p/bin/mv a b
+# unlink("b") = 0
+#
+# With the fix, it doesn't call unlink:
+# $ rm -f a b b2; touch a b; ln b b2; strace -e unlink ./mv a b
+# $
+
+touch a b || framework_failure_
+ln b b2 || framework_failure_
+
+
+strace -qe unlink mv a b > out 2>&1 || fail=1
+$EGREP 'unlink.*"b"' out && fail=1
+
+# Ensure that the source, "a", is gone.
+ls -dl a > /dev/null 2>&1 && fail=1
+
+# Ensure that the destination, "b", has link count 1.
+n_links=$(stat --printf=%h b) || fail=1
+test "$n_links" = 1 || fail=1
+
+Exit $fail
diff --git a/tests/mv/backup-dir b/tests/mv/backup-dir
deleted file mode 100755
index 72ffce1..0000000
--- a/tests/mv/backup-dir
+++ /dev/null
@@ -1,57 +0,0 @@
-#!/bin/sh
-# Ensure "mv --verbose --backup" works the same for dirs and non-dirs.
-
-# Copyright (C) 2006 Free Software Foundation, Inc.
-
-# This program is free software; you can redistribute it and/or modify
-# it under the terms of the GNU General Public License as published by
-# the Free Software Foundation; either version 2 of the License, or
-# (at your option) any later version.
-
-# This program is distributed in the hope that it will be useful,
-# but WITHOUT ANY WARRANTY; without even the implied warranty of
-# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
-# GNU General Public License for more details.
-
-# You should have received a copy of the GNU General Public License
-# along with this program; if not, write to the Free Software
-# Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA
-# 02110-1301, USA.
-
-if test "$VERBOSE" = yes; then
- set -x
- mv --version
-fi
-
-. $srcdir/../envvar-check
-. $srcdir/../lang-default
-
-pwd=`pwd`
-t0=`echo "$0"|sed 's,.*/,,'`.tmp; tmp=$t0/$$
-trap 'status=$?; cd "$pwd" && chmod -R u+rwx $t0 && rm -rf $t0 && exit $status' 0
-trap '(exit $?); exit $?' 1 2 13 15
-
-framework_failure=0
-mkdir -p $tmp || framework_failure=1
-cd $tmp || framework_failure=1
-
-mkdir A B || framework_failure=1
-touch X Y || framework_failure=1
-
-if test $framework_failure = 1; then
- echo "$0: failure in testing framework" 1>&2
- (exit 1); exit 1
-fi
-
-fail=0
-
-# Before coreutils-6.2, the " (backup: `B.~1~')" suffix was not printed.
-mv --verbose --backup=numbered -T A B > out || fail=1
-cat <<\EOF > exp || fail=1
-`A' -> `B' (backup: `B.~1~')
-EOF
-
-cmp out exp || fail=1
-test $fail = 1 && diff out exp 2> /dev/null
-
-(exit $fail); exit $fail
diff --git a/tests/mv/backup-dir.sh b/tests/mv/backup-dir.sh
new file mode 100755
index 0000000..8f23123
--- /dev/null
+++ b/tests/mv/backup-dir.sh
@@ -0,0 +1,34 @@
+#!/bin/sh
+# Ensure "mv --verbose --backup" works the same for dirs and non-dirs.
+
+# Copyright (C) 2006-2016 Free Software Foundation, Inc.
+
+# This program is free software: you can redistribute it and/or modify
+# it under the terms of the GNU General Public License as published by
+# the Free Software Foundation, either version 3 of the License, or
+# (at your option) any later version.
+
+# This program is distributed in the hope that it will be useful,
+# but WITHOUT ANY WARRANTY; without even the implied warranty of
+# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
+# GNU General Public License for more details.
+
+# You should have received a copy of the GNU General Public License
+# along with this program. If not, see <http://www.gnu.org/licenses/>.
+
+. "${srcdir=.}/tests/init.sh"; path_prepend_ ./src
+print_ver_ mv
+
+mkdir A B || framework_failure_
+touch X Y || framework_failure_
+
+
+# Before coreutils-6.2, the " (backup: 'B.~1~')" suffix was not printed.
+mv --verbose --backup=numbered -T A B > out || fail=1
+cat <<\EOF > exp || fail=1
+'A' -> 'B' (backup: 'B.~1~')
+EOF
+
+compare exp out || fail=1
+
+Exit $fail
diff --git a/tests/mv/backup-is-src b/tests/mv/backup-is-src
deleted file mode 100755
index 8d5c69d..0000000
--- a/tests/mv/backup-is-src
+++ /dev/null
@@ -1,66 +0,0 @@
-#!/bin/sh
-# Force mv to use the copying code.
-
-# Copyright (C) 1998, 1999, 2000, 2004 Free Software Foundation, Inc.
-
-# This program is free software; you can redistribute it and/or modify
-# it under the terms of the GNU General Public License as published by
-# the Free Software Foundation; either version 2 of the License, or
-# (at your option) any later version.
-
-# This program is distributed in the hope that it will be useful,
-# but WITHOUT ANY WARRANTY; without even the implied warranty of
-# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
-# GNU General Public License for more details.
-
-# You should have received a copy of the GNU General Public License
-# along with this program; if not, write to the Free Software
-# Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA
-# 02110-1301, USA.
-
-if test "$VERBOSE" = yes; then
- set -x
- mv --version
-fi
-
-. $srcdir/../other-fs-tmpdir
-. $srcdir/../envvar-check
-
-if test -z "$other_partition_tmpdir"; then
- exit 77
-fi
-
-a="$other_partition_tmpdir/a"
-a2="$other_partition_tmpdir/a~"
-
-framework_failure=0
-rm -f $a $a2 || framework_failure=1
-echo a > $a || framework_failure=1
-echo a2 > $a2 || framework_failure=1
-
-if test $framework_failure = 1; then
- echo 'failure in testing framework'
- exit 1
-fi
-
-# Make sure we get English translations.
-. $srcdir/../lang-default
-
-# This mv command should exit nonzero.
-mv --b=simple $a2 $a > out 2>&1 && fail=1
-
-sed \
- -e "s,mv:,XXX:," \
- -e "s,$a,YYY," \
- -e "s,$a2,ZZZ," \
- out > out2
-
-cat > exp <<\EOF
-XXX: backing up `YYY' would destroy source; `ZZZ' not moved
-EOF
-
-cmp out2 exp || fail=1
-
-rm -fr out out2 exp $a $a2 $other_partition_tmpdir
-
-exit $fail
diff --git a/tests/mv/backup-is-src.sh b/tests/mv/backup-is-src.sh
new file mode 100755
index 0000000..83411e6
--- /dev/null
+++ b/tests/mv/backup-is-src.sh
@@ -0,0 +1,46 @@
+#!/bin/sh
+# Force mv to use the copying code.
+
+# Copyright (C) 1998-2016 Free Software Foundation, Inc.
+
+# This program is free software: you can redistribute it and/or modify
+# it under the terms of the GNU General Public License as published by
+# the Free Software Foundation, either version 3 of the License, or
+# (at your option) any later version.
+
+# This program is distributed in the hope that it will be useful,
+# but WITHOUT ANY WARRANTY; without even the implied warranty of
+# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
+# GNU General Public License for more details.
+
+# You should have received a copy of the GNU General Public License
+# along with this program. If not, see <http://www.gnu.org/licenses/>.
+
+. "${srcdir=.}/tests/init.sh"; path_prepend_ ./src
+print_ver_ mv
+cleanup_() { rm -rf "$other_partition_tmpdir"; }
+. "$abs_srcdir/tests/other-fs-tmpdir"
+
+a="$other_partition_tmpdir/a"
+a2="$other_partition_tmpdir/a~"
+
+rm -f "$a" "$a2" || framework_failure_
+echo a > "$a" || framework_failure_
+echo a2 > "$a2" || framework_failure_
+
+# This mv command should exit nonzero.
+mv --b=simple "$a2" "$a" > out 2>&1 && fail=1
+
+sed \
+ -e "s,mv:,XXX:," \
+ -e "s,$a,YYY," \
+ -e "s,$a2,ZZZ," \
+ out > out2
+
+cat > exp <<\EOF
+XXX: backing up 'YYY' would destroy source; 'ZZZ' not moved
+EOF
+
+compare exp out2 || fail=1
+
+Exit $fail
diff --git a/tests/mv/childproof b/tests/mv/childproof
deleted file mode 100755
index 41cdfce..0000000
--- a/tests/mv/childproof
+++ /dev/null
@@ -1,92 +0,0 @@
-#!/bin/sh
-# Ensure that cp/mv don't clobber a just-copied file.
-# With fileutils-4.1 and earlier, this test would fail.
-
-# Copyright (C) 2001, 2004, 2006 Free Software Foundation, Inc.
-
-# This program is free software; you can redistribute it and/or modify
-# it under the terms of the GNU General Public License as published by
-# the Free Software Foundation; either version 2 of the License, or
-# (at your option) any later version.
-
-# This program is distributed in the hope that it will be useful,
-# but WITHOUT ANY WARRANTY; without even the implied warranty of
-# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
-# GNU General Public License for more details.
-
-# You should have received a copy of the GNU General Public License
-# along with this program; if not, write to the Free Software
-# Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA
-# 02110-1301, USA.
-
-if test "$VERBOSE" = yes; then
- set -x
- cp --version
- mv --version
-fi
-
-. $srcdir/../envvar-check
-. $srcdir/../lang-default
-PRIV_CHECK_ARG=require-non-root . $srcdir/../priv-check
-
-pwd=`pwd`
-tmp=childproof.$$
-trap 'status=$?; cd "$pwd" && rm -rf $tmp && exit $status' 0
-trap '(exit $?); exit' 1 2 13 15
-
-framework_failure=0
-mkdir $tmp || framework_failure=1
-cd $tmp || framework_failure=1
-mkdir a b c || framework_failure=1
-echo a > a/f || framework_failure=1
-echo b > b/f || framework_failure=1
-
-if test $framework_failure = 1; then
- echo 'failure in testing framework' 1>&2
- (exit 1); exit 1
-fi
-
-fail=0
-
-cp a/f b/f c 2> /dev/null && fail=1
-test -f a/f || fail=1
-test -f b/f || fail=1
-test -f c/f || fail=1
-test "`cat c/f`" = a || fail=1
-rm -f c/f
-
-# With --backup=numbered, it should succeed
-cp --backup=numbered a/f b/f c || fail=1
-test -f a/f || fail=1
-test -f b/f || fail=1
-test -f c/f || fail=1
-test -f c/f.~1~ || fail=1
-rm -f c/f*
-
-mv a/f b/f c 2> /dev/null && fail=1
-test -f a/f && fail=1
-test -f b/f || fail=1
-test -f c/f || fail=1
-test "`cat c/f`" = a || fail=1
-
-# Make sure mv still works when moving hard links.
-# This is where the same_file test is necessary, and why
-# we save file names in addition to dev/ino.
-rm -f c/f* b/f
-touch a/f
-ln a/f b/g
-mv a/f b/g c || fail=1
-test -f a/f && fail=1
-test -f b/g && fail=1
-test -f c/f || fail=1
-test -f c/g || fail=1
-
-touch a/f b/f b/g
-mv a/f b/f b/g c 2> /dev/null && fail=1
-test -f a/f && fail=1 # a/f should have been moved
-test -f b/f || fail=1 # b/f should remain
-test -f b/g && fail=1 # b/g should have been moved
-test -f c/f || fail=1
-test -f c/g || fail=1
-
-(exit $fail); exit $fail
diff --git a/tests/mv/childproof.sh b/tests/mv/childproof.sh
new file mode 100755
index 0000000..373078d
--- /dev/null
+++ b/tests/mv/childproof.sh
@@ -0,0 +1,83 @@
+#!/bin/sh
+# Ensure that cp/mv/ln don't clobber a just-copied/moved/linked file.
+# With fileutils-4.1 and earlier, this test would fail for cp and mv.
+# With coreutils-6.9 and earlier, this test would fail for ln.
+
+# Copyright (C) 2001-2016 Free Software Foundation, Inc.
+
+# This program is free software: you can redistribute it and/or modify
+# it under the terms of the GNU General Public License as published by
+# the Free Software Foundation, either version 3 of the License, or
+# (at your option) any later version.
+
+# This program is distributed in the hope that it will be useful,
+# but WITHOUT ANY WARRANTY; without even the implied warranty of
+# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
+# GNU General Public License for more details.
+
+# You should have received a copy of the GNU General Public License
+# along with this program. If not, see <http://www.gnu.org/licenses/>.
+
+. "${srcdir=.}/tests/init.sh"; path_prepend_ ./src
+print_ver_ cp mv ln
+
+skip_if_root_
+
+mkdir a b c || framework_failure_
+echo a > a/f || framework_failure_
+echo b > b/f || framework_failure_
+
+
+returns_ 1 cp a/f b/f c 2> /dev/null || fail=1
+test -f a/f || fail=1
+test -f b/f || fail=1
+test -f c/f || fail=1
+test "$(cat c/f)" = a || fail=1
+rm -f c/f
+
+# With --backup=numbered, it should succeed
+cp --backup=numbered a/f b/f c || fail=1
+test -f a/f || fail=1
+test -f b/f || fail=1
+test -f c/f || fail=1
+test -f c/f.~1~ || fail=1
+rm -f c/f*
+
+returns_ 1 mv a/f b/f c 2> /dev/null || fail=1
+test -f a/f && fail=1
+test -f b/f || fail=1
+test -f c/f || fail=1
+test "$(cat c/f)" = a || fail=1
+
+# Make sure mv still works when moving hard links.
+# This is where the same_file test is necessary, and why
+# we save file names in addition to dev/ino.
+rm -f c/f* b/f
+touch a/f
+ln a/f b/g
+mv a/f b/g c || fail=1
+test -f a/f && fail=1
+test -f b/g && fail=1
+test -f c/f || fail=1
+test -f c/g || fail=1
+
+touch a/f b/f b/g
+returns_ 1 mv a/f b/f b/g c 2> /dev/null || fail=1
+test -f a/f && fail=1 # a/f should have been moved
+test -f b/f || fail=1 # b/f should remain
+test -f b/g && fail=1 # b/g should have been moved
+test -f c/f || fail=1
+test -f c/g || fail=1
+
+# Test ln -f.
+
+rm -f a/f b/f c/f
+echo a > a/f || fail=1
+echo b > b/f || fail=1
+returns_ 1 ln -f a/f b/f c 2> /dev/null || fail=1
+# a/f and c/f must be linked
+test $(stat --format %i a/f) = $(stat --format %i c/f) || fail=1
+# b/f and c/f must not be linked
+test $(stat --format %i b/f) = $(stat --format %i c/f) && fail=1
+
+Exit $fail
diff --git a/tests/mv/diag b/tests/mv/diag
deleted file mode 100755
index 63eb3c6..0000000
--- a/tests/mv/diag
+++ /dev/null
@@ -1,70 +0,0 @@
-#!/bin/sh
-# make sure we get proper diagnostics: e.g., with --target-dir=d but no args
-
-# Copyright (C) 2000, 2004, 2006 Free Software Foundation, Inc.
-
-# This program is free software; you can redistribute it and/or modify
-# it under the terms of the GNU General Public License as published by
-# the Free Software Foundation; either version 2 of the License, or
-# (at your option) any later version.
-
-# This program is distributed in the hope that it will be useful,
-# but WITHOUT ANY WARRANTY; without even the implied warranty of
-# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
-# GNU General Public License for more details.
-
-# You should have received a copy of the GNU General Public License
-# along with this program; if not, write to the Free Software
-# Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA
-# 02110-1301, USA.
-
-if test "$VERBOSE" = yes; then
- set -x
- mv --version
-fi
-
-# Make sure we get English translations.
-. $srcdir/../lang-default
-
-pwd=`pwd`
-tmp=diag-$$
-trap 'status=$?; cd "$pwd" && rm -rf $tmp && exit $status' 0
-trap 'exit $?' 1 2 13 15
-
-framework_failure=0
-mkdir $tmp || framework_failure=1
-cd $tmp || framework_failure=1
-
-touch f1 || framework_failure=1
-touch f2 || framework_failure=1
-touch d || framework_failure=1
-
-if test $framework_failure = 1; then
- echo 'failure in testing framework'
- exit 1
-fi
-
-# These mv commands should all exit nonzero.
-
-# Too few args. This first one did fail, but with an incorrect diagnostic
-# until fileutils-4.0u.
-mv --target=. >> out 2>&1 && fail=1
-mv no-file >> out 2>&1 && fail=1
-
-# Target is not a directory.
-mv f1 f2 f1 >> out 2>&1 && fail=1
-mv --target=f2 f1 >> out 2>&1 && fail=1
-
-cat > exp <<\EOF
-mv: missing file operand
-Try `mv --help' for more information.
-mv: missing destination file operand after `no-file'
-Try `mv --help' for more information.
-mv: target `f1' is not a directory
-mv: target `f2' is not a directory
-EOF
-
-cmp out exp || fail=1
-
-(exit $fail)
-exit $fail
diff --git a/tests/mv/diag.sh b/tests/mv/diag.sh
new file mode 100755
index 0000000..ae5ae81
--- /dev/null
+++ b/tests/mv/diag.sh
@@ -0,0 +1,48 @@
+#!/bin/sh
+# make sure we get proper diagnostics: e.g., with --target-dir=d but no args
+
+# Copyright (C) 2000-2016 Free Software Foundation, Inc.
+
+# This program is free software: you can redistribute it and/or modify
+# it under the terms of the GNU General Public License as published by
+# the Free Software Foundation, either version 3 of the License, or
+# (at your option) any later version.
+
+# This program is distributed in the hope that it will be useful,
+# but WITHOUT ANY WARRANTY; without even the implied warranty of
+# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
+# GNU General Public License for more details.
+
+# You should have received a copy of the GNU General Public License
+# along with this program. If not, see <http://www.gnu.org/licenses/>.
+
+. "${srcdir=.}/tests/init.sh"; path_prepend_ ./src
+print_ver_ mv
+
+touch f1 || framework_failure_
+touch f2 || framework_failure_
+touch d || framework_failure_
+
+# These mv commands should all exit nonzero.
+
+# Too few args. This first one did fail, but with an incorrect diagnostic
+# until fileutils-4.0u.
+mv --target=. >> out 2>&1 && fail=1
+mv no-file >> out 2>&1 && fail=1
+
+# Target is not a directory.
+mv f1 f2 f1 >> out 2>&1 && fail=1
+mv --target=f2 f1 >> out 2>&1 && fail=1
+
+cat > exp <<\EOF
+mv: missing file operand
+Try 'mv --help' for more information.
+mv: missing destination file operand after 'no-file'
+Try 'mv --help' for more information.
+mv: target 'f1' is not a directory
+mv: target 'f2' is not a directory
+EOF
+
+compare exp out || fail=1
+
+Exit $fail
diff --git a/tests/mv/dir-file b/tests/mv/dir-file
deleted file mode 100755
index 9c540b2..0000000
--- a/tests/mv/dir-file
+++ /dev/null
@@ -1,47 +0,0 @@
-#!/bin/sh
-# mv must fail when src and dest are mismatched directory/non-directory.
-
-# Copyright (C) 2000, 2006 Free Software Foundation, Inc.
-
-# This program is free software; you can redistribute it and/or modify
-# it under the terms of the GNU General Public License as published by
-# the Free Software Foundation; either version 2 of the License, or
-# (at your option) any later version.
-
-# This program is distributed in the hope that it will be useful,
-# but WITHOUT ANY WARRANTY; without even the implied warranty of
-# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
-# GNU General Public License for more details.
-
-# You should have received a copy of the GNU General Public License
-# along with this program; if not, write to the Free Software
-# Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA
-# 02110-1301, USA.
-
-if test "$VERBOSE" = yes; then
- set -x
- mv --version
-fi
-
-tmp=mv-mismatch-$$
-pwd=`pwd`
-trap 'cd "$pwd" && rm -rf $tmp' 0 1 2 3 15
-
-framework_failure=0
-mkdir $tmp || framework_failure=1
-cd $tmp
-mkdir -p dir/file || framework_failure=1
-> file || framework_failure=1
-
-if test $framework_failure = 1; then
- echo 'failure in testing framework'
- exit 1
-fi
-
-fail=0
-
-# These should both fail, but until fileutils-4.0q only the second one did.
-mv dir file > /dev/null 2>&1 && fail=1
-mv file dir > /dev/null 2>&1 && fail=1
-
-exit $fail
diff --git a/tests/mv/dir-file.sh b/tests/mv/dir-file.sh
new file mode 100755
index 0000000..1857bb8
--- /dev/null
+++ b/tests/mv/dir-file.sh
@@ -0,0 +1,30 @@
+#!/bin/sh
+# mv must fail when src and dest are mismatched directory/non-directory.
+
+# Copyright (C) 2000-2016 Free Software Foundation, Inc.
+
+# This program is free software: you can redistribute it and/or modify
+# it under the terms of the GNU General Public License as published by
+# the Free Software Foundation, either version 3 of the License, or
+# (at your option) any later version.
+
+# This program is distributed in the hope that it will be useful,
+# but WITHOUT ANY WARRANTY; without even the implied warranty of
+# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
+# GNU General Public License for more details.
+
+# You should have received a copy of the GNU General Public License
+# along with this program. If not, see <http://www.gnu.org/licenses/>.
+
+. "${srcdir=.}/tests/init.sh"; path_prepend_ ./src
+print_ver_ mv
+
+mkdir -p dir/file || framework_failure_
+> file || framework_failure_
+
+
+# These should both fail, but until fileutils-4.0q only the second one did.
+returns_ 1 mv dir file > /dev/null 2>&1 || fail=1
+returns_ 1 mv file dir > /dev/null 2>&1 || fail=1
+
+Exit $fail
diff --git a/tests/mv/dir2dir b/tests/mv/dir2dir
deleted file mode 100755
index 11ae26e..0000000
--- a/tests/mv/dir2dir
+++ /dev/null
@@ -1,66 +0,0 @@
-#!/bin/sh
-# Ensure that mv prints the right diagnostic for a dir->dir move
-# where the destination directory is not empty.
-
-# Copyright (C) 2006 Free Software Foundation, Inc.
-
-# This program is free software; you can redistribute it and/or modify
-# it under the terms of the GNU General Public License as published by
-# the Free Software Foundation; either version 2 of the License, or
-# (at your option) any later version.
-
-# This program is distributed in the hope that it will be useful,
-# but WITHOUT ANY WARRANTY; without even the implied warranty of
-# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
-# GNU General Public License for more details.
-
-# You should have received a copy of the GNU General Public License
-# along with this program; if not, write to the Free Software
-# Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA
-# 02110-1301, USA.
-
-if test "$VERBOSE" = yes; then
- set -x
- mv --version
-fi
-
-. $srcdir/../envvar-check
-. $srcdir/../lang-default
-
-pwd=`pwd`
-t0=`echo "$0"|sed 's,.*/,,'`.tmp; tmp=$t0/$$
-trap 'status=$?; cd "$pwd" && chmod -R u+rwx $t0 && rm -rf $t0 && exit $status' 0
-trap '(exit $?); exit $?' 1 2 13 15
-
-framework_failure=0
-mkdir -p $tmp || framework_failure=1
-cd $tmp || framework_failure=1
-
-mkdir -p a/t b/t || framework_failure=1
-touch a/t/f || framework_failure=1
-
-
-if test $framework_failure = 1; then
- echo "$0: failure in testing framework" 1>&2
- (exit 1); exit 1
-fi
-
-fail=0
-
-# Expect this to fail with the expected diagnostic.
-# For an interrim (pre-6.0) release, it would give an erroneous
-# diagnostic about moving one directory to a subdirectory of itself.
-mv b/t a 2> out && fail=1
-
-# Accept any of these: EEXIST, ENOTEMPTY, EBUSY.
-sed 's/: File exists/: Directory not empty/'<out>o1;mv o1 out
-sed 's/: Device or resource busy/: Directory not empty/'<out>o1;mv o1 out
-
-cat <<\EOF > exp || fail=1
-mv: cannot move `b/t' to `a/t': Directory not empty
-EOF
-
-cmp out exp || fail=1
-test $fail = 1 && diff out exp 2> /dev/null
-
-(exit $fail); exit $fail
diff --git a/tests/mv/dir2dir.sh b/tests/mv/dir2dir.sh
new file mode 100755
index 0000000..4c34647
--- /dev/null
+++ b/tests/mv/dir2dir.sh
@@ -0,0 +1,42 @@
+#!/bin/sh
+# Ensure that mv prints the right diagnostic for a dir->dir move
+# where the destination directory is not empty.
+
+# Copyright (C) 2006-2016 Free Software Foundation, Inc.
+
+# This program is free software: you can redistribute it and/or modify
+# it under the terms of the GNU General Public License as published by
+# the Free Software Foundation, either version 3 of the License, or
+# (at your option) any later version.
+
+# This program is distributed in the hope that it will be useful,
+# but WITHOUT ANY WARRANTY; without even the implied warranty of
+# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
+# GNU General Public License for more details.
+
+# You should have received a copy of the GNU General Public License
+# along with this program. If not, see <http://www.gnu.org/licenses/>.
+
+. "${srcdir=.}/tests/init.sh"; path_prepend_ ./src
+print_ver_ mv
+
+mkdir -p a/t b/t || framework_failure_
+touch a/t/f || framework_failure_
+
+
+# Expect this to fail with the expected diagnostic.
+# For an interim (pre-6.0) release, it would give an erroneous
+# diagnostic about moving one directory to a subdirectory of itself.
+mv b/t a 2> out && fail=1
+
+# Accept any of these: EEXIST, ENOTEMPTY, EBUSY.
+sed 's/: File exists/: Directory not empty/'<out>o1;mv o1 out
+sed 's/: Device or resource busy/: Directory not empty/'<out>o1;mv o1 out
+
+cat <<\EOF > exp || fail=1
+mv: cannot move 'b/t' to 'a/t': Directory not empty
+EOF
+
+compare exp out || fail=1
+
+Exit $fail
diff --git a/tests/mv/dup-source b/tests/mv/dup-source
deleted file mode 100755
index 7965c91..0000000
--- a/tests/mv/dup-source
+++ /dev/null
@@ -1,90 +0,0 @@
-#!/bin/sh
-# Ensure that cp merely warns when a non-directory source file is
-# listed on the command line more than once. fileutils-4.1.1
-# made this fail: cp a a d/
-# Ensure that mv fails with a similar command.
-
-# Copyright (C) 2001, 2002, 2004, 2006 Free Software Foundation, Inc.
-
-# This program is free software; you can redistribute it and/or modify
-# it under the terms of the GNU General Public License as published by
-# the Free Software Foundation; either version 2 of the License, or
-# (at your option) any later version.
-
-# This program is distributed in the hope that it will be useful,
-# but WITHOUT ANY WARRANTY; without even the implied warranty of
-# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
-# GNU General Public License for more details.
-
-# You should have received a copy of the GNU General Public License
-# along with this program; if not, write to the Free Software
-# Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA
-# 02110-1301, USA.
-
-if test "$VERBOSE" = yes; then
- set -x
- cp --version
- mv --version
-fi
-
-. $srcdir/../envvar-check
-. $srcdir/../lang-default
-PRIV_CHECK_ARG=require-non-root . $srcdir/../priv-check
-
-pwd=`pwd`
-tmp=dup-src.$$
-trap 'status=$?; cd "$pwd" && rm -rf $tmp && exit $status' 0
-trap '(exit $?); exit' 1 2 13 15
-
-framework_failure=0
-mkdir $tmp || framework_failure=1
-cd $tmp || framework_failure=1
-
-if test $framework_failure = 1; then
- echo "$0: failure in testing framework" 1>&2
- (exit 1); exit 1
-fi
-
-fail=0
-
-for i in cp; do
-
- # cp may not fail in this case.
-
- rm -fr a d; touch a; mkdir d
- $i a a d/ 2> out || fail=1
- rm -fr a d; touch a; mkdir d
- $i ./a a d/ 2>> out || fail=1
-
- # cp succeeds with --backup=numbered.
- rm -fr a d; touch a; mkdir d
- $i --backup=numbered a a d/ 2>> out || fail=1
-
- # But not with plain `--backup'
- rm -fr a d; touch a; mkdir d
- $i --backup a a d/ 2>> out && fail=1
- cat <<EOF > exp
-$i: warning: source file \`a' specified more than once
-$i: warning: source file \`a' specified more than once
-$i: will not overwrite just-created \`d/a' with \`a'
-EOF
- cmp out exp || fail=1
- test $fail = 1 && diff out exp 2> /dev/null
-done
-
-for i in mv; do
- # But mv *does* fail in this case (it has to).
-
- rm -fr a d; touch a; mkdir d
- $i a a d/ 2> out && fail=1
- rm -fr a d; touch a; mkdir d
- $i ./a a d/ 2>> out && fail=1
- cat <<EOF > exp
-$i: cannot stat \`a': No such file or directory
-$i: cannot stat \`a': No such file or directory
-EOF
- cmp out exp || fail=1
- test $fail = 1 && diff out exp 2> /dev/null
-done
-
-(exit $fail); exit $fail
diff --git a/tests/mv/dup-source.sh b/tests/mv/dup-source.sh
new file mode 100755
index 0000000..efa4624
--- /dev/null
+++ b/tests/mv/dup-source.sh
@@ -0,0 +1,91 @@
+#!/bin/sh
+# Ensure that cp merely warns when a non-directory source file is
+# listed on the command line more than once. fileutils-4.1.1
+# made this fail: cp a a d/
+# Ensure that mv fails with a similar command.
+
+# Copyright (C) 2001-2016 Free Software Foundation, Inc.
+
+# This program is free software: you can redistribute it and/or modify
+# it under the terms of the GNU General Public License as published by
+# the Free Software Foundation, either version 3 of the License, or
+# (at your option) any later version.
+
+# This program is distributed in the hope that it will be useful,
+# but WITHOUT ANY WARRANTY; without even the implied warranty of
+# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
+# GNU General Public License for more details.
+
+# You should have received a copy of the GNU General Public License
+# along with this program. If not, see <http://www.gnu.org/licenses/>.
+
+. "${srcdir=.}/tests/init.sh"; path_prepend_ ./src
+print_ver_ cp mv
+
+skip_if_root_
+
+reset_files() { rm -fr a b d; touch a; mkdir b d; }
+
+for i in cp; do
+
+ # cp may not fail in this case.
+ reset_files
+ $i a a d/ 2> out || fail=1
+ reset_files
+ $i ./a a d/ 2>> out || fail=1
+
+ # Similarly for directories, but handle
+ # source == dest appropriately.
+ reset_files
+ $i -a ./b b d/ 2>> out || fail=1
+ reset_files
+ returns_ 1 $i -a ./b b b/ 2>> out || fail=1
+
+ # cp succeeds with --backup=numbered.
+ reset_files
+ $i --backup=numbered a a d/ 2>> out || fail=1
+
+ # But not with plain '--backup'
+ reset_files
+ returns_ 1 $i --backup a a d/ 2>> out || fail=1
+
+ cat <<EOF > exp
+$i: warning: source file 'a' specified more than once
+$i: warning: source file 'a' specified more than once
+$i: warning: source directory 'b' specified more than once
+$i: cannot copy a directory, './b', into itself, 'b/b'
+$i: warning: source directory 'b' specified more than once
+$i: will not overwrite just-created 'd/a' with 'a'
+EOF
+ compare exp out || fail=1
+done
+
+for i in mv; do
+ # But mv *does* fail in this case (it has to).
+ reset_files
+ returns_ 1 $i a a d/ 2> out || fail=1
+ returns_ 1 test -e a || fail=1
+ reset_files
+ returns_ 1 $i ./a a d/ 2>> out || fail=1
+ returns_ 1 test -e a || fail=1
+
+ # Similarly for directories, also handling
+ # source == dest appropriately.
+ reset_files
+ returns_ 1 $i ./b b d/ 2>> out || fail=1
+ returns_ 1 test -e b || fail=1
+ reset_files
+ returns_ 1 $i --verbose ./b b b/ 2>> out || fail=1
+ test -d b || fail=1
+
+ cat <<EOF > exp
+$i: cannot stat 'a': No such file or directory
+$i: cannot stat 'a': No such file or directory
+$i: cannot stat 'b': No such file or directory
+$i: cannot move './b' to a subdirectory of itself, 'b/b'
+$i: warning: source directory 'b' specified more than once
+EOF
+ compare exp out || fail=1
+done
+
+Exit $fail
diff --git a/tests/mv/force b/tests/mv/force
deleted file mode 100755
index 3836ec0..0000000
--- a/tests/mv/force
+++ /dev/null
@@ -1,58 +0,0 @@
-#!/bin/sh
-# move a file onto itself
-
-# Copyright (C) 1999, 2000, 2002 Free Software Foundation, Inc.
-
-# This program is free software; you can redistribute it and/or modify
-# it under the terms of the GNU General Public License as published by
-# the Free Software Foundation; either version 2 of the License, or
-# (at your option) any later version.
-
-# This program is distributed in the hope that it will be useful,
-# but WITHOUT ANY WARRANTY; without even the implied warranty of
-# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
-# GNU General Public License for more details.
-
-# You should have received a copy of the GNU General Public License
-# along with this program; if not, write to the Free Software
-# Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA
-# 02110-1301, USA.
-
-if test "$VERBOSE" = yes; then
- set -x
- mv --version
-fi
-
-ff=mvforce
-ff2=mvforce2
-
-framework_failure=0
-rm -f $ff $ff2 || framework_failure=1
-echo force-contents > $ff || framework_failure=1
-ln $ff $ff2 || framework_failure=1
-
-if test $framework_failure = 1; then
- echo 'failure in testing framework'
- exit 1
-fi
-
-# Make sure we get English translations.
-. $srcdir/../lang-default
-
-# This mv command should exit nonzero.
-mv $ff $ff > out 2>&1 && fail=1
-
-cat > exp <<EOF
-mv: \`$ff' and \`$ff' are the same file
-EOF
-
-cmp out exp || fail=1
-test `cat $ff` = force-contents || fail=1
-
-# This should succeed, even though the source and destination
-# device and inodes are the same.
-mv $ff $ff2 || fail=1
-
-rm -fr out exp $ff $ff2
-
-exit $fail
diff --git a/tests/mv/force.sh b/tests/mv/force.sh
new file mode 100755
index 0000000..faee6ea
--- /dev/null
+++ b/tests/mv/force.sh
@@ -0,0 +1,43 @@
+#!/bin/sh
+# move a file onto itself
+
+# Copyright (C) 1999-2016 Free Software Foundation, Inc.
+
+# This program is free software: you can redistribute it and/or modify
+# it under the terms of the GNU General Public License as published by
+# the Free Software Foundation, either version 3 of the License, or
+# (at your option) any later version.
+
+# This program is distributed in the hope that it will be useful,
+# but WITHOUT ANY WARRANTY; without even the implied warranty of
+# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
+# GNU General Public License for more details.
+
+# You should have received a copy of the GNU General Public License
+# along with this program. If not, see <http://www.gnu.org/licenses/>.
+
+. "${srcdir=.}/tests/init.sh"; path_prepend_ ./src
+print_ver_ mv
+
+ff=mvforce
+ff2=mvforce2
+
+echo force-contents > $ff || framework_failure_
+ln $ff $ff2 || framework_failure_
+
+# mv should fail for the same name, or separate hardlinks as in
+# both cases rename() will do nothing and return success.
+# One could unlink(src) in the hardlink case, but that would
+# introduce races with overlapping mv instances removing both hardlinks.
+
+for dest in $ff $ff2; do
+ # This mv command should exit nonzero.
+ mv $ff $dest > out 2>&1 && fail=1
+
+ printf "mv: '$ff' and '$dest' are the same file\n" > exp
+ compare exp out || fail=1
+
+ test $(cat $ff) = force-contents || fail=1
+done
+
+Exit $fail
diff --git a/tests/mv/hard-2 b/tests/mv/hard-2
deleted file mode 100755
index 101f334..0000000
--- a/tests/mv/hard-2
+++ /dev/null
@@ -1,97 +0,0 @@
-#!/bin/sh
-# Ensure that moving hard-linked arguments onto existing destinations works.
-# Likewise when using cp --preserve=link.
-
-# Copyright (C) 2003, 2006 Free Software Foundation, Inc.
-
-# This program is free software; you can redistribute it and/or modify
-# it under the terms of the GNU General Public License as published by
-# the Free Software Foundation; either version 2 of the License, or
-# (at your option) any later version.
-
-# This program is distributed in the hope that it will be useful,
-# but WITHOUT ANY WARRANTY; without even the implied warranty of
-# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
-# GNU General Public License for more details.
-
-# You should have received a copy of the GNU General Public License
-# along with this program; if not, write to the Free Software
-# Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA
-# 02110-1301, USA.
-
-if test "$VERBOSE" = yes; then
- set -x
- mv --version
- cp --version
-fi
-
-. $srcdir/../envvar-check
-PRIV_CHECK_ARG=require-non-root . $srcdir/../priv-check
-
-pwd=`pwd`
-t0=`echo "$0"|sed 's,.*/,,'`.tmp; tmp=$t0/$$
-trap 'status=$?; cd "$pwd" && chmod -R u+rwx $t0 && rm -rf $t0 && exit $status' 0
-trap '(exit $?); exit $?' 1 2 13 15
-
-framework_failure=0
-mkdir -p $tmp || framework_failure=1
-cd $tmp || framework_failure=1
-mkdir dst || framework_failure=1
-(cd dst && touch a b c) || framework_failure=1
-touch a || framework_failure=1
-ln a b || framework_failure=1
-ln a c || framework_failure=1
-
-if test $framework_failure = 1; then
- echo "$0: failure in testing framework" 1>&2
- (exit 1); exit 1
-fi
-
-fail=0
-
-# ======================================
-cp --preserve=link a b c dst || fail=1
-# The source files must remain.
-test -f a || fail=1
-test -f b || fail=1
-test -f c || fail=1
-cd dst
-
-# Three destination files must exist.
-test -f a || fail=1
-test -f b || fail=1
-test -f c || fail=1
-
-# The three i-node numbers must be the same.
-ia=`ls -i a|sed 's/ a//'`
-ib=`ls -i b|sed 's/ b//'`
-ic=`ls -i c|sed 's/ c//'`
-test $ia = $ib || fail=1
-test $ia = $ic || fail=1
-
-cd ..
-rm -f dst/[abc]
-(cd dst && touch a b c)
-
-# ======================================
-mv a b c dst || fail=1
-
-# The source files must be gone.
-test -f a && fail=1
-test -f b && fail=1
-test -f c && fail=1
-cd dst
-
-# Three destination files must exist.
-test -f a || fail=1
-test -f b || fail=1
-test -f c || fail=1
-
-# The three i-node numbers must be the same.
-ia=`ls -i a|sed 's/ a//'`
-ib=`ls -i b|sed 's/ b//'`
-ic=`ls -i c|sed 's/ c//'`
-test $ia = $ib || fail=1
-test $ia = $ic || fail=1
-
-(exit $fail); exit $fail
diff --git a/tests/mv/hard-2.sh b/tests/mv/hard-2.sh
new file mode 100755
index 0000000..3ccd69d
--- /dev/null
+++ b/tests/mv/hard-2.sh
@@ -0,0 +1,77 @@
+#!/bin/sh
+# Ensure that moving hard-linked arguments onto existing destinations works.
+# Likewise when using cp --preserve=link.
+
+# Copyright (C) 2003-2016 Free Software Foundation, Inc.
+
+# This program is free software: you can redistribute it and/or modify
+# it under the terms of the GNU General Public License as published by
+# the Free Software Foundation, either version 3 of the License, or
+# (at your option) any later version.
+
+# This program is distributed in the hope that it will be useful,
+# but WITHOUT ANY WARRANTY; without even the implied warranty of
+# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
+# GNU General Public License for more details.
+
+# You should have received a copy of the GNU General Public License
+# along with this program. If not, see <http://www.gnu.org/licenses/>.
+
+. "${srcdir=.}/tests/init.sh"; path_prepend_ ./src
+print_ver_ cp mv
+
+skip_if_root_
+
+mkdir dst || framework_failure_
+(cd dst && touch a b c) || framework_failure_
+touch a || framework_failure_
+ln a b || framework_failure_
+ln a c || framework_failure_
+
+
+# ======================================
+cp --preserve=link a b c dst || fail=1
+# The source files must remain.
+test -f a || fail=1
+test -f b || fail=1
+test -f c || fail=1
+cd dst
+
+# Three destination files must exist.
+test -f a || fail=1
+test -f b || fail=1
+test -f c || fail=1
+
+# The three i-node numbers must be the same.
+ia=$(ls -i a|sed 's/ a//')
+ib=$(ls -i b|sed 's/ b//')
+ic=$(ls -i c|sed 's/ c//')
+test $ia = $ib || fail=1
+test $ia = $ic || fail=1
+
+cd ..
+rm -f dst/[abc]
+(cd dst && touch a b c)
+
+# ======================================
+mv a b c dst || fail=1
+
+# The source files must be gone.
+test -f a && fail=1
+test -f b && fail=1
+test -f c && fail=1
+cd dst
+
+# Three destination files must exist.
+test -f a || fail=1
+test -f b || fail=1
+test -f c || fail=1
+
+# The three i-node numbers must be the same.
+ia=$(ls -i a|sed 's/ a//')
+ib=$(ls -i b|sed 's/ b//')
+ic=$(ls -i c|sed 's/ c//')
+test $ia = $ib || fail=1
+test $ia = $ic || fail=1
+
+Exit $fail
diff --git a/tests/mv/hard-3 b/tests/mv/hard-3
deleted file mode 100755
index ce83728..0000000
--- a/tests/mv/hard-3
+++ /dev/null
@@ -1,89 +0,0 @@
-#!/bin/sh
-# Ensure that using `cp --preserve=link' to copy hard-linked arguments
-# onto existing destinations works, even when one of the link operations fails.
-
-# Copyright (C) 2003, 2006, 2007 Free Software Foundation, Inc.
-
-# This program is free software; you can redistribute it and/or modify
-# it under the terms of the GNU General Public License as published by
-# the Free Software Foundation; either version 2 of the License, or
-# (at your option) any later version.
-
-# This program is distributed in the hope that it will be useful,
-# but WITHOUT ANY WARRANTY; without even the implied warranty of
-# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
-# GNU General Public License for more details.
-
-# You should have received a copy of the GNU General Public License
-# along with this program; if not, write to the Free Software
-# Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA
-# 02110-1301, USA.
-
-
-# This bug was fixed in coreutils-4.5.9.
-# To exercise this bug is non-trivial:
-# Set-up requires at least three hard-linked files. In copying them,
-# while preserving links, the initial copy must succeed, the attempt
-# to create the second file via `link' must fail, and the final `link'
-# (to create the third) must succeed. Before the corresponding fix,
-# the first and third destination files would not be linked.
-#
-# Note that this is nominally a test of `cp', yet it is in the tests/mv
-# directory, because it requires use of the --preserve=link option that
-# mv enables by default.
-
-if test "$VERBOSE" = yes; then
- set -x
- cp --version
-fi
-
-. $srcdir/../envvar-check
-PRIV_CHECK_ARG=require-non-root . $srcdir/../priv-check
-
-pwd=`pwd`
-t0=`echo "$0"|sed 's,.*/,,'`.tmp; tmp=$t0/$$
-trap 'status=$?; cd "$pwd" && chmod -R u+rwx $t0 && rm -rf $t0 && exit $status' 0
-trap '(exit $?); exit $?' 1 2 13 15
-
-framework_failure=0
-mkdir -p $tmp || framework_failure=1
-cd $tmp || framework_failure=1
-mkdir -p x dst/x || framework_failure=1
-touch dst/x/b || framework_failure=1
-chmod a-w dst/x
-touch a || framework_failure=1
-ln a x/b || framework_failure=1
-ln a c || framework_failure=1
-
-if test $framework_failure = 1; then
- echo "$0: failure in testing framework" 1>&2
- (exit 1); exit 1
-fi
-
-fail=0
-
-# ======================================
-# This must fail -- because x/b cannot be unlinked.
-cp --preserve=link --parents a x/b c dst 2> /dev/null && fail=1
-
-# Source files must remain.
-test -f a || fail=1
-test -f x/b || fail=1
-test -f c || fail=1
-cd dst
-
-# Three destination files must exist.
-test -f a || fail=1
-test -f x/b || fail=1
-test -f c || fail=1
-
-# The i-node numbers of a and c must be the same.
-ia=`ls -i a` || fail=1; set x $ia; ia=$2
-ic=`ls -i c` || fail=1; set x $ic; ic=$2
-test "$ia" = "$ic" || fail=1
-
-# The i-node number of x/b must be different.
-ib=`ls -i x/b` || fail=1; set x $ib; ib=$2
-test "$ia" = "$ib" && fail=1
-
-(exit $fail); exit $fail
diff --git a/tests/mv/hard-3.sh b/tests/mv/hard-3.sh
new file mode 100755
index 0000000..9aa06a4
--- /dev/null
+++ b/tests/mv/hard-3.sh
@@ -0,0 +1,69 @@
+#!/bin/sh
+# Ensure that using 'cp --preserve=link' to copy hard-linked arguments
+# onto existing destinations works, even when one of the link operations fails.
+
+# Copyright (C) 2003-2016 Free Software Foundation, Inc.
+
+# This program is free software: you can redistribute it and/or modify
+# it under the terms of the GNU General Public License as published by
+# the Free Software Foundation, either version 3 of the License, or
+# (at your option) any later version.
+
+# This program is distributed in the hope that it will be useful,
+# but WITHOUT ANY WARRANTY; without even the implied warranty of
+# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
+# GNU General Public License for more details.
+
+# You should have received a copy of the GNU General Public License
+# along with this program. If not, see <http://www.gnu.org/licenses/>.
+
+
+# This bug was fixed in coreutils-4.5.9.
+# To exercise this bug is non-trivial:
+# Set-up requires at least three hard-linked files. In copying them,
+# while preserving links, the initial copy must succeed, the attempt
+# to create the second file via 'link' must fail, and the final 'link'
+# (to create the third) must succeed. Before the corresponding fix,
+# the first and third destination files would not be linked.
+#
+# Note that this is nominally a test of 'cp', yet it is in the tests/mv
+# directory, because it requires use of the --preserve=link option that
+# mv enables by default.
+
+. "${srcdir=.}/tests/init.sh"; path_prepend_ ./src
+print_ver_ cp
+skip_if_root_
+
+mkdir -p x dst/x || framework_failure_
+touch dst/x/b || framework_failure_
+chmod a-w dst/x
+touch a || framework_failure_
+ln a x/b || framework_failure_
+ln a c || framework_failure_
+
+
+# ======================================
+# This must fail -- because x/b cannot be unlinked.
+cp --preserve=link --parents a x/b c dst 2> /dev/null && fail=1
+
+# Source files must remain.
+test -f a || fail=1
+test -f x/b || fail=1
+test -f c || fail=1
+cd dst
+
+# Three destination files must exist.
+test -f a || fail=1
+test -f x/b || fail=1
+test -f c || fail=1
+
+# The i-node numbers of a and c must be the same.
+ia=$(ls -i a) || fail=1; set x $ia; ia=$2
+ic=$(ls -i c) || fail=1; set x $ic; ic=$2
+test "$ia" = "$ic" || fail=1
+
+# The i-node number of x/b must be different.
+ib=$(ls -i x/b) || fail=1; set x $ib; ib=$2
+test "$ia" = "$ib" && fail=1
+
+Exit $fail
diff --git a/tests/mv/hard-4 b/tests/mv/hard-4
deleted file mode 100755
index 118479a..0000000
--- a/tests/mv/hard-4
+++ /dev/null
@@ -1,59 +0,0 @@
-#!/bin/sh
-# ensure that mv removes a in this case: touch a; ln a b; mv a b
-
-# Copyright (C) 2003, 2004, 2006 Free Software Foundation, Inc.
-
-# This program is free software; you can redistribute it and/or modify
-# it under the terms of the GNU General Public License as published by
-# the Free Software Foundation; either version 2 of the License, or
-# (at your option) any later version.
-
-# This program is distributed in the hope that it will be useful,
-# but WITHOUT ANY WARRANTY; without even the implied warranty of
-# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
-# GNU General Public License for more details.
-
-# You should have received a copy of the GNU General Public License
-# along with this program; if not, write to the Free Software
-# Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA
-# 02110-1301, USA.
-
-if test "$VERBOSE" = yes; then
- set -x
- mv --version
-fi
-
-. $srcdir/../envvar-check
-
-pwd=`pwd`
-t0=`echo "$0"|sed 's,.*/,,'`.tmp; tmp=$t0/$$
-trap 'status=$?; cd "$pwd" && chmod -R u+rwx $t0 && rm -rf $t0 && exit $status' 0
-trap '(exit $?); exit $?' 1 2 13 15
-
-framework_failure=0
-mkdir -p $tmp || framework_failure=1
-cd $tmp || framework_failure=1
-touch a || framework_failure=1
-ln a b || framework_failure=1
-
-if test $framework_failure = 1; then
- echo "$0: failure in testing framework" 1>&2
- (exit 1); exit 1
-fi
-
-fail=0
-
-mv a b || fail=1
-
-# In coreutils-5.0 and earlier, a would not be removed.
-test -r a && fail=1
-test -r b || fail=1
-
-# Make sure it works also with --backup.
-ln b a
-mv --backup=simple a b || fail=1
-test -r a && fail=1
-test -r b || fail=1
-test -r b~ || fail=1
-
-(exit $fail); exit $fail
diff --git a/tests/mv/hard-4.sh b/tests/mv/hard-4.sh
new file mode 100755
index 0000000..a0a38aa
--- /dev/null
+++ b/tests/mv/hard-4.sh
@@ -0,0 +1,41 @@
+#!/bin/sh
+# ensure that mv maintains a in this case: touch a; ln a b; mv a b
+
+# Copyright (C) 2003-2016 Free Software Foundation, Inc.
+
+# This program is free software: you can redistribute it and/or modify
+# it under the terms of the GNU General Public License as published by
+# the Free Software Foundation, either version 3 of the License, or
+# (at your option) any later version.
+
+# This program is distributed in the hope that it will be useful,
+# but WITHOUT ANY WARRANTY; without even the implied warranty of
+# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
+# GNU General Public License for more details.
+
+# You should have received a copy of the GNU General Public License
+# along with this program. If not, see <http://www.gnu.org/licenses/>.
+
+. "${srcdir=.}/tests/init.sh"; path_prepend_ ./src
+print_ver_ mv
+touch a || framework_failure_
+ln a b || framework_failure_
+
+# Between coreutils-5.0 and coreutils-8.24, 'a' would be removed.
+# Before coreutils-5.0.1 the issue would not have been diagnosed.
+# We don't emulate the rename(a,b) with unlink(a) as that would
+# introduce races with overlapping mv instances removing both links.
+mv a b 2>err && fail=1
+printf "mv: 'a' and 'b' are the same file\n" > exp
+compare exp err || fail=1
+
+test -r a || fail=1
+test -r b || fail=1
+
+# Make sure it works with --backup.
+mv --backup=simple a b || fail=1
+test -r a && fail=1
+test -r b || fail=1
+test -r b~ || fail=1
+
+Exit $fail
diff --git a/tests/mv/hard-link-1 b/tests/mv/hard-link-1
deleted file mode 100755
index 7ce9176..0000000
--- a/tests/mv/hard-link-1
+++ /dev/null
@@ -1,68 +0,0 @@
-#!/bin/sh
-# move a directory containing hard-linked files and
-# make sure the links are preserved
-
-# Copyright (C) 1998, 1999, 2000, 2004, 2006 Free Software Foundation, Inc.
-
-# This program is free software; you can redistribute it and/or modify
-# it under the terms of the GNU General Public License as published by
-# the Free Software Foundation; either version 2 of the License, or
-# (at your option) any later version.
-
-# This program is distributed in the hope that it will be useful,
-# but WITHOUT ANY WARRANTY; without even the implied warranty of
-# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
-# GNU General Public License for more details.
-
-# You should have received a copy of the GNU General Public License
-# along with this program; if not, write to the Free Software
-# Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA
-# 02110-1301, USA.
-
-if test "$VERBOSE" = yes; then
- set -x
- mv --version
-fi
-
-. $srcdir/../other-fs-tmpdir
-# Make sure we get English translations.
-. $srcdir/../lang-default
-
-pwd=`pwd`
-t0=`echo "$0"|sed 's,.*/,,'`.tmp; tmp=$t0/$$
-trap 'status=$?; cd "$pwd" && chmod -R u+rwx $t0 && rm -rf $t0 && exit $status' 0
-trap '(exit $?); exit $?' 1 2 13 15
-
-framework_failure=0
-mkdir -p $tmp || framework_failure=1
-cd $tmp || framework_failure=1
-
-if test -z "$other_partition_tmpdir"; then
- (exit 77); exit 77
-fi
-
-dir=hlink
-
-framework_failure=0
-mkdir $dir || framework_failure=1
-> $dir/a || framework_failure=1
-ln $dir/a $dir/b || framework_failure=1
-
-if test $framework_failure = 1; then
- echo 'failure in testing framework'
- (exit 1); exit 1
-fi
-
-mv $dir $other_partition_tmpdir || fail=1
-
-# Display inode numbers, one per line.
-ls -1i $other_partition_tmpdir/$dir > out || fail=1
-
-# Make sure the inode numbers are the same.
-a=`sed -n 's/ a$//p' out`
-b=`sed -n 's/ b$//p' out`
-test "$a" = "$b" || fail=1
-
-rm -fr out $dir $other_partition_tmpdir
-
-exit $fail
diff --git a/tests/mv/hard-link-1.sh b/tests/mv/hard-link-1.sh
new file mode 100755
index 0000000..a2e7fe9
--- /dev/null
+++ b/tests/mv/hard-link-1.sh
@@ -0,0 +1,41 @@
+#!/bin/sh
+# move a directory containing hard-linked files and
+# make sure the links are preserved
+
+# Copyright (C) 1998-2016 Free Software Foundation, Inc.
+
+# This program is free software: you can redistribute it and/or modify
+# it under the terms of the GNU General Public License as published by
+# the Free Software Foundation, either version 3 of the License, or
+# (at your option) any later version.
+
+# This program is distributed in the hope that it will be useful,
+# but WITHOUT ANY WARRANTY; without even the implied warranty of
+# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
+# GNU General Public License for more details.
+
+# You should have received a copy of the GNU General Public License
+# along with this program. If not, see <http://www.gnu.org/licenses/>.
+
+. "${srcdir=.}/tests/init.sh"; path_prepend_ ./src
+print_ver_ mv
+cleanup_() { rm -rf "$other_partition_tmpdir"; }
+. "$abs_srcdir/tests/other-fs-tmpdir"
+
+dir=hlink
+
+mkdir $dir || framework_failure_
+> $dir/a || framework_failure_
+ln $dir/a $dir/b || framework_failure_
+
+mv $dir "$other_partition_tmpdir" || fail=1
+
+# Display inode numbers, one per line.
+ls -1i "$other_partition_tmpdir/$dir" > out || fail=1
+
+# Make sure the inode numbers are the same.
+a=$(sed -n 's/ a$//p' out)
+b=$(sed -n 's/ b$//p' out)
+test "$a" = "$b" || fail=1
+
+Exit $fail
diff --git a/tests/mv/hard-verbose b/tests/mv/hard-verbose
deleted file mode 100755
index 9c02ac1..0000000
--- a/tests/mv/hard-verbose
+++ /dev/null
@@ -1,56 +0,0 @@
-#!/bin/sh
-# ensure that mv's --verbose options works even in this unusual case
-
-# Copyright (C) 2006 Free Software Foundation, Inc.
-
-# This program is free software; you can redistribute it and/or modify
-# it under the terms of the GNU General Public License as published by
-# the Free Software Foundation; either version 2 of the License, or
-# (at your option) any later version.
-
-# This program is distributed in the hope that it will be useful,
-# but WITHOUT ANY WARRANTY; without even the implied warranty of
-# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
-# GNU General Public License for more details.
-
-# You should have received a copy of the GNU General Public License
-# along with this program; if not, write to the Free Software
-# Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA
-# 02110-1301, USA.
-
-if test "$VERBOSE" = yes; then
- set -x
- mv --version
-fi
-
-. $srcdir/../envvar-check
-. $srcdir/../lang-default
-
-pwd=`pwd`
-t0=`echo "$0"|sed 's,.*/,,'`.tmp; tmp=$t0/$$
-trap 'status=$?; cd "$pwd" && chmod -R u+rwx $t0 && rm -rf $t0 && exit $status' 0
-trap '(exit $?); exit $?' 1 2 13 15
-
-framework_failure=0
-mkdir -p $tmp || framework_failure=1
-cd $tmp || framework_failure=1
-
-touch x || framework_failure=1
-ln x y || framework_failure=1
-
-if test $framework_failure = 1; then
- echo "$0: failure in testing framework" 1>&2
- (exit 1); exit 1
-fi
-
-fail=0
-
-mv --verbose x y > out || fail=1
-cat <<\EOF > exp || fail=1
-removed `x'
-EOF
-
-cmp out exp || fail=1
-test $fail = 1 && diff out exp 2> /dev/null
-
-(exit $fail); exit $fail
diff --git a/tests/mv/hardlink-case.sh b/tests/mv/hardlink-case.sh
new file mode 100755
index 0000000..446471d
--- /dev/null
+++ b/tests/mv/hardlink-case.sh
@@ -0,0 +1,37 @@
+#!/bin/sh
+# Ensure multi-hardlinked files are not lost on case insensitive file systems
+
+# Copyright (C) 2014-2016 Free Software Foundation, Inc.
+
+# This program is free software: you can redistribute it and/or modify
+# it under the terms of the GNU General Public License as published by
+# the Free Software Foundation, either version 3 of the License, or
+# (at your option) any later version.
+
+# This program is distributed in the hope that it will be useful,
+# but WITHOUT ANY WARRANTY; without even the implied warranty of
+# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
+# GNU General Public License for more details.
+
+# You should have received a copy of the GNU General Public License
+# along with this program. If not, see <http://www.gnu.org/licenses/>.
+
+. "${srcdir=.}/tests/init.sh"; path_prepend_ ./src
+print_ver_ mv
+require_root_
+
+cwd=$(pwd)
+cleanup_() { cd /; umount "$cwd/mnt"; }
+
+truncate -s100M hfs.img || framework_failure_
+mkfs -t hfsplus hfs.img || skip_ 'failed to create hfs file system'
+mkdir mnt || framework_failure_
+mount hfs.img mnt || skip_ 'failed to mount hfs file system'
+
+cd mnt
+touch foo
+ln foo whatever
+returns_ 1 mv foo Foo || fail=1
+test -r foo || fail=1
+
+Exit $fail
diff --git a/tests/mv/i-1 b/tests/mv/i-1
deleted file mode 100755
index 3ab73c0..0000000
--- a/tests/mv/i-1
+++ /dev/null
@@ -1,58 +0,0 @@
-#!/bin/sh
-# Make sure a `n' reply to `mv -i...' aborts the move operation.
-
-# Copyright (C) 2001, 2003, 2005, 2006 Free Software Foundation, Inc.
-
-# This program is free software; you can redistribute it and/or modify
-# it under the terms of the GNU General Public License as published by
-# the Free Software Foundation; either version 2 of the License, or
-# (at your option) any later version.
-
-# This program is distributed in the hope that it will be useful,
-# but WITHOUT ANY WARRANTY; without even the implied warranty of
-# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
-# GNU General Public License for more details.
-
-# You should have received a copy of the GNU General Public License
-# along with this program; if not, write to the Free Software
-# Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA
-# 02110-1301, USA.
-
-: ${PERL=perl}
-: ${srcdir=.}
-
-$PERL -e 1 > /dev/null 2>&1 || {
- echo 1>&2 "$0: configure didn't find a usable version of Perl," \
- "so can't run this test"
- exit 77
-}
-
-exec $PERL -w -I$srcdir/.. -MCoreutils -- - <<\EOF
-require 5.003;
-use strict;
-
-(my $program_name = $0) =~ s|.*/||;
-
-# Turn off localisation of executable's ouput.
-@ENV{qw(LANGUAGE LANG LC_ALL)} = ('C') x 3;
-
-my $test_a = 'a';
-
-my @Tests =
- (
- # Make sure a `n' reply to `mv -i...' aborts the move operation.
- [$test_a, '-i',
- {IN => {src => "a\n"}}, {IN => {dst => "b\n"}}, '<', {IN => "n\n"},
- {ERR => "mv: overwrite `dst'? "},
- {POST => sub { -r 'src' or die "test $test_a failed\n"}},
- {EXIT => 0},
- ],
- );
-
-my $save_temps = $ENV{DEBUG};
-my $verbose = $ENV{VERBOSE};
-
-my $prog = $ENV{PROG} || die "$0: \$PROG not specified in environment\n";
-my $fail = run_tests ($program_name, $prog, \@Tests, $save_temps, $verbose);
-exit $fail;
-EOF
diff --git a/tests/mv/i-1.pl b/tests/mv/i-1.pl
new file mode 100755
index 0000000..35691c0
--- /dev/null
+++ b/tests/mv/i-1.pl
@@ -0,0 +1,44 @@
+#!/usr/bin/perl
+# Make sure a 'n' reply to 'mv -i...' aborts the move operation.
+
+# Copyright (C) 2001-2016 Free Software Foundation, Inc.
+
+# This program is free software: you can redistribute it and/or modify
+# it under the terms of the GNU General Public License as published by
+# the Free Software Foundation, either version 3 of the License, or
+# (at your option) any later version.
+
+# This program is distributed in the hope that it will be useful,
+# but WITHOUT ANY WARRANTY; without even the implied warranty of
+# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
+# GNU General Public License for more details.
+
+# You should have received a copy of the GNU General Public License
+# along with this program. If not, see <http://www.gnu.org/licenses/>.
+
+use strict;
+
+(my $program_name = $0) =~ s|.*/||;
+
+# Turn off localization of executable's output.
+@ENV{qw(LANGUAGE LANG LC_ALL)} = ('C') x 3;
+
+my $test_a = 'a';
+
+my @Tests =
+ (
+ # Make sure a 'n' reply to 'mv -i...' aborts the move operation.
+ [$test_a, '-i',
+ {IN => {src => "a\n"}}, {IN => {dst => "b\n"}}, '<', {IN => "n\n"},
+ {ERR => "mv: overwrite 'dst'? "},
+ {POST => sub { -r 'src' or die "test $test_a failed\n"}},
+ {EXIT => 0},
+ ],
+ );
+
+my $save_temps = $ENV{DEBUG};
+my $verbose = $ENV{VERBOSE};
+
+my $prog = 'mv';
+my $fail = run_tests ($program_name, $prog, \@Tests, $save_temps, $verbose);
+exit $fail;
diff --git a/tests/mv/i-2 b/tests/mv/i-2
deleted file mode 100755
index 36d1ce4..0000000
--- a/tests/mv/i-2
+++ /dev/null
@@ -1,77 +0,0 @@
-#!/bin/sh
-# Test both cp and mv for their behavior with -if and -fi
-# The standards (POSIX and SuS) dictate annoyingly inconsistent behavior.
-
-# Copyright (C) 2000, 2001, 2006, 2007 Free Software Foundation, Inc.
-
-# This program is free software; you can redistribute it and/or modify
-# it under the terms of the GNU General Public License as published by
-# the Free Software Foundation; either version 2 of the License, or
-# (at your option) any later version.
-
-# This program is distributed in the hope that it will be useful,
-# but WITHOUT ANY WARRANTY; without even the implied warranty of
-# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
-# GNU General Public License for more details.
-
-# You should have received a copy of the GNU General Public License
-# along with this program; if not, write to the Free Software
-# Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA
-# 02110-1301, USA.
-
-if test "$VERBOSE" = yes; then
- set -x
- mv --version
- cp --version
-fi
-
-. $srcdir/../envvar-check
-
-# Make sure we get English translations.
-. $srcdir/../lang-default
-
-PRIV_CHECK_ARG=require-non-root . $srcdir/../priv-check
-
-pwd=`pwd`
-tmp=cp-mv-if-$$
-trap 'status=$?; cd "$pwd" && rm -rf $tmp && exit $status' 0
-trap 'exit $?' 1 2 13 15
-
-framework_failure=0
-mkdir $tmp || framework_failure=1
-cd $tmp || framework_failure=1
-
-for i in a b c d e f g h; do
- echo $i > $i || framework_failure=1
-done
-chmod 0 b d f h || framework_failure=1
-echo y > y || framework_failure=1
-
-if test $framework_failure = 1; then
- echo 'failure in testing framework'
- exit 1
-fi
-
-fail=0
-mv -if a b || fail=1
-mv -fi c d < y >/dev/null 2>&1 || fail=1
-
-# Before 4.0s, this would not prompt.
-cp -if e f < y > out 2>&1 || fail=1
-
-# Make sure out contains the prompt.
-case "`cat out`" in
- "cp: try to overwrite \`f', overriding mode 0000 (---------)?"*) ;;
- *) fail=1 ;;
-esac
-
-test -f e || fail=1
-test -f f || fail=1
-cmp e f || fail=1
-
-cp -fi g h < y > out 2>&1 || fail=1
-test -f g || fail=1
-test -f h || fail=1
-cmp g h || fail=1
-
-exit $fail
diff --git a/tests/mv/i-2.sh b/tests/mv/i-2.sh
new file mode 100755
index 0000000..b6b6ea1
--- /dev/null
+++ b/tests/mv/i-2.sh
@@ -0,0 +1,52 @@
+#!/bin/sh
+# Test both cp and mv for their behavior with -if and -fi
+# The standards (POSIX and SuS) dictate annoyingly inconsistent behavior.
+
+# Copyright (C) 2000-2016 Free Software Foundation, Inc.
+
+# This program is free software: you can redistribute it and/or modify
+# it under the terms of the GNU General Public License as published by
+# the Free Software Foundation, either version 3 of the License, or
+# (at your option) any later version.
+
+# This program is distributed in the hope that it will be useful,
+# but WITHOUT ANY WARRANTY; without even the implied warranty of
+# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
+# GNU General Public License for more details.
+
+# You should have received a copy of the GNU General Public License
+# along with this program. If not, see <http://www.gnu.org/licenses/>.
+
+. "${srcdir=.}/tests/init.sh"; path_prepend_ ./src
+print_ver_ cp mv
+
+skip_if_root_
+
+for i in a b c d e f g h; do
+ echo $i > $i || framework_failure_
+done
+chmod 0 b d f h || framework_failure_
+echo y > y || framework_failure_
+
+mv -if a b || fail=1
+mv -fi c d < y >/dev/null 2>&1 || fail=1
+
+# Before 4.0s, this would not prompt.
+cp -if e f < y > out 2>&1 || fail=1
+
+# Make sure out contains the prompt.
+case "$(cat out)" in
+ "cp: replace 'f', overriding mode 0000 (---------)?"*) ;;
+ *) fail=1 ;;
+esac
+
+test -f e || fail=1
+test -f f || fail=1
+compare e f || fail=1
+
+cp -fi g h < y > out 2>&1 || fail=1
+test -f g || fail=1
+test -f h || fail=1
+compare g h || fail=1
+
+Exit $fail
diff --git a/tests/mv/i-3.sh b/tests/mv/i-3.sh
new file mode 100755
index 0000000..28d7246
--- /dev/null
+++ b/tests/mv/i-3.sh
@@ -0,0 +1,72 @@
+#!/bin/sh
+# Make sure that 'mv file unwritable-file' prompts the user
+# and that 'mv -f file unwritable-file' doesn't.
+
+# Copyright (C) 2001-2016 Free Software Foundation, Inc.
+
+# This program is free software: you can redistribute it and/or modify
+# it under the terms of the GNU General Public License as published by
+# the Free Software Foundation, either version 3 of the License, or
+# (at your option) any later version.
+
+# This program is distributed in the hope that it will be useful,
+# but WITHOUT ANY WARRANTY; without even the implied warranty of
+# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
+# GNU General Public License for more details.
+
+# You should have received a copy of the GNU General Public License
+# along with this program. If not, see <http://www.gnu.org/licenses/>.
+
+. "${srcdir=.}/tests/init.sh"; path_prepend_ ./src
+print_ver_ mv
+require_controlling_input_terminal_
+skip_if_root_
+trap '' TTIN # Ignore SIGTTIN
+
+uname -s | grep 'BSD$' && skip_ 'known spurious failure on *BSD'
+
+touch f g h i || framework_failure_
+chmod 0 g i || framework_failure_
+
+
+ls /dev/stdin >/dev/null 2>&1 \
+ || skip_ 'there is no /dev/stdin file'
+
+# work around a dash bug when redirecting
+# from symlinked ttys in the background
+tty=$(readlink -f /dev/stdin)
+
+test -r "$tty" 2>&1 \
+ || skip_ '/dev/stdin is not readable'
+
+# Terminate any background processes
+cleanup_() { kill $pid 2>/dev/null && wait $pid; }
+
+mv f g < $tty > out 2>&1 & pid=$!
+
+# Test for the expected prompt; sleep upon non-match.
+check_overwrite_prompt()
+{
+ local delay="$1"
+ case "$(cat out)" in
+ "mv: replace 'g', overriding mode 0000"*) ;;
+ *) sleep $delay; return 1;;
+ esac
+}
+
+# Wait for up to 12.7 seconds for the expected prompt.
+retry_delay_ check_overwrite_prompt .1 7 || { fail=1; cat out; }
+
+cleanup_
+
+mv -f h i > out 2>&1 || fail=1
+test -f i || fail=1
+test -f h && fail=1
+
+# Make sure there was no prompt.
+case "$(cat out)" in
+ '') ;;
+ *) fail=1 ;;
+esac
+
+Exit $fail
diff --git a/tests/mv/i-4 b/tests/mv/i-4
deleted file mode 100755
index 594c155..0000000
--- a/tests/mv/i-4
+++ /dev/null
@@ -1,72 +0,0 @@
-#!/bin/sh
-# make sure `mv -i a b' does its job with a positive response
-
-# Copyright (C) 2001, 2005, 2006 Free Software Foundation, Inc.
-
-# This program is free software; you can redistribute it and/or modify
-# it under the terms of the GNU General Public License as published by
-# the Free Software Foundation; either version 2 of the License, or
-# (at your option) any later version.
-
-# This program is distributed in the hope that it will be useful,
-# but WITHOUT ANY WARRANTY; without even the implied warranty of
-# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
-# GNU General Public License for more details.
-
-# You should have received a copy of the GNU General Public License
-# along with this program; if not, write to the Free Software
-# Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA
-# 02110-1301, USA.
-
-if test "$VERBOSE" = yes; then
- set -x
- mv --version
-fi
-
-. $srcdir/../envvar-check
-. $srcdir/../lang-default
-
-pwd=`pwd`
-tmp=mv-i4-$$
-trap 'status=$?; cd "$pwd" && rm -rf $tmp && exit $status' 0
-trap 'exit $?' 1 2 13 15
-
-framework_failure=0
-mkdir $tmp || framework_failure=1
-cd $tmp || framework_failure=1
-
-
-for i in a b; do
- echo $i > $i || framework_failure=1
-done
-echo y > y || framework_failure=1
-
-if test $framework_failure = 1; then
- echo 'failure in testing framework'
- exit 1
-fi
-
-fail=0
-mv -i a b < y >/dev/null 2>&1 || fail=1
-
-# Make sure out contains the prompt.
-case "`cat b`" in
- a) ;;
- *) fail=1 ;;
-esac
-
-# Ensure that mv -i a b works properly with `n' and `y'
-# responses, even when a and b are hard links to the same file.
-# This `n' test would fail (no prompt) for coreutils-5.0.1 through 5.3.0.
-echo n > n
-rm -f a b
-echo a > a
-ln a b
-mv -i a b < n >/dev/null 2>&1 || fail=1
-test -r a || fail=1
-test -r b || fail=1
-mv -i a b < y >/dev/null 2>&1 || fail=1
-test -r a && fail=1
-test -r b || fail=1
-
-exit $fail
diff --git a/tests/mv/i-4.sh b/tests/mv/i-4.sh
new file mode 100755
index 0000000..9de155e
--- /dev/null
+++ b/tests/mv/i-4.sh
@@ -0,0 +1,47 @@
+#!/bin/sh
+# make sure 'mv -i a b' does its job with a positive response
+
+# Copyright (C) 2001-2016 Free Software Foundation, Inc.
+
+# This program is free software: you can redistribute it and/or modify
+# it under the terms of the GNU General Public License as published by
+# the Free Software Foundation, either version 3 of the License, or
+# (at your option) any later version.
+
+# This program is distributed in the hope that it will be useful,
+# but WITHOUT ANY WARRANTY; without even the implied warranty of
+# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
+# GNU General Public License for more details.
+
+# You should have received a copy of the GNU General Public License
+# along with this program. If not, see <http://www.gnu.org/licenses/>.
+
+. "${srcdir=.}/tests/init.sh"; path_prepend_ ./src
+print_ver_ mv
+
+for i in a b; do
+ echo $i > $i || framework_failure_
+done
+echo y > y || framework_failure_
+echo n > n || framework_failure_
+
+mv -i a b < y >/dev/null 2>&1 || fail=1
+
+# Make sure out contains the prompt.
+case "$(cat b)" in
+ a) ;;
+ *) fail=1 ;;
+esac
+
+# Ensure that mv -i a b works properly with 'n' and 'y' responses,
+# when a and b are hard links to the same file.
+rm -f a b
+echo a > a
+ln a b
+mv -i a b < y 2>err && fail=1
+test -r a || fail=1
+test -r b || fail=1
+printf "mv: 'a' and 'b' are the same file\n" > exp
+compare exp err || fail=1
+
+Exit $fail
diff --git a/tests/mv/i-5 b/tests/mv/i-5
deleted file mode 100755
index 2fec7ed..0000000
--- a/tests/mv/i-5
+++ /dev/null
@@ -1,51 +0,0 @@
-#!/bin/sh
-# Make sure `mv -i dir file' prompts before failing.
-
-# Copyright (C) 2006 Free Software Foundation, Inc.
-
-# This program is free software; you can redistribute it and/or modify
-# it under the terms of the GNU General Public License as published by
-# the Free Software Foundation; either version 2 of the License, or
-# (at your option) any later version.
-
-# This program is distributed in the hope that it will be useful,
-# but WITHOUT ANY WARRANTY; without even the implied warranty of
-# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
-# GNU General Public License for more details.
-
-# You should have received a copy of the GNU General Public License
-# along with this program; if not, write to the Free Software
-# Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA
-# 02110-1301, USA.
-
-if test "$VERBOSE" = yes; then
- set -x
- mv --version
-fi
-
-. $srcdir/../envvar-check
-. $srcdir/../lang-default
-
-pwd=`pwd`
-t0=`echo "$0"|sed 's,.*/,,'`.tmp; tmp=$t0/$$
-trap 'status=$?; cd "$pwd" && chmod -R u+rwx $t0 && rm -rf $t0 && exit $status' 0
-trap '(exit $?); exit $?' 1 2 13 15
-
-framework_failure=0
-mkdir -p $tmp || framework_failure=1
-cd $tmp || framework_failure=1
-
-mkdir a || framework_failure=1
-touch b || framework_failure=1
-
-if test $framework_failure = 1; then
- echo 'failure in testing framework'
- exit 1
-fi
-
-fail=0
-
-# coreutils 6.2 mv would neglect to prompt in this case.
-echo n | mv -i a b 2>/dev/null || fail=1
-
-(exit $fail); exit $fail
diff --git a/tests/mv/i-5.sh b/tests/mv/i-5.sh
new file mode 100755
index 0000000..7897e44
--- /dev/null
+++ b/tests/mv/i-5.sh
@@ -0,0 +1,29 @@
+#!/bin/sh
+# Make sure 'mv -i dir file' prompts before failing.
+
+# Copyright (C) 2006-2016 Free Software Foundation, Inc.
+
+# This program is free software: you can redistribute it and/or modify
+# it under the terms of the GNU General Public License as published by
+# the Free Software Foundation, either version 3 of the License, or
+# (at your option) any later version.
+
+# This program is distributed in the hope that it will be useful,
+# but WITHOUT ANY WARRANTY; without even the implied warranty of
+# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
+# GNU General Public License for more details.
+
+# You should have received a copy of the GNU General Public License
+# along with this program. If not, see <http://www.gnu.org/licenses/>.
+
+. "${srcdir=.}/tests/init.sh"; path_prepend_ ./src
+print_ver_ mv
+
+mkdir a || framework_failure_
+touch b || framework_failure_
+
+
+# coreutils 6.2 mv would neglect to prompt in this case.
+echo n | mv -i a b 2>/dev/null || fail=1
+
+Exit $fail
diff --git a/tests/mv/i-link-no b/tests/mv/i-link-no
deleted file mode 100755
index 2931af6..0000000
--- a/tests/mv/i-link-no
+++ /dev/null
@@ -1,70 +0,0 @@
-#!/bin/sh
-# Show that mv doesn't preserve links to files the user has declined to move.
-
-# Copyright (C) 2002, 2004, 2005, 2006 Free Software Foundation, Inc.
-
-# This program is free software; you can redistribute it and/or modify
-# it under the terms of the GNU General Public License as published by
-# the Free Software Foundation; either version 2 of the License, or
-# (at your option) any later version.
-
-# This program is distributed in the hope that it will be useful,
-# but WITHOUT ANY WARRANTY; without even the implied warranty of
-# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
-# GNU General Public License for more details.
-
-# You should have received a copy of the GNU General Public License
-# along with this program; if not, write to the Free Software
-# Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA
-# 02110-1301, USA.
-
-if test "$VERBOSE" = yes; then
- set -x
- mv --version
-fi
-
-. $srcdir/../envvar-check
-. $srcdir/../lang-default
-
-pwd=`pwd`
-tmp=i-link-no.$$
-trap 'status=$?; cd "$pwd" && rm -rf $tmp && exit $status' 0
-trap '(exit $?); exit' 1 2 13 15
-
-framework_failure=0
-mkdir $tmp || framework_failure=1
-cd $tmp || framework_failure=1
-mkdir a b || framework_failure=1
-echo foo > a/foo || framework_failure=1
-ln a/foo a/bar || framework_failure=1
-echo FUBAR > b/FUBAR || framework_failure=1
-ln b/FUBAR b/bar || framework_failure=1
-chmod a-w b/bar || framework_failure=1
-
-if test $framework_failure = 1; then
- echo "$0: failure in testing framework" 1>&2
- (exit 1); exit 1
-fi
-
-fail=0
-
-mv --reply=no a/bar a/foo b > out 2> err || fail=1
-cat <<EOF > exp
-EOF
-
-cat <<EOF > exp_err
-mv: the --reply option is deprecated; use -i or -f instead
-EOF
-
-cmp err exp_err || fail=1
-test $fail = 1 && diff err exp_err 2> /dev/null
-
-cmp out exp || fail=1
-test $fail = 1 && diff out exp 2> /dev/null
-
-case "`cat b/foo`" in
- foo) ;;
- *) fail=1;;
-esac
-
-(exit $fail); exit $fail
diff --git a/tests/mv/i-link-no.sh b/tests/mv/i-link-no.sh
new file mode 100755
index 0000000..11233a2
--- /dev/null
+++ b/tests/mv/i-link-no.sh
@@ -0,0 +1,43 @@
+#!/bin/sh
+# Show that mv doesn't preserve links to files the user has declined to move.
+
+# Copyright (C) 2002-2016 Free Software Foundation, Inc.
+
+# This program is free software: you can redistribute it and/or modify
+# it under the terms of the GNU General Public License as published by
+# the Free Software Foundation, either version 3 of the License, or
+# (at your option) any later version.
+
+# This program is distributed in the hope that it will be useful,
+# but WITHOUT ANY WARRANTY; without even the implied warranty of
+# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
+# GNU General Public License for more details.
+
+# You should have received a copy of the GNU General Public License
+# along with this program. If not, see <http://www.gnu.org/licenses/>.
+
+. "${srcdir=.}/tests/init.sh"; path_prepend_ ./src
+print_ver_ mv
+
+mkdir a b || framework_failure_
+echo foo > a/foo || framework_failure_
+ln a/foo a/bar || framework_failure_
+echo FUBAR > b/FUBAR || framework_failure_
+ln b/FUBAR b/bar || framework_failure_
+chmod a-w b/bar || framework_failure_
+echo n > no || framework_failure_
+
+
+mv a/bar a/foo b < no > out 2> err || fail=1
+touch exp
+touch exp_err
+
+compare exp out || fail=1
+compare exp_err err || fail=1
+
+case "$(cat b/foo)" in
+ foo) ;;
+ *) fail=1;;
+esac
+
+Exit $fail
diff --git a/tests/mv/into-self b/tests/mv/into-self
deleted file mode 100755
index 69f0e5d..0000000
--- a/tests/mv/into-self
+++ /dev/null
@@ -1,69 +0,0 @@
-#! /bin/sh
-# Demonstrate how mv fails when it tries to move a directory into itself.
-
-# Copyright (C) 1998, 1999, 2000, 2002 Free Software Foundation, Inc.
-
-# This program is free software; you can redistribute it and/or modify
-# it under the terms of the GNU General Public License as published by
-# the Free Software Foundation; either version 2 of the License, or
-# (at your option) any later version.
-
-# This program is distributed in the hope that it will be useful,
-# but WITHOUT ANY WARRANTY; without even the implied warranty of
-# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
-# GNU General Public License for more details.
-
-# You should have received a copy of the GNU General Public License
-# along with this program; if not, write to the Free Software
-# Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA
-# 02110-1301, USA.
-
-if test "$VERBOSE" = yes; then
- set -x
- mv --version
-fi
-
-dir=toself-dir
-file=toself-file
-
-test_failure=0
-
-rm -rf $dir $file || test_failure=1
-mkdir -p $dir/a/b || test_failure=1
-touch $file || test_failure=1
-
-if test $test_failure = 1; then
- echo 'failure in testing framework'
- exit 1
-fi
-
-fail=0
-
-# Make sure we get English translations.
-. $srcdir/../lang-default
-
-# This mv command should fail.
-mv $dir $file $dir > out 2>&1 && fail=1
-
-sed \
- -e "s,mv:,XXX:," \
- -e "s,$dir,SRC," \
- -e "s,$dir/$dir,DEST," \
- out > out2
-
-cat > exp <<\EOF
-XXX: cannot move `SRC' to a subdirectory of itself, `DEST'
-EOF
-
-cmp out2 exp || fail=1
-
-# Make sure the file is gone.
-test -f $file && fail=1
-# Make sure the directory is *not* moved.
-test -d $dir || fail=1
-test -d $dir/$dir && fail=1
-# Make sure the file has been moved to the right place.
-test -f $dir/$file || fail=1
-rm -rf $dir $file out out2 exp
-
-exit $fail
diff --git a/tests/mv/into-self-2 b/tests/mv/into-self-2
deleted file mode 100755
index 11fddf2..0000000
--- a/tests/mv/into-self-2
+++ /dev/null
@@ -1,76 +0,0 @@
-#!/bin/sh
-# Force mv to use the copying code.
-# Consider the case where SRC and DEST are on different
-# partitions and DEST is a symlink to SRC.
-
-# Copyright (C) 1998, 1999, 200 Free Software Foundation, Inc.
-
-# This program is free software; you can redistribute it and/or modify
-# it under the terms of the GNU General Public License as published by
-# the Free Software Foundation; either version 2 of the License, or
-# (at your option) any later version.
-
-# This program is distributed in the hope that it will be useful,
-# but WITHOUT ANY WARRANTY; without even the implied warranty of
-# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
-# GNU General Public License for more details.
-
-# You should have received a copy of the GNU General Public License
-# along with this program; if not, write to the Free Software
-# Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA
-# 02110-1301, USA.
-
-if test "$VERBOSE" = yes; then
- set -x
- mv --version
-fi
-
-. $srcdir/../other-fs-tmpdir
-. $srcdir/../envvar-check
-
-if test -z "$other_partition_tmpdir"; then
- exit 77
-fi
-
-file="$other_partition_tmpdir/file"
-symlink=symlink
-
-fail=0
-
-trap 'rm -fr out out2 exp $file $symlink $other_partition_tmpdir; exit $fail' \
- 0 1 2 3 15
-
-framework_failure=0
-rm -f $file $symlink || framework_failure=1
-echo whatever > $file || framework_failure=1
-ln -s $file $symlink || framework_failure=1
-
-if test $framework_failure = 1; then
- echo 'failure in testing framework'
- exit 1
-fi
-
-# Make sure we get English translations.
-. $srcdir/../lang-default
-
-# This mv command should exit nonzero.
-mv $symlink $file > out 2>&1 && fail=1
-
-# This should succeed.
-mv $file $symlink || fail=1
-
-sed \
- -e "s,mv:,XXX:," \
- -e "s,$file,YYY," \
- -e "s,$symlink,ZZZ," \
- out > out2
-
-cat > exp <<\EOF
-XXX: `ZZZ' and `YYY' are the same file
-EOF
-#'
-
-cmp out2 exp || fail=1
-test $fail = 1 && diff out2 exp 2> /dev/null
-
-exit $fail
diff --git a/tests/mv/into-self-2.sh b/tests/mv/into-self-2.sh
new file mode 100755
index 0000000..af0439e
--- /dev/null
+++ b/tests/mv/into-self-2.sh
@@ -0,0 +1,52 @@
+#!/bin/sh
+# Force mv to use the copying code.
+# Consider the case where SRC and DEST are on different
+# partitions and DEST is a symlink to SRC.
+
+# Copyright (C) 1998-2016 Free Software Foundation, Inc.
+
+# This program is free software: you can redistribute it and/or modify
+# it under the terms of the GNU General Public License as published by
+# the Free Software Foundation, either version 3 of the License, or
+# (at your option) any later version.
+
+# This program is distributed in the hope that it will be useful,
+# but WITHOUT ANY WARRANTY; without even the implied warranty of
+# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
+# GNU General Public License for more details.
+
+# You should have received a copy of the GNU General Public License
+# along with this program. If not, see <http://www.gnu.org/licenses/>.
+
+. "${srcdir=.}/tests/init.sh"; path_prepend_ ./src
+print_ver_ mv
+cleanup_() { rm -rf "$other_partition_tmpdir"; }
+. "$abs_srcdir/tests/other-fs-tmpdir"
+
+file="$other_partition_tmpdir/file"
+symlink=symlink
+
+
+echo whatever > $file || framework_failure_
+ln -s $file $symlink || framework_failure_
+
+# This mv command should exit nonzero.
+mv $symlink $file > out 2>&1 && fail=1
+
+# This should succeed.
+mv $file $symlink || fail=1
+
+sed \
+ -e "s,mv:,XXX:," \
+ -e "s,$file,YYY," \
+ -e "s,$symlink,ZZZ," \
+ out > out2
+
+cat > exp <<\EOF
+XXX: 'ZZZ' and 'YYY' are the same file
+EOF
+#'
+
+compare exp out2 || fail=1
+
+Exit $fail
diff --git a/tests/mv/into-self-3 b/tests/mv/into-self-3
deleted file mode 100755
index 6b08d31..0000000
--- a/tests/mv/into-self-3
+++ /dev/null
@@ -1,57 +0,0 @@
-#!/bin/sh
-# move a directory into itself, with a twist
-
-# Copyright (C) 1998, 1999, 2000 Free Software Foundation, Inc.
-
-# This program is free software; you can redistribute it and/or modify
-# it under the terms of the GNU General Public License as published by
-# the Free Software Foundation; either version 2 of the License, or
-# (at your option) any later version.
-
-# This program is distributed in the hope that it will be useful,
-# but WITHOUT ANY WARRANTY; without even the implied warranty of
-# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
-# GNU General Public License for more details.
-
-# You should have received a copy of the GNU General Public License
-# along with this program; if not, write to the Free Software
-# Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA
-# 02110-1301, USA.
-
-if test "$VERBOSE" = yes; then
- set -x
- mv --version
-fi
-
-dir1=is3-dir1
-dir2=is3-dir2
-
-framework_failure=0
-rm -rf $dir1 $dir2 || framework_failure=1
-mkdir $dir1 $dir2 || framework_failure=1
-
-if test $framework_failure = 1; then
- echo 'failure in testing framework'
- exit 1
-fi
-
-# Make sure we get English translations.
-. $srcdir/../lang-default
-
-# This mv command should exit nonzero.
-mv $dir1 $dir2 $dir2 > out 2>&1 && fail=1
-
-sed \
- -e "s,mv:,XXX:,g" \
- -e "s,$dir2,ZZZ,g" \
- out > out2
-
-cat > exp <<\EOF
-XXX: cannot move `ZZZ' to a subdirectory of itself, `ZZZ/ZZZ'
-EOF
-
-cmp out2 exp || fail=1
-
-rm -fr out out2 exp $dir1 $dir2
-
-exit $fail
diff --git a/tests/mv/into-self-3.sh b/tests/mv/into-self-3.sh
new file mode 100755
index 0000000..08dc8f7
--- /dev/null
+++ b/tests/mv/into-self-3.sh
@@ -0,0 +1,41 @@
+#!/bin/sh
+# move a directory into itself, with a twist
+
+# Copyright (C) 1998-2016 Free Software Foundation, Inc.
+
+# This program is free software: you can redistribute it and/or modify
+# it under the terms of the GNU General Public License as published by
+# the Free Software Foundation, either version 3 of the License, or
+# (at your option) any later version.
+
+# This program is distributed in the hope that it will be useful,
+# but WITHOUT ANY WARRANTY; without even the implied warranty of
+# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
+# GNU General Public License for more details.
+
+# You should have received a copy of the GNU General Public License
+# along with this program. If not, see <http://www.gnu.org/licenses/>.
+
+. "${srcdir=.}/tests/init.sh"; path_prepend_ ./src
+print_ver_ mv
+
+dir1=is3-dir1
+dir2=is3-dir2
+
+mkdir $dir1 $dir2 || framework_failure_
+
+# This mv command should exit nonzero.
+mv $dir1 $dir2 $dir2 > out 2>&1 && fail=1
+
+sed \
+ -e "s,mv:,XXX:,g" \
+ -e "s,$dir2,ZZZ,g" \
+ out > out2
+
+cat > exp <<\EOF
+XXX: cannot move 'ZZZ' to a subdirectory of itself, 'ZZZ/ZZZ'
+EOF
+
+compare exp out2 || fail=1
+
+Exit $fail
diff --git a/tests/mv/into-self-4 b/tests/mv/into-self-4
deleted file mode 100755
index 13357b7..0000000
--- a/tests/mv/into-self-4
+++ /dev/null
@@ -1,54 +0,0 @@
-#!/bin/sh
-# confirm that `mv symlink symlink' doesn't remove symlink
-# Based on an example from David Luyer.
-
-# Copyright (C) 2001, 2004, 2006 Free Software Foundation, Inc.
-
-# This program is free software; you can redistribute it and/or modify
-# it under the terms of the GNU General Public License as published by
-# the Free Software Foundation; either version 2 of the License, or
-# (at your option) any later version.
-
-# This program is distributed in the hope that it will be useful,
-# but WITHOUT ANY WARRANTY; without even the implied warranty of
-# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
-# GNU General Public License for more details.
-
-# You should have received a copy of the GNU General Public License
-# along with this program; if not, write to the Free Software
-# Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA
-# 02110-1301, USA.
-
-if test "$VERBOSE" = yes; then
- set -x
- mv --version
-fi
-
-. $srcdir/../envvar-check
-
-pwd=`pwd`
-tmp=mv-slink2.$$
-trap 'status=$?; cd "$pwd" && rm -rf $tmp && exit $status' 0
-trap '(exit $?); exit' 1 2 13 15
-
-framework_failure=0
-mkdir $tmp || framework_failure=1
-cd $tmp || framework_failure=1
-touch file || framework_failure=1
-ln -s file s || framework_failure=1
-
-if test $framework_failure = 1; then
- echo 'failure in testing framework' 1>&2
- (exit 1); exit 1
-fi
-
-fail=0
-
-# This must fail.
-mv s s 2> /dev/null && fail=1
-
-# But the symlink, s, must not be removed.
-# Before 4.0.36, `s' would have been removed.
-test -f s || fail=1
-
-(exit $fail); exit $fail
diff --git a/tests/mv/into-self-4.sh b/tests/mv/into-self-4.sh
new file mode 100755
index 0000000..18346d3
--- /dev/null
+++ b/tests/mv/into-self-4.sh
@@ -0,0 +1,34 @@
+#!/bin/sh
+# confirm that 'mv symlink symlink' doesn't remove symlink
+# Based on an example from David Luyer.
+
+# Copyright (C) 2001-2016 Free Software Foundation, Inc.
+
+# This program is free software: you can redistribute it and/or modify
+# it under the terms of the GNU General Public License as published by
+# the Free Software Foundation, either version 3 of the License, or
+# (at your option) any later version.
+
+# This program is distributed in the hope that it will be useful,
+# but WITHOUT ANY WARRANTY; without even the implied warranty of
+# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
+# GNU General Public License for more details.
+
+# You should have received a copy of the GNU General Public License
+# along with this program. If not, see <http://www.gnu.org/licenses/>.
+
+. "${srcdir=.}/tests/init.sh"; path_prepend_ ./src
+print_ver_ mv
+
+touch file || framework_failure_
+ln -s file s || framework_failure_
+
+
+# This must fail.
+returns_ 1 mv s s 2> /dev/null || fail=1
+
+# But the symlink, s, must not be removed.
+# Before 4.0.36, 's' would have been removed.
+test -f s || fail=1
+
+Exit $fail
diff --git a/tests/mv/into-self.sh b/tests/mv/into-self.sh
new file mode 100755
index 0000000..ae1be17
--- /dev/null
+++ b/tests/mv/into-self.sh
@@ -0,0 +1,53 @@
+#!/bin/sh
+# Demonstrate how mv fails when it tries to move a directory into itself.
+
+# Copyright (C) 1998-2016 Free Software Foundation, Inc.
+
+# This program is free software: you can redistribute it and/or modify
+# it under the terms of the GNU General Public License as published by
+# the Free Software Foundation, either version 3 of the License, or
+# (at your option) any later version.
+
+# This program is distributed in the hope that it will be useful,
+# but WITHOUT ANY WARRANTY; without even the implied warranty of
+# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
+# GNU General Public License for more details.
+
+# You should have received a copy of the GNU General Public License
+# along with this program. If not, see <http://www.gnu.org/licenses/>.
+
+. "${srcdir=.}/tests/init.sh"; path_prepend_ ./src
+print_ver_ mv
+
+dir=toself-dir
+file=toself-file
+
+rm -rf $dir $file || framework_failure_
+mkdir -p $dir/a/b || framework_failure_
+touch $file || framework_failure_
+
+
+# This mv command should fail.
+mv $dir $file $dir > out 2>&1 && fail=1
+
+sed \
+ -e "s,mv:,XXX:," \
+ -e "s,$dir,SRC," \
+ -e "s,$dir/$dir,DEST," \
+ out > out2
+
+cat > exp <<\EOF
+XXX: cannot move 'SRC' to a subdirectory of itself, 'DEST'
+EOF
+
+compare exp out2 || fail=1
+
+# Make sure the file is gone.
+test -f $file && fail=1
+# Make sure the directory is *not* moved.
+test -d $dir || fail=1
+test -d $dir/$dir && fail=1
+# Make sure the file has been moved to the right place.
+test -f $dir/$file || fail=1
+
+Exit $fail
diff --git a/tests/mv/leak-fd b/tests/mv/leak-fd
deleted file mode 100755
index 1592e0c..0000000
--- a/tests/mv/leak-fd
+++ /dev/null
@@ -1,81 +0,0 @@
-#!/bin/sh
-# Exercise mv's file-descriptor-leak bug, reported against coreutils-5.2.1
-# and fixed (properly) on 2004-10-21.
-
-# Copyright (C) 2004, 2006 Free Software Foundation, Inc.
-
-# This program is free software; you can redistribute it and/or modify
-# it under the terms of the GNU General Public License as published by
-# the Free Software Foundation; either version 2 of the License, or
-# (at your option) any later version.
-
-# This program is distributed in the hope that it will be useful,
-# but WITHOUT ANY WARRANTY; without even the implied warranty of
-# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
-# GNU General Public License for more details.
-
-# You should have received a copy of the GNU General Public License
-# along with this program; if not, write to the Free Software
-# Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA
-# 02110-1301, USA.
-
-
-# This test is relatively expensive, and might well evoke a
-# framework-failure on systems with a smaller command-line length
-# limit so don't run it by default.
-. $srcdir/../expensive
-
-if test "$VERBOSE" = yes; then
- set -x
- mv --version
-fi
-
-. $srcdir/../other-fs-tmpdir
-. $srcdir/../envvar-check
-PRIV_CHECK_ARG=require-non-root . $srcdir/../priv-check
-
-pwd=`pwd`
-t0=`echo "$0"|sed 's,.*/,,'`.tmp; tmp=$t0/$$
-trap 'status=$?; cd "$pwd" && chmod -R u+rwx $t0 && rm -rf $t0 && exit $status' 0
-trap '(exit $?); exit $?' 1 2 13 15
-
-if test -z "$other_partition_tmpdir"; then
- (exit 77); exit 77
-fi
-t0="$t0 $other_partition_tmpdir"
-
-framework_failure=0
-mkdir -p $tmp || framework_failure=1
-cd $tmp || framework_failure=1
-
-b="0 1 2 3 4 5 6 7 8 9
-a b c d e f g h i j k l m n o p q r s t u v w x y z
-_A _B _C _D _E _F _G _H _I _J _K _L _M _N _O _P _Q _R _S _T _U _V _W _X _Y _Z"
-
-for i in `echo $b`; do
- echo $i
- for j in $b; do
- echo $i$j
- done
-done > .dirs
-mkdir `cat .dirs` || framework_failure=1
-sed 's,$,/f,' .dirs | xargs touch
-
-last_file=`tail -n1 .dirs`/f
-test -f $last_file || framework_failure=1
-
-if test $framework_failure = 1; then
- echo "$0: failure in testing framework" 1>&2
- (exit 1); exit 1
-fi
-
-fail=0
-
-mv * $other_partition_tmpdir || fail=1
-test -f $last_file/f && fail=1
-rm .dirs
-
-ls -A > ../out || fail=1
-test -s ../out && fail=1
-
-(exit $fail); exit $fail
diff --git a/tests/mv/leak-fd.sh b/tests/mv/leak-fd.sh
new file mode 100755
index 0000000..5732dc1
--- /dev/null
+++ b/tests/mv/leak-fd.sh
@@ -0,0 +1,55 @@
+#!/bin/sh
+# Exercise mv's file-descriptor-leak bug, reported against coreutils-5.2.1
+# and fixed (properly) on 2004-10-21.
+
+# Copyright (C) 2004-2016 Free Software Foundation, Inc.
+
+# This program is free software: you can redistribute it and/or modify
+# it under the terms of the GNU General Public License as published by
+# the Free Software Foundation, either version 3 of the License, or
+# (at your option) any later version.
+
+# This program is distributed in the hope that it will be useful,
+# but WITHOUT ANY WARRANTY; without even the implied warranty of
+# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
+# GNU General Public License for more details.
+
+# You should have received a copy of the GNU General Public License
+# along with this program. If not, see <http://www.gnu.org/licenses/>.
+# limit so don't run it by default.
+
+. "${srcdir=.}/tests/init.sh"; path_prepend_ ./src
+print_ver_ mv
+skip_if_root_
+cleanup_() { rm -rf "$other_partition_tmpdir"; }
+. "$abs_srcdir/tests/other-fs-tmpdir"
+
+# This test is relatively expensive, and might well evoke a
+# framework-failure on systems with a smaller command-line length
+expensive_
+
+b="0 1 2 3 4 5 6 7 8 9
+a b c d e f g h i j k l m n o p q r s t u v w x y z
+_A _B _C _D _E _F _G _H _I _J _K _L _M _N _O _P _Q _R _S _T _U _V _W _X _Y _Z"
+
+for i in $(echo $b); do
+ echo $i
+ for j in $b; do
+ echo $i$j
+ done
+done > .dirs
+mkdir $(cat .dirs) || framework_failure_
+sed 's,$,/f,' .dirs | xargs touch
+
+last_file=$(tail -n1 .dirs)/f
+test -f $last_file || framework_failure_
+
+
+mv * "$other_partition_tmpdir" || fail=1
+test -f $last_file/f && fail=1
+rm .dirs
+
+out=$(ls -A) || fail=1
+test -z "$out" || fail=1
+
+Exit $fail
diff --git a/tests/mv/mv-n.sh b/tests/mv/mv-n.sh
new file mode 100755
index 0000000..8a468ad
--- /dev/null
+++ b/tests/mv/mv-n.sh
@@ -0,0 +1,57 @@
+#!/bin/sh
+# Test whether mv -n works as documented (not overwrite target).
+
+# Copyright (C) 2006-2016 Free Software Foundation, Inc.
+
+# This program is free software: you can redistribute it and/or modify
+# it under the terms of the GNU General Public License as published by
+# the Free Software Foundation, either version 3 of the License, or
+# (at your option) any later version.
+
+# This program is distributed in the hope that it will be useful,
+# but WITHOUT ANY WARRANTY; without even the implied warranty of
+# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
+# GNU General Public License for more details.
+
+# You should have received a copy of the GNU General Public License
+# along with this program. If not, see <http://www.gnu.org/licenses/>.
+
+. "${srcdir=.}/tests/init.sh"; path_prepend_ ./src
+print_ver_ mv
+
+
+# test miscellaneous combinations of -f -i -n parameters
+touch a b || framework_failure_
+echo "'a' -> 'b'" > out_move
+> out_empty
+
+# ask for overwrite, answer no
+touch a b || framework_failure_
+echo n | mv -vi a b 2>/dev/null > out1 || fail=1
+compare out1 out_empty || fail=1
+
+# ask for overwrite, answer yes
+touch a b || framework_failure_
+echo y | mv -vi a b 2>/dev/null > out2 || fail=1
+compare out2 out_move || fail=1
+
+# -n wins (as the last option)
+touch a b || framework_failure_
+echo y | mv -vin a b 2>/dev/null > out3 || fail=1
+compare out3 out_empty || fail=1
+
+# -n wins (as the last option)
+touch a b || framework_failure_
+echo y | mv -vfn a b 2>/dev/null > out4 || fail=1
+compare out4 out_empty || fail=1
+
+# -n wins (as the last option)
+touch a b || framework_failure_
+echo y | mv -vifn a b 2>/dev/null > out5 || fail=1
+compare out5 out_empty || fail=1
+
+# options --backup and --no-clobber are mutually exclusive
+touch a || framework_failure_
+returns_ 1 mv -bn a b 2>/dev/null || fail=1
+
+Exit $fail
diff --git a/tests/mv/mv-special-1 b/tests/mv/mv-special-1
deleted file mode 100755
index 4d7c697..0000000
--- a/tests/mv/mv-special-1
+++ /dev/null
@@ -1,97 +0,0 @@
-#! /bin/sh
-# Test "mv" with special files.
-
-# Copyright (C) 1998, 1999, 2000, 2002, 2004, 2005, 2006 Free Software
-# Foundation, Inc.
-
-# This program is free software; you can redistribute it and/or modify
-# it under the terms of the GNU General Public License as published by
-# the Free Software Foundation; either version 2 of the License, or
-# (at your option) any later version.
-
-# This program is distributed in the hope that it will be useful,
-# but WITHOUT ANY WARRANTY; without even the implied warranty of
-# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
-# GNU General Public License for more details.
-
-# You should have received a copy of the GNU General Public License
-# along with this program; if not, write to the Free Software
-# Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA
-# 02110-1301, USA.
-
-if test "$VERBOSE" = yes; then
- set -x
- mv --version
-fi
-
-pwd=`pwd`
-tmp=mv-spec.$$
-trap 'status=$?; cd "$pwd" && exec 1>&2; rm -rf $tmp $other_partition_tmpdir && exit $status' 0
-trap '(exit $?); exit' 1 2 13 15
-
-. $srcdir/../other-fs-tmpdir
-. $srcdir/../envvar-check
-# Make sure we get English translations.
-. $srcdir/../lang-default
-
-if test -z "$other_partition_tmpdir"; then
- (exit 77); exit 77
-fi
-
-null=mv-null
-dir=mv-dir
-
-framework_failure=0
-mkdir $tmp || framework_failure=1
-cd $tmp || framework_failure=1
-rm -f $null || framework_failure=1
-mknod $null p || framework_failure=1
-test -p $null || framework_failure=1
-mkdir -p $dir/a/b/c $dir/d/e/f || framework_failure=1
-touch $dir/a/b/c/file1 $dir/d/e/f/file2 || framework_failure=1
-
-if test $framework_failure = 1; then
- echo '********************************************'
- echo 'NOTICE: unable to create test prerequisites'
- echo '********************************************'
- # exit 77 here to indicate that we couldn't run the test.
- # At least running on SunOS 4.1.4, using a directory NFS mounted
- # from an OpenBSD system, the above mknod fails.
- (exit 77); exit 77
-fi
-
-fail=0
-mv --verbose $null $dir $other_partition_tmpdir > out || fail=1
-# Make sure the files are gone.
-test -p $null && fail=1
-test -d $dir && fail=1
-# Make sure they were moved.
-test -p $other_partition_tmpdir/$null || fail=1
-test -d $other_partition_tmpdir/$dir/a/b/c || fail=1
-
-# POSIX says rename (A, B) can succeed if A and B are on different file systems,
-# so ignore chatter about when files are removed and copied rather than renamed.
-sed "
- /^removed /d
- s,$other_partition_tmpdir,XXX,
-" out | sort > out2
-
-cat <<EOF | sort > exp
-\`$null' -> \`XXX/$null'
-\`$dir' -> \`XXX/$dir'
-\`$dir/a' -> \`XXX/$dir/a'
-\`$dir/a/b' -> \`XXX/$dir/a/b'
-\`$dir/a/b/c' -> \`XXX/$dir/a/b/c'
-\`$dir/a/b/c/file1' -> \`XXX/$dir/a/b/c/file1'
-\`$dir/d' -> \`XXX/$dir/d'
-\`$dir/d/e' -> \`XXX/$dir/d/e'
-\`$dir/d/e/f' -> \`XXX/$dir/d/e/f'
-\`$dir/d/e/f/file2' -> \`XXX/$dir/d/e/f/file2'
-EOF
-
-cmp out2 exp || fail=1
-
-# cd $other_partition_tmpdir
-# ls -l -A -R $other_partition_tmpdir
-
-(exit $fail); exit $fail
diff --git a/tests/mv/mv-special-1.sh b/tests/mv/mv-special-1.sh
new file mode 100755
index 0000000..a31dd72
--- /dev/null
+++ b/tests/mv/mv-special-1.sh
@@ -0,0 +1,72 @@
+#!/bin/sh
+# Test "mv" with special files.
+
+# Copyright (C) 1998-2016 Free Software Foundation, Inc.
+
+# This program is free software: you can redistribute it and/or modify
+# it under the terms of the GNU General Public License as published by
+# the Free Software Foundation, either version 3 of the License, or
+# (at your option) any later version.
+
+# This program is distributed in the hope that it will be useful,
+# but WITHOUT ANY WARRANTY; without even the implied warranty of
+# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
+# GNU General Public License for more details.
+
+# You should have received a copy of the GNU General Public License
+# along with this program. If not, see <http://www.gnu.org/licenses/>.
+
+. "${srcdir=.}/tests/init.sh"; path_prepend_ ./src
+print_ver_ mv
+cleanup_() { rm -rf "$other_partition_tmpdir"; }
+. "$abs_srcdir/tests/other-fs-tmpdir"
+
+null=mv-null
+dir=mv-dir
+
+rm -f $null || framework_failure_
+mknod $null p || framework_failure_
+test -p $null || framework_failure_
+mkdir -p $dir/a/b/c $dir/d/e/f || framework_failure_
+touch $dir/a/b/c/file1 $dir/d/e/f/file2 || framework_failure_
+
+# We used to...
+# exit 77 here to indicate that we couldn't run the test.
+# At least running on SunOS 4.1.4, using a directory NFS mounted
+# from an OpenBSD system, the above mknod fails.
+# It's not worth making an exception any more.
+
+mv --verbose $null $dir "$other_partition_tmpdir" > out || fail=1
+# Make sure the files are gone.
+test -p $null && fail=1
+test -d $dir && fail=1
+# Make sure they were moved.
+test -p "$other_partition_tmpdir/$null" || fail=1
+test -d "$other_partition_tmpdir/$dir/a/b/c" || fail=1
+
+# POSIX says rename (A, B) can succeed if A and B are on different file systems,
+# so ignore chatter about when files are removed and copied rather than renamed.
+sed "
+ /^removed /d
+ s,$other_partition_tmpdir,XXX,
+" out | sort > out2
+
+cat <<EOF | sort > exp
+'$null' -> 'XXX/$null'
+'$dir' -> 'XXX/$dir'
+'$dir/a' -> 'XXX/$dir/a'
+'$dir/a/b' -> 'XXX/$dir/a/b'
+'$dir/a/b/c' -> 'XXX/$dir/a/b/c'
+'$dir/a/b/c/file1' -> 'XXX/$dir/a/b/c/file1'
+'$dir/d' -> 'XXX/$dir/d'
+'$dir/d/e' -> 'XXX/$dir/d/e'
+'$dir/d/e/f' -> 'XXX/$dir/d/e/f'
+'$dir/d/e/f/file2' -> 'XXX/$dir/d/e/f/file2'
+EOF
+
+compare exp out2 || fail=1
+
+# cd "$other_partition_tmpdir"
+# ls -l -A -R "$other_partition_tmpdir"
+
+Exit $fail
diff --git a/tests/mv/no-target-dir b/tests/mv/no-target-dir
deleted file mode 100755
index db7fe94..0000000
--- a/tests/mv/no-target-dir
+++ /dev/null
@@ -1,70 +0,0 @@
-#!/bin/sh
-# ensure that --no-target-directory (-T) works when the destination is
-# an empty directory.
-
-# Copyright (C) 2006 Free Software Foundation, Inc.
-
-# This program is free software; you can redistribute it and/or modify
-# it under the terms of the GNU General Public License as published by
-# the Free Software Foundation; either version 2 of the License, or
-# (at your option) any later version.
-
-# This program is distributed in the hope that it will be useful,
-# but WITHOUT ANY WARRANTY; without even the implied warranty of
-# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
-# GNU General Public License for more details.
-
-# You should have received a copy of the GNU General Public License
-# along with this program; if not, write to the Free Software
-# Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA
-# 02110-1301, USA.
-
-if test "$VERBOSE" = yes; then
- set -x
- mv --version
-fi
-
-pwd=`pwd`
-t0=`echo "$0"|sed 's,.*/,,'`.tmp; tmp=$t0/$$
-trap 'status=$?; cd "$pwd" && chmod -R u+rwx $t0 && rm -rf $t0 && exit $status' 0
-trap '(exit $?); exit $?' 1 2 13 15
-
-framework_failure=0
-mkdir -p $tmp || framework_failure=1
-cd $tmp || framework_failure=1
-mkdir -p d/sub empty src d2/sub e2 || framework_failure=1
-touch f || framework_failure=1
-
-# Skip this test if there's an underlying kernel bug.
-mkdir a b b/a || framework_failure=1
-
-if test $framework_failure = 1; then
- echo "$0: failure in testing framework" 1>&2
- (exit 1); exit 1
-fi
-
-mv a b || {
- echo "$0: skipping this test: your kernel's rename syscall is buggy" 1>&2
- (exit 77); exit 77
-}
-
-fail=0
-
-# This should succeed, since both src and dest are directories,
-# and the dest dir is empty.
-mv -fT d empty || fail=1
-
-# Ensure that the source, d, is gone.
-ls -d d > /dev/null 2>&1 && fail=1
-
-# Ensure that the dest dir now has a subdirectory.
-test -d empty/sub || fail=1
-
-
-# rename must fail, since the dest is non-empty.
-mv -fT src d2 2> /dev/null && fail=1
-
-# rename must fail, since the src is not a directory.
-mv -fT f e2 2> /dev/null && fail=1
-
-(exit $fail); exit $fail
diff --git a/tests/mv/no-target-dir.sh b/tests/mv/no-target-dir.sh
new file mode 100755
index 0000000..d5ea7f1
--- /dev/null
+++ b/tests/mv/no-target-dir.sh
@@ -0,0 +1,51 @@
+#!/bin/sh
+# ensure that --no-target-directory (-T) works when the destination is
+# an empty directory.
+
+# Copyright (C) 2006-2016 Free Software Foundation, Inc.
+
+# This program is free software: you can redistribute it and/or modify
+# it under the terms of the GNU General Public License as published by
+# the Free Software Foundation, either version 3 of the License, or
+# (at your option) any later version.
+
+# This program is distributed in the hope that it will be useful,
+# but WITHOUT ANY WARRANTY; without even the implied warranty of
+# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
+# GNU General Public License for more details.
+
+# You should have received a copy of the GNU General Public License
+# along with this program. If not, see <http://www.gnu.org/licenses/>.
+
+. "${srcdir=.}/tests/init.sh"; path_prepend_ ./src
+print_ver_ mv
+
+LS_FAILURE=2
+
+mkdir -p d/sub empty src d2/sub e2 || framework_failure_
+touch f || framework_failure_
+
+# Skip this test if there's an underlying kernel bug.
+mkdir a b b/a || framework_failure_
+
+mv a b ||
+ skip_ "your kernel's rename syscall is buggy"
+
+
+# This should succeed, since both src and dest are directories,
+# and the dest dir is empty.
+mv -fT d empty || fail=1
+
+# Ensure that the source, d, is gone.
+returns_ $LS_FAILURE ls -d d > /dev/null 2>&1 || fail=1
+
+# Ensure that the dest dir now has a subdirectory.
+test -d empty/sub || fail=1
+
+# rename must fail, since the dest is non-empty.
+returns_ 1 mv -fT src d2 2> /dev/null || fail=1
+
+# rename must fail, since the src is not a directory.
+returns_ 1 mv -fT f e2 2> /dev/null || fail=1
+
+Exit $fail
diff --git a/tests/mv/part-fail b/tests/mv/part-fail
deleted file mode 100755
index e4c5dc9..0000000
--- a/tests/mv/part-fail
+++ /dev/null
@@ -1,79 +0,0 @@
-#!/bin/sh
-# Make sure we give a sensible diagnostic when a cross-device `mv'
-# fails, e.g., because the destination cannot be unlinked.
-# This is a bit fragile since it relies on the string used
-# for EPERM: `permission denied'.
-
-# Copyright (C) 2002, 2004, 2006 Free Software Foundation, Inc.
-
-# This program is free software; you can redistribute it and/or modify
-# it under the terms of the GNU General Public License as published by
-# the Free Software Foundation; either version 2 of the License, or
-# (at your option) any later version.
-
-# This program is distributed in the hope that it will be useful,
-# but WITHOUT ANY WARRANTY; without even the implied warranty of
-# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
-# GNU General Public License for more details.
-
-# You should have received a copy of the GNU General Public License
-# along with this program; if not, write to the Free Software
-# Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA
-# 02110-1301, USA.
-
-if test "$VERBOSE" = yes; then
- set -x
- mv --version
-fi
-
-. $srcdir/../other-fs-tmpdir
-. $srcdir/../envvar-check
-. $srcdir/../lang-default
-PRIV_CHECK_ARG=require-non-root . $srcdir/../priv-check
-
-pwd=`pwd`
-t0=`echo "$0"|sed 's,.*/,,'`.tmp; tmp=$t0/$$
-trap 'status=$?; cd "$pwd" && chmod -R u+rwx $t0 && rm -rf $t0 && exit $status' 0
-trap '(exit $?); exit' 1 2 13 15
-
-if test -z "$other_partition_tmpdir"; then
- (exit 77); exit 77
-fi
-t0="$t0 $other_partition_tmpdir"
-
-framework_failure=0
-mkdir -p $tmp || framework_failure=1
-cd $tmp || framework_failure=1
-touch k $other_partition_tmpdir/k || framework_failure=1
-chmod u-w $other_partition_tmpdir || framework_failure=1
-
-if test $framework_failure = 1; then
- echo "$0: failure in testing framework" 1>&2
- (exit 1); exit 1
-fi
-
-fail=0
-
-mv -f k $other_partition_tmpdir 2> out && fail=1
-cat <<EOF > exp
-mv: inter-device move failed: \`k' to \`$other_partition_tmpdir/k'; unable to remove target: Permission denied
-EOF
-
-# On some (less-compliant) systems, we get EPERM in this case.
-# Accept either diagnostic.
-cat <<EOF > exp2
-mv: cannot move \`k' to \`$other_partition_tmpdir/k': Permission denied
-EOF
-
-if cmp out exp >/dev/null 2>&1; then
- :
-else
- if cmp out exp2; then
- :
- else
- fail=1
- fi
-fi
-test $fail = 1 && diff out exp 2> /dev/null
-
-(exit $fail); exit $fail
diff --git a/tests/mv/part-fail.sh b/tests/mv/part-fail.sh
new file mode 100755
index 0000000..6a4bb90
--- /dev/null
+++ b/tests/mv/part-fail.sh
@@ -0,0 +1,55 @@
+#!/bin/sh
+# Make sure we give a sensible diagnostic when a cross-device 'mv'
+# fails, e.g., because the destination cannot be unlinked.
+# This is a bit fragile since it relies on the string used
+# for EPERM: 'permission denied'.
+
+# Copyright (C) 2002-2016 Free Software Foundation, Inc.
+
+# This program is free software: you can redistribute it and/or modify
+# it under the terms of the GNU General Public License as published by
+# the Free Software Foundation, either version 3 of the License, or
+# (at your option) any later version.
+
+# This program is distributed in the hope that it will be useful,
+# but WITHOUT ANY WARRANTY; without even the implied warranty of
+# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
+# GNU General Public License for more details.
+
+# You should have received a copy of the GNU General Public License
+# along with this program. If not, see <http://www.gnu.org/licenses/>.
+
+. "${srcdir=.}/tests/init.sh"; path_prepend_ ./src
+print_ver_ mv
+skip_if_root_
+cleanup_() { t=$other_partition_tmpdir; chmod -R 700 "$t"; rm -rf "$t"; }
+. "$abs_srcdir/tests/other-fs-tmpdir"
+
+touch k "$other_partition_tmpdir/k" || framework_failure_
+chmod u-w "$other_partition_tmpdir" || framework_failure_
+
+
+mv -f k "$other_partition_tmpdir" 2> out && fail=1
+printf \
+"mv: inter-device move failed: '%s' to '%s';"\
+' unable to remove target: Permission denied\n' \
+ k "$other_partition_tmpdir/k" >exp
+
+# On some (less-compliant) systems, we get EPERM in this case.
+# Accept either diagnostic.
+cat <<EOF > exp2
+mv: cannot move 'k' to '$other_partition_tmpdir/k': Permission denied
+EOF
+
+if cmp out exp >/dev/null 2>&1; then
+ :
+else
+ if cmp out exp2; then
+ :
+ else
+ fail=1
+ fi
+fi
+test $fail = 1 && compare exp out
+
+Exit $fail
diff --git a/tests/mv/part-hardlink b/tests/mv/part-hardlink
deleted file mode 100755
index 66cfe0d..0000000
--- a/tests/mv/part-hardlink
+++ /dev/null
@@ -1,67 +0,0 @@
-#!/bin/sh
-# Ensure that hard links are preserved when moving between partitions
-# and when the links are in separate command line arguments.
-# For additional constraints, see the comment in copy.c.
-# Before coreutils-5.2.1, this test would fail.
-
-# Copyright (C) 2004, 2005, 2006 Free Software Foundation, Inc.
-
-# This program is free software; you can redistribute it and/or modify
-# it under the terms of the GNU General Public License as published by
-# the Free Software Foundation; either version 2 of the License, or
-# (at your option) any later version.
-
-# This program is distributed in the hope that it will be useful,
-# but WITHOUT ANY WARRANTY; without even the implied warranty of
-# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
-# GNU General Public License for more details.
-
-# You should have received a copy of the GNU General Public License
-# along with this program; if not, write to the Free Software
-# Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA
-# 02110-1301, USA.
-
-if test "$VERBOSE" = yes; then
- set -x
- mv --version
-fi
-
-. $srcdir/../other-fs-tmpdir
-. $srcdir/../envvar-check
-
-pwd=`pwd`
-t0=`echo "$0"|sed 's,.*/,,'`.tmp; tmp=$t0/$$
-trap 'status=$?; cd "$pwd" && chmod -R u+rwx $t0 && rm -rf $t0 && exit $status' 0
-trap '(exit $?); exit' 1 2 13 15
-
-if test -z "$other_partition_tmpdir"; then
- (exit 77); exit 77
-fi
-t0="$t0 $other_partition_tmpdir"
-
-framework_failure=0
-mkdir -p $tmp || framework_failure=1
-cd $tmp || framework_failure=1
-touch f || framework_failure=1
-ln f g || framework_failure=1
-mkdir a b || framework_failure=1
-touch a/1 || framework_failure=1
-ln a/1 b/1 || framework_failure=1
-
-if test $framework_failure = 1; then
- echo "$0: failure in testing framework" 1>&2
- (exit 1); exit 1
-fi
-
-fail=0
-
-mv f g $other_partition_tmpdir || fail=1
-mv a b $other_partition_tmpdir || fail=1
-
-cd $other_partition_tmpdir
-set `ls -Ci f g`
-test $1 = $3 || fail=1
-set `ls -Ci a/1 b/1`
-test $1 = $3 || fail=1
-
-(exit $fail); exit $fail
diff --git a/tests/mv/part-hardlink.sh b/tests/mv/part-hardlink.sh
new file mode 100755
index 0000000..1cae529
--- /dev/null
+++ b/tests/mv/part-hardlink.sh
@@ -0,0 +1,43 @@
+#!/bin/sh
+# Ensure that hard links are preserved when moving between partitions
+# and when the links are in separate command line arguments.
+# For additional constraints, see the comment in copy.c.
+# Before coreutils-5.2.1, this test would fail.
+
+# Copyright (C) 2004-2016 Free Software Foundation, Inc.
+
+# This program is free software: you can redistribute it and/or modify
+# it under the terms of the GNU General Public License as published by
+# the Free Software Foundation, either version 3 of the License, or
+# (at your option) any later version.
+
+# This program is distributed in the hope that it will be useful,
+# but WITHOUT ANY WARRANTY; without even the implied warranty of
+# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
+# GNU General Public License for more details.
+
+# You should have received a copy of the GNU General Public License
+# along with this program. If not, see <http://www.gnu.org/licenses/>.
+
+. "${srcdir=.}/tests/init.sh"; path_prepend_ ./src
+print_ver_ mv
+cleanup_() { rm -rf "$other_partition_tmpdir"; }
+. "$abs_srcdir/tests/other-fs-tmpdir"
+
+touch f || framework_failure_
+ln f g || framework_failure_
+mkdir a b || framework_failure_
+touch a/1 || framework_failure_
+ln a/1 b/1 || framework_failure_
+
+
+mv f g "$other_partition_tmpdir" || fail=1
+mv a b "$other_partition_tmpdir" || fail=1
+
+cd "$other_partition_tmpdir"
+set $(ls -Ci f g)
+test $1 = $3 || fail=1
+set $(ls -Ci a/1 b/1)
+test $1 = $3 || fail=1
+
+Exit $fail
diff --git a/tests/mv/part-rename b/tests/mv/part-rename
deleted file mode 100755
index b8c03e0..0000000
--- a/tests/mv/part-rename
+++ /dev/null
@@ -1,55 +0,0 @@
-#!/bin/sh
-# Moving a directory specified with a trailing slash from one partition to
-# another, and giving it a different name at the destination would cause mv
-# to get a failed assertion.
-
-# Copyright (C) 2000, 2002, 2004, 2006 Free Software Foundation, Inc.
-
-# This program is free software; you can redistribute it and/or modify
-# it under the terms of the GNU General Public License as published by
-# the Free Software Foundation; either version 2 of the License, or
-# (at your option) any later version.
-
-# This program is distributed in the hope that it will be useful,
-# but WITHOUT ANY WARRANTY; without even the implied warranty of
-# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
-# GNU General Public License for more details.
-
-# You should have received a copy of the GNU General Public License
-# along with this program; if not, write to the Free Software
-# Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA
-# 02110-1301, USA.
-
-if test "$VERBOSE" = yes; then
- set -x
- mv --version
-fi
-
-. $srcdir/../other-fs-tmpdir
-. $srcdir/../envvar-check
-
-pwd=`pwd`
-t0=`echo "$0"|sed 's,.*/,,'`.tmp; tmp=$t0/$$
-trap 'status=$?; cd "$pwd" && chmod -R u+rwx $t0 && rm -rf $t0 && exit $status' 0
-trap '(exit $?); exit' 1 2 13 15
-
-if test -z "$other_partition_tmpdir"; then
- (exit 77); exit 77
-fi
-t0="$t0 $other_partition_tmpdir"
-
-framework_failure=0
-mkdir -p $tmp || framework_failure=1
-cd $tmp || framework_failure=1
-mkdir foo || framework_failure=1
-
-if test $framework_failure = 1; then
- echo "$0: failure in testing framework" 1>&2
- (exit 1); exit 1
-fi
-
-fail=0
-
-mv foo/ $other_partition_tmpdir/bar || fail=1
-
-(exit $fail); exit $fail
diff --git a/tests/mv/part-rename.sh b/tests/mv/part-rename.sh
new file mode 100755
index 0000000..d03e014
--- /dev/null
+++ b/tests/mv/part-rename.sh
@@ -0,0 +1,57 @@
+#!/bin/sh
+# Test various cases for moving directories across file systems
+
+# Copyright (C) 2000-2016 Free Software Foundation, Inc.
+
+# This program is free software: you can redistribute it and/or modify
+# it under the terms of the GNU General Public License as published by
+# the Free Software Foundation, either version 3 of the License, or
+# (at your option) any later version.
+
+# This program is distributed in the hope that it will be useful,
+# but WITHOUT ANY WARRANTY; without even the implied warranty of
+# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
+# GNU General Public License for more details.
+
+# You should have received a copy of the GNU General Public License
+# along with this program. If not, see <http://www.gnu.org/licenses/>.
+
+. "${srcdir=.}/tests/init.sh"; path_prepend_ ./src
+print_ver_ mv
+cleanup_() { rm -rf "$other_partition_tmpdir"; }
+. "$abs_srcdir/tests/other-fs-tmpdir"
+
+
+# Moving a directory specified with a trailing slash from one partition to
+# another, and giving it a different name at the destination would cause mv
+# to get a failed assertion.
+mkdir foo || framework_failure_
+mv foo/ "$other_partition_tmpdir/bar" || fail=1
+
+
+# Moving a non directory from source shouldn't replace empty dir in dest
+touch bar || framework_failure_
+returns_ 1 mv bar "$other_partition_tmpdir/" || fail=1
+
+
+# Moving a directory from source shouldn't replace non directory in dest
+mkdir bar2
+touch "$other_partition_tmpdir/bar2"
+returns_ 1 mv bar2 "$other_partition_tmpdir/" || fail=1
+
+
+# As per POSIX moving directory from source should replace empty dir in dest
+mkdir bar3
+touch bar3/file
+mkdir "$other_partition_tmpdir/bar3"
+mv bar3 "$other_partition_tmpdir/" || fail=1
+test -e "$other_partition_tmpdir/bar3/file" || fail=1
+
+
+# As per POSIX moving directory from source shouldn't update dir in dest
+mkdir bar3
+touch bar3/file2
+returns_ 1 mv bar3 "$other_partition_tmpdir/" || fail=1
+test -e "$other_partition_tmpdir/bar3/file2" && fail=1
+
+Exit $fail
diff --git a/tests/mv/part-symlink b/tests/mv/part-symlink
deleted file mode 100755
index 5cd198c..0000000
--- a/tests/mv/part-symlink
+++ /dev/null
@@ -1,229 +0,0 @@
-#!/bin/sh
-# make sure cp and mv can handle many combinations of local and
-# other-partition regular/symlink'd files.
-
-# Copyright (C) 2000, 2003, 2004, 2006 Free Software Foundation, Inc.
-
-# This program is free software; you can redistribute it and/or modify
-# it under the terms of the GNU General Public License as published by
-# the Free Software Foundation; either version 2 of the License, or
-# (at your option) any later version.
-
-# This program is distributed in the hope that it will be useful,
-# but WITHOUT ANY WARRANTY; without even the implied warranty of
-# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
-# GNU General Public License for more details.
-
-# You should have received a copy of the GNU General Public License
-# along with this program; if not, write to the Free Software
-# Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA
-# 02110-1301, USA.
-
-if test "$VERBOSE" = yes; then
- set -x
- mv --version
- cp --version
-fi
-
-pwd=`pwd`
-tmp=part-sl.$$
-trap 'status=$?; cd "$pwd" && exec 1>&2; rm -rf $tmp $other_partition_tmpdir && exit $status' 0
-trap '(exit $?); exit' 1 2 13 15
-
-pwd_tmp=$pwd/$tmp
-
-. $srcdir/../other-fs-tmpdir
-. $srcdir/../envvar-check
-# Make sure the programs use C-locale formats/translations.
-. $srcdir/../lang-default
-
-# Unset CDPATH. Otherwise, output from the `cd dir' command
-# can make this test fail.
-(unset CDPATH) >/dev/null 2>&1 && unset CDPATH
-
-if test -z "$other_partition_tmpdir"; then
- (exit 77); exit 77
-fi
-
-framework_failure=0
-mkdir $tmp || framework_failure=1
-cd $tmp || framework_failure=1
-
-if test $framework_failure = 1; then
- echo 'failure in testing framework'
- exit 1
-fi
-
-fail=0
-
-# Four cases:
-# local regular file w/symlink on another partition
-# (loc_reg, rem_sl)
-# (rem_sl, loc_reg)
-# local symlink to regular file on another partition
-# (loc_sl, rem_reg)
-# (rem_reg, loc_sl)
-
-# Exercise those four cases for each of
-# cp and mv, with lots of combinations of options.
-
-actual=actual-$$
-expected=expected-$$
-
-exec 1> $actual
-
-# FIXME: This should be bigger: like more than 8k
-contents=XYZ
-
-loc_reg=loc_reg
-loc_sl=loc_sl
-rem_reg=$other_partition_tmpdir/rem_reg
-rem_sl=$other_partition_tmpdir/rem_sl
-
-for copy in cp mv; do
- for args in \
- 'loc_reg rem_sl' \
- 'rem_sl loc_reg' \
- 'loc_sl rem_reg' \
- 'rem_reg loc_sl' \
- ; do
- for options in '' --rem '--rem -d' '--rem -b' -b -bd -d; do
- case "$options" in *d*|*--rem*) test $copy = mv && continue;; esac
- rm -rf dir || fail=1
- rm -f $other_partition_tmpdir/* || fail=1
- mkdir dir || fail=1
- cd dir || fail=1
- case "$args" in *loc_reg*) reg_abs="`pwd`/$loc_reg" ;; esac
- case "$args" in *rem_reg*) reg_abs=$rem_reg ;; esac
- case "$args" in *loc_sl*) slink=$loc_sl ;; esac
- case "$args" in *rem_sl*) slink=$rem_sl ;; esac
-
- echo $contents > "$reg_abs" || fail=1
- ln -nsf "$reg_abs" $slink || fail=1
- actual_args=`echo $args|sed 's,^,$,;s/ / $/'`
- actual_args=`eval echo $actual_args`
-
- (
- (
- # echo 1>&2 cp $options $args
- $copy $options $actual_args 2>.err
- copy_status=$?
- echo $copy_status $copy $options $args
-
- # Normalize the program name in the error output,
- # remove any site-dependent part of other-partition file name,
- # and put brackets around the output.
- test -s .err && {
- echo '[' | tr -d '\n'
- sed 's/^[^:][^:]*\(..\):/\1:/;s,'$other_partition_tmpdir/,, .err
- echo ']' | tr -d '\n'
- }
- # Strip off all but the file names.
- # Remove any site-dependent part of each file name.
- ls="`ls -gG --ignore=.err . \
- | sed \
- -e '/^total /d' \
- -e s,$other_partition_tmpdir/,, \
- -e "s,$pwd_tmp/,," \
- -e 's/^[^ ]* *[^ ]* *[^ ]* *[^ ]* *[^ ]* *[^ ]* *//'`"
- ls2="`cd $other_partition_tmpdir && ls -gG --ignore=.err . \
- | sed \
- -e '/^total /d' \
- -e s,$other_partition_tmpdir/,, \
- -e "s,$pwd_tmp/,," \
- -e 's/^[^ ]* *[^ ]* *[^ ]* *[^ ]* *[^ ]* *[^ ]* *//'`"
- echo "($ls) ($ls2)"
-
- # If the command failed, then it must not have changed the files.
- if test $copy_status != 0; then
- for f in $actual_args; do
- test -f $f ||
- { echo "$copy FAILED but removed $f"; continue; }
- case "`cat $f`" in
- "$contents") ;;
- *) echo "$copy FAILED but modified $f";;
- esac
- done
- fi
-
- if test $copy = cp; then
- # Make sure the original is unchanged and that
- # the destination is a copy.
- for f in $actual_args; do
- if test -f $f; then
- if test $copy_status != 0; then
- test
- fi
- case "`cat $f`" in
- "$contents") ;;
- *) echo $copy FAILED;;
- esac
- else
- echo symlink-loop
- fi
- done
- fi
- ) | tr '\n' ' '
- echo
- ) | sed 's/ *$//'
- cd ..
- done
- echo
- done
-done
-
-test $fail = 1 &&
- { (exit 1); exit; }
-
-cat <<\EOF > $expected
-1 cp loc_reg rem_sl [cp: `loc_reg' and `rem_sl' are the same file ](loc_reg) (rem_sl -> dir/loc_reg)
-0 cp --rem loc_reg rem_sl (loc_reg) (rem_sl)
-0 cp --rem -d loc_reg rem_sl (loc_reg) (rem_sl)
-0 cp --rem -b loc_reg rem_sl (loc_reg) (rem_sl rem_sl~ -> dir/loc_reg)
-0 cp -b loc_reg rem_sl (loc_reg) (rem_sl rem_sl~ -> dir/loc_reg)
-0 cp -bd loc_reg rem_sl (loc_reg) (rem_sl rem_sl~ -> dir/loc_reg)
-1 cp -d loc_reg rem_sl [cp: `loc_reg' and `rem_sl' are the same file ](loc_reg) (rem_sl -> dir/loc_reg)
-
-1 cp rem_sl loc_reg [cp: `rem_sl' and `loc_reg' are the same file ](loc_reg) (rem_sl -> dir/loc_reg)
-1 cp --rem rem_sl loc_reg [cp: `rem_sl' and `loc_reg' are the same file ](loc_reg) (rem_sl -> dir/loc_reg)
-1 cp --rem -d rem_sl loc_reg [cp: `rem_sl' and `loc_reg' are the same file ](loc_reg) (rem_sl -> dir/loc_reg)
-1 cp --rem -b rem_sl loc_reg [cp: `rem_sl' and `loc_reg' are the same file ](loc_reg) (rem_sl -> dir/loc_reg)
-1 cp -b rem_sl loc_reg [cp: `rem_sl' and `loc_reg' are the same file ](loc_reg) (rem_sl -> dir/loc_reg)
-0 cp -bd rem_sl loc_reg (loc_reg -> dir/loc_reg loc_reg~) (rem_sl -> dir/loc_reg) symlink-loop symlink-loop
-1 cp -d rem_sl loc_reg [cp: `rem_sl' and `loc_reg' are the same file ](loc_reg) (rem_sl -> dir/loc_reg)
-
-1 cp loc_sl rem_reg [cp: `loc_sl' and `rem_reg' are the same file ](loc_sl -> rem_reg) (rem_reg)
-1 cp --rem loc_sl rem_reg [cp: `loc_sl' and `rem_reg' are the same file ](loc_sl -> rem_reg) (rem_reg)
-1 cp --rem -d loc_sl rem_reg [cp: `loc_sl' and `rem_reg' are the same file ](loc_sl -> rem_reg) (rem_reg)
-1 cp --rem -b loc_sl rem_reg [cp: `loc_sl' and `rem_reg' are the same file ](loc_sl -> rem_reg) (rem_reg)
-1 cp -b loc_sl rem_reg [cp: `loc_sl' and `rem_reg' are the same file ](loc_sl -> rem_reg) (rem_reg)
-0 cp -bd loc_sl rem_reg (loc_sl -> rem_reg) (rem_reg -> rem_reg rem_reg~) symlink-loop symlink-loop
-1 cp -d loc_sl rem_reg [cp: `loc_sl' and `rem_reg' are the same file ](loc_sl -> rem_reg) (rem_reg)
-
-1 cp rem_reg loc_sl [cp: `rem_reg' and `loc_sl' are the same file ](loc_sl -> rem_reg) (rem_reg)
-0 cp --rem rem_reg loc_sl (loc_sl) (rem_reg)
-0 cp --rem -d rem_reg loc_sl (loc_sl) (rem_reg)
-0 cp --rem -b rem_reg loc_sl (loc_sl loc_sl~ -> rem_reg) (rem_reg)
-0 cp -b rem_reg loc_sl (loc_sl loc_sl~ -> rem_reg) (rem_reg)
-0 cp -bd rem_reg loc_sl (loc_sl loc_sl~ -> rem_reg) (rem_reg)
-1 cp -d rem_reg loc_sl [cp: `rem_reg' and `loc_sl' are the same file ](loc_sl -> rem_reg) (rem_reg)
-
-0 mv loc_reg rem_sl () (rem_sl)
-0 mv -b loc_reg rem_sl () (rem_sl rem_sl~ -> dir/loc_reg)
-
-1 mv rem_sl loc_reg [mv: `rem_sl' and `loc_reg' are the same file ](loc_reg) (rem_sl -> dir/loc_reg)
-0 mv -b rem_sl loc_reg (loc_reg -> dir/loc_reg loc_reg~) ()
-
-1 mv loc_sl rem_reg [mv: `loc_sl' and `rem_reg' are the same file ](loc_sl -> rem_reg) (rem_reg)
-0 mv -b loc_sl rem_reg () (rem_reg -> rem_reg rem_reg~)
-
-0 mv rem_reg loc_sl (loc_sl) ()
-0 mv -b rem_reg loc_sl (loc_sl loc_sl~ -> rem_reg) ()
-
-EOF
-
-# Some folks may don't have diff.
-cmp $expected $actual \
- || { diff -c $expected $actual 1>&2; fail=1; }
-
-(exit $fail); exit $fail
diff --git a/tests/mv/part-symlink.sh b/tests/mv/part-symlink.sh
new file mode 100755
index 0000000..e83bf8e
--- /dev/null
+++ b/tests/mv/part-symlink.sh
@@ -0,0 +1,262 @@
+#!/bin/sh
+# make sure cp and mv can handle many combinations of local and
+# other-partition regular/symlink'd files.
+
+# Copyright (C) 2000-2016 Free Software Foundation, Inc.
+
+# This program is free software: you can redistribute it and/or modify
+# it under the terms of the GNU General Public License as published by
+# the Free Software Foundation, either version 3 of the License, or
+# (at your option) any later version.
+
+# This program is distributed in the hope that it will be useful,
+# but WITHOUT ANY WARRANTY; without even the implied warranty of
+# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
+# GNU General Public License for more details.
+
+# You should have received a copy of the GNU General Public License
+# along with this program. If not, see <http://www.gnu.org/licenses/>.
+
+. "${srcdir=.}/tests/init.sh"; path_prepend_ ./src
+print_ver_ cp mv
+
+cleanup_() { rm -rf "$other_partition_tmpdir"; }
+. "$abs_srcdir/tests/other-fs-tmpdir"
+
+# On NFS on Linux 2.6.9 at least we get:
+# mv: preserving permissions for 'rem_sl': Operation not supported
+require_local_dir_
+
+pwd_tmp=$(pwd)
+
+# Unset CDPATH. Otherwise, output from the 'cd dir' command
+# can make this test fail.
+(unset CDPATH) >/dev/null 2>&1 && unset CDPATH
+
+
+# Four cases:
+# local regular file w/symlink on another partition
+# (loc_reg, rem_sl)
+# (rem_sl, loc_reg)
+# local symlink to regular file on another partition
+# (loc_sl, rem_reg)
+# (rem_reg, loc_sl)
+
+# Exercise those four cases for each of
+# cp and mv, with lots of combinations of options.
+
+exec 1> actual
+
+# FIXME: This should be bigger: like more than 8k
+contents=XYZ
+
+loc_reg=loc_reg
+loc_sl=loc_sl
+rem_reg=$other_partition_tmpdir/rem_reg
+rem_sl=$other_partition_tmpdir/rem_sl
+
+for copy in cp mv; do
+ for args in \
+ 'loc_reg rem_sl' \
+ 'rem_sl loc_reg' \
+ 'loc_sl rem_reg' \
+ 'rem_reg loc_sl' \
+ ; do
+ for options in '' --rem '--rem -d' '--rem -b' -b -bd -d; do
+ case "$options" in *d*|*--rem*) test $copy = mv && continue;; esac
+ rm -rf dir || fail=1
+ rm -f "$other_partition_tmpdir"/* || fail=1
+ mkdir dir || fail=1
+ cd dir || fail=1
+ case "$args" in *loc_reg*) reg_abs="$(pwd)/$loc_reg" ;; esac
+ case "$args" in *rem_reg*) reg_abs=$rem_reg ;; esac
+ case "$args" in *loc_sl*) slink=$loc_sl ;; esac
+ case "$args" in *rem_sl*) slink=$rem_sl ;; esac
+
+ echo $contents > "$reg_abs" || fail=1
+ ln -nsf "$reg_abs" $slink || fail=1
+ actual_args=$(echo $args|sed 's,^,$,;s/ / $/')
+ actual_args=$(eval echo $actual_args)
+
+ (
+ (
+ # echo 1>&2 cp $options $args
+ $copy $options $actual_args 2>.err
+ copy_status=$?
+ echo $copy_status $copy $options $args
+
+ # Normalize the program name in the error output,
+ # remove any site-dependent part of other-partition file name,
+ # and put brackets around the output.
+ test -s .err \
+ && {
+ echo ' [' | tr -d '\n'
+ sed 's/^[^:][^:]*\(..\):/\1:/;s,'"$other_partition_tmpdir/,," .err |
+ tr -d '\n'
+ echo ']'
+ }
+ # Strip off all but the file names.
+ # Remove any site-dependent part of each file name.
+ ls=$(ls -gG --ignore=.err . \
+ | sed \
+ -e '/^total /d' \
+ -e "s,$other_partition_tmpdir/,," \
+ -e "s,$pwd_tmp/,," \
+ -e 's/^[^ ]* *[^ ]* *[^ ]* *[^ ]* *[^ ]* *[^ ]* *//')
+ ls2=$(cd "$other_partition_tmpdir" && ls -gG --ignore=.err . \
+ | sed \
+ -e '/^total /d' \
+ -e "s,$other_partition_tmpdir/,," \
+ -e "s,$pwd_tmp/,," \
+ -e 's/^[^ ]* *[^ ]* *[^ ]* *[^ ]* *[^ ]* *[^ ]* *//')
+ echo " ("$ls") ("$ls2")"
+
+ # If the command failed, then it must not have changed the files.
+ if test $copy_status != 0; then
+ for f in $actual_args; do
+ test -f $f ||
+ { echo " $copy FAILED but removed $f"; continue; }
+ case "$(cat $f)" in
+ "$contents") ;;
+ *) echo " $copy FAILED but modified $f";;
+ esac
+ done
+ fi
+
+ if test $copy = cp; then
+ # Make sure the original is unchanged and that
+ # the destination is a copy.
+ for f in $actual_args; do
+ if test -f $f; then
+ if test $copy_status != 0; then
+ test
+ fi
+ case "$(cat $f)" in
+ "$contents") ;;
+ *) echo " $copy FAILED";;
+ esac
+ else
+ echo " symlink-loop"
+ fi
+ done
+ fi
+ )
+ ) | sed 's/ *$//'
+ cd ..
+ done
+ echo
+ done
+done
+
+test $fail = 1 &&
+ { (exit 1); exit; }
+
+cat <<\EOF > expected
+1 cp loc_reg rem_sl
+ [cp: 'loc_reg' and 'rem_sl' are the same file]
+ (loc_reg) (rem_sl -> dir/loc_reg)
+0 cp --rem loc_reg rem_sl
+ (loc_reg) (rem_sl)
+0 cp --rem -d loc_reg rem_sl
+ (loc_reg) (rem_sl)
+0 cp --rem -b loc_reg rem_sl
+ (loc_reg) (rem_sl rem_sl~ -> dir/loc_reg)
+0 cp -b loc_reg rem_sl
+ (loc_reg) (rem_sl rem_sl~ -> dir/loc_reg)
+0 cp -bd loc_reg rem_sl
+ (loc_reg) (rem_sl rem_sl~ -> dir/loc_reg)
+1 cp -d loc_reg rem_sl
+ [cp: 'loc_reg' and 'rem_sl' are the same file]
+ (loc_reg) (rem_sl -> dir/loc_reg)
+
+1 cp rem_sl loc_reg
+ [cp: 'rem_sl' and 'loc_reg' are the same file]
+ (loc_reg) (rem_sl -> dir/loc_reg)
+1 cp --rem rem_sl loc_reg
+ [cp: 'rem_sl' and 'loc_reg' are the same file]
+ (loc_reg) (rem_sl -> dir/loc_reg)
+1 cp --rem -d rem_sl loc_reg
+ [cp: 'rem_sl' and 'loc_reg' are the same file]
+ (loc_reg) (rem_sl -> dir/loc_reg)
+1 cp --rem -b rem_sl loc_reg
+ [cp: 'rem_sl' and 'loc_reg' are the same file]
+ (loc_reg) (rem_sl -> dir/loc_reg)
+1 cp -b rem_sl loc_reg
+ [cp: 'rem_sl' and 'loc_reg' are the same file]
+ (loc_reg) (rem_sl -> dir/loc_reg)
+0 cp -bd rem_sl loc_reg
+ (loc_reg -> dir/loc_reg loc_reg~) (rem_sl -> dir/loc_reg)
+ symlink-loop
+ symlink-loop
+1 cp -d rem_sl loc_reg
+ [cp: 'rem_sl' and 'loc_reg' are the same file]
+ (loc_reg) (rem_sl -> dir/loc_reg)
+
+1 cp loc_sl rem_reg
+ [cp: 'loc_sl' and 'rem_reg' are the same file]
+ (loc_sl -> rem_reg) (rem_reg)
+1 cp --rem loc_sl rem_reg
+ [cp: 'loc_sl' and 'rem_reg' are the same file]
+ (loc_sl -> rem_reg) (rem_reg)
+1 cp --rem -d loc_sl rem_reg
+ [cp: 'loc_sl' and 'rem_reg' are the same file]
+ (loc_sl -> rem_reg) (rem_reg)
+1 cp --rem -b loc_sl rem_reg
+ [cp: 'loc_sl' and 'rem_reg' are the same file]
+ (loc_sl -> rem_reg) (rem_reg)
+1 cp -b loc_sl rem_reg
+ [cp: 'loc_sl' and 'rem_reg' are the same file]
+ (loc_sl -> rem_reg) (rem_reg)
+0 cp -bd loc_sl rem_reg
+ (loc_sl -> rem_reg) (rem_reg -> rem_reg rem_reg~)
+ symlink-loop
+ symlink-loop
+1 cp -d loc_sl rem_reg
+ [cp: 'loc_sl' and 'rem_reg' are the same file]
+ (loc_sl -> rem_reg) (rem_reg)
+
+1 cp rem_reg loc_sl
+ [cp: 'rem_reg' and 'loc_sl' are the same file]
+ (loc_sl -> rem_reg) (rem_reg)
+0 cp --rem rem_reg loc_sl
+ (loc_sl) (rem_reg)
+0 cp --rem -d rem_reg loc_sl
+ (loc_sl) (rem_reg)
+0 cp --rem -b rem_reg loc_sl
+ (loc_sl loc_sl~ -> rem_reg) (rem_reg)
+0 cp -b rem_reg loc_sl
+ (loc_sl loc_sl~ -> rem_reg) (rem_reg)
+0 cp -bd rem_reg loc_sl
+ (loc_sl loc_sl~ -> rem_reg) (rem_reg)
+1 cp -d rem_reg loc_sl
+ [cp: 'rem_reg' and 'loc_sl' are the same file]
+ (loc_sl -> rem_reg) (rem_reg)
+
+0 mv loc_reg rem_sl
+ () (rem_sl)
+0 mv -b loc_reg rem_sl
+ () (rem_sl rem_sl~ -> dir/loc_reg)
+
+1 mv rem_sl loc_reg
+ [mv: 'rem_sl' and 'loc_reg' are the same file]
+ (loc_reg) (rem_sl -> dir/loc_reg)
+0 mv -b rem_sl loc_reg
+ (loc_reg -> dir/loc_reg loc_reg~) ()
+
+1 mv loc_sl rem_reg
+ [mv: 'loc_sl' and 'rem_reg' are the same file]
+ (loc_sl -> rem_reg) (rem_reg)
+0 mv -b loc_sl rem_reg
+ () (rem_reg -> rem_reg rem_reg~)
+
+0 mv rem_reg loc_sl
+ (loc_sl) ()
+0 mv -b rem_reg loc_sl
+ (loc_sl loc_sl~ -> rem_reg) ()
+
+EOF
+
+# Redirect to stderr, since stdout is already taken.
+compare expected actual 1>&2 || fail=1
+
+Exit $fail
diff --git a/tests/mv/partition-perm b/tests/mv/partition-perm
deleted file mode 100755
index 969dc74..0000000
--- a/tests/mv/partition-perm
+++ /dev/null
@@ -1,55 +0,0 @@
-#!/bin/sh
-# Make sure permissions are preserved when moving from one partition to another.
-
-# Copyright (C) 1999, 2000, 2001, 2006 Free Software Foundation, Inc.
-
-# This program is free software; you can redistribute it and/or modify
-# it under the terms of the GNU General Public License as published by
-# the Free Software Foundation; either version 2 of the License, or
-# (at your option) any later version.
-
-# This program is distributed in the hope that it will be useful,
-# but WITHOUT ANY WARRANTY; without even the implied warranty of
-# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
-# GNU General Public License for more details.
-
-# You should have received a copy of the GNU General Public License
-# along with this program; if not, write to the Free Software
-# Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA
-# 02110-1301, USA.
-
-if test "$VERBOSE" = yes; then
- set -x
- mv --version
-fi
-
-. $srcdir/../other-fs-tmpdir
-. $srcdir/../envvar-check
-. $srcdir/../lang-default
-
-if test -z "$other_partition_tmpdir"; then
- exit 77
-fi
-
-pwd=`pwd`
-dir=p-perm-$$
-trap 'cd "$pwd" && rm -rf $dir $other_partition_tmpdir' 0 1 2 3 15
-
-mkdir $dir
-
-cd $dir
-: > file
-chmod a=rwx file
-
-umask 077
-mv file $other_partition_tmpdir
-
-fail=0
-test -f file && fail=1
-test -f $other_partition_tmpdir/file || fail=1
-
-# This would have failed with the mv from fileutils-4.0i.
-set _ `ls -l $other_partition_tmpdir/file`; shift; mode=$1
-test "$mode" = "-rwxrwxrwx" || fail=1
-
-exit $fail
diff --git a/tests/mv/partition-perm.sh b/tests/mv/partition-perm.sh
new file mode 100755
index 0000000..e38a312
--- /dev/null
+++ b/tests/mv/partition-perm.sh
@@ -0,0 +1,37 @@
+#!/bin/sh
+# Make sure permissions are preserved when moving from one partition to another.
+
+# Copyright (C) 1999-2016 Free Software Foundation, Inc.
+
+# This program is free software: you can redistribute it and/or modify
+# it under the terms of the GNU General Public License as published by
+# the Free Software Foundation, either version 3 of the License, or
+# (at your option) any later version.
+
+# This program is distributed in the hope that it will be useful,
+# but WITHOUT ANY WARRANTY; without even the implied warranty of
+# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
+# GNU General Public License for more details.
+
+# You should have received a copy of the GNU General Public License
+# along with this program. If not, see <http://www.gnu.org/licenses/>.
+
+. "${srcdir=.}/tests/init.sh"; path_prepend_ ./src
+print_ver_ mv
+cleanup_() { rm -rf "$other_partition_tmpdir"; }
+. "$abs_srcdir/tests/other-fs-tmpdir"
+
+> file || framework_failure_
+chmod a=rwx file || framework_failure_
+
+umask 077
+mv file "$other_partition_tmpdir" || framework_failure_
+
+test -f file && fail=1
+test -f "$other_partition_tmpdir/file" || fail=1
+
+# This would have failed with the mv from fileutils-4.0i.
+mode=$(ls -l "$other_partition_tmpdir/file" | cut -b-10)
+test "$mode" = "-rwxrwxrwx" || fail=1
+
+Exit $fail
diff --git a/tests/mv/perm-1 b/tests/mv/perm-1
deleted file mode 100755
index 1b9ab28..0000000
--- a/tests/mv/perm-1
+++ /dev/null
@@ -1,57 +0,0 @@
-#!/bin/sh
-# ensure that mv gives one diagnostic, not two, when failing
-# due to lack of permissions
-
-# Copyright (C) 2002, 2004, 2006 Free Software Foundation, Inc.
-
-# This program is free software; you can redistribute it and/or modify
-# it under the terms of the GNU General Public License as published by
-# the Free Software Foundation; either version 2 of the License, or
-# (at your option) any later version.
-
-# This program is distributed in the hope that it will be useful,
-# but WITHOUT ANY WARRANTY; without even the implied warranty of
-# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
-# GNU General Public License for more details.
-
-# You should have received a copy of the GNU General Public License
-# along with this program; if not, write to the Free Software
-# Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA
-# 02110-1301, USA.
-
-if test "$VERBOSE" = yes; then
- set -x
- mv --version
-fi
-
-. $srcdir/../envvar-check
-. $srcdir/../lang-default
-PRIV_CHECK_ARG=require-non-root . $srcdir/../priv-check
-
-pwd=`pwd`
-t0=`echo "$0"|sed 's,.*/,,'`.tmp; tmp=$t0/$$
-trap 'status=$?; cd "$pwd" && chmod -R u+rwx $t0 && rm -rf $t0 && exit $status' 0
-trap '(exit $?); exit' 1 2 13 15
-
-framework_failure=0
-mkdir -p $tmp || framework_failure=1
-cd $tmp || framework_failure=1
-mkdir -p no-write/dir || framework_failure=1
-chmod u-w no-write || framework_failure=1
-
-if test $framework_failure = 1; then
- echo "$0: failure in testing framework" 1>&2
- (exit 1); exit 1
-fi
-
-fail=0
-
-mv no-write/dir . > out 2>&1 && fail=1
-cat <<\EOF > exp
-mv: cannot move `no-write/dir' to `./dir': Permission denied
-EOF
-
-cmp out exp || fail=1
-test $fail = 1 && diff out exp 2> /dev/null
-
-(exit $fail); exit $fail
diff --git a/tests/mv/perm-1.sh b/tests/mv/perm-1.sh
new file mode 100755
index 0000000..6518568
--- /dev/null
+++ b/tests/mv/perm-1.sh
@@ -0,0 +1,35 @@
+#!/bin/sh
+# ensure that mv gives one diagnostic, not two, when failing
+# due to lack of permissions
+
+# Copyright (C) 2002-2016 Free Software Foundation, Inc.
+
+# This program is free software: you can redistribute it and/or modify
+# it under the terms of the GNU General Public License as published by
+# the Free Software Foundation, either version 3 of the License, or
+# (at your option) any later version.
+
+# This program is distributed in the hope that it will be useful,
+# but WITHOUT ANY WARRANTY; without even the implied warranty of
+# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
+# GNU General Public License for more details.
+
+# You should have received a copy of the GNU General Public License
+# along with this program. If not, see <http://www.gnu.org/licenses/>.
+
+. "${srcdir=.}/tests/init.sh"; path_prepend_ ./src
+print_ver_ mv
+skip_if_root_
+
+mkdir -p no-write/dir || framework_failure_
+chmod ug-w no-write || framework_failure_
+
+
+mv no-write/dir . > out 2>&1 && fail=1
+cat <<\EOF > exp
+mv: cannot move 'no-write/dir' to './dir': Permission denied
+EOF
+
+compare exp out || fail=1
+
+Exit $fail
diff --git a/tests/mv/reply-no b/tests/mv/reply-no
deleted file mode 100755
index ae0a3cd..0000000
--- a/tests/mv/reply-no
+++ /dev/null
@@ -1,58 +0,0 @@
-#!/bin/sh
-# Ensure that `mv --reply=no f1 f2' works.
-
-# Copyright (C) 2005, 2006 Free Software Foundation, Inc.
-
-# This program is free software; you can redistribute it and/or modify
-# it under the terms of the GNU General Public License as published by
-# the Free Software Foundation; either version 2 of the License, or
-# (at your option) any later version.
-
-# This program is distributed in the hope that it will be useful,
-# but WITHOUT ANY WARRANTY; without even the implied warranty of
-# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
-# GNU General Public License for more details.
-
-# You should have received a copy of the GNU General Public License
-# along with this program; if not, write to the Free Software
-# Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA
-# 02110-1301, USA.
-
-if test "$VERBOSE" = yes; then
- set -x
- mv --version
-fi
-
-. $srcdir/../lang-default
-
-pwd=`pwd`
-t0=`echo "$0"|sed 's,.*/,,'`.tmp; tmp=$t0/$$
-trap 'status=$?; cd "$pwd" && chmod -R u+rwx $t0 && rm -rf $t0 && exit $status' 0
-trap '(exit $?); exit $?' 1 2 13 15
-
-framework_failure=0
-mkdir -p $tmp || framework_failure=1
-cd $tmp || framework_failure=1
-touch a b || framework_failure=1
-
-if test $framework_failure = 1; then
- echo "$0: failure in testing framework" 1>&2
- (exit 1); exit 1
-fi
-
-fail=0
-
-mv --interactive --reply=no a b > out 2>&1 || fail=1
-
-# Both files must remain.
-test -f a || fail=1
-test -f b || fail=1
-
-cat <<EOF > exp_err
-mv: the --reply option is deprecated; use -i or -f instead
-EOF
-
-cmp out exp_err || fail=1
-test $fail = 1 && diff out exp_err 2> /dev/null
-
-(exit $fail); exit $fail
diff --git a/tests/mv/sticky-to-xpart.sh b/tests/mv/sticky-to-xpart.sh
new file mode 100755
index 0000000..89e8df4
--- /dev/null
+++ b/tests/mv/sticky-to-xpart.sh
@@ -0,0 +1,68 @@
+#!/bin/sh
+# A cross-partition move of a file in a sticky tmpdir and owned by
+# someone else would evoke an invalid diagnostic:
+# mv: cannot remove 'x': Operation not permitted
+# Affects coreutils-6.0-6.9.
+
+# Copyright (C) 2007-2016 Free Software Foundation, Inc.
+
+# This program is free software: you can redistribute it and/or modify
+# it under the terms of the GNU General Public License as published by
+# the Free Software Foundation, either version 3 of the License, or
+# (at your option) any later version.
+
+# This program is distributed in the hope that it will be useful,
+# but WITHOUT ANY WARRANTY; without even the implied warranty of
+# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
+# GNU General Public License for more details.
+
+# You should have received a copy of the GNU General Public License
+# along with this program. If not, see <http://www.gnu.org/licenses/>.
+
+. "${srcdir=.}/tests/init.sh"; path_prepend_ ./src
+print_ver_ mv
+require_root_
+
+cleanup_() { rm -rf "$other_partition_tmpdir"; }
+. "$abs_srcdir/tests/other-fs-tmpdir"
+
+# Set up to run a test where non-root user tries to move a root-owned
+# file from a sticky tmpdir to a directory owned by that user on
+# a different partition.
+
+mkdir t || framework_failure_
+chmod a=rwx,o+t t || framework_failure_
+echo > t/root-owned || framework_failure_
+chmod a+r t/root-owned || framework_failure_
+chown "$NON_ROOT_USERNAME" "$other_partition_tmpdir" || framework_failure_
+
+# We have to allow $NON_ROOT_USERNAME access to ".".
+chmod go+x . || framework_failure_
+
+
+# Ensure that $NON_ROOT_USERNAME can access the required version of mv.
+version=$(
+ chroot --skip-chdir --user=$NON_ROOT_USERNAME / env PATH="$PATH" \
+ mv --version |
+ sed -n '1s/.* //p'
+)
+case $version in
+ $PACKAGE_VERSION) ;;
+ *) skip_ "cannot access just-built mv as user $NON_ROOT_USERNAME";;
+esac
+
+chroot --skip-chdir --user=$NON_ROOT_USERNAME / env PATH="$PATH" \
+ mv t/root-owned "$other_partition_tmpdir" 2> out-t && fail=1
+
+# On some systems, we get 'Not owner'. Convert it.
+# On other systems (HPUX), we get 'Permission denied'. Convert it, too.
+onp='Operation not permitted'
+sed "s/Not owner/$onp/;s/Permission denied/$onp/" out-t > out
+
+cat <<\EOF > exp
+mv: cannot remove 't/root-owned': Operation not permitted
+EOF
+
+compare exp out || fail=1
+
+Exit $fail
diff --git a/tests/mv/symlink-onto-hardlink-to-self.sh b/tests/mv/symlink-onto-hardlink-to-self.sh
new file mode 100755
index 0000000..d43d32d
--- /dev/null
+++ b/tests/mv/symlink-onto-hardlink-to-self.sh
@@ -0,0 +1,63 @@
+#!/bin/sh
+# Demonstrate that when moving a symlink onto a hardlink-to-that-symlink,
+# an error is presented. Depending on your kernel (e.g., Linux, Solaris,
+# but not NetBSD), prior to coreutils-8.16, the mv would successfully perform
+# a no-op. I.e., surprisingly, mv s1 s2 would succeed, yet fail to remove s1.
+
+# Copyright (C) 2012-2016 Free Software Foundation, Inc.
+
+# This program is free software: you can redistribute it and/or modify
+# it under the terms of the GNU General Public License as published by
+# the Free Software Foundation, either version 3 of the License, or
+# (at your option) any later version.
+
+# This program is distributed in the hope that it will be useful,
+# but WITHOUT ANY WARRANTY; without even the implied warranty of
+# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
+# GNU General Public License for more details.
+
+# You should have received a copy of the GNU General Public License
+# along with this program. If not, see <http://www.gnu.org/licenses/>.
+
+. "${srcdir=.}/tests/init.sh"; path_prepend_ ./src
+print_ver_ mv
+
+# Create a file f, and a symlink s1 to that file.
+touch f || framework_failure_
+ln -s f s2 || framework_failure_
+
+# Attempt to create a hard link to that symlink.
+# On some systems, it's not possible: they create a hard link to the referent.
+ln s2 s1 || framework_failure_
+
+# If s1 is not a symlink, skip this test.
+test -h s1 \
+ || skip_ your kernel or file system cannot create a hard link to a symlink
+
+for opt in '' --backup; do
+
+ if test "$opt" = --backup; then
+ mv $opt s1 s2 > out 2>&1 || fail=1
+ compare /dev/null out || fail=1
+
+ # Ensure that s1 is gone.
+ test -e s1 && fail=1
+
+ # With --backup, ensure that the backup file was created.
+ ref=$(readlink s2~) || fail=1
+ test "$ref" = f || fail=1
+ else
+ echo "mv: 's1' and 's2' are the same file" > exp
+ mv $opt s1 s2 2>err && fail=1
+ compare exp err || fail=1
+
+ # Ensure that s1 is still present.
+ test -e s1 || fail=1
+
+ # Without --backup, ensure there is no backup file.
+ test -e s2~ && fail=1
+ fi
+
+done
+
+Exit $fail
diff --git a/tests/mv/symlink-onto-hardlink.sh b/tests/mv/symlink-onto-hardlink.sh
new file mode 100755
index 0000000..47ea404
--- /dev/null
+++ b/tests/mv/symlink-onto-hardlink.sh
@@ -0,0 +1,41 @@
+#!/bin/sh
+# Ensure that mv works with a few symlink-onto-hard-link cases.
+
+# Copyright (C) 2012-2016 Free Software Foundation, Inc.
+
+# This program is free software: you can redistribute it and/or modify
+# it under the terms of the GNU General Public License as published by
+# the Free Software Foundation, either version 3 of the License, or
+# (at your option) any later version.
+
+# This program is distributed in the hope that it will be useful,
+# but WITHOUT ANY WARRANTY; without even the implied warranty of
+# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
+# GNU General Public License for more details.
+
+# You should have received a copy of the GNU General Public License
+# along with this program. If not, see <http://www.gnu.org/licenses/>.
+
+. "${srcdir=.}/tests/init.sh"; path_prepend_ ./src
+print_ver_ mv
+
+touch f || framework_failure_
+ln f h || framework_failure_
+ln -s f s || framework_failure_
+
+# Given two links f and h to some important content, and a symlink s to f,
+# "mv s f" must fail because it might then be hard to find the link, h.
+# "mv s l" may succeed because then, s (now "l") still points to f.
+# Of course, if the symlink were being moved into a different destination
+# directory, things would be very different, and, I suspect, implausible.
+
+echo "mv: 's' and 'f' are the same file" > exp || framework_failure_
+mv s f > out 2> err && fail=1
+compare /dev/null out || fail=1
+compare exp err || fail=1
+
+mv s l > out 2> err || fail=1
+compare /dev/null out || fail=1
+compare /dev/null err || fail=1
+
+Exit $fail
diff --git a/tests/mv/to-symlink b/tests/mv/to-symlink
deleted file mode 100755
index 6473cfb..0000000
--- a/tests/mv/to-symlink
+++ /dev/null
@@ -1,63 +0,0 @@
-#!/bin/sh
-# Make sure that the copying code used in an inter-partition
-# move unlinks a destination symlink before opening it.
-
-# Copyright (C) 1999, 2000 Free Software Foundation, Inc.
-
-# This program is free software; you can redistribute it and/or modify
-# it under the terms of the GNU General Public License as published by
-# the Free Software Foundation; either version 2 of the License, or
-# (at your option) any later version.
-
-# This program is distributed in the hope that it will be useful,
-# but WITHOUT ANY WARRANTY; without even the implied warranty of
-# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
-# GNU General Public License for more details.
-
-# You should have received a copy of the GNU General Public License
-# along with this program; if not, write to the Free Software
-# Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA
-# 02110-1301, USA.
-
-if test "$VERBOSE" = yes; then
- set -x
- mv --version
-fi
-
-. $srcdir/../other-fs-tmpdir
-. $srcdir/../envvar-check
-
-if test -z "$other_partition_tmpdir"; then
- exit 77
-fi
-
-rem_file="$other_partition_tmpdir/file"
-rem_symlink="$other_partition_tmpdir/symlink"
-file=to-sym-$$
-
-fail=0
-
-trap 'rm -fr $file $other_partition_tmpdir; exit $fail' 0 1 2 3 15
-
-framework_failure=0
-rm -f $file || framework_failure=1
-echo local > $file || framework_failure=1
-echo remote > $rem_file || framework_failure=1
-ln -s $rem_file $rem_symlink || framework_failure=1
-
-if test $framework_failure = 1; then
- echo 'failure in testing framework'
- exit 1
-fi
-
-# This mv command should succeed, unlinking the symlink
-# before copying.
-mv $file $rem_symlink || fail=1
-
-# Make sure $file is gone.
-test -f $file && fail=1
-
-# Make sure $rem_file is unmodified.
-test `cat $rem_file` = remote || fail=1
-
-exit $fail
diff --git a/tests/mv/to-symlink.sh b/tests/mv/to-symlink.sh
new file mode 100755
index 0000000..618abda
--- /dev/null
+++ b/tests/mv/to-symlink.sh
@@ -0,0 +1,43 @@
+#!/bin/sh
+# Make sure that the copying code used in an inter-partition
+# move unlinks a destination symlink before opening it.
+
+# Copyright (C) 1999-2016 Free Software Foundation, Inc.
+
+# This program is free software: you can redistribute it and/or modify
+# it under the terms of the GNU General Public License as published by
+# the Free Software Foundation, either version 3 of the License, or
+# (at your option) any later version.
+
+# This program is distributed in the hope that it will be useful,
+# but WITHOUT ANY WARRANTY; without even the implied warranty of
+# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
+# GNU General Public License for more details.
+
+# You should have received a copy of the GNU General Public License
+# along with this program. If not, see <http://www.gnu.org/licenses/>.
+
+. "${srcdir=.}/tests/init.sh"; path_prepend_ ./src
+print_ver_ mv
+cleanup_() { rm -rf "$other_partition_tmpdir"; }
+. "$abs_srcdir/tests/other-fs-tmpdir"
+
+rem_file="$other_partition_tmpdir/file"
+rem_symlink="$other_partition_tmpdir/symlink"
+file=to-sym
+
+echo local > $file || framework_failure_
+echo remote > $rem_file || framework_failure_
+ln -s $rem_file $rem_symlink || framework_failure_
+
+# This mv command should succeed, unlinking the symlink
+# before copying.
+mv $file $rem_symlink || fail=1
+
+# Make sure $file is gone.
+test -f $file && fail=1
+
+# Make sure $rem_file is unmodified.
+test $(cat $rem_file) = remote || fail=1
+
+Exit $fail
diff --git a/tests/mv/trailing-slash b/tests/mv/trailing-slash
deleted file mode 100755
index b734624..0000000
--- a/tests/mv/trailing-slash
+++ /dev/null
@@ -1,77 +0,0 @@
-#!/bin/sh
-# On some operating systems, e.g. SunOS-4.1.1_U1 on sun3x,
-# rename() doesn't accept trailing slashes.
-# Also, ensure that "mv dir non-exist-dir/" works.
-# Also, ensure that "cp dir non-exist-dir/" works.
-
-# Copyright (C) 2004, 2006 Free Software Foundation, Inc.
-
-# This program is free software; you can redistribute it and/or modify
-# it under the terms of the GNU General Public License as published by
-# the Free Software Foundation; either version 2 of the License, or
-# (at your option) any later version.
-
-# This program is distributed in the hope that it will be useful,
-# but WITHOUT ANY WARRANTY; without even the implied warranty of
-# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
-# GNU General Public License for more details.
-
-# You should have received a copy of the GNU General Public License
-# along with this program; if not, write to the Free Software
-# Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA
-# 02110-1301, USA.
-
-if test "$VERBOSE" = yes; then
- set -x
- mv --version
-fi
-
-pwd=`pwd`
-tmp=mv-tslash.$$
-trap 'status=$?; cd "$pwd" && exec 1>&2; rm -rf $tmp && exit $status' 0
-trap '(exit $?); exit' 1 2 13 15
-
-. $srcdir/../envvar-check
-
-framework_failure=0
-mkdir $tmp || framework_failure=1
-cd $tmp || framework_failure=1
-mkdir foo || framework_failure=1
-
-if test $framework_failure = 1; then
- echo 'failure in testing framework' 1>&2
- exit 1
-fi
-
-fail=0
-
-mv foo/ bar || fail=1
-
-# mv and cp would misbehave for coreutils versions [5.3.0..5.97], 6.0 and 6.1
-for cmd in mv 'cp -r'; do
- for opt in '' -T -u; do
- rm -rf d e || framework_failure=1
- mkdir d || framework_failure=1
- if test $framework_failure = 1; then
- echo 'failure in testing framework'
- (exit 1); exit 1
- fi
-
- $cmd $opt d e/ || fail=1
- if test "$cmd" = mv; then
- test -d d && fail=1
- else
- test -d d || fail=1
- fi
- test -d e || fail=1
- done
-done
-
-# We would like the erroneous-looking "mv any non-dir/" to fail,
-# but with the current implementation, it depends on how the
-# underlying rename syscall handles the trailing slash.
-# It does fail, as desired, on recent Linux and Solaris systems.
-#touch a a2
-#mv a a2/ && fail=1
-
-(exit $fail); exit $fail
diff --git a/tests/mv/trailing-slash.sh b/tests/mv/trailing-slash.sh
new file mode 100755
index 0000000..954282d
--- /dev/null
+++ b/tests/mv/trailing-slash.sh
@@ -0,0 +1,65 @@
+#!/bin/sh
+# On some operating systems, e.g. SunOS-4.1.1_U1 on sun3x,
+# rename() doesn't accept trailing slashes.
+# Also, ensure that "mv dir non-exist-dir/" works.
+# Also, ensure that "cp dir non-exist-dir/" works.
+
+# Copyright (C) 2004-2016 Free Software Foundation, Inc.
+
+# This program is free software: you can redistribute it and/or modify
+# it under the terms of the GNU General Public License as published by
+# the Free Software Foundation, either version 3 of the License, or
+# (at your option) any later version.
+
+# This program is distributed in the hope that it will be useful,
+# but WITHOUT ANY WARRANTY; without even the implied warranty of
+# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
+# GNU General Public License for more details.
+
+# You should have received a copy of the GNU General Public License
+# along with this program. If not, see <http://www.gnu.org/licenses/>.
+
+. "${srcdir=.}/tests/init.sh"; path_prepend_ ./src
+print_ver_ mv
+
+mkdir foo || framework_failure_
+
+
+mv foo/ bar || fail=1
+
+# mv and cp would misbehave for coreutils versions [5.3.0..5.97], 6.0 and 6.1
+for cmd in mv 'cp -r'; do
+ for opt in '' -T -u; do
+ rm -rf d e || framework_failure_
+ mkdir d || framework_failure_
+
+ $cmd $opt d e/ || fail=1
+ if test "$cmd" = mv; then
+ test -d d && fail=1
+ else
+ test -d d || fail=1
+ fi
+ test -d e || fail=1
+ done
+done
+
+# We would like the erroneous-looking "mv any non-dir/" to fail,
+# but with the current implementation, it depends on how the
+# underlying rename syscall handles the trailing slash.
+# It does fail, as desired, on recent Linux and Solaris systems.
+#touch a a2
+#returns_ 1 mv a a2/ || fail=1
+
+# Test for a cp-specific diagnostic introduced after coreutils-8.7:
+printf '%s\n' \
+ "cp: cannot create regular file 'no-such/': Not a directory" \
+> expected-err
+touch b
+cp b no-such/ 2> err
+
+# Map "No such file..." diagnostic to the expected "Not a directory"
+sed 's/No such file or directory/Not a directory/' err > k && mv k err
+
+compare expected-err err || fail=1
+
+Exit $fail
diff --git a/tests/mv/update b/tests/mv/update
deleted file mode 100755
index 6bf161e..0000000
--- a/tests/mv/update
+++ /dev/null
@@ -1,71 +0,0 @@
-#!/bin/sh
-# make sure --update works as advertised
-
-# Copyright (C) 2001, 2004, 2006 Free Software Foundation, Inc.
-
-# This program is free software; you can redistribute it and/or modify
-# it under the terms of the GNU General Public License as published by
-# the Free Software Foundation; either version 2 of the License, or
-# (at your option) any later version.
-
-# This program is distributed in the hope that it will be useful,
-# but WITHOUT ANY WARRANTY; without even the implied warranty of
-# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
-# GNU General Public License for more details.
-
-# You should have received a copy of the GNU General Public License
-# along with this program; if not, write to the Free Software
-# Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA
-# 02110-1301, USA.
-
-if test "$VERBOSE" = yes; then
- set -x
- cp --version
- mv --version
-fi
-
-. $srcdir/../envvar-check
-. $srcdir/../lang-default
-
-pwd=`pwd`
-tmp=mv-update.$$
-trap 'status=$?; cd "$pwd" && rm -rf $tmp && exit $status' 0
-trap '(exit $?); exit' 1 2 13 15
-
-framework_failure=0
-mkdir $tmp || framework_failure=1
-cd $tmp || framework_failure=1
-echo old > old || framework_failure=1
-touch -d yesterday old || framework_failure=1
-echo new > new || framework_failure=1
-
-if test $framework_failure = 1; then
- echo 'failure in testing framework' 1>&2
- (exit 1); exit 1
-fi
-
-fail=0
-
-for cp_or_mv in cp mv; do
- # This is a no-op.
- $cp_or_mv --update old new || fail=1
- case "`cat new`" in new) ;; *) fail=1 ;; esac
- case "`cat old`" in old) ;; *) fail=1 ;; esac
-done
-
-# This will actually perform the rename.
-mv --update new old || fail=1
-test -f new && fail=1
-case "`cat old`" in new) ;; *) fail=1 ;; esac
-
-# Restore initial conditions.
-echo old > old || fail=1
-touch -d yesterday old || fail=1
-echo new > new || fail=1
-
-# This will actually perform the copy.
-cp --update new old || fail=1
-case "`cat old`" in new) ;; *) fail=1 ;; esac
-case "`cat new`" in new) ;; *) fail=1 ;; esac
-
-(exit $fail); exit $fail
diff --git a/tests/mv/update.sh b/tests/mv/update.sh
new file mode 100755
index 0000000..945a398
--- /dev/null
+++ b/tests/mv/update.sh
@@ -0,0 +1,54 @@
+#!/bin/sh
+# make sure --update works as advertised
+
+# Copyright (C) 2001-2016 Free Software Foundation, Inc.
+
+# This program is free software: you can redistribute it and/or modify
+# it under the terms of the GNU General Public License as published by
+# the Free Software Foundation, either version 3 of the License, or
+# (at your option) any later version.
+
+# This program is distributed in the hope that it will be useful,
+# but WITHOUT ANY WARRANTY; without even the implied warranty of
+# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
+# GNU General Public License for more details.
+
+# You should have received a copy of the GNU General Public License
+# along with this program. If not, see <http://www.gnu.org/licenses/>.
+
+. "${srcdir=.}/tests/init.sh"; path_prepend_ ./src
+print_ver_ cp mv
+
+echo old > old || framework_failure_
+touch -d yesterday old || framework_failure_
+echo new > new || framework_failure_
+
+
+for interactive in '' -i; do
+ for cp_or_mv in cp mv; do
+ # This is a no-op, with no prompt.
+ # With coreutils-6.9 and earlier, using --update with -i would
+ # mistakenly elicit a prompt.
+ $cp_or_mv $interactive --update old new < /dev/null > out 2>&1 || fail=1
+ compare /dev/null out || fail=1
+ case "$(cat new)" in new) ;; *) fail=1 ;; esac
+ case "$(cat old)" in old) ;; *) fail=1 ;; esac
+ done
+done
+
+# This will actually perform the rename.
+mv --update new old || fail=1
+test -f new && fail=1
+case "$(cat old)" in new) ;; *) fail=1 ;; esac
+
+# Restore initial conditions.
+echo old > old || fail=1
+touch -d yesterday old || fail=1
+echo new > new || fail=1
+
+# This will actually perform the copy.
+cp --update new old || fail=1
+case "$(cat old)" in new) ;; *) fail=1 ;; esac
+case "$(cat new)" in new) ;; *) fail=1 ;; esac
+
+Exit $fail
diff --git a/tests/mv/vfat b/tests/mv/vfat
deleted file mode 100644
index 20b10e2..0000000
--- a/tests/mv/vfat
+++ /dev/null
@@ -1,66 +0,0 @@
-#!/bin/sh
-# This is just for the record.
-# This test is not run.
-
-# Copyright (C) 2003 Free Software Foundation, Inc.
-
-# This program is free software; you can redistribute it and/or modify
-# it under the terms of the GNU General Public License as published by
-# the Free Software Foundation; either version 2 of the License, or
-# (at your option) any later version.
-
-# This program is distributed in the hope that it will be useful,
-# but WITHOUT ANY WARRANTY; without even the implied warranty of
-# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
-# GNU General Public License for more details.
-
-# You should have received a copy of the GNU General Public License
-# along with this program; if not, write to the Free Software
-# Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA
-# 02110-1301, USA.
-
-exit 0
-
-cat <<\EOF
-
-Prior to 5.0.91, ...
-
-The problem:
- On a VFAT file system with coreutils-5.0.90, `mv FOO foo' removes the
- sole copy of the file named by both the source and destination arguments.
-
-Demonstrate the problem, as root:
-
-cd /tmp \
- && dd if=/dev/zero of=1 bs=8192 count=50 \
- && mkdir mnt && mkfs -t vfat 1 \
- && mount -oloop 1 mnt && cd mnt \
- && printf something important > foo \
- && mv foo FOO
-test -f FOO && echo PASS-1 || echo FAIL-1
-ln foo bar
-mv foo FOO
-test -f FOO && echo PASS-2 || echo FAIL-2
-
-And in case you actually do the above, you can do this to clean up:
-
- cd /tmp && umount /tmp/mnt && rm -r 1 mnt
-
-Hey! Can't create hard links on vfat.
-The above `ln' evokes an `operation not permitted' failure.
-
-This demonstrates the same thing with file system type `umsdos'
-No hard links:
-
-cd /tmp \
- && dd if=/dev/zero of=1 bs=8192 count=50 \
- && mkdir mnt && mkfs -t msdos 1 \
- && mount -t umsdos -oloop 1 mnt && cd mnt \
- && printf something important > foo \
- && mv foo FOO
-test -f FOO && echo PASS-1 || echo FAIL-1
-ln foo bar
-mv foo FOO
-test -f FOO && echo PASS-2 || echo FAIL-2
-
-EOF
diff --git a/tests/no-perl b/tests/no-perl
new file mode 100644
index 0000000..19cfcfb
--- /dev/null
+++ b/tests/no-perl
@@ -0,0 +1,6 @@
+#!/bin/sh
+# Perl is not available, the test should be considered skipped.
+# FD 9 should have been opened by the test suite harness, pointing
+# to the original stderr (usually, the user's terminal).
+echo "test skipped: no usable version of Perl found" >&9
+exit 77
diff --git a/tests/od/Makefile.am b/tests/od/Makefile.am
deleted file mode 100644
index 21396a9..0000000
--- a/tests/od/Makefile.am
+++ /dev/null
@@ -1,12 +0,0 @@
-## Process this file with automake to produce Makefile.in -*-Makefile-*-.
-
-EXTRA_DIST = $(TESTS)
-
-TESTS_ENVIRONMENT = \
- top_srcdir=$(top_srcdir) \
- srcdir=$(srcdir) \
- PERL="$(PERL)" \
- CU_TEST_NAME=`basename $(abs_srcdir)`,$$tst \
- PATH="$(VG_PATH_PREFIX)`pwd`/../../src$(PATH_SEPARATOR)$$PATH"
-
-TESTS = od-N x8
diff --git a/tests/od/Makefile.in b/tests/od/Makefile.in
deleted file mode 100644
index 90f34eb..0000000
--- a/tests/od/Makefile.in
+++ /dev/null
@@ -1,719 +0,0 @@
-# Makefile.in generated by automake 1.10 from Makefile.am.
-# @configure_input@
-
-# Copyright (C) 1994, 1995, 1996, 1997, 1998, 1999, 2000, 2001, 2002,
-# 2003, 2004, 2005, 2006 Free Software Foundation, Inc.
-# This Makefile.in is free software; the Free Software Foundation
-# gives unlimited permission to copy and/or distribute it,
-# with or without modifications, as long as this notice is preserved.
-
-# This program is distributed in the hope that it will be useful,
-# but WITHOUT ANY WARRANTY, to the extent permitted by law; without
-# even the implied warranty of MERCHANTABILITY or FITNESS FOR A
-# PARTICULAR PURPOSE.
-
-@SET_MAKE@
-VPATH = @srcdir@
-pkgdatadir = $(datadir)/@PACKAGE@
-pkglibdir = $(libdir)/@PACKAGE@
-pkgincludedir = $(includedir)/@PACKAGE@
-am__cd = CDPATH="$${ZSH_VERSION+.}$(PATH_SEPARATOR)" && cd
-install_sh_DATA = $(install_sh) -c -m 644
-install_sh_PROGRAM = $(install_sh) -c
-install_sh_SCRIPT = $(install_sh) -c
-INSTALL_HEADER = $(INSTALL_DATA)
-transform = $(program_transform_name)
-NORMAL_INSTALL = :
-PRE_INSTALL = :
-POST_INSTALL = :
-NORMAL_UNINSTALL = :
-PRE_UNINSTALL = :
-POST_UNINSTALL = :
-build_triplet = @build@
-host_triplet = @host@
-subdir = tests/od
-DIST_COMMON = $(srcdir)/Makefile.am $(srcdir)/Makefile.in
-ACLOCAL_M4 = $(top_srcdir)/aclocal.m4
-am__aclocal_m4_deps = $(top_srcdir)/m4/absolute-header.m4 \
- $(top_srcdir)/m4/acl.m4 $(top_srcdir)/m4/alloca.m4 \
- $(top_srcdir)/m4/allocsa.m4 $(top_srcdir)/m4/argmatch.m4 \
- $(top_srcdir)/m4/arpa_inet_h.m4 $(top_srcdir)/m4/assert.m4 \
- $(top_srcdir)/m4/atexit.m4 $(top_srcdir)/m4/autobuild.m4 \
- $(top_srcdir)/m4/backupfile.m4 $(top_srcdir)/m4/base64.m4 \
- $(top_srcdir)/m4/bison.m4 $(top_srcdir)/m4/boottime.m4 \
- $(top_srcdir)/m4/c-strtod.m4 $(top_srcdir)/m4/calloc.m4 \
- $(top_srcdir)/m4/canon-host.m4 \
- $(top_srcdir)/m4/canonicalize.m4 \
- $(top_srcdir)/m4/chdir-long.m4 $(top_srcdir)/m4/check-decl.m4 \
- $(top_srcdir)/m4/chown.m4 $(top_srcdir)/m4/clock_time.m4 \
- $(top_srcdir)/m4/cloexec.m4 $(top_srcdir)/m4/close-stream.m4 \
- $(top_srcdir)/m4/closeout.m4 $(top_srcdir)/m4/codeset.m4 \
- $(top_srcdir)/m4/config-h.m4 $(top_srcdir)/m4/cycle-check.m4 \
- $(top_srcdir)/m4/d-ino.m4 $(top_srcdir)/m4/d-type.m4 \
- $(top_srcdir)/m4/dirfd.m4 $(top_srcdir)/m4/dirname.m4 \
- $(top_srcdir)/m4/dos.m4 $(top_srcdir)/m4/double-slash-root.m4 \
- $(top_srcdir)/m4/dup2.m4 $(top_srcdir)/m4/eealloc.m4 \
- $(top_srcdir)/m4/eoverflow.m4 $(top_srcdir)/m4/error.m4 \
- $(top_srcdir)/m4/euidaccess-stat.m4 \
- $(top_srcdir)/m4/euidaccess.m4 $(top_srcdir)/m4/exclude.m4 \
- $(top_srcdir)/m4/exitfail.m4 $(top_srcdir)/m4/extensions.m4 \
- $(top_srcdir)/m4/fchdir.m4 $(top_srcdir)/m4/fcntl-safer.m4 \
- $(top_srcdir)/m4/fcntl_h.m4 $(top_srcdir)/m4/fd-reopen.m4 \
- $(top_srcdir)/m4/file-type.m4 $(top_srcdir)/m4/fileblocks.m4 \
- $(top_srcdir)/m4/filemode.m4 $(top_srcdir)/m4/filenamecat.m4 \
- $(top_srcdir)/m4/flexmember.m4 $(top_srcdir)/m4/fnmatch.m4 \
- $(top_srcdir)/m4/fpending.m4 $(top_srcdir)/m4/fprintftime.m4 \
- $(top_srcdir)/m4/free.m4 $(top_srcdir)/m4/fstypename.m4 \
- $(top_srcdir)/m4/fsusage.m4 $(top_srcdir)/m4/ftruncate.m4 \
- $(top_srcdir)/m4/fts.m4 $(top_srcdir)/m4/getaddrinfo.m4 \
- $(top_srcdir)/m4/getcwd-abort-bug.m4 \
- $(top_srcdir)/m4/getcwd-path-max.m4 $(top_srcdir)/m4/getcwd.m4 \
- $(top_srcdir)/m4/getdate.m4 $(top_srcdir)/m4/getdelim.m4 \
- $(top_srcdir)/m4/getgroups.m4 $(top_srcdir)/m4/gethostname.m4 \
- $(top_srcdir)/m4/gethrxtime.m4 $(top_srcdir)/m4/getline.m4 \
- $(top_srcdir)/m4/getloadavg.m4 $(top_srcdir)/m4/getndelim2.m4 \
- $(top_srcdir)/m4/getopt.m4 $(top_srcdir)/m4/getpagesize.m4 \
- $(top_srcdir)/m4/getpass.m4 $(top_srcdir)/m4/gettext.m4 \
- $(top_srcdir)/m4/gettime.m4 $(top_srcdir)/m4/gettimeofday.m4 \
- $(top_srcdir)/m4/getugroups.m4 \
- $(top_srcdir)/m4/getusershell.m4 $(top_srcdir)/m4/glibc21.m4 \
- $(top_srcdir)/m4/gnulib-common.m4 \
- $(top_srcdir)/m4/gnulib-comp.m4 \
- $(top_srcdir)/m4/group-member.m4 \
- $(top_srcdir)/m4/hard-locale.m4 $(top_srcdir)/m4/hash.m4 \
- $(top_srcdir)/m4/host-os.m4 $(top_srcdir)/m4/human.m4 \
- $(top_srcdir)/m4/i-ring.m4 $(top_srcdir)/m4/iconv.m4 \
- $(top_srcdir)/m4/idcache.m4 $(top_srcdir)/m4/inet_ntop.m4 \
- $(top_srcdir)/m4/inline.m4 $(top_srcdir)/m4/intmax_t.m4 \
- $(top_srcdir)/m4/inttostr.m4 $(top_srcdir)/m4/inttypes-pri.m4 \
- $(top_srcdir)/m4/inttypes.m4 $(top_srcdir)/m4/inttypes_h.m4 \
- $(top_srcdir)/m4/isapipe.m4 $(top_srcdir)/m4/jm-macros.m4 \
- $(top_srcdir)/m4/jm-winsz1.m4 $(top_srcdir)/m4/jm-winsz2.m4 \
- $(top_srcdir)/m4/lchmod.m4 $(top_srcdir)/m4/lchown.m4 \
- $(top_srcdir)/m4/lib-check.m4 $(top_srcdir)/m4/lib-ignore.m4 \
- $(top_srcdir)/m4/lib-ld.m4 $(top_srcdir)/m4/lib-link.m4 \
- $(top_srcdir)/m4/lib-prefix.m4 $(top_srcdir)/m4/link-follow.m4 \
- $(top_srcdir)/m4/localcharset.m4 \
- $(top_srcdir)/m4/long-options.m4 \
- $(top_srcdir)/m4/longdouble.m4 $(top_srcdir)/m4/longlong.m4 \
- $(top_srcdir)/m4/ls-mntd-fs.m4 $(top_srcdir)/m4/lstat.m4 \
- $(top_srcdir)/m4/mbchar.m4 $(top_srcdir)/m4/mbiter.m4 \
- $(top_srcdir)/m4/mbrtowc.m4 $(top_srcdir)/m4/mbscasecmp.m4 \
- $(top_srcdir)/m4/mbstate_t.m4 $(top_srcdir)/m4/mbswidth.m4 \
- $(top_srcdir)/m4/md5.m4 $(top_srcdir)/m4/memcasecmp.m4 \
- $(top_srcdir)/m4/memchr.m4 $(top_srcdir)/m4/memcmp.m4 \
- $(top_srcdir)/m4/memcoll.m4 $(top_srcdir)/m4/memcpy.m4 \
- $(top_srcdir)/m4/memmove.m4 $(top_srcdir)/m4/mempcpy.m4 \
- $(top_srcdir)/m4/memrchr.m4 $(top_srcdir)/m4/memset.m4 \
- $(top_srcdir)/m4/memxfrm.m4 $(top_srcdir)/m4/mkancesdirs.m4 \
- $(top_srcdir)/m4/mkdir-p.m4 $(top_srcdir)/m4/mkdir-slash.m4 \
- $(top_srcdir)/m4/mkstemp.m4 $(top_srcdir)/m4/mktime.m4 \
- $(top_srcdir)/m4/modechange.m4 $(top_srcdir)/m4/mountlist.m4 \
- $(top_srcdir)/m4/mpsort.m4 $(top_srcdir)/m4/nanosleep.m4 \
- $(top_srcdir)/m4/netinet_in_h.m4 $(top_srcdir)/m4/nls.m4 \
- $(top_srcdir)/m4/openat.m4 $(top_srcdir)/m4/pathmax.m4 \
- $(top_srcdir)/m4/perl.m4 $(top_srcdir)/m4/physmem.m4 \
- $(top_srcdir)/m4/po.m4 $(top_srcdir)/m4/posixtm.m4 \
- $(top_srcdir)/m4/posixver.m4 $(top_srcdir)/m4/prereq.m4 \
- $(top_srcdir)/m4/progtest.m4 $(top_srcdir)/m4/putenv.m4 \
- $(top_srcdir)/m4/quote.m4 $(top_srcdir)/m4/quotearg.m4 \
- $(top_srcdir)/m4/randint.m4 $(top_srcdir)/m4/randperm.m4 \
- $(top_srcdir)/m4/randread.m4 $(top_srcdir)/m4/readlink.m4 \
- $(top_srcdir)/m4/readtokens.m4 $(top_srcdir)/m4/readutmp.m4 \
- $(top_srcdir)/m4/regex.m4 \
- $(top_srcdir)/m4/rename-dest-slash.m4 \
- $(top_srcdir)/m4/rename.m4 $(top_srcdir)/m4/rmdir-errno.m4 \
- $(top_srcdir)/m4/rmdir.m4 $(top_srcdir)/m4/root-dev-ino.m4 \
- $(top_srcdir)/m4/rpmatch.m4 $(top_srcdir)/m4/safe-read.m4 \
- $(top_srcdir)/m4/safe-write.m4 $(top_srcdir)/m4/same.m4 \
- $(top_srcdir)/m4/save-cwd.m4 $(top_srcdir)/m4/savedir.m4 \
- $(top_srcdir)/m4/savewd.m4 $(top_srcdir)/m4/setenv.m4 \
- $(top_srcdir)/m4/settime.m4 $(top_srcdir)/m4/sha1.m4 \
- $(top_srcdir)/m4/sha256.m4 $(top_srcdir)/m4/sha512.m4 \
- $(top_srcdir)/m4/sig2str.m4 $(top_srcdir)/m4/snprintf.m4 \
- $(top_srcdir)/m4/socklen.m4 $(top_srcdir)/m4/sockpfaf.m4 \
- $(top_srcdir)/m4/ssize_t.m4 $(top_srcdir)/m4/st_dm_mode.m4 \
- $(top_srcdir)/m4/stat-prog.m4 $(top_srcdir)/m4/stat-time.m4 \
- $(top_srcdir)/m4/stdarg.m4 $(top_srcdir)/m4/stdbool.m4 \
- $(top_srcdir)/m4/stdint.m4 $(top_srcdir)/m4/stdint_h.m4 \
- $(top_srcdir)/m4/stdio-safer.m4 $(top_srcdir)/m4/stdio_h.m4 \
- $(top_srcdir)/m4/stdlib-safer.m4 $(top_srcdir)/m4/stdlib_h.m4 \
- $(top_srcdir)/m4/stpcpy.m4 $(top_srcdir)/m4/strcspn.m4 \
- $(top_srcdir)/m4/strdup.m4 $(top_srcdir)/m4/strftime.m4 \
- $(top_srcdir)/m4/string_h.m4 $(top_srcdir)/m4/strndup.m4 \
- $(top_srcdir)/m4/strnlen.m4 $(top_srcdir)/m4/strnumcmp.m4 \
- $(top_srcdir)/m4/strpbrk.m4 $(top_srcdir)/m4/strtod.m4 \
- $(top_srcdir)/m4/strtoimax.m4 $(top_srcdir)/m4/strtol.m4 \
- $(top_srcdir)/m4/strtoll.m4 $(top_srcdir)/m4/strtoul.m4 \
- $(top_srcdir)/m4/strtoull.m4 $(top_srcdir)/m4/strtoumax.m4 \
- $(top_srcdir)/m4/strverscmp.m4 \
- $(top_srcdir)/m4/sys_socket_h.m4 \
- $(top_srcdir)/m4/sys_stat_h.m4 $(top_srcdir)/m4/sys_time_h.m4 \
- $(top_srcdir)/m4/tempname.m4 $(top_srcdir)/m4/time_h.m4 \
- $(top_srcdir)/m4/time_r.m4 $(top_srcdir)/m4/timespec.m4 \
- $(top_srcdir)/m4/tm_gmtoff.m4 $(top_srcdir)/m4/tzset.m4 \
- $(top_srcdir)/m4/unicodeio.m4 $(top_srcdir)/m4/unistd-safer.m4 \
- $(top_srcdir)/m4/unistd_h.m4 $(top_srcdir)/m4/unlink-busy.m4 \
- $(top_srcdir)/m4/unlinkdir.m4 $(top_srcdir)/m4/unlocked-io.m4 \
- $(top_srcdir)/m4/uptime.m4 $(top_srcdir)/m4/userspec.m4 \
- $(top_srcdir)/m4/utimbuf.m4 $(top_srcdir)/m4/utime.m4 \
- $(top_srcdir)/m4/utimecmp.m4 $(top_srcdir)/m4/utimens.m4 \
- $(top_srcdir)/m4/utimes-null.m4 $(top_srcdir)/m4/utimes.m4 \
- $(top_srcdir)/m4/vasnprintf.m4 $(top_srcdir)/m4/vasprintf.m4 \
- $(top_srcdir)/m4/wchar.m4 $(top_srcdir)/m4/wchar_t.m4 \
- $(top_srcdir)/m4/wctype.m4 $(top_srcdir)/m4/wcwidth.m4 \
- $(top_srcdir)/m4/wint_t.m4 $(top_srcdir)/m4/xalloc.m4 \
- $(top_srcdir)/m4/xfts.m4 $(top_srcdir)/m4/xgetcwd.m4 \
- $(top_srcdir)/m4/xnanosleep.m4 $(top_srcdir)/m4/xstrndup.m4 \
- $(top_srcdir)/m4/xstrtod.m4 $(top_srcdir)/m4/xstrtol.m4 \
- $(top_srcdir)/m4/yesno.m4 $(top_srcdir)/configure.ac
-am__configure_deps = $(am__aclocal_m4_deps) $(CONFIGURE_DEPENDENCIES) \
- $(ACLOCAL_M4)
-mkinstalldirs = $(install_sh) -d
-CONFIG_HEADER = $(top_builddir)/lib/config.h
-CONFIG_CLEAN_FILES =
-SOURCES =
-DIST_SOURCES =
-DISTFILES = $(DIST_COMMON) $(DIST_SOURCES) $(TEXINFOS) $(EXTRA_DIST)
-ABSOLUTE_DIRENT_H = @ABSOLUTE_DIRENT_H@
-ABSOLUTE_FCNTL_H = @ABSOLUTE_FCNTL_H@
-ABSOLUTE_INTTYPES_H = @ABSOLUTE_INTTYPES_H@
-ABSOLUTE_NETINET_IN_H = @ABSOLUTE_NETINET_IN_H@
-ABSOLUTE_STDINT_H = @ABSOLUTE_STDINT_H@
-ABSOLUTE_STDIO_H = @ABSOLUTE_STDIO_H@
-ABSOLUTE_STDLIB_H = @ABSOLUTE_STDLIB_H@
-ABSOLUTE_STRING_H = @ABSOLUTE_STRING_H@
-ABSOLUTE_SYS_SOCKET_H = @ABSOLUTE_SYS_SOCKET_H@
-ABSOLUTE_SYS_STAT_H = @ABSOLUTE_SYS_STAT_H@
-ABSOLUTE_SYS_TIME_H = @ABSOLUTE_SYS_TIME_H@
-ABSOLUTE_TIME_H = @ABSOLUTE_TIME_H@
-ABSOLUTE_UNISTD_H = @ABSOLUTE_UNISTD_H@
-ABSOLUTE_WCHAR_H = @ABSOLUTE_WCHAR_H@
-ABSOLUTE_WCTYPE_H = @ABSOLUTE_WCTYPE_H@
-ACLOCAL = @ACLOCAL@
-ALLOCA = @ALLOCA@
-ALLOCA_H = @ALLOCA_H@
-AMTAR = @AMTAR@
-ARPA_INET_H = @ARPA_INET_H@
-AUTOCONF = @AUTOCONF@
-AUTOHEADER = @AUTOHEADER@
-AUTOMAKE = @AUTOMAKE@
-AWK = @AWK@
-BITSIZEOF_PTRDIFF_T = @BITSIZEOF_PTRDIFF_T@
-BITSIZEOF_SIG_ATOMIC_T = @BITSIZEOF_SIG_ATOMIC_T@
-BITSIZEOF_SIZE_T = @BITSIZEOF_SIZE_T@
-BITSIZEOF_WCHAR_T = @BITSIZEOF_WCHAR_T@
-BITSIZEOF_WINT_T = @BITSIZEOF_WINT_T@
-CC = @CC@
-CCDEPMODE = @CCDEPMODE@
-CFLAGS = @CFLAGS@
-CPP = @CPP@
-CPPFLAGS = @CPPFLAGS@
-CYGPATH_W = @CYGPATH_W@
-DEFAULT_POSIX2_VERSION = @DEFAULT_POSIX2_VERSION@
-DEFS = @DEFS@
-DEPDIR = @DEPDIR@
-DF_PROG = @DF_PROG@
-DIRENT_H = @DIRENT_H@
-ECHO_C = @ECHO_C@
-ECHO_N = @ECHO_N@
-ECHO_T = @ECHO_T@
-EGREP = @EGREP@
-EOVERFLOW = @EOVERFLOW@
-EXEEXT = @EXEEXT@
-FCNTL_H = @FCNTL_H@
-FNMATCH_H = @FNMATCH_H@
-GETLOADAVG_LIBS = @GETLOADAVG_LIBS@
-GETOPT_H = @GETOPT_H@
-GLIBC21 = @GLIBC21@
-GMSGFMT = @GMSGFMT@
-GMSGFMT_015 = @GMSGFMT_015@
-GNULIB_CHOWN = @GNULIB_CHOWN@
-GNULIB_DUP2 = @GNULIB_DUP2@
-GNULIB_FCHDIR = @GNULIB_FCHDIR@
-GNULIB_FPRINTF_POSIX = @GNULIB_FPRINTF_POSIX@
-GNULIB_FTRUNCATE = @GNULIB_FTRUNCATE@
-GNULIB_GETCWD = @GNULIB_GETCWD@
-GNULIB_GETLOGIN_R = @GNULIB_GETLOGIN_R@
-GNULIB_GETSUBOPT = @GNULIB_GETSUBOPT@
-GNULIB_IMAXABS = @GNULIB_IMAXABS@
-GNULIB_IMAXDIV = @GNULIB_IMAXDIV@
-GNULIB_MBSCASECMP = @GNULIB_MBSCASECMP@
-GNULIB_MBSCASESTR = @GNULIB_MBSCASESTR@
-GNULIB_MBSCHR = @GNULIB_MBSCHR@
-GNULIB_MBSCSPN = @GNULIB_MBSCSPN@
-GNULIB_MBSLEN = @GNULIB_MBSLEN@
-GNULIB_MBSNCASECMP = @GNULIB_MBSNCASECMP@
-GNULIB_MBSPBRK = @GNULIB_MBSPBRK@
-GNULIB_MBSPCASECMP = @GNULIB_MBSPCASECMP@
-GNULIB_MBSRCHR = @GNULIB_MBSRCHR@
-GNULIB_MBSSEP = @GNULIB_MBSSEP@
-GNULIB_MBSSPN = @GNULIB_MBSSPN@
-GNULIB_MBSSTR = @GNULIB_MBSSTR@
-GNULIB_MBSTOK_R = @GNULIB_MBSTOK_R@
-GNULIB_MEMMEM = @GNULIB_MEMMEM@
-GNULIB_MEMPCPY = @GNULIB_MEMPCPY@
-GNULIB_MEMRCHR = @GNULIB_MEMRCHR@
-GNULIB_MKDTEMP = @GNULIB_MKDTEMP@
-GNULIB_MKSTEMP = @GNULIB_MKSTEMP@
-GNULIB_PRINTF_POSIX = @GNULIB_PRINTF_POSIX@
-GNULIB_READLINK = @GNULIB_READLINK@
-GNULIB_SNPRINTF = @GNULIB_SNPRINTF@
-GNULIB_SPRINTF_POSIX = @GNULIB_SPRINTF_POSIX@
-GNULIB_STPCPY = @GNULIB_STPCPY@
-GNULIB_STPNCPY = @GNULIB_STPNCPY@
-GNULIB_STRCASESTR = @GNULIB_STRCASESTR@
-GNULIB_STRCHRNUL = @GNULIB_STRCHRNUL@
-GNULIB_STRDUP = @GNULIB_STRDUP@
-GNULIB_STRNDUP = @GNULIB_STRNDUP@
-GNULIB_STRNLEN = @GNULIB_STRNLEN@
-GNULIB_STRPBRK = @GNULIB_STRPBRK@
-GNULIB_STRSEP = @GNULIB_STRSEP@
-GNULIB_STRTOIMAX = @GNULIB_STRTOIMAX@
-GNULIB_STRTOK_R = @GNULIB_STRTOK_R@
-GNULIB_STRTOUMAX = @GNULIB_STRTOUMAX@
-GNULIB_VFPRINTF_POSIX = @GNULIB_VFPRINTF_POSIX@
-GNULIB_VPRINTF_POSIX = @GNULIB_VPRINTF_POSIX@
-GNULIB_VSNPRINTF = @GNULIB_VSNPRINTF@
-GNULIB_VSPRINTF_POSIX = @GNULIB_VSPRINTF_POSIX@
-GNU_PACKAGE = @GNU_PACKAGE@
-GREP = @GREP@
-HAVE_DECL_GETLOGIN_R = @HAVE_DECL_GETLOGIN_R@
-HAVE_DECL_IMAXABS = @HAVE_DECL_IMAXABS@
-HAVE_DECL_IMAXDIV = @HAVE_DECL_IMAXDIV@
-HAVE_DECL_MEMMEM = @HAVE_DECL_MEMMEM@
-HAVE_DECL_MEMRCHR = @HAVE_DECL_MEMRCHR@
-HAVE_DECL_SNPRINTF = @HAVE_DECL_SNPRINTF@
-HAVE_DECL_STRDUP = @HAVE_DECL_STRDUP@
-HAVE_DECL_STRNCASECMP = @HAVE_DECL_STRNCASECMP@
-HAVE_DECL_STRNDUP = @HAVE_DECL_STRNDUP@
-HAVE_DECL_STRNLEN = @HAVE_DECL_STRNLEN@
-HAVE_DECL_STRTOIMAX = @HAVE_DECL_STRTOIMAX@
-HAVE_DECL_STRTOK_R = @HAVE_DECL_STRTOK_R@
-HAVE_DECL_STRTOUMAX = @HAVE_DECL_STRTOUMAX@
-HAVE_DECL_VSNPRINTF = @HAVE_DECL_VSNPRINTF@
-HAVE_DUP2 = @HAVE_DUP2@
-HAVE_FTRUNCATE = @HAVE_FTRUNCATE@
-HAVE_GETSUBOPT = @HAVE_GETSUBOPT@
-HAVE_INTTYPES_H = @HAVE_INTTYPES_H@
-HAVE_LONG_LONG_INT = @HAVE_LONG_LONG_INT@
-HAVE_MEMPCPY = @HAVE_MEMPCPY@
-HAVE_MKDTEMP = @HAVE_MKDTEMP@
-HAVE_NETINET_IN_H = @HAVE_NETINET_IN_H@
-HAVE_READLINK = @HAVE_READLINK@
-HAVE_SIGNED_SIG_ATOMIC_T = @HAVE_SIGNED_SIG_ATOMIC_T@
-HAVE_SIGNED_WCHAR_T = @HAVE_SIGNED_WCHAR_T@
-HAVE_SIGNED_WINT_T = @HAVE_SIGNED_WINT_T@
-HAVE_STDINT_H = @HAVE_STDINT_H@
-HAVE_STPCPY = @HAVE_STPCPY@
-HAVE_STPNCPY = @HAVE_STPNCPY@
-HAVE_STRCASECMP = @HAVE_STRCASECMP@
-HAVE_STRCASESTR = @HAVE_STRCASESTR@
-HAVE_STRCHRNUL = @HAVE_STRCHRNUL@
-HAVE_STRNDUP = @HAVE_STRNDUP@
-HAVE_STRPBRK = @HAVE_STRPBRK@
-HAVE_STRSEP = @HAVE_STRSEP@
-HAVE_STRUCT_TIMEVAL = @HAVE_STRUCT_TIMEVAL@
-HAVE_SYS_BITYPES_H = @HAVE_SYS_BITYPES_H@
-HAVE_SYS_INTTYPES_H = @HAVE_SYS_INTTYPES_H@
-HAVE_SYS_SOCKET_H = @HAVE_SYS_SOCKET_H@
-HAVE_SYS_TIME_H = @HAVE_SYS_TIME_H@
-HAVE_SYS_TYPES_H = @HAVE_SYS_TYPES_H@
-HAVE_UNISTD_H = @HAVE_UNISTD_H@
-HAVE_UNSIGNED_LONG_LONG_INT = @HAVE_UNSIGNED_LONG_LONG_INT@
-HAVE_WCTYPE_H = @HAVE_WCTYPE_H@
-HAVE_WINSOCK2_H = @HAVE_WINSOCK2_H@
-HAVE_WINT_T = @HAVE_WINT_T@
-HAVE_WS2TCPIP_H = @HAVE_WS2TCPIP_H@
-HAVE__BOOL = @HAVE__BOOL@
-HELP2MAN = @HELP2MAN@
-INSTALL = @INSTALL@
-INSTALL_DATA = @INSTALL_DATA@
-INSTALL_PROGRAM = @INSTALL_PROGRAM@
-INSTALL_SCRIPT = @INSTALL_SCRIPT@
-INSTALL_STRIP_PROGRAM = @INSTALL_STRIP_PROGRAM@
-INTLLIBS = @INTLLIBS@
-INTL_MACOSX_LIBS = @INTL_MACOSX_LIBS@
-INTTYPES_H = @INTTYPES_H@
-KMEM_GROUP = @KMEM_GROUP@
-LDFLAGS = @LDFLAGS@
-LIBCOREUTILS_LIBDEPS = @LIBCOREUTILS_LIBDEPS@
-LIBCOREUTILS_LTLIBDEPS = @LIBCOREUTILS_LTLIBDEPS@
-LIBICONV = @LIBICONV@
-LIBINTL = @LIBINTL@
-LIBOBJS = @LIBOBJS@
-LIBS = @LIBS@
-LIB_ACL = @LIB_ACL@
-LIB_ACL_TRIVIAL = @LIB_ACL_TRIVIAL@
-LIB_CLOCK_GETTIME = @LIB_CLOCK_GETTIME@
-LIB_CRYPT = @LIB_CRYPT@
-LIB_EACCESS = @LIB_EACCESS@
-LIB_FDATASYNC = @LIB_FDATASYNC@
-LIB_GETHRXTIME = @LIB_GETHRXTIME@
-LIB_NANOSLEEP = @LIB_NANOSLEEP@
-LN_S = @LN_S@
-LTLIBICONV = @LTLIBICONV@
-LTLIBINTL = @LTLIBINTL@
-LTLIBOBJS = @LTLIBOBJS@
-MAKEINFO = @MAKEINFO@
-MAN = @MAN@
-MKDIR_P = @MKDIR_P@
-MSGFMT = @MSGFMT@
-MSGFMT_015 = @MSGFMT_015@
-MSGMERGE = @MSGMERGE@
-NEED_SETGID = @NEED_SETGID@
-NETINET_IN_H = @NETINET_IN_H@
-OBJEXT = @OBJEXT@
-OPTIONAL_BIN_PROGS = @OPTIONAL_BIN_PROGS@
-PACKAGE = @PACKAGE@
-PACKAGE_BUGREPORT = @PACKAGE_BUGREPORT@
-PACKAGE_NAME = @PACKAGE_NAME@
-PACKAGE_STRING = @PACKAGE_STRING@
-PACKAGE_TARNAME = @PACKAGE_TARNAME@
-PACKAGE_VERSION = @PACKAGE_VERSION@
-PATH_SEPARATOR = @PATH_SEPARATOR@
-PERL = @PERL@
-POSUB = @POSUB@
-POW_LIB = @POW_LIB@
-PRIPTR_PREFIX = @PRIPTR_PREFIX@
-PRI_MACROS_BROKEN = @PRI_MACROS_BROKEN@
-PTRDIFF_T_SUFFIX = @PTRDIFF_T_SUFFIX@
-RANLIB = @RANLIB@
-REPLACE_CHOWN = @REPLACE_CHOWN@
-REPLACE_FCHDIR = @REPLACE_FCHDIR@
-REPLACE_FPRINTF = @REPLACE_FPRINTF@
-REPLACE_GETCWD = @REPLACE_GETCWD@
-REPLACE_GETTIMEOFDAY = @REPLACE_GETTIMEOFDAY@
-REPLACE_LOCALTIME_R = @REPLACE_LOCALTIME_R@
-REPLACE_MKSTEMP = @REPLACE_MKSTEMP@
-REPLACE_NANOSLEEP = @REPLACE_NANOSLEEP@
-REPLACE_PRINTF = @REPLACE_PRINTF@
-REPLACE_SNPRINTF = @REPLACE_SNPRINTF@
-REPLACE_SPRINTF = @REPLACE_SPRINTF@
-REPLACE_STRPTIME = @REPLACE_STRPTIME@
-REPLACE_TIMEGM = @REPLACE_TIMEGM@
-REPLACE_VFPRINTF = @REPLACE_VFPRINTF@
-REPLACE_VPRINTF = @REPLACE_VPRINTF@
-REPLACE_VSNPRINTF = @REPLACE_VSNPRINTF@
-REPLACE_VSPRINTF = @REPLACE_VSPRINTF@
-SEQ_LIBM = @SEQ_LIBM@
-SET_MAKE = @SET_MAKE@
-SHELL = @SHELL@
-SIG_ATOMIC_T_SUFFIX = @SIG_ATOMIC_T_SUFFIX@
-SIZE_T_SUFFIX = @SIZE_T_SUFFIX@
-STDBOOL_H = @STDBOOL_H@
-STDINT_H = @STDINT_H@
-STRIP = @STRIP@
-SYS_SOCKET_H = @SYS_SOCKET_H@
-SYS_STAT_H = @SYS_STAT_H@
-SYS_TIME_H = @SYS_TIME_H@
-SYS_TIME_H_DEFINES_STRUCT_TIMESPEC = @SYS_TIME_H_DEFINES_STRUCT_TIMESPEC@
-TIME_H_DEFINES_STRUCT_TIMESPEC = @TIME_H_DEFINES_STRUCT_TIMESPEC@
-U = @U@
-USE_NLS = @USE_NLS@
-VERSION = @VERSION@
-WCHAR_H = @WCHAR_H@
-WCHAR_T_SUFFIX = @WCHAR_T_SUFFIX@
-WCTYPE_H = @WCTYPE_H@
-WINT_T_SUFFIX = @WINT_T_SUFFIX@
-XGETTEXT = @XGETTEXT@
-XGETTEXT_015 = @XGETTEXT_015@
-YACC = @YACC@
-YFLAGS = @YFLAGS@
-abs_builddir = @abs_builddir@
-abs_srcdir = @abs_srcdir@
-abs_top_builddir = @abs_top_builddir@
-abs_top_srcdir = @abs_top_srcdir@
-ac_ct_CC = @ac_ct_CC@
-am__include = @am__include@
-am__leading_dot = @am__leading_dot@
-am__quote = @am__quote@
-am__tar = @am__tar@
-am__untar = @am__untar@
-bindir = @bindir@
-build = @build@
-build_alias = @build_alias@
-build_cpu = @build_cpu@
-build_os = @build_os@
-build_vendor = @build_vendor@
-builddir = @builddir@
-datadir = @datadir@
-datarootdir = @datarootdir@
-docdir = @docdir@
-dvidir = @dvidir@
-exec_prefix = @exec_prefix@
-gl_LIBOBJS = @gl_LIBOBJS@
-gl_LTLIBOBJS = @gl_LTLIBOBJS@
-host = @host@
-host_alias = @host_alias@
-host_cpu = @host_cpu@
-host_os = @host_os@
-host_vendor = @host_vendor@
-htmldir = @htmldir@
-includedir = @includedir@
-infodir = @infodir@
-install_sh = @install_sh@
-libdir = @libdir@
-libexecdir = @libexecdir@
-localedir = @localedir@
-localstatedir = @localstatedir@
-mandir = @mandir@
-mkdir_p = @mkdir_p@
-oldincludedir = @oldincludedir@
-pdfdir = @pdfdir@
-prefix = @prefix@
-program_transform_name = @program_transform_name@
-psdir = @psdir@
-sbindir = @sbindir@
-sharedstatedir = @sharedstatedir@
-srcdir = @srcdir@
-sysconfdir = @sysconfdir@
-target_alias = @target_alias@
-top_builddir = @top_builddir@
-top_srcdir = @top_srcdir@
-EXTRA_DIST = $(TESTS)
-TESTS_ENVIRONMENT = \
- top_srcdir=$(top_srcdir) \
- srcdir=$(srcdir) \
- PERL="$(PERL)" \
- CU_TEST_NAME=`basename $(abs_srcdir)`,$$tst \
- PATH="$(VG_PATH_PREFIX)`pwd`/../../src$(PATH_SEPARATOR)$$PATH"
-
-TESTS = od-N x8
-all: all-am
-
-.SUFFIXES:
-$(srcdir)/Makefile.in: $(srcdir)/Makefile.am $(am__configure_deps)
- @for dep in $?; do \
- case '$(am__configure_deps)' in \
- *$$dep*) \
- cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh \
- && exit 0; \
- exit 1;; \
- esac; \
- done; \
- echo ' cd $(top_srcdir) && $(AUTOMAKE) --gnu tests/od/Makefile'; \
- cd $(top_srcdir) && \
- $(AUTOMAKE) --gnu tests/od/Makefile
-.PRECIOUS: Makefile
-Makefile: $(srcdir)/Makefile.in $(top_builddir)/config.status
- @case '$?' in \
- *config.status*) \
- cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh;; \
- *) \
- echo ' cd $(top_builddir) && $(SHELL) ./config.status $(subdir)/$@ $(am__depfiles_maybe)'; \
- cd $(top_builddir) && $(SHELL) ./config.status $(subdir)/$@ $(am__depfiles_maybe);; \
- esac;
-
-$(top_builddir)/config.status: $(top_srcdir)/configure $(CONFIG_STATUS_DEPENDENCIES)
- cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh
-
-$(top_srcdir)/configure: $(am__configure_deps)
- cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh
-$(ACLOCAL_M4): $(am__aclocal_m4_deps)
- cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh
-tags: TAGS
-TAGS:
-
-ctags: CTAGS
-CTAGS:
-
-
-check-TESTS: $(TESTS)
- @failed=0; all=0; xfail=0; xpass=0; skip=0; ws='[ ]'; \
- srcdir=$(srcdir); export srcdir; \
- list=' $(TESTS) '; \
- if test -n "$$list"; then \
- for tst in $$list; do \
- if test -f ./$$tst; then dir=./; \
- elif test -f $$tst; then dir=; \
- else dir="$(srcdir)/"; fi; \
- if $(TESTS_ENVIRONMENT) $${dir}$$tst; then \
- all=`expr $$all + 1`; \
- case " $(XFAIL_TESTS) " in \
- *$$ws$$tst$$ws*) \
- xpass=`expr $$xpass + 1`; \
- failed=`expr $$failed + 1`; \
- echo "XPASS: $$tst"; \
- ;; \
- *) \
- echo "PASS: $$tst"; \
- ;; \
- esac; \
- elif test $$? -ne 77; then \
- all=`expr $$all + 1`; \
- case " $(XFAIL_TESTS) " in \
- *$$ws$$tst$$ws*) \
- xfail=`expr $$xfail + 1`; \
- echo "XFAIL: $$tst"; \
- ;; \
- *) \
- failed=`expr $$failed + 1`; \
- echo "FAIL: $$tst"; \
- ;; \
- esac; \
- else \
- skip=`expr $$skip + 1`; \
- echo "SKIP: $$tst"; \
- fi; \
- done; \
- if test "$$failed" -eq 0; then \
- if test "$$xfail" -eq 0; then \
- banner="All $$all tests passed"; \
- else \
- banner="All $$all tests behaved as expected ($$xfail expected failures)"; \
- fi; \
- else \
- if test "$$xpass" -eq 0; then \
- banner="$$failed of $$all tests failed"; \
- else \
- banner="$$failed of $$all tests did not behave as expected ($$xpass unexpected passes)"; \
- fi; \
- fi; \
- dashes="$$banner"; \
- skipped=""; \
- if test "$$skip" -ne 0; then \
- skipped="($$skip tests were not run)"; \
- test `echo "$$skipped" | wc -c` -le `echo "$$banner" | wc -c` || \
- dashes="$$skipped"; \
- fi; \
- report=""; \
- if test "$$failed" -ne 0 && test -n "$(PACKAGE_BUGREPORT)"; then \
- report="Please report to $(PACKAGE_BUGREPORT)"; \
- test `echo "$$report" | wc -c` -le `echo "$$banner" | wc -c` || \
- dashes="$$report"; \
- fi; \
- dashes=`echo "$$dashes" | sed s/./=/g`; \
- echo "$$dashes"; \
- echo "$$banner"; \
- test -z "$$skipped" || echo "$$skipped"; \
- test -z "$$report" || echo "$$report"; \
- echo "$$dashes"; \
- test "$$failed" -eq 0; \
- else :; fi
-
-distdir: $(DISTFILES)
- @srcdirstrip=`echo "$(srcdir)" | sed 's/[].[^$$\\*]/\\\\&/g'`; \
- topsrcdirstrip=`echo "$(top_srcdir)" | sed 's/[].[^$$\\*]/\\\\&/g'`; \
- list='$(DISTFILES)'; \
- dist_files=`for file in $$list; do echo $$file; done | \
- sed -e "s|^$$srcdirstrip/||;t" \
- -e "s|^$$topsrcdirstrip/|$(top_builddir)/|;t"`; \
- case $$dist_files in \
- */*) $(MKDIR_P) `echo "$$dist_files" | \
- sed '/\//!d;s|^|$(distdir)/|;s,/[^/]*$$,,' | \
- sort -u` ;; \
- esac; \
- for file in $$dist_files; do \
- if test -f $$file || test -d $$file; then d=.; else d=$(srcdir); fi; \
- if test -d $$d/$$file; then \
- dir=`echo "/$$file" | sed -e 's,/[^/]*$$,,'`; \
- if test -d $(srcdir)/$$file && test $$d != $(srcdir); then \
- cp -pR $(srcdir)/$$file $(distdir)$$dir || exit 1; \
- fi; \
- cp -pR $$d/$$file $(distdir)$$dir || exit 1; \
- else \
- test -f $(distdir)/$$file \
- || cp -p $$d/$$file $(distdir)/$$file \
- || exit 1; \
- fi; \
- done
-check-am: all-am
- $(MAKE) $(AM_MAKEFLAGS) check-TESTS
-check: check-am
-all-am: Makefile
-installdirs:
-install: install-am
-install-exec: install-exec-am
-install-data: install-data-am
-uninstall: uninstall-am
-
-install-am: all-am
- @$(MAKE) $(AM_MAKEFLAGS) install-exec-am install-data-am
-
-installcheck: installcheck-am
-install-strip:
- $(MAKE) $(AM_MAKEFLAGS) INSTALL_PROGRAM="$(INSTALL_STRIP_PROGRAM)" \
- install_sh_PROGRAM="$(INSTALL_STRIP_PROGRAM)" INSTALL_STRIP_FLAG=-s \
- `test -z '$(STRIP)' || \
- echo "INSTALL_PROGRAM_ENV=STRIPPROG='$(STRIP)'"` install
-mostlyclean-generic:
-
-clean-generic:
-
-distclean-generic:
- -test -z "$(CONFIG_CLEAN_FILES)" || rm -f $(CONFIG_CLEAN_FILES)
-
-maintainer-clean-generic:
- @echo "This command is intended for maintainers to use"
- @echo "it deletes files that may require special tools to rebuild."
-clean: clean-am
-
-clean-am: clean-generic mostlyclean-am
-
-distclean: distclean-am
- -rm -f Makefile
-distclean-am: clean-am distclean-generic
-
-dvi: dvi-am
-
-dvi-am:
-
-html: html-am
-
-info: info-am
-
-info-am:
-
-install-data-am:
-
-install-dvi: install-dvi-am
-
-install-exec-am:
-
-install-html: install-html-am
-
-install-info: install-info-am
-
-install-man:
-
-install-pdf: install-pdf-am
-
-install-ps: install-ps-am
-
-installcheck-am:
-
-maintainer-clean: maintainer-clean-am
- -rm -f Makefile
-maintainer-clean-am: distclean-am maintainer-clean-generic
-
-mostlyclean: mostlyclean-am
-
-mostlyclean-am: mostlyclean-generic
-
-pdf: pdf-am
-
-pdf-am:
-
-ps: ps-am
-
-ps-am:
-
-uninstall-am:
-
-.MAKE: install-am install-strip
-
-.PHONY: all all-am check check-TESTS check-am clean clean-generic \
- distclean distclean-generic distdir dvi dvi-am html html-am \
- info info-am install install-am install-data install-data-am \
- install-dvi install-dvi-am install-exec install-exec-am \
- install-html install-html-am install-info install-info-am \
- install-man install-pdf install-pdf-am install-ps \
- install-ps-am install-strip installcheck installcheck-am \
- installdirs maintainer-clean maintainer-clean-generic \
- mostlyclean mostlyclean-generic pdf pdf-am ps ps-am uninstall \
- uninstall-am
-
-# Tell versions [3.59,3.63) of GNU make to not export all variables.
-# Otherwise a system limit (for SysV at least) may be exceeded.
-.NOEXPORT:
diff --git a/tests/od/od-N b/tests/od/od-N
deleted file mode 100755
index 0fbe3ea..0000000
--- a/tests/od/od-N
+++ /dev/null
@@ -1,53 +0,0 @@
-#!/bin/sh
-# Verify that `od -N N' reads no more than N bytes of input.
-
-# Copyright (C) 2001, 2004, 2005, 2006 Free Software Foundation, Inc.
-
-# This program is free software; you can redistribute it and/or modify
-# it under the terms of the GNU General Public License as published by
-# the Free Software Foundation; either version 2 of the License, or
-# (at your option) any later version.
-
-# This program is distributed in the hope that it will be useful,
-# but WITHOUT ANY WARRANTY; without even the implied warranty of
-# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
-# GNU General Public License for more details.
-
-# You should have received a copy of the GNU General Public License
-# along with this program; if not, write to the Free Software
-# Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA
-# 02110-1301, USA.
-
-if test "$VERBOSE" = yes; then
- set -x
- od --version
-fi
-
-pwd=`pwd`
-tmp=od-N.$$
-trap 'status=$?; cd "$pwd" && rm -rf $tmp && exit $status' 0
-trap '(exit $?); exit' 1 2 13 15
-
-framework_failure=0
-mkdir $tmp || framework_failure=1
-cd $tmp || framework_failure=1
-echo abcdefg > in || framework_failure=1
-
-if test $framework_failure = 1; then
- echo 'failure in testing framework' 1>&2
- (exit 1); exit 1
-fi
-
-fail=0
-
-(od -An -N3 -c; od -An -N3 -c) < in > out
-cat <<EOF > exp || fail=1
- a b c
- d e f
-EOF
-cmp out exp || {
- fail=1
- diff out exp 2> /dev/null
- }
-
-(exit $fail); exit $fail
diff --git a/tests/od/x8 b/tests/od/x8
deleted file mode 100755
index c92fcab..0000000
--- a/tests/od/x8
+++ /dev/null
@@ -1,64 +0,0 @@
-#!/bin/sh
-# verify that od -t x8 works properly
-# This would fail before coreutils-4.5.2.
-
-# Copyright (C) 2002, 2005, 2006 Free Software Foundation, Inc.
-
-# This program is free software; you can redistribute it and/or modify
-# it under the terms of the GNU General Public License as published by
-# the Free Software Foundation; either version 2 of the License, or
-# (at your option) any later version.
-
-# This program is distributed in the hope that it will be useful,
-# but WITHOUT ANY WARRANTY; without even the implied warranty of
-# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
-# GNU General Public License for more details.
-
-# You should have received a copy of the GNU General Public License
-# along with this program; if not, write to the Free Software
-# Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA
-# 02110-1301, USA.
-
-if test "$VERBOSE" = yes; then
- set -x
- od --version
-fi
-
-od -t x8 /dev/null >/dev/null || {
- echo >&2 "$0: 8-byte test skipped"
- exit 77
-}
-
-pwd=`pwd`
-t0=`echo "$0"|sed 's,.*/,,'`.tmp; tmp=$t0/$$
-trap 'status=$?; cd "$pwd" && chmod -R u+rwx $t0 && rm -rf $t0 && exit $status' 0
-trap '(exit $?); exit $?' 1 2 13 15
-
-framework_failure=0
-mkdir -p $tmp || framework_failure=1
-cd $tmp || framework_failure=1
-echo abcdefgh |tr -d '\n' > in || framework_failure=1
-
-if test $framework_failure = 1; then
- echo "$0: failure in testing framework" 1>&2
- (exit 1); exit 1
-fi
-
-fail=0
-
-od -An -t x8 in > out-raw || fail=1
-sed 's/^ //;s/\(..\)/\1 /g;s/ $//' out-raw \
- | tr ' ' '\n' \
- | sort -n \
- > out
-
-od -An -t x1 in \
- | sed 's/^ //' \
- | tr ' ' '\n' \
- | sort -n \
- > exp
-
-cmp out exp || fail=1
-test $fail = 1 && diff out exp 2> /dev/null
-
-(exit $fail); exit $fail
diff --git a/tests/other-fs-tmpdir b/tests/other-fs-tmpdir
index 0886437..801f2e0 100755..100644
--- a/tests/other-fs-tmpdir
+++ b/tests/other-fs-tmpdir
@@ -1,14 +1,14 @@
-#! /bin/sh
+#!/bin/sh
# Use stat to find a writable directory on a file system different from that
# of the current directory. If one is found, create a temporary directory
# inside it.
-# Copyright (C) 1998, 1999, 2001, 2002, 2005 Free Software Foundation, Inc.
+# Copyright (C) 1998-2016 Free Software Foundation, Inc.
-# This program is free software; you can redistribute it and/or modify
+# This program is free software: you can redistribute it and/or modify
# it under the terms of the GNU General Public License as published by
-# the Free Software Foundation; either version 2 of the License, or
+# the Free Software Foundation, either version 3 of the License, or
# (at your option) any later version.
# This program is distributed in the hope that it will be useful,
@@ -17,25 +17,23 @@
# GNU General Public License for more details.
# You should have received a copy of the GNU General Public License
-# along with this program; if not, write to the Free Software
-# Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA
-# 02110-1301, USA.
+# along with this program. If not, see <http://www.gnu.org/licenses/>.
test "${CANDIDATE_TMP_DIRS+set}" = set \
- || CANDIDATE_TMP_DIRS="$TMPDIR /tmp /var/tmp /usr/tmp $HOME"
+ || CANDIDATE_TMP_DIRS="$TMPDIR /tmp /dev/shm /var/tmp /usr/tmp $HOME"
other_partition_tmpdir=
-dot_mount_point=`stat -c %d .`
+dot_mount_point=$(stat -c %d .)
for d in $CANDIDATE_TMP_DIRS; do
# Skip nonexistent directories.
- test -d $d || continue
+ test -d "$d" || continue
- d_mount_point=`stat -L -c %d $d`
+ d_mount_point=$(stat -L -c %d "$d")
# Same partition? Skip it.
- test x$d_mount_point = x$dot_mount_point && continue
+ test "x$d_mount_point" = "x$dot_mount_point" && continue
# See if we can create a directory in it.
if mkdir "$d/tmp$$" > /dev/null 2>&1; then
@@ -46,16 +44,12 @@ for d in $CANDIDATE_TMP_DIRS; do
done
if test -z "$other_partition_tmpdir"; then
- cat <<EOF 1>&2
-**************************************
-This test requires a writable directory on a different
-disk partition, and I couldn't find one. I tried these:
+ skip_ \
+"requires a writable directory on a different disk partition,
+and I couldn't find one. I tried these:
$CANDIDATE_TMP_DIRS
Set your environment variable CANDIDATE_TMP_DIRS to make
-this test use a different list.
-**************************************
-EOF
- #'
+this test use a different list."
fi
test "$VERBOSE" = yes && set -x
diff --git a/tests/pr/2-S_f-t_notab b/tests/pr/2-S_f-t_notab
index 043af01..63db297 100644
--- a/tests/pr/2-S_f-t_notab
+++ b/tests/pr/2-S_f-t_notab
@@ -1,3 +1,5 @@
+
+
-- Date/Time -- x Page 1
diff --git a/tests/pr/2-Sf-t_notab b/tests/pr/2-Sf-t_notab
index ac4922f..e1ded49 100644
--- a/tests/pr/2-Sf-t_notab
+++ b/tests/pr/2-Sf-t_notab
@@ -1,3 +1,5 @@
+
+
-- Date/Time -- x Page 1
diff --git a/tests/pr/2f-t_notab b/tests/pr/2f-t_notab
index d6256e8..aa41590 100644
--- a/tests/pr/2f-t_notab
+++ b/tests/pr/2f-t_notab
@@ -1,3 +1,5 @@
+
+
-- Date/Time -- x Page 1
diff --git a/tests/pr/2s_f-t_notab b/tests/pr/2s_f-t_notab
index 20c3fcf..6ff05f9 100644
--- a/tests/pr/2s_f-t_notab
+++ b/tests/pr/2s_f-t_notab
@@ -1,3 +1,5 @@
+
+
-- Date/Time -- x Page 1
diff --git a/tests/pr/2s_w60f-t_nota b/tests/pr/2s_w60f-t_nota
index a143222..658df5f 100644
--- a/tests/pr/2s_w60f-t_nota
+++ b/tests/pr/2s_w60f-t_nota
@@ -1,3 +1,5 @@
+
+
-- Date/Time -- x Page 1
diff --git a/tests/pr/2sf-t_notab b/tests/pr/2sf-t_notab
index da24c8f..dcfe5b1 100644
--- a/tests/pr/2sf-t_notab
+++ b/tests/pr/2sf-t_notab
@@ -1,3 +1,5 @@
+
+
-- Date/Time -- x Page 1
diff --git a/tests/pr/2sw60f-t_notab b/tests/pr/2sw60f-t_notab
index 0528e28..3215794 100644
--- a/tests/pr/2sw60f-t_notab
+++ b/tests/pr/2sw60f-t_notab
@@ -1,3 +1,5 @@
+
+
-- Date/Time -- x Page 1
diff --git a/tests/pr/2w60f-t_notab b/tests/pr/2w60f-t_notab
index 82acd01..b0ca20c 100644
--- a/tests/pr/2w60f-t_notab
+++ b/tests/pr/2w60f-t_notab
@@ -1,3 +1,5 @@
+
+
-- Date/Time -- x Page 1
diff --git a/tests/pr/3-5l17f-t b/tests/pr/3-5l17f-t
deleted file mode 100644
index 30e25aa..0000000
--- a/tests/pr/3-5l17f-t
+++ /dev/null
@@ -1,45 +0,0 @@
--- Date/Time -- x Page 3
-
-
-29 xyzxyzxyz XYZXYZXYZ abcabcab
-30 456789 123456789 xyzxyzxyz XYZXYZXYZ
-1 12345678
-2 3456789 abcdefghi
-3 12345678
-4 12345678
-5 12345678
-6 12345678
-7 12345678
-8 12345678
-9 3456789 abcdefghi
-40 DEFGHI 123456789
-41 yzxyzxyz XYZXYZXYZ abcabcab
-42 456789 123456789 abcdefghi ABCDEDFHI
- -- Date/Time -- x Page 4
-
-
-43 xyzxyzxyz XYZXYZXYZ abcabcab
-44 456789 123456789 xyzxyzxyz XYZXYZXYZ
-5 12345678
-6 12345678
-7 12345678
-8 12345678
-9 12345678
-50 12345678
-1 12345678
-2 12345678
-3 12345678
-4 12345678
-55 yzxyzxyz XYZXYZXYZ abcabcab
-56 456789 123456789 abcdefghi ABCDEDFHI
- -- Date/Time -- x Page 5
-
-
-57 xyzxyzxyz XYZXYZXYZ abcabcab
-58 456789 123456789 xyzxyzxyz XYZXYZXYZ
-9 12345678
-60 DEFGHI 123456789
-1
-2
-3 ------- EOF -------- EOF -------- EOF -------
- \ No newline at end of file
diff --git a/tests/pr/3-5l24f-t b/tests/pr/3-5l24f-t
new file mode 100644
index 0000000..6f35bd2
--- /dev/null
+++ b/tests/pr/3-5l24f-t
@@ -0,0 +1,51 @@
+
+
+-- Date/Time -- x Page 3
+
+
+29 xyzxyzxyz XYZXYZXYZ abcabcab
+30 456789 123456789 xyzxyzxyz XYZXYZXYZ
+1 12345678
+2 3456789 abcdefghi
+3 12345678
+4 12345678
+5 12345678
+6 12345678
+7 12345678
+8 12345678
+9 3456789 abcdefghi
+40 DEFGHI 123456789
+41 yzxyzxyz XYZXYZXYZ abcabcab
+42 456789 123456789 abcdefghi ABCDEDFHI
+
+
+-- Date/Time -- x Page 4
+
+
+43 xyzxyzxyz XYZXYZXYZ abcabcab
+44 456789 123456789 xyzxyzxyz XYZXYZXYZ
+5 12345678
+6 12345678
+7 12345678
+8 12345678
+9 12345678
+50 12345678
+1 12345678
+2 12345678
+3 12345678
+4 12345678
+55 yzxyzxyz XYZXYZXYZ abcabcab
+56 456789 123456789 abcdefghi ABCDEDFHI
+
+
+-- Date/Time -- x Page 5
+
+
+57 xyzxyzxyz XYZXYZXYZ abcabcab
+58 456789 123456789 xyzxyzxyz XYZXYZXYZ
+9 12345678
+60 DEFGHI 123456789
+1
+2
+3 ------- EOF -------- EOF -------- EOF -------
+ \ No newline at end of file
diff --git a/tests/pr/3a3f-0F b/tests/pr/3a3f-0F
index 11d4327..f8ff094 100644
--- a/tests/pr/3a3f-0F
+++ b/tests/pr/3a3f-0F
@@ -1,8 +1,12 @@
+
+
-- Date/Time -- x Page 3
- -- Date/Time -- x Page 4
+
+
+-- Date/Time -- x Page 4
15 xyzxyzxyz XYZXYZXYZ 16 456789 123456789 xyz 7
@@ -10,7 +14,9 @@
1 2 3
4 5 6
27 no truncation before 28 no trunc
- -- Date/Time -- x Page 5
+
+
+-- Date/Time -- x Page 5
29 xyzxyzxyz XYZXYZXYZ 30 456789 123456789 xyz 1
diff --git a/tests/pr/3a3l15f-t b/tests/pr/3a3l15f-t
new file mode 100644
index 0000000..99f5a6b
--- /dev/null
+++ b/tests/pr/3a3l15f-t
@@ -0,0 +1,27 @@
+
+
+-- Date/Time -- x Page 3
+
+
+1 2 3456789 abcdefghi 3
+4 5 6
+7 8 9 3456789 abcdefghi
+40 DEFGHI 123456789 41 yzxyzxyz XYZXYZXYZ a 42 456789 123456789 abc
+43 xyzxyzxyz XYZXYZXYZ 44 456789 123456789 xyz 5
+
+
+-- Date/Time -- x Page 4
+
+
+6 7 8
+9 50 1
+2 3 4
+55 yzxyzxyz XYZXYZXYZ a 56 456789 123456789 abc 57 xyzxyzxyz XYZXYZXYZ
+58 456789 123456789 xyz 9 60 DEFGHI 123456789
+
+
+-- Date/Time -- x Page 5
+
+
+1 2 3 ------- EOF --------
+ \ No newline at end of file
diff --git a/tests/pr/3a3l8f-t b/tests/pr/3a3l8f-t
deleted file mode 100644
index ef7cfcd..0000000
--- a/tests/pr/3a3l8f-t
+++ /dev/null
@@ -1,21 +0,0 @@
--- Date/Time -- x Page 3
-
-
-1 2 3456789 abcdefghi 3
-4 5 6
-7 8 9 3456789 abcdefghi
-40 DEFGHI 123456789 41 yzxyzxyz XYZXYZXYZ a 42 456789 123456789 abc
-43 xyzxyzxyz XYZXYZXYZ 44 456789 123456789 xyz 5
- -- Date/Time -- x Page 4
-
-
-6 7 8
-9 50 1
-2 3 4
-55 yzxyzxyz XYZXYZXYZ a 56 456789 123456789 abc 57 xyzxyzxyz XYZXYZXYZ
-58 456789 123456789 xyz 9 60 DEFGHI 123456789
- -- Date/Time -- x Page 5
-
-
-1 2 3 ------- EOF --------
- \ No newline at end of file
diff --git a/tests/pr/3b3f-0F b/tests/pr/3b3f-0F
index a7b6886..58aff18 100644
--- a/tests/pr/3b3f-0F
+++ b/tests/pr/3b3f-0F
@@ -1,8 +1,12 @@
+
+
-- Date/Time -- x Page 3
- -- Date/Time -- x Page 4
+
+
+-- Date/Time -- x Page 4
15 xyzxyzxyz XYZXYZXYZ 20 DEFGHI 123 5
@@ -10,7 +14,9 @@
7 2 27 no truncation before
8 3 28 no trunc
9 3456789 ab 4
- -- Date/Time -- x Page 5
+
+
+-- Date/Time -- x Page 5
29 xyzxyzxyz XYZXYZXYZ 1 3
diff --git a/tests/pr/3b3f-0FF b/tests/pr/3b3f-0FF
index 1cc025f..463d8bb 100644
--- a/tests/pr/3b3f-0FF
+++ b/tests/pr/3b3f-0FF
@@ -1,3 +1,5 @@
+
+
-- Date/Time -- x Page 3
@@ -6,11 +8,15 @@
3 ------------------- 8 \f\ftext; \f\f\ntex 3 line truncation befor
4 3456789 123456789 123 9 3456789 123456789 123 14 456789 123456789 123
5 3 Columns downwards 10 zzzzzzzzzzzzzzzzzzz
- -- Date/Time -- x Page 4
+
+
+-- Date/Time -- x Page 4
- -- Date/Time -- x Page 5
+
+
+-- Date/Time -- x Page 5
15 xyzxyzxyz XYZXYZXYZ 20 DEFGHI 123 5
@@ -18,7 +24,9 @@
7 2 27 no truncation before
8 3 28 no trunc
9 3456789 ab 4
- -- Date/Time -- x Page 6
+
+
+-- Date/Time -- x Page 6
29 xyzxyzxyz XYZXYZXYZ 1 3
diff --git a/tests/pr/3b3f-FF b/tests/pr/3b3f-FF
index e44433f..6b22767 100644
--- a/tests/pr/3b3f-FF
+++ b/tests/pr/3b3f-FF
@@ -1,3 +1,5 @@
+
+
-- Date/Time -- x Page 3
@@ -6,11 +8,15 @@
7 2 27 no truncation before
8 3 28 no trunc
9 3456789 ab 4
- -- Date/Time -- x Page 4
+
+
+-- Date/Time -- x Page 4
+
+
- -- Date/Time -- x Page 5
+-- Date/Time -- x Page 5
29 xyzxyzxyz XYZXYZXYZ 4 9 3456789 abcdefghi
@@ -18,15 +24,21 @@
1 6 41 yzxyzxyz XYZXYZXYZ a
2 3456789 abcdefghi 7 42 456789 123456789 abc
3 8
- -- Date/Time -- x Page 6
+
+-- Date/Time -- x Page 6
- -- Date/Time -- x Page 7
+
+-- Date/Time -- x Page 7
- -- Date/Time -- x Page 8
+
+
+
+
+-- Date/Time -- x Page 8
43 xyzxyzxyz XYZXYZXYZ 8 3
@@ -34,7 +46,9 @@
5 50 55 yzxyzxyz XYZXYZXYZ a
6 1 56 456789 123456789 abc
7 2
- -- Date/Time -- x Page 9
+
+
+-- Date/Time -- x Page 9
57 xyzxyzxyz XYZXYZXYZ 9 60 DEFGHI 123456789
diff --git a/tests/pr/3b3l15f-t b/tests/pr/3b3l15f-t
new file mode 100644
index 0000000..1a49dcb
--- /dev/null
+++ b/tests/pr/3b3l15f-t
@@ -0,0 +1,27 @@
+
+
+-- Date/Time -- x Page 3
+
+
+1 6 41 yzxyzxyz XYZXYZXYZ a
+2 3456789 abcdefghi 7 42 456789 123456789 abc
+3 8 43 xyzxyzxyz XYZXYZXYZ
+4 9 3456789 abcdefghi 44 456789 123456789 xyz
+5 40 DEFGHI 123456789 5
+
+
+-- Date/Time -- x Page 4
+
+
+6 1 56 456789 123456789 abc
+7 2 57 xyzxyzxyz XYZXYZXYZ
+8 3 58 456789 123456789 xyz
+9 4 9
+50 55 yzxyzxyz XYZXYZXYZ a 60 DEFGHI 123456789
+
+
+-- Date/Time -- x Page 5
+
+
+1 2 3 ------- EOF --------
+ \ No newline at end of file
diff --git a/tests/pr/3b3l8f-t b/tests/pr/3b3l8f-t
deleted file mode 100644
index 91d6c50..0000000
--- a/tests/pr/3b3l8f-t
+++ /dev/null
@@ -1,21 +0,0 @@
--- Date/Time -- x Page 3
-
-
-1 6 41 yzxyzxyz XYZXYZXYZ a
-2 3456789 abcdefghi 7 42 456789 123456789 abc
-3 8 43 xyzxyzxyz XYZXYZXYZ
-4 9 3456789 abcdefghi 44 456789 123456789 xyz
-5 40 DEFGHI 123456789 5
- -- Date/Time -- x Page 4
-
-
-6 1 56 456789 123456789 abc
-7 2 57 xyzxyzxyz XYZXYZXYZ
-8 3 58 456789 123456789 xyz
-9 4 9
-50 55 yzxyzxyz XYZXYZXYZ a 60 DEFGHI 123456789
- -- Date/Time -- x Page 5
-
-
-1 2 3 ------- EOF --------
- \ No newline at end of file
diff --git a/tests/pr/3f-0F b/tests/pr/3f-0F
index e827c4b..39a32c1 100644
--- a/tests/pr/3f-0F
+++ b/tests/pr/3f-0F
@@ -1,8 +1,12 @@
+
+
-- Date/Time -- x Page 3
- -- Date/Time -- x Page 4
+
+
+-- Date/Time -- x Page 4
15 xyzxyzxyz XYZXYZXYZ abcabcab
@@ -19,7 +23,9 @@
6 12345678
27 no truncation before FF; (r_l-test):
28 no trunc
- -- Date/Time -- x Page 5
+
+
+-- Date/Time -- x Page 5
29 xyzxyzxyz XYZXYZXYZ abcabcab
diff --git a/tests/pr/3f-FF b/tests/pr/3f-FF
index ff7fa6e..52b881c 100644
--- a/tests/pr/3f-FF
+++ b/tests/pr/3f-FF
@@ -1,3 +1,5 @@
+
+
-- Date/Time -- x Page 3
@@ -15,11 +17,15 @@
6 12345678
27 no truncation before FF; (r_l-test):
28 no trunc
- -- Date/Time -- x Page 4
+
+
+-- Date/Time -- x Page 4
+
+
- -- Date/Time -- x Page 5
+-- Date/Time -- x Page 5
29 xyzxyzxyz XYZXYZXYZ abcabcab
@@ -36,15 +42,21 @@
40 DEFGHI 123456789
41 yzxyzxyz XYZXYZXYZ abcabcab
42 456789 123456789 abcdefghi ABCDEDFHI
- -- Date/Time -- x Page 6
+
+-- Date/Time -- x Page 6
- -- Date/Time -- x Page 7
+
+-- Date/Time -- x Page 7
- -- Date/Time -- x Page 8
+
+
+
+
+-- Date/Time -- x Page 8
43 xyzxyzxyz XYZXYZXYZ abcabcab
@@ -61,7 +73,9 @@
4 12345678
55 yzxyzxyz XYZXYZXYZ abcabcab
56 456789 123456789 abcdefghi ABCDEDFHI
- -- Date/Time -- x Page 9
+
+
+-- Date/Time -- x Page 9
57 xyzxyzxyz XYZXYZXYZ abcabcab
diff --git a/tests/pr/3l17f-t b/tests/pr/3l17f-t
deleted file mode 100644
index 30e25aa..0000000
--- a/tests/pr/3l17f-t
+++ /dev/null
@@ -1,45 +0,0 @@
--- Date/Time -- x Page 3
-
-
-29 xyzxyzxyz XYZXYZXYZ abcabcab
-30 456789 123456789 xyzxyzxyz XYZXYZXYZ
-1 12345678
-2 3456789 abcdefghi
-3 12345678
-4 12345678
-5 12345678
-6 12345678
-7 12345678
-8 12345678
-9 3456789 abcdefghi
-40 DEFGHI 123456789
-41 yzxyzxyz XYZXYZXYZ abcabcab
-42 456789 123456789 abcdefghi ABCDEDFHI
- -- Date/Time -- x Page 4
-
-
-43 xyzxyzxyz XYZXYZXYZ abcabcab
-44 456789 123456789 xyzxyzxyz XYZXYZXYZ
-5 12345678
-6 12345678
-7 12345678
-8 12345678
-9 12345678
-50 12345678
-1 12345678
-2 12345678
-3 12345678
-4 12345678
-55 yzxyzxyz XYZXYZXYZ abcabcab
-56 456789 123456789 abcdefghi ABCDEDFHI
- -- Date/Time -- x Page 5
-
-
-57 xyzxyzxyz XYZXYZXYZ abcabcab
-58 456789 123456789 xyzxyzxyz XYZXYZXYZ
-9 12345678
-60 DEFGHI 123456789
-1
-2
-3 ------- EOF -------- EOF -------- EOF -------
- \ No newline at end of file
diff --git a/tests/pr/3l24f-t b/tests/pr/3l24f-t
new file mode 100644
index 0000000..6f35bd2
--- /dev/null
+++ b/tests/pr/3l24f-t
@@ -0,0 +1,51 @@
+
+
+-- Date/Time -- x Page 3
+
+
+29 xyzxyzxyz XYZXYZXYZ abcabcab
+30 456789 123456789 xyzxyzxyz XYZXYZXYZ
+1 12345678
+2 3456789 abcdefghi
+3 12345678
+4 12345678
+5 12345678
+6 12345678
+7 12345678
+8 12345678
+9 3456789 abcdefghi
+40 DEFGHI 123456789
+41 yzxyzxyz XYZXYZXYZ abcabcab
+42 456789 123456789 abcdefghi ABCDEDFHI
+
+
+-- Date/Time -- x Page 4
+
+
+43 xyzxyzxyz XYZXYZXYZ abcabcab
+44 456789 123456789 xyzxyzxyz XYZXYZXYZ
+5 12345678
+6 12345678
+7 12345678
+8 12345678
+9 12345678
+50 12345678
+1 12345678
+2 12345678
+3 12345678
+4 12345678
+55 yzxyzxyz XYZXYZXYZ abcabcab
+56 456789 123456789 abcdefghi ABCDEDFHI
+
+
+-- Date/Time -- x Page 5
+
+
+57 xyzxyzxyz XYZXYZXYZ abcabcab
+58 456789 123456789 xyzxyzxyz XYZXYZXYZ
+9 12345678
+60 DEFGHI 123456789
+1
+2
+3 ------- EOF -------- EOF -------- EOF -------
+ \ No newline at end of file
diff --git a/tests/pr/3ml17f-t b/tests/pr/3ml17f-t
deleted file mode 100644
index 684c455..0000000
--- a/tests/pr/3ml17f-t
+++ /dev/null
@@ -1,45 +0,0 @@
--- Date/Time -- x Page 3
-
-
-29 xyzxyzxyz XYZXYZXYZ abcabcab 29 xyzxyzxyz XYZXYZXYZ abcabcab
-30 456789 123456789 xyzxyzxyz XYZXY 30 456789 123456789 xyzxyzxyz XYZXY
-1 1
-2 3456789 abcdefghi 2 3456789 abcdefghi
-3 3
-4 4
-5 5
-6 6
-7 7
-8 8
-9 3456789 abcdefghi 9 3456789 abcdefghi
-40 DEFGHI 123456789 40 DEFGHI 123456789
-41 yzxyzxyz XYZXYZXYZ abcabcab 41 yzxyzxyz XYZXYZXYZ abcabcab
-42 456789 123456789 abcdefghi ABCDE 42 456789 123456789 abcdefghi ABCDE
- -- Date/Time -- x Page 4
-
-
-43 xyzxyzxyz XYZXYZXYZ abcabcab 43 xyzxyzxyz XYZXYZXYZ abcabcab
-44 456789 123456789 xyzxyzxyz XYZXY 44 456789 123456789 xyzxyzxyz XYZXY
-5 5
-6 6
-7 7
-8 8
-9 9
-50 50
-1 1
-2 2
-3 3
-4 4
-55 yzxyzxyz XYZXYZXYZ abcabcab 55 yzxyzxyz XYZXYZXYZ abcabcab
-56 456789 123456789 abcdefghi ABCDE 56 456789 123456789 abcdefghi ABCDE
- -- Date/Time -- x Page 5
-
-
-57 xyzxyzxyz XYZXYZXYZ abcabcab 57 xyzxyzxyz XYZXYZXYZ abcabcab
-58 456789 123456789 xyzxyzxyz XYZXY 58 456789 123456789 xyzxyzxyz XYZXY
-9 9
-60 DEFGHI 123456789 60 DEFGHI 123456789
-1 1
-2 2
-3 ------- EOF -------- EOF ------- 3 ------- EOF -------- EOF -------
- \ No newline at end of file
diff --git a/tests/pr/3ml24f-t b/tests/pr/3ml24f-t
new file mode 100644
index 0000000..6f92748
--- /dev/null
+++ b/tests/pr/3ml24f-t
@@ -0,0 +1,51 @@
+
+
+-- Date/Time -- x Page 3
+
+
+29 xyzxyzxyz XYZXYZXYZ abcabcab 29 xyzxyzxyz XYZXYZXYZ abcabcab
+30 456789 123456789 xyzxyzxyz XYZXY 30 456789 123456789 xyzxyzxyz XYZXY
+1 1
+2 3456789 abcdefghi 2 3456789 abcdefghi
+3 3
+4 4
+5 5
+6 6
+7 7
+8 8
+9 3456789 abcdefghi 9 3456789 abcdefghi
+40 DEFGHI 123456789 40 DEFGHI 123456789
+41 yzxyzxyz XYZXYZXYZ abcabcab 41 yzxyzxyz XYZXYZXYZ abcabcab
+42 456789 123456789 abcdefghi ABCDE 42 456789 123456789 abcdefghi ABCDE
+
+
+-- Date/Time -- x Page 4
+
+
+43 xyzxyzxyz XYZXYZXYZ abcabcab 43 xyzxyzxyz XYZXYZXYZ abcabcab
+44 456789 123456789 xyzxyzxyz XYZXY 44 456789 123456789 xyzxyzxyz XYZXY
+5 5
+6 6
+7 7
+8 8
+9 9
+50 50
+1 1
+2 2
+3 3
+4 4
+55 yzxyzxyz XYZXYZXYZ abcabcab 55 yzxyzxyz XYZXYZXYZ abcabcab
+56 456789 123456789 abcdefghi ABCDE 56 456789 123456789 abcdefghi ABCDE
+
+
+-- Date/Time -- x Page 5
+
+
+57 xyzxyzxyz XYZXYZXYZ abcabcab 57 xyzxyzxyz XYZXYZXYZ abcabcab
+58 456789 123456789 xyzxyzxyz XYZXY 58 456789 123456789 xyzxyzxyz XYZXY
+9 9
+60 DEFGHI 123456789 60 DEFGHI 123456789
+1 1
+2 2
+3 ------- EOF -------- EOF ------- 3 ------- EOF -------- EOF -------
+ \ No newline at end of file
diff --git a/tests/pr/Ja3l17f-lm b/tests/pr/Ja3l17f-lm
deleted file mode 100644
index 60b45ac..0000000
--- a/tests/pr/Ja3l17f-lm
+++ /dev/null
@@ -1,54 +0,0 @@
--- Date/Time -- x Page 1
-
-
-1<<< -Test: FF's in Text >>> 2<<< -b -3 / -a -3 / ... >>> 3<<< >>>
-4<<< 123456789 123456789 123456789 12345678 >>> 6<<< -Arangements: One Empty Page >>>
-7<<< \f\f\n; text\f\n\ftext; \f\ftext; >>> 8<<< f\f\n; \f\n\f\n; >>> 9<<< >>>
-10<<< >>> 1<<< >>> 2<<< >>>
-3<<< truncation before FF; r_r_o_l-test: >>> 14<<< 123456789 123456789 123456789 >>>
- -- Date/Time -- x Page 2
-
-
-
- -- Date/Time -- x Page 3
-
-
-15<<< xyzxyzxyz XYZXYZXYZ abcabcab >>> 16<<< 123456789 xyzxyzxyz XYZXYZXYZ >>> 7<<< >>>
-8<<< >>> 9<<< >>> 20<<< >>>
-1<<< >>>
-4<<< >>> 5<<< >>> 6<<< >>>
-27<<< truncation before FF; (r_l-test): >>> 28<<< trunc
- -- Date/Time -- x Page 4
-
-
-
- -- Date/Time -- x Page 5
-
-
-29<<<xyzxyzxyz XYZXYZXYZ abcabcab >>> 30<<< 123456789 xyzxyzxyz XYZXYZXYZ >>> 1<<< >>>
-2<<< abcdefghi >>> 3<<< >>> 4<<< >>>
-5<<< >>> 6<<< >>> 7<<< >>>
-8<<< >>> 9<<< abcdefghi >>> 40<<< 123456789 >>>
-41<<< XYZXYZXYZ abcabcab >>> 42<<< 123456789 abcdefghi ABCDEDFHI >>>
- -- Date/Time -- x Page 6
-
-
-
- -- Date/Time -- x Page 7
-
-
-
- -- Date/Time -- x Page 8
-
-
-43<<< xyzxyzxyz XYZXYZXYZ abcabcab >>> 44<<< 123456789 xyzxyzxyz XYZXYZXYZ >>> 5<<< >>>
-6<<< >>> 7<<< >>> 8<<< >>>
-9<<< >>> 50<<< >>> 1<<< >>>
-2<<< >>> 3<<< >>> 4<<< >>>
-55<<< XYZXYZXYZ abcabcab >>> 56<<< 123456789 abcdefghi ABCDEDFHI >>>
- -- Date/Time -- x Page 9
-
-
-57<<< xyzxyzxyz XYZXYZXYZ abcabcab >>> 58<<< 123456789 xyzxyzxyz XYZXYZXYZ >>> 9<<< >>>
-60<<< 123456789 >>>
- \ No newline at end of file
diff --git a/tests/pr/Ja3l24f-lm b/tests/pr/Ja3l24f-lm
new file mode 100644
index 0000000..a6b7df7
--- /dev/null
+++ b/tests/pr/Ja3l24f-lm
@@ -0,0 +1,72 @@
+
+
+-- Date/Time -- x Page 1
+
+
+1<<< -Test: FF's in Text >>> 2<<< -b -3 / -a -3 / ... >>> 3<<< >>>
+4<<< 123456789 123456789 123456789 12345678 >>> 6<<< -Arangements: One Empty Page >>>
+7<<< \f\f\n; text\f\n\ftext; \f\ftext; >>> 8<<< f\f\n; \f\n\f\n; >>> 9<<< >>>
+10<<< >>> 1<<< >>> 2<<< >>>
+3<<< truncation before FF; r_r_o_l-test: >>> 14<<< 123456789 123456789 123456789 >>>
+
+
+-- Date/Time -- x Page 2
+
+
+
+
+
+-- Date/Time -- x Page 3
+
+
+15<<< xyzxyzxyz XYZXYZXYZ abcabcab >>> 16<<< 123456789 xyzxyzxyz XYZXYZXYZ >>> 7<<< >>>
+8<<< >>> 9<<< >>> 20<<< >>>
+1<<< >>>
+4<<< >>> 5<<< >>> 6<<< >>>
+27<<< truncation before FF; (r_l-test): >>> 28<<< trunc
+
+
+-- Date/Time -- x Page 4
+
+
+
+
+
+-- Date/Time -- x Page 5
+
+
+29<<<xyzxyzxyz XYZXYZXYZ abcabcab >>> 30<<< 123456789 xyzxyzxyz XYZXYZXYZ >>> 1<<< >>>
+2<<< abcdefghi >>> 3<<< >>> 4<<< >>>
+5<<< >>> 6<<< >>> 7<<< >>>
+8<<< >>> 9<<< abcdefghi >>> 40<<< 123456789 >>>
+41<<< XYZXYZXYZ abcabcab >>> 42<<< 123456789 abcdefghi ABCDEDFHI >>>
+
+
+-- Date/Time -- x Page 6
+
+
+
+
+
+-- Date/Time -- x Page 7
+
+
+
+
+
+-- Date/Time -- x Page 8
+
+
+43<<< xyzxyzxyz XYZXYZXYZ abcabcab >>> 44<<< 123456789 xyzxyzxyz XYZXYZXYZ >>> 5<<< >>>
+6<<< >>> 7<<< >>> 8<<< >>>
+9<<< >>> 50<<< >>> 1<<< >>>
+2<<< >>> 3<<< >>> 4<<< >>>
+55<<< XYZXYZXYZ abcabcab >>> 56<<< 123456789 abcdefghi ABCDEDFHI >>>
+
+
+-- Date/Time -- x Page 9
+
+
+57<<< xyzxyzxyz XYZXYZXYZ abcabcab >>> 58<<< 123456789 xyzxyzxyz XYZXYZXYZ >>> 9<<< >>>
+60<<< 123456789 >>>
+ \ No newline at end of file
diff --git a/tests/pr/Jb3l17f-lm b/tests/pr/Jb3l17f-lm
deleted file mode 100644
index 4736554..0000000
--- a/tests/pr/Jb3l17f-lm
+++ /dev/null
@@ -1,54 +0,0 @@
--- Date/Time -- x Page 1
-
-
-1<<< -Test: FF's in Text >>> 6<<< -Arangements: One Empty Page >>> 1<<< >>>
-2<<< -b -3 / -a -3 / ... >>> 7<<< \f\f\n; text\f\n\ftext; \f\ftext; >>> 2<<< >>>
-3<<< >>> 8<<< f\f\n; \f\n\f\n; >>> 3<<< truncation before FF; r_r_o_l-test: >>>
-4<<< 123456789 123456789 123456789 12345678 >>> 9<<< >>> 14<<< 123456789 123456789 123456789 >>>
- 10<<< >>>
- -- Date/Time -- x Page 2
-
-
-
- -- Date/Time -- x Page 3
-
-
-15<<< xyzxyzxyz XYZXYZXYZ abcabcab >>> 20<<< >>> 5<<< >>>
-16<<< 123456789 xyzxyzxyz XYZXYZXYZ >>> 1<<< >>> 6<<< >>>
-7<<< >>> 27<<< truncation before FF; (r_l-test): >>>
-8<<< >>> 28<<< trunc
-9<<< >>> 4<<< >>>
- -- Date/Time -- x Page 4
-
-
-
- -- Date/Time -- x Page 5
-
-
-29<<<xyzxyzxyz XYZXYZXYZ abcabcab >>> 4<<< >>> 9<<< abcdefghi >>>
-30<<< 123456789 xyzxyzxyz XYZXYZXYZ >>> 5<<< >>> 40<<< 123456789 >>>
-1<<< >>> 6<<< >>> 41<<< XYZXYZXYZ abcabcab >>>
-2<<< abcdefghi >>> 7<<< >>> 42<<< 123456789 abcdefghi ABCDEDFHI >>>
-3<<< >>> 8<<< >>>
- -- Date/Time -- x Page 6
-
-
-
- -- Date/Time -- x Page 7
-
-
-
- -- Date/Time -- x Page 8
-
-
-43<<< xyzxyzxyz XYZXYZXYZ abcabcab >>> 8<<< >>> 3<<< >>>
-44<<< 123456789 xyzxyzxyz XYZXYZXYZ >>> 9<<< >>> 4<<< >>>
-5<<< >>> 50<<< >>> 55<<< XYZXYZXYZ abcabcab >>>
-6<<< >>> 1<<< >>> 56<<< 123456789 abcdefghi ABCDEDFHI >>>
-7<<< >>> 2<<< >>>
- -- Date/Time -- x Page 9
-
-
-57<<< xyzxyzxyz XYZXYZXYZ abcabcab >>> 9<<< >>> 60<<< 123456789 >>>
-58<<< 123456789 xyzxyzxyz XYZXYZXYZ >>>
- \ No newline at end of file
diff --git a/tests/pr/Jb3l24f-lm b/tests/pr/Jb3l24f-lm
new file mode 100644
index 0000000..220b058
--- /dev/null
+++ b/tests/pr/Jb3l24f-lm
@@ -0,0 +1,72 @@
+
+
+-- Date/Time -- x Page 1
+
+
+1<<< -Test: FF's in Text >>> 6<<< -Arangements: One Empty Page >>> 1<<< >>>
+2<<< -b -3 / -a -3 / ... >>> 7<<< \f\f\n; text\f\n\ftext; \f\ftext; >>> 2<<< >>>
+3<<< >>> 8<<< f\f\n; \f\n\f\n; >>> 3<<< truncation before FF; r_r_o_l-test: >>>
+4<<< 123456789 123456789 123456789 12345678 >>> 9<<< >>> 14<<< 123456789 123456789 123456789 >>>
+ 10<<< >>>
+
+
+-- Date/Time -- x Page 2
+
+
+
+
+
+-- Date/Time -- x Page 3
+
+
+15<<< xyzxyzxyz XYZXYZXYZ abcabcab >>> 20<<< >>> 5<<< >>>
+16<<< 123456789 xyzxyzxyz XYZXYZXYZ >>> 1<<< >>> 6<<< >>>
+7<<< >>> 27<<< truncation before FF; (r_l-test): >>>
+8<<< >>> 28<<< trunc
+9<<< >>> 4<<< >>>
+
+
+-- Date/Time -- x Page 4
+
+
+
+
+
+-- Date/Time -- x Page 5
+
+
+29<<<xyzxyzxyz XYZXYZXYZ abcabcab >>> 4<<< >>> 9<<< abcdefghi >>>
+30<<< 123456789 xyzxyzxyz XYZXYZXYZ >>> 5<<< >>> 40<<< 123456789 >>>
+1<<< >>> 6<<< >>> 41<<< XYZXYZXYZ abcabcab >>>
+2<<< abcdefghi >>> 7<<< >>> 42<<< 123456789 abcdefghi ABCDEDFHI >>>
+3<<< >>> 8<<< >>>
+
+
+-- Date/Time -- x Page 6
+
+
+
+
+
+-- Date/Time -- x Page 7
+
+
+
+
+
+-- Date/Time -- x Page 8
+
+
+43<<< xyzxyzxyz XYZXYZXYZ abcabcab >>> 8<<< >>> 3<<< >>>
+44<<< 123456789 xyzxyzxyz XYZXYZXYZ >>> 9<<< >>> 4<<< >>>
+5<<< >>> 50<<< >>> 55<<< XYZXYZXYZ abcabcab >>>
+6<<< >>> 1<<< >>> 56<<< 123456789 abcdefghi ABCDEDFHI >>>
+7<<< >>> 2<<< >>>
+
+
+-- Date/Time -- x Page 9
+
+
+57<<< xyzxyzxyz XYZXYZXYZ abcabcab >>> 9<<< >>> 60<<< 123456789 >>>
+58<<< 123456789 xyzxyzxyz XYZXYZXYZ >>>
+ \ No newline at end of file
diff --git a/tests/pr/Jml17f-lm-lo b/tests/pr/Jml17f-lm-lo
deleted file mode 100644
index 84c107e..0000000
--- a/tests/pr/Jml17f-lm-lo
+++ /dev/null
@@ -1,118 +0,0 @@
--- Date/Time -- x Page 1
-
-
-1<<< -Test: FF's in Text >>> 1::: Test-INPUT: "Without FF set by Hand" :::
-2<<< -b -3 / -a -3 / ... >>> 2::: Options -b -3 [+2|+3] [-l 15|8] [-f] :::
-3<<< >>> 3::: Options -a -3 [+2|+3] [-l 15|8] [-f] :::
-4<<< 123456789 123456789 123456789 12345678 >>> 4::: Options [+2|+3] [-l 24|17] [-f] :::
- 5::: :::
-6<<< -Arangements: One Empty Page >>> 6::: -------------------------------------------- :::
-7<<< \f\f\n; text\f\n\ftext; \f\ftext; >>> 7::: 789 123456789 123456789 123456789 123456789 123456789 123456789 1234567890 :::
-8<<< f\f\n; \f\n\f\n; >>> 8::: 3 Columns downwards, across, ...: :::
-9<<< >>> 9::: With columns use <= 5 text lines/page, :::
-10<<< >>> 10::: without -f e.g.: -l 15 = total lines/page, :::
-1<<< >>> 1::: with -f e.g. : -l 8 -f :::
-2<<< >>> 2::: :::
-3<<< truncation before FF; r_r_o_l-test: >>> 3::: line truncation before new page; r_r_o_l-test: :::
-14<<< 123456789 123456789 123456789 >>> 14::: 89 123456789 123456789 123456789 123456789 123456789 123456789 1234567890 :::
- -- Date/Time -- x Page 2
-
-
- 15::: xyzxyzxyz XYZXYZXYZ abcabcab :::
- 16::: 456789 123456789 xyzxyzxyz XYZXYZXYZ :::
- 7::: 12345678 :::
- 8::: 12345678 :::
- 9::: 3456789 ab :::
- 20::: DEFGHI 123 :::
- 21::: 89 123456789 123456789 123456789 123456789 123456789 123456789 1234567890 :::
- 2::: 12345678 :::
- 3::: 12345678 :::
- 4::: 12345678 :::
- 5::: 12345678 :::
- 6::: 12345678 :::
- 27::: no truncation before nwe page; (r_l-test): :::
- 28::: 89 123456789 123456789 123456789 123456789 123456789 123456789 1234567890 :::
- -- Date/Time -- x Page 3
-
-
-15<<< xyzxyzxyz XYZXYZXYZ abcabcab >>> 29::: xyzxyzxyz XYZXYZXYZ abcabcab :::
-16<<< 123456789 xyzxyzxyz XYZXYZXYZ >>> 30::: 456789 123456789 xyzxyzxyz XYZXYZXYZ :::
-7<<< >>> 1::: 12345678 :::
-8<<< >>> 2::: 3456789 abcdefghi :::
-9<<< >>> 3::: 12345678 :::
-20<<< >>> 4::: 12345678 :::
-1<<< >>> 35::: 89 123456789 123456789 123456789 123456789 123456789 123456789 1234567890 :::
- 6::: 12345678 :::
- 7::: 12345678 :::
-4<<< >>> 8::: 12345678 :::
-5<<< >>> 9::: 3456789 abcdefghi :::
-6<<< >>> 40::: DEFGHI 123456789 :::
-27<<< truncation before FF; (r_l-test): >>> 41::: yzxyzxyz XYZXYZXYZ abcabcab :::
-28<<< trunc 42::: 89 123456789 123456789 123456789 123456789 123456789 123456789 1234567890 :::
- -- Date/Time -- x Page 4
-
-
- 43::: xyzxyzxyz XYZXYZXYZ abcabcab :::
- 44::: 456789 123456789 xyzxyzxyz XYZXYZXYZ :::
- 5::: 12345678 :::
- 6::: 12345678 :::
- 7::: 12345678 :::
- 8::: 12345678 :::
- 49::: 89 123456789 123456789 123456789 123456789 123456789 123456789 1234567890 :::
- 50::: 12345678 :::
- 1::: 12345678 :::
- 2::: 12345678 :::
- 3::: 12345678 :::
- 4::: 12345678 :::
- 55::: yzxyzxyz XYZXYZXYZ abcabcab :::
- 56::: 89 123456789 123456789 123456789 123456789 123456789 123456789 1234567890 :::
- -- Date/Time -- x Page 5
-
-
-29<<<xyzxyzxyz XYZXYZXYZ abcabcab >>> 57::: xyzxyzxyz XYZXYZXYZ abcabcab :::
-30<<< 123456789 xyzxyzxyz XYZXYZXYZ >>> 58::: 456789 123456789 xyzxyzxyz XYZXYZXYZ :::
-1<<< >>> 9::: 12345678 :::
-2<<< abcdefghi >>> 60::: DEFGHI 123456789 :::
-3<<< >>> 1::: :::
-4<<< >>> 2::: :::
-5<<< >>> 3::: ------- EOF -------- EOF -------- EOF ------- EOF ------- EOF ------- EOF :::
-6<<< >>>
-7<<< >>>
-8<<< >>>
-9<<< abcdefghi >>>
-40<<< 123456789 >>>
-41<<< XYZXYZXYZ abcabcab >>>
-42<<< 123456789 abcdefghi ABCDEDFHI >>>
- -- Date/Time -- x Page 6
-
-
-
- -- Date/Time -- x Page 7
-
-
-
- -- Date/Time -- x Page 8
-
-
-43<<< xyzxyzxyz XYZXYZXYZ abcabcab >>>
-44<<< 123456789 xyzxyzxyz XYZXYZXYZ >>>
-5<<< >>>
-6<<< >>>
-7<<< >>>
-8<<< >>>
-9<<< >>>
-50<<< >>>
-1<<< >>>
-2<<< >>>
-3<<< >>>
-4<<< >>>
-55<<< XYZXYZXYZ abcabcab >>>
-56<<< 123456789 abcdefghi ABCDEDFHI >>>
- -- Date/Time -- x Page 9
-
-
-57<<< xyzxyzxyz XYZXYZXYZ abcabcab >>>
-58<<< 123456789 xyzxyzxyz XYZXYZXYZ >>>
-9<<< >>>
-60<<< 123456789 >>>
- \ No newline at end of file
diff --git a/tests/pr/Jml24f-lm-lo b/tests/pr/Jml24f-lm-lo
new file mode 100644
index 0000000..66af2d4
--- /dev/null
+++ b/tests/pr/Jml24f-lm-lo
@@ -0,0 +1,136 @@
+
+
+-- Date/Time -- x Page 1
+
+
+1<<< -Test: FF's in Text >>> 1::: Test-INPUT: "Without FF set by Hand" :::
+2<<< -b -3 / -a -3 / ... >>> 2::: Options -b -3 [+2|+3] [-l 15|8] [-f] :::
+3<<< >>> 3::: Options -a -3 [+2|+3] [-l 15|8] [-f] :::
+4<<< 123456789 123456789 123456789 12345678 >>> 4::: Options [+2|+3] [-l 24|17] [-f] :::
+ 5::: :::
+6<<< -Arangements: One Empty Page >>> 6::: -------------------------------------------- :::
+7<<< \f\f\n; text\f\n\ftext; \f\ftext; >>> 7::: 789 123456789 123456789 123456789 123456789 123456789 123456789 1234567890 :::
+8<<< f\f\n; \f\n\f\n; >>> 8::: 3 Columns downwards, across, ...: :::
+9<<< >>> 9::: With columns use <= 5 text lines/page, :::
+10<<< >>> 10::: without -f e.g.: -l 15 = total lines/page, :::
+1<<< >>> 1::: with -f e.g. : -l 8 -f :::
+2<<< >>> 2::: :::
+3<<< truncation before FF; r_r_o_l-test: >>> 3::: line truncation before new page; r_r_o_l-test: :::
+14<<< 123456789 123456789 123456789 >>> 14::: 89 123456789 123456789 123456789 123456789 123456789 123456789 1234567890 :::
+
+
+-- Date/Time -- x Page 2
+
+
+ 15::: xyzxyzxyz XYZXYZXYZ abcabcab :::
+ 16::: 456789 123456789 xyzxyzxyz XYZXYZXYZ :::
+ 7::: 12345678 :::
+ 8::: 12345678 :::
+ 9::: 3456789 ab :::
+ 20::: DEFGHI 123 :::
+ 21::: 89 123456789 123456789 123456789 123456789 123456789 123456789 1234567890 :::
+ 2::: 12345678 :::
+ 3::: 12345678 :::
+ 4::: 12345678 :::
+ 5::: 12345678 :::
+ 6::: 12345678 :::
+ 27::: no truncation before nwe page; (r_l-test): :::
+ 28::: 89 123456789 123456789 123456789 123456789 123456789 123456789 1234567890 :::
+
+
+-- Date/Time -- x Page 3
+
+
+15<<< xyzxyzxyz XYZXYZXYZ abcabcab >>> 29::: xyzxyzxyz XYZXYZXYZ abcabcab :::
+16<<< 123456789 xyzxyzxyz XYZXYZXYZ >>> 30::: 456789 123456789 xyzxyzxyz XYZXYZXYZ :::
+7<<< >>> 1::: 12345678 :::
+8<<< >>> 2::: 3456789 abcdefghi :::
+9<<< >>> 3::: 12345678 :::
+20<<< >>> 4::: 12345678 :::
+1<<< >>> 35::: 89 123456789 123456789 123456789 123456789 123456789 123456789 1234567890 :::
+ 6::: 12345678 :::
+ 7::: 12345678 :::
+4<<< >>> 8::: 12345678 :::
+5<<< >>> 9::: 3456789 abcdefghi :::
+6<<< >>> 40::: DEFGHI 123456789 :::
+27<<< truncation before FF; (r_l-test): >>> 41::: yzxyzxyz XYZXYZXYZ abcabcab :::
+28<<< trunc 42::: 89 123456789 123456789 123456789 123456789 123456789 123456789 1234567890 :::
+
+
+-- Date/Time -- x Page 4
+
+
+ 43::: xyzxyzxyz XYZXYZXYZ abcabcab :::
+ 44::: 456789 123456789 xyzxyzxyz XYZXYZXYZ :::
+ 5::: 12345678 :::
+ 6::: 12345678 :::
+ 7::: 12345678 :::
+ 8::: 12345678 :::
+ 49::: 89 123456789 123456789 123456789 123456789 123456789 123456789 1234567890 :::
+ 50::: 12345678 :::
+ 1::: 12345678 :::
+ 2::: 12345678 :::
+ 3::: 12345678 :::
+ 4::: 12345678 :::
+ 55::: yzxyzxyz XYZXYZXYZ abcabcab :::
+ 56::: 89 123456789 123456789 123456789 123456789 123456789 123456789 1234567890 :::
+
+
+-- Date/Time -- x Page 5
+
+
+29<<<xyzxyzxyz XYZXYZXYZ abcabcab >>> 57::: xyzxyzxyz XYZXYZXYZ abcabcab :::
+30<<< 123456789 xyzxyzxyz XYZXYZXYZ >>> 58::: 456789 123456789 xyzxyzxyz XYZXYZXYZ :::
+1<<< >>> 9::: 12345678 :::
+2<<< abcdefghi >>> 60::: DEFGHI 123456789 :::
+3<<< >>> 1::: :::
+4<<< >>> 2::: :::
+5<<< >>> 3::: ------- EOF -------- EOF -------- EOF ------- EOF ------- EOF ------- EOF :::
+6<<< >>>
+7<<< >>>
+8<<< >>>
+9<<< abcdefghi >>>
+40<<< 123456789 >>>
+41<<< XYZXYZXYZ abcabcab >>>
+42<<< 123456789 abcdefghi ABCDEDFHI >>>
+
+
+-- Date/Time -- x Page 6
+
+
+
+
+
+-- Date/Time -- x Page 7
+
+
+
+
+
+-- Date/Time -- x Page 8
+
+
+43<<< xyzxyzxyz XYZXYZXYZ abcabcab >>>
+44<<< 123456789 xyzxyzxyz XYZXYZXYZ >>>
+5<<< >>>
+6<<< >>>
+7<<< >>>
+8<<< >>>
+9<<< >>>
+50<<< >>>
+1<<< >>>
+2<<< >>>
+3<<< >>>
+4<<< >>>
+55<<< XYZXYZXYZ abcabcab >>>
+56<<< 123456789 abcdefghi ABCDEDFHI >>>
+
+
+-- Date/Time -- x Page 9
+
+
+57<<< xyzxyzxyz XYZXYZXYZ abcabcab >>>
+58<<< 123456789 xyzxyzxyz XYZXYZXYZ >>>
+9<<< >>>
+60<<< 123456789 >>>
+ \ No newline at end of file
diff --git a/tests/pr/Makefile.am b/tests/pr/Makefile.am
deleted file mode 100644
index f24cc94..0000000
--- a/tests/pr/Makefile.am
+++ /dev/null
@@ -1,157 +0,0 @@
-# Make coreutils tests. -*-Makefile-*-
-
-# Copyright (C) 1997, 1998, 2000, 2003, 2004, 2006 Free Software
-# Foundation, Inc.
-
-# This program is free software; you can redistribute it and/or modify
-# it under the terms of the GNU General Public License as published by
-# the Free Software Foundation; either version 2 of the License, or
-# (at your option) any later version.
-
-# This program is distributed in the hope that it will be useful,
-# but WITHOUT ANY WARRANTY; without even the implied warranty of
-# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
-# GNU General Public License for more details.
-
-# You should have received a copy of the GNU General Public License
-# along with this program; if not, write to the Free Software
-# Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA
-# 02110-1301, USA.
-
-##test-files-begin
-x = pr
-explicit = 0F 0FF 0FFnt 0FFt 0FnFnt 0FnFt 0Fnt 0Ft 2-S_f-t_notab 2-Sf-t_notab \
-2f-t_notab 2s_f-t_notab 2s_w60f-t_nota 2sf-t_notab 2sw60f-t_notab \
-2w60f-t_notab 3-0F 3-5l17f-t 3-FF 3a2l17-FF 3a3f-0F 3a3l15-t 3a3l8f-t \
-3b2l17-FF 3b3f-0F 3b3f-0FF 3b3f-FF 3b3l15-t 3b3l8f-t 3f-0F 3f-FF 3l17f-t \
-3l24-t 3ml17f-t 3ml24-FF 3ml24-t 3ml24-t-FF 4-7l24-FF 4l24-FF FF FFn FFtn \
-FnFn Ja3l17f-lm Jb3l17f-lm Jml17f-lm-lo W-72l17f-ll W20l17f-ll W26l17f-ll \
-W27l17f-ll W28l17f-ll W35Ja3l17f-lm W35Jb3l17f-lm W35Jml17f-lmlo W35a3l17f-lm \
-W35b3l17f-lm W35ml17f-lm-lo W72Jl17f-ll a2l15-FF a2l17-FF a3-0F a3f-0F \
-a3f-0FF a3f-FF a3l15-t a3l17f-lm a3l8f-t b2l15-FF b2l17-FF b3-0F b3f-0F \
-b3f-0FF b3f-FF b3l15-t b3l17f-lm b3l8f-t l17f-t l24-FF l24-t loli ml17f-0F \
-ml17f-lm-lo ml17f-t ml17f-t-0F ml20-FF-t ml24-FF ml24-t ml24-t-FF \
-n+2-5l17f-0FF n+2l17f-0FF n+2l17f-bl n+3-7l24-FF n+3l17f-0FF n+3l17f-bl \
-n+3ml13f-bl-FF n+3ml17f-bl-tn n+3ml17f-tn-bl n+4-8a2l17-FF n+4b2l10f-0FF \
-n+5-8b3l10f-FF n+5a3l6f-0FF n+6a2l17-FF n+6b3l6f-FF n+7l24-FF n+8l20-FF \
-nJml17f-lmlmlo nJml17f-lmlolm nN1+3l17f-bl nN15l17f-bl nSml13-bl-FF \
-nSml13-t-t-FF nSml13-t-tFFFF nSml17-bl-FF nSml17-t-t-FF nSml17-t-tFFFF \
-nl17f-bl o3Jml17f-lm-lo o3a3Sl17f-tn o3a3Snl17f-tn o3a3l17f-tn o3b3Sl17f-tn \
-o3b3Snl17f-tn o3b3l17f-tn o3mSl17f-bl-tn o3mSnl17fbltn o3ml17f-bl-tn t-0FF \
-t-FF t-bl t-t tFFn tFFt tFFt-bl tFFt-ll tFFt-lm tFnFt t_notab t_tab t_tab_ \
-ta3-0FF ta3-FF tb3-0FF tb3-FF tn tn2e5o3-t_tab tn2e8-t_tab tn2e8o3-t_tab \
-tn_2e8-t_tab tn_2e8S-t_tab tne8-t_tab tne8o3-t_tab tt-0FF tt-FF tt-bl tt-t \
-tta3-0FF tta3-FF ttb3-0FF ttb3-FF w72l17f-ll
-maint_gen = i-opt-a.I i-opt-a.X i-opt-b.I i-opt-b.X ncut-a.I ncut-a.X \
-ncut-b.I ncut-b.X margin-0.I margin-0.X dbl-sp-a.I dbl-sp-a.X dbl-sp-b.I \
-dbl-sp-b.X narrow-1.I narrow-1.X col-last.I col-last.X col-02.I col-02.X \
-col-02.C.I col-02.C.X col-2.I col-2.X col-2.C.I col-2.C.X col-long.I \
-col-long.X col-long.C.I col-long.C.X col-0.I col-0.X col-0.C.I col-0.C.X \
-col-inval.I col-inval.X col-inval.C.I col-inval.C.X neg-page.I neg-page.X
-run_gen = 1a.O 1a.E 1b.O 1b.E 1c.O 1c.E 1d.O 1d.E 1e.O 1e.E 1e.C.O 1e.C.E \
-1f.O 1f.E 1f.C.O 1f.C.E 1g.O 1g.E 1g.C.O 1g.C.E 1h.O 1h.E 1h.C.O 1h.C.E 1i.O \
-1i.E 1i.C.O 1i.C.E 1j.O 1j.E 1j.C.O 1j.C.E 1k.O 1k.E 1k.C.O 1k.C.E 1l.O 1l.E \
-1l.C.O 1l.C.E 2a.O 2a.E 2b.O 2b.E 2c.O 2c.E 2c.C.O 2c.C.E 2d.O 2d.E 2d.C.O \
-2d.C.E 2e.O 2e.E 2e.C.O 2e.C.E 2f.O 2f.E 2f.C.O 2f.C.E 2g.O 2g.E 2g.C.O \
-2g.C.E 2h.O 2h.E 2h.C.O 2h.C.E 2i.O 2i.E 2i.C.O 2i.C.E 2j.O 2j.E 2j.C.O \
-2j.C.E 3a.O 3a.E 3b.O 3b.E 3c.O 3c.E 3d.O 3d.E 3e.O 3e.E 3e.C.O 3e.C.E 3f.O \
-3f.E 3f.C.O 3f.C.E 3g.O 3g.E 3g.C.O 3g.C.E 3h.O 3h.E 3h.C.O 3h.C.E 3i.O 3i.E \
-3i.C.O 3i.C.E 3j.O 3j.E 3j.C.O 3j.C.E 3k.O 3k.E 3k.C.O 3k.C.E 3l.O 3l.E \
-3l.C.O 3l.C.E 3m.O 3m.E 3m.C.O 3m.C.E 3la.O 3la.E 3lb.O 3lb.E 3lc.O 3lc.E \
-3ld.O 3ld.E 3le.O 3le.E 3lf.O 3lf.E 3aa.O 3aa.E 3aa.C.O 3aa.C.E 3ab.O 3ab.E \
-3ab.C.O 3ab.C.E 3ac.O 3ac.E 3ac.C.O 3ac.C.E 3ad.O 3ad.E 3ad.C.O 3ad.C.E 3ae.O \
-3ae.E 3ae.C.O 3ae.C.E 3af.O 3af.E 3af.C.O 3af.C.E 3ag.O 3ag.E 3ag.C.O 3ag.C.E \
-3ah.O 3ah.E 3ah.C.O 3ah.C.E 3ai.O 3ai.E 3ai.C.O 3ai.C.E 3aj.O 3aj.E 3aj.C.O \
-3aj.C.E 3ak.O 3ak.E 3ak.C.O 3ak.C.E 3ba.O 3ba.E 3ba.C.O 3ba.C.E 3bb.O 3bb.E \
-3bb.C.O 3bb.C.E 3bc.O 3bc.E 3bc.C.O 3bc.C.E 3bd.O 3bd.E 3bd.C.O 3bd.C.E 3be.O \
-3be.E 3be.C.O 3be.C.E 3bf.O 3bf.E 3bf.C.O 3bf.C.E 3bg.O 3bg.E 3bg.C.O 3bg.C.E \
-3bh.O 3bh.E 3bh.C.O 3bh.C.E 3bi.O 3bi.E 3bi.C.O 3bi.C.E 3bj.O 3bj.E 3bj.C.O \
-3bj.C.E 3bk.O 3bk.E 3bk.C.O 3bk.C.E 3Pa.O 3Pa.E 3Pb.O 3Pb.E 3Pc.O 3Pc.E 3Pd.O \
-3Pd.E 3Pe.O 3Pe.E 3Pf.O 3Pf.E 3Pg.O 3Pg.E 3Paa.O 3Paa.E 3Paa.C.O 3Paa.C.E \
-3Pab.O 3Pab.E 3Pab.C.O 3Pab.C.E 3Pac.O 3Pac.E 3Pac.C.O 3Pac.C.E 3Pad.O 3Pad.E \
-3Pad.C.O 3Pad.C.E 3Pae.O 3Pae.E 3Pae.C.O 3Pae.C.E 3Paf.O 3Paf.E 3Paf.C.O \
-3Paf.C.E 3Pba.O 3Pba.E 3Pba.C.O 3Pba.C.E 3Pbb.O 3Pbb.E 3Pbb.C.O 3Pbb.C.E \
-3Pbc.O 3Pbc.E 3Pbc.C.O 3Pbc.C.E 3Pbd.O 3Pbd.E 3Pbd.C.O 3Pbd.C.E 3Pbe.O 3Pbe.E \
-3Pbe.C.O 3Pbe.C.E 3Pbf.O 3Pbf.E 3Pbf.C.O 3Pbf.C.E 4a.O 4a.E 4b.O 4b.E 4c.O \
-4c.E 4d.O 4d.E 4e.O 4e.E 4f.O 4f.E 4f.C.O 4f.C.E 4g.O 4g.E 4g.C.O 4g.C.E 4h.O \
-4h.E 4h.C.O 4h.C.E 4i.O 4i.E 4i.C.O 4i.C.E 4j.O 4j.E 4j.C.O 4j.C.E 4k.O 4k.E \
-4k.C.O 4k.C.E 4l.O 4l.E 4l.C.O 4l.C.E 4m.O 4m.E 4m.C.O 4m.C.E 5a.O 5a.E 5b.O \
-5b.E 5c.O 5c.E 5d.O 5d.E 5e.O 5e.E 5f.O 5f.E 5g.O 5g.E 5ma.O 5ma.E 5mb.O \
-5mb.E 5mc.O 5mc.E 5md.O 5md.E 5Pma.O 5Pma.E 5Pmb.O 5Pmb.E 5Pmc.O 5Pmc.E 6a.O \
-6a.E 6b.O 6b.E 6c.O 6c.E 6d.O 6d.E 6e.O 6e.E 6f.O 6f.E 6g.O 6g.E 6aa.O 6aa.E \
-6aa.C.O 6aa.C.E 6ab.O 6ab.E 6ab.C.O 6ab.C.E 6ac.O 6ac.E 6ac.C.O 6ac.C.E 6ba.O \
-6ba.E 6ba.C.O 6ba.C.E 6bb.O 6bb.E 6bb.C.O 6bb.C.E 6bc.O 6bc.E 6bc.C.O 6bc.C.E \
-7a.O 7a.E 7b.O 7b.E 7c.O 7c.E 7d.O 7d.E 7e.O 7e.E 7f.O 7f.E 7g.O 7g.E 7aa.O \
-7aa.E 7aa.C.O 7aa.C.E 7ab.O 7ab.E 7ab.C.O 7ab.C.E 7ac.O 7ac.E 7ac.C.O 7ac.C.E \
-7ba.O 7ba.E 7ba.C.O 7ba.C.E 7bb.O 7bb.E 7bb.C.O 7bb.C.E 7bc.O 7bc.E 7bc.C.O \
-7bc.C.E 9a.O 9a.E 9b.O 9b.E 9Pa.O 9Pa.E 9Pb.O 9Pb.E 9Pc.O 9Pc.E 9Pe.O 9Pe.E \
-9Pf.O 9Pf.E 9Pg.O 9Pg.E 9Ph.O 9Ph.E 9Pi.O 9Pi.E 9Pj.O 9Pj.E 9Pk.O 9Pk.E 9Pl.O \
-9Pl.E 9Pm.O 9Pm.E 9Pn.O 9Pn.E 9Po.O 9Po.E 9Pp.O 9Pp.E 9Pq.O 9Pq.E 9Pr.O 9Pr.E \
-9Ps.O 9Ps.E 9Pt.O 9Pt.E 9Paa.O 9Paa.E 9Paa.C.O 9Paa.C.E 9Pab.O 9Pab.E \
-9Pab.C.O 9Pab.C.E 9Pac.O 9Pac.E 9Pac.C.O 9Pac.C.E 9Pad.O 9Pad.E 9Pad.C.O \
-9Pad.C.E 9Pae.O 9Pae.E 9Pae.C.O 9Pae.C.E 9Paf.O 9Paf.E 9Paf.C.O 9Paf.C.E \
-9Pag.O 9Pag.E 9Pag.C.O 9Pag.C.E 9Pah.O 9Pah.E 9Pah.C.O 9Pah.C.E 9Pai.O 9Pai.E \
-9Pai.C.O 9Pai.C.E 9Paj.O 9Paj.E 9Paj.C.O 9Paj.C.E 9Pak.O 9Pak.E 9Pak.C.O \
-9Pak.C.E 9Pba.O 9Pba.E 9Pba.C.O 9Pba.C.E 9Pbb.O 9Pbb.E 9Pbb.C.O 9Pbb.C.E \
-9Pbc.O 9Pbc.E 9Pbc.C.O 9Pbc.C.E 9Pbd.O 9Pbd.E 9Pbd.C.O 9Pbd.C.E 9Pbe.O 9Pbe.E \
-9Pbe.C.O 9Pbe.C.E 9Pbf.O 9Pbf.E 9Pbf.C.O 9Pbf.C.E 9Pbg.O 9Pbg.E 9Pbg.C.O \
-9Pbg.C.E 9Pbh.O 9Pbh.E 9Pbh.C.O 9Pbh.C.E 9Pbi.O 9Pbi.E 9Pbi.C.O 9Pbi.C.E \
-9Pbj.O 9Pbj.E 9Pbj.C.O 9Pbj.C.E 9Pbk.O 9Pbk.E 9Pbk.C.O 9Pbk.C.E 9Pma.O 9Pma.E \
-9Pmb.O 9Pmb.E 9Pmc.O 9Pmc.E 10wa.O 10wa.E 10wb.O 10wb.E 10wc.O 10wc.E 10wd.O \
-10wd.E 10we.O 10we.E 10wf.O 10wf.E 10wg.O 10wg.E 10wh.O 10wh.E 10ma.O 10ma.E \
-10mb.O 10mb.E 10mc.O 10mc.E 10md.O 10md.E 10me.O 10me.E 10mf.O 10mf.E 10mg.O \
-10mg.E 10mh.O 10mh.E 10aa.O 10aa.E 10aa.C.O 10aa.C.E 10ab.O 10ab.E 10ab.C.O \
-10ab.C.E 10ac.O 10ac.E 10ac.C.O 10ac.C.E 10ad.O 10ad.E 10ad.C.O 10ad.C.E \
-10ba.O 10ba.E 10ba.C.O 10ba.C.E 10bb.O 10bb.E 10bb.C.O 10bb.C.E 10bc.O 10bc.E \
-10bc.C.O 10bc.C.E 10bd.O 10bd.E 10bd.C.O 10bd.C.E 11sa.O 11sa.E 11sb.O 11sb.E \
-11se.O 11se.E 11sf.O 11sf.E 11sg.O 11sg.E 11sh.O 11sh.E 12aa.O 12aa.E \
-12aa.C.O 12aa.C.E 12ab.O 12ab.E 12ab.C.O 12ab.C.E 12ac.O 12ac.E 12ac.C.O \
-12ac.C.E 12ba.O 12ba.E 12ba.C.O 12ba.C.E 12bb.O 12bb.E 12bb.C.O 12bb.C.E \
-12bc.O 12bc.E 12bc.C.O 12bc.C.E 12ma.O 12ma.E 12mb.O 12mb.E 12mc.O 12mc.E \
-12md.O 12md.E 13a.O 13a.E 13b.O 13b.E 13ba.O 13ba.E 13ba.C.O 13ba.C.E 13bb.O \
-13bb.E 13bb.C.O 13bb.C.E 13bc.O 13bc.E 13bc.C.O 13bc.C.E 13bd.O 13bd.E \
-13bd.C.O 13bd.C.E 13be.O 13be.E 13be.C.O 13be.C.E 13bf.O 13bf.E 13bf.C.O \
-13bf.C.E 14a.O 14a.E 14a.C.O 14a.C.E 14b.O 14b.E 14b.C.O 14b.C.E 14c.O 14c.E \
-14c.C.O 14c.C.E 14d.O 14d.E 14d.C.O 14d.C.E 14e.O 14e.E 14e.C.O 14e.C.E 14f.O \
-14f.E 14f.C.O 14f.C.E 14g.O 14g.E 14g.C.O 14g.C.E 14h.O 14h.E 14h.C.O 14h.C.E \
-14i.O 14i.E 14i.C.O 14i.C.E 14j.O 14j.E 14j.C.O 14j.C.E 14k.O 14k.E 14k.C.O \
-14k.C.E 14l.O 14l.E 14l.C.O 14l.C.E 14m.O 14m.E 14m.C.O 14m.C.E i-opt-a.O \
-i-opt-a.E i-opt-b.O i-opt-b.E ncut-a.O ncut-a.E ncut-b.O ncut-b.E margin-0.O \
-margin-0.E dbl-sp-a.O dbl-sp-a.E dbl-sp-b.O dbl-sp-b.E narrow-1.O narrow-1.E \
-col-last.O col-last.E col-02.O col-02.E col-02.C.O col-02.C.E col-2.O col-2.E \
-col-2.C.O col-2.C.E col-long.O col-long.E col-long.C.O col-long.C.E col-0.O \
-col-0.E col-0.C.O col-0.C.E col-inval.O col-inval.E col-inval.C.O \
-col-inval.C.E neg-page.O neg-page.E
-##test-files-end
-
-EXTRA_DIST = Test.pm $x-tests $(explicit) $(maint_gen)
-noinst_SCRIPTS = $x-tests
-TESTS_ENVIRONMENT = \
- CU_TEST_NAME=`basename $(abs_srcdir)`,$$tst \
- PATH="$(VG_PATH_PREFIX)`pwd`/../../src$(PATH_SEPARATOR)$$PATH"
-
-editpl = sed -e 's,@''PERL''@,$(PERL),g' -e 's,@''srcdir''@,$(srcdir),g'
-
-TESTS = $x-tests
-
-mk_script = $(srcdir)/../mk-script
-$(srcdir)/$x-tests: $(mk_script) Test.pm Makefile.am
- test '$x' = test && prog=../../src/$x || prog=$x; \
- $(PERL) -I$(srcdir) -w -- $(mk_script) $(srcdir) $$prog > $@.n
- mv $@.n $@
- chmod 755 $@
-
-MAINTAINERCLEANFILES = $x-tests $(maint_gen)
-CLEANFILES = $(run_gen)
-
-check: $(maint_gen)
-
-$(srcdir)/Makefile.am: ../Makefile.am.in Test.pm $(mk_script)
- rm -f $@ $@t
- sed -n '1,/^##test-files-begin/p' $(srcdir)/../Makefile.am.in > $@t
- tool=`echo $(subdir)|sed 's/^tests.//;s/-test//'`; \
- echo "x = $$tool" >> $@t
- $(PERL) -I$(srcdir) -w -- $(mk_script) $(srcdir) --list >> $@t
- sed -n '/^##test-files-end/,$$p' $(srcdir)/../Makefile.am.in >> $@t
- chmod -w $@t
- mv $@t $@
diff --git a/tests/pr/Makefile.in b/tests/pr/Makefile.in
deleted file mode 100644
index da0078a..0000000
--- a/tests/pr/Makefile.in
+++ /dev/null
@@ -1,868 +0,0 @@
-# Makefile.in generated by automake 1.10 from Makefile.am.
-# @configure_input@
-
-# Copyright (C) 1994, 1995, 1996, 1997, 1998, 1999, 2000, 2001, 2002,
-# 2003, 2004, 2005, 2006 Free Software Foundation, Inc.
-# This Makefile.in is free software; the Free Software Foundation
-# gives unlimited permission to copy and/or distribute it,
-# with or without modifications, as long as this notice is preserved.
-
-# This program is distributed in the hope that it will be useful,
-# but WITHOUT ANY WARRANTY, to the extent permitted by law; without
-# even the implied warranty of MERCHANTABILITY or FITNESS FOR A
-# PARTICULAR PURPOSE.
-
-@SET_MAKE@
-
-# Make coreutils tests. -*-Makefile-*-
-
-# Copyright (C) 1997, 1998, 2000, 2003, 2004, 2006 Free Software
-# Foundation, Inc.
-
-# This program is free software; you can redistribute it and/or modify
-# it under the terms of the GNU General Public License as published by
-# the Free Software Foundation; either version 2 of the License, or
-# (at your option) any later version.
-
-# This program is distributed in the hope that it will be useful,
-# but WITHOUT ANY WARRANTY; without even the implied warranty of
-# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
-# GNU General Public License for more details.
-
-# You should have received a copy of the GNU General Public License
-# along with this program; if not, write to the Free Software
-# Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA
-# 02110-1301, USA.
-
-VPATH = @srcdir@
-pkgdatadir = $(datadir)/@PACKAGE@
-pkglibdir = $(libdir)/@PACKAGE@
-pkgincludedir = $(includedir)/@PACKAGE@
-am__cd = CDPATH="$${ZSH_VERSION+.}$(PATH_SEPARATOR)" && cd
-install_sh_DATA = $(install_sh) -c -m 644
-install_sh_PROGRAM = $(install_sh) -c
-install_sh_SCRIPT = $(install_sh) -c
-INSTALL_HEADER = $(INSTALL_DATA)
-transform = $(program_transform_name)
-NORMAL_INSTALL = :
-PRE_INSTALL = :
-POST_INSTALL = :
-NORMAL_UNINSTALL = :
-PRE_UNINSTALL = :
-POST_UNINSTALL = :
-build_triplet = @build@
-host_triplet = @host@
-subdir = tests/pr
-DIST_COMMON = $(srcdir)/Makefile.am $(srcdir)/Makefile.in
-ACLOCAL_M4 = $(top_srcdir)/aclocal.m4
-am__aclocal_m4_deps = $(top_srcdir)/m4/absolute-header.m4 \
- $(top_srcdir)/m4/acl.m4 $(top_srcdir)/m4/alloca.m4 \
- $(top_srcdir)/m4/allocsa.m4 $(top_srcdir)/m4/argmatch.m4 \
- $(top_srcdir)/m4/arpa_inet_h.m4 $(top_srcdir)/m4/assert.m4 \
- $(top_srcdir)/m4/atexit.m4 $(top_srcdir)/m4/autobuild.m4 \
- $(top_srcdir)/m4/backupfile.m4 $(top_srcdir)/m4/base64.m4 \
- $(top_srcdir)/m4/bison.m4 $(top_srcdir)/m4/boottime.m4 \
- $(top_srcdir)/m4/c-strtod.m4 $(top_srcdir)/m4/calloc.m4 \
- $(top_srcdir)/m4/canon-host.m4 \
- $(top_srcdir)/m4/canonicalize.m4 \
- $(top_srcdir)/m4/chdir-long.m4 $(top_srcdir)/m4/check-decl.m4 \
- $(top_srcdir)/m4/chown.m4 $(top_srcdir)/m4/clock_time.m4 \
- $(top_srcdir)/m4/cloexec.m4 $(top_srcdir)/m4/close-stream.m4 \
- $(top_srcdir)/m4/closeout.m4 $(top_srcdir)/m4/codeset.m4 \
- $(top_srcdir)/m4/config-h.m4 $(top_srcdir)/m4/cycle-check.m4 \
- $(top_srcdir)/m4/d-ino.m4 $(top_srcdir)/m4/d-type.m4 \
- $(top_srcdir)/m4/dirfd.m4 $(top_srcdir)/m4/dirname.m4 \
- $(top_srcdir)/m4/dos.m4 $(top_srcdir)/m4/double-slash-root.m4 \
- $(top_srcdir)/m4/dup2.m4 $(top_srcdir)/m4/eealloc.m4 \
- $(top_srcdir)/m4/eoverflow.m4 $(top_srcdir)/m4/error.m4 \
- $(top_srcdir)/m4/euidaccess-stat.m4 \
- $(top_srcdir)/m4/euidaccess.m4 $(top_srcdir)/m4/exclude.m4 \
- $(top_srcdir)/m4/exitfail.m4 $(top_srcdir)/m4/extensions.m4 \
- $(top_srcdir)/m4/fchdir.m4 $(top_srcdir)/m4/fcntl-safer.m4 \
- $(top_srcdir)/m4/fcntl_h.m4 $(top_srcdir)/m4/fd-reopen.m4 \
- $(top_srcdir)/m4/file-type.m4 $(top_srcdir)/m4/fileblocks.m4 \
- $(top_srcdir)/m4/filemode.m4 $(top_srcdir)/m4/filenamecat.m4 \
- $(top_srcdir)/m4/flexmember.m4 $(top_srcdir)/m4/fnmatch.m4 \
- $(top_srcdir)/m4/fpending.m4 $(top_srcdir)/m4/fprintftime.m4 \
- $(top_srcdir)/m4/free.m4 $(top_srcdir)/m4/fstypename.m4 \
- $(top_srcdir)/m4/fsusage.m4 $(top_srcdir)/m4/ftruncate.m4 \
- $(top_srcdir)/m4/fts.m4 $(top_srcdir)/m4/getaddrinfo.m4 \
- $(top_srcdir)/m4/getcwd-abort-bug.m4 \
- $(top_srcdir)/m4/getcwd-path-max.m4 $(top_srcdir)/m4/getcwd.m4 \
- $(top_srcdir)/m4/getdate.m4 $(top_srcdir)/m4/getdelim.m4 \
- $(top_srcdir)/m4/getgroups.m4 $(top_srcdir)/m4/gethostname.m4 \
- $(top_srcdir)/m4/gethrxtime.m4 $(top_srcdir)/m4/getline.m4 \
- $(top_srcdir)/m4/getloadavg.m4 $(top_srcdir)/m4/getndelim2.m4 \
- $(top_srcdir)/m4/getopt.m4 $(top_srcdir)/m4/getpagesize.m4 \
- $(top_srcdir)/m4/getpass.m4 $(top_srcdir)/m4/gettext.m4 \
- $(top_srcdir)/m4/gettime.m4 $(top_srcdir)/m4/gettimeofday.m4 \
- $(top_srcdir)/m4/getugroups.m4 \
- $(top_srcdir)/m4/getusershell.m4 $(top_srcdir)/m4/glibc21.m4 \
- $(top_srcdir)/m4/gnulib-common.m4 \
- $(top_srcdir)/m4/gnulib-comp.m4 \
- $(top_srcdir)/m4/group-member.m4 \
- $(top_srcdir)/m4/hard-locale.m4 $(top_srcdir)/m4/hash.m4 \
- $(top_srcdir)/m4/host-os.m4 $(top_srcdir)/m4/human.m4 \
- $(top_srcdir)/m4/i-ring.m4 $(top_srcdir)/m4/iconv.m4 \
- $(top_srcdir)/m4/idcache.m4 $(top_srcdir)/m4/inet_ntop.m4 \
- $(top_srcdir)/m4/inline.m4 $(top_srcdir)/m4/intmax_t.m4 \
- $(top_srcdir)/m4/inttostr.m4 $(top_srcdir)/m4/inttypes-pri.m4 \
- $(top_srcdir)/m4/inttypes.m4 $(top_srcdir)/m4/inttypes_h.m4 \
- $(top_srcdir)/m4/isapipe.m4 $(top_srcdir)/m4/jm-macros.m4 \
- $(top_srcdir)/m4/jm-winsz1.m4 $(top_srcdir)/m4/jm-winsz2.m4 \
- $(top_srcdir)/m4/lchmod.m4 $(top_srcdir)/m4/lchown.m4 \
- $(top_srcdir)/m4/lib-check.m4 $(top_srcdir)/m4/lib-ignore.m4 \
- $(top_srcdir)/m4/lib-ld.m4 $(top_srcdir)/m4/lib-link.m4 \
- $(top_srcdir)/m4/lib-prefix.m4 $(top_srcdir)/m4/link-follow.m4 \
- $(top_srcdir)/m4/localcharset.m4 \
- $(top_srcdir)/m4/long-options.m4 \
- $(top_srcdir)/m4/longdouble.m4 $(top_srcdir)/m4/longlong.m4 \
- $(top_srcdir)/m4/ls-mntd-fs.m4 $(top_srcdir)/m4/lstat.m4 \
- $(top_srcdir)/m4/mbchar.m4 $(top_srcdir)/m4/mbiter.m4 \
- $(top_srcdir)/m4/mbrtowc.m4 $(top_srcdir)/m4/mbscasecmp.m4 \
- $(top_srcdir)/m4/mbstate_t.m4 $(top_srcdir)/m4/mbswidth.m4 \
- $(top_srcdir)/m4/md5.m4 $(top_srcdir)/m4/memcasecmp.m4 \
- $(top_srcdir)/m4/memchr.m4 $(top_srcdir)/m4/memcmp.m4 \
- $(top_srcdir)/m4/memcoll.m4 $(top_srcdir)/m4/memcpy.m4 \
- $(top_srcdir)/m4/memmove.m4 $(top_srcdir)/m4/mempcpy.m4 \
- $(top_srcdir)/m4/memrchr.m4 $(top_srcdir)/m4/memset.m4 \
- $(top_srcdir)/m4/memxfrm.m4 $(top_srcdir)/m4/mkancesdirs.m4 \
- $(top_srcdir)/m4/mkdir-p.m4 $(top_srcdir)/m4/mkdir-slash.m4 \
- $(top_srcdir)/m4/mkstemp.m4 $(top_srcdir)/m4/mktime.m4 \
- $(top_srcdir)/m4/modechange.m4 $(top_srcdir)/m4/mountlist.m4 \
- $(top_srcdir)/m4/mpsort.m4 $(top_srcdir)/m4/nanosleep.m4 \
- $(top_srcdir)/m4/netinet_in_h.m4 $(top_srcdir)/m4/nls.m4 \
- $(top_srcdir)/m4/openat.m4 $(top_srcdir)/m4/pathmax.m4 \
- $(top_srcdir)/m4/perl.m4 $(top_srcdir)/m4/physmem.m4 \
- $(top_srcdir)/m4/po.m4 $(top_srcdir)/m4/posixtm.m4 \
- $(top_srcdir)/m4/posixver.m4 $(top_srcdir)/m4/prereq.m4 \
- $(top_srcdir)/m4/progtest.m4 $(top_srcdir)/m4/putenv.m4 \
- $(top_srcdir)/m4/quote.m4 $(top_srcdir)/m4/quotearg.m4 \
- $(top_srcdir)/m4/randint.m4 $(top_srcdir)/m4/randperm.m4 \
- $(top_srcdir)/m4/randread.m4 $(top_srcdir)/m4/readlink.m4 \
- $(top_srcdir)/m4/readtokens.m4 $(top_srcdir)/m4/readutmp.m4 \
- $(top_srcdir)/m4/regex.m4 \
- $(top_srcdir)/m4/rename-dest-slash.m4 \
- $(top_srcdir)/m4/rename.m4 $(top_srcdir)/m4/rmdir-errno.m4 \
- $(top_srcdir)/m4/rmdir.m4 $(top_srcdir)/m4/root-dev-ino.m4 \
- $(top_srcdir)/m4/rpmatch.m4 $(top_srcdir)/m4/safe-read.m4 \
- $(top_srcdir)/m4/safe-write.m4 $(top_srcdir)/m4/same.m4 \
- $(top_srcdir)/m4/save-cwd.m4 $(top_srcdir)/m4/savedir.m4 \
- $(top_srcdir)/m4/savewd.m4 $(top_srcdir)/m4/setenv.m4 \
- $(top_srcdir)/m4/settime.m4 $(top_srcdir)/m4/sha1.m4 \
- $(top_srcdir)/m4/sha256.m4 $(top_srcdir)/m4/sha512.m4 \
- $(top_srcdir)/m4/sig2str.m4 $(top_srcdir)/m4/snprintf.m4 \
- $(top_srcdir)/m4/socklen.m4 $(top_srcdir)/m4/sockpfaf.m4 \
- $(top_srcdir)/m4/ssize_t.m4 $(top_srcdir)/m4/st_dm_mode.m4 \
- $(top_srcdir)/m4/stat-prog.m4 $(top_srcdir)/m4/stat-time.m4 \
- $(top_srcdir)/m4/stdarg.m4 $(top_srcdir)/m4/stdbool.m4 \
- $(top_srcdir)/m4/stdint.m4 $(top_srcdir)/m4/stdint_h.m4 \
- $(top_srcdir)/m4/stdio-safer.m4 $(top_srcdir)/m4/stdio_h.m4 \
- $(top_srcdir)/m4/stdlib-safer.m4 $(top_srcdir)/m4/stdlib_h.m4 \
- $(top_srcdir)/m4/stpcpy.m4 $(top_srcdir)/m4/strcspn.m4 \
- $(top_srcdir)/m4/strdup.m4 $(top_srcdir)/m4/strftime.m4 \
- $(top_srcdir)/m4/string_h.m4 $(top_srcdir)/m4/strndup.m4 \
- $(top_srcdir)/m4/strnlen.m4 $(top_srcdir)/m4/strnumcmp.m4 \
- $(top_srcdir)/m4/strpbrk.m4 $(top_srcdir)/m4/strtod.m4 \
- $(top_srcdir)/m4/strtoimax.m4 $(top_srcdir)/m4/strtol.m4 \
- $(top_srcdir)/m4/strtoll.m4 $(top_srcdir)/m4/strtoul.m4 \
- $(top_srcdir)/m4/strtoull.m4 $(top_srcdir)/m4/strtoumax.m4 \
- $(top_srcdir)/m4/strverscmp.m4 \
- $(top_srcdir)/m4/sys_socket_h.m4 \
- $(top_srcdir)/m4/sys_stat_h.m4 $(top_srcdir)/m4/sys_time_h.m4 \
- $(top_srcdir)/m4/tempname.m4 $(top_srcdir)/m4/time_h.m4 \
- $(top_srcdir)/m4/time_r.m4 $(top_srcdir)/m4/timespec.m4 \
- $(top_srcdir)/m4/tm_gmtoff.m4 $(top_srcdir)/m4/tzset.m4 \
- $(top_srcdir)/m4/unicodeio.m4 $(top_srcdir)/m4/unistd-safer.m4 \
- $(top_srcdir)/m4/unistd_h.m4 $(top_srcdir)/m4/unlink-busy.m4 \
- $(top_srcdir)/m4/unlinkdir.m4 $(top_srcdir)/m4/unlocked-io.m4 \
- $(top_srcdir)/m4/uptime.m4 $(top_srcdir)/m4/userspec.m4 \
- $(top_srcdir)/m4/utimbuf.m4 $(top_srcdir)/m4/utime.m4 \
- $(top_srcdir)/m4/utimecmp.m4 $(top_srcdir)/m4/utimens.m4 \
- $(top_srcdir)/m4/utimes-null.m4 $(top_srcdir)/m4/utimes.m4 \
- $(top_srcdir)/m4/vasnprintf.m4 $(top_srcdir)/m4/vasprintf.m4 \
- $(top_srcdir)/m4/wchar.m4 $(top_srcdir)/m4/wchar_t.m4 \
- $(top_srcdir)/m4/wctype.m4 $(top_srcdir)/m4/wcwidth.m4 \
- $(top_srcdir)/m4/wint_t.m4 $(top_srcdir)/m4/xalloc.m4 \
- $(top_srcdir)/m4/xfts.m4 $(top_srcdir)/m4/xgetcwd.m4 \
- $(top_srcdir)/m4/xnanosleep.m4 $(top_srcdir)/m4/xstrndup.m4 \
- $(top_srcdir)/m4/xstrtod.m4 $(top_srcdir)/m4/xstrtol.m4 \
- $(top_srcdir)/m4/yesno.m4 $(top_srcdir)/configure.ac
-am__configure_deps = $(am__aclocal_m4_deps) $(CONFIGURE_DEPENDENCIES) \
- $(ACLOCAL_M4)
-mkinstalldirs = $(install_sh) -d
-CONFIG_HEADER = $(top_builddir)/lib/config.h
-CONFIG_CLEAN_FILES =
-SCRIPTS = $(noinst_SCRIPTS)
-SOURCES =
-DIST_SOURCES =
-DISTFILES = $(DIST_COMMON) $(DIST_SOURCES) $(TEXINFOS) $(EXTRA_DIST)
-ABSOLUTE_DIRENT_H = @ABSOLUTE_DIRENT_H@
-ABSOLUTE_FCNTL_H = @ABSOLUTE_FCNTL_H@
-ABSOLUTE_INTTYPES_H = @ABSOLUTE_INTTYPES_H@
-ABSOLUTE_NETINET_IN_H = @ABSOLUTE_NETINET_IN_H@
-ABSOLUTE_STDINT_H = @ABSOLUTE_STDINT_H@
-ABSOLUTE_STDIO_H = @ABSOLUTE_STDIO_H@
-ABSOLUTE_STDLIB_H = @ABSOLUTE_STDLIB_H@
-ABSOLUTE_STRING_H = @ABSOLUTE_STRING_H@
-ABSOLUTE_SYS_SOCKET_H = @ABSOLUTE_SYS_SOCKET_H@
-ABSOLUTE_SYS_STAT_H = @ABSOLUTE_SYS_STAT_H@
-ABSOLUTE_SYS_TIME_H = @ABSOLUTE_SYS_TIME_H@
-ABSOLUTE_TIME_H = @ABSOLUTE_TIME_H@
-ABSOLUTE_UNISTD_H = @ABSOLUTE_UNISTD_H@
-ABSOLUTE_WCHAR_H = @ABSOLUTE_WCHAR_H@
-ABSOLUTE_WCTYPE_H = @ABSOLUTE_WCTYPE_H@
-ACLOCAL = @ACLOCAL@
-ALLOCA = @ALLOCA@
-ALLOCA_H = @ALLOCA_H@
-AMTAR = @AMTAR@
-ARPA_INET_H = @ARPA_INET_H@
-AUTOCONF = @AUTOCONF@
-AUTOHEADER = @AUTOHEADER@
-AUTOMAKE = @AUTOMAKE@
-AWK = @AWK@
-BITSIZEOF_PTRDIFF_T = @BITSIZEOF_PTRDIFF_T@
-BITSIZEOF_SIG_ATOMIC_T = @BITSIZEOF_SIG_ATOMIC_T@
-BITSIZEOF_SIZE_T = @BITSIZEOF_SIZE_T@
-BITSIZEOF_WCHAR_T = @BITSIZEOF_WCHAR_T@
-BITSIZEOF_WINT_T = @BITSIZEOF_WINT_T@
-CC = @CC@
-CCDEPMODE = @CCDEPMODE@
-CFLAGS = @CFLAGS@
-CPP = @CPP@
-CPPFLAGS = @CPPFLAGS@
-CYGPATH_W = @CYGPATH_W@
-DEFAULT_POSIX2_VERSION = @DEFAULT_POSIX2_VERSION@
-DEFS = @DEFS@
-DEPDIR = @DEPDIR@
-DF_PROG = @DF_PROG@
-DIRENT_H = @DIRENT_H@
-ECHO_C = @ECHO_C@
-ECHO_N = @ECHO_N@
-ECHO_T = @ECHO_T@
-EGREP = @EGREP@
-EOVERFLOW = @EOVERFLOW@
-EXEEXT = @EXEEXT@
-FCNTL_H = @FCNTL_H@
-FNMATCH_H = @FNMATCH_H@
-GETLOADAVG_LIBS = @GETLOADAVG_LIBS@
-GETOPT_H = @GETOPT_H@
-GLIBC21 = @GLIBC21@
-GMSGFMT = @GMSGFMT@
-GMSGFMT_015 = @GMSGFMT_015@
-GNULIB_CHOWN = @GNULIB_CHOWN@
-GNULIB_DUP2 = @GNULIB_DUP2@
-GNULIB_FCHDIR = @GNULIB_FCHDIR@
-GNULIB_FPRINTF_POSIX = @GNULIB_FPRINTF_POSIX@
-GNULIB_FTRUNCATE = @GNULIB_FTRUNCATE@
-GNULIB_GETCWD = @GNULIB_GETCWD@
-GNULIB_GETLOGIN_R = @GNULIB_GETLOGIN_R@
-GNULIB_GETSUBOPT = @GNULIB_GETSUBOPT@
-GNULIB_IMAXABS = @GNULIB_IMAXABS@
-GNULIB_IMAXDIV = @GNULIB_IMAXDIV@
-GNULIB_MBSCASECMP = @GNULIB_MBSCASECMP@
-GNULIB_MBSCASESTR = @GNULIB_MBSCASESTR@
-GNULIB_MBSCHR = @GNULIB_MBSCHR@
-GNULIB_MBSCSPN = @GNULIB_MBSCSPN@
-GNULIB_MBSLEN = @GNULIB_MBSLEN@
-GNULIB_MBSNCASECMP = @GNULIB_MBSNCASECMP@
-GNULIB_MBSPBRK = @GNULIB_MBSPBRK@
-GNULIB_MBSPCASECMP = @GNULIB_MBSPCASECMP@
-GNULIB_MBSRCHR = @GNULIB_MBSRCHR@
-GNULIB_MBSSEP = @GNULIB_MBSSEP@
-GNULIB_MBSSPN = @GNULIB_MBSSPN@
-GNULIB_MBSSTR = @GNULIB_MBSSTR@
-GNULIB_MBSTOK_R = @GNULIB_MBSTOK_R@
-GNULIB_MEMMEM = @GNULIB_MEMMEM@
-GNULIB_MEMPCPY = @GNULIB_MEMPCPY@
-GNULIB_MEMRCHR = @GNULIB_MEMRCHR@
-GNULIB_MKDTEMP = @GNULIB_MKDTEMP@
-GNULIB_MKSTEMP = @GNULIB_MKSTEMP@
-GNULIB_PRINTF_POSIX = @GNULIB_PRINTF_POSIX@
-GNULIB_READLINK = @GNULIB_READLINK@
-GNULIB_SNPRINTF = @GNULIB_SNPRINTF@
-GNULIB_SPRINTF_POSIX = @GNULIB_SPRINTF_POSIX@
-GNULIB_STPCPY = @GNULIB_STPCPY@
-GNULIB_STPNCPY = @GNULIB_STPNCPY@
-GNULIB_STRCASESTR = @GNULIB_STRCASESTR@
-GNULIB_STRCHRNUL = @GNULIB_STRCHRNUL@
-GNULIB_STRDUP = @GNULIB_STRDUP@
-GNULIB_STRNDUP = @GNULIB_STRNDUP@
-GNULIB_STRNLEN = @GNULIB_STRNLEN@
-GNULIB_STRPBRK = @GNULIB_STRPBRK@
-GNULIB_STRSEP = @GNULIB_STRSEP@
-GNULIB_STRTOIMAX = @GNULIB_STRTOIMAX@
-GNULIB_STRTOK_R = @GNULIB_STRTOK_R@
-GNULIB_STRTOUMAX = @GNULIB_STRTOUMAX@
-GNULIB_VFPRINTF_POSIX = @GNULIB_VFPRINTF_POSIX@
-GNULIB_VPRINTF_POSIX = @GNULIB_VPRINTF_POSIX@
-GNULIB_VSNPRINTF = @GNULIB_VSNPRINTF@
-GNULIB_VSPRINTF_POSIX = @GNULIB_VSPRINTF_POSIX@
-GNU_PACKAGE = @GNU_PACKAGE@
-GREP = @GREP@
-HAVE_DECL_GETLOGIN_R = @HAVE_DECL_GETLOGIN_R@
-HAVE_DECL_IMAXABS = @HAVE_DECL_IMAXABS@
-HAVE_DECL_IMAXDIV = @HAVE_DECL_IMAXDIV@
-HAVE_DECL_MEMMEM = @HAVE_DECL_MEMMEM@
-HAVE_DECL_MEMRCHR = @HAVE_DECL_MEMRCHR@
-HAVE_DECL_SNPRINTF = @HAVE_DECL_SNPRINTF@
-HAVE_DECL_STRDUP = @HAVE_DECL_STRDUP@
-HAVE_DECL_STRNCASECMP = @HAVE_DECL_STRNCASECMP@
-HAVE_DECL_STRNDUP = @HAVE_DECL_STRNDUP@
-HAVE_DECL_STRNLEN = @HAVE_DECL_STRNLEN@
-HAVE_DECL_STRTOIMAX = @HAVE_DECL_STRTOIMAX@
-HAVE_DECL_STRTOK_R = @HAVE_DECL_STRTOK_R@
-HAVE_DECL_STRTOUMAX = @HAVE_DECL_STRTOUMAX@
-HAVE_DECL_VSNPRINTF = @HAVE_DECL_VSNPRINTF@
-HAVE_DUP2 = @HAVE_DUP2@
-HAVE_FTRUNCATE = @HAVE_FTRUNCATE@
-HAVE_GETSUBOPT = @HAVE_GETSUBOPT@
-HAVE_INTTYPES_H = @HAVE_INTTYPES_H@
-HAVE_LONG_LONG_INT = @HAVE_LONG_LONG_INT@
-HAVE_MEMPCPY = @HAVE_MEMPCPY@
-HAVE_MKDTEMP = @HAVE_MKDTEMP@
-HAVE_NETINET_IN_H = @HAVE_NETINET_IN_H@
-HAVE_READLINK = @HAVE_READLINK@
-HAVE_SIGNED_SIG_ATOMIC_T = @HAVE_SIGNED_SIG_ATOMIC_T@
-HAVE_SIGNED_WCHAR_T = @HAVE_SIGNED_WCHAR_T@
-HAVE_SIGNED_WINT_T = @HAVE_SIGNED_WINT_T@
-HAVE_STDINT_H = @HAVE_STDINT_H@
-HAVE_STPCPY = @HAVE_STPCPY@
-HAVE_STPNCPY = @HAVE_STPNCPY@
-HAVE_STRCASECMP = @HAVE_STRCASECMP@
-HAVE_STRCASESTR = @HAVE_STRCASESTR@
-HAVE_STRCHRNUL = @HAVE_STRCHRNUL@
-HAVE_STRNDUP = @HAVE_STRNDUP@
-HAVE_STRPBRK = @HAVE_STRPBRK@
-HAVE_STRSEP = @HAVE_STRSEP@
-HAVE_STRUCT_TIMEVAL = @HAVE_STRUCT_TIMEVAL@
-HAVE_SYS_BITYPES_H = @HAVE_SYS_BITYPES_H@
-HAVE_SYS_INTTYPES_H = @HAVE_SYS_INTTYPES_H@
-HAVE_SYS_SOCKET_H = @HAVE_SYS_SOCKET_H@
-HAVE_SYS_TIME_H = @HAVE_SYS_TIME_H@
-HAVE_SYS_TYPES_H = @HAVE_SYS_TYPES_H@
-HAVE_UNISTD_H = @HAVE_UNISTD_H@
-HAVE_UNSIGNED_LONG_LONG_INT = @HAVE_UNSIGNED_LONG_LONG_INT@
-HAVE_WCTYPE_H = @HAVE_WCTYPE_H@
-HAVE_WINSOCK2_H = @HAVE_WINSOCK2_H@
-HAVE_WINT_T = @HAVE_WINT_T@
-HAVE_WS2TCPIP_H = @HAVE_WS2TCPIP_H@
-HAVE__BOOL = @HAVE__BOOL@
-HELP2MAN = @HELP2MAN@
-INSTALL = @INSTALL@
-INSTALL_DATA = @INSTALL_DATA@
-INSTALL_PROGRAM = @INSTALL_PROGRAM@
-INSTALL_SCRIPT = @INSTALL_SCRIPT@
-INSTALL_STRIP_PROGRAM = @INSTALL_STRIP_PROGRAM@
-INTLLIBS = @INTLLIBS@
-INTL_MACOSX_LIBS = @INTL_MACOSX_LIBS@
-INTTYPES_H = @INTTYPES_H@
-KMEM_GROUP = @KMEM_GROUP@
-LDFLAGS = @LDFLAGS@
-LIBCOREUTILS_LIBDEPS = @LIBCOREUTILS_LIBDEPS@
-LIBCOREUTILS_LTLIBDEPS = @LIBCOREUTILS_LTLIBDEPS@
-LIBICONV = @LIBICONV@
-LIBINTL = @LIBINTL@
-LIBOBJS = @LIBOBJS@
-LIBS = @LIBS@
-LIB_ACL = @LIB_ACL@
-LIB_ACL_TRIVIAL = @LIB_ACL_TRIVIAL@
-LIB_CLOCK_GETTIME = @LIB_CLOCK_GETTIME@
-LIB_CRYPT = @LIB_CRYPT@
-LIB_EACCESS = @LIB_EACCESS@
-LIB_FDATASYNC = @LIB_FDATASYNC@
-LIB_GETHRXTIME = @LIB_GETHRXTIME@
-LIB_NANOSLEEP = @LIB_NANOSLEEP@
-LN_S = @LN_S@
-LTLIBICONV = @LTLIBICONV@
-LTLIBINTL = @LTLIBINTL@
-LTLIBOBJS = @LTLIBOBJS@
-MAKEINFO = @MAKEINFO@
-MAN = @MAN@
-MKDIR_P = @MKDIR_P@
-MSGFMT = @MSGFMT@
-MSGFMT_015 = @MSGFMT_015@
-MSGMERGE = @MSGMERGE@
-NEED_SETGID = @NEED_SETGID@
-NETINET_IN_H = @NETINET_IN_H@
-OBJEXT = @OBJEXT@
-OPTIONAL_BIN_PROGS = @OPTIONAL_BIN_PROGS@
-PACKAGE = @PACKAGE@
-PACKAGE_BUGREPORT = @PACKAGE_BUGREPORT@
-PACKAGE_NAME = @PACKAGE_NAME@
-PACKAGE_STRING = @PACKAGE_STRING@
-PACKAGE_TARNAME = @PACKAGE_TARNAME@
-PACKAGE_VERSION = @PACKAGE_VERSION@
-PATH_SEPARATOR = @PATH_SEPARATOR@
-PERL = @PERL@
-POSUB = @POSUB@
-POW_LIB = @POW_LIB@
-PRIPTR_PREFIX = @PRIPTR_PREFIX@
-PRI_MACROS_BROKEN = @PRI_MACROS_BROKEN@
-PTRDIFF_T_SUFFIX = @PTRDIFF_T_SUFFIX@
-RANLIB = @RANLIB@
-REPLACE_CHOWN = @REPLACE_CHOWN@
-REPLACE_FCHDIR = @REPLACE_FCHDIR@
-REPLACE_FPRINTF = @REPLACE_FPRINTF@
-REPLACE_GETCWD = @REPLACE_GETCWD@
-REPLACE_GETTIMEOFDAY = @REPLACE_GETTIMEOFDAY@
-REPLACE_LOCALTIME_R = @REPLACE_LOCALTIME_R@
-REPLACE_MKSTEMP = @REPLACE_MKSTEMP@
-REPLACE_NANOSLEEP = @REPLACE_NANOSLEEP@
-REPLACE_PRINTF = @REPLACE_PRINTF@
-REPLACE_SNPRINTF = @REPLACE_SNPRINTF@
-REPLACE_SPRINTF = @REPLACE_SPRINTF@
-REPLACE_STRPTIME = @REPLACE_STRPTIME@
-REPLACE_TIMEGM = @REPLACE_TIMEGM@
-REPLACE_VFPRINTF = @REPLACE_VFPRINTF@
-REPLACE_VPRINTF = @REPLACE_VPRINTF@
-REPLACE_VSNPRINTF = @REPLACE_VSNPRINTF@
-REPLACE_VSPRINTF = @REPLACE_VSPRINTF@
-SEQ_LIBM = @SEQ_LIBM@
-SET_MAKE = @SET_MAKE@
-SHELL = @SHELL@
-SIG_ATOMIC_T_SUFFIX = @SIG_ATOMIC_T_SUFFIX@
-SIZE_T_SUFFIX = @SIZE_T_SUFFIX@
-STDBOOL_H = @STDBOOL_H@
-STDINT_H = @STDINT_H@
-STRIP = @STRIP@
-SYS_SOCKET_H = @SYS_SOCKET_H@
-SYS_STAT_H = @SYS_STAT_H@
-SYS_TIME_H = @SYS_TIME_H@
-SYS_TIME_H_DEFINES_STRUCT_TIMESPEC = @SYS_TIME_H_DEFINES_STRUCT_TIMESPEC@
-TIME_H_DEFINES_STRUCT_TIMESPEC = @TIME_H_DEFINES_STRUCT_TIMESPEC@
-U = @U@
-USE_NLS = @USE_NLS@
-VERSION = @VERSION@
-WCHAR_H = @WCHAR_H@
-WCHAR_T_SUFFIX = @WCHAR_T_SUFFIX@
-WCTYPE_H = @WCTYPE_H@
-WINT_T_SUFFIX = @WINT_T_SUFFIX@
-XGETTEXT = @XGETTEXT@
-XGETTEXT_015 = @XGETTEXT_015@
-YACC = @YACC@
-YFLAGS = @YFLAGS@
-abs_builddir = @abs_builddir@
-abs_srcdir = @abs_srcdir@
-abs_top_builddir = @abs_top_builddir@
-abs_top_srcdir = @abs_top_srcdir@
-ac_ct_CC = @ac_ct_CC@
-am__include = @am__include@
-am__leading_dot = @am__leading_dot@
-am__quote = @am__quote@
-am__tar = @am__tar@
-am__untar = @am__untar@
-bindir = @bindir@
-build = @build@
-build_alias = @build_alias@
-build_cpu = @build_cpu@
-build_os = @build_os@
-build_vendor = @build_vendor@
-builddir = @builddir@
-datadir = @datadir@
-datarootdir = @datarootdir@
-docdir = @docdir@
-dvidir = @dvidir@
-exec_prefix = @exec_prefix@
-gl_LIBOBJS = @gl_LIBOBJS@
-gl_LTLIBOBJS = @gl_LTLIBOBJS@
-host = @host@
-host_alias = @host_alias@
-host_cpu = @host_cpu@
-host_os = @host_os@
-host_vendor = @host_vendor@
-htmldir = @htmldir@
-includedir = @includedir@
-infodir = @infodir@
-install_sh = @install_sh@
-libdir = @libdir@
-libexecdir = @libexecdir@
-localedir = @localedir@
-localstatedir = @localstatedir@
-mandir = @mandir@
-mkdir_p = @mkdir_p@
-oldincludedir = @oldincludedir@
-pdfdir = @pdfdir@
-prefix = @prefix@
-program_transform_name = @program_transform_name@
-psdir = @psdir@
-sbindir = @sbindir@
-sharedstatedir = @sharedstatedir@
-srcdir = @srcdir@
-sysconfdir = @sysconfdir@
-target_alias = @target_alias@
-top_builddir = @top_builddir@
-top_srcdir = @top_srcdir@
-x = pr
-explicit = 0F 0FF 0FFnt 0FFt 0FnFnt 0FnFt 0Fnt 0Ft 2-S_f-t_notab 2-Sf-t_notab \
-2f-t_notab 2s_f-t_notab 2s_w60f-t_nota 2sf-t_notab 2sw60f-t_notab \
-2w60f-t_notab 3-0F 3-5l17f-t 3-FF 3a2l17-FF 3a3f-0F 3a3l15-t 3a3l8f-t \
-3b2l17-FF 3b3f-0F 3b3f-0FF 3b3f-FF 3b3l15-t 3b3l8f-t 3f-0F 3f-FF 3l17f-t \
-3l24-t 3ml17f-t 3ml24-FF 3ml24-t 3ml24-t-FF 4-7l24-FF 4l24-FF FF FFn FFtn \
-FnFn Ja3l17f-lm Jb3l17f-lm Jml17f-lm-lo W-72l17f-ll W20l17f-ll W26l17f-ll \
-W27l17f-ll W28l17f-ll W35Ja3l17f-lm W35Jb3l17f-lm W35Jml17f-lmlo W35a3l17f-lm \
-W35b3l17f-lm W35ml17f-lm-lo W72Jl17f-ll a2l15-FF a2l17-FF a3-0F a3f-0F \
-a3f-0FF a3f-FF a3l15-t a3l17f-lm a3l8f-t b2l15-FF b2l17-FF b3-0F b3f-0F \
-b3f-0FF b3f-FF b3l15-t b3l17f-lm b3l8f-t l17f-t l24-FF l24-t loli ml17f-0F \
-ml17f-lm-lo ml17f-t ml17f-t-0F ml20-FF-t ml24-FF ml24-t ml24-t-FF \
-n+2-5l17f-0FF n+2l17f-0FF n+2l17f-bl n+3-7l24-FF n+3l17f-0FF n+3l17f-bl \
-n+3ml13f-bl-FF n+3ml17f-bl-tn n+3ml17f-tn-bl n+4-8a2l17-FF n+4b2l10f-0FF \
-n+5-8b3l10f-FF n+5a3l6f-0FF n+6a2l17-FF n+6b3l6f-FF n+7l24-FF n+8l20-FF \
-nJml17f-lmlmlo nJml17f-lmlolm nN1+3l17f-bl nN15l17f-bl nSml13-bl-FF \
-nSml13-t-t-FF nSml13-t-tFFFF nSml17-bl-FF nSml17-t-t-FF nSml17-t-tFFFF \
-nl17f-bl o3Jml17f-lm-lo o3a3Sl17f-tn o3a3Snl17f-tn o3a3l17f-tn o3b3Sl17f-tn \
-o3b3Snl17f-tn o3b3l17f-tn o3mSl17f-bl-tn o3mSnl17fbltn o3ml17f-bl-tn t-0FF \
-t-FF t-bl t-t tFFn tFFt tFFt-bl tFFt-ll tFFt-lm tFnFt t_notab t_tab t_tab_ \
-ta3-0FF ta3-FF tb3-0FF tb3-FF tn tn2e5o3-t_tab tn2e8-t_tab tn2e8o3-t_tab \
-tn_2e8-t_tab tn_2e8S-t_tab tne8-t_tab tne8o3-t_tab tt-0FF tt-FF tt-bl tt-t \
-tta3-0FF tta3-FF ttb3-0FF ttb3-FF w72l17f-ll
-
-maint_gen = i-opt-a.I i-opt-a.X i-opt-b.I i-opt-b.X ncut-a.I ncut-a.X \
-ncut-b.I ncut-b.X margin-0.I margin-0.X dbl-sp-a.I dbl-sp-a.X dbl-sp-b.I \
-dbl-sp-b.X narrow-1.I narrow-1.X col-last.I col-last.X col-02.I col-02.X \
-col-02.C.I col-02.C.X col-2.I col-2.X col-2.C.I col-2.C.X col-long.I \
-col-long.X col-long.C.I col-long.C.X col-0.I col-0.X col-0.C.I col-0.C.X \
-col-inval.I col-inval.X col-inval.C.I col-inval.C.X neg-page.I neg-page.X
-
-run_gen = 1a.O 1a.E 1b.O 1b.E 1c.O 1c.E 1d.O 1d.E 1e.O 1e.E 1e.C.O 1e.C.E \
-1f.O 1f.E 1f.C.O 1f.C.E 1g.O 1g.E 1g.C.O 1g.C.E 1h.O 1h.E 1h.C.O 1h.C.E 1i.O \
-1i.E 1i.C.O 1i.C.E 1j.O 1j.E 1j.C.O 1j.C.E 1k.O 1k.E 1k.C.O 1k.C.E 1l.O 1l.E \
-1l.C.O 1l.C.E 2a.O 2a.E 2b.O 2b.E 2c.O 2c.E 2c.C.O 2c.C.E 2d.O 2d.E 2d.C.O \
-2d.C.E 2e.O 2e.E 2e.C.O 2e.C.E 2f.O 2f.E 2f.C.O 2f.C.E 2g.O 2g.E 2g.C.O \
-2g.C.E 2h.O 2h.E 2h.C.O 2h.C.E 2i.O 2i.E 2i.C.O 2i.C.E 2j.O 2j.E 2j.C.O \
-2j.C.E 3a.O 3a.E 3b.O 3b.E 3c.O 3c.E 3d.O 3d.E 3e.O 3e.E 3e.C.O 3e.C.E 3f.O \
-3f.E 3f.C.O 3f.C.E 3g.O 3g.E 3g.C.O 3g.C.E 3h.O 3h.E 3h.C.O 3h.C.E 3i.O 3i.E \
-3i.C.O 3i.C.E 3j.O 3j.E 3j.C.O 3j.C.E 3k.O 3k.E 3k.C.O 3k.C.E 3l.O 3l.E \
-3l.C.O 3l.C.E 3m.O 3m.E 3m.C.O 3m.C.E 3la.O 3la.E 3lb.O 3lb.E 3lc.O 3lc.E \
-3ld.O 3ld.E 3le.O 3le.E 3lf.O 3lf.E 3aa.O 3aa.E 3aa.C.O 3aa.C.E 3ab.O 3ab.E \
-3ab.C.O 3ab.C.E 3ac.O 3ac.E 3ac.C.O 3ac.C.E 3ad.O 3ad.E 3ad.C.O 3ad.C.E 3ae.O \
-3ae.E 3ae.C.O 3ae.C.E 3af.O 3af.E 3af.C.O 3af.C.E 3ag.O 3ag.E 3ag.C.O 3ag.C.E \
-3ah.O 3ah.E 3ah.C.O 3ah.C.E 3ai.O 3ai.E 3ai.C.O 3ai.C.E 3aj.O 3aj.E 3aj.C.O \
-3aj.C.E 3ak.O 3ak.E 3ak.C.O 3ak.C.E 3ba.O 3ba.E 3ba.C.O 3ba.C.E 3bb.O 3bb.E \
-3bb.C.O 3bb.C.E 3bc.O 3bc.E 3bc.C.O 3bc.C.E 3bd.O 3bd.E 3bd.C.O 3bd.C.E 3be.O \
-3be.E 3be.C.O 3be.C.E 3bf.O 3bf.E 3bf.C.O 3bf.C.E 3bg.O 3bg.E 3bg.C.O 3bg.C.E \
-3bh.O 3bh.E 3bh.C.O 3bh.C.E 3bi.O 3bi.E 3bi.C.O 3bi.C.E 3bj.O 3bj.E 3bj.C.O \
-3bj.C.E 3bk.O 3bk.E 3bk.C.O 3bk.C.E 3Pa.O 3Pa.E 3Pb.O 3Pb.E 3Pc.O 3Pc.E 3Pd.O \
-3Pd.E 3Pe.O 3Pe.E 3Pf.O 3Pf.E 3Pg.O 3Pg.E 3Paa.O 3Paa.E 3Paa.C.O 3Paa.C.E \
-3Pab.O 3Pab.E 3Pab.C.O 3Pab.C.E 3Pac.O 3Pac.E 3Pac.C.O 3Pac.C.E 3Pad.O 3Pad.E \
-3Pad.C.O 3Pad.C.E 3Pae.O 3Pae.E 3Pae.C.O 3Pae.C.E 3Paf.O 3Paf.E 3Paf.C.O \
-3Paf.C.E 3Pba.O 3Pba.E 3Pba.C.O 3Pba.C.E 3Pbb.O 3Pbb.E 3Pbb.C.O 3Pbb.C.E \
-3Pbc.O 3Pbc.E 3Pbc.C.O 3Pbc.C.E 3Pbd.O 3Pbd.E 3Pbd.C.O 3Pbd.C.E 3Pbe.O 3Pbe.E \
-3Pbe.C.O 3Pbe.C.E 3Pbf.O 3Pbf.E 3Pbf.C.O 3Pbf.C.E 4a.O 4a.E 4b.O 4b.E 4c.O \
-4c.E 4d.O 4d.E 4e.O 4e.E 4f.O 4f.E 4f.C.O 4f.C.E 4g.O 4g.E 4g.C.O 4g.C.E 4h.O \
-4h.E 4h.C.O 4h.C.E 4i.O 4i.E 4i.C.O 4i.C.E 4j.O 4j.E 4j.C.O 4j.C.E 4k.O 4k.E \
-4k.C.O 4k.C.E 4l.O 4l.E 4l.C.O 4l.C.E 4m.O 4m.E 4m.C.O 4m.C.E 5a.O 5a.E 5b.O \
-5b.E 5c.O 5c.E 5d.O 5d.E 5e.O 5e.E 5f.O 5f.E 5g.O 5g.E 5ma.O 5ma.E 5mb.O \
-5mb.E 5mc.O 5mc.E 5md.O 5md.E 5Pma.O 5Pma.E 5Pmb.O 5Pmb.E 5Pmc.O 5Pmc.E 6a.O \
-6a.E 6b.O 6b.E 6c.O 6c.E 6d.O 6d.E 6e.O 6e.E 6f.O 6f.E 6g.O 6g.E 6aa.O 6aa.E \
-6aa.C.O 6aa.C.E 6ab.O 6ab.E 6ab.C.O 6ab.C.E 6ac.O 6ac.E 6ac.C.O 6ac.C.E 6ba.O \
-6ba.E 6ba.C.O 6ba.C.E 6bb.O 6bb.E 6bb.C.O 6bb.C.E 6bc.O 6bc.E 6bc.C.O 6bc.C.E \
-7a.O 7a.E 7b.O 7b.E 7c.O 7c.E 7d.O 7d.E 7e.O 7e.E 7f.O 7f.E 7g.O 7g.E 7aa.O \
-7aa.E 7aa.C.O 7aa.C.E 7ab.O 7ab.E 7ab.C.O 7ab.C.E 7ac.O 7ac.E 7ac.C.O 7ac.C.E \
-7ba.O 7ba.E 7ba.C.O 7ba.C.E 7bb.O 7bb.E 7bb.C.O 7bb.C.E 7bc.O 7bc.E 7bc.C.O \
-7bc.C.E 9a.O 9a.E 9b.O 9b.E 9Pa.O 9Pa.E 9Pb.O 9Pb.E 9Pc.O 9Pc.E 9Pe.O 9Pe.E \
-9Pf.O 9Pf.E 9Pg.O 9Pg.E 9Ph.O 9Ph.E 9Pi.O 9Pi.E 9Pj.O 9Pj.E 9Pk.O 9Pk.E 9Pl.O \
-9Pl.E 9Pm.O 9Pm.E 9Pn.O 9Pn.E 9Po.O 9Po.E 9Pp.O 9Pp.E 9Pq.O 9Pq.E 9Pr.O 9Pr.E \
-9Ps.O 9Ps.E 9Pt.O 9Pt.E 9Paa.O 9Paa.E 9Paa.C.O 9Paa.C.E 9Pab.O 9Pab.E \
-9Pab.C.O 9Pab.C.E 9Pac.O 9Pac.E 9Pac.C.O 9Pac.C.E 9Pad.O 9Pad.E 9Pad.C.O \
-9Pad.C.E 9Pae.O 9Pae.E 9Pae.C.O 9Pae.C.E 9Paf.O 9Paf.E 9Paf.C.O 9Paf.C.E \
-9Pag.O 9Pag.E 9Pag.C.O 9Pag.C.E 9Pah.O 9Pah.E 9Pah.C.O 9Pah.C.E 9Pai.O 9Pai.E \
-9Pai.C.O 9Pai.C.E 9Paj.O 9Paj.E 9Paj.C.O 9Paj.C.E 9Pak.O 9Pak.E 9Pak.C.O \
-9Pak.C.E 9Pba.O 9Pba.E 9Pba.C.O 9Pba.C.E 9Pbb.O 9Pbb.E 9Pbb.C.O 9Pbb.C.E \
-9Pbc.O 9Pbc.E 9Pbc.C.O 9Pbc.C.E 9Pbd.O 9Pbd.E 9Pbd.C.O 9Pbd.C.E 9Pbe.O 9Pbe.E \
-9Pbe.C.O 9Pbe.C.E 9Pbf.O 9Pbf.E 9Pbf.C.O 9Pbf.C.E 9Pbg.O 9Pbg.E 9Pbg.C.O \
-9Pbg.C.E 9Pbh.O 9Pbh.E 9Pbh.C.O 9Pbh.C.E 9Pbi.O 9Pbi.E 9Pbi.C.O 9Pbi.C.E \
-9Pbj.O 9Pbj.E 9Pbj.C.O 9Pbj.C.E 9Pbk.O 9Pbk.E 9Pbk.C.O 9Pbk.C.E 9Pma.O 9Pma.E \
-9Pmb.O 9Pmb.E 9Pmc.O 9Pmc.E 10wa.O 10wa.E 10wb.O 10wb.E 10wc.O 10wc.E 10wd.O \
-10wd.E 10we.O 10we.E 10wf.O 10wf.E 10wg.O 10wg.E 10wh.O 10wh.E 10ma.O 10ma.E \
-10mb.O 10mb.E 10mc.O 10mc.E 10md.O 10md.E 10me.O 10me.E 10mf.O 10mf.E 10mg.O \
-10mg.E 10mh.O 10mh.E 10aa.O 10aa.E 10aa.C.O 10aa.C.E 10ab.O 10ab.E 10ab.C.O \
-10ab.C.E 10ac.O 10ac.E 10ac.C.O 10ac.C.E 10ad.O 10ad.E 10ad.C.O 10ad.C.E \
-10ba.O 10ba.E 10ba.C.O 10ba.C.E 10bb.O 10bb.E 10bb.C.O 10bb.C.E 10bc.O 10bc.E \
-10bc.C.O 10bc.C.E 10bd.O 10bd.E 10bd.C.O 10bd.C.E 11sa.O 11sa.E 11sb.O 11sb.E \
-11se.O 11se.E 11sf.O 11sf.E 11sg.O 11sg.E 11sh.O 11sh.E 12aa.O 12aa.E \
-12aa.C.O 12aa.C.E 12ab.O 12ab.E 12ab.C.O 12ab.C.E 12ac.O 12ac.E 12ac.C.O \
-12ac.C.E 12ba.O 12ba.E 12ba.C.O 12ba.C.E 12bb.O 12bb.E 12bb.C.O 12bb.C.E \
-12bc.O 12bc.E 12bc.C.O 12bc.C.E 12ma.O 12ma.E 12mb.O 12mb.E 12mc.O 12mc.E \
-12md.O 12md.E 13a.O 13a.E 13b.O 13b.E 13ba.O 13ba.E 13ba.C.O 13ba.C.E 13bb.O \
-13bb.E 13bb.C.O 13bb.C.E 13bc.O 13bc.E 13bc.C.O 13bc.C.E 13bd.O 13bd.E \
-13bd.C.O 13bd.C.E 13be.O 13be.E 13be.C.O 13be.C.E 13bf.O 13bf.E 13bf.C.O \
-13bf.C.E 14a.O 14a.E 14a.C.O 14a.C.E 14b.O 14b.E 14b.C.O 14b.C.E 14c.O 14c.E \
-14c.C.O 14c.C.E 14d.O 14d.E 14d.C.O 14d.C.E 14e.O 14e.E 14e.C.O 14e.C.E 14f.O \
-14f.E 14f.C.O 14f.C.E 14g.O 14g.E 14g.C.O 14g.C.E 14h.O 14h.E 14h.C.O 14h.C.E \
-14i.O 14i.E 14i.C.O 14i.C.E 14j.O 14j.E 14j.C.O 14j.C.E 14k.O 14k.E 14k.C.O \
-14k.C.E 14l.O 14l.E 14l.C.O 14l.C.E 14m.O 14m.E 14m.C.O 14m.C.E i-opt-a.O \
-i-opt-a.E i-opt-b.O i-opt-b.E ncut-a.O ncut-a.E ncut-b.O ncut-b.E margin-0.O \
-margin-0.E dbl-sp-a.O dbl-sp-a.E dbl-sp-b.O dbl-sp-b.E narrow-1.O narrow-1.E \
-col-last.O col-last.E col-02.O col-02.E col-02.C.O col-02.C.E col-2.O col-2.E \
-col-2.C.O col-2.C.E col-long.O col-long.E col-long.C.O col-long.C.E col-0.O \
-col-0.E col-0.C.O col-0.C.E col-inval.O col-inval.E col-inval.C.O \
-col-inval.C.E neg-page.O neg-page.E
-
-EXTRA_DIST = Test.pm $x-tests $(explicit) $(maint_gen)
-noinst_SCRIPTS = $x-tests
-TESTS_ENVIRONMENT = \
- CU_TEST_NAME=`basename $(abs_srcdir)`,$$tst \
- PATH="$(VG_PATH_PREFIX)`pwd`/../../src$(PATH_SEPARATOR)$$PATH"
-
-editpl = sed -e 's,@''PERL''@,$(PERL),g' -e 's,@''srcdir''@,$(srcdir),g'
-TESTS = $x-tests
-mk_script = $(srcdir)/../mk-script
-MAINTAINERCLEANFILES = $x-tests $(maint_gen)
-CLEANFILES = $(run_gen)
-all: all-am
-
-.SUFFIXES:
-$(srcdir)/Makefile.in: $(srcdir)/Makefile.am $(am__configure_deps)
- @for dep in $?; do \
- case '$(am__configure_deps)' in \
- *$$dep*) \
- cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh \
- && exit 0; \
- exit 1;; \
- esac; \
- done; \
- echo ' cd $(top_srcdir) && $(AUTOMAKE) --gnu tests/pr/Makefile'; \
- cd $(top_srcdir) && \
- $(AUTOMAKE) --gnu tests/pr/Makefile
-.PRECIOUS: Makefile
-Makefile: $(srcdir)/Makefile.in $(top_builddir)/config.status
- @case '$?' in \
- *config.status*) \
- cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh;; \
- *) \
- echo ' cd $(top_builddir) && $(SHELL) ./config.status $(subdir)/$@ $(am__depfiles_maybe)'; \
- cd $(top_builddir) && $(SHELL) ./config.status $(subdir)/$@ $(am__depfiles_maybe);; \
- esac;
-
-$(top_builddir)/config.status: $(top_srcdir)/configure $(CONFIG_STATUS_DEPENDENCIES)
- cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh
-
-$(top_srcdir)/configure: $(am__configure_deps)
- cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh
-$(ACLOCAL_M4): $(am__aclocal_m4_deps)
- cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh
-tags: TAGS
-TAGS:
-
-ctags: CTAGS
-CTAGS:
-
-
-check-TESTS: $(TESTS)
- @failed=0; all=0; xfail=0; xpass=0; skip=0; ws='[ ]'; \
- srcdir=$(srcdir); export srcdir; \
- list=' $(TESTS) '; \
- if test -n "$$list"; then \
- for tst in $$list; do \
- if test -f ./$$tst; then dir=./; \
- elif test -f $$tst; then dir=; \
- else dir="$(srcdir)/"; fi; \
- if $(TESTS_ENVIRONMENT) $${dir}$$tst; then \
- all=`expr $$all + 1`; \
- case " $(XFAIL_TESTS) " in \
- *$$ws$$tst$$ws*) \
- xpass=`expr $$xpass + 1`; \
- failed=`expr $$failed + 1`; \
- echo "XPASS: $$tst"; \
- ;; \
- *) \
- echo "PASS: $$tst"; \
- ;; \
- esac; \
- elif test $$? -ne 77; then \
- all=`expr $$all + 1`; \
- case " $(XFAIL_TESTS) " in \
- *$$ws$$tst$$ws*) \
- xfail=`expr $$xfail + 1`; \
- echo "XFAIL: $$tst"; \
- ;; \
- *) \
- failed=`expr $$failed + 1`; \
- echo "FAIL: $$tst"; \
- ;; \
- esac; \
- else \
- skip=`expr $$skip + 1`; \
- echo "SKIP: $$tst"; \
- fi; \
- done; \
- if test "$$failed" -eq 0; then \
- if test "$$xfail" -eq 0; then \
- banner="All $$all tests passed"; \
- else \
- banner="All $$all tests behaved as expected ($$xfail expected failures)"; \
- fi; \
- else \
- if test "$$xpass" -eq 0; then \
- banner="$$failed of $$all tests failed"; \
- else \
- banner="$$failed of $$all tests did not behave as expected ($$xpass unexpected passes)"; \
- fi; \
- fi; \
- dashes="$$banner"; \
- skipped=""; \
- if test "$$skip" -ne 0; then \
- skipped="($$skip tests were not run)"; \
- test `echo "$$skipped" | wc -c` -le `echo "$$banner" | wc -c` || \
- dashes="$$skipped"; \
- fi; \
- report=""; \
- if test "$$failed" -ne 0 && test -n "$(PACKAGE_BUGREPORT)"; then \
- report="Please report to $(PACKAGE_BUGREPORT)"; \
- test `echo "$$report" | wc -c` -le `echo "$$banner" | wc -c` || \
- dashes="$$report"; \
- fi; \
- dashes=`echo "$$dashes" | sed s/./=/g`; \
- echo "$$dashes"; \
- echo "$$banner"; \
- test -z "$$skipped" || echo "$$skipped"; \
- test -z "$$report" || echo "$$report"; \
- echo "$$dashes"; \
- test "$$failed" -eq 0; \
- else :; fi
-
-distdir: $(DISTFILES)
- @srcdirstrip=`echo "$(srcdir)" | sed 's/[].[^$$\\*]/\\\\&/g'`; \
- topsrcdirstrip=`echo "$(top_srcdir)" | sed 's/[].[^$$\\*]/\\\\&/g'`; \
- list='$(DISTFILES)'; \
- dist_files=`for file in $$list; do echo $$file; done | \
- sed -e "s|^$$srcdirstrip/||;t" \
- -e "s|^$$topsrcdirstrip/|$(top_builddir)/|;t"`; \
- case $$dist_files in \
- */*) $(MKDIR_P) `echo "$$dist_files" | \
- sed '/\//!d;s|^|$(distdir)/|;s,/[^/]*$$,,' | \
- sort -u` ;; \
- esac; \
- for file in $$dist_files; do \
- if test -f $$file || test -d $$file; then d=.; else d=$(srcdir); fi; \
- if test -d $$d/$$file; then \
- dir=`echo "/$$file" | sed -e 's,/[^/]*$$,,'`; \
- if test -d $(srcdir)/$$file && test $$d != $(srcdir); then \
- cp -pR $(srcdir)/$$file $(distdir)$$dir || exit 1; \
- fi; \
- cp -pR $$d/$$file $(distdir)$$dir || exit 1; \
- else \
- test -f $(distdir)/$$file \
- || cp -p $$d/$$file $(distdir)/$$file \
- || exit 1; \
- fi; \
- done
-check-am: all-am
- $(MAKE) $(AM_MAKEFLAGS) check-TESTS
-check: check-am
-all-am: Makefile $(SCRIPTS)
-installdirs:
-install: install-am
-install-exec: install-exec-am
-install-data: install-data-am
-uninstall: uninstall-am
-
-install-am: all-am
- @$(MAKE) $(AM_MAKEFLAGS) install-exec-am install-data-am
-
-installcheck: installcheck-am
-install-strip:
- $(MAKE) $(AM_MAKEFLAGS) INSTALL_PROGRAM="$(INSTALL_STRIP_PROGRAM)" \
- install_sh_PROGRAM="$(INSTALL_STRIP_PROGRAM)" INSTALL_STRIP_FLAG=-s \
- `test -z '$(STRIP)' || \
- echo "INSTALL_PROGRAM_ENV=STRIPPROG='$(STRIP)'"` install
-mostlyclean-generic:
-
-clean-generic:
- -test -z "$(CLEANFILES)" || rm -f $(CLEANFILES)
-
-distclean-generic:
- -test -z "$(CONFIG_CLEAN_FILES)" || rm -f $(CONFIG_CLEAN_FILES)
-
-maintainer-clean-generic:
- @echo "This command is intended for maintainers to use"
- @echo "it deletes files that may require special tools to rebuild."
- -test -z "$(MAINTAINERCLEANFILES)" || rm -f $(MAINTAINERCLEANFILES)
-clean: clean-am
-
-clean-am: clean-generic mostlyclean-am
-
-distclean: distclean-am
- -rm -f Makefile
-distclean-am: clean-am distclean-generic
-
-dvi: dvi-am
-
-dvi-am:
-
-html: html-am
-
-info: info-am
-
-info-am:
-
-install-data-am:
-
-install-dvi: install-dvi-am
-
-install-exec-am:
-
-install-html: install-html-am
-
-install-info: install-info-am
-
-install-man:
-
-install-pdf: install-pdf-am
-
-install-ps: install-ps-am
-
-installcheck-am:
-
-maintainer-clean: maintainer-clean-am
- -rm -f Makefile
-maintainer-clean-am: distclean-am maintainer-clean-generic
-
-mostlyclean: mostlyclean-am
-
-mostlyclean-am: mostlyclean-generic
-
-pdf: pdf-am
-
-pdf-am:
-
-ps: ps-am
-
-ps-am:
-
-uninstall-am:
-
-.MAKE: install-am install-strip
-
-.PHONY: all all-am check check-TESTS check-am clean clean-generic \
- distclean distclean-generic distdir dvi dvi-am html html-am \
- info info-am install install-am install-data install-data-am \
- install-dvi install-dvi-am install-exec install-exec-am \
- install-html install-html-am install-info install-info-am \
- install-man install-pdf install-pdf-am install-ps \
- install-ps-am install-strip installcheck installcheck-am \
- installdirs maintainer-clean maintainer-clean-generic \
- mostlyclean mostlyclean-generic pdf pdf-am ps ps-am uninstall \
- uninstall-am
-
-$(srcdir)/$x-tests: $(mk_script) Test.pm Makefile.am
- test '$x' = test && prog=../../src/$x || prog=$x; \
- $(PERL) -I$(srcdir) -w -- $(mk_script) $(srcdir) $$prog > $@.n
- mv $@.n $@
- chmod 755 $@
-
-check: $(maint_gen)
-
-$(srcdir)/Makefile.am: ../Makefile.am.in Test.pm $(mk_script)
- rm -f $@ $@t
- sed -n '1,/^##test-files-begin/p' $(srcdir)/../Makefile.am.in > $@t
- tool=`echo $(subdir)|sed 's/^tests.//;s/-test//'`; \
- echo "x = $$tool" >> $@t
- $(PERL) -I$(srcdir) -w -- $(mk_script) $(srcdir) --list >> $@t
- sed -n '/^##test-files-end/,$$p' $(srcdir)/../Makefile.am.in >> $@t
- chmod -w $@t
- mv $@t $@
-# Tell versions [3.59,3.63) of GNU make to not export all variables.
-# Otherwise a system limit (for SysV at least) may be exceeded.
-.NOEXPORT:
diff --git a/tests/pr/Test.pm b/tests/pr/Test.pm
deleted file mode 100644
index c1fc49a..0000000
--- a/tests/pr/Test.pm
+++ /dev/null
@@ -1,405 +0,0 @@
-# -*-perl-*-
-
-# Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2002, 2004, 2005
-# Free Software Foundation, Inc.
-
-# This program is free software; you can redistribute it and/or modify
-# it under the terms of the GNU General Public License as published by
-# the Free Software Foundation; either version 2 of the License, or
-# (at your option) any later version.
-
-# This program is distributed in the hope that it will be useful,
-# but WITHOUT ANY WARRANTY; without even the implied warranty of
-# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
-# GNU General Public License for more details.
-
-# You should have received a copy of the GNU General Public License
-# along with this program; if not, write to the Free Software
-# Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA
-# 02110-1301, USA.
-
-package Test;
-require 5.002;
-use strict;
-
-my @tv = (
-
-# -b option is no longer an official option. But it's still working to
-# get a downward compatibility. Now (version 1.19m or newer) -COLUMN
-# only is equivalent to -b -COLUMN.
-#
-# test_name options input-file-name(s) expected-output-group-file-name
-# expected-return-code
-# -------------------------------------------------------------------------
-# Following tests with "FF set" don't contain a complete set of all
-# combinations of options and FF-arrangements
-#
-# One FF at start of file (one empty page)
-['1a', '', [\'0Ft'], [\'0F'], 0],
-['1b', '', [\'0Fnt'], [\'0F'], 0],
-['1c', '+3', [\'0Ft'], [\'3-0F'], 0],
-['1d', '+3 -f', [\'0Ft'], [\'3f-0F'], 0],
-['1e', '-a -3', [\'0Ft'], [\'a3-0F'], 0],
-['1f', '-a -3 -f', [\'0Ft'], [\'a3f-0F'], 0],
-['1g', '-a -3 -f', [\'0Fnt'], [\'a3f-0F'], 0],
-['1h', '+3 -a -3 -f', [\'0Ft'], [\'3a3f-0F'], 0],
-['1i', '-b -3', [\'0Ft'], [\'b3-0F'], 0],
-['1j', '-b -3 -f', [\'0Ft'], [\'b3f-0F'], 0],
-['1k', '-b -3 -f', [\'0Fnt'], [\'b3f-0F'], 0],
-['1l', '+3 -b -3 -f', [\'0Ft'], [\'3b3f-0F'], 0],
-# Two FF at start of file (two empty page)
-['2a', '', [\'0FFt'], [\'0FF'], 0],
-['2b', '', [\'0FnFnt'], [\'0FF'], 0],
-['2c', '-a -3 -f', [\'0FFt'], [\'a3f-0FF'], 0],
-['2d', '-a -3 -f', [\'0FFnt'], [\'a3f-0FF'], 0],
-['2e', '-b -3 -f', [\'0FFt'], [\'b3f-0FF'], 0],
-['2f', '-b -3 -f', [\'0FFnt'], [\'b3f-0FF'], 0],
-['2g', '-b -3 -f', [\'0FnFt'], [\'b3f-0FF'], 0],
-['2h', '-b -3 -f', [\'0FnFnt'], [\'b3f-0FF'], 0],
-['2i', '+3 -b -3 -f', [\'0FFt'], [\'3b3f-0FF'], 0],
-['2j', '+3 -b -3 -f', [\'0FFnt'], [\'3b3f-0FF'], 0],
-#
-# FFs in text (none / one / two empty page(s))
-['3a', '', [\'FFn'], [\'FF'], 0],
-['3b', '', [\'FnFn'], [\'FF'], 0],
-['3c', '+3', [\'FFn'], [\'3-FF'], 0],
-['3d', '+3 -f', [\'FFn'], [\'3f-FF'], 0],
-['3e', '-a -3 -f', [\'FFn'], [\'a3f-FF'], 0],
-['3f', '-a -3 -f', [\'FFtn'], [\'a3f-FF'], 0],
-['3g', '-b -3 -f', [\'FFn'], [\'b3f-FF'], 0],
-['3h', '-b -3 -f', [\'FFtn'], [\'b3f-FF'], 0],
-['3i', '-b -3 -f', [\'FnFn'], [\'b3f-FF'], 0],
-['3j', '-b -3 -f', [\'tFFn'], [\'b3f-FF'], 0],
-['3k', '-b -3 -f', [\'tFnFt'], [\'b3f-FF'], 0],
-['3l', '+3 -b -3 -f', [\'FFn'], [\'3b3f-FF'], 0],
-['3m', '+3 -b -3 -f', [\'FFtn'], [\'3b3f-FF'], 0],
-# A full page printed (lines_left_on_page = 0) without a FF found.
-# Avoid an extra empty page if a FF follows in the next input line.
-['3la', '-l 24', [\'FFn'], [\'l24-FF'], 0],
-['3lb', '-l 24', [\'FFtn'], [\'l24-FF'], 0],
-['3lc', '-l 24', [\'FnFn'], [\'l24-FF'], 0],
-['3ld', '-l 24', [\'tFFn'], [\'l24-FF'], 0],
-['3le', '-l 24', [\'tFnFt'], [\'l24-FF'], 0],
-['3lf', '-l 24', [\'tFFt'], [\'l24-FF'], 0],
-['3aa', '-a -2 -l 17', [\'FFn'], [\'a2l17-FF'], 0],
-['3ab', '-a -2 -l 17', [\'FFtn'], [\'a2l17-FF'], 0],
-['3ac', '-a -2 -l 17', [\'FnFn'], [\'a2l17-FF'], 0],
-['3ad', '-a -2 -l 17', [\'tFFn'], [\'a2l17-FF'], 0],
-['3ae', '-a -2 -l 17', [\'tFnFt'], [\'a2l17-FF'], 0],
-['3af', '-a -2 -l 17', [\'tFFt'], [\'a2l17-FF'], 0],
-['3ag', '-a -2 -l 15', [\'FFn'], [\'a2l15-FF'], 0],
-['3ah', '-a -2 -l 15', [\'FFtn'], [\'a2l15-FF'], 0],
-['3ai', '-a -2 -l 15', [\'FnFn'], [\'a2l15-FF'], 0],
-['3aj', '-a -2 -l 15', [\'tFFn'], [\'a2l15-FF'], 0],
-['3ak', '-a -2 -l 15', [\'tFnFt'], [\'a2l15-FF'], 0],
-['3ba', '-b -2 -l 17', [\'FFn'], [\'b2l17-FF'], 0],
-['3bb', '-b -2 -l 17', [\'FFtn'], [\'b2l17-FF'], 0],
-['3bc', '-b -2 -l 17', [\'FnFn'], [\'b2l17-FF'], 0],
-['3bd', '-b -2 -l 17', [\'tFFn'], [\'b2l17-FF'], 0],
-['3be', '-b -2 -l 17', [\'tFnFt'], [\'b2l17-FF'], 0],
-['3bf', '-b -2 -l 17', [\'tFFt'], [\'b2l17-FF'], 0],
-['3bg', '-b -2 -l 15', [\'FFn'], [\'b2l15-FF'], 0],
-['3bh', '-b -2 -l 15', [\'FFtn'], [\'b2l15-FF'], 0],
-['3bi', '-b -2 -l 15', [\'FnFn'], [\'b2l15-FF'], 0],
-['3bj', '-b -2 -l 15', [\'tFFn'], [\'b2l15-FF'], 0],
-['3bk', '-b -2 -l 15', [\'tFnFt'], [\'b2l15-FF'], 0],
-['3Pa', '+4 -l 24', [\'FFn'], [\'4l24-FF'], 0],
-['3Pb', '+4 -l 24', [\'FFtn'], [\'4l24-FF'], 0],
-['3Pc', '+4 -l 24', [\'FnFn'], [\'4l24-FF'], 0],
-['3Pd', '+4 -l 24', [\'tFFn'], [\'4l24-FF'], 0],
-['3Pe', '+4 -l 24', [\'tFnFt'], [\'4l24-FF'], 0],
-['3Pf', '+4 -l 24', [\'tFFt'], [\'4l24-FF'], 0],
-['3Pg', '+4:7 -l 24', [\'tFFt'], [\'4-7l24-FF'], 0],
-['3Paa', '+3 -a -2 -l 17', [\'FFn'], [\'3a2l17-FF'], 0],
-['3Pab', '+3 -a -2 -l 17', [\'FFtn'], [\'3a2l17-FF'], 0],
-['3Pac', '+3 -a -2 -l 17', [\'FnFn'], [\'3a2l17-FF'], 0],
-['3Pad', '+3 -a -2 -l 17', [\'tFFn'], [\'3a2l17-FF'], 0],
-['3Pae', '+3 -a -2 -l 17', [\'tFnFt'], [\'3a2l17-FF'], 0],
-['3Paf', '+3 -a -2 -l 17', [\'tFFt'], [\'3a2l17-FF'], 0],
-['3Pba', '+3 -b -2 -l 17', [\'FFn'], [\'3b2l17-FF'], 0],
-['3Pbb', '+3 -b -2 -l 17', [\'FFtn'], [\'3b2l17-FF'], 0],
-['3Pbc', '+3 -b -2 -l 17', [\'FnFn'], [\'3b2l17-FF'], 0],
-['3Pbd', '+3 -b -2 -l 17', [\'tFFn'], [\'3b2l17-FF'], 0],
-['3Pbe', '+3 -b -2 -l 17', [\'tFnFt'], [\'3b2l17-FF'], 0],
-['3Pbf', '+3 -b -2 -l 17', [\'tFFt'], [\'3b2l17-FF'], 0],
-#
-# Without "FF set by hand"
-['4a', '-l 24', [\'tn'], [\'l24-t'], 0],
-['4b', '-l 17 -f', [\'tn'], [\'l17f-t'], 0],
-['4c', '+3 -l 24', [\'tn'], [\'3l24-t'], 0],
-['4d', '+3 -l 17 -f', [\'tn'], [\'3l17f-t'], 0],
-['4e', '+3:5 -l 17 -f', [\'tn'], [\'3-5l17f-t'], 0],
-['4f', '-a -3 -l 15', [\'tn'], [\'a3l15-t'], 0],
-['4g', '-a -3 -l 8 -f', [\'tn'], [\'a3l8f-t'], 0],
-['4h', '+3 -a -3 -l 15', [\'tn'], [\'3a3l15-t'], 0],
-['4i', '+3 -a -3 -l 8 -f', [\'tn'], [\'3a3l8f-t'], 0],
-['4j', '-b -3 -l 15', [\'tn'], [\'b3l15-t'], 0],
-['4k', '-b -3 -l 8 -f', [\'tn'], [\'b3l8f-t'], 0],
-['4l', '+3 -b -3 -l 15', [\'tn'], [\'3b3l15-t'], 0],
-['4m', '+3 -b -3 -l 8 -f', [\'tn'], [\'3b3l8f-t'], 0],
-#
-# Merge input files (-m option)
-['5a', '-m -l 24', [\'tn', \'tn'], [\'ml24-t'], 0],
-['5b', '-m -l 17 -f', [\'tn', \'tn'], [\'ml17f-t'], 0],
-['5c', '+3 -m -l 24', [\'tn', \'tn'], [\'3ml24-t'], 0],
-['5d', '+3 -m -l 17 -f', [\'tn', \'tn'], [\'3ml17f-t'], 0],
-['5e', '-m -l 17 -f', [\'0Ft', \'0Ft'], [\'ml17f-0F'], 0],
-['5f', '-m -l 17 -f', [\'0Ft', \'0Fnt'], [\'ml17f-0F'], 0],
-['5g', '-m -l 17 -f', [\'tn', \'0Ft'], [\'ml17f-t-0F'], 0],
-# A full page printed (lines_left_on_page = 0) without a FF found.
-# Avoid an extra empty page if a FF follows in the next input line.
-['5ma', '-m -l 24', [\'tFFn', \'tFnFt'], [\'ml24-FF'], 0],
-['5mb', '-m -l 24', [\'tFFn', \'FFn'], [\'ml24-FF'], 0],
-['5mc', '-m -l 24', [\'tn', \'FFn'], [\'ml24-t-FF'], 0],
-['5md', '-m -l 20', [\'FFn', \'tn'], [\'ml20-FF-t'], 0],
-['5Pma', '+3 -m -l 24', [\'FFn', \'FnFn'], [\'3ml24-FF'], 0],
-['5Pmb', '+3 -m -l 24', [\'tFFn', \'FFn'], [\'3ml24-FF'], 0],
-['5Pmc', '+3 -m -l 24', [\'tn', \'FFn'], [\'3ml24-t-FF'], 0],
-#
-# Do not print header and footer but retain "FF set by Hand"
-# (-t option)
-['6a', '-t -l 24', [\'tn'], [\'t-t'], 0],
-['6b', '-t -l 17 -f', [\'tn'], [\'t-t'], 0],
-['6c', '-t -l 17 -f', [\'tFFt-bl'], [\'t-bl'], 0],
-['6d', '-t -l 24', [\'0FnFnt'], [\'t-0FF'], 0],
-['6e', '-t -l 24', [\'FFn'], [\'t-FF'], 0],
-['6f', '-t -l 24', [\'FnFn'], [\'t-FF'], 0],
-['6g', '-t -l 17 -f', [\'FFn'], [\'t-FF'], 0],
-['6aa', '-t -a -3', [\'0FnFnt'], [\'ta3-0FF'], 0],
-['6ab', '-t -a -3', [\'FFn'], [\'ta3-FF'], 0],
-['6ac', '-t -a -3 -l 24', [\'FnFn'], [\'ta3-FF'], 0],
-['6ba', '-t -b -3', [\'0FnFnt'], [\'tb3-0FF'], 0],
-['6bb', '-t -b -3', [\'FFn'], [\'tb3-FF'], 0],
-['6bc', '-t -b -3 -l 24', [\'FnFn'], [\'tb3-FF'], 0],
-#
-# Do not print header and footer nor "FF set by Hand" (-T option)
-['7a', '-T -l 24', [\'tn'], [\'tt-t'], 0],
-['7b', '-T -l 17 -f', [\'tn'], [\'tt-t'], 0],
-['7c', '-T -l 17 -f', [\'tFFt-bl'], [\'tt-bl'], 0],
-['7d', '-T -l 24', [\'0FnFnt'], [\'tt-0FF'], 0],
-['7e', '-T -l 24', [\'FFn'], [\'tt-FF'], 0],
-['7f', '-T -l 24', [\'FnFn'], [\'tt-FF'], 0],
-['7g', '-T -l 17 -f', [\'FFn'], [\'tt-FF'], 0],
-['7aa', '-T -a -3', [\'0FnFnt'], [\'tta3-0FF'], 0],
-['7ab', '-T -a -3', [\'FFn'], [\'tta3-FF'], 0],
-['7ac', '-T -a -3 -l 24', [\'FnFn'], [\'tta3-FF'], 0],
-['7ba', '-T -b -3', [\'0FnFnt'], [\'ttb3-0FF'], 0],
-['7bb', '-T -b -3', [\'FFn'], [\'ttb3-FF'], 0],
-['7bc', '-T -b -3 -l 24', [\'FnFn'], [\'ttb3-FF'], 0],
-#
-# lhs-truncation of header
-# pr-1.19m: Text line truncation only with column output
-#
-# numbering lines (-n -N option)
-# skip pages (+FIRST_PAGE[:LAST_PAGE] option)
-['9a', '-n.3 -l 17 -f', [\'tFFt-bl'], [\'nl17f-bl'], 0],
-['9b', '-n.3 -N 15 -l 17 -f', [\'tFFt-bl'], [\'nN15l17f-bl'], 0],
-['9Pa', '-n.3 +2 -l 17 -f', [\'tFFt-bl'], [\'n+2l17f-bl'], 0],
-['9Pb', '-n.3 +3 -l 17 -f', [\'tFFt-bl'], [\'n+3l17f-bl'], 0],
-['9Pc', '-n.3 -N 1 +3 -l 17 -f', [\'tFFt-bl'], [\'nN1+3l17f-bl'], 0],
-['9Pe', '-n.3 +2 -l 17 -f', [\'0FFt'], [\'n+2l17f-0FF'], 0],
-['9Pf', '-n.3 +2 -l 17 -f', [\'0FFnt'], [\'n+2l17f-0FF'], 0],
-['9Pg', '-n.3 +2 -l 17 -f', [\'0FnFt'], [\'n+2l17f-0FF'], 0],
-['9Ph', '-n.3 +2 -l 17 -f', [\'0FnFnt'], [\'n+2l17f-0FF'], 0],
-['9Pi', '-n.3 +2:5 -l 17 -f', [\'0FFt'], [\'n+2-5l17f-0FF'], 0],
-['9Pj', '-n.3 +3 -l 17 -f', [\'0FFt'], [\'n+3l17f-0FF'], 0],
-['9Pk', '-n.3 +3 -l 17 -f', [\'0FFnt'], [\'n+3l17f-0FF'], 0],
-['9Pl', '-n.3 +3 -l 17 -f', [\'0FnFt'], [\'n+3l17f-0FF'], 0],
-['9Pm', '-n.3 +3 -l 17 -f', [\'0FnFnt'], [\'n+3l17f-0FF'], 0],
-['9Pn', '-n.3 +7 -l 24', [\'FFn'], [\'n+7l24-FF'], 0],
-['9Po', '-n.3 +7 -l 24', [\'FFtn'], [\'n+7l24-FF'], 0],
-['9Pp', '-n.3 +7 -l 24', [\'FnFn'], [\'n+7l24-FF'], 0],
-['9Pq', '-n.3 +3:7 -l 24', [\'FnFn'], [\'n+3-7l24-FF'], 0],
-['9Pr', '-n.3 +8 -l 20', [\'tFFn'], [\'n+8l20-FF'], 0],
-['9Ps', '-n.3 +8 -l 20', [\'tFnFt'], [\'n+8l20-FF'], 0],
-['9Pt', '-n.3 +8 -l 20', [\'tFFt'], [\'n+8l20-FF'], 0],
-['9Paa', '-n.3 +5 -a -3 -l 6 -f', [\'0FFt'], [\'n+5a3l6f-0FF'], 0],
-['9Pab', '-n.3 +5 -a -3 -l 6 -f', [\'0FFnt'], [\'n+5a3l6f-0FF'], 0],
-['9Pac', '-n.3 +5 -a -3 -l 6 -f', [\'0FnFt'], [\'n+5a3l6f-0FF'], 0],
-['9Pad', '-n.3 +5 -a -3 -l 6 -f', [\'0FnFnt'], [\'n+5a3l6f-0FF'], 0],
-['9Pae', '-n.3 +6 -a -2 -l 17', [\'FFn'], [\'n+6a2l17-FF'], 0],
-['9Paf', '-n.3 +6 -a -2 -l 17', [\'FFtn'], [\'n+6a2l17-FF'], 0],
-['9Pag', '-n.3 +6 -a -2 -l 17', [\'FnFn'], [\'n+6a2l17-FF'], 0],
-['9Pah', '-n.3 +6 -a -2 -l 17', [\'tFFn'], [\'n+6a2l17-FF'], 0],
-['9Pai', '-n.3 +6 -a -2 -l 17', [\'tFnFt'], [\'n+6a2l17-FF'], 0],
-['9Paj', '-n.3 +6 -a -2 -l 17', [\'tFFt'], [\'n+6a2l17-FF'], 0],
-['9Pak', '-n.3 +4:8 -a -2 -l 17', [\'tFFt'], [\'n+4-8a2l17-FF'], 0],
-['9Pba', '-n.3 +4 -b -2 -l 10 -f', [\'0FFt'], [\'n+4b2l10f-0FF'], 0],
-['9Pbb', '-n.3 +4 -b -2 -l 10 -f', [\'0FFnt'], [\'n+4b2l10f-0FF'], 0],
-['9Pbc', '-n.3 +4 -b -2 -l 10 -f', [\'0FnFt'], [\'n+4b2l10f-0FF'], 0],
-['9Pbd', '-n.3 +4 -b -2 -l 10 -f', [\'0FnFnt'], [\'n+4b2l10f-0FF'], 0],
-['9Pbe', '-n.3 +6 -b -3 -l 6 -f', [\'FFn'], [\'n+6b3l6f-FF'], 0],
-['9Pbf', '-n.3 +6 -b -3 -l 6 -f', [\'FFtn'], [\'n+6b3l6f-FF'], 0],
-['9Pbg', '-n.3 +6 -b -3 -l 6 -f', [\'FnFn'], [\'n+6b3l6f-FF'], 0],
-['9Pbh', '-n.3 +6 -b -3 -l 6 -f', [\'tFFn'], [\'n+6b3l6f-FF'], 0],
-['9Pbi', '-n.3 +6 -b -3 -l 6 -f', [\'tFnFt'], [\'n+6b3l6f-FF'], 0],
-['9Pbj', '-n.3 +6 -b -3 -l 6 -f', [\'tFFt'], [\'n+6b3l6f-FF'], 0],
-['9Pbk', '-n.3 +5:8 -b -3 -l 10 -f', [\'FnFn'], [\'n+5-8b3l10f-FF'], 0],
-['9Pma', '-n.3 +3 -m -l 13 -f', [\'tFFt-bl', \'FnFn'], [\'n+3ml13f-bl-FF'], 0],
-['9Pmb', '-n.3 +3 -m -l 17 -f', [\'tFFt-bl', \'tn'], [\'n+3ml17f-bl-tn'], 0],
-['9Pmc', '-n.3 +3 -m -l 17 -f', [\'tn', \'tFFt-bl'], [\'n+3ml17f-tn-bl'], 0],
-#
-# line truncation column alignment; header line truncation
-# -w/W PAGE_WIDTH [-J] options
-['10wa', '-W 72 -J -l17 -f', [\'tFFt-ll'], [\'W72Jl17f-ll'], 0],
-['10wb', '-w 72 -J -l17 -f', [\'tFFt-ll'], [\'W72Jl17f-ll'], 0],
-['10wc', '-W 72 -l17 -f', [\'tFFt-ll'], [\'W-72l17f-ll'], 0],
-['10wd', '-w 72 -l17 -f', [\'tFFt-ll'], [\'w72l17f-ll'], 0],
-['10we', '-W 28 -l17 -f', [\'tFFt-ll'], [\'W28l17f-ll'], 0],
-['10wf', '-W 27 -l17 -f', [\'tFFt-ll'], [\'W27l17f-ll'], 0],
-['10wg', '-W 26 -l17 -f', [\'tFFt-ll'], [\'W26l17f-ll'], 0],
-['10wh', '-W 20 -l17 -f', [\'tFFt-ll'], [\'W20l17f-ll'], 0],
-['10ma', '-m -l 17 -f', [\'tFFt-lm', \'loli'], [\'ml17f-lm-lo'], 0],
-['10mb', '-W 35 -m -l 17 -f', [\'tFFt-lm', \'loli'], [\'W35ml17f-lm-lo'], 0],
-['10mc', '-w 35 -m -l 17 -f', [\'tFFt-lm', \'loli'], [\'W35ml17f-lm-lo'], 0],
-['10md', '-J -m -l 17 -f', [\'tFFt-lm', \'loli'], [\'Jml17f-lm-lo'], 0],
-['10me', '-W 35 -J -m -l 17 -f', [\'tFFt-lm', \'loli'], [\'W35Jml17f-lmlo'], 0],
-['10mf', '-w 35 -J -m -l 17 -f', [\'tFFt-lm', \'loli'], [\'W35Jml17f-lmlo'], 0],
-['10mg', '-n.3 -J -m -l 17 -f', [\'tFFt-lm', \'tFFt-lm', \'loli'], [\'nJml17f-lmlmlo'], 0],
-['10mh', '-n.3 -J -m -l 17 -f', [\'tFFt-lm', \'loli', \'tFFt-lm'], [\'nJml17f-lmlolm'], 0],
-['10aa', '-a -3 -l 17 -f', [\'tFFt-lm'], [\'a3l17f-lm'], 0],
-['10ab', '-W 35 -a -3 -l 17 -f', [\'tFFt-lm'], [\'W35a3l17f-lm'], 0],
-['10ac', '-J -a -3 -l 17 -f', [\'tFFt-lm'], [\'Ja3l17f-lm'], 0],
-['10ad', '-W 35 -J -a -3 -l 17 -f', [\'tFFt-lm'], [\'W35Ja3l17f-lm'], 0],
-['10ba', '-b -3 -l 17 -f', [\'tFFt-lm'], [\'b3l17f-lm'], 0],
-['10bb', '-W 35 -b -3 -l 17 -f', [\'tFFt-lm'], [\'W35b3l17f-lm'], 0],
-['10bc', '-J -b -3 -l 17 -f', [\'tFFt-lm'], [\'Jb3l17f-lm'], 0],
-['10bd', '-W 35 -J -b -3 -l 17 -f', [\'tFFt-lm'], [\'W35Jb3l17f-lm'], 0],
-#
-# merge files (-m option) use separator string (-S option)
-['11sa', '-n.3 -S:--: -m -l 13 -f', [\'tFFt-bl', \'FnFn'], [\'nSml13-bl-FF'], 0],
-['11sb', '-n.3 -S:--: -m -l 17 -f', [\'tFFt-bl', \'FnFn'], [\'nSml17-bl-FF'], 0],
-['11se', '-n.3 -S:--: -m -l 13 -f', [\'tn', \'tn', \'FnFn'], [\'nSml13-t-t-FF'], 0],
-['11sf', '-n.3 -S:--: -m -l 17 -f', [\'tn', \'tn', \'FnFn'], [\'nSml17-t-t-FF'], 0],
-['11sg', '-n.3 -S:--: -m -l 13 -f', [\'tn', \'tn', \'FnFn', \'FnFn'], [\'nSml13-t-tFFFF'], 0],
-['11sh', '-n.3 -S:--: -m -l 17 -f', [\'tn', \'tn', \'FnFn', \'FnFn'], [\'nSml17-t-tFFFF'], 0],
-#
-# left margin (-o option) and separator string (-S option)
-['12aa', '-o3 -a -3 -l17 -f', [\'tn'], [\'o3a3l17f-tn'], 0],
-['12ab', '-o3 -a -3 -S:--: -l17 -f', [\'tn'], [\'o3a3Sl17f-tn'], 0],
-['12ac', '-o3 -a -3 -S:--: -n. -l17 -f', [\'tn'], [\'o3a3Snl17f-tn'], 0],
-['12ba', '-o3 -b -3 -l17 -f', [\'tn'], [\'o3b3l17f-tn'], 0],
-['12bb', '-o3 -b -3 -S:--: -l17 -f', [\'tn'], [\'o3b3Sl17f-tn'], 0],
-['12bc', '-o3 -b -3 -S:--: -n. -l17 -f', [\'tn'], [\'o3b3Snl17f-tn'], 0],
-['12ma', '-o3 -m -l17 -f', [\'tFFt-bl', \'tn'], [\'o3ml17f-bl-tn'], 0],
-['12mb', '-o3 -m -S:--: -l17 -f', [\'tFFt-bl', \'tn'], [\'o3mSl17f-bl-tn'], 0],
-['12mc', '-o3 -m -S:--: -n. -l17 -f', [\'tFFt-bl', \'tn'], [\'o3mSnl17fbltn'], 0],
-['12md', '-o3 -J -m -l17 -f', [\'tFFt-lm', \'loli'], [\'o3Jml17f-lm-lo'], 0],
-#
-#
-# Single column output: POSIX compliant, adapt other UNIXes (SunOS.5.5.1 e.g.)
-# number-separator TAB always an output TAB --> varying number/text-spacing
-['13a', '-t -n -e8', [\'t_tab'], [\'tne8-t_tab'], 0],
-['13b', '-t -n -e8 -o3', [\'t_tab'], [\'tne8o3-t_tab'], 0],
-#
-# POSIX compliant: multi-columns of equal width (unlike SunOS.5.5.1 e.g.)
-# text-tab handling
-['13ba', '-t -n -2 -e8', [\'t_tab'], [\'tn2e8-t_tab'], 0],
-['13bb', '-t -n: -2 -e8', [\'t_tab'], [\'tn_2e8-t_tab'], 0],
-['13bc', '-t -n: -2 -e8 -S----', [\'t_tab'], [\'tn_2e8S-t_tab'], 0],
-['13bd', '-t -n -2 -e8 -o3', [\'t_tab'], [\'tn2e8o3-t_tab'], 0],
-# number-separator TAB not treated as input text-tab, no `-e' expansion
-['13be', '-t -n -2 -e5 -o3', [\'t_tab'], [\'tn2e5o3-t_tab'], 0],
-# input-tab-char `:' not equal default (text) TABs
-['13bf', '-t -n -2 -e:8', [\'t_tab_'], [\'tn2e8-t_tab'], 0],
-#
-# options -w/-s: POSIX-compliant, means adapting the interference of -w/-s
-# with multi-column output from other UNIXes (SunOS e.g.);
-# columns, truncated = 72 / separator = space :
-['14a', '-2 -f', [\'t_notab'], [\'2f-t_notab'], 0],
-# full lines, no truncation / separator = TAB :
-['14b', '-2 -s -f', [\'t_notab'], [\'2sf-t_notab'], 0],
-# full lines, no truncation / separator = `:' :
-['14c', '-2 -s: -f', [\'t_notab'], [\'2s_f-t_notab'], 0],
-# columns, truncated = 60 / separator = space :
-['14d', '-2 -w60 -f', [\'t_notab'], [\'2w60f-t_notab'], 0],
-# columns, truncated = 60 / no separator (SunOS-BUG: line width to small):
-['14e', '-2 -s -w60 -f', [\'t_notab'], [\'2sw60f-t_notab'], 0],
-# columns, truncated = 60 / separator = `:' (HP-UX.10.20-2-BUG:
-# `:' missing with -m option):
-['14f', '-2 -s: -w60 -f', [\'t_notab'], [\'2s_w60f-t_nota'], 0],
-#
-# new long-options -W/-S/-J disentangle those options (see also No.`10*')
-# columns, truncated = 72 / no separator :
-['14g', '-2 -S -f', [\'t_notab'], [\'2-Sf-t_notab'], 0],
-# full lines, no truncation / separator = TAB : (Input: -S"<TAB>")
-['14h', '-2 -S" " -J -f', [\'t_notab'], [\'2sf-t_notab'], 0],
-# columns, truncated = 72 / separator `:' :
-['14i', '-2 -S: -f', [\'t_notab'], [\'2-S_f-t_notab'], 0],
-# full lines, no truncation / separator = `:' :
-['14j', '-2 -S: -J -f', [\'t_notab'], [\'2s_f-t_notab'], 0],
-# columns, truncated = 60 / separator = space:
-['14k', '-2 -W60 -f', [\'t_notab'], [\'2w60f-t_notab'], 0],
-# columns, truncated = 60 / no separator :
-['14l', '-2 -S -W60 -f', [\'t_notab'], [\'2sw60f-t_notab'], 0],
-# columns, truncated = 60 / separator = `:' :
-['14m', '-2 -S: -W60 -f', [\'t_notab'], [\'2s_w60f-t_nota'], 0],
-#
-# Tabify multiple spaces, -i option
-# number of input spaces between a and b must not change; be careful
-# comparing with other UNIXes (some other SunOS examples are OK !?)
-# SunOS.5.5.1-BUG: 8 input spaces --> 11 output spaces between a and b;
-['i-opt-a', '-tn -i5 -h ""', "a b\n", " 1 a b\n", 0],
-# SunOS.5.5.1-BUG: 8 input spaces --> 9 output spaces between a and b;
-['i-opt-b', '-tn -i5 -o9 -h ""', "a b\n", " 1 a b\n", 0],
-#
-# line number overflow not allowed: cut off leading digits;
-# don't adapt other UNIXes, no real standard to follow, a consequent
-# programming of column handling may change the GNU pr concept.
-['ncut-a', '-tn2 -N98', "y\ny\ny\ny\ny\n", "98 y\n99 y\n00 y\n01 y\n02 y\n", 0],
-['ncut-b', '-tn:2 -N98', "y\ny\ny\ny\ny\n", "98:y\n99:y\n00:y\n01:y\n02:y\n", 0],
-
-['margin-0', '-o 0', '', '', 0],
-
-# BUG fixed: that leading space on 3rd line of output should not be there
-['dbl-sp-a', '-d -l 14 -h ""', "1\n2\n", "\n\n-- Date/Time -- Page 1\n\n\n1\n\n2\n\n\n\n\n\n\n", 0],
-# This test failed with 1.22e and earlier.
-['dbl-sp-b', '-d -t', "1\n2\n", "1\n\n2\n\n", 0],
-
-# This test would segfault with 2.0f and earlier.
-['narrow-1', '-W1 -t', "12345\n", "1\n", 0],
-
-# This test would fail with textutils-2.1 and earlier.
-['col-last', '-W3 -t2', "a\nb\nc\n", "a c\nb\n", 0],
-
-# Make sure that -02 is treated just like -2.
-['col-02', '-W3 -t -02', "a\nb\nc\n", "a c\nb\n", 0],
-# The -2 must override preceding column-count-specifying options.
-['col-2', '-W3 -t -4 --columns=1 -2', "a\nb\nc\n", "a c\nb\n", 0],
-# The --columns=2 must override preceding column-count-specifying options.
-['col-long', '-W3 -t -1 --columns=2', "a\nb\nc\n", "a c\nb\n", 0],
-# Make sure these fail.
-['col-0', '-0', '', '', 1],
-['col-inval', '-'.'9'x100, '', '', 1],
-
-# Before coreutils-5.3.1, --pages=1:-1 would be treated like
-# --pages=1:18446744073709551615.
-['neg-page', '--pages=1:-1', '', '', 1],
-);
-#']]);
-
-sub test_vector
-{
- my $common_option_prefix = '--date-format="-- Date/Time --" -h x';
-
- my @new_tv;
- my $t;
- foreach $t (@tv)
- {
- my ($test_name, $flags, $in, $exp, $ret) = @$t;
-
- # Prepend the common options to $FLAGS.
- my $sep = ($flags ? ' ' : '');
- $flags = "$common_option_prefix$sep$flags";
- push (@new_tv, [$test_name, $flags, $in, $exp, $ret]);
-
- # For any use of -N, create an identical test with --columns=N.
- (my $new_flags = $flags) =~ s/(^| )-(\d+)( |$)/$1--columns=$2$3/g;
- $new_flags ne $flags
- and push (@new_tv, ["$test_name.C", $new_flags, $in, $exp, $ret]);
- }
-
- return @new_tv;
-}
-
-1;
diff --git a/tests/pr/W-72l17f-ll b/tests/pr/W-72l17f-ll
deleted file mode 100644
index 41f8bfc..0000000
--- a/tests/pr/W-72l17f-ll
+++ /dev/null
@@ -1,92 +0,0 @@
--- Date/Time -- x Page 1
-
-
-1<<< -Test: FF's in Text >>>
-2<<< -b -3 / -a -3 / ... >>>
-3<<< >>>
-4<<< 123456789 123456789 123456789 123456789 123456789 123456789 123456
-
-6<<< -Arangements: One Empty Page >>>
-7<<< \f\f\n; text\f\n\ftext; \f\ftext; >>>
-8<<< f\f\n; \f\n\f\n; >>>
-9<<< >>>
-10<<< >>>
-1<<< >>>
-2<<< >>>
-3<<< truncation before FF; r_r_o_l-test: >>>
-14<<< 123456789 123456789 123456789 >>>
- -- Date/Time -- x Page 2
-
-
-
- -- Date/Time -- x Page 3
-
-
-15<<< xyzxyzxyz XYZXYZXYZ abcabcab >>>
-16<<< 123456789 xyzxyzxyz XYZXYZXYZ >>>
-7<<< >>>
-8<<< >>>
-9<<< >>>
-20<<< >>>
-1<<< >>>
-
-
-4<<< >>>
-5<<< >>>
-6<<< >>>
-27<<< truncation before FF; (r_l-test): >>>
-28<<< trunc
- -- Date/Time -- x Page 4
-
-
-
- -- Date/Time -- x Page 5
-
-
-29<<<xyzxyzxyz XYZXYZXYZ abcabcab >>>
-30<<< 123456789 xyzxyzxyz XYZXYZXYZ >>>
-1<<< >>>
-2<<< abcdefghi >>>
-3<<< >>>
-4<<< >>>
-5<<< >>>
-6<<< >>>
-7<<< >>>
-8<<< >>>
-9<<< abcdefghi >>>
-40<<< 123456789 >>>
-41<<< XYZXYZXYZ abcabcab >>>
-42<<< 123456789 abcdefghi ABCDEDFHI >>>
- -- Date/Time -- x Page 6
-
-
-
- -- Date/Time -- x Page 7
-
-
-
- -- Date/Time -- x Page 8
-
-
-43<<< xyzxyzxyz XYZXYZXYZ abcabcab >>>
-44<<< 123456789 xyzxyzxyz XYZXYZXYZ >>>
-5<<< >>>
-6<<< >>>
-7<<< >>>
-8<<< >>>
-9<<< >>>
-50<<< >>>
-1<<< >>>
-2<<< >>>
-3<<< >>>
-4<<< >>>
-55<<< XYZXYZXYZ abcabcab >>>
-56<<< 123456789 abcdefghi ABCDEDFHI >>>
- -- Date/Time -- x Page 9
-
-
-57<<< xyzxyzxyz XYZXYZXYZ abcabcab >>>
-58<<< 123456789 xyzxyzxyz XYZXYZXYZ >>>
-9<<< >>>
-60<<< 123456789 >>>
- \ No newline at end of file
diff --git a/tests/pr/W-72l24f-ll b/tests/pr/W-72l24f-ll
new file mode 100644
index 0000000..a2f9a4e
--- /dev/null
+++ b/tests/pr/W-72l24f-ll
@@ -0,0 +1,110 @@
+
+
+-- Date/Time -- x Page 1
+
+
+1<<< -Test: FF's in Text >>>
+2<<< -b -3 / -a -3 / ... >>>
+3<<< >>>
+4<<< 123456789 123456789 123456789 123456789 123456789 123456789 123456
+
+6<<< -Arangements: One Empty Page >>>
+7<<< \f\f\n; text\f\n\ftext; \f\ftext; >>>
+8<<< f\f\n; \f\n\f\n; >>>
+9<<< >>>
+10<<< >>>
+1<<< >>>
+2<<< >>>
+3<<< truncation before FF; r_r_o_l-test: >>>
+14<<< 123456789 123456789 123456789 >>>
+
+
+-- Date/Time -- x Page 2
+
+
+
+
+
+-- Date/Time -- x Page 3
+
+
+15<<< xyzxyzxyz XYZXYZXYZ abcabcab >>>
+16<<< 123456789 xyzxyzxyz XYZXYZXYZ >>>
+7<<< >>>
+8<<< >>>
+9<<< >>>
+20<<< >>>
+1<<< >>>
+
+
+4<<< >>>
+5<<< >>>
+6<<< >>>
+27<<< truncation before FF; (r_l-test): >>>
+28<<< trunc
+
+
+-- Date/Time -- x Page 4
+
+
+
+
+
+-- Date/Time -- x Page 5
+
+
+29<<<xyzxyzxyz XYZXYZXYZ abcabcab >>>
+30<<< 123456789 xyzxyzxyz XYZXYZXYZ >>>
+1<<< >>>
+2<<< abcdefghi >>>
+3<<< >>>
+4<<< >>>
+5<<< >>>
+6<<< >>>
+7<<< >>>
+8<<< >>>
+9<<< abcdefghi >>>
+40<<< 123456789 >>>
+41<<< XYZXYZXYZ abcabcab >>>
+42<<< 123456789 abcdefghi ABCDEDFHI >>>
+
+
+-- Date/Time -- x Page 6
+
+
+
+
+
+-- Date/Time -- x Page 7
+
+
+
+
+
+-- Date/Time -- x Page 8
+
+
+43<<< xyzxyzxyz XYZXYZXYZ abcabcab >>>
+44<<< 123456789 xyzxyzxyz XYZXYZXYZ >>>
+5<<< >>>
+6<<< >>>
+7<<< >>>
+8<<< >>>
+9<<< >>>
+50<<< >>>
+1<<< >>>
+2<<< >>>
+3<<< >>>
+4<<< >>>
+55<<< XYZXYZXYZ abcabcab >>>
+56<<< 123456789 abcdefghi ABCDEDFHI >>>
+
+
+-- Date/Time -- x Page 9
+
+
+57<<< xyzxyzxyz XYZXYZXYZ abcabcab >>>
+58<<< 123456789 xyzxyzxyz XYZXYZXYZ >>>
+9<<< >>>
+60<<< 123456789 >>>
+ \ No newline at end of file
diff --git a/tests/pr/W20l17f-ll b/tests/pr/W20l17f-ll
deleted file mode 100644
index 4ebb5b2..0000000
--- a/tests/pr/W20l17f-ll
+++ /dev/null
@@ -1,92 +0,0 @@
--- Date/Time -- x Page 1
-
-
-1<<< -Test: FF's in
-2<<< -b -3 / -a -3
-3<<< >>>
-4<<< 123456789 1234
-
-6<<< -Arangements:
-7<<< \f\f\n; text\f
-8<<< f\f\n; \f\n\f\
-9<<< >>>
-10<<< >>>
-1<<< >>>
-2<<< >>>
-3<<< truncation bef
-14<<< 123456789 123
- -- Date/Time -- x Page 2
-
-
-
- -- Date/Time -- x Page 3
-
-
-15<<< xyzxyzxyz XYZ
-16<<< 123456789 xyz
-7<<< >>>
-8<<< >>>
-9<<< >>>
-20<<< >>>
-1<<< >>>
-
-
-4<<< >>>
-5<<< >>>
-6<<< >>>
-27<<< truncation be
-28<<< trunc
- -- Date/Time -- x Page 4
-
-
-
- -- Date/Time -- x Page 5
-
-
-29<<<xyzxyzxyz XYZXY
-30<<< 123456789 xyz
-1<<< >>>
-2<<< abcdefghi >>>
-3<<< >>>
-4<<< >>>
-5<<< >>>
-6<<< >>>
-7<<< >>>
-8<<< >>>
-9<<< abcdefghi >>>
-40<<< 123456789 >>
-41<<< XYZXYZXYZ abc
-42<<< 123456789 abc
- -- Date/Time -- x Page 6
-
-
-
- -- Date/Time -- x Page 7
-
-
-
- -- Date/Time -- x Page 8
-
-
-43<<< xyzxyzxyz XYZ
-44<<< 123456789 xyz
-5<<< >>>
-6<<< >>>
-7<<< >>>
-8<<< >>>
-9<<< >>>
-50<<< >>>
-1<<< >>>
-2<<< >>>
-3<<< >>>
-4<<< >>>
-55<<< XYZXYZXYZ abc
-56<<< 123456789 abc
- -- Date/Time -- x Page 9
-
-
-57<<< xyzxyzxyz XYZ
-58<<< 123456789 xyz
-9<<< >>>
-60<<< 123456789 >>
- \ No newline at end of file
diff --git a/tests/pr/W20l24f-ll b/tests/pr/W20l24f-ll
new file mode 100644
index 0000000..ecc9a7a
--- /dev/null
+++ b/tests/pr/W20l24f-ll
@@ -0,0 +1,110 @@
+
+
+-- Date/Time -- x Page 1
+
+
+1<<< -Test: FF's in
+2<<< -b -3 / -a -3
+3<<< >>>
+4<<< 123456789 1234
+
+6<<< -Arangements:
+7<<< \f\f\n; text\f
+8<<< f\f\n; \f\n\f\
+9<<< >>>
+10<<< >>>
+1<<< >>>
+2<<< >>>
+3<<< truncation bef
+14<<< 123456789 123
+
+
+-- Date/Time -- x Page 2
+
+
+
+
+
+-- Date/Time -- x Page 3
+
+
+15<<< xyzxyzxyz XYZ
+16<<< 123456789 xyz
+7<<< >>>
+8<<< >>>
+9<<< >>>
+20<<< >>>
+1<<< >>>
+
+
+4<<< >>>
+5<<< >>>
+6<<< >>>
+27<<< truncation be
+28<<< trunc
+
+
+-- Date/Time -- x Page 4
+
+
+
+
+
+-- Date/Time -- x Page 5
+
+
+29<<<xyzxyzxyz XYZXY
+30<<< 123456789 xyz
+1<<< >>>
+2<<< abcdefghi >>>
+3<<< >>>
+4<<< >>>
+5<<< >>>
+6<<< >>>
+7<<< >>>
+8<<< >>>
+9<<< abcdefghi >>>
+40<<< 123456789 >>
+41<<< XYZXYZXYZ abc
+42<<< 123456789 abc
+
+
+-- Date/Time -- x Page 6
+
+
+
+
+
+-- Date/Time -- x Page 7
+
+
+
+
+
+-- Date/Time -- x Page 8
+
+
+43<<< xyzxyzxyz XYZ
+44<<< 123456789 xyz
+5<<< >>>
+6<<< >>>
+7<<< >>>
+8<<< >>>
+9<<< >>>
+50<<< >>>
+1<<< >>>
+2<<< >>>
+3<<< >>>
+4<<< >>>
+55<<< XYZXYZXYZ abc
+56<<< 123456789 abc
+
+
+-- Date/Time -- x Page 9
+
+
+57<<< xyzxyzxyz XYZ
+58<<< 123456789 xyz
+9<<< >>>
+60<<< 123456789 >>
+ \ No newline at end of file
diff --git a/tests/pr/W26l17f-ll b/tests/pr/W26l17f-ll
deleted file mode 100644
index ee0ed91..0000000
--- a/tests/pr/W26l17f-ll
+++ /dev/null
@@ -1,92 +0,0 @@
--- Date/Time -- x Page 1
-
-
-1<<< -Test: FF's in Text
-2<<< -b -3 / -a -3 / ...
-3<<< >>>
-4<<< 123456789 123456789
-
-6<<< -Arangements: One Em
-7<<< \f\f\n; text\f\n\fte
-8<<< f\f\n; \f\n\f\n; >>
-9<<< >>>
-10<<< >>>
-1<<< >>>
-2<<< >>>
-3<<< truncation before FF
-14<<< 123456789 123456789
- -- Date/Time -- x Page 2
-
-
-
- -- Date/Time -- x Page 3
-
-
-15<<< xyzxyzxyz XYZXYZXYZ
-16<<< 123456789 xyzxyzxyz
-7<<< >>>
-8<<< >>>
-9<<< >>>
-20<<< >>>
-1<<< >>>
-
-
-4<<< >>>
-5<<< >>>
-6<<< >>>
-27<<< truncation before F
-28<<< trunc
- -- Date/Time -- x Page 4
-
-
-
- -- Date/Time -- x Page 5
-
-
-29<<<xyzxyzxyz XYZXYZXYZ a
-30<<< 123456789 xyzxyzxyz
-1<<< >>>
-2<<< abcdefghi >>>
-3<<< >>>
-4<<< >>>
-5<<< >>>
-6<<< >>>
-7<<< >>>
-8<<< >>>
-9<<< abcdefghi >>>
-40<<< 123456789 >>>
-41<<< XYZXYZXYZ abcabcab
-42<<< 123456789 abcdefghi
- -- Date/Time -- x Page 6
-
-
-
- -- Date/Time -- x Page 7
-
-
-
- -- Date/Time -- x Page 8
-
-
-43<<< xyzxyzxyz XYZXYZXYZ
-44<<< 123456789 xyzxyzxyz
-5<<< >>>
-6<<< >>>
-7<<< >>>
-8<<< >>>
-9<<< >>>
-50<<< >>>
-1<<< >>>
-2<<< >>>
-3<<< >>>
-4<<< >>>
-55<<< XYZXYZXYZ abcabcab
-56<<< 123456789 abcdefghi
- -- Date/Time -- x Page 9
-
-
-57<<< xyzxyzxyz XYZXYZXYZ
-58<<< 123456789 xyzxyzxyz
-9<<< >>>
-60<<< 123456789 >>>
- \ No newline at end of file
diff --git a/tests/pr/W26l24f-ll b/tests/pr/W26l24f-ll
new file mode 100644
index 0000000..accf48e
--- /dev/null
+++ b/tests/pr/W26l24f-ll
@@ -0,0 +1,110 @@
+
+
+-- Date/Time -- x Page 1
+
+
+1<<< -Test: FF's in Text
+2<<< -b -3 / -a -3 / ...
+3<<< >>>
+4<<< 123456789 123456789
+
+6<<< -Arangements: One Em
+7<<< \f\f\n; text\f\n\fte
+8<<< f\f\n; \f\n\f\n; >>
+9<<< >>>
+10<<< >>>
+1<<< >>>
+2<<< >>>
+3<<< truncation before FF
+14<<< 123456789 123456789
+
+
+-- Date/Time -- x Page 2
+
+
+
+
+
+-- Date/Time -- x Page 3
+
+
+15<<< xyzxyzxyz XYZXYZXYZ
+16<<< 123456789 xyzxyzxyz
+7<<< >>>
+8<<< >>>
+9<<< >>>
+20<<< >>>
+1<<< >>>
+
+
+4<<< >>>
+5<<< >>>
+6<<< >>>
+27<<< truncation before F
+28<<< trunc
+
+
+-- Date/Time -- x Page 4
+
+
+
+
+
+-- Date/Time -- x Page 5
+
+
+29<<<xyzxyzxyz XYZXYZXYZ a
+30<<< 123456789 xyzxyzxyz
+1<<< >>>
+2<<< abcdefghi >>>
+3<<< >>>
+4<<< >>>
+5<<< >>>
+6<<< >>>
+7<<< >>>
+8<<< >>>
+9<<< abcdefghi >>>
+40<<< 123456789 >>>
+41<<< XYZXYZXYZ abcabcab
+42<<< 123456789 abcdefghi
+
+
+-- Date/Time -- x Page 6
+
+
+
+
+
+-- Date/Time -- x Page 7
+
+
+
+
+
+-- Date/Time -- x Page 8
+
+
+43<<< xyzxyzxyz XYZXYZXYZ
+44<<< 123456789 xyzxyzxyz
+5<<< >>>
+6<<< >>>
+7<<< >>>
+8<<< >>>
+9<<< >>>
+50<<< >>>
+1<<< >>>
+2<<< >>>
+3<<< >>>
+4<<< >>>
+55<<< XYZXYZXYZ abcabcab
+56<<< 123456789 abcdefghi
+
+
+-- Date/Time -- x Page 9
+
+
+57<<< xyzxyzxyz XYZXYZXYZ
+58<<< 123456789 xyzxyzxyz
+9<<< >>>
+60<<< 123456789 >>>
+ \ No newline at end of file
diff --git a/tests/pr/W27l17f-ll b/tests/pr/W27l17f-ll
deleted file mode 100644
index fe65325..0000000
--- a/tests/pr/W27l17f-ll
+++ /dev/null
@@ -1,92 +0,0 @@
--- Date/Time -- x Page 1
-
-
-1<<< -Test: FF's in Text
-2<<< -b -3 / -a -3 / ...
-3<<< >>>
-4<<< 123456789 123456789 1
-
-6<<< -Arangements: One Emp
-7<<< \f\f\n; text\f\n\ftex
-8<<< f\f\n; \f\n\f\n; >>>
-9<<< >>>
-10<<< >>>
-1<<< >>>
-2<<< >>>
-3<<< truncation before FF;
-14<<< 123456789 123456789
- -- Date/Time -- x Page 2
-
-
-
- -- Date/Time -- x Page 3
-
-
-15<<< xyzxyzxyz XYZXYZXYZ
-16<<< 123456789 xyzxyzxyz
-7<<< >>>
-8<<< >>>
-9<<< >>>
-20<<< >>>
-1<<< >>>
-
-
-4<<< >>>
-5<<< >>>
-6<<< >>>
-27<<< truncation before FF
-28<<< trunc
- -- Date/Time -- x Page 4
-
-
-
- -- Date/Time -- x Page 5
-
-
-29<<<xyzxyzxyz XYZXYZXYZ ab
-30<<< 123456789 xyzxyzxyz
-1<<< >>>
-2<<< abcdefghi >>>
-3<<< >>>
-4<<< >>>
-5<<< >>>
-6<<< >>>
-7<<< >>>
-8<<< >>>
-9<<< abcdefghi >>>
-40<<< 123456789 >>>
-41<<< XYZXYZXYZ abcabcab
-42<<< 123456789 abcdefghi
- -- Date/Time -- x Page 6
-
-
-
- -- Date/Time -- x Page 7
-
-
-
- -- Date/Time -- x Page 8
-
-
-43<<< xyzxyzxyz XYZXYZXYZ
-44<<< 123456789 xyzxyzxyz
-5<<< >>>
-6<<< >>>
-7<<< >>>
-8<<< >>>
-9<<< >>>
-50<<< >>>
-1<<< >>>
-2<<< >>>
-3<<< >>>
-4<<< >>>
-55<<< XYZXYZXYZ abcabcab
-56<<< 123456789 abcdefghi
- -- Date/Time -- x Page 9
-
-
-57<<< xyzxyzxyz XYZXYZXYZ
-58<<< 123456789 xyzxyzxyz
-9<<< >>>
-60<<< 123456789 >>>
- \ No newline at end of file
diff --git a/tests/pr/W27l24f-ll b/tests/pr/W27l24f-ll
new file mode 100644
index 0000000..2c1e230
--- /dev/null
+++ b/tests/pr/W27l24f-ll
@@ -0,0 +1,110 @@
+
+
+-- Date/Time -- x Page 1
+
+
+1<<< -Test: FF's in Text
+2<<< -b -3 / -a -3 / ...
+3<<< >>>
+4<<< 123456789 123456789 1
+
+6<<< -Arangements: One Emp
+7<<< \f\f\n; text\f\n\ftex
+8<<< f\f\n; \f\n\f\n; >>>
+9<<< >>>
+10<<< >>>
+1<<< >>>
+2<<< >>>
+3<<< truncation before FF;
+14<<< 123456789 123456789
+
+
+-- Date/Time -- x Page 2
+
+
+
+
+
+-- Date/Time -- x Page 3
+
+
+15<<< xyzxyzxyz XYZXYZXYZ
+16<<< 123456789 xyzxyzxyz
+7<<< >>>
+8<<< >>>
+9<<< >>>
+20<<< >>>
+1<<< >>>
+
+
+4<<< >>>
+5<<< >>>
+6<<< >>>
+27<<< truncation before FF
+28<<< trunc
+
+
+-- Date/Time -- x Page 4
+
+
+
+
+
+-- Date/Time -- x Page 5
+
+
+29<<<xyzxyzxyz XYZXYZXYZ ab
+30<<< 123456789 xyzxyzxyz
+1<<< >>>
+2<<< abcdefghi >>>
+3<<< >>>
+4<<< >>>
+5<<< >>>
+6<<< >>>
+7<<< >>>
+8<<< >>>
+9<<< abcdefghi >>>
+40<<< 123456789 >>>
+41<<< XYZXYZXYZ abcabcab
+42<<< 123456789 abcdefghi
+
+
+-- Date/Time -- x Page 6
+
+
+
+
+
+-- Date/Time -- x Page 7
+
+
+
+
+
+-- Date/Time -- x Page 8
+
+
+43<<< xyzxyzxyz XYZXYZXYZ
+44<<< 123456789 xyzxyzxyz
+5<<< >>>
+6<<< >>>
+7<<< >>>
+8<<< >>>
+9<<< >>>
+50<<< >>>
+1<<< >>>
+2<<< >>>
+3<<< >>>
+4<<< >>>
+55<<< XYZXYZXYZ abcabcab
+56<<< 123456789 abcdefghi
+
+
+-- Date/Time -- x Page 9
+
+
+57<<< xyzxyzxyz XYZXYZXYZ
+58<<< 123456789 xyzxyzxyz
+9<<< >>>
+60<<< 123456789 >>>
+ \ No newline at end of file
diff --git a/tests/pr/W28l17f-ll b/tests/pr/W28l17f-ll
deleted file mode 100644
index 0109eba..0000000
--- a/tests/pr/W28l17f-ll
+++ /dev/null
@@ -1,92 +0,0 @@
--- Date/Time -- x Page 1
-
-
-1<<< -Test: FF's in Text
-2<<< -b -3 / -a -3 / ... >
-3<<< >>>
-4<<< 123456789 123456789 12
-
-6<<< -Arangements: One Empt
-7<<< \f\f\n; text\f\n\ftext
-8<<< f\f\n; \f\n\f\n; >>>
-9<<< >>>
-10<<< >>>
-1<<< >>>
-2<<< >>>
-3<<< truncation before FF;
-14<<< 123456789 123456789 1
- -- Date/Time -- x Page 2
-
-
-
- -- Date/Time -- x Page 3
-
-
-15<<< xyzxyzxyz XYZXYZXYZ a
-16<<< 123456789 xyzxyzxyz X
-7<<< >>>
-8<<< >>>
-9<<< >>>
-20<<< >>>
-1<<< >>>
-
-
-4<<< >>>
-5<<< >>>
-6<<< >>>
-27<<< truncation before FF;
-28<<< trunc
- -- Date/Time -- x Page 4
-
-
-
- -- Date/Time -- x Page 5
-
-
-29<<<xyzxyzxyz XYZXYZXYZ abc
-30<<< 123456789 xyzxyzxyz X
-1<<< >>>
-2<<< abcdefghi >>>
-3<<< >>>
-4<<< >>>
-5<<< >>>
-6<<< >>>
-7<<< >>>
-8<<< >>>
-9<<< abcdefghi >>>
-40<<< 123456789 >>>
-41<<< XYZXYZXYZ abcabcab
-42<<< 123456789 abcdefghi A
- -- Date/Time -- x Page 6
-
-
-
- -- Date/Time -- x Page 7
-
-
-
- -- Date/Time -- x Page 8
-
-
-43<<< xyzxyzxyz XYZXYZXYZ a
-44<<< 123456789 xyzxyzxyz X
-5<<< >>>
-6<<< >>>
-7<<< >>>
-8<<< >>>
-9<<< >>>
-50<<< >>>
-1<<< >>>
-2<<< >>>
-3<<< >>>
-4<<< >>>
-55<<< XYZXYZXYZ abcabcab >
-56<<< 123456789 abcdefghi A
- -- Date/Time -- x Page 9
-
-
-57<<< xyzxyzxyz XYZXYZXYZ a
-58<<< 123456789 xyzxyzxyz X
-9<<< >>>
-60<<< 123456789 >>>
- \ No newline at end of file
diff --git a/tests/pr/W28l24f-ll b/tests/pr/W28l24f-ll
new file mode 100644
index 0000000..5731fd0
--- /dev/null
+++ b/tests/pr/W28l24f-ll
@@ -0,0 +1,110 @@
+
+
+-- Date/Time -- x Page 1
+
+
+1<<< -Test: FF's in Text
+2<<< -b -3 / -a -3 / ... >
+3<<< >>>
+4<<< 123456789 123456789 12
+
+6<<< -Arangements: One Empt
+7<<< \f\f\n; text\f\n\ftext
+8<<< f\f\n; \f\n\f\n; >>>
+9<<< >>>
+10<<< >>>
+1<<< >>>
+2<<< >>>
+3<<< truncation before FF;
+14<<< 123456789 123456789 1
+
+
+-- Date/Time -- x Page 2
+
+
+
+
+
+-- Date/Time -- x Page 3
+
+
+15<<< xyzxyzxyz XYZXYZXYZ a
+16<<< 123456789 xyzxyzxyz X
+7<<< >>>
+8<<< >>>
+9<<< >>>
+20<<< >>>
+1<<< >>>
+
+
+4<<< >>>
+5<<< >>>
+6<<< >>>
+27<<< truncation before FF;
+28<<< trunc
+
+
+-- Date/Time -- x Page 4
+
+
+
+
+
+-- Date/Time -- x Page 5
+
+
+29<<<xyzxyzxyz XYZXYZXYZ abc
+30<<< 123456789 xyzxyzxyz X
+1<<< >>>
+2<<< abcdefghi >>>
+3<<< >>>
+4<<< >>>
+5<<< >>>
+6<<< >>>
+7<<< >>>
+8<<< >>>
+9<<< abcdefghi >>>
+40<<< 123456789 >>>
+41<<< XYZXYZXYZ abcabcab
+42<<< 123456789 abcdefghi A
+
+
+-- Date/Time -- x Page 6
+
+
+
+
+
+-- Date/Time -- x Page 7
+
+
+
+
+
+-- Date/Time -- x Page 8
+
+
+43<<< xyzxyzxyz XYZXYZXYZ a
+44<<< 123456789 xyzxyzxyz X
+5<<< >>>
+6<<< >>>
+7<<< >>>
+8<<< >>>
+9<<< >>>
+50<<< >>>
+1<<< >>>
+2<<< >>>
+3<<< >>>
+4<<< >>>
+55<<< XYZXYZXYZ abcabcab >
+56<<< 123456789 abcdefghi A
+
+
+-- Date/Time -- x Page 9
+
+
+57<<< xyzxyzxyz XYZXYZXYZ a
+58<<< 123456789 xyzxyzxyz X
+9<<< >>>
+60<<< 123456789 >>>
+ \ No newline at end of file
diff --git a/tests/pr/W35Ja3l17f-lm b/tests/pr/W35Ja3l17f-lm
deleted file mode 100644
index 4c73df8..0000000
--- a/tests/pr/W35Ja3l17f-lm
+++ /dev/null
@@ -1,54 +0,0 @@
--- Date/Time -- x Page 1
-
-
-1<<< -Test: FF's in Text >>> 2<<< -b -3 / -a -3 / ... >>> 3<<< >>>
-4<<< 123456789 123456789 123456789 12345678 >>> 6<<< -Arangements: One Empty Page >>>
-7<<< \f\f\n; text\f\n\ftext; \f\ftext; >>> 8<<< f\f\n; \f\n\f\n; >>> 9<<< >>>
-10<<< >>> 1<<< >>> 2<<< >>>
-3<<< truncation before FF; r_r_o_l-test: >>> 14<<< 123456789 123456789 123456789 >>>
- -- Date/Time -- x Page 2
-
-
-
- -- Date/Time -- x Page 3
-
-
-15<<< xyzxyzxyz XYZXYZXYZ abcabcab >>> 16<<< 123456789 xyzxyzxyz XYZXYZXYZ >>> 7<<< >>>
-8<<< >>> 9<<< >>> 20<<< >>>
-1<<< >>>
-4<<< >>> 5<<< >>> 6<<< >>>
-27<<< truncation before FF; (r_l-test): >>> 28<<< trunc
- -- Date/Time -- x Page 4
-
-
-
- -- Date/Time -- x Page 5
-
-
-29<<<xyzxyzxyz XYZXYZXYZ abcabcab >>> 30<<< 123456789 xyzxyzxyz XYZXYZXYZ >>> 1<<< >>>
-2<<< abcdefghi >>> 3<<< >>> 4<<< >>>
-5<<< >>> 6<<< >>> 7<<< >>>
-8<<< >>> 9<<< abcdefghi >>> 40<<< 123456789 >>>
-41<<< XYZXYZXYZ abcabcab >>> 42<<< 123456789 abcdefghi ABCDEDFHI >>>
- -- Date/Time -- x Page 6
-
-
-
- -- Date/Time -- x Page 7
-
-
-
- -- Date/Time -- x Page 8
-
-
-43<<< xyzxyzxyz XYZXYZXYZ abcabcab >>> 44<<< 123456789 xyzxyzxyz XYZXYZXYZ >>> 5<<< >>>
-6<<< >>> 7<<< >>> 8<<< >>>
-9<<< >>> 50<<< >>> 1<<< >>>
-2<<< >>> 3<<< >>> 4<<< >>>
-55<<< XYZXYZXYZ abcabcab >>> 56<<< 123456789 abcdefghi ABCDEDFHI >>>
- -- Date/Time -- x Page 9
-
-
-57<<< xyzxyzxyz XYZXYZXYZ abcabcab >>> 58<<< 123456789 xyzxyzxyz XYZXYZXYZ >>> 9<<< >>>
-60<<< 123456789 >>>
- \ No newline at end of file
diff --git a/tests/pr/W35Ja3l24f-lm b/tests/pr/W35Ja3l24f-lm
new file mode 100644
index 0000000..138f4c8
--- /dev/null
+++ b/tests/pr/W35Ja3l24f-lm
@@ -0,0 +1,72 @@
+
+
+-- Date/Time -- x Page 1
+
+
+1<<< -Test: FF's in Text >>> 2<<< -b -3 / -a -3 / ... >>> 3<<< >>>
+4<<< 123456789 123456789 123456789 12345678 >>> 6<<< -Arangements: One Empty Page >>>
+7<<< \f\f\n; text\f\n\ftext; \f\ftext; >>> 8<<< f\f\n; \f\n\f\n; >>> 9<<< >>>
+10<<< >>> 1<<< >>> 2<<< >>>
+3<<< truncation before FF; r_r_o_l-test: >>> 14<<< 123456789 123456789 123456789 >>>
+
+
+-- Date/Time -- x Page 2
+
+
+
+
+
+-- Date/Time -- x Page 3
+
+
+15<<< xyzxyzxyz XYZXYZXYZ abcabcab >>> 16<<< 123456789 xyzxyzxyz XYZXYZXYZ >>> 7<<< >>>
+8<<< >>> 9<<< >>> 20<<< >>>
+1<<< >>>
+4<<< >>> 5<<< >>> 6<<< >>>
+27<<< truncation before FF; (r_l-test): >>> 28<<< trunc
+
+
+-- Date/Time -- x Page 4
+
+
+
+
+
+-- Date/Time -- x Page 5
+
+
+29<<<xyzxyzxyz XYZXYZXYZ abcabcab >>> 30<<< 123456789 xyzxyzxyz XYZXYZXYZ >>> 1<<< >>>
+2<<< abcdefghi >>> 3<<< >>> 4<<< >>>
+5<<< >>> 6<<< >>> 7<<< >>>
+8<<< >>> 9<<< abcdefghi >>> 40<<< 123456789 >>>
+41<<< XYZXYZXYZ abcabcab >>> 42<<< 123456789 abcdefghi ABCDEDFHI >>>
+
+
+-- Date/Time -- x Page 6
+
+
+
+
+
+-- Date/Time -- x Page 7
+
+
+
+
+
+-- Date/Time -- x Page 8
+
+
+43<<< xyzxyzxyz XYZXYZXYZ abcabcab >>> 44<<< 123456789 xyzxyzxyz XYZXYZXYZ >>> 5<<< >>>
+6<<< >>> 7<<< >>> 8<<< >>>
+9<<< >>> 50<<< >>> 1<<< >>>
+2<<< >>> 3<<< >>> 4<<< >>>
+55<<< XYZXYZXYZ abcabcab >>> 56<<< 123456789 abcdefghi ABCDEDFHI >>>
+
+
+-- Date/Time -- x Page 9
+
+
+57<<< xyzxyzxyz XYZXYZXYZ abcabcab >>> 58<<< 123456789 xyzxyzxyz XYZXYZXYZ >>> 9<<< >>>
+60<<< 123456789 >>>
+ \ No newline at end of file
diff --git a/tests/pr/W35Jb3l17f-lm b/tests/pr/W35Jb3l17f-lm
deleted file mode 100644
index 7600568..0000000
--- a/tests/pr/W35Jb3l17f-lm
+++ /dev/null
@@ -1,54 +0,0 @@
--- Date/Time -- x Page 1
-
-
-1<<< -Test: FF's in Text >>> 6<<< -Arangements: One Empty Page >>> 1<<< >>>
-2<<< -b -3 / -a -3 / ... >>> 7<<< \f\f\n; text\f\n\ftext; \f\ftext; >>> 2<<< >>>
-3<<< >>> 8<<< f\f\n; \f\n\f\n; >>> 3<<< truncation before FF; r_r_o_l-test: >>>
-4<<< 123456789 123456789 123456789 12345678 >>> 9<<< >>> 14<<< 123456789 123456789 123456789 >>>
- 10<<< >>>
- -- Date/Time -- x Page 2
-
-
-
- -- Date/Time -- x Page 3
-
-
-15<<< xyzxyzxyz XYZXYZXYZ abcabcab >>> 20<<< >>> 5<<< >>>
-16<<< 123456789 xyzxyzxyz XYZXYZXYZ >>> 1<<< >>> 6<<< >>>
-7<<< >>> 27<<< truncation before FF; (r_l-test): >>>
-8<<< >>> 28<<< trunc
-9<<< >>> 4<<< >>>
- -- Date/Time -- x Page 4
-
-
-
- -- Date/Time -- x Page 5
-
-
-29<<<xyzxyzxyz XYZXYZXYZ abcabcab >>> 4<<< >>> 9<<< abcdefghi >>>
-30<<< 123456789 xyzxyzxyz XYZXYZXYZ >>> 5<<< >>> 40<<< 123456789 >>>
-1<<< >>> 6<<< >>> 41<<< XYZXYZXYZ abcabcab >>>
-2<<< abcdefghi >>> 7<<< >>> 42<<< 123456789 abcdefghi ABCDEDFHI >>>
-3<<< >>> 8<<< >>>
- -- Date/Time -- x Page 6
-
-
-
- -- Date/Time -- x Page 7
-
-
-
- -- Date/Time -- x Page 8
-
-
-43<<< xyzxyzxyz XYZXYZXYZ abcabcab >>> 8<<< >>> 3<<< >>>
-44<<< 123456789 xyzxyzxyz XYZXYZXYZ >>> 9<<< >>> 4<<< >>>
-5<<< >>> 50<<< >>> 55<<< XYZXYZXYZ abcabcab >>>
-6<<< >>> 1<<< >>> 56<<< 123456789 abcdefghi ABCDEDFHI >>>
-7<<< >>> 2<<< >>>
- -- Date/Time -- x Page 9
-
-
-57<<< xyzxyzxyz XYZXYZXYZ abcabcab >>> 9<<< >>> 60<<< 123456789 >>>
-58<<< 123456789 xyzxyzxyz XYZXYZXYZ >>>
- \ No newline at end of file
diff --git a/tests/pr/W35Jb3l24f-lm b/tests/pr/W35Jb3l24f-lm
new file mode 100644
index 0000000..bd80436
--- /dev/null
+++ b/tests/pr/W35Jb3l24f-lm
@@ -0,0 +1,72 @@
+
+
+-- Date/Time -- x Page 1
+
+
+1<<< -Test: FF's in Text >>> 6<<< -Arangements: One Empty Page >>> 1<<< >>>
+2<<< -b -3 / -a -3 / ... >>> 7<<< \f\f\n; text\f\n\ftext; \f\ftext; >>> 2<<< >>>
+3<<< >>> 8<<< f\f\n; \f\n\f\n; >>> 3<<< truncation before FF; r_r_o_l-test: >>>
+4<<< 123456789 123456789 123456789 12345678 >>> 9<<< >>> 14<<< 123456789 123456789 123456789 >>>
+ 10<<< >>>
+
+
+-- Date/Time -- x Page 2
+
+
+
+
+
+-- Date/Time -- x Page 3
+
+
+15<<< xyzxyzxyz XYZXYZXYZ abcabcab >>> 20<<< >>> 5<<< >>>
+16<<< 123456789 xyzxyzxyz XYZXYZXYZ >>> 1<<< >>> 6<<< >>>
+7<<< >>> 27<<< truncation before FF; (r_l-test): >>>
+8<<< >>> 28<<< trunc
+9<<< >>> 4<<< >>>
+
+
+-- Date/Time -- x Page 4
+
+
+
+
+
+-- Date/Time -- x Page 5
+
+
+29<<<xyzxyzxyz XYZXYZXYZ abcabcab >>> 4<<< >>> 9<<< abcdefghi >>>
+30<<< 123456789 xyzxyzxyz XYZXYZXYZ >>> 5<<< >>> 40<<< 123456789 >>>
+1<<< >>> 6<<< >>> 41<<< XYZXYZXYZ abcabcab >>>
+2<<< abcdefghi >>> 7<<< >>> 42<<< 123456789 abcdefghi ABCDEDFHI >>>
+3<<< >>> 8<<< >>>
+
+
+-- Date/Time -- x Page 6
+
+
+
+
+
+-- Date/Time -- x Page 7
+
+
+
+
+
+-- Date/Time -- x Page 8
+
+
+43<<< xyzxyzxyz XYZXYZXYZ abcabcab >>> 8<<< >>> 3<<< >>>
+44<<< 123456789 xyzxyzxyz XYZXYZXYZ >>> 9<<< >>> 4<<< >>>
+5<<< >>> 50<<< >>> 55<<< XYZXYZXYZ abcabcab >>>
+6<<< >>> 1<<< >>> 56<<< 123456789 abcdefghi ABCDEDFHI >>>
+7<<< >>> 2<<< >>>
+
+
+-- Date/Time -- x Page 9
+
+
+57<<< xyzxyzxyz XYZXYZXYZ abcabcab >>> 9<<< >>> 60<<< 123456789 >>>
+58<<< 123456789 xyzxyzxyz XYZXYZXYZ >>>
+ \ No newline at end of file
diff --git a/tests/pr/W35Jml17f-lmlo b/tests/pr/W35Jml17f-lmlo
deleted file mode 100644
index 6d01a9d..0000000
--- a/tests/pr/W35Jml17f-lmlo
+++ /dev/null
@@ -1,118 +0,0 @@
--- Date/Time -- x Page 1
-
-
-1<<< -Test: FF's in Text >>> 1::: Test-INPUT: "Without FF set by Hand" :::
-2<<< -b -3 / -a -3 / ... >>> 2::: Options -b -3 [+2|+3] [-l 15|8] [-f] :::
-3<<< >>> 3::: Options -a -3 [+2|+3] [-l 15|8] [-f] :::
-4<<< 123456789 123456789 123456789 12345678 >>> 4::: Options [+2|+3] [-l 24|17] [-f] :::
- 5::: :::
-6<<< -Arangements: One Empty Page >>> 6::: -------------------------------------------- :::
-7<<< \f\f\n; text\f\n\ftext; \f\ftext; >>> 7::: 789 123456789 123456789 123456789 123456789 123456789 123456789 1234567890 :::
-8<<< f\f\n; \f\n\f\n; >>> 8::: 3 Columns downwards, across, ...: :::
-9<<< >>> 9::: With columns use <= 5 text lines/page, :::
-10<<< >>> 10::: without -f e.g.: -l 15 = total lines/page, :::
-1<<< >>> 1::: with -f e.g. : -l 8 -f :::
-2<<< >>> 2::: :::
-3<<< truncation before FF; r_r_o_l-test: >>> 3::: line truncation before new page; r_r_o_l-test: :::
-14<<< 123456789 123456789 123456789 >>> 14::: 89 123456789 123456789 123456789 123456789 123456789 123456789 1234567890 :::
- -- Date/Time -- x Page 2
-
-
- 15::: xyzxyzxyz XYZXYZXYZ abcabcab :::
- 16::: 456789 123456789 xyzxyzxyz XYZXYZXYZ :::
- 7::: 12345678 :::
- 8::: 12345678 :::
- 9::: 3456789 ab :::
- 20::: DEFGHI 123 :::
- 21::: 89 123456789 123456789 123456789 123456789 123456789 123456789 1234567890 :::
- 2::: 12345678 :::
- 3::: 12345678 :::
- 4::: 12345678 :::
- 5::: 12345678 :::
- 6::: 12345678 :::
- 27::: no truncation before nwe page; (r_l-test): :::
- 28::: 89 123456789 123456789 123456789 123456789 123456789 123456789 1234567890 :::
- -- Date/Time -- x Page 3
-
-
-15<<< xyzxyzxyz XYZXYZXYZ abcabcab >>> 29::: xyzxyzxyz XYZXYZXYZ abcabcab :::
-16<<< 123456789 xyzxyzxyz XYZXYZXYZ >>> 30::: 456789 123456789 xyzxyzxyz XYZXYZXYZ :::
-7<<< >>> 1::: 12345678 :::
-8<<< >>> 2::: 3456789 abcdefghi :::
-9<<< >>> 3::: 12345678 :::
-20<<< >>> 4::: 12345678 :::
-1<<< >>> 35::: 89 123456789 123456789 123456789 123456789 123456789 123456789 1234567890 :::
- 6::: 12345678 :::
- 7::: 12345678 :::
-4<<< >>> 8::: 12345678 :::
-5<<< >>> 9::: 3456789 abcdefghi :::
-6<<< >>> 40::: DEFGHI 123456789 :::
-27<<< truncation before FF; (r_l-test): >>> 41::: yzxyzxyz XYZXYZXYZ abcabcab :::
-28<<< trunc 42::: 89 123456789 123456789 123456789 123456789 123456789 123456789 1234567890 :::
- -- Date/Time -- x Page 4
-
-
- 43::: xyzxyzxyz XYZXYZXYZ abcabcab :::
- 44::: 456789 123456789 xyzxyzxyz XYZXYZXYZ :::
- 5::: 12345678 :::
- 6::: 12345678 :::
- 7::: 12345678 :::
- 8::: 12345678 :::
- 49::: 89 123456789 123456789 123456789 123456789 123456789 123456789 1234567890 :::
- 50::: 12345678 :::
- 1::: 12345678 :::
- 2::: 12345678 :::
- 3::: 12345678 :::
- 4::: 12345678 :::
- 55::: yzxyzxyz XYZXYZXYZ abcabcab :::
- 56::: 89 123456789 123456789 123456789 123456789 123456789 123456789 1234567890 :::
- -- Date/Time -- x Page 5
-
-
-29<<<xyzxyzxyz XYZXYZXYZ abcabcab >>> 57::: xyzxyzxyz XYZXYZXYZ abcabcab :::
-30<<< 123456789 xyzxyzxyz XYZXYZXYZ >>> 58::: 456789 123456789 xyzxyzxyz XYZXYZXYZ :::
-1<<< >>> 9::: 12345678 :::
-2<<< abcdefghi >>> 60::: DEFGHI 123456789 :::
-3<<< >>> 1::: :::
-4<<< >>> 2::: :::
-5<<< >>> 3::: ------- EOF -------- EOF -------- EOF ------- EOF ------- EOF ------- EOF :::
-6<<< >>>
-7<<< >>>
-8<<< >>>
-9<<< abcdefghi >>>
-40<<< 123456789 >>>
-41<<< XYZXYZXYZ abcabcab >>>
-42<<< 123456789 abcdefghi ABCDEDFHI >>>
- -- Date/Time -- x Page 6
-
-
-
- -- Date/Time -- x Page 7
-
-
-
- -- Date/Time -- x Page 8
-
-
-43<<< xyzxyzxyz XYZXYZXYZ abcabcab >>>
-44<<< 123456789 xyzxyzxyz XYZXYZXYZ >>>
-5<<< >>>
-6<<< >>>
-7<<< >>>
-8<<< >>>
-9<<< >>>
-50<<< >>>
-1<<< >>>
-2<<< >>>
-3<<< >>>
-4<<< >>>
-55<<< XYZXYZXYZ abcabcab >>>
-56<<< 123456789 abcdefghi ABCDEDFHI >>>
- -- Date/Time -- x Page 9
-
-
-57<<< xyzxyzxyz XYZXYZXYZ abcabcab >>>
-58<<< 123456789 xyzxyzxyz XYZXYZXYZ >>>
-9<<< >>>
-60<<< 123456789 >>>
- \ No newline at end of file
diff --git a/tests/pr/W35Jml24f-lmlo b/tests/pr/W35Jml24f-lmlo
new file mode 100644
index 0000000..0097993
--- /dev/null
+++ b/tests/pr/W35Jml24f-lmlo
@@ -0,0 +1,136 @@
+
+
+-- Date/Time -- x Page 1
+
+
+1<<< -Test: FF's in Text >>> 1::: Test-INPUT: "Without FF set by Hand" :::
+2<<< -b -3 / -a -3 / ... >>> 2::: Options -b -3 [+2|+3] [-l 15|8] [-f] :::
+3<<< >>> 3::: Options -a -3 [+2|+3] [-l 15|8] [-f] :::
+4<<< 123456789 123456789 123456789 12345678 >>> 4::: Options [+2|+3] [-l 24|17] [-f] :::
+ 5::: :::
+6<<< -Arangements: One Empty Page >>> 6::: -------------------------------------------- :::
+7<<< \f\f\n; text\f\n\ftext; \f\ftext; >>> 7::: 789 123456789 123456789 123456789 123456789 123456789 123456789 1234567890 :::
+8<<< f\f\n; \f\n\f\n; >>> 8::: 3 Columns downwards, across, ...: :::
+9<<< >>> 9::: With columns use <= 5 text lines/page, :::
+10<<< >>> 10::: without -f e.g.: -l 15 = total lines/page, :::
+1<<< >>> 1::: with -f e.g. : -l 8 -f :::
+2<<< >>> 2::: :::
+3<<< truncation before FF; r_r_o_l-test: >>> 3::: line truncation before new page; r_r_o_l-test: :::
+14<<< 123456789 123456789 123456789 >>> 14::: 89 123456789 123456789 123456789 123456789 123456789 123456789 1234567890 :::
+
+
+-- Date/Time -- x Page 2
+
+
+ 15::: xyzxyzxyz XYZXYZXYZ abcabcab :::
+ 16::: 456789 123456789 xyzxyzxyz XYZXYZXYZ :::
+ 7::: 12345678 :::
+ 8::: 12345678 :::
+ 9::: 3456789 ab :::
+ 20::: DEFGHI 123 :::
+ 21::: 89 123456789 123456789 123456789 123456789 123456789 123456789 1234567890 :::
+ 2::: 12345678 :::
+ 3::: 12345678 :::
+ 4::: 12345678 :::
+ 5::: 12345678 :::
+ 6::: 12345678 :::
+ 27::: no truncation before nwe page; (r_l-test): :::
+ 28::: 89 123456789 123456789 123456789 123456789 123456789 123456789 1234567890 :::
+
+
+-- Date/Time -- x Page 3
+
+
+15<<< xyzxyzxyz XYZXYZXYZ abcabcab >>> 29::: xyzxyzxyz XYZXYZXYZ abcabcab :::
+16<<< 123456789 xyzxyzxyz XYZXYZXYZ >>> 30::: 456789 123456789 xyzxyzxyz XYZXYZXYZ :::
+7<<< >>> 1::: 12345678 :::
+8<<< >>> 2::: 3456789 abcdefghi :::
+9<<< >>> 3::: 12345678 :::
+20<<< >>> 4::: 12345678 :::
+1<<< >>> 35::: 89 123456789 123456789 123456789 123456789 123456789 123456789 1234567890 :::
+ 6::: 12345678 :::
+ 7::: 12345678 :::
+4<<< >>> 8::: 12345678 :::
+5<<< >>> 9::: 3456789 abcdefghi :::
+6<<< >>> 40::: DEFGHI 123456789 :::
+27<<< truncation before FF; (r_l-test): >>> 41::: yzxyzxyz XYZXYZXYZ abcabcab :::
+28<<< trunc 42::: 89 123456789 123456789 123456789 123456789 123456789 123456789 1234567890 :::
+
+
+-- Date/Time -- x Page 4
+
+
+ 43::: xyzxyzxyz XYZXYZXYZ abcabcab :::
+ 44::: 456789 123456789 xyzxyzxyz XYZXYZXYZ :::
+ 5::: 12345678 :::
+ 6::: 12345678 :::
+ 7::: 12345678 :::
+ 8::: 12345678 :::
+ 49::: 89 123456789 123456789 123456789 123456789 123456789 123456789 1234567890 :::
+ 50::: 12345678 :::
+ 1::: 12345678 :::
+ 2::: 12345678 :::
+ 3::: 12345678 :::
+ 4::: 12345678 :::
+ 55::: yzxyzxyz XYZXYZXYZ abcabcab :::
+ 56::: 89 123456789 123456789 123456789 123456789 123456789 123456789 1234567890 :::
+
+
+-- Date/Time -- x Page 5
+
+
+29<<<xyzxyzxyz XYZXYZXYZ abcabcab >>> 57::: xyzxyzxyz XYZXYZXYZ abcabcab :::
+30<<< 123456789 xyzxyzxyz XYZXYZXYZ >>> 58::: 456789 123456789 xyzxyzxyz XYZXYZXYZ :::
+1<<< >>> 9::: 12345678 :::
+2<<< abcdefghi >>> 60::: DEFGHI 123456789 :::
+3<<< >>> 1::: :::
+4<<< >>> 2::: :::
+5<<< >>> 3::: ------- EOF -------- EOF -------- EOF ------- EOF ------- EOF ------- EOF :::
+6<<< >>>
+7<<< >>>
+8<<< >>>
+9<<< abcdefghi >>>
+40<<< 123456789 >>>
+41<<< XYZXYZXYZ abcabcab >>>
+42<<< 123456789 abcdefghi ABCDEDFHI >>>
+
+
+-- Date/Time -- x Page 6
+
+
+
+
+
+-- Date/Time -- x Page 7
+
+
+
+
+
+-- Date/Time -- x Page 8
+
+
+43<<< xyzxyzxyz XYZXYZXYZ abcabcab >>>
+44<<< 123456789 xyzxyzxyz XYZXYZXYZ >>>
+5<<< >>>
+6<<< >>>
+7<<< >>>
+8<<< >>>
+9<<< >>>
+50<<< >>>
+1<<< >>>
+2<<< >>>
+3<<< >>>
+4<<< >>>
+55<<< XYZXYZXYZ abcabcab >>>
+56<<< 123456789 abcdefghi ABCDEDFHI >>>
+
+
+-- Date/Time -- x Page 9
+
+
+57<<< xyzxyzxyz XYZXYZXYZ abcabcab >>>
+58<<< 123456789 xyzxyzxyz XYZXYZXYZ >>>
+9<<< >>>
+60<<< 123456789 >>>
+ \ No newline at end of file
diff --git a/tests/pr/W35a3l17f-lm b/tests/pr/W35a3l17f-lm
deleted file mode 100644
index 8db0976..0000000
--- a/tests/pr/W35a3l17f-lm
+++ /dev/null
@@ -1,54 +0,0 @@
--- Date/Time -- x Page 1
-
-
-1<<< -Test 2<<< -b -3 3<<< >>>
-4<<< 12345 6<<< -Aran
-7<<< \f\f\ 8<<< f\f\n 9<<< >>>
-10<<< >>> 1<<< >>> 2<<< >>>
-3<<< trunc 14<<< 1234
- -- Date/Time -- x Page 2
-
-
-
- -- Date/Time -- x Page 3
-
-
-15<<< xyzx 16<<< 1234 7<<< >>>
-8<<< >>> 9<<< >>> 20<<< >>>
-1<<< >>>
-4<<< >>> 5<<< >>> 6<<< >>>
-27<<< trun 28<<< trun
- -- Date/Time -- x Page 4
-
-
-
- -- Date/Time -- x Page 5
-
-
-29<<<xyzxyz 30<<< 1234 1<<< >>>
-2<<< abcde 3<<< >>> 4<<< >>>
-5<<< >>> 6<<< >>> 7<<< >>>
-8<<< >>> 9<<< abcde 40<<< 1234
-41<<< XYZX 42<<< 1234
- -- Date/Time -- x Page 6
-
-
-
- -- Date/Time -- x Page 7
-
-
-
- -- Date/Time -- x Page 8
-
-
-43<<< xyzx 44<<< 1234 5<<< >>>
-6<<< >>> 7<<< >>> 8<<< >>>
-9<<< >>> 50<<< >>> 1<<< >>>
-2<<< >>> 3<<< >>> 4<<< >>>
-55<<< XYZX 56<<< 1234
- -- Date/Time -- x Page 9
-
-
-57<<< xyzx 58<<< 1234 9<<< >>>
-60<<< 1234
- \ No newline at end of file
diff --git a/tests/pr/W35a3l24f-lm b/tests/pr/W35a3l24f-lm
new file mode 100644
index 0000000..1a228df
--- /dev/null
+++ b/tests/pr/W35a3l24f-lm
@@ -0,0 +1,72 @@
+
+
+-- Date/Time -- x Page 1
+
+
+1<<< -Test 2<<< -b -3 3<<< >>>
+4<<< 12345 6<<< -Aran
+7<<< \f\f\ 8<<< f\f\n 9<<< >>>
+10<<< >>> 1<<< >>> 2<<< >>>
+3<<< trunc 14<<< 1234
+
+
+-- Date/Time -- x Page 2
+
+
+
+
+
+-- Date/Time -- x Page 3
+
+
+15<<< xyzx 16<<< 1234 7<<< >>>
+8<<< >>> 9<<< >>> 20<<< >>>
+1<<< >>>
+4<<< >>> 5<<< >>> 6<<< >>>
+27<<< trun 28<<< trun
+
+
+-- Date/Time -- x Page 4
+
+
+
+
+
+-- Date/Time -- x Page 5
+
+
+29<<<xyzxyz 30<<< 1234 1<<< >>>
+2<<< abcde 3<<< >>> 4<<< >>>
+5<<< >>> 6<<< >>> 7<<< >>>
+8<<< >>> 9<<< abcde 40<<< 1234
+41<<< XYZX 42<<< 1234
+
+
+-- Date/Time -- x Page 6
+
+
+
+
+
+-- Date/Time -- x Page 7
+
+
+
+
+
+-- Date/Time -- x Page 8
+
+
+43<<< xyzx 44<<< 1234 5<<< >>>
+6<<< >>> 7<<< >>> 8<<< >>>
+9<<< >>> 50<<< >>> 1<<< >>>
+2<<< >>> 3<<< >>> 4<<< >>>
+55<<< XYZX 56<<< 1234
+
+
+-- Date/Time -- x Page 9
+
+
+57<<< xyzx 58<<< 1234 9<<< >>>
+60<<< 1234
+ \ No newline at end of file
diff --git a/tests/pr/W35b3l17f-lm b/tests/pr/W35b3l17f-lm
deleted file mode 100644
index a53ac72..0000000
--- a/tests/pr/W35b3l17f-lm
+++ /dev/null
@@ -1,54 +0,0 @@
--- Date/Time -- x Page 1
-
-
-1<<< -Test 6<<< -Aran 1<<< >>>
-2<<< -b -3 7<<< \f\f\ 2<<< >>>
-3<<< >>> 8<<< f\f\n 3<<< trunc
-4<<< 12345 9<<< >>> 14<<< 1234
- 10<<< >>>
- -- Date/Time -- x Page 2
-
-
-
- -- Date/Time -- x Page 3
-
-
-15<<< xyzx 20<<< >>> 5<<< >>>
-16<<< 1234 1<<< >>> 6<<< >>>
-7<<< >>> 27<<< trun
-8<<< >>> 28<<< trun
-9<<< >>> 4<<< >>>
- -- Date/Time -- x Page 4
-
-
-
- -- Date/Time -- x Page 5
-
-
-29<<<xyzxyz 4<<< >>> 9<<< abcde
-30<<< 1234 5<<< >>> 40<<< 1234
-1<<< >>> 6<<< >>> 41<<< XYZX
-2<<< abcde 7<<< >>> 42<<< 1234
-3<<< >>> 8<<< >>>
- -- Date/Time -- x Page 6
-
-
-
- -- Date/Time -- x Page 7
-
-
-
- -- Date/Time -- x Page 8
-
-
-43<<< xyzx 8<<< >>> 3<<< >>>
-44<<< 1234 9<<< >>> 4<<< >>>
-5<<< >>> 50<<< >>> 55<<< XYZX
-6<<< >>> 1<<< >>> 56<<< 1234
-7<<< >>> 2<<< >>>
- -- Date/Time -- x Page 9
-
-
-57<<< xyzx 9<<< >>> 60<<< 1234
-58<<< 1234
- \ No newline at end of file
diff --git a/tests/pr/W35b3l24f-lm b/tests/pr/W35b3l24f-lm
new file mode 100644
index 0000000..3ec5d3f
--- /dev/null
+++ b/tests/pr/W35b3l24f-lm
@@ -0,0 +1,72 @@
+
+
+-- Date/Time -- x Page 1
+
+
+1<<< -Test 6<<< -Aran 1<<< >>>
+2<<< -b -3 7<<< \f\f\ 2<<< >>>
+3<<< >>> 8<<< f\f\n 3<<< trunc
+4<<< 12345 9<<< >>> 14<<< 1234
+ 10<<< >>>
+
+
+-- Date/Time -- x Page 2
+
+
+
+
+
+-- Date/Time -- x Page 3
+
+
+15<<< xyzx 20<<< >>> 5<<< >>>
+16<<< 1234 1<<< >>> 6<<< >>>
+7<<< >>> 27<<< trun
+8<<< >>> 28<<< trun
+9<<< >>> 4<<< >>>
+
+
+-- Date/Time -- x Page 4
+
+
+
+
+
+-- Date/Time -- x Page 5
+
+
+29<<<xyzxyz 4<<< >>> 9<<< abcde
+30<<< 1234 5<<< >>> 40<<< 1234
+1<<< >>> 6<<< >>> 41<<< XYZX
+2<<< abcde 7<<< >>> 42<<< 1234
+3<<< >>> 8<<< >>>
+
+
+-- Date/Time -- x Page 6
+
+
+
+
+
+-- Date/Time -- x Page 7
+
+
+
+
+
+-- Date/Time -- x Page 8
+
+
+43<<< xyzx 8<<< >>> 3<<< >>>
+44<<< 1234 9<<< >>> 4<<< >>>
+5<<< >>> 50<<< >>> 55<<< XYZX
+6<<< >>> 1<<< >>> 56<<< 1234
+7<<< >>> 2<<< >>>
+
+
+-- Date/Time -- x Page 9
+
+
+57<<< xyzx 9<<< >>> 60<<< 1234
+58<<< 1234
+ \ No newline at end of file
diff --git a/tests/pr/W35ml17f-lm-lo b/tests/pr/W35ml17f-lm-lo
deleted file mode 100644
index 4c9c9d7..0000000
--- a/tests/pr/W35ml17f-lm-lo
+++ /dev/null
@@ -1,118 +0,0 @@
--- Date/Time -- x Page 1
-
-
-1<<< -Test: FF's 1::: Test-INPUT:
-2<<< -b -3 / -a 2::: Options -b
-3<<< >>> 3::: Options -a
-4<<< 123456789 1 4::: Options
- 5::: :::
-6<<< -Arangement 6::: -----------
-7<<< \f\f\n; tex 7::: 789 1234567
-8<<< f\f\n; \f\n 8::: 3 Columns d
-9<<< >>> 9::: With column
-10<<< >>> 10::: without -f
-1<<< >>> 1::: with -f e.g
-2<<< >>> 2::: :::
-3<<< truncation 3::: line trunca
-14<<< 123456789 14::: 89 1234567
- -- Date/Time -- x Page 2
-
-
- 15::: xyzxyzxyz
- 16::: 456789 123
- 7::: 12345678 :
- 8::: 12345678 :
- 9::: 3456789 ab
- 20::: DEFGHI 123
- 21::: 89 1234567
- 2::: 12345678 :
- 3::: 12345678 :
- 4::: 12345678 :
- 5::: 12345678 :
- 6::: 12345678 :
- 27::: no truncat
- 28::: 89 1234567
- -- Date/Time -- x Page 3
-
-
-15<<< xyzxyzxyz 29::: xyzxyzxyz
-16<<< 123456789 30::: 456789 123
-7<<< >>> 1::: 12345678 :
-8<<< >>> 2::: 3456789 abc
-9<<< >>> 3::: 12345678 :
-20<<< >>> 4::: 12345678 :
-1<<< >>> 35::: 89 1234567
- 6::: 12345678 :
- 7::: 12345678 :
-4<<< >>> 8::: 12345678 :
-5<<< >>> 9::: 3456789 abc
-6<<< >>> 40::: DEFGHI 123
-27<<< truncation 41::: yzxyzxyz X
-28<<< trunc 42::: 89 1234567
- -- Date/Time -- x Page 4
-
-
- 43::: xyzxyzxyz
- 44::: 456789 123
- 5::: 12345678 :
- 6::: 12345678 :
- 7::: 12345678 :
- 8::: 12345678 :
- 49::: 89 1234567
- 50::: 12345678
- 1::: 12345678 :
- 2::: 12345678 :
- 3::: 12345678 :
- 4::: 12345678 :
- 55::: yzxyzxyz X
- 56::: 89 1234567
- -- Date/Time -- x Page 5
-
-
-29<<<xyzxyzxyz XY 57::: xyzxyzxyz
-30<<< 123456789 58::: 456789 123
-1<<< >>> 9::: 12345678 :
-2<<< abcdefghi 60::: DEFGHI 123
-3<<< >>> 1::: :::
-4<<< >>> 2::: :::
-5<<< >>> 3::: ------- EOF
-6<<< >>>
-7<<< >>>
-8<<< >>>
-9<<< abcdefghi
-40<<< 123456789
-41<<< XYZXYZXYZ
-42<<< 123456789
- -- Date/Time -- x Page 6
-
-
-
- -- Date/Time -- x Page 7
-
-
-
- -- Date/Time -- x Page 8
-
-
-43<<< xyzxyzxyz
-44<<< 123456789
-5<<< >>>
-6<<< >>>
-7<<< >>>
-8<<< >>>
-9<<< >>>
-50<<< >>>
-1<<< >>>
-2<<< >>>
-3<<< >>>
-4<<< >>>
-55<<< XYZXYZXYZ
-56<<< 123456789
- -- Date/Time -- x Page 9
-
-
-57<<< xyzxyzxyz
-58<<< 123456789
-9<<< >>>
-60<<< 123456789
- \ No newline at end of file
diff --git a/tests/pr/W35ml24f-lm-lo b/tests/pr/W35ml24f-lm-lo
new file mode 100644
index 0000000..8b4e701
--- /dev/null
+++ b/tests/pr/W35ml24f-lm-lo
@@ -0,0 +1,136 @@
+
+
+-- Date/Time -- x Page 1
+
+
+1<<< -Test: FF's 1::: Test-INPUT:
+2<<< -b -3 / -a 2::: Options -b
+3<<< >>> 3::: Options -a
+4<<< 123456789 1 4::: Options
+ 5::: :::
+6<<< -Arangement 6::: -----------
+7<<< \f\f\n; tex 7::: 789 1234567
+8<<< f\f\n; \f\n 8::: 3 Columns d
+9<<< >>> 9::: With column
+10<<< >>> 10::: without -f
+1<<< >>> 1::: with -f e.g
+2<<< >>> 2::: :::
+3<<< truncation 3::: line trunca
+14<<< 123456789 14::: 89 1234567
+
+
+-- Date/Time -- x Page 2
+
+
+ 15::: xyzxyzxyz
+ 16::: 456789 123
+ 7::: 12345678 :
+ 8::: 12345678 :
+ 9::: 3456789 ab
+ 20::: DEFGHI 123
+ 21::: 89 1234567
+ 2::: 12345678 :
+ 3::: 12345678 :
+ 4::: 12345678 :
+ 5::: 12345678 :
+ 6::: 12345678 :
+ 27::: no truncat
+ 28::: 89 1234567
+
+
+-- Date/Time -- x Page 3
+
+
+15<<< xyzxyzxyz 29::: xyzxyzxyz
+16<<< 123456789 30::: 456789 123
+7<<< >>> 1::: 12345678 :
+8<<< >>> 2::: 3456789 abc
+9<<< >>> 3::: 12345678 :
+20<<< >>> 4::: 12345678 :
+1<<< >>> 35::: 89 1234567
+ 6::: 12345678 :
+ 7::: 12345678 :
+4<<< >>> 8::: 12345678 :
+5<<< >>> 9::: 3456789 abc
+6<<< >>> 40::: DEFGHI 123
+27<<< truncation 41::: yzxyzxyz X
+28<<< trunc 42::: 89 1234567
+
+
+-- Date/Time -- x Page 4
+
+
+ 43::: xyzxyzxyz
+ 44::: 456789 123
+ 5::: 12345678 :
+ 6::: 12345678 :
+ 7::: 12345678 :
+ 8::: 12345678 :
+ 49::: 89 1234567
+ 50::: 12345678
+ 1::: 12345678 :
+ 2::: 12345678 :
+ 3::: 12345678 :
+ 4::: 12345678 :
+ 55::: yzxyzxyz X
+ 56::: 89 1234567
+
+
+-- Date/Time -- x Page 5
+
+
+29<<<xyzxyzxyz XY 57::: xyzxyzxyz
+30<<< 123456789 58::: 456789 123
+1<<< >>> 9::: 12345678 :
+2<<< abcdefghi 60::: DEFGHI 123
+3<<< >>> 1::: :::
+4<<< >>> 2::: :::
+5<<< >>> 3::: ------- EOF
+6<<< >>>
+7<<< >>>
+8<<< >>>
+9<<< abcdefghi
+40<<< 123456789
+41<<< XYZXYZXYZ
+42<<< 123456789
+
+
+-- Date/Time -- x Page 6
+
+
+
+
+
+-- Date/Time -- x Page 7
+
+
+
+
+
+-- Date/Time -- x Page 8
+
+
+43<<< xyzxyzxyz
+44<<< 123456789
+5<<< >>>
+6<<< >>>
+7<<< >>>
+8<<< >>>
+9<<< >>>
+50<<< >>>
+1<<< >>>
+2<<< >>>
+3<<< >>>
+4<<< >>>
+55<<< XYZXYZXYZ
+56<<< 123456789
+
+
+-- Date/Time -- x Page 9
+
+
+57<<< xyzxyzxyz
+58<<< 123456789
+9<<< >>>
+60<<< 123456789
+ \ No newline at end of file
diff --git a/tests/pr/W72Jl17f-ll b/tests/pr/W72Jl17f-ll
deleted file mode 100644
index 1cbbf4e..0000000
--- a/tests/pr/W72Jl17f-ll
+++ /dev/null
@@ -1,92 +0,0 @@
--- Date/Time -- x Page 1
-
-
-1<<< -Test: FF's in Text >>>
-2<<< -b -3 / -a -3 / ... >>>
-3<<< >>>
-4<<< 123456789 123456789 123456789 123456789 123456789 123456789 123456789 >>>
-
-6<<< -Arangements: One Empty Page >>>
-7<<< \f\f\n; text\f\n\ftext; \f\ftext; >>>
-8<<< f\f\n; \f\n\f\n; >>>
-9<<< >>>
-10<<< >>>
-1<<< >>>
-2<<< >>>
-3<<< truncation before FF; r_r_o_l-test: >>>
-14<<< 123456789 123456789 123456789 >>>
- -- Date/Time -- x Page 2
-
-
-
- -- Date/Time -- x Page 3
-
-
-15<<< xyzxyzxyz XYZXYZXYZ abcabcab >>>
-16<<< 123456789 xyzxyzxyz XYZXYZXYZ >>>
-7<<< >>>
-8<<< >>>
-9<<< >>>
-20<<< >>>
-1<<< >>>
-
-
-4<<< >>>
-5<<< >>>
-6<<< >>>
-27<<< truncation before FF; (r_l-test): >>>
-28<<< trunc
- -- Date/Time -- x Page 4
-
-
-
- -- Date/Time -- x Page 5
-
-
-29<<<xyzxyzxyz XYZXYZXYZ abcabcab >>>
-30<<< 123456789 xyzxyzxyz XYZXYZXYZ >>>
-1<<< >>>
-2<<< abcdefghi >>>
-3<<< >>>
-4<<< >>>
-5<<< >>>
-6<<< >>>
-7<<< >>>
-8<<< >>>
-9<<< abcdefghi >>>
-40<<< 123456789 >>>
-41<<< XYZXYZXYZ abcabcab >>>
-42<<< 123456789 abcdefghi ABCDEDFHI >>>
- -- Date/Time -- x Page 6
-
-
-
- -- Date/Time -- x Page 7
-
-
-
- -- Date/Time -- x Page 8
-
-
-43<<< xyzxyzxyz XYZXYZXYZ abcabcab >>>
-44<<< 123456789 xyzxyzxyz XYZXYZXYZ >>>
-5<<< >>>
-6<<< >>>
-7<<< >>>
-8<<< >>>
-9<<< >>>
-50<<< >>>
-1<<< >>>
-2<<< >>>
-3<<< >>>
-4<<< >>>
-55<<< XYZXYZXYZ abcabcab >>>
-56<<< 123456789 abcdefghi ABCDEDFHI >>>
- -- Date/Time -- x Page 9
-
-
-57<<< xyzxyzxyz XYZXYZXYZ abcabcab >>>
-58<<< 123456789 xyzxyzxyz XYZXYZXYZ >>>
-9<<< >>>
-60<<< 123456789 >>>
- \ No newline at end of file
diff --git a/tests/pr/W72Jl24f-ll b/tests/pr/W72Jl24f-ll
new file mode 100644
index 0000000..109cbaa
--- /dev/null
+++ b/tests/pr/W72Jl24f-ll
@@ -0,0 +1,110 @@
+
+
+-- Date/Time -- x Page 1
+
+
+1<<< -Test: FF's in Text >>>
+2<<< -b -3 / -a -3 / ... >>>
+3<<< >>>
+4<<< 123456789 123456789 123456789 123456789 123456789 123456789 123456789 >>>
+
+6<<< -Arangements: One Empty Page >>>
+7<<< \f\f\n; text\f\n\ftext; \f\ftext; >>>
+8<<< f\f\n; \f\n\f\n; >>>
+9<<< >>>
+10<<< >>>
+1<<< >>>
+2<<< >>>
+3<<< truncation before FF; r_r_o_l-test: >>>
+14<<< 123456789 123456789 123456789 >>>
+
+
+-- Date/Time -- x Page 2
+
+
+
+
+
+-- Date/Time -- x Page 3
+
+
+15<<< xyzxyzxyz XYZXYZXYZ abcabcab >>>
+16<<< 123456789 xyzxyzxyz XYZXYZXYZ >>>
+7<<< >>>
+8<<< >>>
+9<<< >>>
+20<<< >>>
+1<<< >>>
+
+
+4<<< >>>
+5<<< >>>
+6<<< >>>
+27<<< truncation before FF; (r_l-test): >>>
+28<<< trunc
+
+
+-- Date/Time -- x Page 4
+
+
+
+
+
+-- Date/Time -- x Page 5
+
+
+29<<<xyzxyzxyz XYZXYZXYZ abcabcab >>>
+30<<< 123456789 xyzxyzxyz XYZXYZXYZ >>>
+1<<< >>>
+2<<< abcdefghi >>>
+3<<< >>>
+4<<< >>>
+5<<< >>>
+6<<< >>>
+7<<< >>>
+8<<< >>>
+9<<< abcdefghi >>>
+40<<< 123456789 >>>
+41<<< XYZXYZXYZ abcabcab >>>
+42<<< 123456789 abcdefghi ABCDEDFHI >>>
+
+
+-- Date/Time -- x Page 6
+
+
+
+
+
+-- Date/Time -- x Page 7
+
+
+
+
+
+-- Date/Time -- x Page 8
+
+
+43<<< xyzxyzxyz XYZXYZXYZ abcabcab >>>
+44<<< 123456789 xyzxyzxyz XYZXYZXYZ >>>
+5<<< >>>
+6<<< >>>
+7<<< >>>
+8<<< >>>
+9<<< >>>
+50<<< >>>
+1<<< >>>
+2<<< >>>
+3<<< >>>
+4<<< >>>
+55<<< XYZXYZXYZ abcabcab >>>
+56<<< 123456789 abcdefghi ABCDEDFHI >>>
+
+
+-- Date/Time -- x Page 9
+
+
+57<<< xyzxyzxyz XYZXYZXYZ abcabcab >>>
+58<<< 123456789 xyzxyzxyz XYZXYZXYZ >>>
+9<<< >>>
+60<<< 123456789 >>>
+ \ No newline at end of file
diff --git a/tests/pr/a3f-0F b/tests/pr/a3f-0F
index b7d0123..5a11e10 100644
--- a/tests/pr/a3f-0F
+++ b/tests/pr/a3f-0F
@@ -1,8 +1,12 @@
+
+
-- Date/Time -- x Page 1
- -- Date/Time -- x Page 2
+
+
+-- Date/Time -- x Page 2
1 FF-Test: FF's at St 2 Options -b -3 / -a 3 -------------------
@@ -10,11 +14,15 @@
7 \ftext; \f\ntext; 8 \f\ftext; \f\f\ntex 9 3456789 123456789 123
10 zzzzzzzzzzzzzzzzzzz 1 2
3 line truncation befor 14 456789 123456789 123
- -- Date/Time -- x Page 3
+
+-- Date/Time -- x Page 3
- -- Date/Time -- x Page 4
+
+
+
+-- Date/Time -- x Page 4
15 xyzxyzxyz XYZXYZXYZ 16 456789 123456789 xyz 7
@@ -22,7 +30,9 @@
1 2 3
4 5 6
27 no truncation before 28 no trunc
- -- Date/Time -- x Page 5
+
+
+-- Date/Time -- x Page 5
29 xyzxyzxyz XYZXYZXYZ 30 456789 123456789 xyz 1
diff --git a/tests/pr/a3f-0FF b/tests/pr/a3f-0FF
index ec257d6..4f4ed40 100644
--- a/tests/pr/a3f-0FF
+++ b/tests/pr/a3f-0FF
@@ -1,12 +1,18 @@
+
+
-- Date/Time -- x Page 1
- -- Date/Time -- x Page 2
+
+
+-- Date/Time -- x Page 2
+
+
- -- Date/Time -- x Page 3
+-- Date/Time -- x Page 3
1 FF-Test: FF's at St 2 Options -b -3 / -a 3 -------------------
@@ -14,11 +20,15 @@
7 \ftext; \f\ntext; 8 \f\ftext; \f\f\ntex 9 3456789 123456789 123
10 zzzzzzzzzzzzzzzzzzz 1 2
3 line truncation befor 14 456789 123456789 123
- -- Date/Time -- x Page 4
+
+-- Date/Time -- x Page 4
- -- Date/Time -- x Page 5
+
+
+
+-- Date/Time -- x Page 5
15 xyzxyzxyz XYZXYZXYZ 16 456789 123456789 xyz 7
@@ -26,7 +36,9 @@
1 2 3
4 5 6
27 no truncation before 28 no trunc
- -- Date/Time -- x Page 6
+
+
+-- Date/Time -- x Page 6
29 xyzxyzxyz XYZXYZXYZ 30 456789 123456789 xyz 1
diff --git a/tests/pr/a3f-FF b/tests/pr/a3f-FF
index 45d1f82..ee7325f 100644
--- a/tests/pr/a3f-FF
+++ b/tests/pr/a3f-FF
@@ -1,3 +1,5 @@
+
+
-- Date/Time -- x Page 1
@@ -6,11 +8,15 @@
7 text\f\f\n; text\f\ 8 \f\f\n; \f\n\f\n; 9
10 zzzzzzzzzzzzzzzzzzz 1 2
3 line truncation befor 14 456789 123456789 123
- -- Date/Time -- x Page 2
+
+
+-- Date/Time -- x Page 2
- -- Date/Time -- x Page 3
+
+
+-- Date/Time -- x Page 3
15 xyzxyzxyz XYZXYZXYZ 16 456789 123456789 xyz 7
@@ -18,11 +24,15 @@
1 2 3
4 5 6
27 no truncation before 28 no trunc
- -- Date/Time -- x Page 4
+
+
+-- Date/Time -- x Page 4
- -- Date/Time -- x Page 5
+
+
+-- Date/Time -- x Page 5
29 xyzxyzxyz XYZXYZXYZ 30 456789 123456789 xyz 1
@@ -30,15 +40,21 @@
5 6 7
8 9 3456789 abcdefghi 40 DEFGHI 123456789
41 yzxyzxyz XYZXYZXYZ a 42 456789 123456789 abc
- -- Date/Time -- x Page 6
+
+
+-- Date/Time -- x Page 6
+
+
- -- Date/Time -- x Page 7
+-- Date/Time -- x Page 7
- -- Date/Time -- x Page 8
+
+
+-- Date/Time -- x Page 8
43 xyzxyzxyz XYZXYZXYZ 44 456789 123456789 xyz 5
@@ -46,7 +62,9 @@
9 50 1
2 3 4
55 yzxyzxyz XYZXYZXYZ a 56 456789 123456789 abc
- -- Date/Time -- x Page 9
+
+
+-- Date/Time -- x Page 9
57 xyzxyzxyz XYZXYZXYZ 58 456789 123456789 xyz 9
diff --git a/tests/pr/a3l15f-t b/tests/pr/a3l15f-t
new file mode 100644
index 0000000..21c210a
--- /dev/null
+++ b/tests/pr/a3l15f-t
@@ -0,0 +1,47 @@
+
+
+-- Date/Time -- x Page 1
+
+
+1 Test-INPUT: "Withou 2 Options -b -3 [+2|+ 3 Options -a -3 [+2|+
+4 Options [+2|+ 5 6 -------------------
+7 3456789 123456789 123 8 3 Columns downwards 9 With columns use <
+10 without -f e.g.: - 1 with -f e.g. : - 2
+3 line truncation befor 14 456789 123456789 123 15 xyzxyzxyz XYZXYZXYZ
+
+
+-- Date/Time -- x Page 2
+
+
+16 456789 123456789 xyz 7 8
+9 3456789 ab 20 DEFGHI 123 1
+2 3 4
+5 6 27 no truncation before
+28 no trunc 29 xyzxyzxyz XYZXYZXYZ 30 456789 123456789 xyz
+
+
+-- Date/Time -- x Page 3
+
+
+1 2 3456789 abcdefghi 3
+4 5 6
+7 8 9 3456789 abcdefghi
+40 DEFGHI 123456789 41 yzxyzxyz XYZXYZXYZ a 42 456789 123456789 abc
+43 xyzxyzxyz XYZXYZXYZ 44 456789 123456789 xyz 5
+
+
+-- Date/Time -- x Page 4
+
+
+6 7 8
+9 50 1
+2 3 4
+55 yzxyzxyz XYZXYZXYZ a 56 456789 123456789 abc 57 xyzxyzxyz XYZXYZXYZ
+58 456789 123456789 xyz 9 60 DEFGHI 123456789
+
+
+-- Date/Time -- x Page 5
+
+
+1 2 3 ------- EOF --------
+ \ No newline at end of file
diff --git a/tests/pr/a3l17f-lm b/tests/pr/a3l17f-lm
deleted file mode 100644
index 833f3ec..0000000
--- a/tests/pr/a3l17f-lm
+++ /dev/null
@@ -1,54 +0,0 @@
--- Date/Time -- x Page 1
-
-
-1<<< -Test: FF's in Te 2<<< -b -3 / -a -3 / . 3<<< >>>
-4<<< 123456789 1234567 6<<< -Arangements: One
-7<<< \f\f\n; text\f\n\ 8<<< f\f\n; \f\n\f\n; 9<<< >>>
-10<<< >>> 1<<< >>> 2<<< >>>
-3<<< truncation before 14<<< 123456789 123456
- -- Date/Time -- x Page 2
-
-
-
- -- Date/Time -- x Page 3
-
-
-15<<< xyzxyzxyz XYZXYZ 16<<< 123456789 xyzxyz 7<<< >>>
-8<<< >>> 9<<< >>> 20<<< >>>
-1<<< >>>
-4<<< >>> 5<<< >>> 6<<< >>>
-27<<< truncation befor 28<<< trunc
- -- Date/Time -- x Page 4
-
-
-
- -- Date/Time -- x Page 5
-
-
-29<<<xyzxyzxyz XYZXYZXY 30<<< 123456789 xyzxyz 1<<< >>>
-2<<< abcdefghi >>> 3<<< >>> 4<<< >>>
-5<<< >>> 6<<< >>> 7<<< >>>
-8<<< >>> 9<<< abcdefghi >>> 40<<< 123456789 >>>
-41<<< XYZXYZXYZ abcabc 42<<< 123456789 abcdef
- -- Date/Time -- x Page 6
-
-
-
- -- Date/Time -- x Page 7
-
-
-
- -- Date/Time -- x Page 8
-
-
-43<<< xyzxyzxyz XYZXYZ 44<<< 123456789 xyzxyz 5<<< >>>
-6<<< >>> 7<<< >>> 8<<< >>>
-9<<< >>> 50<<< >>> 1<<< >>>
-2<<< >>> 3<<< >>> 4<<< >>>
-55<<< XYZXYZXYZ abcabc 56<<< 123456789 abcdef
- -- Date/Time -- x Page 9
-
-
-57<<< xyzxyzxyz XYZXYZ 58<<< 123456789 xyzxyz 9<<< >>>
-60<<< 123456789 >>>
- \ No newline at end of file
diff --git a/tests/pr/a3l24f-lm b/tests/pr/a3l24f-lm
new file mode 100644
index 0000000..0fdbfa3
--- /dev/null
+++ b/tests/pr/a3l24f-lm
@@ -0,0 +1,72 @@
+
+
+-- Date/Time -- x Page 1
+
+
+1<<< -Test: FF's in Te 2<<< -b -3 / -a -3 / . 3<<< >>>
+4<<< 123456789 1234567 6<<< -Arangements: One
+7<<< \f\f\n; text\f\n\ 8<<< f\f\n; \f\n\f\n; 9<<< >>>
+10<<< >>> 1<<< >>> 2<<< >>>
+3<<< truncation before 14<<< 123456789 123456
+
+
+-- Date/Time -- x Page 2
+
+
+
+
+
+-- Date/Time -- x Page 3
+
+
+15<<< xyzxyzxyz XYZXYZ 16<<< 123456789 xyzxyz 7<<< >>>
+8<<< >>> 9<<< >>> 20<<< >>>
+1<<< >>>
+4<<< >>> 5<<< >>> 6<<< >>>
+27<<< truncation befor 28<<< trunc
+
+
+-- Date/Time -- x Page 4
+
+
+
+
+
+-- Date/Time -- x Page 5
+
+
+29<<<xyzxyzxyz XYZXYZXY 30<<< 123456789 xyzxyz 1<<< >>>
+2<<< abcdefghi >>> 3<<< >>> 4<<< >>>
+5<<< >>> 6<<< >>> 7<<< >>>
+8<<< >>> 9<<< abcdefghi >>> 40<<< 123456789 >>>
+41<<< XYZXYZXYZ abcabc 42<<< 123456789 abcdef
+
+
+-- Date/Time -- x Page 6
+
+
+
+
+
+-- Date/Time -- x Page 7
+
+
+
+
+
+-- Date/Time -- x Page 8
+
+
+43<<< xyzxyzxyz XYZXYZ 44<<< 123456789 xyzxyz 5<<< >>>
+6<<< >>> 7<<< >>> 8<<< >>>
+9<<< >>> 50<<< >>> 1<<< >>>
+2<<< >>> 3<<< >>> 4<<< >>>
+55<<< XYZXYZXYZ abcabc 56<<< 123456789 abcdef
+
+
+-- Date/Time -- x Page 9
+
+
+57<<< xyzxyzxyz XYZXYZ 58<<< 123456789 xyzxyz 9<<< >>>
+60<<< 123456789 >>>
+ \ No newline at end of file
diff --git a/tests/pr/a3l8f-t b/tests/pr/a3l8f-t
deleted file mode 100644
index 53b6aa2..0000000
--- a/tests/pr/a3l8f-t
+++ /dev/null
@@ -1,37 +0,0 @@
--- Date/Time -- x Page 1
-
-
-1 Test-INPUT: "Withou 2 Options -b -3 [+2|+ 3 Options -a -3 [+2|+
-4 Options [+2|+ 5 6 -------------------
-7 3456789 123456789 123 8 3 Columns downwards 9 With columns use <
-10 without -f e.g.: - 1 with -f e.g. : - 2
-3 line truncation befor 14 456789 123456789 123 15 xyzxyzxyz XYZXYZXYZ
- -- Date/Time -- x Page 2
-
-
-16 456789 123456789 xyz 7 8
-9 3456789 ab 20 DEFGHI 123 1
-2 3 4
-5 6 27 no truncation before
-28 no trunc 29 xyzxyzxyz XYZXYZXYZ 30 456789 123456789 xyz
- -- Date/Time -- x Page 3
-
-
-1 2 3456789 abcdefghi 3
-4 5 6
-7 8 9 3456789 abcdefghi
-40 DEFGHI 123456789 41 yzxyzxyz XYZXYZXYZ a 42 456789 123456789 abc
-43 xyzxyzxyz XYZXYZXYZ 44 456789 123456789 xyz 5
- -- Date/Time -- x Page 4
-
-
-6 7 8
-9 50 1
-2 3 4
-55 yzxyzxyz XYZXYZXYZ a 56 456789 123456789 abc 57 xyzxyzxyz XYZXYZXYZ
-58 456789 123456789 xyz 9 60 DEFGHI 123456789
- -- Date/Time -- x Page 5
-
-
-1 2 3 ------- EOF --------
- \ No newline at end of file
diff --git a/tests/pr/b3f-0F b/tests/pr/b3f-0F
index 676912e..af54e9a 100644
--- a/tests/pr/b3f-0F
+++ b/tests/pr/b3f-0F
@@ -1,8 +1,12 @@
+
+
-- Date/Time -- x Page 1
- -- Date/Time -- x Page 2
+
+
+-- Date/Time -- x Page 2
1 FF-Test: FF's at St 6 FF-Arangements: Emp 1
@@ -10,11 +14,15 @@
3 ------------------- 8 \f\ftext; \f\f\ntex 3 line truncation befor
4 3456789 123456789 123 9 3456789 123456789 123 14 456789 123456789 123
5 3 Columns downwards 10 zzzzzzzzzzzzzzzzzzz
- -- Date/Time -- x Page 3
+
+-- Date/Time -- x Page 3
- -- Date/Time -- x Page 4
+
+
+
+-- Date/Time -- x Page 4
15 xyzxyzxyz XYZXYZXYZ 20 DEFGHI 123 5
@@ -22,7 +30,9 @@
7 2 27 no truncation before
8 3 28 no trunc
9 3456789 ab 4
- -- Date/Time -- x Page 5
+
+
+-- Date/Time -- x Page 5
29 xyzxyzxyz XYZXYZXYZ 1 3
diff --git a/tests/pr/b3f-0FF b/tests/pr/b3f-0FF
index 41f07ea..a97c9df 100644
--- a/tests/pr/b3f-0FF
+++ b/tests/pr/b3f-0FF
@@ -1,12 +1,18 @@
+
+
-- Date/Time -- x Page 1
- -- Date/Time -- x Page 2
+
+
+-- Date/Time -- x Page 2
+
+
- -- Date/Time -- x Page 3
+-- Date/Time -- x Page 3
1 FF-Test: FF's at St 6 FF-Arangements: Emp 1
@@ -14,11 +20,15 @@
3 ------------------- 8 \f\ftext; \f\f\ntex 3 line truncation befor
4 3456789 123456789 123 9 3456789 123456789 123 14 456789 123456789 123
5 3 Columns downwards 10 zzzzzzzzzzzzzzzzzzz
- -- Date/Time -- x Page 4
+
+-- Date/Time -- x Page 4
- -- Date/Time -- x Page 5
+
+
+
+-- Date/Time -- x Page 5
15 xyzxyzxyz XYZXYZXYZ 20 DEFGHI 123 5
@@ -26,7 +36,9 @@
7 2 27 no truncation before
8 3 28 no trunc
9 3456789 ab 4
- -- Date/Time -- x Page 6
+
+
+-- Date/Time -- x Page 6
29 xyzxyzxyz XYZXYZXYZ 1 3
diff --git a/tests/pr/b3f-FF b/tests/pr/b3f-FF
index 70629f2..b2afdb0 100644
--- a/tests/pr/b3f-FF
+++ b/tests/pr/b3f-FF
@@ -1,3 +1,5 @@
+
+
-- Date/Time -- x Page 1
@@ -6,11 +8,15 @@
3 ------------------- 8 \f\f\n; \f\n\f\n; 3 line truncation befor
4 3456789 123456789 123 9 14 456789 123456789 123
5 3 Columns downwards 10 zzzzzzzzzzzzzzzzzzz
- -- Date/Time -- x Page 2
+
+
+-- Date/Time -- x Page 2
- -- Date/Time -- x Page 3
+
+
+-- Date/Time -- x Page 3
15 xyzxyzxyz XYZXYZXYZ 20 DEFGHI 123 5
@@ -18,11 +24,15 @@
7 2 27 no truncation before
8 3 28 no trunc
9 3456789 ab 4
- -- Date/Time -- x Page 4
+
+
+-- Date/Time -- x Page 4
- -- Date/Time -- x Page 5
+
+
+-- Date/Time -- x Page 5
29 xyzxyzxyz XYZXYZXYZ 4 9 3456789 abcdefghi
@@ -30,15 +40,21 @@
1 6 41 yzxyzxyz XYZXYZXYZ a
2 3456789 abcdefghi 7 42 456789 123456789 abc
3 8
- -- Date/Time -- x Page 6
+
+
+-- Date/Time -- x Page 6
+
+
- -- Date/Time -- x Page 7
+-- Date/Time -- x Page 7
- -- Date/Time -- x Page 8
+
+
+-- Date/Time -- x Page 8
43 xyzxyzxyz XYZXYZXYZ 8 3
@@ -46,7 +62,9 @@
5 50 55 yzxyzxyz XYZXYZXYZ a
6 1 56 456789 123456789 abc
7 2
- -- Date/Time -- x Page 9
+
+
+-- Date/Time -- x Page 9
57 xyzxyzxyz XYZXYZXYZ 9 60 DEFGHI 123456789
diff --git a/tests/pr/b3l15f-t b/tests/pr/b3l15f-t
new file mode 100644
index 0000000..7f2bbc4
--- /dev/null
+++ b/tests/pr/b3l15f-t
@@ -0,0 +1,47 @@
+
+
+-- Date/Time -- x Page 1
+
+
+1 Test-INPUT: "Withou 6 ------------------- 1 with -f e.g. : -
+2 Options -b -3 [+2|+ 7 3456789 123456789 123 2
+3 Options -a -3 [+2|+ 8 3 Columns downwards 3 line truncation befor
+4 Options [+2|+ 9 With columns use < 14 456789 123456789 123
+5 10 without -f e.g.: - 15 xyzxyzxyz XYZXYZXYZ
+
+
+-- Date/Time -- x Page 2
+
+
+16 456789 123456789 xyz 1 6
+7 2 27 no truncation before
+8 3 28 no trunc
+9 3456789 ab 4 29 xyzxyzxyz XYZXYZXYZ
+20 DEFGHI 123 5 30 456789 123456789 xyz
+
+
+-- Date/Time -- x Page 3
+
+
+1 6 41 yzxyzxyz XYZXYZXYZ a
+2 3456789 abcdefghi 7 42 456789 123456789 abc
+3 8 43 xyzxyzxyz XYZXYZXYZ
+4 9 3456789 abcdefghi 44 456789 123456789 xyz
+5 40 DEFGHI 123456789 5
+
+
+-- Date/Time -- x Page 4
+
+
+6 1 56 456789 123456789 abc
+7 2 57 xyzxyzxyz XYZXYZXYZ
+8 3 58 456789 123456789 xyz
+9 4 9
+50 55 yzxyzxyz XYZXYZXYZ a 60 DEFGHI 123456789
+
+
+-- Date/Time -- x Page 5
+
+
+1 2 3 ------- EOF --------
+ \ No newline at end of file
diff --git a/tests/pr/b3l17f-lm b/tests/pr/b3l17f-lm
deleted file mode 100644
index dbb6484..0000000
--- a/tests/pr/b3l17f-lm
+++ /dev/null
@@ -1,54 +0,0 @@
--- Date/Time -- x Page 1
-
-
-1<<< -Test: FF's in Te 6<<< -Arangements: One 1<<< >>>
-2<<< -b -3 / -a -3 / . 7<<< \f\f\n; text\f\n\ 2<<< >>>
-3<<< >>> 8<<< f\f\n; \f\n\f\n; 3<<< truncation before
-4<<< 123456789 1234567 9<<< >>> 14<<< 123456789 123456
- 10<<< >>>
- -- Date/Time -- x Page 2
-
-
-
- -- Date/Time -- x Page 3
-
-
-15<<< xyzxyzxyz XYZXYZ 20<<< >>> 5<<< >>>
-16<<< 123456789 xyzxyz 1<<< >>> 6<<< >>>
-7<<< >>> 27<<< truncation befor
-8<<< >>> 28<<< trunc
-9<<< >>> 4<<< >>>
- -- Date/Time -- x Page 4
-
-
-
- -- Date/Time -- x Page 5
-
-
-29<<<xyzxyzxyz XYZXYZXY 4<<< >>> 9<<< abcdefghi >>>
-30<<< 123456789 xyzxyz 5<<< >>> 40<<< 123456789 >>>
-1<<< >>> 6<<< >>> 41<<< XYZXYZXYZ abcabc
-2<<< abcdefghi >>> 7<<< >>> 42<<< 123456789 abcdef
-3<<< >>> 8<<< >>>
- -- Date/Time -- x Page 6
-
-
-
- -- Date/Time -- x Page 7
-
-
-
- -- Date/Time -- x Page 8
-
-
-43<<< xyzxyzxyz XYZXYZ 8<<< >>> 3<<< >>>
-44<<< 123456789 xyzxyz 9<<< >>> 4<<< >>>
-5<<< >>> 50<<< >>> 55<<< XYZXYZXYZ abcabc
-6<<< >>> 1<<< >>> 56<<< 123456789 abcdef
-7<<< >>> 2<<< >>>
- -- Date/Time -- x Page 9
-
-
-57<<< xyzxyzxyz XYZXYZ 9<<< >>> 60<<< 123456789 >>>
-58<<< 123456789 xyzxyz
- \ No newline at end of file
diff --git a/tests/pr/b3l24f-lm b/tests/pr/b3l24f-lm
new file mode 100644
index 0000000..97fabc2
--- /dev/null
+++ b/tests/pr/b3l24f-lm
@@ -0,0 +1,72 @@
+
+
+-- Date/Time -- x Page 1
+
+
+1<<< -Test: FF's in Te 6<<< -Arangements: One 1<<< >>>
+2<<< -b -3 / -a -3 / . 7<<< \f\f\n; text\f\n\ 2<<< >>>
+3<<< >>> 8<<< f\f\n; \f\n\f\n; 3<<< truncation before
+4<<< 123456789 1234567 9<<< >>> 14<<< 123456789 123456
+ 10<<< >>>
+
+
+-- Date/Time -- x Page 2
+
+
+
+
+
+-- Date/Time -- x Page 3
+
+
+15<<< xyzxyzxyz XYZXYZ 20<<< >>> 5<<< >>>
+16<<< 123456789 xyzxyz 1<<< >>> 6<<< >>>
+7<<< >>> 27<<< truncation befor
+8<<< >>> 28<<< trunc
+9<<< >>> 4<<< >>>
+
+
+-- Date/Time -- x Page 4
+
+
+
+
+
+-- Date/Time -- x Page 5
+
+
+29<<<xyzxyzxyz XYZXYZXY 4<<< >>> 9<<< abcdefghi >>>
+30<<< 123456789 xyzxyz 5<<< >>> 40<<< 123456789 >>>
+1<<< >>> 6<<< >>> 41<<< XYZXYZXYZ abcabc
+2<<< abcdefghi >>> 7<<< >>> 42<<< 123456789 abcdef
+3<<< >>> 8<<< >>>
+
+
+-- Date/Time -- x Page 6
+
+
+
+
+
+-- Date/Time -- x Page 7
+
+
+
+
+
+-- Date/Time -- x Page 8
+
+
+43<<< xyzxyzxyz XYZXYZ 8<<< >>> 3<<< >>>
+44<<< 123456789 xyzxyz 9<<< >>> 4<<< >>>
+5<<< >>> 50<<< >>> 55<<< XYZXYZXYZ abcabc
+6<<< >>> 1<<< >>> 56<<< 123456789 abcdef
+7<<< >>> 2<<< >>>
+
+
+-- Date/Time -- x Page 9
+
+
+57<<< xyzxyzxyz XYZXYZ 9<<< >>> 60<<< 123456789 >>>
+58<<< 123456789 xyzxyz
+ \ No newline at end of file
diff --git a/tests/pr/b3l8f-t b/tests/pr/b3l8f-t
deleted file mode 100644
index a0ca0fb..0000000
--- a/tests/pr/b3l8f-t
+++ /dev/null
@@ -1,37 +0,0 @@
--- Date/Time -- x Page 1
-
-
-1 Test-INPUT: "Withou 6 ------------------- 1 with -f e.g. : -
-2 Options -b -3 [+2|+ 7 3456789 123456789 123 2
-3 Options -a -3 [+2|+ 8 3 Columns downwards 3 line truncation befor
-4 Options [+2|+ 9 With columns use < 14 456789 123456789 123
-5 10 without -f e.g.: - 15 xyzxyzxyz XYZXYZXYZ
- -- Date/Time -- x Page 2
-
-
-16 456789 123456789 xyz 1 6
-7 2 27 no truncation before
-8 3 28 no trunc
-9 3456789 ab 4 29 xyzxyzxyz XYZXYZXYZ
-20 DEFGHI 123 5 30 456789 123456789 xyz
- -- Date/Time -- x Page 3
-
-
-1 6 41 yzxyzxyz XYZXYZXYZ a
-2 3456789 abcdefghi 7 42 456789 123456789 abc
-3 8 43 xyzxyzxyz XYZXYZXYZ
-4 9 3456789 abcdefghi 44 456789 123456789 xyz
-5 40 DEFGHI 123456789 5
- -- Date/Time -- x Page 4
-
-
-6 1 56 456789 123456789 abc
-7 2 57 xyzxyzxyz XYZXYZXYZ
-8 3 58 456789 123456789 xyz
-9 4 9
-50 55 yzxyzxyz XYZXYZXYZ a 60 DEFGHI 123456789
- -- Date/Time -- x Page 5
-
-
-1 2 3 ------- EOF --------
- \ No newline at end of file
diff --git a/tests/pr/col-0.C.I b/tests/pr/col-0.C.I
deleted file mode 100644
index e69de29..0000000
--- a/tests/pr/col-0.C.I
+++ /dev/null
diff --git a/tests/pr/col-0.C.X b/tests/pr/col-0.C.X
deleted file mode 100644
index e69de29..0000000
--- a/tests/pr/col-0.C.X
+++ /dev/null
diff --git a/tests/pr/col-0.I b/tests/pr/col-0.I
deleted file mode 100644
index e69de29..0000000
--- a/tests/pr/col-0.I
+++ /dev/null
diff --git a/tests/pr/col-0.X b/tests/pr/col-0.X
deleted file mode 100644
index e69de29..0000000
--- a/tests/pr/col-0.X
+++ /dev/null
diff --git a/tests/pr/col-02.C.I b/tests/pr/col-02.C.I
deleted file mode 100644
index de98044..0000000
--- a/tests/pr/col-02.C.I
+++ /dev/null
@@ -1,3 +0,0 @@
-a
-b
-c
diff --git a/tests/pr/col-02.C.X b/tests/pr/col-02.C.X
deleted file mode 100644
index 2363f52..0000000
--- a/tests/pr/col-02.C.X
+++ /dev/null
@@ -1,2 +0,0 @@
-a c
-b
diff --git a/tests/pr/col-02.I b/tests/pr/col-02.I
deleted file mode 100644
index de98044..0000000
--- a/tests/pr/col-02.I
+++ /dev/null
@@ -1,3 +0,0 @@
-a
-b
-c
diff --git a/tests/pr/col-02.X b/tests/pr/col-02.X
deleted file mode 100644
index 2363f52..0000000
--- a/tests/pr/col-02.X
+++ /dev/null
@@ -1,2 +0,0 @@
-a c
-b
diff --git a/tests/pr/col-2.C.I b/tests/pr/col-2.C.I
deleted file mode 100644
index de98044..0000000
--- a/tests/pr/col-2.C.I
+++ /dev/null
@@ -1,3 +0,0 @@
-a
-b
-c
diff --git a/tests/pr/col-2.C.X b/tests/pr/col-2.C.X
deleted file mode 100644
index 2363f52..0000000
--- a/tests/pr/col-2.C.X
+++ /dev/null
@@ -1,2 +0,0 @@
-a c
-b
diff --git a/tests/pr/col-2.I b/tests/pr/col-2.I
deleted file mode 100644
index de98044..0000000
--- a/tests/pr/col-2.I
+++ /dev/null
@@ -1,3 +0,0 @@
-a
-b
-c
diff --git a/tests/pr/col-2.X b/tests/pr/col-2.X
deleted file mode 100644
index 2363f52..0000000
--- a/tests/pr/col-2.X
+++ /dev/null
@@ -1,2 +0,0 @@
-a c
-b
diff --git a/tests/pr/col-inval.C.I b/tests/pr/col-inval.C.I
deleted file mode 100644
index e69de29..0000000
--- a/tests/pr/col-inval.C.I
+++ /dev/null
diff --git a/tests/pr/col-inval.C.X b/tests/pr/col-inval.C.X
deleted file mode 100644
index e69de29..0000000
--- a/tests/pr/col-inval.C.X
+++ /dev/null
diff --git a/tests/pr/col-inval.I b/tests/pr/col-inval.I
deleted file mode 100644
index e69de29..0000000
--- a/tests/pr/col-inval.I
+++ /dev/null
diff --git a/tests/pr/col-inval.X b/tests/pr/col-inval.X
deleted file mode 100644
index e69de29..0000000
--- a/tests/pr/col-inval.X
+++ /dev/null
diff --git a/tests/pr/col-last.I b/tests/pr/col-last.I
deleted file mode 100644
index de98044..0000000
--- a/tests/pr/col-last.I
+++ /dev/null
@@ -1,3 +0,0 @@
-a
-b
-c
diff --git a/tests/pr/col-last.X b/tests/pr/col-last.X
deleted file mode 100644
index 2363f52..0000000
--- a/tests/pr/col-last.X
+++ /dev/null
@@ -1,2 +0,0 @@
-a c
-b
diff --git a/tests/pr/col-long.C.I b/tests/pr/col-long.C.I
deleted file mode 100644
index de98044..0000000
--- a/tests/pr/col-long.C.I
+++ /dev/null
@@ -1,3 +0,0 @@
-a
-b
-c
diff --git a/tests/pr/col-long.C.X b/tests/pr/col-long.C.X
deleted file mode 100644
index 2363f52..0000000
--- a/tests/pr/col-long.C.X
+++ /dev/null
@@ -1,2 +0,0 @@
-a c
-b
diff --git a/tests/pr/col-long.I b/tests/pr/col-long.I
deleted file mode 100644
index de98044..0000000
--- a/tests/pr/col-long.I
+++ /dev/null
@@ -1,3 +0,0 @@
-a
-b
-c
diff --git a/tests/pr/col-long.X b/tests/pr/col-long.X
deleted file mode 100644
index 2363f52..0000000
--- a/tests/pr/col-long.X
+++ /dev/null
@@ -1,2 +0,0 @@
-a c
-b
diff --git a/tests/pr/dbl-sp-a.I b/tests/pr/dbl-sp-a.I
deleted file mode 100644
index 1191247..0000000
--- a/tests/pr/dbl-sp-a.I
+++ /dev/null
@@ -1,2 +0,0 @@
-1
-2
diff --git a/tests/pr/dbl-sp-a.X b/tests/pr/dbl-sp-a.X
deleted file mode 100644
index eefbf3f..0000000
--- a/tests/pr/dbl-sp-a.X
+++ /dev/null
@@ -1,14 +0,0 @@
-
-
--- Date/Time -- Page 1
-
-
-1
-
-2
-
-
-
-
-
-
diff --git a/tests/pr/dbl-sp-b.I b/tests/pr/dbl-sp-b.I
deleted file mode 100644
index 1191247..0000000
--- a/tests/pr/dbl-sp-b.I
+++ /dev/null
@@ -1,2 +0,0 @@
-1
-2
diff --git a/tests/pr/dbl-sp-b.X b/tests/pr/dbl-sp-b.X
deleted file mode 100644
index c8a8bb0..0000000
--- a/tests/pr/dbl-sp-b.X
+++ /dev/null
@@ -1,4 +0,0 @@
-1
-
-2
-
diff --git a/tests/pr/i-opt-a.I b/tests/pr/i-opt-a.I
deleted file mode 100644
index e314bf1..0000000
--- a/tests/pr/i-opt-a.I
+++ /dev/null
@@ -1 +0,0 @@
-a b
diff --git a/tests/pr/i-opt-a.X b/tests/pr/i-opt-a.X
deleted file mode 100644
index e49a99d..0000000
--- a/tests/pr/i-opt-a.X
+++ /dev/null
@@ -1 +0,0 @@
- 1 a b
diff --git a/tests/pr/i-opt-b.I b/tests/pr/i-opt-b.I
deleted file mode 100644
index e314bf1..0000000
--- a/tests/pr/i-opt-b.I
+++ /dev/null
@@ -1 +0,0 @@
-a b
diff --git a/tests/pr/i-opt-b.X b/tests/pr/i-opt-b.X
deleted file mode 100644
index a797ffe..0000000
--- a/tests/pr/i-opt-b.X
+++ /dev/null
@@ -1 +0,0 @@
- 1 a b
diff --git a/tests/pr/l17f-t b/tests/pr/l17f-t
deleted file mode 100644
index a6d1463..0000000
--- a/tests/pr/l17f-t
+++ /dev/null
@@ -1,79 +0,0 @@
--- Date/Time -- x Page 1
-
-
-1 Test-INPUT: "Without FF set by Hand" V
-2 Options -b -3 [+2|+3] [-l 15|8] [-f]
-3 Options -a -3 [+2|+3] [-l 15|8] [-f]
-4 Options [+2|+3] [-l 24|17] [-f]
-5
-6 --------------------------------------------
-7 3456789 123456789 123456789 123456789 12345678
-8 3 Columns downwards, across, ...:
-9 With columns use <= 5 text lines/page,
-10 without -f e.g.: -l 15 = total lines/page,
-1 with -f e.g. : -l 8 -f
-2
-3 line truncation before new page; r_r_o_l-test:
-14 456789 123456789 123456789 123456789
- -- Date/Time -- x Page 2
-
-
-15 xyzxyzxyz XYZXYZXYZ abcabcab
-16 456789 123456789 xyzxyzxyz XYZXYZXYZ
-7 12345678
-8 12345678
-9 3456789 ab
-20 DEFGHI 123
-1 12345678
-2 12345678
-3 12345678
-4 12345678
-5 12345678
-6 12345678
-27 no truncation before nwe page; (r_l-test):
-28 no trunc
- -- Date/Time -- x Page 3
-
-
-29 xyzxyzxyz XYZXYZXYZ abcabcab
-30 456789 123456789 xyzxyzxyz XYZXYZXYZ
-1 12345678
-2 3456789 abcdefghi
-3 12345678
-4 12345678
-5 12345678
-6 12345678
-7 12345678
-8 12345678
-9 3456789 abcdefghi
-40 DEFGHI 123456789
-41 yzxyzxyz XYZXYZXYZ abcabcab
-42 456789 123456789 abcdefghi ABCDEDFHI
- -- Date/Time -- x Page 4
-
-
-43 xyzxyzxyz XYZXYZXYZ abcabcab
-44 456789 123456789 xyzxyzxyz XYZXYZXYZ
-5 12345678
-6 12345678
-7 12345678
-8 12345678
-9 12345678
-50 12345678
-1 12345678
-2 12345678
-3 12345678
-4 12345678
-55 yzxyzxyz XYZXYZXYZ abcabcab
-56 456789 123456789 abcdefghi ABCDEDFHI
- -- Date/Time -- x Page 5
-
-
-57 xyzxyzxyz XYZXYZXYZ abcabcab
-58 456789 123456789 xyzxyzxyz XYZXYZXYZ
-9 12345678
-60 DEFGHI 123456789
-1
-2
-3 ------- EOF -------- EOF -------- EOF -------
- \ No newline at end of file
diff --git a/tests/pr/l24f-t b/tests/pr/l24f-t
new file mode 100644
index 0000000..3546282
--- /dev/null
+++ b/tests/pr/l24f-t
@@ -0,0 +1,89 @@
+
+
+-- Date/Time -- x Page 1
+
+
+1 Test-INPUT: "Without FF set by Hand" V
+2 Options -b -3 [+2|+3] [-l 15|8] [-f]
+3 Options -a -3 [+2|+3] [-l 15|8] [-f]
+4 Options [+2|+3] [-l 24|17] [-f]
+5
+6 --------------------------------------------
+7 3456789 123456789 123456789 123456789 12345678
+8 3 Columns downwards, across, ...:
+9 With columns use <= 5 text lines/page,
+10 without -f e.g.: -l 15 = total lines/page,
+1 with -f e.g. : -l 8 -f
+2
+3 line truncation before new page; r_r_o_l-test:
+14 456789 123456789 123456789 123456789
+
+
+-- Date/Time -- x Page 2
+
+
+15 xyzxyzxyz XYZXYZXYZ abcabcab
+16 456789 123456789 xyzxyzxyz XYZXYZXYZ
+7 12345678
+8 12345678
+9 3456789 ab
+20 DEFGHI 123
+1 12345678
+2 12345678
+3 12345678
+4 12345678
+5 12345678
+6 12345678
+27 no truncation before nwe page; (r_l-test):
+28 no trunc
+
+
+-- Date/Time -- x Page 3
+
+
+29 xyzxyzxyz XYZXYZXYZ abcabcab
+30 456789 123456789 xyzxyzxyz XYZXYZXYZ
+1 12345678
+2 3456789 abcdefghi
+3 12345678
+4 12345678
+5 12345678
+6 12345678
+7 12345678
+8 12345678
+9 3456789 abcdefghi
+40 DEFGHI 123456789
+41 yzxyzxyz XYZXYZXYZ abcabcab
+42 456789 123456789 abcdefghi ABCDEDFHI
+
+
+-- Date/Time -- x Page 4
+
+
+43 xyzxyzxyz XYZXYZXYZ abcabcab
+44 456789 123456789 xyzxyzxyz XYZXYZXYZ
+5 12345678
+6 12345678
+7 12345678
+8 12345678
+9 12345678
+50 12345678
+1 12345678
+2 12345678
+3 12345678
+4 12345678
+55 yzxyzxyz XYZXYZXYZ abcabcab
+56 456789 123456789 abcdefghi ABCDEDFHI
+
+
+-- Date/Time -- x Page 5
+
+
+57 xyzxyzxyz XYZXYZXYZ abcabcab
+58 456789 123456789 xyzxyzxyz XYZXYZXYZ
+9 12345678
+60 DEFGHI 123456789
+1
+2
+3 ------- EOF -------- EOF -------- EOF -------
+ \ No newline at end of file
diff --git a/tests/pr/margin-0.I b/tests/pr/margin-0.I
deleted file mode 100644
index e69de29..0000000
--- a/tests/pr/margin-0.I
+++ /dev/null
diff --git a/tests/pr/margin-0.X b/tests/pr/margin-0.X
deleted file mode 100644
index e69de29..0000000
--- a/tests/pr/margin-0.X
+++ /dev/null
diff --git a/tests/pr/ml17f-0F b/tests/pr/ml17f-0F
deleted file mode 100644
index 0fc93bd..0000000
--- a/tests/pr/ml17f-0F
+++ /dev/null
@@ -1,51 +0,0 @@
--- Date/Time -- x Page 1
-
-
-
- -- Date/Time -- x Page 2
-
-
-1 FF-Test: FF's at Start of File 1 FF-Test: FF's at Start of File
-2 Options -b -3 / -a -3 / ... 2 Options -b -3 / -a -3 / ...
-3 ------------------------------- 3 -------------------------------
-4 3456789 123456789 123456789 12345 4 3456789 123456789 123456789 12345
-5 3 Columns downwards ..., <= 5 l 5 3 Columns downwards ..., <= 5 l
-6 FF-Arangements: Empty Pages at 6 FF-Arangements: Empty Pages at
-7 \ftext; \f\ntext; 7 \ftext; \f\ntext;
-8 \f\ftext; \f\f\ntext; \f\n\ftex 8 \f\ftext; \f\f\ntext; \f\n\ftex
-9 3456789 123456789 123456789 9 3456789 123456789 123456789
-10 zzzzzzzzzzzzzzzzzzzzzzzzzz12345 10 zzzzzzzzzzzzzzzzzzzzzzzzzz12345
-1 1
-2 2
-3 line truncation before FF; r_r_o_ 3 line truncation before FF; r_r_o_
-14 456789 123456789 123456789 12345 14 456789 123456789 123456789 12345
- -- Date/Time -- x Page 3
-
-
-
- -- Date/Time -- x Page 4
-
-
-15 xyzxyzxyz XYZXYZXYZ abcabcab 15 xyzxyzxyz XYZXYZXYZ abcabcab
-16 456789 123456789 xyzxyzxyz XYZXY 16 456789 123456789 xyzxyzxyz XYZXY
-7 7
-8 8
-9 3456789 ab 9 3456789 ab
-20 DEFGHI 123 20 DEFGHI 123
-1 1
-2 2
-3 3
-4 4
-5 5
-6 6
-27 no truncation before FF; (r_l-te 27 no truncation before FF; (r_l-te
-28 no trunc 28 no trunc
- -- Date/Time -- x Page 5
-
-
-29 xyzxyzxyz XYZXYZXYZ abcabcab 29 xyzxyzxyz XYZXYZXYZ abcabcab
-30 456789 123456789 xyzxyzxyz XYZXY 30 456789 123456789 xyzxyzxyz XYZXY
-1 1
-2 3456789 abcdefghi 2 3456789 abcdefghi
-3 3
- \ No newline at end of file
diff --git a/tests/pr/ml17f-lm-lo b/tests/pr/ml17f-lm-lo
deleted file mode 100644
index d8a4ddd..0000000
--- a/tests/pr/ml17f-lm-lo
+++ /dev/null
@@ -1,118 +0,0 @@
--- Date/Time -- x Page 1
-
-
-1<<< -Test: FF's in Text 1::: Test-INPUT: "Without FF set b
-2<<< -b -3 / -a -3 / ... >>> 2::: Options -b -3 [+2|+3] [-l 15|
-3<<< >>> 3::: Options -a -3 [+2|+3] [-l 15|
-4<<< 123456789 123456789 123456789 4::: Options [+2|+3] [-l 24|
- 5::: :::
-6<<< -Arangements: One Empty Page 6::: -----------------------------
-7<<< \f\f\n; text\f\n\ftext; \f\ft 7::: 789 123456789 123456789 12345
-8<<< f\f\n; \f\n\f\n; >>> 8::: 3 Columns downwards, across,
-9<<< >>> 9::: With columns use <= 5 text l
-10<<< >>> 10::: without -f e.g.: -l 15 = to
-1<<< >>> 1::: with -f e.g. : -l 8 -f ::
-2<<< >>> 2::: :::
-3<<< truncation before FF; r_r_o_l 3::: line truncation before new pa
-14<<< 123456789 123456789 12345678 14::: 89 123456789 123456789 12345
- -- Date/Time -- x Page 2
-
-
- 15::: xyzxyzxyz XYZXYZXYZ abcabcab
- 16::: 456789 123456789 xyzxyzxyz X
- 7::: 12345678 :::
- 8::: 12345678 :::
- 9::: 3456789 ab :::
- 20::: DEFGHI 123 :::
- 21::: 89 123456789 123456789 12345
- 2::: 12345678 :::
- 3::: 12345678 :::
- 4::: 12345678 :::
- 5::: 12345678 :::
- 6::: 12345678 :::
- 27::: no truncation before nwe pag
- 28::: 89 123456789 123456789 12345
- -- Date/Time -- x Page 3
-
-
-15<<< xyzxyzxyz XYZXYZXYZ abcabcab 29::: xyzxyzxyz XYZXYZXYZ abcabcab
-16<<< 123456789 xyzxyzxyz XYZXYZXY 30::: 456789 123456789 xyzxyzxyz X
-7<<< >>> 1::: 12345678 :::
-8<<< >>> 2::: 3456789 abcdefghi :::
-9<<< >>> 3::: 12345678 :::
-20<<< >>> 4::: 12345678 :::
-1<<< >>> 35::: 89 123456789 123456789 12345
- 6::: 12345678 :::
- 7::: 12345678 :::
-4<<< >>> 8::: 12345678 :::
-5<<< >>> 9::: 3456789 abcdefghi :::
-6<<< >>> 40::: DEFGHI 123456789 :::
-27<<< truncation before FF; (r_l-t 41::: yzxyzxyz XYZXYZXYZ abcabcab
-28<<< trunc 42::: 89 123456789 123456789 12345
- -- Date/Time -- x Page 4
-
-
- 43::: xyzxyzxyz XYZXYZXYZ abcabcab
- 44::: 456789 123456789 xyzxyzxyz X
- 5::: 12345678 :::
- 6::: 12345678 :::
- 7::: 12345678 :::
- 8::: 12345678 :::
- 49::: 89 123456789 123456789 12345
- 50::: 12345678 :::
- 1::: 12345678 :::
- 2::: 12345678 :::
- 3::: 12345678 :::
- 4::: 12345678 :::
- 55::: yzxyzxyz XYZXYZXYZ abcabcab
- 56::: 89 123456789 123456789 12345
- -- Date/Time -- x Page 5
-
-
-29<<<xyzxyzxyz XYZXYZXYZ abcabcab 57::: xyzxyzxyz XYZXYZXYZ abcabcab
-30<<< 123456789 xyzxyzxyz XYZXYZXY 58::: 456789 123456789 xyzxyzxyz X
-1<<< >>> 9::: 12345678 :::
-2<<< abcdefghi >>> 60::: DEFGHI 123456789 :::
-3<<< >>> 1::: :::
-4<<< >>> 2::: :::
-5<<< >>> 3::: ------- EOF -------- EOF ----
-6<<< >>>
-7<<< >>>
-8<<< >>>
-9<<< abcdefghi >>>
-40<<< 123456789 >>>
-41<<< XYZXYZXYZ abcabcab >>>
-42<<< 123456789 abcdefghi ABCDEDFH
- -- Date/Time -- x Page 6
-
-
-
- -- Date/Time -- x Page 7
-
-
-
- -- Date/Time -- x Page 8
-
-
-43<<< xyzxyzxyz XYZXYZXYZ abcabcab
-44<<< 123456789 xyzxyzxyz XYZXYZXY
-5<<< >>>
-6<<< >>>
-7<<< >>>
-8<<< >>>
-9<<< >>>
-50<<< >>>
-1<<< >>>
-2<<< >>>
-3<<< >>>
-4<<< >>>
-55<<< XYZXYZXYZ abcabcab >>>
-56<<< 123456789 abcdefghi ABCDEDFH
- -- Date/Time -- x Page 9
-
-
-57<<< xyzxyzxyz XYZXYZXYZ abcabcab
-58<<< 123456789 xyzxyzxyz XYZXYZXY
-9<<< >>>
-60<<< 123456789 >>>
- \ No newline at end of file
diff --git a/tests/pr/ml17f-t b/tests/pr/ml17f-t
deleted file mode 100644
index 1f35bc2..0000000
--- a/tests/pr/ml17f-t
+++ /dev/null
@@ -1,79 +0,0 @@
--- Date/Time -- x Page 1
-
-
-1 Test-INPUT: "Without FF set by 1 Test-INPUT: "Without FF set by
-2 Options -b -3 [+2|+3] [-l 15|8] 2 Options -b -3 [+2|+3] [-l 15|8]
-3 Options -a -3 [+2|+3] [-l 15|8] 3 Options -a -3 [+2|+3] [-l 15|8]
-4 Options [+2|+3] [-l 24|17 4 Options [+2|+3] [-l 24|17
-5 5
-6 ------------------------------- 6 -------------------------------
-7 3456789 123456789 123456789 12345 7 3456789 123456789 123456789 12345
-8 3 Columns downwards, across, .. 8 3 Columns downwards, across, ..
-9 With columns use <= 5 text lin 9 With columns use <= 5 text lin
-10 without -f e.g.: -l 15 = total 10 without -f e.g.: -l 15 = total
-1 with -f e.g. : -l 8 -f 1 with -f e.g. : -l 8 -f
-2 2
-3 line truncation before new page; 3 line truncation before new page;
-14 456789 123456789 123456789 12345 14 456789 123456789 123456789 12345
- -- Date/Time -- x Page 2
-
-
-15 xyzxyzxyz XYZXYZXYZ abcabcab 15 xyzxyzxyz XYZXYZXYZ abcabcab
-16 456789 123456789 xyzxyzxyz XYZXY 16 456789 123456789 xyzxyzxyz XYZXY
-7 7
-8 8
-9 3456789 ab 9 3456789 ab
-20 DEFGHI 123 20 DEFGHI 123
-1 1
-2 2
-3 3
-4 4
-5 5
-6 6
-27 no truncation before nwe page; ( 27 no truncation before nwe page; (
-28 no trunc 28 no trunc
- -- Date/Time -- x Page 3
-
-
-29 xyzxyzxyz XYZXYZXYZ abcabcab 29 xyzxyzxyz XYZXYZXYZ abcabcab
-30 456789 123456789 xyzxyzxyz XYZXY 30 456789 123456789 xyzxyzxyz XYZXY
-1 1
-2 3456789 abcdefghi 2 3456789 abcdefghi
-3 3
-4 4
-5 5
-6 6
-7 7
-8 8
-9 3456789 abcdefghi 9 3456789 abcdefghi
-40 DEFGHI 123456789 40 DEFGHI 123456789
-41 yzxyzxyz XYZXYZXYZ abcabcab 41 yzxyzxyz XYZXYZXYZ abcabcab
-42 456789 123456789 abcdefghi ABCDE 42 456789 123456789 abcdefghi ABCDE
- -- Date/Time -- x Page 4
-
-
-43 xyzxyzxyz XYZXYZXYZ abcabcab 43 xyzxyzxyz XYZXYZXYZ abcabcab
-44 456789 123456789 xyzxyzxyz XYZXY 44 456789 123456789 xyzxyzxyz XYZXY
-5 5
-6 6
-7 7
-8 8
-9 9
-50 50
-1 1
-2 2
-3 3
-4 4
-55 yzxyzxyz XYZXYZXYZ abcabcab 55 yzxyzxyz XYZXYZXYZ abcabcab
-56 456789 123456789 abcdefghi ABCDE 56 456789 123456789 abcdefghi ABCDE
- -- Date/Time -- x Page 5
-
-
-57 xyzxyzxyz XYZXYZXYZ abcabcab 57 xyzxyzxyz XYZXYZXYZ abcabcab
-58 456789 123456789 xyzxyzxyz XYZXY 58 456789 123456789 xyzxyzxyz XYZXY
-9 9
-60 DEFGHI 123456789 60 DEFGHI 123456789
-1 1
-2 2
-3 ------- EOF -------- EOF ------- 3 ------- EOF -------- EOF -------
- \ No newline at end of file
diff --git a/tests/pr/ml17f-t-0F b/tests/pr/ml17f-t-0F
deleted file mode 100644
index b0eba43..0000000
--- a/tests/pr/ml17f-t-0F
+++ /dev/null
@@ -1,79 +0,0 @@
--- Date/Time -- x Page 1
-
-
-1 Test-INPUT: "Without FF set by
-2 Options -b -3 [+2|+3] [-l 15|8]
-3 Options -a -3 [+2|+3] [-l 15|8]
-4 Options [+2|+3] [-l 24|17
-5
-6 -------------------------------
-7 3456789 123456789 123456789 12345
-8 3 Columns downwards, across, ..
-9 With columns use <= 5 text lin
-10 without -f e.g.: -l 15 = total
-1 with -f e.g. : -l 8 -f
-2
-3 line truncation before new page;
-14 456789 123456789 123456789 12345
- -- Date/Time -- x Page 2
-
-
-15 xyzxyzxyz XYZXYZXYZ abcabcab 1 FF-Test: FF's at Start of File
-16 456789 123456789 xyzxyzxyz XYZXY 2 Options -b -3 / -a -3 / ...
-7 3 -------------------------------
-8 4 3456789 123456789 123456789 12345
-9 3456789 ab 5 3 Columns downwards ..., <= 5 l
-20 DEFGHI 123 6 FF-Arangements: Empty Pages at
-1 7 \ftext; \f\ntext;
-2 8 \f\ftext; \f\f\ntext; \f\n\ftex
-3 9 3456789 123456789 123456789
-4 10 zzzzzzzzzzzzzzzzzzzzzzzzzz12345
-5 1
-6 2
-27 no truncation before nwe page; ( 3 line truncation before FF; r_r_o_
-28 no trunc 14 456789 123456789 123456789 12345
- -- Date/Time -- x Page 3
-
-
-29 xyzxyzxyz XYZXYZXYZ abcabcab
-30 456789 123456789 xyzxyzxyz XYZXY
-1
-2 3456789 abcdefghi
-3
-4
-5
-6
-7
-8
-9 3456789 abcdefghi
-40 DEFGHI 123456789
-41 yzxyzxyz XYZXYZXYZ abcabcab
-42 456789 123456789 abcdefghi ABCDE
- -- Date/Time -- x Page 4
-
-
-43 xyzxyzxyz XYZXYZXYZ abcabcab 15 xyzxyzxyz XYZXYZXYZ abcabcab
-44 456789 123456789 xyzxyzxyz XYZXY 16 456789 123456789 xyzxyzxyz XYZXY
-5 7
-6 8
-7 9 3456789 ab
-8 20 DEFGHI 123
-9 1
-50 2
-1 3
-2 4
-3 5
-4 6
-55 yzxyzxyz XYZXYZXYZ abcabcab 27 no truncation before FF; (r_l-te
-56 456789 123456789 abcdefghi ABCDE 28 no trunc
- -- Date/Time -- x Page 5
-
-
-57 xyzxyzxyz XYZXYZXYZ abcabcab 29 xyzxyzxyz XYZXYZXYZ abcabcab
-58 456789 123456789 xyzxyzxyz XYZXY 30 456789 123456789 xyzxyzxyz XYZXY
-9 1
-60 DEFGHI 123456789 2 3456789 abcdefghi
-1 3
-2
-3 ------- EOF -------- EOF -------
- \ No newline at end of file
diff --git a/tests/pr/ml24f-0F b/tests/pr/ml24f-0F
new file mode 100644
index 0000000..18b5760
--- /dev/null
+++ b/tests/pr/ml24f-0F
@@ -0,0 +1,61 @@
+
+
+-- Date/Time -- x Page 1
+
+
+
+
+
+-- Date/Time -- x Page 2
+
+
+1 FF-Test: FF's at Start of File 1 FF-Test: FF's at Start of File
+2 Options -b -3 / -a -3 / ... 2 Options -b -3 / -a -3 / ...
+3 ------------------------------- 3 -------------------------------
+4 3456789 123456789 123456789 12345 4 3456789 123456789 123456789 12345
+5 3 Columns downwards ..., <= 5 l 5 3 Columns downwards ..., <= 5 l
+6 FF-Arangements: Empty Pages at 6 FF-Arangements: Empty Pages at
+7 \ftext; \f\ntext; 7 \ftext; \f\ntext;
+8 \f\ftext; \f\f\ntext; \f\n\ftex 8 \f\ftext; \f\f\ntext; \f\n\ftex
+9 3456789 123456789 123456789 9 3456789 123456789 123456789
+10 zzzzzzzzzzzzzzzzzzzzzzzzzz12345 10 zzzzzzzzzzzzzzzzzzzzzzzzzz12345
+1 1
+2 2
+3 line truncation before FF; r_r_o_ 3 line truncation before FF; r_r_o_
+14 456789 123456789 123456789 12345 14 456789 123456789 123456789 12345
+
+
+-- Date/Time -- x Page 3
+
+
+
+
+
+-- Date/Time -- x Page 4
+
+
+15 xyzxyzxyz XYZXYZXYZ abcabcab 15 xyzxyzxyz XYZXYZXYZ abcabcab
+16 456789 123456789 xyzxyzxyz XYZXY 16 456789 123456789 xyzxyzxyz XYZXY
+7 7
+8 8
+9 3456789 ab 9 3456789 ab
+20 DEFGHI 123 20 DEFGHI 123
+1 1
+2 2
+3 3
+4 4
+5 5
+6 6
+27 no truncation before FF; (r_l-te 27 no truncation before FF; (r_l-te
+28 no trunc 28 no trunc
+
+
+-- Date/Time -- x Page 5
+
+
+29 xyzxyzxyz XYZXYZXYZ abcabcab 29 xyzxyzxyz XYZXYZXYZ abcabcab
+30 456789 123456789 xyzxyzxyz XYZXY 30 456789 123456789 xyzxyzxyz XYZXY
+1 1
+2 3456789 abcdefghi 2 3456789 abcdefghi
+3 3
+ \ No newline at end of file
diff --git a/tests/pr/ml24f-lm-lo b/tests/pr/ml24f-lm-lo
new file mode 100644
index 0000000..3fed7d3
--- /dev/null
+++ b/tests/pr/ml24f-lm-lo
@@ -0,0 +1,136 @@
+
+
+-- Date/Time -- x Page 1
+
+
+1<<< -Test: FF's in Text 1::: Test-INPUT: "Without FF set b
+2<<< -b -3 / -a -3 / ... >>> 2::: Options -b -3 [+2|+3] [-l 15|
+3<<< >>> 3::: Options -a -3 [+2|+3] [-l 15|
+4<<< 123456789 123456789 123456789 4::: Options [+2|+3] [-l 24|
+ 5::: :::
+6<<< -Arangements: One Empty Page 6::: -----------------------------
+7<<< \f\f\n; text\f\n\ftext; \f\ft 7::: 789 123456789 123456789 12345
+8<<< f\f\n; \f\n\f\n; >>> 8::: 3 Columns downwards, across,
+9<<< >>> 9::: With columns use <= 5 text l
+10<<< >>> 10::: without -f e.g.: -l 15 = to
+1<<< >>> 1::: with -f e.g. : -l 8 -f ::
+2<<< >>> 2::: :::
+3<<< truncation before FF; r_r_o_l 3::: line truncation before new pa
+14<<< 123456789 123456789 12345678 14::: 89 123456789 123456789 12345
+
+
+-- Date/Time -- x Page 2
+
+
+ 15::: xyzxyzxyz XYZXYZXYZ abcabcab
+ 16::: 456789 123456789 xyzxyzxyz X
+ 7::: 12345678 :::
+ 8::: 12345678 :::
+ 9::: 3456789 ab :::
+ 20::: DEFGHI 123 :::
+ 21::: 89 123456789 123456789 12345
+ 2::: 12345678 :::
+ 3::: 12345678 :::
+ 4::: 12345678 :::
+ 5::: 12345678 :::
+ 6::: 12345678 :::
+ 27::: no truncation before nwe pag
+ 28::: 89 123456789 123456789 12345
+
+
+-- Date/Time -- x Page 3
+
+
+15<<< xyzxyzxyz XYZXYZXYZ abcabcab 29::: xyzxyzxyz XYZXYZXYZ abcabcab
+16<<< 123456789 xyzxyzxyz XYZXYZXY 30::: 456789 123456789 xyzxyzxyz X
+7<<< >>> 1::: 12345678 :::
+8<<< >>> 2::: 3456789 abcdefghi :::
+9<<< >>> 3::: 12345678 :::
+20<<< >>> 4::: 12345678 :::
+1<<< >>> 35::: 89 123456789 123456789 12345
+ 6::: 12345678 :::
+ 7::: 12345678 :::
+4<<< >>> 8::: 12345678 :::
+5<<< >>> 9::: 3456789 abcdefghi :::
+6<<< >>> 40::: DEFGHI 123456789 :::
+27<<< truncation before FF; (r_l-t 41::: yzxyzxyz XYZXYZXYZ abcabcab
+28<<< trunc 42::: 89 123456789 123456789 12345
+
+
+-- Date/Time -- x Page 4
+
+
+ 43::: xyzxyzxyz XYZXYZXYZ abcabcab
+ 44::: 456789 123456789 xyzxyzxyz X
+ 5::: 12345678 :::
+ 6::: 12345678 :::
+ 7::: 12345678 :::
+ 8::: 12345678 :::
+ 49::: 89 123456789 123456789 12345
+ 50::: 12345678 :::
+ 1::: 12345678 :::
+ 2::: 12345678 :::
+ 3::: 12345678 :::
+ 4::: 12345678 :::
+ 55::: yzxyzxyz XYZXYZXYZ abcabcab
+ 56::: 89 123456789 123456789 12345
+
+
+-- Date/Time -- x Page 5
+
+
+29<<<xyzxyzxyz XYZXYZXYZ abcabcab 57::: xyzxyzxyz XYZXYZXYZ abcabcab
+30<<< 123456789 xyzxyzxyz XYZXYZXY 58::: 456789 123456789 xyzxyzxyz X
+1<<< >>> 9::: 12345678 :::
+2<<< abcdefghi >>> 60::: DEFGHI 123456789 :::
+3<<< >>> 1::: :::
+4<<< >>> 2::: :::
+5<<< >>> 3::: ------- EOF -------- EOF ----
+6<<< >>>
+7<<< >>>
+8<<< >>>
+9<<< abcdefghi >>>
+40<<< 123456789 >>>
+41<<< XYZXYZXYZ abcabcab >>>
+42<<< 123456789 abcdefghi ABCDEDFH
+
+
+-- Date/Time -- x Page 6
+
+
+
+
+
+-- Date/Time -- x Page 7
+
+
+
+
+
+-- Date/Time -- x Page 8
+
+
+43<<< xyzxyzxyz XYZXYZXYZ abcabcab
+44<<< 123456789 xyzxyzxyz XYZXYZXY
+5<<< >>>
+6<<< >>>
+7<<< >>>
+8<<< >>>
+9<<< >>>
+50<<< >>>
+1<<< >>>
+2<<< >>>
+3<<< >>>
+4<<< >>>
+55<<< XYZXYZXYZ abcabcab >>>
+56<<< 123456789 abcdefghi ABCDEDFH
+
+
+-- Date/Time -- x Page 9
+
+
+57<<< xyzxyzxyz XYZXYZXYZ abcabcab
+58<<< 123456789 xyzxyzxyz XYZXYZXY
+9<<< >>>
+60<<< 123456789 >>>
+ \ No newline at end of file
diff --git a/tests/pr/ml24f-t b/tests/pr/ml24f-t
new file mode 100644
index 0000000..b856214
--- /dev/null
+++ b/tests/pr/ml24f-t
@@ -0,0 +1,89 @@
+
+
+-- Date/Time -- x Page 1
+
+
+1 Test-INPUT: "Without FF set by 1 Test-INPUT: "Without FF set by
+2 Options -b -3 [+2|+3] [-l 15|8] 2 Options -b -3 [+2|+3] [-l 15|8]
+3 Options -a -3 [+2|+3] [-l 15|8] 3 Options -a -3 [+2|+3] [-l 15|8]
+4 Options [+2|+3] [-l 24|17 4 Options [+2|+3] [-l 24|17
+5 5
+6 ------------------------------- 6 -------------------------------
+7 3456789 123456789 123456789 12345 7 3456789 123456789 123456789 12345
+8 3 Columns downwards, across, .. 8 3 Columns downwards, across, ..
+9 With columns use <= 5 text lin 9 With columns use <= 5 text lin
+10 without -f e.g.: -l 15 = total 10 without -f e.g.: -l 15 = total
+1 with -f e.g. : -l 8 -f 1 with -f e.g. : -l 8 -f
+2 2
+3 line truncation before new page; 3 line truncation before new page;
+14 456789 123456789 123456789 12345 14 456789 123456789 123456789 12345
+
+
+-- Date/Time -- x Page 2
+
+
+15 xyzxyzxyz XYZXYZXYZ abcabcab 15 xyzxyzxyz XYZXYZXYZ abcabcab
+16 456789 123456789 xyzxyzxyz XYZXY 16 456789 123456789 xyzxyzxyz XYZXY
+7 7
+8 8
+9 3456789 ab 9 3456789 ab
+20 DEFGHI 123 20 DEFGHI 123
+1 1
+2 2
+3 3
+4 4
+5 5
+6 6
+27 no truncation before nwe page; ( 27 no truncation before nwe page; (
+28 no trunc 28 no trunc
+
+
+-- Date/Time -- x Page 3
+
+
+29 xyzxyzxyz XYZXYZXYZ abcabcab 29 xyzxyzxyz XYZXYZXYZ abcabcab
+30 456789 123456789 xyzxyzxyz XYZXY 30 456789 123456789 xyzxyzxyz XYZXY
+1 1
+2 3456789 abcdefghi 2 3456789 abcdefghi
+3 3
+4 4
+5 5
+6 6
+7 7
+8 8
+9 3456789 abcdefghi 9 3456789 abcdefghi
+40 DEFGHI 123456789 40 DEFGHI 123456789
+41 yzxyzxyz XYZXYZXYZ abcabcab 41 yzxyzxyz XYZXYZXYZ abcabcab
+42 456789 123456789 abcdefghi ABCDE 42 456789 123456789 abcdefghi ABCDE
+
+
+-- Date/Time -- x Page 4
+
+
+43 xyzxyzxyz XYZXYZXYZ abcabcab 43 xyzxyzxyz XYZXYZXYZ abcabcab
+44 456789 123456789 xyzxyzxyz XYZXY 44 456789 123456789 xyzxyzxyz XYZXY
+5 5
+6 6
+7 7
+8 8
+9 9
+50 50
+1 1
+2 2
+3 3
+4 4
+55 yzxyzxyz XYZXYZXYZ abcabcab 55 yzxyzxyz XYZXYZXYZ abcabcab
+56 456789 123456789 abcdefghi ABCDE 56 456789 123456789 abcdefghi ABCDE
+
+
+-- Date/Time -- x Page 5
+
+
+57 xyzxyzxyz XYZXYZXYZ abcabcab 57 xyzxyzxyz XYZXYZXYZ abcabcab
+58 456789 123456789 xyzxyzxyz XYZXY 58 456789 123456789 xyzxyzxyz XYZXY
+9 9
+60 DEFGHI 123456789 60 DEFGHI 123456789
+1 1
+2 2
+3 ------- EOF -------- EOF ------- 3 ------- EOF -------- EOF -------
+ \ No newline at end of file
diff --git a/tests/pr/ml24f-t-0F b/tests/pr/ml24f-t-0F
new file mode 100644
index 0000000..bd803e2
--- /dev/null
+++ b/tests/pr/ml24f-t-0F
@@ -0,0 +1,89 @@
+
+
+-- Date/Time -- x Page 1
+
+
+1 Test-INPUT: "Without FF set by
+2 Options -b -3 [+2|+3] [-l 15|8]
+3 Options -a -3 [+2|+3] [-l 15|8]
+4 Options [+2|+3] [-l 24|17
+5
+6 -------------------------------
+7 3456789 123456789 123456789 12345
+8 3 Columns downwards, across, ..
+9 With columns use <= 5 text lin
+10 without -f e.g.: -l 15 = total
+1 with -f e.g. : -l 8 -f
+2
+3 line truncation before new page;
+14 456789 123456789 123456789 12345
+
+
+-- Date/Time -- x Page 2
+
+
+15 xyzxyzxyz XYZXYZXYZ abcabcab 1 FF-Test: FF's at Start of File
+16 456789 123456789 xyzxyzxyz XYZXY 2 Options -b -3 / -a -3 / ...
+7 3 -------------------------------
+8 4 3456789 123456789 123456789 12345
+9 3456789 ab 5 3 Columns downwards ..., <= 5 l
+20 DEFGHI 123 6 FF-Arangements: Empty Pages at
+1 7 \ftext; \f\ntext;
+2 8 \f\ftext; \f\f\ntext; \f\n\ftex
+3 9 3456789 123456789 123456789
+4 10 zzzzzzzzzzzzzzzzzzzzzzzzzz12345
+5 1
+6 2
+27 no truncation before nwe page; ( 3 line truncation before FF; r_r_o_
+28 no trunc 14 456789 123456789 123456789 12345
+
+
+-- Date/Time -- x Page 3
+
+
+29 xyzxyzxyz XYZXYZXYZ abcabcab
+30 456789 123456789 xyzxyzxyz XYZXY
+1
+2 3456789 abcdefghi
+3
+4
+5
+6
+7
+8
+9 3456789 abcdefghi
+40 DEFGHI 123456789
+41 yzxyzxyz XYZXYZXYZ abcabcab
+42 456789 123456789 abcdefghi ABCDE
+
+
+-- Date/Time -- x Page 4
+
+
+43 xyzxyzxyz XYZXYZXYZ abcabcab 15 xyzxyzxyz XYZXYZXYZ abcabcab
+44 456789 123456789 xyzxyzxyz XYZXY 16 456789 123456789 xyzxyzxyz XYZXY
+5 7
+6 8
+7 9 3456789 ab
+8 20 DEFGHI 123
+9 1
+50 2
+1 3
+2 4
+3 5
+4 6
+55 yzxyzxyz XYZXYZXYZ abcabcab 27 no truncation before FF; (r_l-te
+56 456789 123456789 abcdefghi ABCDE 28 no trunc
+
+
+-- Date/Time -- x Page 5
+
+
+57 xyzxyzxyz XYZXYZXYZ abcabcab 29 xyzxyzxyz XYZXYZXYZ abcabcab
+58 456789 123456789 xyzxyzxyz XYZXY 30 456789 123456789 xyzxyzxyz XYZXY
+9 1
+60 DEFGHI 123456789 2 3456789 abcdefghi
+1 3
+2
+3 ------- EOF -------- EOF -------
+ \ No newline at end of file
diff --git a/tests/pr/n+2-5l17f-0FF b/tests/pr/n+2-5l17f-0FF
deleted file mode 100644
index 43c2fb4..0000000
--- a/tests/pr/n+2-5l17f-0FF
+++ /dev/null
@@ -1,43 +0,0 @@
--- Date/Time -- x Page 2
-
-
-
- -- Date/Time -- x Page 3
-
-
- 1.1 FF-Test: FF's at Start of File V
- 2.2 Options -b -3 / -a -3 / ...
- 3.3 --------------------------------------------
- 4.4 3456789 123456789 123456789 123456789 12345678
- 5.5 3 Columns downwards ..., <= 5 lines per page
- 6.6 FF-Arangements: Empty Pages at start
- 7.7 \ftext; \f\ntext;
- 8.8 \f\ftext; \f\f\ntext; \f\n\ftext; \f\n\f\n;
- 9.9 3456789 123456789 123456789
- 10.10 zzzzzzzzzzzzzzzzzzzzzzzzzz123456789
- 11.1 12345678
- 12.2 12345678
- 13.3 line truncation before FF; r_r_o_l-test:
- 14.14 456789 123456789 123456789 123456789
- -- Date/Time -- x Page 4
-
-
-
- -- Date/Time -- x Page 5
-
-
- 15.15 xyzxyzxyz XYZXYZXYZ abcabcab
- 16.16 456789 123456789 xyzxyzxyz XYZXYZXYZ
- 17.7 12345678
- 18.8 12345678
- 19.9 3456789 ab
- 20.20 DEFGHI 123
- 21.1 12345678
- 22.2 12345678
- 23.3 12345678
- 24.4 12345678
- 25.5 12345678
- 26.6 12345678
- 27.27 no truncation before FF; (r_l-test):
- 28.28 no trunc
- \ No newline at end of file
diff --git a/tests/pr/n+2-5l24f-0FF b/tests/pr/n+2-5l24f-0FF
new file mode 100644
index 0000000..653d578
--- /dev/null
+++ b/tests/pr/n+2-5l24f-0FF
@@ -0,0 +1,51 @@
+
+
+-- Date/Time -- x Page 2
+
+
+
+
+
+-- Date/Time -- x Page 3
+
+
+ 1.1 FF-Test: FF's at Start of File V
+ 2.2 Options -b -3 / -a -3 / ...
+ 3.3 --------------------------------------------
+ 4.4 3456789 123456789 123456789 123456789 12345678
+ 5.5 3 Columns downwards ..., <= 5 lines per page
+ 6.6 FF-Arangements: Empty Pages at start
+ 7.7 \ftext; \f\ntext;
+ 8.8 \f\ftext; \f\f\ntext; \f\n\ftext; \f\n\f\n;
+ 9.9 3456789 123456789 123456789
+ 10.10 zzzzzzzzzzzzzzzzzzzzzzzzzz123456789
+ 11.1 12345678
+ 12.2 12345678
+ 13.3 line truncation before FF; r_r_o_l-test:
+ 14.14 456789 123456789 123456789 123456789
+
+
+-- Date/Time -- x Page 4
+
+
+
+
+
+-- Date/Time -- x Page 5
+
+
+ 15.15 xyzxyzxyz XYZXYZXYZ abcabcab
+ 16.16 456789 123456789 xyzxyzxyz XYZXYZXYZ
+ 17.7 12345678
+ 18.8 12345678
+ 19.9 3456789 ab
+ 20.20 DEFGHI 123
+ 21.1 12345678
+ 22.2 12345678
+ 23.3 12345678
+ 24.4 12345678
+ 25.5 12345678
+ 26.6 12345678
+ 27.27 no truncation before FF; (r_l-test):
+ 28.28 no trunc
+ \ No newline at end of file
diff --git a/tests/pr/n+2l17f-0FF b/tests/pr/n+2l17f-0FF
deleted file mode 100644
index 6b714de..0000000
--- a/tests/pr/n+2l17f-0FF
+++ /dev/null
@@ -1,51 +0,0 @@
--- Date/Time -- x Page 2
-
-
-
- -- Date/Time -- x Page 3
-
-
- 1.1 FF-Test: FF's at Start of File V
- 2.2 Options -b -3 / -a -3 / ...
- 3.3 --------------------------------------------
- 4.4 3456789 123456789 123456789 123456789 12345678
- 5.5 3 Columns downwards ..., <= 5 lines per page
- 6.6 FF-Arangements: Empty Pages at start
- 7.7 \ftext; \f\ntext;
- 8.8 \f\ftext; \f\f\ntext; \f\n\ftext; \f\n\f\n;
- 9.9 3456789 123456789 123456789
- 10.10 zzzzzzzzzzzzzzzzzzzzzzzzzz123456789
- 11.1 12345678
- 12.2 12345678
- 13.3 line truncation before FF; r_r_o_l-test:
- 14.14 456789 123456789 123456789 123456789
- -- Date/Time -- x Page 4
-
-
-
- -- Date/Time -- x Page 5
-
-
- 15.15 xyzxyzxyz XYZXYZXYZ abcabcab
- 16.16 456789 123456789 xyzxyzxyz XYZXYZXYZ
- 17.7 12345678
- 18.8 12345678
- 19.9 3456789 ab
- 20.20 DEFGHI 123
- 21.1 12345678
- 22.2 12345678
- 23.3 12345678
- 24.4 12345678
- 25.5 12345678
- 26.6 12345678
- 27.27 no truncation before FF; (r_l-test):
- 28.28 no trunc
- -- Date/Time -- x Page 6
-
-
- 29.29 xyzxyzxyz XYZXYZXYZ abcabcab
- 30.30 456789 123456789 xyzxyzxyz XYZXYZXYZ
- 31.1 12345678
- 32.2 3456789 abcdefghi
- 33.3 12345678
- \ No newline at end of file
diff --git a/tests/pr/n+2l17f-bl b/tests/pr/n+2l17f-bl
deleted file mode 100644
index c038f9a..0000000
--- a/tests/pr/n+2l17f-bl
+++ /dev/null
@@ -1,94 +0,0 @@
--- Date/Time -- x Page 2
-
-
-
- -- Date/Time -- x Page 3
-
-
- 15.15 xyzxyzxyz XYZXYZXYZ abcabcab
- 16.16 456789 123456789 xyzxyzxyz XYZXYZXYZ
- 17.7 12345678
- 18.8 12345678
- 19.9 3456789 ab
- 20.20 DEFGHI 123
- 21.1 12345678
- 22.
- 23.
- 24.4 12345678
- 25.5 12345678
- 26.6 12345678
- 27.27 no truncation before FF; (r_l-test):
- 28.
- -- Date/Time -- x Page 4
-
-
-
- -- Date/Time -- x Page 5
-
-
- 29.29 xyzxyzxyz XYZXYZXYZ abcabcab
- 30.30 456789 123456789 xyzxyzxyz XYZXYZXYZ
- 31.1 12345678
- 32.2 3456789 abcdefghi
- 33.3 12345678
- 34.4 12345678
- 35.
- 36.6 12345678
- 37.7 12345678
- 38.8 12345678
- 39.9 3456789 abcdefghi
- 40.40 DEFGHI 123456789
- 41.41 yzxyzxyz XYZXYZXYZ abcabcab
- 42.42 456789 123456789 abcdefghi ABCDEDFHI
- -- Date/Time -- x Page 6
-
-
-
- -- Date/Time -- x Page 7
-
-
-
- -- Date/Time -- x Page 8
-
-
- 43.43 xyzxyzxyz XYZXYZXYZ abcabcab
- 44.44 456789 123456789 xyzxyzxyz XYZXYZXYZ
- 45.5 12345678
- 46.6 12345678
- 47.7 12345678
- 48.8 12345678
- 49.9 12345678
- 50.50 12345678
- 51.1 12345678
- 52.
- 53.
- 54.
- 55.55 yzxyzxyz XYZXYZXYZ abcabcab
- 56.56 456789 123456789 abcdefghi ABCDEDFHI
- -- Date/Time -- x Page 9
-
-
- 57.
- 58.58 456789 123456789 xyzxyzxyz XYZXYZXYZ
- 59.9 12345678
- 60.60 DEFGHI 123456789
- 61.61 yzxyzxyz XYZXYZXYZ abcabcab
- 62.62 456789 123456789 abcdefghi ABCDEDFHI
- 63.63 xyzxyzxyz XYZXYZXYZ abcabcab
- 64.64 456789 123456789 xyzxyzxyz XYZXYZXYZ
- 65.5 12345678
- 66.6 12345678
- 67.7 12345678
- 68.8 12345678
- 69.9 12345678
- 70.70 456789 123456789 abcdefghi ABCDEDFHI
- -- Date/Time -- x Page 10
-
-
- 71.1 12345678
- 72.
- 73.
- 74.
- 75.74 yzxyzxyz XYZXYZXYZ abcabcab
- 76.75 456789 123456789 abcdefghi ABCDEDFHI
- \ No newline at end of file
diff --git a/tests/pr/n+2l24f-0FF b/tests/pr/n+2l24f-0FF
new file mode 100644
index 0000000..4394e63
--- /dev/null
+++ b/tests/pr/n+2l24f-0FF
@@ -0,0 +1,61 @@
+
+
+-- Date/Time -- x Page 2
+
+
+
+
+
+-- Date/Time -- x Page 3
+
+
+ 1.1 FF-Test: FF's at Start of File V
+ 2.2 Options -b -3 / -a -3 / ...
+ 3.3 --------------------------------------------
+ 4.4 3456789 123456789 123456789 123456789 12345678
+ 5.5 3 Columns downwards ..., <= 5 lines per page
+ 6.6 FF-Arangements: Empty Pages at start
+ 7.7 \ftext; \f\ntext;
+ 8.8 \f\ftext; \f\f\ntext; \f\n\ftext; \f\n\f\n;
+ 9.9 3456789 123456789 123456789
+ 10.10 zzzzzzzzzzzzzzzzzzzzzzzzzz123456789
+ 11.1 12345678
+ 12.2 12345678
+ 13.3 line truncation before FF; r_r_o_l-test:
+ 14.14 456789 123456789 123456789 123456789
+
+
+-- Date/Time -- x Page 4
+
+
+
+
+
+-- Date/Time -- x Page 5
+
+
+ 15.15 xyzxyzxyz XYZXYZXYZ abcabcab
+ 16.16 456789 123456789 xyzxyzxyz XYZXYZXYZ
+ 17.7 12345678
+ 18.8 12345678
+ 19.9 3456789 ab
+ 20.20 DEFGHI 123
+ 21.1 12345678
+ 22.2 12345678
+ 23.3 12345678
+ 24.4 12345678
+ 25.5 12345678
+ 26.6 12345678
+ 27.27 no truncation before FF; (r_l-test):
+ 28.28 no trunc
+
+
+-- Date/Time -- x Page 6
+
+
+ 29.29 xyzxyzxyz XYZXYZXYZ abcabcab
+ 30.30 456789 123456789 xyzxyzxyz XYZXYZXYZ
+ 31.1 12345678
+ 32.2 3456789 abcdefghi
+ 33.3 12345678
+ \ No newline at end of file
diff --git a/tests/pr/n+2l24f-bl b/tests/pr/n+2l24f-bl
new file mode 100644
index 0000000..7eb114b
--- /dev/null
+++ b/tests/pr/n+2l24f-bl
@@ -0,0 +1,112 @@
+
+
+-- Date/Time -- x Page 2
+
+
+
+
+
+-- Date/Time -- x Page 3
+
+
+ 15.15 xyzxyzxyz XYZXYZXYZ abcabcab
+ 16.16 456789 123456789 xyzxyzxyz XYZXYZXYZ
+ 17.7 12345678
+ 18.8 12345678
+ 19.9 3456789 ab
+ 20.20 DEFGHI 123
+ 21.1 12345678
+ 22.
+ 23.
+ 24.4 12345678
+ 25.5 12345678
+ 26.6 12345678
+ 27.27 no truncation before FF; (r_l-test):
+ 28.
+
+
+-- Date/Time -- x Page 4
+
+
+
+
+
+-- Date/Time -- x Page 5
+
+
+ 29.29 xyzxyzxyz XYZXYZXYZ abcabcab
+ 30.30 456789 123456789 xyzxyzxyz XYZXYZXYZ
+ 31.1 12345678
+ 32.2 3456789 abcdefghi
+ 33.3 12345678
+ 34.4 12345678
+ 35.
+ 36.6 12345678
+ 37.7 12345678
+ 38.8 12345678
+ 39.9 3456789 abcdefghi
+ 40.40 DEFGHI 123456789
+ 41.41 yzxyzxyz XYZXYZXYZ abcabcab
+ 42.42 456789 123456789 abcdefghi ABCDEDFHI
+
+
+-- Date/Time -- x Page 6
+
+
+
+
+
+-- Date/Time -- x Page 7
+
+
+
+
+
+-- Date/Time -- x Page 8
+
+
+ 43.43 xyzxyzxyz XYZXYZXYZ abcabcab
+ 44.44 456789 123456789 xyzxyzxyz XYZXYZXYZ
+ 45.5 12345678
+ 46.6 12345678
+ 47.7 12345678
+ 48.8 12345678
+ 49.9 12345678
+ 50.50 12345678
+ 51.1 12345678
+ 52.
+ 53.
+ 54.
+ 55.55 yzxyzxyz XYZXYZXYZ abcabcab
+ 56.56 456789 123456789 abcdefghi ABCDEDFHI
+
+
+-- Date/Time -- x Page 9
+
+
+ 57.
+ 58.58 456789 123456789 xyzxyzxyz XYZXYZXYZ
+ 59.9 12345678
+ 60.60 DEFGHI 123456789
+ 61.61 yzxyzxyz XYZXYZXYZ abcabcab
+ 62.62 456789 123456789 abcdefghi ABCDEDFHI
+ 63.63 xyzxyzxyz XYZXYZXYZ abcabcab
+ 64.64 456789 123456789 xyzxyzxyz XYZXYZXYZ
+ 65.5 12345678
+ 66.6 12345678
+ 67.7 12345678
+ 68.8 12345678
+ 69.9 12345678
+ 70.70 456789 123456789 abcdefghi ABCDEDFHI
+
+
+-- Date/Time -- x Page 10
+
+
+ 71.1 12345678
+ 72.
+ 73.
+ 74.
+ 75.74 yzxyzxyz XYZXYZXYZ abcabcab
+ 76.75 456789 123456789 abcdefghi ABCDEDFHI
+ \ No newline at end of file
diff --git a/tests/pr/n+3l17f-0FF b/tests/pr/n+3l17f-0FF
deleted file mode 100644
index dd89ffc..0000000
--- a/tests/pr/n+3l17f-0FF
+++ /dev/null
@@ -1,47 +0,0 @@
--- Date/Time -- x Page 3
-
-
- 1.1 FF-Test: FF's at Start of File V
- 2.2 Options -b -3 / -a -3 / ...
- 3.3 --------------------------------------------
- 4.4 3456789 123456789 123456789 123456789 12345678
- 5.5 3 Columns downwards ..., <= 5 lines per page
- 6.6 FF-Arangements: Empty Pages at start
- 7.7 \ftext; \f\ntext;
- 8.8 \f\ftext; \f\f\ntext; \f\n\ftext; \f\n\f\n;
- 9.9 3456789 123456789 123456789
- 10.10 zzzzzzzzzzzzzzzzzzzzzzzzzz123456789
- 11.1 12345678
- 12.2 12345678
- 13.3 line truncation before FF; r_r_o_l-test:
- 14.14 456789 123456789 123456789 123456789
- -- Date/Time -- x Page 4
-
-
-
- -- Date/Time -- x Page 5
-
-
- 15.15 xyzxyzxyz XYZXYZXYZ abcabcab
- 16.16 456789 123456789 xyzxyzxyz XYZXYZXYZ
- 17.7 12345678
- 18.8 12345678
- 19.9 3456789 ab
- 20.20 DEFGHI 123
- 21.1 12345678
- 22.2 12345678
- 23.3 12345678
- 24.4 12345678
- 25.5 12345678
- 26.6 12345678
- 27.27 no truncation before FF; (r_l-test):
- 28.28 no trunc
- -- Date/Time -- x Page 6
-
-
- 29.29 xyzxyzxyz XYZXYZXYZ abcabcab
- 30.30 456789 123456789 xyzxyzxyz XYZXYZXYZ
- 31.1 12345678
- 32.2 3456789 abcdefghi
- 33.3 12345678
- \ No newline at end of file
diff --git a/tests/pr/n+3l17f-bl b/tests/pr/n+3l17f-bl
deleted file mode 100644
index 7c063b8..0000000
--- a/tests/pr/n+3l17f-bl
+++ /dev/null
@@ -1,90 +0,0 @@
--- Date/Time -- x Page 3
-
-
- 15.15 xyzxyzxyz XYZXYZXYZ abcabcab
- 16.16 456789 123456789 xyzxyzxyz XYZXYZXYZ
- 17.7 12345678
- 18.8 12345678
- 19.9 3456789 ab
- 20.20 DEFGHI 123
- 21.1 12345678
- 22.
- 23.
- 24.4 12345678
- 25.5 12345678
- 26.6 12345678
- 27.27 no truncation before FF; (r_l-test):
- 28.
- -- Date/Time -- x Page 4
-
-
-
- -- Date/Time -- x Page 5
-
-
- 29.29 xyzxyzxyz XYZXYZXYZ abcabcab
- 30.30 456789 123456789 xyzxyzxyz XYZXYZXYZ
- 31.1 12345678
- 32.2 3456789 abcdefghi
- 33.3 12345678
- 34.4 12345678
- 35.
- 36.6 12345678
- 37.7 12345678
- 38.8 12345678
- 39.9 3456789 abcdefghi
- 40.40 DEFGHI 123456789
- 41.41 yzxyzxyz XYZXYZXYZ abcabcab
- 42.42 456789 123456789 abcdefghi ABCDEDFHI
- -- Date/Time -- x Page 6
-
-
-
- -- Date/Time -- x Page 7
-
-
-
- -- Date/Time -- x Page 8
-
-
- 43.43 xyzxyzxyz XYZXYZXYZ abcabcab
- 44.44 456789 123456789 xyzxyzxyz XYZXYZXYZ
- 45.5 12345678
- 46.6 12345678
- 47.7 12345678
- 48.8 12345678
- 49.9 12345678
- 50.50 12345678
- 51.1 12345678
- 52.
- 53.
- 54.
- 55.55 yzxyzxyz XYZXYZXYZ abcabcab
- 56.56 456789 123456789 abcdefghi ABCDEDFHI
- -- Date/Time -- x Page 9
-
-
- 57.
- 58.58 456789 123456789 xyzxyzxyz XYZXYZXYZ
- 59.9 12345678
- 60.60 DEFGHI 123456789
- 61.61 yzxyzxyz XYZXYZXYZ abcabcab
- 62.62 456789 123456789 abcdefghi ABCDEDFHI
- 63.63 xyzxyzxyz XYZXYZXYZ abcabcab
- 64.64 456789 123456789 xyzxyzxyz XYZXYZXYZ
- 65.5 12345678
- 66.6 12345678
- 67.7 12345678
- 68.8 12345678
- 69.9 12345678
- 70.70 456789 123456789 abcdefghi ABCDEDFHI
- -- Date/Time -- x Page 10
-
-
- 71.1 12345678
- 72.
- 73.
- 74.
- 75.74 yzxyzxyz XYZXYZXYZ abcabcab
- 76.75 456789 123456789 abcdefghi ABCDEDFHI
- \ No newline at end of file
diff --git a/tests/pr/n+3l24f-0FF b/tests/pr/n+3l24f-0FF
new file mode 100644
index 0000000..7440d4c
--- /dev/null
+++ b/tests/pr/n+3l24f-0FF
@@ -0,0 +1,55 @@
+
+
+-- Date/Time -- x Page 3
+
+
+ 1.1 FF-Test: FF's at Start of File V
+ 2.2 Options -b -3 / -a -3 / ...
+ 3.3 --------------------------------------------
+ 4.4 3456789 123456789 123456789 123456789 12345678
+ 5.5 3 Columns downwards ..., <= 5 lines per page
+ 6.6 FF-Arangements: Empty Pages at start
+ 7.7 \ftext; \f\ntext;
+ 8.8 \f\ftext; \f\f\ntext; \f\n\ftext; \f\n\f\n;
+ 9.9 3456789 123456789 123456789
+ 10.10 zzzzzzzzzzzzzzzzzzzzzzzzzz123456789
+ 11.1 12345678
+ 12.2 12345678
+ 13.3 line truncation before FF; r_r_o_l-test:
+ 14.14 456789 123456789 123456789 123456789
+
+
+-- Date/Time -- x Page 4
+
+
+
+
+
+-- Date/Time -- x Page 5
+
+
+ 15.15 xyzxyzxyz XYZXYZXYZ abcabcab
+ 16.16 456789 123456789 xyzxyzxyz XYZXYZXYZ
+ 17.7 12345678
+ 18.8 12345678
+ 19.9 3456789 ab
+ 20.20 DEFGHI 123
+ 21.1 12345678
+ 22.2 12345678
+ 23.3 12345678
+ 24.4 12345678
+ 25.5 12345678
+ 26.6 12345678
+ 27.27 no truncation before FF; (r_l-test):
+ 28.28 no trunc
+
+
+-- Date/Time -- x Page 6
+
+
+ 29.29 xyzxyzxyz XYZXYZXYZ abcabcab
+ 30.30 456789 123456789 xyzxyzxyz XYZXYZXYZ
+ 31.1 12345678
+ 32.2 3456789 abcdefghi
+ 33.3 12345678
+ \ No newline at end of file
diff --git a/tests/pr/n+3l24f-bl b/tests/pr/n+3l24f-bl
new file mode 100644
index 0000000..0675c5a
--- /dev/null
+++ b/tests/pr/n+3l24f-bl
@@ -0,0 +1,106 @@
+
+
+-- Date/Time -- x Page 3
+
+
+ 15.15 xyzxyzxyz XYZXYZXYZ abcabcab
+ 16.16 456789 123456789 xyzxyzxyz XYZXYZXYZ
+ 17.7 12345678
+ 18.8 12345678
+ 19.9 3456789 ab
+ 20.20 DEFGHI 123
+ 21.1 12345678
+ 22.
+ 23.
+ 24.4 12345678
+ 25.5 12345678
+ 26.6 12345678
+ 27.27 no truncation before FF; (r_l-test):
+ 28.
+
+
+-- Date/Time -- x Page 4
+
+
+
+
+
+-- Date/Time -- x Page 5
+
+
+ 29.29 xyzxyzxyz XYZXYZXYZ abcabcab
+ 30.30 456789 123456789 xyzxyzxyz XYZXYZXYZ
+ 31.1 12345678
+ 32.2 3456789 abcdefghi
+ 33.3 12345678
+ 34.4 12345678
+ 35.
+ 36.6 12345678
+ 37.7 12345678
+ 38.8 12345678
+ 39.9 3456789 abcdefghi
+ 40.40 DEFGHI 123456789
+ 41.41 yzxyzxyz XYZXYZXYZ abcabcab
+ 42.42 456789 123456789 abcdefghi ABCDEDFHI
+
+
+-- Date/Time -- x Page 6
+
+
+
+
+
+-- Date/Time -- x Page 7
+
+
+
+
+
+-- Date/Time -- x Page 8
+
+
+ 43.43 xyzxyzxyz XYZXYZXYZ abcabcab
+ 44.44 456789 123456789 xyzxyzxyz XYZXYZXYZ
+ 45.5 12345678
+ 46.6 12345678
+ 47.7 12345678
+ 48.8 12345678
+ 49.9 12345678
+ 50.50 12345678
+ 51.1 12345678
+ 52.
+ 53.
+ 54.
+ 55.55 yzxyzxyz XYZXYZXYZ abcabcab
+ 56.56 456789 123456789 abcdefghi ABCDEDFHI
+
+
+-- Date/Time -- x Page 9
+
+
+ 57.
+ 58.58 456789 123456789 xyzxyzxyz XYZXYZXYZ
+ 59.9 12345678
+ 60.60 DEFGHI 123456789
+ 61.61 yzxyzxyz XYZXYZXYZ abcabcab
+ 62.62 456789 123456789 abcdefghi ABCDEDFHI
+ 63.63 xyzxyzxyz XYZXYZXYZ abcabcab
+ 64.64 456789 123456789 xyzxyzxyz XYZXYZXYZ
+ 65.5 12345678
+ 66.6 12345678
+ 67.7 12345678
+ 68.8 12345678
+ 69.9 12345678
+ 70.70 456789 123456789 abcdefghi ABCDEDFHI
+
+
+-- Date/Time -- x Page 10
+
+
+ 71.1 12345678
+ 72.
+ 73.
+ 74.
+ 75.74 yzxyzxyz XYZXYZXYZ abcabcab
+ 76.75 456789 123456789 abcdefghi ABCDEDFHI
+ \ No newline at end of file
diff --git a/tests/pr/n+3ml13f-bl-FF b/tests/pr/n+3ml13f-bl-FF
deleted file mode 100644
index d417e44..0000000
--- a/tests/pr/n+3ml13f-bl-FF
+++ /dev/null
@@ -1,103 +0,0 @@
--- Date/Time -- x Page 3
-
-
-
- -- Date/Time -- x Page 4
-
-
- 15.15 xyzxyzxyz XYZXYZXYZ abcabcab 15 xyzxyzxyz XYZXYZXYZ abcabcab
- 16.16 456789 123456789 xyzxyzxyz XYZ 16 456789 123456789 xyzxyzxyz XYZ
- 17.7 7
- 18.8 8
- 19.9 3456789 ab 9 3456789 ab
- 20.20 DEFGHI 123 20 DEFGHI 123
- 21.1 1
- 22. 2
- 23. 3
- 24.4 4
- -- Date/Time -- x Page 5
-
-
- 25.5 5
- 26.6 6
- 27.27 no truncation before FF; (r_l- 27 no truncation before FF; (r_l-
- 28. 28 no trunc
- -- Date/Time -- x Page 6
-
-
-
- -- Date/Time -- x Page 7
-
-
- 29.29 xyzxyzxyz XYZXYZXYZ abcabcab 29 xyzxyzxyz XYZXYZXYZ abcabcab
- 30.30 456789 123456789 xyzxyzxyz XYZ 30 456789 123456789 xyzxyzxyz XYZ
- 31.1 1
- 32.2 3456789 abcdefghi 2 3456789 abcdefghi
- 33.3 3
- 34.4 4
- 35. 5
- 36.6 6
- 37.7 7
- 38.8 8
- -- Date/Time -- x Page 8
-
-
- 39.9 3456789 abcdefghi 9 3456789 abcdefghi
- 40.40 DEFGHI 123456789 40 DEFGHI 123456789
- 41.41 yzxyzxyz XYZXYZXYZ abcabcab 41 yzxyzxyz XYZXYZXYZ abcabcab
- 42.42 456789 123456789 abcdefghi ABC 42 456789 123456789 abcdefghi ABC
- -- Date/Time -- x Page 9
-
-
-
- -- Date/Time -- x Page 10
-
-
-
- -- Date/Time -- x Page 11
-
-
- 43.43 xyzxyzxyz XYZXYZXYZ abcabcab 43 xyzxyzxyz XYZXYZXYZ abcabcab
- 44.44 456789 123456789 xyzxyzxyz XYZ 44 456789 123456789 xyzxyzxyz XYZ
- 45.5 5
- 46.6 6
- 47.7 7
- 48.8 8
- 49.9 9
- 50.50 50
- 51.1 1
- 52. 2
- -- Date/Time -- x Page 12
-
-
- 53. 3
- 54. 4
- 55.55 yzxyzxyz XYZXYZXYZ abcabcab 55 yzxyzxyz XYZXYZXYZ abcabcab
- 56.56 456789 123456789 abcdefghi ABC 56 456789 123456789 abcdefghi ABC
- -- Date/Time -- x Page 13
-
-
- 57. 57 xyzxyzxyz XYZXYZXYZ abcabcab
- 58.58 456789 123456789 xyzxyzxyz XYZ 58 456789 123456789 xyzxyzxyz XYZ
- 59.9 9
- 60.60 DEFGHI 123456789 60 DEFGHI 123456789
- 61.61 yzxyzxyz XYZXYZXYZ abcabcab
- 62.62 456789 123456789 abcdefghi ABC
- 63.63 xyzxyzxyz XYZXYZXYZ abcabcab
- 64.64 456789 123456789 xyzxyzxyz XYZ
- 65.5
- 66.6
- -- Date/Time -- x Page 14
-
-
- 67.7
- 68.8
- 69.9
- 70.70 456789 123456789 abcdefghi AB
- 71.1
- 72.
- 73.
- 74.
- 75.74 yzxyzxyz XYZXYZXYZ abcabcab
- 76.75 456789 123456789 abcdefghi ABC
- \ No newline at end of file
diff --git a/tests/pr/n+3ml17f-bl-tn b/tests/pr/n+3ml17f-bl-tn
deleted file mode 100644
index 1431165..0000000
--- a/tests/pr/n+3ml17f-bl-tn
+++ /dev/null
@@ -1,103 +0,0 @@
--- Date/Time -- x Page 3
-
-
- 15.15 xyzxyzxyz XYZXYZXYZ abcabcab 29 xyzxyzxyz XYZXYZXYZ abcabcab
- 16.16 456789 123456789 xyzxyzxyz XYZ 30 456789 123456789 xyzxyzxyz XYZ
- 17.7 1
- 18.8 2 3456789 abcdefghi
- 19.9 3456789 ab 3
- 20.20 DEFGHI 123 4
- 21.1 5
- 22. 6
- 23. 7
- 24.4 8
- 25.5 9 3456789 abcdefghi
- 26.6 40 DEFGHI 123456789
- 27.27 no truncation before FF; (r_l- 41 yzxyzxyz XYZXYZXYZ abcabcab
- 28. 42 456789 123456789 abcdefghi ABC
- -- Date/Time -- x Page 4
-
-
- 29. 43 xyzxyzxyz XYZXYZXYZ abcabcab
- 30. 44 456789 123456789 xyzxyzxyz XYZ
- 31. 5
- 32. 6
- 33. 7
- 34. 8
- 35. 9
- 36. 50
- 37. 1
- 38. 2
- 39. 3
- 40. 4
- 41. 55 yzxyzxyz XYZXYZXYZ abcabcab
- 42. 56 456789 123456789 abcdefghi ABC
- -- Date/Time -- x Page 5
-
-
- 43.29 xyzxyzxyz XYZXYZXYZ abcabcab 57 xyzxyzxyz XYZXYZXYZ abcabcab
- 44.30 456789 123456789 xyzxyzxyz XYZ 58 456789 123456789 xyzxyzxyz XYZ
- 45.1 9
- 46.2 3456789 abcdefghi 60 DEFGHI 123456789
- 47.3 1
- 48.4 2
- 49. 3 ------- EOF -------- EOF -----
- 50.6
- 51.7
- 52.8
- 53.9 3456789 abcdefghi
- 54.40 DEFGHI 123456789
- 55.41 yzxyzxyz XYZXYZXYZ abcabcab
- 56.42 456789 123456789 abcdefghi ABC
- -- Date/Time -- x Page 6
-
-
-
- -- Date/Time -- x Page 7
-
-
-
- -- Date/Time -- x Page 8
-
-
- 57.43 xyzxyzxyz XYZXYZXYZ abcabcab
- 58.44 456789 123456789 xyzxyzxyz XYZ
- 59.5
- 60.6
- 61.7
- 62.8
- 63.9
- 64.50
- 65.1
- 66.
- 67.
- 68.
- 69.55 yzxyzxyz XYZXYZXYZ abcabcab
- 70.56 456789 123456789 abcdefghi ABC
- -- Date/Time -- x Page 9
-
-
- 71.
- 72.58 456789 123456789 xyzxyzxyz XYZ
- 73.9
- 74.60 DEFGHI 123456789
- 75.61 yzxyzxyz XYZXYZXYZ abcabcab
- 76.62 456789 123456789 abcdefghi ABC
- 77.63 xyzxyzxyz XYZXYZXYZ abcabcab
- 78.64 456789 123456789 xyzxyzxyz XYZ
- 79.5
- 80.6
- 81.7
- 82.8
- 83.9
- 84.70 456789 123456789 abcdefghi AB
- -- Date/Time -- x Page 10
-
-
- 85.1
- 86.
- 87.
- 88.
- 89.74 yzxyzxyz XYZXYZXYZ abcabcab
- 90.75 456789 123456789 abcdefghi ABC
- \ No newline at end of file
diff --git a/tests/pr/n+3ml17f-tn-bl b/tests/pr/n+3ml17f-tn-bl
deleted file mode 100644
index efe0059..0000000
--- a/tests/pr/n+3ml17f-tn-bl
+++ /dev/null
@@ -1,103 +0,0 @@
--- Date/Time -- x Page 3
-
-
- 29.29 xyzxyzxyz XYZXYZXYZ abcabcab 15 xyzxyzxyz XYZXYZXYZ abcabcab
- 30.30 456789 123456789 xyzxyzxyz XYZ 16 456789 123456789 xyzxyzxyz XYZ
- 31.1 7
- 32.2 3456789 abcdefghi 8
- 33.3 9 3456789 ab
- 34.4 20 DEFGHI 123
- 35.5 1
- 36.6
- 37.7
- 38.8 4
- 39.9 3456789 abcdefghi 5
- 40.40 DEFGHI 123456789 6
- 41.41 yzxyzxyz XYZXYZXYZ abcabcab 27 no truncation before FF; (r_l-
- 42.42 456789 123456789 abcdefghi ABC
- -- Date/Time -- x Page 4
-
-
- 43.43 xyzxyzxyz XYZXYZXYZ abcabcab
- 44.44 456789 123456789 xyzxyzxyz XYZ
- 45.5
- 46.6
- 47.7
- 48.8
- 49.9
- 50.50
- 51.1
- 52.2
- 53.3
- 54.4
- 55.55 yzxyzxyz XYZXYZXYZ abcabcab
- 56.56 456789 123456789 abcdefghi ABC
- -- Date/Time -- x Page 5
-
-
- 57.57 xyzxyzxyz XYZXYZXYZ abcabcab 29 xyzxyzxyz XYZXYZXYZ abcabcab
- 58.58 456789 123456789 xyzxyzxyz XYZ 30 456789 123456789 xyzxyzxyz XYZ
- 59.9 1
- 60.60 DEFGHI 123456789 2 3456789 abcdefghi
- 61.1 3
- 62.2 4
- 63.3 ------- EOF -------- EOF -----
- 64. 6
- 65. 7
- 66. 8
- 67. 9 3456789 abcdefghi
- 68. 40 DEFGHI 123456789
- 69. 41 yzxyzxyz XYZXYZXYZ abcabcab
- 70. 42 456789 123456789 abcdefghi ABC
- -- Date/Time -- x Page 6
-
-
-
- -- Date/Time -- x Page 7
-
-
-
- -- Date/Time -- x Page 8
-
-
- 71. 43 xyzxyzxyz XYZXYZXYZ abcabcab
- 72. 44 456789 123456789 xyzxyzxyz XYZ
- 73. 5
- 74. 6
- 75. 7
- 76. 8
- 77. 9
- 78. 50
- 79. 1
- 80.
- 81.
- 82.
- 83. 55 yzxyzxyz XYZXYZXYZ abcabcab
- 84. 56 456789 123456789 abcdefghi ABC
- -- Date/Time -- x Page 9
-
-
- 85.
- 86. 58 456789 123456789 xyzxyzxyz XYZ
- 87. 9
- 88. 60 DEFGHI 123456789
- 89. 61 yzxyzxyz XYZXYZXYZ abcabcab
- 90. 62 456789 123456789 abcdefghi ABC
- 91. 63 xyzxyzxyz XYZXYZXYZ abcabcab
- 92. 64 456789 123456789 xyzxyzxyz XYZ
- 93. 5
- 94. 6
- 95. 7
- 96. 8
- 97. 9
- 98. 70 456789 123456789 abcdefghi AB
- -- Date/Time -- x Page 10
-
-
- 99. 1
-100.
-101.
-102.
-103. 74 yzxyzxyz XYZXYZXYZ abcabcab
-104. 75 456789 123456789 abcdefghi ABC
- \ No newline at end of file
diff --git a/tests/pr/n+3ml20f-bl-FF b/tests/pr/n+3ml20f-bl-FF
new file mode 100644
index 0000000..fc2e720
--- /dev/null
+++ b/tests/pr/n+3ml20f-bl-FF
@@ -0,0 +1,127 @@
+
+
+-- Date/Time -- x Page 3
+
+
+
+
+
+-- Date/Time -- x Page 4
+
+
+ 15.15 xyzxyzxyz XYZXYZXYZ abcabcab 15 xyzxyzxyz XYZXYZXYZ abcabcab
+ 16.16 456789 123456789 xyzxyzxyz XYZ 16 456789 123456789 xyzxyzxyz XYZ
+ 17.7 7
+ 18.8 8
+ 19.9 3456789 ab 9 3456789 ab
+ 20.20 DEFGHI 123 20 DEFGHI 123
+ 21.1 1
+ 22. 2
+ 23. 3
+ 24.4 4
+
+
+-- Date/Time -- x Page 5
+
+
+ 25.5 5
+ 26.6 6
+ 27.27 no truncation before FF; (r_l- 27 no truncation before FF; (r_l-
+ 28. 28 no trunc
+
+
+-- Date/Time -- x Page 6
+
+
+
+
+
+-- Date/Time -- x Page 7
+
+
+ 29.29 xyzxyzxyz XYZXYZXYZ abcabcab 29 xyzxyzxyz XYZXYZXYZ abcabcab
+ 30.30 456789 123456789 xyzxyzxyz XYZ 30 456789 123456789 xyzxyzxyz XYZ
+ 31.1 1
+ 32.2 3456789 abcdefghi 2 3456789 abcdefghi
+ 33.3 3
+ 34.4 4
+ 35. 5
+ 36.6 6
+ 37.7 7
+ 38.8 8
+
+
+-- Date/Time -- x Page 8
+
+
+ 39.9 3456789 abcdefghi 9 3456789 abcdefghi
+ 40.40 DEFGHI 123456789 40 DEFGHI 123456789
+ 41.41 yzxyzxyz XYZXYZXYZ abcabcab 41 yzxyzxyz XYZXYZXYZ abcabcab
+ 42.42 456789 123456789 abcdefghi ABC 42 456789 123456789 abcdefghi ABC
+
+
+-- Date/Time -- x Page 9
+
+
+
+
+
+-- Date/Time -- x Page 10
+
+
+
+
+
+-- Date/Time -- x Page 11
+
+
+ 43.43 xyzxyzxyz XYZXYZXYZ abcabcab 43 xyzxyzxyz XYZXYZXYZ abcabcab
+ 44.44 456789 123456789 xyzxyzxyz XYZ 44 456789 123456789 xyzxyzxyz XYZ
+ 45.5 5
+ 46.6 6
+ 47.7 7
+ 48.8 8
+ 49.9 9
+ 50.50 50
+ 51.1 1
+ 52. 2
+
+
+-- Date/Time -- x Page 12
+
+
+ 53. 3
+ 54. 4
+ 55.55 yzxyzxyz XYZXYZXYZ abcabcab 55 yzxyzxyz XYZXYZXYZ abcabcab
+ 56.56 456789 123456789 abcdefghi ABC 56 456789 123456789 abcdefghi ABC
+
+
+-- Date/Time -- x Page 13
+
+
+ 57. 57 xyzxyzxyz XYZXYZXYZ abcabcab
+ 58.58 456789 123456789 xyzxyzxyz XYZ 58 456789 123456789 xyzxyzxyz XYZ
+ 59.9 9
+ 60.60 DEFGHI 123456789 60 DEFGHI 123456789
+ 61.61 yzxyzxyz XYZXYZXYZ abcabcab
+ 62.62 456789 123456789 abcdefghi ABC
+ 63.63 xyzxyzxyz XYZXYZXYZ abcabcab
+ 64.64 456789 123456789 xyzxyzxyz XYZ
+ 65.5
+ 66.6
+
+
+-- Date/Time -- x Page 14
+
+
+ 67.7
+ 68.8
+ 69.9
+ 70.70 456789 123456789 abcdefghi AB
+ 71.1
+ 72.
+ 73.
+ 74.
+ 75.74 yzxyzxyz XYZXYZXYZ abcabcab
+ 76.75 456789 123456789 abcdefghi ABC
+ \ No newline at end of file
diff --git a/tests/pr/n+3ml24f-bl-tn b/tests/pr/n+3ml24f-bl-tn
new file mode 100644
index 0000000..4346035
--- /dev/null
+++ b/tests/pr/n+3ml24f-bl-tn
@@ -0,0 +1,119 @@
+
+
+-- Date/Time -- x Page 3
+
+
+ 15.15 xyzxyzxyz XYZXYZXYZ abcabcab 29 xyzxyzxyz XYZXYZXYZ abcabcab
+ 16.16 456789 123456789 xyzxyzxyz XYZ 30 456789 123456789 xyzxyzxyz XYZ
+ 17.7 1
+ 18.8 2 3456789 abcdefghi
+ 19.9 3456789 ab 3
+ 20.20 DEFGHI 123 4
+ 21.1 5
+ 22. 6
+ 23. 7
+ 24.4 8
+ 25.5 9 3456789 abcdefghi
+ 26.6 40 DEFGHI 123456789
+ 27.27 no truncation before FF; (r_l- 41 yzxyzxyz XYZXYZXYZ abcabcab
+ 28. 42 456789 123456789 abcdefghi ABC
+
+
+-- Date/Time -- x Page 4
+
+
+ 29. 43 xyzxyzxyz XYZXYZXYZ abcabcab
+ 30. 44 456789 123456789 xyzxyzxyz XYZ
+ 31. 5
+ 32. 6
+ 33. 7
+ 34. 8
+ 35. 9
+ 36. 50
+ 37. 1
+ 38. 2
+ 39. 3
+ 40. 4
+ 41. 55 yzxyzxyz XYZXYZXYZ abcabcab
+ 42. 56 456789 123456789 abcdefghi ABC
+
+
+-- Date/Time -- x Page 5
+
+
+ 43.29 xyzxyzxyz XYZXYZXYZ abcabcab 57 xyzxyzxyz XYZXYZXYZ abcabcab
+ 44.30 456789 123456789 xyzxyzxyz XYZ 58 456789 123456789 xyzxyzxyz XYZ
+ 45.1 9
+ 46.2 3456789 abcdefghi 60 DEFGHI 123456789
+ 47.3 1
+ 48.4 2
+ 49. 3 ------- EOF -------- EOF -----
+ 50.6
+ 51.7
+ 52.8
+ 53.9 3456789 abcdefghi
+ 54.40 DEFGHI 123456789
+ 55.41 yzxyzxyz XYZXYZXYZ abcabcab
+ 56.42 456789 123456789 abcdefghi ABC
+
+
+-- Date/Time -- x Page 6
+
+
+
+
+
+-- Date/Time -- x Page 7
+
+
+
+
+
+-- Date/Time -- x Page 8
+
+
+ 57.43 xyzxyzxyz XYZXYZXYZ abcabcab
+ 58.44 456789 123456789 xyzxyzxyz XYZ
+ 59.5
+ 60.6
+ 61.7
+ 62.8
+ 63.9
+ 64.50
+ 65.1
+ 66.
+ 67.
+ 68.
+ 69.55 yzxyzxyz XYZXYZXYZ abcabcab
+ 70.56 456789 123456789 abcdefghi ABC
+
+
+-- Date/Time -- x Page 9
+
+
+ 71.
+ 72.58 456789 123456789 xyzxyzxyz XYZ
+ 73.9
+ 74.60 DEFGHI 123456789
+ 75.61 yzxyzxyz XYZXYZXYZ abcabcab
+ 76.62 456789 123456789 abcdefghi ABC
+ 77.63 xyzxyzxyz XYZXYZXYZ abcabcab
+ 78.64 456789 123456789 xyzxyzxyz XYZ
+ 79.5
+ 80.6
+ 81.7
+ 82.8
+ 83.9
+ 84.70 456789 123456789 abcdefghi AB
+
+
+-- Date/Time -- x Page 10
+
+
+ 85.1
+ 86.
+ 87.
+ 88.
+ 89.74 yzxyzxyz XYZXYZXYZ abcabcab
+ 90.75 456789 123456789 abcdefghi ABC
+ \ No newline at end of file
diff --git a/tests/pr/n+3ml24f-tn-bl b/tests/pr/n+3ml24f-tn-bl
new file mode 100644
index 0000000..76bcf93
--- /dev/null
+++ b/tests/pr/n+3ml24f-tn-bl
@@ -0,0 +1,119 @@
+
+
+-- Date/Time -- x Page 3
+
+
+ 29.29 xyzxyzxyz XYZXYZXYZ abcabcab 15 xyzxyzxyz XYZXYZXYZ abcabcab
+ 30.30 456789 123456789 xyzxyzxyz XYZ 16 456789 123456789 xyzxyzxyz XYZ
+ 31.1 7
+ 32.2 3456789 abcdefghi 8
+ 33.3 9 3456789 ab
+ 34.4 20 DEFGHI 123
+ 35.5 1
+ 36.6
+ 37.7
+ 38.8 4
+ 39.9 3456789 abcdefghi 5
+ 40.40 DEFGHI 123456789 6
+ 41.41 yzxyzxyz XYZXYZXYZ abcabcab 27 no truncation before FF; (r_l-
+ 42.42 456789 123456789 abcdefghi ABC
+
+
+-- Date/Time -- x Page 4
+
+
+ 43.43 xyzxyzxyz XYZXYZXYZ abcabcab
+ 44.44 456789 123456789 xyzxyzxyz XYZ
+ 45.5
+ 46.6
+ 47.7
+ 48.8
+ 49.9
+ 50.50
+ 51.1
+ 52.2
+ 53.3
+ 54.4
+ 55.55 yzxyzxyz XYZXYZXYZ abcabcab
+ 56.56 456789 123456789 abcdefghi ABC
+
+
+-- Date/Time -- x Page 5
+
+
+ 57.57 xyzxyzxyz XYZXYZXYZ abcabcab 29 xyzxyzxyz XYZXYZXYZ abcabcab
+ 58.58 456789 123456789 xyzxyzxyz XYZ 30 456789 123456789 xyzxyzxyz XYZ
+ 59.9 1
+ 60.60 DEFGHI 123456789 2 3456789 abcdefghi
+ 61.1 3
+ 62.2 4
+ 63.3 ------- EOF -------- EOF -----
+ 64. 6
+ 65. 7
+ 66. 8
+ 67. 9 3456789 abcdefghi
+ 68. 40 DEFGHI 123456789
+ 69. 41 yzxyzxyz XYZXYZXYZ abcabcab
+ 70. 42 456789 123456789 abcdefghi ABC
+
+
+-- Date/Time -- x Page 6
+
+
+
+
+
+-- Date/Time -- x Page 7
+
+
+
+
+
+-- Date/Time -- x Page 8
+
+
+ 71. 43 xyzxyzxyz XYZXYZXYZ abcabcab
+ 72. 44 456789 123456789 xyzxyzxyz XYZ
+ 73. 5
+ 74. 6
+ 75. 7
+ 76. 8
+ 77. 9
+ 78. 50
+ 79. 1
+ 80.
+ 81.
+ 82.
+ 83. 55 yzxyzxyz XYZXYZXYZ abcabcab
+ 84. 56 456789 123456789 abcdefghi ABC
+
+
+-- Date/Time -- x Page 9
+
+
+ 85.
+ 86. 58 456789 123456789 xyzxyzxyz XYZ
+ 87. 9
+ 88. 60 DEFGHI 123456789
+ 89. 61 yzxyzxyz XYZXYZXYZ abcabcab
+ 90. 62 456789 123456789 abcdefghi ABC
+ 91. 63 xyzxyzxyz XYZXYZXYZ abcabcab
+ 92. 64 456789 123456789 xyzxyzxyz XYZ
+ 93. 5
+ 94. 6
+ 95. 7
+ 96. 8
+ 97. 9
+ 98. 70 456789 123456789 abcdefghi AB
+
+
+-- Date/Time -- x Page 10
+
+
+ 99. 1
+100.
+101.
+102.
+103. 74 yzxyzxyz XYZXYZXYZ abcabcab
+104. 75 456789 123456789 abcdefghi ABC
+ \ No newline at end of file
diff --git a/tests/pr/n+4b2l10f-0FF b/tests/pr/n+4b2l10f-0FF
deleted file mode 100644
index 2285c04..0000000
--- a/tests/pr/n+4b2l10f-0FF
+++ /dev/null
@@ -1,21 +0,0 @@
--- Date/Time -- x Page 4
-
-
-
- -- Date/Time -- x Page 5
-
-
- 15.15 xyzxyzxyz XYZXYZXYZ abcabcab 22.2
- 16.16 456789 123456789 xyzxyzxyz X 23.3
- 17.7 24.4
- 18.8 25.5
- 19.9 3456789 ab 26.6
- 20.20 DEFGHI 123 27.27 no truncation before FF; (r_
- 21.1 28.28 no trunc
- -- Date/Time -- x Page 6
-
-
- 29.29 xyzxyzxyz XYZXYZXYZ abcabcab 32.2 3456789 abcdefghi
- 30.30 456789 123456789 xyzxyzxyz X 33.3
- 31.1
- \ No newline at end of file
diff --git a/tests/pr/n+4b2l17f-0FF b/tests/pr/n+4b2l17f-0FF
new file mode 100644
index 0000000..ecc974d
--- /dev/null
+++ b/tests/pr/n+4b2l17f-0FF
@@ -0,0 +1,27 @@
+
+
+-- Date/Time -- x Page 4
+
+
+
+
+
+-- Date/Time -- x Page 5
+
+
+ 15.15 xyzxyzxyz XYZXYZXYZ abcabcab 22.2
+ 16.16 456789 123456789 xyzxyzxyz X 23.3
+ 17.7 24.4
+ 18.8 25.5
+ 19.9 3456789 ab 26.6
+ 20.20 DEFGHI 123 27.27 no truncation before FF; (r_
+ 21.1 28.28 no trunc
+
+
+-- Date/Time -- x Page 6
+
+
+ 29.29 xyzxyzxyz XYZXYZXYZ abcabcab 32.2 3456789 abcdefghi
+ 30.30 456789 123456789 xyzxyzxyz X 33.3
+ 31.1
+ \ No newline at end of file
diff --git a/tests/pr/n+5-8b3l10f-FF b/tests/pr/n+5-8b3l10f-FF
deleted file mode 100644
index 301220a..0000000
--- a/tests/pr/n+5-8b3l10f-FF
+++ /dev/null
@@ -1,25 +0,0 @@
--- Date/Time -- x Page 5
-
-
- 29.29 xyzxyzxyz XYZXYZ 34.4 39.9 3456789 abcdefghi
- 30.30 456789 123456789 35.5 40.40 DEFGHI 123456789
- 31.1 36.6 41.41 yzxyzxyz XYZXYZX
- 32.2 3456789 abcdefghi 37.7 42.42 456789 123456789
- 33.3 38.8
- -- Date/Time -- x Page 6
-
-
-
- -- Date/Time -- x Page 7
-
-
-
- -- Date/Time -- x Page 8
-
-
- 43.43 xyzxyzxyz XYZXYZ 48.8 53.3
- 44.44 456789 123456789 49.9 54.4
- 45.5 50.50 55.55 yzxyzxyz XYZXYZX
- 46.6 51.1 56.56 456789 123456789
- 47.7 52.2
- \ No newline at end of file
diff --git a/tests/pr/n+5-8b3l17f-FF b/tests/pr/n+5-8b3l17f-FF
new file mode 100644
index 0000000..2fb2286
--- /dev/null
+++ b/tests/pr/n+5-8b3l17f-FF
@@ -0,0 +1,33 @@
+
+
+-- Date/Time -- x Page 5
+
+
+ 29.29 xyzxyzxyz XYZXYZ 34.4 39.9 3456789 abcdefghi
+ 30.30 456789 123456789 35.5 40.40 DEFGHI 123456789
+ 31.1 36.6 41.41 yzxyzxyz XYZXYZX
+ 32.2 3456789 abcdefghi 37.7 42.42 456789 123456789
+ 33.3 38.8
+
+
+-- Date/Time -- x Page 6
+
+
+
+
+
+-- Date/Time -- x Page 7
+
+
+
+
+
+-- Date/Time -- x Page 8
+
+
+ 43.43 xyzxyzxyz XYZXYZ 48.8 53.3
+ 44.44 456789 123456789 49.9 54.4
+ 45.5 50.50 55.55 yzxyzxyz XYZXYZX
+ 46.6 51.1 56.56 456789 123456789
+ 47.7 52.2
+ \ No newline at end of file
diff --git a/tests/pr/n+5a3l13f-0FF b/tests/pr/n+5a3l13f-0FF
new file mode 100644
index 0000000..db19871
--- /dev/null
+++ b/tests/pr/n+5a3l13f-0FF
@@ -0,0 +1,29 @@
+
+
+-- Date/Time -- x Page 5
+
+
+
+
+
+-- Date/Time -- x Page 6
+
+
+ 15.15 xyzxyzxyz XYZXYZ 16.16 456789 123456789 17.7
+ 18.8 19.9 3456789 ab 20.20 DEFGHI 123
+ 21.1 22.2 23.3
+
+
+-- Date/Time -- x Page 7
+
+
+ 24.4 25.5 26.6
+ 27.27 no truncation be 28.28 no trunc
+
+
+-- Date/Time -- x Page 8
+
+
+ 29.29 xyzxyzxyz XYZXYZ 30.30 456789 123456789 31.1
+ 32.2 3456789 abcdefghi 33.3
+ \ No newline at end of file
diff --git a/tests/pr/n+5a3l6f-0FF b/tests/pr/n+5a3l6f-0FF
deleted file mode 100644
index b2cd7c4..0000000
--- a/tests/pr/n+5a3l6f-0FF
+++ /dev/null
@@ -1,21 +0,0 @@
--- Date/Time -- x Page 5
-
-
-
- -- Date/Time -- x Page 6
-
-
- 15.15 xyzxyzxyz XYZXYZ 16.16 456789 123456789 17.7
- 18.8 19.9 3456789 ab 20.20 DEFGHI 123
- 21.1 22.2 23.3
- -- Date/Time -- x Page 7
-
-
- 24.4 25.5 26.6
- 27.27 no truncation be 28.28 no trunc
- -- Date/Time -- x Page 8
-
-
- 29.29 xyzxyzxyz XYZXYZ 30.30 456789 123456789 31.1
- 32.2 3456789 abcdefghi 33.3
- \ No newline at end of file
diff --git a/tests/pr/n+6b3l13f-FF b/tests/pr/n+6b3l13f-FF
new file mode 100644
index 0000000..0795673
--- /dev/null
+++ b/tests/pr/n+6b3l13f-FF
@@ -0,0 +1,56 @@
+
+
+-- Date/Time -- x Page 6
+
+
+
+
+
+-- Date/Time -- x Page 7
+
+
+ 29.29 xyzxyzxyz XYZXYZ 32.2 3456789 abcdefghi 35.5
+ 30.30 456789 123456789 33.3 36.6
+ 31.1 34.4 37.7
+
+
+-- Date/Time -- x Page 8
+
+
+ 38.8 40.40 DEFGHI 123456789 42.42 456789 123456789
+ 39.9 3456789 abcdefghi 41.41 yzxyzxyz XYZXYZX
+
+
+-- Date/Time -- x Page 9
+
+
+
+
+
+-- Date/Time -- x Page 10
+
+
+
+
+
+-- Date/Time -- x Page 11
+
+
+ 43.43 xyzxyzxyz XYZXYZ 46.6 49.9
+ 44.44 456789 123456789 47.7 50.50
+ 45.5 48.8 51.1
+
+
+-- Date/Time -- x Page 12
+
+
+ 52.2 54.4 56.56 456789 123456789
+ 53.3 55.55 yzxyzxyz XYZXYZX
+
+
+-- Date/Time -- x Page 13
+
+
+ 57.57 xyzxyzxyz XYZXYZ 59.9 60.60 DEFGHI 123456789
+ 58.58 456789 123456789
+ \ No newline at end of file
diff --git a/tests/pr/n+6b3l6f-FF b/tests/pr/n+6b3l6f-FF
deleted file mode 100644
index 5e0d55a..0000000
--- a/tests/pr/n+6b3l6f-FF
+++ /dev/null
@@ -1,40 +0,0 @@
--- Date/Time -- x Page 6
-
-
-
- -- Date/Time -- x Page 7
-
-
- 29.29 xyzxyzxyz XYZXYZ 32.2 3456789 abcdefghi 35.5
- 30.30 456789 123456789 33.3 36.6
- 31.1 34.4 37.7
- -- Date/Time -- x Page 8
-
-
- 38.8 40.40 DEFGHI 123456789 42.42 456789 123456789
- 39.9 3456789 abcdefghi 41.41 yzxyzxyz XYZXYZX
- -- Date/Time -- x Page 9
-
-
-
- -- Date/Time -- x Page 10
-
-
-
- -- Date/Time -- x Page 11
-
-
- 43.43 xyzxyzxyz XYZXYZ 46.6 49.9
- 44.44 456789 123456789 47.7 50.50
- 45.5 48.8 51.1
- -- Date/Time -- x Page 12
-
-
- 52.2 54.4 56.56 456789 123456789
- 53.3 55.55 yzxyzxyz XYZXYZX
- -- Date/Time -- x Page 13
-
-
- 57.57 xyzxyzxyz XYZXYZ 59.9 60.60 DEFGHI 123456789
- 58.58 456789 123456789
- \ No newline at end of file
diff --git a/tests/pr/nJml17f-lmlmlo b/tests/pr/nJml17f-lmlmlo
deleted file mode 100644
index c3a8244..0000000
--- a/tests/pr/nJml17f-lmlmlo
+++ /dev/null
@@ -1,118 +0,0 @@
--- Date/Time -- x Page 1
-
-
- 1.1<<< -Test: FF's in Text >>> 1<<< -Test: FF's in Text >>> 1::: Test-INPUT: "Without FF set by Hand" :::
- 2.2<<< -b -3 / -a -3 / ... >>> 2<<< -b -3 / -a -3 / ... >>> 2::: Options -b -3 [+2|+3] [-l 15|8] [-f] :::
- 3.3<<< >>> 3<<< >>> 3::: Options -a -3 [+2|+3] [-l 15|8] [-f] :::
- 4.4<<< 123456789 123456789 123456789 12345678 >>> 4<<< 123456789 123456789 123456789 12345678 >>> 4::: Options [+2|+3] [-l 24|17] [-f] :::
- 5. 5::: :::
- 6.6<<< -Arangements: One Empty Page >>> 6<<< -Arangements: One Empty Page >>> 6::: -------------------------------------------- :::
- 7.7<<< \f\f\n; text\f\n\ftext; \f\ftext; >>> 7<<< \f\f\n; text\f\n\ftext; \f\ftext; >>> 7::: 789 123456789 123456789 123456789 123456789 123456789 123456789 1234567890 :::
- 8.8<<< f\f\n; \f\n\f\n; >>> 8<<< f\f\n; \f\n\f\n; >>> 8::: 3 Columns downwards, across, ...: :::
- 9.9<<< >>> 9<<< >>> 9::: With columns use <= 5 text lines/page, :::
- 10.10<<< >>> 10<<< >>> 10::: without -f e.g.: -l 15 = total lines/page, :::
- 11.1<<< >>> 1<<< >>> 1::: with -f e.g. : -l 8 -f :::
- 12.2<<< >>> 2<<< >>> 2::: :::
- 13.3<<< truncation before FF; r_r_o_l-test: >>> 3<<< truncation before FF; r_r_o_l-test: >>> 3::: line truncation before new page; r_r_o_l-test: :::
- 14.14<<< 123456789 123456789 123456789 >>> 14<<< 123456789 123456789 123456789 >>> 14::: 89 123456789 123456789 123456789 123456789 123456789 123456789 1234567890 :::
- -- Date/Time -- x Page 2
-
-
- 15. 15::: xyzxyzxyz XYZXYZXYZ abcabcab :::
- 16. 16::: 456789 123456789 xyzxyzxyz XYZXYZXYZ :::
- 17. 7::: 12345678 :::
- 18. 8::: 12345678 :::
- 19. 9::: 3456789 ab :::
- 20. 20::: DEFGHI 123 :::
- 21. 21::: 89 123456789 123456789 123456789 123456789 123456789 123456789 1234567890 :::
- 22. 2::: 12345678 :::
- 23. 3::: 12345678 :::
- 24. 4::: 12345678 :::
- 25. 5::: 12345678 :::
- 26. 6::: 12345678 :::
- 27. 27::: no truncation before nwe page; (r_l-test): :::
- 28. 28::: 89 123456789 123456789 123456789 123456789 123456789 123456789 1234567890 :::
- -- Date/Time -- x Page 3
-
-
- 29.15<<< xyzxyzxyz XYZXYZXYZ abcabcab >>> 15<<< xyzxyzxyz XYZXYZXYZ abcabcab >>> 29::: xyzxyzxyz XYZXYZXYZ abcabcab :::
- 30.16<<< 123456789 xyzxyzxyz XYZXYZXYZ >>> 16<<< 123456789 xyzxyzxyz XYZXYZXYZ >>> 30::: 456789 123456789 xyzxyzxyz XYZXYZXYZ :::
- 31.7<<< >>> 7<<< >>> 1::: 12345678 :::
- 32.8<<< >>> 8<<< >>> 2::: 3456789 abcdefghi :::
- 33.9<<< >>> 9<<< >>> 3::: 12345678 :::
- 34.20<<< >>> 20<<< >>> 4::: 12345678 :::
- 35.1<<< >>> 1<<< >>> 35::: 89 123456789 123456789 123456789 123456789 123456789 123456789 1234567890 :::
- 36. 6::: 12345678 :::
- 37. 7::: 12345678 :::
- 38.4<<< >>> 4<<< >>> 8::: 12345678 :::
- 39.5<<< >>> 5<<< >>> 9::: 3456789 abcdefghi :::
- 40.6<<< >>> 6<<< >>> 40::: DEFGHI 123456789 :::
- 41.27<<< truncation before FF; (r_l-test): >>> 27<<< truncation before FF; (r_l-test): >>> 41::: yzxyzxyz XYZXYZXYZ abcabcab :::
- 42.28<<< trunc 28<<< trunc 42::: 89 123456789 123456789 123456789 123456789 123456789 123456789 1234567890 :::
- -- Date/Time -- x Page 4
-
-
- 43. 43::: xyzxyzxyz XYZXYZXYZ abcabcab :::
- 44. 44::: 456789 123456789 xyzxyzxyz XYZXYZXYZ :::
- 45. 5::: 12345678 :::
- 46. 6::: 12345678 :::
- 47. 7::: 12345678 :::
- 48. 8::: 12345678 :::
- 49. 49::: 89 123456789 123456789 123456789 123456789 123456789 123456789 1234567890 :::
- 50. 50::: 12345678 :::
- 51. 1::: 12345678 :::
- 52. 2::: 12345678 :::
- 53. 3::: 12345678 :::
- 54. 4::: 12345678 :::
- 55. 55::: yzxyzxyz XYZXYZXYZ abcabcab :::
- 56. 56::: 89 123456789 123456789 123456789 123456789 123456789 123456789 1234567890 :::
- -- Date/Time -- x Page 5
-
-
- 57.29<<<xyzxyzxyz XYZXYZXYZ abcabcab >>> 29<<<xyzxyzxyz XYZXYZXYZ abcabcab >>> 57::: xyzxyzxyz XYZXYZXYZ abcabcab :::
- 58.30<<< 123456789 xyzxyzxyz XYZXYZXYZ >>> 30<<< 123456789 xyzxyzxyz XYZXYZXYZ >>> 58::: 456789 123456789 xyzxyzxyz XYZXYZXYZ :::
- 59.1<<< >>> 1<<< >>> 9::: 12345678 :::
- 60.2<<< abcdefghi >>> 2<<< abcdefghi >>> 60::: DEFGHI 123456789 :::
- 61.3<<< >>> 3<<< >>> 1::: :::
- 62.4<<< >>> 4<<< >>> 2::: :::
- 63.5<<< >>> 5<<< >>> 3::: ------- EOF -------- EOF -------- EOF ------- EOF ------- EOF ------- EOF :::
- 64.6<<< >>> 6<<< >>>
- 65.7<<< >>> 7<<< >>>
- 66.8<<< >>> 8<<< >>>
- 67.9<<< abcdefghi >>> 9<<< abcdefghi >>>
- 68.40<<< 123456789 >>> 40<<< 123456789 >>>
- 69.41<<< XYZXYZXYZ abcabcab >>> 41<<< XYZXYZXYZ abcabcab >>>
- 70.42<<< 123456789 abcdefghi ABCDEDFHI >>> 42<<< 123456789 abcdefghi ABCDEDFHI >>>
- -- Date/Time -- x Page 6
-
-
-
- -- Date/Time -- x Page 7
-
-
-
- -- Date/Time -- x Page 8
-
-
- 71.43<<< xyzxyzxyz XYZXYZXYZ abcabcab >>> 43<<< xyzxyzxyz XYZXYZXYZ abcabcab >>>
- 72.44<<< 123456789 xyzxyzxyz XYZXYZXYZ >>> 44<<< 123456789 xyzxyzxyz XYZXYZXYZ >>>
- 73.5<<< >>> 5<<< >>>
- 74.6<<< >>> 6<<< >>>
- 75.7<<< >>> 7<<< >>>
- 76.8<<< >>> 8<<< >>>
- 77.9<<< >>> 9<<< >>>
- 78.50<<< >>> 50<<< >>>
- 79.1<<< >>> 1<<< >>>
- 80.2<<< >>> 2<<< >>>
- 81.3<<< >>> 3<<< >>>
- 82.4<<< >>> 4<<< >>>
- 83.55<<< XYZXYZXYZ abcabcab >>> 55<<< XYZXYZXYZ abcabcab >>>
- 84.56<<< 123456789 abcdefghi ABCDEDFHI >>> 56<<< 123456789 abcdefghi ABCDEDFHI >>>
- -- Date/Time -- x Page 9
-
-
- 85.57<<< xyzxyzxyz XYZXYZXYZ abcabcab >>> 57<<< xyzxyzxyz XYZXYZXYZ abcabcab >>>
- 86.58<<< 123456789 xyzxyzxyz XYZXYZXYZ >>> 58<<< 123456789 xyzxyzxyz XYZXYZXYZ >>>
- 87.9<<< >>> 9<<< >>>
- 88.60<<< 123456789 >>> 60<<< 123456789 >>>
- \ No newline at end of file
diff --git a/tests/pr/nJml17f-lmlolm b/tests/pr/nJml17f-lmlolm
deleted file mode 100644
index 93cea0a..0000000
--- a/tests/pr/nJml17f-lmlolm
+++ /dev/null
@@ -1,118 +0,0 @@
--- Date/Time -- x Page 1
-
-
- 1.1<<< -Test: FF's in Text >>> 1::: Test-INPUT: "Without FF set by Hand" ::: 1<<< -Test: FF's in Text >>>
- 2.2<<< -b -3 / -a -3 / ... >>> 2::: Options -b -3 [+2|+3] [-l 15|8] [-f] ::: 2<<< -b -3 / -a -3 / ... >>>
- 3.3<<< >>> 3::: Options -a -3 [+2|+3] [-l 15|8] [-f] ::: 3<<< >>>
- 4.4<<< 123456789 123456789 123456789 12345678 >>> 4::: Options [+2|+3] [-l 24|17] [-f] ::: 4<<< 123456789 123456789 123456789 12345678 >>>
- 5. 5::: :::
- 6.6<<< -Arangements: One Empty Page >>> 6::: -------------------------------------------- ::: 6<<< -Arangements: One Empty Page >>>
- 7.7<<< \f\f\n; text\f\n\ftext; \f\ftext; >>> 7::: 789 123456789 123456789 123456789 123456789 123456789 123456789 1234567890 ::: 7<<< \f\f\n; text\f\n\ftext; \f\ftext; >>>
- 8.8<<< f\f\n; \f\n\f\n; >>> 8::: 3 Columns downwards, across, ...: ::: 8<<< f\f\n; \f\n\f\n; >>>
- 9.9<<< >>> 9::: With columns use <= 5 text lines/page, ::: 9<<< >>>
- 10.10<<< >>> 10::: without -f e.g.: -l 15 = total lines/page, ::: 10<<< >>>
- 11.1<<< >>> 1::: with -f e.g. : -l 8 -f ::: 1<<< >>>
- 12.2<<< >>> 2::: ::: 2<<< >>>
- 13.3<<< truncation before FF; r_r_o_l-test: >>> 3::: line truncation before new page; r_r_o_l-test: ::: 3<<< truncation before FF; r_r_o_l-test: >>>
- 14.14<<< 123456789 123456789 123456789 >>> 14::: 89 123456789 123456789 123456789 123456789 123456789 123456789 1234567890 ::: 14<<< 123456789 123456789 123456789 >>>
- -- Date/Time -- x Page 2
-
-
- 15. 15::: xyzxyzxyz XYZXYZXYZ abcabcab :::
- 16. 16::: 456789 123456789 xyzxyzxyz XYZXYZXYZ :::
- 17. 7::: 12345678 :::
- 18. 8::: 12345678 :::
- 19. 9::: 3456789 ab :::
- 20. 20::: DEFGHI 123 :::
- 21. 21::: 89 123456789 123456789 123456789 123456789 123456789 123456789 1234567890 :::
- 22. 2::: 12345678 :::
- 23. 3::: 12345678 :::
- 24. 4::: 12345678 :::
- 25. 5::: 12345678 :::
- 26. 6::: 12345678 :::
- 27. 27::: no truncation before nwe page; (r_l-test): :::
- 28. 28::: 89 123456789 123456789 123456789 123456789 123456789 123456789 1234567890 :::
- -- Date/Time -- x Page 3
-
-
- 29.15<<< xyzxyzxyz XYZXYZXYZ abcabcab >>> 29::: xyzxyzxyz XYZXYZXYZ abcabcab ::: 15<<< xyzxyzxyz XYZXYZXYZ abcabcab >>>
- 30.16<<< 123456789 xyzxyzxyz XYZXYZXYZ >>> 30::: 456789 123456789 xyzxyzxyz XYZXYZXYZ ::: 16<<< 123456789 xyzxyzxyz XYZXYZXYZ >>>
- 31.7<<< >>> 1::: 12345678 ::: 7<<< >>>
- 32.8<<< >>> 2::: 3456789 abcdefghi ::: 8<<< >>>
- 33.9<<< >>> 3::: 12345678 ::: 9<<< >>>
- 34.20<<< >>> 4::: 12345678 ::: 20<<< >>>
- 35.1<<< >>> 35::: 89 123456789 123456789 123456789 123456789 123456789 123456789 1234567890 ::: 1<<< >>>
- 36. 6::: 12345678 :::
- 37. 7::: 12345678 :::
- 38.4<<< >>> 8::: 12345678 ::: 4<<< >>>
- 39.5<<< >>> 9::: 3456789 abcdefghi ::: 5<<< >>>
- 40.6<<< >>> 40::: DEFGHI 123456789 ::: 6<<< >>>
- 41.27<<< truncation before FF; (r_l-test): >>> 41::: yzxyzxyz XYZXYZXYZ abcabcab ::: 27<<< truncation before FF; (r_l-test): >>>
- 42.28<<< trunc 42::: 89 123456789 123456789 123456789 123456789 123456789 123456789 1234567890 ::: 28<<< trunc
- -- Date/Time -- x Page 4
-
-
- 43. 43::: xyzxyzxyz XYZXYZXYZ abcabcab :::
- 44. 44::: 456789 123456789 xyzxyzxyz XYZXYZXYZ :::
- 45. 5::: 12345678 :::
- 46. 6::: 12345678 :::
- 47. 7::: 12345678 :::
- 48. 8::: 12345678 :::
- 49. 49::: 89 123456789 123456789 123456789 123456789 123456789 123456789 1234567890 :::
- 50. 50::: 12345678 :::
- 51. 1::: 12345678 :::
- 52. 2::: 12345678 :::
- 53. 3::: 12345678 :::
- 54. 4::: 12345678 :::
- 55. 55::: yzxyzxyz XYZXYZXYZ abcabcab :::
- 56. 56::: 89 123456789 123456789 123456789 123456789 123456789 123456789 1234567890 :::
- -- Date/Time -- x Page 5
-
-
- 57.29<<<xyzxyzxyz XYZXYZXYZ abcabcab >>> 57::: xyzxyzxyz XYZXYZXYZ abcabcab ::: 29<<<xyzxyzxyz XYZXYZXYZ abcabcab >>>
- 58.30<<< 123456789 xyzxyzxyz XYZXYZXYZ >>> 58::: 456789 123456789 xyzxyzxyz XYZXYZXYZ ::: 30<<< 123456789 xyzxyzxyz XYZXYZXYZ >>>
- 59.1<<< >>> 9::: 12345678 ::: 1<<< >>>
- 60.2<<< abcdefghi >>> 60::: DEFGHI 123456789 ::: 2<<< abcdefghi >>>
- 61.3<<< >>> 1::: ::: 3<<< >>>
- 62.4<<< >>> 2::: ::: 4<<< >>>
- 63.5<<< >>> 3::: ------- EOF -------- EOF -------- EOF ------- EOF ------- EOF ------- EOF ::: 5<<< >>>
- 64.6<<< >>> 6<<< >>>
- 65.7<<< >>> 7<<< >>>
- 66.8<<< >>> 8<<< >>>
- 67.9<<< abcdefghi >>> 9<<< abcdefghi >>>
- 68.40<<< 123456789 >>> 40<<< 123456789 >>>
- 69.41<<< XYZXYZXYZ abcabcab >>> 41<<< XYZXYZXYZ abcabcab >>>
- 70.42<<< 123456789 abcdefghi ABCDEDFHI >>> 42<<< 123456789 abcdefghi ABCDEDFHI >>>
- -- Date/Time -- x Page 6
-
-
-
- -- Date/Time -- x Page 7
-
-
-
- -- Date/Time -- x Page 8
-
-
- 71.43<<< xyzxyzxyz XYZXYZXYZ abcabcab >>> 43<<< xyzxyzxyz XYZXYZXYZ abcabcab >>>
- 72.44<<< 123456789 xyzxyzxyz XYZXYZXYZ >>> 44<<< 123456789 xyzxyzxyz XYZXYZXYZ >>>
- 73.5<<< >>> 5<<< >>>
- 74.6<<< >>> 6<<< >>>
- 75.7<<< >>> 7<<< >>>
- 76.8<<< >>> 8<<< >>>
- 77.9<<< >>> 9<<< >>>
- 78.50<<< >>> 50<<< >>>
- 79.1<<< >>> 1<<< >>>
- 80.2<<< >>> 2<<< >>>
- 81.3<<< >>> 3<<< >>>
- 82.4<<< >>> 4<<< >>>
- 83.55<<< XYZXYZXYZ abcabcab >>> 55<<< XYZXYZXYZ abcabcab >>>
- 84.56<<< 123456789 abcdefghi ABCDEDFHI >>> 56<<< 123456789 abcdefghi ABCDEDFHI >>>
- -- Date/Time -- x Page 9
-
-
- 85.57<<< xyzxyzxyz XYZXYZXYZ abcabcab >>> 57<<< xyzxyzxyz XYZXYZXYZ abcabcab >>>
- 86.58<<< 123456789 xyzxyzxyz XYZXYZXYZ >>> 58<<< 123456789 xyzxyzxyz XYZXYZXYZ >>>
- 87.9<<< >>> 9<<< >>>
- 88.60<<< 123456789 >>> 60<<< 123456789 >>>
- \ No newline at end of file
diff --git a/tests/pr/nJml24f-lmlmlo b/tests/pr/nJml24f-lmlmlo
new file mode 100644
index 0000000..0b515db
--- /dev/null
+++ b/tests/pr/nJml24f-lmlmlo
@@ -0,0 +1,136 @@
+
+
+-- Date/Time -- x Page 1
+
+
+ 1.1<<< -Test: FF's in Text >>> 1<<< -Test: FF's in Text >>> 1::: Test-INPUT: "Without FF set by Hand" :::
+ 2.2<<< -b -3 / -a -3 / ... >>> 2<<< -b -3 / -a -3 / ... >>> 2::: Options -b -3 [+2|+3] [-l 15|8] [-f] :::
+ 3.3<<< >>> 3<<< >>> 3::: Options -a -3 [+2|+3] [-l 15|8] [-f] :::
+ 4.4<<< 123456789 123456789 123456789 12345678 >>> 4<<< 123456789 123456789 123456789 12345678 >>> 4::: Options [+2|+3] [-l 24|17] [-f] :::
+ 5. 5::: :::
+ 6.6<<< -Arangements: One Empty Page >>> 6<<< -Arangements: One Empty Page >>> 6::: -------------------------------------------- :::
+ 7.7<<< \f\f\n; text\f\n\ftext; \f\ftext; >>> 7<<< \f\f\n; text\f\n\ftext; \f\ftext; >>> 7::: 789 123456789 123456789 123456789 123456789 123456789 123456789 1234567890 :::
+ 8.8<<< f\f\n; \f\n\f\n; >>> 8<<< f\f\n; \f\n\f\n; >>> 8::: 3 Columns downwards, across, ...: :::
+ 9.9<<< >>> 9<<< >>> 9::: With columns use <= 5 text lines/page, :::
+ 10.10<<< >>> 10<<< >>> 10::: without -f e.g.: -l 15 = total lines/page, :::
+ 11.1<<< >>> 1<<< >>> 1::: with -f e.g. : -l 8 -f :::
+ 12.2<<< >>> 2<<< >>> 2::: :::
+ 13.3<<< truncation before FF; r_r_o_l-test: >>> 3<<< truncation before FF; r_r_o_l-test: >>> 3::: line truncation before new page; r_r_o_l-test: :::
+ 14.14<<< 123456789 123456789 123456789 >>> 14<<< 123456789 123456789 123456789 >>> 14::: 89 123456789 123456789 123456789 123456789 123456789 123456789 1234567890 :::
+
+
+-- Date/Time -- x Page 2
+
+
+ 15. 15::: xyzxyzxyz XYZXYZXYZ abcabcab :::
+ 16. 16::: 456789 123456789 xyzxyzxyz XYZXYZXYZ :::
+ 17. 7::: 12345678 :::
+ 18. 8::: 12345678 :::
+ 19. 9::: 3456789 ab :::
+ 20. 20::: DEFGHI 123 :::
+ 21. 21::: 89 123456789 123456789 123456789 123456789 123456789 123456789 1234567890 :::
+ 22. 2::: 12345678 :::
+ 23. 3::: 12345678 :::
+ 24. 4::: 12345678 :::
+ 25. 5::: 12345678 :::
+ 26. 6::: 12345678 :::
+ 27. 27::: no truncation before nwe page; (r_l-test): :::
+ 28. 28::: 89 123456789 123456789 123456789 123456789 123456789 123456789 1234567890 :::
+
+
+-- Date/Time -- x Page 3
+
+
+ 29.15<<< xyzxyzxyz XYZXYZXYZ abcabcab >>> 15<<< xyzxyzxyz XYZXYZXYZ abcabcab >>> 29::: xyzxyzxyz XYZXYZXYZ abcabcab :::
+ 30.16<<< 123456789 xyzxyzxyz XYZXYZXYZ >>> 16<<< 123456789 xyzxyzxyz XYZXYZXYZ >>> 30::: 456789 123456789 xyzxyzxyz XYZXYZXYZ :::
+ 31.7<<< >>> 7<<< >>> 1::: 12345678 :::
+ 32.8<<< >>> 8<<< >>> 2::: 3456789 abcdefghi :::
+ 33.9<<< >>> 9<<< >>> 3::: 12345678 :::
+ 34.20<<< >>> 20<<< >>> 4::: 12345678 :::
+ 35.1<<< >>> 1<<< >>> 35::: 89 123456789 123456789 123456789 123456789 123456789 123456789 1234567890 :::
+ 36. 6::: 12345678 :::
+ 37. 7::: 12345678 :::
+ 38.4<<< >>> 4<<< >>> 8::: 12345678 :::
+ 39.5<<< >>> 5<<< >>> 9::: 3456789 abcdefghi :::
+ 40.6<<< >>> 6<<< >>> 40::: DEFGHI 123456789 :::
+ 41.27<<< truncation before FF; (r_l-test): >>> 27<<< truncation before FF; (r_l-test): >>> 41::: yzxyzxyz XYZXYZXYZ abcabcab :::
+ 42.28<<< trunc 28<<< trunc 42::: 89 123456789 123456789 123456789 123456789 123456789 123456789 1234567890 :::
+
+
+-- Date/Time -- x Page 4
+
+
+ 43. 43::: xyzxyzxyz XYZXYZXYZ abcabcab :::
+ 44. 44::: 456789 123456789 xyzxyzxyz XYZXYZXYZ :::
+ 45. 5::: 12345678 :::
+ 46. 6::: 12345678 :::
+ 47. 7::: 12345678 :::
+ 48. 8::: 12345678 :::
+ 49. 49::: 89 123456789 123456789 123456789 123456789 123456789 123456789 1234567890 :::
+ 50. 50::: 12345678 :::
+ 51. 1::: 12345678 :::
+ 52. 2::: 12345678 :::
+ 53. 3::: 12345678 :::
+ 54. 4::: 12345678 :::
+ 55. 55::: yzxyzxyz XYZXYZXYZ abcabcab :::
+ 56. 56::: 89 123456789 123456789 123456789 123456789 123456789 123456789 1234567890 :::
+
+
+-- Date/Time -- x Page 5
+
+
+ 57.29<<<xyzxyzxyz XYZXYZXYZ abcabcab >>> 29<<<xyzxyzxyz XYZXYZXYZ abcabcab >>> 57::: xyzxyzxyz XYZXYZXYZ abcabcab :::
+ 58.30<<< 123456789 xyzxyzxyz XYZXYZXYZ >>> 30<<< 123456789 xyzxyzxyz XYZXYZXYZ >>> 58::: 456789 123456789 xyzxyzxyz XYZXYZXYZ :::
+ 59.1<<< >>> 1<<< >>> 9::: 12345678 :::
+ 60.2<<< abcdefghi >>> 2<<< abcdefghi >>> 60::: DEFGHI 123456789 :::
+ 61.3<<< >>> 3<<< >>> 1::: :::
+ 62.4<<< >>> 4<<< >>> 2::: :::
+ 63.5<<< >>> 5<<< >>> 3::: ------- EOF -------- EOF -------- EOF ------- EOF ------- EOF ------- EOF :::
+ 64.6<<< >>> 6<<< >>>
+ 65.7<<< >>> 7<<< >>>
+ 66.8<<< >>> 8<<< >>>
+ 67.9<<< abcdefghi >>> 9<<< abcdefghi >>>
+ 68.40<<< 123456789 >>> 40<<< 123456789 >>>
+ 69.41<<< XYZXYZXYZ abcabcab >>> 41<<< XYZXYZXYZ abcabcab >>>
+ 70.42<<< 123456789 abcdefghi ABCDEDFHI >>> 42<<< 123456789 abcdefghi ABCDEDFHI >>>
+
+
+-- Date/Time -- x Page 6
+
+
+
+
+
+-- Date/Time -- x Page 7
+
+
+
+
+
+-- Date/Time -- x Page 8
+
+
+ 71.43<<< xyzxyzxyz XYZXYZXYZ abcabcab >>> 43<<< xyzxyzxyz XYZXYZXYZ abcabcab >>>
+ 72.44<<< 123456789 xyzxyzxyz XYZXYZXYZ >>> 44<<< 123456789 xyzxyzxyz XYZXYZXYZ >>>
+ 73.5<<< >>> 5<<< >>>
+ 74.6<<< >>> 6<<< >>>
+ 75.7<<< >>> 7<<< >>>
+ 76.8<<< >>> 8<<< >>>
+ 77.9<<< >>> 9<<< >>>
+ 78.50<<< >>> 50<<< >>>
+ 79.1<<< >>> 1<<< >>>
+ 80.2<<< >>> 2<<< >>>
+ 81.3<<< >>> 3<<< >>>
+ 82.4<<< >>> 4<<< >>>
+ 83.55<<< XYZXYZXYZ abcabcab >>> 55<<< XYZXYZXYZ abcabcab >>>
+ 84.56<<< 123456789 abcdefghi ABCDEDFHI >>> 56<<< 123456789 abcdefghi ABCDEDFHI >>>
+
+
+-- Date/Time -- x Page 9
+
+
+ 85.57<<< xyzxyzxyz XYZXYZXYZ abcabcab >>> 57<<< xyzxyzxyz XYZXYZXYZ abcabcab >>>
+ 86.58<<< 123456789 xyzxyzxyz XYZXYZXYZ >>> 58<<< 123456789 xyzxyzxyz XYZXYZXYZ >>>
+ 87.9<<< >>> 9<<< >>>
+ 88.60<<< 123456789 >>> 60<<< 123456789 >>>
+ \ No newline at end of file
diff --git a/tests/pr/nJml24f-lmlolm b/tests/pr/nJml24f-lmlolm
new file mode 100644
index 0000000..84dd27c
--- /dev/null
+++ b/tests/pr/nJml24f-lmlolm
@@ -0,0 +1,136 @@
+
+
+-- Date/Time -- x Page 1
+
+
+ 1.1<<< -Test: FF's in Text >>> 1::: Test-INPUT: "Without FF set by Hand" ::: 1<<< -Test: FF's in Text >>>
+ 2.2<<< -b -3 / -a -3 / ... >>> 2::: Options -b -3 [+2|+3] [-l 15|8] [-f] ::: 2<<< -b -3 / -a -3 / ... >>>
+ 3.3<<< >>> 3::: Options -a -3 [+2|+3] [-l 15|8] [-f] ::: 3<<< >>>
+ 4.4<<< 123456789 123456789 123456789 12345678 >>> 4::: Options [+2|+3] [-l 24|17] [-f] ::: 4<<< 123456789 123456789 123456789 12345678 >>>
+ 5. 5::: :::
+ 6.6<<< -Arangements: One Empty Page >>> 6::: -------------------------------------------- ::: 6<<< -Arangements: One Empty Page >>>
+ 7.7<<< \f\f\n; text\f\n\ftext; \f\ftext; >>> 7::: 789 123456789 123456789 123456789 123456789 123456789 123456789 1234567890 ::: 7<<< \f\f\n; text\f\n\ftext; \f\ftext; >>>
+ 8.8<<< f\f\n; \f\n\f\n; >>> 8::: 3 Columns downwards, across, ...: ::: 8<<< f\f\n; \f\n\f\n; >>>
+ 9.9<<< >>> 9::: With columns use <= 5 text lines/page, ::: 9<<< >>>
+ 10.10<<< >>> 10::: without -f e.g.: -l 15 = total lines/page, ::: 10<<< >>>
+ 11.1<<< >>> 1::: with -f e.g. : -l 8 -f ::: 1<<< >>>
+ 12.2<<< >>> 2::: ::: 2<<< >>>
+ 13.3<<< truncation before FF; r_r_o_l-test: >>> 3::: line truncation before new page; r_r_o_l-test: ::: 3<<< truncation before FF; r_r_o_l-test: >>>
+ 14.14<<< 123456789 123456789 123456789 >>> 14::: 89 123456789 123456789 123456789 123456789 123456789 123456789 1234567890 ::: 14<<< 123456789 123456789 123456789 >>>
+
+
+-- Date/Time -- x Page 2
+
+
+ 15. 15::: xyzxyzxyz XYZXYZXYZ abcabcab :::
+ 16. 16::: 456789 123456789 xyzxyzxyz XYZXYZXYZ :::
+ 17. 7::: 12345678 :::
+ 18. 8::: 12345678 :::
+ 19. 9::: 3456789 ab :::
+ 20. 20::: DEFGHI 123 :::
+ 21. 21::: 89 123456789 123456789 123456789 123456789 123456789 123456789 1234567890 :::
+ 22. 2::: 12345678 :::
+ 23. 3::: 12345678 :::
+ 24. 4::: 12345678 :::
+ 25. 5::: 12345678 :::
+ 26. 6::: 12345678 :::
+ 27. 27::: no truncation before nwe page; (r_l-test): :::
+ 28. 28::: 89 123456789 123456789 123456789 123456789 123456789 123456789 1234567890 :::
+
+
+-- Date/Time -- x Page 3
+
+
+ 29.15<<< xyzxyzxyz XYZXYZXYZ abcabcab >>> 29::: xyzxyzxyz XYZXYZXYZ abcabcab ::: 15<<< xyzxyzxyz XYZXYZXYZ abcabcab >>>
+ 30.16<<< 123456789 xyzxyzxyz XYZXYZXYZ >>> 30::: 456789 123456789 xyzxyzxyz XYZXYZXYZ ::: 16<<< 123456789 xyzxyzxyz XYZXYZXYZ >>>
+ 31.7<<< >>> 1::: 12345678 ::: 7<<< >>>
+ 32.8<<< >>> 2::: 3456789 abcdefghi ::: 8<<< >>>
+ 33.9<<< >>> 3::: 12345678 ::: 9<<< >>>
+ 34.20<<< >>> 4::: 12345678 ::: 20<<< >>>
+ 35.1<<< >>> 35::: 89 123456789 123456789 123456789 123456789 123456789 123456789 1234567890 ::: 1<<< >>>
+ 36. 6::: 12345678 :::
+ 37. 7::: 12345678 :::
+ 38.4<<< >>> 8::: 12345678 ::: 4<<< >>>
+ 39.5<<< >>> 9::: 3456789 abcdefghi ::: 5<<< >>>
+ 40.6<<< >>> 40::: DEFGHI 123456789 ::: 6<<< >>>
+ 41.27<<< truncation before FF; (r_l-test): >>> 41::: yzxyzxyz XYZXYZXYZ abcabcab ::: 27<<< truncation before FF; (r_l-test): >>>
+ 42.28<<< trunc 42::: 89 123456789 123456789 123456789 123456789 123456789 123456789 1234567890 ::: 28<<< trunc
+
+
+-- Date/Time -- x Page 4
+
+
+ 43. 43::: xyzxyzxyz XYZXYZXYZ abcabcab :::
+ 44. 44::: 456789 123456789 xyzxyzxyz XYZXYZXYZ :::
+ 45. 5::: 12345678 :::
+ 46. 6::: 12345678 :::
+ 47. 7::: 12345678 :::
+ 48. 8::: 12345678 :::
+ 49. 49::: 89 123456789 123456789 123456789 123456789 123456789 123456789 1234567890 :::
+ 50. 50::: 12345678 :::
+ 51. 1::: 12345678 :::
+ 52. 2::: 12345678 :::
+ 53. 3::: 12345678 :::
+ 54. 4::: 12345678 :::
+ 55. 55::: yzxyzxyz XYZXYZXYZ abcabcab :::
+ 56. 56::: 89 123456789 123456789 123456789 123456789 123456789 123456789 1234567890 :::
+
+
+-- Date/Time -- x Page 5
+
+
+ 57.29<<<xyzxyzxyz XYZXYZXYZ abcabcab >>> 57::: xyzxyzxyz XYZXYZXYZ abcabcab ::: 29<<<xyzxyzxyz XYZXYZXYZ abcabcab >>>
+ 58.30<<< 123456789 xyzxyzxyz XYZXYZXYZ >>> 58::: 456789 123456789 xyzxyzxyz XYZXYZXYZ ::: 30<<< 123456789 xyzxyzxyz XYZXYZXYZ >>>
+ 59.1<<< >>> 9::: 12345678 ::: 1<<< >>>
+ 60.2<<< abcdefghi >>> 60::: DEFGHI 123456789 ::: 2<<< abcdefghi >>>
+ 61.3<<< >>> 1::: ::: 3<<< >>>
+ 62.4<<< >>> 2::: ::: 4<<< >>>
+ 63.5<<< >>> 3::: ------- EOF -------- EOF -------- EOF ------- EOF ------- EOF ------- EOF ::: 5<<< >>>
+ 64.6<<< >>> 6<<< >>>
+ 65.7<<< >>> 7<<< >>>
+ 66.8<<< >>> 8<<< >>>
+ 67.9<<< abcdefghi >>> 9<<< abcdefghi >>>
+ 68.40<<< 123456789 >>> 40<<< 123456789 >>>
+ 69.41<<< XYZXYZXYZ abcabcab >>> 41<<< XYZXYZXYZ abcabcab >>>
+ 70.42<<< 123456789 abcdefghi ABCDEDFHI >>> 42<<< 123456789 abcdefghi ABCDEDFHI >>>
+
+
+-- Date/Time -- x Page 6
+
+
+
+
+
+-- Date/Time -- x Page 7
+
+
+
+
+
+-- Date/Time -- x Page 8
+
+
+ 71.43<<< xyzxyzxyz XYZXYZXYZ abcabcab >>> 43<<< xyzxyzxyz XYZXYZXYZ abcabcab >>>
+ 72.44<<< 123456789 xyzxyzxyz XYZXYZXYZ >>> 44<<< 123456789 xyzxyzxyz XYZXYZXYZ >>>
+ 73.5<<< >>> 5<<< >>>
+ 74.6<<< >>> 6<<< >>>
+ 75.7<<< >>> 7<<< >>>
+ 76.8<<< >>> 8<<< >>>
+ 77.9<<< >>> 9<<< >>>
+ 78.50<<< >>> 50<<< >>>
+ 79.1<<< >>> 1<<< >>>
+ 80.2<<< >>> 2<<< >>>
+ 81.3<<< >>> 3<<< >>>
+ 82.4<<< >>> 4<<< >>>
+ 83.55<<< XYZXYZXYZ abcabcab >>> 55<<< XYZXYZXYZ abcabcab >>>
+ 84.56<<< 123456789 abcdefghi ABCDEDFHI >>> 56<<< 123456789 abcdefghi ABCDEDFHI >>>
+
+
+-- Date/Time -- x Page 9
+
+
+ 85.57<<< xyzxyzxyz XYZXYZXYZ abcabcab >>> 57<<< xyzxyzxyz XYZXYZXYZ abcabcab >>>
+ 86.58<<< 123456789 xyzxyzxyz XYZXYZXYZ >>> 58<<< 123456789 xyzxyzxyz XYZXYZXYZ >>>
+ 87.9<<< >>> 9<<< >>>
+ 88.60<<< 123456789 >>> 60<<< 123456789 >>>
+ \ No newline at end of file
diff --git a/tests/pr/nN1+3l17f-bl b/tests/pr/nN1+3l17f-bl
deleted file mode 100644
index b7eb524..0000000
--- a/tests/pr/nN1+3l17f-bl
+++ /dev/null
@@ -1,90 +0,0 @@
--- Date/Time -- x Page 3
-
-
- 1.15 xyzxyzxyz XYZXYZXYZ abcabcab
- 2.16 456789 123456789 xyzxyzxyz XYZXYZXYZ
- 3.7 12345678
- 4.8 12345678
- 5.9 3456789 ab
- 6.20 DEFGHI 123
- 7.1 12345678
- 8.
- 9.
- 10.4 12345678
- 11.5 12345678
- 12.6 12345678
- 13.27 no truncation before FF; (r_l-test):
- 14.
- -- Date/Time -- x Page 4
-
-
-
- -- Date/Time -- x Page 5
-
-
- 15.29 xyzxyzxyz XYZXYZXYZ abcabcab
- 16.30 456789 123456789 xyzxyzxyz XYZXYZXYZ
- 17.1 12345678
- 18.2 3456789 abcdefghi
- 19.3 12345678
- 20.4 12345678
- 21.
- 22.6 12345678
- 23.7 12345678
- 24.8 12345678
- 25.9 3456789 abcdefghi
- 26.40 DEFGHI 123456789
- 27.41 yzxyzxyz XYZXYZXYZ abcabcab
- 28.42 456789 123456789 abcdefghi ABCDEDFHI
- -- Date/Time -- x Page 6
-
-
-
- -- Date/Time -- x Page 7
-
-
-
- -- Date/Time -- x Page 8
-
-
- 29.43 xyzxyzxyz XYZXYZXYZ abcabcab
- 30.44 456789 123456789 xyzxyzxyz XYZXYZXYZ
- 31.5 12345678
- 32.6 12345678
- 33.7 12345678
- 34.8 12345678
- 35.9 12345678
- 36.50 12345678
- 37.1 12345678
- 38.
- 39.
- 40.
- 41.55 yzxyzxyz XYZXYZXYZ abcabcab
- 42.56 456789 123456789 abcdefghi ABCDEDFHI
- -- Date/Time -- x Page 9
-
-
- 43.
- 44.58 456789 123456789 xyzxyzxyz XYZXYZXYZ
- 45.9 12345678
- 46.60 DEFGHI 123456789
- 47.61 yzxyzxyz XYZXYZXYZ abcabcab
- 48.62 456789 123456789 abcdefghi ABCDEDFHI
- 49.63 xyzxyzxyz XYZXYZXYZ abcabcab
- 50.64 456789 123456789 xyzxyzxyz XYZXYZXYZ
- 51.5 12345678
- 52.6 12345678
- 53.7 12345678
- 54.8 12345678
- 55.9 12345678
- 56.70 456789 123456789 abcdefghi ABCDEDFHI
- -- Date/Time -- x Page 10
-
-
- 57.1 12345678
- 58.
- 59.
- 60.
- 61.74 yzxyzxyz XYZXYZXYZ abcabcab
- 62.75 456789 123456789 abcdefghi ABCDEDFHI
- \ No newline at end of file
diff --git a/tests/pr/nN1+3l24f-bl b/tests/pr/nN1+3l24f-bl
new file mode 100644
index 0000000..38b793a
--- /dev/null
+++ b/tests/pr/nN1+3l24f-bl
@@ -0,0 +1,106 @@
+
+
+-- Date/Time -- x Page 3
+
+
+ 1.15 xyzxyzxyz XYZXYZXYZ abcabcab
+ 2.16 456789 123456789 xyzxyzxyz XYZXYZXYZ
+ 3.7 12345678
+ 4.8 12345678
+ 5.9 3456789 ab
+ 6.20 DEFGHI 123
+ 7.1 12345678
+ 8.
+ 9.
+ 10.4 12345678
+ 11.5 12345678
+ 12.6 12345678
+ 13.27 no truncation before FF; (r_l-test):
+ 14.
+
+
+-- Date/Time -- x Page 4
+
+
+
+
+
+-- Date/Time -- x Page 5
+
+
+ 15.29 xyzxyzxyz XYZXYZXYZ abcabcab
+ 16.30 456789 123456789 xyzxyzxyz XYZXYZXYZ
+ 17.1 12345678
+ 18.2 3456789 abcdefghi
+ 19.3 12345678
+ 20.4 12345678
+ 21.
+ 22.6 12345678
+ 23.7 12345678
+ 24.8 12345678
+ 25.9 3456789 abcdefghi
+ 26.40 DEFGHI 123456789
+ 27.41 yzxyzxyz XYZXYZXYZ abcabcab
+ 28.42 456789 123456789 abcdefghi ABCDEDFHI
+
+
+-- Date/Time -- x Page 6
+
+
+
+
+
+-- Date/Time -- x Page 7
+
+
+
+
+
+-- Date/Time -- x Page 8
+
+
+ 29.43 xyzxyzxyz XYZXYZXYZ abcabcab
+ 30.44 456789 123456789 xyzxyzxyz XYZXYZXYZ
+ 31.5 12345678
+ 32.6 12345678
+ 33.7 12345678
+ 34.8 12345678
+ 35.9 12345678
+ 36.50 12345678
+ 37.1 12345678
+ 38.
+ 39.
+ 40.
+ 41.55 yzxyzxyz XYZXYZXYZ abcabcab
+ 42.56 456789 123456789 abcdefghi ABCDEDFHI
+
+
+-- Date/Time -- x Page 9
+
+
+ 43.
+ 44.58 456789 123456789 xyzxyzxyz XYZXYZXYZ
+ 45.9 12345678
+ 46.60 DEFGHI 123456789
+ 47.61 yzxyzxyz XYZXYZXYZ abcabcab
+ 48.62 456789 123456789 abcdefghi ABCDEDFHI
+ 49.63 xyzxyzxyz XYZXYZXYZ abcabcab
+ 50.64 456789 123456789 xyzxyzxyz XYZXYZXYZ
+ 51.5 12345678
+ 52.6 12345678
+ 53.7 12345678
+ 54.8 12345678
+ 55.9 12345678
+ 56.70 456789 123456789 abcdefghi ABCDEDFHI
+
+
+-- Date/Time -- x Page 10
+
+
+ 57.1 12345678
+ 58.
+ 59.
+ 60.
+ 61.74 yzxyzxyz XYZXYZXYZ abcabcab
+ 62.75 456789 123456789 abcdefghi ABCDEDFHI
+ \ No newline at end of file
diff --git a/tests/pr/nN15l17f-bl b/tests/pr/nN15l17f-bl
deleted file mode 100644
index 35b48f2..0000000
--- a/tests/pr/nN15l17f-bl
+++ /dev/null
@@ -1,111 +0,0 @@
--- Date/Time -- x Page 1
-
-
- 15.1 FF-Test: FF's in Text V
- 16.2 Options -n;
- 17.3 numbering lines with skiped pages;
- 18.4 numbering blanc lines (no. 5,12,13,23,28)
- 19.
- 20.6 3456789 123456789 123456789 123456789 12345678
- 21.7 3 Columns downwards ..., <= 5 lines per page
- 22.8
- 23.9
- 24.10 zzzzzzzzzzzzzzzzzzzzzzzzzz123456789
- 25.1 12345678
- 26.
- 27.
- 28.14 456789 123456789 123456789 123456789
- -- Date/Time -- x Page 2
-
-
-
- -- Date/Time -- x Page 3
-
-
- 29.15 xyzxyzxyz XYZXYZXYZ abcabcab
- 30.16 456789 123456789 xyzxyzxyz XYZXYZXYZ
- 31.7 12345678
- 32.8 12345678
- 33.9 3456789 ab
- 34.20 DEFGHI 123
- 35.1 12345678
- 36.
- 37.
- 38.4 12345678
- 39.5 12345678
- 40.6 12345678
- 41.27 no truncation before FF; (r_l-test):
- 42.
- -- Date/Time -- x Page 4
-
-
-
- -- Date/Time -- x Page 5
-
-
- 43.29 xyzxyzxyz XYZXYZXYZ abcabcab
- 44.30 456789 123456789 xyzxyzxyz XYZXYZXYZ
- 45.1 12345678
- 46.2 3456789 abcdefghi
- 47.3 12345678
- 48.4 12345678
- 49.
- 50.6 12345678
- 51.7 12345678
- 52.8 12345678
- 53.9 3456789 abcdefghi
- 54.40 DEFGHI 123456789
- 55.41 yzxyzxyz XYZXYZXYZ abcabcab
- 56.42 456789 123456789 abcdefghi ABCDEDFHI
- -- Date/Time -- x Page 6
-
-
-
- -- Date/Time -- x Page 7
-
-
-
- -- Date/Time -- x Page 8
-
-
- 57.43 xyzxyzxyz XYZXYZXYZ abcabcab
- 58.44 456789 123456789 xyzxyzxyz XYZXYZXYZ
- 59.5 12345678
- 60.6 12345678
- 61.7 12345678
- 62.8 12345678
- 63.9 12345678
- 64.50 12345678
- 65.1 12345678
- 66.
- 67.
- 68.
- 69.55 yzxyzxyz XYZXYZXYZ abcabcab
- 70.56 456789 123456789 abcdefghi ABCDEDFHI
- -- Date/Time -- x Page 9
-
-
- 71.
- 72.58 456789 123456789 xyzxyzxyz XYZXYZXYZ
- 73.9 12345678
- 74.60 DEFGHI 123456789
- 75.61 yzxyzxyz XYZXYZXYZ abcabcab
- 76.62 456789 123456789 abcdefghi ABCDEDFHI
- 77.63 xyzxyzxyz XYZXYZXYZ abcabcab
- 78.64 456789 123456789 xyzxyzxyz XYZXYZXYZ
- 79.5 12345678
- 80.6 12345678
- 81.7 12345678
- 82.8 12345678
- 83.9 12345678
- 84.70 456789 123456789 abcdefghi ABCDEDFHI
- -- Date/Time -- x Page 10
-
-
- 85.1 12345678
- 86.
- 87.
- 88.
- 89.74 yzxyzxyz XYZXYZXYZ abcabcab
- 90.75 456789 123456789 abcdefghi ABCDEDFHI
- \ No newline at end of file
diff --git a/tests/pr/nN15l24f-bl b/tests/pr/nN15l24f-bl
new file mode 100644
index 0000000..b4356eb
--- /dev/null
+++ b/tests/pr/nN15l24f-bl
@@ -0,0 +1,131 @@
+
+
+-- Date/Time -- x Page 1
+
+
+ 15.1 FF-Test: FF's in Text V
+ 16.2 Options -n;
+ 17.3 numbering lines with skiped pages;
+ 18.4 numbering blanc lines (no. 5,12,13,23,28)
+ 19.
+ 20.6 3456789 123456789 123456789 123456789 12345678
+ 21.7 3 Columns downwards ..., <= 5 lines per page
+ 22.8
+ 23.9
+ 24.10 zzzzzzzzzzzzzzzzzzzzzzzzzz123456789
+ 25.1 12345678
+ 26.
+ 27.
+ 28.14 456789 123456789 123456789 123456789
+
+
+-- Date/Time -- x Page 2
+
+
+
+
+
+-- Date/Time -- x Page 3
+
+
+ 29.15 xyzxyzxyz XYZXYZXYZ abcabcab
+ 30.16 456789 123456789 xyzxyzxyz XYZXYZXYZ
+ 31.7 12345678
+ 32.8 12345678
+ 33.9 3456789 ab
+ 34.20 DEFGHI 123
+ 35.1 12345678
+ 36.
+ 37.
+ 38.4 12345678
+ 39.5 12345678
+ 40.6 12345678
+ 41.27 no truncation before FF; (r_l-test):
+ 42.
+
+
+-- Date/Time -- x Page 4
+
+
+
+
+
+-- Date/Time -- x Page 5
+
+
+ 43.29 xyzxyzxyz XYZXYZXYZ abcabcab
+ 44.30 456789 123456789 xyzxyzxyz XYZXYZXYZ
+ 45.1 12345678
+ 46.2 3456789 abcdefghi
+ 47.3 12345678
+ 48.4 12345678
+ 49.
+ 50.6 12345678
+ 51.7 12345678
+ 52.8 12345678
+ 53.9 3456789 abcdefghi
+ 54.40 DEFGHI 123456789
+ 55.41 yzxyzxyz XYZXYZXYZ abcabcab
+ 56.42 456789 123456789 abcdefghi ABCDEDFHI
+
+
+-- Date/Time -- x Page 6
+
+
+
+
+
+-- Date/Time -- x Page 7
+
+
+
+
+
+-- Date/Time -- x Page 8
+
+
+ 57.43 xyzxyzxyz XYZXYZXYZ abcabcab
+ 58.44 456789 123456789 xyzxyzxyz XYZXYZXYZ
+ 59.5 12345678
+ 60.6 12345678
+ 61.7 12345678
+ 62.8 12345678
+ 63.9 12345678
+ 64.50 12345678
+ 65.1 12345678
+ 66.
+ 67.
+ 68.
+ 69.55 yzxyzxyz XYZXYZXYZ abcabcab
+ 70.56 456789 123456789 abcdefghi ABCDEDFHI
+
+
+-- Date/Time -- x Page 9
+
+
+ 71.
+ 72.58 456789 123456789 xyzxyzxyz XYZXYZXYZ
+ 73.9 12345678
+ 74.60 DEFGHI 123456789
+ 75.61 yzxyzxyz XYZXYZXYZ abcabcab
+ 76.62 456789 123456789 abcdefghi ABCDEDFHI
+ 77.63 xyzxyzxyz XYZXYZXYZ abcabcab
+ 78.64 456789 123456789 xyzxyzxyz XYZXYZXYZ
+ 79.5 12345678
+ 80.6 12345678
+ 81.7 12345678
+ 82.8 12345678
+ 83.9 12345678
+ 84.70 456789 123456789 abcdefghi ABCDEDFHI
+
+
+-- Date/Time -- x Page 10
+
+
+ 85.1 12345678
+ 86.
+ 87.
+ 88.
+ 89.74 yzxyzxyz XYZXYZXYZ abcabcab
+ 90.75 456789 123456789 abcdefghi ABCDEDFHI
+ \ No newline at end of file
diff --git a/tests/pr/nSml13-bl-FF b/tests/pr/nSml13-bl-FF
deleted file mode 100644
index ddf379f..0000000
--- a/tests/pr/nSml13-bl-FF
+++ /dev/null
@@ -1,123 +0,0 @@
--- Date/Time -- x Page 1
-
-
- 1.1 FF-Test: FF's in Text :--:1 FF-Test: FF's in Text
- 2.2 Options -n; :--:2 Options -b -3 / -a -3 / ...
- 3.3 numbering lines with skiped :--:3 ----------------------------
- 4.4 numbering blanc lines (no. 5:--:4 3456789 123456789 123456789 12
- 5. :--:5 3 Columns downwards ..., <=
- 6.6 3456789 123456789 123456789 12:--:6 FF-Arangements: One Empty Pa
- 7.7 3 Columns downwards ..., <= :--:7 text\f\f\n; text\f\n\ftext;
- 8.8 :--:8 \f\f\n; \f\n\f\n;
- 9.9 :--:9
- 10.10 zzzzzzzzzzzzzzzzzzzzzzzzzz12:--:10 zzzzzzzzzzzzzzzzzzzzzzzzzz12
- -- Date/Time -- x Page 2
-
-
- 11.1 :--:1
- 12. :--:2
- 13. :--:3 line truncation before FF; r_r
- 14.14 456789 123456789 123456789 12:--:14 456789 123456789 123456789 12
- -- Date/Time -- x Page 3
-
-
-
- -- Date/Time -- x Page 4
-
-
- 15.15 xyzxyzxyz XYZXYZXYZ abcabcab :--:15 xyzxyzxyz XYZXYZXYZ abcabcab
- 16.16 456789 123456789 xyzxyzxyz XY:--:16 456789 123456789 xyzxyzxyz XY
- 17.7 :--:7
- 18.8 :--:8
- 19.9 3456789 ab :--:9 3456789 ab
- 20.20 DEFGHI 123 :--:20 DEFGHI 123
- 21.1 :--:1
- 22. :--:2
- 23. :--:3
- 24.4 :--:4
- -- Date/Time -- x Page 5
-
-
- 25.5 :--:5
- 26.6 :--:6
- 27.27 no truncation before FF; (r_l:--:27 no truncation before FF; (r_l
- 28. :--:28 no trunc
- -- Date/Time -- x Page 6
-
-
-
- -- Date/Time -- x Page 7
-
-
- 29.29 xyzxyzxyz XYZXYZXYZ abcabcab :--:29 xyzxyzxyz XYZXYZXYZ abcabcab
- 30.30 456789 123456789 xyzxyzxyz XY:--:30 456789 123456789 xyzxyzxyz XY
- 31.1 :--:1
- 32.2 3456789 abcdefghi :--:2 3456789 abcdefghi
- 33.3 :--:3
- 34.4 :--:4
- 35. :--:5
- 36.6 :--:6
- 37.7 :--:7
- 38.8 :--:8
- -- Date/Time -- x Page 8
-
-
- 39.9 3456789 abcdefghi :--:9 3456789 abcdefghi
- 40.40 DEFGHI 123456789 :--:40 DEFGHI 123456789
- 41.41 yzxyzxyz XYZXYZXYZ abcabcab :--:41 yzxyzxyz XYZXYZXYZ abcabcab
- 42.42 456789 123456789 abcdefghi AB:--:42 456789 123456789 abcdefghi AB
- -- Date/Time -- x Page 9
-
-
-
- -- Date/Time -- x Page 10
-
-
-
- -- Date/Time -- x Page 11
-
-
- 43.43 xyzxyzxyz XYZXYZXYZ abcabcab :--:43 xyzxyzxyz XYZXYZXYZ abcabcab
- 44.44 456789 123456789 xyzxyzxyz XY:--:44 456789 123456789 xyzxyzxyz XY
- 45.5 :--:5
- 46.6 :--:6
- 47.7 :--:7
- 48.8 :--:8
- 49.9 :--:9
- 50.50 :--:50
- 51.1 :--:1
- 52. :--:2
- -- Date/Time -- x Page 12
-
-
- 53. :--:3
- 54. :--:4
- 55.55 yzxyzxyz XYZXYZXYZ abcabcab :--:55 yzxyzxyz XYZXYZXYZ abcabcab
- 56.56 456789 123456789 abcdefghi AB:--:56 456789 123456789 abcdefghi AB
- -- Date/Time -- x Page 13
-
-
- 57. :--:57 xyzxyzxyz XYZXYZXYZ abcabcab
- 58.58 456789 123456789 xyzxyzxyz XY:--:58 456789 123456789 xyzxyzxyz XY
- 59.9 :--:9
- 60.60 DEFGHI 123456789 :--:60 DEFGHI 123456789
- 61.61 yzxyzxyz XYZXYZXYZ abcabcab :--:
- 62.62 456789 123456789 abcdefghi AB:--:
- 63.63 xyzxyzxyz XYZXYZXYZ abcabcab :--:
- 64.64 456789 123456789 xyzxyzxyz XY:--:
- 65.5 :--:
- 66.6 :--:
- -- Date/Time -- x Page 14
-
-
- 67.7 :--:
- 68.8 :--:
- 69.9 :--:
- 70.70 456789 123456789 abcdefghi A:--:
- 71.1 :--:
- 72. :--:
- 73. :--:
- 74. :--:
- 75.74 yzxyzxyz XYZXYZXYZ abcabcab :--:
- 76.75 456789 123456789 abcdefghi AB
- \ No newline at end of file
diff --git a/tests/pr/nSml13-t-t-FF b/tests/pr/nSml13-t-t-FF
deleted file mode 100644
index fbb5438..0000000
--- a/tests/pr/nSml13-t-t-FF
+++ /dev/null
@@ -1,134 +0,0 @@
--- Date/Time -- x Page 1
-
-
- 1.1 Test-INPUT: "Wit:--:1 Test-INPUT: "Wit:--:1 FF-Test: FF's in
- 2.2 Options -b -3 [+:--:2 Options -b -3 [+:--:2 Options -b -3 /
- 3.3 Options -a -3 [+:--:3 Options -a -3 [+:--:3 ----------------
- 4.4 Options [+:--:4 Options [+:--:4 3456789 123456789
- 5.5 :--:5 :--:5 3 Columns downwa
- 6.6 ----------------:--:6 ----------------:--:6 FF-Arangements:
- 7.7 3456789 123456789 :--:7 3456789 123456789 :--:7 text\f\f\n; text
- 8.8 3 Columns downwa:--:8 3 Columns downwa:--:8 \f\f\n; \f\n\f\n
- 9.9 With columns use:--:9 With columns use:--:9
- 10.10 without -f e.g.::--:10 without -f e.g.::--:10 zzzzzzzzzzzzzzzz
- -- Date/Time -- x Page 2
-
-
- 11.1 with -f e.g. ::--:1 with -f e.g. ::--:1
- 12.2 :--:2 :--:2
- 13.3 line truncation be:--:3 line truncation be:--:3 line truncation be
- 14.14 456789 123456789 :--:14 456789 123456789 :--:14 456789 123456789
- 15.15 xyzxyzxyz XYZXYZX:--:15 xyzxyzxyz XYZXYZX:--:
- 16.16 456789 123456789 :--:16 456789 123456789 :--:
- 17.7 :--:7 :--:
- 18.8 :--:8 :--:
- 19.9 3456789 ab :--:9 3456789 ab :--:
- 20.20 DEFGHI 123 :--:20 DEFGHI 123 :--:
- -- Date/Time -- x Page 3
-
-
- 21.1 :--:1 :--:
- 22.2 :--:2 :--:
- 23.3 :--:3 :--:
- 24.4 :--:4 :--:
- 25.5 :--:5 :--:
- 26.6 :--:6 :--:
- 27.27 no truncation bef:--:27 no truncation bef:--:
- 28.28 no trunc :--:28 no trunc :--:
- 29.29 xyzxyzxyz XYZXYZX:--:29 xyzxyzxyz XYZXYZX:--:
- 30.30 456789 123456789 :--:30 456789 123456789 :--:
- -- Date/Time -- x Page 4
-
-
- 31.1 :--:1 :--:15 xyzxyzxyz XYZXYZX
- 32.2 3456789 abcdefghi :--:2 3456789 abcdefghi :--:16 456789 123456789
- 33.3 :--:3 :--:7
- 34.4 :--:4 :--:8
- 35.5 :--:5 :--:9 3456789 ab
- 36.6 :--:6 :--:20 DEFGHI 123
- 37.7 :--:7 :--:1
- 38.8 :--:8 :--:2
- 39.9 3456789 abcdefghi :--:9 3456789 abcdefghi :--:3
- 40.40 DEFGHI 123456789 :--:40 DEFGHI 123456789 :--:4
- -- Date/Time -- x Page 5
-
-
- 41.41 yzxyzxyz XYZXYZXY:--:41 yzxyzxyz XYZXYZXY:--:5
- 42.42 456789 123456789 :--:42 456789 123456789 :--:6
- 43.43 xyzxyzxyz XYZXYZX:--:43 xyzxyzxyz XYZXYZX:--:27 no truncation bef
- 44.44 456789 123456789 :--:44 456789 123456789 :--:28 no trunc
- 45.5 :--:5 :--:
- 46.6 :--:6 :--:
- 47.7 :--:7 :--:
- 48.8 :--:8 :--:
- 49.9 :--:9 :--:
- 50.50 :--:50 :--:
- -- Date/Time -- x Page 6
-
-
- 51.1 :--:1 :--:
- 52.2 :--:2 :--:
- 53.3 :--:3 :--:
- 54.4 :--:4 :--:
- 55.55 yzxyzxyz XYZXYZXY:--:55 yzxyzxyz XYZXYZXY:--:
- 56.56 456789 123456789 :--:56 456789 123456789 :--:
- 57.57 xyzxyzxyz XYZXYZX:--:57 xyzxyzxyz XYZXYZX:--:
- 58.58 456789 123456789 :--:58 456789 123456789 :--:
- 59.9 :--:9 :--:
- 60.60 DEFGHI 123456789 :--:60 DEFGHI 123456789 :--:
- -- Date/Time -- x Page 7
-
-
- 61.1 :--:1 :--:29 xyzxyzxyz XYZXYZX
- 62.2 :--:2 :--:30 456789 123456789
- 63.3 ------- EOF -----:--:3 ------- EOF -----:--:1
- 64. :--: :--:2 3456789 abcdefghi
- 65. :--: :--:3
- 66. :--: :--:4
- 67. :--: :--:5
- 68. :--: :--:6
- 69. :--: :--:7
- 70. :--: :--:8
- -- Date/Time -- x Page 8
-
-
- 71. :--: :--:9 3456789 abcdefghi
- 72. :--: :--:40 DEFGHI 123456789
- 73. :--: :--:41 yzxyzxyz XYZXYZXY
- 74. :--: :--:42 456789 123456789
- -- Date/Time -- x Page 9
-
-
-
- -- Date/Time -- x Page 10
-
-
-
- -- Date/Time -- x Page 11
-
-
- 75. :--: :--:43 xyzxyzxyz XYZXYZX
- 76. :--: :--:44 456789 123456789
- 77. :--: :--:5
- 78. :--: :--:6
- 79. :--: :--:7
- 80. :--: :--:8
- 81. :--: :--:9
- 82. :--: :--:50
- 83. :--: :--:1
- 84. :--: :--:2
- -- Date/Time -- x Page 12
-
-
- 85. :--: :--:3
- 86. :--: :--:4
- 87. :--: :--:55 yzxyzxyz XYZXYZXY
- 88. :--: :--:56 456789 123456789
- -- Date/Time -- x Page 13
-
-
- 89. :--: :--:57 xyzxyzxyz XYZXYZX
- 90. :--: :--:58 456789 123456789
- 91. :--: :--:9
- 92. :--: :--:60 DEFGHI 123456789
- \ No newline at end of file
diff --git a/tests/pr/nSml13-t-tFFFF b/tests/pr/nSml13-t-tFFFF
deleted file mode 100644
index b4916d5..0000000
--- a/tests/pr/nSml13-t-tFFFF
+++ /dev/null
@@ -1,134 +0,0 @@
--- Date/Time -- x Page 1
-
-
- 1.1 Test-INPUT:--:1 Test-INPUT:--:1 FF-Test: F:--:1 FF-Test: F
- 2.2 Options -b:--:2 Options -b:--:2 Options -b:--:2 Options -b
- 3.3 Options -a:--:3 Options -a:--:3 ----------:--:3 ----------
- 4.4 Options :--:4 Options :--:4 3456789 1234:--:4 3456789 1234
- 5.5 :--:5 :--:5 3 Columns :--:5 3 Columns
- 6.6 ----------:--:6 ----------:--:6 FF-Arangem:--:6 FF-Arangem
- 7.7 3456789 1234:--:7 3456789 1234:--:7 text\f\f\n:--:7 text\f\f\n
- 8.8 3 Columns :--:8 3 Columns :--:8 \f\f\n; \f:--:8 \f\f\n; \f
- 9.9 With colum:--:9 With colum:--:9 :--:9
- 10.10 without -f:--:10 without -f:--:10 zzzzzzzzzz:--:10 zzzzzzzzzz
- -- Date/Time -- x Page 2
-
-
- 11.1 with -f e.:--:1 with -f e.:--:1 :--:1
- 12.2 :--:2 :--:2 :--:2
- 13.3 line truncat:--:3 line truncat:--:3 line truncat:--:3 line truncat
- 14.14 456789 1234:--:14 456789 1234:--:14 456789 1234:--:14 456789 1234
- 15.15 xyzxyzxyz X:--:15 xyzxyzxyz X:--: :--:
- 16.16 456789 1234:--:16 456789 1234:--: :--:
- 17.7 :--:7 :--: :--:
- 18.8 :--:8 :--: :--:
- 19.9 3456789 ab :--:9 3456789 ab :--: :--:
- 20.20 DEFGHI 123 :--:20 DEFGHI 123 :--: :--:
- -- Date/Time -- x Page 3
-
-
- 21.1 :--:1 :--: :--:
- 22.2 :--:2 :--: :--:
- 23.3 :--:3 :--: :--:
- 24.4 :--:4 :--: :--:
- 25.5 :--:5 :--: :--:
- 26.6 :--:6 :--: :--:
- 27.27 no truncati:--:27 no truncati:--: :--:
- 28.28 no trunc :--:28 no trunc :--: :--:
- 29.29 xyzxyzxyz X:--:29 xyzxyzxyz X:--: :--:
- 30.30 456789 1234:--:30 456789 1234:--: :--:
- -- Date/Time -- x Page 4
-
-
- 31.1 :--:1 :--:15 xyzxyzxyz X:--:15 xyzxyzxyz X
- 32.2 3456789 abcd:--:2 3456789 abcd:--:16 456789 1234:--:16 456789 1234
- 33.3 :--:3 :--:7 :--:7
- 34.4 :--:4 :--:8 :--:8
- 35.5 :--:5 :--:9 3456789 ab :--:9 3456789 ab
- 36.6 :--:6 :--:20 DEFGHI 123 :--:20 DEFGHI 123
- 37.7 :--:7 :--:1 :--:1
- 38.8 :--:8 :--:2 :--:2
- 39.9 3456789 abcd:--:9 3456789 abcd:--:3 :--:3
- 40.40 DEFGHI 1234:--:40 DEFGHI 1234:--:4 :--:4
- -- Date/Time -- x Page 5
-
-
- 41.41 yzxyzxyz XY:--:41 yzxyzxyz XY:--:5 :--:5
- 42.42 456789 1234:--:42 456789 1234:--:6 :--:6
- 43.43 xyzxyzxyz X:--:43 xyzxyzxyz X:--:27 no truncati:--:27 no truncati
- 44.44 456789 1234:--:44 456789 1234:--:28 no trunc :--:28 no trunc
- 45.5 :--:5 :--: :--:
- 46.6 :--:6 :--: :--:
- 47.7 :--:7 :--: :--:
- 48.8 :--:8 :--: :--:
- 49.9 :--:9 :--: :--:
- 50.50 :--:50 :--: :--:
- -- Date/Time -- x Page 6
-
-
- 51.1 :--:1 :--: :--:
- 52.2 :--:2 :--: :--:
- 53.3 :--:3 :--: :--:
- 54.4 :--:4 :--: :--:
- 55.55 yzxyzxyz XY:--:55 yzxyzxyz XY:--: :--:
- 56.56 456789 1234:--:56 456789 1234:--: :--:
- 57.57 xyzxyzxyz X:--:57 xyzxyzxyz X:--: :--:
- 58.58 456789 1234:--:58 456789 1234:--: :--:
- 59.9 :--:9 :--: :--:
- 60.60 DEFGHI 1234:--:60 DEFGHI 1234:--: :--:
- -- Date/Time -- x Page 7
-
-
- 61.1 :--:1 :--:29 xyzxyzxyz X:--:29 xyzxyzxyz X
- 62.2 :--:2 :--:30 456789 1234:--:30 456789 1234
- 63.3 ------- EOF:--:3 ------- EOF:--:1 :--:1
- 64. :--: :--:2 3456789 abcd:--:2 3456789 abcd
- 65. :--: :--:3 :--:3
- 66. :--: :--:4 :--:4
- 67. :--: :--:5 :--:5
- 68. :--: :--:6 :--:6
- 69. :--: :--:7 :--:7
- 70. :--: :--:8 :--:8
- -- Date/Time -- x Page 8
-
-
- 71. :--: :--:9 3456789 abcd:--:9 3456789 abcd
- 72. :--: :--:40 DEFGHI 1234:--:40 DEFGHI 1234
- 73. :--: :--:41 yzxyzxyz XY:--:41 yzxyzxyz XY
- 74. :--: :--:42 456789 1234:--:42 456789 1234
- -- Date/Time -- x Page 9
-
-
-
- -- Date/Time -- x Page 10
-
-
-
- -- Date/Time -- x Page 11
-
-
- 75. :--: :--:43 xyzxyzxyz X:--:43 xyzxyzxyz X
- 76. :--: :--:44 456789 1234:--:44 456789 1234
- 77. :--: :--:5 :--:5
- 78. :--: :--:6 :--:6
- 79. :--: :--:7 :--:7
- 80. :--: :--:8 :--:8
- 81. :--: :--:9 :--:9
- 82. :--: :--:50 :--:50
- 83. :--: :--:1 :--:1
- 84. :--: :--:2 :--:2
- -- Date/Time -- x Page 12
-
-
- 85. :--: :--:3 :--:3
- 86. :--: :--:4 :--:4
- 87. :--: :--:55 yzxyzxyz XY:--:55 yzxyzxyz XY
- 88. :--: :--:56 456789 1234:--:56 456789 1234
- -- Date/Time -- x Page 13
-
-
- 89. :--: :--:57 xyzxyzxyz X:--:57 xyzxyzxyz X
- 90. :--: :--:58 456789 1234:--:58 456789 1234
- 91. :--: :--:9 :--:9
- 92. :--: :--:60 DEFGHI 1234:--:60 DEFGHI 1234
- \ No newline at end of file
diff --git a/tests/pr/nSml17-bl-FF b/tests/pr/nSml17-bl-FF
deleted file mode 100644
index 4abcc71..0000000
--- a/tests/pr/nSml17-bl-FF
+++ /dev/null
@@ -1,111 +0,0 @@
--- Date/Time -- x Page 1
-
-
- 1.1 FF-Test: FF's in Text :--:1 FF-Test: FF's in Text
- 2.2 Options -n; :--:2 Options -b -3 / -a -3 / ...
- 3.3 numbering lines with skiped :--:3 ----------------------------
- 4.4 numbering blanc lines (no. 5:--:4 3456789 123456789 123456789 12
- 5. :--:5 3 Columns downwards ..., <=
- 6.6 3456789 123456789 123456789 12:--:6 FF-Arangements: One Empty Pa
- 7.7 3 Columns downwards ..., <= :--:7 text\f\f\n; text\f\n\ftext;
- 8.8 :--:8 \f\f\n; \f\n\f\n;
- 9.9 :--:9
- 10.10 zzzzzzzzzzzzzzzzzzzzzzzzzz12:--:10 zzzzzzzzzzzzzzzzzzzzzzzzzz12
- 11.1 :--:1
- 12. :--:2
- 13. :--:3 line truncation before FF; r_r
- 14.14 456789 123456789 123456789 12:--:14 456789 123456789 123456789 12
- -- Date/Time -- x Page 2
-
-
-
- -- Date/Time -- x Page 3
-
-
- 15.15 xyzxyzxyz XYZXYZXYZ abcabcab :--:15 xyzxyzxyz XYZXYZXYZ abcabcab
- 16.16 456789 123456789 xyzxyzxyz XY:--:16 456789 123456789 xyzxyzxyz XY
- 17.7 :--:7
- 18.8 :--:8
- 19.9 3456789 ab :--:9 3456789 ab
- 20.20 DEFGHI 123 :--:20 DEFGHI 123
- 21.1 :--:1
- 22. :--:2
- 23. :--:3
- 24.4 :--:4
- 25.5 :--:5
- 26.6 :--:6
- 27.27 no truncation before FF; (r_l:--:27 no truncation before FF; (r_l
- 28. :--:28 no trunc
- -- Date/Time -- x Page 4
-
-
-
- -- Date/Time -- x Page 5
-
-
- 29.29 xyzxyzxyz XYZXYZXYZ abcabcab :--:29 xyzxyzxyz XYZXYZXYZ abcabcab
- 30.30 456789 123456789 xyzxyzxyz XY:--:30 456789 123456789 xyzxyzxyz XY
- 31.1 :--:1
- 32.2 3456789 abcdefghi :--:2 3456789 abcdefghi
- 33.3 :--:3
- 34.4 :--:4
- 35. :--:5
- 36.6 :--:6
- 37.7 :--:7
- 38.8 :--:8
- 39.9 3456789 abcdefghi :--:9 3456789 abcdefghi
- 40.40 DEFGHI 123456789 :--:40 DEFGHI 123456789
- 41.41 yzxyzxyz XYZXYZXYZ abcabcab :--:41 yzxyzxyz XYZXYZXYZ abcabcab
- 42.42 456789 123456789 abcdefghi AB:--:42 456789 123456789 abcdefghi AB
- -- Date/Time -- x Page 6
-
-
-
- -- Date/Time -- x Page 7
-
-
-
- -- Date/Time -- x Page 8
-
-
- 43.43 xyzxyzxyz XYZXYZXYZ abcabcab :--:43 xyzxyzxyz XYZXYZXYZ abcabcab
- 44.44 456789 123456789 xyzxyzxyz XY:--:44 456789 123456789 xyzxyzxyz XY
- 45.5 :--:5
- 46.6 :--:6
- 47.7 :--:7
- 48.8 :--:8
- 49.9 :--:9
- 50.50 :--:50
- 51.1 :--:1
- 52. :--:2
- 53. :--:3
- 54. :--:4
- 55.55 yzxyzxyz XYZXYZXYZ abcabcab :--:55 yzxyzxyz XYZXYZXYZ abcabcab
- 56.56 456789 123456789 abcdefghi AB:--:56 456789 123456789 abcdefghi AB
- -- Date/Time -- x Page 9
-
-
- 57. :--:57 xyzxyzxyz XYZXYZXYZ abcabcab
- 58.58 456789 123456789 xyzxyzxyz XY:--:58 456789 123456789 xyzxyzxyz XY
- 59.9 :--:9
- 60.60 DEFGHI 123456789 :--:60 DEFGHI 123456789
- 61.61 yzxyzxyz XYZXYZXYZ abcabcab :--:
- 62.62 456789 123456789 abcdefghi AB:--:
- 63.63 xyzxyzxyz XYZXYZXYZ abcabcab :--:
- 64.64 456789 123456789 xyzxyzxyz XY:--:
- 65.5 :--:
- 66.6 :--:
- 67.7 :--:
- 68.8 :--:
- 69.9 :--:
- 70.70 456789 123456789 abcdefghi A:--:
- -- Date/Time -- x Page 10
-
-
- 71.1 :--:
- 72. :--:
- 73. :--:
- 74. :--:
- 75.74 yzxyzxyz XYZXYZXYZ abcabcab :--:
- 76.75 456789 123456789 abcdefghi AB
- \ No newline at end of file
diff --git a/tests/pr/nSml17-t-t-FF b/tests/pr/nSml17-t-t-FF
deleted file mode 100644
index f43e335..0000000
--- a/tests/pr/nSml17-t-t-FF
+++ /dev/null
@@ -1,118 +0,0 @@
--- Date/Time -- x Page 1
-
-
- 1.1 Test-INPUT: "Wit:--:1 Test-INPUT: "Wit:--:1 FF-Test: FF's in
- 2.2 Options -b -3 [+:--:2 Options -b -3 [+:--:2 Options -b -3 /
- 3.3 Options -a -3 [+:--:3 Options -a -3 [+:--:3 ----------------
- 4.4 Options [+:--:4 Options [+:--:4 3456789 123456789
- 5.5 :--:5 :--:5 3 Columns downwa
- 6.6 ----------------:--:6 ----------------:--:6 FF-Arangements:
- 7.7 3456789 123456789 :--:7 3456789 123456789 :--:7 text\f\f\n; text
- 8.8 3 Columns downwa:--:8 3 Columns downwa:--:8 \f\f\n; \f\n\f\n
- 9.9 With columns use:--:9 With columns use:--:9
- 10.10 without -f e.g.::--:10 without -f e.g.::--:10 zzzzzzzzzzzzzzzz
- 11.1 with -f e.g. ::--:1 with -f e.g. ::--:1
- 12.2 :--:2 :--:2
- 13.3 line truncation be:--:3 line truncation be:--:3 line truncation be
- 14.14 456789 123456789 :--:14 456789 123456789 :--:14 456789 123456789
- -- Date/Time -- x Page 2
-
-
- 15.15 xyzxyzxyz XYZXYZX:--:15 xyzxyzxyz XYZXYZX:--:
- 16.16 456789 123456789 :--:16 456789 123456789 :--:
- 17.7 :--:7 :--:
- 18.8 :--:8 :--:
- 19.9 3456789 ab :--:9 3456789 ab :--:
- 20.20 DEFGHI 123 :--:20 DEFGHI 123 :--:
- 21.1 :--:1 :--:
- 22.2 :--:2 :--:
- 23.3 :--:3 :--:
- 24.4 :--:4 :--:
- 25.5 :--:5 :--:
- 26.6 :--:6 :--:
- 27.27 no truncation bef:--:27 no truncation bef:--:
- 28.28 no trunc :--:28 no trunc :--:
- -- Date/Time -- x Page 3
-
-
- 29.29 xyzxyzxyz XYZXYZX:--:29 xyzxyzxyz XYZXYZX:--:15 xyzxyzxyz XYZXYZX
- 30.30 456789 123456789 :--:30 456789 123456789 :--:16 456789 123456789
- 31.1 :--:1 :--:7
- 32.2 3456789 abcdefghi :--:2 3456789 abcdefghi :--:8
- 33.3 :--:3 :--:9 3456789 ab
- 34.4 :--:4 :--:20 DEFGHI 123
- 35.5 :--:5 :--:1
- 36.6 :--:6 :--:2
- 37.7 :--:7 :--:3
- 38.8 :--:8 :--:4
- 39.9 3456789 abcdefghi :--:9 3456789 abcdefghi :--:5
- 40.40 DEFGHI 123456789 :--:40 DEFGHI 123456789 :--:6
- 41.41 yzxyzxyz XYZXYZXY:--:41 yzxyzxyz XYZXYZXY:--:27 no truncation bef
- 42.42 456789 123456789 :--:42 456789 123456789 :--:28 no trunc
- -- Date/Time -- x Page 4
-
-
- 43.43 xyzxyzxyz XYZXYZX:--:43 xyzxyzxyz XYZXYZX:--:
- 44.44 456789 123456789 :--:44 456789 123456789 :--:
- 45.5 :--:5 :--:
- 46.6 :--:6 :--:
- 47.7 :--:7 :--:
- 48.8 :--:8 :--:
- 49.9 :--:9 :--:
- 50.50 :--:50 :--:
- 51.1 :--:1 :--:
- 52.2 :--:2 :--:
- 53.3 :--:3 :--:
- 54.4 :--:4 :--:
- 55.55 yzxyzxyz XYZXYZXY:--:55 yzxyzxyz XYZXYZXY:--:
- 56.56 456789 123456789 :--:56 456789 123456789 :--:
- -- Date/Time -- x Page 5
-
-
- 57.57 xyzxyzxyz XYZXYZX:--:57 xyzxyzxyz XYZXYZX:--:29 xyzxyzxyz XYZXYZX
- 58.58 456789 123456789 :--:58 456789 123456789 :--:30 456789 123456789
- 59.9 :--:9 :--:1
- 60.60 DEFGHI 123456789 :--:60 DEFGHI 123456789 :--:2 3456789 abcdefghi
- 61.1 :--:1 :--:3
- 62.2 :--:2 :--:4
- 63.3 ------- EOF -----:--:3 ------- EOF -----:--:5
- 64. :--: :--:6
- 65. :--: :--:7
- 66. :--: :--:8
- 67. :--: :--:9 3456789 abcdefghi
- 68. :--: :--:40 DEFGHI 123456789
- 69. :--: :--:41 yzxyzxyz XYZXYZXY
- 70. :--: :--:42 456789 123456789
- -- Date/Time -- x Page 6
-
-
-
- -- Date/Time -- x Page 7
-
-
-
- -- Date/Time -- x Page 8
-
-
- 71. :--: :--:43 xyzxyzxyz XYZXYZX
- 72. :--: :--:44 456789 123456789
- 73. :--: :--:5
- 74. :--: :--:6
- 75. :--: :--:7
- 76. :--: :--:8
- 77. :--: :--:9
- 78. :--: :--:50
- 79. :--: :--:1
- 80. :--: :--:2
- 81. :--: :--:3
- 82. :--: :--:4
- 83. :--: :--:55 yzxyzxyz XYZXYZXY
- 84. :--: :--:56 456789 123456789
- -- Date/Time -- x Page 9
-
-
- 85. :--: :--:57 xyzxyzxyz XYZXYZX
- 86. :--: :--:58 456789 123456789
- 87. :--: :--:9
- 88. :--: :--:60 DEFGHI 123456789
- \ No newline at end of file
diff --git a/tests/pr/nSml17-t-tFFFF b/tests/pr/nSml17-t-tFFFF
deleted file mode 100644
index c52e8b0..0000000
--- a/tests/pr/nSml17-t-tFFFF
+++ /dev/null
@@ -1,118 +0,0 @@
--- Date/Time -- x Page 1
-
-
- 1.1 Test-INPUT:--:1 Test-INPUT:--:1 FF-Test: F:--:1 FF-Test: F
- 2.2 Options -b:--:2 Options -b:--:2 Options -b:--:2 Options -b
- 3.3 Options -a:--:3 Options -a:--:3 ----------:--:3 ----------
- 4.4 Options :--:4 Options :--:4 3456789 1234:--:4 3456789 1234
- 5.5 :--:5 :--:5 3 Columns :--:5 3 Columns
- 6.6 ----------:--:6 ----------:--:6 FF-Arangem:--:6 FF-Arangem
- 7.7 3456789 1234:--:7 3456789 1234:--:7 text\f\f\n:--:7 text\f\f\n
- 8.8 3 Columns :--:8 3 Columns :--:8 \f\f\n; \f:--:8 \f\f\n; \f
- 9.9 With colum:--:9 With colum:--:9 :--:9
- 10.10 without -f:--:10 without -f:--:10 zzzzzzzzzz:--:10 zzzzzzzzzz
- 11.1 with -f e.:--:1 with -f e.:--:1 :--:1
- 12.2 :--:2 :--:2 :--:2
- 13.3 line truncat:--:3 line truncat:--:3 line truncat:--:3 line truncat
- 14.14 456789 1234:--:14 456789 1234:--:14 456789 1234:--:14 456789 1234
- -- Date/Time -- x Page 2
-
-
- 15.15 xyzxyzxyz X:--:15 xyzxyzxyz X:--: :--:
- 16.16 456789 1234:--:16 456789 1234:--: :--:
- 17.7 :--:7 :--: :--:
- 18.8 :--:8 :--: :--:
- 19.9 3456789 ab :--:9 3456789 ab :--: :--:
- 20.20 DEFGHI 123 :--:20 DEFGHI 123 :--: :--:
- 21.1 :--:1 :--: :--:
- 22.2 :--:2 :--: :--:
- 23.3 :--:3 :--: :--:
- 24.4 :--:4 :--: :--:
- 25.5 :--:5 :--: :--:
- 26.6 :--:6 :--: :--:
- 27.27 no truncati:--:27 no truncati:--: :--:
- 28.28 no trunc :--:28 no trunc :--: :--:
- -- Date/Time -- x Page 3
-
-
- 29.29 xyzxyzxyz X:--:29 xyzxyzxyz X:--:15 xyzxyzxyz X:--:15 xyzxyzxyz X
- 30.30 456789 1234:--:30 456789 1234:--:16 456789 1234:--:16 456789 1234
- 31.1 :--:1 :--:7 :--:7
- 32.2 3456789 abcd:--:2 3456789 abcd:--:8 :--:8
- 33.3 :--:3 :--:9 3456789 ab :--:9 3456789 ab
- 34.4 :--:4 :--:20 DEFGHI 123 :--:20 DEFGHI 123
- 35.5 :--:5 :--:1 :--:1
- 36.6 :--:6 :--:2 :--:2
- 37.7 :--:7 :--:3 :--:3
- 38.8 :--:8 :--:4 :--:4
- 39.9 3456789 abcd:--:9 3456789 abcd:--:5 :--:5
- 40.40 DEFGHI 1234:--:40 DEFGHI 1234:--:6 :--:6
- 41.41 yzxyzxyz XY:--:41 yzxyzxyz XY:--:27 no truncati:--:27 no truncati
- 42.42 456789 1234:--:42 456789 1234:--:28 no trunc :--:28 no trunc
- -- Date/Time -- x Page 4
-
-
- 43.43 xyzxyzxyz X:--:43 xyzxyzxyz X:--: :--:
- 44.44 456789 1234:--:44 456789 1234:--: :--:
- 45.5 :--:5 :--: :--:
- 46.6 :--:6 :--: :--:
- 47.7 :--:7 :--: :--:
- 48.8 :--:8 :--: :--:
- 49.9 :--:9 :--: :--:
- 50.50 :--:50 :--: :--:
- 51.1 :--:1 :--: :--:
- 52.2 :--:2 :--: :--:
- 53.3 :--:3 :--: :--:
- 54.4 :--:4 :--: :--:
- 55.55 yzxyzxyz XY:--:55 yzxyzxyz XY:--: :--:
- 56.56 456789 1234:--:56 456789 1234:--: :--:
- -- Date/Time -- x Page 5
-
-
- 57.57 xyzxyzxyz X:--:57 xyzxyzxyz X:--:29 xyzxyzxyz X:--:29 xyzxyzxyz X
- 58.58 456789 1234:--:58 456789 1234:--:30 456789 1234:--:30 456789 1234
- 59.9 :--:9 :--:1 :--:1
- 60.60 DEFGHI 1234:--:60 DEFGHI 1234:--:2 3456789 abcd:--:2 3456789 abcd
- 61.1 :--:1 :--:3 :--:3
- 62.2 :--:2 :--:4 :--:4
- 63.3 ------- EOF:--:3 ------- EOF:--:5 :--:5
- 64. :--: :--:6 :--:6
- 65. :--: :--:7 :--:7
- 66. :--: :--:8 :--:8
- 67. :--: :--:9 3456789 abcd:--:9 3456789 abcd
- 68. :--: :--:40 DEFGHI 1234:--:40 DEFGHI 1234
- 69. :--: :--:41 yzxyzxyz XY:--:41 yzxyzxyz XY
- 70. :--: :--:42 456789 1234:--:42 456789 1234
- -- Date/Time -- x Page 6
-
-
-
- -- Date/Time -- x Page 7
-
-
-
- -- Date/Time -- x Page 8
-
-
- 71. :--: :--:43 xyzxyzxyz X:--:43 xyzxyzxyz X
- 72. :--: :--:44 456789 1234:--:44 456789 1234
- 73. :--: :--:5 :--:5
- 74. :--: :--:6 :--:6
- 75. :--: :--:7 :--:7
- 76. :--: :--:8 :--:8
- 77. :--: :--:9 :--:9
- 78. :--: :--:50 :--:50
- 79. :--: :--:1 :--:1
- 80. :--: :--:2 :--:2
- 81. :--: :--:3 :--:3
- 82. :--: :--:4 :--:4
- 83. :--: :--:55 yzxyzxyz XY:--:55 yzxyzxyz XY
- 84. :--: :--:56 456789 1234:--:56 456789 1234
- -- Date/Time -- x Page 9
-
-
- 85. :--: :--:57 xyzxyzxyz X:--:57 xyzxyzxyz X
- 86. :--: :--:58 456789 1234:--:58 456789 1234
- 87. :--: :--:9 :--:9
- 88. :--: :--:60 DEFGHI 1234:--:60 DEFGHI 1234
- \ No newline at end of file
diff --git a/tests/pr/nSml20-bl-FF b/tests/pr/nSml20-bl-FF
new file mode 100644
index 0000000..18036e2
--- /dev/null
+++ b/tests/pr/nSml20-bl-FF
@@ -0,0 +1,151 @@
+
+
+-- Date/Time -- x Page 1
+
+
+ 1.1 FF-Test: FF's in Text :--:1 FF-Test: FF's in Text
+ 2.2 Options -n; :--:2 Options -b -3 / -a -3 / ...
+ 3.3 numbering lines with skiped :--:3 ----------------------------
+ 4.4 numbering blanc lines (no. 5:--:4 3456789 123456789 123456789 12
+ 5. :--:5 3 Columns downwards ..., <=
+ 6.6 3456789 123456789 123456789 12:--:6 FF-Arangements: One Empty Pa
+ 7.7 3 Columns downwards ..., <= :--:7 text\f\f\n; text\f\n\ftext;
+ 8.8 :--:8 \f\f\n; \f\n\f\n;
+ 9.9 :--:9
+ 10.10 zzzzzzzzzzzzzzzzzzzzzzzzzz12:--:10 zzzzzzzzzzzzzzzzzzzzzzzzzz12
+
+
+-- Date/Time -- x Page 2
+
+
+ 11.1 :--:1
+ 12. :--:2
+ 13. :--:3 line truncation before FF; r_r
+ 14.14 456789 123456789 123456789 12:--:14 456789 123456789 123456789 12
+
+
+-- Date/Time -- x Page 3
+
+
+
+
+
+-- Date/Time -- x Page 4
+
+
+ 15.15 xyzxyzxyz XYZXYZXYZ abcabcab :--:15 xyzxyzxyz XYZXYZXYZ abcabcab
+ 16.16 456789 123456789 xyzxyzxyz XY:--:16 456789 123456789 xyzxyzxyz XY
+ 17.7 :--:7
+ 18.8 :--:8
+ 19.9 3456789 ab :--:9 3456789 ab
+ 20.20 DEFGHI 123 :--:20 DEFGHI 123
+ 21.1 :--:1
+ 22. :--:2
+ 23. :--:3
+ 24.4 :--:4
+
+
+-- Date/Time -- x Page 5
+
+
+ 25.5 :--:5
+ 26.6 :--:6
+ 27.27 no truncation before FF; (r_l:--:27 no truncation before FF; (r_l
+ 28. :--:28 no trunc
+
+
+-- Date/Time -- x Page 6
+
+
+
+
+
+-- Date/Time -- x Page 7
+
+
+ 29.29 xyzxyzxyz XYZXYZXYZ abcabcab :--:29 xyzxyzxyz XYZXYZXYZ abcabcab
+ 30.30 456789 123456789 xyzxyzxyz XY:--:30 456789 123456789 xyzxyzxyz XY
+ 31.1 :--:1
+ 32.2 3456789 abcdefghi :--:2 3456789 abcdefghi
+ 33.3 :--:3
+ 34.4 :--:4
+ 35. :--:5
+ 36.6 :--:6
+ 37.7 :--:7
+ 38.8 :--:8
+
+
+-- Date/Time -- x Page 8
+
+
+ 39.9 3456789 abcdefghi :--:9 3456789 abcdefghi
+ 40.40 DEFGHI 123456789 :--:40 DEFGHI 123456789
+ 41.41 yzxyzxyz XYZXYZXYZ abcabcab :--:41 yzxyzxyz XYZXYZXYZ abcabcab
+ 42.42 456789 123456789 abcdefghi AB:--:42 456789 123456789 abcdefghi AB
+
+
+-- Date/Time -- x Page 9
+
+
+
+
+
+-- Date/Time -- x Page 10
+
+
+
+
+
+-- Date/Time -- x Page 11
+
+
+ 43.43 xyzxyzxyz XYZXYZXYZ abcabcab :--:43 xyzxyzxyz XYZXYZXYZ abcabcab
+ 44.44 456789 123456789 xyzxyzxyz XY:--:44 456789 123456789 xyzxyzxyz XY
+ 45.5 :--:5
+ 46.6 :--:6
+ 47.7 :--:7
+ 48.8 :--:8
+ 49.9 :--:9
+ 50.50 :--:50
+ 51.1 :--:1
+ 52. :--:2
+
+
+-- Date/Time -- x Page 12
+
+
+ 53. :--:3
+ 54. :--:4
+ 55.55 yzxyzxyz XYZXYZXYZ abcabcab :--:55 yzxyzxyz XYZXYZXYZ abcabcab
+ 56.56 456789 123456789 abcdefghi AB:--:56 456789 123456789 abcdefghi AB
+
+
+-- Date/Time -- x Page 13
+
+
+ 57. :--:57 xyzxyzxyz XYZXYZXYZ abcabcab
+ 58.58 456789 123456789 xyzxyzxyz XY:--:58 456789 123456789 xyzxyzxyz XY
+ 59.9 :--:9
+ 60.60 DEFGHI 123456789 :--:60 DEFGHI 123456789
+ 61.61 yzxyzxyz XYZXYZXYZ abcabcab :--:
+ 62.62 456789 123456789 abcdefghi AB:--:
+ 63.63 xyzxyzxyz XYZXYZXYZ abcabcab :--:
+ 64.64 456789 123456789 xyzxyzxyz XY:--:
+ 65.5 :--:
+ 66.6 :--:
+
+
+-- Date/Time -- x Page 14
+
+
+ 67.7 :--:
+ 68.8 :--:
+ 69.9 :--:
+ 70.70 456789 123456789 abcdefghi A:--:
+ 71.1 :--:
+ 72. :--:
+ 73. :--:
+ 74. :--:
+ 75.74 yzxyzxyz XYZXYZXYZ abcabcab :--:
+ 76.75 456789 123456789 abcdefghi AB
+ \ No newline at end of file
diff --git a/tests/pr/nSml20-t-t-FF b/tests/pr/nSml20-t-t-FF
new file mode 100644
index 0000000..abe6652
--- /dev/null
+++ b/tests/pr/nSml20-t-t-FF
@@ -0,0 +1,160 @@
+
+
+-- Date/Time -- x Page 1
+
+
+ 1.1 Test-INPUT: "Wit:--:1 Test-INPUT: "Wit:--:1 FF-Test: FF's in
+ 2.2 Options -b -3 [+:--:2 Options -b -3 [+:--:2 Options -b -3 /
+ 3.3 Options -a -3 [+:--:3 Options -a -3 [+:--:3 ----------------
+ 4.4 Options [+:--:4 Options [+:--:4 3456789 123456789
+ 5.5 :--:5 :--:5 3 Columns downwa
+ 6.6 ----------------:--:6 ----------------:--:6 FF-Arangements:
+ 7.7 3456789 123456789 :--:7 3456789 123456789 :--:7 text\f\f\n; text
+ 8.8 3 Columns downwa:--:8 3 Columns downwa:--:8 \f\f\n; \f\n\f\n
+ 9.9 With columns use:--:9 With columns use:--:9
+ 10.10 without -f e.g.::--:10 without -f e.g.::--:10 zzzzzzzzzzzzzzzz
+
+
+-- Date/Time -- x Page 2
+
+
+ 11.1 with -f e.g. ::--:1 with -f e.g. ::--:1
+ 12.2 :--:2 :--:2
+ 13.3 line truncation be:--:3 line truncation be:--:3 line truncation be
+ 14.14 456789 123456789 :--:14 456789 123456789 :--:14 456789 123456789
+ 15.15 xyzxyzxyz XYZXYZX:--:15 xyzxyzxyz XYZXYZX:--:
+ 16.16 456789 123456789 :--:16 456789 123456789 :--:
+ 17.7 :--:7 :--:
+ 18.8 :--:8 :--:
+ 19.9 3456789 ab :--:9 3456789 ab :--:
+ 20.20 DEFGHI 123 :--:20 DEFGHI 123 :--:
+
+
+-- Date/Time -- x Page 3
+
+
+ 21.1 :--:1 :--:
+ 22.2 :--:2 :--:
+ 23.3 :--:3 :--:
+ 24.4 :--:4 :--:
+ 25.5 :--:5 :--:
+ 26.6 :--:6 :--:
+ 27.27 no truncation bef:--:27 no truncation bef:--:
+ 28.28 no trunc :--:28 no trunc :--:
+ 29.29 xyzxyzxyz XYZXYZX:--:29 xyzxyzxyz XYZXYZX:--:
+ 30.30 456789 123456789 :--:30 456789 123456789 :--:
+
+
+-- Date/Time -- x Page 4
+
+
+ 31.1 :--:1 :--:15 xyzxyzxyz XYZXYZX
+ 32.2 3456789 abcdefghi :--:2 3456789 abcdefghi :--:16 456789 123456789
+ 33.3 :--:3 :--:7
+ 34.4 :--:4 :--:8
+ 35.5 :--:5 :--:9 3456789 ab
+ 36.6 :--:6 :--:20 DEFGHI 123
+ 37.7 :--:7 :--:1
+ 38.8 :--:8 :--:2
+ 39.9 3456789 abcdefghi :--:9 3456789 abcdefghi :--:3
+ 40.40 DEFGHI 123456789 :--:40 DEFGHI 123456789 :--:4
+
+
+-- Date/Time -- x Page 5
+
+
+ 41.41 yzxyzxyz XYZXYZXY:--:41 yzxyzxyz XYZXYZXY:--:5
+ 42.42 456789 123456789 :--:42 456789 123456789 :--:6
+ 43.43 xyzxyzxyz XYZXYZX:--:43 xyzxyzxyz XYZXYZX:--:27 no truncation bef
+ 44.44 456789 123456789 :--:44 456789 123456789 :--:28 no trunc
+ 45.5 :--:5 :--:
+ 46.6 :--:6 :--:
+ 47.7 :--:7 :--:
+ 48.8 :--:8 :--:
+ 49.9 :--:9 :--:
+ 50.50 :--:50 :--:
+
+
+-- Date/Time -- x Page 6
+
+
+ 51.1 :--:1 :--:
+ 52.2 :--:2 :--:
+ 53.3 :--:3 :--:
+ 54.4 :--:4 :--:
+ 55.55 yzxyzxyz XYZXYZXY:--:55 yzxyzxyz XYZXYZXY:--:
+ 56.56 456789 123456789 :--:56 456789 123456789 :--:
+ 57.57 xyzxyzxyz XYZXYZX:--:57 xyzxyzxyz XYZXYZX:--:
+ 58.58 456789 123456789 :--:58 456789 123456789 :--:
+ 59.9 :--:9 :--:
+ 60.60 DEFGHI 123456789 :--:60 DEFGHI 123456789 :--:
+
+
+-- Date/Time -- x Page 7
+
+
+ 61.1 :--:1 :--:29 xyzxyzxyz XYZXYZX
+ 62.2 :--:2 :--:30 456789 123456789
+ 63.3 ------- EOF -----:--:3 ------- EOF -----:--:1
+ 64. :--: :--:2 3456789 abcdefghi
+ 65. :--: :--:3
+ 66. :--: :--:4
+ 67. :--: :--:5
+ 68. :--: :--:6
+ 69. :--: :--:7
+ 70. :--: :--:8
+
+
+-- Date/Time -- x Page 8
+
+
+ 71. :--: :--:9 3456789 abcdefghi
+ 72. :--: :--:40 DEFGHI 123456789
+ 73. :--: :--:41 yzxyzxyz XYZXYZXY
+ 74. :--: :--:42 456789 123456789
+
+
+-- Date/Time -- x Page 9
+
+
+
+
+
+-- Date/Time -- x Page 10
+
+
+
+
+
+-- Date/Time -- x Page 11
+
+
+ 75. :--: :--:43 xyzxyzxyz XYZXYZX
+ 76. :--: :--:44 456789 123456789
+ 77. :--: :--:5
+ 78. :--: :--:6
+ 79. :--: :--:7
+ 80. :--: :--:8
+ 81. :--: :--:9
+ 82. :--: :--:50
+ 83. :--: :--:1
+ 84. :--: :--:2
+
+
+-- Date/Time -- x Page 12
+
+
+ 85. :--: :--:3
+ 86. :--: :--:4
+ 87. :--: :--:55 yzxyzxyz XYZXYZXY
+ 88. :--: :--:56 456789 123456789
+
+
+-- Date/Time -- x Page 13
+
+
+ 89. :--: :--:57 xyzxyzxyz XYZXYZX
+ 90. :--: :--:58 456789 123456789
+ 91. :--: :--:9
+ 92. :--: :--:60 DEFGHI 123456789
+ \ No newline at end of file
diff --git a/tests/pr/nSml20-t-tFFFF b/tests/pr/nSml20-t-tFFFF
new file mode 100644
index 0000000..4091d01
--- /dev/null
+++ b/tests/pr/nSml20-t-tFFFF
@@ -0,0 +1,160 @@
+
+
+-- Date/Time -- x Page 1
+
+
+ 1.1 Test-INPUT:--:1 Test-INPUT:--:1 FF-Test: F:--:1 FF-Test: F
+ 2.2 Options -b:--:2 Options -b:--:2 Options -b:--:2 Options -b
+ 3.3 Options -a:--:3 Options -a:--:3 ----------:--:3 ----------
+ 4.4 Options :--:4 Options :--:4 3456789 1234:--:4 3456789 1234
+ 5.5 :--:5 :--:5 3 Columns :--:5 3 Columns
+ 6.6 ----------:--:6 ----------:--:6 FF-Arangem:--:6 FF-Arangem
+ 7.7 3456789 1234:--:7 3456789 1234:--:7 text\f\f\n:--:7 text\f\f\n
+ 8.8 3 Columns :--:8 3 Columns :--:8 \f\f\n; \f:--:8 \f\f\n; \f
+ 9.9 With colum:--:9 With colum:--:9 :--:9
+ 10.10 without -f:--:10 without -f:--:10 zzzzzzzzzz:--:10 zzzzzzzzzz
+
+
+-- Date/Time -- x Page 2
+
+
+ 11.1 with -f e.:--:1 with -f e.:--:1 :--:1
+ 12.2 :--:2 :--:2 :--:2
+ 13.3 line truncat:--:3 line truncat:--:3 line truncat:--:3 line truncat
+ 14.14 456789 1234:--:14 456789 1234:--:14 456789 1234:--:14 456789 1234
+ 15.15 xyzxyzxyz X:--:15 xyzxyzxyz X:--: :--:
+ 16.16 456789 1234:--:16 456789 1234:--: :--:
+ 17.7 :--:7 :--: :--:
+ 18.8 :--:8 :--: :--:
+ 19.9 3456789 ab :--:9 3456789 ab :--: :--:
+ 20.20 DEFGHI 123 :--:20 DEFGHI 123 :--: :--:
+
+
+-- Date/Time -- x Page 3
+
+
+ 21.1 :--:1 :--: :--:
+ 22.2 :--:2 :--: :--:
+ 23.3 :--:3 :--: :--:
+ 24.4 :--:4 :--: :--:
+ 25.5 :--:5 :--: :--:
+ 26.6 :--:6 :--: :--:
+ 27.27 no truncati:--:27 no truncati:--: :--:
+ 28.28 no trunc :--:28 no trunc :--: :--:
+ 29.29 xyzxyzxyz X:--:29 xyzxyzxyz X:--: :--:
+ 30.30 456789 1234:--:30 456789 1234:--: :--:
+
+
+-- Date/Time -- x Page 4
+
+
+ 31.1 :--:1 :--:15 xyzxyzxyz X:--:15 xyzxyzxyz X
+ 32.2 3456789 abcd:--:2 3456789 abcd:--:16 456789 1234:--:16 456789 1234
+ 33.3 :--:3 :--:7 :--:7
+ 34.4 :--:4 :--:8 :--:8
+ 35.5 :--:5 :--:9 3456789 ab :--:9 3456789 ab
+ 36.6 :--:6 :--:20 DEFGHI 123 :--:20 DEFGHI 123
+ 37.7 :--:7 :--:1 :--:1
+ 38.8 :--:8 :--:2 :--:2
+ 39.9 3456789 abcd:--:9 3456789 abcd:--:3 :--:3
+ 40.40 DEFGHI 1234:--:40 DEFGHI 1234:--:4 :--:4
+
+
+-- Date/Time -- x Page 5
+
+
+ 41.41 yzxyzxyz XY:--:41 yzxyzxyz XY:--:5 :--:5
+ 42.42 456789 1234:--:42 456789 1234:--:6 :--:6
+ 43.43 xyzxyzxyz X:--:43 xyzxyzxyz X:--:27 no truncati:--:27 no truncati
+ 44.44 456789 1234:--:44 456789 1234:--:28 no trunc :--:28 no trunc
+ 45.5 :--:5 :--: :--:
+ 46.6 :--:6 :--: :--:
+ 47.7 :--:7 :--: :--:
+ 48.8 :--:8 :--: :--:
+ 49.9 :--:9 :--: :--:
+ 50.50 :--:50 :--: :--:
+
+
+-- Date/Time -- x Page 6
+
+
+ 51.1 :--:1 :--: :--:
+ 52.2 :--:2 :--: :--:
+ 53.3 :--:3 :--: :--:
+ 54.4 :--:4 :--: :--:
+ 55.55 yzxyzxyz XY:--:55 yzxyzxyz XY:--: :--:
+ 56.56 456789 1234:--:56 456789 1234:--: :--:
+ 57.57 xyzxyzxyz X:--:57 xyzxyzxyz X:--: :--:
+ 58.58 456789 1234:--:58 456789 1234:--: :--:
+ 59.9 :--:9 :--: :--:
+ 60.60 DEFGHI 1234:--:60 DEFGHI 1234:--: :--:
+
+
+-- Date/Time -- x Page 7
+
+
+ 61.1 :--:1 :--:29 xyzxyzxyz X:--:29 xyzxyzxyz X
+ 62.2 :--:2 :--:30 456789 1234:--:30 456789 1234
+ 63.3 ------- EOF:--:3 ------- EOF:--:1 :--:1
+ 64. :--: :--:2 3456789 abcd:--:2 3456789 abcd
+ 65. :--: :--:3 :--:3
+ 66. :--: :--:4 :--:4
+ 67. :--: :--:5 :--:5
+ 68. :--: :--:6 :--:6
+ 69. :--: :--:7 :--:7
+ 70. :--: :--:8 :--:8
+
+
+-- Date/Time -- x Page 8
+
+
+ 71. :--: :--:9 3456789 abcd:--:9 3456789 abcd
+ 72. :--: :--:40 DEFGHI 1234:--:40 DEFGHI 1234
+ 73. :--: :--:41 yzxyzxyz XY:--:41 yzxyzxyz XY
+ 74. :--: :--:42 456789 1234:--:42 456789 1234
+
+
+-- Date/Time -- x Page 9
+
+
+
+
+
+-- Date/Time -- x Page 10
+
+
+
+
+
+-- Date/Time -- x Page 11
+
+
+ 75. :--: :--:43 xyzxyzxyz X:--:43 xyzxyzxyz X
+ 76. :--: :--:44 456789 1234:--:44 456789 1234
+ 77. :--: :--:5 :--:5
+ 78. :--: :--:6 :--:6
+ 79. :--: :--:7 :--:7
+ 80. :--: :--:8 :--:8
+ 81. :--: :--:9 :--:9
+ 82. :--: :--:50 :--:50
+ 83. :--: :--:1 :--:1
+ 84. :--: :--:2 :--:2
+
+
+-- Date/Time -- x Page 12
+
+
+ 85. :--: :--:3 :--:3
+ 86. :--: :--:4 :--:4
+ 87. :--: :--:55 yzxyzxyz XY:--:55 yzxyzxyz XY
+ 88. :--: :--:56 456789 1234:--:56 456789 1234
+
+
+-- Date/Time -- x Page 13
+
+
+ 89. :--: :--:57 xyzxyzxyz X:--:57 xyzxyzxyz X
+ 90. :--: :--:58 456789 1234:--:58 456789 1234
+ 91. :--: :--:9 :--:9
+ 92. :--: :--:60 DEFGHI 1234:--:60 DEFGHI 1234
+ \ No newline at end of file
diff --git a/tests/pr/nSml24-bl-FF b/tests/pr/nSml24-bl-FF
new file mode 100644
index 0000000..e8d7c13
--- /dev/null
+++ b/tests/pr/nSml24-bl-FF
@@ -0,0 +1,131 @@
+
+
+-- Date/Time -- x Page 1
+
+
+ 1.1 FF-Test: FF's in Text :--:1 FF-Test: FF's in Text
+ 2.2 Options -n; :--:2 Options -b -3 / -a -3 / ...
+ 3.3 numbering lines with skiped :--:3 ----------------------------
+ 4.4 numbering blanc lines (no. 5:--:4 3456789 123456789 123456789 12
+ 5. :--:5 3 Columns downwards ..., <=
+ 6.6 3456789 123456789 123456789 12:--:6 FF-Arangements: One Empty Pa
+ 7.7 3 Columns downwards ..., <= :--:7 text\f\f\n; text\f\n\ftext;
+ 8.8 :--:8 \f\f\n; \f\n\f\n;
+ 9.9 :--:9
+ 10.10 zzzzzzzzzzzzzzzzzzzzzzzzzz12:--:10 zzzzzzzzzzzzzzzzzzzzzzzzzz12
+ 11.1 :--:1
+ 12. :--:2
+ 13. :--:3 line truncation before FF; r_r
+ 14.14 456789 123456789 123456789 12:--:14 456789 123456789 123456789 12
+
+
+-- Date/Time -- x Page 2
+
+
+
+
+
+-- Date/Time -- x Page 3
+
+
+ 15.15 xyzxyzxyz XYZXYZXYZ abcabcab :--:15 xyzxyzxyz XYZXYZXYZ abcabcab
+ 16.16 456789 123456789 xyzxyzxyz XY:--:16 456789 123456789 xyzxyzxyz XY
+ 17.7 :--:7
+ 18.8 :--:8
+ 19.9 3456789 ab :--:9 3456789 ab
+ 20.20 DEFGHI 123 :--:20 DEFGHI 123
+ 21.1 :--:1
+ 22. :--:2
+ 23. :--:3
+ 24.4 :--:4
+ 25.5 :--:5
+ 26.6 :--:6
+ 27.27 no truncation before FF; (r_l:--:27 no truncation before FF; (r_l
+ 28. :--:28 no trunc
+
+
+-- Date/Time -- x Page 4
+
+
+
+
+
+-- Date/Time -- x Page 5
+
+
+ 29.29 xyzxyzxyz XYZXYZXYZ abcabcab :--:29 xyzxyzxyz XYZXYZXYZ abcabcab
+ 30.30 456789 123456789 xyzxyzxyz XY:--:30 456789 123456789 xyzxyzxyz XY
+ 31.1 :--:1
+ 32.2 3456789 abcdefghi :--:2 3456789 abcdefghi
+ 33.3 :--:3
+ 34.4 :--:4
+ 35. :--:5
+ 36.6 :--:6
+ 37.7 :--:7
+ 38.8 :--:8
+ 39.9 3456789 abcdefghi :--:9 3456789 abcdefghi
+ 40.40 DEFGHI 123456789 :--:40 DEFGHI 123456789
+ 41.41 yzxyzxyz XYZXYZXYZ abcabcab :--:41 yzxyzxyz XYZXYZXYZ abcabcab
+ 42.42 456789 123456789 abcdefghi AB:--:42 456789 123456789 abcdefghi AB
+
+
+-- Date/Time -- x Page 6
+
+
+
+
+
+-- Date/Time -- x Page 7
+
+
+
+
+
+-- Date/Time -- x Page 8
+
+
+ 43.43 xyzxyzxyz XYZXYZXYZ abcabcab :--:43 xyzxyzxyz XYZXYZXYZ abcabcab
+ 44.44 456789 123456789 xyzxyzxyz XY:--:44 456789 123456789 xyzxyzxyz XY
+ 45.5 :--:5
+ 46.6 :--:6
+ 47.7 :--:7
+ 48.8 :--:8
+ 49.9 :--:9
+ 50.50 :--:50
+ 51.1 :--:1
+ 52. :--:2
+ 53. :--:3
+ 54. :--:4
+ 55.55 yzxyzxyz XYZXYZXYZ abcabcab :--:55 yzxyzxyz XYZXYZXYZ abcabcab
+ 56.56 456789 123456789 abcdefghi AB:--:56 456789 123456789 abcdefghi AB
+
+
+-- Date/Time -- x Page 9
+
+
+ 57. :--:57 xyzxyzxyz XYZXYZXYZ abcabcab
+ 58.58 456789 123456789 xyzxyzxyz XY:--:58 456789 123456789 xyzxyzxyz XY
+ 59.9 :--:9
+ 60.60 DEFGHI 123456789 :--:60 DEFGHI 123456789
+ 61.61 yzxyzxyz XYZXYZXYZ abcabcab :--:
+ 62.62 456789 123456789 abcdefghi AB:--:
+ 63.63 xyzxyzxyz XYZXYZXYZ abcabcab :--:
+ 64.64 456789 123456789 xyzxyzxyz XY:--:
+ 65.5 :--:
+ 66.6 :--:
+ 67.7 :--:
+ 68.8 :--:
+ 69.9 :--:
+ 70.70 456789 123456789 abcdefghi A:--:
+
+
+-- Date/Time -- x Page 10
+
+
+ 71.1 :--:
+ 72. :--:
+ 73. :--:
+ 74. :--:
+ 75.74 yzxyzxyz XYZXYZXYZ abcabcab :--:
+ 76.75 456789 123456789 abcdefghi AB
+ \ No newline at end of file
diff --git a/tests/pr/nSml24-t-t-FF b/tests/pr/nSml24-t-t-FF
new file mode 100644
index 0000000..e28b754
--- /dev/null
+++ b/tests/pr/nSml24-t-t-FF
@@ -0,0 +1,136 @@
+
+
+-- Date/Time -- x Page 1
+
+
+ 1.1 Test-INPUT: "Wit:--:1 Test-INPUT: "Wit:--:1 FF-Test: FF's in
+ 2.2 Options -b -3 [+:--:2 Options -b -3 [+:--:2 Options -b -3 /
+ 3.3 Options -a -3 [+:--:3 Options -a -3 [+:--:3 ----------------
+ 4.4 Options [+:--:4 Options [+:--:4 3456789 123456789
+ 5.5 :--:5 :--:5 3 Columns downwa
+ 6.6 ----------------:--:6 ----------------:--:6 FF-Arangements:
+ 7.7 3456789 123456789 :--:7 3456789 123456789 :--:7 text\f\f\n; text
+ 8.8 3 Columns downwa:--:8 3 Columns downwa:--:8 \f\f\n; \f\n\f\n
+ 9.9 With columns use:--:9 With columns use:--:9
+ 10.10 without -f e.g.::--:10 without -f e.g.::--:10 zzzzzzzzzzzzzzzz
+ 11.1 with -f e.g. ::--:1 with -f e.g. ::--:1
+ 12.2 :--:2 :--:2
+ 13.3 line truncation be:--:3 line truncation be:--:3 line truncation be
+ 14.14 456789 123456789 :--:14 456789 123456789 :--:14 456789 123456789
+
+
+-- Date/Time -- x Page 2
+
+
+ 15.15 xyzxyzxyz XYZXYZX:--:15 xyzxyzxyz XYZXYZX:--:
+ 16.16 456789 123456789 :--:16 456789 123456789 :--:
+ 17.7 :--:7 :--:
+ 18.8 :--:8 :--:
+ 19.9 3456789 ab :--:9 3456789 ab :--:
+ 20.20 DEFGHI 123 :--:20 DEFGHI 123 :--:
+ 21.1 :--:1 :--:
+ 22.2 :--:2 :--:
+ 23.3 :--:3 :--:
+ 24.4 :--:4 :--:
+ 25.5 :--:5 :--:
+ 26.6 :--:6 :--:
+ 27.27 no truncation bef:--:27 no truncation bef:--:
+ 28.28 no trunc :--:28 no trunc :--:
+
+
+-- Date/Time -- x Page 3
+
+
+ 29.29 xyzxyzxyz XYZXYZX:--:29 xyzxyzxyz XYZXYZX:--:15 xyzxyzxyz XYZXYZX
+ 30.30 456789 123456789 :--:30 456789 123456789 :--:16 456789 123456789
+ 31.1 :--:1 :--:7
+ 32.2 3456789 abcdefghi :--:2 3456789 abcdefghi :--:8
+ 33.3 :--:3 :--:9 3456789 ab
+ 34.4 :--:4 :--:20 DEFGHI 123
+ 35.5 :--:5 :--:1
+ 36.6 :--:6 :--:2
+ 37.7 :--:7 :--:3
+ 38.8 :--:8 :--:4
+ 39.9 3456789 abcdefghi :--:9 3456789 abcdefghi :--:5
+ 40.40 DEFGHI 123456789 :--:40 DEFGHI 123456789 :--:6
+ 41.41 yzxyzxyz XYZXYZXY:--:41 yzxyzxyz XYZXYZXY:--:27 no truncation bef
+ 42.42 456789 123456789 :--:42 456789 123456789 :--:28 no trunc
+
+
+-- Date/Time -- x Page 4
+
+
+ 43.43 xyzxyzxyz XYZXYZX:--:43 xyzxyzxyz XYZXYZX:--:
+ 44.44 456789 123456789 :--:44 456789 123456789 :--:
+ 45.5 :--:5 :--:
+ 46.6 :--:6 :--:
+ 47.7 :--:7 :--:
+ 48.8 :--:8 :--:
+ 49.9 :--:9 :--:
+ 50.50 :--:50 :--:
+ 51.1 :--:1 :--:
+ 52.2 :--:2 :--:
+ 53.3 :--:3 :--:
+ 54.4 :--:4 :--:
+ 55.55 yzxyzxyz XYZXYZXY:--:55 yzxyzxyz XYZXYZXY:--:
+ 56.56 456789 123456789 :--:56 456789 123456789 :--:
+
+
+-- Date/Time -- x Page 5
+
+
+ 57.57 xyzxyzxyz XYZXYZX:--:57 xyzxyzxyz XYZXYZX:--:29 xyzxyzxyz XYZXYZX
+ 58.58 456789 123456789 :--:58 456789 123456789 :--:30 456789 123456789
+ 59.9 :--:9 :--:1
+ 60.60 DEFGHI 123456789 :--:60 DEFGHI 123456789 :--:2 3456789 abcdefghi
+ 61.1 :--:1 :--:3
+ 62.2 :--:2 :--:4
+ 63.3 ------- EOF -----:--:3 ------- EOF -----:--:5
+ 64. :--: :--:6
+ 65. :--: :--:7
+ 66. :--: :--:8
+ 67. :--: :--:9 3456789 abcdefghi
+ 68. :--: :--:40 DEFGHI 123456789
+ 69. :--: :--:41 yzxyzxyz XYZXYZXY
+ 70. :--: :--:42 456789 123456789
+
+
+-- Date/Time -- x Page 6
+
+
+
+
+
+-- Date/Time -- x Page 7
+
+
+
+
+
+-- Date/Time -- x Page 8
+
+
+ 71. :--: :--:43 xyzxyzxyz XYZXYZX
+ 72. :--: :--:44 456789 123456789
+ 73. :--: :--:5
+ 74. :--: :--:6
+ 75. :--: :--:7
+ 76. :--: :--:8
+ 77. :--: :--:9
+ 78. :--: :--:50
+ 79. :--: :--:1
+ 80. :--: :--:2
+ 81. :--: :--:3
+ 82. :--: :--:4
+ 83. :--: :--:55 yzxyzxyz XYZXYZXY
+ 84. :--: :--:56 456789 123456789
+
+
+-- Date/Time -- x Page 9
+
+
+ 85. :--: :--:57 xyzxyzxyz XYZXYZX
+ 86. :--: :--:58 456789 123456789
+ 87. :--: :--:9
+ 88. :--: :--:60 DEFGHI 123456789
+ \ No newline at end of file
diff --git a/tests/pr/nSml24-t-tFFFF b/tests/pr/nSml24-t-tFFFF
new file mode 100644
index 0000000..74538ad
--- /dev/null
+++ b/tests/pr/nSml24-t-tFFFF
@@ -0,0 +1,136 @@
+
+
+-- Date/Time -- x Page 1
+
+
+ 1.1 Test-INPUT:--:1 Test-INPUT:--:1 FF-Test: F:--:1 FF-Test: F
+ 2.2 Options -b:--:2 Options -b:--:2 Options -b:--:2 Options -b
+ 3.3 Options -a:--:3 Options -a:--:3 ----------:--:3 ----------
+ 4.4 Options :--:4 Options :--:4 3456789 1234:--:4 3456789 1234
+ 5.5 :--:5 :--:5 3 Columns :--:5 3 Columns
+ 6.6 ----------:--:6 ----------:--:6 FF-Arangem:--:6 FF-Arangem
+ 7.7 3456789 1234:--:7 3456789 1234:--:7 text\f\f\n:--:7 text\f\f\n
+ 8.8 3 Columns :--:8 3 Columns :--:8 \f\f\n; \f:--:8 \f\f\n; \f
+ 9.9 With colum:--:9 With colum:--:9 :--:9
+ 10.10 without -f:--:10 without -f:--:10 zzzzzzzzzz:--:10 zzzzzzzzzz
+ 11.1 with -f e.:--:1 with -f e.:--:1 :--:1
+ 12.2 :--:2 :--:2 :--:2
+ 13.3 line truncat:--:3 line truncat:--:3 line truncat:--:3 line truncat
+ 14.14 456789 1234:--:14 456789 1234:--:14 456789 1234:--:14 456789 1234
+
+
+-- Date/Time -- x Page 2
+
+
+ 15.15 xyzxyzxyz X:--:15 xyzxyzxyz X:--: :--:
+ 16.16 456789 1234:--:16 456789 1234:--: :--:
+ 17.7 :--:7 :--: :--:
+ 18.8 :--:8 :--: :--:
+ 19.9 3456789 ab :--:9 3456789 ab :--: :--:
+ 20.20 DEFGHI 123 :--:20 DEFGHI 123 :--: :--:
+ 21.1 :--:1 :--: :--:
+ 22.2 :--:2 :--: :--:
+ 23.3 :--:3 :--: :--:
+ 24.4 :--:4 :--: :--:
+ 25.5 :--:5 :--: :--:
+ 26.6 :--:6 :--: :--:
+ 27.27 no truncati:--:27 no truncati:--: :--:
+ 28.28 no trunc :--:28 no trunc :--: :--:
+
+
+-- Date/Time -- x Page 3
+
+
+ 29.29 xyzxyzxyz X:--:29 xyzxyzxyz X:--:15 xyzxyzxyz X:--:15 xyzxyzxyz X
+ 30.30 456789 1234:--:30 456789 1234:--:16 456789 1234:--:16 456789 1234
+ 31.1 :--:1 :--:7 :--:7
+ 32.2 3456789 abcd:--:2 3456789 abcd:--:8 :--:8
+ 33.3 :--:3 :--:9 3456789 ab :--:9 3456789 ab
+ 34.4 :--:4 :--:20 DEFGHI 123 :--:20 DEFGHI 123
+ 35.5 :--:5 :--:1 :--:1
+ 36.6 :--:6 :--:2 :--:2
+ 37.7 :--:7 :--:3 :--:3
+ 38.8 :--:8 :--:4 :--:4
+ 39.9 3456789 abcd:--:9 3456789 abcd:--:5 :--:5
+ 40.40 DEFGHI 1234:--:40 DEFGHI 1234:--:6 :--:6
+ 41.41 yzxyzxyz XY:--:41 yzxyzxyz XY:--:27 no truncati:--:27 no truncati
+ 42.42 456789 1234:--:42 456789 1234:--:28 no trunc :--:28 no trunc
+
+
+-- Date/Time -- x Page 4
+
+
+ 43.43 xyzxyzxyz X:--:43 xyzxyzxyz X:--: :--:
+ 44.44 456789 1234:--:44 456789 1234:--: :--:
+ 45.5 :--:5 :--: :--:
+ 46.6 :--:6 :--: :--:
+ 47.7 :--:7 :--: :--:
+ 48.8 :--:8 :--: :--:
+ 49.9 :--:9 :--: :--:
+ 50.50 :--:50 :--: :--:
+ 51.1 :--:1 :--: :--:
+ 52.2 :--:2 :--: :--:
+ 53.3 :--:3 :--: :--:
+ 54.4 :--:4 :--: :--:
+ 55.55 yzxyzxyz XY:--:55 yzxyzxyz XY:--: :--:
+ 56.56 456789 1234:--:56 456789 1234:--: :--:
+
+
+-- Date/Time -- x Page 5
+
+
+ 57.57 xyzxyzxyz X:--:57 xyzxyzxyz X:--:29 xyzxyzxyz X:--:29 xyzxyzxyz X
+ 58.58 456789 1234:--:58 456789 1234:--:30 456789 1234:--:30 456789 1234
+ 59.9 :--:9 :--:1 :--:1
+ 60.60 DEFGHI 1234:--:60 DEFGHI 1234:--:2 3456789 abcd:--:2 3456789 abcd
+ 61.1 :--:1 :--:3 :--:3
+ 62.2 :--:2 :--:4 :--:4
+ 63.3 ------- EOF:--:3 ------- EOF:--:5 :--:5
+ 64. :--: :--:6 :--:6
+ 65. :--: :--:7 :--:7
+ 66. :--: :--:8 :--:8
+ 67. :--: :--:9 3456789 abcd:--:9 3456789 abcd
+ 68. :--: :--:40 DEFGHI 1234:--:40 DEFGHI 1234
+ 69. :--: :--:41 yzxyzxyz XY:--:41 yzxyzxyz XY
+ 70. :--: :--:42 456789 1234:--:42 456789 1234
+
+
+-- Date/Time -- x Page 6
+
+
+
+
+
+-- Date/Time -- x Page 7
+
+
+
+
+
+-- Date/Time -- x Page 8
+
+
+ 71. :--: :--:43 xyzxyzxyz X:--:43 xyzxyzxyz X
+ 72. :--: :--:44 456789 1234:--:44 456789 1234
+ 73. :--: :--:5 :--:5
+ 74. :--: :--:6 :--:6
+ 75. :--: :--:7 :--:7
+ 76. :--: :--:8 :--:8
+ 77. :--: :--:9 :--:9
+ 78. :--: :--:50 :--:50
+ 79. :--: :--:1 :--:1
+ 80. :--: :--:2 :--:2
+ 81. :--: :--:3 :--:3
+ 82. :--: :--:4 :--:4
+ 83. :--: :--:55 yzxyzxyz XY:--:55 yzxyzxyz XY
+ 84. :--: :--:56 456789 1234:--:56 456789 1234
+
+
+-- Date/Time -- x Page 9
+
+
+ 85. :--: :--:57 xyzxyzxyz X:--:57 xyzxyzxyz X
+ 86. :--: :--:58 456789 1234:--:58 456789 1234
+ 87. :--: :--:9 :--:9
+ 88. :--: :--:60 DEFGHI 1234:--:60 DEFGHI 1234
+ \ No newline at end of file
diff --git a/tests/pr/narrow-1.I b/tests/pr/narrow-1.I
deleted file mode 100644
index e56e15b..0000000
--- a/tests/pr/narrow-1.I
+++ /dev/null
@@ -1 +0,0 @@
-12345
diff --git a/tests/pr/narrow-1.X b/tests/pr/narrow-1.X
deleted file mode 100644
index d00491f..0000000
--- a/tests/pr/narrow-1.X
+++ /dev/null
@@ -1 +0,0 @@
-1
diff --git a/tests/pr/ncut-a.I b/tests/pr/ncut-a.I
deleted file mode 100644
index 57dc54c..0000000
--- a/tests/pr/ncut-a.I
+++ /dev/null
@@ -1,5 +0,0 @@
-y
-y
-y
-y
-y
diff --git a/tests/pr/ncut-a.X b/tests/pr/ncut-a.X
deleted file mode 100644
index 7fef0bd..0000000
--- a/tests/pr/ncut-a.X
+++ /dev/null
@@ -1,5 +0,0 @@
-98 y
-99 y
-00 y
-01 y
-02 y
diff --git a/tests/pr/ncut-b.I b/tests/pr/ncut-b.I
deleted file mode 100644
index 57dc54c..0000000
--- a/tests/pr/ncut-b.I
+++ /dev/null
@@ -1,5 +0,0 @@
-y
-y
-y
-y
-y
diff --git a/tests/pr/ncut-b.X b/tests/pr/ncut-b.X
deleted file mode 100644
index 8365d60..0000000
--- a/tests/pr/ncut-b.X
+++ /dev/null
@@ -1,5 +0,0 @@
-98:y
-99:y
-00:y
-01:y
-02:y
diff --git a/tests/pr/neg-page.I b/tests/pr/neg-page.I
deleted file mode 100644
index e69de29..0000000
--- a/tests/pr/neg-page.I
+++ /dev/null
diff --git a/tests/pr/neg-page.X b/tests/pr/neg-page.X
deleted file mode 100644
index e69de29..0000000
--- a/tests/pr/neg-page.X
+++ /dev/null
diff --git a/tests/pr/nl17f-bl b/tests/pr/nl17f-bl
deleted file mode 100644
index 374cd2d..0000000
--- a/tests/pr/nl17f-bl
+++ /dev/null
@@ -1,111 +0,0 @@
--- Date/Time -- x Page 1
-
-
- 1.1 FF-Test: FF's in Text V
- 2.2 Options -n;
- 3.3 numbering lines with skiped pages;
- 4.4 numbering blanc lines (no. 5,12,13,23,28)
- 5.
- 6.6 3456789 123456789 123456789 123456789 12345678
- 7.7 3 Columns downwards ..., <= 5 lines per page
- 8.8
- 9.9
- 10.10 zzzzzzzzzzzzzzzzzzzzzzzzzz123456789
- 11.1 12345678
- 12.
- 13.
- 14.14 456789 123456789 123456789 123456789
- -- Date/Time -- x Page 2
-
-
-
- -- Date/Time -- x Page 3
-
-
- 15.15 xyzxyzxyz XYZXYZXYZ abcabcab
- 16.16 456789 123456789 xyzxyzxyz XYZXYZXYZ
- 17.7 12345678
- 18.8 12345678
- 19.9 3456789 ab
- 20.20 DEFGHI 123
- 21.1 12345678
- 22.
- 23.
- 24.4 12345678
- 25.5 12345678
- 26.6 12345678
- 27.27 no truncation before FF; (r_l-test):
- 28.
- -- Date/Time -- x Page 4
-
-
-
- -- Date/Time -- x Page 5
-
-
- 29.29 xyzxyzxyz XYZXYZXYZ abcabcab
- 30.30 456789 123456789 xyzxyzxyz XYZXYZXYZ
- 31.1 12345678
- 32.2 3456789 abcdefghi
- 33.3 12345678
- 34.4 12345678
- 35.
- 36.6 12345678
- 37.7 12345678
- 38.8 12345678
- 39.9 3456789 abcdefghi
- 40.40 DEFGHI 123456789
- 41.41 yzxyzxyz XYZXYZXYZ abcabcab
- 42.42 456789 123456789 abcdefghi ABCDEDFHI
- -- Date/Time -- x Page 6
-
-
-
- -- Date/Time -- x Page 7
-
-
-
- -- Date/Time -- x Page 8
-
-
- 43.43 xyzxyzxyz XYZXYZXYZ abcabcab
- 44.44 456789 123456789 xyzxyzxyz XYZXYZXYZ
- 45.5 12345678
- 46.6 12345678
- 47.7 12345678
- 48.8 12345678
- 49.9 12345678
- 50.50 12345678
- 51.1 12345678
- 52.
- 53.
- 54.
- 55.55 yzxyzxyz XYZXYZXYZ abcabcab
- 56.56 456789 123456789 abcdefghi ABCDEDFHI
- -- Date/Time -- x Page 9
-
-
- 57.
- 58.58 456789 123456789 xyzxyzxyz XYZXYZXYZ
- 59.9 12345678
- 60.60 DEFGHI 123456789
- 61.61 yzxyzxyz XYZXYZXYZ abcabcab
- 62.62 456789 123456789 abcdefghi ABCDEDFHI
- 63.63 xyzxyzxyz XYZXYZXYZ abcabcab
- 64.64 456789 123456789 xyzxyzxyz XYZXYZXYZ
- 65.5 12345678
- 66.6 12345678
- 67.7 12345678
- 68.8 12345678
- 69.9 12345678
- 70.70 456789 123456789 abcdefghi ABCDEDFHI
- -- Date/Time -- x Page 10
-
-
- 71.1 12345678
- 72.
- 73.
- 74.
- 75.74 yzxyzxyz XYZXYZXYZ abcabcab
- 76.75 456789 123456789 abcdefghi ABCDEDFHI
- \ No newline at end of file
diff --git a/tests/pr/nl24f-bl b/tests/pr/nl24f-bl
new file mode 100644
index 0000000..5546ad2
--- /dev/null
+++ b/tests/pr/nl24f-bl
@@ -0,0 +1,131 @@
+
+
+-- Date/Time -- x Page 1
+
+
+ 1.1 FF-Test: FF's in Text V
+ 2.2 Options -n;
+ 3.3 numbering lines with skiped pages;
+ 4.4 numbering blanc lines (no. 5,12,13,23,28)
+ 5.
+ 6.6 3456789 123456789 123456789 123456789 12345678
+ 7.7 3 Columns downwards ..., <= 5 lines per page
+ 8.8
+ 9.9
+ 10.10 zzzzzzzzzzzzzzzzzzzzzzzzzz123456789
+ 11.1 12345678
+ 12.
+ 13.
+ 14.14 456789 123456789 123456789 123456789
+
+
+-- Date/Time -- x Page 2
+
+
+
+
+
+-- Date/Time -- x Page 3
+
+
+ 15.15 xyzxyzxyz XYZXYZXYZ abcabcab
+ 16.16 456789 123456789 xyzxyzxyz XYZXYZXYZ
+ 17.7 12345678
+ 18.8 12345678
+ 19.9 3456789 ab
+ 20.20 DEFGHI 123
+ 21.1 12345678
+ 22.
+ 23.
+ 24.4 12345678
+ 25.5 12345678
+ 26.6 12345678
+ 27.27 no truncation before FF; (r_l-test):
+ 28.
+
+
+-- Date/Time -- x Page 4
+
+
+
+
+
+-- Date/Time -- x Page 5
+
+
+ 29.29 xyzxyzxyz XYZXYZXYZ abcabcab
+ 30.30 456789 123456789 xyzxyzxyz XYZXYZXYZ
+ 31.1 12345678
+ 32.2 3456789 abcdefghi
+ 33.3 12345678
+ 34.4 12345678
+ 35.
+ 36.6 12345678
+ 37.7 12345678
+ 38.8 12345678
+ 39.9 3456789 abcdefghi
+ 40.40 DEFGHI 123456789
+ 41.41 yzxyzxyz XYZXYZXYZ abcabcab
+ 42.42 456789 123456789 abcdefghi ABCDEDFHI
+
+
+-- Date/Time -- x Page 6
+
+
+
+
+
+-- Date/Time -- x Page 7
+
+
+
+
+
+-- Date/Time -- x Page 8
+
+
+ 43.43 xyzxyzxyz XYZXYZXYZ abcabcab
+ 44.44 456789 123456789 xyzxyzxyz XYZXYZXYZ
+ 45.5 12345678
+ 46.6 12345678
+ 47.7 12345678
+ 48.8 12345678
+ 49.9 12345678
+ 50.50 12345678
+ 51.1 12345678
+ 52.
+ 53.
+ 54.
+ 55.55 yzxyzxyz XYZXYZXYZ abcabcab
+ 56.56 456789 123456789 abcdefghi ABCDEDFHI
+
+
+-- Date/Time -- x Page 9
+
+
+ 57.
+ 58.58 456789 123456789 xyzxyzxyz XYZXYZXYZ
+ 59.9 12345678
+ 60.60 DEFGHI 123456789
+ 61.61 yzxyzxyz XYZXYZXYZ abcabcab
+ 62.62 456789 123456789 abcdefghi ABCDEDFHI
+ 63.63 xyzxyzxyz XYZXYZXYZ abcabcab
+ 64.64 456789 123456789 xyzxyzxyz XYZXYZXYZ
+ 65.5 12345678
+ 66.6 12345678
+ 67.7 12345678
+ 68.8 12345678
+ 69.9 12345678
+ 70.70 456789 123456789 abcdefghi ABCDEDFHI
+
+
+-- Date/Time -- x Page 10
+
+
+ 71.1 12345678
+ 72.
+ 73.
+ 74.
+ 75.74 yzxyzxyz XYZXYZXYZ abcabcab
+ 76.75 456789 123456789 abcdefghi ABCDEDFHI
+ \ No newline at end of file
diff --git a/tests/pr/o3Jml17f-lm-lo b/tests/pr/o3Jml17f-lm-lo
deleted file mode 100644
index c171988..0000000
--- a/tests/pr/o3Jml17f-lm-lo
+++ /dev/null
@@ -1,118 +0,0 @@
- -- Date/Time -- x Page 1
-
-
- 1<<< -Test: FF's in Text >>> 1::: Test-INPUT: "Without FF set by Hand" :::
- 2<<< -b -3 / -a -3 / ... >>> 2::: Options -b -3 [+2|+3] [-l 15|8] [-f] :::
- 3<<< >>> 3::: Options -a -3 [+2|+3] [-l 15|8] [-f] :::
- 4<<< 123456789 123456789 123456789 12345678 >>> 4::: Options [+2|+3] [-l 24|17] [-f] :::
- 5::: :::
- 6<<< -Arangements: One Empty Page >>> 6::: -------------------------------------------- :::
- 7<<< \f\f\n; text\f\n\ftext; \f\ftext; >>> 7::: 789 123456789 123456789 123456789 123456789 123456789 123456789 1234567890 :::
- 8<<< f\f\n; \f\n\f\n; >>> 8::: 3 Columns downwards, across, ...: :::
- 9<<< >>> 9::: With columns use <= 5 text lines/page, :::
- 10<<< >>> 10::: without -f e.g.: -l 15 = total lines/page, :::
- 1<<< >>> 1::: with -f e.g. : -l 8 -f :::
- 2<<< >>> 2::: :::
- 3<<< truncation before FF; r_r_o_l-test: >>> 3::: line truncation before new page; r_r_o_l-test: :::
- 14<<< 123456789 123456789 123456789 >>> 14::: 89 123456789 123456789 123456789 123456789 123456789 123456789 1234567890 :::
- -- Date/Time -- x Page 2
-
-
- 15::: xyzxyzxyz XYZXYZXYZ abcabcab :::
- 16::: 456789 123456789 xyzxyzxyz XYZXYZXYZ :::
- 7::: 12345678 :::
- 8::: 12345678 :::
- 9::: 3456789 ab :::
- 20::: DEFGHI 123 :::
- 21::: 89 123456789 123456789 123456789 123456789 123456789 123456789 1234567890 :::
- 2::: 12345678 :::
- 3::: 12345678 :::
- 4::: 12345678 :::
- 5::: 12345678 :::
- 6::: 12345678 :::
- 27::: no truncation before nwe page; (r_l-test): :::
- 28::: 89 123456789 123456789 123456789 123456789 123456789 123456789 1234567890 :::
- -- Date/Time -- x Page 3
-
-
- 15<<< xyzxyzxyz XYZXYZXYZ abcabcab >>> 29::: xyzxyzxyz XYZXYZXYZ abcabcab :::
- 16<<< 123456789 xyzxyzxyz XYZXYZXYZ >>> 30::: 456789 123456789 xyzxyzxyz XYZXYZXYZ :::
- 7<<< >>> 1::: 12345678 :::
- 8<<< >>> 2::: 3456789 abcdefghi :::
- 9<<< >>> 3::: 12345678 :::
- 20<<< >>> 4::: 12345678 :::
- 1<<< >>> 35::: 89 123456789 123456789 123456789 123456789 123456789 123456789 1234567890 :::
- 6::: 12345678 :::
- 7::: 12345678 :::
- 4<<< >>> 8::: 12345678 :::
- 5<<< >>> 9::: 3456789 abcdefghi :::
- 6<<< >>> 40::: DEFGHI 123456789 :::
- 27<<< truncation before FF; (r_l-test): >>> 41::: yzxyzxyz XYZXYZXYZ abcabcab :::
- 28<<< trunc 42::: 89 123456789 123456789 123456789 123456789 123456789 123456789 1234567890 :::
- -- Date/Time -- x Page 4
-
-
- 43::: xyzxyzxyz XYZXYZXYZ abcabcab :::
- 44::: 456789 123456789 xyzxyzxyz XYZXYZXYZ :::
- 5::: 12345678 :::
- 6::: 12345678 :::
- 7::: 12345678 :::
- 8::: 12345678 :::
- 49::: 89 123456789 123456789 123456789 123456789 123456789 123456789 1234567890 :::
- 50::: 12345678 :::
- 1::: 12345678 :::
- 2::: 12345678 :::
- 3::: 12345678 :::
- 4::: 12345678 :::
- 55::: yzxyzxyz XYZXYZXYZ abcabcab :::
- 56::: 89 123456789 123456789 123456789 123456789 123456789 123456789 1234567890 :::
- -- Date/Time -- x Page 5
-
-
- 29<<<xyzxyzxyz XYZXYZXYZ abcabcab >>> 57::: xyzxyzxyz XYZXYZXYZ abcabcab :::
- 30<<< 123456789 xyzxyzxyz XYZXYZXYZ >>> 58::: 456789 123456789 xyzxyzxyz XYZXYZXYZ :::
- 1<<< >>> 9::: 12345678 :::
- 2<<< abcdefghi >>> 60::: DEFGHI 123456789 :::
- 3<<< >>> 1::: :::
- 4<<< >>> 2::: :::
- 5<<< >>> 3::: ------- EOF -------- EOF -------- EOF ------- EOF ------- EOF ------- EOF :::
- 6<<< >>>
- 7<<< >>>
- 8<<< >>>
- 9<<< abcdefghi >>>
- 40<<< 123456789 >>>
- 41<<< XYZXYZXYZ abcabcab >>>
- 42<<< 123456789 abcdefghi ABCDEDFHI >>>
- -- Date/Time -- x Page 6
-
-
-
- -- Date/Time -- x Page 7
-
-
-
- -- Date/Time -- x Page 8
-
-
- 43<<< xyzxyzxyz XYZXYZXYZ abcabcab >>>
- 44<<< 123456789 xyzxyzxyz XYZXYZXYZ >>>
- 5<<< >>>
- 6<<< >>>
- 7<<< >>>
- 8<<< >>>
- 9<<< >>>
- 50<<< >>>
- 1<<< >>>
- 2<<< >>>
- 3<<< >>>
- 4<<< >>>
- 55<<< XYZXYZXYZ abcabcab >>>
- 56<<< 123456789 abcdefghi ABCDEDFHI >>>
- -- Date/Time -- x Page 9
-
-
- 57<<< xyzxyzxyz XYZXYZXYZ abcabcab >>>
- 58<<< 123456789 xyzxyzxyz XYZXYZXYZ >>>
- 9<<< >>>
- 60<<< 123456789 >>>
- \ No newline at end of file
diff --git a/tests/pr/o3Jml24f-lm-lo b/tests/pr/o3Jml24f-lm-lo
new file mode 100644
index 0000000..e0aa4a4
--- /dev/null
+++ b/tests/pr/o3Jml24f-lm-lo
@@ -0,0 +1,136 @@
+
+
+ -- Date/Time -- x Page 1
+
+
+ 1<<< -Test: FF's in Text >>> 1::: Test-INPUT: "Without FF set by Hand" :::
+ 2<<< -b -3 / -a -3 / ... >>> 2::: Options -b -3 [+2|+3] [-l 15|8] [-f] :::
+ 3<<< >>> 3::: Options -a -3 [+2|+3] [-l 15|8] [-f] :::
+ 4<<< 123456789 123456789 123456789 12345678 >>> 4::: Options [+2|+3] [-l 24|17] [-f] :::
+ 5::: :::
+ 6<<< -Arangements: One Empty Page >>> 6::: -------------------------------------------- :::
+ 7<<< \f\f\n; text\f\n\ftext; \f\ftext; >>> 7::: 789 123456789 123456789 123456789 123456789 123456789 123456789 1234567890 :::
+ 8<<< f\f\n; \f\n\f\n; >>> 8::: 3 Columns downwards, across, ...: :::
+ 9<<< >>> 9::: With columns use <= 5 text lines/page, :::
+ 10<<< >>> 10::: without -f e.g.: -l 15 = total lines/page, :::
+ 1<<< >>> 1::: with -f e.g. : -l 8 -f :::
+ 2<<< >>> 2::: :::
+ 3<<< truncation before FF; r_r_o_l-test: >>> 3::: line truncation before new page; r_r_o_l-test: :::
+ 14<<< 123456789 123456789 123456789 >>> 14::: 89 123456789 123456789 123456789 123456789 123456789 123456789 1234567890 :::
+
+
+ -- Date/Time -- x Page 2
+
+
+ 15::: xyzxyzxyz XYZXYZXYZ abcabcab :::
+ 16::: 456789 123456789 xyzxyzxyz XYZXYZXYZ :::
+ 7::: 12345678 :::
+ 8::: 12345678 :::
+ 9::: 3456789 ab :::
+ 20::: DEFGHI 123 :::
+ 21::: 89 123456789 123456789 123456789 123456789 123456789 123456789 1234567890 :::
+ 2::: 12345678 :::
+ 3::: 12345678 :::
+ 4::: 12345678 :::
+ 5::: 12345678 :::
+ 6::: 12345678 :::
+ 27::: no truncation before nwe page; (r_l-test): :::
+ 28::: 89 123456789 123456789 123456789 123456789 123456789 123456789 1234567890 :::
+
+
+ -- Date/Time -- x Page 3
+
+
+ 15<<< xyzxyzxyz XYZXYZXYZ abcabcab >>> 29::: xyzxyzxyz XYZXYZXYZ abcabcab :::
+ 16<<< 123456789 xyzxyzxyz XYZXYZXYZ >>> 30::: 456789 123456789 xyzxyzxyz XYZXYZXYZ :::
+ 7<<< >>> 1::: 12345678 :::
+ 8<<< >>> 2::: 3456789 abcdefghi :::
+ 9<<< >>> 3::: 12345678 :::
+ 20<<< >>> 4::: 12345678 :::
+ 1<<< >>> 35::: 89 123456789 123456789 123456789 123456789 123456789 123456789 1234567890 :::
+ 6::: 12345678 :::
+ 7::: 12345678 :::
+ 4<<< >>> 8::: 12345678 :::
+ 5<<< >>> 9::: 3456789 abcdefghi :::
+ 6<<< >>> 40::: DEFGHI 123456789 :::
+ 27<<< truncation before FF; (r_l-test): >>> 41::: yzxyzxyz XYZXYZXYZ abcabcab :::
+ 28<<< trunc 42::: 89 123456789 123456789 123456789 123456789 123456789 123456789 1234567890 :::
+
+
+ -- Date/Time -- x Page 4
+
+
+ 43::: xyzxyzxyz XYZXYZXYZ abcabcab :::
+ 44::: 456789 123456789 xyzxyzxyz XYZXYZXYZ :::
+ 5::: 12345678 :::
+ 6::: 12345678 :::
+ 7::: 12345678 :::
+ 8::: 12345678 :::
+ 49::: 89 123456789 123456789 123456789 123456789 123456789 123456789 1234567890 :::
+ 50::: 12345678 :::
+ 1::: 12345678 :::
+ 2::: 12345678 :::
+ 3::: 12345678 :::
+ 4::: 12345678 :::
+ 55::: yzxyzxyz XYZXYZXYZ abcabcab :::
+ 56::: 89 123456789 123456789 123456789 123456789 123456789 123456789 1234567890 :::
+
+
+ -- Date/Time -- x Page 5
+
+
+ 29<<<xyzxyzxyz XYZXYZXYZ abcabcab >>> 57::: xyzxyzxyz XYZXYZXYZ abcabcab :::
+ 30<<< 123456789 xyzxyzxyz XYZXYZXYZ >>> 58::: 456789 123456789 xyzxyzxyz XYZXYZXYZ :::
+ 1<<< >>> 9::: 12345678 :::
+ 2<<< abcdefghi >>> 60::: DEFGHI 123456789 :::
+ 3<<< >>> 1::: :::
+ 4<<< >>> 2::: :::
+ 5<<< >>> 3::: ------- EOF -------- EOF -------- EOF ------- EOF ------- EOF ------- EOF :::
+ 6<<< >>>
+ 7<<< >>>
+ 8<<< >>>
+ 9<<< abcdefghi >>>
+ 40<<< 123456789 >>>
+ 41<<< XYZXYZXYZ abcabcab >>>
+ 42<<< 123456789 abcdefghi ABCDEDFHI >>>
+
+
+ -- Date/Time -- x Page 6
+
+
+
+
+
+ -- Date/Time -- x Page 7
+
+
+
+
+
+ -- Date/Time -- x Page 8
+
+
+ 43<<< xyzxyzxyz XYZXYZXYZ abcabcab >>>
+ 44<<< 123456789 xyzxyzxyz XYZXYZXYZ >>>
+ 5<<< >>>
+ 6<<< >>>
+ 7<<< >>>
+ 8<<< >>>
+ 9<<< >>>
+ 50<<< >>>
+ 1<<< >>>
+ 2<<< >>>
+ 3<<< >>>
+ 4<<< >>>
+ 55<<< XYZXYZXYZ abcabcab >>>
+ 56<<< 123456789 abcdefghi ABCDEDFHI >>>
+
+
+ -- Date/Time -- x Page 9
+
+
+ 57<<< xyzxyzxyz XYZXYZXYZ abcabcab >>>
+ 58<<< 123456789 xyzxyzxyz XYZXYZXYZ >>>
+ 9<<< >>>
+ 60<<< 123456789 >>>
+ \ No newline at end of file
diff --git a/tests/pr/o3a3Sl17f-tn b/tests/pr/o3a3Sl17f-tn
deleted file mode 100644
index 586ed55..0000000
--- a/tests/pr/o3a3Sl17f-tn
+++ /dev/null
@@ -1,28 +0,0 @@
- -- Date/Time -- x Page 1
-
-
- 1 Test-INPUT: "With:--:2 Options -b -3 [+2:--:3 Options -a -3 [+2
- 4 Options [+2:--:5 :--:6 -----------------
- 7 3456789 123456789 1:--:8 3 Columns downwar:--:9 With columns use
- 10 without -f e.g.: :--:1 with -f e.g. : :--:2
- 3 line truncation bef:--:14 456789 123456789 1:--:15 xyzxyzxyz XYZXYZXY
- 16 456789 123456789 x:--:7 :--:8
- 9 3456789 ab :--:20 DEFGHI 123 :--:1
- 2 :--:3 :--:4
- 5 :--:6 :--:27 no truncation befo
- 28 no trunc :--:29 xyzxyzxyz XYZXYZXY:--:30 456789 123456789 x
- 1 :--:2 3456789 abcdefghi :--:3
- 4 :--:5 :--:6
- 7 :--:8 :--:9 3456789 abcdefghi
- 40 DEFGHI 123456789 :--:41 yzxyzxyz XYZXYZXYZ:--:42 456789 123456789 a
- -- Date/Time -- x Page 2
-
-
- 43 xyzxyzxyz XYZXYZXY:--:44 456789 123456789 x:--:5
- 6 :--:7 :--:8
- 9 :--:50 :--:1
- 2 :--:3 :--:4
- 55 yzxyzxyz XYZXYZXYZ:--:56 456789 123456789 a:--:57 xyzxyzxyz XYZXYZXY
- 58 456789 123456789 x:--:9 :--:60 DEFGHI 123456789
- 1 :--:2 :--:3 ------- EOF ------
- \ No newline at end of file
diff --git a/tests/pr/o3a3Sl24f-tn b/tests/pr/o3a3Sl24f-tn
new file mode 100644
index 0000000..0064f2f
--- /dev/null
+++ b/tests/pr/o3a3Sl24f-tn
@@ -0,0 +1,32 @@
+
+
+ -- Date/Time -- x Page 1
+
+
+ 1 Test-INPUT: "With:--:2 Options -b -3 [+2:--:3 Options -a -3 [+2
+ 4 Options [+2:--:5 :--:6 -----------------
+ 7 3456789 123456789 1:--:8 3 Columns downwar:--:9 With columns use
+ 10 without -f e.g.: :--:1 with -f e.g. : :--:2
+ 3 line truncation bef:--:14 456789 123456789 1:--:15 xyzxyzxyz XYZXYZXY
+ 16 456789 123456789 x:--:7 :--:8
+ 9 3456789 ab :--:20 DEFGHI 123 :--:1
+ 2 :--:3 :--:4
+ 5 :--:6 :--:27 no truncation befo
+ 28 no trunc :--:29 xyzxyzxyz XYZXYZXY:--:30 456789 123456789 x
+ 1 :--:2 3456789 abcdefghi :--:3
+ 4 :--:5 :--:6
+ 7 :--:8 :--:9 3456789 abcdefghi
+ 40 DEFGHI 123456789 :--:41 yzxyzxyz XYZXYZXYZ:--:42 456789 123456789 a
+
+
+ -- Date/Time -- x Page 2
+
+
+ 43 xyzxyzxyz XYZXYZXY:--:44 456789 123456789 x:--:5
+ 6 :--:7 :--:8
+ 9 :--:50 :--:1
+ 2 :--:3 :--:4
+ 55 yzxyzxyz XYZXYZXYZ:--:56 456789 123456789 a:--:57 xyzxyzxyz XYZXYZXY
+ 58 456789 123456789 x:--:9 :--:60 DEFGHI 123456789
+ 1 :--:2 :--:3 ------- EOF ------
+ \ No newline at end of file
diff --git a/tests/pr/o3a3Snl17f-tn b/tests/pr/o3a3Snl17f-tn
deleted file mode 100644
index cc437ad..0000000
--- a/tests/pr/o3a3Snl17f-tn
+++ /dev/null
@@ -1,28 +0,0 @@
- -- Date/Time -- x Page 1
-
-
- 1.1 Test-INPUT::--: 2.2 Options -b :--: 3.3 Options -a
- 4.4 Options :--: 5.5 :--: 6.6 -----------
- 7.7 3456789 12345:--: 8.8 3 Columns d:--: 9.9 With column
- 10.10 without -f :--: 11.1 with -f e.g:--: 12.2
- 13.3 line truncati:--: 14.14 456789 12345:--: 15.15 xyzxyzxyz XY
- 16.16 456789 12345:--: 17.7 :--: 18.8
- 19.9 3456789 ab :--: 20.20 DEFGHI 123 :--: 21.1
- 22.2 :--: 23.3 :--: 24.4
- 25.5 :--: 26.6 :--: 27.27 no truncatio
- 28.28 no trunc :--: 29.29 xyzxyzxyz XY:--: 30.30 456789 12345
- 31.1 :--: 32.2 3456789 abcde:--: 33.3
- 34.4 :--: 35.5 :--: 36.6
- 37.7 :--: 38.8 :--: 39.9 3456789 abcde
- 40.40 DEFGHI 12345:--: 41.41 yzxyzxyz XYZ:--: 42.42 456789 12345
- -- Date/Time -- x Page 2
-
-
- 43.43 xyzxyzxyz XY:--: 44.44 456789 12345:--: 45.5
- 46.6 :--: 47.7 :--: 48.8
- 49.9 :--: 50.50 :--: 51.1
- 52.2 :--: 53.3 :--: 54.4
- 55.55 yzxyzxyz XYZ:--: 56.56 456789 12345:--: 57.57 xyzxyzxyz XY
- 58.58 456789 12345:--: 59.9 :--: 60.60 DEFGHI 12345
- 61.1 :--: 62.2 :--: 63.3 ------- EOF
- \ No newline at end of file
diff --git a/tests/pr/o3a3Snl24f-tn b/tests/pr/o3a3Snl24f-tn
new file mode 100644
index 0000000..5a8f263
--- /dev/null
+++ b/tests/pr/o3a3Snl24f-tn
@@ -0,0 +1,32 @@
+
+
+ -- Date/Time -- x Page 1
+
+
+ 1.1 Test-INPUT::--: 2.2 Options -b :--: 3.3 Options -a
+ 4.4 Options :--: 5.5 :--: 6.6 -----------
+ 7.7 3456789 12345:--: 8.8 3 Columns d:--: 9.9 With column
+ 10.10 without -f :--: 11.1 with -f e.g:--: 12.2
+ 13.3 line truncati:--: 14.14 456789 12345:--: 15.15 xyzxyzxyz XY
+ 16.16 456789 12345:--: 17.7 :--: 18.8
+ 19.9 3456789 ab :--: 20.20 DEFGHI 123 :--: 21.1
+ 22.2 :--: 23.3 :--: 24.4
+ 25.5 :--: 26.6 :--: 27.27 no truncatio
+ 28.28 no trunc :--: 29.29 xyzxyzxyz XY:--: 30.30 456789 12345
+ 31.1 :--: 32.2 3456789 abcde:--: 33.3
+ 34.4 :--: 35.5 :--: 36.6
+ 37.7 :--: 38.8 :--: 39.9 3456789 abcde
+ 40.40 DEFGHI 12345:--: 41.41 yzxyzxyz XYZ:--: 42.42 456789 12345
+
+
+ -- Date/Time -- x Page 2
+
+
+ 43.43 xyzxyzxyz XY:--: 44.44 456789 12345:--: 45.5
+ 46.6 :--: 47.7 :--: 48.8
+ 49.9 :--: 50.50 :--: 51.1
+ 52.2 :--: 53.3 :--: 54.4
+ 55.55 yzxyzxyz XYZ:--: 56.56 456789 12345:--: 57.57 xyzxyzxyz XY
+ 58.58 456789 12345:--: 59.9 :--: 60.60 DEFGHI 12345
+ 61.1 :--: 62.2 :--: 63.3 ------- EOF
+ \ No newline at end of file
diff --git a/tests/pr/o3a3l17f-tn b/tests/pr/o3a3l17f-tn
deleted file mode 100644
index 7991b6f..0000000
--- a/tests/pr/o3a3l17f-tn
+++ /dev/null
@@ -1,28 +0,0 @@
- -- Date/Time -- x Page 1
-
-
- 1 Test-INPUT: "Withou 2 Options -b -3 [+2|+ 3 Options -a -3 [+2|+
- 4 Options [+2|+ 5 6 -------------------
- 7 3456789 123456789 123 8 3 Columns downwards 9 With columns use <
- 10 without -f e.g.: - 1 with -f e.g. : - 2
- 3 line truncation befor 14 456789 123456789 123 15 xyzxyzxyz XYZXYZXYZ
- 16 456789 123456789 xyz 7 8
- 9 3456789 ab 20 DEFGHI 123 1
- 2 3 4
- 5 6 27 no truncation before
- 28 no trunc 29 xyzxyzxyz XYZXYZXYZ 30 456789 123456789 xyz
- 1 2 3456789 abcdefghi 3
- 4 5 6
- 7 8 9 3456789 abcdefghi
- 40 DEFGHI 123456789 41 yzxyzxyz XYZXYZXYZ a 42 456789 123456789 abc
- -- Date/Time -- x Page 2
-
-
- 43 xyzxyzxyz XYZXYZXYZ 44 456789 123456789 xyz 5
- 6 7 8
- 9 50 1
- 2 3 4
- 55 yzxyzxyz XYZXYZXYZ a 56 456789 123456789 abc 57 xyzxyzxyz XYZXYZXYZ
- 58 456789 123456789 xyz 9 60 DEFGHI 123456789
- 1 2 3 ------- EOF --------
- \ No newline at end of file
diff --git a/tests/pr/o3a3l24f-tn b/tests/pr/o3a3l24f-tn
new file mode 100644
index 0000000..9adbe67
--- /dev/null
+++ b/tests/pr/o3a3l24f-tn
@@ -0,0 +1,32 @@
+
+
+ -- Date/Time -- x Page 1
+
+
+ 1 Test-INPUT: "Withou 2 Options -b -3 [+2|+ 3 Options -a -3 [+2|+
+ 4 Options [+2|+ 5 6 -------------------
+ 7 3456789 123456789 123 8 3 Columns downwards 9 With columns use <
+ 10 without -f e.g.: - 1 with -f e.g. : - 2
+ 3 line truncation befor 14 456789 123456789 123 15 xyzxyzxyz XYZXYZXYZ
+ 16 456789 123456789 xyz 7 8
+ 9 3456789 ab 20 DEFGHI 123 1
+ 2 3 4
+ 5 6 27 no truncation before
+ 28 no trunc 29 xyzxyzxyz XYZXYZXYZ 30 456789 123456789 xyz
+ 1 2 3456789 abcdefghi 3
+ 4 5 6
+ 7 8 9 3456789 abcdefghi
+ 40 DEFGHI 123456789 41 yzxyzxyz XYZXYZXYZ a 42 456789 123456789 abc
+
+
+ -- Date/Time -- x Page 2
+
+
+ 43 xyzxyzxyz XYZXYZXYZ 44 456789 123456789 xyz 5
+ 6 7 8
+ 9 50 1
+ 2 3 4
+ 55 yzxyzxyz XYZXYZXYZ a 56 456789 123456789 abc 57 xyzxyzxyz XYZXYZXYZ
+ 58 456789 123456789 xyz 9 60 DEFGHI 123456789
+ 1 2 3 ------- EOF --------
+ \ No newline at end of file
diff --git a/tests/pr/o3b3Sl17f-tn b/tests/pr/o3b3Sl17f-tn
deleted file mode 100644
index aa103ae..0000000
--- a/tests/pr/o3b3Sl17f-tn
+++ /dev/null
@@ -1,28 +0,0 @@
- -- Date/Time -- x Page 1
-
-
- 1 Test-INPUT: "With:--:15 xyzxyzxyz XYZXYZXY:--:29 xyzxyzxyz XYZXYZXY
- 2 Options -b -3 [+2:--:16 456789 123456789 x:--:30 456789 123456789 x
- 3 Options -a -3 [+2:--:7 :--:1
- 4 Options [+2:--:8 :--:2 3456789 abcdefghi
- 5 :--:9 3456789 ab :--:3
- 6 -----------------:--:20 DEFGHI 123 :--:4
- 7 3456789 123456789 1:--:1 :--:5
- 8 3 Columns downwar:--:2 :--:6
- 9 With columns use :--:3 :--:7
- 10 without -f e.g.: :--:4 :--:8
- 1 with -f e.g. : :--:5 :--:9 3456789 abcdefghi
- 2 :--:6 :--:40 DEFGHI 123456789
- 3 line truncation bef:--:27 no truncation befo:--:41 yzxyzxyz XYZXYZXYZ
- 14 456789 123456789 1:--:28 no trunc :--:42 456789 123456789 a
- -- Date/Time -- x Page 2
-
-
- 43 xyzxyzxyz XYZXYZXY:--:50 :--:57 xyzxyzxyz XYZXYZXY
- 44 456789 123456789 x:--:1 :--:58 456789 123456789 x
- 5 :--:2 :--:9
- 6 :--:3 :--:60 DEFGHI 123456789
- 7 :--:4 :--:1
- 8 :--:55 yzxyzxyz XYZXYZXYZ:--:2
- 9 :--:56 456789 123456789 a:--:3 ------- EOF ------
- \ No newline at end of file
diff --git a/tests/pr/o3b3Sl24f-tn b/tests/pr/o3b3Sl24f-tn
new file mode 100644
index 0000000..2e11983
--- /dev/null
+++ b/tests/pr/o3b3Sl24f-tn
@@ -0,0 +1,32 @@
+
+
+ -- Date/Time -- x Page 1
+
+
+ 1 Test-INPUT: "With:--:15 xyzxyzxyz XYZXYZXY:--:29 xyzxyzxyz XYZXYZXY
+ 2 Options -b -3 [+2:--:16 456789 123456789 x:--:30 456789 123456789 x
+ 3 Options -a -3 [+2:--:7 :--:1
+ 4 Options [+2:--:8 :--:2 3456789 abcdefghi
+ 5 :--:9 3456789 ab :--:3
+ 6 -----------------:--:20 DEFGHI 123 :--:4
+ 7 3456789 123456789 1:--:1 :--:5
+ 8 3 Columns downwar:--:2 :--:6
+ 9 With columns use :--:3 :--:7
+ 10 without -f e.g.: :--:4 :--:8
+ 1 with -f e.g. : :--:5 :--:9 3456789 abcdefghi
+ 2 :--:6 :--:40 DEFGHI 123456789
+ 3 line truncation bef:--:27 no truncation befo:--:41 yzxyzxyz XYZXYZXYZ
+ 14 456789 123456789 1:--:28 no trunc :--:42 456789 123456789 a
+
+
+ -- Date/Time -- x Page 2
+
+
+ 43 xyzxyzxyz XYZXYZXY:--:50 :--:57 xyzxyzxyz XYZXYZXY
+ 44 456789 123456789 x:--:1 :--:58 456789 123456789 x
+ 5 :--:2 :--:9
+ 6 :--:3 :--:60 DEFGHI 123456789
+ 7 :--:4 :--:1
+ 8 :--:55 yzxyzxyz XYZXYZXYZ:--:2
+ 9 :--:56 456789 123456789 a:--:3 ------- EOF ------
+ \ No newline at end of file
diff --git a/tests/pr/o3b3Snl17f-tn b/tests/pr/o3b3Snl17f-tn
deleted file mode 100644
index 09c1917..0000000
--- a/tests/pr/o3b3Snl17f-tn
+++ /dev/null
@@ -1,28 +0,0 @@
- -- Date/Time -- x Page 1
-
-
- 1.1 Test-INPUT::--: 15.15 xyzxyzxyz XY:--: 29.29 xyzxyzxyz XY
- 2.2 Options -b :--: 16.16 456789 12345:--: 30.30 456789 12345
- 3.3 Options -a :--: 17.7 :--: 31.1
- 4.4 Options :--: 18.8 :--: 32.2 3456789 abcde
- 5.5 :--: 19.9 3456789 ab :--: 33.3
- 6.6 -----------:--: 20.20 DEFGHI 123 :--: 34.4
- 7.7 3456789 12345:--: 21.1 :--: 35.5
- 8.8 3 Columns d:--: 22.2 :--: 36.6
- 9.9 With column:--: 23.3 :--: 37.7
- 10.10 without -f :--: 24.4 :--: 38.8
- 11.1 with -f e.g:--: 25.5 :--: 39.9 3456789 abcde
- 12.2 :--: 26.6 :--: 40.40 DEFGHI 12345
- 13.3 line truncati:--: 27.27 no truncatio:--: 41.41 yzxyzxyz XYZ
- 14.14 456789 12345:--: 28.28 no trunc :--: 42.42 456789 12345
- -- Date/Time -- x Page 2
-
-
- 43.43 xyzxyzxyz XY:--: 50.50 :--: 57.57 xyzxyzxyz XY
- 44.44 456789 12345:--: 51.1 :--: 58.58 456789 12345
- 45.5 :--: 52.2 :--: 59.9
- 46.6 :--: 53.3 :--: 60.60 DEFGHI 12345
- 47.7 :--: 54.4 :--: 61.1
- 48.8 :--: 55.55 yzxyzxyz XYZ:--: 62.2
- 49.9 :--: 56.56 456789 12345:--: 63.3 ------- EOF
- \ No newline at end of file
diff --git a/tests/pr/o3b3Snl24f-tn b/tests/pr/o3b3Snl24f-tn
new file mode 100644
index 0000000..1b945fe
--- /dev/null
+++ b/tests/pr/o3b3Snl24f-tn
@@ -0,0 +1,32 @@
+
+
+ -- Date/Time -- x Page 1
+
+
+ 1.1 Test-INPUT::--: 15.15 xyzxyzxyz XY:--: 29.29 xyzxyzxyz XY
+ 2.2 Options -b :--: 16.16 456789 12345:--: 30.30 456789 12345
+ 3.3 Options -a :--: 17.7 :--: 31.1
+ 4.4 Options :--: 18.8 :--: 32.2 3456789 abcde
+ 5.5 :--: 19.9 3456789 ab :--: 33.3
+ 6.6 -----------:--: 20.20 DEFGHI 123 :--: 34.4
+ 7.7 3456789 12345:--: 21.1 :--: 35.5
+ 8.8 3 Columns d:--: 22.2 :--: 36.6
+ 9.9 With column:--: 23.3 :--: 37.7
+ 10.10 without -f :--: 24.4 :--: 38.8
+ 11.1 with -f e.g:--: 25.5 :--: 39.9 3456789 abcde
+ 12.2 :--: 26.6 :--: 40.40 DEFGHI 12345
+ 13.3 line truncati:--: 27.27 no truncatio:--: 41.41 yzxyzxyz XYZ
+ 14.14 456789 12345:--: 28.28 no trunc :--: 42.42 456789 12345
+
+
+ -- Date/Time -- x Page 2
+
+
+ 43.43 xyzxyzxyz XY:--: 50.50 :--: 57.57 xyzxyzxyz XY
+ 44.44 456789 12345:--: 51.1 :--: 58.58 456789 12345
+ 45.5 :--: 52.2 :--: 59.9
+ 46.6 :--: 53.3 :--: 60.60 DEFGHI 12345
+ 47.7 :--: 54.4 :--: 61.1
+ 48.8 :--: 55.55 yzxyzxyz XYZ:--: 62.2
+ 49.9 :--: 56.56 456789 12345:--: 63.3 ------- EOF
+ \ No newline at end of file
diff --git a/tests/pr/o3b3l17f-tn b/tests/pr/o3b3l17f-tn
deleted file mode 100644
index 61b690d..0000000
--- a/tests/pr/o3b3l17f-tn
+++ /dev/null
@@ -1,28 +0,0 @@
- -- Date/Time -- x Page 1
-
-
- 1 Test-INPUT: "Withou 15 xyzxyzxyz XYZXYZXYZ 29 xyzxyzxyz XYZXYZXYZ
- 2 Options -b -3 [+2|+ 16 456789 123456789 xyz 30 456789 123456789 xyz
- 3 Options -a -3 [+2|+ 7 1
- 4 Options [+2|+ 8 2 3456789 abcdefghi
- 5 9 3456789 ab 3
- 6 ------------------- 20 DEFGHI 123 4
- 7 3456789 123456789 123 1 5
- 8 3 Columns downwards 2 6
- 9 With columns use < 3 7
- 10 without -f e.g.: - 4 8
- 1 with -f e.g. : - 5 9 3456789 abcdefghi
- 2 6 40 DEFGHI 123456789
- 3 line truncation befor 27 no truncation before 41 yzxyzxyz XYZXYZXYZ a
- 14 456789 123456789 123 28 no trunc 42 456789 123456789 abc
- -- Date/Time -- x Page 2
-
-
- 43 xyzxyzxyz XYZXYZXYZ 50 57 xyzxyzxyz XYZXYZXYZ
- 44 456789 123456789 xyz 1 58 456789 123456789 xyz
- 5 2 9
- 6 3 60 DEFGHI 123456789
- 7 4 1
- 8 55 yzxyzxyz XYZXYZXYZ a 2
- 9 56 456789 123456789 abc 3 ------- EOF --------
- \ No newline at end of file
diff --git a/tests/pr/o3b3l24f-tn b/tests/pr/o3b3l24f-tn
new file mode 100644
index 0000000..0d237bb
--- /dev/null
+++ b/tests/pr/o3b3l24f-tn
@@ -0,0 +1,32 @@
+
+
+ -- Date/Time -- x Page 1
+
+
+ 1 Test-INPUT: "Withou 15 xyzxyzxyz XYZXYZXYZ 29 xyzxyzxyz XYZXYZXYZ
+ 2 Options -b -3 [+2|+ 16 456789 123456789 xyz 30 456789 123456789 xyz
+ 3 Options -a -3 [+2|+ 7 1
+ 4 Options [+2|+ 8 2 3456789 abcdefghi
+ 5 9 3456789 ab 3
+ 6 ------------------- 20 DEFGHI 123 4
+ 7 3456789 123456789 123 1 5
+ 8 3 Columns downwards 2 6
+ 9 With columns use < 3 7
+ 10 without -f e.g.: - 4 8
+ 1 with -f e.g. : - 5 9 3456789 abcdefghi
+ 2 6 40 DEFGHI 123456789
+ 3 line truncation befor 27 no truncation before 41 yzxyzxyz XYZXYZXYZ a
+ 14 456789 123456789 123 28 no trunc 42 456789 123456789 abc
+
+
+ -- Date/Time -- x Page 2
+
+
+ 43 xyzxyzxyz XYZXYZXYZ 50 57 xyzxyzxyz XYZXYZXYZ
+ 44 456789 123456789 xyz 1 58 456789 123456789 xyz
+ 5 2 9
+ 6 3 60 DEFGHI 123456789
+ 7 4 1
+ 8 55 yzxyzxyz XYZXYZXYZ a 2
+ 9 56 456789 123456789 abc 3 ------- EOF --------
+ \ No newline at end of file
diff --git a/tests/pr/o3mSl17f-bl-tn b/tests/pr/o3mSl17f-bl-tn
deleted file mode 100644
index 2e2d8df..0000000
--- a/tests/pr/o3mSl17f-bl-tn
+++ /dev/null
@@ -1,137 +0,0 @@
- -- Date/Time -- x Page 1
-
-
- 1 FF-Test: FF's in Text :--:1 Test-INPUT: "Without FF set by
- 2 Options -n; :--:2 Options -b -3 [+2|+3] [-l 15|8
- 3 numbering lines with skiped pa:--:3 Options -a -3 [+2|+3] [-l 15|8
- 4 numbering blanc lines (no. 5,1:--:4 Options [+2|+3] [-l 24|1
- :--:5
- 6 3456789 123456789 123456789 1234:--:6 ------------------------------
- 7 3 Columns downwards ..., <= 5 :--:7 3456789 123456789 123456789 1234
- 8 :--:8 3 Columns downwards, across, .
- 9 :--:9 With columns use <= 5 text li
- 10 zzzzzzzzzzzzzzzzzzzzzzzzzz1234:--:10 without -f e.g.: -l 15 = tota
- 1 :--:1 with -f e.g. : -l 8 -f
- :--:2
- :--:3 line truncation before new page;
- 14 456789 123456789 123456789 1234:--:14 456789 123456789 123456789 1234
- -- Date/Time -- x Page 2
-
-
- :--:15 xyzxyzxyz XYZXYZXYZ abcabcab
- :--:16 456789 123456789 xyzxyzxyz XYZX
- :--:7
- :--:8
- :--:9 3456789 ab
- :--:20 DEFGHI 123
- :--:1
- :--:2
- :--:3
- :--:4
- :--:5
- :--:6
- :--:27 no truncation before nwe page;
- :--:28 no trunc
- -- Date/Time -- x Page 3
-
-
- 15 xyzxyzxyz XYZXYZXYZ abcabcab :--:29 xyzxyzxyz XYZXYZXYZ abcabcab
- 16 456789 123456789 xyzxyzxyz XYZX:--:30 456789 123456789 xyzxyzxyz XYZX
- 7 :--:1
- 8 :--:2 3456789 abcdefghi
- 9 3456789 ab :--:3
- 20 DEFGHI 123 :--:4
- 1 :--:5
- :--:6
- :--:7
- 4 :--:8
- 5 :--:9 3456789 abcdefghi
- 6 :--:40 DEFGHI 123456789
- 27 no truncation before FF; (r_l-t:--:41 yzxyzxyz XYZXYZXYZ abcabcab
- :--:42 456789 123456789 abcdefghi ABCD
- -- Date/Time -- x Page 4
-
-
- :--:43 xyzxyzxyz XYZXYZXYZ abcabcab
- :--:44 456789 123456789 xyzxyzxyz XYZX
- :--:5
- :--:6
- :--:7
- :--:8
- :--:9
- :--:50
- :--:1
- :--:2
- :--:3
- :--:4
- :--:55 yzxyzxyz XYZXYZXYZ abcabcab
- :--:56 456789 123456789 abcdefghi ABCD
- -- Date/Time -- x Page 5
-
-
- 29 xyzxyzxyz XYZXYZXYZ abcabcab :--:57 xyzxyzxyz XYZXYZXYZ abcabcab
- 30 456789 123456789 xyzxyzxyz XYZX:--:58 456789 123456789 xyzxyzxyz XYZX
- 1 :--:9
- 2 3456789 abcdefghi :--:60 DEFGHI 123456789
- 3 :--:1
- 4 :--:2
- :--:3 ------- EOF -------- EOF ------
- 6 :--:
- 7 :--:
- 8 :--:
- 9 3456789 abcdefghi :--:
- 40 DEFGHI 123456789 :--:
- 41 yzxyzxyz XYZXYZXYZ abcabcab :--:
- 42 456789 123456789 abcdefghi ABCD
- -- Date/Time -- x Page 6
-
-
-
- -- Date/Time -- x Page 7
-
-
-
- -- Date/Time -- x Page 8
-
-
- 43 xyzxyzxyz XYZXYZXYZ abcabcab :--:
- 44 456789 123456789 xyzxyzxyz XYZX:--:
- 5 :--:
- 6 :--:
- 7 :--:
- 8 :--:
- 9 :--:
- 50 :--:
- 1 :--:
- :--:
- :--:
- :--:
- 55 yzxyzxyz XYZXYZXYZ abcabcab :--:
- 56 456789 123456789 abcdefghi ABCD
- -- Date/Time -- x Page 9
-
-
- :--:
- 58 456789 123456789 xyzxyzxyz XYZX:--:
- 9 :--:
- 60 DEFGHI 123456789 :--:
- 61 yzxyzxyz XYZXYZXYZ abcabcab :--:
- 62 456789 123456789 abcdefghi ABCD:--:
- 63 xyzxyzxyz XYZXYZXYZ abcabcab :--:
- 64 456789 123456789 xyzxyzxyz XYZX:--:
- 5 :--:
- 6 :--:
- 7 :--:
- 8 :--:
- 9 :--:
- 70 456789 123456789 abcdefghi ABC:--:
- -- Date/Time -- x Page 10
-
-
- 1 :--:
- :--:
- :--:
- :--:
- 74 yzxyzxyz XYZXYZXYZ abcabcab :--:
- 75 456789 123456789 abcdefghi ABCD
- \ No newline at end of file
diff --git a/tests/pr/o3mSl24f-bl-tn b/tests/pr/o3mSl24f-bl-tn
new file mode 100644
index 0000000..c90a2b4
--- /dev/null
+++ b/tests/pr/o3mSl24f-bl-tn
@@ -0,0 +1,157 @@
+
+
+ -- Date/Time -- x Page 1
+
+
+ 1 FF-Test: FF's in Text :--:1 Test-INPUT: "Without FF set by
+ 2 Options -n; :--:2 Options -b -3 [+2|+3] [-l 15|8
+ 3 numbering lines with skiped pa:--:3 Options -a -3 [+2|+3] [-l 15|8
+ 4 numbering blanc lines (no. 5,1:--:4 Options [+2|+3] [-l 24|1
+ :--:5
+ 6 3456789 123456789 123456789 1234:--:6 ------------------------------
+ 7 3 Columns downwards ..., <= 5 :--:7 3456789 123456789 123456789 1234
+ 8 :--:8 3 Columns downwards, across, .
+ 9 :--:9 With columns use <= 5 text li
+ 10 zzzzzzzzzzzzzzzzzzzzzzzzzz1234:--:10 without -f e.g.: -l 15 = tota
+ 1 :--:1 with -f e.g. : -l 8 -f
+ :--:2
+ :--:3 line truncation before new page;
+ 14 456789 123456789 123456789 1234:--:14 456789 123456789 123456789 1234
+
+
+ -- Date/Time -- x Page 2
+
+
+ :--:15 xyzxyzxyz XYZXYZXYZ abcabcab
+ :--:16 456789 123456789 xyzxyzxyz XYZX
+ :--:7
+ :--:8
+ :--:9 3456789 ab
+ :--:20 DEFGHI 123
+ :--:1
+ :--:2
+ :--:3
+ :--:4
+ :--:5
+ :--:6
+ :--:27 no truncation before nwe page;
+ :--:28 no trunc
+
+
+ -- Date/Time -- x Page 3
+
+
+ 15 xyzxyzxyz XYZXYZXYZ abcabcab :--:29 xyzxyzxyz XYZXYZXYZ abcabcab
+ 16 456789 123456789 xyzxyzxyz XYZX:--:30 456789 123456789 xyzxyzxyz XYZX
+ 7 :--:1
+ 8 :--:2 3456789 abcdefghi
+ 9 3456789 ab :--:3
+ 20 DEFGHI 123 :--:4
+ 1 :--:5
+ :--:6
+ :--:7
+ 4 :--:8
+ 5 :--:9 3456789 abcdefghi
+ 6 :--:40 DEFGHI 123456789
+ 27 no truncation before FF; (r_l-t:--:41 yzxyzxyz XYZXYZXYZ abcabcab
+ :--:42 456789 123456789 abcdefghi ABCD
+
+
+ -- Date/Time -- x Page 4
+
+
+ :--:43 xyzxyzxyz XYZXYZXYZ abcabcab
+ :--:44 456789 123456789 xyzxyzxyz XYZX
+ :--:5
+ :--:6
+ :--:7
+ :--:8
+ :--:9
+ :--:50
+ :--:1
+ :--:2
+ :--:3
+ :--:4
+ :--:55 yzxyzxyz XYZXYZXYZ abcabcab
+ :--:56 456789 123456789 abcdefghi ABCD
+
+
+ -- Date/Time -- x Page 5
+
+
+ 29 xyzxyzxyz XYZXYZXYZ abcabcab :--:57 xyzxyzxyz XYZXYZXYZ abcabcab
+ 30 456789 123456789 xyzxyzxyz XYZX:--:58 456789 123456789 xyzxyzxyz XYZX
+ 1 :--:9
+ 2 3456789 abcdefghi :--:60 DEFGHI 123456789
+ 3 :--:1
+ 4 :--:2
+ :--:3 ------- EOF -------- EOF ------
+ 6 :--:
+ 7 :--:
+ 8 :--:
+ 9 3456789 abcdefghi :--:
+ 40 DEFGHI 123456789 :--:
+ 41 yzxyzxyz XYZXYZXYZ abcabcab :--:
+ 42 456789 123456789 abcdefghi ABCD
+
+
+ -- Date/Time -- x Page 6
+
+
+
+
+
+ -- Date/Time -- x Page 7
+
+
+
+
+
+ -- Date/Time -- x Page 8
+
+
+ 43 xyzxyzxyz XYZXYZXYZ abcabcab :--:
+ 44 456789 123456789 xyzxyzxyz XYZX:--:
+ 5 :--:
+ 6 :--:
+ 7 :--:
+ 8 :--:
+ 9 :--:
+ 50 :--:
+ 1 :--:
+ :--:
+ :--:
+ :--:
+ 55 yzxyzxyz XYZXYZXYZ abcabcab :--:
+ 56 456789 123456789 abcdefghi ABCD
+
+
+ -- Date/Time -- x Page 9
+
+
+ :--:
+ 58 456789 123456789 xyzxyzxyz XYZX:--:
+ 9 :--:
+ 60 DEFGHI 123456789 :--:
+ 61 yzxyzxyz XYZXYZXYZ abcabcab :--:
+ 62 456789 123456789 abcdefghi ABCD:--:
+ 63 xyzxyzxyz XYZXYZXYZ abcabcab :--:
+ 64 456789 123456789 xyzxyzxyz XYZX:--:
+ 5 :--:
+ 6 :--:
+ 7 :--:
+ 8 :--:
+ 9 :--:
+ 70 456789 123456789 abcdefghi ABC:--:
+
+
+ -- Date/Time -- x Page 10
+
+
+ 1 :--:
+ :--:
+ :--:
+ :--:
+ 74 yzxyzxyz XYZXYZXYZ abcabcab :--:
+ 75 456789 123456789 abcdefghi ABCD
+ \ No newline at end of file
diff --git a/tests/pr/o3mSnl17fbltn b/tests/pr/o3mSnl17fbltn
deleted file mode 100644
index 8148bb2..0000000
--- a/tests/pr/o3mSnl17fbltn
+++ /dev/null
@@ -1,137 +0,0 @@
- -- Date/Time -- x Page 1
-
-
- 1.1 FF-Test: FF's in Text :--:1 Test-INPUT: "Without FF set
- 2.2 Options -n; :--:2 Options -b -3 [+2|+3] [-l 1
- 3.3 numbering lines with skiped:--:3 Options -a -3 [+2|+3] [-l 1
- 4.4 numbering blanc lines (no. :--:4 Options [+2|+3] [-l 2
- 5. :--:5
- 6.6 3456789 123456789 123456789 1:--:6 ---------------------------
- 7.7 3 Columns downwards ..., <=:--:7 3456789 123456789 123456789 1
- 8.8 :--:8 3 Columns downwards, across
- 9.9 :--:9 With columns use <= 5 text
- 10.10 zzzzzzzzzzzzzzzzzzzzzzzzzz1:--:10 without -f e.g.: -l 15 = t
- 11.1 :--:1 with -f e.g. : -l 8 -f
- 12. :--:2
- 13. :--:3 line truncation before new pa
- 14.14 456789 123456789 123456789 1:--:14 456789 123456789 123456789 1
- -- Date/Time -- x Page 2
-
-
- 15. :--:15 xyzxyzxyz XYZXYZXYZ abcabcab
- 16. :--:16 456789 123456789 xyzxyzxyz X
- 17. :--:7
- 18. :--:8
- 19. :--:9 3456789 ab
- 20. :--:20 DEFGHI 123
- 21. :--:1
- 22. :--:2
- 23. :--:3
- 24. :--:4
- 25. :--:5
- 26. :--:6
- 27. :--:27 no truncation before nwe pag
- 28. :--:28 no trunc
- -- Date/Time -- x Page 3
-
-
- 29.15 xyzxyzxyz XYZXYZXYZ abcabcab:--:29 xyzxyzxyz XYZXYZXYZ abcabcab
- 30.16 456789 123456789 xyzxyzxyz X:--:30 456789 123456789 xyzxyzxyz X
- 31.7 :--:1
- 32.8 :--:2 3456789 abcdefghi
- 33.9 3456789 ab :--:3
- 34.20 DEFGHI 123 :--:4
- 35.1 :--:5
- 36. :--:6
- 37. :--:7
- 38.4 :--:8
- 39.5 :--:9 3456789 abcdefghi
- 40.6 :--:40 DEFGHI 123456789
- 41.27 no truncation before FF; (r_:--:41 yzxyzxyz XYZXYZXYZ abcabcab
- 42. :--:42 456789 123456789 abcdefghi A
- -- Date/Time -- x Page 4
-
-
- 43. :--:43 xyzxyzxyz XYZXYZXYZ abcabcab
- 44. :--:44 456789 123456789 xyzxyzxyz X
- 45. :--:5
- 46. :--:6
- 47. :--:7
- 48. :--:8
- 49. :--:9
- 50. :--:50
- 51. :--:1
- 52. :--:2
- 53. :--:3
- 54. :--:4
- 55. :--:55 yzxyzxyz XYZXYZXYZ abcabcab
- 56. :--:56 456789 123456789 abcdefghi A
- -- Date/Time -- x Page 5
-
-
- 57.29 xyzxyzxyz XYZXYZXYZ abcabcab:--:57 xyzxyzxyz XYZXYZXYZ abcabcab
- 58.30 456789 123456789 xyzxyzxyz X:--:58 456789 123456789 xyzxyzxyz X
- 59.1 :--:9
- 60.2 3456789 abcdefghi :--:60 DEFGHI 123456789
- 61.3 :--:1
- 62.4 :--:2
- 63. :--:3 ------- EOF -------- EOF ---
- 64.6 :--:
- 65.7 :--:
- 66.8 :--:
- 67.9 3456789 abcdefghi :--:
- 68.40 DEFGHI 123456789 :--:
- 69.41 yzxyzxyz XYZXYZXYZ abcabcab :--:
- 70.42 456789 123456789 abcdefghi A
- -- Date/Time -- x Page 6
-
-
-
- -- Date/Time -- x Page 7
-
-
-
- -- Date/Time -- x Page 8
-
-
- 71.43 xyzxyzxyz XYZXYZXYZ abcabcab:--:
- 72.44 456789 123456789 xyzxyzxyz X:--:
- 73.5 :--:
- 74.6 :--:
- 75.7 :--:
- 76.8 :--:
- 77.9 :--:
- 78.50 :--:
- 79.1 :--:
- 80. :--:
- 81. :--:
- 82. :--:
- 83.55 yzxyzxyz XYZXYZXYZ abcabcab :--:
- 84.56 456789 123456789 abcdefghi A
- -- Date/Time -- x Page 9
-
-
- 85. :--:
- 86.58 456789 123456789 xyzxyzxyz X:--:
- 87.9 :--:
- 88.60 DEFGHI 123456789 :--:
- 89.61 yzxyzxyz XYZXYZXYZ abcabcab :--:
- 90.62 456789 123456789 abcdefghi A:--:
- 91.63 xyzxyzxyz XYZXYZXYZ abcabcab:--:
- 92.64 456789 123456789 xyzxyzxyz X:--:
- 93.5 :--:
- 94.6 :--:
- 95.7 :--:
- 96.8 :--:
- 97.9 :--:
- 98.70 456789 123456789 abcdefghi :--:
- -- Date/Time -- x Page 10
-
-
- 99.1 :--:
- 100. :--:
- 101. :--:
- 102. :--:
- 103.74 yzxyzxyz XYZXYZXYZ abcabcab :--:
- 104.75 456789 123456789 abcdefghi A
- \ No newline at end of file
diff --git a/tests/pr/o3mSnl24fbltn b/tests/pr/o3mSnl24fbltn
new file mode 100644
index 0000000..655b56f
--- /dev/null
+++ b/tests/pr/o3mSnl24fbltn
@@ -0,0 +1,157 @@
+
+
+ -- Date/Time -- x Page 1
+
+
+ 1.1 FF-Test: FF's in Text :--:1 Test-INPUT: "Without FF set
+ 2.2 Options -n; :--:2 Options -b -3 [+2|+3] [-l 1
+ 3.3 numbering lines with skiped:--:3 Options -a -3 [+2|+3] [-l 1
+ 4.4 numbering blanc lines (no. :--:4 Options [+2|+3] [-l 2
+ 5. :--:5
+ 6.6 3456789 123456789 123456789 1:--:6 ---------------------------
+ 7.7 3 Columns downwards ..., <=:--:7 3456789 123456789 123456789 1
+ 8.8 :--:8 3 Columns downwards, across
+ 9.9 :--:9 With columns use <= 5 text
+ 10.10 zzzzzzzzzzzzzzzzzzzzzzzzzz1:--:10 without -f e.g.: -l 15 = t
+ 11.1 :--:1 with -f e.g. : -l 8 -f
+ 12. :--:2
+ 13. :--:3 line truncation before new pa
+ 14.14 456789 123456789 123456789 1:--:14 456789 123456789 123456789 1
+
+
+ -- Date/Time -- x Page 2
+
+
+ 15. :--:15 xyzxyzxyz XYZXYZXYZ abcabcab
+ 16. :--:16 456789 123456789 xyzxyzxyz X
+ 17. :--:7
+ 18. :--:8
+ 19. :--:9 3456789 ab
+ 20. :--:20 DEFGHI 123
+ 21. :--:1
+ 22. :--:2
+ 23. :--:3
+ 24. :--:4
+ 25. :--:5
+ 26. :--:6
+ 27. :--:27 no truncation before nwe pag
+ 28. :--:28 no trunc
+
+
+ -- Date/Time -- x Page 3
+
+
+ 29.15 xyzxyzxyz XYZXYZXYZ abcabcab:--:29 xyzxyzxyz XYZXYZXYZ abcabcab
+ 30.16 456789 123456789 xyzxyzxyz X:--:30 456789 123456789 xyzxyzxyz X
+ 31.7 :--:1
+ 32.8 :--:2 3456789 abcdefghi
+ 33.9 3456789 ab :--:3
+ 34.20 DEFGHI 123 :--:4
+ 35.1 :--:5
+ 36. :--:6
+ 37. :--:7
+ 38.4 :--:8
+ 39.5 :--:9 3456789 abcdefghi
+ 40.6 :--:40 DEFGHI 123456789
+ 41.27 no truncation before FF; (r_:--:41 yzxyzxyz XYZXYZXYZ abcabcab
+ 42. :--:42 456789 123456789 abcdefghi A
+
+
+ -- Date/Time -- x Page 4
+
+
+ 43. :--:43 xyzxyzxyz XYZXYZXYZ abcabcab
+ 44. :--:44 456789 123456789 xyzxyzxyz X
+ 45. :--:5
+ 46. :--:6
+ 47. :--:7
+ 48. :--:8
+ 49. :--:9
+ 50. :--:50
+ 51. :--:1
+ 52. :--:2
+ 53. :--:3
+ 54. :--:4
+ 55. :--:55 yzxyzxyz XYZXYZXYZ abcabcab
+ 56. :--:56 456789 123456789 abcdefghi A
+
+
+ -- Date/Time -- x Page 5
+
+
+ 57.29 xyzxyzxyz XYZXYZXYZ abcabcab:--:57 xyzxyzxyz XYZXYZXYZ abcabcab
+ 58.30 456789 123456789 xyzxyzxyz X:--:58 456789 123456789 xyzxyzxyz X
+ 59.1 :--:9
+ 60.2 3456789 abcdefghi :--:60 DEFGHI 123456789
+ 61.3 :--:1
+ 62.4 :--:2
+ 63. :--:3 ------- EOF -------- EOF ---
+ 64.6 :--:
+ 65.7 :--:
+ 66.8 :--:
+ 67.9 3456789 abcdefghi :--:
+ 68.40 DEFGHI 123456789 :--:
+ 69.41 yzxyzxyz XYZXYZXYZ abcabcab :--:
+ 70.42 456789 123456789 abcdefghi A
+
+
+ -- Date/Time -- x Page 6
+
+
+
+
+
+ -- Date/Time -- x Page 7
+
+
+
+
+
+ -- Date/Time -- x Page 8
+
+
+ 71.43 xyzxyzxyz XYZXYZXYZ abcabcab:--:
+ 72.44 456789 123456789 xyzxyzxyz X:--:
+ 73.5 :--:
+ 74.6 :--:
+ 75.7 :--:
+ 76.8 :--:
+ 77.9 :--:
+ 78.50 :--:
+ 79.1 :--:
+ 80. :--:
+ 81. :--:
+ 82. :--:
+ 83.55 yzxyzxyz XYZXYZXYZ abcabcab :--:
+ 84.56 456789 123456789 abcdefghi A
+
+
+ -- Date/Time -- x Page 9
+
+
+ 85. :--:
+ 86.58 456789 123456789 xyzxyzxyz X:--:
+ 87.9 :--:
+ 88.60 DEFGHI 123456789 :--:
+ 89.61 yzxyzxyz XYZXYZXYZ abcabcab :--:
+ 90.62 456789 123456789 abcdefghi A:--:
+ 91.63 xyzxyzxyz XYZXYZXYZ abcabcab:--:
+ 92.64 456789 123456789 xyzxyzxyz X:--:
+ 93.5 :--:
+ 94.6 :--:
+ 95.7 :--:
+ 96.8 :--:
+ 97.9 :--:
+ 98.70 456789 123456789 abcdefghi :--:
+
+
+ -- Date/Time -- x Page 10
+
+
+ 99.1 :--:
+ 100. :--:
+ 101. :--:
+ 102. :--:
+ 103.74 yzxyzxyz XYZXYZXYZ abcabcab :--:
+ 104.75 456789 123456789 abcdefghi A
+ \ No newline at end of file
diff --git a/tests/pr/o3ml17f-bl-tn b/tests/pr/o3ml17f-bl-tn
deleted file mode 100644
index ee496cb..0000000
--- a/tests/pr/o3ml17f-bl-tn
+++ /dev/null
@@ -1,137 +0,0 @@
- -- Date/Time -- x Page 1
-
-
- 1 FF-Test: FF's in Text 1 Test-INPUT: "Without FF set by
- 2 Options -n; 2 Options -b -3 [+2|+3] [-l 15|8]
- 3 numbering lines with skiped pag 3 Options -a -3 [+2|+3] [-l 15|8]
- 4 numbering blanc lines (no. 5,12 4 Options [+2|+3] [-l 24|17
- 5
- 6 3456789 123456789 123456789 12345 6 -------------------------------
- 7 3 Columns downwards ..., <= 5 l 7 3456789 123456789 123456789 12345
- 8 8 3 Columns downwards, across, ..
- 9 9 With columns use <= 5 text lin
- 10 zzzzzzzzzzzzzzzzzzzzzzzzzz12345 10 without -f e.g.: -l 15 = total
- 1 1 with -f e.g. : -l 8 -f
- 2
- 3 line truncation before new page;
- 14 456789 123456789 123456789 12345 14 456789 123456789 123456789 12345
- -- Date/Time -- x Page 2
-
-
- 15 xyzxyzxyz XYZXYZXYZ abcabcab
- 16 456789 123456789 xyzxyzxyz XYZXY
- 7
- 8
- 9 3456789 ab
- 20 DEFGHI 123
- 1
- 2
- 3
- 4
- 5
- 6
- 27 no truncation before nwe page; (
- 28 no trunc
- -- Date/Time -- x Page 3
-
-
- 15 xyzxyzxyz XYZXYZXYZ abcabcab 29 xyzxyzxyz XYZXYZXYZ abcabcab
- 16 456789 123456789 xyzxyzxyz XYZXY 30 456789 123456789 xyzxyzxyz XYZXY
- 7 1
- 8 2 3456789 abcdefghi
- 9 3456789 ab 3
- 20 DEFGHI 123 4
- 1 5
- 6
- 7
- 4 8
- 5 9 3456789 abcdefghi
- 6 40 DEFGHI 123456789
- 27 no truncation before FF; (r_l-te 41 yzxyzxyz XYZXYZXYZ abcabcab
- 42 456789 123456789 abcdefghi ABCDE
- -- Date/Time -- x Page 4
-
-
- 43 xyzxyzxyz XYZXYZXYZ abcabcab
- 44 456789 123456789 xyzxyzxyz XYZXY
- 5
- 6
- 7
- 8
- 9
- 50
- 1
- 2
- 3
- 4
- 55 yzxyzxyz XYZXYZXYZ abcabcab
- 56 456789 123456789 abcdefghi ABCDE
- -- Date/Time -- x Page 5
-
-
- 29 xyzxyzxyz XYZXYZXYZ abcabcab 57 xyzxyzxyz XYZXYZXYZ abcabcab
- 30 456789 123456789 xyzxyzxyz XYZXY 58 456789 123456789 xyzxyzxyz XYZXY
- 1 9
- 2 3456789 abcdefghi 60 DEFGHI 123456789
- 3 1
- 4 2
- 3 ------- EOF -------- EOF -------
- 6
- 7
- 8
- 9 3456789 abcdefghi
- 40 DEFGHI 123456789
- 41 yzxyzxyz XYZXYZXYZ abcabcab
- 42 456789 123456789 abcdefghi ABCDE
- -- Date/Time -- x Page 6
-
-
-
- -- Date/Time -- x Page 7
-
-
-
- -- Date/Time -- x Page 8
-
-
- 43 xyzxyzxyz XYZXYZXYZ abcabcab
- 44 456789 123456789 xyzxyzxyz XYZXY
- 5
- 6
- 7
- 8
- 9
- 50
- 1
-
-
-
- 55 yzxyzxyz XYZXYZXYZ abcabcab
- 56 456789 123456789 abcdefghi ABCDE
- -- Date/Time -- x Page 9
-
-
-
- 58 456789 123456789 xyzxyzxyz XYZXY
- 9
- 60 DEFGHI 123456789
- 61 yzxyzxyz XYZXYZXYZ abcabcab
- 62 456789 123456789 abcdefghi ABCDE
- 63 xyzxyzxyz XYZXYZXYZ abcabcab
- 64 456789 123456789 xyzxyzxyz XYZXY
- 5
- 6
- 7
- 8
- 9
- 70 456789 123456789 abcdefghi ABCD
- -- Date/Time -- x Page 10
-
-
- 1
-
-
-
- 74 yzxyzxyz XYZXYZXYZ abcabcab
- 75 456789 123456789 abcdefghi ABCDE
- \ No newline at end of file
diff --git a/tests/pr/o3ml24f-bl-tn b/tests/pr/o3ml24f-bl-tn
new file mode 100644
index 0000000..5109be0
--- /dev/null
+++ b/tests/pr/o3ml24f-bl-tn
@@ -0,0 +1,157 @@
+
+
+ -- Date/Time -- x Page 1
+
+
+ 1 FF-Test: FF's in Text 1 Test-INPUT: "Without FF set by
+ 2 Options -n; 2 Options -b -3 [+2|+3] [-l 15|8]
+ 3 numbering lines with skiped pag 3 Options -a -3 [+2|+3] [-l 15|8]
+ 4 numbering blanc lines (no. 5,12 4 Options [+2|+3] [-l 24|17
+ 5
+ 6 3456789 123456789 123456789 12345 6 -------------------------------
+ 7 3 Columns downwards ..., <= 5 l 7 3456789 123456789 123456789 12345
+ 8 8 3 Columns downwards, across, ..
+ 9 9 With columns use <= 5 text lin
+ 10 zzzzzzzzzzzzzzzzzzzzzzzzzz12345 10 without -f e.g.: -l 15 = total
+ 1 1 with -f e.g. : -l 8 -f
+ 2
+ 3 line truncation before new page;
+ 14 456789 123456789 123456789 12345 14 456789 123456789 123456789 12345
+
+
+ -- Date/Time -- x Page 2
+
+
+ 15 xyzxyzxyz XYZXYZXYZ abcabcab
+ 16 456789 123456789 xyzxyzxyz XYZXY
+ 7
+ 8
+ 9 3456789 ab
+ 20 DEFGHI 123
+ 1
+ 2
+ 3
+ 4
+ 5
+ 6
+ 27 no truncation before nwe page; (
+ 28 no trunc
+
+
+ -- Date/Time -- x Page 3
+
+
+ 15 xyzxyzxyz XYZXYZXYZ abcabcab 29 xyzxyzxyz XYZXYZXYZ abcabcab
+ 16 456789 123456789 xyzxyzxyz XYZXY 30 456789 123456789 xyzxyzxyz XYZXY
+ 7 1
+ 8 2 3456789 abcdefghi
+ 9 3456789 ab 3
+ 20 DEFGHI 123 4
+ 1 5
+ 6
+ 7
+ 4 8
+ 5 9 3456789 abcdefghi
+ 6 40 DEFGHI 123456789
+ 27 no truncation before FF; (r_l-te 41 yzxyzxyz XYZXYZXYZ abcabcab
+ 42 456789 123456789 abcdefghi ABCDE
+
+
+ -- Date/Time -- x Page 4
+
+
+ 43 xyzxyzxyz XYZXYZXYZ abcabcab
+ 44 456789 123456789 xyzxyzxyz XYZXY
+ 5
+ 6
+ 7
+ 8
+ 9
+ 50
+ 1
+ 2
+ 3
+ 4
+ 55 yzxyzxyz XYZXYZXYZ abcabcab
+ 56 456789 123456789 abcdefghi ABCDE
+
+
+ -- Date/Time -- x Page 5
+
+
+ 29 xyzxyzxyz XYZXYZXYZ abcabcab 57 xyzxyzxyz XYZXYZXYZ abcabcab
+ 30 456789 123456789 xyzxyzxyz XYZXY 58 456789 123456789 xyzxyzxyz XYZXY
+ 1 9
+ 2 3456789 abcdefghi 60 DEFGHI 123456789
+ 3 1
+ 4 2
+ 3 ------- EOF -------- EOF -------
+ 6
+ 7
+ 8
+ 9 3456789 abcdefghi
+ 40 DEFGHI 123456789
+ 41 yzxyzxyz XYZXYZXYZ abcabcab
+ 42 456789 123456789 abcdefghi ABCDE
+
+
+ -- Date/Time -- x Page 6
+
+
+
+
+
+ -- Date/Time -- x Page 7
+
+
+
+
+
+ -- Date/Time -- x Page 8
+
+
+ 43 xyzxyzxyz XYZXYZXYZ abcabcab
+ 44 456789 123456789 xyzxyzxyz XYZXY
+ 5
+ 6
+ 7
+ 8
+ 9
+ 50
+ 1
+
+
+
+ 55 yzxyzxyz XYZXYZXYZ abcabcab
+ 56 456789 123456789 abcdefghi ABCDE
+
+
+ -- Date/Time -- x Page 9
+
+
+
+ 58 456789 123456789 xyzxyzxyz XYZXY
+ 9
+ 60 DEFGHI 123456789
+ 61 yzxyzxyz XYZXYZXYZ abcabcab
+ 62 456789 123456789 abcdefghi ABCDE
+ 63 xyzxyzxyz XYZXYZXYZ abcabcab
+ 64 456789 123456789 xyzxyzxyz XYZXY
+ 5
+ 6
+ 7
+ 8
+ 9
+ 70 456789 123456789 abcdefghi ABCD
+
+
+ -- Date/Time -- x Page 10
+
+
+ 1
+
+
+
+ 74 yzxyzxyz XYZXYZXYZ abcabcab
+ 75 456789 123456789 abcdefghi ABCDE
+ \ No newline at end of file
diff --git a/tests/pr/pr-tests b/tests/pr/pr-tests
deleted file mode 100755
index e3ff10d..0000000
--- a/tests/pr/pr-tests
+++ /dev/null
@@ -1,7155 +0,0 @@
-#! /bin/sh
-# This script was generated automatically by mk-script.
-case $# in
- 0) xx='pr';;
- *) xx="$1";;
-esac
-test "$VERBOSE" && echo=echo || echo=:
-$echo testing program: $xx
-errors=0
-test "$srcdir" || srcdir=.
-test "$VERBOSE" && $xx --version 2> /dev/null
-
-# Make sure we get English translations.
-LANGUAGE=C
-export LANGUAGE
-LC_ALL=C
-export LC_ALL
-LANG=C
-export LANG
-
-$xx --date-format="-- Date/Time --" -h x $srcdir/0Ft > 1a.O 2> 1a.E
-code=$?
-if test $code != 0; then
- $echo "Test 1a failed: $xx return code $code differs from expected value 0" 1>&2
- errors=`expr $errors + 1`
-else
- cmp 1a.O $srcdir/0F > /dev/null 2>&1
- case $? in
- 0) if test "$VERBOSE"; then $echo "passed 1a"; fi;;
- 1) $echo "Test 1a failed: files 1a.O and $srcdir/0F differ" 1>&2
- (diff -c 1a.O $srcdir/0F) 2> /dev/null
- errors=`expr $errors + 1`;;
- 2) $echo "Test 1a may have failed." 1>&2
- $echo The command "cmp 1a.O $srcdir/0F" failed. 1>&2
- errors=`expr $errors + 1`;;
- esac
-fi
-test -s 1a.E || rm -f 1a.E
-$xx --date-format="-- Date/Time --" -h x $srcdir/0Fnt > 1b.O 2> 1b.E
-code=$?
-if test $code != 0; then
- $echo "Test 1b failed: $xx return code $code differs from expected value 0" 1>&2
- errors=`expr $errors + 1`
-else
- cmp 1b.O $srcdir/0F > /dev/null 2>&1
- case $? in
- 0) if test "$VERBOSE"; then $echo "passed 1b"; fi;;
- 1) $echo "Test 1b failed: files 1b.O and $srcdir/0F differ" 1>&2
- (diff -c 1b.O $srcdir/0F) 2> /dev/null
- errors=`expr $errors + 1`;;
- 2) $echo "Test 1b may have failed." 1>&2
- $echo The command "cmp 1b.O $srcdir/0F" failed. 1>&2
- errors=`expr $errors + 1`;;
- esac
-fi
-test -s 1b.E || rm -f 1b.E
-$xx --date-format="-- Date/Time --" -h x +3 $srcdir/0Ft > 1c.O 2> 1c.E
-code=$?
-if test $code != 0; then
- $echo "Test 1c failed: $xx return code $code differs from expected value 0" 1>&2
- errors=`expr $errors + 1`
-else
- cmp 1c.O $srcdir/3-0F > /dev/null 2>&1
- case $? in
- 0) if test "$VERBOSE"; then $echo "passed 1c"; fi;;
- 1) $echo "Test 1c failed: files 1c.O and $srcdir/3-0F differ" 1>&2
- (diff -c 1c.O $srcdir/3-0F) 2> /dev/null
- errors=`expr $errors + 1`;;
- 2) $echo "Test 1c may have failed." 1>&2
- $echo The command "cmp 1c.O $srcdir/3-0F" failed. 1>&2
- errors=`expr $errors + 1`;;
- esac
-fi
-test -s 1c.E || rm -f 1c.E
-$xx --date-format="-- Date/Time --" -h x +3 -f $srcdir/0Ft > 1d.O 2> 1d.E
-code=$?
-if test $code != 0; then
- $echo "Test 1d failed: $xx return code $code differs from expected value 0" 1>&2
- errors=`expr $errors + 1`
-else
- cmp 1d.O $srcdir/3f-0F > /dev/null 2>&1
- case $? in
- 0) if test "$VERBOSE"; then $echo "passed 1d"; fi;;
- 1) $echo "Test 1d failed: files 1d.O and $srcdir/3f-0F differ" 1>&2
- (diff -c 1d.O $srcdir/3f-0F) 2> /dev/null
- errors=`expr $errors + 1`;;
- 2) $echo "Test 1d may have failed." 1>&2
- $echo The command "cmp 1d.O $srcdir/3f-0F" failed. 1>&2
- errors=`expr $errors + 1`;;
- esac
-fi
-test -s 1d.E || rm -f 1d.E
-$xx --date-format="-- Date/Time --" -h x -a -3 $srcdir/0Ft > 1e.O 2> 1e.E
-code=$?
-if test $code != 0; then
- $echo "Test 1e failed: $xx return code $code differs from expected value 0" 1>&2
- errors=`expr $errors + 1`
-else
- cmp 1e.O $srcdir/a3-0F > /dev/null 2>&1
- case $? in
- 0) if test "$VERBOSE"; then $echo "passed 1e"; fi;;
- 1) $echo "Test 1e failed: files 1e.O and $srcdir/a3-0F differ" 1>&2
- (diff -c 1e.O $srcdir/a3-0F) 2> /dev/null
- errors=`expr $errors + 1`;;
- 2) $echo "Test 1e may have failed." 1>&2
- $echo The command "cmp 1e.O $srcdir/a3-0F" failed. 1>&2
- errors=`expr $errors + 1`;;
- esac
-fi
-test -s 1e.E || rm -f 1e.E
-$xx --date-format="-- Date/Time --" -h x -a --columns=3 $srcdir/0Ft > 1e.C.O 2> 1e.C.E
-code=$?
-if test $code != 0; then
- $echo "Test 1e.C failed: $xx return code $code differs from expected value 0" 1>&2
- errors=`expr $errors + 1`
-else
- cmp 1e.C.O $srcdir/a3-0F > /dev/null 2>&1
- case $? in
- 0) if test "$VERBOSE"; then $echo "passed 1e.C"; fi;;
- 1) $echo "Test 1e.C failed: files 1e.C.O and $srcdir/a3-0F differ" 1>&2
- (diff -c 1e.C.O $srcdir/a3-0F) 2> /dev/null
- errors=`expr $errors + 1`;;
- 2) $echo "Test 1e.C may have failed." 1>&2
- $echo The command "cmp 1e.C.O $srcdir/a3-0F" failed. 1>&2
- errors=`expr $errors + 1`;;
- esac
-fi
-test -s 1e.C.E || rm -f 1e.C.E
-$xx --date-format="-- Date/Time --" -h x -a -3 -f $srcdir/0Ft > 1f.O 2> 1f.E
-code=$?
-if test $code != 0; then
- $echo "Test 1f failed: $xx return code $code differs from expected value 0" 1>&2
- errors=`expr $errors + 1`
-else
- cmp 1f.O $srcdir/a3f-0F > /dev/null 2>&1
- case $? in
- 0) if test "$VERBOSE"; then $echo "passed 1f"; fi;;
- 1) $echo "Test 1f failed: files 1f.O and $srcdir/a3f-0F differ" 1>&2
- (diff -c 1f.O $srcdir/a3f-0F) 2> /dev/null
- errors=`expr $errors + 1`;;
- 2) $echo "Test 1f may have failed." 1>&2
- $echo The command "cmp 1f.O $srcdir/a3f-0F" failed. 1>&2
- errors=`expr $errors + 1`;;
- esac
-fi
-test -s 1f.E || rm -f 1f.E
-$xx --date-format="-- Date/Time --" -h x -a --columns=3 -f $srcdir/0Ft > 1f.C.O 2> 1f.C.E
-code=$?
-if test $code != 0; then
- $echo "Test 1f.C failed: $xx return code $code differs from expected value 0" 1>&2
- errors=`expr $errors + 1`
-else
- cmp 1f.C.O $srcdir/a3f-0F > /dev/null 2>&1
- case $? in
- 0) if test "$VERBOSE"; then $echo "passed 1f.C"; fi;;
- 1) $echo "Test 1f.C failed: files 1f.C.O and $srcdir/a3f-0F differ" 1>&2
- (diff -c 1f.C.O $srcdir/a3f-0F) 2> /dev/null
- errors=`expr $errors + 1`;;
- 2) $echo "Test 1f.C may have failed." 1>&2
- $echo The command "cmp 1f.C.O $srcdir/a3f-0F" failed. 1>&2
- errors=`expr $errors + 1`;;
- esac
-fi
-test -s 1f.C.E || rm -f 1f.C.E
-$xx --date-format="-- Date/Time --" -h x -a -3 -f $srcdir/0Fnt > 1g.O 2> 1g.E
-code=$?
-if test $code != 0; then
- $echo "Test 1g failed: $xx return code $code differs from expected value 0" 1>&2
- errors=`expr $errors + 1`
-else
- cmp 1g.O $srcdir/a3f-0F > /dev/null 2>&1
- case $? in
- 0) if test "$VERBOSE"; then $echo "passed 1g"; fi;;
- 1) $echo "Test 1g failed: files 1g.O and $srcdir/a3f-0F differ" 1>&2
- (diff -c 1g.O $srcdir/a3f-0F) 2> /dev/null
- errors=`expr $errors + 1`;;
- 2) $echo "Test 1g may have failed." 1>&2
- $echo The command "cmp 1g.O $srcdir/a3f-0F" failed. 1>&2
- errors=`expr $errors + 1`;;
- esac
-fi
-test -s 1g.E || rm -f 1g.E
-$xx --date-format="-- Date/Time --" -h x -a --columns=3 -f $srcdir/0Fnt > 1g.C.O 2> 1g.C.E
-code=$?
-if test $code != 0; then
- $echo "Test 1g.C failed: $xx return code $code differs from expected value 0" 1>&2
- errors=`expr $errors + 1`
-else
- cmp 1g.C.O $srcdir/a3f-0F > /dev/null 2>&1
- case $? in
- 0) if test "$VERBOSE"; then $echo "passed 1g.C"; fi;;
- 1) $echo "Test 1g.C failed: files 1g.C.O and $srcdir/a3f-0F differ" 1>&2
- (diff -c 1g.C.O $srcdir/a3f-0F) 2> /dev/null
- errors=`expr $errors + 1`;;
- 2) $echo "Test 1g.C may have failed." 1>&2
- $echo The command "cmp 1g.C.O $srcdir/a3f-0F" failed. 1>&2
- errors=`expr $errors + 1`;;
- esac
-fi
-test -s 1g.C.E || rm -f 1g.C.E
-$xx --date-format="-- Date/Time --" -h x +3 -a -3 -f $srcdir/0Ft > 1h.O 2> 1h.E
-code=$?
-if test $code != 0; then
- $echo "Test 1h failed: $xx return code $code differs from expected value 0" 1>&2
- errors=`expr $errors + 1`
-else
- cmp 1h.O $srcdir/3a3f-0F > /dev/null 2>&1
- case $? in
- 0) if test "$VERBOSE"; then $echo "passed 1h"; fi;;
- 1) $echo "Test 1h failed: files 1h.O and $srcdir/3a3f-0F differ" 1>&2
- (diff -c 1h.O $srcdir/3a3f-0F) 2> /dev/null
- errors=`expr $errors + 1`;;
- 2) $echo "Test 1h may have failed." 1>&2
- $echo The command "cmp 1h.O $srcdir/3a3f-0F" failed. 1>&2
- errors=`expr $errors + 1`;;
- esac
-fi
-test -s 1h.E || rm -f 1h.E
-$xx --date-format="-- Date/Time --" -h x +3 -a --columns=3 -f $srcdir/0Ft > 1h.C.O 2> 1h.C.E
-code=$?
-if test $code != 0; then
- $echo "Test 1h.C failed: $xx return code $code differs from expected value 0" 1>&2
- errors=`expr $errors + 1`
-else
- cmp 1h.C.O $srcdir/3a3f-0F > /dev/null 2>&1
- case $? in
- 0) if test "$VERBOSE"; then $echo "passed 1h.C"; fi;;
- 1) $echo "Test 1h.C failed: files 1h.C.O and $srcdir/3a3f-0F differ" 1>&2
- (diff -c 1h.C.O $srcdir/3a3f-0F) 2> /dev/null
- errors=`expr $errors + 1`;;
- 2) $echo "Test 1h.C may have failed." 1>&2
- $echo The command "cmp 1h.C.O $srcdir/3a3f-0F" failed. 1>&2
- errors=`expr $errors + 1`;;
- esac
-fi
-test -s 1h.C.E || rm -f 1h.C.E
-$xx --date-format="-- Date/Time --" -h x -b -3 $srcdir/0Ft > 1i.O 2> 1i.E
-code=$?
-if test $code != 0; then
- $echo "Test 1i failed: $xx return code $code differs from expected value 0" 1>&2
- errors=`expr $errors + 1`
-else
- cmp 1i.O $srcdir/b3-0F > /dev/null 2>&1
- case $? in
- 0) if test "$VERBOSE"; then $echo "passed 1i"; fi;;
- 1) $echo "Test 1i failed: files 1i.O and $srcdir/b3-0F differ" 1>&2
- (diff -c 1i.O $srcdir/b3-0F) 2> /dev/null
- errors=`expr $errors + 1`;;
- 2) $echo "Test 1i may have failed." 1>&2
- $echo The command "cmp 1i.O $srcdir/b3-0F" failed. 1>&2
- errors=`expr $errors + 1`;;
- esac
-fi
-test -s 1i.E || rm -f 1i.E
-$xx --date-format="-- Date/Time --" -h x -b --columns=3 $srcdir/0Ft > 1i.C.O 2> 1i.C.E
-code=$?
-if test $code != 0; then
- $echo "Test 1i.C failed: $xx return code $code differs from expected value 0" 1>&2
- errors=`expr $errors + 1`
-else
- cmp 1i.C.O $srcdir/b3-0F > /dev/null 2>&1
- case $? in
- 0) if test "$VERBOSE"; then $echo "passed 1i.C"; fi;;
- 1) $echo "Test 1i.C failed: files 1i.C.O and $srcdir/b3-0F differ" 1>&2
- (diff -c 1i.C.O $srcdir/b3-0F) 2> /dev/null
- errors=`expr $errors + 1`;;
- 2) $echo "Test 1i.C may have failed." 1>&2
- $echo The command "cmp 1i.C.O $srcdir/b3-0F" failed. 1>&2
- errors=`expr $errors + 1`;;
- esac
-fi
-test -s 1i.C.E || rm -f 1i.C.E
-$xx --date-format="-- Date/Time --" -h x -b -3 -f $srcdir/0Ft > 1j.O 2> 1j.E
-code=$?
-if test $code != 0; then
- $echo "Test 1j failed: $xx return code $code differs from expected value 0" 1>&2
- errors=`expr $errors + 1`
-else
- cmp 1j.O $srcdir/b3f-0F > /dev/null 2>&1
- case $? in
- 0) if test "$VERBOSE"; then $echo "passed 1j"; fi;;
- 1) $echo "Test 1j failed: files 1j.O and $srcdir/b3f-0F differ" 1>&2
- (diff -c 1j.O $srcdir/b3f-0F) 2> /dev/null
- errors=`expr $errors + 1`;;
- 2) $echo "Test 1j may have failed." 1>&2
- $echo The command "cmp 1j.O $srcdir/b3f-0F" failed. 1>&2
- errors=`expr $errors + 1`;;
- esac
-fi
-test -s 1j.E || rm -f 1j.E
-$xx --date-format="-- Date/Time --" -h x -b --columns=3 -f $srcdir/0Ft > 1j.C.O 2> 1j.C.E
-code=$?
-if test $code != 0; then
- $echo "Test 1j.C failed: $xx return code $code differs from expected value 0" 1>&2
- errors=`expr $errors + 1`
-else
- cmp 1j.C.O $srcdir/b3f-0F > /dev/null 2>&1
- case $? in
- 0) if test "$VERBOSE"; then $echo "passed 1j.C"; fi;;
- 1) $echo "Test 1j.C failed: files 1j.C.O and $srcdir/b3f-0F differ" 1>&2
- (diff -c 1j.C.O $srcdir/b3f-0F) 2> /dev/null
- errors=`expr $errors + 1`;;
- 2) $echo "Test 1j.C may have failed." 1>&2
- $echo The command "cmp 1j.C.O $srcdir/b3f-0F" failed. 1>&2
- errors=`expr $errors + 1`;;
- esac
-fi
-test -s 1j.C.E || rm -f 1j.C.E
-$xx --date-format="-- Date/Time --" -h x -b -3 -f $srcdir/0Fnt > 1k.O 2> 1k.E
-code=$?
-if test $code != 0; then
- $echo "Test 1k failed: $xx return code $code differs from expected value 0" 1>&2
- errors=`expr $errors + 1`
-else
- cmp 1k.O $srcdir/b3f-0F > /dev/null 2>&1
- case $? in
- 0) if test "$VERBOSE"; then $echo "passed 1k"; fi;;
- 1) $echo "Test 1k failed: files 1k.O and $srcdir/b3f-0F differ" 1>&2
- (diff -c 1k.O $srcdir/b3f-0F) 2> /dev/null
- errors=`expr $errors + 1`;;
- 2) $echo "Test 1k may have failed." 1>&2
- $echo The command "cmp 1k.O $srcdir/b3f-0F" failed. 1>&2
- errors=`expr $errors + 1`;;
- esac
-fi
-test -s 1k.E || rm -f 1k.E
-$xx --date-format="-- Date/Time --" -h x -b --columns=3 -f $srcdir/0Fnt > 1k.C.O 2> 1k.C.E
-code=$?
-if test $code != 0; then
- $echo "Test 1k.C failed: $xx return code $code differs from expected value 0" 1>&2
- errors=`expr $errors + 1`
-else
- cmp 1k.C.O $srcdir/b3f-0F > /dev/null 2>&1
- case $? in
- 0) if test "$VERBOSE"; then $echo "passed 1k.C"; fi;;
- 1) $echo "Test 1k.C failed: files 1k.C.O and $srcdir/b3f-0F differ" 1>&2
- (diff -c 1k.C.O $srcdir/b3f-0F) 2> /dev/null
- errors=`expr $errors + 1`;;
- 2) $echo "Test 1k.C may have failed." 1>&2
- $echo The command "cmp 1k.C.O $srcdir/b3f-0F" failed. 1>&2
- errors=`expr $errors + 1`;;
- esac
-fi
-test -s 1k.C.E || rm -f 1k.C.E
-$xx --date-format="-- Date/Time --" -h x +3 -b -3 -f $srcdir/0Ft > 1l.O 2> 1l.E
-code=$?
-if test $code != 0; then
- $echo "Test 1l failed: $xx return code $code differs from expected value 0" 1>&2
- errors=`expr $errors + 1`
-else
- cmp 1l.O $srcdir/3b3f-0F > /dev/null 2>&1
- case $? in
- 0) if test "$VERBOSE"; then $echo "passed 1l"; fi;;
- 1) $echo "Test 1l failed: files 1l.O and $srcdir/3b3f-0F differ" 1>&2
- (diff -c 1l.O $srcdir/3b3f-0F) 2> /dev/null
- errors=`expr $errors + 1`;;
- 2) $echo "Test 1l may have failed." 1>&2
- $echo The command "cmp 1l.O $srcdir/3b3f-0F" failed. 1>&2
- errors=`expr $errors + 1`;;
- esac
-fi
-test -s 1l.E || rm -f 1l.E
-$xx --date-format="-- Date/Time --" -h x +3 -b --columns=3 -f $srcdir/0Ft > 1l.C.O 2> 1l.C.E
-code=$?
-if test $code != 0; then
- $echo "Test 1l.C failed: $xx return code $code differs from expected value 0" 1>&2
- errors=`expr $errors + 1`
-else
- cmp 1l.C.O $srcdir/3b3f-0F > /dev/null 2>&1
- case $? in
- 0) if test "$VERBOSE"; then $echo "passed 1l.C"; fi;;
- 1) $echo "Test 1l.C failed: files 1l.C.O and $srcdir/3b3f-0F differ" 1>&2
- (diff -c 1l.C.O $srcdir/3b3f-0F) 2> /dev/null
- errors=`expr $errors + 1`;;
- 2) $echo "Test 1l.C may have failed." 1>&2
- $echo The command "cmp 1l.C.O $srcdir/3b3f-0F" failed. 1>&2
- errors=`expr $errors + 1`;;
- esac
-fi
-test -s 1l.C.E || rm -f 1l.C.E
-$xx --date-format="-- Date/Time --" -h x $srcdir/0FFt > 2a.O 2> 2a.E
-code=$?
-if test $code != 0; then
- $echo "Test 2a failed: $xx return code $code differs from expected value 0" 1>&2
- errors=`expr $errors + 1`
-else
- cmp 2a.O $srcdir/0FF > /dev/null 2>&1
- case $? in
- 0) if test "$VERBOSE"; then $echo "passed 2a"; fi;;
- 1) $echo "Test 2a failed: files 2a.O and $srcdir/0FF differ" 1>&2
- (diff -c 2a.O $srcdir/0FF) 2> /dev/null
- errors=`expr $errors + 1`;;
- 2) $echo "Test 2a may have failed." 1>&2
- $echo The command "cmp 2a.O $srcdir/0FF" failed. 1>&2
- errors=`expr $errors + 1`;;
- esac
-fi
-test -s 2a.E || rm -f 2a.E
-$xx --date-format="-- Date/Time --" -h x $srcdir/0FnFnt > 2b.O 2> 2b.E
-code=$?
-if test $code != 0; then
- $echo "Test 2b failed: $xx return code $code differs from expected value 0" 1>&2
- errors=`expr $errors + 1`
-else
- cmp 2b.O $srcdir/0FF > /dev/null 2>&1
- case $? in
- 0) if test "$VERBOSE"; then $echo "passed 2b"; fi;;
- 1) $echo "Test 2b failed: files 2b.O and $srcdir/0FF differ" 1>&2
- (diff -c 2b.O $srcdir/0FF) 2> /dev/null
- errors=`expr $errors + 1`;;
- 2) $echo "Test 2b may have failed." 1>&2
- $echo The command "cmp 2b.O $srcdir/0FF" failed. 1>&2
- errors=`expr $errors + 1`;;
- esac
-fi
-test -s 2b.E || rm -f 2b.E
-$xx --date-format="-- Date/Time --" -h x -a -3 -f $srcdir/0FFt > 2c.O 2> 2c.E
-code=$?
-if test $code != 0; then
- $echo "Test 2c failed: $xx return code $code differs from expected value 0" 1>&2
- errors=`expr $errors + 1`
-else
- cmp 2c.O $srcdir/a3f-0FF > /dev/null 2>&1
- case $? in
- 0) if test "$VERBOSE"; then $echo "passed 2c"; fi;;
- 1) $echo "Test 2c failed: files 2c.O and $srcdir/a3f-0FF differ" 1>&2
- (diff -c 2c.O $srcdir/a3f-0FF) 2> /dev/null
- errors=`expr $errors + 1`;;
- 2) $echo "Test 2c may have failed." 1>&2
- $echo The command "cmp 2c.O $srcdir/a3f-0FF" failed. 1>&2
- errors=`expr $errors + 1`;;
- esac
-fi
-test -s 2c.E || rm -f 2c.E
-$xx --date-format="-- Date/Time --" -h x -a --columns=3 -f $srcdir/0FFt > 2c.C.O 2> 2c.C.E
-code=$?
-if test $code != 0; then
- $echo "Test 2c.C failed: $xx return code $code differs from expected value 0" 1>&2
- errors=`expr $errors + 1`
-else
- cmp 2c.C.O $srcdir/a3f-0FF > /dev/null 2>&1
- case $? in
- 0) if test "$VERBOSE"; then $echo "passed 2c.C"; fi;;
- 1) $echo "Test 2c.C failed: files 2c.C.O and $srcdir/a3f-0FF differ" 1>&2
- (diff -c 2c.C.O $srcdir/a3f-0FF) 2> /dev/null
- errors=`expr $errors + 1`;;
- 2) $echo "Test 2c.C may have failed." 1>&2
- $echo The command "cmp 2c.C.O $srcdir/a3f-0FF" failed. 1>&2
- errors=`expr $errors + 1`;;
- esac
-fi
-test -s 2c.C.E || rm -f 2c.C.E
-$xx --date-format="-- Date/Time --" -h x -a -3 -f $srcdir/0FFnt > 2d.O 2> 2d.E
-code=$?
-if test $code != 0; then
- $echo "Test 2d failed: $xx return code $code differs from expected value 0" 1>&2
- errors=`expr $errors + 1`
-else
- cmp 2d.O $srcdir/a3f-0FF > /dev/null 2>&1
- case $? in
- 0) if test "$VERBOSE"; then $echo "passed 2d"; fi;;
- 1) $echo "Test 2d failed: files 2d.O and $srcdir/a3f-0FF differ" 1>&2
- (diff -c 2d.O $srcdir/a3f-0FF) 2> /dev/null
- errors=`expr $errors + 1`;;
- 2) $echo "Test 2d may have failed." 1>&2
- $echo The command "cmp 2d.O $srcdir/a3f-0FF" failed. 1>&2
- errors=`expr $errors + 1`;;
- esac
-fi
-test -s 2d.E || rm -f 2d.E
-$xx --date-format="-- Date/Time --" -h x -a --columns=3 -f $srcdir/0FFnt > 2d.C.O 2> 2d.C.E
-code=$?
-if test $code != 0; then
- $echo "Test 2d.C failed: $xx return code $code differs from expected value 0" 1>&2
- errors=`expr $errors + 1`
-else
- cmp 2d.C.O $srcdir/a3f-0FF > /dev/null 2>&1
- case $? in
- 0) if test "$VERBOSE"; then $echo "passed 2d.C"; fi;;
- 1) $echo "Test 2d.C failed: files 2d.C.O and $srcdir/a3f-0FF differ" 1>&2
- (diff -c 2d.C.O $srcdir/a3f-0FF) 2> /dev/null
- errors=`expr $errors + 1`;;
- 2) $echo "Test 2d.C may have failed." 1>&2
- $echo The command "cmp 2d.C.O $srcdir/a3f-0FF" failed. 1>&2
- errors=`expr $errors + 1`;;
- esac
-fi
-test -s 2d.C.E || rm -f 2d.C.E
-$xx --date-format="-- Date/Time --" -h x -b -3 -f $srcdir/0FFt > 2e.O 2> 2e.E
-code=$?
-if test $code != 0; then
- $echo "Test 2e failed: $xx return code $code differs from expected value 0" 1>&2
- errors=`expr $errors + 1`
-else
- cmp 2e.O $srcdir/b3f-0FF > /dev/null 2>&1
- case $? in
- 0) if test "$VERBOSE"; then $echo "passed 2e"; fi;;
- 1) $echo "Test 2e failed: files 2e.O and $srcdir/b3f-0FF differ" 1>&2
- (diff -c 2e.O $srcdir/b3f-0FF) 2> /dev/null
- errors=`expr $errors + 1`;;
- 2) $echo "Test 2e may have failed." 1>&2
- $echo The command "cmp 2e.O $srcdir/b3f-0FF" failed. 1>&2
- errors=`expr $errors + 1`;;
- esac
-fi
-test -s 2e.E || rm -f 2e.E
-$xx --date-format="-- Date/Time --" -h x -b --columns=3 -f $srcdir/0FFt > 2e.C.O 2> 2e.C.E
-code=$?
-if test $code != 0; then
- $echo "Test 2e.C failed: $xx return code $code differs from expected value 0" 1>&2
- errors=`expr $errors + 1`
-else
- cmp 2e.C.O $srcdir/b3f-0FF > /dev/null 2>&1
- case $? in
- 0) if test "$VERBOSE"; then $echo "passed 2e.C"; fi;;
- 1) $echo "Test 2e.C failed: files 2e.C.O and $srcdir/b3f-0FF differ" 1>&2
- (diff -c 2e.C.O $srcdir/b3f-0FF) 2> /dev/null
- errors=`expr $errors + 1`;;
- 2) $echo "Test 2e.C may have failed." 1>&2
- $echo The command "cmp 2e.C.O $srcdir/b3f-0FF" failed. 1>&2
- errors=`expr $errors + 1`;;
- esac
-fi
-test -s 2e.C.E || rm -f 2e.C.E
-$xx --date-format="-- Date/Time --" -h x -b -3 -f $srcdir/0FFnt > 2f.O 2> 2f.E
-code=$?
-if test $code != 0; then
- $echo "Test 2f failed: $xx return code $code differs from expected value 0" 1>&2
- errors=`expr $errors + 1`
-else
- cmp 2f.O $srcdir/b3f-0FF > /dev/null 2>&1
- case $? in
- 0) if test "$VERBOSE"; then $echo "passed 2f"; fi;;
- 1) $echo "Test 2f failed: files 2f.O and $srcdir/b3f-0FF differ" 1>&2
- (diff -c 2f.O $srcdir/b3f-0FF) 2> /dev/null
- errors=`expr $errors + 1`;;
- 2) $echo "Test 2f may have failed." 1>&2
- $echo The command "cmp 2f.O $srcdir/b3f-0FF" failed. 1>&2
- errors=`expr $errors + 1`;;
- esac
-fi
-test -s 2f.E || rm -f 2f.E
-$xx --date-format="-- Date/Time --" -h x -b --columns=3 -f $srcdir/0FFnt > 2f.C.O 2> 2f.C.E
-code=$?
-if test $code != 0; then
- $echo "Test 2f.C failed: $xx return code $code differs from expected value 0" 1>&2
- errors=`expr $errors + 1`
-else
- cmp 2f.C.O $srcdir/b3f-0FF > /dev/null 2>&1
- case $? in
- 0) if test "$VERBOSE"; then $echo "passed 2f.C"; fi;;
- 1) $echo "Test 2f.C failed: files 2f.C.O and $srcdir/b3f-0FF differ" 1>&2
- (diff -c 2f.C.O $srcdir/b3f-0FF) 2> /dev/null
- errors=`expr $errors + 1`;;
- 2) $echo "Test 2f.C may have failed." 1>&2
- $echo The command "cmp 2f.C.O $srcdir/b3f-0FF" failed. 1>&2
- errors=`expr $errors + 1`;;
- esac
-fi
-test -s 2f.C.E || rm -f 2f.C.E
-$xx --date-format="-- Date/Time --" -h x -b -3 -f $srcdir/0FnFt > 2g.O 2> 2g.E
-code=$?
-if test $code != 0; then
- $echo "Test 2g failed: $xx return code $code differs from expected value 0" 1>&2
- errors=`expr $errors + 1`
-else
- cmp 2g.O $srcdir/b3f-0FF > /dev/null 2>&1
- case $? in
- 0) if test "$VERBOSE"; then $echo "passed 2g"; fi;;
- 1) $echo "Test 2g failed: files 2g.O and $srcdir/b3f-0FF differ" 1>&2
- (diff -c 2g.O $srcdir/b3f-0FF) 2> /dev/null
- errors=`expr $errors + 1`;;
- 2) $echo "Test 2g may have failed." 1>&2
- $echo The command "cmp 2g.O $srcdir/b3f-0FF" failed. 1>&2
- errors=`expr $errors + 1`;;
- esac
-fi
-test -s 2g.E || rm -f 2g.E
-$xx --date-format="-- Date/Time --" -h x -b --columns=3 -f $srcdir/0FnFt > 2g.C.O 2> 2g.C.E
-code=$?
-if test $code != 0; then
- $echo "Test 2g.C failed: $xx return code $code differs from expected value 0" 1>&2
- errors=`expr $errors + 1`
-else
- cmp 2g.C.O $srcdir/b3f-0FF > /dev/null 2>&1
- case $? in
- 0) if test "$VERBOSE"; then $echo "passed 2g.C"; fi;;
- 1) $echo "Test 2g.C failed: files 2g.C.O and $srcdir/b3f-0FF differ" 1>&2
- (diff -c 2g.C.O $srcdir/b3f-0FF) 2> /dev/null
- errors=`expr $errors + 1`;;
- 2) $echo "Test 2g.C may have failed." 1>&2
- $echo The command "cmp 2g.C.O $srcdir/b3f-0FF" failed. 1>&2
- errors=`expr $errors + 1`;;
- esac
-fi
-test -s 2g.C.E || rm -f 2g.C.E
-$xx --date-format="-- Date/Time --" -h x -b -3 -f $srcdir/0FnFnt > 2h.O 2> 2h.E
-code=$?
-if test $code != 0; then
- $echo "Test 2h failed: $xx return code $code differs from expected value 0" 1>&2
- errors=`expr $errors + 1`
-else
- cmp 2h.O $srcdir/b3f-0FF > /dev/null 2>&1
- case $? in
- 0) if test "$VERBOSE"; then $echo "passed 2h"; fi;;
- 1) $echo "Test 2h failed: files 2h.O and $srcdir/b3f-0FF differ" 1>&2
- (diff -c 2h.O $srcdir/b3f-0FF) 2> /dev/null
- errors=`expr $errors + 1`;;
- 2) $echo "Test 2h may have failed." 1>&2
- $echo The command "cmp 2h.O $srcdir/b3f-0FF" failed. 1>&2
- errors=`expr $errors + 1`;;
- esac
-fi
-test -s 2h.E || rm -f 2h.E
-$xx --date-format="-- Date/Time --" -h x -b --columns=3 -f $srcdir/0FnFnt > 2h.C.O 2> 2h.C.E
-code=$?
-if test $code != 0; then
- $echo "Test 2h.C failed: $xx return code $code differs from expected value 0" 1>&2
- errors=`expr $errors + 1`
-else
- cmp 2h.C.O $srcdir/b3f-0FF > /dev/null 2>&1
- case $? in
- 0) if test "$VERBOSE"; then $echo "passed 2h.C"; fi;;
- 1) $echo "Test 2h.C failed: files 2h.C.O and $srcdir/b3f-0FF differ" 1>&2
- (diff -c 2h.C.O $srcdir/b3f-0FF) 2> /dev/null
- errors=`expr $errors + 1`;;
- 2) $echo "Test 2h.C may have failed." 1>&2
- $echo The command "cmp 2h.C.O $srcdir/b3f-0FF" failed. 1>&2
- errors=`expr $errors + 1`;;
- esac
-fi
-test -s 2h.C.E || rm -f 2h.C.E
-$xx --date-format="-- Date/Time --" -h x +3 -b -3 -f $srcdir/0FFt > 2i.O 2> 2i.E
-code=$?
-if test $code != 0; then
- $echo "Test 2i failed: $xx return code $code differs from expected value 0" 1>&2
- errors=`expr $errors + 1`
-else
- cmp 2i.O $srcdir/3b3f-0FF > /dev/null 2>&1
- case $? in
- 0) if test "$VERBOSE"; then $echo "passed 2i"; fi;;
- 1) $echo "Test 2i failed: files 2i.O and $srcdir/3b3f-0FF differ" 1>&2
- (diff -c 2i.O $srcdir/3b3f-0FF) 2> /dev/null
- errors=`expr $errors + 1`;;
- 2) $echo "Test 2i may have failed." 1>&2
- $echo The command "cmp 2i.O $srcdir/3b3f-0FF" failed. 1>&2
- errors=`expr $errors + 1`;;
- esac
-fi
-test -s 2i.E || rm -f 2i.E
-$xx --date-format="-- Date/Time --" -h x +3 -b --columns=3 -f $srcdir/0FFt > 2i.C.O 2> 2i.C.E
-code=$?
-if test $code != 0; then
- $echo "Test 2i.C failed: $xx return code $code differs from expected value 0" 1>&2
- errors=`expr $errors + 1`
-else
- cmp 2i.C.O $srcdir/3b3f-0FF > /dev/null 2>&1
- case $? in
- 0) if test "$VERBOSE"; then $echo "passed 2i.C"; fi;;
- 1) $echo "Test 2i.C failed: files 2i.C.O and $srcdir/3b3f-0FF differ" 1>&2
- (diff -c 2i.C.O $srcdir/3b3f-0FF) 2> /dev/null
- errors=`expr $errors + 1`;;
- 2) $echo "Test 2i.C may have failed." 1>&2
- $echo The command "cmp 2i.C.O $srcdir/3b3f-0FF" failed. 1>&2
- errors=`expr $errors + 1`;;
- esac
-fi
-test -s 2i.C.E || rm -f 2i.C.E
-$xx --date-format="-- Date/Time --" -h x +3 -b -3 -f $srcdir/0FFnt > 2j.O 2> 2j.E
-code=$?
-if test $code != 0; then
- $echo "Test 2j failed: $xx return code $code differs from expected value 0" 1>&2
- errors=`expr $errors + 1`
-else
- cmp 2j.O $srcdir/3b3f-0FF > /dev/null 2>&1
- case $? in
- 0) if test "$VERBOSE"; then $echo "passed 2j"; fi;;
- 1) $echo "Test 2j failed: files 2j.O and $srcdir/3b3f-0FF differ" 1>&2
- (diff -c 2j.O $srcdir/3b3f-0FF) 2> /dev/null
- errors=`expr $errors + 1`;;
- 2) $echo "Test 2j may have failed." 1>&2
- $echo The command "cmp 2j.O $srcdir/3b3f-0FF" failed. 1>&2
- errors=`expr $errors + 1`;;
- esac
-fi
-test -s 2j.E || rm -f 2j.E
-$xx --date-format="-- Date/Time --" -h x +3 -b --columns=3 -f $srcdir/0FFnt > 2j.C.O 2> 2j.C.E
-code=$?
-if test $code != 0; then
- $echo "Test 2j.C failed: $xx return code $code differs from expected value 0" 1>&2
- errors=`expr $errors + 1`
-else
- cmp 2j.C.O $srcdir/3b3f-0FF > /dev/null 2>&1
- case $? in
- 0) if test "$VERBOSE"; then $echo "passed 2j.C"; fi;;
- 1) $echo "Test 2j.C failed: files 2j.C.O and $srcdir/3b3f-0FF differ" 1>&2
- (diff -c 2j.C.O $srcdir/3b3f-0FF) 2> /dev/null
- errors=`expr $errors + 1`;;
- 2) $echo "Test 2j.C may have failed." 1>&2
- $echo The command "cmp 2j.C.O $srcdir/3b3f-0FF" failed. 1>&2
- errors=`expr $errors + 1`;;
- esac
-fi
-test -s 2j.C.E || rm -f 2j.C.E
-$xx --date-format="-- Date/Time --" -h x $srcdir/FFn > 3a.O 2> 3a.E
-code=$?
-if test $code != 0; then
- $echo "Test 3a failed: $xx return code $code differs from expected value 0" 1>&2
- errors=`expr $errors + 1`
-else
- cmp 3a.O $srcdir/FF > /dev/null 2>&1
- case $? in
- 0) if test "$VERBOSE"; then $echo "passed 3a"; fi;;
- 1) $echo "Test 3a failed: files 3a.O and $srcdir/FF differ" 1>&2
- (diff -c 3a.O $srcdir/FF) 2> /dev/null
- errors=`expr $errors + 1`;;
- 2) $echo "Test 3a may have failed." 1>&2
- $echo The command "cmp 3a.O $srcdir/FF" failed. 1>&2
- errors=`expr $errors + 1`;;
- esac
-fi
-test -s 3a.E || rm -f 3a.E
-$xx --date-format="-- Date/Time --" -h x $srcdir/FnFn > 3b.O 2> 3b.E
-code=$?
-if test $code != 0; then
- $echo "Test 3b failed: $xx return code $code differs from expected value 0" 1>&2
- errors=`expr $errors + 1`
-else
- cmp 3b.O $srcdir/FF > /dev/null 2>&1
- case $? in
- 0) if test "$VERBOSE"; then $echo "passed 3b"; fi;;
- 1) $echo "Test 3b failed: files 3b.O and $srcdir/FF differ" 1>&2
- (diff -c 3b.O $srcdir/FF) 2> /dev/null
- errors=`expr $errors + 1`;;
- 2) $echo "Test 3b may have failed." 1>&2
- $echo The command "cmp 3b.O $srcdir/FF" failed. 1>&2
- errors=`expr $errors + 1`;;
- esac
-fi
-test -s 3b.E || rm -f 3b.E
-$xx --date-format="-- Date/Time --" -h x +3 $srcdir/FFn > 3c.O 2> 3c.E
-code=$?
-if test $code != 0; then
- $echo "Test 3c failed: $xx return code $code differs from expected value 0" 1>&2
- errors=`expr $errors + 1`
-else
- cmp 3c.O $srcdir/3-FF > /dev/null 2>&1
- case $? in
- 0) if test "$VERBOSE"; then $echo "passed 3c"; fi;;
- 1) $echo "Test 3c failed: files 3c.O and $srcdir/3-FF differ" 1>&2
- (diff -c 3c.O $srcdir/3-FF) 2> /dev/null
- errors=`expr $errors + 1`;;
- 2) $echo "Test 3c may have failed." 1>&2
- $echo The command "cmp 3c.O $srcdir/3-FF" failed. 1>&2
- errors=`expr $errors + 1`;;
- esac
-fi
-test -s 3c.E || rm -f 3c.E
-$xx --date-format="-- Date/Time --" -h x +3 -f $srcdir/FFn > 3d.O 2> 3d.E
-code=$?
-if test $code != 0; then
- $echo "Test 3d failed: $xx return code $code differs from expected value 0" 1>&2
- errors=`expr $errors + 1`
-else
- cmp 3d.O $srcdir/3f-FF > /dev/null 2>&1
- case $? in
- 0) if test "$VERBOSE"; then $echo "passed 3d"; fi;;
- 1) $echo "Test 3d failed: files 3d.O and $srcdir/3f-FF differ" 1>&2
- (diff -c 3d.O $srcdir/3f-FF) 2> /dev/null
- errors=`expr $errors + 1`;;
- 2) $echo "Test 3d may have failed." 1>&2
- $echo The command "cmp 3d.O $srcdir/3f-FF" failed. 1>&2
- errors=`expr $errors + 1`;;
- esac
-fi
-test -s 3d.E || rm -f 3d.E
-$xx --date-format="-- Date/Time --" -h x -a -3 -f $srcdir/FFn > 3e.O 2> 3e.E
-code=$?
-if test $code != 0; then
- $echo "Test 3e failed: $xx return code $code differs from expected value 0" 1>&2
- errors=`expr $errors + 1`
-else
- cmp 3e.O $srcdir/a3f-FF > /dev/null 2>&1
- case $? in
- 0) if test "$VERBOSE"; then $echo "passed 3e"; fi;;
- 1) $echo "Test 3e failed: files 3e.O and $srcdir/a3f-FF differ" 1>&2
- (diff -c 3e.O $srcdir/a3f-FF) 2> /dev/null
- errors=`expr $errors + 1`;;
- 2) $echo "Test 3e may have failed." 1>&2
- $echo The command "cmp 3e.O $srcdir/a3f-FF" failed. 1>&2
- errors=`expr $errors + 1`;;
- esac
-fi
-test -s 3e.E || rm -f 3e.E
-$xx --date-format="-- Date/Time --" -h x -a --columns=3 -f $srcdir/FFn > 3e.C.O 2> 3e.C.E
-code=$?
-if test $code != 0; then
- $echo "Test 3e.C failed: $xx return code $code differs from expected value 0" 1>&2
- errors=`expr $errors + 1`
-else
- cmp 3e.C.O $srcdir/a3f-FF > /dev/null 2>&1
- case $? in
- 0) if test "$VERBOSE"; then $echo "passed 3e.C"; fi;;
- 1) $echo "Test 3e.C failed: files 3e.C.O and $srcdir/a3f-FF differ" 1>&2
- (diff -c 3e.C.O $srcdir/a3f-FF) 2> /dev/null
- errors=`expr $errors + 1`;;
- 2) $echo "Test 3e.C may have failed." 1>&2
- $echo The command "cmp 3e.C.O $srcdir/a3f-FF" failed. 1>&2
- errors=`expr $errors + 1`;;
- esac
-fi
-test -s 3e.C.E || rm -f 3e.C.E
-$xx --date-format="-- Date/Time --" -h x -a -3 -f $srcdir/FFtn > 3f.O 2> 3f.E
-code=$?
-if test $code != 0; then
- $echo "Test 3f failed: $xx return code $code differs from expected value 0" 1>&2
- errors=`expr $errors + 1`
-else
- cmp 3f.O $srcdir/a3f-FF > /dev/null 2>&1
- case $? in
- 0) if test "$VERBOSE"; then $echo "passed 3f"; fi;;
- 1) $echo "Test 3f failed: files 3f.O and $srcdir/a3f-FF differ" 1>&2
- (diff -c 3f.O $srcdir/a3f-FF) 2> /dev/null
- errors=`expr $errors + 1`;;
- 2) $echo "Test 3f may have failed." 1>&2
- $echo The command "cmp 3f.O $srcdir/a3f-FF" failed. 1>&2
- errors=`expr $errors + 1`;;
- esac
-fi
-test -s 3f.E || rm -f 3f.E
-$xx --date-format="-- Date/Time --" -h x -a --columns=3 -f $srcdir/FFtn > 3f.C.O 2> 3f.C.E
-code=$?
-if test $code != 0; then
- $echo "Test 3f.C failed: $xx return code $code differs from expected value 0" 1>&2
- errors=`expr $errors + 1`
-else
- cmp 3f.C.O $srcdir/a3f-FF > /dev/null 2>&1
- case $? in
- 0) if test "$VERBOSE"; then $echo "passed 3f.C"; fi;;
- 1) $echo "Test 3f.C failed: files 3f.C.O and $srcdir/a3f-FF differ" 1>&2
- (diff -c 3f.C.O $srcdir/a3f-FF) 2> /dev/null
- errors=`expr $errors + 1`;;
- 2) $echo "Test 3f.C may have failed." 1>&2
- $echo The command "cmp 3f.C.O $srcdir/a3f-FF" failed. 1>&2
- errors=`expr $errors + 1`;;
- esac
-fi
-test -s 3f.C.E || rm -f 3f.C.E
-$xx --date-format="-- Date/Time --" -h x -b -3 -f $srcdir/FFn > 3g.O 2> 3g.E
-code=$?
-if test $code != 0; then
- $echo "Test 3g failed: $xx return code $code differs from expected value 0" 1>&2
- errors=`expr $errors + 1`
-else
- cmp 3g.O $srcdir/b3f-FF > /dev/null 2>&1
- case $? in
- 0) if test "$VERBOSE"; then $echo "passed 3g"; fi;;
- 1) $echo "Test 3g failed: files 3g.O and $srcdir/b3f-FF differ" 1>&2
- (diff -c 3g.O $srcdir/b3f-FF) 2> /dev/null
- errors=`expr $errors + 1`;;
- 2) $echo "Test 3g may have failed." 1>&2
- $echo The command "cmp 3g.O $srcdir/b3f-FF" failed. 1>&2
- errors=`expr $errors + 1`;;
- esac
-fi
-test -s 3g.E || rm -f 3g.E
-$xx --date-format="-- Date/Time --" -h x -b --columns=3 -f $srcdir/FFn > 3g.C.O 2> 3g.C.E
-code=$?
-if test $code != 0; then
- $echo "Test 3g.C failed: $xx return code $code differs from expected value 0" 1>&2
- errors=`expr $errors + 1`
-else
- cmp 3g.C.O $srcdir/b3f-FF > /dev/null 2>&1
- case $? in
- 0) if test "$VERBOSE"; then $echo "passed 3g.C"; fi;;
- 1) $echo "Test 3g.C failed: files 3g.C.O and $srcdir/b3f-FF differ" 1>&2
- (diff -c 3g.C.O $srcdir/b3f-FF) 2> /dev/null
- errors=`expr $errors + 1`;;
- 2) $echo "Test 3g.C may have failed." 1>&2
- $echo The command "cmp 3g.C.O $srcdir/b3f-FF" failed. 1>&2
- errors=`expr $errors + 1`;;
- esac
-fi
-test -s 3g.C.E || rm -f 3g.C.E
-$xx --date-format="-- Date/Time --" -h x -b -3 -f $srcdir/FFtn > 3h.O 2> 3h.E
-code=$?
-if test $code != 0; then
- $echo "Test 3h failed: $xx return code $code differs from expected value 0" 1>&2
- errors=`expr $errors + 1`
-else
- cmp 3h.O $srcdir/b3f-FF > /dev/null 2>&1
- case $? in
- 0) if test "$VERBOSE"; then $echo "passed 3h"; fi;;
- 1) $echo "Test 3h failed: files 3h.O and $srcdir/b3f-FF differ" 1>&2
- (diff -c 3h.O $srcdir/b3f-FF) 2> /dev/null
- errors=`expr $errors + 1`;;
- 2) $echo "Test 3h may have failed." 1>&2
- $echo The command "cmp 3h.O $srcdir/b3f-FF" failed. 1>&2
- errors=`expr $errors + 1`;;
- esac
-fi
-test -s 3h.E || rm -f 3h.E
-$xx --date-format="-- Date/Time --" -h x -b --columns=3 -f $srcdir/FFtn > 3h.C.O 2> 3h.C.E
-code=$?
-if test $code != 0; then
- $echo "Test 3h.C failed: $xx return code $code differs from expected value 0" 1>&2
- errors=`expr $errors + 1`
-else
- cmp 3h.C.O $srcdir/b3f-FF > /dev/null 2>&1
- case $? in
- 0) if test "$VERBOSE"; then $echo "passed 3h.C"; fi;;
- 1) $echo "Test 3h.C failed: files 3h.C.O and $srcdir/b3f-FF differ" 1>&2
- (diff -c 3h.C.O $srcdir/b3f-FF) 2> /dev/null
- errors=`expr $errors + 1`;;
- 2) $echo "Test 3h.C may have failed." 1>&2
- $echo The command "cmp 3h.C.O $srcdir/b3f-FF" failed. 1>&2
- errors=`expr $errors + 1`;;
- esac
-fi
-test -s 3h.C.E || rm -f 3h.C.E
-$xx --date-format="-- Date/Time --" -h x -b -3 -f $srcdir/FnFn > 3i.O 2> 3i.E
-code=$?
-if test $code != 0; then
- $echo "Test 3i failed: $xx return code $code differs from expected value 0" 1>&2
- errors=`expr $errors + 1`
-else
- cmp 3i.O $srcdir/b3f-FF > /dev/null 2>&1
- case $? in
- 0) if test "$VERBOSE"; then $echo "passed 3i"; fi;;
- 1) $echo "Test 3i failed: files 3i.O and $srcdir/b3f-FF differ" 1>&2
- (diff -c 3i.O $srcdir/b3f-FF) 2> /dev/null
- errors=`expr $errors + 1`;;
- 2) $echo "Test 3i may have failed." 1>&2
- $echo The command "cmp 3i.O $srcdir/b3f-FF" failed. 1>&2
- errors=`expr $errors + 1`;;
- esac
-fi
-test -s 3i.E || rm -f 3i.E
-$xx --date-format="-- Date/Time --" -h x -b --columns=3 -f $srcdir/FnFn > 3i.C.O 2> 3i.C.E
-code=$?
-if test $code != 0; then
- $echo "Test 3i.C failed: $xx return code $code differs from expected value 0" 1>&2
- errors=`expr $errors + 1`
-else
- cmp 3i.C.O $srcdir/b3f-FF > /dev/null 2>&1
- case $? in
- 0) if test "$VERBOSE"; then $echo "passed 3i.C"; fi;;
- 1) $echo "Test 3i.C failed: files 3i.C.O and $srcdir/b3f-FF differ" 1>&2
- (diff -c 3i.C.O $srcdir/b3f-FF) 2> /dev/null
- errors=`expr $errors + 1`;;
- 2) $echo "Test 3i.C may have failed." 1>&2
- $echo The command "cmp 3i.C.O $srcdir/b3f-FF" failed. 1>&2
- errors=`expr $errors + 1`;;
- esac
-fi
-test -s 3i.C.E || rm -f 3i.C.E
-$xx --date-format="-- Date/Time --" -h x -b -3 -f $srcdir/tFFn > 3j.O 2> 3j.E
-code=$?
-if test $code != 0; then
- $echo "Test 3j failed: $xx return code $code differs from expected value 0" 1>&2
- errors=`expr $errors + 1`
-else
- cmp 3j.O $srcdir/b3f-FF > /dev/null 2>&1
- case $? in
- 0) if test "$VERBOSE"; then $echo "passed 3j"; fi;;
- 1) $echo "Test 3j failed: files 3j.O and $srcdir/b3f-FF differ" 1>&2
- (diff -c 3j.O $srcdir/b3f-FF) 2> /dev/null
- errors=`expr $errors + 1`;;
- 2) $echo "Test 3j may have failed." 1>&2
- $echo The command "cmp 3j.O $srcdir/b3f-FF" failed. 1>&2
- errors=`expr $errors + 1`;;
- esac
-fi
-test -s 3j.E || rm -f 3j.E
-$xx --date-format="-- Date/Time --" -h x -b --columns=3 -f $srcdir/tFFn > 3j.C.O 2> 3j.C.E
-code=$?
-if test $code != 0; then
- $echo "Test 3j.C failed: $xx return code $code differs from expected value 0" 1>&2
- errors=`expr $errors + 1`
-else
- cmp 3j.C.O $srcdir/b3f-FF > /dev/null 2>&1
- case $? in
- 0) if test "$VERBOSE"; then $echo "passed 3j.C"; fi;;
- 1) $echo "Test 3j.C failed: files 3j.C.O and $srcdir/b3f-FF differ" 1>&2
- (diff -c 3j.C.O $srcdir/b3f-FF) 2> /dev/null
- errors=`expr $errors + 1`;;
- 2) $echo "Test 3j.C may have failed." 1>&2
- $echo The command "cmp 3j.C.O $srcdir/b3f-FF" failed. 1>&2
- errors=`expr $errors + 1`;;
- esac
-fi
-test -s 3j.C.E || rm -f 3j.C.E
-$xx --date-format="-- Date/Time --" -h x -b -3 -f $srcdir/tFnFt > 3k.O 2> 3k.E
-code=$?
-if test $code != 0; then
- $echo "Test 3k failed: $xx return code $code differs from expected value 0" 1>&2
- errors=`expr $errors + 1`
-else
- cmp 3k.O $srcdir/b3f-FF > /dev/null 2>&1
- case $? in
- 0) if test "$VERBOSE"; then $echo "passed 3k"; fi;;
- 1) $echo "Test 3k failed: files 3k.O and $srcdir/b3f-FF differ" 1>&2
- (diff -c 3k.O $srcdir/b3f-FF) 2> /dev/null
- errors=`expr $errors + 1`;;
- 2) $echo "Test 3k may have failed." 1>&2
- $echo The command "cmp 3k.O $srcdir/b3f-FF" failed. 1>&2
- errors=`expr $errors + 1`;;
- esac
-fi
-test -s 3k.E || rm -f 3k.E
-$xx --date-format="-- Date/Time --" -h x -b --columns=3 -f $srcdir/tFnFt > 3k.C.O 2> 3k.C.E
-code=$?
-if test $code != 0; then
- $echo "Test 3k.C failed: $xx return code $code differs from expected value 0" 1>&2
- errors=`expr $errors + 1`
-else
- cmp 3k.C.O $srcdir/b3f-FF > /dev/null 2>&1
- case $? in
- 0) if test "$VERBOSE"; then $echo "passed 3k.C"; fi;;
- 1) $echo "Test 3k.C failed: files 3k.C.O and $srcdir/b3f-FF differ" 1>&2
- (diff -c 3k.C.O $srcdir/b3f-FF) 2> /dev/null
- errors=`expr $errors + 1`;;
- 2) $echo "Test 3k.C may have failed." 1>&2
- $echo The command "cmp 3k.C.O $srcdir/b3f-FF" failed. 1>&2
- errors=`expr $errors + 1`;;
- esac
-fi
-test -s 3k.C.E || rm -f 3k.C.E
-$xx --date-format="-- Date/Time --" -h x +3 -b -3 -f $srcdir/FFn > 3l.O 2> 3l.E
-code=$?
-if test $code != 0; then
- $echo "Test 3l failed: $xx return code $code differs from expected value 0" 1>&2
- errors=`expr $errors + 1`
-else
- cmp 3l.O $srcdir/3b3f-FF > /dev/null 2>&1
- case $? in
- 0) if test "$VERBOSE"; then $echo "passed 3l"; fi;;
- 1) $echo "Test 3l failed: files 3l.O and $srcdir/3b3f-FF differ" 1>&2
- (diff -c 3l.O $srcdir/3b3f-FF) 2> /dev/null
- errors=`expr $errors + 1`;;
- 2) $echo "Test 3l may have failed." 1>&2
- $echo The command "cmp 3l.O $srcdir/3b3f-FF" failed. 1>&2
- errors=`expr $errors + 1`;;
- esac
-fi
-test -s 3l.E || rm -f 3l.E
-$xx --date-format="-- Date/Time --" -h x +3 -b --columns=3 -f $srcdir/FFn > 3l.C.O 2> 3l.C.E
-code=$?
-if test $code != 0; then
- $echo "Test 3l.C failed: $xx return code $code differs from expected value 0" 1>&2
- errors=`expr $errors + 1`
-else
- cmp 3l.C.O $srcdir/3b3f-FF > /dev/null 2>&1
- case $? in
- 0) if test "$VERBOSE"; then $echo "passed 3l.C"; fi;;
- 1) $echo "Test 3l.C failed: files 3l.C.O and $srcdir/3b3f-FF differ" 1>&2
- (diff -c 3l.C.O $srcdir/3b3f-FF) 2> /dev/null
- errors=`expr $errors + 1`;;
- 2) $echo "Test 3l.C may have failed." 1>&2
- $echo The command "cmp 3l.C.O $srcdir/3b3f-FF" failed. 1>&2
- errors=`expr $errors + 1`;;
- esac
-fi
-test -s 3l.C.E || rm -f 3l.C.E
-$xx --date-format="-- Date/Time --" -h x +3 -b -3 -f $srcdir/FFtn > 3m.O 2> 3m.E
-code=$?
-if test $code != 0; then
- $echo "Test 3m failed: $xx return code $code differs from expected value 0" 1>&2
- errors=`expr $errors + 1`
-else
- cmp 3m.O $srcdir/3b3f-FF > /dev/null 2>&1
- case $? in
- 0) if test "$VERBOSE"; then $echo "passed 3m"; fi;;
- 1) $echo "Test 3m failed: files 3m.O and $srcdir/3b3f-FF differ" 1>&2
- (diff -c 3m.O $srcdir/3b3f-FF) 2> /dev/null
- errors=`expr $errors + 1`;;
- 2) $echo "Test 3m may have failed." 1>&2
- $echo The command "cmp 3m.O $srcdir/3b3f-FF" failed. 1>&2
- errors=`expr $errors + 1`;;
- esac
-fi
-test -s 3m.E || rm -f 3m.E
-$xx --date-format="-- Date/Time --" -h x +3 -b --columns=3 -f $srcdir/FFtn > 3m.C.O 2> 3m.C.E
-code=$?
-if test $code != 0; then
- $echo "Test 3m.C failed: $xx return code $code differs from expected value 0" 1>&2
- errors=`expr $errors + 1`
-else
- cmp 3m.C.O $srcdir/3b3f-FF > /dev/null 2>&1
- case $? in
- 0) if test "$VERBOSE"; then $echo "passed 3m.C"; fi;;
- 1) $echo "Test 3m.C failed: files 3m.C.O and $srcdir/3b3f-FF differ" 1>&2
- (diff -c 3m.C.O $srcdir/3b3f-FF) 2> /dev/null
- errors=`expr $errors + 1`;;
- 2) $echo "Test 3m.C may have failed." 1>&2
- $echo The command "cmp 3m.C.O $srcdir/3b3f-FF" failed. 1>&2
- errors=`expr $errors + 1`;;
- esac
-fi
-test -s 3m.C.E || rm -f 3m.C.E
-$xx --date-format="-- Date/Time --" -h x -l 24 $srcdir/FFn > 3la.O 2> 3la.E
-code=$?
-if test $code != 0; then
- $echo "Test 3la failed: $xx return code $code differs from expected value 0" 1>&2
- errors=`expr $errors + 1`
-else
- cmp 3la.O $srcdir/l24-FF > /dev/null 2>&1
- case $? in
- 0) if test "$VERBOSE"; then $echo "passed 3la"; fi;;
- 1) $echo "Test 3la failed: files 3la.O and $srcdir/l24-FF differ" 1>&2
- (diff -c 3la.O $srcdir/l24-FF) 2> /dev/null
- errors=`expr $errors + 1`;;
- 2) $echo "Test 3la may have failed." 1>&2
- $echo The command "cmp 3la.O $srcdir/l24-FF" failed. 1>&2
- errors=`expr $errors + 1`;;
- esac
-fi
-test -s 3la.E || rm -f 3la.E
-$xx --date-format="-- Date/Time --" -h x -l 24 $srcdir/FFtn > 3lb.O 2> 3lb.E
-code=$?
-if test $code != 0; then
- $echo "Test 3lb failed: $xx return code $code differs from expected value 0" 1>&2
- errors=`expr $errors + 1`
-else
- cmp 3lb.O $srcdir/l24-FF > /dev/null 2>&1
- case $? in
- 0) if test "$VERBOSE"; then $echo "passed 3lb"; fi;;
- 1) $echo "Test 3lb failed: files 3lb.O and $srcdir/l24-FF differ" 1>&2
- (diff -c 3lb.O $srcdir/l24-FF) 2> /dev/null
- errors=`expr $errors + 1`;;
- 2) $echo "Test 3lb may have failed." 1>&2
- $echo The command "cmp 3lb.O $srcdir/l24-FF" failed. 1>&2
- errors=`expr $errors + 1`;;
- esac
-fi
-test -s 3lb.E || rm -f 3lb.E
-$xx --date-format="-- Date/Time --" -h x -l 24 $srcdir/FnFn > 3lc.O 2> 3lc.E
-code=$?
-if test $code != 0; then
- $echo "Test 3lc failed: $xx return code $code differs from expected value 0" 1>&2
- errors=`expr $errors + 1`
-else
- cmp 3lc.O $srcdir/l24-FF > /dev/null 2>&1
- case $? in
- 0) if test "$VERBOSE"; then $echo "passed 3lc"; fi;;
- 1) $echo "Test 3lc failed: files 3lc.O and $srcdir/l24-FF differ" 1>&2
- (diff -c 3lc.O $srcdir/l24-FF) 2> /dev/null
- errors=`expr $errors + 1`;;
- 2) $echo "Test 3lc may have failed." 1>&2
- $echo The command "cmp 3lc.O $srcdir/l24-FF" failed. 1>&2
- errors=`expr $errors + 1`;;
- esac
-fi
-test -s 3lc.E || rm -f 3lc.E
-$xx --date-format="-- Date/Time --" -h x -l 24 $srcdir/tFFn > 3ld.O 2> 3ld.E
-code=$?
-if test $code != 0; then
- $echo "Test 3ld failed: $xx return code $code differs from expected value 0" 1>&2
- errors=`expr $errors + 1`
-else
- cmp 3ld.O $srcdir/l24-FF > /dev/null 2>&1
- case $? in
- 0) if test "$VERBOSE"; then $echo "passed 3ld"; fi;;
- 1) $echo "Test 3ld failed: files 3ld.O and $srcdir/l24-FF differ" 1>&2
- (diff -c 3ld.O $srcdir/l24-FF) 2> /dev/null
- errors=`expr $errors + 1`;;
- 2) $echo "Test 3ld may have failed." 1>&2
- $echo The command "cmp 3ld.O $srcdir/l24-FF" failed. 1>&2
- errors=`expr $errors + 1`;;
- esac
-fi
-test -s 3ld.E || rm -f 3ld.E
-$xx --date-format="-- Date/Time --" -h x -l 24 $srcdir/tFnFt > 3le.O 2> 3le.E
-code=$?
-if test $code != 0; then
- $echo "Test 3le failed: $xx return code $code differs from expected value 0" 1>&2
- errors=`expr $errors + 1`
-else
- cmp 3le.O $srcdir/l24-FF > /dev/null 2>&1
- case $? in
- 0) if test "$VERBOSE"; then $echo "passed 3le"; fi;;
- 1) $echo "Test 3le failed: files 3le.O and $srcdir/l24-FF differ" 1>&2
- (diff -c 3le.O $srcdir/l24-FF) 2> /dev/null
- errors=`expr $errors + 1`;;
- 2) $echo "Test 3le may have failed." 1>&2
- $echo The command "cmp 3le.O $srcdir/l24-FF" failed. 1>&2
- errors=`expr $errors + 1`;;
- esac
-fi
-test -s 3le.E || rm -f 3le.E
-$xx --date-format="-- Date/Time --" -h x -l 24 $srcdir/tFFt > 3lf.O 2> 3lf.E
-code=$?
-if test $code != 0; then
- $echo "Test 3lf failed: $xx return code $code differs from expected value 0" 1>&2
- errors=`expr $errors + 1`
-else
- cmp 3lf.O $srcdir/l24-FF > /dev/null 2>&1
- case $? in
- 0) if test "$VERBOSE"; then $echo "passed 3lf"; fi;;
- 1) $echo "Test 3lf failed: files 3lf.O and $srcdir/l24-FF differ" 1>&2
- (diff -c 3lf.O $srcdir/l24-FF) 2> /dev/null
- errors=`expr $errors + 1`;;
- 2) $echo "Test 3lf may have failed." 1>&2
- $echo The command "cmp 3lf.O $srcdir/l24-FF" failed. 1>&2
- errors=`expr $errors + 1`;;
- esac
-fi
-test -s 3lf.E || rm -f 3lf.E
-$xx --date-format="-- Date/Time --" -h x -a -2 -l 17 $srcdir/FFn > 3aa.O 2> 3aa.E
-code=$?
-if test $code != 0; then
- $echo "Test 3aa failed: $xx return code $code differs from expected value 0" 1>&2
- errors=`expr $errors + 1`
-else
- cmp 3aa.O $srcdir/a2l17-FF > /dev/null 2>&1
- case $? in
- 0) if test "$VERBOSE"; then $echo "passed 3aa"; fi;;
- 1) $echo "Test 3aa failed: files 3aa.O and $srcdir/a2l17-FF differ" 1>&2
- (diff -c 3aa.O $srcdir/a2l17-FF) 2> /dev/null
- errors=`expr $errors + 1`;;
- 2) $echo "Test 3aa may have failed." 1>&2
- $echo The command "cmp 3aa.O $srcdir/a2l17-FF" failed. 1>&2
- errors=`expr $errors + 1`;;
- esac
-fi
-test -s 3aa.E || rm -f 3aa.E
-$xx --date-format="-- Date/Time --" -h x -a --columns=2 -l 17 $srcdir/FFn > 3aa.C.O 2> 3aa.C.E
-code=$?
-if test $code != 0; then
- $echo "Test 3aa.C failed: $xx return code $code differs from expected value 0" 1>&2
- errors=`expr $errors + 1`
-else
- cmp 3aa.C.O $srcdir/a2l17-FF > /dev/null 2>&1
- case $? in
- 0) if test "$VERBOSE"; then $echo "passed 3aa.C"; fi;;
- 1) $echo "Test 3aa.C failed: files 3aa.C.O and $srcdir/a2l17-FF differ" 1>&2
- (diff -c 3aa.C.O $srcdir/a2l17-FF) 2> /dev/null
- errors=`expr $errors + 1`;;
- 2) $echo "Test 3aa.C may have failed." 1>&2
- $echo The command "cmp 3aa.C.O $srcdir/a2l17-FF" failed. 1>&2
- errors=`expr $errors + 1`;;
- esac
-fi
-test -s 3aa.C.E || rm -f 3aa.C.E
-$xx --date-format="-- Date/Time --" -h x -a -2 -l 17 $srcdir/FFtn > 3ab.O 2> 3ab.E
-code=$?
-if test $code != 0; then
- $echo "Test 3ab failed: $xx return code $code differs from expected value 0" 1>&2
- errors=`expr $errors + 1`
-else
- cmp 3ab.O $srcdir/a2l17-FF > /dev/null 2>&1
- case $? in
- 0) if test "$VERBOSE"; then $echo "passed 3ab"; fi;;
- 1) $echo "Test 3ab failed: files 3ab.O and $srcdir/a2l17-FF differ" 1>&2
- (diff -c 3ab.O $srcdir/a2l17-FF) 2> /dev/null
- errors=`expr $errors + 1`;;
- 2) $echo "Test 3ab may have failed." 1>&2
- $echo The command "cmp 3ab.O $srcdir/a2l17-FF" failed. 1>&2
- errors=`expr $errors + 1`;;
- esac
-fi
-test -s 3ab.E || rm -f 3ab.E
-$xx --date-format="-- Date/Time --" -h x -a --columns=2 -l 17 $srcdir/FFtn > 3ab.C.O 2> 3ab.C.E
-code=$?
-if test $code != 0; then
- $echo "Test 3ab.C failed: $xx return code $code differs from expected value 0" 1>&2
- errors=`expr $errors + 1`
-else
- cmp 3ab.C.O $srcdir/a2l17-FF > /dev/null 2>&1
- case $? in
- 0) if test "$VERBOSE"; then $echo "passed 3ab.C"; fi;;
- 1) $echo "Test 3ab.C failed: files 3ab.C.O and $srcdir/a2l17-FF differ" 1>&2
- (diff -c 3ab.C.O $srcdir/a2l17-FF) 2> /dev/null
- errors=`expr $errors + 1`;;
- 2) $echo "Test 3ab.C may have failed." 1>&2
- $echo The command "cmp 3ab.C.O $srcdir/a2l17-FF" failed. 1>&2
- errors=`expr $errors + 1`;;
- esac
-fi
-test -s 3ab.C.E || rm -f 3ab.C.E
-$xx --date-format="-- Date/Time --" -h x -a -2 -l 17 $srcdir/FnFn > 3ac.O 2> 3ac.E
-code=$?
-if test $code != 0; then
- $echo "Test 3ac failed: $xx return code $code differs from expected value 0" 1>&2
- errors=`expr $errors + 1`
-else
- cmp 3ac.O $srcdir/a2l17-FF > /dev/null 2>&1
- case $? in
- 0) if test "$VERBOSE"; then $echo "passed 3ac"; fi;;
- 1) $echo "Test 3ac failed: files 3ac.O and $srcdir/a2l17-FF differ" 1>&2
- (diff -c 3ac.O $srcdir/a2l17-FF) 2> /dev/null
- errors=`expr $errors + 1`;;
- 2) $echo "Test 3ac may have failed." 1>&2
- $echo The command "cmp 3ac.O $srcdir/a2l17-FF" failed. 1>&2
- errors=`expr $errors + 1`;;
- esac
-fi
-test -s 3ac.E || rm -f 3ac.E
-$xx --date-format="-- Date/Time --" -h x -a --columns=2 -l 17 $srcdir/FnFn > 3ac.C.O 2> 3ac.C.E
-code=$?
-if test $code != 0; then
- $echo "Test 3ac.C failed: $xx return code $code differs from expected value 0" 1>&2
- errors=`expr $errors + 1`
-else
- cmp 3ac.C.O $srcdir/a2l17-FF > /dev/null 2>&1
- case $? in
- 0) if test "$VERBOSE"; then $echo "passed 3ac.C"; fi;;
- 1) $echo "Test 3ac.C failed: files 3ac.C.O and $srcdir/a2l17-FF differ" 1>&2
- (diff -c 3ac.C.O $srcdir/a2l17-FF) 2> /dev/null
- errors=`expr $errors + 1`;;
- 2) $echo "Test 3ac.C may have failed." 1>&2
- $echo The command "cmp 3ac.C.O $srcdir/a2l17-FF" failed. 1>&2
- errors=`expr $errors + 1`;;
- esac
-fi
-test -s 3ac.C.E || rm -f 3ac.C.E
-$xx --date-format="-- Date/Time --" -h x -a -2 -l 17 $srcdir/tFFn > 3ad.O 2> 3ad.E
-code=$?
-if test $code != 0; then
- $echo "Test 3ad failed: $xx return code $code differs from expected value 0" 1>&2
- errors=`expr $errors + 1`
-else
- cmp 3ad.O $srcdir/a2l17-FF > /dev/null 2>&1
- case $? in
- 0) if test "$VERBOSE"; then $echo "passed 3ad"; fi;;
- 1) $echo "Test 3ad failed: files 3ad.O and $srcdir/a2l17-FF differ" 1>&2
- (diff -c 3ad.O $srcdir/a2l17-FF) 2> /dev/null
- errors=`expr $errors + 1`;;
- 2) $echo "Test 3ad may have failed." 1>&2
- $echo The command "cmp 3ad.O $srcdir/a2l17-FF" failed. 1>&2
- errors=`expr $errors + 1`;;
- esac
-fi
-test -s 3ad.E || rm -f 3ad.E
-$xx --date-format="-- Date/Time --" -h x -a --columns=2 -l 17 $srcdir/tFFn > 3ad.C.O 2> 3ad.C.E
-code=$?
-if test $code != 0; then
- $echo "Test 3ad.C failed: $xx return code $code differs from expected value 0" 1>&2
- errors=`expr $errors + 1`
-else
- cmp 3ad.C.O $srcdir/a2l17-FF > /dev/null 2>&1
- case $? in
- 0) if test "$VERBOSE"; then $echo "passed 3ad.C"; fi;;
- 1) $echo "Test 3ad.C failed: files 3ad.C.O and $srcdir/a2l17-FF differ" 1>&2
- (diff -c 3ad.C.O $srcdir/a2l17-FF) 2> /dev/null
- errors=`expr $errors + 1`;;
- 2) $echo "Test 3ad.C may have failed." 1>&2
- $echo The command "cmp 3ad.C.O $srcdir/a2l17-FF" failed. 1>&2
- errors=`expr $errors + 1`;;
- esac
-fi
-test -s 3ad.C.E || rm -f 3ad.C.E
-$xx --date-format="-- Date/Time --" -h x -a -2 -l 17 $srcdir/tFnFt > 3ae.O 2> 3ae.E
-code=$?
-if test $code != 0; then
- $echo "Test 3ae failed: $xx return code $code differs from expected value 0" 1>&2
- errors=`expr $errors + 1`
-else
- cmp 3ae.O $srcdir/a2l17-FF > /dev/null 2>&1
- case $? in
- 0) if test "$VERBOSE"; then $echo "passed 3ae"; fi;;
- 1) $echo "Test 3ae failed: files 3ae.O and $srcdir/a2l17-FF differ" 1>&2
- (diff -c 3ae.O $srcdir/a2l17-FF) 2> /dev/null
- errors=`expr $errors + 1`;;
- 2) $echo "Test 3ae may have failed." 1>&2
- $echo The command "cmp 3ae.O $srcdir/a2l17-FF" failed. 1>&2
- errors=`expr $errors + 1`;;
- esac
-fi
-test -s 3ae.E || rm -f 3ae.E
-$xx --date-format="-- Date/Time --" -h x -a --columns=2 -l 17 $srcdir/tFnFt > 3ae.C.O 2> 3ae.C.E
-code=$?
-if test $code != 0; then
- $echo "Test 3ae.C failed: $xx return code $code differs from expected value 0" 1>&2
- errors=`expr $errors + 1`
-else
- cmp 3ae.C.O $srcdir/a2l17-FF > /dev/null 2>&1
- case $? in
- 0) if test "$VERBOSE"; then $echo "passed 3ae.C"; fi;;
- 1) $echo "Test 3ae.C failed: files 3ae.C.O and $srcdir/a2l17-FF differ" 1>&2
- (diff -c 3ae.C.O $srcdir/a2l17-FF) 2> /dev/null
- errors=`expr $errors + 1`;;
- 2) $echo "Test 3ae.C may have failed." 1>&2
- $echo The command "cmp 3ae.C.O $srcdir/a2l17-FF" failed. 1>&2
- errors=`expr $errors + 1`;;
- esac
-fi
-test -s 3ae.C.E || rm -f 3ae.C.E
-$xx --date-format="-- Date/Time --" -h x -a -2 -l 17 $srcdir/tFFt > 3af.O 2> 3af.E
-code=$?
-if test $code != 0; then
- $echo "Test 3af failed: $xx return code $code differs from expected value 0" 1>&2
- errors=`expr $errors + 1`
-else
- cmp 3af.O $srcdir/a2l17-FF > /dev/null 2>&1
- case $? in
- 0) if test "$VERBOSE"; then $echo "passed 3af"; fi;;
- 1) $echo "Test 3af failed: files 3af.O and $srcdir/a2l17-FF differ" 1>&2
- (diff -c 3af.O $srcdir/a2l17-FF) 2> /dev/null
- errors=`expr $errors + 1`;;
- 2) $echo "Test 3af may have failed." 1>&2
- $echo The command "cmp 3af.O $srcdir/a2l17-FF" failed. 1>&2
- errors=`expr $errors + 1`;;
- esac
-fi
-test -s 3af.E || rm -f 3af.E
-$xx --date-format="-- Date/Time --" -h x -a --columns=2 -l 17 $srcdir/tFFt > 3af.C.O 2> 3af.C.E
-code=$?
-if test $code != 0; then
- $echo "Test 3af.C failed: $xx return code $code differs from expected value 0" 1>&2
- errors=`expr $errors + 1`
-else
- cmp 3af.C.O $srcdir/a2l17-FF > /dev/null 2>&1
- case $? in
- 0) if test "$VERBOSE"; then $echo "passed 3af.C"; fi;;
- 1) $echo "Test 3af.C failed: files 3af.C.O and $srcdir/a2l17-FF differ" 1>&2
- (diff -c 3af.C.O $srcdir/a2l17-FF) 2> /dev/null
- errors=`expr $errors + 1`;;
- 2) $echo "Test 3af.C may have failed." 1>&2
- $echo The command "cmp 3af.C.O $srcdir/a2l17-FF" failed. 1>&2
- errors=`expr $errors + 1`;;
- esac
-fi
-test -s 3af.C.E || rm -f 3af.C.E
-$xx --date-format="-- Date/Time --" -h x -a -2 -l 15 $srcdir/FFn > 3ag.O 2> 3ag.E
-code=$?
-if test $code != 0; then
- $echo "Test 3ag failed: $xx return code $code differs from expected value 0" 1>&2
- errors=`expr $errors + 1`
-else
- cmp 3ag.O $srcdir/a2l15-FF > /dev/null 2>&1
- case $? in
- 0) if test "$VERBOSE"; then $echo "passed 3ag"; fi;;
- 1) $echo "Test 3ag failed: files 3ag.O and $srcdir/a2l15-FF differ" 1>&2
- (diff -c 3ag.O $srcdir/a2l15-FF) 2> /dev/null
- errors=`expr $errors + 1`;;
- 2) $echo "Test 3ag may have failed." 1>&2
- $echo The command "cmp 3ag.O $srcdir/a2l15-FF" failed. 1>&2
- errors=`expr $errors + 1`;;
- esac
-fi
-test -s 3ag.E || rm -f 3ag.E
-$xx --date-format="-- Date/Time --" -h x -a --columns=2 -l 15 $srcdir/FFn > 3ag.C.O 2> 3ag.C.E
-code=$?
-if test $code != 0; then
- $echo "Test 3ag.C failed: $xx return code $code differs from expected value 0" 1>&2
- errors=`expr $errors + 1`
-else
- cmp 3ag.C.O $srcdir/a2l15-FF > /dev/null 2>&1
- case $? in
- 0) if test "$VERBOSE"; then $echo "passed 3ag.C"; fi;;
- 1) $echo "Test 3ag.C failed: files 3ag.C.O and $srcdir/a2l15-FF differ" 1>&2
- (diff -c 3ag.C.O $srcdir/a2l15-FF) 2> /dev/null
- errors=`expr $errors + 1`;;
- 2) $echo "Test 3ag.C may have failed." 1>&2
- $echo The command "cmp 3ag.C.O $srcdir/a2l15-FF" failed. 1>&2
- errors=`expr $errors + 1`;;
- esac
-fi
-test -s 3ag.C.E || rm -f 3ag.C.E
-$xx --date-format="-- Date/Time --" -h x -a -2 -l 15 $srcdir/FFtn > 3ah.O 2> 3ah.E
-code=$?
-if test $code != 0; then
- $echo "Test 3ah failed: $xx return code $code differs from expected value 0" 1>&2
- errors=`expr $errors + 1`
-else
- cmp 3ah.O $srcdir/a2l15-FF > /dev/null 2>&1
- case $? in
- 0) if test "$VERBOSE"; then $echo "passed 3ah"; fi;;
- 1) $echo "Test 3ah failed: files 3ah.O and $srcdir/a2l15-FF differ" 1>&2
- (diff -c 3ah.O $srcdir/a2l15-FF) 2> /dev/null
- errors=`expr $errors + 1`;;
- 2) $echo "Test 3ah may have failed." 1>&2
- $echo The command "cmp 3ah.O $srcdir/a2l15-FF" failed. 1>&2
- errors=`expr $errors + 1`;;
- esac
-fi
-test -s 3ah.E || rm -f 3ah.E
-$xx --date-format="-- Date/Time --" -h x -a --columns=2 -l 15 $srcdir/FFtn > 3ah.C.O 2> 3ah.C.E
-code=$?
-if test $code != 0; then
- $echo "Test 3ah.C failed: $xx return code $code differs from expected value 0" 1>&2
- errors=`expr $errors + 1`
-else
- cmp 3ah.C.O $srcdir/a2l15-FF > /dev/null 2>&1
- case $? in
- 0) if test "$VERBOSE"; then $echo "passed 3ah.C"; fi;;
- 1) $echo "Test 3ah.C failed: files 3ah.C.O and $srcdir/a2l15-FF differ" 1>&2
- (diff -c 3ah.C.O $srcdir/a2l15-FF) 2> /dev/null
- errors=`expr $errors + 1`;;
- 2) $echo "Test 3ah.C may have failed." 1>&2
- $echo The command "cmp 3ah.C.O $srcdir/a2l15-FF" failed. 1>&2
- errors=`expr $errors + 1`;;
- esac
-fi
-test -s 3ah.C.E || rm -f 3ah.C.E
-$xx --date-format="-- Date/Time --" -h x -a -2 -l 15 $srcdir/FnFn > 3ai.O 2> 3ai.E
-code=$?
-if test $code != 0; then
- $echo "Test 3ai failed: $xx return code $code differs from expected value 0" 1>&2
- errors=`expr $errors + 1`
-else
- cmp 3ai.O $srcdir/a2l15-FF > /dev/null 2>&1
- case $? in
- 0) if test "$VERBOSE"; then $echo "passed 3ai"; fi;;
- 1) $echo "Test 3ai failed: files 3ai.O and $srcdir/a2l15-FF differ" 1>&2
- (diff -c 3ai.O $srcdir/a2l15-FF) 2> /dev/null
- errors=`expr $errors + 1`;;
- 2) $echo "Test 3ai may have failed." 1>&2
- $echo The command "cmp 3ai.O $srcdir/a2l15-FF" failed. 1>&2
- errors=`expr $errors + 1`;;
- esac
-fi
-test -s 3ai.E || rm -f 3ai.E
-$xx --date-format="-- Date/Time --" -h x -a --columns=2 -l 15 $srcdir/FnFn > 3ai.C.O 2> 3ai.C.E
-code=$?
-if test $code != 0; then
- $echo "Test 3ai.C failed: $xx return code $code differs from expected value 0" 1>&2
- errors=`expr $errors + 1`
-else
- cmp 3ai.C.O $srcdir/a2l15-FF > /dev/null 2>&1
- case $? in
- 0) if test "$VERBOSE"; then $echo "passed 3ai.C"; fi;;
- 1) $echo "Test 3ai.C failed: files 3ai.C.O and $srcdir/a2l15-FF differ" 1>&2
- (diff -c 3ai.C.O $srcdir/a2l15-FF) 2> /dev/null
- errors=`expr $errors + 1`;;
- 2) $echo "Test 3ai.C may have failed." 1>&2
- $echo The command "cmp 3ai.C.O $srcdir/a2l15-FF" failed. 1>&2
- errors=`expr $errors + 1`;;
- esac
-fi
-test -s 3ai.C.E || rm -f 3ai.C.E
-$xx --date-format="-- Date/Time --" -h x -a -2 -l 15 $srcdir/tFFn > 3aj.O 2> 3aj.E
-code=$?
-if test $code != 0; then
- $echo "Test 3aj failed: $xx return code $code differs from expected value 0" 1>&2
- errors=`expr $errors + 1`
-else
- cmp 3aj.O $srcdir/a2l15-FF > /dev/null 2>&1
- case $? in
- 0) if test "$VERBOSE"; then $echo "passed 3aj"; fi;;
- 1) $echo "Test 3aj failed: files 3aj.O and $srcdir/a2l15-FF differ" 1>&2
- (diff -c 3aj.O $srcdir/a2l15-FF) 2> /dev/null
- errors=`expr $errors + 1`;;
- 2) $echo "Test 3aj may have failed." 1>&2
- $echo The command "cmp 3aj.O $srcdir/a2l15-FF" failed. 1>&2
- errors=`expr $errors + 1`;;
- esac
-fi
-test -s 3aj.E || rm -f 3aj.E
-$xx --date-format="-- Date/Time --" -h x -a --columns=2 -l 15 $srcdir/tFFn > 3aj.C.O 2> 3aj.C.E
-code=$?
-if test $code != 0; then
- $echo "Test 3aj.C failed: $xx return code $code differs from expected value 0" 1>&2
- errors=`expr $errors + 1`
-else
- cmp 3aj.C.O $srcdir/a2l15-FF > /dev/null 2>&1
- case $? in
- 0) if test "$VERBOSE"; then $echo "passed 3aj.C"; fi;;
- 1) $echo "Test 3aj.C failed: files 3aj.C.O and $srcdir/a2l15-FF differ" 1>&2
- (diff -c 3aj.C.O $srcdir/a2l15-FF) 2> /dev/null
- errors=`expr $errors + 1`;;
- 2) $echo "Test 3aj.C may have failed." 1>&2
- $echo The command "cmp 3aj.C.O $srcdir/a2l15-FF" failed. 1>&2
- errors=`expr $errors + 1`;;
- esac
-fi
-test -s 3aj.C.E || rm -f 3aj.C.E
-$xx --date-format="-- Date/Time --" -h x -a -2 -l 15 $srcdir/tFnFt > 3ak.O 2> 3ak.E
-code=$?
-if test $code != 0; then
- $echo "Test 3ak failed: $xx return code $code differs from expected value 0" 1>&2
- errors=`expr $errors + 1`
-else
- cmp 3ak.O $srcdir/a2l15-FF > /dev/null 2>&1
- case $? in
- 0) if test "$VERBOSE"; then $echo "passed 3ak"; fi;;
- 1) $echo "Test 3ak failed: files 3ak.O and $srcdir/a2l15-FF differ" 1>&2
- (diff -c 3ak.O $srcdir/a2l15-FF) 2> /dev/null
- errors=`expr $errors + 1`;;
- 2) $echo "Test 3ak may have failed." 1>&2
- $echo The command "cmp 3ak.O $srcdir/a2l15-FF" failed. 1>&2
- errors=`expr $errors + 1`;;
- esac
-fi
-test -s 3ak.E || rm -f 3ak.E
-$xx --date-format="-- Date/Time --" -h x -a --columns=2 -l 15 $srcdir/tFnFt > 3ak.C.O 2> 3ak.C.E
-code=$?
-if test $code != 0; then
- $echo "Test 3ak.C failed: $xx return code $code differs from expected value 0" 1>&2
- errors=`expr $errors + 1`
-else
- cmp 3ak.C.O $srcdir/a2l15-FF > /dev/null 2>&1
- case $? in
- 0) if test "$VERBOSE"; then $echo "passed 3ak.C"; fi;;
- 1) $echo "Test 3ak.C failed: files 3ak.C.O and $srcdir/a2l15-FF differ" 1>&2
- (diff -c 3ak.C.O $srcdir/a2l15-FF) 2> /dev/null
- errors=`expr $errors + 1`;;
- 2) $echo "Test 3ak.C may have failed." 1>&2
- $echo The command "cmp 3ak.C.O $srcdir/a2l15-FF" failed. 1>&2
- errors=`expr $errors + 1`;;
- esac
-fi
-test -s 3ak.C.E || rm -f 3ak.C.E
-$xx --date-format="-- Date/Time --" -h x -b -2 -l 17 $srcdir/FFn > 3ba.O 2> 3ba.E
-code=$?
-if test $code != 0; then
- $echo "Test 3ba failed: $xx return code $code differs from expected value 0" 1>&2
- errors=`expr $errors + 1`
-else
- cmp 3ba.O $srcdir/b2l17-FF > /dev/null 2>&1
- case $? in
- 0) if test "$VERBOSE"; then $echo "passed 3ba"; fi;;
- 1) $echo "Test 3ba failed: files 3ba.O and $srcdir/b2l17-FF differ" 1>&2
- (diff -c 3ba.O $srcdir/b2l17-FF) 2> /dev/null
- errors=`expr $errors + 1`;;
- 2) $echo "Test 3ba may have failed." 1>&2
- $echo The command "cmp 3ba.O $srcdir/b2l17-FF" failed. 1>&2
- errors=`expr $errors + 1`;;
- esac
-fi
-test -s 3ba.E || rm -f 3ba.E
-$xx --date-format="-- Date/Time --" -h x -b --columns=2 -l 17 $srcdir/FFn > 3ba.C.O 2> 3ba.C.E
-code=$?
-if test $code != 0; then
- $echo "Test 3ba.C failed: $xx return code $code differs from expected value 0" 1>&2
- errors=`expr $errors + 1`
-else
- cmp 3ba.C.O $srcdir/b2l17-FF > /dev/null 2>&1
- case $? in
- 0) if test "$VERBOSE"; then $echo "passed 3ba.C"; fi;;
- 1) $echo "Test 3ba.C failed: files 3ba.C.O and $srcdir/b2l17-FF differ" 1>&2
- (diff -c 3ba.C.O $srcdir/b2l17-FF) 2> /dev/null
- errors=`expr $errors + 1`;;
- 2) $echo "Test 3ba.C may have failed." 1>&2
- $echo The command "cmp 3ba.C.O $srcdir/b2l17-FF" failed. 1>&2
- errors=`expr $errors + 1`;;
- esac
-fi
-test -s 3ba.C.E || rm -f 3ba.C.E
-$xx --date-format="-- Date/Time --" -h x -b -2 -l 17 $srcdir/FFtn > 3bb.O 2> 3bb.E
-code=$?
-if test $code != 0; then
- $echo "Test 3bb failed: $xx return code $code differs from expected value 0" 1>&2
- errors=`expr $errors + 1`
-else
- cmp 3bb.O $srcdir/b2l17-FF > /dev/null 2>&1
- case $? in
- 0) if test "$VERBOSE"; then $echo "passed 3bb"; fi;;
- 1) $echo "Test 3bb failed: files 3bb.O and $srcdir/b2l17-FF differ" 1>&2
- (diff -c 3bb.O $srcdir/b2l17-FF) 2> /dev/null
- errors=`expr $errors + 1`;;
- 2) $echo "Test 3bb may have failed." 1>&2
- $echo The command "cmp 3bb.O $srcdir/b2l17-FF" failed. 1>&2
- errors=`expr $errors + 1`;;
- esac
-fi
-test -s 3bb.E || rm -f 3bb.E
-$xx --date-format="-- Date/Time --" -h x -b --columns=2 -l 17 $srcdir/FFtn > 3bb.C.O 2> 3bb.C.E
-code=$?
-if test $code != 0; then
- $echo "Test 3bb.C failed: $xx return code $code differs from expected value 0" 1>&2
- errors=`expr $errors + 1`
-else
- cmp 3bb.C.O $srcdir/b2l17-FF > /dev/null 2>&1
- case $? in
- 0) if test "$VERBOSE"; then $echo "passed 3bb.C"; fi;;
- 1) $echo "Test 3bb.C failed: files 3bb.C.O and $srcdir/b2l17-FF differ" 1>&2
- (diff -c 3bb.C.O $srcdir/b2l17-FF) 2> /dev/null
- errors=`expr $errors + 1`;;
- 2) $echo "Test 3bb.C may have failed." 1>&2
- $echo The command "cmp 3bb.C.O $srcdir/b2l17-FF" failed. 1>&2
- errors=`expr $errors + 1`;;
- esac
-fi
-test -s 3bb.C.E || rm -f 3bb.C.E
-$xx --date-format="-- Date/Time --" -h x -b -2 -l 17 $srcdir/FnFn > 3bc.O 2> 3bc.E
-code=$?
-if test $code != 0; then
- $echo "Test 3bc failed: $xx return code $code differs from expected value 0" 1>&2
- errors=`expr $errors + 1`
-else
- cmp 3bc.O $srcdir/b2l17-FF > /dev/null 2>&1
- case $? in
- 0) if test "$VERBOSE"; then $echo "passed 3bc"; fi;;
- 1) $echo "Test 3bc failed: files 3bc.O and $srcdir/b2l17-FF differ" 1>&2
- (diff -c 3bc.O $srcdir/b2l17-FF) 2> /dev/null
- errors=`expr $errors + 1`;;
- 2) $echo "Test 3bc may have failed." 1>&2
- $echo The command "cmp 3bc.O $srcdir/b2l17-FF" failed. 1>&2
- errors=`expr $errors + 1`;;
- esac
-fi
-test -s 3bc.E || rm -f 3bc.E
-$xx --date-format="-- Date/Time --" -h x -b --columns=2 -l 17 $srcdir/FnFn > 3bc.C.O 2> 3bc.C.E
-code=$?
-if test $code != 0; then
- $echo "Test 3bc.C failed: $xx return code $code differs from expected value 0" 1>&2
- errors=`expr $errors + 1`
-else
- cmp 3bc.C.O $srcdir/b2l17-FF > /dev/null 2>&1
- case $? in
- 0) if test "$VERBOSE"; then $echo "passed 3bc.C"; fi;;
- 1) $echo "Test 3bc.C failed: files 3bc.C.O and $srcdir/b2l17-FF differ" 1>&2
- (diff -c 3bc.C.O $srcdir/b2l17-FF) 2> /dev/null
- errors=`expr $errors + 1`;;
- 2) $echo "Test 3bc.C may have failed." 1>&2
- $echo The command "cmp 3bc.C.O $srcdir/b2l17-FF" failed. 1>&2
- errors=`expr $errors + 1`;;
- esac
-fi
-test -s 3bc.C.E || rm -f 3bc.C.E
-$xx --date-format="-- Date/Time --" -h x -b -2 -l 17 $srcdir/tFFn > 3bd.O 2> 3bd.E
-code=$?
-if test $code != 0; then
- $echo "Test 3bd failed: $xx return code $code differs from expected value 0" 1>&2
- errors=`expr $errors + 1`
-else
- cmp 3bd.O $srcdir/b2l17-FF > /dev/null 2>&1
- case $? in
- 0) if test "$VERBOSE"; then $echo "passed 3bd"; fi;;
- 1) $echo "Test 3bd failed: files 3bd.O and $srcdir/b2l17-FF differ" 1>&2
- (diff -c 3bd.O $srcdir/b2l17-FF) 2> /dev/null
- errors=`expr $errors + 1`;;
- 2) $echo "Test 3bd may have failed." 1>&2
- $echo The command "cmp 3bd.O $srcdir/b2l17-FF" failed. 1>&2
- errors=`expr $errors + 1`;;
- esac
-fi
-test -s 3bd.E || rm -f 3bd.E
-$xx --date-format="-- Date/Time --" -h x -b --columns=2 -l 17 $srcdir/tFFn > 3bd.C.O 2> 3bd.C.E
-code=$?
-if test $code != 0; then
- $echo "Test 3bd.C failed: $xx return code $code differs from expected value 0" 1>&2
- errors=`expr $errors + 1`
-else
- cmp 3bd.C.O $srcdir/b2l17-FF > /dev/null 2>&1
- case $? in
- 0) if test "$VERBOSE"; then $echo "passed 3bd.C"; fi;;
- 1) $echo "Test 3bd.C failed: files 3bd.C.O and $srcdir/b2l17-FF differ" 1>&2
- (diff -c 3bd.C.O $srcdir/b2l17-FF) 2> /dev/null
- errors=`expr $errors + 1`;;
- 2) $echo "Test 3bd.C may have failed." 1>&2
- $echo The command "cmp 3bd.C.O $srcdir/b2l17-FF" failed. 1>&2
- errors=`expr $errors + 1`;;
- esac
-fi
-test -s 3bd.C.E || rm -f 3bd.C.E
-$xx --date-format="-- Date/Time --" -h x -b -2 -l 17 $srcdir/tFnFt > 3be.O 2> 3be.E
-code=$?
-if test $code != 0; then
- $echo "Test 3be failed: $xx return code $code differs from expected value 0" 1>&2
- errors=`expr $errors + 1`
-else
- cmp 3be.O $srcdir/b2l17-FF > /dev/null 2>&1
- case $? in
- 0) if test "$VERBOSE"; then $echo "passed 3be"; fi;;
- 1) $echo "Test 3be failed: files 3be.O and $srcdir/b2l17-FF differ" 1>&2
- (diff -c 3be.O $srcdir/b2l17-FF) 2> /dev/null
- errors=`expr $errors + 1`;;
- 2) $echo "Test 3be may have failed." 1>&2
- $echo The command "cmp 3be.O $srcdir/b2l17-FF" failed. 1>&2
- errors=`expr $errors + 1`;;
- esac
-fi
-test -s 3be.E || rm -f 3be.E
-$xx --date-format="-- Date/Time --" -h x -b --columns=2 -l 17 $srcdir/tFnFt > 3be.C.O 2> 3be.C.E
-code=$?
-if test $code != 0; then
- $echo "Test 3be.C failed: $xx return code $code differs from expected value 0" 1>&2
- errors=`expr $errors + 1`
-else
- cmp 3be.C.O $srcdir/b2l17-FF > /dev/null 2>&1
- case $? in
- 0) if test "$VERBOSE"; then $echo "passed 3be.C"; fi;;
- 1) $echo "Test 3be.C failed: files 3be.C.O and $srcdir/b2l17-FF differ" 1>&2
- (diff -c 3be.C.O $srcdir/b2l17-FF) 2> /dev/null
- errors=`expr $errors + 1`;;
- 2) $echo "Test 3be.C may have failed." 1>&2
- $echo The command "cmp 3be.C.O $srcdir/b2l17-FF" failed. 1>&2
- errors=`expr $errors + 1`;;
- esac
-fi
-test -s 3be.C.E || rm -f 3be.C.E
-$xx --date-format="-- Date/Time --" -h x -b -2 -l 17 $srcdir/tFFt > 3bf.O 2> 3bf.E
-code=$?
-if test $code != 0; then
- $echo "Test 3bf failed: $xx return code $code differs from expected value 0" 1>&2
- errors=`expr $errors + 1`
-else
- cmp 3bf.O $srcdir/b2l17-FF > /dev/null 2>&1
- case $? in
- 0) if test "$VERBOSE"; then $echo "passed 3bf"; fi;;
- 1) $echo "Test 3bf failed: files 3bf.O and $srcdir/b2l17-FF differ" 1>&2
- (diff -c 3bf.O $srcdir/b2l17-FF) 2> /dev/null
- errors=`expr $errors + 1`;;
- 2) $echo "Test 3bf may have failed." 1>&2
- $echo The command "cmp 3bf.O $srcdir/b2l17-FF" failed. 1>&2
- errors=`expr $errors + 1`;;
- esac
-fi
-test -s 3bf.E || rm -f 3bf.E
-$xx --date-format="-- Date/Time --" -h x -b --columns=2 -l 17 $srcdir/tFFt > 3bf.C.O 2> 3bf.C.E
-code=$?
-if test $code != 0; then
- $echo "Test 3bf.C failed: $xx return code $code differs from expected value 0" 1>&2
- errors=`expr $errors + 1`
-else
- cmp 3bf.C.O $srcdir/b2l17-FF > /dev/null 2>&1
- case $? in
- 0) if test "$VERBOSE"; then $echo "passed 3bf.C"; fi;;
- 1) $echo "Test 3bf.C failed: files 3bf.C.O and $srcdir/b2l17-FF differ" 1>&2
- (diff -c 3bf.C.O $srcdir/b2l17-FF) 2> /dev/null
- errors=`expr $errors + 1`;;
- 2) $echo "Test 3bf.C may have failed." 1>&2
- $echo The command "cmp 3bf.C.O $srcdir/b2l17-FF" failed. 1>&2
- errors=`expr $errors + 1`;;
- esac
-fi
-test -s 3bf.C.E || rm -f 3bf.C.E
-$xx --date-format="-- Date/Time --" -h x -b -2 -l 15 $srcdir/FFn > 3bg.O 2> 3bg.E
-code=$?
-if test $code != 0; then
- $echo "Test 3bg failed: $xx return code $code differs from expected value 0" 1>&2
- errors=`expr $errors + 1`
-else
- cmp 3bg.O $srcdir/b2l15-FF > /dev/null 2>&1
- case $? in
- 0) if test "$VERBOSE"; then $echo "passed 3bg"; fi;;
- 1) $echo "Test 3bg failed: files 3bg.O and $srcdir/b2l15-FF differ" 1>&2
- (diff -c 3bg.O $srcdir/b2l15-FF) 2> /dev/null
- errors=`expr $errors + 1`;;
- 2) $echo "Test 3bg may have failed." 1>&2
- $echo The command "cmp 3bg.O $srcdir/b2l15-FF" failed. 1>&2
- errors=`expr $errors + 1`;;
- esac
-fi
-test -s 3bg.E || rm -f 3bg.E
-$xx --date-format="-- Date/Time --" -h x -b --columns=2 -l 15 $srcdir/FFn > 3bg.C.O 2> 3bg.C.E
-code=$?
-if test $code != 0; then
- $echo "Test 3bg.C failed: $xx return code $code differs from expected value 0" 1>&2
- errors=`expr $errors + 1`
-else
- cmp 3bg.C.O $srcdir/b2l15-FF > /dev/null 2>&1
- case $? in
- 0) if test "$VERBOSE"; then $echo "passed 3bg.C"; fi;;
- 1) $echo "Test 3bg.C failed: files 3bg.C.O and $srcdir/b2l15-FF differ" 1>&2
- (diff -c 3bg.C.O $srcdir/b2l15-FF) 2> /dev/null
- errors=`expr $errors + 1`;;
- 2) $echo "Test 3bg.C may have failed." 1>&2
- $echo The command "cmp 3bg.C.O $srcdir/b2l15-FF" failed. 1>&2
- errors=`expr $errors + 1`;;
- esac
-fi
-test -s 3bg.C.E || rm -f 3bg.C.E
-$xx --date-format="-- Date/Time --" -h x -b -2 -l 15 $srcdir/FFtn > 3bh.O 2> 3bh.E
-code=$?
-if test $code != 0; then
- $echo "Test 3bh failed: $xx return code $code differs from expected value 0" 1>&2
- errors=`expr $errors + 1`
-else
- cmp 3bh.O $srcdir/b2l15-FF > /dev/null 2>&1
- case $? in
- 0) if test "$VERBOSE"; then $echo "passed 3bh"; fi;;
- 1) $echo "Test 3bh failed: files 3bh.O and $srcdir/b2l15-FF differ" 1>&2
- (diff -c 3bh.O $srcdir/b2l15-FF) 2> /dev/null
- errors=`expr $errors + 1`;;
- 2) $echo "Test 3bh may have failed." 1>&2
- $echo The command "cmp 3bh.O $srcdir/b2l15-FF" failed. 1>&2
- errors=`expr $errors + 1`;;
- esac
-fi
-test -s 3bh.E || rm -f 3bh.E
-$xx --date-format="-- Date/Time --" -h x -b --columns=2 -l 15 $srcdir/FFtn > 3bh.C.O 2> 3bh.C.E
-code=$?
-if test $code != 0; then
- $echo "Test 3bh.C failed: $xx return code $code differs from expected value 0" 1>&2
- errors=`expr $errors + 1`
-else
- cmp 3bh.C.O $srcdir/b2l15-FF > /dev/null 2>&1
- case $? in
- 0) if test "$VERBOSE"; then $echo "passed 3bh.C"; fi;;
- 1) $echo "Test 3bh.C failed: files 3bh.C.O and $srcdir/b2l15-FF differ" 1>&2
- (diff -c 3bh.C.O $srcdir/b2l15-FF) 2> /dev/null
- errors=`expr $errors + 1`;;
- 2) $echo "Test 3bh.C may have failed." 1>&2
- $echo The command "cmp 3bh.C.O $srcdir/b2l15-FF" failed. 1>&2
- errors=`expr $errors + 1`;;
- esac
-fi
-test -s 3bh.C.E || rm -f 3bh.C.E
-$xx --date-format="-- Date/Time --" -h x -b -2 -l 15 $srcdir/FnFn > 3bi.O 2> 3bi.E
-code=$?
-if test $code != 0; then
- $echo "Test 3bi failed: $xx return code $code differs from expected value 0" 1>&2
- errors=`expr $errors + 1`
-else
- cmp 3bi.O $srcdir/b2l15-FF > /dev/null 2>&1
- case $? in
- 0) if test "$VERBOSE"; then $echo "passed 3bi"; fi;;
- 1) $echo "Test 3bi failed: files 3bi.O and $srcdir/b2l15-FF differ" 1>&2
- (diff -c 3bi.O $srcdir/b2l15-FF) 2> /dev/null
- errors=`expr $errors + 1`;;
- 2) $echo "Test 3bi may have failed." 1>&2
- $echo The command "cmp 3bi.O $srcdir/b2l15-FF" failed. 1>&2
- errors=`expr $errors + 1`;;
- esac
-fi
-test -s 3bi.E || rm -f 3bi.E
-$xx --date-format="-- Date/Time --" -h x -b --columns=2 -l 15 $srcdir/FnFn > 3bi.C.O 2> 3bi.C.E
-code=$?
-if test $code != 0; then
- $echo "Test 3bi.C failed: $xx return code $code differs from expected value 0" 1>&2
- errors=`expr $errors + 1`
-else
- cmp 3bi.C.O $srcdir/b2l15-FF > /dev/null 2>&1
- case $? in
- 0) if test "$VERBOSE"; then $echo "passed 3bi.C"; fi;;
- 1) $echo "Test 3bi.C failed: files 3bi.C.O and $srcdir/b2l15-FF differ" 1>&2
- (diff -c 3bi.C.O $srcdir/b2l15-FF) 2> /dev/null
- errors=`expr $errors + 1`;;
- 2) $echo "Test 3bi.C may have failed." 1>&2
- $echo The command "cmp 3bi.C.O $srcdir/b2l15-FF" failed. 1>&2
- errors=`expr $errors + 1`;;
- esac
-fi
-test -s 3bi.C.E || rm -f 3bi.C.E
-$xx --date-format="-- Date/Time --" -h x -b -2 -l 15 $srcdir/tFFn > 3bj.O 2> 3bj.E
-code=$?
-if test $code != 0; then
- $echo "Test 3bj failed: $xx return code $code differs from expected value 0" 1>&2
- errors=`expr $errors + 1`
-else
- cmp 3bj.O $srcdir/b2l15-FF > /dev/null 2>&1
- case $? in
- 0) if test "$VERBOSE"; then $echo "passed 3bj"; fi;;
- 1) $echo "Test 3bj failed: files 3bj.O and $srcdir/b2l15-FF differ" 1>&2
- (diff -c 3bj.O $srcdir/b2l15-FF) 2> /dev/null
- errors=`expr $errors + 1`;;
- 2) $echo "Test 3bj may have failed." 1>&2
- $echo The command "cmp 3bj.O $srcdir/b2l15-FF" failed. 1>&2
- errors=`expr $errors + 1`;;
- esac
-fi
-test -s 3bj.E || rm -f 3bj.E
-$xx --date-format="-- Date/Time --" -h x -b --columns=2 -l 15 $srcdir/tFFn > 3bj.C.O 2> 3bj.C.E
-code=$?
-if test $code != 0; then
- $echo "Test 3bj.C failed: $xx return code $code differs from expected value 0" 1>&2
- errors=`expr $errors + 1`
-else
- cmp 3bj.C.O $srcdir/b2l15-FF > /dev/null 2>&1
- case $? in
- 0) if test "$VERBOSE"; then $echo "passed 3bj.C"; fi;;
- 1) $echo "Test 3bj.C failed: files 3bj.C.O and $srcdir/b2l15-FF differ" 1>&2
- (diff -c 3bj.C.O $srcdir/b2l15-FF) 2> /dev/null
- errors=`expr $errors + 1`;;
- 2) $echo "Test 3bj.C may have failed." 1>&2
- $echo The command "cmp 3bj.C.O $srcdir/b2l15-FF" failed. 1>&2
- errors=`expr $errors + 1`;;
- esac
-fi
-test -s 3bj.C.E || rm -f 3bj.C.E
-$xx --date-format="-- Date/Time --" -h x -b -2 -l 15 $srcdir/tFnFt > 3bk.O 2> 3bk.E
-code=$?
-if test $code != 0; then
- $echo "Test 3bk failed: $xx return code $code differs from expected value 0" 1>&2
- errors=`expr $errors + 1`
-else
- cmp 3bk.O $srcdir/b2l15-FF > /dev/null 2>&1
- case $? in
- 0) if test "$VERBOSE"; then $echo "passed 3bk"; fi;;
- 1) $echo "Test 3bk failed: files 3bk.O and $srcdir/b2l15-FF differ" 1>&2
- (diff -c 3bk.O $srcdir/b2l15-FF) 2> /dev/null
- errors=`expr $errors + 1`;;
- 2) $echo "Test 3bk may have failed." 1>&2
- $echo The command "cmp 3bk.O $srcdir/b2l15-FF" failed. 1>&2
- errors=`expr $errors + 1`;;
- esac
-fi
-test -s 3bk.E || rm -f 3bk.E
-$xx --date-format="-- Date/Time --" -h x -b --columns=2 -l 15 $srcdir/tFnFt > 3bk.C.O 2> 3bk.C.E
-code=$?
-if test $code != 0; then
- $echo "Test 3bk.C failed: $xx return code $code differs from expected value 0" 1>&2
- errors=`expr $errors + 1`
-else
- cmp 3bk.C.O $srcdir/b2l15-FF > /dev/null 2>&1
- case $? in
- 0) if test "$VERBOSE"; then $echo "passed 3bk.C"; fi;;
- 1) $echo "Test 3bk.C failed: files 3bk.C.O and $srcdir/b2l15-FF differ" 1>&2
- (diff -c 3bk.C.O $srcdir/b2l15-FF) 2> /dev/null
- errors=`expr $errors + 1`;;
- 2) $echo "Test 3bk.C may have failed." 1>&2
- $echo The command "cmp 3bk.C.O $srcdir/b2l15-FF" failed. 1>&2
- errors=`expr $errors + 1`;;
- esac
-fi
-test -s 3bk.C.E || rm -f 3bk.C.E
-$xx --date-format="-- Date/Time --" -h x +4 -l 24 $srcdir/FFn > 3Pa.O 2> 3Pa.E
-code=$?
-if test $code != 0; then
- $echo "Test 3Pa failed: $xx return code $code differs from expected value 0" 1>&2
- errors=`expr $errors + 1`
-else
- cmp 3Pa.O $srcdir/4l24-FF > /dev/null 2>&1
- case $? in
- 0) if test "$VERBOSE"; then $echo "passed 3Pa"; fi;;
- 1) $echo "Test 3Pa failed: files 3Pa.O and $srcdir/4l24-FF differ" 1>&2
- (diff -c 3Pa.O $srcdir/4l24-FF) 2> /dev/null
- errors=`expr $errors + 1`;;
- 2) $echo "Test 3Pa may have failed." 1>&2
- $echo The command "cmp 3Pa.O $srcdir/4l24-FF" failed. 1>&2
- errors=`expr $errors + 1`;;
- esac
-fi
-test -s 3Pa.E || rm -f 3Pa.E
-$xx --date-format="-- Date/Time --" -h x +4 -l 24 $srcdir/FFtn > 3Pb.O 2> 3Pb.E
-code=$?
-if test $code != 0; then
- $echo "Test 3Pb failed: $xx return code $code differs from expected value 0" 1>&2
- errors=`expr $errors + 1`
-else
- cmp 3Pb.O $srcdir/4l24-FF > /dev/null 2>&1
- case $? in
- 0) if test "$VERBOSE"; then $echo "passed 3Pb"; fi;;
- 1) $echo "Test 3Pb failed: files 3Pb.O and $srcdir/4l24-FF differ" 1>&2
- (diff -c 3Pb.O $srcdir/4l24-FF) 2> /dev/null
- errors=`expr $errors + 1`;;
- 2) $echo "Test 3Pb may have failed." 1>&2
- $echo The command "cmp 3Pb.O $srcdir/4l24-FF" failed. 1>&2
- errors=`expr $errors + 1`;;
- esac
-fi
-test -s 3Pb.E || rm -f 3Pb.E
-$xx --date-format="-- Date/Time --" -h x +4 -l 24 $srcdir/FnFn > 3Pc.O 2> 3Pc.E
-code=$?
-if test $code != 0; then
- $echo "Test 3Pc failed: $xx return code $code differs from expected value 0" 1>&2
- errors=`expr $errors + 1`
-else
- cmp 3Pc.O $srcdir/4l24-FF > /dev/null 2>&1
- case $? in
- 0) if test "$VERBOSE"; then $echo "passed 3Pc"; fi;;
- 1) $echo "Test 3Pc failed: files 3Pc.O and $srcdir/4l24-FF differ" 1>&2
- (diff -c 3Pc.O $srcdir/4l24-FF) 2> /dev/null
- errors=`expr $errors + 1`;;
- 2) $echo "Test 3Pc may have failed." 1>&2
- $echo The command "cmp 3Pc.O $srcdir/4l24-FF" failed. 1>&2
- errors=`expr $errors + 1`;;
- esac
-fi
-test -s 3Pc.E || rm -f 3Pc.E
-$xx --date-format="-- Date/Time --" -h x +4 -l 24 $srcdir/tFFn > 3Pd.O 2> 3Pd.E
-code=$?
-if test $code != 0; then
- $echo "Test 3Pd failed: $xx return code $code differs from expected value 0" 1>&2
- errors=`expr $errors + 1`
-else
- cmp 3Pd.O $srcdir/4l24-FF > /dev/null 2>&1
- case $? in
- 0) if test "$VERBOSE"; then $echo "passed 3Pd"; fi;;
- 1) $echo "Test 3Pd failed: files 3Pd.O and $srcdir/4l24-FF differ" 1>&2
- (diff -c 3Pd.O $srcdir/4l24-FF) 2> /dev/null
- errors=`expr $errors + 1`;;
- 2) $echo "Test 3Pd may have failed." 1>&2
- $echo The command "cmp 3Pd.O $srcdir/4l24-FF" failed. 1>&2
- errors=`expr $errors + 1`;;
- esac
-fi
-test -s 3Pd.E || rm -f 3Pd.E
-$xx --date-format="-- Date/Time --" -h x +4 -l 24 $srcdir/tFnFt > 3Pe.O 2> 3Pe.E
-code=$?
-if test $code != 0; then
- $echo "Test 3Pe failed: $xx return code $code differs from expected value 0" 1>&2
- errors=`expr $errors + 1`
-else
- cmp 3Pe.O $srcdir/4l24-FF > /dev/null 2>&1
- case $? in
- 0) if test "$VERBOSE"; then $echo "passed 3Pe"; fi;;
- 1) $echo "Test 3Pe failed: files 3Pe.O and $srcdir/4l24-FF differ" 1>&2
- (diff -c 3Pe.O $srcdir/4l24-FF) 2> /dev/null
- errors=`expr $errors + 1`;;
- 2) $echo "Test 3Pe may have failed." 1>&2
- $echo The command "cmp 3Pe.O $srcdir/4l24-FF" failed. 1>&2
- errors=`expr $errors + 1`;;
- esac
-fi
-test -s 3Pe.E || rm -f 3Pe.E
-$xx --date-format="-- Date/Time --" -h x +4 -l 24 $srcdir/tFFt > 3Pf.O 2> 3Pf.E
-code=$?
-if test $code != 0; then
- $echo "Test 3Pf failed: $xx return code $code differs from expected value 0" 1>&2
- errors=`expr $errors + 1`
-else
- cmp 3Pf.O $srcdir/4l24-FF > /dev/null 2>&1
- case $? in
- 0) if test "$VERBOSE"; then $echo "passed 3Pf"; fi;;
- 1) $echo "Test 3Pf failed: files 3Pf.O and $srcdir/4l24-FF differ" 1>&2
- (diff -c 3Pf.O $srcdir/4l24-FF) 2> /dev/null
- errors=`expr $errors + 1`;;
- 2) $echo "Test 3Pf may have failed." 1>&2
- $echo The command "cmp 3Pf.O $srcdir/4l24-FF" failed. 1>&2
- errors=`expr $errors + 1`;;
- esac
-fi
-test -s 3Pf.E || rm -f 3Pf.E
-$xx --date-format="-- Date/Time --" -h x +4:7 -l 24 $srcdir/tFFt > 3Pg.O 2> 3Pg.E
-code=$?
-if test $code != 0; then
- $echo "Test 3Pg failed: $xx return code $code differs from expected value 0" 1>&2
- errors=`expr $errors + 1`
-else
- cmp 3Pg.O $srcdir/4-7l24-FF > /dev/null 2>&1
- case $? in
- 0) if test "$VERBOSE"; then $echo "passed 3Pg"; fi;;
- 1) $echo "Test 3Pg failed: files 3Pg.O and $srcdir/4-7l24-FF differ" 1>&2
- (diff -c 3Pg.O $srcdir/4-7l24-FF) 2> /dev/null
- errors=`expr $errors + 1`;;
- 2) $echo "Test 3Pg may have failed." 1>&2
- $echo The command "cmp 3Pg.O $srcdir/4-7l24-FF" failed. 1>&2
- errors=`expr $errors + 1`;;
- esac
-fi
-test -s 3Pg.E || rm -f 3Pg.E
-$xx --date-format="-- Date/Time --" -h x +3 -a -2 -l 17 $srcdir/FFn > 3Paa.O 2> 3Paa.E
-code=$?
-if test $code != 0; then
- $echo "Test 3Paa failed: $xx return code $code differs from expected value 0" 1>&2
- errors=`expr $errors + 1`
-else
- cmp 3Paa.O $srcdir/3a2l17-FF > /dev/null 2>&1
- case $? in
- 0) if test "$VERBOSE"; then $echo "passed 3Paa"; fi;;
- 1) $echo "Test 3Paa failed: files 3Paa.O and $srcdir/3a2l17-FF differ" 1>&2
- (diff -c 3Paa.O $srcdir/3a2l17-FF) 2> /dev/null
- errors=`expr $errors + 1`;;
- 2) $echo "Test 3Paa may have failed." 1>&2
- $echo The command "cmp 3Paa.O $srcdir/3a2l17-FF" failed. 1>&2
- errors=`expr $errors + 1`;;
- esac
-fi
-test -s 3Paa.E || rm -f 3Paa.E
-$xx --date-format="-- Date/Time --" -h x +3 -a --columns=2 -l 17 $srcdir/FFn > 3Paa.C.O 2> 3Paa.C.E
-code=$?
-if test $code != 0; then
- $echo "Test 3Paa.C failed: $xx return code $code differs from expected value 0" 1>&2
- errors=`expr $errors + 1`
-else
- cmp 3Paa.C.O $srcdir/3a2l17-FF > /dev/null 2>&1
- case $? in
- 0) if test "$VERBOSE"; then $echo "passed 3Paa.C"; fi;;
- 1) $echo "Test 3Paa.C failed: files 3Paa.C.O and $srcdir/3a2l17-FF differ" 1>&2
- (diff -c 3Paa.C.O $srcdir/3a2l17-FF) 2> /dev/null
- errors=`expr $errors + 1`;;
- 2) $echo "Test 3Paa.C may have failed." 1>&2
- $echo The command "cmp 3Paa.C.O $srcdir/3a2l17-FF" failed. 1>&2
- errors=`expr $errors + 1`;;
- esac
-fi
-test -s 3Paa.C.E || rm -f 3Paa.C.E
-$xx --date-format="-- Date/Time --" -h x +3 -a -2 -l 17 $srcdir/FFtn > 3Pab.O 2> 3Pab.E
-code=$?
-if test $code != 0; then
- $echo "Test 3Pab failed: $xx return code $code differs from expected value 0" 1>&2
- errors=`expr $errors + 1`
-else
- cmp 3Pab.O $srcdir/3a2l17-FF > /dev/null 2>&1
- case $? in
- 0) if test "$VERBOSE"; then $echo "passed 3Pab"; fi;;
- 1) $echo "Test 3Pab failed: files 3Pab.O and $srcdir/3a2l17-FF differ" 1>&2
- (diff -c 3Pab.O $srcdir/3a2l17-FF) 2> /dev/null
- errors=`expr $errors + 1`;;
- 2) $echo "Test 3Pab may have failed." 1>&2
- $echo The command "cmp 3Pab.O $srcdir/3a2l17-FF" failed. 1>&2
- errors=`expr $errors + 1`;;
- esac
-fi
-test -s 3Pab.E || rm -f 3Pab.E
-$xx --date-format="-- Date/Time --" -h x +3 -a --columns=2 -l 17 $srcdir/FFtn > 3Pab.C.O 2> 3Pab.C.E
-code=$?
-if test $code != 0; then
- $echo "Test 3Pab.C failed: $xx return code $code differs from expected value 0" 1>&2
- errors=`expr $errors + 1`
-else
- cmp 3Pab.C.O $srcdir/3a2l17-FF > /dev/null 2>&1
- case $? in
- 0) if test "$VERBOSE"; then $echo "passed 3Pab.C"; fi;;
- 1) $echo "Test 3Pab.C failed: files 3Pab.C.O and $srcdir/3a2l17-FF differ" 1>&2
- (diff -c 3Pab.C.O $srcdir/3a2l17-FF) 2> /dev/null
- errors=`expr $errors + 1`;;
- 2) $echo "Test 3Pab.C may have failed." 1>&2
- $echo The command "cmp 3Pab.C.O $srcdir/3a2l17-FF" failed. 1>&2
- errors=`expr $errors + 1`;;
- esac
-fi
-test -s 3Pab.C.E || rm -f 3Pab.C.E
-$xx --date-format="-- Date/Time --" -h x +3 -a -2 -l 17 $srcdir/FnFn > 3Pac.O 2> 3Pac.E
-code=$?
-if test $code != 0; then
- $echo "Test 3Pac failed: $xx return code $code differs from expected value 0" 1>&2
- errors=`expr $errors + 1`
-else
- cmp 3Pac.O $srcdir/3a2l17-FF > /dev/null 2>&1
- case $? in
- 0) if test "$VERBOSE"; then $echo "passed 3Pac"; fi;;
- 1) $echo "Test 3Pac failed: files 3Pac.O and $srcdir/3a2l17-FF differ" 1>&2
- (diff -c 3Pac.O $srcdir/3a2l17-FF) 2> /dev/null
- errors=`expr $errors + 1`;;
- 2) $echo "Test 3Pac may have failed." 1>&2
- $echo The command "cmp 3Pac.O $srcdir/3a2l17-FF" failed. 1>&2
- errors=`expr $errors + 1`;;
- esac
-fi
-test -s 3Pac.E || rm -f 3Pac.E
-$xx --date-format="-- Date/Time --" -h x +3 -a --columns=2 -l 17 $srcdir/FnFn > 3Pac.C.O 2> 3Pac.C.E
-code=$?
-if test $code != 0; then
- $echo "Test 3Pac.C failed: $xx return code $code differs from expected value 0" 1>&2
- errors=`expr $errors + 1`
-else
- cmp 3Pac.C.O $srcdir/3a2l17-FF > /dev/null 2>&1
- case $? in
- 0) if test "$VERBOSE"; then $echo "passed 3Pac.C"; fi;;
- 1) $echo "Test 3Pac.C failed: files 3Pac.C.O and $srcdir/3a2l17-FF differ" 1>&2
- (diff -c 3Pac.C.O $srcdir/3a2l17-FF) 2> /dev/null
- errors=`expr $errors + 1`;;
- 2) $echo "Test 3Pac.C may have failed." 1>&2
- $echo The command "cmp 3Pac.C.O $srcdir/3a2l17-FF" failed. 1>&2
- errors=`expr $errors + 1`;;
- esac
-fi
-test -s 3Pac.C.E || rm -f 3Pac.C.E
-$xx --date-format="-- Date/Time --" -h x +3 -a -2 -l 17 $srcdir/tFFn > 3Pad.O 2> 3Pad.E
-code=$?
-if test $code != 0; then
- $echo "Test 3Pad failed: $xx return code $code differs from expected value 0" 1>&2
- errors=`expr $errors + 1`
-else
- cmp 3Pad.O $srcdir/3a2l17-FF > /dev/null 2>&1
- case $? in
- 0) if test "$VERBOSE"; then $echo "passed 3Pad"; fi;;
- 1) $echo "Test 3Pad failed: files 3Pad.O and $srcdir/3a2l17-FF differ" 1>&2
- (diff -c 3Pad.O $srcdir/3a2l17-FF) 2> /dev/null
- errors=`expr $errors + 1`;;
- 2) $echo "Test 3Pad may have failed." 1>&2
- $echo The command "cmp 3Pad.O $srcdir/3a2l17-FF" failed. 1>&2
- errors=`expr $errors + 1`;;
- esac
-fi
-test -s 3Pad.E || rm -f 3Pad.E
-$xx --date-format="-- Date/Time --" -h x +3 -a --columns=2 -l 17 $srcdir/tFFn > 3Pad.C.O 2> 3Pad.C.E
-code=$?
-if test $code != 0; then
- $echo "Test 3Pad.C failed: $xx return code $code differs from expected value 0" 1>&2
- errors=`expr $errors + 1`
-else
- cmp 3Pad.C.O $srcdir/3a2l17-FF > /dev/null 2>&1
- case $? in
- 0) if test "$VERBOSE"; then $echo "passed 3Pad.C"; fi;;
- 1) $echo "Test 3Pad.C failed: files 3Pad.C.O and $srcdir/3a2l17-FF differ" 1>&2
- (diff -c 3Pad.C.O $srcdir/3a2l17-FF) 2> /dev/null
- errors=`expr $errors + 1`;;
- 2) $echo "Test 3Pad.C may have failed." 1>&2
- $echo The command "cmp 3Pad.C.O $srcdir/3a2l17-FF" failed. 1>&2
- errors=`expr $errors + 1`;;
- esac
-fi
-test -s 3Pad.C.E || rm -f 3Pad.C.E
-$xx --date-format="-- Date/Time --" -h x +3 -a -2 -l 17 $srcdir/tFnFt > 3Pae.O 2> 3Pae.E
-code=$?
-if test $code != 0; then
- $echo "Test 3Pae failed: $xx return code $code differs from expected value 0" 1>&2
- errors=`expr $errors + 1`
-else
- cmp 3Pae.O $srcdir/3a2l17-FF > /dev/null 2>&1
- case $? in
- 0) if test "$VERBOSE"; then $echo "passed 3Pae"; fi;;
- 1) $echo "Test 3Pae failed: files 3Pae.O and $srcdir/3a2l17-FF differ" 1>&2
- (diff -c 3Pae.O $srcdir/3a2l17-FF) 2> /dev/null
- errors=`expr $errors + 1`;;
- 2) $echo "Test 3Pae may have failed." 1>&2
- $echo The command "cmp 3Pae.O $srcdir/3a2l17-FF" failed. 1>&2
- errors=`expr $errors + 1`;;
- esac
-fi
-test -s 3Pae.E || rm -f 3Pae.E
-$xx --date-format="-- Date/Time --" -h x +3 -a --columns=2 -l 17 $srcdir/tFnFt > 3Pae.C.O 2> 3Pae.C.E
-code=$?
-if test $code != 0; then
- $echo "Test 3Pae.C failed: $xx return code $code differs from expected value 0" 1>&2
- errors=`expr $errors + 1`
-else
- cmp 3Pae.C.O $srcdir/3a2l17-FF > /dev/null 2>&1
- case $? in
- 0) if test "$VERBOSE"; then $echo "passed 3Pae.C"; fi;;
- 1) $echo "Test 3Pae.C failed: files 3Pae.C.O and $srcdir/3a2l17-FF differ" 1>&2
- (diff -c 3Pae.C.O $srcdir/3a2l17-FF) 2> /dev/null
- errors=`expr $errors + 1`;;
- 2) $echo "Test 3Pae.C may have failed." 1>&2
- $echo The command "cmp 3Pae.C.O $srcdir/3a2l17-FF" failed. 1>&2
- errors=`expr $errors + 1`;;
- esac
-fi
-test -s 3Pae.C.E || rm -f 3Pae.C.E
-$xx --date-format="-- Date/Time --" -h x +3 -a -2 -l 17 $srcdir/tFFt > 3Paf.O 2> 3Paf.E
-code=$?
-if test $code != 0; then
- $echo "Test 3Paf failed: $xx return code $code differs from expected value 0" 1>&2
- errors=`expr $errors + 1`
-else
- cmp 3Paf.O $srcdir/3a2l17-FF > /dev/null 2>&1
- case $? in
- 0) if test "$VERBOSE"; then $echo "passed 3Paf"; fi;;
- 1) $echo "Test 3Paf failed: files 3Paf.O and $srcdir/3a2l17-FF differ" 1>&2
- (diff -c 3Paf.O $srcdir/3a2l17-FF) 2> /dev/null
- errors=`expr $errors + 1`;;
- 2) $echo "Test 3Paf may have failed." 1>&2
- $echo The command "cmp 3Paf.O $srcdir/3a2l17-FF" failed. 1>&2
- errors=`expr $errors + 1`;;
- esac
-fi
-test -s 3Paf.E || rm -f 3Paf.E
-$xx --date-format="-- Date/Time --" -h x +3 -a --columns=2 -l 17 $srcdir/tFFt > 3Paf.C.O 2> 3Paf.C.E
-code=$?
-if test $code != 0; then
- $echo "Test 3Paf.C failed: $xx return code $code differs from expected value 0" 1>&2
- errors=`expr $errors + 1`
-else
- cmp 3Paf.C.O $srcdir/3a2l17-FF > /dev/null 2>&1
- case $? in
- 0) if test "$VERBOSE"; then $echo "passed 3Paf.C"; fi;;
- 1) $echo "Test 3Paf.C failed: files 3Paf.C.O and $srcdir/3a2l17-FF differ" 1>&2
- (diff -c 3Paf.C.O $srcdir/3a2l17-FF) 2> /dev/null
- errors=`expr $errors + 1`;;
- 2) $echo "Test 3Paf.C may have failed." 1>&2
- $echo The command "cmp 3Paf.C.O $srcdir/3a2l17-FF" failed. 1>&2
- errors=`expr $errors + 1`;;
- esac
-fi
-test -s 3Paf.C.E || rm -f 3Paf.C.E
-$xx --date-format="-- Date/Time --" -h x +3 -b -2 -l 17 $srcdir/FFn > 3Pba.O 2> 3Pba.E
-code=$?
-if test $code != 0; then
- $echo "Test 3Pba failed: $xx return code $code differs from expected value 0" 1>&2
- errors=`expr $errors + 1`
-else
- cmp 3Pba.O $srcdir/3b2l17-FF > /dev/null 2>&1
- case $? in
- 0) if test "$VERBOSE"; then $echo "passed 3Pba"; fi;;
- 1) $echo "Test 3Pba failed: files 3Pba.O and $srcdir/3b2l17-FF differ" 1>&2
- (diff -c 3Pba.O $srcdir/3b2l17-FF) 2> /dev/null
- errors=`expr $errors + 1`;;
- 2) $echo "Test 3Pba may have failed." 1>&2
- $echo The command "cmp 3Pba.O $srcdir/3b2l17-FF" failed. 1>&2
- errors=`expr $errors + 1`;;
- esac
-fi
-test -s 3Pba.E || rm -f 3Pba.E
-$xx --date-format="-- Date/Time --" -h x +3 -b --columns=2 -l 17 $srcdir/FFn > 3Pba.C.O 2> 3Pba.C.E
-code=$?
-if test $code != 0; then
- $echo "Test 3Pba.C failed: $xx return code $code differs from expected value 0" 1>&2
- errors=`expr $errors + 1`
-else
- cmp 3Pba.C.O $srcdir/3b2l17-FF > /dev/null 2>&1
- case $? in
- 0) if test "$VERBOSE"; then $echo "passed 3Pba.C"; fi;;
- 1) $echo "Test 3Pba.C failed: files 3Pba.C.O and $srcdir/3b2l17-FF differ" 1>&2
- (diff -c 3Pba.C.O $srcdir/3b2l17-FF) 2> /dev/null
- errors=`expr $errors + 1`;;
- 2) $echo "Test 3Pba.C may have failed." 1>&2
- $echo The command "cmp 3Pba.C.O $srcdir/3b2l17-FF" failed. 1>&2
- errors=`expr $errors + 1`;;
- esac
-fi
-test -s 3Pba.C.E || rm -f 3Pba.C.E
-$xx --date-format="-- Date/Time --" -h x +3 -b -2 -l 17 $srcdir/FFtn > 3Pbb.O 2> 3Pbb.E
-code=$?
-if test $code != 0; then
- $echo "Test 3Pbb failed: $xx return code $code differs from expected value 0" 1>&2
- errors=`expr $errors + 1`
-else
- cmp 3Pbb.O $srcdir/3b2l17-FF > /dev/null 2>&1
- case $? in
- 0) if test "$VERBOSE"; then $echo "passed 3Pbb"; fi;;
- 1) $echo "Test 3Pbb failed: files 3Pbb.O and $srcdir/3b2l17-FF differ" 1>&2
- (diff -c 3Pbb.O $srcdir/3b2l17-FF) 2> /dev/null
- errors=`expr $errors + 1`;;
- 2) $echo "Test 3Pbb may have failed." 1>&2
- $echo The command "cmp 3Pbb.O $srcdir/3b2l17-FF" failed. 1>&2
- errors=`expr $errors + 1`;;
- esac
-fi
-test -s 3Pbb.E || rm -f 3Pbb.E
-$xx --date-format="-- Date/Time --" -h x +3 -b --columns=2 -l 17 $srcdir/FFtn > 3Pbb.C.O 2> 3Pbb.C.E
-code=$?
-if test $code != 0; then
- $echo "Test 3Pbb.C failed: $xx return code $code differs from expected value 0" 1>&2
- errors=`expr $errors + 1`
-else
- cmp 3Pbb.C.O $srcdir/3b2l17-FF > /dev/null 2>&1
- case $? in
- 0) if test "$VERBOSE"; then $echo "passed 3Pbb.C"; fi;;
- 1) $echo "Test 3Pbb.C failed: files 3Pbb.C.O and $srcdir/3b2l17-FF differ" 1>&2
- (diff -c 3Pbb.C.O $srcdir/3b2l17-FF) 2> /dev/null
- errors=`expr $errors + 1`;;
- 2) $echo "Test 3Pbb.C may have failed." 1>&2
- $echo The command "cmp 3Pbb.C.O $srcdir/3b2l17-FF" failed. 1>&2
- errors=`expr $errors + 1`;;
- esac
-fi
-test -s 3Pbb.C.E || rm -f 3Pbb.C.E
-$xx --date-format="-- Date/Time --" -h x +3 -b -2 -l 17 $srcdir/FnFn > 3Pbc.O 2> 3Pbc.E
-code=$?
-if test $code != 0; then
- $echo "Test 3Pbc failed: $xx return code $code differs from expected value 0" 1>&2
- errors=`expr $errors + 1`
-else
- cmp 3Pbc.O $srcdir/3b2l17-FF > /dev/null 2>&1
- case $? in
- 0) if test "$VERBOSE"; then $echo "passed 3Pbc"; fi;;
- 1) $echo "Test 3Pbc failed: files 3Pbc.O and $srcdir/3b2l17-FF differ" 1>&2
- (diff -c 3Pbc.O $srcdir/3b2l17-FF) 2> /dev/null
- errors=`expr $errors + 1`;;
- 2) $echo "Test 3Pbc may have failed." 1>&2
- $echo The command "cmp 3Pbc.O $srcdir/3b2l17-FF" failed. 1>&2
- errors=`expr $errors + 1`;;
- esac
-fi
-test -s 3Pbc.E || rm -f 3Pbc.E
-$xx --date-format="-- Date/Time --" -h x +3 -b --columns=2 -l 17 $srcdir/FnFn > 3Pbc.C.O 2> 3Pbc.C.E
-code=$?
-if test $code != 0; then
- $echo "Test 3Pbc.C failed: $xx return code $code differs from expected value 0" 1>&2
- errors=`expr $errors + 1`
-else
- cmp 3Pbc.C.O $srcdir/3b2l17-FF > /dev/null 2>&1
- case $? in
- 0) if test "$VERBOSE"; then $echo "passed 3Pbc.C"; fi;;
- 1) $echo "Test 3Pbc.C failed: files 3Pbc.C.O and $srcdir/3b2l17-FF differ" 1>&2
- (diff -c 3Pbc.C.O $srcdir/3b2l17-FF) 2> /dev/null
- errors=`expr $errors + 1`;;
- 2) $echo "Test 3Pbc.C may have failed." 1>&2
- $echo The command "cmp 3Pbc.C.O $srcdir/3b2l17-FF" failed. 1>&2
- errors=`expr $errors + 1`;;
- esac
-fi
-test -s 3Pbc.C.E || rm -f 3Pbc.C.E
-$xx --date-format="-- Date/Time --" -h x +3 -b -2 -l 17 $srcdir/tFFn > 3Pbd.O 2> 3Pbd.E
-code=$?
-if test $code != 0; then
- $echo "Test 3Pbd failed: $xx return code $code differs from expected value 0" 1>&2
- errors=`expr $errors + 1`
-else
- cmp 3Pbd.O $srcdir/3b2l17-FF > /dev/null 2>&1
- case $? in
- 0) if test "$VERBOSE"; then $echo "passed 3Pbd"; fi;;
- 1) $echo "Test 3Pbd failed: files 3Pbd.O and $srcdir/3b2l17-FF differ" 1>&2
- (diff -c 3Pbd.O $srcdir/3b2l17-FF) 2> /dev/null
- errors=`expr $errors + 1`;;
- 2) $echo "Test 3Pbd may have failed." 1>&2
- $echo The command "cmp 3Pbd.O $srcdir/3b2l17-FF" failed. 1>&2
- errors=`expr $errors + 1`;;
- esac
-fi
-test -s 3Pbd.E || rm -f 3Pbd.E
-$xx --date-format="-- Date/Time --" -h x +3 -b --columns=2 -l 17 $srcdir/tFFn > 3Pbd.C.O 2> 3Pbd.C.E
-code=$?
-if test $code != 0; then
- $echo "Test 3Pbd.C failed: $xx return code $code differs from expected value 0" 1>&2
- errors=`expr $errors + 1`
-else
- cmp 3Pbd.C.O $srcdir/3b2l17-FF > /dev/null 2>&1
- case $? in
- 0) if test "$VERBOSE"; then $echo "passed 3Pbd.C"; fi;;
- 1) $echo "Test 3Pbd.C failed: files 3Pbd.C.O and $srcdir/3b2l17-FF differ" 1>&2
- (diff -c 3Pbd.C.O $srcdir/3b2l17-FF) 2> /dev/null
- errors=`expr $errors + 1`;;
- 2) $echo "Test 3Pbd.C may have failed." 1>&2
- $echo The command "cmp 3Pbd.C.O $srcdir/3b2l17-FF" failed. 1>&2
- errors=`expr $errors + 1`;;
- esac
-fi
-test -s 3Pbd.C.E || rm -f 3Pbd.C.E
-$xx --date-format="-- Date/Time --" -h x +3 -b -2 -l 17 $srcdir/tFnFt > 3Pbe.O 2> 3Pbe.E
-code=$?
-if test $code != 0; then
- $echo "Test 3Pbe failed: $xx return code $code differs from expected value 0" 1>&2
- errors=`expr $errors + 1`
-else
- cmp 3Pbe.O $srcdir/3b2l17-FF > /dev/null 2>&1
- case $? in
- 0) if test "$VERBOSE"; then $echo "passed 3Pbe"; fi;;
- 1) $echo "Test 3Pbe failed: files 3Pbe.O and $srcdir/3b2l17-FF differ" 1>&2
- (diff -c 3Pbe.O $srcdir/3b2l17-FF) 2> /dev/null
- errors=`expr $errors + 1`;;
- 2) $echo "Test 3Pbe may have failed." 1>&2
- $echo The command "cmp 3Pbe.O $srcdir/3b2l17-FF" failed. 1>&2
- errors=`expr $errors + 1`;;
- esac
-fi
-test -s 3Pbe.E || rm -f 3Pbe.E
-$xx --date-format="-- Date/Time --" -h x +3 -b --columns=2 -l 17 $srcdir/tFnFt > 3Pbe.C.O 2> 3Pbe.C.E
-code=$?
-if test $code != 0; then
- $echo "Test 3Pbe.C failed: $xx return code $code differs from expected value 0" 1>&2
- errors=`expr $errors + 1`
-else
- cmp 3Pbe.C.O $srcdir/3b2l17-FF > /dev/null 2>&1
- case $? in
- 0) if test "$VERBOSE"; then $echo "passed 3Pbe.C"; fi;;
- 1) $echo "Test 3Pbe.C failed: files 3Pbe.C.O and $srcdir/3b2l17-FF differ" 1>&2
- (diff -c 3Pbe.C.O $srcdir/3b2l17-FF) 2> /dev/null
- errors=`expr $errors + 1`;;
- 2) $echo "Test 3Pbe.C may have failed." 1>&2
- $echo The command "cmp 3Pbe.C.O $srcdir/3b2l17-FF" failed. 1>&2
- errors=`expr $errors + 1`;;
- esac
-fi
-test -s 3Pbe.C.E || rm -f 3Pbe.C.E
-$xx --date-format="-- Date/Time --" -h x +3 -b -2 -l 17 $srcdir/tFFt > 3Pbf.O 2> 3Pbf.E
-code=$?
-if test $code != 0; then
- $echo "Test 3Pbf failed: $xx return code $code differs from expected value 0" 1>&2
- errors=`expr $errors + 1`
-else
- cmp 3Pbf.O $srcdir/3b2l17-FF > /dev/null 2>&1
- case $? in
- 0) if test "$VERBOSE"; then $echo "passed 3Pbf"; fi;;
- 1) $echo "Test 3Pbf failed: files 3Pbf.O and $srcdir/3b2l17-FF differ" 1>&2
- (diff -c 3Pbf.O $srcdir/3b2l17-FF) 2> /dev/null
- errors=`expr $errors + 1`;;
- 2) $echo "Test 3Pbf may have failed." 1>&2
- $echo The command "cmp 3Pbf.O $srcdir/3b2l17-FF" failed. 1>&2
- errors=`expr $errors + 1`;;
- esac
-fi
-test -s 3Pbf.E || rm -f 3Pbf.E
-$xx --date-format="-- Date/Time --" -h x +3 -b --columns=2 -l 17 $srcdir/tFFt > 3Pbf.C.O 2> 3Pbf.C.E
-code=$?
-if test $code != 0; then
- $echo "Test 3Pbf.C failed: $xx return code $code differs from expected value 0" 1>&2
- errors=`expr $errors + 1`
-else
- cmp 3Pbf.C.O $srcdir/3b2l17-FF > /dev/null 2>&1
- case $? in
- 0) if test "$VERBOSE"; then $echo "passed 3Pbf.C"; fi;;
- 1) $echo "Test 3Pbf.C failed: files 3Pbf.C.O and $srcdir/3b2l17-FF differ" 1>&2
- (diff -c 3Pbf.C.O $srcdir/3b2l17-FF) 2> /dev/null
- errors=`expr $errors + 1`;;
- 2) $echo "Test 3Pbf.C may have failed." 1>&2
- $echo The command "cmp 3Pbf.C.O $srcdir/3b2l17-FF" failed. 1>&2
- errors=`expr $errors + 1`;;
- esac
-fi
-test -s 3Pbf.C.E || rm -f 3Pbf.C.E
-$xx --date-format="-- Date/Time --" -h x -l 24 $srcdir/tn > 4a.O 2> 4a.E
-code=$?
-if test $code != 0; then
- $echo "Test 4a failed: $xx return code $code differs from expected value 0" 1>&2
- errors=`expr $errors + 1`
-else
- cmp 4a.O $srcdir/l24-t > /dev/null 2>&1
- case $? in
- 0) if test "$VERBOSE"; then $echo "passed 4a"; fi;;
- 1) $echo "Test 4a failed: files 4a.O and $srcdir/l24-t differ" 1>&2
- (diff -c 4a.O $srcdir/l24-t) 2> /dev/null
- errors=`expr $errors + 1`;;
- 2) $echo "Test 4a may have failed." 1>&2
- $echo The command "cmp 4a.O $srcdir/l24-t" failed. 1>&2
- errors=`expr $errors + 1`;;
- esac
-fi
-test -s 4a.E || rm -f 4a.E
-$xx --date-format="-- Date/Time --" -h x -l 17 -f $srcdir/tn > 4b.O 2> 4b.E
-code=$?
-if test $code != 0; then
- $echo "Test 4b failed: $xx return code $code differs from expected value 0" 1>&2
- errors=`expr $errors + 1`
-else
- cmp 4b.O $srcdir/l17f-t > /dev/null 2>&1
- case $? in
- 0) if test "$VERBOSE"; then $echo "passed 4b"; fi;;
- 1) $echo "Test 4b failed: files 4b.O and $srcdir/l17f-t differ" 1>&2
- (diff -c 4b.O $srcdir/l17f-t) 2> /dev/null
- errors=`expr $errors + 1`;;
- 2) $echo "Test 4b may have failed." 1>&2
- $echo The command "cmp 4b.O $srcdir/l17f-t" failed. 1>&2
- errors=`expr $errors + 1`;;
- esac
-fi
-test -s 4b.E || rm -f 4b.E
-$xx --date-format="-- Date/Time --" -h x +3 -l 24 $srcdir/tn > 4c.O 2> 4c.E
-code=$?
-if test $code != 0; then
- $echo "Test 4c failed: $xx return code $code differs from expected value 0" 1>&2
- errors=`expr $errors + 1`
-else
- cmp 4c.O $srcdir/3l24-t > /dev/null 2>&1
- case $? in
- 0) if test "$VERBOSE"; then $echo "passed 4c"; fi;;
- 1) $echo "Test 4c failed: files 4c.O and $srcdir/3l24-t differ" 1>&2
- (diff -c 4c.O $srcdir/3l24-t) 2> /dev/null
- errors=`expr $errors + 1`;;
- 2) $echo "Test 4c may have failed." 1>&2
- $echo The command "cmp 4c.O $srcdir/3l24-t" failed. 1>&2
- errors=`expr $errors + 1`;;
- esac
-fi
-test -s 4c.E || rm -f 4c.E
-$xx --date-format="-- Date/Time --" -h x +3 -l 17 -f $srcdir/tn > 4d.O 2> 4d.E
-code=$?
-if test $code != 0; then
- $echo "Test 4d failed: $xx return code $code differs from expected value 0" 1>&2
- errors=`expr $errors + 1`
-else
- cmp 4d.O $srcdir/3l17f-t > /dev/null 2>&1
- case $? in
- 0) if test "$VERBOSE"; then $echo "passed 4d"; fi;;
- 1) $echo "Test 4d failed: files 4d.O and $srcdir/3l17f-t differ" 1>&2
- (diff -c 4d.O $srcdir/3l17f-t) 2> /dev/null
- errors=`expr $errors + 1`;;
- 2) $echo "Test 4d may have failed." 1>&2
- $echo The command "cmp 4d.O $srcdir/3l17f-t" failed. 1>&2
- errors=`expr $errors + 1`;;
- esac
-fi
-test -s 4d.E || rm -f 4d.E
-$xx --date-format="-- Date/Time --" -h x +3:5 -l 17 -f $srcdir/tn > 4e.O 2> 4e.E
-code=$?
-if test $code != 0; then
- $echo "Test 4e failed: $xx return code $code differs from expected value 0" 1>&2
- errors=`expr $errors + 1`
-else
- cmp 4e.O $srcdir/3-5l17f-t > /dev/null 2>&1
- case $? in
- 0) if test "$VERBOSE"; then $echo "passed 4e"; fi;;
- 1) $echo "Test 4e failed: files 4e.O and $srcdir/3-5l17f-t differ" 1>&2
- (diff -c 4e.O $srcdir/3-5l17f-t) 2> /dev/null
- errors=`expr $errors + 1`;;
- 2) $echo "Test 4e may have failed." 1>&2
- $echo The command "cmp 4e.O $srcdir/3-5l17f-t" failed. 1>&2
- errors=`expr $errors + 1`;;
- esac
-fi
-test -s 4e.E || rm -f 4e.E
-$xx --date-format="-- Date/Time --" -h x -a -3 -l 15 $srcdir/tn > 4f.O 2> 4f.E
-code=$?
-if test $code != 0; then
- $echo "Test 4f failed: $xx return code $code differs from expected value 0" 1>&2
- errors=`expr $errors + 1`
-else
- cmp 4f.O $srcdir/a3l15-t > /dev/null 2>&1
- case $? in
- 0) if test "$VERBOSE"; then $echo "passed 4f"; fi;;
- 1) $echo "Test 4f failed: files 4f.O and $srcdir/a3l15-t differ" 1>&2
- (diff -c 4f.O $srcdir/a3l15-t) 2> /dev/null
- errors=`expr $errors + 1`;;
- 2) $echo "Test 4f may have failed." 1>&2
- $echo The command "cmp 4f.O $srcdir/a3l15-t" failed. 1>&2
- errors=`expr $errors + 1`;;
- esac
-fi
-test -s 4f.E || rm -f 4f.E
-$xx --date-format="-- Date/Time --" -h x -a --columns=3 -l 15 $srcdir/tn > 4f.C.O 2> 4f.C.E
-code=$?
-if test $code != 0; then
- $echo "Test 4f.C failed: $xx return code $code differs from expected value 0" 1>&2
- errors=`expr $errors + 1`
-else
- cmp 4f.C.O $srcdir/a3l15-t > /dev/null 2>&1
- case $? in
- 0) if test "$VERBOSE"; then $echo "passed 4f.C"; fi;;
- 1) $echo "Test 4f.C failed: files 4f.C.O and $srcdir/a3l15-t differ" 1>&2
- (diff -c 4f.C.O $srcdir/a3l15-t) 2> /dev/null
- errors=`expr $errors + 1`;;
- 2) $echo "Test 4f.C may have failed." 1>&2
- $echo The command "cmp 4f.C.O $srcdir/a3l15-t" failed. 1>&2
- errors=`expr $errors + 1`;;
- esac
-fi
-test -s 4f.C.E || rm -f 4f.C.E
-$xx --date-format="-- Date/Time --" -h x -a -3 -l 8 -f $srcdir/tn > 4g.O 2> 4g.E
-code=$?
-if test $code != 0; then
- $echo "Test 4g failed: $xx return code $code differs from expected value 0" 1>&2
- errors=`expr $errors + 1`
-else
- cmp 4g.O $srcdir/a3l8f-t > /dev/null 2>&1
- case $? in
- 0) if test "$VERBOSE"; then $echo "passed 4g"; fi;;
- 1) $echo "Test 4g failed: files 4g.O and $srcdir/a3l8f-t differ" 1>&2
- (diff -c 4g.O $srcdir/a3l8f-t) 2> /dev/null
- errors=`expr $errors + 1`;;
- 2) $echo "Test 4g may have failed." 1>&2
- $echo The command "cmp 4g.O $srcdir/a3l8f-t" failed. 1>&2
- errors=`expr $errors + 1`;;
- esac
-fi
-test -s 4g.E || rm -f 4g.E
-$xx --date-format="-- Date/Time --" -h x -a --columns=3 -l 8 -f $srcdir/tn > 4g.C.O 2> 4g.C.E
-code=$?
-if test $code != 0; then
- $echo "Test 4g.C failed: $xx return code $code differs from expected value 0" 1>&2
- errors=`expr $errors + 1`
-else
- cmp 4g.C.O $srcdir/a3l8f-t > /dev/null 2>&1
- case $? in
- 0) if test "$VERBOSE"; then $echo "passed 4g.C"; fi;;
- 1) $echo "Test 4g.C failed: files 4g.C.O and $srcdir/a3l8f-t differ" 1>&2
- (diff -c 4g.C.O $srcdir/a3l8f-t) 2> /dev/null
- errors=`expr $errors + 1`;;
- 2) $echo "Test 4g.C may have failed." 1>&2
- $echo The command "cmp 4g.C.O $srcdir/a3l8f-t" failed. 1>&2
- errors=`expr $errors + 1`;;
- esac
-fi
-test -s 4g.C.E || rm -f 4g.C.E
-$xx --date-format="-- Date/Time --" -h x +3 -a -3 -l 15 $srcdir/tn > 4h.O 2> 4h.E
-code=$?
-if test $code != 0; then
- $echo "Test 4h failed: $xx return code $code differs from expected value 0" 1>&2
- errors=`expr $errors + 1`
-else
- cmp 4h.O $srcdir/3a3l15-t > /dev/null 2>&1
- case $? in
- 0) if test "$VERBOSE"; then $echo "passed 4h"; fi;;
- 1) $echo "Test 4h failed: files 4h.O and $srcdir/3a3l15-t differ" 1>&2
- (diff -c 4h.O $srcdir/3a3l15-t) 2> /dev/null
- errors=`expr $errors + 1`;;
- 2) $echo "Test 4h may have failed." 1>&2
- $echo The command "cmp 4h.O $srcdir/3a3l15-t" failed. 1>&2
- errors=`expr $errors + 1`;;
- esac
-fi
-test -s 4h.E || rm -f 4h.E
-$xx --date-format="-- Date/Time --" -h x +3 -a --columns=3 -l 15 $srcdir/tn > 4h.C.O 2> 4h.C.E
-code=$?
-if test $code != 0; then
- $echo "Test 4h.C failed: $xx return code $code differs from expected value 0" 1>&2
- errors=`expr $errors + 1`
-else
- cmp 4h.C.O $srcdir/3a3l15-t > /dev/null 2>&1
- case $? in
- 0) if test "$VERBOSE"; then $echo "passed 4h.C"; fi;;
- 1) $echo "Test 4h.C failed: files 4h.C.O and $srcdir/3a3l15-t differ" 1>&2
- (diff -c 4h.C.O $srcdir/3a3l15-t) 2> /dev/null
- errors=`expr $errors + 1`;;
- 2) $echo "Test 4h.C may have failed." 1>&2
- $echo The command "cmp 4h.C.O $srcdir/3a3l15-t" failed. 1>&2
- errors=`expr $errors + 1`;;
- esac
-fi
-test -s 4h.C.E || rm -f 4h.C.E
-$xx --date-format="-- Date/Time --" -h x +3 -a -3 -l 8 -f $srcdir/tn > 4i.O 2> 4i.E
-code=$?
-if test $code != 0; then
- $echo "Test 4i failed: $xx return code $code differs from expected value 0" 1>&2
- errors=`expr $errors + 1`
-else
- cmp 4i.O $srcdir/3a3l8f-t > /dev/null 2>&1
- case $? in
- 0) if test "$VERBOSE"; then $echo "passed 4i"; fi;;
- 1) $echo "Test 4i failed: files 4i.O and $srcdir/3a3l8f-t differ" 1>&2
- (diff -c 4i.O $srcdir/3a3l8f-t) 2> /dev/null
- errors=`expr $errors + 1`;;
- 2) $echo "Test 4i may have failed." 1>&2
- $echo The command "cmp 4i.O $srcdir/3a3l8f-t" failed. 1>&2
- errors=`expr $errors + 1`;;
- esac
-fi
-test -s 4i.E || rm -f 4i.E
-$xx --date-format="-- Date/Time --" -h x +3 -a --columns=3 -l 8 -f $srcdir/tn > 4i.C.O 2> 4i.C.E
-code=$?
-if test $code != 0; then
- $echo "Test 4i.C failed: $xx return code $code differs from expected value 0" 1>&2
- errors=`expr $errors + 1`
-else
- cmp 4i.C.O $srcdir/3a3l8f-t > /dev/null 2>&1
- case $? in
- 0) if test "$VERBOSE"; then $echo "passed 4i.C"; fi;;
- 1) $echo "Test 4i.C failed: files 4i.C.O and $srcdir/3a3l8f-t differ" 1>&2
- (diff -c 4i.C.O $srcdir/3a3l8f-t) 2> /dev/null
- errors=`expr $errors + 1`;;
- 2) $echo "Test 4i.C may have failed." 1>&2
- $echo The command "cmp 4i.C.O $srcdir/3a3l8f-t" failed. 1>&2
- errors=`expr $errors + 1`;;
- esac
-fi
-test -s 4i.C.E || rm -f 4i.C.E
-$xx --date-format="-- Date/Time --" -h x -b -3 -l 15 $srcdir/tn > 4j.O 2> 4j.E
-code=$?
-if test $code != 0; then
- $echo "Test 4j failed: $xx return code $code differs from expected value 0" 1>&2
- errors=`expr $errors + 1`
-else
- cmp 4j.O $srcdir/b3l15-t > /dev/null 2>&1
- case $? in
- 0) if test "$VERBOSE"; then $echo "passed 4j"; fi;;
- 1) $echo "Test 4j failed: files 4j.O and $srcdir/b3l15-t differ" 1>&2
- (diff -c 4j.O $srcdir/b3l15-t) 2> /dev/null
- errors=`expr $errors + 1`;;
- 2) $echo "Test 4j may have failed." 1>&2
- $echo The command "cmp 4j.O $srcdir/b3l15-t" failed. 1>&2
- errors=`expr $errors + 1`;;
- esac
-fi
-test -s 4j.E || rm -f 4j.E
-$xx --date-format="-- Date/Time --" -h x -b --columns=3 -l 15 $srcdir/tn > 4j.C.O 2> 4j.C.E
-code=$?
-if test $code != 0; then
- $echo "Test 4j.C failed: $xx return code $code differs from expected value 0" 1>&2
- errors=`expr $errors + 1`
-else
- cmp 4j.C.O $srcdir/b3l15-t > /dev/null 2>&1
- case $? in
- 0) if test "$VERBOSE"; then $echo "passed 4j.C"; fi;;
- 1) $echo "Test 4j.C failed: files 4j.C.O and $srcdir/b3l15-t differ" 1>&2
- (diff -c 4j.C.O $srcdir/b3l15-t) 2> /dev/null
- errors=`expr $errors + 1`;;
- 2) $echo "Test 4j.C may have failed." 1>&2
- $echo The command "cmp 4j.C.O $srcdir/b3l15-t" failed. 1>&2
- errors=`expr $errors + 1`;;
- esac
-fi
-test -s 4j.C.E || rm -f 4j.C.E
-$xx --date-format="-- Date/Time --" -h x -b -3 -l 8 -f $srcdir/tn > 4k.O 2> 4k.E
-code=$?
-if test $code != 0; then
- $echo "Test 4k failed: $xx return code $code differs from expected value 0" 1>&2
- errors=`expr $errors + 1`
-else
- cmp 4k.O $srcdir/b3l8f-t > /dev/null 2>&1
- case $? in
- 0) if test "$VERBOSE"; then $echo "passed 4k"; fi;;
- 1) $echo "Test 4k failed: files 4k.O and $srcdir/b3l8f-t differ" 1>&2
- (diff -c 4k.O $srcdir/b3l8f-t) 2> /dev/null
- errors=`expr $errors + 1`;;
- 2) $echo "Test 4k may have failed." 1>&2
- $echo The command "cmp 4k.O $srcdir/b3l8f-t" failed. 1>&2
- errors=`expr $errors + 1`;;
- esac
-fi
-test -s 4k.E || rm -f 4k.E
-$xx --date-format="-- Date/Time --" -h x -b --columns=3 -l 8 -f $srcdir/tn > 4k.C.O 2> 4k.C.E
-code=$?
-if test $code != 0; then
- $echo "Test 4k.C failed: $xx return code $code differs from expected value 0" 1>&2
- errors=`expr $errors + 1`
-else
- cmp 4k.C.O $srcdir/b3l8f-t > /dev/null 2>&1
- case $? in
- 0) if test "$VERBOSE"; then $echo "passed 4k.C"; fi;;
- 1) $echo "Test 4k.C failed: files 4k.C.O and $srcdir/b3l8f-t differ" 1>&2
- (diff -c 4k.C.O $srcdir/b3l8f-t) 2> /dev/null
- errors=`expr $errors + 1`;;
- 2) $echo "Test 4k.C may have failed." 1>&2
- $echo The command "cmp 4k.C.O $srcdir/b3l8f-t" failed. 1>&2
- errors=`expr $errors + 1`;;
- esac
-fi
-test -s 4k.C.E || rm -f 4k.C.E
-$xx --date-format="-- Date/Time --" -h x +3 -b -3 -l 15 $srcdir/tn > 4l.O 2> 4l.E
-code=$?
-if test $code != 0; then
- $echo "Test 4l failed: $xx return code $code differs from expected value 0" 1>&2
- errors=`expr $errors + 1`
-else
- cmp 4l.O $srcdir/3b3l15-t > /dev/null 2>&1
- case $? in
- 0) if test "$VERBOSE"; then $echo "passed 4l"; fi;;
- 1) $echo "Test 4l failed: files 4l.O and $srcdir/3b3l15-t differ" 1>&2
- (diff -c 4l.O $srcdir/3b3l15-t) 2> /dev/null
- errors=`expr $errors + 1`;;
- 2) $echo "Test 4l may have failed." 1>&2
- $echo The command "cmp 4l.O $srcdir/3b3l15-t" failed. 1>&2
- errors=`expr $errors + 1`;;
- esac
-fi
-test -s 4l.E || rm -f 4l.E
-$xx --date-format="-- Date/Time --" -h x +3 -b --columns=3 -l 15 $srcdir/tn > 4l.C.O 2> 4l.C.E
-code=$?
-if test $code != 0; then
- $echo "Test 4l.C failed: $xx return code $code differs from expected value 0" 1>&2
- errors=`expr $errors + 1`
-else
- cmp 4l.C.O $srcdir/3b3l15-t > /dev/null 2>&1
- case $? in
- 0) if test "$VERBOSE"; then $echo "passed 4l.C"; fi;;
- 1) $echo "Test 4l.C failed: files 4l.C.O and $srcdir/3b3l15-t differ" 1>&2
- (diff -c 4l.C.O $srcdir/3b3l15-t) 2> /dev/null
- errors=`expr $errors + 1`;;
- 2) $echo "Test 4l.C may have failed." 1>&2
- $echo The command "cmp 4l.C.O $srcdir/3b3l15-t" failed. 1>&2
- errors=`expr $errors + 1`;;
- esac
-fi
-test -s 4l.C.E || rm -f 4l.C.E
-$xx --date-format="-- Date/Time --" -h x +3 -b -3 -l 8 -f $srcdir/tn > 4m.O 2> 4m.E
-code=$?
-if test $code != 0; then
- $echo "Test 4m failed: $xx return code $code differs from expected value 0" 1>&2
- errors=`expr $errors + 1`
-else
- cmp 4m.O $srcdir/3b3l8f-t > /dev/null 2>&1
- case $? in
- 0) if test "$VERBOSE"; then $echo "passed 4m"; fi;;
- 1) $echo "Test 4m failed: files 4m.O and $srcdir/3b3l8f-t differ" 1>&2
- (diff -c 4m.O $srcdir/3b3l8f-t) 2> /dev/null
- errors=`expr $errors + 1`;;
- 2) $echo "Test 4m may have failed." 1>&2
- $echo The command "cmp 4m.O $srcdir/3b3l8f-t" failed. 1>&2
- errors=`expr $errors + 1`;;
- esac
-fi
-test -s 4m.E || rm -f 4m.E
-$xx --date-format="-- Date/Time --" -h x +3 -b --columns=3 -l 8 -f $srcdir/tn > 4m.C.O 2> 4m.C.E
-code=$?
-if test $code != 0; then
- $echo "Test 4m.C failed: $xx return code $code differs from expected value 0" 1>&2
- errors=`expr $errors + 1`
-else
- cmp 4m.C.O $srcdir/3b3l8f-t > /dev/null 2>&1
- case $? in
- 0) if test "$VERBOSE"; then $echo "passed 4m.C"; fi;;
- 1) $echo "Test 4m.C failed: files 4m.C.O and $srcdir/3b3l8f-t differ" 1>&2
- (diff -c 4m.C.O $srcdir/3b3l8f-t) 2> /dev/null
- errors=`expr $errors + 1`;;
- 2) $echo "Test 4m.C may have failed." 1>&2
- $echo The command "cmp 4m.C.O $srcdir/3b3l8f-t" failed. 1>&2
- errors=`expr $errors + 1`;;
- esac
-fi
-test -s 4m.C.E || rm -f 4m.C.E
-$xx --date-format="-- Date/Time --" -h x -m -l 24 $srcdir/tn $srcdir/tn > 5a.O 2> 5a.E
-code=$?
-if test $code != 0; then
- $echo "Test 5a failed: $xx return code $code differs from expected value 0" 1>&2
- errors=`expr $errors + 1`
-else
- cmp 5a.O $srcdir/ml24-t > /dev/null 2>&1
- case $? in
- 0) if test "$VERBOSE"; then $echo "passed 5a"; fi;;
- 1) $echo "Test 5a failed: files 5a.O and $srcdir/ml24-t differ" 1>&2
- (diff -c 5a.O $srcdir/ml24-t) 2> /dev/null
- errors=`expr $errors + 1`;;
- 2) $echo "Test 5a may have failed." 1>&2
- $echo The command "cmp 5a.O $srcdir/ml24-t" failed. 1>&2
- errors=`expr $errors + 1`;;
- esac
-fi
-test -s 5a.E || rm -f 5a.E
-$xx --date-format="-- Date/Time --" -h x -m -l 17 -f $srcdir/tn $srcdir/tn > 5b.O 2> 5b.E
-code=$?
-if test $code != 0; then
- $echo "Test 5b failed: $xx return code $code differs from expected value 0" 1>&2
- errors=`expr $errors + 1`
-else
- cmp 5b.O $srcdir/ml17f-t > /dev/null 2>&1
- case $? in
- 0) if test "$VERBOSE"; then $echo "passed 5b"; fi;;
- 1) $echo "Test 5b failed: files 5b.O and $srcdir/ml17f-t differ" 1>&2
- (diff -c 5b.O $srcdir/ml17f-t) 2> /dev/null
- errors=`expr $errors + 1`;;
- 2) $echo "Test 5b may have failed." 1>&2
- $echo The command "cmp 5b.O $srcdir/ml17f-t" failed. 1>&2
- errors=`expr $errors + 1`;;
- esac
-fi
-test -s 5b.E || rm -f 5b.E
-$xx --date-format="-- Date/Time --" -h x +3 -m -l 24 $srcdir/tn $srcdir/tn > 5c.O 2> 5c.E
-code=$?
-if test $code != 0; then
- $echo "Test 5c failed: $xx return code $code differs from expected value 0" 1>&2
- errors=`expr $errors + 1`
-else
- cmp 5c.O $srcdir/3ml24-t > /dev/null 2>&1
- case $? in
- 0) if test "$VERBOSE"; then $echo "passed 5c"; fi;;
- 1) $echo "Test 5c failed: files 5c.O and $srcdir/3ml24-t differ" 1>&2
- (diff -c 5c.O $srcdir/3ml24-t) 2> /dev/null
- errors=`expr $errors + 1`;;
- 2) $echo "Test 5c may have failed." 1>&2
- $echo The command "cmp 5c.O $srcdir/3ml24-t" failed. 1>&2
- errors=`expr $errors + 1`;;
- esac
-fi
-test -s 5c.E || rm -f 5c.E
-$xx --date-format="-- Date/Time --" -h x +3 -m -l 17 -f $srcdir/tn $srcdir/tn > 5d.O 2> 5d.E
-code=$?
-if test $code != 0; then
- $echo "Test 5d failed: $xx return code $code differs from expected value 0" 1>&2
- errors=`expr $errors + 1`
-else
- cmp 5d.O $srcdir/3ml17f-t > /dev/null 2>&1
- case $? in
- 0) if test "$VERBOSE"; then $echo "passed 5d"; fi;;
- 1) $echo "Test 5d failed: files 5d.O and $srcdir/3ml17f-t differ" 1>&2
- (diff -c 5d.O $srcdir/3ml17f-t) 2> /dev/null
- errors=`expr $errors + 1`;;
- 2) $echo "Test 5d may have failed." 1>&2
- $echo The command "cmp 5d.O $srcdir/3ml17f-t" failed. 1>&2
- errors=`expr $errors + 1`;;
- esac
-fi
-test -s 5d.E || rm -f 5d.E
-$xx --date-format="-- Date/Time --" -h x -m -l 17 -f $srcdir/0Ft $srcdir/0Ft > 5e.O 2> 5e.E
-code=$?
-if test $code != 0; then
- $echo "Test 5e failed: $xx return code $code differs from expected value 0" 1>&2
- errors=`expr $errors + 1`
-else
- cmp 5e.O $srcdir/ml17f-0F > /dev/null 2>&1
- case $? in
- 0) if test "$VERBOSE"; then $echo "passed 5e"; fi;;
- 1) $echo "Test 5e failed: files 5e.O and $srcdir/ml17f-0F differ" 1>&2
- (diff -c 5e.O $srcdir/ml17f-0F) 2> /dev/null
- errors=`expr $errors + 1`;;
- 2) $echo "Test 5e may have failed." 1>&2
- $echo The command "cmp 5e.O $srcdir/ml17f-0F" failed. 1>&2
- errors=`expr $errors + 1`;;
- esac
-fi
-test -s 5e.E || rm -f 5e.E
-$xx --date-format="-- Date/Time --" -h x -m -l 17 -f $srcdir/0Ft $srcdir/0Fnt > 5f.O 2> 5f.E
-code=$?
-if test $code != 0; then
- $echo "Test 5f failed: $xx return code $code differs from expected value 0" 1>&2
- errors=`expr $errors + 1`
-else
- cmp 5f.O $srcdir/ml17f-0F > /dev/null 2>&1
- case $? in
- 0) if test "$VERBOSE"; then $echo "passed 5f"; fi;;
- 1) $echo "Test 5f failed: files 5f.O and $srcdir/ml17f-0F differ" 1>&2
- (diff -c 5f.O $srcdir/ml17f-0F) 2> /dev/null
- errors=`expr $errors + 1`;;
- 2) $echo "Test 5f may have failed." 1>&2
- $echo The command "cmp 5f.O $srcdir/ml17f-0F" failed. 1>&2
- errors=`expr $errors + 1`;;
- esac
-fi
-test -s 5f.E || rm -f 5f.E
-$xx --date-format="-- Date/Time --" -h x -m -l 17 -f $srcdir/tn $srcdir/0Ft > 5g.O 2> 5g.E
-code=$?
-if test $code != 0; then
- $echo "Test 5g failed: $xx return code $code differs from expected value 0" 1>&2
- errors=`expr $errors + 1`
-else
- cmp 5g.O $srcdir/ml17f-t-0F > /dev/null 2>&1
- case $? in
- 0) if test "$VERBOSE"; then $echo "passed 5g"; fi;;
- 1) $echo "Test 5g failed: files 5g.O and $srcdir/ml17f-t-0F differ" 1>&2
- (diff -c 5g.O $srcdir/ml17f-t-0F) 2> /dev/null
- errors=`expr $errors + 1`;;
- 2) $echo "Test 5g may have failed." 1>&2
- $echo The command "cmp 5g.O $srcdir/ml17f-t-0F" failed. 1>&2
- errors=`expr $errors + 1`;;
- esac
-fi
-test -s 5g.E || rm -f 5g.E
-$xx --date-format="-- Date/Time --" -h x -m -l 24 $srcdir/tFFn $srcdir/tFnFt > 5ma.O 2> 5ma.E
-code=$?
-if test $code != 0; then
- $echo "Test 5ma failed: $xx return code $code differs from expected value 0" 1>&2
- errors=`expr $errors + 1`
-else
- cmp 5ma.O $srcdir/ml24-FF > /dev/null 2>&1
- case $? in
- 0) if test "$VERBOSE"; then $echo "passed 5ma"; fi;;
- 1) $echo "Test 5ma failed: files 5ma.O and $srcdir/ml24-FF differ" 1>&2
- (diff -c 5ma.O $srcdir/ml24-FF) 2> /dev/null
- errors=`expr $errors + 1`;;
- 2) $echo "Test 5ma may have failed." 1>&2
- $echo The command "cmp 5ma.O $srcdir/ml24-FF" failed. 1>&2
- errors=`expr $errors + 1`;;
- esac
-fi
-test -s 5ma.E || rm -f 5ma.E
-$xx --date-format="-- Date/Time --" -h x -m -l 24 $srcdir/tFFn $srcdir/FFn > 5mb.O 2> 5mb.E
-code=$?
-if test $code != 0; then
- $echo "Test 5mb failed: $xx return code $code differs from expected value 0" 1>&2
- errors=`expr $errors + 1`
-else
- cmp 5mb.O $srcdir/ml24-FF > /dev/null 2>&1
- case $? in
- 0) if test "$VERBOSE"; then $echo "passed 5mb"; fi;;
- 1) $echo "Test 5mb failed: files 5mb.O and $srcdir/ml24-FF differ" 1>&2
- (diff -c 5mb.O $srcdir/ml24-FF) 2> /dev/null
- errors=`expr $errors + 1`;;
- 2) $echo "Test 5mb may have failed." 1>&2
- $echo The command "cmp 5mb.O $srcdir/ml24-FF" failed. 1>&2
- errors=`expr $errors + 1`;;
- esac
-fi
-test -s 5mb.E || rm -f 5mb.E
-$xx --date-format="-- Date/Time --" -h x -m -l 24 $srcdir/tn $srcdir/FFn > 5mc.O 2> 5mc.E
-code=$?
-if test $code != 0; then
- $echo "Test 5mc failed: $xx return code $code differs from expected value 0" 1>&2
- errors=`expr $errors + 1`
-else
- cmp 5mc.O $srcdir/ml24-t-FF > /dev/null 2>&1
- case $? in
- 0) if test "$VERBOSE"; then $echo "passed 5mc"; fi;;
- 1) $echo "Test 5mc failed: files 5mc.O and $srcdir/ml24-t-FF differ" 1>&2
- (diff -c 5mc.O $srcdir/ml24-t-FF) 2> /dev/null
- errors=`expr $errors + 1`;;
- 2) $echo "Test 5mc may have failed." 1>&2
- $echo The command "cmp 5mc.O $srcdir/ml24-t-FF" failed. 1>&2
- errors=`expr $errors + 1`;;
- esac
-fi
-test -s 5mc.E || rm -f 5mc.E
-$xx --date-format="-- Date/Time --" -h x -m -l 20 $srcdir/FFn $srcdir/tn > 5md.O 2> 5md.E
-code=$?
-if test $code != 0; then
- $echo "Test 5md failed: $xx return code $code differs from expected value 0" 1>&2
- errors=`expr $errors + 1`
-else
- cmp 5md.O $srcdir/ml20-FF-t > /dev/null 2>&1
- case $? in
- 0) if test "$VERBOSE"; then $echo "passed 5md"; fi;;
- 1) $echo "Test 5md failed: files 5md.O and $srcdir/ml20-FF-t differ" 1>&2
- (diff -c 5md.O $srcdir/ml20-FF-t) 2> /dev/null
- errors=`expr $errors + 1`;;
- 2) $echo "Test 5md may have failed." 1>&2
- $echo The command "cmp 5md.O $srcdir/ml20-FF-t" failed. 1>&2
- errors=`expr $errors + 1`;;
- esac
-fi
-test -s 5md.E || rm -f 5md.E
-$xx --date-format="-- Date/Time --" -h x +3 -m -l 24 $srcdir/FFn $srcdir/FnFn > 5Pma.O 2> 5Pma.E
-code=$?
-if test $code != 0; then
- $echo "Test 5Pma failed: $xx return code $code differs from expected value 0" 1>&2
- errors=`expr $errors + 1`
-else
- cmp 5Pma.O $srcdir/3ml24-FF > /dev/null 2>&1
- case $? in
- 0) if test "$VERBOSE"; then $echo "passed 5Pma"; fi;;
- 1) $echo "Test 5Pma failed: files 5Pma.O and $srcdir/3ml24-FF differ" 1>&2
- (diff -c 5Pma.O $srcdir/3ml24-FF) 2> /dev/null
- errors=`expr $errors + 1`;;
- 2) $echo "Test 5Pma may have failed." 1>&2
- $echo The command "cmp 5Pma.O $srcdir/3ml24-FF" failed. 1>&2
- errors=`expr $errors + 1`;;
- esac
-fi
-test -s 5Pma.E || rm -f 5Pma.E
-$xx --date-format="-- Date/Time --" -h x +3 -m -l 24 $srcdir/tFFn $srcdir/FFn > 5Pmb.O 2> 5Pmb.E
-code=$?
-if test $code != 0; then
- $echo "Test 5Pmb failed: $xx return code $code differs from expected value 0" 1>&2
- errors=`expr $errors + 1`
-else
- cmp 5Pmb.O $srcdir/3ml24-FF > /dev/null 2>&1
- case $? in
- 0) if test "$VERBOSE"; then $echo "passed 5Pmb"; fi;;
- 1) $echo "Test 5Pmb failed: files 5Pmb.O and $srcdir/3ml24-FF differ" 1>&2
- (diff -c 5Pmb.O $srcdir/3ml24-FF) 2> /dev/null
- errors=`expr $errors + 1`;;
- 2) $echo "Test 5Pmb may have failed." 1>&2
- $echo The command "cmp 5Pmb.O $srcdir/3ml24-FF" failed. 1>&2
- errors=`expr $errors + 1`;;
- esac
-fi
-test -s 5Pmb.E || rm -f 5Pmb.E
-$xx --date-format="-- Date/Time --" -h x +3 -m -l 24 $srcdir/tn $srcdir/FFn > 5Pmc.O 2> 5Pmc.E
-code=$?
-if test $code != 0; then
- $echo "Test 5Pmc failed: $xx return code $code differs from expected value 0" 1>&2
- errors=`expr $errors + 1`
-else
- cmp 5Pmc.O $srcdir/3ml24-t-FF > /dev/null 2>&1
- case $? in
- 0) if test "$VERBOSE"; then $echo "passed 5Pmc"; fi;;
- 1) $echo "Test 5Pmc failed: files 5Pmc.O and $srcdir/3ml24-t-FF differ" 1>&2
- (diff -c 5Pmc.O $srcdir/3ml24-t-FF) 2> /dev/null
- errors=`expr $errors + 1`;;
- 2) $echo "Test 5Pmc may have failed." 1>&2
- $echo The command "cmp 5Pmc.O $srcdir/3ml24-t-FF" failed. 1>&2
- errors=`expr $errors + 1`;;
- esac
-fi
-test -s 5Pmc.E || rm -f 5Pmc.E
-$xx --date-format="-- Date/Time --" -h x -t -l 24 $srcdir/tn > 6a.O 2> 6a.E
-code=$?
-if test $code != 0; then
- $echo "Test 6a failed: $xx return code $code differs from expected value 0" 1>&2
- errors=`expr $errors + 1`
-else
- cmp 6a.O $srcdir/t-t > /dev/null 2>&1
- case $? in
- 0) if test "$VERBOSE"; then $echo "passed 6a"; fi;;
- 1) $echo "Test 6a failed: files 6a.O and $srcdir/t-t differ" 1>&2
- (diff -c 6a.O $srcdir/t-t) 2> /dev/null
- errors=`expr $errors + 1`;;
- 2) $echo "Test 6a may have failed." 1>&2
- $echo The command "cmp 6a.O $srcdir/t-t" failed. 1>&2
- errors=`expr $errors + 1`;;
- esac
-fi
-test -s 6a.E || rm -f 6a.E
-$xx --date-format="-- Date/Time --" -h x -t -l 17 -f $srcdir/tn > 6b.O 2> 6b.E
-code=$?
-if test $code != 0; then
- $echo "Test 6b failed: $xx return code $code differs from expected value 0" 1>&2
- errors=`expr $errors + 1`
-else
- cmp 6b.O $srcdir/t-t > /dev/null 2>&1
- case $? in
- 0) if test "$VERBOSE"; then $echo "passed 6b"; fi;;
- 1) $echo "Test 6b failed: files 6b.O and $srcdir/t-t differ" 1>&2
- (diff -c 6b.O $srcdir/t-t) 2> /dev/null
- errors=`expr $errors + 1`;;
- 2) $echo "Test 6b may have failed." 1>&2
- $echo The command "cmp 6b.O $srcdir/t-t" failed. 1>&2
- errors=`expr $errors + 1`;;
- esac
-fi
-test -s 6b.E || rm -f 6b.E
-$xx --date-format="-- Date/Time --" -h x -t -l 17 -f $srcdir/tFFt-bl > 6c.O 2> 6c.E
-code=$?
-if test $code != 0; then
- $echo "Test 6c failed: $xx return code $code differs from expected value 0" 1>&2
- errors=`expr $errors + 1`
-else
- cmp 6c.O $srcdir/t-bl > /dev/null 2>&1
- case $? in
- 0) if test "$VERBOSE"; then $echo "passed 6c"; fi;;
- 1) $echo "Test 6c failed: files 6c.O and $srcdir/t-bl differ" 1>&2
- (diff -c 6c.O $srcdir/t-bl) 2> /dev/null
- errors=`expr $errors + 1`;;
- 2) $echo "Test 6c may have failed." 1>&2
- $echo The command "cmp 6c.O $srcdir/t-bl" failed. 1>&2
- errors=`expr $errors + 1`;;
- esac
-fi
-test -s 6c.E || rm -f 6c.E
-$xx --date-format="-- Date/Time --" -h x -t -l 24 $srcdir/0FnFnt > 6d.O 2> 6d.E
-code=$?
-if test $code != 0; then
- $echo "Test 6d failed: $xx return code $code differs from expected value 0" 1>&2
- errors=`expr $errors + 1`
-else
- cmp 6d.O $srcdir/t-0FF > /dev/null 2>&1
- case $? in
- 0) if test "$VERBOSE"; then $echo "passed 6d"; fi;;
- 1) $echo "Test 6d failed: files 6d.O and $srcdir/t-0FF differ" 1>&2
- (diff -c 6d.O $srcdir/t-0FF) 2> /dev/null
- errors=`expr $errors + 1`;;
- 2) $echo "Test 6d may have failed." 1>&2
- $echo The command "cmp 6d.O $srcdir/t-0FF" failed. 1>&2
- errors=`expr $errors + 1`;;
- esac
-fi
-test -s 6d.E || rm -f 6d.E
-$xx --date-format="-- Date/Time --" -h x -t -l 24 $srcdir/FFn > 6e.O 2> 6e.E
-code=$?
-if test $code != 0; then
- $echo "Test 6e failed: $xx return code $code differs from expected value 0" 1>&2
- errors=`expr $errors + 1`
-else
- cmp 6e.O $srcdir/t-FF > /dev/null 2>&1
- case $? in
- 0) if test "$VERBOSE"; then $echo "passed 6e"; fi;;
- 1) $echo "Test 6e failed: files 6e.O and $srcdir/t-FF differ" 1>&2
- (diff -c 6e.O $srcdir/t-FF) 2> /dev/null
- errors=`expr $errors + 1`;;
- 2) $echo "Test 6e may have failed." 1>&2
- $echo The command "cmp 6e.O $srcdir/t-FF" failed. 1>&2
- errors=`expr $errors + 1`;;
- esac
-fi
-test -s 6e.E || rm -f 6e.E
-$xx --date-format="-- Date/Time --" -h x -t -l 24 $srcdir/FnFn > 6f.O 2> 6f.E
-code=$?
-if test $code != 0; then
- $echo "Test 6f failed: $xx return code $code differs from expected value 0" 1>&2
- errors=`expr $errors + 1`
-else
- cmp 6f.O $srcdir/t-FF > /dev/null 2>&1
- case $? in
- 0) if test "$VERBOSE"; then $echo "passed 6f"; fi;;
- 1) $echo "Test 6f failed: files 6f.O and $srcdir/t-FF differ" 1>&2
- (diff -c 6f.O $srcdir/t-FF) 2> /dev/null
- errors=`expr $errors + 1`;;
- 2) $echo "Test 6f may have failed." 1>&2
- $echo The command "cmp 6f.O $srcdir/t-FF" failed. 1>&2
- errors=`expr $errors + 1`;;
- esac
-fi
-test -s 6f.E || rm -f 6f.E
-$xx --date-format="-- Date/Time --" -h x -t -l 17 -f $srcdir/FFn > 6g.O 2> 6g.E
-code=$?
-if test $code != 0; then
- $echo "Test 6g failed: $xx return code $code differs from expected value 0" 1>&2
- errors=`expr $errors + 1`
-else
- cmp 6g.O $srcdir/t-FF > /dev/null 2>&1
- case $? in
- 0) if test "$VERBOSE"; then $echo "passed 6g"; fi;;
- 1) $echo "Test 6g failed: files 6g.O and $srcdir/t-FF differ" 1>&2
- (diff -c 6g.O $srcdir/t-FF) 2> /dev/null
- errors=`expr $errors + 1`;;
- 2) $echo "Test 6g may have failed." 1>&2
- $echo The command "cmp 6g.O $srcdir/t-FF" failed. 1>&2
- errors=`expr $errors + 1`;;
- esac
-fi
-test -s 6g.E || rm -f 6g.E
-$xx --date-format="-- Date/Time --" -h x -t -a -3 $srcdir/0FnFnt > 6aa.O 2> 6aa.E
-code=$?
-if test $code != 0; then
- $echo "Test 6aa failed: $xx return code $code differs from expected value 0" 1>&2
- errors=`expr $errors + 1`
-else
- cmp 6aa.O $srcdir/ta3-0FF > /dev/null 2>&1
- case $? in
- 0) if test "$VERBOSE"; then $echo "passed 6aa"; fi;;
- 1) $echo "Test 6aa failed: files 6aa.O and $srcdir/ta3-0FF differ" 1>&2
- (diff -c 6aa.O $srcdir/ta3-0FF) 2> /dev/null
- errors=`expr $errors + 1`;;
- 2) $echo "Test 6aa may have failed." 1>&2
- $echo The command "cmp 6aa.O $srcdir/ta3-0FF" failed. 1>&2
- errors=`expr $errors + 1`;;
- esac
-fi
-test -s 6aa.E || rm -f 6aa.E
-$xx --date-format="-- Date/Time --" -h x -t -a --columns=3 $srcdir/0FnFnt > 6aa.C.O 2> 6aa.C.E
-code=$?
-if test $code != 0; then
- $echo "Test 6aa.C failed: $xx return code $code differs from expected value 0" 1>&2
- errors=`expr $errors + 1`
-else
- cmp 6aa.C.O $srcdir/ta3-0FF > /dev/null 2>&1
- case $? in
- 0) if test "$VERBOSE"; then $echo "passed 6aa.C"; fi;;
- 1) $echo "Test 6aa.C failed: files 6aa.C.O and $srcdir/ta3-0FF differ" 1>&2
- (diff -c 6aa.C.O $srcdir/ta3-0FF) 2> /dev/null
- errors=`expr $errors + 1`;;
- 2) $echo "Test 6aa.C may have failed." 1>&2
- $echo The command "cmp 6aa.C.O $srcdir/ta3-0FF" failed. 1>&2
- errors=`expr $errors + 1`;;
- esac
-fi
-test -s 6aa.C.E || rm -f 6aa.C.E
-$xx --date-format="-- Date/Time --" -h x -t -a -3 $srcdir/FFn > 6ab.O 2> 6ab.E
-code=$?
-if test $code != 0; then
- $echo "Test 6ab failed: $xx return code $code differs from expected value 0" 1>&2
- errors=`expr $errors + 1`
-else
- cmp 6ab.O $srcdir/ta3-FF > /dev/null 2>&1
- case $? in
- 0) if test "$VERBOSE"; then $echo "passed 6ab"; fi;;
- 1) $echo "Test 6ab failed: files 6ab.O and $srcdir/ta3-FF differ" 1>&2
- (diff -c 6ab.O $srcdir/ta3-FF) 2> /dev/null
- errors=`expr $errors + 1`;;
- 2) $echo "Test 6ab may have failed." 1>&2
- $echo The command "cmp 6ab.O $srcdir/ta3-FF" failed. 1>&2
- errors=`expr $errors + 1`;;
- esac
-fi
-test -s 6ab.E || rm -f 6ab.E
-$xx --date-format="-- Date/Time --" -h x -t -a --columns=3 $srcdir/FFn > 6ab.C.O 2> 6ab.C.E
-code=$?
-if test $code != 0; then
- $echo "Test 6ab.C failed: $xx return code $code differs from expected value 0" 1>&2
- errors=`expr $errors + 1`
-else
- cmp 6ab.C.O $srcdir/ta3-FF > /dev/null 2>&1
- case $? in
- 0) if test "$VERBOSE"; then $echo "passed 6ab.C"; fi;;
- 1) $echo "Test 6ab.C failed: files 6ab.C.O and $srcdir/ta3-FF differ" 1>&2
- (diff -c 6ab.C.O $srcdir/ta3-FF) 2> /dev/null
- errors=`expr $errors + 1`;;
- 2) $echo "Test 6ab.C may have failed." 1>&2
- $echo The command "cmp 6ab.C.O $srcdir/ta3-FF" failed. 1>&2
- errors=`expr $errors + 1`;;
- esac
-fi
-test -s 6ab.C.E || rm -f 6ab.C.E
-$xx --date-format="-- Date/Time --" -h x -t -a -3 -l 24 $srcdir/FnFn > 6ac.O 2> 6ac.E
-code=$?
-if test $code != 0; then
- $echo "Test 6ac failed: $xx return code $code differs from expected value 0" 1>&2
- errors=`expr $errors + 1`
-else
- cmp 6ac.O $srcdir/ta3-FF > /dev/null 2>&1
- case $? in
- 0) if test "$VERBOSE"; then $echo "passed 6ac"; fi;;
- 1) $echo "Test 6ac failed: files 6ac.O and $srcdir/ta3-FF differ" 1>&2
- (diff -c 6ac.O $srcdir/ta3-FF) 2> /dev/null
- errors=`expr $errors + 1`;;
- 2) $echo "Test 6ac may have failed." 1>&2
- $echo The command "cmp 6ac.O $srcdir/ta3-FF" failed. 1>&2
- errors=`expr $errors + 1`;;
- esac
-fi
-test -s 6ac.E || rm -f 6ac.E
-$xx --date-format="-- Date/Time --" -h x -t -a --columns=3 -l 24 $srcdir/FnFn > 6ac.C.O 2> 6ac.C.E
-code=$?
-if test $code != 0; then
- $echo "Test 6ac.C failed: $xx return code $code differs from expected value 0" 1>&2
- errors=`expr $errors + 1`
-else
- cmp 6ac.C.O $srcdir/ta3-FF > /dev/null 2>&1
- case $? in
- 0) if test "$VERBOSE"; then $echo "passed 6ac.C"; fi;;
- 1) $echo "Test 6ac.C failed: files 6ac.C.O and $srcdir/ta3-FF differ" 1>&2
- (diff -c 6ac.C.O $srcdir/ta3-FF) 2> /dev/null
- errors=`expr $errors + 1`;;
- 2) $echo "Test 6ac.C may have failed." 1>&2
- $echo The command "cmp 6ac.C.O $srcdir/ta3-FF" failed. 1>&2
- errors=`expr $errors + 1`;;
- esac
-fi
-test -s 6ac.C.E || rm -f 6ac.C.E
-$xx --date-format="-- Date/Time --" -h x -t -b -3 $srcdir/0FnFnt > 6ba.O 2> 6ba.E
-code=$?
-if test $code != 0; then
- $echo "Test 6ba failed: $xx return code $code differs from expected value 0" 1>&2
- errors=`expr $errors + 1`
-else
- cmp 6ba.O $srcdir/tb3-0FF > /dev/null 2>&1
- case $? in
- 0) if test "$VERBOSE"; then $echo "passed 6ba"; fi;;
- 1) $echo "Test 6ba failed: files 6ba.O and $srcdir/tb3-0FF differ" 1>&2
- (diff -c 6ba.O $srcdir/tb3-0FF) 2> /dev/null
- errors=`expr $errors + 1`;;
- 2) $echo "Test 6ba may have failed." 1>&2
- $echo The command "cmp 6ba.O $srcdir/tb3-0FF" failed. 1>&2
- errors=`expr $errors + 1`;;
- esac
-fi
-test -s 6ba.E || rm -f 6ba.E
-$xx --date-format="-- Date/Time --" -h x -t -b --columns=3 $srcdir/0FnFnt > 6ba.C.O 2> 6ba.C.E
-code=$?
-if test $code != 0; then
- $echo "Test 6ba.C failed: $xx return code $code differs from expected value 0" 1>&2
- errors=`expr $errors + 1`
-else
- cmp 6ba.C.O $srcdir/tb3-0FF > /dev/null 2>&1
- case $? in
- 0) if test "$VERBOSE"; then $echo "passed 6ba.C"; fi;;
- 1) $echo "Test 6ba.C failed: files 6ba.C.O and $srcdir/tb3-0FF differ" 1>&2
- (diff -c 6ba.C.O $srcdir/tb3-0FF) 2> /dev/null
- errors=`expr $errors + 1`;;
- 2) $echo "Test 6ba.C may have failed." 1>&2
- $echo The command "cmp 6ba.C.O $srcdir/tb3-0FF" failed. 1>&2
- errors=`expr $errors + 1`;;
- esac
-fi
-test -s 6ba.C.E || rm -f 6ba.C.E
-$xx --date-format="-- Date/Time --" -h x -t -b -3 $srcdir/FFn > 6bb.O 2> 6bb.E
-code=$?
-if test $code != 0; then
- $echo "Test 6bb failed: $xx return code $code differs from expected value 0" 1>&2
- errors=`expr $errors + 1`
-else
- cmp 6bb.O $srcdir/tb3-FF > /dev/null 2>&1
- case $? in
- 0) if test "$VERBOSE"; then $echo "passed 6bb"; fi;;
- 1) $echo "Test 6bb failed: files 6bb.O and $srcdir/tb3-FF differ" 1>&2
- (diff -c 6bb.O $srcdir/tb3-FF) 2> /dev/null
- errors=`expr $errors + 1`;;
- 2) $echo "Test 6bb may have failed." 1>&2
- $echo The command "cmp 6bb.O $srcdir/tb3-FF" failed. 1>&2
- errors=`expr $errors + 1`;;
- esac
-fi
-test -s 6bb.E || rm -f 6bb.E
-$xx --date-format="-- Date/Time --" -h x -t -b --columns=3 $srcdir/FFn > 6bb.C.O 2> 6bb.C.E
-code=$?
-if test $code != 0; then
- $echo "Test 6bb.C failed: $xx return code $code differs from expected value 0" 1>&2
- errors=`expr $errors + 1`
-else
- cmp 6bb.C.O $srcdir/tb3-FF > /dev/null 2>&1
- case $? in
- 0) if test "$VERBOSE"; then $echo "passed 6bb.C"; fi;;
- 1) $echo "Test 6bb.C failed: files 6bb.C.O and $srcdir/tb3-FF differ" 1>&2
- (diff -c 6bb.C.O $srcdir/tb3-FF) 2> /dev/null
- errors=`expr $errors + 1`;;
- 2) $echo "Test 6bb.C may have failed." 1>&2
- $echo The command "cmp 6bb.C.O $srcdir/tb3-FF" failed. 1>&2
- errors=`expr $errors + 1`;;
- esac
-fi
-test -s 6bb.C.E || rm -f 6bb.C.E
-$xx --date-format="-- Date/Time --" -h x -t -b -3 -l 24 $srcdir/FnFn > 6bc.O 2> 6bc.E
-code=$?
-if test $code != 0; then
- $echo "Test 6bc failed: $xx return code $code differs from expected value 0" 1>&2
- errors=`expr $errors + 1`
-else
- cmp 6bc.O $srcdir/tb3-FF > /dev/null 2>&1
- case $? in
- 0) if test "$VERBOSE"; then $echo "passed 6bc"; fi;;
- 1) $echo "Test 6bc failed: files 6bc.O and $srcdir/tb3-FF differ" 1>&2
- (diff -c 6bc.O $srcdir/tb3-FF) 2> /dev/null
- errors=`expr $errors + 1`;;
- 2) $echo "Test 6bc may have failed." 1>&2
- $echo The command "cmp 6bc.O $srcdir/tb3-FF" failed. 1>&2
- errors=`expr $errors + 1`;;
- esac
-fi
-test -s 6bc.E || rm -f 6bc.E
-$xx --date-format="-- Date/Time --" -h x -t -b --columns=3 -l 24 $srcdir/FnFn > 6bc.C.O 2> 6bc.C.E
-code=$?
-if test $code != 0; then
- $echo "Test 6bc.C failed: $xx return code $code differs from expected value 0" 1>&2
- errors=`expr $errors + 1`
-else
- cmp 6bc.C.O $srcdir/tb3-FF > /dev/null 2>&1
- case $? in
- 0) if test "$VERBOSE"; then $echo "passed 6bc.C"; fi;;
- 1) $echo "Test 6bc.C failed: files 6bc.C.O and $srcdir/tb3-FF differ" 1>&2
- (diff -c 6bc.C.O $srcdir/tb3-FF) 2> /dev/null
- errors=`expr $errors + 1`;;
- 2) $echo "Test 6bc.C may have failed." 1>&2
- $echo The command "cmp 6bc.C.O $srcdir/tb3-FF" failed. 1>&2
- errors=`expr $errors + 1`;;
- esac
-fi
-test -s 6bc.C.E || rm -f 6bc.C.E
-$xx --date-format="-- Date/Time --" -h x -T -l 24 $srcdir/tn > 7a.O 2> 7a.E
-code=$?
-if test $code != 0; then
- $echo "Test 7a failed: $xx return code $code differs from expected value 0" 1>&2
- errors=`expr $errors + 1`
-else
- cmp 7a.O $srcdir/tt-t > /dev/null 2>&1
- case $? in
- 0) if test "$VERBOSE"; then $echo "passed 7a"; fi;;
- 1) $echo "Test 7a failed: files 7a.O and $srcdir/tt-t differ" 1>&2
- (diff -c 7a.O $srcdir/tt-t) 2> /dev/null
- errors=`expr $errors + 1`;;
- 2) $echo "Test 7a may have failed." 1>&2
- $echo The command "cmp 7a.O $srcdir/tt-t" failed. 1>&2
- errors=`expr $errors + 1`;;
- esac
-fi
-test -s 7a.E || rm -f 7a.E
-$xx --date-format="-- Date/Time --" -h x -T -l 17 -f $srcdir/tn > 7b.O 2> 7b.E
-code=$?
-if test $code != 0; then
- $echo "Test 7b failed: $xx return code $code differs from expected value 0" 1>&2
- errors=`expr $errors + 1`
-else
- cmp 7b.O $srcdir/tt-t > /dev/null 2>&1
- case $? in
- 0) if test "$VERBOSE"; then $echo "passed 7b"; fi;;
- 1) $echo "Test 7b failed: files 7b.O and $srcdir/tt-t differ" 1>&2
- (diff -c 7b.O $srcdir/tt-t) 2> /dev/null
- errors=`expr $errors + 1`;;
- 2) $echo "Test 7b may have failed." 1>&2
- $echo The command "cmp 7b.O $srcdir/tt-t" failed. 1>&2
- errors=`expr $errors + 1`;;
- esac
-fi
-test -s 7b.E || rm -f 7b.E
-$xx --date-format="-- Date/Time --" -h x -T -l 17 -f $srcdir/tFFt-bl > 7c.O 2> 7c.E
-code=$?
-if test $code != 0; then
- $echo "Test 7c failed: $xx return code $code differs from expected value 0" 1>&2
- errors=`expr $errors + 1`
-else
- cmp 7c.O $srcdir/tt-bl > /dev/null 2>&1
- case $? in
- 0) if test "$VERBOSE"; then $echo "passed 7c"; fi;;
- 1) $echo "Test 7c failed: files 7c.O and $srcdir/tt-bl differ" 1>&2
- (diff -c 7c.O $srcdir/tt-bl) 2> /dev/null
- errors=`expr $errors + 1`;;
- 2) $echo "Test 7c may have failed." 1>&2
- $echo The command "cmp 7c.O $srcdir/tt-bl" failed. 1>&2
- errors=`expr $errors + 1`;;
- esac
-fi
-test -s 7c.E || rm -f 7c.E
-$xx --date-format="-- Date/Time --" -h x -T -l 24 $srcdir/0FnFnt > 7d.O 2> 7d.E
-code=$?
-if test $code != 0; then
- $echo "Test 7d failed: $xx return code $code differs from expected value 0" 1>&2
- errors=`expr $errors + 1`
-else
- cmp 7d.O $srcdir/tt-0FF > /dev/null 2>&1
- case $? in
- 0) if test "$VERBOSE"; then $echo "passed 7d"; fi;;
- 1) $echo "Test 7d failed: files 7d.O and $srcdir/tt-0FF differ" 1>&2
- (diff -c 7d.O $srcdir/tt-0FF) 2> /dev/null
- errors=`expr $errors + 1`;;
- 2) $echo "Test 7d may have failed." 1>&2
- $echo The command "cmp 7d.O $srcdir/tt-0FF" failed. 1>&2
- errors=`expr $errors + 1`;;
- esac
-fi
-test -s 7d.E || rm -f 7d.E
-$xx --date-format="-- Date/Time --" -h x -T -l 24 $srcdir/FFn > 7e.O 2> 7e.E
-code=$?
-if test $code != 0; then
- $echo "Test 7e failed: $xx return code $code differs from expected value 0" 1>&2
- errors=`expr $errors + 1`
-else
- cmp 7e.O $srcdir/tt-FF > /dev/null 2>&1
- case $? in
- 0) if test "$VERBOSE"; then $echo "passed 7e"; fi;;
- 1) $echo "Test 7e failed: files 7e.O and $srcdir/tt-FF differ" 1>&2
- (diff -c 7e.O $srcdir/tt-FF) 2> /dev/null
- errors=`expr $errors + 1`;;
- 2) $echo "Test 7e may have failed." 1>&2
- $echo The command "cmp 7e.O $srcdir/tt-FF" failed. 1>&2
- errors=`expr $errors + 1`;;
- esac
-fi
-test -s 7e.E || rm -f 7e.E
-$xx --date-format="-- Date/Time --" -h x -T -l 24 $srcdir/FnFn > 7f.O 2> 7f.E
-code=$?
-if test $code != 0; then
- $echo "Test 7f failed: $xx return code $code differs from expected value 0" 1>&2
- errors=`expr $errors + 1`
-else
- cmp 7f.O $srcdir/tt-FF > /dev/null 2>&1
- case $? in
- 0) if test "$VERBOSE"; then $echo "passed 7f"; fi;;
- 1) $echo "Test 7f failed: files 7f.O and $srcdir/tt-FF differ" 1>&2
- (diff -c 7f.O $srcdir/tt-FF) 2> /dev/null
- errors=`expr $errors + 1`;;
- 2) $echo "Test 7f may have failed." 1>&2
- $echo The command "cmp 7f.O $srcdir/tt-FF" failed. 1>&2
- errors=`expr $errors + 1`;;
- esac
-fi
-test -s 7f.E || rm -f 7f.E
-$xx --date-format="-- Date/Time --" -h x -T -l 17 -f $srcdir/FFn > 7g.O 2> 7g.E
-code=$?
-if test $code != 0; then
- $echo "Test 7g failed: $xx return code $code differs from expected value 0" 1>&2
- errors=`expr $errors + 1`
-else
- cmp 7g.O $srcdir/tt-FF > /dev/null 2>&1
- case $? in
- 0) if test "$VERBOSE"; then $echo "passed 7g"; fi;;
- 1) $echo "Test 7g failed: files 7g.O and $srcdir/tt-FF differ" 1>&2
- (diff -c 7g.O $srcdir/tt-FF) 2> /dev/null
- errors=`expr $errors + 1`;;
- 2) $echo "Test 7g may have failed." 1>&2
- $echo The command "cmp 7g.O $srcdir/tt-FF" failed. 1>&2
- errors=`expr $errors + 1`;;
- esac
-fi
-test -s 7g.E || rm -f 7g.E
-$xx --date-format="-- Date/Time --" -h x -T -a -3 $srcdir/0FnFnt > 7aa.O 2> 7aa.E
-code=$?
-if test $code != 0; then
- $echo "Test 7aa failed: $xx return code $code differs from expected value 0" 1>&2
- errors=`expr $errors + 1`
-else
- cmp 7aa.O $srcdir/tta3-0FF > /dev/null 2>&1
- case $? in
- 0) if test "$VERBOSE"; then $echo "passed 7aa"; fi;;
- 1) $echo "Test 7aa failed: files 7aa.O and $srcdir/tta3-0FF differ" 1>&2
- (diff -c 7aa.O $srcdir/tta3-0FF) 2> /dev/null
- errors=`expr $errors + 1`;;
- 2) $echo "Test 7aa may have failed." 1>&2
- $echo The command "cmp 7aa.O $srcdir/tta3-0FF" failed. 1>&2
- errors=`expr $errors + 1`;;
- esac
-fi
-test -s 7aa.E || rm -f 7aa.E
-$xx --date-format="-- Date/Time --" -h x -T -a --columns=3 $srcdir/0FnFnt > 7aa.C.O 2> 7aa.C.E
-code=$?
-if test $code != 0; then
- $echo "Test 7aa.C failed: $xx return code $code differs from expected value 0" 1>&2
- errors=`expr $errors + 1`
-else
- cmp 7aa.C.O $srcdir/tta3-0FF > /dev/null 2>&1
- case $? in
- 0) if test "$VERBOSE"; then $echo "passed 7aa.C"; fi;;
- 1) $echo "Test 7aa.C failed: files 7aa.C.O and $srcdir/tta3-0FF differ" 1>&2
- (diff -c 7aa.C.O $srcdir/tta3-0FF) 2> /dev/null
- errors=`expr $errors + 1`;;
- 2) $echo "Test 7aa.C may have failed." 1>&2
- $echo The command "cmp 7aa.C.O $srcdir/tta3-0FF" failed. 1>&2
- errors=`expr $errors + 1`;;
- esac
-fi
-test -s 7aa.C.E || rm -f 7aa.C.E
-$xx --date-format="-- Date/Time --" -h x -T -a -3 $srcdir/FFn > 7ab.O 2> 7ab.E
-code=$?
-if test $code != 0; then
- $echo "Test 7ab failed: $xx return code $code differs from expected value 0" 1>&2
- errors=`expr $errors + 1`
-else
- cmp 7ab.O $srcdir/tta3-FF > /dev/null 2>&1
- case $? in
- 0) if test "$VERBOSE"; then $echo "passed 7ab"; fi;;
- 1) $echo "Test 7ab failed: files 7ab.O and $srcdir/tta3-FF differ" 1>&2
- (diff -c 7ab.O $srcdir/tta3-FF) 2> /dev/null
- errors=`expr $errors + 1`;;
- 2) $echo "Test 7ab may have failed." 1>&2
- $echo The command "cmp 7ab.O $srcdir/tta3-FF" failed. 1>&2
- errors=`expr $errors + 1`;;
- esac
-fi
-test -s 7ab.E || rm -f 7ab.E
-$xx --date-format="-- Date/Time --" -h x -T -a --columns=3 $srcdir/FFn > 7ab.C.O 2> 7ab.C.E
-code=$?
-if test $code != 0; then
- $echo "Test 7ab.C failed: $xx return code $code differs from expected value 0" 1>&2
- errors=`expr $errors + 1`
-else
- cmp 7ab.C.O $srcdir/tta3-FF > /dev/null 2>&1
- case $? in
- 0) if test "$VERBOSE"; then $echo "passed 7ab.C"; fi;;
- 1) $echo "Test 7ab.C failed: files 7ab.C.O and $srcdir/tta3-FF differ" 1>&2
- (diff -c 7ab.C.O $srcdir/tta3-FF) 2> /dev/null
- errors=`expr $errors + 1`;;
- 2) $echo "Test 7ab.C may have failed." 1>&2
- $echo The command "cmp 7ab.C.O $srcdir/tta3-FF" failed. 1>&2
- errors=`expr $errors + 1`;;
- esac
-fi
-test -s 7ab.C.E || rm -f 7ab.C.E
-$xx --date-format="-- Date/Time --" -h x -T -a -3 -l 24 $srcdir/FnFn > 7ac.O 2> 7ac.E
-code=$?
-if test $code != 0; then
- $echo "Test 7ac failed: $xx return code $code differs from expected value 0" 1>&2
- errors=`expr $errors + 1`
-else
- cmp 7ac.O $srcdir/tta3-FF > /dev/null 2>&1
- case $? in
- 0) if test "$VERBOSE"; then $echo "passed 7ac"; fi;;
- 1) $echo "Test 7ac failed: files 7ac.O and $srcdir/tta3-FF differ" 1>&2
- (diff -c 7ac.O $srcdir/tta3-FF) 2> /dev/null
- errors=`expr $errors + 1`;;
- 2) $echo "Test 7ac may have failed." 1>&2
- $echo The command "cmp 7ac.O $srcdir/tta3-FF" failed. 1>&2
- errors=`expr $errors + 1`;;
- esac
-fi
-test -s 7ac.E || rm -f 7ac.E
-$xx --date-format="-- Date/Time --" -h x -T -a --columns=3 -l 24 $srcdir/FnFn > 7ac.C.O 2> 7ac.C.E
-code=$?
-if test $code != 0; then
- $echo "Test 7ac.C failed: $xx return code $code differs from expected value 0" 1>&2
- errors=`expr $errors + 1`
-else
- cmp 7ac.C.O $srcdir/tta3-FF > /dev/null 2>&1
- case $? in
- 0) if test "$VERBOSE"; then $echo "passed 7ac.C"; fi;;
- 1) $echo "Test 7ac.C failed: files 7ac.C.O and $srcdir/tta3-FF differ" 1>&2
- (diff -c 7ac.C.O $srcdir/tta3-FF) 2> /dev/null
- errors=`expr $errors + 1`;;
- 2) $echo "Test 7ac.C may have failed." 1>&2
- $echo The command "cmp 7ac.C.O $srcdir/tta3-FF" failed. 1>&2
- errors=`expr $errors + 1`;;
- esac
-fi
-test -s 7ac.C.E || rm -f 7ac.C.E
-$xx --date-format="-- Date/Time --" -h x -T -b -3 $srcdir/0FnFnt > 7ba.O 2> 7ba.E
-code=$?
-if test $code != 0; then
- $echo "Test 7ba failed: $xx return code $code differs from expected value 0" 1>&2
- errors=`expr $errors + 1`
-else
- cmp 7ba.O $srcdir/ttb3-0FF > /dev/null 2>&1
- case $? in
- 0) if test "$VERBOSE"; then $echo "passed 7ba"; fi;;
- 1) $echo "Test 7ba failed: files 7ba.O and $srcdir/ttb3-0FF differ" 1>&2
- (diff -c 7ba.O $srcdir/ttb3-0FF) 2> /dev/null
- errors=`expr $errors + 1`;;
- 2) $echo "Test 7ba may have failed." 1>&2
- $echo The command "cmp 7ba.O $srcdir/ttb3-0FF" failed. 1>&2
- errors=`expr $errors + 1`;;
- esac
-fi
-test -s 7ba.E || rm -f 7ba.E
-$xx --date-format="-- Date/Time --" -h x -T -b --columns=3 $srcdir/0FnFnt > 7ba.C.O 2> 7ba.C.E
-code=$?
-if test $code != 0; then
- $echo "Test 7ba.C failed: $xx return code $code differs from expected value 0" 1>&2
- errors=`expr $errors + 1`
-else
- cmp 7ba.C.O $srcdir/ttb3-0FF > /dev/null 2>&1
- case $? in
- 0) if test "$VERBOSE"; then $echo "passed 7ba.C"; fi;;
- 1) $echo "Test 7ba.C failed: files 7ba.C.O and $srcdir/ttb3-0FF differ" 1>&2
- (diff -c 7ba.C.O $srcdir/ttb3-0FF) 2> /dev/null
- errors=`expr $errors + 1`;;
- 2) $echo "Test 7ba.C may have failed." 1>&2
- $echo The command "cmp 7ba.C.O $srcdir/ttb3-0FF" failed. 1>&2
- errors=`expr $errors + 1`;;
- esac
-fi
-test -s 7ba.C.E || rm -f 7ba.C.E
-$xx --date-format="-- Date/Time --" -h x -T -b -3 $srcdir/FFn > 7bb.O 2> 7bb.E
-code=$?
-if test $code != 0; then
- $echo "Test 7bb failed: $xx return code $code differs from expected value 0" 1>&2
- errors=`expr $errors + 1`
-else
- cmp 7bb.O $srcdir/ttb3-FF > /dev/null 2>&1
- case $? in
- 0) if test "$VERBOSE"; then $echo "passed 7bb"; fi;;
- 1) $echo "Test 7bb failed: files 7bb.O and $srcdir/ttb3-FF differ" 1>&2
- (diff -c 7bb.O $srcdir/ttb3-FF) 2> /dev/null
- errors=`expr $errors + 1`;;
- 2) $echo "Test 7bb may have failed." 1>&2
- $echo The command "cmp 7bb.O $srcdir/ttb3-FF" failed. 1>&2
- errors=`expr $errors + 1`;;
- esac
-fi
-test -s 7bb.E || rm -f 7bb.E
-$xx --date-format="-- Date/Time --" -h x -T -b --columns=3 $srcdir/FFn > 7bb.C.O 2> 7bb.C.E
-code=$?
-if test $code != 0; then
- $echo "Test 7bb.C failed: $xx return code $code differs from expected value 0" 1>&2
- errors=`expr $errors + 1`
-else
- cmp 7bb.C.O $srcdir/ttb3-FF > /dev/null 2>&1
- case $? in
- 0) if test "$VERBOSE"; then $echo "passed 7bb.C"; fi;;
- 1) $echo "Test 7bb.C failed: files 7bb.C.O and $srcdir/ttb3-FF differ" 1>&2
- (diff -c 7bb.C.O $srcdir/ttb3-FF) 2> /dev/null
- errors=`expr $errors + 1`;;
- 2) $echo "Test 7bb.C may have failed." 1>&2
- $echo The command "cmp 7bb.C.O $srcdir/ttb3-FF" failed. 1>&2
- errors=`expr $errors + 1`;;
- esac
-fi
-test -s 7bb.C.E || rm -f 7bb.C.E
-$xx --date-format="-- Date/Time --" -h x -T -b -3 -l 24 $srcdir/FnFn > 7bc.O 2> 7bc.E
-code=$?
-if test $code != 0; then
- $echo "Test 7bc failed: $xx return code $code differs from expected value 0" 1>&2
- errors=`expr $errors + 1`
-else
- cmp 7bc.O $srcdir/ttb3-FF > /dev/null 2>&1
- case $? in
- 0) if test "$VERBOSE"; then $echo "passed 7bc"; fi;;
- 1) $echo "Test 7bc failed: files 7bc.O and $srcdir/ttb3-FF differ" 1>&2
- (diff -c 7bc.O $srcdir/ttb3-FF) 2> /dev/null
- errors=`expr $errors + 1`;;
- 2) $echo "Test 7bc may have failed." 1>&2
- $echo The command "cmp 7bc.O $srcdir/ttb3-FF" failed. 1>&2
- errors=`expr $errors + 1`;;
- esac
-fi
-test -s 7bc.E || rm -f 7bc.E
-$xx --date-format="-- Date/Time --" -h x -T -b --columns=3 -l 24 $srcdir/FnFn > 7bc.C.O 2> 7bc.C.E
-code=$?
-if test $code != 0; then
- $echo "Test 7bc.C failed: $xx return code $code differs from expected value 0" 1>&2
- errors=`expr $errors + 1`
-else
- cmp 7bc.C.O $srcdir/ttb3-FF > /dev/null 2>&1
- case $? in
- 0) if test "$VERBOSE"; then $echo "passed 7bc.C"; fi;;
- 1) $echo "Test 7bc.C failed: files 7bc.C.O and $srcdir/ttb3-FF differ" 1>&2
- (diff -c 7bc.C.O $srcdir/ttb3-FF) 2> /dev/null
- errors=`expr $errors + 1`;;
- 2) $echo "Test 7bc.C may have failed." 1>&2
- $echo The command "cmp 7bc.C.O $srcdir/ttb3-FF" failed. 1>&2
- errors=`expr $errors + 1`;;
- esac
-fi
-test -s 7bc.C.E || rm -f 7bc.C.E
-$xx --date-format="-- Date/Time --" -h x -n.3 -l 17 -f $srcdir/tFFt-bl > 9a.O 2> 9a.E
-code=$?
-if test $code != 0; then
- $echo "Test 9a failed: $xx return code $code differs from expected value 0" 1>&2
- errors=`expr $errors + 1`
-else
- cmp 9a.O $srcdir/nl17f-bl > /dev/null 2>&1
- case $? in
- 0) if test "$VERBOSE"; then $echo "passed 9a"; fi;;
- 1) $echo "Test 9a failed: files 9a.O and $srcdir/nl17f-bl differ" 1>&2
- (diff -c 9a.O $srcdir/nl17f-bl) 2> /dev/null
- errors=`expr $errors + 1`;;
- 2) $echo "Test 9a may have failed." 1>&2
- $echo The command "cmp 9a.O $srcdir/nl17f-bl" failed. 1>&2
- errors=`expr $errors + 1`;;
- esac
-fi
-test -s 9a.E || rm -f 9a.E
-$xx --date-format="-- Date/Time --" -h x -n.3 -N 15 -l 17 -f $srcdir/tFFt-bl > 9b.O 2> 9b.E
-code=$?
-if test $code != 0; then
- $echo "Test 9b failed: $xx return code $code differs from expected value 0" 1>&2
- errors=`expr $errors + 1`
-else
- cmp 9b.O $srcdir/nN15l17f-bl > /dev/null 2>&1
- case $? in
- 0) if test "$VERBOSE"; then $echo "passed 9b"; fi;;
- 1) $echo "Test 9b failed: files 9b.O and $srcdir/nN15l17f-bl differ" 1>&2
- (diff -c 9b.O $srcdir/nN15l17f-bl) 2> /dev/null
- errors=`expr $errors + 1`;;
- 2) $echo "Test 9b may have failed." 1>&2
- $echo The command "cmp 9b.O $srcdir/nN15l17f-bl" failed. 1>&2
- errors=`expr $errors + 1`;;
- esac
-fi
-test -s 9b.E || rm -f 9b.E
-$xx --date-format="-- Date/Time --" -h x -n.3 +2 -l 17 -f $srcdir/tFFt-bl > 9Pa.O 2> 9Pa.E
-code=$?
-if test $code != 0; then
- $echo "Test 9Pa failed: $xx return code $code differs from expected value 0" 1>&2
- errors=`expr $errors + 1`
-else
- cmp 9Pa.O $srcdir/n+2l17f-bl > /dev/null 2>&1
- case $? in
- 0) if test "$VERBOSE"; then $echo "passed 9Pa"; fi;;
- 1) $echo "Test 9Pa failed: files 9Pa.O and $srcdir/n+2l17f-bl differ" 1>&2
- (diff -c 9Pa.O $srcdir/n+2l17f-bl) 2> /dev/null
- errors=`expr $errors + 1`;;
- 2) $echo "Test 9Pa may have failed." 1>&2
- $echo The command "cmp 9Pa.O $srcdir/n+2l17f-bl" failed. 1>&2
- errors=`expr $errors + 1`;;
- esac
-fi
-test -s 9Pa.E || rm -f 9Pa.E
-$xx --date-format="-- Date/Time --" -h x -n.3 +3 -l 17 -f $srcdir/tFFt-bl > 9Pb.O 2> 9Pb.E
-code=$?
-if test $code != 0; then
- $echo "Test 9Pb failed: $xx return code $code differs from expected value 0" 1>&2
- errors=`expr $errors + 1`
-else
- cmp 9Pb.O $srcdir/n+3l17f-bl > /dev/null 2>&1
- case $? in
- 0) if test "$VERBOSE"; then $echo "passed 9Pb"; fi;;
- 1) $echo "Test 9Pb failed: files 9Pb.O and $srcdir/n+3l17f-bl differ" 1>&2
- (diff -c 9Pb.O $srcdir/n+3l17f-bl) 2> /dev/null
- errors=`expr $errors + 1`;;
- 2) $echo "Test 9Pb may have failed." 1>&2
- $echo The command "cmp 9Pb.O $srcdir/n+3l17f-bl" failed. 1>&2
- errors=`expr $errors + 1`;;
- esac
-fi
-test -s 9Pb.E || rm -f 9Pb.E
-$xx --date-format="-- Date/Time --" -h x -n.3 -N 1 +3 -l 17 -f $srcdir/tFFt-bl > 9Pc.O 2> 9Pc.E
-code=$?
-if test $code != 0; then
- $echo "Test 9Pc failed: $xx return code $code differs from expected value 0" 1>&2
- errors=`expr $errors + 1`
-else
- cmp 9Pc.O $srcdir/nN1+3l17f-bl > /dev/null 2>&1
- case $? in
- 0) if test "$VERBOSE"; then $echo "passed 9Pc"; fi;;
- 1) $echo "Test 9Pc failed: files 9Pc.O and $srcdir/nN1+3l17f-bl differ" 1>&2
- (diff -c 9Pc.O $srcdir/nN1+3l17f-bl) 2> /dev/null
- errors=`expr $errors + 1`;;
- 2) $echo "Test 9Pc may have failed." 1>&2
- $echo The command "cmp 9Pc.O $srcdir/nN1+3l17f-bl" failed. 1>&2
- errors=`expr $errors + 1`;;
- esac
-fi
-test -s 9Pc.E || rm -f 9Pc.E
-$xx --date-format="-- Date/Time --" -h x -n.3 +2 -l 17 -f $srcdir/0FFt > 9Pe.O 2> 9Pe.E
-code=$?
-if test $code != 0; then
- $echo "Test 9Pe failed: $xx return code $code differs from expected value 0" 1>&2
- errors=`expr $errors + 1`
-else
- cmp 9Pe.O $srcdir/n+2l17f-0FF > /dev/null 2>&1
- case $? in
- 0) if test "$VERBOSE"; then $echo "passed 9Pe"; fi;;
- 1) $echo "Test 9Pe failed: files 9Pe.O and $srcdir/n+2l17f-0FF differ" 1>&2
- (diff -c 9Pe.O $srcdir/n+2l17f-0FF) 2> /dev/null
- errors=`expr $errors + 1`;;
- 2) $echo "Test 9Pe may have failed." 1>&2
- $echo The command "cmp 9Pe.O $srcdir/n+2l17f-0FF" failed. 1>&2
- errors=`expr $errors + 1`;;
- esac
-fi
-test -s 9Pe.E || rm -f 9Pe.E
-$xx --date-format="-- Date/Time --" -h x -n.3 +2 -l 17 -f $srcdir/0FFnt > 9Pf.O 2> 9Pf.E
-code=$?
-if test $code != 0; then
- $echo "Test 9Pf failed: $xx return code $code differs from expected value 0" 1>&2
- errors=`expr $errors + 1`
-else
- cmp 9Pf.O $srcdir/n+2l17f-0FF > /dev/null 2>&1
- case $? in
- 0) if test "$VERBOSE"; then $echo "passed 9Pf"; fi;;
- 1) $echo "Test 9Pf failed: files 9Pf.O and $srcdir/n+2l17f-0FF differ" 1>&2
- (diff -c 9Pf.O $srcdir/n+2l17f-0FF) 2> /dev/null
- errors=`expr $errors + 1`;;
- 2) $echo "Test 9Pf may have failed." 1>&2
- $echo The command "cmp 9Pf.O $srcdir/n+2l17f-0FF" failed. 1>&2
- errors=`expr $errors + 1`;;
- esac
-fi
-test -s 9Pf.E || rm -f 9Pf.E
-$xx --date-format="-- Date/Time --" -h x -n.3 +2 -l 17 -f $srcdir/0FnFt > 9Pg.O 2> 9Pg.E
-code=$?
-if test $code != 0; then
- $echo "Test 9Pg failed: $xx return code $code differs from expected value 0" 1>&2
- errors=`expr $errors + 1`
-else
- cmp 9Pg.O $srcdir/n+2l17f-0FF > /dev/null 2>&1
- case $? in
- 0) if test "$VERBOSE"; then $echo "passed 9Pg"; fi;;
- 1) $echo "Test 9Pg failed: files 9Pg.O and $srcdir/n+2l17f-0FF differ" 1>&2
- (diff -c 9Pg.O $srcdir/n+2l17f-0FF) 2> /dev/null
- errors=`expr $errors + 1`;;
- 2) $echo "Test 9Pg may have failed." 1>&2
- $echo The command "cmp 9Pg.O $srcdir/n+2l17f-0FF" failed. 1>&2
- errors=`expr $errors + 1`;;
- esac
-fi
-test -s 9Pg.E || rm -f 9Pg.E
-$xx --date-format="-- Date/Time --" -h x -n.3 +2 -l 17 -f $srcdir/0FnFnt > 9Ph.O 2> 9Ph.E
-code=$?
-if test $code != 0; then
- $echo "Test 9Ph failed: $xx return code $code differs from expected value 0" 1>&2
- errors=`expr $errors + 1`
-else
- cmp 9Ph.O $srcdir/n+2l17f-0FF > /dev/null 2>&1
- case $? in
- 0) if test "$VERBOSE"; then $echo "passed 9Ph"; fi;;
- 1) $echo "Test 9Ph failed: files 9Ph.O and $srcdir/n+2l17f-0FF differ" 1>&2
- (diff -c 9Ph.O $srcdir/n+2l17f-0FF) 2> /dev/null
- errors=`expr $errors + 1`;;
- 2) $echo "Test 9Ph may have failed." 1>&2
- $echo The command "cmp 9Ph.O $srcdir/n+2l17f-0FF" failed. 1>&2
- errors=`expr $errors + 1`;;
- esac
-fi
-test -s 9Ph.E || rm -f 9Ph.E
-$xx --date-format="-- Date/Time --" -h x -n.3 +2:5 -l 17 -f $srcdir/0FFt > 9Pi.O 2> 9Pi.E
-code=$?
-if test $code != 0; then
- $echo "Test 9Pi failed: $xx return code $code differs from expected value 0" 1>&2
- errors=`expr $errors + 1`
-else
- cmp 9Pi.O $srcdir/n+2-5l17f-0FF > /dev/null 2>&1
- case $? in
- 0) if test "$VERBOSE"; then $echo "passed 9Pi"; fi;;
- 1) $echo "Test 9Pi failed: files 9Pi.O and $srcdir/n+2-5l17f-0FF differ" 1>&2
- (diff -c 9Pi.O $srcdir/n+2-5l17f-0FF) 2> /dev/null
- errors=`expr $errors + 1`;;
- 2) $echo "Test 9Pi may have failed." 1>&2
- $echo The command "cmp 9Pi.O $srcdir/n+2-5l17f-0FF" failed. 1>&2
- errors=`expr $errors + 1`;;
- esac
-fi
-test -s 9Pi.E || rm -f 9Pi.E
-$xx --date-format="-- Date/Time --" -h x -n.3 +3 -l 17 -f $srcdir/0FFt > 9Pj.O 2> 9Pj.E
-code=$?
-if test $code != 0; then
- $echo "Test 9Pj failed: $xx return code $code differs from expected value 0" 1>&2
- errors=`expr $errors + 1`
-else
- cmp 9Pj.O $srcdir/n+3l17f-0FF > /dev/null 2>&1
- case $? in
- 0) if test "$VERBOSE"; then $echo "passed 9Pj"; fi;;
- 1) $echo "Test 9Pj failed: files 9Pj.O and $srcdir/n+3l17f-0FF differ" 1>&2
- (diff -c 9Pj.O $srcdir/n+3l17f-0FF) 2> /dev/null
- errors=`expr $errors + 1`;;
- 2) $echo "Test 9Pj may have failed." 1>&2
- $echo The command "cmp 9Pj.O $srcdir/n+3l17f-0FF" failed. 1>&2
- errors=`expr $errors + 1`;;
- esac
-fi
-test -s 9Pj.E || rm -f 9Pj.E
-$xx --date-format="-- Date/Time --" -h x -n.3 +3 -l 17 -f $srcdir/0FFnt > 9Pk.O 2> 9Pk.E
-code=$?
-if test $code != 0; then
- $echo "Test 9Pk failed: $xx return code $code differs from expected value 0" 1>&2
- errors=`expr $errors + 1`
-else
- cmp 9Pk.O $srcdir/n+3l17f-0FF > /dev/null 2>&1
- case $? in
- 0) if test "$VERBOSE"; then $echo "passed 9Pk"; fi;;
- 1) $echo "Test 9Pk failed: files 9Pk.O and $srcdir/n+3l17f-0FF differ" 1>&2
- (diff -c 9Pk.O $srcdir/n+3l17f-0FF) 2> /dev/null
- errors=`expr $errors + 1`;;
- 2) $echo "Test 9Pk may have failed." 1>&2
- $echo The command "cmp 9Pk.O $srcdir/n+3l17f-0FF" failed. 1>&2
- errors=`expr $errors + 1`;;
- esac
-fi
-test -s 9Pk.E || rm -f 9Pk.E
-$xx --date-format="-- Date/Time --" -h x -n.3 +3 -l 17 -f $srcdir/0FnFt > 9Pl.O 2> 9Pl.E
-code=$?
-if test $code != 0; then
- $echo "Test 9Pl failed: $xx return code $code differs from expected value 0" 1>&2
- errors=`expr $errors + 1`
-else
- cmp 9Pl.O $srcdir/n+3l17f-0FF > /dev/null 2>&1
- case $? in
- 0) if test "$VERBOSE"; then $echo "passed 9Pl"; fi;;
- 1) $echo "Test 9Pl failed: files 9Pl.O and $srcdir/n+3l17f-0FF differ" 1>&2
- (diff -c 9Pl.O $srcdir/n+3l17f-0FF) 2> /dev/null
- errors=`expr $errors + 1`;;
- 2) $echo "Test 9Pl may have failed." 1>&2
- $echo The command "cmp 9Pl.O $srcdir/n+3l17f-0FF" failed. 1>&2
- errors=`expr $errors + 1`;;
- esac
-fi
-test -s 9Pl.E || rm -f 9Pl.E
-$xx --date-format="-- Date/Time --" -h x -n.3 +3 -l 17 -f $srcdir/0FnFnt > 9Pm.O 2> 9Pm.E
-code=$?
-if test $code != 0; then
- $echo "Test 9Pm failed: $xx return code $code differs from expected value 0" 1>&2
- errors=`expr $errors + 1`
-else
- cmp 9Pm.O $srcdir/n+3l17f-0FF > /dev/null 2>&1
- case $? in
- 0) if test "$VERBOSE"; then $echo "passed 9Pm"; fi;;
- 1) $echo "Test 9Pm failed: files 9Pm.O and $srcdir/n+3l17f-0FF differ" 1>&2
- (diff -c 9Pm.O $srcdir/n+3l17f-0FF) 2> /dev/null
- errors=`expr $errors + 1`;;
- 2) $echo "Test 9Pm may have failed." 1>&2
- $echo The command "cmp 9Pm.O $srcdir/n+3l17f-0FF" failed. 1>&2
- errors=`expr $errors + 1`;;
- esac
-fi
-test -s 9Pm.E || rm -f 9Pm.E
-$xx --date-format="-- Date/Time --" -h x -n.3 +7 -l 24 $srcdir/FFn > 9Pn.O 2> 9Pn.E
-code=$?
-if test $code != 0; then
- $echo "Test 9Pn failed: $xx return code $code differs from expected value 0" 1>&2
- errors=`expr $errors + 1`
-else
- cmp 9Pn.O $srcdir/n+7l24-FF > /dev/null 2>&1
- case $? in
- 0) if test "$VERBOSE"; then $echo "passed 9Pn"; fi;;
- 1) $echo "Test 9Pn failed: files 9Pn.O and $srcdir/n+7l24-FF differ" 1>&2
- (diff -c 9Pn.O $srcdir/n+7l24-FF) 2> /dev/null
- errors=`expr $errors + 1`;;
- 2) $echo "Test 9Pn may have failed." 1>&2
- $echo The command "cmp 9Pn.O $srcdir/n+7l24-FF" failed. 1>&2
- errors=`expr $errors + 1`;;
- esac
-fi
-test -s 9Pn.E || rm -f 9Pn.E
-$xx --date-format="-- Date/Time --" -h x -n.3 +7 -l 24 $srcdir/FFtn > 9Po.O 2> 9Po.E
-code=$?
-if test $code != 0; then
- $echo "Test 9Po failed: $xx return code $code differs from expected value 0" 1>&2
- errors=`expr $errors + 1`
-else
- cmp 9Po.O $srcdir/n+7l24-FF > /dev/null 2>&1
- case $? in
- 0) if test "$VERBOSE"; then $echo "passed 9Po"; fi;;
- 1) $echo "Test 9Po failed: files 9Po.O and $srcdir/n+7l24-FF differ" 1>&2
- (diff -c 9Po.O $srcdir/n+7l24-FF) 2> /dev/null
- errors=`expr $errors + 1`;;
- 2) $echo "Test 9Po may have failed." 1>&2
- $echo The command "cmp 9Po.O $srcdir/n+7l24-FF" failed. 1>&2
- errors=`expr $errors + 1`;;
- esac
-fi
-test -s 9Po.E || rm -f 9Po.E
-$xx --date-format="-- Date/Time --" -h x -n.3 +7 -l 24 $srcdir/FnFn > 9Pp.O 2> 9Pp.E
-code=$?
-if test $code != 0; then
- $echo "Test 9Pp failed: $xx return code $code differs from expected value 0" 1>&2
- errors=`expr $errors + 1`
-else
- cmp 9Pp.O $srcdir/n+7l24-FF > /dev/null 2>&1
- case $? in
- 0) if test "$VERBOSE"; then $echo "passed 9Pp"; fi;;
- 1) $echo "Test 9Pp failed: files 9Pp.O and $srcdir/n+7l24-FF differ" 1>&2
- (diff -c 9Pp.O $srcdir/n+7l24-FF) 2> /dev/null
- errors=`expr $errors + 1`;;
- 2) $echo "Test 9Pp may have failed." 1>&2
- $echo The command "cmp 9Pp.O $srcdir/n+7l24-FF" failed. 1>&2
- errors=`expr $errors + 1`;;
- esac
-fi
-test -s 9Pp.E || rm -f 9Pp.E
-$xx --date-format="-- Date/Time --" -h x -n.3 +3:7 -l 24 $srcdir/FnFn > 9Pq.O 2> 9Pq.E
-code=$?
-if test $code != 0; then
- $echo "Test 9Pq failed: $xx return code $code differs from expected value 0" 1>&2
- errors=`expr $errors + 1`
-else
- cmp 9Pq.O $srcdir/n+3-7l24-FF > /dev/null 2>&1
- case $? in
- 0) if test "$VERBOSE"; then $echo "passed 9Pq"; fi;;
- 1) $echo "Test 9Pq failed: files 9Pq.O and $srcdir/n+3-7l24-FF differ" 1>&2
- (diff -c 9Pq.O $srcdir/n+3-7l24-FF) 2> /dev/null
- errors=`expr $errors + 1`;;
- 2) $echo "Test 9Pq may have failed." 1>&2
- $echo The command "cmp 9Pq.O $srcdir/n+3-7l24-FF" failed. 1>&2
- errors=`expr $errors + 1`;;
- esac
-fi
-test -s 9Pq.E || rm -f 9Pq.E
-$xx --date-format="-- Date/Time --" -h x -n.3 +8 -l 20 $srcdir/tFFn > 9Pr.O 2> 9Pr.E
-code=$?
-if test $code != 0; then
- $echo "Test 9Pr failed: $xx return code $code differs from expected value 0" 1>&2
- errors=`expr $errors + 1`
-else
- cmp 9Pr.O $srcdir/n+8l20-FF > /dev/null 2>&1
- case $? in
- 0) if test "$VERBOSE"; then $echo "passed 9Pr"; fi;;
- 1) $echo "Test 9Pr failed: files 9Pr.O and $srcdir/n+8l20-FF differ" 1>&2
- (diff -c 9Pr.O $srcdir/n+8l20-FF) 2> /dev/null
- errors=`expr $errors + 1`;;
- 2) $echo "Test 9Pr may have failed." 1>&2
- $echo The command "cmp 9Pr.O $srcdir/n+8l20-FF" failed. 1>&2
- errors=`expr $errors + 1`;;
- esac
-fi
-test -s 9Pr.E || rm -f 9Pr.E
-$xx --date-format="-- Date/Time --" -h x -n.3 +8 -l 20 $srcdir/tFnFt > 9Ps.O 2> 9Ps.E
-code=$?
-if test $code != 0; then
- $echo "Test 9Ps failed: $xx return code $code differs from expected value 0" 1>&2
- errors=`expr $errors + 1`
-else
- cmp 9Ps.O $srcdir/n+8l20-FF > /dev/null 2>&1
- case $? in
- 0) if test "$VERBOSE"; then $echo "passed 9Ps"; fi;;
- 1) $echo "Test 9Ps failed: files 9Ps.O and $srcdir/n+8l20-FF differ" 1>&2
- (diff -c 9Ps.O $srcdir/n+8l20-FF) 2> /dev/null
- errors=`expr $errors + 1`;;
- 2) $echo "Test 9Ps may have failed." 1>&2
- $echo The command "cmp 9Ps.O $srcdir/n+8l20-FF" failed. 1>&2
- errors=`expr $errors + 1`;;
- esac
-fi
-test -s 9Ps.E || rm -f 9Ps.E
-$xx --date-format="-- Date/Time --" -h x -n.3 +8 -l 20 $srcdir/tFFt > 9Pt.O 2> 9Pt.E
-code=$?
-if test $code != 0; then
- $echo "Test 9Pt failed: $xx return code $code differs from expected value 0" 1>&2
- errors=`expr $errors + 1`
-else
- cmp 9Pt.O $srcdir/n+8l20-FF > /dev/null 2>&1
- case $? in
- 0) if test "$VERBOSE"; then $echo "passed 9Pt"; fi;;
- 1) $echo "Test 9Pt failed: files 9Pt.O and $srcdir/n+8l20-FF differ" 1>&2
- (diff -c 9Pt.O $srcdir/n+8l20-FF) 2> /dev/null
- errors=`expr $errors + 1`;;
- 2) $echo "Test 9Pt may have failed." 1>&2
- $echo The command "cmp 9Pt.O $srcdir/n+8l20-FF" failed. 1>&2
- errors=`expr $errors + 1`;;
- esac
-fi
-test -s 9Pt.E || rm -f 9Pt.E
-$xx --date-format="-- Date/Time --" -h x -n.3 +5 -a -3 -l 6 -f $srcdir/0FFt > 9Paa.O 2> 9Paa.E
-code=$?
-if test $code != 0; then
- $echo "Test 9Paa failed: $xx return code $code differs from expected value 0" 1>&2
- errors=`expr $errors + 1`
-else
- cmp 9Paa.O $srcdir/n+5a3l6f-0FF > /dev/null 2>&1
- case $? in
- 0) if test "$VERBOSE"; then $echo "passed 9Paa"; fi;;
- 1) $echo "Test 9Paa failed: files 9Paa.O and $srcdir/n+5a3l6f-0FF differ" 1>&2
- (diff -c 9Paa.O $srcdir/n+5a3l6f-0FF) 2> /dev/null
- errors=`expr $errors + 1`;;
- 2) $echo "Test 9Paa may have failed." 1>&2
- $echo The command "cmp 9Paa.O $srcdir/n+5a3l6f-0FF" failed. 1>&2
- errors=`expr $errors + 1`;;
- esac
-fi
-test -s 9Paa.E || rm -f 9Paa.E
-$xx --date-format="-- Date/Time --" -h x -n.3 +5 -a --columns=3 -l 6 -f $srcdir/0FFt > 9Paa.C.O 2> 9Paa.C.E
-code=$?
-if test $code != 0; then
- $echo "Test 9Paa.C failed: $xx return code $code differs from expected value 0" 1>&2
- errors=`expr $errors + 1`
-else
- cmp 9Paa.C.O $srcdir/n+5a3l6f-0FF > /dev/null 2>&1
- case $? in
- 0) if test "$VERBOSE"; then $echo "passed 9Paa.C"; fi;;
- 1) $echo "Test 9Paa.C failed: files 9Paa.C.O and $srcdir/n+5a3l6f-0FF differ" 1>&2
- (diff -c 9Paa.C.O $srcdir/n+5a3l6f-0FF) 2> /dev/null
- errors=`expr $errors + 1`;;
- 2) $echo "Test 9Paa.C may have failed." 1>&2
- $echo The command "cmp 9Paa.C.O $srcdir/n+5a3l6f-0FF" failed. 1>&2
- errors=`expr $errors + 1`;;
- esac
-fi
-test -s 9Paa.C.E || rm -f 9Paa.C.E
-$xx --date-format="-- Date/Time --" -h x -n.3 +5 -a -3 -l 6 -f $srcdir/0FFnt > 9Pab.O 2> 9Pab.E
-code=$?
-if test $code != 0; then
- $echo "Test 9Pab failed: $xx return code $code differs from expected value 0" 1>&2
- errors=`expr $errors + 1`
-else
- cmp 9Pab.O $srcdir/n+5a3l6f-0FF > /dev/null 2>&1
- case $? in
- 0) if test "$VERBOSE"; then $echo "passed 9Pab"; fi;;
- 1) $echo "Test 9Pab failed: files 9Pab.O and $srcdir/n+5a3l6f-0FF differ" 1>&2
- (diff -c 9Pab.O $srcdir/n+5a3l6f-0FF) 2> /dev/null
- errors=`expr $errors + 1`;;
- 2) $echo "Test 9Pab may have failed." 1>&2
- $echo The command "cmp 9Pab.O $srcdir/n+5a3l6f-0FF" failed. 1>&2
- errors=`expr $errors + 1`;;
- esac
-fi
-test -s 9Pab.E || rm -f 9Pab.E
-$xx --date-format="-- Date/Time --" -h x -n.3 +5 -a --columns=3 -l 6 -f $srcdir/0FFnt > 9Pab.C.O 2> 9Pab.C.E
-code=$?
-if test $code != 0; then
- $echo "Test 9Pab.C failed: $xx return code $code differs from expected value 0" 1>&2
- errors=`expr $errors + 1`
-else
- cmp 9Pab.C.O $srcdir/n+5a3l6f-0FF > /dev/null 2>&1
- case $? in
- 0) if test "$VERBOSE"; then $echo "passed 9Pab.C"; fi;;
- 1) $echo "Test 9Pab.C failed: files 9Pab.C.O and $srcdir/n+5a3l6f-0FF differ" 1>&2
- (diff -c 9Pab.C.O $srcdir/n+5a3l6f-0FF) 2> /dev/null
- errors=`expr $errors + 1`;;
- 2) $echo "Test 9Pab.C may have failed." 1>&2
- $echo The command "cmp 9Pab.C.O $srcdir/n+5a3l6f-0FF" failed. 1>&2
- errors=`expr $errors + 1`;;
- esac
-fi
-test -s 9Pab.C.E || rm -f 9Pab.C.E
-$xx --date-format="-- Date/Time --" -h x -n.3 +5 -a -3 -l 6 -f $srcdir/0FnFt > 9Pac.O 2> 9Pac.E
-code=$?
-if test $code != 0; then
- $echo "Test 9Pac failed: $xx return code $code differs from expected value 0" 1>&2
- errors=`expr $errors + 1`
-else
- cmp 9Pac.O $srcdir/n+5a3l6f-0FF > /dev/null 2>&1
- case $? in
- 0) if test "$VERBOSE"; then $echo "passed 9Pac"; fi;;
- 1) $echo "Test 9Pac failed: files 9Pac.O and $srcdir/n+5a3l6f-0FF differ" 1>&2
- (diff -c 9Pac.O $srcdir/n+5a3l6f-0FF) 2> /dev/null
- errors=`expr $errors + 1`;;
- 2) $echo "Test 9Pac may have failed." 1>&2
- $echo The command "cmp 9Pac.O $srcdir/n+5a3l6f-0FF" failed. 1>&2
- errors=`expr $errors + 1`;;
- esac
-fi
-test -s 9Pac.E || rm -f 9Pac.E
-$xx --date-format="-- Date/Time --" -h x -n.3 +5 -a --columns=3 -l 6 -f $srcdir/0FnFt > 9Pac.C.O 2> 9Pac.C.E
-code=$?
-if test $code != 0; then
- $echo "Test 9Pac.C failed: $xx return code $code differs from expected value 0" 1>&2
- errors=`expr $errors + 1`
-else
- cmp 9Pac.C.O $srcdir/n+5a3l6f-0FF > /dev/null 2>&1
- case $? in
- 0) if test "$VERBOSE"; then $echo "passed 9Pac.C"; fi;;
- 1) $echo "Test 9Pac.C failed: files 9Pac.C.O and $srcdir/n+5a3l6f-0FF differ" 1>&2
- (diff -c 9Pac.C.O $srcdir/n+5a3l6f-0FF) 2> /dev/null
- errors=`expr $errors + 1`;;
- 2) $echo "Test 9Pac.C may have failed." 1>&2
- $echo The command "cmp 9Pac.C.O $srcdir/n+5a3l6f-0FF" failed. 1>&2
- errors=`expr $errors + 1`;;
- esac
-fi
-test -s 9Pac.C.E || rm -f 9Pac.C.E
-$xx --date-format="-- Date/Time --" -h x -n.3 +5 -a -3 -l 6 -f $srcdir/0FnFnt > 9Pad.O 2> 9Pad.E
-code=$?
-if test $code != 0; then
- $echo "Test 9Pad failed: $xx return code $code differs from expected value 0" 1>&2
- errors=`expr $errors + 1`
-else
- cmp 9Pad.O $srcdir/n+5a3l6f-0FF > /dev/null 2>&1
- case $? in
- 0) if test "$VERBOSE"; then $echo "passed 9Pad"; fi;;
- 1) $echo "Test 9Pad failed: files 9Pad.O and $srcdir/n+5a3l6f-0FF differ" 1>&2
- (diff -c 9Pad.O $srcdir/n+5a3l6f-0FF) 2> /dev/null
- errors=`expr $errors + 1`;;
- 2) $echo "Test 9Pad may have failed." 1>&2
- $echo The command "cmp 9Pad.O $srcdir/n+5a3l6f-0FF" failed. 1>&2
- errors=`expr $errors + 1`;;
- esac
-fi
-test -s 9Pad.E || rm -f 9Pad.E
-$xx --date-format="-- Date/Time --" -h x -n.3 +5 -a --columns=3 -l 6 -f $srcdir/0FnFnt > 9Pad.C.O 2> 9Pad.C.E
-code=$?
-if test $code != 0; then
- $echo "Test 9Pad.C failed: $xx return code $code differs from expected value 0" 1>&2
- errors=`expr $errors + 1`
-else
- cmp 9Pad.C.O $srcdir/n+5a3l6f-0FF > /dev/null 2>&1
- case $? in
- 0) if test "$VERBOSE"; then $echo "passed 9Pad.C"; fi;;
- 1) $echo "Test 9Pad.C failed: files 9Pad.C.O and $srcdir/n+5a3l6f-0FF differ" 1>&2
- (diff -c 9Pad.C.O $srcdir/n+5a3l6f-0FF) 2> /dev/null
- errors=`expr $errors + 1`;;
- 2) $echo "Test 9Pad.C may have failed." 1>&2
- $echo The command "cmp 9Pad.C.O $srcdir/n+5a3l6f-0FF" failed. 1>&2
- errors=`expr $errors + 1`;;
- esac
-fi
-test -s 9Pad.C.E || rm -f 9Pad.C.E
-$xx --date-format="-- Date/Time --" -h x -n.3 +6 -a -2 -l 17 $srcdir/FFn > 9Pae.O 2> 9Pae.E
-code=$?
-if test $code != 0; then
- $echo "Test 9Pae failed: $xx return code $code differs from expected value 0" 1>&2
- errors=`expr $errors + 1`
-else
- cmp 9Pae.O $srcdir/n+6a2l17-FF > /dev/null 2>&1
- case $? in
- 0) if test "$VERBOSE"; then $echo "passed 9Pae"; fi;;
- 1) $echo "Test 9Pae failed: files 9Pae.O and $srcdir/n+6a2l17-FF differ" 1>&2
- (diff -c 9Pae.O $srcdir/n+6a2l17-FF) 2> /dev/null
- errors=`expr $errors + 1`;;
- 2) $echo "Test 9Pae may have failed." 1>&2
- $echo The command "cmp 9Pae.O $srcdir/n+6a2l17-FF" failed. 1>&2
- errors=`expr $errors + 1`;;
- esac
-fi
-test -s 9Pae.E || rm -f 9Pae.E
-$xx --date-format="-- Date/Time --" -h x -n.3 +6 -a --columns=2 -l 17 $srcdir/FFn > 9Pae.C.O 2> 9Pae.C.E
-code=$?
-if test $code != 0; then
- $echo "Test 9Pae.C failed: $xx return code $code differs from expected value 0" 1>&2
- errors=`expr $errors + 1`
-else
- cmp 9Pae.C.O $srcdir/n+6a2l17-FF > /dev/null 2>&1
- case $? in
- 0) if test "$VERBOSE"; then $echo "passed 9Pae.C"; fi;;
- 1) $echo "Test 9Pae.C failed: files 9Pae.C.O and $srcdir/n+6a2l17-FF differ" 1>&2
- (diff -c 9Pae.C.O $srcdir/n+6a2l17-FF) 2> /dev/null
- errors=`expr $errors + 1`;;
- 2) $echo "Test 9Pae.C may have failed." 1>&2
- $echo The command "cmp 9Pae.C.O $srcdir/n+6a2l17-FF" failed. 1>&2
- errors=`expr $errors + 1`;;
- esac
-fi
-test -s 9Pae.C.E || rm -f 9Pae.C.E
-$xx --date-format="-- Date/Time --" -h x -n.3 +6 -a -2 -l 17 $srcdir/FFtn > 9Paf.O 2> 9Paf.E
-code=$?
-if test $code != 0; then
- $echo "Test 9Paf failed: $xx return code $code differs from expected value 0" 1>&2
- errors=`expr $errors + 1`
-else
- cmp 9Paf.O $srcdir/n+6a2l17-FF > /dev/null 2>&1
- case $? in
- 0) if test "$VERBOSE"; then $echo "passed 9Paf"; fi;;
- 1) $echo "Test 9Paf failed: files 9Paf.O and $srcdir/n+6a2l17-FF differ" 1>&2
- (diff -c 9Paf.O $srcdir/n+6a2l17-FF) 2> /dev/null
- errors=`expr $errors + 1`;;
- 2) $echo "Test 9Paf may have failed." 1>&2
- $echo The command "cmp 9Paf.O $srcdir/n+6a2l17-FF" failed. 1>&2
- errors=`expr $errors + 1`;;
- esac
-fi
-test -s 9Paf.E || rm -f 9Paf.E
-$xx --date-format="-- Date/Time --" -h x -n.3 +6 -a --columns=2 -l 17 $srcdir/FFtn > 9Paf.C.O 2> 9Paf.C.E
-code=$?
-if test $code != 0; then
- $echo "Test 9Paf.C failed: $xx return code $code differs from expected value 0" 1>&2
- errors=`expr $errors + 1`
-else
- cmp 9Paf.C.O $srcdir/n+6a2l17-FF > /dev/null 2>&1
- case $? in
- 0) if test "$VERBOSE"; then $echo "passed 9Paf.C"; fi;;
- 1) $echo "Test 9Paf.C failed: files 9Paf.C.O and $srcdir/n+6a2l17-FF differ" 1>&2
- (diff -c 9Paf.C.O $srcdir/n+6a2l17-FF) 2> /dev/null
- errors=`expr $errors + 1`;;
- 2) $echo "Test 9Paf.C may have failed." 1>&2
- $echo The command "cmp 9Paf.C.O $srcdir/n+6a2l17-FF" failed. 1>&2
- errors=`expr $errors + 1`;;
- esac
-fi
-test -s 9Paf.C.E || rm -f 9Paf.C.E
-$xx --date-format="-- Date/Time --" -h x -n.3 +6 -a -2 -l 17 $srcdir/FnFn > 9Pag.O 2> 9Pag.E
-code=$?
-if test $code != 0; then
- $echo "Test 9Pag failed: $xx return code $code differs from expected value 0" 1>&2
- errors=`expr $errors + 1`
-else
- cmp 9Pag.O $srcdir/n+6a2l17-FF > /dev/null 2>&1
- case $? in
- 0) if test "$VERBOSE"; then $echo "passed 9Pag"; fi;;
- 1) $echo "Test 9Pag failed: files 9Pag.O and $srcdir/n+6a2l17-FF differ" 1>&2
- (diff -c 9Pag.O $srcdir/n+6a2l17-FF) 2> /dev/null
- errors=`expr $errors + 1`;;
- 2) $echo "Test 9Pag may have failed." 1>&2
- $echo The command "cmp 9Pag.O $srcdir/n+6a2l17-FF" failed. 1>&2
- errors=`expr $errors + 1`;;
- esac
-fi
-test -s 9Pag.E || rm -f 9Pag.E
-$xx --date-format="-- Date/Time --" -h x -n.3 +6 -a --columns=2 -l 17 $srcdir/FnFn > 9Pag.C.O 2> 9Pag.C.E
-code=$?
-if test $code != 0; then
- $echo "Test 9Pag.C failed: $xx return code $code differs from expected value 0" 1>&2
- errors=`expr $errors + 1`
-else
- cmp 9Pag.C.O $srcdir/n+6a2l17-FF > /dev/null 2>&1
- case $? in
- 0) if test "$VERBOSE"; then $echo "passed 9Pag.C"; fi;;
- 1) $echo "Test 9Pag.C failed: files 9Pag.C.O and $srcdir/n+6a2l17-FF differ" 1>&2
- (diff -c 9Pag.C.O $srcdir/n+6a2l17-FF) 2> /dev/null
- errors=`expr $errors + 1`;;
- 2) $echo "Test 9Pag.C may have failed." 1>&2
- $echo The command "cmp 9Pag.C.O $srcdir/n+6a2l17-FF" failed. 1>&2
- errors=`expr $errors + 1`;;
- esac
-fi
-test -s 9Pag.C.E || rm -f 9Pag.C.E
-$xx --date-format="-- Date/Time --" -h x -n.3 +6 -a -2 -l 17 $srcdir/tFFn > 9Pah.O 2> 9Pah.E
-code=$?
-if test $code != 0; then
- $echo "Test 9Pah failed: $xx return code $code differs from expected value 0" 1>&2
- errors=`expr $errors + 1`
-else
- cmp 9Pah.O $srcdir/n+6a2l17-FF > /dev/null 2>&1
- case $? in
- 0) if test "$VERBOSE"; then $echo "passed 9Pah"; fi;;
- 1) $echo "Test 9Pah failed: files 9Pah.O and $srcdir/n+6a2l17-FF differ" 1>&2
- (diff -c 9Pah.O $srcdir/n+6a2l17-FF) 2> /dev/null
- errors=`expr $errors + 1`;;
- 2) $echo "Test 9Pah may have failed." 1>&2
- $echo The command "cmp 9Pah.O $srcdir/n+6a2l17-FF" failed. 1>&2
- errors=`expr $errors + 1`;;
- esac
-fi
-test -s 9Pah.E || rm -f 9Pah.E
-$xx --date-format="-- Date/Time --" -h x -n.3 +6 -a --columns=2 -l 17 $srcdir/tFFn > 9Pah.C.O 2> 9Pah.C.E
-code=$?
-if test $code != 0; then
- $echo "Test 9Pah.C failed: $xx return code $code differs from expected value 0" 1>&2
- errors=`expr $errors + 1`
-else
- cmp 9Pah.C.O $srcdir/n+6a2l17-FF > /dev/null 2>&1
- case $? in
- 0) if test "$VERBOSE"; then $echo "passed 9Pah.C"; fi;;
- 1) $echo "Test 9Pah.C failed: files 9Pah.C.O and $srcdir/n+6a2l17-FF differ" 1>&2
- (diff -c 9Pah.C.O $srcdir/n+6a2l17-FF) 2> /dev/null
- errors=`expr $errors + 1`;;
- 2) $echo "Test 9Pah.C may have failed." 1>&2
- $echo The command "cmp 9Pah.C.O $srcdir/n+6a2l17-FF" failed. 1>&2
- errors=`expr $errors + 1`;;
- esac
-fi
-test -s 9Pah.C.E || rm -f 9Pah.C.E
-$xx --date-format="-- Date/Time --" -h x -n.3 +6 -a -2 -l 17 $srcdir/tFnFt > 9Pai.O 2> 9Pai.E
-code=$?
-if test $code != 0; then
- $echo "Test 9Pai failed: $xx return code $code differs from expected value 0" 1>&2
- errors=`expr $errors + 1`
-else
- cmp 9Pai.O $srcdir/n+6a2l17-FF > /dev/null 2>&1
- case $? in
- 0) if test "$VERBOSE"; then $echo "passed 9Pai"; fi;;
- 1) $echo "Test 9Pai failed: files 9Pai.O and $srcdir/n+6a2l17-FF differ" 1>&2
- (diff -c 9Pai.O $srcdir/n+6a2l17-FF) 2> /dev/null
- errors=`expr $errors + 1`;;
- 2) $echo "Test 9Pai may have failed." 1>&2
- $echo The command "cmp 9Pai.O $srcdir/n+6a2l17-FF" failed. 1>&2
- errors=`expr $errors + 1`;;
- esac
-fi
-test -s 9Pai.E || rm -f 9Pai.E
-$xx --date-format="-- Date/Time --" -h x -n.3 +6 -a --columns=2 -l 17 $srcdir/tFnFt > 9Pai.C.O 2> 9Pai.C.E
-code=$?
-if test $code != 0; then
- $echo "Test 9Pai.C failed: $xx return code $code differs from expected value 0" 1>&2
- errors=`expr $errors + 1`
-else
- cmp 9Pai.C.O $srcdir/n+6a2l17-FF > /dev/null 2>&1
- case $? in
- 0) if test "$VERBOSE"; then $echo "passed 9Pai.C"; fi;;
- 1) $echo "Test 9Pai.C failed: files 9Pai.C.O and $srcdir/n+6a2l17-FF differ" 1>&2
- (diff -c 9Pai.C.O $srcdir/n+6a2l17-FF) 2> /dev/null
- errors=`expr $errors + 1`;;
- 2) $echo "Test 9Pai.C may have failed." 1>&2
- $echo The command "cmp 9Pai.C.O $srcdir/n+6a2l17-FF" failed. 1>&2
- errors=`expr $errors + 1`;;
- esac
-fi
-test -s 9Pai.C.E || rm -f 9Pai.C.E
-$xx --date-format="-- Date/Time --" -h x -n.3 +6 -a -2 -l 17 $srcdir/tFFt > 9Paj.O 2> 9Paj.E
-code=$?
-if test $code != 0; then
- $echo "Test 9Paj failed: $xx return code $code differs from expected value 0" 1>&2
- errors=`expr $errors + 1`
-else
- cmp 9Paj.O $srcdir/n+6a2l17-FF > /dev/null 2>&1
- case $? in
- 0) if test "$VERBOSE"; then $echo "passed 9Paj"; fi;;
- 1) $echo "Test 9Paj failed: files 9Paj.O and $srcdir/n+6a2l17-FF differ" 1>&2
- (diff -c 9Paj.O $srcdir/n+6a2l17-FF) 2> /dev/null
- errors=`expr $errors + 1`;;
- 2) $echo "Test 9Paj may have failed." 1>&2
- $echo The command "cmp 9Paj.O $srcdir/n+6a2l17-FF" failed. 1>&2
- errors=`expr $errors + 1`;;
- esac
-fi
-test -s 9Paj.E || rm -f 9Paj.E
-$xx --date-format="-- Date/Time --" -h x -n.3 +6 -a --columns=2 -l 17 $srcdir/tFFt > 9Paj.C.O 2> 9Paj.C.E
-code=$?
-if test $code != 0; then
- $echo "Test 9Paj.C failed: $xx return code $code differs from expected value 0" 1>&2
- errors=`expr $errors + 1`
-else
- cmp 9Paj.C.O $srcdir/n+6a2l17-FF > /dev/null 2>&1
- case $? in
- 0) if test "$VERBOSE"; then $echo "passed 9Paj.C"; fi;;
- 1) $echo "Test 9Paj.C failed: files 9Paj.C.O and $srcdir/n+6a2l17-FF differ" 1>&2
- (diff -c 9Paj.C.O $srcdir/n+6a2l17-FF) 2> /dev/null
- errors=`expr $errors + 1`;;
- 2) $echo "Test 9Paj.C may have failed." 1>&2
- $echo The command "cmp 9Paj.C.O $srcdir/n+6a2l17-FF" failed. 1>&2
- errors=`expr $errors + 1`;;
- esac
-fi
-test -s 9Paj.C.E || rm -f 9Paj.C.E
-$xx --date-format="-- Date/Time --" -h x -n.3 +4:8 -a -2 -l 17 $srcdir/tFFt > 9Pak.O 2> 9Pak.E
-code=$?
-if test $code != 0; then
- $echo "Test 9Pak failed: $xx return code $code differs from expected value 0" 1>&2
- errors=`expr $errors + 1`
-else
- cmp 9Pak.O $srcdir/n+4-8a2l17-FF > /dev/null 2>&1
- case $? in
- 0) if test "$VERBOSE"; then $echo "passed 9Pak"; fi;;
- 1) $echo "Test 9Pak failed: files 9Pak.O and $srcdir/n+4-8a2l17-FF differ" 1>&2
- (diff -c 9Pak.O $srcdir/n+4-8a2l17-FF) 2> /dev/null
- errors=`expr $errors + 1`;;
- 2) $echo "Test 9Pak may have failed." 1>&2
- $echo The command "cmp 9Pak.O $srcdir/n+4-8a2l17-FF" failed. 1>&2
- errors=`expr $errors + 1`;;
- esac
-fi
-test -s 9Pak.E || rm -f 9Pak.E
-$xx --date-format="-- Date/Time --" -h x -n.3 +4:8 -a --columns=2 -l 17 $srcdir/tFFt > 9Pak.C.O 2> 9Pak.C.E
-code=$?
-if test $code != 0; then
- $echo "Test 9Pak.C failed: $xx return code $code differs from expected value 0" 1>&2
- errors=`expr $errors + 1`
-else
- cmp 9Pak.C.O $srcdir/n+4-8a2l17-FF > /dev/null 2>&1
- case $? in
- 0) if test "$VERBOSE"; then $echo "passed 9Pak.C"; fi;;
- 1) $echo "Test 9Pak.C failed: files 9Pak.C.O and $srcdir/n+4-8a2l17-FF differ" 1>&2
- (diff -c 9Pak.C.O $srcdir/n+4-8a2l17-FF) 2> /dev/null
- errors=`expr $errors + 1`;;
- 2) $echo "Test 9Pak.C may have failed." 1>&2
- $echo The command "cmp 9Pak.C.O $srcdir/n+4-8a2l17-FF" failed. 1>&2
- errors=`expr $errors + 1`;;
- esac
-fi
-test -s 9Pak.C.E || rm -f 9Pak.C.E
-$xx --date-format="-- Date/Time --" -h x -n.3 +4 -b -2 -l 10 -f $srcdir/0FFt > 9Pba.O 2> 9Pba.E
-code=$?
-if test $code != 0; then
- $echo "Test 9Pba failed: $xx return code $code differs from expected value 0" 1>&2
- errors=`expr $errors + 1`
-else
- cmp 9Pba.O $srcdir/n+4b2l10f-0FF > /dev/null 2>&1
- case $? in
- 0) if test "$VERBOSE"; then $echo "passed 9Pba"; fi;;
- 1) $echo "Test 9Pba failed: files 9Pba.O and $srcdir/n+4b2l10f-0FF differ" 1>&2
- (diff -c 9Pba.O $srcdir/n+4b2l10f-0FF) 2> /dev/null
- errors=`expr $errors + 1`;;
- 2) $echo "Test 9Pba may have failed." 1>&2
- $echo The command "cmp 9Pba.O $srcdir/n+4b2l10f-0FF" failed. 1>&2
- errors=`expr $errors + 1`;;
- esac
-fi
-test -s 9Pba.E || rm -f 9Pba.E
-$xx --date-format="-- Date/Time --" -h x -n.3 +4 -b --columns=2 -l 10 -f $srcdir/0FFt > 9Pba.C.O 2> 9Pba.C.E
-code=$?
-if test $code != 0; then
- $echo "Test 9Pba.C failed: $xx return code $code differs from expected value 0" 1>&2
- errors=`expr $errors + 1`
-else
- cmp 9Pba.C.O $srcdir/n+4b2l10f-0FF > /dev/null 2>&1
- case $? in
- 0) if test "$VERBOSE"; then $echo "passed 9Pba.C"; fi;;
- 1) $echo "Test 9Pba.C failed: files 9Pba.C.O and $srcdir/n+4b2l10f-0FF differ" 1>&2
- (diff -c 9Pba.C.O $srcdir/n+4b2l10f-0FF) 2> /dev/null
- errors=`expr $errors + 1`;;
- 2) $echo "Test 9Pba.C may have failed." 1>&2
- $echo The command "cmp 9Pba.C.O $srcdir/n+4b2l10f-0FF" failed. 1>&2
- errors=`expr $errors + 1`;;
- esac
-fi
-test -s 9Pba.C.E || rm -f 9Pba.C.E
-$xx --date-format="-- Date/Time --" -h x -n.3 +4 -b -2 -l 10 -f $srcdir/0FFnt > 9Pbb.O 2> 9Pbb.E
-code=$?
-if test $code != 0; then
- $echo "Test 9Pbb failed: $xx return code $code differs from expected value 0" 1>&2
- errors=`expr $errors + 1`
-else
- cmp 9Pbb.O $srcdir/n+4b2l10f-0FF > /dev/null 2>&1
- case $? in
- 0) if test "$VERBOSE"; then $echo "passed 9Pbb"; fi;;
- 1) $echo "Test 9Pbb failed: files 9Pbb.O and $srcdir/n+4b2l10f-0FF differ" 1>&2
- (diff -c 9Pbb.O $srcdir/n+4b2l10f-0FF) 2> /dev/null
- errors=`expr $errors + 1`;;
- 2) $echo "Test 9Pbb may have failed." 1>&2
- $echo The command "cmp 9Pbb.O $srcdir/n+4b2l10f-0FF" failed. 1>&2
- errors=`expr $errors + 1`;;
- esac
-fi
-test -s 9Pbb.E || rm -f 9Pbb.E
-$xx --date-format="-- Date/Time --" -h x -n.3 +4 -b --columns=2 -l 10 -f $srcdir/0FFnt > 9Pbb.C.O 2> 9Pbb.C.E
-code=$?
-if test $code != 0; then
- $echo "Test 9Pbb.C failed: $xx return code $code differs from expected value 0" 1>&2
- errors=`expr $errors + 1`
-else
- cmp 9Pbb.C.O $srcdir/n+4b2l10f-0FF > /dev/null 2>&1
- case $? in
- 0) if test "$VERBOSE"; then $echo "passed 9Pbb.C"; fi;;
- 1) $echo "Test 9Pbb.C failed: files 9Pbb.C.O and $srcdir/n+4b2l10f-0FF differ" 1>&2
- (diff -c 9Pbb.C.O $srcdir/n+4b2l10f-0FF) 2> /dev/null
- errors=`expr $errors + 1`;;
- 2) $echo "Test 9Pbb.C may have failed." 1>&2
- $echo The command "cmp 9Pbb.C.O $srcdir/n+4b2l10f-0FF" failed. 1>&2
- errors=`expr $errors + 1`;;
- esac
-fi
-test -s 9Pbb.C.E || rm -f 9Pbb.C.E
-$xx --date-format="-- Date/Time --" -h x -n.3 +4 -b -2 -l 10 -f $srcdir/0FnFt > 9Pbc.O 2> 9Pbc.E
-code=$?
-if test $code != 0; then
- $echo "Test 9Pbc failed: $xx return code $code differs from expected value 0" 1>&2
- errors=`expr $errors + 1`
-else
- cmp 9Pbc.O $srcdir/n+4b2l10f-0FF > /dev/null 2>&1
- case $? in
- 0) if test "$VERBOSE"; then $echo "passed 9Pbc"; fi;;
- 1) $echo "Test 9Pbc failed: files 9Pbc.O and $srcdir/n+4b2l10f-0FF differ" 1>&2
- (diff -c 9Pbc.O $srcdir/n+4b2l10f-0FF) 2> /dev/null
- errors=`expr $errors + 1`;;
- 2) $echo "Test 9Pbc may have failed." 1>&2
- $echo The command "cmp 9Pbc.O $srcdir/n+4b2l10f-0FF" failed. 1>&2
- errors=`expr $errors + 1`;;
- esac
-fi
-test -s 9Pbc.E || rm -f 9Pbc.E
-$xx --date-format="-- Date/Time --" -h x -n.3 +4 -b --columns=2 -l 10 -f $srcdir/0FnFt > 9Pbc.C.O 2> 9Pbc.C.E
-code=$?
-if test $code != 0; then
- $echo "Test 9Pbc.C failed: $xx return code $code differs from expected value 0" 1>&2
- errors=`expr $errors + 1`
-else
- cmp 9Pbc.C.O $srcdir/n+4b2l10f-0FF > /dev/null 2>&1
- case $? in
- 0) if test "$VERBOSE"; then $echo "passed 9Pbc.C"; fi;;
- 1) $echo "Test 9Pbc.C failed: files 9Pbc.C.O and $srcdir/n+4b2l10f-0FF differ" 1>&2
- (diff -c 9Pbc.C.O $srcdir/n+4b2l10f-0FF) 2> /dev/null
- errors=`expr $errors + 1`;;
- 2) $echo "Test 9Pbc.C may have failed." 1>&2
- $echo The command "cmp 9Pbc.C.O $srcdir/n+4b2l10f-0FF" failed. 1>&2
- errors=`expr $errors + 1`;;
- esac
-fi
-test -s 9Pbc.C.E || rm -f 9Pbc.C.E
-$xx --date-format="-- Date/Time --" -h x -n.3 +4 -b -2 -l 10 -f $srcdir/0FnFnt > 9Pbd.O 2> 9Pbd.E
-code=$?
-if test $code != 0; then
- $echo "Test 9Pbd failed: $xx return code $code differs from expected value 0" 1>&2
- errors=`expr $errors + 1`
-else
- cmp 9Pbd.O $srcdir/n+4b2l10f-0FF > /dev/null 2>&1
- case $? in
- 0) if test "$VERBOSE"; then $echo "passed 9Pbd"; fi;;
- 1) $echo "Test 9Pbd failed: files 9Pbd.O and $srcdir/n+4b2l10f-0FF differ" 1>&2
- (diff -c 9Pbd.O $srcdir/n+4b2l10f-0FF) 2> /dev/null
- errors=`expr $errors + 1`;;
- 2) $echo "Test 9Pbd may have failed." 1>&2
- $echo The command "cmp 9Pbd.O $srcdir/n+4b2l10f-0FF" failed. 1>&2
- errors=`expr $errors + 1`;;
- esac
-fi
-test -s 9Pbd.E || rm -f 9Pbd.E
-$xx --date-format="-- Date/Time --" -h x -n.3 +4 -b --columns=2 -l 10 -f $srcdir/0FnFnt > 9Pbd.C.O 2> 9Pbd.C.E
-code=$?
-if test $code != 0; then
- $echo "Test 9Pbd.C failed: $xx return code $code differs from expected value 0" 1>&2
- errors=`expr $errors + 1`
-else
- cmp 9Pbd.C.O $srcdir/n+4b2l10f-0FF > /dev/null 2>&1
- case $? in
- 0) if test "$VERBOSE"; then $echo "passed 9Pbd.C"; fi;;
- 1) $echo "Test 9Pbd.C failed: files 9Pbd.C.O and $srcdir/n+4b2l10f-0FF differ" 1>&2
- (diff -c 9Pbd.C.O $srcdir/n+4b2l10f-0FF) 2> /dev/null
- errors=`expr $errors + 1`;;
- 2) $echo "Test 9Pbd.C may have failed." 1>&2
- $echo The command "cmp 9Pbd.C.O $srcdir/n+4b2l10f-0FF" failed. 1>&2
- errors=`expr $errors + 1`;;
- esac
-fi
-test -s 9Pbd.C.E || rm -f 9Pbd.C.E
-$xx --date-format="-- Date/Time --" -h x -n.3 +6 -b -3 -l 6 -f $srcdir/FFn > 9Pbe.O 2> 9Pbe.E
-code=$?
-if test $code != 0; then
- $echo "Test 9Pbe failed: $xx return code $code differs from expected value 0" 1>&2
- errors=`expr $errors + 1`
-else
- cmp 9Pbe.O $srcdir/n+6b3l6f-FF > /dev/null 2>&1
- case $? in
- 0) if test "$VERBOSE"; then $echo "passed 9Pbe"; fi;;
- 1) $echo "Test 9Pbe failed: files 9Pbe.O and $srcdir/n+6b3l6f-FF differ" 1>&2
- (diff -c 9Pbe.O $srcdir/n+6b3l6f-FF) 2> /dev/null
- errors=`expr $errors + 1`;;
- 2) $echo "Test 9Pbe may have failed." 1>&2
- $echo The command "cmp 9Pbe.O $srcdir/n+6b3l6f-FF" failed. 1>&2
- errors=`expr $errors + 1`;;
- esac
-fi
-test -s 9Pbe.E || rm -f 9Pbe.E
-$xx --date-format="-- Date/Time --" -h x -n.3 +6 -b --columns=3 -l 6 -f $srcdir/FFn > 9Pbe.C.O 2> 9Pbe.C.E
-code=$?
-if test $code != 0; then
- $echo "Test 9Pbe.C failed: $xx return code $code differs from expected value 0" 1>&2
- errors=`expr $errors + 1`
-else
- cmp 9Pbe.C.O $srcdir/n+6b3l6f-FF > /dev/null 2>&1
- case $? in
- 0) if test "$VERBOSE"; then $echo "passed 9Pbe.C"; fi;;
- 1) $echo "Test 9Pbe.C failed: files 9Pbe.C.O and $srcdir/n+6b3l6f-FF differ" 1>&2
- (diff -c 9Pbe.C.O $srcdir/n+6b3l6f-FF) 2> /dev/null
- errors=`expr $errors + 1`;;
- 2) $echo "Test 9Pbe.C may have failed." 1>&2
- $echo The command "cmp 9Pbe.C.O $srcdir/n+6b3l6f-FF" failed. 1>&2
- errors=`expr $errors + 1`;;
- esac
-fi
-test -s 9Pbe.C.E || rm -f 9Pbe.C.E
-$xx --date-format="-- Date/Time --" -h x -n.3 +6 -b -3 -l 6 -f $srcdir/FFtn > 9Pbf.O 2> 9Pbf.E
-code=$?
-if test $code != 0; then
- $echo "Test 9Pbf failed: $xx return code $code differs from expected value 0" 1>&2
- errors=`expr $errors + 1`
-else
- cmp 9Pbf.O $srcdir/n+6b3l6f-FF > /dev/null 2>&1
- case $? in
- 0) if test "$VERBOSE"; then $echo "passed 9Pbf"; fi;;
- 1) $echo "Test 9Pbf failed: files 9Pbf.O and $srcdir/n+6b3l6f-FF differ" 1>&2
- (diff -c 9Pbf.O $srcdir/n+6b3l6f-FF) 2> /dev/null
- errors=`expr $errors + 1`;;
- 2) $echo "Test 9Pbf may have failed." 1>&2
- $echo The command "cmp 9Pbf.O $srcdir/n+6b3l6f-FF" failed. 1>&2
- errors=`expr $errors + 1`;;
- esac
-fi
-test -s 9Pbf.E || rm -f 9Pbf.E
-$xx --date-format="-- Date/Time --" -h x -n.3 +6 -b --columns=3 -l 6 -f $srcdir/FFtn > 9Pbf.C.O 2> 9Pbf.C.E
-code=$?
-if test $code != 0; then
- $echo "Test 9Pbf.C failed: $xx return code $code differs from expected value 0" 1>&2
- errors=`expr $errors + 1`
-else
- cmp 9Pbf.C.O $srcdir/n+6b3l6f-FF > /dev/null 2>&1
- case $? in
- 0) if test "$VERBOSE"; then $echo "passed 9Pbf.C"; fi;;
- 1) $echo "Test 9Pbf.C failed: files 9Pbf.C.O and $srcdir/n+6b3l6f-FF differ" 1>&2
- (diff -c 9Pbf.C.O $srcdir/n+6b3l6f-FF) 2> /dev/null
- errors=`expr $errors + 1`;;
- 2) $echo "Test 9Pbf.C may have failed." 1>&2
- $echo The command "cmp 9Pbf.C.O $srcdir/n+6b3l6f-FF" failed. 1>&2
- errors=`expr $errors + 1`;;
- esac
-fi
-test -s 9Pbf.C.E || rm -f 9Pbf.C.E
-$xx --date-format="-- Date/Time --" -h x -n.3 +6 -b -3 -l 6 -f $srcdir/FnFn > 9Pbg.O 2> 9Pbg.E
-code=$?
-if test $code != 0; then
- $echo "Test 9Pbg failed: $xx return code $code differs from expected value 0" 1>&2
- errors=`expr $errors + 1`
-else
- cmp 9Pbg.O $srcdir/n+6b3l6f-FF > /dev/null 2>&1
- case $? in
- 0) if test "$VERBOSE"; then $echo "passed 9Pbg"; fi;;
- 1) $echo "Test 9Pbg failed: files 9Pbg.O and $srcdir/n+6b3l6f-FF differ" 1>&2
- (diff -c 9Pbg.O $srcdir/n+6b3l6f-FF) 2> /dev/null
- errors=`expr $errors + 1`;;
- 2) $echo "Test 9Pbg may have failed." 1>&2
- $echo The command "cmp 9Pbg.O $srcdir/n+6b3l6f-FF" failed. 1>&2
- errors=`expr $errors + 1`;;
- esac
-fi
-test -s 9Pbg.E || rm -f 9Pbg.E
-$xx --date-format="-- Date/Time --" -h x -n.3 +6 -b --columns=3 -l 6 -f $srcdir/FnFn > 9Pbg.C.O 2> 9Pbg.C.E
-code=$?
-if test $code != 0; then
- $echo "Test 9Pbg.C failed: $xx return code $code differs from expected value 0" 1>&2
- errors=`expr $errors + 1`
-else
- cmp 9Pbg.C.O $srcdir/n+6b3l6f-FF > /dev/null 2>&1
- case $? in
- 0) if test "$VERBOSE"; then $echo "passed 9Pbg.C"; fi;;
- 1) $echo "Test 9Pbg.C failed: files 9Pbg.C.O and $srcdir/n+6b3l6f-FF differ" 1>&2
- (diff -c 9Pbg.C.O $srcdir/n+6b3l6f-FF) 2> /dev/null
- errors=`expr $errors + 1`;;
- 2) $echo "Test 9Pbg.C may have failed." 1>&2
- $echo The command "cmp 9Pbg.C.O $srcdir/n+6b3l6f-FF" failed. 1>&2
- errors=`expr $errors + 1`;;
- esac
-fi
-test -s 9Pbg.C.E || rm -f 9Pbg.C.E
-$xx --date-format="-- Date/Time --" -h x -n.3 +6 -b -3 -l 6 -f $srcdir/tFFn > 9Pbh.O 2> 9Pbh.E
-code=$?
-if test $code != 0; then
- $echo "Test 9Pbh failed: $xx return code $code differs from expected value 0" 1>&2
- errors=`expr $errors + 1`
-else
- cmp 9Pbh.O $srcdir/n+6b3l6f-FF > /dev/null 2>&1
- case $? in
- 0) if test "$VERBOSE"; then $echo "passed 9Pbh"; fi;;
- 1) $echo "Test 9Pbh failed: files 9Pbh.O and $srcdir/n+6b3l6f-FF differ" 1>&2
- (diff -c 9Pbh.O $srcdir/n+6b3l6f-FF) 2> /dev/null
- errors=`expr $errors + 1`;;
- 2) $echo "Test 9Pbh may have failed." 1>&2
- $echo The command "cmp 9Pbh.O $srcdir/n+6b3l6f-FF" failed. 1>&2
- errors=`expr $errors + 1`;;
- esac
-fi
-test -s 9Pbh.E || rm -f 9Pbh.E
-$xx --date-format="-- Date/Time --" -h x -n.3 +6 -b --columns=3 -l 6 -f $srcdir/tFFn > 9Pbh.C.O 2> 9Pbh.C.E
-code=$?
-if test $code != 0; then
- $echo "Test 9Pbh.C failed: $xx return code $code differs from expected value 0" 1>&2
- errors=`expr $errors + 1`
-else
- cmp 9Pbh.C.O $srcdir/n+6b3l6f-FF > /dev/null 2>&1
- case $? in
- 0) if test "$VERBOSE"; then $echo "passed 9Pbh.C"; fi;;
- 1) $echo "Test 9Pbh.C failed: files 9Pbh.C.O and $srcdir/n+6b3l6f-FF differ" 1>&2
- (diff -c 9Pbh.C.O $srcdir/n+6b3l6f-FF) 2> /dev/null
- errors=`expr $errors + 1`;;
- 2) $echo "Test 9Pbh.C may have failed." 1>&2
- $echo The command "cmp 9Pbh.C.O $srcdir/n+6b3l6f-FF" failed. 1>&2
- errors=`expr $errors + 1`;;
- esac
-fi
-test -s 9Pbh.C.E || rm -f 9Pbh.C.E
-$xx --date-format="-- Date/Time --" -h x -n.3 +6 -b -3 -l 6 -f $srcdir/tFnFt > 9Pbi.O 2> 9Pbi.E
-code=$?
-if test $code != 0; then
- $echo "Test 9Pbi failed: $xx return code $code differs from expected value 0" 1>&2
- errors=`expr $errors + 1`
-else
- cmp 9Pbi.O $srcdir/n+6b3l6f-FF > /dev/null 2>&1
- case $? in
- 0) if test "$VERBOSE"; then $echo "passed 9Pbi"; fi;;
- 1) $echo "Test 9Pbi failed: files 9Pbi.O and $srcdir/n+6b3l6f-FF differ" 1>&2
- (diff -c 9Pbi.O $srcdir/n+6b3l6f-FF) 2> /dev/null
- errors=`expr $errors + 1`;;
- 2) $echo "Test 9Pbi may have failed." 1>&2
- $echo The command "cmp 9Pbi.O $srcdir/n+6b3l6f-FF" failed. 1>&2
- errors=`expr $errors + 1`;;
- esac
-fi
-test -s 9Pbi.E || rm -f 9Pbi.E
-$xx --date-format="-- Date/Time --" -h x -n.3 +6 -b --columns=3 -l 6 -f $srcdir/tFnFt > 9Pbi.C.O 2> 9Pbi.C.E
-code=$?
-if test $code != 0; then
- $echo "Test 9Pbi.C failed: $xx return code $code differs from expected value 0" 1>&2
- errors=`expr $errors + 1`
-else
- cmp 9Pbi.C.O $srcdir/n+6b3l6f-FF > /dev/null 2>&1
- case $? in
- 0) if test "$VERBOSE"; then $echo "passed 9Pbi.C"; fi;;
- 1) $echo "Test 9Pbi.C failed: files 9Pbi.C.O and $srcdir/n+6b3l6f-FF differ" 1>&2
- (diff -c 9Pbi.C.O $srcdir/n+6b3l6f-FF) 2> /dev/null
- errors=`expr $errors + 1`;;
- 2) $echo "Test 9Pbi.C may have failed." 1>&2
- $echo The command "cmp 9Pbi.C.O $srcdir/n+6b3l6f-FF" failed. 1>&2
- errors=`expr $errors + 1`;;
- esac
-fi
-test -s 9Pbi.C.E || rm -f 9Pbi.C.E
-$xx --date-format="-- Date/Time --" -h x -n.3 +6 -b -3 -l 6 -f $srcdir/tFFt > 9Pbj.O 2> 9Pbj.E
-code=$?
-if test $code != 0; then
- $echo "Test 9Pbj failed: $xx return code $code differs from expected value 0" 1>&2
- errors=`expr $errors + 1`
-else
- cmp 9Pbj.O $srcdir/n+6b3l6f-FF > /dev/null 2>&1
- case $? in
- 0) if test "$VERBOSE"; then $echo "passed 9Pbj"; fi;;
- 1) $echo "Test 9Pbj failed: files 9Pbj.O and $srcdir/n+6b3l6f-FF differ" 1>&2
- (diff -c 9Pbj.O $srcdir/n+6b3l6f-FF) 2> /dev/null
- errors=`expr $errors + 1`;;
- 2) $echo "Test 9Pbj may have failed." 1>&2
- $echo The command "cmp 9Pbj.O $srcdir/n+6b3l6f-FF" failed. 1>&2
- errors=`expr $errors + 1`;;
- esac
-fi
-test -s 9Pbj.E || rm -f 9Pbj.E
-$xx --date-format="-- Date/Time --" -h x -n.3 +6 -b --columns=3 -l 6 -f $srcdir/tFFt > 9Pbj.C.O 2> 9Pbj.C.E
-code=$?
-if test $code != 0; then
- $echo "Test 9Pbj.C failed: $xx return code $code differs from expected value 0" 1>&2
- errors=`expr $errors + 1`
-else
- cmp 9Pbj.C.O $srcdir/n+6b3l6f-FF > /dev/null 2>&1
- case $? in
- 0) if test "$VERBOSE"; then $echo "passed 9Pbj.C"; fi;;
- 1) $echo "Test 9Pbj.C failed: files 9Pbj.C.O and $srcdir/n+6b3l6f-FF differ" 1>&2
- (diff -c 9Pbj.C.O $srcdir/n+6b3l6f-FF) 2> /dev/null
- errors=`expr $errors + 1`;;
- 2) $echo "Test 9Pbj.C may have failed." 1>&2
- $echo The command "cmp 9Pbj.C.O $srcdir/n+6b3l6f-FF" failed. 1>&2
- errors=`expr $errors + 1`;;
- esac
-fi
-test -s 9Pbj.C.E || rm -f 9Pbj.C.E
-$xx --date-format="-- Date/Time --" -h x -n.3 +5:8 -b -3 -l 10 -f $srcdir/FnFn > 9Pbk.O 2> 9Pbk.E
-code=$?
-if test $code != 0; then
- $echo "Test 9Pbk failed: $xx return code $code differs from expected value 0" 1>&2
- errors=`expr $errors + 1`
-else
- cmp 9Pbk.O $srcdir/n+5-8b3l10f-FF > /dev/null 2>&1
- case $? in
- 0) if test "$VERBOSE"; then $echo "passed 9Pbk"; fi;;
- 1) $echo "Test 9Pbk failed: files 9Pbk.O and $srcdir/n+5-8b3l10f-FF differ" 1>&2
- (diff -c 9Pbk.O $srcdir/n+5-8b3l10f-FF) 2> /dev/null
- errors=`expr $errors + 1`;;
- 2) $echo "Test 9Pbk may have failed." 1>&2
- $echo The command "cmp 9Pbk.O $srcdir/n+5-8b3l10f-FF" failed. 1>&2
- errors=`expr $errors + 1`;;
- esac
-fi
-test -s 9Pbk.E || rm -f 9Pbk.E
-$xx --date-format="-- Date/Time --" -h x -n.3 +5:8 -b --columns=3 -l 10 -f $srcdir/FnFn > 9Pbk.C.O 2> 9Pbk.C.E
-code=$?
-if test $code != 0; then
- $echo "Test 9Pbk.C failed: $xx return code $code differs from expected value 0" 1>&2
- errors=`expr $errors + 1`
-else
- cmp 9Pbk.C.O $srcdir/n+5-8b3l10f-FF > /dev/null 2>&1
- case $? in
- 0) if test "$VERBOSE"; then $echo "passed 9Pbk.C"; fi;;
- 1) $echo "Test 9Pbk.C failed: files 9Pbk.C.O and $srcdir/n+5-8b3l10f-FF differ" 1>&2
- (diff -c 9Pbk.C.O $srcdir/n+5-8b3l10f-FF) 2> /dev/null
- errors=`expr $errors + 1`;;
- 2) $echo "Test 9Pbk.C may have failed." 1>&2
- $echo The command "cmp 9Pbk.C.O $srcdir/n+5-8b3l10f-FF" failed. 1>&2
- errors=`expr $errors + 1`;;
- esac
-fi
-test -s 9Pbk.C.E || rm -f 9Pbk.C.E
-$xx --date-format="-- Date/Time --" -h x -n.3 +3 -m -l 13 -f $srcdir/tFFt-bl $srcdir/FnFn > 9Pma.O 2> 9Pma.E
-code=$?
-if test $code != 0; then
- $echo "Test 9Pma failed: $xx return code $code differs from expected value 0" 1>&2
- errors=`expr $errors + 1`
-else
- cmp 9Pma.O $srcdir/n+3ml13f-bl-FF > /dev/null 2>&1
- case $? in
- 0) if test "$VERBOSE"; then $echo "passed 9Pma"; fi;;
- 1) $echo "Test 9Pma failed: files 9Pma.O and $srcdir/n+3ml13f-bl-FF differ" 1>&2
- (diff -c 9Pma.O $srcdir/n+3ml13f-bl-FF) 2> /dev/null
- errors=`expr $errors + 1`;;
- 2) $echo "Test 9Pma may have failed." 1>&2
- $echo The command "cmp 9Pma.O $srcdir/n+3ml13f-bl-FF" failed. 1>&2
- errors=`expr $errors + 1`;;
- esac
-fi
-test -s 9Pma.E || rm -f 9Pma.E
-$xx --date-format="-- Date/Time --" -h x -n.3 +3 -m -l 17 -f $srcdir/tFFt-bl $srcdir/tn > 9Pmb.O 2> 9Pmb.E
-code=$?
-if test $code != 0; then
- $echo "Test 9Pmb failed: $xx return code $code differs from expected value 0" 1>&2
- errors=`expr $errors + 1`
-else
- cmp 9Pmb.O $srcdir/n+3ml17f-bl-tn > /dev/null 2>&1
- case $? in
- 0) if test "$VERBOSE"; then $echo "passed 9Pmb"; fi;;
- 1) $echo "Test 9Pmb failed: files 9Pmb.O and $srcdir/n+3ml17f-bl-tn differ" 1>&2
- (diff -c 9Pmb.O $srcdir/n+3ml17f-bl-tn) 2> /dev/null
- errors=`expr $errors + 1`;;
- 2) $echo "Test 9Pmb may have failed." 1>&2
- $echo The command "cmp 9Pmb.O $srcdir/n+3ml17f-bl-tn" failed. 1>&2
- errors=`expr $errors + 1`;;
- esac
-fi
-test -s 9Pmb.E || rm -f 9Pmb.E
-$xx --date-format="-- Date/Time --" -h x -n.3 +3 -m -l 17 -f $srcdir/tn $srcdir/tFFt-bl > 9Pmc.O 2> 9Pmc.E
-code=$?
-if test $code != 0; then
- $echo "Test 9Pmc failed: $xx return code $code differs from expected value 0" 1>&2
- errors=`expr $errors + 1`
-else
- cmp 9Pmc.O $srcdir/n+3ml17f-tn-bl > /dev/null 2>&1
- case $? in
- 0) if test "$VERBOSE"; then $echo "passed 9Pmc"; fi;;
- 1) $echo "Test 9Pmc failed: files 9Pmc.O and $srcdir/n+3ml17f-tn-bl differ" 1>&2
- (diff -c 9Pmc.O $srcdir/n+3ml17f-tn-bl) 2> /dev/null
- errors=`expr $errors + 1`;;
- 2) $echo "Test 9Pmc may have failed." 1>&2
- $echo The command "cmp 9Pmc.O $srcdir/n+3ml17f-tn-bl" failed. 1>&2
- errors=`expr $errors + 1`;;
- esac
-fi
-test -s 9Pmc.E || rm -f 9Pmc.E
-$xx --date-format="-- Date/Time --" -h x -W 72 -J -l17 -f $srcdir/tFFt-ll > 10wa.O 2> 10wa.E
-code=$?
-if test $code != 0; then
- $echo "Test 10wa failed: $xx return code $code differs from expected value 0" 1>&2
- errors=`expr $errors + 1`
-else
- cmp 10wa.O $srcdir/W72Jl17f-ll > /dev/null 2>&1
- case $? in
- 0) if test "$VERBOSE"; then $echo "passed 10wa"; fi;;
- 1) $echo "Test 10wa failed: files 10wa.O and $srcdir/W72Jl17f-ll differ" 1>&2
- (diff -c 10wa.O $srcdir/W72Jl17f-ll) 2> /dev/null
- errors=`expr $errors + 1`;;
- 2) $echo "Test 10wa may have failed." 1>&2
- $echo The command "cmp 10wa.O $srcdir/W72Jl17f-ll" failed. 1>&2
- errors=`expr $errors + 1`;;
- esac
-fi
-test -s 10wa.E || rm -f 10wa.E
-$xx --date-format="-- Date/Time --" -h x -w 72 -J -l17 -f $srcdir/tFFt-ll > 10wb.O 2> 10wb.E
-code=$?
-if test $code != 0; then
- $echo "Test 10wb failed: $xx return code $code differs from expected value 0" 1>&2
- errors=`expr $errors + 1`
-else
- cmp 10wb.O $srcdir/W72Jl17f-ll > /dev/null 2>&1
- case $? in
- 0) if test "$VERBOSE"; then $echo "passed 10wb"; fi;;
- 1) $echo "Test 10wb failed: files 10wb.O and $srcdir/W72Jl17f-ll differ" 1>&2
- (diff -c 10wb.O $srcdir/W72Jl17f-ll) 2> /dev/null
- errors=`expr $errors + 1`;;
- 2) $echo "Test 10wb may have failed." 1>&2
- $echo The command "cmp 10wb.O $srcdir/W72Jl17f-ll" failed. 1>&2
- errors=`expr $errors + 1`;;
- esac
-fi
-test -s 10wb.E || rm -f 10wb.E
-$xx --date-format="-- Date/Time --" -h x -W 72 -l17 -f $srcdir/tFFt-ll > 10wc.O 2> 10wc.E
-code=$?
-if test $code != 0; then
- $echo "Test 10wc failed: $xx return code $code differs from expected value 0" 1>&2
- errors=`expr $errors + 1`
-else
- cmp 10wc.O $srcdir/W-72l17f-ll > /dev/null 2>&1
- case $? in
- 0) if test "$VERBOSE"; then $echo "passed 10wc"; fi;;
- 1) $echo "Test 10wc failed: files 10wc.O and $srcdir/W-72l17f-ll differ" 1>&2
- (diff -c 10wc.O $srcdir/W-72l17f-ll) 2> /dev/null
- errors=`expr $errors + 1`;;
- 2) $echo "Test 10wc may have failed." 1>&2
- $echo The command "cmp 10wc.O $srcdir/W-72l17f-ll" failed. 1>&2
- errors=`expr $errors + 1`;;
- esac
-fi
-test -s 10wc.E || rm -f 10wc.E
-$xx --date-format="-- Date/Time --" -h x -w 72 -l17 -f $srcdir/tFFt-ll > 10wd.O 2> 10wd.E
-code=$?
-if test $code != 0; then
- $echo "Test 10wd failed: $xx return code $code differs from expected value 0" 1>&2
- errors=`expr $errors + 1`
-else
- cmp 10wd.O $srcdir/w72l17f-ll > /dev/null 2>&1
- case $? in
- 0) if test "$VERBOSE"; then $echo "passed 10wd"; fi;;
- 1) $echo "Test 10wd failed: files 10wd.O and $srcdir/w72l17f-ll differ" 1>&2
- (diff -c 10wd.O $srcdir/w72l17f-ll) 2> /dev/null
- errors=`expr $errors + 1`;;
- 2) $echo "Test 10wd may have failed." 1>&2
- $echo The command "cmp 10wd.O $srcdir/w72l17f-ll" failed. 1>&2
- errors=`expr $errors + 1`;;
- esac
-fi
-test -s 10wd.E || rm -f 10wd.E
-$xx --date-format="-- Date/Time --" -h x -W 28 -l17 -f $srcdir/tFFt-ll > 10we.O 2> 10we.E
-code=$?
-if test $code != 0; then
- $echo "Test 10we failed: $xx return code $code differs from expected value 0" 1>&2
- errors=`expr $errors + 1`
-else
- cmp 10we.O $srcdir/W28l17f-ll > /dev/null 2>&1
- case $? in
- 0) if test "$VERBOSE"; then $echo "passed 10we"; fi;;
- 1) $echo "Test 10we failed: files 10we.O and $srcdir/W28l17f-ll differ" 1>&2
- (diff -c 10we.O $srcdir/W28l17f-ll) 2> /dev/null
- errors=`expr $errors + 1`;;
- 2) $echo "Test 10we may have failed." 1>&2
- $echo The command "cmp 10we.O $srcdir/W28l17f-ll" failed. 1>&2
- errors=`expr $errors + 1`;;
- esac
-fi
-test -s 10we.E || rm -f 10we.E
-$xx --date-format="-- Date/Time --" -h x -W 27 -l17 -f $srcdir/tFFt-ll > 10wf.O 2> 10wf.E
-code=$?
-if test $code != 0; then
- $echo "Test 10wf failed: $xx return code $code differs from expected value 0" 1>&2
- errors=`expr $errors + 1`
-else
- cmp 10wf.O $srcdir/W27l17f-ll > /dev/null 2>&1
- case $? in
- 0) if test "$VERBOSE"; then $echo "passed 10wf"; fi;;
- 1) $echo "Test 10wf failed: files 10wf.O and $srcdir/W27l17f-ll differ" 1>&2
- (diff -c 10wf.O $srcdir/W27l17f-ll) 2> /dev/null
- errors=`expr $errors + 1`;;
- 2) $echo "Test 10wf may have failed." 1>&2
- $echo The command "cmp 10wf.O $srcdir/W27l17f-ll" failed. 1>&2
- errors=`expr $errors + 1`;;
- esac
-fi
-test -s 10wf.E || rm -f 10wf.E
-$xx --date-format="-- Date/Time --" -h x -W 26 -l17 -f $srcdir/tFFt-ll > 10wg.O 2> 10wg.E
-code=$?
-if test $code != 0; then
- $echo "Test 10wg failed: $xx return code $code differs from expected value 0" 1>&2
- errors=`expr $errors + 1`
-else
- cmp 10wg.O $srcdir/W26l17f-ll > /dev/null 2>&1
- case $? in
- 0) if test "$VERBOSE"; then $echo "passed 10wg"; fi;;
- 1) $echo "Test 10wg failed: files 10wg.O and $srcdir/W26l17f-ll differ" 1>&2
- (diff -c 10wg.O $srcdir/W26l17f-ll) 2> /dev/null
- errors=`expr $errors + 1`;;
- 2) $echo "Test 10wg may have failed." 1>&2
- $echo The command "cmp 10wg.O $srcdir/W26l17f-ll" failed. 1>&2
- errors=`expr $errors + 1`;;
- esac
-fi
-test -s 10wg.E || rm -f 10wg.E
-$xx --date-format="-- Date/Time --" -h x -W 20 -l17 -f $srcdir/tFFt-ll > 10wh.O 2> 10wh.E
-code=$?
-if test $code != 0; then
- $echo "Test 10wh failed: $xx return code $code differs from expected value 0" 1>&2
- errors=`expr $errors + 1`
-else
- cmp 10wh.O $srcdir/W20l17f-ll > /dev/null 2>&1
- case $? in
- 0) if test "$VERBOSE"; then $echo "passed 10wh"; fi;;
- 1) $echo "Test 10wh failed: files 10wh.O and $srcdir/W20l17f-ll differ" 1>&2
- (diff -c 10wh.O $srcdir/W20l17f-ll) 2> /dev/null
- errors=`expr $errors + 1`;;
- 2) $echo "Test 10wh may have failed." 1>&2
- $echo The command "cmp 10wh.O $srcdir/W20l17f-ll" failed. 1>&2
- errors=`expr $errors + 1`;;
- esac
-fi
-test -s 10wh.E || rm -f 10wh.E
-$xx --date-format="-- Date/Time --" -h x -m -l 17 -f $srcdir/tFFt-lm $srcdir/loli > 10ma.O 2> 10ma.E
-code=$?
-if test $code != 0; then
- $echo "Test 10ma failed: $xx return code $code differs from expected value 0" 1>&2
- errors=`expr $errors + 1`
-else
- cmp 10ma.O $srcdir/ml17f-lm-lo > /dev/null 2>&1
- case $? in
- 0) if test "$VERBOSE"; then $echo "passed 10ma"; fi;;
- 1) $echo "Test 10ma failed: files 10ma.O and $srcdir/ml17f-lm-lo differ" 1>&2
- (diff -c 10ma.O $srcdir/ml17f-lm-lo) 2> /dev/null
- errors=`expr $errors + 1`;;
- 2) $echo "Test 10ma may have failed." 1>&2
- $echo The command "cmp 10ma.O $srcdir/ml17f-lm-lo" failed. 1>&2
- errors=`expr $errors + 1`;;
- esac
-fi
-test -s 10ma.E || rm -f 10ma.E
-$xx --date-format="-- Date/Time --" -h x -W 35 -m -l 17 -f $srcdir/tFFt-lm $srcdir/loli > 10mb.O 2> 10mb.E
-code=$?
-if test $code != 0; then
- $echo "Test 10mb failed: $xx return code $code differs from expected value 0" 1>&2
- errors=`expr $errors + 1`
-else
- cmp 10mb.O $srcdir/W35ml17f-lm-lo > /dev/null 2>&1
- case $? in
- 0) if test "$VERBOSE"; then $echo "passed 10mb"; fi;;
- 1) $echo "Test 10mb failed: files 10mb.O and $srcdir/W35ml17f-lm-lo differ" 1>&2
- (diff -c 10mb.O $srcdir/W35ml17f-lm-lo) 2> /dev/null
- errors=`expr $errors + 1`;;
- 2) $echo "Test 10mb may have failed." 1>&2
- $echo The command "cmp 10mb.O $srcdir/W35ml17f-lm-lo" failed. 1>&2
- errors=`expr $errors + 1`;;
- esac
-fi
-test -s 10mb.E || rm -f 10mb.E
-$xx --date-format="-- Date/Time --" -h x -w 35 -m -l 17 -f $srcdir/tFFt-lm $srcdir/loli > 10mc.O 2> 10mc.E
-code=$?
-if test $code != 0; then
- $echo "Test 10mc failed: $xx return code $code differs from expected value 0" 1>&2
- errors=`expr $errors + 1`
-else
- cmp 10mc.O $srcdir/W35ml17f-lm-lo > /dev/null 2>&1
- case $? in
- 0) if test "$VERBOSE"; then $echo "passed 10mc"; fi;;
- 1) $echo "Test 10mc failed: files 10mc.O and $srcdir/W35ml17f-lm-lo differ" 1>&2
- (diff -c 10mc.O $srcdir/W35ml17f-lm-lo) 2> /dev/null
- errors=`expr $errors + 1`;;
- 2) $echo "Test 10mc may have failed." 1>&2
- $echo The command "cmp 10mc.O $srcdir/W35ml17f-lm-lo" failed. 1>&2
- errors=`expr $errors + 1`;;
- esac
-fi
-test -s 10mc.E || rm -f 10mc.E
-$xx --date-format="-- Date/Time --" -h x -J -m -l 17 -f $srcdir/tFFt-lm $srcdir/loli > 10md.O 2> 10md.E
-code=$?
-if test $code != 0; then
- $echo "Test 10md failed: $xx return code $code differs from expected value 0" 1>&2
- errors=`expr $errors + 1`
-else
- cmp 10md.O $srcdir/Jml17f-lm-lo > /dev/null 2>&1
- case $? in
- 0) if test "$VERBOSE"; then $echo "passed 10md"; fi;;
- 1) $echo "Test 10md failed: files 10md.O and $srcdir/Jml17f-lm-lo differ" 1>&2
- (diff -c 10md.O $srcdir/Jml17f-lm-lo) 2> /dev/null
- errors=`expr $errors + 1`;;
- 2) $echo "Test 10md may have failed." 1>&2
- $echo The command "cmp 10md.O $srcdir/Jml17f-lm-lo" failed. 1>&2
- errors=`expr $errors + 1`;;
- esac
-fi
-test -s 10md.E || rm -f 10md.E
-$xx --date-format="-- Date/Time --" -h x -W 35 -J -m -l 17 -f $srcdir/tFFt-lm $srcdir/loli > 10me.O 2> 10me.E
-code=$?
-if test $code != 0; then
- $echo "Test 10me failed: $xx return code $code differs from expected value 0" 1>&2
- errors=`expr $errors + 1`
-else
- cmp 10me.O $srcdir/W35Jml17f-lmlo > /dev/null 2>&1
- case $? in
- 0) if test "$VERBOSE"; then $echo "passed 10me"; fi;;
- 1) $echo "Test 10me failed: files 10me.O and $srcdir/W35Jml17f-lmlo differ" 1>&2
- (diff -c 10me.O $srcdir/W35Jml17f-lmlo) 2> /dev/null
- errors=`expr $errors + 1`;;
- 2) $echo "Test 10me may have failed." 1>&2
- $echo The command "cmp 10me.O $srcdir/W35Jml17f-lmlo" failed. 1>&2
- errors=`expr $errors + 1`;;
- esac
-fi
-test -s 10me.E || rm -f 10me.E
-$xx --date-format="-- Date/Time --" -h x -w 35 -J -m -l 17 -f $srcdir/tFFt-lm $srcdir/loli > 10mf.O 2> 10mf.E
-code=$?
-if test $code != 0; then
- $echo "Test 10mf failed: $xx return code $code differs from expected value 0" 1>&2
- errors=`expr $errors + 1`
-else
- cmp 10mf.O $srcdir/W35Jml17f-lmlo > /dev/null 2>&1
- case $? in
- 0) if test "$VERBOSE"; then $echo "passed 10mf"; fi;;
- 1) $echo "Test 10mf failed: files 10mf.O and $srcdir/W35Jml17f-lmlo differ" 1>&2
- (diff -c 10mf.O $srcdir/W35Jml17f-lmlo) 2> /dev/null
- errors=`expr $errors + 1`;;
- 2) $echo "Test 10mf may have failed." 1>&2
- $echo The command "cmp 10mf.O $srcdir/W35Jml17f-lmlo" failed. 1>&2
- errors=`expr $errors + 1`;;
- esac
-fi
-test -s 10mf.E || rm -f 10mf.E
-$xx --date-format="-- Date/Time --" -h x -n.3 -J -m -l 17 -f $srcdir/tFFt-lm $srcdir/tFFt-lm $srcdir/loli > 10mg.O 2> 10mg.E
-code=$?
-if test $code != 0; then
- $echo "Test 10mg failed: $xx return code $code differs from expected value 0" 1>&2
- errors=`expr $errors + 1`
-else
- cmp 10mg.O $srcdir/nJml17f-lmlmlo > /dev/null 2>&1
- case $? in
- 0) if test "$VERBOSE"; then $echo "passed 10mg"; fi;;
- 1) $echo "Test 10mg failed: files 10mg.O and $srcdir/nJml17f-lmlmlo differ" 1>&2
- (diff -c 10mg.O $srcdir/nJml17f-lmlmlo) 2> /dev/null
- errors=`expr $errors + 1`;;
- 2) $echo "Test 10mg may have failed." 1>&2
- $echo The command "cmp 10mg.O $srcdir/nJml17f-lmlmlo" failed. 1>&2
- errors=`expr $errors + 1`;;
- esac
-fi
-test -s 10mg.E || rm -f 10mg.E
-$xx --date-format="-- Date/Time --" -h x -n.3 -J -m -l 17 -f $srcdir/tFFt-lm $srcdir/loli $srcdir/tFFt-lm > 10mh.O 2> 10mh.E
-code=$?
-if test $code != 0; then
- $echo "Test 10mh failed: $xx return code $code differs from expected value 0" 1>&2
- errors=`expr $errors + 1`
-else
- cmp 10mh.O $srcdir/nJml17f-lmlolm > /dev/null 2>&1
- case $? in
- 0) if test "$VERBOSE"; then $echo "passed 10mh"; fi;;
- 1) $echo "Test 10mh failed: files 10mh.O and $srcdir/nJml17f-lmlolm differ" 1>&2
- (diff -c 10mh.O $srcdir/nJml17f-lmlolm) 2> /dev/null
- errors=`expr $errors + 1`;;
- 2) $echo "Test 10mh may have failed." 1>&2
- $echo The command "cmp 10mh.O $srcdir/nJml17f-lmlolm" failed. 1>&2
- errors=`expr $errors + 1`;;
- esac
-fi
-test -s 10mh.E || rm -f 10mh.E
-$xx --date-format="-- Date/Time --" -h x -a -3 -l 17 -f $srcdir/tFFt-lm > 10aa.O 2> 10aa.E
-code=$?
-if test $code != 0; then
- $echo "Test 10aa failed: $xx return code $code differs from expected value 0" 1>&2
- errors=`expr $errors + 1`
-else
- cmp 10aa.O $srcdir/a3l17f-lm > /dev/null 2>&1
- case $? in
- 0) if test "$VERBOSE"; then $echo "passed 10aa"; fi;;
- 1) $echo "Test 10aa failed: files 10aa.O and $srcdir/a3l17f-lm differ" 1>&2
- (diff -c 10aa.O $srcdir/a3l17f-lm) 2> /dev/null
- errors=`expr $errors + 1`;;
- 2) $echo "Test 10aa may have failed." 1>&2
- $echo The command "cmp 10aa.O $srcdir/a3l17f-lm" failed. 1>&2
- errors=`expr $errors + 1`;;
- esac
-fi
-test -s 10aa.E || rm -f 10aa.E
-$xx --date-format="-- Date/Time --" -h x -a --columns=3 -l 17 -f $srcdir/tFFt-lm > 10aa.C.O 2> 10aa.C.E
-code=$?
-if test $code != 0; then
- $echo "Test 10aa.C failed: $xx return code $code differs from expected value 0" 1>&2
- errors=`expr $errors + 1`
-else
- cmp 10aa.C.O $srcdir/a3l17f-lm > /dev/null 2>&1
- case $? in
- 0) if test "$VERBOSE"; then $echo "passed 10aa.C"; fi;;
- 1) $echo "Test 10aa.C failed: files 10aa.C.O and $srcdir/a3l17f-lm differ" 1>&2
- (diff -c 10aa.C.O $srcdir/a3l17f-lm) 2> /dev/null
- errors=`expr $errors + 1`;;
- 2) $echo "Test 10aa.C may have failed." 1>&2
- $echo The command "cmp 10aa.C.O $srcdir/a3l17f-lm" failed. 1>&2
- errors=`expr $errors + 1`;;
- esac
-fi
-test -s 10aa.C.E || rm -f 10aa.C.E
-$xx --date-format="-- Date/Time --" -h x -W 35 -a -3 -l 17 -f $srcdir/tFFt-lm > 10ab.O 2> 10ab.E
-code=$?
-if test $code != 0; then
- $echo "Test 10ab failed: $xx return code $code differs from expected value 0" 1>&2
- errors=`expr $errors + 1`
-else
- cmp 10ab.O $srcdir/W35a3l17f-lm > /dev/null 2>&1
- case $? in
- 0) if test "$VERBOSE"; then $echo "passed 10ab"; fi;;
- 1) $echo "Test 10ab failed: files 10ab.O and $srcdir/W35a3l17f-lm differ" 1>&2
- (diff -c 10ab.O $srcdir/W35a3l17f-lm) 2> /dev/null
- errors=`expr $errors + 1`;;
- 2) $echo "Test 10ab may have failed." 1>&2
- $echo The command "cmp 10ab.O $srcdir/W35a3l17f-lm" failed. 1>&2
- errors=`expr $errors + 1`;;
- esac
-fi
-test -s 10ab.E || rm -f 10ab.E
-$xx --date-format="-- Date/Time --" -h x -W 35 -a --columns=3 -l 17 -f $srcdir/tFFt-lm > 10ab.C.O 2> 10ab.C.E
-code=$?
-if test $code != 0; then
- $echo "Test 10ab.C failed: $xx return code $code differs from expected value 0" 1>&2
- errors=`expr $errors + 1`
-else
- cmp 10ab.C.O $srcdir/W35a3l17f-lm > /dev/null 2>&1
- case $? in
- 0) if test "$VERBOSE"; then $echo "passed 10ab.C"; fi;;
- 1) $echo "Test 10ab.C failed: files 10ab.C.O and $srcdir/W35a3l17f-lm differ" 1>&2
- (diff -c 10ab.C.O $srcdir/W35a3l17f-lm) 2> /dev/null
- errors=`expr $errors + 1`;;
- 2) $echo "Test 10ab.C may have failed." 1>&2
- $echo The command "cmp 10ab.C.O $srcdir/W35a3l17f-lm" failed. 1>&2
- errors=`expr $errors + 1`;;
- esac
-fi
-test -s 10ab.C.E || rm -f 10ab.C.E
-$xx --date-format="-- Date/Time --" -h x -J -a -3 -l 17 -f $srcdir/tFFt-lm > 10ac.O 2> 10ac.E
-code=$?
-if test $code != 0; then
- $echo "Test 10ac failed: $xx return code $code differs from expected value 0" 1>&2
- errors=`expr $errors + 1`
-else
- cmp 10ac.O $srcdir/Ja3l17f-lm > /dev/null 2>&1
- case $? in
- 0) if test "$VERBOSE"; then $echo "passed 10ac"; fi;;
- 1) $echo "Test 10ac failed: files 10ac.O and $srcdir/Ja3l17f-lm differ" 1>&2
- (diff -c 10ac.O $srcdir/Ja3l17f-lm) 2> /dev/null
- errors=`expr $errors + 1`;;
- 2) $echo "Test 10ac may have failed." 1>&2
- $echo The command "cmp 10ac.O $srcdir/Ja3l17f-lm" failed. 1>&2
- errors=`expr $errors + 1`;;
- esac
-fi
-test -s 10ac.E || rm -f 10ac.E
-$xx --date-format="-- Date/Time --" -h x -J -a --columns=3 -l 17 -f $srcdir/tFFt-lm > 10ac.C.O 2> 10ac.C.E
-code=$?
-if test $code != 0; then
- $echo "Test 10ac.C failed: $xx return code $code differs from expected value 0" 1>&2
- errors=`expr $errors + 1`
-else
- cmp 10ac.C.O $srcdir/Ja3l17f-lm > /dev/null 2>&1
- case $? in
- 0) if test "$VERBOSE"; then $echo "passed 10ac.C"; fi;;
- 1) $echo "Test 10ac.C failed: files 10ac.C.O and $srcdir/Ja3l17f-lm differ" 1>&2
- (diff -c 10ac.C.O $srcdir/Ja3l17f-lm) 2> /dev/null
- errors=`expr $errors + 1`;;
- 2) $echo "Test 10ac.C may have failed." 1>&2
- $echo The command "cmp 10ac.C.O $srcdir/Ja3l17f-lm" failed. 1>&2
- errors=`expr $errors + 1`;;
- esac
-fi
-test -s 10ac.C.E || rm -f 10ac.C.E
-$xx --date-format="-- Date/Time --" -h x -W 35 -J -a -3 -l 17 -f $srcdir/tFFt-lm > 10ad.O 2> 10ad.E
-code=$?
-if test $code != 0; then
- $echo "Test 10ad failed: $xx return code $code differs from expected value 0" 1>&2
- errors=`expr $errors + 1`
-else
- cmp 10ad.O $srcdir/W35Ja3l17f-lm > /dev/null 2>&1
- case $? in
- 0) if test "$VERBOSE"; then $echo "passed 10ad"; fi;;
- 1) $echo "Test 10ad failed: files 10ad.O and $srcdir/W35Ja3l17f-lm differ" 1>&2
- (diff -c 10ad.O $srcdir/W35Ja3l17f-lm) 2> /dev/null
- errors=`expr $errors + 1`;;
- 2) $echo "Test 10ad may have failed." 1>&2
- $echo The command "cmp 10ad.O $srcdir/W35Ja3l17f-lm" failed. 1>&2
- errors=`expr $errors + 1`;;
- esac
-fi
-test -s 10ad.E || rm -f 10ad.E
-$xx --date-format="-- Date/Time --" -h x -W 35 -J -a --columns=3 -l 17 -f $srcdir/tFFt-lm > 10ad.C.O 2> 10ad.C.E
-code=$?
-if test $code != 0; then
- $echo "Test 10ad.C failed: $xx return code $code differs from expected value 0" 1>&2
- errors=`expr $errors + 1`
-else
- cmp 10ad.C.O $srcdir/W35Ja3l17f-lm > /dev/null 2>&1
- case $? in
- 0) if test "$VERBOSE"; then $echo "passed 10ad.C"; fi;;
- 1) $echo "Test 10ad.C failed: files 10ad.C.O and $srcdir/W35Ja3l17f-lm differ" 1>&2
- (diff -c 10ad.C.O $srcdir/W35Ja3l17f-lm) 2> /dev/null
- errors=`expr $errors + 1`;;
- 2) $echo "Test 10ad.C may have failed." 1>&2
- $echo The command "cmp 10ad.C.O $srcdir/W35Ja3l17f-lm" failed. 1>&2
- errors=`expr $errors + 1`;;
- esac
-fi
-test -s 10ad.C.E || rm -f 10ad.C.E
-$xx --date-format="-- Date/Time --" -h x -b -3 -l 17 -f $srcdir/tFFt-lm > 10ba.O 2> 10ba.E
-code=$?
-if test $code != 0; then
- $echo "Test 10ba failed: $xx return code $code differs from expected value 0" 1>&2
- errors=`expr $errors + 1`
-else
- cmp 10ba.O $srcdir/b3l17f-lm > /dev/null 2>&1
- case $? in
- 0) if test "$VERBOSE"; then $echo "passed 10ba"; fi;;
- 1) $echo "Test 10ba failed: files 10ba.O and $srcdir/b3l17f-lm differ" 1>&2
- (diff -c 10ba.O $srcdir/b3l17f-lm) 2> /dev/null
- errors=`expr $errors + 1`;;
- 2) $echo "Test 10ba may have failed." 1>&2
- $echo The command "cmp 10ba.O $srcdir/b3l17f-lm" failed. 1>&2
- errors=`expr $errors + 1`;;
- esac
-fi
-test -s 10ba.E || rm -f 10ba.E
-$xx --date-format="-- Date/Time --" -h x -b --columns=3 -l 17 -f $srcdir/tFFt-lm > 10ba.C.O 2> 10ba.C.E
-code=$?
-if test $code != 0; then
- $echo "Test 10ba.C failed: $xx return code $code differs from expected value 0" 1>&2
- errors=`expr $errors + 1`
-else
- cmp 10ba.C.O $srcdir/b3l17f-lm > /dev/null 2>&1
- case $? in
- 0) if test "$VERBOSE"; then $echo "passed 10ba.C"; fi;;
- 1) $echo "Test 10ba.C failed: files 10ba.C.O and $srcdir/b3l17f-lm differ" 1>&2
- (diff -c 10ba.C.O $srcdir/b3l17f-lm) 2> /dev/null
- errors=`expr $errors + 1`;;
- 2) $echo "Test 10ba.C may have failed." 1>&2
- $echo The command "cmp 10ba.C.O $srcdir/b3l17f-lm" failed. 1>&2
- errors=`expr $errors + 1`;;
- esac
-fi
-test -s 10ba.C.E || rm -f 10ba.C.E
-$xx --date-format="-- Date/Time --" -h x -W 35 -b -3 -l 17 -f $srcdir/tFFt-lm > 10bb.O 2> 10bb.E
-code=$?
-if test $code != 0; then
- $echo "Test 10bb failed: $xx return code $code differs from expected value 0" 1>&2
- errors=`expr $errors + 1`
-else
- cmp 10bb.O $srcdir/W35b3l17f-lm > /dev/null 2>&1
- case $? in
- 0) if test "$VERBOSE"; then $echo "passed 10bb"; fi;;
- 1) $echo "Test 10bb failed: files 10bb.O and $srcdir/W35b3l17f-lm differ" 1>&2
- (diff -c 10bb.O $srcdir/W35b3l17f-lm) 2> /dev/null
- errors=`expr $errors + 1`;;
- 2) $echo "Test 10bb may have failed." 1>&2
- $echo The command "cmp 10bb.O $srcdir/W35b3l17f-lm" failed. 1>&2
- errors=`expr $errors + 1`;;
- esac
-fi
-test -s 10bb.E || rm -f 10bb.E
-$xx --date-format="-- Date/Time --" -h x -W 35 -b --columns=3 -l 17 -f $srcdir/tFFt-lm > 10bb.C.O 2> 10bb.C.E
-code=$?
-if test $code != 0; then
- $echo "Test 10bb.C failed: $xx return code $code differs from expected value 0" 1>&2
- errors=`expr $errors + 1`
-else
- cmp 10bb.C.O $srcdir/W35b3l17f-lm > /dev/null 2>&1
- case $? in
- 0) if test "$VERBOSE"; then $echo "passed 10bb.C"; fi;;
- 1) $echo "Test 10bb.C failed: files 10bb.C.O and $srcdir/W35b3l17f-lm differ" 1>&2
- (diff -c 10bb.C.O $srcdir/W35b3l17f-lm) 2> /dev/null
- errors=`expr $errors + 1`;;
- 2) $echo "Test 10bb.C may have failed." 1>&2
- $echo The command "cmp 10bb.C.O $srcdir/W35b3l17f-lm" failed. 1>&2
- errors=`expr $errors + 1`;;
- esac
-fi
-test -s 10bb.C.E || rm -f 10bb.C.E
-$xx --date-format="-- Date/Time --" -h x -J -b -3 -l 17 -f $srcdir/tFFt-lm > 10bc.O 2> 10bc.E
-code=$?
-if test $code != 0; then
- $echo "Test 10bc failed: $xx return code $code differs from expected value 0" 1>&2
- errors=`expr $errors + 1`
-else
- cmp 10bc.O $srcdir/Jb3l17f-lm > /dev/null 2>&1
- case $? in
- 0) if test "$VERBOSE"; then $echo "passed 10bc"; fi;;
- 1) $echo "Test 10bc failed: files 10bc.O and $srcdir/Jb3l17f-lm differ" 1>&2
- (diff -c 10bc.O $srcdir/Jb3l17f-lm) 2> /dev/null
- errors=`expr $errors + 1`;;
- 2) $echo "Test 10bc may have failed." 1>&2
- $echo The command "cmp 10bc.O $srcdir/Jb3l17f-lm" failed. 1>&2
- errors=`expr $errors + 1`;;
- esac
-fi
-test -s 10bc.E || rm -f 10bc.E
-$xx --date-format="-- Date/Time --" -h x -J -b --columns=3 -l 17 -f $srcdir/tFFt-lm > 10bc.C.O 2> 10bc.C.E
-code=$?
-if test $code != 0; then
- $echo "Test 10bc.C failed: $xx return code $code differs from expected value 0" 1>&2
- errors=`expr $errors + 1`
-else
- cmp 10bc.C.O $srcdir/Jb3l17f-lm > /dev/null 2>&1
- case $? in
- 0) if test "$VERBOSE"; then $echo "passed 10bc.C"; fi;;
- 1) $echo "Test 10bc.C failed: files 10bc.C.O and $srcdir/Jb3l17f-lm differ" 1>&2
- (diff -c 10bc.C.O $srcdir/Jb3l17f-lm) 2> /dev/null
- errors=`expr $errors + 1`;;
- 2) $echo "Test 10bc.C may have failed." 1>&2
- $echo The command "cmp 10bc.C.O $srcdir/Jb3l17f-lm" failed. 1>&2
- errors=`expr $errors + 1`;;
- esac
-fi
-test -s 10bc.C.E || rm -f 10bc.C.E
-$xx --date-format="-- Date/Time --" -h x -W 35 -J -b -3 -l 17 -f $srcdir/tFFt-lm > 10bd.O 2> 10bd.E
-code=$?
-if test $code != 0; then
- $echo "Test 10bd failed: $xx return code $code differs from expected value 0" 1>&2
- errors=`expr $errors + 1`
-else
- cmp 10bd.O $srcdir/W35Jb3l17f-lm > /dev/null 2>&1
- case $? in
- 0) if test "$VERBOSE"; then $echo "passed 10bd"; fi;;
- 1) $echo "Test 10bd failed: files 10bd.O and $srcdir/W35Jb3l17f-lm differ" 1>&2
- (diff -c 10bd.O $srcdir/W35Jb3l17f-lm) 2> /dev/null
- errors=`expr $errors + 1`;;
- 2) $echo "Test 10bd may have failed." 1>&2
- $echo The command "cmp 10bd.O $srcdir/W35Jb3l17f-lm" failed. 1>&2
- errors=`expr $errors + 1`;;
- esac
-fi
-test -s 10bd.E || rm -f 10bd.E
-$xx --date-format="-- Date/Time --" -h x -W 35 -J -b --columns=3 -l 17 -f $srcdir/tFFt-lm > 10bd.C.O 2> 10bd.C.E
-code=$?
-if test $code != 0; then
- $echo "Test 10bd.C failed: $xx return code $code differs from expected value 0" 1>&2
- errors=`expr $errors + 1`
-else
- cmp 10bd.C.O $srcdir/W35Jb3l17f-lm > /dev/null 2>&1
- case $? in
- 0) if test "$VERBOSE"; then $echo "passed 10bd.C"; fi;;
- 1) $echo "Test 10bd.C failed: files 10bd.C.O and $srcdir/W35Jb3l17f-lm differ" 1>&2
- (diff -c 10bd.C.O $srcdir/W35Jb3l17f-lm) 2> /dev/null
- errors=`expr $errors + 1`;;
- 2) $echo "Test 10bd.C may have failed." 1>&2
- $echo The command "cmp 10bd.C.O $srcdir/W35Jb3l17f-lm" failed. 1>&2
- errors=`expr $errors + 1`;;
- esac
-fi
-test -s 10bd.C.E || rm -f 10bd.C.E
-$xx --date-format="-- Date/Time --" -h x -n.3 -S:--: -m -l 13 -f $srcdir/tFFt-bl $srcdir/FnFn > 11sa.O 2> 11sa.E
-code=$?
-if test $code != 0; then
- $echo "Test 11sa failed: $xx return code $code differs from expected value 0" 1>&2
- errors=`expr $errors + 1`
-else
- cmp 11sa.O $srcdir/nSml13-bl-FF > /dev/null 2>&1
- case $? in
- 0) if test "$VERBOSE"; then $echo "passed 11sa"; fi;;
- 1) $echo "Test 11sa failed: files 11sa.O and $srcdir/nSml13-bl-FF differ" 1>&2
- (diff -c 11sa.O $srcdir/nSml13-bl-FF) 2> /dev/null
- errors=`expr $errors + 1`;;
- 2) $echo "Test 11sa may have failed." 1>&2
- $echo The command "cmp 11sa.O $srcdir/nSml13-bl-FF" failed. 1>&2
- errors=`expr $errors + 1`;;
- esac
-fi
-test -s 11sa.E || rm -f 11sa.E
-$xx --date-format="-- Date/Time --" -h x -n.3 -S:--: -m -l 17 -f $srcdir/tFFt-bl $srcdir/FnFn > 11sb.O 2> 11sb.E
-code=$?
-if test $code != 0; then
- $echo "Test 11sb failed: $xx return code $code differs from expected value 0" 1>&2
- errors=`expr $errors + 1`
-else
- cmp 11sb.O $srcdir/nSml17-bl-FF > /dev/null 2>&1
- case $? in
- 0) if test "$VERBOSE"; then $echo "passed 11sb"; fi;;
- 1) $echo "Test 11sb failed: files 11sb.O and $srcdir/nSml17-bl-FF differ" 1>&2
- (diff -c 11sb.O $srcdir/nSml17-bl-FF) 2> /dev/null
- errors=`expr $errors + 1`;;
- 2) $echo "Test 11sb may have failed." 1>&2
- $echo The command "cmp 11sb.O $srcdir/nSml17-bl-FF" failed. 1>&2
- errors=`expr $errors + 1`;;
- esac
-fi
-test -s 11sb.E || rm -f 11sb.E
-$xx --date-format="-- Date/Time --" -h x -n.3 -S:--: -m -l 13 -f $srcdir/tn $srcdir/tn $srcdir/FnFn > 11se.O 2> 11se.E
-code=$?
-if test $code != 0; then
- $echo "Test 11se failed: $xx return code $code differs from expected value 0" 1>&2
- errors=`expr $errors + 1`
-else
- cmp 11se.O $srcdir/nSml13-t-t-FF > /dev/null 2>&1
- case $? in
- 0) if test "$VERBOSE"; then $echo "passed 11se"; fi;;
- 1) $echo "Test 11se failed: files 11se.O and $srcdir/nSml13-t-t-FF differ" 1>&2
- (diff -c 11se.O $srcdir/nSml13-t-t-FF) 2> /dev/null
- errors=`expr $errors + 1`;;
- 2) $echo "Test 11se may have failed." 1>&2
- $echo The command "cmp 11se.O $srcdir/nSml13-t-t-FF" failed. 1>&2
- errors=`expr $errors + 1`;;
- esac
-fi
-test -s 11se.E || rm -f 11se.E
-$xx --date-format="-- Date/Time --" -h x -n.3 -S:--: -m -l 17 -f $srcdir/tn $srcdir/tn $srcdir/FnFn > 11sf.O 2> 11sf.E
-code=$?
-if test $code != 0; then
- $echo "Test 11sf failed: $xx return code $code differs from expected value 0" 1>&2
- errors=`expr $errors + 1`
-else
- cmp 11sf.O $srcdir/nSml17-t-t-FF > /dev/null 2>&1
- case $? in
- 0) if test "$VERBOSE"; then $echo "passed 11sf"; fi;;
- 1) $echo "Test 11sf failed: files 11sf.O and $srcdir/nSml17-t-t-FF differ" 1>&2
- (diff -c 11sf.O $srcdir/nSml17-t-t-FF) 2> /dev/null
- errors=`expr $errors + 1`;;
- 2) $echo "Test 11sf may have failed." 1>&2
- $echo The command "cmp 11sf.O $srcdir/nSml17-t-t-FF" failed. 1>&2
- errors=`expr $errors + 1`;;
- esac
-fi
-test -s 11sf.E || rm -f 11sf.E
-$xx --date-format="-- Date/Time --" -h x -n.3 -S:--: -m -l 13 -f $srcdir/tn $srcdir/tn $srcdir/FnFn $srcdir/FnFn > 11sg.O 2> 11sg.E
-code=$?
-if test $code != 0; then
- $echo "Test 11sg failed: $xx return code $code differs from expected value 0" 1>&2
- errors=`expr $errors + 1`
-else
- cmp 11sg.O $srcdir/nSml13-t-tFFFF > /dev/null 2>&1
- case $? in
- 0) if test "$VERBOSE"; then $echo "passed 11sg"; fi;;
- 1) $echo "Test 11sg failed: files 11sg.O and $srcdir/nSml13-t-tFFFF differ" 1>&2
- (diff -c 11sg.O $srcdir/nSml13-t-tFFFF) 2> /dev/null
- errors=`expr $errors + 1`;;
- 2) $echo "Test 11sg may have failed." 1>&2
- $echo The command "cmp 11sg.O $srcdir/nSml13-t-tFFFF" failed. 1>&2
- errors=`expr $errors + 1`;;
- esac
-fi
-test -s 11sg.E || rm -f 11sg.E
-$xx --date-format="-- Date/Time --" -h x -n.3 -S:--: -m -l 17 -f $srcdir/tn $srcdir/tn $srcdir/FnFn $srcdir/FnFn > 11sh.O 2> 11sh.E
-code=$?
-if test $code != 0; then
- $echo "Test 11sh failed: $xx return code $code differs from expected value 0" 1>&2
- errors=`expr $errors + 1`
-else
- cmp 11sh.O $srcdir/nSml17-t-tFFFF > /dev/null 2>&1
- case $? in
- 0) if test "$VERBOSE"; then $echo "passed 11sh"; fi;;
- 1) $echo "Test 11sh failed: files 11sh.O and $srcdir/nSml17-t-tFFFF differ" 1>&2
- (diff -c 11sh.O $srcdir/nSml17-t-tFFFF) 2> /dev/null
- errors=`expr $errors + 1`;;
- 2) $echo "Test 11sh may have failed." 1>&2
- $echo The command "cmp 11sh.O $srcdir/nSml17-t-tFFFF" failed. 1>&2
- errors=`expr $errors + 1`;;
- esac
-fi
-test -s 11sh.E || rm -f 11sh.E
-$xx --date-format="-- Date/Time --" -h x -o3 -a -3 -l17 -f $srcdir/tn > 12aa.O 2> 12aa.E
-code=$?
-if test $code != 0; then
- $echo "Test 12aa failed: $xx return code $code differs from expected value 0" 1>&2
- errors=`expr $errors + 1`
-else
- cmp 12aa.O $srcdir/o3a3l17f-tn > /dev/null 2>&1
- case $? in
- 0) if test "$VERBOSE"; then $echo "passed 12aa"; fi;;
- 1) $echo "Test 12aa failed: files 12aa.O and $srcdir/o3a3l17f-tn differ" 1>&2
- (diff -c 12aa.O $srcdir/o3a3l17f-tn) 2> /dev/null
- errors=`expr $errors + 1`;;
- 2) $echo "Test 12aa may have failed." 1>&2
- $echo The command "cmp 12aa.O $srcdir/o3a3l17f-tn" failed. 1>&2
- errors=`expr $errors + 1`;;
- esac
-fi
-test -s 12aa.E || rm -f 12aa.E
-$xx --date-format="-- Date/Time --" -h x -o3 -a --columns=3 -l17 -f $srcdir/tn > 12aa.C.O 2> 12aa.C.E
-code=$?
-if test $code != 0; then
- $echo "Test 12aa.C failed: $xx return code $code differs from expected value 0" 1>&2
- errors=`expr $errors + 1`
-else
- cmp 12aa.C.O $srcdir/o3a3l17f-tn > /dev/null 2>&1
- case $? in
- 0) if test "$VERBOSE"; then $echo "passed 12aa.C"; fi;;
- 1) $echo "Test 12aa.C failed: files 12aa.C.O and $srcdir/o3a3l17f-tn differ" 1>&2
- (diff -c 12aa.C.O $srcdir/o3a3l17f-tn) 2> /dev/null
- errors=`expr $errors + 1`;;
- 2) $echo "Test 12aa.C may have failed." 1>&2
- $echo The command "cmp 12aa.C.O $srcdir/o3a3l17f-tn" failed. 1>&2
- errors=`expr $errors + 1`;;
- esac
-fi
-test -s 12aa.C.E || rm -f 12aa.C.E
-$xx --date-format="-- Date/Time --" -h x -o3 -a -3 -S:--: -l17 -f $srcdir/tn > 12ab.O 2> 12ab.E
-code=$?
-if test $code != 0; then
- $echo "Test 12ab failed: $xx return code $code differs from expected value 0" 1>&2
- errors=`expr $errors + 1`
-else
- cmp 12ab.O $srcdir/o3a3Sl17f-tn > /dev/null 2>&1
- case $? in
- 0) if test "$VERBOSE"; then $echo "passed 12ab"; fi;;
- 1) $echo "Test 12ab failed: files 12ab.O and $srcdir/o3a3Sl17f-tn differ" 1>&2
- (diff -c 12ab.O $srcdir/o3a3Sl17f-tn) 2> /dev/null
- errors=`expr $errors + 1`;;
- 2) $echo "Test 12ab may have failed." 1>&2
- $echo The command "cmp 12ab.O $srcdir/o3a3Sl17f-tn" failed. 1>&2
- errors=`expr $errors + 1`;;
- esac
-fi
-test -s 12ab.E || rm -f 12ab.E
-$xx --date-format="-- Date/Time --" -h x -o3 -a --columns=3 -S:--: -l17 -f $srcdir/tn > 12ab.C.O 2> 12ab.C.E
-code=$?
-if test $code != 0; then
- $echo "Test 12ab.C failed: $xx return code $code differs from expected value 0" 1>&2
- errors=`expr $errors + 1`
-else
- cmp 12ab.C.O $srcdir/o3a3Sl17f-tn > /dev/null 2>&1
- case $? in
- 0) if test "$VERBOSE"; then $echo "passed 12ab.C"; fi;;
- 1) $echo "Test 12ab.C failed: files 12ab.C.O and $srcdir/o3a3Sl17f-tn differ" 1>&2
- (diff -c 12ab.C.O $srcdir/o3a3Sl17f-tn) 2> /dev/null
- errors=`expr $errors + 1`;;
- 2) $echo "Test 12ab.C may have failed." 1>&2
- $echo The command "cmp 12ab.C.O $srcdir/o3a3Sl17f-tn" failed. 1>&2
- errors=`expr $errors + 1`;;
- esac
-fi
-test -s 12ab.C.E || rm -f 12ab.C.E
-$xx --date-format="-- Date/Time --" -h x -o3 -a -3 -S:--: -n. -l17 -f $srcdir/tn > 12ac.O 2> 12ac.E
-code=$?
-if test $code != 0; then
- $echo "Test 12ac failed: $xx return code $code differs from expected value 0" 1>&2
- errors=`expr $errors + 1`
-else
- cmp 12ac.O $srcdir/o3a3Snl17f-tn > /dev/null 2>&1
- case $? in
- 0) if test "$VERBOSE"; then $echo "passed 12ac"; fi;;
- 1) $echo "Test 12ac failed: files 12ac.O and $srcdir/o3a3Snl17f-tn differ" 1>&2
- (diff -c 12ac.O $srcdir/o3a3Snl17f-tn) 2> /dev/null
- errors=`expr $errors + 1`;;
- 2) $echo "Test 12ac may have failed." 1>&2
- $echo The command "cmp 12ac.O $srcdir/o3a3Snl17f-tn" failed. 1>&2
- errors=`expr $errors + 1`;;
- esac
-fi
-test -s 12ac.E || rm -f 12ac.E
-$xx --date-format="-- Date/Time --" -h x -o3 -a --columns=3 -S:--: -n. -l17 -f $srcdir/tn > 12ac.C.O 2> 12ac.C.E
-code=$?
-if test $code != 0; then
- $echo "Test 12ac.C failed: $xx return code $code differs from expected value 0" 1>&2
- errors=`expr $errors + 1`
-else
- cmp 12ac.C.O $srcdir/o3a3Snl17f-tn > /dev/null 2>&1
- case $? in
- 0) if test "$VERBOSE"; then $echo "passed 12ac.C"; fi;;
- 1) $echo "Test 12ac.C failed: files 12ac.C.O and $srcdir/o3a3Snl17f-tn differ" 1>&2
- (diff -c 12ac.C.O $srcdir/o3a3Snl17f-tn) 2> /dev/null
- errors=`expr $errors + 1`;;
- 2) $echo "Test 12ac.C may have failed." 1>&2
- $echo The command "cmp 12ac.C.O $srcdir/o3a3Snl17f-tn" failed. 1>&2
- errors=`expr $errors + 1`;;
- esac
-fi
-test -s 12ac.C.E || rm -f 12ac.C.E
-$xx --date-format="-- Date/Time --" -h x -o3 -b -3 -l17 -f $srcdir/tn > 12ba.O 2> 12ba.E
-code=$?
-if test $code != 0; then
- $echo "Test 12ba failed: $xx return code $code differs from expected value 0" 1>&2
- errors=`expr $errors + 1`
-else
- cmp 12ba.O $srcdir/o3b3l17f-tn > /dev/null 2>&1
- case $? in
- 0) if test "$VERBOSE"; then $echo "passed 12ba"; fi;;
- 1) $echo "Test 12ba failed: files 12ba.O and $srcdir/o3b3l17f-tn differ" 1>&2
- (diff -c 12ba.O $srcdir/o3b3l17f-tn) 2> /dev/null
- errors=`expr $errors + 1`;;
- 2) $echo "Test 12ba may have failed." 1>&2
- $echo The command "cmp 12ba.O $srcdir/o3b3l17f-tn" failed. 1>&2
- errors=`expr $errors + 1`;;
- esac
-fi
-test -s 12ba.E || rm -f 12ba.E
-$xx --date-format="-- Date/Time --" -h x -o3 -b --columns=3 -l17 -f $srcdir/tn > 12ba.C.O 2> 12ba.C.E
-code=$?
-if test $code != 0; then
- $echo "Test 12ba.C failed: $xx return code $code differs from expected value 0" 1>&2
- errors=`expr $errors + 1`
-else
- cmp 12ba.C.O $srcdir/o3b3l17f-tn > /dev/null 2>&1
- case $? in
- 0) if test "$VERBOSE"; then $echo "passed 12ba.C"; fi;;
- 1) $echo "Test 12ba.C failed: files 12ba.C.O and $srcdir/o3b3l17f-tn differ" 1>&2
- (diff -c 12ba.C.O $srcdir/o3b3l17f-tn) 2> /dev/null
- errors=`expr $errors + 1`;;
- 2) $echo "Test 12ba.C may have failed." 1>&2
- $echo The command "cmp 12ba.C.O $srcdir/o3b3l17f-tn" failed. 1>&2
- errors=`expr $errors + 1`;;
- esac
-fi
-test -s 12ba.C.E || rm -f 12ba.C.E
-$xx --date-format="-- Date/Time --" -h x -o3 -b -3 -S:--: -l17 -f $srcdir/tn > 12bb.O 2> 12bb.E
-code=$?
-if test $code != 0; then
- $echo "Test 12bb failed: $xx return code $code differs from expected value 0" 1>&2
- errors=`expr $errors + 1`
-else
- cmp 12bb.O $srcdir/o3b3Sl17f-tn > /dev/null 2>&1
- case $? in
- 0) if test "$VERBOSE"; then $echo "passed 12bb"; fi;;
- 1) $echo "Test 12bb failed: files 12bb.O and $srcdir/o3b3Sl17f-tn differ" 1>&2
- (diff -c 12bb.O $srcdir/o3b3Sl17f-tn) 2> /dev/null
- errors=`expr $errors + 1`;;
- 2) $echo "Test 12bb may have failed." 1>&2
- $echo The command "cmp 12bb.O $srcdir/o3b3Sl17f-tn" failed. 1>&2
- errors=`expr $errors + 1`;;
- esac
-fi
-test -s 12bb.E || rm -f 12bb.E
-$xx --date-format="-- Date/Time --" -h x -o3 -b --columns=3 -S:--: -l17 -f $srcdir/tn > 12bb.C.O 2> 12bb.C.E
-code=$?
-if test $code != 0; then
- $echo "Test 12bb.C failed: $xx return code $code differs from expected value 0" 1>&2
- errors=`expr $errors + 1`
-else
- cmp 12bb.C.O $srcdir/o3b3Sl17f-tn > /dev/null 2>&1
- case $? in
- 0) if test "$VERBOSE"; then $echo "passed 12bb.C"; fi;;
- 1) $echo "Test 12bb.C failed: files 12bb.C.O and $srcdir/o3b3Sl17f-tn differ" 1>&2
- (diff -c 12bb.C.O $srcdir/o3b3Sl17f-tn) 2> /dev/null
- errors=`expr $errors + 1`;;
- 2) $echo "Test 12bb.C may have failed." 1>&2
- $echo The command "cmp 12bb.C.O $srcdir/o3b3Sl17f-tn" failed. 1>&2
- errors=`expr $errors + 1`;;
- esac
-fi
-test -s 12bb.C.E || rm -f 12bb.C.E
-$xx --date-format="-- Date/Time --" -h x -o3 -b -3 -S:--: -n. -l17 -f $srcdir/tn > 12bc.O 2> 12bc.E
-code=$?
-if test $code != 0; then
- $echo "Test 12bc failed: $xx return code $code differs from expected value 0" 1>&2
- errors=`expr $errors + 1`
-else
- cmp 12bc.O $srcdir/o3b3Snl17f-tn > /dev/null 2>&1
- case $? in
- 0) if test "$VERBOSE"; then $echo "passed 12bc"; fi;;
- 1) $echo "Test 12bc failed: files 12bc.O and $srcdir/o3b3Snl17f-tn differ" 1>&2
- (diff -c 12bc.O $srcdir/o3b3Snl17f-tn) 2> /dev/null
- errors=`expr $errors + 1`;;
- 2) $echo "Test 12bc may have failed." 1>&2
- $echo The command "cmp 12bc.O $srcdir/o3b3Snl17f-tn" failed. 1>&2
- errors=`expr $errors + 1`;;
- esac
-fi
-test -s 12bc.E || rm -f 12bc.E
-$xx --date-format="-- Date/Time --" -h x -o3 -b --columns=3 -S:--: -n. -l17 -f $srcdir/tn > 12bc.C.O 2> 12bc.C.E
-code=$?
-if test $code != 0; then
- $echo "Test 12bc.C failed: $xx return code $code differs from expected value 0" 1>&2
- errors=`expr $errors + 1`
-else
- cmp 12bc.C.O $srcdir/o3b3Snl17f-tn > /dev/null 2>&1
- case $? in
- 0) if test "$VERBOSE"; then $echo "passed 12bc.C"; fi;;
- 1) $echo "Test 12bc.C failed: files 12bc.C.O and $srcdir/o3b3Snl17f-tn differ" 1>&2
- (diff -c 12bc.C.O $srcdir/o3b3Snl17f-tn) 2> /dev/null
- errors=`expr $errors + 1`;;
- 2) $echo "Test 12bc.C may have failed." 1>&2
- $echo The command "cmp 12bc.C.O $srcdir/o3b3Snl17f-tn" failed. 1>&2
- errors=`expr $errors + 1`;;
- esac
-fi
-test -s 12bc.C.E || rm -f 12bc.C.E
-$xx --date-format="-- Date/Time --" -h x -o3 -m -l17 -f $srcdir/tFFt-bl $srcdir/tn > 12ma.O 2> 12ma.E
-code=$?
-if test $code != 0; then
- $echo "Test 12ma failed: $xx return code $code differs from expected value 0" 1>&2
- errors=`expr $errors + 1`
-else
- cmp 12ma.O $srcdir/o3ml17f-bl-tn > /dev/null 2>&1
- case $? in
- 0) if test "$VERBOSE"; then $echo "passed 12ma"; fi;;
- 1) $echo "Test 12ma failed: files 12ma.O and $srcdir/o3ml17f-bl-tn differ" 1>&2
- (diff -c 12ma.O $srcdir/o3ml17f-bl-tn) 2> /dev/null
- errors=`expr $errors + 1`;;
- 2) $echo "Test 12ma may have failed." 1>&2
- $echo The command "cmp 12ma.O $srcdir/o3ml17f-bl-tn" failed. 1>&2
- errors=`expr $errors + 1`;;
- esac
-fi
-test -s 12ma.E || rm -f 12ma.E
-$xx --date-format="-- Date/Time --" -h x -o3 -m -S:--: -l17 -f $srcdir/tFFt-bl $srcdir/tn > 12mb.O 2> 12mb.E
-code=$?
-if test $code != 0; then
- $echo "Test 12mb failed: $xx return code $code differs from expected value 0" 1>&2
- errors=`expr $errors + 1`
-else
- cmp 12mb.O $srcdir/o3mSl17f-bl-tn > /dev/null 2>&1
- case $? in
- 0) if test "$VERBOSE"; then $echo "passed 12mb"; fi;;
- 1) $echo "Test 12mb failed: files 12mb.O and $srcdir/o3mSl17f-bl-tn differ" 1>&2
- (diff -c 12mb.O $srcdir/o3mSl17f-bl-tn) 2> /dev/null
- errors=`expr $errors + 1`;;
- 2) $echo "Test 12mb may have failed." 1>&2
- $echo The command "cmp 12mb.O $srcdir/o3mSl17f-bl-tn" failed. 1>&2
- errors=`expr $errors + 1`;;
- esac
-fi
-test -s 12mb.E || rm -f 12mb.E
-$xx --date-format="-- Date/Time --" -h x -o3 -m -S:--: -n. -l17 -f $srcdir/tFFt-bl $srcdir/tn > 12mc.O 2> 12mc.E
-code=$?
-if test $code != 0; then
- $echo "Test 12mc failed: $xx return code $code differs from expected value 0" 1>&2
- errors=`expr $errors + 1`
-else
- cmp 12mc.O $srcdir/o3mSnl17fbltn > /dev/null 2>&1
- case $? in
- 0) if test "$VERBOSE"; then $echo "passed 12mc"; fi;;
- 1) $echo "Test 12mc failed: files 12mc.O and $srcdir/o3mSnl17fbltn differ" 1>&2
- (diff -c 12mc.O $srcdir/o3mSnl17fbltn) 2> /dev/null
- errors=`expr $errors + 1`;;
- 2) $echo "Test 12mc may have failed." 1>&2
- $echo The command "cmp 12mc.O $srcdir/o3mSnl17fbltn" failed. 1>&2
- errors=`expr $errors + 1`;;
- esac
-fi
-test -s 12mc.E || rm -f 12mc.E
-$xx --date-format="-- Date/Time --" -h x -o3 -J -m -l17 -f $srcdir/tFFt-lm $srcdir/loli > 12md.O 2> 12md.E
-code=$?
-if test $code != 0; then
- $echo "Test 12md failed: $xx return code $code differs from expected value 0" 1>&2
- errors=`expr $errors + 1`
-else
- cmp 12md.O $srcdir/o3Jml17f-lm-lo > /dev/null 2>&1
- case $? in
- 0) if test "$VERBOSE"; then $echo "passed 12md"; fi;;
- 1) $echo "Test 12md failed: files 12md.O and $srcdir/o3Jml17f-lm-lo differ" 1>&2
- (diff -c 12md.O $srcdir/o3Jml17f-lm-lo) 2> /dev/null
- errors=`expr $errors + 1`;;
- 2) $echo "Test 12md may have failed." 1>&2
- $echo The command "cmp 12md.O $srcdir/o3Jml17f-lm-lo" failed. 1>&2
- errors=`expr $errors + 1`;;
- esac
-fi
-test -s 12md.E || rm -f 12md.E
-$xx --date-format="-- Date/Time --" -h x -t -n -e8 $srcdir/t_tab > 13a.O 2> 13a.E
-code=$?
-if test $code != 0; then
- $echo "Test 13a failed: $xx return code $code differs from expected value 0" 1>&2
- errors=`expr $errors + 1`
-else
- cmp 13a.O $srcdir/tne8-t_tab > /dev/null 2>&1
- case $? in
- 0) if test "$VERBOSE"; then $echo "passed 13a"; fi;;
- 1) $echo "Test 13a failed: files 13a.O and $srcdir/tne8-t_tab differ" 1>&2
- (diff -c 13a.O $srcdir/tne8-t_tab) 2> /dev/null
- errors=`expr $errors + 1`;;
- 2) $echo "Test 13a may have failed." 1>&2
- $echo The command "cmp 13a.O $srcdir/tne8-t_tab" failed. 1>&2
- errors=`expr $errors + 1`;;
- esac
-fi
-test -s 13a.E || rm -f 13a.E
-$xx --date-format="-- Date/Time --" -h x -t -n -e8 -o3 $srcdir/t_tab > 13b.O 2> 13b.E
-code=$?
-if test $code != 0; then
- $echo "Test 13b failed: $xx return code $code differs from expected value 0" 1>&2
- errors=`expr $errors + 1`
-else
- cmp 13b.O $srcdir/tne8o3-t_tab > /dev/null 2>&1
- case $? in
- 0) if test "$VERBOSE"; then $echo "passed 13b"; fi;;
- 1) $echo "Test 13b failed: files 13b.O and $srcdir/tne8o3-t_tab differ" 1>&2
- (diff -c 13b.O $srcdir/tne8o3-t_tab) 2> /dev/null
- errors=`expr $errors + 1`;;
- 2) $echo "Test 13b may have failed." 1>&2
- $echo The command "cmp 13b.O $srcdir/tne8o3-t_tab" failed. 1>&2
- errors=`expr $errors + 1`;;
- esac
-fi
-test -s 13b.E || rm -f 13b.E
-$xx --date-format="-- Date/Time --" -h x -t -n -2 -e8 $srcdir/t_tab > 13ba.O 2> 13ba.E
-code=$?
-if test $code != 0; then
- $echo "Test 13ba failed: $xx return code $code differs from expected value 0" 1>&2
- errors=`expr $errors + 1`
-else
- cmp 13ba.O $srcdir/tn2e8-t_tab > /dev/null 2>&1
- case $? in
- 0) if test "$VERBOSE"; then $echo "passed 13ba"; fi;;
- 1) $echo "Test 13ba failed: files 13ba.O and $srcdir/tn2e8-t_tab differ" 1>&2
- (diff -c 13ba.O $srcdir/tn2e8-t_tab) 2> /dev/null
- errors=`expr $errors + 1`;;
- 2) $echo "Test 13ba may have failed." 1>&2
- $echo The command "cmp 13ba.O $srcdir/tn2e8-t_tab" failed. 1>&2
- errors=`expr $errors + 1`;;
- esac
-fi
-test -s 13ba.E || rm -f 13ba.E
-$xx --date-format="-- Date/Time --" -h x -t -n --columns=2 -e8 $srcdir/t_tab > 13ba.C.O 2> 13ba.C.E
-code=$?
-if test $code != 0; then
- $echo "Test 13ba.C failed: $xx return code $code differs from expected value 0" 1>&2
- errors=`expr $errors + 1`
-else
- cmp 13ba.C.O $srcdir/tn2e8-t_tab > /dev/null 2>&1
- case $? in
- 0) if test "$VERBOSE"; then $echo "passed 13ba.C"; fi;;
- 1) $echo "Test 13ba.C failed: files 13ba.C.O and $srcdir/tn2e8-t_tab differ" 1>&2
- (diff -c 13ba.C.O $srcdir/tn2e8-t_tab) 2> /dev/null
- errors=`expr $errors + 1`;;
- 2) $echo "Test 13ba.C may have failed." 1>&2
- $echo The command "cmp 13ba.C.O $srcdir/tn2e8-t_tab" failed. 1>&2
- errors=`expr $errors + 1`;;
- esac
-fi
-test -s 13ba.C.E || rm -f 13ba.C.E
-$xx --date-format="-- Date/Time --" -h x -t -n: -2 -e8 $srcdir/t_tab > 13bb.O 2> 13bb.E
-code=$?
-if test $code != 0; then
- $echo "Test 13bb failed: $xx return code $code differs from expected value 0" 1>&2
- errors=`expr $errors + 1`
-else
- cmp 13bb.O $srcdir/tn_2e8-t_tab > /dev/null 2>&1
- case $? in
- 0) if test "$VERBOSE"; then $echo "passed 13bb"; fi;;
- 1) $echo "Test 13bb failed: files 13bb.O and $srcdir/tn_2e8-t_tab differ" 1>&2
- (diff -c 13bb.O $srcdir/tn_2e8-t_tab) 2> /dev/null
- errors=`expr $errors + 1`;;
- 2) $echo "Test 13bb may have failed." 1>&2
- $echo The command "cmp 13bb.O $srcdir/tn_2e8-t_tab" failed. 1>&2
- errors=`expr $errors + 1`;;
- esac
-fi
-test -s 13bb.E || rm -f 13bb.E
-$xx --date-format="-- Date/Time --" -h x -t -n: --columns=2 -e8 $srcdir/t_tab > 13bb.C.O 2> 13bb.C.E
-code=$?
-if test $code != 0; then
- $echo "Test 13bb.C failed: $xx return code $code differs from expected value 0" 1>&2
- errors=`expr $errors + 1`
-else
- cmp 13bb.C.O $srcdir/tn_2e8-t_tab > /dev/null 2>&1
- case $? in
- 0) if test "$VERBOSE"; then $echo "passed 13bb.C"; fi;;
- 1) $echo "Test 13bb.C failed: files 13bb.C.O and $srcdir/tn_2e8-t_tab differ" 1>&2
- (diff -c 13bb.C.O $srcdir/tn_2e8-t_tab) 2> /dev/null
- errors=`expr $errors + 1`;;
- 2) $echo "Test 13bb.C may have failed." 1>&2
- $echo The command "cmp 13bb.C.O $srcdir/tn_2e8-t_tab" failed. 1>&2
- errors=`expr $errors + 1`;;
- esac
-fi
-test -s 13bb.C.E || rm -f 13bb.C.E
-$xx --date-format="-- Date/Time --" -h x -t -n: -2 -e8 -S---- $srcdir/t_tab > 13bc.O 2> 13bc.E
-code=$?
-if test $code != 0; then
- $echo "Test 13bc failed: $xx return code $code differs from expected value 0" 1>&2
- errors=`expr $errors + 1`
-else
- cmp 13bc.O $srcdir/tn_2e8S-t_tab > /dev/null 2>&1
- case $? in
- 0) if test "$VERBOSE"; then $echo "passed 13bc"; fi;;
- 1) $echo "Test 13bc failed: files 13bc.O and $srcdir/tn_2e8S-t_tab differ" 1>&2
- (diff -c 13bc.O $srcdir/tn_2e8S-t_tab) 2> /dev/null
- errors=`expr $errors + 1`;;
- 2) $echo "Test 13bc may have failed." 1>&2
- $echo The command "cmp 13bc.O $srcdir/tn_2e8S-t_tab" failed. 1>&2
- errors=`expr $errors + 1`;;
- esac
-fi
-test -s 13bc.E || rm -f 13bc.E
-$xx --date-format="-- Date/Time --" -h x -t -n: --columns=2 -e8 -S---- $srcdir/t_tab > 13bc.C.O 2> 13bc.C.E
-code=$?
-if test $code != 0; then
- $echo "Test 13bc.C failed: $xx return code $code differs from expected value 0" 1>&2
- errors=`expr $errors + 1`
-else
- cmp 13bc.C.O $srcdir/tn_2e8S-t_tab > /dev/null 2>&1
- case $? in
- 0) if test "$VERBOSE"; then $echo "passed 13bc.C"; fi;;
- 1) $echo "Test 13bc.C failed: files 13bc.C.O and $srcdir/tn_2e8S-t_tab differ" 1>&2
- (diff -c 13bc.C.O $srcdir/tn_2e8S-t_tab) 2> /dev/null
- errors=`expr $errors + 1`;;
- 2) $echo "Test 13bc.C may have failed." 1>&2
- $echo The command "cmp 13bc.C.O $srcdir/tn_2e8S-t_tab" failed. 1>&2
- errors=`expr $errors + 1`;;
- esac
-fi
-test -s 13bc.C.E || rm -f 13bc.C.E
-$xx --date-format="-- Date/Time --" -h x -t -n -2 -e8 -o3 $srcdir/t_tab > 13bd.O 2> 13bd.E
-code=$?
-if test $code != 0; then
- $echo "Test 13bd failed: $xx return code $code differs from expected value 0" 1>&2
- errors=`expr $errors + 1`
-else
- cmp 13bd.O $srcdir/tn2e8o3-t_tab > /dev/null 2>&1
- case $? in
- 0) if test "$VERBOSE"; then $echo "passed 13bd"; fi;;
- 1) $echo "Test 13bd failed: files 13bd.O and $srcdir/tn2e8o3-t_tab differ" 1>&2
- (diff -c 13bd.O $srcdir/tn2e8o3-t_tab) 2> /dev/null
- errors=`expr $errors + 1`;;
- 2) $echo "Test 13bd may have failed." 1>&2
- $echo The command "cmp 13bd.O $srcdir/tn2e8o3-t_tab" failed. 1>&2
- errors=`expr $errors + 1`;;
- esac
-fi
-test -s 13bd.E || rm -f 13bd.E
-$xx --date-format="-- Date/Time --" -h x -t -n --columns=2 -e8 -o3 $srcdir/t_tab > 13bd.C.O 2> 13bd.C.E
-code=$?
-if test $code != 0; then
- $echo "Test 13bd.C failed: $xx return code $code differs from expected value 0" 1>&2
- errors=`expr $errors + 1`
-else
- cmp 13bd.C.O $srcdir/tn2e8o3-t_tab > /dev/null 2>&1
- case $? in
- 0) if test "$VERBOSE"; then $echo "passed 13bd.C"; fi;;
- 1) $echo "Test 13bd.C failed: files 13bd.C.O and $srcdir/tn2e8o3-t_tab differ" 1>&2
- (diff -c 13bd.C.O $srcdir/tn2e8o3-t_tab) 2> /dev/null
- errors=`expr $errors + 1`;;
- 2) $echo "Test 13bd.C may have failed." 1>&2
- $echo The command "cmp 13bd.C.O $srcdir/tn2e8o3-t_tab" failed. 1>&2
- errors=`expr $errors + 1`;;
- esac
-fi
-test -s 13bd.C.E || rm -f 13bd.C.E
-$xx --date-format="-- Date/Time --" -h x -t -n -2 -e5 -o3 $srcdir/t_tab > 13be.O 2> 13be.E
-code=$?
-if test $code != 0; then
- $echo "Test 13be failed: $xx return code $code differs from expected value 0" 1>&2
- errors=`expr $errors + 1`
-else
- cmp 13be.O $srcdir/tn2e5o3-t_tab > /dev/null 2>&1
- case $? in
- 0) if test "$VERBOSE"; then $echo "passed 13be"; fi;;
- 1) $echo "Test 13be failed: files 13be.O and $srcdir/tn2e5o3-t_tab differ" 1>&2
- (diff -c 13be.O $srcdir/tn2e5o3-t_tab) 2> /dev/null
- errors=`expr $errors + 1`;;
- 2) $echo "Test 13be may have failed." 1>&2
- $echo The command "cmp 13be.O $srcdir/tn2e5o3-t_tab" failed. 1>&2
- errors=`expr $errors + 1`;;
- esac
-fi
-test -s 13be.E || rm -f 13be.E
-$xx --date-format="-- Date/Time --" -h x -t -n --columns=2 -e5 -o3 $srcdir/t_tab > 13be.C.O 2> 13be.C.E
-code=$?
-if test $code != 0; then
- $echo "Test 13be.C failed: $xx return code $code differs from expected value 0" 1>&2
- errors=`expr $errors + 1`
-else
- cmp 13be.C.O $srcdir/tn2e5o3-t_tab > /dev/null 2>&1
- case $? in
- 0) if test "$VERBOSE"; then $echo "passed 13be.C"; fi;;
- 1) $echo "Test 13be.C failed: files 13be.C.O and $srcdir/tn2e5o3-t_tab differ" 1>&2
- (diff -c 13be.C.O $srcdir/tn2e5o3-t_tab) 2> /dev/null
- errors=`expr $errors + 1`;;
- 2) $echo "Test 13be.C may have failed." 1>&2
- $echo The command "cmp 13be.C.O $srcdir/tn2e5o3-t_tab" failed. 1>&2
- errors=`expr $errors + 1`;;
- esac
-fi
-test -s 13be.C.E || rm -f 13be.C.E
-$xx --date-format="-- Date/Time --" -h x -t -n -2 -e:8 $srcdir/t_tab_ > 13bf.O 2> 13bf.E
-code=$?
-if test $code != 0; then
- $echo "Test 13bf failed: $xx return code $code differs from expected value 0" 1>&2
- errors=`expr $errors + 1`
-else
- cmp 13bf.O $srcdir/tn2e8-t_tab > /dev/null 2>&1
- case $? in
- 0) if test "$VERBOSE"; then $echo "passed 13bf"; fi;;
- 1) $echo "Test 13bf failed: files 13bf.O and $srcdir/tn2e8-t_tab differ" 1>&2
- (diff -c 13bf.O $srcdir/tn2e8-t_tab) 2> /dev/null
- errors=`expr $errors + 1`;;
- 2) $echo "Test 13bf may have failed." 1>&2
- $echo The command "cmp 13bf.O $srcdir/tn2e8-t_tab" failed. 1>&2
- errors=`expr $errors + 1`;;
- esac
-fi
-test -s 13bf.E || rm -f 13bf.E
-$xx --date-format="-- Date/Time --" -h x -t -n --columns=2 -e:8 $srcdir/t_tab_ > 13bf.C.O 2> 13bf.C.E
-code=$?
-if test $code != 0; then
- $echo "Test 13bf.C failed: $xx return code $code differs from expected value 0" 1>&2
- errors=`expr $errors + 1`
-else
- cmp 13bf.C.O $srcdir/tn2e8-t_tab > /dev/null 2>&1
- case $? in
- 0) if test "$VERBOSE"; then $echo "passed 13bf.C"; fi;;
- 1) $echo "Test 13bf.C failed: files 13bf.C.O and $srcdir/tn2e8-t_tab differ" 1>&2
- (diff -c 13bf.C.O $srcdir/tn2e8-t_tab) 2> /dev/null
- errors=`expr $errors + 1`;;
- 2) $echo "Test 13bf.C may have failed." 1>&2
- $echo The command "cmp 13bf.C.O $srcdir/tn2e8-t_tab" failed. 1>&2
- errors=`expr $errors + 1`;;
- esac
-fi
-test -s 13bf.C.E || rm -f 13bf.C.E
-$xx --date-format="-- Date/Time --" -h x -2 -f $srcdir/t_notab > 14a.O 2> 14a.E
-code=$?
-if test $code != 0; then
- $echo "Test 14a failed: $xx return code $code differs from expected value 0" 1>&2
- errors=`expr $errors + 1`
-else
- cmp 14a.O $srcdir/2f-t_notab > /dev/null 2>&1
- case $? in
- 0) if test "$VERBOSE"; then $echo "passed 14a"; fi;;
- 1) $echo "Test 14a failed: files 14a.O and $srcdir/2f-t_notab differ" 1>&2
- (diff -c 14a.O $srcdir/2f-t_notab) 2> /dev/null
- errors=`expr $errors + 1`;;
- 2) $echo "Test 14a may have failed." 1>&2
- $echo The command "cmp 14a.O $srcdir/2f-t_notab" failed. 1>&2
- errors=`expr $errors + 1`;;
- esac
-fi
-test -s 14a.E || rm -f 14a.E
-$xx --date-format="-- Date/Time --" -h x --columns=2 -f $srcdir/t_notab > 14a.C.O 2> 14a.C.E
-code=$?
-if test $code != 0; then
- $echo "Test 14a.C failed: $xx return code $code differs from expected value 0" 1>&2
- errors=`expr $errors + 1`
-else
- cmp 14a.C.O $srcdir/2f-t_notab > /dev/null 2>&1
- case $? in
- 0) if test "$VERBOSE"; then $echo "passed 14a.C"; fi;;
- 1) $echo "Test 14a.C failed: files 14a.C.O and $srcdir/2f-t_notab differ" 1>&2
- (diff -c 14a.C.O $srcdir/2f-t_notab) 2> /dev/null
- errors=`expr $errors + 1`;;
- 2) $echo "Test 14a.C may have failed." 1>&2
- $echo The command "cmp 14a.C.O $srcdir/2f-t_notab" failed. 1>&2
- errors=`expr $errors + 1`;;
- esac
-fi
-test -s 14a.C.E || rm -f 14a.C.E
-$xx --date-format="-- Date/Time --" -h x -2 -s -f $srcdir/t_notab > 14b.O 2> 14b.E
-code=$?
-if test $code != 0; then
- $echo "Test 14b failed: $xx return code $code differs from expected value 0" 1>&2
- errors=`expr $errors + 1`
-else
- cmp 14b.O $srcdir/2sf-t_notab > /dev/null 2>&1
- case $? in
- 0) if test "$VERBOSE"; then $echo "passed 14b"; fi;;
- 1) $echo "Test 14b failed: files 14b.O and $srcdir/2sf-t_notab differ" 1>&2
- (diff -c 14b.O $srcdir/2sf-t_notab) 2> /dev/null
- errors=`expr $errors + 1`;;
- 2) $echo "Test 14b may have failed." 1>&2
- $echo The command "cmp 14b.O $srcdir/2sf-t_notab" failed. 1>&2
- errors=`expr $errors + 1`;;
- esac
-fi
-test -s 14b.E || rm -f 14b.E
-$xx --date-format="-- Date/Time --" -h x --columns=2 -s -f $srcdir/t_notab > 14b.C.O 2> 14b.C.E
-code=$?
-if test $code != 0; then
- $echo "Test 14b.C failed: $xx return code $code differs from expected value 0" 1>&2
- errors=`expr $errors + 1`
-else
- cmp 14b.C.O $srcdir/2sf-t_notab > /dev/null 2>&1
- case $? in
- 0) if test "$VERBOSE"; then $echo "passed 14b.C"; fi;;
- 1) $echo "Test 14b.C failed: files 14b.C.O and $srcdir/2sf-t_notab differ" 1>&2
- (diff -c 14b.C.O $srcdir/2sf-t_notab) 2> /dev/null
- errors=`expr $errors + 1`;;
- 2) $echo "Test 14b.C may have failed." 1>&2
- $echo The command "cmp 14b.C.O $srcdir/2sf-t_notab" failed. 1>&2
- errors=`expr $errors + 1`;;
- esac
-fi
-test -s 14b.C.E || rm -f 14b.C.E
-$xx --date-format="-- Date/Time --" -h x -2 -s: -f $srcdir/t_notab > 14c.O 2> 14c.E
-code=$?
-if test $code != 0; then
- $echo "Test 14c failed: $xx return code $code differs from expected value 0" 1>&2
- errors=`expr $errors + 1`
-else
- cmp 14c.O $srcdir/2s_f-t_notab > /dev/null 2>&1
- case $? in
- 0) if test "$VERBOSE"; then $echo "passed 14c"; fi;;
- 1) $echo "Test 14c failed: files 14c.O and $srcdir/2s_f-t_notab differ" 1>&2
- (diff -c 14c.O $srcdir/2s_f-t_notab) 2> /dev/null
- errors=`expr $errors + 1`;;
- 2) $echo "Test 14c may have failed." 1>&2
- $echo The command "cmp 14c.O $srcdir/2s_f-t_notab" failed. 1>&2
- errors=`expr $errors + 1`;;
- esac
-fi
-test -s 14c.E || rm -f 14c.E
-$xx --date-format="-- Date/Time --" -h x --columns=2 -s: -f $srcdir/t_notab > 14c.C.O 2> 14c.C.E
-code=$?
-if test $code != 0; then
- $echo "Test 14c.C failed: $xx return code $code differs from expected value 0" 1>&2
- errors=`expr $errors + 1`
-else
- cmp 14c.C.O $srcdir/2s_f-t_notab > /dev/null 2>&1
- case $? in
- 0) if test "$VERBOSE"; then $echo "passed 14c.C"; fi;;
- 1) $echo "Test 14c.C failed: files 14c.C.O and $srcdir/2s_f-t_notab differ" 1>&2
- (diff -c 14c.C.O $srcdir/2s_f-t_notab) 2> /dev/null
- errors=`expr $errors + 1`;;
- 2) $echo "Test 14c.C may have failed." 1>&2
- $echo The command "cmp 14c.C.O $srcdir/2s_f-t_notab" failed. 1>&2
- errors=`expr $errors + 1`;;
- esac
-fi
-test -s 14c.C.E || rm -f 14c.C.E
-$xx --date-format="-- Date/Time --" -h x -2 -w60 -f $srcdir/t_notab > 14d.O 2> 14d.E
-code=$?
-if test $code != 0; then
- $echo "Test 14d failed: $xx return code $code differs from expected value 0" 1>&2
- errors=`expr $errors + 1`
-else
- cmp 14d.O $srcdir/2w60f-t_notab > /dev/null 2>&1
- case $? in
- 0) if test "$VERBOSE"; then $echo "passed 14d"; fi;;
- 1) $echo "Test 14d failed: files 14d.O and $srcdir/2w60f-t_notab differ" 1>&2
- (diff -c 14d.O $srcdir/2w60f-t_notab) 2> /dev/null
- errors=`expr $errors + 1`;;
- 2) $echo "Test 14d may have failed." 1>&2
- $echo The command "cmp 14d.O $srcdir/2w60f-t_notab" failed. 1>&2
- errors=`expr $errors + 1`;;
- esac
-fi
-test -s 14d.E || rm -f 14d.E
-$xx --date-format="-- Date/Time --" -h x --columns=2 -w60 -f $srcdir/t_notab > 14d.C.O 2> 14d.C.E
-code=$?
-if test $code != 0; then
- $echo "Test 14d.C failed: $xx return code $code differs from expected value 0" 1>&2
- errors=`expr $errors + 1`
-else
- cmp 14d.C.O $srcdir/2w60f-t_notab > /dev/null 2>&1
- case $? in
- 0) if test "$VERBOSE"; then $echo "passed 14d.C"; fi;;
- 1) $echo "Test 14d.C failed: files 14d.C.O and $srcdir/2w60f-t_notab differ" 1>&2
- (diff -c 14d.C.O $srcdir/2w60f-t_notab) 2> /dev/null
- errors=`expr $errors + 1`;;
- 2) $echo "Test 14d.C may have failed." 1>&2
- $echo The command "cmp 14d.C.O $srcdir/2w60f-t_notab" failed. 1>&2
- errors=`expr $errors + 1`;;
- esac
-fi
-test -s 14d.C.E || rm -f 14d.C.E
-$xx --date-format="-- Date/Time --" -h x -2 -s -w60 -f $srcdir/t_notab > 14e.O 2> 14e.E
-code=$?
-if test $code != 0; then
- $echo "Test 14e failed: $xx return code $code differs from expected value 0" 1>&2
- errors=`expr $errors + 1`
-else
- cmp 14e.O $srcdir/2sw60f-t_notab > /dev/null 2>&1
- case $? in
- 0) if test "$VERBOSE"; then $echo "passed 14e"; fi;;
- 1) $echo "Test 14e failed: files 14e.O and $srcdir/2sw60f-t_notab differ" 1>&2
- (diff -c 14e.O $srcdir/2sw60f-t_notab) 2> /dev/null
- errors=`expr $errors + 1`;;
- 2) $echo "Test 14e may have failed." 1>&2
- $echo The command "cmp 14e.O $srcdir/2sw60f-t_notab" failed. 1>&2
- errors=`expr $errors + 1`;;
- esac
-fi
-test -s 14e.E || rm -f 14e.E
-$xx --date-format="-- Date/Time --" -h x --columns=2 -s -w60 -f $srcdir/t_notab > 14e.C.O 2> 14e.C.E
-code=$?
-if test $code != 0; then
- $echo "Test 14e.C failed: $xx return code $code differs from expected value 0" 1>&2
- errors=`expr $errors + 1`
-else
- cmp 14e.C.O $srcdir/2sw60f-t_notab > /dev/null 2>&1
- case $? in
- 0) if test "$VERBOSE"; then $echo "passed 14e.C"; fi;;
- 1) $echo "Test 14e.C failed: files 14e.C.O and $srcdir/2sw60f-t_notab differ" 1>&2
- (diff -c 14e.C.O $srcdir/2sw60f-t_notab) 2> /dev/null
- errors=`expr $errors + 1`;;
- 2) $echo "Test 14e.C may have failed." 1>&2
- $echo The command "cmp 14e.C.O $srcdir/2sw60f-t_notab" failed. 1>&2
- errors=`expr $errors + 1`;;
- esac
-fi
-test -s 14e.C.E || rm -f 14e.C.E
-$xx --date-format="-- Date/Time --" -h x -2 -s: -w60 -f $srcdir/t_notab > 14f.O 2> 14f.E
-code=$?
-if test $code != 0; then
- $echo "Test 14f failed: $xx return code $code differs from expected value 0" 1>&2
- errors=`expr $errors + 1`
-else
- cmp 14f.O $srcdir/2s_w60f-t_nota > /dev/null 2>&1
- case $? in
- 0) if test "$VERBOSE"; then $echo "passed 14f"; fi;;
- 1) $echo "Test 14f failed: files 14f.O and $srcdir/2s_w60f-t_nota differ" 1>&2
- (diff -c 14f.O $srcdir/2s_w60f-t_nota) 2> /dev/null
- errors=`expr $errors + 1`;;
- 2) $echo "Test 14f may have failed." 1>&2
- $echo The command "cmp 14f.O $srcdir/2s_w60f-t_nota" failed. 1>&2
- errors=`expr $errors + 1`;;
- esac
-fi
-test -s 14f.E || rm -f 14f.E
-$xx --date-format="-- Date/Time --" -h x --columns=2 -s: -w60 -f $srcdir/t_notab > 14f.C.O 2> 14f.C.E
-code=$?
-if test $code != 0; then
- $echo "Test 14f.C failed: $xx return code $code differs from expected value 0" 1>&2
- errors=`expr $errors + 1`
-else
- cmp 14f.C.O $srcdir/2s_w60f-t_nota > /dev/null 2>&1
- case $? in
- 0) if test "$VERBOSE"; then $echo "passed 14f.C"; fi;;
- 1) $echo "Test 14f.C failed: files 14f.C.O and $srcdir/2s_w60f-t_nota differ" 1>&2
- (diff -c 14f.C.O $srcdir/2s_w60f-t_nota) 2> /dev/null
- errors=`expr $errors + 1`;;
- 2) $echo "Test 14f.C may have failed." 1>&2
- $echo The command "cmp 14f.C.O $srcdir/2s_w60f-t_nota" failed. 1>&2
- errors=`expr $errors + 1`;;
- esac
-fi
-test -s 14f.C.E || rm -f 14f.C.E
-$xx --date-format="-- Date/Time --" -h x -2 -S -f $srcdir/t_notab > 14g.O 2> 14g.E
-code=$?
-if test $code != 0; then
- $echo "Test 14g failed: $xx return code $code differs from expected value 0" 1>&2
- errors=`expr $errors + 1`
-else
- cmp 14g.O $srcdir/2-Sf-t_notab > /dev/null 2>&1
- case $? in
- 0) if test "$VERBOSE"; then $echo "passed 14g"; fi;;
- 1) $echo "Test 14g failed: files 14g.O and $srcdir/2-Sf-t_notab differ" 1>&2
- (diff -c 14g.O $srcdir/2-Sf-t_notab) 2> /dev/null
- errors=`expr $errors + 1`;;
- 2) $echo "Test 14g may have failed." 1>&2
- $echo The command "cmp 14g.O $srcdir/2-Sf-t_notab" failed. 1>&2
- errors=`expr $errors + 1`;;
- esac
-fi
-test -s 14g.E || rm -f 14g.E
-$xx --date-format="-- Date/Time --" -h x --columns=2 -S -f $srcdir/t_notab > 14g.C.O 2> 14g.C.E
-code=$?
-if test $code != 0; then
- $echo "Test 14g.C failed: $xx return code $code differs from expected value 0" 1>&2
- errors=`expr $errors + 1`
-else
- cmp 14g.C.O $srcdir/2-Sf-t_notab > /dev/null 2>&1
- case $? in
- 0) if test "$VERBOSE"; then $echo "passed 14g.C"; fi;;
- 1) $echo "Test 14g.C failed: files 14g.C.O and $srcdir/2-Sf-t_notab differ" 1>&2
- (diff -c 14g.C.O $srcdir/2-Sf-t_notab) 2> /dev/null
- errors=`expr $errors + 1`;;
- 2) $echo "Test 14g.C may have failed." 1>&2
- $echo The command "cmp 14g.C.O $srcdir/2-Sf-t_notab" failed. 1>&2
- errors=`expr $errors + 1`;;
- esac
-fi
-test -s 14g.C.E || rm -f 14g.C.E
-$xx --date-format="-- Date/Time --" -h x -2 -S" " -J -f $srcdir/t_notab > 14h.O 2> 14h.E
-code=$?
-if test $code != 0; then
- $echo "Test 14h failed: $xx return code $code differs from expected value 0" 1>&2
- errors=`expr $errors + 1`
-else
- cmp 14h.O $srcdir/2sf-t_notab > /dev/null 2>&1
- case $? in
- 0) if test "$VERBOSE"; then $echo "passed 14h"; fi;;
- 1) $echo "Test 14h failed: files 14h.O and $srcdir/2sf-t_notab differ" 1>&2
- (diff -c 14h.O $srcdir/2sf-t_notab) 2> /dev/null
- errors=`expr $errors + 1`;;
- 2) $echo "Test 14h may have failed." 1>&2
- $echo The command "cmp 14h.O $srcdir/2sf-t_notab" failed. 1>&2
- errors=`expr $errors + 1`;;
- esac
-fi
-test -s 14h.E || rm -f 14h.E
-$xx --date-format="-- Date/Time --" -h x --columns=2 -S" " -J -f $srcdir/t_notab > 14h.C.O 2> 14h.C.E
-code=$?
-if test $code != 0; then
- $echo "Test 14h.C failed: $xx return code $code differs from expected value 0" 1>&2
- errors=`expr $errors + 1`
-else
- cmp 14h.C.O $srcdir/2sf-t_notab > /dev/null 2>&1
- case $? in
- 0) if test "$VERBOSE"; then $echo "passed 14h.C"; fi;;
- 1) $echo "Test 14h.C failed: files 14h.C.O and $srcdir/2sf-t_notab differ" 1>&2
- (diff -c 14h.C.O $srcdir/2sf-t_notab) 2> /dev/null
- errors=`expr $errors + 1`;;
- 2) $echo "Test 14h.C may have failed." 1>&2
- $echo The command "cmp 14h.C.O $srcdir/2sf-t_notab" failed. 1>&2
- errors=`expr $errors + 1`;;
- esac
-fi
-test -s 14h.C.E || rm -f 14h.C.E
-$xx --date-format="-- Date/Time --" -h x -2 -S: -f $srcdir/t_notab > 14i.O 2> 14i.E
-code=$?
-if test $code != 0; then
- $echo "Test 14i failed: $xx return code $code differs from expected value 0" 1>&2
- errors=`expr $errors + 1`
-else
- cmp 14i.O $srcdir/2-S_f-t_notab > /dev/null 2>&1
- case $? in
- 0) if test "$VERBOSE"; then $echo "passed 14i"; fi;;
- 1) $echo "Test 14i failed: files 14i.O and $srcdir/2-S_f-t_notab differ" 1>&2
- (diff -c 14i.O $srcdir/2-S_f-t_notab) 2> /dev/null
- errors=`expr $errors + 1`;;
- 2) $echo "Test 14i may have failed." 1>&2
- $echo The command "cmp 14i.O $srcdir/2-S_f-t_notab" failed. 1>&2
- errors=`expr $errors + 1`;;
- esac
-fi
-test -s 14i.E || rm -f 14i.E
-$xx --date-format="-- Date/Time --" -h x --columns=2 -S: -f $srcdir/t_notab > 14i.C.O 2> 14i.C.E
-code=$?
-if test $code != 0; then
- $echo "Test 14i.C failed: $xx return code $code differs from expected value 0" 1>&2
- errors=`expr $errors + 1`
-else
- cmp 14i.C.O $srcdir/2-S_f-t_notab > /dev/null 2>&1
- case $? in
- 0) if test "$VERBOSE"; then $echo "passed 14i.C"; fi;;
- 1) $echo "Test 14i.C failed: files 14i.C.O and $srcdir/2-S_f-t_notab differ" 1>&2
- (diff -c 14i.C.O $srcdir/2-S_f-t_notab) 2> /dev/null
- errors=`expr $errors + 1`;;
- 2) $echo "Test 14i.C may have failed." 1>&2
- $echo The command "cmp 14i.C.O $srcdir/2-S_f-t_notab" failed. 1>&2
- errors=`expr $errors + 1`;;
- esac
-fi
-test -s 14i.C.E || rm -f 14i.C.E
-$xx --date-format="-- Date/Time --" -h x -2 -S: -J -f $srcdir/t_notab > 14j.O 2> 14j.E
-code=$?
-if test $code != 0; then
- $echo "Test 14j failed: $xx return code $code differs from expected value 0" 1>&2
- errors=`expr $errors + 1`
-else
- cmp 14j.O $srcdir/2s_f-t_notab > /dev/null 2>&1
- case $? in
- 0) if test "$VERBOSE"; then $echo "passed 14j"; fi;;
- 1) $echo "Test 14j failed: files 14j.O and $srcdir/2s_f-t_notab differ" 1>&2
- (diff -c 14j.O $srcdir/2s_f-t_notab) 2> /dev/null
- errors=`expr $errors + 1`;;
- 2) $echo "Test 14j may have failed." 1>&2
- $echo The command "cmp 14j.O $srcdir/2s_f-t_notab" failed. 1>&2
- errors=`expr $errors + 1`;;
- esac
-fi
-test -s 14j.E || rm -f 14j.E
-$xx --date-format="-- Date/Time --" -h x --columns=2 -S: -J -f $srcdir/t_notab > 14j.C.O 2> 14j.C.E
-code=$?
-if test $code != 0; then
- $echo "Test 14j.C failed: $xx return code $code differs from expected value 0" 1>&2
- errors=`expr $errors + 1`
-else
- cmp 14j.C.O $srcdir/2s_f-t_notab > /dev/null 2>&1
- case $? in
- 0) if test "$VERBOSE"; then $echo "passed 14j.C"; fi;;
- 1) $echo "Test 14j.C failed: files 14j.C.O and $srcdir/2s_f-t_notab differ" 1>&2
- (diff -c 14j.C.O $srcdir/2s_f-t_notab) 2> /dev/null
- errors=`expr $errors + 1`;;
- 2) $echo "Test 14j.C may have failed." 1>&2
- $echo The command "cmp 14j.C.O $srcdir/2s_f-t_notab" failed. 1>&2
- errors=`expr $errors + 1`;;
- esac
-fi
-test -s 14j.C.E || rm -f 14j.C.E
-$xx --date-format="-- Date/Time --" -h x -2 -W60 -f $srcdir/t_notab > 14k.O 2> 14k.E
-code=$?
-if test $code != 0; then
- $echo "Test 14k failed: $xx return code $code differs from expected value 0" 1>&2
- errors=`expr $errors + 1`
-else
- cmp 14k.O $srcdir/2w60f-t_notab > /dev/null 2>&1
- case $? in
- 0) if test "$VERBOSE"; then $echo "passed 14k"; fi;;
- 1) $echo "Test 14k failed: files 14k.O and $srcdir/2w60f-t_notab differ" 1>&2
- (diff -c 14k.O $srcdir/2w60f-t_notab) 2> /dev/null
- errors=`expr $errors + 1`;;
- 2) $echo "Test 14k may have failed." 1>&2
- $echo The command "cmp 14k.O $srcdir/2w60f-t_notab" failed. 1>&2
- errors=`expr $errors + 1`;;
- esac
-fi
-test -s 14k.E || rm -f 14k.E
-$xx --date-format="-- Date/Time --" -h x --columns=2 -W60 -f $srcdir/t_notab > 14k.C.O 2> 14k.C.E
-code=$?
-if test $code != 0; then
- $echo "Test 14k.C failed: $xx return code $code differs from expected value 0" 1>&2
- errors=`expr $errors + 1`
-else
- cmp 14k.C.O $srcdir/2w60f-t_notab > /dev/null 2>&1
- case $? in
- 0) if test "$VERBOSE"; then $echo "passed 14k.C"; fi;;
- 1) $echo "Test 14k.C failed: files 14k.C.O and $srcdir/2w60f-t_notab differ" 1>&2
- (diff -c 14k.C.O $srcdir/2w60f-t_notab) 2> /dev/null
- errors=`expr $errors + 1`;;
- 2) $echo "Test 14k.C may have failed." 1>&2
- $echo The command "cmp 14k.C.O $srcdir/2w60f-t_notab" failed. 1>&2
- errors=`expr $errors + 1`;;
- esac
-fi
-test -s 14k.C.E || rm -f 14k.C.E
-$xx --date-format="-- Date/Time --" -h x -2 -S -W60 -f $srcdir/t_notab > 14l.O 2> 14l.E
-code=$?
-if test $code != 0; then
- $echo "Test 14l failed: $xx return code $code differs from expected value 0" 1>&2
- errors=`expr $errors + 1`
-else
- cmp 14l.O $srcdir/2sw60f-t_notab > /dev/null 2>&1
- case $? in
- 0) if test "$VERBOSE"; then $echo "passed 14l"; fi;;
- 1) $echo "Test 14l failed: files 14l.O and $srcdir/2sw60f-t_notab differ" 1>&2
- (diff -c 14l.O $srcdir/2sw60f-t_notab) 2> /dev/null
- errors=`expr $errors + 1`;;
- 2) $echo "Test 14l may have failed." 1>&2
- $echo The command "cmp 14l.O $srcdir/2sw60f-t_notab" failed. 1>&2
- errors=`expr $errors + 1`;;
- esac
-fi
-test -s 14l.E || rm -f 14l.E
-$xx --date-format="-- Date/Time --" -h x --columns=2 -S -W60 -f $srcdir/t_notab > 14l.C.O 2> 14l.C.E
-code=$?
-if test $code != 0; then
- $echo "Test 14l.C failed: $xx return code $code differs from expected value 0" 1>&2
- errors=`expr $errors + 1`
-else
- cmp 14l.C.O $srcdir/2sw60f-t_notab > /dev/null 2>&1
- case $? in
- 0) if test "$VERBOSE"; then $echo "passed 14l.C"; fi;;
- 1) $echo "Test 14l.C failed: files 14l.C.O and $srcdir/2sw60f-t_notab differ" 1>&2
- (diff -c 14l.C.O $srcdir/2sw60f-t_notab) 2> /dev/null
- errors=`expr $errors + 1`;;
- 2) $echo "Test 14l.C may have failed." 1>&2
- $echo The command "cmp 14l.C.O $srcdir/2sw60f-t_notab" failed. 1>&2
- errors=`expr $errors + 1`;;
- esac
-fi
-test -s 14l.C.E || rm -f 14l.C.E
-$xx --date-format="-- Date/Time --" -h x -2 -S: -W60 -f $srcdir/t_notab > 14m.O 2> 14m.E
-code=$?
-if test $code != 0; then
- $echo "Test 14m failed: $xx return code $code differs from expected value 0" 1>&2
- errors=`expr $errors + 1`
-else
- cmp 14m.O $srcdir/2s_w60f-t_nota > /dev/null 2>&1
- case $? in
- 0) if test "$VERBOSE"; then $echo "passed 14m"; fi;;
- 1) $echo "Test 14m failed: files 14m.O and $srcdir/2s_w60f-t_nota differ" 1>&2
- (diff -c 14m.O $srcdir/2s_w60f-t_nota) 2> /dev/null
- errors=`expr $errors + 1`;;
- 2) $echo "Test 14m may have failed." 1>&2
- $echo The command "cmp 14m.O $srcdir/2s_w60f-t_nota" failed. 1>&2
- errors=`expr $errors + 1`;;
- esac
-fi
-test -s 14m.E || rm -f 14m.E
-$xx --date-format="-- Date/Time --" -h x --columns=2 -S: -W60 -f $srcdir/t_notab > 14m.C.O 2> 14m.C.E
-code=$?
-if test $code != 0; then
- $echo "Test 14m.C failed: $xx return code $code differs from expected value 0" 1>&2
- errors=`expr $errors + 1`
-else
- cmp 14m.C.O $srcdir/2s_w60f-t_nota > /dev/null 2>&1
- case $? in
- 0) if test "$VERBOSE"; then $echo "passed 14m.C"; fi;;
- 1) $echo "Test 14m.C failed: files 14m.C.O and $srcdir/2s_w60f-t_nota differ" 1>&2
- (diff -c 14m.C.O $srcdir/2s_w60f-t_nota) 2> /dev/null
- errors=`expr $errors + 1`;;
- 2) $echo "Test 14m.C may have failed." 1>&2
- $echo The command "cmp 14m.C.O $srcdir/2s_w60f-t_nota" failed. 1>&2
- errors=`expr $errors + 1`;;
- esac
-fi
-test -s 14m.C.E || rm -f 14m.C.E
-$xx --date-format="-- Date/Time --" -h x -tn -i5 -h "" $srcdir/i-opt-a.I > i-opt-a.O 2> i-opt-a.E
-code=$?
-if test $code != 0; then
- $echo "Test i-opt-a failed: $xx return code $code differs from expected value 0" 1>&2
- errors=`expr $errors + 1`
-else
- cmp i-opt-a.O $srcdir/i-opt-a.X > /dev/null 2>&1
- case $? in
- 0) if test "$VERBOSE"; then $echo "passed i-opt-a"; fi;;
- 1) $echo "Test i-opt-a failed: files i-opt-a.O and $srcdir/i-opt-a.X differ" 1>&2
- (diff -c i-opt-a.O $srcdir/i-opt-a.X) 2> /dev/null
- errors=`expr $errors + 1`;;
- 2) $echo "Test i-opt-a may have failed." 1>&2
- $echo The command "cmp i-opt-a.O $srcdir/i-opt-a.X" failed. 1>&2
- errors=`expr $errors + 1`;;
- esac
-fi
-test -s i-opt-a.E || rm -f i-opt-a.E
-$xx --date-format="-- Date/Time --" -h x -tn -i5 -o9 -h "" $srcdir/i-opt-b.I > i-opt-b.O 2> i-opt-b.E
-code=$?
-if test $code != 0; then
- $echo "Test i-opt-b failed: $xx return code $code differs from expected value 0" 1>&2
- errors=`expr $errors + 1`
-else
- cmp i-opt-b.O $srcdir/i-opt-b.X > /dev/null 2>&1
- case $? in
- 0) if test "$VERBOSE"; then $echo "passed i-opt-b"; fi;;
- 1) $echo "Test i-opt-b failed: files i-opt-b.O and $srcdir/i-opt-b.X differ" 1>&2
- (diff -c i-opt-b.O $srcdir/i-opt-b.X) 2> /dev/null
- errors=`expr $errors + 1`;;
- 2) $echo "Test i-opt-b may have failed." 1>&2
- $echo The command "cmp i-opt-b.O $srcdir/i-opt-b.X" failed. 1>&2
- errors=`expr $errors + 1`;;
- esac
-fi
-test -s i-opt-b.E || rm -f i-opt-b.E
-$xx --date-format="-- Date/Time --" -h x -tn2 -N98 $srcdir/ncut-a.I > ncut-a.O 2> ncut-a.E
-code=$?
-if test $code != 0; then
- $echo "Test ncut-a failed: $xx return code $code differs from expected value 0" 1>&2
- errors=`expr $errors + 1`
-else
- cmp ncut-a.O $srcdir/ncut-a.X > /dev/null 2>&1
- case $? in
- 0) if test "$VERBOSE"; then $echo "passed ncut-a"; fi;;
- 1) $echo "Test ncut-a failed: files ncut-a.O and $srcdir/ncut-a.X differ" 1>&2
- (diff -c ncut-a.O $srcdir/ncut-a.X) 2> /dev/null
- errors=`expr $errors + 1`;;
- 2) $echo "Test ncut-a may have failed." 1>&2
- $echo The command "cmp ncut-a.O $srcdir/ncut-a.X" failed. 1>&2
- errors=`expr $errors + 1`;;
- esac
-fi
-test -s ncut-a.E || rm -f ncut-a.E
-$xx --date-format="-- Date/Time --" -h x -tn:2 -N98 $srcdir/ncut-b.I > ncut-b.O 2> ncut-b.E
-code=$?
-if test $code != 0; then
- $echo "Test ncut-b failed: $xx return code $code differs from expected value 0" 1>&2
- errors=`expr $errors + 1`
-else
- cmp ncut-b.O $srcdir/ncut-b.X > /dev/null 2>&1
- case $? in
- 0) if test "$VERBOSE"; then $echo "passed ncut-b"; fi;;
- 1) $echo "Test ncut-b failed: files ncut-b.O and $srcdir/ncut-b.X differ" 1>&2
- (diff -c ncut-b.O $srcdir/ncut-b.X) 2> /dev/null
- errors=`expr $errors + 1`;;
- 2) $echo "Test ncut-b may have failed." 1>&2
- $echo The command "cmp ncut-b.O $srcdir/ncut-b.X" failed. 1>&2
- errors=`expr $errors + 1`;;
- esac
-fi
-test -s ncut-b.E || rm -f ncut-b.E
-$xx --date-format="-- Date/Time --" -h x -o 0 $srcdir/margin-0.I > margin-0.O 2> margin-0.E
-code=$?
-if test $code != 0; then
- $echo "Test margin-0 failed: $xx return code $code differs from expected value 0" 1>&2
- errors=`expr $errors + 1`
-else
- cmp margin-0.O $srcdir/margin-0.X > /dev/null 2>&1
- case $? in
- 0) if test "$VERBOSE"; then $echo "passed margin-0"; fi;;
- 1) $echo "Test margin-0 failed: files margin-0.O and $srcdir/margin-0.X differ" 1>&2
- (diff -c margin-0.O $srcdir/margin-0.X) 2> /dev/null
- errors=`expr $errors + 1`;;
- 2) $echo "Test margin-0 may have failed." 1>&2
- $echo The command "cmp margin-0.O $srcdir/margin-0.X" failed. 1>&2
- errors=`expr $errors + 1`;;
- esac
-fi
-test -s margin-0.E || rm -f margin-0.E
-$xx --date-format="-- Date/Time --" -h x -d -l 14 -h "" $srcdir/dbl-sp-a.I > dbl-sp-a.O 2> dbl-sp-a.E
-code=$?
-if test $code != 0; then
- $echo "Test dbl-sp-a failed: $xx return code $code differs from expected value 0" 1>&2
- errors=`expr $errors + 1`
-else
- cmp dbl-sp-a.O $srcdir/dbl-sp-a.X > /dev/null 2>&1
- case $? in
- 0) if test "$VERBOSE"; then $echo "passed dbl-sp-a"; fi;;
- 1) $echo "Test dbl-sp-a failed: files dbl-sp-a.O and $srcdir/dbl-sp-a.X differ" 1>&2
- (diff -c dbl-sp-a.O $srcdir/dbl-sp-a.X) 2> /dev/null
- errors=`expr $errors + 1`;;
- 2) $echo "Test dbl-sp-a may have failed." 1>&2
- $echo The command "cmp dbl-sp-a.O $srcdir/dbl-sp-a.X" failed. 1>&2
- errors=`expr $errors + 1`;;
- esac
-fi
-test -s dbl-sp-a.E || rm -f dbl-sp-a.E
-$xx --date-format="-- Date/Time --" -h x -d -t $srcdir/dbl-sp-b.I > dbl-sp-b.O 2> dbl-sp-b.E
-code=$?
-if test $code != 0; then
- $echo "Test dbl-sp-b failed: $xx return code $code differs from expected value 0" 1>&2
- errors=`expr $errors + 1`
-else
- cmp dbl-sp-b.O $srcdir/dbl-sp-b.X > /dev/null 2>&1
- case $? in
- 0) if test "$VERBOSE"; then $echo "passed dbl-sp-b"; fi;;
- 1) $echo "Test dbl-sp-b failed: files dbl-sp-b.O and $srcdir/dbl-sp-b.X differ" 1>&2
- (diff -c dbl-sp-b.O $srcdir/dbl-sp-b.X) 2> /dev/null
- errors=`expr $errors + 1`;;
- 2) $echo "Test dbl-sp-b may have failed." 1>&2
- $echo The command "cmp dbl-sp-b.O $srcdir/dbl-sp-b.X" failed. 1>&2
- errors=`expr $errors + 1`;;
- esac
-fi
-test -s dbl-sp-b.E || rm -f dbl-sp-b.E
-$xx --date-format="-- Date/Time --" -h x -W1 -t $srcdir/narrow-1.I > narrow-1.O 2> narrow-1.E
-code=$?
-if test $code != 0; then
- $echo "Test narrow-1 failed: $xx return code $code differs from expected value 0" 1>&2
- errors=`expr $errors + 1`
-else
- cmp narrow-1.O $srcdir/narrow-1.X > /dev/null 2>&1
- case $? in
- 0) if test "$VERBOSE"; then $echo "passed narrow-1"; fi;;
- 1) $echo "Test narrow-1 failed: files narrow-1.O and $srcdir/narrow-1.X differ" 1>&2
- (diff -c narrow-1.O $srcdir/narrow-1.X) 2> /dev/null
- errors=`expr $errors + 1`;;
- 2) $echo "Test narrow-1 may have failed." 1>&2
- $echo The command "cmp narrow-1.O $srcdir/narrow-1.X" failed. 1>&2
- errors=`expr $errors + 1`;;
- esac
-fi
-test -s narrow-1.E || rm -f narrow-1.E
-$xx --date-format="-- Date/Time --" -h x -W3 -t2 $srcdir/col-last.I > col-last.O 2> col-last.E
-code=$?
-if test $code != 0; then
- $echo "Test col-last failed: $xx return code $code differs from expected value 0" 1>&2
- errors=`expr $errors + 1`
-else
- cmp col-last.O $srcdir/col-last.X > /dev/null 2>&1
- case $? in
- 0) if test "$VERBOSE"; then $echo "passed col-last"; fi;;
- 1) $echo "Test col-last failed: files col-last.O and $srcdir/col-last.X differ" 1>&2
- (diff -c col-last.O $srcdir/col-last.X) 2> /dev/null
- errors=`expr $errors + 1`;;
- 2) $echo "Test col-last may have failed." 1>&2
- $echo The command "cmp col-last.O $srcdir/col-last.X" failed. 1>&2
- errors=`expr $errors + 1`;;
- esac
-fi
-test -s col-last.E || rm -f col-last.E
-$xx --date-format="-- Date/Time --" -h x -W3 -t -02 $srcdir/col-02.I > col-02.O 2> col-02.E
-code=$?
-if test $code != 0; then
- $echo "Test col-02 failed: $xx return code $code differs from expected value 0" 1>&2
- errors=`expr $errors + 1`
-else
- cmp col-02.O $srcdir/col-02.X > /dev/null 2>&1
- case $? in
- 0) if test "$VERBOSE"; then $echo "passed col-02"; fi;;
- 1) $echo "Test col-02 failed: files col-02.O and $srcdir/col-02.X differ" 1>&2
- (diff -c col-02.O $srcdir/col-02.X) 2> /dev/null
- errors=`expr $errors + 1`;;
- 2) $echo "Test col-02 may have failed." 1>&2
- $echo The command "cmp col-02.O $srcdir/col-02.X" failed. 1>&2
- errors=`expr $errors + 1`;;
- esac
-fi
-test -s col-02.E || rm -f col-02.E
-$xx --date-format="-- Date/Time --" -h x -W3 -t --columns=02 $srcdir/col-02.C.I > col-02.C.O 2> col-02.C.E
-code=$?
-if test $code != 0; then
- $echo "Test col-02.C failed: $xx return code $code differs from expected value 0" 1>&2
- errors=`expr $errors + 1`
-else
- cmp col-02.C.O $srcdir/col-02.C.X > /dev/null 2>&1
- case $? in
- 0) if test "$VERBOSE"; then $echo "passed col-02.C"; fi;;
- 1) $echo "Test col-02.C failed: files col-02.C.O and $srcdir/col-02.C.X differ" 1>&2
- (diff -c col-02.C.O $srcdir/col-02.C.X) 2> /dev/null
- errors=`expr $errors + 1`;;
- 2) $echo "Test col-02.C may have failed." 1>&2
- $echo The command "cmp col-02.C.O $srcdir/col-02.C.X" failed. 1>&2
- errors=`expr $errors + 1`;;
- esac
-fi
-test -s col-02.C.E || rm -f col-02.C.E
-$xx --date-format="-- Date/Time --" -h x -W3 -t -4 --columns=1 -2 $srcdir/col-2.I > col-2.O 2> col-2.E
-code=$?
-if test $code != 0; then
- $echo "Test col-2 failed: $xx return code $code differs from expected value 0" 1>&2
- errors=`expr $errors + 1`
-else
- cmp col-2.O $srcdir/col-2.X > /dev/null 2>&1
- case $? in
- 0) if test "$VERBOSE"; then $echo "passed col-2"; fi;;
- 1) $echo "Test col-2 failed: files col-2.O and $srcdir/col-2.X differ" 1>&2
- (diff -c col-2.O $srcdir/col-2.X) 2> /dev/null
- errors=`expr $errors + 1`;;
- 2) $echo "Test col-2 may have failed." 1>&2
- $echo The command "cmp col-2.O $srcdir/col-2.X" failed. 1>&2
- errors=`expr $errors + 1`;;
- esac
-fi
-test -s col-2.E || rm -f col-2.E
-$xx --date-format="-- Date/Time --" -h x -W3 -t --columns=4 --columns=1 --columns=2 $srcdir/col-2.C.I > col-2.C.O 2> col-2.C.E
-code=$?
-if test $code != 0; then
- $echo "Test col-2.C failed: $xx return code $code differs from expected value 0" 1>&2
- errors=`expr $errors + 1`
-else
- cmp col-2.C.O $srcdir/col-2.C.X > /dev/null 2>&1
- case $? in
- 0) if test "$VERBOSE"; then $echo "passed col-2.C"; fi;;
- 1) $echo "Test col-2.C failed: files col-2.C.O and $srcdir/col-2.C.X differ" 1>&2
- (diff -c col-2.C.O $srcdir/col-2.C.X) 2> /dev/null
- errors=`expr $errors + 1`;;
- 2) $echo "Test col-2.C may have failed." 1>&2
- $echo The command "cmp col-2.C.O $srcdir/col-2.C.X" failed. 1>&2
- errors=`expr $errors + 1`;;
- esac
-fi
-test -s col-2.C.E || rm -f col-2.C.E
-$xx --date-format="-- Date/Time --" -h x -W3 -t -1 --columns=2 $srcdir/col-long.I > col-long.O 2> col-long.E
-code=$?
-if test $code != 0; then
- $echo "Test col-long failed: $xx return code $code differs from expected value 0" 1>&2
- errors=`expr $errors + 1`
-else
- cmp col-long.O $srcdir/col-long.X > /dev/null 2>&1
- case $? in
- 0) if test "$VERBOSE"; then $echo "passed col-long"; fi;;
- 1) $echo "Test col-long failed: files col-long.O and $srcdir/col-long.X differ" 1>&2
- (diff -c col-long.O $srcdir/col-long.X) 2> /dev/null
- errors=`expr $errors + 1`;;
- 2) $echo "Test col-long may have failed." 1>&2
- $echo The command "cmp col-long.O $srcdir/col-long.X" failed. 1>&2
- errors=`expr $errors + 1`;;
- esac
-fi
-test -s col-long.E || rm -f col-long.E
-$xx --date-format="-- Date/Time --" -h x -W3 -t --columns=1 --columns=2 $srcdir/col-long.C.I > col-long.C.O 2> col-long.C.E
-code=$?
-if test $code != 0; then
- $echo "Test col-long.C failed: $xx return code $code differs from expected value 0" 1>&2
- errors=`expr $errors + 1`
-else
- cmp col-long.C.O $srcdir/col-long.C.X > /dev/null 2>&1
- case $? in
- 0) if test "$VERBOSE"; then $echo "passed col-long.C"; fi;;
- 1) $echo "Test col-long.C failed: files col-long.C.O and $srcdir/col-long.C.X differ" 1>&2
- (diff -c col-long.C.O $srcdir/col-long.C.X) 2> /dev/null
- errors=`expr $errors + 1`;;
- 2) $echo "Test col-long.C may have failed." 1>&2
- $echo The command "cmp col-long.C.O $srcdir/col-long.C.X" failed. 1>&2
- errors=`expr $errors + 1`;;
- esac
-fi
-test -s col-long.C.E || rm -f col-long.C.E
-$xx --date-format="-- Date/Time --" -h x -0 $srcdir/col-0.I > col-0.O 2> col-0.E
-code=$?
-if test $code != 1; then
- $echo "Test col-0 failed: $xx return code $code differs from expected value 1" 1>&2
- errors=`expr $errors + 1`
-else
- cmp col-0.O $srcdir/col-0.X > /dev/null 2>&1
- case $? in
- 0) if test "$VERBOSE"; then $echo "passed col-0"; fi;;
- 1) $echo "Test col-0 failed: files col-0.O and $srcdir/col-0.X differ" 1>&2
- (diff -c col-0.O $srcdir/col-0.X) 2> /dev/null
- errors=`expr $errors + 1`;;
- 2) $echo "Test col-0 may have failed." 1>&2
- $echo The command "cmp col-0.O $srcdir/col-0.X" failed. 1>&2
- errors=`expr $errors + 1`;;
- esac
-fi
-test -s col-0.E || rm -f col-0.E
-$xx --date-format="-- Date/Time --" -h x --columns=0 $srcdir/col-0.C.I > col-0.C.O 2> col-0.C.E
-code=$?
-if test $code != 1; then
- $echo "Test col-0.C failed: $xx return code $code differs from expected value 1" 1>&2
- errors=`expr $errors + 1`
-else
- cmp col-0.C.O $srcdir/col-0.C.X > /dev/null 2>&1
- case $? in
- 0) if test "$VERBOSE"; then $echo "passed col-0.C"; fi;;
- 1) $echo "Test col-0.C failed: files col-0.C.O and $srcdir/col-0.C.X differ" 1>&2
- (diff -c col-0.C.O $srcdir/col-0.C.X) 2> /dev/null
- errors=`expr $errors + 1`;;
- 2) $echo "Test col-0.C may have failed." 1>&2
- $echo The command "cmp col-0.C.O $srcdir/col-0.C.X" failed. 1>&2
- errors=`expr $errors + 1`;;
- esac
-fi
-test -s col-0.C.E || rm -f col-0.C.E
-$xx --date-format="-- Date/Time --" -h x -9999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999 $srcdir/col-inval.I > col-inval.O 2> col-inval.E
-code=$?
-if test $code != 1; then
- $echo "Test col-inval failed: $xx return code $code differs from expected value 1" 1>&2
- errors=`expr $errors + 1`
-else
- cmp col-inval.O $srcdir/col-inval.X > /dev/null 2>&1
- case $? in
- 0) if test "$VERBOSE"; then $echo "passed col-inval"; fi;;
- 1) $echo "Test col-inval failed: files col-inval.O and $srcdir/col-inval.X differ" 1>&2
- (diff -c col-inval.O $srcdir/col-inval.X) 2> /dev/null
- errors=`expr $errors + 1`;;
- 2) $echo "Test col-inval may have failed." 1>&2
- $echo The command "cmp col-inval.O $srcdir/col-inval.X" failed. 1>&2
- errors=`expr $errors + 1`;;
- esac
-fi
-test -s col-inval.E || rm -f col-inval.E
-$xx --date-format="-- Date/Time --" -h x --columns=9999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999 $srcdir/col-inval.C.I > col-inval.C.O 2> col-inval.C.E
-code=$?
-if test $code != 1; then
- $echo "Test col-inval.C failed: $xx return code $code differs from expected value 1" 1>&2
- errors=`expr $errors + 1`
-else
- cmp col-inval.C.O $srcdir/col-inval.C.X > /dev/null 2>&1
- case $? in
- 0) if test "$VERBOSE"; then $echo "passed col-inval.C"; fi;;
- 1) $echo "Test col-inval.C failed: files col-inval.C.O and $srcdir/col-inval.C.X differ" 1>&2
- (diff -c col-inval.C.O $srcdir/col-inval.C.X) 2> /dev/null
- errors=`expr $errors + 1`;;
- 2) $echo "Test col-inval.C may have failed." 1>&2
- $echo The command "cmp col-inval.C.O $srcdir/col-inval.C.X" failed. 1>&2
- errors=`expr $errors + 1`;;
- esac
-fi
-test -s col-inval.C.E || rm -f col-inval.C.E
-$xx --date-format="-- Date/Time --" -h x --pages=1:-1 $srcdir/neg-page.I > neg-page.O 2> neg-page.E
-code=$?
-if test $code != 1; then
- $echo "Test neg-page failed: $xx return code $code differs from expected value 1" 1>&2
- errors=`expr $errors + 1`
-else
- cmp neg-page.O $srcdir/neg-page.X > /dev/null 2>&1
- case $? in
- 0) if test "$VERBOSE"; then $echo "passed neg-page"; fi;;
- 1) $echo "Test neg-page failed: files neg-page.O and $srcdir/neg-page.X differ" 1>&2
- (diff -c neg-page.O $srcdir/neg-page.X) 2> /dev/null
- errors=`expr $errors + 1`;;
- 2) $echo "Test neg-page may have failed." 1>&2
- $echo The command "cmp neg-page.O $srcdir/neg-page.X" failed. 1>&2
- errors=`expr $errors + 1`;;
- esac
-fi
-test -s neg-page.E || rm -f neg-page.E
-if test $errors = 0; then
- $echo Passed all 396 tests. 1>&2
-else
- $echo Failed $errors tests. 1>&2
-fi
-test $errors = 0 || errors=1
-exit $errors
diff --git a/tests/pr/pr-tests.pl b/tests/pr/pr-tests.pl
new file mode 100755
index 0000000..4d85dc9
--- /dev/null
+++ b/tests/pr/pr-tests.pl
@@ -0,0 +1,476 @@
+#!/usr/bin/perl
+# Test pr.
+
+# Copyright (C) 2008-2016 Free Software Foundation, Inc.
+
+# This program is free software: you can redistribute it and/or modify
+# it under the terms of the GNU General Public License as published by
+# the Free Software Foundation, either version 3 of the License, or
+# (at your option) any later version.
+
+# This program is distributed in the hope that it will be useful,
+# but WITHOUT ANY WARRANTY; without even the implied warranty of
+# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
+# GNU General Public License for more details.
+
+# You should have received a copy of the GNU General Public License
+# along with this program. If not, see <http://www.gnu.org/licenses/>.
+
+use strict;
+
+# Turn off localization of executable's output.
+@ENV{qw(LANGUAGE LANG LC_ALL)} = ('C') x 3;
+
+my $prog = 'pr';
+my $normalize_strerror = "s/': .*/'/";
+
+my @tv = (
+
+# -b option is no longer an official option. But it's still working to
+# get a downward compatibility. Now (version 1.19m or newer) -COLUMN
+# only is equivalent to -b -COLUMN.
+#
+# test_name options input-file-name(s) expected-output-group-file-name
+# expected-return-code
+# -------------------------------------------------------------------------
+# Following tests with "FF set" don't contain a complete set of all
+# combinations of options and FF-arrangements
+#
+# One FF at start of file (one empty page)
+# ['1a', '', [\'0Ft'], [\'0F'], 0],
+['1b', '', [\'0Fnt'], [\'0F'], 0],
+['1c', '+3', [\'0Ft'], [\'3-0F'], 0],
+['1d', '+3 -f', [\'0Ft'], [\'3f-0F'], 0],
+['1e', '-a -3', [\'0Ft'], [\'a3-0F'], 0],
+['1f', '-a -3 -f', [\'0Ft'], [\'a3f-0F'], 0],
+['1g', '-a -3 -f', [\'0Fnt'], [\'a3f-0F'], 0],
+['1h', '+3 -a -3 -f', [\'0Ft'], [\'3a3f-0F'], 0],
+['1i', '-b -3', [\'0Ft'], [\'b3-0F'], 0],
+['1j', '-b -3 -f', [\'0Ft'], [\'b3f-0F'], 0],
+['1k', '-b -3 -f', [\'0Fnt'], [\'b3f-0F'], 0],
+['1l', '+3 -b -3 -f', [\'0Ft'], [\'3b3f-0F'], 0],
+# Two FF at start of file (two empty page)
+['2a', '', [\'0FFt'], [\'0FF'], 0],
+['2b', '', [\'0FnFnt'], [\'0FF'], 0],
+['2c', '-a -3 -f', [\'0FFt'], [\'a3f-0FF'], 0],
+['2d', '-a -3 -f', [\'0FFnt'], [\'a3f-0FF'], 0],
+['2e', '-b -3 -f', [\'0FFt'], [\'b3f-0FF'], 0],
+['2f', '-b -3 -f', [\'0FFnt'], [\'b3f-0FF'], 0],
+['2g', '-b -3 -f', [\'0FnFt'], [\'b3f-0FF'], 0],
+['2h', '-b -3 -f', [\'0FnFnt'], [\'b3f-0FF'], 0],
+['2i', '+3 -b -3 -f', [\'0FFt'], [\'3b3f-0FF'], 0],
+['2j', '+3 -b -3 -f', [\'0FFnt'], [\'3b3f-0FF'], 0],
+#
+# FFs in text (none / one / two empty page(s))
+['3a', '', [\'FFn'], [\'FF'], 0],
+['3b', '', [\'FnFn'], [\'FF'], 0],
+['3c', '+3', [\'FFn'], [\'3-FF'], 0],
+['3d', '+3 -f', [\'FFn'], [\'3f-FF'], 0],
+['3e', '-a -3 -f', [\'FFn'], [\'a3f-FF'], 0],
+['3f', '-a -3 -f', [\'FFtn'], [\'a3f-FF'], 0],
+['3g', '-b -3 -f', [\'FFn'], [\'b3f-FF'], 0],
+['3h', '-b -3 -f', [\'FFtn'], [\'b3f-FF'], 0],
+['3i', '-b -3 -f', [\'FnFn'], [\'b3f-FF'], 0],
+['3j', '-b -3 -f', [\'tFFn'], [\'b3f-FF'], 0],
+['3k', '-b -3 -f', [\'tFnFt'], [\'b3f-FF'], 0],
+['3l', '+3 -b -3 -f', [\'FFn'], [\'3b3f-FF'], 0],
+['3m', '+3 -b -3 -f', [\'FFtn'], [\'3b3f-FF'], 0],
+# A full page printed (lines_left_on_page = 0) without a FF found.
+# Avoid an extra empty page if a FF follows in the next input line.
+['3la', '-l 24', [\'FFn'], [\'l24-FF'], 0],
+['3lb', '-l 24', [\'FFtn'], [\'l24-FF'], 0],
+['3lc', '-l 24', [\'FnFn'], [\'l24-FF'], 0],
+['3ld', '-l 24', [\'tFFn'], [\'l24-FF'], 0],
+['3le', '-l 24', [\'tFnFt'], [\'l24-FF'], 0],
+['3lf', '-l 24', [\'tFFt'], [\'l24-FF'], 0],
+['3aa', '-a -2 -l 17', [\'FFn'], [\'a2l17-FF'], 0],
+['3ab', '-a -2 -l 17', [\'FFtn'], [\'a2l17-FF'], 0],
+['3ac', '-a -2 -l 17', [\'FnFn'], [\'a2l17-FF'], 0],
+['3ad', '-a -2 -l 17', [\'tFFn'], [\'a2l17-FF'], 0],
+['3ae', '-a -2 -l 17', [\'tFnFt'], [\'a2l17-FF'], 0],
+['3af', '-a -2 -l 17', [\'tFFt'], [\'a2l17-FF'], 0],
+['3ag', '-a -2 -l 15', [\'FFn'], [\'a2l15-FF'], 0],
+['3ah', '-a -2 -l 15', [\'FFtn'], [\'a2l15-FF'], 0],
+['3ai', '-a -2 -l 15', [\'FnFn'], [\'a2l15-FF'], 0],
+['3aj', '-a -2 -l 15', [\'tFFn'], [\'a2l15-FF'], 0],
+['3ak', '-a -2 -l 15', [\'tFnFt'], [\'a2l15-FF'], 0],
+['3ba', '-b -2 -l 17', [\'FFn'], [\'b2l17-FF'], 0],
+['3bb', '-b -2 -l 17', [\'FFtn'], [\'b2l17-FF'], 0],
+['3bc', '-b -2 -l 17', [\'FnFn'], [\'b2l17-FF'], 0],
+['3bd', '-b -2 -l 17', [\'tFFn'], [\'b2l17-FF'], 0],
+['3be', '-b -2 -l 17', [\'tFnFt'], [\'b2l17-FF'], 0],
+['3bf', '-b -2 -l 17', [\'tFFt'], [\'b2l17-FF'], 0],
+['3bg', '-b -2 -l 15', [\'FFn'], [\'b2l15-FF'], 0],
+['3bh', '-b -2 -l 15', [\'FFtn'], [\'b2l15-FF'], 0],
+['3bi', '-b -2 -l 15', [\'FnFn'], [\'b2l15-FF'], 0],
+['3bj', '-b -2 -l 15', [\'tFFn'], [\'b2l15-FF'], 0],
+['3bk', '-b -2 -l 15', [\'tFnFt'], [\'b2l15-FF'], 0],
+['3Pa', '+4 -l 24', [\'FFn'], [\'4l24-FF'], 0],
+['3Pb', '+4 -l 24', [\'FFtn'], [\'4l24-FF'], 0],
+['3Pc', '+4 -l 24', [\'FnFn'], [\'4l24-FF'], 0],
+['3Pd', '+4 -l 24', [\'tFFn'], [\'4l24-FF'], 0],
+['3Pe', '+4 -l 24', [\'tFnFt'], [\'4l24-FF'], 0],
+['3Pf', '+4 -l 24', [\'tFFt'], [\'4l24-FF'], 0],
+['3Pg', '+4:7 -l 24', [\'tFFt'], [\'4-7l24-FF'], 0],
+['3Paa', '+3 -a -2 -l 17', [\'FFn'], [\'3a2l17-FF'], 0],
+['3Pab', '+3 -a -2 -l 17', [\'FFtn'], [\'3a2l17-FF'], 0],
+['3Pac', '+3 -a -2 -l 17', [\'FnFn'], [\'3a2l17-FF'], 0],
+['3Pad', '+3 -a -2 -l 17', [\'tFFn'], [\'3a2l17-FF'], 0],
+['3Pae', '+3 -a -2 -l 17', [\'tFnFt'], [\'3a2l17-FF'], 0],
+['3Paf', '+3 -a -2 -l 17', [\'tFFt'], [\'3a2l17-FF'], 0],
+['3Pba', '+3 -b -2 -l 17', [\'FFn'], [\'3b2l17-FF'], 0],
+['3Pbb', '+3 -b -2 -l 17', [\'FFtn'], [\'3b2l17-FF'], 0],
+['3Pbc', '+3 -b -2 -l 17', [\'FnFn'], [\'3b2l17-FF'], 0],
+['3Pbd', '+3 -b -2 -l 17', [\'tFFn'], [\'3b2l17-FF'], 0],
+['3Pbe', '+3 -b -2 -l 17', [\'tFnFt'], [\'3b2l17-FF'], 0],
+['3Pbf', '+3 -b -2 -l 17', [\'tFFt'], [\'3b2l17-FF'], 0],
+#
+# Without "FF set by hand"
+['4a', '-l 24', [\'tn'], [\'l24-t'], 0],
+['4b', '-l 24 -f', [\'tn'], [\'l24f-t'], 0],
+['4c', '+3 -l 24', [\'tn'], [\'3l24-t'], 0],
+['4d', '+3 -l 24 -f', [\'tn'], [\'3l24f-t'], 0],
+['4e', '+3:5 -l 24 -f', [\'tn'], [\'3-5l24f-t'], 0],
+['4f', '-a -3 -l 15', [\'tn'], [\'a3l15-t'], 0],
+['4g', '-a -3 -l 15 -f', [\'tn'], [\'a3l15f-t'], 0],
+['4h', '+3 -a -3 -l 15', [\'tn'], [\'3a3l15-t'], 0],
+['4i', '+3 -a -3 -l 15 -f', [\'tn'], [\'3a3l15f-t'], 0],
+['4j', '-b -3 -l 15', [\'tn'], [\'b3l15-t'], 0],
+['4k', '-b -3 -l 15 -f', [\'tn'], [\'b3l15f-t'], 0],
+['4l', '+3 -b -3 -l 15', [\'tn'], [\'3b3l15-t'], 0],
+['4m', '+3 -b -3 -l 15 -f', [\'tn'], [\'3b3l15f-t'], 0],
+#
+# Merge input files (-m option)
+['5a', '-m -l 24', [\'tn', \'tn'], [\'ml24-t'], 0],
+['5b', '-m -l 24 -f', [\'tn', \'tn'], [\'ml24f-t'], 0],
+['5c', '+3 -m -l 24', [\'tn', \'tn'], [\'3ml24-t'], 0],
+['5d', '+3 -m -l 24 -f', [\'tn', \'tn'], [\'3ml24f-t'], 0],
+['5e', '-m -l 24 -f', [\'0Ft', \'0Ft'], [\'ml24f-0F'], 0],
+['5f', '-m -l 24 -f', [\'0Ft', \'0Fnt'], [\'ml24f-0F'], 0],
+['5g', '-m -l 24 -f', [\'tn', \'0Ft'], [\'ml24f-t-0F'], 0],
+# A full page printed (lines_left_on_page = 0) without a FF found.
+# Avoid an extra empty page if a FF follows in the next input line.
+['5ma', '-m -l 24', [\'tFFn', \'tFnFt'], [\'ml24-FF'], 0],
+['5mb', '-m -l 24', [\'tFFn', \'FFn'], [\'ml24-FF'], 0],
+['5mc', '-m -l 24', [\'tn', \'FFn'], [\'ml24-t-FF'], 0],
+['5md', '-m -l 20', [\'FFn', \'tn'], [\'ml20-FF-t'], 0],
+['5Pma', '+3 -m -l 24', [\'FFn', \'FnFn'], [\'3ml24-FF'], 0],
+['5Pmb', '+3 -m -l 24', [\'tFFn', \'FFn'], [\'3ml24-FF'], 0],
+['5Pmc', '+3 -m -l 24', [\'tn', \'FFn'], [\'3ml24-t-FF'], 0],
+#
+# Do not print header and footer but retain "FF set by Hand"
+# (-t option)
+['6a', '-t -l 24', [\'tn'], [\'t-t'], 0],
+['6b', '-t -l 24 -f', [\'tn'], [\'t-t'], 0],
+['6c', '-t -l 24 -f', [\'tFFt-bl'], [\'t-bl'], 0],
+['6d', '-t -l 24', [\'0FnFnt'], [\'t-0FF'], 0],
+['6e', '-t -l 24', [\'FFn'], [\'t-FF'], 0],
+['6f', '-t -l 24', [\'FnFn'], [\'t-FF'], 0],
+['6g', '-t -l 24 -f', [\'FFn'], [\'t-FF'], 0],
+['6aa', '-t -a -3', [\'0FnFnt'], [\'ta3-0FF'], 0],
+['6ab', '-t -a -3', [\'FFn'], [\'ta3-FF'], 0],
+['6ac', '-t -a -3 -l 24', [\'FnFn'], [\'ta3-FF'], 0],
+['6ba', '-t -b -3', [\'0FnFnt'], [\'tb3-0FF'], 0],
+['6bb', '-t -b -3', [\'FFn'], [\'tb3-FF'], 0],
+['6bc', '-t -b -3 -l 24', [\'FnFn'], [\'tb3-FF'], 0],
+#
+# Do not print header and footer nor "FF set by Hand" (-T option)
+['7a', '-T -l 24', [\'tn'], [\'tt-t'], 0],
+['7b', '-T -l 24 -f', [\'tn'], [\'tt-t'], 0],
+['7c', '-T -l 24 -f', [\'tFFt-bl'], [\'tt-bl'], 0],
+['7d', '-T -l 24', [\'0FnFnt'], [\'tt-0FF'], 0],
+['7e', '-T -l 24', [\'FFn'], [\'tt-FF'], 0],
+['7f', '-T -l 24', [\'FnFn'], [\'tt-FF'], 0],
+['7g', '-T -l 24 -f', [\'FFn'], [\'tt-FF'], 0],
+['7aa', '-T -a -3', [\'0FnFnt'], [\'tta3-0FF'], 0],
+['7ab', '-T -a -3', [\'FFn'], [\'tta3-FF'], 0],
+['7ac', '-T -a -3 -l 24', [\'FnFn'], [\'tta3-FF'], 0],
+['7ba', '-T -b -3', [\'0FnFnt'], [\'ttb3-0FF'], 0],
+['7bb', '-T -b -3', [\'FFn'], [\'ttb3-FF'], 0],
+['7bc', '-T -b -3 -l 24', [\'FnFn'], [\'ttb3-FF'], 0],
+#
+# lhs-truncation of header
+# pr-1.19m: Text line truncation only with column output
+#
+# numbering lines (-n -N option)
+# skip pages (+FIRST_PAGE[:LAST_PAGE] option)
+['9a', '-n.3 -l 24 -f', [\'tFFt-bl'], [\'nl24f-bl'], 0],
+['9b', '-n.3 -N 15 -l 24 -f', [\'tFFt-bl'], [\'nN15l24f-bl'], 0],
+['9Pa', '-n.3 +2 -l 24 -f', [\'tFFt-bl'], [\'n+2l24f-bl'], 0],
+['9Pb', '-n.3 +3 -l 24 -f', [\'tFFt-bl'], [\'n+3l24f-bl'], 0],
+['9Pc', '-n.3 -N 1 +3 -l 24 -f', [\'tFFt-bl'], [\'nN1+3l24f-bl'], 0],
+['9Pe', '-n.3 +2 -l 24 -f', [\'0FFt'], [\'n+2l24f-0FF'], 0],
+['9Pf', '-n.3 +2 -l 24 -f', [\'0FFnt'], [\'n+2l24f-0FF'], 0],
+['9Pg', '-n.3 +2 -l 24 -f', [\'0FnFt'], [\'n+2l24f-0FF'], 0],
+['9Ph', '-n.3 +2 -l 24 -f', [\'0FnFnt'], [\'n+2l24f-0FF'], 0],
+['9Pi', '-n.3 +2:5 -l 24 -f', [\'0FFt'], [\'n+2-5l24f-0FF'], 0],
+['9Pj', '-n.3 +3 -l 24 -f', [\'0FFt'], [\'n+3l24f-0FF'], 0],
+['9Pk', '-n.3 +3 -l 24 -f', [\'0FFnt'], [\'n+3l24f-0FF'], 0],
+['9Pl', '-n.3 +3 -l 24 -f', [\'0FnFt'], [\'n+3l24f-0FF'], 0],
+['9Pm', '-n.3 +3 -l 24 -f', [\'0FnFnt'], [\'n+3l24f-0FF'], 0],
+['9Pn', '-n.3 +7 -l 24', [\'FFn'], [\'n+7l24-FF'], 0],
+['9Po', '-n.3 +7 -l 24', [\'FFtn'], [\'n+7l24-FF'], 0],
+['9Pp', '-n.3 +7 -l 24', [\'FnFn'], [\'n+7l24-FF'], 0],
+['9Pq', '-n.3 +3:7 -l 24', [\'FnFn'], [\'n+3-7l24-FF'], 0],
+['9Pr', '-n.3 +8 -l 20', [\'tFFn'], [\'n+8l20-FF'], 0],
+['9Ps', '-n.3 +8 -l 20', [\'tFnFt'], [\'n+8l20-FF'], 0],
+['9Pt', '-n.3 +8 -l 20', [\'tFFt'], [\'n+8l20-FF'], 0],
+['9Paa', '-n.3 +5 -a -3 -l 13 -f', [\'0FFt'], [\'n+5a3l13f-0FF'], 0],
+['9Pab', '-n.3 +5 -a -3 -l 13 -f', [\'0FFnt'], [\'n+5a3l13f-0FF'], 0],
+['9Pac', '-n.3 +5 -a -3 -l 13 -f', [\'0FnFt'], [\'n+5a3l13f-0FF'], 0],
+['9Pad', '-n.3 +5 -a -3 -l 13 -f', [\'0FnFnt'], [\'n+5a3l13f-0FF'], 0],
+['9Pae', '-n.3 +6 -a -2 -l 17', [\'FFn'], [\'n+6a2l17-FF'], 0],
+['9Paf', '-n.3 +6 -a -2 -l 17', [\'FFtn'], [\'n+6a2l17-FF'], 0],
+['9Pag', '-n.3 +6 -a -2 -l 17', [\'FnFn'], [\'n+6a2l17-FF'], 0],
+['9Pah', '-n.3 +6 -a -2 -l 17', [\'tFFn'], [\'n+6a2l17-FF'], 0],
+['9Pai', '-n.3 +6 -a -2 -l 17', [\'tFnFt'], [\'n+6a2l17-FF'], 0],
+['9Paj', '-n.3 +6 -a -2 -l 17', [\'tFFt'], [\'n+6a2l17-FF'], 0],
+['9Pak', '-n.3 +4:8 -a -2 -l 17', [\'tFFt'], [\'n+4-8a2l17-FF'], 0],
+['9Pba', '-n.3 +4 -b -2 -l 17 -f', [\'0FFt'], [\'n+4b2l17f-0FF'], 0],
+['9Pbb', '-n.3 +4 -b -2 -l 17 -f', [\'0FFnt'], [\'n+4b2l17f-0FF'], 0],
+['9Pbc', '-n.3 +4 -b -2 -l 17 -f', [\'0FnFt'], [\'n+4b2l17f-0FF'], 0],
+['9Pbd', '-n.3 +4 -b -2 -l 17 -f', [\'0FnFnt'], [\'n+4b2l17f-0FF'], 0],
+['9Pbe', '-n.3 +6 -b -3 -l 13 -f', [\'FFn'], [\'n+6b3l13f-FF'], 0],
+['9Pbf', '-n.3 +6 -b -3 -l 13 -f', [\'FFtn'], [\'n+6b3l13f-FF'], 0],
+['9Pbg', '-n.3 +6 -b -3 -l 13 -f', [\'FnFn'], [\'n+6b3l13f-FF'], 0],
+['9Pbh', '-n.3 +6 -b -3 -l 13 -f', [\'tFFn'], [\'n+6b3l13f-FF'], 0],
+['9Pbi', '-n.3 +6 -b -3 -l 13 -f', [\'tFnFt'], [\'n+6b3l13f-FF'], 0],
+['9Pbj', '-n.3 +6 -b -3 -l 13 -f', [\'tFFt'], [\'n+6b3l13f-FF'], 0],
+['9Pbk', '-n.3 +5:8 -b -3 -l 17 -f', [\'FnFn'], [\'n+5-8b3l17f-FF'], 0],
+['9Pma', '-n.3 +3 -m -l 20 -f', [\'tFFt-bl', \'FnFn'], [\'n+3ml20f-bl-FF'], 0],
+['9Pmb', '-n.3 +3 -m -l 24 -f', [\'tFFt-bl', \'tn'], [\'n+3ml24f-bl-tn'], 0],
+['9Pmc', '-n.3 +3 -m -l 24 -f', [\'tn', \'tFFt-bl'], [\'n+3ml24f-tn-bl'], 0],
+#
+# line truncation column alignment; header line truncation
+# -w/W PAGE_WIDTH [-J] options
+['10wa', '-W 72 -J -l24 -f', [\'tFFt-ll'], [\'W72Jl24f-ll'], 0],
+['10wb', '-w 72 -J -l24 -f', [\'tFFt-ll'], [\'W72Jl24f-ll'], 0],
+['10wc', '-W 72 -l24 -f', [\'tFFt-ll'], [\'W-72l24f-ll'], 0],
+['10wd', '-w 72 -l24 -f', [\'tFFt-ll'], [\'w72l24f-ll'], 0],
+['10we', '-W 28 -l24 -f', [\'tFFt-ll'], [\'W28l24f-ll'], 0],
+['10wf', '-W 27 -l24 -f', [\'tFFt-ll'], [\'W27l24f-ll'], 0],
+['10wg', '-W 26 -l24 -f', [\'tFFt-ll'], [\'W26l24f-ll'], 0],
+['10wh', '-W 20 -l24 -f', [\'tFFt-ll'], [\'W20l24f-ll'], 0],
+['10ma', '-m -l 24 -f', [\'tFFt-lm', \'loli'], [\'ml24f-lm-lo'], 0],
+['10mb', '-W 35 -m -l 24 -f', [\'tFFt-lm', \'loli'], [\'W35ml24f-lm-lo'], 0],
+['10mc', '-w 35 -m -l 24 -f', [\'tFFt-lm', \'loli'], [\'W35ml24f-lm-lo'], 0],
+['10md', '-J -m -l 24 -f', [\'tFFt-lm', \'loli'], [\'Jml24f-lm-lo'], 0],
+['10me', '-W 35 -J -m -l 24 -f', [\'tFFt-lm', \'loli'], [\'W35Jml24f-lmlo'], 0],
+['10mf', '-w 35 -J -m -l 24 -f', [\'tFFt-lm', \'loli'], [\'W35Jml24f-lmlo'], 0],
+['10mg', '-n.3 -J -m -l 24 -f', [\'tFFt-lm', \'tFFt-lm', \'loli'],
+ [\'nJml24f-lmlmlo'], 0],
+['10mh', '-n.3 -J -m -l 24 -f', [\'tFFt-lm', \'loli', \'tFFt-lm'],
+ [\'nJml24f-lmlolm'], 0],
+['10aa', '-a -3 -l 24 -f', [\'tFFt-lm'], [\'a3l24f-lm'], 0],
+['10ab', '-W 35 -a -3 -l 24 -f', [\'tFFt-lm'], [\'W35a3l24f-lm'], 0],
+['10ac', '-J -a -3 -l 24 -f', [\'tFFt-lm'], [\'Ja3l24f-lm'], 0],
+['10ad', '-W 35 -J -a -3 -l 24 -f', [\'tFFt-lm'], [\'W35Ja3l24f-lm'], 0],
+['10ba', '-b -3 -l 24 -f', [\'tFFt-lm'], [\'b3l24f-lm'], 0],
+['10bb', '-W 35 -b -3 -l 24 -f', [\'tFFt-lm'], [\'W35b3l24f-lm'], 0],
+['10bc', '-J -b -3 -l 24 -f', [\'tFFt-lm'], [\'Jb3l24f-lm'], 0],
+['10bd', '-W 35 -J -b -3 -l 24 -f', [\'tFFt-lm'], [\'W35Jb3l24f-lm'], 0],
+#
+# merge files (-m option) use separator string (-S option)
+['11sa', '-n.3 -S:--: -m -l 20 -f', [\'tFFt-bl', \'FnFn'],
+ [\'nSml20-bl-FF'], 0],
+['11sb', '-n.3 -S:--: -m -l 24 -f', [\'tFFt-bl', \'FnFn'],
+ [\'nSml24-bl-FF'], 0],
+['11se', '-n.3 -S:--: -m -l 20 -f', [\'tn', \'tn', \'FnFn'],
+ [\'nSml20-t-t-FF'], 0],
+['11sf', '-n.3 -S:--: -m -l 24 -f', [\'tn', \'tn', \'FnFn'],
+ [\'nSml24-t-t-FF'], 0],
+['11sg', '-n.3 -S:--: -m -l 20 -f', [\'tn', \'tn', \'FnFn', \'FnFn'],
+ [\'nSml20-t-tFFFF'], 0],
+['11sh', '-n.3 -S:--: -m -l 24 -f', [\'tn', \'tn', \'FnFn', \'FnFn'],
+ [\'nSml24-t-tFFFF'], 0],
+#
+# left margin (-o option) and separator string (-S option)
+['12aa', '-o3 -a -3 -l24 -f', [\'tn'], [\'o3a3l24f-tn'], 0],
+['12ab', '-o3 -a -3 -S:--: -l24 -f', [\'tn'], [\'o3a3Sl24f-tn'], 0],
+['12ac', '-o3 -a -3 -S:--: -n. -l24 -f', [\'tn'], [\'o3a3Snl24f-tn'], 0],
+['12ba', '-o3 -b -3 -l24 -f', [\'tn'], [\'o3b3l24f-tn'], 0],
+['12bb', '-o3 -b -3 -S:--: -l24 -f', [\'tn'], [\'o3b3Sl24f-tn'], 0],
+['12bc', '-o3 -b -3 -S:--: -n. -l24 -f', [\'tn'], [\'o3b3Snl24f-tn'], 0],
+['12ma', '-o3 -m -l24 -f', [\'tFFt-bl', \'tn'], [\'o3ml24f-bl-tn'], 0],
+['12mb', '-o3 -m -S:--: -l24 -f', [\'tFFt-bl', \'tn'], [\'o3mSl24f-bl-tn'], 0],
+['12mc', '-o3 -m -S:--: -n. -l24 -f', [\'tFFt-bl', \'tn'],
+ [\'o3mSnl24fbltn'], 0],
+['12md', '-o3 -J -m -l24 -f', [\'tFFt-lm', \'loli'], [\'o3Jml24f-lm-lo'], 0],
+#
+#
+# Single column output: POSIX compliant, adapt other UNIXes (SunOS.5.5.1 e.g.)
+# number-separator TAB always an output TAB --> varying number/text-spacing
+['13a', '-t -n -e8', [\'t_tab'], [\'tne8-t_tab'], 0],
+['13b', '-t -n -e8 -o3', [\'t_tab'], [\'tne8o3-t_tab'], 0],
+#
+# POSIX compliant: multi-columns of equal width (unlike SunOS.5.5.1 e.g.)
+# text-tab handling
+['13ba', '-t -n -2 -e8', [\'t_tab'], [\'tn2e8-t_tab'], 0],
+['13bb', '-t -n: -2 -e8', [\'t_tab'], [\'tn_2e8-t_tab'], 0],
+['13bc', '-t -n: -2 -e8 -S----', [\'t_tab'], [\'tn_2e8S-t_tab'], 0],
+['13bd', '-t -n -2 -e8 -o3', [\'t_tab'], [\'tn2e8o3-t_tab'], 0],
+# number-separator TAB not treated as input text-tab, no '-e' expansion
+['13be', '-t -n -2 -e5 -o3', [\'t_tab'], [\'tn2e5o3-t_tab'], 0],
+# input-tab-char ':' not equal default (text) TABs
+['13bf', '-t -n -2 -e:8', [\'t_tab_'], [\'tn2e8-t_tab'], 0],
+#
+# options -w/-s: POSIX-compliant, means adapting the interference of -w/-s
+# with multi-column output from other UNIXes (SunOS e.g.);
+# columns, truncated = 72 / separator = space :
+['14a', '-2 -f', [\'t_notab'], [\'2f-t_notab'], 0],
+# full lines, no truncation / separator = TAB :
+['14b', '-2 -s -f', [\'t_notab'], [\'2sf-t_notab'], 0],
+# full lines, no truncation / separator = ':' :
+['14c', '-2 -s: -f', [\'t_notab'], [\'2s_f-t_notab'], 0],
+# columns, truncated = 60 / separator = space :
+['14d', '-2 -w60 -f', [\'t_notab'], [\'2w60f-t_notab'], 0],
+# columns, truncated = 60 / no separator (SunOS-BUG: line width to small):
+['14e', '-2 -s -w60 -f', [\'t_notab'], [\'2sw60f-t_notab'], 0],
+# columns, truncated = 60 / separator = ':' (HP-UX.10.20-2-BUG:
+# ':' missing with -m option):
+['14f', '-2 -s: -w60 -f', [\'t_notab'], [\'2s_w60f-t_nota'], 0],
+#
+# new long-options -W/-S/-J disentangle those options (see also No.'10*')
+# columns, truncated = 72 / no separator :
+['14g', '-2 -S -f', [\'t_notab'], [\'2-Sf-t_notab'], 0],
+# full lines, no truncation / separator = TAB : (Input: -S"<TAB>")
+['14h', '-2 -S" " -J -f', [\'t_notab'], [\'2sf-t_notab'], 0],
+# columns, truncated = 72 / separator ':' :
+['14i', '-2 -S: -f', [\'t_notab'], [\'2-S_f-t_notab'], 0],
+# full lines, no truncation / separator = ':' :
+['14j', '-2 -S: -J -f', [\'t_notab'], [\'2s_f-t_notab'], 0],
+# columns, truncated = 60 / separator = space:
+['14k', '-2 -W60 -f', [\'t_notab'], [\'2w60f-t_notab'], 0],
+# columns, truncated = 60 / no separator :
+['14l', '-2 -S -W60 -f', [\'t_notab'], [\'2sw60f-t_notab'], 0],
+# columns, truncated = 60 / separator = ':' :
+['14m', '-2 -S: -W60 -f', [\'t_notab'], [\'2s_w60f-t_nota'], 0],
+#
+# Tabify multiple spaces, -i option
+# number of input spaces between a and b must not change; be careful
+# comparing with other UNIXes (some other SunOS examples are OK !?)
+# SunOS.5.5.1-BUG: 8 input spaces --> 11 output spaces between a and b;
+['i-opt-a', '-tn -i5 -h ""', "a b\n", " 1 a b\n", 0],
+# SunOS.5.5.1-BUG: 8 input spaces --> 9 output spaces between a and b;
+['i-opt-b', '-tn -i5 -o9 -h ""', "a b\n",
+ " 1 a b\n", 0],
+#
+# line number overflow not allowed: cut off leading digits;
+# don't adapt other UNIXes, no real standard to follow, a consequent
+# programming of column handling may change the GNU pr concept.
+['ncut-a', '-tn2 -N98', "y\ny\ny\ny\ny\n",
+ "98 y\n99 y\n00 y\n01 y\n02 y\n", 0],
+['ncut-b', '-tn:2 -N98', "y\ny\ny\ny\ny\n",
+ "98:y\n99:y\n00:y\n01:y\n02:y\n", 0],
+
+['margin-0', '-o 0', '', '', 0],
+
+# BUG fixed: that leading space on 3rd line of output should not be there
+['dbl-sp-a', '-d -l 14 -h ""', "1\n2\n",
+ "\n\n-- Date/Time -- "
+ . "Page 1\n\n\n1\n\n2\n\n\n\n\n\n\n", 0],
+# This test failed with 1.22e and earlier.
+['dbl-sp-b', '-d -t', "1\n2\n", "1\n\n2\n\n", 0],
+
+# This test would segfault with 2.0f and earlier.
+['narrow-1', '-W1 -t', "12345\n", "1\n", 0],
+
+# This test would fail with textutils-2.1 and earlier.
+['col-last', '-W3 -t2', "a\nb\nc\n", "a c\nb\n", 0],
+
+# Make sure that -02 is treated just like -2.
+['col-02', '-W3 -t -02', "a\nb\nc\n", "a c\nb\n", 0],
+# The -2 must override preceding column-count-specifying options.
+['col-2', '-W3 -t -4 --columns=1 -2', "a\nb\nc\n", "a c\nb\n", 0],
+# The --columns=2 must override preceding column-count-specifying options.
+['col-long', '-W3 -t -1 --columns=2', "a\nb\nc\n", "a c\nb\n", 0],
+# Make sure these fail.
+['col-0', '-0', '', '', 1,
+ "$prog: invalid number of columns: '0'\n", $normalize_strerror],
+['col-inval', '-'.'9'x100, '', '', 1,
+ "$prog: invalid number of columns: '". ('9'x100) ."'\n", $normalize_strerror],
+
+# Before coreutils-5.3.1, --pages=1:-1 would be treated like
+# --pages=1:18446744073709551615.
+['neg-page', '--pages=1:-1', '', '', 1,
+ "$prog: invalid --pages argument '1:-1'\n"],
+
+# Up to coreutils-6.10, this would cause pr to decrement its
+# internal "input_position" below zero and sometimes segfault.
+['neg-inp-pos1', '-t -e', "\b\b\b\b\b\b\tx\n", " x\n", 0],
+# NB: while there are 4 backspaces in the input, there are only 3 in the output
+['neg-inp-pos2', '-t -e', "abc\b\b\b\b\tx", "abc\b\b\b x\n", 0],
+
+# This would clobber so much of the heap, it'd segfault or abort every time.
+['smash-heap', '-t -e300', "a".("\b"x50)."\t", "a\b".(" "x300)."\n", 0],
+['smash-heap8', '-t -e', "a".("\b"x50)."\t", "a\b".(" "x 8)."\n", 0],
+
+# Before coreutils-8.13 page numbers were not handled correctly when
+# headers were not printed (when -l <= 10 or -t or -T specified)
+['page-range', '+1:1 -2 -l1 -s" "', "a\nb\nc\n", "a b\n", 0],
+
+# This padded with zeros before coreutils-8.21
+['padding1', '-t -n,15', "1\n", (" "x 14)."1,1\n", 0],
+# This crashed with divide by zero before coreutils-8.21
+['padding2', '-t -n,64', "1\n", (" "x 63)."1,1\n", 0],
+# Ensure we handle buffer truncation correctly
+['padding3', '-t -N1000000 -n,1', "1\n", "0,1\n", 0],
+);
+
+# Convert the above old-style test vectors to the newer
+# format used by Coreutils.pm.
+
+my $pfx = "$ENV{abs_srcdir}/tests/pr";
+
+# Normalize otherwise-variable output page headers.
+my $common_option_prefix = '--date-format="-- Date/Time --" -h x';
+
+my @Tests;
+foreach my $t (@tv)
+ {
+ my ($test_name, $flags, $in, $exp, $ret, $err_msg, $err_sub) = @$t;
+ my $new_ent = [$test_name, $common_option_prefix, $flags];
+ if (!ref $in)
+ {
+ push @$new_ent, {IN=>$in};
+ }
+ else
+ {
+ foreach my $e (@$in)
+ {
+ my $file_name = $$e;
+ push @$new_ent, {IN=>{"$pfx/$file_name"=>undef}};
+ }
+ }
+ if (!ref $exp)
+ {
+ push @$new_ent, {OUT=>$exp};
+ }
+ else
+ {
+ foreach my $e (@$exp)
+ {
+ my $file_name = $$e;
+ push @$new_ent, {OUT=>{"$pfx/$file_name"=>undef}};
+ }
+ }
+ $ret
+ and push @$new_ent, {EXIT=>$ret}, {ERR=>$err_msg}, {ERR_SUBST=>$err_sub};
+ push @Tests, $new_ent;
+ }
+
+# Exercise a bug with pr -m -s (commit 553d347)
+push @Tests,
+ ['merge-w-tabs', '-m -s -t',
+ {IN=>{1=>"a\tb\tc\n"}},
+ {IN=>{2=>"m\tn\to\n"}},
+ {IN=>{3=>"x\ty\tz\n"}},
+ {OUT=>join("\t", qw(a b c m n o x y z)) . "\n"} ];
+
+@Tests = triple_test \@Tests;
+
+my $save_temps = $ENV{DEBUG};
+my $verbose = $ENV{VERBOSE};
+
+my $fail = run_tests ($prog, $prog, \@Tests, $save_temps, $verbose);
+exit $fail;
diff --git a/tests/pr/w72l17f-ll b/tests/pr/w72l17f-ll
deleted file mode 100644
index 1cbbf4e..0000000
--- a/tests/pr/w72l17f-ll
+++ /dev/null
@@ -1,92 +0,0 @@
--- Date/Time -- x Page 1
-
-
-1<<< -Test: FF's in Text >>>
-2<<< -b -3 / -a -3 / ... >>>
-3<<< >>>
-4<<< 123456789 123456789 123456789 123456789 123456789 123456789 123456789 >>>
-
-6<<< -Arangements: One Empty Page >>>
-7<<< \f\f\n; text\f\n\ftext; \f\ftext; >>>
-8<<< f\f\n; \f\n\f\n; >>>
-9<<< >>>
-10<<< >>>
-1<<< >>>
-2<<< >>>
-3<<< truncation before FF; r_r_o_l-test: >>>
-14<<< 123456789 123456789 123456789 >>>
- -- Date/Time -- x Page 2
-
-
-
- -- Date/Time -- x Page 3
-
-
-15<<< xyzxyzxyz XYZXYZXYZ abcabcab >>>
-16<<< 123456789 xyzxyzxyz XYZXYZXYZ >>>
-7<<< >>>
-8<<< >>>
-9<<< >>>
-20<<< >>>
-1<<< >>>
-
-
-4<<< >>>
-5<<< >>>
-6<<< >>>
-27<<< truncation before FF; (r_l-test): >>>
-28<<< trunc
- -- Date/Time -- x Page 4
-
-
-
- -- Date/Time -- x Page 5
-
-
-29<<<xyzxyzxyz XYZXYZXYZ abcabcab >>>
-30<<< 123456789 xyzxyzxyz XYZXYZXYZ >>>
-1<<< >>>
-2<<< abcdefghi >>>
-3<<< >>>
-4<<< >>>
-5<<< >>>
-6<<< >>>
-7<<< >>>
-8<<< >>>
-9<<< abcdefghi >>>
-40<<< 123456789 >>>
-41<<< XYZXYZXYZ abcabcab >>>
-42<<< 123456789 abcdefghi ABCDEDFHI >>>
- -- Date/Time -- x Page 6
-
-
-
- -- Date/Time -- x Page 7
-
-
-
- -- Date/Time -- x Page 8
-
-
-43<<< xyzxyzxyz XYZXYZXYZ abcabcab >>>
-44<<< 123456789 xyzxyzxyz XYZXYZXYZ >>>
-5<<< >>>
-6<<< >>>
-7<<< >>>
-8<<< >>>
-9<<< >>>
-50<<< >>>
-1<<< >>>
-2<<< >>>
-3<<< >>>
-4<<< >>>
-55<<< XYZXYZXYZ abcabcab >>>
-56<<< 123456789 abcdefghi ABCDEDFHI >>>
- -- Date/Time -- x Page 9
-
-
-57<<< xyzxyzxyz XYZXYZXYZ abcabcab >>>
-58<<< 123456789 xyzxyzxyz XYZXYZXYZ >>>
-9<<< >>>
-60<<< 123456789 >>>
- \ No newline at end of file
diff --git a/tests/pr/w72l24f-ll b/tests/pr/w72l24f-ll
new file mode 100644
index 0000000..109cbaa
--- /dev/null
+++ b/tests/pr/w72l24f-ll
@@ -0,0 +1,110 @@
+
+
+-- Date/Time -- x Page 1
+
+
+1<<< -Test: FF's in Text >>>
+2<<< -b -3 / -a -3 / ... >>>
+3<<< >>>
+4<<< 123456789 123456789 123456789 123456789 123456789 123456789 123456789 >>>
+
+6<<< -Arangements: One Empty Page >>>
+7<<< \f\f\n; text\f\n\ftext; \f\ftext; >>>
+8<<< f\f\n; \f\n\f\n; >>>
+9<<< >>>
+10<<< >>>
+1<<< >>>
+2<<< >>>
+3<<< truncation before FF; r_r_o_l-test: >>>
+14<<< 123456789 123456789 123456789 >>>
+
+
+-- Date/Time -- x Page 2
+
+
+
+
+
+-- Date/Time -- x Page 3
+
+
+15<<< xyzxyzxyz XYZXYZXYZ abcabcab >>>
+16<<< 123456789 xyzxyzxyz XYZXYZXYZ >>>
+7<<< >>>
+8<<< >>>
+9<<< >>>
+20<<< >>>
+1<<< >>>
+
+
+4<<< >>>
+5<<< >>>
+6<<< >>>
+27<<< truncation before FF; (r_l-test): >>>
+28<<< trunc
+
+
+-- Date/Time -- x Page 4
+
+
+
+
+
+-- Date/Time -- x Page 5
+
+
+29<<<xyzxyzxyz XYZXYZXYZ abcabcab >>>
+30<<< 123456789 xyzxyzxyz XYZXYZXYZ >>>
+1<<< >>>
+2<<< abcdefghi >>>
+3<<< >>>
+4<<< >>>
+5<<< >>>
+6<<< >>>
+7<<< >>>
+8<<< >>>
+9<<< abcdefghi >>>
+40<<< 123456789 >>>
+41<<< XYZXYZXYZ abcabcab >>>
+42<<< 123456789 abcdefghi ABCDEDFHI >>>
+
+
+-- Date/Time -- x Page 6
+
+
+
+
+
+-- Date/Time -- x Page 7
+
+
+
+
+
+-- Date/Time -- x Page 8
+
+
+43<<< xyzxyzxyz XYZXYZXYZ abcabcab >>>
+44<<< 123456789 xyzxyzxyz XYZXYZXYZ >>>
+5<<< >>>
+6<<< >>>
+7<<< >>>
+8<<< >>>
+9<<< >>>
+50<<< >>>
+1<<< >>>
+2<<< >>>
+3<<< >>>
+4<<< >>>
+55<<< XYZXYZXYZ abcabcab >>>
+56<<< 123456789 abcdefghi ABCDEDFHI >>>
+
+
+-- Date/Time -- x Page 9
+
+
+57<<< xyzxyzxyz XYZXYZXYZ abcabcab >>>
+58<<< 123456789 xyzxyzxyz XYZXYZXYZ >>>
+9<<< >>>
+60<<< 123456789 >>>
+ \ No newline at end of file
diff --git a/tests/priv-check b/tests/priv-check
deleted file mode 100644
index b0d6c92..0000000
--- a/tests/priv-check
+++ /dev/null
@@ -1,94 +0,0 @@
-# -*- sh -*-
-# Source this file at the beginning of a test that works
-# only when run as root or as non-root.
-
-# Copyright (C) 2001, 2003, 2004 Free Software Foundation, Inc.
-
-# This program is free software; you can redistribute it and/or modify
-# it under the terms of the GNU General Public License as published by
-# the Free Software Foundation; either version 2 of the License, or
-# (at your option) any later version.
-
-# This program is distributed in the hope that it will be useful,
-# but WITHOUT ANY WARRANTY; without even the implied warranty of
-# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
-# GNU General Public License for more details.
-
-# You should have received a copy of the GNU General Public License
-# along with this program; if not, write to the Free Software
-# Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA
-# 02110-1301, USA.
-
-case "$PRIV_CHECK_ARG" in
- require-root) who='as root';;
- require-non-root) who='by an unprivileged user';;
- *) echo "Usage: PRIV_CHECK_ARG={require-root|require-non-root} . priv-check"\
- 1>&2; exit 1;;
-esac
-
-# Make sure id -u succeeds.
-my_uid=`id -u`
-test $? = 0 || {
- echo "$0: cannot run \`id -u'" 1>&2
- (exit 1); exit 1
-}
-
-# Make sure it gives valid output.
-case $my_uid in
- *[!0-9]*)
- echo "$0: invalid output (\`$my_uid') from \`id -u'" 1>&2
- (exit 1); exit 1
- ;;
- *) ;;
-esac
-
-test $my_uid = 0 && \
-{
- # When running as root, always ensure that we have a valid non-root username.
- # As non-root, don't do anything, since we won't be running setuidgid.
- : ${NON_ROOT_USERNAME=nobody}
-
- # Ensure that the supplied username is valid and with UID != 0.
- coreutils_non_root_uid=`id -u $NON_ROOT_USERNAME`
- test $? = 0 || \
- {
- echo "$0: This command failed: \`id -u $NON_ROOT_USERNAME'" 1>&2
- echo "$0: Skipping this test. To enable it, set the envvar" 1>&2
- echo "$0: NON_ROOT_USERNAME to a non-root user name." 1>&2
- (exit 77); exit 77
- }
- test "$coreutils_non_root_uid" = 0 && \
- {
- echo "$0: The specified NON_ROOT_USERNAME ($NON_ROOT_USERNAME)" 1>&2
- echo "$0: is invalid because its UID is 0." 1>&2
- (exit 1); exit 1
- }
-}
-
-give_msg=no
-case $PRIV_CHECK_ARG:$my_uid in
- require-root:0) ;;
- require-root:*) give_msg=yes ;;
- require-non-root:0)
- # `.' must be writable by $NON_ROOT_USERNAME
- setuidgid $NON_ROOT_USERNAME test -w . ||
- {
- echo "$0: `pwd`: not writable by user \`$NON_ROOT_USERNAME'" 1>&2
- echo "$0: skipping this test" 1>&2
- (exit 77); exit 77
- }
- exec setuidgid $NON_ROOT_USERNAME env PATH="$PATH" $0
- ;;
- require-non-root:*) ;;
-esac
-
-test $give_msg = yes && {
- cat <<EOF
-***************************
-NOTICE:
-$0: This test is being skipped, since it works only
-when run $who.
-***************************
-EOF
- (exit 77); exit 77
-}
diff --git a/tests/readlink/Makefile.am b/tests/readlink/Makefile.am
deleted file mode 100644
index 4ff7ef3..0000000
--- a/tests/readlink/Makefile.am
+++ /dev/null
@@ -1,6 +0,0 @@
-## Process this file with automake to produce Makefile.in -*-Makefile-*-.
-TESTS = rl-1 can-e can-f can-m
-EXTRA_DIST = $(TESTS)
-TESTS_ENVIRONMENT = \
- CU_TEST_NAME=`basename $(abs_srcdir)`,$$tst \
- PATH="$(VG_PATH_PREFIX)`pwd`/../../src$(PATH_SEPARATOR)$$PATH"
diff --git a/tests/readlink/Makefile.in b/tests/readlink/Makefile.in
deleted file mode 100644
index e2d7264..0000000
--- a/tests/readlink/Makefile.in
+++ /dev/null
@@ -1,716 +0,0 @@
-# Makefile.in generated by automake 1.10 from Makefile.am.
-# @configure_input@
-
-# Copyright (C) 1994, 1995, 1996, 1997, 1998, 1999, 2000, 2001, 2002,
-# 2003, 2004, 2005, 2006 Free Software Foundation, Inc.
-# This Makefile.in is free software; the Free Software Foundation
-# gives unlimited permission to copy and/or distribute it,
-# with or without modifications, as long as this notice is preserved.
-
-# This program is distributed in the hope that it will be useful,
-# but WITHOUT ANY WARRANTY, to the extent permitted by law; without
-# even the implied warranty of MERCHANTABILITY or FITNESS FOR A
-# PARTICULAR PURPOSE.
-
-@SET_MAKE@
-VPATH = @srcdir@
-pkgdatadir = $(datadir)/@PACKAGE@
-pkglibdir = $(libdir)/@PACKAGE@
-pkgincludedir = $(includedir)/@PACKAGE@
-am__cd = CDPATH="$${ZSH_VERSION+.}$(PATH_SEPARATOR)" && cd
-install_sh_DATA = $(install_sh) -c -m 644
-install_sh_PROGRAM = $(install_sh) -c
-install_sh_SCRIPT = $(install_sh) -c
-INSTALL_HEADER = $(INSTALL_DATA)
-transform = $(program_transform_name)
-NORMAL_INSTALL = :
-PRE_INSTALL = :
-POST_INSTALL = :
-NORMAL_UNINSTALL = :
-PRE_UNINSTALL = :
-POST_UNINSTALL = :
-build_triplet = @build@
-host_triplet = @host@
-subdir = tests/readlink
-DIST_COMMON = $(srcdir)/Makefile.am $(srcdir)/Makefile.in
-ACLOCAL_M4 = $(top_srcdir)/aclocal.m4
-am__aclocal_m4_deps = $(top_srcdir)/m4/absolute-header.m4 \
- $(top_srcdir)/m4/acl.m4 $(top_srcdir)/m4/alloca.m4 \
- $(top_srcdir)/m4/allocsa.m4 $(top_srcdir)/m4/argmatch.m4 \
- $(top_srcdir)/m4/arpa_inet_h.m4 $(top_srcdir)/m4/assert.m4 \
- $(top_srcdir)/m4/atexit.m4 $(top_srcdir)/m4/autobuild.m4 \
- $(top_srcdir)/m4/backupfile.m4 $(top_srcdir)/m4/base64.m4 \
- $(top_srcdir)/m4/bison.m4 $(top_srcdir)/m4/boottime.m4 \
- $(top_srcdir)/m4/c-strtod.m4 $(top_srcdir)/m4/calloc.m4 \
- $(top_srcdir)/m4/canon-host.m4 \
- $(top_srcdir)/m4/canonicalize.m4 \
- $(top_srcdir)/m4/chdir-long.m4 $(top_srcdir)/m4/check-decl.m4 \
- $(top_srcdir)/m4/chown.m4 $(top_srcdir)/m4/clock_time.m4 \
- $(top_srcdir)/m4/cloexec.m4 $(top_srcdir)/m4/close-stream.m4 \
- $(top_srcdir)/m4/closeout.m4 $(top_srcdir)/m4/codeset.m4 \
- $(top_srcdir)/m4/config-h.m4 $(top_srcdir)/m4/cycle-check.m4 \
- $(top_srcdir)/m4/d-ino.m4 $(top_srcdir)/m4/d-type.m4 \
- $(top_srcdir)/m4/dirfd.m4 $(top_srcdir)/m4/dirname.m4 \
- $(top_srcdir)/m4/dos.m4 $(top_srcdir)/m4/double-slash-root.m4 \
- $(top_srcdir)/m4/dup2.m4 $(top_srcdir)/m4/eealloc.m4 \
- $(top_srcdir)/m4/eoverflow.m4 $(top_srcdir)/m4/error.m4 \
- $(top_srcdir)/m4/euidaccess-stat.m4 \
- $(top_srcdir)/m4/euidaccess.m4 $(top_srcdir)/m4/exclude.m4 \
- $(top_srcdir)/m4/exitfail.m4 $(top_srcdir)/m4/extensions.m4 \
- $(top_srcdir)/m4/fchdir.m4 $(top_srcdir)/m4/fcntl-safer.m4 \
- $(top_srcdir)/m4/fcntl_h.m4 $(top_srcdir)/m4/fd-reopen.m4 \
- $(top_srcdir)/m4/file-type.m4 $(top_srcdir)/m4/fileblocks.m4 \
- $(top_srcdir)/m4/filemode.m4 $(top_srcdir)/m4/filenamecat.m4 \
- $(top_srcdir)/m4/flexmember.m4 $(top_srcdir)/m4/fnmatch.m4 \
- $(top_srcdir)/m4/fpending.m4 $(top_srcdir)/m4/fprintftime.m4 \
- $(top_srcdir)/m4/free.m4 $(top_srcdir)/m4/fstypename.m4 \
- $(top_srcdir)/m4/fsusage.m4 $(top_srcdir)/m4/ftruncate.m4 \
- $(top_srcdir)/m4/fts.m4 $(top_srcdir)/m4/getaddrinfo.m4 \
- $(top_srcdir)/m4/getcwd-abort-bug.m4 \
- $(top_srcdir)/m4/getcwd-path-max.m4 $(top_srcdir)/m4/getcwd.m4 \
- $(top_srcdir)/m4/getdate.m4 $(top_srcdir)/m4/getdelim.m4 \
- $(top_srcdir)/m4/getgroups.m4 $(top_srcdir)/m4/gethostname.m4 \
- $(top_srcdir)/m4/gethrxtime.m4 $(top_srcdir)/m4/getline.m4 \
- $(top_srcdir)/m4/getloadavg.m4 $(top_srcdir)/m4/getndelim2.m4 \
- $(top_srcdir)/m4/getopt.m4 $(top_srcdir)/m4/getpagesize.m4 \
- $(top_srcdir)/m4/getpass.m4 $(top_srcdir)/m4/gettext.m4 \
- $(top_srcdir)/m4/gettime.m4 $(top_srcdir)/m4/gettimeofday.m4 \
- $(top_srcdir)/m4/getugroups.m4 \
- $(top_srcdir)/m4/getusershell.m4 $(top_srcdir)/m4/glibc21.m4 \
- $(top_srcdir)/m4/gnulib-common.m4 \
- $(top_srcdir)/m4/gnulib-comp.m4 \
- $(top_srcdir)/m4/group-member.m4 \
- $(top_srcdir)/m4/hard-locale.m4 $(top_srcdir)/m4/hash.m4 \
- $(top_srcdir)/m4/host-os.m4 $(top_srcdir)/m4/human.m4 \
- $(top_srcdir)/m4/i-ring.m4 $(top_srcdir)/m4/iconv.m4 \
- $(top_srcdir)/m4/idcache.m4 $(top_srcdir)/m4/inet_ntop.m4 \
- $(top_srcdir)/m4/inline.m4 $(top_srcdir)/m4/intmax_t.m4 \
- $(top_srcdir)/m4/inttostr.m4 $(top_srcdir)/m4/inttypes-pri.m4 \
- $(top_srcdir)/m4/inttypes.m4 $(top_srcdir)/m4/inttypes_h.m4 \
- $(top_srcdir)/m4/isapipe.m4 $(top_srcdir)/m4/jm-macros.m4 \
- $(top_srcdir)/m4/jm-winsz1.m4 $(top_srcdir)/m4/jm-winsz2.m4 \
- $(top_srcdir)/m4/lchmod.m4 $(top_srcdir)/m4/lchown.m4 \
- $(top_srcdir)/m4/lib-check.m4 $(top_srcdir)/m4/lib-ignore.m4 \
- $(top_srcdir)/m4/lib-ld.m4 $(top_srcdir)/m4/lib-link.m4 \
- $(top_srcdir)/m4/lib-prefix.m4 $(top_srcdir)/m4/link-follow.m4 \
- $(top_srcdir)/m4/localcharset.m4 \
- $(top_srcdir)/m4/long-options.m4 \
- $(top_srcdir)/m4/longdouble.m4 $(top_srcdir)/m4/longlong.m4 \
- $(top_srcdir)/m4/ls-mntd-fs.m4 $(top_srcdir)/m4/lstat.m4 \
- $(top_srcdir)/m4/mbchar.m4 $(top_srcdir)/m4/mbiter.m4 \
- $(top_srcdir)/m4/mbrtowc.m4 $(top_srcdir)/m4/mbscasecmp.m4 \
- $(top_srcdir)/m4/mbstate_t.m4 $(top_srcdir)/m4/mbswidth.m4 \
- $(top_srcdir)/m4/md5.m4 $(top_srcdir)/m4/memcasecmp.m4 \
- $(top_srcdir)/m4/memchr.m4 $(top_srcdir)/m4/memcmp.m4 \
- $(top_srcdir)/m4/memcoll.m4 $(top_srcdir)/m4/memcpy.m4 \
- $(top_srcdir)/m4/memmove.m4 $(top_srcdir)/m4/mempcpy.m4 \
- $(top_srcdir)/m4/memrchr.m4 $(top_srcdir)/m4/memset.m4 \
- $(top_srcdir)/m4/memxfrm.m4 $(top_srcdir)/m4/mkancesdirs.m4 \
- $(top_srcdir)/m4/mkdir-p.m4 $(top_srcdir)/m4/mkdir-slash.m4 \
- $(top_srcdir)/m4/mkstemp.m4 $(top_srcdir)/m4/mktime.m4 \
- $(top_srcdir)/m4/modechange.m4 $(top_srcdir)/m4/mountlist.m4 \
- $(top_srcdir)/m4/mpsort.m4 $(top_srcdir)/m4/nanosleep.m4 \
- $(top_srcdir)/m4/netinet_in_h.m4 $(top_srcdir)/m4/nls.m4 \
- $(top_srcdir)/m4/openat.m4 $(top_srcdir)/m4/pathmax.m4 \
- $(top_srcdir)/m4/perl.m4 $(top_srcdir)/m4/physmem.m4 \
- $(top_srcdir)/m4/po.m4 $(top_srcdir)/m4/posixtm.m4 \
- $(top_srcdir)/m4/posixver.m4 $(top_srcdir)/m4/prereq.m4 \
- $(top_srcdir)/m4/progtest.m4 $(top_srcdir)/m4/putenv.m4 \
- $(top_srcdir)/m4/quote.m4 $(top_srcdir)/m4/quotearg.m4 \
- $(top_srcdir)/m4/randint.m4 $(top_srcdir)/m4/randperm.m4 \
- $(top_srcdir)/m4/randread.m4 $(top_srcdir)/m4/readlink.m4 \
- $(top_srcdir)/m4/readtokens.m4 $(top_srcdir)/m4/readutmp.m4 \
- $(top_srcdir)/m4/regex.m4 \
- $(top_srcdir)/m4/rename-dest-slash.m4 \
- $(top_srcdir)/m4/rename.m4 $(top_srcdir)/m4/rmdir-errno.m4 \
- $(top_srcdir)/m4/rmdir.m4 $(top_srcdir)/m4/root-dev-ino.m4 \
- $(top_srcdir)/m4/rpmatch.m4 $(top_srcdir)/m4/safe-read.m4 \
- $(top_srcdir)/m4/safe-write.m4 $(top_srcdir)/m4/same.m4 \
- $(top_srcdir)/m4/save-cwd.m4 $(top_srcdir)/m4/savedir.m4 \
- $(top_srcdir)/m4/savewd.m4 $(top_srcdir)/m4/setenv.m4 \
- $(top_srcdir)/m4/settime.m4 $(top_srcdir)/m4/sha1.m4 \
- $(top_srcdir)/m4/sha256.m4 $(top_srcdir)/m4/sha512.m4 \
- $(top_srcdir)/m4/sig2str.m4 $(top_srcdir)/m4/snprintf.m4 \
- $(top_srcdir)/m4/socklen.m4 $(top_srcdir)/m4/sockpfaf.m4 \
- $(top_srcdir)/m4/ssize_t.m4 $(top_srcdir)/m4/st_dm_mode.m4 \
- $(top_srcdir)/m4/stat-prog.m4 $(top_srcdir)/m4/stat-time.m4 \
- $(top_srcdir)/m4/stdarg.m4 $(top_srcdir)/m4/stdbool.m4 \
- $(top_srcdir)/m4/stdint.m4 $(top_srcdir)/m4/stdint_h.m4 \
- $(top_srcdir)/m4/stdio-safer.m4 $(top_srcdir)/m4/stdio_h.m4 \
- $(top_srcdir)/m4/stdlib-safer.m4 $(top_srcdir)/m4/stdlib_h.m4 \
- $(top_srcdir)/m4/stpcpy.m4 $(top_srcdir)/m4/strcspn.m4 \
- $(top_srcdir)/m4/strdup.m4 $(top_srcdir)/m4/strftime.m4 \
- $(top_srcdir)/m4/string_h.m4 $(top_srcdir)/m4/strndup.m4 \
- $(top_srcdir)/m4/strnlen.m4 $(top_srcdir)/m4/strnumcmp.m4 \
- $(top_srcdir)/m4/strpbrk.m4 $(top_srcdir)/m4/strtod.m4 \
- $(top_srcdir)/m4/strtoimax.m4 $(top_srcdir)/m4/strtol.m4 \
- $(top_srcdir)/m4/strtoll.m4 $(top_srcdir)/m4/strtoul.m4 \
- $(top_srcdir)/m4/strtoull.m4 $(top_srcdir)/m4/strtoumax.m4 \
- $(top_srcdir)/m4/strverscmp.m4 \
- $(top_srcdir)/m4/sys_socket_h.m4 \
- $(top_srcdir)/m4/sys_stat_h.m4 $(top_srcdir)/m4/sys_time_h.m4 \
- $(top_srcdir)/m4/tempname.m4 $(top_srcdir)/m4/time_h.m4 \
- $(top_srcdir)/m4/time_r.m4 $(top_srcdir)/m4/timespec.m4 \
- $(top_srcdir)/m4/tm_gmtoff.m4 $(top_srcdir)/m4/tzset.m4 \
- $(top_srcdir)/m4/unicodeio.m4 $(top_srcdir)/m4/unistd-safer.m4 \
- $(top_srcdir)/m4/unistd_h.m4 $(top_srcdir)/m4/unlink-busy.m4 \
- $(top_srcdir)/m4/unlinkdir.m4 $(top_srcdir)/m4/unlocked-io.m4 \
- $(top_srcdir)/m4/uptime.m4 $(top_srcdir)/m4/userspec.m4 \
- $(top_srcdir)/m4/utimbuf.m4 $(top_srcdir)/m4/utime.m4 \
- $(top_srcdir)/m4/utimecmp.m4 $(top_srcdir)/m4/utimens.m4 \
- $(top_srcdir)/m4/utimes-null.m4 $(top_srcdir)/m4/utimes.m4 \
- $(top_srcdir)/m4/vasnprintf.m4 $(top_srcdir)/m4/vasprintf.m4 \
- $(top_srcdir)/m4/wchar.m4 $(top_srcdir)/m4/wchar_t.m4 \
- $(top_srcdir)/m4/wctype.m4 $(top_srcdir)/m4/wcwidth.m4 \
- $(top_srcdir)/m4/wint_t.m4 $(top_srcdir)/m4/xalloc.m4 \
- $(top_srcdir)/m4/xfts.m4 $(top_srcdir)/m4/xgetcwd.m4 \
- $(top_srcdir)/m4/xnanosleep.m4 $(top_srcdir)/m4/xstrndup.m4 \
- $(top_srcdir)/m4/xstrtod.m4 $(top_srcdir)/m4/xstrtol.m4 \
- $(top_srcdir)/m4/yesno.m4 $(top_srcdir)/configure.ac
-am__configure_deps = $(am__aclocal_m4_deps) $(CONFIGURE_DEPENDENCIES) \
- $(ACLOCAL_M4)
-mkinstalldirs = $(install_sh) -d
-CONFIG_HEADER = $(top_builddir)/lib/config.h
-CONFIG_CLEAN_FILES =
-SOURCES =
-DIST_SOURCES =
-DISTFILES = $(DIST_COMMON) $(DIST_SOURCES) $(TEXINFOS) $(EXTRA_DIST)
-ABSOLUTE_DIRENT_H = @ABSOLUTE_DIRENT_H@
-ABSOLUTE_FCNTL_H = @ABSOLUTE_FCNTL_H@
-ABSOLUTE_INTTYPES_H = @ABSOLUTE_INTTYPES_H@
-ABSOLUTE_NETINET_IN_H = @ABSOLUTE_NETINET_IN_H@
-ABSOLUTE_STDINT_H = @ABSOLUTE_STDINT_H@
-ABSOLUTE_STDIO_H = @ABSOLUTE_STDIO_H@
-ABSOLUTE_STDLIB_H = @ABSOLUTE_STDLIB_H@
-ABSOLUTE_STRING_H = @ABSOLUTE_STRING_H@
-ABSOLUTE_SYS_SOCKET_H = @ABSOLUTE_SYS_SOCKET_H@
-ABSOLUTE_SYS_STAT_H = @ABSOLUTE_SYS_STAT_H@
-ABSOLUTE_SYS_TIME_H = @ABSOLUTE_SYS_TIME_H@
-ABSOLUTE_TIME_H = @ABSOLUTE_TIME_H@
-ABSOLUTE_UNISTD_H = @ABSOLUTE_UNISTD_H@
-ABSOLUTE_WCHAR_H = @ABSOLUTE_WCHAR_H@
-ABSOLUTE_WCTYPE_H = @ABSOLUTE_WCTYPE_H@
-ACLOCAL = @ACLOCAL@
-ALLOCA = @ALLOCA@
-ALLOCA_H = @ALLOCA_H@
-AMTAR = @AMTAR@
-ARPA_INET_H = @ARPA_INET_H@
-AUTOCONF = @AUTOCONF@
-AUTOHEADER = @AUTOHEADER@
-AUTOMAKE = @AUTOMAKE@
-AWK = @AWK@
-BITSIZEOF_PTRDIFF_T = @BITSIZEOF_PTRDIFF_T@
-BITSIZEOF_SIG_ATOMIC_T = @BITSIZEOF_SIG_ATOMIC_T@
-BITSIZEOF_SIZE_T = @BITSIZEOF_SIZE_T@
-BITSIZEOF_WCHAR_T = @BITSIZEOF_WCHAR_T@
-BITSIZEOF_WINT_T = @BITSIZEOF_WINT_T@
-CC = @CC@
-CCDEPMODE = @CCDEPMODE@
-CFLAGS = @CFLAGS@
-CPP = @CPP@
-CPPFLAGS = @CPPFLAGS@
-CYGPATH_W = @CYGPATH_W@
-DEFAULT_POSIX2_VERSION = @DEFAULT_POSIX2_VERSION@
-DEFS = @DEFS@
-DEPDIR = @DEPDIR@
-DF_PROG = @DF_PROG@
-DIRENT_H = @DIRENT_H@
-ECHO_C = @ECHO_C@
-ECHO_N = @ECHO_N@
-ECHO_T = @ECHO_T@
-EGREP = @EGREP@
-EOVERFLOW = @EOVERFLOW@
-EXEEXT = @EXEEXT@
-FCNTL_H = @FCNTL_H@
-FNMATCH_H = @FNMATCH_H@
-GETLOADAVG_LIBS = @GETLOADAVG_LIBS@
-GETOPT_H = @GETOPT_H@
-GLIBC21 = @GLIBC21@
-GMSGFMT = @GMSGFMT@
-GMSGFMT_015 = @GMSGFMT_015@
-GNULIB_CHOWN = @GNULIB_CHOWN@
-GNULIB_DUP2 = @GNULIB_DUP2@
-GNULIB_FCHDIR = @GNULIB_FCHDIR@
-GNULIB_FPRINTF_POSIX = @GNULIB_FPRINTF_POSIX@
-GNULIB_FTRUNCATE = @GNULIB_FTRUNCATE@
-GNULIB_GETCWD = @GNULIB_GETCWD@
-GNULIB_GETLOGIN_R = @GNULIB_GETLOGIN_R@
-GNULIB_GETSUBOPT = @GNULIB_GETSUBOPT@
-GNULIB_IMAXABS = @GNULIB_IMAXABS@
-GNULIB_IMAXDIV = @GNULIB_IMAXDIV@
-GNULIB_MBSCASECMP = @GNULIB_MBSCASECMP@
-GNULIB_MBSCASESTR = @GNULIB_MBSCASESTR@
-GNULIB_MBSCHR = @GNULIB_MBSCHR@
-GNULIB_MBSCSPN = @GNULIB_MBSCSPN@
-GNULIB_MBSLEN = @GNULIB_MBSLEN@
-GNULIB_MBSNCASECMP = @GNULIB_MBSNCASECMP@
-GNULIB_MBSPBRK = @GNULIB_MBSPBRK@
-GNULIB_MBSPCASECMP = @GNULIB_MBSPCASECMP@
-GNULIB_MBSRCHR = @GNULIB_MBSRCHR@
-GNULIB_MBSSEP = @GNULIB_MBSSEP@
-GNULIB_MBSSPN = @GNULIB_MBSSPN@
-GNULIB_MBSSTR = @GNULIB_MBSSTR@
-GNULIB_MBSTOK_R = @GNULIB_MBSTOK_R@
-GNULIB_MEMMEM = @GNULIB_MEMMEM@
-GNULIB_MEMPCPY = @GNULIB_MEMPCPY@
-GNULIB_MEMRCHR = @GNULIB_MEMRCHR@
-GNULIB_MKDTEMP = @GNULIB_MKDTEMP@
-GNULIB_MKSTEMP = @GNULIB_MKSTEMP@
-GNULIB_PRINTF_POSIX = @GNULIB_PRINTF_POSIX@
-GNULIB_READLINK = @GNULIB_READLINK@
-GNULIB_SNPRINTF = @GNULIB_SNPRINTF@
-GNULIB_SPRINTF_POSIX = @GNULIB_SPRINTF_POSIX@
-GNULIB_STPCPY = @GNULIB_STPCPY@
-GNULIB_STPNCPY = @GNULIB_STPNCPY@
-GNULIB_STRCASESTR = @GNULIB_STRCASESTR@
-GNULIB_STRCHRNUL = @GNULIB_STRCHRNUL@
-GNULIB_STRDUP = @GNULIB_STRDUP@
-GNULIB_STRNDUP = @GNULIB_STRNDUP@
-GNULIB_STRNLEN = @GNULIB_STRNLEN@
-GNULIB_STRPBRK = @GNULIB_STRPBRK@
-GNULIB_STRSEP = @GNULIB_STRSEP@
-GNULIB_STRTOIMAX = @GNULIB_STRTOIMAX@
-GNULIB_STRTOK_R = @GNULIB_STRTOK_R@
-GNULIB_STRTOUMAX = @GNULIB_STRTOUMAX@
-GNULIB_VFPRINTF_POSIX = @GNULIB_VFPRINTF_POSIX@
-GNULIB_VPRINTF_POSIX = @GNULIB_VPRINTF_POSIX@
-GNULIB_VSNPRINTF = @GNULIB_VSNPRINTF@
-GNULIB_VSPRINTF_POSIX = @GNULIB_VSPRINTF_POSIX@
-GNU_PACKAGE = @GNU_PACKAGE@
-GREP = @GREP@
-HAVE_DECL_GETLOGIN_R = @HAVE_DECL_GETLOGIN_R@
-HAVE_DECL_IMAXABS = @HAVE_DECL_IMAXABS@
-HAVE_DECL_IMAXDIV = @HAVE_DECL_IMAXDIV@
-HAVE_DECL_MEMMEM = @HAVE_DECL_MEMMEM@
-HAVE_DECL_MEMRCHR = @HAVE_DECL_MEMRCHR@
-HAVE_DECL_SNPRINTF = @HAVE_DECL_SNPRINTF@
-HAVE_DECL_STRDUP = @HAVE_DECL_STRDUP@
-HAVE_DECL_STRNCASECMP = @HAVE_DECL_STRNCASECMP@
-HAVE_DECL_STRNDUP = @HAVE_DECL_STRNDUP@
-HAVE_DECL_STRNLEN = @HAVE_DECL_STRNLEN@
-HAVE_DECL_STRTOIMAX = @HAVE_DECL_STRTOIMAX@
-HAVE_DECL_STRTOK_R = @HAVE_DECL_STRTOK_R@
-HAVE_DECL_STRTOUMAX = @HAVE_DECL_STRTOUMAX@
-HAVE_DECL_VSNPRINTF = @HAVE_DECL_VSNPRINTF@
-HAVE_DUP2 = @HAVE_DUP2@
-HAVE_FTRUNCATE = @HAVE_FTRUNCATE@
-HAVE_GETSUBOPT = @HAVE_GETSUBOPT@
-HAVE_INTTYPES_H = @HAVE_INTTYPES_H@
-HAVE_LONG_LONG_INT = @HAVE_LONG_LONG_INT@
-HAVE_MEMPCPY = @HAVE_MEMPCPY@
-HAVE_MKDTEMP = @HAVE_MKDTEMP@
-HAVE_NETINET_IN_H = @HAVE_NETINET_IN_H@
-HAVE_READLINK = @HAVE_READLINK@
-HAVE_SIGNED_SIG_ATOMIC_T = @HAVE_SIGNED_SIG_ATOMIC_T@
-HAVE_SIGNED_WCHAR_T = @HAVE_SIGNED_WCHAR_T@
-HAVE_SIGNED_WINT_T = @HAVE_SIGNED_WINT_T@
-HAVE_STDINT_H = @HAVE_STDINT_H@
-HAVE_STPCPY = @HAVE_STPCPY@
-HAVE_STPNCPY = @HAVE_STPNCPY@
-HAVE_STRCASECMP = @HAVE_STRCASECMP@
-HAVE_STRCASESTR = @HAVE_STRCASESTR@
-HAVE_STRCHRNUL = @HAVE_STRCHRNUL@
-HAVE_STRNDUP = @HAVE_STRNDUP@
-HAVE_STRPBRK = @HAVE_STRPBRK@
-HAVE_STRSEP = @HAVE_STRSEP@
-HAVE_STRUCT_TIMEVAL = @HAVE_STRUCT_TIMEVAL@
-HAVE_SYS_BITYPES_H = @HAVE_SYS_BITYPES_H@
-HAVE_SYS_INTTYPES_H = @HAVE_SYS_INTTYPES_H@
-HAVE_SYS_SOCKET_H = @HAVE_SYS_SOCKET_H@
-HAVE_SYS_TIME_H = @HAVE_SYS_TIME_H@
-HAVE_SYS_TYPES_H = @HAVE_SYS_TYPES_H@
-HAVE_UNISTD_H = @HAVE_UNISTD_H@
-HAVE_UNSIGNED_LONG_LONG_INT = @HAVE_UNSIGNED_LONG_LONG_INT@
-HAVE_WCTYPE_H = @HAVE_WCTYPE_H@
-HAVE_WINSOCK2_H = @HAVE_WINSOCK2_H@
-HAVE_WINT_T = @HAVE_WINT_T@
-HAVE_WS2TCPIP_H = @HAVE_WS2TCPIP_H@
-HAVE__BOOL = @HAVE__BOOL@
-HELP2MAN = @HELP2MAN@
-INSTALL = @INSTALL@
-INSTALL_DATA = @INSTALL_DATA@
-INSTALL_PROGRAM = @INSTALL_PROGRAM@
-INSTALL_SCRIPT = @INSTALL_SCRIPT@
-INSTALL_STRIP_PROGRAM = @INSTALL_STRIP_PROGRAM@
-INTLLIBS = @INTLLIBS@
-INTL_MACOSX_LIBS = @INTL_MACOSX_LIBS@
-INTTYPES_H = @INTTYPES_H@
-KMEM_GROUP = @KMEM_GROUP@
-LDFLAGS = @LDFLAGS@
-LIBCOREUTILS_LIBDEPS = @LIBCOREUTILS_LIBDEPS@
-LIBCOREUTILS_LTLIBDEPS = @LIBCOREUTILS_LTLIBDEPS@
-LIBICONV = @LIBICONV@
-LIBINTL = @LIBINTL@
-LIBOBJS = @LIBOBJS@
-LIBS = @LIBS@
-LIB_ACL = @LIB_ACL@
-LIB_ACL_TRIVIAL = @LIB_ACL_TRIVIAL@
-LIB_CLOCK_GETTIME = @LIB_CLOCK_GETTIME@
-LIB_CRYPT = @LIB_CRYPT@
-LIB_EACCESS = @LIB_EACCESS@
-LIB_FDATASYNC = @LIB_FDATASYNC@
-LIB_GETHRXTIME = @LIB_GETHRXTIME@
-LIB_NANOSLEEP = @LIB_NANOSLEEP@
-LN_S = @LN_S@
-LTLIBICONV = @LTLIBICONV@
-LTLIBINTL = @LTLIBINTL@
-LTLIBOBJS = @LTLIBOBJS@
-MAKEINFO = @MAKEINFO@
-MAN = @MAN@
-MKDIR_P = @MKDIR_P@
-MSGFMT = @MSGFMT@
-MSGFMT_015 = @MSGFMT_015@
-MSGMERGE = @MSGMERGE@
-NEED_SETGID = @NEED_SETGID@
-NETINET_IN_H = @NETINET_IN_H@
-OBJEXT = @OBJEXT@
-OPTIONAL_BIN_PROGS = @OPTIONAL_BIN_PROGS@
-PACKAGE = @PACKAGE@
-PACKAGE_BUGREPORT = @PACKAGE_BUGREPORT@
-PACKAGE_NAME = @PACKAGE_NAME@
-PACKAGE_STRING = @PACKAGE_STRING@
-PACKAGE_TARNAME = @PACKAGE_TARNAME@
-PACKAGE_VERSION = @PACKAGE_VERSION@
-PATH_SEPARATOR = @PATH_SEPARATOR@
-PERL = @PERL@
-POSUB = @POSUB@
-POW_LIB = @POW_LIB@
-PRIPTR_PREFIX = @PRIPTR_PREFIX@
-PRI_MACROS_BROKEN = @PRI_MACROS_BROKEN@
-PTRDIFF_T_SUFFIX = @PTRDIFF_T_SUFFIX@
-RANLIB = @RANLIB@
-REPLACE_CHOWN = @REPLACE_CHOWN@
-REPLACE_FCHDIR = @REPLACE_FCHDIR@
-REPLACE_FPRINTF = @REPLACE_FPRINTF@
-REPLACE_GETCWD = @REPLACE_GETCWD@
-REPLACE_GETTIMEOFDAY = @REPLACE_GETTIMEOFDAY@
-REPLACE_LOCALTIME_R = @REPLACE_LOCALTIME_R@
-REPLACE_MKSTEMP = @REPLACE_MKSTEMP@
-REPLACE_NANOSLEEP = @REPLACE_NANOSLEEP@
-REPLACE_PRINTF = @REPLACE_PRINTF@
-REPLACE_SNPRINTF = @REPLACE_SNPRINTF@
-REPLACE_SPRINTF = @REPLACE_SPRINTF@
-REPLACE_STRPTIME = @REPLACE_STRPTIME@
-REPLACE_TIMEGM = @REPLACE_TIMEGM@
-REPLACE_VFPRINTF = @REPLACE_VFPRINTF@
-REPLACE_VPRINTF = @REPLACE_VPRINTF@
-REPLACE_VSNPRINTF = @REPLACE_VSNPRINTF@
-REPLACE_VSPRINTF = @REPLACE_VSPRINTF@
-SEQ_LIBM = @SEQ_LIBM@
-SET_MAKE = @SET_MAKE@
-SHELL = @SHELL@
-SIG_ATOMIC_T_SUFFIX = @SIG_ATOMIC_T_SUFFIX@
-SIZE_T_SUFFIX = @SIZE_T_SUFFIX@
-STDBOOL_H = @STDBOOL_H@
-STDINT_H = @STDINT_H@
-STRIP = @STRIP@
-SYS_SOCKET_H = @SYS_SOCKET_H@
-SYS_STAT_H = @SYS_STAT_H@
-SYS_TIME_H = @SYS_TIME_H@
-SYS_TIME_H_DEFINES_STRUCT_TIMESPEC = @SYS_TIME_H_DEFINES_STRUCT_TIMESPEC@
-TIME_H_DEFINES_STRUCT_TIMESPEC = @TIME_H_DEFINES_STRUCT_TIMESPEC@
-U = @U@
-USE_NLS = @USE_NLS@
-VERSION = @VERSION@
-WCHAR_H = @WCHAR_H@
-WCHAR_T_SUFFIX = @WCHAR_T_SUFFIX@
-WCTYPE_H = @WCTYPE_H@
-WINT_T_SUFFIX = @WINT_T_SUFFIX@
-XGETTEXT = @XGETTEXT@
-XGETTEXT_015 = @XGETTEXT_015@
-YACC = @YACC@
-YFLAGS = @YFLAGS@
-abs_builddir = @abs_builddir@
-abs_srcdir = @abs_srcdir@
-abs_top_builddir = @abs_top_builddir@
-abs_top_srcdir = @abs_top_srcdir@
-ac_ct_CC = @ac_ct_CC@
-am__include = @am__include@
-am__leading_dot = @am__leading_dot@
-am__quote = @am__quote@
-am__tar = @am__tar@
-am__untar = @am__untar@
-bindir = @bindir@
-build = @build@
-build_alias = @build_alias@
-build_cpu = @build_cpu@
-build_os = @build_os@
-build_vendor = @build_vendor@
-builddir = @builddir@
-datadir = @datadir@
-datarootdir = @datarootdir@
-docdir = @docdir@
-dvidir = @dvidir@
-exec_prefix = @exec_prefix@
-gl_LIBOBJS = @gl_LIBOBJS@
-gl_LTLIBOBJS = @gl_LTLIBOBJS@
-host = @host@
-host_alias = @host_alias@
-host_cpu = @host_cpu@
-host_os = @host_os@
-host_vendor = @host_vendor@
-htmldir = @htmldir@
-includedir = @includedir@
-infodir = @infodir@
-install_sh = @install_sh@
-libdir = @libdir@
-libexecdir = @libexecdir@
-localedir = @localedir@
-localstatedir = @localstatedir@
-mandir = @mandir@
-mkdir_p = @mkdir_p@
-oldincludedir = @oldincludedir@
-pdfdir = @pdfdir@
-prefix = @prefix@
-program_transform_name = @program_transform_name@
-psdir = @psdir@
-sbindir = @sbindir@
-sharedstatedir = @sharedstatedir@
-srcdir = @srcdir@
-sysconfdir = @sysconfdir@
-target_alias = @target_alias@
-top_builddir = @top_builddir@
-top_srcdir = @top_srcdir@
-TESTS = rl-1 can-e can-f can-m
-EXTRA_DIST = $(TESTS)
-TESTS_ENVIRONMENT = \
- CU_TEST_NAME=`basename $(abs_srcdir)`,$$tst \
- PATH="$(VG_PATH_PREFIX)`pwd`/../../src$(PATH_SEPARATOR)$$PATH"
-
-all: all-am
-
-.SUFFIXES:
-$(srcdir)/Makefile.in: $(srcdir)/Makefile.am $(am__configure_deps)
- @for dep in $?; do \
- case '$(am__configure_deps)' in \
- *$$dep*) \
- cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh \
- && exit 0; \
- exit 1;; \
- esac; \
- done; \
- echo ' cd $(top_srcdir) && $(AUTOMAKE) --gnu tests/readlink/Makefile'; \
- cd $(top_srcdir) && \
- $(AUTOMAKE) --gnu tests/readlink/Makefile
-.PRECIOUS: Makefile
-Makefile: $(srcdir)/Makefile.in $(top_builddir)/config.status
- @case '$?' in \
- *config.status*) \
- cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh;; \
- *) \
- echo ' cd $(top_builddir) && $(SHELL) ./config.status $(subdir)/$@ $(am__depfiles_maybe)'; \
- cd $(top_builddir) && $(SHELL) ./config.status $(subdir)/$@ $(am__depfiles_maybe);; \
- esac;
-
-$(top_builddir)/config.status: $(top_srcdir)/configure $(CONFIG_STATUS_DEPENDENCIES)
- cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh
-
-$(top_srcdir)/configure: $(am__configure_deps)
- cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh
-$(ACLOCAL_M4): $(am__aclocal_m4_deps)
- cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh
-tags: TAGS
-TAGS:
-
-ctags: CTAGS
-CTAGS:
-
-
-check-TESTS: $(TESTS)
- @failed=0; all=0; xfail=0; xpass=0; skip=0; ws='[ ]'; \
- srcdir=$(srcdir); export srcdir; \
- list=' $(TESTS) '; \
- if test -n "$$list"; then \
- for tst in $$list; do \
- if test -f ./$$tst; then dir=./; \
- elif test -f $$tst; then dir=; \
- else dir="$(srcdir)/"; fi; \
- if $(TESTS_ENVIRONMENT) $${dir}$$tst; then \
- all=`expr $$all + 1`; \
- case " $(XFAIL_TESTS) " in \
- *$$ws$$tst$$ws*) \
- xpass=`expr $$xpass + 1`; \
- failed=`expr $$failed + 1`; \
- echo "XPASS: $$tst"; \
- ;; \
- *) \
- echo "PASS: $$tst"; \
- ;; \
- esac; \
- elif test $$? -ne 77; then \
- all=`expr $$all + 1`; \
- case " $(XFAIL_TESTS) " in \
- *$$ws$$tst$$ws*) \
- xfail=`expr $$xfail + 1`; \
- echo "XFAIL: $$tst"; \
- ;; \
- *) \
- failed=`expr $$failed + 1`; \
- echo "FAIL: $$tst"; \
- ;; \
- esac; \
- else \
- skip=`expr $$skip + 1`; \
- echo "SKIP: $$tst"; \
- fi; \
- done; \
- if test "$$failed" -eq 0; then \
- if test "$$xfail" -eq 0; then \
- banner="All $$all tests passed"; \
- else \
- banner="All $$all tests behaved as expected ($$xfail expected failures)"; \
- fi; \
- else \
- if test "$$xpass" -eq 0; then \
- banner="$$failed of $$all tests failed"; \
- else \
- banner="$$failed of $$all tests did not behave as expected ($$xpass unexpected passes)"; \
- fi; \
- fi; \
- dashes="$$banner"; \
- skipped=""; \
- if test "$$skip" -ne 0; then \
- skipped="($$skip tests were not run)"; \
- test `echo "$$skipped" | wc -c` -le `echo "$$banner" | wc -c` || \
- dashes="$$skipped"; \
- fi; \
- report=""; \
- if test "$$failed" -ne 0 && test -n "$(PACKAGE_BUGREPORT)"; then \
- report="Please report to $(PACKAGE_BUGREPORT)"; \
- test `echo "$$report" | wc -c` -le `echo "$$banner" | wc -c` || \
- dashes="$$report"; \
- fi; \
- dashes=`echo "$$dashes" | sed s/./=/g`; \
- echo "$$dashes"; \
- echo "$$banner"; \
- test -z "$$skipped" || echo "$$skipped"; \
- test -z "$$report" || echo "$$report"; \
- echo "$$dashes"; \
- test "$$failed" -eq 0; \
- else :; fi
-
-distdir: $(DISTFILES)
- @srcdirstrip=`echo "$(srcdir)" | sed 's/[].[^$$\\*]/\\\\&/g'`; \
- topsrcdirstrip=`echo "$(top_srcdir)" | sed 's/[].[^$$\\*]/\\\\&/g'`; \
- list='$(DISTFILES)'; \
- dist_files=`for file in $$list; do echo $$file; done | \
- sed -e "s|^$$srcdirstrip/||;t" \
- -e "s|^$$topsrcdirstrip/|$(top_builddir)/|;t"`; \
- case $$dist_files in \
- */*) $(MKDIR_P) `echo "$$dist_files" | \
- sed '/\//!d;s|^|$(distdir)/|;s,/[^/]*$$,,' | \
- sort -u` ;; \
- esac; \
- for file in $$dist_files; do \
- if test -f $$file || test -d $$file; then d=.; else d=$(srcdir); fi; \
- if test -d $$d/$$file; then \
- dir=`echo "/$$file" | sed -e 's,/[^/]*$$,,'`; \
- if test -d $(srcdir)/$$file && test $$d != $(srcdir); then \
- cp -pR $(srcdir)/$$file $(distdir)$$dir || exit 1; \
- fi; \
- cp -pR $$d/$$file $(distdir)$$dir || exit 1; \
- else \
- test -f $(distdir)/$$file \
- || cp -p $$d/$$file $(distdir)/$$file \
- || exit 1; \
- fi; \
- done
-check-am: all-am
- $(MAKE) $(AM_MAKEFLAGS) check-TESTS
-check: check-am
-all-am: Makefile
-installdirs:
-install: install-am
-install-exec: install-exec-am
-install-data: install-data-am
-uninstall: uninstall-am
-
-install-am: all-am
- @$(MAKE) $(AM_MAKEFLAGS) install-exec-am install-data-am
-
-installcheck: installcheck-am
-install-strip:
- $(MAKE) $(AM_MAKEFLAGS) INSTALL_PROGRAM="$(INSTALL_STRIP_PROGRAM)" \
- install_sh_PROGRAM="$(INSTALL_STRIP_PROGRAM)" INSTALL_STRIP_FLAG=-s \
- `test -z '$(STRIP)' || \
- echo "INSTALL_PROGRAM_ENV=STRIPPROG='$(STRIP)'"` install
-mostlyclean-generic:
-
-clean-generic:
-
-distclean-generic:
- -test -z "$(CONFIG_CLEAN_FILES)" || rm -f $(CONFIG_CLEAN_FILES)
-
-maintainer-clean-generic:
- @echo "This command is intended for maintainers to use"
- @echo "it deletes files that may require special tools to rebuild."
-clean: clean-am
-
-clean-am: clean-generic mostlyclean-am
-
-distclean: distclean-am
- -rm -f Makefile
-distclean-am: clean-am distclean-generic
-
-dvi: dvi-am
-
-dvi-am:
-
-html: html-am
-
-info: info-am
-
-info-am:
-
-install-data-am:
-
-install-dvi: install-dvi-am
-
-install-exec-am:
-
-install-html: install-html-am
-
-install-info: install-info-am
-
-install-man:
-
-install-pdf: install-pdf-am
-
-install-ps: install-ps-am
-
-installcheck-am:
-
-maintainer-clean: maintainer-clean-am
- -rm -f Makefile
-maintainer-clean-am: distclean-am maintainer-clean-generic
-
-mostlyclean: mostlyclean-am
-
-mostlyclean-am: mostlyclean-generic
-
-pdf: pdf-am
-
-pdf-am:
-
-ps: ps-am
-
-ps-am:
-
-uninstall-am:
-
-.MAKE: install-am install-strip
-
-.PHONY: all all-am check check-TESTS check-am clean clean-generic \
- distclean distclean-generic distdir dvi dvi-am html html-am \
- info info-am install install-am install-data install-data-am \
- install-dvi install-dvi-am install-exec install-exec-am \
- install-html install-html-am install-info install-info-am \
- install-man install-pdf install-pdf-am install-ps \
- install-ps-am install-strip installcheck installcheck-am \
- installdirs maintainer-clean maintainer-clean-generic \
- mostlyclean mostlyclean-generic pdf pdf-am ps ps-am uninstall \
- uninstall-am
-
-# Tell versions [3.59,3.63) of GNU make to not export all variables.
-# Otherwise a system limit (for SysV at least) may be exceeded.
-.NOEXPORT:
diff --git a/tests/readlink/can-e b/tests/readlink/can-e
deleted file mode 100755
index 5e30ffc..0000000
--- a/tests/readlink/can-e
+++ /dev/null
@@ -1,136 +0,0 @@
-#!/bin/sh
-# tests for canonicalize-existing mode (readlink -e).
-
-# Copyright (C) 2004, 2006, 2007 Free Software Foundation, Inc.
-
-# This program is free software; you can redistribute it and/or modify
-# it under the terms of the GNU General Public License as published by
-# the Free Software Foundation; either version 2 of the License, or
-# (at your option) any later version.
-
-# This program is distributed in the hope that it will be useful,
-# but WITHOUT ANY WARRANTY; without even the implied warranty of
-# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
-# GNU General Public License for more details.
-
-# You should have received a copy of the GNU General Public License
-# along with this program; if not, write to the Free Software
-# Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA
-# 02110-1301, USA.
-
-if test "$VERBOSE" = yes; then
- set -x
- readlink --version
-fi
-
-pwd=`pwd`
-t0=`echo "$0" |sed 's,.*/,,'`.tmp; tmp=$t0/$$
-trap 'status=$?; cd "$pwd" && chmod -R u+rwx $t0 && rm -rf $t0 && exit $status' 0
-trap 'status=$?; (exit $status); exit $status' 1 2 13 15
-
-fail=1
-while :; do
- bindir=`cd ../../src && pwd`|| break
- my_pwd=`"$bindir/pwd"` || break
-
- mkdir -p $tmp || break
- cd $tmp || break
-
- mkdir subdir removed || break
- touch regfile || break
-
- ln -s regfile link1 || break
- ln -s subdir link2 || break
- ln -s missing link3 || break
- ln -s subdir/missing link4 || break
-
- fail=0
- break
-done
-
-if test $fail = 1; then
- echo "$0: failure in testing framework" 1>&2
- (exit 1); exit 1
-fi
-
-fail=1
-while :; do
- cd "$pwd/$tmp/removed" || break
-
- # Skip this test if the system doesn't let you remove the working directory.
- if rmdir ../removed 2>/dev/null; then
- v=`readlink -e .` && break
- test -z "$v" || break
- fi
-
- cd "$pwd/$tmp" || break
-
- fail=0
- break
-done
-
-if test $fail = 1; then
- (exit $fail); exit $fail
-fi
-
-for p in "" "$pwd/$tmp/"; do
- fail=1
-
- v=`readlink -e "${p}regfile"` || break
- test "$v" = "$my_pwd/$tmp/regfile" || break
-
- v=`readlink -e "${p}./regfile/"` && break
- test -z "$v" || break
-
- v=`readlink -e "${p}subdir"` || break
- test "$v" = "$my_pwd/$tmp/subdir" || break
-
- v=`readlink -e "${p}./subdir/"` || break
- test "$v" = "$my_pwd/$tmp/subdir" || break
-
- v=`readlink -e "${p}missing"` && break
- test -z "$v" || break
-
- v=`readlink -e "${p}./missing/"` && break
- test -z "$v" || break
-
- v=`readlink -e "${p}link1"` || break
- test "$v" = "$my_pwd/$tmp/regfile" || break
-
- v=`readlink -e "${p}./link1/"` && break
- test -z "$v" || break
-
- v=`readlink -e "${p}link1/more"` && break
- test -z "$v" || break
-
- v=`readlink -e "${p}link2"` || break
- test "$v" = "$my_pwd/$tmp/subdir" || break
-
- v=`readlink -e "${p}./link2/"` || break
- test "$v" = "$my_pwd/$tmp/subdir" || break
-
- v=`readlink -e "${p}link2/more"` && break
- test -z "$v" || break
-
- v=`readlink -e "${p}link3"` && break
- test -z "$v" || break
-
- v=`readlink -e "${p}./link3/"` && break
- test -z "$v" || break
-
- v=`readlink -e "${p}link3/more"` && break
- test -z "$v" || break
-
- v=`readlink -e "${p}link4"` && break
- test -z "$v" || break
-
- v=`readlink -e "${p}./link4/"` && break
- test -z "$v" || break
-
- v=`readlink -e "${p}link4/more"` && break
- test -z "$v" || break
-
- fail=0
-done
-
-(exit $fail); exit $fail
diff --git a/tests/readlink/can-e.sh b/tests/readlink/can-e.sh
new file mode 100755
index 0000000..5d82884
--- /dev/null
+++ b/tests/readlink/can-e.sh
@@ -0,0 +1,104 @@
+#!/bin/sh
+# tests for canonicalize-existing mode (readlink -e).
+
+# Copyright (C) 2004-2016 Free Software Foundation, Inc.
+
+# This program is free software: you can redistribute it and/or modify
+# it under the terms of the GNU General Public License as published by
+# the Free Software Foundation, either version 3 of the License, or
+# (at your option) any later version.
+
+# This program is distributed in the hope that it will be useful,
+# but WITHOUT ANY WARRANTY; without even the implied warranty of
+# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
+# GNU General Public License for more details.
+
+# You should have received a copy of the GNU General Public License
+# along with this program. If not, see <http://www.gnu.org/licenses/>.
+
+. "${srcdir=.}/tests/init.sh"; path_prepend_ ./src
+print_ver_ readlink pwd
+
+pwd=$(pwd)
+my_pwd=$(env pwd -P)
+tmp=d
+
+mkdir $tmp || framework_failure_
+cd $tmp || framework_failure_
+
+mkdir subdir removed || framework_failure_
+touch regfile || framework_failure_
+
+ln -s regfile link1 || framework_failure_
+ln -s subdir link2 || framework_failure_
+ln -s missing link3 || framework_failure_
+ln -s subdir/missing link4 || framework_failure_
+
+cd "$pwd/$tmp/removed" || framework_failure_
+
+# Skip this test if the system doesn't let you remove the working directory.
+if rmdir ../removed 2>/dev/null; then
+ v=$(returns_ 1 readlink -e .) || fail=1
+ test -z "$v" || fail=1
+fi
+
+cd "$pwd/$tmp" || fail=1
+
+for p in "" "$pwd/$tmp/"; do
+
+ v=$(readlink -e "${p}regfile") || fail=1
+ test "$v" = "$my_pwd/$tmp/regfile" || fail=1
+
+ v=$(returns_ 1 readlink -e "${p}./regfile/") || fail=1
+ test -z "$v" || fail=1
+
+ v=$(readlink -e "${p}subdir") || fail=1
+ test "$v" = "$my_pwd/$tmp/subdir" || fail=1
+
+ v=$(readlink -e "${p}./subdir/") || fail=1
+ test "$v" = "$my_pwd/$tmp/subdir" || fail=1
+
+ v=$(returns_ 1 readlink -e "${p}missing") || fail=1
+ test -z "$v" || fail=1
+
+ v=$(returns_ 1 readlink -e "${p}./missing/") || fail=1
+ test -z "$v" || fail=1
+
+ v=$(readlink -e "${p}link1") || fail=1
+ test "$v" = "$my_pwd/$tmp/regfile" || fail=1
+
+ v=$(returns_ 1 readlink -e "${p}./link1/") || fail=1
+ test -z "$v" || fail=1
+
+ v=$(returns_ 1 readlink -e "${p}link1/more") || fail=1
+ test -z "$v" || fail=1
+
+ v=$(readlink -e "${p}link2") || fail=1
+ test "$v" = "$my_pwd/$tmp/subdir" || fail=1
+
+ v=$(readlink -e "${p}./link2/") || fail=1
+ test "$v" = "$my_pwd/$tmp/subdir" || fail=1
+
+ v=$(returns_ 1 readlink -e "${p}link2/more") || fail=1
+ test -z "$v" || fail=1
+
+ v=$(returns_ 1 readlink -e "${p}link3") || fail=1
+ test -z "$v" || fail=1
+
+ v=$(returns_ 1 readlink -e "${p}./link3/") || fail=1
+ test -z "$v" || fail=1
+
+ v=$(returns_ 1 readlink -e "${p}link3/more") || fail=1
+ test -z "$v" || fail=1
+
+ v=$(returns_ 1 readlink -e "${p}link4") || fail=1
+ test -z "$v" || fail=1
+
+ v=$(returns_ 1 readlink -e "${p}./link4/") || fail=1
+ test -z "$v" || fail=1
+
+ v=$(returns_ 1 readlink -e "${p}link4/more") || fail=1
+ test -z "$v" || fail=1
+done
+
+Exit $fail
diff --git a/tests/readlink/can-f b/tests/readlink/can-f
deleted file mode 100755
index c83e0ed..0000000
--- a/tests/readlink/can-f
+++ /dev/null
@@ -1,169 +0,0 @@
-#!/bin/sh
-# tests for canonicalize mode (readlink -f).
-
-# Copyright (C) 2004, 2006, 2007 Free Software Foundation, Inc.
-
-# This program is free software; you can redistribute it and/or modify
-# it under the terms of the GNU General Public License as published by
-# the Free Software Foundation; either version 2 of the License, or
-# (at your option) any later version.
-
-# This program is distributed in the hope that it will be useful,
-# but WITHOUT ANY WARRANTY; without even the implied warranty of
-# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
-# GNU General Public License for more details.
-
-# You should have received a copy of the GNU General Public License
-# along with this program; if not, write to the Free Software
-# Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA
-# 02110-1301, USA.
-
-if test "$VERBOSE" = yes; then
- set -x
- readlink --version
-fi
-
-pwd=`pwd`
-t0=`echo "$0" |sed 's,.*/,,'`.tmp; tmp=$t0/$$
-trap 'status=$?; cd "$pwd" && chmod -R u+rwx $t0 && rm -rf $t0 && exit $status' 0
-trap 'status=$?; (exit $status); exit $status' 1 2 13 15
-
-fail=1
-while :; do
- bindir=`cd ../../src && pwd`|| break
- my_pwd=`"$bindir/pwd"` || break
-
- mkdir -p $tmp || break
- cd $tmp || break
-
- mkdir subdir removed || break
- touch regfile || break
-
- ln -s regfile link1 || break
- ln -s subdir link2 || break
- ln -s missing link3 || break
- ln -s subdir/missing link4 || break
-
- fail=0
- break
-done
-
-if test $fail = 1; then
- echo "$0: failure in testing framework" 1>&2
- (exit 1); exit 1
-fi
-
-fail=1
-while :; do
- cd "$pwd/$tmp/removed" || break
-
- # Skip this test if the system doesn't let you remove the working directory.
- if rmdir ../removed 2>/dev/null; then
- v=`readlink -f .` && break
- test -z "$v" || break
- fi
-
- cd "$pwd/$tmp" || break
-
- fail=0
- break
-done
-
-if test $fail = 1; then
- (exit $fail); exit $fail
-fi
-
-for p in "" "$pwd/$tmp/"; do
- fail=1
-
- v=`readlink -f "${p}regfile"` || break
- test "$v" = "$my_pwd/$tmp/regfile" || break
-
- v=`readlink -f "${p}./regfile/"` && break
- test -z "$v" || break
-
- v=`readlink -f "${p}regfile/more"` && break
- test -z "$v" || break
-
- v=`readlink -f "${p}./regfile/more/"` && break
- test -z "$v" || break
-
- v=`readlink -f "${p}subdir"` || break
- test "$v" = "$my_pwd/$tmp/subdir" || break
-
- v=`readlink -f "${p}./subdir/"` || break
- test "$v" = "$my_pwd/$tmp/subdir" || break
-
- v=`readlink -f "${p}subdir/more"` || break
- test "$v" = "$my_pwd/$tmp/subdir/more" || break
-
- v=`readlink -f "${p}./subdir/more/"` && break
- test -z "$v" || break
-
- v=`readlink -f "${p}missing"` || break
- test "$v" = "$my_pwd/$tmp/missing" || break
-
- v=`readlink -f "${p}./missing/"` && break
- test -z "$v" || break
-
- v=`readlink -f "${p}missing/more"` && break
- test -z "$v" || break
-
- v=`readlink -f "${p}./missing/more/"` && break
- test -z "$v" || break
-
- v=`readlink -f "${p}link1"` || break
- test "$v" = "$my_pwd/$tmp/regfile" || break
-
- v=`readlink -f "${p}./link1/"` && break
- test -z "$v" || break
-
- v=`readlink -f "${p}link1/more"` && break
- test -z "$v" || break
-
- v=`readlink -f "${p}./link1/more/"` && break
- test -z "$v" || break
-
- v=`readlink -f "${p}link2"` || break
- test "$v" = "$my_pwd/$tmp/subdir" || break
-
- v=`readlink -f "${p}./link2/"` || break
- test "$v" = "$my_pwd/$tmp/subdir" || break
-
- v=`readlink -f "${p}link2/more"` || break
- test "$v" = "$my_pwd/$tmp/subdir/more" || break
-
- v=`readlink -f "${p}./link2/more/"` && break
- test -z "$v" || break
-
- v=`readlink -f "${p}link2/more/more2"` && break
- test -z "$v" || break
-
- v=`readlink -f "${p}./link2/more/more2/"` && break
- test -z "$v" || break
-
- v=`readlink -f "${p}link3"` || break
- test "$v" = "$my_pwd/$tmp/missing" || break
-
- v=`readlink -f "${p}./link3/"` && break
- test -z "$v" || break
-
- v=`readlink -f "${p}link3/more"` && break
- test -z "$v" || break
-
- v=`readlink -f "${p}./link3/more/"` && break
- test -z "$v" || break
-
- v=`readlink -f "${p}link4"` || break
- test "$v" = "$my_pwd/$tmp/subdir/missing" || break
-
- v=`readlink -f "${p}./link4/"` && break
- test -z "$v" || break
-
- v=`readlink -f "${p}link4/more"` && break
- test -z "$v" || break
-
- fail=0
-done
-
-(exit $fail); exit $fail
diff --git a/tests/readlink/can-f.sh b/tests/readlink/can-f.sh
new file mode 100755
index 0000000..c068960
--- /dev/null
+++ b/tests/readlink/can-f.sh
@@ -0,0 +1,153 @@
+#!/bin/sh
+# tests for canonicalize mode (readlink -f).
+
+# Copyright (C) 2004-2016 Free Software Foundation, Inc.
+
+# This program is free software: you can redistribute it and/or modify
+# it under the terms of the GNU General Public License as published by
+# the Free Software Foundation, either version 3 of the License, or
+# (at your option) any later version.
+
+# This program is distributed in the hope that it will be useful,
+# but WITHOUT ANY WARRANTY; without even the implied warranty of
+# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
+# GNU General Public License for more details.
+
+# You should have received a copy of the GNU General Public License
+# along with this program. If not, see <http://www.gnu.org/licenses/>.
+
+. "${srcdir=.}/tests/init.sh"; path_prepend_ ./src
+print_ver_ readlink pwd
+
+pwd=$(pwd)
+my_pwd=$(env pwd -P)
+tmp=d
+
+mkdir $tmp || framework_failure_
+cd $tmp || framework_failure_
+
+mkdir subdir removed || framework_failure_
+touch regfile || framework_failure_
+
+ln -s regfile link1 || framework_failure_
+ln -s subdir link2 || framework_failure_
+ln -s missing link3 || framework_failure_
+ln -s subdir/missing link4 || framework_failure_
+ln -s link5 link5 || framework_failure_
+
+cd "$pwd/$tmp/removed" || framework_failure_
+
+# Skip this test if the system doesn't let you remove the working directory.
+if rmdir ../removed 2>/dev/null; then
+ v=$(returns_ 1 readlink -e .) || fail=1
+ test -z "$v" || fail=1
+fi
+
+cd "$pwd/$tmp" || fail=1
+
+for p in "" "$pwd/$tmp/"; do
+
+ v=$(readlink -f "${p}regfile") || fail=1
+ test "$v" = "$my_pwd/$tmp/regfile" || fail=1
+
+ v=$(returns_ 1 readlink -f "${p}./regfile/") || fail=1
+ test -z "$v" || fail=1
+
+ v=$(returns_ 1 readlink -f "${p}regfile/more") || fail=1
+ test -z "$v" || fail=1
+
+ v=$(returns_ 1 readlink -f "${p}./regfile/more/") || fail=1
+ test -z "$v" || fail=1
+
+ v=$(readlink -f "${p}subdir") || fail=1
+ test "$v" = "$my_pwd/$tmp/subdir" || fail=1
+
+ v=$(readlink -f "${p}./subdir/") || fail=1
+ test "$v" = "$my_pwd/$tmp/subdir" || fail=1
+
+ v=$(readlink -f "${p}subdir/more") || fail=1
+ test "$v" = "$my_pwd/$tmp/subdir/more" || fail=1
+
+ v=$(readlink -f "${p}./subdir/more/") || fail=1
+ test "$v" = "$my_pwd/$tmp/subdir/more" || fail=1
+
+ v=$(readlink -f "${p}missing") || fail=1
+ test "$v" = "$my_pwd/$tmp/missing" || fail=1
+
+ v=$(readlink -f "${p}./missing/") || fail=1
+ test "$v" = "$my_pwd/$tmp/missing" || fail=1
+
+ v=$(returns_ 1 readlink -f "${p}missing/more") || fail=1
+ test -z "$v" || fail=1
+
+ v=$(returns_ 1 readlink -f "${p}./missing/more/") || fail=1
+ test -z "$v" || fail=1
+
+ v=$(readlink -f "${p}link1") || fail=1
+ test "$v" = "$my_pwd/$tmp/regfile" || fail=1
+
+ v=$(returns_ 1 readlink -f "${p}./link1/") || fail=1
+ test -z "$v" || fail=1
+
+ v=$(returns_ 1 readlink -f "${p}link1/more") || fail=1
+ test -z "$v" || fail=1
+
+ v=$(returns_ 1 readlink -f "${p}./link1/more/") || fail=1
+ test -z "$v" || fail=1
+
+ v=$(readlink -f "${p}link2") || fail=1
+ test "$v" = "$my_pwd/$tmp/subdir" || fail=1
+
+ v=$(readlink -f "${p}./link2/") || fail=1
+ test "$v" = "$my_pwd/$tmp/subdir" || fail=1
+
+ v=$(readlink -f "${p}link2/more") || fail=1
+ test "$v" = "$my_pwd/$tmp/subdir/more" || fail=1
+
+ v=$(readlink -f "${p}./link2/more/") || fail=1
+ test "$v" = "$my_pwd/$tmp/subdir/more" || fail=1
+
+ v=$(returns_ 1 readlink -f "${p}link2/more/more2") || fail=1
+ test -z "$v" || fail=1
+
+ v=$(returns_ 1 readlink -f "${p}./link2/more/more2/") || fail=1
+ test -z "$v" || fail=1
+
+ v=$(readlink -f "${p}link3") || fail=1
+ test "$v" = "$my_pwd/$tmp/missing" || fail=1
+
+ v=$(readlink -f "${p}./link3/") || fail=1
+ test "$v" = "$my_pwd/$tmp/missing" || fail=1
+
+ v=$(returns_ 1 readlink -f "${p}link3/more") || fail=1
+ test -z "$v" || fail=1
+
+ v=$(returns_ 1 readlink -f "${p}./link3/more/") || fail=1
+ test -z "$v" || fail=1
+
+ v=$(readlink -f "${p}link4") || fail=1
+ test "$v" = "$my_pwd/$tmp/subdir/missing" || fail=1
+
+ v=$(readlink -f "${p}./link4/") || fail=1
+ test "$v" = "$my_pwd/$tmp/subdir/missing" || fail=1
+
+ v=$(returns_ 1 readlink -f "${p}link4/more") || fail=1
+ test -z "$v" || fail=1
+
+ v=$(returns_ 1 readlink -f "${p}./link4/more") || fail=1
+ test -z "$v" || fail=1
+
+ v=$(returns_ 1 readlink -f "${p}link5") || fail=1
+ test -z "$v" || fail=1
+
+ v=$(returns_ 1 readlink -f "${p}./link5/") || fail=1
+ test -z "$v" || fail=1
+
+ v=$(returns_ 1 readlink -f "${p}link5/more") || fail=1
+ test -z "$v" || fail=1
+
+ v=$(returns_ 1 readlink -f "${p}./link5/more") || fail=1
+ test -z "$v" || fail=1
+done
+
+Exit $fail
diff --git a/tests/readlink/can-m b/tests/readlink/can-m
deleted file mode 100755
index 1d67c65..0000000
--- a/tests/readlink/can-m
+++ /dev/null
@@ -1,172 +0,0 @@
-#!/bin/sh
-# tests for canonicalize-missing mode (readlink -m).
-
-# Copyright (C) 2004, 2006, 2007 Free Software Foundation, Inc.
-
-# This program is free software; you can redistribute it and/or modify
-# it under the terms of the GNU General Public License as published by
-# the Free Software Foundation; either version 2 of the License, or
-# (at your option) any later version.
-
-# This program is distributed in the hope that it will be useful,
-# but WITHOUT ANY WARRANTY; without even the implied warranty of
-# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
-# GNU General Public License for more details.
-
-# You should have received a copy of the GNU General Public License
-# along with this program; if not, write to the Free Software
-# Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA
-# 02110-1301, USA.
-
-if test "$VERBOSE" = yes; then
- set -x
- readlink --version
-fi
-
-pwd=`pwd`
-t0=`echo "$0" |sed 's,.*/,,'`.tmp; tmp=$t0/$$
-trap 'status=$?; cd "$pwd" && chmod -R u+rwx $t0 && rm -rf $t0 && exit $status' 0
-trap 'status=$?; (exit $status); exit $status' 1 2 13 15
-
-fail=1
-while :; do
- bindir=`cd ../../src && pwd`|| break
- my_pwd=`"$bindir/pwd"` || break
-
- mkdir -p $tmp || break
- cd $tmp || break
-
- mkdir subdir removed || break
- touch regfile || break
-
- ln -s regfile link1 || break
- ln -s subdir link2 || break
- ln -s missing link3 || break
- ln -s subdir/missing link4 || break
-
- fail=0
- break
-done
-
-if test $fail = 1; then
- echo "$0: failure in testing framework" 1>&2
- (exit 1); exit 1
-fi
-
-fail=1
-while :; do
- cd "$pwd/$tmp/removed" || break
-
- # Skip this test if the system doesn't let you remove the working directory.
- if rmdir ../removed 2>/dev/null; then
- v=`readlink -m .` && break
- test -z "$v" || break
- fi
-
- cd "$pwd/$tmp" || break
-
- fail=0
- break
-done
-
-if test $fail = 1; then
- (exit $fail); exit $fail
-fi
-
-for p in "" "$pwd/$tmp/"; do
- fail=1
-
- v=`readlink -m "${p}regfile"` || break
- test "$v" = "$my_pwd/$tmp/regfile" || break
-
- v=`readlink -m "${p}./regfile/"` || break
- test "$v" = "$my_pwd/$tmp/regfile" || break
-
- v=`readlink -m "${p}regfile/more"` || break
- test "$v" = "$my_pwd/$tmp/regfile/more" || break
-
- v=`readlink -m "${p}./regfile/more/"` || break
- test "$v" = "$my_pwd/$tmp/regfile/more" || break
-
- v=`readlink -m "${p}subdir"` || break
- test "$v" = "$my_pwd/$tmp/subdir" || break
-
- v=`readlink -m "${p}./subdir/"` || break
- test "$v" = "$my_pwd/$tmp/subdir" || break
-
- v=`readlink -m "${p}subdir/more"` || break
- test "$v" = "$my_pwd/$tmp/subdir/more" || break
-
- v=`readlink -m "${p}./subdir/more/"` || break
- test "$v" = "$my_pwd/$tmp/subdir/more" || break
-
- v=`readlink -m "${p}missing"` || break
- test "$v" = "$my_pwd/$tmp/missing" || break
-
- v=`readlink -m "${p}./missing/"` || break
- test "$v" = "$my_pwd/$tmp/missing" || break
-
- v=`readlink -m "${p}missing/more"` || break
- test "$v" = "$my_pwd/$tmp/missing/more" || break
-
- v=`readlink -m "${p}./missing/more/"` || break
- test "$v" = "$my_pwd/$tmp/missing/more" || break
-
- v=`readlink -m "${p}link1"` || break
- test "$v" = "$my_pwd/$tmp/regfile" || break
-
- v=`readlink -m "${p}./link1/"` || break
- test "$v" = "$my_pwd/$tmp/regfile" || break
-
- v=`readlink -m "${p}link1/more"` || break
- test "$v" = "$my_pwd/$tmp/regfile/more" || break
-
- v=`readlink -m "${p}./link1/more/"` || break
- test "$v" = "$my_pwd/$tmp/regfile/more" || break
-
- v=`readlink -m "${p}link2"` || break
- test "$v" = "$my_pwd/$tmp/subdir" || break
-
- v=`readlink -m "${p}./link2/"` || break
- test "$v" = "$my_pwd/$tmp/subdir" || break
-
- v=`readlink -m "${p}link2/more"` || break
- test "$v" = "$my_pwd/$tmp/subdir/more" || break
-
- v=`readlink -m "${p}./link2/more/"` || break
- test "$v" = "$my_pwd/$tmp/subdir/more" || break
-
- v=`readlink -m "${p}link2/more/more2"` || break
- test "$v" = "$my_pwd/$tmp/subdir/more/more2" || break
-
- v=`readlink -m "${p}./link2/more/more2/"` || break
- test "$v" = "$my_pwd/$tmp/subdir/more/more2" || break
-
- v=`readlink -m "${p}link3"` || break
- test "$v" = "$my_pwd/$tmp/missing" || break
-
- v=`readlink -m "${p}./link3/"` || break
- test "$v" = "$my_pwd/$tmp/missing" || break
-
- v=`readlink -m "${p}link3/more"` || break
- test "$v" = "$my_pwd/$tmp/missing/more" || break
-
- v=`readlink -m "${p}./link3/more/"` || break
- test "$v" = "$my_pwd/$tmp/missing/more" || break
-
- v=`readlink -m "${p}link4"` || break
- test "$v" = "$my_pwd/$tmp/subdir/missing" || break
-
- v=`readlink -m "${p}./link4/"` || break
- test "$v" = "$my_pwd/$tmp/subdir/missing" || break
-
- v=`readlink -m "${p}link4/more"` || break
- test "$v" = "$my_pwd/$tmp/subdir/missing/more" || break
-
- v=`readlink -m "${p}./link4/more/"` || break
- test "$v" = "$my_pwd/$tmp/subdir/missing/more" || break
-
- fail=0
-done
-
-(exit $fail); exit $fail
diff --git a/tests/readlink/can-m.sh b/tests/readlink/can-m.sh
new file mode 100755
index 0000000..2bf0c9b
--- /dev/null
+++ b/tests/readlink/can-m.sh
@@ -0,0 +1,141 @@
+#!/bin/sh
+# tests for canonicalize-missing mode (readlink -m).
+
+# Copyright (C) 2004-2016 Free Software Foundation, Inc.
+
+# This program is free software: you can redistribute it and/or modify
+# it under the terms of the GNU General Public License as published by
+# the Free Software Foundation, either version 3 of the License, or
+# (at your option) any later version.
+
+# This program is distributed in the hope that it will be useful,
+# but WITHOUT ANY WARRANTY; without even the implied warranty of
+# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
+# GNU General Public License for more details.
+
+# You should have received a copy of the GNU General Public License
+# along with this program. If not, see <http://www.gnu.org/licenses/>.
+
+. "${srcdir=.}/tests/init.sh"; path_prepend_ ./src
+print_ver_ readlink pwd
+
+pwd=$(pwd)
+my_pwd=$(env pwd -P)
+tmp=d
+
+mkdir $tmp || framework_failure_
+cd $tmp || framework_failure_
+
+mkdir subdir removed || framework_failure_
+touch regfile || framework_failure_
+
+ln -s regfile link1 || framework_failure_
+ln -s subdir link2 || framework_failure_
+ln -s missing link3 || framework_failure_
+ln -s subdir/missing link4 || framework_failure_
+
+cd "$pwd/$tmp/removed" || framework_failure_
+
+# Skip this test if the system doesn't let you remove the working directory.
+if rmdir ../removed 2>/dev/null; then
+ v=$(returns_ 1 readlink -e .) || fail=1
+ test -z "$v" || fail=1
+fi
+
+cd "$pwd/$tmp" || fail=1
+
+for p in "" "$pwd/$tmp/"; do
+
+ v=$(readlink -m "${p}regfile") || fail=1
+ test "$v" = "$my_pwd/$tmp/regfile" || fail=1
+
+ v=$(readlink -m "${p}./regfile/") || fail=1
+ test "$v" = "$my_pwd/$tmp/regfile" || fail=1
+
+ v=$(readlink -m "${p}regfile/more") || fail=1
+ test "$v" = "$my_pwd/$tmp/regfile/more" || fail=1
+
+ v=$(readlink -m "${p}./regfile/more/") || fail=1
+ test "$v" = "$my_pwd/$tmp/regfile/more" || fail=1
+
+ v=$(readlink -m "${p}subdir") || fail=1
+ test "$v" = "$my_pwd/$tmp/subdir" || fail=1
+
+ v=$(readlink -m "${p}./subdir/") || fail=1
+ test "$v" = "$my_pwd/$tmp/subdir" || fail=1
+
+ v=$(readlink -m "${p}subdir/more") || fail=1
+ test "$v" = "$my_pwd/$tmp/subdir/more" || fail=1
+
+ v=$(readlink -m "${p}./subdir/more/") || fail=1
+ test "$v" = "$my_pwd/$tmp/subdir/more" || fail=1
+
+ v=$(readlink -m "${p}missing") || fail=1
+ test "$v" = "$my_pwd/$tmp/missing" || fail=1
+
+ v=$(readlink -m "${p}./missing/") || fail=1
+ test "$v" = "$my_pwd/$tmp/missing" || fail=1
+
+ v=$(readlink -m "${p}missing/more") || fail=1
+ test "$v" = "$my_pwd/$tmp/missing/more" || fail=1
+
+ v=$(readlink -m "${p}./missing/more/") || fail=1
+ test "$v" = "$my_pwd/$tmp/missing/more" || fail=1
+
+ v=$(readlink -m "${p}link1") || fail=1
+ test "$v" = "$my_pwd/$tmp/regfile" || fail=1
+
+ v=$(readlink -m "${p}./link1/") || fail=1
+ test "$v" = "$my_pwd/$tmp/regfile" || fail=1
+
+ v=$(readlink -m "${p}link1/more") || fail=1
+ test "$v" = "$my_pwd/$tmp/regfile/more" || fail=1
+
+ v=$(readlink -m "${p}./link1/more/") || fail=1
+ test "$v" = "$my_pwd/$tmp/regfile/more" || fail=1
+
+ v=$(readlink -m "${p}link2") || fail=1
+ test "$v" = "$my_pwd/$tmp/subdir" || fail=1
+
+ v=$(readlink -m "${p}./link2/") || fail=1
+ test "$v" = "$my_pwd/$tmp/subdir" || fail=1
+
+ v=$(readlink -m "${p}link2/more") || fail=1
+ test "$v" = "$my_pwd/$tmp/subdir/more" || fail=1
+
+ v=$(readlink -m "${p}./link2/more/") || fail=1
+ test "$v" = "$my_pwd/$tmp/subdir/more" || fail=1
+
+ v=$(readlink -m "${p}link2/more/more2") || fail=1
+ test "$v" = "$my_pwd/$tmp/subdir/more/more2" || fail=1
+
+ v=$(readlink -m "${p}./link2/more/more2/") || fail=1
+ test "$v" = "$my_pwd/$tmp/subdir/more/more2" || fail=1
+
+ v=$(readlink -m "${p}link3") || fail=1
+ test "$v" = "$my_pwd/$tmp/missing" || fail=1
+
+ v=$(readlink -m "${p}./link3/") || fail=1
+ test "$v" = "$my_pwd/$tmp/missing" || fail=1
+
+ v=$(readlink -m "${p}link3/more") || fail=1
+ test "$v" = "$my_pwd/$tmp/missing/more" || fail=1
+
+ v=$(readlink -m "${p}./link3/more/") || fail=1
+ test "$v" = "$my_pwd/$tmp/missing/more" || fail=1
+
+ v=$(readlink -m "${p}link4") || fail=1
+ test "$v" = "$my_pwd/$tmp/subdir/missing" || fail=1
+
+ v=$(readlink -m "${p}./link4/") || fail=1
+ test "$v" = "$my_pwd/$tmp/subdir/missing" || fail=1
+
+ v=$(readlink -m "${p}link4/more") || fail=1
+ test "$v" = "$my_pwd/$tmp/subdir/missing/more" || fail=1
+
+ v=$(readlink -m "${p}./link4/more/") || fail=1
+ test "$v" = "$my_pwd/$tmp/subdir/missing/more" || fail=1
+
+done
+
+Exit $fail
diff --git a/tests/readlink/multi.sh b/tests/readlink/multi.sh
new file mode 100755
index 0000000..78f8cc7
--- /dev/null
+++ b/tests/readlink/multi.sh
@@ -0,0 +1,46 @@
+#!/bin/sh
+# test multiple argument handling.
+
+# Copyright (C) 2012-2016 Free Software Foundation, Inc.
+
+# This program is free software: you can redistribute it and/or modify
+# it under the terms of the GNU General Public License as published by
+# the Free Software Foundation, either version 3 of the License, or
+# (at your option) any later version.
+
+# This program is distributed in the hope that it will be useful,
+# but WITHOUT ANY WARRANTY; without even the implied warranty of
+# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
+# GNU General Public License for more details.
+
+# You should have received a copy of the GNU General Public License
+# along with this program. If not, see <http://www.gnu.org/licenses/>.
+
+. "${srcdir=.}/tests/init.sh"; path_prepend_ ./src
+print_ver_ readlink
+
+touch regfile || framework_failure_
+ln -s regfile link1 || framework_failure_
+
+readlink link1 link1 || fail=1
+returns_ 1 readlink link1 link2 || fail=1
+returns_ 1 readlink link1 link2 link1 || fail=1
+readlink -m link1 link2 || fail=1
+
+printf '/1\0/1\0' > exp || framework_failure_
+readlink -m --zero /1 /1 > out || fail=1
+compare exp out || fail=1
+
+# The largely redundant --no-newline option is ignored with multiple args.
+# Note BSD's readlink suppresses all delimiters, even with multiple args,
+# but that functionality was not thought useful.
+readlink -n -m --zero /1 /1 > out || fail=1
+compare exp out || fail=1
+
+# Note the edge case that the last xargs run may not have a delimiter
+rm out || framework_failure_
+printf '/1\0/1\0/1' > exp || framework_failure_
+printf '/1 /1 /1 ' | xargs -n2 readlink -n -m --zero >> out || fail=1
+compare exp out || fail=1
+
+Exit $fail
diff --git a/tests/readlink/rl-1 b/tests/readlink/rl-1
deleted file mode 100755
index d9c8913..0000000
--- a/tests/readlink/rl-1
+++ /dev/null
@@ -1,71 +0,0 @@
-#!/bin/sh
-# test for readlink mode.
-
-# Copyright (C) 2004, 2006 Free Software Foundation, Inc.
-
-# This program is free software; you can redistribute it and/or modify
-# it under the terms of the GNU General Public License as published by
-# the Free Software Foundation; either version 2 of the License, or
-# (at your option) any later version.
-
-# This program is distributed in the hope that it will be useful,
-# but WITHOUT ANY WARRANTY; without even the implied warranty of
-# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
-# GNU General Public License for more details.
-
-# You should have received a copy of the GNU General Public License
-# along with this program; if not, write to the Free Software
-# Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA
-# 02110-1301, USA.
-
-if test "$VERBOSE" = yes; then
- set -x
- readlink --version
-fi
-
-pwd=`pwd`
-t0=`echo "$0" |sed 's,.*/,,'`.tmp; tmp=$t0/$$
-trap 'status=$?; cd "$pwd" && chmod -R u+rwx $t0 && rm -rf $t0 && exit $status' 0
-trap 'status=$?; (exit $status); exit $status' 1 2 13 15
-
-fail=1
-while :; do
- mkdir -p $tmp || break
- cd $tmp || break
-
- mkdir subdir || break
- touch regfile || break
- ln -s regfile link1 || break
- ln -s missing link2 || break
-
- fail=0
- break
-done
-
-if test $fail = 1; then
- echo "$0: failure in testing framework" 1>&2
- (exit 1); exit 1
-fi
-
-fail=1
-while :; do
- v=`readlink link1` || break
- test "$v" = regfile || break
-
- v=`readlink link2` || break
- test "$v" = missing || break
-
- v=`readlink subdir` && break
- test -z "$v" || break
-
- v=`readlink regfile` && break
- test -z "$v" || break
-
- v=`readlink missing` && break
- test -z "$v" || break
-
- fail=0
- break
-done
-
-(exit $fail); exit $fail
diff --git a/tests/readlink/rl-1.sh b/tests/readlink/rl-1.sh
new file mode 100755
index 0000000..32f05bc
--- /dev/null
+++ b/tests/readlink/rl-1.sh
@@ -0,0 +1,43 @@
+#!/bin/sh
+# test for readlink mode.
+
+# Copyright (C) 2004-2016 Free Software Foundation, Inc.
+
+# This program is free software: you can redistribute it and/or modify
+# it under the terms of the GNU General Public License as published by
+# the Free Software Foundation, either version 3 of the License, or
+# (at your option) any later version.
+
+# This program is distributed in the hope that it will be useful,
+# but WITHOUT ANY WARRANTY; without even the implied warranty of
+# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
+# GNU General Public License for more details.
+
+# You should have received a copy of the GNU General Public License
+# along with this program. If not, see <http://www.gnu.org/licenses/>.
+
+. "${srcdir=.}/tests/init.sh"; path_prepend_ ./src
+print_ver_ readlink
+
+mkdir subdir || framework_failure_
+touch regfile || framework_failure_
+ln -s regfile link1 || framework_failure_
+ln -s missing link2 || framework_failure_
+
+
+v=$(readlink link1) || fail=1
+test "$v" = regfile || fail=1
+
+v=$(readlink link2) || fail=1
+test "$v" = missing || fail=1
+
+v=$(returns_ 1 readlink subdir) || fail=1
+test -z "$v" || fail=1
+
+v=$(returns_ 1 readlink regfile) || fail=1
+test -z "$v" || fail=1
+
+v=$(returns_ 1 readlink missing) || fail=1
+test -z "$v" || fail=1
+
+Exit $fail
diff --git a/tests/rm/Makefile.am b/tests/rm/Makefile.am
deleted file mode 100644
index e946489..0000000
--- a/tests/rm/Makefile.am
+++ /dev/null
@@ -1,51 +0,0 @@
-# Make coreutils tests for "rm". -*-Makefile-*-
-
-# Copyright (C) 1997, 1998, 2000, 2001, 2002, 2003, 2004, 2005, 2006, 2007
-# Free Software Foundation, Inc.
-
-# This program is free software; you can redistribute it and/or modify
-# it under the terms of the GNU General Public License as published by
-# the Free Software Foundation; either version 2 of the License, or
-# (at your option) any later version.
-
-# This program is distributed in the hope that it will be useful,
-# but WITHOUT ANY WARRANTY; without even the implied warranty of
-# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
-# GNU General Public License for more details.
-
-# You should have received a copy of the GNU General Public License
-# along with this program; if not, write to the Free Software
-# Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA
-# 02110-1301, USA.
-
-TESTS = \
- i-never \
- fail-eacces \
- one-file-system \
- ignorable \
- readdir-bug \
- empty-inacc \
- dir-nonrecur \
- dot-rel \
- inaccessible \
- unread3 \
- no-give-up \
- dir-no-w \
- fail-2eperm \
- cycle i-no-r fail-eperm \
- dangling-symlink rm1 rm2 rm3 rm4 rm5 \
- unread2 r-1 r-2 r-3 r-4 i-1 ir-1 f-1 sunos-1 deep-1 hash \
- interactive-always interactive-once \
- isatty # unreadable empty-name
-EXTRA_DIST = $(TESTS)
-TESTS_ENVIRONMENT = \
- RM=../../src/rm \
- MKDIR=../../src/mkdir \
- CONFIG_HEADER=$(CONFIG_HEADER) \
- top_srcdir=$(top_srcdir) \
- srcdir=$(srcdir) \
- PERL="$(PERL)" \
- CU_TEST_NAME=`basename $(abs_srcdir)`,$$tst \
- PATH="$(VG_PATH_PREFIX)`pwd`/../../src$(PATH_SEPARATOR)$$PATH" \
- PACKAGE_VERSION=$(PACKAGE_VERSION) \
- PROG=rm
diff --git a/tests/rm/Makefile.in b/tests/rm/Makefile.in
deleted file mode 100644
index 391f4e1..0000000
--- a/tests/rm/Makefile.in
+++ /dev/null
@@ -1,763 +0,0 @@
-# Makefile.in generated by automake 1.10 from Makefile.am.
-# @configure_input@
-
-# Copyright (C) 1994, 1995, 1996, 1997, 1998, 1999, 2000, 2001, 2002,
-# 2003, 2004, 2005, 2006 Free Software Foundation, Inc.
-# This Makefile.in is free software; the Free Software Foundation
-# gives unlimited permission to copy and/or distribute it,
-# with or without modifications, as long as this notice is preserved.
-
-# This program is distributed in the hope that it will be useful,
-# but WITHOUT ANY WARRANTY, to the extent permitted by law; without
-# even the implied warranty of MERCHANTABILITY or FITNESS FOR A
-# PARTICULAR PURPOSE.
-
-@SET_MAKE@
-
-# Make coreutils tests for "rm". -*-Makefile-*-
-
-# Copyright (C) 1997, 1998, 2000, 2001, 2002, 2003, 2004, 2005, 2006, 2007
-# Free Software Foundation, Inc.
-
-# This program is free software; you can redistribute it and/or modify
-# it under the terms of the GNU General Public License as published by
-# the Free Software Foundation; either version 2 of the License, or
-# (at your option) any later version.
-
-# This program is distributed in the hope that it will be useful,
-# but WITHOUT ANY WARRANTY; without even the implied warranty of
-# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
-# GNU General Public License for more details.
-
-# You should have received a copy of the GNU General Public License
-# along with this program; if not, write to the Free Software
-# Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA
-# 02110-1301, USA.
-VPATH = @srcdir@
-pkgdatadir = $(datadir)/@PACKAGE@
-pkglibdir = $(libdir)/@PACKAGE@
-pkgincludedir = $(includedir)/@PACKAGE@
-am__cd = CDPATH="$${ZSH_VERSION+.}$(PATH_SEPARATOR)" && cd
-install_sh_DATA = $(install_sh) -c -m 644
-install_sh_PROGRAM = $(install_sh) -c
-install_sh_SCRIPT = $(install_sh) -c
-INSTALL_HEADER = $(INSTALL_DATA)
-transform = $(program_transform_name)
-NORMAL_INSTALL = :
-PRE_INSTALL = :
-POST_INSTALL = :
-NORMAL_UNINSTALL = :
-PRE_UNINSTALL = :
-POST_UNINSTALL = :
-build_triplet = @build@
-host_triplet = @host@
-subdir = tests/rm
-DIST_COMMON = $(srcdir)/Makefile.am $(srcdir)/Makefile.in
-ACLOCAL_M4 = $(top_srcdir)/aclocal.m4
-am__aclocal_m4_deps = $(top_srcdir)/m4/absolute-header.m4 \
- $(top_srcdir)/m4/acl.m4 $(top_srcdir)/m4/alloca.m4 \
- $(top_srcdir)/m4/allocsa.m4 $(top_srcdir)/m4/argmatch.m4 \
- $(top_srcdir)/m4/arpa_inet_h.m4 $(top_srcdir)/m4/assert.m4 \
- $(top_srcdir)/m4/atexit.m4 $(top_srcdir)/m4/autobuild.m4 \
- $(top_srcdir)/m4/backupfile.m4 $(top_srcdir)/m4/base64.m4 \
- $(top_srcdir)/m4/bison.m4 $(top_srcdir)/m4/boottime.m4 \
- $(top_srcdir)/m4/c-strtod.m4 $(top_srcdir)/m4/calloc.m4 \
- $(top_srcdir)/m4/canon-host.m4 \
- $(top_srcdir)/m4/canonicalize.m4 \
- $(top_srcdir)/m4/chdir-long.m4 $(top_srcdir)/m4/check-decl.m4 \
- $(top_srcdir)/m4/chown.m4 $(top_srcdir)/m4/clock_time.m4 \
- $(top_srcdir)/m4/cloexec.m4 $(top_srcdir)/m4/close-stream.m4 \
- $(top_srcdir)/m4/closeout.m4 $(top_srcdir)/m4/codeset.m4 \
- $(top_srcdir)/m4/config-h.m4 $(top_srcdir)/m4/cycle-check.m4 \
- $(top_srcdir)/m4/d-ino.m4 $(top_srcdir)/m4/d-type.m4 \
- $(top_srcdir)/m4/dirfd.m4 $(top_srcdir)/m4/dirname.m4 \
- $(top_srcdir)/m4/dos.m4 $(top_srcdir)/m4/double-slash-root.m4 \
- $(top_srcdir)/m4/dup2.m4 $(top_srcdir)/m4/eealloc.m4 \
- $(top_srcdir)/m4/eoverflow.m4 $(top_srcdir)/m4/error.m4 \
- $(top_srcdir)/m4/euidaccess-stat.m4 \
- $(top_srcdir)/m4/euidaccess.m4 $(top_srcdir)/m4/exclude.m4 \
- $(top_srcdir)/m4/exitfail.m4 $(top_srcdir)/m4/extensions.m4 \
- $(top_srcdir)/m4/fchdir.m4 $(top_srcdir)/m4/fcntl-safer.m4 \
- $(top_srcdir)/m4/fcntl_h.m4 $(top_srcdir)/m4/fd-reopen.m4 \
- $(top_srcdir)/m4/file-type.m4 $(top_srcdir)/m4/fileblocks.m4 \
- $(top_srcdir)/m4/filemode.m4 $(top_srcdir)/m4/filenamecat.m4 \
- $(top_srcdir)/m4/flexmember.m4 $(top_srcdir)/m4/fnmatch.m4 \
- $(top_srcdir)/m4/fpending.m4 $(top_srcdir)/m4/fprintftime.m4 \
- $(top_srcdir)/m4/free.m4 $(top_srcdir)/m4/fstypename.m4 \
- $(top_srcdir)/m4/fsusage.m4 $(top_srcdir)/m4/ftruncate.m4 \
- $(top_srcdir)/m4/fts.m4 $(top_srcdir)/m4/getaddrinfo.m4 \
- $(top_srcdir)/m4/getcwd-abort-bug.m4 \
- $(top_srcdir)/m4/getcwd-path-max.m4 $(top_srcdir)/m4/getcwd.m4 \
- $(top_srcdir)/m4/getdate.m4 $(top_srcdir)/m4/getdelim.m4 \
- $(top_srcdir)/m4/getgroups.m4 $(top_srcdir)/m4/gethostname.m4 \
- $(top_srcdir)/m4/gethrxtime.m4 $(top_srcdir)/m4/getline.m4 \
- $(top_srcdir)/m4/getloadavg.m4 $(top_srcdir)/m4/getndelim2.m4 \
- $(top_srcdir)/m4/getopt.m4 $(top_srcdir)/m4/getpagesize.m4 \
- $(top_srcdir)/m4/getpass.m4 $(top_srcdir)/m4/gettext.m4 \
- $(top_srcdir)/m4/gettime.m4 $(top_srcdir)/m4/gettimeofday.m4 \
- $(top_srcdir)/m4/getugroups.m4 \
- $(top_srcdir)/m4/getusershell.m4 $(top_srcdir)/m4/glibc21.m4 \
- $(top_srcdir)/m4/gnulib-common.m4 \
- $(top_srcdir)/m4/gnulib-comp.m4 \
- $(top_srcdir)/m4/group-member.m4 \
- $(top_srcdir)/m4/hard-locale.m4 $(top_srcdir)/m4/hash.m4 \
- $(top_srcdir)/m4/host-os.m4 $(top_srcdir)/m4/human.m4 \
- $(top_srcdir)/m4/i-ring.m4 $(top_srcdir)/m4/iconv.m4 \
- $(top_srcdir)/m4/idcache.m4 $(top_srcdir)/m4/inet_ntop.m4 \
- $(top_srcdir)/m4/inline.m4 $(top_srcdir)/m4/intmax_t.m4 \
- $(top_srcdir)/m4/inttostr.m4 $(top_srcdir)/m4/inttypes-pri.m4 \
- $(top_srcdir)/m4/inttypes.m4 $(top_srcdir)/m4/inttypes_h.m4 \
- $(top_srcdir)/m4/isapipe.m4 $(top_srcdir)/m4/jm-macros.m4 \
- $(top_srcdir)/m4/jm-winsz1.m4 $(top_srcdir)/m4/jm-winsz2.m4 \
- $(top_srcdir)/m4/lchmod.m4 $(top_srcdir)/m4/lchown.m4 \
- $(top_srcdir)/m4/lib-check.m4 $(top_srcdir)/m4/lib-ignore.m4 \
- $(top_srcdir)/m4/lib-ld.m4 $(top_srcdir)/m4/lib-link.m4 \
- $(top_srcdir)/m4/lib-prefix.m4 $(top_srcdir)/m4/link-follow.m4 \
- $(top_srcdir)/m4/localcharset.m4 \
- $(top_srcdir)/m4/long-options.m4 \
- $(top_srcdir)/m4/longdouble.m4 $(top_srcdir)/m4/longlong.m4 \
- $(top_srcdir)/m4/ls-mntd-fs.m4 $(top_srcdir)/m4/lstat.m4 \
- $(top_srcdir)/m4/mbchar.m4 $(top_srcdir)/m4/mbiter.m4 \
- $(top_srcdir)/m4/mbrtowc.m4 $(top_srcdir)/m4/mbscasecmp.m4 \
- $(top_srcdir)/m4/mbstate_t.m4 $(top_srcdir)/m4/mbswidth.m4 \
- $(top_srcdir)/m4/md5.m4 $(top_srcdir)/m4/memcasecmp.m4 \
- $(top_srcdir)/m4/memchr.m4 $(top_srcdir)/m4/memcmp.m4 \
- $(top_srcdir)/m4/memcoll.m4 $(top_srcdir)/m4/memcpy.m4 \
- $(top_srcdir)/m4/memmove.m4 $(top_srcdir)/m4/mempcpy.m4 \
- $(top_srcdir)/m4/memrchr.m4 $(top_srcdir)/m4/memset.m4 \
- $(top_srcdir)/m4/memxfrm.m4 $(top_srcdir)/m4/mkancesdirs.m4 \
- $(top_srcdir)/m4/mkdir-p.m4 $(top_srcdir)/m4/mkdir-slash.m4 \
- $(top_srcdir)/m4/mkstemp.m4 $(top_srcdir)/m4/mktime.m4 \
- $(top_srcdir)/m4/modechange.m4 $(top_srcdir)/m4/mountlist.m4 \
- $(top_srcdir)/m4/mpsort.m4 $(top_srcdir)/m4/nanosleep.m4 \
- $(top_srcdir)/m4/netinet_in_h.m4 $(top_srcdir)/m4/nls.m4 \
- $(top_srcdir)/m4/openat.m4 $(top_srcdir)/m4/pathmax.m4 \
- $(top_srcdir)/m4/perl.m4 $(top_srcdir)/m4/physmem.m4 \
- $(top_srcdir)/m4/po.m4 $(top_srcdir)/m4/posixtm.m4 \
- $(top_srcdir)/m4/posixver.m4 $(top_srcdir)/m4/prereq.m4 \
- $(top_srcdir)/m4/progtest.m4 $(top_srcdir)/m4/putenv.m4 \
- $(top_srcdir)/m4/quote.m4 $(top_srcdir)/m4/quotearg.m4 \
- $(top_srcdir)/m4/randint.m4 $(top_srcdir)/m4/randperm.m4 \
- $(top_srcdir)/m4/randread.m4 $(top_srcdir)/m4/readlink.m4 \
- $(top_srcdir)/m4/readtokens.m4 $(top_srcdir)/m4/readutmp.m4 \
- $(top_srcdir)/m4/regex.m4 \
- $(top_srcdir)/m4/rename-dest-slash.m4 \
- $(top_srcdir)/m4/rename.m4 $(top_srcdir)/m4/rmdir-errno.m4 \
- $(top_srcdir)/m4/rmdir.m4 $(top_srcdir)/m4/root-dev-ino.m4 \
- $(top_srcdir)/m4/rpmatch.m4 $(top_srcdir)/m4/safe-read.m4 \
- $(top_srcdir)/m4/safe-write.m4 $(top_srcdir)/m4/same.m4 \
- $(top_srcdir)/m4/save-cwd.m4 $(top_srcdir)/m4/savedir.m4 \
- $(top_srcdir)/m4/savewd.m4 $(top_srcdir)/m4/setenv.m4 \
- $(top_srcdir)/m4/settime.m4 $(top_srcdir)/m4/sha1.m4 \
- $(top_srcdir)/m4/sha256.m4 $(top_srcdir)/m4/sha512.m4 \
- $(top_srcdir)/m4/sig2str.m4 $(top_srcdir)/m4/snprintf.m4 \
- $(top_srcdir)/m4/socklen.m4 $(top_srcdir)/m4/sockpfaf.m4 \
- $(top_srcdir)/m4/ssize_t.m4 $(top_srcdir)/m4/st_dm_mode.m4 \
- $(top_srcdir)/m4/stat-prog.m4 $(top_srcdir)/m4/stat-time.m4 \
- $(top_srcdir)/m4/stdarg.m4 $(top_srcdir)/m4/stdbool.m4 \
- $(top_srcdir)/m4/stdint.m4 $(top_srcdir)/m4/stdint_h.m4 \
- $(top_srcdir)/m4/stdio-safer.m4 $(top_srcdir)/m4/stdio_h.m4 \
- $(top_srcdir)/m4/stdlib-safer.m4 $(top_srcdir)/m4/stdlib_h.m4 \
- $(top_srcdir)/m4/stpcpy.m4 $(top_srcdir)/m4/strcspn.m4 \
- $(top_srcdir)/m4/strdup.m4 $(top_srcdir)/m4/strftime.m4 \
- $(top_srcdir)/m4/string_h.m4 $(top_srcdir)/m4/strndup.m4 \
- $(top_srcdir)/m4/strnlen.m4 $(top_srcdir)/m4/strnumcmp.m4 \
- $(top_srcdir)/m4/strpbrk.m4 $(top_srcdir)/m4/strtod.m4 \
- $(top_srcdir)/m4/strtoimax.m4 $(top_srcdir)/m4/strtol.m4 \
- $(top_srcdir)/m4/strtoll.m4 $(top_srcdir)/m4/strtoul.m4 \
- $(top_srcdir)/m4/strtoull.m4 $(top_srcdir)/m4/strtoumax.m4 \
- $(top_srcdir)/m4/strverscmp.m4 \
- $(top_srcdir)/m4/sys_socket_h.m4 \
- $(top_srcdir)/m4/sys_stat_h.m4 $(top_srcdir)/m4/sys_time_h.m4 \
- $(top_srcdir)/m4/tempname.m4 $(top_srcdir)/m4/time_h.m4 \
- $(top_srcdir)/m4/time_r.m4 $(top_srcdir)/m4/timespec.m4 \
- $(top_srcdir)/m4/tm_gmtoff.m4 $(top_srcdir)/m4/tzset.m4 \
- $(top_srcdir)/m4/unicodeio.m4 $(top_srcdir)/m4/unistd-safer.m4 \
- $(top_srcdir)/m4/unistd_h.m4 $(top_srcdir)/m4/unlink-busy.m4 \
- $(top_srcdir)/m4/unlinkdir.m4 $(top_srcdir)/m4/unlocked-io.m4 \
- $(top_srcdir)/m4/uptime.m4 $(top_srcdir)/m4/userspec.m4 \
- $(top_srcdir)/m4/utimbuf.m4 $(top_srcdir)/m4/utime.m4 \
- $(top_srcdir)/m4/utimecmp.m4 $(top_srcdir)/m4/utimens.m4 \
- $(top_srcdir)/m4/utimes-null.m4 $(top_srcdir)/m4/utimes.m4 \
- $(top_srcdir)/m4/vasnprintf.m4 $(top_srcdir)/m4/vasprintf.m4 \
- $(top_srcdir)/m4/wchar.m4 $(top_srcdir)/m4/wchar_t.m4 \
- $(top_srcdir)/m4/wctype.m4 $(top_srcdir)/m4/wcwidth.m4 \
- $(top_srcdir)/m4/wint_t.m4 $(top_srcdir)/m4/xalloc.m4 \
- $(top_srcdir)/m4/xfts.m4 $(top_srcdir)/m4/xgetcwd.m4 \
- $(top_srcdir)/m4/xnanosleep.m4 $(top_srcdir)/m4/xstrndup.m4 \
- $(top_srcdir)/m4/xstrtod.m4 $(top_srcdir)/m4/xstrtol.m4 \
- $(top_srcdir)/m4/yesno.m4 $(top_srcdir)/configure.ac
-am__configure_deps = $(am__aclocal_m4_deps) $(CONFIGURE_DEPENDENCIES) \
- $(ACLOCAL_M4)
-mkinstalldirs = $(install_sh) -d
-CONFIG_HEADER = $(top_builddir)/lib/config.h
-CONFIG_CLEAN_FILES =
-SOURCES =
-DIST_SOURCES =
-DISTFILES = $(DIST_COMMON) $(DIST_SOURCES) $(TEXINFOS) $(EXTRA_DIST)
-ABSOLUTE_DIRENT_H = @ABSOLUTE_DIRENT_H@
-ABSOLUTE_FCNTL_H = @ABSOLUTE_FCNTL_H@
-ABSOLUTE_INTTYPES_H = @ABSOLUTE_INTTYPES_H@
-ABSOLUTE_NETINET_IN_H = @ABSOLUTE_NETINET_IN_H@
-ABSOLUTE_STDINT_H = @ABSOLUTE_STDINT_H@
-ABSOLUTE_STDIO_H = @ABSOLUTE_STDIO_H@
-ABSOLUTE_STDLIB_H = @ABSOLUTE_STDLIB_H@
-ABSOLUTE_STRING_H = @ABSOLUTE_STRING_H@
-ABSOLUTE_SYS_SOCKET_H = @ABSOLUTE_SYS_SOCKET_H@
-ABSOLUTE_SYS_STAT_H = @ABSOLUTE_SYS_STAT_H@
-ABSOLUTE_SYS_TIME_H = @ABSOLUTE_SYS_TIME_H@
-ABSOLUTE_TIME_H = @ABSOLUTE_TIME_H@
-ABSOLUTE_UNISTD_H = @ABSOLUTE_UNISTD_H@
-ABSOLUTE_WCHAR_H = @ABSOLUTE_WCHAR_H@
-ABSOLUTE_WCTYPE_H = @ABSOLUTE_WCTYPE_H@
-ACLOCAL = @ACLOCAL@
-ALLOCA = @ALLOCA@
-ALLOCA_H = @ALLOCA_H@
-AMTAR = @AMTAR@
-ARPA_INET_H = @ARPA_INET_H@
-AUTOCONF = @AUTOCONF@
-AUTOHEADER = @AUTOHEADER@
-AUTOMAKE = @AUTOMAKE@
-AWK = @AWK@
-BITSIZEOF_PTRDIFF_T = @BITSIZEOF_PTRDIFF_T@
-BITSIZEOF_SIG_ATOMIC_T = @BITSIZEOF_SIG_ATOMIC_T@
-BITSIZEOF_SIZE_T = @BITSIZEOF_SIZE_T@
-BITSIZEOF_WCHAR_T = @BITSIZEOF_WCHAR_T@
-BITSIZEOF_WINT_T = @BITSIZEOF_WINT_T@
-CC = @CC@
-CCDEPMODE = @CCDEPMODE@
-CFLAGS = @CFLAGS@
-CPP = @CPP@
-CPPFLAGS = @CPPFLAGS@
-CYGPATH_W = @CYGPATH_W@
-DEFAULT_POSIX2_VERSION = @DEFAULT_POSIX2_VERSION@
-DEFS = @DEFS@
-DEPDIR = @DEPDIR@
-DF_PROG = @DF_PROG@
-DIRENT_H = @DIRENT_H@
-ECHO_C = @ECHO_C@
-ECHO_N = @ECHO_N@
-ECHO_T = @ECHO_T@
-EGREP = @EGREP@
-EOVERFLOW = @EOVERFLOW@
-EXEEXT = @EXEEXT@
-FCNTL_H = @FCNTL_H@
-FNMATCH_H = @FNMATCH_H@
-GETLOADAVG_LIBS = @GETLOADAVG_LIBS@
-GETOPT_H = @GETOPT_H@
-GLIBC21 = @GLIBC21@
-GMSGFMT = @GMSGFMT@
-GMSGFMT_015 = @GMSGFMT_015@
-GNULIB_CHOWN = @GNULIB_CHOWN@
-GNULIB_DUP2 = @GNULIB_DUP2@
-GNULIB_FCHDIR = @GNULIB_FCHDIR@
-GNULIB_FPRINTF_POSIX = @GNULIB_FPRINTF_POSIX@
-GNULIB_FTRUNCATE = @GNULIB_FTRUNCATE@
-GNULIB_GETCWD = @GNULIB_GETCWD@
-GNULIB_GETLOGIN_R = @GNULIB_GETLOGIN_R@
-GNULIB_GETSUBOPT = @GNULIB_GETSUBOPT@
-GNULIB_IMAXABS = @GNULIB_IMAXABS@
-GNULIB_IMAXDIV = @GNULIB_IMAXDIV@
-GNULIB_MBSCASECMP = @GNULIB_MBSCASECMP@
-GNULIB_MBSCASESTR = @GNULIB_MBSCASESTR@
-GNULIB_MBSCHR = @GNULIB_MBSCHR@
-GNULIB_MBSCSPN = @GNULIB_MBSCSPN@
-GNULIB_MBSLEN = @GNULIB_MBSLEN@
-GNULIB_MBSNCASECMP = @GNULIB_MBSNCASECMP@
-GNULIB_MBSPBRK = @GNULIB_MBSPBRK@
-GNULIB_MBSPCASECMP = @GNULIB_MBSPCASECMP@
-GNULIB_MBSRCHR = @GNULIB_MBSRCHR@
-GNULIB_MBSSEP = @GNULIB_MBSSEP@
-GNULIB_MBSSPN = @GNULIB_MBSSPN@
-GNULIB_MBSSTR = @GNULIB_MBSSTR@
-GNULIB_MBSTOK_R = @GNULIB_MBSTOK_R@
-GNULIB_MEMMEM = @GNULIB_MEMMEM@
-GNULIB_MEMPCPY = @GNULIB_MEMPCPY@
-GNULIB_MEMRCHR = @GNULIB_MEMRCHR@
-GNULIB_MKDTEMP = @GNULIB_MKDTEMP@
-GNULIB_MKSTEMP = @GNULIB_MKSTEMP@
-GNULIB_PRINTF_POSIX = @GNULIB_PRINTF_POSIX@
-GNULIB_READLINK = @GNULIB_READLINK@
-GNULIB_SNPRINTF = @GNULIB_SNPRINTF@
-GNULIB_SPRINTF_POSIX = @GNULIB_SPRINTF_POSIX@
-GNULIB_STPCPY = @GNULIB_STPCPY@
-GNULIB_STPNCPY = @GNULIB_STPNCPY@
-GNULIB_STRCASESTR = @GNULIB_STRCASESTR@
-GNULIB_STRCHRNUL = @GNULIB_STRCHRNUL@
-GNULIB_STRDUP = @GNULIB_STRDUP@
-GNULIB_STRNDUP = @GNULIB_STRNDUP@
-GNULIB_STRNLEN = @GNULIB_STRNLEN@
-GNULIB_STRPBRK = @GNULIB_STRPBRK@
-GNULIB_STRSEP = @GNULIB_STRSEP@
-GNULIB_STRTOIMAX = @GNULIB_STRTOIMAX@
-GNULIB_STRTOK_R = @GNULIB_STRTOK_R@
-GNULIB_STRTOUMAX = @GNULIB_STRTOUMAX@
-GNULIB_VFPRINTF_POSIX = @GNULIB_VFPRINTF_POSIX@
-GNULIB_VPRINTF_POSIX = @GNULIB_VPRINTF_POSIX@
-GNULIB_VSNPRINTF = @GNULIB_VSNPRINTF@
-GNULIB_VSPRINTF_POSIX = @GNULIB_VSPRINTF_POSIX@
-GNU_PACKAGE = @GNU_PACKAGE@
-GREP = @GREP@
-HAVE_DECL_GETLOGIN_R = @HAVE_DECL_GETLOGIN_R@
-HAVE_DECL_IMAXABS = @HAVE_DECL_IMAXABS@
-HAVE_DECL_IMAXDIV = @HAVE_DECL_IMAXDIV@
-HAVE_DECL_MEMMEM = @HAVE_DECL_MEMMEM@
-HAVE_DECL_MEMRCHR = @HAVE_DECL_MEMRCHR@
-HAVE_DECL_SNPRINTF = @HAVE_DECL_SNPRINTF@
-HAVE_DECL_STRDUP = @HAVE_DECL_STRDUP@
-HAVE_DECL_STRNCASECMP = @HAVE_DECL_STRNCASECMP@
-HAVE_DECL_STRNDUP = @HAVE_DECL_STRNDUP@
-HAVE_DECL_STRNLEN = @HAVE_DECL_STRNLEN@
-HAVE_DECL_STRTOIMAX = @HAVE_DECL_STRTOIMAX@
-HAVE_DECL_STRTOK_R = @HAVE_DECL_STRTOK_R@
-HAVE_DECL_STRTOUMAX = @HAVE_DECL_STRTOUMAX@
-HAVE_DECL_VSNPRINTF = @HAVE_DECL_VSNPRINTF@
-HAVE_DUP2 = @HAVE_DUP2@
-HAVE_FTRUNCATE = @HAVE_FTRUNCATE@
-HAVE_GETSUBOPT = @HAVE_GETSUBOPT@
-HAVE_INTTYPES_H = @HAVE_INTTYPES_H@
-HAVE_LONG_LONG_INT = @HAVE_LONG_LONG_INT@
-HAVE_MEMPCPY = @HAVE_MEMPCPY@
-HAVE_MKDTEMP = @HAVE_MKDTEMP@
-HAVE_NETINET_IN_H = @HAVE_NETINET_IN_H@
-HAVE_READLINK = @HAVE_READLINK@
-HAVE_SIGNED_SIG_ATOMIC_T = @HAVE_SIGNED_SIG_ATOMIC_T@
-HAVE_SIGNED_WCHAR_T = @HAVE_SIGNED_WCHAR_T@
-HAVE_SIGNED_WINT_T = @HAVE_SIGNED_WINT_T@
-HAVE_STDINT_H = @HAVE_STDINT_H@
-HAVE_STPCPY = @HAVE_STPCPY@
-HAVE_STPNCPY = @HAVE_STPNCPY@
-HAVE_STRCASECMP = @HAVE_STRCASECMP@
-HAVE_STRCASESTR = @HAVE_STRCASESTR@
-HAVE_STRCHRNUL = @HAVE_STRCHRNUL@
-HAVE_STRNDUP = @HAVE_STRNDUP@
-HAVE_STRPBRK = @HAVE_STRPBRK@
-HAVE_STRSEP = @HAVE_STRSEP@
-HAVE_STRUCT_TIMEVAL = @HAVE_STRUCT_TIMEVAL@
-HAVE_SYS_BITYPES_H = @HAVE_SYS_BITYPES_H@
-HAVE_SYS_INTTYPES_H = @HAVE_SYS_INTTYPES_H@
-HAVE_SYS_SOCKET_H = @HAVE_SYS_SOCKET_H@
-HAVE_SYS_TIME_H = @HAVE_SYS_TIME_H@
-HAVE_SYS_TYPES_H = @HAVE_SYS_TYPES_H@
-HAVE_UNISTD_H = @HAVE_UNISTD_H@
-HAVE_UNSIGNED_LONG_LONG_INT = @HAVE_UNSIGNED_LONG_LONG_INT@
-HAVE_WCTYPE_H = @HAVE_WCTYPE_H@
-HAVE_WINSOCK2_H = @HAVE_WINSOCK2_H@
-HAVE_WINT_T = @HAVE_WINT_T@
-HAVE_WS2TCPIP_H = @HAVE_WS2TCPIP_H@
-HAVE__BOOL = @HAVE__BOOL@
-HELP2MAN = @HELP2MAN@
-INSTALL = @INSTALL@
-INSTALL_DATA = @INSTALL_DATA@
-INSTALL_PROGRAM = @INSTALL_PROGRAM@
-INSTALL_SCRIPT = @INSTALL_SCRIPT@
-INSTALL_STRIP_PROGRAM = @INSTALL_STRIP_PROGRAM@
-INTLLIBS = @INTLLIBS@
-INTL_MACOSX_LIBS = @INTL_MACOSX_LIBS@
-INTTYPES_H = @INTTYPES_H@
-KMEM_GROUP = @KMEM_GROUP@
-LDFLAGS = @LDFLAGS@
-LIBCOREUTILS_LIBDEPS = @LIBCOREUTILS_LIBDEPS@
-LIBCOREUTILS_LTLIBDEPS = @LIBCOREUTILS_LTLIBDEPS@
-LIBICONV = @LIBICONV@
-LIBINTL = @LIBINTL@
-LIBOBJS = @LIBOBJS@
-LIBS = @LIBS@
-LIB_ACL = @LIB_ACL@
-LIB_ACL_TRIVIAL = @LIB_ACL_TRIVIAL@
-LIB_CLOCK_GETTIME = @LIB_CLOCK_GETTIME@
-LIB_CRYPT = @LIB_CRYPT@
-LIB_EACCESS = @LIB_EACCESS@
-LIB_FDATASYNC = @LIB_FDATASYNC@
-LIB_GETHRXTIME = @LIB_GETHRXTIME@
-LIB_NANOSLEEP = @LIB_NANOSLEEP@
-LN_S = @LN_S@
-LTLIBICONV = @LTLIBICONV@
-LTLIBINTL = @LTLIBINTL@
-LTLIBOBJS = @LTLIBOBJS@
-MAKEINFO = @MAKEINFO@
-MAN = @MAN@
-MKDIR_P = @MKDIR_P@
-MSGFMT = @MSGFMT@
-MSGFMT_015 = @MSGFMT_015@
-MSGMERGE = @MSGMERGE@
-NEED_SETGID = @NEED_SETGID@
-NETINET_IN_H = @NETINET_IN_H@
-OBJEXT = @OBJEXT@
-OPTIONAL_BIN_PROGS = @OPTIONAL_BIN_PROGS@
-PACKAGE = @PACKAGE@
-PACKAGE_BUGREPORT = @PACKAGE_BUGREPORT@
-PACKAGE_NAME = @PACKAGE_NAME@
-PACKAGE_STRING = @PACKAGE_STRING@
-PACKAGE_TARNAME = @PACKAGE_TARNAME@
-PACKAGE_VERSION = @PACKAGE_VERSION@
-PATH_SEPARATOR = @PATH_SEPARATOR@
-PERL = @PERL@
-POSUB = @POSUB@
-POW_LIB = @POW_LIB@
-PRIPTR_PREFIX = @PRIPTR_PREFIX@
-PRI_MACROS_BROKEN = @PRI_MACROS_BROKEN@
-PTRDIFF_T_SUFFIX = @PTRDIFF_T_SUFFIX@
-RANLIB = @RANLIB@
-REPLACE_CHOWN = @REPLACE_CHOWN@
-REPLACE_FCHDIR = @REPLACE_FCHDIR@
-REPLACE_FPRINTF = @REPLACE_FPRINTF@
-REPLACE_GETCWD = @REPLACE_GETCWD@
-REPLACE_GETTIMEOFDAY = @REPLACE_GETTIMEOFDAY@
-REPLACE_LOCALTIME_R = @REPLACE_LOCALTIME_R@
-REPLACE_MKSTEMP = @REPLACE_MKSTEMP@
-REPLACE_NANOSLEEP = @REPLACE_NANOSLEEP@
-REPLACE_PRINTF = @REPLACE_PRINTF@
-REPLACE_SNPRINTF = @REPLACE_SNPRINTF@
-REPLACE_SPRINTF = @REPLACE_SPRINTF@
-REPLACE_STRPTIME = @REPLACE_STRPTIME@
-REPLACE_TIMEGM = @REPLACE_TIMEGM@
-REPLACE_VFPRINTF = @REPLACE_VFPRINTF@
-REPLACE_VPRINTF = @REPLACE_VPRINTF@
-REPLACE_VSNPRINTF = @REPLACE_VSNPRINTF@
-REPLACE_VSPRINTF = @REPLACE_VSPRINTF@
-SEQ_LIBM = @SEQ_LIBM@
-SET_MAKE = @SET_MAKE@
-SHELL = @SHELL@
-SIG_ATOMIC_T_SUFFIX = @SIG_ATOMIC_T_SUFFIX@
-SIZE_T_SUFFIX = @SIZE_T_SUFFIX@
-STDBOOL_H = @STDBOOL_H@
-STDINT_H = @STDINT_H@
-STRIP = @STRIP@
-SYS_SOCKET_H = @SYS_SOCKET_H@
-SYS_STAT_H = @SYS_STAT_H@
-SYS_TIME_H = @SYS_TIME_H@
-SYS_TIME_H_DEFINES_STRUCT_TIMESPEC = @SYS_TIME_H_DEFINES_STRUCT_TIMESPEC@
-TIME_H_DEFINES_STRUCT_TIMESPEC = @TIME_H_DEFINES_STRUCT_TIMESPEC@
-U = @U@
-USE_NLS = @USE_NLS@
-VERSION = @VERSION@
-WCHAR_H = @WCHAR_H@
-WCHAR_T_SUFFIX = @WCHAR_T_SUFFIX@
-WCTYPE_H = @WCTYPE_H@
-WINT_T_SUFFIX = @WINT_T_SUFFIX@
-XGETTEXT = @XGETTEXT@
-XGETTEXT_015 = @XGETTEXT_015@
-YACC = @YACC@
-YFLAGS = @YFLAGS@
-abs_builddir = @abs_builddir@
-abs_srcdir = @abs_srcdir@
-abs_top_builddir = @abs_top_builddir@
-abs_top_srcdir = @abs_top_srcdir@
-ac_ct_CC = @ac_ct_CC@
-am__include = @am__include@
-am__leading_dot = @am__leading_dot@
-am__quote = @am__quote@
-am__tar = @am__tar@
-am__untar = @am__untar@
-bindir = @bindir@
-build = @build@
-build_alias = @build_alias@
-build_cpu = @build_cpu@
-build_os = @build_os@
-build_vendor = @build_vendor@
-builddir = @builddir@
-datadir = @datadir@
-datarootdir = @datarootdir@
-docdir = @docdir@
-dvidir = @dvidir@
-exec_prefix = @exec_prefix@
-gl_LIBOBJS = @gl_LIBOBJS@
-gl_LTLIBOBJS = @gl_LTLIBOBJS@
-host = @host@
-host_alias = @host_alias@
-host_cpu = @host_cpu@
-host_os = @host_os@
-host_vendor = @host_vendor@
-htmldir = @htmldir@
-includedir = @includedir@
-infodir = @infodir@
-install_sh = @install_sh@
-libdir = @libdir@
-libexecdir = @libexecdir@
-localedir = @localedir@
-localstatedir = @localstatedir@
-mandir = @mandir@
-mkdir_p = @mkdir_p@
-oldincludedir = @oldincludedir@
-pdfdir = @pdfdir@
-prefix = @prefix@
-program_transform_name = @program_transform_name@
-psdir = @psdir@
-sbindir = @sbindir@
-sharedstatedir = @sharedstatedir@
-srcdir = @srcdir@
-sysconfdir = @sysconfdir@
-target_alias = @target_alias@
-top_builddir = @top_builddir@
-top_srcdir = @top_srcdir@
-TESTS = \
- i-never \
- fail-eacces \
- one-file-system \
- ignorable \
- readdir-bug \
- empty-inacc \
- dir-nonrecur \
- dot-rel \
- inaccessible \
- unread3 \
- no-give-up \
- dir-no-w \
- fail-2eperm \
- cycle i-no-r fail-eperm \
- dangling-symlink rm1 rm2 rm3 rm4 rm5 \
- unread2 r-1 r-2 r-3 r-4 i-1 ir-1 f-1 sunos-1 deep-1 hash \
- interactive-always interactive-once \
- isatty # unreadable empty-name
-
-EXTRA_DIST = $(TESTS)
-TESTS_ENVIRONMENT = \
- RM=../../src/rm \
- MKDIR=../../src/mkdir \
- CONFIG_HEADER=$(CONFIG_HEADER) \
- top_srcdir=$(top_srcdir) \
- srcdir=$(srcdir) \
- PERL="$(PERL)" \
- CU_TEST_NAME=`basename $(abs_srcdir)`,$$tst \
- PATH="$(VG_PATH_PREFIX)`pwd`/../../src$(PATH_SEPARATOR)$$PATH" \
- PACKAGE_VERSION=$(PACKAGE_VERSION) \
- PROG=rm
-
-all: all-am
-
-.SUFFIXES:
-$(srcdir)/Makefile.in: $(srcdir)/Makefile.am $(am__configure_deps)
- @for dep in $?; do \
- case '$(am__configure_deps)' in \
- *$$dep*) \
- cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh \
- && exit 0; \
- exit 1;; \
- esac; \
- done; \
- echo ' cd $(top_srcdir) && $(AUTOMAKE) --gnu tests/rm/Makefile'; \
- cd $(top_srcdir) && \
- $(AUTOMAKE) --gnu tests/rm/Makefile
-.PRECIOUS: Makefile
-Makefile: $(srcdir)/Makefile.in $(top_builddir)/config.status
- @case '$?' in \
- *config.status*) \
- cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh;; \
- *) \
- echo ' cd $(top_builddir) && $(SHELL) ./config.status $(subdir)/$@ $(am__depfiles_maybe)'; \
- cd $(top_builddir) && $(SHELL) ./config.status $(subdir)/$@ $(am__depfiles_maybe);; \
- esac;
-
-$(top_builddir)/config.status: $(top_srcdir)/configure $(CONFIG_STATUS_DEPENDENCIES)
- cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh
-
-$(top_srcdir)/configure: $(am__configure_deps)
- cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh
-$(ACLOCAL_M4): $(am__aclocal_m4_deps)
- cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh
-tags: TAGS
-TAGS:
-
-ctags: CTAGS
-CTAGS:
-
-
-check-TESTS: $(TESTS)
- @failed=0; all=0; xfail=0; xpass=0; skip=0; ws='[ ]'; \
- srcdir=$(srcdir); export srcdir; \
- list=' $(TESTS) '; \
- if test -n "$$list"; then \
- for tst in $$list; do \
- if test -f ./$$tst; then dir=./; \
- elif test -f $$tst; then dir=; \
- else dir="$(srcdir)/"; fi; \
- if $(TESTS_ENVIRONMENT) $${dir}$$tst; then \
- all=`expr $$all + 1`; \
- case " $(XFAIL_TESTS) " in \
- *$$ws$$tst$$ws*) \
- xpass=`expr $$xpass + 1`; \
- failed=`expr $$failed + 1`; \
- echo "XPASS: $$tst"; \
- ;; \
- *) \
- echo "PASS: $$tst"; \
- ;; \
- esac; \
- elif test $$? -ne 77; then \
- all=`expr $$all + 1`; \
- case " $(XFAIL_TESTS) " in \
- *$$ws$$tst$$ws*) \
- xfail=`expr $$xfail + 1`; \
- echo "XFAIL: $$tst"; \
- ;; \
- *) \
- failed=`expr $$failed + 1`; \
- echo "FAIL: $$tst"; \
- ;; \
- esac; \
- else \
- skip=`expr $$skip + 1`; \
- echo "SKIP: $$tst"; \
- fi; \
- done; \
- if test "$$failed" -eq 0; then \
- if test "$$xfail" -eq 0; then \
- banner="All $$all tests passed"; \
- else \
- banner="All $$all tests behaved as expected ($$xfail expected failures)"; \
- fi; \
- else \
- if test "$$xpass" -eq 0; then \
- banner="$$failed of $$all tests failed"; \
- else \
- banner="$$failed of $$all tests did not behave as expected ($$xpass unexpected passes)"; \
- fi; \
- fi; \
- dashes="$$banner"; \
- skipped=""; \
- if test "$$skip" -ne 0; then \
- skipped="($$skip tests were not run)"; \
- test `echo "$$skipped" | wc -c` -le `echo "$$banner" | wc -c` || \
- dashes="$$skipped"; \
- fi; \
- report=""; \
- if test "$$failed" -ne 0 && test -n "$(PACKAGE_BUGREPORT)"; then \
- report="Please report to $(PACKAGE_BUGREPORT)"; \
- test `echo "$$report" | wc -c` -le `echo "$$banner" | wc -c` || \
- dashes="$$report"; \
- fi; \
- dashes=`echo "$$dashes" | sed s/./=/g`; \
- echo "$$dashes"; \
- echo "$$banner"; \
- test -z "$$skipped" || echo "$$skipped"; \
- test -z "$$report" || echo "$$report"; \
- echo "$$dashes"; \
- test "$$failed" -eq 0; \
- else :; fi
-
-distdir: $(DISTFILES)
- @srcdirstrip=`echo "$(srcdir)" | sed 's/[].[^$$\\*]/\\\\&/g'`; \
- topsrcdirstrip=`echo "$(top_srcdir)" | sed 's/[].[^$$\\*]/\\\\&/g'`; \
- list='$(DISTFILES)'; \
- dist_files=`for file in $$list; do echo $$file; done | \
- sed -e "s|^$$srcdirstrip/||;t" \
- -e "s|^$$topsrcdirstrip/|$(top_builddir)/|;t"`; \
- case $$dist_files in \
- */*) $(MKDIR_P) `echo "$$dist_files" | \
- sed '/\//!d;s|^|$(distdir)/|;s,/[^/]*$$,,' | \
- sort -u` ;; \
- esac; \
- for file in $$dist_files; do \
- if test -f $$file || test -d $$file; then d=.; else d=$(srcdir); fi; \
- if test -d $$d/$$file; then \
- dir=`echo "/$$file" | sed -e 's,/[^/]*$$,,'`; \
- if test -d $(srcdir)/$$file && test $$d != $(srcdir); then \
- cp -pR $(srcdir)/$$file $(distdir)$$dir || exit 1; \
- fi; \
- cp -pR $$d/$$file $(distdir)$$dir || exit 1; \
- else \
- test -f $(distdir)/$$file \
- || cp -p $$d/$$file $(distdir)/$$file \
- || exit 1; \
- fi; \
- done
-check-am: all-am
- $(MAKE) $(AM_MAKEFLAGS) check-TESTS
-check: check-am
-all-am: Makefile
-installdirs:
-install: install-am
-install-exec: install-exec-am
-install-data: install-data-am
-uninstall: uninstall-am
-
-install-am: all-am
- @$(MAKE) $(AM_MAKEFLAGS) install-exec-am install-data-am
-
-installcheck: installcheck-am
-install-strip:
- $(MAKE) $(AM_MAKEFLAGS) INSTALL_PROGRAM="$(INSTALL_STRIP_PROGRAM)" \
- install_sh_PROGRAM="$(INSTALL_STRIP_PROGRAM)" INSTALL_STRIP_FLAG=-s \
- `test -z '$(STRIP)' || \
- echo "INSTALL_PROGRAM_ENV=STRIPPROG='$(STRIP)'"` install
-mostlyclean-generic:
-
-clean-generic:
-
-distclean-generic:
- -test -z "$(CONFIG_CLEAN_FILES)" || rm -f $(CONFIG_CLEAN_FILES)
-
-maintainer-clean-generic:
- @echo "This command is intended for maintainers to use"
- @echo "it deletes files that may require special tools to rebuild."
-clean: clean-am
-
-clean-am: clean-generic mostlyclean-am
-
-distclean: distclean-am
- -rm -f Makefile
-distclean-am: clean-am distclean-generic
-
-dvi: dvi-am
-
-dvi-am:
-
-html: html-am
-
-info: info-am
-
-info-am:
-
-install-data-am:
-
-install-dvi: install-dvi-am
-
-install-exec-am:
-
-install-html: install-html-am
-
-install-info: install-info-am
-
-install-man:
-
-install-pdf: install-pdf-am
-
-install-ps: install-ps-am
-
-installcheck-am:
-
-maintainer-clean: maintainer-clean-am
- -rm -f Makefile
-maintainer-clean-am: distclean-am maintainer-clean-generic
-
-mostlyclean: mostlyclean-am
-
-mostlyclean-am: mostlyclean-generic
-
-pdf: pdf-am
-
-pdf-am:
-
-ps: ps-am
-
-ps-am:
-
-uninstall-am:
-
-.MAKE: install-am install-strip
-
-.PHONY: all all-am check check-TESTS check-am clean clean-generic \
- distclean distclean-generic distdir dvi dvi-am html html-am \
- info info-am install install-am install-data install-data-am \
- install-dvi install-dvi-am install-exec install-exec-am \
- install-html install-html-am install-info install-info-am \
- install-man install-pdf install-pdf-am install-ps \
- install-ps-am install-strip installcheck installcheck-am \
- installdirs maintainer-clean maintainer-clean-generic \
- mostlyclean mostlyclean-generic pdf pdf-am ps ps-am uninstall \
- uninstall-am
-
-# Tell versions [3.59,3.63) of GNU make to not export all variables.
-# Otherwise a system limit (for SysV at least) may be exceeded.
-.NOEXPORT:
diff --git a/tests/rm/cycle b/tests/rm/cycle
deleted file mode 100755
index 22936ee..0000000
--- a/tests/rm/cycle
+++ /dev/null
@@ -1,57 +0,0 @@
-#!/bin/sh
-# rm (coreutils-4.5.4) could be tricked into mistakenly reporting a cycle.
-
-# Copyright (C) 2003, 2006 Free Software Foundation, Inc.
-
-# This program is free software; you can redistribute it and/or modify
-# it under the terms of the GNU General Public License as published by
-# the Free Software Foundation; either version 2 of the License, or
-# (at your option) any later version.
-
-# This program is distributed in the hope that it will be useful,
-# but WITHOUT ANY WARRANTY; without even the implied warranty of
-# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
-# GNU General Public License for more details.
-
-# You should have received a copy of the GNU General Public License
-# along with this program; if not, write to the Free Software
-# Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA
-# 02110-1301, USA.
-
-if test "$VERBOSE" = yes; then
- set -x
- rm --version
-fi
-
-. $srcdir/../lang-default
-PRIV_CHECK_ARG=require-non-root . $srcdir/../priv-check
-
-pwd=`pwd`
-t0=`echo "$0"|sed 's,.*/,,'`.tmp; tmp=$t0/$$
-trap 'status=$?; cd "$pwd" && chmod -R u+rwx $t0 && rm -rf $t0 && exit $status' 0
-trap '(exit $?); exit $?' 1 2 13 15
-
-framework_failure=0
-mkdir -p $tmp || framework_failure=1
-cd $tmp || framework_failure=1
-mkdir -p a/b
-touch a/b/file
-chmod u-w a/b
-
-if test $framework_failure = 1; then
- echo "$0: failure in testing framework" 1>&2
- (exit 1); exit 1
-fi
-
-fail=0
-
-rm -rf a a 2>&1 | sed 's/:[^:]*$//' > out || fail=1
-cat <<\EOF > exp
-rm: cannot remove `a/b/file'
-rm: cannot remove `a/b/file'
-EOF
-
-cmp out exp || fail=1
-test $fail = 1 && diff out exp 2> /dev/null
-
-(exit $fail); exit $fail
diff --git a/tests/rm/cycle.sh b/tests/rm/cycle.sh
new file mode 100755
index 0000000..483b748
--- /dev/null
+++ b/tests/rm/cycle.sh
@@ -0,0 +1,36 @@
+#!/bin/sh
+# rm (coreutils-4.5.4) could be tricked into mistakenly reporting a cycle.
+
+# Copyright (C) 2003-2016 Free Software Foundation, Inc.
+
+# This program is free software: you can redistribute it and/or modify
+# it under the terms of the GNU General Public License as published by
+# the Free Software Foundation, either version 3 of the License, or
+# (at your option) any later version.
+
+# This program is distributed in the hope that it will be useful,
+# but WITHOUT ANY WARRANTY; without even the implied warranty of
+# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
+# GNU General Public License for more details.
+
+# You should have received a copy of the GNU General Public License
+# along with this program. If not, see <http://www.gnu.org/licenses/>.
+
+. "${srcdir=.}/tests/init.sh"; path_prepend_ ./src
+print_ver_ rm
+skip_if_root_
+
+mkdir -p a/b
+touch a/b/file
+chmod ug-w a/b
+
+
+rm -rf a a 2>&1 | sed 's/:[^:]*$//' > out || fail=1
+cat <<\EOF > exp
+rm: cannot remove 'a/b/file'
+rm: cannot remove 'a/b/file'
+EOF
+
+compare exp out || fail=1
+
+Exit $fail
diff --git a/tests/rm/d-1.sh b/tests/rm/d-1.sh
new file mode 100755
index 0000000..c597ceb
--- /dev/null
+++ b/tests/rm/d-1.sh
@@ -0,0 +1,38 @@
+#!/bin/sh
+# Test "rm --dir --verbose".
+
+# Copyright (C) 2012-2016 Free Software Foundation, Inc.
+
+# This program is free software: you can redistribute it and/or modify
+# it under the terms of the GNU General Public License as published by
+# the Free Software Foundation, either version 3 of the License, or
+# (at your option) any later version.
+
+# This program is distributed in the hope that it will be useful,
+# but WITHOUT ANY WARRANTY; without even the implied warranty of
+# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
+# GNU General Public License for more details.
+
+# You should have received a copy of the GNU General Public License
+# along with this program. If not, see <http://www.gnu.org/licenses/>.
+
+. "${srcdir=.}/tests/init.sh"; path_prepend_ ./src
+print_ver_ rm
+
+mkdir a || framework_failure_
+> b || framework_failure_
+
+rm --verbose --dir a b > out || fail=1
+
+cat <<\EOF > exp || framework_failure_
+removed directory 'a'
+removed 'b'
+EOF
+
+test -e a && fail=1
+test -e b && fail=1
+
+# Compare expected and actual output.
+compare exp out || fail=1
+
+Exit $fail
diff --git a/tests/rm/d-2.sh b/tests/rm/d-2.sh
new file mode 100755
index 0000000..43c6bc8
--- /dev/null
+++ b/tests/rm/d-2.sh
@@ -0,0 +1,37 @@
+#!/bin/sh
+# Ensure that 'rm -d dir' (i.e., without --recursive) gives a reasonable
+# diagnostic when failing.
+
+# Copyright (C) 2012-2016 Free Software Foundation, Inc.
+
+# This program is free software: you can redistribute it and/or modify
+# it under the terms of the GNU General Public License as published by
+# the Free Software Foundation, either version 3 of the License, or
+# (at your option) any later version.
+
+# This program is distributed in the hope that it will be useful,
+# but WITHOUT ANY WARRANTY; without even the implied warranty of
+# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
+# GNU General Public License for more details.
+
+# You should have received a copy of the GNU General Public License
+# along with this program. If not, see <http://www.gnu.org/licenses/>.
+
+. "${srcdir=.}/tests/init.sh"; path_prepend_ ./src
+print_ver_ rm
+
+mkdir d || framework_failure_
+> d/a || framework_failure_
+
+rm -d d 2> out && fail=1
+
+# Accept any of these: EEXIST, ENOTEMPTY
+sed 's/: File exists/: Directory not empty/' out > out2
+
+printf "%s\n" \
+ "rm: cannot remove 'd': Directory not empty" \
+ > exp || framework_failure_
+
+compare exp out2 || fail=1
+
+Exit $fail
diff --git a/tests/rm/d-3.sh b/tests/rm/d-3.sh
new file mode 100755
index 0000000..5e339c5
--- /dev/null
+++ b/tests/rm/d-3.sh
@@ -0,0 +1,37 @@
+#!/bin/sh
+# Ensure that 'rm -d -i dir' (i.e., without --recursive) gives a prompt and
+# then deletes the directory if it is empty
+
+# Copyright (C) 2012-2016 Free Software Foundation, Inc.
+
+# This program is free software: you can redistribute it and/or modify
+# it under the terms of the GNU General Public License as published by
+# the Free Software Foundation, either version 3 of the License, or
+# (at your option) any later version.
+
+# This program is distributed in the hope that it will be useful,
+# but WITHOUT ANY WARRANTY; without even the implied warranty of
+# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
+# GNU General Public License for more details.
+
+# You should have received a copy of the GNU General Public License
+# along with this program. If not, see <http://www.gnu.org/licenses/>.
+
+. "${srcdir=.}/tests/init.sh"; path_prepend_ ./src
+print_ver_ rm
+
+mkdir d || framework_failure_
+
+echo "y" | rm -i -d --verbose d > out 2> out.err || fail=1
+printf "%s" \
+ "rm: remove directory 'd'? " \
+ > exp.err || framework_failure_
+
+printf "%s\n" \
+ "removed directory 'd'" \
+ > exp || framework_failure_
+
+compare exp out || fail=1
+compare exp.err out.err || fail=1
+
+Exit $fail
diff --git a/tests/rm/dangling-symlink b/tests/rm/dangling-symlink
deleted file mode 100755
index 17794e0..0000000
--- a/tests/rm/dangling-symlink
+++ /dev/null
@@ -1,60 +0,0 @@
-#!/bin/sh
-# rm should not prompt before removing a dangling symlink.
-# Likewise for a non-dangling symlink.
-# But for fileutils-4.1.9, it would do the former and
-# for fileutils-4.1.10 the latter.
-
-# Copyright (C) 2002, 2004, 2005, 2006 Free Software Foundation, Inc.
-
-# This program is free software; you can redistribute it and/or modify
-# it under the terms of the GNU General Public License as published by
-# the Free Software Foundation; either version 2 of the License, or
-# (at your option) any later version.
-
-# This program is distributed in the hope that it will be useful,
-# but WITHOUT ANY WARRANTY; without even the implied warranty of
-# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
-# GNU General Public License for more details.
-
-# You should have received a copy of the GNU General Public License
-# along with this program; if not, write to the Free Software
-# Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA
-# 02110-1301, USA.
-
-if test "$VERBOSE" = yes; then
- set -x
- rm --version
-fi
-
-pwd=`pwd`
-t0=`echo "$0"|sed 's,.*/,,'`.tmp; tmp=$t0/$$
-trap 'status=$?; cd "$pwd" && chmod -R u+rwx $t0 && rm -rf $t0 && exit $status' 0
-trap '(exit $?); exit' 1 2 13 15
-
-framework_failure=0
-mkdir -p $tmp || framework_failure=1
-cd $tmp || framework_failure=1
-ln -s no-file dangle
-ln -s / symlink
-
-if test $framework_failure = 1; then
- echo "$0: failure in testing framework" 1>&2
- (exit 1); exit 1
-fi
-
-fail=0
-
-rm ---presume-input-tty dangle symlink &
-pid=$!
-# The buggy rm (fileutils-4.1.9) would hang here, waiting for input.
-
-# Give the working rm a chance to remove the file.
-sleep 1
-
-# The file must no longer exist.
-ls -l dangle > /dev/null 2>&1 && fail=1
-ls -l symlink > /dev/null 2>&1 && fail=1
-
-kill $pid > /dev/null 2>&1
-
-(exit $fail); exit $fail
diff --git a/tests/rm/dangling-symlink.sh b/tests/rm/dangling-symlink.sh
new file mode 100755
index 0000000..7f573bc
--- /dev/null
+++ b/tests/rm/dangling-symlink.sh
@@ -0,0 +1,46 @@
+#!/bin/sh
+# rm should not prompt before removing a dangling symlink.
+# Likewise for a non-dangling symlink.
+# But for fileutils-4.1.9, it would do the former and
+# for fileutils-4.1.10 the latter.
+
+# Copyright (C) 2002-2016 Free Software Foundation, Inc.
+
+# This program is free software: you can redistribute it and/or modify
+# it under the terms of the GNU General Public License as published by
+# the Free Software Foundation, either version 3 of the License, or
+# (at your option) any later version.
+
+# This program is distributed in the hope that it will be useful,
+# but WITHOUT ANY WARRANTY; without even the implied warranty of
+# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
+# GNU General Public License for more details.
+
+# You should have received a copy of the GNU General Public License
+# along with this program. If not, see <http://www.gnu.org/licenses/>.
+
+. "${srcdir=.}/tests/init.sh"; path_prepend_ ./src
+print_ver_ rm
+
+ln -s no-file dangle
+ln -s / symlink
+
+# Terminate any background processes
+cleanup_() { kill $pid 2>/dev/null && wait $pid; }
+
+rm ---presume-input-tty dangle symlink & pid=$!
+# The buggy rm (fileutils-4.1.9) would hang here, waiting for input.
+
+# Wait up to 6.3s for rm to remove the files
+check_files_removed() {
+ local present=0
+ sleep $1
+ ls -l dangle > /dev/null 2>&1 && present=1
+ ls -l symlink > /dev/null 2>&1 && present=1
+ test $present = 0
+}
+retry_delay_ check_files_removed .1 6 || fail=1
+
+cleanup_
+
+Exit $fail
diff --git a/tests/rm/deep-1 b/tests/rm/deep-1
deleted file mode 100755
index 4192886..0000000
--- a/tests/rm/deep-1
+++ /dev/null
@@ -1,63 +0,0 @@
-#!/bin/sh
-# Test "rm" with a deep hierarchy.
-
-# Copyright (C) 1997, 2002, 2003, 2004, 2006 Free Software Foundation,
-# Inc.
-
-# This program is free software; you can redistribute it and/or modify
-# it under the terms of the GNU General Public License as published by
-# the Free Software Foundation; either version 2 of the License, or
-# (at your option) any later version.
-
-# This program is distributed in the hope that it will be useful,
-# but WITHOUT ANY WARRANTY; without even the implied warranty of
-# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
-# GNU General Public License for more details.
-
-# You should have received a copy of the GNU General Public License
-# along with this program; if not, write to the Free Software
-# Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA
-# 02110-1301, USA.
-
-# This is a bit of a torture test for mkdir -p, too.
-# GNU rm performs *much* better on systems that have a d_type member
-# in the directory structure because then it does only one stat per
-# command line argument.
-
-# If this test takes too long on your system, blame the OS.
-
-if test "$VERBOSE" = yes; then
- set -x
- rm --version
-fi
-
-pwd=`pwd`
-t0=`echo "$0"|sed 's,.*/,,'`.tmp;tmp=$t0/$$
-trap 'status=$?; cd "$pwd" && rm -rf $t0 && exit $status' 0
-trap '(exit $?); exit' 1 2 13 15
-
-umask 022
-
-fail=0
-
-k20=/k/k/k/k/k/k/k/k/k/k/k/k/k/k/k/k/k/k/k/k
-k200=$k20$k20$k20$k20$k20$k20$k20$k20$k20$k20
-
-# Be careful not to exceed max file name length (usu 512?).
-# Doing so wouldn't affect GNU mkdir or GNU rm, but any tool that
-# operates on the full pathname (like `test') would choke.
-k_deep=$k200$k200
-
-# Create a directory in $tmp with lots of `k' components.
-deep=$tmp$k_deep
-mkdir -p $deep || fail=1
-
-# Make sure the deep dir was created.
-test -d $deep || fail=1
-
-rm -r $tmp || fail=1
-
-# Make sure all of $tmp was deleted.
-test -d $tmp && fail=1
-
-(exit $fail); exit $fail
diff --git a/tests/rm/deep-1.sh b/tests/rm/deep-1.sh
new file mode 100755
index 0000000..a13c882
--- /dev/null
+++ b/tests/rm/deep-1.sh
@@ -0,0 +1,53 @@
+#!/bin/sh
+# Test "rm" with a deep hierarchy.
+
+# Copyright (C) 1997-2016 Free Software Foundation, Inc.
+
+# This program is free software: you can redistribute it and/or modify
+# it under the terms of the GNU General Public License as published by
+# the Free Software Foundation, either version 3 of the License, or
+# (at your option) any later version.
+
+# This program is distributed in the hope that it will be useful,
+# but WITHOUT ANY WARRANTY; without even the implied warranty of
+# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
+# GNU General Public License for more details.
+
+# You should have received a copy of the GNU General Public License
+# along with this program. If not, see <http://www.gnu.org/licenses/>.
+
+# This is a bit of a torture test for mkdir -p, too.
+# GNU rm performs *much* better on systems that have a d_type member
+# in the directory structure because then it does only one stat per
+# command line argument.
+
+# If this test takes too long on your system, blame the OS.
+
+. "${srcdir=.}/tests/init.sh"; path_prepend_ ./src
+print_ver_ rm
+
+umask 022
+
+
+k20=/k/k/k/k/k/k/k/k/k/k/k/k/k/k/k/k/k/k/k/k
+k200=$k20$k20$k20$k20$k20$k20$k20$k20$k20$k20
+
+# Be careful not to exceed max file name length (usu 512?).
+# Doing so wouldn't affect GNU mkdir or GNU rm, but any tool that
+# operates on the full pathname (like 'test') would choke.
+k_deep=$k200$k200
+
+t=t
+# Create a directory in $t with lots of 'k' components.
+deep=$t$k_deep
+mkdir -p $deep || fail=1
+
+# Make sure the deep dir was created.
+test -d $deep || fail=1
+
+rm -r $t || fail=1
+
+# Make sure all of $t was deleted.
+test -d $t && fail=1
+
+Exit $fail
diff --git a/tests/rm/deep-2.sh b/tests/rm/deep-2.sh
new file mode 100755
index 0000000..0a52ba4
--- /dev/null
+++ b/tests/rm/deep-2.sh
@@ -0,0 +1,54 @@
+#!/bin/sh
+# Ensure rm -r DIR does not prompt for very long full relative names in DIR.
+
+# Copyright (C) 2008-2016 Free Software Foundation, Inc.
+
+# This program is free software: you can redistribute it and/or modify
+# it under the terms of the GNU General Public License as published by
+# the Free Software Foundation, either version 3 of the License, or
+# (at your option) any later version.
+
+# This program is distributed in the hope that it will be useful,
+# but WITHOUT ANY WARRANTY; without even the implied warranty of
+# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
+# GNU General Public License for more details.
+
+# You should have received a copy of the GNU General Public License
+# along with this program. If not, see <http://www.gnu.org/licenses/>.
+
+. "${srcdir=.}/tests/init.sh"; path_prepend_ ./src
+print_ver_ rm
+require_perl_
+
+# Root can run this test, but it always succeeds, since for root, all
+# files are writable, and write_protected_non_symlink never reaches
+# the offending euidaccess_stat call.
+skip_if_root_
+
+# ecryptfs for example uses some of the file name space
+# for encrypting filenames, so we must check dynamically.
+name_max=$(stat -f -c %l .)
+test "$name_max" -ge '200' || skip_ "NAME_MAX=$name_max is not sufficient"
+
+mkdir x || framework_failure_
+cd x || framework_failure_
+
+# Construct a hierarchy containing a relative file with a long name
+: ${PERL=perl}
+$PERL \
+ -e 'my $d = "x" x 200; foreach my $i (1..52)' \
+ -e ' { mkdir ($d, 0700) && chdir $d or die "$!" }' \
+ || framework_failure_
+
+cd .. || framework_failure_
+echo n > no || framework_failure_
+
+rm ---presume-input-tty -r x < no > out || fail=1
+
+# expect empty output
+compare /dev/null out || fail=1
+
+# the directory must have been removed
+test -d x && fail=1
+
+Exit $fail
diff --git a/tests/rm/dir-no-w b/tests/rm/dir-no-w
deleted file mode 100755
index 27aba6a..0000000
--- a/tests/rm/dir-no-w
+++ /dev/null
@@ -1,64 +0,0 @@
-#!/bin/sh
-# rm (without -r) must give a diagnostic for any directory.
-# It must not prompt, even if that directory is unwritable.
-
-# Copyright (C) 2003, 2005, 2006 Free Software Foundation, Inc.
-
-# This program is free software; you can redistribute it and/or modify
-# it under the terms of the GNU General Public License as published by
-# the Free Software Foundation; either version 2 of the License, or
-# (at your option) any later version.
-
-# This program is distributed in the hope that it will be useful,
-# but WITHOUT ANY WARRANTY; without even the implied warranty of
-# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
-# GNU General Public License for more details.
-
-# You should have received a copy of the GNU General Public License
-# along with this program; if not, write to the Free Software
-# Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA
-# 02110-1301, USA.
-
-if test "$VERBOSE" = yes; then
- set -x
- rm --version
-fi
-
-. $srcdir/../envvar-check
-. $srcdir/../lang-default
-
-pwd=`pwd`
-t0=`echo "$0"|sed 's,.*/,,'`.tmp; tmp=$t0/$$
-trap 'status=$?; cd "$pwd" && chmod -R u+rwx $t0 && rm -rf $t0 && exit $status' 0
-trap '(exit $?); exit $?' 1 2 13 15
-
-framework_failure=0
-mkdir -p $tmp || framework_failure=1
-cd $tmp || framework_failure=1
-mkdir --mode=0500 unwritable-dir || framework_failure=1
-
-if test $framework_failure = 1; then
- echo "$0: failure in testing framework" 1>&2
- (exit 1); exit 1
-fi
-
-fail=0
-
-# For rm from coreutils-5.0.1, this would prompt.
-rm ---presume-input-tty unwritable-dir < /dev/null > out-t 2>&1 && fail=1
-cat <<\EOF > exp || fail=1
-rm: cannot remove `unwritable-dir': Is a directory
-EOF
-
-# When run by a non-privileged user we get this:
-# rm: cannot remove directory `unwritable-dir': Is a directory
-# When run by root we get this:
-# rm: cannot remove `unwritable-dir': Is a directory
-# Normalize the message.
-sed 's/remove directory/remove/' out-t > out
-rm -f out-t
-
-cmp out exp || fail=1
-test $fail = 1 && diff out exp 2> /dev/null
-
-(exit $fail); exit $fail
diff --git a/tests/rm/dir-no-w.sh b/tests/rm/dir-no-w.sh
new file mode 100755
index 0000000..e3a7993
--- /dev/null
+++ b/tests/rm/dir-no-w.sh
@@ -0,0 +1,42 @@
+#!/bin/sh
+# rm (without -r) must give a diagnostic for any directory.
+# It must not prompt, even if that directory is unwritable.
+
+# Copyright (C) 2003-2016 Free Software Foundation, Inc.
+
+# This program is free software: you can redistribute it and/or modify
+# it under the terms of the GNU General Public License as published by
+# the Free Software Foundation, either version 3 of the License, or
+# (at your option) any later version.
+
+# This program is distributed in the hope that it will be useful,
+# but WITHOUT ANY WARRANTY; without even the implied warranty of
+# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
+# GNU General Public License for more details.
+
+# You should have received a copy of the GNU General Public License
+# along with this program. If not, see <http://www.gnu.org/licenses/>.
+
+. "${srcdir=.}/tests/init.sh"; path_prepend_ ./src
+print_ver_ rm
+
+mkdir --mode=0500 unwritable-dir || framework_failure_
+
+
+# For rm from coreutils-5.0.1, this would prompt.
+rm ---presume-input-tty unwritable-dir < /dev/null > out-t 2>&1 && fail=1
+cat <<\EOF > exp || fail=1
+rm: cannot remove 'unwritable-dir': Is a directory
+EOF
+
+# When run by a non-privileged user we get this:
+# rm: cannot remove directory 'unwritable-dir': Is a directory
+# When run by root we get this:
+# rm: cannot remove 'unwritable-dir': Is a directory
+# Normalize the message.
+sed 's/remove directory/remove/' out-t > out
+rm -f out-t
+
+compare exp out || fail=1
+
+Exit $fail
diff --git a/tests/rm/dir-nonrecur b/tests/rm/dir-nonrecur
deleted file mode 100755
index 5b09821..0000000
--- a/tests/rm/dir-nonrecur
+++ /dev/null
@@ -1,55 +0,0 @@
-#!/bin/sh
-# Ensure that `rm dir' (i.e., without --recursive) gives a reasonable
-# diagnostic when failing.
-
-# Copyright (C) 2005, 2006 Free Software Foundation, Inc.
-
-# This program is free software; you can redistribute it and/or modify
-# it under the terms of the GNU General Public License as published by
-# the Free Software Foundation; either version 2 of the License, or
-# (at your option) any later version.
-
-# This program is distributed in the hope that it will be useful,
-# but WITHOUT ANY WARRANTY; without even the implied warranty of
-# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
-# GNU General Public License for more details.
-
-# You should have received a copy of the GNU General Public License
-# along with this program; if not, write to the Free Software
-# Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA
-# 02110-1301, USA.
-
-if test "$VERBOSE" = yes; then
- set -x
- rm --version
-fi
-
-. $srcdir/../lang-default
-
-pwd=`pwd`
-t0=`echo "$0"|sed 's,.*/,,'`.tmp; tmp=$t0/$$
-trap 'status=$?; cd "$pwd" && chmod -R u+rwx $t0 && rm -rf $t0 && exit $status' 0
-trap '(exit $?); exit $?' 1 2 13 15
-
-framework_failure=0
-mkdir -p $tmp || framework_failure=1
-cd $tmp || framework_failure=1
-mkdir d || framework_failure=1
-
-if test $framework_failure = 1; then
- echo "$0: failure in testing framework" 1>&2
- (exit 1); exit 1
-fi
-
-fail=0
-
-rm d 2> out && fail=1
-cat <<\EOF > exp || fail=1
-rm: cannot remove `d': Is a directory
-EOF
-
-# Before coreutils-5.93 this test would fail on Solaris 9 and newer.
-cmp out exp || fail=1
-test $fail = 1 && diff out exp 2> /dev/null
-
-(exit $fail); exit $fail
diff --git a/tests/rm/dir-nonrecur.sh b/tests/rm/dir-nonrecur.sh
new file mode 100755
index 0000000..46d3414
--- /dev/null
+++ b/tests/rm/dir-nonrecur.sh
@@ -0,0 +1,34 @@
+#!/bin/sh
+# Ensure that 'rm dir' (i.e., without --recursive) gives a reasonable
+# diagnostic when failing.
+
+# Copyright (C) 2005-2016 Free Software Foundation, Inc.
+
+# This program is free software: you can redistribute it and/or modify
+# it under the terms of the GNU General Public License as published by
+# the Free Software Foundation, either version 3 of the License, or
+# (at your option) any later version.
+
+# This program is distributed in the hope that it will be useful,
+# but WITHOUT ANY WARRANTY; without even the implied warranty of
+# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
+# GNU General Public License for more details.
+
+# You should have received a copy of the GNU General Public License
+# along with this program. If not, see <http://www.gnu.org/licenses/>.
+
+. "${srcdir=.}/tests/init.sh"; path_prepend_ ./src
+print_ver_ rm
+
+mkdir d || framework_failure_
+
+
+rm d 2> out && fail=1
+cat <<\EOF > exp || fail=1
+rm: cannot remove 'd': Is a directory
+EOF
+
+# Before coreutils-5.93 this test would fail on Solaris 9 and newer.
+compare exp out || fail=1
+
+Exit $fail
diff --git a/tests/rm/dot-rel b/tests/rm/dot-rel
deleted file mode 100755
index 2ffa49e..0000000
--- a/tests/rm/dot-rel
+++ /dev/null
@@ -1,48 +0,0 @@
-#!/bin/sh
-# Use rm -r to remove two non-empty dot-relative directories.
-# This would have failed between 2004-10-18 and 2004-10-21.
-
-# Copyright (C) 2004, 2006 Free Software Foundation, Inc.
-
-# This program is free software; you can redistribute it and/or modify
-# it under the terms of the GNU General Public License as published by
-# the Free Software Foundation; either version 2 of the License, or
-# (at your option) any later version.
-
-# This program is distributed in the hope that it will be useful,
-# but WITHOUT ANY WARRANTY; without even the implied warranty of
-# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
-# GNU General Public License for more details.
-
-# You should have received a copy of the GNU General Public License
-# along with this program; if not, write to the Free Software
-# Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA
-# 02110-1301, USA.
-
-if test "$VERBOSE" = yes; then
- set -x
- rm --version
-fi
-
-pwd=`pwd`
-t0=`echo "$0"|sed 's,.*/,,'`.tmp; tmp=$t0/$$
-trap 'status=$?; cd "$pwd" && chmod -R u+rwx $t0 && rm -rf $t0 && exit $status' 0
-trap '(exit $?); exit $?' 1 2 13 15
-
-framework_failure=0
-mkdir -p $tmp || framework_failure=1
-cd $tmp || framework_failure=1
-
-mkdir a b || framework_failure=1
-touch a/f b/f || framework_failure=1
-
-if test $framework_failure = 1; then
- echo "$0: failure in testing framework" 1>&2
- (exit 1); exit 1
-fi
-
-fail=0
-
-rm -r a b || fail=1
-
-(exit $fail); exit $fail
diff --git a/tests/rm/dot-rel.sh b/tests/rm/dot-rel.sh
new file mode 100755
index 0000000..9f0d05c
--- /dev/null
+++ b/tests/rm/dot-rel.sh
@@ -0,0 +1,29 @@
+#!/bin/sh
+# Use rm -r to remove two non-empty dot-relative directories.
+# This would have failed between 2004-10-18 and 2004-10-21.
+
+# Copyright (C) 2004-2016 Free Software Foundation, Inc.
+
+# This program is free software: you can redistribute it and/or modify
+# it under the terms of the GNU General Public License as published by
+# the Free Software Foundation, either version 3 of the License, or
+# (at your option) any later version.
+
+# This program is distributed in the hope that it will be useful,
+# but WITHOUT ANY WARRANTY; without even the implied warranty of
+# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
+# GNU General Public License for more details.
+
+# You should have received a copy of the GNU General Public License
+# along with this program. If not, see <http://www.gnu.org/licenses/>.
+
+. "${srcdir=.}/tests/init.sh"; path_prepend_ ./src
+print_ver_ rm
+
+mkdir a b || framework_failure_
+touch a/f b/f || framework_failure_
+
+
+rm -r a b || fail=1
+
+Exit $fail
diff --git a/tests/rm/empty-inacc b/tests/rm/empty-inacc
deleted file mode 100755
index bc04068..0000000
--- a/tests/rm/empty-inacc
+++ /dev/null
@@ -1,57 +0,0 @@
-#!/bin/sh
-# Ensure that rm -rf removes an empty-and-inaccessible directory.
-
-# Copyright (C) 2006 Free Software Foundation, Inc.
-
-# This program is free software; you can redistribute it and/or modify
-# it under the terms of the GNU General Public License as published by
-# the Free Software Foundation; either version 2 of the License, or
-# (at your option) any later version.
-
-# This program is distributed in the hope that it will be useful,
-# but WITHOUT ANY WARRANTY; without even the implied warranty of
-# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
-# GNU General Public License for more details.
-
-# You should have received a copy of the GNU General Public License
-# along with this program; if not, write to the Free Software
-# Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA
-# 02110-1301, USA.
-
-if test "$VERBOSE" = yes; then
- set -x
- rm --version
-fi
-
-PRIV_CHECK_ARG=require-non-root . $srcdir/../priv-check
-
-pwd=`pwd`
-t0=`echo "$0"|sed 's,.*/,,'`.tmp; tmp=$t0/$$
-trap 'status=$?; cd "$pwd" && chmod -R u+rwx $t0 && rm -rf $t0 && exit $status' 0
-trap '(exit $?); exit $?' 1 2 13 15
-
-framework_failure=0
-mkdir -p $tmp || framework_failure=1
-cd $tmp || framework_failure=1
-mkdir -m0 inacc || framework_failure=1
-
-# Also exercise the different code path that's taken for a directory
-# that is empty (hence removable) and unreadable.
-mkdir -m a-r -p a/unreadable
-
-if test $framework_failure = 1; then
- echo "$0: failure in testing framework" 1>&2
- (exit 1); exit 1
-fi
-
-fail=0
-
-# This would fail for e.g., coreutils-5.93.
-rm -rf inacc || fail=1
-test -d inacc && fail=1
-
-# This would fail for e.g., coreutils-5.97.
-rm -rf a || fail=1
-test -d a && fail=1
-
-(exit $fail); exit $fail
diff --git a/tests/rm/empty-inacc.sh b/tests/rm/empty-inacc.sh
new file mode 100755
index 0000000..8434dbf
--- /dev/null
+++ b/tests/rm/empty-inacc.sh
@@ -0,0 +1,38 @@
+#!/bin/sh
+# Ensure that rm -rf removes an empty-and-inaccessible directory.
+
+# Copyright (C) 2006-2016 Free Software Foundation, Inc.
+
+# This program is free software: you can redistribute it and/or modify
+# it under the terms of the GNU General Public License as published by
+# the Free Software Foundation, either version 3 of the License, or
+# (at your option) any later version.
+
+# This program is distributed in the hope that it will be useful,
+# but WITHOUT ANY WARRANTY; without even the implied warranty of
+# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
+# GNU General Public License for more details.
+
+# You should have received a copy of the GNU General Public License
+# along with this program. If not, see <http://www.gnu.org/licenses/>.
+
+. "${srcdir=.}/tests/init.sh"; path_prepend_ ./src
+print_ver_ rm
+skip_if_root_
+
+mkdir -m0 inacc || framework_failure_
+
+# Also exercise the different code path that's taken for a directory
+# that is empty (hence removable) and unreadable.
+mkdir -m a-r -p a/unreadable
+
+
+# This would fail for e.g., coreutils-5.93.
+rm -rf inacc || fail=1
+test -d inacc && fail=1
+
+# This would fail for e.g., coreutils-5.97.
+rm -rf a || fail=1
+test -d a && fail=1
+
+Exit $fail
diff --git a/tests/rm/empty-name.pl b/tests/rm/empty-name.pl
new file mode 100755
index 0000000..c71dcd7
--- /dev/null
+++ b/tests/rm/empty-name.pl
@@ -0,0 +1,60 @@
+#!/usr/bin/perl
+# Make sure that rm -r '' fails.
+
+# Copyright (C) 1998-2016 Free Software Foundation, Inc.
+
+# This program is free software: you can redistribute it and/or modify
+# it under the terms of the GNU General Public License as published by
+# the Free Software Foundation, either version 3 of the License, or
+# (at your option) any later version.
+
+# This program is distributed in the hope that it will be useful,
+# but WITHOUT ANY WARRANTY; without even the implied warranty of
+# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
+# GNU General Public License for more details.
+
+# You should have received a copy of the GNU General Public License
+# along with this program. If not, see <http://www.gnu.org/licenses/>.
+
+# On SunOS 4.1.3, running rm -r '' in a nonempty directory may
+# actually remove files with names of entries in the current directory
+# but relative to '/' rather than relative to the current directory.
+
+use strict;
+
+(my $program_name = $0) =~ s|.*/||;
+
+# Turn off localization of executable's output.
+@ENV{qw(LANGUAGE LANG LC_ALL)} = ('C') x 3;
+
+my $prog = 'rm';
+
+# FIXME: copied from misc/ls-misc; factor into Coreutils.pm?
+sub mk_file(@)
+{
+ foreach my $f (@_)
+ {
+ open (F, '>', $f) && close F
+ or die "creating $f: $!\n";
+ }
+}
+
+my @Tests =
+ (
+ # test-name options input expected-output
+ #
+ ['empty-name-1', "''", {EXIT => 1},
+ {ERR => "$prog: cannot remove '': No such file or directory\n"}],
+
+ ['empty-name-2', "a '' b", {EXIT => 1},
+ {ERR => "$prog: cannot remove '': No such file or directory\n"},
+ {PRE => sub { mk_file qw(a b) }},
+ {POST => sub {-f 'a' || -f 'b' and die "a or b remain\n" }},
+ ],
+ );
+
+my $save_temps = $ENV{SAVE_TEMPS};
+my $verbose = $ENV{VERBOSE};
+
+my $fail = run_tests ($program_name, $prog, \@Tests, $save_temps, $verbose);
+exit $fail;
diff --git a/tests/rm/ext3-perf.sh b/tests/rm/ext3-perf.sh
new file mode 100755
index 0000000..4378448
--- /dev/null
+++ b/tests/rm/ext3-perf.sh
@@ -0,0 +1,83 @@
+#!/bin/sh
+# ensure that "rm -rf DIR-with-many-entries" is not O(N^2)
+
+# Copyright (C) 2008-2016 Free Software Foundation, Inc.
+
+# This program is free software: you can redistribute it and/or modify
+# it under the terms of the GNU General Public License as published by
+# the Free Software Foundation, either version 3 of the License, or
+# (at your option) any later version.
+
+# This program is distributed in the hope that it will be useful,
+# but WITHOUT ANY WARRANTY; without even the implied warranty of
+# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
+# GNU General Public License for more details.
+
+# You should have received a copy of the GNU General Public License
+# along with this program. If not, see <http://www.gnu.org/licenses/>.
+
+. "${srcdir=.}/tests/init.sh"; path_prepend_ ./src
+print_ver_ rm
+
+very_expensive_
+
+# Using rm -rf to remove a 400k-entry directory takes:
+# - 9 seconds with the patch, on a 2-yr-old system
+# - 350 seconds without the patch, on a high-end system (disk 20-30% faster)
+threshold_seconds=60
+
+# The number of entries in our test directory.
+n=400000
+
+# Choose a value that is large enough to ensure an accidentally
+# regressed rm would require much longer than $threshold_seconds to remove
+# the directory. With n=400k, pre-patch GNU rm would require about 350
+# seconds even on a fast disk. On a relatively modern system, the
+# patched version of rm requires about 10 seconds, so even if you
+# choose to enable very expensive tests with a disk that is much slower,
+# the test should still succeed.
+
+# Skip unless "." is on an ext[34] file system.
+# FIXME-maybe: try to find a suitable file system or allow
+# the user to specify it via an envvar.
+df -T -t ext3 -t ext4dev -t ext4 . \
+ || skip_ 'this test runs only on an ext3 or ext4 file system'
+
+# Skip if there are too few inodes free. Require some slack.
+free_inodes=$(stat -f --format=%d .) || framework_failure_
+min_free_inodes=$(expr 12 \* $n / 10)
+test $min_free_inodes -lt $free_inodes \
+ || skip_ "too few free inodes on '.': $free_inodes;" \
+ "this test requires at least $min_free_inodes"
+
+ok=0
+start=$(date +%s)
+mkdir d &&
+ cd d &&
+ seq $n | xargs touch &&
+ test -f 1 &&
+ test -f $n &&
+ cd .. &&
+ ok=1
+test $ok = 1 || framework_failure_
+setup_duration=$(expr $(date +%s) - $start)
+echo creating a $n-entry directory took $setup_duration seconds
+
+# If set-up took longer than the default $threshold_seconds,
+# use the longer set-up duration as the limit.
+test $threshold_seconds -lt $setup_duration \
+ && threshold_seconds=$setup_duration
+
+start=$(date +%s)
+timeout ${threshold_seconds}s rm -rf d; err=$?
+duration=$(expr $(date +%s) - $start)
+
+case $err in
+ 124) fail=1; echo rm took longer than $threshold_seconds seconds;;
+ 0) ;;
+ *) fail=1;;
+esac
+
+echo removing a $n-entry directory took $duration seconds
+
+Exit $fail
diff --git a/tests/rm/f-1 b/tests/rm/f-1
deleted file mode 100755
index 33041a3..0000000
--- a/tests/rm/f-1
+++ /dev/null
@@ -1,44 +0,0 @@
-#!/bin/sh
-# Test "rm -f" with a nonexistent file.
-
-# Copyright (C) 1997, 2002, 2004, 2006 Free Software Foundation, Inc.
-
-# This program is free software; you can redistribute it and/or modify
-# it under the terms of the GNU General Public License as published by
-# the Free Software Foundation; either version 2 of the License, or
-# (at your option) any later version.
-
-# This program is distributed in the hope that it will be useful,
-# but WITHOUT ANY WARRANTY; without even the implied warranty of
-# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
-# GNU General Public License for more details.
-
-# You should have received a copy of the GNU General Public License
-# along with this program; if not, write to the Free Software
-# Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA
-# 02110-1301, USA.
-
-test=f-1
-
-if test "$VERBOSE" = yes; then
- set -x
- rm --version
-fi
-
-pwd=`pwd`
-t0=`echo "$0"|sed 's,.*/,,'`.tmp;tmp=$t0/$$
-trap 'status=$?; cd "$pwd" && rm -rf $t0 && exit $status' 0
-trap '(exit $?); exit' 1 2 13 15
-
-test_failure=0
-mkdir -p $tmp || test_failure=1
-
-if test $test_failure = 1; then
- echo 'failure in testing framework'
- exit 1
-fi
-
-fail=0
-rm -f $tmp/no-such-file || fail=1
-
-(exit $fail); exit $fail
diff --git a/tests/rm/f-1.sh b/tests/rm/f-1.sh
new file mode 100755
index 0000000..fd13e3c
--- /dev/null
+++ b/tests/rm/f-1.sh
@@ -0,0 +1,26 @@
+#!/bin/sh
+# Test "rm -f" with a nonexistent file.
+
+# Copyright (C) 1997-2016 Free Software Foundation, Inc.
+
+# This program is free software: you can redistribute it and/or modify
+# it under the terms of the GNU General Public License as published by
+# the Free Software Foundation, either version 3 of the License, or
+# (at your option) any later version.
+
+# This program is distributed in the hope that it will be useful,
+# but WITHOUT ANY WARRANTY; without even the implied warranty of
+# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
+# GNU General Public License for more details.
+
+# You should have received a copy of the GNU General Public License
+# along with this program. If not, see <http://www.gnu.org/licenses/>.
+
+. "${srcdir=.}/tests/init.sh"; path_prepend_ ./src
+print_ver_ rm
+
+mkdir -p d || framework_failure_
+
+rm -f d/no-such-file || fail=1
+
+Exit $fail
diff --git a/tests/rm/fail-2eperm b/tests/rm/fail-2eperm
deleted file mode 100755
index 0761950..0000000
--- a/tests/rm/fail-2eperm
+++ /dev/null
@@ -1,75 +0,0 @@
-#!/bin/sh
-# Like fail-eperm, but the failure must be for a file encountered
-# while trying to remove the containing directory with the sticky bit set.
-
-# Copyright (C) 2003, 2006 Free Software Foundation, Inc.
-
-# This program is free software; you can redistribute it and/or modify
-# it under the terms of the GNU General Public License as published by
-# the Free Software Foundation; either version 2 of the License, or
-# (at your option) any later version.
-
-# This program is distributed in the hope that it will be useful,
-# but WITHOUT ANY WARRANTY; without even the implied warranty of
-# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
-# GNU General Public License for more details.
-
-# You should have received a copy of the GNU General Public License
-# along with this program; if not, write to the Free Software
-# Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA
-# 02110-1301, USA.
-
-if test "$VERBOSE" = yes; then
- set -x
- rm --version
-fi
-
-. $srcdir/../lang-default
-PRIV_CHECK_ARG=require-root . $srcdir/../priv-check
-
-pwd=`pwd`
-t0=`echo "$0"|sed 's,.*/,,'`.tmp; tmp=$t0/$$
-trap 'status=$?; cd "$pwd" && chmod -R u+rwx $t0 && rm -rf $t0 && exit $status' 0
-trap '(exit $?); exit $?' 1 2 13 15
-
-framework_failure=0
-mkdir -p $tmp || framework_failure=1
-cd $tmp || framework_failure=1
-
-# The containing directory must be owned by the user who eventually runs rm.
-chown $NON_ROOT_USERNAME .
-
-mkdir a || framework_failure=1
-chmod 1777 a || framework_failure=1
-touch a/b || framework_failure=1
-
-if test $framework_failure = 1; then
- echo "$0: failure in testing framework" 1>&2
- (exit 1); exit 1
-fi
-
-fail=0
-
-# Try to ensure that $NON_ROOT_USERNAME can access
-# the required version of rm.
-rm_version=`setuidgid $NON_ROOT_USERNAME rm --version|sed -n '1s/.* //p'`
-case $rm_version in
- $PACKAGE_VERSION) ;;
- *) echo "$0: cannot access required version ($PACKAGE_VERSION) of rm" 1>&2
- fail=1 ;;
-esac
-setuidgid $NON_ROOT_USERNAME rm -rf a 2> out-t && fail=1
-
-# On some systems, we get `Not owner'. Convert it.
-# On other systems (HPUX), we get `Permission denied'. Convert it, too.
-onp='Operation not permitted'
-sed "s/Not owner/$onp/;s/Permission denied/$onp/" out-t > out
-
-cat <<\EOF > exp
-rm: cannot remove `a/b': Operation not permitted
-EOF
-
-cmp out exp || fail=1
-test $fail = 1 && diff out exp 2> /dev/null
-
-(exit $fail); exit $fail
diff --git a/tests/rm/fail-2eperm.sh b/tests/rm/fail-2eperm.sh
new file mode 100755
index 0000000..3ddd1f6
--- /dev/null
+++ b/tests/rm/fail-2eperm.sh
@@ -0,0 +1,57 @@
+#!/bin/sh
+# Like fail-eperm, but the failure must be for a file encountered
+# while trying to remove the containing directory with the sticky bit set.
+
+# Copyright (C) 2003-2016 Free Software Foundation, Inc.
+
+# This program is free software: you can redistribute it and/or modify
+# it under the terms of the GNU General Public License as published by
+# the Free Software Foundation, either version 3 of the License, or
+# (at your option) any later version.
+
+# This program is distributed in the hope that it will be useful,
+# but WITHOUT ANY WARRANTY; without even the implied warranty of
+# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
+# GNU General Public License for more details.
+
+# You should have received a copy of the GNU General Public License
+# along with this program. If not, see <http://www.gnu.org/licenses/>.
+
+. "${srcdir=.}/tests/init.sh"; path_prepend_ ./src
+print_ver_ rm
+require_root_
+
+# The containing directory must be owned by the user who eventually runs rm.
+chown $NON_ROOT_USERNAME .
+
+mkdir a || framework_failure_
+chmod 1777 a || framework_failure_
+touch a/b || framework_failure_
+
+
+# Try to ensure that $NON_ROOT_USERNAME can access
+# the required version of rm.
+rm_version=$(
+ chroot --skip-chdir --user=$NON_ROOT_USERNAME / env PATH="$PATH" \
+ rm --version |
+ sed -n '1s/.* //p'
+)
+case $rm_version in
+ $PACKAGE_VERSION) ;;
+ *) skip_ "cannot access just-built rm as user $NON_ROOT_USERNAME";;
+esac
+chroot --skip-chdir --user=$NON_ROOT_USERNAME / \
+ env PATH="$PATH" rm -rf a 2> out-t && fail=1
+
+# On some systems, we get 'Not owner'. Convert it.
+# On other systems (HPUX), we get 'Permission denied'. Convert it, too.
+onp='Operation not permitted'
+sed "s/Not owner/$onp/;s/Permission denied/$onp/" out-t > out
+
+cat <<\EOF > exp
+rm: cannot remove 'a/b': Operation not permitted
+EOF
+
+compare exp out || fail=1
+
+Exit $fail
diff --git a/tests/rm/fail-eacces b/tests/rm/fail-eacces
deleted file mode 100755
index b322848..0000000
--- a/tests/rm/fail-eacces
+++ /dev/null
@@ -1,54 +0,0 @@
-#!/bin/sh
-# Ensure that rm -rf unremovable-non-dir gives a diagnostic.
-
-# Copyright (C) 2006-2007 Free Software Foundation, Inc.
-
-# This program is free software; you can redistribute it and/or modify
-# it under the terms of the GNU General Public License as published by
-# the Free Software Foundation; either version 2 of the License, or
-# (at your option) any later version.
-
-# This program is distributed in the hope that it will be useful,
-# but WITHOUT ANY WARRANTY; without even the implied warranty of
-# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
-# GNU General Public License for more details.
-
-# You should have received a copy of the GNU General Public License
-# along with this program; if not, write to the Free Software
-# Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA
-# 02110-1301, USA.
-
-if test "$VERBOSE" = yes; then
- set -x
- rm --version
-fi
-
-. $srcdir/../lang-default
-PRIV_CHECK_ARG=require-non-root . $srcdir/../priv-check
-
-pwd=`pwd`
-t0=`echo "$0"|sed 's,.*/,,'`.tmp; tmp=$t0/$$
-trap 'status=$?; cd "$pwd" && chmod -R u+rwx $t0 && rm -rf $t0 && exit $status' 0
-trap '(exit $?); exit $?' 1 2 13 15
-
-framework_failure=0
-mkdir -p $tmp || framework_failure=1
-cd $tmp || framework_failure=1
-mkdir d && touch d/f && chmod a-w d || framework_failure=1
-
-if test $framework_failure = 1; then
- echo "$0: failure in testing framework" 1>&2
- (exit 1); exit 1
-fi
-
-fail=0
-
-rm -rf d/f 2> out && fail=1
-cat <<\EOF > exp
-rm: cannot remove `d/f': Permission denied
-EOF
-
-cmp out exp || fail=1
-test $fail = 1 && diff out exp 2> /dev/null
-
-(exit $fail); exit $fail
diff --git a/tests/rm/fail-eacces.sh b/tests/rm/fail-eacces.sh
new file mode 100755
index 0000000..70bc203
--- /dev/null
+++ b/tests/rm/fail-eacces.sh
@@ -0,0 +1,54 @@
+#!/bin/sh
+# Ensure that rm -rf unremovable-non-dir gives a diagnostic.
+# Test both a regular file and a symlink -- it makes a difference to rm.
+# With the symlink, rm from coreutils-6.9 would fail with a misleading
+# ELOOP diagnostic.
+
+# Copyright (C) 2006-2016 Free Software Foundation, Inc.
+
+# This program is free software: you can redistribute it and/or modify
+# it under the terms of the GNU General Public License as published by
+# the Free Software Foundation, either version 3 of the License, or
+# (at your option) any later version.
+
+# This program is distributed in the hope that it will be useful,
+# but WITHOUT ANY WARRANTY; without even the implied warranty of
+# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
+# GNU General Public License for more details.
+
+# You should have received a copy of the GNU General Public License
+# along with this program. If not, see <http://www.gnu.org/licenses/>.
+
+. "${srcdir=.}/tests/init.sh"; path_prepend_ ./src
+print_ver_ rm
+skip_if_root_
+
+ok=0
+mkdir d &&
+ touch d/f &&
+ ln -s f d/slink &&
+ chmod a-w d &&
+ ok=1
+test $ok = 1 || framework_failure_
+
+mkdir e &&
+ ln -s f e/slink &&
+ chmod a-w e &&
+ ok=1
+test $ok = 1 || framework_failure_
+
+
+rm -rf d/f 2> out && fail=1
+cat <<\EOF > exp
+rm: cannot remove 'd/f': Permission denied
+EOF
+compare exp out || fail=1
+
+# This used to fail with ELOOP.
+rm -rf e 2> out && fail=1
+cat <<\EOF > exp
+rm: cannot remove 'e/slink': Permission denied
+EOF
+compare exp out || fail=1
+
+Exit $fail
diff --git a/tests/rm/fail-eperm b/tests/rm/fail-eperm
deleted file mode 100755
index 8801aba..0000000
--- a/tests/rm/fail-eperm
+++ /dev/null
@@ -1,160 +0,0 @@
-#!/bin/sh
-# -*- perl -*-
-# Ensure that rm gives the expected diagnostic when failing to remove a file
-# owned by some other user in a directory with the sticky bit set.
-
-# Copyright (C) 2002, 2003, 2004, 2006, 2007 Free Software Foundation, Inc.
-
-# This program is free software; you can redistribute it and/or modify
-# it under the terms of the GNU General Public License as published by
-# the Free Software Foundation; either version 2 of the License, or
-# (at your option) any later version.
-
-# This program is distributed in the hope that it will be useful,
-# but WITHOUT ANY WARRANTY; without even the implied warranty of
-# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
-# GNU General Public License for more details.
-
-# You should have received a copy of the GNU General Public License
-# along with this program; if not, write to the Free Software
-# Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA
-# 02110-1301, USA.
-
-if test "$VERBOSE" = yes; then
- set -x
- rm --version
-fi
-
-# FIXME-someday: when run as root we don't need all of the
-# searching below. root can simply create the required
-# dir/files and run the test as someone else.
-
-PRIV_CHECK_ARG=require-non-root . $srcdir/../priv-check
-
-: ${PERL=perl}
-: ${srcdir=.}
-
-$PERL -e 1 > /dev/null 2>&1 || {
- echo 1>&2 "$0: configure didn't find a usable version of Perl," \
- "so can't run this test"
- (exit 77); exit 77
-}
-
-ARGV_0=$0
-export ARGV_0
-
-exec $PERL -Tw -- - << \EOP
-require 5.003;
-use strict;
-
-(my $ME = $ENV{ARGV_0}) =~ s|.*/||;
-
-my $verbose = $ENV{VERBOSE} && $ENV{VERBOSE} eq 'yes';
-
-# Ensure that the diagnostics are in English.
-$ENV{LC_ALL} = 'C';
-
-# Set up a safe, well-known environment
-delete @ENV{qw(BASH_ENV CDPATH ENV PATH)};
-$ENV{IFS} = '';
-
-my @dir_list = qw(/tmp /var/tmp /usr/tmp);
-my $rm = '../../src/rm';
-
-# Find a directory with the sticky bit set.
-my $found_dir;
-my $found_file;
-foreach my $dir (@dir_list)
- {
- if (-d $dir && -k _ && -r _ && -w _ && -x _)
- {
- $found_dir = 1;
-
- # Find a non-directory there that is owned by some other user.
- opendir DIR_HANDLE, $dir
- or die "$ME: couldn't open $dir: $!\n";
-
- foreach my $f (readdir DIR_HANDLE)
- {
- # Consider only names containing "safe" characters.
- $f =~ /^([-\@\w.]+)$/
- or next;
- $f = $1; # untaint $f
-
- my $target_file = "$dir/$f";
- $verbose
- and warn "$ME: considering $target_file\n";
-
- # Skip files owned by self, symlinks, and directories.
- # It's not technically necessary to skip symlinks, but it's simpler.
- # SVR4-like systems (e.g., Solaris 9) let you unlink files that
- # you can write, so skip writable files too.
- -l $target_file || -o _ || -d _ || -w _
- and next;
-
- $found_file = 1;
-
- # Invoke rm on this file and ensure that we get the
- # expected exit code and diagnostic.
- my $cmd = "$rm -f -- $target_file";
- open RM, "$cmd 2>&1 |"
- or die "$ME: cannot execute `$cmd'\n";
-
- my $line = <RM>;
-
- close RM;
- my $rc = $?;
- if (0x80 < $rc)
- {
- my $status = $rc >> 8;
- $status == 1
- or die "$ME: unexpected exit status from `$cmd';\n"
- . " got $status, expected 1\n";
- }
- else
- {
- # Terminated by a signal.
- my $sig_num = $rc & 0x7F;
- die "$ME: command `$cmd' died with signal $sig_num\n";
- }
-
- my $exp = "rm: cannot remove `$target_file':";
- $line
- or die "$ME: no output from `$cmd';\n"
- . "expected something like `$exp ...'\n";
-
- # Transform the actual diagnostic so that it starts with "rm:".
- # Depending on your system, it might be "rm:" already, or
- # "../../src/rm:".
- $line =~ s,^\Q$rm\E:,rm:,;
-
- my $regex = quotemeta $exp;
- $line =~ /^$regex/
- or die "$ME: unexpected diagnostic from `$cmd';\n"
- . " got $line"
- . " expected $exp ...\n";
-
- last;
- }
-
- closedir DIR_HANDLE;
- $found_file
- and last;
- }
- }
-
-if ( ! $found_dir)
- {
- warn "$ME: couldn't find a directory with the sticky bit set;"
- . " skipping this test\n";
- exit 77;
- }
-
-if ( ! $found_file)
- {
- warn "$ME: couldn't find a file not owned by you\n"
- . " in any of the following directories:\n @dir_list\n"
- . "...so, skipping this test\n";
- exit 77;
- }
-EOP
diff --git a/tests/rm/fail-eperm.xpl b/tests/rm/fail-eperm.xpl
new file mode 100755
index 0000000..78afacb
--- /dev/null
+++ b/tests/rm/fail-eperm.xpl
@@ -0,0 +1,150 @@
+#!/usr/bin/perl -Tw
+# Ensure that rm gives the expected diagnostic when failing to remove a file
+# owned by some other user in a directory with the sticky bit set.
+
+# Copyright (C) 2002-2016 Free Software Foundation, Inc.
+
+# This program is free software: you can redistribute it and/or modify
+# it under the terms of the GNU General Public License as published by
+# the Free Software Foundation, either version 3 of the License, or
+# (at your option) any later version.
+
+# This program is distributed in the hope that it will be useful,
+# but WITHOUT ANY WARRANTY; without even the implied warranty of
+# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
+# GNU General Public License for more details.
+
+# You should have received a copy of the GNU General Public License
+# along with this program. If not, see <http://www.gnu.org/licenses/>.
+
+use strict;
+
+(my $ME = $0) =~ s|.*/||;
+
+my $uid = $<;
+# skip if root
+$uid == 0
+ and CuSkip::skip "$ME: can't run this test as root: skipping this test";
+
+my $verbose = $ENV{VERBOSE} && $ENV{VERBOSE} eq 'yes';
+
+# Ensure that the diagnostics are in English.
+$ENV{LC_ALL} = 'C';
+
+# Set up a safe, well-known environment
+$ENV{IFS} = '';
+
+# Taint checking requires a sanitized $PATH. This script performs no $PATH
+# search, so on most Unix-based systems, it is fine simply to clear $ENV{PATH}.
+# However, on Cygwin, it's used to find cygwin1.dll, so set it.
+$ENV{PATH} = '/bin:/usr/bin';
+
+my @dir_list = qw(/tmp /var/tmp /usr/tmp);
+my $rm = "$ENV{abs_top_builddir}/src/rm";
+
+# Untaint for upcoming popen.
+$rm =~ m!^([-+\@\w./]+)$!
+ or CuSkip::skip "$ME: unusual absolute builddir name; skipping this test\n";
+$rm = $1;
+
+# Find a directory with the sticky bit set.
+my $found_dir;
+my $found_file;
+foreach my $dir (@dir_list)
+ {
+ if (-d $dir && -k _ && -r _ && -w _ && -x _)
+ {
+ $found_dir = 1;
+
+ # Find a non-directory there that is owned by some other user.
+ opendir DIR_HANDLE, $dir
+ or die "$ME: couldn't open $dir: $!\n";
+
+ foreach my $f (readdir DIR_HANDLE)
+ {
+ # Consider only names containing "safe" characters.
+ $f =~ /^([-\@\w.]+)$/
+ or next;
+ $f = $1; # untaint $f
+
+ my $target_file = "$dir/$f";
+ $verbose
+ and warn "$ME: considering $target_file\n";
+
+ # Skip files owned by self, symlinks, and directories.
+ # It's not technically necessary to skip symlinks, but it's simpler.
+ # SVR4-like systems (e.g., Solaris 9) let you unlink files that
+ # you can write, so skip writable files too.
+ -l $target_file || -o _ || -d _ || -w _
+ and next;
+
+ $found_file = 1;
+
+ # Invoke rm on this file and ensure that we get the
+ # expected exit code and diagnostic.
+ my $cmd = "$rm -f -- $target_file";
+ open RM, "$cmd 2>&1 |"
+ or die "$ME: cannot execute '$cmd'\n";
+
+ my $line = <RM>;
+
+ close RM;
+ my $rc = $?;
+ # This test opportunistically looks for files that can't
+ # be removed but those files may already have been removed
+ # by their owners by the time we get to them. It is a
+ # race condition. If so then the rm is successful and our
+ # test is thwarted. Detect this case and ignore.
+ if ($rc == 0)
+ {
+ next if ! -e $target_file;
+ die "$ME: unexpected exit status from '$cmd';\n"
+ . " got 0, expected 1\n";
+ }
+ if (0x80 < $rc)
+ {
+ my $status = $rc >> 8;
+ $status == 1
+ or die "$ME: unexpected exit status from '$cmd';\n"
+ . " got $status, expected 1\n";
+ }
+ else
+ {
+ # Terminated by a signal.
+ my $sig_num = $rc & 0x7F;
+ die "$ME: command '$cmd' died with signal $sig_num\n";
+ }
+
+ my $exp = "rm: cannot remove '$target_file':";
+ $line
+ or die "$ME: no output from '$cmd';\n"
+ . "expected something like '$exp ...'\n";
+
+ # Transform the actual diagnostic so that it starts with "rm:".
+ # Depending on your system, it might be "rm:" already, or
+ # "../../src/rm:".
+ $line =~ s,^\Q$rm\E:,rm:,;
+
+ my $regex = quotemeta $exp;
+ $line =~ /^$regex/
+ or die "$ME: unexpected diagnostic from '$cmd';\n"
+ . " got $line"
+ . " expected $exp ...\n";
+
+ last;
+ }
+
+ closedir DIR_HANDLE;
+ $found_file
+ and last;
+ }
+ }
+
+$found_dir
+ or CuSkip::skip "$ME: couldn't find a directory with the sticky bit set;"
+ . " skipping this test\n";
+
+$found_file
+ or CuSkip::skip "$ME: couldn't find a file not owned by you\n"
+ . " in any of the following directories:\n @dir_list\n"
+ . "...so, skipping this test\n";
diff --git a/tests/rm/hash b/tests/rm/hash
deleted file mode 100755
index 036240c..0000000
--- a/tests/rm/hash
+++ /dev/null
@@ -1,57 +0,0 @@
-#!/bin/sh
-# Exercise a bug that was fixed in 4.0s.
-# Before then, rm would fail occasionally, sometimes via
-# a failed assertion, others with a seg fault.
-
-# Copyright (C) 2000, 2002, 2003, 2004, 2006 Free Software Foundation, Inc.
-
-# This program is free software; you can redistribute it and/or modify
-# it under the terms of the GNU General Public License as published by
-# the Free Software Foundation; either version 2 of the License, or
-# (at your option) any later version.
-
-# This program is distributed in the hope that it will be useful,
-# but WITHOUT ANY WARRANTY; without even the implied warranty of
-# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
-# GNU General Public License for more details.
-
-# You should have received a copy of the GNU General Public License
-# along with this program; if not, write to the Free Software
-# Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA
-# 02110-1301, USA.
-
-. $srcdir/../expensive
-
-if test "$VERBOSE" = yes; then
- set -x
- rm --version
-fi
-
-pwd=`pwd`
-t0=`echo "$0"|sed 's,.*/,,'`.tmp;tmp=$t0/$$
-trap 'status=$?; cd "$pwd" && rm -rf $t0 || exit $?; exit $status' 0
-trap 'exit $?' 1 2 13 15
-
-framework_failure=0
-mkdir -p $tmp || framework_failure=1
-cd $tmp
-
-# Create a hierarchy with 3*26 leaf directories, each at depth 153.
-echo "$0: creating 78 trees, each of depth 153; this will take a while..." >&2
-y=`seq 1 150|tr -sc '\n' y|tr '\n' /`
-for i in 1 2 3; do
- for j in a b c d e f g h i j k l m n o p q r s t u v w x y z; do
- mkdir -p t/$i/$j/$y || framework_failure=1
- done
-done
-
-if test $framework_failure = 1; then
- echo 'failure in testing framework'
- exit 1
-fi
-
-fail=0
-
-rm -r t || fail=1
-
-(exit $fail); exit $fail
diff --git a/tests/rm/hash.sh b/tests/rm/hash.sh
new file mode 100755
index 0000000..eb4139f
--- /dev/null
+++ b/tests/rm/hash.sh
@@ -0,0 +1,37 @@
+#!/bin/sh
+# Exercise a bug that was fixed in 4.0s.
+# Before then, rm would fail occasionally, sometimes via
+# a failed assertion, others with a seg fault.
+
+# Copyright (C) 2000-2016 Free Software Foundation, Inc.
+
+# This program is free software: you can redistribute it and/or modify
+# it under the terms of the GNU General Public License as published by
+# the Free Software Foundation, either version 3 of the License, or
+# (at your option) any later version.
+
+# This program is distributed in the hope that it will be useful,
+# but WITHOUT ANY WARRANTY; without even the implied warranty of
+# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
+# GNU General Public License for more details.
+
+# You should have received a copy of the GNU General Public License
+# along with this program. If not, see <http://www.gnu.org/licenses/>.
+
+. "${srcdir=.}/tests/init.sh"; path_prepend_ ./src
+print_ver_ rm
+expensive_
+
+# Create a hierarchy with 3*26 leaf directories, each at depth 153.
+echo "$0: creating 78 trees, each of depth 153; this will take a while..." >&2
+y=$(seq 1 150|tr -sc '\n' y|tr '\n' /)
+for i in 1 2 3; do
+ for j in a b c d e f g h i j k l m n o p q r s t u v w x y z; do
+ mkdir -p t/$i/$j/$y || framework_failure_
+ done
+done
+
+
+rm -r t || fail=1
+
+Exit $fail
diff --git a/tests/rm/i-1 b/tests/rm/i-1
deleted file mode 100755
index 214292b..0000000
--- a/tests/rm/i-1
+++ /dev/null
@@ -1,57 +0,0 @@
-#!/bin/sh
-# Test "rm -i".
-
-# Copyright (C) 1997, 1998, 2002, 2004, 2006 Free Software Foundation, Inc.
-
-# This program is free software; you can redistribute it and/or modify
-# it under the terms of the GNU General Public License as published by
-# the Free Software Foundation; either version 2 of the License, or
-# (at your option) any later version.
-
-# This program is distributed in the hope that it will be useful,
-# but WITHOUT ANY WARRANTY; without even the implied warranty of
-# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
-# GNU General Public License for more details.
-
-# You should have received a copy of the GNU General Public License
-# along with this program; if not, write to the Free Software
-# Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA
-# 02110-1301, USA.
-
-test=i-1
-
-if test "$VERBOSE" = yes; then
- set -x
- rm --version
-fi
-
-pwd=`pwd`
-t0=`echo "$0"|sed 's,.*/,,'`.tmp;tmp=$t0/$$
-trap 'status=$?; cd "$pwd" && rm -rf $t0 && exit $status' 0
-trap '(exit $?); exit' 1 2 13 15
-
-test_failure=0
-mkdir -p $tmp || test_failure=1
-echo > $tmp/a || test_failure=1
-test -f $tmp/a || test_failure=1
-
-if test $test_failure = 1; then
- echo 'failure in testing framework'
- exit 1
-fi
-
-echo y > $tmp/$test.Iy
-echo n > $tmp/$test.In
-
-fail=0
-rm -i $tmp/a < $tmp/$test.In > /dev/null 2>&1 || fail=1
-# The file should not have been removed.
-test -f $tmp/a || fail=1
-
-rm -i $tmp/a < $tmp/$test.Iy > /dev/null 2>&1 || fail=1
-# The file should have been removed this time.
-test -f $tmp/a && fail=1
-
-rm -rf $tmp
-
-(exit $fail); exit $fail
diff --git a/tests/rm/i-1.sh b/tests/rm/i-1.sh
new file mode 100755
index 0000000..c1c4336
--- /dev/null
+++ b/tests/rm/i-1.sh
@@ -0,0 +1,40 @@
+#!/bin/sh
+# Test "rm -i".
+
+# Copyright (C) 1997-2016 Free Software Foundation, Inc.
+
+# This program is free software: you can redistribute it and/or modify
+# it under the terms of the GNU General Public License as published by
+# the Free Software Foundation, either version 3 of the License, or
+# (at your option) any later version.
+
+# This program is distributed in the hope that it will be useful,
+# but WITHOUT ANY WARRANTY; without even the implied warranty of
+# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
+# GNU General Public License for more details.
+
+# You should have received a copy of the GNU General Public License
+# along with this program. If not, see <http://www.gnu.org/licenses/>.
+
+. "${srcdir=.}/tests/init.sh"; path_prepend_ ./src
+print_ver_ rm
+
+t=t
+mkdir -p $t || framework_failure_
+echo > $t/a || framework_failure_
+test -f $t/a || framework_failure_
+
+echo y > $t/in-y
+echo n > $t/in-n
+
+rm -i $t/a < $t/in-n > /dev/null 2>&1 || fail=1
+# The file should not have been removed.
+test -f $t/a || fail=1
+
+rm -i $t/a < $t/in-y > /dev/null 2>&1 || fail=1
+# The file should have been removed this time.
+test -f $t/a && fail=1
+
+rm -rf $t
+
+Exit $fail
diff --git a/tests/rm/i-never b/tests/rm/i-never
deleted file mode 100755
index f20e90e..0000000
--- a/tests/rm/i-never
+++ /dev/null
@@ -1,53 +0,0 @@
-#!/bin/sh
-# Ensure that rm --interactive=never works does not prompt, even for
-# an unwritable file.
-
-# Copyright (C) 2007 Free Software Foundation, Inc.
-
-# This program is free software; you can redistribute it and/or modify
-# it under the terms of the GNU General Public License as published by
-# the Free Software Foundation; either version 2 of the License, or
-# (at your option) any later version.
-
-# This program is distributed in the hope that it will be useful,
-# but WITHOUT ANY WARRANTY; without even the implied warranty of
-# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
-# GNU General Public License for more details.
-
-# You should have received a copy of the GNU General Public License
-# along with this program; if not, write to the Free Software
-# Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA
-# 02110-1301, USA.
-
-if test "$VERBOSE" = yes; then
- set -x
- rm --version
-fi
-
-PRIV_CHECK_ARG=require-non-root . $srcdir/../priv-check
-
-pwd=`pwd`
-t0=`echo "$0"|sed 's,.*/,,'`.tmp; tmp=$t0/$$
-trap 'status=$?; cd "$pwd" && chmod -R u+rwx $t0 && rm -rf $t0 && exit $status' 0
-trap '(exit $?); exit $?' 1 2 13 15
-
-framework_failure=0
-mkdir -p $tmp || framework_failure=1
-cd $tmp || framework_failure=1
-touch f || framework_failure=1
-chmod 0 f || framework_failure=1
-touch exp || framework_failure=1
-
-if test $framework_failure = 1; then
- echo "$0: failure in testing framework" 1>&2
- (exit 1); exit 1
-fi
-
-fail=0
-
-rm --interactive=never f > out || fail=1
-
-cmp out exp || fail=1
-test $fail = 1 && diff out exp 2> /dev/null
-
-(exit $fail); exit $fail
diff --git a/tests/rm/i-never.sh b/tests/rm/i-never.sh
new file mode 100755
index 0000000..29a9829
--- /dev/null
+++ b/tests/rm/i-never.sh
@@ -0,0 +1,33 @@
+#!/bin/sh
+# Ensure that rm --interactive=never works does not prompt, even for
+# an unwritable file.
+
+# Copyright (C) 2007-2016 Free Software Foundation, Inc.
+
+# This program is free software: you can redistribute it and/or modify
+# it under the terms of the GNU General Public License as published by
+# the Free Software Foundation, either version 3 of the License, or
+# (at your option) any later version.
+
+# This program is distributed in the hope that it will be useful,
+# but WITHOUT ANY WARRANTY; without even the implied warranty of
+# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
+# GNU General Public License for more details.
+
+# You should have received a copy of the GNU General Public License
+# along with this program. If not, see <http://www.gnu.org/licenses/>.
+
+. "${srcdir=.}/tests/init.sh"; path_prepend_ ./src
+print_ver_ rm
+skip_if_root_
+
+touch f || framework_failure_
+chmod 0 f || framework_failure_
+touch exp || framework_failure_
+
+
+rm --interactive=never f > out || fail=1
+
+compare exp out || fail=1
+
+Exit $fail
diff --git a/tests/rm/i-no-r b/tests/rm/i-no-r
deleted file mode 100755
index b23ff5e..0000000
--- a/tests/rm/i-no-r
+++ /dev/null
@@ -1,52 +0,0 @@
-#!/bin/sh
-# Since the rewrite for fileutils-4.1.9, `rm -i DIR' would mistakenly
-# recurse into directory DIR. rm -i (without -r) must fail in that case.
-# Fixed in coreutils-4.5.2.
-
-# Copyright (C) 2002, 2006 Free Software Foundation, Inc.
-
-# This program is free software; you can redistribute it and/or modify
-# it under the terms of the GNU General Public License as published by
-# the Free Software Foundation; either version 2 of the License, or
-# (at your option) any later version.
-
-# This program is distributed in the hope that it will be useful,
-# but WITHOUT ANY WARRANTY; without even the implied warranty of
-# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
-# GNU General Public License for more details.
-
-# You should have received a copy of the GNU General Public License
-# along with this program; if not, write to the Free Software
-# Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA
-# 02110-1301, USA.
-
-if test "$VERBOSE" = yes; then
- set -x
- rm --version
-fi
-
-pwd=`pwd`
-t0=`echo "$0"|sed 's,.*/,,'`.tmp; tmp=$t0/$$
-trap 'status=$?; cd "$pwd" && chmod -R u+rwx $t0 && rm -rf $t0 && exit $status' 0
-trap '(exit $?); exit $?' 1 2 13 15
-
-framework_failure=0
-mkdir -p $tmp || framework_failure=1
-cd $tmp || framework_failure=1
-mkdir dir || framework_failure=1
-echo y > y || framework_failure=1
-
-if test $framework_failure = 1; then
- echo "$0: failure in testing framework" 1>&2
- (exit 1); exit 1
-fi
-
-fail=0
-
-# This must fail.
-rm -i dir < y > /dev/null 2>&1 && fail=1
-
-# The directory must remain.
-test -d dir || fail=1
-
-(exit $fail); exit $fail
diff --git a/tests/rm/i-no-r.sh b/tests/rm/i-no-r.sh
new file mode 100755
index 0000000..4b7d6fd
--- /dev/null
+++ b/tests/rm/i-no-r.sh
@@ -0,0 +1,34 @@
+#!/bin/sh
+# Since the rewrite for fileutils-4.1.9, 'rm -i DIR' would mistakenly
+# recurse into directory DIR. rm -i (without -r) must fail in that case.
+# Fixed in coreutils-4.5.2.
+
+# Copyright (C) 2002-2016 Free Software Foundation, Inc.
+
+# This program is free software: you can redistribute it and/or modify
+# it under the terms of the GNU General Public License as published by
+# the Free Software Foundation, either version 3 of the License, or
+# (at your option) any later version.
+
+# This program is distributed in the hope that it will be useful,
+# but WITHOUT ANY WARRANTY; without even the implied warranty of
+# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
+# GNU General Public License for more details.
+
+# You should have received a copy of the GNU General Public License
+# along with this program. If not, see <http://www.gnu.org/licenses/>.
+
+. "${srcdir=.}/tests/init.sh"; path_prepend_ ./src
+print_ver_ rm
+
+mkdir dir || framework_failure_
+echo y > y || framework_failure_
+
+
+# This must fail.
+returns_ 1 rm -i dir < y > /dev/null 2>&1 || fail=1
+
+# The directory must remain.
+test -d dir || fail=1
+
+Exit $fail
diff --git a/tests/rm/ignorable b/tests/rm/ignorable
deleted file mode 100755
index 6036dd9..0000000
--- a/tests/rm/ignorable
+++ /dev/null
@@ -1,49 +0,0 @@
-#!/bin/sh
-# Ensure that rm -f existing-non-dir/anything exits successfully
-
-# Copyright (C) 2006 Free Software Foundation, Inc.
-
-# This program is free software; you can redistribute it and/or modify
-# it under the terms of the GNU General Public License as published by
-# the Free Software Foundation; either version 2 of the License, or
-# (at your option) any later version.
-
-# This program is distributed in the hope that it will be useful,
-# but WITHOUT ANY WARRANTY; without even the implied warranty of
-# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
-# GNU General Public License for more details.
-
-# You should have received a copy of the GNU General Public License
-# along with this program; if not, write to the Free Software
-# Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA
-# 02110-1301, USA.
-
-if test "$VERBOSE" = yes; then
- set -x
- rm --version
-fi
-
-PRIV_CHECK_ARG=require-non-root . $srcdir/../priv-check
-
-pwd=`pwd`
-t0=`echo "$0"|sed 's,.*/,,'`.tmp; tmp=$t0/$$
-trap 'status=$?; cd "$pwd" && chmod -R u+rwx $t0 && rm -rf $t0 && exit $status' 0
-trap '(exit $?); exit $?' 1 2 13 15
-
-framework_failure=0
-mkdir -p $tmp || framework_failure=1
-cd $tmp || framework_failure=1
-touch existing-non-dir || framework_failure=1
-
-if test $framework_failure = 1; then
- echo "$0: failure in testing framework" 1>&2
- (exit 1); exit 1
-fi
-
-fail=0
-
-# With coreutils-6.3, this would exit nonzero. It should not.
-# Example from Andreas Schwab.
-rm -f existing-non-dir/f > out 2>&1 || fail=1
-
-(exit $fail); exit $fail
diff --git a/tests/rm/ignorable.sh b/tests/rm/ignorable.sh
new file mode 100755
index 0000000..2cd613a
--- /dev/null
+++ b/tests/rm/ignorable.sh
@@ -0,0 +1,30 @@
+#!/bin/sh
+# Ensure that rm -f existing-non-dir/anything exits successfully
+
+# Copyright (C) 2006-2016 Free Software Foundation, Inc.
+
+# This program is free software: you can redistribute it and/or modify
+# it under the terms of the GNU General Public License as published by
+# the Free Software Foundation, either version 3 of the License, or
+# (at your option) any later version.
+
+# This program is distributed in the hope that it will be useful,
+# but WITHOUT ANY WARRANTY; without even the implied warranty of
+# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
+# GNU General Public License for more details.
+
+# You should have received a copy of the GNU General Public License
+# along with this program. If not, see <http://www.gnu.org/licenses/>.
+
+. "${srcdir=.}/tests/init.sh"; path_prepend_ ./src
+print_ver_ rm
+skip_if_root_
+
+touch existing-non-dir || framework_failure_
+
+
+# With coreutils-6.3, this would exit nonzero. It should not.
+# Example from Andreas Schwab.
+rm -f existing-non-dir/f > out 2>&1 || fail=1
+
+Exit $fail
diff --git a/tests/rm/inaccessible b/tests/rm/inaccessible
deleted file mode 100755
index 02128d7..0000000
--- a/tests/rm/inaccessible
+++ /dev/null
@@ -1,76 +0,0 @@
-#!/bin/sh
-# Ensure that rm works even when run from a directory
-# for which the user has no access at all.
-
-# Copyright (C) 2004, 2006 Free Software Foundation, Inc.
-
-# This program is free software; you can redistribute it and/or modify
-# it under the terms of the GNU General Public License as published by
-# the Free Software Foundation; either version 2 of the License, or
-# (at your option) any later version.
-
-# This program is distributed in the hope that it will be useful,
-# but WITHOUT ANY WARRANTY; without even the implied warranty of
-# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
-# GNU General Public License for more details.
-
-# You should have received a copy of the GNU General Public License
-# along with this program; if not, write to the Free Software
-# Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA
-# 02110-1301, USA.
-
-if test "$VERBOSE" = yes; then
- set -x
- rm --version
-fi
-
-PRIV_CHECK_ARG=require-non-root . $srcdir/../priv-check
-. $srcdir/../lang-default
-
-# Skip this test if your system has neither the openat-style functions
-# nor /proc/self/fd support with which to emulate them.
-skip=yes
-grep '^#define HAVE_OPENAT' $CONFIG_HEADER > /dev/null && skip=no
-test -d /proc/self/fd && skip=no
-if test $skip = yes; then
- echo 1>&2 "$0: no openat support, so skipping this test"
- (exit 77); exit 77
-fi
-
-pwd=`pwd`
-t0=`echo "$0"|sed 's,.*/,,'`.tmp; tmp=$t0/$$
-trap 'status=$?; cd "$pwd" && chmod -R u+rwx $t0 && rm -rf $t0 && exit $status' 0
-trap '(exit $?); exit $?' 1 2 13 15
-
-framework_failure=0
-mkdir -p $tmp || framework_failure=1
-cd $tmp || framework_failure=1
-mkdir abs1 abs2 no-access || framework_failure=1
-
-if test $framework_failure = 1; then
- echo "$0: failure in testing framework" 1>&2
- (exit 1); exit 1
-fi
-
-fail=0
-
-p=$pwd/$tmp
-set +x
-(cd no-access; chmod 0 . && rm -r "$p/abs1" rel "$p/abs2") 2> out && fail=1
-test -d "$p/abs1" && fail=1
-test -d "$p/abs2" && fail=1
-
-cat <<\EOF > exp || fail=1
-rm: cannot remove `rel': Permission denied
-EOF
-
-# AIX 4.3.3 fails with a different diagnostic.
-# Transform their diagnostic
-# ...: The file access permissions do not allow the specified action.
-# to the expected one:
-sed 's/: The file access permissions.*/: Permission denied/'<out>o1;mv o1 out
-
-cmp out exp || fail=1
-test $fail = 1 && diff out exp 2> /dev/null
-
-(exit $fail); exit $fail
diff --git a/tests/rm/inaccessible.sh b/tests/rm/inaccessible.sh
new file mode 100755
index 0000000..42d9c1b
--- /dev/null
+++ b/tests/rm/inaccessible.sh
@@ -0,0 +1,49 @@
+#!/bin/sh
+# Ensure that rm works even when run from a directory
+# for which the user has no access at all.
+
+# Copyright (C) 2004-2016 Free Software Foundation, Inc.
+
+# This program is free software: you can redistribute it and/or modify
+# it under the terms of the GNU General Public License as published by
+# the Free Software Foundation, either version 3 of the License, or
+# (at your option) any later version.
+
+# This program is distributed in the hope that it will be useful,
+# but WITHOUT ANY WARRANTY; without even the implied warranty of
+# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
+# GNU General Public License for more details.
+
+# You should have received a copy of the GNU General Public License
+# along with this program. If not, see <http://www.gnu.org/licenses/>.
+
+. "${srcdir=.}/tests/init.sh"; path_prepend_ ./src
+print_ver_ rm
+
+# Skip this test if your system has neither the openat-style functions
+# nor /proc/self/fd support with which to emulate them.
+require_openat_support_
+skip_if_root_
+
+p=$(pwd)
+mkdir abs1 abs2 no-access || framework_failure_
+
+
+set +x
+(cd no-access; chmod 0 . && rm -r "$p/abs1" rel "$p/abs2") 2> out && fail=1
+test -d "$p/abs1" && fail=1
+test -d "$p/abs2" && fail=1
+
+cat <<\EOF > exp || fail=1
+rm: cannot remove 'rel': Permission denied
+EOF
+
+# AIX 4.3.3 fails with a different diagnostic.
+# Transform their diagnostic
+# ...: The file access permissions do not allow the specified action.
+# to the expected one:
+sed 's/: The file access permissions.*/: Permission denied/'<out>o1;mv o1 out
+
+compare exp out || fail=1
+
+Exit $fail
diff --git a/tests/rm/interactive-always b/tests/rm/interactive-always
deleted file mode 100755
index 7b81664..0000000
--- a/tests/rm/interactive-always
+++ /dev/null
@@ -1,113 +0,0 @@
-#!/bin/sh
-# Test the --interactive[=WHEN] changes added to coreutils 6.0
-
-# Copyright (C) 2006 Free Software Foundation, Inc.
-
-# This program is free software; you can redistribute it and/or modify
-# it under the terms of the GNU General Public License as published by
-# the Free Software Foundation; either version 2 of the License, or
-# (at your option) any later version.
-
-# This program is distributed in the hope that it will be useful,
-# but WITHOUT ANY WARRANTY; without even the implied warranty of
-# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
-# GNU General Public License for more details.
-
-# You should have received a copy of the GNU General Public License
-# along with this program; if not, write to the Free Software
-# Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA
-# 02110-1301, USA.
-
-test=interactive-always
-
-if test "$VERBOSE" = yes; then
- set -x
- rm --version
-fi
-
-. $srcdir/../lang-default
-
-pwd=`pwd`
-t0=`echo "$0"|sed 's,.*/,,'`.tmp; tmp=$t0/$$
-trap 'status=$?; cd "$pwd" && chmod -R u+rwx $t0 && rm -rf $t0 && exit $status' 0
-trap '(exit $?); exit $?' 1 2 13 15
-
-framework_failure=0
-mkdir -p $tmp || framework_failure=1
-cd $tmp || framework_failure=1
-
-touch file1-1 file1-2 file2-1 file2-2 file3-1 file3-2 file4-1 file4-2 \
- || framework_failure=1
-# If asked, answer no to first question, then yes to second.
-echo 'n
-y' > $test.I || framework_failure=1
-rm -f out err || framework_failure=1
-
-if test $framework_failure = 1; then
- echo "$0: failure in testing framework" 1>&2
- (exit 1); exit 1
-fi
-
-fail=0
-
-# The prompt has a trailing space, and no newline, so an extra
-# 'echo .' is inserted after each rm to make it obvious what was asked.
-
-echo 'no WHEN' > err || fail=1
-rm -R --interactive file1-* < $test.I >> out 2>> err || fail=1
-echo . >> err || fail=1
-test -f file1-1 || fail=1
-test -f file1-2 && fail=1
-
-echo 'WHEN=never' >> err || fail=1
-rm -R --interactive=never file2-* < $test.I >> out 2>> err || fail=1
-echo . >> err || fail=1
-test -f file2-1 && fail=1
-test -f file2-2 && fail=1
-
-echo 'WHEN=once' >> err || fail=1
-rm -R --interactive=once file3-* < $test.I >> out 2>> err || fail=1
-echo . >> err || fail=1
-test -f file3-1 || fail=1
-test -f file3-2 || fail=1
-
-echo 'WHEN=always' >> err || fail=1
-rm -R --interactive=always file4-* < $test.I >> out 2>> err || fail=1
-echo . >> err || fail=1
-test -f file4-1 || fail=1
-test -f file4-2 && fail=1
-
-echo '-f overrides --interactive' >> err || fail=1
-rm -R --interactive=once -f file1-* < $test.I >> out 2>> err || fail=1
-echo . >> err || fail=1
-test -f file1-1 && fail=1
-
-echo '--interactive overrides -f' >> err || fail=1
-rm -R -f --interactive=once file4-* < $test.I >> out 2>> err || fail=1
-echo . >> err || fail=1
-test -f file4-1 || fail=1
-
-cat <<\EOF > expout || fail=1
-EOF
-cat <<\EOF > experr || fail=1
-no WHEN
-rm: remove regular empty file `file1-1'? rm: remove regular empty file `file1-2'? .
-WHEN=never
-.
-WHEN=once
-rm: remove all arguments recursively? .
-WHEN=always
-rm: remove regular empty file `file4-1'? rm: remove regular empty file `file4-2'? .
--f overrides --interactive
-.
---interactive overrides -f
-rm: remove all arguments recursively? .
-EOF
-
-cmp out expout || fail=1
-cmp err experr || fail=1
-test $fail = 1 && {
- diff out expout 2> /dev/null; diff err experr 2> /dev/null
-}
-
-(exit $fail); exit $fail
diff --git a/tests/rm/interactive-always.sh b/tests/rm/interactive-always.sh
new file mode 100755
index 0000000..e4fb72b
--- /dev/null
+++ b/tests/rm/interactive-always.sh
@@ -0,0 +1,87 @@
+#!/bin/sh
+# Test the --interactive[=WHEN] changes added to coreutils 6.0
+
+# Copyright (C) 2006-2016 Free Software Foundation, Inc.
+
+# This program is free software: you can redistribute it and/or modify
+# it under the terms of the GNU General Public License as published by
+# the Free Software Foundation, either version 3 of the License, or
+# (at your option) any later version.
+
+# This program is distributed in the hope that it will be useful,
+# but WITHOUT ANY WARRANTY; without even the implied warranty of
+# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
+# GNU General Public License for more details.
+
+# You should have received a copy of the GNU General Public License
+# along with this program. If not, see <http://www.gnu.org/licenses/>.
+
+. "${srcdir=.}/tests/init.sh"; path_prepend_ ./src
+print_ver_ rm
+
+touch file1-1 file1-2 file2-1 file2-2 file3-1 file3-2 file4-1 file4-2 \
+ || framework_failure_
+# If asked, answer no to first question, then yes to second.
+echo 'n
+y' > in || framework_failure_
+rm -f out err || framework_failure_
+
+
+# The prompt has a trailing space, and no newline, so an extra
+# 'echo .' is inserted after each rm to make it obvious what was asked.
+
+echo 'no WHEN' > err || fail=1
+rm -R --interactive file1-* < in >> out 2>> err || fail=1
+echo . >> err || fail=1
+test -f file1-1 || fail=1
+test -f file1-2 && fail=1
+
+echo 'WHEN=never' >> err || fail=1
+rm -R --interactive=never file2-* < in >> out 2>> err || fail=1
+echo . >> err || fail=1
+test -f file2-1 && fail=1
+test -f file2-2 && fail=1
+
+echo 'WHEN=once' >> err || fail=1
+rm -R --interactive=once file3-* < in >> out 2>> err || fail=1
+echo . >> err || fail=1
+test -f file3-1 || fail=1
+test -f file3-2 || fail=1
+
+echo 'WHEN=always' >> err || fail=1
+rm -R --interactive=always file4-* < in >> out 2>> err || fail=1
+echo . >> err || fail=1
+test -f file4-1 || fail=1
+test -f file4-2 && fail=1
+
+echo '-f overrides --interactive' >> err || fail=1
+rm -R --interactive=once -f file1-* < in >> out 2>> err || fail=1
+echo . >> err || fail=1
+test -f file1-1 && fail=1
+
+echo '--interactive overrides -f' >> err || fail=1
+rm -R -f --interactive=once file4-* < in >> out 2>> err || fail=1
+echo . >> err || fail=1
+test -f file4-1 || fail=1
+
+cat <<\EOF > expout || fail=1
+EOF
+sed 's/@remove_empty/rm: remove regular empty file/g' <<\EOF > experr || fail=1
+no WHEN
+@remove_empty 'file1-1'? @remove_empty 'file1-2'? .
+WHEN=never
+.
+WHEN=once
+rm: remove 2 arguments recursively? .
+WHEN=always
+@remove_empty 'file4-1'? @remove_empty 'file4-2'? .
+-f overrides --interactive
+.
+--interactive overrides -f
+rm: remove 1 argument recursively? .
+EOF
+
+compare expout out || fail=1
+compare experr err || fail=1
+
+Exit $fail
diff --git a/tests/rm/interactive-once b/tests/rm/interactive-once
deleted file mode 100755
index 9325e8e..0000000
--- a/tests/rm/interactive-once
+++ /dev/null
@@ -1,133 +0,0 @@
-#!/bin/sh
-# Test the -I option added to coreutils 6.0
-
-# Copyright (C) 2006 Free Software Foundation, Inc.
-
-# This program is free software; you can redistribute it and/or modify
-# it under the terms of the GNU General Public License as published by
-# the Free Software Foundation; either version 2 of the License, or
-# (at your option) any later version.
-
-# This program is distributed in the hope that it will be useful,
-# but WITHOUT ANY WARRANTY; without even the implied warranty of
-# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
-# GNU General Public License for more details.
-
-# You should have received a copy of the GNU General Public License
-# along with this program; if not, write to the Free Software
-# Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA
-# 02110-1301, USA.
-
-test=interactive-once
-
-if test "$VERBOSE" = yes; then
- set -x
- rm --version
-fi
-
-. $srcdir/../lang-default
-
-pwd=`pwd`
-t0=`echo "$0"|sed 's,.*/,,'`.tmp; tmp=$t0/$$
-trap 'status=$?; cd "$pwd" && chmod -R u+rwx $t0 && rm -rf $t0 && exit $status' 0
-trap '(exit $?); exit $?' 1 2 13 15
-
-framework_failure=0
-mkdir -p $tmp || framework_failure=1
-cd $tmp || framework_failure=1
-
-mkdir -p dir1-1 dir2-1 dir2-2 || framework_failure=1
-touch file1-1 file2-1 file2-2 file2-3 file3-1 file3-2 file3-3 file3-4 \
- || framework_failure=1
-echo y > $test.Iy || framework_failure=1
-echo n > $test.In || framework_failure=1
-rm -f out err || framework_failure=1
-
-if test $framework_failure = 1; then
- echo "$0: failure in testing framework" 1>&2
- (exit 1); exit 1
-fi
-
-fail=0
-
-# The prompt has a trailing space, and no newline, so an extra
-# 'echo .' is inserted after each rm to make it obvious what was asked.
-
-echo 'one file, no recursion' > err || fail=1
-rm -I file1-* < $test.In >> out 2>> err || fail=1
-echo . >> err || fail=1
-test -f file1-1 && fail=1
-
-echo 'three files, no recursion' >> err || fail=1
-rm -I file2-* < $test.In >> out 2>> err || fail=1
-echo . >> err || fail=1
-test -f file2-1 && fail=1
-test -f file2-2 && fail=1
-test -f file2-3 && fail=1
-
-echo 'four files, no recursion, answer no' >> err || fail=1
-rm -I file3-* < $test.In >> out 2>> err || fail=1
-echo . >> err || fail=1
-test -f file3-1 || fail=1
-test -f file3-2 || fail=1
-test -f file3-3 || fail=1
-test -f file3-4 || fail=1
-
-echo 'four files, no recursion, answer yes' >> err || fail=1
-rm -I file3-* < $test.Iy >> out 2>> err || fail=1
-echo . >> err || fail=1
-test -f file3-1 && fail=1
-test -f file3-2 && fail=1
-test -f file3-3 && fail=1
-test -f file3-4 && fail=1
-
-echo 'one file, recursion, answer no' >> err || fail=1
-rm -I -R dir1-* < $test.In >> out 2>> err || fail=1
-echo . >> err || fail=1
-test -d dir1-1 || fail=1
-
-echo 'one file, recursion, answer yes' >> err || fail=1
-rm -I -R dir1-* < $test.Iy >> out 2>> err || fail=1
-echo . >> err || fail=1
-test -d dir1-1 && fail=1
-
-echo 'multiple files, recursion, answer no' >> err || fail=1
-rm -I -R dir2-* < $test.In >> out 2>> err || fail=1
-echo . >> err || fail=1
-test -d dir2-1 || fail=1
-test -d dir2-2 || fail=1
-
-echo 'multiple files, recursion, answer yes' >> err || fail=1
-rm -I -R dir2-* < $test.Iy >> out 2>> err || fail=1
-echo . >> err || fail=1
-test -d dir2-1 && fail=1
-test -d dir2-2 && fail=1
-
-cat <<\EOF > expout || fail=1
-EOF
-cat <<\EOF > experr || fail=1
-one file, no recursion
-.
-three files, no recursion
-.
-four files, no recursion, answer no
-rm: remove all arguments? .
-four files, no recursion, answer yes
-rm: remove all arguments? .
-one file, recursion, answer no
-rm: remove all arguments recursively? .
-one file, recursion, answer yes
-rm: remove all arguments recursively? .
-multiple files, recursion, answer no
-rm: remove all arguments recursively? .
-multiple files, recursion, answer yes
-rm: remove all arguments recursively? .
-EOF
-
-cmp out expout || fail=1
-cmp err experr || fail=1
-test $fail = 1 && {
- diff out expout 2> /dev/null; diff err experr 2> /dev/null
-}
-
-(exit $fail); exit $fail
diff --git a/tests/rm/interactive-once.sh b/tests/rm/interactive-once.sh
new file mode 100755
index 0000000..1f079d8
--- /dev/null
+++ b/tests/rm/interactive-once.sh
@@ -0,0 +1,150 @@
+#!/bin/sh
+# Test the -I option added to coreutils 6.0
+
+# Copyright (C) 2006-2016 Free Software Foundation, Inc.
+
+# This program is free software: you can redistribute it and/or modify
+# it under the terms of the GNU General Public License as published by
+# the Free Software Foundation, either version 3 of the License, or
+# (at your option) any later version.
+
+# This program is distributed in the hope that it will be useful,
+# but WITHOUT ANY WARRANTY; without even the implied warranty of
+# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
+# GNU General Public License for more details.
+
+# You should have received a copy of the GNU General Public License
+# along with this program. If not, see <http://www.gnu.org/licenses/>.
+
+. "${srcdir=.}/tests/init.sh"; path_prepend_ ./src
+print_ver_ rm
+
+mkdir -p dir1-1 dir2-1 dir2-2 || framework_failure_
+touch file1-1 file2-1 file2-2 file2-3 file3-1 file3-2 file3-3 file3-4 \
+ || framework_failure_
+echo y > in-y || framework_failure_
+echo n > in-n || framework_failure_
+rm -f out err || framework_failure_
+
+
+# The prompt has a trailing space, and no newline, so an extra
+# 'echo .' is inserted after each rm to make it obvious what was asked.
+
+echo 'one file, no recursion' > err || framework_failure_
+rm -I file1-* < in-n >> out 2>> err || fail=1
+echo . >> err || fail=1
+test -f file1-1 && fail=1
+
+echo 'one file, read only, answer no' >> err || framework_failure_
+if ls /dev/stdin >/dev/null 2>&1; then
+ touch file1-1 || framework_failure_
+ chmod a-w file1-1 || framework_failure_
+ if ! test -w file1-1; then
+ # root won't get prompted
+ write_prot_msg1="rm: remove write-protected regular empty file 'file1-1'? "
+ fi
+ rm ---presume-input-tty -I file1-* < in-n >> out 2>> err || fail=1
+ echo . >> err || fail=1
+ if test "$write_prot_msg1"; then
+ test -f file1-1 || fail=1
+ fi
+else
+ echo '.' >> err || framework_failure_
+fi
+
+echo 'three files, no recursion' >> err || framework_failure_
+rm -I file2-* < in-n >> out 2>> err || fail=1
+echo . >> err || fail=1
+test -f file2-1 && fail=1
+test -f file2-2 && fail=1
+test -f file2-3 && fail=1
+
+echo 'four files, no recursion, answer no' >> err || framework_failure_
+rm -I file3-* < in-n >> out 2>> err || fail=1
+echo . >> err || fail=1
+test -f file3-1 || fail=1
+test -f file3-2 || fail=1
+test -f file3-3 || fail=1
+test -f file3-4 || fail=1
+
+echo 'four files, no recursion, answer yes' >> err || framework_failure_
+rm -I file3-* < in-y >> out 2>> err || fail=1
+echo . >> err || fail=1
+test -f file3-1 && fail=1
+test -f file3-2 && fail=1
+test -f file3-3 && fail=1
+test -f file3-4 && fail=1
+
+echo 'four files, no recursion, 1 read only, answer yes no' >> err \
+ || framework_failure_
+if ls /dev/stdin >/dev/null 2>&1; then
+ touch file3-1 file3-2 file3-3 file3-4 || framework_failure_
+ echo non_empty > file3-4 || framework_failure_ # to shorten diagnostic
+ chmod a-w file3-4 || framework_failure_
+ if ! test -w file3-4; then
+ # root won't get prompted
+ write_prot_msg2="rm: remove write-protected regular file 'file3-4'? "
+ fi
+ cat in-y in-n | rm ---presume-input-tty -I file3-* >> out 2>> err || fail=1
+ echo . >> err || fail=1
+ test -f file3-1 && fail=1
+ test -f file3-2 && fail=1
+ test -f file3-3 && fail=1
+ if test "$write_prot_msg2"; then
+ test -f file3-4 || fail=1
+ fi
+else
+ echo 'rm: remove 4 arguments? .' >> err || framework_failure_
+fi
+
+echo 'one file, recursion, answer no' >> err || framework_failure_
+rm -I -R dir1-* < in-n >> out 2>> err || fail=1
+echo . >> err || fail=1
+test -d dir1-1 || fail=1
+
+echo 'one file, recursion, answer yes' >> err || framework_failure_
+rm -I -R dir1-* < in-y >> out 2>> err || fail=1
+echo . >> err || fail=1
+test -d dir1-1 && fail=1
+
+echo 'multiple files, recursion, answer no' >> err || framework_failure_
+rm -I -R dir2-* < in-n >> out 2>> err || fail=1
+echo . >> err || fail=1
+test -d dir2-1 || fail=1
+test -d dir2-2 || fail=1
+
+echo 'multiple files, recursion, answer yes' >> err || framework_failure_
+rm -I -R dir2-* < in-y >> out 2>> err || fail=1
+echo . >> err || fail=1
+test -d dir2-1 && fail=1
+test -d dir2-2 && fail=1
+
+cat <<\EOF > expout || fail=1
+EOF
+cat <<EOF > experr || fail=1
+one file, no recursion
+.
+one file, read only, answer no
+$write_prot_msg1.
+three files, no recursion
+.
+four files, no recursion, answer no
+rm: remove 4 arguments? .
+four files, no recursion, answer yes
+rm: remove 4 arguments? .
+four files, no recursion, 1 read only, answer yes no
+rm: remove 4 arguments? $write_prot_msg2.
+one file, recursion, answer no
+rm: remove 1 argument recursively? .
+one file, recursion, answer yes
+rm: remove 1 argument recursively? .
+multiple files, recursion, answer no
+rm: remove 2 arguments recursively? .
+multiple files, recursion, answer yes
+rm: remove 2 arguments recursively? .
+EOF
+
+compare expout out || fail=1
+compare experr err || fail=1
+
+Exit $fail
diff --git a/tests/rm/ir-1 b/tests/rm/ir-1
deleted file mode 100755
index 71f1420..0000000
--- a/tests/rm/ir-1
+++ /dev/null
@@ -1,76 +0,0 @@
-#!/bin/sh
-# Test "rm -ir".
-
-# Copyright (C) 1997, 1998, 2002, 2004, 2006 Free Software Foundation,
-# Inc.
-
-# This program is free software; you can redistribute it and/or modify
-# it under the terms of the GNU General Public License as published by
-# the Free Software Foundation; either version 2 of the License, or
-# (at your option) any later version.
-
-# This program is distributed in the hope that it will be useful,
-# but WITHOUT ANY WARRANTY; without even the implied warranty of
-# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
-# GNU General Public License for more details.
-
-# You should have received a copy of the GNU General Public License
-# along with this program; if not, write to the Free Software
-# Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA
-# 02110-1301, USA.
-
-test=ir-1
-
-if test "$VERBOSE" = yes; then
- set -x
- rm --version
-fi
-
-pwd=`pwd`
-t0=`echo "$0"|sed 's,.*/,,'`.tmp;tmp=$t0/$$
-trap 'status=$?; cd "$pwd" && rm -rf $t0 && exit $status' 0
-trap '(exit $?); exit' 1 2 13 15
-
-test_failure=0
-mkdir -p $tmp $tmp/a $tmp/b $tmp/c || test_failure=1
-> $tmp/a/a || test_failure=1
-> $tmp/b/bb || test_failure=1
-> $tmp/c/cc || test_failure=1
-
-if test $test_failure = 1; then
- echo 'failure in testing framework'
- exit 1
-fi
-
-cat <<EOF > $test.I
-y
-y
-y
-y
-y
-y
-y
-y
-n
-n
-n
-EOF
-
-# Remove all but one of a, b, c -- I doubt that this test can portably
-# determine which one was removed based on order of dir entries.
-# This is a good argument for switching to a dejagnu-style test suite.
-fail=0
-rm --verbose -i -r $tmp < $test.I > /dev/null 2>&1 || fail=1
-
-# $tmp should not have been removed.
-test -d $tmp || fail=1
-
-# There should be only one directory left.
-case `echo $tmp/*` in
- $tmp/[abc]) ;;
- *) fail=1 ;;
-esac
-
-rm -rf $tmp $test.I
-
-(exit $fail); exit $fail
diff --git a/tests/rm/ir-1.sh b/tests/rm/ir-1.sh
new file mode 100755
index 0000000..2ea2c7e
--- /dev/null
+++ b/tests/rm/ir-1.sh
@@ -0,0 +1,56 @@
+#!/bin/sh
+# Test "rm -ir".
+
+# Copyright (C) 1997-2016 Free Software Foundation, Inc.
+
+# This program is free software: you can redistribute it and/or modify
+# it under the terms of the GNU General Public License as published by
+# the Free Software Foundation, either version 3 of the License, or
+# (at your option) any later version.
+
+# This program is distributed in the hope that it will be useful,
+# but WITHOUT ANY WARRANTY; without even the implied warranty of
+# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
+# GNU General Public License for more details.
+
+# You should have received a copy of the GNU General Public License
+# along with this program. If not, see <http://www.gnu.org/licenses/>.
+
+. "${srcdir=.}/tests/init.sh"; path_prepend_ ./src
+print_ver_ rm
+
+t=t
+mkdir -p $t $t/a $t/b $t/c || framework_failure_
+> $t/a/a || framework_failure_
+> $t/b/bb || framework_failure_
+> $t/c/cc || framework_failure_
+
+cat <<EOF > in
+y
+y
+y
+y
+y
+y
+y
+y
+n
+n
+n
+EOF
+
+# Remove all but one of a, b, c -- I doubt that this test can portably
+# determine which one was removed based on order of dir entries.
+# This is a good argument for switching to a dejagnu-style test suite.
+rm --verbose -i -r $t < in > /dev/null 2>&1 || fail=1
+
+# $t should not have been removed.
+test -d $t || fail=1
+
+# There should be only one directory left.
+case $(echo $t/*) in
+ $t/[abc]) ;;
+ *) fail=1 ;;
+esac
+
+Exit $fail
diff --git a/tests/rm/isatty b/tests/rm/isatty
deleted file mode 100755
index 202dc01..0000000
--- a/tests/rm/isatty
+++ /dev/null
@@ -1,77 +0,0 @@
-#!/bin/sh
-# Make sure `chown 0 f; rm f' prompts before removing f.
-
-# Copyright (C) 2001, 2002, 2003, 2004, 2005, 2006 Free Software Foundation,
-# Inc.
-
-# This program is free software; you can redistribute it and/or modify
-# it under the terms of the GNU General Public License as published by
-# the Free Software Foundation; either version 2 of the License, or
-# (at your option) any later version.
-
-# This program is distributed in the hope that it will be useful,
-# but WITHOUT ANY WARRANTY; without even the implied warranty of
-# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
-# GNU General Public License for more details.
-
-# You should have received a copy of the GNU General Public License
-# along with this program; if not, write to the Free Software
-# Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA
-# 02110-1301, USA.
-
-if test "$VERBOSE" = yes; then
- set -x
- rm --version
-fi
-
-. $srcdir/../lang-default
-PRIV_CHECK_ARG=require-non-root . $srcdir/../priv-check
-
-pwd=`pwd`
-t0=`echo "$0"|sed 's,.*/,,'`.tmp;tmp=$t0/$$
-trap 'status=$?; cd "$pwd" && rm -rf $t0 && exit $status' 0
-trap '(exit $?); exit' 1 2 13 15
-
-framework_failure=0
-mkdir -p $tmp || framework_failure=1
-cd $tmp || framework_failure=1
-
-if test $framework_failure = 1; then
- echo 'failure in testing framework' 1>&2
- (exit 1); exit 1
-fi
-
-fail=0
-
-# Skip this test if there is no /dev/stdin file.
-ls /dev/stdin >/dev/null 2>&1 \
- || { (exit 77); exit; }
-
-touch f
-chmod 0 f
-rm ---presume-input-tty f > out 2>&1 &
-pid=$!
-
-# Wait a second, to give a buggy rm (as in fileutils-4.0.40)
-# enough time to remove the file.
-sleep 1
-
-# The file must still exist.
-test -f f || fail=1
-
-kill $pid > /dev/null 2>&1
-
-# Note the trailing `x' -- so I don't have to have a trailing
-# blank in this file :-)
-cat > exp <<\EOF
-rm: remove write-protected regular empty file `f'? x
-EOF
-#`
-
-# Append an `x' and a newline.
-echo x >> out
-
-cmp out exp || fail=1
-test $fail = 1 && diff out exp 2> /dev/null
-
-(exit $fail); exit $fail
diff --git a/tests/rm/isatty.sh b/tests/rm/isatty.sh
new file mode 100755
index 0000000..404a105
--- /dev/null
+++ b/tests/rm/isatty.sh
@@ -0,0 +1,55 @@
+#!/bin/sh
+# Make sure 'chown 0 f; rm f' prompts before removing f.
+
+# Copyright (C) 2001-2016 Free Software Foundation, Inc.
+
+# This program is free software: you can redistribute it and/or modify
+# it under the terms of the GNU General Public License as published by
+# the Free Software Foundation, either version 3 of the License, or
+# (at your option) any later version.
+
+# This program is distributed in the hope that it will be useful,
+# but WITHOUT ANY WARRANTY; without even the implied warranty of
+# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
+# GNU General Public License for more details.
+
+# You should have received a copy of the GNU General Public License
+# along with this program. If not, see <http://www.gnu.org/licenses/>.
+
+. "${srcdir=.}/tests/init.sh"; path_prepend_ ./src
+print_ver_ rm
+skip_if_root_
+
+
+# Skip this test if there is no /dev/stdin file.
+ls /dev/stdin >/dev/null 2>&1 \
+ || skip_ 'there is no /dev/stdin file'
+
+# Terminate any background processes
+cleanup_() { kill $pid 2>/dev/null && wait $pid; }
+
+touch f
+chmod 0 f
+rm ---presume-input-tty f > out 2>&1 & pid=$!
+
+# Wait a second, to give a buggy rm (as in fileutils-4.0.40)
+# enough time to remove the file.
+sleep 1
+
+# The file must still exist.
+test -f f || fail=1
+
+cleanup_
+
+# Note the trailing 'x' -- so I don't have to have a trailing
+# blank in this file :-)
+cat > exp <<\EOF
+rm: remove write-protected regular empty file 'f'? x
+EOF
+
+# Append an 'x' and a newline.
+echo x >> out
+
+compare exp out || fail=1
+
+Exit $fail
diff --git a/tests/rm/many-dir-entries-vs-OOM.sh b/tests/rm/many-dir-entries-vs-OOM.sh
new file mode 100755
index 0000000..4f30abe
--- /dev/null
+++ b/tests/rm/many-dir-entries-vs-OOM.sh
@@ -0,0 +1,47 @@
+#!/bin/sh
+# In coreutils-8.12, rm,du,chmod, etc. would use too much memory
+# when processing a directory with many entries (as in > 100,000).
+
+# Copyright (C) 2011-2016 Free Software Foundation, Inc.
+
+# This program is free software: you can redistribute it and/or modify
+# it under the terms of the GNU General Public License as published by
+# the Free Software Foundation, either version 3 of the License, or
+# (at your option) any later version.
+
+# This program is distributed in the hope that it will be useful,
+# but WITHOUT ANY WARRANTY; without even the implied warranty of
+# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
+# GNU General Public License for more details.
+
+# You should have received a copy of the GNU General Public License
+# along with this program. If not, see <http://www.gnu.org/licenses/>.
+
+. "${srcdir=.}/tests/init.sh"; path_prepend_ ./src
+print_ver_ rm du chmod
+expensive_
+
+mkdir d2 \
+ && touch d2/f || framework_failure_
+
+# Restrict memory. Each of these coreutils-8.12 programs would fail
+# with a diagnostic like "rm: fts_read failed: Cannot allocate memory".
+vm=$(get_min_ulimit_v_ du -sh d2) \
+ || skip_ "this shell lacks ulimit support"
+
+# With many files in a single directory...
+mkdir d || framework_failure_
+seq --format="d/%06g" 200000 | xargs touch || framework_failure_
+
+# Allow 35MiB more memory as for the trivial case above.
+(ulimit -v $(($vm + 35000)) && du -sh d) || fail=1
+
+vm=$(get_min_ulimit_v_ chmod -R 700 d2) \
+ || skip_ "this shell lacks ulimit support"
+(ulimit -v $(($vm + 35000)) && chmod -R 700 d) || fail=1
+
+vm=$(get_min_ulimit_v_ rm -rf d2) \
+ || skip_ "this shell lacks ulimit support"
+(ulimit -v $(($vm + 35000)) && rm -rf d) || fail=1
+
+Exit $fail
diff --git a/tests/rm/no-give-up b/tests/rm/no-give-up
deleted file mode 100755
index b85132b..0000000
--- a/tests/rm/no-give-up
+++ /dev/null
@@ -1,58 +0,0 @@
-#!/bin/sh
-# With rm from coreutils-5.2.1 and earlier, `rm -r' would mistakenly
-# give up too early under some conditions.
-
-# Copyright (C) 2004, 2006 Free Software Foundation, Inc.
-
-# This program is free software; you can redistribute it and/or modify
-# it under the terms of the GNU General Public License as published by
-# the Free Software Foundation; either version 2 of the License, or
-# (at your option) any later version.
-
-# This program is distributed in the hope that it will be useful,
-# but WITHOUT ANY WARRANTY; without even the implied warranty of
-# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
-# GNU General Public License for more details.
-
-# You should have received a copy of the GNU General Public License
-# along with this program; if not, write to the Free Software
-# Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA
-# 02110-1301, USA.
-
-if test "$VERBOSE" = yes; then
- set -x
- rm --version
-fi
-
-PRIV_CHECK_ARG=require-root . $srcdir/../priv-check
-
-pwd=`pwd`
-t0=`echo "$0"|sed 's,.*/,,'`.tmp; tmp=$t0/$$
-trap 'status=$?; cd "$pwd" && chmod -R u+rwx $t0 && rm -rf $t0 && exit $status' 0
-trap '(exit $?); exit $?' 1 2 13 15
-
-framework_failure=0
-mkdir -p $tmp || framework_failure=1
-cd $tmp || framework_failure=1
-mkdir d
-touch d/f
-chown -R $NON_ROOT_USERNAME d
-chmod u=rwx .
-
-if test $framework_failure = 1; then
- echo "$0: failure in testing framework" 1>&2
- (exit 1); exit 1
-fi
-
-fail=0
-
-# This must fail, since `.' is not writable by $NON_ROOT_USERNAME.
-setuidgid $NON_ROOT_USERNAME env PATH="$PATH" rm -rf d 2>/dev/null && fail=1
-
-# d must remain.
-test -d d || fail=1
-
-# f must have been removed.
-test -f d/f && fail=1
-
-(exit $fail); exit $fail
diff --git a/tests/rm/no-give-up.sh b/tests/rm/no-give-up.sh
new file mode 100755
index 0000000..e77c46e
--- /dev/null
+++ b/tests/rm/no-give-up.sh
@@ -0,0 +1,42 @@
+#!/bin/sh
+# With rm from coreutils-5.2.1 and earlier, 'rm -r' would mistakenly
+# give up too early under some conditions.
+
+# Copyright (C) 2004-2016 Free Software Foundation, Inc.
+
+# This program is free software: you can redistribute it and/or modify
+# it under the terms of the GNU General Public License as published by
+# the Free Software Foundation, either version 3 of the License, or
+# (at your option) any later version.
+
+# This program is distributed in the hope that it will be useful,
+# but WITHOUT ANY WARRANTY; without even the implied warranty of
+# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
+# GNU General Public License for more details.
+
+# You should have received a copy of the GNU General Public License
+# along with this program. If not, see <http://www.gnu.org/licenses/>.
+
+. "${srcdir=.}/tests/init.sh"; path_prepend_ ./src
+print_ver_ rm
+require_root_
+
+mkdir d || framework_failure_
+touch d/f || framework_failure_
+chown -R $NON_ROOT_USERNAME d || framework_failure_
+
+# Ensure that non-root can access files in root-owned ".".
+chmod go=x . || framework_failure_
+
+
+# This must fail, since '.' is not writable by $NON_ROOT_USERNAME.
+returns_ 1 chroot --skip-chdir --user=$NON_ROOT_USERNAME / env PATH="$PATH" \
+ rm -rf d 2>/dev/null || fail=1
+
+# d must remain.
+test -d d || fail=1
+
+# f must have been removed.
+test -f d/f && fail=1
+
+Exit $fail
diff --git a/tests/rm/one-file-system b/tests/rm/one-file-system
deleted file mode 100755
index 66c04d5..0000000
--- a/tests/rm/one-file-system
+++ /dev/null
@@ -1,67 +0,0 @@
-#!/bin/sh
-# Demonstrate rm's new --one-file-system option.
-
-# Copyright (C) 2006 Free Software Foundation, Inc.
-
-# This program is free software; you can redistribute it and/or modify
-# it under the terms of the GNU General Public License as published by
-# the Free Software Foundation; either version 2 of the License, or
-# (at your option) any later version.
-
-# This program is distributed in the hope that it will be useful,
-# but WITHOUT ANY WARRANTY; without even the implied warranty of
-# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
-# GNU General Public License for more details.
-
-# You should have received a copy of the GNU General Public License
-# along with this program; if not, write to the Free Software
-# Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA
-# 02110-1301, USA.
-
-if test "$VERBOSE" = yes; then
- set -x
- rm --version
-fi
-
-PRIV_CHECK_ARG=require-root . $srcdir/../priv-check
-. $srcdir/../lang-default
-. $srcdir/../other-fs-tmpdir
-
-if test -z "$other_partition_tmpdir"; then
- (exit 77); exit 77
-fi
-
-pwd=`pwd`
-t0=`echo "$0"|sed 's,.*/,,'`.tmp; tmp=$t0/$$
-trap 'status=$?; cd $pwd; chmod -R u+rwx $t0; rm -rf $t0 && exit $status' 0
-trap '(exit $?); exit $?' 1 2 13 15
-
-t0="$t0 $other_partition_tmpdir"
-
-framework_failure=0
-mkdir -p $tmp || framework_failure=1
-cd $tmp || framework_failure=1
-
-t=$other_partition_tmpdir
-mkdir -p a/b $t/y
-mount --bind $t a/b || framework_failure=1
-
-cat <<\EOF > exp || framework_failure=1
-rm: skipping `a/b', since it's on a different device
-EOF
-
-if test $framework_failure = 1; then
- echo "$0: setup failed; skipping this test" 1>&2
- (exit 77); exit 77
-fi
-
-fail=0
-
-rm --one-file-system -rf a 2> out && fail=1
-test -d $t/y || fail=1
-umount $t
-
-cmp out exp || fail=1
-test $fail = 1 && diff out exp 2> /dev/null
-
-(exit $fail); exit $fail
diff --git a/tests/rm/one-file-system.sh b/tests/rm/one-file-system.sh
new file mode 100755
index 0000000..bc4a90b
--- /dev/null
+++ b/tests/rm/one-file-system.sh
@@ -0,0 +1,48 @@
+#!/bin/sh
+# Demonstrate rm's new --one-file-system option.
+
+# Copyright (C) 2006-2016 Free Software Foundation, Inc.
+
+# This program is free software: you can redistribute it and/or modify
+# it under the terms of the GNU General Public License as published by
+# the Free Software Foundation, either version 3 of the License, or
+# (at your option) any later version.
+
+# This program is distributed in the hope that it will be useful,
+# but WITHOUT ANY WARRANTY; without even the implied warranty of
+# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
+# GNU General Public License for more details.
+
+# You should have received a copy of the GNU General Public License
+# along with this program. If not, see <http://www.gnu.org/licenses/>.
+
+. "${srcdir=.}/tests/init.sh"; path_prepend_ ./src
+print_ver_ rm
+require_root_
+
+cleanup_()
+{
+ # When you take the undesirable shortcut of making /etc/mtab a link
+ # to /proc/mounts, unmounting "$other_partition_tmpdir" would fail.
+ # So, here we unmount a/b instead.
+ umount a/b
+ rm -rf "$other_partition_tmpdir"
+}
+. "$abs_srcdir/tests/other-fs-tmpdir"
+
+t=$other_partition_tmpdir
+mkdir -p a/b $t/y
+mount --bind $t a/b \
+ || skip_ "This test requires mount with a working --bind option."
+
+cat <<\EOF > exp || framework_failure_
+rm: skipping 'a/b', since it's on a different device
+EOF
+
+
+rm --one-file-system -rf a 2> out && fail=1
+test -d $t/y || fail=1
+
+compare exp out || fail=1
+
+Exit $fail
diff --git a/tests/rm/one-file-system2.sh b/tests/rm/one-file-system2.sh
new file mode 100755
index 0000000..e35249e
--- /dev/null
+++ b/tests/rm/one-file-system2.sh
@@ -0,0 +1,27 @@
+#!/bin/sh
+# Verify --one-file-system does delete within a file system
+
+# Copyright (C) 2009-2016 Free Software Foundation, Inc.
+
+# This program is free software: you can redistribute it and/or modify
+# it under the terms of the GNU General Public License as published by
+# the Free Software Foundation, either version 3 of the License, or
+# (at your option) any later version.
+
+# This program is distributed in the hope that it will be useful,
+# but WITHOUT ANY WARRANTY; without even the implied warranty of
+# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
+# GNU General Public License for more details.
+
+# You should have received a copy of the GNU General Public License
+# along with this program. If not, see <http://www.gnu.org/licenses/>.
+
+. "${srcdir=.}/tests/init.sh"; path_prepend_ ./src
+print_ver_ rm
+
+mkdir -p a/b
+
+rm --one-file-system -rf a || fail=1
+test -d a && fail=1
+
+Exit $fail
diff --git a/tests/rm/r-1 b/tests/rm/r-1
deleted file mode 100755
index 7b6f187..0000000
--- a/tests/rm/r-1
+++ /dev/null
@@ -1,67 +0,0 @@
-#!/bin/sh
-# Test "rm -r --verbose".
-
-# Copyright (C) 1997, 1998, 2000, 2002, 2004, 2006 Free Software
-# Foundation, Inc.
-
-# This program is free software; you can redistribute it and/or modify
-# it under the terms of the GNU General Public License as published by
-# the Free Software Foundation; either version 2 of the License, or
-# (at your option) any later version.
-
-# This program is distributed in the hope that it will be useful,
-# but WITHOUT ANY WARRANTY; without even the implied warranty of
-# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
-# GNU General Public License for more details.
-
-# You should have received a copy of the GNU General Public License
-# along with this program; if not, write to the Free Software
-# Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA
-# 02110-1301, USA.
-
-test=r-1
-
-if test "$VERBOSE" = yes; then
- set -x
- rm --version
-fi
-
-. $srcdir/../lang-default
-
-pwd=`pwd`
-t0=`echo "$0"|sed 's,.*/,,'`.tmp; tmp=$t0/$$
-trap 'status=$?; cd "$pwd" && rm -rf $t0 && exit $status' 0
-trap '(exit $?); exit' 1 2 13 15
-
-framework_failure=0
-mkdir -p $tmp || framework_failure=1
-cd $tmp || framework_failure=1
-
-mkdir a a/a || framework_failure=1
-> b || framework_failure=1
-
-cat <<\EOF > $test.E || framework_failure=1
-removed directory: `a/a'
-removed directory: `a'
-removed `b'
-EOF
-
-if test $framework_failure = 1; then
- echo "$0: failure in testing framework" 1>&2
- (exit 1); exit 1
-fi
-
-fail=0
-rm --verbose -r a b > $test.O || fail=1
-
-for d in $dirs; do
- if test -d $d; then
- fail=1
- fi
-done
-
-# Compare expected and actual output.
-cmp $test.E $test.O || fail=1
-test $fail = 1 && diff $test.E $test.O 2> /dev/null
-
-(exit $fail); exit $fail
diff --git a/tests/rm/r-1.sh b/tests/rm/r-1.sh
new file mode 100755
index 0000000..96115b7
--- /dev/null
+++ b/tests/rm/r-1.sh
@@ -0,0 +1,40 @@
+#!/bin/sh
+# Test "rm -r --verbose".
+
+# Copyright (C) 1997-2016 Free Software Foundation, Inc.
+
+# This program is free software: you can redistribute it and/or modify
+# it under the terms of the GNU General Public License as published by
+# the Free Software Foundation, either version 3 of the License, or
+# (at your option) any later version.
+
+# This program is distributed in the hope that it will be useful,
+# but WITHOUT ANY WARRANTY; without even the implied warranty of
+# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
+# GNU General Public License for more details.
+
+# You should have received a copy of the GNU General Public License
+# along with this program. If not, see <http://www.gnu.org/licenses/>.
+
+. "${srcdir=.}/tests/init.sh"; path_prepend_ ./src
+print_ver_ rm
+
+mkdir a a/a || framework_failure_
+> b || framework_failure_
+
+cat <<\EOF > exp || framework_failure_
+removed directory 'a/a'
+removed directory 'a'
+removed 'b'
+EOF
+
+rm --verbose -r a b > out || fail=1
+
+for d in $dirs; do
+ test -d $d && fail=1
+done
+
+# Compare expected and actual output.
+compare exp out || fail=1
+
+Exit $fail
diff --git a/tests/rm/r-2 b/tests/rm/r-2
deleted file mode 100755
index 68e6187..0000000
--- a/tests/rm/r-2
+++ /dev/null
@@ -1,68 +0,0 @@
-#!/bin/sh
-# Test "rm -r --verbose".
-
-# Copyright (C) 1997, 1998, 2000, 2002, 2004, 2006 Free Software
-# Foundation, Inc.
-
-# This program is free software; you can redistribute it and/or modify
-# it under the terms of the GNU General Public License as published by
-# the Free Software Foundation; either version 2 of the License, or
-# (at your option) any later version.
-
-# This program is distributed in the hope that it will be useful,
-# but WITHOUT ANY WARRANTY; without even the implied warranty of
-# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
-# GNU General Public License for more details.
-
-# You should have received a copy of the GNU General Public License
-# along with this program; if not, write to the Free Software
-# Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA
-# 02110-1301, USA.
-
-if test "$VERBOSE" = yes; then
- rm --version
- set -x
-fi
-
-. $srcdir/../lang-default
-
-pwd=`pwd`
-t0=`echo "$0"|sed 's,.*/,,'`.tmp;tmp=$t0/$$
-trap 'status=$?; cd "$pwd" && rm -rf $t0 || exit $?; exit $status' 0
-trap 'exit $?' 1 2 13 15
-
-framework_failure=0
-mkdir -p $tmp || framework_failure=1
-cd $tmp
-
-mkdir t t/a t/a/b || framework_failure=1
-> t/a/f || framework_failure=1
-> t/a/b/g || framework_failure=1
-
-# FIXME: if this fails, it's a framework failure
-cat <<\EOF | sort > t/E || framework_failure=1
-removed directory: `t/a'
-removed directory: `t/a/b'
-removed `t/a/b/g'
-removed `t/a/f'
-EOF
-
-if test $framework_failure = 1; then
- echo 'failure in testing framework'
- exit 1
-fi
-
-# Note that both the expected output (above) and the actual output lines
-# are sorted, because directory entries may be processed in arbitrary order.
-fail=0
-rm --verbose -r t/a | sort > t/O || fail=1
-
-if test -d t/a; then
- fail=1
-fi
-
-# Compare expected and actual output.
-cmp t/E t/O || fail=1
-test $fail = 1 && diff t/E t/O 2> /dev/null
-
-(exit $fail); exit $fail
diff --git a/tests/rm/r-2.sh b/tests/rm/r-2.sh
new file mode 100755
index 0000000..f68eb23
--- /dev/null
+++ b/tests/rm/r-2.sh
@@ -0,0 +1,45 @@
+#!/bin/sh
+# Test "rm -r --verbose".
+
+# Copyright (C) 1997-2016 Free Software Foundation, Inc.
+
+# This program is free software: you can redistribute it and/or modify
+# it under the terms of the GNU General Public License as published by
+# the Free Software Foundation, either version 3 of the License, or
+# (at your option) any later version.
+
+# This program is distributed in the hope that it will be useful,
+# but WITHOUT ANY WARRANTY; without even the implied warranty of
+# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
+# GNU General Public License for more details.
+
+# You should have received a copy of the GNU General Public License
+# along with this program. If not, see <http://www.gnu.org/licenses/>.
+
+. "${srcdir=.}/tests/init.sh"; path_prepend_ ./src
+print_ver_ rm
+
+mkdir t t/a t/a/b || framework_failure_
+> t/a/f || framework_failure_
+> t/a/b/g || framework_failure_
+
+# FIXME: if this fails, it's a framework failure
+cat <<\EOF | sort > t/E || framework_failure_
+removed directory 't/a'
+removed directory 't/a/b'
+removed 't/a/b/g'
+removed 't/a/f'
+EOF
+
+# Note that both the expected output (above) and the actual output lines
+# are sorted, because directory entries may be processed in arbitrary order.
+rm --verbose -r t/a | sort > t/O || fail=1
+
+if test -d t/a; then
+ fail=1
+fi
+
+# Compare expected and actual output.
+cmp t/E t/O || fail=1
+
+Exit $fail
diff --git a/tests/rm/r-3 b/tests/rm/r-3
deleted file mode 100755
index 0d85f64..0000000
--- a/tests/rm/r-3
+++ /dev/null
@@ -1,65 +0,0 @@
-#!/bin/sh
-# Create and remove a directory with more than 254 files.
-
-# Copyright (C) 1997, 2001, 2002, 2003, 2004, 2006 Free Software Foundation,
-# Inc.
-
-# This program is free software; you can redistribute it and/or modify
-# it under the terms of the GNU General Public License as published by
-# the Free Software Foundation; either version 2 of the License, or
-# (at your option) any later version.
-
-# This program is distributed in the hope that it will be useful,
-# but WITHOUT ANY WARRANTY; without even the implied warranty of
-# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
-# GNU General Public License for more details.
-
-# You should have received a copy of the GNU General Public License
-# along with this program; if not, write to the Free Software
-# Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA
-# 02110-1301, USA.
-
-
-# An early version of my rewritten rm failed to remove all of
-# the files on SunOS4 when there were 254 or more in a directory.
-
-# And the rm from coreutils-5.0 exposes the same problem when there
-# are 338 or more files in a directory on a Darwin-6.5 system
-
-if test "$VERBOSE" = yes; then
- rm --version
- set -x
-fi
-
-pwd=`pwd`
-t0=`echo "$0"|sed 's,.*/,,'`.tmp;tmp=$t0/$$
-trap 'status=$?; cd "$pwd" && rm -rf $t0 && exit $status' 0
-trap '(exit $?); exit' 1 2 13 15
-
-framework_fail=0
-mkdir -p $tmp || framework_fail=1
-cd $tmp || framework_fail=1
-
-# Create 500 files (20 * 25).
-for i in 0 1 2 3 4 5 6 7 8 9 a b c d e f g h i j; do
- files=
- for j in a b c d e f g h i j k l m n o p q r s t u v w x y; do
- files="$files $i$j"
- done
- touch $files || framework_fail=1
-done
-
-test -f 0a || framework_fail=1
-test -f by || framework_fail=1
-cd "$pwd" || framework_fail=1
-
-if test $framework_fail = 1; then
- echo 'failure in testing framework'
- (exit 1); exit 1
-fi
-
-fail=0
-rm -rf $tmp || fail=1
-test -d $tmp && fail=1
-
-(exit $fail); exit $fail
diff --git a/tests/rm/r-3.sh b/tests/rm/r-3.sh
new file mode 100755
index 0000000..26d0aab
--- /dev/null
+++ b/tests/rm/r-3.sh
@@ -0,0 +1,48 @@
+#!/bin/sh
+# Create and remove a directory with more than 254 files.
+
+# Copyright (C) 1997-2016 Free Software Foundation, Inc.
+
+# This program is free software: you can redistribute it and/or modify
+# it under the terms of the GNU General Public License as published by
+# the Free Software Foundation, either version 3 of the License, or
+# (at your option) any later version.
+
+# This program is distributed in the hope that it will be useful,
+# but WITHOUT ANY WARRANTY; without even the implied warranty of
+# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
+# GNU General Public License for more details.
+
+# You should have received a copy of the GNU General Public License
+# along with this program. If not, see <http://www.gnu.org/licenses/>.
+
+
+# An early version of my rewritten rm failed to remove all of
+# the files on SunOS4 when there were 254 or more in a directory.
+
+# And the rm from coreutils-5.0 exposes the same problem when there
+# are 338 or more files in a directory on a Darwin-6.5 system
+
+. "${srcdir=.}/tests/init.sh"; path_prepend_ ./src
+print_ver_ rm
+
+mkdir t || framework_failure_
+cd t || framework_failure_
+
+# Create 500 files (20 * 25).
+for i in 0 1 2 3 4 5 6 7 8 9 a b c d e f g h i j; do
+ files=
+ for j in a b c d e f g h i j k l m n o p q r s t u v w x y; do
+ files="$files $i$j"
+ done
+ touch $files || framework_failure_
+done
+
+test -f 0a || framework_failure_
+test -f by || framework_failure_
+cd .. || framework_failure_
+
+rm -rf t || fail=1
+test -d t && fail=1
+
+Exit $fail
diff --git a/tests/rm/r-4 b/tests/rm/r-4
deleted file mode 100755
index 3551335..0000000
--- a/tests/rm/r-4
+++ /dev/null
@@ -1,56 +0,0 @@
-#!/bin/sh
-# Try to remove '.' and '..' recursively.
-
-# Copyright (C) 2006 Free Software Foundation, Inc.
-
-# This program is free software; you can redistribute it and/or modify
-# it under the terms of the GNU General Public License as published by
-# the Free Software Foundation; either version 2 of the License, or
-# (at your option) any later version.
-
-# This program is distributed in the hope that it will be useful,
-# but WITHOUT ANY WARRANTY; without even the implied warranty of
-# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
-# GNU General Public License for more details.
-
-# You should have received a copy of the GNU General Public License
-# along with this program; if not, write to the Free Software
-# Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA
-# 02110-1301, USA.
-
-
-if test "$VERBOSE" = yes; then
- rm --version
- set -x
-fi
-
-pwd=`pwd`
-t0=`echo "$0"|sed 's,.*/,,'`.tmp; tmp=$t0/$$
-trap 'status=$?; cd "$pwd" && rm -rf $t0 && exit $status' 0
-trap '(exit $?); exit' 1 2 13 15
-
-framework_failure=0
-mkdir -p $tmp || framework_failure=1
-cd $tmp || framework_failure=1
-
-touch a || framework_failure=1
-cd "$pwd" || framework_failure=1
-
-if test $framework_failure = 1; then
- echo 'failure in testing framework'
- (exit 1); exit 1
-fi
-
-fail=0
-rm -fr $tmp/. 2>/dev/null && fail=1
-rm -fr $tmp/./ 2>/dev/null && fail=1
-rm -fr $tmp/.//// 2>/dev/null && fail=1
-rm -fr $tmp/.. 2>/dev/null && fail=1
-rm -fr $tmp/../ 2>/dev/null && fail=1
-
-# This test is too dangerous -- if there's a bug you're wiped out!
-# rm -fr / 2>/dev/null && fail=1
-
-test -f $tmp/a || fail=1
-
-(exit $fail); exit $fail
diff --git a/tests/rm/r-4.sh b/tests/rm/r-4.sh
new file mode 100755
index 0000000..1b08322
--- /dev/null
+++ b/tests/rm/r-4.sh
@@ -0,0 +1,51 @@
+#!/bin/sh
+# Try to remove '.' and '..' recursively.
+
+# Copyright (C) 2006-2016 Free Software Foundation, Inc.
+
+# This program is free software: you can redistribute it and/or modify
+# it under the terms of the GNU General Public License as published by
+# the Free Software Foundation, either version 3 of the License, or
+# (at your option) any later version.
+
+# This program is distributed in the hope that it will be useful,
+# but WITHOUT ANY WARRANTY; without even the implied warranty of
+# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
+# GNU General Public License for more details.
+
+# You should have received a copy of the GNU General Public License
+# along with this program. If not, see <http://www.gnu.org/licenses/>.
+
+. "${srcdir=.}/tests/init.sh"; path_prepend_ ./src
+print_ver_ rm
+
+mkdir d || framework_failure_
+touch d/a || framework_failure_
+
+# Expected error diagnostic as grep pattern.
+exp="^rm: refusing to remove '\.' or '\.\.' directory: skipping '.*'\$"
+
+rmtest()
+{
+ # Try removing - expecting failure.
+ rm -fr "$1" 2> err && fail=1
+
+ # Ensure the expected error diagnostic is output.
+ grep "$exp" err || { cat err; fail=1; }
+
+ return $fail
+}
+
+rmtest 'd/.' || fail=1
+rmtest 'd/./' || fail=1
+rmtest 'd/.////' || fail=1
+rmtest 'd/..' || fail=1
+rmtest 'd/../' || fail=1
+
+
+# This test is handled more carefully in r-root.sh
+# returns_ 1 rm -fr / 2>/dev/null || fail=1
+
+test -f d/a || fail=1
+
+Exit $fail
diff --git a/tests/rm/r-root.sh b/tests/rm/r-root.sh
new file mode 100755
index 0000000..b98db14
--- /dev/null
+++ b/tests/rm/r-root.sh
@@ -0,0 +1,299 @@
+#!/bin/sh
+# Try to remove '/' recursively.
+
+# Copyright (C) 2013-2016 Free Software Foundation, Inc.
+
+# This program is free software: you can redistribute it and/or modify
+# it under the terms of the GNU General Public License as published by
+# the Free Software Foundation, either version 3 of the License, or
+# (at your option) any later version.
+
+# This program is distributed in the hope that it will be useful,
+# but WITHOUT ANY WARRANTY; without even the implied warranty of
+# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
+# GNU General Public License for more details.
+
+# You should have received a copy of the GNU General Public License
+# along with this program. If not, see <http://www.gnu.org/licenses/>.
+
+. "${srcdir=.}/tests/init.sh"; path_prepend_ ./src
+print_ver_ rm
+
+# POSIX mandates rm(1) to skip '/' arguments. This test verifies this mandated
+# behavior as well as the --preserve-root and --no-preserve-root options.
+# Especially the latter case is a live fire exercise as rm(1) is supposed to
+# enter the unlinkat() system call. Therefore, limit the risk as much
+# as possible -- if there's a bug this test would wipe the system out!
+
+# Faint-hearted: skip this test for the 'root' user.
+skip_if_root_
+
+# Pull the teeth from rm(1) by intercepting the unlinkat() system call via the
+# LD_PRELOAD environment variable. This requires shared libraries to work.
+require_gcc_shared_
+
+# Ensure this variable is unset as it's
+# used later in the unlinkat() wrapper.
+unset CU_TEST_SKIP_EXIT
+
+# Use gdb to provide further protection by limiting calls to unlinkat().
+( timeout 10s gdb --version ) > gdb.out 2>&1
+case $(cat gdb.out) in
+ *'GNU gdb'*) ;;
+ *) skip_ "can't run gdb";;
+esac
+
+# Break on a line rather than a symbol, to cater for inline functions
+break_src="$abs_top_srcdir/src/remove.c"
+break_line=$(grep -n ^excise "$break_src") || framework_failure_
+break_line=$(echo "$break_line" | cut -d: -f1) || framework_failure_
+break_line="$break_src:$break_line"
+
+
+cat > k.c <<'EOF' || framework_failure_
+#include <stdio.h>
+#include <stdlib.h>
+#include <unistd.h>
+
+int unlinkat (int dirfd, const char *pathname, int flags)
+{
+ /* Prove that LD_PRELOAD works: create the evidence file "x". */
+ fclose (fopen ("x", "w"));
+
+ /* Immediately terminate, unless indicated otherwise. */
+ if (! getenv("CU_TEST_SKIP_EXIT"))
+ _exit (0);
+
+ /* Pretend success. */
+ return 0;
+}
+EOF
+
+# Then compile/link it:
+gcc_shared_ k.c k.so \
+ || framework_failure_ 'failed to build shared library'
+
+# Note breakpoint commands don't work in batch mode
+# https://sourceware.org/bugzilla/show_bug.cgi?id=10079
+# So we use python to script behavior upon hitting the breakpoint
+cat > bp.py <<'EOF.py' || framework_failure_
+def breakpoint_handler (event):
+ if not isinstance(event, gdb.BreakpointEvent):
+ return
+ hit_count = event.breakpoints[0].hit_count
+ if hit_count == 1:
+ gdb.execute('shell touch excise.break')
+ gdb.execute('continue')
+ elif hit_count > 2:
+ gdb.write('breakpoint hit twice already')
+ gdb.execute('quit 1')
+ else:
+ gdb.execute('continue')
+
+gdb.events.stop.connect(breakpoint_handler)
+EOF.py
+
+# In order of the sed expressions below, this cleans:
+#
+# 1. gdb uses the full path when running rm, so remove the leading dirs.
+# 2. For some of the "/" synonyms, the error diagnostic slightly differs from
+# that of the basic "/" case (see gnulib's fts_open' and ROOT_DEV_INO_WARN):
+# rm: it is dangerous to operate recursively on 'FILE' (same as '/')
+# Strip that part off for the following comparison.
+clean_rm_err_()
+{
+ sed "s/.*rm: /rm: /; \
+ s/\(rm: it is dangerous to operate recursively on\).*$/\1 '\/'/"
+}
+
+#-------------------------------------------------------------------------------
+# exercise_rm_r_root: shell function to test "rm -r '/'"
+# The caller must provide the FILE to remove as well as any options
+# which should be passed to 'rm'.
+# Paranoia mode on:
+# For the worst case where both rm(1) would fail to refuse to process the "/"
+# argument (in the cases without the --no-preserve-root option), and
+# intercepting the unlinkat(1) system call would fail (which actually already
+# has been proven to work above), and the current non root user has
+# write access to "/", limit the damage to the current file system via
+# the --one-file-system option.
+# Furthermore, run rm(1) via gdb that limits the number of unlinkat() calls.
+exercise_rm_r_root ()
+{
+ # Remove the evidence files; verify that.
+ rm -f x excise.break || framework_failure_
+ test -f x && framework_failure_
+ test -f excise.break && framework_failure_
+
+ local skip_exit=
+ if [ "$CU_TEST_SKIP_EXIT" = 1 ]; then
+ # Pass on this variable into 'rm's environment.
+ skip_exit='CU_TEST_SKIP_EXIT=1'
+ fi
+
+ gdb -nx --batch-silent -return-child-result \
+ --eval-command="set exec-wrapper \
+ env 'LD_PRELOAD=$LD_PRELOAD:./k.so' $skip_exit" \
+ --eval-command="break '$break_line'" \
+ --eval-command='source bp.py' \
+ --eval-command="run -rv --one-file-system $*" \
+ --eval-command='quit' \
+ rm < /dev/null > out 2> err.t
+
+ ret=$?
+
+ clean_rm_err_ < err.t > err || ret=$?
+
+ return $ret
+}
+
+# Verify that "rm -r dir" basically works.
+mkdir dir || framework_failure_
+rm -r dir || framework_failure_
+test -d dir && framework_failure_
+
+# Now verify that intercepting unlinkat() works:
+# rm(1) must succeed as before, but this time both the evidence file "x"
+# and the test file / directory must still exist afterward.
+mkdir dir || framework_failure_
+> file || framework_failure_
+
+skip=
+for file in dir file ; do
+ exercise_rm_r_root "$file" || skip=1
+ test -e "$file" || skip=1
+ test -f x || skip=1
+ test -f excise.break || skip=1 # gdb works and breakpoint hit
+ compare /dev/null err || skip=1
+
+ test "$skip" = 1 \
+ && { cat out; cat err; \
+ skip_ "internal test failure: maybe LD_PRELOAD or gdb doesn't work?"; }
+done
+
+# "rm -r /" without --no-preserve-root should output the following
+# diagnostic error message.
+cat <<EOD > exp || framework_failure_
+rm: it is dangerous to operate recursively on '/'
+rm: use --no-preserve-root to override this failsafe
+EOD
+
+#-------------------------------------------------------------------------------
+# Exercise "rm -r /" without and with the --preserve-root option.
+# Exercise various synonyms of "/" including symlinks to it.
+# Expect a non-Zero exit status.
+# Prepare a few symlinks to "/".
+ln -s / rootlink || framework_failure_
+ln -s rootlink rootlink2 || framework_failure_
+ln -sr / rootlink3 || framework_failure_
+
+for opts in \
+ '/' \
+ '--preserve-root /' \
+ '//' \
+ '///' \
+ '////' \
+ 'rootlink/' \
+ 'rootlink2/' \
+ 'rootlink3/' ; do
+
+ returns_ 1 exercise_rm_r_root $opts || fail=1
+
+ # Expect nothing in 'out' and the above error diagnostic in 'err'.
+ # As rm(1) should have skipped the "/" argument, it does not call unlinkat().
+ # Therefore, the evidence file "x" should not exist.
+ compare /dev/null out || fail=1
+ compare exp err || fail=1
+ test -f x && fail=1
+
+ # Do nothing more if this test failed.
+ test $fail = 1 && { cat out; cat err; Exit $fail; }
+done
+
+#-------------------------------------------------------------------------------
+# Exercise "rm -r file1 / file2".
+# Expect a non-Zero exit status representing failure to remove "/",
+# yet 'file1' and 'file2' should be removed.
+> file1 || framework_failure_
+> file2 || framework_failure_
+
+# Now that we know that 'rm' won't call the unlinkat() system function for "/",
+# we could probably execute it without the LD_PRELOAD'ed safety net.
+# Nevertheless, it's still better to use it for this test.
+# Tell the unlinkat() replacement function to not _exit(0) immediately
+# by setting the following variable.
+CU_TEST_SKIP_EXIT=1
+
+returns_ 1 exercise_rm_r_root --preserve-root file1 '/' file2 || fail=1
+
+unset CU_TEST_SKIP_EXIT
+
+cat <<EOD > out_removed
+removed 'file1'
+removed 'file2'
+EOD
+
+# The above error diagnostic should appear in 'err'.
+# Both 'file1' and 'file2' should be removed. Simply verify that in the
+# "out" file, as the replacement unlinkat() dummy did not remove them.
+# Expect the evidence file "x" to exist.
+compare out_removed out || fail=1
+compare exp err || fail=1
+test -f x || fail=1
+
+# Do nothing more if this test failed.
+test $fail = 1 && { cat out; cat err; Exit $fail; }
+
+#-------------------------------------------------------------------------------
+# Exercise various synonyms of "/" having a trailing "." or ".." in the name.
+# This triggers another check in the code first and therefore leads to a
+# different diagnostic. However, we want to test anyway to protect against
+# future reordering of the checks in the code.
+# Expect that other error diagnostic in 'err' and nothing in 'out'.
+# Expect a non-Zero exit status. The evidence file "x" should not exist.
+for file in \
+ '//.' \
+ '/./' \
+ '/.//' \
+ '/../' \
+ '/.././' \
+ '/etc/..' \
+ 'rootlink/..' \
+ 'rootlink2/.' \
+ 'rootlink3/./' ; do
+
+ test -d "$file" || continue # if e.g. /etc does not exist.
+
+ returns_ 1 exercise_rm_r_root --preserve-root "$file" || fail=1
+
+ grep "rm: refusing to remove '\.' or '\.\.' directory: skipping" err \
+ || fail=1
+
+ compare /dev/null out || fail=1
+ test -f x && fail=1
+
+ # Do nothing more if this test failed.
+ test $fail = 1 && { cat out; cat err; Exit $fail; }
+done
+
+#-------------------------------------------------------------------------------
+# Until now, it was all just fun.
+# Now exercise the --no-preserve-root option with which rm(1) should enter
+# the intercepted unlinkat() system call.
+# As the interception code terminates the process immediately via _exit(0),
+# the exit status should be 0.
+# Use the option --interactive=never to bypass the following prompt:
+# "rm: descend into write-protected directory '/'?"
+exercise_rm_r_root --interactive=never --no-preserve-root '/' \
+ || fail=1
+
+# The 'err' file should not contain the above error diagnostic.
+grep "rm: it is dangerous to operate recursively on '/'" err && fail=1
+
+# Instead, rm(1) should have called the intercepted unlinkat() function,
+# i.e., the evidence file "x" should exist.
+test -f x || fail=1
+
+test $fail = 1 && { cat out; cat err; }
+
+Exit $fail
diff --git a/tests/rm/read-only.sh b/tests/rm/read-only.sh
new file mode 100755
index 0000000..6898555
--- /dev/null
+++ b/tests/rm/read-only.sh
@@ -0,0 +1,52 @@
+#!/bin/sh
+# Ensure that rm -f nonexistent-file-on-read-only-fs succeeds.
+
+# Copyright (C) 2009-2016 Free Software Foundation, Inc.
+
+# This program is free software: you can redistribute it and/or modify
+# it under the terms of the GNU General Public License as published by
+# the Free Software Foundation, either version 3 of the License, or
+# (at your option) any later version.
+
+# This program is distributed in the hope that it will be useful,
+# but WITHOUT ANY WARRANTY; without even the implied warranty of
+# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
+# GNU General Public License for more details.
+
+# You should have received a copy of the GNU General Public License
+# along with this program. If not, see <http://www.gnu.org/licenses/>.
+
+. "${srcdir=.}/tests/init.sh"; path_prepend_ ./src
+print_ver_ rm
+require_root_
+
+cwd=$(pwd)
+cleanup_() { cd /; umount "$cwd/mnt"; }
+
+skip=0
+# Create a file system, then mount it.
+dd if=/dev/zero of=blob bs=8192 count=200 > /dev/null 2>&1 \
+ || skip=1
+mkdir mnt || skip=1
+mkfs -t ext2 -F blob \
+ || skip_ "failed to create ext2 file system"
+
+mount -oloop blob mnt || skip=1
+echo test > mnt/f || skip=1
+test -s mnt/f || skip=1
+mount -o remount,loop,ro mnt || skip=1
+
+test $skip = 1 \
+ && skip_ "insufficient mount/ext2 support"
+
+# Applying rm -f to a nonexistent file on a read-only file system must succeed.
+rm -f mnt/no-such > out 2>&1 || fail=1
+# It must produce no diagnostic.
+compare /dev/null out || fail=1
+
+# However, trying to remove an existing file must fail.
+rm -f mnt/f > out 2>&1 && fail=1
+# with a diagnostic.
+compare /dev/null out && fail=1
+
+Exit $fail
diff --git a/tests/rm/readdir-bug b/tests/rm/readdir-bug
deleted file mode 100755
index a82aa95..0000000
--- a/tests/rm/readdir-bug
+++ /dev/null
@@ -1,60 +0,0 @@
-#!/bin/sh
-# Exercise the Darwin/MacOS bug worked around on 2006-09-29,
-# whereby rm would fail to remove all entries in a directory.
-
-# Copyright (C) 2006 Free Software Foundation, Inc.
-
-# This program is free software; you can redistribute it and/or modify
-# it under the terms of the GNU General Public License as published by
-# the Free Software Foundation; either version 2 of the License, or
-# (at your option) any later version.
-
-# This program is distributed in the hope that it will be useful,
-# but WITHOUT ANY WARRANTY; without even the implied warranty of
-# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
-# GNU General Public License for more details.
-
-# You should have received a copy of the GNU General Public License
-# along with this program; if not, write to the Free Software
-# Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA
-# 02110-1301, USA.
-
-if test "$VERBOSE" = yes; then
- set -x
- rm --version
-fi
-
-pwd=`pwd`
-t0=`echo "$0"|sed 's,.*/,,'`.tmp; tmp=$t0/$$
-trap 'status=$?; cd "$pwd" && chmod -R u+rwx $t0 && rm -rf $t0 && exit $status' 0
-trap '(exit $?); exit $?' 1 2 13 15
-
-framework_failure=0
-mkdir -p $tmp || framework_failure=1
-cd $tmp || framework_failure=1
-
-# Create a directory containing many files.
-# What counts is a combination of the number of files and
-# the lengths of their names. For details, see
-# http://lists.gnu.org/archive/html/bug-coreutils/2006-09/msg00326.html
-mkdir b || framework_failure=1
-cd b || framework_failure=1
-for i in `seq 1 250`; do
- touch `printf %040d $i` || framework_failure=1
-done
-cd .. || framework_failure=1
-
-if test $framework_failure = 1; then
- echo "$0: failure in testing framework" 1>&2
- (exit 1); exit 1
-fi
-
-fail=0
-
-# On a buggy system, this would fail with the diagnostic,
-# "cannot remove directory `b': Directory not empty"
-rm -rf b || fail=1
-
-test -d b && fail=1
-
-(exit $fail); exit $fail
diff --git a/tests/rm/readdir-bug.sh b/tests/rm/readdir-bug.sh
new file mode 100755
index 0000000..d33fbea
--- /dev/null
+++ b/tests/rm/readdir-bug.sh
@@ -0,0 +1,41 @@
+#!/bin/sh
+# Exercise the Darwin/MacOS bug worked around on 2006-09-29,
+# whereby rm would fail to remove all entries in a directory.
+
+# Copyright (C) 2006-2016 Free Software Foundation, Inc.
+
+# This program is free software: you can redistribute it and/or modify
+# it under the terms of the GNU General Public License as published by
+# the Free Software Foundation, either version 3 of the License, or
+# (at your option) any later version.
+
+# This program is distributed in the hope that it will be useful,
+# but WITHOUT ANY WARRANTY; without even the implied warranty of
+# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
+# GNU General Public License for more details.
+
+# You should have received a copy of the GNU General Public License
+# along with this program. If not, see <http://www.gnu.org/licenses/>.
+
+. "${srcdir=.}/tests/init.sh"; path_prepend_ ./src
+print_ver_ rm
+
+# Create a directory containing many files.
+# What counts is a combination of the number of files and
+# the lengths of their names. For details, see
+# http://lists.gnu.org/archive/html/bug-coreutils/2006-09/msg00326.html
+mkdir b || framework_failure_
+cd b || framework_failure_
+for i in $(seq 1 250); do
+ touch $(printf %040d $i) || framework_failure_
+done
+cd .. || framework_failure_
+
+
+# On a buggy system, this would fail with the diagnostic,
+# "cannot remove directory 'b': Directory not empty"
+rm -rf b || fail=1
+
+test -d b && fail=1
+
+Exit $fail
diff --git a/tests/rm/rm1 b/tests/rm/rm1
deleted file mode 100755
index 8987cd2..0000000
--- a/tests/rm/rm1
+++ /dev/null
@@ -1,69 +0,0 @@
-#!/bin/sh
-# exercise another small part of remove.c
-
-# Copyright (C) 2002, 2004, 2006 Free Software Foundation, Inc.
-
-# This program is free software; you can redistribute it and/or modify
-# it under the terms of the GNU General Public License as published by
-# the Free Software Foundation; either version 2 of the License, or
-# (at your option) any later version.
-
-# This program is distributed in the hope that it will be useful,
-# but WITHOUT ANY WARRANTY; without even the implied warranty of
-# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
-# GNU General Public License for more details.
-
-# You should have received a copy of the GNU General Public License
-# along with this program; if not, write to the Free Software
-# Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA
-# 02110-1301, USA.
-
-if test "$VERBOSE" = yes; then
- set -x
- rm --version
-fi
-
-. $srcdir/../envvar-check
-. $srcdir/../lang-default
-PRIV_CHECK_ARG=require-non-root . $srcdir/../priv-check
-
-pwd=`pwd`
-t0=`echo "$0"|sed 's,.*/,,'`.tmp; tmp=$t0/$$
-trap 'status=$?; cd "$pwd" && chmod -R u+rwx $t0 && rm -rf $t0 && exit $status' 0
-trap '(exit $?); exit' 1 2 13 15
-
-framework_failure=0
-mkdir -p $tmp || framework_failure=1
-cd $tmp || framework_failure=1
-mkdir -p b/a/p b/c b/d || framework_failure=1
-chmod u-w b/a || framework_failure=1
-
-if test $framework_failure = 1; then
- echo "$0: failure in testing framework" 1>&2
- (exit 1); exit 1
-fi
-
-fail=0
-
-# This should fail.
-rm -rf b > out 2>&1 && fail=1
-cat <<\EOF > exp
-rm: cannot remove directory `b/a/p': Permission denied
-EOF
-
-# On some systems, rm doesn't have enough information to
-# say it's a directory.
-cat <<\EOF > exp2
-rm: cannot remove `b/a/p': Permission denied
-EOF
-
-cmp out exp > /dev/null 2>&1 || {
- cmp out exp2 || fail=1
- }
-test $fail = 1 && diff out exp 2> /dev/null
-
-test -d b/a/p || fail=1
-test -d b/c && fail=1
-test -d b/d && fail=1
-
-(exit $fail); exit $fail
diff --git a/tests/rm/rm1.sh b/tests/rm/rm1.sh
new file mode 100755
index 0000000..7893958
--- /dev/null
+++ b/tests/rm/rm1.sh
@@ -0,0 +1,48 @@
+#!/bin/sh
+# exercise another small part of remove.c
+
+# Copyright (C) 2002-2016 Free Software Foundation, Inc.
+
+# This program is free software: you can redistribute it and/or modify
+# it under the terms of the GNU General Public License as published by
+# the Free Software Foundation, either version 3 of the License, or
+# (at your option) any later version.
+
+# This program is distributed in the hope that it will be useful,
+# but WITHOUT ANY WARRANTY; without even the implied warranty of
+# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
+# GNU General Public License for more details.
+
+# You should have received a copy of the GNU General Public License
+# along with this program. If not, see <http://www.gnu.org/licenses/>.
+
+. "${srcdir=.}/tests/init.sh"; path_prepend_ ./src
+print_ver_ rm
+skip_if_root_
+
+mkdir -p b/a/p b/c b/d || framework_failure_
+chmod ug-w b/a || framework_failure_
+
+
+# This should fail.
+rm -rf b > out 2>&1 && fail=1
+cat <<\EOF > exp
+rm: cannot remove directory 'b/a/p': Permission denied
+EOF
+
+# On some systems, rm doesn't have enough information to
+# say it's a directory.
+cat <<\EOF > exp2
+rm: cannot remove 'b/a/p': Permission denied
+EOF
+
+cmp out exp > /dev/null 2>&1 || {
+ cmp out exp2 || fail=1
+ }
+test $fail = 1 && compare exp out
+
+test -d b/a/p || fail=1
+test -d b/c && fail=1
+test -d b/d && fail=1
+
+Exit $fail
diff --git a/tests/rm/rm2 b/tests/rm/rm2
deleted file mode 100755
index c64a9f3..0000000
--- a/tests/rm/rm2
+++ /dev/null
@@ -1,76 +0,0 @@
-#!/bin/sh
-# exercise another small part of remove.c
-
-# Copyright (C) 2002, 2003, 2004, 2005, 2006 Free Software Foundation,
-# Inc.
-
-# This program is free software; you can redistribute it and/or modify
-# it under the terms of the GNU General Public License as published by
-# the Free Software Foundation; either version 2 of the License, or
-# (at your option) any later version.
-
-# This program is distributed in the hope that it will be useful,
-# but WITHOUT ANY WARRANTY; without even the implied warranty of
-# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
-# GNU General Public License for more details.
-
-# You should have received a copy of the GNU General Public License
-# along with this program; if not, write to the Free Software
-# Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA
-# 02110-1301, USA.
-
-if test "$VERBOSE" = yes; then
- set -x
- rm --version
-fi
-
-. $srcdir/../envvar-check
-. $srcdir/../lang-default
-PRIV_CHECK_ARG=require-non-root . $srcdir/../priv-check
-
-pwd=`pwd`
-t0=`echo "$0"|sed 's,.*/,,'`.tmp; tmp=$t0/$$
-trap 'status=$?; cd "$pwd" && chmod -R u+rwx $t0 && rm -rf $t0 && exit $status' 0
-trap '(exit $?); exit' 1 2 13 15
-
-framework_failure=0
-mkdir -p $tmp || framework_failure=1
-cd $tmp || framework_failure=1
-mkdir -p a/0 || framework_failure=1
-mkdir -p a/1/2 b/3 || framework_failure=1
-mkdir a/2 a/3 || framework_failure=1
-chmod u-x a/1 b || framework_failure=1
-
-if test $framework_failure = 1; then
- echo "$0: failure in testing framework" 1>&2
- (exit 1); exit 1
-fi
-
-fail=0
-
-# Exercise two separate code paths -- though both result
-# in the same sort of diagnostic.
-# Both of these should fail.
-rm -rf a b > out 2>&1 && fail=1
-cat <<\EOF > exp
-rm: cannot remove `a/1': Permission denied
-rm: cannot remove `b': Permission denied
-EOF
-
-cat <<\EOF > exp-solaris
-rm: cannot remove `a/1/2': Permission denied
-rm: cannot remove `b/3': Permission denied
-EOF
-
-cmp out exp > /dev/null 2>&1 || { cmp out exp-solaris > /dev/null 2>&1 || fail=1; }
-test $fail = 1 && diff out exp 2> /dev/null
-
-test -d a/0 && fail=1
-test -d a/1 || fail=1
-test -d a/2 && fail=1
-test -d a/3 && fail=1
-
-chmod u+x b
-test -d b/3 || fail=1
-
-(exit $fail); exit $fail
diff --git a/tests/rm/rm2.sh b/tests/rm/rm2.sh
new file mode 100755
index 0000000..5a4413c
--- /dev/null
+++ b/tests/rm/rm2.sh
@@ -0,0 +1,55 @@
+#!/bin/sh
+# exercise another small part of remove.c
+
+# Copyright (C) 2002-2016 Free Software Foundation, Inc.
+
+# This program is free software: you can redistribute it and/or modify
+# it under the terms of the GNU General Public License as published by
+# the Free Software Foundation, either version 3 of the License, or
+# (at your option) any later version.
+
+# This program is distributed in the hope that it will be useful,
+# but WITHOUT ANY WARRANTY; without even the implied warranty of
+# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
+# GNU General Public License for more details.
+
+# You should have received a copy of the GNU General Public License
+# along with this program. If not, see <http://www.gnu.org/licenses/>.
+
+. "${srcdir=.}/tests/init.sh"; path_prepend_ ./src
+print_ver_ rm
+skip_if_root_
+
+mkdir -p a/0 || framework_failure_
+mkdir -p a/1/2 b/3 || framework_failure_
+mkdir a/2 a/3 || framework_failure_
+chmod u-x a/1 b || framework_failure_
+
+
+# Exercise two separate code paths -- though both result
+# in the same sort of diagnostic.
+# Both of these should fail.
+rm -rf a b > out 2>&1 && fail=1
+cat <<\EOF > exp
+rm: cannot remove 'a/1': Permission denied
+rm: cannot remove 'b': Permission denied
+EOF
+
+cat <<\EOF > exp-solaris
+rm: cannot remove 'a/1/2': Permission denied
+rm: cannot remove 'b/3': Permission denied
+EOF
+
+cmp out exp > /dev/null 2>&1 \
+ || { cmp out exp-solaris > /dev/null 2>&1 || fail=1; }
+test $fail = 1 && compare exp out
+
+test -d a/0 && fail=1
+test -d a/1 || fail=1
+test -d a/2 && fail=1
+test -d a/3 && fail=1
+
+chmod u+x b
+test -d b/3 || fail=1
+
+Exit $fail
diff --git a/tests/rm/rm3 b/tests/rm/rm3
deleted file mode 100755
index b3caf49..0000000
--- a/tests/rm/rm3
+++ /dev/null
@@ -1,95 +0,0 @@
-#!/bin/sh
-# exercise another small part of remove.c
-
-# Copyright (C) 2002, 2003, 2004, 2006 Free Software Foundation, Inc.
-
-# This program is free software; you can redistribute it and/or modify
-# it under the terms of the GNU General Public License as published by
-# the Free Software Foundation; either version 2 of the License, or
-# (at your option) any later version.
-
-# This program is distributed in the hope that it will be useful,
-# but WITHOUT ANY WARRANTY; without even the implied warranty of
-# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
-# GNU General Public License for more details.
-
-# You should have received a copy of the GNU General Public License
-# along with this program; if not, write to the Free Software
-# Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA
-# 02110-1301, USA.
-
-if test "$VERBOSE" = yes; then
- set -x
- rm --version
-fi
-
-. $srcdir/../envvar-check
-. $srcdir/../lang-default
-PRIV_CHECK_ARG=require-non-root . $srcdir/../priv-check
-
-pwd=`pwd`
-t0=`echo "$0"|sed 's,.*/,,'`.tmp; tmp=$t0/$$
-trap 'status=$?; cd "$pwd" && chmod -R u+rwx $t0 && rm -rf $t0 && exit $status' 0
-trap '(exit $?); exit' 1 2 13 15
-
-framework_failure=0
-mkdir -p $tmp || framework_failure=1
-cd $tmp || framework_failure=1
-mkdir -p z || framework_failure=1
-cd z || framework_failure=1
-touch empty empty-u || framework_failure=1
-echo not-empty > fu
-ln -s empty-f slink
-ln -s . slinkdot
-mkdir d du || framework_failure=1
-chmod u-w fu du empty-u || framework_failure=1
-cd ..
-
-if test $framework_failure = 1; then
- echo "$0: failure in testing framework" 1>&2
- (exit 1); exit 1
-fi
-
-fail=0
-
-cat <<EOF > in
-y
-y
-y
-y
-y
-y
-y
-y
-y
-EOF
-
-# Both of these should fail.
-rm -ir z < in > out 2>&1 || fail=1
-
-# Given input like `rm: ...? rm: ...? ' (no trailing newline),
-# the `head...' part of the pipeline below removes the trailing space, so
-# that sed doesn't have to deal with a line lacking a terminating newline.
-# This avoids a bug whereby some vendor-provided (Tru64) versions of sed
-# would mistakenly tack a newline onto the end of the output.
-tr '?' '\n' < out | head --bytes=-1 | sed 's/^ //' |sort > o2
-mv o2 out
-
-sort <<EOF > exp || fail=1
-rm: descend into directory \`z'
-rm: remove regular empty file \`z/empty'
-rm: remove write-protected regular file \`z/fu'
-rm: remove write-protected regular empty file \`z/empty-u'
-rm: remove symbolic link \`z/slink'
-rm: remove symbolic link \`z/slinkdot'
-rm: remove directory \`z/d'
-rm: remove write-protected directory \`z/du'
-rm: remove directory \`z'
-EOF
-
-cmp out exp || fail=1
-test $fail = 1 && diff -u out exp 2> /dev/null
-
-test -d z && fail=1
-
-(exit $fail); exit $fail
diff --git a/tests/rm/rm3.sh b/tests/rm/rm3.sh
new file mode 100755
index 0000000..a7ea803
--- /dev/null
+++ b/tests/rm/rm3.sh
@@ -0,0 +1,73 @@
+#!/bin/sh
+# exercise another small part of remove.c
+
+# Copyright (C) 2002-2016 Free Software Foundation, Inc.
+
+# This program is free software: you can redistribute it and/or modify
+# it under the terms of the GNU General Public License as published by
+# the Free Software Foundation, either version 3 of the License, or
+# (at your option) any later version.
+
+# This program is distributed in the hope that it will be useful,
+# but WITHOUT ANY WARRANTY; without even the implied warranty of
+# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
+# GNU General Public License for more details.
+
+# You should have received a copy of the GNU General Public License
+# along with this program. If not, see <http://www.gnu.org/licenses/>.
+
+. "${srcdir=.}/tests/init.sh"; path_prepend_ ./src
+print_ver_ rm
+skip_if_root_
+
+mkdir -p z || framework_failure_
+cd z || framework_failure_
+touch empty empty-u || framework_failure_
+echo not-empty > fu
+ln -s empty-f slink
+ln -s . slinkdot
+mkdir d du || framework_failure_
+chmod u-w fu du empty-u || framework_failure_
+cd ..
+
+
+cat <<EOF > in
+y
+y
+y
+y
+y
+y
+y
+y
+y
+EOF
+
+# Both of these should fail.
+rm -ir z < in > out 2>&1 || fail=1
+
+# Given input like 'rm: ...? rm: ...? ' (no trailing newline),
+# the 'head...' part of the pipeline below removes the trailing space, so
+# that sed doesn't have to deal with a line lacking a terminating newline.
+# This avoids a bug whereby some vendor-provided (Tru64) versions of sed
+# would mistakenly tack a newline onto the end of the output.
+tr '?' '\n' < out | head --bytes=-1 | sed 's/^ //' |sort > o2
+mv o2 out
+
+sort <<EOF > exp || fail=1
+rm: descend into directory 'z'
+rm: remove regular empty file 'z/empty'
+rm: remove write-protected regular file 'z/fu'
+rm: remove write-protected regular empty file 'z/empty-u'
+rm: remove symbolic link 'z/slink'
+rm: remove symbolic link 'z/slinkdot'
+rm: remove directory 'z/d'
+rm: remove write-protected directory 'z/du'
+rm: remove directory 'z'
+EOF
+
+compare exp out || fail=1
+
+test -d z && fail=1
+
+Exit $fail
diff --git a/tests/rm/rm4 b/tests/rm/rm4
deleted file mode 100755
index 944aaec..0000000
--- a/tests/rm/rm4
+++ /dev/null
@@ -1,52 +0,0 @@
-#!/bin/sh
-# ensure that `rm dir' fails without --recursive
-
-# Copyright (C) 2002, 2004, 2006 Free Software Foundation, Inc.
-
-# This program is free software; you can redistribute it and/or modify
-# it under the terms of the GNU General Public License as published by
-# the Free Software Foundation; either version 2 of the License, or
-# (at your option) any later version.
-
-# This program is distributed in the hope that it will be useful,
-# but WITHOUT ANY WARRANTY; without even the implied warranty of
-# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
-# GNU General Public License for more details.
-
-# You should have received a copy of the GNU General Public License
-# along with this program; if not, write to the Free Software
-# Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA
-# 02110-1301, USA.
-
-if test "$VERBOSE" = yes; then
- set -x
- rm --version
-fi
-
-. $srcdir/../envvar-check
-. $srcdir/../lang-default
-PRIV_CHECK_ARG=require-non-root . $srcdir/../priv-check
-
-pwd=`pwd`
-t0=`echo "$0"|sed 's,.*/,,'`.tmp; tmp=$t0/$$
-trap 'status=$?; cd "$pwd" && chmod -R u+rwx $t0 && rm -rf $t0 && exit $status' 0
-trap '(exit $?); exit' 1 2 13 15
-
-framework_failure=0
-mkdir -p $tmp || framework_failure=1
-cd $tmp || framework_failure=1
-mkdir dir || framework_failure=1
-
-if test $framework_failure = 1; then
- echo "$0: failure in testing framework" 1>&2
- (exit 1); exit 1
-fi
-
-fail=0
-
-# This should fail.
-rm dir > /dev/null 2>&1 && fail=1
-
-test -d dir || fail=1
-
-(exit $fail); exit $fail
diff --git a/tests/rm/rm4.sh b/tests/rm/rm4.sh
new file mode 100755
index 0000000..bf20703
--- /dev/null
+++ b/tests/rm/rm4.sh
@@ -0,0 +1,31 @@
+#!/bin/sh
+# ensure that 'rm dir' fails without --recursive
+
+# Copyright (C) 2002-2016 Free Software Foundation, Inc.
+
+# This program is free software: you can redistribute it and/or modify
+# it under the terms of the GNU General Public License as published by
+# the Free Software Foundation, either version 3 of the License, or
+# (at your option) any later version.
+
+# This program is distributed in the hope that it will be useful,
+# but WITHOUT ANY WARRANTY; without even the implied warranty of
+# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
+# GNU General Public License for more details.
+
+# You should have received a copy of the GNU General Public License
+# along with this program. If not, see <http://www.gnu.org/licenses/>.
+
+. "${srcdir=.}/tests/init.sh"; path_prepend_ ./src
+print_ver_ rm
+skip_if_root_
+
+mkdir dir || framework_failure_
+
+
+# This should fail.
+returns_ 1 rm dir > /dev/null 2>&1 || fail=1
+
+test -d dir || fail=1
+
+Exit $fail
diff --git a/tests/rm/rm5 b/tests/rm/rm5
deleted file mode 100755
index 297d02a..0000000
--- a/tests/rm/rm5
+++ /dev/null
@@ -1,74 +0,0 @@
-#!/bin/sh
-# a basic test of rm -ri
-
-# Copyright (C) 2002, 2003, 2004, 2006 Free Software Foundation, Inc.
-
-# This program is free software; you can redistribute it and/or modify
-# it under the terms of the GNU General Public License as published by
-# the Free Software Foundation; either version 2 of the License, or
-# (at your option) any later version.
-
-# This program is distributed in the hope that it will be useful,
-# but WITHOUT ANY WARRANTY; without even the implied warranty of
-# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
-# GNU General Public License for more details.
-
-# You should have received a copy of the GNU General Public License
-# along with this program; if not, write to the Free Software
-# Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA
-# 02110-1301, USA.
-
-if test "$VERBOSE" = yes; then
- set -x
- rm --version
-fi
-
-. $srcdir/../envvar-check
-. $srcdir/../lang-default
-PRIV_CHECK_ARG=require-non-root . $srcdir/../priv-check
-
-pwd=`pwd`
-t0=`echo "$0"|sed 's,.*/,,'`.tmp; tmp=$t0/$$
-trap 'status=$?; cd "$pwd" && chmod -R u+rwx $t0 && rm -rf $t0 && exit $status' 0
-trap '(exit $?); exit' 1 2 13 15
-
-framework_failure=0
-mkdir -p $tmp || framework_failure=1
-cd $tmp || framework_failure=1
-mkdir -p d/e || framework_failure=1
-cat <<EOF > in || framework_failure=1
-y
-y
-y
-EOF
-
-cat <<\EOF > exp || framework_failure=1
-rm: descend into directory `d'
-rm: remove directory `d/e'
-rm: remove directory `d'
-EOF
-
-if test $framework_failure = 1; then
- echo "$0: failure in testing framework" 1>&2
- (exit 1); exit 1
-fi
-
-fail=0
-
-rm -ir d < in > out 2>&1 || fail=1
-
-# Given input like `rm: ...? rm: ...? ' (no trailing newline),
-# the `head...' part of the pipeline below removes the trailing space, so
-# that sed doesn't have to deal with a line lacking a terminating newline.
-# This avoids a bug whereby some vendor-provided (Tru64) versions of sed
-# would mistakenly tack a newline onto the end of the output.
-tr '?' '\n' < out | head --bytes=-1 | sed 's/^ //' > o2
-mv o2 out
-
-# Make sure it's been removed.
-test -d d && fail=1
-
-cmp out exp || fail=1
-test $fail = 1 && diff -u out exp 2> /dev/null
-
-(exit $fail); exit $fail
diff --git a/tests/rm/rm5.sh b/tests/rm/rm5.sh
new file mode 100755
index 0000000..e4b571c
--- /dev/null
+++ b/tests/rm/rm5.sh
@@ -0,0 +1,52 @@
+#!/bin/sh
+# a basic test of rm -ri
+
+# Copyright (C) 2002-2016 Free Software Foundation, Inc.
+
+# This program is free software: you can redistribute it and/or modify
+# it under the terms of the GNU General Public License as published by
+# the Free Software Foundation, either version 3 of the License, or
+# (at your option) any later version.
+
+# This program is distributed in the hope that it will be useful,
+# but WITHOUT ANY WARRANTY; without even the implied warranty of
+# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
+# GNU General Public License for more details.
+
+# You should have received a copy of the GNU General Public License
+# along with this program. If not, see <http://www.gnu.org/licenses/>.
+
+. "${srcdir=.}/tests/init.sh"; path_prepend_ ./src
+print_ver_ rm
+skip_if_root_
+
+mkdir -p d/e || framework_failure_
+cat <<EOF > in || framework_failure_
+y
+y
+y
+EOF
+
+cat <<\EOF > exp || framework_failure_
+rm: descend into directory 'd'
+rm: remove directory 'd/e'
+rm: remove directory 'd'
+EOF
+
+
+rm -ir d < in > out 2>&1 || fail=1
+
+# Given input like 'rm: ...? rm: ...? ' (no trailing newline),
+# the 'head...' part of the pipeline below removes the trailing space, so
+# that sed doesn't have to deal with a line lacking a terminating newline.
+# This avoids a bug whereby some vendor-provided (Tru64) versions of sed
+# would mistakenly tack a newline onto the end of the output.
+tr '?' '\n' < out | head --bytes=-1 | sed 's/^ //' > o2
+mv o2 out
+
+# Make sure it's been removed.
+test -d d && fail=1
+
+compare exp out || fail=1
+
+Exit $fail
diff --git a/tests/rm/sunos-1 b/tests/rm/sunos-1
deleted file mode 100755
index 1f6a09c..0000000
--- a/tests/rm/sunos-1
+++ /dev/null
@@ -1,48 +0,0 @@
-#!/bin/sh
-# Make sure that rm -r '' fails.
-
-# Copyright (C) 1997, 1998, 2002, 2004, 2006 Free Software Foundation, Inc.
-
-# This program is free software; you can redistribute it and/or modify
-# it under the terms of the GNU General Public License as published by
-# the Free Software Foundation; either version 2 of the License, or
-# (at your option) any later version.
-
-# This program is distributed in the hope that it will be useful,
-# but WITHOUT ANY WARRANTY; without even the implied warranty of
-# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
-# GNU General Public License for more details.
-
-# You should have received a copy of the GNU General Public License
-# along with this program; if not, write to the Free Software
-# Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA
-# 02110-1301, USA.
-
-
-# On SunOS 4.1.3, running rm -r '' in a nonempty directory may
-# actually remove files with names of entries in the current directory
-# but relative to `/' rather than relative to the current directory.
-
-if test "$VERBOSE" = yes; then
- set -x
- rm --version
-fi
-
-pwd=`pwd`
-t0=`echo "$0"|sed 's,.*/,,'`.tmp; tmp=$t0/$$
-trap 'status=$?; cd "$pwd" && rm -rf $t0 && exit $status' 0
-trap '(exit $?); exit' 1 2 13 15
-
-framework_failure=0
-mkdir -p $tmp || framework_failure=1
-cd $tmp || framework_failure=1
-
-if test $framework_failure = 1; then
- echo "$0: failure in testing framework" 1>&2
- (exit 1); exit 1
-fi
-
-fail=0
-rm -r '' > /dev/null 2>&1 && fail=1
-
-(exit $fail); exit $fail
diff --git a/tests/rm/sunos-1.sh b/tests/rm/sunos-1.sh
new file mode 100755
index 0000000..1cc3d1d
--- /dev/null
+++ b/tests/rm/sunos-1.sh
@@ -0,0 +1,29 @@
+#!/bin/sh
+# Make sure that rm -r '' fails.
+
+# Copyright (C) 1997-2016 Free Software Foundation, Inc.
+
+# This program is free software: you can redistribute it and/or modify
+# it under the terms of the GNU General Public License as published by
+# the Free Software Foundation, either version 3 of the License, or
+# (at your option) any later version.
+
+# This program is distributed in the hope that it will be useful,
+# but WITHOUT ANY WARRANTY; without even the implied warranty of
+# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
+# GNU General Public License for more details.
+
+# You should have received a copy of the GNU General Public License
+# along with this program. If not, see <http://www.gnu.org/licenses/>.
+
+
+# On SunOS 4.1.3, running rm -r '' in a nonempty directory may
+# actually remove files with names of entries in the current directory
+# but relative to '/' rather than relative to the current directory.
+
+. "${srcdir=.}/tests/init.sh"; path_prepend_ ./src
+print_ver_ rm
+
+returns_ 1 rm -r '' > /dev/null 2>&1 || fail=1
+
+Exit $fail
diff --git a/tests/rm/unread2 b/tests/rm/unread2
deleted file mode 100755
index e67c9ae..0000000
--- a/tests/rm/unread2
+++ /dev/null
@@ -1,57 +0,0 @@
-#!/bin/sh
-# exercise one small part of remove.c
-
-# Copyright (C) 2002, 2003, 2004, 2005, 2006 Free Software Foundation, Inc.
-
-# This program is free software; you can redistribute it and/or modify
-# it under the terms of the GNU General Public License as published by
-# the Free Software Foundation; either version 2 of the License, or
-# (at your option) any later version.
-
-# This program is distributed in the hope that it will be useful,
-# but WITHOUT ANY WARRANTY; without even the implied warranty of
-# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
-# GNU General Public License for more details.
-
-# You should have received a copy of the GNU General Public License
-# along with this program; if not, write to the Free Software
-# Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA
-# 02110-1301, USA.
-
-if test "$VERBOSE" = yes; then
- set -x
- rm --version
-fi
-
-. $srcdir/../envvar-check
-. $srcdir/../lang-default
-PRIV_CHECK_ARG=require-non-root . $srcdir/../priv-check
-
-pwd=`pwd`
-t0=`echo "$0"|sed 's,.*/,,'`.tmp; tmp=$t0/$$
-trap 'status=$?; cd "$pwd" && chmod -R u+rwx $t0 && rm -rf $t0 && exit $status' 0
-trap '(exit $?); exit' 1 2 13 15
-
-framework_failure=0
-mkdir -p $tmp || framework_failure=1
-cd $tmp || framework_failure=1
-mkdir -p a/b || framework_failure=1
-chmod u-r a
-
-if test $framework_failure = 1; then
- echo "$0: failure in testing framework" 1>&2
- (exit 1); exit 1
-fi
-
-fail=0
-
-# This should fail.
-rm -rf a > out 2>&1 && fail=1
-cat <<\EOF > exp
-rm: cannot remove `a': Permission denied
-EOF
-
-cmp out exp || fail=1
-test $fail = 1 && diff out exp 2> /dev/null
-
-(exit $fail); exit $fail
diff --git a/tests/rm/unread2.sh b/tests/rm/unread2.sh
new file mode 100755
index 0000000..0c04f7f
--- /dev/null
+++ b/tests/rm/unread2.sh
@@ -0,0 +1,35 @@
+#!/bin/sh
+# exercise one small part of remove.c
+
+# Copyright (C) 2002-2016 Free Software Foundation, Inc.
+
+# This program is free software: you can redistribute it and/or modify
+# it under the terms of the GNU General Public License as published by
+# the Free Software Foundation, either version 3 of the License, or
+# (at your option) any later version.
+
+# This program is distributed in the hope that it will be useful,
+# but WITHOUT ANY WARRANTY; without even the implied warranty of
+# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
+# GNU General Public License for more details.
+
+# You should have received a copy of the GNU General Public License
+# along with this program. If not, see <http://www.gnu.org/licenses/>.
+
+. "${srcdir=.}/tests/init.sh"; path_prepend_ ./src
+print_ver_ rm
+skip_if_root_
+
+mkdir -p a/b || framework_failure_
+chmod u-r a
+
+
+# This should fail.
+rm -rf a > out 2>&1 && fail=1
+cat <<\EOF > exp
+rm: cannot remove 'a': Permission denied
+EOF
+
+compare exp out || fail=1
+
+Exit $fail
diff --git a/tests/rm/unread3 b/tests/rm/unread3
deleted file mode 100755
index 4021a39..0000000
--- a/tests/rm/unread3
+++ /dev/null
@@ -1,62 +0,0 @@
-#!/bin/sh
-# Ensure that rm works even from an unreadable working directory.
-
-# Copyright (C) 2004, 2006 Free Software Foundation, Inc.
-
-# This program is free software; you can redistribute it and/or modify
-# it under the terms of the GNU General Public License as published by
-# the Free Software Foundation; either version 2 of the License, or
-# (at your option) any later version.
-
-# This program is distributed in the hope that it will be useful,
-# but WITHOUT ANY WARRANTY; without even the implied warranty of
-# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
-# GNU General Public License for more details.
-
-# You should have received a copy of the GNU General Public License
-# along with this program; if not, write to the Free Software
-# Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA
-# 02110-1301, USA.
-
-if test "$VERBOSE" = yes; then
- set -x
- rm --version
-fi
-
-PRIV_CHECK_ARG=require-non-root . $srcdir/../priv-check
-
-pwd=`pwd`
-t0=`echo "$0"|sed 's,.*/,,'`.tmp; tmp=$t0/$$
-trap 'status=$?; cd "$pwd" && chmod -R u+rwx $t0 && rm -rf $t0 && exit $status' 0
-trap '(exit $?); exit $?' 1 2 13 15
-
-framework_failure=0
-mkdir -p $tmp || framework_failure=1
-cd $tmp || framework_failure=1
-mkdir -p a/1 b c d/2 e/3 || framework_failure=1
-
-if test $framework_failure = 1; then
- echo "$0: failure in testing framework" 1>&2
- (exit 1); exit 1
-fi
-
-fail=0
-
-cd c
-chmod u=x,go= .
-t=$pwd/$tmp
-
-# With coreutils-5.2.1, this would get a failed assertion.
-rm -r "$t/a" "$t/b" || fail=1
-
-# With coreutils-5.2.1, this would get the following:
-# rm: cannot get current directory: Permission denied
-# rm: failed to return to initial working directory: Bad file descriptor
-rm -r "$t/d" "$t/e" || fail=1
-
-test -d "$t/a" && fail=1
-test -d "$t/b" && fail=1
-test -d "$t/d" && fail=1
-test -d "$t/e" && fail=1
-
-(exit $fail); exit $fail
diff --git a/tests/rm/unread3.sh b/tests/rm/unread3.sh
new file mode 100755
index 0000000..9dd0b98
--- /dev/null
+++ b/tests/rm/unread3.sh
@@ -0,0 +1,43 @@
+#!/bin/sh
+# Ensure that rm works even from an unreadable working directory.
+
+# Copyright (C) 2004-2016 Free Software Foundation, Inc.
+
+# This program is free software: you can redistribute it and/or modify
+# it under the terms of the GNU General Public License as published by
+# the Free Software Foundation, either version 3 of the License, or
+# (at your option) any later version.
+
+# This program is distributed in the hope that it will be useful,
+# but WITHOUT ANY WARRANTY; without even the implied warranty of
+# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
+# GNU General Public License for more details.
+
+# You should have received a copy of the GNU General Public License
+# along with this program. If not, see <http://www.gnu.org/licenses/>.
+
+. "${srcdir=.}/tests/init.sh"; path_prepend_ ./src
+print_ver_ rm
+skip_if_root_
+
+mkdir -p a/1 b c d/2 e/3 || framework_failure_
+
+
+t=$(pwd)
+cd c
+chmod u=x,go= .
+
+# With coreutils-5.2.1, this would get a failed assertion.
+rm -r "$t/a" "$t/b" || fail=1
+
+# With coreutils-5.2.1, this would get the following:
+# rm: cannot get current directory: Permission denied
+# rm: failed to return to initial working directory: Bad file descriptor
+rm -r "$t/d" "$t/e" || fail=1
+
+test -d "$t/a" && fail=1
+test -d "$t/b" && fail=1
+test -d "$t/d" && fail=1
+test -d "$t/e" && fail=1
+
+Exit $fail
diff --git a/tests/rm/unreadable.pl b/tests/rm/unreadable.pl
new file mode 100755
index 0000000..0673521
--- /dev/null
+++ b/tests/rm/unreadable.pl
@@ -0,0 +1,50 @@
+#!/usr/bin/perl
+# Test "rm" and unreadable directories.
+
+# Copyright (C) 1998-2016 Free Software Foundation, Inc.
+
+# This program is free software: you can redistribute it and/or modify
+# it under the terms of the GNU General Public License as published by
+# the Free Software Foundation, either version 3 of the License, or
+# (at your option) any later version.
+
+# This program is distributed in the hope that it will be useful,
+# but WITHOUT ANY WARRANTY; without even the implied warranty of
+# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
+# GNU General Public License for more details.
+
+# You should have received a copy of the GNU General Public License
+# along with this program. If not, see <http://www.gnu.org/licenses/>.
+
+use strict;
+
+(my $program_name = $0) =~ s|.*/||;
+
+# Turn off localization of executable's output.
+@ENV{qw(LANGUAGE LANG LC_ALL)} = ('C') x 3;
+
+my $d = "dir-$$";
+my $mkdir = {PRE => sub {mkdir $d,0100 or die "$d: $!\n"}};
+my $prog = 'rm';
+my $uid = $<;
+
+my @Tests =
+ (
+ # test-name options input expected-output
+ #
+ # Removing an empty, unwritable directory succeeds.
+ ['unreadable-1', '-rf', $d, {EXIT => 0}, $mkdir],
+
+ ['unreadable-2', '-rf', $d,
+ {EXIT => $uid == 0 ? 0 : 1},
+ {ERR => $uid == 0 ? ''
+ : "$prog: cannot remove '$d': Permission denied\n"},
+ {PRE => sub { (mkdir $d,0700 and mkdir "$d/x",0700 and chmod 0100,$d)
+ or die "$d: $!\n"}} ],
+ );
+
+my $save_temps = $ENV{SAVE_TEMPS};
+my $verbose = $ENV{VERBOSE};
+
+my $fail = run_tests ($program_name, $prog, \@Tests, $save_temps, $verbose);
+exit $fail;
diff --git a/tests/rm/v-slash.sh b/tests/rm/v-slash.sh
new file mode 100755
index 0000000..0e9a91b
--- /dev/null
+++ b/tests/rm/v-slash.sh
@@ -0,0 +1,34 @@
+#!/bin/sh
+# avoid extra slashes in --verbose output
+
+# Copyright (C) 2007-2016 Free Software Foundation, Inc.
+
+# This program is free software: you can redistribute it and/or modify
+# it under the terms of the GNU General Public License as published by
+# the Free Software Foundation, either version 3 of the License, or
+# (at your option) any later version.
+
+# This program is distributed in the hope that it will be useful,
+# but WITHOUT ANY WARRANTY; without even the implied warranty of
+# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
+# GNU General Public License for more details.
+
+# You should have received a copy of the GNU General Public License
+# along with this program. If not, see <http://www.gnu.org/licenses/>.
+
+. "${srcdir=.}/tests/init.sh"; path_prepend_ ./src
+print_ver_ rm
+
+mkdir a || framework_failure_
+touch a/x || framework_failure_
+
+
+rm --verbose -r a/// > out || fail=1
+cat <<\EOF > exp || fail=1
+removed 'a/x'
+removed directory 'a/'
+EOF
+
+compare exp out || fail=1
+
+Exit $fail
diff --git a/tests/rmdir/Makefile.am b/tests/rmdir/Makefile.am
deleted file mode 100644
index eadbaba..0000000
--- a/tests/rmdir/Makefile.am
+++ /dev/null
@@ -1,11 +0,0 @@
-## Process this file with automake to produce Makefile.in -*-Makefile-*-.
-TESTS = fail-perm ignore t-slash
-
-EXTRA_DIST = $(TESTS)
-TESTS_ENVIRONMENT = \
- top_srcdir=$(top_srcdir) \
- srcdir=$(srcdir) \
- PERL="$(PERL)" \
- CU_TEST_NAME=`basename $(abs_srcdir)`,$$tst \
- PATH="$(VG_PATH_PREFIX)`pwd`/../../src$(PATH_SEPARATOR)$$PATH" \
- PROG=rmdir
diff --git a/tests/rmdir/Makefile.in b/tests/rmdir/Makefile.in
deleted file mode 100644
index 7104588..0000000
--- a/tests/rmdir/Makefile.in
+++ /dev/null
@@ -1,720 +0,0 @@
-# Makefile.in generated by automake 1.10 from Makefile.am.
-# @configure_input@
-
-# Copyright (C) 1994, 1995, 1996, 1997, 1998, 1999, 2000, 2001, 2002,
-# 2003, 2004, 2005, 2006 Free Software Foundation, Inc.
-# This Makefile.in is free software; the Free Software Foundation
-# gives unlimited permission to copy and/or distribute it,
-# with or without modifications, as long as this notice is preserved.
-
-# This program is distributed in the hope that it will be useful,
-# but WITHOUT ANY WARRANTY, to the extent permitted by law; without
-# even the implied warranty of MERCHANTABILITY or FITNESS FOR A
-# PARTICULAR PURPOSE.
-
-@SET_MAKE@
-VPATH = @srcdir@
-pkgdatadir = $(datadir)/@PACKAGE@
-pkglibdir = $(libdir)/@PACKAGE@
-pkgincludedir = $(includedir)/@PACKAGE@
-am__cd = CDPATH="$${ZSH_VERSION+.}$(PATH_SEPARATOR)" && cd
-install_sh_DATA = $(install_sh) -c -m 644
-install_sh_PROGRAM = $(install_sh) -c
-install_sh_SCRIPT = $(install_sh) -c
-INSTALL_HEADER = $(INSTALL_DATA)
-transform = $(program_transform_name)
-NORMAL_INSTALL = :
-PRE_INSTALL = :
-POST_INSTALL = :
-NORMAL_UNINSTALL = :
-PRE_UNINSTALL = :
-POST_UNINSTALL = :
-build_triplet = @build@
-host_triplet = @host@
-subdir = tests/rmdir
-DIST_COMMON = $(srcdir)/Makefile.am $(srcdir)/Makefile.in
-ACLOCAL_M4 = $(top_srcdir)/aclocal.m4
-am__aclocal_m4_deps = $(top_srcdir)/m4/absolute-header.m4 \
- $(top_srcdir)/m4/acl.m4 $(top_srcdir)/m4/alloca.m4 \
- $(top_srcdir)/m4/allocsa.m4 $(top_srcdir)/m4/argmatch.m4 \
- $(top_srcdir)/m4/arpa_inet_h.m4 $(top_srcdir)/m4/assert.m4 \
- $(top_srcdir)/m4/atexit.m4 $(top_srcdir)/m4/autobuild.m4 \
- $(top_srcdir)/m4/backupfile.m4 $(top_srcdir)/m4/base64.m4 \
- $(top_srcdir)/m4/bison.m4 $(top_srcdir)/m4/boottime.m4 \
- $(top_srcdir)/m4/c-strtod.m4 $(top_srcdir)/m4/calloc.m4 \
- $(top_srcdir)/m4/canon-host.m4 \
- $(top_srcdir)/m4/canonicalize.m4 \
- $(top_srcdir)/m4/chdir-long.m4 $(top_srcdir)/m4/check-decl.m4 \
- $(top_srcdir)/m4/chown.m4 $(top_srcdir)/m4/clock_time.m4 \
- $(top_srcdir)/m4/cloexec.m4 $(top_srcdir)/m4/close-stream.m4 \
- $(top_srcdir)/m4/closeout.m4 $(top_srcdir)/m4/codeset.m4 \
- $(top_srcdir)/m4/config-h.m4 $(top_srcdir)/m4/cycle-check.m4 \
- $(top_srcdir)/m4/d-ino.m4 $(top_srcdir)/m4/d-type.m4 \
- $(top_srcdir)/m4/dirfd.m4 $(top_srcdir)/m4/dirname.m4 \
- $(top_srcdir)/m4/dos.m4 $(top_srcdir)/m4/double-slash-root.m4 \
- $(top_srcdir)/m4/dup2.m4 $(top_srcdir)/m4/eealloc.m4 \
- $(top_srcdir)/m4/eoverflow.m4 $(top_srcdir)/m4/error.m4 \
- $(top_srcdir)/m4/euidaccess-stat.m4 \
- $(top_srcdir)/m4/euidaccess.m4 $(top_srcdir)/m4/exclude.m4 \
- $(top_srcdir)/m4/exitfail.m4 $(top_srcdir)/m4/extensions.m4 \
- $(top_srcdir)/m4/fchdir.m4 $(top_srcdir)/m4/fcntl-safer.m4 \
- $(top_srcdir)/m4/fcntl_h.m4 $(top_srcdir)/m4/fd-reopen.m4 \
- $(top_srcdir)/m4/file-type.m4 $(top_srcdir)/m4/fileblocks.m4 \
- $(top_srcdir)/m4/filemode.m4 $(top_srcdir)/m4/filenamecat.m4 \
- $(top_srcdir)/m4/flexmember.m4 $(top_srcdir)/m4/fnmatch.m4 \
- $(top_srcdir)/m4/fpending.m4 $(top_srcdir)/m4/fprintftime.m4 \
- $(top_srcdir)/m4/free.m4 $(top_srcdir)/m4/fstypename.m4 \
- $(top_srcdir)/m4/fsusage.m4 $(top_srcdir)/m4/ftruncate.m4 \
- $(top_srcdir)/m4/fts.m4 $(top_srcdir)/m4/getaddrinfo.m4 \
- $(top_srcdir)/m4/getcwd-abort-bug.m4 \
- $(top_srcdir)/m4/getcwd-path-max.m4 $(top_srcdir)/m4/getcwd.m4 \
- $(top_srcdir)/m4/getdate.m4 $(top_srcdir)/m4/getdelim.m4 \
- $(top_srcdir)/m4/getgroups.m4 $(top_srcdir)/m4/gethostname.m4 \
- $(top_srcdir)/m4/gethrxtime.m4 $(top_srcdir)/m4/getline.m4 \
- $(top_srcdir)/m4/getloadavg.m4 $(top_srcdir)/m4/getndelim2.m4 \
- $(top_srcdir)/m4/getopt.m4 $(top_srcdir)/m4/getpagesize.m4 \
- $(top_srcdir)/m4/getpass.m4 $(top_srcdir)/m4/gettext.m4 \
- $(top_srcdir)/m4/gettime.m4 $(top_srcdir)/m4/gettimeofday.m4 \
- $(top_srcdir)/m4/getugroups.m4 \
- $(top_srcdir)/m4/getusershell.m4 $(top_srcdir)/m4/glibc21.m4 \
- $(top_srcdir)/m4/gnulib-common.m4 \
- $(top_srcdir)/m4/gnulib-comp.m4 \
- $(top_srcdir)/m4/group-member.m4 \
- $(top_srcdir)/m4/hard-locale.m4 $(top_srcdir)/m4/hash.m4 \
- $(top_srcdir)/m4/host-os.m4 $(top_srcdir)/m4/human.m4 \
- $(top_srcdir)/m4/i-ring.m4 $(top_srcdir)/m4/iconv.m4 \
- $(top_srcdir)/m4/idcache.m4 $(top_srcdir)/m4/inet_ntop.m4 \
- $(top_srcdir)/m4/inline.m4 $(top_srcdir)/m4/intmax_t.m4 \
- $(top_srcdir)/m4/inttostr.m4 $(top_srcdir)/m4/inttypes-pri.m4 \
- $(top_srcdir)/m4/inttypes.m4 $(top_srcdir)/m4/inttypes_h.m4 \
- $(top_srcdir)/m4/isapipe.m4 $(top_srcdir)/m4/jm-macros.m4 \
- $(top_srcdir)/m4/jm-winsz1.m4 $(top_srcdir)/m4/jm-winsz2.m4 \
- $(top_srcdir)/m4/lchmod.m4 $(top_srcdir)/m4/lchown.m4 \
- $(top_srcdir)/m4/lib-check.m4 $(top_srcdir)/m4/lib-ignore.m4 \
- $(top_srcdir)/m4/lib-ld.m4 $(top_srcdir)/m4/lib-link.m4 \
- $(top_srcdir)/m4/lib-prefix.m4 $(top_srcdir)/m4/link-follow.m4 \
- $(top_srcdir)/m4/localcharset.m4 \
- $(top_srcdir)/m4/long-options.m4 \
- $(top_srcdir)/m4/longdouble.m4 $(top_srcdir)/m4/longlong.m4 \
- $(top_srcdir)/m4/ls-mntd-fs.m4 $(top_srcdir)/m4/lstat.m4 \
- $(top_srcdir)/m4/mbchar.m4 $(top_srcdir)/m4/mbiter.m4 \
- $(top_srcdir)/m4/mbrtowc.m4 $(top_srcdir)/m4/mbscasecmp.m4 \
- $(top_srcdir)/m4/mbstate_t.m4 $(top_srcdir)/m4/mbswidth.m4 \
- $(top_srcdir)/m4/md5.m4 $(top_srcdir)/m4/memcasecmp.m4 \
- $(top_srcdir)/m4/memchr.m4 $(top_srcdir)/m4/memcmp.m4 \
- $(top_srcdir)/m4/memcoll.m4 $(top_srcdir)/m4/memcpy.m4 \
- $(top_srcdir)/m4/memmove.m4 $(top_srcdir)/m4/mempcpy.m4 \
- $(top_srcdir)/m4/memrchr.m4 $(top_srcdir)/m4/memset.m4 \
- $(top_srcdir)/m4/memxfrm.m4 $(top_srcdir)/m4/mkancesdirs.m4 \
- $(top_srcdir)/m4/mkdir-p.m4 $(top_srcdir)/m4/mkdir-slash.m4 \
- $(top_srcdir)/m4/mkstemp.m4 $(top_srcdir)/m4/mktime.m4 \
- $(top_srcdir)/m4/modechange.m4 $(top_srcdir)/m4/mountlist.m4 \
- $(top_srcdir)/m4/mpsort.m4 $(top_srcdir)/m4/nanosleep.m4 \
- $(top_srcdir)/m4/netinet_in_h.m4 $(top_srcdir)/m4/nls.m4 \
- $(top_srcdir)/m4/openat.m4 $(top_srcdir)/m4/pathmax.m4 \
- $(top_srcdir)/m4/perl.m4 $(top_srcdir)/m4/physmem.m4 \
- $(top_srcdir)/m4/po.m4 $(top_srcdir)/m4/posixtm.m4 \
- $(top_srcdir)/m4/posixver.m4 $(top_srcdir)/m4/prereq.m4 \
- $(top_srcdir)/m4/progtest.m4 $(top_srcdir)/m4/putenv.m4 \
- $(top_srcdir)/m4/quote.m4 $(top_srcdir)/m4/quotearg.m4 \
- $(top_srcdir)/m4/randint.m4 $(top_srcdir)/m4/randperm.m4 \
- $(top_srcdir)/m4/randread.m4 $(top_srcdir)/m4/readlink.m4 \
- $(top_srcdir)/m4/readtokens.m4 $(top_srcdir)/m4/readutmp.m4 \
- $(top_srcdir)/m4/regex.m4 \
- $(top_srcdir)/m4/rename-dest-slash.m4 \
- $(top_srcdir)/m4/rename.m4 $(top_srcdir)/m4/rmdir-errno.m4 \
- $(top_srcdir)/m4/rmdir.m4 $(top_srcdir)/m4/root-dev-ino.m4 \
- $(top_srcdir)/m4/rpmatch.m4 $(top_srcdir)/m4/safe-read.m4 \
- $(top_srcdir)/m4/safe-write.m4 $(top_srcdir)/m4/same.m4 \
- $(top_srcdir)/m4/save-cwd.m4 $(top_srcdir)/m4/savedir.m4 \
- $(top_srcdir)/m4/savewd.m4 $(top_srcdir)/m4/setenv.m4 \
- $(top_srcdir)/m4/settime.m4 $(top_srcdir)/m4/sha1.m4 \
- $(top_srcdir)/m4/sha256.m4 $(top_srcdir)/m4/sha512.m4 \
- $(top_srcdir)/m4/sig2str.m4 $(top_srcdir)/m4/snprintf.m4 \
- $(top_srcdir)/m4/socklen.m4 $(top_srcdir)/m4/sockpfaf.m4 \
- $(top_srcdir)/m4/ssize_t.m4 $(top_srcdir)/m4/st_dm_mode.m4 \
- $(top_srcdir)/m4/stat-prog.m4 $(top_srcdir)/m4/stat-time.m4 \
- $(top_srcdir)/m4/stdarg.m4 $(top_srcdir)/m4/stdbool.m4 \
- $(top_srcdir)/m4/stdint.m4 $(top_srcdir)/m4/stdint_h.m4 \
- $(top_srcdir)/m4/stdio-safer.m4 $(top_srcdir)/m4/stdio_h.m4 \
- $(top_srcdir)/m4/stdlib-safer.m4 $(top_srcdir)/m4/stdlib_h.m4 \
- $(top_srcdir)/m4/stpcpy.m4 $(top_srcdir)/m4/strcspn.m4 \
- $(top_srcdir)/m4/strdup.m4 $(top_srcdir)/m4/strftime.m4 \
- $(top_srcdir)/m4/string_h.m4 $(top_srcdir)/m4/strndup.m4 \
- $(top_srcdir)/m4/strnlen.m4 $(top_srcdir)/m4/strnumcmp.m4 \
- $(top_srcdir)/m4/strpbrk.m4 $(top_srcdir)/m4/strtod.m4 \
- $(top_srcdir)/m4/strtoimax.m4 $(top_srcdir)/m4/strtol.m4 \
- $(top_srcdir)/m4/strtoll.m4 $(top_srcdir)/m4/strtoul.m4 \
- $(top_srcdir)/m4/strtoull.m4 $(top_srcdir)/m4/strtoumax.m4 \
- $(top_srcdir)/m4/strverscmp.m4 \
- $(top_srcdir)/m4/sys_socket_h.m4 \
- $(top_srcdir)/m4/sys_stat_h.m4 $(top_srcdir)/m4/sys_time_h.m4 \
- $(top_srcdir)/m4/tempname.m4 $(top_srcdir)/m4/time_h.m4 \
- $(top_srcdir)/m4/time_r.m4 $(top_srcdir)/m4/timespec.m4 \
- $(top_srcdir)/m4/tm_gmtoff.m4 $(top_srcdir)/m4/tzset.m4 \
- $(top_srcdir)/m4/unicodeio.m4 $(top_srcdir)/m4/unistd-safer.m4 \
- $(top_srcdir)/m4/unistd_h.m4 $(top_srcdir)/m4/unlink-busy.m4 \
- $(top_srcdir)/m4/unlinkdir.m4 $(top_srcdir)/m4/unlocked-io.m4 \
- $(top_srcdir)/m4/uptime.m4 $(top_srcdir)/m4/userspec.m4 \
- $(top_srcdir)/m4/utimbuf.m4 $(top_srcdir)/m4/utime.m4 \
- $(top_srcdir)/m4/utimecmp.m4 $(top_srcdir)/m4/utimens.m4 \
- $(top_srcdir)/m4/utimes-null.m4 $(top_srcdir)/m4/utimes.m4 \
- $(top_srcdir)/m4/vasnprintf.m4 $(top_srcdir)/m4/vasprintf.m4 \
- $(top_srcdir)/m4/wchar.m4 $(top_srcdir)/m4/wchar_t.m4 \
- $(top_srcdir)/m4/wctype.m4 $(top_srcdir)/m4/wcwidth.m4 \
- $(top_srcdir)/m4/wint_t.m4 $(top_srcdir)/m4/xalloc.m4 \
- $(top_srcdir)/m4/xfts.m4 $(top_srcdir)/m4/xgetcwd.m4 \
- $(top_srcdir)/m4/xnanosleep.m4 $(top_srcdir)/m4/xstrndup.m4 \
- $(top_srcdir)/m4/xstrtod.m4 $(top_srcdir)/m4/xstrtol.m4 \
- $(top_srcdir)/m4/yesno.m4 $(top_srcdir)/configure.ac
-am__configure_deps = $(am__aclocal_m4_deps) $(CONFIGURE_DEPENDENCIES) \
- $(ACLOCAL_M4)
-mkinstalldirs = $(install_sh) -d
-CONFIG_HEADER = $(top_builddir)/lib/config.h
-CONFIG_CLEAN_FILES =
-SOURCES =
-DIST_SOURCES =
-DISTFILES = $(DIST_COMMON) $(DIST_SOURCES) $(TEXINFOS) $(EXTRA_DIST)
-ABSOLUTE_DIRENT_H = @ABSOLUTE_DIRENT_H@
-ABSOLUTE_FCNTL_H = @ABSOLUTE_FCNTL_H@
-ABSOLUTE_INTTYPES_H = @ABSOLUTE_INTTYPES_H@
-ABSOLUTE_NETINET_IN_H = @ABSOLUTE_NETINET_IN_H@
-ABSOLUTE_STDINT_H = @ABSOLUTE_STDINT_H@
-ABSOLUTE_STDIO_H = @ABSOLUTE_STDIO_H@
-ABSOLUTE_STDLIB_H = @ABSOLUTE_STDLIB_H@
-ABSOLUTE_STRING_H = @ABSOLUTE_STRING_H@
-ABSOLUTE_SYS_SOCKET_H = @ABSOLUTE_SYS_SOCKET_H@
-ABSOLUTE_SYS_STAT_H = @ABSOLUTE_SYS_STAT_H@
-ABSOLUTE_SYS_TIME_H = @ABSOLUTE_SYS_TIME_H@
-ABSOLUTE_TIME_H = @ABSOLUTE_TIME_H@
-ABSOLUTE_UNISTD_H = @ABSOLUTE_UNISTD_H@
-ABSOLUTE_WCHAR_H = @ABSOLUTE_WCHAR_H@
-ABSOLUTE_WCTYPE_H = @ABSOLUTE_WCTYPE_H@
-ACLOCAL = @ACLOCAL@
-ALLOCA = @ALLOCA@
-ALLOCA_H = @ALLOCA_H@
-AMTAR = @AMTAR@
-ARPA_INET_H = @ARPA_INET_H@
-AUTOCONF = @AUTOCONF@
-AUTOHEADER = @AUTOHEADER@
-AUTOMAKE = @AUTOMAKE@
-AWK = @AWK@
-BITSIZEOF_PTRDIFF_T = @BITSIZEOF_PTRDIFF_T@
-BITSIZEOF_SIG_ATOMIC_T = @BITSIZEOF_SIG_ATOMIC_T@
-BITSIZEOF_SIZE_T = @BITSIZEOF_SIZE_T@
-BITSIZEOF_WCHAR_T = @BITSIZEOF_WCHAR_T@
-BITSIZEOF_WINT_T = @BITSIZEOF_WINT_T@
-CC = @CC@
-CCDEPMODE = @CCDEPMODE@
-CFLAGS = @CFLAGS@
-CPP = @CPP@
-CPPFLAGS = @CPPFLAGS@
-CYGPATH_W = @CYGPATH_W@
-DEFAULT_POSIX2_VERSION = @DEFAULT_POSIX2_VERSION@
-DEFS = @DEFS@
-DEPDIR = @DEPDIR@
-DF_PROG = @DF_PROG@
-DIRENT_H = @DIRENT_H@
-ECHO_C = @ECHO_C@
-ECHO_N = @ECHO_N@
-ECHO_T = @ECHO_T@
-EGREP = @EGREP@
-EOVERFLOW = @EOVERFLOW@
-EXEEXT = @EXEEXT@
-FCNTL_H = @FCNTL_H@
-FNMATCH_H = @FNMATCH_H@
-GETLOADAVG_LIBS = @GETLOADAVG_LIBS@
-GETOPT_H = @GETOPT_H@
-GLIBC21 = @GLIBC21@
-GMSGFMT = @GMSGFMT@
-GMSGFMT_015 = @GMSGFMT_015@
-GNULIB_CHOWN = @GNULIB_CHOWN@
-GNULIB_DUP2 = @GNULIB_DUP2@
-GNULIB_FCHDIR = @GNULIB_FCHDIR@
-GNULIB_FPRINTF_POSIX = @GNULIB_FPRINTF_POSIX@
-GNULIB_FTRUNCATE = @GNULIB_FTRUNCATE@
-GNULIB_GETCWD = @GNULIB_GETCWD@
-GNULIB_GETLOGIN_R = @GNULIB_GETLOGIN_R@
-GNULIB_GETSUBOPT = @GNULIB_GETSUBOPT@
-GNULIB_IMAXABS = @GNULIB_IMAXABS@
-GNULIB_IMAXDIV = @GNULIB_IMAXDIV@
-GNULIB_MBSCASECMP = @GNULIB_MBSCASECMP@
-GNULIB_MBSCASESTR = @GNULIB_MBSCASESTR@
-GNULIB_MBSCHR = @GNULIB_MBSCHR@
-GNULIB_MBSCSPN = @GNULIB_MBSCSPN@
-GNULIB_MBSLEN = @GNULIB_MBSLEN@
-GNULIB_MBSNCASECMP = @GNULIB_MBSNCASECMP@
-GNULIB_MBSPBRK = @GNULIB_MBSPBRK@
-GNULIB_MBSPCASECMP = @GNULIB_MBSPCASECMP@
-GNULIB_MBSRCHR = @GNULIB_MBSRCHR@
-GNULIB_MBSSEP = @GNULIB_MBSSEP@
-GNULIB_MBSSPN = @GNULIB_MBSSPN@
-GNULIB_MBSSTR = @GNULIB_MBSSTR@
-GNULIB_MBSTOK_R = @GNULIB_MBSTOK_R@
-GNULIB_MEMMEM = @GNULIB_MEMMEM@
-GNULIB_MEMPCPY = @GNULIB_MEMPCPY@
-GNULIB_MEMRCHR = @GNULIB_MEMRCHR@
-GNULIB_MKDTEMP = @GNULIB_MKDTEMP@
-GNULIB_MKSTEMP = @GNULIB_MKSTEMP@
-GNULIB_PRINTF_POSIX = @GNULIB_PRINTF_POSIX@
-GNULIB_READLINK = @GNULIB_READLINK@
-GNULIB_SNPRINTF = @GNULIB_SNPRINTF@
-GNULIB_SPRINTF_POSIX = @GNULIB_SPRINTF_POSIX@
-GNULIB_STPCPY = @GNULIB_STPCPY@
-GNULIB_STPNCPY = @GNULIB_STPNCPY@
-GNULIB_STRCASESTR = @GNULIB_STRCASESTR@
-GNULIB_STRCHRNUL = @GNULIB_STRCHRNUL@
-GNULIB_STRDUP = @GNULIB_STRDUP@
-GNULIB_STRNDUP = @GNULIB_STRNDUP@
-GNULIB_STRNLEN = @GNULIB_STRNLEN@
-GNULIB_STRPBRK = @GNULIB_STRPBRK@
-GNULIB_STRSEP = @GNULIB_STRSEP@
-GNULIB_STRTOIMAX = @GNULIB_STRTOIMAX@
-GNULIB_STRTOK_R = @GNULIB_STRTOK_R@
-GNULIB_STRTOUMAX = @GNULIB_STRTOUMAX@
-GNULIB_VFPRINTF_POSIX = @GNULIB_VFPRINTF_POSIX@
-GNULIB_VPRINTF_POSIX = @GNULIB_VPRINTF_POSIX@
-GNULIB_VSNPRINTF = @GNULIB_VSNPRINTF@
-GNULIB_VSPRINTF_POSIX = @GNULIB_VSPRINTF_POSIX@
-GNU_PACKAGE = @GNU_PACKAGE@
-GREP = @GREP@
-HAVE_DECL_GETLOGIN_R = @HAVE_DECL_GETLOGIN_R@
-HAVE_DECL_IMAXABS = @HAVE_DECL_IMAXABS@
-HAVE_DECL_IMAXDIV = @HAVE_DECL_IMAXDIV@
-HAVE_DECL_MEMMEM = @HAVE_DECL_MEMMEM@
-HAVE_DECL_MEMRCHR = @HAVE_DECL_MEMRCHR@
-HAVE_DECL_SNPRINTF = @HAVE_DECL_SNPRINTF@
-HAVE_DECL_STRDUP = @HAVE_DECL_STRDUP@
-HAVE_DECL_STRNCASECMP = @HAVE_DECL_STRNCASECMP@
-HAVE_DECL_STRNDUP = @HAVE_DECL_STRNDUP@
-HAVE_DECL_STRNLEN = @HAVE_DECL_STRNLEN@
-HAVE_DECL_STRTOIMAX = @HAVE_DECL_STRTOIMAX@
-HAVE_DECL_STRTOK_R = @HAVE_DECL_STRTOK_R@
-HAVE_DECL_STRTOUMAX = @HAVE_DECL_STRTOUMAX@
-HAVE_DECL_VSNPRINTF = @HAVE_DECL_VSNPRINTF@
-HAVE_DUP2 = @HAVE_DUP2@
-HAVE_FTRUNCATE = @HAVE_FTRUNCATE@
-HAVE_GETSUBOPT = @HAVE_GETSUBOPT@
-HAVE_INTTYPES_H = @HAVE_INTTYPES_H@
-HAVE_LONG_LONG_INT = @HAVE_LONG_LONG_INT@
-HAVE_MEMPCPY = @HAVE_MEMPCPY@
-HAVE_MKDTEMP = @HAVE_MKDTEMP@
-HAVE_NETINET_IN_H = @HAVE_NETINET_IN_H@
-HAVE_READLINK = @HAVE_READLINK@
-HAVE_SIGNED_SIG_ATOMIC_T = @HAVE_SIGNED_SIG_ATOMIC_T@
-HAVE_SIGNED_WCHAR_T = @HAVE_SIGNED_WCHAR_T@
-HAVE_SIGNED_WINT_T = @HAVE_SIGNED_WINT_T@
-HAVE_STDINT_H = @HAVE_STDINT_H@
-HAVE_STPCPY = @HAVE_STPCPY@
-HAVE_STPNCPY = @HAVE_STPNCPY@
-HAVE_STRCASECMP = @HAVE_STRCASECMP@
-HAVE_STRCASESTR = @HAVE_STRCASESTR@
-HAVE_STRCHRNUL = @HAVE_STRCHRNUL@
-HAVE_STRNDUP = @HAVE_STRNDUP@
-HAVE_STRPBRK = @HAVE_STRPBRK@
-HAVE_STRSEP = @HAVE_STRSEP@
-HAVE_STRUCT_TIMEVAL = @HAVE_STRUCT_TIMEVAL@
-HAVE_SYS_BITYPES_H = @HAVE_SYS_BITYPES_H@
-HAVE_SYS_INTTYPES_H = @HAVE_SYS_INTTYPES_H@
-HAVE_SYS_SOCKET_H = @HAVE_SYS_SOCKET_H@
-HAVE_SYS_TIME_H = @HAVE_SYS_TIME_H@
-HAVE_SYS_TYPES_H = @HAVE_SYS_TYPES_H@
-HAVE_UNISTD_H = @HAVE_UNISTD_H@
-HAVE_UNSIGNED_LONG_LONG_INT = @HAVE_UNSIGNED_LONG_LONG_INT@
-HAVE_WCTYPE_H = @HAVE_WCTYPE_H@
-HAVE_WINSOCK2_H = @HAVE_WINSOCK2_H@
-HAVE_WINT_T = @HAVE_WINT_T@
-HAVE_WS2TCPIP_H = @HAVE_WS2TCPIP_H@
-HAVE__BOOL = @HAVE__BOOL@
-HELP2MAN = @HELP2MAN@
-INSTALL = @INSTALL@
-INSTALL_DATA = @INSTALL_DATA@
-INSTALL_PROGRAM = @INSTALL_PROGRAM@
-INSTALL_SCRIPT = @INSTALL_SCRIPT@
-INSTALL_STRIP_PROGRAM = @INSTALL_STRIP_PROGRAM@
-INTLLIBS = @INTLLIBS@
-INTL_MACOSX_LIBS = @INTL_MACOSX_LIBS@
-INTTYPES_H = @INTTYPES_H@
-KMEM_GROUP = @KMEM_GROUP@
-LDFLAGS = @LDFLAGS@
-LIBCOREUTILS_LIBDEPS = @LIBCOREUTILS_LIBDEPS@
-LIBCOREUTILS_LTLIBDEPS = @LIBCOREUTILS_LTLIBDEPS@
-LIBICONV = @LIBICONV@
-LIBINTL = @LIBINTL@
-LIBOBJS = @LIBOBJS@
-LIBS = @LIBS@
-LIB_ACL = @LIB_ACL@
-LIB_ACL_TRIVIAL = @LIB_ACL_TRIVIAL@
-LIB_CLOCK_GETTIME = @LIB_CLOCK_GETTIME@
-LIB_CRYPT = @LIB_CRYPT@
-LIB_EACCESS = @LIB_EACCESS@
-LIB_FDATASYNC = @LIB_FDATASYNC@
-LIB_GETHRXTIME = @LIB_GETHRXTIME@
-LIB_NANOSLEEP = @LIB_NANOSLEEP@
-LN_S = @LN_S@
-LTLIBICONV = @LTLIBICONV@
-LTLIBINTL = @LTLIBINTL@
-LTLIBOBJS = @LTLIBOBJS@
-MAKEINFO = @MAKEINFO@
-MAN = @MAN@
-MKDIR_P = @MKDIR_P@
-MSGFMT = @MSGFMT@
-MSGFMT_015 = @MSGFMT_015@
-MSGMERGE = @MSGMERGE@
-NEED_SETGID = @NEED_SETGID@
-NETINET_IN_H = @NETINET_IN_H@
-OBJEXT = @OBJEXT@
-OPTIONAL_BIN_PROGS = @OPTIONAL_BIN_PROGS@
-PACKAGE = @PACKAGE@
-PACKAGE_BUGREPORT = @PACKAGE_BUGREPORT@
-PACKAGE_NAME = @PACKAGE_NAME@
-PACKAGE_STRING = @PACKAGE_STRING@
-PACKAGE_TARNAME = @PACKAGE_TARNAME@
-PACKAGE_VERSION = @PACKAGE_VERSION@
-PATH_SEPARATOR = @PATH_SEPARATOR@
-PERL = @PERL@
-POSUB = @POSUB@
-POW_LIB = @POW_LIB@
-PRIPTR_PREFIX = @PRIPTR_PREFIX@
-PRI_MACROS_BROKEN = @PRI_MACROS_BROKEN@
-PTRDIFF_T_SUFFIX = @PTRDIFF_T_SUFFIX@
-RANLIB = @RANLIB@
-REPLACE_CHOWN = @REPLACE_CHOWN@
-REPLACE_FCHDIR = @REPLACE_FCHDIR@
-REPLACE_FPRINTF = @REPLACE_FPRINTF@
-REPLACE_GETCWD = @REPLACE_GETCWD@
-REPLACE_GETTIMEOFDAY = @REPLACE_GETTIMEOFDAY@
-REPLACE_LOCALTIME_R = @REPLACE_LOCALTIME_R@
-REPLACE_MKSTEMP = @REPLACE_MKSTEMP@
-REPLACE_NANOSLEEP = @REPLACE_NANOSLEEP@
-REPLACE_PRINTF = @REPLACE_PRINTF@
-REPLACE_SNPRINTF = @REPLACE_SNPRINTF@
-REPLACE_SPRINTF = @REPLACE_SPRINTF@
-REPLACE_STRPTIME = @REPLACE_STRPTIME@
-REPLACE_TIMEGM = @REPLACE_TIMEGM@
-REPLACE_VFPRINTF = @REPLACE_VFPRINTF@
-REPLACE_VPRINTF = @REPLACE_VPRINTF@
-REPLACE_VSNPRINTF = @REPLACE_VSNPRINTF@
-REPLACE_VSPRINTF = @REPLACE_VSPRINTF@
-SEQ_LIBM = @SEQ_LIBM@
-SET_MAKE = @SET_MAKE@
-SHELL = @SHELL@
-SIG_ATOMIC_T_SUFFIX = @SIG_ATOMIC_T_SUFFIX@
-SIZE_T_SUFFIX = @SIZE_T_SUFFIX@
-STDBOOL_H = @STDBOOL_H@
-STDINT_H = @STDINT_H@
-STRIP = @STRIP@
-SYS_SOCKET_H = @SYS_SOCKET_H@
-SYS_STAT_H = @SYS_STAT_H@
-SYS_TIME_H = @SYS_TIME_H@
-SYS_TIME_H_DEFINES_STRUCT_TIMESPEC = @SYS_TIME_H_DEFINES_STRUCT_TIMESPEC@
-TIME_H_DEFINES_STRUCT_TIMESPEC = @TIME_H_DEFINES_STRUCT_TIMESPEC@
-U = @U@
-USE_NLS = @USE_NLS@
-VERSION = @VERSION@
-WCHAR_H = @WCHAR_H@
-WCHAR_T_SUFFIX = @WCHAR_T_SUFFIX@
-WCTYPE_H = @WCTYPE_H@
-WINT_T_SUFFIX = @WINT_T_SUFFIX@
-XGETTEXT = @XGETTEXT@
-XGETTEXT_015 = @XGETTEXT_015@
-YACC = @YACC@
-YFLAGS = @YFLAGS@
-abs_builddir = @abs_builddir@
-abs_srcdir = @abs_srcdir@
-abs_top_builddir = @abs_top_builddir@
-abs_top_srcdir = @abs_top_srcdir@
-ac_ct_CC = @ac_ct_CC@
-am__include = @am__include@
-am__leading_dot = @am__leading_dot@
-am__quote = @am__quote@
-am__tar = @am__tar@
-am__untar = @am__untar@
-bindir = @bindir@
-build = @build@
-build_alias = @build_alias@
-build_cpu = @build_cpu@
-build_os = @build_os@
-build_vendor = @build_vendor@
-builddir = @builddir@
-datadir = @datadir@
-datarootdir = @datarootdir@
-docdir = @docdir@
-dvidir = @dvidir@
-exec_prefix = @exec_prefix@
-gl_LIBOBJS = @gl_LIBOBJS@
-gl_LTLIBOBJS = @gl_LTLIBOBJS@
-host = @host@
-host_alias = @host_alias@
-host_cpu = @host_cpu@
-host_os = @host_os@
-host_vendor = @host_vendor@
-htmldir = @htmldir@
-includedir = @includedir@
-infodir = @infodir@
-install_sh = @install_sh@
-libdir = @libdir@
-libexecdir = @libexecdir@
-localedir = @localedir@
-localstatedir = @localstatedir@
-mandir = @mandir@
-mkdir_p = @mkdir_p@
-oldincludedir = @oldincludedir@
-pdfdir = @pdfdir@
-prefix = @prefix@
-program_transform_name = @program_transform_name@
-psdir = @psdir@
-sbindir = @sbindir@
-sharedstatedir = @sharedstatedir@
-srcdir = @srcdir@
-sysconfdir = @sysconfdir@
-target_alias = @target_alias@
-top_builddir = @top_builddir@
-top_srcdir = @top_srcdir@
-TESTS = fail-perm ignore t-slash
-EXTRA_DIST = $(TESTS)
-TESTS_ENVIRONMENT = \
- top_srcdir=$(top_srcdir) \
- srcdir=$(srcdir) \
- PERL="$(PERL)" \
- CU_TEST_NAME=`basename $(abs_srcdir)`,$$tst \
- PATH="$(VG_PATH_PREFIX)`pwd`/../../src$(PATH_SEPARATOR)$$PATH" \
- PROG=rmdir
-
-all: all-am
-
-.SUFFIXES:
-$(srcdir)/Makefile.in: $(srcdir)/Makefile.am $(am__configure_deps)
- @for dep in $?; do \
- case '$(am__configure_deps)' in \
- *$$dep*) \
- cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh \
- && exit 0; \
- exit 1;; \
- esac; \
- done; \
- echo ' cd $(top_srcdir) && $(AUTOMAKE) --gnu tests/rmdir/Makefile'; \
- cd $(top_srcdir) && \
- $(AUTOMAKE) --gnu tests/rmdir/Makefile
-.PRECIOUS: Makefile
-Makefile: $(srcdir)/Makefile.in $(top_builddir)/config.status
- @case '$?' in \
- *config.status*) \
- cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh;; \
- *) \
- echo ' cd $(top_builddir) && $(SHELL) ./config.status $(subdir)/$@ $(am__depfiles_maybe)'; \
- cd $(top_builddir) && $(SHELL) ./config.status $(subdir)/$@ $(am__depfiles_maybe);; \
- esac;
-
-$(top_builddir)/config.status: $(top_srcdir)/configure $(CONFIG_STATUS_DEPENDENCIES)
- cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh
-
-$(top_srcdir)/configure: $(am__configure_deps)
- cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh
-$(ACLOCAL_M4): $(am__aclocal_m4_deps)
- cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh
-tags: TAGS
-TAGS:
-
-ctags: CTAGS
-CTAGS:
-
-
-check-TESTS: $(TESTS)
- @failed=0; all=0; xfail=0; xpass=0; skip=0; ws='[ ]'; \
- srcdir=$(srcdir); export srcdir; \
- list=' $(TESTS) '; \
- if test -n "$$list"; then \
- for tst in $$list; do \
- if test -f ./$$tst; then dir=./; \
- elif test -f $$tst; then dir=; \
- else dir="$(srcdir)/"; fi; \
- if $(TESTS_ENVIRONMENT) $${dir}$$tst; then \
- all=`expr $$all + 1`; \
- case " $(XFAIL_TESTS) " in \
- *$$ws$$tst$$ws*) \
- xpass=`expr $$xpass + 1`; \
- failed=`expr $$failed + 1`; \
- echo "XPASS: $$tst"; \
- ;; \
- *) \
- echo "PASS: $$tst"; \
- ;; \
- esac; \
- elif test $$? -ne 77; then \
- all=`expr $$all + 1`; \
- case " $(XFAIL_TESTS) " in \
- *$$ws$$tst$$ws*) \
- xfail=`expr $$xfail + 1`; \
- echo "XFAIL: $$tst"; \
- ;; \
- *) \
- failed=`expr $$failed + 1`; \
- echo "FAIL: $$tst"; \
- ;; \
- esac; \
- else \
- skip=`expr $$skip + 1`; \
- echo "SKIP: $$tst"; \
- fi; \
- done; \
- if test "$$failed" -eq 0; then \
- if test "$$xfail" -eq 0; then \
- banner="All $$all tests passed"; \
- else \
- banner="All $$all tests behaved as expected ($$xfail expected failures)"; \
- fi; \
- else \
- if test "$$xpass" -eq 0; then \
- banner="$$failed of $$all tests failed"; \
- else \
- banner="$$failed of $$all tests did not behave as expected ($$xpass unexpected passes)"; \
- fi; \
- fi; \
- dashes="$$banner"; \
- skipped=""; \
- if test "$$skip" -ne 0; then \
- skipped="($$skip tests were not run)"; \
- test `echo "$$skipped" | wc -c` -le `echo "$$banner" | wc -c` || \
- dashes="$$skipped"; \
- fi; \
- report=""; \
- if test "$$failed" -ne 0 && test -n "$(PACKAGE_BUGREPORT)"; then \
- report="Please report to $(PACKAGE_BUGREPORT)"; \
- test `echo "$$report" | wc -c` -le `echo "$$banner" | wc -c` || \
- dashes="$$report"; \
- fi; \
- dashes=`echo "$$dashes" | sed s/./=/g`; \
- echo "$$dashes"; \
- echo "$$banner"; \
- test -z "$$skipped" || echo "$$skipped"; \
- test -z "$$report" || echo "$$report"; \
- echo "$$dashes"; \
- test "$$failed" -eq 0; \
- else :; fi
-
-distdir: $(DISTFILES)
- @srcdirstrip=`echo "$(srcdir)" | sed 's/[].[^$$\\*]/\\\\&/g'`; \
- topsrcdirstrip=`echo "$(top_srcdir)" | sed 's/[].[^$$\\*]/\\\\&/g'`; \
- list='$(DISTFILES)'; \
- dist_files=`for file in $$list; do echo $$file; done | \
- sed -e "s|^$$srcdirstrip/||;t" \
- -e "s|^$$topsrcdirstrip/|$(top_builddir)/|;t"`; \
- case $$dist_files in \
- */*) $(MKDIR_P) `echo "$$dist_files" | \
- sed '/\//!d;s|^|$(distdir)/|;s,/[^/]*$$,,' | \
- sort -u` ;; \
- esac; \
- for file in $$dist_files; do \
- if test -f $$file || test -d $$file; then d=.; else d=$(srcdir); fi; \
- if test -d $$d/$$file; then \
- dir=`echo "/$$file" | sed -e 's,/[^/]*$$,,'`; \
- if test -d $(srcdir)/$$file && test $$d != $(srcdir); then \
- cp -pR $(srcdir)/$$file $(distdir)$$dir || exit 1; \
- fi; \
- cp -pR $$d/$$file $(distdir)$$dir || exit 1; \
- else \
- test -f $(distdir)/$$file \
- || cp -p $$d/$$file $(distdir)/$$file \
- || exit 1; \
- fi; \
- done
-check-am: all-am
- $(MAKE) $(AM_MAKEFLAGS) check-TESTS
-check: check-am
-all-am: Makefile
-installdirs:
-install: install-am
-install-exec: install-exec-am
-install-data: install-data-am
-uninstall: uninstall-am
-
-install-am: all-am
- @$(MAKE) $(AM_MAKEFLAGS) install-exec-am install-data-am
-
-installcheck: installcheck-am
-install-strip:
- $(MAKE) $(AM_MAKEFLAGS) INSTALL_PROGRAM="$(INSTALL_STRIP_PROGRAM)" \
- install_sh_PROGRAM="$(INSTALL_STRIP_PROGRAM)" INSTALL_STRIP_FLAG=-s \
- `test -z '$(STRIP)' || \
- echo "INSTALL_PROGRAM_ENV=STRIPPROG='$(STRIP)'"` install
-mostlyclean-generic:
-
-clean-generic:
-
-distclean-generic:
- -test -z "$(CONFIG_CLEAN_FILES)" || rm -f $(CONFIG_CLEAN_FILES)
-
-maintainer-clean-generic:
- @echo "This command is intended for maintainers to use"
- @echo "it deletes files that may require special tools to rebuild."
-clean: clean-am
-
-clean-am: clean-generic mostlyclean-am
-
-distclean: distclean-am
- -rm -f Makefile
-distclean-am: clean-am distclean-generic
-
-dvi: dvi-am
-
-dvi-am:
-
-html: html-am
-
-info: info-am
-
-info-am:
-
-install-data-am:
-
-install-dvi: install-dvi-am
-
-install-exec-am:
-
-install-html: install-html-am
-
-install-info: install-info-am
-
-install-man:
-
-install-pdf: install-pdf-am
-
-install-ps: install-ps-am
-
-installcheck-am:
-
-maintainer-clean: maintainer-clean-am
- -rm -f Makefile
-maintainer-clean-am: distclean-am maintainer-clean-generic
-
-mostlyclean: mostlyclean-am
-
-mostlyclean-am: mostlyclean-generic
-
-pdf: pdf-am
-
-pdf-am:
-
-ps: ps-am
-
-ps-am:
-
-uninstall-am:
-
-.MAKE: install-am install-strip
-
-.PHONY: all all-am check check-TESTS check-am clean clean-generic \
- distclean distclean-generic distdir dvi dvi-am html html-am \
- info info-am install install-am install-data install-data-am \
- install-dvi install-dvi-am install-exec install-exec-am \
- install-html install-html-am install-info install-info-am \
- install-man install-pdf install-pdf-am install-ps \
- install-ps-am install-strip installcheck installcheck-am \
- installdirs maintainer-clean maintainer-clean-generic \
- mostlyclean mostlyclean-generic pdf pdf-am ps ps-am uninstall \
- uninstall-am
-
-# Tell versions [3.59,3.63) of GNU make to not export all variables.
-# Otherwise a system limit (for SysV at least) may be exceeded.
-.NOEXPORT:
diff --git a/tests/rmdir/fail-perm b/tests/rmdir/fail-perm
deleted file mode 100755
index 3b4440f..0000000
--- a/tests/rmdir/fail-perm
+++ /dev/null
@@ -1,52 +0,0 @@
-#!/bin/sh
-# For unwritable directory `d', `rmdir -p d d/e/f' would emit
-# diagnostics but would not fail. Fixed in 5.1.2.
-
-# Copyright (C) 2004, 2006 Free Software Foundation, Inc.
-
-# This program is free software; you can redistribute it and/or modify
-# it under the terms of the GNU General Public License as published by
-# the Free Software Foundation; either version 2 of the License, or
-# (at your option) any later version.
-
-# This program is distributed in the hope that it will be useful,
-# but WITHOUT ANY WARRANTY; without even the implied warranty of
-# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
-# GNU General Public License for more details.
-
-# You should have received a copy of the GNU General Public License
-# along with this program; if not, write to the Free Software
-# Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA
-# 02110-1301, USA.
-
-if test "$VERBOSE" = yes; then
- set -x
- rmdir --version
-fi
-
-PRIV_CHECK_ARG=require-non-root . $srcdir/../priv-check
-
-pwd=`pwd`
-t0=`echo "$0"|sed 's,.*/,,'`.tmp; tmp=$t0/$$
-trap 'status=$?; cd "$pwd" && chmod -R u+rwx $t0 && rm -rf $t0 && exit $status' 0
-trap '(exit $?); exit $?' 1 2 13 15
-
-framework_failure=0
-mkdir -p $tmp || framework_failure=1
-cd $tmp || framework_failure=1
-mkdir d d/e d/e/f || framework_failure=1
-chmod a-w d || framework_failure=1
-
-if test $framework_failure = 1; then
- echo "$0: failure in testing framework" 1>&2
- (exit 1); exit 1
-fi
-
-fail=0
-
-# This rmdir command outputs two diagnostics.
-# Before coreutils-5.1.2, it would mistakenly exit successfully.
-# As of coreutils-5.1.2, it fails, as required.
-rmdir -p d d/e/f 2> /dev/null && fail=1
-
-(exit $fail); exit $fail
diff --git a/tests/rmdir/fail-perm.sh b/tests/rmdir/fail-perm.sh
new file mode 100755
index 0000000..d1c60e7
--- /dev/null
+++ b/tests/rmdir/fail-perm.sh
@@ -0,0 +1,32 @@
+#!/bin/sh
+# For unwritable directory 'd', 'rmdir -p d d/e/f' would emit
+# diagnostics but would not fail. Fixed in 5.1.2.
+
+# Copyright (C) 2004-2016 Free Software Foundation, Inc.
+
+# This program is free software: you can redistribute it and/or modify
+# it under the terms of the GNU General Public License as published by
+# the Free Software Foundation, either version 3 of the License, or
+# (at your option) any later version.
+
+# This program is distributed in the hope that it will be useful,
+# but WITHOUT ANY WARRANTY; without even the implied warranty of
+# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
+# GNU General Public License for more details.
+
+# You should have received a copy of the GNU General Public License
+# along with this program. If not, see <http://www.gnu.org/licenses/>.
+
+. "${srcdir=.}/tests/init.sh"; path_prepend_ ./src
+print_ver_ rmdir
+
+mkdir d d/e d/e/f || framework_failure_
+chmod a-w d || framework_failure_
+
+
+# This rmdir command outputs two diagnostics.
+# Before coreutils-5.1.2, it would mistakenly exit successfully.
+# As of coreutils-5.1.2, it fails, as required.
+returns_ 1 rmdir -p d d/e/f 2> /dev/null || fail=1
+
+Exit $fail
diff --git a/tests/rmdir/ignore b/tests/rmdir/ignore
deleted file mode 100755
index ba6db02..0000000
--- a/tests/rmdir/ignore
+++ /dev/null
@@ -1,45 +0,0 @@
-#!/bin/sh
-# make sure rmdir's --ignore-fail-on-non-empty option works
-
-# Copyright (C) 1999 Free Software Foundation, Inc.
-
-# This program is free software; you can redistribute it and/or modify
-# it under the terms of the GNU General Public License as published by
-# the Free Software Foundation; either version 2 of the License, or
-# (at your option) any later version.
-
-# This program is distributed in the hope that it will be useful,
-# but WITHOUT ANY WARRANTY; without even the implied warranty of
-# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
-# GNU General Public License for more details.
-
-# You should have received a copy of the GNU General Public License
-# along with this program; if not, write to the Free Software
-# Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA
-# 02110-1301, USA.
-
-if test "$VERBOSE" = yes; then
- set -x
- rmdir --version
-fi
-
-tmp=rmdir.$$
-trap "rm -rf $tmp" 0 1 2 3 15
-
-test_failure=0
-mkdir -p $tmp/a/b $tmp/x || test_failure=1
-
-if test $test_failure = 1; then
- echo "$0: failure in testing framework" 1>&2
- exit 1
-fi
-
-fail=0
-rmdir -p --ignore-fail-on-non-empty $tmp/a/b || fail=1
-# $tmp/x should remain
-test -d $tmp/x || fail=1
-# $tmp/{a,b} should be gone
-test -d $tmp/a && fail=1
-test -d $tmp/a/b && fail=1
-
-exit $fail
diff --git a/tests/rmdir/ignore.sh b/tests/rmdir/ignore.sh
new file mode 100755
index 0000000..4323037
--- /dev/null
+++ b/tests/rmdir/ignore.sh
@@ -0,0 +1,32 @@
+#!/bin/sh
+# make sure rmdir's --ignore-fail-on-non-empty option works
+
+# Copyright (C) 1999-2016 Free Software Foundation, Inc.
+
+# This program is free software: you can redistribute it and/or modify
+# it under the terms of the GNU General Public License as published by
+# the Free Software Foundation, either version 3 of the License, or
+# (at your option) any later version.
+
+# This program is distributed in the hope that it will be useful,
+# but WITHOUT ANY WARRANTY; without even the implied warranty of
+# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
+# GNU General Public License for more details.
+
+# You should have received a copy of the GNU General Public License
+# along with this program. If not, see <http://www.gnu.org/licenses/>.
+
+. "${srcdir=.}/tests/init.sh"; path_prepend_ ./src
+print_ver_ rmdir
+
+cwd=$(pwd)
+mkdir -p "$cwd/a/b/c" "$cwd/a/x" || framework_failure_
+
+rmdir -p --ignore-fail-on-non-empty "$cwd/a/b/c" || fail=1
+# $cwd/a/x should remain
+test -d "$cwd/a/x" || fail=1
+# $cwd/a/b and $cwd/a/b/c should be gone
+test -d "$cwd/a/b" && fail=1
+test -d "$cwd/a/b/c" && fail=1
+
+Exit $fail
diff --git a/tests/rmdir/t-slash b/tests/rmdir/t-slash
deleted file mode 100755
index e81c4db..0000000
--- a/tests/rmdir/t-slash
+++ /dev/null
@@ -1,47 +0,0 @@
-#!/bin/sh
-# make sure rmdir -p works on a directory specified with a trailing slash
-
-# Copyright (C) 2002, 2006 Free Software Foundation, Inc.
-
-# This program is free software; you can redistribute it and/or modify
-# it under the terms of the GNU General Public License as published by
-# the Free Software Foundation; either version 2 of the License, or
-# (at your option) any later version.
-
-# This program is distributed in the hope that it will be useful,
-# but WITHOUT ANY WARRANTY; without even the implied warranty of
-# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
-# GNU General Public License for more details.
-
-# You should have received a copy of the GNU General Public License
-# along with this program; if not, write to the Free Software
-# Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA
-# 02110-1301, USA.
-
-if test "$VERBOSE" = yes; then
- set -x
- rmdir --version
-fi
-
-pwd=`pwd`
-t0=`echo "$0"|sed 's,.*/,,'`.tmp; tmp=$t0/$$
-trap 'status=$?; cd "$pwd" && chmod -R u+rwx $t0 && rm -rf $t0 && exit $status' 0
-trap '(exit $?); exit $?' 1 2 13 15
-
-framework_failure=0
-mkdir -p $tmp || framework_failure=1
-cd $tmp || framework_failure=1
-mkdir dir || framework_failure=1
-
-if test $framework_failure = 1; then
- echo "$0: failure in testing framework" 1>&2
- (exit 1); exit 1
-fi
-
-fail=0
-
-# Prior to coreutils-4.5.2, this would fail with the following:
-# rmdir: `dir': No such file or directory
-rmdir -p dir/ || fail=1
-
-(exit $fail); exit $fail
diff --git a/tests/rmdir/t-slash.sh b/tests/rmdir/t-slash.sh
new file mode 100755
index 0000000..7c8ae80
--- /dev/null
+++ b/tests/rmdir/t-slash.sh
@@ -0,0 +1,29 @@
+#!/bin/sh
+# make sure rmdir -p works on a directory specified with a trailing slash
+
+# Copyright (C) 2002-2016 Free Software Foundation, Inc.
+
+# This program is free software: you can redistribute it and/or modify
+# it under the terms of the GNU General Public License as published by
+# the Free Software Foundation, either version 3 of the License, or
+# (at your option) any later version.
+
+# This program is distributed in the hope that it will be useful,
+# but WITHOUT ANY WARRANTY; without even the implied warranty of
+# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
+# GNU General Public License for more details.
+
+# You should have received a copy of the GNU General Public License
+# along with this program. If not, see <http://www.gnu.org/licenses/>.
+
+. "${srcdir=.}/tests/init.sh"; path_prepend_ ./src
+print_ver_ rmdir
+
+mkdir dir || framework_failure_
+
+
+# Prior to coreutils-4.5.2, this would fail with the following:
+# rmdir: 'dir': No such file or directory
+rmdir -p dir/ || fail=1
+
+Exit $fail
diff --git a/tests/rwx-to-mode b/tests/rwx-to-mode
deleted file mode 100755
index fbeb670..0000000
--- a/tests/rwx-to-mode
+++ /dev/null
@@ -1,49 +0,0 @@
-#!/bin/sh
-# Convert an ls-style permission string, like drwxr----x and -rw-r-x-wx
-# to the equivalent chmod --mode (-m) argument, (=,u=rwx,g=r,o=x and
-# =,u=rw,g=rx,o=wx). Ignore ACLs.
-
-# Copyright (C) 2000, 2005 Free Software Foundation, Inc.
-
-# This program is free software; you can redistribute it and/or modify
-# it under the terms of the GNU General Public License as published by
-# the Free Software Foundation; either version 2 of the License, or
-# (at your option) any later version.
-
-# This program is distributed in the hope that it will be useful,
-# but WITHOUT ANY WARRANTY; without even the implied warranty of
-# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
-# GNU General Public License for more details.
-
-# You should have received a copy of the GNU General Public License
-# along with this program; if not, write to the Free Software
-# Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA
-# 02110-1301, USA.
-
-case $# in
- 1) rwx=$1;;
- *) echo "$0: wrong number of arguments" 1>&2
- echo "Usage: $0 ls-style-mode-string" 1>&2
- exit 1;;
-esac
-
-case $rwx in
- [ld-][rwx-][rwx-][rwxsS-][rwx-][rwx-][rwxsS-][rwx-][rwx-][rwxtT-]) ;;
- [ld-][rwx-][rwx-][rwxsS-][rwx-][rwx-][rwxsS-][rwx-][rwx-][rwxtT-]+) ;;
- *) echo "$0: invalid mode string: $rwx" 1>&2; exit 1;;
-esac
-
-# Perform these conversions:
-# S s
-# s xs
-# T t
-# t xt
-# The `T' and `t' ones are only valid for `other'.
-s='s/S/@/;s/s/x@/;s/@/s/'
-t='s/T/@/;s/t/x@/;s/@/t/'
-
-u=`echo $rwx|sed 's/^.\(...\).*/,u=\1/;s/-//g;s/^,u=$//;'$s`
-g=`echo $rwx|sed 's/^....\(...\).*/,g=\1/;s/-//g;s/^,g=$//;'$s`
-o=`echo $rwx|sed 's/^.......\(...\).*/,o=\1/;s/-//g;s/^,o=$//;'$s';'$t`
-echo "=$u$g$o"
-exit 0
diff --git a/tests/sample-test b/tests/sample-test
index 87e16ff..609c7bb 100644
--- a/tests/sample-test
+++ b/tests/sample-test
@@ -1,11 +1,11 @@
#!/bin/sh
# FIXME
-# Copyright (C) 2007 Free Software Foundation, Inc.
+# Copyright (C) 2016 Free Software Foundation, Inc.
-# This program is free software; you can redistribute it and/or modify
+# This program is free software: you can redistribute it and/or modify
# it under the terms of the GNU General Public License as published by
-# the Free Software Foundation; either version 2 of the License, or
+# the Free Software Foundation, either version 3 of the License, or
# (at your option) any later version.
# This program is distributed in the hope that it will be useful,
@@ -14,42 +14,23 @@
# GNU General Public License for more details.
# You should have received a copy of the GNU General Public License
-# along with this program; if not, write to the Free Software
-# Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA
-# 02110-1301, USA.
+# along with this program. If not, see <http://www.gnu.org/licenses/>.
-if test "$VERBOSE" = yes; then
- set -x
- FIXME --version
-fi
+. "${srcdir=.}/tests/init.sh"; path_prepend_ ./src
+print_ver_ FIXME
-# FIXME: . $srcdir/../envvar-check
-# FIXME: . $srcdir/../lang-default
-# FIXME: PRIV_CHECK_ARG=require-root . $srcdir/../priv-check
-# FIXME: PRIV_CHECK_ARG=require-non-root . $srcdir/../priv-check
+# FIXME: skip_if_root_
+# FIXME: require_root_
-pwd=`pwd`
-t0=`echo "$0"|sed 's,.*/,,'`.tmp; tmp=$t0/$$
-trap 'status=$?; cd "$pwd" && chmod -R u+rwx $t0 && rm -rf $t0 && exit $status' 0
-trap '(exit $?); exit $?' 1 2 13 15
-
-framework_failure=0
-mkdir -p $tmp || framework_failure=1
-cd $tmp || framework_failure=1
-
-if test $framework_failure = 1; then
- echo "$0: failure in testing framework" 1>&2
- (exit 1); exit 1
-fi
-
-fail=0
+# If used, these must *follow* init.sh.
+# FIXME: cleanup_() { rm -rf "$other_partition_tmpdir"; }
+# FIXME: . "$abs_srcdir/tests/other-fs-tmpdir"
FIXME > out || fail=1
cat <<\EOF > exp || fail=1
FIXME
EOF
-cmp out exp || fail=1
-test $fail = 1 && diff out exp 2> /dev/null
+compare exp out || fail=1
-(exit $fail); exit $fail
+Exit $fail
diff --git a/tests/seq/Makefile.am b/tests/seq/Makefile.am
deleted file mode 100644
index 7463a5d..0000000
--- a/tests/seq/Makefile.am
+++ /dev/null
@@ -1,10 +0,0 @@
-## Process this file with automake to produce Makefile.in -*-Makefile-*-.
-TESTS = basic
-EXTRA_DIST = $(TESTS)
-TESTS_ENVIRONMENT = \
- top_srcdir=$(top_srcdir) \
- srcdir=$(srcdir) \
- PERL="$(PERL)" \
- CU_TEST_NAME=`basename $(abs_srcdir)`,$$tst \
- PATH="$(VG_PATH_PREFIX)`pwd`/../../src$(PATH_SEPARATOR)$$PATH" \
- PROG=seq
diff --git a/tests/seq/Makefile.in b/tests/seq/Makefile.in
deleted file mode 100644
index 056150e..0000000
--- a/tests/seq/Makefile.in
+++ /dev/null
@@ -1,720 +0,0 @@
-# Makefile.in generated by automake 1.10 from Makefile.am.
-# @configure_input@
-
-# Copyright (C) 1994, 1995, 1996, 1997, 1998, 1999, 2000, 2001, 2002,
-# 2003, 2004, 2005, 2006 Free Software Foundation, Inc.
-# This Makefile.in is free software; the Free Software Foundation
-# gives unlimited permission to copy and/or distribute it,
-# with or without modifications, as long as this notice is preserved.
-
-# This program is distributed in the hope that it will be useful,
-# but WITHOUT ANY WARRANTY, to the extent permitted by law; without
-# even the implied warranty of MERCHANTABILITY or FITNESS FOR A
-# PARTICULAR PURPOSE.
-
-@SET_MAKE@
-VPATH = @srcdir@
-pkgdatadir = $(datadir)/@PACKAGE@
-pkglibdir = $(libdir)/@PACKAGE@
-pkgincludedir = $(includedir)/@PACKAGE@
-am__cd = CDPATH="$${ZSH_VERSION+.}$(PATH_SEPARATOR)" && cd
-install_sh_DATA = $(install_sh) -c -m 644
-install_sh_PROGRAM = $(install_sh) -c
-install_sh_SCRIPT = $(install_sh) -c
-INSTALL_HEADER = $(INSTALL_DATA)
-transform = $(program_transform_name)
-NORMAL_INSTALL = :
-PRE_INSTALL = :
-POST_INSTALL = :
-NORMAL_UNINSTALL = :
-PRE_UNINSTALL = :
-POST_UNINSTALL = :
-build_triplet = @build@
-host_triplet = @host@
-subdir = tests/seq
-DIST_COMMON = $(srcdir)/Makefile.am $(srcdir)/Makefile.in
-ACLOCAL_M4 = $(top_srcdir)/aclocal.m4
-am__aclocal_m4_deps = $(top_srcdir)/m4/absolute-header.m4 \
- $(top_srcdir)/m4/acl.m4 $(top_srcdir)/m4/alloca.m4 \
- $(top_srcdir)/m4/allocsa.m4 $(top_srcdir)/m4/argmatch.m4 \
- $(top_srcdir)/m4/arpa_inet_h.m4 $(top_srcdir)/m4/assert.m4 \
- $(top_srcdir)/m4/atexit.m4 $(top_srcdir)/m4/autobuild.m4 \
- $(top_srcdir)/m4/backupfile.m4 $(top_srcdir)/m4/base64.m4 \
- $(top_srcdir)/m4/bison.m4 $(top_srcdir)/m4/boottime.m4 \
- $(top_srcdir)/m4/c-strtod.m4 $(top_srcdir)/m4/calloc.m4 \
- $(top_srcdir)/m4/canon-host.m4 \
- $(top_srcdir)/m4/canonicalize.m4 \
- $(top_srcdir)/m4/chdir-long.m4 $(top_srcdir)/m4/check-decl.m4 \
- $(top_srcdir)/m4/chown.m4 $(top_srcdir)/m4/clock_time.m4 \
- $(top_srcdir)/m4/cloexec.m4 $(top_srcdir)/m4/close-stream.m4 \
- $(top_srcdir)/m4/closeout.m4 $(top_srcdir)/m4/codeset.m4 \
- $(top_srcdir)/m4/config-h.m4 $(top_srcdir)/m4/cycle-check.m4 \
- $(top_srcdir)/m4/d-ino.m4 $(top_srcdir)/m4/d-type.m4 \
- $(top_srcdir)/m4/dirfd.m4 $(top_srcdir)/m4/dirname.m4 \
- $(top_srcdir)/m4/dos.m4 $(top_srcdir)/m4/double-slash-root.m4 \
- $(top_srcdir)/m4/dup2.m4 $(top_srcdir)/m4/eealloc.m4 \
- $(top_srcdir)/m4/eoverflow.m4 $(top_srcdir)/m4/error.m4 \
- $(top_srcdir)/m4/euidaccess-stat.m4 \
- $(top_srcdir)/m4/euidaccess.m4 $(top_srcdir)/m4/exclude.m4 \
- $(top_srcdir)/m4/exitfail.m4 $(top_srcdir)/m4/extensions.m4 \
- $(top_srcdir)/m4/fchdir.m4 $(top_srcdir)/m4/fcntl-safer.m4 \
- $(top_srcdir)/m4/fcntl_h.m4 $(top_srcdir)/m4/fd-reopen.m4 \
- $(top_srcdir)/m4/file-type.m4 $(top_srcdir)/m4/fileblocks.m4 \
- $(top_srcdir)/m4/filemode.m4 $(top_srcdir)/m4/filenamecat.m4 \
- $(top_srcdir)/m4/flexmember.m4 $(top_srcdir)/m4/fnmatch.m4 \
- $(top_srcdir)/m4/fpending.m4 $(top_srcdir)/m4/fprintftime.m4 \
- $(top_srcdir)/m4/free.m4 $(top_srcdir)/m4/fstypename.m4 \
- $(top_srcdir)/m4/fsusage.m4 $(top_srcdir)/m4/ftruncate.m4 \
- $(top_srcdir)/m4/fts.m4 $(top_srcdir)/m4/getaddrinfo.m4 \
- $(top_srcdir)/m4/getcwd-abort-bug.m4 \
- $(top_srcdir)/m4/getcwd-path-max.m4 $(top_srcdir)/m4/getcwd.m4 \
- $(top_srcdir)/m4/getdate.m4 $(top_srcdir)/m4/getdelim.m4 \
- $(top_srcdir)/m4/getgroups.m4 $(top_srcdir)/m4/gethostname.m4 \
- $(top_srcdir)/m4/gethrxtime.m4 $(top_srcdir)/m4/getline.m4 \
- $(top_srcdir)/m4/getloadavg.m4 $(top_srcdir)/m4/getndelim2.m4 \
- $(top_srcdir)/m4/getopt.m4 $(top_srcdir)/m4/getpagesize.m4 \
- $(top_srcdir)/m4/getpass.m4 $(top_srcdir)/m4/gettext.m4 \
- $(top_srcdir)/m4/gettime.m4 $(top_srcdir)/m4/gettimeofday.m4 \
- $(top_srcdir)/m4/getugroups.m4 \
- $(top_srcdir)/m4/getusershell.m4 $(top_srcdir)/m4/glibc21.m4 \
- $(top_srcdir)/m4/gnulib-common.m4 \
- $(top_srcdir)/m4/gnulib-comp.m4 \
- $(top_srcdir)/m4/group-member.m4 \
- $(top_srcdir)/m4/hard-locale.m4 $(top_srcdir)/m4/hash.m4 \
- $(top_srcdir)/m4/host-os.m4 $(top_srcdir)/m4/human.m4 \
- $(top_srcdir)/m4/i-ring.m4 $(top_srcdir)/m4/iconv.m4 \
- $(top_srcdir)/m4/idcache.m4 $(top_srcdir)/m4/inet_ntop.m4 \
- $(top_srcdir)/m4/inline.m4 $(top_srcdir)/m4/intmax_t.m4 \
- $(top_srcdir)/m4/inttostr.m4 $(top_srcdir)/m4/inttypes-pri.m4 \
- $(top_srcdir)/m4/inttypes.m4 $(top_srcdir)/m4/inttypes_h.m4 \
- $(top_srcdir)/m4/isapipe.m4 $(top_srcdir)/m4/jm-macros.m4 \
- $(top_srcdir)/m4/jm-winsz1.m4 $(top_srcdir)/m4/jm-winsz2.m4 \
- $(top_srcdir)/m4/lchmod.m4 $(top_srcdir)/m4/lchown.m4 \
- $(top_srcdir)/m4/lib-check.m4 $(top_srcdir)/m4/lib-ignore.m4 \
- $(top_srcdir)/m4/lib-ld.m4 $(top_srcdir)/m4/lib-link.m4 \
- $(top_srcdir)/m4/lib-prefix.m4 $(top_srcdir)/m4/link-follow.m4 \
- $(top_srcdir)/m4/localcharset.m4 \
- $(top_srcdir)/m4/long-options.m4 \
- $(top_srcdir)/m4/longdouble.m4 $(top_srcdir)/m4/longlong.m4 \
- $(top_srcdir)/m4/ls-mntd-fs.m4 $(top_srcdir)/m4/lstat.m4 \
- $(top_srcdir)/m4/mbchar.m4 $(top_srcdir)/m4/mbiter.m4 \
- $(top_srcdir)/m4/mbrtowc.m4 $(top_srcdir)/m4/mbscasecmp.m4 \
- $(top_srcdir)/m4/mbstate_t.m4 $(top_srcdir)/m4/mbswidth.m4 \
- $(top_srcdir)/m4/md5.m4 $(top_srcdir)/m4/memcasecmp.m4 \
- $(top_srcdir)/m4/memchr.m4 $(top_srcdir)/m4/memcmp.m4 \
- $(top_srcdir)/m4/memcoll.m4 $(top_srcdir)/m4/memcpy.m4 \
- $(top_srcdir)/m4/memmove.m4 $(top_srcdir)/m4/mempcpy.m4 \
- $(top_srcdir)/m4/memrchr.m4 $(top_srcdir)/m4/memset.m4 \
- $(top_srcdir)/m4/memxfrm.m4 $(top_srcdir)/m4/mkancesdirs.m4 \
- $(top_srcdir)/m4/mkdir-p.m4 $(top_srcdir)/m4/mkdir-slash.m4 \
- $(top_srcdir)/m4/mkstemp.m4 $(top_srcdir)/m4/mktime.m4 \
- $(top_srcdir)/m4/modechange.m4 $(top_srcdir)/m4/mountlist.m4 \
- $(top_srcdir)/m4/mpsort.m4 $(top_srcdir)/m4/nanosleep.m4 \
- $(top_srcdir)/m4/netinet_in_h.m4 $(top_srcdir)/m4/nls.m4 \
- $(top_srcdir)/m4/openat.m4 $(top_srcdir)/m4/pathmax.m4 \
- $(top_srcdir)/m4/perl.m4 $(top_srcdir)/m4/physmem.m4 \
- $(top_srcdir)/m4/po.m4 $(top_srcdir)/m4/posixtm.m4 \
- $(top_srcdir)/m4/posixver.m4 $(top_srcdir)/m4/prereq.m4 \
- $(top_srcdir)/m4/progtest.m4 $(top_srcdir)/m4/putenv.m4 \
- $(top_srcdir)/m4/quote.m4 $(top_srcdir)/m4/quotearg.m4 \
- $(top_srcdir)/m4/randint.m4 $(top_srcdir)/m4/randperm.m4 \
- $(top_srcdir)/m4/randread.m4 $(top_srcdir)/m4/readlink.m4 \
- $(top_srcdir)/m4/readtokens.m4 $(top_srcdir)/m4/readutmp.m4 \
- $(top_srcdir)/m4/regex.m4 \
- $(top_srcdir)/m4/rename-dest-slash.m4 \
- $(top_srcdir)/m4/rename.m4 $(top_srcdir)/m4/rmdir-errno.m4 \
- $(top_srcdir)/m4/rmdir.m4 $(top_srcdir)/m4/root-dev-ino.m4 \
- $(top_srcdir)/m4/rpmatch.m4 $(top_srcdir)/m4/safe-read.m4 \
- $(top_srcdir)/m4/safe-write.m4 $(top_srcdir)/m4/same.m4 \
- $(top_srcdir)/m4/save-cwd.m4 $(top_srcdir)/m4/savedir.m4 \
- $(top_srcdir)/m4/savewd.m4 $(top_srcdir)/m4/setenv.m4 \
- $(top_srcdir)/m4/settime.m4 $(top_srcdir)/m4/sha1.m4 \
- $(top_srcdir)/m4/sha256.m4 $(top_srcdir)/m4/sha512.m4 \
- $(top_srcdir)/m4/sig2str.m4 $(top_srcdir)/m4/snprintf.m4 \
- $(top_srcdir)/m4/socklen.m4 $(top_srcdir)/m4/sockpfaf.m4 \
- $(top_srcdir)/m4/ssize_t.m4 $(top_srcdir)/m4/st_dm_mode.m4 \
- $(top_srcdir)/m4/stat-prog.m4 $(top_srcdir)/m4/stat-time.m4 \
- $(top_srcdir)/m4/stdarg.m4 $(top_srcdir)/m4/stdbool.m4 \
- $(top_srcdir)/m4/stdint.m4 $(top_srcdir)/m4/stdint_h.m4 \
- $(top_srcdir)/m4/stdio-safer.m4 $(top_srcdir)/m4/stdio_h.m4 \
- $(top_srcdir)/m4/stdlib-safer.m4 $(top_srcdir)/m4/stdlib_h.m4 \
- $(top_srcdir)/m4/stpcpy.m4 $(top_srcdir)/m4/strcspn.m4 \
- $(top_srcdir)/m4/strdup.m4 $(top_srcdir)/m4/strftime.m4 \
- $(top_srcdir)/m4/string_h.m4 $(top_srcdir)/m4/strndup.m4 \
- $(top_srcdir)/m4/strnlen.m4 $(top_srcdir)/m4/strnumcmp.m4 \
- $(top_srcdir)/m4/strpbrk.m4 $(top_srcdir)/m4/strtod.m4 \
- $(top_srcdir)/m4/strtoimax.m4 $(top_srcdir)/m4/strtol.m4 \
- $(top_srcdir)/m4/strtoll.m4 $(top_srcdir)/m4/strtoul.m4 \
- $(top_srcdir)/m4/strtoull.m4 $(top_srcdir)/m4/strtoumax.m4 \
- $(top_srcdir)/m4/strverscmp.m4 \
- $(top_srcdir)/m4/sys_socket_h.m4 \
- $(top_srcdir)/m4/sys_stat_h.m4 $(top_srcdir)/m4/sys_time_h.m4 \
- $(top_srcdir)/m4/tempname.m4 $(top_srcdir)/m4/time_h.m4 \
- $(top_srcdir)/m4/time_r.m4 $(top_srcdir)/m4/timespec.m4 \
- $(top_srcdir)/m4/tm_gmtoff.m4 $(top_srcdir)/m4/tzset.m4 \
- $(top_srcdir)/m4/unicodeio.m4 $(top_srcdir)/m4/unistd-safer.m4 \
- $(top_srcdir)/m4/unistd_h.m4 $(top_srcdir)/m4/unlink-busy.m4 \
- $(top_srcdir)/m4/unlinkdir.m4 $(top_srcdir)/m4/unlocked-io.m4 \
- $(top_srcdir)/m4/uptime.m4 $(top_srcdir)/m4/userspec.m4 \
- $(top_srcdir)/m4/utimbuf.m4 $(top_srcdir)/m4/utime.m4 \
- $(top_srcdir)/m4/utimecmp.m4 $(top_srcdir)/m4/utimens.m4 \
- $(top_srcdir)/m4/utimes-null.m4 $(top_srcdir)/m4/utimes.m4 \
- $(top_srcdir)/m4/vasnprintf.m4 $(top_srcdir)/m4/vasprintf.m4 \
- $(top_srcdir)/m4/wchar.m4 $(top_srcdir)/m4/wchar_t.m4 \
- $(top_srcdir)/m4/wctype.m4 $(top_srcdir)/m4/wcwidth.m4 \
- $(top_srcdir)/m4/wint_t.m4 $(top_srcdir)/m4/xalloc.m4 \
- $(top_srcdir)/m4/xfts.m4 $(top_srcdir)/m4/xgetcwd.m4 \
- $(top_srcdir)/m4/xnanosleep.m4 $(top_srcdir)/m4/xstrndup.m4 \
- $(top_srcdir)/m4/xstrtod.m4 $(top_srcdir)/m4/xstrtol.m4 \
- $(top_srcdir)/m4/yesno.m4 $(top_srcdir)/configure.ac
-am__configure_deps = $(am__aclocal_m4_deps) $(CONFIGURE_DEPENDENCIES) \
- $(ACLOCAL_M4)
-mkinstalldirs = $(install_sh) -d
-CONFIG_HEADER = $(top_builddir)/lib/config.h
-CONFIG_CLEAN_FILES =
-SOURCES =
-DIST_SOURCES =
-DISTFILES = $(DIST_COMMON) $(DIST_SOURCES) $(TEXINFOS) $(EXTRA_DIST)
-ABSOLUTE_DIRENT_H = @ABSOLUTE_DIRENT_H@
-ABSOLUTE_FCNTL_H = @ABSOLUTE_FCNTL_H@
-ABSOLUTE_INTTYPES_H = @ABSOLUTE_INTTYPES_H@
-ABSOLUTE_NETINET_IN_H = @ABSOLUTE_NETINET_IN_H@
-ABSOLUTE_STDINT_H = @ABSOLUTE_STDINT_H@
-ABSOLUTE_STDIO_H = @ABSOLUTE_STDIO_H@
-ABSOLUTE_STDLIB_H = @ABSOLUTE_STDLIB_H@
-ABSOLUTE_STRING_H = @ABSOLUTE_STRING_H@
-ABSOLUTE_SYS_SOCKET_H = @ABSOLUTE_SYS_SOCKET_H@
-ABSOLUTE_SYS_STAT_H = @ABSOLUTE_SYS_STAT_H@
-ABSOLUTE_SYS_TIME_H = @ABSOLUTE_SYS_TIME_H@
-ABSOLUTE_TIME_H = @ABSOLUTE_TIME_H@
-ABSOLUTE_UNISTD_H = @ABSOLUTE_UNISTD_H@
-ABSOLUTE_WCHAR_H = @ABSOLUTE_WCHAR_H@
-ABSOLUTE_WCTYPE_H = @ABSOLUTE_WCTYPE_H@
-ACLOCAL = @ACLOCAL@
-ALLOCA = @ALLOCA@
-ALLOCA_H = @ALLOCA_H@
-AMTAR = @AMTAR@
-ARPA_INET_H = @ARPA_INET_H@
-AUTOCONF = @AUTOCONF@
-AUTOHEADER = @AUTOHEADER@
-AUTOMAKE = @AUTOMAKE@
-AWK = @AWK@
-BITSIZEOF_PTRDIFF_T = @BITSIZEOF_PTRDIFF_T@
-BITSIZEOF_SIG_ATOMIC_T = @BITSIZEOF_SIG_ATOMIC_T@
-BITSIZEOF_SIZE_T = @BITSIZEOF_SIZE_T@
-BITSIZEOF_WCHAR_T = @BITSIZEOF_WCHAR_T@
-BITSIZEOF_WINT_T = @BITSIZEOF_WINT_T@
-CC = @CC@
-CCDEPMODE = @CCDEPMODE@
-CFLAGS = @CFLAGS@
-CPP = @CPP@
-CPPFLAGS = @CPPFLAGS@
-CYGPATH_W = @CYGPATH_W@
-DEFAULT_POSIX2_VERSION = @DEFAULT_POSIX2_VERSION@
-DEFS = @DEFS@
-DEPDIR = @DEPDIR@
-DF_PROG = @DF_PROG@
-DIRENT_H = @DIRENT_H@
-ECHO_C = @ECHO_C@
-ECHO_N = @ECHO_N@
-ECHO_T = @ECHO_T@
-EGREP = @EGREP@
-EOVERFLOW = @EOVERFLOW@
-EXEEXT = @EXEEXT@
-FCNTL_H = @FCNTL_H@
-FNMATCH_H = @FNMATCH_H@
-GETLOADAVG_LIBS = @GETLOADAVG_LIBS@
-GETOPT_H = @GETOPT_H@
-GLIBC21 = @GLIBC21@
-GMSGFMT = @GMSGFMT@
-GMSGFMT_015 = @GMSGFMT_015@
-GNULIB_CHOWN = @GNULIB_CHOWN@
-GNULIB_DUP2 = @GNULIB_DUP2@
-GNULIB_FCHDIR = @GNULIB_FCHDIR@
-GNULIB_FPRINTF_POSIX = @GNULIB_FPRINTF_POSIX@
-GNULIB_FTRUNCATE = @GNULIB_FTRUNCATE@
-GNULIB_GETCWD = @GNULIB_GETCWD@
-GNULIB_GETLOGIN_R = @GNULIB_GETLOGIN_R@
-GNULIB_GETSUBOPT = @GNULIB_GETSUBOPT@
-GNULIB_IMAXABS = @GNULIB_IMAXABS@
-GNULIB_IMAXDIV = @GNULIB_IMAXDIV@
-GNULIB_MBSCASECMP = @GNULIB_MBSCASECMP@
-GNULIB_MBSCASESTR = @GNULIB_MBSCASESTR@
-GNULIB_MBSCHR = @GNULIB_MBSCHR@
-GNULIB_MBSCSPN = @GNULIB_MBSCSPN@
-GNULIB_MBSLEN = @GNULIB_MBSLEN@
-GNULIB_MBSNCASECMP = @GNULIB_MBSNCASECMP@
-GNULIB_MBSPBRK = @GNULIB_MBSPBRK@
-GNULIB_MBSPCASECMP = @GNULIB_MBSPCASECMP@
-GNULIB_MBSRCHR = @GNULIB_MBSRCHR@
-GNULIB_MBSSEP = @GNULIB_MBSSEP@
-GNULIB_MBSSPN = @GNULIB_MBSSPN@
-GNULIB_MBSSTR = @GNULIB_MBSSTR@
-GNULIB_MBSTOK_R = @GNULIB_MBSTOK_R@
-GNULIB_MEMMEM = @GNULIB_MEMMEM@
-GNULIB_MEMPCPY = @GNULIB_MEMPCPY@
-GNULIB_MEMRCHR = @GNULIB_MEMRCHR@
-GNULIB_MKDTEMP = @GNULIB_MKDTEMP@
-GNULIB_MKSTEMP = @GNULIB_MKSTEMP@
-GNULIB_PRINTF_POSIX = @GNULIB_PRINTF_POSIX@
-GNULIB_READLINK = @GNULIB_READLINK@
-GNULIB_SNPRINTF = @GNULIB_SNPRINTF@
-GNULIB_SPRINTF_POSIX = @GNULIB_SPRINTF_POSIX@
-GNULIB_STPCPY = @GNULIB_STPCPY@
-GNULIB_STPNCPY = @GNULIB_STPNCPY@
-GNULIB_STRCASESTR = @GNULIB_STRCASESTR@
-GNULIB_STRCHRNUL = @GNULIB_STRCHRNUL@
-GNULIB_STRDUP = @GNULIB_STRDUP@
-GNULIB_STRNDUP = @GNULIB_STRNDUP@
-GNULIB_STRNLEN = @GNULIB_STRNLEN@
-GNULIB_STRPBRK = @GNULIB_STRPBRK@
-GNULIB_STRSEP = @GNULIB_STRSEP@
-GNULIB_STRTOIMAX = @GNULIB_STRTOIMAX@
-GNULIB_STRTOK_R = @GNULIB_STRTOK_R@
-GNULIB_STRTOUMAX = @GNULIB_STRTOUMAX@
-GNULIB_VFPRINTF_POSIX = @GNULIB_VFPRINTF_POSIX@
-GNULIB_VPRINTF_POSIX = @GNULIB_VPRINTF_POSIX@
-GNULIB_VSNPRINTF = @GNULIB_VSNPRINTF@
-GNULIB_VSPRINTF_POSIX = @GNULIB_VSPRINTF_POSIX@
-GNU_PACKAGE = @GNU_PACKAGE@
-GREP = @GREP@
-HAVE_DECL_GETLOGIN_R = @HAVE_DECL_GETLOGIN_R@
-HAVE_DECL_IMAXABS = @HAVE_DECL_IMAXABS@
-HAVE_DECL_IMAXDIV = @HAVE_DECL_IMAXDIV@
-HAVE_DECL_MEMMEM = @HAVE_DECL_MEMMEM@
-HAVE_DECL_MEMRCHR = @HAVE_DECL_MEMRCHR@
-HAVE_DECL_SNPRINTF = @HAVE_DECL_SNPRINTF@
-HAVE_DECL_STRDUP = @HAVE_DECL_STRDUP@
-HAVE_DECL_STRNCASECMP = @HAVE_DECL_STRNCASECMP@
-HAVE_DECL_STRNDUP = @HAVE_DECL_STRNDUP@
-HAVE_DECL_STRNLEN = @HAVE_DECL_STRNLEN@
-HAVE_DECL_STRTOIMAX = @HAVE_DECL_STRTOIMAX@
-HAVE_DECL_STRTOK_R = @HAVE_DECL_STRTOK_R@
-HAVE_DECL_STRTOUMAX = @HAVE_DECL_STRTOUMAX@
-HAVE_DECL_VSNPRINTF = @HAVE_DECL_VSNPRINTF@
-HAVE_DUP2 = @HAVE_DUP2@
-HAVE_FTRUNCATE = @HAVE_FTRUNCATE@
-HAVE_GETSUBOPT = @HAVE_GETSUBOPT@
-HAVE_INTTYPES_H = @HAVE_INTTYPES_H@
-HAVE_LONG_LONG_INT = @HAVE_LONG_LONG_INT@
-HAVE_MEMPCPY = @HAVE_MEMPCPY@
-HAVE_MKDTEMP = @HAVE_MKDTEMP@
-HAVE_NETINET_IN_H = @HAVE_NETINET_IN_H@
-HAVE_READLINK = @HAVE_READLINK@
-HAVE_SIGNED_SIG_ATOMIC_T = @HAVE_SIGNED_SIG_ATOMIC_T@
-HAVE_SIGNED_WCHAR_T = @HAVE_SIGNED_WCHAR_T@
-HAVE_SIGNED_WINT_T = @HAVE_SIGNED_WINT_T@
-HAVE_STDINT_H = @HAVE_STDINT_H@
-HAVE_STPCPY = @HAVE_STPCPY@
-HAVE_STPNCPY = @HAVE_STPNCPY@
-HAVE_STRCASECMP = @HAVE_STRCASECMP@
-HAVE_STRCASESTR = @HAVE_STRCASESTR@
-HAVE_STRCHRNUL = @HAVE_STRCHRNUL@
-HAVE_STRNDUP = @HAVE_STRNDUP@
-HAVE_STRPBRK = @HAVE_STRPBRK@
-HAVE_STRSEP = @HAVE_STRSEP@
-HAVE_STRUCT_TIMEVAL = @HAVE_STRUCT_TIMEVAL@
-HAVE_SYS_BITYPES_H = @HAVE_SYS_BITYPES_H@
-HAVE_SYS_INTTYPES_H = @HAVE_SYS_INTTYPES_H@
-HAVE_SYS_SOCKET_H = @HAVE_SYS_SOCKET_H@
-HAVE_SYS_TIME_H = @HAVE_SYS_TIME_H@
-HAVE_SYS_TYPES_H = @HAVE_SYS_TYPES_H@
-HAVE_UNISTD_H = @HAVE_UNISTD_H@
-HAVE_UNSIGNED_LONG_LONG_INT = @HAVE_UNSIGNED_LONG_LONG_INT@
-HAVE_WCTYPE_H = @HAVE_WCTYPE_H@
-HAVE_WINSOCK2_H = @HAVE_WINSOCK2_H@
-HAVE_WINT_T = @HAVE_WINT_T@
-HAVE_WS2TCPIP_H = @HAVE_WS2TCPIP_H@
-HAVE__BOOL = @HAVE__BOOL@
-HELP2MAN = @HELP2MAN@
-INSTALL = @INSTALL@
-INSTALL_DATA = @INSTALL_DATA@
-INSTALL_PROGRAM = @INSTALL_PROGRAM@
-INSTALL_SCRIPT = @INSTALL_SCRIPT@
-INSTALL_STRIP_PROGRAM = @INSTALL_STRIP_PROGRAM@
-INTLLIBS = @INTLLIBS@
-INTL_MACOSX_LIBS = @INTL_MACOSX_LIBS@
-INTTYPES_H = @INTTYPES_H@
-KMEM_GROUP = @KMEM_GROUP@
-LDFLAGS = @LDFLAGS@
-LIBCOREUTILS_LIBDEPS = @LIBCOREUTILS_LIBDEPS@
-LIBCOREUTILS_LTLIBDEPS = @LIBCOREUTILS_LTLIBDEPS@
-LIBICONV = @LIBICONV@
-LIBINTL = @LIBINTL@
-LIBOBJS = @LIBOBJS@
-LIBS = @LIBS@
-LIB_ACL = @LIB_ACL@
-LIB_ACL_TRIVIAL = @LIB_ACL_TRIVIAL@
-LIB_CLOCK_GETTIME = @LIB_CLOCK_GETTIME@
-LIB_CRYPT = @LIB_CRYPT@
-LIB_EACCESS = @LIB_EACCESS@
-LIB_FDATASYNC = @LIB_FDATASYNC@
-LIB_GETHRXTIME = @LIB_GETHRXTIME@
-LIB_NANOSLEEP = @LIB_NANOSLEEP@
-LN_S = @LN_S@
-LTLIBICONV = @LTLIBICONV@
-LTLIBINTL = @LTLIBINTL@
-LTLIBOBJS = @LTLIBOBJS@
-MAKEINFO = @MAKEINFO@
-MAN = @MAN@
-MKDIR_P = @MKDIR_P@
-MSGFMT = @MSGFMT@
-MSGFMT_015 = @MSGFMT_015@
-MSGMERGE = @MSGMERGE@
-NEED_SETGID = @NEED_SETGID@
-NETINET_IN_H = @NETINET_IN_H@
-OBJEXT = @OBJEXT@
-OPTIONAL_BIN_PROGS = @OPTIONAL_BIN_PROGS@
-PACKAGE = @PACKAGE@
-PACKAGE_BUGREPORT = @PACKAGE_BUGREPORT@
-PACKAGE_NAME = @PACKAGE_NAME@
-PACKAGE_STRING = @PACKAGE_STRING@
-PACKAGE_TARNAME = @PACKAGE_TARNAME@
-PACKAGE_VERSION = @PACKAGE_VERSION@
-PATH_SEPARATOR = @PATH_SEPARATOR@
-PERL = @PERL@
-POSUB = @POSUB@
-POW_LIB = @POW_LIB@
-PRIPTR_PREFIX = @PRIPTR_PREFIX@
-PRI_MACROS_BROKEN = @PRI_MACROS_BROKEN@
-PTRDIFF_T_SUFFIX = @PTRDIFF_T_SUFFIX@
-RANLIB = @RANLIB@
-REPLACE_CHOWN = @REPLACE_CHOWN@
-REPLACE_FCHDIR = @REPLACE_FCHDIR@
-REPLACE_FPRINTF = @REPLACE_FPRINTF@
-REPLACE_GETCWD = @REPLACE_GETCWD@
-REPLACE_GETTIMEOFDAY = @REPLACE_GETTIMEOFDAY@
-REPLACE_LOCALTIME_R = @REPLACE_LOCALTIME_R@
-REPLACE_MKSTEMP = @REPLACE_MKSTEMP@
-REPLACE_NANOSLEEP = @REPLACE_NANOSLEEP@
-REPLACE_PRINTF = @REPLACE_PRINTF@
-REPLACE_SNPRINTF = @REPLACE_SNPRINTF@
-REPLACE_SPRINTF = @REPLACE_SPRINTF@
-REPLACE_STRPTIME = @REPLACE_STRPTIME@
-REPLACE_TIMEGM = @REPLACE_TIMEGM@
-REPLACE_VFPRINTF = @REPLACE_VFPRINTF@
-REPLACE_VPRINTF = @REPLACE_VPRINTF@
-REPLACE_VSNPRINTF = @REPLACE_VSNPRINTF@
-REPLACE_VSPRINTF = @REPLACE_VSPRINTF@
-SEQ_LIBM = @SEQ_LIBM@
-SET_MAKE = @SET_MAKE@
-SHELL = @SHELL@
-SIG_ATOMIC_T_SUFFIX = @SIG_ATOMIC_T_SUFFIX@
-SIZE_T_SUFFIX = @SIZE_T_SUFFIX@
-STDBOOL_H = @STDBOOL_H@
-STDINT_H = @STDINT_H@
-STRIP = @STRIP@
-SYS_SOCKET_H = @SYS_SOCKET_H@
-SYS_STAT_H = @SYS_STAT_H@
-SYS_TIME_H = @SYS_TIME_H@
-SYS_TIME_H_DEFINES_STRUCT_TIMESPEC = @SYS_TIME_H_DEFINES_STRUCT_TIMESPEC@
-TIME_H_DEFINES_STRUCT_TIMESPEC = @TIME_H_DEFINES_STRUCT_TIMESPEC@
-U = @U@
-USE_NLS = @USE_NLS@
-VERSION = @VERSION@
-WCHAR_H = @WCHAR_H@
-WCHAR_T_SUFFIX = @WCHAR_T_SUFFIX@
-WCTYPE_H = @WCTYPE_H@
-WINT_T_SUFFIX = @WINT_T_SUFFIX@
-XGETTEXT = @XGETTEXT@
-XGETTEXT_015 = @XGETTEXT_015@
-YACC = @YACC@
-YFLAGS = @YFLAGS@
-abs_builddir = @abs_builddir@
-abs_srcdir = @abs_srcdir@
-abs_top_builddir = @abs_top_builddir@
-abs_top_srcdir = @abs_top_srcdir@
-ac_ct_CC = @ac_ct_CC@
-am__include = @am__include@
-am__leading_dot = @am__leading_dot@
-am__quote = @am__quote@
-am__tar = @am__tar@
-am__untar = @am__untar@
-bindir = @bindir@
-build = @build@
-build_alias = @build_alias@
-build_cpu = @build_cpu@
-build_os = @build_os@
-build_vendor = @build_vendor@
-builddir = @builddir@
-datadir = @datadir@
-datarootdir = @datarootdir@
-docdir = @docdir@
-dvidir = @dvidir@
-exec_prefix = @exec_prefix@
-gl_LIBOBJS = @gl_LIBOBJS@
-gl_LTLIBOBJS = @gl_LTLIBOBJS@
-host = @host@
-host_alias = @host_alias@
-host_cpu = @host_cpu@
-host_os = @host_os@
-host_vendor = @host_vendor@
-htmldir = @htmldir@
-includedir = @includedir@
-infodir = @infodir@
-install_sh = @install_sh@
-libdir = @libdir@
-libexecdir = @libexecdir@
-localedir = @localedir@
-localstatedir = @localstatedir@
-mandir = @mandir@
-mkdir_p = @mkdir_p@
-oldincludedir = @oldincludedir@
-pdfdir = @pdfdir@
-prefix = @prefix@
-program_transform_name = @program_transform_name@
-psdir = @psdir@
-sbindir = @sbindir@
-sharedstatedir = @sharedstatedir@
-srcdir = @srcdir@
-sysconfdir = @sysconfdir@
-target_alias = @target_alias@
-top_builddir = @top_builddir@
-top_srcdir = @top_srcdir@
-TESTS = basic
-EXTRA_DIST = $(TESTS)
-TESTS_ENVIRONMENT = \
- top_srcdir=$(top_srcdir) \
- srcdir=$(srcdir) \
- PERL="$(PERL)" \
- CU_TEST_NAME=`basename $(abs_srcdir)`,$$tst \
- PATH="$(VG_PATH_PREFIX)`pwd`/../../src$(PATH_SEPARATOR)$$PATH" \
- PROG=seq
-
-all: all-am
-
-.SUFFIXES:
-$(srcdir)/Makefile.in: $(srcdir)/Makefile.am $(am__configure_deps)
- @for dep in $?; do \
- case '$(am__configure_deps)' in \
- *$$dep*) \
- cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh \
- && exit 0; \
- exit 1;; \
- esac; \
- done; \
- echo ' cd $(top_srcdir) && $(AUTOMAKE) --gnu tests/seq/Makefile'; \
- cd $(top_srcdir) && \
- $(AUTOMAKE) --gnu tests/seq/Makefile
-.PRECIOUS: Makefile
-Makefile: $(srcdir)/Makefile.in $(top_builddir)/config.status
- @case '$?' in \
- *config.status*) \
- cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh;; \
- *) \
- echo ' cd $(top_builddir) && $(SHELL) ./config.status $(subdir)/$@ $(am__depfiles_maybe)'; \
- cd $(top_builddir) && $(SHELL) ./config.status $(subdir)/$@ $(am__depfiles_maybe);; \
- esac;
-
-$(top_builddir)/config.status: $(top_srcdir)/configure $(CONFIG_STATUS_DEPENDENCIES)
- cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh
-
-$(top_srcdir)/configure: $(am__configure_deps)
- cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh
-$(ACLOCAL_M4): $(am__aclocal_m4_deps)
- cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh
-tags: TAGS
-TAGS:
-
-ctags: CTAGS
-CTAGS:
-
-
-check-TESTS: $(TESTS)
- @failed=0; all=0; xfail=0; xpass=0; skip=0; ws='[ ]'; \
- srcdir=$(srcdir); export srcdir; \
- list=' $(TESTS) '; \
- if test -n "$$list"; then \
- for tst in $$list; do \
- if test -f ./$$tst; then dir=./; \
- elif test -f $$tst; then dir=; \
- else dir="$(srcdir)/"; fi; \
- if $(TESTS_ENVIRONMENT) $${dir}$$tst; then \
- all=`expr $$all + 1`; \
- case " $(XFAIL_TESTS) " in \
- *$$ws$$tst$$ws*) \
- xpass=`expr $$xpass + 1`; \
- failed=`expr $$failed + 1`; \
- echo "XPASS: $$tst"; \
- ;; \
- *) \
- echo "PASS: $$tst"; \
- ;; \
- esac; \
- elif test $$? -ne 77; then \
- all=`expr $$all + 1`; \
- case " $(XFAIL_TESTS) " in \
- *$$ws$$tst$$ws*) \
- xfail=`expr $$xfail + 1`; \
- echo "XFAIL: $$tst"; \
- ;; \
- *) \
- failed=`expr $$failed + 1`; \
- echo "FAIL: $$tst"; \
- ;; \
- esac; \
- else \
- skip=`expr $$skip + 1`; \
- echo "SKIP: $$tst"; \
- fi; \
- done; \
- if test "$$failed" -eq 0; then \
- if test "$$xfail" -eq 0; then \
- banner="All $$all tests passed"; \
- else \
- banner="All $$all tests behaved as expected ($$xfail expected failures)"; \
- fi; \
- else \
- if test "$$xpass" -eq 0; then \
- banner="$$failed of $$all tests failed"; \
- else \
- banner="$$failed of $$all tests did not behave as expected ($$xpass unexpected passes)"; \
- fi; \
- fi; \
- dashes="$$banner"; \
- skipped=""; \
- if test "$$skip" -ne 0; then \
- skipped="($$skip tests were not run)"; \
- test `echo "$$skipped" | wc -c` -le `echo "$$banner" | wc -c` || \
- dashes="$$skipped"; \
- fi; \
- report=""; \
- if test "$$failed" -ne 0 && test -n "$(PACKAGE_BUGREPORT)"; then \
- report="Please report to $(PACKAGE_BUGREPORT)"; \
- test `echo "$$report" | wc -c` -le `echo "$$banner" | wc -c` || \
- dashes="$$report"; \
- fi; \
- dashes=`echo "$$dashes" | sed s/./=/g`; \
- echo "$$dashes"; \
- echo "$$banner"; \
- test -z "$$skipped" || echo "$$skipped"; \
- test -z "$$report" || echo "$$report"; \
- echo "$$dashes"; \
- test "$$failed" -eq 0; \
- else :; fi
-
-distdir: $(DISTFILES)
- @srcdirstrip=`echo "$(srcdir)" | sed 's/[].[^$$\\*]/\\\\&/g'`; \
- topsrcdirstrip=`echo "$(top_srcdir)" | sed 's/[].[^$$\\*]/\\\\&/g'`; \
- list='$(DISTFILES)'; \
- dist_files=`for file in $$list; do echo $$file; done | \
- sed -e "s|^$$srcdirstrip/||;t" \
- -e "s|^$$topsrcdirstrip/|$(top_builddir)/|;t"`; \
- case $$dist_files in \
- */*) $(MKDIR_P) `echo "$$dist_files" | \
- sed '/\//!d;s|^|$(distdir)/|;s,/[^/]*$$,,' | \
- sort -u` ;; \
- esac; \
- for file in $$dist_files; do \
- if test -f $$file || test -d $$file; then d=.; else d=$(srcdir); fi; \
- if test -d $$d/$$file; then \
- dir=`echo "/$$file" | sed -e 's,/[^/]*$$,,'`; \
- if test -d $(srcdir)/$$file && test $$d != $(srcdir); then \
- cp -pR $(srcdir)/$$file $(distdir)$$dir || exit 1; \
- fi; \
- cp -pR $$d/$$file $(distdir)$$dir || exit 1; \
- else \
- test -f $(distdir)/$$file \
- || cp -p $$d/$$file $(distdir)/$$file \
- || exit 1; \
- fi; \
- done
-check-am: all-am
- $(MAKE) $(AM_MAKEFLAGS) check-TESTS
-check: check-am
-all-am: Makefile
-installdirs:
-install: install-am
-install-exec: install-exec-am
-install-data: install-data-am
-uninstall: uninstall-am
-
-install-am: all-am
- @$(MAKE) $(AM_MAKEFLAGS) install-exec-am install-data-am
-
-installcheck: installcheck-am
-install-strip:
- $(MAKE) $(AM_MAKEFLAGS) INSTALL_PROGRAM="$(INSTALL_STRIP_PROGRAM)" \
- install_sh_PROGRAM="$(INSTALL_STRIP_PROGRAM)" INSTALL_STRIP_FLAG=-s \
- `test -z '$(STRIP)' || \
- echo "INSTALL_PROGRAM_ENV=STRIPPROG='$(STRIP)'"` install
-mostlyclean-generic:
-
-clean-generic:
-
-distclean-generic:
- -test -z "$(CONFIG_CLEAN_FILES)" || rm -f $(CONFIG_CLEAN_FILES)
-
-maintainer-clean-generic:
- @echo "This command is intended for maintainers to use"
- @echo "it deletes files that may require special tools to rebuild."
-clean: clean-am
-
-clean-am: clean-generic mostlyclean-am
-
-distclean: distclean-am
- -rm -f Makefile
-distclean-am: clean-am distclean-generic
-
-dvi: dvi-am
-
-dvi-am:
-
-html: html-am
-
-info: info-am
-
-info-am:
-
-install-data-am:
-
-install-dvi: install-dvi-am
-
-install-exec-am:
-
-install-html: install-html-am
-
-install-info: install-info-am
-
-install-man:
-
-install-pdf: install-pdf-am
-
-install-ps: install-ps-am
-
-installcheck-am:
-
-maintainer-clean: maintainer-clean-am
- -rm -f Makefile
-maintainer-clean-am: distclean-am maintainer-clean-generic
-
-mostlyclean: mostlyclean-am
-
-mostlyclean-am: mostlyclean-generic
-
-pdf: pdf-am
-
-pdf-am:
-
-ps: ps-am
-
-ps-am:
-
-uninstall-am:
-
-.MAKE: install-am install-strip
-
-.PHONY: all all-am check check-TESTS check-am clean clean-generic \
- distclean distclean-generic distdir dvi dvi-am html html-am \
- info info-am install install-am install-data install-data-am \
- install-dvi install-dvi-am install-exec install-exec-am \
- install-html install-html-am install-info install-info-am \
- install-man install-pdf install-pdf-am install-ps \
- install-ps-am install-strip installcheck installcheck-am \
- installdirs maintainer-clean maintainer-clean-generic \
- mostlyclean mostlyclean-generic pdf pdf-am ps ps-am uninstall \
- uninstall-am
-
-# Tell versions [3.59,3.63) of GNU make to not export all variables.
-# Otherwise a system limit (for SysV at least) may be exceeded.
-.NOEXPORT:
diff --git a/tests/seq/basic b/tests/seq/basic
deleted file mode 100755
index 7070652..0000000
--- a/tests/seq/basic
+++ /dev/null
@@ -1,90 +0,0 @@
-#!/bin/sh
-# -*- perl -*-
-# Test "seq".
-
-# Copyright (C) 1999, 2000, 2003, 2005, 2006 Free Software Foundation, Inc.
-
-# This program is free software; you can redistribute it and/or modify
-# it under the terms of the GNU General Public License as published by
-# the Free Software Foundation; either version 2 of the License, or
-# (at your option) any later version.
-
-# This program is distributed in the hope that it will be useful,
-# but WITHOUT ANY WARRANTY; without even the implied warranty of
-# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
-# GNU General Public License for more details.
-
-# You should have received a copy of the GNU General Public License
-# along with this program; if not, write to the Free Software
-# Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA
-# 02110-1301, USA.
-
-: ${PERL=perl}
-: ${srcdir=.}
-
-$PERL -e 1 > /dev/null 2>&1 || {
- echo 1>&2 "$0: configure didn't find a usable version of Perl," \
- "so can't run this test"
- exit 77
-}
-
-d=$srcdir/..
-exec $PERL -w -I$d -MCoreutils -- - << \EOF
-require 5.003;
-use strict;
-
-(my $program_name = $0) =~ s|.*/||;
-
-# Turn off localisation of executable's ouput.
-@ENV{qw(LANGUAGE LANG LC_ALL)} = ('C') x 3;
-
-my $prog = $ENV{PROG} || die "$0: \$PROG not specified in environment\n";
-
-my @Tests =
- (
- ['onearg-1', qw(10), {OUT => [(1..10)]}],
- ['onearg-2', qw(-1)],
- ['neg-1', qw(-10 10 10), {OUT => [qw(-10 0 10)]}],
- # ['neg-2', qw(-.1 .1 .11), {OUT => [qw(-0.1 0.0 0.1)]}],
- ['neg-3', qw(1 -1 0), {OUT => [qw(1 0)]}],
- ['neg-4', qw(1 -1 -1), {OUT => [qw(1 0 -1)]}],
-
- ['eq-wid-1', qw(-w 1 -1 -1), {OUT => [qw(01 00 -1)]}],
-
- # Prior to 2.0g, this test would fail on e.g., HPUX systems
- # because it'd end up using %3.1f as the format instead of %4.1f.
- # ['eq-wid-2', qw(-w -.1 .1 .11),{OUT => [qw(-0.1 00.0 00.1)]}],
- # ['eq-wid-3', qw(-w 1 3.0), {OUT => [qw(1 2 3)]}],
-
- # Prior to coreutils-4.5.11, some of these were not accepted.
- ['fmt-1', qw(-f %2.1f 1.5 .5 2),{OUT => [qw(1.5 2.0)]}],
- ['fmt-2', qw(-f %0.1f 1.5 .5 2),{OUT => [qw(1.5 2.0)]}],
- ['fmt-3', qw(-f %.1f 1.5 .5 2),{OUT => [qw(1.5 2.0)]}],
-
- ['fmt-4', qw(-f %3.0f 1 2), {OUT => [' 1', ' 2']}],
- ['fmt-5', qw(-f %-3.0f 1 2), {OUT => ['1 ', '2 ']}],
- ['fmt-6', qw(-f %+3.0f 1 2), {OUT => [' +1', ' +2']}],
- ['fmt-7', qw(-f %0+3.0f 1 2), {OUT => [qw(+01 +02)]}],
- ['fmt-8', qw(-f %0+.0f 1 2), {OUT => [qw(+1 +2)]}],
- ['fmt-9', '-f "% -3.0f"', qw(-1 0), {OUT => ['-1 ', ' 0 ']}],
- ['fmt-a', '-f "% -.0f"',qw(-1 0), {OUT => ['-1', ' 0']}],
- );
-
-# Append a newline to each entry in the OUT array.
-my $t;
-foreach $t (@Tests)
- {
- my $e;
- foreach $e (@$t)
- {
- $e->{OUT} = join ("\n", @{$e->{OUT}}) . "\n"
- if ref $e eq 'HASH' and exists $e->{OUT};
- }
- }
-
-my $save_temps = $ENV{SAVE_TEMPS};
-my $verbose = $ENV{VERBOSE};
-
-my $fail = run_tests ($program_name, $prog, \@Tests, $save_temps, $verbose);
-exit $fail;
-EOF
diff --git a/tests/setgid-check b/tests/setgid-check
deleted file mode 100644
index adeefb6..0000000
--- a/tests/setgid-check
+++ /dev/null
@@ -1,43 +0,0 @@
-# -*- sh -*-
-# Disable the current test if the working directory seems to have
-# the setgid bit set.
-
-# Copyright (C) 2000, 2002, 2004, 2005 Free Software Foundation, Inc.
-
-# This program is free software; you can redistribute it and/or modify
-# it under the terms of the GNU General Public License as published by
-# the Free Software Foundation; either version 2 of the License, or
-# (at your option) any later version.
-
-# This program is distributed in the hope that it will be useful,
-# but WITHOUT ANY WARRANTY; without even the implied warranty of
-# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
-# GNU General Public License for more details.
-
-# You should have received a copy of the GNU General Public License
-# along with this program; if not, write to the Free Software
-# Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA
-# 02110-1301, USA.
-
-# This test should be run in the temporary directory that ends
-# up being removed via the trap commands.
-
-cwd_is_setgid=no
-
-setgid_tmpdir=setgid-$$
-(umask 77; mkdir $setgid_tmpdir)
-p=`ls -ld $setgid_tmpdir|sed 's/ .*//'`
-rmdir $setgid_tmpdir
-case $p in
- drwx------);;
- drwx------+);;
- drwxr-xr-x);; # Windows98 + DJGPP 2.03 + fileutils-4.1 does this.
- *) cwd_is_setgid=yes;;
-esac
-if test $cwd_is_setgid = yes; then
- cat <<EOF >&2
-$0: Since it looks like you're running this test in a directory with
-the setgid bit set, we're skipping this test.
-EOF
- (exit 77); exit 77
-fi
diff --git a/tests/sha1sum/Makefile.am b/tests/sha1sum/Makefile.am
deleted file mode 100644
index 920dd1a..0000000
--- a/tests/sha1sum/Makefile.am
+++ /dev/null
@@ -1,13 +0,0 @@
-## Process this file with automake to produce Makefile.in -*-Makefile-*-.
-
-EXTRA_DIST = $(TESTS)
-
-TESTS_ENVIRONMENT = \
- top_srcdir=$(top_srcdir) \
- srcdir=$(srcdir) \
- PERL="$(PERL)" \
- CU_TEST_NAME=`basename $(abs_srcdir)`,$$tst \
- PATH="$(VG_PATH_PREFIX)`pwd`/../../src$(PATH_SEPARATOR)$$PATH" \
- PROG=sha1sum
-
-TESTS = basic-1 sample-vec
diff --git a/tests/sha1sum/Makefile.in b/tests/sha1sum/Makefile.in
deleted file mode 100644
index a016355..0000000
--- a/tests/sha1sum/Makefile.in
+++ /dev/null
@@ -1,720 +0,0 @@
-# Makefile.in generated by automake 1.10 from Makefile.am.
-# @configure_input@
-
-# Copyright (C) 1994, 1995, 1996, 1997, 1998, 1999, 2000, 2001, 2002,
-# 2003, 2004, 2005, 2006 Free Software Foundation, Inc.
-# This Makefile.in is free software; the Free Software Foundation
-# gives unlimited permission to copy and/or distribute it,
-# with or without modifications, as long as this notice is preserved.
-
-# This program is distributed in the hope that it will be useful,
-# but WITHOUT ANY WARRANTY, to the extent permitted by law; without
-# even the implied warranty of MERCHANTABILITY or FITNESS FOR A
-# PARTICULAR PURPOSE.
-
-@SET_MAKE@
-VPATH = @srcdir@
-pkgdatadir = $(datadir)/@PACKAGE@
-pkglibdir = $(libdir)/@PACKAGE@
-pkgincludedir = $(includedir)/@PACKAGE@
-am__cd = CDPATH="$${ZSH_VERSION+.}$(PATH_SEPARATOR)" && cd
-install_sh_DATA = $(install_sh) -c -m 644
-install_sh_PROGRAM = $(install_sh) -c
-install_sh_SCRIPT = $(install_sh) -c
-INSTALL_HEADER = $(INSTALL_DATA)
-transform = $(program_transform_name)
-NORMAL_INSTALL = :
-PRE_INSTALL = :
-POST_INSTALL = :
-NORMAL_UNINSTALL = :
-PRE_UNINSTALL = :
-POST_UNINSTALL = :
-build_triplet = @build@
-host_triplet = @host@
-subdir = tests/sha1sum
-DIST_COMMON = $(srcdir)/Makefile.am $(srcdir)/Makefile.in
-ACLOCAL_M4 = $(top_srcdir)/aclocal.m4
-am__aclocal_m4_deps = $(top_srcdir)/m4/absolute-header.m4 \
- $(top_srcdir)/m4/acl.m4 $(top_srcdir)/m4/alloca.m4 \
- $(top_srcdir)/m4/allocsa.m4 $(top_srcdir)/m4/argmatch.m4 \
- $(top_srcdir)/m4/arpa_inet_h.m4 $(top_srcdir)/m4/assert.m4 \
- $(top_srcdir)/m4/atexit.m4 $(top_srcdir)/m4/autobuild.m4 \
- $(top_srcdir)/m4/backupfile.m4 $(top_srcdir)/m4/base64.m4 \
- $(top_srcdir)/m4/bison.m4 $(top_srcdir)/m4/boottime.m4 \
- $(top_srcdir)/m4/c-strtod.m4 $(top_srcdir)/m4/calloc.m4 \
- $(top_srcdir)/m4/canon-host.m4 \
- $(top_srcdir)/m4/canonicalize.m4 \
- $(top_srcdir)/m4/chdir-long.m4 $(top_srcdir)/m4/check-decl.m4 \
- $(top_srcdir)/m4/chown.m4 $(top_srcdir)/m4/clock_time.m4 \
- $(top_srcdir)/m4/cloexec.m4 $(top_srcdir)/m4/close-stream.m4 \
- $(top_srcdir)/m4/closeout.m4 $(top_srcdir)/m4/codeset.m4 \
- $(top_srcdir)/m4/config-h.m4 $(top_srcdir)/m4/cycle-check.m4 \
- $(top_srcdir)/m4/d-ino.m4 $(top_srcdir)/m4/d-type.m4 \
- $(top_srcdir)/m4/dirfd.m4 $(top_srcdir)/m4/dirname.m4 \
- $(top_srcdir)/m4/dos.m4 $(top_srcdir)/m4/double-slash-root.m4 \
- $(top_srcdir)/m4/dup2.m4 $(top_srcdir)/m4/eealloc.m4 \
- $(top_srcdir)/m4/eoverflow.m4 $(top_srcdir)/m4/error.m4 \
- $(top_srcdir)/m4/euidaccess-stat.m4 \
- $(top_srcdir)/m4/euidaccess.m4 $(top_srcdir)/m4/exclude.m4 \
- $(top_srcdir)/m4/exitfail.m4 $(top_srcdir)/m4/extensions.m4 \
- $(top_srcdir)/m4/fchdir.m4 $(top_srcdir)/m4/fcntl-safer.m4 \
- $(top_srcdir)/m4/fcntl_h.m4 $(top_srcdir)/m4/fd-reopen.m4 \
- $(top_srcdir)/m4/file-type.m4 $(top_srcdir)/m4/fileblocks.m4 \
- $(top_srcdir)/m4/filemode.m4 $(top_srcdir)/m4/filenamecat.m4 \
- $(top_srcdir)/m4/flexmember.m4 $(top_srcdir)/m4/fnmatch.m4 \
- $(top_srcdir)/m4/fpending.m4 $(top_srcdir)/m4/fprintftime.m4 \
- $(top_srcdir)/m4/free.m4 $(top_srcdir)/m4/fstypename.m4 \
- $(top_srcdir)/m4/fsusage.m4 $(top_srcdir)/m4/ftruncate.m4 \
- $(top_srcdir)/m4/fts.m4 $(top_srcdir)/m4/getaddrinfo.m4 \
- $(top_srcdir)/m4/getcwd-abort-bug.m4 \
- $(top_srcdir)/m4/getcwd-path-max.m4 $(top_srcdir)/m4/getcwd.m4 \
- $(top_srcdir)/m4/getdate.m4 $(top_srcdir)/m4/getdelim.m4 \
- $(top_srcdir)/m4/getgroups.m4 $(top_srcdir)/m4/gethostname.m4 \
- $(top_srcdir)/m4/gethrxtime.m4 $(top_srcdir)/m4/getline.m4 \
- $(top_srcdir)/m4/getloadavg.m4 $(top_srcdir)/m4/getndelim2.m4 \
- $(top_srcdir)/m4/getopt.m4 $(top_srcdir)/m4/getpagesize.m4 \
- $(top_srcdir)/m4/getpass.m4 $(top_srcdir)/m4/gettext.m4 \
- $(top_srcdir)/m4/gettime.m4 $(top_srcdir)/m4/gettimeofday.m4 \
- $(top_srcdir)/m4/getugroups.m4 \
- $(top_srcdir)/m4/getusershell.m4 $(top_srcdir)/m4/glibc21.m4 \
- $(top_srcdir)/m4/gnulib-common.m4 \
- $(top_srcdir)/m4/gnulib-comp.m4 \
- $(top_srcdir)/m4/group-member.m4 \
- $(top_srcdir)/m4/hard-locale.m4 $(top_srcdir)/m4/hash.m4 \
- $(top_srcdir)/m4/host-os.m4 $(top_srcdir)/m4/human.m4 \
- $(top_srcdir)/m4/i-ring.m4 $(top_srcdir)/m4/iconv.m4 \
- $(top_srcdir)/m4/idcache.m4 $(top_srcdir)/m4/inet_ntop.m4 \
- $(top_srcdir)/m4/inline.m4 $(top_srcdir)/m4/intmax_t.m4 \
- $(top_srcdir)/m4/inttostr.m4 $(top_srcdir)/m4/inttypes-pri.m4 \
- $(top_srcdir)/m4/inttypes.m4 $(top_srcdir)/m4/inttypes_h.m4 \
- $(top_srcdir)/m4/isapipe.m4 $(top_srcdir)/m4/jm-macros.m4 \
- $(top_srcdir)/m4/jm-winsz1.m4 $(top_srcdir)/m4/jm-winsz2.m4 \
- $(top_srcdir)/m4/lchmod.m4 $(top_srcdir)/m4/lchown.m4 \
- $(top_srcdir)/m4/lib-check.m4 $(top_srcdir)/m4/lib-ignore.m4 \
- $(top_srcdir)/m4/lib-ld.m4 $(top_srcdir)/m4/lib-link.m4 \
- $(top_srcdir)/m4/lib-prefix.m4 $(top_srcdir)/m4/link-follow.m4 \
- $(top_srcdir)/m4/localcharset.m4 \
- $(top_srcdir)/m4/long-options.m4 \
- $(top_srcdir)/m4/longdouble.m4 $(top_srcdir)/m4/longlong.m4 \
- $(top_srcdir)/m4/ls-mntd-fs.m4 $(top_srcdir)/m4/lstat.m4 \
- $(top_srcdir)/m4/mbchar.m4 $(top_srcdir)/m4/mbiter.m4 \
- $(top_srcdir)/m4/mbrtowc.m4 $(top_srcdir)/m4/mbscasecmp.m4 \
- $(top_srcdir)/m4/mbstate_t.m4 $(top_srcdir)/m4/mbswidth.m4 \
- $(top_srcdir)/m4/md5.m4 $(top_srcdir)/m4/memcasecmp.m4 \
- $(top_srcdir)/m4/memchr.m4 $(top_srcdir)/m4/memcmp.m4 \
- $(top_srcdir)/m4/memcoll.m4 $(top_srcdir)/m4/memcpy.m4 \
- $(top_srcdir)/m4/memmove.m4 $(top_srcdir)/m4/mempcpy.m4 \
- $(top_srcdir)/m4/memrchr.m4 $(top_srcdir)/m4/memset.m4 \
- $(top_srcdir)/m4/memxfrm.m4 $(top_srcdir)/m4/mkancesdirs.m4 \
- $(top_srcdir)/m4/mkdir-p.m4 $(top_srcdir)/m4/mkdir-slash.m4 \
- $(top_srcdir)/m4/mkstemp.m4 $(top_srcdir)/m4/mktime.m4 \
- $(top_srcdir)/m4/modechange.m4 $(top_srcdir)/m4/mountlist.m4 \
- $(top_srcdir)/m4/mpsort.m4 $(top_srcdir)/m4/nanosleep.m4 \
- $(top_srcdir)/m4/netinet_in_h.m4 $(top_srcdir)/m4/nls.m4 \
- $(top_srcdir)/m4/openat.m4 $(top_srcdir)/m4/pathmax.m4 \
- $(top_srcdir)/m4/perl.m4 $(top_srcdir)/m4/physmem.m4 \
- $(top_srcdir)/m4/po.m4 $(top_srcdir)/m4/posixtm.m4 \
- $(top_srcdir)/m4/posixver.m4 $(top_srcdir)/m4/prereq.m4 \
- $(top_srcdir)/m4/progtest.m4 $(top_srcdir)/m4/putenv.m4 \
- $(top_srcdir)/m4/quote.m4 $(top_srcdir)/m4/quotearg.m4 \
- $(top_srcdir)/m4/randint.m4 $(top_srcdir)/m4/randperm.m4 \
- $(top_srcdir)/m4/randread.m4 $(top_srcdir)/m4/readlink.m4 \
- $(top_srcdir)/m4/readtokens.m4 $(top_srcdir)/m4/readutmp.m4 \
- $(top_srcdir)/m4/regex.m4 \
- $(top_srcdir)/m4/rename-dest-slash.m4 \
- $(top_srcdir)/m4/rename.m4 $(top_srcdir)/m4/rmdir-errno.m4 \
- $(top_srcdir)/m4/rmdir.m4 $(top_srcdir)/m4/root-dev-ino.m4 \
- $(top_srcdir)/m4/rpmatch.m4 $(top_srcdir)/m4/safe-read.m4 \
- $(top_srcdir)/m4/safe-write.m4 $(top_srcdir)/m4/same.m4 \
- $(top_srcdir)/m4/save-cwd.m4 $(top_srcdir)/m4/savedir.m4 \
- $(top_srcdir)/m4/savewd.m4 $(top_srcdir)/m4/setenv.m4 \
- $(top_srcdir)/m4/settime.m4 $(top_srcdir)/m4/sha1.m4 \
- $(top_srcdir)/m4/sha256.m4 $(top_srcdir)/m4/sha512.m4 \
- $(top_srcdir)/m4/sig2str.m4 $(top_srcdir)/m4/snprintf.m4 \
- $(top_srcdir)/m4/socklen.m4 $(top_srcdir)/m4/sockpfaf.m4 \
- $(top_srcdir)/m4/ssize_t.m4 $(top_srcdir)/m4/st_dm_mode.m4 \
- $(top_srcdir)/m4/stat-prog.m4 $(top_srcdir)/m4/stat-time.m4 \
- $(top_srcdir)/m4/stdarg.m4 $(top_srcdir)/m4/stdbool.m4 \
- $(top_srcdir)/m4/stdint.m4 $(top_srcdir)/m4/stdint_h.m4 \
- $(top_srcdir)/m4/stdio-safer.m4 $(top_srcdir)/m4/stdio_h.m4 \
- $(top_srcdir)/m4/stdlib-safer.m4 $(top_srcdir)/m4/stdlib_h.m4 \
- $(top_srcdir)/m4/stpcpy.m4 $(top_srcdir)/m4/strcspn.m4 \
- $(top_srcdir)/m4/strdup.m4 $(top_srcdir)/m4/strftime.m4 \
- $(top_srcdir)/m4/string_h.m4 $(top_srcdir)/m4/strndup.m4 \
- $(top_srcdir)/m4/strnlen.m4 $(top_srcdir)/m4/strnumcmp.m4 \
- $(top_srcdir)/m4/strpbrk.m4 $(top_srcdir)/m4/strtod.m4 \
- $(top_srcdir)/m4/strtoimax.m4 $(top_srcdir)/m4/strtol.m4 \
- $(top_srcdir)/m4/strtoll.m4 $(top_srcdir)/m4/strtoul.m4 \
- $(top_srcdir)/m4/strtoull.m4 $(top_srcdir)/m4/strtoumax.m4 \
- $(top_srcdir)/m4/strverscmp.m4 \
- $(top_srcdir)/m4/sys_socket_h.m4 \
- $(top_srcdir)/m4/sys_stat_h.m4 $(top_srcdir)/m4/sys_time_h.m4 \
- $(top_srcdir)/m4/tempname.m4 $(top_srcdir)/m4/time_h.m4 \
- $(top_srcdir)/m4/time_r.m4 $(top_srcdir)/m4/timespec.m4 \
- $(top_srcdir)/m4/tm_gmtoff.m4 $(top_srcdir)/m4/tzset.m4 \
- $(top_srcdir)/m4/unicodeio.m4 $(top_srcdir)/m4/unistd-safer.m4 \
- $(top_srcdir)/m4/unistd_h.m4 $(top_srcdir)/m4/unlink-busy.m4 \
- $(top_srcdir)/m4/unlinkdir.m4 $(top_srcdir)/m4/unlocked-io.m4 \
- $(top_srcdir)/m4/uptime.m4 $(top_srcdir)/m4/userspec.m4 \
- $(top_srcdir)/m4/utimbuf.m4 $(top_srcdir)/m4/utime.m4 \
- $(top_srcdir)/m4/utimecmp.m4 $(top_srcdir)/m4/utimens.m4 \
- $(top_srcdir)/m4/utimes-null.m4 $(top_srcdir)/m4/utimes.m4 \
- $(top_srcdir)/m4/vasnprintf.m4 $(top_srcdir)/m4/vasprintf.m4 \
- $(top_srcdir)/m4/wchar.m4 $(top_srcdir)/m4/wchar_t.m4 \
- $(top_srcdir)/m4/wctype.m4 $(top_srcdir)/m4/wcwidth.m4 \
- $(top_srcdir)/m4/wint_t.m4 $(top_srcdir)/m4/xalloc.m4 \
- $(top_srcdir)/m4/xfts.m4 $(top_srcdir)/m4/xgetcwd.m4 \
- $(top_srcdir)/m4/xnanosleep.m4 $(top_srcdir)/m4/xstrndup.m4 \
- $(top_srcdir)/m4/xstrtod.m4 $(top_srcdir)/m4/xstrtol.m4 \
- $(top_srcdir)/m4/yesno.m4 $(top_srcdir)/configure.ac
-am__configure_deps = $(am__aclocal_m4_deps) $(CONFIGURE_DEPENDENCIES) \
- $(ACLOCAL_M4)
-mkinstalldirs = $(install_sh) -d
-CONFIG_HEADER = $(top_builddir)/lib/config.h
-CONFIG_CLEAN_FILES =
-SOURCES =
-DIST_SOURCES =
-DISTFILES = $(DIST_COMMON) $(DIST_SOURCES) $(TEXINFOS) $(EXTRA_DIST)
-ABSOLUTE_DIRENT_H = @ABSOLUTE_DIRENT_H@
-ABSOLUTE_FCNTL_H = @ABSOLUTE_FCNTL_H@
-ABSOLUTE_INTTYPES_H = @ABSOLUTE_INTTYPES_H@
-ABSOLUTE_NETINET_IN_H = @ABSOLUTE_NETINET_IN_H@
-ABSOLUTE_STDINT_H = @ABSOLUTE_STDINT_H@
-ABSOLUTE_STDIO_H = @ABSOLUTE_STDIO_H@
-ABSOLUTE_STDLIB_H = @ABSOLUTE_STDLIB_H@
-ABSOLUTE_STRING_H = @ABSOLUTE_STRING_H@
-ABSOLUTE_SYS_SOCKET_H = @ABSOLUTE_SYS_SOCKET_H@
-ABSOLUTE_SYS_STAT_H = @ABSOLUTE_SYS_STAT_H@
-ABSOLUTE_SYS_TIME_H = @ABSOLUTE_SYS_TIME_H@
-ABSOLUTE_TIME_H = @ABSOLUTE_TIME_H@
-ABSOLUTE_UNISTD_H = @ABSOLUTE_UNISTD_H@
-ABSOLUTE_WCHAR_H = @ABSOLUTE_WCHAR_H@
-ABSOLUTE_WCTYPE_H = @ABSOLUTE_WCTYPE_H@
-ACLOCAL = @ACLOCAL@
-ALLOCA = @ALLOCA@
-ALLOCA_H = @ALLOCA_H@
-AMTAR = @AMTAR@
-ARPA_INET_H = @ARPA_INET_H@
-AUTOCONF = @AUTOCONF@
-AUTOHEADER = @AUTOHEADER@
-AUTOMAKE = @AUTOMAKE@
-AWK = @AWK@
-BITSIZEOF_PTRDIFF_T = @BITSIZEOF_PTRDIFF_T@
-BITSIZEOF_SIG_ATOMIC_T = @BITSIZEOF_SIG_ATOMIC_T@
-BITSIZEOF_SIZE_T = @BITSIZEOF_SIZE_T@
-BITSIZEOF_WCHAR_T = @BITSIZEOF_WCHAR_T@
-BITSIZEOF_WINT_T = @BITSIZEOF_WINT_T@
-CC = @CC@
-CCDEPMODE = @CCDEPMODE@
-CFLAGS = @CFLAGS@
-CPP = @CPP@
-CPPFLAGS = @CPPFLAGS@
-CYGPATH_W = @CYGPATH_W@
-DEFAULT_POSIX2_VERSION = @DEFAULT_POSIX2_VERSION@
-DEFS = @DEFS@
-DEPDIR = @DEPDIR@
-DF_PROG = @DF_PROG@
-DIRENT_H = @DIRENT_H@
-ECHO_C = @ECHO_C@
-ECHO_N = @ECHO_N@
-ECHO_T = @ECHO_T@
-EGREP = @EGREP@
-EOVERFLOW = @EOVERFLOW@
-EXEEXT = @EXEEXT@
-FCNTL_H = @FCNTL_H@
-FNMATCH_H = @FNMATCH_H@
-GETLOADAVG_LIBS = @GETLOADAVG_LIBS@
-GETOPT_H = @GETOPT_H@
-GLIBC21 = @GLIBC21@
-GMSGFMT = @GMSGFMT@
-GMSGFMT_015 = @GMSGFMT_015@
-GNULIB_CHOWN = @GNULIB_CHOWN@
-GNULIB_DUP2 = @GNULIB_DUP2@
-GNULIB_FCHDIR = @GNULIB_FCHDIR@
-GNULIB_FPRINTF_POSIX = @GNULIB_FPRINTF_POSIX@
-GNULIB_FTRUNCATE = @GNULIB_FTRUNCATE@
-GNULIB_GETCWD = @GNULIB_GETCWD@
-GNULIB_GETLOGIN_R = @GNULIB_GETLOGIN_R@
-GNULIB_GETSUBOPT = @GNULIB_GETSUBOPT@
-GNULIB_IMAXABS = @GNULIB_IMAXABS@
-GNULIB_IMAXDIV = @GNULIB_IMAXDIV@
-GNULIB_MBSCASECMP = @GNULIB_MBSCASECMP@
-GNULIB_MBSCASESTR = @GNULIB_MBSCASESTR@
-GNULIB_MBSCHR = @GNULIB_MBSCHR@
-GNULIB_MBSCSPN = @GNULIB_MBSCSPN@
-GNULIB_MBSLEN = @GNULIB_MBSLEN@
-GNULIB_MBSNCASECMP = @GNULIB_MBSNCASECMP@
-GNULIB_MBSPBRK = @GNULIB_MBSPBRK@
-GNULIB_MBSPCASECMP = @GNULIB_MBSPCASECMP@
-GNULIB_MBSRCHR = @GNULIB_MBSRCHR@
-GNULIB_MBSSEP = @GNULIB_MBSSEP@
-GNULIB_MBSSPN = @GNULIB_MBSSPN@
-GNULIB_MBSSTR = @GNULIB_MBSSTR@
-GNULIB_MBSTOK_R = @GNULIB_MBSTOK_R@
-GNULIB_MEMMEM = @GNULIB_MEMMEM@
-GNULIB_MEMPCPY = @GNULIB_MEMPCPY@
-GNULIB_MEMRCHR = @GNULIB_MEMRCHR@
-GNULIB_MKDTEMP = @GNULIB_MKDTEMP@
-GNULIB_MKSTEMP = @GNULIB_MKSTEMP@
-GNULIB_PRINTF_POSIX = @GNULIB_PRINTF_POSIX@
-GNULIB_READLINK = @GNULIB_READLINK@
-GNULIB_SNPRINTF = @GNULIB_SNPRINTF@
-GNULIB_SPRINTF_POSIX = @GNULIB_SPRINTF_POSIX@
-GNULIB_STPCPY = @GNULIB_STPCPY@
-GNULIB_STPNCPY = @GNULIB_STPNCPY@
-GNULIB_STRCASESTR = @GNULIB_STRCASESTR@
-GNULIB_STRCHRNUL = @GNULIB_STRCHRNUL@
-GNULIB_STRDUP = @GNULIB_STRDUP@
-GNULIB_STRNDUP = @GNULIB_STRNDUP@
-GNULIB_STRNLEN = @GNULIB_STRNLEN@
-GNULIB_STRPBRK = @GNULIB_STRPBRK@
-GNULIB_STRSEP = @GNULIB_STRSEP@
-GNULIB_STRTOIMAX = @GNULIB_STRTOIMAX@
-GNULIB_STRTOK_R = @GNULIB_STRTOK_R@
-GNULIB_STRTOUMAX = @GNULIB_STRTOUMAX@
-GNULIB_VFPRINTF_POSIX = @GNULIB_VFPRINTF_POSIX@
-GNULIB_VPRINTF_POSIX = @GNULIB_VPRINTF_POSIX@
-GNULIB_VSNPRINTF = @GNULIB_VSNPRINTF@
-GNULIB_VSPRINTF_POSIX = @GNULIB_VSPRINTF_POSIX@
-GNU_PACKAGE = @GNU_PACKAGE@
-GREP = @GREP@
-HAVE_DECL_GETLOGIN_R = @HAVE_DECL_GETLOGIN_R@
-HAVE_DECL_IMAXABS = @HAVE_DECL_IMAXABS@
-HAVE_DECL_IMAXDIV = @HAVE_DECL_IMAXDIV@
-HAVE_DECL_MEMMEM = @HAVE_DECL_MEMMEM@
-HAVE_DECL_MEMRCHR = @HAVE_DECL_MEMRCHR@
-HAVE_DECL_SNPRINTF = @HAVE_DECL_SNPRINTF@
-HAVE_DECL_STRDUP = @HAVE_DECL_STRDUP@
-HAVE_DECL_STRNCASECMP = @HAVE_DECL_STRNCASECMP@
-HAVE_DECL_STRNDUP = @HAVE_DECL_STRNDUP@
-HAVE_DECL_STRNLEN = @HAVE_DECL_STRNLEN@
-HAVE_DECL_STRTOIMAX = @HAVE_DECL_STRTOIMAX@
-HAVE_DECL_STRTOK_R = @HAVE_DECL_STRTOK_R@
-HAVE_DECL_STRTOUMAX = @HAVE_DECL_STRTOUMAX@
-HAVE_DECL_VSNPRINTF = @HAVE_DECL_VSNPRINTF@
-HAVE_DUP2 = @HAVE_DUP2@
-HAVE_FTRUNCATE = @HAVE_FTRUNCATE@
-HAVE_GETSUBOPT = @HAVE_GETSUBOPT@
-HAVE_INTTYPES_H = @HAVE_INTTYPES_H@
-HAVE_LONG_LONG_INT = @HAVE_LONG_LONG_INT@
-HAVE_MEMPCPY = @HAVE_MEMPCPY@
-HAVE_MKDTEMP = @HAVE_MKDTEMP@
-HAVE_NETINET_IN_H = @HAVE_NETINET_IN_H@
-HAVE_READLINK = @HAVE_READLINK@
-HAVE_SIGNED_SIG_ATOMIC_T = @HAVE_SIGNED_SIG_ATOMIC_T@
-HAVE_SIGNED_WCHAR_T = @HAVE_SIGNED_WCHAR_T@
-HAVE_SIGNED_WINT_T = @HAVE_SIGNED_WINT_T@
-HAVE_STDINT_H = @HAVE_STDINT_H@
-HAVE_STPCPY = @HAVE_STPCPY@
-HAVE_STPNCPY = @HAVE_STPNCPY@
-HAVE_STRCASECMP = @HAVE_STRCASECMP@
-HAVE_STRCASESTR = @HAVE_STRCASESTR@
-HAVE_STRCHRNUL = @HAVE_STRCHRNUL@
-HAVE_STRNDUP = @HAVE_STRNDUP@
-HAVE_STRPBRK = @HAVE_STRPBRK@
-HAVE_STRSEP = @HAVE_STRSEP@
-HAVE_STRUCT_TIMEVAL = @HAVE_STRUCT_TIMEVAL@
-HAVE_SYS_BITYPES_H = @HAVE_SYS_BITYPES_H@
-HAVE_SYS_INTTYPES_H = @HAVE_SYS_INTTYPES_H@
-HAVE_SYS_SOCKET_H = @HAVE_SYS_SOCKET_H@
-HAVE_SYS_TIME_H = @HAVE_SYS_TIME_H@
-HAVE_SYS_TYPES_H = @HAVE_SYS_TYPES_H@
-HAVE_UNISTD_H = @HAVE_UNISTD_H@
-HAVE_UNSIGNED_LONG_LONG_INT = @HAVE_UNSIGNED_LONG_LONG_INT@
-HAVE_WCTYPE_H = @HAVE_WCTYPE_H@
-HAVE_WINSOCK2_H = @HAVE_WINSOCK2_H@
-HAVE_WINT_T = @HAVE_WINT_T@
-HAVE_WS2TCPIP_H = @HAVE_WS2TCPIP_H@
-HAVE__BOOL = @HAVE__BOOL@
-HELP2MAN = @HELP2MAN@
-INSTALL = @INSTALL@
-INSTALL_DATA = @INSTALL_DATA@
-INSTALL_PROGRAM = @INSTALL_PROGRAM@
-INSTALL_SCRIPT = @INSTALL_SCRIPT@
-INSTALL_STRIP_PROGRAM = @INSTALL_STRIP_PROGRAM@
-INTLLIBS = @INTLLIBS@
-INTL_MACOSX_LIBS = @INTL_MACOSX_LIBS@
-INTTYPES_H = @INTTYPES_H@
-KMEM_GROUP = @KMEM_GROUP@
-LDFLAGS = @LDFLAGS@
-LIBCOREUTILS_LIBDEPS = @LIBCOREUTILS_LIBDEPS@
-LIBCOREUTILS_LTLIBDEPS = @LIBCOREUTILS_LTLIBDEPS@
-LIBICONV = @LIBICONV@
-LIBINTL = @LIBINTL@
-LIBOBJS = @LIBOBJS@
-LIBS = @LIBS@
-LIB_ACL = @LIB_ACL@
-LIB_ACL_TRIVIAL = @LIB_ACL_TRIVIAL@
-LIB_CLOCK_GETTIME = @LIB_CLOCK_GETTIME@
-LIB_CRYPT = @LIB_CRYPT@
-LIB_EACCESS = @LIB_EACCESS@
-LIB_FDATASYNC = @LIB_FDATASYNC@
-LIB_GETHRXTIME = @LIB_GETHRXTIME@
-LIB_NANOSLEEP = @LIB_NANOSLEEP@
-LN_S = @LN_S@
-LTLIBICONV = @LTLIBICONV@
-LTLIBINTL = @LTLIBINTL@
-LTLIBOBJS = @LTLIBOBJS@
-MAKEINFO = @MAKEINFO@
-MAN = @MAN@
-MKDIR_P = @MKDIR_P@
-MSGFMT = @MSGFMT@
-MSGFMT_015 = @MSGFMT_015@
-MSGMERGE = @MSGMERGE@
-NEED_SETGID = @NEED_SETGID@
-NETINET_IN_H = @NETINET_IN_H@
-OBJEXT = @OBJEXT@
-OPTIONAL_BIN_PROGS = @OPTIONAL_BIN_PROGS@
-PACKAGE = @PACKAGE@
-PACKAGE_BUGREPORT = @PACKAGE_BUGREPORT@
-PACKAGE_NAME = @PACKAGE_NAME@
-PACKAGE_STRING = @PACKAGE_STRING@
-PACKAGE_TARNAME = @PACKAGE_TARNAME@
-PACKAGE_VERSION = @PACKAGE_VERSION@
-PATH_SEPARATOR = @PATH_SEPARATOR@
-PERL = @PERL@
-POSUB = @POSUB@
-POW_LIB = @POW_LIB@
-PRIPTR_PREFIX = @PRIPTR_PREFIX@
-PRI_MACROS_BROKEN = @PRI_MACROS_BROKEN@
-PTRDIFF_T_SUFFIX = @PTRDIFF_T_SUFFIX@
-RANLIB = @RANLIB@
-REPLACE_CHOWN = @REPLACE_CHOWN@
-REPLACE_FCHDIR = @REPLACE_FCHDIR@
-REPLACE_FPRINTF = @REPLACE_FPRINTF@
-REPLACE_GETCWD = @REPLACE_GETCWD@
-REPLACE_GETTIMEOFDAY = @REPLACE_GETTIMEOFDAY@
-REPLACE_LOCALTIME_R = @REPLACE_LOCALTIME_R@
-REPLACE_MKSTEMP = @REPLACE_MKSTEMP@
-REPLACE_NANOSLEEP = @REPLACE_NANOSLEEP@
-REPLACE_PRINTF = @REPLACE_PRINTF@
-REPLACE_SNPRINTF = @REPLACE_SNPRINTF@
-REPLACE_SPRINTF = @REPLACE_SPRINTF@
-REPLACE_STRPTIME = @REPLACE_STRPTIME@
-REPLACE_TIMEGM = @REPLACE_TIMEGM@
-REPLACE_VFPRINTF = @REPLACE_VFPRINTF@
-REPLACE_VPRINTF = @REPLACE_VPRINTF@
-REPLACE_VSNPRINTF = @REPLACE_VSNPRINTF@
-REPLACE_VSPRINTF = @REPLACE_VSPRINTF@
-SEQ_LIBM = @SEQ_LIBM@
-SET_MAKE = @SET_MAKE@
-SHELL = @SHELL@
-SIG_ATOMIC_T_SUFFIX = @SIG_ATOMIC_T_SUFFIX@
-SIZE_T_SUFFIX = @SIZE_T_SUFFIX@
-STDBOOL_H = @STDBOOL_H@
-STDINT_H = @STDINT_H@
-STRIP = @STRIP@
-SYS_SOCKET_H = @SYS_SOCKET_H@
-SYS_STAT_H = @SYS_STAT_H@
-SYS_TIME_H = @SYS_TIME_H@
-SYS_TIME_H_DEFINES_STRUCT_TIMESPEC = @SYS_TIME_H_DEFINES_STRUCT_TIMESPEC@
-TIME_H_DEFINES_STRUCT_TIMESPEC = @TIME_H_DEFINES_STRUCT_TIMESPEC@
-U = @U@
-USE_NLS = @USE_NLS@
-VERSION = @VERSION@
-WCHAR_H = @WCHAR_H@
-WCHAR_T_SUFFIX = @WCHAR_T_SUFFIX@
-WCTYPE_H = @WCTYPE_H@
-WINT_T_SUFFIX = @WINT_T_SUFFIX@
-XGETTEXT = @XGETTEXT@
-XGETTEXT_015 = @XGETTEXT_015@
-YACC = @YACC@
-YFLAGS = @YFLAGS@
-abs_builddir = @abs_builddir@
-abs_srcdir = @abs_srcdir@
-abs_top_builddir = @abs_top_builddir@
-abs_top_srcdir = @abs_top_srcdir@
-ac_ct_CC = @ac_ct_CC@
-am__include = @am__include@
-am__leading_dot = @am__leading_dot@
-am__quote = @am__quote@
-am__tar = @am__tar@
-am__untar = @am__untar@
-bindir = @bindir@
-build = @build@
-build_alias = @build_alias@
-build_cpu = @build_cpu@
-build_os = @build_os@
-build_vendor = @build_vendor@
-builddir = @builddir@
-datadir = @datadir@
-datarootdir = @datarootdir@
-docdir = @docdir@
-dvidir = @dvidir@
-exec_prefix = @exec_prefix@
-gl_LIBOBJS = @gl_LIBOBJS@
-gl_LTLIBOBJS = @gl_LTLIBOBJS@
-host = @host@
-host_alias = @host_alias@
-host_cpu = @host_cpu@
-host_os = @host_os@
-host_vendor = @host_vendor@
-htmldir = @htmldir@
-includedir = @includedir@
-infodir = @infodir@
-install_sh = @install_sh@
-libdir = @libdir@
-libexecdir = @libexecdir@
-localedir = @localedir@
-localstatedir = @localstatedir@
-mandir = @mandir@
-mkdir_p = @mkdir_p@
-oldincludedir = @oldincludedir@
-pdfdir = @pdfdir@
-prefix = @prefix@
-program_transform_name = @program_transform_name@
-psdir = @psdir@
-sbindir = @sbindir@
-sharedstatedir = @sharedstatedir@
-srcdir = @srcdir@
-sysconfdir = @sysconfdir@
-target_alias = @target_alias@
-top_builddir = @top_builddir@
-top_srcdir = @top_srcdir@
-EXTRA_DIST = $(TESTS)
-TESTS_ENVIRONMENT = \
- top_srcdir=$(top_srcdir) \
- srcdir=$(srcdir) \
- PERL="$(PERL)" \
- CU_TEST_NAME=`basename $(abs_srcdir)`,$$tst \
- PATH="$(VG_PATH_PREFIX)`pwd`/../../src$(PATH_SEPARATOR)$$PATH" \
- PROG=sha1sum
-
-TESTS = basic-1 sample-vec
-all: all-am
-
-.SUFFIXES:
-$(srcdir)/Makefile.in: $(srcdir)/Makefile.am $(am__configure_deps)
- @for dep in $?; do \
- case '$(am__configure_deps)' in \
- *$$dep*) \
- cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh \
- && exit 0; \
- exit 1;; \
- esac; \
- done; \
- echo ' cd $(top_srcdir) && $(AUTOMAKE) --gnu tests/sha1sum/Makefile'; \
- cd $(top_srcdir) && \
- $(AUTOMAKE) --gnu tests/sha1sum/Makefile
-.PRECIOUS: Makefile
-Makefile: $(srcdir)/Makefile.in $(top_builddir)/config.status
- @case '$?' in \
- *config.status*) \
- cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh;; \
- *) \
- echo ' cd $(top_builddir) && $(SHELL) ./config.status $(subdir)/$@ $(am__depfiles_maybe)'; \
- cd $(top_builddir) && $(SHELL) ./config.status $(subdir)/$@ $(am__depfiles_maybe);; \
- esac;
-
-$(top_builddir)/config.status: $(top_srcdir)/configure $(CONFIG_STATUS_DEPENDENCIES)
- cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh
-
-$(top_srcdir)/configure: $(am__configure_deps)
- cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh
-$(ACLOCAL_M4): $(am__aclocal_m4_deps)
- cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh
-tags: TAGS
-TAGS:
-
-ctags: CTAGS
-CTAGS:
-
-
-check-TESTS: $(TESTS)
- @failed=0; all=0; xfail=0; xpass=0; skip=0; ws='[ ]'; \
- srcdir=$(srcdir); export srcdir; \
- list=' $(TESTS) '; \
- if test -n "$$list"; then \
- for tst in $$list; do \
- if test -f ./$$tst; then dir=./; \
- elif test -f $$tst; then dir=; \
- else dir="$(srcdir)/"; fi; \
- if $(TESTS_ENVIRONMENT) $${dir}$$tst; then \
- all=`expr $$all + 1`; \
- case " $(XFAIL_TESTS) " in \
- *$$ws$$tst$$ws*) \
- xpass=`expr $$xpass + 1`; \
- failed=`expr $$failed + 1`; \
- echo "XPASS: $$tst"; \
- ;; \
- *) \
- echo "PASS: $$tst"; \
- ;; \
- esac; \
- elif test $$? -ne 77; then \
- all=`expr $$all + 1`; \
- case " $(XFAIL_TESTS) " in \
- *$$ws$$tst$$ws*) \
- xfail=`expr $$xfail + 1`; \
- echo "XFAIL: $$tst"; \
- ;; \
- *) \
- failed=`expr $$failed + 1`; \
- echo "FAIL: $$tst"; \
- ;; \
- esac; \
- else \
- skip=`expr $$skip + 1`; \
- echo "SKIP: $$tst"; \
- fi; \
- done; \
- if test "$$failed" -eq 0; then \
- if test "$$xfail" -eq 0; then \
- banner="All $$all tests passed"; \
- else \
- banner="All $$all tests behaved as expected ($$xfail expected failures)"; \
- fi; \
- else \
- if test "$$xpass" -eq 0; then \
- banner="$$failed of $$all tests failed"; \
- else \
- banner="$$failed of $$all tests did not behave as expected ($$xpass unexpected passes)"; \
- fi; \
- fi; \
- dashes="$$banner"; \
- skipped=""; \
- if test "$$skip" -ne 0; then \
- skipped="($$skip tests were not run)"; \
- test `echo "$$skipped" | wc -c` -le `echo "$$banner" | wc -c` || \
- dashes="$$skipped"; \
- fi; \
- report=""; \
- if test "$$failed" -ne 0 && test -n "$(PACKAGE_BUGREPORT)"; then \
- report="Please report to $(PACKAGE_BUGREPORT)"; \
- test `echo "$$report" | wc -c` -le `echo "$$banner" | wc -c` || \
- dashes="$$report"; \
- fi; \
- dashes=`echo "$$dashes" | sed s/./=/g`; \
- echo "$$dashes"; \
- echo "$$banner"; \
- test -z "$$skipped" || echo "$$skipped"; \
- test -z "$$report" || echo "$$report"; \
- echo "$$dashes"; \
- test "$$failed" -eq 0; \
- else :; fi
-
-distdir: $(DISTFILES)
- @srcdirstrip=`echo "$(srcdir)" | sed 's/[].[^$$\\*]/\\\\&/g'`; \
- topsrcdirstrip=`echo "$(top_srcdir)" | sed 's/[].[^$$\\*]/\\\\&/g'`; \
- list='$(DISTFILES)'; \
- dist_files=`for file in $$list; do echo $$file; done | \
- sed -e "s|^$$srcdirstrip/||;t" \
- -e "s|^$$topsrcdirstrip/|$(top_builddir)/|;t"`; \
- case $$dist_files in \
- */*) $(MKDIR_P) `echo "$$dist_files" | \
- sed '/\//!d;s|^|$(distdir)/|;s,/[^/]*$$,,' | \
- sort -u` ;; \
- esac; \
- for file in $$dist_files; do \
- if test -f $$file || test -d $$file; then d=.; else d=$(srcdir); fi; \
- if test -d $$d/$$file; then \
- dir=`echo "/$$file" | sed -e 's,/[^/]*$$,,'`; \
- if test -d $(srcdir)/$$file && test $$d != $(srcdir); then \
- cp -pR $(srcdir)/$$file $(distdir)$$dir || exit 1; \
- fi; \
- cp -pR $$d/$$file $(distdir)$$dir || exit 1; \
- else \
- test -f $(distdir)/$$file \
- || cp -p $$d/$$file $(distdir)/$$file \
- || exit 1; \
- fi; \
- done
-check-am: all-am
- $(MAKE) $(AM_MAKEFLAGS) check-TESTS
-check: check-am
-all-am: Makefile
-installdirs:
-install: install-am
-install-exec: install-exec-am
-install-data: install-data-am
-uninstall: uninstall-am
-
-install-am: all-am
- @$(MAKE) $(AM_MAKEFLAGS) install-exec-am install-data-am
-
-installcheck: installcheck-am
-install-strip:
- $(MAKE) $(AM_MAKEFLAGS) INSTALL_PROGRAM="$(INSTALL_STRIP_PROGRAM)" \
- install_sh_PROGRAM="$(INSTALL_STRIP_PROGRAM)" INSTALL_STRIP_FLAG=-s \
- `test -z '$(STRIP)' || \
- echo "INSTALL_PROGRAM_ENV=STRIPPROG='$(STRIP)'"` install
-mostlyclean-generic:
-
-clean-generic:
-
-distclean-generic:
- -test -z "$(CONFIG_CLEAN_FILES)" || rm -f $(CONFIG_CLEAN_FILES)
-
-maintainer-clean-generic:
- @echo "This command is intended for maintainers to use"
- @echo "it deletes files that may require special tools to rebuild."
-clean: clean-am
-
-clean-am: clean-generic mostlyclean-am
-
-distclean: distclean-am
- -rm -f Makefile
-distclean-am: clean-am distclean-generic
-
-dvi: dvi-am
-
-dvi-am:
-
-html: html-am
-
-info: info-am
-
-info-am:
-
-install-data-am:
-
-install-dvi: install-dvi-am
-
-install-exec-am:
-
-install-html: install-html-am
-
-install-info: install-info-am
-
-install-man:
-
-install-pdf: install-pdf-am
-
-install-ps: install-ps-am
-
-installcheck-am:
-
-maintainer-clean: maintainer-clean-am
- -rm -f Makefile
-maintainer-clean-am: distclean-am maintainer-clean-generic
-
-mostlyclean: mostlyclean-am
-
-mostlyclean-am: mostlyclean-generic
-
-pdf: pdf-am
-
-pdf-am:
-
-ps: ps-am
-
-ps-am:
-
-uninstall-am:
-
-.MAKE: install-am install-strip
-
-.PHONY: all all-am check check-TESTS check-am clean clean-generic \
- distclean distclean-generic distdir dvi dvi-am html html-am \
- info info-am install install-am install-data install-data-am \
- install-dvi install-dvi-am install-exec install-exec-am \
- install-html install-html-am install-info install-info-am \
- install-man install-pdf install-pdf-am install-ps \
- install-ps-am install-strip installcheck installcheck-am \
- installdirs maintainer-clean maintainer-clean-generic \
- mostlyclean mostlyclean-generic pdf pdf-am ps ps-am uninstall \
- uninstall-am
-
-# Tell versions [3.59,3.63) of GNU make to not export all variables.
-# Otherwise a system limit (for SysV at least) may be exceeded.
-.NOEXPORT:
diff --git a/tests/sha1sum/basic-1 b/tests/sha1sum/basic-1
deleted file mode 100755
index 35562bd..0000000
--- a/tests/sha1sum/basic-1
+++ /dev/null
@@ -1,91 +0,0 @@
-#!/bin/sh
-# Test "sha1sum".
-
-# Copyright (C) 2000, 2003, 2005, 2006 Free Software Foundation, Inc.
-
-# This program is free software; you can redistribute it and/or modify
-# it under the terms of the GNU General Public License as published by
-# the Free Software Foundation; either version 2 of the License, or
-# (at your option) any later version.
-
-# This program is distributed in the hope that it will be useful,
-# but WITHOUT ANY WARRANTY; without even the implied warranty of
-# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
-# GNU General Public License for more details.
-
-# You should have received a copy of the GNU General Public License
-# along with this program; if not, write to the Free Software
-# Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA
-# 02110-1301, USA.
-
-: ${PERL=perl}
-: ${srcdir=.}
-
-$PERL -e 1 > /dev/null 2>&1 || {
- echo 1>&2 "$0: configure didn't find a usable version of Perl," \
- "so can't run this test"
- exit 77
-}
-
-exec $PERL -w -I$srcdir/.. -MCoreutils -- - <<\EOF
-require 5.003;
-use strict;
-
-(my $program_name = $0) =~ s|.*/||;
-
-# Turn off localisation of executable's ouput.
-@ENV{qw(LANGUAGE LANG LC_ALL)} = ('C') x 3;
-
-my $sha_degenerate = "da39a3ee5e6b4b0d3255bfef95601890afd80709";
-
-my @Tests =
- (
- ['s1', {IN=> {f=> ''}},
- {OUT=>"$sha_degenerate f\n"}],
- ['s2', {IN=> {f=> 'a'}},
- {OUT=>"86f7e437faa5a7fce15d1ddcb9eaeaea377667b8 f\n"}],
- ['s3', {IN=> {f=> 'abc'}},
- {OUT=>"a9993e364706816aba3e25717850c26c9cd0d89d f\n"}],
- ['s4',
- {IN=> {f=> 'abcdbcdecdefdefgefghfghighijhijkijkljklmklmnlmnomnopnopq'}},
- {OUT=>"84983e441c3bd26ebaae4aa1f95129e5e54670f1 f\n"}],
- ['s5', {IN=> {f=> 'abcdefghijklmnopqrstuvwxyz'}},
- {OUT=>"32d10c7b8cf96570ca04ce37f2a19d84240d3a89 f\n"}],
- ['s6', {IN=> {f=> join ('', 'A'..'Z', 'a'..'z', '0'..'9')}},
- {OUT=>"761c457bf73b14d27e9e9265c46f4b4dda11f940 f\n"}],
- ['s7', {IN=> {f=> '1234567890' x 8}},
- {OUT=>"50abf5706a150990a08b2c5ea40fa0e585554732 f\n"}],
- ['million-a', {IN=> {f=> 'a' x 1000000}},
- {OUT=>"34aa973cd4c4daa4f61eeb2bdbad27316534016f f\n"}],
- ['bs-sha', {IN=> {".\\foo"=> ''}},
- {OUT=>"\\$sha_degenerate .\\\\foo\n"}],
- # The sha1sum and md5sum drivers share a lot of code.
- # Ensure that sha1sum does *not* share the part that makes
- # md5sum accept BSD format.
- ['check-bsd', '--check', {IN=> {'f.md5' => "MD5 (f) = $sha_degenerate\n"}},
- {AUX=> {f=> ''}},
- {ERR=>"sha1sum: f.md5: no properly formatted "
- . "SHA1 checksum lines found\n"},
- {EXIT=> 1}],
- ['check-bsd2', '--check',
- {IN=> {'f.sha1' => "SHA1 (f) = $sha_degenerate\n"}},
- {AUX=> {f=> ''}}, {OUT=>"f: OK\n"}],
- ['check-bsd3', '--check', '--status',
- {IN=> {'f.sha1' => "SHA1 (f) = $sha_degenerate\n"}},
- {AUX=> {f=> 'bar'}}, {EXIT=> 1}],
- );
-
-# Insert the `--text' argument for each test.
-my $t;
-foreach $t (@Tests)
- {
- splice @$t, 1, 0, '--text' unless @$t[1] =~ /--check/;
- }
-
-my $save_temps = $ENV{DEBUG};
-my $verbose = $ENV{VERBOSE};
-
-my $prog = $ENV{PROG} || die "$0: \$PROG not specified in environment\n";
-my $fail = run_tests ($program_name, $prog, \@Tests, $save_temps, $verbose);
-exit $fail;
-EOF
diff --git a/tests/sha1sum/sample-vec b/tests/sha1sum/sample-vec
deleted file mode 100755
index 86dfd4b..0000000
--- a/tests/sha1sum/sample-vec
+++ /dev/null
@@ -1,548 +0,0 @@
-#!/bin/sh
-# Sample vectors for "sha1sum".
-
-# Copyright (C) 2000, 2001, 2003, 2005 Free Software Foundation, Inc.
-
-# This program is free software; you can redistribute it and/or modify
-# it under the terms of the GNU General Public License as published by
-# the Free Software Foundation; either version 2 of the License, or
-# (at your option) any later version.
-
-# This program is distributed in the hope that it will be useful,
-# but WITHOUT ANY WARRANTY; without even the implied warranty of
-# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
-# GNU General Public License for more details.
-
-# You should have received a copy of the GNU General Public License
-# along with this program; if not, write to the Free Software
-# Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA
-# 02110-1301, USA.
-
-: ${PERL=perl}
-: ${srcdir=.}
-
-$PERL -e 1 > /dev/null 2>&1 || {
- echo 1>&2 "$0: configure didn't find a usable version of Perl," \
- "so can't run this test"
- exit 77
-}
-
-exec $PERL -w -I$srcdir/.. -MCoreutils -- - <<\EOF
-require 5.003;
-use strict;
-
-(my $program_name = $0) =~ s|.*/||;
-
-# Turn off localisation of executable's ouput.
-@ENV{qw(LANGUAGE LANG LC_ALL)} = ('C') x 3;
-
-# The data from which these tests were derived came from here:
-# http://csrc.nist.gov/cryptval/shs/sha1-vectors.zip
-
-my @Tests =
- (
- ['1', {IN=> {f=> '0 1 ^'}},
- {OUT=>'DA39A3EE5E6B4B0D3255BFEF95601890AFD80709'}],
- ['2', {IN=> {f=> '5 0 2 1 2 1 2 ^'}},
- {OUT=>'3CDF2936DA2FC556BFA533AB1EB59CE710AC80E5'}],
- ['3', {IN=> {f=> '5 0 1 3 4 4 4 ^'}},
- {OUT=>'19C1E2048FA7393CFBF2D310AD8209EC11D996E5'}],
- ['4', {IN=> {f=> '7 0 4 3 4 4 1 4 4 ^'}},
- {OUT=>'CA775D8C80FAA6F87FA62BECA6CA6089D63B56E5'}],
- ['5', {IN=> {f=> '10 0 4 1 5 3 4 4 3 1 3 4 ^'}},
- {OUT=>'71AC973D0E4B50AE9E5043FF4D615381120A25A0'}],
- ['6', {IN=> {f=> '10 0 3 1 6 5 5 1 3 6 6 4 ^'}},
- {OUT=>'A6B5B9F854CFB76701C3BDDBF374B3094EA49CBA'}],
- ['7', {IN=> {f=> '13 1 3 2 5 3 3 3 4 6 6 1 4 6 2 ^'}},
- {OUT=>'D87A0EE74E4B9AD72E6847C87BDEEB3D07844380'}],
- ['8', {IN=> {f=> '16 1 3 5 5 1 2 1 3 3 6 3 5 2 3 5 7 2 ^'}},
- {OUT=>'1976B8DD509FE66BF09C9A8D33534D4EF4F63BFD'}],
- ['9', {IN=> {f=> '15 1 8 1 5 3 2 7 4 5 6 7 3 3 1 6 3 ^'}},
- {OUT=>'5A78F439B6DB845BB8A558E4CEB106CD7B7FF783'}],
- ['10', {IN=> {f=> '15 1 4 6 8 2 1 4 2 5 1 6 8 8 6 4 7 ^'}},
- {OUT=>'F871BCE62436C1E280357416695EE2EF9B83695C'}],
- ['11', {IN=> {f=> '18 1 1 2 7 3 8 6 7 5 4 3 4 3 5 3 3 2 6 8 ^'}},
- {OUT=>'62B243D1B780E1D31CF1BA2DE3F01C72AEEA0E47'}],
- ['12', {IN=> {f=> '16 0 9 8 1 8 1 7 6 7 7 1 2 6 9 5 4 7 ^'}},
- {OUT=>'1698994A273404848E56E7FDA4457B5900DE1342'}],
- ['13', {IN=> {f=> '18 0 7 1 7 3 9 4 7 7 5 2 8 1 7 8 2 7 2 9 ^'}},
- {OUT=>'056F4CDC02791DA7ED1EB2303314F7667518DEEF'}],
- ['14', {IN=> {f=> '19 1 2 3 1 8 8 6 9 10 3 10 8 9 2 4 1 5 1 5 9 ^'}},
- {OUT=>'9FE2DA967BD8441EEA1C32DF68DDAA9DC1FC8E4B'}],
- ['15', {IN=> {f=> '19 1 8 5 4 8 1 3 9 5 7 7 2 7 2 7 8 7 4 8 10 ^'}},
- {OUT=>'73A31777B4ACE9384EFA8BBEAD45C51A71ABA6DD'}],
- ['16', {IN=> {f=> '20 1 1 9 7 4 1 4 5 1 10 8 6 4 4 9 9 9 8 2 9 10 ^'}},
- {OUT=>'3F9D7C4E2384EDDABFF5DD8A31E23DE3D03F42AC'}],
- ['17', {IN=> {f=> '19 1 11 6 7 7 2 6 2 6 10 6 9 10 5 11 1 6 8 11 4 ^'}},
- {OUT=>'4814908F72B93FFD011135BEE347DE9A08DA838F'}],
- ['18', {IN=> {f=> '22 0 10 5 10 3 7 8 9 9 1 1 1 10 2 1 5 10 2 9 9 9 7 8 ^'}},
- {OUT=>'0978374B67A412A3102C5AA0B10E1A6596FC68EB'}],
- ['19', {IN=> {f=> '21 0 1 10 1 6 9 4 2 5 2 11 8 12 12 9 8 1 3 10 7 11 12 ^'}},
- {OUT=>'44AD6CB618BD935460D46D3F921D87B99AB91C1E'}],
- ['20', {IN=> {f=> '24 1 3 9 5 12 3 4 2 9 12 11 6 6 1 1 9 5 9 1 4 9 4 10 8 9 ^'}},
- {OUT=>'02DC989AF265B09CF8485640842128DCF95E9F39'}],
- ['21', {IN=> {f=> '25 1 3 2 3 11 1 12 5 6 2 7 8 4 8 8 9 9 8 4 9 1 4 8 10 9 9 ^'}},
- {OUT=>'67507B8D497B35D6E99FC01976D73F54AECA75CF'}],
- ['22', {IN=> {f=> '23 0 11 10 7 10 10 6 10 9 4 5 10 5 8 4 1 10 12 4 6 1 8 11 6 ^'}},
- {OUT=>'1EAE0373C1317CB60C36A42A867B716039D441F5'}],
- ['23', {IN=> {f=> '22 0 12 8 10 4 3 8 5 5 7 11 13 11 12 11 4 12 3 6 5 11 10 5 ^'}},
- {OUT=>'9C3834589E5BFFAC9F50950E0199B3EC2620BEC8'}],
- ['24', {IN=> {f=> '26 1 10 9 6 9 7 2 10 4 4 5 5 2 12 13 5 3 1 10 1 4 7 8 13 13 12 9 ^'}},
- {OUT=>'209F7ABC7F3B878EE46CDF3A1FBB9C21C3474F32'}],
- ['25', {IN=> {f=> '31 0 2 6 5 4 7 3 10 6 13 6 3 9 6 2 10 5 3 8 4 1 11 3 5 3 7 11 1 12 9 12 5 ^'}},
- {OUT=>'05FC054B00D97753A9B3E2DA8FBBA3EE808CEF22'}],
- ['26', {IN=> {f=> '27 1 14 5 1 3 7 2 3 9 3 4 14 4 4 10 8 5 14 1 11 12 12 10 4 13 7 11 9 ^'}},
- {OUT=>'0C4980EA3A46C757DFBFC5BAA38AC6C8E72DDCE7'}],
- ['27', {IN=> {f=> '30 1 4 9 5 5 8 9 5 10 4 2 4 7 9 9 6 3 5 1 8 3 2 13 3 14 9 8 9 10 14 10 ^'}},
- {OUT=>'96A460D2972D276928B69864445BEA353BDCFFD2'}],
- ['28', {IN=> {f=> '27 0 12 9 5 8 7 2 14 12 3 8 14 6 6 4 7 5 7 10 7 11 10 1 9 6 7 12 14 ^'}},
- {OUT=>'F3EF04D8FA8C6FA9850F394A4554C080956FA64B'}],
- ['29', {IN=> {f=> '24 0 12 9 9 2 11 13 12 11 11 6 14 13 10 5 6 8 10 4 3 11 11 14 5 14 ^'}},
- {OUT=>'F2A31D875D1D7B30874D416C4D2EA6BAF0FFBAFE'}],
- ['30', {IN=> {f=> '24 0 15 4 5 3 8 12 15 8 14 15 9 12 12 3 10 13 6 11 10 4 13 14 8 8 ^'}},
- {OUT=>'F4942D3B9E9588DCFDC6312A84DF75D05F111C20'}],
- ['31', {IN=> {f=> '28 1 1 8 1 5 11 4 9 12 4 13 15 5 9 11 7 14 11 1 11 7 8 8 11 1 13 15 12 13 ^'}},
- {OUT=>'310207DF35B014E4676D30806FA34424813734DD'}],
- ['32', {IN=> {f=> '32 1 5 8 3 8 10 7 8 1 5 13 12 14 5 3 6 4 12 15 6 6 10 11 13 9 1 11 6 10 3 7 14 2 ^'}},
- {OUT=>'4DA1955B2FA7C7E74E3F47D7360CE530BBF57CA3'}],
- ['33', {IN=> {f=> '31 0 10 3 5 1 14 11 11 16 1 2 2 11 6 13 15 12 6 5 16 2 14 2 10 12 2 5 5 6 10 13 15 ^'}},
- {OUT=>'74C4BC5B26FB4A08602D40CCEC6C6161B6C11478'}],
- ['34', {IN=> {f=> '34 0 3 10 8 16 9 5 12 15 4 11 13 3 6 5 10 8 1 3 9 3 11 1 2 16 12 10 6 1 9 1 16 5 6 14 ^'}},
- {OUT=>'0B103CE297338DFC7395F7715EE47539B556DDB6'}],
- ['35', {IN=> {f=> '30 1 1 12 4 4 2 15 13 15 11 15 5 11 9 7 15 16 6 16 12 3 2 10 16 5 5 7 1 7 11 16 ^'}},
- {OUT=>'EFC72D99E3D2311CE14190C0B726BDC68F4B0821'}],
- ['36', {IN=> {f=> '34 0 7 9 11 2 5 5 5 4 13 13 14 4 7 12 6 4 8 2 9 9 13 13 3 3 6 7 16 7 6 15 5 8 15 14 ^'}},
- {OUT=>'660EDAC0A8F4CE33DA0D8DBAE597650E97687250'}],
- ['37', {IN=> {f=> '36 1 4 6 16 15 11 14 14 4 7 10 3 4 10 3 6 7 14 4 6 6 5 2 7 8 16 2 12 16 10 14 3 2 3 7 14 3 ^'}},
- {OUT=>'FE0A55A988B3B93946A63EB36B23785A5E6EFC3E'}],
- ['38', {IN=> {f=> '32 0 15 10 9 1 14 10 14 6 6 16 3 2 3 8 3 12 8 11 17 3 9 7 16 14 4 11 15 5 13 9 5 17 ^'}},
- {OUT=>'0CBDF2A5781C59F907513147A0DE3CC774B54BF3'}],
- ['39', {IN=> {f=> '30 0 17 17 13 8 2 6 8 16 1 12 5 17 2 9 8 10 13 14 11 17 12 5 14 9 11 9 11 4 11 12 ^'}},
- {OUT=>'663E40FEE5A44BFCB1C99EA5935A6B5BC9F583B0'}],
- ['40', {IN=> {f=> '30 1 16 6 10 5 8 3 17 16 14 1 15 15 15 6 13 2 11 6 13 11 13 4 6 7 11 11 12 16 13 16 ^'}},
- {OUT=>'00162134256952DD9AE6B51EFB159B35C3C138C7'}],
- ['41', {IN=> {f=> '33 1 16 16 14 16 2 4 16 11 6 15 7 4 17 6 5 7 6 3 14 16 5 17 11 13 1 1 14 13 3 6 14 5 16 ^'}},
- {OUT=>'CEB88E4736E354416E2010FC1061B3B53B81664B'}],
- ['42', {IN=> {f=> '39 1 2 16 13 7 8 6 2 15 1 9 12 4 4 11 13 7 2 11 9 18 4 5 4 8 2 14 9 9 1 8 13 11 15 8 5 9 10 16 7 ^'}},
- {OUT=>'A6A2C4B6BCC41DDC67278F3DF4D8D0B9DD7784EF'}],
- ['43', {IN=> {f=> '34 0 2 7 1 1 17 13 6 11 10 8 5 12 15 6 15 10 12 4 18 1 2 8 11 12 16 10 12 18 11 16 12 11 17 6 ^'}},
- {OUT=>'C23D083CD8820B57800A869F5F261D45E02DC55D'}],
- ['44', {IN=> {f=> '34 1 4 7 13 7 10 7 10 6 1 12 7 18 11 18 2 10 15 10 14 8 18 9 9 12 12 3 13 12 6 4 9 17 13 17 ^'}},
- {OUT=>'E8AC31927B78DDEC41A31CA7A44EB7177165E7AB'}],
- ['45', {IN=> {f=> '40 0 5 7 3 2 1 17 14 4 16 6 13 1 13 6 6 10 1 3 18 3 11 7 9 5 7 11 17 1 9 16 5 15 10 17 3 8 15 17 8 12 ^'}},
- {OUT=>'E864EC5DBAB0F9FF6984AB6AD43A8C9B81CC9F9C'}],
- ['46', {IN=> {f=> '40 0 11 3 15 17 11 1 1 4 3 14 18 4 2 18 8 15 6 4 6 3 15 11 16 10 17 17 9 6 3 2 6 16 4 9 12 6 8 1 11 17 ^'}},
- {OUT=>'CFED6269069417A84D6DE2347220F4B858BCD530'}],
- ['47', {IN=> {f=> '37 1 2 19 12 8 16 14 2 9 16 2 6 6 7 9 10 9 11 9 14 11 15 5 16 9 2 17 2 8 15 8 4 3 14 14 16 16 12 ^'}},
- {OUT=>'D9217BFB46C96348722C3783D29D4B1A3FEDA38C'}],
- ['48', {IN=> {f=> '37 1 11 10 16 12 11 7 14 14 14 6 10 10 1 6 13 19 5 6 4 7 12 12 10 5 10 15 15 8 5 13 17 13 5 6 14 1 19 ^'}},
- {OUT=>'DEC24E5554F79697218D317315FA986229CE3350'}],
- ['49', {IN=> {f=> '38 1 2 6 5 17 9 11 18 18 8 6 13 15 3 3 15 5 13 18 3 2 5 5 14 7 13 4 17 7 2 17 3 18 15 7 15 16 18 11 ^'}},
- {OUT=>'83A099DF7071437BA5495A5B0BFBFEFE1C0EF7F3'}],
- ['50', {IN=> {f=> '38 1 12 8 6 3 17 12 13 19 15 9 7 17 16 15 3 11 11 5 2 13 19 16 2 4 16 7 8 1 2 9 17 12 3 5 18 19 11 9 ^'}},
- {OUT=>'AA3198E30891A83E33CE3BFA0587D86A197D4F80'}],
- ['51', {IN=> {f=> '39 1 14 16 14 8 9 16 5 1 6 3 17 18 16 9 1 15 9 10 9 19 1 3 3 20 11 13 17 1 19 8 3 4 3 7 1 14 19 19 19 ^'}},
- {OUT=>'9B6ACBEB4989CBEE7015C7D515A75672FFDE3442'}],
- ['52', {IN=> {f=> '37 1 18 13 11 5 18 4 19 10 6 19 11 17 10 10 7 9 13 16 9 10 18 4 12 5 16 5 20 12 3 8 10 1 18 1 6 20 14 ^'}},
- {OUT=>'B021EB08A436B02658EAA7BA3C88D49F1219C035'}],
- ['53', {IN=> {f=> '36 0 8 9 6 12 11 7 7 3 17 13 6 20 17 9 20 16 10 12 17 8 11 8 11 10 5 10 14 18 8 19 9 12 12 2 20 19 ^'}},
- {OUT=>'CAE36DAB8AEA29F62E0855D9CB3CD8E7D39094B1'}],
- ['54', {IN=> {f=> '39 0 12 16 20 3 9 9 19 17 13 13 4 17 2 11 7 14 3 6 16 13 10 13 5 16 10 2 8 2 17 19 4 17 7 19 6 9 15 15 6 ^'}},
- {OUT=>'02DE8BA699F3C1B0CB5AD89A01F2346E630459D7'}],
- ['55', {IN=> {f=> '43 0 7 2 18 5 7 18 5 2 15 7 11 10 9 3 2 14 19 3 11 8 18 15 5 3 5 12 15 16 10 17 7 19 16 2 1 16 6 3 19 12 5 18 16 ^'}},
- {OUT=>'88021458847DD39B4495368F7254941859FAD44B'}],
- ['56', {IN=> {f=> '49 1 9 11 2 1 12 11 14 12 14 10 4 11 6 8 16 7 5 11 20 8 17 4 14 4 15 3 2 2 4 3 2 3 14 15 10 2 12 7 3 7 20 20 19 10 2 3 1 10 20 ^'}},
- {OUT=>'91A165295C666FE85C2ADBC5A10329DAF0CB81A0'}],
- ['57', {IN=> {f=> '36 0 19 20 12 5 19 21 5 21 11 14 19 1 17 8 9 4 19 3 17 1 14 21 14 7 6 5 20 14 21 20 4 6 21 7 11 12 ^'}},
- {OUT=>'4B31312EAF8B506811151A9DBD162961F7548C4B'}],
- ['58', {IN=> {f=> '41 0 12 9 11 6 16 18 18 10 11 20 6 12 11 5 7 21 19 18 6 15 21 10 4 14 9 19 10 3 3 5 13 1 8 12 3 13 9 7 10 17 14 ^'}},
- {OUT=>'3FE70971B20558F7E9BAC303ED2BC14BDE659A62'}],
- ['59', {IN=> {f=> '45 0 10 6 8 3 17 18 3 21 19 6 17 15 4 9 15 9 15 14 4 7 14 8 10 13 4 11 10 7 6 21 1 14 5 11 7 7 2 13 13 3 9 13 8 14 20 ^'}},
- {OUT=>'93FB769D5BF49D6C563685954E2AECC024DC02D6'}],
- ['60', {IN=> {f=> '39 1 3 7 18 4 9 9 5 15 13 17 10 15 16 20 8 19 9 10 9 1 19 14 21 2 18 13 10 4 18 16 4 21 15 10 18 19 3 12 18 ^'}},
- {OUT=>'BC8827C3E614D515E83DEA503989DEA4FDA6EA13'}],
- ['61', {IN=> {f=> '41 0 14 4 13 11 1 11 1 10 2 12 4 21 10 21 18 9 2 16 7 20 6 7 12 19 20 1 13 12 10 8 21 15 7 19 13 6 8 19 20 18 19 ^'}},
- {OUT=>'E83868DBE4A389AB48E61CFC4ED894F32AE112AC'}],
- ['62', {IN=> {f=> '37 0 11 18 1 17 14 15 20 16 20 8 2 17 10 4 21 5 19 19 14 22 21 18 13 14 1 3 12 11 11 4 22 13 5 18 7 21 21 ^'}},
- {OUT=>'55C95459CDE4B33791B4B2BCAAF840930AF3F3BD'}],
- ['63', {IN=> {f=> '48 0 9 22 19 12 8 16 5 17 5 9 1 2 9 6 12 6 1 7 4 3 15 1 14 1 12 3 10 2 10 14 21 13 17 6 6 17 1 21 2 14 16 17 9 11 20 21 11 18 ^'}},
- {OUT=>'36BB0E2BA438A3E03214D9ED2B28A4D5C578FCAA'}],
- ['64', {IN=> {f=> '50 1 12 8 20 13 2 9 20 9 14 10 1 16 2 22 6 4 16 14 15 1 12 4 14 9 21 3 3 9 8 21 15 14 8 4 14 4 2 3 8 12 8 6 1 2 18 20 15 3 19 10 ^'}},
- {OUT=>'3ACBF874199763EBA20F3789DFC59572ACA4CF33'}],
- ['65', {IN=> {f=> '44 0 10 20 14 6 3 4 21 1 12 4 18 2 6 7 6 9 20 14 10 10 19 17 21 12 15 17 7 10 11 8 10 12 1 19 19 9 18 21 4 18 11 9 22 5 ^'}},
- {OUT=>'86BE037C4D509C9202020767D860DAB039CADACE'}],
- ['66', {IN=> {f=> '47 0 15 8 15 3 5 6 2 19 12 17 4 20 8 11 20 2 18 4 16 20 12 9 9 6 16 21 16 3 16 18 3 19 5 16 2 4 2 12 11 15 11 14 17 2 10 18 8 ^'}},
- {OUT=>'51B57D7080A87394EEC3EB2E0B242E553F2827C9'}],
- ['67', {IN=> {f=> '48 1 5 13 3 21 5 3 6 18 18 10 1 21 21 7 1 13 12 19 1 14 6 8 21 19 21 11 19 13 2 13 4 1 10 22 16 4 9 4 10 16 3 7 15 11 9 13 17 12 ^'}},
- {OUT=>'1EFBFA78866315CE6A71E457F3A750A38FACAB41'}],
- ['68', {IN=> {f=> '45 0 14 7 6 2 20 3 6 19 19 10 2 22 12 17 12 1 20 7 7 15 20 6 18 8 3 14 23 18 15 4 7 5 23 15 7 14 10 10 19 17 2 4 15 17 21 ^'}},
- {OUT=>'57D6CB41AEEC20236F365B3A490C61D0CFA39611'}],
- ['69', {IN=> {f=> '45 1 15 11 8 9 17 5 12 18 14 6 20 17 21 12 16 9 22 9 20 15 2 22 11 2 6 11 9 8 2 4 14 19 3 21 21 23 8 2 11 4 8 4 20 22 11 ^'}},
- {OUT=>'C532CB64B4BA826372BCCF2B4B5793D5B88BB715'}],
- ['70', {IN=> {f=> '38 0 21 18 22 10 19 9 14 17 23 21 10 7 15 13 16 5 4 10 13 14 20 23 12 20 23 18 10 12 8 21 11 6 12 7 19 14 18 17 ^'}},
- {OUT=>'15833B5631032663E783686A209C6A2B47A1080E'}],
- ['71', {IN=> {f=> '40 0 18 22 6 9 22 5 23 13 6 8 23 20 22 5 22 15 19 20 9 9 1 13 13 10 14 13 5 22 14 21 9 21 19 14 14 4 18 13 12 14 ^'}},
- {OUT=>'D04F2043C96E10CD83B574B1E1C217052CD4A6B2'}],
- ['72', {IN=> {f=> '48 1 7 3 15 5 17 14 23 14 5 17 22 11 1 8 13 23 6 21 3 6 11 7 23 8 6 21 4 4 22 19 13 8 5 19 7 5 23 1 4 19 11 23 11 21 14 1 3 21 ^'}},
- {OUT=>'E8882627C64DB743F7DB8B4413DD033FC63BEB20'}],
- ['73', {IN=> {f=> '43 0 22 14 11 7 18 16 17 24 12 12 3 13 19 16 22 4 16 4 6 23 8 18 11 2 3 20 22 9 21 8 23 1 23 20 7 16 13 23 4 13 3 7 22 ^'}},
- {OUT=>'CD2D32286B8867BC124A0AF2236FC74BE3622199'}],
- ['74', {IN=> {f=> '47 1 23 6 13 19 2 3 7 2 9 9 15 6 13 4 22 6 19 20 1 9 7 14 1 15 3 23 24 22 18 12 12 17 19 10 8 11 22 12 10 2 20 15 18 17 18 7 19 ^'}},
- {OUT=>'019B70D745375091ED5C7B218445EC986D0F5A82'}],
- ['75', {IN=> {f=> '47 1 12 21 6 12 4 7 18 17 3 2 14 24 14 1 23 1 11 15 10 6 18 20 7 1 8 1 16 6 20 23 23 21 10 10 12 24 10 11 23 2 12 23 9 3 24 24 10 ^'}},
- {OUT=>'E5FF5FEC1DADBAED02BF2DAD4026BE6A96B3F2AF'}],
- ['76', {IN=> {f=> '52 0 14 10 18 15 14 5 16 11 22 2 15 24 8 22 1 4 24 9 10 15 3 9 5 4 17 15 9 12 19 19 1 3 10 6 8 3 17 8 18 24 19 3 4 15 4 9 2 24 5 20 13 13 ^'}},
- {OUT=>'6F4E23B3F2E2C068D13921FE4E5E053FFED4E146'}],
- ['77', {IN=> {f=> '42 0 20 17 19 22 13 8 10 19 15 11 1 14 17 20 22 10 7 11 16 9 21 22 17 23 12 15 4 24 7 21 18 2 21 16 1 19 18 20 11 3 15 17 ^'}},
- {OUT=>'25E179602A575C915067566FBA6DA930E97F8678'}],
- ['78', {IN=> {f=> '50 0 18 1 6 14 5 5 5 19 13 10 24 19 16 24 15 13 2 19 15 24 21 17 4 13 17 1 1 9 1 10 2 18 1 21 19 5 18 12 2 22 16 23 15 19 6 18 9 1 23 5 ^'}},
- {OUT=>'67DED0E68E235C8A523E051E86108EEB757EFBFD'}],
- ['79', {IN=> {f=> '51 0 21 13 14 11 18 12 13 3 19 9 20 22 20 2 11 12 6 1 12 16 18 2 9 8 4 3 11 17 11 5 4 19 16 11 23 13 18 1 20 8 2 16 16 21 4 19 5 5 20 24 16 ^'}},
- {OUT=>'AF78536EA83C822796745556D62A3EE82C7BE098'}],
- ['80', {IN=> {f=> '53 1 20 25 17 11 8 4 19 25 17 7 16 21 6 4 8 2 15 9 2 9 19 3 6 3 3 10 25 13 15 7 8 20 21 12 10 12 5 24 11 20 3 13 13 16 9 13 10 3 9 16 3 7 25 ^'}},
- {OUT=>'64D7AC52E47834BE72455F6C64325F9C358B610D'}],
- ['81', {IN=> {f=> '49 1 9 9 14 2 13 17 25 2 18 5 19 23 9 25 9 10 23 12 12 7 13 8 15 7 1 6 21 2 8 7 6 16 14 14 12 15 13 24 10 15 11 10 8 14 15 21 25 21 25 ^'}},
- {OUT=>'9D4866BAA3639C13E541F250FFA3D8BC157A491F'}],
- ['82', {IN=> {f=> '47 0 9 18 20 22 21 20 11 14 23 22 10 13 14 8 19 12 2 11 20 23 13 4 10 6 5 7 23 11 3 16 8 21 4 8 18 5 12 14 8 6 20 19 24 8 23 17 23 ^'}},
- {OUT=>'2E258811961D3EB876F30E7019241A01F9517BEC'}],
- ['83', {IN=> {f=> '48 1 7 19 1 18 1 14 22 13 14 5 8 22 18 14 25 17 11 12 22 2 12 12 16 12 13 18 17 12 17 14 18 8 25 9 23 5 3 8 14 24 17 7 3 3 23 17 22 19 ^'}},
- {OUT=>'8E0EBC487146F83BC9077A1630E0FB3AB3C89E63'}],
- ['84', {IN=> {f=> '51 1 19 17 16 22 24 14 16 20 23 20 9 19 16 7 12 16 5 8 9 7 10 21 24 10 11 19 1 21 14 14 19 3 22 8 12 20 1 18 5 6 5 12 14 1 1 11 9 22 3 24 4 ^'}},
- {OUT=>'CE8953741FFF3425D2311FBBF4AB481B669DEF70'}],
- ['85', {IN=> {f=> '52 1 6 1 11 16 1 12 8 11 11 17 10 22 7 3 10 2 6 4 24 16 24 19 4 5 18 11 12 9 20 21 25 2 21 18 10 20 25 21 3 17 17 5 8 22 25 19 8 10 19 7 11 18 ^'}},
- {OUT=>'789D1D2DAB52086BD90C0E137E2515ED9C6B59B5'}],
- ['86', {IN=> {f=> '44 0 26 14 21 25 25 4 9 13 5 8 9 21 8 12 26 24 9 24 15 1 23 22 16 14 8 22 15 19 24 20 7 8 15 24 12 4 4 23 21 13 19 15 21 12 ^'}},
- {OUT=>'B76CE7472700DD68D6328B7AA8437FB051D15745'}],
- ['87', {IN=> {f=> '59 1 15 7 3 21 20 8 22 14 23 26 19 2 10 18 3 5 3 1 9 15 15 3 7 13 23 9 7 1 13 17 14 25 9 16 2 2 6 13 7 19 25 17 1 5 21 2 7 22 5 6 25 3 12 19 6 2 4 24 17 ^'}},
- {OUT=>'F218669B596C5FFB0B1C14BD03C467FC873230A0'}],
- ['88', {IN=> {f=> '60 0 9 18 20 19 4 11 14 1 6 8 26 6 9 22 4 10 2 7 21 9 8 24 25 14 22 12 22 3 23 3 3 20 6 11 23 6 1 7 5 18 5 15 25 26 1 1 10 11 11 4 12 11 20 3 14 2 3 2 23 15 ^'}},
- {OUT=>'1FF3BDBE0D504CB0CDFAB17E6C37ABA6B3CFFDED'}],
- ['89', {IN=> {f=> '49 0 12 17 24 11 8 6 24 16 15 22 21 14 6 12 20 19 5 5 12 11 6 23 2 16 23 7 24 6 21 2 17 17 5 25 11 25 20 25 24 18 6 12 19 25 7 6 5 2 25 ^'}},
- {OUT=>'2F3CBACBB14405A4652ED52793C1814FD8C4FCE0'}],
- ['90', {IN=> {f=> '54 1 12 16 1 15 7 1 26 19 19 13 20 11 17 6 20 5 24 24 1 21 11 9 20 21 15 10 19 26 3 2 6 7 12 9 10 8 14 10 15 5 17 8 21 1 20 25 6 19 8 3 22 16 16 20 ^'}},
- {OUT=>'982C8AB6CE164F481915AF59AAED9FFF2A391752'}],
- ['91', {IN=> {f=> '63 0 17 13 11 10 17 15 12 6 13 14 17 4 12 10 24 5 13 24 3 5 2 5 11 14 8 5 10 17 16 8 4 14 21 15 3 6 17 25 8 2 3 3 19 10 13 22 22 8 2 13 25 17 2 1 19 1 14 20 2 5 4 15 24 ^'}},
- {OUT=>'5CD92012D488A07ECE0E47901D0E083B6BD93E3F'}],
- ['92', {IN=> {f=> '49 0 14 20 7 25 20 26 20 16 7 17 17 22 1 13 6 5 1 18 14 15 23 15 10 5 19 18 18 26 12 13 3 25 12 21 16 24 4 16 3 6 26 26 10 20 13 1 20 24 15 ^'}},
- {OUT=>'69603FEC02920851D4B3B8782E07B92BB2963009'}],
- ['93', {IN=> {f=> '56 0 3 8 14 5 5 7 11 13 11 26 11 4 26 17 20 19 11 10 3 10 14 9 6 9 7 16 10 4 4 19 19 2 26 13 19 17 15 24 15 4 21 22 13 13 12 22 2 14 20 5 18 7 17 24 20 20 ^'}},
- {OUT=>'3E90F76437B1EA44CF98A08D83EA24CECF6E6191'}],
- ['94', {IN=> {f=> '58 1 6 17 9 20 2 10 19 3 22 4 1 11 3 5 3 21 11 15 12 23 26 5 2 27 6 5 16 6 3 2 23 5 3 20 20 4 24 2 18 21 7 14 10 27 23 6 24 6 19 23 3 9 22 16 21 17 19 23 ^'}},
- {OUT=>'34C09F107C42D990EB4881D4BF2DDDCAB01563AE'}],
- ['95', {IN=> {f=> '58 1 17 7 21 19 6 16 15 15 20 14 2 25 19 14 18 19 7 9 1 14 11 10 16 3 23 14 26 10 11 1 18 1 12 24 19 19 1 7 2 3 24 7 12 9 2 8 16 20 24 5 26 26 4 9 2 7 25 17 ^'}},
- {OUT=>'474BE0E5892EB2382109BFC5E3C8249A9283B03D'}],
- ['96', {IN=> {f=> '54 1 8 12 18 14 26 7 17 18 4 20 1 16 14 21 26 4 6 8 24 11 25 15 24 16 23 4 10 23 21 24 15 10 9 26 7 14 24 21 6 20 5 17 16 17 1 3 12 1 4 13 3 9 21 26 ^'}},
- {OUT=>'A04B4F75051786682483252438F6A75BF4705EC6'}],
- ['97', {IN=> {f=> '56 1 7 18 11 1 19 20 23 12 12 27 13 13 15 16 13 1 16 15 12 26 3 16 16 8 17 13 21 4 6 5 19 14 16 4 16 11 14 18 18 27 9 13 21 3 26 22 3 7 6 4 26 3 15 8 25 21 ^'}},
- {OUT=>'BE88A6716083EB50ED9416719D6A247661299383'}],
- ['98', {IN=> {f=> '50 1 20 13 9 11 20 6 11 21 27 25 20 7 4 18 26 16 27 5 12 19 7 23 6 25 25 2 11 13 25 21 18 17 6 12 14 13 24 11 14 19 26 27 25 6 1 15 4 7 27 15 ^'}},
- {OUT=>'C67E38717FEE1A5F65EC6C7C7C42AFC00CD37F04'}],
- ['99', {IN=> {f=> '51 0 15 16 26 27 23 14 12 28 22 15 8 19 2 20 13 1 24 2 25 1 6 19 19 8 11 24 24 21 13 27 5 11 28 17 7 25 6 23 24 14 25 12 5 13 26 2 5 8 10 16 17 ^'}},
- {OUT=>'959AC4082388E19E9BE5DE571C047EF10C174A8D'}],
- ['100', {IN=> {f=> '58 1 5 26 18 19 21 3 12 11 13 4 14 22 22 14 16 13 3 22 16 23 5 19 6 13 10 26 17 27 26 4 3 25 6 14 2 3 5 7 23 11 22 8 25 2 9 25 18 17 8 2 14 4 19 1 5 27 13 24 ^'}},
- {OUT=>'BAA7AA7B7753FA0ABDC4A541842B5D238D949F0A'}],
- ['101', {IN=> {f=> '53 0 2 27 28 2 17 23 10 27 18 26 7 22 16 3 27 1 26 21 28 10 3 6 2 2 10 17 13 16 6 17 21 23 13 20 22 5 6 11 12 12 8 23 13 17 9 23 20 3 28 27 12 17 22 ^'}},
- {OUT=>'351394DCEBC08155D100FCD488578E6AE71D0E9C'}],
- ['102', {IN=> {f=> '59 0 28 19 5 21 4 27 8 1 19 14 20 6 7 9 1 6 22 3 19 26 14 8 6 7 19 15 23 1 17 16 6 26 14 5 22 25 4 7 10 16 21 10 18 19 24 16 23 8 3 17 28 18 10 2 5 3 21 21 15 ^'}},
- {OUT=>'AB8BE94C5AF60D9477EF1252D604E58E27B2A9EE'}],
- ['103', {IN=> {f=> '58 0 6 24 1 4 24 18 10 22 1 21 12 5 4 4 20 25 24 26 8 25 11 2 7 27 22 19 4 18 27 10 28 4 12 24 8 16 12 11 16 17 25 8 12 16 1 9 9 10 5 24 23 18 5 14 18 8 4 28 ^'}},
- {OUT=>'3429EC74A695FDD3228F152564952308AFE0680A'}],
- ['104', {IN=> {f=> '61 0 5 17 8 28 1 22 4 11 3 2 17 3 14 9 27 13 18 24 9 8 7 28 25 14 21 27 24 6 18 16 2 12 15 9 14 10 1 8 17 4 6 15 26 11 15 2 28 20 26 16 3 7 5 8 9 26 10 12 25 11 22 ^'}},
- {OUT=>'907FA46C029BC67EAA8E4F46E3C2A232F85BD122'}],
- ['105', {IN=> {f=> '53 0 9 13 24 15 20 2 4 8 2 22 20 19 4 15 14 28 13 25 10 10 12 28 24 22 26 28 15 9 11 26 19 22 27 2 21 8 20 23 26 12 10 21 9 15 13 25 7 26 1 13 5 9 20 ^'}},
- {OUT=>'2644C87D1FBBBC0FC8D65F64BCA2492DA15BAAE4'}],
- ['106', {IN=> {f=> '58 0 3 9 21 22 7 1 23 28 1 2 8 22 12 18 28 5 18 14 7 11 17 20 20 7 21 13 8 28 21 22 2 16 20 15 28 9 3 22 13 10 23 4 16 11 14 1 10 8 14 14 15 18 13 12 21 18 25 28 ^'}},
- {OUT=>'110A3EEB408756E2E81ABAF4C5DCD4D4C6AFCF6D'}],
- ['107', {IN=> {f=> '60 1 29 20 2 29 22 8 16 20 4 12 9 6 12 16 16 7 9 20 29 11 9 4 1 15 25 16 29 10 22 7 2 8 5 18 14 23 24 4 6 26 3 11 6 12 1 7 14 24 14 6 10 21 16 23 29 25 6 14 17 24 ^'}},
- {OUT=>'CD4FDC35FAC7E1ADB5DE40F47F256EF74D584959'}],
- ['108', {IN=> {f=> '64 0 12 10 5 10 15 25 8 15 3 7 13 25 16 14 1 29 22 26 15 27 9 1 8 8 28 6 13 5 13 3 15 5 23 8 23 2 5 5 4 17 13 14 7 17 12 27 3 18 5 7 5 26 18 15 22 28 16 13 7 2 23 19 25 15 ^'}},
- {OUT=>'8E6E273208AC256F9ECCF296F3F5A37BC8A0F9F7'}],
- ['109', {IN=> {f=> '56 1 17 7 16 25 23 11 11 15 2 13 9 26 2 24 26 7 28 11 2 29 7 22 23 5 28 19 1 27 29 1 24 11 18 20 3 13 11 7 3 15 17 24 1 18 13 6 3 25 27 16 28 18 24 8 23 22 ^'}},
- {OUT=>'FE0606100BDBC268DB39B503E0FDFE3766185828'}],
- ['110', {IN=> {f=> '51 1 29 28 6 28 14 12 28 27 22 4 14 25 1 3 9 7 11 14 15 16 10 19 12 19 11 20 13 28 4 27 28 7 27 12 4 28 21 17 22 20 17 15 15 23 22 13 12 21 22 21 29 ^'}},
- {OUT=>'6C63C3E58047BCDB35A17F74EEBA4E9B14420809'}],
- ['111', {IN=> {f=> '64 1 12 14 12 18 27 8 7 4 9 14 16 15 8 11 21 20 10 10 21 23 20 2 11 23 1 11 1 5 3 23 16 15 27 14 5 16 3 22 2 3 24 3 19 29 4 4 10 8 20 14 15 1 26 12 27 25 4 28 22 11 19 19 24 9 ^'}},
- {OUT=>'BCC2BD305F0BCDA8CF2D478EF9FE080486CB265F'}],
- ['112', {IN=> {f=> '60 1 20 8 9 5 25 19 17 19 15 7 24 24 21 3 20 16 8 3 17 28 18 29 9 23 9 10 29 4 12 24 15 5 8 22 17 29 12 3 8 29 15 21 21 4 7 20 7 10 7 26 10 16 24 6 7 12 8 12 15 17 ^'}},
- {OUT=>'CE5223FD3DD920A3B666481D5625B16457DCB5E8'}],
- ['113', {IN=> {f=> '60 0 9 17 11 28 12 26 26 6 29 13 10 20 6 23 10 4 3 26 26 14 20 20 25 14 13 15 24 14 11 4 23 27 24 20 9 16 17 24 13 12 6 1 14 26 25 7 8 21 1 19 3 2 2 17 21 13 5 9 21 11 ^'}},
- {OUT=>'948886776E42E4F5FAE1B2D0C906AC3759E3F8B0'}],
- ['114', {IN=> {f=> '54 0 25 1 27 24 6 23 16 5 1 20 29 22 25 9 25 10 3 28 28 25 19 18 16 24 14 15 5 28 12 28 26 29 2 15 15 9 5 18 19 22 12 15 4 6 15 24 16 9 4 26 25 18 27 12 ^'}},
- {OUT=>'4C12A51FCFE242F832E3D7329304B11B75161EFB'}],
- ['115', {IN=> {f=> '61 1 20 4 26 12 3 22 1 22 30 3 28 10 9 24 14 29 6 30 3 10 20 14 6 3 19 21 21 28 16 18 11 30 11 20 30 1 9 8 11 5 19 10 24 4 22 4 2 26 5 15 20 8 3 13 30 18 8 1 25 28 19 ^'}},
- {OUT=>'C54BDD2050504D92F551D378AD5FC72C9ED03932'}],
- ['116', {IN=> {f=> '56 1 20 15 21 18 18 12 16 13 24 9 21 2 28 6 1 23 9 18 27 27 4 9 13 10 8 14 16 15 12 11 14 21 14 10 11 25 17 17 30 21 13 27 26 26 22 14 13 17 21 19 9 9 20 23 13 28 ^'}},
- {OUT=>'8F53E8FA79EA09FD1B682AF5ED1515ECA965604C'}],
- ['117', {IN=> {f=> '59 1 10 28 24 10 22 27 23 27 8 17 14 6 4 21 26 15 1 8 29 27 6 28 15 3 27 25 25 14 19 13 29 8 24 2 8 2 4 12 19 11 10 6 26 14 22 24 30 10 11 12 2 12 17 23 8 8 12 28 12 ^'}},
- {OUT=>'2D7E17F6294524CE78B33EAB72CDD08E5FF6E313'}],
- ['118', {IN=> {f=> '56 0 14 28 2 17 4 8 3 26 9 23 21 30 30 20 4 13 28 29 9 3 17 7 19 30 28 1 2 20 9 12 24 15 30 20 27 3 23 11 6 29 25 23 26 17 20 10 22 15 23 6 25 5 4 30 2 29 ^'}},
- {OUT=>'64582B4B57F782C9302BFE7D07F74AA176627A3A'}],
- ['119', {IN=> {f=> '63 1 23 15 27 14 26 1 1 7 19 12 7 6 20 18 14 4 15 17 28 7 11 7 8 9 22 17 12 5 23 18 25 18 6 12 26 30 12 30 14 3 1 18 10 20 27 21 8 6 24 26 20 11 24 7 2 4 18 15 14 30 16 19 14 ^'}},
- {OUT=>'6D88795B71D3E386BBD1EB830FB9F161BA98869F'}],
- ['120', {IN=> {f=> '52 0 27 15 4 19 25 29 29 7 14 18 9 11 9 27 11 15 29 9 28 20 2 30 26 21 17 8 28 17 22 29 24 8 11 18 29 15 6 7 27 27 17 24 18 23 11 19 8 30 5 24 22 24 ^'}},
- {OUT=>'86AD34A6463F12CEE6DE9596ABA72F0DF1397FD1'}],
- ['121', {IN=> {f=> '66 1 25 15 28 23 5 10 21 5 8 7 3 10 19 17 6 9 15 29 10 7 4 1 16 21 16 29 13 18 5 3 8 15 8 21 29 20 5 27 2 13 27 7 7 30 2 18 26 10 2 5 29 21 15 25 26 24 8 12 20 3 9 10 30 7 12 29 ^'}},
- {OUT=>'7EB46685A57C0D466152DC339C8122548C757ED1'}],
- ['122', {IN=> {f=> '53 1 30 26 20 11 22 19 27 2 16 10 6 4 24 17 20 25 20 15 8 23 23 20 30 18 16 3 30 15 26 23 28 7 21 8 7 31 31 14 26 18 3 1 26 28 15 25 11 31 3 25 9 21 30 ^'}},
- {OUT=>'E7A98FB0692684054407CC221ABC60C199D6F52A'}],
- ['123', {IN=> {f=> '67 0 2 6 14 4 9 5 28 8 17 22 1 4 8 7 10 14 19 10 14 8 27 9 24 26 4 30 11 8 19 5 21 7 2 27 20 16 20 20 22 14 13 16 26 14 10 3 25 22 25 23 21 10 15 15 29 8 13 4 2 13 22 20 7 4 20 31 23 ^'}},
- {OUT=>'34DF1306662206FD0A5FC2969A4BEEC4EB0197F7'}],
- ['124', {IN=> {f=> '65 0 2 2 28 13 19 14 12 23 27 6 2 14 2 22 6 25 30 29 31 13 14 16 31 12 16 30 5 14 31 11 4 1 1 25 21 13 26 22 21 5 22 14 29 1 21 3 14 30 4 2 29 12 15 23 3 15 5 1 6 23 22 13 1 14 23 ^'}},
- {OUT=>'56CF7EBF08D10F0CB9FE7EE3B63A5C3A02BCB450'}],
- ['125', {IN=> {f=> '59 1 25 5 15 6 13 3 22 11 23 31 24 6 5 20 4 14 3 29 8 29 19 7 29 23 25 28 19 11 15 27 21 14 1 19 20 26 12 7 12 1 18 13 29 28 23 29 14 23 7 1 9 29 24 5 30 18 5 25 30 ^'}},
- {OUT=>'3BAE5CB8226642088DA760A6F78B0CF8EDDEA9F1'}],
- ['126', {IN=> {f=> '55 1 31 25 13 7 24 25 24 1 12 19 9 7 6 28 20 14 28 21 19 31 20 20 6 24 18 27 24 4 18 21 1 31 15 1 15 2 27 4 26 25 4 23 19 2 31 22 30 21 22 5 27 12 30 28 31 ^'}},
- {OUT=>'6475DF681E061FA506672C27CBABFA9AA6DDFF62'}],
- ['127', {IN=> {f=> '62 0 27 15 18 14 25 15 17 7 28 11 28 29 30 1 17 12 10 2 18 20 21 2 11 12 5 4 12 25 14 5 5 24 22 18 31 15 22 29 11 3 21 31 21 27 3 28 7 10 25 2 15 30 9 30 7 22 15 9 3 20 24 14 ^'}},
- {OUT=>'79D81991FA4E4957C8062753439DBFD47BBB277D'}],
- ['128', {IN=> {f=> '60 0 28 14 18 9 27 14 22 27 31 10 8 14 7 15 7 20 5 26 1 29 7 17 17 8 3 13 27 18 8 31 27 28 22 22 17 19 18 18 11 19 13 25 10 19 6 28 4 31 23 10 18 26 31 5 10 13 12 8 15 27 ^'}},
- {OUT=>'BAE224477B20302E881F5249F52EC6C34DA8ECEF'}],
- ['129', {IN=> {f=> '60 1 24 22 4 29 22 31 28 20 4 16 21 3 1 15 5 15 6 30 3 29 29 7 27 20 2 20 31 22 26 9 29 16 4 26 32 17 20 14 28 17 19 6 24 11 26 28 5 18 15 8 16 20 21 4 9 12 4 8 17 29 ^'}},
- {OUT=>'EDE4DEB4293CFE4138C2C056B7C46FF821CC0ACC'}],
- ['130', {IN=> {f=> '69 1 5 3 11 15 12 24 31 23 1 6 28 2 8 31 6 7 30 5 19 23 12 6 9 31 19 17 24 25 22 6 12 16 3 7 9 9 11 29 4 11 2 5 13 29 10 12 30 32 18 28 18 27 3 30 4 4 26 6 13 31 13 2 11 7 24 4 17 29 12 ^'}},
- {OUT=>'A771FA5C812BD0C9596D869EC99E4F4AC988B13F'}],
- ['131', {IN=> {f=> '95 0 21 19 21 23 11 42 36 2 13 4 1 33 22 16 27 9 4 33 16 3 30 15 11 32 13 17 38 32 9 38 4 36 15 32 27 19 42 18 6 36 22 10 29 12 25 40 15 29 23 28 30 4 8 11 24 9 10 31 28 43 23 16 29 33 5 40 26 3 19 12 36 43 5 35 37 5 14 11 45 35 16 10 8 32 4 15 35 26 2 39 22 37 22 30 29 ^'}},
- {OUT=>'E99D566212BBBCEEE903946F6100C9C96039A8F4'}],
- ['132', {IN=> {f=> '106 1 18 14 51 2 6 32 51 9 32 50 44 46 51 8 11 53 45 55 16 10 3 52 8 20 20 46 46 13 32 2 46 50 43 25 54 9 31 29 2 47 15 29 24 45 44 18 37 14 28 39 36 44 47 16 50 10 44 24 53 35 22 40 20 15 51 22 18 22 42 6 54 49 38 21 7 13 30 16 7 52 16 22 13 38 7 11 44 33 9 25 13 37 42 14 45 53 30 38 5 25 5 35 38 22 28 53 ^'}},
- {OUT=>'B48CE6B1D13903E3925AE0C88CB931388C013F9C'}],
- ['133', {IN=> {f=> '127 0 58 35 43 28 5 28 63 8 12 25 9 47 53 29 62 7 37 2 3 48 5 12 55 56 28 35 12 63 6 58 27 27 48 44 35 14 17 22 56 10 8 1 16 15 42 63 14 51 57 19 41 7 8 56 47 34 52 22 48 60 43 9 1 52 4 21 49 61 18 50 23 13 46 62 23 45 62 9 56 18 23 31 8 30 27 36 13 38 4 58 53 47 24 18 41 58 19 12 18 52 42 29 44 45 26 63 34 32 41 64 15 26 55 19 2 49 6 30 53 13 54 12 53 37 12 37 43 ^'}},
- {OUT=>'E647D5BAF670D4BF3AFC0A6B72A2424B0C64F194'}],
- ['134', {IN=> {f=> '148 0 60 4 51 47 58 38 17 63 33 23 28 43 12 69 70 33 17 12 50 18 18 36 45 2 67 4 45 20 4 33 38 29 45 8 22 58 39 71 38 32 53 35 19 53 31 29 51 35 4 63 18 33 26 47 70 9 64 62 63 30 15 1 35 28 16 40 20 14 50 33 19 38 30 27 55 10 16 46 47 7 55 12 53 26 56 33 29 55 25 17 48 43 21 43 18 24 63 27 68 46 38 33 35 10 18 11 27 5 9 58 35 70 36 36 39 47 2 10 66 47 5 18 21 44 71 51 57 3 22 7 56 55 28 25 14 40 16 24 48 37 66 50 24 45 18 39 53 55 ^'}},
- {OUT=>'65C1CD932A06B05CD0B43AFB3BC7891F6BCEF45C'}],
- ['135', {IN=> {f=> '165 1 15 62 35 29 15 40 19 76 67 4 5 71 46 61 26 8 77 48 1 23 12 60 40 24 44 33 29 42 73 66 49 61 20 30 1 54 52 42 39 64 23 65 37 24 20 11 26 66 22 77 22 57 7 38 57 33 61 73 7 64 1 49 35 76 14 27 21 45 68 38 58 73 13 72 47 73 33 8 66 23 38 4 56 77 47 10 71 13 20 31 41 6 51 3 18 17 61 47 14 48 76 46 28 34 43 1 56 4 25 7 65 41 1 34 37 23 59 59 27 26 13 15 14 75 60 14 1 28 59 26 65 61 16 23 17 28 6 19 2 35 49 30 29 48 2 63 73 59 1 3 76 41 11 19 18 43 54 63 67 51 4 9 78 60 66 ^'}},
- {OUT=>'70FFAE353A5CD0F8A65A8B2746D0F16281B25EC7'}],
- ['136', {IN=> {f=> '181 0 18 19 84 17 12 10 57 18 77 51 52 16 39 74 49 52 63 38 72 2 15 64 83 62 49 56 11 26 68 58 83 33 23 50 63 71 53 27 84 22 39 41 52 58 11 64 7 60 45 70 22 5 73 38 30 30 48 21 75 80 40 21 8 53 9 26 30 34 81 71 71 51 23 75 33 41 23 32 5 8 66 40 72 40 16 66 45 14 48 34 21 41 27 3 55 27 37 23 41 65 4 57 51 74 22 19 75 42 16 19 46 16 10 48 20 19 37 41 14 57 9 17 55 38 5 60 7 46 20 43 36 39 52 20 10 62 45 23 46 7 35 75 29 70 35 36 34 25 12 15 84 26 10 6 71 29 79 33 32 25 59 76 82 64 58 7 8 19 41 74 2 53 65 24 1 55 51 36 21 79 7 ^'}},
- {OUT=>'CC8221F2B829B8CF39646BF46888317C3EB378EA'}],
- ['137', {IN=> {f=> '184 1 60 66 66 6 3 9 73 12 7 40 70 18 71 70 65 51 14 14 27 50 9 87 81 50 22 19 40 37 16 79 12 34 37 76 82 10 61 7 81 49 67 26 45 82 50 81 63 45 69 31 31 76 51 9 59 34 51 54 34 83 10 33 51 86 81 82 69 18 8 22 64 19 86 62 58 33 37 17 34 5 29 83 42 76 50 54 66 39 9 1 36 43 17 65 6 35 56 72 71 83 88 10 1 8 87 22 6 21 78 25 89 43 62 40 55 85 31 89 74 63 46 28 24 26 31 17 7 8 27 19 12 85 17 20 27 77 10 2 54 80 17 52 74 76 69 78 11 20 80 4 29 24 85 75 18 39 23 70 83 29 57 67 72 70 33 4 15 46 42 2 69 13 53 33 69 64 33 64 14 40 69 59 78 54 ^'}},
- {OUT=>'26ACCC2D6D51FF7BF3E5895588907765111BB69B'}],
- ['138', {IN=> {f=> '193 1 68 43 95 53 38 58 55 28 20 16 67 48 17 86 32 44 68 67 28 16 14 79 25 15 72 67 50 80 18 30 10 75 1 60 45 87 78 28 95 49 63 70 59 26 6 51 73 60 65 18 26 8 87 5 58 31 25 57 40 46 78 57 34 78 61 36 66 57 38 80 22 32 68 71 30 74 37 81 66 77 66 55 2 51 24 93 61 40 68 45 61 12 63 24 89 59 52 72 43 20 20 69 36 40 88 46 9 62 55 77 84 20 18 6 77 15 52 39 75 3 26 4 85 17 62 29 11 92 46 58 29 59 28 42 80 71 96 2 49 85 37 63 4 61 14 2 53 87 25 86 6 75 76 93 41 39 93 92 42 56 41 63 26 28 18 77 11 50 78 79 1 12 12 91 29 13 58 5 56 92 66 59 4 39 47 95 5 5 62 33 13 80 27 ^'}},
- {OUT=>'01072915B8E868D9B28E759CF2BC1AEA4BB92165'}],
- ['139', {IN=> {f=> '203 1 35 28 11 7 20 7 17 3 3 30 89 13 65 56 66 63 22 82 16 31 55 56 77 91 91 71 101 13 10 85 101 95 17 99 98 91 33 14 20 48 32 7 64 29 38 35 25 4 95 23 34 1 85 81 23 31 96 71 84 50 15 79 47 25 51 45 35 66 19 61 60 9 31 93 64 70 30 42 86 53 1 71 46 42 22 38 96 10 99 34 76 26 55 73 63 63 97 23 92 81 64 46 1 30 31 35 86 91 88 64 87 16 37 69 84 94 60 100 3 47 52 8 71 87 57 29 76 43 18 45 46 15 65 12 44 42 66 60 15 68 19 58 39 62 76 9 92 101 57 32 4 34 15 41 62 32 89 71 43 35 31 41 21 17 82 33 96 27 62 29 82 57 46 62 15 24 99 37 83 40 52 46 56 80 98 3 91 74 6 27 7 58 94 10 41 79 97 84 77 74 26 99 35 ^'}},
- {OUT=>'3016115711D74236ADF0C371E47992F87A428598'}],
- ['140', {IN=> {f=> '212 1 26 101 17 91 45 97 80 59 102 30 68 4 85 9 4 39 16 18 85 70 11 87 62 72 78 38 3 41 53 82 82 35 18 13 94 64 52 39 77 59 26 9 65 46 64 98 32 29 86 79 16 63 54 76 56 98 16 98 78 22 72 33 103 104 52 84 12 65 15 85 101 97 84 31 51 26 100 100 38 80 13 2 78 7 24 44 84 103 27 7 28 16 33 99 25 103 54 14 42 62 87 92 27 22 42 5 52 100 84 73 72 63 24 48 56 52 23 5 17 76 31 1 95 58 43 60 50 62 30 23 35 79 20 35 3 72 32 45 51 87 41 84 27 79 77 70 102 15 54 15 100 8 52 69 105 3 30 84 42 93 66 89 69 74 24 33 42 97 4 38 99 106 13 93 6 106 74 100 54 45 21 59 56 37 9 50 32 75 79 31 77 9 61 1 8 68 6 60 81 7 100 99 14 61 48 25 73 26 70 72 94 34 ^'}},
- {OUT=>'BF30417999C1368F008C1F19FECA4D18A5E1C3C9'}],
- ['141', {IN=> {f=> '233 0 11 98 110 88 35 110 35 64 49 88 93 28 85 6 78 65 90 52 24 97 51 39 51 59 23 1 3 49 33 11 78 27 35 55 64 5 102 4 70 25 56 58 38 66 11 31 96 66 104 59 41 86 58 29 79 41 40 72 51 12 92 34 52 44 69 104 21 97 89 96 48 21 4 61 40 28 67 34 23 85 44 22 62 52 33 84 23 30 73 74 4 79 12 81 47 80 53 47 89 40 19 80 62 34 61 29 41 95 43 1 70 63 55 53 18 19 13 48 10 19 89 49 4 52 53 56 76 10 8 104 77 15 28 38 75 109 3 85 90 8 40 8 93 90 43 39 14 60 17 36 78 56 105 80 35 75 36 58 82 50 100 98 45 74 13 66 95 72 71 95 34 14 98 72 33 38 37 52 6 14 107 59 3 29 61 67 98 92 5 93 17 98 36 87 41 75 71 57 88 17 25 91 84 3 58 20 92 69 51 50 36 31 14 25 18 30 18 1 41 104 30 82 59 87 70 34 96 28 47 62 81 103 48 ^'}},
- {OUT=>'62BA49087185F2742C26E1C1F4844112178BF673'}],
- ['142', {IN=> {f=> '234 1 63 90 108 108 102 64 82 88 4 111 76 97 22 1 108 41 34 91 33 20 25 24 26 8 83 11 31 7 85 109 106 4 105 85 68 28 33 99 53 8 16 12 11 74 17 83 66 70 16 30 9 67 68 34 24 81 47 92 72 47 37 33 38 92 17 8 28 88 22 62 69 32 89 75 3 72 96 85 13 105 24 38 37 94 115 83 72 108 114 24 93 76 103 60 99 102 9 43 10 59 95 46 33 93 15 26 69 44 2 86 107 55 45 61 65 92 66 9 55 39 70 83 29 98 67 13 111 15 20 31 62 8 2 51 20 19 33 44 14 115 71 112 97 10 41 28 53 51 26 57 15 38 98 55 106 22 56 31 50 95 107 110 84 70 10 108 96 73 100 25 36 55 88 71 63 96 30 90 96 79 22 7 30 23 28 59 89 8 51 99 47 86 34 18 43 65 98 104 107 49 7 79 71 8 57 21 29 80 2 74 78 44 57 9 61 22 13 68 52 91 74 98 43 30 58 68 95 101 72 102 76 42 99 61 ^'}},
- {OUT=>'E1F6B9536F384DD3098285BBFD495A474140DC5A'}],
- ['143', {IN=> {f=> '249 0 27 117 45 119 80 2 59 52 8 76 20 94 102 69 96 42 46 106 67 9 110 89 71 69 34 31 15 85 16 29 100 82 37 62 68 95 108 44 23 114 34 36 56 93 11 30 96 12 31 67 14 114 14 66 70 30 81 46 53 119 85 6 104 47 92 72 70 5 70 15 115 68 105 33 97 13 85 106 14 61 29 22 86 45 57 69 91 38 38 28 66 13 60 95 103 3 15 5 113 38 23 62 5 65 94 107 73 104 37 47 102 117 3 78 35 7 95 56 78 45 52 28 46 43 37 32 53 19 55 29 47 97 76 115 83 71 11 45 62 73 99 116 2 24 116 7 28 41 2 29 37 52 23 5 118 79 31 57 89 61 24 101 78 50 93 73 41 7 33 45 47 24 1 48 73 36 3 25 87 46 28 108 54 68 53 67 119 28 36 118 104 42 88 27 112 4 74 85 1 63 39 97 71 74 75 76 10 49 12 79 11 50 103 118 94 117 118 37 27 12 94 60 28 51 47 82 110 17 15 105 23 52 43 12 21 22 81 41 12 74 90 42 108 117 98 67 4 69 85 ^'}},
- {OUT=>'B522DAE1D67726EBA7C4136D4E2F6D6D645AC43E'}],
- ['144', {IN=> {f=> '243 0 76 81 26 101 13 68 62 106 87 19 98 32 81 63 79 93 31 121 123 75 52 11 66 41 54 87 38 5 104 62 51 38 55 29 31 120 44 16 48 94 46 105 91 66 78 27 43 6 64 2 55 79 75 84 113 22 4 113 109 31 33 17 96 11 29 63 98 103 107 116 34 14 9 95 38 18 51 75 33 109 118 55 66 4 76 7 75 70 82 74 23 1 26 69 40 112 99 47 65 31 70 119 52 103 88 85 86 28 16 12 76 25 22 78 64 21 86 27 61 77 72 108 2 18 106 119 121 54 16 85 72 2 73 26 88 66 60 80 35 24 117 63 24 44 67 52 122 119 33 72 16 99 98 69 54 19 42 28 53 114 32 117 81 100 57 49 123 56 21 68 80 53 95 1 45 95 107 98 87 1 27 24 99 116 16 67 1 113 91 84 25 40 25 72 3 28 90 87 112 80 16 117 45 77 36 90 105 59 88 122 64 108 108 71 98 18 50 115 93 105 77 35 6 46 55 47 102 4 26 87 111 120 81 113 4 57 105 3 84 94 115 61 73 ^'}},
- {OUT=>'E9A021C3EB0B9F2C710554D4BF21B19F78E09478'}],
- ['145', {IN=> {f=> '255 1 91 47 51 9 57 9 55 94 61 61 68 46 107 6 35 81 114 78 96 74 14 89 73 67 67 69 113 107 11 98 113 109 20 92 17 67 70 88 57 10 124 9 60 122 93 91 45 7 15 24 51 5 98 115 24 49 90 104 117 66 128 94 64 80 12 43 91 46 111 59 58 77 30 14 88 60 123 68 41 44 68 40 104 118 41 43 93 90 105 92 16 127 26 54 125 114 79 71 24 48 21 25 118 40 103 49 91 44 67 65 25 119 109 18 48 23 69 112 38 61 64 87 84 104 119 110 122 92 22 1 8 83 34 100 32 62 41 46 112 34 102 76 56 39 4 127 30 13 19 110 124 7 16 128 95 4 124 11 104 116 126 49 95 3 55 96 70 90 101 4 122 96 75 118 39 128 99 92 18 42 20 87 83 35 75 111 61 67 71 28 101 9 56 34 105 95 71 23 73 71 26 57 15 23 76 55 99 89 128 98 117 68 43 88 62 38 62 39 2 83 36 15 26 60 128 96 73 74 10 1 12 42 22 2 77 33 33 32 57 13 14 82 57 12 39 3 58 80 14 87 85 44 69 109 119 ^'}},
- {OUT=>'DF13573188F3BF705E697A3E1F580145F2183377'}],
- ['146', {IN=> {f=> '283 0 102 55 53 41 60 88 25 67 58 76 44 22 68 118 108 40 95 96 81 90 85 28 77 18 11 37 72 93 60 110 124 119 95 131 91 37 109 126 8 73 69 72 80 17 83 5 76 20 32 15 10 1 103 18 22 116 98 9 51 104 102 44 33 15 12 24 31 89 1 6 28 101 8 64 72 106 30 5 52 89 111 39 108 64 85 17 57 124 22 105 78 115 3 40 108 66 108 77 128 103 44 35 38 13 95 10 111 63 98 117 61 51 126 69 96 70 70 59 39 13 97 33 112 2 77 7 123 70 83 29 66 67 49 79 19 104 115 14 60 2 55 40 71 33 28 114 51 91 17 46 45 128 57 87 62 25 115 38 50 55 90 74 8 51 102 79 43 94 36 122 94 12 41 36 25 104 91 24 7 99 80 30 126 32 63 122 107 114 27 28 79 41 12 35 51 115 122 70 22 79 65 2 88 27 17 59 15 23 44 57 5 65 6 26 78 80 125 93 84 100 45 22 129 68 36 111 74 118 11 50 42 120 47 21 8 86 112 26 67 60 99 45 93 47 8 38 59 52 56 124 20 82 18 117 24 18 46 106 19 117 26 41 47 45 130 7 15 1 4 5 100 10 85 50 44 11 48 92 119 108 42 118 125 ^'}},
- {OUT=>'188835CFE52ECFA0C4135C2825F245DC29973970'}],
- ['147', {IN=> {f=> '272 0 8 61 99 70 96 20 87 123 134 82 22 2 110 118 33 86 5 7 5 94 56 15 60 96 54 13 22 55 99 4 25 105 17 37 69 10 38 117 117 30 70 13 9 109 115 62 94 52 66 117 100 135 7 75 23 5 81 110 31 118 29 1 62 11 41 88 109 119 102 37 3 30 123 47 31 56 134 29 124 116 118 99 21 56 77 91 23 37 135 81 44 51 67 95 51 133 30 57 67 116 122 48 100 7 132 97 106 69 93 4 95 125 102 103 119 81 57 133 96 37 118 50 117 113 81 127 17 45 103 32 121 129 60 43 65 127 30 36 132 110 52 53 35 71 12 76 22 72 130 112 99 76 26 21 73 63 63 97 23 58 115 132 114 1 132 31 35 18 23 54 30 53 118 37 35 84 94 60 100 3 47 18 110 105 87 57 63 76 43 52 45 46 49 65 12 10 42 66 60 117 34 19 92 5 28 76 9 126 101 125 32 38 34 15 7 62 32 21 3 43 69 31 109 123 51 116 135 130 129 130 63 14 57 80 62 15 126 31 105 83 108 120 80 124 46 98 105 91 6 6 27 7 58 128 78 7 79 63 84 77 74 128 65 61 95 121 17 24 123 117 51 122 ^'}},
- {OUT=>'41B615A34EE2CEC9D84A91B141CFAB115821950B'}],
- ['148', {IN=> {f=> '284 0 44 71 43 20 126 58 53 47 98 18 19 119 93 29 70 39 94 112 44 115 135 98 82 10 67 29 102 113 68 80 19 75 1 91 114 87 80 7 40 37 86 120 16 104 136 117 82 138 32 65 114 119 137 121 8 12 46 126 26 119 73 130 60 76 113 100 14 133 26 116 34 120 80 95 84 53 15 24 44 51 4 10 23 77 24 99 66 37 54 63 42 136 21 34 76 5 17 128 101 1 59 40 113 112 32 97 31 93 105 79 91 18 39 1 103 132 51 68 124 111 13 97 43 128 69 84 85 72 15 12 26 87 16 16 92 101 13 77 4 118 89 103 56 42 16 60 44 39 126 46 18 83 93 41 105 3 82 106 115 91 6 4 54 115 15 120 109 113 48 41 9 95 20 62 67 105 111 25 132 7 116 46 138 44 83 61 124 131 35 107 6 109 81 114 67 41 137 77 56 74 73 34 12 14 69 52 11 98 47 54 83 81 6 1 15 88 35 139 80 83 49 89 27 47 130 92 133 87 51 112 76 49 109 49 57 93 73 22 117 50 64 58 97 139 36 131 111 133 58 33 8 88 55 38 90 46 30 118 57 29 82 74 41 117 38 46 94 92 5 105 15 117 70 103 68 60 120 48 21 110 85 40 81 66 ^'}},
- {OUT=>'AB3DD6221D2AFE6613B815DA1C389EEC74AA0337'}],
- ['149', {IN=> {f=> '291 0 46 113 52 134 79 74 64 57 18 23 9 52 8 16 103 57 138 59 59 65 92 2 7 130 92 8 34 40 86 131 140 100 112 4 42 1 110 108 43 37 15 67 19 35 94 61 130 98 35 88 34 65 104 56 126 118 50 87 10 81 109 90 86 118 32 6 114 88 39 38 39 62 3 12 134 72 137 35 75 81 115 106 140 112 11 123 41 103 45 95 84 71 107 13 26 110 96 62 16 109 84 59 53 38 27 8 28 13 32 137 17 138 41 122 36 99 65 99 83 36 112 29 49 70 96 126 136 131 116 3 18 17 126 142 14 37 141 141 123 42 13 20 83 42 139 83 54 49 58 42 7 137 29 48 16 121 127 34 52 140 106 128 58 36 124 83 24 69 54 61 112 17 6 95 97 24 57 86 124 59 71 119 67 1 109 54 68 49 57 132 32 5 71 113 40 80 104 75 106 133 31 126 130 104 62 9 39 44 66 116 141 135 96 132 19 41 121 126 124 77 8 4 60 82 6 101 124 89 51 123 48 40 85 77 21 112 10 69 66 115 87 16 108 30 84 65 80 103 32 131 134 73 47 10 63 39 50 93 37 135 114 69 48 34 58 23 27 133 37 9 40 98 41 115 99 70 83 29 42 67 133 55 79 80 91 122 12 2 115 112 47 ^'}},
- {OUT=>'0706D414B4AA7FB4A9051AA70D6856A7264054FB'}],
- ['150', {IN=> {f=> '293 1 33 13 99 138 1 42 89 118 87 113 99 12 134 142 100 38 5 55 75 14 110 108 42 64 130 79 138 62 64 69 57 11 123 25 59 16 111 94 24 65 30 51 119 48 107 92 84 69 28 136 143 54 20 6 70 47 142 64 4 65 59 73 99 134 146 102 125 116 57 137 137 72 48 128 78 5 80 63 54 85 30 22 129 68 21 21 74 28 128 107 27 60 2 93 95 71 37 11 37 15 39 102 3 104 65 80 59 52 113 34 20 67 60 27 81 135 46 106 106 102 68 128 17 15 100 124 15 43 136 122 100 67 142 35 14 53 120 2 89 93 99 73 9 122 39 77 15 96 90 43 79 134 60 92 105 55 96 31 119 77 97 72 23 140 38 30 43 83 136 88 107 117 72 109 118 58 91 119 73 95 100 59 138 123 54 49 143 50 133 66 106 45 80 88 42 93 5 59 77 101 74 110 104 40 92 19 77 76 86 102 129 3 144 101 139 134 56 90 18 91 94 85 55 10 137 11 58 1 107 113 70 22 7 56 29 143 111 8 46 45 116 122 129 89 7 121 53 95 14 49 118 62 125 91 37 97 15 35 100 63 140 63 50 51 58 26 127 6 45 59 102 121 114 85 141 135 10 72 19 106 66 66 41 53 13 38 1 21 103 50 108 46 119 ^'}},
- {OUT=>'3CBF8151F3A00B1D5A809CBB8C4F3135055A6BD1'}],
- ['151', {IN=> {f=> '297 1 46 31 132 112 28 63 124 97 129 43 40 72 99 107 132 137 96 139 99 145 121 144 118 37 81 39 94 60 55 109 47 109 110 75 42 12 139 137 43 128 106 107 19 126 12 101 148 127 15 117 125 125 62 96 13 76 70 96 101 110 138 8 95 76 143 17 32 97 79 149 39 31 94 123 21 41 135 55 84 70 33 135 118 50 62 121 81 1 45 144 93 60 5 64 137 8 105 91 82 67 27 113 119 53 18 98 79 48 84 32 135 128 5 1 20 76 17 85 108 72 36 141 140 49 150 105 104 3 149 14 54 18 148 64 49 125 37 28 28 101 22 104 91 32 82 117 12 114 69 58 2 58 115 9 108 47 59 65 14 92 7 4 86 98 16 82 92 95 38 94 10 10 48 97 104 66 115 97 142 115 122 119 40 97 16 32 47 34 88 89 26 50 12 76 80 51 40 9 133 24 44 40 122 84 108 22 142 140 99 44 15 54 8 42 125 150 130 21 79 124 62 46 119 15 29 91 57 150 42 138 71 61 68 80 114 6 1 70 121 18 35 113 56 87 86 10 73 14 29 41 72 89 1 133 87 101 123 59 90 142 77 133 52 78 48 34 138 134 27 17 60 131 147 61 93 148 39 132 49 62 71 36 91 4 139 49 100 120 43 113 144 30 94 73 127 40 125 ^'}},
- {OUT=>'DA5D6A0319272BBCCEA63ACFA6799756FFDA6840'}],
- ['152', {IN=> {f=> '313 1 35 97 95 76 105 88 32 138 30 69 61 40 47 21 107 6 39 81 114 53 125 53 147 14 4 73 146 96 98 13 136 11 98 117 138 153 67 146 71 99 88 7 139 24 13 35 47 97 145 74 36 119 3 51 84 48 119 53 49 15 79 17 120 103 148 64 30 41 97 120 75 111 63 58 131 134 18 13 10 48 18 16 48 43 15 54 18 41 47 122 144 80 92 145 77 1 33 89 54 46 78 48 21 54 43 40 53 24 16 73 42 94 29 44 34 151 152 23 123 12 142 140 43 37 88 29 19 35 72 96 151 130 62 112 34 36 91 120 50 112 138 2 105 60 68 137 131 5 17 19 139 74 11 120 78 149 58 128 15 104 16 126 78 20 57 134 71 49 90 76 108 126 100 54 68 39 132 153 42 147 146 124 62 87 35 75 61 65 46 100 82 105 113 31 63 5 95 54 71 77 127 150 80 36 144 2 130 59 74 39 3 152 121 122 18 117 12 117 141 118 135 62 36 69 5 39 53 150 52 153 143 30 66 96 126 131 56 137 8 7 86 142 14 7 111 141 93 136 137 134 43 12 89 23 44 9 152 146 121 97 19 38 110 91 67 14 32 110 66 68 8 130 84 73 118 59 24 41 72 121 150 55 37 138 27 104 66 124 9 51 109 47 125 109 148 8 29 47 72 146 149 61 93 10 20 54 15 76 133 125 106 110 67 ^'}},
- {OUT=>'FB4429C95F6277B346D3B389413758DFFFEEDC98'}],
- ['153', {IN=> {f=> '330 0 23 9 26 136 27 51 115 122 44 106 6 146 108 113 85 51 8 96 47 56 137 62 59 89 143 71 140 14 85 156 139 99 154 30 53 115 35 147 108 148 58 52 28 103 19 92 95 152 152 10 11 13 155 67 11 83 101 69 153 152 45 141 14 120 129 140 119 59 2 89 73 70 83 29 16 67 81 29 1 54 65 96 117 2 37 47 128 33 3 89 108 98 139 49 78 27 103 39 119 94 132 90 38 132 55 65 131 90 58 2 54 100 69 118 22 44 19 7 148 93 25 29 123 81 64 131 55 30 1 89 38 97 82 64 9 28 86 123 151 10 133 40 154 102 4 111 65 9 63 59 124 116 72 105 76 57 137 97 32 145 108 78 112 50 43 34 75 20 22 129 68 11 118 74 125 118 57 17 20 129 53 65 61 144 1 17 142 156 52 100 54 15 20 59 52 63 131 20 57 124 31 125 46 106 76 92 8 98 154 152 80 114 15 140 136 112 100 17 92 25 151 150 80 99 69 83 49 43 156 102 19 57 122 96 30 3 39 134 40 32 75 5 76 127 138 99 17 57 52 150 130 18 127 33 23 116 107 78 77 77 42 69 68 48 41 69 33 75 40 49 128 103 4 146 93 10 83 66 96 152 30 38 12 33 5 39 47 41 34 60 74 20 42 156 67 46 56 102 89 3 124 81 99 104 56 50 8 61 74 55 15 87 108 28 138 47 93 60 2 124 46 126 103 91 145 36 25 116 122 51 ^'}},
- {OUT=>'2C6E30D9C895B42DCCCFC84C906EC88C09B20DE1'}],
- ['154', {IN=> {f=> '322 0 75 7 107 158 81 105 154 90 20 125 77 114 69 92 7 58 21 98 154 50 128 149 117 127 153 45 3 18 121 86 29 71 79 101 2 5 22 143 10 27 53 146 157 148 112 33 22 80 123 24 147 1 112 82 159 63 74 97 109 33 151 32 89 87 132 117 46 129 59 115 91 114 118 37 21 9 94 60 25 89 47 79 110 55 12 143 99 87 43 88 56 57 160 76 12 71 128 77 146 117 95 105 42 66 3 76 20 76 101 100 118 149 45 26 143 148 32 57 39 129 19 31 84 123 1 152 135 5 54 30 13 125 68 30 62 101 51 142 5 94 83 20 116 24 107 109 105 91 42 17 27 93 69 3 139 68 79 38 84 2 85 128 126 122 131 46 17 35 98 42 26 111 100 29 120 55 84 114 109 145 14 18 138 14 9 85 7 18 129 91 2 94 51 133 82 87 123 64 39 8 103 38 75 110 78 7 9 45 115 42 138 135 86 78 16 62 52 75 159 54 151 121 149 77 74 16 85 47 102 105 82 119 10 67 137 153 148 135 28 49 26 151 153 36 80 11 130 113 24 44 30 102 24 58 133 122 140 99 24 156 54 119 42 115 140 90 132 19 94 2 157 99 136 19 71 7 130 153 108 51 21 58 70 74 137 1 40 111 149 5 103 6 27 76 141 23 125 140 1 72 29 152 103 87 51 93 29 80 132 77 123 153 68 159 14 98 114 158 121 158 81 131 ^'}},
- {OUT=>'3DE3189A5E19F225CDCE254DFF23DACD22C61363'}],
- ['155', {IN=> {f=> '322 0 35 93 109 125 119 10 10 19 135 26 4 74 135 35 120 129 113 92 17 29 47 88 14 159 149 87 45 36 75 68 22 138 20 59 61 144 151 11 107 6 153 81 114 43 85 157 97 148 118 73 126 56 58 137 96 11 98 67 98 103 57 146 21 59 88 151 139 148 127 25 17 47 115 34 160 109 107 51 64 28 69 13 49 149 69 141 90 93 118 64 10 1 67 80 35 111 13 58 101 124 132 147 154 18 162 6 162 33 5 34 142 41 161 82 114 70 92 145 57 155 137 114 79 44 36 48 48 21 14 13 40 33 14 150 33 32 54 143 14 4 101 142 23 93 136 132 120 147 17 38 163 143 5 52 46 151 130 32 72 34 124 150 51 100 112 128 126 65 10 28 87 81 159 131 19 99 54 125 110 58 119 28 78 129 104 140 126 38 154 27 114 61 153 90 66 98 76 50 158 48 39 82 123 22 147 136 114 52 37 35 75 41 15 150 60 52 55 103 21 23 129 95 24 71 47 97 130 50 140 144 106 100 9 64 19 117 122 71 92 8 77 156 97 121 98 85 2 36 39 109 143 23 120 156 133 93 154 36 66 116 131 160 127 162 161 46 142 14 141 81 141 63 86 117 104 3 146 39 127 34 133 102 106 91 57 9 28 60 61 7 158 12 80 26 8 122 80 44 63 68 49 158 21 32 81 150 15 141 108 161 64 46 124 123 31 99 27 105 109 98 112 144 ^'}},
- {OUT=>'93530A9BC9A817F6922518A73A1505C411D05DA2'}],
- ['156', {IN=> {f=> '336 1 34 161 107 149 48 67 138 109 156 104 37 133 60 80 84 81 160 9 16 96 164 1 95 112 4 86 163 116 98 103 55 31 8 56 37 36 127 32 9 89 103 31 100 161 85 106 119 89 154 43 115 162 137 108 128 38 42 155 103 9 62 65 102 122 10 138 160 125 47 158 43 91 69 123 132 35 121 4 110 89 130 69 29 139 69 53 70 83 29 163 67 41 9 108 34 45 76 87 2 144 164 98 33 160 79 78 48 89 9 38 134 93 146 79 54 122 80 38 112 55 55 101 70 8 129 44 70 59 98 149 24 136 124 138 63 25 166 83 51 34 91 45 30 118 59 28 87 72 44 116 28 36 103 101 113 10 114 62 111 71 65 126 53 19 114 86 42 85 36 57 137 57 159 95 88 78 72 20 23 14 65 10 22 129 68 1 68 74 75 108 7 7 147 109 13 35 51 104 158 164 122 126 2 50 4 132 127 59 52 13 81 20 47 107 74 148 115 46 106 46 82 115 68 144 142 60 104 15 90 136 102 100 134 42 15 141 100 40 49 49 73 166 13 156 82 166 37 82 96 137 130 166 134 20 139 45 122 56 107 98 79 124 17 32 130 120 165 77 23 130 96 67 68 47 37 12 29 18 38 158 19 160 55 147 39 118 83 121 96 43 137 33 66 86 112 147 155 149 140 5 19 17 148 161 10 44 159 146 57 16 26 102 49 3 104 61 59 74 56 10 165 31 54 25 142 157 37 58 165 128 154 73 50 149 94 137 ^'}},
- {OUT=>'E31354345F832D31E05C1B842D405D4BD4588EC8'}],
- ['157', {IN=> {f=> '330 1 61 51 65 132 23 169 116 122 14 66 7 98 131 72 69 127 72 163 125 68 69 51 47 159 31 164 71 118 50 83 113 81 127 153 45 137 134 121 68 163 26 43 65 127 166 138 98 144 18 53 137 139 148 76 158 4 62 78 167 102 144 94 55 141 63 29 97 91 24 115 166 80 69 132 99 1 120 23 88 64 87 118 37 137 152 94 60 168 71 47 52 110 37 155 125 63 42 43 52 11 12 151 31 12 44 110 32 128 117 68 87 24 39 164 76 145 58 101 91 100 140 151 143 130 32 21 3 111 1 31 75 123 153 116 135 130 27 164 165 116 23 12 62 83 24 133 139 49 74 154 80 158 80 64 105 91 6 142 27 75 24 128 112 41 79 29 84 145 40 128 99 95 95 19 17 160 89 15 17 84 64 11 93 10 66 78 73 127 148 18 129 139 143 49 150 9 84 82 154 85 15 88 82 60 87 19 12 133 58 20 39 65 51 141 134 27 70 167 120 117 86 60 16 44 16 57 132 18 142 85 104 59 47 141 58 2 66 96 46 119 153 40 110 126 103 90 144 13 26 106 144 80 145 134 103 95 24 44 21 84 140 13 97 104 140 99 6 147 54 83 42 106 131 54 96 135 67 118 121 81 109 10 53 132 112 117 81 33 155 49 61 38 119 1 13 102 131 148 94 131 143 67 123 148 89 104 135 72 145 152 76 87 6 66 2 71 123 77 114 108 59 123 166 62 96 140 94 149 116 169 ^'}},
- {OUT=>'3FF76957E80B60CF74D015AD431FCA147B3AF232'}],
- ['158', {IN=> {f=> '349 0 125 17 93 82 80 110 156 147 156 99 154 4 29 90 163 120 84 113 56 8 157 29 61 169 141 113 78 48 50 13 138 11 50 61 99 106 2 107 6 117 81 114 34 49 112 52 130 82 73 108 20 22 110 60 11 98 22 62 58 48 146 149 23 88 142 139 121 91 16 163 2 88 171 133 100 62 51 46 10 24 150 49 131 60 114 63 84 91 64 165 138 40 44 172 111 141 58 74 115 96 129 145 164 153 170 126 24 169 16 115 41 125 46 87 61 92 145 39 155 92 78 70 35 27 21 48 21 151 159 40 15 5 132 170 23 18 107 160 150 56 133 23 66 109 123 102 102 172 166 145 116 151 34 1 151 130 5 36 34 97 114 15 82 128 112 119 99 29 138 165 42 36 159 95 19 63 36 89 101 40 92 1 33 93 104 113 126 2 136 96 52 108 90 57 89 31 5 113 30 39 37 96 4 147 127 105 43 165 35 75 23 143 105 24 25 10 94 12 160 102 95 170 71 20 70 112 23 95 144 61 73 137 55 1 81 95 26 65 172 41 147 79 103 80 40 121 36 12 64 98 169 93 111 115 48 127 9 39 107 131 115 118 162 161 10 142 14 123 54 141 36 41 99 77 140 128 167 82 25 106 57 70 64 21 19 15 34 126 149 167 53 163 127 86 35 8 54 23 40 140 3 169 45 150 152 96 81 143 28 28 124 87 13 90 9 87 109 53 67 164 28 131 89 149 42 55 126 79 132 74 19 133 30 68 72 75 148 9 10 72 152 144 83 106 153 74 163 98 152 ^'}},
- {OUT=>'34AE3B806BE143A84DCE82E4B830EB7D3D2BAC69'}],
- ['159', {IN=> {f=> '375 1 94 28 13 8 20 28 18 118 5 140 89 67 171 64 152 85 61 101 80 154 149 34 115 135 128 108 110 20 33 128 103 35 38 57 95 10 111 151 98 29 149 7 82 69 96 114 26 103 171 101 53 121 24 2 121 51 35 70 83 29 154 67 5 167 63 16 27 58 60 2 99 128 71 33 160 70 51 3 44 149 2 89 84 101 43 18 113 71 38 94 55 46 74 52 139 102 35 43 50 80 122 6 100 88 129 36 25 148 47 24 7 55 36 30 82 32 19 78 63 26 71 28 167 85 56 167 95 159 78 26 66 35 65 90 44 159 105 59 15 67 57 137 21 132 50 70 78 36 169 5 172 56 1 22 129 68 168 23 74 30 99 138 174 120 91 153 8 42 68 158 155 104 99 133 5 135 96 82 59 52 144 36 20 38 62 29 112 106 46 106 19 73 70 41 135 133 42 95 15 45 136 93 100 98 173 6 132 55 4 4 31 64 130 162 156 64 157 19 46 96 92 103 139 134 2 94 18 86 38 89 62 61 79 157 14 112 111 156 32 14 85 78 31 59 20 1 161 169 149 29 122 150 133 37 102 30 109 65 85 51 174 110 164 66 77 76 111 119 131 95 5 1 166 103 134 141 17 158 123 137 48 165 175 102 13 3 86 43 23 47 56 150 165 4 36 174 115 157 168 13 147 119 109 55 41 140 67 27 31 27 53 126 17 163 116 122 160 60 7 92 113 66 45 109 60 151 125 62 39 39 17 153 13 152 53 94 50 53 89 57 127 153 45 119 104 121 56 145 172 19 41 103 166 108 68 126 12 53 131 127 148 52 134 168 50 48 155 72 132 82 37 129 63 175 160 ^'}},
- {OUT=>'D7447E53D66BB5E4C26E8B41F83EFD107BF4ADDA'}],
- ['160', {IN=> {f=> '366 1 73 15 79 139 71 51 132 81 135 111 166 61 37 60 118 37 92 134 94 60 150 53 47 25 110 19 137 107 27 176 43 16 145 146 142 165 12 17 92 166 110 117 41 69 6 12 164 76 109 40 101 82 82 131 134 115 143 112 32 164 146 93 162 31 66 123 144 80 135 94 137 156 107 157 173 62 65 176 124 112 4 65 127 44 131 53 19 105 91 149 106 27 57 158 92 85 14 79 20 84 127 174 128 72 68 59 171 17 124 80 167 8 57 28 172 66 144 48 42 37 109 121 18 120 103 116 13 132 39 73 145 76 158 43 82 33 51 153 164 97 13 2 3 20 24 114 98 9 25 131 102 99 86 42 16 26 159 39 105 161 133 49 59 41 20 105 31 136 30 87 10 119 135 13 83 99 58 45 99 156 26 61 135 143 80 118 107 76 77 24 44 12 66 95 147 61 86 140 99 167 138 54 47 42 97 122 18 60 90 40 73 85 63 82 1 35 96 94 81 54 15 128 40 52 2 101 1 165 93 113 130 85 95 98 58 105 112 53 68 108 72 100 152 49 87 140 39 154 62 114 77 105 63 50 87 157 26 78 122 67 140 71 170 119 5 93 64 50 104 144 129 138 75 130 4 178 60 139 120 54 113 32 2 133 17 43 163 129 89 72 149 155 30 38 7 138 5 44 61 69 76 175 107 6 93 81 114 28 25 82 22 118 58 73 96 175 177 92 36 11 98 171 38 28 42 146 125 178 88 136 139 103 67 10 151 151 70 153 115 94 32 51 34 177 173 132 49 119 54 96 45 78 73 64 159 120 22 20 154 111 117 58 56 109 72 143 ^'}},
- {OUT=>'77DD2A4482705BC2E9DC96EC0A13395771AC850C'}],
- ['161', {IN=> {f=> '372 1 136 146 144 170 90 15 169 180 88 41 89 10 60 52 92 145 21 155 47 42 61 26 18 176 48 21 124 141 40 179 178 114 143 14 164 71 142 132 11 124 23 39 82 114 84 57 163 130 127 89 133 16 138 151 130 160 34 70 78 161 64 92 112 110 72 175 102 138 179 173 159 59 19 27 18 53 92 22 65 156 170 57 104 86 126 148 118 155 78 43 63 90 48 80 168 142 68 12 39 174 69 168 147 118 96 34 129 35 75 5 107 60 170 180 147 85 3 133 75 95 152 71 175 43 94 178 50 144 16 46 101 46 165 45 68 163 38 172 5 138 61 85 62 177 76 36 167 19 53 151 66 66 97 3 100 164 12 98 131 70 109 162 161 156 142 14 105 27 141 9 178 81 50 113 110 131 37 16 79 12 34 37 167 173 10 152 7 81 140 158 26 136 82 50 172 154 45 160 31 122 167 142 9 150 125 51 54 125 174 10 124 51 177 81 173 69 109 8 22 155 19 86 62 149 33 37 108 34 96 29 174 133 167 50 54 66 130 9 1 36 134 108 65 97 126 56 163 71 83 88 10 1 8 178 22 6 112 169 116 89 43 153 40 146 85 31 89 74 154 137 28 115 117 122 108 98 8 27 110 103 176 17 20 27 77 10 93 145 80 17 143 165 76 69 78 102 20 91 171 95 29 115 176 166 109 39 23 70 83 29 148 67 163 161 33 4 15 46 42 2 69 104 53 33 160 64 33 155 14 131 160 59 78 71 19 176 107 65 38 82 55 40 56 40 115 84 29 25 44 68 104 176 76 64 123 18 25 136 23 6 171 31 30 30 58 14 13 72 57 14 41 177 ^'}},
- {OUT=>'EAA1465DB1F59DE3F25EB8629602B568E693BB57'}],
- ['162', {IN=> {f=> '363 0 135 69 16 167 79 143 46 178 26 3 65 58 36 135 97 35 175 51 152 57 137 173 108 10 54 78 4 153 173 164 48 177 22 129 68 168 167 74 174 91 106 174 96 75 129 168 34 36 158 147 88 75 101 149 103 64 42 59 52 112 180 20 30 22 173 80 98 46 106 179 65 30 17 127 125 26 87 15 5 136 85 100 66 141 182 124 15 156 148 15 56 98 146 156 48 149 3 14 96 52 79 115 134 170 54 178 54 22 73 30 45 39 133 182 96 103 148 176 6 45 62 183 51 180 153 145 145 117 21 90 118 109 21 62 22 101 49 53 11 142 86 132 66 69 44 79 87 115 55 5 169 150 63 110 109 177 150 91 129 40 149 159 102 165 3 70 27 175 23 56 126 165 164 20 158 91 157 136 157 131 111 69 39 33 132 43 19 175 179 37 118 9 155 116 122 128 52 7 84 89 58 13 85 44 135 125 54 183 23 161 145 173 136 29 62 50 13 57 25 127 153 45 95 64 121 40 121 140 171 9 71 166 68 28 102 4 53 123 111 148 20 102 160 34 8 139 32 116 66 13 113 63 143 97 63 10 59 124 66 41 132 71 115 106 151 46 22 45 118 37 67 124 94 60 140 43 47 10 110 9 127 97 7 156 43 180 125 126 137 145 12 2 82 146 100 117 26 59 180 181 164 76 89 30 101 77 72 126 114 95 143 102 32 149 131 83 157 31 61 123 139 60 135 74 169 122 151 102 137 168 62 55 166 119 97 163 60 112 24 116 38 178 105 91 134 86 27 47 138 72 70 183 79 15 84 117 154 128 57 53 39 161 88 ^'}},
- {OUT=>'9329D5B40E0DC43AA25FED69A0FA9C211A948411'}],
- ['163', {IN=> {f=> '393 1 92 72 151 33 183 164 42 112 32 10 5 93 97 18 112 71 92 168 116 179 186 65 137 68 134 3 82 9 19 121 148 65 160 173 158 167 90 66 180 172 99 86 83 86 26 16 10 135 23 81 137 125 17 19 25 183 73 7 104 185 79 165 119 119 176 59 75 18 5 59 132 26 21 127 119 80 94 83 52 61 24 44 4 50 55 115 29 70 140 99 159 130 54 15 42 89 114 173 28 50 16 33 53 47 58 180 19 64 78 49 30 186 104 32 44 157 85 1 149 85 97 114 77 63 58 50 89 80 21 36 84 72 60 152 25 87 108 15 138 54 106 77 97 23 42 55 149 181 62 106 43 132 31 138 111 176 93 40 10 96 128 105 114 43 98 4 146 20 107 120 14 113 181 101 1 19 155 113 57 64 117 131 6 22 186 138 184 36 61 29 36 175 107 6 61 81 114 20 180 42 169 102 26 73 80 151 153 68 4 11 98 139 6 175 34 146 93 154 88 128 139 79 35 2 135 119 46 129 91 86 179 51 18 169 141 108 49 103 46 72 21 70 49 64 151 96 185 175 130 111 85 58 32 101 40 101 131 136 139 170 70 10 169 175 73 41 69 177 45 47 92 145 11 155 22 22 56 21 13 166 48 21 109 131 40 174 178 104 128 9 149 51 132 122 173 119 23 24 67 109 74 32 158 110 117 74 123 6 118 151 130 150 167 34 55 58 146 54 72 112 105 57 160 82 123 159 153 159 39 19 7 8 33 87 12 50 146 150 37 104 71 126 133 108 145 68 38 38 90 43 75 148 122 43 2 39 154 54 163 147 113 91 29 109 35 75 182 87 35 155 170 127 80 185 118 60 95 142 71 165 28 84 168 25 144 178 31 81 41 160 25 53 143 ^'}},
- {OUT=>'E94C0B6AA62AA08C625FAF817DDF8F51EC645273'}],
- ['164', {IN=> {f=> '381 1 14 172 163 130 45 69 46 145 36 36 151 169 13 135 42 26 81 153 76 148 178 90 131 30 101 162 161 132 142 14 89 3 141 175 146 65 26 89 94 99 187 8 55 162 2 13 143 173 2 120 173 41 132 150 2 112 42 18 140 130 37 128 23 106 159 118 167 150 101 11 30 109 150 184 124 19 169 73 165 53 109 158 172 147 11 46 38 149 25 21 92 184 64 179 158 133 135 34 38 58 114 9 183 4 118 76 49 89 102 40 163 47 75 80 176 175 8 154 14 180 104 153 84 89 11 129 8 138 85 181 73 66 154 121 20 115 93 114 108 82 182 19 86 103 176 183 186 177 53 10 69 137 56 1 135 141 68 69 54 86 12 75 171 87 187 107 144 150 93 23 7 70 83 29 140 67 139 153 183 178 189 30 18 2 29 72 29 33 160 56 9 123 164 107 136 19 70 31 177 152 99 57 38 66 55 32 32 24 83 60 21 1 36 52 80 168 44 32 115 184 25 120 181 172 155 189 22 30 26 180 5 64 49 188 1 28 111 57 176 167 67 131 22 160 186 169 65 34 30 117 91 17 163 39 134 57 137 155 90 170 42 78 170 141 167 158 42 177 22 129 68 168 143 74 150 85 82 174 78 63 111 156 28 12 158 141 76 57 77 125 79 40 12 59 52 88 156 20 24 182 149 56 92 46 106 167 59 189 121 119 14 81 15 165 136 79 100 42 117 182 118 175 138 124 3 50 74 134 156 36 143 181 180 96 22 61 97 134 164 24 166 30 10 61 6 33 9 115 176 84 97 142 152 15 50 165 45 168 135 133 127 93 15 66 94 91 9 32 16 95 37 29 171 118 68 108 66 63 20 55 186 ^'}},
- {OUT=>'7FF02B909D82AD668E31E547E0FB66CB8E213771'}],
- ['165', {IN=> {f=> '396 1 97 10 5 160 132 18 83 73 159 141 55 120 31 131 141 102 138 3 52 9 148 189 56 99 165 146 2 140 64 157 100 121 113 102 24 21 24 123 16 10 139 152 19 109 146 116 122 92 43 7 75 62 49 170 58 26 117 125 45 147 5 125 136 155 118 2 26 50 161 21 182 127 153 45 68 19 121 22 94 104 144 166 35 166 23 176 75 188 53 114 93 148 177 66 151 16 156 121 180 98 48 179 95 63 107 97 45 1 23 97 57 23 132 53 79 97 124 19 188 18 118 37 22 106 94 60 122 25 47 176 110 184 109 79 164 120 43 153 89 90 128 109 12 168 64 110 82 117 192 41 171 163 164 76 53 12 101 68 54 117 78 59 143 84 32 122 104 65 148 31 52 123 130 24 135 38 151 95 142 93 101 159 62 37 148 110 70 127 51 85 181 89 11 142 105 91 107 50 27 29 102 36 43 165 79 6 84 99 118 128 30 26 3 143 17 68 66 139 187 15 165 158 24 88 20 179 174 81 79 18 106 47 74 150 104 179 162 59 131 62 116 166 82 184 188 97 136 41 136 167 140 143 175 72 42 174 148 75 74 71 86 14 16 191 117 11 63 119 119 186 182 13 171 49 182 80 167 73 147 119 107 164 41 57 181 168 29 114 26 184 121 101 80 76 65 34 49 24 44 191 38 25 91 5 58 140 99 153 124 54 184 42 83 108 155 4 20 191 3 29 35 40 180 7 40 66 25 12 180 86 26 38 139 73 1 137 79 85 102 71 39 28 44 77 56 190 12 66 72 30 152 7 87 84 190 126 48 100 77 91 186 36 31 143 163 50 94 25 126 1 114 105 170 93 22 173 90 116 87 96 19 74 4 122 183 83 120 177 113 169 181 77 182 1 149 186 ^'}},
- {OUT=>'5BB3570858FA1744123BAC2873B0BB9810F53FA1'}],
- ['166', {IN=> {f=> '384 1 25 56 85 107 177 6 186 138 184 28 61 184 191 175 107 6 29 81 114 12 156 2 137 86 189 73 64 127 129 44 167 11 98 107 169 143 26 146 61 130 88 120 139 55 3 189 119 87 22 105 67 78 147 51 2 161 109 84 49 87 38 48 192 62 25 64 143 72 169 151 106 111 53 58 8 93 8 85 123 120 131 170 38 2 169 167 49 41 37 153 21 39 92 145 190 155 177 185 48 13 5 150 48 21 85 115 40 166 178 88 104 1 125 19 116 106 141 111 23 43 101 58 187 150 78 101 50 107 185 86 151 130 134 143 34 31 26 122 38 40 112 97 33 136 50 99 127 121 159 7 19 170 187 1 79 191 26 130 118 5 104 47 126 109 92 129 52 30 193 90 35 67 116 90 3 181 39 122 30 155 147 105 83 21 77 35 75 174 55 190 131 154 95 72 185 94 36 95 126 71 149 4 68 152 180 144 146 7 49 33 152 188 29 111 194 172 148 125 35 59 36 125 11 36 141 149 183 125 27 1 71 133 61 138 168 85 131 5 96 162 161 117 142 14 79 183 141 165 126 55 11 74 84 79 167 3 40 142 177 193 128 173 192 100 163 16 127 145 182 97 17 193 120 115 32 108 18 96 154 103 152 150 86 181 15 99 135 179 124 194 164 68 160 43 109 138 152 142 6 21 23 149 20 11 82 164 44 159 148 133 115 24 28 53 104 9 183 179 108 56 39 84 87 30 163 32 70 75 166 170 8 139 9 175 99 143 64 89 186 114 183 133 85 161 63 61 154 111 15 115 78 109 108 72 177 14 71 103 176 173 176 157 38 10 54 132 41 186 130 126 63 69 39 76 7 65 171 82 172 102 124 140 83 113 ^'}},
- {OUT=>'905F43940B3591CE39D1145ACB1ECA80AB5E43CD'}],
- ['167', {IN=> {f=> '396 1 189 70 83 29 132 67 115 145 151 170 181 14 192 2 187 40 5 33 160 48 183 91 132 83 112 177 62 189 153 128 91 49 38 50 55 24 8 8 51 36 13 175 28 36 56 160 12 107 168 25 104 157 156 139 165 14 30 192 164 195 56 41 180 159 28 79 41 144 167 51 115 188 136 154 145 65 2 22 93 83 191 147 23 110 57 137 131 66 138 26 78 146 125 159 150 34 177 22 129 68 168 111 74 118 77 50 174 54 47 87 140 20 178 158 133 60 33 45 93 47 8 170 59 52 56 124 20 16 150 117 24 84 46 106 151 51 158 173 113 111 196 73 15 133 136 71 100 10 85 182 110 143 114 92 185 42 42 118 156 20 135 173 156 96 180 37 73 134 156 182 150 196 192 45 172 17 167 91 168 68 89 134 120 190 173 34 141 37 152 111 117 103 61 7 34 62 67 191 190 8 87 21 195 139 86 44 76 66 55 186 23 31 87 183 5 155 122 191 68 53 149 136 35 115 26 121 131 102 123 3 42 197 133 179 56 84 165 136 190 130 49 157 80 101 103 97 197 11 19 118 1 5 119 137 9 104 193 141 116 122 72 38 7 70 47 44 155 43 16 107 125 40 127 193 105 131 145 108 185 6 50 141 1 167 127 153 45 53 192 121 12 79 84 129 151 15 166 196 156 60 188 53 109 83 148 162 46 146 6 136 111 160 88 38 169 85 63 87 97 35 194 3 82 52 13 132 43 59 92 109 4 178 3 118 37 195 96 94 60 112 15 47 166 110 179 99 69 149 100 43 138 69 70 123 89 12 158 54 90 72 117 182 31 166 153 164 76 33 2 101 63 44 112 58 39 143 74 32 107 89 55 143 31 47 123 125 4 135 18 141 80 137 88 81 154 187 ^'}},
- {OUT=>'336C79FBD82F33E490C577E3F791C3CBFE842AFF'}],
- ['168', {IN=> {f=> '406 0 23 134 103 49 99 44 64 160 68 190 114 105 91 86 22 27 15 74 8 22 151 79 199 84 85 90 128 9 5 175 129 17 40 59 125 187 194 144 151 3 60 6 158 153 67 58 18 99 19 53 129 90 179 134 52 124 55 95 138 82 170 167 69 122 13 108 160 119 115 161 51 14 167 120 47 60 57 86 16 184 96 197 42 98 112 165 154 199 157 21 168 52 146 66 126 119 93 150 20 36 153 140 194 93 26 156 114 80 80 55 44 13 35 24 44 191 24 190 63 177 44 140 99 146 117 54 163 42 76 101 134 176 185 177 168 1 21 19 180 193 12 52 197 191 173 65 19 31 118 59 1 123 72 71 88 64 11 193 37 63 28 169 184 45 72 195 152 186 87 56 176 112 41 93 77 84 158 29 3 136 142 36 80 4 119 166 86 98 163 93 1 145 83 102 66 75 191 46 4 94 155 55 120 149 113 148 181 49 175 180 142 87 5 51 65 92 167 196 186 138 184 23 61 164 171 175 107 6 9 81 114 7 141 177 117 76 174 73 54 112 114 29 152 11 98 87 154 123 21 146 41 115 88 115 139 40 183 189 109 67 7 90 52 73 127 51 192 156 89 69 49 77 33 33 182 57 10 64 138 57 159 136 91 111 33 58 193 88 188 75 118 110 126 170 18 197 169 162 34 41 17 138 6 34 92 145 185 155 157 170 43 8 140 48 21 70 105 40 161 178 78 89 196 110 199 106 96 121 106 23 185 28 96 48 167 145 58 91 35 97 180 66 151 130 124 128 34 16 6 107 28 20 112 92 18 121 30 84 107 101 159 187 19 155 182 181 74 186 11 120 98 185 104 32 126 94 82 119 42 25 173 90 30 62 96 70 178 176 39 102 15 150 147 100 78 16 57 35 75 169 35 170 116 144 75 146 ^'}},
- {OUT=>'5C6D07A6B44F7A75A64F6CE592F3BAE91E022210'}],
- ['169', {IN=> {f=> '409 1 185 70 12 95 110 71 133 183 52 136 148 144 114 186 17 25 144 164 5 79 178 172 124 117 19 43 20 93 174 36 125 117 151 109 3 164 55 101 37 122 152 77 131 168 88 162 161 93 142 14 63 167 141 149 94 39 190 50 68 47 135 198 16 110 153 177 104 173 192 68 147 179 119 137 166 73 180 169 88 91 24 76 10 80 146 79 128 150 62 149 194 83 111 171 124 170 156 60 152 27 109 106 120 134 201 184 202 149 12 198 66 132 12 127 132 133 83 8 12 45 88 9 183 155 92 24 23 76 63 14 163 8 62 67 150 162 8 115 1 167 91 127 32 89 162 90 159 125 85 129 47 53 154 95 7 115 54 101 108 56 169 6 47 103 176 157 160 125 14 10 30 124 17 178 122 102 55 69 15 60 202 49 171 74 148 94 92 124 67 200 184 70 83 29 127 67 100 140 131 165 176 4 182 2 167 20 193 33 160 43 173 71 112 68 97 157 57 169 138 113 86 44 38 40 55 19 196 201 31 21 8 165 23 26 41 155 195 183 102 158 25 94 142 146 129 150 9 30 177 154 195 51 36 175 139 28 59 31 124 167 41 105 173 121 134 130 65 185 17 78 78 181 137 13 95 57 137 116 51 118 16 78 131 115 154 145 29 177 22 129 68 168 91 74 98 72 30 174 39 37 72 130 15 163 158 128 50 18 25 73 27 191 150 59 52 36 104 20 11 130 97 4 79 46 106 141 46 138 163 108 106 191 68 15 113 136 66 100 193 65 182 105 123 99 72 180 37 22 108 156 10 130 168 141 96 160 22 58 134 151 162 140 181 187 35 157 7 147 76 163 58 84 129 100 190 153 24 126 32 142 96 107 88 41 2 14 42 52 186 170 3 82 11 180 119 66 29 56 66 50 171 3 11 77 163 5 150 112 128 ^'}},
- {OUT=>'7E0D3E9D33127F4A30EB8D9C134A58409FA8695B'}],
- ['170', {IN=> {f=> '413 1 47 25 135 129 7 108 19 107 117 102 102 3 28 190 112 165 56 63 165 122 183 116 28 157 52 73 89 90 169 202 12 111 185 203 91 116 200 97 193 134 116 122 44 31 7 63 26 37 134 22 2 93 125 33 99 186 77 124 131 94 171 183 50 113 178 146 127 153 45 32 164 121 203 58 56 108 130 192 166 168 128 39 188 53 102 69 148 141 18 139 197 108 97 132 74 24 155 71 63 59 97 21 194 180 61 45 204 132 29 31 85 88 188 164 187 118 37 167 82 94 60 98 1 47 152 110 172 85 55 128 72 43 117 41 42 116 61 12 144 40 62 58 117 168 17 159 139 164 76 5 193 101 56 30 105 30 11 143 60 32 86 68 41 136 31 40 123 118 181 135 195 127 59 130 81 53 147 62 13 124 98 34 79 39 49 145 53 180 94 105 91 71 2 27 5 54 193 7 141 79 199 84 75 70 128 199 195 160 119 17 20 54 115 187 184 129 146 193 40 201 143 138 57 43 18 94 204 38 114 80 179 114 47 119 50 80 118 82 160 152 49 112 198 88 155 104 95 151 36 199 162 100 27 50 47 86 195 16 179 81 192 27 83 107 150 134 194 147 1 158 32 131 61 111 119 83 140 5 21 133 120 174 78 26 136 109 65 80 40 29 203 25 24 44 191 14 170 43 162 34 140 99 141 112 54 148 42 71 96 119 161 165 167 148 186 11 4 180 188 197 42 182 181 168 50 14 26 103 49 1 113 67 61 78 59 196 173 32 53 8 154 169 30 72 175 152 176 87 36 166 102 36 88 77 79 138 24 188 131 127 26 70 194 114 146 66 93 158 93 191 125 78 92 51 60 176 26 4 74 135 35 120 129 113 133 181 29 170 170 137 77 190 46 45 77 157 191 186 138 184 18 61 144 151 175 107 6 194 81 114 2 126 110 ^'}},
- {OUT=>'9A5F50DFCFB19286206C229019F0ABF25283028C'}],
- ['171', {IN=> {f=> '427 1 85 60 150 73 38 88 90 5 128 11 98 55 130 91 13 146 9 91 88 107 139 16 159 189 93 35 191 66 28 65 95 51 184 148 57 45 49 61 25 9 166 49 194 64 130 33 143 112 67 111 1 58 177 80 164 59 110 94 118 170 194 197 169 154 10 41 193 114 190 26 92 145 177 155 125 146 35 200 124 48 21 46 89 40 153 178 62 65 196 86 175 90 80 89 98 23 169 4 88 32 135 137 26 75 11 81 172 34 151 130 108 104 34 200 182 83 12 196 112 84 202 97 206 60 75 69 159 163 19 131 174 157 66 178 195 104 66 161 104 8 126 70 66 103 26 17 141 90 22 54 64 38 146 168 39 70 199 142 147 92 70 8 25 35 75 161 3 138 92 128 43 59 185 55 205 95 100 71 123 173 42 126 128 144 94 176 205 20 139 149 198 59 168 172 109 112 9 33 10 73 154 36 115 97 131 99 196 144 45 81 22 112 142 72 131 148 83 162 161 78 142 14 53 157 141 139 74 29 180 35 58 27 115 198 1 90 138 167 89 173 192 48 137 159 114 132 156 58 160 154 68 76 19 56 5 70 141 64 113 150 47 129 184 73 96 166 124 155 151 55 147 17 109 86 100 129 201 164 192 149 7 193 56 112 200 107 122 133 63 206 2 40 78 9 183 140 82 4 13 71 48 4 163 201 57 62 140 157 8 100 204 162 86 117 12 89 147 75 144 120 85 109 37 48 154 85 2 115 39 96 108 46 164 1 32 103 176 147 150 105 207 10 15 119 2 173 117 87 50 69 50 202 39 171 69 133 89 72 114 57 195 179 70 83 29 122 67 85 135 111 160 171 202 172 2 147 183 33 160 38 163 51 92 53 82 137 52 149 123 98 81 39 38 30 55 14 186 196 11 6 3 155 18 16 26 150 180 168 97 148 25 84 127 136 119 135 4 30 162 144 195 46 31 170 119 28 190 ^'}},
- {OUT=>'DCA737E269F9D8626D488988C996E06B352C0708'}],
- ['172', {IN=> {f=> '443 1 17 96 167 27 91 152 100 106 109 65 164 10 57 71 167 123 209 74 57 137 95 30 90 2 78 110 101 147 138 22 177 22 129 68 168 63 74 70 65 2 174 18 23 51 116 8 142 158 121 36 207 207 45 209 170 122 59 52 8 76 20 4 102 69 186 72 46 106 127 39 110 149 101 99 184 61 15 85 136 59 100 172 37 182 98 95 78 44 173 30 204 94 156 206 123 161 120 96 132 1 37 134 144 134 126 160 180 21 136 203 119 55 156 44 77 122 72 190 125 10 105 25 128 75 93 67 13 205 196 14 31 179 142 206 75 207 159 91 38 8 28 66 43 150 185 193 63 135 5 143 98 143 32 5 125 124 197 103 14 97 107 102 87 3 18 185 97 155 56 48 165 112 178 106 13 157 32 53 79 85 149 197 7 106 175 203 71 101 195 92 193 129 116 122 24 26 7 58 11 32 119 7 202 83 125 28 79 181 57 119 121 84 161 168 50 93 163 131 127 153 45 17 144 121 198 43 36 93 115 177 166 148 108 24 188 53 97 59 148 126 208 134 192 88 87 112 64 14 145 61 63 39 97 11 194 165 46 40 199 132 19 11 80 73 178 154 177 118 37 147 72 94 60 88 201 47 142 110 167 75 45 113 52 43 102 21 22 111 41 12 134 30 42 48 117 158 7 154 129 164 76 195 188 101 51 20 100 10 201 143 50 32 71 53 31 131 31 35 123 113 166 135 180 117 44 125 76 33 142 62 3 114 93 19 59 34 34 130 38 170 74 105 91 56 192 27 205 34 178 202 131 79 199 84 65 50 128 189 185 145 109 17 49 105 187 174 114 141 183 20 196 128 123 47 28 18 89 189 23 99 70 179 94 42 114 45 65 98 82 150 137 29 102 183 68 150 89 75 141 21 184 157 80 7 40 37 86 190 16 174 66 187 12 68 102 135 114 189 137 191 148 12 116 56 96 119 73 130 200 6 113 100 154 63 26 116 104 50 80 25 14 193 83 ^'}},
- {OUT=>'B8FFC1D4972FCE63241E0E77850AC46DDE75DBFA'}],
- ['173', {IN=> {f=> '436 1 24 44 191 211 138 11 138 18 140 99 133 104 54 124 42 63 88 95 137 133 151 116 162 208 193 180 180 173 26 158 165 160 26 6 18 79 33 1 97 59 45 62 51 172 141 24 37 189 130 145 6 72 143 152 160 87 4 150 86 28 80 77 71 106 16 164 123 103 10 54 178 106 114 34 85 150 93 175 93 70 76 27 36 152 207 4 42 103 3 120 97 113 109 181 210 162 154 129 61 166 38 13 53 141 183 186 138 184 10 61 112 119 175 107 6 170 81 114 207 102 125 65 50 135 73 28 73 75 203 113 11 98 35 115 71 8 146 202 76 88 102 139 1 144 189 83 15 181 51 13 60 75 51 179 143 37 30 49 51 20 207 156 44 184 64 125 18 133 97 52 111 194 58 167 75 149 49 105 84 113 170 179 197 169 149 208 41 178 99 180 21 92 145 172 155 105 131 30 208 200 114 48 21 31 79 40 148 178 52 50 196 71 160 80 70 69 93 23 159 202 83 22 115 132 6 65 209 71 167 14 151 130 98 89 34 190 167 68 2 181 112 79 192 82 191 45 55 49 159 148 19 116 169 142 61 173 185 94 46 146 104 206 126 55 56 93 16 12 121 90 17 49 44 18 126 163 39 50 189 137 147 87 65 3 5 35 75 156 196 118 77 118 23 54 185 40 195 95 90 71 113 163 32 116 108 144 74 166 190 15 134 134 188 39 158 172 94 107 212 23 53 134 36 105 77 111 89 186 124 35 61 7 102 132 67 131 128 78 162 161 63 142 14 43 147 141 129 54 19 170 20 48 7 95 198 199 70 123 157 74 173 192 28 127 139 109 127 146 43 140 139 48 61 14 36 60 136 49 98 150 32 109 174 63 81 161 124 140 146 50 142 7 109 66 80 124 201 144 182 149 2 188 46 92 185 87 112 133 43 201 205 35 68 9 183 125 72 197 3 66 33 207 163 191 52 57 130 152 8 85 204 157 81 107 205 187 ^'}},
- {OUT=>'E9C9BF41C8549354151B977003CE1D830BE667DB'}],
- ['174', {IN=> {f=> '462 1 126 54 123 113 85 81 23 41 154 71 210 115 18 89 108 32 157 209 11 103 176 133 136 77 193 10 209 112 196 166 110 66 43 69 194 36 202 25 171 62 112 82 44 100 43 188 172 70 83 29 115 67 64 128 83 153 164 195 158 2 119 187 169 33 160 31 149 23 64 32 61 109 45 121 102 77 74 32 38 16 55 7 172 189 198 200 211 141 11 2 5 143 159 147 90 134 25 70 106 122 105 114 212 30 141 130 195 39 24 163 91 28 11 7 76 167 17 81 137 85 86 94 65 149 5 42 66 157 113 204 59 57 137 80 15 70 207 78 95 91 142 133 17 177 22 129 68 168 43 74 50 60 197 174 3 13 36 106 3 127 158 116 26 197 192 25 194 155 102 59 52 203 56 20 214 82 49 171 67 46 106 117 34 90 139 96 94 179 56 15 65 136 54 100 157 17 182 93 75 63 24 168 25 189 84 156 201 118 156 105 96 112 201 22 134 139 114 116 145 175 11 121 198 99 40 151 34 72 117 52 190 105 90 20 118 60 83 52 208 205 181 209 16 174 122 206 70 202 144 71 18 208 8 66 38 135 170 178 53 115 5 138 88 123 17 200 115 119 182 98 9 87 97 102 72 3 8 180 82 145 56 33 165 102 173 96 213 157 12 33 69 80 129 192 2 101 165 203 51 86 190 87 193 124 116 122 4 21 7 53 211 27 104 207 197 73 125 23 59 176 37 114 111 74 151 153 50 73 148 116 127 153 45 2 124 121 193 28 16 78 100 162 166 128 88 9 188 53 92 49 148 111 193 129 187 68 77 92 54 4 135 51 63 19 97 1 194 150 31 35 194 132 9 206 75 58 168 144 167 118 37 127 62 94 60 78 196 47 132 110 162 65 35 98 32 43 87 1 2 106 21 12 124 20 22 38 117 148 212 149 119 164 76 180 183 101 46 10 95 205 186 143 40 32 56 38 21 126 31 30 123 108 151 135 165 107 29 120 71 13 137 62 208 104 88 4 39 29 19 115 23 160 54 105 91 41 177 27 200 14 163 124 ^'}},
- {OUT=>'0942908960B54F96CB43452E583F4F9CB66E398A'}],
- ['175', {IN=> {f=> '453 0 115 79 199 84 49 18 128 173 169 121 93 17 186 41 89 187 158 90 133 167 206 188 104 99 31 4 18 81 165 217 75 54 179 62 34 106 37 41 66 82 134 113 215 86 159 36 142 65 43 125 215 160 149 48 193 24 21 86 182 16 166 42 179 206 44 94 111 82 181 121 167 132 198 92 48 72 119 57 114 184 200 81 68 122 39 26 84 96 26 80 1 208 177 217 24 44 191 206 118 209 123 8 140 99 128 99 54 109 42 58 83 80 122 113 141 96 147 203 183 180 175 158 16 143 155 155 11 1 13 64 23 1 87 54 35 52 46 157 121 19 27 174 115 130 209 72 123 152 150 87 202 140 76 23 75 77 66 86 11 149 118 88 44 168 101 94 14 80 145 93 165 73 65 66 12 21 137 192 4 22 83 201 120 77 113 94 181 195 157 144 124 51 151 33 211 38 131 178 186 138 184 5 61 92 99 175 107 6 155 81 114 207 87 105 45 40 120 73 18 58 60 193 98 11 98 15 100 51 3 146 187 61 88 97 139 204 129 189 73 213 171 36 216 55 55 51 174 138 17 15 49 41 15 197 146 39 174 64 120 3 123 82 37 111 179 58 157 70 134 39 100 74 108 170 164 197 169 144 198 41 163 84 170 16 92 145 167 155 85 116 25 208 200 104 48 21 16 69 40 143 178 42 35 196 56 145 70 60 49 88 23 149 192 78 12 95 127 204 55 199 61 162 212 151 130 88 74 34 180 152 53 210 166 112 74 182 67 176 30 35 29 159 133 19 101 164 127 56 168 175 84 26 131 104 196 126 40 46 83 6 7 101 90 12 44 24 216 106 158 39 30 179 132 147 82 60 216 203 35 75 151 181 98 62 108 3 49 185 25 185 95 80 71 103 153 22 106 88 144 54 156 175 10 129 119 178 19 148 172 79 102 207 13 208 33 114 36 95 57 91 79 176 104 25 41 210 92 122 62 131 108 73 162 161 48 142 14 33 137 141 119 34 9 160 5 38 205 75 198 189 50 108 112 ^'}},
- {OUT=>'FCE34051C34D4B81B85DDC4B543CDE8007E284B3'}],
- ['176', {IN=> {f=> '454 1 53 173 192 113 111 102 120 132 22 112 118 20 40 7 8 213 46 129 28 77 150 11 81 160 49 60 154 124 119 139 43 135 213 109 38 52 117 201 116 168 149 215 181 32 64 164 59 98 133 15 194 198 28 54 9 183 104 58 176 209 59 12 200 163 177 45 50 116 145 8 64 204 150 74 93 184 89 111 39 108 108 85 61 13 36 154 61 210 115 3 84 108 22 152 209 216 103 176 123 126 57 183 10 199 107 186 161 105 51 38 69 184 26 202 15 171 57 97 77 24 90 33 183 167 70 83 29 110 67 49 123 63 148 159 190 148 2 99 172 159 33 160 26 139 3 44 17 46 89 40 101 87 62 69 27 38 6 55 2 162 184 183 190 211 131 6 212 210 138 144 132 85 124 25 60 91 112 95 99 212 30 126 120 195 34 19 158 71 28 211 217 56 167 7 71 122 70 66 79 65 134 27 61 147 103 199 44 57 137 65 50 202 78 80 81 137 128 12 177 22 129 68 168 23 74 30 55 182 174 208 3 21 96 218 112 158 111 16 187 177 5 179 140 82 59 52 188 36 20 214 62 29 156 62 46 106 107 29 70 129 91 89 174 51 15 45 136 49 100 142 217 182 88 55 48 4 163 20 174 74 156 196 113 151 90 96 92 191 7 134 134 94 106 130 170 1 106 193 79 25 146 24 67 112 32 190 85 210 75 15 108 45 73 37 193 205 166 194 1 169 102 206 65 197 129 51 218 198 208 66 33 120 155 163 43 95 5 133 78 103 2 185 105 114 167 93 4 77 87 102 57 3 218 175 67 135 56 18 165 92 168 86 203 157 212 13 59 75 109 187 217 96 155 203 31 71 185 82 193 119 116 122 204 16 7 48 201 22 89 197 192 63 125 18 39 171 17 109 101 64 141 138 50 53 133 101 127 153 45 207 104 121 188 13 216 63 85 147 166 108 68 214 188 53 87 39 148 96 178 124 182 48 67 72 44 214 125 41 63 219 97 211 194 135 16 30 189 132 219 191 70 43 158 181 ^'}},
- {OUT=>'61E8916532503627F4024D13884640A46F1D61D4'}],
- ['177', {IN=> {f=> '475 0 153 118 37 99 48 94 60 64 189 47 118 110 155 51 21 77 4 43 66 195 196 99 215 12 110 6 216 24 117 134 205 142 105 164 76 159 176 101 39 218 88 184 165 143 26 32 35 17 7 119 31 23 123 101 130 135 144 93 8 113 64 207 130 62 201 90 81 205 11 22 220 94 2 146 26 105 91 20 156 27 193 208 142 178 107 79 199 84 41 2 128 165 161 109 85 17 174 37 81 187 150 78 129 159 194 184 92 87 23 214 18 77 153 209 63 46 179 46 30 102 33 29 50 82 126 101 203 78 147 20 138 53 27 117 207 148 145 32 181 16 13 86 178 16 162 30 175 198 32 90 99 66 177 113 155 124 186 80 44 60 119 49 106 176 192 65 52 106 27 26 68 92 14 80 211 200 169 213 24 44 191 202 102 197 111 140 99 124 95 54 97 42 54 79 68 110 97 133 80 135 199 175 180 171 146 8 131 147 151 221 219 9 52 15 1 79 50 27 44 42 145 105 15 19 162 103 118 201 72 107 152 142 87 190 132 68 19 71 77 62 70 7 137 114 76 214 36 160 97 78 220 76 141 93 157 57 61 58 9 125 180 4 6 67 189 120 61 113 82 181 183 153 136 120 43 139 29 199 26 123 174 186 138 184 1 61 76 83 175 107 6 143 81 114 207 75 89 29 32 108 73 10 46 48 185 86 11 98 221 88 35 221 146 175 49 88 93 139 196 117 189 65 201 163 24 208 51 39 51 170 134 1 3 49 33 11 189 138 35 166 64 116 213 115 70 25 111 167 58 149 66 122 31 96 66 104 170 152 197 169 140 190 41 151 72 162 12 92 145 163 155 69 104 21 208 200 96 48 21 4 61 40 139 178 34 23 196 44 133 62 52 33 84 23 141 184 74 4 79 123 192 47 191 53 158 200 151 130 80 62 34 172 140 41 206 154 112 70 174 55 164 18 19 13 159 121 19 89 160 115 52 164 167 76 10 119 104 188 126 28 38 75 220 3 85 90 8 40 8 204 90 154 39 14 171 128 147 78 56 216 191 35 75 147 169 82 50 100 209 45 185 13 177 95 150 ^'}},
- {OUT=>'F008D5D7853B6A17B7466CD9E18BD135E520FAF4'}],
- ['178', {IN=> {f=> '471 0 71 89 139 8 92 60 144 26 142 154 3 122 98 164 216 134 172 58 95 200 224 201 5 86 36 81 29 63 65 162 76 11 13 196 78 108 55 131 80 66 162 161 27 142 14 19 123 141 105 6 220 146 209 24 184 47 198 175 22 87 133 38 173 192 205 103 91 97 115 122 7 92 103 25 2 213 213 36 124 13 62 150 221 61 150 39 45 149 124 104 134 38 130 208 109 18 32 112 201 96 158 149 215 176 22 44 149 39 88 133 220 189 193 23 44 9 183 89 48 161 204 54 222 195 163 167 40 45 106 140 8 49 204 145 69 83 169 89 96 24 93 103 85 41 3 31 154 51 210 115 213 79 108 12 147 209 206 103 176 113 116 37 173 10 189 102 176 156 100 36 33 69 174 16 202 5 171 52 82 72 4 80 23 178 162 70 83 29 105 67 34 118 43 143 154 185 138 2 79 157 149 33 160 21 129 208 24 2 31 69 35 81 72 47 64 22 38 221 55 222 152 179 168 180 211 121 1 207 200 133 129 117 80 114 25 50 76 102 85 84 212 30 111 110 195 29 14 153 51 28 196 212 36 167 222 61 107 55 46 64 65 119 220 12 56 137 93 194 29 57 137 50 210 30 197 78 65 71 132 123 7 177 22 129 68 168 3 74 10 50 167 174 198 218 6 86 218 97 158 106 6 177 162 210 164 125 62 59 52 173 16 20 214 42 9 141 57 46 106 97 24 50 119 86 84 169 46 15 25 136 44 100 127 202 182 83 35 33 209 158 15 159 64 156 191 108 146 75 96 72 181 217 134 129 74 96 115 165 216 91 188 59 10 141 14 62 107 12 190 65 205 60 10 98 30 63 22 178 205 151 179 211 164 82 206 60 192 114 31 203 188 193 66 28 105 140 148 33 75 5 128 68 83 212 170 95 109 152 88 224 67 77 102 42 3 213 170 52 125 56 3 165 82 163 76 193 157 197 218 49 70 89 182 217 91 145 203 11 56 180 77 193 114 116 122 189 11 7 43 191 17 74 187 187 53 125 13 19 166 222 104 91 54 131 123 50 33 118 86 127 167 ^'}},
- {OUT=>'BD8D2E873CF659B5C77AAC1616827EF8A3B1A3B3'}],
- ['179', {IN=> {f=> '480 1 45 193 76 121 181 219 195 42 64 126 166 80 40 200 188 53 80 25 148 75 157 117 175 20 53 44 30 207 111 27 63 198 97 204 194 114 222 23 182 132 212 170 63 22 144 120 143 118 37 79 38 94 60 54 184 47 108 110 150 41 11 62 211 43 51 180 181 94 200 12 100 223 201 14 117 124 200 137 95 164 76 144 171 101 34 213 83 169 150 143 16 32 20 2 224 114 31 18 123 96 115 135 129 83 220 108 59 192 125 62 196 80 76 195 218 17 210 79 214 136 6 105 91 5 141 27 188 193 127 168 97 79 199 84 31 209 128 155 151 94 75 17 159 32 71 187 140 63 124 149 179 179 77 72 13 204 18 72 138 199 48 36 179 26 25 97 28 14 30 82 116 86 188 68 132 133 38 7 107 197 133 140 12 166 6 3 86 173 16 157 15 170 188 17 85 84 46 172 103 140 114 171 65 39 45 119 39 96 166 182 45 32 86 12 26 48 87 226 80 201 190 159 208 24 44 191 197 82 182 96 217 140 99 119 90 54 82 42 49 74 53 95 77 123 60 120 194 165 180 166 131 225 116 137 146 211 219 4 37 5 1 69 45 17 34 37 130 85 10 9 147 88 103 191 72 87 152 132 87 175 122 58 14 66 77 57 50 2 122 109 61 209 26 150 92 58 205 71 136 93 147 37 56 48 212 221 110 165 4 213 47 174 120 41 113 67 181 168 148 126 115 33 124 24 184 11 113 169 186 138 184 223 61 56 63 175 107 6 128 81 114 207 60 69 9 22 93 73 31 33 175 71 11 98 206 73 15 221 146 160 34 88 88 139 186 102 189 55 186 153 9 198 46 19 51 165 129 208 215 49 23 6 179 128 30 156 64 111 203 105 55 10 111 152 58 139 61 107 21 91 56 99 170 137 197 169 135 180 41 136 57 152 7 92 145 158 155 49 89 16 208 200 86 48 21 216 51 40 134 178 24 8 196 29 118 52 42 13 79 23 131 174 69 221 59 118 177 37 181 43 153 185 151 130 70 47 34 162 125 26 201 139 112 65 164 40 149 3 226 220 159 106 19 74 155 100 47 159 157 193 ^'}},
- {OUT=>'B25A04DD425302ED211A1C2412D2410FA10C63B6'}],
- ['180', {IN=> {f=> '471 0 211 98 104 174 126 7 24 61 213 225 57 90 1 33 209 183 62 147 39 215 157 121 147 71 49 216 170 35 75 140 148 54 29 86 188 38 185 221 163 95 58 71 81 131 84 44 144 10 134 142 228 118 86 156 204 126 172 46 91 196 220 197 218 70 36 73 13 47 57 154 60 3 226 188 70 100 51 131 64 62 162 161 15 142 14 11 115 141 97 219 216 138 201 16 172 31 198 167 6 75 125 26 173 192 193 95 75 93 111 114 224 76 91 213 13 227 201 213 28 120 1 50 150 213 45 142 31 33 145 124 92 130 34 126 204 109 2 16 108 201 80 150 149 215 172 14 28 137 23 80 133 208 185 189 19 36 9 183 77 40 149 200 50 214 191 163 159 36 41 98 136 8 37 204 141 65 75 157 89 84 12 81 99 85 25 224 27 154 43 210 115 205 75 108 4 143 209 198 103 176 105 108 21 165 10 181 98 168 152 96 24 29 69 166 8 202 226 171 48 70 68 217 72 15 174 158 70 83 29 101 67 22 114 27 139 150 181 130 2 63 145 141 33 160 17 121 196 8 219 19 53 31 65 60 35 60 18 38 217 55 222 144 175 156 172 211 113 226 203 192 129 117 105 76 106 25 42 64 94 77 72 212 30 99 102 195 25 10 149 35 28 184 208 20 167 218 53 95 43 30 52 65 107 220 52 129 85 190 17 57 137 38 202 14 193 78 53 63 128 119 3 177 22 129 68 168 216 74 223 46 155 174 190 214 223 78 218 85 158 102 227 169 150 198 152 113 46 59 52 161 20 214 26 222 129 53 46 106 89 20 34 111 82 80 165 42 15 9 136 40 100 115 190 182 79 19 21 197 154 11 147 56 156 187 104 142 63 96 56 173 209 134 125 58 88 103 161 212 79 184 43 227 137 6 58 103 225 190 49 201 48 6 90 18 55 10 166 205 139 167 203 160 66 206 56 188 102 15 191 180 181 66 24 93 128 136 25 59 5 124 60 67 204 158 87 105 140 84 224 59 69 102 30 3 209 166 40 117 56 220 165 74 159 68 185 157 185 206 41 66 167 ^'}},
- {OUT=>'A404E21588123E0893718B4B44E91414A785B91F'}],
- ['181', {IN=> {f=> '490 1 176 217 85 133 203 218 38 174 71 193 108 116 122 171 5 7 37 179 11 56 175 181 41 125 7 226 160 204 98 79 42 119 105 50 9 100 68 127 153 45 185 60 121 177 211 183 30 52 114 166 64 24 192 188 53 76 17 148 63 145 113 171 4 45 28 22 203 103 19 63 186 97 200 194 102 214 19 178 132 208 158 59 10 136 112 135 118 37 63 30 94 60 46 180 47 100 110 146 33 3 50 199 43 39 168 169 90 188 12 92 219 189 6 117 116 196 133 87 164 76 132 167 101 30 209 79 157 138 143 8 32 8 221 220 110 31 14 123 92 103 135 117 75 212 104 55 180 121 62 192 72 72 187 206 13 202 67 206 128 221 105 91 224 129 27 184 181 115 160 89 79 199 84 23 197 128 147 143 82 67 17 147 28 63 187 132 51 120 141 167 175 65 60 5 196 18 68 126 191 36 28 179 10 21 93 24 2 14 82 108 74 176 60 120 215 129 26 222 99 189 121 136 227 154 229 226 86 169 16 153 3 166 180 5 81 72 30 168 95 128 106 159 53 35 33 119 31 88 158 174 29 16 70 26 32 83 218 80 193 182 151 204 24 44 191 193 66 170 84 213 140 99 115 86 54 70 42 45 70 41 83 61 115 44 108 190 157 180 162 119 221 104 129 142 203 219 25 228 1 61 41 9 26 33 118 69 6 1 135 76 91 183 72 71 152 124 87 163 114 50 10 62 77 53 34 229 110 105 49 205 18 142 88 42 193 67 132 93 139 21 52 40 204 213 98 153 4 201 31 162 120 25 113 55 181 156 144 118 111 25 112 20 172 230 105 165 186 138 184 223 61 40 47 175 107 6 116 81 114 207 48 53 224 14 81 73 223 19 21 167 59 11 98 194 61 230 221 146 148 22 88 84 139 178 90 189 47 174 145 228 190 42 3 51 161 125 196 207 49 15 2 171 120 26 148 64 107 195 97 43 229 111 140 58 131 57 95 13 87 48 95 170 125 197 169 131 172 41 124 45 144 3 92 145 154 155 33 77 12 208 200 78 48 21 208 43 40 130 178 16 227 196 17 106 44 34 228 75 23 123 166 65 217 43 114 165 29 173 35 200 ^'}},
- {OUT=>'A1E13BC55BF6DAD83CF3AABDA3287AD68681EA64'}],
- ['182', {IN=> {f=> '479 0 167 151 130 58 29 34 150 107 8 195 121 112 59 152 22 131 218 208 202 159 88 19 56 149 82 41 153 145 54 199 86 104 166 126 228 16 53 209 225 41 90 230 29 197 171 46 143 39 203 149 117 147 67 45 216 158 35 75 136 136 38 17 78 176 34 185 213 155 95 50 71 73 123 225 76 28 144 227 126 130 228 114 74 148 192 118 172 34 87 192 216 193 206 54 36 65 230 31 49 146 44 228 214 180 62 92 47 131 48 58 162 161 3 142 14 3 107 141 89 207 212 130 193 8 160 15 198 159 223 63 117 14 173 192 181 87 59 89 107 106 216 60 79 201 1 227 189 213 20 116 222 38 150 205 29 134 23 21 141 124 80 126 30 122 200 109 219 104 201 64 142 149 215 168 6 12 125 7 72 133 196 181 185 15 28 9 183 65 32 137 196 46 206 187 163 151 32 37 90 132 8 25 204 137 61 67 145 89 72 69 95 85 9 220 23 154 35 210 115 197 71 108 229 139 209 190 103 176 97 100 5 157 10 173 94 160 148 92 12 25 69 158 202 222 171 44 58 64 205 64 7 170 154 70 83 29 97 67 10 110 11 135 146 177 122 2 47 133 133 33 160 13 113 184 225 211 7 37 27 49 48 23 56 14 38 213 55 222 136 171 144 164 211 105 226 199 184 125 105 93 72 98 25 34 52 86 69 60 212 30 87 94 195 21 6 145 19 28 172 204 4 167 214 45 83 31 14 40 65 95 220 221 48 121 77 186 5 57 137 26 194 231 189 78 41 55 124 115 232 177 22 129 68 168 204 74 211 42 143 174 182 210 215 70 218 73 158 98 223 161 138 186 140 101 30 59 52 149 217 20 214 10 210 117 49 46 106 81 16 18 103 78 76 161 38 15 226 136 36 100 103 178 182 75 3 9 185 150 7 135 48 156 183 100 138 51 96 40 165 201 134 121 42 80 91 157 208 67 180 27 219 133 231 54 99 213 190 33 197 36 2 82 6 47 231 154 205 127 155 195 156 50 206 52 184 90 232 179 172 169 66 20 81 116 124 17 43 5 120 52 51 196 146 79 101 128 80 224 65 ^'}},
- {OUT=>'D5FD35FFABED6733C92365929DF0FB4CAE864D15'}],
- ['183', {IN=> {f=> '503 1 55 102 9 3 202 159 19 103 56 206 165 60 152 54 171 157 164 185 27 59 45 171 217 80 123 203 203 23 169 66 193 103 116 122 156 7 32 169 6 41 165 176 31 125 2 211 155 189 93 69 32 109 90 50 225 85 53 127 153 45 175 40 121 172 201 168 15 37 99 166 44 4 182 188 53 71 7 148 48 130 108 166 220 35 8 12 198 93 9 63 171 97 195 194 87 204 14 173 132 203 143 54 231 126 102 125 118 37 43 20 94 60 36 175 47 90 110 141 23 229 35 184 43 24 153 154 85 173 12 82 214 174 232 117 106 191 128 77 164 76 117 162 101 25 204 74 142 123 143 234 32 229 211 215 105 31 9 123 87 88 135 102 65 202 99 50 165 116 62 187 62 67 177 191 8 192 52 196 118 206 105 91 214 114 27 179 166 100 150 79 79 199 84 13 182 128 137 133 67 57 17 132 23 53 187 122 36 115 131 152 170 50 45 231 186 18 63 111 181 21 18 179 226 16 88 19 223 230 82 98 59 161 50 105 200 124 11 207 89 179 106 131 212 139 224 221 86 164 16 148 224 161 170 226 76 57 10 163 85 113 96 144 38 30 18 119 21 78 148 164 9 232 50 221 26 12 78 208 80 183 172 141 199 24 44 191 188 46 155 69 208 140 99 110 81 54 55 42 40 65 26 68 41 105 24 93 185 147 180 157 104 216 89 119 137 193 219 231 10 223 1 51 36 235 16 28 103 49 1 227 120 61 76 173 72 51 152 114 87 148 104 40 5 57 77 48 14 229 95 100 34 200 8 132 83 22 178 62 127 93 129 1 47 30 194 203 83 138 4 186 11 147 120 5 113 40 181 141 139 108 106 15 97 15 157 220 95 160 186 138 184 223 61 20 27 175 107 6 101 81 114 207 33 33 209 4 66 73 218 4 6 157 44 11 98 179 46 215 221 146 133 7 88 79 139 168 75 189 37 159 135 218 180 37 219 51 156 120 181 197 49 5 233 161 110 21 138 64 102 185 87 28 219 111 125 58 121 52 80 3 82 38 90 170 110 197 169 126 162 41 109 30 134 234 92 145 149 155 13 62 7 208 200 68 48 21 198 33 40 125 178 6 217 196 2 91 34 24 213 70 23 113 161 ^'}},
- {OUT=>'C12E9C280EE9C079E0506FF89F9B20536E0A83EF'}],
- ['184', {IN=> {f=> '470 0 58 210 15 107 144 15 159 21 142 152 151 130 48 14 34 140 92 231 190 106 112 54 142 7 116 208 193 187 159 73 19 41 144 67 36 148 135 44 184 71 104 156 126 218 6 43 204 225 21 90 230 24 182 156 26 138 39 188 139 112 147 62 40 216 143 35 75 131 121 18 2 68 161 29 185 203 145 95 40 71 63 113 220 66 8 144 212 116 115 228 109 59 138 177 108 172 19 82 187 211 188 191 34 36 55 215 11 39 136 24 223 199 170 52 82 42 131 28 53 162 161 226 142 14 231 97 141 79 192 207 120 183 236 145 233 198 149 208 48 107 237 173 192 166 77 39 84 102 96 206 40 64 186 224 227 174 213 10 111 212 23 150 195 9 124 13 6 136 124 65 121 25 117 195 109 204 218 99 201 44 132 149 215 163 234 230 110 225 62 133 181 176 180 10 18 9 183 50 22 122 191 41 196 182 163 141 27 32 80 127 8 10 204 132 56 57 130 89 57 223 54 90 85 227 215 18 154 25 210 115 187 66 108 224 134 209 180 103 176 87 90 223 147 10 163 89 150 143 87 235 20 69 148 228 202 217 171 39 43 59 190 54 235 165 149 70 83 29 92 67 233 105 229 130 141 172 112 2 27 118 123 33 160 8 103 169 210 201 230 17 22 29 33 8 51 9 38 208 55 222 126 166 129 154 211 95 226 194 174 120 90 78 67 88 25 24 37 76 59 45 212 30 72 84 195 16 1 140 237 28 157 199 222 167 209 35 68 16 232 25 65 80 220 211 43 111 67 181 228 57 137 11 184 216 184 78 26 45 119 110 232 177 22 129 68 168 189 74 196 37 128 174 172 205 205 60 218 58 158 93 218 151 123 171 125 86 10 59 52 134 202 20 214 228 195 102 44 46 106 71 11 236 93 73 71 156 33 15 211 136 31 100 88 163 182 70 221 232 170 145 2 120 38 156 178 95 133 36 96 20 155 191 134 116 22 70 76 152 203 52 175 7 209 128 226 49 94 198 190 13 192 21 235 72 229 37 221 139 205 112 140 185 151 30 206 47 179 75 217 101 ^'}},
- {OUT=>'E22769DC00748A9BBD6C05BBC8E81F2CD1DC4E2D'}],
- ['185', {IN=> {f=> '502 0 158 148 66 13 60 95 103 3 15 5 113 38 23 182 125 65 94 107 73 224 37 47 102 237 3 198 155 7 95 56 198 165 52 148 46 163 157 152 173 19 55 29 167 217 76 115 203 191 11 165 62 193 99 116 122 144 236 7 28 161 2 29 157 172 23 125 238 199 151 177 89 61 24 101 78 50 213 73 41 127 153 45 167 24 121 168 193 156 3 25 87 166 28 228 174 188 53 67 239 148 36 118 104 162 208 27 232 4 194 85 1 63 159 97 191 194 75 196 10 169 132 199 131 50 223 118 94 117 118 37 27 12 94 60 28 171 47 82 110 137 15 225 23 172 43 12 141 142 81 161 12 74 210 162 228 117 98 187 124 69 164 76 105 158 101 21 200 70 130 111 143 230 32 221 203 211 101 31 5 123 83 76 135 90 57 194 95 46 153 112 62 183 54 63 169 179 4 184 40 188 110 194 105 91 206 102 27 175 154 88 142 71 79 199 84 5 170 128 129 125 55 49 17 120 19 45 187 114 24 111 123 140 166 38 33 227 178 18 59 99 173 9 10 179 214 12 84 15 215 218 82 90 47 149 42 93 188 120 239 195 81 171 94 127 200 127 220 217 86 160 16 144 216 157 162 218 72 45 234 159 77 101 88 132 26 26 6 119 13 70 140 156 233 220 34 213 26 236 74 200 80 175 164 133 195 24 44 191 184 30 143 57 204 140 99 106 77 54 43 42 36 61 14 56 25 97 8 81 181 139 180 153 92 212 77 111 133 185 219 231 238 219 1 43 32 231 8 24 91 33 237 223 108 49 64 165 72 35 152 106 87 136 96 32 1 53 77 44 238 229 83 96 22 196 124 79 6 166 58 123 93 121 225 43 22 186 195 71 126 4 174 235 135 120 229 113 28 181 129 135 100 102 7 85 11 145 212 87 156 186 138 184 223 61 4 11 175 107 6 89 81 114 207 21 17 197 236 54 73 214 232 234 149 32 11 98 167 34 203 221 146 121 235 88 75 139 160 63 189 29 147 127 210 172 33 207 51 152 116 169 189 49 237 233 153 102 17 130 64 98 177 79 16 211 111 113 58 113 48 68 235 78 30 86 170 98 197 169 122 154 41 97 18 126 234 92 145 145 155 237 50 209 ^'}},
- {OUT=>'F29835A93475740E888E8C14318F3CA45A3C8606'}],
- ['186', {IN=> {f=> '481 1 208 200 56 48 21 186 21 40 119 178 236 205 196 226 73 22 12 195 64 23 101 144 54 206 241 103 132 7 151 13 138 140 151 130 40 2 34 132 80 223 186 94 112 50 134 237 104 200 181 175 159 61 19 29 140 55 32 144 127 36 172 59 104 148 126 210 240 35 200 225 5 90 230 20 170 144 10 134 39 176 131 108 147 58 36 216 131 35 75 127 109 2 232 60 149 25 185 195 137 95 32 71 55 105 216 58 234 144 200 108 103 228 105 47 130 165 100 172 7 78 183 207 184 179 18 36 47 203 237 31 128 8 219 187 162 44 74 38 131 12 49 162 161 218 142 14 227 89 141 71 180 203 112 175 232 133 221 198 141 196 36 99 229 173 192 154 69 23 80 98 88 198 24 52 174 216 227 162 213 2 107 204 11 150 187 235 116 5 236 132 124 53 117 21 113 191 109 192 206 95 201 28 124 149 215 159 230 218 98 213 54 133 169 172 176 6 10 9 183 38 14 110 187 37 188 178 163 133 23 28 72 123 8 240 204 128 52 49 118 89 45 215 42 86 85 215 211 14 154 17 210 115 179 62 108 220 130 209 172 103 176 79 82 211 139 10 155 85 142 139 83 227 16 69 140 224 202 213 171 35 31 55 178 46 231 161 145 70 83 29 88 67 225 101 217 126 137 168 104 2 11 106 115 33 160 4 95 157 198 193 222 1 18 13 21 238 47 5 38 204 55 222 118 162 117 146 211 87 226 190 166 116 78 66 63 80 25 16 25 68 51 33 212 30 60 76 195 12 239 136 225 28 145 195 210 167 205 27 56 4 220 13 65 68 220 203 39 103 59 177 220 57 137 241 176 204 180 78 14 37 115 106 232 177 22 129 68 168 177 74 184 33 116 174 164 201 197 52 218 46 158 89 214 143 111 159 113 74 236 59 52 122 190 20 214 216 183 90 40 46 106 63 7 224 85 69 67 152 29 15 199 136 27 100 76 151 182 66 209 224 158 141 240 108 30 156 174 91 129 24 96 4 147 183 134 112 6 62 64 148 199 40 171 233 201 124 222 45 90 186 190 239 188 9 235 64 221 29 213 127 178 ^'}},
- {OUT=>'1A1D77C6D0F97C4B620FAA90F3F8644408E4B13D'}],
- ['187', {IN=> {f=> '508 1 94 122 173 145 6 206 41 173 57 199 146 150 136 66 9 48 83 91 239 243 5 109 30 7 174 113 57 90 95 69 224 29 39 102 229 3 194 151 239 87 56 190 165 44 144 38 155 157 140 161 11 51 13 163 217 72 107 203 179 243 161 58 193 95 116 122 132 236 7 24 153 242 17 149 168 15 125 238 187 147 165 85 53 16 93 66 50 201 61 29 127 153 45 159 8 121 164 185 144 235 13 75 166 12 216 166 188 53 63 235 148 24 106 100 158 196 19 220 240 190 77 237 63 147 97 187 194 63 188 6 165 132 195 119 46 215 110 86 109 118 37 11 4 94 60 20 167 47 74 110 133 7 221 11 160 43 129 130 77 149 12 66 206 150 224 117 90 183 120 61 164 76 93 154 101 17 196 66 118 99 143 226 32 213 195 207 97 31 1 123 79 64 135 78 49 186 91 42 141 108 62 179 46 59 161 167 176 28 180 102 182 105 91 198 90 27 171 142 76 134 63 79 199 84 241 158 128 121 117 43 41 17 108 15 37 187 106 12 107 115 128 162 26 21 223 170 18 55 87 165 241 2 179 202 8 80 11 207 206 82 82 35 137 34 81 176 116 231 183 73 163 82 123 188 115 216 213 86 156 16 140 208 153 154 210 68 33 222 155 69 89 80 120 14 22 238 119 5 62 132 148 221 208 18 205 26 224 70 192 80 167 156 125 191 24 44 191 180 14 131 45 200 140 99 102 73 54 31 42 32 57 2 44 9 89 236 69 177 131 180 149 80 208 65 103 129 177 219 231 230 215 1 35 28 227 20 79 17 237 219 96 37 52 157 72 19 152 98 87 124 88 24 241 49 77 40 226 229 71 92 10 192 236 116 75 234 154 54 119 93 113 213 39 14 178 187 59 114 4 162 223 123 120 217 113 16 181 117 131 92 98 243 73 7 133 204 79 152 186 138 184 223 61 232 239 175 107 6 77 81 114 207 9 1 185 232 42 73 210 224 226 141 20 11 98 155 22 191 221 146 109 227 88 71 139 152 51 189 21 135 119 202 164 29 195 51 148 112 157 181 49 233 233 145 94 13 122 64 94 169 71 4 203 111 101 58 105 44 56 231 74 22 82 170 86 197 169 118 146 41 85 6 118 234 92 145 141 149 ^'}},
- {OUT=>'4EC84870E9BDD25F523C6DFB6EDD605052CA4EAA'}],
- ['188', {IN=> {f=> '484 1 219 32 243 208 200 48 48 21 178 13 40 115 178 232 197 196 218 61 14 4 183 60 23 93 136 50 202 229 99 120 245 143 5 134 128 151 130 32 236 34 124 68 215 182 82 112 46 126 229 92 192 169 163 159 49 19 17 136 43 28 140 119 28 160 47 104 140 126 202 236 27 196 225 235 90 230 16 158 132 240 130 39 164 123 104 147 54 32 216 119 35 75 123 97 232 224 52 137 21 185 187 129 95 24 71 47 97 212 50 222 144 188 100 91 228 101 35 122 153 92 172 241 74 179 203 180 167 2 36 39 191 225 23 120 238 215 175 154 36 66 34 131 242 45 162 161 210 142 14 223 81 141 63 168 199 104 167 228 121 209 198 133 184 24 91 221 173 192 142 61 7 76 94 80 190 8 40 162 208 227 150 213 240 103 196 245 150 179 223 108 243 228 128 124 41 113 17 109 187 109 180 194 91 201 12 116 149 215 155 226 206 86 201 46 133 157 168 172 2 2 9 183 26 6 98 183 33 180 174 163 125 19 24 64 119 8 232 204 124 48 41 106 89 33 207 30 82 85 203 207 10 154 9 210 115 171 58 108 216 126 209 164 103 176 71 74 199 131 10 147 81 134 135 79 219 12 69 132 220 202 209 171 31 19 51 166 38 227 157 141 70 83 29 84 67 217 97 205 122 133 164 96 2 241 94 107 33 160 87 145 186 185 214 231 14 243 9 230 43 1 38 200 55 222 110 158 105 138 211 79 226 186 158 112 66 54 59 72 25 8 13 60 43 21 212 30 48 68 195 8 239 132 213 28 133 191 198 167 201 19 44 238 208 1 65 56 220 195 35 95 51 173 212 57 137 233 168 192 176 78 2 29 111 102 232 177 22 129 68 168 165 74 172 29 104 174 156 197 189 44 218 34 158 85 210 135 99 147 101 62 224 59 52 110 178 20 214 204 171 78 36 46 106 55 3 212 77 65 63 148 25 15 187 136 23 100 64 139 182 62 197 216 146 137 240 96 22 156 170 87 125 12 96 234 139 175 134 108 236 54 52 144 195 28 167 221 193 120 218 41 86 174 190 227 184 243 235 56 213 21 205 115 205 71 ^'}},
- {OUT=>'D689513FED08B80C39B67371959BC4E3FECB0537'}],
- ['189', {IN=> {f=> '506 0 110 165 141 238 206 37 169 45 187 134 142 124 66 5 36 71 79 235 231 5 105 22 239 166 101 49 86 83 65 224 21 31 102 221 3 190 147 231 79 56 182 165 36 140 30 147 157 128 149 3 47 245 159 217 68 99 203 167 235 157 54 193 91 116 122 120 236 7 20 145 242 5 141 164 7 125 238 175 143 153 81 45 8 85 54 50 189 49 17 127 153 45 151 240 121 160 177 132 227 1 63 166 244 204 158 188 53 59 231 148 12 94 96 154 184 11 208 236 186 69 233 63 135 97 183 194 51 180 2 161 132 191 107 42 207 102 78 101 118 37 243 244 94 60 12 163 47 66 110 129 247 217 247 148 43 236 117 118 73 137 12 58 202 138 220 117 82 179 116 53 164 76 81 150 101 13 192 62 106 87 143 222 32 205 187 203 93 31 245 123 75 52 135 66 41 178 87 38 129 104 62 175 38 55 153 155 244 168 16 172 94 170 105 91 190 78 27 167 130 64 126 55 79 199 84 237 146 128 113 109 31 33 17 96 11 29 187 98 103 107 116 158 14 9 219 162 18 51 75 157 233 242 179 190 4 76 7 199 194 82 74 23 125 26 69 164 112 223 171 65 155 70 119 176 103 212 209 86 152 16 136 200 149 146 202 64 21 210 151 61 77 72 108 2 18 230 119 245 54 124 140 209 196 2 197 26 212 66 184 80 159 148 117 187 24 44 191 176 246 119 33 196 140 99 98 69 54 19 42 28 53 238 32 241 81 224 57 173 123 180 145 68 204 53 95 125 169 219 231 222 211 1 27 24 223 240 16 67 1 237 215 84 25 40 149 72 3 152 90 87 112 80 16 241 45 77 36 214 229 59 88 246 188 232 108 71 222 142 50 115 93 105 201 35 6 170 179 47 102 4 150 211 111 120 205 113 4 181 105 127 84 94 239 61 3 121 196 71 148 186 138 184 223 61 220 227 175 107 6 65 81 114 207 245 233 173 228 30 73 206 216 218 133 8 11 98 143 10 179 221 146 97 219 88 67 139 144 39 189 13 123 111 194 156 25 183 51 144 108 145 173 49 229 233 137 86 9 114 64 90 161 63 240 195 111 89 58 97 40 44 227 70 14 78 170 74 197 169 114 138 41 73 242 110 234 177 ^'}},
- {OUT=>'C4FED58F209FC3C34AD19F86A6DACADC86C04D33'}],
- ['190', {IN=> {f=> '491 0 145 135 155 207 20 243 208 200 40 48 21 170 5 40 111 178 228 189 196 210 49 6 246 171 56 23 85 128 46 198 217 95 108 241 135 247 130 116 151 130 24 228 34 116 56 207 178 70 112 42 118 221 80 184 157 151 159 37 19 5 132 31 24 136 111 20 148 35 104 132 126 194 232 19 192 225 223 90 230 12 146 120 228 126 39 152 115 100 147 50 28 216 107 35 75 119 85 220 216 44 125 17 185 179 121 95 16 71 39 89 208 42 210 144 176 92 79 228 97 23 114 141 84 172 233 70 175 199 176 155 236 36 31 179 213 15 112 226 211 163 146 28 58 30 131 230 41 162 161 202 142 14 219 73 141 55 156 195 96 159 224 109 197 198 125 172 12 83 213 173 192 130 53 241 72 90 72 182 242 28 150 200 227 138 213 236 99 188 237 150 171 211 100 239 220 124 124 29 109 13 105 183 109 168 182 87 201 246 108 149 215 151 222 194 74 189 38 133 145 164 168 248 244 9 183 14 248 86 179 29 172 170 163 117 15 20 56 115 8 224 204 120 44 33 94 89 21 199 18 78 85 191 203 6 154 1 210 115 163 54 108 212 122 209 156 103 176 63 66 187 123 10 139 77 126 131 75 211 8 69 124 216 202 205 171 27 7 47 154 30 223 153 137 70 83 29 80 67 209 93 193 118 129 160 88 2 229 82 99 33 160 246 79 133 174 177 206 219 10 231 247 222 39 247 38 196 55 222 102 154 93 130 211 71 226 182 150 108 54 42 55 64 25 1 52 35 9 212 30 36 60 195 4 239 128 201 28 121 187 186 167 197 11 32 230 196 239 65 44 220 187 31 87 43 169 204 57 137 225 160 180 172 78 240 21 107 98 232 177 22 129 68 168 153 74 160 25 92 174 148 193 181 36 218 22 158 81 206 127 87 135 89 50 212 59 52 98 166 20 214 192 159 66 32 46 106 47 249 200 69 61 59 144 21 15 175 136 19 100 52 127 182 58 185 208 134 133 240 84 14 156 166 83 121 96 222 131 167 134 104 224 46 40 140 191 16 163 209 185 116 214 37 82 162 190 215 180 235 235 48 205 13 197 103 205 76 104 161 139 232 146 ^'}},
- {OUT=>'051888C6D00029C176DE792B84DECE2DC1C74B00'}],
- ['191', {IN=> {f=> '516 0 33 165 33 175 122 134 112 66 1 24 59 67 231 219 5 101 14 227 158 89 41 82 71 61 224 13 23 102 213 3 186 143 223 71 56 174 165 28 136 22 139 157 116 137 247 43 233 155 217 64 91 203 155 227 153 50 193 87 116 122 108 236 7 16 137 242 245 133 160 251 125 238 163 139 141 77 37 77 42 50 177 37 5 127 153 45 143 228 121 156 169 120 219 241 51 166 232 192 150 188 53 55 227 148 82 92 150 172 3 196 232 182 61 229 63 123 97 179 194 39 172 250 157 132 187 95 38 199 94 70 93 118 37 231 240 94 60 4 159 47 58 110 125 243 213 239 136 43 228 105 106 69 125 12 50 198 126 216 117 74 175 112 45 164 76 69 146 101 9 188 58 94 75 143 218 32 197 179 199 89 31 245 123 71 40 135 54 33 170 83 34 117 100 62 171 30 51 145 143 244 160 4 164 86 158 105 91 182 66 27 163 118 52 118 47 79 199 84 233 134 128 105 101 19 25 17 84 7 21 187 90 240 99 99 104 154 2 249 215 154 18 47 63 149 225 238 179 178 72 3 191 182 82 66 11 113 18 57 152 108 215 159 57 147 58 115 164 91 208 205 86 148 16 132 192 145 138 194 60 9 198 147 53 65 64 96 242 14 222 119 241 46 116 132 197 184 238 189 26 200 62 176 80 151 140 109 183 24 44 191 172 234 107 21 192 140 99 94 65 54 7 42 24 49 230 20 229 73 212 45 169 115 180 141 56 200 41 87 121 161 219 231 214 207 1 19 20 219 236 12 55 237 237 211 72 13 28 141 72 239 152 82 87 100 72 8 241 41 77 32 202 229 47 84 238 184 228 100 67 210 130 46 111 93 97 189 31 250 162 171 35 90 4 138 199 99 120 193 113 244 181 93 123 76 90 235 49 251 109 188 63 144 186 138 184 223 61 208 215 175 107 6 53 81 114 207 237 221 161 224 18 73 202 208 210 125 248 11 98 131 250 167 221 146 85 211 88 63 139 136 27 189 5 111 103 186 148 21 171 51 140 104 133 165 49 225 233 129 78 5 106 64 86 153 55 232 187 111 77 58 89 36 32 223 66 6 74 170 62 197 169 110 130 41 61 234 102 234 92 145 133 155 201 14 243 208 200 36 48 21 166 1 40 109 178 147 ^'}},
- {OUT=>'1A3540BEE05518505827954F58B751C475AEECE0'}],
- ['192', {IN=> {f=> '522 0 179 196 200 34 251 241 156 51 23 75 118 41 193 202 90 93 236 125 242 125 101 151 130 14 218 34 106 41 197 173 55 112 37 108 211 65 174 142 136 159 22 19 245 127 16 19 131 101 10 133 20 104 122 126 184 227 9 187 225 208 90 230 7 131 105 213 121 39 137 105 95 147 45 23 216 92 35 75 114 70 205 206 34 110 12 185 169 111 95 6 71 29 79 203 32 195 144 161 82 64 228 92 8 104 126 74 172 223 65 170 194 171 140 221 36 21 164 198 5 102 211 206 148 136 18 48 25 131 215 36 162 161 192 142 14 214 63 141 45 141 190 86 149 219 94 182 198 115 157 252 73 203 173 192 115 43 226 67 85 62 172 227 13 135 190 227 123 213 231 94 178 227 150 161 196 90 234 210 119 124 14 104 8 100 178 109 153 167 82 201 231 98 149 215 146 217 179 59 174 28 133 130 159 163 248 239 9 183 254 243 71 174 24 162 165 163 107 10 15 46 110 8 214 204 115 39 23 79 89 6 189 3 73 85 176 198 1 154 246 210 115 153 49 108 207 117 209 146 103 176 53 56 172 113 10 129 72 116 126 70 201 3 69 114 211 202 200 171 22 247 42 139 20 218 148 132 70 83 29 75 67 199 88 178 113 124 155 78 2 214 67 89 33 160 246 69 118 159 167 196 204 5 216 237 212 34 247 38 191 55 222 92 149 78 120 211 61 226 177 140 103 39 27 50 54 25 245 241 42 25 249 212 30 21 50 195 254 239 123 186 28 106 182 171 167 192 1 17 220 181 229 65 29 220 177 26 77 33 164 194 57 137 215 150 165 167 78 230 11 102 93 232 177 22 129 68 168 138 74 145 20 77 174 138 188 171 26 218 7 158 76 201 117 72 120 74 35 197 59 52 83 151 20 214 177 144 51 27 46 106 37 249 185 59 56 54 139 16 15 160 136 14 100 37 112 182 53 170 198 119 128 240 69 4 156 161 78 116 240 96 207 121 157 134 99 209 36 25 135 186 1 158 194 175 111 209 32 77 147 190 200 175 225 235 38 195 3 187 88 205 61 89 151 134 217 206 30 162 24 166 113 128 103 66 253 15 50 58 228 210 5 98 8 218 152 80 35 79 62 58 224 7 17 102 207 3 183 140 217 65 56 168 165 22 133 16 133 157 107 128 244 12 ^'}},
- {OUT=>'DFA19180359D5A7A38E842F172359CAF4208FC05'}],
- ['193', {IN=> {f=> '517 1 218 150 217 59 81 203 140 217 148 45 193 82 116 122 93 236 7 11 127 242 235 123 155 246 125 238 148 134 126 72 27 247 67 27 50 162 22 247 127 153 45 133 213 121 151 159 105 209 231 36 166 217 177 140 188 53 50 222 148 242 67 87 145 157 250 181 227 177 51 224 63 108 97 174 194 24 162 250 152 132 182 80 33 189 84 60 83 118 37 216 235 94 60 251 154 47 48 110 120 238 208 229 121 43 218 90 91 64 110 12 40 193 111 211 117 64 170 107 35 164 76 54 141 101 4 183 53 79 60 143 213 32 187 169 194 84 31 245 123 66 25 135 39 23 160 78 29 102 95 62 166 20 46 135 128 244 150 246 154 76 143 105 91 172 51 27 158 103 37 108 37 79 199 84 228 119 128 95 91 4 15 17 69 2 11 187 80 230 94 89 89 149 244 239 210 144 18 42 48 139 215 233 179 163 252 67 255 181 167 82 56 253 98 8 42 137 103 205 144 47 137 43 110 149 76 203 200 86 143 16 127 182 140 128 184 55 251 183 142 43 50 54 81 232 9 212 119 236 36 106 122 182 169 223 179 26 185 57 166 80 141 130 99 178 24 44 191 167 219 92 6 187 140 99 89 60 54 249 42 19 44 220 5 214 63 197 30 164 105 180 136 41 195 26 77 116 151 219 231 204 202 1 9 15 214 231 7 40 222 237 206 57 255 13 131 72 224 152 72 87 85 62 255 241 36 77 27 187 229 32 79 228 179 223 90 62 195 115 41 106 93 87 174 26 245 152 161 20 75 4 123 184 84 120 178 113 234 181 78 118 66 85 230 34 251 94 178 53 139 186 138 184 223 61 193 200 175 107 6 38 81 114 207 227 206 146 219 3 73 197 198 200 115 238 11 98 116 240 152 221 146 70 201 88 58 139 126 12 189 252 96 93 176 138 16 156 51 135 99 118 155 49 220 233 119 68 96 64 81 143 45 222 177 111 62 58 79 31 17 218 61 253 69 170 47 197 169 105 120 41 46 224 92 234 92 145 128 155 186 256 243 208 200 26 48 21 156 248 40 104 178 221 175 196 196 28 249 239 150 49 23 71 114 39 191 196 88 87 234 121 240 123 95 151 130 10 214 34 102 35 193 171 49 112 35 104 207 59 170 136 130 159 16 19 241 125 213 ^'}},
- {OUT=>'7B0FA84EBBCFF7D7F4500F73D79660C4A3431B67'}],
- ['194', {IN=> {f=> '529 1 15 127 93 2 121 8 104 114 126 176 223 1 183 225 196 90 230 3 119 93 201 117 39 125 97 91 147 41 19 216 80 35 75 110 58 193 198 26 98 8 185 161 103 95 257 71 21 71 199 24 183 144 149 74 52 228 88 255 96 114 66 172 215 61 166 190 167 128 209 36 13 152 186 256 94 199 202 136 128 10 40 21 131 203 32 162 161 184 142 14 210 55 141 37 129 186 78 141 215 82 170 198 107 145 244 65 195 173 192 103 35 214 63 81 54 164 215 1 123 182 227 111 213 227 90 170 219 150 153 184 82 230 202 115 124 2 100 4 96 174 109 141 155 78 201 219 90 149 215 142 213 167 47 162 20 133 118 155 159 248 235 9 183 246 239 59 170 20 154 161 163 99 6 11 38 106 8 206 204 111 35 15 67 89 253 181 250 69 85 164 194 256 154 242 210 115 145 45 108 203 113 209 138 103 176 45 48 160 105 10 121 68 108 122 66 193 258 69 106 207 202 196 171 18 239 38 127 12 214 144 128 70 83 29 71 67 191 84 166 109 120 151 70 2 202 55 81 33 160 246 61 106 147 159 188 192 1 204 229 204 30 247 38 187 55 222 84 145 66 112 211 53 226 173 132 99 27 15 46 46 25 241 233 34 17 241 212 30 9 42 195 254 239 119 174 28 94 178 159 167 188 252 5 212 169 221 65 17 220 169 22 69 25 160 186 57 137 207 142 153 163 78 222 3 98 89 232 177 22 129 68 168 126 74 133 16 65 174 130 184 163 18 218 254 158 72 197 109 60 108 62 23 185 59 52 71 139 20 214 165 132 39 23 46 106 29 249 173 51 52 50 135 12 15 148 136 10 100 25 100 182 49 158 190 107 124 240 57 255 156 157 74 112 232 96 195 113 149 134 95 197 28 13 131 182 248 154 182 167 107 205 28 73 135 190 188 171 217 235 30 187 254 179 76 205 49 77 143 130 205 206 26 158 12 154 101 120 91 66 253 3 38 46 224 198 5 94 206 144 68 27 75 50 54 224 258 9 102 199 3 179 136 209 57 56 160 165 14 129 8 125 157 95 116 240 36 212 148 217 57 77 203 134 213 146 43 193 80 116 122 87 236 7 9 123 242 231 119 153 244 125 238 142 132 120 70 23 245 63 21 50 156 16 243 127 153 45 129 207 121 149 155 99 205 227 30 166 211 57 ^'}},
- {OUT=>'9E886081C9ACAAD0F97B10810D1DE6FCDCE6B5F4'}],
- ['195', {IN=> {f=> '548 0 134 188 53 47 219 148 236 58 84 142 148 247 172 224 174 45 221 63 99 97 171 194 15 156 250 149 132 179 71 30 183 78 54 77 118 37 207 232 94 60 248 151 47 42 110 117 235 205 223 112 43 212 81 82 61 101 12 34 190 102 208 117 58 167 104 29 164 76 45 138 101 1 180 50 70 51 143 210 32 181 163 191 81 31 245 123 63 16 135 30 17 154 75 26 93 92 62 163 14 43 129 119 244 144 240 148 70 134 105 91 166 42 27 155 94 28 102 31 79 199 84 225 110 128 89 85 255 9 17 60 259 5 187 74 224 91 83 80 146 238 233 207 138 18 39 39 133 209 230 179 154 252 64 255 175 158 82 50 247 89 2 33 128 100 199 135 41 131 34 107 140 67 200 197 86 140 16 124 176 137 122 178 52 245 174 139 37 41 48 72 226 6 206 119 233 30 100 116 173 160 214 173 26 176 54 160 80 135 124 93 175 24 44 191 164 210 83 257 184 140 99 86 57 54 243 42 16 41 214 256 205 57 188 21 161 99 180 133 32 192 17 71 113 145 219 231 198 199 1 3 12 211 228 4 31 213 237 203 48 249 4 125 72 215 152 66 87 76 56 252 241 33 77 24 178 229 23 76 222 176 220 84 59 186 106 38 103 93 81 165 23 242 146 155 11 66 4 114 175 75 120 169 113 228 181 69 115 60 82 227 25 251 85 172 47 136 186 138 184 223 61 184 191 175 107 6 29 81 114 207 221 197 137 216 254 73 194 192 194 109 232 11 98 107 234 143 221 146 61 195 88 55 139 120 3 189 249 87 87 170 132 13 147 51 132 96 109 149 49 217 233 113 62 257 90 64 78 137 39 216 171 111 53 58 73 28 8 215 58 250 66 170 38 197 169 102 114 41 37 218 86 234 92 145 125 155 177 250 243 208 200 20 48 21 150 245 40 101 178 218 169 196 190 19 246 236 141 46 23 65 108 36 188 187 85 78 231 115 237 120 86 151 130 4 208 34 96 26 187 168 40 112 32 98 201 50 164 127 121 159 7 19 235 122 1 14 126 91 118 5 104 112 126 174 222 259 182 225 193 90 230 2 116 90 198 116 39 122 95 90 147 40 18 216 77 35 75 109 55 190 196 24 95 7 185 159 101 95 256 71 19 69 198 22 180 144 146 72 49 228 87 253 94 111 64 172 213 60 165 189 166 125 206 36 11 149 183 255 92 196 201 133 126 8 38 20 131 213 ^'}},
- {OUT=>'A4D46E4BA0AE4B012F75B1B50D0534D578AE9CB6'}],
- ['196', {IN=> {f=> '547 0 29 162 161 178 142 14 207 49 141 31 120 183 72 135 212 73 161 198 101 136 238 59 189 173 192 94 29 205 60 78 48 158 206 254 114 176 227 102 213 224 87 164 213 150 147 175 76 227 196 112 124 255 97 1 93 171 109 132 146 75 201 210 84 149 215 139 210 158 38 153 14 133 109 152 156 248 232 9 183 240 236 50 167 17 148 158 163 93 3 8 32 103 8 200 204 108 32 9 58 89 247 175 244 66 85 155 191 256 154 239 210 115 139 42 108 200 110 209 132 103 176 39 42 151 99 10 115 65 102 119 63 187 258 69 100 204 202 193 171 15 233 35 118 6 211 141 125 70 83 29 68 67 185 81 157 106 117 148 64 2 193 46 75 33 160 246 55 97 138 153 182 183 260 195 223 198 27 247 38 184 55 222 78 142 57 106 211 47 226 170 126 96 18 6 43 40 25 238 227 28 11 235 212 30 36 195 254 239 116 165 28 85 175 150 167 185 249 258 206 160 215 65 8 220 163 19 63 19 157 180 57 137 201 136 144 160 78 216 259 95 86 232 177 22 129 68 168 117 74 124 13 56 174 124 181 157 12 218 248 158 69 194 103 51 99 53 14 176 59 52 62 130 20 214 156 123 30 20 46 106 23 249 164 45 49 47 132 9 15 139 136 7 100 16 91 182 46 149 184 98 121 240 48 252 156 154 71 109 226 96 186 107 143 134 92 188 22 4 128 179 242 151 173 161 104 202 25 70 126 190 179 168 211 235 24 181 251 173 67 205 40 68 137 127 196 206 23 155 3 145 92 114 82 66 253 256 29 37 221 189 5 91 256 197 138 59 21 72 41 51 224 255 3 102 193 3 176 133 203 51 56 154 165 8 126 2 119 157 86 107 237 33 203 145 217 54 71 203 125 207 143 40 193 77 116 122 78 236 7 6 117 242 225 113 150 241 125 238 133 129 111 67 17 242 57 12 50 147 7 237 127 153 45 123 198 121 146 149 90 199 221 21 166 202 162 130 188 53 45 217 148 232 52 82 140 142 245 166 222 172 41 219 63 93 97 169 194 9 152 250 147 132 177 65 28 179 74 50 73 118 37 201 230 94 60 246 149 47 38 110 115 233 203 219 106 43 208 75 76 59 95 12 30 188 96 206 117 54 165 102 25 164 76 39 136 101 261 178 48 64 45 143 208 32 177 159 189 79 31 245 123 61 10 135 24 13 150 73 24 87 90 62 161 10 41 125 209 ^'}},
- {OUT=>'6342B199EE64C7B2C9CBCD4F2DCB65ACEF51516F'}],
- ['197', {IN=> {f=> '542 1 244 136 232 140 62 122 105 91 158 30 27 151 82 16 94 23 79 199 84 221 98 128 81 77 247 1 17 48 259 261 187 66 216 87 75 68 142 230 225 203 130 18 35 27 125 201 226 179 142 252 60 255 167 146 82 42 239 77 258 21 116 96 191 123 33 123 22 103 128 55 196 193 86 136 16 120 168 133 114 170 48 237 162 135 29 29 40 60 218 2 198 119 229 22 92 108 161 148 202 165 26 164 50 152 80 127 116 85 171 24 44 191 160 198 71 249 180 140 99 82 53 54 235 42 12 37 206 248 193 49 176 9 157 91 180 129 20 188 5 63 109 137 219 231 190 195 1 259 8 207 224 19 201 237 199 36 241 256 117 72 203 152 58 87 64 48 248 241 29 77 20 166 229 11 72 214 172 216 76 55 174 94 34 99 93 73 153 19 238 138 147 263 54 4 102 163 63 120 157 113 220 181 57 111 52 78 223 13 251 73 164 39 132 186 138 184 223 61 172 179 175 107 6 17 81 114 207 213 185 125 212 246 73 190 184 186 101 224 11 98 95 226 131 221 146 49 187 88 51 139 112 255 189 245 75 79 162 124 9 135 51 128 92 97 141 49 213 233 105 54 257 82 64 74 129 31 208 163 111 41 58 65 24 260 211 54 246 62 170 26 197 169 98 106 41 25 210 78 234 92 145 121 155 165 242 243 208 200 12 48 21 142 241 40 97 178 214 161 196 182 7 242 232 129 42 23 57 100 32 184 175 81 66 227 107 233 116 74 151 130 260 200 34 88 14 179 164 28 112 28 90 193 38 156 115 109 159 259 19 227 118 253 10 122 83 256 106 257 104 104 126 166 218 255 178 225 181 90 230 262 104 78 186 112 39 110 87 86 147 36 14 216 65 35 75 105 43 178 188 16 83 3 185 151 93 95 252 71 11 61 194 14 168 144 134 64 37 228 83 245 86 99 56 172 205 56 161 185 162 113 194 36 3 137 171 251 84 184 197 121 118 30 16 131 188 27 162 161 174 142 14 205 45 141 27 114 181 68 131 210 67 155 198 97 130 234 55 185 173 192 88 25 199 58 76 44 154 200 250 108 172 227 96 213 222 85 160 209 150 143 169 72 225 192 110 124 251 95 263 91 169 109 126 140 73 201 204 80 149 215 137 208 152 32 147 10 133 103 150 154 248 230 9 183 236 234 44 165 15 144 156 163 89 1 6 28 101 8 196 204 106 164 ^'}},
- {OUT=>'AABFD63688EB678357869130083E1B52F6EA861D'}],
- ['198', {IN=> {f=> '567 0 1 46 89 239 167 236 62 85 143 187 256 154 235 210 115 131 38 108 196 106 209 124 103 176 31 34 139 91 10 107 61 94 115 59 179 258 69 92 200 202 189 171 11 225 31 106 264 207 137 121 70 83 29 64 67 177 77 145 102 113 144 56 2 181 34 67 33 160 246 47 85 126 145 174 171 260 183 215 190 23 247 38 180 55 222 70 138 45 98 211 39 226 166 118 92 6 260 39 32 25 234 219 20 3 227 212 30 254 28 195 254 239 112 153 28 73 171 138 167 181 245 250 198 148 207 65 262 220 155 15 55 11 153 172 57 137 193 128 132 156 78 208 255 91 82 232 177 22 129 68 168 105 74 112 9 44 174 116 177 149 4 218 240 158 65 190 95 39 87 41 2 164 59 52 50 118 20 214 144 111 18 16 46 106 15 249 152 37 45 43 128 5 15 127 136 3 100 4 79 182 42 137 176 86 117 240 36 248 156 150 67 105 218 96 174 99 135 134 88 176 14 258 124 175 234 147 161 153 100 198 21 66 114 190 167 164 203 235 16 173 247 165 55 205 28 56 129 123 184 206 19 151 257 133 80 106 70 66 253 248 17 25 217 177 5 87 252 185 130 47 13 68 29 47 224 251 261 102 185 3 172 129 195 43 56 146 165 122 260 111 157 74 95 233 29 191 141 217 50 63 203 113 199 139 36 193 73 116 122 66 236 7 2 109 242 217 105 146 237 125 238 121 125 99 63 9 238 49 50 135 261 229 127 153 45 115 186 121 142 141 78 191 213 9 166 190 150 122 188 53 41 213 148 224 40 78 136 130 241 154 218 168 33 215 63 81 97 165 194 263 144 250 143 132 173 53 24 171 66 42 65 118 37 189 226 94 60 242 145 47 30 110 111 229 199 211 94 43 200 63 64 55 83 12 22 184 84 202 117 46 161 98 17 164 76 27 132 101 261 174 44 52 33 143 204 32 169 151 185 75 31 245 123 57 264 135 12 5 142 69 20 75 86 62 157 2 37 117 101 244 132 228 136 58 116 105 91 154 24 27 149 76 10 90 19 79 199 84 219 92 128 77 73 243 263 17 42 259 259 187 62 212 85 71 62 140 226 221 201 126 18 33 21 121 197 224 179 136 252 58 255 163 140 82 38 235 71 256 15 110 94 187 117 29 119 16 101 122 49 194 191 86 134 16 118 164 131 110 166 46 233 156 133 25 23 36 54 214 194 119 227 18 88 104 155 142 196 161 26 158 48 148 80 123 112 81 169 24 44 191 158 192 65 245 178 140 223 ^'}},
- {OUT=>'F732B7372DAF44801F81EFFE3108726239837936'}],
- ['199', {IN=> {f=> '551 1 78 49 54 227 42 8 33 198 240 181 41 164 265 153 83 180 125 8 184 261 55 105 129 219 231 182 191 1 255 4 203 220 264 7 189 237 195 24 233 248 109 72 191 152 50 87 52 40 244 241 25 77 16 154 229 267 68 206 168 212 68 51 162 82 30 95 93 65 141 15 234 130 139 255 42 4 90 151 51 120 145 113 212 181 45 107 44 74 219 1 251 61 156 31 128 186 138 184 223 61 160 167 175 107 6 5 81 114 207 205 173 113 208 238 73 186 176 178 93 216 11 98 83 218 119 221 146 37 179 88 47 139 104 247 189 241 63 71 154 116 5 123 51 124 88 85 133 49 209 233 97 46 257 74 64 70 121 23 200 155 111 29 58 57 20 252 207 50 242 58 170 14 197 169 94 98 41 13 202 70 234 92 145 117 155 153 234 243 208 200 4 48 21 134 237 40 93 178 210 153 196 174 263 238 228 117 38 23 49 92 28 180 163 77 54 223 99 229 112 62 151 130 256 192 34 80 2 171 160 16 112 24 82 185 26 148 103 97 159 251 19 219 114 245 6 118 75 252 94 249 104 96 126 158 214 251 174 225 169 90 230 262 92 66 174 108 39 98 79 82 147 32 10 216 53 35 75 101 31 166 180 8 71 267 185 143 85 95 248 71 3 53 190 6 156 144 122 56 25 228 79 237 78 87 48 172 197 52 157 181 158 101 182 36 263 125 159 247 76 172 193 109 110 260 22 12 131 176 23 162 161 166 142 14 201 37 141 19 102 177 60 123 206 55 143 198 89 118 226 47 177 173 192 76 17 187 54 72 36 146 188 242 96 164 227 84 213 218 81 152 201 150 135 157 64 221 184 106 124 243 91 263 87 165 109 114 128 69 201 192 72 149 215 133 204 140 20 135 2 133 91 146 150 248 226 9 183 228 230 32 161 11 136 152 163 81 265 2 20 97 8 188 204 102 26 265 40 89 235 163 232 60 85 137 185 256 154 233 210 115 127 36 108 194 104 209 120 103 176 27 30 133 87 10 103 59 90 113 57 175 258 69 88 198 202 187 171 9 221 29 100 262 205 135 119 70 83 29 62 67 173 75 139 100 111 142 52 2 175 28 63 33 160 246 43 79 120 141 170 165 260 177 211 186 21 247 38 178 55 222 66 136 39 94 211 35 226 164 114 90 256 37 28 25 232 215 16 267 223 212 30 250 24 195 254 239 110 147 28 67 169 132 167 179 243 246 194 142 203 65 263 ^'}},
- {OUT=>'5E9347FE4574CDCB80281ED092191199BADD7B42'}],
- ['200', {IN=> {f=> '578 0 220 147 11 47 3 149 164 57 137 185 120 120 152 78 200 251 87 78 232 177 22 129 68 168 93 74 100 5 32 174 108 173 141 266 218 232 158 61 186 87 27 75 29 260 152 59 52 38 106 20 214 132 99 6 12 46 106 7 249 140 29 41 39 124 1 15 115 136 269 100 262 67 182 38 125 168 74 113 240 24 244 156 146 63 101 210 96 162 91 127 134 84 164 6 250 120 171 226 143 149 145 96 194 17 62 102 190 155 160 195 235 8 165 243 157 43 205 16 44 121 119 172 206 15 147 249 121 68 98 58 66 253 240 5 13 213 165 5 83 248 173 122 35 5 64 17 43 224 247 257 102 177 3 168 125 187 35 56 138 165 262 118 256 103 157 62 83 229 25 179 137 217 46 55 203 101 191 135 32 193 69 116 122 54 236 7 268 101 242 209 97 142 233 125 238 109 121 87 59 1 234 41 258 50 123 253 221 127 153 45 107 174 121 138 133 66 183 205 267 166 178 138 114 188 53 37 209 148 216 28 74 132 118 237 142 214 164 25 211 63 69 97 161 194 255 136 250 139 132 169 41 20 163 58 34 57 118 37 177 222 94 60 238 141 47 22 110 107 225 195 203 82 43 192 51 52 51 71 12 14 180 72 198 117 38 157 94 9 164 76 15 128 101 261 170 40 40 21 143 200 32 161 143 181 71 31 245 123 53 256 135 267 134 65 16 63 82 62 153 264 33 109 89 244 124 220 128 50 104 105 91 146 12 27 145 64 268 82 11 79 199 84 215 80 128 69 65 235 259 17 30 259 255 187 54 204 81 63 50 136 218 213 197 118 18 29 9 113 189 220 179 124 252 54 255 155 128 82 30 227 59 252 3 98 90 179 105 21 111 4 97 110 37 190 187 86 130 16 114 156 127 102 158 42 225 144 129 17 11 28 42 206 266 186 119 223 10 80 96 143 130 184 153 26 146 44 140 80 115 104 73 165 24 44 191 154 180 53 237 174 140 99 76 47 54 223 42 6 31 194 236 175 37 158 261 151 79 180 123 2 182 257 51 103 125 219 231 178 189 1 253 2 201 218 264 1 183 237 193 18 229 244 105 72 185 152 46 87 46 36 242 241 23 77 14 148 229 263 66 202 166 210 64 49 156 76 28 93 93 61 135 13 232 126 135 251 36 4 84 145 45 120 139 113 208 181 39 105 40 72 217 265 251 55 152 27 126 186 138 184 223 61 154 161 175 107 6 269 81 114 207 201 167 107 206 234 73 184 172 174 89 212 11 98 77 214 113 221 146 31 175 88 45 139 100 243 189 213 ^'}},
- {OUT=>'D5776B7DFFF75C1358ABDBBB3F27A20BB6CA7C55'}],
- ['201', {IN=> {f=> '578 1 51 63 146 108 1 111 51 120 84 73 125 49 205 233 89 38 257 66 64 66 113 15 192 147 111 17 58 49 16 244 203 46 238 54 170 2 197 169 90 90 41 1 194 62 234 92 145 113 155 141 226 243 208 200 268 48 21 126 233 40 89 178 206 145 196 166 255 234 224 105 34 23 41 84 24 176 151 73 42 219 91 225 108 50 151 130 252 184 34 72 262 163 156 4 112 20 74 177 14 140 91 85 159 243 19 211 110 237 2 114 67 248 82 241 104 88 126 150 210 247 170 225 157 90 230 262 80 54 162 104 39 86 71 78 147 28 6 216 41 35 75 97 19 154 172 59 267 185 135 77 95 244 71 267 45 186 270 144 144 110 48 13 228 75 229 70 75 40 172 189 48 153 177 154 89 170 36 259 113 147 243 68 160 189 97 102 256 14 8 131 164 19 162 161 158 142 14 197 29 141 11 90 173 52 115 202 43 131 198 81 106 218 39 169 173 192 64 9 175 50 68 28 138 176 234 84 156 227 72 213 214 77 144 193 150 127 145 56 217 176 102 124 235 87 263 83 161 109 102 116 65 201 180 64 149 215 129 200 128 8 123 266 133 79 142 146 248 222 9 183 220 226 20 157 7 128 148 163 73 265 270 12 93 8 180 204 98 22 261 28 89 227 155 224 56 85 125 181 256 154 229 210 115 119 32 108 190 100 209 112 103 176 19 22 121 79 10 95 55 82 109 53 167 258 69 80 194 202 183 171 5 213 25 88 258 201 131 115 70 83 29 58 67 165 71 127 96 107 138 44 2 163 16 55 33 160 246 35 67 108 133 162 153 260 165 203 178 17 247 38 174 55 222 58 132 27 86 211 27 226 160 106 86 260 248 33 20 25 228 207 8 263 215 212 30 242 16 195 254 239 106 135 28 55 165 120 167 175 239 238 186 130 195 65 250 220 143 9 43 271 147 160 57 137 181 116 114 150 78 196 249 85 76 232 177 22 129 68 168 87 74 94 3 26 174 104 171 137 264 218 228 158 59 184 83 21 69 23 256 146 59 52 32 100 20 214 126 93 10 46 106 3 249 134 25 39 37 122 271 15 109 136 269 100 258 61 182 36 119 164 68 111 240 18 242 156 144 61 99 206 96 156 87 123 134 82 158 2 246 118 169 222 141 143 141 94 192 15 60 96 190 149 158 191 235 4 161 241 153 37 205 10 38 117 117 166 206 13 145 245 115 62 94 52 66 253 236 271 7 211 159 5 81 246 167 118 29 1 62 11 41 224 245 255 102 173 3 166 123 183 31 56 134 165 260 116 254 81 ^'}},
- {OUT=>'022B7ADA472FB7A9DA9219621C9C5F563D3792F6'}],
- ['202', {IN=> {f=> '583 1 157 50 71 225 21 167 133 217 42 47 203 89 183 131 28 193 65 116 122 42 236 7 268 93 242 201 89 138 229 125 238 97 117 75 55 267 230 33 250 50 111 245 213 127 153 45 99 162 121 134 125 54 175 197 259 166 166 126 106 188 53 33 205 148 208 16 70 128 106 233 130 210 160 17 207 63 57 97 157 194 247 128 250 135 132 165 29 16 155 50 26 49 118 37 165 218 94 60 234 137 47 14 110 103 221 191 195 70 43 184 39 40 47 59 12 6 176 60 194 117 30 153 90 1 164 76 3 124 101 261 166 36 28 9 143 196 32 153 135 177 67 31 245 123 49 248 135 262 263 126 61 12 51 78 62 149 260 29 101 77 244 116 212 120 42 92 105 91 138 27 141 52 260 74 3 79 199 84 211 68 128 61 57 227 255 17 18 259 251 187 46 196 77 55 38 132 210 205 193 110 18 25 271 105 181 216 179 112 252 50 255 147 116 82 22 219 47 248 265 86 86 171 93 13 103 266 93 98 25 186 183 86 126 16 110 148 123 94 150 38 217 132 125 9 273 20 30 198 266 178 119 219 2 72 88 131 118 172 145 26 134 40 132 80 107 96 65 161 24 44 191 150 168 41 229 170 140 99 72 43 54 215 42 2 27 186 228 163 29 146 253 147 71 180 119 264 178 249 43 99 117 219 231 170 185 1 249 272 197 214 264 263 171 237 189 6 221 236 97 72 173 152 38 87 34 28 238 241 19 77 10 136 229 255 62 194 162 206 56 45 144 64 24 89 93 53 123 9 228 118 127 243 24 4 72 133 33 120 127 113 200 181 27 101 32 68 213 257 251 43 144 19 122 186 138 184 223 61 142 149 175 107 6 261 81 114 207 193 155 95 202 226 73 180 164 166 81 204 11 98 65 206 101 221 146 19 167 88 41 139 92 235 189 235 45 59 142 104 273 105 51 118 82 67 121 49 203 233 85 34 257 62 64 64 109 11 188 143 111 11 58 45 14 240 201 44 236 52 170 270 197 169 88 86 41 269 190 58 234 92 145 111 155 135 222 243 208 200 266 48 21 122 231 40 87 178 204 141 196 162 251 232 222 99 32 23 37 80 22 174 145 71 36 217 87 223 106 44 151 130 250 180 34 68 258 159 154 272 112 18 70 173 8 136 85 79 159 239 19 207 108 233 112 63 246 76 237 104 84 126 146 208 245 168 225 151 90 230 262 74 48 156 102 39 80 67 76 147 26 4 216 35 35 75 95 13 148 168 270 53 267 185 131 73 95 242 71 265 41 184 268 138 144 104 44 7 228 73 225 66 69 36 272 ^'}},
- {OUT=>'7F1DE4ECA20362DA624653D225A5B3F7964A9FF2'}],
- ['203', {IN=> {f=> '588 0 181 44 149 173 150 77 158 36 255 101 135 239 60 148 185 85 94 252 6 4 131 152 15 162 161 150 142 14 193 21 141 3 78 169 44 107 198 31 119 198 73 94 210 31 161 173 192 52 1 163 46 64 20 130 164 226 72 148 227 60 213 210 73 136 185 150 119 133 48 213 168 98 124 227 83 263 79 157 109 90 104 61 201 168 56 149 215 125 196 116 272 111 262 133 67 138 142 248 218 9 183 212 222 8 153 3 120 144 163 65 265 270 4 89 8 172 204 94 18 257 16 89 219 147 216 52 85 113 177 256 154 225 210 115 111 28 108 186 96 209 104 103 176 11 14 109 71 10 87 51 74 105 49 159 258 69 72 190 202 179 171 1 205 21 76 254 197 127 111 70 83 29 54 67 157 67 115 92 103 134 36 2 151 4 47 33 160 246 27 55 96 125 154 141 260 153 195 170 13 247 38 170 55 222 50 128 15 78 211 19 226 156 98 82 252 240 29 12 25 224 199 259 207 212 30 234 8 195 254 239 102 123 28 43 161 108 167 171 235 230 178 118 187 65 242 220 135 5 35 267 143 152 57 137 173 108 102 146 78 188 245 81 72 232 177 22 129 68 168 75 74 82 275 14 174 96 167 129 260 218 220 158 55 180 75 9 57 11 248 134 59 52 20 88 20 214 114 81 264 6 46 106 271 249 122 17 35 33 118 271 15 97 136 269 100 250 49 182 32 107 156 56 107 240 6 238 156 140 57 95 198 96 144 79 115 134 78 146 270 238 114 165 214 137 131 133 90 188 11 56 84 190 137 154 183 235 272 153 237 145 25 205 274 26 109 113 154 206 9 141 237 103 50 86 40 66 253 228 263 271 207 147 5 77 242 155 110 17 269 58 275 37 224 241 251 102 165 3 162 119 175 23 56 126 165 256 112 250 91 157 44 65 223 19 161 131 217 40 43 203 83 179 129 26 193 63 116 122 36 236 7 268 89 242 197 85 136 227 125 238 91 115 69 53 265 228 29 246 50 105 241 209 127 153 45 95 156 121 132 121 48 171 193 255 166 160 120 102 188 53 31 203 148 204 10 68 126 100 231 124 208 158 13 205 63 51 97 155 194 243 124 250 133 132 163 23 14 151 46 22 45 118 37 159 216 94 60 232 135 47 10 110 101 219 189 191 64 43 180 33 34 45 53 12 2 174 54 192 117 26 151 88 273 164 76 273 122 101 261 164 34 22 3 143 194 32 149 131 175 65 31 245 123 47 244 135 258 261 122 59 10 45 76 62 147 258 27 97 71 244 112 208 116 38 86 105 91 134 270 27 139 46 256 70 275 79 199 160 ^'}},
- {OUT=>'CA0F2B1BFB4469C11ED006A994734F0F2F5EFD17'}],
- ['204', {IN=> {f=> '594 0 207 56 128 53 49 219 251 17 6 259 247 187 38 188 73 47 26 128 202 197 189 102 18 21 263 97 173 212 179 100 252 46 255 139 104 82 14 211 35 244 257 74 82 163 81 5 95 258 89 86 13 182 179 86 122 16 106 140 119 86 142 34 209 120 121 1 265 12 18 190 266 170 119 215 272 64 80 119 106 160 137 26 122 36 124 80 99 88 57 157 24 44 191 146 156 29 221 166 140 99 68 39 54 207 42 276 23 178 220 151 21 134 245 143 63 180 115 256 174 241 35 95 109 219 231 162 181 1 245 272 193 210 264 255 159 237 185 272 213 228 89 72 161 152 30 87 22 20 234 241 15 77 6 124 229 247 58 186 158 202 48 41 132 52 20 85 93 45 111 5 224 110 119 235 12 4 60 121 21 120 115 113 192 181 15 97 24 64 209 249 251 31 136 11 118 186 138 184 223 61 130 137 175 107 6 253 81 114 207 185 143 83 198 218 73 176 156 158 73 196 11 98 53 198 89 221 146 7 159 88 37 139 84 227 189 231 33 51 134 96 273 93 51 114 78 55 113 49 199 233 77 26 257 54 64 60 101 3 180 135 111 277 58 37 10 232 197 40 232 48 170 262 197 169 84 78 41 261 182 50 234 92 145 107 155 123 214 243 208 200 262 48 21 114 227 40 83 178 200 133 196 154 243 228 218 87 28 23 29 72 18 170 133 67 24 213 79 219 102 32 151 130 246 172 34 60 250 151 150 264 112 14 62 165 274 128 73 67 159 231 19 199 104 225 274 108 55 242 64 229 104 76 126 138 204 241 164 225 139 90 230 262 62 36 144 98 39 68 59 72 147 22 216 23 35 75 91 1 136 160 266 41 267 185 123 65 95 238 71 261 33 180 264 126 144 92 36 273 228 69 217 58 57 28 172 177 42 147 171 148 71 152 36 253 95 129 237 56 142 183 79 90 250 2 2 131 146 13 162 161 146 142 14 191 17 141 277 72 167 40 103 196 25 113 198 69 88 206 27 157 173 192 46 275 157 44 62 16 126 158 222 66 144 227 54 213 208 71 132 181 150 115 127 44 211 164 96 124 223 81 263 77 155 109 84 98 59 201 162 52 149 215 123 194 110 268 105 260 133 61 136 140 248 216 9 183 208 220 2 151 1 116 142 163 61 265 270 87 8 168 204 92 16 255 10 89 215 143 212 50 85 107 175 256 154 223 210 115 107 26 108 184 94 209 100 103 176 7 10 103 67 10 83 49 70 103 47 155 258 69 68 188 202 177 171 277 201 19 70 252 195 125 109 70 83 29 52 67 153 65 109 90 101 132 32 2 145 276 43 33 160 246 23 259 ^'}},
- {OUT=>'833D63F5C2EA0CD43EC15F2B9DD97FF12B030479'}],
- ['205', {IN=> {f=> '600 1 87 119 148 132 260 144 189 164 10 247 38 167 55 222 44 125 6 72 211 13 226 153 92 79 246 234 26 6 25 221 193 273 256 201 212 30 228 2 195 254 239 99 114 28 34 158 99 167 168 232 224 172 109 181 65 236 220 129 2 29 264 140 146 57 137 167 102 93 143 78 182 242 78 69 232 177 22 129 68 168 66 74 73 275 5 174 90 164 123 257 218 214 158 52 177 69 48 2 242 125 59 52 11 79 20 214 105 72 258 3 46 106 268 249 113 11 32 30 115 271 15 88 136 269 100 244 40 182 29 98 150 47 104 240 276 235 156 137 54 92 192 96 135 73 109 134 75 137 267 232 111 162 208 134 122 127 87 185 8 53 75 190 128 151 177 235 269 147 234 139 16 205 268 17 103 110 145 206 6 138 231 94 41 80 31 66 253 222 257 265 204 138 5 74 239 146 104 8 266 55 269 34 224 238 248 102 159 3 159 116 169 17 56 120 165 253 109 247 85 157 35 56 220 16 152 128 217 37 37 203 74 173 126 23 193 60 116 122 27 236 7 268 83 242 191 79 133 224 125 238 82 112 60 50 262 225 23 240 50 96 235 203 127 153 45 89 147 121 129 115 39 165 187 249 166 151 111 96 188 53 28 200 148 198 1 65 123 91 228 115 205 155 7 202 63 42 97 152 194 237 118 250 130 132 160 14 11 145 40 16 39 118 37 150 213 94 60 229 132 47 4 110 98 216 186 185 55 43 174 24 25 42 44 12 275 171 45 189 117 20 148 85 270 164 76 267 119 101 261 161 31 13 273 143 191 32 143 125 172 62 31 245 123 44 238 135 252 258 116 56 7 36 73 62 144 255 24 91 62 244 106 202 110 32 77 105 91 128 264 27 136 37 250 64 272 79 199 84 206 53 128 51 47 217 250 17 3 259 246 187 36 186 72 45 23 127 200 195 188 100 18 20 261 95 171 211 179 97 252 45 255 137 101 82 12 209 32 243 255 71 81 161 78 3 93 256 88 83 10 181 178 86 121 16 105 138 118 84 140 33 207 117 120 278 263 10 15 188 266 168 119 214 271 62 78 116 103 157 135 26 119 35 122 80 97 86 55 156 24 44 191 145 153 26 219 165 140 99 67 38 54 205 42 276 22 176 218 148 19 131 243 142 61 180 114 254 173 239 33 94 107 219 231 160 180 1 244 272 192 209 264 253 156 237 184 270 211 226 87 72 158 152 28 87 19 18 233 241 14 77 5 121 229 245 57 184 157 201 46 40 129 49 19 84 93 43 108 4 223 108 117 233 9 4 57 118 18 120 112 113 190 181 12 96 22 63 208 247 251 28 134 9 117 186 138 184 223 61 127 216 ^'}},
- {OUT=>'14FD356190416C00592B86FF7CA50B622F85593A'}],
- ['206', {IN=> {f=> '590 1 175 107 6 247 81 114 207 179 134 74 195 212 73 173 150 152 67 190 11 98 44 192 80 221 146 279 153 88 34 139 78 221 189 228 24 45 128 90 273 84 51 111 75 46 107 49 196 233 71 20 257 48 64 57 95 278 174 129 111 271 58 31 7 226 194 37 229 45 170 256 197 169 81 72 41 255 176 44 234 92 145 104 155 114 208 243 208 200 259 48 21 108 224 40 80 178 197 127 196 148 237 225 215 78 25 23 23 66 15 167 124 64 15 210 73 216 99 23 151 130 243 166 34 54 244 145 147 258 112 11 56 159 268 122 64 58 159 225 19 193 101 219 274 105 49 239 55 223 104 70 126 132 201 238 161 225 130 90 230 262 53 27 135 95 39 59 53 69 147 19 278 216 14 35 75 88 273 127 154 263 32 267 185 117 59 95 235 71 258 27 177 261 117 144 83 30 267 228 66 211 52 48 22 172 171 39 144 168 145 62 143 36 250 86 120 234 50 133 180 70 84 247 277 280 131 137 10 162 161 140 142 14 188 11 141 274 63 164 34 97 193 16 104 198 63 79 200 21 151 173 192 37 272 148 41 59 10 120 149 216 57 138 227 45 213 205 68 126 175 150 109 118 38 208 158 93 124 217 78 263 74 152 109 75 89 56 201 153 46 149 215 120 191 101 262 96 257 133 52 133 137 248 213 9 183 202 217 274 148 279 110 139 163 55 265 270 275 84 8 162 204 89 13 252 1 89 209 137 206 47 85 98 172 256 154 220 210 115 101 23 108 181 91 209 94 103 176 1 4 94 61 10 77 46 64 100 44 149 258 69 62 185 202 174 171 277 195 16 61 249 192 122 106 70 83 29 49 67 147 62 100 87 98 129 26 2 136 270 37 33 160 246 17 40 81 115 144 126 260 138 185 160 8 247 38 165 55 222 40 123 68 211 9 226 151 88 77 242 230 24 2 25 219 189 271 254 197 212 30 224 279 195 254 239 97 108 28 28 156 93 167 166 230 220 168 103 177 65 232 220 125 25 262 138 142 57 137 163 98 87 141 78 178 240 76 67 232 177 22 129 68 168 60 74 67 275 280 174 86 162 119 255 218 210 158 50 175 65 275 42 277 238 119 59 52 5 73 20 214 99 66 254 1 46 106 266 249 107 7 30 28 113 271 15 82 136 269 100 240 34 182 27 92 146 41 102 240 272 233 156 135 52 90 188 96 129 69 105 134 73 131 265 228 109 160 204 132 116 123 85 183 6 51 69 190 122 149 173 235 267 143 232 135 10 205 264 11 99 108 139 206 4 136 227 88 35 76 25 66 253 218 253 261 202 132 5 72 237 140 203 ^'}},
- {OUT=>'4AB6B57EDDEF1CE935622F935C1619AE7C1667D6'}],
- ['207', {IN=> {f=> '620 0 279 262 51 261 30 224 234 244 102 151 3 155 112 161 9 56 112 165 249 105 243 77 157 23 44 216 12 140 124 217 33 29 203 62 165 122 19 193 56 116 122 15 236 7 268 75 242 183 71 129 220 125 238 70 108 48 46 258 221 15 232 50 84 227 195 127 153 45 81 135 121 125 107 27 157 179 241 166 139 99 88 188 53 24 196 148 190 272 61 119 79 224 103 201 151 282 198 63 30 97 148 194 229 110 250 126 132 156 2 7 137 32 8 31 118 37 138 209 94 60 225 128 47 279 110 94 212 182 177 43 43 166 12 13 38 32 12 271 167 33 185 117 12 144 81 266 164 76 259 115 101 261 157 27 1 265 143 187 32 135 117 168 58 31 245 123 40 230 135 244 254 108 52 3 24 69 62 140 251 20 83 50 244 98 194 102 24 65 105 91 120 256 27 132 25 242 56 268 79 199 84 202 41 128 43 39 209 246 17 274 259 242 187 28 178 68 37 11 123 192 187 184 92 18 16 253 87 163 207 179 85 252 41 255 129 89 82 4 201 20 239 247 59 77 153 66 278 85 248 84 71 281 177 174 86 117 16 101 130 114 76 132 29 199 105 116 274 255 2 3 180 266 160 119 210 267 54 70 104 91 145 127 26 107 31 114 80 89 78 47 152 24 44 191 141 141 14 211 161 140 99 63 34 54 197 42 276 18 168 210 136 11 119 235 138 53 180 110 246 169 231 25 90 99 219 231 152 176 1 240 272 188 205 264 245 144 237 180 262 203 218 79 72 146 152 20 87 7 10 229 241 10 77 1 109 229 237 53 176 153 197 38 36 117 37 15 80 93 35 96 219 100 109 225 280 4 45 106 6 120 100 113 182 181 92 14 59 204 239 251 16 126 1 113 186 138 184 223 61 115 122 175 107 6 243 81 114 207 175 128 68 193 208 73 171 146 148 63 186 11 98 38 188 74 221 146 275 149 88 32 139 74 217 189 226 18 41 124 86 273 78 51 109 73 40 103 49 194 233 67 16 257 44 64 55 91 276 170 125 111 267 58 27 5 222 192 35 227 43 170 252 197 169 79 68 41 251 172 40 234 92 145 102 155 108 204 243 208 200 257 48 21 104 222 40 78 178 195 123 196 144 233 223 213 72 23 23 19 62 13 165 118 62 9 208 69 214 97 17 151 130 241 162 34 50 240 141 145 254 112 9 52 155 264 118 58 52 159 221 19 189 99 215 274 103 45 237 49 219 104 66 126 128 199 236 159 225 124 90 230 262 47 21 129 93 39 53 49 67 147 17 278 216 8 35 75 86 269 121 150 261 26 267 185 113 55 95 233 71 256 23 175 259 111 144 77 26 263 228 64 207 48 42 18 172 167 37 142 166 143 56 137 36 248 80 114 232 46 127 257 ^'}},
- {OUT=>'B456A6A968ACD66CAA974F96A9A916E700AA3C5D'}],
- ['208', {IN=> {f=> '605 1 58 76 243 273 280 131 125 6 162 161 132 142 14 184 3 141 270 51 160 26 89 189 4 92 198 55 67 192 13 143 173 192 25 268 136 37 55 2 112 137 208 45 130 227 33 213 201 64 118 167 150 101 106 30 204 150 89 124 209 74 263 70 148 109 63 77 52 201 141 38 149 215 116 187 89 254 84 253 133 40 129 133 248 209 9 183 194 213 266 144 279 102 135 163 47 265 270 271 80 8 154 204 85 9 248 274 89 201 129 198 43 85 86 168 256 154 216 210 115 93 19 108 177 87 209 86 103 176 278 281 82 53 10 69 42 56 96 40 141 258 69 54 181 202 170 171 277 187 12 49 245 188 118 102 70 83 29 45 67 139 58 88 83 94 125 18 2 124 262 29 33 160 246 9 28 69 107 136 114 260 126 177 152 4 247 38 161 55 222 32 119 273 60 211 1 226 147 80 73 234 222 20 279 25 215 181 267 250 189 212 30 216 275 195 254 239 93 96 28 16 152 81 167 162 226 212 160 91 169 65 224 220 117 281 17 258 134 134 57 137 155 90 75 137 78 170 236 72 63 232 177 22 129 68 168 48 74 55 275 272 174 78 158 111 251 218 202 158 46 171 57 267 30 269 230 107 59 52 278 61 20 214 87 54 246 282 46 106 262 249 95 284 26 24 109 271 15 70 136 269 100 232 22 182 23 80 138 29 98 240 264 229 156 131 48 86 180 96 117 61 97 134 69 119 261 220 105 156 196 128 104 115 81 179 2 47 57 190 110 145 165 235 263 135 228 127 283 205 256 284 91 104 127 206 132 219 76 23 68 13 66 253 210 245 253 198 120 5 68 233 128 92 275 260 49 257 28 224 232 242 102 147 3 153 110 157 5 56 108 165 247 103 241 73 157 17 38 214 10 134 122 217 31 25 203 56 161 120 17 193 54 116 122 9 236 7 268 71 242 179 67 127 218 125 238 64 106 42 44 256 219 11 228 50 78 223 191 127 153 45 77 129 121 123 103 21 153 175 237 166 133 93 84 188 53 22 194 148 186 268 59 117 73 222 97 199 149 280 196 63 24 97 146 194 225 106 250 124 132 154 281 5 133 28 4 27 118 37 132 207 94 60 223 126 47 277 110 92 210 180 173 37 43 162 6 7 36 26 12 269 165 27 183 117 8 142 79 264 164 76 255 113 101 261 155 25 280 261 143 185 32 131 113 166 56 31 245 123 38 226 135 240 252 104 50 1 18 67 62 138 249 18 79 44 244 94 190 98 20 59 105 91 116 252 27 130 19 238 52 266 79 199 84 200 35 128 39 35 205 244 17 270 259 240 187 24 174 66 33 5 121 188 183 182 88 18 14 249 83 159 205 179 79 252 186 ^'}},
- {OUT=>'FD1C257FE046B2A27E2F0CD55ED2DECA845F01D7'}],
- ['209', {IN=> {f=> '615 0 255 121 77 82 283 193 8 235 239 47 73 145 54 274 77 240 80 59 273 173 170 86 113 16 97 122 110 68 124 25 191 93 112 270 247 281 278 172 266 152 119 206 263 46 62 92 79 133 119 26 95 27 106 80 81 70 39 148 24 44 191 137 129 2 203 157 140 99 59 30 54 189 42 276 14 160 202 124 3 107 227 134 45 180 106 238 165 223 17 86 91 219 231 144 172 1 236 272 184 201 264 237 132 237 176 254 195 210 71 72 134 152 12 87 282 2 225 241 6 77 284 97 229 229 49 168 149 193 30 32 105 25 11 76 93 27 84 283 215 92 101 217 272 4 33 94 281 120 88 113 174 181 275 88 6 55 200 231 251 4 118 280 109 186 138 184 223 61 103 110 175 107 6 235 81 114 207 167 116 56 189 200 73 167 138 140 55 178 11 98 26 180 62 221 146 267 141 88 28 139 66 209 189 222 6 33 116 78 273 66 51 105 69 28 95 49 190 233 59 8 257 36 64 51 83 272 162 117 111 259 58 19 1 214 188 31 223 39 170 244 197 169 75 60 41 243 164 32 234 92 145 98 155 96 196 243 208 200 253 48 21 96 218 40 74 178 191 115 196 136 225 219 209 60 19 23 11 54 9 161 106 58 284 204 61 210 93 5 151 130 237 154 34 42 232 133 141 246 112 5 44 147 256 110 46 40 159 213 19 181 95 207 274 99 37 233 37 211 104 58 126 120 195 232 155 225 112 90 230 262 35 9 117 89 39 41 41 63 147 13 278 216 283 35 75 82 261 109 142 257 14 267 185 105 47 95 229 71 252 15 171 255 99 144 65 18 255 228 60 199 40 30 10 172 159 33 138 162 139 44 125 36 244 68 102 228 38 115 174 52 72 241 271 280 131 119 4 162 161 128 142 14 182 286 141 268 45 158 22 85 187 285 86 198 51 61 188 9 139 173 192 19 266 130 35 53 285 108 131 204 39 126 227 27 213 199 62 114 163 150 97 100 26 202 146 87 124 205 72 263 68 146 109 57 71 50 201 135 34 149 215 114 185 83 250 78 251 133 34 127 131 248 207 9 183 190 211 262 142 279 98 133 163 43 265 270 269 78 8 150 204 83 7 246 270 89 197 125 194 41 85 80 166 256 154 214 210 115 89 17 108 175 85 209 82 103 176 276 279 76 49 10 65 40 52 94 38 137 258 69 50 179 202 168 171 277 183 10 43 243 186 116 100 70 83 29 43 67 135 56 82 81 92 123 14 2 118 258 25 33 160 246 5 22 63 103 132 108 260 120 173 148 2 247 38 159 55 222 28 117 269 56 211 284 226 145 76 71 230 218 18 277 25 213 177 265 248 185 212 30 212 273 195 254 239 91 90 28 10 150 75 167 160 224 175 ^'}},
- {OUT=>'66E0D01780F1063E2929EAAD74826BC64060E38C'}],
- ['210', {IN=> {f=> '613 0 152 79 161 65 216 220 109 281 9 254 130 126 57 137 147 82 63 133 78 162 232 68 59 232 177 22 129 68 168 36 74 43 275 264 174 70 154 103 247 218 194 158 42 167 49 259 18 261 222 95 59 52 270 49 20 214 75 42 238 282 46 106 258 249 83 280 22 20 105 271 15 58 136 269 100 224 10 182 19 68 130 17 94 240 256 225 156 127 44 82 172 96 105 53 89 134 65 107 257 212 101 152 188 124 92 107 77 175 287 43 45 190 98 141 157 235 259 127 224 119 275 205 248 276 83 100 115 206 285 128 211 64 11 60 1 66 253 202 237 245 194 108 5 64 229 116 84 267 256 45 249 24 224 228 238 102 139 3 149 106 149 286 56 100 165 243 99 237 65 157 5 26 210 6 122 118 217 27 17 203 44 153 116 13 193 50 116 122 286 236 7 268 63 242 171 59 123 214 125 238 52 102 30 40 252 215 3 220 50 66 215 183 127 153 45 69 117 121 119 95 9 145 167 229 166 121 81 76 188 53 18 190 148 178 260 55 113 61 218 85 195 145 276 192 63 12 97 142 194 217 98 250 120 132 150 273 1 125 20 285 19 118 37 120 203 94 60 219 122 47 273 110 88 206 176 165 25 43 154 283 284 32 14 12 265 161 15 179 117 138 75 260 164 76 247 109 101 261 151 21 272 253 143 181 32 123 105 162 52 31 245 123 34 218 135 232 248 96 46 286 6 63 62 134 245 14 71 32 244 86 182 90 12 47 105 91 108 244 27 126 7 230 44 262 79 199 84 196 23 128 31 27 197 240 17 262 259 236 187 16 166 62 25 282 117 180 175 178 80 18 10 241 75 151 201 179 67 252 35 255 117 71 82 281 189 2 233 235 41 71 141 48 272 73 236 78 53 269 171 168 86 111 16 95 118 108 64 120 23 187 87 110 268 243 279 274 168 266 148 119 204 261 42 58 86 73 127 115 26 89 25 102 80 77 66 35 146 24 44 191 135 123 285 199 155 140 99 57 28 54 185 42 276 12 156 198 118 288 101 223 132 41 180 104 234 163 219 13 84 87 219 231 140 170 1 234 272 182 199 264 233 126 237 174 250 191 206 67 72 128 152 8 87 278 287 223 241 4 77 284 91 229 225 47 164 147 191 26 30 99 19 9 74 93 23 78 283 213 88 97 213 268 4 27 88 277 120 82 113 170 181 271 86 2 53 198 227 251 287 114 278 107 186 138 184 223 61 97 104 175 107 6 231 81 114 207 163 110 50 187 196 73 165 134 136 51 174 11 98 20 176 56 221 146 263 137 88 26 139 62 205 189 220 29 112 74 273 60 51 103 67 22 91 49 188 233 55 4 257 32 64 49 79 270 158 113 111 255 58 15 288 210 213 ^'}},
- {OUT=>'A8478DF406F179FD4EF97F4574D7F99EA1CE9EB8'}],
- ['211', {IN=> {f=> '624 1 28 220 36 170 238 197 169 72 54 41 237 158 26 234 92 145 95 155 87 190 243 208 200 250 48 21 90 215 40 71 178 188 109 196 130 219 216 206 51 16 23 5 48 6 158 97 55 278 201 55 207 90 286 151 130 234 148 34 36 226 127 138 240 112 2 38 141 250 104 37 31 159 207 19 175 92 201 274 96 31 230 28 205 104 52 126 114 192 229 152 225 103 90 230 262 26 108 86 39 32 35 60 147 10 278 216 277 35 75 79 255 100 136 254 5 267 185 99 41 95 226 71 249 9 168 252 90 144 56 12 249 228 57 193 34 21 4 172 153 30 135 159 136 35 116 36 241 59 93 225 32 106 171 43 66 238 268 280 131 110 1 162 161 122 142 14 179 283 141 265 36 155 16 79 184 279 77 198 45 52 182 3 133 173 192 10 263 121 32 50 282 102 122 198 30 120 227 18 213 196 59 108 157 150 91 91 20 199 140 84 124 199 69 263 65 143 109 48 62 47 201 126 28 149 215 111 182 74 244 69 248 133 25 124 128 248 204 9 183 184 208 256 139 279 92 130 163 37 265 270 266 75 8 144 204 80 4 243 264 89 191 119 188 38 85 71 163 256 154 211 210 115 83 14 108 172 82 209 76 103 176 273 276 67 43 10 59 37 46 91 35 131 258 69 44 176 202 165 171 277 177 7 34 240 183 113 97 70 83 29 40 67 129 53 73 78 89 120 8 2 109 252 19 33 160 246 289 13 54 97 126 99 260 111 167 142 289 247 38 156 55 222 22 114 263 50 211 281 226 142 70 68 224 212 15 274 25 210 171 262 245 179 212 30 206 270 195 254 239 88 81 28 1 147 66 167 157 221 202 150 76 159 65 214 220 107 281 7 253 129 124 57 137 145 80 60 132 78 160 231 67 58 232 177 22 129 68 168 33 74 40 275 262 174 68 153 101 246 218 192 158 41 166 47 257 15 259 220 92 59 52 268 46 20 214 72 39 236 282 46 106 257 249 80 279 21 19 104 271 15 55 136 269 100 222 7 182 18 65 128 14 93 240 254 224 156 126 43 81 170 96 102 51 87 134 64 104 256 210 100 151 186 123 89 105 76 174 287 42 42 190 95 140 155 235 258 125 223 117 273 205 246 274 81 99 112 206 285 127 209 61 8 58 288 66 253 200 235 243 193 105 5 63 228 113 82 265 255 44 247 23 224 227 237 102 137 3 148 105 147 285 56 98 165 242 98 236 63 157 2 23 209 5 119 117 217 26 15 203 41 151 115 12 193 49 116 122 284 236 7 268 61 242 169 57 122 213 125 238 49 101 27 39 251 214 1 218 50 63 213 181 127 153 45 67 114 121 118 93 6 143 165 227 166 118 78 74 188 53 17 189 148 176 258 54 112 58 217 82 194 144 275 191 141 ^'}},
- {OUT=>'248E58CF09A372114FC2F93B09C5FC14F3D0059E'}],
- ['212', {IN=> {f=> '628 1 3 97 139 194 211 92 250 117 132 147 267 290 119 14 282 13 118 37 111 200 94 60 216 119 47 270 110 85 203 173 159 16 43 148 277 278 29 5 12 262 158 6 176 117 286 135 72 257 164 76 241 106 101 261 148 18 266 247 143 178 32 117 99 159 49 31 245 123 31 212 135 226 245 90 43 286 289 60 62 131 242 11 65 23 244 80 176 84 6 38 105 91 102 238 27 123 290 224 38 259 79 199 84 193 14 128 25 21 191 237 17 256 259 233 187 10 160 59 19 276 114 174 169 175 74 18 7 235 69 145 198 179 58 252 32 255 111 62 82 278 183 285 230 229 32 68 135 39 269 67 230 75 44 263 168 165 86 108 16 92 112 105 58 114 20 181 78 107 265 237 276 268 162 266 142 119 201 258 36 52 77 64 118 109 26 80 22 96 80 71 60 29 143 24 44 191 132 114 279 193 152 140 99 54 25 54 179 42 276 9 150 192 109 285 92 217 129 35 180 101 228 160 213 7 81 81 219 231 134 167 1 231 272 179 196 264 227 117 237 171 244 185 200 61 72 119 152 2 87 272 284 220 241 1 77 284 82 229 219 44 158 144 188 20 27 90 10 6 71 93 17 69 283 210 82 91 207 262 4 18 79 271 120 73 113 164 181 265 83 288 50 195 221 251 281 108 275 104 186 138 184 223 61 88 95 175 107 6 225 81 114 207 157 101 41 184 190 73 162 128 130 45 168 11 98 11 170 47 221 146 257 131 88 23 139 56 199 189 217 283 23 106 68 273 51 51 100 64 13 85 49 185 233 49 290 257 26 64 46 73 267 152 107 111 249 58 9 288 204 183 26 218 34 170 234 197 169 70 50 41 233 154 22 234 92 145 93 155 81 186 243 208 200 248 48 21 86 213 40 69 178 186 105 196 126 215 214 204 45 14 23 1 44 4 156 91 53 274 199 51 205 88 282 151 130 232 144 34 32 222 123 136 236 112 34 137 246 100 31 25 159 203 19 171 90 197 274 94 27 228 22 201 104 48 126 110 190 227 150 225 97 90 230 262 20 286 102 84 39 26 31 58 147 8 278 216 273 35 75 77 251 94 132 252 291 267 185 95 37 95 224 71 247 5 166 250 84 144 50 8 245 228 55 189 30 15 172 149 28 133 157 134 29 110 36 239 53 87 223 28 100 169 37 62 236 266 280 131 104 291 162 161 118 142 14 177 281 141 263 30 153 12 75 182 275 71 198 41 46 178 291 129 173 192 4 261 115 30 48 280 98 116 194 24 116 227 12 213 194 57 104 153 150 87 85 16 197 136 82 124 195 67 263 63 141 109 42 56 45 201 120 24 149 215 109 180 68 240 63 246 133 19 122 126 248 202 9 183 180 206 252 137 279 88 128 163 33 265 270 264 73 8 140 204 78 2 241 76 ^'}},
- {OUT=>'F15767DE91796A6816977EFA4FCED4B7FD9B8A57'}],
- ['213', {IN=> {f=> '622 0 89 183 111 180 34 85 59 159 256 154 207 210 115 75 10 108 168 78 209 68 103 176 269 272 55 35 10 51 33 38 87 31 123 258 69 36 172 202 161 171 277 169 3 22 236 179 109 93 70 83 29 36 67 121 49 61 74 85 116 2 97 244 11 33 160 246 285 1 42 89 118 87 260 99 159 134 289 247 38 152 55 222 14 110 255 42 211 277 226 138 62 64 216 204 11 270 25 206 163 258 241 171 212 30 198 266 195 254 239 84 69 28 283 143 54 167 153 217 194 142 64 151 65 206 220 99 281 293 249 125 116 57 137 137 72 48 128 78 152 227 63 54 232 177 22 129 68 168 21 74 28 275 254 174 60 149 93 242 218 184 158 37 162 39 249 3 251 212 80 59 52 260 34 20 214 60 27 228 282 46 106 253 249 68 275 17 15 100 271 15 43 136 269 100 214 289 182 14 53 120 2 89 240 246 220 156 122 39 77 162 96 90 43 79 134 60 92 252 202 96 147 178 119 77 97 72 170 287 38 30 190 83 136 147 235 254 117 219 109 265 205 238 266 73 95 100 206 285 123 201 49 290 50 280 66 253 192 227 235 189 93 5 59 224 101 74 257 251 40 239 19 224 223 233 102 129 3 144 101 139 281 56 90 165 238 94 232 55 157 284 11 205 1 107 113 217 22 7 203 29 143 111 8 193 45 116 122 276 236 7 268 53 242 161 49 118 209 125 238 37 97 15 35 247 210 287 210 50 51 205 173 127 153 45 59 102 121 114 85 288 135 157 219 166 106 66 66 188 53 13 185 148 168 250 50 108 46 213 70 190 140 271 187 63 291 97 137 194 207 88 250 115 132 145 263 290 115 10 280 9 118 37 105 198 94 60 214 117 47 268 110 83 201 171 155 10 43 144 273 274 27 293 12 260 156 174 117 284 133 70 255 164 76 237 104 101 261 146 16 262 243 143 176 32 113 95 157 47 31 245 123 29 208 135 222 243 86 41 286 285 58 62 129 240 9 61 17 244 76 172 80 2 32 105 91 98 234 27 121 286 220 34 257 79 199 84 191 8 128 21 17 187 235 17 252 259 231 187 6 156 57 15 272 112 170 165 173 70 18 5 231 65 141 196 179 52 252 30 255 107 56 82 276 179 281 228 225 26 66 131 33 267 63 226 73 38 259 166 163 86 106 16 90 108 103 54 110 18 177 72 105 263 233 274 264 158 266 138 119 199 256 32 48 71 58 112 105 26 74 20 92 80 67 56 25 141 24 44 191 130 108 275 189 150 140 99 52 23 54 175 42 276 7 146 188 103 283 86 213 127 31 180 99 224 158 209 3 79 77 219 231 130 165 1 229 272 177 194 264 223 111 237 169 240 181 196 57 72 113 152 292 87 268 282 218 241 293 77 284 76 229 80 ^'}},
- {OUT=>'36A6BC5E680E15675D9696338C88B36248BBBAF4'}],
- ['214', {IN=> {f=> '635 1 40 150 140 184 12 23 78 294 2 67 93 9 57 283 206 74 83 199 254 4 6 67 263 120 61 113 156 181 257 79 284 46 191 213 251 273 100 271 100 186 138 184 223 61 76 83 175 107 6 217 81 114 207 149 89 29 180 182 73 158 120 122 37 160 11 98 295 162 35 221 146 249 123 88 19 139 48 191 189 213 275 15 98 60 273 39 51 96 60 1 77 49 181 233 41 286 257 18 64 42 65 263 144 99 111 241 58 1 288 196 179 22 214 30 170 226 197 169 66 42 41 225 146 14 234 92 145 89 155 69 178 243 208 200 244 48 21 78 209 40 65 178 182 97 196 118 207 210 200 33 10 23 289 36 152 79 49 266 195 43 201 84 274 151 130 228 136 34 24 214 115 132 228 112 292 26 129 238 92 19 13 159 195 19 163 86 189 274 90 19 224 10 193 104 40 126 102 186 223 146 225 85 90 230 262 8 278 90 80 39 14 23 54 147 4 278 216 265 35 75 73 243 82 124 248 283 267 185 87 29 95 220 71 243 293 162 246 72 144 38 237 228 51 181 22 3 288 172 141 24 129 153 130 17 98 36 235 41 75 219 20 88 165 25 54 232 262 280 131 92 291 162 161 110 142 14 173 277 141 259 18 149 4 67 178 267 59 198 33 34 170 287 121 173 192 288 257 103 26 44 276 90 104 186 12 108 227 213 190 53 96 145 150 79 73 8 193 128 78 124 187 63 263 59 137 109 30 44 41 201 108 16 149 215 105 176 56 232 51 242 133 7 118 122 248 198 9 183 172 202 244 133 279 80 124 163 25 265 270 260 69 8 132 204 74 294 237 252 89 179 107 176 32 85 53 157 256 154 205 210 115 71 8 108 166 76 209 64 103 176 267 270 49 31 10 47 31 34 85 29 119 258 69 32 170 202 159 171 277 165 1 16 234 177 107 91 70 83 29 34 67 117 47 55 72 83 114 292 2 91 240 7 33 160 246 283 291 36 85 114 81 260 93 155 130 289 247 38 150 55 222 10 108 251 38 211 275 226 136 58 62 212 200 9 268 25 204 159 256 239 167 212 30 194 264 195 254 239 82 63 28 279 141 48 167 151 215 190 138 58 147 65 202 220 95 281 291 247 123 112 57 137 133 68 42 126 78 148 225 61 52 232 177 22 129 68 168 15 74 22 275 250 174 56 147 89 240 218 180 158 35 160 35 245 293 247 208 74 59 52 256 28 20 214 54 21 224 282 46 106 251 249 62 273 15 13 98 271 15 37 136 269 100 210 285 182 12 47 116 292 87 240 242 218 156 120 37 75 158 96 84 39 75 134 58 86 250 198 94 145 174 117 71 93 70 168 287 36 24 190 77 134 143 235 252 113 217 105 261 205 234 262 69 93 94 206 285 121 197 43 286 46 276 66 253 188 223 231 187 87 5 57 222 95 285 ^'}},
- {OUT=>'4DEA6251B2A6DF017A8093AB066EE3863A4EC369'}],
- ['215', {IN=> {f=> '636 0 251 248 37 233 16 224 220 230 102 123 3 141 98 133 278 56 84 165 235 91 229 49 157 278 2 202 295 98 110 217 19 1 203 20 137 108 5 193 42 116 122 270 236 7 268 47 242 155 43 115 206 125 238 28 94 6 32 244 207 284 204 50 42 199 167 127 153 45 53 93 121 111 79 282 129 151 213 166 97 57 60 188 53 10 182 148 162 244 47 105 37 210 61 187 137 268 184 63 285 97 134 194 201 82 250 112 132 142 257 290 109 4 277 3 118 37 96 195 94 60 211 114 47 265 110 80 198 168 149 1 43 138 267 268 24 287 12 257 153 288 171 117 281 130 67 252 164 76 231 101 101 261 143 13 256 237 143 173 32 107 89 154 44 31 245 123 26 202 135 216 240 80 38 286 279 55 62 126 237 6 55 8 244 70 166 74 293 23 105 91 92 228 27 118 280 214 28 254 79 199 84 188 296 128 15 11 181 232 17 246 259 228 187 150 54 9 266 109 164 159 170 64 18 2 225 59 135 193 179 43 252 27 255 101 47 82 273 173 275 225 219 17 63 125 24 264 57 220 70 29 253 163 160 86 103 16 87 102 100 48 104 15 171 63 102 260 227 271 258 152 266 132 119 196 253 26 42 62 49 103 99 26 65 17 86 80 61 50 19 138 24 44 191 127 99 269 183 147 140 99 49 20 54 169 42 276 4 140 182 94 280 77 207 124 25 180 96 218 155 203 294 76 71 219 231 124 162 1 226 272 174 191 264 217 102 237 166 234 175 190 51 72 104 152 289 87 262 279 215 241 293 77 284 67 229 209 39 148 139 183 10 22 75 292 1 66 93 7 54 283 205 72 81 197 252 4 3 64 261 120 58 113 154 181 255 78 283 45 190 211 251 271 98 270 99 186 138 184 223 61 73 80 175 107 6 215 81 114 207 147 86 26 179 180 73 157 118 120 35 158 11 98 293 160 32 221 146 247 121 88 18 139 46 189 189 212 273 13 96 58 273 36 51 95 59 295 75 49 180 233 39 285 257 16 64 41 63 262 142 97 111 239 58 296 288 194 178 21 213 29 170 224 197 169 65 40 41 223 144 12 234 92 145 88 155 66 176 243 208 200 243 48 21 76 208 40 64 178 181 95 196 116 205 209 199 30 9 23 288 34 296 151 76 48 264 194 41 200 83 272 151 130 227 134 34 22 212 113 131 226 112 292 24 127 236 90 16 10 159 193 19 161 85 187 274 89 17 223 7 191 104 38 126 100 185 222 145 225 82 90 230 262 5 276 87 79 39 11 21 53 147 3 278 216 263 35 75 72 241 79 122 247 281 267 185 85 27 95 219 71 242 292 161 245 69 144 35 295 235 228 50 179 20 287 172 139 23 128 152 129 14 95 36 234 38 72 218 18 85 164 22 52 231 261 280 131 89 291 162 161 108 142 14 172 276 91 ^'}},
- {OUT=>'D30E70E357D57E3D82CA554B8A3D58DFF528FA94'}],
- ['216', {IN=> {f=> '635 1 256 9 146 297 61 175 261 50 198 27 25 164 284 115 173 192 282 254 94 23 41 273 84 95 180 3 102 227 290 213 187 50 90 139 150 73 64 2 190 122 75 124 181 60 263 56 134 109 21 35 38 201 99 10 149 215 102 173 47 226 42 239 133 297 115 119 248 195 9 183 166 199 238 130 279 74 121 163 19 265 270 257 66 8 126 204 71 294 234 246 89 173 101 170 29 85 44 154 256 154 202 210 115 65 5 108 163 73 209 58 103 176 264 267 40 25 10 41 28 28 82 26 113 258 69 26 167 202 156 171 277 159 297 7 231 174 104 88 70 83 29 31 67 111 44 46 69 80 111 289 2 82 234 1 33 160 246 280 285 27 79 108 72 260 84 149 124 289 247 38 147 55 222 4 105 245 32 211 272 226 133 52 59 206 194 6 265 25 201 153 253 236 161 212 30 188 261 195 254 239 79 54 28 273 138 39 167 148 212 184 132 49 141 65 196 220 89 281 288 244 120 106 57 137 127 62 33 123 78 142 222 58 49 232 177 22 129 68 168 6 74 13 275 244 174 50 144 83 237 218 174 158 32 157 29 239 287 241 202 65 59 52 250 19 20 214 45 12 218 282 46 106 248 249 53 270 12 10 95 271 15 28 136 269 100 204 279 182 9 38 110 286 84 240 236 215 156 117 34 72 152 96 75 33 69 134 55 77 247 192 91 142 168 114 62 87 67 165 287 33 15 190 68 131 137 235 249 107 214 99 255 205 228 256 63 90 85 206 285 118 191 34 280 40 270 66 253 182 217 225 184 78 5 54 219 86 64 247 246 35 229 14 224 218 228 102 119 3 139 96 129 276 56 80 165 233 89 227 45 157 274 295 200 295 92 108 217 17 296 203 14 133 106 3 193 40 116 122 266 236 7 268 43 242 151 39 113 204 125 238 22 92 30 242 205 282 200 50 36 195 163 127 153 45 49 87 121 109 75 278 125 147 209 166 91 51 56 188 53 8 180 148 158 240 45 103 31 208 55 185 135 266 182 63 281 97 132 194 197 78 250 110 132 140 253 290 105 275 298 118 37 90 193 94 60 209 112 47 263 110 78 196 166 145 294 43 134 263 264 22 283 12 255 151 284 169 117 279 128 65 250 164 76 227 99 101 261 141 11 252 233 143 171 32 103 85 152 42 31 245 123 24 198 135 212 238 76 36 286 275 53 62 124 235 4 51 2 244 66 162 70 291 17 105 91 88 224 27 116 276 210 24 252 79 199 84 186 292 128 11 7 177 230 17 242 259 226 187 295 146 52 5 262 107 160 155 168 60 18 221 55 131 191 179 37 252 25 255 97 41 82 271 169 271 223 215 11 61 121 18 262 53 216 68 23 249 161 158 86 101 16 85 98 98 44 100 13 167 57 100 258 223 269 254 148 266 128 119 194 251 22 38 56 43 275 ^'}},
- {OUT=>'70CA84D827F7FD61446233F88CF2F990B0F3E2AA'}],
- ['217', {IN=> {f=> '642 0 91 26 53 13 78 80 53 42 11 134 24 44 191 123 87 261 175 143 140 99 45 16 54 161 42 276 132 174 82 276 65 199 120 17 180 92 210 151 195 290 72 63 219 231 116 158 1 222 272 170 187 264 209 90 237 162 226 167 182 43 72 92 152 285 87 254 275 211 241 293 77 284 55 229 201 35 140 135 179 2 18 63 284 298 62 93 300 42 283 201 64 73 189 244 4 292 52 253 120 46 113 146 181 247 74 279 41 186 203 251 263 90 266 95 186 138 184 223 61 61 68 175 107 6 207 81 114 207 139 74 14 175 172 73 153 110 112 27 150 11 98 285 152 20 221 146 239 113 88 14 139 38 181 189 208 265 5 88 50 273 24 51 91 55 287 67 49 176 233 31 281 257 8 64 37 55 258 134 89 111 231 58 292 288 186 174 17 209 25 170 216 197 169 61 32 41 215 136 4 234 92 145 84 155 54 168 243 208 200 239 48 21 68 204 40 60 178 177 87 196 108 197 205 195 18 5 23 284 26 296 147 64 44 256 190 33 196 79 264 151 130 223 126 34 14 204 105 127 218 112 292 16 119 228 82 4 299 159 185 19 153 81 179 274 85 9 219 296 183 104 30 126 92 181 218 141 225 70 90 230 262 294 268 75 75 39 300 13 49 147 300 278 216 255 35 75 68 233 67 114 243 273 267 185 77 19 95 215 71 238 288 157 241 57 144 23 291 227 228 46 171 12 289 283 172 131 19 124 148 125 2 83 36 230 26 60 214 10 73 160 10 44 227 257 280 131 77 291 162 161 100 142 14 168 272 141 254 3 144 295 57 173 257 44 198 23 19 160 282 111 173 192 278 252 88 21 39 271 80 89 176 298 98 227 286 213 185 48 86 135 150 69 58 299 188 118 73 124 177 58 263 54 132 109 15 29 36 201 93 6 149 215 100 171 41 222 36 237 133 293 113 117 248 193 9 183 162 197 234 128 279 70 119 163 15 265 270 255 64 8 122 204 69 294 232 242 89 169 97 166 27 85 38 152 256 154 200 210 115 61 3 108 161 71 209 54 103 176 262 265 34 21 10 37 26 24 80 24 109 258 69 22 165 202 154 171 277 155 297 1 229 172 102 86 70 83 29 29 67 107 42 40 67 78 109 287 2 76 230 298 33 160 246 278 281 21 75 104 66 260 78 145 120 289 247 38 145 55 222 103 241 28 211 270 226 131 48 57 202 190 4 263 25 199 149 251 234 157 212 30 184 259 195 254 239 77 48 28 269 136 33 167 146 210 180 128 43 137 65 192 220 85 281 286 242 118 102 57 137 123 58 27 121 78 138 220 56 47 232 177 22 129 68 168 74 7 275 240 174 46 142 79 235 218 170 158 30 155 25 235 283 237 198 59 59 52 246 13 20 214 39 6 214 282 46 106 246 249 47 268 10 8 93 271 15 22 136 269 100 200 275 42 ^'}},
- {OUT=>'8D500C9CFDE0288530A2106B70BED39326C52C3C'}],
- ['218', {IN=> {f=> '644 0 6 29 104 280 81 240 230 212 156 114 31 69 146 96 66 27 63 134 52 68 244 186 88 139 162 111 53 81 64 162 287 30 6 190 59 128 131 235 246 101 211 93 249 205 222 250 57 87 76 206 285 115 185 25 274 34 264 66 253 176 211 219 181 69 5 51 216 77 58 241 243 32 223 11 224 215 225 102 113 3 136 93 123 273 56 74 165 230 86 224 39 157 268 289 197 295 83 105 217 14 293 203 5 127 103 193 37 116 122 260 236 7 268 37 242 145 33 110 201 125 238 13 89 293 27 239 202 279 194 50 27 189 157 127 153 45 43 78 121 106 69 272 119 141 203 166 82 42 50 188 53 5 177 148 152 234 42 100 22 205 46 182 132 263 179 63 275 97 129 194 191 72 250 107 132 137 247 290 99 296 272 295 118 37 81 190 94 60 206 109 47 260 110 75 193 163 139 288 43 128 257 258 19 277 12 252 148 278 166 117 276 125 62 247 164 76 221 96 101 261 138 8 246 227 143 168 32 97 79 149 39 31 245 123 21 192 135 206 235 70 33 286 269 50 62 121 232 1 45 295 244 60 156 64 288 8 105 91 82 218 27 113 270 204 18 249 79 199 84 183 286 128 5 1 171 227 17 236 259 223 187 292 140 49 301 256 104 154 149 165 54 18 299 215 49 125 188 179 28 252 22 255 91 32 82 268 163 265 220 209 2 58 115 9 259 47 210 65 14 243 158 155 86 98 16 82 92 95 38 94 10 161 48 97 255 217 266 248 142 266 122 119 191 248 16 32 47 34 88 89 26 50 12 76 80 51 40 9 133 24 44 191 122 84 259 173 142 140 99 44 15 54 159 42 276 301 130 172 79 275 62 197 119 15 180 91 208 150 193 289 71 61 219 231 114 157 1 221 272 169 186 264 207 87 237 161 224 165 180 41 72 89 152 284 87 252 274 210 241 293 77 284 52 229 199 34 138 134 178 17 60 282 298 61 93 299 39 283 200 62 71 187 242 4 290 49 251 120 43 113 144 181 245 73 278 40 185 201 251 261 88 265 94 186 138 184 223 61 58 65 175 107 6 205 81 114 207 137 71 11 174 170 73 152 108 110 25 148 11 98 283 150 17 221 146 237 111 88 13 139 36 179 189 207 263 3 86 48 273 21 51 90 54 285 65 49 175 233 29 280 257 6 64 36 53 257 132 87 111 229 58 291 288 184 173 16 208 24 170 214 197 169 60 30 41 213 134 2 234 92 145 83 155 51 166 243 208 200 238 48 21 66 203 40 59 178 176 85 196 106 195 204 194 15 4 23 283 24 296 146 61 43 254 189 31 195 78 262 151 130 222 124 34 12 202 103 126 216 112 292 14 117 226 80 1 297 159 183 19 151 80 177 274 84 7 218 294 181 104 28 126 90 180 217 140 225 67 90 230 262 292 266 72 74 39 298 11 48 147 300 278 216 253 265 ^'}},
- {OUT=>'F3D4D139EDFC24596377BC97A96FB7621F27FFC7'}],
- ['219', {IN=> {f=> '638 1 75 65 227 58 108 240 267 267 185 71 13 95 212 71 235 285 154 238 48 144 14 288 221 228 43 165 6 283 280 172 125 16 121 145 122 297 74 36 227 17 51 211 4 64 157 1 38 224 254 280 131 68 291 162 161 94 142 14 165 269 141 251 298 141 292 51 170 251 35 198 17 10 154 279 105 173 192 272 249 79 18 36 268 74 80 170 292 92 227 280 213 182 45 80 129 150 63 49 296 185 112 70 124 171 55 263 51 129 109 6 20 33 201 84 149 215 97 168 32 216 27 234 133 287 110 114 248 190 9 183 156 194 228 125 279 64 116 163 9 265 270 252 61 8 116 204 66 294 229 236 89 163 91 160 24 85 29 149 256 154 197 210 115 55 108 158 68 209 48 103 176 259 262 25 15 10 31 23 18 77 21 103 258 69 16 162 202 151 171 277 149 297 296 226 169 99 83 70 83 29 26 67 101 39 31 64 75 106 284 2 67 224 295 33 160 246 275 275 12 69 98 57 260 69 139 114 289 247 38 142 55 222 298 100 235 22 211 267 226 128 42 54 196 184 1 260 25 196 143 248 231 151 212 30 178 256 195 254 239 74 39 28 263 133 24 167 143 207 174 122 34 131 65 186 220 79 281 283 239 115 96 57 137 117 52 18 118 78 132 217 53 44 232 177 22 129 68 168 295 74 302 275 234 174 40 139 73 232 218 164 158 27 152 19 229 277 231 192 50 59 52 240 4 20 214 30 301 208 282 46 106 243 249 38 265 7 5 90 271 15 13 136 269 100 194 269 182 4 23 100 276 79 240 226 210 156 112 29 67 142 96 60 23 59 134 50 62 242 182 86 137 158 109 47 77 62 160 287 28 190 53 126 127 235 244 97 209 89 245 205 218 246 53 85 70 206 285 113 181 19 270 30 260 66 253 172 207 215 179 63 5 49 214 71 54 237 241 30 219 9 224 213 223 102 109 3 134 91 119 271 56 70 165 228 84 222 35 157 264 285 195 295 77 103 217 12 291 203 303 123 101 302 193 35 116 122 256 236 7 268 33 242 141 29 108 199 125 238 7 87 289 25 237 200 277 190 50 21 185 153 127 153 45 39 72 121 104 65 268 115 137 199 166 76 36 46 188 53 3 175 148 148 230 40 98 16 203 40 180 130 261 177 63 271 97 127 194 187 68 250 105 132 135 243 290 95 294 270 293 118 37 75 188 94 60 204 107 47 258 110 73 191 161 135 284 43 124 253 254 17 273 12 250 146 274 164 117 274 123 60 245 164 76 217 94 101 261 136 6 242 223 143 166 32 93 75 147 37 31 245 123 19 188 135 202 233 66 31 286 265 48 62 119 230 303 41 291 244 56 152 60 286 2 105 91 78 214 27 111 266 200 14 247 79 199 84 181 282 128 1 301 167 225 17 232 259 221 187 290 136 47 299 252 102 150 145 163 157 ^'}},
- {OUT=>'5509BAFFAC6D507860CEFC5AB5832CB63CD4B687'}],
- ['220', {IN=> {f=> '653 0 18 299 207 41 117 184 179 16 252 18 255 83 20 82 264 155 257 216 201 296 54 107 303 255 39 202 61 2 235 154 151 86 94 16 78 84 91 30 86 6 153 36 93 251 209 262 240 134 266 114 119 187 244 8 24 35 22 76 81 26 38 8 68 80 43 32 1 129 24 44 191 118 72 251 165 138 140 99 40 11 54 151 42 276 301 122 164 67 271 50 189 115 7 180 87 200 146 185 285 67 53 219 231 106 153 1 217 272 165 182 264 199 75 237 157 216 157 172 33 72 77 152 280 87 244 270 206 241 293 77 284 40 229 191 30 130 130 174 298 13 48 274 298 57 93 295 27 283 196 54 63 179 234 4 282 37 243 120 31 113 136 181 237 69 274 36 181 193 251 253 80 261 90 186 138 184 223 61 46 53 175 107 6 197 81 114 207 129 59 305 170 162 73 148 100 102 17 140 11 98 275 142 5 221 146 229 103 88 9 139 28 171 189 203 255 301 78 40 273 9 51 86 50 277 57 49 171 233 21 276 257 304 64 32 45 253 124 79 111 221 58 287 288 176 169 12 204 20 170 206 197 169 56 22 41 205 126 300 234 92 145 79 155 39 158 243 208 200 234 48 21 58 199 40 55 178 172 77 196 98 187 200 190 3 23 279 16 296 142 49 39 246 185 23 191 74 254 151 130 218 116 34 4 194 95 122 208 112 292 6 109 218 72 295 289 159 175 19 143 76 169 274 80 305 214 286 173 104 20 126 82 176 213 136 225 55 90 230 262 284 258 60 70 39 290 3 44 147 300 278 216 245 35 75 63 223 52 104 238 263 267 185 67 9 95 210 71 233 283 152 236 42 144 8 286 217 228 41 161 2 279 278 172 121 14 119 143 120 293 68 36 225 11 45 209 58 155 301 34 222 252 280 131 62 291 162 161 90 142 14 163 267 141 249 294 139 290 47 168 247 29 198 13 4 150 277 101 173 192 268 247 73 16 34 266 70 74 166 288 88 227 276 213 180 43 76 125 150 59 43 294 183 108 68 124 167 53 263 49 127 109 14 31 201 78 302 149 215 95 166 26 212 21 232 133 283 108 112 248 188 9 183 152 192 224 123 279 60 114 163 5 265 270 250 59 8 112 204 64 294 227 232 89 159 87 156 22 85 23 147 256 154 195 210 115 51 304 108 156 66 209 44 103 176 257 260 19 11 10 27 21 14 75 19 99 258 69 12 160 202 149 171 277 145 297 292 224 167 97 81 70 83 29 24 67 97 37 25 62 73 104 282 2 61 220 293 33 160 246 273 271 6 65 94 51 260 63 135 110 289 247 38 140 55 222 296 98 231 18 211 265 226 126 38 52 192 180 305 258 25 194 139 246 229 147 212 30 174 254 195 254 239 72 33 28 259 131 18 167 141 205 170 118 28 127 65 182 220 75 281 281 237 113 92 57 137 113 48 12 116 78 128 215 51 42 232 177 22 129 68 168 291 161 ^'}},
- {OUT=>'0C0AEA0C2FD7A620C77866B1A177481E26B4F592'}],
- ['221', {IN=> {f=> '653 0 296 275 228 174 34 136 67 229 218 158 158 24 149 13 223 271 225 186 41 59 52 234 302 20 214 21 295 202 282 46 106 240 249 29 262 4 2 87 271 15 4 136 269 100 188 263 182 1 14 94 270 76 240 220 207 156 109 26 64 136 96 51 17 53 134 47 53 239 176 83 134 152 106 38 71 59 157 287 25 298 190 44 123 121 235 241 91 206 83 239 205 212 240 47 82 61 206 285 110 175 10 264 24 254 66 253 166 201 209 176 54 5 46 211 62 48 231 238 27 213 6 224 210 220 102 103 3 131 88 113 268 56 64 165 225 81 219 29 157 258 279 192 295 68 100 217 9 288 203 297 117 98 302 193 32 116 122 250 236 7 268 27 242 135 23 105 196 125 238 305 84 283 22 234 197 274 184 50 12 179 147 127 153 45 33 63 121 101 59 262 109 131 193 166 67 27 40 188 53 172 148 142 224 37 95 7 200 31 177 127 258 174 63 265 97 124 194 181 62 250 102 132 132 237 290 89 291 267 290 118 37 66 185 94 60 201 104 47 255 110 70 188 158 129 278 43 118 247 248 14 267 12 247 143 268 161 117 271 120 57 242 164 76 211 91 101 261 133 3 236 217 143 163 32 87 69 144 34 31 245 123 16 182 135 196 230 60 28 286 259 45 62 116 227 303 35 285 244 50 146 54 283 300 105 91 72 208 27 108 260 194 8 244 79 199 84 178 276 128 302 298 161 222 17 226 259 218 187 287 130 44 296 246 99 144 139 160 44 18 299 205 39 115 183 179 13 252 17 255 81 17 82 263 153 255 215 199 294 53 105 301 254 37 200 60 306 233 153 150 86 93 16 77 82 90 28 84 5 151 33 92 250 207 261 238 132 266 112 119 186 243 6 22 32 19 73 79 26 35 7 66 80 41 30 306 128 24 44 191 117 69 249 163 137 140 99 39 10 54 149 42 276 301 120 162 64 270 47 187 114 5 180 86 198 145 183 284 66 51 219 231 104 152 1 216 272 164 181 264 197 72 237 156 214 155 170 31 72 74 152 279 87 242 269 205 241 293 77 284 37 229 189 29 128 129 173 297 12 45 272 298 56 93 294 24 283 195 52 61 177 232 4 280 34 241 120 28 113 134 181 235 68 273 35 180 191 251 251 78 260 89 186 138 184 223 61 43 50 175 107 6 195 81 114 207 127 56 303 169 160 73 147 98 100 15 138 11 98 273 140 2 221 146 227 101 88 8 139 26 169 189 202 253 300 76 38 273 6 51 85 49 275 55 49 170 233 19 275 257 303 64 31 43 252 122 77 111 219 58 286 288 174 168 11 203 19 170 204 197 169 55 20 41 203 124 299 234 92 145 78 155 36 156 243 208 200 233 48 21 56 198 40 54 178 171 75 196 96 185 199 189 306 23 278 14 296 141 46 38 244 184 21 190 73 252 151 130 217 114 34 2 192 93 121 206 112 292 4 107 216 70 293 112 ^'}},
- {OUT=>'149176007FEE58A591E3F00F8DB658B605F8390C'}],
- ['222', {IN=> {f=> '646 1 159 169 19 137 73 163 274 77 302 211 280 167 104 14 126 76 173 210 133 225 46 90 230 262 278 252 51 67 39 284 306 41 147 300 278 216 239 35 75 60 217 43 98 235 257 267 185 61 3 95 207 71 230 280 149 233 33 144 308 283 211 228 38 155 305 273 275 172 115 11 116 140 117 287 59 36 222 2 36 206 303 49 152 295 28 219 249 280 131 53 291 162 161 84 142 14 160 264 141 246 288 136 287 41 165 241 20 198 7 304 144 274 95 173 192 262 244 64 13 31 263 64 65 160 282 82 227 270 213 177 40 70 119 150 53 34 291 180 102 65 124 161 50 263 46 124 109 300 5 28 201 69 299 149 215 92 163 17 206 12 229 133 277 105 109 248 185 9 183 146 189 218 120 279 54 111 163 308 265 270 247 56 8 106 204 61 294 224 226 89 153 81 150 19 85 14 144 256 154 192 210 115 45 304 108 153 63 209 38 103 176 254 257 10 5 10 21 18 8 72 16 93 258 69 6 157 202 146 171 277 139 297 286 221 164 94 78 70 83 29 21 67 91 34 16 59 70 101 279 2 52 214 290 33 160 246 270 265 306 59 88 42 260 54 129 104 289 247 38 137 55 222 293 95 225 12 211 262 226 123 32 49 186 174 305 255 25 191 133 243 226 141 212 30 168 251 195 254 239 69 24 28 253 128 9 167 138 202 164 112 19 121 65 176 220 69 281 278 234 110 86 57 137 107 42 3 113 78 122 212 48 39 232 177 22 129 68 168 285 74 292 275 224 174 30 134 63 227 218 154 158 22 147 9 219 267 221 182 35 59 52 230 298 20 214 15 291 198 282 46 106 238 249 23 260 2 85 271 15 307 136 269 100 184 259 182 308 8 90 266 74 240 216 205 156 107 24 62 132 96 45 13 49 134 45 47 237 172 81 132 148 104 32 67 57 155 287 23 294 190 38 121 117 235 239 87 204 79 235 205 208 236 43 80 55 206 285 108 171 4 260 20 250 66 253 162 197 205 174 48 5 44 209 56 44 227 236 25 209 4 224 208 218 102 99 3 129 86 109 266 56 60 165 223 79 217 25 157 254 275 190 295 62 98 217 7 286 203 293 113 96 302 193 30 116 122 246 236 7 268 23 242 131 19 103 194 125 238 301 82 279 20 232 195 272 180 50 6 175 143 127 153 45 29 57 121 99 55 258 105 127 189 166 61 21 36 188 53 307 170 148 138 220 35 93 1 198 25 175 125 256 172 63 261 97 122 194 177 58 250 100 132 130 233 290 85 289 265 288 118 37 60 183 94 60 199 102 47 253 110 68 186 156 125 274 43 114 243 244 12 263 12 245 141 264 159 117 269 118 55 240 164 76 207 89 101 261 131 1 232 213 143 161 32 83 65 142 32 31 245 123 14 178 135 192 228 56 26 286 255 43 62 114 225 303 31 281 244 46 142 50 281 296 105 91 238 ^'}},
- {OUT=>'17C0D7B0256159F3626786FFDB20237AE154FA84'}],
- ['223', {IN=> {f=> '647 0 200 27 104 252 186 240 79 199 84 174 268 128 298 294 153 218 17 218 259 214 187 283 122 40 292 238 95 136 131 156 36 18 299 197 31 107 179 179 1 252 13 255 73 5 82 259 145 247 211 191 286 49 97 293 250 29 192 56 298 225 149 146 86 89 16 73 74 86 20 76 1 143 21 88 246 199 257 230 124 266 104 119 182 239 309 14 20 7 61 71 26 23 3 58 80 33 22 302 124 24 44 191 113 57 241 155 133 140 99 35 6 54 141 42 276 301 112 154 52 266 35 179 110 308 180 82 190 141 175 280 62 43 219 231 96 148 1 212 272 160 177 264 189 60 237 152 206 147 162 23 72 62 152 275 87 234 265 201 241 293 77 284 25 229 181 25 120 125 169 293 8 33 264 298 52 93 290 12 283 191 44 53 169 224 4 272 22 233 120 16 113 126 181 227 64 269 31 176 183 251 243 70 256 85 186 138 184 223 61 31 38 175 107 6 187 81 114 207 119 44 295 165 152 73 143 90 92 7 130 11 98 265 132 301 221 146 219 93 88 4 139 18 161 189 198 245 296 68 30 273 305 51 81 45 267 47 49 166 233 11 271 257 299 64 27 35 248 114 69 111 211 58 282 288 166 164 7 199 15 170 196 197 169 51 12 41 195 116 295 234 92 145 74 155 24 148 243 208 200 229 48 21 48 194 40 50 178 167 67 196 88 177 195 185 299 306 23 274 6 296 137 34 34 236 180 13 186 69 244 151 130 213 106 34 305 184 85 117 198 112 292 307 99 208 62 285 279 159 165 19 133 71 159 274 75 300 209 276 163 104 10 126 72 171 208 131 225 40 90 230 262 274 248 45 65 39 280 304 39 147 300 278 216 235 35 75 58 213 37 94 233 253 267 185 57 310 95 205 71 228 278 147 231 27 144 304 281 207 228 36 151 303 269 273 172 111 9 114 138 115 283 53 36 220 307 30 204 301 43 150 291 24 217 247 280 131 47 291 162 161 80 142 14 158 262 141 244 284 134 285 37 163 237 14 198 3 300 140 272 91 173 192 258 242 58 11 29 261 60 59 156 278 78 227 266 213 175 38 66 115 150 49 28 289 178 98 63 124 157 48 263 44 122 109 296 310 26 201 63 297 149 215 90 161 11 202 6 227 133 273 103 107 248 183 9 183 142 187 214 118 279 50 109 163 306 265 270 245 54 8 102 204 59 294 222 222 89 149 77 146 17 85 8 142 256 154 190 210 115 41 304 108 151 61 209 34 103 176 252 255 4 1 10 17 16 4 70 14 89 258 69 2 155 202 144 171 277 135 297 282 219 162 92 76 70 83 29 19 67 87 32 10 57 68 99 277 2 46 210 288 33 160 246 268 261 302 55 84 36 260 48 125 100 289 247 38 135 55 222 291 93 221 8 211 260 226 121 28 47 182 170 305 253 25 189 129 241 224 137 212 30 164 249 195 254 239 86 ^'}},
- {OUT=>'741A58618ABEB1D983D67AFDCBC49AA397A3B8E0'}],
- ['224', {IN=> {f=> '665 0 15 28 247 125 167 135 199 158 106 10 115 65 170 220 63 281 275 231 107 80 57 137 101 36 306 110 78 116 209 45 36 232 177 22 129 68 168 279 74 286 275 218 174 24 131 57 224 218 148 158 19 144 3 213 261 215 176 26 59 52 224 292 20 214 6 285 192 282 46 106 235 249 14 257 311 309 82 271 15 301 136 269 100 178 253 182 308 311 84 260 71 240 210 202 156 104 21 59 126 96 36 7 43 134 42 38 234 166 78 129 142 101 23 61 54 152 287 20 288 190 29 118 111 235 236 81 201 73 229 205 202 230 37 77 46 206 285 105 165 307 254 14 244 66 253 156 191 199 171 39 5 41 206 47 38 221 233 22 203 1 224 205 215 102 93 3 126 83 103 263 56 54 165 220 76 214 19 157 248 269 187 295 53 95 217 4 283 203 287 107 93 302 193 27 116 122 240 236 7 268 17 242 125 13 100 191 125 238 295 79 273 17 229 192 269 174 50 309 169 137 127 153 45 23 48 121 96 49 252 99 121 183 166 52 12 30 188 53 307 167 148 132 214 32 90 304 195 16 172 122 253 169 63 255 97 119 194 171 52 250 97 132 127 227 290 79 286 262 285 118 37 51 180 94 60 196 99 47 250 110 65 183 153 119 268 43 108 237 238 9 257 12 242 138 258 156 117 266 115 52 237 164 76 201 86 101 261 128 310 226 207 143 158 32 77 59 139 29 31 245 123 11 172 135 186 225 50 23 286 249 40 62 111 222 303 25 275 244 40 136 44 278 290 105 91 62 198 27 103 250 184 310 239 79 199 84 173 266 128 297 293 151 217 17 216 259 213 187 282 120 39 291 236 94 134 129 155 34 18 299 195 29 105 178 179 310 252 12 255 71 2 82 258 143 245 210 189 284 48 95 291 249 27 190 55 296 223 148 145 86 88 16 72 72 85 18 74 141 18 87 245 197 256 228 122 266 102 119 181 238 308 12 17 4 58 69 26 20 2 56 80 31 20 301 123 24 44 191 112 54 239 153 132 140 99 34 5 54 139 42 276 301 110 152 49 265 32 177 109 307 180 81 188 140 173 279 61 41 219 231 94 147 1 211 272 159 176 264 187 57 237 151 204 145 160 21 72 59 152 274 87 232 264 200 241 293 77 284 22 229 179 24 118 124 168 292 7 30 262 298 51 93 289 9 283 190 42 51 167 222 4 270 19 231 120 13 113 124 181 225 63 268 30 175 181 251 241 68 255 84 186 138 184 223 61 28 35 175 107 6 185 81 114 207 117 41 293 164 150 73 142 88 90 5 128 11 98 263 130 299 221 146 217 91 88 3 139 16 159 189 197 243 295 66 28 273 303 51 80 44 265 45 49 165 233 9 270 257 298 64 26 33 247 112 67 111 209 58 281 288 164 163 6 198 14 170 194 197 169 50 10 41 193 114 294 234 92 145 73 155 21 146 243 208 200 228 48 21 46 193 40 49 178 166 65 196 86 175 194 184 297 306 23 273 206 ^'}},
- {OUT=>'B738D6B3409EB9ED2F1719B84D13F7C36169CDEC'}],
- ['225', {IN=> {f=> '641 0 296 134 25 31 230 177 7 183 66 238 151 130 210 100 34 302 178 79 114 192 112 292 304 93 202 56 279 273 159 159 19 127 68 153 274 72 297 206 270 157 104 4 126 66 168 205 128 225 31 90 230 262 268 242 36 62 39 274 301 36 147 300 278 216 229 35 75 55 207 28 88 230 247 267 185 51 307 95 202 71 225 275 144 228 18 144 298 278 201 228 33 145 300 263 270 172 105 6 111 135 112 277 44 36 217 301 21 201 298 34 147 285 18 214 244 280 131 38 291 162 161 74 142 14 155 259 141 241 278 131 282 31 160 231 5 198 311 294 134 269 85 173 192 252 239 49 8 26 258 54 50 150 272 72 227 260 213 172 35 60 109 150 43 19 286 175 92 60 124 151 45 263 41 119 109 290 304 23 201 54 294 149 215 87 158 2 196 311 224 133 267 100 104 248 180 9 183 136 184 208 115 279 44 106 163 303 265 270 242 51 8 96 204 56 294 219 216 89 143 71 140 14 85 313 139 256 154 187 210 115 35 304 108 148 58 209 28 103 176 249 252 309 309 10 11 13 312 67 11 83 258 69 310 152 202 141 171 277 129 297 276 216 159 89 73 70 83 29 16 67 81 29 1 54 65 96 274 2 37 204 285 33 160 246 265 255 296 49 78 27 260 39 119 94 289 247 38 132 55 222 288 90 215 2 211 257 226 118 22 44 176 164 305 250 25 186 123 238 221 131 212 30 158 246 195 254 239 64 9 28 243 123 308 167 133 197 154 102 4 111 65 166 220 59 281 273 229 105 76 57 137 97 32 302 108 78 112 207 43 34 232 177 22 129 68 168 275 74 282 275 214 174 20 129 53 222 218 144 158 17 142 313 209 257 211 172 20 59 52 220 288 20 214 281 188 282 46 106 233 249 8 255 311 309 80 271 15 297 136 269 100 174 249 182 308 307 80 256 69 240 206 200 156 102 19 57 122 96 30 3 39 134 40 32 232 162 76 127 138 99 17 57 52 150 287 18 284 190 23 116 107 235 234 77 199 69 225 205 198 226 33 75 40 206 285 103 161 303 250 10 240 66 253 152 187 195 169 33 5 39 204 41 34 217 231 20 199 313 224 203 213 102 89 3 124 81 99 261 56 50 165 218 74 212 15 157 244 265 185 295 47 93 217 2 281 203 283 103 91 302 193 25 116 122 236 236 7 268 13 242 121 9 98 189 125 238 291 77 269 15 227 190 267 170 50 305 165 133 127 153 45 19 42 121 94 45 248 95 117 179 166 46 6 26 188 53 307 165 148 128 210 30 88 300 193 10 170 120 251 167 63 251 97 117 194 167 48 250 95 132 125 223 290 75 284 260 283 118 37 45 178 94 60 194 97 47 248 110 63 181 151 115 264 43 104 233 234 7 253 12 240 136 254 154 117 264 113 50 235 164 76 197 84 101 261 126 310 222 203 143 276 ^'}},
- {OUT=>'3D33DE31F64055D3B128AC9A6AA3F92DFD4F5330'}],
- ['226', {IN=> {f=> '656 0 32 69 51 135 25 31 245 123 7 164 135 178 221 42 19 286 241 36 62 107 218 303 17 267 244 32 128 36 274 282 105 91 54 190 27 99 242 176 306 235 79 199 84 169 258 128 293 289 143 213 17 208 259 209 187 278 112 35 287 228 90 126 121 151 26 18 299 187 21 97 174 179 302 252 8 255 63 306 82 254 135 237 206 181 276 44 87 283 245 19 182 51 288 215 144 141 86 84 16 68 64 81 10 66 312 133 6 83 241 189 252 220 114 266 94 119 177 234 304 4 5 308 46 61 26 8 314 48 80 23 12 297 119 24 44 191 108 42 231 145 128 140 99 30 1 54 131 42 276 301 102 144 37 261 20 169 105 303 180 77 180 136 165 275 57 33 219 231 86 143 1 207 272 155 172 264 179 45 237 147 196 137 152 13 72 47 152 270 87 224 260 196 241 293 77 284 10 229 171 20 110 120 164 288 3 18 254 298 47 93 285 313 283 186 34 43 159 214 4 262 7 223 120 1 113 116 181 217 59 264 26 171 173 251 233 60 251 80 186 138 184 223 61 16 23 175 107 6 177 81 114 207 109 29 285 160 142 73 138 80 82 313 120 11 98 255 122 291 221 146 209 83 88 315 139 8 151 189 193 235 291 58 20 273 295 51 76 40 257 37 49 161 233 1 266 257 294 64 22 25 243 104 59 111 201 58 277 288 156 159 2 194 10 170 186 197 169 46 2 41 185 106 290 234 92 145 69 155 9 138 243 208 200 224 48 21 38 189 40 45 178 162 57 196 78 167 190 180 289 306 23 269 312 296 132 19 29 226 175 3 181 64 234 151 130 208 96 34 300 174 75 112 188 112 292 302 89 198 52 275 269 159 155 19 123 66 149 274 70 295 204 266 153 104 126 62 166 203 126 225 25 90 230 262 264 238 30 60 39 270 299 34 147 300 278 216 225 35 75 53 203 22 84 228 243 267 185 47 305 95 200 71 223 273 142 226 12 144 294 276 197 228 31 141 298 259 268 172 101 4 109 133 110 273 38 36 215 297 15 199 296 28 145 281 14 212 242 280 131 32 291 162 161 70 142 14 153 257 141 239 274 129 280 27 158 227 315 198 309 290 130 267 81 173 192 248 237 43 6 24 256 50 44 146 268 68 227 256 213 170 33 56 105 150 39 13 284 173 88 58 124 147 43 263 39 117 109 286 300 21 201 48 292 149 215 85 156 312 192 307 222 133 263 98 102 248 178 9 183 132 182 204 113 279 40 104 163 301 265 270 240 49 8 92 204 54 294 217 212 89 139 67 136 12 85 309 137 256 154 185 210 115 31 304 108 146 56 209 24 103 176 247 250 305 307 10 7 11 310 65 9 79 258 69 308 150 202 139 171 277 125 297 272 214 157 87 71 70 83 29 14 67 77 27 311 52 63 94 272 2 31 200 283 33 160 246 263 251 292 45 74 21 260 33 115 90 289 247 38 130 55 222 286 88 211 227 ^'}},
- {OUT=>'B6925F4DF94949B8844C867428BA3DEDF4CF2B51'}],
- ['227', {IN=> {f=> '668 0 211 254 226 115 16 41 170 158 305 247 25 183 117 235 218 125 212 30 152 243 195 254 239 61 28 237 120 302 167 130 194 148 96 312 105 65 160 220 53 281 270 226 102 70 57 137 91 26 296 105 78 106 204 40 31 232 177 22 129 68 168 269 74 276 275 208 174 14 126 47 219 218 138 158 14 139 310 203 251 205 166 11 59 52 214 282 20 214 308 275 182 282 46 106 230 249 316 252 311 309 77 271 15 291 136 269 100 168 243 182 308 301 74 250 66 240 200 197 156 99 16 54 116 96 21 314 33 134 37 23 229 156 73 124 132 96 8 51 49 147 287 15 278 190 14 113 101 235 231 71 196 63 219 205 192 220 27 72 31 206 285 100 155 297 244 4 234 66 253 146 181 189 166 24 5 36 201 32 28 211 228 17 193 313 224 200 210 102 83 3 121 78 93 258 56 44 165 215 71 209 9 157 238 259 182 295 38 90 217 316 278 203 277 97 88 302 193 22 116 122 230 236 7 268 7 242 115 3 95 186 125 238 285 74 263 12 224 187 264 164 50 299 159 127 127 153 45 13 33 121 91 39 242 89 111 173 166 37 314 20 188 53 307 162 148 122 204 27 85 294 190 1 167 117 248 164 63 245 97 114 194 161 42 250 92 132 122 217 290 69 281 257 280 118 37 36 175 94 60 191 94 47 245 110 60 178 148 109 258 43 98 227 228 4 247 12 237 133 248 151 117 261 110 47 232 164 76 191 81 101 261 123 310 216 197 143 153 32 67 49 134 24 31 245 123 6 162 135 176 220 40 18 286 239 35 62 106 217 303 15 265 244 30 126 34 273 280 105 91 52 188 27 98 240 174 305 234 79 199 84 168 256 128 292 288 141 212 17 206 259 208 187 277 110 34 286 226 89 124 119 150 24 18 299 185 19 95 173 179 300 252 7 255 61 304 82 253 133 235 205 179 274 43 85 281 244 17 180 50 286 213 143 140 86 83 16 67 62 80 8 64 312 131 3 82 240 187 251 218 112 266 92 119 176 233 303 2 2 306 43 59 26 5 314 46 80 21 10 296 118 24 44 191 107 39 229 143 127 140 99 29 54 129 42 276 301 100 142 34 260 17 167 104 302 180 76 178 135 163 274 56 31 219 231 84 142 1 206 272 154 171 264 177 42 237 146 194 135 150 11 72 44 152 269 87 222 259 195 241 293 77 284 7 229 169 19 108 119 163 287 2 15 252 298 46 93 284 311 283 185 32 41 157 212 4 260 4 221 120 315 113 114 181 215 58 263 25 170 171 251 231 58 250 79 186 138 184 223 61 13 20 175 107 6 175 81 114 207 107 26 283 159 140 73 137 78 80 312 118 11 98 253 120 289 221 146 207 81 88 315 139 6 149 189 192 233 290 56 18 273 293 51 75 39 255 35 49 160 233 316 265 257 293 64 21 23 242 102 57 111 199 58 276 288 154 158 1 193 9 170 184 197 169 45 41 183 104 289 234 92 145 68 155 6 136 243 208 203 ^'}},
- {OUT=>'CF5E7256292ABEC431D8E8B9CBEAF22AF072377E'}],
- ['228', {IN=> {f=> '656 0 221 48 21 32 186 40 42 178 159 51 196 72 161 187 177 283 306 23 266 309 296 129 10 26 220 172 316 178 61 228 151 130 205 90 34 297 168 69 109 182 112 292 299 83 192 46 269 263 159 149 19 117 63 143 274 67 292 201 260 147 104 313 126 56 163 200 123 225 16 90 230 262 258 232 21 57 39 264 296 31 147 300 278 216 219 35 75 50 197 13 78 225 237 267 185 41 302 95 197 71 220 270 139 223 3 144 288 273 191 228 28 135 295 253 265 172 95 1 106 130 107 267 29 36 212 291 6 196 293 19 142 275 8 209 239 280 131 23 291 162 161 64 142 14 150 254 141 236 268 126 277 21 155 221 309 198 306 284 124 264 75 173 192 242 234 34 3 21 253 44 35 140 262 62 227 250 213 167 30 50 99 150 33 4 281 170 82 55 124 141 40 263 36 114 109 280 294 18 201 39 289 149 215 82 153 306 186 301 219 133 257 95 99 248 175 9 183 126 179 198 110 279 34 101 163 298 265 270 237 46 8 86 204 51 294 214 206 89 133 61 130 9 85 303 134 256 154 182 210 115 25 304 108 143 53 209 18 103 176 244 247 299 304 10 1 8 307 62 6 73 258 69 305 147 202 136 171 277 119 297 266 211 154 84 68 70 83 29 11 67 71 24 305 49 60 91 269 2 22 194 280 33 160 246 260 245 286 39 68 12 260 24 109 84 289 247 38 127 55 222 283 85 205 311 211 252 226 113 12 39 166 154 305 245 25 181 113 233 216 121 212 30 148 241 195 254 239 59 313 28 233 118 298 167 128 192 144 92 308 101 65 156 220 49 281 268 224 100 66 57 137 87 22 292 103 78 102 202 38 29 232 177 22 129 68 168 265 74 272 275 204 174 10 124 43 217 218 134 158 12 137 308 199 247 201 162 5 59 52 210 278 20 214 304 271 178 282 46 106 228 249 312 250 311 309 75 271 15 287 136 269 100 164 239 182 308 297 70 246 64 240 196 195 156 97 14 52 112 96 15 312 29 134 35 17 227 152 71 122 128 94 2 47 47 145 287 13 274 190 8 111 97 235 229 67 194 59 215 205 188 216 23 70 25 206 285 98 151 293 240 230 66 253 142 177 185 164 18 5 34 199 26 24 207 226 15 189 313 224 198 208 102 79 3 119 76 89 256 56 40 165 213 69 207 5 157 234 255 180 295 32 88 217 316 276 203 273 93 86 302 193 20 116 122 226 236 7 268 3 242 111 318 93 184 125 238 281 72 259 10 222 185 262 160 50 295 155 123 127 153 45 9 27 121 89 35 238 85 107 169 166 31 310 16 188 53 307 160 148 118 200 25 83 290 188 314 165 115 246 162 63 241 97 112 194 157 38 250 90 132 120 213 290 65 279 255 278 118 37 30 173 94 60 189 92 47 243 110 58 176 146 105 254 43 94 223 224 2 243 12 235 131 244 149 117 259 108 45 230 164 76 187 79 101 261 109 ^'}},
- {OUT=>'975DCE94902923977F129C0E4ACF40AD28DDB9AA'}],
- ['229', {IN=> {f=> '656 0 310 208 189 143 149 32 59 41 130 20 31 245 123 2 154 135 168 216 32 14 286 231 31 62 102 213 303 7 257 244 22 118 26 269 272 105 91 44 180 27 94 232 166 301 230 79 199 84 164 248 128 288 284 133 208 17 198 259 204 187 273 102 30 282 218 85 116 111 146 16 18 299 177 11 87 169 179 292 252 3 255 53 296 82 249 125 227 201 171 266 39 77 273 240 9 172 46 278 205 139 136 86 79 16 63 54 76 56 312 123 312 78 236 179 247 210 104 266 84 119 172 229 299 315 311 298 31 51 26 314 314 38 80 13 2 292 114 24 44 191 103 27 221 135 123 140 99 25 317 54 121 42 276 301 92 134 22 256 5 159 100 298 180 72 170 131 155 270 52 23 219 231 76 138 1 202 272 150 167 264 169 30 237 142 186 127 142 3 72 32 152 265 87 214 255 191 241 293 77 284 316 229 161 15 100 115 159 283 319 3 244 298 42 93 280 303 283 181 24 33 149 204 4 252 313 213 120 307 113 106 181 207 54 259 21 166 163 251 223 50 246 75 186 138 184 223 61 1 8 175 107 6 167 81 114 207 99 14 275 155 132 73 133 70 72 308 110 11 98 245 112 281 221 146 199 73 88 315 139 319 141 189 188 225 286 48 10 273 285 51 71 35 247 27 49 156 233 312 261 257 289 64 17 15 238 94 49 111 191 58 272 288 146 154 318 189 5 170 176 197 169 41 313 41 175 96 285 234 92 145 64 155 315 128 243 208 200 219 48 21 28 184 40 40 178 157 47 196 68 157 185 175 279 306 23 264 307 296 127 4 24 216 170 314 176 59 224 151 130 203 86 34 295 164 65 107 178 112 292 297 79 188 42 265 259 159 145 19 113 61 139 274 65 290 199 256 143 104 311 126 52 161 198 121 225 10 90 230 262 254 228 15 55 39 260 294 29 147 300 278 216 215 35 75 48 193 7 74 223 233 267 185 37 300 95 195 71 218 268 137 221 318 144 284 271 187 228 26 131 293 249 263 172 91 320 104 128 105 263 23 36 210 287 194 291 13 140 271 4 207 237 280 131 17 291 162 161 60 142 14 148 252 141 234 264 124 275 17 153 217 305 198 304 280 120 262 71 173 192 238 232 28 1 19 251 40 29 136 258 58 227 246 213 165 28 46 95 150 29 319 279 168 78 53 124 137 38 263 34 112 109 276 290 16 201 33 287 149 215 80 151 302 182 297 217 133 253 93 97 248 173 9 183 122 177 194 108 279 30 99 163 296 265 270 235 44 8 82 204 49 294 212 202 89 129 57 126 7 85 299 132 256 154 180 210 115 21 304 108 141 51 209 14 103 176 242 245 295 302 10 318 6 305 60 4 69 258 69 303 145 202 134 171 277 115 297 262 209 152 82 66 70 83 29 9 67 67 22 301 47 58 89 267 2 16 190 278 33 160 246 258 241 282 35 64 6 260 18 105 80 289 247 38 125 55 292 ^'}},
- {OUT=>'333B0259B18CE64D6B52CF563DD3041E5F63A516'}],
- );
-
-sub binary_expand ($$)
-{
- my ($test_name, $line) = @_;
- my ($n, $b, $rest) = split ' ', $line, 3;
- defined $n && defined $b or die "$test_name: too few args\n";
- my @a = split ' ', $rest, $n + 1;
- my $caret = pop @a;
- $caret eq '^' or die "test $test_name: @a missing `^'\n";
- $b eq '1' || $b eq '0' or die "test $test_name: bad `b'=$b\n";
- my $n_bad = @a;
- @a == $n or
- die "test $test_name: wrong number of args (expected $n, found $n_bad)\n";
- my $bit_string = '';
- foreach my $a (@a)
- {
- $bit_string .= $b x $a;
- $b = 1 - $b;
- }
- my $t = pack ("B*", $bit_string);
- # print "$bit_string\n $t\n";
- return $t;
-}
-
-my $t;
-foreach $t (@Tests)
- {
- # Expand each input.
- my $in = $t->[1]->{IN};
- $in->{f} = binary_expand $t->[0], $in->{f};
-
- # Convert each expected output string to lower case, and append " f\n".
- my $h = $t->[2];
- $h->{OUT} = lc $h->{OUT} . " f\n";
-
- # Insert the `--text' argument for each test.
- splice @$t, 1, 0, '--text';
- }
-
-my $save_temps = $ENV{DEBUG};
-my $verbose = $ENV{VERBOSE};
-
-my $prog = $ENV{PROG} || die "$0: \$PROG not specified in environment\n";
-my $fail = run_tests ($program_name, $prog, \@Tests, $save_temps, $verbose);
-exit $fail;
-EOF
diff --git a/tests/shred/Makefile.am b/tests/shred/Makefile.am
deleted file mode 100644
index 190cc4b..0000000
--- a/tests/shred/Makefile.am
+++ /dev/null
@@ -1,12 +0,0 @@
-## Process this file with automake to produce Makefile.in -*-Makefile-*-.
-
-EXTRA_DIST = $(TESTS)
-
-TESTS_ENVIRONMENT = \
- top_srcdir=$(top_srcdir) \
- srcdir=$(srcdir) \
- PERL="$(PERL)" \
- CU_TEST_NAME=`basename $(abs_srcdir)`,$$tst \
- PATH="$(VG_PATH_PREFIX)`pwd`/../../src$(PATH_SEPARATOR)$$PATH"
-
-TESTS = remove exact
diff --git a/tests/shred/Makefile.in b/tests/shred/Makefile.in
deleted file mode 100644
index 66c79dd..0000000
--- a/tests/shred/Makefile.in
+++ /dev/null
@@ -1,719 +0,0 @@
-# Makefile.in generated by automake 1.10 from Makefile.am.
-# @configure_input@
-
-# Copyright (C) 1994, 1995, 1996, 1997, 1998, 1999, 2000, 2001, 2002,
-# 2003, 2004, 2005, 2006 Free Software Foundation, Inc.
-# This Makefile.in is free software; the Free Software Foundation
-# gives unlimited permission to copy and/or distribute it,
-# with or without modifications, as long as this notice is preserved.
-
-# This program is distributed in the hope that it will be useful,
-# but WITHOUT ANY WARRANTY, to the extent permitted by law; without
-# even the implied warranty of MERCHANTABILITY or FITNESS FOR A
-# PARTICULAR PURPOSE.
-
-@SET_MAKE@
-VPATH = @srcdir@
-pkgdatadir = $(datadir)/@PACKAGE@
-pkglibdir = $(libdir)/@PACKAGE@
-pkgincludedir = $(includedir)/@PACKAGE@
-am__cd = CDPATH="$${ZSH_VERSION+.}$(PATH_SEPARATOR)" && cd
-install_sh_DATA = $(install_sh) -c -m 644
-install_sh_PROGRAM = $(install_sh) -c
-install_sh_SCRIPT = $(install_sh) -c
-INSTALL_HEADER = $(INSTALL_DATA)
-transform = $(program_transform_name)
-NORMAL_INSTALL = :
-PRE_INSTALL = :
-POST_INSTALL = :
-NORMAL_UNINSTALL = :
-PRE_UNINSTALL = :
-POST_UNINSTALL = :
-build_triplet = @build@
-host_triplet = @host@
-subdir = tests/shred
-DIST_COMMON = $(srcdir)/Makefile.am $(srcdir)/Makefile.in
-ACLOCAL_M4 = $(top_srcdir)/aclocal.m4
-am__aclocal_m4_deps = $(top_srcdir)/m4/absolute-header.m4 \
- $(top_srcdir)/m4/acl.m4 $(top_srcdir)/m4/alloca.m4 \
- $(top_srcdir)/m4/allocsa.m4 $(top_srcdir)/m4/argmatch.m4 \
- $(top_srcdir)/m4/arpa_inet_h.m4 $(top_srcdir)/m4/assert.m4 \
- $(top_srcdir)/m4/atexit.m4 $(top_srcdir)/m4/autobuild.m4 \
- $(top_srcdir)/m4/backupfile.m4 $(top_srcdir)/m4/base64.m4 \
- $(top_srcdir)/m4/bison.m4 $(top_srcdir)/m4/boottime.m4 \
- $(top_srcdir)/m4/c-strtod.m4 $(top_srcdir)/m4/calloc.m4 \
- $(top_srcdir)/m4/canon-host.m4 \
- $(top_srcdir)/m4/canonicalize.m4 \
- $(top_srcdir)/m4/chdir-long.m4 $(top_srcdir)/m4/check-decl.m4 \
- $(top_srcdir)/m4/chown.m4 $(top_srcdir)/m4/clock_time.m4 \
- $(top_srcdir)/m4/cloexec.m4 $(top_srcdir)/m4/close-stream.m4 \
- $(top_srcdir)/m4/closeout.m4 $(top_srcdir)/m4/codeset.m4 \
- $(top_srcdir)/m4/config-h.m4 $(top_srcdir)/m4/cycle-check.m4 \
- $(top_srcdir)/m4/d-ino.m4 $(top_srcdir)/m4/d-type.m4 \
- $(top_srcdir)/m4/dirfd.m4 $(top_srcdir)/m4/dirname.m4 \
- $(top_srcdir)/m4/dos.m4 $(top_srcdir)/m4/double-slash-root.m4 \
- $(top_srcdir)/m4/dup2.m4 $(top_srcdir)/m4/eealloc.m4 \
- $(top_srcdir)/m4/eoverflow.m4 $(top_srcdir)/m4/error.m4 \
- $(top_srcdir)/m4/euidaccess-stat.m4 \
- $(top_srcdir)/m4/euidaccess.m4 $(top_srcdir)/m4/exclude.m4 \
- $(top_srcdir)/m4/exitfail.m4 $(top_srcdir)/m4/extensions.m4 \
- $(top_srcdir)/m4/fchdir.m4 $(top_srcdir)/m4/fcntl-safer.m4 \
- $(top_srcdir)/m4/fcntl_h.m4 $(top_srcdir)/m4/fd-reopen.m4 \
- $(top_srcdir)/m4/file-type.m4 $(top_srcdir)/m4/fileblocks.m4 \
- $(top_srcdir)/m4/filemode.m4 $(top_srcdir)/m4/filenamecat.m4 \
- $(top_srcdir)/m4/flexmember.m4 $(top_srcdir)/m4/fnmatch.m4 \
- $(top_srcdir)/m4/fpending.m4 $(top_srcdir)/m4/fprintftime.m4 \
- $(top_srcdir)/m4/free.m4 $(top_srcdir)/m4/fstypename.m4 \
- $(top_srcdir)/m4/fsusage.m4 $(top_srcdir)/m4/ftruncate.m4 \
- $(top_srcdir)/m4/fts.m4 $(top_srcdir)/m4/getaddrinfo.m4 \
- $(top_srcdir)/m4/getcwd-abort-bug.m4 \
- $(top_srcdir)/m4/getcwd-path-max.m4 $(top_srcdir)/m4/getcwd.m4 \
- $(top_srcdir)/m4/getdate.m4 $(top_srcdir)/m4/getdelim.m4 \
- $(top_srcdir)/m4/getgroups.m4 $(top_srcdir)/m4/gethostname.m4 \
- $(top_srcdir)/m4/gethrxtime.m4 $(top_srcdir)/m4/getline.m4 \
- $(top_srcdir)/m4/getloadavg.m4 $(top_srcdir)/m4/getndelim2.m4 \
- $(top_srcdir)/m4/getopt.m4 $(top_srcdir)/m4/getpagesize.m4 \
- $(top_srcdir)/m4/getpass.m4 $(top_srcdir)/m4/gettext.m4 \
- $(top_srcdir)/m4/gettime.m4 $(top_srcdir)/m4/gettimeofday.m4 \
- $(top_srcdir)/m4/getugroups.m4 \
- $(top_srcdir)/m4/getusershell.m4 $(top_srcdir)/m4/glibc21.m4 \
- $(top_srcdir)/m4/gnulib-common.m4 \
- $(top_srcdir)/m4/gnulib-comp.m4 \
- $(top_srcdir)/m4/group-member.m4 \
- $(top_srcdir)/m4/hard-locale.m4 $(top_srcdir)/m4/hash.m4 \
- $(top_srcdir)/m4/host-os.m4 $(top_srcdir)/m4/human.m4 \
- $(top_srcdir)/m4/i-ring.m4 $(top_srcdir)/m4/iconv.m4 \
- $(top_srcdir)/m4/idcache.m4 $(top_srcdir)/m4/inet_ntop.m4 \
- $(top_srcdir)/m4/inline.m4 $(top_srcdir)/m4/intmax_t.m4 \
- $(top_srcdir)/m4/inttostr.m4 $(top_srcdir)/m4/inttypes-pri.m4 \
- $(top_srcdir)/m4/inttypes.m4 $(top_srcdir)/m4/inttypes_h.m4 \
- $(top_srcdir)/m4/isapipe.m4 $(top_srcdir)/m4/jm-macros.m4 \
- $(top_srcdir)/m4/jm-winsz1.m4 $(top_srcdir)/m4/jm-winsz2.m4 \
- $(top_srcdir)/m4/lchmod.m4 $(top_srcdir)/m4/lchown.m4 \
- $(top_srcdir)/m4/lib-check.m4 $(top_srcdir)/m4/lib-ignore.m4 \
- $(top_srcdir)/m4/lib-ld.m4 $(top_srcdir)/m4/lib-link.m4 \
- $(top_srcdir)/m4/lib-prefix.m4 $(top_srcdir)/m4/link-follow.m4 \
- $(top_srcdir)/m4/localcharset.m4 \
- $(top_srcdir)/m4/long-options.m4 \
- $(top_srcdir)/m4/longdouble.m4 $(top_srcdir)/m4/longlong.m4 \
- $(top_srcdir)/m4/ls-mntd-fs.m4 $(top_srcdir)/m4/lstat.m4 \
- $(top_srcdir)/m4/mbchar.m4 $(top_srcdir)/m4/mbiter.m4 \
- $(top_srcdir)/m4/mbrtowc.m4 $(top_srcdir)/m4/mbscasecmp.m4 \
- $(top_srcdir)/m4/mbstate_t.m4 $(top_srcdir)/m4/mbswidth.m4 \
- $(top_srcdir)/m4/md5.m4 $(top_srcdir)/m4/memcasecmp.m4 \
- $(top_srcdir)/m4/memchr.m4 $(top_srcdir)/m4/memcmp.m4 \
- $(top_srcdir)/m4/memcoll.m4 $(top_srcdir)/m4/memcpy.m4 \
- $(top_srcdir)/m4/memmove.m4 $(top_srcdir)/m4/mempcpy.m4 \
- $(top_srcdir)/m4/memrchr.m4 $(top_srcdir)/m4/memset.m4 \
- $(top_srcdir)/m4/memxfrm.m4 $(top_srcdir)/m4/mkancesdirs.m4 \
- $(top_srcdir)/m4/mkdir-p.m4 $(top_srcdir)/m4/mkdir-slash.m4 \
- $(top_srcdir)/m4/mkstemp.m4 $(top_srcdir)/m4/mktime.m4 \
- $(top_srcdir)/m4/modechange.m4 $(top_srcdir)/m4/mountlist.m4 \
- $(top_srcdir)/m4/mpsort.m4 $(top_srcdir)/m4/nanosleep.m4 \
- $(top_srcdir)/m4/netinet_in_h.m4 $(top_srcdir)/m4/nls.m4 \
- $(top_srcdir)/m4/openat.m4 $(top_srcdir)/m4/pathmax.m4 \
- $(top_srcdir)/m4/perl.m4 $(top_srcdir)/m4/physmem.m4 \
- $(top_srcdir)/m4/po.m4 $(top_srcdir)/m4/posixtm.m4 \
- $(top_srcdir)/m4/posixver.m4 $(top_srcdir)/m4/prereq.m4 \
- $(top_srcdir)/m4/progtest.m4 $(top_srcdir)/m4/putenv.m4 \
- $(top_srcdir)/m4/quote.m4 $(top_srcdir)/m4/quotearg.m4 \
- $(top_srcdir)/m4/randint.m4 $(top_srcdir)/m4/randperm.m4 \
- $(top_srcdir)/m4/randread.m4 $(top_srcdir)/m4/readlink.m4 \
- $(top_srcdir)/m4/readtokens.m4 $(top_srcdir)/m4/readutmp.m4 \
- $(top_srcdir)/m4/regex.m4 \
- $(top_srcdir)/m4/rename-dest-slash.m4 \
- $(top_srcdir)/m4/rename.m4 $(top_srcdir)/m4/rmdir-errno.m4 \
- $(top_srcdir)/m4/rmdir.m4 $(top_srcdir)/m4/root-dev-ino.m4 \
- $(top_srcdir)/m4/rpmatch.m4 $(top_srcdir)/m4/safe-read.m4 \
- $(top_srcdir)/m4/safe-write.m4 $(top_srcdir)/m4/same.m4 \
- $(top_srcdir)/m4/save-cwd.m4 $(top_srcdir)/m4/savedir.m4 \
- $(top_srcdir)/m4/savewd.m4 $(top_srcdir)/m4/setenv.m4 \
- $(top_srcdir)/m4/settime.m4 $(top_srcdir)/m4/sha1.m4 \
- $(top_srcdir)/m4/sha256.m4 $(top_srcdir)/m4/sha512.m4 \
- $(top_srcdir)/m4/sig2str.m4 $(top_srcdir)/m4/snprintf.m4 \
- $(top_srcdir)/m4/socklen.m4 $(top_srcdir)/m4/sockpfaf.m4 \
- $(top_srcdir)/m4/ssize_t.m4 $(top_srcdir)/m4/st_dm_mode.m4 \
- $(top_srcdir)/m4/stat-prog.m4 $(top_srcdir)/m4/stat-time.m4 \
- $(top_srcdir)/m4/stdarg.m4 $(top_srcdir)/m4/stdbool.m4 \
- $(top_srcdir)/m4/stdint.m4 $(top_srcdir)/m4/stdint_h.m4 \
- $(top_srcdir)/m4/stdio-safer.m4 $(top_srcdir)/m4/stdio_h.m4 \
- $(top_srcdir)/m4/stdlib-safer.m4 $(top_srcdir)/m4/stdlib_h.m4 \
- $(top_srcdir)/m4/stpcpy.m4 $(top_srcdir)/m4/strcspn.m4 \
- $(top_srcdir)/m4/strdup.m4 $(top_srcdir)/m4/strftime.m4 \
- $(top_srcdir)/m4/string_h.m4 $(top_srcdir)/m4/strndup.m4 \
- $(top_srcdir)/m4/strnlen.m4 $(top_srcdir)/m4/strnumcmp.m4 \
- $(top_srcdir)/m4/strpbrk.m4 $(top_srcdir)/m4/strtod.m4 \
- $(top_srcdir)/m4/strtoimax.m4 $(top_srcdir)/m4/strtol.m4 \
- $(top_srcdir)/m4/strtoll.m4 $(top_srcdir)/m4/strtoul.m4 \
- $(top_srcdir)/m4/strtoull.m4 $(top_srcdir)/m4/strtoumax.m4 \
- $(top_srcdir)/m4/strverscmp.m4 \
- $(top_srcdir)/m4/sys_socket_h.m4 \
- $(top_srcdir)/m4/sys_stat_h.m4 $(top_srcdir)/m4/sys_time_h.m4 \
- $(top_srcdir)/m4/tempname.m4 $(top_srcdir)/m4/time_h.m4 \
- $(top_srcdir)/m4/time_r.m4 $(top_srcdir)/m4/timespec.m4 \
- $(top_srcdir)/m4/tm_gmtoff.m4 $(top_srcdir)/m4/tzset.m4 \
- $(top_srcdir)/m4/unicodeio.m4 $(top_srcdir)/m4/unistd-safer.m4 \
- $(top_srcdir)/m4/unistd_h.m4 $(top_srcdir)/m4/unlink-busy.m4 \
- $(top_srcdir)/m4/unlinkdir.m4 $(top_srcdir)/m4/unlocked-io.m4 \
- $(top_srcdir)/m4/uptime.m4 $(top_srcdir)/m4/userspec.m4 \
- $(top_srcdir)/m4/utimbuf.m4 $(top_srcdir)/m4/utime.m4 \
- $(top_srcdir)/m4/utimecmp.m4 $(top_srcdir)/m4/utimens.m4 \
- $(top_srcdir)/m4/utimes-null.m4 $(top_srcdir)/m4/utimes.m4 \
- $(top_srcdir)/m4/vasnprintf.m4 $(top_srcdir)/m4/vasprintf.m4 \
- $(top_srcdir)/m4/wchar.m4 $(top_srcdir)/m4/wchar_t.m4 \
- $(top_srcdir)/m4/wctype.m4 $(top_srcdir)/m4/wcwidth.m4 \
- $(top_srcdir)/m4/wint_t.m4 $(top_srcdir)/m4/xalloc.m4 \
- $(top_srcdir)/m4/xfts.m4 $(top_srcdir)/m4/xgetcwd.m4 \
- $(top_srcdir)/m4/xnanosleep.m4 $(top_srcdir)/m4/xstrndup.m4 \
- $(top_srcdir)/m4/xstrtod.m4 $(top_srcdir)/m4/xstrtol.m4 \
- $(top_srcdir)/m4/yesno.m4 $(top_srcdir)/configure.ac
-am__configure_deps = $(am__aclocal_m4_deps) $(CONFIGURE_DEPENDENCIES) \
- $(ACLOCAL_M4)
-mkinstalldirs = $(install_sh) -d
-CONFIG_HEADER = $(top_builddir)/lib/config.h
-CONFIG_CLEAN_FILES =
-SOURCES =
-DIST_SOURCES =
-DISTFILES = $(DIST_COMMON) $(DIST_SOURCES) $(TEXINFOS) $(EXTRA_DIST)
-ABSOLUTE_DIRENT_H = @ABSOLUTE_DIRENT_H@
-ABSOLUTE_FCNTL_H = @ABSOLUTE_FCNTL_H@
-ABSOLUTE_INTTYPES_H = @ABSOLUTE_INTTYPES_H@
-ABSOLUTE_NETINET_IN_H = @ABSOLUTE_NETINET_IN_H@
-ABSOLUTE_STDINT_H = @ABSOLUTE_STDINT_H@
-ABSOLUTE_STDIO_H = @ABSOLUTE_STDIO_H@
-ABSOLUTE_STDLIB_H = @ABSOLUTE_STDLIB_H@
-ABSOLUTE_STRING_H = @ABSOLUTE_STRING_H@
-ABSOLUTE_SYS_SOCKET_H = @ABSOLUTE_SYS_SOCKET_H@
-ABSOLUTE_SYS_STAT_H = @ABSOLUTE_SYS_STAT_H@
-ABSOLUTE_SYS_TIME_H = @ABSOLUTE_SYS_TIME_H@
-ABSOLUTE_TIME_H = @ABSOLUTE_TIME_H@
-ABSOLUTE_UNISTD_H = @ABSOLUTE_UNISTD_H@
-ABSOLUTE_WCHAR_H = @ABSOLUTE_WCHAR_H@
-ABSOLUTE_WCTYPE_H = @ABSOLUTE_WCTYPE_H@
-ACLOCAL = @ACLOCAL@
-ALLOCA = @ALLOCA@
-ALLOCA_H = @ALLOCA_H@
-AMTAR = @AMTAR@
-ARPA_INET_H = @ARPA_INET_H@
-AUTOCONF = @AUTOCONF@
-AUTOHEADER = @AUTOHEADER@
-AUTOMAKE = @AUTOMAKE@
-AWK = @AWK@
-BITSIZEOF_PTRDIFF_T = @BITSIZEOF_PTRDIFF_T@
-BITSIZEOF_SIG_ATOMIC_T = @BITSIZEOF_SIG_ATOMIC_T@
-BITSIZEOF_SIZE_T = @BITSIZEOF_SIZE_T@
-BITSIZEOF_WCHAR_T = @BITSIZEOF_WCHAR_T@
-BITSIZEOF_WINT_T = @BITSIZEOF_WINT_T@
-CC = @CC@
-CCDEPMODE = @CCDEPMODE@
-CFLAGS = @CFLAGS@
-CPP = @CPP@
-CPPFLAGS = @CPPFLAGS@
-CYGPATH_W = @CYGPATH_W@
-DEFAULT_POSIX2_VERSION = @DEFAULT_POSIX2_VERSION@
-DEFS = @DEFS@
-DEPDIR = @DEPDIR@
-DF_PROG = @DF_PROG@
-DIRENT_H = @DIRENT_H@
-ECHO_C = @ECHO_C@
-ECHO_N = @ECHO_N@
-ECHO_T = @ECHO_T@
-EGREP = @EGREP@
-EOVERFLOW = @EOVERFLOW@
-EXEEXT = @EXEEXT@
-FCNTL_H = @FCNTL_H@
-FNMATCH_H = @FNMATCH_H@
-GETLOADAVG_LIBS = @GETLOADAVG_LIBS@
-GETOPT_H = @GETOPT_H@
-GLIBC21 = @GLIBC21@
-GMSGFMT = @GMSGFMT@
-GMSGFMT_015 = @GMSGFMT_015@
-GNULIB_CHOWN = @GNULIB_CHOWN@
-GNULIB_DUP2 = @GNULIB_DUP2@
-GNULIB_FCHDIR = @GNULIB_FCHDIR@
-GNULIB_FPRINTF_POSIX = @GNULIB_FPRINTF_POSIX@
-GNULIB_FTRUNCATE = @GNULIB_FTRUNCATE@
-GNULIB_GETCWD = @GNULIB_GETCWD@
-GNULIB_GETLOGIN_R = @GNULIB_GETLOGIN_R@
-GNULIB_GETSUBOPT = @GNULIB_GETSUBOPT@
-GNULIB_IMAXABS = @GNULIB_IMAXABS@
-GNULIB_IMAXDIV = @GNULIB_IMAXDIV@
-GNULIB_MBSCASECMP = @GNULIB_MBSCASECMP@
-GNULIB_MBSCASESTR = @GNULIB_MBSCASESTR@
-GNULIB_MBSCHR = @GNULIB_MBSCHR@
-GNULIB_MBSCSPN = @GNULIB_MBSCSPN@
-GNULIB_MBSLEN = @GNULIB_MBSLEN@
-GNULIB_MBSNCASECMP = @GNULIB_MBSNCASECMP@
-GNULIB_MBSPBRK = @GNULIB_MBSPBRK@
-GNULIB_MBSPCASECMP = @GNULIB_MBSPCASECMP@
-GNULIB_MBSRCHR = @GNULIB_MBSRCHR@
-GNULIB_MBSSEP = @GNULIB_MBSSEP@
-GNULIB_MBSSPN = @GNULIB_MBSSPN@
-GNULIB_MBSSTR = @GNULIB_MBSSTR@
-GNULIB_MBSTOK_R = @GNULIB_MBSTOK_R@
-GNULIB_MEMMEM = @GNULIB_MEMMEM@
-GNULIB_MEMPCPY = @GNULIB_MEMPCPY@
-GNULIB_MEMRCHR = @GNULIB_MEMRCHR@
-GNULIB_MKDTEMP = @GNULIB_MKDTEMP@
-GNULIB_MKSTEMP = @GNULIB_MKSTEMP@
-GNULIB_PRINTF_POSIX = @GNULIB_PRINTF_POSIX@
-GNULIB_READLINK = @GNULIB_READLINK@
-GNULIB_SNPRINTF = @GNULIB_SNPRINTF@
-GNULIB_SPRINTF_POSIX = @GNULIB_SPRINTF_POSIX@
-GNULIB_STPCPY = @GNULIB_STPCPY@
-GNULIB_STPNCPY = @GNULIB_STPNCPY@
-GNULIB_STRCASESTR = @GNULIB_STRCASESTR@
-GNULIB_STRCHRNUL = @GNULIB_STRCHRNUL@
-GNULIB_STRDUP = @GNULIB_STRDUP@
-GNULIB_STRNDUP = @GNULIB_STRNDUP@
-GNULIB_STRNLEN = @GNULIB_STRNLEN@
-GNULIB_STRPBRK = @GNULIB_STRPBRK@
-GNULIB_STRSEP = @GNULIB_STRSEP@
-GNULIB_STRTOIMAX = @GNULIB_STRTOIMAX@
-GNULIB_STRTOK_R = @GNULIB_STRTOK_R@
-GNULIB_STRTOUMAX = @GNULIB_STRTOUMAX@
-GNULIB_VFPRINTF_POSIX = @GNULIB_VFPRINTF_POSIX@
-GNULIB_VPRINTF_POSIX = @GNULIB_VPRINTF_POSIX@
-GNULIB_VSNPRINTF = @GNULIB_VSNPRINTF@
-GNULIB_VSPRINTF_POSIX = @GNULIB_VSPRINTF_POSIX@
-GNU_PACKAGE = @GNU_PACKAGE@
-GREP = @GREP@
-HAVE_DECL_GETLOGIN_R = @HAVE_DECL_GETLOGIN_R@
-HAVE_DECL_IMAXABS = @HAVE_DECL_IMAXABS@
-HAVE_DECL_IMAXDIV = @HAVE_DECL_IMAXDIV@
-HAVE_DECL_MEMMEM = @HAVE_DECL_MEMMEM@
-HAVE_DECL_MEMRCHR = @HAVE_DECL_MEMRCHR@
-HAVE_DECL_SNPRINTF = @HAVE_DECL_SNPRINTF@
-HAVE_DECL_STRDUP = @HAVE_DECL_STRDUP@
-HAVE_DECL_STRNCASECMP = @HAVE_DECL_STRNCASECMP@
-HAVE_DECL_STRNDUP = @HAVE_DECL_STRNDUP@
-HAVE_DECL_STRNLEN = @HAVE_DECL_STRNLEN@
-HAVE_DECL_STRTOIMAX = @HAVE_DECL_STRTOIMAX@
-HAVE_DECL_STRTOK_R = @HAVE_DECL_STRTOK_R@
-HAVE_DECL_STRTOUMAX = @HAVE_DECL_STRTOUMAX@
-HAVE_DECL_VSNPRINTF = @HAVE_DECL_VSNPRINTF@
-HAVE_DUP2 = @HAVE_DUP2@
-HAVE_FTRUNCATE = @HAVE_FTRUNCATE@
-HAVE_GETSUBOPT = @HAVE_GETSUBOPT@
-HAVE_INTTYPES_H = @HAVE_INTTYPES_H@
-HAVE_LONG_LONG_INT = @HAVE_LONG_LONG_INT@
-HAVE_MEMPCPY = @HAVE_MEMPCPY@
-HAVE_MKDTEMP = @HAVE_MKDTEMP@
-HAVE_NETINET_IN_H = @HAVE_NETINET_IN_H@
-HAVE_READLINK = @HAVE_READLINK@
-HAVE_SIGNED_SIG_ATOMIC_T = @HAVE_SIGNED_SIG_ATOMIC_T@
-HAVE_SIGNED_WCHAR_T = @HAVE_SIGNED_WCHAR_T@
-HAVE_SIGNED_WINT_T = @HAVE_SIGNED_WINT_T@
-HAVE_STDINT_H = @HAVE_STDINT_H@
-HAVE_STPCPY = @HAVE_STPCPY@
-HAVE_STPNCPY = @HAVE_STPNCPY@
-HAVE_STRCASECMP = @HAVE_STRCASECMP@
-HAVE_STRCASESTR = @HAVE_STRCASESTR@
-HAVE_STRCHRNUL = @HAVE_STRCHRNUL@
-HAVE_STRNDUP = @HAVE_STRNDUP@
-HAVE_STRPBRK = @HAVE_STRPBRK@
-HAVE_STRSEP = @HAVE_STRSEP@
-HAVE_STRUCT_TIMEVAL = @HAVE_STRUCT_TIMEVAL@
-HAVE_SYS_BITYPES_H = @HAVE_SYS_BITYPES_H@
-HAVE_SYS_INTTYPES_H = @HAVE_SYS_INTTYPES_H@
-HAVE_SYS_SOCKET_H = @HAVE_SYS_SOCKET_H@
-HAVE_SYS_TIME_H = @HAVE_SYS_TIME_H@
-HAVE_SYS_TYPES_H = @HAVE_SYS_TYPES_H@
-HAVE_UNISTD_H = @HAVE_UNISTD_H@
-HAVE_UNSIGNED_LONG_LONG_INT = @HAVE_UNSIGNED_LONG_LONG_INT@
-HAVE_WCTYPE_H = @HAVE_WCTYPE_H@
-HAVE_WINSOCK2_H = @HAVE_WINSOCK2_H@
-HAVE_WINT_T = @HAVE_WINT_T@
-HAVE_WS2TCPIP_H = @HAVE_WS2TCPIP_H@
-HAVE__BOOL = @HAVE__BOOL@
-HELP2MAN = @HELP2MAN@
-INSTALL = @INSTALL@
-INSTALL_DATA = @INSTALL_DATA@
-INSTALL_PROGRAM = @INSTALL_PROGRAM@
-INSTALL_SCRIPT = @INSTALL_SCRIPT@
-INSTALL_STRIP_PROGRAM = @INSTALL_STRIP_PROGRAM@
-INTLLIBS = @INTLLIBS@
-INTL_MACOSX_LIBS = @INTL_MACOSX_LIBS@
-INTTYPES_H = @INTTYPES_H@
-KMEM_GROUP = @KMEM_GROUP@
-LDFLAGS = @LDFLAGS@
-LIBCOREUTILS_LIBDEPS = @LIBCOREUTILS_LIBDEPS@
-LIBCOREUTILS_LTLIBDEPS = @LIBCOREUTILS_LTLIBDEPS@
-LIBICONV = @LIBICONV@
-LIBINTL = @LIBINTL@
-LIBOBJS = @LIBOBJS@
-LIBS = @LIBS@
-LIB_ACL = @LIB_ACL@
-LIB_ACL_TRIVIAL = @LIB_ACL_TRIVIAL@
-LIB_CLOCK_GETTIME = @LIB_CLOCK_GETTIME@
-LIB_CRYPT = @LIB_CRYPT@
-LIB_EACCESS = @LIB_EACCESS@
-LIB_FDATASYNC = @LIB_FDATASYNC@
-LIB_GETHRXTIME = @LIB_GETHRXTIME@
-LIB_NANOSLEEP = @LIB_NANOSLEEP@
-LN_S = @LN_S@
-LTLIBICONV = @LTLIBICONV@
-LTLIBINTL = @LTLIBINTL@
-LTLIBOBJS = @LTLIBOBJS@
-MAKEINFO = @MAKEINFO@
-MAN = @MAN@
-MKDIR_P = @MKDIR_P@
-MSGFMT = @MSGFMT@
-MSGFMT_015 = @MSGFMT_015@
-MSGMERGE = @MSGMERGE@
-NEED_SETGID = @NEED_SETGID@
-NETINET_IN_H = @NETINET_IN_H@
-OBJEXT = @OBJEXT@
-OPTIONAL_BIN_PROGS = @OPTIONAL_BIN_PROGS@
-PACKAGE = @PACKAGE@
-PACKAGE_BUGREPORT = @PACKAGE_BUGREPORT@
-PACKAGE_NAME = @PACKAGE_NAME@
-PACKAGE_STRING = @PACKAGE_STRING@
-PACKAGE_TARNAME = @PACKAGE_TARNAME@
-PACKAGE_VERSION = @PACKAGE_VERSION@
-PATH_SEPARATOR = @PATH_SEPARATOR@
-PERL = @PERL@
-POSUB = @POSUB@
-POW_LIB = @POW_LIB@
-PRIPTR_PREFIX = @PRIPTR_PREFIX@
-PRI_MACROS_BROKEN = @PRI_MACROS_BROKEN@
-PTRDIFF_T_SUFFIX = @PTRDIFF_T_SUFFIX@
-RANLIB = @RANLIB@
-REPLACE_CHOWN = @REPLACE_CHOWN@
-REPLACE_FCHDIR = @REPLACE_FCHDIR@
-REPLACE_FPRINTF = @REPLACE_FPRINTF@
-REPLACE_GETCWD = @REPLACE_GETCWD@
-REPLACE_GETTIMEOFDAY = @REPLACE_GETTIMEOFDAY@
-REPLACE_LOCALTIME_R = @REPLACE_LOCALTIME_R@
-REPLACE_MKSTEMP = @REPLACE_MKSTEMP@
-REPLACE_NANOSLEEP = @REPLACE_NANOSLEEP@
-REPLACE_PRINTF = @REPLACE_PRINTF@
-REPLACE_SNPRINTF = @REPLACE_SNPRINTF@
-REPLACE_SPRINTF = @REPLACE_SPRINTF@
-REPLACE_STRPTIME = @REPLACE_STRPTIME@
-REPLACE_TIMEGM = @REPLACE_TIMEGM@
-REPLACE_VFPRINTF = @REPLACE_VFPRINTF@
-REPLACE_VPRINTF = @REPLACE_VPRINTF@
-REPLACE_VSNPRINTF = @REPLACE_VSNPRINTF@
-REPLACE_VSPRINTF = @REPLACE_VSPRINTF@
-SEQ_LIBM = @SEQ_LIBM@
-SET_MAKE = @SET_MAKE@
-SHELL = @SHELL@
-SIG_ATOMIC_T_SUFFIX = @SIG_ATOMIC_T_SUFFIX@
-SIZE_T_SUFFIX = @SIZE_T_SUFFIX@
-STDBOOL_H = @STDBOOL_H@
-STDINT_H = @STDINT_H@
-STRIP = @STRIP@
-SYS_SOCKET_H = @SYS_SOCKET_H@
-SYS_STAT_H = @SYS_STAT_H@
-SYS_TIME_H = @SYS_TIME_H@
-SYS_TIME_H_DEFINES_STRUCT_TIMESPEC = @SYS_TIME_H_DEFINES_STRUCT_TIMESPEC@
-TIME_H_DEFINES_STRUCT_TIMESPEC = @TIME_H_DEFINES_STRUCT_TIMESPEC@
-U = @U@
-USE_NLS = @USE_NLS@
-VERSION = @VERSION@
-WCHAR_H = @WCHAR_H@
-WCHAR_T_SUFFIX = @WCHAR_T_SUFFIX@
-WCTYPE_H = @WCTYPE_H@
-WINT_T_SUFFIX = @WINT_T_SUFFIX@
-XGETTEXT = @XGETTEXT@
-XGETTEXT_015 = @XGETTEXT_015@
-YACC = @YACC@
-YFLAGS = @YFLAGS@
-abs_builddir = @abs_builddir@
-abs_srcdir = @abs_srcdir@
-abs_top_builddir = @abs_top_builddir@
-abs_top_srcdir = @abs_top_srcdir@
-ac_ct_CC = @ac_ct_CC@
-am__include = @am__include@
-am__leading_dot = @am__leading_dot@
-am__quote = @am__quote@
-am__tar = @am__tar@
-am__untar = @am__untar@
-bindir = @bindir@
-build = @build@
-build_alias = @build_alias@
-build_cpu = @build_cpu@
-build_os = @build_os@
-build_vendor = @build_vendor@
-builddir = @builddir@
-datadir = @datadir@
-datarootdir = @datarootdir@
-docdir = @docdir@
-dvidir = @dvidir@
-exec_prefix = @exec_prefix@
-gl_LIBOBJS = @gl_LIBOBJS@
-gl_LTLIBOBJS = @gl_LTLIBOBJS@
-host = @host@
-host_alias = @host_alias@
-host_cpu = @host_cpu@
-host_os = @host_os@
-host_vendor = @host_vendor@
-htmldir = @htmldir@
-includedir = @includedir@
-infodir = @infodir@
-install_sh = @install_sh@
-libdir = @libdir@
-libexecdir = @libexecdir@
-localedir = @localedir@
-localstatedir = @localstatedir@
-mandir = @mandir@
-mkdir_p = @mkdir_p@
-oldincludedir = @oldincludedir@
-pdfdir = @pdfdir@
-prefix = @prefix@
-program_transform_name = @program_transform_name@
-psdir = @psdir@
-sbindir = @sbindir@
-sharedstatedir = @sharedstatedir@
-srcdir = @srcdir@
-sysconfdir = @sysconfdir@
-target_alias = @target_alias@
-top_builddir = @top_builddir@
-top_srcdir = @top_srcdir@
-EXTRA_DIST = $(TESTS)
-TESTS_ENVIRONMENT = \
- top_srcdir=$(top_srcdir) \
- srcdir=$(srcdir) \
- PERL="$(PERL)" \
- CU_TEST_NAME=`basename $(abs_srcdir)`,$$tst \
- PATH="$(VG_PATH_PREFIX)`pwd`/../../src$(PATH_SEPARATOR)$$PATH"
-
-TESTS = remove exact
-all: all-am
-
-.SUFFIXES:
-$(srcdir)/Makefile.in: $(srcdir)/Makefile.am $(am__configure_deps)
- @for dep in $?; do \
- case '$(am__configure_deps)' in \
- *$$dep*) \
- cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh \
- && exit 0; \
- exit 1;; \
- esac; \
- done; \
- echo ' cd $(top_srcdir) && $(AUTOMAKE) --gnu tests/shred/Makefile'; \
- cd $(top_srcdir) && \
- $(AUTOMAKE) --gnu tests/shred/Makefile
-.PRECIOUS: Makefile
-Makefile: $(srcdir)/Makefile.in $(top_builddir)/config.status
- @case '$?' in \
- *config.status*) \
- cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh;; \
- *) \
- echo ' cd $(top_builddir) && $(SHELL) ./config.status $(subdir)/$@ $(am__depfiles_maybe)'; \
- cd $(top_builddir) && $(SHELL) ./config.status $(subdir)/$@ $(am__depfiles_maybe);; \
- esac;
-
-$(top_builddir)/config.status: $(top_srcdir)/configure $(CONFIG_STATUS_DEPENDENCIES)
- cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh
-
-$(top_srcdir)/configure: $(am__configure_deps)
- cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh
-$(ACLOCAL_M4): $(am__aclocal_m4_deps)
- cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh
-tags: TAGS
-TAGS:
-
-ctags: CTAGS
-CTAGS:
-
-
-check-TESTS: $(TESTS)
- @failed=0; all=0; xfail=0; xpass=0; skip=0; ws='[ ]'; \
- srcdir=$(srcdir); export srcdir; \
- list=' $(TESTS) '; \
- if test -n "$$list"; then \
- for tst in $$list; do \
- if test -f ./$$tst; then dir=./; \
- elif test -f $$tst; then dir=; \
- else dir="$(srcdir)/"; fi; \
- if $(TESTS_ENVIRONMENT) $${dir}$$tst; then \
- all=`expr $$all + 1`; \
- case " $(XFAIL_TESTS) " in \
- *$$ws$$tst$$ws*) \
- xpass=`expr $$xpass + 1`; \
- failed=`expr $$failed + 1`; \
- echo "XPASS: $$tst"; \
- ;; \
- *) \
- echo "PASS: $$tst"; \
- ;; \
- esac; \
- elif test $$? -ne 77; then \
- all=`expr $$all + 1`; \
- case " $(XFAIL_TESTS) " in \
- *$$ws$$tst$$ws*) \
- xfail=`expr $$xfail + 1`; \
- echo "XFAIL: $$tst"; \
- ;; \
- *) \
- failed=`expr $$failed + 1`; \
- echo "FAIL: $$tst"; \
- ;; \
- esac; \
- else \
- skip=`expr $$skip + 1`; \
- echo "SKIP: $$tst"; \
- fi; \
- done; \
- if test "$$failed" -eq 0; then \
- if test "$$xfail" -eq 0; then \
- banner="All $$all tests passed"; \
- else \
- banner="All $$all tests behaved as expected ($$xfail expected failures)"; \
- fi; \
- else \
- if test "$$xpass" -eq 0; then \
- banner="$$failed of $$all tests failed"; \
- else \
- banner="$$failed of $$all tests did not behave as expected ($$xpass unexpected passes)"; \
- fi; \
- fi; \
- dashes="$$banner"; \
- skipped=""; \
- if test "$$skip" -ne 0; then \
- skipped="($$skip tests were not run)"; \
- test `echo "$$skipped" | wc -c` -le `echo "$$banner" | wc -c` || \
- dashes="$$skipped"; \
- fi; \
- report=""; \
- if test "$$failed" -ne 0 && test -n "$(PACKAGE_BUGREPORT)"; then \
- report="Please report to $(PACKAGE_BUGREPORT)"; \
- test `echo "$$report" | wc -c` -le `echo "$$banner" | wc -c` || \
- dashes="$$report"; \
- fi; \
- dashes=`echo "$$dashes" | sed s/./=/g`; \
- echo "$$dashes"; \
- echo "$$banner"; \
- test -z "$$skipped" || echo "$$skipped"; \
- test -z "$$report" || echo "$$report"; \
- echo "$$dashes"; \
- test "$$failed" -eq 0; \
- else :; fi
-
-distdir: $(DISTFILES)
- @srcdirstrip=`echo "$(srcdir)" | sed 's/[].[^$$\\*]/\\\\&/g'`; \
- topsrcdirstrip=`echo "$(top_srcdir)" | sed 's/[].[^$$\\*]/\\\\&/g'`; \
- list='$(DISTFILES)'; \
- dist_files=`for file in $$list; do echo $$file; done | \
- sed -e "s|^$$srcdirstrip/||;t" \
- -e "s|^$$topsrcdirstrip/|$(top_builddir)/|;t"`; \
- case $$dist_files in \
- */*) $(MKDIR_P) `echo "$$dist_files" | \
- sed '/\//!d;s|^|$(distdir)/|;s,/[^/]*$$,,' | \
- sort -u` ;; \
- esac; \
- for file in $$dist_files; do \
- if test -f $$file || test -d $$file; then d=.; else d=$(srcdir); fi; \
- if test -d $$d/$$file; then \
- dir=`echo "/$$file" | sed -e 's,/[^/]*$$,,'`; \
- if test -d $(srcdir)/$$file && test $$d != $(srcdir); then \
- cp -pR $(srcdir)/$$file $(distdir)$$dir || exit 1; \
- fi; \
- cp -pR $$d/$$file $(distdir)$$dir || exit 1; \
- else \
- test -f $(distdir)/$$file \
- || cp -p $$d/$$file $(distdir)/$$file \
- || exit 1; \
- fi; \
- done
-check-am: all-am
- $(MAKE) $(AM_MAKEFLAGS) check-TESTS
-check: check-am
-all-am: Makefile
-installdirs:
-install: install-am
-install-exec: install-exec-am
-install-data: install-data-am
-uninstall: uninstall-am
-
-install-am: all-am
- @$(MAKE) $(AM_MAKEFLAGS) install-exec-am install-data-am
-
-installcheck: installcheck-am
-install-strip:
- $(MAKE) $(AM_MAKEFLAGS) INSTALL_PROGRAM="$(INSTALL_STRIP_PROGRAM)" \
- install_sh_PROGRAM="$(INSTALL_STRIP_PROGRAM)" INSTALL_STRIP_FLAG=-s \
- `test -z '$(STRIP)' || \
- echo "INSTALL_PROGRAM_ENV=STRIPPROG='$(STRIP)'"` install
-mostlyclean-generic:
-
-clean-generic:
-
-distclean-generic:
- -test -z "$(CONFIG_CLEAN_FILES)" || rm -f $(CONFIG_CLEAN_FILES)
-
-maintainer-clean-generic:
- @echo "This command is intended for maintainers to use"
- @echo "it deletes files that may require special tools to rebuild."
-clean: clean-am
-
-clean-am: clean-generic mostlyclean-am
-
-distclean: distclean-am
- -rm -f Makefile
-distclean-am: clean-am distclean-generic
-
-dvi: dvi-am
-
-dvi-am:
-
-html: html-am
-
-info: info-am
-
-info-am:
-
-install-data-am:
-
-install-dvi: install-dvi-am
-
-install-exec-am:
-
-install-html: install-html-am
-
-install-info: install-info-am
-
-install-man:
-
-install-pdf: install-pdf-am
-
-install-ps: install-ps-am
-
-installcheck-am:
-
-maintainer-clean: maintainer-clean-am
- -rm -f Makefile
-maintainer-clean-am: distclean-am maintainer-clean-generic
-
-mostlyclean: mostlyclean-am
-
-mostlyclean-am: mostlyclean-generic
-
-pdf: pdf-am
-
-pdf-am:
-
-ps: ps-am
-
-ps-am:
-
-uninstall-am:
-
-.MAKE: install-am install-strip
-
-.PHONY: all all-am check check-TESTS check-am clean clean-generic \
- distclean distclean-generic distdir dvi dvi-am html html-am \
- info info-am install install-am install-data install-data-am \
- install-dvi install-dvi-am install-exec install-exec-am \
- install-html install-html-am install-info install-info-am \
- install-man install-pdf install-pdf-am install-ps \
- install-ps-am install-strip installcheck installcheck-am \
- installdirs maintainer-clean maintainer-clean-generic \
- mostlyclean mostlyclean-generic pdf pdf-am ps ps-am uninstall \
- uninstall-am
-
-# Tell versions [3.59,3.63) of GNU make to not export all variables.
-# Otherwise a system limit (for SysV at least) may be exceeded.
-.NOEXPORT:
diff --git a/tests/shred/exact b/tests/shred/exact
deleted file mode 100755
index 3f04d73..0000000
--- a/tests/shred/exact
+++ /dev/null
@@ -1,55 +0,0 @@
-#!/bin/sh
-# make sure that neither --exact nor --zero gobbles a command line argument
-
-# Copyright (C) 2000, 2003, 2004, 2006 Free Software Foundation, Inc.
-
-# This program is free software; you can redistribute it and/or modify
-# it under the terms of the GNU General Public License as published by
-# the Free Software Foundation; either version 2 of the License, or
-# (at your option) any later version.
-
-# This program is distributed in the hope that it will be useful,
-# but WITHOUT ANY WARRANTY; without even the implied warranty of
-# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
-# GNU General Public License for more details.
-
-# You should have received a copy of the GNU General Public License
-# along with this program; if not, write to the Free Software
-# Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA
-# 02110-1301, USA.
-
-if test "$VERBOSE" = yes; then
- set -x
- shred --version
-fi
-
-pwd=`pwd`
-tmp=exact.$$
-trap 'status=$?; cd "$pwd" && rm -rf $tmp && exit $status' 0
-trap '(exit $?); exit' 1 2 13 15
-
-framework_failure=0
-mkdir $tmp || framework_failure=1
-cd $tmp || framework_failure=1
-
-if test $framework_failure = 1; then
- echo 'failure in testing framework'
- (exit 1); exit 1
-fi
-
-fail=0
-
-for opt in --exact --zero; do
- echo a > a || fail=1
- echo bb > b || fail=1
- echo ccc > c || fail=1
-
- shred --remove $opt a b || fail=1
- test -f a && fail=1
- test -f b && fail=1
-
- shred --remove $opt c || fail=1
- test -f c && fail=1
-done
-
-(exit $fail); exit $fail
diff --git a/tests/shred/remove b/tests/shred/remove
deleted file mode 100755
index 1f1a398..0000000
--- a/tests/shred/remove
+++ /dev/null
@@ -1,56 +0,0 @@
-#!/bin/sh
-# Exercise a bug that was fixed in shred-4.0l
-
-# Copyright (C) 1999, 2000, 2003, 2006 Free Software Foundation, Inc.
-
-# This program is free software; you can redistribute it and/or modify
-# it under the terms of the GNU General Public License as published by
-# the Free Software Foundation; either version 2 of the License, or
-# (at your option) any later version.
-
-# This program is distributed in the hope that it will be useful,
-# but WITHOUT ANY WARRANTY; without even the implied warranty of
-# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
-# GNU General Public License for more details.
-
-# You should have received a copy of the GNU General Public License
-# along with this program; if not, write to the Free Software
-# Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA
-# 02110-1301, USA.
-
-if test "$VERBOSE" = yes; then
- set -x
- shred --version
-fi
-
-PRIV_CHECK_ARG=require-non-root . $srcdir/../priv-check
-
-pwd=`pwd`
-t0=`echo "$0"|sed 's,.*/,,'`.tmp; tmp=$t0/$$
-trap 'status=$?; cd "$pwd" && chmod -R u+rwx $t0 && rm -rf $t0 && exit $status' 0
-trap '(exit $?); exit $?' 1 2 13 15
-
-framework_failure=0
-mkdir -p $tmp || framework_failure=1
-cd $tmp || framework_failure=1
-
-# The length of the basename is what matters.
-# In this case, shred would try to rename the file 256^10 times
-# before terminating.
-file=0123456789
-touch $file || framework_failure=1
-chmod u-w $file || framework_failure=1
-
-if test $framework_failure = 1; then
- echo 'failure in testing framework'
- exit 1
-fi
-
-fail=0
-
-# This would take so long that it appears to infloop
-# when using version from fileutils-4.0k.
-# When the command completes, expect it to fail.
-shred -u $file > /dev/null 2>&1 && fail=1 || :
-
-exit $fail
diff --git a/tests/sort/01a.I b/tests/sort/01a.I
deleted file mode 100644
index b1e6722..0000000
--- a/tests/sort/01a.I
+++ /dev/null
@@ -1,3 +0,0 @@
-A
-B
-C
diff --git a/tests/sort/01a.X b/tests/sort/01a.X
deleted file mode 100644
index b1e6722..0000000
--- a/tests/sort/01a.X
+++ /dev/null
@@ -1,3 +0,0 @@
-A
-B
-C
diff --git a/tests/sort/02a.I b/tests/sort/02a.I
deleted file mode 100644
index b1e6722..0000000
--- a/tests/sort/02a.I
+++ /dev/null
@@ -1,3 +0,0 @@
-A
-B
-C
diff --git a/tests/sort/02a.X b/tests/sort/02a.X
deleted file mode 100644
index e69de29..0000000
--- a/tests/sort/02a.X
+++ /dev/null
diff --git a/tests/sort/02b.I b/tests/sort/02b.I
deleted file mode 100644
index 531e93d..0000000
--- a/tests/sort/02b.I
+++ /dev/null
@@ -1,3 +0,0 @@
-A
-C
-B
diff --git a/tests/sort/02b.X b/tests/sort/02b.X
deleted file mode 100644
index e69de29..0000000
--- a/tests/sort/02b.X
+++ /dev/null
diff --git a/tests/sort/02c.I b/tests/sort/02c.I
deleted file mode 100644
index 78ae2f1..0000000
--- a/tests/sort/02c.I
+++ /dev/null
@@ -1,2 +0,0 @@
-a
-a b
diff --git a/tests/sort/02c.X b/tests/sort/02c.X
deleted file mode 100644
index e69de29..0000000
--- a/tests/sort/02c.X
+++ /dev/null
diff --git a/tests/sort/02d.I b/tests/sort/02d.I
deleted file mode 100644
index b1e6722..0000000
--- a/tests/sort/02d.I
+++ /dev/null
@@ -1,3 +0,0 @@
-A
-B
-C
diff --git a/tests/sort/02d.X b/tests/sort/02d.X
deleted file mode 100644
index e69de29..0000000
--- a/tests/sort/02d.X
+++ /dev/null
diff --git a/tests/sort/02e.I b/tests/sort/02e.I
deleted file mode 100644
index 531e93d..0000000
--- a/tests/sort/02e.I
+++ /dev/null
@@ -1,3 +0,0 @@
-A
-C
-B
diff --git a/tests/sort/02e.X b/tests/sort/02e.X
deleted file mode 100644
index e69de29..0000000
--- a/tests/sort/02e.X
+++ /dev/null
diff --git a/tests/sort/02m.I b/tests/sort/02m.I
deleted file mode 100644
index 67aa866..0000000
--- a/tests/sort/02m.I
+++ /dev/null
@@ -1,2 +0,0 @@
-A
-A
diff --git a/tests/sort/02m.X b/tests/sort/02m.X
deleted file mode 100644
index e69de29..0000000
--- a/tests/sort/02m.X
+++ /dev/null
diff --git a/tests/sort/02n.I b/tests/sort/02n.I
deleted file mode 100644
index 35d242b..0000000
--- a/tests/sort/02n.I
+++ /dev/null
@@ -1,2 +0,0 @@
-A
-B
diff --git a/tests/sort/02n.X b/tests/sort/02n.X
deleted file mode 100644
index e69de29..0000000
--- a/tests/sort/02n.X
+++ /dev/null
diff --git a/tests/sort/02o.I b/tests/sort/02o.I
deleted file mode 100644
index 3042490..0000000
--- a/tests/sort/02o.I
+++ /dev/null
@@ -1,3 +0,0 @@
-A
-B
-B
diff --git a/tests/sort/02o.X b/tests/sort/02o.X
deleted file mode 100644
index e69de29..0000000
--- a/tests/sort/02o.X
+++ /dev/null
diff --git a/tests/sort/02p.I b/tests/sort/02p.I
deleted file mode 100644
index 0809b0a..0000000
--- a/tests/sort/02p.I
+++ /dev/null
@@ -1,3 +0,0 @@
-B
-A
-B
diff --git a/tests/sort/02p.X b/tests/sort/02p.X
deleted file mode 100644
index e69de29..0000000
--- a/tests/sort/02p.X
+++ /dev/null
diff --git a/tests/sort/03a.I b/tests/sort/03a.I
deleted file mode 100644
index dae835f..0000000
--- a/tests/sort/03a.I
+++ /dev/null
@@ -1,2 +0,0 @@
-B
-A
diff --git a/tests/sort/03a.X b/tests/sort/03a.X
deleted file mode 100644
index 35d242b..0000000
--- a/tests/sort/03a.X
+++ /dev/null
@@ -1,2 +0,0 @@
-A
-B
diff --git a/tests/sort/03b.I b/tests/sort/03b.I
deleted file mode 100644
index dae835f..0000000
--- a/tests/sort/03b.I
+++ /dev/null
@@ -1,2 +0,0 @@
-B
-A
diff --git a/tests/sort/03b.X b/tests/sort/03b.X
deleted file mode 100644
index 35d242b..0000000
--- a/tests/sort/03b.X
+++ /dev/null
@@ -1,2 +0,0 @@
-A
-B
diff --git a/tests/sort/03c.I b/tests/sort/03c.I
deleted file mode 100644
index 1d000c9..0000000
--- a/tests/sort/03c.I
+++ /dev/null
@@ -1,2 +0,0 @@
-A b
-A a
diff --git a/tests/sort/03c.X b/tests/sort/03c.X
deleted file mode 100644
index 0f7aef5..0000000
--- a/tests/sort/03c.X
+++ /dev/null
@@ -1,2 +0,0 @@
-A a
-A b
diff --git a/tests/sort/03d.I b/tests/sort/03d.I
deleted file mode 100644
index e69de29..0000000
--- a/tests/sort/03d.I
+++ /dev/null
diff --git a/tests/sort/03d.X b/tests/sort/03d.X
deleted file mode 100644
index e69de29..0000000
--- a/tests/sort/03d.X
+++ /dev/null
diff --git a/tests/sort/03e.I b/tests/sort/03e.I
deleted file mode 100644
index e69de29..0000000
--- a/tests/sort/03e.I
+++ /dev/null
diff --git a/tests/sort/03e.X b/tests/sort/03e.X
deleted file mode 100644
index e69de29..0000000
--- a/tests/sort/03e.X
+++ /dev/null
diff --git a/tests/sort/03f.I b/tests/sort/03f.I
deleted file mode 100644
index e69de29..0000000
--- a/tests/sort/03f.I
+++ /dev/null
diff --git a/tests/sort/03f.X b/tests/sort/03f.X
deleted file mode 100644
index e69de29..0000000
--- a/tests/sort/03f.X
+++ /dev/null
diff --git a/tests/sort/03g.I b/tests/sort/03g.I
deleted file mode 100644
index e69de29..0000000
--- a/tests/sort/03g.I
+++ /dev/null
diff --git a/tests/sort/03g.X b/tests/sort/03g.X
deleted file mode 100644
index e69de29..0000000
--- a/tests/sort/03g.X
+++ /dev/null
diff --git a/tests/sort/03h.I b/tests/sort/03h.I
deleted file mode 100644
index e69de29..0000000
--- a/tests/sort/03h.I
+++ /dev/null
diff --git a/tests/sort/03h.X b/tests/sort/03h.X
deleted file mode 100644
index e69de29..0000000
--- a/tests/sort/03h.X
+++ /dev/null
diff --git a/tests/sort/03i.I b/tests/sort/03i.I
deleted file mode 100644
index e69de29..0000000
--- a/tests/sort/03i.I
+++ /dev/null
diff --git a/tests/sort/03i.X b/tests/sort/03i.X
deleted file mode 100644
index e69de29..0000000
--- a/tests/sort/03i.X
+++ /dev/null
diff --git a/tests/sort/04a.I b/tests/sort/04a.I
deleted file mode 100644
index c3b1c99..0000000
--- a/tests/sort/04a.I
+++ /dev/null
@@ -1,2 +0,0 @@
-2
-11
diff --git a/tests/sort/04a.X b/tests/sort/04a.X
deleted file mode 100644
index e69de29..0000000
--- a/tests/sort/04a.X
+++ /dev/null
diff --git a/tests/sort/04b.I b/tests/sort/04b.I
deleted file mode 100644
index 108c4f5..0000000
--- a/tests/sort/04b.I
+++ /dev/null
@@ -1,2 +0,0 @@
-11
-2
diff --git a/tests/sort/04b.X b/tests/sort/04b.X
deleted file mode 100644
index c3b1c99..0000000
--- a/tests/sort/04b.X
+++ /dev/null
@@ -1,2 +0,0 @@
-2
-11
diff --git a/tests/sort/04c.I b/tests/sort/04c.I
deleted file mode 100644
index 108c4f5..0000000
--- a/tests/sort/04c.I
+++ /dev/null
@@ -1,2 +0,0 @@
-11
-2
diff --git a/tests/sort/04c.X b/tests/sort/04c.X
deleted file mode 100644
index c3b1c99..0000000
--- a/tests/sort/04c.X
+++ /dev/null
@@ -1,2 +0,0 @@
-2
-11
diff --git a/tests/sort/04d.I b/tests/sort/04d.I
deleted file mode 100644
index 108c4f5..0000000
--- a/tests/sort/04d.I
+++ /dev/null
@@ -1,2 +0,0 @@
-11
-2
diff --git a/tests/sort/04d.X b/tests/sort/04d.X
deleted file mode 100644
index 108c4f5..0000000
--- a/tests/sort/04d.X
+++ /dev/null
@@ -1,2 +0,0 @@
-11
-2
diff --git a/tests/sort/04e.I b/tests/sort/04e.I
deleted file mode 100644
index dc0438e..0000000
--- a/tests/sort/04e.I
+++ /dev/null
@@ -1,2 +0,0 @@
-ignored B
-z-ig A
diff --git a/tests/sort/04e.X b/tests/sort/04e.X
deleted file mode 100644
index 9a34bc6..0000000
--- a/tests/sort/04e.X
+++ /dev/null
@@ -1,2 +0,0 @@
-z-ig A
-ignored B
diff --git a/tests/sort/05a.I b/tests/sort/05a.I
deleted file mode 100644
index 4ff3104..0000000
--- a/tests/sort/05a.I
+++ /dev/null
@@ -1,2 +0,0 @@
-A B
-A A
diff --git a/tests/sort/05a.X b/tests/sort/05a.X
deleted file mode 100644
index d00a440..0000000
--- a/tests/sort/05a.X
+++ /dev/null
@@ -1,2 +0,0 @@
-A A
-A B
diff --git a/tests/sort/05b.I b/tests/sort/05b.I
deleted file mode 100644
index e2cb554..0000000
--- a/tests/sort/05b.I
+++ /dev/null
@@ -1,2 +0,0 @@
-A B A
-A A Z
diff --git a/tests/sort/05b.X b/tests/sort/05b.X
deleted file mode 100644
index 24ea562..0000000
--- a/tests/sort/05b.X
+++ /dev/null
@@ -1,2 +0,0 @@
-A A Z
-A B A
diff --git a/tests/sort/05c.I b/tests/sort/05c.I
deleted file mode 100644
index e2cb554..0000000
--- a/tests/sort/05c.I
+++ /dev/null
@@ -1,2 +0,0 @@
-A B A
-A A Z
diff --git a/tests/sort/05c.X b/tests/sort/05c.X
deleted file mode 100644
index 24ea562..0000000
--- a/tests/sort/05c.X
+++ /dev/null
@@ -1,2 +0,0 @@
-A A Z
-A B A
diff --git a/tests/sort/05d.I b/tests/sort/05d.I
deleted file mode 100644
index e2cb554..0000000
--- a/tests/sort/05d.I
+++ /dev/null
@@ -1,2 +0,0 @@
-A B A
-A A Z
diff --git a/tests/sort/05d.X b/tests/sort/05d.X
deleted file mode 100644
index 24ea562..0000000
--- a/tests/sort/05d.X
+++ /dev/null
@@ -1,2 +0,0 @@
-A A Z
-A B A
diff --git a/tests/sort/05e.I b/tests/sort/05e.I
deleted file mode 100644
index f44dbf6..0000000
--- a/tests/sort/05e.I
+++ /dev/null
@@ -1,2 +0,0 @@
-A B Z
-A A A
diff --git a/tests/sort/05e.X b/tests/sort/05e.X
deleted file mode 100644
index e1608f1..0000000
--- a/tests/sort/05e.X
+++ /dev/null
@@ -1,2 +0,0 @@
-A A A
-A B Z
diff --git a/tests/sort/05f.I b/tests/sort/05f.I
deleted file mode 100644
index e2cb554..0000000
--- a/tests/sort/05f.I
+++ /dev/null
@@ -1,2 +0,0 @@
-A B A
-A A Z
diff --git a/tests/sort/05f.X b/tests/sort/05f.X
deleted file mode 100644
index 24ea562..0000000
--- a/tests/sort/05f.X
+++ /dev/null
@@ -1,2 +0,0 @@
-A A Z
-A B A
diff --git a/tests/sort/06a.I b/tests/sort/06a.I
deleted file mode 100644
index 4ff3104..0000000
--- a/tests/sort/06a.I
+++ /dev/null
@@ -1,2 +0,0 @@
-A B
-A A
diff --git a/tests/sort/06a.X b/tests/sort/06a.X
deleted file mode 100644
index d00a440..0000000
--- a/tests/sort/06a.X
+++ /dev/null
@@ -1,2 +0,0 @@
-A A
-A B
diff --git a/tests/sort/06b.I b/tests/sort/06b.I
deleted file mode 100644
index e2cb554..0000000
--- a/tests/sort/06b.I
+++ /dev/null
@@ -1,2 +0,0 @@
-A B A
-A A Z
diff --git a/tests/sort/06b.X b/tests/sort/06b.X
deleted file mode 100644
index 24ea562..0000000
--- a/tests/sort/06b.X
+++ /dev/null
@@ -1,2 +0,0 @@
-A A Z
-A B A
diff --git a/tests/sort/06c.I b/tests/sort/06c.I
deleted file mode 100644
index e2cb554..0000000
--- a/tests/sort/06c.I
+++ /dev/null
@@ -1,2 +0,0 @@
-A B A
-A A Z
diff --git a/tests/sort/06c.X b/tests/sort/06c.X
deleted file mode 100644
index 24ea562..0000000
--- a/tests/sort/06c.X
+++ /dev/null
@@ -1,2 +0,0 @@
-A A Z
-A B A
diff --git a/tests/sort/06d.I b/tests/sort/06d.I
deleted file mode 100644
index e2cb554..0000000
--- a/tests/sort/06d.I
+++ /dev/null
@@ -1,2 +0,0 @@
-A B A
-A A Z
diff --git a/tests/sort/06d.X b/tests/sort/06d.X
deleted file mode 100644
index 24ea562..0000000
--- a/tests/sort/06d.X
+++ /dev/null
@@ -1,2 +0,0 @@
-A A Z
-A B A
diff --git a/tests/sort/06e.I b/tests/sort/06e.I
deleted file mode 100644
index f44dbf6..0000000
--- a/tests/sort/06e.I
+++ /dev/null
@@ -1,2 +0,0 @@
-A B Z
-A A A
diff --git a/tests/sort/06e.X b/tests/sort/06e.X
deleted file mode 100644
index e1608f1..0000000
--- a/tests/sort/06e.X
+++ /dev/null
@@ -1,2 +0,0 @@
-A A A
-A B Z
diff --git a/tests/sort/06f.I b/tests/sort/06f.I
deleted file mode 100644
index e2cb554..0000000
--- a/tests/sort/06f.I
+++ /dev/null
@@ -1,2 +0,0 @@
-A B A
-A A Z
diff --git a/tests/sort/06f.X b/tests/sort/06f.X
deleted file mode 100644
index 24ea562..0000000
--- a/tests/sort/06f.X
+++ /dev/null
@@ -1,2 +0,0 @@
-A A Z
-A B A
diff --git a/tests/sort/07a.I b/tests/sort/07a.I
deleted file mode 100644
index 1ee50d7..0000000
--- a/tests/sort/07a.I
+++ /dev/null
@@ -1,2 +0,0 @@
-9 a b
-7 a a
diff --git a/tests/sort/07a.X b/tests/sort/07a.X
deleted file mode 100644
index 88fe519..0000000
--- a/tests/sort/07a.X
+++ /dev/null
@@ -1,2 +0,0 @@
-7 a a
-9 a b
diff --git a/tests/sort/07b.I b/tests/sort/07b.I
deleted file mode 100644
index cf35756..0000000
--- a/tests/sort/07b.I
+++ /dev/null
@@ -1,2 +0,0 @@
-a a b
-z a a
diff --git a/tests/sort/07b.X b/tests/sort/07b.X
deleted file mode 100644
index 1163080..0000000
--- a/tests/sort/07b.X
+++ /dev/null
@@ -1,2 +0,0 @@
-z a a
-a a b
diff --git a/tests/sort/07c.I b/tests/sort/07c.I
deleted file mode 100644
index eebd3ca..0000000
--- a/tests/sort/07c.I
+++ /dev/null
@@ -1,2 +0,0 @@
-y k b
-z k a
diff --git a/tests/sort/07c.X b/tests/sort/07c.X
deleted file mode 100644
index 75670f4..0000000
--- a/tests/sort/07c.X
+++ /dev/null
@@ -1,2 +0,0 @@
-z k a
-y k b
diff --git a/tests/sort/07d.I b/tests/sort/07d.I
deleted file mode 100644
index eebd3ca..0000000
--- a/tests/sort/07d.I
+++ /dev/null
@@ -1,2 +0,0 @@
-y k b
-z k a
diff --git a/tests/sort/07d.X b/tests/sort/07d.X
deleted file mode 100644
index 75670f4..0000000
--- a/tests/sort/07d.X
+++ /dev/null
@@ -1,2 +0,0 @@
-z k a
-y k b
diff --git a/tests/sort/08a.I b/tests/sort/08a.I
deleted file mode 100644
index e69de29..0000000
--- a/tests/sort/08a.I
+++ /dev/null
diff --git a/tests/sort/08a.X b/tests/sort/08a.X
deleted file mode 100644
index e69de29..0000000
--- a/tests/sort/08a.X
+++ /dev/null
diff --git a/tests/sort/08b.I b/tests/sort/08b.I
deleted file mode 100644
index e69de29..0000000
--- a/tests/sort/08b.I
+++ /dev/null
diff --git a/tests/sort/08b.X b/tests/sort/08b.X
deleted file mode 100644
index e69de29..0000000
--- a/tests/sort/08b.X
+++ /dev/null
diff --git a/tests/sort/09a.I b/tests/sort/09a.I
deleted file mode 100644
index a539369..0000000
--- a/tests/sort/09a.I
+++ /dev/null
@@ -1,2 +0,0 @@
-1e2
-2e1
diff --git a/tests/sort/09a.X b/tests/sort/09a.X
deleted file mode 100644
index 986cc00..0000000
--- a/tests/sort/09a.X
+++ /dev/null
@@ -1,2 +0,0 @@
-2e1
-1e2
diff --git a/tests/sort/09b.I b/tests/sort/09b.I
deleted file mode 100644
index a539369..0000000
--- a/tests/sort/09b.I
+++ /dev/null
@@ -1,2 +0,0 @@
-1e2
-2e1
diff --git a/tests/sort/09b.X b/tests/sort/09b.X
deleted file mode 100644
index a539369..0000000
--- a/tests/sort/09b.X
+++ /dev/null
@@ -1,2 +0,0 @@
-1e2
-2e1
diff --git a/tests/sort/09c.I b/tests/sort/09c.I
deleted file mode 100644
index 986cc00..0000000
--- a/tests/sort/09c.I
+++ /dev/null
@@ -1,2 +0,0 @@
-2e1
-1e2
diff --git a/tests/sort/09c.X b/tests/sort/09c.X
deleted file mode 100644
index a539369..0000000
--- a/tests/sort/09c.X
+++ /dev/null
@@ -1,2 +0,0 @@
-1e2
-2e1
diff --git a/tests/sort/09d.I b/tests/sort/09d.I
deleted file mode 100644
index 9d428da..0000000
--- a/tests/sort/09d.I
+++ /dev/null
@@ -1,2 +0,0 @@
-a 1e2
-b 2e1
diff --git a/tests/sort/09d.X b/tests/sort/09d.X
deleted file mode 100644
index 0ef4210..0000000
--- a/tests/sort/09d.X
+++ /dev/null
@@ -1,2 +0,0 @@
-b 2e1
-a 1e2
diff --git a/tests/sort/10a.I b/tests/sort/10a.I
deleted file mode 100644
index ff811a4..0000000
--- a/tests/sort/10a.I
+++ /dev/null
@@ -1,2 +0,0 @@
-:ba
-:ab
diff --git a/tests/sort/10a.X b/tests/sort/10a.X
deleted file mode 100644
index ff811a4..0000000
--- a/tests/sort/10a.X
+++ /dev/null
@@ -1,2 +0,0 @@
-:ba
-:ab
diff --git a/tests/sort/10a0.I b/tests/sort/10a0.I
deleted file mode 100644
index a997cbb..0000000
--- a/tests/sort/10a0.I
+++ /dev/null
@@ -1,2 +0,0 @@
-z ba
-z ab
diff --git a/tests/sort/10a0.X b/tests/sort/10a0.X
deleted file mode 100644
index a997cbb..0000000
--- a/tests/sort/10a0.X
+++ /dev/null
@@ -1,2 +0,0 @@
-z ba
-z ab
diff --git a/tests/sort/10a1.I b/tests/sort/10a1.I
deleted file mode 100644
index 16c9fca..0000000
--- a/tests/sort/10a1.I
+++ /dev/null
@@ -1,2 +0,0 @@
-ba
-ab
diff --git a/tests/sort/10a1.X b/tests/sort/10a1.X
deleted file mode 100644
index 16c9fca..0000000
--- a/tests/sort/10a1.X
+++ /dev/null
@@ -1,2 +0,0 @@
-ba
-ab
diff --git a/tests/sort/10a2.I b/tests/sort/10a2.I
deleted file mode 100644
index a997cbb..0000000
--- a/tests/sort/10a2.I
+++ /dev/null
@@ -1,2 +0,0 @@
-z ba
-z ab
diff --git a/tests/sort/10a2.X b/tests/sort/10a2.X
deleted file mode 100644
index a997cbb..0000000
--- a/tests/sort/10a2.X
+++ /dev/null
@@ -1,2 +0,0 @@
-z ba
-z ab
diff --git a/tests/sort/10b.I b/tests/sort/10b.I
deleted file mode 100644
index ff811a4..0000000
--- a/tests/sort/10b.I
+++ /dev/null
@@ -1,2 +0,0 @@
-:ba
-:ab
diff --git a/tests/sort/10b.X b/tests/sort/10b.X
deleted file mode 100644
index ff811a4..0000000
--- a/tests/sort/10b.X
+++ /dev/null
@@ -1,2 +0,0 @@
-:ba
-:ab
diff --git a/tests/sort/10c.I b/tests/sort/10c.I
deleted file mode 100644
index 64f2cb1..0000000
--- a/tests/sort/10c.I
+++ /dev/null
@@ -1,2 +0,0 @@
-:ab
-:ba
diff --git a/tests/sort/10c.X b/tests/sort/10c.X
deleted file mode 100644
index ff811a4..0000000
--- a/tests/sort/10c.X
+++ /dev/null
@@ -1,2 +0,0 @@
-:ba
-:ab
diff --git a/tests/sort/10d.I b/tests/sort/10d.I
deleted file mode 100644
index 64f2cb1..0000000
--- a/tests/sort/10d.I
+++ /dev/null
@@ -1,2 +0,0 @@
-:ab
-:ba
diff --git a/tests/sort/10d.X b/tests/sort/10d.X
deleted file mode 100644
index ff811a4..0000000
--- a/tests/sort/10d.X
+++ /dev/null
@@ -1,2 +0,0 @@
-:ba
-:ab
diff --git a/tests/sort/10e.I b/tests/sort/10e.I
deleted file mode 100644
index b889aa0..0000000
--- a/tests/sort/10e.I
+++ /dev/null
@@ -1,2 +0,0 @@
-ab
-ba
diff --git a/tests/sort/10e.X b/tests/sort/10e.X
deleted file mode 100644
index 16c9fca..0000000
--- a/tests/sort/10e.X
+++ /dev/null
@@ -1,2 +0,0 @@
-ba
-ab
diff --git a/tests/sort/10f.I b/tests/sort/10f.I
deleted file mode 100644
index 64f2cb1..0000000
--- a/tests/sort/10f.I
+++ /dev/null
@@ -1,2 +0,0 @@
-:ab
-:ba
diff --git a/tests/sort/10f.X b/tests/sort/10f.X
deleted file mode 100644
index ff811a4..0000000
--- a/tests/sort/10f.X
+++ /dev/null
@@ -1,2 +0,0 @@
-:ba
-:ab
diff --git a/tests/sort/10g.I b/tests/sort/10g.I
deleted file mode 100644
index 092f6be..0000000
--- a/tests/sort/10g.I
+++ /dev/null
@@ -1,2 +0,0 @@
-a ab
-b ba
diff --git a/tests/sort/10g.X b/tests/sort/10g.X
deleted file mode 100644
index 6d60415..0000000
--- a/tests/sort/10g.X
+++ /dev/null
@@ -1,2 +0,0 @@
-b ba
-a ab
diff --git a/tests/sort/11a.I b/tests/sort/11a.I
deleted file mode 100644
index e60def5..0000000
--- a/tests/sort/11a.I
+++ /dev/null
@@ -1,2 +0,0 @@
-a :a
-a :b
diff --git a/tests/sort/11a.X b/tests/sort/11a.X
deleted file mode 100644
index e60def5..0000000
--- a/tests/sort/11a.X
+++ /dev/null
@@ -1,2 +0,0 @@
-a :a
-a :b
diff --git a/tests/sort/11b.I b/tests/sort/11b.I
deleted file mode 100644
index 415e2eb..0000000
--- a/tests/sort/11b.I
+++ /dev/null
@@ -1,2 +0,0 @@
-a :b
-a :a
diff --git a/tests/sort/11b.X b/tests/sort/11b.X
deleted file mode 100644
index e60def5..0000000
--- a/tests/sort/11b.X
+++ /dev/null
@@ -1,2 +0,0 @@
-a :a
-a :b
diff --git a/tests/sort/11c.I b/tests/sort/11c.I
deleted file mode 100644
index 8517d85..0000000
--- a/tests/sort/11c.I
+++ /dev/null
@@ -1,2 +0,0 @@
-z:a :a
-a :b
diff --git a/tests/sort/11c.X b/tests/sort/11c.X
deleted file mode 100644
index 8517d85..0000000
--- a/tests/sort/11c.X
+++ /dev/null
@@ -1,2 +0,0 @@
-z:a :a
-a :b
diff --git a/tests/sort/11d.I b/tests/sort/11d.I
deleted file mode 100644
index 87f0108..0000000
--- a/tests/sort/11d.I
+++ /dev/null
@@ -1,2 +0,0 @@
-z:a :b
-a :a
diff --git a/tests/sort/11d.X b/tests/sort/11d.X
deleted file mode 100644
index 7848bb6..0000000
--- a/tests/sort/11d.X
+++ /dev/null
@@ -1,2 +0,0 @@
-a :a
-z:a :b
diff --git a/tests/sort/12a.I b/tests/sort/12a.I
deleted file mode 100644
index 36848de..0000000
--- a/tests/sort/12a.I
+++ /dev/null
@@ -1,2 +0,0 @@
-a:1
-b:-
diff --git a/tests/sort/12a.X b/tests/sort/12a.X
deleted file mode 100644
index ec3717a..0000000
--- a/tests/sort/12a.X
+++ /dev/null
@@ -1,2 +0,0 @@
-b:-
-a:1
diff --git a/tests/sort/12b.I b/tests/sort/12b.I
deleted file mode 100644
index ec3717a..0000000
--- a/tests/sort/12b.I
+++ /dev/null
@@ -1,2 +0,0 @@
-b:-
-a:1
diff --git a/tests/sort/12b.X b/tests/sort/12b.X
deleted file mode 100644
index ec3717a..0000000
--- a/tests/sort/12b.X
+++ /dev/null
@@ -1,2 +0,0 @@
-b:-
-a:1
diff --git a/tests/sort/12c.I b/tests/sort/12c.I
deleted file mode 100644
index a26d65d..0000000
--- a/tests/sort/12c.I
+++ /dev/null
@@ -1,2 +0,0 @@
-a:1
-b:X
diff --git a/tests/sort/12c.X b/tests/sort/12c.X
deleted file mode 100644
index 61a9b94..0000000
--- a/tests/sort/12c.X
+++ /dev/null
@@ -1,2 +0,0 @@
-b:X
-a:1
diff --git a/tests/sort/12d.I b/tests/sort/12d.I
deleted file mode 100644
index 61a9b94..0000000
--- a/tests/sort/12d.I
+++ /dev/null
@@ -1,2 +0,0 @@
-b:X
-a:1
diff --git a/tests/sort/12d.X b/tests/sort/12d.X
deleted file mode 100644
index 61a9b94..0000000
--- a/tests/sort/12d.X
+++ /dev/null
@@ -1,2 +0,0 @@
-b:X
-a:1
diff --git a/tests/sort/13a.I b/tests/sort/13a.I
deleted file mode 100644
index 2f2c538..0000000
--- a/tests/sort/13a.I
+++ /dev/null
@@ -1,2 +0,0 @@
-axx
-b-1
diff --git a/tests/sort/13a.X b/tests/sort/13a.X
deleted file mode 100644
index 3a78e65..0000000
--- a/tests/sort/13a.X
+++ /dev/null
@@ -1,2 +0,0 @@
-b-1
-axx
diff --git a/tests/sort/13b.I b/tests/sort/13b.I
deleted file mode 100644
index 3a78e65..0000000
--- a/tests/sort/13b.I
+++ /dev/null
@@ -1,2 +0,0 @@
-b-1
-axx
diff --git a/tests/sort/13b.X b/tests/sort/13b.X
deleted file mode 100644
index 3a78e65..0000000
--- a/tests/sort/13b.X
+++ /dev/null
@@ -1,2 +0,0 @@
-b-1
-axx
diff --git a/tests/sort/14a.I b/tests/sort/14a.I
deleted file mode 100644
index 26940e4..0000000
--- a/tests/sort/14a.I
+++ /dev/null
@@ -1,3 +0,0 @@
-mal
-mal-
-mala
diff --git a/tests/sort/14a.X b/tests/sort/14a.X
deleted file mode 100644
index 7386438..0000000
--- a/tests/sort/14a.X
+++ /dev/null
@@ -1,2 +0,0 @@
-mal
-mala
diff --git a/tests/sort/14b.I b/tests/sort/14b.I
deleted file mode 100644
index 26940e4..0000000
--- a/tests/sort/14b.I
+++ /dev/null
@@ -1,3 +0,0 @@
-mal
-mal-
-mala
diff --git a/tests/sort/14b.X b/tests/sort/14b.X
deleted file mode 100644
index 7386438..0000000
--- a/tests/sort/14b.X
+++ /dev/null
@@ -1,2 +0,0 @@
-mal
-mala
diff --git a/tests/sort/15a.I b/tests/sort/15a.I
deleted file mode 100644
index f462609..0000000
--- a/tests/sort/15a.I
+++ /dev/null
@@ -1,2 +0,0 @@
-a
-a
diff --git a/tests/sort/15a.X b/tests/sort/15a.X
deleted file mode 100644
index 7898192..0000000
--- a/tests/sort/15a.X
+++ /dev/null
@@ -1 +0,0 @@
-a
diff --git a/tests/sort/15b.I b/tests/sort/15b.I
deleted file mode 100644
index 49350c2..0000000
--- a/tests/sort/15b.I
+++ /dev/null
@@ -1,2 +0,0 @@
-a
-a
diff --git a/tests/sort/15b.X b/tests/sort/15b.X
deleted file mode 100644
index 7898192..0000000
--- a/tests/sort/15b.X
+++ /dev/null
@@ -1 +0,0 @@
-a
diff --git a/tests/sort/15c.I b/tests/sort/15c.I
deleted file mode 100644
index f1b6bee..0000000
--- a/tests/sort/15c.I
+++ /dev/null
@@ -1,2 +0,0 @@
-a
-a
diff --git a/tests/sort/15c.X b/tests/sort/15c.X
deleted file mode 100644
index 1d4219d..0000000
--- a/tests/sort/15c.X
+++ /dev/null
@@ -1 +0,0 @@
-a
diff --git a/tests/sort/15d.I b/tests/sort/15d.I
deleted file mode 100644
index 149fe18..0000000
--- a/tests/sort/15d.I
+++ /dev/null
@@ -1,2 +0,0 @@
-a
-a
diff --git a/tests/sort/15d.X b/tests/sort/15d.X
deleted file mode 100644
index 5fcc983..0000000
--- a/tests/sort/15d.X
+++ /dev/null
@@ -1 +0,0 @@
-a
diff --git a/tests/sort/15e.I b/tests/sort/15e.I
deleted file mode 100644
index eaa087f..0000000
--- a/tests/sort/15e.I
+++ /dev/null
@@ -1,2 +0,0 @@
-a
-a
diff --git a/tests/sort/15e.X b/tests/sort/15e.X
deleted file mode 100644
index 7898192..0000000
--- a/tests/sort/15e.X
+++ /dev/null
@@ -1 +0,0 @@
-a
diff --git a/tests/sort/16a.I b/tests/sort/16a.I
deleted file mode 100644
index 675dd1a..0000000
--- a/tests/sort/16a.I
+++ /dev/null
@@ -1,6 +0,0 @@
-éminence
-überhaupt
-'s-Gravenhage
-aëroclub
-Aag
-aagtappels
diff --git a/tests/sort/16a.X b/tests/sort/16a.X
deleted file mode 100644
index 11ab7c3..0000000
--- a/tests/sort/16a.X
+++ /dev/null
@@ -1,6 +0,0 @@
-'s-Gravenhage
-Aag
-aagtappels
-aëroclub
-éminence
-überhaupt
diff --git a/tests/sort/17.I b/tests/sort/17.I
deleted file mode 100644
index ad8566c..0000000
--- a/tests/sort/17.I
+++ /dev/null
@@ -1 +0,0 @@
-xxxxxxxxxxxxxxxxxxxxxxxxxxxxxx
diff --git a/tests/sort/17.X b/tests/sort/17.X
deleted file mode 100644
index e69de29..0000000
--- a/tests/sort/17.X
+++ /dev/null
diff --git a/tests/sort/18a.I b/tests/sort/18a.I
deleted file mode 100644
index 099f3e7..0000000
--- a/tests/sort/18a.I
+++ /dev/null
@@ -1,2 +0,0 @@
- 901
-100
diff --git a/tests/sort/18a.X b/tests/sort/18a.X
deleted file mode 100644
index 099f3e7..0000000
--- a/tests/sort/18a.X
+++ /dev/null
@@ -1,2 +0,0 @@
- 901
-100
diff --git a/tests/sort/18b.I b/tests/sort/18b.I
deleted file mode 100644
index 099f3e7..0000000
--- a/tests/sort/18b.I
+++ /dev/null
@@ -1,2 +0,0 @@
- 901
-100
diff --git a/tests/sort/18b.X b/tests/sort/18b.X
deleted file mode 100644
index 099f3e7..0000000
--- a/tests/sort/18b.X
+++ /dev/null
@@ -1,2 +0,0 @@
- 901
-100
diff --git a/tests/sort/18c.I b/tests/sort/18c.I
deleted file mode 100644
index 099f3e7..0000000
--- a/tests/sort/18c.I
+++ /dev/null
@@ -1,2 +0,0 @@
- 901
-100
diff --git a/tests/sort/18c.X b/tests/sort/18c.X
deleted file mode 100644
index 838e5ad..0000000
--- a/tests/sort/18c.X
+++ /dev/null
@@ -1,2 +0,0 @@
-100
- 901
diff --git a/tests/sort/18d.I b/tests/sort/18d.I
deleted file mode 100644
index 099f3e7..0000000
--- a/tests/sort/18d.I
+++ /dev/null
@@ -1,2 +0,0 @@
- 901
-100
diff --git a/tests/sort/18d.X b/tests/sort/18d.X
deleted file mode 100644
index 099f3e7..0000000
--- a/tests/sort/18d.X
+++ /dev/null
@@ -1,2 +0,0 @@
- 901
-100
diff --git a/tests/sort/18e.I b/tests/sort/18e.I
deleted file mode 100644
index 099f3e7..0000000
--- a/tests/sort/18e.I
+++ /dev/null
@@ -1,2 +0,0 @@
- 901
-100
diff --git a/tests/sort/18e.X b/tests/sort/18e.X
deleted file mode 100644
index 838e5ad..0000000
--- a/tests/sort/18e.X
+++ /dev/null
@@ -1,2 +0,0 @@
-100
- 901
diff --git a/tests/sort/19a.I b/tests/sort/19a.I
deleted file mode 100644
index 36536f2..0000000
--- a/tests/sort/19a.I
+++ /dev/null
@@ -1,3 +0,0 @@
-b 2
-b 1
-b 3
diff --git a/tests/sort/19a.X b/tests/sort/19a.X
deleted file mode 100644
index c05c534..0000000
--- a/tests/sort/19a.X
+++ /dev/null
@@ -1,3 +0,0 @@
-b 1
-b 2
-b 3
diff --git a/tests/sort/19b.I b/tests/sort/19b.I
deleted file mode 100644
index 36536f2..0000000
--- a/tests/sort/19b.I
+++ /dev/null
@@ -1,3 +0,0 @@
-b 2
-b 1
-b 3
diff --git a/tests/sort/19b.X b/tests/sort/19b.X
deleted file mode 100644
index 8caad00..0000000
--- a/tests/sort/19b.X
+++ /dev/null
@@ -1,3 +0,0 @@
-b 3
-b 2
-b 1
diff --git a/tests/sort/20a.I b/tests/sort/20a.I
deleted file mode 100644
index 8dc9145..0000000
--- a/tests/sort/20a.I
+++ /dev/null
@@ -1,10 +0,0 @@
-_________U__free
-_________U__malloc
-_________U__abort
-_________U__memcpy
-_________U__memset
-_________U_dyld_stub_binding_helper
-_________U__malloc
-_________U___iob
-_________U__abort
-_________U__fprintf
diff --git a/tests/sort/20a.X b/tests/sort/20a.X
deleted file mode 100644
index c073c2a..0000000
--- a/tests/sort/20a.X
+++ /dev/null
@@ -1,10 +0,0 @@
-_________U___iob
-_________U__abort
-_________U__abort
-_________U__fprintf
-_________U__free
-_________U__malloc
-_________U__malloc
-_________U__memcpy
-_________U__memset
-_________U_dyld_stub_binding_helper
diff --git a/tests/sort/21a.I b/tests/sort/21a.I
deleted file mode 100644
index 3e8d813..0000000
--- a/tests/sort/21a.I
+++ /dev/null
@@ -1,3 +0,0 @@
-A
-a
-_
diff --git a/tests/sort/21a.X b/tests/sort/21a.X
deleted file mode 100644
index 5756033..0000000
--- a/tests/sort/21a.X
+++ /dev/null
@@ -1,3 +0,0 @@
-A
-_
-a
diff --git a/tests/sort/21b.I b/tests/sort/21b.I
deleted file mode 100644
index 3e8d813..0000000
--- a/tests/sort/21b.I
+++ /dev/null
@@ -1,3 +0,0 @@
-A
-a
-_
diff --git a/tests/sort/21b.X b/tests/sort/21b.X
deleted file mode 100644
index 3e8d813..0000000
--- a/tests/sort/21b.X
+++ /dev/null
@@ -1,3 +0,0 @@
-A
-a
-_
diff --git a/tests/sort/21c.I b/tests/sort/21c.I
deleted file mode 100644
index d1d8b45..0000000
--- a/tests/sort/21c.I
+++ /dev/null
@@ -1,3 +0,0 @@
-a
-A
-_
diff --git a/tests/sort/21c.X b/tests/sort/21c.X
deleted file mode 100644
index 3e8d813..0000000
--- a/tests/sort/21c.X
+++ /dev/null
@@ -1,3 +0,0 @@
-A
-a
-_
diff --git a/tests/sort/21d.I b/tests/sort/21d.I
deleted file mode 100644
index ddaee30..0000000
--- a/tests/sort/21d.I
+++ /dev/null
@@ -1,3 +0,0 @@
-_
-a
-A
diff --git a/tests/sort/21d.X b/tests/sort/21d.X
deleted file mode 100644
index 3e8d813..0000000
--- a/tests/sort/21d.X
+++ /dev/null
@@ -1,3 +0,0 @@
-A
-a
-_
diff --git a/tests/sort/21e.I b/tests/sort/21e.I
deleted file mode 100644
index 479bb34..0000000
--- a/tests/sort/21e.I
+++ /dev/null
@@ -1,3 +0,0 @@
-a
-_
-A
diff --git a/tests/sort/21e.X b/tests/sort/21e.X
deleted file mode 100644
index 3e8d813..0000000
--- a/tests/sort/21e.X
+++ /dev/null
@@ -1,3 +0,0 @@
-A
-a
-_
diff --git a/tests/sort/21f.I b/tests/sort/21f.I
deleted file mode 100644
index 3e8d813..0000000
--- a/tests/sort/21f.I
+++ /dev/null
@@ -1,3 +0,0 @@
-A
-a
-_
diff --git a/tests/sort/21f.X b/tests/sort/21f.X
deleted file mode 100644
index 3e8d813..0000000
--- a/tests/sort/21f.X
+++ /dev/null
@@ -1,3 +0,0 @@
-A
-a
-_
diff --git a/tests/sort/21g.I b/tests/sort/21g.I
deleted file mode 100644
index 4beb668..0000000
--- a/tests/sort/21g.I
+++ /dev/null
@@ -1,2 +0,0 @@
-a
-_
diff --git a/tests/sort/21g.X b/tests/sort/21g.X
deleted file mode 100644
index 4beb668..0000000
--- a/tests/sort/21g.X
+++ /dev/null
@@ -1,2 +0,0 @@
-a
-_
diff --git a/tests/sort/22a.I b/tests/sort/22a.I
deleted file mode 100644
index fb86a47..0000000
--- a/tests/sort/22a.I
+++ /dev/null
@@ -1,2 +0,0 @@
-3 b
-4 B
diff --git a/tests/sort/22a.X b/tests/sort/22a.X
deleted file mode 100644
index 8a7af73..0000000
--- a/tests/sort/22a.X
+++ /dev/null
@@ -1,2 +0,0 @@
-4 B
-3 b
diff --git a/tests/sort/22b.I b/tests/sort/22b.I
deleted file mode 100644
index f02af62..0000000
--- a/tests/sort/22b.I
+++ /dev/null
@@ -1,2 +0,0 @@
-3 b
-4 b
diff --git a/tests/sort/22b.X b/tests/sort/22b.X
deleted file mode 100644
index 1c2a131..0000000
--- a/tests/sort/22b.X
+++ /dev/null
@@ -1,2 +0,0 @@
-4 b
-3 b
diff --git a/tests/sort/Makefile.am b/tests/sort/Makefile.am
deleted file mode 100644
index 66600e5..0000000
--- a/tests/sort/Makefile.am
+++ /dev/null
@@ -1,99 +0,0 @@
-# Make coreutils tests. -*-Makefile-*-
-
-# Copyright (C) 1997, 1998, 2000, 2003, 2004, 2006 Free Software
-# Foundation, Inc.
-
-# This program is free software; you can redistribute it and/or modify
-# it under the terms of the GNU General Public License as published by
-# the Free Software Foundation; either version 2 of the License, or
-# (at your option) any later version.
-
-# This program is distributed in the hope that it will be useful,
-# but WITHOUT ANY WARRANTY; without even the implied warranty of
-# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
-# GNU General Public License for more details.
-
-# You should have received a copy of the GNU General Public License
-# along with this program; if not, write to the Free Software
-# Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA
-# 02110-1301, USA.
-
-##test-files-begin
-x = sort
-explicit =
-maint_gen = n1.I n1.X n2.I n2.X n3.I n3.X n4.I n4.X n5.I n5.X n6.I n6.X n7.I \
-n7.X n8a.I n8a.X n8b.I n8b.X n9a.I n9a.X n9b.I n9b.X n10a.I n10a.X n10b.I \
-n10b.X n11a.I n11a.X n11b.I n11b.X 01a.I 01a.X 02a.I 02a.X 02b.I 02b.X 02c.I \
-02c.X 02d.I 02d.X 02e.I 02e.X 02m.I 02m.X 02n.I 02n.X 02o.I 02o.X 02p.I 02p.X \
-03a.I 03a.X 03b.I 03b.X 03c.I 03c.X 03d.I 03d.X 03e.I 03e.X 03f.I 03f.X 03g.I \
-03g.X 03h.I 03h.X 03i.I 03i.X 04a.I 04a.X 04b.I 04b.X 04c.I 04c.X 04d.I 04d.X \
-04e.I 04e.X 05a.I 05a.X 05b.I 05b.X 05c.I 05c.X 05d.I 05d.X 05e.I 05e.X 05f.I \
-05f.X 06a.I 06a.X 06b.I 06b.X 06c.I 06c.X 06d.I 06d.X 06e.I 06e.X 06f.I 06f.X \
-07a.I 07a.X 07b.I 07b.X 07c.I 07c.X 07d.I 07d.X 08a.I 08a.X 08b.I 08b.X 09a.I \
-09a.X 09b.I 09b.X 09c.I 09c.X 09d.I 09d.X 10a.I 10a.X 10b.I 10b.X 10c.I 10c.X \
-10d.I 10d.X 10a0.I 10a0.X 10a1.I 10a1.X 10a2.I 10a2.X 10e.I 10e.X 10f.I 10f.X \
-10g.I 10g.X 11a.I 11a.X 11b.I 11b.X 11c.I 11c.X 11d.I 11d.X 12a.I 12a.X 12b.I \
-12b.X 12c.I 12c.X 12d.I 12d.X 13a.I 13a.X 13b.I 13b.X 14a.I 14a.X 14b.I 14b.X \
-15a.I 15a.X 15b.I 15b.X 15c.I 15c.X 15d.I 15d.X 15e.I 15e.X 16a.I 16a.X 17.I \
-17.X 18a.I 18a.X 18b.I 18b.X 18c.I 18c.X 18d.I 18d.X 18e.I 18e.X 19a.I 19a.X \
-19b.I 19b.X 20a.I 20a.X 21a.I 21a.X 21b.I 21b.X 21c.I 21c.X 21d.I 21d.X 21e.I \
-21e.X 21f.I 21f.X 21g.I 21g.X 22a.I 22a.X 22b.I 22b.X no-file1.X o-no-file1.X \
-create-empty.X neg-nls.I neg-nls.X nul-nls.I nul-nls.X use-nl.I use-nl.X o2.I \
-o2.X incompat1.I incompat1.X incompat2.I incompat2.X incompat3.I incompat3.X \
-incompat4.I incompat4.X incompat5.I incompat5.X incompat6.I incompat6.X \
-nul-tab.I nul-tab.X bigfield.I bigfield.X
-run_gen = n1.O n1.E n2.O n2.E n3.O n3.E n4.O n4.E n5.O n5.E n6.O n6.E n7.O \
-n7.E n8a.O n8a.E n8b.O n8b.E n9a.O n9a.E n9b.O n9b.E n10a.O n10a.E n10b.O \
-n10b.E n11a.O n11a.E n11b.O n11b.E 01a.O 01a.E 02a.O 02a.E 02b.O 02b.E 02c.O \
-02c.E 02d.O 02d.E 02e.O 02e.E 02m.O 02m.E 02n.O 02n.E 02o.O 02o.E 02p.O 02p.E \
-03a.O 03a.E 03b.O 03b.E 03c.O 03c.E 03d.O 03d.E 03e.O 03e.E 03f.O 03f.E 03g.O \
-03g.E 03h.O 03h.E 03i.O 03i.E 04a.O 04a.E 04b.O 04b.E 04c.O 04c.E 04d.O 04d.E \
-04e.O 04e.E 05a.O 05a.E 05b.O 05b.E 05c.O 05c.E 05d.O 05d.E 05e.O 05e.E 05f.O \
-05f.E 06a.O 06a.E 06b.O 06b.E 06c.O 06c.E 06d.O 06d.E 06e.O 06e.E 06f.O 06f.E \
-07a.O 07a.E 07b.O 07b.E 07c.O 07c.E 07d.O 07d.E 08a.O 08a.E 08b.O 08b.E 09a.O \
-09a.E 09b.O 09b.E 09c.O 09c.E 09d.O 09d.E 10a.O 10a.E 10b.O 10b.E 10c.O 10c.E \
-10d.O 10d.E 10a0.O 10a0.E 10a1.O 10a1.E 10a2.O 10a2.E 10e.O 10e.E 10f.O 10f.E \
-10g.O 10g.E 11a.O 11a.E 11b.O 11b.E 11c.O 11c.E 11d.O 11d.E 12a.O 12a.E 12b.O \
-12b.E 12c.O 12c.E 12d.O 12d.E 13a.O 13a.E 13b.O 13b.E 14a.O 14a.E 14b.O 14b.E \
-15a.O 15a.E 15b.O 15b.E 15c.O 15c.E 15d.O 15d.E 15e.O 15e.E 16a.O 16a.E 17.O \
-17.E 18a.O 18a.E 18b.O 18b.E 18c.O 18c.E 18d.O 18d.E 18e.O 18e.E 19a.O 19a.E \
-19b.O 19b.E 20a.O 20a.E 21a.O 21a.E 21b.O 21b.E 21c.O 21c.E 21d.O 21d.E 21e.O \
-21e.E 21f.O 21f.E 21g.O 21g.E 22a.O 22a.E 22b.O 22b.E no-file1.O no-file1.E \
-o-no-file1.O o-no-file1.E create-empty.O create-empty.E neg-nls.O neg-nls.E \
-nul-nls.O nul-nls.E use-nl.O use-nl.E o2.O o2.E incompat1.O incompat1.E \
-incompat2.O incompat2.E incompat3.O incompat3.E incompat4.O incompat4.E \
-incompat5.O incompat5.E incompat6.O incompat6.E nul-tab.O nul-tab.E \
-bigfield.O bigfield.E
-##test-files-end
-
-EXTRA_DIST = Test.pm $x-tests $(explicit) $(maint_gen)
-noinst_SCRIPTS = $x-tests
-TESTS_ENVIRONMENT = \
- CU_TEST_NAME=`basename $(abs_srcdir)`,$$tst \
- PATH="$(VG_PATH_PREFIX)`pwd`/../../src$(PATH_SEPARATOR)$$PATH"
-
-editpl = sed -e 's,@''PERL''@,$(PERL),g' -e 's,@''srcdir''@,$(srcdir),g'
-
-TESTS = $x-tests
-
-mk_script = $(srcdir)/../mk-script
-$(srcdir)/$x-tests: $(mk_script) Test.pm Makefile.am
- test '$x' = test && prog=../../src/$x || prog=$x; \
- $(PERL) -I$(srcdir) -w -- $(mk_script) $(srcdir) $$prog > $@.n
- mv $@.n $@
- chmod 755 $@
-
-MAINTAINERCLEANFILES = $x-tests $(maint_gen)
-CLEANFILES = $(run_gen)
-
-check: $(maint_gen)
-
-$(srcdir)/Makefile.am: ../Makefile.am.in Test.pm $(mk_script)
- rm -f $@ $@t
- sed -n '1,/^##test-files-begin/p' $(srcdir)/../Makefile.am.in > $@t
- tool=`echo $(subdir)|sed 's/^tests.//;s/-test//'`; \
- echo "x = $$tool" >> $@t
- $(PERL) -I$(srcdir) -w -- $(mk_script) $(srcdir) --list >> $@t
- sed -n '/^##test-files-end/,$$p' $(srcdir)/../Makefile.am.in >> $@t
- chmod -w $@t
- mv $@t $@
diff --git a/tests/sort/Makefile.in b/tests/sort/Makefile.in
deleted file mode 100644
index cab283b..0000000
--- a/tests/sort/Makefile.in
+++ /dev/null
@@ -1,809 +0,0 @@
-# Makefile.in generated by automake 1.10 from Makefile.am.
-# @configure_input@
-
-# Copyright (C) 1994, 1995, 1996, 1997, 1998, 1999, 2000, 2001, 2002,
-# 2003, 2004, 2005, 2006 Free Software Foundation, Inc.
-# This Makefile.in is free software; the Free Software Foundation
-# gives unlimited permission to copy and/or distribute it,
-# with or without modifications, as long as this notice is preserved.
-
-# This program is distributed in the hope that it will be useful,
-# but WITHOUT ANY WARRANTY, to the extent permitted by law; without
-# even the implied warranty of MERCHANTABILITY or FITNESS FOR A
-# PARTICULAR PURPOSE.
-
-@SET_MAKE@
-
-# Make coreutils tests. -*-Makefile-*-
-
-# Copyright (C) 1997, 1998, 2000, 2003, 2004, 2006 Free Software
-# Foundation, Inc.
-
-# This program is free software; you can redistribute it and/or modify
-# it under the terms of the GNU General Public License as published by
-# the Free Software Foundation; either version 2 of the License, or
-# (at your option) any later version.
-
-# This program is distributed in the hope that it will be useful,
-# but WITHOUT ANY WARRANTY; without even the implied warranty of
-# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
-# GNU General Public License for more details.
-
-# You should have received a copy of the GNU General Public License
-# along with this program; if not, write to the Free Software
-# Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA
-# 02110-1301, USA.
-
-VPATH = @srcdir@
-pkgdatadir = $(datadir)/@PACKAGE@
-pkglibdir = $(libdir)/@PACKAGE@
-pkgincludedir = $(includedir)/@PACKAGE@
-am__cd = CDPATH="$${ZSH_VERSION+.}$(PATH_SEPARATOR)" && cd
-install_sh_DATA = $(install_sh) -c -m 644
-install_sh_PROGRAM = $(install_sh) -c
-install_sh_SCRIPT = $(install_sh) -c
-INSTALL_HEADER = $(INSTALL_DATA)
-transform = $(program_transform_name)
-NORMAL_INSTALL = :
-PRE_INSTALL = :
-POST_INSTALL = :
-NORMAL_UNINSTALL = :
-PRE_UNINSTALL = :
-POST_UNINSTALL = :
-build_triplet = @build@
-host_triplet = @host@
-subdir = tests/sort
-DIST_COMMON = $(srcdir)/Makefile.am $(srcdir)/Makefile.in
-ACLOCAL_M4 = $(top_srcdir)/aclocal.m4
-am__aclocal_m4_deps = $(top_srcdir)/m4/absolute-header.m4 \
- $(top_srcdir)/m4/acl.m4 $(top_srcdir)/m4/alloca.m4 \
- $(top_srcdir)/m4/allocsa.m4 $(top_srcdir)/m4/argmatch.m4 \
- $(top_srcdir)/m4/arpa_inet_h.m4 $(top_srcdir)/m4/assert.m4 \
- $(top_srcdir)/m4/atexit.m4 $(top_srcdir)/m4/autobuild.m4 \
- $(top_srcdir)/m4/backupfile.m4 $(top_srcdir)/m4/base64.m4 \
- $(top_srcdir)/m4/bison.m4 $(top_srcdir)/m4/boottime.m4 \
- $(top_srcdir)/m4/c-strtod.m4 $(top_srcdir)/m4/calloc.m4 \
- $(top_srcdir)/m4/canon-host.m4 \
- $(top_srcdir)/m4/canonicalize.m4 \
- $(top_srcdir)/m4/chdir-long.m4 $(top_srcdir)/m4/check-decl.m4 \
- $(top_srcdir)/m4/chown.m4 $(top_srcdir)/m4/clock_time.m4 \
- $(top_srcdir)/m4/cloexec.m4 $(top_srcdir)/m4/close-stream.m4 \
- $(top_srcdir)/m4/closeout.m4 $(top_srcdir)/m4/codeset.m4 \
- $(top_srcdir)/m4/config-h.m4 $(top_srcdir)/m4/cycle-check.m4 \
- $(top_srcdir)/m4/d-ino.m4 $(top_srcdir)/m4/d-type.m4 \
- $(top_srcdir)/m4/dirfd.m4 $(top_srcdir)/m4/dirname.m4 \
- $(top_srcdir)/m4/dos.m4 $(top_srcdir)/m4/double-slash-root.m4 \
- $(top_srcdir)/m4/dup2.m4 $(top_srcdir)/m4/eealloc.m4 \
- $(top_srcdir)/m4/eoverflow.m4 $(top_srcdir)/m4/error.m4 \
- $(top_srcdir)/m4/euidaccess-stat.m4 \
- $(top_srcdir)/m4/euidaccess.m4 $(top_srcdir)/m4/exclude.m4 \
- $(top_srcdir)/m4/exitfail.m4 $(top_srcdir)/m4/extensions.m4 \
- $(top_srcdir)/m4/fchdir.m4 $(top_srcdir)/m4/fcntl-safer.m4 \
- $(top_srcdir)/m4/fcntl_h.m4 $(top_srcdir)/m4/fd-reopen.m4 \
- $(top_srcdir)/m4/file-type.m4 $(top_srcdir)/m4/fileblocks.m4 \
- $(top_srcdir)/m4/filemode.m4 $(top_srcdir)/m4/filenamecat.m4 \
- $(top_srcdir)/m4/flexmember.m4 $(top_srcdir)/m4/fnmatch.m4 \
- $(top_srcdir)/m4/fpending.m4 $(top_srcdir)/m4/fprintftime.m4 \
- $(top_srcdir)/m4/free.m4 $(top_srcdir)/m4/fstypename.m4 \
- $(top_srcdir)/m4/fsusage.m4 $(top_srcdir)/m4/ftruncate.m4 \
- $(top_srcdir)/m4/fts.m4 $(top_srcdir)/m4/getaddrinfo.m4 \
- $(top_srcdir)/m4/getcwd-abort-bug.m4 \
- $(top_srcdir)/m4/getcwd-path-max.m4 $(top_srcdir)/m4/getcwd.m4 \
- $(top_srcdir)/m4/getdate.m4 $(top_srcdir)/m4/getdelim.m4 \
- $(top_srcdir)/m4/getgroups.m4 $(top_srcdir)/m4/gethostname.m4 \
- $(top_srcdir)/m4/gethrxtime.m4 $(top_srcdir)/m4/getline.m4 \
- $(top_srcdir)/m4/getloadavg.m4 $(top_srcdir)/m4/getndelim2.m4 \
- $(top_srcdir)/m4/getopt.m4 $(top_srcdir)/m4/getpagesize.m4 \
- $(top_srcdir)/m4/getpass.m4 $(top_srcdir)/m4/gettext.m4 \
- $(top_srcdir)/m4/gettime.m4 $(top_srcdir)/m4/gettimeofday.m4 \
- $(top_srcdir)/m4/getugroups.m4 \
- $(top_srcdir)/m4/getusershell.m4 $(top_srcdir)/m4/glibc21.m4 \
- $(top_srcdir)/m4/gnulib-common.m4 \
- $(top_srcdir)/m4/gnulib-comp.m4 \
- $(top_srcdir)/m4/group-member.m4 \
- $(top_srcdir)/m4/hard-locale.m4 $(top_srcdir)/m4/hash.m4 \
- $(top_srcdir)/m4/host-os.m4 $(top_srcdir)/m4/human.m4 \
- $(top_srcdir)/m4/i-ring.m4 $(top_srcdir)/m4/iconv.m4 \
- $(top_srcdir)/m4/idcache.m4 $(top_srcdir)/m4/inet_ntop.m4 \
- $(top_srcdir)/m4/inline.m4 $(top_srcdir)/m4/intmax_t.m4 \
- $(top_srcdir)/m4/inttostr.m4 $(top_srcdir)/m4/inttypes-pri.m4 \
- $(top_srcdir)/m4/inttypes.m4 $(top_srcdir)/m4/inttypes_h.m4 \
- $(top_srcdir)/m4/isapipe.m4 $(top_srcdir)/m4/jm-macros.m4 \
- $(top_srcdir)/m4/jm-winsz1.m4 $(top_srcdir)/m4/jm-winsz2.m4 \
- $(top_srcdir)/m4/lchmod.m4 $(top_srcdir)/m4/lchown.m4 \
- $(top_srcdir)/m4/lib-check.m4 $(top_srcdir)/m4/lib-ignore.m4 \
- $(top_srcdir)/m4/lib-ld.m4 $(top_srcdir)/m4/lib-link.m4 \
- $(top_srcdir)/m4/lib-prefix.m4 $(top_srcdir)/m4/link-follow.m4 \
- $(top_srcdir)/m4/localcharset.m4 \
- $(top_srcdir)/m4/long-options.m4 \
- $(top_srcdir)/m4/longdouble.m4 $(top_srcdir)/m4/longlong.m4 \
- $(top_srcdir)/m4/ls-mntd-fs.m4 $(top_srcdir)/m4/lstat.m4 \
- $(top_srcdir)/m4/mbchar.m4 $(top_srcdir)/m4/mbiter.m4 \
- $(top_srcdir)/m4/mbrtowc.m4 $(top_srcdir)/m4/mbscasecmp.m4 \
- $(top_srcdir)/m4/mbstate_t.m4 $(top_srcdir)/m4/mbswidth.m4 \
- $(top_srcdir)/m4/md5.m4 $(top_srcdir)/m4/memcasecmp.m4 \
- $(top_srcdir)/m4/memchr.m4 $(top_srcdir)/m4/memcmp.m4 \
- $(top_srcdir)/m4/memcoll.m4 $(top_srcdir)/m4/memcpy.m4 \
- $(top_srcdir)/m4/memmove.m4 $(top_srcdir)/m4/mempcpy.m4 \
- $(top_srcdir)/m4/memrchr.m4 $(top_srcdir)/m4/memset.m4 \
- $(top_srcdir)/m4/memxfrm.m4 $(top_srcdir)/m4/mkancesdirs.m4 \
- $(top_srcdir)/m4/mkdir-p.m4 $(top_srcdir)/m4/mkdir-slash.m4 \
- $(top_srcdir)/m4/mkstemp.m4 $(top_srcdir)/m4/mktime.m4 \
- $(top_srcdir)/m4/modechange.m4 $(top_srcdir)/m4/mountlist.m4 \
- $(top_srcdir)/m4/mpsort.m4 $(top_srcdir)/m4/nanosleep.m4 \
- $(top_srcdir)/m4/netinet_in_h.m4 $(top_srcdir)/m4/nls.m4 \
- $(top_srcdir)/m4/openat.m4 $(top_srcdir)/m4/pathmax.m4 \
- $(top_srcdir)/m4/perl.m4 $(top_srcdir)/m4/physmem.m4 \
- $(top_srcdir)/m4/po.m4 $(top_srcdir)/m4/posixtm.m4 \
- $(top_srcdir)/m4/posixver.m4 $(top_srcdir)/m4/prereq.m4 \
- $(top_srcdir)/m4/progtest.m4 $(top_srcdir)/m4/putenv.m4 \
- $(top_srcdir)/m4/quote.m4 $(top_srcdir)/m4/quotearg.m4 \
- $(top_srcdir)/m4/randint.m4 $(top_srcdir)/m4/randperm.m4 \
- $(top_srcdir)/m4/randread.m4 $(top_srcdir)/m4/readlink.m4 \
- $(top_srcdir)/m4/readtokens.m4 $(top_srcdir)/m4/readutmp.m4 \
- $(top_srcdir)/m4/regex.m4 \
- $(top_srcdir)/m4/rename-dest-slash.m4 \
- $(top_srcdir)/m4/rename.m4 $(top_srcdir)/m4/rmdir-errno.m4 \
- $(top_srcdir)/m4/rmdir.m4 $(top_srcdir)/m4/root-dev-ino.m4 \
- $(top_srcdir)/m4/rpmatch.m4 $(top_srcdir)/m4/safe-read.m4 \
- $(top_srcdir)/m4/safe-write.m4 $(top_srcdir)/m4/same.m4 \
- $(top_srcdir)/m4/save-cwd.m4 $(top_srcdir)/m4/savedir.m4 \
- $(top_srcdir)/m4/savewd.m4 $(top_srcdir)/m4/setenv.m4 \
- $(top_srcdir)/m4/settime.m4 $(top_srcdir)/m4/sha1.m4 \
- $(top_srcdir)/m4/sha256.m4 $(top_srcdir)/m4/sha512.m4 \
- $(top_srcdir)/m4/sig2str.m4 $(top_srcdir)/m4/snprintf.m4 \
- $(top_srcdir)/m4/socklen.m4 $(top_srcdir)/m4/sockpfaf.m4 \
- $(top_srcdir)/m4/ssize_t.m4 $(top_srcdir)/m4/st_dm_mode.m4 \
- $(top_srcdir)/m4/stat-prog.m4 $(top_srcdir)/m4/stat-time.m4 \
- $(top_srcdir)/m4/stdarg.m4 $(top_srcdir)/m4/stdbool.m4 \
- $(top_srcdir)/m4/stdint.m4 $(top_srcdir)/m4/stdint_h.m4 \
- $(top_srcdir)/m4/stdio-safer.m4 $(top_srcdir)/m4/stdio_h.m4 \
- $(top_srcdir)/m4/stdlib-safer.m4 $(top_srcdir)/m4/stdlib_h.m4 \
- $(top_srcdir)/m4/stpcpy.m4 $(top_srcdir)/m4/strcspn.m4 \
- $(top_srcdir)/m4/strdup.m4 $(top_srcdir)/m4/strftime.m4 \
- $(top_srcdir)/m4/string_h.m4 $(top_srcdir)/m4/strndup.m4 \
- $(top_srcdir)/m4/strnlen.m4 $(top_srcdir)/m4/strnumcmp.m4 \
- $(top_srcdir)/m4/strpbrk.m4 $(top_srcdir)/m4/strtod.m4 \
- $(top_srcdir)/m4/strtoimax.m4 $(top_srcdir)/m4/strtol.m4 \
- $(top_srcdir)/m4/strtoll.m4 $(top_srcdir)/m4/strtoul.m4 \
- $(top_srcdir)/m4/strtoull.m4 $(top_srcdir)/m4/strtoumax.m4 \
- $(top_srcdir)/m4/strverscmp.m4 \
- $(top_srcdir)/m4/sys_socket_h.m4 \
- $(top_srcdir)/m4/sys_stat_h.m4 $(top_srcdir)/m4/sys_time_h.m4 \
- $(top_srcdir)/m4/tempname.m4 $(top_srcdir)/m4/time_h.m4 \
- $(top_srcdir)/m4/time_r.m4 $(top_srcdir)/m4/timespec.m4 \
- $(top_srcdir)/m4/tm_gmtoff.m4 $(top_srcdir)/m4/tzset.m4 \
- $(top_srcdir)/m4/unicodeio.m4 $(top_srcdir)/m4/unistd-safer.m4 \
- $(top_srcdir)/m4/unistd_h.m4 $(top_srcdir)/m4/unlink-busy.m4 \
- $(top_srcdir)/m4/unlinkdir.m4 $(top_srcdir)/m4/unlocked-io.m4 \
- $(top_srcdir)/m4/uptime.m4 $(top_srcdir)/m4/userspec.m4 \
- $(top_srcdir)/m4/utimbuf.m4 $(top_srcdir)/m4/utime.m4 \
- $(top_srcdir)/m4/utimecmp.m4 $(top_srcdir)/m4/utimens.m4 \
- $(top_srcdir)/m4/utimes-null.m4 $(top_srcdir)/m4/utimes.m4 \
- $(top_srcdir)/m4/vasnprintf.m4 $(top_srcdir)/m4/vasprintf.m4 \
- $(top_srcdir)/m4/wchar.m4 $(top_srcdir)/m4/wchar_t.m4 \
- $(top_srcdir)/m4/wctype.m4 $(top_srcdir)/m4/wcwidth.m4 \
- $(top_srcdir)/m4/wint_t.m4 $(top_srcdir)/m4/xalloc.m4 \
- $(top_srcdir)/m4/xfts.m4 $(top_srcdir)/m4/xgetcwd.m4 \
- $(top_srcdir)/m4/xnanosleep.m4 $(top_srcdir)/m4/xstrndup.m4 \
- $(top_srcdir)/m4/xstrtod.m4 $(top_srcdir)/m4/xstrtol.m4 \
- $(top_srcdir)/m4/yesno.m4 $(top_srcdir)/configure.ac
-am__configure_deps = $(am__aclocal_m4_deps) $(CONFIGURE_DEPENDENCIES) \
- $(ACLOCAL_M4)
-mkinstalldirs = $(install_sh) -d
-CONFIG_HEADER = $(top_builddir)/lib/config.h
-CONFIG_CLEAN_FILES =
-SCRIPTS = $(noinst_SCRIPTS)
-SOURCES =
-DIST_SOURCES =
-DISTFILES = $(DIST_COMMON) $(DIST_SOURCES) $(TEXINFOS) $(EXTRA_DIST)
-ABSOLUTE_DIRENT_H = @ABSOLUTE_DIRENT_H@
-ABSOLUTE_FCNTL_H = @ABSOLUTE_FCNTL_H@
-ABSOLUTE_INTTYPES_H = @ABSOLUTE_INTTYPES_H@
-ABSOLUTE_NETINET_IN_H = @ABSOLUTE_NETINET_IN_H@
-ABSOLUTE_STDINT_H = @ABSOLUTE_STDINT_H@
-ABSOLUTE_STDIO_H = @ABSOLUTE_STDIO_H@
-ABSOLUTE_STDLIB_H = @ABSOLUTE_STDLIB_H@
-ABSOLUTE_STRING_H = @ABSOLUTE_STRING_H@
-ABSOLUTE_SYS_SOCKET_H = @ABSOLUTE_SYS_SOCKET_H@
-ABSOLUTE_SYS_STAT_H = @ABSOLUTE_SYS_STAT_H@
-ABSOLUTE_SYS_TIME_H = @ABSOLUTE_SYS_TIME_H@
-ABSOLUTE_TIME_H = @ABSOLUTE_TIME_H@
-ABSOLUTE_UNISTD_H = @ABSOLUTE_UNISTD_H@
-ABSOLUTE_WCHAR_H = @ABSOLUTE_WCHAR_H@
-ABSOLUTE_WCTYPE_H = @ABSOLUTE_WCTYPE_H@
-ACLOCAL = @ACLOCAL@
-ALLOCA = @ALLOCA@
-ALLOCA_H = @ALLOCA_H@
-AMTAR = @AMTAR@
-ARPA_INET_H = @ARPA_INET_H@
-AUTOCONF = @AUTOCONF@
-AUTOHEADER = @AUTOHEADER@
-AUTOMAKE = @AUTOMAKE@
-AWK = @AWK@
-BITSIZEOF_PTRDIFF_T = @BITSIZEOF_PTRDIFF_T@
-BITSIZEOF_SIG_ATOMIC_T = @BITSIZEOF_SIG_ATOMIC_T@
-BITSIZEOF_SIZE_T = @BITSIZEOF_SIZE_T@
-BITSIZEOF_WCHAR_T = @BITSIZEOF_WCHAR_T@
-BITSIZEOF_WINT_T = @BITSIZEOF_WINT_T@
-CC = @CC@
-CCDEPMODE = @CCDEPMODE@
-CFLAGS = @CFLAGS@
-CPP = @CPP@
-CPPFLAGS = @CPPFLAGS@
-CYGPATH_W = @CYGPATH_W@
-DEFAULT_POSIX2_VERSION = @DEFAULT_POSIX2_VERSION@
-DEFS = @DEFS@
-DEPDIR = @DEPDIR@
-DF_PROG = @DF_PROG@
-DIRENT_H = @DIRENT_H@
-ECHO_C = @ECHO_C@
-ECHO_N = @ECHO_N@
-ECHO_T = @ECHO_T@
-EGREP = @EGREP@
-EOVERFLOW = @EOVERFLOW@
-EXEEXT = @EXEEXT@
-FCNTL_H = @FCNTL_H@
-FNMATCH_H = @FNMATCH_H@
-GETLOADAVG_LIBS = @GETLOADAVG_LIBS@
-GETOPT_H = @GETOPT_H@
-GLIBC21 = @GLIBC21@
-GMSGFMT = @GMSGFMT@
-GMSGFMT_015 = @GMSGFMT_015@
-GNULIB_CHOWN = @GNULIB_CHOWN@
-GNULIB_DUP2 = @GNULIB_DUP2@
-GNULIB_FCHDIR = @GNULIB_FCHDIR@
-GNULIB_FPRINTF_POSIX = @GNULIB_FPRINTF_POSIX@
-GNULIB_FTRUNCATE = @GNULIB_FTRUNCATE@
-GNULIB_GETCWD = @GNULIB_GETCWD@
-GNULIB_GETLOGIN_R = @GNULIB_GETLOGIN_R@
-GNULIB_GETSUBOPT = @GNULIB_GETSUBOPT@
-GNULIB_IMAXABS = @GNULIB_IMAXABS@
-GNULIB_IMAXDIV = @GNULIB_IMAXDIV@
-GNULIB_MBSCASECMP = @GNULIB_MBSCASECMP@
-GNULIB_MBSCASESTR = @GNULIB_MBSCASESTR@
-GNULIB_MBSCHR = @GNULIB_MBSCHR@
-GNULIB_MBSCSPN = @GNULIB_MBSCSPN@
-GNULIB_MBSLEN = @GNULIB_MBSLEN@
-GNULIB_MBSNCASECMP = @GNULIB_MBSNCASECMP@
-GNULIB_MBSPBRK = @GNULIB_MBSPBRK@
-GNULIB_MBSPCASECMP = @GNULIB_MBSPCASECMP@
-GNULIB_MBSRCHR = @GNULIB_MBSRCHR@
-GNULIB_MBSSEP = @GNULIB_MBSSEP@
-GNULIB_MBSSPN = @GNULIB_MBSSPN@
-GNULIB_MBSSTR = @GNULIB_MBSSTR@
-GNULIB_MBSTOK_R = @GNULIB_MBSTOK_R@
-GNULIB_MEMMEM = @GNULIB_MEMMEM@
-GNULIB_MEMPCPY = @GNULIB_MEMPCPY@
-GNULIB_MEMRCHR = @GNULIB_MEMRCHR@
-GNULIB_MKDTEMP = @GNULIB_MKDTEMP@
-GNULIB_MKSTEMP = @GNULIB_MKSTEMP@
-GNULIB_PRINTF_POSIX = @GNULIB_PRINTF_POSIX@
-GNULIB_READLINK = @GNULIB_READLINK@
-GNULIB_SNPRINTF = @GNULIB_SNPRINTF@
-GNULIB_SPRINTF_POSIX = @GNULIB_SPRINTF_POSIX@
-GNULIB_STPCPY = @GNULIB_STPCPY@
-GNULIB_STPNCPY = @GNULIB_STPNCPY@
-GNULIB_STRCASESTR = @GNULIB_STRCASESTR@
-GNULIB_STRCHRNUL = @GNULIB_STRCHRNUL@
-GNULIB_STRDUP = @GNULIB_STRDUP@
-GNULIB_STRNDUP = @GNULIB_STRNDUP@
-GNULIB_STRNLEN = @GNULIB_STRNLEN@
-GNULIB_STRPBRK = @GNULIB_STRPBRK@
-GNULIB_STRSEP = @GNULIB_STRSEP@
-GNULIB_STRTOIMAX = @GNULIB_STRTOIMAX@
-GNULIB_STRTOK_R = @GNULIB_STRTOK_R@
-GNULIB_STRTOUMAX = @GNULIB_STRTOUMAX@
-GNULIB_VFPRINTF_POSIX = @GNULIB_VFPRINTF_POSIX@
-GNULIB_VPRINTF_POSIX = @GNULIB_VPRINTF_POSIX@
-GNULIB_VSNPRINTF = @GNULIB_VSNPRINTF@
-GNULIB_VSPRINTF_POSIX = @GNULIB_VSPRINTF_POSIX@
-GNU_PACKAGE = @GNU_PACKAGE@
-GREP = @GREP@
-HAVE_DECL_GETLOGIN_R = @HAVE_DECL_GETLOGIN_R@
-HAVE_DECL_IMAXABS = @HAVE_DECL_IMAXABS@
-HAVE_DECL_IMAXDIV = @HAVE_DECL_IMAXDIV@
-HAVE_DECL_MEMMEM = @HAVE_DECL_MEMMEM@
-HAVE_DECL_MEMRCHR = @HAVE_DECL_MEMRCHR@
-HAVE_DECL_SNPRINTF = @HAVE_DECL_SNPRINTF@
-HAVE_DECL_STRDUP = @HAVE_DECL_STRDUP@
-HAVE_DECL_STRNCASECMP = @HAVE_DECL_STRNCASECMP@
-HAVE_DECL_STRNDUP = @HAVE_DECL_STRNDUP@
-HAVE_DECL_STRNLEN = @HAVE_DECL_STRNLEN@
-HAVE_DECL_STRTOIMAX = @HAVE_DECL_STRTOIMAX@
-HAVE_DECL_STRTOK_R = @HAVE_DECL_STRTOK_R@
-HAVE_DECL_STRTOUMAX = @HAVE_DECL_STRTOUMAX@
-HAVE_DECL_VSNPRINTF = @HAVE_DECL_VSNPRINTF@
-HAVE_DUP2 = @HAVE_DUP2@
-HAVE_FTRUNCATE = @HAVE_FTRUNCATE@
-HAVE_GETSUBOPT = @HAVE_GETSUBOPT@
-HAVE_INTTYPES_H = @HAVE_INTTYPES_H@
-HAVE_LONG_LONG_INT = @HAVE_LONG_LONG_INT@
-HAVE_MEMPCPY = @HAVE_MEMPCPY@
-HAVE_MKDTEMP = @HAVE_MKDTEMP@
-HAVE_NETINET_IN_H = @HAVE_NETINET_IN_H@
-HAVE_READLINK = @HAVE_READLINK@
-HAVE_SIGNED_SIG_ATOMIC_T = @HAVE_SIGNED_SIG_ATOMIC_T@
-HAVE_SIGNED_WCHAR_T = @HAVE_SIGNED_WCHAR_T@
-HAVE_SIGNED_WINT_T = @HAVE_SIGNED_WINT_T@
-HAVE_STDINT_H = @HAVE_STDINT_H@
-HAVE_STPCPY = @HAVE_STPCPY@
-HAVE_STPNCPY = @HAVE_STPNCPY@
-HAVE_STRCASECMP = @HAVE_STRCASECMP@
-HAVE_STRCASESTR = @HAVE_STRCASESTR@
-HAVE_STRCHRNUL = @HAVE_STRCHRNUL@
-HAVE_STRNDUP = @HAVE_STRNDUP@
-HAVE_STRPBRK = @HAVE_STRPBRK@
-HAVE_STRSEP = @HAVE_STRSEP@
-HAVE_STRUCT_TIMEVAL = @HAVE_STRUCT_TIMEVAL@
-HAVE_SYS_BITYPES_H = @HAVE_SYS_BITYPES_H@
-HAVE_SYS_INTTYPES_H = @HAVE_SYS_INTTYPES_H@
-HAVE_SYS_SOCKET_H = @HAVE_SYS_SOCKET_H@
-HAVE_SYS_TIME_H = @HAVE_SYS_TIME_H@
-HAVE_SYS_TYPES_H = @HAVE_SYS_TYPES_H@
-HAVE_UNISTD_H = @HAVE_UNISTD_H@
-HAVE_UNSIGNED_LONG_LONG_INT = @HAVE_UNSIGNED_LONG_LONG_INT@
-HAVE_WCTYPE_H = @HAVE_WCTYPE_H@
-HAVE_WINSOCK2_H = @HAVE_WINSOCK2_H@
-HAVE_WINT_T = @HAVE_WINT_T@
-HAVE_WS2TCPIP_H = @HAVE_WS2TCPIP_H@
-HAVE__BOOL = @HAVE__BOOL@
-HELP2MAN = @HELP2MAN@
-INSTALL = @INSTALL@
-INSTALL_DATA = @INSTALL_DATA@
-INSTALL_PROGRAM = @INSTALL_PROGRAM@
-INSTALL_SCRIPT = @INSTALL_SCRIPT@
-INSTALL_STRIP_PROGRAM = @INSTALL_STRIP_PROGRAM@
-INTLLIBS = @INTLLIBS@
-INTL_MACOSX_LIBS = @INTL_MACOSX_LIBS@
-INTTYPES_H = @INTTYPES_H@
-KMEM_GROUP = @KMEM_GROUP@
-LDFLAGS = @LDFLAGS@
-LIBCOREUTILS_LIBDEPS = @LIBCOREUTILS_LIBDEPS@
-LIBCOREUTILS_LTLIBDEPS = @LIBCOREUTILS_LTLIBDEPS@
-LIBICONV = @LIBICONV@
-LIBINTL = @LIBINTL@
-LIBOBJS = @LIBOBJS@
-LIBS = @LIBS@
-LIB_ACL = @LIB_ACL@
-LIB_ACL_TRIVIAL = @LIB_ACL_TRIVIAL@
-LIB_CLOCK_GETTIME = @LIB_CLOCK_GETTIME@
-LIB_CRYPT = @LIB_CRYPT@
-LIB_EACCESS = @LIB_EACCESS@
-LIB_FDATASYNC = @LIB_FDATASYNC@
-LIB_GETHRXTIME = @LIB_GETHRXTIME@
-LIB_NANOSLEEP = @LIB_NANOSLEEP@
-LN_S = @LN_S@
-LTLIBICONV = @LTLIBICONV@
-LTLIBINTL = @LTLIBINTL@
-LTLIBOBJS = @LTLIBOBJS@
-MAKEINFO = @MAKEINFO@
-MAN = @MAN@
-MKDIR_P = @MKDIR_P@
-MSGFMT = @MSGFMT@
-MSGFMT_015 = @MSGFMT_015@
-MSGMERGE = @MSGMERGE@
-NEED_SETGID = @NEED_SETGID@
-NETINET_IN_H = @NETINET_IN_H@
-OBJEXT = @OBJEXT@
-OPTIONAL_BIN_PROGS = @OPTIONAL_BIN_PROGS@
-PACKAGE = @PACKAGE@
-PACKAGE_BUGREPORT = @PACKAGE_BUGREPORT@
-PACKAGE_NAME = @PACKAGE_NAME@
-PACKAGE_STRING = @PACKAGE_STRING@
-PACKAGE_TARNAME = @PACKAGE_TARNAME@
-PACKAGE_VERSION = @PACKAGE_VERSION@
-PATH_SEPARATOR = @PATH_SEPARATOR@
-PERL = @PERL@
-POSUB = @POSUB@
-POW_LIB = @POW_LIB@
-PRIPTR_PREFIX = @PRIPTR_PREFIX@
-PRI_MACROS_BROKEN = @PRI_MACROS_BROKEN@
-PTRDIFF_T_SUFFIX = @PTRDIFF_T_SUFFIX@
-RANLIB = @RANLIB@
-REPLACE_CHOWN = @REPLACE_CHOWN@
-REPLACE_FCHDIR = @REPLACE_FCHDIR@
-REPLACE_FPRINTF = @REPLACE_FPRINTF@
-REPLACE_GETCWD = @REPLACE_GETCWD@
-REPLACE_GETTIMEOFDAY = @REPLACE_GETTIMEOFDAY@
-REPLACE_LOCALTIME_R = @REPLACE_LOCALTIME_R@
-REPLACE_MKSTEMP = @REPLACE_MKSTEMP@
-REPLACE_NANOSLEEP = @REPLACE_NANOSLEEP@
-REPLACE_PRINTF = @REPLACE_PRINTF@
-REPLACE_SNPRINTF = @REPLACE_SNPRINTF@
-REPLACE_SPRINTF = @REPLACE_SPRINTF@
-REPLACE_STRPTIME = @REPLACE_STRPTIME@
-REPLACE_TIMEGM = @REPLACE_TIMEGM@
-REPLACE_VFPRINTF = @REPLACE_VFPRINTF@
-REPLACE_VPRINTF = @REPLACE_VPRINTF@
-REPLACE_VSNPRINTF = @REPLACE_VSNPRINTF@
-REPLACE_VSPRINTF = @REPLACE_VSPRINTF@
-SEQ_LIBM = @SEQ_LIBM@
-SET_MAKE = @SET_MAKE@
-SHELL = @SHELL@
-SIG_ATOMIC_T_SUFFIX = @SIG_ATOMIC_T_SUFFIX@
-SIZE_T_SUFFIX = @SIZE_T_SUFFIX@
-STDBOOL_H = @STDBOOL_H@
-STDINT_H = @STDINT_H@
-STRIP = @STRIP@
-SYS_SOCKET_H = @SYS_SOCKET_H@
-SYS_STAT_H = @SYS_STAT_H@
-SYS_TIME_H = @SYS_TIME_H@
-SYS_TIME_H_DEFINES_STRUCT_TIMESPEC = @SYS_TIME_H_DEFINES_STRUCT_TIMESPEC@
-TIME_H_DEFINES_STRUCT_TIMESPEC = @TIME_H_DEFINES_STRUCT_TIMESPEC@
-U = @U@
-USE_NLS = @USE_NLS@
-VERSION = @VERSION@
-WCHAR_H = @WCHAR_H@
-WCHAR_T_SUFFIX = @WCHAR_T_SUFFIX@
-WCTYPE_H = @WCTYPE_H@
-WINT_T_SUFFIX = @WINT_T_SUFFIX@
-XGETTEXT = @XGETTEXT@
-XGETTEXT_015 = @XGETTEXT_015@
-YACC = @YACC@
-YFLAGS = @YFLAGS@
-abs_builddir = @abs_builddir@
-abs_srcdir = @abs_srcdir@
-abs_top_builddir = @abs_top_builddir@
-abs_top_srcdir = @abs_top_srcdir@
-ac_ct_CC = @ac_ct_CC@
-am__include = @am__include@
-am__leading_dot = @am__leading_dot@
-am__quote = @am__quote@
-am__tar = @am__tar@
-am__untar = @am__untar@
-bindir = @bindir@
-build = @build@
-build_alias = @build_alias@
-build_cpu = @build_cpu@
-build_os = @build_os@
-build_vendor = @build_vendor@
-builddir = @builddir@
-datadir = @datadir@
-datarootdir = @datarootdir@
-docdir = @docdir@
-dvidir = @dvidir@
-exec_prefix = @exec_prefix@
-gl_LIBOBJS = @gl_LIBOBJS@
-gl_LTLIBOBJS = @gl_LTLIBOBJS@
-host = @host@
-host_alias = @host_alias@
-host_cpu = @host_cpu@
-host_os = @host_os@
-host_vendor = @host_vendor@
-htmldir = @htmldir@
-includedir = @includedir@
-infodir = @infodir@
-install_sh = @install_sh@
-libdir = @libdir@
-libexecdir = @libexecdir@
-localedir = @localedir@
-localstatedir = @localstatedir@
-mandir = @mandir@
-mkdir_p = @mkdir_p@
-oldincludedir = @oldincludedir@
-pdfdir = @pdfdir@
-prefix = @prefix@
-program_transform_name = @program_transform_name@
-psdir = @psdir@
-sbindir = @sbindir@
-sharedstatedir = @sharedstatedir@
-srcdir = @srcdir@
-sysconfdir = @sysconfdir@
-target_alias = @target_alias@
-top_builddir = @top_builddir@
-top_srcdir = @top_srcdir@
-x = sort
-explicit =
-maint_gen = n1.I n1.X n2.I n2.X n3.I n3.X n4.I n4.X n5.I n5.X n6.I n6.X n7.I \
-n7.X n8a.I n8a.X n8b.I n8b.X n9a.I n9a.X n9b.I n9b.X n10a.I n10a.X n10b.I \
-n10b.X n11a.I n11a.X n11b.I n11b.X 01a.I 01a.X 02a.I 02a.X 02b.I 02b.X 02c.I \
-02c.X 02d.I 02d.X 02e.I 02e.X 02m.I 02m.X 02n.I 02n.X 02o.I 02o.X 02p.I 02p.X \
-03a.I 03a.X 03b.I 03b.X 03c.I 03c.X 03d.I 03d.X 03e.I 03e.X 03f.I 03f.X 03g.I \
-03g.X 03h.I 03h.X 03i.I 03i.X 04a.I 04a.X 04b.I 04b.X 04c.I 04c.X 04d.I 04d.X \
-04e.I 04e.X 05a.I 05a.X 05b.I 05b.X 05c.I 05c.X 05d.I 05d.X 05e.I 05e.X 05f.I \
-05f.X 06a.I 06a.X 06b.I 06b.X 06c.I 06c.X 06d.I 06d.X 06e.I 06e.X 06f.I 06f.X \
-07a.I 07a.X 07b.I 07b.X 07c.I 07c.X 07d.I 07d.X 08a.I 08a.X 08b.I 08b.X 09a.I \
-09a.X 09b.I 09b.X 09c.I 09c.X 09d.I 09d.X 10a.I 10a.X 10b.I 10b.X 10c.I 10c.X \
-10d.I 10d.X 10a0.I 10a0.X 10a1.I 10a1.X 10a2.I 10a2.X 10e.I 10e.X 10f.I 10f.X \
-10g.I 10g.X 11a.I 11a.X 11b.I 11b.X 11c.I 11c.X 11d.I 11d.X 12a.I 12a.X 12b.I \
-12b.X 12c.I 12c.X 12d.I 12d.X 13a.I 13a.X 13b.I 13b.X 14a.I 14a.X 14b.I 14b.X \
-15a.I 15a.X 15b.I 15b.X 15c.I 15c.X 15d.I 15d.X 15e.I 15e.X 16a.I 16a.X 17.I \
-17.X 18a.I 18a.X 18b.I 18b.X 18c.I 18c.X 18d.I 18d.X 18e.I 18e.X 19a.I 19a.X \
-19b.I 19b.X 20a.I 20a.X 21a.I 21a.X 21b.I 21b.X 21c.I 21c.X 21d.I 21d.X 21e.I \
-21e.X 21f.I 21f.X 21g.I 21g.X 22a.I 22a.X 22b.I 22b.X no-file1.X o-no-file1.X \
-create-empty.X neg-nls.I neg-nls.X nul-nls.I nul-nls.X use-nl.I use-nl.X o2.I \
-o2.X incompat1.I incompat1.X incompat2.I incompat2.X incompat3.I incompat3.X \
-incompat4.I incompat4.X incompat5.I incompat5.X incompat6.I incompat6.X \
-nul-tab.I nul-tab.X bigfield.I bigfield.X
-
-run_gen = n1.O n1.E n2.O n2.E n3.O n3.E n4.O n4.E n5.O n5.E n6.O n6.E n7.O \
-n7.E n8a.O n8a.E n8b.O n8b.E n9a.O n9a.E n9b.O n9b.E n10a.O n10a.E n10b.O \
-n10b.E n11a.O n11a.E n11b.O n11b.E 01a.O 01a.E 02a.O 02a.E 02b.O 02b.E 02c.O \
-02c.E 02d.O 02d.E 02e.O 02e.E 02m.O 02m.E 02n.O 02n.E 02o.O 02o.E 02p.O 02p.E \
-03a.O 03a.E 03b.O 03b.E 03c.O 03c.E 03d.O 03d.E 03e.O 03e.E 03f.O 03f.E 03g.O \
-03g.E 03h.O 03h.E 03i.O 03i.E 04a.O 04a.E 04b.O 04b.E 04c.O 04c.E 04d.O 04d.E \
-04e.O 04e.E 05a.O 05a.E 05b.O 05b.E 05c.O 05c.E 05d.O 05d.E 05e.O 05e.E 05f.O \
-05f.E 06a.O 06a.E 06b.O 06b.E 06c.O 06c.E 06d.O 06d.E 06e.O 06e.E 06f.O 06f.E \
-07a.O 07a.E 07b.O 07b.E 07c.O 07c.E 07d.O 07d.E 08a.O 08a.E 08b.O 08b.E 09a.O \
-09a.E 09b.O 09b.E 09c.O 09c.E 09d.O 09d.E 10a.O 10a.E 10b.O 10b.E 10c.O 10c.E \
-10d.O 10d.E 10a0.O 10a0.E 10a1.O 10a1.E 10a2.O 10a2.E 10e.O 10e.E 10f.O 10f.E \
-10g.O 10g.E 11a.O 11a.E 11b.O 11b.E 11c.O 11c.E 11d.O 11d.E 12a.O 12a.E 12b.O \
-12b.E 12c.O 12c.E 12d.O 12d.E 13a.O 13a.E 13b.O 13b.E 14a.O 14a.E 14b.O 14b.E \
-15a.O 15a.E 15b.O 15b.E 15c.O 15c.E 15d.O 15d.E 15e.O 15e.E 16a.O 16a.E 17.O \
-17.E 18a.O 18a.E 18b.O 18b.E 18c.O 18c.E 18d.O 18d.E 18e.O 18e.E 19a.O 19a.E \
-19b.O 19b.E 20a.O 20a.E 21a.O 21a.E 21b.O 21b.E 21c.O 21c.E 21d.O 21d.E 21e.O \
-21e.E 21f.O 21f.E 21g.O 21g.E 22a.O 22a.E 22b.O 22b.E no-file1.O no-file1.E \
-o-no-file1.O o-no-file1.E create-empty.O create-empty.E neg-nls.O neg-nls.E \
-nul-nls.O nul-nls.E use-nl.O use-nl.E o2.O o2.E incompat1.O incompat1.E \
-incompat2.O incompat2.E incompat3.O incompat3.E incompat4.O incompat4.E \
-incompat5.O incompat5.E incompat6.O incompat6.E nul-tab.O nul-tab.E \
-bigfield.O bigfield.E
-
-EXTRA_DIST = Test.pm $x-tests $(explicit) $(maint_gen)
-noinst_SCRIPTS = $x-tests
-TESTS_ENVIRONMENT = \
- CU_TEST_NAME=`basename $(abs_srcdir)`,$$tst \
- PATH="$(VG_PATH_PREFIX)`pwd`/../../src$(PATH_SEPARATOR)$$PATH"
-
-editpl = sed -e 's,@''PERL''@,$(PERL),g' -e 's,@''srcdir''@,$(srcdir),g'
-TESTS = $x-tests
-mk_script = $(srcdir)/../mk-script
-MAINTAINERCLEANFILES = $x-tests $(maint_gen)
-CLEANFILES = $(run_gen)
-all: all-am
-
-.SUFFIXES:
-$(srcdir)/Makefile.in: $(srcdir)/Makefile.am $(am__configure_deps)
- @for dep in $?; do \
- case '$(am__configure_deps)' in \
- *$$dep*) \
- cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh \
- && exit 0; \
- exit 1;; \
- esac; \
- done; \
- echo ' cd $(top_srcdir) && $(AUTOMAKE) --gnu tests/sort/Makefile'; \
- cd $(top_srcdir) && \
- $(AUTOMAKE) --gnu tests/sort/Makefile
-.PRECIOUS: Makefile
-Makefile: $(srcdir)/Makefile.in $(top_builddir)/config.status
- @case '$?' in \
- *config.status*) \
- cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh;; \
- *) \
- echo ' cd $(top_builddir) && $(SHELL) ./config.status $(subdir)/$@ $(am__depfiles_maybe)'; \
- cd $(top_builddir) && $(SHELL) ./config.status $(subdir)/$@ $(am__depfiles_maybe);; \
- esac;
-
-$(top_builddir)/config.status: $(top_srcdir)/configure $(CONFIG_STATUS_DEPENDENCIES)
- cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh
-
-$(top_srcdir)/configure: $(am__configure_deps)
- cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh
-$(ACLOCAL_M4): $(am__aclocal_m4_deps)
- cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh
-tags: TAGS
-TAGS:
-
-ctags: CTAGS
-CTAGS:
-
-
-check-TESTS: $(TESTS)
- @failed=0; all=0; xfail=0; xpass=0; skip=0; ws='[ ]'; \
- srcdir=$(srcdir); export srcdir; \
- list=' $(TESTS) '; \
- if test -n "$$list"; then \
- for tst in $$list; do \
- if test -f ./$$tst; then dir=./; \
- elif test -f $$tst; then dir=; \
- else dir="$(srcdir)/"; fi; \
- if $(TESTS_ENVIRONMENT) $${dir}$$tst; then \
- all=`expr $$all + 1`; \
- case " $(XFAIL_TESTS) " in \
- *$$ws$$tst$$ws*) \
- xpass=`expr $$xpass + 1`; \
- failed=`expr $$failed + 1`; \
- echo "XPASS: $$tst"; \
- ;; \
- *) \
- echo "PASS: $$tst"; \
- ;; \
- esac; \
- elif test $$? -ne 77; then \
- all=`expr $$all + 1`; \
- case " $(XFAIL_TESTS) " in \
- *$$ws$$tst$$ws*) \
- xfail=`expr $$xfail + 1`; \
- echo "XFAIL: $$tst"; \
- ;; \
- *) \
- failed=`expr $$failed + 1`; \
- echo "FAIL: $$tst"; \
- ;; \
- esac; \
- else \
- skip=`expr $$skip + 1`; \
- echo "SKIP: $$tst"; \
- fi; \
- done; \
- if test "$$failed" -eq 0; then \
- if test "$$xfail" -eq 0; then \
- banner="All $$all tests passed"; \
- else \
- banner="All $$all tests behaved as expected ($$xfail expected failures)"; \
- fi; \
- else \
- if test "$$xpass" -eq 0; then \
- banner="$$failed of $$all tests failed"; \
- else \
- banner="$$failed of $$all tests did not behave as expected ($$xpass unexpected passes)"; \
- fi; \
- fi; \
- dashes="$$banner"; \
- skipped=""; \
- if test "$$skip" -ne 0; then \
- skipped="($$skip tests were not run)"; \
- test `echo "$$skipped" | wc -c` -le `echo "$$banner" | wc -c` || \
- dashes="$$skipped"; \
- fi; \
- report=""; \
- if test "$$failed" -ne 0 && test -n "$(PACKAGE_BUGREPORT)"; then \
- report="Please report to $(PACKAGE_BUGREPORT)"; \
- test `echo "$$report" | wc -c` -le `echo "$$banner" | wc -c` || \
- dashes="$$report"; \
- fi; \
- dashes=`echo "$$dashes" | sed s/./=/g`; \
- echo "$$dashes"; \
- echo "$$banner"; \
- test -z "$$skipped" || echo "$$skipped"; \
- test -z "$$report" || echo "$$report"; \
- echo "$$dashes"; \
- test "$$failed" -eq 0; \
- else :; fi
-
-distdir: $(DISTFILES)
- @srcdirstrip=`echo "$(srcdir)" | sed 's/[].[^$$\\*]/\\\\&/g'`; \
- topsrcdirstrip=`echo "$(top_srcdir)" | sed 's/[].[^$$\\*]/\\\\&/g'`; \
- list='$(DISTFILES)'; \
- dist_files=`for file in $$list; do echo $$file; done | \
- sed -e "s|^$$srcdirstrip/||;t" \
- -e "s|^$$topsrcdirstrip/|$(top_builddir)/|;t"`; \
- case $$dist_files in \
- */*) $(MKDIR_P) `echo "$$dist_files" | \
- sed '/\//!d;s|^|$(distdir)/|;s,/[^/]*$$,,' | \
- sort -u` ;; \
- esac; \
- for file in $$dist_files; do \
- if test -f $$file || test -d $$file; then d=.; else d=$(srcdir); fi; \
- if test -d $$d/$$file; then \
- dir=`echo "/$$file" | sed -e 's,/[^/]*$$,,'`; \
- if test -d $(srcdir)/$$file && test $$d != $(srcdir); then \
- cp -pR $(srcdir)/$$file $(distdir)$$dir || exit 1; \
- fi; \
- cp -pR $$d/$$file $(distdir)$$dir || exit 1; \
- else \
- test -f $(distdir)/$$file \
- || cp -p $$d/$$file $(distdir)/$$file \
- || exit 1; \
- fi; \
- done
-check-am: all-am
- $(MAKE) $(AM_MAKEFLAGS) check-TESTS
-check: check-am
-all-am: Makefile $(SCRIPTS)
-installdirs:
-install: install-am
-install-exec: install-exec-am
-install-data: install-data-am
-uninstall: uninstall-am
-
-install-am: all-am
- @$(MAKE) $(AM_MAKEFLAGS) install-exec-am install-data-am
-
-installcheck: installcheck-am
-install-strip:
- $(MAKE) $(AM_MAKEFLAGS) INSTALL_PROGRAM="$(INSTALL_STRIP_PROGRAM)" \
- install_sh_PROGRAM="$(INSTALL_STRIP_PROGRAM)" INSTALL_STRIP_FLAG=-s \
- `test -z '$(STRIP)' || \
- echo "INSTALL_PROGRAM_ENV=STRIPPROG='$(STRIP)'"` install
-mostlyclean-generic:
-
-clean-generic:
- -test -z "$(CLEANFILES)" || rm -f $(CLEANFILES)
-
-distclean-generic:
- -test -z "$(CONFIG_CLEAN_FILES)" || rm -f $(CONFIG_CLEAN_FILES)
-
-maintainer-clean-generic:
- @echo "This command is intended for maintainers to use"
- @echo "it deletes files that may require special tools to rebuild."
- -test -z "$(MAINTAINERCLEANFILES)" || rm -f $(MAINTAINERCLEANFILES)
-clean: clean-am
-
-clean-am: clean-generic mostlyclean-am
-
-distclean: distclean-am
- -rm -f Makefile
-distclean-am: clean-am distclean-generic
-
-dvi: dvi-am
-
-dvi-am:
-
-html: html-am
-
-info: info-am
-
-info-am:
-
-install-data-am:
-
-install-dvi: install-dvi-am
-
-install-exec-am:
-
-install-html: install-html-am
-
-install-info: install-info-am
-
-install-man:
-
-install-pdf: install-pdf-am
-
-install-ps: install-ps-am
-
-installcheck-am:
-
-maintainer-clean: maintainer-clean-am
- -rm -f Makefile
-maintainer-clean-am: distclean-am maintainer-clean-generic
-
-mostlyclean: mostlyclean-am
-
-mostlyclean-am: mostlyclean-generic
-
-pdf: pdf-am
-
-pdf-am:
-
-ps: ps-am
-
-ps-am:
-
-uninstall-am:
-
-.MAKE: install-am install-strip
-
-.PHONY: all all-am check check-TESTS check-am clean clean-generic \
- distclean distclean-generic distdir dvi dvi-am html html-am \
- info info-am install install-am install-data install-data-am \
- install-dvi install-dvi-am install-exec install-exec-am \
- install-html install-html-am install-info install-info-am \
- install-man install-pdf install-pdf-am install-ps \
- install-ps-am install-strip installcheck installcheck-am \
- installdirs maintainer-clean maintainer-clean-generic \
- mostlyclean mostlyclean-generic pdf pdf-am ps ps-am uninstall \
- uninstall-am
-
-$(srcdir)/$x-tests: $(mk_script) Test.pm Makefile.am
- test '$x' = test && prog=../../src/$x || prog=$x; \
- $(PERL) -I$(srcdir) -w -- $(mk_script) $(srcdir) $$prog > $@.n
- mv $@.n $@
- chmod 755 $@
-
-check: $(maint_gen)
-
-$(srcdir)/Makefile.am: ../Makefile.am.in Test.pm $(mk_script)
- rm -f $@ $@t
- sed -n '1,/^##test-files-begin/p' $(srcdir)/../Makefile.am.in > $@t
- tool=`echo $(subdir)|sed 's/^tests.//;s/-test//'`; \
- echo "x = $$tool" >> $@t
- $(PERL) -I$(srcdir) -w -- $(mk_script) $(srcdir) --list >> $@t
- sed -n '/^##test-files-end/,$$p' $(srcdir)/../Makefile.am.in >> $@t
- chmod -w $@t
- mv $@t $@
-# Tell versions [3.59,3.63) of GNU make to not export all variables.
-# Otherwise a system limit (for SysV at least) may be exceeded.
-.NOEXPORT:
diff --git a/tests/sort/Test.pm b/tests/sort/Test.pm
deleted file mode 100755
index dc41d92..0000000
--- a/tests/sort/Test.pm
+++ /dev/null
@@ -1,292 +0,0 @@
-# -*-perl-*-
-# Test "sort".
-
-# Copyright (C) 1996, 1997, 1998, 1999, 2001, 2002, 2003, 2004, 2005,
-# 2006 Free Software Foundation, Inc.
-
-# This program is free software; you can redistribute it and/or modify
-# it under the terms of the GNU General Public License as published by
-# the Free Software Foundation; either version 2 of the License, or
-# (at your option) any later version.
-
-# This program is distributed in the hope that it will be useful,
-# but WITHOUT ANY WARRANTY; without even the implied warranty of
-# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
-# GNU General Public License for more details.
-
-# You should have received a copy of the GNU General Public License
-# along with this program; if not, write to the Free Software
-# Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA
-# 02110-1301, USA.
-
-package Test;
-require 5.002;
-use strict;
-
-# Tell sort to accept old-style options like `+1'.
-$Test::env_default = ['_POSIX2_VERSION=199209'];
-
-my @tv = (
-#test options input expected-output expected-return-code
-#
-["n1", '-n', ".01\n0\n", "0\n.01\n", 0],
-["n2", '-n', ".02\n.01\n", ".01\n.02\n", 0],
-["n3", '-n', ".02\n.00\n", ".00\n.02\n", 0],
-["n4", '-n', ".02\n.000\n", ".000\n.02\n", 0],
-["n5", '-n', ".021\n.029\n", ".021\n.029\n", 0],
-
-["n6", '-n', ".02\n.0*\n", ".0*\n.02\n", 0],
-["n7", '-n', ".02\n.*\n", ".*\n.02\n", 0],
-["n8a", '-s -n -k1,1', ".0a\n.0b\n", ".0a\n.0b\n", 0],
-["n8b", '-s -n -k1,1', ".0b\n.0a\n", ".0b\n.0a\n", 0],
-["n9a", '-s -n -k1,1', ".000a\n.000b\n", ".000a\n.000b\n", 0],
-["n9b", '-s -n -k1,1', ".000b\n.000a\n", ".000b\n.000a\n", 0],
-["n10a", '-s -n -k1,1', ".00a\n.000b\n", ".00a\n.000b\n", 0],
-["n10b", '-s -n -k1,1', ".00b\n.000a\n", ".00b\n.000a\n", 0],
-["n11a", '-s -n -k1,1', ".01a\n.010\n", ".01a\n.010\n", 0],
-["n11b", '-s -n -k1,1', ".010\n.01a\n", ".010\n.01a\n", 0],
-
-["01a", '', "A\nB\nC\n", "A\nB\nC\n", 0],
-#
-["02a", '-c', "A\nB\nC\n", '', 0],
-["02b", '-c', "A\nC\nB\n", '', 1],
-["02c", '-c -k1,1', "a\na b\n", '', 0],
-["02d", '-C', "A\nB\nC\n", '', 0],
-["02e", '-C', "A\nC\nB\n", '', 1],
-# This should fail because there are duplicate keys
-["02m", '-cu', "A\nA\n", '', 1],
-["02n", '-cu', "A\nB\n", '', 0],
-["02o", '-cu', "A\nB\nB\n", '', 1],
-["02p", '-cu', "B\nA\nB\n", '', 1],
-#
-["03a", '-k1', "B\nA\n", "A\nB\n", 0],
-["03b", '-k1,1', "B\nA\n", "A\nB\n", 0],
-["03c", '-k1 -k2', "A b\nA a\n", "A a\nA b\n", 0],
-# Fail with a diagnostic when -k specifies field == 0.
-["03d", '-k0', "", "", 2],
-# Fail with a diagnostic when -k specifies character == 0.
-["03e", '-k1.0', "", "", 2],
-["03f", '-k1.1,-k0', "", "", 2],
-# This is ok.
-["03g", '-k1.1,1.0', "", "", 0],
-# This is equivalent to 3f.
-["03h", '-k1.1,1', "", "", 0],
-# This too, is equivalent to 3f.
-["03i", '-k1,1', "", "", 0],
-#
-["04a", '-nc', "2\n11\n", "", 0],
-["04b", '-n', "11\n2\n", "2\n11\n", 0],
-["04c", '-k1n', "11\n2\n", "2\n11\n", 0],
-["04d", '-k1', "11\n2\n", "11\n2\n", 0],
-["04e", '-k2', "ignored B\nz-ig A\n", "z-ig A\nignored B\n", 0],
-#
-["05a", '-k1,2', "A B\nA A\n", "A A\nA B\n", 0],
-["05b", '-k1,2', "A B A\nA A Z\n", "A A Z\nA B A\n", 0],
-["05c", '-k1 -k2', "A B A\nA A Z\n", "A A Z\nA B A\n", 0],
-["05d", '-k2,2', "A B A\nA A Z\n", "A A Z\nA B A\n", 0],
-["05e", '-k2,2', "A B Z\nA A A\n", "A A A\nA B Z\n", 0],
-["05f", '-k2,2', "A B A\nA A Z\n", "A A Z\nA B A\n", 0],
-#
-["06a", '-k 1,2', "A B\nA A\n", "A A\nA B\n", 0],
-["06b", '-k 1,2', "A B A\nA A Z\n", "A A Z\nA B A\n", 0],
-["06c", '-k 1 -k 2', "A B A\nA A Z\n", "A A Z\nA B A\n", 0],
-["06d", '-k 2,2', "A B A\nA A Z\n", "A A Z\nA B A\n", 0],
-["06e", '-k 2,2', "A B Z\nA A A\n", "A A A\nA B Z\n", 0],
-["06f", '-k 2,2', "A B A\nA A Z\n", "A A Z\nA B A\n", 0],
-#
-["07a", '-k 2,3', "9 a b\n7 a a\n", "7 a a\n9 a b\n", 0],
-["07b", '-k 2,3', "a a b\nz a a\n", "z a a\na a b\n", 0],
-["07c", '-k 2,3', "y k b\nz k a\n", "z k a\ny k b\n", 0],
-["07d", '+1 -3', "y k b\nz k a\n", "z k a\ny k b\n", 0],
-#
-# report an error for `.' without following char spec
-["08a", '-k 2.,3', "", "", 2],
-# report an error for `,' without following POS2
-["08b", '-k 2,', "", "", 2],
-#
-# Test new -g option.
-["09a", '-g', "1e2\n2e1\n", "2e1\n1e2\n", 0],
-# Make sure -n works how we expect.
-["09b", '-n', "1e2\n2e1\n", "1e2\n2e1\n", 0],
-["09c", '-n', "2e1\n1e2\n", "1e2\n2e1\n", 0],
-["09d", '-k2g', "a 1e2\nb 2e1\n", "b 2e1\na 1e2\n", 0],
-#
-# Bug reported by Roger Peel <R.Peel@ee.surrey.ac.uk>
-["10a", '-t : -k 2.2,2.2', ":ba\n:ab\n", ":ba\n:ab\n", 0],
-# Equivalent to above, but using obsolescent `+pos -pos' option syntax.
-["10b", '-t : +1.1 -1.2', ":ba\n:ab\n", ":ba\n:ab\n", 0],
-#
-# The same as the preceding two, but with input lines reversed.
-["10c", '-t : -k 2.2,2.2', ":ab\n:ba\n", ":ba\n:ab\n", 0],
-# Equivalent to above, but using obsolescent `+pos -pos' option syntax.
-["10d", '-t : +1.1 -1.2', ":ab\n:ba\n", ":ba\n:ab\n", 0],
-# Try without -t...
-# But note that we have to count the delimiting space at the beginning
-# of each field that has it.
-["10a0", '-k 2.3,2.3', "z ba\nz ab\n", "z ba\nz ab\n", 0],
-["10a1", '-k 1.2,1.2', "ba\nab\n", "ba\nab\n", 0],
-["10a2", '-b -k 2.2,2.2', "z ba\nz ab\n", "z ba\nz ab\n", 0],
-#
-# An even simpler example demonstrating the bug.
-["10e", '-k 1.2,1.2', "ab\nba\n", "ba\nab\n", 0],
-#
-# The way sort works on these inputs (10f and 10g) seems wrong to me.
-# See May 30 ChangeLog entry. POSIX doesn't seem to say one way or
-# the other, but that's the way all other sort implementations work.
-["10f", '-t : -k 1.3,1.3', ":ab\n:ba\n", ":ba\n:ab\n", 0],
-["10g", '-k 1.4,1.4', "a ab\nb ba\n", "b ba\na ab\n", 0],
-#
-# Exercise bug re using -b to skip trailing blanks.
-["11a", '-t: -k1,1b -k2,2', "a\t:a\na :b\n", "a\t:a\na :b\n", 0],
-["11b", '-t: -k1,1b -k2,2', "a :b\na\t:a\n", "a\t:a\na :b\n", 0],
-["11c", '-t: -k2,2b -k3,3', "z:a\t:a\na :b\n", "z:a\t:a\na :b\n", 0],
-# Before 1.22m, the first key comparison reported equality.
-# With 1.22m, they compare different: "a" sorts before "a\n",
-# and the second key spec isn't even used.
-["11d", '-t: -k2,2b -k3,3', "z:a :b\na\t:a\n", "a\t:a\nz:a :b\n", 0],
-#
-# Exercise bug re comparing `-' and integers.
-["12a", '-n -t: +1', "a:1\nb:-\n", "b:-\na:1\n", 0],
-["12b", '-n -t: +1', "b:-\na:1\n", "b:-\na:1\n", 0],
-# Try some other (e.g. `X') invalid character.
-["12c", '-n -t: +1', "a:1\nb:X\n", "b:X\na:1\n", 0],
-["12d", '-n -t: +1', "b:X\na:1\n", "b:X\na:1\n", 0],
-# From Karl Heuer
-["13a", '+0.1n', "axx\nb-1\n", "b-1\naxx\n", 0],
-["13b", '+0.1n', "b-1\naxx\n", "b-1\naxx\n", 0],
-#
-# From Carl Johnson <carlj@cjlinux.home.org>
-["14a", '-d -u', "mal\nmal-\nmala\n", "mal\nmala\n", 0],
-# Be sure to fix the (translate && ignore) case in keycompare.
-["14b", '-f -d -u', "mal\nmal-\nmala\n", "mal\nmala\n", 0],
-#
-# Experiment with -i.
-["15a", '-i -u', "a\na\1\n", "a\n", 0],
-["15b", '-i -u', "a\n\1a\n", "a\n", 0],
-["15c", '-i -u', "a\1\na\n", "a\1\n", 0],
-["15d", '-i -u', "\1a\na\n", "\1a\n", 0],
-["15e", '-i -u', "a\n\1\1\1\1\1a\1\1\1\1\n", "a\n", 0],
-
-# From Erick Branderhorst -- fixed around 1.19e
-["16a", '-f',
- "éminence\nüberhaupt\n's-Gravenhage\naëroclub\nAag\naagtappels\n",
- "'s-Gravenhage\nAag\naagtappels\naëroclub\néminence\nüberhaupt\n",
- 0],
-
-# This provokes a one-byte memory overrun of a malloc'd block for versions
-# of sort from textutils-1.19p and before.
-["17", '-c', "xxxxxxxxxxxxxxxxxxxxxxxxxxxxxx\n", "", 0],
-
-# POSIX says -n no longer implies -b, so here we're comparing ` 9' and `10'.
-["18a", '-k1.1,1.2n', " 901\n100\n", " 901\n100\n", 0],
-
-# Just like above, because the global `-b' has no effect on the
-# key specifier when a key-specific option (`n' in this case) is used.
-["18b", '-b -k1.1,1.2n', " 901\n100\n", " 901\n100\n", 0],
-
-# Here we're comparing ` 90' and `10', because the `b' on the key-end specifier
-# makes sort ignore leading blanks when determining that key's *end*.
-["18c", '-k1.1,1.2nb', " 901\n100\n", "100\n 901\n", 0],
-
-# Here we're comparing `9' and `10', because the `b' on the key-start specifier
-# makes sort ignore leading blanks when determining that key's *start*.
-["18d", '-k1.1b,1.2n', " 901\n100\n", " 901\n100\n", 0],
-
-# This compares `90' and `10', as it ignores leading blanks for both
-# key start and key end.
-["18e", '-nb -k1.1,1.2', " 901\n100\n", "100\n 901\n", 0],
-
-# This looks odd, but works properly -- 2nd keyspec is never
-# used because all lines are different.
-["19a", '+0 +1nr', "b 2\nb 1\nb 3\n", "b 1\nb 2\nb 3\n", 0],
-
-# The test *intended* by the author of the above, but using the
-# more-intuitive POSIX-style -k options.
-["19b", '-k1,1 -k2nr', "b 2\nb 1\nb 3\n", "b 3\nb 2\nb 1\n", 0],
-
-# This test failed when sort-1.22 was compiled on a Next x86 system
-# without optimization. Without optimization gcc uses the buggy version
-# of memcmp in the Next C library. With optimization, gcc uses its
-# (working) builtin version. Test case form William Lewis.
-["20a", '',
- "_________U__free\n_________U__malloc\n_________U__abort\n_________U__memcpy\n_________U__memset\n_________U_dyld_stub_binding_helper\n_________U__malloc\n_________U___iob\n_________U__abort\n_________U__fprintf\n",
- "_________U___iob\n_________U__abort\n_________U__abort\n_________U__fprintf\n_________U__free\n_________U__malloc\n_________U__malloc\n_________U__memcpy\n_________U__memset\n_________U_dyld_stub_binding_helper\n",
- 0],
-
-# Demonstrate that folding changes the ordering of e.g. A, a, and _
-# because while they normally (in the C locale) collate like A, _, a,
-# when using -f, `a' is compared as if it were `A'.
-["21a", '', "A\na\n_\n", "A\n_\na\n", 0],
-["21b", '-f', "A\na\n_\n", "A\na\n_\n", 0],
-["21c", '-f', "a\nA\n_\n", "A\na\n_\n", 0],
-["21d", '-f', "_\na\nA\n", "A\na\n_\n", 0],
-["21e", '-f', "a\n_\nA\n", "A\na\n_\n", 0],
-["21f", '-fs', "A\na\n_\n", "A\na\n_\n", 0],
-["21g", '-fu', "a\n_\n", "a\n_\n", 0],
-
-# This test failed until 1.22f. From Zvi Har'El.
-["22a", '-k 2,2fd -k 1,1r', "3 b\n4 B\n", "4 B\n3 b\n", 0],
-["22b", '-k 2,2d -k 1,1r', "3 b\n4 b\n", "4 b\n3 b\n", 0],
-
-["no-file1", 'no-file', {}, '', 2],
-# This test failed until 1.22f. Sort didn't give an error.
-# From Will Edgington.
-["o-no-file1", '-o no-such-file no-such-file', {}, '', 2],
-
-["create-empty", '-o no/such/file /dev/null', {}, '', 2],
-
-# From Paul Eggert. This was fixed in textutils-1.22k.
-["neg-nls", '-n', "-1\n-9\n", "-9\n-1\n", 0],
-
-# From Paul Eggert. This was fixed in textutils-1.22m.
-# The bug was visible only when using the internationalized sorting code
-# (i.e., not when configured with --disable-nls).
-["nul-nls", '', "\0b\n\0a\n", "\0a\n\0b\n", 0],
-
-# Paul Eggert wrote:
-# I tested the revised `sort' against Solaris `sort', and found a
-# discrepancy that turns out to be a longstanding bug in GNU sort.
-# POSIX.2 specifies that a newline is part of the input line, and should
-# be significant during comparison; but with GNU sort the newline is
-# insignificant. Here is an example of the bug:
-#
-# $ od -c t
-# 0000000 \n \t \n
-# 0000003
-# $ sort t | od -c
-# 0000000 \n \t \n
-# 0000003
-#
-# The correct output of the latter command should be
-#
-# 0000000 \t \n \n
-# 0000003
-#
-# because \t comes before \n in the collating sequence, and the trailing
-# \n's are part of the input line.
-["use-nl", '', "\n\t\n", "\n\t\n", 0],
-
-# Specifying two -o options should evoke a failure
-["o2", '-o x -o y', '', '', 2],
-
-# Specifying incompatible options should evoke a failure.
-["incompat1", '-in', '', '', 2],
-["incompat2", '-fR', '', '', 2],
-["incompat3", '-dfgiMnR', '', '', 2],
-["incompat4", '-c -o /dev/null', '', '', 2],
-["incompat5", '-C -o /dev/null', '', '', 2],
-["incompat6", '-cC', '', '', 2],
-
-# -t '\0' is accepted, as of coreutils-5.0.91
-['nul-tab', "-k2,2 -t '\\0'", "a\0z\01\nb\0y\02\n", "b\0y\02\na\0z\01\n", 0],
-
-["bigfield", '-k 340282366920938463463374607431768211456',
- "2\n1\n", "1\n2\n", 0],
-);
-
-sub test_vector
-{
- return @tv;
-}
-
-1;
diff --git a/tests/sort/bigfield.I b/tests/sort/bigfield.I
deleted file mode 100644
index 5f1d0ec..0000000
--- a/tests/sort/bigfield.I
+++ /dev/null
@@ -1,2 +0,0 @@
-2
-1
diff --git a/tests/sort/bigfield.X b/tests/sort/bigfield.X
deleted file mode 100644
index 1191247..0000000
--- a/tests/sort/bigfield.X
+++ /dev/null
@@ -1,2 +0,0 @@
-1
-2
diff --git a/tests/sort/create-empty.X b/tests/sort/create-empty.X
deleted file mode 100644
index e69de29..0000000
--- a/tests/sort/create-empty.X
+++ /dev/null
diff --git a/tests/sort/incompat1.I b/tests/sort/incompat1.I
deleted file mode 100644
index e69de29..0000000
--- a/tests/sort/incompat1.I
+++ /dev/null
diff --git a/tests/sort/incompat1.X b/tests/sort/incompat1.X
deleted file mode 100644
index e69de29..0000000
--- a/tests/sort/incompat1.X
+++ /dev/null
diff --git a/tests/sort/incompat2.I b/tests/sort/incompat2.I
deleted file mode 100644
index e69de29..0000000
--- a/tests/sort/incompat2.I
+++ /dev/null
diff --git a/tests/sort/incompat2.X b/tests/sort/incompat2.X
deleted file mode 100644
index e69de29..0000000
--- a/tests/sort/incompat2.X
+++ /dev/null
diff --git a/tests/sort/incompat3.I b/tests/sort/incompat3.I
deleted file mode 100644
index e69de29..0000000
--- a/tests/sort/incompat3.I
+++ /dev/null
diff --git a/tests/sort/incompat3.X b/tests/sort/incompat3.X
deleted file mode 100644
index e69de29..0000000
--- a/tests/sort/incompat3.X
+++ /dev/null
diff --git a/tests/sort/incompat4.I b/tests/sort/incompat4.I
deleted file mode 100644
index e69de29..0000000
--- a/tests/sort/incompat4.I
+++ /dev/null
diff --git a/tests/sort/incompat4.X b/tests/sort/incompat4.X
deleted file mode 100644
index e69de29..0000000
--- a/tests/sort/incompat4.X
+++ /dev/null
diff --git a/tests/sort/incompat5.I b/tests/sort/incompat5.I
deleted file mode 100644
index e69de29..0000000
--- a/tests/sort/incompat5.I
+++ /dev/null
diff --git a/tests/sort/incompat5.X b/tests/sort/incompat5.X
deleted file mode 100644
index e69de29..0000000
--- a/tests/sort/incompat5.X
+++ /dev/null
diff --git a/tests/sort/incompat6.I b/tests/sort/incompat6.I
deleted file mode 100644
index e69de29..0000000
--- a/tests/sort/incompat6.I
+++ /dev/null
diff --git a/tests/sort/incompat6.X b/tests/sort/incompat6.X
deleted file mode 100644
index e69de29..0000000
--- a/tests/sort/incompat6.X
+++ /dev/null
diff --git a/tests/sort/n1.I b/tests/sort/n1.I
deleted file mode 100644
index 15a8658..0000000
--- a/tests/sort/n1.I
+++ /dev/null
@@ -1,2 +0,0 @@
-.01
-0
diff --git a/tests/sort/n1.X b/tests/sort/n1.X
deleted file mode 100644
index ac95bf5..0000000
--- a/tests/sort/n1.X
+++ /dev/null
@@ -1,2 +0,0 @@
-0
-.01
diff --git a/tests/sort/n10a.I b/tests/sort/n10a.I
deleted file mode 100644
index 35fd8fa..0000000
--- a/tests/sort/n10a.I
+++ /dev/null
@@ -1,2 +0,0 @@
-.00a
-.000b
diff --git a/tests/sort/n10a.X b/tests/sort/n10a.X
deleted file mode 100644
index 35fd8fa..0000000
--- a/tests/sort/n10a.X
+++ /dev/null
@@ -1,2 +0,0 @@
-.00a
-.000b
diff --git a/tests/sort/n10b.I b/tests/sort/n10b.I
deleted file mode 100644
index 2536a13..0000000
--- a/tests/sort/n10b.I
+++ /dev/null
@@ -1,2 +0,0 @@
-.00b
-.000a
diff --git a/tests/sort/n10b.X b/tests/sort/n10b.X
deleted file mode 100644
index 2536a13..0000000
--- a/tests/sort/n10b.X
+++ /dev/null
@@ -1,2 +0,0 @@
-.00b
-.000a
diff --git a/tests/sort/n11a.I b/tests/sort/n11a.I
deleted file mode 100644
index 5be7d18..0000000
--- a/tests/sort/n11a.I
+++ /dev/null
@@ -1,2 +0,0 @@
-.01a
-.010
diff --git a/tests/sort/n11a.X b/tests/sort/n11a.X
deleted file mode 100644
index 5be7d18..0000000
--- a/tests/sort/n11a.X
+++ /dev/null
@@ -1,2 +0,0 @@
-.01a
-.010
diff --git a/tests/sort/n11b.I b/tests/sort/n11b.I
deleted file mode 100644
index 4db49c1..0000000
--- a/tests/sort/n11b.I
+++ /dev/null
@@ -1,2 +0,0 @@
-.010
-.01a
diff --git a/tests/sort/n11b.X b/tests/sort/n11b.X
deleted file mode 100644
index 4db49c1..0000000
--- a/tests/sort/n11b.X
+++ /dev/null
@@ -1,2 +0,0 @@
-.010
-.01a
diff --git a/tests/sort/n2.I b/tests/sort/n2.I
deleted file mode 100644
index 038764d..0000000
--- a/tests/sort/n2.I
+++ /dev/null
@@ -1,2 +0,0 @@
-.02
-.01
diff --git a/tests/sort/n2.X b/tests/sort/n2.X
deleted file mode 100644
index bbd0dc3..0000000
--- a/tests/sort/n2.X
+++ /dev/null
@@ -1,2 +0,0 @@
-.01
-.02
diff --git a/tests/sort/n3.I b/tests/sort/n3.I
deleted file mode 100644
index 34f3784..0000000
--- a/tests/sort/n3.I
+++ /dev/null
@@ -1,2 +0,0 @@
-.02
-.00
diff --git a/tests/sort/n3.X b/tests/sort/n3.X
deleted file mode 100644
index 1b19098..0000000
--- a/tests/sort/n3.X
+++ /dev/null
@@ -1,2 +0,0 @@
-.00
-.02
diff --git a/tests/sort/n4.I b/tests/sort/n4.I
deleted file mode 100644
index cf84dba..0000000
--- a/tests/sort/n4.I
+++ /dev/null
@@ -1,2 +0,0 @@
-.02
-.000
diff --git a/tests/sort/n4.X b/tests/sort/n4.X
deleted file mode 100644
index 7b59936..0000000
--- a/tests/sort/n4.X
+++ /dev/null
@@ -1,2 +0,0 @@
-.000
-.02
diff --git a/tests/sort/n5.I b/tests/sort/n5.I
deleted file mode 100644
index a3cdd85..0000000
--- a/tests/sort/n5.I
+++ /dev/null
@@ -1,2 +0,0 @@
-.021
-.029
diff --git a/tests/sort/n5.X b/tests/sort/n5.X
deleted file mode 100644
index a3cdd85..0000000
--- a/tests/sort/n5.X
+++ /dev/null
@@ -1,2 +0,0 @@
-.021
-.029
diff --git a/tests/sort/n6.I b/tests/sort/n6.I
deleted file mode 100644
index 129faa4..0000000
--- a/tests/sort/n6.I
+++ /dev/null
@@ -1,2 +0,0 @@
-.02
-.0*
diff --git a/tests/sort/n6.X b/tests/sort/n6.X
deleted file mode 100644
index 429a41c..0000000
--- a/tests/sort/n6.X
+++ /dev/null
@@ -1,2 +0,0 @@
-.0*
-.02
diff --git a/tests/sort/n7.I b/tests/sort/n7.I
deleted file mode 100644
index a427053..0000000
--- a/tests/sort/n7.I
+++ /dev/null
@@ -1,2 +0,0 @@
-.02
-.*
diff --git a/tests/sort/n7.X b/tests/sort/n7.X
deleted file mode 100644
index 55ac4cd..0000000
--- a/tests/sort/n7.X
+++ /dev/null
@@ -1,2 +0,0 @@
-.*
-.02
diff --git a/tests/sort/n8a.I b/tests/sort/n8a.I
deleted file mode 100644
index 293928a..0000000
--- a/tests/sort/n8a.I
+++ /dev/null
@@ -1,2 +0,0 @@
-.0a
-.0b
diff --git a/tests/sort/n8a.X b/tests/sort/n8a.X
deleted file mode 100644
index 293928a..0000000
--- a/tests/sort/n8a.X
+++ /dev/null
@@ -1,2 +0,0 @@
-.0a
-.0b
diff --git a/tests/sort/n8b.I b/tests/sort/n8b.I
deleted file mode 100644
index 47707ab..0000000
--- a/tests/sort/n8b.I
+++ /dev/null
@@ -1,2 +0,0 @@
-.0b
-.0a
diff --git a/tests/sort/n8b.X b/tests/sort/n8b.X
deleted file mode 100644
index 47707ab..0000000
--- a/tests/sort/n8b.X
+++ /dev/null
@@ -1,2 +0,0 @@
-.0b
-.0a
diff --git a/tests/sort/n9a.I b/tests/sort/n9a.I
deleted file mode 100644
index 649135d..0000000
--- a/tests/sort/n9a.I
+++ /dev/null
@@ -1,2 +0,0 @@
-.000a
-.000b
diff --git a/tests/sort/n9a.X b/tests/sort/n9a.X
deleted file mode 100644
index 649135d..0000000
--- a/tests/sort/n9a.X
+++ /dev/null
@@ -1,2 +0,0 @@
-.000a
-.000b
diff --git a/tests/sort/n9b.I b/tests/sort/n9b.I
deleted file mode 100644
index cf0da76..0000000
--- a/tests/sort/n9b.I
+++ /dev/null
@@ -1,2 +0,0 @@
-.000b
-.000a
diff --git a/tests/sort/n9b.X b/tests/sort/n9b.X
deleted file mode 100644
index cf0da76..0000000
--- a/tests/sort/n9b.X
+++ /dev/null
@@ -1,2 +0,0 @@
-.000b
-.000a
diff --git a/tests/sort/neg-nls.I b/tests/sort/neg-nls.I
deleted file mode 100644
index bd7264e..0000000
--- a/tests/sort/neg-nls.I
+++ /dev/null
@@ -1,2 +0,0 @@
--1
--9
diff --git a/tests/sort/neg-nls.X b/tests/sort/neg-nls.X
deleted file mode 100644
index 554f033..0000000
--- a/tests/sort/neg-nls.X
+++ /dev/null
@@ -1,2 +0,0 @@
--9
--1
diff --git a/tests/sort/no-file1.X b/tests/sort/no-file1.X
deleted file mode 100644
index e69de29..0000000
--- a/tests/sort/no-file1.X
+++ /dev/null
diff --git a/tests/sort/nul-nls.I b/tests/sort/nul-nls.I
deleted file mode 100644
index 9576182..0000000
--- a/tests/sort/nul-nls.I
+++ /dev/null
Binary files differ
diff --git a/tests/sort/nul-nls.X b/tests/sort/nul-nls.X
deleted file mode 100644
index ef5193f..0000000
--- a/tests/sort/nul-nls.X
+++ /dev/null
Binary files differ
diff --git a/tests/sort/nul-tab.I b/tests/sort/nul-tab.I
deleted file mode 100644
index cc5890d..0000000
--- a/tests/sort/nul-tab.I
+++ /dev/null
Binary files differ
diff --git a/tests/sort/nul-tab.X b/tests/sort/nul-tab.X
deleted file mode 100644
index 42e765b..0000000
--- a/tests/sort/nul-tab.X
+++ /dev/null
Binary files differ
diff --git a/tests/sort/o-no-file1.X b/tests/sort/o-no-file1.X
deleted file mode 100644
index e69de29..0000000
--- a/tests/sort/o-no-file1.X
+++ /dev/null
diff --git a/tests/sort/o2.I b/tests/sort/o2.I
deleted file mode 100644
index e69de29..0000000
--- a/tests/sort/o2.I
+++ /dev/null
diff --git a/tests/sort/o2.X b/tests/sort/o2.X
deleted file mode 100644
index e69de29..0000000
--- a/tests/sort/o2.X
+++ /dev/null
diff --git a/tests/sort/sort-tests b/tests/sort/sort-tests
deleted file mode 100755
index 94c3fcf..0000000
--- a/tests/sort/sort-tests
+++ /dev/null
@@ -1,2223 +0,0 @@
-#! /bin/sh
-# This script was generated automatically by mk-script.
-case $# in
- 0) xx='sort';;
- *) xx="$1";;
-esac
-test "$VERBOSE" && echo=echo || echo=:
-$echo testing program: $xx
-errors=0
-test "$srcdir" || srcdir=.
-test "$VERBOSE" && $xx --version 2> /dev/null
-
-# Make sure we get English translations.
-LANGUAGE=C
-export LANGUAGE
-LC_ALL=C
-export LC_ALL
-LANG=C
-export LANG
-
-_POSIX2_VERSION=199209 $xx -n $srcdir/n1.I > n1.O 2> n1.E
-code=$?
-if test $code != 0; then
- $echo "Test n1(_POSIX2_VERSION=199209) failed: $xx return code $code differs from expected value 0" 1>&2
- errors=`expr $errors + 1`
-else
- cmp n1.O $srcdir/n1.X > /dev/null 2>&1
- case $? in
- 0) if test "$VERBOSE"; then $echo "passed n1(_POSIX2_VERSION=199209)"; fi;;
- 1) $echo "Test n1(_POSIX2_VERSION=199209) failed: files n1.O and $srcdir/n1.X differ" 1>&2
- (diff -c n1.O $srcdir/n1.X) 2> /dev/null
- errors=`expr $errors + 1`;;
- 2) $echo "Test n1(_POSIX2_VERSION=199209) may have failed." 1>&2
- $echo The command "cmp n1.O $srcdir/n1.X" failed. 1>&2
- errors=`expr $errors + 1`;;
- esac
-fi
-test -s n1.E || rm -f n1.E
-_POSIX2_VERSION=199209 $xx -n $srcdir/n2.I > n2.O 2> n2.E
-code=$?
-if test $code != 0; then
- $echo "Test n2(_POSIX2_VERSION=199209) failed: $xx return code $code differs from expected value 0" 1>&2
- errors=`expr $errors + 1`
-else
- cmp n2.O $srcdir/n2.X > /dev/null 2>&1
- case $? in
- 0) if test "$VERBOSE"; then $echo "passed n2(_POSIX2_VERSION=199209)"; fi;;
- 1) $echo "Test n2(_POSIX2_VERSION=199209) failed: files n2.O and $srcdir/n2.X differ" 1>&2
- (diff -c n2.O $srcdir/n2.X) 2> /dev/null
- errors=`expr $errors + 1`;;
- 2) $echo "Test n2(_POSIX2_VERSION=199209) may have failed." 1>&2
- $echo The command "cmp n2.O $srcdir/n2.X" failed. 1>&2
- errors=`expr $errors + 1`;;
- esac
-fi
-test -s n2.E || rm -f n2.E
-_POSIX2_VERSION=199209 $xx -n $srcdir/n3.I > n3.O 2> n3.E
-code=$?
-if test $code != 0; then
- $echo "Test n3(_POSIX2_VERSION=199209) failed: $xx return code $code differs from expected value 0" 1>&2
- errors=`expr $errors + 1`
-else
- cmp n3.O $srcdir/n3.X > /dev/null 2>&1
- case $? in
- 0) if test "$VERBOSE"; then $echo "passed n3(_POSIX2_VERSION=199209)"; fi;;
- 1) $echo "Test n3(_POSIX2_VERSION=199209) failed: files n3.O and $srcdir/n3.X differ" 1>&2
- (diff -c n3.O $srcdir/n3.X) 2> /dev/null
- errors=`expr $errors + 1`;;
- 2) $echo "Test n3(_POSIX2_VERSION=199209) may have failed." 1>&2
- $echo The command "cmp n3.O $srcdir/n3.X" failed. 1>&2
- errors=`expr $errors + 1`;;
- esac
-fi
-test -s n3.E || rm -f n3.E
-_POSIX2_VERSION=199209 $xx -n $srcdir/n4.I > n4.O 2> n4.E
-code=$?
-if test $code != 0; then
- $echo "Test n4(_POSIX2_VERSION=199209) failed: $xx return code $code differs from expected value 0" 1>&2
- errors=`expr $errors + 1`
-else
- cmp n4.O $srcdir/n4.X > /dev/null 2>&1
- case $? in
- 0) if test "$VERBOSE"; then $echo "passed n4(_POSIX2_VERSION=199209)"; fi;;
- 1) $echo "Test n4(_POSIX2_VERSION=199209) failed: files n4.O and $srcdir/n4.X differ" 1>&2
- (diff -c n4.O $srcdir/n4.X) 2> /dev/null
- errors=`expr $errors + 1`;;
- 2) $echo "Test n4(_POSIX2_VERSION=199209) may have failed." 1>&2
- $echo The command "cmp n4.O $srcdir/n4.X" failed. 1>&2
- errors=`expr $errors + 1`;;
- esac
-fi
-test -s n4.E || rm -f n4.E
-_POSIX2_VERSION=199209 $xx -n $srcdir/n5.I > n5.O 2> n5.E
-code=$?
-if test $code != 0; then
- $echo "Test n5(_POSIX2_VERSION=199209) failed: $xx return code $code differs from expected value 0" 1>&2
- errors=`expr $errors + 1`
-else
- cmp n5.O $srcdir/n5.X > /dev/null 2>&1
- case $? in
- 0) if test "$VERBOSE"; then $echo "passed n5(_POSIX2_VERSION=199209)"; fi;;
- 1) $echo "Test n5(_POSIX2_VERSION=199209) failed: files n5.O and $srcdir/n5.X differ" 1>&2
- (diff -c n5.O $srcdir/n5.X) 2> /dev/null
- errors=`expr $errors + 1`;;
- 2) $echo "Test n5(_POSIX2_VERSION=199209) may have failed." 1>&2
- $echo The command "cmp n5.O $srcdir/n5.X" failed. 1>&2
- errors=`expr $errors + 1`;;
- esac
-fi
-test -s n5.E || rm -f n5.E
-_POSIX2_VERSION=199209 $xx -n $srcdir/n6.I > n6.O 2> n6.E
-code=$?
-if test $code != 0; then
- $echo "Test n6(_POSIX2_VERSION=199209) failed: $xx return code $code differs from expected value 0" 1>&2
- errors=`expr $errors + 1`
-else
- cmp n6.O $srcdir/n6.X > /dev/null 2>&1
- case $? in
- 0) if test "$VERBOSE"; then $echo "passed n6(_POSIX2_VERSION=199209)"; fi;;
- 1) $echo "Test n6(_POSIX2_VERSION=199209) failed: files n6.O and $srcdir/n6.X differ" 1>&2
- (diff -c n6.O $srcdir/n6.X) 2> /dev/null
- errors=`expr $errors + 1`;;
- 2) $echo "Test n6(_POSIX2_VERSION=199209) may have failed." 1>&2
- $echo The command "cmp n6.O $srcdir/n6.X" failed. 1>&2
- errors=`expr $errors + 1`;;
- esac
-fi
-test -s n6.E || rm -f n6.E
-_POSIX2_VERSION=199209 $xx -n $srcdir/n7.I > n7.O 2> n7.E
-code=$?
-if test $code != 0; then
- $echo "Test n7(_POSIX2_VERSION=199209) failed: $xx return code $code differs from expected value 0" 1>&2
- errors=`expr $errors + 1`
-else
- cmp n7.O $srcdir/n7.X > /dev/null 2>&1
- case $? in
- 0) if test "$VERBOSE"; then $echo "passed n7(_POSIX2_VERSION=199209)"; fi;;
- 1) $echo "Test n7(_POSIX2_VERSION=199209) failed: files n7.O and $srcdir/n7.X differ" 1>&2
- (diff -c n7.O $srcdir/n7.X) 2> /dev/null
- errors=`expr $errors + 1`;;
- 2) $echo "Test n7(_POSIX2_VERSION=199209) may have failed." 1>&2
- $echo The command "cmp n7.O $srcdir/n7.X" failed. 1>&2
- errors=`expr $errors + 1`;;
- esac
-fi
-test -s n7.E || rm -f n7.E
-_POSIX2_VERSION=199209 $xx -s -n -k1,1 $srcdir/n8a.I > n8a.O 2> n8a.E
-code=$?
-if test $code != 0; then
- $echo "Test n8a(_POSIX2_VERSION=199209) failed: $xx return code $code differs from expected value 0" 1>&2
- errors=`expr $errors + 1`
-else
- cmp n8a.O $srcdir/n8a.X > /dev/null 2>&1
- case $? in
- 0) if test "$VERBOSE"; then $echo "passed n8a(_POSIX2_VERSION=199209)"; fi;;
- 1) $echo "Test n8a(_POSIX2_VERSION=199209) failed: files n8a.O and $srcdir/n8a.X differ" 1>&2
- (diff -c n8a.O $srcdir/n8a.X) 2> /dev/null
- errors=`expr $errors + 1`;;
- 2) $echo "Test n8a(_POSIX2_VERSION=199209) may have failed." 1>&2
- $echo The command "cmp n8a.O $srcdir/n8a.X" failed. 1>&2
- errors=`expr $errors + 1`;;
- esac
-fi
-test -s n8a.E || rm -f n8a.E
-_POSIX2_VERSION=199209 $xx -s -n -k1,1 $srcdir/n8b.I > n8b.O 2> n8b.E
-code=$?
-if test $code != 0; then
- $echo "Test n8b(_POSIX2_VERSION=199209) failed: $xx return code $code differs from expected value 0" 1>&2
- errors=`expr $errors + 1`
-else
- cmp n8b.O $srcdir/n8b.X > /dev/null 2>&1
- case $? in
- 0) if test "$VERBOSE"; then $echo "passed n8b(_POSIX2_VERSION=199209)"; fi;;
- 1) $echo "Test n8b(_POSIX2_VERSION=199209) failed: files n8b.O and $srcdir/n8b.X differ" 1>&2
- (diff -c n8b.O $srcdir/n8b.X) 2> /dev/null
- errors=`expr $errors + 1`;;
- 2) $echo "Test n8b(_POSIX2_VERSION=199209) may have failed." 1>&2
- $echo The command "cmp n8b.O $srcdir/n8b.X" failed. 1>&2
- errors=`expr $errors + 1`;;
- esac
-fi
-test -s n8b.E || rm -f n8b.E
-_POSIX2_VERSION=199209 $xx -s -n -k1,1 $srcdir/n9a.I > n9a.O 2> n9a.E
-code=$?
-if test $code != 0; then
- $echo "Test n9a(_POSIX2_VERSION=199209) failed: $xx return code $code differs from expected value 0" 1>&2
- errors=`expr $errors + 1`
-else
- cmp n9a.O $srcdir/n9a.X > /dev/null 2>&1
- case $? in
- 0) if test "$VERBOSE"; then $echo "passed n9a(_POSIX2_VERSION=199209)"; fi;;
- 1) $echo "Test n9a(_POSIX2_VERSION=199209) failed: files n9a.O and $srcdir/n9a.X differ" 1>&2
- (diff -c n9a.O $srcdir/n9a.X) 2> /dev/null
- errors=`expr $errors + 1`;;
- 2) $echo "Test n9a(_POSIX2_VERSION=199209) may have failed." 1>&2
- $echo The command "cmp n9a.O $srcdir/n9a.X" failed. 1>&2
- errors=`expr $errors + 1`;;
- esac
-fi
-test -s n9a.E || rm -f n9a.E
-_POSIX2_VERSION=199209 $xx -s -n -k1,1 $srcdir/n9b.I > n9b.O 2> n9b.E
-code=$?
-if test $code != 0; then
- $echo "Test n9b(_POSIX2_VERSION=199209) failed: $xx return code $code differs from expected value 0" 1>&2
- errors=`expr $errors + 1`
-else
- cmp n9b.O $srcdir/n9b.X > /dev/null 2>&1
- case $? in
- 0) if test "$VERBOSE"; then $echo "passed n9b(_POSIX2_VERSION=199209)"; fi;;
- 1) $echo "Test n9b(_POSIX2_VERSION=199209) failed: files n9b.O and $srcdir/n9b.X differ" 1>&2
- (diff -c n9b.O $srcdir/n9b.X) 2> /dev/null
- errors=`expr $errors + 1`;;
- 2) $echo "Test n9b(_POSIX2_VERSION=199209) may have failed." 1>&2
- $echo The command "cmp n9b.O $srcdir/n9b.X" failed. 1>&2
- errors=`expr $errors + 1`;;
- esac
-fi
-test -s n9b.E || rm -f n9b.E
-_POSIX2_VERSION=199209 $xx -s -n -k1,1 $srcdir/n10a.I > n10a.O 2> n10a.E
-code=$?
-if test $code != 0; then
- $echo "Test n10a(_POSIX2_VERSION=199209) failed: $xx return code $code differs from expected value 0" 1>&2
- errors=`expr $errors + 1`
-else
- cmp n10a.O $srcdir/n10a.X > /dev/null 2>&1
- case $? in
- 0) if test "$VERBOSE"; then $echo "passed n10a(_POSIX2_VERSION=199209)"; fi;;
- 1) $echo "Test n10a(_POSIX2_VERSION=199209) failed: files n10a.O and $srcdir/n10a.X differ" 1>&2
- (diff -c n10a.O $srcdir/n10a.X) 2> /dev/null
- errors=`expr $errors + 1`;;
- 2) $echo "Test n10a(_POSIX2_VERSION=199209) may have failed." 1>&2
- $echo The command "cmp n10a.O $srcdir/n10a.X" failed. 1>&2
- errors=`expr $errors + 1`;;
- esac
-fi
-test -s n10a.E || rm -f n10a.E
-_POSIX2_VERSION=199209 $xx -s -n -k1,1 $srcdir/n10b.I > n10b.O 2> n10b.E
-code=$?
-if test $code != 0; then
- $echo "Test n10b(_POSIX2_VERSION=199209) failed: $xx return code $code differs from expected value 0" 1>&2
- errors=`expr $errors + 1`
-else
- cmp n10b.O $srcdir/n10b.X > /dev/null 2>&1
- case $? in
- 0) if test "$VERBOSE"; then $echo "passed n10b(_POSIX2_VERSION=199209)"; fi;;
- 1) $echo "Test n10b(_POSIX2_VERSION=199209) failed: files n10b.O and $srcdir/n10b.X differ" 1>&2
- (diff -c n10b.O $srcdir/n10b.X) 2> /dev/null
- errors=`expr $errors + 1`;;
- 2) $echo "Test n10b(_POSIX2_VERSION=199209) may have failed." 1>&2
- $echo The command "cmp n10b.O $srcdir/n10b.X" failed. 1>&2
- errors=`expr $errors + 1`;;
- esac
-fi
-test -s n10b.E || rm -f n10b.E
-_POSIX2_VERSION=199209 $xx -s -n -k1,1 $srcdir/n11a.I > n11a.O 2> n11a.E
-code=$?
-if test $code != 0; then
- $echo "Test n11a(_POSIX2_VERSION=199209) failed: $xx return code $code differs from expected value 0" 1>&2
- errors=`expr $errors + 1`
-else
- cmp n11a.O $srcdir/n11a.X > /dev/null 2>&1
- case $? in
- 0) if test "$VERBOSE"; then $echo "passed n11a(_POSIX2_VERSION=199209)"; fi;;
- 1) $echo "Test n11a(_POSIX2_VERSION=199209) failed: files n11a.O and $srcdir/n11a.X differ" 1>&2
- (diff -c n11a.O $srcdir/n11a.X) 2> /dev/null
- errors=`expr $errors + 1`;;
- 2) $echo "Test n11a(_POSIX2_VERSION=199209) may have failed." 1>&2
- $echo The command "cmp n11a.O $srcdir/n11a.X" failed. 1>&2
- errors=`expr $errors + 1`;;
- esac
-fi
-test -s n11a.E || rm -f n11a.E
-_POSIX2_VERSION=199209 $xx -s -n -k1,1 $srcdir/n11b.I > n11b.O 2> n11b.E
-code=$?
-if test $code != 0; then
- $echo "Test n11b(_POSIX2_VERSION=199209) failed: $xx return code $code differs from expected value 0" 1>&2
- errors=`expr $errors + 1`
-else
- cmp n11b.O $srcdir/n11b.X > /dev/null 2>&1
- case $? in
- 0) if test "$VERBOSE"; then $echo "passed n11b(_POSIX2_VERSION=199209)"; fi;;
- 1) $echo "Test n11b(_POSIX2_VERSION=199209) failed: files n11b.O and $srcdir/n11b.X differ" 1>&2
- (diff -c n11b.O $srcdir/n11b.X) 2> /dev/null
- errors=`expr $errors + 1`;;
- 2) $echo "Test n11b(_POSIX2_VERSION=199209) may have failed." 1>&2
- $echo The command "cmp n11b.O $srcdir/n11b.X" failed. 1>&2
- errors=`expr $errors + 1`;;
- esac
-fi
-test -s n11b.E || rm -f n11b.E
-_POSIX2_VERSION=199209 $xx $srcdir/01a.I > 01a.O 2> 01a.E
-code=$?
-if test $code != 0; then
- $echo "Test 01a(_POSIX2_VERSION=199209) failed: $xx return code $code differs from expected value 0" 1>&2
- errors=`expr $errors + 1`
-else
- cmp 01a.O $srcdir/01a.X > /dev/null 2>&1
- case $? in
- 0) if test "$VERBOSE"; then $echo "passed 01a(_POSIX2_VERSION=199209)"; fi;;
- 1) $echo "Test 01a(_POSIX2_VERSION=199209) failed: files 01a.O and $srcdir/01a.X differ" 1>&2
- (diff -c 01a.O $srcdir/01a.X) 2> /dev/null
- errors=`expr $errors + 1`;;
- 2) $echo "Test 01a(_POSIX2_VERSION=199209) may have failed." 1>&2
- $echo The command "cmp 01a.O $srcdir/01a.X" failed. 1>&2
- errors=`expr $errors + 1`;;
- esac
-fi
-test -s 01a.E || rm -f 01a.E
-_POSIX2_VERSION=199209 $xx -c $srcdir/02a.I > 02a.O 2> 02a.E
-code=$?
-if test $code != 0; then
- $echo "Test 02a(_POSIX2_VERSION=199209) failed: $xx return code $code differs from expected value 0" 1>&2
- errors=`expr $errors + 1`
-else
- cmp 02a.O $srcdir/02a.X > /dev/null 2>&1
- case $? in
- 0) if test "$VERBOSE"; then $echo "passed 02a(_POSIX2_VERSION=199209)"; fi;;
- 1) $echo "Test 02a(_POSIX2_VERSION=199209) failed: files 02a.O and $srcdir/02a.X differ" 1>&2
- (diff -c 02a.O $srcdir/02a.X) 2> /dev/null
- errors=`expr $errors + 1`;;
- 2) $echo "Test 02a(_POSIX2_VERSION=199209) may have failed." 1>&2
- $echo The command "cmp 02a.O $srcdir/02a.X" failed. 1>&2
- errors=`expr $errors + 1`;;
- esac
-fi
-test -s 02a.E || rm -f 02a.E
-_POSIX2_VERSION=199209 $xx -c $srcdir/02b.I > 02b.O 2> 02b.E
-code=$?
-if test $code != 1; then
- $echo "Test 02b(_POSIX2_VERSION=199209) failed: $xx return code $code differs from expected value 1" 1>&2
- errors=`expr $errors + 1`
-else
- cmp 02b.O $srcdir/02b.X > /dev/null 2>&1
- case $? in
- 0) if test "$VERBOSE"; then $echo "passed 02b(_POSIX2_VERSION=199209)"; fi;;
- 1) $echo "Test 02b(_POSIX2_VERSION=199209) failed: files 02b.O and $srcdir/02b.X differ" 1>&2
- (diff -c 02b.O $srcdir/02b.X) 2> /dev/null
- errors=`expr $errors + 1`;;
- 2) $echo "Test 02b(_POSIX2_VERSION=199209) may have failed." 1>&2
- $echo The command "cmp 02b.O $srcdir/02b.X" failed. 1>&2
- errors=`expr $errors + 1`;;
- esac
-fi
-test -s 02b.E || rm -f 02b.E
-_POSIX2_VERSION=199209 $xx -c -k1,1 $srcdir/02c.I > 02c.O 2> 02c.E
-code=$?
-if test $code != 0; then
- $echo "Test 02c(_POSIX2_VERSION=199209) failed: $xx return code $code differs from expected value 0" 1>&2
- errors=`expr $errors + 1`
-else
- cmp 02c.O $srcdir/02c.X > /dev/null 2>&1
- case $? in
- 0) if test "$VERBOSE"; then $echo "passed 02c(_POSIX2_VERSION=199209)"; fi;;
- 1) $echo "Test 02c(_POSIX2_VERSION=199209) failed: files 02c.O and $srcdir/02c.X differ" 1>&2
- (diff -c 02c.O $srcdir/02c.X) 2> /dev/null
- errors=`expr $errors + 1`;;
- 2) $echo "Test 02c(_POSIX2_VERSION=199209) may have failed." 1>&2
- $echo The command "cmp 02c.O $srcdir/02c.X" failed. 1>&2
- errors=`expr $errors + 1`;;
- esac
-fi
-test -s 02c.E || rm -f 02c.E
-_POSIX2_VERSION=199209 $xx -C $srcdir/02d.I > 02d.O 2> 02d.E
-code=$?
-if test $code != 0; then
- $echo "Test 02d(_POSIX2_VERSION=199209) failed: $xx return code $code differs from expected value 0" 1>&2
- errors=`expr $errors + 1`
-else
- cmp 02d.O $srcdir/02d.X > /dev/null 2>&1
- case $? in
- 0) if test "$VERBOSE"; then $echo "passed 02d(_POSIX2_VERSION=199209)"; fi;;
- 1) $echo "Test 02d(_POSIX2_VERSION=199209) failed: files 02d.O and $srcdir/02d.X differ" 1>&2
- (diff -c 02d.O $srcdir/02d.X) 2> /dev/null
- errors=`expr $errors + 1`;;
- 2) $echo "Test 02d(_POSIX2_VERSION=199209) may have failed." 1>&2
- $echo The command "cmp 02d.O $srcdir/02d.X" failed. 1>&2
- errors=`expr $errors + 1`;;
- esac
-fi
-test -s 02d.E || rm -f 02d.E
-_POSIX2_VERSION=199209 $xx -C $srcdir/02e.I > 02e.O 2> 02e.E
-code=$?
-if test $code != 1; then
- $echo "Test 02e(_POSIX2_VERSION=199209) failed: $xx return code $code differs from expected value 1" 1>&2
- errors=`expr $errors + 1`
-else
- cmp 02e.O $srcdir/02e.X > /dev/null 2>&1
- case $? in
- 0) if test "$VERBOSE"; then $echo "passed 02e(_POSIX2_VERSION=199209)"; fi;;
- 1) $echo "Test 02e(_POSIX2_VERSION=199209) failed: files 02e.O and $srcdir/02e.X differ" 1>&2
- (diff -c 02e.O $srcdir/02e.X) 2> /dev/null
- errors=`expr $errors + 1`;;
- 2) $echo "Test 02e(_POSIX2_VERSION=199209) may have failed." 1>&2
- $echo The command "cmp 02e.O $srcdir/02e.X" failed. 1>&2
- errors=`expr $errors + 1`;;
- esac
-fi
-test -s 02e.E || rm -f 02e.E
-_POSIX2_VERSION=199209 $xx -cu $srcdir/02m.I > 02m.O 2> 02m.E
-code=$?
-if test $code != 1; then
- $echo "Test 02m(_POSIX2_VERSION=199209) failed: $xx return code $code differs from expected value 1" 1>&2
- errors=`expr $errors + 1`
-else
- cmp 02m.O $srcdir/02m.X > /dev/null 2>&1
- case $? in
- 0) if test "$VERBOSE"; then $echo "passed 02m(_POSIX2_VERSION=199209)"; fi;;
- 1) $echo "Test 02m(_POSIX2_VERSION=199209) failed: files 02m.O and $srcdir/02m.X differ" 1>&2
- (diff -c 02m.O $srcdir/02m.X) 2> /dev/null
- errors=`expr $errors + 1`;;
- 2) $echo "Test 02m(_POSIX2_VERSION=199209) may have failed." 1>&2
- $echo The command "cmp 02m.O $srcdir/02m.X" failed. 1>&2
- errors=`expr $errors + 1`;;
- esac
-fi
-test -s 02m.E || rm -f 02m.E
-_POSIX2_VERSION=199209 $xx -cu $srcdir/02n.I > 02n.O 2> 02n.E
-code=$?
-if test $code != 0; then
- $echo "Test 02n(_POSIX2_VERSION=199209) failed: $xx return code $code differs from expected value 0" 1>&2
- errors=`expr $errors + 1`
-else
- cmp 02n.O $srcdir/02n.X > /dev/null 2>&1
- case $? in
- 0) if test "$VERBOSE"; then $echo "passed 02n(_POSIX2_VERSION=199209)"; fi;;
- 1) $echo "Test 02n(_POSIX2_VERSION=199209) failed: files 02n.O and $srcdir/02n.X differ" 1>&2
- (diff -c 02n.O $srcdir/02n.X) 2> /dev/null
- errors=`expr $errors + 1`;;
- 2) $echo "Test 02n(_POSIX2_VERSION=199209) may have failed." 1>&2
- $echo The command "cmp 02n.O $srcdir/02n.X" failed. 1>&2
- errors=`expr $errors + 1`;;
- esac
-fi
-test -s 02n.E || rm -f 02n.E
-_POSIX2_VERSION=199209 $xx -cu $srcdir/02o.I > 02o.O 2> 02o.E
-code=$?
-if test $code != 1; then
- $echo "Test 02o(_POSIX2_VERSION=199209) failed: $xx return code $code differs from expected value 1" 1>&2
- errors=`expr $errors + 1`
-else
- cmp 02o.O $srcdir/02o.X > /dev/null 2>&1
- case $? in
- 0) if test "$VERBOSE"; then $echo "passed 02o(_POSIX2_VERSION=199209)"; fi;;
- 1) $echo "Test 02o(_POSIX2_VERSION=199209) failed: files 02o.O and $srcdir/02o.X differ" 1>&2
- (diff -c 02o.O $srcdir/02o.X) 2> /dev/null
- errors=`expr $errors + 1`;;
- 2) $echo "Test 02o(_POSIX2_VERSION=199209) may have failed." 1>&2
- $echo The command "cmp 02o.O $srcdir/02o.X" failed. 1>&2
- errors=`expr $errors + 1`;;
- esac
-fi
-test -s 02o.E || rm -f 02o.E
-_POSIX2_VERSION=199209 $xx -cu $srcdir/02p.I > 02p.O 2> 02p.E
-code=$?
-if test $code != 1; then
- $echo "Test 02p(_POSIX2_VERSION=199209) failed: $xx return code $code differs from expected value 1" 1>&2
- errors=`expr $errors + 1`
-else
- cmp 02p.O $srcdir/02p.X > /dev/null 2>&1
- case $? in
- 0) if test "$VERBOSE"; then $echo "passed 02p(_POSIX2_VERSION=199209)"; fi;;
- 1) $echo "Test 02p(_POSIX2_VERSION=199209) failed: files 02p.O and $srcdir/02p.X differ" 1>&2
- (diff -c 02p.O $srcdir/02p.X) 2> /dev/null
- errors=`expr $errors + 1`;;
- 2) $echo "Test 02p(_POSIX2_VERSION=199209) may have failed." 1>&2
- $echo The command "cmp 02p.O $srcdir/02p.X" failed. 1>&2
- errors=`expr $errors + 1`;;
- esac
-fi
-test -s 02p.E || rm -f 02p.E
-_POSIX2_VERSION=199209 $xx -k1 $srcdir/03a.I > 03a.O 2> 03a.E
-code=$?
-if test $code != 0; then
- $echo "Test 03a(_POSIX2_VERSION=199209) failed: $xx return code $code differs from expected value 0" 1>&2
- errors=`expr $errors + 1`
-else
- cmp 03a.O $srcdir/03a.X > /dev/null 2>&1
- case $? in
- 0) if test "$VERBOSE"; then $echo "passed 03a(_POSIX2_VERSION=199209)"; fi;;
- 1) $echo "Test 03a(_POSIX2_VERSION=199209) failed: files 03a.O and $srcdir/03a.X differ" 1>&2
- (diff -c 03a.O $srcdir/03a.X) 2> /dev/null
- errors=`expr $errors + 1`;;
- 2) $echo "Test 03a(_POSIX2_VERSION=199209) may have failed." 1>&2
- $echo The command "cmp 03a.O $srcdir/03a.X" failed. 1>&2
- errors=`expr $errors + 1`;;
- esac
-fi
-test -s 03a.E || rm -f 03a.E
-_POSIX2_VERSION=199209 $xx -k1,1 $srcdir/03b.I > 03b.O 2> 03b.E
-code=$?
-if test $code != 0; then
- $echo "Test 03b(_POSIX2_VERSION=199209) failed: $xx return code $code differs from expected value 0" 1>&2
- errors=`expr $errors + 1`
-else
- cmp 03b.O $srcdir/03b.X > /dev/null 2>&1
- case $? in
- 0) if test "$VERBOSE"; then $echo "passed 03b(_POSIX2_VERSION=199209)"; fi;;
- 1) $echo "Test 03b(_POSIX2_VERSION=199209) failed: files 03b.O and $srcdir/03b.X differ" 1>&2
- (diff -c 03b.O $srcdir/03b.X) 2> /dev/null
- errors=`expr $errors + 1`;;
- 2) $echo "Test 03b(_POSIX2_VERSION=199209) may have failed." 1>&2
- $echo The command "cmp 03b.O $srcdir/03b.X" failed. 1>&2
- errors=`expr $errors + 1`;;
- esac
-fi
-test -s 03b.E || rm -f 03b.E
-_POSIX2_VERSION=199209 $xx -k1 -k2 $srcdir/03c.I > 03c.O 2> 03c.E
-code=$?
-if test $code != 0; then
- $echo "Test 03c(_POSIX2_VERSION=199209) failed: $xx return code $code differs from expected value 0" 1>&2
- errors=`expr $errors + 1`
-else
- cmp 03c.O $srcdir/03c.X > /dev/null 2>&1
- case $? in
- 0) if test "$VERBOSE"; then $echo "passed 03c(_POSIX2_VERSION=199209)"; fi;;
- 1) $echo "Test 03c(_POSIX2_VERSION=199209) failed: files 03c.O and $srcdir/03c.X differ" 1>&2
- (diff -c 03c.O $srcdir/03c.X) 2> /dev/null
- errors=`expr $errors + 1`;;
- 2) $echo "Test 03c(_POSIX2_VERSION=199209) may have failed." 1>&2
- $echo The command "cmp 03c.O $srcdir/03c.X" failed. 1>&2
- errors=`expr $errors + 1`;;
- esac
-fi
-test -s 03c.E || rm -f 03c.E
-_POSIX2_VERSION=199209 $xx -k0 $srcdir/03d.I > 03d.O 2> 03d.E
-code=$?
-if test $code != 2; then
- $echo "Test 03d(_POSIX2_VERSION=199209) failed: $xx return code $code differs from expected value 2" 1>&2
- errors=`expr $errors + 1`
-else
- cmp 03d.O $srcdir/03d.X > /dev/null 2>&1
- case $? in
- 0) if test "$VERBOSE"; then $echo "passed 03d(_POSIX2_VERSION=199209)"; fi;;
- 1) $echo "Test 03d(_POSIX2_VERSION=199209) failed: files 03d.O and $srcdir/03d.X differ" 1>&2
- (diff -c 03d.O $srcdir/03d.X) 2> /dev/null
- errors=`expr $errors + 1`;;
- 2) $echo "Test 03d(_POSIX2_VERSION=199209) may have failed." 1>&2
- $echo The command "cmp 03d.O $srcdir/03d.X" failed. 1>&2
- errors=`expr $errors + 1`;;
- esac
-fi
-test -s 03d.E || rm -f 03d.E
-_POSIX2_VERSION=199209 $xx -k1.0 $srcdir/03e.I > 03e.O 2> 03e.E
-code=$?
-if test $code != 2; then
- $echo "Test 03e(_POSIX2_VERSION=199209) failed: $xx return code $code differs from expected value 2" 1>&2
- errors=`expr $errors + 1`
-else
- cmp 03e.O $srcdir/03e.X > /dev/null 2>&1
- case $? in
- 0) if test "$VERBOSE"; then $echo "passed 03e(_POSIX2_VERSION=199209)"; fi;;
- 1) $echo "Test 03e(_POSIX2_VERSION=199209) failed: files 03e.O and $srcdir/03e.X differ" 1>&2
- (diff -c 03e.O $srcdir/03e.X) 2> /dev/null
- errors=`expr $errors + 1`;;
- 2) $echo "Test 03e(_POSIX2_VERSION=199209) may have failed." 1>&2
- $echo The command "cmp 03e.O $srcdir/03e.X" failed. 1>&2
- errors=`expr $errors + 1`;;
- esac
-fi
-test -s 03e.E || rm -f 03e.E
-_POSIX2_VERSION=199209 $xx -k1.1,-k0 $srcdir/03f.I > 03f.O 2> 03f.E
-code=$?
-if test $code != 2; then
- $echo "Test 03f(_POSIX2_VERSION=199209) failed: $xx return code $code differs from expected value 2" 1>&2
- errors=`expr $errors + 1`
-else
- cmp 03f.O $srcdir/03f.X > /dev/null 2>&1
- case $? in
- 0) if test "$VERBOSE"; then $echo "passed 03f(_POSIX2_VERSION=199209)"; fi;;
- 1) $echo "Test 03f(_POSIX2_VERSION=199209) failed: files 03f.O and $srcdir/03f.X differ" 1>&2
- (diff -c 03f.O $srcdir/03f.X) 2> /dev/null
- errors=`expr $errors + 1`;;
- 2) $echo "Test 03f(_POSIX2_VERSION=199209) may have failed." 1>&2
- $echo The command "cmp 03f.O $srcdir/03f.X" failed. 1>&2
- errors=`expr $errors + 1`;;
- esac
-fi
-test -s 03f.E || rm -f 03f.E
-_POSIX2_VERSION=199209 $xx -k1.1,1.0 $srcdir/03g.I > 03g.O 2> 03g.E
-code=$?
-if test $code != 0; then
- $echo "Test 03g(_POSIX2_VERSION=199209) failed: $xx return code $code differs from expected value 0" 1>&2
- errors=`expr $errors + 1`
-else
- cmp 03g.O $srcdir/03g.X > /dev/null 2>&1
- case $? in
- 0) if test "$VERBOSE"; then $echo "passed 03g(_POSIX2_VERSION=199209)"; fi;;
- 1) $echo "Test 03g(_POSIX2_VERSION=199209) failed: files 03g.O and $srcdir/03g.X differ" 1>&2
- (diff -c 03g.O $srcdir/03g.X) 2> /dev/null
- errors=`expr $errors + 1`;;
- 2) $echo "Test 03g(_POSIX2_VERSION=199209) may have failed." 1>&2
- $echo The command "cmp 03g.O $srcdir/03g.X" failed. 1>&2
- errors=`expr $errors + 1`;;
- esac
-fi
-test -s 03g.E || rm -f 03g.E
-_POSIX2_VERSION=199209 $xx -k1.1,1 $srcdir/03h.I > 03h.O 2> 03h.E
-code=$?
-if test $code != 0; then
- $echo "Test 03h(_POSIX2_VERSION=199209) failed: $xx return code $code differs from expected value 0" 1>&2
- errors=`expr $errors + 1`
-else
- cmp 03h.O $srcdir/03h.X > /dev/null 2>&1
- case $? in
- 0) if test "$VERBOSE"; then $echo "passed 03h(_POSIX2_VERSION=199209)"; fi;;
- 1) $echo "Test 03h(_POSIX2_VERSION=199209) failed: files 03h.O and $srcdir/03h.X differ" 1>&2
- (diff -c 03h.O $srcdir/03h.X) 2> /dev/null
- errors=`expr $errors + 1`;;
- 2) $echo "Test 03h(_POSIX2_VERSION=199209) may have failed." 1>&2
- $echo The command "cmp 03h.O $srcdir/03h.X" failed. 1>&2
- errors=`expr $errors + 1`;;
- esac
-fi
-test -s 03h.E || rm -f 03h.E
-_POSIX2_VERSION=199209 $xx -k1,1 $srcdir/03i.I > 03i.O 2> 03i.E
-code=$?
-if test $code != 0; then
- $echo "Test 03i(_POSIX2_VERSION=199209) failed: $xx return code $code differs from expected value 0" 1>&2
- errors=`expr $errors + 1`
-else
- cmp 03i.O $srcdir/03i.X > /dev/null 2>&1
- case $? in
- 0) if test "$VERBOSE"; then $echo "passed 03i(_POSIX2_VERSION=199209)"; fi;;
- 1) $echo "Test 03i(_POSIX2_VERSION=199209) failed: files 03i.O and $srcdir/03i.X differ" 1>&2
- (diff -c 03i.O $srcdir/03i.X) 2> /dev/null
- errors=`expr $errors + 1`;;
- 2) $echo "Test 03i(_POSIX2_VERSION=199209) may have failed." 1>&2
- $echo The command "cmp 03i.O $srcdir/03i.X" failed. 1>&2
- errors=`expr $errors + 1`;;
- esac
-fi
-test -s 03i.E || rm -f 03i.E
-_POSIX2_VERSION=199209 $xx -nc $srcdir/04a.I > 04a.O 2> 04a.E
-code=$?
-if test $code != 0; then
- $echo "Test 04a(_POSIX2_VERSION=199209) failed: $xx return code $code differs from expected value 0" 1>&2
- errors=`expr $errors + 1`
-else
- cmp 04a.O $srcdir/04a.X > /dev/null 2>&1
- case $? in
- 0) if test "$VERBOSE"; then $echo "passed 04a(_POSIX2_VERSION=199209)"; fi;;
- 1) $echo "Test 04a(_POSIX2_VERSION=199209) failed: files 04a.O and $srcdir/04a.X differ" 1>&2
- (diff -c 04a.O $srcdir/04a.X) 2> /dev/null
- errors=`expr $errors + 1`;;
- 2) $echo "Test 04a(_POSIX2_VERSION=199209) may have failed." 1>&2
- $echo The command "cmp 04a.O $srcdir/04a.X" failed. 1>&2
- errors=`expr $errors + 1`;;
- esac
-fi
-test -s 04a.E || rm -f 04a.E
-_POSIX2_VERSION=199209 $xx -n $srcdir/04b.I > 04b.O 2> 04b.E
-code=$?
-if test $code != 0; then
- $echo "Test 04b(_POSIX2_VERSION=199209) failed: $xx return code $code differs from expected value 0" 1>&2
- errors=`expr $errors + 1`
-else
- cmp 04b.O $srcdir/04b.X > /dev/null 2>&1
- case $? in
- 0) if test "$VERBOSE"; then $echo "passed 04b(_POSIX2_VERSION=199209)"; fi;;
- 1) $echo "Test 04b(_POSIX2_VERSION=199209) failed: files 04b.O and $srcdir/04b.X differ" 1>&2
- (diff -c 04b.O $srcdir/04b.X) 2> /dev/null
- errors=`expr $errors + 1`;;
- 2) $echo "Test 04b(_POSIX2_VERSION=199209) may have failed." 1>&2
- $echo The command "cmp 04b.O $srcdir/04b.X" failed. 1>&2
- errors=`expr $errors + 1`;;
- esac
-fi
-test -s 04b.E || rm -f 04b.E
-_POSIX2_VERSION=199209 $xx -k1n $srcdir/04c.I > 04c.O 2> 04c.E
-code=$?
-if test $code != 0; then
- $echo "Test 04c(_POSIX2_VERSION=199209) failed: $xx return code $code differs from expected value 0" 1>&2
- errors=`expr $errors + 1`
-else
- cmp 04c.O $srcdir/04c.X > /dev/null 2>&1
- case $? in
- 0) if test "$VERBOSE"; then $echo "passed 04c(_POSIX2_VERSION=199209)"; fi;;
- 1) $echo "Test 04c(_POSIX2_VERSION=199209) failed: files 04c.O and $srcdir/04c.X differ" 1>&2
- (diff -c 04c.O $srcdir/04c.X) 2> /dev/null
- errors=`expr $errors + 1`;;
- 2) $echo "Test 04c(_POSIX2_VERSION=199209) may have failed." 1>&2
- $echo The command "cmp 04c.O $srcdir/04c.X" failed. 1>&2
- errors=`expr $errors + 1`;;
- esac
-fi
-test -s 04c.E || rm -f 04c.E
-_POSIX2_VERSION=199209 $xx -k1 $srcdir/04d.I > 04d.O 2> 04d.E
-code=$?
-if test $code != 0; then
- $echo "Test 04d(_POSIX2_VERSION=199209) failed: $xx return code $code differs from expected value 0" 1>&2
- errors=`expr $errors + 1`
-else
- cmp 04d.O $srcdir/04d.X > /dev/null 2>&1
- case $? in
- 0) if test "$VERBOSE"; then $echo "passed 04d(_POSIX2_VERSION=199209)"; fi;;
- 1) $echo "Test 04d(_POSIX2_VERSION=199209) failed: files 04d.O and $srcdir/04d.X differ" 1>&2
- (diff -c 04d.O $srcdir/04d.X) 2> /dev/null
- errors=`expr $errors + 1`;;
- 2) $echo "Test 04d(_POSIX2_VERSION=199209) may have failed." 1>&2
- $echo The command "cmp 04d.O $srcdir/04d.X" failed. 1>&2
- errors=`expr $errors + 1`;;
- esac
-fi
-test -s 04d.E || rm -f 04d.E
-_POSIX2_VERSION=199209 $xx -k2 $srcdir/04e.I > 04e.O 2> 04e.E
-code=$?
-if test $code != 0; then
- $echo "Test 04e(_POSIX2_VERSION=199209) failed: $xx return code $code differs from expected value 0" 1>&2
- errors=`expr $errors + 1`
-else
- cmp 04e.O $srcdir/04e.X > /dev/null 2>&1
- case $? in
- 0) if test "$VERBOSE"; then $echo "passed 04e(_POSIX2_VERSION=199209)"; fi;;
- 1) $echo "Test 04e(_POSIX2_VERSION=199209) failed: files 04e.O and $srcdir/04e.X differ" 1>&2
- (diff -c 04e.O $srcdir/04e.X) 2> /dev/null
- errors=`expr $errors + 1`;;
- 2) $echo "Test 04e(_POSIX2_VERSION=199209) may have failed." 1>&2
- $echo The command "cmp 04e.O $srcdir/04e.X" failed. 1>&2
- errors=`expr $errors + 1`;;
- esac
-fi
-test -s 04e.E || rm -f 04e.E
-_POSIX2_VERSION=199209 $xx -k1,2 $srcdir/05a.I > 05a.O 2> 05a.E
-code=$?
-if test $code != 0; then
- $echo "Test 05a(_POSIX2_VERSION=199209) failed: $xx return code $code differs from expected value 0" 1>&2
- errors=`expr $errors + 1`
-else
- cmp 05a.O $srcdir/05a.X > /dev/null 2>&1
- case $? in
- 0) if test "$VERBOSE"; then $echo "passed 05a(_POSIX2_VERSION=199209)"; fi;;
- 1) $echo "Test 05a(_POSIX2_VERSION=199209) failed: files 05a.O and $srcdir/05a.X differ" 1>&2
- (diff -c 05a.O $srcdir/05a.X) 2> /dev/null
- errors=`expr $errors + 1`;;
- 2) $echo "Test 05a(_POSIX2_VERSION=199209) may have failed." 1>&2
- $echo The command "cmp 05a.O $srcdir/05a.X" failed. 1>&2
- errors=`expr $errors + 1`;;
- esac
-fi
-test -s 05a.E || rm -f 05a.E
-_POSIX2_VERSION=199209 $xx -k1,2 $srcdir/05b.I > 05b.O 2> 05b.E
-code=$?
-if test $code != 0; then
- $echo "Test 05b(_POSIX2_VERSION=199209) failed: $xx return code $code differs from expected value 0" 1>&2
- errors=`expr $errors + 1`
-else
- cmp 05b.O $srcdir/05b.X > /dev/null 2>&1
- case $? in
- 0) if test "$VERBOSE"; then $echo "passed 05b(_POSIX2_VERSION=199209)"; fi;;
- 1) $echo "Test 05b(_POSIX2_VERSION=199209) failed: files 05b.O and $srcdir/05b.X differ" 1>&2
- (diff -c 05b.O $srcdir/05b.X) 2> /dev/null
- errors=`expr $errors + 1`;;
- 2) $echo "Test 05b(_POSIX2_VERSION=199209) may have failed." 1>&2
- $echo The command "cmp 05b.O $srcdir/05b.X" failed. 1>&2
- errors=`expr $errors + 1`;;
- esac
-fi
-test -s 05b.E || rm -f 05b.E
-_POSIX2_VERSION=199209 $xx -k1 -k2 $srcdir/05c.I > 05c.O 2> 05c.E
-code=$?
-if test $code != 0; then
- $echo "Test 05c(_POSIX2_VERSION=199209) failed: $xx return code $code differs from expected value 0" 1>&2
- errors=`expr $errors + 1`
-else
- cmp 05c.O $srcdir/05c.X > /dev/null 2>&1
- case $? in
- 0) if test "$VERBOSE"; then $echo "passed 05c(_POSIX2_VERSION=199209)"; fi;;
- 1) $echo "Test 05c(_POSIX2_VERSION=199209) failed: files 05c.O and $srcdir/05c.X differ" 1>&2
- (diff -c 05c.O $srcdir/05c.X) 2> /dev/null
- errors=`expr $errors + 1`;;
- 2) $echo "Test 05c(_POSIX2_VERSION=199209) may have failed." 1>&2
- $echo The command "cmp 05c.O $srcdir/05c.X" failed. 1>&2
- errors=`expr $errors + 1`;;
- esac
-fi
-test -s 05c.E || rm -f 05c.E
-_POSIX2_VERSION=199209 $xx -k2,2 $srcdir/05d.I > 05d.O 2> 05d.E
-code=$?
-if test $code != 0; then
- $echo "Test 05d(_POSIX2_VERSION=199209) failed: $xx return code $code differs from expected value 0" 1>&2
- errors=`expr $errors + 1`
-else
- cmp 05d.O $srcdir/05d.X > /dev/null 2>&1
- case $? in
- 0) if test "$VERBOSE"; then $echo "passed 05d(_POSIX2_VERSION=199209)"; fi;;
- 1) $echo "Test 05d(_POSIX2_VERSION=199209) failed: files 05d.O and $srcdir/05d.X differ" 1>&2
- (diff -c 05d.O $srcdir/05d.X) 2> /dev/null
- errors=`expr $errors + 1`;;
- 2) $echo "Test 05d(_POSIX2_VERSION=199209) may have failed." 1>&2
- $echo The command "cmp 05d.O $srcdir/05d.X" failed. 1>&2
- errors=`expr $errors + 1`;;
- esac
-fi
-test -s 05d.E || rm -f 05d.E
-_POSIX2_VERSION=199209 $xx -k2,2 $srcdir/05e.I > 05e.O 2> 05e.E
-code=$?
-if test $code != 0; then
- $echo "Test 05e(_POSIX2_VERSION=199209) failed: $xx return code $code differs from expected value 0" 1>&2
- errors=`expr $errors + 1`
-else
- cmp 05e.O $srcdir/05e.X > /dev/null 2>&1
- case $? in
- 0) if test "$VERBOSE"; then $echo "passed 05e(_POSIX2_VERSION=199209)"; fi;;
- 1) $echo "Test 05e(_POSIX2_VERSION=199209) failed: files 05e.O and $srcdir/05e.X differ" 1>&2
- (diff -c 05e.O $srcdir/05e.X) 2> /dev/null
- errors=`expr $errors + 1`;;
- 2) $echo "Test 05e(_POSIX2_VERSION=199209) may have failed." 1>&2
- $echo The command "cmp 05e.O $srcdir/05e.X" failed. 1>&2
- errors=`expr $errors + 1`;;
- esac
-fi
-test -s 05e.E || rm -f 05e.E
-_POSIX2_VERSION=199209 $xx -k2,2 $srcdir/05f.I > 05f.O 2> 05f.E
-code=$?
-if test $code != 0; then
- $echo "Test 05f(_POSIX2_VERSION=199209) failed: $xx return code $code differs from expected value 0" 1>&2
- errors=`expr $errors + 1`
-else
- cmp 05f.O $srcdir/05f.X > /dev/null 2>&1
- case $? in
- 0) if test "$VERBOSE"; then $echo "passed 05f(_POSIX2_VERSION=199209)"; fi;;
- 1) $echo "Test 05f(_POSIX2_VERSION=199209) failed: files 05f.O and $srcdir/05f.X differ" 1>&2
- (diff -c 05f.O $srcdir/05f.X) 2> /dev/null
- errors=`expr $errors + 1`;;
- 2) $echo "Test 05f(_POSIX2_VERSION=199209) may have failed." 1>&2
- $echo The command "cmp 05f.O $srcdir/05f.X" failed. 1>&2
- errors=`expr $errors + 1`;;
- esac
-fi
-test -s 05f.E || rm -f 05f.E
-_POSIX2_VERSION=199209 $xx -k 1,2 $srcdir/06a.I > 06a.O 2> 06a.E
-code=$?
-if test $code != 0; then
- $echo "Test 06a(_POSIX2_VERSION=199209) failed: $xx return code $code differs from expected value 0" 1>&2
- errors=`expr $errors + 1`
-else
- cmp 06a.O $srcdir/06a.X > /dev/null 2>&1
- case $? in
- 0) if test "$VERBOSE"; then $echo "passed 06a(_POSIX2_VERSION=199209)"; fi;;
- 1) $echo "Test 06a(_POSIX2_VERSION=199209) failed: files 06a.O and $srcdir/06a.X differ" 1>&2
- (diff -c 06a.O $srcdir/06a.X) 2> /dev/null
- errors=`expr $errors + 1`;;
- 2) $echo "Test 06a(_POSIX2_VERSION=199209) may have failed." 1>&2
- $echo The command "cmp 06a.O $srcdir/06a.X" failed. 1>&2
- errors=`expr $errors + 1`;;
- esac
-fi
-test -s 06a.E || rm -f 06a.E
-_POSIX2_VERSION=199209 $xx -k 1,2 $srcdir/06b.I > 06b.O 2> 06b.E
-code=$?
-if test $code != 0; then
- $echo "Test 06b(_POSIX2_VERSION=199209) failed: $xx return code $code differs from expected value 0" 1>&2
- errors=`expr $errors + 1`
-else
- cmp 06b.O $srcdir/06b.X > /dev/null 2>&1
- case $? in
- 0) if test "$VERBOSE"; then $echo "passed 06b(_POSIX2_VERSION=199209)"; fi;;
- 1) $echo "Test 06b(_POSIX2_VERSION=199209) failed: files 06b.O and $srcdir/06b.X differ" 1>&2
- (diff -c 06b.O $srcdir/06b.X) 2> /dev/null
- errors=`expr $errors + 1`;;
- 2) $echo "Test 06b(_POSIX2_VERSION=199209) may have failed." 1>&2
- $echo The command "cmp 06b.O $srcdir/06b.X" failed. 1>&2
- errors=`expr $errors + 1`;;
- esac
-fi
-test -s 06b.E || rm -f 06b.E
-_POSIX2_VERSION=199209 $xx -k 1 -k 2 $srcdir/06c.I > 06c.O 2> 06c.E
-code=$?
-if test $code != 0; then
- $echo "Test 06c(_POSIX2_VERSION=199209) failed: $xx return code $code differs from expected value 0" 1>&2
- errors=`expr $errors + 1`
-else
- cmp 06c.O $srcdir/06c.X > /dev/null 2>&1
- case $? in
- 0) if test "$VERBOSE"; then $echo "passed 06c(_POSIX2_VERSION=199209)"; fi;;
- 1) $echo "Test 06c(_POSIX2_VERSION=199209) failed: files 06c.O and $srcdir/06c.X differ" 1>&2
- (diff -c 06c.O $srcdir/06c.X) 2> /dev/null
- errors=`expr $errors + 1`;;
- 2) $echo "Test 06c(_POSIX2_VERSION=199209) may have failed." 1>&2
- $echo The command "cmp 06c.O $srcdir/06c.X" failed. 1>&2
- errors=`expr $errors + 1`;;
- esac
-fi
-test -s 06c.E || rm -f 06c.E
-_POSIX2_VERSION=199209 $xx -k 2,2 $srcdir/06d.I > 06d.O 2> 06d.E
-code=$?
-if test $code != 0; then
- $echo "Test 06d(_POSIX2_VERSION=199209) failed: $xx return code $code differs from expected value 0" 1>&2
- errors=`expr $errors + 1`
-else
- cmp 06d.O $srcdir/06d.X > /dev/null 2>&1
- case $? in
- 0) if test "$VERBOSE"; then $echo "passed 06d(_POSIX2_VERSION=199209)"; fi;;
- 1) $echo "Test 06d(_POSIX2_VERSION=199209) failed: files 06d.O and $srcdir/06d.X differ" 1>&2
- (diff -c 06d.O $srcdir/06d.X) 2> /dev/null
- errors=`expr $errors + 1`;;
- 2) $echo "Test 06d(_POSIX2_VERSION=199209) may have failed." 1>&2
- $echo The command "cmp 06d.O $srcdir/06d.X" failed. 1>&2
- errors=`expr $errors + 1`;;
- esac
-fi
-test -s 06d.E || rm -f 06d.E
-_POSIX2_VERSION=199209 $xx -k 2,2 $srcdir/06e.I > 06e.O 2> 06e.E
-code=$?
-if test $code != 0; then
- $echo "Test 06e(_POSIX2_VERSION=199209) failed: $xx return code $code differs from expected value 0" 1>&2
- errors=`expr $errors + 1`
-else
- cmp 06e.O $srcdir/06e.X > /dev/null 2>&1
- case $? in
- 0) if test "$VERBOSE"; then $echo "passed 06e(_POSIX2_VERSION=199209)"; fi;;
- 1) $echo "Test 06e(_POSIX2_VERSION=199209) failed: files 06e.O and $srcdir/06e.X differ" 1>&2
- (diff -c 06e.O $srcdir/06e.X) 2> /dev/null
- errors=`expr $errors + 1`;;
- 2) $echo "Test 06e(_POSIX2_VERSION=199209) may have failed." 1>&2
- $echo The command "cmp 06e.O $srcdir/06e.X" failed. 1>&2
- errors=`expr $errors + 1`;;
- esac
-fi
-test -s 06e.E || rm -f 06e.E
-_POSIX2_VERSION=199209 $xx -k 2,2 $srcdir/06f.I > 06f.O 2> 06f.E
-code=$?
-if test $code != 0; then
- $echo "Test 06f(_POSIX2_VERSION=199209) failed: $xx return code $code differs from expected value 0" 1>&2
- errors=`expr $errors + 1`
-else
- cmp 06f.O $srcdir/06f.X > /dev/null 2>&1
- case $? in
- 0) if test "$VERBOSE"; then $echo "passed 06f(_POSIX2_VERSION=199209)"; fi;;
- 1) $echo "Test 06f(_POSIX2_VERSION=199209) failed: files 06f.O and $srcdir/06f.X differ" 1>&2
- (diff -c 06f.O $srcdir/06f.X) 2> /dev/null
- errors=`expr $errors + 1`;;
- 2) $echo "Test 06f(_POSIX2_VERSION=199209) may have failed." 1>&2
- $echo The command "cmp 06f.O $srcdir/06f.X" failed. 1>&2
- errors=`expr $errors + 1`;;
- esac
-fi
-test -s 06f.E || rm -f 06f.E
-_POSIX2_VERSION=199209 $xx -k 2,3 $srcdir/07a.I > 07a.O 2> 07a.E
-code=$?
-if test $code != 0; then
- $echo "Test 07a(_POSIX2_VERSION=199209) failed: $xx return code $code differs from expected value 0" 1>&2
- errors=`expr $errors + 1`
-else
- cmp 07a.O $srcdir/07a.X > /dev/null 2>&1
- case $? in
- 0) if test "$VERBOSE"; then $echo "passed 07a(_POSIX2_VERSION=199209)"; fi;;
- 1) $echo "Test 07a(_POSIX2_VERSION=199209) failed: files 07a.O and $srcdir/07a.X differ" 1>&2
- (diff -c 07a.O $srcdir/07a.X) 2> /dev/null
- errors=`expr $errors + 1`;;
- 2) $echo "Test 07a(_POSIX2_VERSION=199209) may have failed." 1>&2
- $echo The command "cmp 07a.O $srcdir/07a.X" failed. 1>&2
- errors=`expr $errors + 1`;;
- esac
-fi
-test -s 07a.E || rm -f 07a.E
-_POSIX2_VERSION=199209 $xx -k 2,3 $srcdir/07b.I > 07b.O 2> 07b.E
-code=$?
-if test $code != 0; then
- $echo "Test 07b(_POSIX2_VERSION=199209) failed: $xx return code $code differs from expected value 0" 1>&2
- errors=`expr $errors + 1`
-else
- cmp 07b.O $srcdir/07b.X > /dev/null 2>&1
- case $? in
- 0) if test "$VERBOSE"; then $echo "passed 07b(_POSIX2_VERSION=199209)"; fi;;
- 1) $echo "Test 07b(_POSIX2_VERSION=199209) failed: files 07b.O and $srcdir/07b.X differ" 1>&2
- (diff -c 07b.O $srcdir/07b.X) 2> /dev/null
- errors=`expr $errors + 1`;;
- 2) $echo "Test 07b(_POSIX2_VERSION=199209) may have failed." 1>&2
- $echo The command "cmp 07b.O $srcdir/07b.X" failed. 1>&2
- errors=`expr $errors + 1`;;
- esac
-fi
-test -s 07b.E || rm -f 07b.E
-_POSIX2_VERSION=199209 $xx -k 2,3 $srcdir/07c.I > 07c.O 2> 07c.E
-code=$?
-if test $code != 0; then
- $echo "Test 07c(_POSIX2_VERSION=199209) failed: $xx return code $code differs from expected value 0" 1>&2
- errors=`expr $errors + 1`
-else
- cmp 07c.O $srcdir/07c.X > /dev/null 2>&1
- case $? in
- 0) if test "$VERBOSE"; then $echo "passed 07c(_POSIX2_VERSION=199209)"; fi;;
- 1) $echo "Test 07c(_POSIX2_VERSION=199209) failed: files 07c.O and $srcdir/07c.X differ" 1>&2
- (diff -c 07c.O $srcdir/07c.X) 2> /dev/null
- errors=`expr $errors + 1`;;
- 2) $echo "Test 07c(_POSIX2_VERSION=199209) may have failed." 1>&2
- $echo The command "cmp 07c.O $srcdir/07c.X" failed. 1>&2
- errors=`expr $errors + 1`;;
- esac
-fi
-test -s 07c.E || rm -f 07c.E
-_POSIX2_VERSION=199209 $xx +1 -3 $srcdir/07d.I > 07d.O 2> 07d.E
-code=$?
-if test $code != 0; then
- $echo "Test 07d(_POSIX2_VERSION=199209) failed: $xx return code $code differs from expected value 0" 1>&2
- errors=`expr $errors + 1`
-else
- cmp 07d.O $srcdir/07d.X > /dev/null 2>&1
- case $? in
- 0) if test "$VERBOSE"; then $echo "passed 07d(_POSIX2_VERSION=199209)"; fi;;
- 1) $echo "Test 07d(_POSIX2_VERSION=199209) failed: files 07d.O and $srcdir/07d.X differ" 1>&2
- (diff -c 07d.O $srcdir/07d.X) 2> /dev/null
- errors=`expr $errors + 1`;;
- 2) $echo "Test 07d(_POSIX2_VERSION=199209) may have failed." 1>&2
- $echo The command "cmp 07d.O $srcdir/07d.X" failed. 1>&2
- errors=`expr $errors + 1`;;
- esac
-fi
-test -s 07d.E || rm -f 07d.E
-_POSIX2_VERSION=199209 $xx -k 2.,3 $srcdir/08a.I > 08a.O 2> 08a.E
-code=$?
-if test $code != 2; then
- $echo "Test 08a(_POSIX2_VERSION=199209) failed: $xx return code $code differs from expected value 2" 1>&2
- errors=`expr $errors + 1`
-else
- cmp 08a.O $srcdir/08a.X > /dev/null 2>&1
- case $? in
- 0) if test "$VERBOSE"; then $echo "passed 08a(_POSIX2_VERSION=199209)"; fi;;
- 1) $echo "Test 08a(_POSIX2_VERSION=199209) failed: files 08a.O and $srcdir/08a.X differ" 1>&2
- (diff -c 08a.O $srcdir/08a.X) 2> /dev/null
- errors=`expr $errors + 1`;;
- 2) $echo "Test 08a(_POSIX2_VERSION=199209) may have failed." 1>&2
- $echo The command "cmp 08a.O $srcdir/08a.X" failed. 1>&2
- errors=`expr $errors + 1`;;
- esac
-fi
-test -s 08a.E || rm -f 08a.E
-_POSIX2_VERSION=199209 $xx -k 2, $srcdir/08b.I > 08b.O 2> 08b.E
-code=$?
-if test $code != 2; then
- $echo "Test 08b(_POSIX2_VERSION=199209) failed: $xx return code $code differs from expected value 2" 1>&2
- errors=`expr $errors + 1`
-else
- cmp 08b.O $srcdir/08b.X > /dev/null 2>&1
- case $? in
- 0) if test "$VERBOSE"; then $echo "passed 08b(_POSIX2_VERSION=199209)"; fi;;
- 1) $echo "Test 08b(_POSIX2_VERSION=199209) failed: files 08b.O and $srcdir/08b.X differ" 1>&2
- (diff -c 08b.O $srcdir/08b.X) 2> /dev/null
- errors=`expr $errors + 1`;;
- 2) $echo "Test 08b(_POSIX2_VERSION=199209) may have failed." 1>&2
- $echo The command "cmp 08b.O $srcdir/08b.X" failed. 1>&2
- errors=`expr $errors + 1`;;
- esac
-fi
-test -s 08b.E || rm -f 08b.E
-_POSIX2_VERSION=199209 $xx -g $srcdir/09a.I > 09a.O 2> 09a.E
-code=$?
-if test $code != 0; then
- $echo "Test 09a(_POSIX2_VERSION=199209) failed: $xx return code $code differs from expected value 0" 1>&2
- errors=`expr $errors + 1`
-else
- cmp 09a.O $srcdir/09a.X > /dev/null 2>&1
- case $? in
- 0) if test "$VERBOSE"; then $echo "passed 09a(_POSIX2_VERSION=199209)"; fi;;
- 1) $echo "Test 09a(_POSIX2_VERSION=199209) failed: files 09a.O and $srcdir/09a.X differ" 1>&2
- (diff -c 09a.O $srcdir/09a.X) 2> /dev/null
- errors=`expr $errors + 1`;;
- 2) $echo "Test 09a(_POSIX2_VERSION=199209) may have failed." 1>&2
- $echo The command "cmp 09a.O $srcdir/09a.X" failed. 1>&2
- errors=`expr $errors + 1`;;
- esac
-fi
-test -s 09a.E || rm -f 09a.E
-_POSIX2_VERSION=199209 $xx -n $srcdir/09b.I > 09b.O 2> 09b.E
-code=$?
-if test $code != 0; then
- $echo "Test 09b(_POSIX2_VERSION=199209) failed: $xx return code $code differs from expected value 0" 1>&2
- errors=`expr $errors + 1`
-else
- cmp 09b.O $srcdir/09b.X > /dev/null 2>&1
- case $? in
- 0) if test "$VERBOSE"; then $echo "passed 09b(_POSIX2_VERSION=199209)"; fi;;
- 1) $echo "Test 09b(_POSIX2_VERSION=199209) failed: files 09b.O and $srcdir/09b.X differ" 1>&2
- (diff -c 09b.O $srcdir/09b.X) 2> /dev/null
- errors=`expr $errors + 1`;;
- 2) $echo "Test 09b(_POSIX2_VERSION=199209) may have failed." 1>&2
- $echo The command "cmp 09b.O $srcdir/09b.X" failed. 1>&2
- errors=`expr $errors + 1`;;
- esac
-fi
-test -s 09b.E || rm -f 09b.E
-_POSIX2_VERSION=199209 $xx -n $srcdir/09c.I > 09c.O 2> 09c.E
-code=$?
-if test $code != 0; then
- $echo "Test 09c(_POSIX2_VERSION=199209) failed: $xx return code $code differs from expected value 0" 1>&2
- errors=`expr $errors + 1`
-else
- cmp 09c.O $srcdir/09c.X > /dev/null 2>&1
- case $? in
- 0) if test "$VERBOSE"; then $echo "passed 09c(_POSIX2_VERSION=199209)"; fi;;
- 1) $echo "Test 09c(_POSIX2_VERSION=199209) failed: files 09c.O and $srcdir/09c.X differ" 1>&2
- (diff -c 09c.O $srcdir/09c.X) 2> /dev/null
- errors=`expr $errors + 1`;;
- 2) $echo "Test 09c(_POSIX2_VERSION=199209) may have failed." 1>&2
- $echo The command "cmp 09c.O $srcdir/09c.X" failed. 1>&2
- errors=`expr $errors + 1`;;
- esac
-fi
-test -s 09c.E || rm -f 09c.E
-_POSIX2_VERSION=199209 $xx -k2g $srcdir/09d.I > 09d.O 2> 09d.E
-code=$?
-if test $code != 0; then
- $echo "Test 09d(_POSIX2_VERSION=199209) failed: $xx return code $code differs from expected value 0" 1>&2
- errors=`expr $errors + 1`
-else
- cmp 09d.O $srcdir/09d.X > /dev/null 2>&1
- case $? in
- 0) if test "$VERBOSE"; then $echo "passed 09d(_POSIX2_VERSION=199209)"; fi;;
- 1) $echo "Test 09d(_POSIX2_VERSION=199209) failed: files 09d.O and $srcdir/09d.X differ" 1>&2
- (diff -c 09d.O $srcdir/09d.X) 2> /dev/null
- errors=`expr $errors + 1`;;
- 2) $echo "Test 09d(_POSIX2_VERSION=199209) may have failed." 1>&2
- $echo The command "cmp 09d.O $srcdir/09d.X" failed. 1>&2
- errors=`expr $errors + 1`;;
- esac
-fi
-test -s 09d.E || rm -f 09d.E
-_POSIX2_VERSION=199209 $xx -t : -k 2.2,2.2 $srcdir/10a.I > 10a.O 2> 10a.E
-code=$?
-if test $code != 0; then
- $echo "Test 10a(_POSIX2_VERSION=199209) failed: $xx return code $code differs from expected value 0" 1>&2
- errors=`expr $errors + 1`
-else
- cmp 10a.O $srcdir/10a.X > /dev/null 2>&1
- case $? in
- 0) if test "$VERBOSE"; then $echo "passed 10a(_POSIX2_VERSION=199209)"; fi;;
- 1) $echo "Test 10a(_POSIX2_VERSION=199209) failed: files 10a.O and $srcdir/10a.X differ" 1>&2
- (diff -c 10a.O $srcdir/10a.X) 2> /dev/null
- errors=`expr $errors + 1`;;
- 2) $echo "Test 10a(_POSIX2_VERSION=199209) may have failed." 1>&2
- $echo The command "cmp 10a.O $srcdir/10a.X" failed. 1>&2
- errors=`expr $errors + 1`;;
- esac
-fi
-test -s 10a.E || rm -f 10a.E
-_POSIX2_VERSION=199209 $xx -t : +1.1 -1.2 $srcdir/10b.I > 10b.O 2> 10b.E
-code=$?
-if test $code != 0; then
- $echo "Test 10b(_POSIX2_VERSION=199209) failed: $xx return code $code differs from expected value 0" 1>&2
- errors=`expr $errors + 1`
-else
- cmp 10b.O $srcdir/10b.X > /dev/null 2>&1
- case $? in
- 0) if test "$VERBOSE"; then $echo "passed 10b(_POSIX2_VERSION=199209)"; fi;;
- 1) $echo "Test 10b(_POSIX2_VERSION=199209) failed: files 10b.O and $srcdir/10b.X differ" 1>&2
- (diff -c 10b.O $srcdir/10b.X) 2> /dev/null
- errors=`expr $errors + 1`;;
- 2) $echo "Test 10b(_POSIX2_VERSION=199209) may have failed." 1>&2
- $echo The command "cmp 10b.O $srcdir/10b.X" failed. 1>&2
- errors=`expr $errors + 1`;;
- esac
-fi
-test -s 10b.E || rm -f 10b.E
-_POSIX2_VERSION=199209 $xx -t : -k 2.2,2.2 $srcdir/10c.I > 10c.O 2> 10c.E
-code=$?
-if test $code != 0; then
- $echo "Test 10c(_POSIX2_VERSION=199209) failed: $xx return code $code differs from expected value 0" 1>&2
- errors=`expr $errors + 1`
-else
- cmp 10c.O $srcdir/10c.X > /dev/null 2>&1
- case $? in
- 0) if test "$VERBOSE"; then $echo "passed 10c(_POSIX2_VERSION=199209)"; fi;;
- 1) $echo "Test 10c(_POSIX2_VERSION=199209) failed: files 10c.O and $srcdir/10c.X differ" 1>&2
- (diff -c 10c.O $srcdir/10c.X) 2> /dev/null
- errors=`expr $errors + 1`;;
- 2) $echo "Test 10c(_POSIX2_VERSION=199209) may have failed." 1>&2
- $echo The command "cmp 10c.O $srcdir/10c.X" failed. 1>&2
- errors=`expr $errors + 1`;;
- esac
-fi
-test -s 10c.E || rm -f 10c.E
-_POSIX2_VERSION=199209 $xx -t : +1.1 -1.2 $srcdir/10d.I > 10d.O 2> 10d.E
-code=$?
-if test $code != 0; then
- $echo "Test 10d(_POSIX2_VERSION=199209) failed: $xx return code $code differs from expected value 0" 1>&2
- errors=`expr $errors + 1`
-else
- cmp 10d.O $srcdir/10d.X > /dev/null 2>&1
- case $? in
- 0) if test "$VERBOSE"; then $echo "passed 10d(_POSIX2_VERSION=199209)"; fi;;
- 1) $echo "Test 10d(_POSIX2_VERSION=199209) failed: files 10d.O and $srcdir/10d.X differ" 1>&2
- (diff -c 10d.O $srcdir/10d.X) 2> /dev/null
- errors=`expr $errors + 1`;;
- 2) $echo "Test 10d(_POSIX2_VERSION=199209) may have failed." 1>&2
- $echo The command "cmp 10d.O $srcdir/10d.X" failed. 1>&2
- errors=`expr $errors + 1`;;
- esac
-fi
-test -s 10d.E || rm -f 10d.E
-_POSIX2_VERSION=199209 $xx -k 2.3,2.3 $srcdir/10a0.I > 10a0.O 2> 10a0.E
-code=$?
-if test $code != 0; then
- $echo "Test 10a0(_POSIX2_VERSION=199209) failed: $xx return code $code differs from expected value 0" 1>&2
- errors=`expr $errors + 1`
-else
- cmp 10a0.O $srcdir/10a0.X > /dev/null 2>&1
- case $? in
- 0) if test "$VERBOSE"; then $echo "passed 10a0(_POSIX2_VERSION=199209)"; fi;;
- 1) $echo "Test 10a0(_POSIX2_VERSION=199209) failed: files 10a0.O and $srcdir/10a0.X differ" 1>&2
- (diff -c 10a0.O $srcdir/10a0.X) 2> /dev/null
- errors=`expr $errors + 1`;;
- 2) $echo "Test 10a0(_POSIX2_VERSION=199209) may have failed." 1>&2
- $echo The command "cmp 10a0.O $srcdir/10a0.X" failed. 1>&2
- errors=`expr $errors + 1`;;
- esac
-fi
-test -s 10a0.E || rm -f 10a0.E
-_POSIX2_VERSION=199209 $xx -k 1.2,1.2 $srcdir/10a1.I > 10a1.O 2> 10a1.E
-code=$?
-if test $code != 0; then
- $echo "Test 10a1(_POSIX2_VERSION=199209) failed: $xx return code $code differs from expected value 0" 1>&2
- errors=`expr $errors + 1`
-else
- cmp 10a1.O $srcdir/10a1.X > /dev/null 2>&1
- case $? in
- 0) if test "$VERBOSE"; then $echo "passed 10a1(_POSIX2_VERSION=199209)"; fi;;
- 1) $echo "Test 10a1(_POSIX2_VERSION=199209) failed: files 10a1.O and $srcdir/10a1.X differ" 1>&2
- (diff -c 10a1.O $srcdir/10a1.X) 2> /dev/null
- errors=`expr $errors + 1`;;
- 2) $echo "Test 10a1(_POSIX2_VERSION=199209) may have failed." 1>&2
- $echo The command "cmp 10a1.O $srcdir/10a1.X" failed. 1>&2
- errors=`expr $errors + 1`;;
- esac
-fi
-test -s 10a1.E || rm -f 10a1.E
-_POSIX2_VERSION=199209 $xx -b -k 2.2,2.2 $srcdir/10a2.I > 10a2.O 2> 10a2.E
-code=$?
-if test $code != 0; then
- $echo "Test 10a2(_POSIX2_VERSION=199209) failed: $xx return code $code differs from expected value 0" 1>&2
- errors=`expr $errors + 1`
-else
- cmp 10a2.O $srcdir/10a2.X > /dev/null 2>&1
- case $? in
- 0) if test "$VERBOSE"; then $echo "passed 10a2(_POSIX2_VERSION=199209)"; fi;;
- 1) $echo "Test 10a2(_POSIX2_VERSION=199209) failed: files 10a2.O and $srcdir/10a2.X differ" 1>&2
- (diff -c 10a2.O $srcdir/10a2.X) 2> /dev/null
- errors=`expr $errors + 1`;;
- 2) $echo "Test 10a2(_POSIX2_VERSION=199209) may have failed." 1>&2
- $echo The command "cmp 10a2.O $srcdir/10a2.X" failed. 1>&2
- errors=`expr $errors + 1`;;
- esac
-fi
-test -s 10a2.E || rm -f 10a2.E
-_POSIX2_VERSION=199209 $xx -k 1.2,1.2 $srcdir/10e.I > 10e.O 2> 10e.E
-code=$?
-if test $code != 0; then
- $echo "Test 10e(_POSIX2_VERSION=199209) failed: $xx return code $code differs from expected value 0" 1>&2
- errors=`expr $errors + 1`
-else
- cmp 10e.O $srcdir/10e.X > /dev/null 2>&1
- case $? in
- 0) if test "$VERBOSE"; then $echo "passed 10e(_POSIX2_VERSION=199209)"; fi;;
- 1) $echo "Test 10e(_POSIX2_VERSION=199209) failed: files 10e.O and $srcdir/10e.X differ" 1>&2
- (diff -c 10e.O $srcdir/10e.X) 2> /dev/null
- errors=`expr $errors + 1`;;
- 2) $echo "Test 10e(_POSIX2_VERSION=199209) may have failed." 1>&2
- $echo The command "cmp 10e.O $srcdir/10e.X" failed. 1>&2
- errors=`expr $errors + 1`;;
- esac
-fi
-test -s 10e.E || rm -f 10e.E
-_POSIX2_VERSION=199209 $xx -t : -k 1.3,1.3 $srcdir/10f.I > 10f.O 2> 10f.E
-code=$?
-if test $code != 0; then
- $echo "Test 10f(_POSIX2_VERSION=199209) failed: $xx return code $code differs from expected value 0" 1>&2
- errors=`expr $errors + 1`
-else
- cmp 10f.O $srcdir/10f.X > /dev/null 2>&1
- case $? in
- 0) if test "$VERBOSE"; then $echo "passed 10f(_POSIX2_VERSION=199209)"; fi;;
- 1) $echo "Test 10f(_POSIX2_VERSION=199209) failed: files 10f.O and $srcdir/10f.X differ" 1>&2
- (diff -c 10f.O $srcdir/10f.X) 2> /dev/null
- errors=`expr $errors + 1`;;
- 2) $echo "Test 10f(_POSIX2_VERSION=199209) may have failed." 1>&2
- $echo The command "cmp 10f.O $srcdir/10f.X" failed. 1>&2
- errors=`expr $errors + 1`;;
- esac
-fi
-test -s 10f.E || rm -f 10f.E
-_POSIX2_VERSION=199209 $xx -k 1.4,1.4 $srcdir/10g.I > 10g.O 2> 10g.E
-code=$?
-if test $code != 0; then
- $echo "Test 10g(_POSIX2_VERSION=199209) failed: $xx return code $code differs from expected value 0" 1>&2
- errors=`expr $errors + 1`
-else
- cmp 10g.O $srcdir/10g.X > /dev/null 2>&1
- case $? in
- 0) if test "$VERBOSE"; then $echo "passed 10g(_POSIX2_VERSION=199209)"; fi;;
- 1) $echo "Test 10g(_POSIX2_VERSION=199209) failed: files 10g.O and $srcdir/10g.X differ" 1>&2
- (diff -c 10g.O $srcdir/10g.X) 2> /dev/null
- errors=`expr $errors + 1`;;
- 2) $echo "Test 10g(_POSIX2_VERSION=199209) may have failed." 1>&2
- $echo The command "cmp 10g.O $srcdir/10g.X" failed. 1>&2
- errors=`expr $errors + 1`;;
- esac
-fi
-test -s 10g.E || rm -f 10g.E
-_POSIX2_VERSION=199209 $xx -t: -k1,1b -k2,2 $srcdir/11a.I > 11a.O 2> 11a.E
-code=$?
-if test $code != 0; then
- $echo "Test 11a(_POSIX2_VERSION=199209) failed: $xx return code $code differs from expected value 0" 1>&2
- errors=`expr $errors + 1`
-else
- cmp 11a.O $srcdir/11a.X > /dev/null 2>&1
- case $? in
- 0) if test "$VERBOSE"; then $echo "passed 11a(_POSIX2_VERSION=199209)"; fi;;
- 1) $echo "Test 11a(_POSIX2_VERSION=199209) failed: files 11a.O and $srcdir/11a.X differ" 1>&2
- (diff -c 11a.O $srcdir/11a.X) 2> /dev/null
- errors=`expr $errors + 1`;;
- 2) $echo "Test 11a(_POSIX2_VERSION=199209) may have failed." 1>&2
- $echo The command "cmp 11a.O $srcdir/11a.X" failed. 1>&2
- errors=`expr $errors + 1`;;
- esac
-fi
-test -s 11a.E || rm -f 11a.E
-_POSIX2_VERSION=199209 $xx -t: -k1,1b -k2,2 $srcdir/11b.I > 11b.O 2> 11b.E
-code=$?
-if test $code != 0; then
- $echo "Test 11b(_POSIX2_VERSION=199209) failed: $xx return code $code differs from expected value 0" 1>&2
- errors=`expr $errors + 1`
-else
- cmp 11b.O $srcdir/11b.X > /dev/null 2>&1
- case $? in
- 0) if test "$VERBOSE"; then $echo "passed 11b(_POSIX2_VERSION=199209)"; fi;;
- 1) $echo "Test 11b(_POSIX2_VERSION=199209) failed: files 11b.O and $srcdir/11b.X differ" 1>&2
- (diff -c 11b.O $srcdir/11b.X) 2> /dev/null
- errors=`expr $errors + 1`;;
- 2) $echo "Test 11b(_POSIX2_VERSION=199209) may have failed." 1>&2
- $echo The command "cmp 11b.O $srcdir/11b.X" failed. 1>&2
- errors=`expr $errors + 1`;;
- esac
-fi
-test -s 11b.E || rm -f 11b.E
-_POSIX2_VERSION=199209 $xx -t: -k2,2b -k3,3 $srcdir/11c.I > 11c.O 2> 11c.E
-code=$?
-if test $code != 0; then
- $echo "Test 11c(_POSIX2_VERSION=199209) failed: $xx return code $code differs from expected value 0" 1>&2
- errors=`expr $errors + 1`
-else
- cmp 11c.O $srcdir/11c.X > /dev/null 2>&1
- case $? in
- 0) if test "$VERBOSE"; then $echo "passed 11c(_POSIX2_VERSION=199209)"; fi;;
- 1) $echo "Test 11c(_POSIX2_VERSION=199209) failed: files 11c.O and $srcdir/11c.X differ" 1>&2
- (diff -c 11c.O $srcdir/11c.X) 2> /dev/null
- errors=`expr $errors + 1`;;
- 2) $echo "Test 11c(_POSIX2_VERSION=199209) may have failed." 1>&2
- $echo The command "cmp 11c.O $srcdir/11c.X" failed. 1>&2
- errors=`expr $errors + 1`;;
- esac
-fi
-test -s 11c.E || rm -f 11c.E
-_POSIX2_VERSION=199209 $xx -t: -k2,2b -k3,3 $srcdir/11d.I > 11d.O 2> 11d.E
-code=$?
-if test $code != 0; then
- $echo "Test 11d(_POSIX2_VERSION=199209) failed: $xx return code $code differs from expected value 0" 1>&2
- errors=`expr $errors + 1`
-else
- cmp 11d.O $srcdir/11d.X > /dev/null 2>&1
- case $? in
- 0) if test "$VERBOSE"; then $echo "passed 11d(_POSIX2_VERSION=199209)"; fi;;
- 1) $echo "Test 11d(_POSIX2_VERSION=199209) failed: files 11d.O and $srcdir/11d.X differ" 1>&2
- (diff -c 11d.O $srcdir/11d.X) 2> /dev/null
- errors=`expr $errors + 1`;;
- 2) $echo "Test 11d(_POSIX2_VERSION=199209) may have failed." 1>&2
- $echo The command "cmp 11d.O $srcdir/11d.X" failed. 1>&2
- errors=`expr $errors + 1`;;
- esac
-fi
-test -s 11d.E || rm -f 11d.E
-_POSIX2_VERSION=199209 $xx -n -t: +1 $srcdir/12a.I > 12a.O 2> 12a.E
-code=$?
-if test $code != 0; then
- $echo "Test 12a(_POSIX2_VERSION=199209) failed: $xx return code $code differs from expected value 0" 1>&2
- errors=`expr $errors + 1`
-else
- cmp 12a.O $srcdir/12a.X > /dev/null 2>&1
- case $? in
- 0) if test "$VERBOSE"; then $echo "passed 12a(_POSIX2_VERSION=199209)"; fi;;
- 1) $echo "Test 12a(_POSIX2_VERSION=199209) failed: files 12a.O and $srcdir/12a.X differ" 1>&2
- (diff -c 12a.O $srcdir/12a.X) 2> /dev/null
- errors=`expr $errors + 1`;;
- 2) $echo "Test 12a(_POSIX2_VERSION=199209) may have failed." 1>&2
- $echo The command "cmp 12a.O $srcdir/12a.X" failed. 1>&2
- errors=`expr $errors + 1`;;
- esac
-fi
-test -s 12a.E || rm -f 12a.E
-_POSIX2_VERSION=199209 $xx -n -t: +1 $srcdir/12b.I > 12b.O 2> 12b.E
-code=$?
-if test $code != 0; then
- $echo "Test 12b(_POSIX2_VERSION=199209) failed: $xx return code $code differs from expected value 0" 1>&2
- errors=`expr $errors + 1`
-else
- cmp 12b.O $srcdir/12b.X > /dev/null 2>&1
- case $? in
- 0) if test "$VERBOSE"; then $echo "passed 12b(_POSIX2_VERSION=199209)"; fi;;
- 1) $echo "Test 12b(_POSIX2_VERSION=199209) failed: files 12b.O and $srcdir/12b.X differ" 1>&2
- (diff -c 12b.O $srcdir/12b.X) 2> /dev/null
- errors=`expr $errors + 1`;;
- 2) $echo "Test 12b(_POSIX2_VERSION=199209) may have failed." 1>&2
- $echo The command "cmp 12b.O $srcdir/12b.X" failed. 1>&2
- errors=`expr $errors + 1`;;
- esac
-fi
-test -s 12b.E || rm -f 12b.E
-_POSIX2_VERSION=199209 $xx -n -t: +1 $srcdir/12c.I > 12c.O 2> 12c.E
-code=$?
-if test $code != 0; then
- $echo "Test 12c(_POSIX2_VERSION=199209) failed: $xx return code $code differs from expected value 0" 1>&2
- errors=`expr $errors + 1`
-else
- cmp 12c.O $srcdir/12c.X > /dev/null 2>&1
- case $? in
- 0) if test "$VERBOSE"; then $echo "passed 12c(_POSIX2_VERSION=199209)"; fi;;
- 1) $echo "Test 12c(_POSIX2_VERSION=199209) failed: files 12c.O and $srcdir/12c.X differ" 1>&2
- (diff -c 12c.O $srcdir/12c.X) 2> /dev/null
- errors=`expr $errors + 1`;;
- 2) $echo "Test 12c(_POSIX2_VERSION=199209) may have failed." 1>&2
- $echo The command "cmp 12c.O $srcdir/12c.X" failed. 1>&2
- errors=`expr $errors + 1`;;
- esac
-fi
-test -s 12c.E || rm -f 12c.E
-_POSIX2_VERSION=199209 $xx -n -t: +1 $srcdir/12d.I > 12d.O 2> 12d.E
-code=$?
-if test $code != 0; then
- $echo "Test 12d(_POSIX2_VERSION=199209) failed: $xx return code $code differs from expected value 0" 1>&2
- errors=`expr $errors + 1`
-else
- cmp 12d.O $srcdir/12d.X > /dev/null 2>&1
- case $? in
- 0) if test "$VERBOSE"; then $echo "passed 12d(_POSIX2_VERSION=199209)"; fi;;
- 1) $echo "Test 12d(_POSIX2_VERSION=199209) failed: files 12d.O and $srcdir/12d.X differ" 1>&2
- (diff -c 12d.O $srcdir/12d.X) 2> /dev/null
- errors=`expr $errors + 1`;;
- 2) $echo "Test 12d(_POSIX2_VERSION=199209) may have failed." 1>&2
- $echo The command "cmp 12d.O $srcdir/12d.X" failed. 1>&2
- errors=`expr $errors + 1`;;
- esac
-fi
-test -s 12d.E || rm -f 12d.E
-_POSIX2_VERSION=199209 $xx +0.1n $srcdir/13a.I > 13a.O 2> 13a.E
-code=$?
-if test $code != 0; then
- $echo "Test 13a(_POSIX2_VERSION=199209) failed: $xx return code $code differs from expected value 0" 1>&2
- errors=`expr $errors + 1`
-else
- cmp 13a.O $srcdir/13a.X > /dev/null 2>&1
- case $? in
- 0) if test "$VERBOSE"; then $echo "passed 13a(_POSIX2_VERSION=199209)"; fi;;
- 1) $echo "Test 13a(_POSIX2_VERSION=199209) failed: files 13a.O and $srcdir/13a.X differ" 1>&2
- (diff -c 13a.O $srcdir/13a.X) 2> /dev/null
- errors=`expr $errors + 1`;;
- 2) $echo "Test 13a(_POSIX2_VERSION=199209) may have failed." 1>&2
- $echo The command "cmp 13a.O $srcdir/13a.X" failed. 1>&2
- errors=`expr $errors + 1`;;
- esac
-fi
-test -s 13a.E || rm -f 13a.E
-_POSIX2_VERSION=199209 $xx +0.1n $srcdir/13b.I > 13b.O 2> 13b.E
-code=$?
-if test $code != 0; then
- $echo "Test 13b(_POSIX2_VERSION=199209) failed: $xx return code $code differs from expected value 0" 1>&2
- errors=`expr $errors + 1`
-else
- cmp 13b.O $srcdir/13b.X > /dev/null 2>&1
- case $? in
- 0) if test "$VERBOSE"; then $echo "passed 13b(_POSIX2_VERSION=199209)"; fi;;
- 1) $echo "Test 13b(_POSIX2_VERSION=199209) failed: files 13b.O and $srcdir/13b.X differ" 1>&2
- (diff -c 13b.O $srcdir/13b.X) 2> /dev/null
- errors=`expr $errors + 1`;;
- 2) $echo "Test 13b(_POSIX2_VERSION=199209) may have failed." 1>&2
- $echo The command "cmp 13b.O $srcdir/13b.X" failed. 1>&2
- errors=`expr $errors + 1`;;
- esac
-fi
-test -s 13b.E || rm -f 13b.E
-_POSIX2_VERSION=199209 $xx -d -u $srcdir/14a.I > 14a.O 2> 14a.E
-code=$?
-if test $code != 0; then
- $echo "Test 14a(_POSIX2_VERSION=199209) failed: $xx return code $code differs from expected value 0" 1>&2
- errors=`expr $errors + 1`
-else
- cmp 14a.O $srcdir/14a.X > /dev/null 2>&1
- case $? in
- 0) if test "$VERBOSE"; then $echo "passed 14a(_POSIX2_VERSION=199209)"; fi;;
- 1) $echo "Test 14a(_POSIX2_VERSION=199209) failed: files 14a.O and $srcdir/14a.X differ" 1>&2
- (diff -c 14a.O $srcdir/14a.X) 2> /dev/null
- errors=`expr $errors + 1`;;
- 2) $echo "Test 14a(_POSIX2_VERSION=199209) may have failed." 1>&2
- $echo The command "cmp 14a.O $srcdir/14a.X" failed. 1>&2
- errors=`expr $errors + 1`;;
- esac
-fi
-test -s 14a.E || rm -f 14a.E
-_POSIX2_VERSION=199209 $xx -f -d -u $srcdir/14b.I > 14b.O 2> 14b.E
-code=$?
-if test $code != 0; then
- $echo "Test 14b(_POSIX2_VERSION=199209) failed: $xx return code $code differs from expected value 0" 1>&2
- errors=`expr $errors + 1`
-else
- cmp 14b.O $srcdir/14b.X > /dev/null 2>&1
- case $? in
- 0) if test "$VERBOSE"; then $echo "passed 14b(_POSIX2_VERSION=199209)"; fi;;
- 1) $echo "Test 14b(_POSIX2_VERSION=199209) failed: files 14b.O and $srcdir/14b.X differ" 1>&2
- (diff -c 14b.O $srcdir/14b.X) 2> /dev/null
- errors=`expr $errors + 1`;;
- 2) $echo "Test 14b(_POSIX2_VERSION=199209) may have failed." 1>&2
- $echo The command "cmp 14b.O $srcdir/14b.X" failed. 1>&2
- errors=`expr $errors + 1`;;
- esac
-fi
-test -s 14b.E || rm -f 14b.E
-_POSIX2_VERSION=199209 $xx -i -u $srcdir/15a.I > 15a.O 2> 15a.E
-code=$?
-if test $code != 0; then
- $echo "Test 15a(_POSIX2_VERSION=199209) failed: $xx return code $code differs from expected value 0" 1>&2
- errors=`expr $errors + 1`
-else
- cmp 15a.O $srcdir/15a.X > /dev/null 2>&1
- case $? in
- 0) if test "$VERBOSE"; then $echo "passed 15a(_POSIX2_VERSION=199209)"; fi;;
- 1) $echo "Test 15a(_POSIX2_VERSION=199209) failed: files 15a.O and $srcdir/15a.X differ" 1>&2
- (diff -c 15a.O $srcdir/15a.X) 2> /dev/null
- errors=`expr $errors + 1`;;
- 2) $echo "Test 15a(_POSIX2_VERSION=199209) may have failed." 1>&2
- $echo The command "cmp 15a.O $srcdir/15a.X" failed. 1>&2
- errors=`expr $errors + 1`;;
- esac
-fi
-test -s 15a.E || rm -f 15a.E
-_POSIX2_VERSION=199209 $xx -i -u $srcdir/15b.I > 15b.O 2> 15b.E
-code=$?
-if test $code != 0; then
- $echo "Test 15b(_POSIX2_VERSION=199209) failed: $xx return code $code differs from expected value 0" 1>&2
- errors=`expr $errors + 1`
-else
- cmp 15b.O $srcdir/15b.X > /dev/null 2>&1
- case $? in
- 0) if test "$VERBOSE"; then $echo "passed 15b(_POSIX2_VERSION=199209)"; fi;;
- 1) $echo "Test 15b(_POSIX2_VERSION=199209) failed: files 15b.O and $srcdir/15b.X differ" 1>&2
- (diff -c 15b.O $srcdir/15b.X) 2> /dev/null
- errors=`expr $errors + 1`;;
- 2) $echo "Test 15b(_POSIX2_VERSION=199209) may have failed." 1>&2
- $echo The command "cmp 15b.O $srcdir/15b.X" failed. 1>&2
- errors=`expr $errors + 1`;;
- esac
-fi
-test -s 15b.E || rm -f 15b.E
-_POSIX2_VERSION=199209 $xx -i -u $srcdir/15c.I > 15c.O 2> 15c.E
-code=$?
-if test $code != 0; then
- $echo "Test 15c(_POSIX2_VERSION=199209) failed: $xx return code $code differs from expected value 0" 1>&2
- errors=`expr $errors + 1`
-else
- cmp 15c.O $srcdir/15c.X > /dev/null 2>&1
- case $? in
- 0) if test "$VERBOSE"; then $echo "passed 15c(_POSIX2_VERSION=199209)"; fi;;
- 1) $echo "Test 15c(_POSIX2_VERSION=199209) failed: files 15c.O and $srcdir/15c.X differ" 1>&2
- (diff -c 15c.O $srcdir/15c.X) 2> /dev/null
- errors=`expr $errors + 1`;;
- 2) $echo "Test 15c(_POSIX2_VERSION=199209) may have failed." 1>&2
- $echo The command "cmp 15c.O $srcdir/15c.X" failed. 1>&2
- errors=`expr $errors + 1`;;
- esac
-fi
-test -s 15c.E || rm -f 15c.E
-_POSIX2_VERSION=199209 $xx -i -u $srcdir/15d.I > 15d.O 2> 15d.E
-code=$?
-if test $code != 0; then
- $echo "Test 15d(_POSIX2_VERSION=199209) failed: $xx return code $code differs from expected value 0" 1>&2
- errors=`expr $errors + 1`
-else
- cmp 15d.O $srcdir/15d.X > /dev/null 2>&1
- case $? in
- 0) if test "$VERBOSE"; then $echo "passed 15d(_POSIX2_VERSION=199209)"; fi;;
- 1) $echo "Test 15d(_POSIX2_VERSION=199209) failed: files 15d.O and $srcdir/15d.X differ" 1>&2
- (diff -c 15d.O $srcdir/15d.X) 2> /dev/null
- errors=`expr $errors + 1`;;
- 2) $echo "Test 15d(_POSIX2_VERSION=199209) may have failed." 1>&2
- $echo The command "cmp 15d.O $srcdir/15d.X" failed. 1>&2
- errors=`expr $errors + 1`;;
- esac
-fi
-test -s 15d.E || rm -f 15d.E
-_POSIX2_VERSION=199209 $xx -i -u $srcdir/15e.I > 15e.O 2> 15e.E
-code=$?
-if test $code != 0; then
- $echo "Test 15e(_POSIX2_VERSION=199209) failed: $xx return code $code differs from expected value 0" 1>&2
- errors=`expr $errors + 1`
-else
- cmp 15e.O $srcdir/15e.X > /dev/null 2>&1
- case $? in
- 0) if test "$VERBOSE"; then $echo "passed 15e(_POSIX2_VERSION=199209)"; fi;;
- 1) $echo "Test 15e(_POSIX2_VERSION=199209) failed: files 15e.O and $srcdir/15e.X differ" 1>&2
- (diff -c 15e.O $srcdir/15e.X) 2> /dev/null
- errors=`expr $errors + 1`;;
- 2) $echo "Test 15e(_POSIX2_VERSION=199209) may have failed." 1>&2
- $echo The command "cmp 15e.O $srcdir/15e.X" failed. 1>&2
- errors=`expr $errors + 1`;;
- esac
-fi
-test -s 15e.E || rm -f 15e.E
-_POSIX2_VERSION=199209 $xx -f $srcdir/16a.I > 16a.O 2> 16a.E
-code=$?
-if test $code != 0; then
- $echo "Test 16a(_POSIX2_VERSION=199209) failed: $xx return code $code differs from expected value 0" 1>&2
- errors=`expr $errors + 1`
-else
- cmp 16a.O $srcdir/16a.X > /dev/null 2>&1
- case $? in
- 0) if test "$VERBOSE"; then $echo "passed 16a(_POSIX2_VERSION=199209)"; fi;;
- 1) $echo "Test 16a(_POSIX2_VERSION=199209) failed: files 16a.O and $srcdir/16a.X differ" 1>&2
- (diff -c 16a.O $srcdir/16a.X) 2> /dev/null
- errors=`expr $errors + 1`;;
- 2) $echo "Test 16a(_POSIX2_VERSION=199209) may have failed." 1>&2
- $echo The command "cmp 16a.O $srcdir/16a.X" failed. 1>&2
- errors=`expr $errors + 1`;;
- esac
-fi
-test -s 16a.E || rm -f 16a.E
-_POSIX2_VERSION=199209 $xx -c $srcdir/17.I > 17.O 2> 17.E
-code=$?
-if test $code != 0; then
- $echo "Test 17(_POSIX2_VERSION=199209) failed: $xx return code $code differs from expected value 0" 1>&2
- errors=`expr $errors + 1`
-else
- cmp 17.O $srcdir/17.X > /dev/null 2>&1
- case $? in
- 0) if test "$VERBOSE"; then $echo "passed 17(_POSIX2_VERSION=199209)"; fi;;
- 1) $echo "Test 17(_POSIX2_VERSION=199209) failed: files 17.O and $srcdir/17.X differ" 1>&2
- (diff -c 17.O $srcdir/17.X) 2> /dev/null
- errors=`expr $errors + 1`;;
- 2) $echo "Test 17(_POSIX2_VERSION=199209) may have failed." 1>&2
- $echo The command "cmp 17.O $srcdir/17.X" failed. 1>&2
- errors=`expr $errors + 1`;;
- esac
-fi
-test -s 17.E || rm -f 17.E
-_POSIX2_VERSION=199209 $xx -k1.1,1.2n $srcdir/18a.I > 18a.O 2> 18a.E
-code=$?
-if test $code != 0; then
- $echo "Test 18a(_POSIX2_VERSION=199209) failed: $xx return code $code differs from expected value 0" 1>&2
- errors=`expr $errors + 1`
-else
- cmp 18a.O $srcdir/18a.X > /dev/null 2>&1
- case $? in
- 0) if test "$VERBOSE"; then $echo "passed 18a(_POSIX2_VERSION=199209)"; fi;;
- 1) $echo "Test 18a(_POSIX2_VERSION=199209) failed: files 18a.O and $srcdir/18a.X differ" 1>&2
- (diff -c 18a.O $srcdir/18a.X) 2> /dev/null
- errors=`expr $errors + 1`;;
- 2) $echo "Test 18a(_POSIX2_VERSION=199209) may have failed." 1>&2
- $echo The command "cmp 18a.O $srcdir/18a.X" failed. 1>&2
- errors=`expr $errors + 1`;;
- esac
-fi
-test -s 18a.E || rm -f 18a.E
-_POSIX2_VERSION=199209 $xx -b -k1.1,1.2n $srcdir/18b.I > 18b.O 2> 18b.E
-code=$?
-if test $code != 0; then
- $echo "Test 18b(_POSIX2_VERSION=199209) failed: $xx return code $code differs from expected value 0" 1>&2
- errors=`expr $errors + 1`
-else
- cmp 18b.O $srcdir/18b.X > /dev/null 2>&1
- case $? in
- 0) if test "$VERBOSE"; then $echo "passed 18b(_POSIX2_VERSION=199209)"; fi;;
- 1) $echo "Test 18b(_POSIX2_VERSION=199209) failed: files 18b.O and $srcdir/18b.X differ" 1>&2
- (diff -c 18b.O $srcdir/18b.X) 2> /dev/null
- errors=`expr $errors + 1`;;
- 2) $echo "Test 18b(_POSIX2_VERSION=199209) may have failed." 1>&2
- $echo The command "cmp 18b.O $srcdir/18b.X" failed. 1>&2
- errors=`expr $errors + 1`;;
- esac
-fi
-test -s 18b.E || rm -f 18b.E
-_POSIX2_VERSION=199209 $xx -k1.1,1.2nb $srcdir/18c.I > 18c.O 2> 18c.E
-code=$?
-if test $code != 0; then
- $echo "Test 18c(_POSIX2_VERSION=199209) failed: $xx return code $code differs from expected value 0" 1>&2
- errors=`expr $errors + 1`
-else
- cmp 18c.O $srcdir/18c.X > /dev/null 2>&1
- case $? in
- 0) if test "$VERBOSE"; then $echo "passed 18c(_POSIX2_VERSION=199209)"; fi;;
- 1) $echo "Test 18c(_POSIX2_VERSION=199209) failed: files 18c.O and $srcdir/18c.X differ" 1>&2
- (diff -c 18c.O $srcdir/18c.X) 2> /dev/null
- errors=`expr $errors + 1`;;
- 2) $echo "Test 18c(_POSIX2_VERSION=199209) may have failed." 1>&2
- $echo The command "cmp 18c.O $srcdir/18c.X" failed. 1>&2
- errors=`expr $errors + 1`;;
- esac
-fi
-test -s 18c.E || rm -f 18c.E
-_POSIX2_VERSION=199209 $xx -k1.1b,1.2n $srcdir/18d.I > 18d.O 2> 18d.E
-code=$?
-if test $code != 0; then
- $echo "Test 18d(_POSIX2_VERSION=199209) failed: $xx return code $code differs from expected value 0" 1>&2
- errors=`expr $errors + 1`
-else
- cmp 18d.O $srcdir/18d.X > /dev/null 2>&1
- case $? in
- 0) if test "$VERBOSE"; then $echo "passed 18d(_POSIX2_VERSION=199209)"; fi;;
- 1) $echo "Test 18d(_POSIX2_VERSION=199209) failed: files 18d.O and $srcdir/18d.X differ" 1>&2
- (diff -c 18d.O $srcdir/18d.X) 2> /dev/null
- errors=`expr $errors + 1`;;
- 2) $echo "Test 18d(_POSIX2_VERSION=199209) may have failed." 1>&2
- $echo The command "cmp 18d.O $srcdir/18d.X" failed. 1>&2
- errors=`expr $errors + 1`;;
- esac
-fi
-test -s 18d.E || rm -f 18d.E
-_POSIX2_VERSION=199209 $xx -nb -k1.1,1.2 $srcdir/18e.I > 18e.O 2> 18e.E
-code=$?
-if test $code != 0; then
- $echo "Test 18e(_POSIX2_VERSION=199209) failed: $xx return code $code differs from expected value 0" 1>&2
- errors=`expr $errors + 1`
-else
- cmp 18e.O $srcdir/18e.X > /dev/null 2>&1
- case $? in
- 0) if test "$VERBOSE"; then $echo "passed 18e(_POSIX2_VERSION=199209)"; fi;;
- 1) $echo "Test 18e(_POSIX2_VERSION=199209) failed: files 18e.O and $srcdir/18e.X differ" 1>&2
- (diff -c 18e.O $srcdir/18e.X) 2> /dev/null
- errors=`expr $errors + 1`;;
- 2) $echo "Test 18e(_POSIX2_VERSION=199209) may have failed." 1>&2
- $echo The command "cmp 18e.O $srcdir/18e.X" failed. 1>&2
- errors=`expr $errors + 1`;;
- esac
-fi
-test -s 18e.E || rm -f 18e.E
-_POSIX2_VERSION=199209 $xx +0 +1nr $srcdir/19a.I > 19a.O 2> 19a.E
-code=$?
-if test $code != 0; then
- $echo "Test 19a(_POSIX2_VERSION=199209) failed: $xx return code $code differs from expected value 0" 1>&2
- errors=`expr $errors + 1`
-else
- cmp 19a.O $srcdir/19a.X > /dev/null 2>&1
- case $? in
- 0) if test "$VERBOSE"; then $echo "passed 19a(_POSIX2_VERSION=199209)"; fi;;
- 1) $echo "Test 19a(_POSIX2_VERSION=199209) failed: files 19a.O and $srcdir/19a.X differ" 1>&2
- (diff -c 19a.O $srcdir/19a.X) 2> /dev/null
- errors=`expr $errors + 1`;;
- 2) $echo "Test 19a(_POSIX2_VERSION=199209) may have failed." 1>&2
- $echo The command "cmp 19a.O $srcdir/19a.X" failed. 1>&2
- errors=`expr $errors + 1`;;
- esac
-fi
-test -s 19a.E || rm -f 19a.E
-_POSIX2_VERSION=199209 $xx -k1,1 -k2nr $srcdir/19b.I > 19b.O 2> 19b.E
-code=$?
-if test $code != 0; then
- $echo "Test 19b(_POSIX2_VERSION=199209) failed: $xx return code $code differs from expected value 0" 1>&2
- errors=`expr $errors + 1`
-else
- cmp 19b.O $srcdir/19b.X > /dev/null 2>&1
- case $? in
- 0) if test "$VERBOSE"; then $echo "passed 19b(_POSIX2_VERSION=199209)"; fi;;
- 1) $echo "Test 19b(_POSIX2_VERSION=199209) failed: files 19b.O and $srcdir/19b.X differ" 1>&2
- (diff -c 19b.O $srcdir/19b.X) 2> /dev/null
- errors=`expr $errors + 1`;;
- 2) $echo "Test 19b(_POSIX2_VERSION=199209) may have failed." 1>&2
- $echo The command "cmp 19b.O $srcdir/19b.X" failed. 1>&2
- errors=`expr $errors + 1`;;
- esac
-fi
-test -s 19b.E || rm -f 19b.E
-_POSIX2_VERSION=199209 $xx $srcdir/20a.I > 20a.O 2> 20a.E
-code=$?
-if test $code != 0; then
- $echo "Test 20a(_POSIX2_VERSION=199209) failed: $xx return code $code differs from expected value 0" 1>&2
- errors=`expr $errors + 1`
-else
- cmp 20a.O $srcdir/20a.X > /dev/null 2>&1
- case $? in
- 0) if test "$VERBOSE"; then $echo "passed 20a(_POSIX2_VERSION=199209)"; fi;;
- 1) $echo "Test 20a(_POSIX2_VERSION=199209) failed: files 20a.O and $srcdir/20a.X differ" 1>&2
- (diff -c 20a.O $srcdir/20a.X) 2> /dev/null
- errors=`expr $errors + 1`;;
- 2) $echo "Test 20a(_POSIX2_VERSION=199209) may have failed." 1>&2
- $echo The command "cmp 20a.O $srcdir/20a.X" failed. 1>&2
- errors=`expr $errors + 1`;;
- esac
-fi
-test -s 20a.E || rm -f 20a.E
-_POSIX2_VERSION=199209 $xx $srcdir/21a.I > 21a.O 2> 21a.E
-code=$?
-if test $code != 0; then
- $echo "Test 21a(_POSIX2_VERSION=199209) failed: $xx return code $code differs from expected value 0" 1>&2
- errors=`expr $errors + 1`
-else
- cmp 21a.O $srcdir/21a.X > /dev/null 2>&1
- case $? in
- 0) if test "$VERBOSE"; then $echo "passed 21a(_POSIX2_VERSION=199209)"; fi;;
- 1) $echo "Test 21a(_POSIX2_VERSION=199209) failed: files 21a.O and $srcdir/21a.X differ" 1>&2
- (diff -c 21a.O $srcdir/21a.X) 2> /dev/null
- errors=`expr $errors + 1`;;
- 2) $echo "Test 21a(_POSIX2_VERSION=199209) may have failed." 1>&2
- $echo The command "cmp 21a.O $srcdir/21a.X" failed. 1>&2
- errors=`expr $errors + 1`;;
- esac
-fi
-test -s 21a.E || rm -f 21a.E
-_POSIX2_VERSION=199209 $xx -f $srcdir/21b.I > 21b.O 2> 21b.E
-code=$?
-if test $code != 0; then
- $echo "Test 21b(_POSIX2_VERSION=199209) failed: $xx return code $code differs from expected value 0" 1>&2
- errors=`expr $errors + 1`
-else
- cmp 21b.O $srcdir/21b.X > /dev/null 2>&1
- case $? in
- 0) if test "$VERBOSE"; then $echo "passed 21b(_POSIX2_VERSION=199209)"; fi;;
- 1) $echo "Test 21b(_POSIX2_VERSION=199209) failed: files 21b.O and $srcdir/21b.X differ" 1>&2
- (diff -c 21b.O $srcdir/21b.X) 2> /dev/null
- errors=`expr $errors + 1`;;
- 2) $echo "Test 21b(_POSIX2_VERSION=199209) may have failed." 1>&2
- $echo The command "cmp 21b.O $srcdir/21b.X" failed. 1>&2
- errors=`expr $errors + 1`;;
- esac
-fi
-test -s 21b.E || rm -f 21b.E
-_POSIX2_VERSION=199209 $xx -f $srcdir/21c.I > 21c.O 2> 21c.E
-code=$?
-if test $code != 0; then
- $echo "Test 21c(_POSIX2_VERSION=199209) failed: $xx return code $code differs from expected value 0" 1>&2
- errors=`expr $errors + 1`
-else
- cmp 21c.O $srcdir/21c.X > /dev/null 2>&1
- case $? in
- 0) if test "$VERBOSE"; then $echo "passed 21c(_POSIX2_VERSION=199209)"; fi;;
- 1) $echo "Test 21c(_POSIX2_VERSION=199209) failed: files 21c.O and $srcdir/21c.X differ" 1>&2
- (diff -c 21c.O $srcdir/21c.X) 2> /dev/null
- errors=`expr $errors + 1`;;
- 2) $echo "Test 21c(_POSIX2_VERSION=199209) may have failed." 1>&2
- $echo The command "cmp 21c.O $srcdir/21c.X" failed. 1>&2
- errors=`expr $errors + 1`;;
- esac
-fi
-test -s 21c.E || rm -f 21c.E
-_POSIX2_VERSION=199209 $xx -f $srcdir/21d.I > 21d.O 2> 21d.E
-code=$?
-if test $code != 0; then
- $echo "Test 21d(_POSIX2_VERSION=199209) failed: $xx return code $code differs from expected value 0" 1>&2
- errors=`expr $errors + 1`
-else
- cmp 21d.O $srcdir/21d.X > /dev/null 2>&1
- case $? in
- 0) if test "$VERBOSE"; then $echo "passed 21d(_POSIX2_VERSION=199209)"; fi;;
- 1) $echo "Test 21d(_POSIX2_VERSION=199209) failed: files 21d.O and $srcdir/21d.X differ" 1>&2
- (diff -c 21d.O $srcdir/21d.X) 2> /dev/null
- errors=`expr $errors + 1`;;
- 2) $echo "Test 21d(_POSIX2_VERSION=199209) may have failed." 1>&2
- $echo The command "cmp 21d.O $srcdir/21d.X" failed. 1>&2
- errors=`expr $errors + 1`;;
- esac
-fi
-test -s 21d.E || rm -f 21d.E
-_POSIX2_VERSION=199209 $xx -f $srcdir/21e.I > 21e.O 2> 21e.E
-code=$?
-if test $code != 0; then
- $echo "Test 21e(_POSIX2_VERSION=199209) failed: $xx return code $code differs from expected value 0" 1>&2
- errors=`expr $errors + 1`
-else
- cmp 21e.O $srcdir/21e.X > /dev/null 2>&1
- case $? in
- 0) if test "$VERBOSE"; then $echo "passed 21e(_POSIX2_VERSION=199209)"; fi;;
- 1) $echo "Test 21e(_POSIX2_VERSION=199209) failed: files 21e.O and $srcdir/21e.X differ" 1>&2
- (diff -c 21e.O $srcdir/21e.X) 2> /dev/null
- errors=`expr $errors + 1`;;
- 2) $echo "Test 21e(_POSIX2_VERSION=199209) may have failed." 1>&2
- $echo The command "cmp 21e.O $srcdir/21e.X" failed. 1>&2
- errors=`expr $errors + 1`;;
- esac
-fi
-test -s 21e.E || rm -f 21e.E
-_POSIX2_VERSION=199209 $xx -fs $srcdir/21f.I > 21f.O 2> 21f.E
-code=$?
-if test $code != 0; then
- $echo "Test 21f(_POSIX2_VERSION=199209) failed: $xx return code $code differs from expected value 0" 1>&2
- errors=`expr $errors + 1`
-else
- cmp 21f.O $srcdir/21f.X > /dev/null 2>&1
- case $? in
- 0) if test "$VERBOSE"; then $echo "passed 21f(_POSIX2_VERSION=199209)"; fi;;
- 1) $echo "Test 21f(_POSIX2_VERSION=199209) failed: files 21f.O and $srcdir/21f.X differ" 1>&2
- (diff -c 21f.O $srcdir/21f.X) 2> /dev/null
- errors=`expr $errors + 1`;;
- 2) $echo "Test 21f(_POSIX2_VERSION=199209) may have failed." 1>&2
- $echo The command "cmp 21f.O $srcdir/21f.X" failed. 1>&2
- errors=`expr $errors + 1`;;
- esac
-fi
-test -s 21f.E || rm -f 21f.E
-_POSIX2_VERSION=199209 $xx -fu $srcdir/21g.I > 21g.O 2> 21g.E
-code=$?
-if test $code != 0; then
- $echo "Test 21g(_POSIX2_VERSION=199209) failed: $xx return code $code differs from expected value 0" 1>&2
- errors=`expr $errors + 1`
-else
- cmp 21g.O $srcdir/21g.X > /dev/null 2>&1
- case $? in
- 0) if test "$VERBOSE"; then $echo "passed 21g(_POSIX2_VERSION=199209)"; fi;;
- 1) $echo "Test 21g(_POSIX2_VERSION=199209) failed: files 21g.O and $srcdir/21g.X differ" 1>&2
- (diff -c 21g.O $srcdir/21g.X) 2> /dev/null
- errors=`expr $errors + 1`;;
- 2) $echo "Test 21g(_POSIX2_VERSION=199209) may have failed." 1>&2
- $echo The command "cmp 21g.O $srcdir/21g.X" failed. 1>&2
- errors=`expr $errors + 1`;;
- esac
-fi
-test -s 21g.E || rm -f 21g.E
-_POSIX2_VERSION=199209 $xx -k 2,2fd -k 1,1r $srcdir/22a.I > 22a.O 2> 22a.E
-code=$?
-if test $code != 0; then
- $echo "Test 22a(_POSIX2_VERSION=199209) failed: $xx return code $code differs from expected value 0" 1>&2
- errors=`expr $errors + 1`
-else
- cmp 22a.O $srcdir/22a.X > /dev/null 2>&1
- case $? in
- 0) if test "$VERBOSE"; then $echo "passed 22a(_POSIX2_VERSION=199209)"; fi;;
- 1) $echo "Test 22a(_POSIX2_VERSION=199209) failed: files 22a.O and $srcdir/22a.X differ" 1>&2
- (diff -c 22a.O $srcdir/22a.X) 2> /dev/null
- errors=`expr $errors + 1`;;
- 2) $echo "Test 22a(_POSIX2_VERSION=199209) may have failed." 1>&2
- $echo The command "cmp 22a.O $srcdir/22a.X" failed. 1>&2
- errors=`expr $errors + 1`;;
- esac
-fi
-test -s 22a.E || rm -f 22a.E
-_POSIX2_VERSION=199209 $xx -k 2,2d -k 1,1r $srcdir/22b.I > 22b.O 2> 22b.E
-code=$?
-if test $code != 0; then
- $echo "Test 22b(_POSIX2_VERSION=199209) failed: $xx return code $code differs from expected value 0" 1>&2
- errors=`expr $errors + 1`
-else
- cmp 22b.O $srcdir/22b.X > /dev/null 2>&1
- case $? in
- 0) if test "$VERBOSE"; then $echo "passed 22b(_POSIX2_VERSION=199209)"; fi;;
- 1) $echo "Test 22b(_POSIX2_VERSION=199209) failed: files 22b.O and $srcdir/22b.X differ" 1>&2
- (diff -c 22b.O $srcdir/22b.X) 2> /dev/null
- errors=`expr $errors + 1`;;
- 2) $echo "Test 22b(_POSIX2_VERSION=199209) may have failed." 1>&2
- $echo The command "cmp 22b.O $srcdir/22b.X" failed. 1>&2
- errors=`expr $errors + 1`;;
- esac
-fi
-test -s 22b.E || rm -f 22b.E
-_POSIX2_VERSION=199209 $xx no-file > no-file1.O 2> no-file1.E
-code=$?
-if test $code != 2; then
- $echo "Test no-file1(_POSIX2_VERSION=199209) failed: $xx return code $code differs from expected value 2" 1>&2
- errors=`expr $errors + 1`
-else
- cmp no-file1.O $srcdir/no-file1.X > /dev/null 2>&1
- case $? in
- 0) if test "$VERBOSE"; then $echo "passed no-file1(_POSIX2_VERSION=199209)"; fi;;
- 1) $echo "Test no-file1(_POSIX2_VERSION=199209) failed: files no-file1.O and $srcdir/no-file1.X differ" 1>&2
- (diff -c no-file1.O $srcdir/no-file1.X) 2> /dev/null
- errors=`expr $errors + 1`;;
- 2) $echo "Test no-file1(_POSIX2_VERSION=199209) may have failed." 1>&2
- $echo The command "cmp no-file1.O $srcdir/no-file1.X" failed. 1>&2
- errors=`expr $errors + 1`;;
- esac
-fi
-test -s no-file1.E || rm -f no-file1.E
-_POSIX2_VERSION=199209 $xx -o no-such-file no-such-file > o-no-file1.O 2> o-no-file1.E
-code=$?
-if test $code != 2; then
- $echo "Test o-no-file1(_POSIX2_VERSION=199209) failed: $xx return code $code differs from expected value 2" 1>&2
- errors=`expr $errors + 1`
-else
- cmp o-no-file1.O $srcdir/o-no-file1.X > /dev/null 2>&1
- case $? in
- 0) if test "$VERBOSE"; then $echo "passed o-no-file1(_POSIX2_VERSION=199209)"; fi;;
- 1) $echo "Test o-no-file1(_POSIX2_VERSION=199209) failed: files o-no-file1.O and $srcdir/o-no-file1.X differ" 1>&2
- (diff -c o-no-file1.O $srcdir/o-no-file1.X) 2> /dev/null
- errors=`expr $errors + 1`;;
- 2) $echo "Test o-no-file1(_POSIX2_VERSION=199209) may have failed." 1>&2
- $echo The command "cmp o-no-file1.O $srcdir/o-no-file1.X" failed. 1>&2
- errors=`expr $errors + 1`;;
- esac
-fi
-test -s o-no-file1.E || rm -f o-no-file1.E
-_POSIX2_VERSION=199209 $xx -o no/such/file /dev/null > create-empty.O 2> create-empty.E
-code=$?
-if test $code != 2; then
- $echo "Test create-empty(_POSIX2_VERSION=199209) failed: $xx return code $code differs from expected value 2" 1>&2
- errors=`expr $errors + 1`
-else
- cmp create-empty.O $srcdir/create-empty.X > /dev/null 2>&1
- case $? in
- 0) if test "$VERBOSE"; then $echo "passed create-empty(_POSIX2_VERSION=199209)"; fi;;
- 1) $echo "Test create-empty(_POSIX2_VERSION=199209) failed: files create-empty.O and $srcdir/create-empty.X differ" 1>&2
- (diff -c create-empty.O $srcdir/create-empty.X) 2> /dev/null
- errors=`expr $errors + 1`;;
- 2) $echo "Test create-empty(_POSIX2_VERSION=199209) may have failed." 1>&2
- $echo The command "cmp create-empty.O $srcdir/create-empty.X" failed. 1>&2
- errors=`expr $errors + 1`;;
- esac
-fi
-test -s create-empty.E || rm -f create-empty.E
-_POSIX2_VERSION=199209 $xx -n $srcdir/neg-nls.I > neg-nls.O 2> neg-nls.E
-code=$?
-if test $code != 0; then
- $echo "Test neg-nls(_POSIX2_VERSION=199209) failed: $xx return code $code differs from expected value 0" 1>&2
- errors=`expr $errors + 1`
-else
- cmp neg-nls.O $srcdir/neg-nls.X > /dev/null 2>&1
- case $? in
- 0) if test "$VERBOSE"; then $echo "passed neg-nls(_POSIX2_VERSION=199209)"; fi;;
- 1) $echo "Test neg-nls(_POSIX2_VERSION=199209) failed: files neg-nls.O and $srcdir/neg-nls.X differ" 1>&2
- (diff -c neg-nls.O $srcdir/neg-nls.X) 2> /dev/null
- errors=`expr $errors + 1`;;
- 2) $echo "Test neg-nls(_POSIX2_VERSION=199209) may have failed." 1>&2
- $echo The command "cmp neg-nls.O $srcdir/neg-nls.X" failed. 1>&2
- errors=`expr $errors + 1`;;
- esac
-fi
-test -s neg-nls.E || rm -f neg-nls.E
-_POSIX2_VERSION=199209 $xx $srcdir/nul-nls.I > nul-nls.O 2> nul-nls.E
-code=$?
-if test $code != 0; then
- $echo "Test nul-nls(_POSIX2_VERSION=199209) failed: $xx return code $code differs from expected value 0" 1>&2
- errors=`expr $errors + 1`
-else
- cmp nul-nls.O $srcdir/nul-nls.X > /dev/null 2>&1
- case $? in
- 0) if test "$VERBOSE"; then $echo "passed nul-nls(_POSIX2_VERSION=199209)"; fi;;
- 1) $echo "Test nul-nls(_POSIX2_VERSION=199209) failed: files nul-nls.O and $srcdir/nul-nls.X differ" 1>&2
- (diff -c nul-nls.O $srcdir/nul-nls.X) 2> /dev/null
- errors=`expr $errors + 1`;;
- 2) $echo "Test nul-nls(_POSIX2_VERSION=199209) may have failed." 1>&2
- $echo The command "cmp nul-nls.O $srcdir/nul-nls.X" failed. 1>&2
- errors=`expr $errors + 1`;;
- esac
-fi
-test -s nul-nls.E || rm -f nul-nls.E
-_POSIX2_VERSION=199209 $xx $srcdir/use-nl.I > use-nl.O 2> use-nl.E
-code=$?
-if test $code != 0; then
- $echo "Test use-nl(_POSIX2_VERSION=199209) failed: $xx return code $code differs from expected value 0" 1>&2
- errors=`expr $errors + 1`
-else
- cmp use-nl.O $srcdir/use-nl.X > /dev/null 2>&1
- case $? in
- 0) if test "$VERBOSE"; then $echo "passed use-nl(_POSIX2_VERSION=199209)"; fi;;
- 1) $echo "Test use-nl(_POSIX2_VERSION=199209) failed: files use-nl.O and $srcdir/use-nl.X differ" 1>&2
- (diff -c use-nl.O $srcdir/use-nl.X) 2> /dev/null
- errors=`expr $errors + 1`;;
- 2) $echo "Test use-nl(_POSIX2_VERSION=199209) may have failed." 1>&2
- $echo The command "cmp use-nl.O $srcdir/use-nl.X" failed. 1>&2
- errors=`expr $errors + 1`;;
- esac
-fi
-test -s use-nl.E || rm -f use-nl.E
-_POSIX2_VERSION=199209 $xx -o x -o y $srcdir/o2.I > o2.O 2> o2.E
-code=$?
-if test $code != 2; then
- $echo "Test o2(_POSIX2_VERSION=199209) failed: $xx return code $code differs from expected value 2" 1>&2
- errors=`expr $errors + 1`
-else
- cmp o2.O $srcdir/o2.X > /dev/null 2>&1
- case $? in
- 0) if test "$VERBOSE"; then $echo "passed o2(_POSIX2_VERSION=199209)"; fi;;
- 1) $echo "Test o2(_POSIX2_VERSION=199209) failed: files o2.O and $srcdir/o2.X differ" 1>&2
- (diff -c o2.O $srcdir/o2.X) 2> /dev/null
- errors=`expr $errors + 1`;;
- 2) $echo "Test o2(_POSIX2_VERSION=199209) may have failed." 1>&2
- $echo The command "cmp o2.O $srcdir/o2.X" failed. 1>&2
- errors=`expr $errors + 1`;;
- esac
-fi
-test -s o2.E || rm -f o2.E
-_POSIX2_VERSION=199209 $xx -in $srcdir/incompat1.I > incompat1.O 2> incompat1.E
-code=$?
-if test $code != 2; then
- $echo "Test incompat1(_POSIX2_VERSION=199209) failed: $xx return code $code differs from expected value 2" 1>&2
- errors=`expr $errors + 1`
-else
- cmp incompat1.O $srcdir/incompat1.X > /dev/null 2>&1
- case $? in
- 0) if test "$VERBOSE"; then $echo "passed incompat1(_POSIX2_VERSION=199209)"; fi;;
- 1) $echo "Test incompat1(_POSIX2_VERSION=199209) failed: files incompat1.O and $srcdir/incompat1.X differ" 1>&2
- (diff -c incompat1.O $srcdir/incompat1.X) 2> /dev/null
- errors=`expr $errors + 1`;;
- 2) $echo "Test incompat1(_POSIX2_VERSION=199209) may have failed." 1>&2
- $echo The command "cmp incompat1.O $srcdir/incompat1.X" failed. 1>&2
- errors=`expr $errors + 1`;;
- esac
-fi
-test -s incompat1.E || rm -f incompat1.E
-_POSIX2_VERSION=199209 $xx -fR $srcdir/incompat2.I > incompat2.O 2> incompat2.E
-code=$?
-if test $code != 2; then
- $echo "Test incompat2(_POSIX2_VERSION=199209) failed: $xx return code $code differs from expected value 2" 1>&2
- errors=`expr $errors + 1`
-else
- cmp incompat2.O $srcdir/incompat2.X > /dev/null 2>&1
- case $? in
- 0) if test "$VERBOSE"; then $echo "passed incompat2(_POSIX2_VERSION=199209)"; fi;;
- 1) $echo "Test incompat2(_POSIX2_VERSION=199209) failed: files incompat2.O and $srcdir/incompat2.X differ" 1>&2
- (diff -c incompat2.O $srcdir/incompat2.X) 2> /dev/null
- errors=`expr $errors + 1`;;
- 2) $echo "Test incompat2(_POSIX2_VERSION=199209) may have failed." 1>&2
- $echo The command "cmp incompat2.O $srcdir/incompat2.X" failed. 1>&2
- errors=`expr $errors + 1`;;
- esac
-fi
-test -s incompat2.E || rm -f incompat2.E
-_POSIX2_VERSION=199209 $xx -dfgiMnR $srcdir/incompat3.I > incompat3.O 2> incompat3.E
-code=$?
-if test $code != 2; then
- $echo "Test incompat3(_POSIX2_VERSION=199209) failed: $xx return code $code differs from expected value 2" 1>&2
- errors=`expr $errors + 1`
-else
- cmp incompat3.O $srcdir/incompat3.X > /dev/null 2>&1
- case $? in
- 0) if test "$VERBOSE"; then $echo "passed incompat3(_POSIX2_VERSION=199209)"; fi;;
- 1) $echo "Test incompat3(_POSIX2_VERSION=199209) failed: files incompat3.O and $srcdir/incompat3.X differ" 1>&2
- (diff -c incompat3.O $srcdir/incompat3.X) 2> /dev/null
- errors=`expr $errors + 1`;;
- 2) $echo "Test incompat3(_POSIX2_VERSION=199209) may have failed." 1>&2
- $echo The command "cmp incompat3.O $srcdir/incompat3.X" failed. 1>&2
- errors=`expr $errors + 1`;;
- esac
-fi
-test -s incompat3.E || rm -f incompat3.E
-_POSIX2_VERSION=199209 $xx -c -o /dev/null $srcdir/incompat4.I > incompat4.O 2> incompat4.E
-code=$?
-if test $code != 2; then
- $echo "Test incompat4(_POSIX2_VERSION=199209) failed: $xx return code $code differs from expected value 2" 1>&2
- errors=`expr $errors + 1`
-else
- cmp incompat4.O $srcdir/incompat4.X > /dev/null 2>&1
- case $? in
- 0) if test "$VERBOSE"; then $echo "passed incompat4(_POSIX2_VERSION=199209)"; fi;;
- 1) $echo "Test incompat4(_POSIX2_VERSION=199209) failed: files incompat4.O and $srcdir/incompat4.X differ" 1>&2
- (diff -c incompat4.O $srcdir/incompat4.X) 2> /dev/null
- errors=`expr $errors + 1`;;
- 2) $echo "Test incompat4(_POSIX2_VERSION=199209) may have failed." 1>&2
- $echo The command "cmp incompat4.O $srcdir/incompat4.X" failed. 1>&2
- errors=`expr $errors + 1`;;
- esac
-fi
-test -s incompat4.E || rm -f incompat4.E
-_POSIX2_VERSION=199209 $xx -C -o /dev/null $srcdir/incompat5.I > incompat5.O 2> incompat5.E
-code=$?
-if test $code != 2; then
- $echo "Test incompat5(_POSIX2_VERSION=199209) failed: $xx return code $code differs from expected value 2" 1>&2
- errors=`expr $errors + 1`
-else
- cmp incompat5.O $srcdir/incompat5.X > /dev/null 2>&1
- case $? in
- 0) if test "$VERBOSE"; then $echo "passed incompat5(_POSIX2_VERSION=199209)"; fi;;
- 1) $echo "Test incompat5(_POSIX2_VERSION=199209) failed: files incompat5.O and $srcdir/incompat5.X differ" 1>&2
- (diff -c incompat5.O $srcdir/incompat5.X) 2> /dev/null
- errors=`expr $errors + 1`;;
- 2) $echo "Test incompat5(_POSIX2_VERSION=199209) may have failed." 1>&2
- $echo The command "cmp incompat5.O $srcdir/incompat5.X" failed. 1>&2
- errors=`expr $errors + 1`;;
- esac
-fi
-test -s incompat5.E || rm -f incompat5.E
-_POSIX2_VERSION=199209 $xx -cC $srcdir/incompat6.I > incompat6.O 2> incompat6.E
-code=$?
-if test $code != 2; then
- $echo "Test incompat6(_POSIX2_VERSION=199209) failed: $xx return code $code differs from expected value 2" 1>&2
- errors=`expr $errors + 1`
-else
- cmp incompat6.O $srcdir/incompat6.X > /dev/null 2>&1
- case $? in
- 0) if test "$VERBOSE"; then $echo "passed incompat6(_POSIX2_VERSION=199209)"; fi;;
- 1) $echo "Test incompat6(_POSIX2_VERSION=199209) failed: files incompat6.O and $srcdir/incompat6.X differ" 1>&2
- (diff -c incompat6.O $srcdir/incompat6.X) 2> /dev/null
- errors=`expr $errors + 1`;;
- 2) $echo "Test incompat6(_POSIX2_VERSION=199209) may have failed." 1>&2
- $echo The command "cmp incompat6.O $srcdir/incompat6.X" failed. 1>&2
- errors=`expr $errors + 1`;;
- esac
-fi
-test -s incompat6.E || rm -f incompat6.E
-_POSIX2_VERSION=199209 $xx -k2,2 -t '\0' $srcdir/nul-tab.I > nul-tab.O 2> nul-tab.E
-code=$?
-if test $code != 0; then
- $echo "Test nul-tab(_POSIX2_VERSION=199209) failed: $xx return code $code differs from expected value 0" 1>&2
- errors=`expr $errors + 1`
-else
- cmp nul-tab.O $srcdir/nul-tab.X > /dev/null 2>&1
- case $? in
- 0) if test "$VERBOSE"; then $echo "passed nul-tab(_POSIX2_VERSION=199209)"; fi;;
- 1) $echo "Test nul-tab(_POSIX2_VERSION=199209) failed: files nul-tab.O and $srcdir/nul-tab.X differ" 1>&2
- (diff -c nul-tab.O $srcdir/nul-tab.X) 2> /dev/null
- errors=`expr $errors + 1`;;
- 2) $echo "Test nul-tab(_POSIX2_VERSION=199209) may have failed." 1>&2
- $echo The command "cmp nul-tab.O $srcdir/nul-tab.X" failed. 1>&2
- errors=`expr $errors + 1`;;
- esac
-fi
-test -s nul-tab.E || rm -f nul-tab.E
-_POSIX2_VERSION=199209 $xx -k 340282366920938463463374607431768211456 $srcdir/bigfield.I > bigfield.O 2> bigfield.E
-code=$?
-if test $code != 0; then
- $echo "Test bigfield(_POSIX2_VERSION=199209) failed: $xx return code $code differs from expected value 0" 1>&2
- errors=`expr $errors + 1`
-else
- cmp bigfield.O $srcdir/bigfield.X > /dev/null 2>&1
- case $? in
- 0) if test "$VERBOSE"; then $echo "passed bigfield(_POSIX2_VERSION=199209)"; fi;;
- 1) $echo "Test bigfield(_POSIX2_VERSION=199209) failed: files bigfield.O and $srcdir/bigfield.X differ" 1>&2
- (diff -c bigfield.O $srcdir/bigfield.X) 2> /dev/null
- errors=`expr $errors + 1`;;
- 2) $echo "Test bigfield(_POSIX2_VERSION=199209) may have failed." 1>&2
- $echo The command "cmp bigfield.O $srcdir/bigfield.X" failed. 1>&2
- errors=`expr $errors + 1`;;
- esac
-fi
-test -s bigfield.E || rm -f bigfield.E
-if test $errors = 0; then
- $echo Passed all 122 tests. 1>&2
-else
- $echo Failed $errors tests. 1>&2
-fi
-test $errors = 0 || errors=1
-exit $errors
diff --git a/tests/sort/use-nl.I b/tests/sort/use-nl.I
deleted file mode 100644
index adeb14f..0000000
--- a/tests/sort/use-nl.I
+++ /dev/null
@@ -1,2 +0,0 @@
-
-
diff --git a/tests/sort/use-nl.X b/tests/sort/use-nl.X
deleted file mode 100644
index adeb14f..0000000
--- a/tests/sort/use-nl.X
+++ /dev/null
@@ -1,2 +0,0 @@
-
-
diff --git a/tests/sparse-file b/tests/sparse-file
deleted file mode 100644
index 4d8c7a6..0000000
--- a/tests/sparse-file
+++ /dev/null
@@ -1,33 +0,0 @@
-# -*- sh -*-
-# Does the current (working-dir.) file system support sparse files?
-
-# Copyright (C) 2006 Free Software Foundation, Inc.
-
-# This program is free software; you can redistribute it and/or modify
-# it under the terms of the GNU General Public License as published by
-# the Free Software Foundation; either version 2 of the License, or
-# (at your option) any later version.
-
-# This program is distributed in the hope that it will be useful,
-# but WITHOUT ANY WARRANTY; without even the implied warranty of
-# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
-# GNU General Public License for more details.
-
-# You should have received a copy of the GNU General Public License
-# along with this program; if not, write to the Free Software
-# Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA
-# 02110-1301, USA.
-
-# Test whether we can create a sparse file.
-# For example, on Darwin6.5 with a file system of type hfs, it's not possible.
-# NTFS requires 128K before a hole appears in a sparse file.
-t=sparse.$$
-dd bs=1 seek=128K of=$t < /dev/null 2> /dev/null
-set x `du -sk $t`
-kb_size=$2
-rm -f $t
-if test $kb_size -ge 128; then
- echo "$0: skipping this test, since this file system doesn't support" \
- sparse files 1>&2
- (exit 77); exit 77
-fi
diff --git a/tests/split/additional-suffix.sh b/tests/split/additional-suffix.sh
new file mode 100755
index 0000000..2fe574c
--- /dev/null
+++ b/tests/split/additional-suffix.sh
@@ -0,0 +1,44 @@
+#!/bin/sh
+# show that 'split --additional-suffix=SUFFIX' works.
+
+# Copyright (C) 2012-2016 Free Software Foundation, Inc.
+
+# This program is free software: you can redistribute it and/or modify
+# it under the terms of the GNU General Public License as published by
+# the Free Software Foundation, either version 3 of the License, or
+# (at your option) any later version.
+
+# This program is distributed in the hope that it will be useful,
+# but WITHOUT ANY WARRANTY; without even the implied warranty of
+# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
+# GNU General Public License for more details.
+
+# You should have received a copy of the GNU General Public License
+# along with this program. If not, see <http://www.gnu.org/licenses/>.
+
+. "${srcdir=.}/tests/init.sh"; path_prepend_ ./src
+print_ver_ split
+
+printf '1\n2\n3\n4\n5\n' > in || framework_failure_
+
+split --lines=2 --additional-suffix=.txt in > out || fail=1
+cat <<\EOF > exp-1
+1
+2
+EOF
+cat <<\EOF > exp-2
+3
+4
+EOF
+cat <<\EOF > exp-3
+5
+EOF
+
+compare exp-1 xaa.txt || fail=1
+compare exp-2 xab.txt || fail=1
+compare exp-3 xac.txt || fail=1
+
+# Additional suffix must not contain slash
+returns_ 1 split --lines=2 --additional-suffix=a/b in 2>/dev/null >out || fail=1
+
+Exit $fail
diff --git a/tests/split/b-chunk.sh b/tests/split/b-chunk.sh
new file mode 100755
index 0000000..8475f96
--- /dev/null
+++ b/tests/split/b-chunk.sh
@@ -0,0 +1,61 @@
+#!/bin/sh
+# test splitting into 3 chunks
+
+# Copyright (C) 2010-2016 Free Software Foundation, Inc.
+
+# This program is free software: you can redistribute it and/or modify
+# it under the terms of the GNU General Public License as published by
+# the Free Software Foundation, either version 3 of the License, or
+# (at your option) any later version.
+
+# This program is distributed in the hope that it will be useful,
+# but WITHOUT ANY WARRANTY; without even the implied warranty of
+# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
+# GNU General Public License for more details.
+
+# You should have received a copy of the GNU General Public License
+# along with this program. If not, see <http://www.gnu.org/licenses/>.
+
+. "${srcdir=.}/tests/init.sh"; path_prepend_ ./src
+print_ver_ split
+
+# N can be greater than the file size
+# in which case no data is extracted, or empty files are written
+split -n 10 /dev/null || fail=1
+test "$(stat -c %s x* | uniq -c | sed 's/^ *//; s/ /x/')" = "10x0" || fail=1
+rm -f x??
+
+# Ensure --elide-empty-files is honored
+split -e -n 10 /dev/null || fail=1
+stat x?? 2>/dev/null && fail=1
+
+printf '1\n2\n3\n4\n5\n' > input || framework_failure_
+
+for file in input /proc/version /sys/kernel/profiling; do
+ test -f $file || continue
+
+ split -n 3 $file > out || fail=1
+ split -n 1/3 $file > b1 || fail=1
+ split -n 2/3 $file > b2 || fail=1
+ split -n 3/3 $file > b3 || fail=1
+
+ case $file in
+ input)
+ printf '1\n2' > exp-1
+ printf '\n3\n' > exp-2
+ printf '4\n5\n' > exp-3
+
+ compare exp-1 xaa || fail=1
+ compare exp-2 xab || fail=1
+ compare exp-3 xac || fail=1
+ ;;
+ esac
+
+ compare xaa b1 || fail=1
+ compare xab b2 || fail=1
+ compare xac b3 || fail=1
+ cat xaa xab xac | compare - $file || fail=1
+ test -f xad && fail=1
+done
+
+Exit $fail
diff --git a/tests/split/fail.sh b/tests/split/fail.sh
new file mode 100755
index 0000000..4d8ea40
--- /dev/null
+++ b/tests/split/fail.sh
@@ -0,0 +1,81 @@
+#!/bin/sh
+# split must fail when given length/count of zero.
+
+# Copyright (C) 2003-2016 Free Software Foundation, Inc.
+
+# This program is free software: you can redistribute it and/or modify
+# it under the terms of the GNU General Public License as published by
+# the Free Software Foundation, either version 3 of the License, or
+# (at your option) any later version.
+
+# This program is distributed in the hope that it will be useful,
+# but WITHOUT ANY WARRANTY; without even the implied warranty of
+# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
+# GNU General Public License for more details.
+
+# You should have received a copy of the GNU General Public License
+# along with this program. If not, see <http://www.gnu.org/licenses/>.
+
+. "${srcdir=.}/tests/init.sh"; path_prepend_ ./src
+print_ver_ split
+getlimits_
+
+touch in || framework_failure_
+
+
+split -a 0 in 2> /dev/null || fail=1
+returns_ 1 split -b 0 in 2> /dev/null || fail=1
+returns_ 1 split -C 0 in 2> /dev/null || fail=1
+returns_ 1 split -l 0 in 2> /dev/null || fail=1
+returns_ 1 split -n 0 in 2> /dev/null || fail=1
+returns_ 1 split -n 1/0 in 2> /dev/null || fail=1
+returns_ 1 split -n 0/1 in 2> /dev/null || fail=1
+returns_ 1 split -n 2/1 in 2> /dev/null || fail=1
+
+# Make sure -C doesn't create empty files.
+rm -f x?? || fail=1
+echo x | split -C 1 || fail=1
+test -f xaa && test -f xab || fail=1
+test -f xac && fail=1
+
+# Make sure that the obsolete -N notation still works
+split -1 in 2> /dev/null || fail=1
+
+# Then make sure that -0 evokes a failure.
+returns_ 1 split -0 in 2> /dev/null || fail=1
+
+split --lines=$UINTMAX_MAX in || fail=1
+split --bytes=$OFF_T_MAX in || fail=1
+returns_ 1 split --line-bytes=$OFF_T_OFLOW 2> /dev/null in || fail=1
+returns_ 1 split --line-bytes=$SIZE_OFLOW 2> /dev/null in || fail=1
+if truncate -s$SIZE_OFLOW large; then
+ # Ensure we can split chunks of a large file on 32 bit hosts
+ split --number=$SIZE_OFLOW/$SIZE_OFLOW large >/dev/null || fail=1
+fi
+split --number=r/$UINTMAX_MAX/$UINTMAX_MAX </dev/null >/dev/null || fail=1
+returns_ 1 split --number=r/$UINTMAX_OFLOW </dev/null 2>/dev/null || fail=1
+
+# Make sure that a huge obsolete option evokes the right failure.
+split -99999999999999999991 2> out
+
+# On losing systems (x86 Solaris 5.9 c89), we get a message like this:
+# split: line count option -9999999999... is too large
+# while on most, we get this:
+# split: line count option -99999999999999999991... is too large
+# so map them both to -99*.
+sed 's/99[19]*/99*/' out > out-t
+mv -f out-t out
+
+cat <<\EOF > exp
+split: line count option -99*... is too large
+EOF
+compare exp out || fail=1
+
+# Make sure split fails when it can't read input
+# (the current directory in this case)
+if ! cat . >/dev/null; then
+ # can't read() directories
+ returns_ 1 split . || fail=1
+fi
+
+Exit $fail
diff --git a/tests/split/filter.sh b/tests/split/filter.sh
new file mode 100755
index 0000000..e4e4dca
--- /dev/null
+++ b/tests/split/filter.sh
@@ -0,0 +1,57 @@
+#!/bin/sh
+# Exercise split's new --filter option.
+
+# Copyright (C) 2011-2016 Free Software Foundation, Inc.
+
+# This program is free software: you can redistribute it and/or modify
+# it under the terms of the GNU General Public License as published by
+# the Free Software Foundation, either version 3 of the License, or
+# (at your option) any later version.
+
+# This program is distributed in the hope that it will be useful,
+# but WITHOUT ANY WARRANTY; without even the implied warranty of
+# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
+# GNU General Public License for more details.
+
+# You should have received a copy of the GNU General Public License
+# along with this program. If not, see <http://www.gnu.org/licenses/>.
+
+. "${srcdir=.}/tests/init.sh"; path_prepend_ ./src
+print_ver_ split
+xz --version || skip_ "xz (better than gzip/bzip2) required"
+
+for total_n_lines in 5 3000 20000; do
+ seq $total_n_lines > in || framework_failure_
+ for i in 2 51 598; do
+
+ # Don't create too many files/processes.
+ # Starting 10k (or even "only" 1500) processes would take a long time,
+ # and would provide little added benefit.
+ case $i:$total_n_lines in 2:5);; *) continue;; esac
+
+ split -l$i --filter='xz -1 > $FILE.xz' in out- || fail=1
+ xz -dc out-* > out || fail=1
+ compare in out || fail=1
+ rm -f out*
+ done
+ rm -f in
+done
+
+# Show how --elide-empty-files works with --filter:
+# split does not run the command (and effectively elides the file)
+# only when the output to that command would have been empty.
+split -e -n 10 --filter='xz > $FILE.xz' /dev/null || fail=1
+stat x?? 2>/dev/null && fail=1
+
+# Ensure this invalid combination is flagged
+returns_ 1 split -n 1/2 --filter='true' /dev/null 2>&1 || fail=1
+
+# Ensure SIGPIPEs sent by the children don't propagate back
+# where they would result in a non zero exit from split.
+yes | head -n200K | split -b1G --filter='head -c1 >/dev/null' || fail=1
+
+# Ensure that endless input is ignored when all filters finish
+timeout 10 yes | split --filter="head -c1 >/dev/null" -n r/1 || fail=1
+timeout 10 split --filter="head -c1 >/dev/null" -n 1 /dev/zero || fail=1
+
+Exit $fail
diff --git a/tests/split/guard-input.sh b/tests/split/guard-input.sh
new file mode 100755
index 0000000..9697f08
--- /dev/null
+++ b/tests/split/guard-input.sh
@@ -0,0 +1,33 @@
+#!/bin/sh
+# ensure split doesn't overwrite input with output.
+
+# Copyright (C) 2012-2016 Free Software Foundation, Inc.
+
+# This program is free software: you can redistribute it and/or modify
+# it under the terms of the GNU General Public License as published by
+# the Free Software Foundation, either version 3 of the License, or
+# (at your option) any later version.
+
+# This program is distributed in the hope that it will be useful,
+# but WITHOUT ANY WARRANTY; without even the implied warranty of
+# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
+# GNU General Public License for more details.
+
+# You should have received a copy of the GNU General Public License
+# along with this program. If not, see <http://www.gnu.org/licenses/>.
+
+. "${srcdir=.}/tests/init.sh"; path_prepend_ ./src
+print_ver_ split
+
+seq 10 | tee exp-1 > xaa
+ln -s xaa in2
+ln xaa in3
+
+returns_ 1 split -C 6 xaa || fail=1
+returns_ 1 split -C 6 in2 || fail=1
+returns_ 1 split -C 6 in3 || fail=1
+returns_ 1 split -C 6 - < xaa || fail=1
+
+compare exp-1 xaa || fail=1
+
+Exit $fail
diff --git a/tests/split/l-chunk.sh b/tests/split/l-chunk.sh
new file mode 100755
index 0000000..dac98d0
--- /dev/null
+++ b/tests/split/l-chunk.sh
@@ -0,0 +1,142 @@
+#!/bin/sh
+# test splitting into newline delineated chunks (-n l/...)
+
+# Copyright (C) 2010-2016 Free Software Foundation, Inc.
+
+# This program is free software: you can redistribute it and/or modify
+# it under the terms of the GNU General Public License as published by
+# the Free Software Foundation, either version 3 of the License, or
+# (at your option) any later version.
+
+# This program is distributed in the hope that it will be useful,
+# but WITHOUT ANY WARRANTY; without even the implied warranty of
+# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
+# GNU General Public License for more details.
+
+# You should have received a copy of the GNU General Public License
+# along with this program. If not, see <http://www.gnu.org/licenses/>.
+
+. "${srcdir=.}/tests/init.sh"; path_prepend_ ./src
+print_ver_ split
+
+# invalid number of chunks
+echo "split: invalid number of chunks: '1o'" > exp
+split -n l/1o 2>err && fail=1
+compare exp err || fail=1
+
+echo "split: -: cannot determine file size" > exp
+echo | split -n l/1 2>err && fail=1
+compare exp err || fail=1
+
+# N can be greater than the file size
+# in which case no data is extracted, or empty files are written
+split -n l/10 /dev/null || fail=1
+test "$(stat -c %s x* | uniq -c | sed 's/^ *//; s/ /x/')" = "10x0" || fail=1
+rm x??
+
+# Ensure the correct number of files written
+# even if there is more data than the reported file size
+split -n l/2 /dev/zero
+test "$(stat -c %s x* | wc -l)" = '2' || fail=1
+rm x??
+
+# Repeat the above, but with 1/2, not l/2:
+split -n 1/2 /dev/zero || fail=1
+
+# Ensure --elide-empty-files is honored
+split -e -n l/10 /dev/null || fail=1
+stat x?? 2>/dev/null && fail=1
+
+# 80 bytes. ~ transformed to \n below
+lines=\
+12345~1~12345~1~12345~1~12345~1~12345~~~12345~1~12345~1~12345~1~12345~1~12345~1~
+
+printf "%s" "$lines" | tr '~' '\n' > in || framework_failure_
+
+echo "split: invalid chunk number: '16'" > exp
+split -n l/16/15 in 2>err.t && fail=1
+sed "s/': .*/'/" < err.t > err || framework_failure_
+compare exp err || fail=1
+
+printf '%s' "\
+14 16 09 15 16 10
+14 08 08 10 14 08 08 10
+06 08 08 02 06 08 08 02 06 08 08 10
+06 08 02 06 08 00 08 02 06 08 02 06 08 00 10
+06 00 08 00 02 06 00 02 06 00 08 00 01 07 00 02 06 00 08 00 02 16
+" > exp || framework_failure_
+
+sed 's/00 *//g' exp > exp.elide_empty || framework_failure_
+
+DEBUGGING=
+test "$DEBUGGING" && test "$VERBOSE" && set +x
+for ELIDE_EMPTY in '' '-e'; do
+ for IO_BLKSIZE in 1 2 5 10 80 100; do
+ > out
+ test "$DEBUGGING" && printf "\n---io-blk-size=$IO_BLKSIZE $ELIDE_EMPTY\n"
+ for N in 6 8 12 15 22; do
+ rm -f x*
+
+ if test -z "$ELIDE_EMPTY"; then
+ split ---io-blksize=$IO_BLKSIZE -n l/2/$N in > chunk.k
+ stat x* 2>/dev/null && fail=1
+ fi
+
+ split ---io-blksize=$IO_BLKSIZE $ELIDE_EMPTY -n l/$N in
+ echo $(stat -c "%02s" x*) >> out
+
+ if test -z "$ELIDE_EMPTY"; then
+ compare chunk.k xab || fail=1
+ fi
+
+ if test "$DEBUGGING"; then
+ # Output partition pattern
+ size=$(printf "%s" "$lines" | wc -c)
+ chunk_size=$(($size/$N))
+ end_size=$(($chunk_size + ($size % $N)))
+ {
+ yes "$(printf %${chunk_size}s ])" | head -n$(($N-1))
+ printf %${end_size}s ]
+ } | tr -d '\n' | sed "s/\\(^.\\{1,$size\\}\\).*/\\1/"
+ echo
+
+ # Output pattern generated for comparison
+ for s in $(stat -c "%s" x*); do
+ #s=0 transitions are not shown
+ test "$m" = "_" && m=- || m=_
+ printf "%${s}s" '' | tr ' ' $m
+ done
+ echo
+
+ # Output lines for reference
+ echo "$lines"
+ fi
+ done
+ test -z "$ELIDE_EMPTY" && EXP=exp || EXP=exp.elide_empty
+ compare out $EXP || fail=1
+ done
+done
+test "$DEBUGGING" && test "$VERBOSE" && set -x
+
+
+# Check extraction of particular chunks
+> out
+printf '1\n12345\n' > exp
+split -n l/13/15 in > out
+compare exp out || fail=1
+> out
+printf '' > exp
+split -n l/14/15 in > out
+compare exp out || fail=1
+> out
+printf '1\n12345\n1\n' > exp
+split -n l/15/15 in > out
+compare exp out || fail=1
+
+# test input with no \n at end
+printf '12\n34\n5' > in
+printf '5' > exp
+split -n l/7/7 in > out
+compare exp out || fail=1
+
+Exit $fail
diff --git a/tests/split/line-bytes.sh b/tests/split/line-bytes.sh
new file mode 100755
index 0000000..6e5e9d9
--- /dev/null
+++ b/tests/split/line-bytes.sh
@@ -0,0 +1,87 @@
+#!/bin/sh
+# test -C, --lines-bytes
+
+# Copyright (C) 2013-2016 Free Software Foundation, Inc.
+
+# This program is free software: you can redistribute it and/or modify
+# it under the terms of the GNU General Public License as published by
+# the Free Software Foundation, either version 3 of the License, or
+# (at your option) any later version.
+
+# This program is distributed in the hope that it will be useful,
+# but WITHOUT ANY WARRANTY; without even the implied warranty of
+# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
+# GNU General Public License for more details.
+
+# You should have received a copy of the GNU General Public License
+# along with this program. If not, see <http://www.gnu.org/licenses/>.
+
+. "${srcdir=.}/tests/init.sh"; path_prepend_ ./src
+print_ver_ split
+
+vm=$(get_min_ulimit_v_ split -C 'K' /dev/null) \
+ || skip_ "this shell lacks ulimit support"
+
+# Ensure memory is not allocated up front
+(ulimit -v $vm && split -C 'G' /dev/null) || fail=1
+
+
+# Ensure correct operation with various split and buffer size combinations
+
+lines=\
+1~2222~3~4
+
+printf '%s' "$lines" | tr '~' '\n' > in || framework_failure_
+
+cat <<\EOF > splits_exp
+1 1 1 1 1 1 1 1 1 1
+2 2 2 1 2 1
+2 3 2 2 1
+2 4 3 1
+2 5 3
+2 5 3
+7 3
+7 3
+9 1
+9 1
+10
+EOF
+
+seq 0 9 | tr -d '\n' > no_eol_in
+
+cat <<\EOF > no_eol_splits_exp
+1 1 1 1 1 1 1 1 1 1
+2 2 2 2 2
+3 3 3 1
+4 4 2
+5 5
+6 4
+7 3
+8 2
+9 1
+10
+10
+EOF
+
+for b in $(seq 10); do
+ > splits
+ > no_eol_splits
+ for s in $(seq 11); do
+ rm x??
+ split ---io=$b -C$s in || fail=1
+ cat x* > out || framework_failure_
+ compare in out || fail=1
+ stat -c %s x* | paste -s -d ' ' >> splits
+
+ rm x??
+ split ---io=$b -C$s no_eol_in || fail=1
+ cat x* > out || framework_failure_
+ cat xaa
+ compare no_eol_in out || fail=1
+ stat -c %s x* | paste -s -d ' ' >> no_eol_splits
+ done
+ compare splits_exp splits || fail=1
+ compare no_eol_splits_exp no_eol_splits || fail=1
+done
+
+Exit $fail
diff --git a/tests/split/lines.sh b/tests/split/lines.sh
new file mode 100755
index 0000000..aca97b3
--- /dev/null
+++ b/tests/split/lines.sh
@@ -0,0 +1,42 @@
+#!/bin/sh
+# show that 'split --lines=2' works.
+
+# Copyright (C) 2002-2016 Free Software Foundation, Inc.
+
+# This program is free software: you can redistribute it and/or modify
+# it under the terms of the GNU General Public License as published by
+# the Free Software Foundation, either version 3 of the License, or
+# (at your option) any later version.
+
+# This program is distributed in the hope that it will be useful,
+# but WITHOUT ANY WARRANTY; without even the implied warranty of
+# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
+# GNU General Public License for more details.
+
+# You should have received a copy of the GNU General Public License
+# along with this program. If not, see <http://www.gnu.org/licenses/>.
+
+. "${srcdir=.}/tests/init.sh"; path_prepend_ ./src
+print_ver_ split
+
+printf '1\n2\n3\n4\n5\n' > in || framework_failure_
+
+split --lines=2 in > out || fail=1
+cat <<\EOF > exp-1
+1
+2
+EOF
+cat <<\EOF > exp-2
+3
+4
+EOF
+cat <<\EOF > exp-3
+5
+EOF
+
+compare exp-1 xaa || fail=1
+compare exp-2 xab || fail=1
+compare exp-3 xac || fail=1
+test -f xad && fail=1
+
+Exit $fail
diff --git a/tests/split/numeric.sh b/tests/split/numeric.sh
new file mode 100755
index 0000000..23de241
--- /dev/null
+++ b/tests/split/numeric.sh
@@ -0,0 +1,65 @@
+#!/bin/sh
+# Show that split --numeric-suffixes[=from] works.
+
+# Copyright (C) 2012-2016 Free Software Foundation, Inc.
+
+# This program is free software: you can redistribute it and/or modify
+# it under the terms of the GNU General Public License as published by
+# the Free Software Foundation, either version 3 of the License, or
+# (at your option) any later version.
+
+# This program is distributed in the hope that it will be useful,
+# but WITHOUT ANY WARRANTY; without even the implied warranty of
+# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
+# GNU General Public License for more details.
+
+# You should have received a copy of the GNU General Public License
+# along with this program. If not, see <http://www.gnu.org/licenses/>.
+
+. "${srcdir=.}/tests/init.sh"; path_prepend_ ./src
+print_ver_ split
+
+# Check default start from 0
+printf '1\n2\n3\n4\n5\n' > in || framework_failure_
+split --numeric-suffixes --lines=2 in || fail=1
+cat <<\EOF > exp-1
+1
+2
+EOF
+cat <<\EOF > exp-2
+3
+4
+EOF
+cat <<\EOF > exp-3
+5
+EOF
+compare exp-1 x00 || fail=1
+compare exp-2 x01 || fail=1
+compare exp-3 x02 || fail=1
+
+# Check --numeric-suffixes=X
+split --numeric-suffixes=1 --lines=2 in || fail=1
+cat <<\EOF > exp-1
+1
+2
+EOF
+cat <<\EOF > exp-2
+3
+4
+EOF
+cat <<\EOF > exp-3
+5
+EOF
+compare exp-1 x01 || fail=1
+compare exp-2 x02 || fail=1
+compare exp-3 x03 || fail=1
+
+# Check that split failed when suffix length is not large enough for
+# the numerical suffix start value
+returns_ 1 split -a 3 --numeric-suffixes=1000 in 2>/dev/null || fail=1
+
+# check invalid --numeric-suffixes start values are flagged
+returns_ 1 split --numeric-suffixes=-1 in 2> /dev/null || fail=1
+returns_ 1 split --numeric-suffixes=one in 2> /dev/null || fail=1
+
+Exit $fail
diff --git a/tests/split/r-chunk.sh b/tests/split/r-chunk.sh
new file mode 100755
index 0000000..462a071
--- /dev/null
+++ b/tests/split/r-chunk.sh
@@ -0,0 +1,64 @@
+#!/bin/sh
+# test splitting into round-robin chunks
+
+# Copyright (C) 2010-2016 Free Software Foundation, Inc.
+
+# This program is free software: you can redistribute it and/or modify
+# it under the terms of the GNU General Public License as published by
+# the Free Software Foundation, either version 3 of the License, or
+# (at your option) any later version.
+
+# This program is distributed in the hope that it will be useful,
+# but WITHOUT ANY WARRANTY; without even the implied warranty of
+# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
+# GNU General Public License for more details.
+
+# You should have received a copy of the GNU General Public License
+# along with this program. If not, see <http://www.gnu.org/licenses/>.
+
+. "${srcdir=.}/tests/init.sh"; path_prepend_ ./src
+print_ver_ split
+
+# N can be greater than the file size
+# in which case no data is extracted, or empty files are written
+split -n r/10 /dev/null || fail=1
+test "$(stat -c %s x* | uniq -c | sed 's/^ *//; s/ /x/')" = "10x0" || fail=1
+rm x??
+
+# Ensure --elide-empty-files is honored
+split -e -n r/10 /dev/null || fail=1
+stat x?? 2>/dev/null && fail=1
+
+printf '1\n2\n3\n4\n5\n' > in || framework_failure_
+
+split -n r/3 in > out || fail=1
+compare /dev/null out || fail=1
+
+split -n r/1/3 in > r1 || fail=1
+split -n r/2/3 in > r2 || fail=1
+split -n r/3/3 in > r3 || fail=1
+
+printf '1\n4\n' > exp-1
+printf '2\n5\n' > exp-2
+printf '3\n' > exp-3
+
+compare exp-1 xaa || fail=1
+compare exp-2 xab || fail=1
+compare exp-3 xac || fail=1
+compare exp-1 r1 || fail=1
+compare exp-2 r2 || fail=1
+compare exp-3 r3 || fail=1
+test -f xad && fail=1
+
+# Test input without trailing \n
+printf '1\n2\n3\n4\n5' | split -n r/2/3 > out
+printf '2\n5' > exp
+compare exp out || fail=1
+
+# Ensure we fall back to appending to a file at a time
+# if we hit the limit for the number of open files.
+rm x*
+(ulimit -n 20 && yes | head -n90 | split -n r/30 ) || fail=1
+test "$(stat -c %s x* | uniq -c | sed 's/^ *//; s/ /x/')" = "30x6" || fail=1
+
+Exit $fail
diff --git a/tests/split/record-sep.sh b/tests/split/record-sep.sh
new file mode 100755
index 0000000..66b403e
--- /dev/null
+++ b/tests/split/record-sep.sh
@@ -0,0 +1,78 @@
+#!/bin/sh
+# test split with custom record separators
+
+# Copyright (C) 2015-2016 Free Software Foundation, Inc.
+
+# This program is free software: you can redistribute it and/or modify
+# it under the terms of the GNU General Public License as published by
+# the Free Software Foundation, either version 3 of the License, or
+# (at your option) any later version.
+
+# This program is distributed in the hope that it will be useful,
+# but WITHOUT ANY WARRANTY; without even the implied warranty of
+# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
+# GNU General Public License for more details.
+
+# You should have received a copy of the GNU General Public License
+# along with this program. If not, see <http://www.gnu.org/licenses/>.
+
+. "${srcdir=.}/tests/init.sh"; path_prepend_ ./src
+print_ver_ split
+
+NL='
+'
+
+for sep in "$NL" '\0' ':'; do
+
+ test "$sep" = "$NL" && tr='\n' || tr="$sep"
+
+ for mode in '--lines=2' '--line-bytes=4' '--number=l/3' '--number=r/3'; do
+
+ # Generate in default mode for comparison
+ printf '1\n2\n3\n4\n5\n' > in || framework_failure_
+ split $mode in || fail=1
+ tr '\n' "$tr" < xaa > exp1
+ tr '\n' "$tr" < xab > exp2
+ tr '\n' "$tr" < xac > exp3
+
+ rm -f x??
+
+ # Generate output with specified --separator
+ printf '1\n2\n3\n4\n5\n' | tr '\n' "$tr" > in || framework_failure_
+ split $mode -t "$sep" in || fail=1
+
+ compare exp1 xaa || fail=1
+ compare exp2 xab || fail=1
+ compare exp3 xac || fail=1
+ test -f xad && fail=1
+ done
+
+done
+
+
+#
+# Test usage edge cases
+#
+
+# Should fail: '-t' requires an argument
+returns_ 1 split -t </dev/null ||
+ { warn_ "-t without argument did not trigger an error" ; fail=1 ; }
+
+# should fail: multi-character separator
+returns_ 1 split -txx </dev/null ||
+ { warn_ "-txx did not trigger an error" ; fail=1 ; }
+
+# should fail: different separators used
+returns_ 1 split -ta -tb </dev/null ||
+ { warn_ "-ta -tb did not trigger an error" ; fail=1 ; }
+
+# should fail: different separators used, including default
+returns_ 1 split -t"$NL" -tb </dev/null ||
+ { warn_ "-t\$NL -tb did not trigger an error" ; fail=1 ; }
+
+# should not fail: same separator used multiple times
+split -t: -t: </dev/null ||
+ { warn_ "-t: -t: triggered an error" ; fail=1 ; }
+
+
+Exit $fail
diff --git a/tests/split/suffix-auto-length.sh b/tests/split/suffix-auto-length.sh
new file mode 100755
index 0000000..133749c
--- /dev/null
+++ b/tests/split/suffix-auto-length.sh
@@ -0,0 +1,53 @@
+#!/bin/sh
+# Test the suffix auto width functionality
+
+# Copyright (C) 2012-2016 Free Software Foundation, Inc.
+
+# This program is free software: you can redistribute it and/or modify
+# it under the terms of the GNU General Public License as published by
+# the Free Software Foundation, either version 3 of the License, or
+# (at your option) any later version.
+
+# This program is distributed in the hope that it will be useful,
+# but WITHOUT ANY WARRANTY; without even the implied warranty of
+# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
+# GNU General Public License for more details.
+
+# You should have received a copy of the GNU General Public License
+# along with this program. If not, see <http://www.gnu.org/licenses/>.
+
+. "${srcdir=.}/tests/init.sh"; path_prepend_ ./src
+print_ver_ split
+
+
+# ensure auto widening is off when start number specified
+truncate -s12 file.in || framework_failure_
+returns_ 1 split file.in -b1 --numeric=89 || fail=1
+test "$(ls -1 x* | wc -l)" = 11 || fail=1
+rm -f x*
+
+# ensure auto widening works when no start num specified
+truncate -s91 file.in || framework_failure_
+for prefix in 'x' 'xx' ''; do
+ for add_suffix in '.txt' ''; do
+ split file.in "$prefix" -b1 --numeric --additional-suffix="$add_suffix" \
+ || fail=1
+ test "$(ls -1 $prefix*[0-9]*$add_suffix | wc -l)" = 91 || fail=1
+ test -e "${prefix}89$add_suffix" || fail=1
+ test -e "${prefix}9000$add_suffix" || fail=1
+ rm -f $prefix*[0-9]*$add_suffix
+ done
+done
+
+# ensure auto width with --number and start num < number of files
+# That's the single run use case which is valid to adjust suffix len
+truncate -s100 file.in || framework_failure_
+split --numeric-suffixes=1 --number=r/100 file.in || fail=1
+rm -f x*
+
+# ensure no auto width with --number and start num >= number of files
+# That's the multi run use case which is invalid to adjust suffix len
+# as that would result in an incorrect order for the total output file set
+returns_ 1 split --numeric-suffixes=100 --number=r/100 file.in || fail=1
+
+Exit $fail
diff --git a/tests/split/suffix-length.sh b/tests/split/suffix-length.sh
new file mode 100755
index 0000000..6540f2f
--- /dev/null
+++ b/tests/split/suffix-length.sh
@@ -0,0 +1,76 @@
+#!/bin/sh
+# Show that split -a works.
+
+# Copyright (C) 2002-2016 Free Software Foundation, Inc.
+
+# This program is free software: you can redistribute it and/or modify
+# it under the terms of the GNU General Public License as published by
+# the Free Software Foundation, either version 3 of the License, or
+# (at your option) any later version.
+
+# This program is distributed in the hope that it will be useful,
+# but WITHOUT ANY WARRANTY; without even the implied warranty of
+# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
+# GNU General Public License for more details.
+
+# You should have received a copy of the GNU General Public License
+# along with this program. If not, see <http://www.gnu.org/licenses/>.
+
+. "${srcdir=.}/tests/init.sh"; path_prepend_ ./src
+print_ver_ split
+
+a_z='a b c d e f g h i j k l m n o p q r s t u v w x y z'
+
+# Generate a 27-byte file
+printf %s $a_z 0 |tr -d ' ' > in || framework_failure_
+
+files=
+for i in $a_z; do
+ files="${files}xa$i "
+done
+files="${files}xba"
+
+for f in $files; do
+ printf "creating file '%s'"'\n' $f
+done > exp || framework_failure_
+
+echo split: output file suffixes exhausted \
+ > exp-too-short || framework_failure_
+
+
+# This should fail.
+split -b 1 -a 1 in 2> err && fail=1
+test -f xa || fail=1
+test -f xz || fail=1
+test -f xaa && fail=1
+test -f xaz && fail=1
+rm -f x*
+compare exp-too-short err || fail=1
+
+# With a longer suffix, it must succeed.
+split --verbose -b 1 -a 2 in > err || fail=1
+compare exp err || fail=1
+
+# Ensure that xbb is *not* created.
+test -f xbb && fail=1
+
+# Ensure that the 27 others files *were* created, and with expected contents.
+n=1
+for f in $files; do
+ expected_byte=$(cut -b $n in)
+ b=$(cat $f) || fail=1
+ test "$b" = "$expected_byte" || fail=1
+ n=$(expr $n + 1)
+done
+
+# Ensure that -a is independent of -[bCl]
+split -a2 -b1000 < /dev/null || fail=1
+split -a2 -l1000 < /dev/null || fail=1
+split -a2 -C1000 < /dev/null || fail=1
+
+# Ensure that -a fails early with a -n that is too large
+rm -f x*
+returns_ 1 split -a2 -n1000 < /dev/null || fail=1
+test -f xaa && fail=1
+
+Exit $fail
diff --git a/tests/stty/Makefile.am b/tests/stty/Makefile.am
deleted file mode 100644
index 5cd33b5..0000000
--- a/tests/stty/Makefile.am
+++ /dev/null
@@ -1,6 +0,0 @@
-## Process this file with automake to produce Makefile.in -*-Makefile-*-.
-TESTS = row-col-1 basic-1
-EXTRA_DIST = $(TESTS)
-TESTS_ENVIRONMENT = \
- CU_TEST_NAME=`basename $(abs_srcdir)`,$$tst \
- PATH="$(VG_PATH_PREFIX)`pwd`/../../src$(PATH_SEPARATOR)$$PATH"
diff --git a/tests/stty/Makefile.in b/tests/stty/Makefile.in
deleted file mode 100644
index f6b75a9..0000000
--- a/tests/stty/Makefile.in
+++ /dev/null
@@ -1,716 +0,0 @@
-# Makefile.in generated by automake 1.10 from Makefile.am.
-# @configure_input@
-
-# Copyright (C) 1994, 1995, 1996, 1997, 1998, 1999, 2000, 2001, 2002,
-# 2003, 2004, 2005, 2006 Free Software Foundation, Inc.
-# This Makefile.in is free software; the Free Software Foundation
-# gives unlimited permission to copy and/or distribute it,
-# with or without modifications, as long as this notice is preserved.
-
-# This program is distributed in the hope that it will be useful,
-# but WITHOUT ANY WARRANTY, to the extent permitted by law; without
-# even the implied warranty of MERCHANTABILITY or FITNESS FOR A
-# PARTICULAR PURPOSE.
-
-@SET_MAKE@
-VPATH = @srcdir@
-pkgdatadir = $(datadir)/@PACKAGE@
-pkglibdir = $(libdir)/@PACKAGE@
-pkgincludedir = $(includedir)/@PACKAGE@
-am__cd = CDPATH="$${ZSH_VERSION+.}$(PATH_SEPARATOR)" && cd
-install_sh_DATA = $(install_sh) -c -m 644
-install_sh_PROGRAM = $(install_sh) -c
-install_sh_SCRIPT = $(install_sh) -c
-INSTALL_HEADER = $(INSTALL_DATA)
-transform = $(program_transform_name)
-NORMAL_INSTALL = :
-PRE_INSTALL = :
-POST_INSTALL = :
-NORMAL_UNINSTALL = :
-PRE_UNINSTALL = :
-POST_UNINSTALL = :
-build_triplet = @build@
-host_triplet = @host@
-subdir = tests/stty
-DIST_COMMON = $(srcdir)/Makefile.am $(srcdir)/Makefile.in
-ACLOCAL_M4 = $(top_srcdir)/aclocal.m4
-am__aclocal_m4_deps = $(top_srcdir)/m4/absolute-header.m4 \
- $(top_srcdir)/m4/acl.m4 $(top_srcdir)/m4/alloca.m4 \
- $(top_srcdir)/m4/allocsa.m4 $(top_srcdir)/m4/argmatch.m4 \
- $(top_srcdir)/m4/arpa_inet_h.m4 $(top_srcdir)/m4/assert.m4 \
- $(top_srcdir)/m4/atexit.m4 $(top_srcdir)/m4/autobuild.m4 \
- $(top_srcdir)/m4/backupfile.m4 $(top_srcdir)/m4/base64.m4 \
- $(top_srcdir)/m4/bison.m4 $(top_srcdir)/m4/boottime.m4 \
- $(top_srcdir)/m4/c-strtod.m4 $(top_srcdir)/m4/calloc.m4 \
- $(top_srcdir)/m4/canon-host.m4 \
- $(top_srcdir)/m4/canonicalize.m4 \
- $(top_srcdir)/m4/chdir-long.m4 $(top_srcdir)/m4/check-decl.m4 \
- $(top_srcdir)/m4/chown.m4 $(top_srcdir)/m4/clock_time.m4 \
- $(top_srcdir)/m4/cloexec.m4 $(top_srcdir)/m4/close-stream.m4 \
- $(top_srcdir)/m4/closeout.m4 $(top_srcdir)/m4/codeset.m4 \
- $(top_srcdir)/m4/config-h.m4 $(top_srcdir)/m4/cycle-check.m4 \
- $(top_srcdir)/m4/d-ino.m4 $(top_srcdir)/m4/d-type.m4 \
- $(top_srcdir)/m4/dirfd.m4 $(top_srcdir)/m4/dirname.m4 \
- $(top_srcdir)/m4/dos.m4 $(top_srcdir)/m4/double-slash-root.m4 \
- $(top_srcdir)/m4/dup2.m4 $(top_srcdir)/m4/eealloc.m4 \
- $(top_srcdir)/m4/eoverflow.m4 $(top_srcdir)/m4/error.m4 \
- $(top_srcdir)/m4/euidaccess-stat.m4 \
- $(top_srcdir)/m4/euidaccess.m4 $(top_srcdir)/m4/exclude.m4 \
- $(top_srcdir)/m4/exitfail.m4 $(top_srcdir)/m4/extensions.m4 \
- $(top_srcdir)/m4/fchdir.m4 $(top_srcdir)/m4/fcntl-safer.m4 \
- $(top_srcdir)/m4/fcntl_h.m4 $(top_srcdir)/m4/fd-reopen.m4 \
- $(top_srcdir)/m4/file-type.m4 $(top_srcdir)/m4/fileblocks.m4 \
- $(top_srcdir)/m4/filemode.m4 $(top_srcdir)/m4/filenamecat.m4 \
- $(top_srcdir)/m4/flexmember.m4 $(top_srcdir)/m4/fnmatch.m4 \
- $(top_srcdir)/m4/fpending.m4 $(top_srcdir)/m4/fprintftime.m4 \
- $(top_srcdir)/m4/free.m4 $(top_srcdir)/m4/fstypename.m4 \
- $(top_srcdir)/m4/fsusage.m4 $(top_srcdir)/m4/ftruncate.m4 \
- $(top_srcdir)/m4/fts.m4 $(top_srcdir)/m4/getaddrinfo.m4 \
- $(top_srcdir)/m4/getcwd-abort-bug.m4 \
- $(top_srcdir)/m4/getcwd-path-max.m4 $(top_srcdir)/m4/getcwd.m4 \
- $(top_srcdir)/m4/getdate.m4 $(top_srcdir)/m4/getdelim.m4 \
- $(top_srcdir)/m4/getgroups.m4 $(top_srcdir)/m4/gethostname.m4 \
- $(top_srcdir)/m4/gethrxtime.m4 $(top_srcdir)/m4/getline.m4 \
- $(top_srcdir)/m4/getloadavg.m4 $(top_srcdir)/m4/getndelim2.m4 \
- $(top_srcdir)/m4/getopt.m4 $(top_srcdir)/m4/getpagesize.m4 \
- $(top_srcdir)/m4/getpass.m4 $(top_srcdir)/m4/gettext.m4 \
- $(top_srcdir)/m4/gettime.m4 $(top_srcdir)/m4/gettimeofday.m4 \
- $(top_srcdir)/m4/getugroups.m4 \
- $(top_srcdir)/m4/getusershell.m4 $(top_srcdir)/m4/glibc21.m4 \
- $(top_srcdir)/m4/gnulib-common.m4 \
- $(top_srcdir)/m4/gnulib-comp.m4 \
- $(top_srcdir)/m4/group-member.m4 \
- $(top_srcdir)/m4/hard-locale.m4 $(top_srcdir)/m4/hash.m4 \
- $(top_srcdir)/m4/host-os.m4 $(top_srcdir)/m4/human.m4 \
- $(top_srcdir)/m4/i-ring.m4 $(top_srcdir)/m4/iconv.m4 \
- $(top_srcdir)/m4/idcache.m4 $(top_srcdir)/m4/inet_ntop.m4 \
- $(top_srcdir)/m4/inline.m4 $(top_srcdir)/m4/intmax_t.m4 \
- $(top_srcdir)/m4/inttostr.m4 $(top_srcdir)/m4/inttypes-pri.m4 \
- $(top_srcdir)/m4/inttypes.m4 $(top_srcdir)/m4/inttypes_h.m4 \
- $(top_srcdir)/m4/isapipe.m4 $(top_srcdir)/m4/jm-macros.m4 \
- $(top_srcdir)/m4/jm-winsz1.m4 $(top_srcdir)/m4/jm-winsz2.m4 \
- $(top_srcdir)/m4/lchmod.m4 $(top_srcdir)/m4/lchown.m4 \
- $(top_srcdir)/m4/lib-check.m4 $(top_srcdir)/m4/lib-ignore.m4 \
- $(top_srcdir)/m4/lib-ld.m4 $(top_srcdir)/m4/lib-link.m4 \
- $(top_srcdir)/m4/lib-prefix.m4 $(top_srcdir)/m4/link-follow.m4 \
- $(top_srcdir)/m4/localcharset.m4 \
- $(top_srcdir)/m4/long-options.m4 \
- $(top_srcdir)/m4/longdouble.m4 $(top_srcdir)/m4/longlong.m4 \
- $(top_srcdir)/m4/ls-mntd-fs.m4 $(top_srcdir)/m4/lstat.m4 \
- $(top_srcdir)/m4/mbchar.m4 $(top_srcdir)/m4/mbiter.m4 \
- $(top_srcdir)/m4/mbrtowc.m4 $(top_srcdir)/m4/mbscasecmp.m4 \
- $(top_srcdir)/m4/mbstate_t.m4 $(top_srcdir)/m4/mbswidth.m4 \
- $(top_srcdir)/m4/md5.m4 $(top_srcdir)/m4/memcasecmp.m4 \
- $(top_srcdir)/m4/memchr.m4 $(top_srcdir)/m4/memcmp.m4 \
- $(top_srcdir)/m4/memcoll.m4 $(top_srcdir)/m4/memcpy.m4 \
- $(top_srcdir)/m4/memmove.m4 $(top_srcdir)/m4/mempcpy.m4 \
- $(top_srcdir)/m4/memrchr.m4 $(top_srcdir)/m4/memset.m4 \
- $(top_srcdir)/m4/memxfrm.m4 $(top_srcdir)/m4/mkancesdirs.m4 \
- $(top_srcdir)/m4/mkdir-p.m4 $(top_srcdir)/m4/mkdir-slash.m4 \
- $(top_srcdir)/m4/mkstemp.m4 $(top_srcdir)/m4/mktime.m4 \
- $(top_srcdir)/m4/modechange.m4 $(top_srcdir)/m4/mountlist.m4 \
- $(top_srcdir)/m4/mpsort.m4 $(top_srcdir)/m4/nanosleep.m4 \
- $(top_srcdir)/m4/netinet_in_h.m4 $(top_srcdir)/m4/nls.m4 \
- $(top_srcdir)/m4/openat.m4 $(top_srcdir)/m4/pathmax.m4 \
- $(top_srcdir)/m4/perl.m4 $(top_srcdir)/m4/physmem.m4 \
- $(top_srcdir)/m4/po.m4 $(top_srcdir)/m4/posixtm.m4 \
- $(top_srcdir)/m4/posixver.m4 $(top_srcdir)/m4/prereq.m4 \
- $(top_srcdir)/m4/progtest.m4 $(top_srcdir)/m4/putenv.m4 \
- $(top_srcdir)/m4/quote.m4 $(top_srcdir)/m4/quotearg.m4 \
- $(top_srcdir)/m4/randint.m4 $(top_srcdir)/m4/randperm.m4 \
- $(top_srcdir)/m4/randread.m4 $(top_srcdir)/m4/readlink.m4 \
- $(top_srcdir)/m4/readtokens.m4 $(top_srcdir)/m4/readutmp.m4 \
- $(top_srcdir)/m4/regex.m4 \
- $(top_srcdir)/m4/rename-dest-slash.m4 \
- $(top_srcdir)/m4/rename.m4 $(top_srcdir)/m4/rmdir-errno.m4 \
- $(top_srcdir)/m4/rmdir.m4 $(top_srcdir)/m4/root-dev-ino.m4 \
- $(top_srcdir)/m4/rpmatch.m4 $(top_srcdir)/m4/safe-read.m4 \
- $(top_srcdir)/m4/safe-write.m4 $(top_srcdir)/m4/same.m4 \
- $(top_srcdir)/m4/save-cwd.m4 $(top_srcdir)/m4/savedir.m4 \
- $(top_srcdir)/m4/savewd.m4 $(top_srcdir)/m4/setenv.m4 \
- $(top_srcdir)/m4/settime.m4 $(top_srcdir)/m4/sha1.m4 \
- $(top_srcdir)/m4/sha256.m4 $(top_srcdir)/m4/sha512.m4 \
- $(top_srcdir)/m4/sig2str.m4 $(top_srcdir)/m4/snprintf.m4 \
- $(top_srcdir)/m4/socklen.m4 $(top_srcdir)/m4/sockpfaf.m4 \
- $(top_srcdir)/m4/ssize_t.m4 $(top_srcdir)/m4/st_dm_mode.m4 \
- $(top_srcdir)/m4/stat-prog.m4 $(top_srcdir)/m4/stat-time.m4 \
- $(top_srcdir)/m4/stdarg.m4 $(top_srcdir)/m4/stdbool.m4 \
- $(top_srcdir)/m4/stdint.m4 $(top_srcdir)/m4/stdint_h.m4 \
- $(top_srcdir)/m4/stdio-safer.m4 $(top_srcdir)/m4/stdio_h.m4 \
- $(top_srcdir)/m4/stdlib-safer.m4 $(top_srcdir)/m4/stdlib_h.m4 \
- $(top_srcdir)/m4/stpcpy.m4 $(top_srcdir)/m4/strcspn.m4 \
- $(top_srcdir)/m4/strdup.m4 $(top_srcdir)/m4/strftime.m4 \
- $(top_srcdir)/m4/string_h.m4 $(top_srcdir)/m4/strndup.m4 \
- $(top_srcdir)/m4/strnlen.m4 $(top_srcdir)/m4/strnumcmp.m4 \
- $(top_srcdir)/m4/strpbrk.m4 $(top_srcdir)/m4/strtod.m4 \
- $(top_srcdir)/m4/strtoimax.m4 $(top_srcdir)/m4/strtol.m4 \
- $(top_srcdir)/m4/strtoll.m4 $(top_srcdir)/m4/strtoul.m4 \
- $(top_srcdir)/m4/strtoull.m4 $(top_srcdir)/m4/strtoumax.m4 \
- $(top_srcdir)/m4/strverscmp.m4 \
- $(top_srcdir)/m4/sys_socket_h.m4 \
- $(top_srcdir)/m4/sys_stat_h.m4 $(top_srcdir)/m4/sys_time_h.m4 \
- $(top_srcdir)/m4/tempname.m4 $(top_srcdir)/m4/time_h.m4 \
- $(top_srcdir)/m4/time_r.m4 $(top_srcdir)/m4/timespec.m4 \
- $(top_srcdir)/m4/tm_gmtoff.m4 $(top_srcdir)/m4/tzset.m4 \
- $(top_srcdir)/m4/unicodeio.m4 $(top_srcdir)/m4/unistd-safer.m4 \
- $(top_srcdir)/m4/unistd_h.m4 $(top_srcdir)/m4/unlink-busy.m4 \
- $(top_srcdir)/m4/unlinkdir.m4 $(top_srcdir)/m4/unlocked-io.m4 \
- $(top_srcdir)/m4/uptime.m4 $(top_srcdir)/m4/userspec.m4 \
- $(top_srcdir)/m4/utimbuf.m4 $(top_srcdir)/m4/utime.m4 \
- $(top_srcdir)/m4/utimecmp.m4 $(top_srcdir)/m4/utimens.m4 \
- $(top_srcdir)/m4/utimes-null.m4 $(top_srcdir)/m4/utimes.m4 \
- $(top_srcdir)/m4/vasnprintf.m4 $(top_srcdir)/m4/vasprintf.m4 \
- $(top_srcdir)/m4/wchar.m4 $(top_srcdir)/m4/wchar_t.m4 \
- $(top_srcdir)/m4/wctype.m4 $(top_srcdir)/m4/wcwidth.m4 \
- $(top_srcdir)/m4/wint_t.m4 $(top_srcdir)/m4/xalloc.m4 \
- $(top_srcdir)/m4/xfts.m4 $(top_srcdir)/m4/xgetcwd.m4 \
- $(top_srcdir)/m4/xnanosleep.m4 $(top_srcdir)/m4/xstrndup.m4 \
- $(top_srcdir)/m4/xstrtod.m4 $(top_srcdir)/m4/xstrtol.m4 \
- $(top_srcdir)/m4/yesno.m4 $(top_srcdir)/configure.ac
-am__configure_deps = $(am__aclocal_m4_deps) $(CONFIGURE_DEPENDENCIES) \
- $(ACLOCAL_M4)
-mkinstalldirs = $(install_sh) -d
-CONFIG_HEADER = $(top_builddir)/lib/config.h
-CONFIG_CLEAN_FILES =
-SOURCES =
-DIST_SOURCES =
-DISTFILES = $(DIST_COMMON) $(DIST_SOURCES) $(TEXINFOS) $(EXTRA_DIST)
-ABSOLUTE_DIRENT_H = @ABSOLUTE_DIRENT_H@
-ABSOLUTE_FCNTL_H = @ABSOLUTE_FCNTL_H@
-ABSOLUTE_INTTYPES_H = @ABSOLUTE_INTTYPES_H@
-ABSOLUTE_NETINET_IN_H = @ABSOLUTE_NETINET_IN_H@
-ABSOLUTE_STDINT_H = @ABSOLUTE_STDINT_H@
-ABSOLUTE_STDIO_H = @ABSOLUTE_STDIO_H@
-ABSOLUTE_STDLIB_H = @ABSOLUTE_STDLIB_H@
-ABSOLUTE_STRING_H = @ABSOLUTE_STRING_H@
-ABSOLUTE_SYS_SOCKET_H = @ABSOLUTE_SYS_SOCKET_H@
-ABSOLUTE_SYS_STAT_H = @ABSOLUTE_SYS_STAT_H@
-ABSOLUTE_SYS_TIME_H = @ABSOLUTE_SYS_TIME_H@
-ABSOLUTE_TIME_H = @ABSOLUTE_TIME_H@
-ABSOLUTE_UNISTD_H = @ABSOLUTE_UNISTD_H@
-ABSOLUTE_WCHAR_H = @ABSOLUTE_WCHAR_H@
-ABSOLUTE_WCTYPE_H = @ABSOLUTE_WCTYPE_H@
-ACLOCAL = @ACLOCAL@
-ALLOCA = @ALLOCA@
-ALLOCA_H = @ALLOCA_H@
-AMTAR = @AMTAR@
-ARPA_INET_H = @ARPA_INET_H@
-AUTOCONF = @AUTOCONF@
-AUTOHEADER = @AUTOHEADER@
-AUTOMAKE = @AUTOMAKE@
-AWK = @AWK@
-BITSIZEOF_PTRDIFF_T = @BITSIZEOF_PTRDIFF_T@
-BITSIZEOF_SIG_ATOMIC_T = @BITSIZEOF_SIG_ATOMIC_T@
-BITSIZEOF_SIZE_T = @BITSIZEOF_SIZE_T@
-BITSIZEOF_WCHAR_T = @BITSIZEOF_WCHAR_T@
-BITSIZEOF_WINT_T = @BITSIZEOF_WINT_T@
-CC = @CC@
-CCDEPMODE = @CCDEPMODE@
-CFLAGS = @CFLAGS@
-CPP = @CPP@
-CPPFLAGS = @CPPFLAGS@
-CYGPATH_W = @CYGPATH_W@
-DEFAULT_POSIX2_VERSION = @DEFAULT_POSIX2_VERSION@
-DEFS = @DEFS@
-DEPDIR = @DEPDIR@
-DF_PROG = @DF_PROG@
-DIRENT_H = @DIRENT_H@
-ECHO_C = @ECHO_C@
-ECHO_N = @ECHO_N@
-ECHO_T = @ECHO_T@
-EGREP = @EGREP@
-EOVERFLOW = @EOVERFLOW@
-EXEEXT = @EXEEXT@
-FCNTL_H = @FCNTL_H@
-FNMATCH_H = @FNMATCH_H@
-GETLOADAVG_LIBS = @GETLOADAVG_LIBS@
-GETOPT_H = @GETOPT_H@
-GLIBC21 = @GLIBC21@
-GMSGFMT = @GMSGFMT@
-GMSGFMT_015 = @GMSGFMT_015@
-GNULIB_CHOWN = @GNULIB_CHOWN@
-GNULIB_DUP2 = @GNULIB_DUP2@
-GNULIB_FCHDIR = @GNULIB_FCHDIR@
-GNULIB_FPRINTF_POSIX = @GNULIB_FPRINTF_POSIX@
-GNULIB_FTRUNCATE = @GNULIB_FTRUNCATE@
-GNULIB_GETCWD = @GNULIB_GETCWD@
-GNULIB_GETLOGIN_R = @GNULIB_GETLOGIN_R@
-GNULIB_GETSUBOPT = @GNULIB_GETSUBOPT@
-GNULIB_IMAXABS = @GNULIB_IMAXABS@
-GNULIB_IMAXDIV = @GNULIB_IMAXDIV@
-GNULIB_MBSCASECMP = @GNULIB_MBSCASECMP@
-GNULIB_MBSCASESTR = @GNULIB_MBSCASESTR@
-GNULIB_MBSCHR = @GNULIB_MBSCHR@
-GNULIB_MBSCSPN = @GNULIB_MBSCSPN@
-GNULIB_MBSLEN = @GNULIB_MBSLEN@
-GNULIB_MBSNCASECMP = @GNULIB_MBSNCASECMP@
-GNULIB_MBSPBRK = @GNULIB_MBSPBRK@
-GNULIB_MBSPCASECMP = @GNULIB_MBSPCASECMP@
-GNULIB_MBSRCHR = @GNULIB_MBSRCHR@
-GNULIB_MBSSEP = @GNULIB_MBSSEP@
-GNULIB_MBSSPN = @GNULIB_MBSSPN@
-GNULIB_MBSSTR = @GNULIB_MBSSTR@
-GNULIB_MBSTOK_R = @GNULIB_MBSTOK_R@
-GNULIB_MEMMEM = @GNULIB_MEMMEM@
-GNULIB_MEMPCPY = @GNULIB_MEMPCPY@
-GNULIB_MEMRCHR = @GNULIB_MEMRCHR@
-GNULIB_MKDTEMP = @GNULIB_MKDTEMP@
-GNULIB_MKSTEMP = @GNULIB_MKSTEMP@
-GNULIB_PRINTF_POSIX = @GNULIB_PRINTF_POSIX@
-GNULIB_READLINK = @GNULIB_READLINK@
-GNULIB_SNPRINTF = @GNULIB_SNPRINTF@
-GNULIB_SPRINTF_POSIX = @GNULIB_SPRINTF_POSIX@
-GNULIB_STPCPY = @GNULIB_STPCPY@
-GNULIB_STPNCPY = @GNULIB_STPNCPY@
-GNULIB_STRCASESTR = @GNULIB_STRCASESTR@
-GNULIB_STRCHRNUL = @GNULIB_STRCHRNUL@
-GNULIB_STRDUP = @GNULIB_STRDUP@
-GNULIB_STRNDUP = @GNULIB_STRNDUP@
-GNULIB_STRNLEN = @GNULIB_STRNLEN@
-GNULIB_STRPBRK = @GNULIB_STRPBRK@
-GNULIB_STRSEP = @GNULIB_STRSEP@
-GNULIB_STRTOIMAX = @GNULIB_STRTOIMAX@
-GNULIB_STRTOK_R = @GNULIB_STRTOK_R@
-GNULIB_STRTOUMAX = @GNULIB_STRTOUMAX@
-GNULIB_VFPRINTF_POSIX = @GNULIB_VFPRINTF_POSIX@
-GNULIB_VPRINTF_POSIX = @GNULIB_VPRINTF_POSIX@
-GNULIB_VSNPRINTF = @GNULIB_VSNPRINTF@
-GNULIB_VSPRINTF_POSIX = @GNULIB_VSPRINTF_POSIX@
-GNU_PACKAGE = @GNU_PACKAGE@
-GREP = @GREP@
-HAVE_DECL_GETLOGIN_R = @HAVE_DECL_GETLOGIN_R@
-HAVE_DECL_IMAXABS = @HAVE_DECL_IMAXABS@
-HAVE_DECL_IMAXDIV = @HAVE_DECL_IMAXDIV@
-HAVE_DECL_MEMMEM = @HAVE_DECL_MEMMEM@
-HAVE_DECL_MEMRCHR = @HAVE_DECL_MEMRCHR@
-HAVE_DECL_SNPRINTF = @HAVE_DECL_SNPRINTF@
-HAVE_DECL_STRDUP = @HAVE_DECL_STRDUP@
-HAVE_DECL_STRNCASECMP = @HAVE_DECL_STRNCASECMP@
-HAVE_DECL_STRNDUP = @HAVE_DECL_STRNDUP@
-HAVE_DECL_STRNLEN = @HAVE_DECL_STRNLEN@
-HAVE_DECL_STRTOIMAX = @HAVE_DECL_STRTOIMAX@
-HAVE_DECL_STRTOK_R = @HAVE_DECL_STRTOK_R@
-HAVE_DECL_STRTOUMAX = @HAVE_DECL_STRTOUMAX@
-HAVE_DECL_VSNPRINTF = @HAVE_DECL_VSNPRINTF@
-HAVE_DUP2 = @HAVE_DUP2@
-HAVE_FTRUNCATE = @HAVE_FTRUNCATE@
-HAVE_GETSUBOPT = @HAVE_GETSUBOPT@
-HAVE_INTTYPES_H = @HAVE_INTTYPES_H@
-HAVE_LONG_LONG_INT = @HAVE_LONG_LONG_INT@
-HAVE_MEMPCPY = @HAVE_MEMPCPY@
-HAVE_MKDTEMP = @HAVE_MKDTEMP@
-HAVE_NETINET_IN_H = @HAVE_NETINET_IN_H@
-HAVE_READLINK = @HAVE_READLINK@
-HAVE_SIGNED_SIG_ATOMIC_T = @HAVE_SIGNED_SIG_ATOMIC_T@
-HAVE_SIGNED_WCHAR_T = @HAVE_SIGNED_WCHAR_T@
-HAVE_SIGNED_WINT_T = @HAVE_SIGNED_WINT_T@
-HAVE_STDINT_H = @HAVE_STDINT_H@
-HAVE_STPCPY = @HAVE_STPCPY@
-HAVE_STPNCPY = @HAVE_STPNCPY@
-HAVE_STRCASECMP = @HAVE_STRCASECMP@
-HAVE_STRCASESTR = @HAVE_STRCASESTR@
-HAVE_STRCHRNUL = @HAVE_STRCHRNUL@
-HAVE_STRNDUP = @HAVE_STRNDUP@
-HAVE_STRPBRK = @HAVE_STRPBRK@
-HAVE_STRSEP = @HAVE_STRSEP@
-HAVE_STRUCT_TIMEVAL = @HAVE_STRUCT_TIMEVAL@
-HAVE_SYS_BITYPES_H = @HAVE_SYS_BITYPES_H@
-HAVE_SYS_INTTYPES_H = @HAVE_SYS_INTTYPES_H@
-HAVE_SYS_SOCKET_H = @HAVE_SYS_SOCKET_H@
-HAVE_SYS_TIME_H = @HAVE_SYS_TIME_H@
-HAVE_SYS_TYPES_H = @HAVE_SYS_TYPES_H@
-HAVE_UNISTD_H = @HAVE_UNISTD_H@
-HAVE_UNSIGNED_LONG_LONG_INT = @HAVE_UNSIGNED_LONG_LONG_INT@
-HAVE_WCTYPE_H = @HAVE_WCTYPE_H@
-HAVE_WINSOCK2_H = @HAVE_WINSOCK2_H@
-HAVE_WINT_T = @HAVE_WINT_T@
-HAVE_WS2TCPIP_H = @HAVE_WS2TCPIP_H@
-HAVE__BOOL = @HAVE__BOOL@
-HELP2MAN = @HELP2MAN@
-INSTALL = @INSTALL@
-INSTALL_DATA = @INSTALL_DATA@
-INSTALL_PROGRAM = @INSTALL_PROGRAM@
-INSTALL_SCRIPT = @INSTALL_SCRIPT@
-INSTALL_STRIP_PROGRAM = @INSTALL_STRIP_PROGRAM@
-INTLLIBS = @INTLLIBS@
-INTL_MACOSX_LIBS = @INTL_MACOSX_LIBS@
-INTTYPES_H = @INTTYPES_H@
-KMEM_GROUP = @KMEM_GROUP@
-LDFLAGS = @LDFLAGS@
-LIBCOREUTILS_LIBDEPS = @LIBCOREUTILS_LIBDEPS@
-LIBCOREUTILS_LTLIBDEPS = @LIBCOREUTILS_LTLIBDEPS@
-LIBICONV = @LIBICONV@
-LIBINTL = @LIBINTL@
-LIBOBJS = @LIBOBJS@
-LIBS = @LIBS@
-LIB_ACL = @LIB_ACL@
-LIB_ACL_TRIVIAL = @LIB_ACL_TRIVIAL@
-LIB_CLOCK_GETTIME = @LIB_CLOCK_GETTIME@
-LIB_CRYPT = @LIB_CRYPT@
-LIB_EACCESS = @LIB_EACCESS@
-LIB_FDATASYNC = @LIB_FDATASYNC@
-LIB_GETHRXTIME = @LIB_GETHRXTIME@
-LIB_NANOSLEEP = @LIB_NANOSLEEP@
-LN_S = @LN_S@
-LTLIBICONV = @LTLIBICONV@
-LTLIBINTL = @LTLIBINTL@
-LTLIBOBJS = @LTLIBOBJS@
-MAKEINFO = @MAKEINFO@
-MAN = @MAN@
-MKDIR_P = @MKDIR_P@
-MSGFMT = @MSGFMT@
-MSGFMT_015 = @MSGFMT_015@
-MSGMERGE = @MSGMERGE@
-NEED_SETGID = @NEED_SETGID@
-NETINET_IN_H = @NETINET_IN_H@
-OBJEXT = @OBJEXT@
-OPTIONAL_BIN_PROGS = @OPTIONAL_BIN_PROGS@
-PACKAGE = @PACKAGE@
-PACKAGE_BUGREPORT = @PACKAGE_BUGREPORT@
-PACKAGE_NAME = @PACKAGE_NAME@
-PACKAGE_STRING = @PACKAGE_STRING@
-PACKAGE_TARNAME = @PACKAGE_TARNAME@
-PACKAGE_VERSION = @PACKAGE_VERSION@
-PATH_SEPARATOR = @PATH_SEPARATOR@
-PERL = @PERL@
-POSUB = @POSUB@
-POW_LIB = @POW_LIB@
-PRIPTR_PREFIX = @PRIPTR_PREFIX@
-PRI_MACROS_BROKEN = @PRI_MACROS_BROKEN@
-PTRDIFF_T_SUFFIX = @PTRDIFF_T_SUFFIX@
-RANLIB = @RANLIB@
-REPLACE_CHOWN = @REPLACE_CHOWN@
-REPLACE_FCHDIR = @REPLACE_FCHDIR@
-REPLACE_FPRINTF = @REPLACE_FPRINTF@
-REPLACE_GETCWD = @REPLACE_GETCWD@
-REPLACE_GETTIMEOFDAY = @REPLACE_GETTIMEOFDAY@
-REPLACE_LOCALTIME_R = @REPLACE_LOCALTIME_R@
-REPLACE_MKSTEMP = @REPLACE_MKSTEMP@
-REPLACE_NANOSLEEP = @REPLACE_NANOSLEEP@
-REPLACE_PRINTF = @REPLACE_PRINTF@
-REPLACE_SNPRINTF = @REPLACE_SNPRINTF@
-REPLACE_SPRINTF = @REPLACE_SPRINTF@
-REPLACE_STRPTIME = @REPLACE_STRPTIME@
-REPLACE_TIMEGM = @REPLACE_TIMEGM@
-REPLACE_VFPRINTF = @REPLACE_VFPRINTF@
-REPLACE_VPRINTF = @REPLACE_VPRINTF@
-REPLACE_VSNPRINTF = @REPLACE_VSNPRINTF@
-REPLACE_VSPRINTF = @REPLACE_VSPRINTF@
-SEQ_LIBM = @SEQ_LIBM@
-SET_MAKE = @SET_MAKE@
-SHELL = @SHELL@
-SIG_ATOMIC_T_SUFFIX = @SIG_ATOMIC_T_SUFFIX@
-SIZE_T_SUFFIX = @SIZE_T_SUFFIX@
-STDBOOL_H = @STDBOOL_H@
-STDINT_H = @STDINT_H@
-STRIP = @STRIP@
-SYS_SOCKET_H = @SYS_SOCKET_H@
-SYS_STAT_H = @SYS_STAT_H@
-SYS_TIME_H = @SYS_TIME_H@
-SYS_TIME_H_DEFINES_STRUCT_TIMESPEC = @SYS_TIME_H_DEFINES_STRUCT_TIMESPEC@
-TIME_H_DEFINES_STRUCT_TIMESPEC = @TIME_H_DEFINES_STRUCT_TIMESPEC@
-U = @U@
-USE_NLS = @USE_NLS@
-VERSION = @VERSION@
-WCHAR_H = @WCHAR_H@
-WCHAR_T_SUFFIX = @WCHAR_T_SUFFIX@
-WCTYPE_H = @WCTYPE_H@
-WINT_T_SUFFIX = @WINT_T_SUFFIX@
-XGETTEXT = @XGETTEXT@
-XGETTEXT_015 = @XGETTEXT_015@
-YACC = @YACC@
-YFLAGS = @YFLAGS@
-abs_builddir = @abs_builddir@
-abs_srcdir = @abs_srcdir@
-abs_top_builddir = @abs_top_builddir@
-abs_top_srcdir = @abs_top_srcdir@
-ac_ct_CC = @ac_ct_CC@
-am__include = @am__include@
-am__leading_dot = @am__leading_dot@
-am__quote = @am__quote@
-am__tar = @am__tar@
-am__untar = @am__untar@
-bindir = @bindir@
-build = @build@
-build_alias = @build_alias@
-build_cpu = @build_cpu@
-build_os = @build_os@
-build_vendor = @build_vendor@
-builddir = @builddir@
-datadir = @datadir@
-datarootdir = @datarootdir@
-docdir = @docdir@
-dvidir = @dvidir@
-exec_prefix = @exec_prefix@
-gl_LIBOBJS = @gl_LIBOBJS@
-gl_LTLIBOBJS = @gl_LTLIBOBJS@
-host = @host@
-host_alias = @host_alias@
-host_cpu = @host_cpu@
-host_os = @host_os@
-host_vendor = @host_vendor@
-htmldir = @htmldir@
-includedir = @includedir@
-infodir = @infodir@
-install_sh = @install_sh@
-libdir = @libdir@
-libexecdir = @libexecdir@
-localedir = @localedir@
-localstatedir = @localstatedir@
-mandir = @mandir@
-mkdir_p = @mkdir_p@
-oldincludedir = @oldincludedir@
-pdfdir = @pdfdir@
-prefix = @prefix@
-program_transform_name = @program_transform_name@
-psdir = @psdir@
-sbindir = @sbindir@
-sharedstatedir = @sharedstatedir@
-srcdir = @srcdir@
-sysconfdir = @sysconfdir@
-target_alias = @target_alias@
-top_builddir = @top_builddir@
-top_srcdir = @top_srcdir@
-TESTS = row-col-1 basic-1
-EXTRA_DIST = $(TESTS)
-TESTS_ENVIRONMENT = \
- CU_TEST_NAME=`basename $(abs_srcdir)`,$$tst \
- PATH="$(VG_PATH_PREFIX)`pwd`/../../src$(PATH_SEPARATOR)$$PATH"
-
-all: all-am
-
-.SUFFIXES:
-$(srcdir)/Makefile.in: $(srcdir)/Makefile.am $(am__configure_deps)
- @for dep in $?; do \
- case '$(am__configure_deps)' in \
- *$$dep*) \
- cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh \
- && exit 0; \
- exit 1;; \
- esac; \
- done; \
- echo ' cd $(top_srcdir) && $(AUTOMAKE) --gnu tests/stty/Makefile'; \
- cd $(top_srcdir) && \
- $(AUTOMAKE) --gnu tests/stty/Makefile
-.PRECIOUS: Makefile
-Makefile: $(srcdir)/Makefile.in $(top_builddir)/config.status
- @case '$?' in \
- *config.status*) \
- cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh;; \
- *) \
- echo ' cd $(top_builddir) && $(SHELL) ./config.status $(subdir)/$@ $(am__depfiles_maybe)'; \
- cd $(top_builddir) && $(SHELL) ./config.status $(subdir)/$@ $(am__depfiles_maybe);; \
- esac;
-
-$(top_builddir)/config.status: $(top_srcdir)/configure $(CONFIG_STATUS_DEPENDENCIES)
- cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh
-
-$(top_srcdir)/configure: $(am__configure_deps)
- cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh
-$(ACLOCAL_M4): $(am__aclocal_m4_deps)
- cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh
-tags: TAGS
-TAGS:
-
-ctags: CTAGS
-CTAGS:
-
-
-check-TESTS: $(TESTS)
- @failed=0; all=0; xfail=0; xpass=0; skip=0; ws='[ ]'; \
- srcdir=$(srcdir); export srcdir; \
- list=' $(TESTS) '; \
- if test -n "$$list"; then \
- for tst in $$list; do \
- if test -f ./$$tst; then dir=./; \
- elif test -f $$tst; then dir=; \
- else dir="$(srcdir)/"; fi; \
- if $(TESTS_ENVIRONMENT) $${dir}$$tst; then \
- all=`expr $$all + 1`; \
- case " $(XFAIL_TESTS) " in \
- *$$ws$$tst$$ws*) \
- xpass=`expr $$xpass + 1`; \
- failed=`expr $$failed + 1`; \
- echo "XPASS: $$tst"; \
- ;; \
- *) \
- echo "PASS: $$tst"; \
- ;; \
- esac; \
- elif test $$? -ne 77; then \
- all=`expr $$all + 1`; \
- case " $(XFAIL_TESTS) " in \
- *$$ws$$tst$$ws*) \
- xfail=`expr $$xfail + 1`; \
- echo "XFAIL: $$tst"; \
- ;; \
- *) \
- failed=`expr $$failed + 1`; \
- echo "FAIL: $$tst"; \
- ;; \
- esac; \
- else \
- skip=`expr $$skip + 1`; \
- echo "SKIP: $$tst"; \
- fi; \
- done; \
- if test "$$failed" -eq 0; then \
- if test "$$xfail" -eq 0; then \
- banner="All $$all tests passed"; \
- else \
- banner="All $$all tests behaved as expected ($$xfail expected failures)"; \
- fi; \
- else \
- if test "$$xpass" -eq 0; then \
- banner="$$failed of $$all tests failed"; \
- else \
- banner="$$failed of $$all tests did not behave as expected ($$xpass unexpected passes)"; \
- fi; \
- fi; \
- dashes="$$banner"; \
- skipped=""; \
- if test "$$skip" -ne 0; then \
- skipped="($$skip tests were not run)"; \
- test `echo "$$skipped" | wc -c` -le `echo "$$banner" | wc -c` || \
- dashes="$$skipped"; \
- fi; \
- report=""; \
- if test "$$failed" -ne 0 && test -n "$(PACKAGE_BUGREPORT)"; then \
- report="Please report to $(PACKAGE_BUGREPORT)"; \
- test `echo "$$report" | wc -c` -le `echo "$$banner" | wc -c` || \
- dashes="$$report"; \
- fi; \
- dashes=`echo "$$dashes" | sed s/./=/g`; \
- echo "$$dashes"; \
- echo "$$banner"; \
- test -z "$$skipped" || echo "$$skipped"; \
- test -z "$$report" || echo "$$report"; \
- echo "$$dashes"; \
- test "$$failed" -eq 0; \
- else :; fi
-
-distdir: $(DISTFILES)
- @srcdirstrip=`echo "$(srcdir)" | sed 's/[].[^$$\\*]/\\\\&/g'`; \
- topsrcdirstrip=`echo "$(top_srcdir)" | sed 's/[].[^$$\\*]/\\\\&/g'`; \
- list='$(DISTFILES)'; \
- dist_files=`for file in $$list; do echo $$file; done | \
- sed -e "s|^$$srcdirstrip/||;t" \
- -e "s|^$$topsrcdirstrip/|$(top_builddir)/|;t"`; \
- case $$dist_files in \
- */*) $(MKDIR_P) `echo "$$dist_files" | \
- sed '/\//!d;s|^|$(distdir)/|;s,/[^/]*$$,,' | \
- sort -u` ;; \
- esac; \
- for file in $$dist_files; do \
- if test -f $$file || test -d $$file; then d=.; else d=$(srcdir); fi; \
- if test -d $$d/$$file; then \
- dir=`echo "/$$file" | sed -e 's,/[^/]*$$,,'`; \
- if test -d $(srcdir)/$$file && test $$d != $(srcdir); then \
- cp -pR $(srcdir)/$$file $(distdir)$$dir || exit 1; \
- fi; \
- cp -pR $$d/$$file $(distdir)$$dir || exit 1; \
- else \
- test -f $(distdir)/$$file \
- || cp -p $$d/$$file $(distdir)/$$file \
- || exit 1; \
- fi; \
- done
-check-am: all-am
- $(MAKE) $(AM_MAKEFLAGS) check-TESTS
-check: check-am
-all-am: Makefile
-installdirs:
-install: install-am
-install-exec: install-exec-am
-install-data: install-data-am
-uninstall: uninstall-am
-
-install-am: all-am
- @$(MAKE) $(AM_MAKEFLAGS) install-exec-am install-data-am
-
-installcheck: installcheck-am
-install-strip:
- $(MAKE) $(AM_MAKEFLAGS) INSTALL_PROGRAM="$(INSTALL_STRIP_PROGRAM)" \
- install_sh_PROGRAM="$(INSTALL_STRIP_PROGRAM)" INSTALL_STRIP_FLAG=-s \
- `test -z '$(STRIP)' || \
- echo "INSTALL_PROGRAM_ENV=STRIPPROG='$(STRIP)'"` install
-mostlyclean-generic:
-
-clean-generic:
-
-distclean-generic:
- -test -z "$(CONFIG_CLEAN_FILES)" || rm -f $(CONFIG_CLEAN_FILES)
-
-maintainer-clean-generic:
- @echo "This command is intended for maintainers to use"
- @echo "it deletes files that may require special tools to rebuild."
-clean: clean-am
-
-clean-am: clean-generic mostlyclean-am
-
-distclean: distclean-am
- -rm -f Makefile
-distclean-am: clean-am distclean-generic
-
-dvi: dvi-am
-
-dvi-am:
-
-html: html-am
-
-info: info-am
-
-info-am:
-
-install-data-am:
-
-install-dvi: install-dvi-am
-
-install-exec-am:
-
-install-html: install-html-am
-
-install-info: install-info-am
-
-install-man:
-
-install-pdf: install-pdf-am
-
-install-ps: install-ps-am
-
-installcheck-am:
-
-maintainer-clean: maintainer-clean-am
- -rm -f Makefile
-maintainer-clean-am: distclean-am maintainer-clean-generic
-
-mostlyclean: mostlyclean-am
-
-mostlyclean-am: mostlyclean-generic
-
-pdf: pdf-am
-
-pdf-am:
-
-ps: ps-am
-
-ps-am:
-
-uninstall-am:
-
-.MAKE: install-am install-strip
-
-.PHONY: all all-am check check-TESTS check-am clean clean-generic \
- distclean distclean-generic distdir dvi dvi-am html html-am \
- info info-am install install-am install-data install-data-am \
- install-dvi install-dvi-am install-exec install-exec-am \
- install-html install-html-am install-info install-info-am \
- install-man install-pdf install-pdf-am install-ps \
- install-ps-am install-strip installcheck installcheck-am \
- installdirs maintainer-clean maintainer-clean-generic \
- mostlyclean mostlyclean-generic pdf pdf-am ps ps-am uninstall \
- uninstall-am
-
-# Tell versions [3.59,3.63) of GNU make to not export all variables.
-# Otherwise a system limit (for SysV at least) may be exceeded.
-.NOEXPORT:
diff --git a/tests/stty/basic-1 b/tests/stty/basic-1
deleted file mode 100755
index 5af1ab3..0000000
--- a/tests/stty/basic-1
+++ /dev/null
@@ -1,106 +0,0 @@
-#! /bin/sh
-# Make sure stty can parse most of its options.
-
-# Copyright (C) 1998, 1999, 2000, 2001, 2002, 2003, 2004, 2006 Free
-# Software Foundation, Inc.
-
-# This program is free software; you can redistribute it and/or modify
-# it under the terms of the GNU General Public License as published by
-# the Free Software Foundation; either version 2 of the License, or
-# (at your option) any later version.
-
-# This program is distributed in the hope that it will be useful,
-# but WITHOUT ANY WARRANTY; without even the implied warranty of
-# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
-# GNU General Public License for more details.
-
-# You should have received a copy of the GNU General Public License
-# along with this program; if not, write to the Free Software
-# Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA
-# 02110-1301, USA.
-
-if test "$VERBOSE" = yes; then
- set -x
- stty --version
-fi
-
-# Make sure there's a tty on stdin.
-. $srcdir/../input-tty
-
-# The following list of reversible options was generated with
-# grep -w REV stty.c|sed -n '/^ {"/{s//REV_/;s/".*/=1/;p;}'|fmt
-REV_parenb=1 REV_parodd=1 REV_hupcl=1 REV_hup=1 REV_cstopb=1 REV_cread=1
-REV_clocal=1 REV_crtscts=1 REV_ignbrk=1 REV_brkint=1 REV_ignpar=1
-REV_parmrk=1 REV_inpck=1 REV_istrip=1 REV_inlcr=1 REV_igncr=1 REV_icrnl=1
-REV_ixon=1 REV_ixoff=1 REV_tandem=1 REV_iuclc=1 REV_ixany=1 REV_imaxbel=1
-REV_opost=1 REV_olcuc=1 REV_ocrnl=1 REV_onlcr=1 REV_onocr=1 REV_onlret=1
-REV_ofill=1 REV_ofdel=1 REV_isig=1 REV_icanon=1 REV_iexten=1 REV_echo=1
-REV_echoe=1 REV_crterase=1 REV_echok=1 REV_echonl=1 REV_noflsh=1
-REV_xcase=1 REV_tostop=1 REV_echoprt=1 REV_prterase=1 REV_echoctl=1
-REV_ctlecho=1 REV_echoke=1 REV_crtkill=1 REV_evenp=1 REV_parity=1
-REV_oddp=1 REV_nl=1 REV_cooked=1 REV_raw=1 REV_pass8=1 REV_litout=1
-REV_cbreak=1 REV_decctlq=1 REV_tabs=1 REV_lcase=1 REV_LCASE=1
-
-fail=0
-
-saved_state=.saved-state
-stty --save > $saved_state || fail=1
-stty `cat $saved_state` || fail=1
-
-# This would segfault prior to sh-utils-2.0j.
-stty erase - || fail=1
-
-# These would improperly ignore invalid options through coreutils 5.2.1.
-stty -F 2>/dev/null && fail=1
-stty -raw -F no/such/file 2>/dev/null && fail=1
-stty -raw -a 2>/dev/null && fail=1
-
-# Build a list of all boolean options stty accepts on this system.
-# Don't depend on terminal width. Put each option on its own line,
-# remove all non-boolean ones, then remove any leading hyphens.
-sed_del='/^speed/d;/^rows/d;/^columns/d;/ = /d'
-options=`stty -a | tr -s ';' '\n' | sed "s/^ //;$sed_del;s/-//g"`
-
-# Take them one at a time, with and without the leading `-'.
-for opt in $options; do
- # `stty parenb' and `stty -parenb' fail with this message
- # stty: standard input: unable to perform all requested operations
- # on Linux 2.2.0-pre4 kernels, so skip those tests.
- test $opt = parenb && continue
- stty $opt || fail=1
-
- # Likewise, `stty -cread' would fail, so skip that, too.
- test $opt = cread && continue
- rev=`eval echo "\\\$REV_$opt"`
- if test -n "$rev"; then
- stty -$opt || { fail=1; echo -$opt; }
- fi
-done
-
-if test -n "$RUN_LONG_TESTS"; then
- # Take them in pairs.
- for opt1 in $options; do
- echo .|tr -d '\n'
- for opt2 in $options; do
-
- stty $opt1 $opt2 || fail=1
-
- rev1=`eval echo "\\\$REV_$opt1"`
- rev2=`eval echo "\\\$REV_$opt2"`
- if test -n "$rev1"; then
- stty -$opt1 $opt2 || fail=1
- fi
- if test -n "$rev2"; then
- stty $opt1 -$opt2 || fail=1
- fi
- if test "$rev1$rev2" = 11; then
- stty -$opt1 -$opt2 || fail=1
- fi
- done
- done
-fi
-
-stty `cat $saved_state`
-rm -f $saved_state
-
-exit $fail
diff --git a/tests/stty/row-col-1 b/tests/stty/row-col-1
deleted file mode 100755
index 83d34a7..0000000
--- a/tests/stty/row-col-1
+++ /dev/null
@@ -1,88 +0,0 @@
-#! /bin/sh
-# Test "stty" with rows and columns.
-
-# Copyright (C) 1998, 1999, 2000, 2001, 2003, 2004, 2005, 2006 Free
-# Software Foundation, Inc.
-
-# This program is free software; you can redistribute it and/or modify
-# it under the terms of the GNU General Public License as published by
-# the Free Software Foundation; either version 2 of the License, or
-# (at your option) any later version.
-
-# This program is distributed in the hope that it will be useful,
-# but WITHOUT ANY WARRANTY; without even the implied warranty of
-# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
-# GNU General Public License for more details.
-
-# You should have received a copy of the GNU General Public License
-# along with this program; if not, write to the Free Software
-# Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA
-# 02110-1301, USA.
-
-
-# This script takes no arguments.
-
-if test "$VERBOSE" = yes; then
- set -x
- stty --version
-fi
-
-# Setting this envvar to a very small value used to cause e.g., `stty size'
-# to generate slightly different output on certain systems.
-COLUMNS=80
-export COLUMNS
-
-# Make sure we get English-language behavior.
-# See the report about a possibly-related Solaris problem by Alexandre Peshansky
-# <http://lists.gnu.org/archive/html/bug-coreutils/2004-10/msg00035.html>.
-# Currently stty isn't localized, but it might be in the future.
-LC_ALL=C
-export LC_ALL
-
-# Make sure there's a tty on stdin.
-. $srcdir/../input-tty
-
-# Versions of GNU stty from shellutils-1.9.2c and earlier failed
-# tests #2 and #4 when run on SunOS 4.1.3.
-
-tests='
-1 rows_40_columns_80 40_80
-2 rows_1_columns_1 1_1
-3 rows_40_columns_80 40_80
-4 rows_1 1_80
-5 columns_1 1_1
-6 rows_40 40_1
-7 rows_1 1_1
-8 columns_80 1_80
-9 rows_30 30_80
-NA LAST NA
-'
-set $tests
-
-saved_size=`stty size` && test -n "$saved_size" \
- || { echo "$0: skipping this test: can't get window size" 1>&2;
- exit 77; exit; }
-
-fail=0
-while :; do
- test_name=$1
- args=$2
- expected_result="`echo $3|tr _ ' '`"
- test "$args" = empty && args=''
- test "x$args" = xLAST && break
- args=`echo x$args|tr _ ' '|sed 's/^x//'`
- if test "$VERBOSE" = yes; then
- # echo "testing \`stty $args; stty size\` = $expected_result ..."
- echo "test $test_name... " | tr -d '\n'
- fi
- stty $args || exit 1
- test x"`stty size 2> /dev/null`" = "x$expected_result" \
- && ok=ok || ok=FAIL fail=1
- test "$VERBOSE" = yes && echo $ok
- shift; shift; shift
-done
-
-set x $saved_size
-stty rows $2 columns $3 || exit 1
-
-exit $fail
diff --git a/tests/sum/Makefile.am b/tests/sum/Makefile.am
deleted file mode 100644
index 6b6cedd..0000000
--- a/tests/sum/Makefile.am
+++ /dev/null
@@ -1,13 +0,0 @@
-## Process this file with automake to produce Makefile.in -*-Makefile-*-.
-
-EXTRA_DIST = $(TESTS)
-
-TESTS_ENVIRONMENT = \
- top_srcdir=$(top_srcdir) \
- srcdir=$(srcdir) \
- PERL="$(PERL)" \
- CU_TEST_NAME=`basename $(abs_srcdir)`,$$tst \
- PATH="$(VG_PATH_PREFIX)`pwd`/../../src$(PATH_SEPARATOR)$$PATH" \
- PROG=sum
-
-TESTS = basic-1 sysv
diff --git a/tests/sum/Makefile.in b/tests/sum/Makefile.in
deleted file mode 100644
index 4501982..0000000
--- a/tests/sum/Makefile.in
+++ /dev/null
@@ -1,720 +0,0 @@
-# Makefile.in generated by automake 1.10 from Makefile.am.
-# @configure_input@
-
-# Copyright (C) 1994, 1995, 1996, 1997, 1998, 1999, 2000, 2001, 2002,
-# 2003, 2004, 2005, 2006 Free Software Foundation, Inc.
-# This Makefile.in is free software; the Free Software Foundation
-# gives unlimited permission to copy and/or distribute it,
-# with or without modifications, as long as this notice is preserved.
-
-# This program is distributed in the hope that it will be useful,
-# but WITHOUT ANY WARRANTY, to the extent permitted by law; without
-# even the implied warranty of MERCHANTABILITY or FITNESS FOR A
-# PARTICULAR PURPOSE.
-
-@SET_MAKE@
-VPATH = @srcdir@
-pkgdatadir = $(datadir)/@PACKAGE@
-pkglibdir = $(libdir)/@PACKAGE@
-pkgincludedir = $(includedir)/@PACKAGE@
-am__cd = CDPATH="$${ZSH_VERSION+.}$(PATH_SEPARATOR)" && cd
-install_sh_DATA = $(install_sh) -c -m 644
-install_sh_PROGRAM = $(install_sh) -c
-install_sh_SCRIPT = $(install_sh) -c
-INSTALL_HEADER = $(INSTALL_DATA)
-transform = $(program_transform_name)
-NORMAL_INSTALL = :
-PRE_INSTALL = :
-POST_INSTALL = :
-NORMAL_UNINSTALL = :
-PRE_UNINSTALL = :
-POST_UNINSTALL = :
-build_triplet = @build@
-host_triplet = @host@
-subdir = tests/sum
-DIST_COMMON = $(srcdir)/Makefile.am $(srcdir)/Makefile.in
-ACLOCAL_M4 = $(top_srcdir)/aclocal.m4
-am__aclocal_m4_deps = $(top_srcdir)/m4/absolute-header.m4 \
- $(top_srcdir)/m4/acl.m4 $(top_srcdir)/m4/alloca.m4 \
- $(top_srcdir)/m4/allocsa.m4 $(top_srcdir)/m4/argmatch.m4 \
- $(top_srcdir)/m4/arpa_inet_h.m4 $(top_srcdir)/m4/assert.m4 \
- $(top_srcdir)/m4/atexit.m4 $(top_srcdir)/m4/autobuild.m4 \
- $(top_srcdir)/m4/backupfile.m4 $(top_srcdir)/m4/base64.m4 \
- $(top_srcdir)/m4/bison.m4 $(top_srcdir)/m4/boottime.m4 \
- $(top_srcdir)/m4/c-strtod.m4 $(top_srcdir)/m4/calloc.m4 \
- $(top_srcdir)/m4/canon-host.m4 \
- $(top_srcdir)/m4/canonicalize.m4 \
- $(top_srcdir)/m4/chdir-long.m4 $(top_srcdir)/m4/check-decl.m4 \
- $(top_srcdir)/m4/chown.m4 $(top_srcdir)/m4/clock_time.m4 \
- $(top_srcdir)/m4/cloexec.m4 $(top_srcdir)/m4/close-stream.m4 \
- $(top_srcdir)/m4/closeout.m4 $(top_srcdir)/m4/codeset.m4 \
- $(top_srcdir)/m4/config-h.m4 $(top_srcdir)/m4/cycle-check.m4 \
- $(top_srcdir)/m4/d-ino.m4 $(top_srcdir)/m4/d-type.m4 \
- $(top_srcdir)/m4/dirfd.m4 $(top_srcdir)/m4/dirname.m4 \
- $(top_srcdir)/m4/dos.m4 $(top_srcdir)/m4/double-slash-root.m4 \
- $(top_srcdir)/m4/dup2.m4 $(top_srcdir)/m4/eealloc.m4 \
- $(top_srcdir)/m4/eoverflow.m4 $(top_srcdir)/m4/error.m4 \
- $(top_srcdir)/m4/euidaccess-stat.m4 \
- $(top_srcdir)/m4/euidaccess.m4 $(top_srcdir)/m4/exclude.m4 \
- $(top_srcdir)/m4/exitfail.m4 $(top_srcdir)/m4/extensions.m4 \
- $(top_srcdir)/m4/fchdir.m4 $(top_srcdir)/m4/fcntl-safer.m4 \
- $(top_srcdir)/m4/fcntl_h.m4 $(top_srcdir)/m4/fd-reopen.m4 \
- $(top_srcdir)/m4/file-type.m4 $(top_srcdir)/m4/fileblocks.m4 \
- $(top_srcdir)/m4/filemode.m4 $(top_srcdir)/m4/filenamecat.m4 \
- $(top_srcdir)/m4/flexmember.m4 $(top_srcdir)/m4/fnmatch.m4 \
- $(top_srcdir)/m4/fpending.m4 $(top_srcdir)/m4/fprintftime.m4 \
- $(top_srcdir)/m4/free.m4 $(top_srcdir)/m4/fstypename.m4 \
- $(top_srcdir)/m4/fsusage.m4 $(top_srcdir)/m4/ftruncate.m4 \
- $(top_srcdir)/m4/fts.m4 $(top_srcdir)/m4/getaddrinfo.m4 \
- $(top_srcdir)/m4/getcwd-abort-bug.m4 \
- $(top_srcdir)/m4/getcwd-path-max.m4 $(top_srcdir)/m4/getcwd.m4 \
- $(top_srcdir)/m4/getdate.m4 $(top_srcdir)/m4/getdelim.m4 \
- $(top_srcdir)/m4/getgroups.m4 $(top_srcdir)/m4/gethostname.m4 \
- $(top_srcdir)/m4/gethrxtime.m4 $(top_srcdir)/m4/getline.m4 \
- $(top_srcdir)/m4/getloadavg.m4 $(top_srcdir)/m4/getndelim2.m4 \
- $(top_srcdir)/m4/getopt.m4 $(top_srcdir)/m4/getpagesize.m4 \
- $(top_srcdir)/m4/getpass.m4 $(top_srcdir)/m4/gettext.m4 \
- $(top_srcdir)/m4/gettime.m4 $(top_srcdir)/m4/gettimeofday.m4 \
- $(top_srcdir)/m4/getugroups.m4 \
- $(top_srcdir)/m4/getusershell.m4 $(top_srcdir)/m4/glibc21.m4 \
- $(top_srcdir)/m4/gnulib-common.m4 \
- $(top_srcdir)/m4/gnulib-comp.m4 \
- $(top_srcdir)/m4/group-member.m4 \
- $(top_srcdir)/m4/hard-locale.m4 $(top_srcdir)/m4/hash.m4 \
- $(top_srcdir)/m4/host-os.m4 $(top_srcdir)/m4/human.m4 \
- $(top_srcdir)/m4/i-ring.m4 $(top_srcdir)/m4/iconv.m4 \
- $(top_srcdir)/m4/idcache.m4 $(top_srcdir)/m4/inet_ntop.m4 \
- $(top_srcdir)/m4/inline.m4 $(top_srcdir)/m4/intmax_t.m4 \
- $(top_srcdir)/m4/inttostr.m4 $(top_srcdir)/m4/inttypes-pri.m4 \
- $(top_srcdir)/m4/inttypes.m4 $(top_srcdir)/m4/inttypes_h.m4 \
- $(top_srcdir)/m4/isapipe.m4 $(top_srcdir)/m4/jm-macros.m4 \
- $(top_srcdir)/m4/jm-winsz1.m4 $(top_srcdir)/m4/jm-winsz2.m4 \
- $(top_srcdir)/m4/lchmod.m4 $(top_srcdir)/m4/lchown.m4 \
- $(top_srcdir)/m4/lib-check.m4 $(top_srcdir)/m4/lib-ignore.m4 \
- $(top_srcdir)/m4/lib-ld.m4 $(top_srcdir)/m4/lib-link.m4 \
- $(top_srcdir)/m4/lib-prefix.m4 $(top_srcdir)/m4/link-follow.m4 \
- $(top_srcdir)/m4/localcharset.m4 \
- $(top_srcdir)/m4/long-options.m4 \
- $(top_srcdir)/m4/longdouble.m4 $(top_srcdir)/m4/longlong.m4 \
- $(top_srcdir)/m4/ls-mntd-fs.m4 $(top_srcdir)/m4/lstat.m4 \
- $(top_srcdir)/m4/mbchar.m4 $(top_srcdir)/m4/mbiter.m4 \
- $(top_srcdir)/m4/mbrtowc.m4 $(top_srcdir)/m4/mbscasecmp.m4 \
- $(top_srcdir)/m4/mbstate_t.m4 $(top_srcdir)/m4/mbswidth.m4 \
- $(top_srcdir)/m4/md5.m4 $(top_srcdir)/m4/memcasecmp.m4 \
- $(top_srcdir)/m4/memchr.m4 $(top_srcdir)/m4/memcmp.m4 \
- $(top_srcdir)/m4/memcoll.m4 $(top_srcdir)/m4/memcpy.m4 \
- $(top_srcdir)/m4/memmove.m4 $(top_srcdir)/m4/mempcpy.m4 \
- $(top_srcdir)/m4/memrchr.m4 $(top_srcdir)/m4/memset.m4 \
- $(top_srcdir)/m4/memxfrm.m4 $(top_srcdir)/m4/mkancesdirs.m4 \
- $(top_srcdir)/m4/mkdir-p.m4 $(top_srcdir)/m4/mkdir-slash.m4 \
- $(top_srcdir)/m4/mkstemp.m4 $(top_srcdir)/m4/mktime.m4 \
- $(top_srcdir)/m4/modechange.m4 $(top_srcdir)/m4/mountlist.m4 \
- $(top_srcdir)/m4/mpsort.m4 $(top_srcdir)/m4/nanosleep.m4 \
- $(top_srcdir)/m4/netinet_in_h.m4 $(top_srcdir)/m4/nls.m4 \
- $(top_srcdir)/m4/openat.m4 $(top_srcdir)/m4/pathmax.m4 \
- $(top_srcdir)/m4/perl.m4 $(top_srcdir)/m4/physmem.m4 \
- $(top_srcdir)/m4/po.m4 $(top_srcdir)/m4/posixtm.m4 \
- $(top_srcdir)/m4/posixver.m4 $(top_srcdir)/m4/prereq.m4 \
- $(top_srcdir)/m4/progtest.m4 $(top_srcdir)/m4/putenv.m4 \
- $(top_srcdir)/m4/quote.m4 $(top_srcdir)/m4/quotearg.m4 \
- $(top_srcdir)/m4/randint.m4 $(top_srcdir)/m4/randperm.m4 \
- $(top_srcdir)/m4/randread.m4 $(top_srcdir)/m4/readlink.m4 \
- $(top_srcdir)/m4/readtokens.m4 $(top_srcdir)/m4/readutmp.m4 \
- $(top_srcdir)/m4/regex.m4 \
- $(top_srcdir)/m4/rename-dest-slash.m4 \
- $(top_srcdir)/m4/rename.m4 $(top_srcdir)/m4/rmdir-errno.m4 \
- $(top_srcdir)/m4/rmdir.m4 $(top_srcdir)/m4/root-dev-ino.m4 \
- $(top_srcdir)/m4/rpmatch.m4 $(top_srcdir)/m4/safe-read.m4 \
- $(top_srcdir)/m4/safe-write.m4 $(top_srcdir)/m4/same.m4 \
- $(top_srcdir)/m4/save-cwd.m4 $(top_srcdir)/m4/savedir.m4 \
- $(top_srcdir)/m4/savewd.m4 $(top_srcdir)/m4/setenv.m4 \
- $(top_srcdir)/m4/settime.m4 $(top_srcdir)/m4/sha1.m4 \
- $(top_srcdir)/m4/sha256.m4 $(top_srcdir)/m4/sha512.m4 \
- $(top_srcdir)/m4/sig2str.m4 $(top_srcdir)/m4/snprintf.m4 \
- $(top_srcdir)/m4/socklen.m4 $(top_srcdir)/m4/sockpfaf.m4 \
- $(top_srcdir)/m4/ssize_t.m4 $(top_srcdir)/m4/st_dm_mode.m4 \
- $(top_srcdir)/m4/stat-prog.m4 $(top_srcdir)/m4/stat-time.m4 \
- $(top_srcdir)/m4/stdarg.m4 $(top_srcdir)/m4/stdbool.m4 \
- $(top_srcdir)/m4/stdint.m4 $(top_srcdir)/m4/stdint_h.m4 \
- $(top_srcdir)/m4/stdio-safer.m4 $(top_srcdir)/m4/stdio_h.m4 \
- $(top_srcdir)/m4/stdlib-safer.m4 $(top_srcdir)/m4/stdlib_h.m4 \
- $(top_srcdir)/m4/stpcpy.m4 $(top_srcdir)/m4/strcspn.m4 \
- $(top_srcdir)/m4/strdup.m4 $(top_srcdir)/m4/strftime.m4 \
- $(top_srcdir)/m4/string_h.m4 $(top_srcdir)/m4/strndup.m4 \
- $(top_srcdir)/m4/strnlen.m4 $(top_srcdir)/m4/strnumcmp.m4 \
- $(top_srcdir)/m4/strpbrk.m4 $(top_srcdir)/m4/strtod.m4 \
- $(top_srcdir)/m4/strtoimax.m4 $(top_srcdir)/m4/strtol.m4 \
- $(top_srcdir)/m4/strtoll.m4 $(top_srcdir)/m4/strtoul.m4 \
- $(top_srcdir)/m4/strtoull.m4 $(top_srcdir)/m4/strtoumax.m4 \
- $(top_srcdir)/m4/strverscmp.m4 \
- $(top_srcdir)/m4/sys_socket_h.m4 \
- $(top_srcdir)/m4/sys_stat_h.m4 $(top_srcdir)/m4/sys_time_h.m4 \
- $(top_srcdir)/m4/tempname.m4 $(top_srcdir)/m4/time_h.m4 \
- $(top_srcdir)/m4/time_r.m4 $(top_srcdir)/m4/timespec.m4 \
- $(top_srcdir)/m4/tm_gmtoff.m4 $(top_srcdir)/m4/tzset.m4 \
- $(top_srcdir)/m4/unicodeio.m4 $(top_srcdir)/m4/unistd-safer.m4 \
- $(top_srcdir)/m4/unistd_h.m4 $(top_srcdir)/m4/unlink-busy.m4 \
- $(top_srcdir)/m4/unlinkdir.m4 $(top_srcdir)/m4/unlocked-io.m4 \
- $(top_srcdir)/m4/uptime.m4 $(top_srcdir)/m4/userspec.m4 \
- $(top_srcdir)/m4/utimbuf.m4 $(top_srcdir)/m4/utime.m4 \
- $(top_srcdir)/m4/utimecmp.m4 $(top_srcdir)/m4/utimens.m4 \
- $(top_srcdir)/m4/utimes-null.m4 $(top_srcdir)/m4/utimes.m4 \
- $(top_srcdir)/m4/vasnprintf.m4 $(top_srcdir)/m4/vasprintf.m4 \
- $(top_srcdir)/m4/wchar.m4 $(top_srcdir)/m4/wchar_t.m4 \
- $(top_srcdir)/m4/wctype.m4 $(top_srcdir)/m4/wcwidth.m4 \
- $(top_srcdir)/m4/wint_t.m4 $(top_srcdir)/m4/xalloc.m4 \
- $(top_srcdir)/m4/xfts.m4 $(top_srcdir)/m4/xgetcwd.m4 \
- $(top_srcdir)/m4/xnanosleep.m4 $(top_srcdir)/m4/xstrndup.m4 \
- $(top_srcdir)/m4/xstrtod.m4 $(top_srcdir)/m4/xstrtol.m4 \
- $(top_srcdir)/m4/yesno.m4 $(top_srcdir)/configure.ac
-am__configure_deps = $(am__aclocal_m4_deps) $(CONFIGURE_DEPENDENCIES) \
- $(ACLOCAL_M4)
-mkinstalldirs = $(install_sh) -d
-CONFIG_HEADER = $(top_builddir)/lib/config.h
-CONFIG_CLEAN_FILES =
-SOURCES =
-DIST_SOURCES =
-DISTFILES = $(DIST_COMMON) $(DIST_SOURCES) $(TEXINFOS) $(EXTRA_DIST)
-ABSOLUTE_DIRENT_H = @ABSOLUTE_DIRENT_H@
-ABSOLUTE_FCNTL_H = @ABSOLUTE_FCNTL_H@
-ABSOLUTE_INTTYPES_H = @ABSOLUTE_INTTYPES_H@
-ABSOLUTE_NETINET_IN_H = @ABSOLUTE_NETINET_IN_H@
-ABSOLUTE_STDINT_H = @ABSOLUTE_STDINT_H@
-ABSOLUTE_STDIO_H = @ABSOLUTE_STDIO_H@
-ABSOLUTE_STDLIB_H = @ABSOLUTE_STDLIB_H@
-ABSOLUTE_STRING_H = @ABSOLUTE_STRING_H@
-ABSOLUTE_SYS_SOCKET_H = @ABSOLUTE_SYS_SOCKET_H@
-ABSOLUTE_SYS_STAT_H = @ABSOLUTE_SYS_STAT_H@
-ABSOLUTE_SYS_TIME_H = @ABSOLUTE_SYS_TIME_H@
-ABSOLUTE_TIME_H = @ABSOLUTE_TIME_H@
-ABSOLUTE_UNISTD_H = @ABSOLUTE_UNISTD_H@
-ABSOLUTE_WCHAR_H = @ABSOLUTE_WCHAR_H@
-ABSOLUTE_WCTYPE_H = @ABSOLUTE_WCTYPE_H@
-ACLOCAL = @ACLOCAL@
-ALLOCA = @ALLOCA@
-ALLOCA_H = @ALLOCA_H@
-AMTAR = @AMTAR@
-ARPA_INET_H = @ARPA_INET_H@
-AUTOCONF = @AUTOCONF@
-AUTOHEADER = @AUTOHEADER@
-AUTOMAKE = @AUTOMAKE@
-AWK = @AWK@
-BITSIZEOF_PTRDIFF_T = @BITSIZEOF_PTRDIFF_T@
-BITSIZEOF_SIG_ATOMIC_T = @BITSIZEOF_SIG_ATOMIC_T@
-BITSIZEOF_SIZE_T = @BITSIZEOF_SIZE_T@
-BITSIZEOF_WCHAR_T = @BITSIZEOF_WCHAR_T@
-BITSIZEOF_WINT_T = @BITSIZEOF_WINT_T@
-CC = @CC@
-CCDEPMODE = @CCDEPMODE@
-CFLAGS = @CFLAGS@
-CPP = @CPP@
-CPPFLAGS = @CPPFLAGS@
-CYGPATH_W = @CYGPATH_W@
-DEFAULT_POSIX2_VERSION = @DEFAULT_POSIX2_VERSION@
-DEFS = @DEFS@
-DEPDIR = @DEPDIR@
-DF_PROG = @DF_PROG@
-DIRENT_H = @DIRENT_H@
-ECHO_C = @ECHO_C@
-ECHO_N = @ECHO_N@
-ECHO_T = @ECHO_T@
-EGREP = @EGREP@
-EOVERFLOW = @EOVERFLOW@
-EXEEXT = @EXEEXT@
-FCNTL_H = @FCNTL_H@
-FNMATCH_H = @FNMATCH_H@
-GETLOADAVG_LIBS = @GETLOADAVG_LIBS@
-GETOPT_H = @GETOPT_H@
-GLIBC21 = @GLIBC21@
-GMSGFMT = @GMSGFMT@
-GMSGFMT_015 = @GMSGFMT_015@
-GNULIB_CHOWN = @GNULIB_CHOWN@
-GNULIB_DUP2 = @GNULIB_DUP2@
-GNULIB_FCHDIR = @GNULIB_FCHDIR@
-GNULIB_FPRINTF_POSIX = @GNULIB_FPRINTF_POSIX@
-GNULIB_FTRUNCATE = @GNULIB_FTRUNCATE@
-GNULIB_GETCWD = @GNULIB_GETCWD@
-GNULIB_GETLOGIN_R = @GNULIB_GETLOGIN_R@
-GNULIB_GETSUBOPT = @GNULIB_GETSUBOPT@
-GNULIB_IMAXABS = @GNULIB_IMAXABS@
-GNULIB_IMAXDIV = @GNULIB_IMAXDIV@
-GNULIB_MBSCASECMP = @GNULIB_MBSCASECMP@
-GNULIB_MBSCASESTR = @GNULIB_MBSCASESTR@
-GNULIB_MBSCHR = @GNULIB_MBSCHR@
-GNULIB_MBSCSPN = @GNULIB_MBSCSPN@
-GNULIB_MBSLEN = @GNULIB_MBSLEN@
-GNULIB_MBSNCASECMP = @GNULIB_MBSNCASECMP@
-GNULIB_MBSPBRK = @GNULIB_MBSPBRK@
-GNULIB_MBSPCASECMP = @GNULIB_MBSPCASECMP@
-GNULIB_MBSRCHR = @GNULIB_MBSRCHR@
-GNULIB_MBSSEP = @GNULIB_MBSSEP@
-GNULIB_MBSSPN = @GNULIB_MBSSPN@
-GNULIB_MBSSTR = @GNULIB_MBSSTR@
-GNULIB_MBSTOK_R = @GNULIB_MBSTOK_R@
-GNULIB_MEMMEM = @GNULIB_MEMMEM@
-GNULIB_MEMPCPY = @GNULIB_MEMPCPY@
-GNULIB_MEMRCHR = @GNULIB_MEMRCHR@
-GNULIB_MKDTEMP = @GNULIB_MKDTEMP@
-GNULIB_MKSTEMP = @GNULIB_MKSTEMP@
-GNULIB_PRINTF_POSIX = @GNULIB_PRINTF_POSIX@
-GNULIB_READLINK = @GNULIB_READLINK@
-GNULIB_SNPRINTF = @GNULIB_SNPRINTF@
-GNULIB_SPRINTF_POSIX = @GNULIB_SPRINTF_POSIX@
-GNULIB_STPCPY = @GNULIB_STPCPY@
-GNULIB_STPNCPY = @GNULIB_STPNCPY@
-GNULIB_STRCASESTR = @GNULIB_STRCASESTR@
-GNULIB_STRCHRNUL = @GNULIB_STRCHRNUL@
-GNULIB_STRDUP = @GNULIB_STRDUP@
-GNULIB_STRNDUP = @GNULIB_STRNDUP@
-GNULIB_STRNLEN = @GNULIB_STRNLEN@
-GNULIB_STRPBRK = @GNULIB_STRPBRK@
-GNULIB_STRSEP = @GNULIB_STRSEP@
-GNULIB_STRTOIMAX = @GNULIB_STRTOIMAX@
-GNULIB_STRTOK_R = @GNULIB_STRTOK_R@
-GNULIB_STRTOUMAX = @GNULIB_STRTOUMAX@
-GNULIB_VFPRINTF_POSIX = @GNULIB_VFPRINTF_POSIX@
-GNULIB_VPRINTF_POSIX = @GNULIB_VPRINTF_POSIX@
-GNULIB_VSNPRINTF = @GNULIB_VSNPRINTF@
-GNULIB_VSPRINTF_POSIX = @GNULIB_VSPRINTF_POSIX@
-GNU_PACKAGE = @GNU_PACKAGE@
-GREP = @GREP@
-HAVE_DECL_GETLOGIN_R = @HAVE_DECL_GETLOGIN_R@
-HAVE_DECL_IMAXABS = @HAVE_DECL_IMAXABS@
-HAVE_DECL_IMAXDIV = @HAVE_DECL_IMAXDIV@
-HAVE_DECL_MEMMEM = @HAVE_DECL_MEMMEM@
-HAVE_DECL_MEMRCHR = @HAVE_DECL_MEMRCHR@
-HAVE_DECL_SNPRINTF = @HAVE_DECL_SNPRINTF@
-HAVE_DECL_STRDUP = @HAVE_DECL_STRDUP@
-HAVE_DECL_STRNCASECMP = @HAVE_DECL_STRNCASECMP@
-HAVE_DECL_STRNDUP = @HAVE_DECL_STRNDUP@
-HAVE_DECL_STRNLEN = @HAVE_DECL_STRNLEN@
-HAVE_DECL_STRTOIMAX = @HAVE_DECL_STRTOIMAX@
-HAVE_DECL_STRTOK_R = @HAVE_DECL_STRTOK_R@
-HAVE_DECL_STRTOUMAX = @HAVE_DECL_STRTOUMAX@
-HAVE_DECL_VSNPRINTF = @HAVE_DECL_VSNPRINTF@
-HAVE_DUP2 = @HAVE_DUP2@
-HAVE_FTRUNCATE = @HAVE_FTRUNCATE@
-HAVE_GETSUBOPT = @HAVE_GETSUBOPT@
-HAVE_INTTYPES_H = @HAVE_INTTYPES_H@
-HAVE_LONG_LONG_INT = @HAVE_LONG_LONG_INT@
-HAVE_MEMPCPY = @HAVE_MEMPCPY@
-HAVE_MKDTEMP = @HAVE_MKDTEMP@
-HAVE_NETINET_IN_H = @HAVE_NETINET_IN_H@
-HAVE_READLINK = @HAVE_READLINK@
-HAVE_SIGNED_SIG_ATOMIC_T = @HAVE_SIGNED_SIG_ATOMIC_T@
-HAVE_SIGNED_WCHAR_T = @HAVE_SIGNED_WCHAR_T@
-HAVE_SIGNED_WINT_T = @HAVE_SIGNED_WINT_T@
-HAVE_STDINT_H = @HAVE_STDINT_H@
-HAVE_STPCPY = @HAVE_STPCPY@
-HAVE_STPNCPY = @HAVE_STPNCPY@
-HAVE_STRCASECMP = @HAVE_STRCASECMP@
-HAVE_STRCASESTR = @HAVE_STRCASESTR@
-HAVE_STRCHRNUL = @HAVE_STRCHRNUL@
-HAVE_STRNDUP = @HAVE_STRNDUP@
-HAVE_STRPBRK = @HAVE_STRPBRK@
-HAVE_STRSEP = @HAVE_STRSEP@
-HAVE_STRUCT_TIMEVAL = @HAVE_STRUCT_TIMEVAL@
-HAVE_SYS_BITYPES_H = @HAVE_SYS_BITYPES_H@
-HAVE_SYS_INTTYPES_H = @HAVE_SYS_INTTYPES_H@
-HAVE_SYS_SOCKET_H = @HAVE_SYS_SOCKET_H@
-HAVE_SYS_TIME_H = @HAVE_SYS_TIME_H@
-HAVE_SYS_TYPES_H = @HAVE_SYS_TYPES_H@
-HAVE_UNISTD_H = @HAVE_UNISTD_H@
-HAVE_UNSIGNED_LONG_LONG_INT = @HAVE_UNSIGNED_LONG_LONG_INT@
-HAVE_WCTYPE_H = @HAVE_WCTYPE_H@
-HAVE_WINSOCK2_H = @HAVE_WINSOCK2_H@
-HAVE_WINT_T = @HAVE_WINT_T@
-HAVE_WS2TCPIP_H = @HAVE_WS2TCPIP_H@
-HAVE__BOOL = @HAVE__BOOL@
-HELP2MAN = @HELP2MAN@
-INSTALL = @INSTALL@
-INSTALL_DATA = @INSTALL_DATA@
-INSTALL_PROGRAM = @INSTALL_PROGRAM@
-INSTALL_SCRIPT = @INSTALL_SCRIPT@
-INSTALL_STRIP_PROGRAM = @INSTALL_STRIP_PROGRAM@
-INTLLIBS = @INTLLIBS@
-INTL_MACOSX_LIBS = @INTL_MACOSX_LIBS@
-INTTYPES_H = @INTTYPES_H@
-KMEM_GROUP = @KMEM_GROUP@
-LDFLAGS = @LDFLAGS@
-LIBCOREUTILS_LIBDEPS = @LIBCOREUTILS_LIBDEPS@
-LIBCOREUTILS_LTLIBDEPS = @LIBCOREUTILS_LTLIBDEPS@
-LIBICONV = @LIBICONV@
-LIBINTL = @LIBINTL@
-LIBOBJS = @LIBOBJS@
-LIBS = @LIBS@
-LIB_ACL = @LIB_ACL@
-LIB_ACL_TRIVIAL = @LIB_ACL_TRIVIAL@
-LIB_CLOCK_GETTIME = @LIB_CLOCK_GETTIME@
-LIB_CRYPT = @LIB_CRYPT@
-LIB_EACCESS = @LIB_EACCESS@
-LIB_FDATASYNC = @LIB_FDATASYNC@
-LIB_GETHRXTIME = @LIB_GETHRXTIME@
-LIB_NANOSLEEP = @LIB_NANOSLEEP@
-LN_S = @LN_S@
-LTLIBICONV = @LTLIBICONV@
-LTLIBINTL = @LTLIBINTL@
-LTLIBOBJS = @LTLIBOBJS@
-MAKEINFO = @MAKEINFO@
-MAN = @MAN@
-MKDIR_P = @MKDIR_P@
-MSGFMT = @MSGFMT@
-MSGFMT_015 = @MSGFMT_015@
-MSGMERGE = @MSGMERGE@
-NEED_SETGID = @NEED_SETGID@
-NETINET_IN_H = @NETINET_IN_H@
-OBJEXT = @OBJEXT@
-OPTIONAL_BIN_PROGS = @OPTIONAL_BIN_PROGS@
-PACKAGE = @PACKAGE@
-PACKAGE_BUGREPORT = @PACKAGE_BUGREPORT@
-PACKAGE_NAME = @PACKAGE_NAME@
-PACKAGE_STRING = @PACKAGE_STRING@
-PACKAGE_TARNAME = @PACKAGE_TARNAME@
-PACKAGE_VERSION = @PACKAGE_VERSION@
-PATH_SEPARATOR = @PATH_SEPARATOR@
-PERL = @PERL@
-POSUB = @POSUB@
-POW_LIB = @POW_LIB@
-PRIPTR_PREFIX = @PRIPTR_PREFIX@
-PRI_MACROS_BROKEN = @PRI_MACROS_BROKEN@
-PTRDIFF_T_SUFFIX = @PTRDIFF_T_SUFFIX@
-RANLIB = @RANLIB@
-REPLACE_CHOWN = @REPLACE_CHOWN@
-REPLACE_FCHDIR = @REPLACE_FCHDIR@
-REPLACE_FPRINTF = @REPLACE_FPRINTF@
-REPLACE_GETCWD = @REPLACE_GETCWD@
-REPLACE_GETTIMEOFDAY = @REPLACE_GETTIMEOFDAY@
-REPLACE_LOCALTIME_R = @REPLACE_LOCALTIME_R@
-REPLACE_MKSTEMP = @REPLACE_MKSTEMP@
-REPLACE_NANOSLEEP = @REPLACE_NANOSLEEP@
-REPLACE_PRINTF = @REPLACE_PRINTF@
-REPLACE_SNPRINTF = @REPLACE_SNPRINTF@
-REPLACE_SPRINTF = @REPLACE_SPRINTF@
-REPLACE_STRPTIME = @REPLACE_STRPTIME@
-REPLACE_TIMEGM = @REPLACE_TIMEGM@
-REPLACE_VFPRINTF = @REPLACE_VFPRINTF@
-REPLACE_VPRINTF = @REPLACE_VPRINTF@
-REPLACE_VSNPRINTF = @REPLACE_VSNPRINTF@
-REPLACE_VSPRINTF = @REPLACE_VSPRINTF@
-SEQ_LIBM = @SEQ_LIBM@
-SET_MAKE = @SET_MAKE@
-SHELL = @SHELL@
-SIG_ATOMIC_T_SUFFIX = @SIG_ATOMIC_T_SUFFIX@
-SIZE_T_SUFFIX = @SIZE_T_SUFFIX@
-STDBOOL_H = @STDBOOL_H@
-STDINT_H = @STDINT_H@
-STRIP = @STRIP@
-SYS_SOCKET_H = @SYS_SOCKET_H@
-SYS_STAT_H = @SYS_STAT_H@
-SYS_TIME_H = @SYS_TIME_H@
-SYS_TIME_H_DEFINES_STRUCT_TIMESPEC = @SYS_TIME_H_DEFINES_STRUCT_TIMESPEC@
-TIME_H_DEFINES_STRUCT_TIMESPEC = @TIME_H_DEFINES_STRUCT_TIMESPEC@
-U = @U@
-USE_NLS = @USE_NLS@
-VERSION = @VERSION@
-WCHAR_H = @WCHAR_H@
-WCHAR_T_SUFFIX = @WCHAR_T_SUFFIX@
-WCTYPE_H = @WCTYPE_H@
-WINT_T_SUFFIX = @WINT_T_SUFFIX@
-XGETTEXT = @XGETTEXT@
-XGETTEXT_015 = @XGETTEXT_015@
-YACC = @YACC@
-YFLAGS = @YFLAGS@
-abs_builddir = @abs_builddir@
-abs_srcdir = @abs_srcdir@
-abs_top_builddir = @abs_top_builddir@
-abs_top_srcdir = @abs_top_srcdir@
-ac_ct_CC = @ac_ct_CC@
-am__include = @am__include@
-am__leading_dot = @am__leading_dot@
-am__quote = @am__quote@
-am__tar = @am__tar@
-am__untar = @am__untar@
-bindir = @bindir@
-build = @build@
-build_alias = @build_alias@
-build_cpu = @build_cpu@
-build_os = @build_os@
-build_vendor = @build_vendor@
-builddir = @builddir@
-datadir = @datadir@
-datarootdir = @datarootdir@
-docdir = @docdir@
-dvidir = @dvidir@
-exec_prefix = @exec_prefix@
-gl_LIBOBJS = @gl_LIBOBJS@
-gl_LTLIBOBJS = @gl_LTLIBOBJS@
-host = @host@
-host_alias = @host_alias@
-host_cpu = @host_cpu@
-host_os = @host_os@
-host_vendor = @host_vendor@
-htmldir = @htmldir@
-includedir = @includedir@
-infodir = @infodir@
-install_sh = @install_sh@
-libdir = @libdir@
-libexecdir = @libexecdir@
-localedir = @localedir@
-localstatedir = @localstatedir@
-mandir = @mandir@
-mkdir_p = @mkdir_p@
-oldincludedir = @oldincludedir@
-pdfdir = @pdfdir@
-prefix = @prefix@
-program_transform_name = @program_transform_name@
-psdir = @psdir@
-sbindir = @sbindir@
-sharedstatedir = @sharedstatedir@
-srcdir = @srcdir@
-sysconfdir = @sysconfdir@
-target_alias = @target_alias@
-top_builddir = @top_builddir@
-top_srcdir = @top_srcdir@
-EXTRA_DIST = $(TESTS)
-TESTS_ENVIRONMENT = \
- top_srcdir=$(top_srcdir) \
- srcdir=$(srcdir) \
- PERL="$(PERL)" \
- CU_TEST_NAME=`basename $(abs_srcdir)`,$$tst \
- PATH="$(VG_PATH_PREFIX)`pwd`/../../src$(PATH_SEPARATOR)$$PATH" \
- PROG=sum
-
-TESTS = basic-1 sysv
-all: all-am
-
-.SUFFIXES:
-$(srcdir)/Makefile.in: $(srcdir)/Makefile.am $(am__configure_deps)
- @for dep in $?; do \
- case '$(am__configure_deps)' in \
- *$$dep*) \
- cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh \
- && exit 0; \
- exit 1;; \
- esac; \
- done; \
- echo ' cd $(top_srcdir) && $(AUTOMAKE) --gnu tests/sum/Makefile'; \
- cd $(top_srcdir) && \
- $(AUTOMAKE) --gnu tests/sum/Makefile
-.PRECIOUS: Makefile
-Makefile: $(srcdir)/Makefile.in $(top_builddir)/config.status
- @case '$?' in \
- *config.status*) \
- cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh;; \
- *) \
- echo ' cd $(top_builddir) && $(SHELL) ./config.status $(subdir)/$@ $(am__depfiles_maybe)'; \
- cd $(top_builddir) && $(SHELL) ./config.status $(subdir)/$@ $(am__depfiles_maybe);; \
- esac;
-
-$(top_builddir)/config.status: $(top_srcdir)/configure $(CONFIG_STATUS_DEPENDENCIES)
- cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh
-
-$(top_srcdir)/configure: $(am__configure_deps)
- cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh
-$(ACLOCAL_M4): $(am__aclocal_m4_deps)
- cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh
-tags: TAGS
-TAGS:
-
-ctags: CTAGS
-CTAGS:
-
-
-check-TESTS: $(TESTS)
- @failed=0; all=0; xfail=0; xpass=0; skip=0; ws='[ ]'; \
- srcdir=$(srcdir); export srcdir; \
- list=' $(TESTS) '; \
- if test -n "$$list"; then \
- for tst in $$list; do \
- if test -f ./$$tst; then dir=./; \
- elif test -f $$tst; then dir=; \
- else dir="$(srcdir)/"; fi; \
- if $(TESTS_ENVIRONMENT) $${dir}$$tst; then \
- all=`expr $$all + 1`; \
- case " $(XFAIL_TESTS) " in \
- *$$ws$$tst$$ws*) \
- xpass=`expr $$xpass + 1`; \
- failed=`expr $$failed + 1`; \
- echo "XPASS: $$tst"; \
- ;; \
- *) \
- echo "PASS: $$tst"; \
- ;; \
- esac; \
- elif test $$? -ne 77; then \
- all=`expr $$all + 1`; \
- case " $(XFAIL_TESTS) " in \
- *$$ws$$tst$$ws*) \
- xfail=`expr $$xfail + 1`; \
- echo "XFAIL: $$tst"; \
- ;; \
- *) \
- failed=`expr $$failed + 1`; \
- echo "FAIL: $$tst"; \
- ;; \
- esac; \
- else \
- skip=`expr $$skip + 1`; \
- echo "SKIP: $$tst"; \
- fi; \
- done; \
- if test "$$failed" -eq 0; then \
- if test "$$xfail" -eq 0; then \
- banner="All $$all tests passed"; \
- else \
- banner="All $$all tests behaved as expected ($$xfail expected failures)"; \
- fi; \
- else \
- if test "$$xpass" -eq 0; then \
- banner="$$failed of $$all tests failed"; \
- else \
- banner="$$failed of $$all tests did not behave as expected ($$xpass unexpected passes)"; \
- fi; \
- fi; \
- dashes="$$banner"; \
- skipped=""; \
- if test "$$skip" -ne 0; then \
- skipped="($$skip tests were not run)"; \
- test `echo "$$skipped" | wc -c` -le `echo "$$banner" | wc -c` || \
- dashes="$$skipped"; \
- fi; \
- report=""; \
- if test "$$failed" -ne 0 && test -n "$(PACKAGE_BUGREPORT)"; then \
- report="Please report to $(PACKAGE_BUGREPORT)"; \
- test `echo "$$report" | wc -c` -le `echo "$$banner" | wc -c` || \
- dashes="$$report"; \
- fi; \
- dashes=`echo "$$dashes" | sed s/./=/g`; \
- echo "$$dashes"; \
- echo "$$banner"; \
- test -z "$$skipped" || echo "$$skipped"; \
- test -z "$$report" || echo "$$report"; \
- echo "$$dashes"; \
- test "$$failed" -eq 0; \
- else :; fi
-
-distdir: $(DISTFILES)
- @srcdirstrip=`echo "$(srcdir)" | sed 's/[].[^$$\\*]/\\\\&/g'`; \
- topsrcdirstrip=`echo "$(top_srcdir)" | sed 's/[].[^$$\\*]/\\\\&/g'`; \
- list='$(DISTFILES)'; \
- dist_files=`for file in $$list; do echo $$file; done | \
- sed -e "s|^$$srcdirstrip/||;t" \
- -e "s|^$$topsrcdirstrip/|$(top_builddir)/|;t"`; \
- case $$dist_files in \
- */*) $(MKDIR_P) `echo "$$dist_files" | \
- sed '/\//!d;s|^|$(distdir)/|;s,/[^/]*$$,,' | \
- sort -u` ;; \
- esac; \
- for file in $$dist_files; do \
- if test -f $$file || test -d $$file; then d=.; else d=$(srcdir); fi; \
- if test -d $$d/$$file; then \
- dir=`echo "/$$file" | sed -e 's,/[^/]*$$,,'`; \
- if test -d $(srcdir)/$$file && test $$d != $(srcdir); then \
- cp -pR $(srcdir)/$$file $(distdir)$$dir || exit 1; \
- fi; \
- cp -pR $$d/$$file $(distdir)$$dir || exit 1; \
- else \
- test -f $(distdir)/$$file \
- || cp -p $$d/$$file $(distdir)/$$file \
- || exit 1; \
- fi; \
- done
-check-am: all-am
- $(MAKE) $(AM_MAKEFLAGS) check-TESTS
-check: check-am
-all-am: Makefile
-installdirs:
-install: install-am
-install-exec: install-exec-am
-install-data: install-data-am
-uninstall: uninstall-am
-
-install-am: all-am
- @$(MAKE) $(AM_MAKEFLAGS) install-exec-am install-data-am
-
-installcheck: installcheck-am
-install-strip:
- $(MAKE) $(AM_MAKEFLAGS) INSTALL_PROGRAM="$(INSTALL_STRIP_PROGRAM)" \
- install_sh_PROGRAM="$(INSTALL_STRIP_PROGRAM)" INSTALL_STRIP_FLAG=-s \
- `test -z '$(STRIP)' || \
- echo "INSTALL_PROGRAM_ENV=STRIPPROG='$(STRIP)'"` install
-mostlyclean-generic:
-
-clean-generic:
-
-distclean-generic:
- -test -z "$(CONFIG_CLEAN_FILES)" || rm -f $(CONFIG_CLEAN_FILES)
-
-maintainer-clean-generic:
- @echo "This command is intended for maintainers to use"
- @echo "it deletes files that may require special tools to rebuild."
-clean: clean-am
-
-clean-am: clean-generic mostlyclean-am
-
-distclean: distclean-am
- -rm -f Makefile
-distclean-am: clean-am distclean-generic
-
-dvi: dvi-am
-
-dvi-am:
-
-html: html-am
-
-info: info-am
-
-info-am:
-
-install-data-am:
-
-install-dvi: install-dvi-am
-
-install-exec-am:
-
-install-html: install-html-am
-
-install-info: install-info-am
-
-install-man:
-
-install-pdf: install-pdf-am
-
-install-ps: install-ps-am
-
-installcheck-am:
-
-maintainer-clean: maintainer-clean-am
- -rm -f Makefile
-maintainer-clean-am: distclean-am maintainer-clean-generic
-
-mostlyclean: mostlyclean-am
-
-mostlyclean-am: mostlyclean-generic
-
-pdf: pdf-am
-
-pdf-am:
-
-ps: ps-am
-
-ps-am:
-
-uninstall-am:
-
-.MAKE: install-am install-strip
-
-.PHONY: all all-am check check-TESTS check-am clean clean-generic \
- distclean distclean-generic distdir dvi dvi-am html html-am \
- info info-am install install-am install-data install-data-am \
- install-dvi install-dvi-am install-exec install-exec-am \
- install-html install-html-am install-info install-info-am \
- install-man install-pdf install-pdf-am install-ps \
- install-ps-am install-strip installcheck installcheck-am \
- installdirs maintainer-clean maintainer-clean-generic \
- mostlyclean mostlyclean-generic pdf pdf-am ps ps-am uninstall \
- uninstall-am
-
-# Tell versions [3.59,3.63) of GNU make to not export all variables.
-# Otherwise a system limit (for SysV at least) may be exceeded.
-.NOEXPORT:
diff --git a/tests/sum/basic-1 b/tests/sum/basic-1
deleted file mode 100755
index 2f5b2e1..0000000
--- a/tests/sum/basic-1
+++ /dev/null
@@ -1,75 +0,0 @@
-#!/bin/sh
-# Test "sum".
-
-# Copyright (C) 2000, 2003, 2005, 2006 Free Software Foundation, Inc.
-
-# This program is free software; you can redistribute it and/or modify
-# it under the terms of the GNU General Public License as published by
-# the Free Software Foundation; either version 2 of the License, or
-# (at your option) any later version.
-
-# This program is distributed in the hope that it will be useful,
-# but WITHOUT ANY WARRANTY; without even the implied warranty of
-# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
-# GNU General Public License for more details.
-
-# You should have received a copy of the GNU General Public License
-# along with this program; if not, write to the Free Software
-# Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA
-# 02110-1301, USA.
-
-: ${PERL=perl}
-: ${srcdir=.}
-
-$PERL -e 1 > /dev/null 2>&1 || {
- echo 1>&2 "$0: configure didn't find a usable version of Perl," \
- "so can't run this test"
- exit 77
-}
-
-exec $PERL -w -I$srcdir/.. -MCoreutils -- - <<\EOF
-require 5.003;
-use strict;
-
-(my $program_name = $0) =~ s|.*/||;
-
-# Turn off localisation of executable's ouput.
-@ENV{qw(LANGUAGE LANG LC_ALL)} = ('C') x 3;
-
-my $in_1k = 'a' x 1024;
-my $in_2k = 'b' x 2048;
-
-my @Tests =
- (
- ['1', {IN=> {f=> ''}}, {OUT=>"00000 0\n"}],
- ['2', {IN=> {f=> 'a'}}, {OUT=>"00097 1\n"}],
- ['3', {IN=> {f=> 'abc'}}, {OUT=>"16556 1\n"}],
- ['4', {IN=> {f=> 'message digest'}}, {OUT=>"26423 1\n"}],
- ['5', {IN=> {f=> 'abcdefghijklmnopqrstuvwxyz'}}, {OUT=>"53553 1\n"}],
- ['6', {IN=> {f=> join ('', 'A'..'Z', 'a'..'z', '0'..'9')}},
- {OUT=>"25587 1\n"}],
- ['7', {IN=> {f=> '1234567890' x 8}}, {OUT=>"21845 1\n"}],
-
- ['a-r-1k', '-r', {IN=> {f=> $in_1k}}, {OUT=>"65409 1\n"}],
- ['a-s-1k', '-s', {IN=> {f=> $in_1k}}, {OUT=>"33793 2 f\n"}],
- ['b-r-2k', '-r', {IN=> {f=> $in_2k}}, {OUT=>"65223 2\n"}],
- ['b-s-2k', '-s', {IN=> {f=> $in_2k}}, {OUT=>"4099 4 f\n"}],
-
- ['1s', '-s', {IN=> {f=> ''}}, {OUT=>"0 0 f\n"}],
- ['2s', '-s', {IN=> {f=> 'a'}}, {OUT=>"97 1 f\n"}],
- ['3s', '-s', {IN=> {f=> 'abc'}}, {OUT=>"294 1 f\n"}],
- ['4s', '-s', {IN=> {f=> 'message digest'}}, {OUT=>"1413 1 f\n"}],
- ['5s', '-s', {IN=> {f=> 'abcdefghijklmnopqrstuvwxyz'}},
- {OUT=>"2847 1 f\n"}],
- ['6s', '-s', {IN=> {f=> join ('', 'A'..'Z', 'a'..'z', '0'..'9')}},
- {OUT=>"5387 1 f\n"}],
- ['7s', '-s', {IN=> {f=> '1234567890' x 8}}, {OUT=>"4200 1 f\n"}],
- );
-
-my $save_temps = $ENV{DEBUG};
-my $verbose = $ENV{VERBOSE};
-
-my $prog = $ENV{PROG} || die "$0: \$PROG not specified in environment\n";
-my $fail = run_tests ($program_name, $prog, \@Tests, $save_temps, $verbose);
-exit $fail;
-EOF
diff --git a/tests/sum/sysv b/tests/sum/sysv
deleted file mode 100755
index 93dff3d..0000000
--- a/tests/sum/sysv
+++ /dev/null
@@ -1,76 +0,0 @@
-#!/bin/sh
-# make sure `sum -s' works for input whose sum of bytes is larger than 2^32
-
-# Copyright (C) 2001, 2002, 2003, 2004, 2006 Free Software Foundation, Inc.
-
-# This program is free software; you can redistribute it and/or modify
-# it under the terms of the GNU General Public License as published by
-# the Free Software Foundation; either version 2 of the License, or
-# (at your option) any later version.
-
-# This program is distributed in the hope that it will be useful,
-# but WITHOUT ANY WARRANTY; without even the implied warranty of
-# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
-# GNU General Public License for more details.
-
-# You should have received a copy of the GNU General Public License
-# along with this program; if not, write to the Free Software
-# Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA
-# 02110-1301, USA.
-
-if test "$VERBOSE" = yes; then
- set -x
- sum --version
-fi
-
-$PERL -e 1 > /dev/null 2>&1 || {
- echo 1>&2 "$0: configure didn't find a usable version of Perl," \
- "so can't run this test"
- exit 77
-}
-
-# Avoid a problem when run in a UTF-8 locale.
-# Otherwise, Perl would try to (and fail to) interpret
-# each string below as a sequence of multi-byte characters.
-LC_ALL=C
-export LC_ALL
-
-pwd=`pwd`
-tmp=sum-s.$$
-trap 'status=$?; cd "$pwd" && rm -rf $tmp && exit $status' 0
-trap '(exit $?); exit' 1 2 13 15
-
-framework_failure=0
-mkdir $tmp || framework_failure=1
-cd $tmp || framework_failure=1
-
-if test $framework_failure = 1; then
- echo 'failure in testing framework' 1>&2
- (exit 1); exit 1
-fi
-
-fail=0
-
-# FYI, 16843009 is floor (2^32 / 255).
-
-# aka: perl -e 'print chr(255) x 16843009'
-$PERL -e '$s = chr(255) x 65537; foreach (1..257) {print $s}' \
- | sum -s > out || fail=1
-cat > exp <<\EOF
-65535 32897
-EOF
-cmp out exp || fail=1
-test $fail = 1 && diff out exp 2> /dev/null
-
-rm -f out exp
-
-# aka: perl -e 'print chr(255) x 16843010'
-$PERL -e '$s = chr(255) x 65537; foreach (1..257) {print $s}; print chr(255)' \
- | sum -s > out || fail=1
-cat > exp <<\EOF
-254 32897
-EOF
-cmp out exp || fail=1
-test $fail = 1 && diff out exp 2> /dev/null
-
-(exit $fail); exit $fail
diff --git a/tests/tac/Makefile.am b/tests/tac/Makefile.am
deleted file mode 100644
index b8cc476..0000000
--- a/tests/tac/Makefile.am
+++ /dev/null
@@ -1,70 +0,0 @@
-# Make coreutils tests. -*-Makefile-*-
-
-# Copyright (C) 1997, 1998, 2000, 2003, 2004, 2006 Free Software
-# Foundation, Inc.
-
-# This program is free software; you can redistribute it and/or modify
-# it under the terms of the GNU General Public License as published by
-# the Free Software Foundation; either version 2 of the License, or
-# (at your option) any later version.
-
-# This program is distributed in the hope that it will be useful,
-# but WITHOUT ANY WARRANTY; without even the implied warranty of
-# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
-# GNU General Public License for more details.
-
-# You should have received a copy of the GNU General Public License
-# along with this program; if not, write to the Free Software
-# Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA
-# 02110-1301, USA.
-
-##test-files-begin
-x = tac
-explicit =
-maint_gen = basic-0.I basic-0.X basic-a.I basic-a.X basic-b.I basic-b.X \
-basic-c.I basic-c.X basic-d.I basic-d.X basic-e.I basic-e.X basic-f.I \
-basic-f.X basic-g.I basic-g.X basic-h.I basic-h.X basic-i.I basic-i.X \
-basic-j.I basic-j.X basic-k.I basic-k.X b2-e.I b2-e.X b2-f.I b2-f.X b2-g.I \
-b2-g.X b2-h.I b2-h.X b2-i.I b2-i.X b2-j.I b2-j.X b2-k.I b2-k.X opt-b.I \
-opt-b.X opt-s.I opt-s.X opt-sb.I opt-sb.X opt-r.I opt-r.X opt-r2.I opt-r2.X \
-opt-br.I opt-br.X opt-br2.I opt-br2.X
-run_gen = basic-0.O basic-0.E basic-a.O basic-a.E basic-b.O basic-b.E \
-basic-c.O basic-c.E basic-d.O basic-d.E basic-e.O basic-e.E basic-f.O \
-basic-f.E basic-g.O basic-g.E basic-h.O basic-h.E basic-i.O basic-i.E \
-basic-j.O basic-j.E basic-k.O basic-k.E b2-e.O b2-e.E b2-f.O b2-f.E b2-g.O \
-b2-g.E b2-h.O b2-h.E b2-i.O b2-i.E b2-j.O b2-j.E b2-k.O b2-k.E opt-b.O \
-opt-b.E opt-s.O opt-s.E opt-sb.O opt-sb.E opt-r.O opt-r.E opt-r2.O opt-r2.E \
-opt-br.O opt-br.E opt-br2.O opt-br2.E
-##test-files-end
-
-EXTRA_DIST = Test.pm $x-tests $(explicit) $(maint_gen)
-noinst_SCRIPTS = $x-tests
-TESTS_ENVIRONMENT = \
- CU_TEST_NAME=`basename $(abs_srcdir)`,$$tst \
- PATH="$(VG_PATH_PREFIX)`pwd`/../../src$(PATH_SEPARATOR)$$PATH"
-
-editpl = sed -e 's,@''PERL''@,$(PERL),g' -e 's,@''srcdir''@,$(srcdir),g'
-
-TESTS = $x-tests
-
-mk_script = $(srcdir)/../mk-script
-$(srcdir)/$x-tests: $(mk_script) Test.pm Makefile.am
- test '$x' = test && prog=../../src/$x || prog=$x; \
- $(PERL) -I$(srcdir) -w -- $(mk_script) $(srcdir) $$prog > $@.n
- mv $@.n $@
- chmod 755 $@
-
-MAINTAINERCLEANFILES = $x-tests $(maint_gen)
-CLEANFILES = $(run_gen)
-
-check: $(maint_gen)
-
-$(srcdir)/Makefile.am: ../Makefile.am.in Test.pm $(mk_script)
- rm -f $@ $@t
- sed -n '1,/^##test-files-begin/p' $(srcdir)/../Makefile.am.in > $@t
- tool=`echo $(subdir)|sed 's/^tests.//;s/-test//'`; \
- echo "x = $$tool" >> $@t
- $(PERL) -I$(srcdir) -w -- $(mk_script) $(srcdir) --list >> $@t
- sed -n '/^##test-files-end/,$$p' $(srcdir)/../Makefile.am.in >> $@t
- chmod -w $@t
- mv $@t $@
diff --git a/tests/tac/Makefile.in b/tests/tac/Makefile.in
deleted file mode 100644
index 68b4045..0000000
--- a/tests/tac/Makefile.in
+++ /dev/null
@@ -1,780 +0,0 @@
-# Makefile.in generated by automake 1.10 from Makefile.am.
-# @configure_input@
-
-# Copyright (C) 1994, 1995, 1996, 1997, 1998, 1999, 2000, 2001, 2002,
-# 2003, 2004, 2005, 2006 Free Software Foundation, Inc.
-# This Makefile.in is free software; the Free Software Foundation
-# gives unlimited permission to copy and/or distribute it,
-# with or without modifications, as long as this notice is preserved.
-
-# This program is distributed in the hope that it will be useful,
-# but WITHOUT ANY WARRANTY, to the extent permitted by law; without
-# even the implied warranty of MERCHANTABILITY or FITNESS FOR A
-# PARTICULAR PURPOSE.
-
-@SET_MAKE@
-
-# Make coreutils tests. -*-Makefile-*-
-
-# Copyright (C) 1997, 1998, 2000, 2003, 2004, 2006 Free Software
-# Foundation, Inc.
-
-# This program is free software; you can redistribute it and/or modify
-# it under the terms of the GNU General Public License as published by
-# the Free Software Foundation; either version 2 of the License, or
-# (at your option) any later version.
-
-# This program is distributed in the hope that it will be useful,
-# but WITHOUT ANY WARRANTY; without even the implied warranty of
-# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
-# GNU General Public License for more details.
-
-# You should have received a copy of the GNU General Public License
-# along with this program; if not, write to the Free Software
-# Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA
-# 02110-1301, USA.
-
-VPATH = @srcdir@
-pkgdatadir = $(datadir)/@PACKAGE@
-pkglibdir = $(libdir)/@PACKAGE@
-pkgincludedir = $(includedir)/@PACKAGE@
-am__cd = CDPATH="$${ZSH_VERSION+.}$(PATH_SEPARATOR)" && cd
-install_sh_DATA = $(install_sh) -c -m 644
-install_sh_PROGRAM = $(install_sh) -c
-install_sh_SCRIPT = $(install_sh) -c
-INSTALL_HEADER = $(INSTALL_DATA)
-transform = $(program_transform_name)
-NORMAL_INSTALL = :
-PRE_INSTALL = :
-POST_INSTALL = :
-NORMAL_UNINSTALL = :
-PRE_UNINSTALL = :
-POST_UNINSTALL = :
-build_triplet = @build@
-host_triplet = @host@
-subdir = tests/tac
-DIST_COMMON = $(srcdir)/Makefile.am $(srcdir)/Makefile.in
-ACLOCAL_M4 = $(top_srcdir)/aclocal.m4
-am__aclocal_m4_deps = $(top_srcdir)/m4/absolute-header.m4 \
- $(top_srcdir)/m4/acl.m4 $(top_srcdir)/m4/alloca.m4 \
- $(top_srcdir)/m4/allocsa.m4 $(top_srcdir)/m4/argmatch.m4 \
- $(top_srcdir)/m4/arpa_inet_h.m4 $(top_srcdir)/m4/assert.m4 \
- $(top_srcdir)/m4/atexit.m4 $(top_srcdir)/m4/autobuild.m4 \
- $(top_srcdir)/m4/backupfile.m4 $(top_srcdir)/m4/base64.m4 \
- $(top_srcdir)/m4/bison.m4 $(top_srcdir)/m4/boottime.m4 \
- $(top_srcdir)/m4/c-strtod.m4 $(top_srcdir)/m4/calloc.m4 \
- $(top_srcdir)/m4/canon-host.m4 \
- $(top_srcdir)/m4/canonicalize.m4 \
- $(top_srcdir)/m4/chdir-long.m4 $(top_srcdir)/m4/check-decl.m4 \
- $(top_srcdir)/m4/chown.m4 $(top_srcdir)/m4/clock_time.m4 \
- $(top_srcdir)/m4/cloexec.m4 $(top_srcdir)/m4/close-stream.m4 \
- $(top_srcdir)/m4/closeout.m4 $(top_srcdir)/m4/codeset.m4 \
- $(top_srcdir)/m4/config-h.m4 $(top_srcdir)/m4/cycle-check.m4 \
- $(top_srcdir)/m4/d-ino.m4 $(top_srcdir)/m4/d-type.m4 \
- $(top_srcdir)/m4/dirfd.m4 $(top_srcdir)/m4/dirname.m4 \
- $(top_srcdir)/m4/dos.m4 $(top_srcdir)/m4/double-slash-root.m4 \
- $(top_srcdir)/m4/dup2.m4 $(top_srcdir)/m4/eealloc.m4 \
- $(top_srcdir)/m4/eoverflow.m4 $(top_srcdir)/m4/error.m4 \
- $(top_srcdir)/m4/euidaccess-stat.m4 \
- $(top_srcdir)/m4/euidaccess.m4 $(top_srcdir)/m4/exclude.m4 \
- $(top_srcdir)/m4/exitfail.m4 $(top_srcdir)/m4/extensions.m4 \
- $(top_srcdir)/m4/fchdir.m4 $(top_srcdir)/m4/fcntl-safer.m4 \
- $(top_srcdir)/m4/fcntl_h.m4 $(top_srcdir)/m4/fd-reopen.m4 \
- $(top_srcdir)/m4/file-type.m4 $(top_srcdir)/m4/fileblocks.m4 \
- $(top_srcdir)/m4/filemode.m4 $(top_srcdir)/m4/filenamecat.m4 \
- $(top_srcdir)/m4/flexmember.m4 $(top_srcdir)/m4/fnmatch.m4 \
- $(top_srcdir)/m4/fpending.m4 $(top_srcdir)/m4/fprintftime.m4 \
- $(top_srcdir)/m4/free.m4 $(top_srcdir)/m4/fstypename.m4 \
- $(top_srcdir)/m4/fsusage.m4 $(top_srcdir)/m4/ftruncate.m4 \
- $(top_srcdir)/m4/fts.m4 $(top_srcdir)/m4/getaddrinfo.m4 \
- $(top_srcdir)/m4/getcwd-abort-bug.m4 \
- $(top_srcdir)/m4/getcwd-path-max.m4 $(top_srcdir)/m4/getcwd.m4 \
- $(top_srcdir)/m4/getdate.m4 $(top_srcdir)/m4/getdelim.m4 \
- $(top_srcdir)/m4/getgroups.m4 $(top_srcdir)/m4/gethostname.m4 \
- $(top_srcdir)/m4/gethrxtime.m4 $(top_srcdir)/m4/getline.m4 \
- $(top_srcdir)/m4/getloadavg.m4 $(top_srcdir)/m4/getndelim2.m4 \
- $(top_srcdir)/m4/getopt.m4 $(top_srcdir)/m4/getpagesize.m4 \
- $(top_srcdir)/m4/getpass.m4 $(top_srcdir)/m4/gettext.m4 \
- $(top_srcdir)/m4/gettime.m4 $(top_srcdir)/m4/gettimeofday.m4 \
- $(top_srcdir)/m4/getugroups.m4 \
- $(top_srcdir)/m4/getusershell.m4 $(top_srcdir)/m4/glibc21.m4 \
- $(top_srcdir)/m4/gnulib-common.m4 \
- $(top_srcdir)/m4/gnulib-comp.m4 \
- $(top_srcdir)/m4/group-member.m4 \
- $(top_srcdir)/m4/hard-locale.m4 $(top_srcdir)/m4/hash.m4 \
- $(top_srcdir)/m4/host-os.m4 $(top_srcdir)/m4/human.m4 \
- $(top_srcdir)/m4/i-ring.m4 $(top_srcdir)/m4/iconv.m4 \
- $(top_srcdir)/m4/idcache.m4 $(top_srcdir)/m4/inet_ntop.m4 \
- $(top_srcdir)/m4/inline.m4 $(top_srcdir)/m4/intmax_t.m4 \
- $(top_srcdir)/m4/inttostr.m4 $(top_srcdir)/m4/inttypes-pri.m4 \
- $(top_srcdir)/m4/inttypes.m4 $(top_srcdir)/m4/inttypes_h.m4 \
- $(top_srcdir)/m4/isapipe.m4 $(top_srcdir)/m4/jm-macros.m4 \
- $(top_srcdir)/m4/jm-winsz1.m4 $(top_srcdir)/m4/jm-winsz2.m4 \
- $(top_srcdir)/m4/lchmod.m4 $(top_srcdir)/m4/lchown.m4 \
- $(top_srcdir)/m4/lib-check.m4 $(top_srcdir)/m4/lib-ignore.m4 \
- $(top_srcdir)/m4/lib-ld.m4 $(top_srcdir)/m4/lib-link.m4 \
- $(top_srcdir)/m4/lib-prefix.m4 $(top_srcdir)/m4/link-follow.m4 \
- $(top_srcdir)/m4/localcharset.m4 \
- $(top_srcdir)/m4/long-options.m4 \
- $(top_srcdir)/m4/longdouble.m4 $(top_srcdir)/m4/longlong.m4 \
- $(top_srcdir)/m4/ls-mntd-fs.m4 $(top_srcdir)/m4/lstat.m4 \
- $(top_srcdir)/m4/mbchar.m4 $(top_srcdir)/m4/mbiter.m4 \
- $(top_srcdir)/m4/mbrtowc.m4 $(top_srcdir)/m4/mbscasecmp.m4 \
- $(top_srcdir)/m4/mbstate_t.m4 $(top_srcdir)/m4/mbswidth.m4 \
- $(top_srcdir)/m4/md5.m4 $(top_srcdir)/m4/memcasecmp.m4 \
- $(top_srcdir)/m4/memchr.m4 $(top_srcdir)/m4/memcmp.m4 \
- $(top_srcdir)/m4/memcoll.m4 $(top_srcdir)/m4/memcpy.m4 \
- $(top_srcdir)/m4/memmove.m4 $(top_srcdir)/m4/mempcpy.m4 \
- $(top_srcdir)/m4/memrchr.m4 $(top_srcdir)/m4/memset.m4 \
- $(top_srcdir)/m4/memxfrm.m4 $(top_srcdir)/m4/mkancesdirs.m4 \
- $(top_srcdir)/m4/mkdir-p.m4 $(top_srcdir)/m4/mkdir-slash.m4 \
- $(top_srcdir)/m4/mkstemp.m4 $(top_srcdir)/m4/mktime.m4 \
- $(top_srcdir)/m4/modechange.m4 $(top_srcdir)/m4/mountlist.m4 \
- $(top_srcdir)/m4/mpsort.m4 $(top_srcdir)/m4/nanosleep.m4 \
- $(top_srcdir)/m4/netinet_in_h.m4 $(top_srcdir)/m4/nls.m4 \
- $(top_srcdir)/m4/openat.m4 $(top_srcdir)/m4/pathmax.m4 \
- $(top_srcdir)/m4/perl.m4 $(top_srcdir)/m4/physmem.m4 \
- $(top_srcdir)/m4/po.m4 $(top_srcdir)/m4/posixtm.m4 \
- $(top_srcdir)/m4/posixver.m4 $(top_srcdir)/m4/prereq.m4 \
- $(top_srcdir)/m4/progtest.m4 $(top_srcdir)/m4/putenv.m4 \
- $(top_srcdir)/m4/quote.m4 $(top_srcdir)/m4/quotearg.m4 \
- $(top_srcdir)/m4/randint.m4 $(top_srcdir)/m4/randperm.m4 \
- $(top_srcdir)/m4/randread.m4 $(top_srcdir)/m4/readlink.m4 \
- $(top_srcdir)/m4/readtokens.m4 $(top_srcdir)/m4/readutmp.m4 \
- $(top_srcdir)/m4/regex.m4 \
- $(top_srcdir)/m4/rename-dest-slash.m4 \
- $(top_srcdir)/m4/rename.m4 $(top_srcdir)/m4/rmdir-errno.m4 \
- $(top_srcdir)/m4/rmdir.m4 $(top_srcdir)/m4/root-dev-ino.m4 \
- $(top_srcdir)/m4/rpmatch.m4 $(top_srcdir)/m4/safe-read.m4 \
- $(top_srcdir)/m4/safe-write.m4 $(top_srcdir)/m4/same.m4 \
- $(top_srcdir)/m4/save-cwd.m4 $(top_srcdir)/m4/savedir.m4 \
- $(top_srcdir)/m4/savewd.m4 $(top_srcdir)/m4/setenv.m4 \
- $(top_srcdir)/m4/settime.m4 $(top_srcdir)/m4/sha1.m4 \
- $(top_srcdir)/m4/sha256.m4 $(top_srcdir)/m4/sha512.m4 \
- $(top_srcdir)/m4/sig2str.m4 $(top_srcdir)/m4/snprintf.m4 \
- $(top_srcdir)/m4/socklen.m4 $(top_srcdir)/m4/sockpfaf.m4 \
- $(top_srcdir)/m4/ssize_t.m4 $(top_srcdir)/m4/st_dm_mode.m4 \
- $(top_srcdir)/m4/stat-prog.m4 $(top_srcdir)/m4/stat-time.m4 \
- $(top_srcdir)/m4/stdarg.m4 $(top_srcdir)/m4/stdbool.m4 \
- $(top_srcdir)/m4/stdint.m4 $(top_srcdir)/m4/stdint_h.m4 \
- $(top_srcdir)/m4/stdio-safer.m4 $(top_srcdir)/m4/stdio_h.m4 \
- $(top_srcdir)/m4/stdlib-safer.m4 $(top_srcdir)/m4/stdlib_h.m4 \
- $(top_srcdir)/m4/stpcpy.m4 $(top_srcdir)/m4/strcspn.m4 \
- $(top_srcdir)/m4/strdup.m4 $(top_srcdir)/m4/strftime.m4 \
- $(top_srcdir)/m4/string_h.m4 $(top_srcdir)/m4/strndup.m4 \
- $(top_srcdir)/m4/strnlen.m4 $(top_srcdir)/m4/strnumcmp.m4 \
- $(top_srcdir)/m4/strpbrk.m4 $(top_srcdir)/m4/strtod.m4 \
- $(top_srcdir)/m4/strtoimax.m4 $(top_srcdir)/m4/strtol.m4 \
- $(top_srcdir)/m4/strtoll.m4 $(top_srcdir)/m4/strtoul.m4 \
- $(top_srcdir)/m4/strtoull.m4 $(top_srcdir)/m4/strtoumax.m4 \
- $(top_srcdir)/m4/strverscmp.m4 \
- $(top_srcdir)/m4/sys_socket_h.m4 \
- $(top_srcdir)/m4/sys_stat_h.m4 $(top_srcdir)/m4/sys_time_h.m4 \
- $(top_srcdir)/m4/tempname.m4 $(top_srcdir)/m4/time_h.m4 \
- $(top_srcdir)/m4/time_r.m4 $(top_srcdir)/m4/timespec.m4 \
- $(top_srcdir)/m4/tm_gmtoff.m4 $(top_srcdir)/m4/tzset.m4 \
- $(top_srcdir)/m4/unicodeio.m4 $(top_srcdir)/m4/unistd-safer.m4 \
- $(top_srcdir)/m4/unistd_h.m4 $(top_srcdir)/m4/unlink-busy.m4 \
- $(top_srcdir)/m4/unlinkdir.m4 $(top_srcdir)/m4/unlocked-io.m4 \
- $(top_srcdir)/m4/uptime.m4 $(top_srcdir)/m4/userspec.m4 \
- $(top_srcdir)/m4/utimbuf.m4 $(top_srcdir)/m4/utime.m4 \
- $(top_srcdir)/m4/utimecmp.m4 $(top_srcdir)/m4/utimens.m4 \
- $(top_srcdir)/m4/utimes-null.m4 $(top_srcdir)/m4/utimes.m4 \
- $(top_srcdir)/m4/vasnprintf.m4 $(top_srcdir)/m4/vasprintf.m4 \
- $(top_srcdir)/m4/wchar.m4 $(top_srcdir)/m4/wchar_t.m4 \
- $(top_srcdir)/m4/wctype.m4 $(top_srcdir)/m4/wcwidth.m4 \
- $(top_srcdir)/m4/wint_t.m4 $(top_srcdir)/m4/xalloc.m4 \
- $(top_srcdir)/m4/xfts.m4 $(top_srcdir)/m4/xgetcwd.m4 \
- $(top_srcdir)/m4/xnanosleep.m4 $(top_srcdir)/m4/xstrndup.m4 \
- $(top_srcdir)/m4/xstrtod.m4 $(top_srcdir)/m4/xstrtol.m4 \
- $(top_srcdir)/m4/yesno.m4 $(top_srcdir)/configure.ac
-am__configure_deps = $(am__aclocal_m4_deps) $(CONFIGURE_DEPENDENCIES) \
- $(ACLOCAL_M4)
-mkinstalldirs = $(install_sh) -d
-CONFIG_HEADER = $(top_builddir)/lib/config.h
-CONFIG_CLEAN_FILES =
-SCRIPTS = $(noinst_SCRIPTS)
-SOURCES =
-DIST_SOURCES =
-DISTFILES = $(DIST_COMMON) $(DIST_SOURCES) $(TEXINFOS) $(EXTRA_DIST)
-ABSOLUTE_DIRENT_H = @ABSOLUTE_DIRENT_H@
-ABSOLUTE_FCNTL_H = @ABSOLUTE_FCNTL_H@
-ABSOLUTE_INTTYPES_H = @ABSOLUTE_INTTYPES_H@
-ABSOLUTE_NETINET_IN_H = @ABSOLUTE_NETINET_IN_H@
-ABSOLUTE_STDINT_H = @ABSOLUTE_STDINT_H@
-ABSOLUTE_STDIO_H = @ABSOLUTE_STDIO_H@
-ABSOLUTE_STDLIB_H = @ABSOLUTE_STDLIB_H@
-ABSOLUTE_STRING_H = @ABSOLUTE_STRING_H@
-ABSOLUTE_SYS_SOCKET_H = @ABSOLUTE_SYS_SOCKET_H@
-ABSOLUTE_SYS_STAT_H = @ABSOLUTE_SYS_STAT_H@
-ABSOLUTE_SYS_TIME_H = @ABSOLUTE_SYS_TIME_H@
-ABSOLUTE_TIME_H = @ABSOLUTE_TIME_H@
-ABSOLUTE_UNISTD_H = @ABSOLUTE_UNISTD_H@
-ABSOLUTE_WCHAR_H = @ABSOLUTE_WCHAR_H@
-ABSOLUTE_WCTYPE_H = @ABSOLUTE_WCTYPE_H@
-ACLOCAL = @ACLOCAL@
-ALLOCA = @ALLOCA@
-ALLOCA_H = @ALLOCA_H@
-AMTAR = @AMTAR@
-ARPA_INET_H = @ARPA_INET_H@
-AUTOCONF = @AUTOCONF@
-AUTOHEADER = @AUTOHEADER@
-AUTOMAKE = @AUTOMAKE@
-AWK = @AWK@
-BITSIZEOF_PTRDIFF_T = @BITSIZEOF_PTRDIFF_T@
-BITSIZEOF_SIG_ATOMIC_T = @BITSIZEOF_SIG_ATOMIC_T@
-BITSIZEOF_SIZE_T = @BITSIZEOF_SIZE_T@
-BITSIZEOF_WCHAR_T = @BITSIZEOF_WCHAR_T@
-BITSIZEOF_WINT_T = @BITSIZEOF_WINT_T@
-CC = @CC@
-CCDEPMODE = @CCDEPMODE@
-CFLAGS = @CFLAGS@
-CPP = @CPP@
-CPPFLAGS = @CPPFLAGS@
-CYGPATH_W = @CYGPATH_W@
-DEFAULT_POSIX2_VERSION = @DEFAULT_POSIX2_VERSION@
-DEFS = @DEFS@
-DEPDIR = @DEPDIR@
-DF_PROG = @DF_PROG@
-DIRENT_H = @DIRENT_H@
-ECHO_C = @ECHO_C@
-ECHO_N = @ECHO_N@
-ECHO_T = @ECHO_T@
-EGREP = @EGREP@
-EOVERFLOW = @EOVERFLOW@
-EXEEXT = @EXEEXT@
-FCNTL_H = @FCNTL_H@
-FNMATCH_H = @FNMATCH_H@
-GETLOADAVG_LIBS = @GETLOADAVG_LIBS@
-GETOPT_H = @GETOPT_H@
-GLIBC21 = @GLIBC21@
-GMSGFMT = @GMSGFMT@
-GMSGFMT_015 = @GMSGFMT_015@
-GNULIB_CHOWN = @GNULIB_CHOWN@
-GNULIB_DUP2 = @GNULIB_DUP2@
-GNULIB_FCHDIR = @GNULIB_FCHDIR@
-GNULIB_FPRINTF_POSIX = @GNULIB_FPRINTF_POSIX@
-GNULIB_FTRUNCATE = @GNULIB_FTRUNCATE@
-GNULIB_GETCWD = @GNULIB_GETCWD@
-GNULIB_GETLOGIN_R = @GNULIB_GETLOGIN_R@
-GNULIB_GETSUBOPT = @GNULIB_GETSUBOPT@
-GNULIB_IMAXABS = @GNULIB_IMAXABS@
-GNULIB_IMAXDIV = @GNULIB_IMAXDIV@
-GNULIB_MBSCASECMP = @GNULIB_MBSCASECMP@
-GNULIB_MBSCASESTR = @GNULIB_MBSCASESTR@
-GNULIB_MBSCHR = @GNULIB_MBSCHR@
-GNULIB_MBSCSPN = @GNULIB_MBSCSPN@
-GNULIB_MBSLEN = @GNULIB_MBSLEN@
-GNULIB_MBSNCASECMP = @GNULIB_MBSNCASECMP@
-GNULIB_MBSPBRK = @GNULIB_MBSPBRK@
-GNULIB_MBSPCASECMP = @GNULIB_MBSPCASECMP@
-GNULIB_MBSRCHR = @GNULIB_MBSRCHR@
-GNULIB_MBSSEP = @GNULIB_MBSSEP@
-GNULIB_MBSSPN = @GNULIB_MBSSPN@
-GNULIB_MBSSTR = @GNULIB_MBSSTR@
-GNULIB_MBSTOK_R = @GNULIB_MBSTOK_R@
-GNULIB_MEMMEM = @GNULIB_MEMMEM@
-GNULIB_MEMPCPY = @GNULIB_MEMPCPY@
-GNULIB_MEMRCHR = @GNULIB_MEMRCHR@
-GNULIB_MKDTEMP = @GNULIB_MKDTEMP@
-GNULIB_MKSTEMP = @GNULIB_MKSTEMP@
-GNULIB_PRINTF_POSIX = @GNULIB_PRINTF_POSIX@
-GNULIB_READLINK = @GNULIB_READLINK@
-GNULIB_SNPRINTF = @GNULIB_SNPRINTF@
-GNULIB_SPRINTF_POSIX = @GNULIB_SPRINTF_POSIX@
-GNULIB_STPCPY = @GNULIB_STPCPY@
-GNULIB_STPNCPY = @GNULIB_STPNCPY@
-GNULIB_STRCASESTR = @GNULIB_STRCASESTR@
-GNULIB_STRCHRNUL = @GNULIB_STRCHRNUL@
-GNULIB_STRDUP = @GNULIB_STRDUP@
-GNULIB_STRNDUP = @GNULIB_STRNDUP@
-GNULIB_STRNLEN = @GNULIB_STRNLEN@
-GNULIB_STRPBRK = @GNULIB_STRPBRK@
-GNULIB_STRSEP = @GNULIB_STRSEP@
-GNULIB_STRTOIMAX = @GNULIB_STRTOIMAX@
-GNULIB_STRTOK_R = @GNULIB_STRTOK_R@
-GNULIB_STRTOUMAX = @GNULIB_STRTOUMAX@
-GNULIB_VFPRINTF_POSIX = @GNULIB_VFPRINTF_POSIX@
-GNULIB_VPRINTF_POSIX = @GNULIB_VPRINTF_POSIX@
-GNULIB_VSNPRINTF = @GNULIB_VSNPRINTF@
-GNULIB_VSPRINTF_POSIX = @GNULIB_VSPRINTF_POSIX@
-GNU_PACKAGE = @GNU_PACKAGE@
-GREP = @GREP@
-HAVE_DECL_GETLOGIN_R = @HAVE_DECL_GETLOGIN_R@
-HAVE_DECL_IMAXABS = @HAVE_DECL_IMAXABS@
-HAVE_DECL_IMAXDIV = @HAVE_DECL_IMAXDIV@
-HAVE_DECL_MEMMEM = @HAVE_DECL_MEMMEM@
-HAVE_DECL_MEMRCHR = @HAVE_DECL_MEMRCHR@
-HAVE_DECL_SNPRINTF = @HAVE_DECL_SNPRINTF@
-HAVE_DECL_STRDUP = @HAVE_DECL_STRDUP@
-HAVE_DECL_STRNCASECMP = @HAVE_DECL_STRNCASECMP@
-HAVE_DECL_STRNDUP = @HAVE_DECL_STRNDUP@
-HAVE_DECL_STRNLEN = @HAVE_DECL_STRNLEN@
-HAVE_DECL_STRTOIMAX = @HAVE_DECL_STRTOIMAX@
-HAVE_DECL_STRTOK_R = @HAVE_DECL_STRTOK_R@
-HAVE_DECL_STRTOUMAX = @HAVE_DECL_STRTOUMAX@
-HAVE_DECL_VSNPRINTF = @HAVE_DECL_VSNPRINTF@
-HAVE_DUP2 = @HAVE_DUP2@
-HAVE_FTRUNCATE = @HAVE_FTRUNCATE@
-HAVE_GETSUBOPT = @HAVE_GETSUBOPT@
-HAVE_INTTYPES_H = @HAVE_INTTYPES_H@
-HAVE_LONG_LONG_INT = @HAVE_LONG_LONG_INT@
-HAVE_MEMPCPY = @HAVE_MEMPCPY@
-HAVE_MKDTEMP = @HAVE_MKDTEMP@
-HAVE_NETINET_IN_H = @HAVE_NETINET_IN_H@
-HAVE_READLINK = @HAVE_READLINK@
-HAVE_SIGNED_SIG_ATOMIC_T = @HAVE_SIGNED_SIG_ATOMIC_T@
-HAVE_SIGNED_WCHAR_T = @HAVE_SIGNED_WCHAR_T@
-HAVE_SIGNED_WINT_T = @HAVE_SIGNED_WINT_T@
-HAVE_STDINT_H = @HAVE_STDINT_H@
-HAVE_STPCPY = @HAVE_STPCPY@
-HAVE_STPNCPY = @HAVE_STPNCPY@
-HAVE_STRCASECMP = @HAVE_STRCASECMP@
-HAVE_STRCASESTR = @HAVE_STRCASESTR@
-HAVE_STRCHRNUL = @HAVE_STRCHRNUL@
-HAVE_STRNDUP = @HAVE_STRNDUP@
-HAVE_STRPBRK = @HAVE_STRPBRK@
-HAVE_STRSEP = @HAVE_STRSEP@
-HAVE_STRUCT_TIMEVAL = @HAVE_STRUCT_TIMEVAL@
-HAVE_SYS_BITYPES_H = @HAVE_SYS_BITYPES_H@
-HAVE_SYS_INTTYPES_H = @HAVE_SYS_INTTYPES_H@
-HAVE_SYS_SOCKET_H = @HAVE_SYS_SOCKET_H@
-HAVE_SYS_TIME_H = @HAVE_SYS_TIME_H@
-HAVE_SYS_TYPES_H = @HAVE_SYS_TYPES_H@
-HAVE_UNISTD_H = @HAVE_UNISTD_H@
-HAVE_UNSIGNED_LONG_LONG_INT = @HAVE_UNSIGNED_LONG_LONG_INT@
-HAVE_WCTYPE_H = @HAVE_WCTYPE_H@
-HAVE_WINSOCK2_H = @HAVE_WINSOCK2_H@
-HAVE_WINT_T = @HAVE_WINT_T@
-HAVE_WS2TCPIP_H = @HAVE_WS2TCPIP_H@
-HAVE__BOOL = @HAVE__BOOL@
-HELP2MAN = @HELP2MAN@
-INSTALL = @INSTALL@
-INSTALL_DATA = @INSTALL_DATA@
-INSTALL_PROGRAM = @INSTALL_PROGRAM@
-INSTALL_SCRIPT = @INSTALL_SCRIPT@
-INSTALL_STRIP_PROGRAM = @INSTALL_STRIP_PROGRAM@
-INTLLIBS = @INTLLIBS@
-INTL_MACOSX_LIBS = @INTL_MACOSX_LIBS@
-INTTYPES_H = @INTTYPES_H@
-KMEM_GROUP = @KMEM_GROUP@
-LDFLAGS = @LDFLAGS@
-LIBCOREUTILS_LIBDEPS = @LIBCOREUTILS_LIBDEPS@
-LIBCOREUTILS_LTLIBDEPS = @LIBCOREUTILS_LTLIBDEPS@
-LIBICONV = @LIBICONV@
-LIBINTL = @LIBINTL@
-LIBOBJS = @LIBOBJS@
-LIBS = @LIBS@
-LIB_ACL = @LIB_ACL@
-LIB_ACL_TRIVIAL = @LIB_ACL_TRIVIAL@
-LIB_CLOCK_GETTIME = @LIB_CLOCK_GETTIME@
-LIB_CRYPT = @LIB_CRYPT@
-LIB_EACCESS = @LIB_EACCESS@
-LIB_FDATASYNC = @LIB_FDATASYNC@
-LIB_GETHRXTIME = @LIB_GETHRXTIME@
-LIB_NANOSLEEP = @LIB_NANOSLEEP@
-LN_S = @LN_S@
-LTLIBICONV = @LTLIBICONV@
-LTLIBINTL = @LTLIBINTL@
-LTLIBOBJS = @LTLIBOBJS@
-MAKEINFO = @MAKEINFO@
-MAN = @MAN@
-MKDIR_P = @MKDIR_P@
-MSGFMT = @MSGFMT@
-MSGFMT_015 = @MSGFMT_015@
-MSGMERGE = @MSGMERGE@
-NEED_SETGID = @NEED_SETGID@
-NETINET_IN_H = @NETINET_IN_H@
-OBJEXT = @OBJEXT@
-OPTIONAL_BIN_PROGS = @OPTIONAL_BIN_PROGS@
-PACKAGE = @PACKAGE@
-PACKAGE_BUGREPORT = @PACKAGE_BUGREPORT@
-PACKAGE_NAME = @PACKAGE_NAME@
-PACKAGE_STRING = @PACKAGE_STRING@
-PACKAGE_TARNAME = @PACKAGE_TARNAME@
-PACKAGE_VERSION = @PACKAGE_VERSION@
-PATH_SEPARATOR = @PATH_SEPARATOR@
-PERL = @PERL@
-POSUB = @POSUB@
-POW_LIB = @POW_LIB@
-PRIPTR_PREFIX = @PRIPTR_PREFIX@
-PRI_MACROS_BROKEN = @PRI_MACROS_BROKEN@
-PTRDIFF_T_SUFFIX = @PTRDIFF_T_SUFFIX@
-RANLIB = @RANLIB@
-REPLACE_CHOWN = @REPLACE_CHOWN@
-REPLACE_FCHDIR = @REPLACE_FCHDIR@
-REPLACE_FPRINTF = @REPLACE_FPRINTF@
-REPLACE_GETCWD = @REPLACE_GETCWD@
-REPLACE_GETTIMEOFDAY = @REPLACE_GETTIMEOFDAY@
-REPLACE_LOCALTIME_R = @REPLACE_LOCALTIME_R@
-REPLACE_MKSTEMP = @REPLACE_MKSTEMP@
-REPLACE_NANOSLEEP = @REPLACE_NANOSLEEP@
-REPLACE_PRINTF = @REPLACE_PRINTF@
-REPLACE_SNPRINTF = @REPLACE_SNPRINTF@
-REPLACE_SPRINTF = @REPLACE_SPRINTF@
-REPLACE_STRPTIME = @REPLACE_STRPTIME@
-REPLACE_TIMEGM = @REPLACE_TIMEGM@
-REPLACE_VFPRINTF = @REPLACE_VFPRINTF@
-REPLACE_VPRINTF = @REPLACE_VPRINTF@
-REPLACE_VSNPRINTF = @REPLACE_VSNPRINTF@
-REPLACE_VSPRINTF = @REPLACE_VSPRINTF@
-SEQ_LIBM = @SEQ_LIBM@
-SET_MAKE = @SET_MAKE@
-SHELL = @SHELL@
-SIG_ATOMIC_T_SUFFIX = @SIG_ATOMIC_T_SUFFIX@
-SIZE_T_SUFFIX = @SIZE_T_SUFFIX@
-STDBOOL_H = @STDBOOL_H@
-STDINT_H = @STDINT_H@
-STRIP = @STRIP@
-SYS_SOCKET_H = @SYS_SOCKET_H@
-SYS_STAT_H = @SYS_STAT_H@
-SYS_TIME_H = @SYS_TIME_H@
-SYS_TIME_H_DEFINES_STRUCT_TIMESPEC = @SYS_TIME_H_DEFINES_STRUCT_TIMESPEC@
-TIME_H_DEFINES_STRUCT_TIMESPEC = @TIME_H_DEFINES_STRUCT_TIMESPEC@
-U = @U@
-USE_NLS = @USE_NLS@
-VERSION = @VERSION@
-WCHAR_H = @WCHAR_H@
-WCHAR_T_SUFFIX = @WCHAR_T_SUFFIX@
-WCTYPE_H = @WCTYPE_H@
-WINT_T_SUFFIX = @WINT_T_SUFFIX@
-XGETTEXT = @XGETTEXT@
-XGETTEXT_015 = @XGETTEXT_015@
-YACC = @YACC@
-YFLAGS = @YFLAGS@
-abs_builddir = @abs_builddir@
-abs_srcdir = @abs_srcdir@
-abs_top_builddir = @abs_top_builddir@
-abs_top_srcdir = @abs_top_srcdir@
-ac_ct_CC = @ac_ct_CC@
-am__include = @am__include@
-am__leading_dot = @am__leading_dot@
-am__quote = @am__quote@
-am__tar = @am__tar@
-am__untar = @am__untar@
-bindir = @bindir@
-build = @build@
-build_alias = @build_alias@
-build_cpu = @build_cpu@
-build_os = @build_os@
-build_vendor = @build_vendor@
-builddir = @builddir@
-datadir = @datadir@
-datarootdir = @datarootdir@
-docdir = @docdir@
-dvidir = @dvidir@
-exec_prefix = @exec_prefix@
-gl_LIBOBJS = @gl_LIBOBJS@
-gl_LTLIBOBJS = @gl_LTLIBOBJS@
-host = @host@
-host_alias = @host_alias@
-host_cpu = @host_cpu@
-host_os = @host_os@
-host_vendor = @host_vendor@
-htmldir = @htmldir@
-includedir = @includedir@
-infodir = @infodir@
-install_sh = @install_sh@
-libdir = @libdir@
-libexecdir = @libexecdir@
-localedir = @localedir@
-localstatedir = @localstatedir@
-mandir = @mandir@
-mkdir_p = @mkdir_p@
-oldincludedir = @oldincludedir@
-pdfdir = @pdfdir@
-prefix = @prefix@
-program_transform_name = @program_transform_name@
-psdir = @psdir@
-sbindir = @sbindir@
-sharedstatedir = @sharedstatedir@
-srcdir = @srcdir@
-sysconfdir = @sysconfdir@
-target_alias = @target_alias@
-top_builddir = @top_builddir@
-top_srcdir = @top_srcdir@
-x = tac
-explicit =
-maint_gen = basic-0.I basic-0.X basic-a.I basic-a.X basic-b.I basic-b.X \
-basic-c.I basic-c.X basic-d.I basic-d.X basic-e.I basic-e.X basic-f.I \
-basic-f.X basic-g.I basic-g.X basic-h.I basic-h.X basic-i.I basic-i.X \
-basic-j.I basic-j.X basic-k.I basic-k.X b2-e.I b2-e.X b2-f.I b2-f.X b2-g.I \
-b2-g.X b2-h.I b2-h.X b2-i.I b2-i.X b2-j.I b2-j.X b2-k.I b2-k.X opt-b.I \
-opt-b.X opt-s.I opt-s.X opt-sb.I opt-sb.X opt-r.I opt-r.X opt-r2.I opt-r2.X \
-opt-br.I opt-br.X opt-br2.I opt-br2.X
-
-run_gen = basic-0.O basic-0.E basic-a.O basic-a.E basic-b.O basic-b.E \
-basic-c.O basic-c.E basic-d.O basic-d.E basic-e.O basic-e.E basic-f.O \
-basic-f.E basic-g.O basic-g.E basic-h.O basic-h.E basic-i.O basic-i.E \
-basic-j.O basic-j.E basic-k.O basic-k.E b2-e.O b2-e.E b2-f.O b2-f.E b2-g.O \
-b2-g.E b2-h.O b2-h.E b2-i.O b2-i.E b2-j.O b2-j.E b2-k.O b2-k.E opt-b.O \
-opt-b.E opt-s.O opt-s.E opt-sb.O opt-sb.E opt-r.O opt-r.E opt-r2.O opt-r2.E \
-opt-br.O opt-br.E opt-br2.O opt-br2.E
-
-EXTRA_DIST = Test.pm $x-tests $(explicit) $(maint_gen)
-noinst_SCRIPTS = $x-tests
-TESTS_ENVIRONMENT = \
- CU_TEST_NAME=`basename $(abs_srcdir)`,$$tst \
- PATH="$(VG_PATH_PREFIX)`pwd`/../../src$(PATH_SEPARATOR)$$PATH"
-
-editpl = sed -e 's,@''PERL''@,$(PERL),g' -e 's,@''srcdir''@,$(srcdir),g'
-TESTS = $x-tests
-mk_script = $(srcdir)/../mk-script
-MAINTAINERCLEANFILES = $x-tests $(maint_gen)
-CLEANFILES = $(run_gen)
-all: all-am
-
-.SUFFIXES:
-$(srcdir)/Makefile.in: $(srcdir)/Makefile.am $(am__configure_deps)
- @for dep in $?; do \
- case '$(am__configure_deps)' in \
- *$$dep*) \
- cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh \
- && exit 0; \
- exit 1;; \
- esac; \
- done; \
- echo ' cd $(top_srcdir) && $(AUTOMAKE) --gnu tests/tac/Makefile'; \
- cd $(top_srcdir) && \
- $(AUTOMAKE) --gnu tests/tac/Makefile
-.PRECIOUS: Makefile
-Makefile: $(srcdir)/Makefile.in $(top_builddir)/config.status
- @case '$?' in \
- *config.status*) \
- cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh;; \
- *) \
- echo ' cd $(top_builddir) && $(SHELL) ./config.status $(subdir)/$@ $(am__depfiles_maybe)'; \
- cd $(top_builddir) && $(SHELL) ./config.status $(subdir)/$@ $(am__depfiles_maybe);; \
- esac;
-
-$(top_builddir)/config.status: $(top_srcdir)/configure $(CONFIG_STATUS_DEPENDENCIES)
- cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh
-
-$(top_srcdir)/configure: $(am__configure_deps)
- cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh
-$(ACLOCAL_M4): $(am__aclocal_m4_deps)
- cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh
-tags: TAGS
-TAGS:
-
-ctags: CTAGS
-CTAGS:
-
-
-check-TESTS: $(TESTS)
- @failed=0; all=0; xfail=0; xpass=0; skip=0; ws='[ ]'; \
- srcdir=$(srcdir); export srcdir; \
- list=' $(TESTS) '; \
- if test -n "$$list"; then \
- for tst in $$list; do \
- if test -f ./$$tst; then dir=./; \
- elif test -f $$tst; then dir=; \
- else dir="$(srcdir)/"; fi; \
- if $(TESTS_ENVIRONMENT) $${dir}$$tst; then \
- all=`expr $$all + 1`; \
- case " $(XFAIL_TESTS) " in \
- *$$ws$$tst$$ws*) \
- xpass=`expr $$xpass + 1`; \
- failed=`expr $$failed + 1`; \
- echo "XPASS: $$tst"; \
- ;; \
- *) \
- echo "PASS: $$tst"; \
- ;; \
- esac; \
- elif test $$? -ne 77; then \
- all=`expr $$all + 1`; \
- case " $(XFAIL_TESTS) " in \
- *$$ws$$tst$$ws*) \
- xfail=`expr $$xfail + 1`; \
- echo "XFAIL: $$tst"; \
- ;; \
- *) \
- failed=`expr $$failed + 1`; \
- echo "FAIL: $$tst"; \
- ;; \
- esac; \
- else \
- skip=`expr $$skip + 1`; \
- echo "SKIP: $$tst"; \
- fi; \
- done; \
- if test "$$failed" -eq 0; then \
- if test "$$xfail" -eq 0; then \
- banner="All $$all tests passed"; \
- else \
- banner="All $$all tests behaved as expected ($$xfail expected failures)"; \
- fi; \
- else \
- if test "$$xpass" -eq 0; then \
- banner="$$failed of $$all tests failed"; \
- else \
- banner="$$failed of $$all tests did not behave as expected ($$xpass unexpected passes)"; \
- fi; \
- fi; \
- dashes="$$banner"; \
- skipped=""; \
- if test "$$skip" -ne 0; then \
- skipped="($$skip tests were not run)"; \
- test `echo "$$skipped" | wc -c` -le `echo "$$banner" | wc -c` || \
- dashes="$$skipped"; \
- fi; \
- report=""; \
- if test "$$failed" -ne 0 && test -n "$(PACKAGE_BUGREPORT)"; then \
- report="Please report to $(PACKAGE_BUGREPORT)"; \
- test `echo "$$report" | wc -c` -le `echo "$$banner" | wc -c` || \
- dashes="$$report"; \
- fi; \
- dashes=`echo "$$dashes" | sed s/./=/g`; \
- echo "$$dashes"; \
- echo "$$banner"; \
- test -z "$$skipped" || echo "$$skipped"; \
- test -z "$$report" || echo "$$report"; \
- echo "$$dashes"; \
- test "$$failed" -eq 0; \
- else :; fi
-
-distdir: $(DISTFILES)
- @srcdirstrip=`echo "$(srcdir)" | sed 's/[].[^$$\\*]/\\\\&/g'`; \
- topsrcdirstrip=`echo "$(top_srcdir)" | sed 's/[].[^$$\\*]/\\\\&/g'`; \
- list='$(DISTFILES)'; \
- dist_files=`for file in $$list; do echo $$file; done | \
- sed -e "s|^$$srcdirstrip/||;t" \
- -e "s|^$$topsrcdirstrip/|$(top_builddir)/|;t"`; \
- case $$dist_files in \
- */*) $(MKDIR_P) `echo "$$dist_files" | \
- sed '/\//!d;s|^|$(distdir)/|;s,/[^/]*$$,,' | \
- sort -u` ;; \
- esac; \
- for file in $$dist_files; do \
- if test -f $$file || test -d $$file; then d=.; else d=$(srcdir); fi; \
- if test -d $$d/$$file; then \
- dir=`echo "/$$file" | sed -e 's,/[^/]*$$,,'`; \
- if test -d $(srcdir)/$$file && test $$d != $(srcdir); then \
- cp -pR $(srcdir)/$$file $(distdir)$$dir || exit 1; \
- fi; \
- cp -pR $$d/$$file $(distdir)$$dir || exit 1; \
- else \
- test -f $(distdir)/$$file \
- || cp -p $$d/$$file $(distdir)/$$file \
- || exit 1; \
- fi; \
- done
-check-am: all-am
- $(MAKE) $(AM_MAKEFLAGS) check-TESTS
-check: check-am
-all-am: Makefile $(SCRIPTS)
-installdirs:
-install: install-am
-install-exec: install-exec-am
-install-data: install-data-am
-uninstall: uninstall-am
-
-install-am: all-am
- @$(MAKE) $(AM_MAKEFLAGS) install-exec-am install-data-am
-
-installcheck: installcheck-am
-install-strip:
- $(MAKE) $(AM_MAKEFLAGS) INSTALL_PROGRAM="$(INSTALL_STRIP_PROGRAM)" \
- install_sh_PROGRAM="$(INSTALL_STRIP_PROGRAM)" INSTALL_STRIP_FLAG=-s \
- `test -z '$(STRIP)' || \
- echo "INSTALL_PROGRAM_ENV=STRIPPROG='$(STRIP)'"` install
-mostlyclean-generic:
-
-clean-generic:
- -test -z "$(CLEANFILES)" || rm -f $(CLEANFILES)
-
-distclean-generic:
- -test -z "$(CONFIG_CLEAN_FILES)" || rm -f $(CONFIG_CLEAN_FILES)
-
-maintainer-clean-generic:
- @echo "This command is intended for maintainers to use"
- @echo "it deletes files that may require special tools to rebuild."
- -test -z "$(MAINTAINERCLEANFILES)" || rm -f $(MAINTAINERCLEANFILES)
-clean: clean-am
-
-clean-am: clean-generic mostlyclean-am
-
-distclean: distclean-am
- -rm -f Makefile
-distclean-am: clean-am distclean-generic
-
-dvi: dvi-am
-
-dvi-am:
-
-html: html-am
-
-info: info-am
-
-info-am:
-
-install-data-am:
-
-install-dvi: install-dvi-am
-
-install-exec-am:
-
-install-html: install-html-am
-
-install-info: install-info-am
-
-install-man:
-
-install-pdf: install-pdf-am
-
-install-ps: install-ps-am
-
-installcheck-am:
-
-maintainer-clean: maintainer-clean-am
- -rm -f Makefile
-maintainer-clean-am: distclean-am maintainer-clean-generic
-
-mostlyclean: mostlyclean-am
-
-mostlyclean-am: mostlyclean-generic
-
-pdf: pdf-am
-
-pdf-am:
-
-ps: ps-am
-
-ps-am:
-
-uninstall-am:
-
-.MAKE: install-am install-strip
-
-.PHONY: all all-am check check-TESTS check-am clean clean-generic \
- distclean distclean-generic distdir dvi dvi-am html html-am \
- info info-am install install-am install-data install-data-am \
- install-dvi install-dvi-am install-exec install-exec-am \
- install-html install-html-am install-info install-info-am \
- install-man install-pdf install-pdf-am install-ps \
- install-ps-am install-strip installcheck installcheck-am \
- installdirs maintainer-clean maintainer-clean-generic \
- mostlyclean mostlyclean-generic pdf pdf-am ps ps-am uninstall \
- uninstall-am
-
-$(srcdir)/$x-tests: $(mk_script) Test.pm Makefile.am
- test '$x' = test && prog=../../src/$x || prog=$x; \
- $(PERL) -I$(srcdir) -w -- $(mk_script) $(srcdir) $$prog > $@.n
- mv $@.n $@
- chmod 755 $@
-
-check: $(maint_gen)
-
-$(srcdir)/Makefile.am: ../Makefile.am.in Test.pm $(mk_script)
- rm -f $@ $@t
- sed -n '1,/^##test-files-begin/p' $(srcdir)/../Makefile.am.in > $@t
- tool=`echo $(subdir)|sed 's/^tests.//;s/-test//'`; \
- echo "x = $$tool" >> $@t
- $(PERL) -I$(srcdir) -w -- $(mk_script) $(srcdir) --list >> $@t
- sed -n '/^##test-files-end/,$$p' $(srcdir)/../Makefile.am.in >> $@t
- chmod -w $@t
- mv $@t $@
-# Tell versions [3.59,3.63) of GNU make to not export all variables.
-# Otherwise a system limit (for SysV at least) may be exceeded.
-.NOEXPORT:
diff --git a/tests/tac/Test.pm b/tests/tac/Test.pm
deleted file mode 100644
index 8e46b46..0000000
--- a/tests/tac/Test.pm
+++ /dev/null
@@ -1,84 +0,0 @@
-# Test "tac".
-
-# Copyright (C) 1997, 1998 Free Software Foundation, Inc.
-
-# This program is free software; you can redistribute it and/or modify
-# it under the terms of the GNU General Public License as published by
-# the Free Software Foundation; either version 2 of the License, or
-# (at your option) any later version.
-
-# This program is distributed in the hope that it will be useful,
-# but WITHOUT ANY WARRANTY; without even the implied warranty of
-# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
-# GNU General Public License for more details.
-
-# You should have received a copy of the GNU General Public License
-# along with this program; if not, write to the Free Software
-# Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA
-# 02110-1301, USA.
-
-package Test;
-require 5.002;
-use strict;
-
-my @tv = (
-# test name, options, input, expected output, expected return code
-#
-['basic-0', '', "", "", 0],
-['basic-a', '', "a", "a\n", 0],
-['basic-b', '', "\n", "\n", 0],
-['basic-c', '', "a\n", "a\n", 0],
-['basic-d', '', "a\nb", "b\na\n", 0],
-['basic-e', '', "a\nb\n", "b\na\n", 0],
-['basic-f', '', "1234567\n8\n", "8\n1234567\n", 0],
-['basic-g', '', "12345678\n9\n", "9\n12345678\n", 0],
-['basic-h', '', "123456\n8\n", "8\n123456\n", 0],
-['basic-i', '', "12345\n8\n", "8\n12345\n", 0],
-['basic-j', '', "1234\n8\n", "8\n1234\n", 0],
-['basic-k', '', "123\n8\n", "8\n123\n", 0],
-
-['b2-e', '', "a\nb", "b\na\n", 0],
-['b2-f', '', "1234567\n8", "8\n1234567\n", 0],
-['b2-g', '', "12345678\n9", "9\n12345678\n", 0],
-['b2-h', '', "123456\n8", "8\n123456\n", 0],
-['b2-i', '', "12345\n8", "8\n12345\n", 0],
-['b2-j', '', "1234\n8", "8\n1234\n", 0],
-['b2-k', '', "123\n8", "8\n123\n", 0],
-
-['opt-b', '-b', "\na\nb\nc", "\nc\nb\na", 0],
-['opt-s', '-s:', "a:b:c:", "c:b:a:", 0],
-['opt-sb', '-s : -b', ":a:b:c", ":c:b:a", 0],
-['opt-r', "-r -s '\\._+'", "1._2.__3.___4._", "4._3.___2.__1._", 0],
-
-['opt-r2', "-r -s '\\._+'", "a.___b.__1._2.__3.___4._",
- "4._3.___2.__1._b.__a.___", 0],
-
-# This gave incorrect output (.___4._2.__3._1) with tac-1.22.
-['opt-br', "-b -r -s '\\._+'", "._1._2.__3.___4", ".___4.__3._2._1", 0],
-
-['opt-br2', "-b -r -s '\\._+'", ".__x.___y.____z._1._2.__3.___4",
- ".___4.__3._2._1.____z.___y.__x", 0],
-);
-
-sub test_vector
-{
- my $t;
- foreach $t (@tv)
- {
- my ($test_name, $flags, $in, $exp, $ret) = @$t;
-
- $Test::input_via{$test_name} = {REDIR => 0, FILE => 0, PIPE => 0}
- }
-
- # Temporarily turn off losing tests.
- # These tests lose because tac_file isn't yet up to snuff with tac_mem.
- foreach $t (qw (basic-a basic-d b2-e b2-f b2-g b2-h b2-i b2-j b2-k))
- {
- # $Test::input_via{$t} = {REDIR => 0, PIPE => 0};
- $Test::input_via{$t} = {};
- }
-
- return @tv;
-}
-
-1;
diff --git a/tests/tac/b2-e.I b/tests/tac/b2-e.I
deleted file mode 100644
index 0a207c0..0000000
--- a/tests/tac/b2-e.I
+++ /dev/null
@@ -1,2 +0,0 @@
-a
-b \ No newline at end of file
diff --git a/tests/tac/b2-e.X b/tests/tac/b2-e.X
deleted file mode 100644
index 0e1677a..0000000
--- a/tests/tac/b2-e.X
+++ /dev/null
@@ -1,2 +0,0 @@
-b
-a
diff --git a/tests/tac/b2-f.I b/tests/tac/b2-f.I
deleted file mode 100644
index 1458212..0000000
--- a/tests/tac/b2-f.I
+++ /dev/null
@@ -1,2 +0,0 @@
-1234567
-8 \ No newline at end of file
diff --git a/tests/tac/b2-f.X b/tests/tac/b2-f.X
deleted file mode 100644
index 3da46de..0000000
--- a/tests/tac/b2-f.X
+++ /dev/null
@@ -1,2 +0,0 @@
-8
-1234567
diff --git a/tests/tac/b2-g.I b/tests/tac/b2-g.I
deleted file mode 100644
index 2ac4056..0000000
--- a/tests/tac/b2-g.I
+++ /dev/null
@@ -1,2 +0,0 @@
-12345678
-9 \ No newline at end of file
diff --git a/tests/tac/b2-g.X b/tests/tac/b2-g.X
deleted file mode 100644
index 3f82e65..0000000
--- a/tests/tac/b2-g.X
+++ /dev/null
@@ -1,2 +0,0 @@
-9
-12345678
diff --git a/tests/tac/b2-h.I b/tests/tac/b2-h.I
deleted file mode 100644
index 2f5e8c7..0000000
--- a/tests/tac/b2-h.I
+++ /dev/null
@@ -1,2 +0,0 @@
-123456
-8 \ No newline at end of file
diff --git a/tests/tac/b2-h.X b/tests/tac/b2-h.X
deleted file mode 100644
index ae8cdac..0000000
--- a/tests/tac/b2-h.X
+++ /dev/null
@@ -1,2 +0,0 @@
-8
-123456
diff --git a/tests/tac/b2-i.I b/tests/tac/b2-i.I
deleted file mode 100644
index 844107d..0000000
--- a/tests/tac/b2-i.I
+++ /dev/null
@@ -1,2 +0,0 @@
-12345
-8 \ No newline at end of file
diff --git a/tests/tac/b2-i.X b/tests/tac/b2-i.X
deleted file mode 100644
index 01522ae..0000000
--- a/tests/tac/b2-i.X
+++ /dev/null
@@ -1,2 +0,0 @@
-8
-12345
diff --git a/tests/tac/b2-j.I b/tests/tac/b2-j.I
deleted file mode 100644
index bee9832..0000000
--- a/tests/tac/b2-j.I
+++ /dev/null
@@ -1,2 +0,0 @@
-1234
-8 \ No newline at end of file
diff --git a/tests/tac/b2-j.X b/tests/tac/b2-j.X
deleted file mode 100644
index 06f555a..0000000
--- a/tests/tac/b2-j.X
+++ /dev/null
@@ -1,2 +0,0 @@
-8
-1234
diff --git a/tests/tac/b2-k.I b/tests/tac/b2-k.I
deleted file mode 100644
index 279b67b..0000000
--- a/tests/tac/b2-k.I
+++ /dev/null
@@ -1,2 +0,0 @@
-123
-8 \ No newline at end of file
diff --git a/tests/tac/b2-k.X b/tests/tac/b2-k.X
deleted file mode 100644
index 197142a..0000000
--- a/tests/tac/b2-k.X
+++ /dev/null
@@ -1,2 +0,0 @@
-8
-123
diff --git a/tests/tac/basic-0.I b/tests/tac/basic-0.I
deleted file mode 100644
index e69de29..0000000
--- a/tests/tac/basic-0.I
+++ /dev/null
diff --git a/tests/tac/basic-0.X b/tests/tac/basic-0.X
deleted file mode 100644
index e69de29..0000000
--- a/tests/tac/basic-0.X
+++ /dev/null
diff --git a/tests/tac/basic-a.I b/tests/tac/basic-a.I
deleted file mode 100644
index 2e65efe..0000000
--- a/tests/tac/basic-a.I
+++ /dev/null
@@ -1 +0,0 @@
-a \ No newline at end of file
diff --git a/tests/tac/basic-a.X b/tests/tac/basic-a.X
deleted file mode 100644
index 7898192..0000000
--- a/tests/tac/basic-a.X
+++ /dev/null
@@ -1 +0,0 @@
-a
diff --git a/tests/tac/basic-b.I b/tests/tac/basic-b.I
deleted file mode 100644
index 8b13789..0000000
--- a/tests/tac/basic-b.I
+++ /dev/null
@@ -1 +0,0 @@
-
diff --git a/tests/tac/basic-b.X b/tests/tac/basic-b.X
deleted file mode 100644
index 8b13789..0000000
--- a/tests/tac/basic-b.X
+++ /dev/null
@@ -1 +0,0 @@
-
diff --git a/tests/tac/basic-c.I b/tests/tac/basic-c.I
deleted file mode 100644
index 7898192..0000000
--- a/tests/tac/basic-c.I
+++ /dev/null
@@ -1 +0,0 @@
-a
diff --git a/tests/tac/basic-c.X b/tests/tac/basic-c.X
deleted file mode 100644
index 7898192..0000000
--- a/tests/tac/basic-c.X
+++ /dev/null
@@ -1 +0,0 @@
-a
diff --git a/tests/tac/basic-d.I b/tests/tac/basic-d.I
deleted file mode 100644
index 0a207c0..0000000
--- a/tests/tac/basic-d.I
+++ /dev/null
@@ -1,2 +0,0 @@
-a
-b \ No newline at end of file
diff --git a/tests/tac/basic-d.X b/tests/tac/basic-d.X
deleted file mode 100644
index 0e1677a..0000000
--- a/tests/tac/basic-d.X
+++ /dev/null
@@ -1,2 +0,0 @@
-b
-a
diff --git a/tests/tac/basic-e.I b/tests/tac/basic-e.I
deleted file mode 100644
index 422c2b7..0000000
--- a/tests/tac/basic-e.I
+++ /dev/null
@@ -1,2 +0,0 @@
-a
-b
diff --git a/tests/tac/basic-e.X b/tests/tac/basic-e.X
deleted file mode 100644
index 0e1677a..0000000
--- a/tests/tac/basic-e.X
+++ /dev/null
@@ -1,2 +0,0 @@
-b
-a
diff --git a/tests/tac/basic-f.I b/tests/tac/basic-f.I
deleted file mode 100644
index c71c7f5..0000000
--- a/tests/tac/basic-f.I
+++ /dev/null
@@ -1,2 +0,0 @@
-1234567
-8
diff --git a/tests/tac/basic-f.X b/tests/tac/basic-f.X
deleted file mode 100644
index 3da46de..0000000
--- a/tests/tac/basic-f.X
+++ /dev/null
@@ -1,2 +0,0 @@
-8
-1234567
diff --git a/tests/tac/basic-g.I b/tests/tac/basic-g.I
deleted file mode 100644
index bbf18de..0000000
--- a/tests/tac/basic-g.I
+++ /dev/null
@@ -1,2 +0,0 @@
-12345678
-9
diff --git a/tests/tac/basic-g.X b/tests/tac/basic-g.X
deleted file mode 100644
index 3f82e65..0000000
--- a/tests/tac/basic-g.X
+++ /dev/null
@@ -1,2 +0,0 @@
-9
-12345678
diff --git a/tests/tac/basic-h.I b/tests/tac/basic-h.I
deleted file mode 100644
index 58ee29d..0000000
--- a/tests/tac/basic-h.I
+++ /dev/null
@@ -1,2 +0,0 @@
-123456
-8
diff --git a/tests/tac/basic-h.X b/tests/tac/basic-h.X
deleted file mode 100644
index ae8cdac..0000000
--- a/tests/tac/basic-h.X
+++ /dev/null
@@ -1,2 +0,0 @@
-8
-123456
diff --git a/tests/tac/basic-i.I b/tests/tac/basic-i.I
deleted file mode 100644
index 34c1635..0000000
--- a/tests/tac/basic-i.I
+++ /dev/null
@@ -1,2 +0,0 @@
-12345
-8
diff --git a/tests/tac/basic-i.X b/tests/tac/basic-i.X
deleted file mode 100644
index 01522ae..0000000
--- a/tests/tac/basic-i.X
+++ /dev/null
@@ -1,2 +0,0 @@
-8
-12345
diff --git a/tests/tac/basic-j.I b/tests/tac/basic-j.I
deleted file mode 100644
index 6c9636c..0000000
--- a/tests/tac/basic-j.I
+++ /dev/null
@@ -1,2 +0,0 @@
-1234
-8
diff --git a/tests/tac/basic-j.X b/tests/tac/basic-j.X
deleted file mode 100644
index 06f555a..0000000
--- a/tests/tac/basic-j.X
+++ /dev/null
@@ -1,2 +0,0 @@
-8
-1234
diff --git a/tests/tac/basic-k.I b/tests/tac/basic-k.I
deleted file mode 100644
index a3e245a..0000000
--- a/tests/tac/basic-k.I
+++ /dev/null
@@ -1,2 +0,0 @@
-123
-8
diff --git a/tests/tac/basic-k.X b/tests/tac/basic-k.X
deleted file mode 100644
index 197142a..0000000
--- a/tests/tac/basic-k.X
+++ /dev/null
@@ -1,2 +0,0 @@
-8
-123
diff --git a/tests/tac/opt-b.I b/tests/tac/opt-b.I
deleted file mode 100644
index d98735a..0000000
--- a/tests/tac/opt-b.I
+++ /dev/null
@@ -1,4 +0,0 @@
-
-a
-b
-c \ No newline at end of file
diff --git a/tests/tac/opt-b.X b/tests/tac/opt-b.X
deleted file mode 100644
index 4f0460c..0000000
--- a/tests/tac/opt-b.X
+++ /dev/null
@@ -1,4 +0,0 @@
-
-c
-b
-a \ No newline at end of file
diff --git a/tests/tac/opt-br.I b/tests/tac/opt-br.I
deleted file mode 100644
index a5e7adf..0000000
--- a/tests/tac/opt-br.I
+++ /dev/null
@@ -1 +0,0 @@
-._1._2.__3.___4 \ No newline at end of file
diff --git a/tests/tac/opt-br.X b/tests/tac/opt-br.X
deleted file mode 100644
index f25c4b4..0000000
--- a/tests/tac/opt-br.X
+++ /dev/null
@@ -1 +0,0 @@
-.___4.__3._2._1 \ No newline at end of file
diff --git a/tests/tac/opt-br2.I b/tests/tac/opt-br2.I
deleted file mode 100644
index fc2415b..0000000
--- a/tests/tac/opt-br2.I
+++ /dev/null
@@ -1 +0,0 @@
-.__x.___y.____z._1._2.__3.___4 \ No newline at end of file
diff --git a/tests/tac/opt-br2.X b/tests/tac/opt-br2.X
deleted file mode 100644
index b2c421d..0000000
--- a/tests/tac/opt-br2.X
+++ /dev/null
@@ -1 +0,0 @@
-.___4.__3._2._1.____z.___y.__x \ No newline at end of file
diff --git a/tests/tac/opt-r.I b/tests/tac/opt-r.I
deleted file mode 100644
index 1e0da31..0000000
--- a/tests/tac/opt-r.I
+++ /dev/null
@@ -1 +0,0 @@
-1._2.__3.___4._ \ No newline at end of file
diff --git a/tests/tac/opt-r.X b/tests/tac/opt-r.X
deleted file mode 100644
index 2efe3d7..0000000
--- a/tests/tac/opt-r.X
+++ /dev/null
@@ -1 +0,0 @@
-4._3.___2.__1._ \ No newline at end of file
diff --git a/tests/tac/opt-r2.I b/tests/tac/opt-r2.I
deleted file mode 100644
index 5d8ff72..0000000
--- a/tests/tac/opt-r2.I
+++ /dev/null
@@ -1 +0,0 @@
-a.___b.__1._2.__3.___4._ \ No newline at end of file
diff --git a/tests/tac/opt-r2.X b/tests/tac/opt-r2.X
deleted file mode 100644
index 9ce88b8..0000000
--- a/tests/tac/opt-r2.X
+++ /dev/null
@@ -1 +0,0 @@
-4._3.___2.__1._b.__a.___ \ No newline at end of file
diff --git a/tests/tac/opt-s.I b/tests/tac/opt-s.I
deleted file mode 100644
index a55a1a4..0000000
--- a/tests/tac/opt-s.I
+++ /dev/null
@@ -1 +0,0 @@
-a:b:c: \ No newline at end of file
diff --git a/tests/tac/opt-s.X b/tests/tac/opt-s.X
deleted file mode 100644
index b9c3b4d..0000000
--- a/tests/tac/opt-s.X
+++ /dev/null
@@ -1 +0,0 @@
-c:b:a: \ No newline at end of file
diff --git a/tests/tac/opt-sb.I b/tests/tac/opt-sb.I
deleted file mode 100644
index e6f798f..0000000
--- a/tests/tac/opt-sb.I
+++ /dev/null
@@ -1 +0,0 @@
-:a:b:c \ No newline at end of file
diff --git a/tests/tac/opt-sb.X b/tests/tac/opt-sb.X
deleted file mode 100644
index 9d70946..0000000
--- a/tests/tac/opt-sb.X
+++ /dev/null
@@ -1 +0,0 @@
-:c:b:a \ No newline at end of file
diff --git a/tests/tac/tac-tests b/tests/tac/tac-tests
deleted file mode 100755
index 511c032..0000000
--- a/tests/tac/tac-tests
+++ /dev/null
@@ -1,945 +0,0 @@
-#! /bin/sh
-# This script was generated automatically by mk-script.
-case $# in
- 0) xx='tac';;
- *) xx="$1";;
-esac
-test "$VERBOSE" && echo=echo || echo=:
-$echo testing program: $xx
-errors=0
-test "$srcdir" || srcdir=.
-test "$VERBOSE" && $xx --version 2> /dev/null
-
-# Make sure we get English translations.
-LANGUAGE=C
-export LANGUAGE
-LC_ALL=C
-export LC_ALL
-LANG=C
-export LANG
-
-$xx $srcdir/basic-0.I > basic-0.O 2> basic-0.E
-code=$?
-if test $code != 0; then
- $echo "Test basic-0(F) failed: $xx return code $code differs from expected value 0" 1>&2
- errors=`expr $errors + 1`
-else
- cmp basic-0.O $srcdir/basic-0.X > /dev/null 2>&1
- case $? in
- 0) if test "$VERBOSE"; then $echo "passed basic-0(F)"; fi;;
- 1) $echo "Test basic-0(F) failed: files basic-0.O and $srcdir/basic-0.X differ" 1>&2
- (diff -c basic-0.O $srcdir/basic-0.X) 2> /dev/null
- errors=`expr $errors + 1`;;
- 2) $echo "Test basic-0(F) may have failed." 1>&2
- $echo The command "cmp basic-0.O $srcdir/basic-0.X" failed. 1>&2
- errors=`expr $errors + 1`;;
- esac
-fi
-test -s basic-0.E || rm -f basic-0.E
-cat $srcdir/basic-0.I | $xx > basic-0.O 2> basic-0.E
-code=$?
-if test $code != 0; then
- $echo "Test basic-0(|) failed: $xx return code $code differs from expected value 0" 1>&2
- errors=`expr $errors + 1`
-else
- cmp basic-0.O $srcdir/basic-0.X > /dev/null 2>&1
- case $? in
- 0) if test "$VERBOSE"; then $echo "passed basic-0(|)"; fi;;
- 1) $echo "Test basic-0(|) failed: files basic-0.O and $srcdir/basic-0.X differ" 1>&2
- (diff -c basic-0.O $srcdir/basic-0.X) 2> /dev/null
- errors=`expr $errors + 1`;;
- 2) $echo "Test basic-0(|) may have failed." 1>&2
- $echo The command "cmp basic-0.O $srcdir/basic-0.X" failed. 1>&2
- errors=`expr $errors + 1`;;
- esac
-fi
-test -s basic-0.E || rm -f basic-0.E
-$xx < $srcdir/basic-0.I > basic-0.O 2> basic-0.E
-code=$?
-if test $code != 0; then
- $echo "Test basic-0(<) failed: $xx return code $code differs from expected value 0" 1>&2
- errors=`expr $errors + 1`
-else
- cmp basic-0.O $srcdir/basic-0.X > /dev/null 2>&1
- case $? in
- 0) if test "$VERBOSE"; then $echo "passed basic-0(<)"; fi;;
- 1) $echo "Test basic-0(<) failed: files basic-0.O and $srcdir/basic-0.X differ" 1>&2
- (diff -c basic-0.O $srcdir/basic-0.X) 2> /dev/null
- errors=`expr $errors + 1`;;
- 2) $echo "Test basic-0(<) may have failed." 1>&2
- $echo The command "cmp basic-0.O $srcdir/basic-0.X" failed. 1>&2
- errors=`expr $errors + 1`;;
- esac
-fi
-test -s basic-0.E || rm -f basic-0.E
-$xx $srcdir/basic-b.I > basic-b.O 2> basic-b.E
-code=$?
-if test $code != 0; then
- $echo "Test basic-b(F) failed: $xx return code $code differs from expected value 0" 1>&2
- errors=`expr $errors + 1`
-else
- cmp basic-b.O $srcdir/basic-b.X > /dev/null 2>&1
- case $? in
- 0) if test "$VERBOSE"; then $echo "passed basic-b(F)"; fi;;
- 1) $echo "Test basic-b(F) failed: files basic-b.O and $srcdir/basic-b.X differ" 1>&2
- (diff -c basic-b.O $srcdir/basic-b.X) 2> /dev/null
- errors=`expr $errors + 1`;;
- 2) $echo "Test basic-b(F) may have failed." 1>&2
- $echo The command "cmp basic-b.O $srcdir/basic-b.X" failed. 1>&2
- errors=`expr $errors + 1`;;
- esac
-fi
-test -s basic-b.E || rm -f basic-b.E
-cat $srcdir/basic-b.I | $xx > basic-b.O 2> basic-b.E
-code=$?
-if test $code != 0; then
- $echo "Test basic-b(|) failed: $xx return code $code differs from expected value 0" 1>&2
- errors=`expr $errors + 1`
-else
- cmp basic-b.O $srcdir/basic-b.X > /dev/null 2>&1
- case $? in
- 0) if test "$VERBOSE"; then $echo "passed basic-b(|)"; fi;;
- 1) $echo "Test basic-b(|) failed: files basic-b.O and $srcdir/basic-b.X differ" 1>&2
- (diff -c basic-b.O $srcdir/basic-b.X) 2> /dev/null
- errors=`expr $errors + 1`;;
- 2) $echo "Test basic-b(|) may have failed." 1>&2
- $echo The command "cmp basic-b.O $srcdir/basic-b.X" failed. 1>&2
- errors=`expr $errors + 1`;;
- esac
-fi
-test -s basic-b.E || rm -f basic-b.E
-$xx < $srcdir/basic-b.I > basic-b.O 2> basic-b.E
-code=$?
-if test $code != 0; then
- $echo "Test basic-b(<) failed: $xx return code $code differs from expected value 0" 1>&2
- errors=`expr $errors + 1`
-else
- cmp basic-b.O $srcdir/basic-b.X > /dev/null 2>&1
- case $? in
- 0) if test "$VERBOSE"; then $echo "passed basic-b(<)"; fi;;
- 1) $echo "Test basic-b(<) failed: files basic-b.O and $srcdir/basic-b.X differ" 1>&2
- (diff -c basic-b.O $srcdir/basic-b.X) 2> /dev/null
- errors=`expr $errors + 1`;;
- 2) $echo "Test basic-b(<) may have failed." 1>&2
- $echo The command "cmp basic-b.O $srcdir/basic-b.X" failed. 1>&2
- errors=`expr $errors + 1`;;
- esac
-fi
-test -s basic-b.E || rm -f basic-b.E
-$xx $srcdir/basic-c.I > basic-c.O 2> basic-c.E
-code=$?
-if test $code != 0; then
- $echo "Test basic-c(F) failed: $xx return code $code differs from expected value 0" 1>&2
- errors=`expr $errors + 1`
-else
- cmp basic-c.O $srcdir/basic-c.X > /dev/null 2>&1
- case $? in
- 0) if test "$VERBOSE"; then $echo "passed basic-c(F)"; fi;;
- 1) $echo "Test basic-c(F) failed: files basic-c.O and $srcdir/basic-c.X differ" 1>&2
- (diff -c basic-c.O $srcdir/basic-c.X) 2> /dev/null
- errors=`expr $errors + 1`;;
- 2) $echo "Test basic-c(F) may have failed." 1>&2
- $echo The command "cmp basic-c.O $srcdir/basic-c.X" failed. 1>&2
- errors=`expr $errors + 1`;;
- esac
-fi
-test -s basic-c.E || rm -f basic-c.E
-cat $srcdir/basic-c.I | $xx > basic-c.O 2> basic-c.E
-code=$?
-if test $code != 0; then
- $echo "Test basic-c(|) failed: $xx return code $code differs from expected value 0" 1>&2
- errors=`expr $errors + 1`
-else
- cmp basic-c.O $srcdir/basic-c.X > /dev/null 2>&1
- case $? in
- 0) if test "$VERBOSE"; then $echo "passed basic-c(|)"; fi;;
- 1) $echo "Test basic-c(|) failed: files basic-c.O and $srcdir/basic-c.X differ" 1>&2
- (diff -c basic-c.O $srcdir/basic-c.X) 2> /dev/null
- errors=`expr $errors + 1`;;
- 2) $echo "Test basic-c(|) may have failed." 1>&2
- $echo The command "cmp basic-c.O $srcdir/basic-c.X" failed. 1>&2
- errors=`expr $errors + 1`;;
- esac
-fi
-test -s basic-c.E || rm -f basic-c.E
-$xx < $srcdir/basic-c.I > basic-c.O 2> basic-c.E
-code=$?
-if test $code != 0; then
- $echo "Test basic-c(<) failed: $xx return code $code differs from expected value 0" 1>&2
- errors=`expr $errors + 1`
-else
- cmp basic-c.O $srcdir/basic-c.X > /dev/null 2>&1
- case $? in
- 0) if test "$VERBOSE"; then $echo "passed basic-c(<)"; fi;;
- 1) $echo "Test basic-c(<) failed: files basic-c.O and $srcdir/basic-c.X differ" 1>&2
- (diff -c basic-c.O $srcdir/basic-c.X) 2> /dev/null
- errors=`expr $errors + 1`;;
- 2) $echo "Test basic-c(<) may have failed." 1>&2
- $echo The command "cmp basic-c.O $srcdir/basic-c.X" failed. 1>&2
- errors=`expr $errors + 1`;;
- esac
-fi
-test -s basic-c.E || rm -f basic-c.E
-$xx $srcdir/basic-e.I > basic-e.O 2> basic-e.E
-code=$?
-if test $code != 0; then
- $echo "Test basic-e(F) failed: $xx return code $code differs from expected value 0" 1>&2
- errors=`expr $errors + 1`
-else
- cmp basic-e.O $srcdir/basic-e.X > /dev/null 2>&1
- case $? in
- 0) if test "$VERBOSE"; then $echo "passed basic-e(F)"; fi;;
- 1) $echo "Test basic-e(F) failed: files basic-e.O and $srcdir/basic-e.X differ" 1>&2
- (diff -c basic-e.O $srcdir/basic-e.X) 2> /dev/null
- errors=`expr $errors + 1`;;
- 2) $echo "Test basic-e(F) may have failed." 1>&2
- $echo The command "cmp basic-e.O $srcdir/basic-e.X" failed. 1>&2
- errors=`expr $errors + 1`;;
- esac
-fi
-test -s basic-e.E || rm -f basic-e.E
-cat $srcdir/basic-e.I | $xx > basic-e.O 2> basic-e.E
-code=$?
-if test $code != 0; then
- $echo "Test basic-e(|) failed: $xx return code $code differs from expected value 0" 1>&2
- errors=`expr $errors + 1`
-else
- cmp basic-e.O $srcdir/basic-e.X > /dev/null 2>&1
- case $? in
- 0) if test "$VERBOSE"; then $echo "passed basic-e(|)"; fi;;
- 1) $echo "Test basic-e(|) failed: files basic-e.O and $srcdir/basic-e.X differ" 1>&2
- (diff -c basic-e.O $srcdir/basic-e.X) 2> /dev/null
- errors=`expr $errors + 1`;;
- 2) $echo "Test basic-e(|) may have failed." 1>&2
- $echo The command "cmp basic-e.O $srcdir/basic-e.X" failed. 1>&2
- errors=`expr $errors + 1`;;
- esac
-fi
-test -s basic-e.E || rm -f basic-e.E
-$xx < $srcdir/basic-e.I > basic-e.O 2> basic-e.E
-code=$?
-if test $code != 0; then
- $echo "Test basic-e(<) failed: $xx return code $code differs from expected value 0" 1>&2
- errors=`expr $errors + 1`
-else
- cmp basic-e.O $srcdir/basic-e.X > /dev/null 2>&1
- case $? in
- 0) if test "$VERBOSE"; then $echo "passed basic-e(<)"; fi;;
- 1) $echo "Test basic-e(<) failed: files basic-e.O and $srcdir/basic-e.X differ" 1>&2
- (diff -c basic-e.O $srcdir/basic-e.X) 2> /dev/null
- errors=`expr $errors + 1`;;
- 2) $echo "Test basic-e(<) may have failed." 1>&2
- $echo The command "cmp basic-e.O $srcdir/basic-e.X" failed. 1>&2
- errors=`expr $errors + 1`;;
- esac
-fi
-test -s basic-e.E || rm -f basic-e.E
-$xx $srcdir/basic-f.I > basic-f.O 2> basic-f.E
-code=$?
-if test $code != 0; then
- $echo "Test basic-f(F) failed: $xx return code $code differs from expected value 0" 1>&2
- errors=`expr $errors + 1`
-else
- cmp basic-f.O $srcdir/basic-f.X > /dev/null 2>&1
- case $? in
- 0) if test "$VERBOSE"; then $echo "passed basic-f(F)"; fi;;
- 1) $echo "Test basic-f(F) failed: files basic-f.O and $srcdir/basic-f.X differ" 1>&2
- (diff -c basic-f.O $srcdir/basic-f.X) 2> /dev/null
- errors=`expr $errors + 1`;;
- 2) $echo "Test basic-f(F) may have failed." 1>&2
- $echo The command "cmp basic-f.O $srcdir/basic-f.X" failed. 1>&2
- errors=`expr $errors + 1`;;
- esac
-fi
-test -s basic-f.E || rm -f basic-f.E
-cat $srcdir/basic-f.I | $xx > basic-f.O 2> basic-f.E
-code=$?
-if test $code != 0; then
- $echo "Test basic-f(|) failed: $xx return code $code differs from expected value 0" 1>&2
- errors=`expr $errors + 1`
-else
- cmp basic-f.O $srcdir/basic-f.X > /dev/null 2>&1
- case $? in
- 0) if test "$VERBOSE"; then $echo "passed basic-f(|)"; fi;;
- 1) $echo "Test basic-f(|) failed: files basic-f.O and $srcdir/basic-f.X differ" 1>&2
- (diff -c basic-f.O $srcdir/basic-f.X) 2> /dev/null
- errors=`expr $errors + 1`;;
- 2) $echo "Test basic-f(|) may have failed." 1>&2
- $echo The command "cmp basic-f.O $srcdir/basic-f.X" failed. 1>&2
- errors=`expr $errors + 1`;;
- esac
-fi
-test -s basic-f.E || rm -f basic-f.E
-$xx < $srcdir/basic-f.I > basic-f.O 2> basic-f.E
-code=$?
-if test $code != 0; then
- $echo "Test basic-f(<) failed: $xx return code $code differs from expected value 0" 1>&2
- errors=`expr $errors + 1`
-else
- cmp basic-f.O $srcdir/basic-f.X > /dev/null 2>&1
- case $? in
- 0) if test "$VERBOSE"; then $echo "passed basic-f(<)"; fi;;
- 1) $echo "Test basic-f(<) failed: files basic-f.O and $srcdir/basic-f.X differ" 1>&2
- (diff -c basic-f.O $srcdir/basic-f.X) 2> /dev/null
- errors=`expr $errors + 1`;;
- 2) $echo "Test basic-f(<) may have failed." 1>&2
- $echo The command "cmp basic-f.O $srcdir/basic-f.X" failed. 1>&2
- errors=`expr $errors + 1`;;
- esac
-fi
-test -s basic-f.E || rm -f basic-f.E
-$xx $srcdir/basic-g.I > basic-g.O 2> basic-g.E
-code=$?
-if test $code != 0; then
- $echo "Test basic-g(F) failed: $xx return code $code differs from expected value 0" 1>&2
- errors=`expr $errors + 1`
-else
- cmp basic-g.O $srcdir/basic-g.X > /dev/null 2>&1
- case $? in
- 0) if test "$VERBOSE"; then $echo "passed basic-g(F)"; fi;;
- 1) $echo "Test basic-g(F) failed: files basic-g.O and $srcdir/basic-g.X differ" 1>&2
- (diff -c basic-g.O $srcdir/basic-g.X) 2> /dev/null
- errors=`expr $errors + 1`;;
- 2) $echo "Test basic-g(F) may have failed." 1>&2
- $echo The command "cmp basic-g.O $srcdir/basic-g.X" failed. 1>&2
- errors=`expr $errors + 1`;;
- esac
-fi
-test -s basic-g.E || rm -f basic-g.E
-cat $srcdir/basic-g.I | $xx > basic-g.O 2> basic-g.E
-code=$?
-if test $code != 0; then
- $echo "Test basic-g(|) failed: $xx return code $code differs from expected value 0" 1>&2
- errors=`expr $errors + 1`
-else
- cmp basic-g.O $srcdir/basic-g.X > /dev/null 2>&1
- case $? in
- 0) if test "$VERBOSE"; then $echo "passed basic-g(|)"; fi;;
- 1) $echo "Test basic-g(|) failed: files basic-g.O and $srcdir/basic-g.X differ" 1>&2
- (diff -c basic-g.O $srcdir/basic-g.X) 2> /dev/null
- errors=`expr $errors + 1`;;
- 2) $echo "Test basic-g(|) may have failed." 1>&2
- $echo The command "cmp basic-g.O $srcdir/basic-g.X" failed. 1>&2
- errors=`expr $errors + 1`;;
- esac
-fi
-test -s basic-g.E || rm -f basic-g.E
-$xx < $srcdir/basic-g.I > basic-g.O 2> basic-g.E
-code=$?
-if test $code != 0; then
- $echo "Test basic-g(<) failed: $xx return code $code differs from expected value 0" 1>&2
- errors=`expr $errors + 1`
-else
- cmp basic-g.O $srcdir/basic-g.X > /dev/null 2>&1
- case $? in
- 0) if test "$VERBOSE"; then $echo "passed basic-g(<)"; fi;;
- 1) $echo "Test basic-g(<) failed: files basic-g.O and $srcdir/basic-g.X differ" 1>&2
- (diff -c basic-g.O $srcdir/basic-g.X) 2> /dev/null
- errors=`expr $errors + 1`;;
- 2) $echo "Test basic-g(<) may have failed." 1>&2
- $echo The command "cmp basic-g.O $srcdir/basic-g.X" failed. 1>&2
- errors=`expr $errors + 1`;;
- esac
-fi
-test -s basic-g.E || rm -f basic-g.E
-$xx $srcdir/basic-h.I > basic-h.O 2> basic-h.E
-code=$?
-if test $code != 0; then
- $echo "Test basic-h(F) failed: $xx return code $code differs from expected value 0" 1>&2
- errors=`expr $errors + 1`
-else
- cmp basic-h.O $srcdir/basic-h.X > /dev/null 2>&1
- case $? in
- 0) if test "$VERBOSE"; then $echo "passed basic-h(F)"; fi;;
- 1) $echo "Test basic-h(F) failed: files basic-h.O and $srcdir/basic-h.X differ" 1>&2
- (diff -c basic-h.O $srcdir/basic-h.X) 2> /dev/null
- errors=`expr $errors + 1`;;
- 2) $echo "Test basic-h(F) may have failed." 1>&2
- $echo The command "cmp basic-h.O $srcdir/basic-h.X" failed. 1>&2
- errors=`expr $errors + 1`;;
- esac
-fi
-test -s basic-h.E || rm -f basic-h.E
-cat $srcdir/basic-h.I | $xx > basic-h.O 2> basic-h.E
-code=$?
-if test $code != 0; then
- $echo "Test basic-h(|) failed: $xx return code $code differs from expected value 0" 1>&2
- errors=`expr $errors + 1`
-else
- cmp basic-h.O $srcdir/basic-h.X > /dev/null 2>&1
- case $? in
- 0) if test "$VERBOSE"; then $echo "passed basic-h(|)"; fi;;
- 1) $echo "Test basic-h(|) failed: files basic-h.O and $srcdir/basic-h.X differ" 1>&2
- (diff -c basic-h.O $srcdir/basic-h.X) 2> /dev/null
- errors=`expr $errors + 1`;;
- 2) $echo "Test basic-h(|) may have failed." 1>&2
- $echo The command "cmp basic-h.O $srcdir/basic-h.X" failed. 1>&2
- errors=`expr $errors + 1`;;
- esac
-fi
-test -s basic-h.E || rm -f basic-h.E
-$xx < $srcdir/basic-h.I > basic-h.O 2> basic-h.E
-code=$?
-if test $code != 0; then
- $echo "Test basic-h(<) failed: $xx return code $code differs from expected value 0" 1>&2
- errors=`expr $errors + 1`
-else
- cmp basic-h.O $srcdir/basic-h.X > /dev/null 2>&1
- case $? in
- 0) if test "$VERBOSE"; then $echo "passed basic-h(<)"; fi;;
- 1) $echo "Test basic-h(<) failed: files basic-h.O and $srcdir/basic-h.X differ" 1>&2
- (diff -c basic-h.O $srcdir/basic-h.X) 2> /dev/null
- errors=`expr $errors + 1`;;
- 2) $echo "Test basic-h(<) may have failed." 1>&2
- $echo The command "cmp basic-h.O $srcdir/basic-h.X" failed. 1>&2
- errors=`expr $errors + 1`;;
- esac
-fi
-test -s basic-h.E || rm -f basic-h.E
-$xx $srcdir/basic-i.I > basic-i.O 2> basic-i.E
-code=$?
-if test $code != 0; then
- $echo "Test basic-i(F) failed: $xx return code $code differs from expected value 0" 1>&2
- errors=`expr $errors + 1`
-else
- cmp basic-i.O $srcdir/basic-i.X > /dev/null 2>&1
- case $? in
- 0) if test "$VERBOSE"; then $echo "passed basic-i(F)"; fi;;
- 1) $echo "Test basic-i(F) failed: files basic-i.O and $srcdir/basic-i.X differ" 1>&2
- (diff -c basic-i.O $srcdir/basic-i.X) 2> /dev/null
- errors=`expr $errors + 1`;;
- 2) $echo "Test basic-i(F) may have failed." 1>&2
- $echo The command "cmp basic-i.O $srcdir/basic-i.X" failed. 1>&2
- errors=`expr $errors + 1`;;
- esac
-fi
-test -s basic-i.E || rm -f basic-i.E
-cat $srcdir/basic-i.I | $xx > basic-i.O 2> basic-i.E
-code=$?
-if test $code != 0; then
- $echo "Test basic-i(|) failed: $xx return code $code differs from expected value 0" 1>&2
- errors=`expr $errors + 1`
-else
- cmp basic-i.O $srcdir/basic-i.X > /dev/null 2>&1
- case $? in
- 0) if test "$VERBOSE"; then $echo "passed basic-i(|)"; fi;;
- 1) $echo "Test basic-i(|) failed: files basic-i.O and $srcdir/basic-i.X differ" 1>&2
- (diff -c basic-i.O $srcdir/basic-i.X) 2> /dev/null
- errors=`expr $errors + 1`;;
- 2) $echo "Test basic-i(|) may have failed." 1>&2
- $echo The command "cmp basic-i.O $srcdir/basic-i.X" failed. 1>&2
- errors=`expr $errors + 1`;;
- esac
-fi
-test -s basic-i.E || rm -f basic-i.E
-$xx < $srcdir/basic-i.I > basic-i.O 2> basic-i.E
-code=$?
-if test $code != 0; then
- $echo "Test basic-i(<) failed: $xx return code $code differs from expected value 0" 1>&2
- errors=`expr $errors + 1`
-else
- cmp basic-i.O $srcdir/basic-i.X > /dev/null 2>&1
- case $? in
- 0) if test "$VERBOSE"; then $echo "passed basic-i(<)"; fi;;
- 1) $echo "Test basic-i(<) failed: files basic-i.O and $srcdir/basic-i.X differ" 1>&2
- (diff -c basic-i.O $srcdir/basic-i.X) 2> /dev/null
- errors=`expr $errors + 1`;;
- 2) $echo "Test basic-i(<) may have failed." 1>&2
- $echo The command "cmp basic-i.O $srcdir/basic-i.X" failed. 1>&2
- errors=`expr $errors + 1`;;
- esac
-fi
-test -s basic-i.E || rm -f basic-i.E
-$xx $srcdir/basic-j.I > basic-j.O 2> basic-j.E
-code=$?
-if test $code != 0; then
- $echo "Test basic-j(F) failed: $xx return code $code differs from expected value 0" 1>&2
- errors=`expr $errors + 1`
-else
- cmp basic-j.O $srcdir/basic-j.X > /dev/null 2>&1
- case $? in
- 0) if test "$VERBOSE"; then $echo "passed basic-j(F)"; fi;;
- 1) $echo "Test basic-j(F) failed: files basic-j.O and $srcdir/basic-j.X differ" 1>&2
- (diff -c basic-j.O $srcdir/basic-j.X) 2> /dev/null
- errors=`expr $errors + 1`;;
- 2) $echo "Test basic-j(F) may have failed." 1>&2
- $echo The command "cmp basic-j.O $srcdir/basic-j.X" failed. 1>&2
- errors=`expr $errors + 1`;;
- esac
-fi
-test -s basic-j.E || rm -f basic-j.E
-cat $srcdir/basic-j.I | $xx > basic-j.O 2> basic-j.E
-code=$?
-if test $code != 0; then
- $echo "Test basic-j(|) failed: $xx return code $code differs from expected value 0" 1>&2
- errors=`expr $errors + 1`
-else
- cmp basic-j.O $srcdir/basic-j.X > /dev/null 2>&1
- case $? in
- 0) if test "$VERBOSE"; then $echo "passed basic-j(|)"; fi;;
- 1) $echo "Test basic-j(|) failed: files basic-j.O and $srcdir/basic-j.X differ" 1>&2
- (diff -c basic-j.O $srcdir/basic-j.X) 2> /dev/null
- errors=`expr $errors + 1`;;
- 2) $echo "Test basic-j(|) may have failed." 1>&2
- $echo The command "cmp basic-j.O $srcdir/basic-j.X" failed. 1>&2
- errors=`expr $errors + 1`;;
- esac
-fi
-test -s basic-j.E || rm -f basic-j.E
-$xx < $srcdir/basic-j.I > basic-j.O 2> basic-j.E
-code=$?
-if test $code != 0; then
- $echo "Test basic-j(<) failed: $xx return code $code differs from expected value 0" 1>&2
- errors=`expr $errors + 1`
-else
- cmp basic-j.O $srcdir/basic-j.X > /dev/null 2>&1
- case $? in
- 0) if test "$VERBOSE"; then $echo "passed basic-j(<)"; fi;;
- 1) $echo "Test basic-j(<) failed: files basic-j.O and $srcdir/basic-j.X differ" 1>&2
- (diff -c basic-j.O $srcdir/basic-j.X) 2> /dev/null
- errors=`expr $errors + 1`;;
- 2) $echo "Test basic-j(<) may have failed." 1>&2
- $echo The command "cmp basic-j.O $srcdir/basic-j.X" failed. 1>&2
- errors=`expr $errors + 1`;;
- esac
-fi
-test -s basic-j.E || rm -f basic-j.E
-$xx $srcdir/basic-k.I > basic-k.O 2> basic-k.E
-code=$?
-if test $code != 0; then
- $echo "Test basic-k(F) failed: $xx return code $code differs from expected value 0" 1>&2
- errors=`expr $errors + 1`
-else
- cmp basic-k.O $srcdir/basic-k.X > /dev/null 2>&1
- case $? in
- 0) if test "$VERBOSE"; then $echo "passed basic-k(F)"; fi;;
- 1) $echo "Test basic-k(F) failed: files basic-k.O and $srcdir/basic-k.X differ" 1>&2
- (diff -c basic-k.O $srcdir/basic-k.X) 2> /dev/null
- errors=`expr $errors + 1`;;
- 2) $echo "Test basic-k(F) may have failed." 1>&2
- $echo The command "cmp basic-k.O $srcdir/basic-k.X" failed. 1>&2
- errors=`expr $errors + 1`;;
- esac
-fi
-test -s basic-k.E || rm -f basic-k.E
-cat $srcdir/basic-k.I | $xx > basic-k.O 2> basic-k.E
-code=$?
-if test $code != 0; then
- $echo "Test basic-k(|) failed: $xx return code $code differs from expected value 0" 1>&2
- errors=`expr $errors + 1`
-else
- cmp basic-k.O $srcdir/basic-k.X > /dev/null 2>&1
- case $? in
- 0) if test "$VERBOSE"; then $echo "passed basic-k(|)"; fi;;
- 1) $echo "Test basic-k(|) failed: files basic-k.O and $srcdir/basic-k.X differ" 1>&2
- (diff -c basic-k.O $srcdir/basic-k.X) 2> /dev/null
- errors=`expr $errors + 1`;;
- 2) $echo "Test basic-k(|) may have failed." 1>&2
- $echo The command "cmp basic-k.O $srcdir/basic-k.X" failed. 1>&2
- errors=`expr $errors + 1`;;
- esac
-fi
-test -s basic-k.E || rm -f basic-k.E
-$xx < $srcdir/basic-k.I > basic-k.O 2> basic-k.E
-code=$?
-if test $code != 0; then
- $echo "Test basic-k(<) failed: $xx return code $code differs from expected value 0" 1>&2
- errors=`expr $errors + 1`
-else
- cmp basic-k.O $srcdir/basic-k.X > /dev/null 2>&1
- case $? in
- 0) if test "$VERBOSE"; then $echo "passed basic-k(<)"; fi;;
- 1) $echo "Test basic-k(<) failed: files basic-k.O and $srcdir/basic-k.X differ" 1>&2
- (diff -c basic-k.O $srcdir/basic-k.X) 2> /dev/null
- errors=`expr $errors + 1`;;
- 2) $echo "Test basic-k(<) may have failed." 1>&2
- $echo The command "cmp basic-k.O $srcdir/basic-k.X" failed. 1>&2
- errors=`expr $errors + 1`;;
- esac
-fi
-test -s basic-k.E || rm -f basic-k.E
-$xx -b $srcdir/opt-b.I > opt-b.O 2> opt-b.E
-code=$?
-if test $code != 0; then
- $echo "Test opt-b(F) failed: $xx return code $code differs from expected value 0" 1>&2
- errors=`expr $errors + 1`
-else
- cmp opt-b.O $srcdir/opt-b.X > /dev/null 2>&1
- case $? in
- 0) if test "$VERBOSE"; then $echo "passed opt-b(F)"; fi;;
- 1) $echo "Test opt-b(F) failed: files opt-b.O and $srcdir/opt-b.X differ" 1>&2
- (diff -c opt-b.O $srcdir/opt-b.X) 2> /dev/null
- errors=`expr $errors + 1`;;
- 2) $echo "Test opt-b(F) may have failed." 1>&2
- $echo The command "cmp opt-b.O $srcdir/opt-b.X" failed. 1>&2
- errors=`expr $errors + 1`;;
- esac
-fi
-test -s opt-b.E || rm -f opt-b.E
-cat $srcdir/opt-b.I | $xx -b > opt-b.O 2> opt-b.E
-code=$?
-if test $code != 0; then
- $echo "Test opt-b(|) failed: $xx return code $code differs from expected value 0" 1>&2
- errors=`expr $errors + 1`
-else
- cmp opt-b.O $srcdir/opt-b.X > /dev/null 2>&1
- case $? in
- 0) if test "$VERBOSE"; then $echo "passed opt-b(|)"; fi;;
- 1) $echo "Test opt-b(|) failed: files opt-b.O and $srcdir/opt-b.X differ" 1>&2
- (diff -c opt-b.O $srcdir/opt-b.X) 2> /dev/null
- errors=`expr $errors + 1`;;
- 2) $echo "Test opt-b(|) may have failed." 1>&2
- $echo The command "cmp opt-b.O $srcdir/opt-b.X" failed. 1>&2
- errors=`expr $errors + 1`;;
- esac
-fi
-test -s opt-b.E || rm -f opt-b.E
-$xx -b < $srcdir/opt-b.I > opt-b.O 2> opt-b.E
-code=$?
-if test $code != 0; then
- $echo "Test opt-b(<) failed: $xx return code $code differs from expected value 0" 1>&2
- errors=`expr $errors + 1`
-else
- cmp opt-b.O $srcdir/opt-b.X > /dev/null 2>&1
- case $? in
- 0) if test "$VERBOSE"; then $echo "passed opt-b(<)"; fi;;
- 1) $echo "Test opt-b(<) failed: files opt-b.O and $srcdir/opt-b.X differ" 1>&2
- (diff -c opt-b.O $srcdir/opt-b.X) 2> /dev/null
- errors=`expr $errors + 1`;;
- 2) $echo "Test opt-b(<) may have failed." 1>&2
- $echo The command "cmp opt-b.O $srcdir/opt-b.X" failed. 1>&2
- errors=`expr $errors + 1`;;
- esac
-fi
-test -s opt-b.E || rm -f opt-b.E
-$xx -s: $srcdir/opt-s.I > opt-s.O 2> opt-s.E
-code=$?
-if test $code != 0; then
- $echo "Test opt-s(F) failed: $xx return code $code differs from expected value 0" 1>&2
- errors=`expr $errors + 1`
-else
- cmp opt-s.O $srcdir/opt-s.X > /dev/null 2>&1
- case $? in
- 0) if test "$VERBOSE"; then $echo "passed opt-s(F)"; fi;;
- 1) $echo "Test opt-s(F) failed: files opt-s.O and $srcdir/opt-s.X differ" 1>&2
- (diff -c opt-s.O $srcdir/opt-s.X) 2> /dev/null
- errors=`expr $errors + 1`;;
- 2) $echo "Test opt-s(F) may have failed." 1>&2
- $echo The command "cmp opt-s.O $srcdir/opt-s.X" failed. 1>&2
- errors=`expr $errors + 1`;;
- esac
-fi
-test -s opt-s.E || rm -f opt-s.E
-cat $srcdir/opt-s.I | $xx -s: > opt-s.O 2> opt-s.E
-code=$?
-if test $code != 0; then
- $echo "Test opt-s(|) failed: $xx return code $code differs from expected value 0" 1>&2
- errors=`expr $errors + 1`
-else
- cmp opt-s.O $srcdir/opt-s.X > /dev/null 2>&1
- case $? in
- 0) if test "$VERBOSE"; then $echo "passed opt-s(|)"; fi;;
- 1) $echo "Test opt-s(|) failed: files opt-s.O and $srcdir/opt-s.X differ" 1>&2
- (diff -c opt-s.O $srcdir/opt-s.X) 2> /dev/null
- errors=`expr $errors + 1`;;
- 2) $echo "Test opt-s(|) may have failed." 1>&2
- $echo The command "cmp opt-s.O $srcdir/opt-s.X" failed. 1>&2
- errors=`expr $errors + 1`;;
- esac
-fi
-test -s opt-s.E || rm -f opt-s.E
-$xx -s: < $srcdir/opt-s.I > opt-s.O 2> opt-s.E
-code=$?
-if test $code != 0; then
- $echo "Test opt-s(<) failed: $xx return code $code differs from expected value 0" 1>&2
- errors=`expr $errors + 1`
-else
- cmp opt-s.O $srcdir/opt-s.X > /dev/null 2>&1
- case $? in
- 0) if test "$VERBOSE"; then $echo "passed opt-s(<)"; fi;;
- 1) $echo "Test opt-s(<) failed: files opt-s.O and $srcdir/opt-s.X differ" 1>&2
- (diff -c opt-s.O $srcdir/opt-s.X) 2> /dev/null
- errors=`expr $errors + 1`;;
- 2) $echo "Test opt-s(<) may have failed." 1>&2
- $echo The command "cmp opt-s.O $srcdir/opt-s.X" failed. 1>&2
- errors=`expr $errors + 1`;;
- esac
-fi
-test -s opt-s.E || rm -f opt-s.E
-$xx -s : -b $srcdir/opt-sb.I > opt-sb.O 2> opt-sb.E
-code=$?
-if test $code != 0; then
- $echo "Test opt-sb(F) failed: $xx return code $code differs from expected value 0" 1>&2
- errors=`expr $errors + 1`
-else
- cmp opt-sb.O $srcdir/opt-sb.X > /dev/null 2>&1
- case $? in
- 0) if test "$VERBOSE"; then $echo "passed opt-sb(F)"; fi;;
- 1) $echo "Test opt-sb(F) failed: files opt-sb.O and $srcdir/opt-sb.X differ" 1>&2
- (diff -c opt-sb.O $srcdir/opt-sb.X) 2> /dev/null
- errors=`expr $errors + 1`;;
- 2) $echo "Test opt-sb(F) may have failed." 1>&2
- $echo The command "cmp opt-sb.O $srcdir/opt-sb.X" failed. 1>&2
- errors=`expr $errors + 1`;;
- esac
-fi
-test -s opt-sb.E || rm -f opt-sb.E
-cat $srcdir/opt-sb.I | $xx -s : -b > opt-sb.O 2> opt-sb.E
-code=$?
-if test $code != 0; then
- $echo "Test opt-sb(|) failed: $xx return code $code differs from expected value 0" 1>&2
- errors=`expr $errors + 1`
-else
- cmp opt-sb.O $srcdir/opt-sb.X > /dev/null 2>&1
- case $? in
- 0) if test "$VERBOSE"; then $echo "passed opt-sb(|)"; fi;;
- 1) $echo "Test opt-sb(|) failed: files opt-sb.O and $srcdir/opt-sb.X differ" 1>&2
- (diff -c opt-sb.O $srcdir/opt-sb.X) 2> /dev/null
- errors=`expr $errors + 1`;;
- 2) $echo "Test opt-sb(|) may have failed." 1>&2
- $echo The command "cmp opt-sb.O $srcdir/opt-sb.X" failed. 1>&2
- errors=`expr $errors + 1`;;
- esac
-fi
-test -s opt-sb.E || rm -f opt-sb.E
-$xx -s : -b < $srcdir/opt-sb.I > opt-sb.O 2> opt-sb.E
-code=$?
-if test $code != 0; then
- $echo "Test opt-sb(<) failed: $xx return code $code differs from expected value 0" 1>&2
- errors=`expr $errors + 1`
-else
- cmp opt-sb.O $srcdir/opt-sb.X > /dev/null 2>&1
- case $? in
- 0) if test "$VERBOSE"; then $echo "passed opt-sb(<)"; fi;;
- 1) $echo "Test opt-sb(<) failed: files opt-sb.O and $srcdir/opt-sb.X differ" 1>&2
- (diff -c opt-sb.O $srcdir/opt-sb.X) 2> /dev/null
- errors=`expr $errors + 1`;;
- 2) $echo "Test opt-sb(<) may have failed." 1>&2
- $echo The command "cmp opt-sb.O $srcdir/opt-sb.X" failed. 1>&2
- errors=`expr $errors + 1`;;
- esac
-fi
-test -s opt-sb.E || rm -f opt-sb.E
-$xx -r -s '\._+' $srcdir/opt-r.I > opt-r.O 2> opt-r.E
-code=$?
-if test $code != 0; then
- $echo "Test opt-r(F) failed: $xx return code $code differs from expected value 0" 1>&2
- errors=`expr $errors + 1`
-else
- cmp opt-r.O $srcdir/opt-r.X > /dev/null 2>&1
- case $? in
- 0) if test "$VERBOSE"; then $echo "passed opt-r(F)"; fi;;
- 1) $echo "Test opt-r(F) failed: files opt-r.O and $srcdir/opt-r.X differ" 1>&2
- (diff -c opt-r.O $srcdir/opt-r.X) 2> /dev/null
- errors=`expr $errors + 1`;;
- 2) $echo "Test opt-r(F) may have failed." 1>&2
- $echo The command "cmp opt-r.O $srcdir/opt-r.X" failed. 1>&2
- errors=`expr $errors + 1`;;
- esac
-fi
-test -s opt-r.E || rm -f opt-r.E
-cat $srcdir/opt-r.I | $xx -r -s '\._+' > opt-r.O 2> opt-r.E
-code=$?
-if test $code != 0; then
- $echo "Test opt-r(|) failed: $xx return code $code differs from expected value 0" 1>&2
- errors=`expr $errors + 1`
-else
- cmp opt-r.O $srcdir/opt-r.X > /dev/null 2>&1
- case $? in
- 0) if test "$VERBOSE"; then $echo "passed opt-r(|)"; fi;;
- 1) $echo "Test opt-r(|) failed: files opt-r.O and $srcdir/opt-r.X differ" 1>&2
- (diff -c opt-r.O $srcdir/opt-r.X) 2> /dev/null
- errors=`expr $errors + 1`;;
- 2) $echo "Test opt-r(|) may have failed." 1>&2
- $echo The command "cmp opt-r.O $srcdir/opt-r.X" failed. 1>&2
- errors=`expr $errors + 1`;;
- esac
-fi
-test -s opt-r.E || rm -f opt-r.E
-$xx -r -s '\._+' < $srcdir/opt-r.I > opt-r.O 2> opt-r.E
-code=$?
-if test $code != 0; then
- $echo "Test opt-r(<) failed: $xx return code $code differs from expected value 0" 1>&2
- errors=`expr $errors + 1`
-else
- cmp opt-r.O $srcdir/opt-r.X > /dev/null 2>&1
- case $? in
- 0) if test "$VERBOSE"; then $echo "passed opt-r(<)"; fi;;
- 1) $echo "Test opt-r(<) failed: files opt-r.O and $srcdir/opt-r.X differ" 1>&2
- (diff -c opt-r.O $srcdir/opt-r.X) 2> /dev/null
- errors=`expr $errors + 1`;;
- 2) $echo "Test opt-r(<) may have failed." 1>&2
- $echo The command "cmp opt-r.O $srcdir/opt-r.X" failed. 1>&2
- errors=`expr $errors + 1`;;
- esac
-fi
-test -s opt-r.E || rm -f opt-r.E
-$xx -r -s '\._+' $srcdir/opt-r2.I > opt-r2.O 2> opt-r2.E
-code=$?
-if test $code != 0; then
- $echo "Test opt-r2(F) failed: $xx return code $code differs from expected value 0" 1>&2
- errors=`expr $errors + 1`
-else
- cmp opt-r2.O $srcdir/opt-r2.X > /dev/null 2>&1
- case $? in
- 0) if test "$VERBOSE"; then $echo "passed opt-r2(F)"; fi;;
- 1) $echo "Test opt-r2(F) failed: files opt-r2.O and $srcdir/opt-r2.X differ" 1>&2
- (diff -c opt-r2.O $srcdir/opt-r2.X) 2> /dev/null
- errors=`expr $errors + 1`;;
- 2) $echo "Test opt-r2(F) may have failed." 1>&2
- $echo The command "cmp opt-r2.O $srcdir/opt-r2.X" failed. 1>&2
- errors=`expr $errors + 1`;;
- esac
-fi
-test -s opt-r2.E || rm -f opt-r2.E
-cat $srcdir/opt-r2.I | $xx -r -s '\._+' > opt-r2.O 2> opt-r2.E
-code=$?
-if test $code != 0; then
- $echo "Test opt-r2(|) failed: $xx return code $code differs from expected value 0" 1>&2
- errors=`expr $errors + 1`
-else
- cmp opt-r2.O $srcdir/opt-r2.X > /dev/null 2>&1
- case $? in
- 0) if test "$VERBOSE"; then $echo "passed opt-r2(|)"; fi;;
- 1) $echo "Test opt-r2(|) failed: files opt-r2.O and $srcdir/opt-r2.X differ" 1>&2
- (diff -c opt-r2.O $srcdir/opt-r2.X) 2> /dev/null
- errors=`expr $errors + 1`;;
- 2) $echo "Test opt-r2(|) may have failed." 1>&2
- $echo The command "cmp opt-r2.O $srcdir/opt-r2.X" failed. 1>&2
- errors=`expr $errors + 1`;;
- esac
-fi
-test -s opt-r2.E || rm -f opt-r2.E
-$xx -r -s '\._+' < $srcdir/opt-r2.I > opt-r2.O 2> opt-r2.E
-code=$?
-if test $code != 0; then
- $echo "Test opt-r2(<) failed: $xx return code $code differs from expected value 0" 1>&2
- errors=`expr $errors + 1`
-else
- cmp opt-r2.O $srcdir/opt-r2.X > /dev/null 2>&1
- case $? in
- 0) if test "$VERBOSE"; then $echo "passed opt-r2(<)"; fi;;
- 1) $echo "Test opt-r2(<) failed: files opt-r2.O and $srcdir/opt-r2.X differ" 1>&2
- (diff -c opt-r2.O $srcdir/opt-r2.X) 2> /dev/null
- errors=`expr $errors + 1`;;
- 2) $echo "Test opt-r2(<) may have failed." 1>&2
- $echo The command "cmp opt-r2.O $srcdir/opt-r2.X" failed. 1>&2
- errors=`expr $errors + 1`;;
- esac
-fi
-test -s opt-r2.E || rm -f opt-r2.E
-$xx -b -r -s '\._+' $srcdir/opt-br.I > opt-br.O 2> opt-br.E
-code=$?
-if test $code != 0; then
- $echo "Test opt-br(F) failed: $xx return code $code differs from expected value 0" 1>&2
- errors=`expr $errors + 1`
-else
- cmp opt-br.O $srcdir/opt-br.X > /dev/null 2>&1
- case $? in
- 0) if test "$VERBOSE"; then $echo "passed opt-br(F)"; fi;;
- 1) $echo "Test opt-br(F) failed: files opt-br.O and $srcdir/opt-br.X differ" 1>&2
- (diff -c opt-br.O $srcdir/opt-br.X) 2> /dev/null
- errors=`expr $errors + 1`;;
- 2) $echo "Test opt-br(F) may have failed." 1>&2
- $echo The command "cmp opt-br.O $srcdir/opt-br.X" failed. 1>&2
- errors=`expr $errors + 1`;;
- esac
-fi
-test -s opt-br.E || rm -f opt-br.E
-cat $srcdir/opt-br.I | $xx -b -r -s '\._+' > opt-br.O 2> opt-br.E
-code=$?
-if test $code != 0; then
- $echo "Test opt-br(|) failed: $xx return code $code differs from expected value 0" 1>&2
- errors=`expr $errors + 1`
-else
- cmp opt-br.O $srcdir/opt-br.X > /dev/null 2>&1
- case $? in
- 0) if test "$VERBOSE"; then $echo "passed opt-br(|)"; fi;;
- 1) $echo "Test opt-br(|) failed: files opt-br.O and $srcdir/opt-br.X differ" 1>&2
- (diff -c opt-br.O $srcdir/opt-br.X) 2> /dev/null
- errors=`expr $errors + 1`;;
- 2) $echo "Test opt-br(|) may have failed." 1>&2
- $echo The command "cmp opt-br.O $srcdir/opt-br.X" failed. 1>&2
- errors=`expr $errors + 1`;;
- esac
-fi
-test -s opt-br.E || rm -f opt-br.E
-$xx -b -r -s '\._+' < $srcdir/opt-br.I > opt-br.O 2> opt-br.E
-code=$?
-if test $code != 0; then
- $echo "Test opt-br(<) failed: $xx return code $code differs from expected value 0" 1>&2
- errors=`expr $errors + 1`
-else
- cmp opt-br.O $srcdir/opt-br.X > /dev/null 2>&1
- case $? in
- 0) if test "$VERBOSE"; then $echo "passed opt-br(<)"; fi;;
- 1) $echo "Test opt-br(<) failed: files opt-br.O and $srcdir/opt-br.X differ" 1>&2
- (diff -c opt-br.O $srcdir/opt-br.X) 2> /dev/null
- errors=`expr $errors + 1`;;
- 2) $echo "Test opt-br(<) may have failed." 1>&2
- $echo The command "cmp opt-br.O $srcdir/opt-br.X" failed. 1>&2
- errors=`expr $errors + 1`;;
- esac
-fi
-test -s opt-br.E || rm -f opt-br.E
-$xx -b -r -s '\._+' $srcdir/opt-br2.I > opt-br2.O 2> opt-br2.E
-code=$?
-if test $code != 0; then
- $echo "Test opt-br2(F) failed: $xx return code $code differs from expected value 0" 1>&2
- errors=`expr $errors + 1`
-else
- cmp opt-br2.O $srcdir/opt-br2.X > /dev/null 2>&1
- case $? in
- 0) if test "$VERBOSE"; then $echo "passed opt-br2(F)"; fi;;
- 1) $echo "Test opt-br2(F) failed: files opt-br2.O and $srcdir/opt-br2.X differ" 1>&2
- (diff -c opt-br2.O $srcdir/opt-br2.X) 2> /dev/null
- errors=`expr $errors + 1`;;
- 2) $echo "Test opt-br2(F) may have failed." 1>&2
- $echo The command "cmp opt-br2.O $srcdir/opt-br2.X" failed. 1>&2
- errors=`expr $errors + 1`;;
- esac
-fi
-test -s opt-br2.E || rm -f opt-br2.E
-cat $srcdir/opt-br2.I | $xx -b -r -s '\._+' > opt-br2.O 2> opt-br2.E
-code=$?
-if test $code != 0; then
- $echo "Test opt-br2(|) failed: $xx return code $code differs from expected value 0" 1>&2
- errors=`expr $errors + 1`
-else
- cmp opt-br2.O $srcdir/opt-br2.X > /dev/null 2>&1
- case $? in
- 0) if test "$VERBOSE"; then $echo "passed opt-br2(|)"; fi;;
- 1) $echo "Test opt-br2(|) failed: files opt-br2.O and $srcdir/opt-br2.X differ" 1>&2
- (diff -c opt-br2.O $srcdir/opt-br2.X) 2> /dev/null
- errors=`expr $errors + 1`;;
- 2) $echo "Test opt-br2(|) may have failed." 1>&2
- $echo The command "cmp opt-br2.O $srcdir/opt-br2.X" failed. 1>&2
- errors=`expr $errors + 1`;;
- esac
-fi
-test -s opt-br2.E || rm -f opt-br2.E
-$xx -b -r -s '\._+' < $srcdir/opt-br2.I > opt-br2.O 2> opt-br2.E
-code=$?
-if test $code != 0; then
- $echo "Test opt-br2(<) failed: $xx return code $code differs from expected value 0" 1>&2
- errors=`expr $errors + 1`
-else
- cmp opt-br2.O $srcdir/opt-br2.X > /dev/null 2>&1
- case $? in
- 0) if test "$VERBOSE"; then $echo "passed opt-br2(<)"; fi;;
- 1) $echo "Test opt-br2(<) failed: files opt-br2.O and $srcdir/opt-br2.X differ" 1>&2
- (diff -c opt-br2.O $srcdir/opt-br2.X) 2> /dev/null
- errors=`expr $errors + 1`;;
- 2) $echo "Test opt-br2(<) may have failed." 1>&2
- $echo The command "cmp opt-br2.O $srcdir/opt-br2.X" failed. 1>&2
- errors=`expr $errors + 1`;;
- esac
-fi
-test -s opt-br2.E || rm -f opt-br2.E
-if test $errors = 0; then
- $echo Passed all 51 tests. 1>&2
-else
- $echo Failed $errors tests. 1>&2
-fi
-test $errors = 0 || errors=1
-exit $errors
diff --git a/tests/tail-2/F-headers.sh b/tests/tail-2/F-headers.sh
new file mode 100755
index 0000000..5747263
--- /dev/null
+++ b/tests/tail-2/F-headers.sh
@@ -0,0 +1,59 @@
+#!/bin/sh
+# Ensure tail -F distinguishes output with the correct headers
+# Between coreutils 7.5 and 8.23 inclusive, 'tail -F ...' would
+# not output headers for or created/renamed files in certain cases.
+
+# Copyright (C) 2015-2016 Free Software Foundation, Inc.
+
+# This program is free software: you can redistribute it and/or modify
+# it under the terms of the GNU General Public License as published by
+# the Free Software Foundation, either version 3 of the License, or
+# (at your option) any later version.
+
+# This program is distributed in the hope that it will be useful,
+# but WITHOUT ANY WARRANTY; without even the implied warranty of
+# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
+# GNU General Public License for more details.
+
+# You should have received a copy of the GNU General Public License
+# along with this program. If not, see <http://www.gnu.org/licenses/>.
+
+. "${srcdir=.}/tests/init.sh"; path_prepend_ ./src
+print_ver_ tail
+
+check_tail_output()
+{
+ local delay="$1"
+ grep "$tail_re" out ||
+ { sleep $delay; return 1; }
+}
+
+# Terminate any background tail process
+cleanup_() { kill $pid 2>/dev/null && wait $pid; }
+
+# Speedup the non inotify case
+fastpoll='-s.1 --max-unchanged-stats=1'
+
+for mode in '' '---disable-inotify'; do
+ rm -f a b out
+
+ tail $mode -F $fastpoll a b > out 2>&1 & pid=$!
+
+ # Wait up to 12.7s for tail to start.
+ tail_re="cannot open 'b'" retry_delay_ check_tail_output .1 7 ||
+ { cat out; fail=1; }
+
+ echo x > a
+ # Wait up to 12.7s for a's header to appear in the output:
+ tail_re='==> a <==' retry_delay_ check_tail_output .1 7 ||
+ { echo "$0: a: unexpected delay?"; cat out; fail=1; }
+
+ echo y > b
+ # Wait up to 12.7s for b's header to appear in the output:
+ tail_re='==> b <==' retry_delay_ check_tail_output .1 7 ||
+ { echo "$0: b: unexpected delay?"; cat out; fail=1; }
+
+ cleanup_
+done
+
+Exit $fail
diff --git a/tests/tail-2/F-vs-missing.sh b/tests/tail-2/F-vs-missing.sh
new file mode 100755
index 0000000..361719d
--- /dev/null
+++ b/tests/tail-2/F-vs-missing.sh
@@ -0,0 +1,59 @@
+#!/bin/sh
+# demonstrate that tail -F works for currently missing dirs
+# Before coreutils-8.6, tail -F missing/file would not
+# notice any subsequent availability of the missing/file.
+
+# Copyright (C) 2010-2016 Free Software Foundation, Inc.
+
+# This program is free software: you can redistribute it and/or modify
+# it under the terms of the GNU General Public License as published by
+# the Free Software Foundation, either version 3 of the License, or
+# (at your option) any later version.
+
+# This program is distributed in the hope that it will be useful,
+# but WITHOUT ANY WARRANTY; without even the implied warranty of
+# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
+# GNU General Public License for more details.
+
+# You should have received a copy of the GNU General Public License
+# along with this program. If not, see <http://www.gnu.org/licenses/>.
+
+. "${srcdir=.}/tests/init.sh"; path_prepend_ ./src
+print_ver_ tail
+
+check_tail_output()
+{
+ local delay="$1"
+ grep "$tail_re" out > /dev/null ||
+ { sleep $delay; return 1; }
+}
+
+# Terminate any background tail process
+cleanup_() { kill $pid 2>/dev/null && wait $pid; }
+
+# Speedup the non inotify case
+fastpoll='-s.1 --max-unchanged-stats=1'
+
+for mode in '' '---disable-inotify'; do
+ rm -rf out missing
+
+ tail $mode -F $fastpoll missing/file > out 2>&1 & pid=$!
+
+ # Wait up to 12.7s for tail to start with diagnostic:
+ # tail: cannot open 'missing/file' for reading: No such file or directory
+ tail_re='cannot open' retry_delay_ check_tail_output .1 7 ||
+ { cat out; fail=1; }
+
+ mkdir missing || framework_failure_
+ (cd missing && echo x > file) || framework_failure_
+
+ # Wait up to 12.7s for this to appear in the output:
+ # "tail: '...' has appeared; following new file"
+ tail_re='has appeared' retry_delay_ check_tail_output .1 7 ||
+ { echo "$0: file: unexpected delay?"; cat out; fail=1; }
+
+ cleanup_
+done
+
+
+Exit $fail
diff --git a/tests/tail-2/F-vs-rename.sh b/tests/tail-2/F-vs-rename.sh
new file mode 100755
index 0000000..760bbc2
--- /dev/null
+++ b/tests/tail-2/F-vs-rename.sh
@@ -0,0 +1,83 @@
+#!/bin/sh
+# Demonstrate that tail -F works when renaming the tailed files.
+# Between coreutils 7.5 and 8.2 inclusive, 'tail -F a b' would
+# stop tracking additions to b after 'mv a b'.
+
+# Copyright (C) 2009-2016 Free Software Foundation, Inc.
+
+# This program is free software: you can redistribute it and/or modify
+# it under the terms of the GNU General Public License as published by
+# the Free Software Foundation, either version 3 of the License, or
+# (at your option) any later version.
+
+# This program is distributed in the hope that it will be useful,
+# but WITHOUT ANY WARRANTY; without even the implied warranty of
+# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
+# GNU General Public License for more details.
+
+# You should have received a copy of the GNU General Public License
+# along with this program. If not, see <http://www.gnu.org/licenses/>.
+
+. "${srcdir=.}/tests/init.sh"; path_prepend_ ./src
+print_ver_ tail
+
+check_tail_output()
+{
+ local delay="$1"
+ grep "$tail_re" out ||
+ { sleep $delay; return 1; }
+}
+
+# Terminate any background tail process
+cleanup_() { kill $pid 2>/dev/null && wait $pid; }
+
+# Speedup the non inotify case
+fastpoll='-s.1 --max-unchanged-stats=1'
+
+for mode in '' '---disable-inotify'; do
+ rm -f a b out
+ touch a b || framework_failure_
+
+ tail $mode -F $fastpoll a b > out 2>&1 & pid=$!
+
+ # Wait up to 12.7s for tail to start.
+ echo x > a
+ tail_re='^x$' retry_delay_ check_tail_output .1 7 || { cat out; fail=1; }
+
+ mv a b || framework_failure_
+
+ # Wait 12.7s for this diagnostic:
+ # tail: 'a' has become inaccessible: No such file or directory
+ tail_re='inaccessible' retry_delay_ check_tail_output .1 7 ||
+ { cat out; fail=1; }
+
+ echo x > a
+ # Wait up to 12.7s for this to appear in the output:
+ # "tail: '...' has appeared; following new file"
+ tail_re='has appeared' retry_delay_ check_tail_output .1 7 ||
+ { echo "$0: a: unexpected delay?"; cat out; fail=1; }
+
+ echo y >> b
+ # Wait up to 12.7s for "y" to appear in the output:
+ tail_f_vs_rename_2() {
+ local delay="$1"
+ tr '\n' @ < out | grep '@@==> b <==@y@$' > /dev/null ||
+ { sleep $delay; return 1; }
+ }
+ retry_delay_ tail_f_vs_rename_2 .1 7 ||
+ { echo "$0: b: unexpected delay?"; cat out; fail=1; }
+
+ echo z >> a
+ # Wait up to 12.7s for "z" to appear in the output:
+ tail_f_vs_rename_3() {
+ local delay="$1"
+ tr '\n' @ < out | grep '@@==> a <==@z@$' > /dev/null ||
+ { sleep $delay; return 1; }
+ }
+ retry_delay_ tail_f_vs_rename_3 .1 7 ||
+ { echo "$0: a: unexpected delay?"; cat out; fail=1; }
+
+ cleanup_
+done
+
+Exit $fail
diff --git a/tests/tail-2/Makefile.am b/tests/tail-2/Makefile.am
deleted file mode 100644
index e038a1b..0000000
--- a/tests/tail-2/Makefile.am
+++ /dev/null
@@ -1,34 +0,0 @@
-# Make coreutils tests for "tail". -*-Makefile-*-
-
-# Copyright (C) 1999, 2000, 2001, 2002, 2003, 2006 Free Software
-# Foundation, Inc.
-
-# This program is free software; you can redistribute it and/or modify
-# it under the terms of the GNU General Public License as published by
-# the Free Software Foundation; either version 2 of the License, or
-# (at your option) any later version.
-
-# This program is distributed in the hope that it will be useful,
-# but WITHOUT ANY WARRANTY; without even the implied warranty of
-# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
-# GNU General Public License for more details.
-
-# You should have received a copy of the GNU General Public License
-# along with this program; if not, write to the Free Software
-# Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA
-# 02110-1301, USA.
-
-EXTRA_DIST = $(TESTS)
-
-TESTS_ENVIRONMENT = \
- top_srcdir=$(top_srcdir) \
- srcdir=$(srcdir) \
- PERL="$(PERL)" \
- CU_TEST_NAME=`basename $(abs_srcdir)`,$$tst \
- PATH="$(VG_PATH_PREFIX)`pwd`/../../src$(PATH_SEPARATOR)$$PATH" \
- PROG=tail
-
-TESTS = \
- append-only \
- tail-n0f \
- big-4gb proc-ksyms start-middle assert assert-2
diff --git a/tests/tail-2/Makefile.in b/tests/tail-2/Makefile.in
deleted file mode 100644
index 4a3818a..0000000
--- a/tests/tail-2/Makefile.in
+++ /dev/null
@@ -1,744 +0,0 @@
-# Makefile.in generated by automake 1.10 from Makefile.am.
-# @configure_input@
-
-# Copyright (C) 1994, 1995, 1996, 1997, 1998, 1999, 2000, 2001, 2002,
-# 2003, 2004, 2005, 2006 Free Software Foundation, Inc.
-# This Makefile.in is free software; the Free Software Foundation
-# gives unlimited permission to copy and/or distribute it,
-# with or without modifications, as long as this notice is preserved.
-
-# This program is distributed in the hope that it will be useful,
-# but WITHOUT ANY WARRANTY, to the extent permitted by law; without
-# even the implied warranty of MERCHANTABILITY or FITNESS FOR A
-# PARTICULAR PURPOSE.
-
-@SET_MAKE@
-
-# Make coreutils tests for "tail". -*-Makefile-*-
-
-# Copyright (C) 1999, 2000, 2001, 2002, 2003, 2006 Free Software
-# Foundation, Inc.
-
-# This program is free software; you can redistribute it and/or modify
-# it under the terms of the GNU General Public License as published by
-# the Free Software Foundation; either version 2 of the License, or
-# (at your option) any later version.
-
-# This program is distributed in the hope that it will be useful,
-# but WITHOUT ANY WARRANTY; without even the implied warranty of
-# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
-# GNU General Public License for more details.
-
-# You should have received a copy of the GNU General Public License
-# along with this program; if not, write to the Free Software
-# Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA
-# 02110-1301, USA.
-VPATH = @srcdir@
-pkgdatadir = $(datadir)/@PACKAGE@
-pkglibdir = $(libdir)/@PACKAGE@
-pkgincludedir = $(includedir)/@PACKAGE@
-am__cd = CDPATH="$${ZSH_VERSION+.}$(PATH_SEPARATOR)" && cd
-install_sh_DATA = $(install_sh) -c -m 644
-install_sh_PROGRAM = $(install_sh) -c
-install_sh_SCRIPT = $(install_sh) -c
-INSTALL_HEADER = $(INSTALL_DATA)
-transform = $(program_transform_name)
-NORMAL_INSTALL = :
-PRE_INSTALL = :
-POST_INSTALL = :
-NORMAL_UNINSTALL = :
-PRE_UNINSTALL = :
-POST_UNINSTALL = :
-build_triplet = @build@
-host_triplet = @host@
-subdir = tests/tail-2
-DIST_COMMON = $(srcdir)/Makefile.am $(srcdir)/Makefile.in
-ACLOCAL_M4 = $(top_srcdir)/aclocal.m4
-am__aclocal_m4_deps = $(top_srcdir)/m4/absolute-header.m4 \
- $(top_srcdir)/m4/acl.m4 $(top_srcdir)/m4/alloca.m4 \
- $(top_srcdir)/m4/allocsa.m4 $(top_srcdir)/m4/argmatch.m4 \
- $(top_srcdir)/m4/arpa_inet_h.m4 $(top_srcdir)/m4/assert.m4 \
- $(top_srcdir)/m4/atexit.m4 $(top_srcdir)/m4/autobuild.m4 \
- $(top_srcdir)/m4/backupfile.m4 $(top_srcdir)/m4/base64.m4 \
- $(top_srcdir)/m4/bison.m4 $(top_srcdir)/m4/boottime.m4 \
- $(top_srcdir)/m4/c-strtod.m4 $(top_srcdir)/m4/calloc.m4 \
- $(top_srcdir)/m4/canon-host.m4 \
- $(top_srcdir)/m4/canonicalize.m4 \
- $(top_srcdir)/m4/chdir-long.m4 $(top_srcdir)/m4/check-decl.m4 \
- $(top_srcdir)/m4/chown.m4 $(top_srcdir)/m4/clock_time.m4 \
- $(top_srcdir)/m4/cloexec.m4 $(top_srcdir)/m4/close-stream.m4 \
- $(top_srcdir)/m4/closeout.m4 $(top_srcdir)/m4/codeset.m4 \
- $(top_srcdir)/m4/config-h.m4 $(top_srcdir)/m4/cycle-check.m4 \
- $(top_srcdir)/m4/d-ino.m4 $(top_srcdir)/m4/d-type.m4 \
- $(top_srcdir)/m4/dirfd.m4 $(top_srcdir)/m4/dirname.m4 \
- $(top_srcdir)/m4/dos.m4 $(top_srcdir)/m4/double-slash-root.m4 \
- $(top_srcdir)/m4/dup2.m4 $(top_srcdir)/m4/eealloc.m4 \
- $(top_srcdir)/m4/eoverflow.m4 $(top_srcdir)/m4/error.m4 \
- $(top_srcdir)/m4/euidaccess-stat.m4 \
- $(top_srcdir)/m4/euidaccess.m4 $(top_srcdir)/m4/exclude.m4 \
- $(top_srcdir)/m4/exitfail.m4 $(top_srcdir)/m4/extensions.m4 \
- $(top_srcdir)/m4/fchdir.m4 $(top_srcdir)/m4/fcntl-safer.m4 \
- $(top_srcdir)/m4/fcntl_h.m4 $(top_srcdir)/m4/fd-reopen.m4 \
- $(top_srcdir)/m4/file-type.m4 $(top_srcdir)/m4/fileblocks.m4 \
- $(top_srcdir)/m4/filemode.m4 $(top_srcdir)/m4/filenamecat.m4 \
- $(top_srcdir)/m4/flexmember.m4 $(top_srcdir)/m4/fnmatch.m4 \
- $(top_srcdir)/m4/fpending.m4 $(top_srcdir)/m4/fprintftime.m4 \
- $(top_srcdir)/m4/free.m4 $(top_srcdir)/m4/fstypename.m4 \
- $(top_srcdir)/m4/fsusage.m4 $(top_srcdir)/m4/ftruncate.m4 \
- $(top_srcdir)/m4/fts.m4 $(top_srcdir)/m4/getaddrinfo.m4 \
- $(top_srcdir)/m4/getcwd-abort-bug.m4 \
- $(top_srcdir)/m4/getcwd-path-max.m4 $(top_srcdir)/m4/getcwd.m4 \
- $(top_srcdir)/m4/getdate.m4 $(top_srcdir)/m4/getdelim.m4 \
- $(top_srcdir)/m4/getgroups.m4 $(top_srcdir)/m4/gethostname.m4 \
- $(top_srcdir)/m4/gethrxtime.m4 $(top_srcdir)/m4/getline.m4 \
- $(top_srcdir)/m4/getloadavg.m4 $(top_srcdir)/m4/getndelim2.m4 \
- $(top_srcdir)/m4/getopt.m4 $(top_srcdir)/m4/getpagesize.m4 \
- $(top_srcdir)/m4/getpass.m4 $(top_srcdir)/m4/gettext.m4 \
- $(top_srcdir)/m4/gettime.m4 $(top_srcdir)/m4/gettimeofday.m4 \
- $(top_srcdir)/m4/getugroups.m4 \
- $(top_srcdir)/m4/getusershell.m4 $(top_srcdir)/m4/glibc21.m4 \
- $(top_srcdir)/m4/gnulib-common.m4 \
- $(top_srcdir)/m4/gnulib-comp.m4 \
- $(top_srcdir)/m4/group-member.m4 \
- $(top_srcdir)/m4/hard-locale.m4 $(top_srcdir)/m4/hash.m4 \
- $(top_srcdir)/m4/host-os.m4 $(top_srcdir)/m4/human.m4 \
- $(top_srcdir)/m4/i-ring.m4 $(top_srcdir)/m4/iconv.m4 \
- $(top_srcdir)/m4/idcache.m4 $(top_srcdir)/m4/inet_ntop.m4 \
- $(top_srcdir)/m4/inline.m4 $(top_srcdir)/m4/intmax_t.m4 \
- $(top_srcdir)/m4/inttostr.m4 $(top_srcdir)/m4/inttypes-pri.m4 \
- $(top_srcdir)/m4/inttypes.m4 $(top_srcdir)/m4/inttypes_h.m4 \
- $(top_srcdir)/m4/isapipe.m4 $(top_srcdir)/m4/jm-macros.m4 \
- $(top_srcdir)/m4/jm-winsz1.m4 $(top_srcdir)/m4/jm-winsz2.m4 \
- $(top_srcdir)/m4/lchmod.m4 $(top_srcdir)/m4/lchown.m4 \
- $(top_srcdir)/m4/lib-check.m4 $(top_srcdir)/m4/lib-ignore.m4 \
- $(top_srcdir)/m4/lib-ld.m4 $(top_srcdir)/m4/lib-link.m4 \
- $(top_srcdir)/m4/lib-prefix.m4 $(top_srcdir)/m4/link-follow.m4 \
- $(top_srcdir)/m4/localcharset.m4 \
- $(top_srcdir)/m4/long-options.m4 \
- $(top_srcdir)/m4/longdouble.m4 $(top_srcdir)/m4/longlong.m4 \
- $(top_srcdir)/m4/ls-mntd-fs.m4 $(top_srcdir)/m4/lstat.m4 \
- $(top_srcdir)/m4/mbchar.m4 $(top_srcdir)/m4/mbiter.m4 \
- $(top_srcdir)/m4/mbrtowc.m4 $(top_srcdir)/m4/mbscasecmp.m4 \
- $(top_srcdir)/m4/mbstate_t.m4 $(top_srcdir)/m4/mbswidth.m4 \
- $(top_srcdir)/m4/md5.m4 $(top_srcdir)/m4/memcasecmp.m4 \
- $(top_srcdir)/m4/memchr.m4 $(top_srcdir)/m4/memcmp.m4 \
- $(top_srcdir)/m4/memcoll.m4 $(top_srcdir)/m4/memcpy.m4 \
- $(top_srcdir)/m4/memmove.m4 $(top_srcdir)/m4/mempcpy.m4 \
- $(top_srcdir)/m4/memrchr.m4 $(top_srcdir)/m4/memset.m4 \
- $(top_srcdir)/m4/memxfrm.m4 $(top_srcdir)/m4/mkancesdirs.m4 \
- $(top_srcdir)/m4/mkdir-p.m4 $(top_srcdir)/m4/mkdir-slash.m4 \
- $(top_srcdir)/m4/mkstemp.m4 $(top_srcdir)/m4/mktime.m4 \
- $(top_srcdir)/m4/modechange.m4 $(top_srcdir)/m4/mountlist.m4 \
- $(top_srcdir)/m4/mpsort.m4 $(top_srcdir)/m4/nanosleep.m4 \
- $(top_srcdir)/m4/netinet_in_h.m4 $(top_srcdir)/m4/nls.m4 \
- $(top_srcdir)/m4/openat.m4 $(top_srcdir)/m4/pathmax.m4 \
- $(top_srcdir)/m4/perl.m4 $(top_srcdir)/m4/physmem.m4 \
- $(top_srcdir)/m4/po.m4 $(top_srcdir)/m4/posixtm.m4 \
- $(top_srcdir)/m4/posixver.m4 $(top_srcdir)/m4/prereq.m4 \
- $(top_srcdir)/m4/progtest.m4 $(top_srcdir)/m4/putenv.m4 \
- $(top_srcdir)/m4/quote.m4 $(top_srcdir)/m4/quotearg.m4 \
- $(top_srcdir)/m4/randint.m4 $(top_srcdir)/m4/randperm.m4 \
- $(top_srcdir)/m4/randread.m4 $(top_srcdir)/m4/readlink.m4 \
- $(top_srcdir)/m4/readtokens.m4 $(top_srcdir)/m4/readutmp.m4 \
- $(top_srcdir)/m4/regex.m4 \
- $(top_srcdir)/m4/rename-dest-slash.m4 \
- $(top_srcdir)/m4/rename.m4 $(top_srcdir)/m4/rmdir-errno.m4 \
- $(top_srcdir)/m4/rmdir.m4 $(top_srcdir)/m4/root-dev-ino.m4 \
- $(top_srcdir)/m4/rpmatch.m4 $(top_srcdir)/m4/safe-read.m4 \
- $(top_srcdir)/m4/safe-write.m4 $(top_srcdir)/m4/same.m4 \
- $(top_srcdir)/m4/save-cwd.m4 $(top_srcdir)/m4/savedir.m4 \
- $(top_srcdir)/m4/savewd.m4 $(top_srcdir)/m4/setenv.m4 \
- $(top_srcdir)/m4/settime.m4 $(top_srcdir)/m4/sha1.m4 \
- $(top_srcdir)/m4/sha256.m4 $(top_srcdir)/m4/sha512.m4 \
- $(top_srcdir)/m4/sig2str.m4 $(top_srcdir)/m4/snprintf.m4 \
- $(top_srcdir)/m4/socklen.m4 $(top_srcdir)/m4/sockpfaf.m4 \
- $(top_srcdir)/m4/ssize_t.m4 $(top_srcdir)/m4/st_dm_mode.m4 \
- $(top_srcdir)/m4/stat-prog.m4 $(top_srcdir)/m4/stat-time.m4 \
- $(top_srcdir)/m4/stdarg.m4 $(top_srcdir)/m4/stdbool.m4 \
- $(top_srcdir)/m4/stdint.m4 $(top_srcdir)/m4/stdint_h.m4 \
- $(top_srcdir)/m4/stdio-safer.m4 $(top_srcdir)/m4/stdio_h.m4 \
- $(top_srcdir)/m4/stdlib-safer.m4 $(top_srcdir)/m4/stdlib_h.m4 \
- $(top_srcdir)/m4/stpcpy.m4 $(top_srcdir)/m4/strcspn.m4 \
- $(top_srcdir)/m4/strdup.m4 $(top_srcdir)/m4/strftime.m4 \
- $(top_srcdir)/m4/string_h.m4 $(top_srcdir)/m4/strndup.m4 \
- $(top_srcdir)/m4/strnlen.m4 $(top_srcdir)/m4/strnumcmp.m4 \
- $(top_srcdir)/m4/strpbrk.m4 $(top_srcdir)/m4/strtod.m4 \
- $(top_srcdir)/m4/strtoimax.m4 $(top_srcdir)/m4/strtol.m4 \
- $(top_srcdir)/m4/strtoll.m4 $(top_srcdir)/m4/strtoul.m4 \
- $(top_srcdir)/m4/strtoull.m4 $(top_srcdir)/m4/strtoumax.m4 \
- $(top_srcdir)/m4/strverscmp.m4 \
- $(top_srcdir)/m4/sys_socket_h.m4 \
- $(top_srcdir)/m4/sys_stat_h.m4 $(top_srcdir)/m4/sys_time_h.m4 \
- $(top_srcdir)/m4/tempname.m4 $(top_srcdir)/m4/time_h.m4 \
- $(top_srcdir)/m4/time_r.m4 $(top_srcdir)/m4/timespec.m4 \
- $(top_srcdir)/m4/tm_gmtoff.m4 $(top_srcdir)/m4/tzset.m4 \
- $(top_srcdir)/m4/unicodeio.m4 $(top_srcdir)/m4/unistd-safer.m4 \
- $(top_srcdir)/m4/unistd_h.m4 $(top_srcdir)/m4/unlink-busy.m4 \
- $(top_srcdir)/m4/unlinkdir.m4 $(top_srcdir)/m4/unlocked-io.m4 \
- $(top_srcdir)/m4/uptime.m4 $(top_srcdir)/m4/userspec.m4 \
- $(top_srcdir)/m4/utimbuf.m4 $(top_srcdir)/m4/utime.m4 \
- $(top_srcdir)/m4/utimecmp.m4 $(top_srcdir)/m4/utimens.m4 \
- $(top_srcdir)/m4/utimes-null.m4 $(top_srcdir)/m4/utimes.m4 \
- $(top_srcdir)/m4/vasnprintf.m4 $(top_srcdir)/m4/vasprintf.m4 \
- $(top_srcdir)/m4/wchar.m4 $(top_srcdir)/m4/wchar_t.m4 \
- $(top_srcdir)/m4/wctype.m4 $(top_srcdir)/m4/wcwidth.m4 \
- $(top_srcdir)/m4/wint_t.m4 $(top_srcdir)/m4/xalloc.m4 \
- $(top_srcdir)/m4/xfts.m4 $(top_srcdir)/m4/xgetcwd.m4 \
- $(top_srcdir)/m4/xnanosleep.m4 $(top_srcdir)/m4/xstrndup.m4 \
- $(top_srcdir)/m4/xstrtod.m4 $(top_srcdir)/m4/xstrtol.m4 \
- $(top_srcdir)/m4/yesno.m4 $(top_srcdir)/configure.ac
-am__configure_deps = $(am__aclocal_m4_deps) $(CONFIGURE_DEPENDENCIES) \
- $(ACLOCAL_M4)
-mkinstalldirs = $(install_sh) -d
-CONFIG_HEADER = $(top_builddir)/lib/config.h
-CONFIG_CLEAN_FILES =
-SOURCES =
-DIST_SOURCES =
-DISTFILES = $(DIST_COMMON) $(DIST_SOURCES) $(TEXINFOS) $(EXTRA_DIST)
-ABSOLUTE_DIRENT_H = @ABSOLUTE_DIRENT_H@
-ABSOLUTE_FCNTL_H = @ABSOLUTE_FCNTL_H@
-ABSOLUTE_INTTYPES_H = @ABSOLUTE_INTTYPES_H@
-ABSOLUTE_NETINET_IN_H = @ABSOLUTE_NETINET_IN_H@
-ABSOLUTE_STDINT_H = @ABSOLUTE_STDINT_H@
-ABSOLUTE_STDIO_H = @ABSOLUTE_STDIO_H@
-ABSOLUTE_STDLIB_H = @ABSOLUTE_STDLIB_H@
-ABSOLUTE_STRING_H = @ABSOLUTE_STRING_H@
-ABSOLUTE_SYS_SOCKET_H = @ABSOLUTE_SYS_SOCKET_H@
-ABSOLUTE_SYS_STAT_H = @ABSOLUTE_SYS_STAT_H@
-ABSOLUTE_SYS_TIME_H = @ABSOLUTE_SYS_TIME_H@
-ABSOLUTE_TIME_H = @ABSOLUTE_TIME_H@
-ABSOLUTE_UNISTD_H = @ABSOLUTE_UNISTD_H@
-ABSOLUTE_WCHAR_H = @ABSOLUTE_WCHAR_H@
-ABSOLUTE_WCTYPE_H = @ABSOLUTE_WCTYPE_H@
-ACLOCAL = @ACLOCAL@
-ALLOCA = @ALLOCA@
-ALLOCA_H = @ALLOCA_H@
-AMTAR = @AMTAR@
-ARPA_INET_H = @ARPA_INET_H@
-AUTOCONF = @AUTOCONF@
-AUTOHEADER = @AUTOHEADER@
-AUTOMAKE = @AUTOMAKE@
-AWK = @AWK@
-BITSIZEOF_PTRDIFF_T = @BITSIZEOF_PTRDIFF_T@
-BITSIZEOF_SIG_ATOMIC_T = @BITSIZEOF_SIG_ATOMIC_T@
-BITSIZEOF_SIZE_T = @BITSIZEOF_SIZE_T@
-BITSIZEOF_WCHAR_T = @BITSIZEOF_WCHAR_T@
-BITSIZEOF_WINT_T = @BITSIZEOF_WINT_T@
-CC = @CC@
-CCDEPMODE = @CCDEPMODE@
-CFLAGS = @CFLAGS@
-CPP = @CPP@
-CPPFLAGS = @CPPFLAGS@
-CYGPATH_W = @CYGPATH_W@
-DEFAULT_POSIX2_VERSION = @DEFAULT_POSIX2_VERSION@
-DEFS = @DEFS@
-DEPDIR = @DEPDIR@
-DF_PROG = @DF_PROG@
-DIRENT_H = @DIRENT_H@
-ECHO_C = @ECHO_C@
-ECHO_N = @ECHO_N@
-ECHO_T = @ECHO_T@
-EGREP = @EGREP@
-EOVERFLOW = @EOVERFLOW@
-EXEEXT = @EXEEXT@
-FCNTL_H = @FCNTL_H@
-FNMATCH_H = @FNMATCH_H@
-GETLOADAVG_LIBS = @GETLOADAVG_LIBS@
-GETOPT_H = @GETOPT_H@
-GLIBC21 = @GLIBC21@
-GMSGFMT = @GMSGFMT@
-GMSGFMT_015 = @GMSGFMT_015@
-GNULIB_CHOWN = @GNULIB_CHOWN@
-GNULIB_DUP2 = @GNULIB_DUP2@
-GNULIB_FCHDIR = @GNULIB_FCHDIR@
-GNULIB_FPRINTF_POSIX = @GNULIB_FPRINTF_POSIX@
-GNULIB_FTRUNCATE = @GNULIB_FTRUNCATE@
-GNULIB_GETCWD = @GNULIB_GETCWD@
-GNULIB_GETLOGIN_R = @GNULIB_GETLOGIN_R@
-GNULIB_GETSUBOPT = @GNULIB_GETSUBOPT@
-GNULIB_IMAXABS = @GNULIB_IMAXABS@
-GNULIB_IMAXDIV = @GNULIB_IMAXDIV@
-GNULIB_MBSCASECMP = @GNULIB_MBSCASECMP@
-GNULIB_MBSCASESTR = @GNULIB_MBSCASESTR@
-GNULIB_MBSCHR = @GNULIB_MBSCHR@
-GNULIB_MBSCSPN = @GNULIB_MBSCSPN@
-GNULIB_MBSLEN = @GNULIB_MBSLEN@
-GNULIB_MBSNCASECMP = @GNULIB_MBSNCASECMP@
-GNULIB_MBSPBRK = @GNULIB_MBSPBRK@
-GNULIB_MBSPCASECMP = @GNULIB_MBSPCASECMP@
-GNULIB_MBSRCHR = @GNULIB_MBSRCHR@
-GNULIB_MBSSEP = @GNULIB_MBSSEP@
-GNULIB_MBSSPN = @GNULIB_MBSSPN@
-GNULIB_MBSSTR = @GNULIB_MBSSTR@
-GNULIB_MBSTOK_R = @GNULIB_MBSTOK_R@
-GNULIB_MEMMEM = @GNULIB_MEMMEM@
-GNULIB_MEMPCPY = @GNULIB_MEMPCPY@
-GNULIB_MEMRCHR = @GNULIB_MEMRCHR@
-GNULIB_MKDTEMP = @GNULIB_MKDTEMP@
-GNULIB_MKSTEMP = @GNULIB_MKSTEMP@
-GNULIB_PRINTF_POSIX = @GNULIB_PRINTF_POSIX@
-GNULIB_READLINK = @GNULIB_READLINK@
-GNULIB_SNPRINTF = @GNULIB_SNPRINTF@
-GNULIB_SPRINTF_POSIX = @GNULIB_SPRINTF_POSIX@
-GNULIB_STPCPY = @GNULIB_STPCPY@
-GNULIB_STPNCPY = @GNULIB_STPNCPY@
-GNULIB_STRCASESTR = @GNULIB_STRCASESTR@
-GNULIB_STRCHRNUL = @GNULIB_STRCHRNUL@
-GNULIB_STRDUP = @GNULIB_STRDUP@
-GNULIB_STRNDUP = @GNULIB_STRNDUP@
-GNULIB_STRNLEN = @GNULIB_STRNLEN@
-GNULIB_STRPBRK = @GNULIB_STRPBRK@
-GNULIB_STRSEP = @GNULIB_STRSEP@
-GNULIB_STRTOIMAX = @GNULIB_STRTOIMAX@
-GNULIB_STRTOK_R = @GNULIB_STRTOK_R@
-GNULIB_STRTOUMAX = @GNULIB_STRTOUMAX@
-GNULIB_VFPRINTF_POSIX = @GNULIB_VFPRINTF_POSIX@
-GNULIB_VPRINTF_POSIX = @GNULIB_VPRINTF_POSIX@
-GNULIB_VSNPRINTF = @GNULIB_VSNPRINTF@
-GNULIB_VSPRINTF_POSIX = @GNULIB_VSPRINTF_POSIX@
-GNU_PACKAGE = @GNU_PACKAGE@
-GREP = @GREP@
-HAVE_DECL_GETLOGIN_R = @HAVE_DECL_GETLOGIN_R@
-HAVE_DECL_IMAXABS = @HAVE_DECL_IMAXABS@
-HAVE_DECL_IMAXDIV = @HAVE_DECL_IMAXDIV@
-HAVE_DECL_MEMMEM = @HAVE_DECL_MEMMEM@
-HAVE_DECL_MEMRCHR = @HAVE_DECL_MEMRCHR@
-HAVE_DECL_SNPRINTF = @HAVE_DECL_SNPRINTF@
-HAVE_DECL_STRDUP = @HAVE_DECL_STRDUP@
-HAVE_DECL_STRNCASECMP = @HAVE_DECL_STRNCASECMP@
-HAVE_DECL_STRNDUP = @HAVE_DECL_STRNDUP@
-HAVE_DECL_STRNLEN = @HAVE_DECL_STRNLEN@
-HAVE_DECL_STRTOIMAX = @HAVE_DECL_STRTOIMAX@
-HAVE_DECL_STRTOK_R = @HAVE_DECL_STRTOK_R@
-HAVE_DECL_STRTOUMAX = @HAVE_DECL_STRTOUMAX@
-HAVE_DECL_VSNPRINTF = @HAVE_DECL_VSNPRINTF@
-HAVE_DUP2 = @HAVE_DUP2@
-HAVE_FTRUNCATE = @HAVE_FTRUNCATE@
-HAVE_GETSUBOPT = @HAVE_GETSUBOPT@
-HAVE_INTTYPES_H = @HAVE_INTTYPES_H@
-HAVE_LONG_LONG_INT = @HAVE_LONG_LONG_INT@
-HAVE_MEMPCPY = @HAVE_MEMPCPY@
-HAVE_MKDTEMP = @HAVE_MKDTEMP@
-HAVE_NETINET_IN_H = @HAVE_NETINET_IN_H@
-HAVE_READLINK = @HAVE_READLINK@
-HAVE_SIGNED_SIG_ATOMIC_T = @HAVE_SIGNED_SIG_ATOMIC_T@
-HAVE_SIGNED_WCHAR_T = @HAVE_SIGNED_WCHAR_T@
-HAVE_SIGNED_WINT_T = @HAVE_SIGNED_WINT_T@
-HAVE_STDINT_H = @HAVE_STDINT_H@
-HAVE_STPCPY = @HAVE_STPCPY@
-HAVE_STPNCPY = @HAVE_STPNCPY@
-HAVE_STRCASECMP = @HAVE_STRCASECMP@
-HAVE_STRCASESTR = @HAVE_STRCASESTR@
-HAVE_STRCHRNUL = @HAVE_STRCHRNUL@
-HAVE_STRNDUP = @HAVE_STRNDUP@
-HAVE_STRPBRK = @HAVE_STRPBRK@
-HAVE_STRSEP = @HAVE_STRSEP@
-HAVE_STRUCT_TIMEVAL = @HAVE_STRUCT_TIMEVAL@
-HAVE_SYS_BITYPES_H = @HAVE_SYS_BITYPES_H@
-HAVE_SYS_INTTYPES_H = @HAVE_SYS_INTTYPES_H@
-HAVE_SYS_SOCKET_H = @HAVE_SYS_SOCKET_H@
-HAVE_SYS_TIME_H = @HAVE_SYS_TIME_H@
-HAVE_SYS_TYPES_H = @HAVE_SYS_TYPES_H@
-HAVE_UNISTD_H = @HAVE_UNISTD_H@
-HAVE_UNSIGNED_LONG_LONG_INT = @HAVE_UNSIGNED_LONG_LONG_INT@
-HAVE_WCTYPE_H = @HAVE_WCTYPE_H@
-HAVE_WINSOCK2_H = @HAVE_WINSOCK2_H@
-HAVE_WINT_T = @HAVE_WINT_T@
-HAVE_WS2TCPIP_H = @HAVE_WS2TCPIP_H@
-HAVE__BOOL = @HAVE__BOOL@
-HELP2MAN = @HELP2MAN@
-INSTALL = @INSTALL@
-INSTALL_DATA = @INSTALL_DATA@
-INSTALL_PROGRAM = @INSTALL_PROGRAM@
-INSTALL_SCRIPT = @INSTALL_SCRIPT@
-INSTALL_STRIP_PROGRAM = @INSTALL_STRIP_PROGRAM@
-INTLLIBS = @INTLLIBS@
-INTL_MACOSX_LIBS = @INTL_MACOSX_LIBS@
-INTTYPES_H = @INTTYPES_H@
-KMEM_GROUP = @KMEM_GROUP@
-LDFLAGS = @LDFLAGS@
-LIBCOREUTILS_LIBDEPS = @LIBCOREUTILS_LIBDEPS@
-LIBCOREUTILS_LTLIBDEPS = @LIBCOREUTILS_LTLIBDEPS@
-LIBICONV = @LIBICONV@
-LIBINTL = @LIBINTL@
-LIBOBJS = @LIBOBJS@
-LIBS = @LIBS@
-LIB_ACL = @LIB_ACL@
-LIB_ACL_TRIVIAL = @LIB_ACL_TRIVIAL@
-LIB_CLOCK_GETTIME = @LIB_CLOCK_GETTIME@
-LIB_CRYPT = @LIB_CRYPT@
-LIB_EACCESS = @LIB_EACCESS@
-LIB_FDATASYNC = @LIB_FDATASYNC@
-LIB_GETHRXTIME = @LIB_GETHRXTIME@
-LIB_NANOSLEEP = @LIB_NANOSLEEP@
-LN_S = @LN_S@
-LTLIBICONV = @LTLIBICONV@
-LTLIBINTL = @LTLIBINTL@
-LTLIBOBJS = @LTLIBOBJS@
-MAKEINFO = @MAKEINFO@
-MAN = @MAN@
-MKDIR_P = @MKDIR_P@
-MSGFMT = @MSGFMT@
-MSGFMT_015 = @MSGFMT_015@
-MSGMERGE = @MSGMERGE@
-NEED_SETGID = @NEED_SETGID@
-NETINET_IN_H = @NETINET_IN_H@
-OBJEXT = @OBJEXT@
-OPTIONAL_BIN_PROGS = @OPTIONAL_BIN_PROGS@
-PACKAGE = @PACKAGE@
-PACKAGE_BUGREPORT = @PACKAGE_BUGREPORT@
-PACKAGE_NAME = @PACKAGE_NAME@
-PACKAGE_STRING = @PACKAGE_STRING@
-PACKAGE_TARNAME = @PACKAGE_TARNAME@
-PACKAGE_VERSION = @PACKAGE_VERSION@
-PATH_SEPARATOR = @PATH_SEPARATOR@
-PERL = @PERL@
-POSUB = @POSUB@
-POW_LIB = @POW_LIB@
-PRIPTR_PREFIX = @PRIPTR_PREFIX@
-PRI_MACROS_BROKEN = @PRI_MACROS_BROKEN@
-PTRDIFF_T_SUFFIX = @PTRDIFF_T_SUFFIX@
-RANLIB = @RANLIB@
-REPLACE_CHOWN = @REPLACE_CHOWN@
-REPLACE_FCHDIR = @REPLACE_FCHDIR@
-REPLACE_FPRINTF = @REPLACE_FPRINTF@
-REPLACE_GETCWD = @REPLACE_GETCWD@
-REPLACE_GETTIMEOFDAY = @REPLACE_GETTIMEOFDAY@
-REPLACE_LOCALTIME_R = @REPLACE_LOCALTIME_R@
-REPLACE_MKSTEMP = @REPLACE_MKSTEMP@
-REPLACE_NANOSLEEP = @REPLACE_NANOSLEEP@
-REPLACE_PRINTF = @REPLACE_PRINTF@
-REPLACE_SNPRINTF = @REPLACE_SNPRINTF@
-REPLACE_SPRINTF = @REPLACE_SPRINTF@
-REPLACE_STRPTIME = @REPLACE_STRPTIME@
-REPLACE_TIMEGM = @REPLACE_TIMEGM@
-REPLACE_VFPRINTF = @REPLACE_VFPRINTF@
-REPLACE_VPRINTF = @REPLACE_VPRINTF@
-REPLACE_VSNPRINTF = @REPLACE_VSNPRINTF@
-REPLACE_VSPRINTF = @REPLACE_VSPRINTF@
-SEQ_LIBM = @SEQ_LIBM@
-SET_MAKE = @SET_MAKE@
-SHELL = @SHELL@
-SIG_ATOMIC_T_SUFFIX = @SIG_ATOMIC_T_SUFFIX@
-SIZE_T_SUFFIX = @SIZE_T_SUFFIX@
-STDBOOL_H = @STDBOOL_H@
-STDINT_H = @STDINT_H@
-STRIP = @STRIP@
-SYS_SOCKET_H = @SYS_SOCKET_H@
-SYS_STAT_H = @SYS_STAT_H@
-SYS_TIME_H = @SYS_TIME_H@
-SYS_TIME_H_DEFINES_STRUCT_TIMESPEC = @SYS_TIME_H_DEFINES_STRUCT_TIMESPEC@
-TIME_H_DEFINES_STRUCT_TIMESPEC = @TIME_H_DEFINES_STRUCT_TIMESPEC@
-U = @U@
-USE_NLS = @USE_NLS@
-VERSION = @VERSION@
-WCHAR_H = @WCHAR_H@
-WCHAR_T_SUFFIX = @WCHAR_T_SUFFIX@
-WCTYPE_H = @WCTYPE_H@
-WINT_T_SUFFIX = @WINT_T_SUFFIX@
-XGETTEXT = @XGETTEXT@
-XGETTEXT_015 = @XGETTEXT_015@
-YACC = @YACC@
-YFLAGS = @YFLAGS@
-abs_builddir = @abs_builddir@
-abs_srcdir = @abs_srcdir@
-abs_top_builddir = @abs_top_builddir@
-abs_top_srcdir = @abs_top_srcdir@
-ac_ct_CC = @ac_ct_CC@
-am__include = @am__include@
-am__leading_dot = @am__leading_dot@
-am__quote = @am__quote@
-am__tar = @am__tar@
-am__untar = @am__untar@
-bindir = @bindir@
-build = @build@
-build_alias = @build_alias@
-build_cpu = @build_cpu@
-build_os = @build_os@
-build_vendor = @build_vendor@
-builddir = @builddir@
-datadir = @datadir@
-datarootdir = @datarootdir@
-docdir = @docdir@
-dvidir = @dvidir@
-exec_prefix = @exec_prefix@
-gl_LIBOBJS = @gl_LIBOBJS@
-gl_LTLIBOBJS = @gl_LTLIBOBJS@
-host = @host@
-host_alias = @host_alias@
-host_cpu = @host_cpu@
-host_os = @host_os@
-host_vendor = @host_vendor@
-htmldir = @htmldir@
-includedir = @includedir@
-infodir = @infodir@
-install_sh = @install_sh@
-libdir = @libdir@
-libexecdir = @libexecdir@
-localedir = @localedir@
-localstatedir = @localstatedir@
-mandir = @mandir@
-mkdir_p = @mkdir_p@
-oldincludedir = @oldincludedir@
-pdfdir = @pdfdir@
-prefix = @prefix@
-program_transform_name = @program_transform_name@
-psdir = @psdir@
-sbindir = @sbindir@
-sharedstatedir = @sharedstatedir@
-srcdir = @srcdir@
-sysconfdir = @sysconfdir@
-target_alias = @target_alias@
-top_builddir = @top_builddir@
-top_srcdir = @top_srcdir@
-EXTRA_DIST = $(TESTS)
-TESTS_ENVIRONMENT = \
- top_srcdir=$(top_srcdir) \
- srcdir=$(srcdir) \
- PERL="$(PERL)" \
- CU_TEST_NAME=`basename $(abs_srcdir)`,$$tst \
- PATH="$(VG_PATH_PREFIX)`pwd`/../../src$(PATH_SEPARATOR)$$PATH" \
- PROG=tail
-
-TESTS = \
- append-only \
- tail-n0f \
- big-4gb proc-ksyms start-middle assert assert-2
-
-all: all-am
-
-.SUFFIXES:
-$(srcdir)/Makefile.in: $(srcdir)/Makefile.am $(am__configure_deps)
- @for dep in $?; do \
- case '$(am__configure_deps)' in \
- *$$dep*) \
- cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh \
- && exit 0; \
- exit 1;; \
- esac; \
- done; \
- echo ' cd $(top_srcdir) && $(AUTOMAKE) --gnu tests/tail-2/Makefile'; \
- cd $(top_srcdir) && \
- $(AUTOMAKE) --gnu tests/tail-2/Makefile
-.PRECIOUS: Makefile
-Makefile: $(srcdir)/Makefile.in $(top_builddir)/config.status
- @case '$?' in \
- *config.status*) \
- cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh;; \
- *) \
- echo ' cd $(top_builddir) && $(SHELL) ./config.status $(subdir)/$@ $(am__depfiles_maybe)'; \
- cd $(top_builddir) && $(SHELL) ./config.status $(subdir)/$@ $(am__depfiles_maybe);; \
- esac;
-
-$(top_builddir)/config.status: $(top_srcdir)/configure $(CONFIG_STATUS_DEPENDENCIES)
- cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh
-
-$(top_srcdir)/configure: $(am__configure_deps)
- cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh
-$(ACLOCAL_M4): $(am__aclocal_m4_deps)
- cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh
-tags: TAGS
-TAGS:
-
-ctags: CTAGS
-CTAGS:
-
-
-check-TESTS: $(TESTS)
- @failed=0; all=0; xfail=0; xpass=0; skip=0; ws='[ ]'; \
- srcdir=$(srcdir); export srcdir; \
- list=' $(TESTS) '; \
- if test -n "$$list"; then \
- for tst in $$list; do \
- if test -f ./$$tst; then dir=./; \
- elif test -f $$tst; then dir=; \
- else dir="$(srcdir)/"; fi; \
- if $(TESTS_ENVIRONMENT) $${dir}$$tst; then \
- all=`expr $$all + 1`; \
- case " $(XFAIL_TESTS) " in \
- *$$ws$$tst$$ws*) \
- xpass=`expr $$xpass + 1`; \
- failed=`expr $$failed + 1`; \
- echo "XPASS: $$tst"; \
- ;; \
- *) \
- echo "PASS: $$tst"; \
- ;; \
- esac; \
- elif test $$? -ne 77; then \
- all=`expr $$all + 1`; \
- case " $(XFAIL_TESTS) " in \
- *$$ws$$tst$$ws*) \
- xfail=`expr $$xfail + 1`; \
- echo "XFAIL: $$tst"; \
- ;; \
- *) \
- failed=`expr $$failed + 1`; \
- echo "FAIL: $$tst"; \
- ;; \
- esac; \
- else \
- skip=`expr $$skip + 1`; \
- echo "SKIP: $$tst"; \
- fi; \
- done; \
- if test "$$failed" -eq 0; then \
- if test "$$xfail" -eq 0; then \
- banner="All $$all tests passed"; \
- else \
- banner="All $$all tests behaved as expected ($$xfail expected failures)"; \
- fi; \
- else \
- if test "$$xpass" -eq 0; then \
- banner="$$failed of $$all tests failed"; \
- else \
- banner="$$failed of $$all tests did not behave as expected ($$xpass unexpected passes)"; \
- fi; \
- fi; \
- dashes="$$banner"; \
- skipped=""; \
- if test "$$skip" -ne 0; then \
- skipped="($$skip tests were not run)"; \
- test `echo "$$skipped" | wc -c` -le `echo "$$banner" | wc -c` || \
- dashes="$$skipped"; \
- fi; \
- report=""; \
- if test "$$failed" -ne 0 && test -n "$(PACKAGE_BUGREPORT)"; then \
- report="Please report to $(PACKAGE_BUGREPORT)"; \
- test `echo "$$report" | wc -c` -le `echo "$$banner" | wc -c` || \
- dashes="$$report"; \
- fi; \
- dashes=`echo "$$dashes" | sed s/./=/g`; \
- echo "$$dashes"; \
- echo "$$banner"; \
- test -z "$$skipped" || echo "$$skipped"; \
- test -z "$$report" || echo "$$report"; \
- echo "$$dashes"; \
- test "$$failed" -eq 0; \
- else :; fi
-
-distdir: $(DISTFILES)
- @srcdirstrip=`echo "$(srcdir)" | sed 's/[].[^$$\\*]/\\\\&/g'`; \
- topsrcdirstrip=`echo "$(top_srcdir)" | sed 's/[].[^$$\\*]/\\\\&/g'`; \
- list='$(DISTFILES)'; \
- dist_files=`for file in $$list; do echo $$file; done | \
- sed -e "s|^$$srcdirstrip/||;t" \
- -e "s|^$$topsrcdirstrip/|$(top_builddir)/|;t"`; \
- case $$dist_files in \
- */*) $(MKDIR_P) `echo "$$dist_files" | \
- sed '/\//!d;s|^|$(distdir)/|;s,/[^/]*$$,,' | \
- sort -u` ;; \
- esac; \
- for file in $$dist_files; do \
- if test -f $$file || test -d $$file; then d=.; else d=$(srcdir); fi; \
- if test -d $$d/$$file; then \
- dir=`echo "/$$file" | sed -e 's,/[^/]*$$,,'`; \
- if test -d $(srcdir)/$$file && test $$d != $(srcdir); then \
- cp -pR $(srcdir)/$$file $(distdir)$$dir || exit 1; \
- fi; \
- cp -pR $$d/$$file $(distdir)$$dir || exit 1; \
- else \
- test -f $(distdir)/$$file \
- || cp -p $$d/$$file $(distdir)/$$file \
- || exit 1; \
- fi; \
- done
-check-am: all-am
- $(MAKE) $(AM_MAKEFLAGS) check-TESTS
-check: check-am
-all-am: Makefile
-installdirs:
-install: install-am
-install-exec: install-exec-am
-install-data: install-data-am
-uninstall: uninstall-am
-
-install-am: all-am
- @$(MAKE) $(AM_MAKEFLAGS) install-exec-am install-data-am
-
-installcheck: installcheck-am
-install-strip:
- $(MAKE) $(AM_MAKEFLAGS) INSTALL_PROGRAM="$(INSTALL_STRIP_PROGRAM)" \
- install_sh_PROGRAM="$(INSTALL_STRIP_PROGRAM)" INSTALL_STRIP_FLAG=-s \
- `test -z '$(STRIP)' || \
- echo "INSTALL_PROGRAM_ENV=STRIPPROG='$(STRIP)'"` install
-mostlyclean-generic:
-
-clean-generic:
-
-distclean-generic:
- -test -z "$(CONFIG_CLEAN_FILES)" || rm -f $(CONFIG_CLEAN_FILES)
-
-maintainer-clean-generic:
- @echo "This command is intended for maintainers to use"
- @echo "it deletes files that may require special tools to rebuild."
-clean: clean-am
-
-clean-am: clean-generic mostlyclean-am
-
-distclean: distclean-am
- -rm -f Makefile
-distclean-am: clean-am distclean-generic
-
-dvi: dvi-am
-
-dvi-am:
-
-html: html-am
-
-info: info-am
-
-info-am:
-
-install-data-am:
-
-install-dvi: install-dvi-am
-
-install-exec-am:
-
-install-html: install-html-am
-
-install-info: install-info-am
-
-install-man:
-
-install-pdf: install-pdf-am
-
-install-ps: install-ps-am
-
-installcheck-am:
-
-maintainer-clean: maintainer-clean-am
- -rm -f Makefile
-maintainer-clean-am: distclean-am maintainer-clean-generic
-
-mostlyclean: mostlyclean-am
-
-mostlyclean-am: mostlyclean-generic
-
-pdf: pdf-am
-
-pdf-am:
-
-ps: ps-am
-
-ps-am:
-
-uninstall-am:
-
-.MAKE: install-am install-strip
-
-.PHONY: all all-am check check-TESTS check-am clean clean-generic \
- distclean distclean-generic distdir dvi dvi-am html html-am \
- info info-am install install-am install-data install-data-am \
- install-dvi install-dvi-am install-exec install-exec-am \
- install-html install-html-am install-info install-info-am \
- install-man install-pdf install-pdf-am install-ps \
- install-ps-am install-strip installcheck installcheck-am \
- installdirs maintainer-clean maintainer-clean-generic \
- mostlyclean mostlyclean-generic pdf pdf-am ps ps-am uninstall \
- uninstall-am
-
-# Tell versions [3.59,3.63) of GNU make to not export all variables.
-# Otherwise a system limit (for SysV at least) may be exceeded.
-.NOEXPORT:
diff --git a/tests/tail-2/append-only b/tests/tail-2/append-only
deleted file mode 100755
index cee6644..0000000
--- a/tests/tail-2/append-only
+++ /dev/null
@@ -1,55 +0,0 @@
-#!/bin/sh
-# Ensure that tail -f works on an append-only file
-# Requires root access to do chattr +a, as well as an ext[23] or xfs file system
-
-# Copyright (C) 2006 Free Software Foundation, Inc.
-
-# This program is free software; you can redistribute it and/or modify
-# it under the terms of the GNU General Public License as published by
-# the Free Software Foundation; either version 2 of the License, or
-# (at your option) any later version.
-
-# This program is distributed in the hope that it will be useful,
-# but WITHOUT ANY WARRANTY; without even the implied warranty of
-# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
-# GNU General Public License for more details.
-
-# You should have received a copy of the GNU General Public License
-# along with this program; if not, write to the Free Software
-# Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA
-# 02110-1301, USA.
-
-if test "$VERBOSE" = yes; then
- set -x
- tail --version
-fi
-
-PRIV_CHECK_ARG=require-root . $srcdir/../priv-check
-
-pwd=`pwd`
-t0=`echo "$0"|sed 's,.*/,,'`.tmp; tmp=$t0/$$
-trap 'status=$?; cd "$pwd" && chmod -R u+rwx $t0 && rm -rf $t0 && exit $status' 0
-trap '(exit $?); exit $?' 1 2 13 15
-
-framework_failure=0
-mkdir -p $tmp || framework_failure=1
-cd $tmp || framework_failure=1
-
-touch f
-chattr +a f 2>/dev/null || framework_failure=1
-( echo x > f ) 2>/dev/null && framework_failure=1
-echo x >> f || framework_failure=1
-
-if test $framework_failure = 1; then
- echo "$0: chattr +a doesn't work on this file system; skipping this test " 1>&2
- (exit 77); exit 77
-fi
-
-fail=0
-
-sleep 1 &
-pid=$!
-tail --pid=$pid -f f > /dev/null 2>&1 || fail=1
-chattr -a f 2>/dev/null
-
-(exit $fail); exit $fail
diff --git a/tests/tail-2/append-only.sh b/tests/tail-2/append-only.sh
new file mode 100755
index 0000000..42a3197
--- /dev/null
+++ b/tests/tail-2/append-only.sh
@@ -0,0 +1,46 @@
+#!/bin/sh
+# Ensure that tail -f works on an append-only file
+# Requires root access to do chattr +a, as well as an ext[23] or xfs file system
+
+# Copyright (C) 2006-2016 Free Software Foundation, Inc.
+
+# This program is free software: you can redistribute it and/or modify
+# it under the terms of the GNU General Public License as published by
+# the Free Software Foundation, either version 3 of the License, or
+# (at your option) any later version.
+
+# This program is distributed in the hope that it will be useful,
+# but WITHOUT ANY WARRANTY; without even the implied warranty of
+# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
+# GNU General Public License for more details.
+
+# You should have received a copy of the GNU General Public License
+# along with this program. If not, see <http://www.gnu.org/licenses/>.
+
+. "${srcdir=.}/tests/init.sh"; path_prepend_ ./src
+print_ver_ tail
+require_root_
+
+# Terminate any background tail process
+cleanup_() { kill $pid 2>/dev/null && wait $pid; }
+
+chattr_a_works=1
+touch f
+chattr +a f 2>/dev/null || chattr_a_works=0
+( echo x > f ) 2>/dev/null && chattr_a_works=0
+echo x >> f || chattr_a_works=0
+
+if test $chattr_a_works = 0; then
+ skip_ "chattr +a doesn't work on this file system"
+fi
+
+
+for mode in '' '---disable-inotify'; do
+ sleep 1 & pid=$!
+ tail --pid=$pid -f $mode f || fail=1
+ cleanup_
+done
+
+chattr -a f 2>/dev/null
+
+Exit $fail
diff --git a/tests/tail-2/assert b/tests/tail-2/assert
deleted file mode 100755
index b94a6ba..0000000
--- a/tests/tail-2/assert
+++ /dev/null
@@ -1,78 +0,0 @@
-#!/bin/sh
-# Test for assertion failure in "test".
-
-# Copyright (C) 1999, 2000, 2004, 2006 Free Software Foundation, Inc.
-
-# This program is free software; you can redistribute it and/or modify
-# it under the terms of the GNU General Public License as published by
-# the Free Software Foundation; either version 2 of the License, or
-# (at your option) any later version.
-
-# This program is distributed in the hope that it will be useful,
-# but WITHOUT ANY WARRANTY; without even the implied warranty of
-# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
-# GNU General Public License for more details.
-
-# You should have received a copy of the GNU General Public License
-# along with this program; if not, write to the Free Software
-# Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA
-# 02110-1301, USA.
-
-
-# This test fails with tail from textutils-2.0.
-# It would get something like this:
-# tail: tail.c:718: recheck: Assertion `valid_file_spec (f)' failed.
-# Aborted
-# due to a race condition in which a dev/inode pair is reused.
-
-if test "$VERBOSE" = yes; then
- set -x
- tail --version
-fi
-
-# Not "expensive" per se, but sleeping for so long is annoying.
-. $srcdir/../very-expensive
-
-tmp=tail-assert.$$
-pwd=`pwd`
-trap 'cd "$pwd" && rm -rf $tmp' 0 1 2 3 15
-
-test_failure=0
-mkdir $tmp || test_failure=1
-cd $tmp || test_failure=1
-
-if test $test_failure = 1; then
- echo 'failure in testing framework'
- exit 1
-fi
-
-ok='ok ok ok'
-
-touch a foo
-tail --follow=name a foo > err 2>&1 &
-tail_pid=$!
-# Arrange for the tail process to die after 12 seconds.
-(sleep 12; kill $tail_pid) &
-
-echo sleeping for 7 seconds...
-
-# Give the backgrounded `tail' a chance to start before removing foo.
-# Otherwise, without --retry, tail wouldn't try to open `foo' again.
-sleep 1
-
-rm -f foo
-sleep 6
-echo $ok > f
-mv f foo
-
-# echo waiting....
-wait
-
-case "`cat err`" in
- *$ok) fail=0;;
- *) fail=1;;
-esac
-
-test $fail = 1 && cat err
-
-exit $fail
diff --git a/tests/tail-2/assert-2 b/tests/tail-2/assert-2
deleted file mode 100755
index f535758..0000000
--- a/tests/tail-2/assert-2
+++ /dev/null
@@ -1,66 +0,0 @@
-#!/bin/sh
-# This variant of `assert' would get a UMR reliably in 2.0.9.
-# Due to a race condition in the test, the `assert' script would get
-# the UMR on Solaris only some of the time, and not at all on Linux/GNU.
-
-# Copyright (C) 2000, 2006 Free Software Foundation, Inc.
-
-# This program is free software; you can redistribute it and/or modify
-# it under the terms of the GNU General Public License as published by
-# the Free Software Foundation; either version 2 of the License, or
-# (at your option) any later version.
-
-# This program is distributed in the hope that it will be useful,
-# but WITHOUT ANY WARRANTY; without even the implied warranty of
-# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
-# GNU General Public License for more details.
-
-# You should have received a copy of the GNU General Public License
-# along with this program; if not, write to the Free Software
-# Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA
-# 02110-1301, USA.
-
-if test "$VERBOSE" = yes; then
- set -x
- tail --version
-fi
-
-# Not "expensive" per se, but sleeping for so long is annoying.
-. $srcdir/../very-expensive
-
-tmp=tail-as2.$$
-pwd=`pwd`
-trap 'cd "$pwd" && rm -rf $tmp' 0 1 2 3 15
-
-test_failure=0
-mkdir $tmp || test_failure=1
-cd $tmp || test_failure=1
-
-if test $test_failure = 1; then
- echo 'failure in testing framework'
- exit 1
-fi
-
-ok='ok ok ok'
-
-touch a
-tail --follow=name a foo > err 2>&1 &
-tail_pid=$!
-# Arrange for the tail process to die after 12 seconds.
-(sleep 12; kill $tail_pid) &
-echo $ok > f
-echo sleeping for 7 seconds...
-sleep 7
-mv f foo
-
-# echo waiting....
-wait
-
-case "`cat err`" in
- *$ok) fail=0;;
- *) fail=1;;
-esac
-
-test $fail = 1 && cat err
-
-exit $fail
diff --git a/tests/tail-2/assert-2.sh b/tests/tail-2/assert-2.sh
new file mode 100755
index 0000000..79d4254
--- /dev/null
+++ b/tests/tail-2/assert-2.sh
@@ -0,0 +1,57 @@
+#!/bin/sh
+# This variant of 'assert' would get a Uninit Mem Read reliably in 2.0.9.
+# Due to a race condition in the test, the 'assert' script would get
+# the UMR on Solaris only some of the time, and not at all on Linux/GNU.
+
+# Copyright (C) 2000-2016 Free Software Foundation, Inc.
+
+# This program is free software: you can redistribute it and/or modify
+# it under the terms of the GNU General Public License as published by
+# the Free Software Foundation, either version 3 of the License, or
+# (at your option) any later version.
+
+# This program is distributed in the hope that it will be useful,
+# but WITHOUT ANY WARRANTY; without even the implied warranty of
+# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
+# GNU General Public License for more details.
+
+# You should have received a copy of the GNU General Public License
+# along with this program. If not, see <http://www.gnu.org/licenses/>.
+
+. "${srcdir=.}/tests/init.sh"; path_prepend_ ./src
+print_ver_ tail
+
+check_tail_output()
+{
+ local delay="$1"
+ grep "$tail_re" out ||
+ { sleep $delay; return 1; }
+}
+
+# Terminate any background tail process
+cleanup_() { kill $pid 2>/dev/null && wait $pid; }
+
+# Speedup the non inotify case
+fastpoll='-s.1 --max-unchanged-stats=1'
+
+for mode in '' '---disable-inotify'; do
+ rm -f a foo out
+ touch a || framework_failure_
+
+ tail $mode --follow=name $fastpoll a foo > out 2>&1 & pid=$!
+
+ # Wait up to 12.7s for tail to start.
+ echo x > a || framework_failure_
+ tail_re='^x$' retry_delay_ check_tail_output .1 7 ||
+ { cat out; fail=1; break; }
+
+ # Wait up to 12.7s for tail to notice new foo file
+ ok='ok ok ok'
+ echo "$ok" > foo || framework_failure_
+ tail_re="^$ok$" retry_delay_ check_tail_output .1 7 ||
+ { echo "$0: foo: unexpected delay?"; cat out; fail=1; break; }
+
+ cleanup_
+done
+
+Exit $fail
diff --git a/tests/tail-2/assert.sh b/tests/tail-2/assert.sh
new file mode 100755
index 0000000..c5f3703
--- /dev/null
+++ b/tests/tail-2/assert.sh
@@ -0,0 +1,68 @@
+#!/bin/sh
+# Test for assertion failure in "test".
+
+# Copyright (C) 1999-2016 Free Software Foundation, Inc.
+
+# This program is free software: you can redistribute it and/or modify
+# it under the terms of the GNU General Public License as published by
+# the Free Software Foundation, either version 3 of the License, or
+# (at your option) any later version.
+
+# This program is distributed in the hope that it will be useful,
+# but WITHOUT ANY WARRANTY; without even the implied warranty of
+# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
+# GNU General Public License for more details.
+
+# You should have received a copy of the GNU General Public License
+# along with this program. If not, see <http://www.gnu.org/licenses/>.
+
+
+# This test fails with tail from textutils-2.0.
+# It would get something like this:
+# tail: tail.c:718: recheck: Assertion 'valid_file_spec (f)' failed.
+# Aborted
+# due to a race condition in which a dev/inode pair is reused.
+
+. "${srcdir=.}/tests/init.sh"; path_prepend_ ./src
+print_ver_ tail
+
+check_tail_output()
+{
+ local delay="$1"
+ grep "$tail_re" out ||
+ { sleep $delay; return 1; }
+}
+
+# Terminate any background tail process
+cleanup_() { kill $pid 2>/dev/null && wait $pid; }
+
+# Speedup the non inotify case
+fastpoll='-s.1 --max-unchanged-stats=1'
+
+for mode in '' '---disable-inotify'; do
+ rm -f a foo out
+ touch a foo || framework_failure_
+
+ tail $mode --follow=name $fastpoll a foo > out 2>&1 & pid=$!
+
+ # Wait up to 12.7s for tail to start.
+ echo x > a || framework_failure_
+ tail_re='^x$' retry_delay_ check_tail_output .1 7 ||
+ { cat out; fail=1; break; }
+
+ # Wait 12.7s for this diagnostic:
+ # tail: foo: No such file or directory
+ rm foo || framework_failure_
+ tail_re='No such file' retry_delay_ check_tail_output .1 7 ||
+ { cat out; fail=1; break; }
+
+ # Wait up to 12.7s for tail to notice new foo file
+ ok='ok ok ok'
+ echo "$ok" > foo || framework_failure_
+ tail_re="^$ok$" retry_delay_ check_tail_output .1 7 ||
+ { echo "$0: foo: unexpected delay?"; cat out; fail=1; break; }
+
+ cleanup_
+done
+
+Exit $fail
diff --git a/tests/tail-2/big-4gb b/tests/tail-2/big-4gb
deleted file mode 100755
index b0ca79d..0000000
--- a/tests/tail-2/big-4gb
+++ /dev/null
@@ -1,71 +0,0 @@
-#!/bin/sh
-# Demonstrate a bug in `tail -cN' when operating on files of size 4G and larger
-# Fixed in coreutils-4.5.2.
-
-# Copyright (C) 2002, 2003, 2006 Free Software Foundation, Inc.
-
-# This program is free software; you can redistribute it and/or modify
-# it under the terms of the GNU General Public License as published by
-# the Free Software Foundation; either version 2 of the License, or
-# (at your option) any later version.
-
-# This program is distributed in the hope that it will be useful,
-# but WITHOUT ANY WARRANTY; without even the implied warranty of
-# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
-# GNU General Public License for more details.
-
-# You should have received a copy of the GNU General Public License
-# along with this program; if not, write to the Free Software
-# Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA
-# 02110-1301, USA.
-
-. $srcdir/../expensive
-
-if test "$VERBOSE" = yes; then
- set -x
- tail --version
-fi
-
-pwd=`pwd`
-t0=`echo "$0"|sed 's,.*/,,'`.tmp; tmp=$t0/$$
-trap 'status=$?; cd "$pwd" && chmod -R u+rwx $t0 && rm -rf $t0 && exit $status' 0
-trap '(exit $?); exit $?' 1 2 13 15
-
-framework_failure=0
-mkdir -p $tmp || framework_failure=1
-cd $tmp || framework_failure=1
-
-# Create a file of size exactly 4GB (2^32) with 8 bytes
-# at the beginning and another set of 8 bytes at the end.
-# The rest will be NUL bytes. On most modern systems, the following
-# creates a file that takes up only a few KB. Here, du -sh says 16K.
-echo abcdefgh | tr -d '\n' > big || framework_failure=1
-echo 87654321 | tr -d '\n' > tmp || framework_failure=1
-# Seek 4GB - 8
-dd bs=1 seek=4294967288 if=tmp of=big 2> err || dd_failed=1
-if test "$dd_failed" = 1; then
- cat err 1>&2
- echo "$0: cannot create a file large enough for this test," 1>&2
- echo "$0: possibly because this system doesn't support large files;" 1>&2
- echo "$0: Consider rerunning this test on a different file system." 1>&2
- (exit 77); exit 77
-fi
-
-if test $framework_failure = 1; then
- echo "$0: failure in testing framework" 1>&2
- (exit 1); exit 1
-fi
-
-fail=0
-
-tail -c1 big > out || fail=1
-# Append a newline.
-echo >> out
-cat <<\EOF > exp
-1
-EOF
-
-cmp out exp || fail=1
-test $fail = 1 && diff out exp 2> /dev/null
-
-(exit $fail); exit $fail
diff --git a/tests/tail-2/big-4gb.sh b/tests/tail-2/big-4gb.sh
new file mode 100755
index 0000000..9c96725
--- /dev/null
+++ b/tests/tail-2/big-4gb.sh
@@ -0,0 +1,50 @@
+#!/bin/sh
+# Demonstrate a bug in 'tail -cN' when operating on files of size 4G and larger
+# Fixed in coreutils-4.5.2.
+
+# Copyright (C) 2002-2016 Free Software Foundation, Inc.
+
+# This program is free software: you can redistribute it and/or modify
+# it under the terms of the GNU General Public License as published by
+# the Free Software Foundation, either version 3 of the License, or
+# (at your option) any later version.
+
+# This program is distributed in the hope that it will be useful,
+# but WITHOUT ANY WARRANTY; without even the implied warranty of
+# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
+# GNU General Public License for more details.
+
+# You should have received a copy of the GNU General Public License
+# along with this program. If not, see <http://www.gnu.org/licenses/>.
+
+. "${srcdir=.}/tests/init.sh"; path_prepend_ ./src
+print_ver_ tail
+expensive_
+
+# Create a file of size exactly 4GB (2^32) with 8 bytes
+# at the beginning and another set of 8 bytes at the end.
+# The rest will be NUL bytes. On most modern systems, the following
+# creates a file that takes up only a few KB. Here, du -sh says 16K.
+echo abcdefgh | tr -d '\n' > big || framework_failure_
+echo 87654321 | tr -d '\n' > tmp || framework_failure_
+# Seek 4GB - 8
+dd bs=1 seek=4294967288 if=tmp of=big 2> err || dd_failed=1
+if test "$dd_failed" = 1; then
+ cat err 1>&2
+ skip_ \
+'cannot create a file large enough for this test,
+possibly because this system does not support large files;
+Consider rerunning this test on a different file system.'
+fi
+
+
+tail -c1 big > out || fail=1
+# Append a newline.
+echo >> out
+cat <<\EOF > exp
+1
+EOF
+
+compare exp out || fail=1
+
+Exit $fail
diff --git a/tests/tail-2/descriptor-vs-rename.sh b/tests/tail-2/descriptor-vs-rename.sh
new file mode 100755
index 0000000..595013c
--- /dev/null
+++ b/tests/tail-2/descriptor-vs-rename.sh
@@ -0,0 +1,56 @@
+#!/bin/sh
+# Demonstrate that tail -f works when renaming the tailed files.
+# Between coreutils 7.5 and 8.23 inclusive, 'tail -f a' would
+# stop tracking additions to b after 'mv a b'.
+
+# Copyright (C) 2015-2016 Free Software Foundation, Inc.
+
+# This program is free software: you can redistribute it and/or modify
+# it under the terms of the GNU General Public License as published by
+# the Free Software Foundation, either version 3 of the License, or
+# (at your option) any later version.
+
+# This program is distributed in the hope that it will be useful,
+# but WITHOUT ANY WARRANTY; without even the implied warranty of
+# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
+# GNU General Public License for more details.
+
+# You should have received a copy of the GNU General Public License
+# along with this program. If not, see <http://www.gnu.org/licenses/>.
+
+. "${srcdir=.}/tests/init.sh"; path_prepend_ ./src
+print_ver_ tail
+
+check_tail_output()
+{
+ local delay="$1"
+ grep "$tail_re" out ||
+ { sleep $delay; return 1; }
+}
+
+# Terminate any background tail process
+cleanup_() { kill $pid 2>/dev/null && wait $pid; }
+
+# Speedup the non inotify case
+fastpoll='-s.1 --max-unchanged-stats=1'
+
+for mode in '' '---disable-inotify'; do
+ rm -f a out
+ touch a || framework_failure_
+
+ tail $mode $fastpoll -f a > out 2>&1 & pid=$!
+
+ # Wait up to 12.7s for tail to start.
+ echo x > a
+ tail_re='^x$' retry_delay_ check_tail_output .1 7 || { cat out; fail=1; }
+
+ mv a b || framework_failure_
+
+ echo y >> b
+ # Wait up to 12.7s for "y" to appear in the output:
+ tail_re='^y$' retry_delay_ check_tail_output .1 7 || { cat out; fail=1; }
+
+ cleanup_
+done
+
+Exit $fail
diff --git a/tests/tail-2/flush-initial.sh b/tests/tail-2/flush-initial.sh
new file mode 100755
index 0000000..803502a
--- /dev/null
+++ b/tests/tail-2/flush-initial.sh
@@ -0,0 +1,44 @@
+#!/bin/sh
+# inotify-based tail -f didn't flush its initial output before blocking
+
+# Copyright (C) 2009-2016 Free Software Foundation, Inc.
+
+# This program is free software: you can redistribute it and/or modify
+# it under the terms of the GNU General Public License as published by
+# the Free Software Foundation, either version 3 of the License, or
+# (at your option) any later version.
+
+# This program is distributed in the hope that it will be useful,
+# but WITHOUT ANY WARRANTY; without even the implied warranty of
+# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
+# GNU General Public License for more details.
+
+# You should have received a copy of the GNU General Public License
+# along with this program. If not, see <http://www.gnu.org/licenses/>.
+
+. "${srcdir=.}/tests/init.sh"; path_prepend_ ./src
+print_ver_ tail
+
+# Speedup the non inotify case
+fastpoll='-s.1 --max-unchanged-stats=1'
+
+# Terminate any background tail process
+cleanup_() { kill $pid 2>/dev/null && wait $pid; }
+
+echo line > in || framework_failure_
+# Output should be buffered since we're writing to file
+# so we're depending on the flush to write out
+tail $fastpoll -f in > out & pid=$!
+
+# Wait for 3.1s for the file to be flushed.
+tail_flush()
+{
+ local delay="$1"
+ sleep $delay
+ test -s out
+}
+retry_delay_ tail_flush .1 5 || fail=1
+
+cleanup_
+
+Exit $fail
diff --git a/tests/tail-2/follow-name.sh b/tests/tail-2/follow-name.sh
new file mode 100755
index 0000000..ea5c5d9
--- /dev/null
+++ b/tests/tail-2/follow-name.sh
@@ -0,0 +1,36 @@
+#!/bin/sh
+# ensure that --follow=name does not imply --retry
+
+# Copyright (C) 2011-2016 Free Software Foundation, Inc.
+
+# This program is free software: you can redistribute it and/or modify
+# it under the terms of the GNU General Public License as published by
+# the Free Software Foundation, either version 3 of the License, or
+# (at your option) any later version.
+
+# This program is distributed in the hope that it will be useful,
+# but WITHOUT ANY WARRANTY; without even the implied warranty of
+# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
+# GNU General Public License for more details.
+
+# You should have received a copy of the GNU General Public License
+# along with this program. If not, see <http://www.gnu.org/licenses/>.
+
+. "${srcdir=.}/tests/init.sh"; path_prepend_ ./src
+print_ver_ tail
+
+cat <<\EOF > exp || framework_failure_
+tail: cannot open 'no-such' for reading: No such file or directory
+tail: no files remaining
+EOF
+
+timeout 10 tail --follow=name no-such > out 2> err
+test $? = 1 || fail=1
+
+# Remove an inconsequential inotify warning so
+# we can compare against the above error
+sed '/inotify cannot be used/d' err > k && mv k err
+
+compare exp err || fail=1
+
+Exit $fail
diff --git a/tests/tail-2/follow-stdin.sh b/tests/tail-2/follow-stdin.sh
new file mode 100755
index 0000000..a2f1804
--- /dev/null
+++ b/tests/tail-2/follow-stdin.sh
@@ -0,0 +1,53 @@
+#!/bin/sh
+# tail -f - would fail with the initial inotify implementation
+
+# Copyright (C) 2009-2016 Free Software Foundation, Inc.
+
+# This program is free software: you can redistribute it and/or modify
+# it under the terms of the GNU General Public License as published by
+# the Free Software Foundation, either version 3 of the License, or
+# (at your option) any later version.
+
+# This program is distributed in the hope that it will be useful,
+# but WITHOUT ANY WARRANTY; without even the implied warranty of
+# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
+# GNU General Public License for more details.
+
+# You should have received a copy of the GNU General Public License
+# along with this program. If not, see <http://www.gnu.org/licenses/>.
+
+. "${srcdir=.}/tests/init.sh"; path_prepend_ ./src
+print_ver_ tail
+
+check_tail_output()
+{
+ local delay="$1"
+ grep "$tail_re" out ||
+ { sleep $delay; return 1; }
+}
+
+# Terminate any background tail process
+cleanup_() { kill $pid 2>/dev/null && wait $pid; }
+
+# Speedup the non inotify case
+fastpoll='-s.1 --max-unchanged-stats=1'
+
+echo line > in || framework_failure_
+echo line > exp || framework_failure_
+
+for mode in '' '---disable-inotify'; do
+ > out || framework_failure_
+
+ tail $mode -f $fastpoll < in > out 2> err & pid=$!
+
+ # Wait up to 12.7s for output to appear:
+ tail_re='line' retry_delay_ check_tail_output .1 7 ||
+ { echo "$0: a: unexpected delay?"; cat out; fail=1; }
+
+ # Ensure there was no error output.
+ compare /dev/null err || fail=1
+
+ cleanup_
+done
+
+Exit $fail
diff --git a/tests/tail-2/inotify-hash-abuse.sh b/tests/tail-2/inotify-hash-abuse.sh
new file mode 100755
index 0000000..ae86349
--- /dev/null
+++ b/tests/tail-2/inotify-hash-abuse.sh
@@ -0,0 +1,71 @@
+#!/bin/sh
+# Exercise an abort-inducing flaw in inotify-enabled tail -F.
+
+# Copyright (C) 2009-2016 Free Software Foundation, Inc.
+
+# This program is free software: you can redistribute it and/or modify
+# it under the terms of the GNU General Public License as published by
+# the Free Software Foundation, either version 3 of the License, or
+# (at your option) any later version.
+
+# This program is distributed in the hope that it will be useful,
+# but WITHOUT ANY WARRANTY; without even the implied warranty of
+# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
+# GNU General Public License for more details.
+
+# You should have received a copy of the GNU General Public License
+# along with this program. If not, see <http://www.gnu.org/licenses/>.
+
+. "${srcdir=.}/tests/init.sh"; path_prepend_ ./src
+print_ver_ tail
+
+# 9 is a magic number, related to internal details of tail.c and hash.c
+n=9
+seq $n | xargs touch || framework_failure_
+
+check_tail_output()
+{
+ local delay="$1"
+ grep "$tail_re" out > /dev/null ||
+ { sleep $delay; return 1; }
+}
+
+# Terminate any background tail process
+cleanup_() { kill $pid 2>/dev/null && wait $pid; }
+
+# Speedup the non inotify case
+fastpoll='-s.1 --max-unchanged-stats=1'
+
+for mode in '' '---disable-inotify'; do
+ rm -f out
+
+ tail $mode $fastpoll -qF $(seq $n) > out 2>&1 & pid=$!
+
+ # Wait up to 12.7s for tail to start
+ echo x > $n
+ tail_re='^x$' retry_delay_ check_tail_output .1 7 ||
+ { cat out; fail=1; }
+
+ mv 1 f || framework_failure_
+
+ # Wait 12.7s for this diagnostic:
+ # tail: '1' has become inaccessible: No such file or directory
+ tail_re='inaccessible' retry_delay_ check_tail_output .1 7 ||
+ { cat out; fail=1; }
+
+ # Trigger the bug. Before the fix, this would provoke the abort.
+ echo a > 1 || framework_failure_
+
+ # Wait up to 6.3s for the "tail: '1' has appeared; ..." message
+ # (or for the buggy tail to die)
+ tail_re='has appeared' retry_delay_ check_tail_output .1 6 ||
+ { cat out; fail=1; }
+
+ # Double check that tail hasn't aborted
+ kill -0 $pid || fail=1
+
+ cleanup_
+done
+
+
+Exit $fail
diff --git a/tests/tail-2/inotify-hash-abuse2.sh b/tests/tail-2/inotify-hash-abuse2.sh
new file mode 100755
index 0000000..b7fa584
--- /dev/null
+++ b/tests/tail-2/inotify-hash-abuse2.sh
@@ -0,0 +1,46 @@
+#!/bin/sh
+# Exercise an abort-inducing flaw in inotify-enabled tail -F.
+# Like inotify-hash-abuse, but without a hard-coded "9".
+
+# Copyright (C) 2009-2016 Free Software Foundation, Inc.
+
+# This program is free software: you can redistribute it and/or modify
+# it under the terms of the GNU General Public License as published by
+# the Free Software Foundation, either version 3 of the License, or
+# (at your option) any later version.
+
+# This program is distributed in the hope that it will be useful,
+# but WITHOUT ANY WARRANTY; without even the implied warranty of
+# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
+# GNU General Public License for more details.
+
+# You should have received a copy of the GNU General Public License
+# along with this program. If not, see <http://www.gnu.org/licenses/>.
+
+. "${srcdir=.}/tests/init.sh"; path_prepend_ ./src
+print_ver_ tail
+
+# Terminate any background tail process
+cleanup_() { kill $pid 2>/dev/null && wait $pid; }
+
+# Speedup the non inotify case
+fastpoll='-s.1 --max-unchanged-stats=1'
+
+for mode in '' '---disable-inotify'; do
+ touch f || framework_failure_
+
+ tail $mode $fastpoll -F f & pid=$!
+
+ for i in $(seq 200); do
+ kill -0 $pid || break;
+ mv f g
+ touch f
+ done
+
+ # Ensure tail hasn't aborted
+ kill -0 $pid || fail=1
+
+ cleanup_
+done
+
+Exit $fail
diff --git a/tests/tail-2/inotify-race.sh b/tests/tail-2/inotify-race.sh
new file mode 100755
index 0000000..75acca4
--- /dev/null
+++ b/tests/tail-2/inotify-race.sh
@@ -0,0 +1,98 @@
+#!/bin/sh
+# Ensure that tail does not ignore data that is appended to a tailed-forever
+# file between tail's initial read-to-EOF, and when the inotify watches
+# are established in tail_forever_inotify. That data could be ignored
+# indefinitely if no *other* data is appended, but it would be printed as
+# soon as any additional appended data is detected.
+
+# Copyright (C) 2009-2016 Free Software Foundation, Inc.
+
+# This program is free software: you can redistribute it and/or modify
+# it under the terms of the GNU General Public License as published by
+# the Free Software Foundation, either version 3 of the License, or
+# (at your option) any later version.
+
+# This program is distributed in the hope that it will be useful,
+# but WITHOUT ANY WARRANTY; without even the implied warranty of
+# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
+# GNU General Public License for more details.
+
+# You should have received a copy of the GNU General Public License
+# along with this program. If not, see <http://www.gnu.org/licenses/>.
+
+. "${srcdir=.}/tests/init.sh"; path_prepend_ ./src
+print_ver_ tail sleep
+
+# Terminate any background gdb/tail process
+cleanup_() {
+ kill $pid 2>/dev/null && wait $pid
+ kill $sleep 2>/dev/null && wait $sleep
+}
+
+touch file || framework_failure_
+touch tail.out || framework_failure_
+
+( timeout 10s gdb --version ) > gdb.out 2>&1
+case $(cat gdb.out) in
+ *'GNU gdb'*) ;;
+ *) skip_ "can't run gdb";;
+esac
+
+# Break on a line rather than a symbol, to cater for inline functions
+break_src="$abs_top_srcdir/src/tail.c"
+break_line=$(grep -n ^tail_forever_inotify "$break_src") || framework_failure_
+break_line=$(echo "$break_line" | cut -d: -f1) || framework_failure_
+
+
+# Note we get tail to monitor a background sleep process
+# rather than using timeout(1), as timeout sends SIGCONT
+# signals to its monitored process, and gdb (7.9 at least)
+# has _intermittent_ issues with this.
+# Sending SIGCONT resulted in either delayed child termination,
+# or no child termination resulting in a hung test.
+# See https://sourceware.org/bugzilla/show_bug.cgi?id=18364
+
+env sleep 10 & sleep=$!
+
+# See if gdb works and
+# tail_forever_inotify is compiled and run
+gdb -nx --batch-silent \
+ --eval-command="break $break_line" \
+ --eval-command="run --pid=$sleep -f file" \
+ --eval-command='quit' \
+ tail < /dev/null > gdb.out 2>&1
+
+kill $sleep || skip_ 'breakpoint not hit'
+wait $sleep
+
+# FIXME: The above is seen to _intermittently_ fail with:
+# warning: .dynamic section for "/lib/libc.so.6" is not at the expected address
+# warning: difference appears to be caused by prelink, adjusting expectations
+compare /dev/null gdb.out || skip_ "can't set breakpoints in tail"
+
+env sleep 10 & sleep=$!
+
+# Run "tail -f file", stopping to append a line just before
+# inotify initialization, and then continue. Before the fix,
+# that just-appended line would never be output.
+gdb -nx --batch-silent \
+ --eval-command="break $break_line" \
+ --eval-command="run --pid=$sleep -f file >> tail.out" \
+ --eval-command='shell echo never-seen-with-tail-7.5 >> file' \
+ --eval-command='continue' \
+ --eval-command='quit' \
+ tail < /dev/null > /dev/null 2>&1 & pid=$!
+
+tail --pid=$pid -f tail.out | (read REPLY; kill $pid)
+
+# gdb has a bug in Debian's gdb-6.8-3 at least that causes it to not
+# cleanup and exit correctly when it receives a SIGTERM, but
+# killing sleep, should cause the tail process and thus gdb to exit.
+kill $sleep
+wait $sleep
+
+wait $pid
+
+compare /dev/null tail.out && fail=1
+
+Exit $fail
diff --git a/tests/tail-2/inotify-race2.sh b/tests/tail-2/inotify-race2.sh
new file mode 100755
index 0000000..9b4eeb6
--- /dev/null
+++ b/tests/tail-2/inotify-race2.sh
@@ -0,0 +1,103 @@
+#!/bin/sh
+# Ensure that tail does not ignore a tailed-forever file that has been
+# replaced between tail's initial read-to-EOF, and when the inotify watches
+# are established in tail_forever_inotify. That new file would be ignored
+# indefinitely.
+
+# Copyright (C) 2015-2016 Free Software Foundation, Inc.
+
+# This program is free software: you can redistribute it and/or modify
+# it under the terms of the GNU General Public License as published by
+# the Free Software Foundation, either version 3 of the License, or
+# (at your option) any later version.
+
+# This program is distributed in the hope that it will be useful,
+# but WITHOUT ANY WARRANTY; without even the implied warranty of
+# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
+# GNU General Public License for more details.
+
+# You should have received a copy of the GNU General Public License
+# along with this program. If not, see <http://www.gnu.org/licenses/>.
+
+. "${srcdir=.}/tests/init.sh"; path_prepend_ ./src
+print_ver_ tail sleep
+
+# Terminate any background gdb/tail process
+cleanup_() {
+ kill $pid 2>/dev/null && wait $pid
+ kill $sleep 2>/dev/null && wait $sleep
+}
+
+touch file || framework_failure_
+touch tail.out || framework_failure_
+
+( timeout 10s gdb --version ) > gdb.out 2>&1
+case $(cat gdb.out) in
+ *'GNU gdb'*) ;;
+ *) skip_ "can't run gdb";;
+esac
+
+# Break on a line rather than a symbol, to cater for inline functions
+break_src="$abs_top_srcdir/src/tail.c"
+break_line=$(grep -n ^tail_forever_inotify "$break_src") || framework_failure_
+break_line=$(echo "$break_line" | cut -d: -f1) || framework_failure_
+
+
+# Note we get tail to monitor a background sleep process
+# rather than using timeout(1), as timeout sends SIGCONT
+# signals to its monitored process, and gdb (7.9 at least)
+# has _intermittent_ issues with this.
+# Sending SIGCONT resulted in either delayed child termination,
+# or no child termination resulting in a hung test.
+# See https://sourceware.org/bugzilla/show_bug.cgi?id=18364
+
+env sleep 10 & sleep=$!
+
+# See if gdb works and
+# tail_forever_inotify is compiled and run
+gdb -nx --batch-silent \
+ --eval-command="break $break_line" \
+ --eval-command="run --pid=$sleep -f file" \
+ --eval-command='quit' \
+ tail < /dev/null > gdb.out 2>&1
+
+kill $sleep || skip_ 'breakpoint not hit'
+wait $sleep
+
+# FIXME: The above is seen to _intermittently_ fail with:
+# warning: .dynamic section for "/lib/libc.so.6" is not at the expected address
+# warning: difference appears to be caused by prelink, adjusting expectations
+compare /dev/null gdb.out || skip_ "can't set breakpoints in tail"
+
+env sleep 10 & sleep=$!
+
+echo never-seen-with-tail-8.23 > file.new || framework_failure_
+
+# Run "tail -F file", stopping to replace with a new file before
+# inotify initialization, and then continue. Before the fix,
+# changes to the new file would effectively be ignored.
+gdb -nx --batch-silent \
+ --eval-command="break $break_line" \
+ --eval-command="run --pid=$sleep -F file 2>tail.err >>tail.out" \
+ --eval-command='shell mv file.new file' \
+ --eval-command='continue' \
+ --eval-command='quit' \
+ tail < /dev/null > /dev/null 2>&1 & pid=$!
+
+# Note even updating the watched 'file' wouldn't have output
+# anything between coreutils 7.5 and 8.23 inclusive as
+# The old file descriptor (still held open by tail) was being fstat().
+
+tail --pid=$pid -f tail.out | (read REPLY; kill $pid)
+
+# gdb has a bug in Debian's gdb-6.8-3 at least that causes it to not
+# cleanup and exit correctly when it receives a SIGTERM, but
+# killing sleep, should cause the tail process and thus gdb to exit.
+kill $sleep
+wait $sleep
+
+wait $pid
+
+compare /dev/null tail.out && { cat tail.err; fail=1; }
+
+Exit $fail
diff --git a/tests/tail-2/inotify-rotate-resources.sh b/tests/tail-2/inotify-rotate-resources.sh
new file mode 100755
index 0000000..5b88202
--- /dev/null
+++ b/tests/tail-2/inotify-rotate-resources.sh
@@ -0,0 +1,108 @@
+#!/bin/sh
+# ensure that tail -F doesn't leak inotify resources
+
+# Copyright (C) 2015-2016 Free Software Foundation, Inc.
+
+# This program is free software: you can redistribute it and/or modify
+# it under the terms of the GNU General Public License as published by
+# the Free Software Foundation, either version 3 of the License, or
+# (at your option) any later version.
+
+# This program is distributed in the hope that it will be useful,
+# but WITHOUT ANY WARRANTY; without even the implied warranty of
+# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
+# GNU General Public License for more details.
+
+# You should have received a copy of the GNU General Public License
+# along with this program. If not, see <http://www.gnu.org/licenses/>.
+
+. "${srcdir=.}/tests/init.sh"; path_prepend_ ./src
+print_ver_ tail
+
+grep '^#define HAVE_INOTIFY 1' "$CONFIG_HEADER" >/dev/null \
+ || skip_ 'inotify required'
+
+require_strace_ 'inotify_add_watch,inotify_rm_watch'
+
+# Quickly skip on remote file systems
+is_local_dir_ . || skip_ 'inotify not used on remote file system'
+
+check_tail_output()
+{
+ local delay="$1"
+ grep "$tail_re" out > /dev/null ||
+ { sleep $delay; return 1; }
+}
+
+# Wait up to 25.5 seconds for grep REGEXP 'out' to succeed.
+grep_timeout() { tail_re="$1" retry_delay_ check_tail_output .1 8; }
+
+check_strace()
+{
+ local delay="$1"
+ grep "$strace_re" strace.out > /dev/null ||
+ { sleep $delay; return 1; }
+}
+
+cleanup_fail()
+{
+ cat out
+ warn_ $1
+ fail=1
+}
+
+# Terminate any background tail process
+cleanup_() { kill $pid 2>/dev/null && wait $pid; }
+
+fastpoll='-s.1 --max-unchanged-stats=1'
+
+touch k || framework_failure_
+
+# Note the timeout guard isn't strictly necessary here,
+# however without it strace will ignore SIGTERM.
+# strace does always honor SIGTERM with the -I2 option,
+# though that's not available on RHEL6 for example.
+timeout 180 strace -e inotify_add_watch,inotify_rm_watch -o strace.out \
+ tail -F $fastpoll k >> out 2>&1 & pid=$!
+
+reverted_to_polling_=0
+for i in $(seq 2); do
+ echo $i
+
+ echo 'tailed' > k;
+
+ # Wait for watch on (new) file
+ strace_re='inotify_add_watch.*MODIFY' retry_delay_ check_strace .1 8 ||
+ no_watch_=1
+
+ # Assume this is not because we're leaking
+ # (resources may already be depleted)
+ # The explicit check for inotify_rm_watch should confirm that.
+ grep -F 'reverting to polling' out >/dev/null && skip_ 'inotify unused'
+
+ # Otherwise failure is unknown
+ test "$no_watch_" && { cat out; framework_failure_ 'no inotify_add_watch'; }
+
+ mv k k.tmp
+ # wait for tail to detect the rename
+ grep_timeout 'inaccessible' ||
+ { cleanup_fail 'failed to detect rename'; break; }
+
+ # Note we strace here rather than consuming all available watches
+ # to be more efficient, but more importantly avoid depleting resources.
+ # Note also available resources can currently be tuned with:
+ # sudo sysctl -w fs.inotify.max_user_watches=$smallish_number
+ # However that impacts all processes for the current user, and also
+ # may not be supported in future, instead being auto scaled to RAM
+ # like the Linux epoll resources were.
+ if test "$i" -gt 1; then
+ strace_re='inotify_rm_watch' retry_delay_ check_strace .1 8 ||
+ { cleanup_fail 'failed to find inotify_rm_watch syscall'; break; }
+ fi
+
+ >out && >strace.out || framework_failure_ 'failed to reset output files'
+done
+
+cleanup_
+
+Exit $fail
diff --git a/tests/tail-2/inotify-rotate.sh b/tests/tail-2/inotify-rotate.sh
new file mode 100755
index 0000000..302c33c
--- /dev/null
+++ b/tests/tail-2/inotify-rotate.sh
@@ -0,0 +1,77 @@
+#!/bin/sh
+# ensure that tail -F handles rotation
+
+# Copyright (C) 2009-2016 Free Software Foundation, Inc.
+
+# This program is free software: you can redistribute it and/or modify
+# it under the terms of the GNU General Public License as published by
+# the Free Software Foundation, either version 3 of the License, or
+# (at your option) any later version.
+
+# This program is distributed in the hope that it will be useful,
+# but WITHOUT ANY WARRANTY; without even the implied warranty of
+# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
+# GNU General Public License for more details.
+
+# You should have received a copy of the GNU General Public License
+# along with this program. If not, see <http://www.gnu.org/licenses/>.
+
+. "${srcdir=.}/tests/init.sh"; path_prepend_ ./src
+print_ver_ tail
+
+grep '^#define HAVE_INOTIFY 1' "$CONFIG_HEADER" >/dev/null \
+ || expensive_
+
+check_tail_output()
+{
+ local delay="$1"
+ grep "$tail_re" out > /dev/null ||
+ { sleep $delay; return 1; }
+}
+
+# Wait up to 25.5 seconds for grep REGEXP 'out' to succeed.
+grep_timeout() { tail_re="$1" retry_delay_ check_tail_output .1 8; }
+
+# Terminate any background tail process
+cleanup_() { kill $pid 2>/dev/null && wait $pid; }
+
+cleanup_fail()
+{
+ cat out
+ warn_ $1
+ cleanup_
+ fail=1
+}
+
+# Speedup the non inotify case
+fastpoll='-s.1 --max-unchanged-stats=1'
+
+# Perform at least this many iterations, because on multi-core systems
+# the offending sequence of events can be surprisingly uncommon.
+# See: http://lists.gnu.org/archive/html/bug-coreutils/2009-11/msg00213.html
+for i in $(seq 50); do
+ echo $i
+ rm -f k x out
+
+ # Normally less than a second is required here, but with heavy load
+ # and a lot of disk activity, even 20 seconds is insufficient, which
+ # leads to this timeout killing tail before the "ok" is written below.
+ >k && >x || framework_failure_ failed to initialize files
+ timeout 60 tail $fastpoll -F k > out 2>&1 & pid=$!
+
+ echo 'tailed' > k;
+ # wait for 'tailed' to appear in out
+ grep_timeout 'tailed' || { cleanup_fail 'failed to find "tailed"'; break; }
+
+ mv x k
+ # wait for tail to detect the rename
+ grep_timeout 'tail:' || { cleanup_fail 'failed to detect rename'; break; }
+
+ echo ok >> k
+ # wait for "ok" to appear in 'out'
+ grep_timeout 'ok' || { cleanup_fail 'failed to detect echoed ok'; break; }
+
+ cleanup_
+done
+
+Exit $fail
diff --git a/tests/tail-2/pid.sh b/tests/tail-2/pid.sh
new file mode 100755
index 0000000..9e73b84
--- /dev/null
+++ b/tests/tail-2/pid.sh
@@ -0,0 +1,51 @@
+#!/bin/sh
+# Test the --pid option of tail.
+
+# Copyright (C) 2003-2016 Free Software Foundation, Inc.
+
+# This program is free software: you can redistribute it and/or modify
+# it under the terms of the GNU General Public License as published by
+# the Free Software Foundation, either version 3 of the License, or
+# (at your option) any later version.
+
+# This program is distributed in the hope that it will be useful,
+# but WITHOUT ANY WARRANTY; without even the implied warranty of
+# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
+# GNU General Public License for more details.
+
+# You should have received a copy of the GNU General Public License
+# along with this program. If not, see <http://www.gnu.org/licenses/>.
+
+. "${srcdir=.}/tests/init.sh"; path_prepend_ ./src
+print_ver_ tail
+getlimits_
+
+touch empty here || framework_failure_
+
+# Terminate any background tail process
+cleanup_() { kill $pid 2>/dev/null && wait $pid; }
+
+for mode in '' '---disable-inotify'; do
+ # Use tail itself to create a background process to monitor,
+ # which will auto exit when "here" is removed.
+ tail -f $mode here & pid=$!
+
+ # Ensure that tail --pid=PID does not exit when PID is alive.
+ timeout 1 tail -f -s.1 --pid=$pid $mode here
+ test $? = 124 || fail=1
+
+ cleanup_
+
+ # Ensure that tail --pid=PID exits with success status when PID is dead.
+ # Use an unlikely-to-be-live PID
+ timeout 10 tail -f -s.1 --pid=$PID_T_MAX $mode empty
+ ret=$?
+ test $ret = 124 && skip_ "pid $PID_T_MAX present or tail too slow"
+ test $ret = 0 || fail=1
+
+ # Ensure tail doesn't wait for data when PID is dead
+ timeout 10 tail -f -s10 --pid=$PID_T_MAX $mode empty
+ test $? = 124 && fail=1
+done
+
+Exit $fail
diff --git a/tests/tail-2/pipe-f.sh b/tests/tail-2/pipe-f.sh
new file mode 100755
index 0000000..7abb7d6
--- /dev/null
+++ b/tests/tail-2/pipe-f.sh
@@ -0,0 +1,27 @@
+#!/bin/sh
+# ensure that :|tail -f doesn't hang, per POSIX
+
+# Copyright (C) 2009-2016 Free Software Foundation, Inc.
+
+# This program is free software: you can redistribute it and/or modify
+# it under the terms of the GNU General Public License as published by
+# the Free Software Foundation, either version 3 of the License, or
+# (at your option) any later version.
+
+# This program is distributed in the hope that it will be useful,
+# but WITHOUT ANY WARRANTY; without even the implied warranty of
+# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
+# GNU General Public License for more details.
+
+# You should have received a copy of the GNU General Public License
+# along with this program. If not, see <http://www.gnu.org/licenses/>.
+
+. "${srcdir=.}/tests/init.sh"; path_prepend_ ./src
+print_ver_ tail
+
+echo foo | timeout 10 tail -f -c3 > out || fail=1
+echo oo > exp || fail=1
+
+compare exp out || fail=1
+
+Exit $fail
diff --git a/tests/tail-2/pipe-f2.sh b/tests/tail-2/pipe-f2.sh
new file mode 100755
index 0000000..70fb3bd
--- /dev/null
+++ b/tests/tail-2/pipe-f2.sh
@@ -0,0 +1,47 @@
+#!/bin/sh
+# Ensure that "tail -f fifo" tails indefinitely.
+
+# Copyright (C) 2009-2016 Free Software Foundation, Inc.
+
+# This program is free software: you can redistribute it and/or modify
+# it under the terms of the GNU General Public License as published by
+# the Free Software Foundation, either version 3 of the License, or
+# (at your option) any later version.
+
+# This program is distributed in the hope that it will be useful,
+# but WITHOUT ANY WARRANTY; without even the implied warranty of
+# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
+# GNU General Public License for more details.
+
+# You should have received a copy of the GNU General Public License
+# along with this program. If not, see <http://www.gnu.org/licenses/>.
+
+. "${srcdir=.}/tests/init.sh"; path_prepend_ ./src
+print_ver_ tail
+
+mkfifo_or_skip_ fifo
+
+echo 1 > fifo &
+echo 1 > exp || framework_failure_
+
+# Terminate any background tail process
+cleanup_() { kill $pid 2>/dev/null && wait $pid; }
+
+# Speedup the non inotify case
+fastpoll='-s.1 --max-unchanged-stats=1'
+
+timeout 10 tail $fastpoll -f fifo > out & pid=$!
+
+check_tail_output() { sleep $1; test -s out; }
+
+# Wait 12.7s for tail to write something.
+retry_delay_ check_tail_output .1 7 || fail=1
+
+compare exp out || fail=1
+
+# Ensure tail is still running
+kill -0 $pid || fail=1
+
+cleanup_
+
+Exit $fail
diff --git a/tests/tail-2/proc-ksyms b/tests/tail-2/proc-ksyms
deleted file mode 100755
index ba9fccd..0000000
--- a/tests/tail-2/proc-ksyms
+++ /dev/null
@@ -1,38 +0,0 @@
-#!/bin/sh
-# Prior to textutils-2.0.17, `tail /proc/ksyms' would segfault on Linux.
-
-# Copyright (C) 2001, 2004, 2006 Free Software Foundation, Inc.
-
-# This program is free software; you can redistribute it and/or modify
-# it under the terms of the GNU General Public License as published by
-# the Free Software Foundation; either version 2 of the License, or
-# (at your option) any later version.
-
-# This program is distributed in the hope that it will be useful,
-# but WITHOUT ANY WARRANTY; without even the implied warranty of
-# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
-# GNU General Public License for more details.
-
-# You should have received a copy of the GNU General Public License
-# along with this program; if not, write to the Free Software
-# Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA
-# 02110-1301, USA.
-
-if test "$VERBOSE" = yes; then
- set -x
- tail --version
-fi
-
-pwd=`pwd`
-tmp=proc-ksyms.$$
-trap 'status=$?; cd "$pwd" && rm -rf $tmp && exit $status' 0
-trap '(exit $?); exit' 1 2 13 15
-
-fail=0
-
-ksyms=/proc/ksyms
-if test -r $ksyms; then
- tail $ksyms > /dev/null || fail=1
-fi
-
-(exit $fail); exit $fail
diff --git a/tests/tail-2/proc-ksyms.sh b/tests/tail-2/proc-ksyms.sh
new file mode 100755
index 0000000..f238bc9
--- /dev/null
+++ b/tests/tail-2/proc-ksyms.sh
@@ -0,0 +1,28 @@
+#!/bin/sh
+# Prior to textutils-2.0.17, 'tail /proc/ksyms' would segfault on Linux.
+
+# Copyright (C) 2001-2016 Free Software Foundation, Inc.
+
+# This program is free software: you can redistribute it and/or modify
+# it under the terms of the GNU General Public License as published by
+# the Free Software Foundation, either version 3 of the License, or
+# (at your option) any later version.
+
+# This program is distributed in the hope that it will be useful,
+# but WITHOUT ANY WARRANTY; without even the implied warranty of
+# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
+# GNU General Public License for more details.
+
+# You should have received a copy of the GNU General Public License
+# along with this program. If not, see <http://www.gnu.org/licenses/>.
+
+. "${srcdir=.}/tests/init.sh"; path_prepend_ ./src
+print_ver_ tail
+
+
+ksyms=/proc/ksyms
+if test -r $ksyms; then
+ tail $ksyms > /dev/null || fail=1
+fi
+
+Exit $fail
diff --git a/tests/tail-2/retry.sh b/tests/tail-2/retry.sh
new file mode 100755
index 0000000..37e01ed
--- /dev/null
+++ b/tests/tail-2/retry.sh
@@ -0,0 +1,131 @@
+#!/bin/sh
+# Exercise tail's behavior regarding missing files with/without --retry.
+
+# Copyright (C) 2013-2016 Free Software Foundation, Inc.
+
+# This program is free software: you can redistribute it and/or modify
+# it under the terms of the GNU General Public License as published by
+# the Free Software Foundation, either version 3 of the License, or
+# (at your option) any later version.
+
+# This program is distributed in the hope that it will be useful,
+# but WITHOUT ANY WARRANTY; without even the implied warranty of
+# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
+# GNU General Public License for more details.
+
+# You should have received a copy of the GNU General Public License
+# along with this program. If not, see <http://www.gnu.org/licenses/>.
+
+. "${srcdir=.}/tests/init.sh"; path_prepend_ ./src
+print_ver_ tail
+
+# Function to count number of lines from tail
+# while ignoring transient errors due to resource limits
+countlines_ ()
+{
+ grep -Ev 'inotify (resources exhausted|cannot be used)' out | wc -l
+}
+
+# Function to check the expected line count in 'out'.
+# Called via retry_delay_(). Sleep some time - see retry_delay_() - if the
+# line count is still smaller than expected.
+wait4lines_ ()
+{
+ local delay=$1
+ local elc=$2 # Expected line count.
+ [ "$(countlines_)" -ge "$elc" ] || { sleep $delay; return 1; }
+}
+
+# Terminate any background tail process
+cleanup_() { kill $pid 2>/dev/null && wait $pid; }
+
+# Speedup the non inotify case
+fastpoll='-s.1 --max-unchanged-stats=1'
+
+# === Test:
+# Retry without --follow results in a warning.
+touch file
+tail --retry file > out 2>&1 || fail=1
+[ "$(countlines_)" = 1 ] || { cat out; fail=1; }
+grep -F 'tail: warning: --retry ignored' out || { cat out; fail=1; }
+
+# === Test:
+# The same with a missing file: expect error message and exit 1.
+tail --retry missing > out 2>&1 && fail=1
+[ "$(countlines_)" = 2 ] || { cat out; fail=1; }
+grep -F 'tail: warning: --retry ignored' out || { cat out; fail=1; }
+
+# === Test:
+# Ensure that "tail --retry --follow=name" waits for the file to appear.
+# Clear 'out' so that we can check its contents without races
+>out || framework_failure_
+timeout 10 tail $fastpoll --follow=name --retry missing >out 2>&1 & pid=$!
+# Wait for "cannot open" error.
+retry_delay_ wait4lines_ .1 6 1 || { cat out; fail=1; }
+echo "X" > missing || framework_failure_
+# Wait for the expected output.
+retry_delay_ wait4lines_ .1 6 3 || { cat out; fail=1; }
+cleanup_
+# Expect 3 lines in the output file.
+[ "$(countlines_)" = 3 ] || { fail=1; cat out; }
+grep -F 'cannot open' out || { fail=1; cat out; }
+grep -F 'has appeared' out || { fail=1; cat out; }
+grep '^X$' out || { fail=1; cat out; }
+rm -f missing out || framework_failure_
+
+# === Test:
+# Ensure that "tail --retry --follow=descriptor" waits for the file to appear.
+# tail-8.21 failed at this (since the implementation of the inotify support).
+timeout 10 tail $fastpoll --follow=descriptor --retry missing >out 2>&1 & pid=$!
+# Wait for "cannot open" error.
+retry_delay_ wait4lines_ .1 6 2 || { cat out; fail=1; }
+echo "X" > missing || framework_failure_
+# Wait for the expected output.
+retry_delay_ wait4lines_ .1 6 4 || { cat out; fail=1; }
+cleanup_
+# Expect 4 lines in the output file.
+[ "$(countlines_)" = 4 ] || { fail=1; cat out; }
+grep -F 'retry only effective for the initial open' out \
+ || { fail=1; cat out; }
+grep -F 'cannot open' out || { fail=1; cat out; }
+grep -F 'has appeared' out || { fail=1; cat out; }
+grep '^X$' out || { fail=1; cat out; }
+rm -f missing out || framework_failure_
+
+# === Test:
+# Ensure that tail --follow=descriptor --retry exits when the file appears
+# untailable. Expect exit status 1.
+timeout 10 tail $fastpoll --follow=descriptor --retry missing >out 2>&1 & pid=$!
+# Wait for "cannot open" error.
+retry_delay_ wait4lines_ .1 6 2 || { cat out; fail=1; }
+mkdir missing || framework_failure_ # Create untailable
+# Wait for the expected output.
+retry_delay_ wait4lines_ .1 6 4 || { cat out; fail=1; }
+wait $pid
+rc=$?
+[ "$(countlines_)" = 4 ] || { fail=1; cat out; }
+grep -F 'retry only effective for the initial open' out \
+ || { fail=1; cat out; }
+grep -F 'cannot open' out || { fail=1; cat out; }
+grep -F 'replaced with an untailable file' out || { fail=1; cat out; }
+grep -F 'no files remaining' out || { fail=1; cat out; }
+[ $rc = 1 ] || { fail=1; cat out; }
+rm -fd missing out || framework_failure_
+
+# === Test:
+# Ensure that --follow=descriptor (without --retry) does *not wait* for the
+# file to appear. Expect 2 lines in the output file ("cannot open" +
+# "no files remaining") and exit status 1.
+tail --follow=descriptor missing >out 2>&1 && fail=1
+[ "$(countlines_)" = 2 ] || { fail=1; cat out; }
+grep -F 'cannot open' out || { fail=1; cat out; }
+grep -F 'no files remaining' out || { fail=1; cat out; }
+
+# === Test:
+# Likewise for --follow=name (without --retry).
+tail --follow=name missing >out 2>&1 && fail=1
+[ "$(countlines_)" = 2 ] || { fail=1; cat out; }
+grep -F 'cannot open' out || { fail=1; cat out; }
+grep -F 'no files remaining' out || { fail=1; cat out; }
+
+Exit $fail
diff --git a/tests/tail-2/start-middle b/tests/tail-2/start-middle
deleted file mode 100755
index 92a939a..0000000
--- a/tests/tail-2/start-middle
+++ /dev/null
@@ -1,53 +0,0 @@
-#!/bin/sh
-# Verify that tail works even when it's reading from a file
-# that is not at its beginning. Based on a report from John Roll.
-
-# Copyright (C) 2001, 2002, 2004, 2006 Free Software Foundation, Inc.
-
-# This program is free software; you can redistribute it and/or modify
-# it under the terms of the GNU General Public License as published by
-# the Free Software Foundation; either version 2 of the License, or
-# (at your option) any later version.
-
-# This program is distributed in the hope that it will be useful,
-# but WITHOUT ANY WARRANTY; without even the implied warranty of
-# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
-# GNU General Public License for more details.
-
-# You should have received a copy of the GNU General Public License
-# along with this program; if not, write to the Free Software
-# Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA
-# 02110-1301, USA.
-
-if test "$VERBOSE" = yes; then
- set -x
- tail --version
-fi
-
-pwd=`pwd`
-tmp=tail-mid.$$
-trap 'status=$?; cd "$pwd" && rm -rf $tmp && exit $status' 0
-trap '(exit $?); exit' 1 2 13 15
-
-framework_failure=0
-mkdir $tmp || framework_failure=1
-cd $tmp || framework_failure=1
-
-(echo 1; echo 2) > k || framework_failure=1
-
-if test $framework_failure = 1; then
- echo "$0: failure in testing framework" 1>&2
- (exit 1); exit 1
-fi
-
-fail=0
-
-sh -c 'read x; tail' < k > out || fail=1
-cat <<EOF > exp
-2
-EOF
-
-cmp out exp || fail=1
-test $fail = 1 && diff out exp 2> /dev/null
-
-(exit $fail); exit $fail
diff --git a/tests/tail-2/start-middle.sh b/tests/tail-2/start-middle.sh
new file mode 100755
index 0000000..5a9ebfc
--- /dev/null
+++ b/tests/tail-2/start-middle.sh
@@ -0,0 +1,33 @@
+#!/bin/sh
+# Verify that tail works even when it's reading from a file
+# that is not at its beginning. Based on a report from John Roll.
+
+# Copyright (C) 2001-2016 Free Software Foundation, Inc.
+
+# This program is free software: you can redistribute it and/or modify
+# it under the terms of the GNU General Public License as published by
+# the Free Software Foundation, either version 3 of the License, or
+# (at your option) any later version.
+
+# This program is distributed in the hope that it will be useful,
+# but WITHOUT ANY WARRANTY; without even the implied warranty of
+# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
+# GNU General Public License for more details.
+
+# You should have received a copy of the GNU General Public License
+# along with this program. If not, see <http://www.gnu.org/licenses/>.
+
+. "${srcdir=.}/tests/init.sh"; path_prepend_ ./src
+print_ver_ tail
+
+(echo 1; echo 2) > k || framework_failure_
+
+
+sh -c 'read x; tail' < k > out || fail=1
+cat <<EOF > exp
+2
+EOF
+
+compare exp out || fail=1
+
+Exit $fail
diff --git a/tests/tail-2/symlink.sh b/tests/tail-2/symlink.sh
new file mode 100755
index 0000000..8a10577
--- /dev/null
+++ b/tests/tail-2/symlink.sh
@@ -0,0 +1,94 @@
+#!/bin/sh
+# Ensure tail tracks symlinks properly.
+
+# Copyright (C) 2013-2016 Free Software Foundation, Inc.
+
+# This program is free software: you can redistribute it and/or modify
+# it under the terms of the GNU General Public License as published by
+# the Free Software Foundation, either version 3 of the License, or
+# (at your option) any later version.
+
+# This program is distributed in the hope that it will be useful,
+# but WITHOUT ANY WARRANTY; without even the implied warranty of
+# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
+# GNU General Public License for more details.
+
+# You should have received a copy of the GNU General Public License
+# along with this program. If not, see <http://www.gnu.org/licenses/>.
+
+. "${srcdir=.}/tests/init.sh"; path_prepend_ ./src
+print_ver_ tail
+
+# Function to count number of lines from tail
+# while ignoring transient errors due to resource limits
+countlines_ ()
+{
+ grep -Ev 'inotify (resources exhausted|cannot be used)' out | wc -l
+}
+
+# Function to check the expected line count in 'out'.
+# Called via retry_delay_(). Sleep some time - see retry_delay_() - if the
+# line count is still smaller than expected.
+wait4lines_ ()
+{
+ local delay=$1
+ local elc=$2 # Expected line count.
+ [ "$(countlines_)" -ge "$elc" ] || { sleep $delay; return 1; }
+}
+
+# Terminate any background tail process
+cleanup_() { kill $pid 2>/dev/null && wait $pid; }
+
+# speedup non inotify case
+fastpoll='-s.1 --max-unchanged-stats=1'
+
+# Ensure changing targets of cli specified symlinks are handled.
+# Prior to v8.22, inotify would fail to recognize changes in the targets.
+# Clear 'out' so that we can check its contents without races.
+>out || framework_failure_
+ln -nsf target symlink || framework_failure_
+timeout 10 tail $fastpoll -F symlink >out 2>&1 & pid=$!
+# Wait for "cannot open..."
+retry_delay_ wait4lines_ .1 6 1 || { cat out; fail=1; }
+echo "X" > target || framework_failure_
+# Wait for the expected output.
+retry_delay_ wait4lines_ .1 6 3 || { cat out; fail=1; }
+cleanup_
+# Expect 3 lines in the output file.
+[ "$(countlines_)" = 3 ] || { fail=1; cat out; }
+grep -F 'cannot open' out || { fail=1; cat out; }
+grep -F 'has appeared' out || { fail=1; cat out; }
+grep '^X$' out || { fail=1; cat out; }
+rm -f target out || framework_failure_
+
+# Ensure we correctly handle the source symlink itself changing.
+# I.e., that we don't operate solely on the targets.
+# Clear 'out' so that we can check its contents without races.
+>out || framework_failure_
+echo "X1" > target1 || framework_failure_
+ln -nsf target1 symlink || framework_failure_
+timeout 10 tail $fastpoll -F symlink >out 2>&1 & pid=$!
+# Wait for the expected output.
+retry_delay_ wait4lines_ .1 6 1 || { cat out; fail=1; }
+ln -nsf target2 symlink || framework_failure_
+# Wait for "become inaccess..."
+retry_delay_ wait4lines_ .1 6 2 || { cat out; fail=1; }
+echo "X2" > target2 || framework_failure_
+# Wait for the expected output.
+retry_delay_ wait4lines_ .1 6 4 || { cat out; fail=1; }
+cleanup_
+# Expect 4 lines in the output file.
+[ "$(countlines_)" = 4 ] || { fail=1; cat out; }
+grep -F 'become inacce' out || { fail=1; cat out; }
+grep -F 'has appeared' out || { fail=1; cat out; }
+grep '^X1$' out || { fail=1; cat out; }
+grep '^X2$' out || { fail=1; cat out; }
+rm -f target1 target2 out || framework_failure_
+
+# Note other symlink edge cases are currently just diagnosed
+# rather than being handled. I.e., if you specify a missing item,
+# or existing file that later change to a symlink, if inotify
+# is in use, you'll get a diagnostic saying that link will
+# no longer be tailed.
+
+Exit $fail
diff --git a/tests/tail-2/tail-c.sh b/tests/tail-2/tail-c.sh
new file mode 100755
index 0000000..ac35d56
--- /dev/null
+++ b/tests/tail-2/tail-c.sh
@@ -0,0 +1,34 @@
+#!/bin/sh
+# exercise tail -c
+
+# Copyright 2014-2016 Free Software Foundation, Inc.
+
+# This program is free software: you can redistribute it and/or modify
+# it under the terms of the GNU General Public License as published by
+# the Free Software Foundation, either version 3 of the License, or
+# (at your option) any later version.
+
+# This program is distributed in the hope that it will be useful,
+# but WITHOUT ANY WARRANTY; without even the implied warranty of
+# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
+# GNU General Public License for more details.
+
+# You should have received a copy of the GNU General Public License
+# along with this program. If not, see <http://www.gnu.org/licenses/>.
+
+. "${srcdir=.}/tests/init.sh"; path_prepend_ ./src
+print_ver_ tail
+
+# Make sure it works on funny files in /proc and /sys.
+
+for file in /proc/version /sys/kernel/profiling; do
+ if test -r $file; then
+ cp -f $file copy &&
+ tail -c -1 copy > exp1 || framework_failure_
+
+ tail -c -1 $file > out1 || fail=1
+ compare exp1 out1 || fail=1
+ fi
+done
+
+Exit $fail
diff --git a/tests/tail-2/tail-n0f b/tests/tail-2/tail-n0f
deleted file mode 100755
index 298fca4..0000000
--- a/tests/tail-2/tail-n0f
+++ /dev/null
@@ -1,76 +0,0 @@
-#!/bin/sh
-# Make sure that `tail -n0 -f' and `tail -c0 -f' sleep
-# rather than doing what amounted to a busy-wait.
-
-# Copyright (C) 2003, 2006 Free Software Foundation, Inc.
-
-# This program is free software; you can redistribute it and/or modify
-# it under the terms of the GNU General Public License as published by
-# the Free Software Foundation; either version 2 of the License, or
-# (at your option) any later version.
-
-# This program is distributed in the hope that it will be useful,
-# but WITHOUT ANY WARRANTY; without even the implied warranty of
-# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
-# GNU General Public License for more details.
-
-# You should have received a copy of the GNU General Public License
-# along with this program; if not, write to the Free Software
-# Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA
-# 02110-1301, USA.
-
-
-# This bug was fixed for 5.0.91
-# It skips the test if your system lacks a /proc/$pid/status
-# file, or if its contents don't look right.
-
-if test "$VERBOSE" = yes; then
- set -x
- tail --version
-fi
-
-sleep 2 &
-pid=$!
-sleep .5
-grep '^State:[ ]*[S]' /proc/$pid/status > /dev/null 2>&1 || \
- {
- echo "$0:/proc/$pid/status: missing or 'different': skipping this test" 1>&2
- (exit 77); exit 77
- }
-kill $pid
-
-pwd=`pwd`
-t0=`echo "$0"|sed 's,.*/,,'`.tmp; tmp=$t0/$$
-trap 'status=$?; cd "$pwd" && chmod -R u+rwx $t0 && rm -rf $t0 && exit $status' 0
-trap '(exit $?); exit $?' 1 2 13 15
-
-framework_failure=0
-mkdir -p $tmp || framework_failure=1
-cd $tmp || framework_failure=1
-touch empty || framework_failure=1
-echo anything > nonempty || framework_failure=1
-
-if test $framework_failure = 1; then
- echo "$0: failure in testing framework" 1>&2
- (exit 1); exit 1
-fi
-
-fail=0
-
-for file in empty nonempty; do
- for c_or_n in c n; do
- tail --sleep=4 -${c_or_n} 0 -f $file &
- pid=$!
- sleep .5
- set _ `sed -n '/^State:[ ]*\([^ ]\)/s//\1/p' /proc/$pid/status`
- shift # Remove the leading `_'.
- state=$1
- case $state in
- S*) ;;
- *) echo $0: process in unexpected state: $state 1>&2; fail=1 ;;
- esac
- kill $pid
- done
-done
-
-(exit $fail); exit $fail
diff --git a/tests/tail-2/tail-n0f.sh b/tests/tail-2/tail-n0f.sh
new file mode 100755
index 0000000..01b5986
--- /dev/null
+++ b/tests/tail-2/tail-n0f.sh
@@ -0,0 +1,62 @@
+#!/bin/sh
+# Make sure that 'tail -n0 -f' and 'tail -c0 -f' sleep
+# rather than doing what amounted to a busy-wait.
+
+# Copyright (C) 2003-2016 Free Software Foundation, Inc.
+
+# This program is free software: you can redistribute it and/or modify
+# it under the terms of the GNU General Public License as published by
+# the Free Software Foundation, either version 3 of the License, or
+# (at your option) any later version.
+
+# This program is distributed in the hope that it will be useful,
+# but WITHOUT ANY WARRANTY; without even the implied warranty of
+# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
+# GNU General Public License for more details.
+
+# You should have received a copy of the GNU General Public License
+# along with this program. If not, see <http://www.gnu.org/licenses/>.
+
+# This bug was fixed for 5.0.91
+# It skips the test if your system lacks a /proc/$pid/status
+# file, or if its contents don't look right.
+
+. "${srcdir=.}/tests/init.sh"; path_prepend_ ./src
+print_ver_ tail
+
+require_proc_pid_status_
+
+touch empty || framework_failure_
+echo anything > nonempty || framework_failure_
+
+# First verify that -[nc]0 without -f, exit without reading
+touch unreadable || framework_failure_
+chmod 0 unreadable || framework_failure_
+tail -c0 unreadable || fail=1
+tail -n0 unreadable || fail=1
+
+# Terminate any background tail process
+cleanup_() { kill $pid 2>/dev/null && wait $pid; }
+
+for mode in '' '---disable-inotify'; do
+ for file in empty nonempty; do
+ for c_or_n in c n; do
+ tail --sleep=4 -${c_or_n} 0 -f $mode $file & pid=$!
+ tail_sleeping()
+ {
+ local delay="$1"; sleep $delay
+ state=$(get_process_status_ $pid)
+ case $state in
+ S*) ;;
+ *) return 1;;
+ esac
+ }
+ # Wait up to 1.5s for tail to sleep
+ retry_delay_ tail_sleeping .1 4 ||
+ { echo $0: process in unexpected state: $state >&2; fail=1; }
+ cleanup_
+ done
+ done
+done
+
+Exit $fail
diff --git a/tests/tail-2/truncate.sh b/tests/tail-2/truncate.sh
new file mode 100755
index 0000000..5b49ccc
--- /dev/null
+++ b/tests/tail-2/truncate.sh
@@ -0,0 +1,56 @@
+#!/bin/sh
+# Ensure all logs are output upon file truncation
+
+# Copyright (C) 2015-2016 Free Software Foundation, Inc.
+
+# This program is free software: you can redistribute it and/or modify
+# it under the terms of the GNU General Public License as published by
+# the Free Software Foundation, either version 3 of the License, or
+# (at your option) any later version.
+
+# This program is distributed in the hope that it will be useful,
+# but WITHOUT ANY WARRANTY; without even the implied warranty of
+# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
+# GNU General Public License for more details.
+
+# You should have received a copy of the GNU General Public License
+# along with this program. If not, see <http://www.gnu.org/licenses/>.
+
+. "${srcdir=.}/tests/init.sh"; path_prepend_ ./src
+print_ver_ tail
+
+check_tail_output()
+{
+ local delay="$1"
+ grep "$tail_re" out > /dev/null ||
+ { sleep $delay; return 1; }
+}
+
+# Terminate any background tail process
+cleanup_() { kill $pid 2>/dev/null && wait $pid; }
+
+# Speedup the non inotify case
+fastpoll='-s.1 --max-unchanged-stats=1'
+
+for follow in '-f' '-F'; do
+ for mode in '' '---disable-inotify'; do
+ rm -f out
+ seq 10 > f || framework_failure_
+
+ tail $follow $mode $fastpoll f > out 2>&1 & pid=$!
+
+ # Wait up to 12.7s for tail to start
+ tail_re='^10$' retry_delay_ check_tail_output .1 7 ||
+ { cat out; fail=1; }
+
+ seq 11 15 > f || framework_failure_
+
+ # Wait up to 12.7s for new data
+ tail_re='^15$' retry_delay_ check_tail_output .1 7 ||
+ { cat out; fail=1; }
+
+ cleanup_
+ done
+done
+
+Exit $fail
diff --git a/tests/tail-2/wait.sh b/tests/tail-2/wait.sh
new file mode 100755
index 0000000..59f796a
--- /dev/null
+++ b/tests/tail-2/wait.sh
@@ -0,0 +1,96 @@
+#!/bin/sh
+# Make sure that 'tail -f' returns immediately if a file doesn't exist
+# while 'tail -F' waits for it to appear.
+
+# Copyright (C) 2003-2016 Free Software Foundation, Inc.
+
+# This program is free software: you can redistribute it and/or modify
+# it under the terms of the GNU General Public License as published by
+# the Free Software Foundation, either version 3 of the License, or
+# (at your option) any later version.
+
+# This program is distributed in the hope that it will be useful,
+# but WITHOUT ANY WARRANTY; without even the implied warranty of
+# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
+# GNU General Public License for more details.
+
+# You should have received a copy of the GNU General Public License
+# along with this program. If not, see <http://www.gnu.org/licenses/>.
+
+. "${srcdir=.}/tests/init.sh"; path_prepend_ ./src
+print_ver_ tail
+
+grep '^#define HAVE_INOTIFY 1' "$CONFIG_HEADER" >/dev/null \
+ && HAVE_INOTIFY=1
+
+inotify_failed_re='inotify (resources exhausted|cannot be used)'
+
+touch here || framework_failure_
+{ touch unreadable && chmod a-r unreadable; } || framework_failure_
+
+# Terminate any background tail process
+cleanup_() { kill $pid 2>/dev/null && wait $pid; }
+
+# speedup non inotify case
+fastpoll='-s.1 --max-unchanged-stats=1'
+
+for mode in '' '---disable-inotify'; do
+ timeout 10 tail $fastpoll -f $mode not_here
+ test $? = 124 && fail=1
+
+ if test ! -r unreadable; then # can't test this when root
+ timeout 10 tail $fastpoll -f $mode unreadable
+ test $? = 124 && fail=1
+ fi
+
+ timeout .1 tail $fastpoll -f $mode here 2>tail.err
+ test $? = 124 || fail=1
+
+ # 'tail -F' must wait in any case.
+
+ timeout .1 tail $fastpoll -F $mode here 2>>tail.err
+ test $? = 124 || fail=1
+
+ if test ! -r unreadable; then # can't test this when root
+ timeout .1 tail $fastpoll -F $mode unreadable
+ test $? = 124 || fail=1
+ fi
+
+ timeout .1 tail $fastpoll -F $mode not_here
+ test $? = 124 || fail=1
+
+ grep -Ev "$inotify_failed_re" tail.err > x
+ mv x tail.err
+ compare /dev/null tail.err || fail=1
+ >tail.err
+done
+
+if test "$HAVE_INOTIFY" && test -z "$mode" && is_local_dir_ .; then
+ # Ensure -F never follows a descriptor after rename
+ # either with tiny or significant delays between operations
+ tail_F()
+ {
+ local delay="$1"
+
+ > k && > tail.out && > tail.err || framework_failure_
+ tail $fastpoll -F $mode k >tail.out 2>tail.err & pid=$!
+ sleep $delay
+ mv k l
+ sleep $delay
+ touch k
+ mv k l
+ sleep $delay
+ echo NO >> l
+ sleep $delay
+ cleanup_
+ rm -f k l
+
+ test -s tail.out \
+ && ! grep -E "$inotify_failed_re" tail.err >/dev/null
+ }
+
+ retry_delay_ tail_F 0 1 && { cat tail.out; fail=1; }
+ retry_delay_ tail_F .2 1 && { cat tail.out; fail=1; }
+fi
+
+Exit $fail
diff --git a/tests/tail/Makefile.am b/tests/tail/Makefile.am
deleted file mode 100644
index f969cdf..0000000
--- a/tests/tail/Makefile.am
+++ /dev/null
@@ -1,78 +0,0 @@
-# Make coreutils tests. -*-Makefile-*-
-
-# Copyright (C) 1997, 1998, 2000, 2003, 2004, 2006 Free Software
-# Foundation, Inc.
-
-# This program is free software; you can redistribute it and/or modify
-# it under the terms of the GNU General Public License as published by
-# the Free Software Foundation; either version 2 of the License, or
-# (at your option) any later version.
-
-# This program is distributed in the hope that it will be useful,
-# but WITHOUT ANY WARRANTY; without even the implied warranty of
-# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
-# GNU General Public License for more details.
-
-# You should have received a copy of the GNU General Public License
-# along with this program; if not, write to the Free Software
-# Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA
-# 02110-1301, USA.
-
-##test-files-begin
-x = tail
-explicit =
-maint_gen = obs-plus-c1.I obs-plus-c1.X obs-plus-c2.I obs-plus-c2.X obs-c3.I \
-obs-c3.X obs-c4.I obs-c4.X obs-c5.I obs-c5.X obs-l1.I obs-l1.X obs-l2.I \
-obs-l2.X obs-l3.I obs-l3.X obs-plus-l4.I obs-plus-l4.X obs-plus-l5.I \
-obs-plus-l5.X obs-1.I obs-1.X obs-2.I obs-2.X obs-3.I obs-3.X obs-plus-4.I \
-obs-plus-4.X obs-plus-5.I obs-plus-5.X obs-plus-x1.I obs-plus-x1.X \
-obs-plus-x2.I obs-plus-x2.X obs-l.I obs-l.X obs-b.I obs-b.X err-1.I err-1.X \
-err-2.I err-2.X err-3.I err-3.X err-4.I err-4.X err-5.I err-5.X err-6.I \
-err-6.X minus-1.I minus-1.X minus-2.I minus-2.X c-2.I c-2.X c-2-minus.I \
-c-2-minus.X c2.I c2.X c2-minus.I c2-minus.X n-1.I n-1.X n-2.I n-2.X n-3.I \
-n-3.X n-4.I n-4.X n-4a.I n-4a.X n-5.I n-5.X n-5a.I n-5a.X n-5b.I n-5b.X \
-f-pipe-1.I f-pipe-1.X
-run_gen = obs-plus-c1.O obs-plus-c1.E obs-plus-c2.O obs-plus-c2.E obs-c3.O \
-obs-c3.E obs-c4.O obs-c4.E obs-c5.O obs-c5.E obs-l1.O obs-l1.E obs-l2.O \
-obs-l2.E obs-l3.O obs-l3.E obs-plus-l4.O obs-plus-l4.E obs-plus-l5.O \
-obs-plus-l5.E obs-1.O obs-1.E obs-2.O obs-2.E obs-3.O obs-3.E obs-plus-4.O \
-obs-plus-4.E obs-plus-5.O obs-plus-5.E obs-plus-x1.O obs-plus-x1.E \
-obs-plus-x2.O obs-plus-x2.E obs-l.O obs-l.E obs-b.O obs-b.E err-1.O err-1.E \
-err-2.O err-2.E err-3.O err-3.E err-4.O err-4.E err-5.O err-5.E err-6.O \
-err-6.E minus-1.O minus-1.E minus-2.O minus-2.E c-2.O c-2.E c-2-minus.O \
-c-2-minus.E c2.O c2.E c2-minus.O c2-minus.E n-1.O n-1.E n-2.O n-2.E n-3.O \
-n-3.E n-4.O n-4.E n-4a.O n-4a.E n-5.O n-5.E n-5a.O n-5a.E n-5b.O n-5b.E \
-f-pipe-1.O f-pipe-1.E
-##test-files-end
-
-EXTRA_DIST = Test.pm $x-tests $(explicit) $(maint_gen)
-noinst_SCRIPTS = $x-tests
-TESTS_ENVIRONMENT = \
- CU_TEST_NAME=`basename $(abs_srcdir)`,$$tst \
- PATH="$(VG_PATH_PREFIX)`pwd`/../../src$(PATH_SEPARATOR)$$PATH"
-
-editpl = sed -e 's,@''PERL''@,$(PERL),g' -e 's,@''srcdir''@,$(srcdir),g'
-
-TESTS = $x-tests
-
-mk_script = $(srcdir)/../mk-script
-$(srcdir)/$x-tests: $(mk_script) Test.pm Makefile.am
- test '$x' = test && prog=../../src/$x || prog=$x; \
- $(PERL) -I$(srcdir) -w -- $(mk_script) $(srcdir) $$prog > $@.n
- mv $@.n $@
- chmod 755 $@
-
-MAINTAINERCLEANFILES = $x-tests $(maint_gen)
-CLEANFILES = $(run_gen)
-
-check: $(maint_gen)
-
-$(srcdir)/Makefile.am: ../Makefile.am.in Test.pm $(mk_script)
- rm -f $@ $@t
- sed -n '1,/^##test-files-begin/p' $(srcdir)/../Makefile.am.in > $@t
- tool=`echo $(subdir)|sed 's/^tests.//;s/-test//'`; \
- echo "x = $$tool" >> $@t
- $(PERL) -I$(srcdir) -w -- $(mk_script) $(srcdir) --list >> $@t
- sed -n '/^##test-files-end/,$$p' $(srcdir)/../Makefile.am.in >> $@t
- chmod -w $@t
- mv $@t $@
diff --git a/tests/tail/Makefile.in b/tests/tail/Makefile.in
deleted file mode 100644
index 2ac0eae..0000000
--- a/tests/tail/Makefile.in
+++ /dev/null
@@ -1,788 +0,0 @@
-# Makefile.in generated by automake 1.10 from Makefile.am.
-# @configure_input@
-
-# Copyright (C) 1994, 1995, 1996, 1997, 1998, 1999, 2000, 2001, 2002,
-# 2003, 2004, 2005, 2006 Free Software Foundation, Inc.
-# This Makefile.in is free software; the Free Software Foundation
-# gives unlimited permission to copy and/or distribute it,
-# with or without modifications, as long as this notice is preserved.
-
-# This program is distributed in the hope that it will be useful,
-# but WITHOUT ANY WARRANTY, to the extent permitted by law; without
-# even the implied warranty of MERCHANTABILITY or FITNESS FOR A
-# PARTICULAR PURPOSE.
-
-@SET_MAKE@
-
-# Make coreutils tests. -*-Makefile-*-
-
-# Copyright (C) 1997, 1998, 2000, 2003, 2004, 2006 Free Software
-# Foundation, Inc.
-
-# This program is free software; you can redistribute it and/or modify
-# it under the terms of the GNU General Public License as published by
-# the Free Software Foundation; either version 2 of the License, or
-# (at your option) any later version.
-
-# This program is distributed in the hope that it will be useful,
-# but WITHOUT ANY WARRANTY; without even the implied warranty of
-# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
-# GNU General Public License for more details.
-
-# You should have received a copy of the GNU General Public License
-# along with this program; if not, write to the Free Software
-# Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA
-# 02110-1301, USA.
-
-VPATH = @srcdir@
-pkgdatadir = $(datadir)/@PACKAGE@
-pkglibdir = $(libdir)/@PACKAGE@
-pkgincludedir = $(includedir)/@PACKAGE@
-am__cd = CDPATH="$${ZSH_VERSION+.}$(PATH_SEPARATOR)" && cd
-install_sh_DATA = $(install_sh) -c -m 644
-install_sh_PROGRAM = $(install_sh) -c
-install_sh_SCRIPT = $(install_sh) -c
-INSTALL_HEADER = $(INSTALL_DATA)
-transform = $(program_transform_name)
-NORMAL_INSTALL = :
-PRE_INSTALL = :
-POST_INSTALL = :
-NORMAL_UNINSTALL = :
-PRE_UNINSTALL = :
-POST_UNINSTALL = :
-build_triplet = @build@
-host_triplet = @host@
-subdir = tests/tail
-DIST_COMMON = $(srcdir)/Makefile.am $(srcdir)/Makefile.in
-ACLOCAL_M4 = $(top_srcdir)/aclocal.m4
-am__aclocal_m4_deps = $(top_srcdir)/m4/absolute-header.m4 \
- $(top_srcdir)/m4/acl.m4 $(top_srcdir)/m4/alloca.m4 \
- $(top_srcdir)/m4/allocsa.m4 $(top_srcdir)/m4/argmatch.m4 \
- $(top_srcdir)/m4/arpa_inet_h.m4 $(top_srcdir)/m4/assert.m4 \
- $(top_srcdir)/m4/atexit.m4 $(top_srcdir)/m4/autobuild.m4 \
- $(top_srcdir)/m4/backupfile.m4 $(top_srcdir)/m4/base64.m4 \
- $(top_srcdir)/m4/bison.m4 $(top_srcdir)/m4/boottime.m4 \
- $(top_srcdir)/m4/c-strtod.m4 $(top_srcdir)/m4/calloc.m4 \
- $(top_srcdir)/m4/canon-host.m4 \
- $(top_srcdir)/m4/canonicalize.m4 \
- $(top_srcdir)/m4/chdir-long.m4 $(top_srcdir)/m4/check-decl.m4 \
- $(top_srcdir)/m4/chown.m4 $(top_srcdir)/m4/clock_time.m4 \
- $(top_srcdir)/m4/cloexec.m4 $(top_srcdir)/m4/close-stream.m4 \
- $(top_srcdir)/m4/closeout.m4 $(top_srcdir)/m4/codeset.m4 \
- $(top_srcdir)/m4/config-h.m4 $(top_srcdir)/m4/cycle-check.m4 \
- $(top_srcdir)/m4/d-ino.m4 $(top_srcdir)/m4/d-type.m4 \
- $(top_srcdir)/m4/dirfd.m4 $(top_srcdir)/m4/dirname.m4 \
- $(top_srcdir)/m4/dos.m4 $(top_srcdir)/m4/double-slash-root.m4 \
- $(top_srcdir)/m4/dup2.m4 $(top_srcdir)/m4/eealloc.m4 \
- $(top_srcdir)/m4/eoverflow.m4 $(top_srcdir)/m4/error.m4 \
- $(top_srcdir)/m4/euidaccess-stat.m4 \
- $(top_srcdir)/m4/euidaccess.m4 $(top_srcdir)/m4/exclude.m4 \
- $(top_srcdir)/m4/exitfail.m4 $(top_srcdir)/m4/extensions.m4 \
- $(top_srcdir)/m4/fchdir.m4 $(top_srcdir)/m4/fcntl-safer.m4 \
- $(top_srcdir)/m4/fcntl_h.m4 $(top_srcdir)/m4/fd-reopen.m4 \
- $(top_srcdir)/m4/file-type.m4 $(top_srcdir)/m4/fileblocks.m4 \
- $(top_srcdir)/m4/filemode.m4 $(top_srcdir)/m4/filenamecat.m4 \
- $(top_srcdir)/m4/flexmember.m4 $(top_srcdir)/m4/fnmatch.m4 \
- $(top_srcdir)/m4/fpending.m4 $(top_srcdir)/m4/fprintftime.m4 \
- $(top_srcdir)/m4/free.m4 $(top_srcdir)/m4/fstypename.m4 \
- $(top_srcdir)/m4/fsusage.m4 $(top_srcdir)/m4/ftruncate.m4 \
- $(top_srcdir)/m4/fts.m4 $(top_srcdir)/m4/getaddrinfo.m4 \
- $(top_srcdir)/m4/getcwd-abort-bug.m4 \
- $(top_srcdir)/m4/getcwd-path-max.m4 $(top_srcdir)/m4/getcwd.m4 \
- $(top_srcdir)/m4/getdate.m4 $(top_srcdir)/m4/getdelim.m4 \
- $(top_srcdir)/m4/getgroups.m4 $(top_srcdir)/m4/gethostname.m4 \
- $(top_srcdir)/m4/gethrxtime.m4 $(top_srcdir)/m4/getline.m4 \
- $(top_srcdir)/m4/getloadavg.m4 $(top_srcdir)/m4/getndelim2.m4 \
- $(top_srcdir)/m4/getopt.m4 $(top_srcdir)/m4/getpagesize.m4 \
- $(top_srcdir)/m4/getpass.m4 $(top_srcdir)/m4/gettext.m4 \
- $(top_srcdir)/m4/gettime.m4 $(top_srcdir)/m4/gettimeofday.m4 \
- $(top_srcdir)/m4/getugroups.m4 \
- $(top_srcdir)/m4/getusershell.m4 $(top_srcdir)/m4/glibc21.m4 \
- $(top_srcdir)/m4/gnulib-common.m4 \
- $(top_srcdir)/m4/gnulib-comp.m4 \
- $(top_srcdir)/m4/group-member.m4 \
- $(top_srcdir)/m4/hard-locale.m4 $(top_srcdir)/m4/hash.m4 \
- $(top_srcdir)/m4/host-os.m4 $(top_srcdir)/m4/human.m4 \
- $(top_srcdir)/m4/i-ring.m4 $(top_srcdir)/m4/iconv.m4 \
- $(top_srcdir)/m4/idcache.m4 $(top_srcdir)/m4/inet_ntop.m4 \
- $(top_srcdir)/m4/inline.m4 $(top_srcdir)/m4/intmax_t.m4 \
- $(top_srcdir)/m4/inttostr.m4 $(top_srcdir)/m4/inttypes-pri.m4 \
- $(top_srcdir)/m4/inttypes.m4 $(top_srcdir)/m4/inttypes_h.m4 \
- $(top_srcdir)/m4/isapipe.m4 $(top_srcdir)/m4/jm-macros.m4 \
- $(top_srcdir)/m4/jm-winsz1.m4 $(top_srcdir)/m4/jm-winsz2.m4 \
- $(top_srcdir)/m4/lchmod.m4 $(top_srcdir)/m4/lchown.m4 \
- $(top_srcdir)/m4/lib-check.m4 $(top_srcdir)/m4/lib-ignore.m4 \
- $(top_srcdir)/m4/lib-ld.m4 $(top_srcdir)/m4/lib-link.m4 \
- $(top_srcdir)/m4/lib-prefix.m4 $(top_srcdir)/m4/link-follow.m4 \
- $(top_srcdir)/m4/localcharset.m4 \
- $(top_srcdir)/m4/long-options.m4 \
- $(top_srcdir)/m4/longdouble.m4 $(top_srcdir)/m4/longlong.m4 \
- $(top_srcdir)/m4/ls-mntd-fs.m4 $(top_srcdir)/m4/lstat.m4 \
- $(top_srcdir)/m4/mbchar.m4 $(top_srcdir)/m4/mbiter.m4 \
- $(top_srcdir)/m4/mbrtowc.m4 $(top_srcdir)/m4/mbscasecmp.m4 \
- $(top_srcdir)/m4/mbstate_t.m4 $(top_srcdir)/m4/mbswidth.m4 \
- $(top_srcdir)/m4/md5.m4 $(top_srcdir)/m4/memcasecmp.m4 \
- $(top_srcdir)/m4/memchr.m4 $(top_srcdir)/m4/memcmp.m4 \
- $(top_srcdir)/m4/memcoll.m4 $(top_srcdir)/m4/memcpy.m4 \
- $(top_srcdir)/m4/memmove.m4 $(top_srcdir)/m4/mempcpy.m4 \
- $(top_srcdir)/m4/memrchr.m4 $(top_srcdir)/m4/memset.m4 \
- $(top_srcdir)/m4/memxfrm.m4 $(top_srcdir)/m4/mkancesdirs.m4 \
- $(top_srcdir)/m4/mkdir-p.m4 $(top_srcdir)/m4/mkdir-slash.m4 \
- $(top_srcdir)/m4/mkstemp.m4 $(top_srcdir)/m4/mktime.m4 \
- $(top_srcdir)/m4/modechange.m4 $(top_srcdir)/m4/mountlist.m4 \
- $(top_srcdir)/m4/mpsort.m4 $(top_srcdir)/m4/nanosleep.m4 \
- $(top_srcdir)/m4/netinet_in_h.m4 $(top_srcdir)/m4/nls.m4 \
- $(top_srcdir)/m4/openat.m4 $(top_srcdir)/m4/pathmax.m4 \
- $(top_srcdir)/m4/perl.m4 $(top_srcdir)/m4/physmem.m4 \
- $(top_srcdir)/m4/po.m4 $(top_srcdir)/m4/posixtm.m4 \
- $(top_srcdir)/m4/posixver.m4 $(top_srcdir)/m4/prereq.m4 \
- $(top_srcdir)/m4/progtest.m4 $(top_srcdir)/m4/putenv.m4 \
- $(top_srcdir)/m4/quote.m4 $(top_srcdir)/m4/quotearg.m4 \
- $(top_srcdir)/m4/randint.m4 $(top_srcdir)/m4/randperm.m4 \
- $(top_srcdir)/m4/randread.m4 $(top_srcdir)/m4/readlink.m4 \
- $(top_srcdir)/m4/readtokens.m4 $(top_srcdir)/m4/readutmp.m4 \
- $(top_srcdir)/m4/regex.m4 \
- $(top_srcdir)/m4/rename-dest-slash.m4 \
- $(top_srcdir)/m4/rename.m4 $(top_srcdir)/m4/rmdir-errno.m4 \
- $(top_srcdir)/m4/rmdir.m4 $(top_srcdir)/m4/root-dev-ino.m4 \
- $(top_srcdir)/m4/rpmatch.m4 $(top_srcdir)/m4/safe-read.m4 \
- $(top_srcdir)/m4/safe-write.m4 $(top_srcdir)/m4/same.m4 \
- $(top_srcdir)/m4/save-cwd.m4 $(top_srcdir)/m4/savedir.m4 \
- $(top_srcdir)/m4/savewd.m4 $(top_srcdir)/m4/setenv.m4 \
- $(top_srcdir)/m4/settime.m4 $(top_srcdir)/m4/sha1.m4 \
- $(top_srcdir)/m4/sha256.m4 $(top_srcdir)/m4/sha512.m4 \
- $(top_srcdir)/m4/sig2str.m4 $(top_srcdir)/m4/snprintf.m4 \
- $(top_srcdir)/m4/socklen.m4 $(top_srcdir)/m4/sockpfaf.m4 \
- $(top_srcdir)/m4/ssize_t.m4 $(top_srcdir)/m4/st_dm_mode.m4 \
- $(top_srcdir)/m4/stat-prog.m4 $(top_srcdir)/m4/stat-time.m4 \
- $(top_srcdir)/m4/stdarg.m4 $(top_srcdir)/m4/stdbool.m4 \
- $(top_srcdir)/m4/stdint.m4 $(top_srcdir)/m4/stdint_h.m4 \
- $(top_srcdir)/m4/stdio-safer.m4 $(top_srcdir)/m4/stdio_h.m4 \
- $(top_srcdir)/m4/stdlib-safer.m4 $(top_srcdir)/m4/stdlib_h.m4 \
- $(top_srcdir)/m4/stpcpy.m4 $(top_srcdir)/m4/strcspn.m4 \
- $(top_srcdir)/m4/strdup.m4 $(top_srcdir)/m4/strftime.m4 \
- $(top_srcdir)/m4/string_h.m4 $(top_srcdir)/m4/strndup.m4 \
- $(top_srcdir)/m4/strnlen.m4 $(top_srcdir)/m4/strnumcmp.m4 \
- $(top_srcdir)/m4/strpbrk.m4 $(top_srcdir)/m4/strtod.m4 \
- $(top_srcdir)/m4/strtoimax.m4 $(top_srcdir)/m4/strtol.m4 \
- $(top_srcdir)/m4/strtoll.m4 $(top_srcdir)/m4/strtoul.m4 \
- $(top_srcdir)/m4/strtoull.m4 $(top_srcdir)/m4/strtoumax.m4 \
- $(top_srcdir)/m4/strverscmp.m4 \
- $(top_srcdir)/m4/sys_socket_h.m4 \
- $(top_srcdir)/m4/sys_stat_h.m4 $(top_srcdir)/m4/sys_time_h.m4 \
- $(top_srcdir)/m4/tempname.m4 $(top_srcdir)/m4/time_h.m4 \
- $(top_srcdir)/m4/time_r.m4 $(top_srcdir)/m4/timespec.m4 \
- $(top_srcdir)/m4/tm_gmtoff.m4 $(top_srcdir)/m4/tzset.m4 \
- $(top_srcdir)/m4/unicodeio.m4 $(top_srcdir)/m4/unistd-safer.m4 \
- $(top_srcdir)/m4/unistd_h.m4 $(top_srcdir)/m4/unlink-busy.m4 \
- $(top_srcdir)/m4/unlinkdir.m4 $(top_srcdir)/m4/unlocked-io.m4 \
- $(top_srcdir)/m4/uptime.m4 $(top_srcdir)/m4/userspec.m4 \
- $(top_srcdir)/m4/utimbuf.m4 $(top_srcdir)/m4/utime.m4 \
- $(top_srcdir)/m4/utimecmp.m4 $(top_srcdir)/m4/utimens.m4 \
- $(top_srcdir)/m4/utimes-null.m4 $(top_srcdir)/m4/utimes.m4 \
- $(top_srcdir)/m4/vasnprintf.m4 $(top_srcdir)/m4/vasprintf.m4 \
- $(top_srcdir)/m4/wchar.m4 $(top_srcdir)/m4/wchar_t.m4 \
- $(top_srcdir)/m4/wctype.m4 $(top_srcdir)/m4/wcwidth.m4 \
- $(top_srcdir)/m4/wint_t.m4 $(top_srcdir)/m4/xalloc.m4 \
- $(top_srcdir)/m4/xfts.m4 $(top_srcdir)/m4/xgetcwd.m4 \
- $(top_srcdir)/m4/xnanosleep.m4 $(top_srcdir)/m4/xstrndup.m4 \
- $(top_srcdir)/m4/xstrtod.m4 $(top_srcdir)/m4/xstrtol.m4 \
- $(top_srcdir)/m4/yesno.m4 $(top_srcdir)/configure.ac
-am__configure_deps = $(am__aclocal_m4_deps) $(CONFIGURE_DEPENDENCIES) \
- $(ACLOCAL_M4)
-mkinstalldirs = $(install_sh) -d
-CONFIG_HEADER = $(top_builddir)/lib/config.h
-CONFIG_CLEAN_FILES =
-SCRIPTS = $(noinst_SCRIPTS)
-SOURCES =
-DIST_SOURCES =
-DISTFILES = $(DIST_COMMON) $(DIST_SOURCES) $(TEXINFOS) $(EXTRA_DIST)
-ABSOLUTE_DIRENT_H = @ABSOLUTE_DIRENT_H@
-ABSOLUTE_FCNTL_H = @ABSOLUTE_FCNTL_H@
-ABSOLUTE_INTTYPES_H = @ABSOLUTE_INTTYPES_H@
-ABSOLUTE_NETINET_IN_H = @ABSOLUTE_NETINET_IN_H@
-ABSOLUTE_STDINT_H = @ABSOLUTE_STDINT_H@
-ABSOLUTE_STDIO_H = @ABSOLUTE_STDIO_H@
-ABSOLUTE_STDLIB_H = @ABSOLUTE_STDLIB_H@
-ABSOLUTE_STRING_H = @ABSOLUTE_STRING_H@
-ABSOLUTE_SYS_SOCKET_H = @ABSOLUTE_SYS_SOCKET_H@
-ABSOLUTE_SYS_STAT_H = @ABSOLUTE_SYS_STAT_H@
-ABSOLUTE_SYS_TIME_H = @ABSOLUTE_SYS_TIME_H@
-ABSOLUTE_TIME_H = @ABSOLUTE_TIME_H@
-ABSOLUTE_UNISTD_H = @ABSOLUTE_UNISTD_H@
-ABSOLUTE_WCHAR_H = @ABSOLUTE_WCHAR_H@
-ABSOLUTE_WCTYPE_H = @ABSOLUTE_WCTYPE_H@
-ACLOCAL = @ACLOCAL@
-ALLOCA = @ALLOCA@
-ALLOCA_H = @ALLOCA_H@
-AMTAR = @AMTAR@
-ARPA_INET_H = @ARPA_INET_H@
-AUTOCONF = @AUTOCONF@
-AUTOHEADER = @AUTOHEADER@
-AUTOMAKE = @AUTOMAKE@
-AWK = @AWK@
-BITSIZEOF_PTRDIFF_T = @BITSIZEOF_PTRDIFF_T@
-BITSIZEOF_SIG_ATOMIC_T = @BITSIZEOF_SIG_ATOMIC_T@
-BITSIZEOF_SIZE_T = @BITSIZEOF_SIZE_T@
-BITSIZEOF_WCHAR_T = @BITSIZEOF_WCHAR_T@
-BITSIZEOF_WINT_T = @BITSIZEOF_WINT_T@
-CC = @CC@
-CCDEPMODE = @CCDEPMODE@
-CFLAGS = @CFLAGS@
-CPP = @CPP@
-CPPFLAGS = @CPPFLAGS@
-CYGPATH_W = @CYGPATH_W@
-DEFAULT_POSIX2_VERSION = @DEFAULT_POSIX2_VERSION@
-DEFS = @DEFS@
-DEPDIR = @DEPDIR@
-DF_PROG = @DF_PROG@
-DIRENT_H = @DIRENT_H@
-ECHO_C = @ECHO_C@
-ECHO_N = @ECHO_N@
-ECHO_T = @ECHO_T@
-EGREP = @EGREP@
-EOVERFLOW = @EOVERFLOW@
-EXEEXT = @EXEEXT@
-FCNTL_H = @FCNTL_H@
-FNMATCH_H = @FNMATCH_H@
-GETLOADAVG_LIBS = @GETLOADAVG_LIBS@
-GETOPT_H = @GETOPT_H@
-GLIBC21 = @GLIBC21@
-GMSGFMT = @GMSGFMT@
-GMSGFMT_015 = @GMSGFMT_015@
-GNULIB_CHOWN = @GNULIB_CHOWN@
-GNULIB_DUP2 = @GNULIB_DUP2@
-GNULIB_FCHDIR = @GNULIB_FCHDIR@
-GNULIB_FPRINTF_POSIX = @GNULIB_FPRINTF_POSIX@
-GNULIB_FTRUNCATE = @GNULIB_FTRUNCATE@
-GNULIB_GETCWD = @GNULIB_GETCWD@
-GNULIB_GETLOGIN_R = @GNULIB_GETLOGIN_R@
-GNULIB_GETSUBOPT = @GNULIB_GETSUBOPT@
-GNULIB_IMAXABS = @GNULIB_IMAXABS@
-GNULIB_IMAXDIV = @GNULIB_IMAXDIV@
-GNULIB_MBSCASECMP = @GNULIB_MBSCASECMP@
-GNULIB_MBSCASESTR = @GNULIB_MBSCASESTR@
-GNULIB_MBSCHR = @GNULIB_MBSCHR@
-GNULIB_MBSCSPN = @GNULIB_MBSCSPN@
-GNULIB_MBSLEN = @GNULIB_MBSLEN@
-GNULIB_MBSNCASECMP = @GNULIB_MBSNCASECMP@
-GNULIB_MBSPBRK = @GNULIB_MBSPBRK@
-GNULIB_MBSPCASECMP = @GNULIB_MBSPCASECMP@
-GNULIB_MBSRCHR = @GNULIB_MBSRCHR@
-GNULIB_MBSSEP = @GNULIB_MBSSEP@
-GNULIB_MBSSPN = @GNULIB_MBSSPN@
-GNULIB_MBSSTR = @GNULIB_MBSSTR@
-GNULIB_MBSTOK_R = @GNULIB_MBSTOK_R@
-GNULIB_MEMMEM = @GNULIB_MEMMEM@
-GNULIB_MEMPCPY = @GNULIB_MEMPCPY@
-GNULIB_MEMRCHR = @GNULIB_MEMRCHR@
-GNULIB_MKDTEMP = @GNULIB_MKDTEMP@
-GNULIB_MKSTEMP = @GNULIB_MKSTEMP@
-GNULIB_PRINTF_POSIX = @GNULIB_PRINTF_POSIX@
-GNULIB_READLINK = @GNULIB_READLINK@
-GNULIB_SNPRINTF = @GNULIB_SNPRINTF@
-GNULIB_SPRINTF_POSIX = @GNULIB_SPRINTF_POSIX@
-GNULIB_STPCPY = @GNULIB_STPCPY@
-GNULIB_STPNCPY = @GNULIB_STPNCPY@
-GNULIB_STRCASESTR = @GNULIB_STRCASESTR@
-GNULIB_STRCHRNUL = @GNULIB_STRCHRNUL@
-GNULIB_STRDUP = @GNULIB_STRDUP@
-GNULIB_STRNDUP = @GNULIB_STRNDUP@
-GNULIB_STRNLEN = @GNULIB_STRNLEN@
-GNULIB_STRPBRK = @GNULIB_STRPBRK@
-GNULIB_STRSEP = @GNULIB_STRSEP@
-GNULIB_STRTOIMAX = @GNULIB_STRTOIMAX@
-GNULIB_STRTOK_R = @GNULIB_STRTOK_R@
-GNULIB_STRTOUMAX = @GNULIB_STRTOUMAX@
-GNULIB_VFPRINTF_POSIX = @GNULIB_VFPRINTF_POSIX@
-GNULIB_VPRINTF_POSIX = @GNULIB_VPRINTF_POSIX@
-GNULIB_VSNPRINTF = @GNULIB_VSNPRINTF@
-GNULIB_VSPRINTF_POSIX = @GNULIB_VSPRINTF_POSIX@
-GNU_PACKAGE = @GNU_PACKAGE@
-GREP = @GREP@
-HAVE_DECL_GETLOGIN_R = @HAVE_DECL_GETLOGIN_R@
-HAVE_DECL_IMAXABS = @HAVE_DECL_IMAXABS@
-HAVE_DECL_IMAXDIV = @HAVE_DECL_IMAXDIV@
-HAVE_DECL_MEMMEM = @HAVE_DECL_MEMMEM@
-HAVE_DECL_MEMRCHR = @HAVE_DECL_MEMRCHR@
-HAVE_DECL_SNPRINTF = @HAVE_DECL_SNPRINTF@
-HAVE_DECL_STRDUP = @HAVE_DECL_STRDUP@
-HAVE_DECL_STRNCASECMP = @HAVE_DECL_STRNCASECMP@
-HAVE_DECL_STRNDUP = @HAVE_DECL_STRNDUP@
-HAVE_DECL_STRNLEN = @HAVE_DECL_STRNLEN@
-HAVE_DECL_STRTOIMAX = @HAVE_DECL_STRTOIMAX@
-HAVE_DECL_STRTOK_R = @HAVE_DECL_STRTOK_R@
-HAVE_DECL_STRTOUMAX = @HAVE_DECL_STRTOUMAX@
-HAVE_DECL_VSNPRINTF = @HAVE_DECL_VSNPRINTF@
-HAVE_DUP2 = @HAVE_DUP2@
-HAVE_FTRUNCATE = @HAVE_FTRUNCATE@
-HAVE_GETSUBOPT = @HAVE_GETSUBOPT@
-HAVE_INTTYPES_H = @HAVE_INTTYPES_H@
-HAVE_LONG_LONG_INT = @HAVE_LONG_LONG_INT@
-HAVE_MEMPCPY = @HAVE_MEMPCPY@
-HAVE_MKDTEMP = @HAVE_MKDTEMP@
-HAVE_NETINET_IN_H = @HAVE_NETINET_IN_H@
-HAVE_READLINK = @HAVE_READLINK@
-HAVE_SIGNED_SIG_ATOMIC_T = @HAVE_SIGNED_SIG_ATOMIC_T@
-HAVE_SIGNED_WCHAR_T = @HAVE_SIGNED_WCHAR_T@
-HAVE_SIGNED_WINT_T = @HAVE_SIGNED_WINT_T@
-HAVE_STDINT_H = @HAVE_STDINT_H@
-HAVE_STPCPY = @HAVE_STPCPY@
-HAVE_STPNCPY = @HAVE_STPNCPY@
-HAVE_STRCASECMP = @HAVE_STRCASECMP@
-HAVE_STRCASESTR = @HAVE_STRCASESTR@
-HAVE_STRCHRNUL = @HAVE_STRCHRNUL@
-HAVE_STRNDUP = @HAVE_STRNDUP@
-HAVE_STRPBRK = @HAVE_STRPBRK@
-HAVE_STRSEP = @HAVE_STRSEP@
-HAVE_STRUCT_TIMEVAL = @HAVE_STRUCT_TIMEVAL@
-HAVE_SYS_BITYPES_H = @HAVE_SYS_BITYPES_H@
-HAVE_SYS_INTTYPES_H = @HAVE_SYS_INTTYPES_H@
-HAVE_SYS_SOCKET_H = @HAVE_SYS_SOCKET_H@
-HAVE_SYS_TIME_H = @HAVE_SYS_TIME_H@
-HAVE_SYS_TYPES_H = @HAVE_SYS_TYPES_H@
-HAVE_UNISTD_H = @HAVE_UNISTD_H@
-HAVE_UNSIGNED_LONG_LONG_INT = @HAVE_UNSIGNED_LONG_LONG_INT@
-HAVE_WCTYPE_H = @HAVE_WCTYPE_H@
-HAVE_WINSOCK2_H = @HAVE_WINSOCK2_H@
-HAVE_WINT_T = @HAVE_WINT_T@
-HAVE_WS2TCPIP_H = @HAVE_WS2TCPIP_H@
-HAVE__BOOL = @HAVE__BOOL@
-HELP2MAN = @HELP2MAN@
-INSTALL = @INSTALL@
-INSTALL_DATA = @INSTALL_DATA@
-INSTALL_PROGRAM = @INSTALL_PROGRAM@
-INSTALL_SCRIPT = @INSTALL_SCRIPT@
-INSTALL_STRIP_PROGRAM = @INSTALL_STRIP_PROGRAM@
-INTLLIBS = @INTLLIBS@
-INTL_MACOSX_LIBS = @INTL_MACOSX_LIBS@
-INTTYPES_H = @INTTYPES_H@
-KMEM_GROUP = @KMEM_GROUP@
-LDFLAGS = @LDFLAGS@
-LIBCOREUTILS_LIBDEPS = @LIBCOREUTILS_LIBDEPS@
-LIBCOREUTILS_LTLIBDEPS = @LIBCOREUTILS_LTLIBDEPS@
-LIBICONV = @LIBICONV@
-LIBINTL = @LIBINTL@
-LIBOBJS = @LIBOBJS@
-LIBS = @LIBS@
-LIB_ACL = @LIB_ACL@
-LIB_ACL_TRIVIAL = @LIB_ACL_TRIVIAL@
-LIB_CLOCK_GETTIME = @LIB_CLOCK_GETTIME@
-LIB_CRYPT = @LIB_CRYPT@
-LIB_EACCESS = @LIB_EACCESS@
-LIB_FDATASYNC = @LIB_FDATASYNC@
-LIB_GETHRXTIME = @LIB_GETHRXTIME@
-LIB_NANOSLEEP = @LIB_NANOSLEEP@
-LN_S = @LN_S@
-LTLIBICONV = @LTLIBICONV@
-LTLIBINTL = @LTLIBINTL@
-LTLIBOBJS = @LTLIBOBJS@
-MAKEINFO = @MAKEINFO@
-MAN = @MAN@
-MKDIR_P = @MKDIR_P@
-MSGFMT = @MSGFMT@
-MSGFMT_015 = @MSGFMT_015@
-MSGMERGE = @MSGMERGE@
-NEED_SETGID = @NEED_SETGID@
-NETINET_IN_H = @NETINET_IN_H@
-OBJEXT = @OBJEXT@
-OPTIONAL_BIN_PROGS = @OPTIONAL_BIN_PROGS@
-PACKAGE = @PACKAGE@
-PACKAGE_BUGREPORT = @PACKAGE_BUGREPORT@
-PACKAGE_NAME = @PACKAGE_NAME@
-PACKAGE_STRING = @PACKAGE_STRING@
-PACKAGE_TARNAME = @PACKAGE_TARNAME@
-PACKAGE_VERSION = @PACKAGE_VERSION@
-PATH_SEPARATOR = @PATH_SEPARATOR@
-PERL = @PERL@
-POSUB = @POSUB@
-POW_LIB = @POW_LIB@
-PRIPTR_PREFIX = @PRIPTR_PREFIX@
-PRI_MACROS_BROKEN = @PRI_MACROS_BROKEN@
-PTRDIFF_T_SUFFIX = @PTRDIFF_T_SUFFIX@
-RANLIB = @RANLIB@
-REPLACE_CHOWN = @REPLACE_CHOWN@
-REPLACE_FCHDIR = @REPLACE_FCHDIR@
-REPLACE_FPRINTF = @REPLACE_FPRINTF@
-REPLACE_GETCWD = @REPLACE_GETCWD@
-REPLACE_GETTIMEOFDAY = @REPLACE_GETTIMEOFDAY@
-REPLACE_LOCALTIME_R = @REPLACE_LOCALTIME_R@
-REPLACE_MKSTEMP = @REPLACE_MKSTEMP@
-REPLACE_NANOSLEEP = @REPLACE_NANOSLEEP@
-REPLACE_PRINTF = @REPLACE_PRINTF@
-REPLACE_SNPRINTF = @REPLACE_SNPRINTF@
-REPLACE_SPRINTF = @REPLACE_SPRINTF@
-REPLACE_STRPTIME = @REPLACE_STRPTIME@
-REPLACE_TIMEGM = @REPLACE_TIMEGM@
-REPLACE_VFPRINTF = @REPLACE_VFPRINTF@
-REPLACE_VPRINTF = @REPLACE_VPRINTF@
-REPLACE_VSNPRINTF = @REPLACE_VSNPRINTF@
-REPLACE_VSPRINTF = @REPLACE_VSPRINTF@
-SEQ_LIBM = @SEQ_LIBM@
-SET_MAKE = @SET_MAKE@
-SHELL = @SHELL@
-SIG_ATOMIC_T_SUFFIX = @SIG_ATOMIC_T_SUFFIX@
-SIZE_T_SUFFIX = @SIZE_T_SUFFIX@
-STDBOOL_H = @STDBOOL_H@
-STDINT_H = @STDINT_H@
-STRIP = @STRIP@
-SYS_SOCKET_H = @SYS_SOCKET_H@
-SYS_STAT_H = @SYS_STAT_H@
-SYS_TIME_H = @SYS_TIME_H@
-SYS_TIME_H_DEFINES_STRUCT_TIMESPEC = @SYS_TIME_H_DEFINES_STRUCT_TIMESPEC@
-TIME_H_DEFINES_STRUCT_TIMESPEC = @TIME_H_DEFINES_STRUCT_TIMESPEC@
-U = @U@
-USE_NLS = @USE_NLS@
-VERSION = @VERSION@
-WCHAR_H = @WCHAR_H@
-WCHAR_T_SUFFIX = @WCHAR_T_SUFFIX@
-WCTYPE_H = @WCTYPE_H@
-WINT_T_SUFFIX = @WINT_T_SUFFIX@
-XGETTEXT = @XGETTEXT@
-XGETTEXT_015 = @XGETTEXT_015@
-YACC = @YACC@
-YFLAGS = @YFLAGS@
-abs_builddir = @abs_builddir@
-abs_srcdir = @abs_srcdir@
-abs_top_builddir = @abs_top_builddir@
-abs_top_srcdir = @abs_top_srcdir@
-ac_ct_CC = @ac_ct_CC@
-am__include = @am__include@
-am__leading_dot = @am__leading_dot@
-am__quote = @am__quote@
-am__tar = @am__tar@
-am__untar = @am__untar@
-bindir = @bindir@
-build = @build@
-build_alias = @build_alias@
-build_cpu = @build_cpu@
-build_os = @build_os@
-build_vendor = @build_vendor@
-builddir = @builddir@
-datadir = @datadir@
-datarootdir = @datarootdir@
-docdir = @docdir@
-dvidir = @dvidir@
-exec_prefix = @exec_prefix@
-gl_LIBOBJS = @gl_LIBOBJS@
-gl_LTLIBOBJS = @gl_LTLIBOBJS@
-host = @host@
-host_alias = @host_alias@
-host_cpu = @host_cpu@
-host_os = @host_os@
-host_vendor = @host_vendor@
-htmldir = @htmldir@
-includedir = @includedir@
-infodir = @infodir@
-install_sh = @install_sh@
-libdir = @libdir@
-libexecdir = @libexecdir@
-localedir = @localedir@
-localstatedir = @localstatedir@
-mandir = @mandir@
-mkdir_p = @mkdir_p@
-oldincludedir = @oldincludedir@
-pdfdir = @pdfdir@
-prefix = @prefix@
-program_transform_name = @program_transform_name@
-psdir = @psdir@
-sbindir = @sbindir@
-sharedstatedir = @sharedstatedir@
-srcdir = @srcdir@
-sysconfdir = @sysconfdir@
-target_alias = @target_alias@
-top_builddir = @top_builddir@
-top_srcdir = @top_srcdir@
-x = tail
-explicit =
-maint_gen = obs-plus-c1.I obs-plus-c1.X obs-plus-c2.I obs-plus-c2.X obs-c3.I \
-obs-c3.X obs-c4.I obs-c4.X obs-c5.I obs-c5.X obs-l1.I obs-l1.X obs-l2.I \
-obs-l2.X obs-l3.I obs-l3.X obs-plus-l4.I obs-plus-l4.X obs-plus-l5.I \
-obs-plus-l5.X obs-1.I obs-1.X obs-2.I obs-2.X obs-3.I obs-3.X obs-plus-4.I \
-obs-plus-4.X obs-plus-5.I obs-plus-5.X obs-plus-x1.I obs-plus-x1.X \
-obs-plus-x2.I obs-plus-x2.X obs-l.I obs-l.X obs-b.I obs-b.X err-1.I err-1.X \
-err-2.I err-2.X err-3.I err-3.X err-4.I err-4.X err-5.I err-5.X err-6.I \
-err-6.X minus-1.I minus-1.X minus-2.I minus-2.X c-2.I c-2.X c-2-minus.I \
-c-2-minus.X c2.I c2.X c2-minus.I c2-minus.X n-1.I n-1.X n-2.I n-2.X n-3.I \
-n-3.X n-4.I n-4.X n-4a.I n-4a.X n-5.I n-5.X n-5a.I n-5a.X n-5b.I n-5b.X \
-f-pipe-1.I f-pipe-1.X
-
-run_gen = obs-plus-c1.O obs-plus-c1.E obs-plus-c2.O obs-plus-c2.E obs-c3.O \
-obs-c3.E obs-c4.O obs-c4.E obs-c5.O obs-c5.E obs-l1.O obs-l1.E obs-l2.O \
-obs-l2.E obs-l3.O obs-l3.E obs-plus-l4.O obs-plus-l4.E obs-plus-l5.O \
-obs-plus-l5.E obs-1.O obs-1.E obs-2.O obs-2.E obs-3.O obs-3.E obs-plus-4.O \
-obs-plus-4.E obs-plus-5.O obs-plus-5.E obs-plus-x1.O obs-plus-x1.E \
-obs-plus-x2.O obs-plus-x2.E obs-l.O obs-l.E obs-b.O obs-b.E err-1.O err-1.E \
-err-2.O err-2.E err-3.O err-3.E err-4.O err-4.E err-5.O err-5.E err-6.O \
-err-6.E minus-1.O minus-1.E minus-2.O minus-2.E c-2.O c-2.E c-2-minus.O \
-c-2-minus.E c2.O c2.E c2-minus.O c2-minus.E n-1.O n-1.E n-2.O n-2.E n-3.O \
-n-3.E n-4.O n-4.E n-4a.O n-4a.E n-5.O n-5.E n-5a.O n-5a.E n-5b.O n-5b.E \
-f-pipe-1.O f-pipe-1.E
-
-EXTRA_DIST = Test.pm $x-tests $(explicit) $(maint_gen)
-noinst_SCRIPTS = $x-tests
-TESTS_ENVIRONMENT = \
- CU_TEST_NAME=`basename $(abs_srcdir)`,$$tst \
- PATH="$(VG_PATH_PREFIX)`pwd`/../../src$(PATH_SEPARATOR)$$PATH"
-
-editpl = sed -e 's,@''PERL''@,$(PERL),g' -e 's,@''srcdir''@,$(srcdir),g'
-TESTS = $x-tests
-mk_script = $(srcdir)/../mk-script
-MAINTAINERCLEANFILES = $x-tests $(maint_gen)
-CLEANFILES = $(run_gen)
-all: all-am
-
-.SUFFIXES:
-$(srcdir)/Makefile.in: $(srcdir)/Makefile.am $(am__configure_deps)
- @for dep in $?; do \
- case '$(am__configure_deps)' in \
- *$$dep*) \
- cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh \
- && exit 0; \
- exit 1;; \
- esac; \
- done; \
- echo ' cd $(top_srcdir) && $(AUTOMAKE) --gnu tests/tail/Makefile'; \
- cd $(top_srcdir) && \
- $(AUTOMAKE) --gnu tests/tail/Makefile
-.PRECIOUS: Makefile
-Makefile: $(srcdir)/Makefile.in $(top_builddir)/config.status
- @case '$?' in \
- *config.status*) \
- cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh;; \
- *) \
- echo ' cd $(top_builddir) && $(SHELL) ./config.status $(subdir)/$@ $(am__depfiles_maybe)'; \
- cd $(top_builddir) && $(SHELL) ./config.status $(subdir)/$@ $(am__depfiles_maybe);; \
- esac;
-
-$(top_builddir)/config.status: $(top_srcdir)/configure $(CONFIG_STATUS_DEPENDENCIES)
- cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh
-
-$(top_srcdir)/configure: $(am__configure_deps)
- cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh
-$(ACLOCAL_M4): $(am__aclocal_m4_deps)
- cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh
-tags: TAGS
-TAGS:
-
-ctags: CTAGS
-CTAGS:
-
-
-check-TESTS: $(TESTS)
- @failed=0; all=0; xfail=0; xpass=0; skip=0; ws='[ ]'; \
- srcdir=$(srcdir); export srcdir; \
- list=' $(TESTS) '; \
- if test -n "$$list"; then \
- for tst in $$list; do \
- if test -f ./$$tst; then dir=./; \
- elif test -f $$tst; then dir=; \
- else dir="$(srcdir)/"; fi; \
- if $(TESTS_ENVIRONMENT) $${dir}$$tst; then \
- all=`expr $$all + 1`; \
- case " $(XFAIL_TESTS) " in \
- *$$ws$$tst$$ws*) \
- xpass=`expr $$xpass + 1`; \
- failed=`expr $$failed + 1`; \
- echo "XPASS: $$tst"; \
- ;; \
- *) \
- echo "PASS: $$tst"; \
- ;; \
- esac; \
- elif test $$? -ne 77; then \
- all=`expr $$all + 1`; \
- case " $(XFAIL_TESTS) " in \
- *$$ws$$tst$$ws*) \
- xfail=`expr $$xfail + 1`; \
- echo "XFAIL: $$tst"; \
- ;; \
- *) \
- failed=`expr $$failed + 1`; \
- echo "FAIL: $$tst"; \
- ;; \
- esac; \
- else \
- skip=`expr $$skip + 1`; \
- echo "SKIP: $$tst"; \
- fi; \
- done; \
- if test "$$failed" -eq 0; then \
- if test "$$xfail" -eq 0; then \
- banner="All $$all tests passed"; \
- else \
- banner="All $$all tests behaved as expected ($$xfail expected failures)"; \
- fi; \
- else \
- if test "$$xpass" -eq 0; then \
- banner="$$failed of $$all tests failed"; \
- else \
- banner="$$failed of $$all tests did not behave as expected ($$xpass unexpected passes)"; \
- fi; \
- fi; \
- dashes="$$banner"; \
- skipped=""; \
- if test "$$skip" -ne 0; then \
- skipped="($$skip tests were not run)"; \
- test `echo "$$skipped" | wc -c` -le `echo "$$banner" | wc -c` || \
- dashes="$$skipped"; \
- fi; \
- report=""; \
- if test "$$failed" -ne 0 && test -n "$(PACKAGE_BUGREPORT)"; then \
- report="Please report to $(PACKAGE_BUGREPORT)"; \
- test `echo "$$report" | wc -c` -le `echo "$$banner" | wc -c` || \
- dashes="$$report"; \
- fi; \
- dashes=`echo "$$dashes" | sed s/./=/g`; \
- echo "$$dashes"; \
- echo "$$banner"; \
- test -z "$$skipped" || echo "$$skipped"; \
- test -z "$$report" || echo "$$report"; \
- echo "$$dashes"; \
- test "$$failed" -eq 0; \
- else :; fi
-
-distdir: $(DISTFILES)
- @srcdirstrip=`echo "$(srcdir)" | sed 's/[].[^$$\\*]/\\\\&/g'`; \
- topsrcdirstrip=`echo "$(top_srcdir)" | sed 's/[].[^$$\\*]/\\\\&/g'`; \
- list='$(DISTFILES)'; \
- dist_files=`for file in $$list; do echo $$file; done | \
- sed -e "s|^$$srcdirstrip/||;t" \
- -e "s|^$$topsrcdirstrip/|$(top_builddir)/|;t"`; \
- case $$dist_files in \
- */*) $(MKDIR_P) `echo "$$dist_files" | \
- sed '/\//!d;s|^|$(distdir)/|;s,/[^/]*$$,,' | \
- sort -u` ;; \
- esac; \
- for file in $$dist_files; do \
- if test -f $$file || test -d $$file; then d=.; else d=$(srcdir); fi; \
- if test -d $$d/$$file; then \
- dir=`echo "/$$file" | sed -e 's,/[^/]*$$,,'`; \
- if test -d $(srcdir)/$$file && test $$d != $(srcdir); then \
- cp -pR $(srcdir)/$$file $(distdir)$$dir || exit 1; \
- fi; \
- cp -pR $$d/$$file $(distdir)$$dir || exit 1; \
- else \
- test -f $(distdir)/$$file \
- || cp -p $$d/$$file $(distdir)/$$file \
- || exit 1; \
- fi; \
- done
-check-am: all-am
- $(MAKE) $(AM_MAKEFLAGS) check-TESTS
-check: check-am
-all-am: Makefile $(SCRIPTS)
-installdirs:
-install: install-am
-install-exec: install-exec-am
-install-data: install-data-am
-uninstall: uninstall-am
-
-install-am: all-am
- @$(MAKE) $(AM_MAKEFLAGS) install-exec-am install-data-am
-
-installcheck: installcheck-am
-install-strip:
- $(MAKE) $(AM_MAKEFLAGS) INSTALL_PROGRAM="$(INSTALL_STRIP_PROGRAM)" \
- install_sh_PROGRAM="$(INSTALL_STRIP_PROGRAM)" INSTALL_STRIP_FLAG=-s \
- `test -z '$(STRIP)' || \
- echo "INSTALL_PROGRAM_ENV=STRIPPROG='$(STRIP)'"` install
-mostlyclean-generic:
-
-clean-generic:
- -test -z "$(CLEANFILES)" || rm -f $(CLEANFILES)
-
-distclean-generic:
- -test -z "$(CONFIG_CLEAN_FILES)" || rm -f $(CONFIG_CLEAN_FILES)
-
-maintainer-clean-generic:
- @echo "This command is intended for maintainers to use"
- @echo "it deletes files that may require special tools to rebuild."
- -test -z "$(MAINTAINERCLEANFILES)" || rm -f $(MAINTAINERCLEANFILES)
-clean: clean-am
-
-clean-am: clean-generic mostlyclean-am
-
-distclean: distclean-am
- -rm -f Makefile
-distclean-am: clean-am distclean-generic
-
-dvi: dvi-am
-
-dvi-am:
-
-html: html-am
-
-info: info-am
-
-info-am:
-
-install-data-am:
-
-install-dvi: install-dvi-am
-
-install-exec-am:
-
-install-html: install-html-am
-
-install-info: install-info-am
-
-install-man:
-
-install-pdf: install-pdf-am
-
-install-ps: install-ps-am
-
-installcheck-am:
-
-maintainer-clean: maintainer-clean-am
- -rm -f Makefile
-maintainer-clean-am: distclean-am maintainer-clean-generic
-
-mostlyclean: mostlyclean-am
-
-mostlyclean-am: mostlyclean-generic
-
-pdf: pdf-am
-
-pdf-am:
-
-ps: ps-am
-
-ps-am:
-
-uninstall-am:
-
-.MAKE: install-am install-strip
-
-.PHONY: all all-am check check-TESTS check-am clean clean-generic \
- distclean distclean-generic distdir dvi dvi-am html html-am \
- info info-am install install-am install-data install-data-am \
- install-dvi install-dvi-am install-exec install-exec-am \
- install-html install-html-am install-info install-info-am \
- install-man install-pdf install-pdf-am install-ps \
- install-ps-am install-strip installcheck installcheck-am \
- installdirs maintainer-clean maintainer-clean-generic \
- mostlyclean mostlyclean-generic pdf pdf-am ps ps-am uninstall \
- uninstall-am
-
-$(srcdir)/$x-tests: $(mk_script) Test.pm Makefile.am
- test '$x' = test && prog=../../src/$x || prog=$x; \
- $(PERL) -I$(srcdir) -w -- $(mk_script) $(srcdir) $$prog > $@.n
- mv $@.n $@
- chmod 755 $@
-
-check: $(maint_gen)
-
-$(srcdir)/Makefile.am: ../Makefile.am.in Test.pm $(mk_script)
- rm -f $@ $@t
- sed -n '1,/^##test-files-begin/p' $(srcdir)/../Makefile.am.in > $@t
- tool=`echo $(subdir)|sed 's/^tests.//;s/-test//'`; \
- echo "x = $$tool" >> $@t
- $(PERL) -I$(srcdir) -w -- $(mk_script) $(srcdir) --list >> $@t
- sed -n '/^##test-files-end/,$$p' $(srcdir)/../Makefile.am.in >> $@t
- chmod -w $@t
- mv $@t $@
-# Tell versions [3.59,3.63) of GNU make to not export all variables.
-# Otherwise a system limit (for SysV at least) may be exceeded.
-.NOEXPORT:
diff --git a/tests/tail/Test.pm b/tests/tail/Test.pm
deleted file mode 100755
index 056f3ae..0000000
--- a/tests/tail/Test.pm
+++ /dev/null
@@ -1,144 +0,0 @@
-# Test "tail".
-
-# Copyright (C) 1997, 1998, 2002, 2004, 2005, 2006 Free Software
-# Foundation, Inc.
-
-# This program is free software; you can redistribute it and/or modify
-# it under the terms of the GNU General Public License as published by
-# the Free Software Foundation; either version 2 of the License, or
-# (at your option) any later version.
-
-# This program is distributed in the hope that it will be useful,
-# but WITHOUT ANY WARRANTY; without even the implied warranty of
-# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
-# GNU General Public License for more details.
-
-# You should have received a copy of the GNU General Public License
-# along with this program; if not, write to the Free Software
-# Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA
-# 02110-1301, USA.
-
-package Test;
-require 5.002;
-use strict;
-
-my @tv = (
-# test name, options, input, expected output, expected return code
-#
-['obs-plus-c1', '+2c', 'abcd', 'bcd', 0],
-['obs-plus-c2', '+8c', 'abcd', '', 0],
-['obs-c3', '-1c', 'abcd', 'd', 0],
-['obs-c4', '-9c', 'abcd', 'abcd', 0],
-['obs-c5', '-12c', 'x' . ('y' x 12) . 'z', ('y' x 11) . 'z', 0],
-
-
-['obs-l1', '-1l', 'x', 'x', 0],
-['obs-l2', '-1l', "x\ny\n", "y\n", 0],
-['obs-l3', '-1l', "x\ny", "y", 0],
-['obs-plus-l4', '+1l', "x\ny\n", "x\ny\n", 0],
-['obs-plus-l5', '+2l', "x\ny\n", "y\n", 0],
-
-# Same as -l tests, but without the `l'.
-['obs-1', '-1', 'x', 'x', 0],
-['obs-2', '-1', "x\ny\n", "y\n", 0],
-['obs-3', '-1', "x\ny", "y", 0],
-['obs-plus-4', '+1', "x\ny\n", "x\ny\n", 0],
-['obs-plus-5', '+2', "x\ny\n", "y\n", 0],
-
-# This is equivalent to +10c
-['obs-plus-x1', '+c', 'x' . ('y' x 10) . 'z', 'yyz', 0],
-# This is equivalent to +10l
-['obs-plus-x2', '+l', "x\n" . ("y\n" x 10) . 'z', "y\ny\nz", 0],
-# With no number, this is like -10l
-['obs-l', '-l', "x\n" . ("y\n" x 10) . 'z', ("y\n" x 9) . 'z', 0],
-
-['obs-b', '-b', "x\n" x (512 * 10 / 2 + 1), "x\n" x (512 * 10 / 2), 0],
-
-# This should get
-# `tail: cannot open `+cl' for reading: No such file or directory'
-['err-1', '+cl', '', '', 1],
-
-# This should get `tail: l: invalid number of bytes'
-['err-2', '-cl', '', '', 1],
-
-# This should get
-# `tail: cannot open `+2cz' for reading: No such file or directory'
-['err-3', '+2cz', '', '', 1],
-
-# This should get `tail: invalid option -- 2'
-['err-4', '-2cX', '', '', 1],
-
-# Since the number is larger than 2^64, this should provoke
-# the diagnostic: `tail: 99999999999999999999: invalid number of bytes'
-# on all systems... probably, for now, maybe.
-['err-5', '-c99999999999999999999', '', '', 1],
-['err-6', '-c', '', '', 1],
-
-# Same as -n 10
-['minus-1', '-', '', '', 0],
-['minus-2', '-', "x\n" . ("y\n" x 10) . 'z', ("y\n" x 9) . 'z', 0],
-
-['c-2', '-c 2', "abcd\n", "d\n", 0],
-['c-2-minus', '-c 2 --', "abcd\n", "d\n", 0],
-['c2', '-c2', "abcd\n", "d\n", 0],
-['c2-minus', '-c2 --', "abcd\n", "d\n", 0],
-
-['n-1', '-n 10', "x\n" . ("y\n" x 10) . 'z', ("y\n" x 9) . 'z', 0],
-['n-2', '-n -10', "x\n" . ("y\n" x 10) . 'z', ("y\n" x 9) . 'z', 0],
-['n-3', '-n +10', "x\n" . ("y\n" x 10) . 'z', "y\ny\nz", 0],
-
-# Accept +0 as synonym for +1.
-['n-4', '-n +0', "y\n" x 5, "y\n" x 5, 0],
-['n-4a', '-n +1', "y\n" x 5, "y\n" x 5, 0],
-
-# Note that -0 is *not* a synonym for -1.
-['n-5', '-n -0', "y\n" x 5, '', 0],
-['n-5a', '-n -1', "y\n" x 5, "y\n", 0],
-['n-5b', '-n 0', "y\n" x 5, '', 0],
-
-# With textutils-1.22, this failed.
-['f-pipe-1', '-f -n 1', "a\nb\n", "b\n", 0],
-);
-
-sub test_vector
-{
- my $t;
- foreach $t (@tv)
- {
- my ($test_name, $flags, $in, $exp, $ret) = @$t;
-
- if ($test_name =~ /^(obs-plus-|minus-)/)
- {
- $Test::env{$test_name} = ['_POSIX2_VERSION=199209'];
- }
- if ($test_name =~ /^(err-6|c-2)$/)
- {
- $Test::env{$test_name} = ['_POSIX2_VERSION=200112'];
- }
- if ($test_name =~ /^f-pipe-/)
- {
- $Test::env{$test_name} = ['POSIXLY_CORRECT=1'];
- }
-
- # If you run the minus* tests with a FILE arg they'd hang.
- # If you run the err-1 or err-3 tests with a FILE, they'd misinterpret
- # the arg unless we are using the obsolete form.
- if ($test_name =~ /^(minus|err-[13])/)
- {
- $Test::input_via{$test_name} = {REDIR => 0, PIPE => 0};
- }
- elsif ($test_name =~ /^f-/)
- {
- # Using redirection or a file would make this hang.
- $Test::input_via{$test_name} = {PIPE => 0};
- }
- else
- {
- $Test::input_via{$test_name} = {REDIR => 0, FILE => 0, PIPE => 0}
- }
- }
-
- return @tv;
-}
-
-1;
diff --git a/tests/tail/c-2-minus.I b/tests/tail/c-2-minus.I
deleted file mode 100644
index acbe86c..0000000
--- a/tests/tail/c-2-minus.I
+++ /dev/null
@@ -1 +0,0 @@
-abcd
diff --git a/tests/tail/c-2-minus.X b/tests/tail/c-2-minus.X
deleted file mode 100644
index 4bcfe98..0000000
--- a/tests/tail/c-2-minus.X
+++ /dev/null
@@ -1 +0,0 @@
-d
diff --git a/tests/tail/c-2.I b/tests/tail/c-2.I
deleted file mode 100644
index acbe86c..0000000
--- a/tests/tail/c-2.I
+++ /dev/null
@@ -1 +0,0 @@
-abcd
diff --git a/tests/tail/c-2.X b/tests/tail/c-2.X
deleted file mode 100644
index 4bcfe98..0000000
--- a/tests/tail/c-2.X
+++ /dev/null
@@ -1 +0,0 @@
-d
diff --git a/tests/tail/c2-minus.I b/tests/tail/c2-minus.I
deleted file mode 100644
index acbe86c..0000000
--- a/tests/tail/c2-minus.I
+++ /dev/null
@@ -1 +0,0 @@
-abcd
diff --git a/tests/tail/c2-minus.X b/tests/tail/c2-minus.X
deleted file mode 100644
index 4bcfe98..0000000
--- a/tests/tail/c2-minus.X
+++ /dev/null
@@ -1 +0,0 @@
-d
diff --git a/tests/tail/c2.I b/tests/tail/c2.I
deleted file mode 100644
index acbe86c..0000000
--- a/tests/tail/c2.I
+++ /dev/null
@@ -1 +0,0 @@
-abcd
diff --git a/tests/tail/c2.X b/tests/tail/c2.X
deleted file mode 100644
index 4bcfe98..0000000
--- a/tests/tail/c2.X
+++ /dev/null
@@ -1 +0,0 @@
-d
diff --git a/tests/tail/err-1.I b/tests/tail/err-1.I
deleted file mode 100644
index e69de29..0000000
--- a/tests/tail/err-1.I
+++ /dev/null
diff --git a/tests/tail/err-1.X b/tests/tail/err-1.X
deleted file mode 100644
index e69de29..0000000
--- a/tests/tail/err-1.X
+++ /dev/null
diff --git a/tests/tail/err-2.I b/tests/tail/err-2.I
deleted file mode 100644
index e69de29..0000000
--- a/tests/tail/err-2.I
+++ /dev/null
diff --git a/tests/tail/err-2.X b/tests/tail/err-2.X
deleted file mode 100644
index e69de29..0000000
--- a/tests/tail/err-2.X
+++ /dev/null
diff --git a/tests/tail/err-3.I b/tests/tail/err-3.I
deleted file mode 100644
index e69de29..0000000
--- a/tests/tail/err-3.I
+++ /dev/null
diff --git a/tests/tail/err-3.X b/tests/tail/err-3.X
deleted file mode 100644
index e69de29..0000000
--- a/tests/tail/err-3.X
+++ /dev/null
diff --git a/tests/tail/err-4.I b/tests/tail/err-4.I
deleted file mode 100644
index e69de29..0000000
--- a/tests/tail/err-4.I
+++ /dev/null
diff --git a/tests/tail/err-4.X b/tests/tail/err-4.X
deleted file mode 100644
index e69de29..0000000
--- a/tests/tail/err-4.X
+++ /dev/null
diff --git a/tests/tail/err-5.I b/tests/tail/err-5.I
deleted file mode 100644
index e69de29..0000000
--- a/tests/tail/err-5.I
+++ /dev/null
diff --git a/tests/tail/err-5.X b/tests/tail/err-5.X
deleted file mode 100644
index e69de29..0000000
--- a/tests/tail/err-5.X
+++ /dev/null
diff --git a/tests/tail/err-6.I b/tests/tail/err-6.I
deleted file mode 100644
index e69de29..0000000
--- a/tests/tail/err-6.I
+++ /dev/null
diff --git a/tests/tail/err-6.X b/tests/tail/err-6.X
deleted file mode 100644
index e69de29..0000000
--- a/tests/tail/err-6.X
+++ /dev/null
diff --git a/tests/tail/f-pipe-1.I b/tests/tail/f-pipe-1.I
deleted file mode 100644
index 422c2b7..0000000
--- a/tests/tail/f-pipe-1.I
+++ /dev/null
@@ -1,2 +0,0 @@
-a
-b
diff --git a/tests/tail/f-pipe-1.X b/tests/tail/f-pipe-1.X
deleted file mode 100644
index 6178079..0000000
--- a/tests/tail/f-pipe-1.X
+++ /dev/null
@@ -1 +0,0 @@
-b
diff --git a/tests/tail/minus-1.I b/tests/tail/minus-1.I
deleted file mode 100644
index e69de29..0000000
--- a/tests/tail/minus-1.I
+++ /dev/null
diff --git a/tests/tail/minus-1.X b/tests/tail/minus-1.X
deleted file mode 100644
index e69de29..0000000
--- a/tests/tail/minus-1.X
+++ /dev/null
diff --git a/tests/tail/minus-2.I b/tests/tail/minus-2.I
deleted file mode 100644
index 421ea50..0000000
--- a/tests/tail/minus-2.I
+++ /dev/null
@@ -1,12 +0,0 @@
-x
-y
-y
-y
-y
-y
-y
-y
-y
-y
-y
-z \ No newline at end of file
diff --git a/tests/tail/minus-2.X b/tests/tail/minus-2.X
deleted file mode 100644
index 3c66ff9..0000000
--- a/tests/tail/minus-2.X
+++ /dev/null
@@ -1,10 +0,0 @@
-y
-y
-y
-y
-y
-y
-y
-y
-y
-z \ No newline at end of file
diff --git a/tests/tail/n-1.I b/tests/tail/n-1.I
deleted file mode 100644
index 421ea50..0000000
--- a/tests/tail/n-1.I
+++ /dev/null
@@ -1,12 +0,0 @@
-x
-y
-y
-y
-y
-y
-y
-y
-y
-y
-y
-z \ No newline at end of file
diff --git a/tests/tail/n-1.X b/tests/tail/n-1.X
deleted file mode 100644
index 3c66ff9..0000000
--- a/tests/tail/n-1.X
+++ /dev/null
@@ -1,10 +0,0 @@
-y
-y
-y
-y
-y
-y
-y
-y
-y
-z \ No newline at end of file
diff --git a/tests/tail/n-2.I b/tests/tail/n-2.I
deleted file mode 100644
index 421ea50..0000000
--- a/tests/tail/n-2.I
+++ /dev/null
@@ -1,12 +0,0 @@
-x
-y
-y
-y
-y
-y
-y
-y
-y
-y
-y
-z \ No newline at end of file
diff --git a/tests/tail/n-2.X b/tests/tail/n-2.X
deleted file mode 100644
index 3c66ff9..0000000
--- a/tests/tail/n-2.X
+++ /dev/null
@@ -1,10 +0,0 @@
-y
-y
-y
-y
-y
-y
-y
-y
-y
-z \ No newline at end of file
diff --git a/tests/tail/n-3.I b/tests/tail/n-3.I
deleted file mode 100644
index 421ea50..0000000
--- a/tests/tail/n-3.I
+++ /dev/null
@@ -1,12 +0,0 @@
-x
-y
-y
-y
-y
-y
-y
-y
-y
-y
-y
-z \ No newline at end of file
diff --git a/tests/tail/n-3.X b/tests/tail/n-3.X
deleted file mode 100644
index 38037e0..0000000
--- a/tests/tail/n-3.X
+++ /dev/null
@@ -1,3 +0,0 @@
-y
-y
-z \ No newline at end of file
diff --git a/tests/tail/n-4.I b/tests/tail/n-4.I
deleted file mode 100644
index 57dc54c..0000000
--- a/tests/tail/n-4.I
+++ /dev/null
@@ -1,5 +0,0 @@
-y
-y
-y
-y
-y
diff --git a/tests/tail/n-4.X b/tests/tail/n-4.X
deleted file mode 100644
index 57dc54c..0000000
--- a/tests/tail/n-4.X
+++ /dev/null
@@ -1,5 +0,0 @@
-y
-y
-y
-y
-y
diff --git a/tests/tail/n-4a.I b/tests/tail/n-4a.I
deleted file mode 100644
index 57dc54c..0000000
--- a/tests/tail/n-4a.I
+++ /dev/null
@@ -1,5 +0,0 @@
-y
-y
-y
-y
-y
diff --git a/tests/tail/n-4a.X b/tests/tail/n-4a.X
deleted file mode 100644
index 57dc54c..0000000
--- a/tests/tail/n-4a.X
+++ /dev/null
@@ -1,5 +0,0 @@
-y
-y
-y
-y
-y
diff --git a/tests/tail/n-5.I b/tests/tail/n-5.I
deleted file mode 100644
index 57dc54c..0000000
--- a/tests/tail/n-5.I
+++ /dev/null
@@ -1,5 +0,0 @@
-y
-y
-y
-y
-y
diff --git a/tests/tail/n-5.X b/tests/tail/n-5.X
deleted file mode 100644
index e69de29..0000000
--- a/tests/tail/n-5.X
+++ /dev/null
diff --git a/tests/tail/n-5a.I b/tests/tail/n-5a.I
deleted file mode 100644
index 57dc54c..0000000
--- a/tests/tail/n-5a.I
+++ /dev/null
@@ -1,5 +0,0 @@
-y
-y
-y
-y
-y
diff --git a/tests/tail/n-5a.X b/tests/tail/n-5a.X
deleted file mode 100644
index 975fbec..0000000
--- a/tests/tail/n-5a.X
+++ /dev/null
@@ -1 +0,0 @@
-y
diff --git a/tests/tail/n-5b.I b/tests/tail/n-5b.I
deleted file mode 100644
index 57dc54c..0000000
--- a/tests/tail/n-5b.I
+++ /dev/null
@@ -1,5 +0,0 @@
-y
-y
-y
-y
-y
diff --git a/tests/tail/n-5b.X b/tests/tail/n-5b.X
deleted file mode 100644
index e69de29..0000000
--- a/tests/tail/n-5b.X
+++ /dev/null
diff --git a/tests/tail/obs-1.I b/tests/tail/obs-1.I
deleted file mode 100644
index c1b0730..0000000
--- a/tests/tail/obs-1.I
+++ /dev/null
@@ -1 +0,0 @@
-x \ No newline at end of file
diff --git a/tests/tail/obs-1.X b/tests/tail/obs-1.X
deleted file mode 100644
index c1b0730..0000000
--- a/tests/tail/obs-1.X
+++ /dev/null
@@ -1 +0,0 @@
-x \ No newline at end of file
diff --git a/tests/tail/obs-2.I b/tests/tail/obs-2.I
deleted file mode 100644
index b77b4eb..0000000
--- a/tests/tail/obs-2.I
+++ /dev/null
@@ -1,2 +0,0 @@
-x
-y
diff --git a/tests/tail/obs-2.X b/tests/tail/obs-2.X
deleted file mode 100644
index 975fbec..0000000
--- a/tests/tail/obs-2.X
+++ /dev/null
@@ -1 +0,0 @@
-y
diff --git a/tests/tail/obs-3.I b/tests/tail/obs-3.I
deleted file mode 100644
index 1b32298..0000000
--- a/tests/tail/obs-3.I
+++ /dev/null
@@ -1,2 +0,0 @@
-x
-y \ No newline at end of file
diff --git a/tests/tail/obs-3.X b/tests/tail/obs-3.X
deleted file mode 100644
index e25f181..0000000
--- a/tests/tail/obs-3.X
+++ /dev/null
@@ -1 +0,0 @@
-y \ No newline at end of file
diff --git a/tests/tail/obs-b.I b/tests/tail/obs-b.I
deleted file mode 100644
index c50e567..0000000
--- a/tests/tail/obs-b.I
+++ /dev/null
@@ -1,2561 +0,0 @@
-x
-x
-x
-x
-x
-x
-x
-x
-x
-x
-x
-x
-x
-x
-x
-x
-x
-x
-x
-x
-x
-x
-x
-x
-x
-x
-x
-x
-x
-x
-x
-x
-x
-x
-x
-x
-x
-x
-x
-x
-x
-x
-x
-x
-x
-x
-x
-x
-x
-x
-x
-x
-x
-x
-x
-x
-x
-x
-x
-x
-x
-x
-x
-x
-x
-x
-x
-x
-x
-x
-x
-x
-x
-x
-x
-x
-x
-x
-x
-x
-x
-x
-x
-x
-x
-x
-x
-x
-x
-x
-x
-x
-x
-x
-x
-x
-x
-x
-x
-x
-x
-x
-x
-x
-x
-x
-x
-x
-x
-x
-x
-x
-x
-x
-x
-x
-x
-x
-x
-x
-x
-x
-x
-x
-x
-x
-x
-x
-x
-x
-x
-x
-x
-x
-x
-x
-x
-x
-x
-x
-x
-x
-x
-x
-x
-x
-x
-x
-x
-x
-x
-x
-x
-x
-x
-x
-x
-x
-x
-x
-x
-x
-x
-x
-x
-x
-x
-x
-x
-x
-x
-x
-x
-x
-x
-x
-x
-x
-x
-x
-x
-x
-x
-x
-x
-x
-x
-x
-x
-x
-x
-x
-x
-x
-x
-x
-x
-x
-x
-x
-x
-x
-x
-x
-x
-x
-x
-x
-x
-x
-x
-x
-x
-x
-x
-x
-x
-x
-x
-x
-x
-x
-x
-x
-x
-x
-x
-x
-x
-x
-x
-x
-x
-x
-x
-x
-x
-x
-x
-x
-x
-x
-x
-x
-x
-x
-x
-x
-x
-x
-x
-x
-x
-x
-x
-x
-x
-x
-x
-x
-x
-x
-x
-x
-x
-x
-x
-x
-x
-x
-x
-x
-x
-x
-x
-x
-x
-x
-x
-x
-x
-x
-x
-x
-x
-x
-x
-x
-x
-x
-x
-x
-x
-x
-x
-x
-x
-x
-x
-x
-x
-x
-x
-x
-x
-x
-x
-x
-x
-x
-x
-x
-x
-x
-x
-x
-x
-x
-x
-x
-x
-x
-x
-x
-x
-x
-x
-x
-x
-x
-x
-x
-x
-x
-x
-x
-x
-x
-x
-x
-x
-x
-x
-x
-x
-x
-x
-x
-x
-x
-x
-x
-x
-x
-x
-x
-x
-x
-x
-x
-x
-x
-x
-x
-x
-x
-x
-x
-x
-x
-x
-x
-x
-x
-x
-x
-x
-x
-x
-x
-x
-x
-x
-x
-x
-x
-x
-x
-x
-x
-x
-x
-x
-x
-x
-x
-x
-x
-x
-x
-x
-x
-x
-x
-x
-x
-x
-x
-x
-x
-x
-x
-x
-x
-x
-x
-x
-x
-x
-x
-x
-x
-x
-x
-x
-x
-x
-x
-x
-x
-x
-x
-x
-x
-x
-x
-x
-x
-x
-x
-x
-x
-x
-x
-x
-x
-x
-x
-x
-x
-x
-x
-x
-x
-x
-x
-x
-x
-x
-x
-x
-x
-x
-x
-x
-x
-x
-x
-x
-x
-x
-x
-x
-x
-x
-x
-x
-x
-x
-x
-x
-x
-x
-x
-x
-x
-x
-x
-x
-x
-x
-x
-x
-x
-x
-x
-x
-x
-x
-x
-x
-x
-x
-x
-x
-x
-x
-x
-x
-x
-x
-x
-x
-x
-x
-x
-x
-x
-x
-x
-x
-x
-x
-x
-x
-x
-x
-x
-x
-x
-x
-x
-x
-x
-x
-x
-x
-x
-x
-x
-x
-x
-x
-x
-x
-x
-x
-x
-x
-x
-x
-x
-x
-x
-x
-x
-x
-x
-x
-x
-x
-x
-x
-x
-x
-x
-x
-x
-x
-x
-x
-x
-x
-x
-x
-x
-x
-x
-x
-x
-x
-x
-x
-x
-x
-x
-x
-x
-x
-x
-x
-x
-x
-x
-x
-x
-x
-x
-x
-x
-x
-x
-x
-x
-x
-x
-x
-x
-x
-x
-x
-x
-x
-x
-x
-x
-x
-x
-x
-x
-x
-x
-x
-x
-x
-x
-x
-x
-x
-x
-x
-x
-x
-x
-x
-x
-x
-x
-x
-x
-x
-x
-x
-x
-x
-x
-x
-x
-x
-x
-x
-x
-x
-x
-x
-x
-x
-x
-x
-x
-x
-x
-x
-x
-x
-x
-x
-x
-x
-x
-x
-x
-x
-x
-x
-x
-x
-x
-x
-x
-x
-x
-x
-x
-x
-x
-x
-x
-x
-x
-x
-x
-x
-x
-x
-x
-x
-x
-x
-x
-x
-x
-x
-x
-x
-x
-x
-x
-x
-x
-x
-x
-x
-x
-x
-x
-x
-x
-x
-x
-x
-x
-x
-x
-x
-x
-x
-x
-x
-x
-x
-x
-x
-x
-x
-x
-x
-x
-x
-x
-x
-x
-x
-x
-x
-x
-x
-x
-x
-x
-x
-x
-x
-x
-x
-x
-x
-x
-x
-x
-x
-x
-x
-x
-x
-x
-x
-x
-x
-x
-x
-x
-x
-x
-x
-x
-x
-x
-x
-x
-x
-x
-x
-x
-x
-x
-x
-x
-x
-x
-x
-x
-x
-x
-x
-x
-x
-x
-x
-x
-x
-x
-x
-x
-x
-x
-x
-x
-x
-x
-x
-x
-x
-x
-x
-x
-x
-x
-x
-x
-x
-x
-x
-x
-x
-x
-x
-x
-x
-x
-x
-x
-x
-x
-x
-x
-x
-x
-x
-x
-x
-x
-x
-x
-x
-x
-x
-x
-x
-x
-x
-x
-x
-x
-x
-x
-x
-x
-x
-x
-x
-x
-x
-x
-x
-x
-x
-x
-x
-x
-x
-x
-x
-x
-x
-x
-x
-x
-x
-x
-x
-x
-x
-x
-x
-x
-x
-x
-x
-x
-x
-x
-x
-x
-x
-x
-x
-x
-x
-x
-x
-x
-x
-x
-x
-x
-x
-x
-x
-x
-x
-x
-x
-x
-x
-x
-x
-x
-x
-x
-x
-x
-x
-x
-x
-x
-x
-x
-x
-x
-x
-x
-x
-x
-x
-x
-x
-x
-x
-x
-x
-x
-x
-x
-x
-x
-x
-x
-x
-x
-x
-x
-x
-x
-x
-x
-x
-x
-x
-x
-x
-x
-x
-x
-x
-x
-x
-x
-x
-x
-x
-x
-x
-x
-x
-x
-x
-x
-x
-x
-x
-x
-x
-x
-x
-x
-x
-x
-x
-x
-x
-x
-x
-x
-x
-x
-x
-x
-x
-x
-x
-x
-x
-x
-x
-x
-x
-x
-x
-x
-x
-x
-x
-x
-x
-x
-x
-x
-x
-x
-x
-x
-x
-x
-x
-x
-x
-x
-x
-x
-x
-x
-x
-x
-x
-x
-x
-x
-x
-x
-x
-x
-x
-x
-x
-x
-x
-x
-x
-x
-x
-x
-x
-x
-x
-x
-x
-x
-x
-x
-x
-x
-x
-x
-x
-x
-x
-x
-x
-x
-x
-x
-x
-x
-x
-x
-x
-x
-x
-x
-x
-x
-x
-x
-x
-x
-x
-x
-x
-x
-x
-x
-x
-x
-x
-x
-x
-x
-x
-x
-x
-x
-x
-x
-x
-x
-x
-x
-x
-x
-x
-x
-x
-x
-x
-x
-x
-x
-x
-x
-x
-x
-x
-x
-x
-x
-x
-x
-x
-x
-x
-x
-x
-x
-x
-x
-x
-x
-x
-x
-x
-x
-x
-x
-x
-x
-x
-x
-x
-x
-x
-x
-x
-x
-x
-x
-x
-x
-x
-x
-x
-x
-x
-x
-x
-x
-x
-x
-x
-x
-x
-x
-x
-x
-x
-x
-x
-x
-x
-x
-x
-x
-x
-x
-x
-x
-x
-x
-x
-x
-x
-x
-x
-x
-x
-x
-x
-x
-x
-x
-x
-x
-x
-x
-x
-x
-x
-x
-x
-x
-x
-x
-x
-x
-x
-x
-x
-x
-x
-x
-x
-x
-x
-x
-x
-x
-x
-x
-x
-x
-x
-x
-x
-x
-x
-x
-x
-x
-x
-x
-x
-x
-x
-x
-x
-x
-x
-x
-x
-x
-x
-x
-x
-x
-x
-x
-x
-x
-x
-x
-x
-x
-x
-x
-x
-x
-x
-x
-x
-x
-x
-x
-x
-x
-x
-x
-x
-x
-x
-x
-x
-x
-x
-x
-x
-x
-x
-x
-x
-x
-x
-x
-x
-x
-x
-x
-x
-x
-x
-x
-x
-x
-x
-x
-x
-x
-x
-x
-x
-x
-x
-x
-x
-x
-x
-x
-x
-x
-x
-x
-x
-x
-x
-x
-x
-x
-x
-x
-x
-x
-x
-x
-x
-x
-x
-x
-x
-x
-x
-x
-x
-x
-x
-x
-x
-x
-x
-x
-x
-x
-x
-x
-x
-x
-x
-x
-x
-x
-x
-x
-x
-x
-x
-x
-x
-x
-x
-x
-x
-x
-x
-x
-x
-x
-x
-x
-x
-x
-x
-x
-x
-x
-x
-x
-x
-x
-x
-x
-x
-x
-x
-x
-x
-x
-x
-x
-x
-x
-x
-x
-x
-x
-x
-x
-x
-x
-x
-x
-x
-x
-x
-x
-x
-x
-x
-x
-x
-x
-x
-x
-x
-x
-x
-x
-x
-x
-x
-x
-x
-x
-x
-x
-x
-x
-x
-x
-x
-x
-x
-x
-x
-x
-x
-x
-x
-x
-x
-x
-x
-x
-x
-x
-x
-x
-x
-x
-x
-x
-x
-x
-x
-x
-x
-x
-x
-x
-x
-x
-x
-x
-x
-x
-x
-x
-x
-x
-x
-x
-x
-x
-x
-x
-x
-x
-x
-x
-x
-x
-x
-x
-x
-x
-x
-x
-x
-x
-x
-x
-x
-x
-x
-x
-x
-x
-x
-x
-x
-x
-x
-x
-x
-x
-x
-x
-x
-x
-x
-x
-x
-x
-x
-x
-x
-x
-x
-x
-x
-x
-x
-x
-x
-x
-x
-x
-x
-x
-x
-x
-x
-x
-x
-x
-x
-x
-x
-x
-x
-x
-x
-x
-x
-x
-x
-x
-x
-x
-x
-x
-x
-x
-x
-x
-x
-x
-x
-x
-x
-x
-x
-x
-x
-x
-x
-x
-x
-x
-x
-x
-x
-x
-x
-x
-x
-x
-x
-x
-x
-x
-x
-x
-x
-x
-x
-x
-x
-x
-x
-x
-x
-x
-x
-x
-x
-x
-x
-x
-x
-x
-x
-x
-x
-x
-x
-x
-x
-x
-x
-x
-x
-x
-x
-x
-x
-x
-x
-x
-x
-x
-x
-x
-x
-x
-x
-x
-x
-x
-x
-x
-x
-x
-x
-x
-x
-x
-x
-x
-x
-x
-x
-x
-x
-x
-x
-x
-x
-x
-x
-x
-x
-x
-x
-x
-x
-x
-x
-x
-x
-x
-x
-x
-x
-x
-x
-x
-x
-x
-x
-x
-x
-x
-x
-x
-x
-x
-x
-x
-x
-x
-x
-x
-x
-x
-x
-x
-x
-x
-x
-x
-x
-x
-x
-x
-x
-x
-x
-x
-x
-x
-x
-x
-x
-x
-x
-x
-x
-x
-x
-x
-x
-x
-x
-x
-x
-x
-x
-x
-x
-x
-x
-x
-x
-x
-x
-x
-x
-x
-x
-x
-x
-x
-x
-x
-x
-x
-x
-x
-x
-x
-x
-x
-x
-x
-x
-x
-x
-x
-x
-x
-x
-x
-x
-x
-x
-x
-x
-x
-x
-x
-x
-x
-x
-x
-x
-x
-x
-x
-x
-x
-x
-x
-x
-x
-x
-x
-x
-x
-x
-x
-x
-x
-x
-x
-x
-x
-x
-x
-x
-x
-x
-x
-x
-x
-x
-x
-x
-x
-x
-x
-x
-x
-x
-x
-x
-x
-x
-x
-x
-x
-x
-x
-x
-x
-x
-x
-x
-x
-x
-x
-x
-x
-x
-x
-x
-x
-x
-x
-x
-x
-x
-x
-x
-x
-x
-x
-x
-x
-x
-x
-x
-x
-x
-x
-x
-x
-x
-x
-x
-x
-x
-x
-x
-x
-x
-x
-x
-x
-x
-x
-x
-x
-x
-x
-x
-x
-x
-x
-x
-x
-x
-x
-x
-x
-x
-x
-x
-x
-x
-x
-x
-x
-x
-x
-x
-x
-x
-x
-x
-x
-x
-x
-x
-x
-x
-x
-x
-x
-x
-x
-x
-x
-x
-x
-x
-x
-x
-x
-x
-x
-x
-x
-x
-x
-x
-x
-x
-x
-x
-x
-x
-x
-x
-x
-x
-x
-x
-x
-x
-x
-x
-x
-x
-x
-x
-x
-x
-x
-x
-x
-x
-x
-x
-x
-x
-x
-x
-x
-x
-x
-x
-x
-x
-x
-x
-x
-x
-x
-x
-x
-x
-x
-x
-x
-x
-x
-x
-x
-x
-x
-x
-x
-x
-x
-x
-x
-x
-x
-x
-x
-x
-x
-x
-x
-x
-x
-x
-x
-x
-x
-x
-x
-x
-x
-x
-x
-x
-x
-x
-x
-x
-x
-x
-x
-x
-x
-x
-x
-x
-x
-x
-x
-x
-x
-x
-x
-x
-x
-x
-x
-x
-x
-x
-x
-x
-x
-x
-x
-x
-x
-x
-x
-x
-x
-x
-x
-x
-x
-x
-x
-x
-x
-x
-x
-x
-x
-x
-x
-x
-x
-x
-x
-x
-x
-x
-x
-x
-x
-x
-x
-x
-x
-x
-x
-x
-x
-x
-x
-x
-x
-x
-x
-x
-x
-x
-x
-x
-x
-x
-x
-x
-x
-x
-x
-x
-x
-x
-x
-x
-x
-x
-x
-x
-x
-x
-x
-x
-x
-x
-x
-x
-x
-x
-x
-x
-x
-x
-x
-x
-x
-x
-x
-x
-x
-x
-x
-x
-x
-x
-x
-x
-x
-x
-x
-x
-x
-x
-x
-x
-x
-x
-x
-x
-x
-x
-x
-x
-x
-x
-x
-x
-x
-x
-x
-x
-x
-x
-x
-x
-x
-x
-x
-x
-x
-x
-x
-x
-x
-x
-x
-x
-x
-x
-x
-x
-x
-x
-x
-x
-x
-x
-x
-x
-x
-x
-x
-x
-x
-x
-x
-x
-x
-x
-x
-x
-x
-x
-x
-x
-x
-x
-x
-x
-x
-x
-x
-x
-x
-x
-x
-x
-x
-x
-x
-x
-x
-x
-x
-x
-x
-x
-x
-x
-x
-x
-x
-x
-x
-x
-x
-x
-x
-x
-x
-x
-x
-x
-x
-x
-x
-x
-x
-x
-x
-x
-x
-x
-x
-x
-x
-x
-x
-x
-x
-x
-x
-x
-x
-x
-x
-x
-x
-x
-x
-x
-x
-x
-x
-x
-x
-x
-x
-x
-x
-x
-x
-x
-x
-x
-x
-x
-x
-x
-x
-x
-x
-x
-x
-x
-x
-x
-x
-x
-x
-x
-x
-x
-x
-x
-x
-x
-x
-x
-x
-x
-x
-x
-x
-x
-x
-x
-x
-x
-x
-x
-x
-x
-x
-x
-x
-x
-x
-x
-x
-x
-x
-x
-x
-x
-x
-x
-x
-x
-x
-x
-x
-x
-x
-x
-x
-x
-x
-x
-x
-x
-x
-x
-x
-x
-x
-x
-x
-x
-x
-x
-x
-x
-x
-x
-x
-x
-x
-x
-x
-x
-x
-x
-x
-x
-x
-x
-x
-x
-x
-x
-x
-x
-x
-x
-x
-x
-x
-x
-x
-x
-x
-x
-x
-x
-x
-x
-x
-x
-x
-x
-x
-x
-x
-x
-x
-x
-x
-x
-x
-x
-x
-x
-x
-x
-x
-x
-x
-x
-x
-x
-x
-x
-x
-x
-x
-x
-x
-x
-x
-x
-x
-x
-x
-x
-x
-x
-x
-x
-x
-x
-x
-x
-x
-x
-x
-x
-x
-x
-x
-x
-x
-x
-x
-x
-x
-x
-x
-x
-x
-x
-x
-x
-x
-x
-x
-x
-x
-x
-x
-x
-x
-x
-x
-x
-x
-x
-x
-x
-x
-x
-x
-x
-x
-x
-x
-x
-x
-x
-x
-x
-x
-x
-x
-x
-x
-x
-x
-x
-x
-x
-x
-x
-x
-x
-x
-x
-x
-x
-x
-x
-x
-x
-x
-x
-x
-x
-x
-x
-x
-x
-x
-x
-x
-x
-x
-x
-x
-x
-x
-x
-x
-x
-x
-x
-x
-x
-x
-x
-x
-x
-x
-x
-x
-x
-x
-x
-x
-x
-x
-x
-x
-x
-x
-x
-x
-x
-x
-x
-x
-x
-x
-x
-x
-x
-x
-x
-x
-x
diff --git a/tests/tail/obs-b.X b/tests/tail/obs-b.X
deleted file mode 100644
index 33c63e6..0000000
--- a/tests/tail/obs-b.X
+++ /dev/null
@@ -1,2560 +0,0 @@
-x
-x
-x
-x
-x
-x
-x
-x
-x
-x
-x
-x
-x
-x
-x
-x
-x
-x
-x
-x
-x
-x
-x
-x
-x
-x
-x
-x
-x
-x
-x
-x
-x
-x
-x
-x
-x
-x
-x
-x
-x
-x
-x
-x
-x
-x
-x
-x
-x
-x
-x
-x
-x
-x
-x
-x
-x
-x
-x
-x
-x
-x
-x
-x
-x
-x
-x
-x
-x
-x
-x
-x
-x
-x
-x
-x
-x
-x
-x
-x
-x
-x
-x
-x
-x
-x
-x
-x
-x
-x
-x
-x
-x
-x
-x
-x
-x
-x
-x
-x
-x
-x
-x
-x
-x
-x
-x
-x
-x
-x
-x
-x
-x
-x
-x
-x
-x
-x
-x
-x
-x
-x
-x
-x
-x
-x
-x
-x
-x
-x
-x
-x
-x
-x
-x
-x
-x
-x
-x
-x
-x
-x
-x
-x
-x
-x
-x
-x
-x
-x
-x
-x
-x
-x
-x
-x
-x
-x
-x
-x
-x
-x
-x
-x
-x
-x
-x
-x
-x
-x
-x
-x
-x
-x
-x
-x
-x
-x
-x
-x
-x
-x
-x
-x
-x
-x
-x
-x
-x
-x
-x
-x
-x
-x
-x
-x
-x
-x
-x
-x
-x
-x
-x
-x
-x
-x
-x
-x
-x
-x
-x
-x
-x
-x
-x
-x
-x
-x
-x
-x
-x
-x
-x
-x
-x
-x
-x
-x
-x
-x
-x
-x
-x
-x
-x
-x
-x
-x
-x
-x
-x
-x
-x
-x
-x
-x
-x
-x
-x
-x
-x
-x
-x
-x
-x
-x
-x
-x
-x
-x
-x
-x
-x
-x
-x
-x
-x
-x
-x
-x
-x
-x
-x
-x
-x
-x
-x
-x
-x
-x
-x
-x
-x
-x
-x
-x
-x
-x
-x
-x
-x
-x
-x
-x
-x
-x
-x
-x
-x
-x
-x
-x
-x
-x
-x
-x
-x
-x
-x
-x
-x
-x
-x
-x
-x
-x
-x
-x
-x
-x
-x
-x
-x
-x
-x
-x
-x
-x
-x
-x
-x
-x
-x
-x
-x
-x
-x
-x
-x
-x
-x
-x
-x
-x
-x
-x
-x
-x
-x
-x
-x
-x
-x
-x
-x
-x
-x
-x
-x
-x
-x
-x
-x
-x
-x
-x
-x
-x
-x
-x
-x
-x
-x
-x
-x
-x
-x
-x
-x
-x
-x
-x
-x
-x
-x
-x
-x
-x
-x
-x
-x
-x
-x
-x
-x
-x
-x
-x
-x
-x
-x
-x
-x
-x
-x
-x
-x
-x
-x
-x
-x
-x
-x
-x
-x
-x
-x
-x
-x
-x
-x
-x
-x
-x
-x
-x
-x
-x
-x
-x
-x
-x
-x
-x
-x
-x
-x
-x
-x
-x
-x
-x
-x
-x
-x
-x
-x
-x
-x
-x
-x
-x
-x
-x
-x
-x
-x
-x
-x
-x
-x
-x
-x
-x
-x
-x
-x
-x
-x
-x
-x
-x
-x
-x
-x
-x
-x
-x
-x
-x
-x
-x
-x
-x
-x
-x
-x
-x
-x
-x
-x
-x
-x
-x
-x
-x
-x
-x
-x
-x
-x
-x
-x
-x
-x
-x
-x
-x
-x
-x
-x
-x
-x
-x
-x
-x
-x
-x
-x
-x
-x
-x
-x
-x
-x
-x
-x
-x
-x
-x
-x
-x
-x
-x
-x
-x
-x
-x
-x
-x
-x
-x
-x
-x
-x
-x
-x
-x
-x
-x
-x
-x
-x
-x
-x
-x
-x
-x
-x
-x
-x
-x
-x
-x
-x
-x
-x
-x
-x
-x
-x
-x
-x
-x
-x
-x
-x
-x
-x
-x
-x
-x
-x
-x
-x
-x
-x
-x
-x
-x
-x
-x
-x
-x
-x
-x
-x
-x
-x
-x
-x
-x
-x
-x
-x
-x
-x
-x
-x
-x
-x
-x
-x
-x
-x
-x
-x
-x
-x
-x
-x
-x
-x
-x
-x
-x
-x
-x
-x
-x
-x
-x
-x
-x
-x
-x
-x
-x
-x
-x
-x
-x
-x
-x
-x
-x
-x
-x
-x
-x
-x
-x
-x
-x
-x
-x
-x
-x
-x
-x
-x
-x
-x
-x
-x
-x
-x
-x
-x
-x
-x
-x
-x
-x
-x
-x
-x
-x
-x
-x
-x
-x
-x
-x
-x
-x
-x
-x
-x
-x
-x
-x
-x
-x
-x
-x
-x
-x
-x
-x
-x
-x
-x
-x
-x
-x
-x
-x
-x
-x
-x
-x
-x
-x
-x
-x
-x
-x
-x
-x
-x
-x
-x
-x
-x
-x
-x
-x
-x
-x
-x
-x
-x
-x
-x
-x
-x
-x
-x
-x
-x
-x
-x
-x
-x
-x
-x
-x
-x
-x
-x
-x
-x
-x
-x
-x
-x
-x
-x
-x
-x
-x
-x
-x
-x
-x
-x
-x
-x
-x
-x
-x
-x
-x
-x
-x
-x
-x
-x
-x
-x
-x
-x
-x
-x
-x
-x
-x
-x
-x
-x
-x
-x
-x
-x
-x
-x
-x
-x
-x
-x
-x
-x
-x
-x
-x
-x
-x
-x
-x
-x
-x
-x
-x
-x
-x
-x
-x
-x
-x
-x
-x
-x
-x
-x
-x
-x
-x
-x
-x
-x
-x
-x
-x
-x
-x
-x
-x
-x
-x
-x
-x
-x
-x
-x
-x
-x
-x
-x
-x
-x
-x
-x
-x
-x
-x
-x
-x
-x
-x
-x
-x
-x
-x
-x
-x
-x
-x
-x
-x
-x
-x
-x
-x
-x
-x
-x
-x
-x
-x
-x
-x
-x
-x
-x
-x
-x
-x
-x
-x
-x
-x
-x
-x
-x
-x
-x
-x
-x
-x
-x
-x
-x
-x
-x
-x
-x
-x
-x
-x
-x
-x
-x
-x
-x
-x
-x
-x
-x
-x
-x
-x
-x
-x
-x
-x
-x
-x
-x
-x
-x
-x
-x
-x
-x
-x
-x
-x
-x
-x
-x
-x
-x
-x
-x
-x
-x
-x
-x
-x
-x
-x
-x
-x
-x
-x
-x
-x
-x
-x
-x
-x
-x
-x
-x
-x
-x
-x
-x
-x
-x
-x
-x
-x
-x
-x
-x
-x
-x
-x
-x
-x
-x
-x
-x
-x
-x
-x
-x
-x
-x
-x
-x
-x
-x
-x
-x
-x
-x
-x
-x
-x
-x
-x
-x
-x
-x
-x
-x
-x
-x
-x
-x
-x
-x
-x
-x
-x
-x
-x
-x
-x
-x
-x
-x
-x
-x
-x
-x
-x
-x
-x
-x
-x
-x
-x
-x
-x
-x
-x
-x
-x
-x
-x
-x
-x
-x
-x
-x
-x
-x
-x
-x
-x
-x
-x
-x
-x
-x
-x
-x
-x
-x
-x
-x
-x
-x
-x
-x
-x
-x
-x
-x
-x
-x
-x
-x
-x
-x
-x
-x
-x
-x
-x
-x
-x
-x
-x
-x
-x
-x
-x
-x
-x
-x
-x
-x
-x
-x
-x
-x
-x
-x
-x
-x
-x
-x
-x
-x
-x
-x
-x
-x
-x
-x
-x
-x
-x
-x
-x
-x
-x
-x
-x
-x
-x
-x
-x
-x
-x
-x
-x
-x
-x
-x
-x
-x
-x
-x
-x
-x
-x
-x
-x
-x
-x
-x
-x
-x
-x
-x
-x
-x
-x
-x
-x
-x
-x
-x
-x
-x
-x
-x
-x
-x
-x
-x
-x
-x
-x
-x
-x
-x
-x
-x
-x
-x
-x
-x
-x
-x
-x
-x
-x
-x
-x
-x
-x
-x
-x
-x
-x
-x
-x
-x
-x
-x
-x
-x
-x
-x
-x
-x
-x
-x
-x
-x
-x
-x
-x
-x
-x
-x
-x
-x
-x
-x
-x
-x
-x
-x
-x
-x
-x
-x
-x
-x
-x
-x
-x
-x
-x
-x
-x
-x
-x
-x
-x
-x
-x
-x
-x
-x
-x
-x
-x
-x
-x
-x
-x
-x
-x
-x
-x
-x
-x
-x
-x
-x
-x
-x
-x
-x
-x
-x
-x
-x
-x
-x
-x
-x
-x
-x
-x
-x
-x
-x
-x
-x
-x
-x
-x
-x
-x
-x
-x
-x
-x
-x
-x
-x
-x
-x
-x
-x
-x
-x
-x
-x
-x
-x
-x
-x
-x
-x
-x
-x
-x
-x
-x
-x
-x
-x
-x
-x
-x
-x
-x
-x
-x
-x
-x
-x
-x
-x
-x
-x
-x
-x
-x
-x
-x
-x
-x
-x
-x
-x
-x
-x
-x
-x
-x
-x
-x
-x
-x
-x
-x
-x
-x
-x
-x
-x
-x
-x
-x
-x
-x
-x
-x
-x
-x
-x
-x
-x
-x
-x
-x
-x
-x
-x
-x
-x
-x
-x
-x
-x
-x
-x
-x
-x
-x
-x
-x
-x
-x
-x
-x
-x
-x
-x
-x
-x
-x
-x
-x
-x
-x
-x
-x
-x
-x
-x
-x
-x
-x
-x
-x
-x
-x
-x
-x
-x
-x
-x
-x
-x
-x
-x
-x
-x
-x
-x
-x
-x
-x
-x
-x
-x
-x
-x
-x
-x
-x
-x
-x
-x
-x
-x
-x
-x
-x
-x
-x
-x
-x
-x
-x
-x
-x
-x
-x
-x
-x
-x
-x
-x
-x
-x
-x
-x
-x
-x
-x
-x
-x
-x
-x
-x
-x
-x
-x
-x
-x
-x
-x
-x
-x
-x
-x
-x
-x
-x
-x
-x
-x
-x
-x
-x
-x
-x
-x
-x
-x
-x
-x
-x
-x
-x
-x
-x
-x
-x
-x
-x
-x
-x
-x
-x
-x
-x
-x
-x
-x
-x
-x
-x
-x
-x
-x
-x
-x
-x
-x
-x
-x
-x
-x
-x
-x
-x
-x
-x
-x
-x
-x
-x
-x
-x
-x
-x
-x
-x
-x
-x
-x
-x
-x
-x
-x
-x
-x
-x
-x
-x
-x
-x
-x
-x
-x
-x
-x
-x
-x
-x
-x
-x
-x
-x
-x
-x
-x
-x
-x
-x
-x
-x
-x
-x
-x
-x
-x
-x
-x
-x
-x
-x
-x
-x
-x
-x
-x
-x
-x
-x
-x
-x
-x
-x
-x
-x
-x
-x
-x
-x
-x
-x
-x
-x
-x
-x
-x
-x
-x
-x
-x
-x
-x
-x
-x
-x
-x
-x
-x
-x
-x
-x
-x
-x
-x
-x
-x
-x
-x
-x
-x
-x
-x
-x
-x
-x
-x
-x
-x
-x
-x
-x
-x
-x
-x
-x
-x
-x
-x
-x
-x
-x
-x
-x
-x
-x
-x
-x
-x
-x
-x
-x
-x
-x
-x
-x
-x
-x
-x
-x
-x
-x
-x
-x
-x
-x
-x
-x
-x
-x
-x
-x
-x
-x
-x
-x
-x
-x
-x
-x
-x
-x
-x
-x
-x
-x
-x
-x
-x
-x
-x
-x
-x
-x
-x
-x
-x
-x
-x
-x
-x
-x
-x
-x
-x
-x
-x
-x
-x
-x
-x
-x
-x
-x
-x
-x
-x
-x
-x
-x
-x
-x
-x
-x
-x
-x
-x
-x
-x
-x
-x
-x
-x
-x
-x
-x
-x
-x
-x
-x
-x
-x
-x
-x
-x
-x
-x
-x
-x
-x
-x
-x
-x
-x
-x
-x
-x
-x
-x
-x
-x
-x
-x
-x
-x
-x
-x
-x
-x
-x
-x
-x
-x
-x
-x
-x
-x
-x
-x
-x
-x
-x
-x
-x
-x
-x
-x
-x
-x
-x
-x
-x
-x
-x
-x
-x
-x
-x
-x
-x
-x
-x
-x
-x
-x
-x
-x
-x
-x
-x
-x
-x
-x
-x
-x
-x
-x
-x
-x
-x
-x
-x
-x
-x
-x
-x
-x
-x
-x
-x
-x
-x
-x
-x
-x
-x
-x
-x
-x
-x
-x
-x
-x
-x
-x
-x
-x
-x
-x
-x
-x
-x
-x
-x
-x
-x
-x
-x
-x
-x
-x
-x
-x
-x
-x
-x
-x
-x
-x
-x
-x
-x
-x
-x
-x
-x
-x
-x
-x
-x
-x
-x
-x
-x
-x
-x
-x
-x
-x
-x
-x
-x
-x
-x
-x
-x
-x
-x
-x
-x
-x
-x
-x
-x
-x
-x
-x
-x
-x
-x
-x
-x
-x
-x
-x
-x
-x
-x
-x
-x
-x
-x
-x
-x
-x
-x
-x
-x
-x
-x
-x
-x
-x
-x
-x
-x
-x
-x
-x
-x
-x
-x
-x
-x
-x
-x
-x
-x
-x
-x
-x
-x
-x
-x
-x
-x
-x
-x
-x
-x
-x
-x
-x
-x
-x
-x
-x
-x
-x
-x
-x
-x
-x
-x
-x
-x
-x
-x
-x
-x
-x
-x
-x
-x
-x
-x
-x
-x
-x
-x
-x
-x
-x
-x
-x
-x
-x
-x
-x
-x
-x
-x
-x
-x
-x
-x
-x
-x
-x
-x
-x
-x
-x
-x
-x
-x
-x
-x
-x
-x
-x
-x
-x
-x
-x
-x
-x
-x
-x
-x
-x
-x
-x
-x
-x
-x
-x
-x
-x
-x
-x
-x
-x
-x
-x
-x
-x
-x
-x
-x
-x
-x
-x
-x
-x
-x
-x
-x
-x
-x
-x
-x
-x
-x
-x
-x
-x
-x
-x
-x
-x
-x
-x
-x
-x
-x
-x
-x
-x
-x
-x
-x
-x
-x
-x
-x
-x
-x
-x
-x
-x
-x
-x
-x
-x
-x
-x
-x
-x
-x
-x
-x
-x
-x
-x
-x
-x
-x
-x
-x
-x
-x
-x
-x
-x
-x
-x
-x
-x
-x
-x
-x
-x
-x
-x
-x
-x
-x
-x
-x
-x
-x
-x
-x
-x
-x
-x
-x
-x
-x
-x
-x
-x
-x
-x
-x
-x
-x
-x
-x
-x
-x
-x
-x
-x
-x
-x
-x
-x
-x
-x
-x
-x
-x
-x
-x
-x
-x
-x
-x
-x
-x
-x
-x
-x
-x
-x
-x
-x
-x
-x
-x
-x
-x
-x
-x
-x
-x
-x
-x
-x
-x
-x
-x
-x
-x
-x
-x
-x
-x
-x
-x
-x
-x
-x
-x
-x
-x
-x
-x
-x
-x
-x
-x
-x
-x
-x
-x
-x
-x
-x
-x
-x
-x
-x
-x
-x
-x
-x
-x
-x
-x
-x
-x
-x
-x
-x
-x
-x
-x
-x
-x
-x
-x
-x
-x
-x
-x
-x
-x
-x
-x
-x
-x
-x
-x
-x
-x
-x
-x
-x
-x
-x
-x
-x
-x
-x
-x
-x
-x
-x
-x
-x
-x
-x
-x
-x
-x
-x
-x
-x
-x
-x
-x
-x
-x
-x
-x
-x
-x
-x
-x
-x
-x
-x
-x
-x
-x
-x
-x
-x
-x
-x
-x
-x
-x
-x
-x
-x
-x
-x
-x
-x
-x
-x
-x
-x
-x
-x
-x
-x
-x
-x
-x
-x
-x
-x
-x
-x
-x
-x
-x
-x
-x
-x
-x
-x
-x
-x
-x
-x
-x
-x
-x
-x
-x
-x
-x
-x
-x
-x
-x
-x
-x
-x
-x
-x
-x
-x
-x
-x
-x
-x
-x
-x
-x
-x
-x
-x
-x
-x
-x
-x
-x
-x
-x
-x
-x
-x
-x
-x
-x
-x
-x
-x
-x
-x
-x
-x
-x
-x
-x
-x
-x
-x
-x
-x
-x
-x
-x
-x
-x
-x
-x
-x
-x
-x
-x
-x
-x
-x
-x
-x
-x
-x
-x
-x
-x
-x
-x
-x
-x
-x
-x
-x
-x
-x
-x
-x
-x
-x
-x
-x
-x
-x
-x
-x
-x
-x
-x
-x
-x
-x
-x
-x
-x
-x
-x
-x
-x
-x
-x
-x
-x
-x
-x
-x
-x
-x
-x
-x
-x
-x
-x
-x
-x
-x
-x
-x
-x
-x
-x
-x
-x
-x
-x
-x
-x
-x
-x
-x
-x
-x
-x
-x
-x
-x
-x
-x
-x
-x
-x
-x
-x
-x
-x
-x
-x
-x
-x
-x
-x
-x
-x
-x
-x
-x
-x
-x
-x
-x
-x
-x
-x
-x
-x
-x
-x
-x
-x
-x
-x
-x
-x
-x
-x
-x
-x
-x
-x
-x
-x
-x
-x
-x
-x
-x
-x
-x
-x
-x
-x
-x
-x
-x
diff --git a/tests/tail/obs-c3.I b/tests/tail/obs-c3.I
deleted file mode 100644
index 85df507..0000000
--- a/tests/tail/obs-c3.I
+++ /dev/null
@@ -1 +0,0 @@
-abcd \ No newline at end of file
diff --git a/tests/tail/obs-c3.X b/tests/tail/obs-c3.X
deleted file mode 100644
index c59d9b6..0000000
--- a/tests/tail/obs-c3.X
+++ /dev/null
@@ -1 +0,0 @@
-d \ No newline at end of file
diff --git a/tests/tail/obs-c4.I b/tests/tail/obs-c4.I
deleted file mode 100644
index 85df507..0000000
--- a/tests/tail/obs-c4.I
+++ /dev/null
@@ -1 +0,0 @@
-abcd \ No newline at end of file
diff --git a/tests/tail/obs-c4.X b/tests/tail/obs-c4.X
deleted file mode 100644
index 85df507..0000000
--- a/tests/tail/obs-c4.X
+++ /dev/null
@@ -1 +0,0 @@
-abcd \ No newline at end of file
diff --git a/tests/tail/obs-c5.I b/tests/tail/obs-c5.I
deleted file mode 100644
index f1124ac..0000000
--- a/tests/tail/obs-c5.I
+++ /dev/null
@@ -1 +0,0 @@
-xyyyyyyyyyyyyz \ No newline at end of file
diff --git a/tests/tail/obs-c5.X b/tests/tail/obs-c5.X
deleted file mode 100644
index 5033da4..0000000
--- a/tests/tail/obs-c5.X
+++ /dev/null
@@ -1 +0,0 @@
-yyyyyyyyyyyz \ No newline at end of file
diff --git a/tests/tail/obs-l.I b/tests/tail/obs-l.I
deleted file mode 100644
index 421ea50..0000000
--- a/tests/tail/obs-l.I
+++ /dev/null
@@ -1,12 +0,0 @@
-x
-y
-y
-y
-y
-y
-y
-y
-y
-y
-y
-z \ No newline at end of file
diff --git a/tests/tail/obs-l.X b/tests/tail/obs-l.X
deleted file mode 100644
index 3c66ff9..0000000
--- a/tests/tail/obs-l.X
+++ /dev/null
@@ -1,10 +0,0 @@
-y
-y
-y
-y
-y
-y
-y
-y
-y
-z \ No newline at end of file
diff --git a/tests/tail/obs-l1.I b/tests/tail/obs-l1.I
deleted file mode 100644
index c1b0730..0000000
--- a/tests/tail/obs-l1.I
+++ /dev/null
@@ -1 +0,0 @@
-x \ No newline at end of file
diff --git a/tests/tail/obs-l1.X b/tests/tail/obs-l1.X
deleted file mode 100644
index c1b0730..0000000
--- a/tests/tail/obs-l1.X
+++ /dev/null
@@ -1 +0,0 @@
-x \ No newline at end of file
diff --git a/tests/tail/obs-l2.I b/tests/tail/obs-l2.I
deleted file mode 100644
index b77b4eb..0000000
--- a/tests/tail/obs-l2.I
+++ /dev/null
@@ -1,2 +0,0 @@
-x
-y
diff --git a/tests/tail/obs-l2.X b/tests/tail/obs-l2.X
deleted file mode 100644
index 975fbec..0000000
--- a/tests/tail/obs-l2.X
+++ /dev/null
@@ -1 +0,0 @@
-y
diff --git a/tests/tail/obs-l3.I b/tests/tail/obs-l3.I
deleted file mode 100644
index 1b32298..0000000
--- a/tests/tail/obs-l3.I
+++ /dev/null
@@ -1,2 +0,0 @@
-x
-y \ No newline at end of file
diff --git a/tests/tail/obs-l3.X b/tests/tail/obs-l3.X
deleted file mode 100644
index e25f181..0000000
--- a/tests/tail/obs-l3.X
+++ /dev/null
@@ -1 +0,0 @@
-y \ No newline at end of file
diff --git a/tests/tail/obs-plus-4.I b/tests/tail/obs-plus-4.I
deleted file mode 100644
index b77b4eb..0000000
--- a/tests/tail/obs-plus-4.I
+++ /dev/null
@@ -1,2 +0,0 @@
-x
-y
diff --git a/tests/tail/obs-plus-4.X b/tests/tail/obs-plus-4.X
deleted file mode 100644
index b77b4eb..0000000
--- a/tests/tail/obs-plus-4.X
+++ /dev/null
@@ -1,2 +0,0 @@
-x
-y
diff --git a/tests/tail/obs-plus-5.I b/tests/tail/obs-plus-5.I
deleted file mode 100644
index b77b4eb..0000000
--- a/tests/tail/obs-plus-5.I
+++ /dev/null
@@ -1,2 +0,0 @@
-x
-y
diff --git a/tests/tail/obs-plus-5.X b/tests/tail/obs-plus-5.X
deleted file mode 100644
index 975fbec..0000000
--- a/tests/tail/obs-plus-5.X
+++ /dev/null
@@ -1 +0,0 @@
-y
diff --git a/tests/tail/obs-plus-c1.I b/tests/tail/obs-plus-c1.I
deleted file mode 100644
index 85df507..0000000
--- a/tests/tail/obs-plus-c1.I
+++ /dev/null
@@ -1 +0,0 @@
-abcd \ No newline at end of file
diff --git a/tests/tail/obs-plus-c1.X b/tests/tail/obs-plus-c1.X
deleted file mode 100644
index c58cd57..0000000
--- a/tests/tail/obs-plus-c1.X
+++ /dev/null
@@ -1 +0,0 @@
-bcd \ No newline at end of file
diff --git a/tests/tail/obs-plus-c2.I b/tests/tail/obs-plus-c2.I
deleted file mode 100644
index 85df507..0000000
--- a/tests/tail/obs-plus-c2.I
+++ /dev/null
@@ -1 +0,0 @@
-abcd \ No newline at end of file
diff --git a/tests/tail/obs-plus-c2.X b/tests/tail/obs-plus-c2.X
deleted file mode 100644
index e69de29..0000000
--- a/tests/tail/obs-plus-c2.X
+++ /dev/null
diff --git a/tests/tail/obs-plus-l4.I b/tests/tail/obs-plus-l4.I
deleted file mode 100644
index b77b4eb..0000000
--- a/tests/tail/obs-plus-l4.I
+++ /dev/null
@@ -1,2 +0,0 @@
-x
-y
diff --git a/tests/tail/obs-plus-l4.X b/tests/tail/obs-plus-l4.X
deleted file mode 100644
index b77b4eb..0000000
--- a/tests/tail/obs-plus-l4.X
+++ /dev/null
@@ -1,2 +0,0 @@
-x
-y
diff --git a/tests/tail/obs-plus-l5.I b/tests/tail/obs-plus-l5.I
deleted file mode 100644
index b77b4eb..0000000
--- a/tests/tail/obs-plus-l5.I
+++ /dev/null
@@ -1,2 +0,0 @@
-x
-y
diff --git a/tests/tail/obs-plus-l5.X b/tests/tail/obs-plus-l5.X
deleted file mode 100644
index 975fbec..0000000
--- a/tests/tail/obs-plus-l5.X
+++ /dev/null
@@ -1 +0,0 @@
-y
diff --git a/tests/tail/obs-plus-x1.I b/tests/tail/obs-plus-x1.I
deleted file mode 100644
index 65626d1..0000000
--- a/tests/tail/obs-plus-x1.I
+++ /dev/null
@@ -1 +0,0 @@
-xyyyyyyyyyyz \ No newline at end of file
diff --git a/tests/tail/obs-plus-x1.X b/tests/tail/obs-plus-x1.X
deleted file mode 100644
index 0029b3a..0000000
--- a/tests/tail/obs-plus-x1.X
+++ /dev/null
@@ -1 +0,0 @@
-yyz \ No newline at end of file
diff --git a/tests/tail/obs-plus-x2.I b/tests/tail/obs-plus-x2.I
deleted file mode 100644
index 421ea50..0000000
--- a/tests/tail/obs-plus-x2.I
+++ /dev/null
@@ -1,12 +0,0 @@
-x
-y
-y
-y
-y
-y
-y
-y
-y
-y
-y
-z \ No newline at end of file
diff --git a/tests/tail/obs-plus-x2.X b/tests/tail/obs-plus-x2.X
deleted file mode 100644
index 38037e0..0000000
--- a/tests/tail/obs-plus-x2.X
+++ /dev/null
@@ -1,3 +0,0 @@
-y
-y
-z \ No newline at end of file
diff --git a/tests/tail/tail-tests b/tests/tail/tail-tests
deleted file mode 100755
index 95bb4f4..0000000
--- a/tests/tail/tail-tests
+++ /dev/null
@@ -1,2079 +0,0 @@
-#! /bin/sh
-# This script was generated automatically by mk-script.
-case $# in
- 0) xx='tail';;
- *) xx="$1";;
-esac
-test "$VERBOSE" && echo=echo || echo=:
-$echo testing program: $xx
-errors=0
-test "$srcdir" || srcdir=.
-test "$VERBOSE" && $xx --version 2> /dev/null
-
-# Make sure we get English translations.
-LANGUAGE=C
-export LANGUAGE
-LC_ALL=C
-export LC_ALL
-LANG=C
-export LANG
-
-_POSIX2_VERSION=199209 $xx +2c $srcdir/obs-plus-c1.I > obs-plus-c1.O 2> obs-plus-c1.E
-code=$?
-if test $code != 0; then
- $echo "Test obs-plus-c1(_POSIX2_VERSION=199209:F) failed: $xx return code $code differs from expected value 0" 1>&2
- errors=`expr $errors + 1`
-else
- cmp obs-plus-c1.O $srcdir/obs-plus-c1.X > /dev/null 2>&1
- case $? in
- 0) if test "$VERBOSE"; then $echo "passed obs-plus-c1(_POSIX2_VERSION=199209:F)"; fi;;
- 1) $echo "Test obs-plus-c1(_POSIX2_VERSION=199209:F) failed: files obs-plus-c1.O and $srcdir/obs-plus-c1.X differ" 1>&2
- (diff -c obs-plus-c1.O $srcdir/obs-plus-c1.X) 2> /dev/null
- errors=`expr $errors + 1`;;
- 2) $echo "Test obs-plus-c1(_POSIX2_VERSION=199209:F) may have failed." 1>&2
- $echo The command "cmp obs-plus-c1.O $srcdir/obs-plus-c1.X" failed. 1>&2
- errors=`expr $errors + 1`;;
- esac
-fi
-test -s obs-plus-c1.E || rm -f obs-plus-c1.E
-cat $srcdir/obs-plus-c1.I | _POSIX2_VERSION=199209 $xx +2c > obs-plus-c1.O 2> obs-plus-c1.E
-code=$?
-if test $code != 0; then
- $echo "Test obs-plus-c1(_POSIX2_VERSION=199209:|) failed: $xx return code $code differs from expected value 0" 1>&2
- errors=`expr $errors + 1`
-else
- cmp obs-plus-c1.O $srcdir/obs-plus-c1.X > /dev/null 2>&1
- case $? in
- 0) if test "$VERBOSE"; then $echo "passed obs-plus-c1(_POSIX2_VERSION=199209:|)"; fi;;
- 1) $echo "Test obs-plus-c1(_POSIX2_VERSION=199209:|) failed: files obs-plus-c1.O and $srcdir/obs-plus-c1.X differ" 1>&2
- (diff -c obs-plus-c1.O $srcdir/obs-plus-c1.X) 2> /dev/null
- errors=`expr $errors + 1`;;
- 2) $echo "Test obs-plus-c1(_POSIX2_VERSION=199209:|) may have failed." 1>&2
- $echo The command "cmp obs-plus-c1.O $srcdir/obs-plus-c1.X" failed. 1>&2
- errors=`expr $errors + 1`;;
- esac
-fi
-test -s obs-plus-c1.E || rm -f obs-plus-c1.E
-_POSIX2_VERSION=199209 $xx +2c < $srcdir/obs-plus-c1.I > obs-plus-c1.O 2> obs-plus-c1.E
-code=$?
-if test $code != 0; then
- $echo "Test obs-plus-c1(_POSIX2_VERSION=199209:<) failed: $xx return code $code differs from expected value 0" 1>&2
- errors=`expr $errors + 1`
-else
- cmp obs-plus-c1.O $srcdir/obs-plus-c1.X > /dev/null 2>&1
- case $? in
- 0) if test "$VERBOSE"; then $echo "passed obs-plus-c1(_POSIX2_VERSION=199209:<)"; fi;;
- 1) $echo "Test obs-plus-c1(_POSIX2_VERSION=199209:<) failed: files obs-plus-c1.O and $srcdir/obs-plus-c1.X differ" 1>&2
- (diff -c obs-plus-c1.O $srcdir/obs-plus-c1.X) 2> /dev/null
- errors=`expr $errors + 1`;;
- 2) $echo "Test obs-plus-c1(_POSIX2_VERSION=199209:<) may have failed." 1>&2
- $echo The command "cmp obs-plus-c1.O $srcdir/obs-plus-c1.X" failed. 1>&2
- errors=`expr $errors + 1`;;
- esac
-fi
-test -s obs-plus-c1.E || rm -f obs-plus-c1.E
-_POSIX2_VERSION=199209 $xx +8c $srcdir/obs-plus-c2.I > obs-plus-c2.O 2> obs-plus-c2.E
-code=$?
-if test $code != 0; then
- $echo "Test obs-plus-c2(_POSIX2_VERSION=199209:F) failed: $xx return code $code differs from expected value 0" 1>&2
- errors=`expr $errors + 1`
-else
- cmp obs-plus-c2.O $srcdir/obs-plus-c2.X > /dev/null 2>&1
- case $? in
- 0) if test "$VERBOSE"; then $echo "passed obs-plus-c2(_POSIX2_VERSION=199209:F)"; fi;;
- 1) $echo "Test obs-plus-c2(_POSIX2_VERSION=199209:F) failed: files obs-plus-c2.O and $srcdir/obs-plus-c2.X differ" 1>&2
- (diff -c obs-plus-c2.O $srcdir/obs-plus-c2.X) 2> /dev/null
- errors=`expr $errors + 1`;;
- 2) $echo "Test obs-plus-c2(_POSIX2_VERSION=199209:F) may have failed." 1>&2
- $echo The command "cmp obs-plus-c2.O $srcdir/obs-plus-c2.X" failed. 1>&2
- errors=`expr $errors + 1`;;
- esac
-fi
-test -s obs-plus-c2.E || rm -f obs-plus-c2.E
-cat $srcdir/obs-plus-c2.I | _POSIX2_VERSION=199209 $xx +8c > obs-plus-c2.O 2> obs-plus-c2.E
-code=$?
-if test $code != 0; then
- $echo "Test obs-plus-c2(_POSIX2_VERSION=199209:|) failed: $xx return code $code differs from expected value 0" 1>&2
- errors=`expr $errors + 1`
-else
- cmp obs-plus-c2.O $srcdir/obs-plus-c2.X > /dev/null 2>&1
- case $? in
- 0) if test "$VERBOSE"; then $echo "passed obs-plus-c2(_POSIX2_VERSION=199209:|)"; fi;;
- 1) $echo "Test obs-plus-c2(_POSIX2_VERSION=199209:|) failed: files obs-plus-c2.O and $srcdir/obs-plus-c2.X differ" 1>&2
- (diff -c obs-plus-c2.O $srcdir/obs-plus-c2.X) 2> /dev/null
- errors=`expr $errors + 1`;;
- 2) $echo "Test obs-plus-c2(_POSIX2_VERSION=199209:|) may have failed." 1>&2
- $echo The command "cmp obs-plus-c2.O $srcdir/obs-plus-c2.X" failed. 1>&2
- errors=`expr $errors + 1`;;
- esac
-fi
-test -s obs-plus-c2.E || rm -f obs-plus-c2.E
-_POSIX2_VERSION=199209 $xx +8c < $srcdir/obs-plus-c2.I > obs-plus-c2.O 2> obs-plus-c2.E
-code=$?
-if test $code != 0; then
- $echo "Test obs-plus-c2(_POSIX2_VERSION=199209:<) failed: $xx return code $code differs from expected value 0" 1>&2
- errors=`expr $errors + 1`
-else
- cmp obs-plus-c2.O $srcdir/obs-plus-c2.X > /dev/null 2>&1
- case $? in
- 0) if test "$VERBOSE"; then $echo "passed obs-plus-c2(_POSIX2_VERSION=199209:<)"; fi;;
- 1) $echo "Test obs-plus-c2(_POSIX2_VERSION=199209:<) failed: files obs-plus-c2.O and $srcdir/obs-plus-c2.X differ" 1>&2
- (diff -c obs-plus-c2.O $srcdir/obs-plus-c2.X) 2> /dev/null
- errors=`expr $errors + 1`;;
- 2) $echo "Test obs-plus-c2(_POSIX2_VERSION=199209:<) may have failed." 1>&2
- $echo The command "cmp obs-plus-c2.O $srcdir/obs-plus-c2.X" failed. 1>&2
- errors=`expr $errors + 1`;;
- esac
-fi
-test -s obs-plus-c2.E || rm -f obs-plus-c2.E
-$xx -1c $srcdir/obs-c3.I > obs-c3.O 2> obs-c3.E
-code=$?
-if test $code != 0; then
- $echo "Test obs-c3(F) failed: $xx return code $code differs from expected value 0" 1>&2
- errors=`expr $errors + 1`
-else
- cmp obs-c3.O $srcdir/obs-c3.X > /dev/null 2>&1
- case $? in
- 0) if test "$VERBOSE"; then $echo "passed obs-c3(F)"; fi;;
- 1) $echo "Test obs-c3(F) failed: files obs-c3.O and $srcdir/obs-c3.X differ" 1>&2
- (diff -c obs-c3.O $srcdir/obs-c3.X) 2> /dev/null
- errors=`expr $errors + 1`;;
- 2) $echo "Test obs-c3(F) may have failed." 1>&2
- $echo The command "cmp obs-c3.O $srcdir/obs-c3.X" failed. 1>&2
- errors=`expr $errors + 1`;;
- esac
-fi
-test -s obs-c3.E || rm -f obs-c3.E
-cat $srcdir/obs-c3.I | $xx -1c > obs-c3.O 2> obs-c3.E
-code=$?
-if test $code != 0; then
- $echo "Test obs-c3(|) failed: $xx return code $code differs from expected value 0" 1>&2
- errors=`expr $errors + 1`
-else
- cmp obs-c3.O $srcdir/obs-c3.X > /dev/null 2>&1
- case $? in
- 0) if test "$VERBOSE"; then $echo "passed obs-c3(|)"; fi;;
- 1) $echo "Test obs-c3(|) failed: files obs-c3.O and $srcdir/obs-c3.X differ" 1>&2
- (diff -c obs-c3.O $srcdir/obs-c3.X) 2> /dev/null
- errors=`expr $errors + 1`;;
- 2) $echo "Test obs-c3(|) may have failed." 1>&2
- $echo The command "cmp obs-c3.O $srcdir/obs-c3.X" failed. 1>&2
- errors=`expr $errors + 1`;;
- esac
-fi
-test -s obs-c3.E || rm -f obs-c3.E
-$xx -1c < $srcdir/obs-c3.I > obs-c3.O 2> obs-c3.E
-code=$?
-if test $code != 0; then
- $echo "Test obs-c3(<) failed: $xx return code $code differs from expected value 0" 1>&2
- errors=`expr $errors + 1`
-else
- cmp obs-c3.O $srcdir/obs-c3.X > /dev/null 2>&1
- case $? in
- 0) if test "$VERBOSE"; then $echo "passed obs-c3(<)"; fi;;
- 1) $echo "Test obs-c3(<) failed: files obs-c3.O and $srcdir/obs-c3.X differ" 1>&2
- (diff -c obs-c3.O $srcdir/obs-c3.X) 2> /dev/null
- errors=`expr $errors + 1`;;
- 2) $echo "Test obs-c3(<) may have failed." 1>&2
- $echo The command "cmp obs-c3.O $srcdir/obs-c3.X" failed. 1>&2
- errors=`expr $errors + 1`;;
- esac
-fi
-test -s obs-c3.E || rm -f obs-c3.E
-$xx -9c $srcdir/obs-c4.I > obs-c4.O 2> obs-c4.E
-code=$?
-if test $code != 0; then
- $echo "Test obs-c4(F) failed: $xx return code $code differs from expected value 0" 1>&2
- errors=`expr $errors + 1`
-else
- cmp obs-c4.O $srcdir/obs-c4.X > /dev/null 2>&1
- case $? in
- 0) if test "$VERBOSE"; then $echo "passed obs-c4(F)"; fi;;
- 1) $echo "Test obs-c4(F) failed: files obs-c4.O and $srcdir/obs-c4.X differ" 1>&2
- (diff -c obs-c4.O $srcdir/obs-c4.X) 2> /dev/null
- errors=`expr $errors + 1`;;
- 2) $echo "Test obs-c4(F) may have failed." 1>&2
- $echo The command "cmp obs-c4.O $srcdir/obs-c4.X" failed. 1>&2
- errors=`expr $errors + 1`;;
- esac
-fi
-test -s obs-c4.E || rm -f obs-c4.E
-cat $srcdir/obs-c4.I | $xx -9c > obs-c4.O 2> obs-c4.E
-code=$?
-if test $code != 0; then
- $echo "Test obs-c4(|) failed: $xx return code $code differs from expected value 0" 1>&2
- errors=`expr $errors + 1`
-else
- cmp obs-c4.O $srcdir/obs-c4.X > /dev/null 2>&1
- case $? in
- 0) if test "$VERBOSE"; then $echo "passed obs-c4(|)"; fi;;
- 1) $echo "Test obs-c4(|) failed: files obs-c4.O and $srcdir/obs-c4.X differ" 1>&2
- (diff -c obs-c4.O $srcdir/obs-c4.X) 2> /dev/null
- errors=`expr $errors + 1`;;
- 2) $echo "Test obs-c4(|) may have failed." 1>&2
- $echo The command "cmp obs-c4.O $srcdir/obs-c4.X" failed. 1>&2
- errors=`expr $errors + 1`;;
- esac
-fi
-test -s obs-c4.E || rm -f obs-c4.E
-$xx -9c < $srcdir/obs-c4.I > obs-c4.O 2> obs-c4.E
-code=$?
-if test $code != 0; then
- $echo "Test obs-c4(<) failed: $xx return code $code differs from expected value 0" 1>&2
- errors=`expr $errors + 1`
-else
- cmp obs-c4.O $srcdir/obs-c4.X > /dev/null 2>&1
- case $? in
- 0) if test "$VERBOSE"; then $echo "passed obs-c4(<)"; fi;;
- 1) $echo "Test obs-c4(<) failed: files obs-c4.O and $srcdir/obs-c4.X differ" 1>&2
- (diff -c obs-c4.O $srcdir/obs-c4.X) 2> /dev/null
- errors=`expr $errors + 1`;;
- 2) $echo "Test obs-c4(<) may have failed." 1>&2
- $echo The command "cmp obs-c4.O $srcdir/obs-c4.X" failed. 1>&2
- errors=`expr $errors + 1`;;
- esac
-fi
-test -s obs-c4.E || rm -f obs-c4.E
-$xx -12c $srcdir/obs-c5.I > obs-c5.O 2> obs-c5.E
-code=$?
-if test $code != 0; then
- $echo "Test obs-c5(F) failed: $xx return code $code differs from expected value 0" 1>&2
- errors=`expr $errors + 1`
-else
- cmp obs-c5.O $srcdir/obs-c5.X > /dev/null 2>&1
- case $? in
- 0) if test "$VERBOSE"; then $echo "passed obs-c5(F)"; fi;;
- 1) $echo "Test obs-c5(F) failed: files obs-c5.O and $srcdir/obs-c5.X differ" 1>&2
- (diff -c obs-c5.O $srcdir/obs-c5.X) 2> /dev/null
- errors=`expr $errors + 1`;;
- 2) $echo "Test obs-c5(F) may have failed." 1>&2
- $echo The command "cmp obs-c5.O $srcdir/obs-c5.X" failed. 1>&2
- errors=`expr $errors + 1`;;
- esac
-fi
-test -s obs-c5.E || rm -f obs-c5.E
-cat $srcdir/obs-c5.I | $xx -12c > obs-c5.O 2> obs-c5.E
-code=$?
-if test $code != 0; then
- $echo "Test obs-c5(|) failed: $xx return code $code differs from expected value 0" 1>&2
- errors=`expr $errors + 1`
-else
- cmp obs-c5.O $srcdir/obs-c5.X > /dev/null 2>&1
- case $? in
- 0) if test "$VERBOSE"; then $echo "passed obs-c5(|)"; fi;;
- 1) $echo "Test obs-c5(|) failed: files obs-c5.O and $srcdir/obs-c5.X differ" 1>&2
- (diff -c obs-c5.O $srcdir/obs-c5.X) 2> /dev/null
- errors=`expr $errors + 1`;;
- 2) $echo "Test obs-c5(|) may have failed." 1>&2
- $echo The command "cmp obs-c5.O $srcdir/obs-c5.X" failed. 1>&2
- errors=`expr $errors + 1`;;
- esac
-fi
-test -s obs-c5.E || rm -f obs-c5.E
-$xx -12c < $srcdir/obs-c5.I > obs-c5.O 2> obs-c5.E
-code=$?
-if test $code != 0; then
- $echo "Test obs-c5(<) failed: $xx return code $code differs from expected value 0" 1>&2
- errors=`expr $errors + 1`
-else
- cmp obs-c5.O $srcdir/obs-c5.X > /dev/null 2>&1
- case $? in
- 0) if test "$VERBOSE"; then $echo "passed obs-c5(<)"; fi;;
- 1) $echo "Test obs-c5(<) failed: files obs-c5.O and $srcdir/obs-c5.X differ" 1>&2
- (diff -c obs-c5.O $srcdir/obs-c5.X) 2> /dev/null
- errors=`expr $errors + 1`;;
- 2) $echo "Test obs-c5(<) may have failed." 1>&2
- $echo The command "cmp obs-c5.O $srcdir/obs-c5.X" failed. 1>&2
- errors=`expr $errors + 1`;;
- esac
-fi
-test -s obs-c5.E || rm -f obs-c5.E
-$xx -1l $srcdir/obs-l1.I > obs-l1.O 2> obs-l1.E
-code=$?
-if test $code != 0; then
- $echo "Test obs-l1(F) failed: $xx return code $code differs from expected value 0" 1>&2
- errors=`expr $errors + 1`
-else
- cmp obs-l1.O $srcdir/obs-l1.X > /dev/null 2>&1
- case $? in
- 0) if test "$VERBOSE"; then $echo "passed obs-l1(F)"; fi;;
- 1) $echo "Test obs-l1(F) failed: files obs-l1.O and $srcdir/obs-l1.X differ" 1>&2
- (diff -c obs-l1.O $srcdir/obs-l1.X) 2> /dev/null
- errors=`expr $errors + 1`;;
- 2) $echo "Test obs-l1(F) may have failed." 1>&2
- $echo The command "cmp obs-l1.O $srcdir/obs-l1.X" failed. 1>&2
- errors=`expr $errors + 1`;;
- esac
-fi
-test -s obs-l1.E || rm -f obs-l1.E
-cat $srcdir/obs-l1.I | $xx -1l > obs-l1.O 2> obs-l1.E
-code=$?
-if test $code != 0; then
- $echo "Test obs-l1(|) failed: $xx return code $code differs from expected value 0" 1>&2
- errors=`expr $errors + 1`
-else
- cmp obs-l1.O $srcdir/obs-l1.X > /dev/null 2>&1
- case $? in
- 0) if test "$VERBOSE"; then $echo "passed obs-l1(|)"; fi;;
- 1) $echo "Test obs-l1(|) failed: files obs-l1.O and $srcdir/obs-l1.X differ" 1>&2
- (diff -c obs-l1.O $srcdir/obs-l1.X) 2> /dev/null
- errors=`expr $errors + 1`;;
- 2) $echo "Test obs-l1(|) may have failed." 1>&2
- $echo The command "cmp obs-l1.O $srcdir/obs-l1.X" failed. 1>&2
- errors=`expr $errors + 1`;;
- esac
-fi
-test -s obs-l1.E || rm -f obs-l1.E
-$xx -1l < $srcdir/obs-l1.I > obs-l1.O 2> obs-l1.E
-code=$?
-if test $code != 0; then
- $echo "Test obs-l1(<) failed: $xx return code $code differs from expected value 0" 1>&2
- errors=`expr $errors + 1`
-else
- cmp obs-l1.O $srcdir/obs-l1.X > /dev/null 2>&1
- case $? in
- 0) if test "$VERBOSE"; then $echo "passed obs-l1(<)"; fi;;
- 1) $echo "Test obs-l1(<) failed: files obs-l1.O and $srcdir/obs-l1.X differ" 1>&2
- (diff -c obs-l1.O $srcdir/obs-l1.X) 2> /dev/null
- errors=`expr $errors + 1`;;
- 2) $echo "Test obs-l1(<) may have failed." 1>&2
- $echo The command "cmp obs-l1.O $srcdir/obs-l1.X" failed. 1>&2
- errors=`expr $errors + 1`;;
- esac
-fi
-test -s obs-l1.E || rm -f obs-l1.E
-$xx -1l $srcdir/obs-l2.I > obs-l2.O 2> obs-l2.E
-code=$?
-if test $code != 0; then
- $echo "Test obs-l2(F) failed: $xx return code $code differs from expected value 0" 1>&2
- errors=`expr $errors + 1`
-else
- cmp obs-l2.O $srcdir/obs-l2.X > /dev/null 2>&1
- case $? in
- 0) if test "$VERBOSE"; then $echo "passed obs-l2(F)"; fi;;
- 1) $echo "Test obs-l2(F) failed: files obs-l2.O and $srcdir/obs-l2.X differ" 1>&2
- (diff -c obs-l2.O $srcdir/obs-l2.X) 2> /dev/null
- errors=`expr $errors + 1`;;
- 2) $echo "Test obs-l2(F) may have failed." 1>&2
- $echo The command "cmp obs-l2.O $srcdir/obs-l2.X" failed. 1>&2
- errors=`expr $errors + 1`;;
- esac
-fi
-test -s obs-l2.E || rm -f obs-l2.E
-cat $srcdir/obs-l2.I | $xx -1l > obs-l2.O 2> obs-l2.E
-code=$?
-if test $code != 0; then
- $echo "Test obs-l2(|) failed: $xx return code $code differs from expected value 0" 1>&2
- errors=`expr $errors + 1`
-else
- cmp obs-l2.O $srcdir/obs-l2.X > /dev/null 2>&1
- case $? in
- 0) if test "$VERBOSE"; then $echo "passed obs-l2(|)"; fi;;
- 1) $echo "Test obs-l2(|) failed: files obs-l2.O and $srcdir/obs-l2.X differ" 1>&2
- (diff -c obs-l2.O $srcdir/obs-l2.X) 2> /dev/null
- errors=`expr $errors + 1`;;
- 2) $echo "Test obs-l2(|) may have failed." 1>&2
- $echo The command "cmp obs-l2.O $srcdir/obs-l2.X" failed. 1>&2
- errors=`expr $errors + 1`;;
- esac
-fi
-test -s obs-l2.E || rm -f obs-l2.E
-$xx -1l < $srcdir/obs-l2.I > obs-l2.O 2> obs-l2.E
-code=$?
-if test $code != 0; then
- $echo "Test obs-l2(<) failed: $xx return code $code differs from expected value 0" 1>&2
- errors=`expr $errors + 1`
-else
- cmp obs-l2.O $srcdir/obs-l2.X > /dev/null 2>&1
- case $? in
- 0) if test "$VERBOSE"; then $echo "passed obs-l2(<)"; fi;;
- 1) $echo "Test obs-l2(<) failed: files obs-l2.O and $srcdir/obs-l2.X differ" 1>&2
- (diff -c obs-l2.O $srcdir/obs-l2.X) 2> /dev/null
- errors=`expr $errors + 1`;;
- 2) $echo "Test obs-l2(<) may have failed." 1>&2
- $echo The command "cmp obs-l2.O $srcdir/obs-l2.X" failed. 1>&2
- errors=`expr $errors + 1`;;
- esac
-fi
-test -s obs-l2.E || rm -f obs-l2.E
-$xx -1l $srcdir/obs-l3.I > obs-l3.O 2> obs-l3.E
-code=$?
-if test $code != 0; then
- $echo "Test obs-l3(F) failed: $xx return code $code differs from expected value 0" 1>&2
- errors=`expr $errors + 1`
-else
- cmp obs-l3.O $srcdir/obs-l3.X > /dev/null 2>&1
- case $? in
- 0) if test "$VERBOSE"; then $echo "passed obs-l3(F)"; fi;;
- 1) $echo "Test obs-l3(F) failed: files obs-l3.O and $srcdir/obs-l3.X differ" 1>&2
- (diff -c obs-l3.O $srcdir/obs-l3.X) 2> /dev/null
- errors=`expr $errors + 1`;;
- 2) $echo "Test obs-l3(F) may have failed." 1>&2
- $echo The command "cmp obs-l3.O $srcdir/obs-l3.X" failed. 1>&2
- errors=`expr $errors + 1`;;
- esac
-fi
-test -s obs-l3.E || rm -f obs-l3.E
-cat $srcdir/obs-l3.I | $xx -1l > obs-l3.O 2> obs-l3.E
-code=$?
-if test $code != 0; then
- $echo "Test obs-l3(|) failed: $xx return code $code differs from expected value 0" 1>&2
- errors=`expr $errors + 1`
-else
- cmp obs-l3.O $srcdir/obs-l3.X > /dev/null 2>&1
- case $? in
- 0) if test "$VERBOSE"; then $echo "passed obs-l3(|)"; fi;;
- 1) $echo "Test obs-l3(|) failed: files obs-l3.O and $srcdir/obs-l3.X differ" 1>&2
- (diff -c obs-l3.O $srcdir/obs-l3.X) 2> /dev/null
- errors=`expr $errors + 1`;;
- 2) $echo "Test obs-l3(|) may have failed." 1>&2
- $echo The command "cmp obs-l3.O $srcdir/obs-l3.X" failed. 1>&2
- errors=`expr $errors + 1`;;
- esac
-fi
-test -s obs-l3.E || rm -f obs-l3.E
-$xx -1l < $srcdir/obs-l3.I > obs-l3.O 2> obs-l3.E
-code=$?
-if test $code != 0; then
- $echo "Test obs-l3(<) failed: $xx return code $code differs from expected value 0" 1>&2
- errors=`expr $errors + 1`
-else
- cmp obs-l3.O $srcdir/obs-l3.X > /dev/null 2>&1
- case $? in
- 0) if test "$VERBOSE"; then $echo "passed obs-l3(<)"; fi;;
- 1) $echo "Test obs-l3(<) failed: files obs-l3.O and $srcdir/obs-l3.X differ" 1>&2
- (diff -c obs-l3.O $srcdir/obs-l3.X) 2> /dev/null
- errors=`expr $errors + 1`;;
- 2) $echo "Test obs-l3(<) may have failed." 1>&2
- $echo The command "cmp obs-l3.O $srcdir/obs-l3.X" failed. 1>&2
- errors=`expr $errors + 1`;;
- esac
-fi
-test -s obs-l3.E || rm -f obs-l3.E
-_POSIX2_VERSION=199209 $xx +1l $srcdir/obs-plus-l4.I > obs-plus-l4.O 2> obs-plus-l4.E
-code=$?
-if test $code != 0; then
- $echo "Test obs-plus-l4(_POSIX2_VERSION=199209:F) failed: $xx return code $code differs from expected value 0" 1>&2
- errors=`expr $errors + 1`
-else
- cmp obs-plus-l4.O $srcdir/obs-plus-l4.X > /dev/null 2>&1
- case $? in
- 0) if test "$VERBOSE"; then $echo "passed obs-plus-l4(_POSIX2_VERSION=199209:F)"; fi;;
- 1) $echo "Test obs-plus-l4(_POSIX2_VERSION=199209:F) failed: files obs-plus-l4.O and $srcdir/obs-plus-l4.X differ" 1>&2
- (diff -c obs-plus-l4.O $srcdir/obs-plus-l4.X) 2> /dev/null
- errors=`expr $errors + 1`;;
- 2) $echo "Test obs-plus-l4(_POSIX2_VERSION=199209:F) may have failed." 1>&2
- $echo The command "cmp obs-plus-l4.O $srcdir/obs-plus-l4.X" failed. 1>&2
- errors=`expr $errors + 1`;;
- esac
-fi
-test -s obs-plus-l4.E || rm -f obs-plus-l4.E
-cat $srcdir/obs-plus-l4.I | _POSIX2_VERSION=199209 $xx +1l > obs-plus-l4.O 2> obs-plus-l4.E
-code=$?
-if test $code != 0; then
- $echo "Test obs-plus-l4(_POSIX2_VERSION=199209:|) failed: $xx return code $code differs from expected value 0" 1>&2
- errors=`expr $errors + 1`
-else
- cmp obs-plus-l4.O $srcdir/obs-plus-l4.X > /dev/null 2>&1
- case $? in
- 0) if test "$VERBOSE"; then $echo "passed obs-plus-l4(_POSIX2_VERSION=199209:|)"; fi;;
- 1) $echo "Test obs-plus-l4(_POSIX2_VERSION=199209:|) failed: files obs-plus-l4.O and $srcdir/obs-plus-l4.X differ" 1>&2
- (diff -c obs-plus-l4.O $srcdir/obs-plus-l4.X) 2> /dev/null
- errors=`expr $errors + 1`;;
- 2) $echo "Test obs-plus-l4(_POSIX2_VERSION=199209:|) may have failed." 1>&2
- $echo The command "cmp obs-plus-l4.O $srcdir/obs-plus-l4.X" failed. 1>&2
- errors=`expr $errors + 1`;;
- esac
-fi
-test -s obs-plus-l4.E || rm -f obs-plus-l4.E
-_POSIX2_VERSION=199209 $xx +1l < $srcdir/obs-plus-l4.I > obs-plus-l4.O 2> obs-plus-l4.E
-code=$?
-if test $code != 0; then
- $echo "Test obs-plus-l4(_POSIX2_VERSION=199209:<) failed: $xx return code $code differs from expected value 0" 1>&2
- errors=`expr $errors + 1`
-else
- cmp obs-plus-l4.O $srcdir/obs-plus-l4.X > /dev/null 2>&1
- case $? in
- 0) if test "$VERBOSE"; then $echo "passed obs-plus-l4(_POSIX2_VERSION=199209:<)"; fi;;
- 1) $echo "Test obs-plus-l4(_POSIX2_VERSION=199209:<) failed: files obs-plus-l4.O and $srcdir/obs-plus-l4.X differ" 1>&2
- (diff -c obs-plus-l4.O $srcdir/obs-plus-l4.X) 2> /dev/null
- errors=`expr $errors + 1`;;
- 2) $echo "Test obs-plus-l4(_POSIX2_VERSION=199209:<) may have failed." 1>&2
- $echo The command "cmp obs-plus-l4.O $srcdir/obs-plus-l4.X" failed. 1>&2
- errors=`expr $errors + 1`;;
- esac
-fi
-test -s obs-plus-l4.E || rm -f obs-plus-l4.E
-_POSIX2_VERSION=199209 $xx +2l $srcdir/obs-plus-l5.I > obs-plus-l5.O 2> obs-plus-l5.E
-code=$?
-if test $code != 0; then
- $echo "Test obs-plus-l5(_POSIX2_VERSION=199209:F) failed: $xx return code $code differs from expected value 0" 1>&2
- errors=`expr $errors + 1`
-else
- cmp obs-plus-l5.O $srcdir/obs-plus-l5.X > /dev/null 2>&1
- case $? in
- 0) if test "$VERBOSE"; then $echo "passed obs-plus-l5(_POSIX2_VERSION=199209:F)"; fi;;
- 1) $echo "Test obs-plus-l5(_POSIX2_VERSION=199209:F) failed: files obs-plus-l5.O and $srcdir/obs-plus-l5.X differ" 1>&2
- (diff -c obs-plus-l5.O $srcdir/obs-plus-l5.X) 2> /dev/null
- errors=`expr $errors + 1`;;
- 2) $echo "Test obs-plus-l5(_POSIX2_VERSION=199209:F) may have failed." 1>&2
- $echo The command "cmp obs-plus-l5.O $srcdir/obs-plus-l5.X" failed. 1>&2
- errors=`expr $errors + 1`;;
- esac
-fi
-test -s obs-plus-l5.E || rm -f obs-plus-l5.E
-cat $srcdir/obs-plus-l5.I | _POSIX2_VERSION=199209 $xx +2l > obs-plus-l5.O 2> obs-plus-l5.E
-code=$?
-if test $code != 0; then
- $echo "Test obs-plus-l5(_POSIX2_VERSION=199209:|) failed: $xx return code $code differs from expected value 0" 1>&2
- errors=`expr $errors + 1`
-else
- cmp obs-plus-l5.O $srcdir/obs-plus-l5.X > /dev/null 2>&1
- case $? in
- 0) if test "$VERBOSE"; then $echo "passed obs-plus-l5(_POSIX2_VERSION=199209:|)"; fi;;
- 1) $echo "Test obs-plus-l5(_POSIX2_VERSION=199209:|) failed: files obs-plus-l5.O and $srcdir/obs-plus-l5.X differ" 1>&2
- (diff -c obs-plus-l5.O $srcdir/obs-plus-l5.X) 2> /dev/null
- errors=`expr $errors + 1`;;
- 2) $echo "Test obs-plus-l5(_POSIX2_VERSION=199209:|) may have failed." 1>&2
- $echo The command "cmp obs-plus-l5.O $srcdir/obs-plus-l5.X" failed. 1>&2
- errors=`expr $errors + 1`;;
- esac
-fi
-test -s obs-plus-l5.E || rm -f obs-plus-l5.E
-_POSIX2_VERSION=199209 $xx +2l < $srcdir/obs-plus-l5.I > obs-plus-l5.O 2> obs-plus-l5.E
-code=$?
-if test $code != 0; then
- $echo "Test obs-plus-l5(_POSIX2_VERSION=199209:<) failed: $xx return code $code differs from expected value 0" 1>&2
- errors=`expr $errors + 1`
-else
- cmp obs-plus-l5.O $srcdir/obs-plus-l5.X > /dev/null 2>&1
- case $? in
- 0) if test "$VERBOSE"; then $echo "passed obs-plus-l5(_POSIX2_VERSION=199209:<)"; fi;;
- 1) $echo "Test obs-plus-l5(_POSIX2_VERSION=199209:<) failed: files obs-plus-l5.O and $srcdir/obs-plus-l5.X differ" 1>&2
- (diff -c obs-plus-l5.O $srcdir/obs-plus-l5.X) 2> /dev/null
- errors=`expr $errors + 1`;;
- 2) $echo "Test obs-plus-l5(_POSIX2_VERSION=199209:<) may have failed." 1>&2
- $echo The command "cmp obs-plus-l5.O $srcdir/obs-plus-l5.X" failed. 1>&2
- errors=`expr $errors + 1`;;
- esac
-fi
-test -s obs-plus-l5.E || rm -f obs-plus-l5.E
-$xx -1 $srcdir/obs-1.I > obs-1.O 2> obs-1.E
-code=$?
-if test $code != 0; then
- $echo "Test obs-1(F) failed: $xx return code $code differs from expected value 0" 1>&2
- errors=`expr $errors + 1`
-else
- cmp obs-1.O $srcdir/obs-1.X > /dev/null 2>&1
- case $? in
- 0) if test "$VERBOSE"; then $echo "passed obs-1(F)"; fi;;
- 1) $echo "Test obs-1(F) failed: files obs-1.O and $srcdir/obs-1.X differ" 1>&2
- (diff -c obs-1.O $srcdir/obs-1.X) 2> /dev/null
- errors=`expr $errors + 1`;;
- 2) $echo "Test obs-1(F) may have failed." 1>&2
- $echo The command "cmp obs-1.O $srcdir/obs-1.X" failed. 1>&2
- errors=`expr $errors + 1`;;
- esac
-fi
-test -s obs-1.E || rm -f obs-1.E
-cat $srcdir/obs-1.I | $xx -1 > obs-1.O 2> obs-1.E
-code=$?
-if test $code != 0; then
- $echo "Test obs-1(|) failed: $xx return code $code differs from expected value 0" 1>&2
- errors=`expr $errors + 1`
-else
- cmp obs-1.O $srcdir/obs-1.X > /dev/null 2>&1
- case $? in
- 0) if test "$VERBOSE"; then $echo "passed obs-1(|)"; fi;;
- 1) $echo "Test obs-1(|) failed: files obs-1.O and $srcdir/obs-1.X differ" 1>&2
- (diff -c obs-1.O $srcdir/obs-1.X) 2> /dev/null
- errors=`expr $errors + 1`;;
- 2) $echo "Test obs-1(|) may have failed." 1>&2
- $echo The command "cmp obs-1.O $srcdir/obs-1.X" failed. 1>&2
- errors=`expr $errors + 1`;;
- esac
-fi
-test -s obs-1.E || rm -f obs-1.E
-$xx -1 < $srcdir/obs-1.I > obs-1.O 2> obs-1.E
-code=$?
-if test $code != 0; then
- $echo "Test obs-1(<) failed: $xx return code $code differs from expected value 0" 1>&2
- errors=`expr $errors + 1`
-else
- cmp obs-1.O $srcdir/obs-1.X > /dev/null 2>&1
- case $? in
- 0) if test "$VERBOSE"; then $echo "passed obs-1(<)"; fi;;
- 1) $echo "Test obs-1(<) failed: files obs-1.O and $srcdir/obs-1.X differ" 1>&2
- (diff -c obs-1.O $srcdir/obs-1.X) 2> /dev/null
- errors=`expr $errors + 1`;;
- 2) $echo "Test obs-1(<) may have failed." 1>&2
- $echo The command "cmp obs-1.O $srcdir/obs-1.X" failed. 1>&2
- errors=`expr $errors + 1`;;
- esac
-fi
-test -s obs-1.E || rm -f obs-1.E
-$xx -1 $srcdir/obs-2.I > obs-2.O 2> obs-2.E
-code=$?
-if test $code != 0; then
- $echo "Test obs-2(F) failed: $xx return code $code differs from expected value 0" 1>&2
- errors=`expr $errors + 1`
-else
- cmp obs-2.O $srcdir/obs-2.X > /dev/null 2>&1
- case $? in
- 0) if test "$VERBOSE"; then $echo "passed obs-2(F)"; fi;;
- 1) $echo "Test obs-2(F) failed: files obs-2.O and $srcdir/obs-2.X differ" 1>&2
- (diff -c obs-2.O $srcdir/obs-2.X) 2> /dev/null
- errors=`expr $errors + 1`;;
- 2) $echo "Test obs-2(F) may have failed." 1>&2
- $echo The command "cmp obs-2.O $srcdir/obs-2.X" failed. 1>&2
- errors=`expr $errors + 1`;;
- esac
-fi
-test -s obs-2.E || rm -f obs-2.E
-cat $srcdir/obs-2.I | $xx -1 > obs-2.O 2> obs-2.E
-code=$?
-if test $code != 0; then
- $echo "Test obs-2(|) failed: $xx return code $code differs from expected value 0" 1>&2
- errors=`expr $errors + 1`
-else
- cmp obs-2.O $srcdir/obs-2.X > /dev/null 2>&1
- case $? in
- 0) if test "$VERBOSE"; then $echo "passed obs-2(|)"; fi;;
- 1) $echo "Test obs-2(|) failed: files obs-2.O and $srcdir/obs-2.X differ" 1>&2
- (diff -c obs-2.O $srcdir/obs-2.X) 2> /dev/null
- errors=`expr $errors + 1`;;
- 2) $echo "Test obs-2(|) may have failed." 1>&2
- $echo The command "cmp obs-2.O $srcdir/obs-2.X" failed. 1>&2
- errors=`expr $errors + 1`;;
- esac
-fi
-test -s obs-2.E || rm -f obs-2.E
-$xx -1 < $srcdir/obs-2.I > obs-2.O 2> obs-2.E
-code=$?
-if test $code != 0; then
- $echo "Test obs-2(<) failed: $xx return code $code differs from expected value 0" 1>&2
- errors=`expr $errors + 1`
-else
- cmp obs-2.O $srcdir/obs-2.X > /dev/null 2>&1
- case $? in
- 0) if test "$VERBOSE"; then $echo "passed obs-2(<)"; fi;;
- 1) $echo "Test obs-2(<) failed: files obs-2.O and $srcdir/obs-2.X differ" 1>&2
- (diff -c obs-2.O $srcdir/obs-2.X) 2> /dev/null
- errors=`expr $errors + 1`;;
- 2) $echo "Test obs-2(<) may have failed." 1>&2
- $echo The command "cmp obs-2.O $srcdir/obs-2.X" failed. 1>&2
- errors=`expr $errors + 1`;;
- esac
-fi
-test -s obs-2.E || rm -f obs-2.E
-$xx -1 $srcdir/obs-3.I > obs-3.O 2> obs-3.E
-code=$?
-if test $code != 0; then
- $echo "Test obs-3(F) failed: $xx return code $code differs from expected value 0" 1>&2
- errors=`expr $errors + 1`
-else
- cmp obs-3.O $srcdir/obs-3.X > /dev/null 2>&1
- case $? in
- 0) if test "$VERBOSE"; then $echo "passed obs-3(F)"; fi;;
- 1) $echo "Test obs-3(F) failed: files obs-3.O and $srcdir/obs-3.X differ" 1>&2
- (diff -c obs-3.O $srcdir/obs-3.X) 2> /dev/null
- errors=`expr $errors + 1`;;
- 2) $echo "Test obs-3(F) may have failed." 1>&2
- $echo The command "cmp obs-3.O $srcdir/obs-3.X" failed. 1>&2
- errors=`expr $errors + 1`;;
- esac
-fi
-test -s obs-3.E || rm -f obs-3.E
-cat $srcdir/obs-3.I | $xx -1 > obs-3.O 2> obs-3.E
-code=$?
-if test $code != 0; then
- $echo "Test obs-3(|) failed: $xx return code $code differs from expected value 0" 1>&2
- errors=`expr $errors + 1`
-else
- cmp obs-3.O $srcdir/obs-3.X > /dev/null 2>&1
- case $? in
- 0) if test "$VERBOSE"; then $echo "passed obs-3(|)"; fi;;
- 1) $echo "Test obs-3(|) failed: files obs-3.O and $srcdir/obs-3.X differ" 1>&2
- (diff -c obs-3.O $srcdir/obs-3.X) 2> /dev/null
- errors=`expr $errors + 1`;;
- 2) $echo "Test obs-3(|) may have failed." 1>&2
- $echo The command "cmp obs-3.O $srcdir/obs-3.X" failed. 1>&2
- errors=`expr $errors + 1`;;
- esac
-fi
-test -s obs-3.E || rm -f obs-3.E
-$xx -1 < $srcdir/obs-3.I > obs-3.O 2> obs-3.E
-code=$?
-if test $code != 0; then
- $echo "Test obs-3(<) failed: $xx return code $code differs from expected value 0" 1>&2
- errors=`expr $errors + 1`
-else
- cmp obs-3.O $srcdir/obs-3.X > /dev/null 2>&1
- case $? in
- 0) if test "$VERBOSE"; then $echo "passed obs-3(<)"; fi;;
- 1) $echo "Test obs-3(<) failed: files obs-3.O and $srcdir/obs-3.X differ" 1>&2
- (diff -c obs-3.O $srcdir/obs-3.X) 2> /dev/null
- errors=`expr $errors + 1`;;
- 2) $echo "Test obs-3(<) may have failed." 1>&2
- $echo The command "cmp obs-3.O $srcdir/obs-3.X" failed. 1>&2
- errors=`expr $errors + 1`;;
- esac
-fi
-test -s obs-3.E || rm -f obs-3.E
-_POSIX2_VERSION=199209 $xx +1 $srcdir/obs-plus-4.I > obs-plus-4.O 2> obs-plus-4.E
-code=$?
-if test $code != 0; then
- $echo "Test obs-plus-4(_POSIX2_VERSION=199209:F) failed: $xx return code $code differs from expected value 0" 1>&2
- errors=`expr $errors + 1`
-else
- cmp obs-plus-4.O $srcdir/obs-plus-4.X > /dev/null 2>&1
- case $? in
- 0) if test "$VERBOSE"; then $echo "passed obs-plus-4(_POSIX2_VERSION=199209:F)"; fi;;
- 1) $echo "Test obs-plus-4(_POSIX2_VERSION=199209:F) failed: files obs-plus-4.O and $srcdir/obs-plus-4.X differ" 1>&2
- (diff -c obs-plus-4.O $srcdir/obs-plus-4.X) 2> /dev/null
- errors=`expr $errors + 1`;;
- 2) $echo "Test obs-plus-4(_POSIX2_VERSION=199209:F) may have failed." 1>&2
- $echo The command "cmp obs-plus-4.O $srcdir/obs-plus-4.X" failed. 1>&2
- errors=`expr $errors + 1`;;
- esac
-fi
-test -s obs-plus-4.E || rm -f obs-plus-4.E
-cat $srcdir/obs-plus-4.I | _POSIX2_VERSION=199209 $xx +1 > obs-plus-4.O 2> obs-plus-4.E
-code=$?
-if test $code != 0; then
- $echo "Test obs-plus-4(_POSIX2_VERSION=199209:|) failed: $xx return code $code differs from expected value 0" 1>&2
- errors=`expr $errors + 1`
-else
- cmp obs-plus-4.O $srcdir/obs-plus-4.X > /dev/null 2>&1
- case $? in
- 0) if test "$VERBOSE"; then $echo "passed obs-plus-4(_POSIX2_VERSION=199209:|)"; fi;;
- 1) $echo "Test obs-plus-4(_POSIX2_VERSION=199209:|) failed: files obs-plus-4.O and $srcdir/obs-plus-4.X differ" 1>&2
- (diff -c obs-plus-4.O $srcdir/obs-plus-4.X) 2> /dev/null
- errors=`expr $errors + 1`;;
- 2) $echo "Test obs-plus-4(_POSIX2_VERSION=199209:|) may have failed." 1>&2
- $echo The command "cmp obs-plus-4.O $srcdir/obs-plus-4.X" failed. 1>&2
- errors=`expr $errors + 1`;;
- esac
-fi
-test -s obs-plus-4.E || rm -f obs-plus-4.E
-_POSIX2_VERSION=199209 $xx +1 < $srcdir/obs-plus-4.I > obs-plus-4.O 2> obs-plus-4.E
-code=$?
-if test $code != 0; then
- $echo "Test obs-plus-4(_POSIX2_VERSION=199209:<) failed: $xx return code $code differs from expected value 0" 1>&2
- errors=`expr $errors + 1`
-else
- cmp obs-plus-4.O $srcdir/obs-plus-4.X > /dev/null 2>&1
- case $? in
- 0) if test "$VERBOSE"; then $echo "passed obs-plus-4(_POSIX2_VERSION=199209:<)"; fi;;
- 1) $echo "Test obs-plus-4(_POSIX2_VERSION=199209:<) failed: files obs-plus-4.O and $srcdir/obs-plus-4.X differ" 1>&2
- (diff -c obs-plus-4.O $srcdir/obs-plus-4.X) 2> /dev/null
- errors=`expr $errors + 1`;;
- 2) $echo "Test obs-plus-4(_POSIX2_VERSION=199209:<) may have failed." 1>&2
- $echo The command "cmp obs-plus-4.O $srcdir/obs-plus-4.X" failed. 1>&2
- errors=`expr $errors + 1`;;
- esac
-fi
-test -s obs-plus-4.E || rm -f obs-plus-4.E
-_POSIX2_VERSION=199209 $xx +2 $srcdir/obs-plus-5.I > obs-plus-5.O 2> obs-plus-5.E
-code=$?
-if test $code != 0; then
- $echo "Test obs-plus-5(_POSIX2_VERSION=199209:F) failed: $xx return code $code differs from expected value 0" 1>&2
- errors=`expr $errors + 1`
-else
- cmp obs-plus-5.O $srcdir/obs-plus-5.X > /dev/null 2>&1
- case $? in
- 0) if test "$VERBOSE"; then $echo "passed obs-plus-5(_POSIX2_VERSION=199209:F)"; fi;;
- 1) $echo "Test obs-plus-5(_POSIX2_VERSION=199209:F) failed: files obs-plus-5.O and $srcdir/obs-plus-5.X differ" 1>&2
- (diff -c obs-plus-5.O $srcdir/obs-plus-5.X) 2> /dev/null
- errors=`expr $errors + 1`;;
- 2) $echo "Test obs-plus-5(_POSIX2_VERSION=199209:F) may have failed." 1>&2
- $echo The command "cmp obs-plus-5.O $srcdir/obs-plus-5.X" failed. 1>&2
- errors=`expr $errors + 1`;;
- esac
-fi
-test -s obs-plus-5.E || rm -f obs-plus-5.E
-cat $srcdir/obs-plus-5.I | _POSIX2_VERSION=199209 $xx +2 > obs-plus-5.O 2> obs-plus-5.E
-code=$?
-if test $code != 0; then
- $echo "Test obs-plus-5(_POSIX2_VERSION=199209:|) failed: $xx return code $code differs from expected value 0" 1>&2
- errors=`expr $errors + 1`
-else
- cmp obs-plus-5.O $srcdir/obs-plus-5.X > /dev/null 2>&1
- case $? in
- 0) if test "$VERBOSE"; then $echo "passed obs-plus-5(_POSIX2_VERSION=199209:|)"; fi;;
- 1) $echo "Test obs-plus-5(_POSIX2_VERSION=199209:|) failed: files obs-plus-5.O and $srcdir/obs-plus-5.X differ" 1>&2
- (diff -c obs-plus-5.O $srcdir/obs-plus-5.X) 2> /dev/null
- errors=`expr $errors + 1`;;
- 2) $echo "Test obs-plus-5(_POSIX2_VERSION=199209:|) may have failed." 1>&2
- $echo The command "cmp obs-plus-5.O $srcdir/obs-plus-5.X" failed. 1>&2
- errors=`expr $errors + 1`;;
- esac
-fi
-test -s obs-plus-5.E || rm -f obs-plus-5.E
-_POSIX2_VERSION=199209 $xx +2 < $srcdir/obs-plus-5.I > obs-plus-5.O 2> obs-plus-5.E
-code=$?
-if test $code != 0; then
- $echo "Test obs-plus-5(_POSIX2_VERSION=199209:<) failed: $xx return code $code differs from expected value 0" 1>&2
- errors=`expr $errors + 1`
-else
- cmp obs-plus-5.O $srcdir/obs-plus-5.X > /dev/null 2>&1
- case $? in
- 0) if test "$VERBOSE"; then $echo "passed obs-plus-5(_POSIX2_VERSION=199209:<)"; fi;;
- 1) $echo "Test obs-plus-5(_POSIX2_VERSION=199209:<) failed: files obs-plus-5.O and $srcdir/obs-plus-5.X differ" 1>&2
- (diff -c obs-plus-5.O $srcdir/obs-plus-5.X) 2> /dev/null
- errors=`expr $errors + 1`;;
- 2) $echo "Test obs-plus-5(_POSIX2_VERSION=199209:<) may have failed." 1>&2
- $echo The command "cmp obs-plus-5.O $srcdir/obs-plus-5.X" failed. 1>&2
- errors=`expr $errors + 1`;;
- esac
-fi
-test -s obs-plus-5.E || rm -f obs-plus-5.E
-_POSIX2_VERSION=199209 $xx +c $srcdir/obs-plus-x1.I > obs-plus-x1.O 2> obs-plus-x1.E
-code=$?
-if test $code != 0; then
- $echo "Test obs-plus-x1(_POSIX2_VERSION=199209:F) failed: $xx return code $code differs from expected value 0" 1>&2
- errors=`expr $errors + 1`
-else
- cmp obs-plus-x1.O $srcdir/obs-plus-x1.X > /dev/null 2>&1
- case $? in
- 0) if test "$VERBOSE"; then $echo "passed obs-plus-x1(_POSIX2_VERSION=199209:F)"; fi;;
- 1) $echo "Test obs-plus-x1(_POSIX2_VERSION=199209:F) failed: files obs-plus-x1.O and $srcdir/obs-plus-x1.X differ" 1>&2
- (diff -c obs-plus-x1.O $srcdir/obs-plus-x1.X) 2> /dev/null
- errors=`expr $errors + 1`;;
- 2) $echo "Test obs-plus-x1(_POSIX2_VERSION=199209:F) may have failed." 1>&2
- $echo The command "cmp obs-plus-x1.O $srcdir/obs-plus-x1.X" failed. 1>&2
- errors=`expr $errors + 1`;;
- esac
-fi
-test -s obs-plus-x1.E || rm -f obs-plus-x1.E
-cat $srcdir/obs-plus-x1.I | _POSIX2_VERSION=199209 $xx +c > obs-plus-x1.O 2> obs-plus-x1.E
-code=$?
-if test $code != 0; then
- $echo "Test obs-plus-x1(_POSIX2_VERSION=199209:|) failed: $xx return code $code differs from expected value 0" 1>&2
- errors=`expr $errors + 1`
-else
- cmp obs-plus-x1.O $srcdir/obs-plus-x1.X > /dev/null 2>&1
- case $? in
- 0) if test "$VERBOSE"; then $echo "passed obs-plus-x1(_POSIX2_VERSION=199209:|)"; fi;;
- 1) $echo "Test obs-plus-x1(_POSIX2_VERSION=199209:|) failed: files obs-plus-x1.O and $srcdir/obs-plus-x1.X differ" 1>&2
- (diff -c obs-plus-x1.O $srcdir/obs-plus-x1.X) 2> /dev/null
- errors=`expr $errors + 1`;;
- 2) $echo "Test obs-plus-x1(_POSIX2_VERSION=199209:|) may have failed." 1>&2
- $echo The command "cmp obs-plus-x1.O $srcdir/obs-plus-x1.X" failed. 1>&2
- errors=`expr $errors + 1`;;
- esac
-fi
-test -s obs-plus-x1.E || rm -f obs-plus-x1.E
-_POSIX2_VERSION=199209 $xx +c < $srcdir/obs-plus-x1.I > obs-plus-x1.O 2> obs-plus-x1.E
-code=$?
-if test $code != 0; then
- $echo "Test obs-plus-x1(_POSIX2_VERSION=199209:<) failed: $xx return code $code differs from expected value 0" 1>&2
- errors=`expr $errors + 1`
-else
- cmp obs-plus-x1.O $srcdir/obs-plus-x1.X > /dev/null 2>&1
- case $? in
- 0) if test "$VERBOSE"; then $echo "passed obs-plus-x1(_POSIX2_VERSION=199209:<)"; fi;;
- 1) $echo "Test obs-plus-x1(_POSIX2_VERSION=199209:<) failed: files obs-plus-x1.O and $srcdir/obs-plus-x1.X differ" 1>&2
- (diff -c obs-plus-x1.O $srcdir/obs-plus-x1.X) 2> /dev/null
- errors=`expr $errors + 1`;;
- 2) $echo "Test obs-plus-x1(_POSIX2_VERSION=199209:<) may have failed." 1>&2
- $echo The command "cmp obs-plus-x1.O $srcdir/obs-plus-x1.X" failed. 1>&2
- errors=`expr $errors + 1`;;
- esac
-fi
-test -s obs-plus-x1.E || rm -f obs-plus-x1.E
-_POSIX2_VERSION=199209 $xx +l $srcdir/obs-plus-x2.I > obs-plus-x2.O 2> obs-plus-x2.E
-code=$?
-if test $code != 0; then
- $echo "Test obs-plus-x2(_POSIX2_VERSION=199209:F) failed: $xx return code $code differs from expected value 0" 1>&2
- errors=`expr $errors + 1`
-else
- cmp obs-plus-x2.O $srcdir/obs-plus-x2.X > /dev/null 2>&1
- case $? in
- 0) if test "$VERBOSE"; then $echo "passed obs-plus-x2(_POSIX2_VERSION=199209:F)"; fi;;
- 1) $echo "Test obs-plus-x2(_POSIX2_VERSION=199209:F) failed: files obs-plus-x2.O and $srcdir/obs-plus-x2.X differ" 1>&2
- (diff -c obs-plus-x2.O $srcdir/obs-plus-x2.X) 2> /dev/null
- errors=`expr $errors + 1`;;
- 2) $echo "Test obs-plus-x2(_POSIX2_VERSION=199209:F) may have failed." 1>&2
- $echo The command "cmp obs-plus-x2.O $srcdir/obs-plus-x2.X" failed. 1>&2
- errors=`expr $errors + 1`;;
- esac
-fi
-test -s obs-plus-x2.E || rm -f obs-plus-x2.E
-cat $srcdir/obs-plus-x2.I | _POSIX2_VERSION=199209 $xx +l > obs-plus-x2.O 2> obs-plus-x2.E
-code=$?
-if test $code != 0; then
- $echo "Test obs-plus-x2(_POSIX2_VERSION=199209:|) failed: $xx return code $code differs from expected value 0" 1>&2
- errors=`expr $errors + 1`
-else
- cmp obs-plus-x2.O $srcdir/obs-plus-x2.X > /dev/null 2>&1
- case $? in
- 0) if test "$VERBOSE"; then $echo "passed obs-plus-x2(_POSIX2_VERSION=199209:|)"; fi;;
- 1) $echo "Test obs-plus-x2(_POSIX2_VERSION=199209:|) failed: files obs-plus-x2.O and $srcdir/obs-plus-x2.X differ" 1>&2
- (diff -c obs-plus-x2.O $srcdir/obs-plus-x2.X) 2> /dev/null
- errors=`expr $errors + 1`;;
- 2) $echo "Test obs-plus-x2(_POSIX2_VERSION=199209:|) may have failed." 1>&2
- $echo The command "cmp obs-plus-x2.O $srcdir/obs-plus-x2.X" failed. 1>&2
- errors=`expr $errors + 1`;;
- esac
-fi
-test -s obs-plus-x2.E || rm -f obs-plus-x2.E
-_POSIX2_VERSION=199209 $xx +l < $srcdir/obs-plus-x2.I > obs-plus-x2.O 2> obs-plus-x2.E
-code=$?
-if test $code != 0; then
- $echo "Test obs-plus-x2(_POSIX2_VERSION=199209:<) failed: $xx return code $code differs from expected value 0" 1>&2
- errors=`expr $errors + 1`
-else
- cmp obs-plus-x2.O $srcdir/obs-plus-x2.X > /dev/null 2>&1
- case $? in
- 0) if test "$VERBOSE"; then $echo "passed obs-plus-x2(_POSIX2_VERSION=199209:<)"; fi;;
- 1) $echo "Test obs-plus-x2(_POSIX2_VERSION=199209:<) failed: files obs-plus-x2.O and $srcdir/obs-plus-x2.X differ" 1>&2
- (diff -c obs-plus-x2.O $srcdir/obs-plus-x2.X) 2> /dev/null
- errors=`expr $errors + 1`;;
- 2) $echo "Test obs-plus-x2(_POSIX2_VERSION=199209:<) may have failed." 1>&2
- $echo The command "cmp obs-plus-x2.O $srcdir/obs-plus-x2.X" failed. 1>&2
- errors=`expr $errors + 1`;;
- esac
-fi
-test -s obs-plus-x2.E || rm -f obs-plus-x2.E
-$xx -l $srcdir/obs-l.I > obs-l.O 2> obs-l.E
-code=$?
-if test $code != 0; then
- $echo "Test obs-l(F) failed: $xx return code $code differs from expected value 0" 1>&2
- errors=`expr $errors + 1`
-else
- cmp obs-l.O $srcdir/obs-l.X > /dev/null 2>&1
- case $? in
- 0) if test "$VERBOSE"; then $echo "passed obs-l(F)"; fi;;
- 1) $echo "Test obs-l(F) failed: files obs-l.O and $srcdir/obs-l.X differ" 1>&2
- (diff -c obs-l.O $srcdir/obs-l.X) 2> /dev/null
- errors=`expr $errors + 1`;;
- 2) $echo "Test obs-l(F) may have failed." 1>&2
- $echo The command "cmp obs-l.O $srcdir/obs-l.X" failed. 1>&2
- errors=`expr $errors + 1`;;
- esac
-fi
-test -s obs-l.E || rm -f obs-l.E
-cat $srcdir/obs-l.I | $xx -l > obs-l.O 2> obs-l.E
-code=$?
-if test $code != 0; then
- $echo "Test obs-l(|) failed: $xx return code $code differs from expected value 0" 1>&2
- errors=`expr $errors + 1`
-else
- cmp obs-l.O $srcdir/obs-l.X > /dev/null 2>&1
- case $? in
- 0) if test "$VERBOSE"; then $echo "passed obs-l(|)"; fi;;
- 1) $echo "Test obs-l(|) failed: files obs-l.O and $srcdir/obs-l.X differ" 1>&2
- (diff -c obs-l.O $srcdir/obs-l.X) 2> /dev/null
- errors=`expr $errors + 1`;;
- 2) $echo "Test obs-l(|) may have failed." 1>&2
- $echo The command "cmp obs-l.O $srcdir/obs-l.X" failed. 1>&2
- errors=`expr $errors + 1`;;
- esac
-fi
-test -s obs-l.E || rm -f obs-l.E
-$xx -l < $srcdir/obs-l.I > obs-l.O 2> obs-l.E
-code=$?
-if test $code != 0; then
- $echo "Test obs-l(<) failed: $xx return code $code differs from expected value 0" 1>&2
- errors=`expr $errors + 1`
-else
- cmp obs-l.O $srcdir/obs-l.X > /dev/null 2>&1
- case $? in
- 0) if test "$VERBOSE"; then $echo "passed obs-l(<)"; fi;;
- 1) $echo "Test obs-l(<) failed: files obs-l.O and $srcdir/obs-l.X differ" 1>&2
- (diff -c obs-l.O $srcdir/obs-l.X) 2> /dev/null
- errors=`expr $errors + 1`;;
- 2) $echo "Test obs-l(<) may have failed." 1>&2
- $echo The command "cmp obs-l.O $srcdir/obs-l.X" failed. 1>&2
- errors=`expr $errors + 1`;;
- esac
-fi
-test -s obs-l.E || rm -f obs-l.E
-$xx -b $srcdir/obs-b.I > obs-b.O 2> obs-b.E
-code=$?
-if test $code != 0; then
- $echo "Test obs-b(F) failed: $xx return code $code differs from expected value 0" 1>&2
- errors=`expr $errors + 1`
-else
- cmp obs-b.O $srcdir/obs-b.X > /dev/null 2>&1
- case $? in
- 0) if test "$VERBOSE"; then $echo "passed obs-b(F)"; fi;;
- 1) $echo "Test obs-b(F) failed: files obs-b.O and $srcdir/obs-b.X differ" 1>&2
- (diff -c obs-b.O $srcdir/obs-b.X) 2> /dev/null
- errors=`expr $errors + 1`;;
- 2) $echo "Test obs-b(F) may have failed." 1>&2
- $echo The command "cmp obs-b.O $srcdir/obs-b.X" failed. 1>&2
- errors=`expr $errors + 1`;;
- esac
-fi
-test -s obs-b.E || rm -f obs-b.E
-cat $srcdir/obs-b.I | $xx -b > obs-b.O 2> obs-b.E
-code=$?
-if test $code != 0; then
- $echo "Test obs-b(|) failed: $xx return code $code differs from expected value 0" 1>&2
- errors=`expr $errors + 1`
-else
- cmp obs-b.O $srcdir/obs-b.X > /dev/null 2>&1
- case $? in
- 0) if test "$VERBOSE"; then $echo "passed obs-b(|)"; fi;;
- 1) $echo "Test obs-b(|) failed: files obs-b.O and $srcdir/obs-b.X differ" 1>&2
- (diff -c obs-b.O $srcdir/obs-b.X) 2> /dev/null
- errors=`expr $errors + 1`;;
- 2) $echo "Test obs-b(|) may have failed." 1>&2
- $echo The command "cmp obs-b.O $srcdir/obs-b.X" failed. 1>&2
- errors=`expr $errors + 1`;;
- esac
-fi
-test -s obs-b.E || rm -f obs-b.E
-$xx -b < $srcdir/obs-b.I > obs-b.O 2> obs-b.E
-code=$?
-if test $code != 0; then
- $echo "Test obs-b(<) failed: $xx return code $code differs from expected value 0" 1>&2
- errors=`expr $errors + 1`
-else
- cmp obs-b.O $srcdir/obs-b.X > /dev/null 2>&1
- case $? in
- 0) if test "$VERBOSE"; then $echo "passed obs-b(<)"; fi;;
- 1) $echo "Test obs-b(<) failed: files obs-b.O and $srcdir/obs-b.X differ" 1>&2
- (diff -c obs-b.O $srcdir/obs-b.X) 2> /dev/null
- errors=`expr $errors + 1`;;
- 2) $echo "Test obs-b(<) may have failed." 1>&2
- $echo The command "cmp obs-b.O $srcdir/obs-b.X" failed. 1>&2
- errors=`expr $errors + 1`;;
- esac
-fi
-test -s obs-b.E || rm -f obs-b.E
-cat $srcdir/err-1.I | $xx +cl > err-1.O 2> err-1.E
-code=$?
-if test $code != 1; then
- $echo "Test err-1(|) failed: $xx return code $code differs from expected value 1" 1>&2
- errors=`expr $errors + 1`
-else
- cmp err-1.O $srcdir/err-1.X > /dev/null 2>&1
- case $? in
- 0) if test "$VERBOSE"; then $echo "passed err-1(|)"; fi;;
- 1) $echo "Test err-1(|) failed: files err-1.O and $srcdir/err-1.X differ" 1>&2
- (diff -c err-1.O $srcdir/err-1.X) 2> /dev/null
- errors=`expr $errors + 1`;;
- 2) $echo "Test err-1(|) may have failed." 1>&2
- $echo The command "cmp err-1.O $srcdir/err-1.X" failed. 1>&2
- errors=`expr $errors + 1`;;
- esac
-fi
-test -s err-1.E || rm -f err-1.E
-$xx +cl < $srcdir/err-1.I > err-1.O 2> err-1.E
-code=$?
-if test $code != 1; then
- $echo "Test err-1(<) failed: $xx return code $code differs from expected value 1" 1>&2
- errors=`expr $errors + 1`
-else
- cmp err-1.O $srcdir/err-1.X > /dev/null 2>&1
- case $? in
- 0) if test "$VERBOSE"; then $echo "passed err-1(<)"; fi;;
- 1) $echo "Test err-1(<) failed: files err-1.O and $srcdir/err-1.X differ" 1>&2
- (diff -c err-1.O $srcdir/err-1.X) 2> /dev/null
- errors=`expr $errors + 1`;;
- 2) $echo "Test err-1(<) may have failed." 1>&2
- $echo The command "cmp err-1.O $srcdir/err-1.X" failed. 1>&2
- errors=`expr $errors + 1`;;
- esac
-fi
-test -s err-1.E || rm -f err-1.E
-$xx -cl $srcdir/err-2.I > err-2.O 2> err-2.E
-code=$?
-if test $code != 1; then
- $echo "Test err-2(F) failed: $xx return code $code differs from expected value 1" 1>&2
- errors=`expr $errors + 1`
-else
- cmp err-2.O $srcdir/err-2.X > /dev/null 2>&1
- case $? in
- 0) if test "$VERBOSE"; then $echo "passed err-2(F)"; fi;;
- 1) $echo "Test err-2(F) failed: files err-2.O and $srcdir/err-2.X differ" 1>&2
- (diff -c err-2.O $srcdir/err-2.X) 2> /dev/null
- errors=`expr $errors + 1`;;
- 2) $echo "Test err-2(F) may have failed." 1>&2
- $echo The command "cmp err-2.O $srcdir/err-2.X" failed. 1>&2
- errors=`expr $errors + 1`;;
- esac
-fi
-test -s err-2.E || rm -f err-2.E
-cat $srcdir/err-2.I | $xx -cl > err-2.O 2> err-2.E
-code=$?
-if test $code != 1; then
- $echo "Test err-2(|) failed: $xx return code $code differs from expected value 1" 1>&2
- errors=`expr $errors + 1`
-else
- cmp err-2.O $srcdir/err-2.X > /dev/null 2>&1
- case $? in
- 0) if test "$VERBOSE"; then $echo "passed err-2(|)"; fi;;
- 1) $echo "Test err-2(|) failed: files err-2.O and $srcdir/err-2.X differ" 1>&2
- (diff -c err-2.O $srcdir/err-2.X) 2> /dev/null
- errors=`expr $errors + 1`;;
- 2) $echo "Test err-2(|) may have failed." 1>&2
- $echo The command "cmp err-2.O $srcdir/err-2.X" failed. 1>&2
- errors=`expr $errors + 1`;;
- esac
-fi
-test -s err-2.E || rm -f err-2.E
-$xx -cl < $srcdir/err-2.I > err-2.O 2> err-2.E
-code=$?
-if test $code != 1; then
- $echo "Test err-2(<) failed: $xx return code $code differs from expected value 1" 1>&2
- errors=`expr $errors + 1`
-else
- cmp err-2.O $srcdir/err-2.X > /dev/null 2>&1
- case $? in
- 0) if test "$VERBOSE"; then $echo "passed err-2(<)"; fi;;
- 1) $echo "Test err-2(<) failed: files err-2.O and $srcdir/err-2.X differ" 1>&2
- (diff -c err-2.O $srcdir/err-2.X) 2> /dev/null
- errors=`expr $errors + 1`;;
- 2) $echo "Test err-2(<) may have failed." 1>&2
- $echo The command "cmp err-2.O $srcdir/err-2.X" failed. 1>&2
- errors=`expr $errors + 1`;;
- esac
-fi
-test -s err-2.E || rm -f err-2.E
-cat $srcdir/err-3.I | $xx +2cz > err-3.O 2> err-3.E
-code=$?
-if test $code != 1; then
- $echo "Test err-3(|) failed: $xx return code $code differs from expected value 1" 1>&2
- errors=`expr $errors + 1`
-else
- cmp err-3.O $srcdir/err-3.X > /dev/null 2>&1
- case $? in
- 0) if test "$VERBOSE"; then $echo "passed err-3(|)"; fi;;
- 1) $echo "Test err-3(|) failed: files err-3.O and $srcdir/err-3.X differ" 1>&2
- (diff -c err-3.O $srcdir/err-3.X) 2> /dev/null
- errors=`expr $errors + 1`;;
- 2) $echo "Test err-3(|) may have failed." 1>&2
- $echo The command "cmp err-3.O $srcdir/err-3.X" failed. 1>&2
- errors=`expr $errors + 1`;;
- esac
-fi
-test -s err-3.E || rm -f err-3.E
-$xx +2cz < $srcdir/err-3.I > err-3.O 2> err-3.E
-code=$?
-if test $code != 1; then
- $echo "Test err-3(<) failed: $xx return code $code differs from expected value 1" 1>&2
- errors=`expr $errors + 1`
-else
- cmp err-3.O $srcdir/err-3.X > /dev/null 2>&1
- case $? in
- 0) if test "$VERBOSE"; then $echo "passed err-3(<)"; fi;;
- 1) $echo "Test err-3(<) failed: files err-3.O and $srcdir/err-3.X differ" 1>&2
- (diff -c err-3.O $srcdir/err-3.X) 2> /dev/null
- errors=`expr $errors + 1`;;
- 2) $echo "Test err-3(<) may have failed." 1>&2
- $echo The command "cmp err-3.O $srcdir/err-3.X" failed. 1>&2
- errors=`expr $errors + 1`;;
- esac
-fi
-test -s err-3.E || rm -f err-3.E
-$xx -2cX $srcdir/err-4.I > err-4.O 2> err-4.E
-code=$?
-if test $code != 1; then
- $echo "Test err-4(F) failed: $xx return code $code differs from expected value 1" 1>&2
- errors=`expr $errors + 1`
-else
- cmp err-4.O $srcdir/err-4.X > /dev/null 2>&1
- case $? in
- 0) if test "$VERBOSE"; then $echo "passed err-4(F)"; fi;;
- 1) $echo "Test err-4(F) failed: files err-4.O and $srcdir/err-4.X differ" 1>&2
- (diff -c err-4.O $srcdir/err-4.X) 2> /dev/null
- errors=`expr $errors + 1`;;
- 2) $echo "Test err-4(F) may have failed." 1>&2
- $echo The command "cmp err-4.O $srcdir/err-4.X" failed. 1>&2
- errors=`expr $errors + 1`;;
- esac
-fi
-test -s err-4.E || rm -f err-4.E
-cat $srcdir/err-4.I | $xx -2cX > err-4.O 2> err-4.E
-code=$?
-if test $code != 1; then
- $echo "Test err-4(|) failed: $xx return code $code differs from expected value 1" 1>&2
- errors=`expr $errors + 1`
-else
- cmp err-4.O $srcdir/err-4.X > /dev/null 2>&1
- case $? in
- 0) if test "$VERBOSE"; then $echo "passed err-4(|)"; fi;;
- 1) $echo "Test err-4(|) failed: files err-4.O and $srcdir/err-4.X differ" 1>&2
- (diff -c err-4.O $srcdir/err-4.X) 2> /dev/null
- errors=`expr $errors + 1`;;
- 2) $echo "Test err-4(|) may have failed." 1>&2
- $echo The command "cmp err-4.O $srcdir/err-4.X" failed. 1>&2
- errors=`expr $errors + 1`;;
- esac
-fi
-test -s err-4.E || rm -f err-4.E
-$xx -2cX < $srcdir/err-4.I > err-4.O 2> err-4.E
-code=$?
-if test $code != 1; then
- $echo "Test err-4(<) failed: $xx return code $code differs from expected value 1" 1>&2
- errors=`expr $errors + 1`
-else
- cmp err-4.O $srcdir/err-4.X > /dev/null 2>&1
- case $? in
- 0) if test "$VERBOSE"; then $echo "passed err-4(<)"; fi;;
- 1) $echo "Test err-4(<) failed: files err-4.O and $srcdir/err-4.X differ" 1>&2
- (diff -c err-4.O $srcdir/err-4.X) 2> /dev/null
- errors=`expr $errors + 1`;;
- 2) $echo "Test err-4(<) may have failed." 1>&2
- $echo The command "cmp err-4.O $srcdir/err-4.X" failed. 1>&2
- errors=`expr $errors + 1`;;
- esac
-fi
-test -s err-4.E || rm -f err-4.E
-$xx -c99999999999999999999 $srcdir/err-5.I > err-5.O 2> err-5.E
-code=$?
-if test $code != 1; then
- $echo "Test err-5(F) failed: $xx return code $code differs from expected value 1" 1>&2
- errors=`expr $errors + 1`
-else
- cmp err-5.O $srcdir/err-5.X > /dev/null 2>&1
- case $? in
- 0) if test "$VERBOSE"; then $echo "passed err-5(F)"; fi;;
- 1) $echo "Test err-5(F) failed: files err-5.O and $srcdir/err-5.X differ" 1>&2
- (diff -c err-5.O $srcdir/err-5.X) 2> /dev/null
- errors=`expr $errors + 1`;;
- 2) $echo "Test err-5(F) may have failed." 1>&2
- $echo The command "cmp err-5.O $srcdir/err-5.X" failed. 1>&2
- errors=`expr $errors + 1`;;
- esac
-fi
-test -s err-5.E || rm -f err-5.E
-cat $srcdir/err-5.I | $xx -c99999999999999999999 > err-5.O 2> err-5.E
-code=$?
-if test $code != 1; then
- $echo "Test err-5(|) failed: $xx return code $code differs from expected value 1" 1>&2
- errors=`expr $errors + 1`
-else
- cmp err-5.O $srcdir/err-5.X > /dev/null 2>&1
- case $? in
- 0) if test "$VERBOSE"; then $echo "passed err-5(|)"; fi;;
- 1) $echo "Test err-5(|) failed: files err-5.O and $srcdir/err-5.X differ" 1>&2
- (diff -c err-5.O $srcdir/err-5.X) 2> /dev/null
- errors=`expr $errors + 1`;;
- 2) $echo "Test err-5(|) may have failed." 1>&2
- $echo The command "cmp err-5.O $srcdir/err-5.X" failed. 1>&2
- errors=`expr $errors + 1`;;
- esac
-fi
-test -s err-5.E || rm -f err-5.E
-$xx -c99999999999999999999 < $srcdir/err-5.I > err-5.O 2> err-5.E
-code=$?
-if test $code != 1; then
- $echo "Test err-5(<) failed: $xx return code $code differs from expected value 1" 1>&2
- errors=`expr $errors + 1`
-else
- cmp err-5.O $srcdir/err-5.X > /dev/null 2>&1
- case $? in
- 0) if test "$VERBOSE"; then $echo "passed err-5(<)"; fi;;
- 1) $echo "Test err-5(<) failed: files err-5.O and $srcdir/err-5.X differ" 1>&2
- (diff -c err-5.O $srcdir/err-5.X) 2> /dev/null
- errors=`expr $errors + 1`;;
- 2) $echo "Test err-5(<) may have failed." 1>&2
- $echo The command "cmp err-5.O $srcdir/err-5.X" failed. 1>&2
- errors=`expr $errors + 1`;;
- esac
-fi
-test -s err-5.E || rm -f err-5.E
-_POSIX2_VERSION=200112 $xx -c $srcdir/err-6.I > err-6.O 2> err-6.E
-code=$?
-if test $code != 1; then
- $echo "Test err-6(_POSIX2_VERSION=200112:F) failed: $xx return code $code differs from expected value 1" 1>&2
- errors=`expr $errors + 1`
-else
- cmp err-6.O $srcdir/err-6.X > /dev/null 2>&1
- case $? in
- 0) if test "$VERBOSE"; then $echo "passed err-6(_POSIX2_VERSION=200112:F)"; fi;;
- 1) $echo "Test err-6(_POSIX2_VERSION=200112:F) failed: files err-6.O and $srcdir/err-6.X differ" 1>&2
- (diff -c err-6.O $srcdir/err-6.X) 2> /dev/null
- errors=`expr $errors + 1`;;
- 2) $echo "Test err-6(_POSIX2_VERSION=200112:F) may have failed." 1>&2
- $echo The command "cmp err-6.O $srcdir/err-6.X" failed. 1>&2
- errors=`expr $errors + 1`;;
- esac
-fi
-test -s err-6.E || rm -f err-6.E
-cat $srcdir/err-6.I | _POSIX2_VERSION=200112 $xx -c > err-6.O 2> err-6.E
-code=$?
-if test $code != 1; then
- $echo "Test err-6(_POSIX2_VERSION=200112:|) failed: $xx return code $code differs from expected value 1" 1>&2
- errors=`expr $errors + 1`
-else
- cmp err-6.O $srcdir/err-6.X > /dev/null 2>&1
- case $? in
- 0) if test "$VERBOSE"; then $echo "passed err-6(_POSIX2_VERSION=200112:|)"; fi;;
- 1) $echo "Test err-6(_POSIX2_VERSION=200112:|) failed: files err-6.O and $srcdir/err-6.X differ" 1>&2
- (diff -c err-6.O $srcdir/err-6.X) 2> /dev/null
- errors=`expr $errors + 1`;;
- 2) $echo "Test err-6(_POSIX2_VERSION=200112:|) may have failed." 1>&2
- $echo The command "cmp err-6.O $srcdir/err-6.X" failed. 1>&2
- errors=`expr $errors + 1`;;
- esac
-fi
-test -s err-6.E || rm -f err-6.E
-_POSIX2_VERSION=200112 $xx -c < $srcdir/err-6.I > err-6.O 2> err-6.E
-code=$?
-if test $code != 1; then
- $echo "Test err-6(_POSIX2_VERSION=200112:<) failed: $xx return code $code differs from expected value 1" 1>&2
- errors=`expr $errors + 1`
-else
- cmp err-6.O $srcdir/err-6.X > /dev/null 2>&1
- case $? in
- 0) if test "$VERBOSE"; then $echo "passed err-6(_POSIX2_VERSION=200112:<)"; fi;;
- 1) $echo "Test err-6(_POSIX2_VERSION=200112:<) failed: files err-6.O and $srcdir/err-6.X differ" 1>&2
- (diff -c err-6.O $srcdir/err-6.X) 2> /dev/null
- errors=`expr $errors + 1`;;
- 2) $echo "Test err-6(_POSIX2_VERSION=200112:<) may have failed." 1>&2
- $echo The command "cmp err-6.O $srcdir/err-6.X" failed. 1>&2
- errors=`expr $errors + 1`;;
- esac
-fi
-test -s err-6.E || rm -f err-6.E
-cat $srcdir/minus-1.I | _POSIX2_VERSION=199209 $xx - > minus-1.O 2> minus-1.E
-code=$?
-if test $code != 0; then
- $echo "Test minus-1(_POSIX2_VERSION=199209:|) failed: $xx return code $code differs from expected value 0" 1>&2
- errors=`expr $errors + 1`
-else
- cmp minus-1.O $srcdir/minus-1.X > /dev/null 2>&1
- case $? in
- 0) if test "$VERBOSE"; then $echo "passed minus-1(_POSIX2_VERSION=199209:|)"; fi;;
- 1) $echo "Test minus-1(_POSIX2_VERSION=199209:|) failed: files minus-1.O and $srcdir/minus-1.X differ" 1>&2
- (diff -c minus-1.O $srcdir/minus-1.X) 2> /dev/null
- errors=`expr $errors + 1`;;
- 2) $echo "Test minus-1(_POSIX2_VERSION=199209:|) may have failed." 1>&2
- $echo The command "cmp minus-1.O $srcdir/minus-1.X" failed. 1>&2
- errors=`expr $errors + 1`;;
- esac
-fi
-test -s minus-1.E || rm -f minus-1.E
-_POSIX2_VERSION=199209 $xx - < $srcdir/minus-1.I > minus-1.O 2> minus-1.E
-code=$?
-if test $code != 0; then
- $echo "Test minus-1(_POSIX2_VERSION=199209:<) failed: $xx return code $code differs from expected value 0" 1>&2
- errors=`expr $errors + 1`
-else
- cmp minus-1.O $srcdir/minus-1.X > /dev/null 2>&1
- case $? in
- 0) if test "$VERBOSE"; then $echo "passed minus-1(_POSIX2_VERSION=199209:<)"; fi;;
- 1) $echo "Test minus-1(_POSIX2_VERSION=199209:<) failed: files minus-1.O and $srcdir/minus-1.X differ" 1>&2
- (diff -c minus-1.O $srcdir/minus-1.X) 2> /dev/null
- errors=`expr $errors + 1`;;
- 2) $echo "Test minus-1(_POSIX2_VERSION=199209:<) may have failed." 1>&2
- $echo The command "cmp minus-1.O $srcdir/minus-1.X" failed. 1>&2
- errors=`expr $errors + 1`;;
- esac
-fi
-test -s minus-1.E || rm -f minus-1.E
-cat $srcdir/minus-2.I | _POSIX2_VERSION=199209 $xx - > minus-2.O 2> minus-2.E
-code=$?
-if test $code != 0; then
- $echo "Test minus-2(_POSIX2_VERSION=199209:|) failed: $xx return code $code differs from expected value 0" 1>&2
- errors=`expr $errors + 1`
-else
- cmp minus-2.O $srcdir/minus-2.X > /dev/null 2>&1
- case $? in
- 0) if test "$VERBOSE"; then $echo "passed minus-2(_POSIX2_VERSION=199209:|)"; fi;;
- 1) $echo "Test minus-2(_POSIX2_VERSION=199209:|) failed: files minus-2.O and $srcdir/minus-2.X differ" 1>&2
- (diff -c minus-2.O $srcdir/minus-2.X) 2> /dev/null
- errors=`expr $errors + 1`;;
- 2) $echo "Test minus-2(_POSIX2_VERSION=199209:|) may have failed." 1>&2
- $echo The command "cmp minus-2.O $srcdir/minus-2.X" failed. 1>&2
- errors=`expr $errors + 1`;;
- esac
-fi
-test -s minus-2.E || rm -f minus-2.E
-_POSIX2_VERSION=199209 $xx - < $srcdir/minus-2.I > minus-2.O 2> minus-2.E
-code=$?
-if test $code != 0; then
- $echo "Test minus-2(_POSIX2_VERSION=199209:<) failed: $xx return code $code differs from expected value 0" 1>&2
- errors=`expr $errors + 1`
-else
- cmp minus-2.O $srcdir/minus-2.X > /dev/null 2>&1
- case $? in
- 0) if test "$VERBOSE"; then $echo "passed minus-2(_POSIX2_VERSION=199209:<)"; fi;;
- 1) $echo "Test minus-2(_POSIX2_VERSION=199209:<) failed: files minus-2.O and $srcdir/minus-2.X differ" 1>&2
- (diff -c minus-2.O $srcdir/minus-2.X) 2> /dev/null
- errors=`expr $errors + 1`;;
- 2) $echo "Test minus-2(_POSIX2_VERSION=199209:<) may have failed." 1>&2
- $echo The command "cmp minus-2.O $srcdir/minus-2.X" failed. 1>&2
- errors=`expr $errors + 1`;;
- esac
-fi
-test -s minus-2.E || rm -f minus-2.E
-_POSIX2_VERSION=200112 $xx -c 2 $srcdir/c-2.I > c-2.O 2> c-2.E
-code=$?
-if test $code != 0; then
- $echo "Test c-2(_POSIX2_VERSION=200112:F) failed: $xx return code $code differs from expected value 0" 1>&2
- errors=`expr $errors + 1`
-else
- cmp c-2.O $srcdir/c-2.X > /dev/null 2>&1
- case $? in
- 0) if test "$VERBOSE"; then $echo "passed c-2(_POSIX2_VERSION=200112:F)"; fi;;
- 1) $echo "Test c-2(_POSIX2_VERSION=200112:F) failed: files c-2.O and $srcdir/c-2.X differ" 1>&2
- (diff -c c-2.O $srcdir/c-2.X) 2> /dev/null
- errors=`expr $errors + 1`;;
- 2) $echo "Test c-2(_POSIX2_VERSION=200112:F) may have failed." 1>&2
- $echo The command "cmp c-2.O $srcdir/c-2.X" failed. 1>&2
- errors=`expr $errors + 1`;;
- esac
-fi
-test -s c-2.E || rm -f c-2.E
-cat $srcdir/c-2.I | _POSIX2_VERSION=200112 $xx -c 2 > c-2.O 2> c-2.E
-code=$?
-if test $code != 0; then
- $echo "Test c-2(_POSIX2_VERSION=200112:|) failed: $xx return code $code differs from expected value 0" 1>&2
- errors=`expr $errors + 1`
-else
- cmp c-2.O $srcdir/c-2.X > /dev/null 2>&1
- case $? in
- 0) if test "$VERBOSE"; then $echo "passed c-2(_POSIX2_VERSION=200112:|)"; fi;;
- 1) $echo "Test c-2(_POSIX2_VERSION=200112:|) failed: files c-2.O and $srcdir/c-2.X differ" 1>&2
- (diff -c c-2.O $srcdir/c-2.X) 2> /dev/null
- errors=`expr $errors + 1`;;
- 2) $echo "Test c-2(_POSIX2_VERSION=200112:|) may have failed." 1>&2
- $echo The command "cmp c-2.O $srcdir/c-2.X" failed. 1>&2
- errors=`expr $errors + 1`;;
- esac
-fi
-test -s c-2.E || rm -f c-2.E
-_POSIX2_VERSION=200112 $xx -c 2 < $srcdir/c-2.I > c-2.O 2> c-2.E
-code=$?
-if test $code != 0; then
- $echo "Test c-2(_POSIX2_VERSION=200112:<) failed: $xx return code $code differs from expected value 0" 1>&2
- errors=`expr $errors + 1`
-else
- cmp c-2.O $srcdir/c-2.X > /dev/null 2>&1
- case $? in
- 0) if test "$VERBOSE"; then $echo "passed c-2(_POSIX2_VERSION=200112:<)"; fi;;
- 1) $echo "Test c-2(_POSIX2_VERSION=200112:<) failed: files c-2.O and $srcdir/c-2.X differ" 1>&2
- (diff -c c-2.O $srcdir/c-2.X) 2> /dev/null
- errors=`expr $errors + 1`;;
- 2) $echo "Test c-2(_POSIX2_VERSION=200112:<) may have failed." 1>&2
- $echo The command "cmp c-2.O $srcdir/c-2.X" failed. 1>&2
- errors=`expr $errors + 1`;;
- esac
-fi
-test -s c-2.E || rm -f c-2.E
-$xx -c 2 -- $srcdir/c-2-minus.I > c-2-minus.O 2> c-2-minus.E
-code=$?
-if test $code != 0; then
- $echo "Test c-2-minus(F) failed: $xx return code $code differs from expected value 0" 1>&2
- errors=`expr $errors + 1`
-else
- cmp c-2-minus.O $srcdir/c-2-minus.X > /dev/null 2>&1
- case $? in
- 0) if test "$VERBOSE"; then $echo "passed c-2-minus(F)"; fi;;
- 1) $echo "Test c-2-minus(F) failed: files c-2-minus.O and $srcdir/c-2-minus.X differ" 1>&2
- (diff -c c-2-minus.O $srcdir/c-2-minus.X) 2> /dev/null
- errors=`expr $errors + 1`;;
- 2) $echo "Test c-2-minus(F) may have failed." 1>&2
- $echo The command "cmp c-2-minus.O $srcdir/c-2-minus.X" failed. 1>&2
- errors=`expr $errors + 1`;;
- esac
-fi
-test -s c-2-minus.E || rm -f c-2-minus.E
-cat $srcdir/c-2-minus.I | $xx -c 2 -- > c-2-minus.O 2> c-2-minus.E
-code=$?
-if test $code != 0; then
- $echo "Test c-2-minus(|) failed: $xx return code $code differs from expected value 0" 1>&2
- errors=`expr $errors + 1`
-else
- cmp c-2-minus.O $srcdir/c-2-minus.X > /dev/null 2>&1
- case $? in
- 0) if test "$VERBOSE"; then $echo "passed c-2-minus(|)"; fi;;
- 1) $echo "Test c-2-minus(|) failed: files c-2-minus.O and $srcdir/c-2-minus.X differ" 1>&2
- (diff -c c-2-minus.O $srcdir/c-2-minus.X) 2> /dev/null
- errors=`expr $errors + 1`;;
- 2) $echo "Test c-2-minus(|) may have failed." 1>&2
- $echo The command "cmp c-2-minus.O $srcdir/c-2-minus.X" failed. 1>&2
- errors=`expr $errors + 1`;;
- esac
-fi
-test -s c-2-minus.E || rm -f c-2-minus.E
-$xx -c 2 -- < $srcdir/c-2-minus.I > c-2-minus.O 2> c-2-minus.E
-code=$?
-if test $code != 0; then
- $echo "Test c-2-minus(<) failed: $xx return code $code differs from expected value 0" 1>&2
- errors=`expr $errors + 1`
-else
- cmp c-2-minus.O $srcdir/c-2-minus.X > /dev/null 2>&1
- case $? in
- 0) if test "$VERBOSE"; then $echo "passed c-2-minus(<)"; fi;;
- 1) $echo "Test c-2-minus(<) failed: files c-2-minus.O and $srcdir/c-2-minus.X differ" 1>&2
- (diff -c c-2-minus.O $srcdir/c-2-minus.X) 2> /dev/null
- errors=`expr $errors + 1`;;
- 2) $echo "Test c-2-minus(<) may have failed." 1>&2
- $echo The command "cmp c-2-minus.O $srcdir/c-2-minus.X" failed. 1>&2
- errors=`expr $errors + 1`;;
- esac
-fi
-test -s c-2-minus.E || rm -f c-2-minus.E
-$xx -c2 $srcdir/c2.I > c2.O 2> c2.E
-code=$?
-if test $code != 0; then
- $echo "Test c2(F) failed: $xx return code $code differs from expected value 0" 1>&2
- errors=`expr $errors + 1`
-else
- cmp c2.O $srcdir/c2.X > /dev/null 2>&1
- case $? in
- 0) if test "$VERBOSE"; then $echo "passed c2(F)"; fi;;
- 1) $echo "Test c2(F) failed: files c2.O and $srcdir/c2.X differ" 1>&2
- (diff -c c2.O $srcdir/c2.X) 2> /dev/null
- errors=`expr $errors + 1`;;
- 2) $echo "Test c2(F) may have failed." 1>&2
- $echo The command "cmp c2.O $srcdir/c2.X" failed. 1>&2
- errors=`expr $errors + 1`;;
- esac
-fi
-test -s c2.E || rm -f c2.E
-cat $srcdir/c2.I | $xx -c2 > c2.O 2> c2.E
-code=$?
-if test $code != 0; then
- $echo "Test c2(|) failed: $xx return code $code differs from expected value 0" 1>&2
- errors=`expr $errors + 1`
-else
- cmp c2.O $srcdir/c2.X > /dev/null 2>&1
- case $? in
- 0) if test "$VERBOSE"; then $echo "passed c2(|)"; fi;;
- 1) $echo "Test c2(|) failed: files c2.O and $srcdir/c2.X differ" 1>&2
- (diff -c c2.O $srcdir/c2.X) 2> /dev/null
- errors=`expr $errors + 1`;;
- 2) $echo "Test c2(|) may have failed." 1>&2
- $echo The command "cmp c2.O $srcdir/c2.X" failed. 1>&2
- errors=`expr $errors + 1`;;
- esac
-fi
-test -s c2.E || rm -f c2.E
-$xx -c2 < $srcdir/c2.I > c2.O 2> c2.E
-code=$?
-if test $code != 0; then
- $echo "Test c2(<) failed: $xx return code $code differs from expected value 0" 1>&2
- errors=`expr $errors + 1`
-else
- cmp c2.O $srcdir/c2.X > /dev/null 2>&1
- case $? in
- 0) if test "$VERBOSE"; then $echo "passed c2(<)"; fi;;
- 1) $echo "Test c2(<) failed: files c2.O and $srcdir/c2.X differ" 1>&2
- (diff -c c2.O $srcdir/c2.X) 2> /dev/null
- errors=`expr $errors + 1`;;
- 2) $echo "Test c2(<) may have failed." 1>&2
- $echo The command "cmp c2.O $srcdir/c2.X" failed. 1>&2
- errors=`expr $errors + 1`;;
- esac
-fi
-test -s c2.E || rm -f c2.E
-$xx -c2 -- $srcdir/c2-minus.I > c2-minus.O 2> c2-minus.E
-code=$?
-if test $code != 0; then
- $echo "Test c2-minus(F) failed: $xx return code $code differs from expected value 0" 1>&2
- errors=`expr $errors + 1`
-else
- cmp c2-minus.O $srcdir/c2-minus.X > /dev/null 2>&1
- case $? in
- 0) if test "$VERBOSE"; then $echo "passed c2-minus(F)"; fi;;
- 1) $echo "Test c2-minus(F) failed: files c2-minus.O and $srcdir/c2-minus.X differ" 1>&2
- (diff -c c2-minus.O $srcdir/c2-minus.X) 2> /dev/null
- errors=`expr $errors + 1`;;
- 2) $echo "Test c2-minus(F) may have failed." 1>&2
- $echo The command "cmp c2-minus.O $srcdir/c2-minus.X" failed. 1>&2
- errors=`expr $errors + 1`;;
- esac
-fi
-test -s c2-minus.E || rm -f c2-minus.E
-cat $srcdir/c2-minus.I | $xx -c2 -- > c2-minus.O 2> c2-minus.E
-code=$?
-if test $code != 0; then
- $echo "Test c2-minus(|) failed: $xx return code $code differs from expected value 0" 1>&2
- errors=`expr $errors + 1`
-else
- cmp c2-minus.O $srcdir/c2-minus.X > /dev/null 2>&1
- case $? in
- 0) if test "$VERBOSE"; then $echo "passed c2-minus(|)"; fi;;
- 1) $echo "Test c2-minus(|) failed: files c2-minus.O and $srcdir/c2-minus.X differ" 1>&2
- (diff -c c2-minus.O $srcdir/c2-minus.X) 2> /dev/null
- errors=`expr $errors + 1`;;
- 2) $echo "Test c2-minus(|) may have failed." 1>&2
- $echo The command "cmp c2-minus.O $srcdir/c2-minus.X" failed. 1>&2
- errors=`expr $errors + 1`;;
- esac
-fi
-test -s c2-minus.E || rm -f c2-minus.E
-$xx -c2 -- < $srcdir/c2-minus.I > c2-minus.O 2> c2-minus.E
-code=$?
-if test $code != 0; then
- $echo "Test c2-minus(<) failed: $xx return code $code differs from expected value 0" 1>&2
- errors=`expr $errors + 1`
-else
- cmp c2-minus.O $srcdir/c2-minus.X > /dev/null 2>&1
- case $? in
- 0) if test "$VERBOSE"; then $echo "passed c2-minus(<)"; fi;;
- 1) $echo "Test c2-minus(<) failed: files c2-minus.O and $srcdir/c2-minus.X differ" 1>&2
- (diff -c c2-minus.O $srcdir/c2-minus.X) 2> /dev/null
- errors=`expr $errors + 1`;;
- 2) $echo "Test c2-minus(<) may have failed." 1>&2
- $echo The command "cmp c2-minus.O $srcdir/c2-minus.X" failed. 1>&2
- errors=`expr $errors + 1`;;
- esac
-fi
-test -s c2-minus.E || rm -f c2-minus.E
-$xx -n 10 $srcdir/n-1.I > n-1.O 2> n-1.E
-code=$?
-if test $code != 0; then
- $echo "Test n-1(F) failed: $xx return code $code differs from expected value 0" 1>&2
- errors=`expr $errors + 1`
-else
- cmp n-1.O $srcdir/n-1.X > /dev/null 2>&1
- case $? in
- 0) if test "$VERBOSE"; then $echo "passed n-1(F)"; fi;;
- 1) $echo "Test n-1(F) failed: files n-1.O and $srcdir/n-1.X differ" 1>&2
- (diff -c n-1.O $srcdir/n-1.X) 2> /dev/null
- errors=`expr $errors + 1`;;
- 2) $echo "Test n-1(F) may have failed." 1>&2
- $echo The command "cmp n-1.O $srcdir/n-1.X" failed. 1>&2
- errors=`expr $errors + 1`;;
- esac
-fi
-test -s n-1.E || rm -f n-1.E
-cat $srcdir/n-1.I | $xx -n 10 > n-1.O 2> n-1.E
-code=$?
-if test $code != 0; then
- $echo "Test n-1(|) failed: $xx return code $code differs from expected value 0" 1>&2
- errors=`expr $errors + 1`
-else
- cmp n-1.O $srcdir/n-1.X > /dev/null 2>&1
- case $? in
- 0) if test "$VERBOSE"; then $echo "passed n-1(|)"; fi;;
- 1) $echo "Test n-1(|) failed: files n-1.O and $srcdir/n-1.X differ" 1>&2
- (diff -c n-1.O $srcdir/n-1.X) 2> /dev/null
- errors=`expr $errors + 1`;;
- 2) $echo "Test n-1(|) may have failed." 1>&2
- $echo The command "cmp n-1.O $srcdir/n-1.X" failed. 1>&2
- errors=`expr $errors + 1`;;
- esac
-fi
-test -s n-1.E || rm -f n-1.E
-$xx -n 10 < $srcdir/n-1.I > n-1.O 2> n-1.E
-code=$?
-if test $code != 0; then
- $echo "Test n-1(<) failed: $xx return code $code differs from expected value 0" 1>&2
- errors=`expr $errors + 1`
-else
- cmp n-1.O $srcdir/n-1.X > /dev/null 2>&1
- case $? in
- 0) if test "$VERBOSE"; then $echo "passed n-1(<)"; fi;;
- 1) $echo "Test n-1(<) failed: files n-1.O and $srcdir/n-1.X differ" 1>&2
- (diff -c n-1.O $srcdir/n-1.X) 2> /dev/null
- errors=`expr $errors + 1`;;
- 2) $echo "Test n-1(<) may have failed." 1>&2
- $echo The command "cmp n-1.O $srcdir/n-1.X" failed. 1>&2
- errors=`expr $errors + 1`;;
- esac
-fi
-test -s n-1.E || rm -f n-1.E
-$xx -n -10 $srcdir/n-2.I > n-2.O 2> n-2.E
-code=$?
-if test $code != 0; then
- $echo "Test n-2(F) failed: $xx return code $code differs from expected value 0" 1>&2
- errors=`expr $errors + 1`
-else
- cmp n-2.O $srcdir/n-2.X > /dev/null 2>&1
- case $? in
- 0) if test "$VERBOSE"; then $echo "passed n-2(F)"; fi;;
- 1) $echo "Test n-2(F) failed: files n-2.O and $srcdir/n-2.X differ" 1>&2
- (diff -c n-2.O $srcdir/n-2.X) 2> /dev/null
- errors=`expr $errors + 1`;;
- 2) $echo "Test n-2(F) may have failed." 1>&2
- $echo The command "cmp n-2.O $srcdir/n-2.X" failed. 1>&2
- errors=`expr $errors + 1`;;
- esac
-fi
-test -s n-2.E || rm -f n-2.E
-cat $srcdir/n-2.I | $xx -n -10 > n-2.O 2> n-2.E
-code=$?
-if test $code != 0; then
- $echo "Test n-2(|) failed: $xx return code $code differs from expected value 0" 1>&2
- errors=`expr $errors + 1`
-else
- cmp n-2.O $srcdir/n-2.X > /dev/null 2>&1
- case $? in
- 0) if test "$VERBOSE"; then $echo "passed n-2(|)"; fi;;
- 1) $echo "Test n-2(|) failed: files n-2.O and $srcdir/n-2.X differ" 1>&2
- (diff -c n-2.O $srcdir/n-2.X) 2> /dev/null
- errors=`expr $errors + 1`;;
- 2) $echo "Test n-2(|) may have failed." 1>&2
- $echo The command "cmp n-2.O $srcdir/n-2.X" failed. 1>&2
- errors=`expr $errors + 1`;;
- esac
-fi
-test -s n-2.E || rm -f n-2.E
-$xx -n -10 < $srcdir/n-2.I > n-2.O 2> n-2.E
-code=$?
-if test $code != 0; then
- $echo "Test n-2(<) failed: $xx return code $code differs from expected value 0" 1>&2
- errors=`expr $errors + 1`
-else
- cmp n-2.O $srcdir/n-2.X > /dev/null 2>&1
- case $? in
- 0) if test "$VERBOSE"; then $echo "passed n-2(<)"; fi;;
- 1) $echo "Test n-2(<) failed: files n-2.O and $srcdir/n-2.X differ" 1>&2
- (diff -c n-2.O $srcdir/n-2.X) 2> /dev/null
- errors=`expr $errors + 1`;;
- 2) $echo "Test n-2(<) may have failed." 1>&2
- $echo The command "cmp n-2.O $srcdir/n-2.X" failed. 1>&2
- errors=`expr $errors + 1`;;
- esac
-fi
-test -s n-2.E || rm -f n-2.E
-$xx -n +10 $srcdir/n-3.I > n-3.O 2> n-3.E
-code=$?
-if test $code != 0; then
- $echo "Test n-3(F) failed: $xx return code $code differs from expected value 0" 1>&2
- errors=`expr $errors + 1`
-else
- cmp n-3.O $srcdir/n-3.X > /dev/null 2>&1
- case $? in
- 0) if test "$VERBOSE"; then $echo "passed n-3(F)"; fi;;
- 1) $echo "Test n-3(F) failed: files n-3.O and $srcdir/n-3.X differ" 1>&2
- (diff -c n-3.O $srcdir/n-3.X) 2> /dev/null
- errors=`expr $errors + 1`;;
- 2) $echo "Test n-3(F) may have failed." 1>&2
- $echo The command "cmp n-3.O $srcdir/n-3.X" failed. 1>&2
- errors=`expr $errors + 1`;;
- esac
-fi
-test -s n-3.E || rm -f n-3.E
-cat $srcdir/n-3.I | $xx -n +10 > n-3.O 2> n-3.E
-code=$?
-if test $code != 0; then
- $echo "Test n-3(|) failed: $xx return code $code differs from expected value 0" 1>&2
- errors=`expr $errors + 1`
-else
- cmp n-3.O $srcdir/n-3.X > /dev/null 2>&1
- case $? in
- 0) if test "$VERBOSE"; then $echo "passed n-3(|)"; fi;;
- 1) $echo "Test n-3(|) failed: files n-3.O and $srcdir/n-3.X differ" 1>&2
- (diff -c n-3.O $srcdir/n-3.X) 2> /dev/null
- errors=`expr $errors + 1`;;
- 2) $echo "Test n-3(|) may have failed." 1>&2
- $echo The command "cmp n-3.O $srcdir/n-3.X" failed. 1>&2
- errors=`expr $errors + 1`;;
- esac
-fi
-test -s n-3.E || rm -f n-3.E
-$xx -n +10 < $srcdir/n-3.I > n-3.O 2> n-3.E
-code=$?
-if test $code != 0; then
- $echo "Test n-3(<) failed: $xx return code $code differs from expected value 0" 1>&2
- errors=`expr $errors + 1`
-else
- cmp n-3.O $srcdir/n-3.X > /dev/null 2>&1
- case $? in
- 0) if test "$VERBOSE"; then $echo "passed n-3(<)"; fi;;
- 1) $echo "Test n-3(<) failed: files n-3.O and $srcdir/n-3.X differ" 1>&2
- (diff -c n-3.O $srcdir/n-3.X) 2> /dev/null
- errors=`expr $errors + 1`;;
- 2) $echo "Test n-3(<) may have failed." 1>&2
- $echo The command "cmp n-3.O $srcdir/n-3.X" failed. 1>&2
- errors=`expr $errors + 1`;;
- esac
-fi
-test -s n-3.E || rm -f n-3.E
-$xx -n +0 $srcdir/n-4.I > n-4.O 2> n-4.E
-code=$?
-if test $code != 0; then
- $echo "Test n-4(F) failed: $xx return code $code differs from expected value 0" 1>&2
- errors=`expr $errors + 1`
-else
- cmp n-4.O $srcdir/n-4.X > /dev/null 2>&1
- case $? in
- 0) if test "$VERBOSE"; then $echo "passed n-4(F)"; fi;;
- 1) $echo "Test n-4(F) failed: files n-4.O and $srcdir/n-4.X differ" 1>&2
- (diff -c n-4.O $srcdir/n-4.X) 2> /dev/null
- errors=`expr $errors + 1`;;
- 2) $echo "Test n-4(F) may have failed." 1>&2
- $echo The command "cmp n-4.O $srcdir/n-4.X" failed. 1>&2
- errors=`expr $errors + 1`;;
- esac
-fi
-test -s n-4.E || rm -f n-4.E
-cat $srcdir/n-4.I | $xx -n +0 > n-4.O 2> n-4.E
-code=$?
-if test $code != 0; then
- $echo "Test n-4(|) failed: $xx return code $code differs from expected value 0" 1>&2
- errors=`expr $errors + 1`
-else
- cmp n-4.O $srcdir/n-4.X > /dev/null 2>&1
- case $? in
- 0) if test "$VERBOSE"; then $echo "passed n-4(|)"; fi;;
- 1) $echo "Test n-4(|) failed: files n-4.O and $srcdir/n-4.X differ" 1>&2
- (diff -c n-4.O $srcdir/n-4.X) 2> /dev/null
- errors=`expr $errors + 1`;;
- 2) $echo "Test n-4(|) may have failed." 1>&2
- $echo The command "cmp n-4.O $srcdir/n-4.X" failed. 1>&2
- errors=`expr $errors + 1`;;
- esac
-fi
-test -s n-4.E || rm -f n-4.E
-$xx -n +0 < $srcdir/n-4.I > n-4.O 2> n-4.E
-code=$?
-if test $code != 0; then
- $echo "Test n-4(<) failed: $xx return code $code differs from expected value 0" 1>&2
- errors=`expr $errors + 1`
-else
- cmp n-4.O $srcdir/n-4.X > /dev/null 2>&1
- case $? in
- 0) if test "$VERBOSE"; then $echo "passed n-4(<)"; fi;;
- 1) $echo "Test n-4(<) failed: files n-4.O and $srcdir/n-4.X differ" 1>&2
- (diff -c n-4.O $srcdir/n-4.X) 2> /dev/null
- errors=`expr $errors + 1`;;
- 2) $echo "Test n-4(<) may have failed." 1>&2
- $echo The command "cmp n-4.O $srcdir/n-4.X" failed. 1>&2
- errors=`expr $errors + 1`;;
- esac
-fi
-test -s n-4.E || rm -f n-4.E
-$xx -n +1 $srcdir/n-4a.I > n-4a.O 2> n-4a.E
-code=$?
-if test $code != 0; then
- $echo "Test n-4a(F) failed: $xx return code $code differs from expected value 0" 1>&2
- errors=`expr $errors + 1`
-else
- cmp n-4a.O $srcdir/n-4a.X > /dev/null 2>&1
- case $? in
- 0) if test "$VERBOSE"; then $echo "passed n-4a(F)"; fi;;
- 1) $echo "Test n-4a(F) failed: files n-4a.O and $srcdir/n-4a.X differ" 1>&2
- (diff -c n-4a.O $srcdir/n-4a.X) 2> /dev/null
- errors=`expr $errors + 1`;;
- 2) $echo "Test n-4a(F) may have failed." 1>&2
- $echo The command "cmp n-4a.O $srcdir/n-4a.X" failed. 1>&2
- errors=`expr $errors + 1`;;
- esac
-fi
-test -s n-4a.E || rm -f n-4a.E
-cat $srcdir/n-4a.I | $xx -n +1 > n-4a.O 2> n-4a.E
-code=$?
-if test $code != 0; then
- $echo "Test n-4a(|) failed: $xx return code $code differs from expected value 0" 1>&2
- errors=`expr $errors + 1`
-else
- cmp n-4a.O $srcdir/n-4a.X > /dev/null 2>&1
- case $? in
- 0) if test "$VERBOSE"; then $echo "passed n-4a(|)"; fi;;
- 1) $echo "Test n-4a(|) failed: files n-4a.O and $srcdir/n-4a.X differ" 1>&2
- (diff -c n-4a.O $srcdir/n-4a.X) 2> /dev/null
- errors=`expr $errors + 1`;;
- 2) $echo "Test n-4a(|) may have failed." 1>&2
- $echo The command "cmp n-4a.O $srcdir/n-4a.X" failed. 1>&2
- errors=`expr $errors + 1`;;
- esac
-fi
-test -s n-4a.E || rm -f n-4a.E
-$xx -n +1 < $srcdir/n-4a.I > n-4a.O 2> n-4a.E
-code=$?
-if test $code != 0; then
- $echo "Test n-4a(<) failed: $xx return code $code differs from expected value 0" 1>&2
- errors=`expr $errors + 1`
-else
- cmp n-4a.O $srcdir/n-4a.X > /dev/null 2>&1
- case $? in
- 0) if test "$VERBOSE"; then $echo "passed n-4a(<)"; fi;;
- 1) $echo "Test n-4a(<) failed: files n-4a.O and $srcdir/n-4a.X differ" 1>&2
- (diff -c n-4a.O $srcdir/n-4a.X) 2> /dev/null
- errors=`expr $errors + 1`;;
- 2) $echo "Test n-4a(<) may have failed." 1>&2
- $echo The command "cmp n-4a.O $srcdir/n-4a.X" failed. 1>&2
- errors=`expr $errors + 1`;;
- esac
-fi
-test -s n-4a.E || rm -f n-4a.E
-$xx -n -0 $srcdir/n-5.I > n-5.O 2> n-5.E
-code=$?
-if test $code != 0; then
- $echo "Test n-5(F) failed: $xx return code $code differs from expected value 0" 1>&2
- errors=`expr $errors + 1`
-else
- cmp n-5.O $srcdir/n-5.X > /dev/null 2>&1
- case $? in
- 0) if test "$VERBOSE"; then $echo "passed n-5(F)"; fi;;
- 1) $echo "Test n-5(F) failed: files n-5.O and $srcdir/n-5.X differ" 1>&2
- (diff -c n-5.O $srcdir/n-5.X) 2> /dev/null
- errors=`expr $errors + 1`;;
- 2) $echo "Test n-5(F) may have failed." 1>&2
- $echo The command "cmp n-5.O $srcdir/n-5.X" failed. 1>&2
- errors=`expr $errors + 1`;;
- esac
-fi
-test -s n-5.E || rm -f n-5.E
-cat $srcdir/n-5.I | $xx -n -0 > n-5.O 2> n-5.E
-code=$?
-if test $code != 0; then
- $echo "Test n-5(|) failed: $xx return code $code differs from expected value 0" 1>&2
- errors=`expr $errors + 1`
-else
- cmp n-5.O $srcdir/n-5.X > /dev/null 2>&1
- case $? in
- 0) if test "$VERBOSE"; then $echo "passed n-5(|)"; fi;;
- 1) $echo "Test n-5(|) failed: files n-5.O and $srcdir/n-5.X differ" 1>&2
- (diff -c n-5.O $srcdir/n-5.X) 2> /dev/null
- errors=`expr $errors + 1`;;
- 2) $echo "Test n-5(|) may have failed." 1>&2
- $echo The command "cmp n-5.O $srcdir/n-5.X" failed. 1>&2
- errors=`expr $errors + 1`;;
- esac
-fi
-test -s n-5.E || rm -f n-5.E
-$xx -n -0 < $srcdir/n-5.I > n-5.O 2> n-5.E
-code=$?
-if test $code != 0; then
- $echo "Test n-5(<) failed: $xx return code $code differs from expected value 0" 1>&2
- errors=`expr $errors + 1`
-else
- cmp n-5.O $srcdir/n-5.X > /dev/null 2>&1
- case $? in
- 0) if test "$VERBOSE"; then $echo "passed n-5(<)"; fi;;
- 1) $echo "Test n-5(<) failed: files n-5.O and $srcdir/n-5.X differ" 1>&2
- (diff -c n-5.O $srcdir/n-5.X) 2> /dev/null
- errors=`expr $errors + 1`;;
- 2) $echo "Test n-5(<) may have failed." 1>&2
- $echo The command "cmp n-5.O $srcdir/n-5.X" failed. 1>&2
- errors=`expr $errors + 1`;;
- esac
-fi
-test -s n-5.E || rm -f n-5.E
-$xx -n -1 $srcdir/n-5a.I > n-5a.O 2> n-5a.E
-code=$?
-if test $code != 0; then
- $echo "Test n-5a(F) failed: $xx return code $code differs from expected value 0" 1>&2
- errors=`expr $errors + 1`
-else
- cmp n-5a.O $srcdir/n-5a.X > /dev/null 2>&1
- case $? in
- 0) if test "$VERBOSE"; then $echo "passed n-5a(F)"; fi;;
- 1) $echo "Test n-5a(F) failed: files n-5a.O and $srcdir/n-5a.X differ" 1>&2
- (diff -c n-5a.O $srcdir/n-5a.X) 2> /dev/null
- errors=`expr $errors + 1`;;
- 2) $echo "Test n-5a(F) may have failed." 1>&2
- $echo The command "cmp n-5a.O $srcdir/n-5a.X" failed. 1>&2
- errors=`expr $errors + 1`;;
- esac
-fi
-test -s n-5a.E || rm -f n-5a.E
-cat $srcdir/n-5a.I | $xx -n -1 > n-5a.O 2> n-5a.E
-code=$?
-if test $code != 0; then
- $echo "Test n-5a(|) failed: $xx return code $code differs from expected value 0" 1>&2
- errors=`expr $errors + 1`
-else
- cmp n-5a.O $srcdir/n-5a.X > /dev/null 2>&1
- case $? in
- 0) if test "$VERBOSE"; then $echo "passed n-5a(|)"; fi;;
- 1) $echo "Test n-5a(|) failed: files n-5a.O and $srcdir/n-5a.X differ" 1>&2
- (diff -c n-5a.O $srcdir/n-5a.X) 2> /dev/null
- errors=`expr $errors + 1`;;
- 2) $echo "Test n-5a(|) may have failed." 1>&2
- $echo The command "cmp n-5a.O $srcdir/n-5a.X" failed. 1>&2
- errors=`expr $errors + 1`;;
- esac
-fi
-test -s n-5a.E || rm -f n-5a.E
-$xx -n -1 < $srcdir/n-5a.I > n-5a.O 2> n-5a.E
-code=$?
-if test $code != 0; then
- $echo "Test n-5a(<) failed: $xx return code $code differs from expected value 0" 1>&2
- errors=`expr $errors + 1`
-else
- cmp n-5a.O $srcdir/n-5a.X > /dev/null 2>&1
- case $? in
- 0) if test "$VERBOSE"; then $echo "passed n-5a(<)"; fi;;
- 1) $echo "Test n-5a(<) failed: files n-5a.O and $srcdir/n-5a.X differ" 1>&2
- (diff -c n-5a.O $srcdir/n-5a.X) 2> /dev/null
- errors=`expr $errors + 1`;;
- 2) $echo "Test n-5a(<) may have failed." 1>&2
- $echo The command "cmp n-5a.O $srcdir/n-5a.X" failed. 1>&2
- errors=`expr $errors + 1`;;
- esac
-fi
-test -s n-5a.E || rm -f n-5a.E
-$xx -n 0 $srcdir/n-5b.I > n-5b.O 2> n-5b.E
-code=$?
-if test $code != 0; then
- $echo "Test n-5b(F) failed: $xx return code $code differs from expected value 0" 1>&2
- errors=`expr $errors + 1`
-else
- cmp n-5b.O $srcdir/n-5b.X > /dev/null 2>&1
- case $? in
- 0) if test "$VERBOSE"; then $echo "passed n-5b(F)"; fi;;
- 1) $echo "Test n-5b(F) failed: files n-5b.O and $srcdir/n-5b.X differ" 1>&2
- (diff -c n-5b.O $srcdir/n-5b.X) 2> /dev/null
- errors=`expr $errors + 1`;;
- 2) $echo "Test n-5b(F) may have failed." 1>&2
- $echo The command "cmp n-5b.O $srcdir/n-5b.X" failed. 1>&2
- errors=`expr $errors + 1`;;
- esac
-fi
-test -s n-5b.E || rm -f n-5b.E
-cat $srcdir/n-5b.I | $xx -n 0 > n-5b.O 2> n-5b.E
-code=$?
-if test $code != 0; then
- $echo "Test n-5b(|) failed: $xx return code $code differs from expected value 0" 1>&2
- errors=`expr $errors + 1`
-else
- cmp n-5b.O $srcdir/n-5b.X > /dev/null 2>&1
- case $? in
- 0) if test "$VERBOSE"; then $echo "passed n-5b(|)"; fi;;
- 1) $echo "Test n-5b(|) failed: files n-5b.O and $srcdir/n-5b.X differ" 1>&2
- (diff -c n-5b.O $srcdir/n-5b.X) 2> /dev/null
- errors=`expr $errors + 1`;;
- 2) $echo "Test n-5b(|) may have failed." 1>&2
- $echo The command "cmp n-5b.O $srcdir/n-5b.X" failed. 1>&2
- errors=`expr $errors + 1`;;
- esac
-fi
-test -s n-5b.E || rm -f n-5b.E
-$xx -n 0 < $srcdir/n-5b.I > n-5b.O 2> n-5b.E
-code=$?
-if test $code != 0; then
- $echo "Test n-5b(<) failed: $xx return code $code differs from expected value 0" 1>&2
- errors=`expr $errors + 1`
-else
- cmp n-5b.O $srcdir/n-5b.X > /dev/null 2>&1
- case $? in
- 0) if test "$VERBOSE"; then $echo "passed n-5b(<)"; fi;;
- 1) $echo "Test n-5b(<) failed: files n-5b.O and $srcdir/n-5b.X differ" 1>&2
- (diff -c n-5b.O $srcdir/n-5b.X) 2> /dev/null
- errors=`expr $errors + 1`;;
- 2) $echo "Test n-5b(<) may have failed." 1>&2
- $echo The command "cmp n-5b.O $srcdir/n-5b.X" failed. 1>&2
- errors=`expr $errors + 1`;;
- esac
-fi
-test -s n-5b.E || rm -f n-5b.E
-cat $srcdir/f-pipe-1.I | POSIXLY_CORRECT=1 $xx -f -n 1 > f-pipe-1.O 2> f-pipe-1.E
-code=$?
-if test $code != 0; then
- $echo "Test f-pipe-1(POSIXLY_CORRECT=1) failed: $xx return code $code differs from expected value 0" 1>&2
- errors=`expr $errors + 1`
-else
- cmp f-pipe-1.O $srcdir/f-pipe-1.X > /dev/null 2>&1
- case $? in
- 0) if test "$VERBOSE"; then $echo "passed f-pipe-1(POSIXLY_CORRECT=1)"; fi;;
- 1) $echo "Test f-pipe-1(POSIXLY_CORRECT=1) failed: files f-pipe-1.O and $srcdir/f-pipe-1.X differ" 1>&2
- (diff -c f-pipe-1.O $srcdir/f-pipe-1.X) 2> /dev/null
- errors=`expr $errors + 1`;;
- 2) $echo "Test f-pipe-1(POSIXLY_CORRECT=1) may have failed." 1>&2
- $echo The command "cmp f-pipe-1.O $srcdir/f-pipe-1.X" failed. 1>&2
- errors=`expr $errors + 1`;;
- esac
-fi
-test -s f-pipe-1.E || rm -f f-pipe-1.E
-if test $errors = 0; then
- $echo Passed all 114 tests. 1>&2
-else
- $echo Failed $errors tests. 1>&2
-fi
-test $errors = 0 || errors=1
-exit $errors
diff --git a/tests/tee/Makefile.am b/tests/tee/Makefile.am
deleted file mode 100644
index 48f3239..0000000
--- a/tests/tee/Makefile.am
+++ /dev/null
@@ -1,6 +0,0 @@
-## Process this file with automake to produce Makefile.in -*-Makefile-*-.
-TESTS = basic dash
-EXTRA_DIST = $(TESTS)
-TESTS_ENVIRONMENT = \
- CU_TEST_NAME=`basename $(abs_srcdir)`,$$tst \
- PATH="$(VG_PATH_PREFIX)`pwd`/../../src$(PATH_SEPARATOR)$$PATH"
diff --git a/tests/tee/Makefile.in b/tests/tee/Makefile.in
deleted file mode 100644
index 050793d..0000000
--- a/tests/tee/Makefile.in
+++ /dev/null
@@ -1,716 +0,0 @@
-# Makefile.in generated by automake 1.10 from Makefile.am.
-# @configure_input@
-
-# Copyright (C) 1994, 1995, 1996, 1997, 1998, 1999, 2000, 2001, 2002,
-# 2003, 2004, 2005, 2006 Free Software Foundation, Inc.
-# This Makefile.in is free software; the Free Software Foundation
-# gives unlimited permission to copy and/or distribute it,
-# with or without modifications, as long as this notice is preserved.
-
-# This program is distributed in the hope that it will be useful,
-# but WITHOUT ANY WARRANTY, to the extent permitted by law; without
-# even the implied warranty of MERCHANTABILITY or FITNESS FOR A
-# PARTICULAR PURPOSE.
-
-@SET_MAKE@
-VPATH = @srcdir@
-pkgdatadir = $(datadir)/@PACKAGE@
-pkglibdir = $(libdir)/@PACKAGE@
-pkgincludedir = $(includedir)/@PACKAGE@
-am__cd = CDPATH="$${ZSH_VERSION+.}$(PATH_SEPARATOR)" && cd
-install_sh_DATA = $(install_sh) -c -m 644
-install_sh_PROGRAM = $(install_sh) -c
-install_sh_SCRIPT = $(install_sh) -c
-INSTALL_HEADER = $(INSTALL_DATA)
-transform = $(program_transform_name)
-NORMAL_INSTALL = :
-PRE_INSTALL = :
-POST_INSTALL = :
-NORMAL_UNINSTALL = :
-PRE_UNINSTALL = :
-POST_UNINSTALL = :
-build_triplet = @build@
-host_triplet = @host@
-subdir = tests/tee
-DIST_COMMON = $(srcdir)/Makefile.am $(srcdir)/Makefile.in
-ACLOCAL_M4 = $(top_srcdir)/aclocal.m4
-am__aclocal_m4_deps = $(top_srcdir)/m4/absolute-header.m4 \
- $(top_srcdir)/m4/acl.m4 $(top_srcdir)/m4/alloca.m4 \
- $(top_srcdir)/m4/allocsa.m4 $(top_srcdir)/m4/argmatch.m4 \
- $(top_srcdir)/m4/arpa_inet_h.m4 $(top_srcdir)/m4/assert.m4 \
- $(top_srcdir)/m4/atexit.m4 $(top_srcdir)/m4/autobuild.m4 \
- $(top_srcdir)/m4/backupfile.m4 $(top_srcdir)/m4/base64.m4 \
- $(top_srcdir)/m4/bison.m4 $(top_srcdir)/m4/boottime.m4 \
- $(top_srcdir)/m4/c-strtod.m4 $(top_srcdir)/m4/calloc.m4 \
- $(top_srcdir)/m4/canon-host.m4 \
- $(top_srcdir)/m4/canonicalize.m4 \
- $(top_srcdir)/m4/chdir-long.m4 $(top_srcdir)/m4/check-decl.m4 \
- $(top_srcdir)/m4/chown.m4 $(top_srcdir)/m4/clock_time.m4 \
- $(top_srcdir)/m4/cloexec.m4 $(top_srcdir)/m4/close-stream.m4 \
- $(top_srcdir)/m4/closeout.m4 $(top_srcdir)/m4/codeset.m4 \
- $(top_srcdir)/m4/config-h.m4 $(top_srcdir)/m4/cycle-check.m4 \
- $(top_srcdir)/m4/d-ino.m4 $(top_srcdir)/m4/d-type.m4 \
- $(top_srcdir)/m4/dirfd.m4 $(top_srcdir)/m4/dirname.m4 \
- $(top_srcdir)/m4/dos.m4 $(top_srcdir)/m4/double-slash-root.m4 \
- $(top_srcdir)/m4/dup2.m4 $(top_srcdir)/m4/eealloc.m4 \
- $(top_srcdir)/m4/eoverflow.m4 $(top_srcdir)/m4/error.m4 \
- $(top_srcdir)/m4/euidaccess-stat.m4 \
- $(top_srcdir)/m4/euidaccess.m4 $(top_srcdir)/m4/exclude.m4 \
- $(top_srcdir)/m4/exitfail.m4 $(top_srcdir)/m4/extensions.m4 \
- $(top_srcdir)/m4/fchdir.m4 $(top_srcdir)/m4/fcntl-safer.m4 \
- $(top_srcdir)/m4/fcntl_h.m4 $(top_srcdir)/m4/fd-reopen.m4 \
- $(top_srcdir)/m4/file-type.m4 $(top_srcdir)/m4/fileblocks.m4 \
- $(top_srcdir)/m4/filemode.m4 $(top_srcdir)/m4/filenamecat.m4 \
- $(top_srcdir)/m4/flexmember.m4 $(top_srcdir)/m4/fnmatch.m4 \
- $(top_srcdir)/m4/fpending.m4 $(top_srcdir)/m4/fprintftime.m4 \
- $(top_srcdir)/m4/free.m4 $(top_srcdir)/m4/fstypename.m4 \
- $(top_srcdir)/m4/fsusage.m4 $(top_srcdir)/m4/ftruncate.m4 \
- $(top_srcdir)/m4/fts.m4 $(top_srcdir)/m4/getaddrinfo.m4 \
- $(top_srcdir)/m4/getcwd-abort-bug.m4 \
- $(top_srcdir)/m4/getcwd-path-max.m4 $(top_srcdir)/m4/getcwd.m4 \
- $(top_srcdir)/m4/getdate.m4 $(top_srcdir)/m4/getdelim.m4 \
- $(top_srcdir)/m4/getgroups.m4 $(top_srcdir)/m4/gethostname.m4 \
- $(top_srcdir)/m4/gethrxtime.m4 $(top_srcdir)/m4/getline.m4 \
- $(top_srcdir)/m4/getloadavg.m4 $(top_srcdir)/m4/getndelim2.m4 \
- $(top_srcdir)/m4/getopt.m4 $(top_srcdir)/m4/getpagesize.m4 \
- $(top_srcdir)/m4/getpass.m4 $(top_srcdir)/m4/gettext.m4 \
- $(top_srcdir)/m4/gettime.m4 $(top_srcdir)/m4/gettimeofday.m4 \
- $(top_srcdir)/m4/getugroups.m4 \
- $(top_srcdir)/m4/getusershell.m4 $(top_srcdir)/m4/glibc21.m4 \
- $(top_srcdir)/m4/gnulib-common.m4 \
- $(top_srcdir)/m4/gnulib-comp.m4 \
- $(top_srcdir)/m4/group-member.m4 \
- $(top_srcdir)/m4/hard-locale.m4 $(top_srcdir)/m4/hash.m4 \
- $(top_srcdir)/m4/host-os.m4 $(top_srcdir)/m4/human.m4 \
- $(top_srcdir)/m4/i-ring.m4 $(top_srcdir)/m4/iconv.m4 \
- $(top_srcdir)/m4/idcache.m4 $(top_srcdir)/m4/inet_ntop.m4 \
- $(top_srcdir)/m4/inline.m4 $(top_srcdir)/m4/intmax_t.m4 \
- $(top_srcdir)/m4/inttostr.m4 $(top_srcdir)/m4/inttypes-pri.m4 \
- $(top_srcdir)/m4/inttypes.m4 $(top_srcdir)/m4/inttypes_h.m4 \
- $(top_srcdir)/m4/isapipe.m4 $(top_srcdir)/m4/jm-macros.m4 \
- $(top_srcdir)/m4/jm-winsz1.m4 $(top_srcdir)/m4/jm-winsz2.m4 \
- $(top_srcdir)/m4/lchmod.m4 $(top_srcdir)/m4/lchown.m4 \
- $(top_srcdir)/m4/lib-check.m4 $(top_srcdir)/m4/lib-ignore.m4 \
- $(top_srcdir)/m4/lib-ld.m4 $(top_srcdir)/m4/lib-link.m4 \
- $(top_srcdir)/m4/lib-prefix.m4 $(top_srcdir)/m4/link-follow.m4 \
- $(top_srcdir)/m4/localcharset.m4 \
- $(top_srcdir)/m4/long-options.m4 \
- $(top_srcdir)/m4/longdouble.m4 $(top_srcdir)/m4/longlong.m4 \
- $(top_srcdir)/m4/ls-mntd-fs.m4 $(top_srcdir)/m4/lstat.m4 \
- $(top_srcdir)/m4/mbchar.m4 $(top_srcdir)/m4/mbiter.m4 \
- $(top_srcdir)/m4/mbrtowc.m4 $(top_srcdir)/m4/mbscasecmp.m4 \
- $(top_srcdir)/m4/mbstate_t.m4 $(top_srcdir)/m4/mbswidth.m4 \
- $(top_srcdir)/m4/md5.m4 $(top_srcdir)/m4/memcasecmp.m4 \
- $(top_srcdir)/m4/memchr.m4 $(top_srcdir)/m4/memcmp.m4 \
- $(top_srcdir)/m4/memcoll.m4 $(top_srcdir)/m4/memcpy.m4 \
- $(top_srcdir)/m4/memmove.m4 $(top_srcdir)/m4/mempcpy.m4 \
- $(top_srcdir)/m4/memrchr.m4 $(top_srcdir)/m4/memset.m4 \
- $(top_srcdir)/m4/memxfrm.m4 $(top_srcdir)/m4/mkancesdirs.m4 \
- $(top_srcdir)/m4/mkdir-p.m4 $(top_srcdir)/m4/mkdir-slash.m4 \
- $(top_srcdir)/m4/mkstemp.m4 $(top_srcdir)/m4/mktime.m4 \
- $(top_srcdir)/m4/modechange.m4 $(top_srcdir)/m4/mountlist.m4 \
- $(top_srcdir)/m4/mpsort.m4 $(top_srcdir)/m4/nanosleep.m4 \
- $(top_srcdir)/m4/netinet_in_h.m4 $(top_srcdir)/m4/nls.m4 \
- $(top_srcdir)/m4/openat.m4 $(top_srcdir)/m4/pathmax.m4 \
- $(top_srcdir)/m4/perl.m4 $(top_srcdir)/m4/physmem.m4 \
- $(top_srcdir)/m4/po.m4 $(top_srcdir)/m4/posixtm.m4 \
- $(top_srcdir)/m4/posixver.m4 $(top_srcdir)/m4/prereq.m4 \
- $(top_srcdir)/m4/progtest.m4 $(top_srcdir)/m4/putenv.m4 \
- $(top_srcdir)/m4/quote.m4 $(top_srcdir)/m4/quotearg.m4 \
- $(top_srcdir)/m4/randint.m4 $(top_srcdir)/m4/randperm.m4 \
- $(top_srcdir)/m4/randread.m4 $(top_srcdir)/m4/readlink.m4 \
- $(top_srcdir)/m4/readtokens.m4 $(top_srcdir)/m4/readutmp.m4 \
- $(top_srcdir)/m4/regex.m4 \
- $(top_srcdir)/m4/rename-dest-slash.m4 \
- $(top_srcdir)/m4/rename.m4 $(top_srcdir)/m4/rmdir-errno.m4 \
- $(top_srcdir)/m4/rmdir.m4 $(top_srcdir)/m4/root-dev-ino.m4 \
- $(top_srcdir)/m4/rpmatch.m4 $(top_srcdir)/m4/safe-read.m4 \
- $(top_srcdir)/m4/safe-write.m4 $(top_srcdir)/m4/same.m4 \
- $(top_srcdir)/m4/save-cwd.m4 $(top_srcdir)/m4/savedir.m4 \
- $(top_srcdir)/m4/savewd.m4 $(top_srcdir)/m4/setenv.m4 \
- $(top_srcdir)/m4/settime.m4 $(top_srcdir)/m4/sha1.m4 \
- $(top_srcdir)/m4/sha256.m4 $(top_srcdir)/m4/sha512.m4 \
- $(top_srcdir)/m4/sig2str.m4 $(top_srcdir)/m4/snprintf.m4 \
- $(top_srcdir)/m4/socklen.m4 $(top_srcdir)/m4/sockpfaf.m4 \
- $(top_srcdir)/m4/ssize_t.m4 $(top_srcdir)/m4/st_dm_mode.m4 \
- $(top_srcdir)/m4/stat-prog.m4 $(top_srcdir)/m4/stat-time.m4 \
- $(top_srcdir)/m4/stdarg.m4 $(top_srcdir)/m4/stdbool.m4 \
- $(top_srcdir)/m4/stdint.m4 $(top_srcdir)/m4/stdint_h.m4 \
- $(top_srcdir)/m4/stdio-safer.m4 $(top_srcdir)/m4/stdio_h.m4 \
- $(top_srcdir)/m4/stdlib-safer.m4 $(top_srcdir)/m4/stdlib_h.m4 \
- $(top_srcdir)/m4/stpcpy.m4 $(top_srcdir)/m4/strcspn.m4 \
- $(top_srcdir)/m4/strdup.m4 $(top_srcdir)/m4/strftime.m4 \
- $(top_srcdir)/m4/string_h.m4 $(top_srcdir)/m4/strndup.m4 \
- $(top_srcdir)/m4/strnlen.m4 $(top_srcdir)/m4/strnumcmp.m4 \
- $(top_srcdir)/m4/strpbrk.m4 $(top_srcdir)/m4/strtod.m4 \
- $(top_srcdir)/m4/strtoimax.m4 $(top_srcdir)/m4/strtol.m4 \
- $(top_srcdir)/m4/strtoll.m4 $(top_srcdir)/m4/strtoul.m4 \
- $(top_srcdir)/m4/strtoull.m4 $(top_srcdir)/m4/strtoumax.m4 \
- $(top_srcdir)/m4/strverscmp.m4 \
- $(top_srcdir)/m4/sys_socket_h.m4 \
- $(top_srcdir)/m4/sys_stat_h.m4 $(top_srcdir)/m4/sys_time_h.m4 \
- $(top_srcdir)/m4/tempname.m4 $(top_srcdir)/m4/time_h.m4 \
- $(top_srcdir)/m4/time_r.m4 $(top_srcdir)/m4/timespec.m4 \
- $(top_srcdir)/m4/tm_gmtoff.m4 $(top_srcdir)/m4/tzset.m4 \
- $(top_srcdir)/m4/unicodeio.m4 $(top_srcdir)/m4/unistd-safer.m4 \
- $(top_srcdir)/m4/unistd_h.m4 $(top_srcdir)/m4/unlink-busy.m4 \
- $(top_srcdir)/m4/unlinkdir.m4 $(top_srcdir)/m4/unlocked-io.m4 \
- $(top_srcdir)/m4/uptime.m4 $(top_srcdir)/m4/userspec.m4 \
- $(top_srcdir)/m4/utimbuf.m4 $(top_srcdir)/m4/utime.m4 \
- $(top_srcdir)/m4/utimecmp.m4 $(top_srcdir)/m4/utimens.m4 \
- $(top_srcdir)/m4/utimes-null.m4 $(top_srcdir)/m4/utimes.m4 \
- $(top_srcdir)/m4/vasnprintf.m4 $(top_srcdir)/m4/vasprintf.m4 \
- $(top_srcdir)/m4/wchar.m4 $(top_srcdir)/m4/wchar_t.m4 \
- $(top_srcdir)/m4/wctype.m4 $(top_srcdir)/m4/wcwidth.m4 \
- $(top_srcdir)/m4/wint_t.m4 $(top_srcdir)/m4/xalloc.m4 \
- $(top_srcdir)/m4/xfts.m4 $(top_srcdir)/m4/xgetcwd.m4 \
- $(top_srcdir)/m4/xnanosleep.m4 $(top_srcdir)/m4/xstrndup.m4 \
- $(top_srcdir)/m4/xstrtod.m4 $(top_srcdir)/m4/xstrtol.m4 \
- $(top_srcdir)/m4/yesno.m4 $(top_srcdir)/configure.ac
-am__configure_deps = $(am__aclocal_m4_deps) $(CONFIGURE_DEPENDENCIES) \
- $(ACLOCAL_M4)
-mkinstalldirs = $(install_sh) -d
-CONFIG_HEADER = $(top_builddir)/lib/config.h
-CONFIG_CLEAN_FILES =
-SOURCES =
-DIST_SOURCES =
-DISTFILES = $(DIST_COMMON) $(DIST_SOURCES) $(TEXINFOS) $(EXTRA_DIST)
-ABSOLUTE_DIRENT_H = @ABSOLUTE_DIRENT_H@
-ABSOLUTE_FCNTL_H = @ABSOLUTE_FCNTL_H@
-ABSOLUTE_INTTYPES_H = @ABSOLUTE_INTTYPES_H@
-ABSOLUTE_NETINET_IN_H = @ABSOLUTE_NETINET_IN_H@
-ABSOLUTE_STDINT_H = @ABSOLUTE_STDINT_H@
-ABSOLUTE_STDIO_H = @ABSOLUTE_STDIO_H@
-ABSOLUTE_STDLIB_H = @ABSOLUTE_STDLIB_H@
-ABSOLUTE_STRING_H = @ABSOLUTE_STRING_H@
-ABSOLUTE_SYS_SOCKET_H = @ABSOLUTE_SYS_SOCKET_H@
-ABSOLUTE_SYS_STAT_H = @ABSOLUTE_SYS_STAT_H@
-ABSOLUTE_SYS_TIME_H = @ABSOLUTE_SYS_TIME_H@
-ABSOLUTE_TIME_H = @ABSOLUTE_TIME_H@
-ABSOLUTE_UNISTD_H = @ABSOLUTE_UNISTD_H@
-ABSOLUTE_WCHAR_H = @ABSOLUTE_WCHAR_H@
-ABSOLUTE_WCTYPE_H = @ABSOLUTE_WCTYPE_H@
-ACLOCAL = @ACLOCAL@
-ALLOCA = @ALLOCA@
-ALLOCA_H = @ALLOCA_H@
-AMTAR = @AMTAR@
-ARPA_INET_H = @ARPA_INET_H@
-AUTOCONF = @AUTOCONF@
-AUTOHEADER = @AUTOHEADER@
-AUTOMAKE = @AUTOMAKE@
-AWK = @AWK@
-BITSIZEOF_PTRDIFF_T = @BITSIZEOF_PTRDIFF_T@
-BITSIZEOF_SIG_ATOMIC_T = @BITSIZEOF_SIG_ATOMIC_T@
-BITSIZEOF_SIZE_T = @BITSIZEOF_SIZE_T@
-BITSIZEOF_WCHAR_T = @BITSIZEOF_WCHAR_T@
-BITSIZEOF_WINT_T = @BITSIZEOF_WINT_T@
-CC = @CC@
-CCDEPMODE = @CCDEPMODE@
-CFLAGS = @CFLAGS@
-CPP = @CPP@
-CPPFLAGS = @CPPFLAGS@
-CYGPATH_W = @CYGPATH_W@
-DEFAULT_POSIX2_VERSION = @DEFAULT_POSIX2_VERSION@
-DEFS = @DEFS@
-DEPDIR = @DEPDIR@
-DF_PROG = @DF_PROG@
-DIRENT_H = @DIRENT_H@
-ECHO_C = @ECHO_C@
-ECHO_N = @ECHO_N@
-ECHO_T = @ECHO_T@
-EGREP = @EGREP@
-EOVERFLOW = @EOVERFLOW@
-EXEEXT = @EXEEXT@
-FCNTL_H = @FCNTL_H@
-FNMATCH_H = @FNMATCH_H@
-GETLOADAVG_LIBS = @GETLOADAVG_LIBS@
-GETOPT_H = @GETOPT_H@
-GLIBC21 = @GLIBC21@
-GMSGFMT = @GMSGFMT@
-GMSGFMT_015 = @GMSGFMT_015@
-GNULIB_CHOWN = @GNULIB_CHOWN@
-GNULIB_DUP2 = @GNULIB_DUP2@
-GNULIB_FCHDIR = @GNULIB_FCHDIR@
-GNULIB_FPRINTF_POSIX = @GNULIB_FPRINTF_POSIX@
-GNULIB_FTRUNCATE = @GNULIB_FTRUNCATE@
-GNULIB_GETCWD = @GNULIB_GETCWD@
-GNULIB_GETLOGIN_R = @GNULIB_GETLOGIN_R@
-GNULIB_GETSUBOPT = @GNULIB_GETSUBOPT@
-GNULIB_IMAXABS = @GNULIB_IMAXABS@
-GNULIB_IMAXDIV = @GNULIB_IMAXDIV@
-GNULIB_MBSCASECMP = @GNULIB_MBSCASECMP@
-GNULIB_MBSCASESTR = @GNULIB_MBSCASESTR@
-GNULIB_MBSCHR = @GNULIB_MBSCHR@
-GNULIB_MBSCSPN = @GNULIB_MBSCSPN@
-GNULIB_MBSLEN = @GNULIB_MBSLEN@
-GNULIB_MBSNCASECMP = @GNULIB_MBSNCASECMP@
-GNULIB_MBSPBRK = @GNULIB_MBSPBRK@
-GNULIB_MBSPCASECMP = @GNULIB_MBSPCASECMP@
-GNULIB_MBSRCHR = @GNULIB_MBSRCHR@
-GNULIB_MBSSEP = @GNULIB_MBSSEP@
-GNULIB_MBSSPN = @GNULIB_MBSSPN@
-GNULIB_MBSSTR = @GNULIB_MBSSTR@
-GNULIB_MBSTOK_R = @GNULIB_MBSTOK_R@
-GNULIB_MEMMEM = @GNULIB_MEMMEM@
-GNULIB_MEMPCPY = @GNULIB_MEMPCPY@
-GNULIB_MEMRCHR = @GNULIB_MEMRCHR@
-GNULIB_MKDTEMP = @GNULIB_MKDTEMP@
-GNULIB_MKSTEMP = @GNULIB_MKSTEMP@
-GNULIB_PRINTF_POSIX = @GNULIB_PRINTF_POSIX@
-GNULIB_READLINK = @GNULIB_READLINK@
-GNULIB_SNPRINTF = @GNULIB_SNPRINTF@
-GNULIB_SPRINTF_POSIX = @GNULIB_SPRINTF_POSIX@
-GNULIB_STPCPY = @GNULIB_STPCPY@
-GNULIB_STPNCPY = @GNULIB_STPNCPY@
-GNULIB_STRCASESTR = @GNULIB_STRCASESTR@
-GNULIB_STRCHRNUL = @GNULIB_STRCHRNUL@
-GNULIB_STRDUP = @GNULIB_STRDUP@
-GNULIB_STRNDUP = @GNULIB_STRNDUP@
-GNULIB_STRNLEN = @GNULIB_STRNLEN@
-GNULIB_STRPBRK = @GNULIB_STRPBRK@
-GNULIB_STRSEP = @GNULIB_STRSEP@
-GNULIB_STRTOIMAX = @GNULIB_STRTOIMAX@
-GNULIB_STRTOK_R = @GNULIB_STRTOK_R@
-GNULIB_STRTOUMAX = @GNULIB_STRTOUMAX@
-GNULIB_VFPRINTF_POSIX = @GNULIB_VFPRINTF_POSIX@
-GNULIB_VPRINTF_POSIX = @GNULIB_VPRINTF_POSIX@
-GNULIB_VSNPRINTF = @GNULIB_VSNPRINTF@
-GNULIB_VSPRINTF_POSIX = @GNULIB_VSPRINTF_POSIX@
-GNU_PACKAGE = @GNU_PACKAGE@
-GREP = @GREP@
-HAVE_DECL_GETLOGIN_R = @HAVE_DECL_GETLOGIN_R@
-HAVE_DECL_IMAXABS = @HAVE_DECL_IMAXABS@
-HAVE_DECL_IMAXDIV = @HAVE_DECL_IMAXDIV@
-HAVE_DECL_MEMMEM = @HAVE_DECL_MEMMEM@
-HAVE_DECL_MEMRCHR = @HAVE_DECL_MEMRCHR@
-HAVE_DECL_SNPRINTF = @HAVE_DECL_SNPRINTF@
-HAVE_DECL_STRDUP = @HAVE_DECL_STRDUP@
-HAVE_DECL_STRNCASECMP = @HAVE_DECL_STRNCASECMP@
-HAVE_DECL_STRNDUP = @HAVE_DECL_STRNDUP@
-HAVE_DECL_STRNLEN = @HAVE_DECL_STRNLEN@
-HAVE_DECL_STRTOIMAX = @HAVE_DECL_STRTOIMAX@
-HAVE_DECL_STRTOK_R = @HAVE_DECL_STRTOK_R@
-HAVE_DECL_STRTOUMAX = @HAVE_DECL_STRTOUMAX@
-HAVE_DECL_VSNPRINTF = @HAVE_DECL_VSNPRINTF@
-HAVE_DUP2 = @HAVE_DUP2@
-HAVE_FTRUNCATE = @HAVE_FTRUNCATE@
-HAVE_GETSUBOPT = @HAVE_GETSUBOPT@
-HAVE_INTTYPES_H = @HAVE_INTTYPES_H@
-HAVE_LONG_LONG_INT = @HAVE_LONG_LONG_INT@
-HAVE_MEMPCPY = @HAVE_MEMPCPY@
-HAVE_MKDTEMP = @HAVE_MKDTEMP@
-HAVE_NETINET_IN_H = @HAVE_NETINET_IN_H@
-HAVE_READLINK = @HAVE_READLINK@
-HAVE_SIGNED_SIG_ATOMIC_T = @HAVE_SIGNED_SIG_ATOMIC_T@
-HAVE_SIGNED_WCHAR_T = @HAVE_SIGNED_WCHAR_T@
-HAVE_SIGNED_WINT_T = @HAVE_SIGNED_WINT_T@
-HAVE_STDINT_H = @HAVE_STDINT_H@
-HAVE_STPCPY = @HAVE_STPCPY@
-HAVE_STPNCPY = @HAVE_STPNCPY@
-HAVE_STRCASECMP = @HAVE_STRCASECMP@
-HAVE_STRCASESTR = @HAVE_STRCASESTR@
-HAVE_STRCHRNUL = @HAVE_STRCHRNUL@
-HAVE_STRNDUP = @HAVE_STRNDUP@
-HAVE_STRPBRK = @HAVE_STRPBRK@
-HAVE_STRSEP = @HAVE_STRSEP@
-HAVE_STRUCT_TIMEVAL = @HAVE_STRUCT_TIMEVAL@
-HAVE_SYS_BITYPES_H = @HAVE_SYS_BITYPES_H@
-HAVE_SYS_INTTYPES_H = @HAVE_SYS_INTTYPES_H@
-HAVE_SYS_SOCKET_H = @HAVE_SYS_SOCKET_H@
-HAVE_SYS_TIME_H = @HAVE_SYS_TIME_H@
-HAVE_SYS_TYPES_H = @HAVE_SYS_TYPES_H@
-HAVE_UNISTD_H = @HAVE_UNISTD_H@
-HAVE_UNSIGNED_LONG_LONG_INT = @HAVE_UNSIGNED_LONG_LONG_INT@
-HAVE_WCTYPE_H = @HAVE_WCTYPE_H@
-HAVE_WINSOCK2_H = @HAVE_WINSOCK2_H@
-HAVE_WINT_T = @HAVE_WINT_T@
-HAVE_WS2TCPIP_H = @HAVE_WS2TCPIP_H@
-HAVE__BOOL = @HAVE__BOOL@
-HELP2MAN = @HELP2MAN@
-INSTALL = @INSTALL@
-INSTALL_DATA = @INSTALL_DATA@
-INSTALL_PROGRAM = @INSTALL_PROGRAM@
-INSTALL_SCRIPT = @INSTALL_SCRIPT@
-INSTALL_STRIP_PROGRAM = @INSTALL_STRIP_PROGRAM@
-INTLLIBS = @INTLLIBS@
-INTL_MACOSX_LIBS = @INTL_MACOSX_LIBS@
-INTTYPES_H = @INTTYPES_H@
-KMEM_GROUP = @KMEM_GROUP@
-LDFLAGS = @LDFLAGS@
-LIBCOREUTILS_LIBDEPS = @LIBCOREUTILS_LIBDEPS@
-LIBCOREUTILS_LTLIBDEPS = @LIBCOREUTILS_LTLIBDEPS@
-LIBICONV = @LIBICONV@
-LIBINTL = @LIBINTL@
-LIBOBJS = @LIBOBJS@
-LIBS = @LIBS@
-LIB_ACL = @LIB_ACL@
-LIB_ACL_TRIVIAL = @LIB_ACL_TRIVIAL@
-LIB_CLOCK_GETTIME = @LIB_CLOCK_GETTIME@
-LIB_CRYPT = @LIB_CRYPT@
-LIB_EACCESS = @LIB_EACCESS@
-LIB_FDATASYNC = @LIB_FDATASYNC@
-LIB_GETHRXTIME = @LIB_GETHRXTIME@
-LIB_NANOSLEEP = @LIB_NANOSLEEP@
-LN_S = @LN_S@
-LTLIBICONV = @LTLIBICONV@
-LTLIBINTL = @LTLIBINTL@
-LTLIBOBJS = @LTLIBOBJS@
-MAKEINFO = @MAKEINFO@
-MAN = @MAN@
-MKDIR_P = @MKDIR_P@
-MSGFMT = @MSGFMT@
-MSGFMT_015 = @MSGFMT_015@
-MSGMERGE = @MSGMERGE@
-NEED_SETGID = @NEED_SETGID@
-NETINET_IN_H = @NETINET_IN_H@
-OBJEXT = @OBJEXT@
-OPTIONAL_BIN_PROGS = @OPTIONAL_BIN_PROGS@
-PACKAGE = @PACKAGE@
-PACKAGE_BUGREPORT = @PACKAGE_BUGREPORT@
-PACKAGE_NAME = @PACKAGE_NAME@
-PACKAGE_STRING = @PACKAGE_STRING@
-PACKAGE_TARNAME = @PACKAGE_TARNAME@
-PACKAGE_VERSION = @PACKAGE_VERSION@
-PATH_SEPARATOR = @PATH_SEPARATOR@
-PERL = @PERL@
-POSUB = @POSUB@
-POW_LIB = @POW_LIB@
-PRIPTR_PREFIX = @PRIPTR_PREFIX@
-PRI_MACROS_BROKEN = @PRI_MACROS_BROKEN@
-PTRDIFF_T_SUFFIX = @PTRDIFF_T_SUFFIX@
-RANLIB = @RANLIB@
-REPLACE_CHOWN = @REPLACE_CHOWN@
-REPLACE_FCHDIR = @REPLACE_FCHDIR@
-REPLACE_FPRINTF = @REPLACE_FPRINTF@
-REPLACE_GETCWD = @REPLACE_GETCWD@
-REPLACE_GETTIMEOFDAY = @REPLACE_GETTIMEOFDAY@
-REPLACE_LOCALTIME_R = @REPLACE_LOCALTIME_R@
-REPLACE_MKSTEMP = @REPLACE_MKSTEMP@
-REPLACE_NANOSLEEP = @REPLACE_NANOSLEEP@
-REPLACE_PRINTF = @REPLACE_PRINTF@
-REPLACE_SNPRINTF = @REPLACE_SNPRINTF@
-REPLACE_SPRINTF = @REPLACE_SPRINTF@
-REPLACE_STRPTIME = @REPLACE_STRPTIME@
-REPLACE_TIMEGM = @REPLACE_TIMEGM@
-REPLACE_VFPRINTF = @REPLACE_VFPRINTF@
-REPLACE_VPRINTF = @REPLACE_VPRINTF@
-REPLACE_VSNPRINTF = @REPLACE_VSNPRINTF@
-REPLACE_VSPRINTF = @REPLACE_VSPRINTF@
-SEQ_LIBM = @SEQ_LIBM@
-SET_MAKE = @SET_MAKE@
-SHELL = @SHELL@
-SIG_ATOMIC_T_SUFFIX = @SIG_ATOMIC_T_SUFFIX@
-SIZE_T_SUFFIX = @SIZE_T_SUFFIX@
-STDBOOL_H = @STDBOOL_H@
-STDINT_H = @STDINT_H@
-STRIP = @STRIP@
-SYS_SOCKET_H = @SYS_SOCKET_H@
-SYS_STAT_H = @SYS_STAT_H@
-SYS_TIME_H = @SYS_TIME_H@
-SYS_TIME_H_DEFINES_STRUCT_TIMESPEC = @SYS_TIME_H_DEFINES_STRUCT_TIMESPEC@
-TIME_H_DEFINES_STRUCT_TIMESPEC = @TIME_H_DEFINES_STRUCT_TIMESPEC@
-U = @U@
-USE_NLS = @USE_NLS@
-VERSION = @VERSION@
-WCHAR_H = @WCHAR_H@
-WCHAR_T_SUFFIX = @WCHAR_T_SUFFIX@
-WCTYPE_H = @WCTYPE_H@
-WINT_T_SUFFIX = @WINT_T_SUFFIX@
-XGETTEXT = @XGETTEXT@
-XGETTEXT_015 = @XGETTEXT_015@
-YACC = @YACC@
-YFLAGS = @YFLAGS@
-abs_builddir = @abs_builddir@
-abs_srcdir = @abs_srcdir@
-abs_top_builddir = @abs_top_builddir@
-abs_top_srcdir = @abs_top_srcdir@
-ac_ct_CC = @ac_ct_CC@
-am__include = @am__include@
-am__leading_dot = @am__leading_dot@
-am__quote = @am__quote@
-am__tar = @am__tar@
-am__untar = @am__untar@
-bindir = @bindir@
-build = @build@
-build_alias = @build_alias@
-build_cpu = @build_cpu@
-build_os = @build_os@
-build_vendor = @build_vendor@
-builddir = @builddir@
-datadir = @datadir@
-datarootdir = @datarootdir@
-docdir = @docdir@
-dvidir = @dvidir@
-exec_prefix = @exec_prefix@
-gl_LIBOBJS = @gl_LIBOBJS@
-gl_LTLIBOBJS = @gl_LTLIBOBJS@
-host = @host@
-host_alias = @host_alias@
-host_cpu = @host_cpu@
-host_os = @host_os@
-host_vendor = @host_vendor@
-htmldir = @htmldir@
-includedir = @includedir@
-infodir = @infodir@
-install_sh = @install_sh@
-libdir = @libdir@
-libexecdir = @libexecdir@
-localedir = @localedir@
-localstatedir = @localstatedir@
-mandir = @mandir@
-mkdir_p = @mkdir_p@
-oldincludedir = @oldincludedir@
-pdfdir = @pdfdir@
-prefix = @prefix@
-program_transform_name = @program_transform_name@
-psdir = @psdir@
-sbindir = @sbindir@
-sharedstatedir = @sharedstatedir@
-srcdir = @srcdir@
-sysconfdir = @sysconfdir@
-target_alias = @target_alias@
-top_builddir = @top_builddir@
-top_srcdir = @top_srcdir@
-TESTS = basic dash
-EXTRA_DIST = $(TESTS)
-TESTS_ENVIRONMENT = \
- CU_TEST_NAME=`basename $(abs_srcdir)`,$$tst \
- PATH="$(VG_PATH_PREFIX)`pwd`/../../src$(PATH_SEPARATOR)$$PATH"
-
-all: all-am
-
-.SUFFIXES:
-$(srcdir)/Makefile.in: $(srcdir)/Makefile.am $(am__configure_deps)
- @for dep in $?; do \
- case '$(am__configure_deps)' in \
- *$$dep*) \
- cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh \
- && exit 0; \
- exit 1;; \
- esac; \
- done; \
- echo ' cd $(top_srcdir) && $(AUTOMAKE) --gnu tests/tee/Makefile'; \
- cd $(top_srcdir) && \
- $(AUTOMAKE) --gnu tests/tee/Makefile
-.PRECIOUS: Makefile
-Makefile: $(srcdir)/Makefile.in $(top_builddir)/config.status
- @case '$?' in \
- *config.status*) \
- cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh;; \
- *) \
- echo ' cd $(top_builddir) && $(SHELL) ./config.status $(subdir)/$@ $(am__depfiles_maybe)'; \
- cd $(top_builddir) && $(SHELL) ./config.status $(subdir)/$@ $(am__depfiles_maybe);; \
- esac;
-
-$(top_builddir)/config.status: $(top_srcdir)/configure $(CONFIG_STATUS_DEPENDENCIES)
- cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh
-
-$(top_srcdir)/configure: $(am__configure_deps)
- cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh
-$(ACLOCAL_M4): $(am__aclocal_m4_deps)
- cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh
-tags: TAGS
-TAGS:
-
-ctags: CTAGS
-CTAGS:
-
-
-check-TESTS: $(TESTS)
- @failed=0; all=0; xfail=0; xpass=0; skip=0; ws='[ ]'; \
- srcdir=$(srcdir); export srcdir; \
- list=' $(TESTS) '; \
- if test -n "$$list"; then \
- for tst in $$list; do \
- if test -f ./$$tst; then dir=./; \
- elif test -f $$tst; then dir=; \
- else dir="$(srcdir)/"; fi; \
- if $(TESTS_ENVIRONMENT) $${dir}$$tst; then \
- all=`expr $$all + 1`; \
- case " $(XFAIL_TESTS) " in \
- *$$ws$$tst$$ws*) \
- xpass=`expr $$xpass + 1`; \
- failed=`expr $$failed + 1`; \
- echo "XPASS: $$tst"; \
- ;; \
- *) \
- echo "PASS: $$tst"; \
- ;; \
- esac; \
- elif test $$? -ne 77; then \
- all=`expr $$all + 1`; \
- case " $(XFAIL_TESTS) " in \
- *$$ws$$tst$$ws*) \
- xfail=`expr $$xfail + 1`; \
- echo "XFAIL: $$tst"; \
- ;; \
- *) \
- failed=`expr $$failed + 1`; \
- echo "FAIL: $$tst"; \
- ;; \
- esac; \
- else \
- skip=`expr $$skip + 1`; \
- echo "SKIP: $$tst"; \
- fi; \
- done; \
- if test "$$failed" -eq 0; then \
- if test "$$xfail" -eq 0; then \
- banner="All $$all tests passed"; \
- else \
- banner="All $$all tests behaved as expected ($$xfail expected failures)"; \
- fi; \
- else \
- if test "$$xpass" -eq 0; then \
- banner="$$failed of $$all tests failed"; \
- else \
- banner="$$failed of $$all tests did not behave as expected ($$xpass unexpected passes)"; \
- fi; \
- fi; \
- dashes="$$banner"; \
- skipped=""; \
- if test "$$skip" -ne 0; then \
- skipped="($$skip tests were not run)"; \
- test `echo "$$skipped" | wc -c` -le `echo "$$banner" | wc -c` || \
- dashes="$$skipped"; \
- fi; \
- report=""; \
- if test "$$failed" -ne 0 && test -n "$(PACKAGE_BUGREPORT)"; then \
- report="Please report to $(PACKAGE_BUGREPORT)"; \
- test `echo "$$report" | wc -c` -le `echo "$$banner" | wc -c` || \
- dashes="$$report"; \
- fi; \
- dashes=`echo "$$dashes" | sed s/./=/g`; \
- echo "$$dashes"; \
- echo "$$banner"; \
- test -z "$$skipped" || echo "$$skipped"; \
- test -z "$$report" || echo "$$report"; \
- echo "$$dashes"; \
- test "$$failed" -eq 0; \
- else :; fi
-
-distdir: $(DISTFILES)
- @srcdirstrip=`echo "$(srcdir)" | sed 's/[].[^$$\\*]/\\\\&/g'`; \
- topsrcdirstrip=`echo "$(top_srcdir)" | sed 's/[].[^$$\\*]/\\\\&/g'`; \
- list='$(DISTFILES)'; \
- dist_files=`for file in $$list; do echo $$file; done | \
- sed -e "s|^$$srcdirstrip/||;t" \
- -e "s|^$$topsrcdirstrip/|$(top_builddir)/|;t"`; \
- case $$dist_files in \
- */*) $(MKDIR_P) `echo "$$dist_files" | \
- sed '/\//!d;s|^|$(distdir)/|;s,/[^/]*$$,,' | \
- sort -u` ;; \
- esac; \
- for file in $$dist_files; do \
- if test -f $$file || test -d $$file; then d=.; else d=$(srcdir); fi; \
- if test -d $$d/$$file; then \
- dir=`echo "/$$file" | sed -e 's,/[^/]*$$,,'`; \
- if test -d $(srcdir)/$$file && test $$d != $(srcdir); then \
- cp -pR $(srcdir)/$$file $(distdir)$$dir || exit 1; \
- fi; \
- cp -pR $$d/$$file $(distdir)$$dir || exit 1; \
- else \
- test -f $(distdir)/$$file \
- || cp -p $$d/$$file $(distdir)/$$file \
- || exit 1; \
- fi; \
- done
-check-am: all-am
- $(MAKE) $(AM_MAKEFLAGS) check-TESTS
-check: check-am
-all-am: Makefile
-installdirs:
-install: install-am
-install-exec: install-exec-am
-install-data: install-data-am
-uninstall: uninstall-am
-
-install-am: all-am
- @$(MAKE) $(AM_MAKEFLAGS) install-exec-am install-data-am
-
-installcheck: installcheck-am
-install-strip:
- $(MAKE) $(AM_MAKEFLAGS) INSTALL_PROGRAM="$(INSTALL_STRIP_PROGRAM)" \
- install_sh_PROGRAM="$(INSTALL_STRIP_PROGRAM)" INSTALL_STRIP_FLAG=-s \
- `test -z '$(STRIP)' || \
- echo "INSTALL_PROGRAM_ENV=STRIPPROG='$(STRIP)'"` install
-mostlyclean-generic:
-
-clean-generic:
-
-distclean-generic:
- -test -z "$(CONFIG_CLEAN_FILES)" || rm -f $(CONFIG_CLEAN_FILES)
-
-maintainer-clean-generic:
- @echo "This command is intended for maintainers to use"
- @echo "it deletes files that may require special tools to rebuild."
-clean: clean-am
-
-clean-am: clean-generic mostlyclean-am
-
-distclean: distclean-am
- -rm -f Makefile
-distclean-am: clean-am distclean-generic
-
-dvi: dvi-am
-
-dvi-am:
-
-html: html-am
-
-info: info-am
-
-info-am:
-
-install-data-am:
-
-install-dvi: install-dvi-am
-
-install-exec-am:
-
-install-html: install-html-am
-
-install-info: install-info-am
-
-install-man:
-
-install-pdf: install-pdf-am
-
-install-ps: install-ps-am
-
-installcheck-am:
-
-maintainer-clean: maintainer-clean-am
- -rm -f Makefile
-maintainer-clean-am: distclean-am maintainer-clean-generic
-
-mostlyclean: mostlyclean-am
-
-mostlyclean-am: mostlyclean-generic
-
-pdf: pdf-am
-
-pdf-am:
-
-ps: ps-am
-
-ps-am:
-
-uninstall-am:
-
-.MAKE: install-am install-strip
-
-.PHONY: all all-am check check-TESTS check-am clean clean-generic \
- distclean distclean-generic distdir dvi dvi-am html html-am \
- info info-am install install-am install-data install-data-am \
- install-dvi install-dvi-am install-exec install-exec-am \
- install-html install-html-am install-info install-info-am \
- install-man install-pdf install-pdf-am install-ps \
- install-ps-am install-strip installcheck installcheck-am \
- installdirs maintainer-clean maintainer-clean-generic \
- mostlyclean mostlyclean-generic pdf pdf-am ps ps-am uninstall \
- uninstall-am
-
-# Tell versions [3.59,3.63) of GNU make to not export all variables.
-# Otherwise a system limit (for SysV at least) may be exceeded.
-.NOEXPORT:
diff --git a/tests/tee/basic b/tests/tee/basic
deleted file mode 100755
index 7765140..0000000
--- a/tests/tee/basic
+++ /dev/null
@@ -1,50 +0,0 @@
-#!/bin/sh
-# test for basic tee functionality.
-
-# Copyright (C) 2005, 2006 Free Software Foundation, Inc.
-
-# This program is free software; you can redistribute it and/or modify
-# it under the terms of the GNU General Public License as published by
-# the Free Software Foundation; either version 2 of the License, or
-# (at your option) any later version.
-
-# This program is distributed in the hope that it will be useful,
-# but WITHOUT ANY WARRANTY; without even the implied warranty of
-# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
-# GNU General Public License for more details.
-
-# You should have received a copy of the GNU General Public License
-# along with this program; if not, write to the Free Software
-# Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA
-# 02110-1301, USA.
-
-if test "$VERBOSE" = yes; then
- set -x
- tee --version
-fi
-
-pwd=`pwd`
-t0=`echo "$0" |sed 's,.*/,,'`.tmp; tmp=$t0/$$
-trap 'status=$?; cd "$pwd" && chmod -R u+rwx $t0 && rm -rf $t0 && exit $status' 0
-trap 'status=$?; (exit $status); exit $status' 1 2 13 15
-
-fail=0
-mkdir -p $tmp && cd $tmp || fail=1
-echo line >sample || fail=1
-nums=`seq 9` || fail=1
-
-if test $fail = 1; then
- echo "$0: failure in testing framework" 1>&2
- (exit 1); exit 1
-fi
-
-for n in 0 $nums; do
- files=`seq $n`
- rm -f $files
- tee $files <sample >out || fail=1
- for f in out $files; do
- cmp sample $f || fail=1
- done
-done
-
-(exit $fail); exit $fail
diff --git a/tests/tee/dash b/tests/tee/dash
deleted file mode 100755
index c6b9e81..0000000
--- a/tests/tee/dash
+++ /dev/null
@@ -1,41 +0,0 @@
-#!/bin/sh
-# test for "tee -".
-
-# Copyright (C) 2005, 2006 Free Software Foundation, Inc.
-
-# This program is free software; you can redistribute it and/or modify
-# it under the terms of the GNU General Public License as published by
-# the Free Software Foundation; either version 2 of the License, or
-# (at your option) any later version.
-
-# This program is distributed in the hope that it will be useful,
-# but WITHOUT ANY WARRANTY; without even the implied warranty of
-# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
-# GNU General Public License for more details.
-
-# You should have received a copy of the GNU General Public License
-# along with this program; if not, write to the Free Software
-# Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA
-# 02110-1301, USA.
-
-if test "$VERBOSE" = yes; then
- set -x
- tee --version
-fi
-
-pwd=`pwd`
-t0=`echo "$0" |sed 's,.*/,,'`.tmp; tmp=$t0/$$
-trap 'status=$?; cd "$pwd" && chmod -R u+rwx $t0 && rm -rf $t0 && exit $status' 0
-trap 'status=$?; (exit $status); exit $status' 1 2 13 15
-
-fail=0
-mkdir -p $tmp && cd $tmp || fail=1
-
-if test $fail = 1; then
- echo "$0: failure in testing framework" 1>&2
- (exit 1); exit 1
-fi
-
-tee - </dev/null || fail=1
-
-(exit $fail); exit $fail
diff --git a/tests/test/1a.X b/tests/test/1a.X
deleted file mode 100644
index e69de29..0000000
--- a/tests/test/1a.X
+++ /dev/null
diff --git a/tests/test/1b.X b/tests/test/1b.X
deleted file mode 100644
index e69de29..0000000
--- a/tests/test/1b.X
+++ /dev/null
diff --git a/tests/test/1c.X b/tests/test/1c.X
deleted file mode 100644
index e69de29..0000000
--- a/tests/test/1c.X
+++ /dev/null
diff --git a/tests/test/1d.X b/tests/test/1d.X
deleted file mode 100644
index e69de29..0000000
--- a/tests/test/1d.X
+++ /dev/null
diff --git a/tests/test/1e.X b/tests/test/1e.X
deleted file mode 100644
index e69de29..0000000
--- a/tests/test/1e.X
+++ /dev/null
diff --git a/tests/test/1f.X b/tests/test/1f.X
deleted file mode 100644
index e69de29..0000000
--- a/tests/test/1f.X
+++ /dev/null
diff --git a/tests/test/1g.X b/tests/test/1g.X
deleted file mode 100644
index e69de29..0000000
--- a/tests/test/1g.X
+++ /dev/null
diff --git a/tests/test/1h.X b/tests/test/1h.X
deleted file mode 100644
index e69de29..0000000
--- a/tests/test/1h.X
+++ /dev/null
diff --git a/tests/test/1i.X b/tests/test/1i.X
deleted file mode 100644
index e69de29..0000000
--- a/tests/test/1i.X
+++ /dev/null
diff --git a/tests/test/1j.X b/tests/test/1j.X
deleted file mode 100644
index e69de29..0000000
--- a/tests/test/1j.X
+++ /dev/null
diff --git a/tests/test/1k.X b/tests/test/1k.X
deleted file mode 100644
index e69de29..0000000
--- a/tests/test/1k.X
+++ /dev/null
diff --git a/tests/test/Makefile.am b/tests/test/Makefile.am
deleted file mode 100644
index fe191ef..0000000
--- a/tests/test/Makefile.am
+++ /dev/null
@@ -1,154 +0,0 @@
-# Make coreutils tests. -*-Makefile-*-
-
-# Copyright (C) 1997, 1998, 2000, 2003, 2004, 2006 Free Software
-# Foundation, Inc.
-
-# This program is free software; you can redistribute it and/or modify
-# it under the terms of the GNU General Public License as published by
-# the Free Software Foundation; either version 2 of the License, or
-# (at your option) any later version.
-
-# This program is distributed in the hope that it will be useful,
-# but WITHOUT ANY WARRANTY; without even the implied warranty of
-# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
-# GNU General Public License for more details.
-
-# You should have received a copy of the GNU General Public License
-# along with this program; if not, write to the Free Software
-# Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA
-# 02110-1301, USA.
-
-##test-files-begin
-x = test
-explicit =
-maint_gen = ne-1.X ne-2.X ne-3.X ne-4.X ne-5.X ne-6.X le-1.X le-2.X le-3.X \
-le-4.X le-5.X ge-1.X ge-2.X ge-3.X ge-4.X ge-5.X N-1b.X P-1b.X NP-1b.X \
-NNP-1b.X N-1c.X P-1c.X NP-1c.X NNP-1c.X N-1d.X P-1d.X NP-1d.X NNP-1d.X N-1e.X \
-P-1e.X NP-1e.X NNP-1e.X N-1f.X P-1f.X NP-1f.X NNP-1f.X N-1g.X P-1g.X NP-1g.X \
-NNP-1g.X N-1h.X P-1h.X NP-1h.X NNP-1h.X N-1i.X P-1i.X NP-1i.X NNP-1i.X N-1j.X \
-P-1j.X NP-1j.X NNP-1j.X N-1k.X P-1k.X NP-1k.X NNP-1k.X N-streq-1.X \
-P-streq-1.X NP-streq-1.X NNP-streq-1.X N-streq-2.X P-streq-2.X NP-streq-2.X \
-NNP-streq-2.X N-streq-3.X P-streq-3.X NP-streq-3.X NNP-streq-3.X N-streq-4.X \
-P-streq-4.X NP-streq-4.X NNP-streq-4.X N-streq-5.X P-streq-5.X NP-streq-5.X \
-NNP-streq-5.X N-streq-6.X N-strne-1.X P-strne-1.X NP-strne-1.X NNP-strne-1.X \
-N-strne-2.X P-strne-2.X NP-strne-2.X NNP-strne-2.X N-strne-3.X P-strne-3.X \
-NP-strne-3.X NNP-strne-3.X N-strne-4.X P-strne-4.X NP-strne-4.X NNP-strne-4.X \
-N-strne-5.X P-strne-5.X NP-strne-5.X NNP-strne-5.X N-strne-6.X N-and-1.X \
-P-and-1.X NP-and-1.X NNP-and-1.X N-and-2.X P-and-2.X NP-and-2.X NNP-and-2.X \
-N-and-3.X P-and-3.X NP-and-3.X NNP-and-3.X N-and-4.X P-and-4.X NP-and-4.X \
-NNP-and-4.X N-or-1.X P-or-1.X NP-or-1.X NNP-or-1.X N-or-2.X P-or-2.X \
-NP-or-2.X NNP-or-2.X N-or-3.X P-or-3.X NP-or-3.X NNP-or-3.X N-or-4.X P-or-4.X \
-NP-or-4.X NNP-or-4.X N-eq-1.X P-eq-1.X NP-eq-1.X NNP-eq-1.X N-eq-2.X P-eq-2.X \
-NP-eq-2.X NNP-eq-2.X N-eq-3.X P-eq-3.X NP-eq-3.X NNP-eq-3.X N-eq-4.X P-eq-4.X \
-NP-eq-4.X NNP-eq-4.X N-eq-5.X P-eq-5.X NP-eq-5.X NNP-eq-5.X N-eq-6.X P-eq-6.X \
-NP-eq-6.X NNP-eq-6.X N-gt-1.X P-gt-1.X NP-gt-1.X NNP-gt-1.X N-gt-2.X P-gt-2.X \
-NP-gt-2.X NNP-gt-2.X N-gt-3.X P-gt-3.X NP-gt-3.X NNP-gt-3.X N-gt-4.X P-gt-4.X \
-NP-gt-4.X NNP-gt-4.X N-gt-5.X P-gt-5.X NP-gt-5.X NNP-gt-5.X N-lt-1.X P-lt-1.X \
-NP-lt-1.X NNP-lt-1.X N-lt-2.X P-lt-2.X NP-lt-2.X NNP-lt-2.X N-lt-3.X P-lt-3.X \
-NP-lt-3.X NNP-lt-3.X N-lt-4.X P-lt-4.X NP-lt-4.X NNP-lt-4.X N-lt-5.X P-lt-5.X \
-NP-lt-5.X NNP-lt-5.X N-t1.X P-t1.X NP-t1.X NNP-t1.X N-t2.X P-t2.X NP-t2.X \
-NNP-t2.X N-paren-1.X N-paren-2.X N-paren-3.X N-paren-4.X N-paren-5.X 1a.X \
-1b.X 1c.X 1d.X 1e.X 1f.X 1g.X 1h.X 1i.X 1j.X 1k.X streq-1.X streq-2.X \
-streq-3.X streq-4.X streq-5.X streq-6.X strne-1.X strne-2.X strne-3.X \
-strne-4.X strne-5.X strne-6.X and-1.X and-2.X and-3.X and-4.X or-1.X or-2.X \
-or-3.X or-4.X eq-1.X eq-2.X eq-3.X eq-4.X eq-5.X eq-6.X gt-1.X gt-2.X gt-3.X \
-gt-4.X gt-5.X lt-1.X lt-2.X lt-3.X lt-4.X lt-5.X inv-1.X t1.X t2.X paren-1.X \
-paren-2.X paren-3.X paren-4.X paren-5.X
-run_gen = ne-1.O ne-1.E ne-2.O ne-2.E ne-3.O ne-3.E ne-4.O ne-4.E ne-5.O \
-ne-5.E ne-6.O ne-6.E le-1.O le-1.E le-2.O le-2.E le-3.O le-3.E le-4.O le-4.E \
-le-5.O le-5.E ge-1.O ge-1.E ge-2.O ge-2.E ge-3.O ge-3.E ge-4.O ge-4.E ge-5.O \
-ge-5.E N-1b.O N-1b.E P-1b.O P-1b.E NP-1b.O NP-1b.E NNP-1b.O NNP-1b.E N-1c.O \
-N-1c.E P-1c.O P-1c.E NP-1c.O NP-1c.E NNP-1c.O NNP-1c.E N-1d.O N-1d.E P-1d.O \
-P-1d.E NP-1d.O NP-1d.E NNP-1d.O NNP-1d.E N-1e.O N-1e.E P-1e.O P-1e.E NP-1e.O \
-NP-1e.E NNP-1e.O NNP-1e.E N-1f.O N-1f.E P-1f.O P-1f.E NP-1f.O NP-1f.E \
-NNP-1f.O NNP-1f.E N-1g.O N-1g.E P-1g.O P-1g.E NP-1g.O NP-1g.E NNP-1g.O \
-NNP-1g.E N-1h.O N-1h.E P-1h.O P-1h.E NP-1h.O NP-1h.E NNP-1h.O NNP-1h.E N-1i.O \
-N-1i.E P-1i.O P-1i.E NP-1i.O NP-1i.E NNP-1i.O NNP-1i.E N-1j.O N-1j.E P-1j.O \
-P-1j.E NP-1j.O NP-1j.E NNP-1j.O NNP-1j.E N-1k.O N-1k.E P-1k.O P-1k.E NP-1k.O \
-NP-1k.E NNP-1k.O NNP-1k.E N-streq-1.O N-streq-1.E P-streq-1.O P-streq-1.E \
-NP-streq-1.O NP-streq-1.E NNP-streq-1.O NNP-streq-1.E N-streq-2.O N-streq-2.E \
-P-streq-2.O P-streq-2.E NP-streq-2.O NP-streq-2.E NNP-streq-2.O NNP-streq-2.E \
-N-streq-3.O N-streq-3.E P-streq-3.O P-streq-3.E NP-streq-3.O NP-streq-3.E \
-NNP-streq-3.O NNP-streq-3.E N-streq-4.O N-streq-4.E P-streq-4.O P-streq-4.E \
-NP-streq-4.O NP-streq-4.E NNP-streq-4.O NNP-streq-4.E N-streq-5.O N-streq-5.E \
-P-streq-5.O P-streq-5.E NP-streq-5.O NP-streq-5.E NNP-streq-5.O NNP-streq-5.E \
-N-streq-6.O N-streq-6.E N-strne-1.O N-strne-1.E P-strne-1.O P-strne-1.E \
-NP-strne-1.O NP-strne-1.E NNP-strne-1.O NNP-strne-1.E N-strne-2.O N-strne-2.E \
-P-strne-2.O P-strne-2.E NP-strne-2.O NP-strne-2.E NNP-strne-2.O NNP-strne-2.E \
-N-strne-3.O N-strne-3.E P-strne-3.O P-strne-3.E NP-strne-3.O NP-strne-3.E \
-NNP-strne-3.O NNP-strne-3.E N-strne-4.O N-strne-4.E P-strne-4.O P-strne-4.E \
-NP-strne-4.O NP-strne-4.E NNP-strne-4.O NNP-strne-4.E N-strne-5.O N-strne-5.E \
-P-strne-5.O P-strne-5.E NP-strne-5.O NP-strne-5.E NNP-strne-5.O NNP-strne-5.E \
-N-strne-6.O N-strne-6.E N-and-1.O N-and-1.E P-and-1.O P-and-1.E NP-and-1.O \
-NP-and-1.E NNP-and-1.O NNP-and-1.E N-and-2.O N-and-2.E P-and-2.O P-and-2.E \
-NP-and-2.O NP-and-2.E NNP-and-2.O NNP-and-2.E N-and-3.O N-and-3.E P-and-3.O \
-P-and-3.E NP-and-3.O NP-and-3.E NNP-and-3.O NNP-and-3.E N-and-4.O N-and-4.E \
-P-and-4.O P-and-4.E NP-and-4.O NP-and-4.E NNP-and-4.O NNP-and-4.E N-or-1.O \
-N-or-1.E P-or-1.O P-or-1.E NP-or-1.O NP-or-1.E NNP-or-1.O NNP-or-1.E N-or-2.O \
-N-or-2.E P-or-2.O P-or-2.E NP-or-2.O NP-or-2.E NNP-or-2.O NNP-or-2.E N-or-3.O \
-N-or-3.E P-or-3.O P-or-3.E NP-or-3.O NP-or-3.E NNP-or-3.O NNP-or-3.E N-or-4.O \
-N-or-4.E P-or-4.O P-or-4.E NP-or-4.O NP-or-4.E NNP-or-4.O NNP-or-4.E N-eq-1.O \
-N-eq-1.E P-eq-1.O P-eq-1.E NP-eq-1.O NP-eq-1.E NNP-eq-1.O NNP-eq-1.E N-eq-2.O \
-N-eq-2.E P-eq-2.O P-eq-2.E NP-eq-2.O NP-eq-2.E NNP-eq-2.O NNP-eq-2.E N-eq-3.O \
-N-eq-3.E P-eq-3.O P-eq-3.E NP-eq-3.O NP-eq-3.E NNP-eq-3.O NNP-eq-3.E N-eq-4.O \
-N-eq-4.E P-eq-4.O P-eq-4.E NP-eq-4.O NP-eq-4.E NNP-eq-4.O NNP-eq-4.E N-eq-5.O \
-N-eq-5.E P-eq-5.O P-eq-5.E NP-eq-5.O NP-eq-5.E NNP-eq-5.O NNP-eq-5.E N-eq-6.O \
-N-eq-6.E P-eq-6.O P-eq-6.E NP-eq-6.O NP-eq-6.E NNP-eq-6.O NNP-eq-6.E N-gt-1.O \
-N-gt-1.E P-gt-1.O P-gt-1.E NP-gt-1.O NP-gt-1.E NNP-gt-1.O NNP-gt-1.E N-gt-2.O \
-N-gt-2.E P-gt-2.O P-gt-2.E NP-gt-2.O NP-gt-2.E NNP-gt-2.O NNP-gt-2.E N-gt-3.O \
-N-gt-3.E P-gt-3.O P-gt-3.E NP-gt-3.O NP-gt-3.E NNP-gt-3.O NNP-gt-3.E N-gt-4.O \
-N-gt-4.E P-gt-4.O P-gt-4.E NP-gt-4.O NP-gt-4.E NNP-gt-4.O NNP-gt-4.E N-gt-5.O \
-N-gt-5.E P-gt-5.O P-gt-5.E NP-gt-5.O NP-gt-5.E NNP-gt-5.O NNP-gt-5.E N-lt-1.O \
-N-lt-1.E P-lt-1.O P-lt-1.E NP-lt-1.O NP-lt-1.E NNP-lt-1.O NNP-lt-1.E N-lt-2.O \
-N-lt-2.E P-lt-2.O P-lt-2.E NP-lt-2.O NP-lt-2.E NNP-lt-2.O NNP-lt-2.E N-lt-3.O \
-N-lt-3.E P-lt-3.O P-lt-3.E NP-lt-3.O NP-lt-3.E NNP-lt-3.O NNP-lt-3.E N-lt-4.O \
-N-lt-4.E P-lt-4.O P-lt-4.E NP-lt-4.O NP-lt-4.E NNP-lt-4.O NNP-lt-4.E N-lt-5.O \
-N-lt-5.E P-lt-5.O P-lt-5.E NP-lt-5.O NP-lt-5.E NNP-lt-5.O NNP-lt-5.E N-t1.O \
-N-t1.E P-t1.O P-t1.E NP-t1.O NP-t1.E NNP-t1.O NNP-t1.E N-t2.O N-t2.E P-t2.O \
-P-t2.E NP-t2.O NP-t2.E NNP-t2.O NNP-t2.E N-paren-1.O N-paren-1.E N-paren-2.O \
-N-paren-2.E N-paren-3.O N-paren-3.E N-paren-4.O N-paren-4.E N-paren-5.O \
-N-paren-5.E 1a.O 1a.E 1b.O 1b.E 1c.O 1c.E 1d.O 1d.E 1e.O 1e.E 1f.O 1f.E 1g.O \
-1g.E 1h.O 1h.E 1i.O 1i.E 1j.O 1j.E 1k.O 1k.E streq-1.O streq-1.E streq-2.O \
-streq-2.E streq-3.O streq-3.E streq-4.O streq-4.E streq-5.O streq-5.E \
-streq-6.O streq-6.E strne-1.O strne-1.E strne-2.O strne-2.E strne-3.O \
-strne-3.E strne-4.O strne-4.E strne-5.O strne-5.E strne-6.O strne-6.E and-1.O \
-and-1.E and-2.O and-2.E and-3.O and-3.E and-4.O and-4.E or-1.O or-1.E or-2.O \
-or-2.E or-3.O or-3.E or-4.O or-4.E eq-1.O eq-1.E eq-2.O eq-2.E eq-3.O eq-3.E \
-eq-4.O eq-4.E eq-5.O eq-5.E eq-6.O eq-6.E gt-1.O gt-1.E gt-2.O gt-2.E gt-3.O \
-gt-3.E gt-4.O gt-4.E gt-5.O gt-5.E lt-1.O lt-1.E lt-2.O lt-2.E lt-3.O lt-3.E \
-lt-4.O lt-4.E lt-5.O lt-5.E inv-1.O inv-1.E t1.O t1.E t2.O t2.E paren-1.O \
-paren-1.E paren-2.O paren-2.E paren-3.O paren-3.E paren-4.O paren-4.E \
-paren-5.O paren-5.E
-##test-files-end
-
-EXTRA_DIST = Test.pm $x-tests $(explicit) $(maint_gen)
-noinst_SCRIPTS = $x-tests
-TESTS_ENVIRONMENT = \
- CU_TEST_NAME=`basename $(abs_srcdir)`,$$tst \
- PATH="$(VG_PATH_PREFIX)`pwd`/../../src$(PATH_SEPARATOR)$$PATH"
-
-editpl = sed -e 's,@''PERL''@,$(PERL),g' -e 's,@''srcdir''@,$(srcdir),g'
-
-TESTS = $x-tests
-
-mk_script = $(srcdir)/../mk-script
-$(srcdir)/$x-tests: $(mk_script) Test.pm Makefile.am
- test '$x' = test && prog=../../src/$x || prog=$x; \
- $(PERL) -I$(srcdir) -w -- $(mk_script) $(srcdir) $$prog > $@.n
- mv $@.n $@
- chmod 755 $@
-
-MAINTAINERCLEANFILES = $x-tests $(maint_gen)
-CLEANFILES = $(run_gen)
-
-check: $(maint_gen)
-
-$(srcdir)/Makefile.am: ../Makefile.am.in Test.pm $(mk_script)
- rm -f $@ $@t
- sed -n '1,/^##test-files-begin/p' $(srcdir)/../Makefile.am.in > $@t
- tool=`echo $(subdir)|sed 's/^tests.//;s/-test//'`; \
- echo "x = $$tool" >> $@t
- $(PERL) -I$(srcdir) -w -- $(mk_script) $(srcdir) --list >> $@t
- sed -n '/^##test-files-end/,$$p' $(srcdir)/../Makefile.am.in >> $@t
- chmod -w $@t
- mv $@t $@
diff --git a/tests/test/Makefile.in b/tests/test/Makefile.in
deleted file mode 100644
index 60472b0..0000000
--- a/tests/test/Makefile.in
+++ /dev/null
@@ -1,864 +0,0 @@
-# Makefile.in generated by automake 1.10 from Makefile.am.
-# @configure_input@
-
-# Copyright (C) 1994, 1995, 1996, 1997, 1998, 1999, 2000, 2001, 2002,
-# 2003, 2004, 2005, 2006 Free Software Foundation, Inc.
-# This Makefile.in is free software; the Free Software Foundation
-# gives unlimited permission to copy and/or distribute it,
-# with or without modifications, as long as this notice is preserved.
-
-# This program is distributed in the hope that it will be useful,
-# but WITHOUT ANY WARRANTY, to the extent permitted by law; without
-# even the implied warranty of MERCHANTABILITY or FITNESS FOR A
-# PARTICULAR PURPOSE.
-
-@SET_MAKE@
-
-# Make coreutils tests. -*-Makefile-*-
-
-# Copyright (C) 1997, 1998, 2000, 2003, 2004, 2006 Free Software
-# Foundation, Inc.
-
-# This program is free software; you can redistribute it and/or modify
-# it under the terms of the GNU General Public License as published by
-# the Free Software Foundation; either version 2 of the License, or
-# (at your option) any later version.
-
-# This program is distributed in the hope that it will be useful,
-# but WITHOUT ANY WARRANTY; without even the implied warranty of
-# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
-# GNU General Public License for more details.
-
-# You should have received a copy of the GNU General Public License
-# along with this program; if not, write to the Free Software
-# Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA
-# 02110-1301, USA.
-
-VPATH = @srcdir@
-pkgdatadir = $(datadir)/@PACKAGE@
-pkglibdir = $(libdir)/@PACKAGE@
-pkgincludedir = $(includedir)/@PACKAGE@
-am__cd = CDPATH="$${ZSH_VERSION+.}$(PATH_SEPARATOR)" && cd
-install_sh_DATA = $(install_sh) -c -m 644
-install_sh_PROGRAM = $(install_sh) -c
-install_sh_SCRIPT = $(install_sh) -c
-INSTALL_HEADER = $(INSTALL_DATA)
-transform = $(program_transform_name)
-NORMAL_INSTALL = :
-PRE_INSTALL = :
-POST_INSTALL = :
-NORMAL_UNINSTALL = :
-PRE_UNINSTALL = :
-POST_UNINSTALL = :
-build_triplet = @build@
-host_triplet = @host@
-subdir = tests/test
-DIST_COMMON = $(srcdir)/Makefile.am $(srcdir)/Makefile.in
-ACLOCAL_M4 = $(top_srcdir)/aclocal.m4
-am__aclocal_m4_deps = $(top_srcdir)/m4/absolute-header.m4 \
- $(top_srcdir)/m4/acl.m4 $(top_srcdir)/m4/alloca.m4 \
- $(top_srcdir)/m4/allocsa.m4 $(top_srcdir)/m4/argmatch.m4 \
- $(top_srcdir)/m4/arpa_inet_h.m4 $(top_srcdir)/m4/assert.m4 \
- $(top_srcdir)/m4/atexit.m4 $(top_srcdir)/m4/autobuild.m4 \
- $(top_srcdir)/m4/backupfile.m4 $(top_srcdir)/m4/base64.m4 \
- $(top_srcdir)/m4/bison.m4 $(top_srcdir)/m4/boottime.m4 \
- $(top_srcdir)/m4/c-strtod.m4 $(top_srcdir)/m4/calloc.m4 \
- $(top_srcdir)/m4/canon-host.m4 \
- $(top_srcdir)/m4/canonicalize.m4 \
- $(top_srcdir)/m4/chdir-long.m4 $(top_srcdir)/m4/check-decl.m4 \
- $(top_srcdir)/m4/chown.m4 $(top_srcdir)/m4/clock_time.m4 \
- $(top_srcdir)/m4/cloexec.m4 $(top_srcdir)/m4/close-stream.m4 \
- $(top_srcdir)/m4/closeout.m4 $(top_srcdir)/m4/codeset.m4 \
- $(top_srcdir)/m4/config-h.m4 $(top_srcdir)/m4/cycle-check.m4 \
- $(top_srcdir)/m4/d-ino.m4 $(top_srcdir)/m4/d-type.m4 \
- $(top_srcdir)/m4/dirfd.m4 $(top_srcdir)/m4/dirname.m4 \
- $(top_srcdir)/m4/dos.m4 $(top_srcdir)/m4/double-slash-root.m4 \
- $(top_srcdir)/m4/dup2.m4 $(top_srcdir)/m4/eealloc.m4 \
- $(top_srcdir)/m4/eoverflow.m4 $(top_srcdir)/m4/error.m4 \
- $(top_srcdir)/m4/euidaccess-stat.m4 \
- $(top_srcdir)/m4/euidaccess.m4 $(top_srcdir)/m4/exclude.m4 \
- $(top_srcdir)/m4/exitfail.m4 $(top_srcdir)/m4/extensions.m4 \
- $(top_srcdir)/m4/fchdir.m4 $(top_srcdir)/m4/fcntl-safer.m4 \
- $(top_srcdir)/m4/fcntl_h.m4 $(top_srcdir)/m4/fd-reopen.m4 \
- $(top_srcdir)/m4/file-type.m4 $(top_srcdir)/m4/fileblocks.m4 \
- $(top_srcdir)/m4/filemode.m4 $(top_srcdir)/m4/filenamecat.m4 \
- $(top_srcdir)/m4/flexmember.m4 $(top_srcdir)/m4/fnmatch.m4 \
- $(top_srcdir)/m4/fpending.m4 $(top_srcdir)/m4/fprintftime.m4 \
- $(top_srcdir)/m4/free.m4 $(top_srcdir)/m4/fstypename.m4 \
- $(top_srcdir)/m4/fsusage.m4 $(top_srcdir)/m4/ftruncate.m4 \
- $(top_srcdir)/m4/fts.m4 $(top_srcdir)/m4/getaddrinfo.m4 \
- $(top_srcdir)/m4/getcwd-abort-bug.m4 \
- $(top_srcdir)/m4/getcwd-path-max.m4 $(top_srcdir)/m4/getcwd.m4 \
- $(top_srcdir)/m4/getdate.m4 $(top_srcdir)/m4/getdelim.m4 \
- $(top_srcdir)/m4/getgroups.m4 $(top_srcdir)/m4/gethostname.m4 \
- $(top_srcdir)/m4/gethrxtime.m4 $(top_srcdir)/m4/getline.m4 \
- $(top_srcdir)/m4/getloadavg.m4 $(top_srcdir)/m4/getndelim2.m4 \
- $(top_srcdir)/m4/getopt.m4 $(top_srcdir)/m4/getpagesize.m4 \
- $(top_srcdir)/m4/getpass.m4 $(top_srcdir)/m4/gettext.m4 \
- $(top_srcdir)/m4/gettime.m4 $(top_srcdir)/m4/gettimeofday.m4 \
- $(top_srcdir)/m4/getugroups.m4 \
- $(top_srcdir)/m4/getusershell.m4 $(top_srcdir)/m4/glibc21.m4 \
- $(top_srcdir)/m4/gnulib-common.m4 \
- $(top_srcdir)/m4/gnulib-comp.m4 \
- $(top_srcdir)/m4/group-member.m4 \
- $(top_srcdir)/m4/hard-locale.m4 $(top_srcdir)/m4/hash.m4 \
- $(top_srcdir)/m4/host-os.m4 $(top_srcdir)/m4/human.m4 \
- $(top_srcdir)/m4/i-ring.m4 $(top_srcdir)/m4/iconv.m4 \
- $(top_srcdir)/m4/idcache.m4 $(top_srcdir)/m4/inet_ntop.m4 \
- $(top_srcdir)/m4/inline.m4 $(top_srcdir)/m4/intmax_t.m4 \
- $(top_srcdir)/m4/inttostr.m4 $(top_srcdir)/m4/inttypes-pri.m4 \
- $(top_srcdir)/m4/inttypes.m4 $(top_srcdir)/m4/inttypes_h.m4 \
- $(top_srcdir)/m4/isapipe.m4 $(top_srcdir)/m4/jm-macros.m4 \
- $(top_srcdir)/m4/jm-winsz1.m4 $(top_srcdir)/m4/jm-winsz2.m4 \
- $(top_srcdir)/m4/lchmod.m4 $(top_srcdir)/m4/lchown.m4 \
- $(top_srcdir)/m4/lib-check.m4 $(top_srcdir)/m4/lib-ignore.m4 \
- $(top_srcdir)/m4/lib-ld.m4 $(top_srcdir)/m4/lib-link.m4 \
- $(top_srcdir)/m4/lib-prefix.m4 $(top_srcdir)/m4/link-follow.m4 \
- $(top_srcdir)/m4/localcharset.m4 \
- $(top_srcdir)/m4/long-options.m4 \
- $(top_srcdir)/m4/longdouble.m4 $(top_srcdir)/m4/longlong.m4 \
- $(top_srcdir)/m4/ls-mntd-fs.m4 $(top_srcdir)/m4/lstat.m4 \
- $(top_srcdir)/m4/mbchar.m4 $(top_srcdir)/m4/mbiter.m4 \
- $(top_srcdir)/m4/mbrtowc.m4 $(top_srcdir)/m4/mbscasecmp.m4 \
- $(top_srcdir)/m4/mbstate_t.m4 $(top_srcdir)/m4/mbswidth.m4 \
- $(top_srcdir)/m4/md5.m4 $(top_srcdir)/m4/memcasecmp.m4 \
- $(top_srcdir)/m4/memchr.m4 $(top_srcdir)/m4/memcmp.m4 \
- $(top_srcdir)/m4/memcoll.m4 $(top_srcdir)/m4/memcpy.m4 \
- $(top_srcdir)/m4/memmove.m4 $(top_srcdir)/m4/mempcpy.m4 \
- $(top_srcdir)/m4/memrchr.m4 $(top_srcdir)/m4/memset.m4 \
- $(top_srcdir)/m4/memxfrm.m4 $(top_srcdir)/m4/mkancesdirs.m4 \
- $(top_srcdir)/m4/mkdir-p.m4 $(top_srcdir)/m4/mkdir-slash.m4 \
- $(top_srcdir)/m4/mkstemp.m4 $(top_srcdir)/m4/mktime.m4 \
- $(top_srcdir)/m4/modechange.m4 $(top_srcdir)/m4/mountlist.m4 \
- $(top_srcdir)/m4/mpsort.m4 $(top_srcdir)/m4/nanosleep.m4 \
- $(top_srcdir)/m4/netinet_in_h.m4 $(top_srcdir)/m4/nls.m4 \
- $(top_srcdir)/m4/openat.m4 $(top_srcdir)/m4/pathmax.m4 \
- $(top_srcdir)/m4/perl.m4 $(top_srcdir)/m4/physmem.m4 \
- $(top_srcdir)/m4/po.m4 $(top_srcdir)/m4/posixtm.m4 \
- $(top_srcdir)/m4/posixver.m4 $(top_srcdir)/m4/prereq.m4 \
- $(top_srcdir)/m4/progtest.m4 $(top_srcdir)/m4/putenv.m4 \
- $(top_srcdir)/m4/quote.m4 $(top_srcdir)/m4/quotearg.m4 \
- $(top_srcdir)/m4/randint.m4 $(top_srcdir)/m4/randperm.m4 \
- $(top_srcdir)/m4/randread.m4 $(top_srcdir)/m4/readlink.m4 \
- $(top_srcdir)/m4/readtokens.m4 $(top_srcdir)/m4/readutmp.m4 \
- $(top_srcdir)/m4/regex.m4 \
- $(top_srcdir)/m4/rename-dest-slash.m4 \
- $(top_srcdir)/m4/rename.m4 $(top_srcdir)/m4/rmdir-errno.m4 \
- $(top_srcdir)/m4/rmdir.m4 $(top_srcdir)/m4/root-dev-ino.m4 \
- $(top_srcdir)/m4/rpmatch.m4 $(top_srcdir)/m4/safe-read.m4 \
- $(top_srcdir)/m4/safe-write.m4 $(top_srcdir)/m4/same.m4 \
- $(top_srcdir)/m4/save-cwd.m4 $(top_srcdir)/m4/savedir.m4 \
- $(top_srcdir)/m4/savewd.m4 $(top_srcdir)/m4/setenv.m4 \
- $(top_srcdir)/m4/settime.m4 $(top_srcdir)/m4/sha1.m4 \
- $(top_srcdir)/m4/sha256.m4 $(top_srcdir)/m4/sha512.m4 \
- $(top_srcdir)/m4/sig2str.m4 $(top_srcdir)/m4/snprintf.m4 \
- $(top_srcdir)/m4/socklen.m4 $(top_srcdir)/m4/sockpfaf.m4 \
- $(top_srcdir)/m4/ssize_t.m4 $(top_srcdir)/m4/st_dm_mode.m4 \
- $(top_srcdir)/m4/stat-prog.m4 $(top_srcdir)/m4/stat-time.m4 \
- $(top_srcdir)/m4/stdarg.m4 $(top_srcdir)/m4/stdbool.m4 \
- $(top_srcdir)/m4/stdint.m4 $(top_srcdir)/m4/stdint_h.m4 \
- $(top_srcdir)/m4/stdio-safer.m4 $(top_srcdir)/m4/stdio_h.m4 \
- $(top_srcdir)/m4/stdlib-safer.m4 $(top_srcdir)/m4/stdlib_h.m4 \
- $(top_srcdir)/m4/stpcpy.m4 $(top_srcdir)/m4/strcspn.m4 \
- $(top_srcdir)/m4/strdup.m4 $(top_srcdir)/m4/strftime.m4 \
- $(top_srcdir)/m4/string_h.m4 $(top_srcdir)/m4/strndup.m4 \
- $(top_srcdir)/m4/strnlen.m4 $(top_srcdir)/m4/strnumcmp.m4 \
- $(top_srcdir)/m4/strpbrk.m4 $(top_srcdir)/m4/strtod.m4 \
- $(top_srcdir)/m4/strtoimax.m4 $(top_srcdir)/m4/strtol.m4 \
- $(top_srcdir)/m4/strtoll.m4 $(top_srcdir)/m4/strtoul.m4 \
- $(top_srcdir)/m4/strtoull.m4 $(top_srcdir)/m4/strtoumax.m4 \
- $(top_srcdir)/m4/strverscmp.m4 \
- $(top_srcdir)/m4/sys_socket_h.m4 \
- $(top_srcdir)/m4/sys_stat_h.m4 $(top_srcdir)/m4/sys_time_h.m4 \
- $(top_srcdir)/m4/tempname.m4 $(top_srcdir)/m4/time_h.m4 \
- $(top_srcdir)/m4/time_r.m4 $(top_srcdir)/m4/timespec.m4 \
- $(top_srcdir)/m4/tm_gmtoff.m4 $(top_srcdir)/m4/tzset.m4 \
- $(top_srcdir)/m4/unicodeio.m4 $(top_srcdir)/m4/unistd-safer.m4 \
- $(top_srcdir)/m4/unistd_h.m4 $(top_srcdir)/m4/unlink-busy.m4 \
- $(top_srcdir)/m4/unlinkdir.m4 $(top_srcdir)/m4/unlocked-io.m4 \
- $(top_srcdir)/m4/uptime.m4 $(top_srcdir)/m4/userspec.m4 \
- $(top_srcdir)/m4/utimbuf.m4 $(top_srcdir)/m4/utime.m4 \
- $(top_srcdir)/m4/utimecmp.m4 $(top_srcdir)/m4/utimens.m4 \
- $(top_srcdir)/m4/utimes-null.m4 $(top_srcdir)/m4/utimes.m4 \
- $(top_srcdir)/m4/vasnprintf.m4 $(top_srcdir)/m4/vasprintf.m4 \
- $(top_srcdir)/m4/wchar.m4 $(top_srcdir)/m4/wchar_t.m4 \
- $(top_srcdir)/m4/wctype.m4 $(top_srcdir)/m4/wcwidth.m4 \
- $(top_srcdir)/m4/wint_t.m4 $(top_srcdir)/m4/xalloc.m4 \
- $(top_srcdir)/m4/xfts.m4 $(top_srcdir)/m4/xgetcwd.m4 \
- $(top_srcdir)/m4/xnanosleep.m4 $(top_srcdir)/m4/xstrndup.m4 \
- $(top_srcdir)/m4/xstrtod.m4 $(top_srcdir)/m4/xstrtol.m4 \
- $(top_srcdir)/m4/yesno.m4 $(top_srcdir)/configure.ac
-am__configure_deps = $(am__aclocal_m4_deps) $(CONFIGURE_DEPENDENCIES) \
- $(ACLOCAL_M4)
-mkinstalldirs = $(install_sh) -d
-CONFIG_HEADER = $(top_builddir)/lib/config.h
-CONFIG_CLEAN_FILES =
-SCRIPTS = $(noinst_SCRIPTS)
-SOURCES =
-DIST_SOURCES =
-DISTFILES = $(DIST_COMMON) $(DIST_SOURCES) $(TEXINFOS) $(EXTRA_DIST)
-ABSOLUTE_DIRENT_H = @ABSOLUTE_DIRENT_H@
-ABSOLUTE_FCNTL_H = @ABSOLUTE_FCNTL_H@
-ABSOLUTE_INTTYPES_H = @ABSOLUTE_INTTYPES_H@
-ABSOLUTE_NETINET_IN_H = @ABSOLUTE_NETINET_IN_H@
-ABSOLUTE_STDINT_H = @ABSOLUTE_STDINT_H@
-ABSOLUTE_STDIO_H = @ABSOLUTE_STDIO_H@
-ABSOLUTE_STDLIB_H = @ABSOLUTE_STDLIB_H@
-ABSOLUTE_STRING_H = @ABSOLUTE_STRING_H@
-ABSOLUTE_SYS_SOCKET_H = @ABSOLUTE_SYS_SOCKET_H@
-ABSOLUTE_SYS_STAT_H = @ABSOLUTE_SYS_STAT_H@
-ABSOLUTE_SYS_TIME_H = @ABSOLUTE_SYS_TIME_H@
-ABSOLUTE_TIME_H = @ABSOLUTE_TIME_H@
-ABSOLUTE_UNISTD_H = @ABSOLUTE_UNISTD_H@
-ABSOLUTE_WCHAR_H = @ABSOLUTE_WCHAR_H@
-ABSOLUTE_WCTYPE_H = @ABSOLUTE_WCTYPE_H@
-ACLOCAL = @ACLOCAL@
-ALLOCA = @ALLOCA@
-ALLOCA_H = @ALLOCA_H@
-AMTAR = @AMTAR@
-ARPA_INET_H = @ARPA_INET_H@
-AUTOCONF = @AUTOCONF@
-AUTOHEADER = @AUTOHEADER@
-AUTOMAKE = @AUTOMAKE@
-AWK = @AWK@
-BITSIZEOF_PTRDIFF_T = @BITSIZEOF_PTRDIFF_T@
-BITSIZEOF_SIG_ATOMIC_T = @BITSIZEOF_SIG_ATOMIC_T@
-BITSIZEOF_SIZE_T = @BITSIZEOF_SIZE_T@
-BITSIZEOF_WCHAR_T = @BITSIZEOF_WCHAR_T@
-BITSIZEOF_WINT_T = @BITSIZEOF_WINT_T@
-CC = @CC@
-CCDEPMODE = @CCDEPMODE@
-CFLAGS = @CFLAGS@
-CPP = @CPP@
-CPPFLAGS = @CPPFLAGS@
-CYGPATH_W = @CYGPATH_W@
-DEFAULT_POSIX2_VERSION = @DEFAULT_POSIX2_VERSION@
-DEFS = @DEFS@
-DEPDIR = @DEPDIR@
-DF_PROG = @DF_PROG@
-DIRENT_H = @DIRENT_H@
-ECHO_C = @ECHO_C@
-ECHO_N = @ECHO_N@
-ECHO_T = @ECHO_T@
-EGREP = @EGREP@
-EOVERFLOW = @EOVERFLOW@
-EXEEXT = @EXEEXT@
-FCNTL_H = @FCNTL_H@
-FNMATCH_H = @FNMATCH_H@
-GETLOADAVG_LIBS = @GETLOADAVG_LIBS@
-GETOPT_H = @GETOPT_H@
-GLIBC21 = @GLIBC21@
-GMSGFMT = @GMSGFMT@
-GMSGFMT_015 = @GMSGFMT_015@
-GNULIB_CHOWN = @GNULIB_CHOWN@
-GNULIB_DUP2 = @GNULIB_DUP2@
-GNULIB_FCHDIR = @GNULIB_FCHDIR@
-GNULIB_FPRINTF_POSIX = @GNULIB_FPRINTF_POSIX@
-GNULIB_FTRUNCATE = @GNULIB_FTRUNCATE@
-GNULIB_GETCWD = @GNULIB_GETCWD@
-GNULIB_GETLOGIN_R = @GNULIB_GETLOGIN_R@
-GNULIB_GETSUBOPT = @GNULIB_GETSUBOPT@
-GNULIB_IMAXABS = @GNULIB_IMAXABS@
-GNULIB_IMAXDIV = @GNULIB_IMAXDIV@
-GNULIB_MBSCASECMP = @GNULIB_MBSCASECMP@
-GNULIB_MBSCASESTR = @GNULIB_MBSCASESTR@
-GNULIB_MBSCHR = @GNULIB_MBSCHR@
-GNULIB_MBSCSPN = @GNULIB_MBSCSPN@
-GNULIB_MBSLEN = @GNULIB_MBSLEN@
-GNULIB_MBSNCASECMP = @GNULIB_MBSNCASECMP@
-GNULIB_MBSPBRK = @GNULIB_MBSPBRK@
-GNULIB_MBSPCASECMP = @GNULIB_MBSPCASECMP@
-GNULIB_MBSRCHR = @GNULIB_MBSRCHR@
-GNULIB_MBSSEP = @GNULIB_MBSSEP@
-GNULIB_MBSSPN = @GNULIB_MBSSPN@
-GNULIB_MBSSTR = @GNULIB_MBSSTR@
-GNULIB_MBSTOK_R = @GNULIB_MBSTOK_R@
-GNULIB_MEMMEM = @GNULIB_MEMMEM@
-GNULIB_MEMPCPY = @GNULIB_MEMPCPY@
-GNULIB_MEMRCHR = @GNULIB_MEMRCHR@
-GNULIB_MKDTEMP = @GNULIB_MKDTEMP@
-GNULIB_MKSTEMP = @GNULIB_MKSTEMP@
-GNULIB_PRINTF_POSIX = @GNULIB_PRINTF_POSIX@
-GNULIB_READLINK = @GNULIB_READLINK@
-GNULIB_SNPRINTF = @GNULIB_SNPRINTF@
-GNULIB_SPRINTF_POSIX = @GNULIB_SPRINTF_POSIX@
-GNULIB_STPCPY = @GNULIB_STPCPY@
-GNULIB_STPNCPY = @GNULIB_STPNCPY@
-GNULIB_STRCASESTR = @GNULIB_STRCASESTR@
-GNULIB_STRCHRNUL = @GNULIB_STRCHRNUL@
-GNULIB_STRDUP = @GNULIB_STRDUP@
-GNULIB_STRNDUP = @GNULIB_STRNDUP@
-GNULIB_STRNLEN = @GNULIB_STRNLEN@
-GNULIB_STRPBRK = @GNULIB_STRPBRK@
-GNULIB_STRSEP = @GNULIB_STRSEP@
-GNULIB_STRTOIMAX = @GNULIB_STRTOIMAX@
-GNULIB_STRTOK_R = @GNULIB_STRTOK_R@
-GNULIB_STRTOUMAX = @GNULIB_STRTOUMAX@
-GNULIB_VFPRINTF_POSIX = @GNULIB_VFPRINTF_POSIX@
-GNULIB_VPRINTF_POSIX = @GNULIB_VPRINTF_POSIX@
-GNULIB_VSNPRINTF = @GNULIB_VSNPRINTF@
-GNULIB_VSPRINTF_POSIX = @GNULIB_VSPRINTF_POSIX@
-GNU_PACKAGE = @GNU_PACKAGE@
-GREP = @GREP@
-HAVE_DECL_GETLOGIN_R = @HAVE_DECL_GETLOGIN_R@
-HAVE_DECL_IMAXABS = @HAVE_DECL_IMAXABS@
-HAVE_DECL_IMAXDIV = @HAVE_DECL_IMAXDIV@
-HAVE_DECL_MEMMEM = @HAVE_DECL_MEMMEM@
-HAVE_DECL_MEMRCHR = @HAVE_DECL_MEMRCHR@
-HAVE_DECL_SNPRINTF = @HAVE_DECL_SNPRINTF@
-HAVE_DECL_STRDUP = @HAVE_DECL_STRDUP@
-HAVE_DECL_STRNCASECMP = @HAVE_DECL_STRNCASECMP@
-HAVE_DECL_STRNDUP = @HAVE_DECL_STRNDUP@
-HAVE_DECL_STRNLEN = @HAVE_DECL_STRNLEN@
-HAVE_DECL_STRTOIMAX = @HAVE_DECL_STRTOIMAX@
-HAVE_DECL_STRTOK_R = @HAVE_DECL_STRTOK_R@
-HAVE_DECL_STRTOUMAX = @HAVE_DECL_STRTOUMAX@
-HAVE_DECL_VSNPRINTF = @HAVE_DECL_VSNPRINTF@
-HAVE_DUP2 = @HAVE_DUP2@
-HAVE_FTRUNCATE = @HAVE_FTRUNCATE@
-HAVE_GETSUBOPT = @HAVE_GETSUBOPT@
-HAVE_INTTYPES_H = @HAVE_INTTYPES_H@
-HAVE_LONG_LONG_INT = @HAVE_LONG_LONG_INT@
-HAVE_MEMPCPY = @HAVE_MEMPCPY@
-HAVE_MKDTEMP = @HAVE_MKDTEMP@
-HAVE_NETINET_IN_H = @HAVE_NETINET_IN_H@
-HAVE_READLINK = @HAVE_READLINK@
-HAVE_SIGNED_SIG_ATOMIC_T = @HAVE_SIGNED_SIG_ATOMIC_T@
-HAVE_SIGNED_WCHAR_T = @HAVE_SIGNED_WCHAR_T@
-HAVE_SIGNED_WINT_T = @HAVE_SIGNED_WINT_T@
-HAVE_STDINT_H = @HAVE_STDINT_H@
-HAVE_STPCPY = @HAVE_STPCPY@
-HAVE_STPNCPY = @HAVE_STPNCPY@
-HAVE_STRCASECMP = @HAVE_STRCASECMP@
-HAVE_STRCASESTR = @HAVE_STRCASESTR@
-HAVE_STRCHRNUL = @HAVE_STRCHRNUL@
-HAVE_STRNDUP = @HAVE_STRNDUP@
-HAVE_STRPBRK = @HAVE_STRPBRK@
-HAVE_STRSEP = @HAVE_STRSEP@
-HAVE_STRUCT_TIMEVAL = @HAVE_STRUCT_TIMEVAL@
-HAVE_SYS_BITYPES_H = @HAVE_SYS_BITYPES_H@
-HAVE_SYS_INTTYPES_H = @HAVE_SYS_INTTYPES_H@
-HAVE_SYS_SOCKET_H = @HAVE_SYS_SOCKET_H@
-HAVE_SYS_TIME_H = @HAVE_SYS_TIME_H@
-HAVE_SYS_TYPES_H = @HAVE_SYS_TYPES_H@
-HAVE_UNISTD_H = @HAVE_UNISTD_H@
-HAVE_UNSIGNED_LONG_LONG_INT = @HAVE_UNSIGNED_LONG_LONG_INT@
-HAVE_WCTYPE_H = @HAVE_WCTYPE_H@
-HAVE_WINSOCK2_H = @HAVE_WINSOCK2_H@
-HAVE_WINT_T = @HAVE_WINT_T@
-HAVE_WS2TCPIP_H = @HAVE_WS2TCPIP_H@
-HAVE__BOOL = @HAVE__BOOL@
-HELP2MAN = @HELP2MAN@
-INSTALL = @INSTALL@
-INSTALL_DATA = @INSTALL_DATA@
-INSTALL_PROGRAM = @INSTALL_PROGRAM@
-INSTALL_SCRIPT = @INSTALL_SCRIPT@
-INSTALL_STRIP_PROGRAM = @INSTALL_STRIP_PROGRAM@
-INTLLIBS = @INTLLIBS@
-INTL_MACOSX_LIBS = @INTL_MACOSX_LIBS@
-INTTYPES_H = @INTTYPES_H@
-KMEM_GROUP = @KMEM_GROUP@
-LDFLAGS = @LDFLAGS@
-LIBCOREUTILS_LIBDEPS = @LIBCOREUTILS_LIBDEPS@
-LIBCOREUTILS_LTLIBDEPS = @LIBCOREUTILS_LTLIBDEPS@
-LIBICONV = @LIBICONV@
-LIBINTL = @LIBINTL@
-LIBOBJS = @LIBOBJS@
-LIBS = @LIBS@
-LIB_ACL = @LIB_ACL@
-LIB_ACL_TRIVIAL = @LIB_ACL_TRIVIAL@
-LIB_CLOCK_GETTIME = @LIB_CLOCK_GETTIME@
-LIB_CRYPT = @LIB_CRYPT@
-LIB_EACCESS = @LIB_EACCESS@
-LIB_FDATASYNC = @LIB_FDATASYNC@
-LIB_GETHRXTIME = @LIB_GETHRXTIME@
-LIB_NANOSLEEP = @LIB_NANOSLEEP@
-LN_S = @LN_S@
-LTLIBICONV = @LTLIBICONV@
-LTLIBINTL = @LTLIBINTL@
-LTLIBOBJS = @LTLIBOBJS@
-MAKEINFO = @MAKEINFO@
-MAN = @MAN@
-MKDIR_P = @MKDIR_P@
-MSGFMT = @MSGFMT@
-MSGFMT_015 = @MSGFMT_015@
-MSGMERGE = @MSGMERGE@
-NEED_SETGID = @NEED_SETGID@
-NETINET_IN_H = @NETINET_IN_H@
-OBJEXT = @OBJEXT@
-OPTIONAL_BIN_PROGS = @OPTIONAL_BIN_PROGS@
-PACKAGE = @PACKAGE@
-PACKAGE_BUGREPORT = @PACKAGE_BUGREPORT@
-PACKAGE_NAME = @PACKAGE_NAME@
-PACKAGE_STRING = @PACKAGE_STRING@
-PACKAGE_TARNAME = @PACKAGE_TARNAME@
-PACKAGE_VERSION = @PACKAGE_VERSION@
-PATH_SEPARATOR = @PATH_SEPARATOR@
-PERL = @PERL@
-POSUB = @POSUB@
-POW_LIB = @POW_LIB@
-PRIPTR_PREFIX = @PRIPTR_PREFIX@
-PRI_MACROS_BROKEN = @PRI_MACROS_BROKEN@
-PTRDIFF_T_SUFFIX = @PTRDIFF_T_SUFFIX@
-RANLIB = @RANLIB@
-REPLACE_CHOWN = @REPLACE_CHOWN@
-REPLACE_FCHDIR = @REPLACE_FCHDIR@
-REPLACE_FPRINTF = @REPLACE_FPRINTF@
-REPLACE_GETCWD = @REPLACE_GETCWD@
-REPLACE_GETTIMEOFDAY = @REPLACE_GETTIMEOFDAY@
-REPLACE_LOCALTIME_R = @REPLACE_LOCALTIME_R@
-REPLACE_MKSTEMP = @REPLACE_MKSTEMP@
-REPLACE_NANOSLEEP = @REPLACE_NANOSLEEP@
-REPLACE_PRINTF = @REPLACE_PRINTF@
-REPLACE_SNPRINTF = @REPLACE_SNPRINTF@
-REPLACE_SPRINTF = @REPLACE_SPRINTF@
-REPLACE_STRPTIME = @REPLACE_STRPTIME@
-REPLACE_TIMEGM = @REPLACE_TIMEGM@
-REPLACE_VFPRINTF = @REPLACE_VFPRINTF@
-REPLACE_VPRINTF = @REPLACE_VPRINTF@
-REPLACE_VSNPRINTF = @REPLACE_VSNPRINTF@
-REPLACE_VSPRINTF = @REPLACE_VSPRINTF@
-SEQ_LIBM = @SEQ_LIBM@
-SET_MAKE = @SET_MAKE@
-SHELL = @SHELL@
-SIG_ATOMIC_T_SUFFIX = @SIG_ATOMIC_T_SUFFIX@
-SIZE_T_SUFFIX = @SIZE_T_SUFFIX@
-STDBOOL_H = @STDBOOL_H@
-STDINT_H = @STDINT_H@
-STRIP = @STRIP@
-SYS_SOCKET_H = @SYS_SOCKET_H@
-SYS_STAT_H = @SYS_STAT_H@
-SYS_TIME_H = @SYS_TIME_H@
-SYS_TIME_H_DEFINES_STRUCT_TIMESPEC = @SYS_TIME_H_DEFINES_STRUCT_TIMESPEC@
-TIME_H_DEFINES_STRUCT_TIMESPEC = @TIME_H_DEFINES_STRUCT_TIMESPEC@
-U = @U@
-USE_NLS = @USE_NLS@
-VERSION = @VERSION@
-WCHAR_H = @WCHAR_H@
-WCHAR_T_SUFFIX = @WCHAR_T_SUFFIX@
-WCTYPE_H = @WCTYPE_H@
-WINT_T_SUFFIX = @WINT_T_SUFFIX@
-XGETTEXT = @XGETTEXT@
-XGETTEXT_015 = @XGETTEXT_015@
-YACC = @YACC@
-YFLAGS = @YFLAGS@
-abs_builddir = @abs_builddir@
-abs_srcdir = @abs_srcdir@
-abs_top_builddir = @abs_top_builddir@
-abs_top_srcdir = @abs_top_srcdir@
-ac_ct_CC = @ac_ct_CC@
-am__include = @am__include@
-am__leading_dot = @am__leading_dot@
-am__quote = @am__quote@
-am__tar = @am__tar@
-am__untar = @am__untar@
-bindir = @bindir@
-build = @build@
-build_alias = @build_alias@
-build_cpu = @build_cpu@
-build_os = @build_os@
-build_vendor = @build_vendor@
-builddir = @builddir@
-datadir = @datadir@
-datarootdir = @datarootdir@
-docdir = @docdir@
-dvidir = @dvidir@
-exec_prefix = @exec_prefix@
-gl_LIBOBJS = @gl_LIBOBJS@
-gl_LTLIBOBJS = @gl_LTLIBOBJS@
-host = @host@
-host_alias = @host_alias@
-host_cpu = @host_cpu@
-host_os = @host_os@
-host_vendor = @host_vendor@
-htmldir = @htmldir@
-includedir = @includedir@
-infodir = @infodir@
-install_sh = @install_sh@
-libdir = @libdir@
-libexecdir = @libexecdir@
-localedir = @localedir@
-localstatedir = @localstatedir@
-mandir = @mandir@
-mkdir_p = @mkdir_p@
-oldincludedir = @oldincludedir@
-pdfdir = @pdfdir@
-prefix = @prefix@
-program_transform_name = @program_transform_name@
-psdir = @psdir@
-sbindir = @sbindir@
-sharedstatedir = @sharedstatedir@
-srcdir = @srcdir@
-sysconfdir = @sysconfdir@
-target_alias = @target_alias@
-top_builddir = @top_builddir@
-top_srcdir = @top_srcdir@
-x = test
-explicit =
-maint_gen = ne-1.X ne-2.X ne-3.X ne-4.X ne-5.X ne-6.X le-1.X le-2.X le-3.X \
-le-4.X le-5.X ge-1.X ge-2.X ge-3.X ge-4.X ge-5.X N-1b.X P-1b.X NP-1b.X \
-NNP-1b.X N-1c.X P-1c.X NP-1c.X NNP-1c.X N-1d.X P-1d.X NP-1d.X NNP-1d.X N-1e.X \
-P-1e.X NP-1e.X NNP-1e.X N-1f.X P-1f.X NP-1f.X NNP-1f.X N-1g.X P-1g.X NP-1g.X \
-NNP-1g.X N-1h.X P-1h.X NP-1h.X NNP-1h.X N-1i.X P-1i.X NP-1i.X NNP-1i.X N-1j.X \
-P-1j.X NP-1j.X NNP-1j.X N-1k.X P-1k.X NP-1k.X NNP-1k.X N-streq-1.X \
-P-streq-1.X NP-streq-1.X NNP-streq-1.X N-streq-2.X P-streq-2.X NP-streq-2.X \
-NNP-streq-2.X N-streq-3.X P-streq-3.X NP-streq-3.X NNP-streq-3.X N-streq-4.X \
-P-streq-4.X NP-streq-4.X NNP-streq-4.X N-streq-5.X P-streq-5.X NP-streq-5.X \
-NNP-streq-5.X N-streq-6.X N-strne-1.X P-strne-1.X NP-strne-1.X NNP-strne-1.X \
-N-strne-2.X P-strne-2.X NP-strne-2.X NNP-strne-2.X N-strne-3.X P-strne-3.X \
-NP-strne-3.X NNP-strne-3.X N-strne-4.X P-strne-4.X NP-strne-4.X NNP-strne-4.X \
-N-strne-5.X P-strne-5.X NP-strne-5.X NNP-strne-5.X N-strne-6.X N-and-1.X \
-P-and-1.X NP-and-1.X NNP-and-1.X N-and-2.X P-and-2.X NP-and-2.X NNP-and-2.X \
-N-and-3.X P-and-3.X NP-and-3.X NNP-and-3.X N-and-4.X P-and-4.X NP-and-4.X \
-NNP-and-4.X N-or-1.X P-or-1.X NP-or-1.X NNP-or-1.X N-or-2.X P-or-2.X \
-NP-or-2.X NNP-or-2.X N-or-3.X P-or-3.X NP-or-3.X NNP-or-3.X N-or-4.X P-or-4.X \
-NP-or-4.X NNP-or-4.X N-eq-1.X P-eq-1.X NP-eq-1.X NNP-eq-1.X N-eq-2.X P-eq-2.X \
-NP-eq-2.X NNP-eq-2.X N-eq-3.X P-eq-3.X NP-eq-3.X NNP-eq-3.X N-eq-4.X P-eq-4.X \
-NP-eq-4.X NNP-eq-4.X N-eq-5.X P-eq-5.X NP-eq-5.X NNP-eq-5.X N-eq-6.X P-eq-6.X \
-NP-eq-6.X NNP-eq-6.X N-gt-1.X P-gt-1.X NP-gt-1.X NNP-gt-1.X N-gt-2.X P-gt-2.X \
-NP-gt-2.X NNP-gt-2.X N-gt-3.X P-gt-3.X NP-gt-3.X NNP-gt-3.X N-gt-4.X P-gt-4.X \
-NP-gt-4.X NNP-gt-4.X N-gt-5.X P-gt-5.X NP-gt-5.X NNP-gt-5.X N-lt-1.X P-lt-1.X \
-NP-lt-1.X NNP-lt-1.X N-lt-2.X P-lt-2.X NP-lt-2.X NNP-lt-2.X N-lt-3.X P-lt-3.X \
-NP-lt-3.X NNP-lt-3.X N-lt-4.X P-lt-4.X NP-lt-4.X NNP-lt-4.X N-lt-5.X P-lt-5.X \
-NP-lt-5.X NNP-lt-5.X N-t1.X P-t1.X NP-t1.X NNP-t1.X N-t2.X P-t2.X NP-t2.X \
-NNP-t2.X N-paren-1.X N-paren-2.X N-paren-3.X N-paren-4.X N-paren-5.X 1a.X \
-1b.X 1c.X 1d.X 1e.X 1f.X 1g.X 1h.X 1i.X 1j.X 1k.X streq-1.X streq-2.X \
-streq-3.X streq-4.X streq-5.X streq-6.X strne-1.X strne-2.X strne-3.X \
-strne-4.X strne-5.X strne-6.X and-1.X and-2.X and-3.X and-4.X or-1.X or-2.X \
-or-3.X or-4.X eq-1.X eq-2.X eq-3.X eq-4.X eq-5.X eq-6.X gt-1.X gt-2.X gt-3.X \
-gt-4.X gt-5.X lt-1.X lt-2.X lt-3.X lt-4.X lt-5.X inv-1.X t1.X t2.X paren-1.X \
-paren-2.X paren-3.X paren-4.X paren-5.X
-
-run_gen = ne-1.O ne-1.E ne-2.O ne-2.E ne-3.O ne-3.E ne-4.O ne-4.E ne-5.O \
-ne-5.E ne-6.O ne-6.E le-1.O le-1.E le-2.O le-2.E le-3.O le-3.E le-4.O le-4.E \
-le-5.O le-5.E ge-1.O ge-1.E ge-2.O ge-2.E ge-3.O ge-3.E ge-4.O ge-4.E ge-5.O \
-ge-5.E N-1b.O N-1b.E P-1b.O P-1b.E NP-1b.O NP-1b.E NNP-1b.O NNP-1b.E N-1c.O \
-N-1c.E P-1c.O P-1c.E NP-1c.O NP-1c.E NNP-1c.O NNP-1c.E N-1d.O N-1d.E P-1d.O \
-P-1d.E NP-1d.O NP-1d.E NNP-1d.O NNP-1d.E N-1e.O N-1e.E P-1e.O P-1e.E NP-1e.O \
-NP-1e.E NNP-1e.O NNP-1e.E N-1f.O N-1f.E P-1f.O P-1f.E NP-1f.O NP-1f.E \
-NNP-1f.O NNP-1f.E N-1g.O N-1g.E P-1g.O P-1g.E NP-1g.O NP-1g.E NNP-1g.O \
-NNP-1g.E N-1h.O N-1h.E P-1h.O P-1h.E NP-1h.O NP-1h.E NNP-1h.O NNP-1h.E N-1i.O \
-N-1i.E P-1i.O P-1i.E NP-1i.O NP-1i.E NNP-1i.O NNP-1i.E N-1j.O N-1j.E P-1j.O \
-P-1j.E NP-1j.O NP-1j.E NNP-1j.O NNP-1j.E N-1k.O N-1k.E P-1k.O P-1k.E NP-1k.O \
-NP-1k.E NNP-1k.O NNP-1k.E N-streq-1.O N-streq-1.E P-streq-1.O P-streq-1.E \
-NP-streq-1.O NP-streq-1.E NNP-streq-1.O NNP-streq-1.E N-streq-2.O N-streq-2.E \
-P-streq-2.O P-streq-2.E NP-streq-2.O NP-streq-2.E NNP-streq-2.O NNP-streq-2.E \
-N-streq-3.O N-streq-3.E P-streq-3.O P-streq-3.E NP-streq-3.O NP-streq-3.E \
-NNP-streq-3.O NNP-streq-3.E N-streq-4.O N-streq-4.E P-streq-4.O P-streq-4.E \
-NP-streq-4.O NP-streq-4.E NNP-streq-4.O NNP-streq-4.E N-streq-5.O N-streq-5.E \
-P-streq-5.O P-streq-5.E NP-streq-5.O NP-streq-5.E NNP-streq-5.O NNP-streq-5.E \
-N-streq-6.O N-streq-6.E N-strne-1.O N-strne-1.E P-strne-1.O P-strne-1.E \
-NP-strne-1.O NP-strne-1.E NNP-strne-1.O NNP-strne-1.E N-strne-2.O N-strne-2.E \
-P-strne-2.O P-strne-2.E NP-strne-2.O NP-strne-2.E NNP-strne-2.O NNP-strne-2.E \
-N-strne-3.O N-strne-3.E P-strne-3.O P-strne-3.E NP-strne-3.O NP-strne-3.E \
-NNP-strne-3.O NNP-strne-3.E N-strne-4.O N-strne-4.E P-strne-4.O P-strne-4.E \
-NP-strne-4.O NP-strne-4.E NNP-strne-4.O NNP-strne-4.E N-strne-5.O N-strne-5.E \
-P-strne-5.O P-strne-5.E NP-strne-5.O NP-strne-5.E NNP-strne-5.O NNP-strne-5.E \
-N-strne-6.O N-strne-6.E N-and-1.O N-and-1.E P-and-1.O P-and-1.E NP-and-1.O \
-NP-and-1.E NNP-and-1.O NNP-and-1.E N-and-2.O N-and-2.E P-and-2.O P-and-2.E \
-NP-and-2.O NP-and-2.E NNP-and-2.O NNP-and-2.E N-and-3.O N-and-3.E P-and-3.O \
-P-and-3.E NP-and-3.O NP-and-3.E NNP-and-3.O NNP-and-3.E N-and-4.O N-and-4.E \
-P-and-4.O P-and-4.E NP-and-4.O NP-and-4.E NNP-and-4.O NNP-and-4.E N-or-1.O \
-N-or-1.E P-or-1.O P-or-1.E NP-or-1.O NP-or-1.E NNP-or-1.O NNP-or-1.E N-or-2.O \
-N-or-2.E P-or-2.O P-or-2.E NP-or-2.O NP-or-2.E NNP-or-2.O NNP-or-2.E N-or-3.O \
-N-or-3.E P-or-3.O P-or-3.E NP-or-3.O NP-or-3.E NNP-or-3.O NNP-or-3.E N-or-4.O \
-N-or-4.E P-or-4.O P-or-4.E NP-or-4.O NP-or-4.E NNP-or-4.O NNP-or-4.E N-eq-1.O \
-N-eq-1.E P-eq-1.O P-eq-1.E NP-eq-1.O NP-eq-1.E NNP-eq-1.O NNP-eq-1.E N-eq-2.O \
-N-eq-2.E P-eq-2.O P-eq-2.E NP-eq-2.O NP-eq-2.E NNP-eq-2.O NNP-eq-2.E N-eq-3.O \
-N-eq-3.E P-eq-3.O P-eq-3.E NP-eq-3.O NP-eq-3.E NNP-eq-3.O NNP-eq-3.E N-eq-4.O \
-N-eq-4.E P-eq-4.O P-eq-4.E NP-eq-4.O NP-eq-4.E NNP-eq-4.O NNP-eq-4.E N-eq-5.O \
-N-eq-5.E P-eq-5.O P-eq-5.E NP-eq-5.O NP-eq-5.E NNP-eq-5.O NNP-eq-5.E N-eq-6.O \
-N-eq-6.E P-eq-6.O P-eq-6.E NP-eq-6.O NP-eq-6.E NNP-eq-6.O NNP-eq-6.E N-gt-1.O \
-N-gt-1.E P-gt-1.O P-gt-1.E NP-gt-1.O NP-gt-1.E NNP-gt-1.O NNP-gt-1.E N-gt-2.O \
-N-gt-2.E P-gt-2.O P-gt-2.E NP-gt-2.O NP-gt-2.E NNP-gt-2.O NNP-gt-2.E N-gt-3.O \
-N-gt-3.E P-gt-3.O P-gt-3.E NP-gt-3.O NP-gt-3.E NNP-gt-3.O NNP-gt-3.E N-gt-4.O \
-N-gt-4.E P-gt-4.O P-gt-4.E NP-gt-4.O NP-gt-4.E NNP-gt-4.O NNP-gt-4.E N-gt-5.O \
-N-gt-5.E P-gt-5.O P-gt-5.E NP-gt-5.O NP-gt-5.E NNP-gt-5.O NNP-gt-5.E N-lt-1.O \
-N-lt-1.E P-lt-1.O P-lt-1.E NP-lt-1.O NP-lt-1.E NNP-lt-1.O NNP-lt-1.E N-lt-2.O \
-N-lt-2.E P-lt-2.O P-lt-2.E NP-lt-2.O NP-lt-2.E NNP-lt-2.O NNP-lt-2.E N-lt-3.O \
-N-lt-3.E P-lt-3.O P-lt-3.E NP-lt-3.O NP-lt-3.E NNP-lt-3.O NNP-lt-3.E N-lt-4.O \
-N-lt-4.E P-lt-4.O P-lt-4.E NP-lt-4.O NP-lt-4.E NNP-lt-4.O NNP-lt-4.E N-lt-5.O \
-N-lt-5.E P-lt-5.O P-lt-5.E NP-lt-5.O NP-lt-5.E NNP-lt-5.O NNP-lt-5.E N-t1.O \
-N-t1.E P-t1.O P-t1.E NP-t1.O NP-t1.E NNP-t1.O NNP-t1.E N-t2.O N-t2.E P-t2.O \
-P-t2.E NP-t2.O NP-t2.E NNP-t2.O NNP-t2.E N-paren-1.O N-paren-1.E N-paren-2.O \
-N-paren-2.E N-paren-3.O N-paren-3.E N-paren-4.O N-paren-4.E N-paren-5.O \
-N-paren-5.E 1a.O 1a.E 1b.O 1b.E 1c.O 1c.E 1d.O 1d.E 1e.O 1e.E 1f.O 1f.E 1g.O \
-1g.E 1h.O 1h.E 1i.O 1i.E 1j.O 1j.E 1k.O 1k.E streq-1.O streq-1.E streq-2.O \
-streq-2.E streq-3.O streq-3.E streq-4.O streq-4.E streq-5.O streq-5.E \
-streq-6.O streq-6.E strne-1.O strne-1.E strne-2.O strne-2.E strne-3.O \
-strne-3.E strne-4.O strne-4.E strne-5.O strne-5.E strne-6.O strne-6.E and-1.O \
-and-1.E and-2.O and-2.E and-3.O and-3.E and-4.O and-4.E or-1.O or-1.E or-2.O \
-or-2.E or-3.O or-3.E or-4.O or-4.E eq-1.O eq-1.E eq-2.O eq-2.E eq-3.O eq-3.E \
-eq-4.O eq-4.E eq-5.O eq-5.E eq-6.O eq-6.E gt-1.O gt-1.E gt-2.O gt-2.E gt-3.O \
-gt-3.E gt-4.O gt-4.E gt-5.O gt-5.E lt-1.O lt-1.E lt-2.O lt-2.E lt-3.O lt-3.E \
-lt-4.O lt-4.E lt-5.O lt-5.E inv-1.O inv-1.E t1.O t1.E t2.O t2.E paren-1.O \
-paren-1.E paren-2.O paren-2.E paren-3.O paren-3.E paren-4.O paren-4.E \
-paren-5.O paren-5.E
-
-EXTRA_DIST = Test.pm $x-tests $(explicit) $(maint_gen)
-noinst_SCRIPTS = $x-tests
-TESTS_ENVIRONMENT = \
- CU_TEST_NAME=`basename $(abs_srcdir)`,$$tst \
- PATH="$(VG_PATH_PREFIX)`pwd`/../../src$(PATH_SEPARATOR)$$PATH"
-
-editpl = sed -e 's,@''PERL''@,$(PERL),g' -e 's,@''srcdir''@,$(srcdir),g'
-TESTS = $x-tests
-mk_script = $(srcdir)/../mk-script
-MAINTAINERCLEANFILES = $x-tests $(maint_gen)
-CLEANFILES = $(run_gen)
-all: all-am
-
-.SUFFIXES:
-$(srcdir)/Makefile.in: $(srcdir)/Makefile.am $(am__configure_deps)
- @for dep in $?; do \
- case '$(am__configure_deps)' in \
- *$$dep*) \
- cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh \
- && exit 0; \
- exit 1;; \
- esac; \
- done; \
- echo ' cd $(top_srcdir) && $(AUTOMAKE) --gnu tests/test/Makefile'; \
- cd $(top_srcdir) && \
- $(AUTOMAKE) --gnu tests/test/Makefile
-.PRECIOUS: Makefile
-Makefile: $(srcdir)/Makefile.in $(top_builddir)/config.status
- @case '$?' in \
- *config.status*) \
- cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh;; \
- *) \
- echo ' cd $(top_builddir) && $(SHELL) ./config.status $(subdir)/$@ $(am__depfiles_maybe)'; \
- cd $(top_builddir) && $(SHELL) ./config.status $(subdir)/$@ $(am__depfiles_maybe);; \
- esac;
-
-$(top_builddir)/config.status: $(top_srcdir)/configure $(CONFIG_STATUS_DEPENDENCIES)
- cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh
-
-$(top_srcdir)/configure: $(am__configure_deps)
- cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh
-$(ACLOCAL_M4): $(am__aclocal_m4_deps)
- cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh
-tags: TAGS
-TAGS:
-
-ctags: CTAGS
-CTAGS:
-
-
-check-TESTS: $(TESTS)
- @failed=0; all=0; xfail=0; xpass=0; skip=0; ws='[ ]'; \
- srcdir=$(srcdir); export srcdir; \
- list=' $(TESTS) '; \
- if test -n "$$list"; then \
- for tst in $$list; do \
- if test -f ./$$tst; then dir=./; \
- elif test -f $$tst; then dir=; \
- else dir="$(srcdir)/"; fi; \
- if $(TESTS_ENVIRONMENT) $${dir}$$tst; then \
- all=`expr $$all + 1`; \
- case " $(XFAIL_TESTS) " in \
- *$$ws$$tst$$ws*) \
- xpass=`expr $$xpass + 1`; \
- failed=`expr $$failed + 1`; \
- echo "XPASS: $$tst"; \
- ;; \
- *) \
- echo "PASS: $$tst"; \
- ;; \
- esac; \
- elif test $$? -ne 77; then \
- all=`expr $$all + 1`; \
- case " $(XFAIL_TESTS) " in \
- *$$ws$$tst$$ws*) \
- xfail=`expr $$xfail + 1`; \
- echo "XFAIL: $$tst"; \
- ;; \
- *) \
- failed=`expr $$failed + 1`; \
- echo "FAIL: $$tst"; \
- ;; \
- esac; \
- else \
- skip=`expr $$skip + 1`; \
- echo "SKIP: $$tst"; \
- fi; \
- done; \
- if test "$$failed" -eq 0; then \
- if test "$$xfail" -eq 0; then \
- banner="All $$all tests passed"; \
- else \
- banner="All $$all tests behaved as expected ($$xfail expected failures)"; \
- fi; \
- else \
- if test "$$xpass" -eq 0; then \
- banner="$$failed of $$all tests failed"; \
- else \
- banner="$$failed of $$all tests did not behave as expected ($$xpass unexpected passes)"; \
- fi; \
- fi; \
- dashes="$$banner"; \
- skipped=""; \
- if test "$$skip" -ne 0; then \
- skipped="($$skip tests were not run)"; \
- test `echo "$$skipped" | wc -c` -le `echo "$$banner" | wc -c` || \
- dashes="$$skipped"; \
- fi; \
- report=""; \
- if test "$$failed" -ne 0 && test -n "$(PACKAGE_BUGREPORT)"; then \
- report="Please report to $(PACKAGE_BUGREPORT)"; \
- test `echo "$$report" | wc -c` -le `echo "$$banner" | wc -c` || \
- dashes="$$report"; \
- fi; \
- dashes=`echo "$$dashes" | sed s/./=/g`; \
- echo "$$dashes"; \
- echo "$$banner"; \
- test -z "$$skipped" || echo "$$skipped"; \
- test -z "$$report" || echo "$$report"; \
- echo "$$dashes"; \
- test "$$failed" -eq 0; \
- else :; fi
-
-distdir: $(DISTFILES)
- @srcdirstrip=`echo "$(srcdir)" | sed 's/[].[^$$\\*]/\\\\&/g'`; \
- topsrcdirstrip=`echo "$(top_srcdir)" | sed 's/[].[^$$\\*]/\\\\&/g'`; \
- list='$(DISTFILES)'; \
- dist_files=`for file in $$list; do echo $$file; done | \
- sed -e "s|^$$srcdirstrip/||;t" \
- -e "s|^$$topsrcdirstrip/|$(top_builddir)/|;t"`; \
- case $$dist_files in \
- */*) $(MKDIR_P) `echo "$$dist_files" | \
- sed '/\//!d;s|^|$(distdir)/|;s,/[^/]*$$,,' | \
- sort -u` ;; \
- esac; \
- for file in $$dist_files; do \
- if test -f $$file || test -d $$file; then d=.; else d=$(srcdir); fi; \
- if test -d $$d/$$file; then \
- dir=`echo "/$$file" | sed -e 's,/[^/]*$$,,'`; \
- if test -d $(srcdir)/$$file && test $$d != $(srcdir); then \
- cp -pR $(srcdir)/$$file $(distdir)$$dir || exit 1; \
- fi; \
- cp -pR $$d/$$file $(distdir)$$dir || exit 1; \
- else \
- test -f $(distdir)/$$file \
- || cp -p $$d/$$file $(distdir)/$$file \
- || exit 1; \
- fi; \
- done
-check-am: all-am
- $(MAKE) $(AM_MAKEFLAGS) check-TESTS
-check: check-am
-all-am: Makefile $(SCRIPTS)
-installdirs:
-install: install-am
-install-exec: install-exec-am
-install-data: install-data-am
-uninstall: uninstall-am
-
-install-am: all-am
- @$(MAKE) $(AM_MAKEFLAGS) install-exec-am install-data-am
-
-installcheck: installcheck-am
-install-strip:
- $(MAKE) $(AM_MAKEFLAGS) INSTALL_PROGRAM="$(INSTALL_STRIP_PROGRAM)" \
- install_sh_PROGRAM="$(INSTALL_STRIP_PROGRAM)" INSTALL_STRIP_FLAG=-s \
- `test -z '$(STRIP)' || \
- echo "INSTALL_PROGRAM_ENV=STRIPPROG='$(STRIP)'"` install
-mostlyclean-generic:
-
-clean-generic:
- -test -z "$(CLEANFILES)" || rm -f $(CLEANFILES)
-
-distclean-generic:
- -test -z "$(CONFIG_CLEAN_FILES)" || rm -f $(CONFIG_CLEAN_FILES)
-
-maintainer-clean-generic:
- @echo "This command is intended for maintainers to use"
- @echo "it deletes files that may require special tools to rebuild."
- -test -z "$(MAINTAINERCLEANFILES)" || rm -f $(MAINTAINERCLEANFILES)
-clean: clean-am
-
-clean-am: clean-generic mostlyclean-am
-
-distclean: distclean-am
- -rm -f Makefile
-distclean-am: clean-am distclean-generic
-
-dvi: dvi-am
-
-dvi-am:
-
-html: html-am
-
-info: info-am
-
-info-am:
-
-install-data-am:
-
-install-dvi: install-dvi-am
-
-install-exec-am:
-
-install-html: install-html-am
-
-install-info: install-info-am
-
-install-man:
-
-install-pdf: install-pdf-am
-
-install-ps: install-ps-am
-
-installcheck-am:
-
-maintainer-clean: maintainer-clean-am
- -rm -f Makefile
-maintainer-clean-am: distclean-am maintainer-clean-generic
-
-mostlyclean: mostlyclean-am
-
-mostlyclean-am: mostlyclean-generic
-
-pdf: pdf-am
-
-pdf-am:
-
-ps: ps-am
-
-ps-am:
-
-uninstall-am:
-
-.MAKE: install-am install-strip
-
-.PHONY: all all-am check check-TESTS check-am clean clean-generic \
- distclean distclean-generic distdir dvi dvi-am html html-am \
- info info-am install install-am install-data install-data-am \
- install-dvi install-dvi-am install-exec install-exec-am \
- install-html install-html-am install-info install-info-am \
- install-man install-pdf install-pdf-am install-ps \
- install-ps-am install-strip installcheck installcheck-am \
- installdirs maintainer-clean maintainer-clean-generic \
- mostlyclean mostlyclean-generic pdf pdf-am ps ps-am uninstall \
- uninstall-am
-
-$(srcdir)/$x-tests: $(mk_script) Test.pm Makefile.am
- test '$x' = test && prog=../../src/$x || prog=$x; \
- $(PERL) -I$(srcdir) -w -- $(mk_script) $(srcdir) $$prog > $@.n
- mv $@.n $@
- chmod 755 $@
-
-check: $(maint_gen)
-
-$(srcdir)/Makefile.am: ../Makefile.am.in Test.pm $(mk_script)
- rm -f $@ $@t
- sed -n '1,/^##test-files-begin/p' $(srcdir)/../Makefile.am.in > $@t
- tool=`echo $(subdir)|sed 's/^tests.//;s/-test//'`; \
- echo "x = $$tool" >> $@t
- $(PERL) -I$(srcdir) -w -- $(mk_script) $(srcdir) --list >> $@t
- sed -n '/^##test-files-end/,$$p' $(srcdir)/../Makefile.am.in >> $@t
- chmod -w $@t
- mv $@t $@
-# Tell versions [3.59,3.63) of GNU make to not export all variables.
-# Otherwise a system limit (for SysV at least) may be exceeded.
-.NOEXPORT:
diff --git a/tests/test/N-1b.X b/tests/test/N-1b.X
deleted file mode 100644
index e69de29..0000000
--- a/tests/test/N-1b.X
+++ /dev/null
diff --git a/tests/test/N-1c.X b/tests/test/N-1c.X
deleted file mode 100644
index e69de29..0000000
--- a/tests/test/N-1c.X
+++ /dev/null
diff --git a/tests/test/N-1d.X b/tests/test/N-1d.X
deleted file mode 100644
index e69de29..0000000
--- a/tests/test/N-1d.X
+++ /dev/null
diff --git a/tests/test/N-1e.X b/tests/test/N-1e.X
deleted file mode 100644
index e69de29..0000000
--- a/tests/test/N-1e.X
+++ /dev/null
diff --git a/tests/test/N-1f.X b/tests/test/N-1f.X
deleted file mode 100644
index e69de29..0000000
--- a/tests/test/N-1f.X
+++ /dev/null
diff --git a/tests/test/N-1g.X b/tests/test/N-1g.X
deleted file mode 100644
index e69de29..0000000
--- a/tests/test/N-1g.X
+++ /dev/null
diff --git a/tests/test/N-1h.X b/tests/test/N-1h.X
deleted file mode 100644
index e69de29..0000000
--- a/tests/test/N-1h.X
+++ /dev/null
diff --git a/tests/test/N-1i.X b/tests/test/N-1i.X
deleted file mode 100644
index e69de29..0000000
--- a/tests/test/N-1i.X
+++ /dev/null
diff --git a/tests/test/N-1j.X b/tests/test/N-1j.X
deleted file mode 100644
index e69de29..0000000
--- a/tests/test/N-1j.X
+++ /dev/null
diff --git a/tests/test/N-1k.X b/tests/test/N-1k.X
deleted file mode 100644
index e69de29..0000000
--- a/tests/test/N-1k.X
+++ /dev/null
diff --git a/tests/test/N-and-1.X b/tests/test/N-and-1.X
deleted file mode 100644
index e69de29..0000000
--- a/tests/test/N-and-1.X
+++ /dev/null
diff --git a/tests/test/N-and-2.X b/tests/test/N-and-2.X
deleted file mode 100644
index e69de29..0000000
--- a/tests/test/N-and-2.X
+++ /dev/null
diff --git a/tests/test/N-and-3.X b/tests/test/N-and-3.X
deleted file mode 100644
index e69de29..0000000
--- a/tests/test/N-and-3.X
+++ /dev/null
diff --git a/tests/test/N-and-4.X b/tests/test/N-and-4.X
deleted file mode 100644
index e69de29..0000000
--- a/tests/test/N-and-4.X
+++ /dev/null
diff --git a/tests/test/N-eq-1.X b/tests/test/N-eq-1.X
deleted file mode 100644
index e69de29..0000000
--- a/tests/test/N-eq-1.X
+++ /dev/null
diff --git a/tests/test/N-eq-2.X b/tests/test/N-eq-2.X
deleted file mode 100644
index e69de29..0000000
--- a/tests/test/N-eq-2.X
+++ /dev/null
diff --git a/tests/test/N-eq-3.X b/tests/test/N-eq-3.X
deleted file mode 100644
index e69de29..0000000
--- a/tests/test/N-eq-3.X
+++ /dev/null
diff --git a/tests/test/N-eq-4.X b/tests/test/N-eq-4.X
deleted file mode 100644
index e69de29..0000000
--- a/tests/test/N-eq-4.X
+++ /dev/null
diff --git a/tests/test/N-eq-5.X b/tests/test/N-eq-5.X
deleted file mode 100644
index e69de29..0000000
--- a/tests/test/N-eq-5.X
+++ /dev/null
diff --git a/tests/test/N-eq-6.X b/tests/test/N-eq-6.X
deleted file mode 100644
index e69de29..0000000
--- a/tests/test/N-eq-6.X
+++ /dev/null
diff --git a/tests/test/N-gt-1.X b/tests/test/N-gt-1.X
deleted file mode 100644
index e69de29..0000000
--- a/tests/test/N-gt-1.X
+++ /dev/null
diff --git a/tests/test/N-gt-2.X b/tests/test/N-gt-2.X
deleted file mode 100644
index e69de29..0000000
--- a/tests/test/N-gt-2.X
+++ /dev/null
diff --git a/tests/test/N-gt-3.X b/tests/test/N-gt-3.X
deleted file mode 100644
index e69de29..0000000
--- a/tests/test/N-gt-3.X
+++ /dev/null
diff --git a/tests/test/N-gt-4.X b/tests/test/N-gt-4.X
deleted file mode 100644
index e69de29..0000000
--- a/tests/test/N-gt-4.X
+++ /dev/null
diff --git a/tests/test/N-gt-5.X b/tests/test/N-gt-5.X
deleted file mode 100644
index e69de29..0000000
--- a/tests/test/N-gt-5.X
+++ /dev/null
diff --git a/tests/test/N-lt-1.X b/tests/test/N-lt-1.X
deleted file mode 100644
index e69de29..0000000
--- a/tests/test/N-lt-1.X
+++ /dev/null
diff --git a/tests/test/N-lt-2.X b/tests/test/N-lt-2.X
deleted file mode 100644
index e69de29..0000000
--- a/tests/test/N-lt-2.X
+++ /dev/null
diff --git a/tests/test/N-lt-3.X b/tests/test/N-lt-3.X
deleted file mode 100644
index e69de29..0000000
--- a/tests/test/N-lt-3.X
+++ /dev/null
diff --git a/tests/test/N-lt-4.X b/tests/test/N-lt-4.X
deleted file mode 100644
index e69de29..0000000
--- a/tests/test/N-lt-4.X
+++ /dev/null
diff --git a/tests/test/N-lt-5.X b/tests/test/N-lt-5.X
deleted file mode 100644
index e69de29..0000000
--- a/tests/test/N-lt-5.X
+++ /dev/null
diff --git a/tests/test/N-or-1.X b/tests/test/N-or-1.X
deleted file mode 100644
index e69de29..0000000
--- a/tests/test/N-or-1.X
+++ /dev/null
diff --git a/tests/test/N-or-2.X b/tests/test/N-or-2.X
deleted file mode 100644
index e69de29..0000000
--- a/tests/test/N-or-2.X
+++ /dev/null
diff --git a/tests/test/N-or-3.X b/tests/test/N-or-3.X
deleted file mode 100644
index e69de29..0000000
--- a/tests/test/N-or-3.X
+++ /dev/null
diff --git a/tests/test/N-or-4.X b/tests/test/N-or-4.X
deleted file mode 100644
index e69de29..0000000
--- a/tests/test/N-or-4.X
+++ /dev/null
diff --git a/tests/test/N-paren-1.X b/tests/test/N-paren-1.X
deleted file mode 100644
index e69de29..0000000
--- a/tests/test/N-paren-1.X
+++ /dev/null
diff --git a/tests/test/N-paren-2.X b/tests/test/N-paren-2.X
deleted file mode 100644
index e69de29..0000000
--- a/tests/test/N-paren-2.X
+++ /dev/null
diff --git a/tests/test/N-paren-3.X b/tests/test/N-paren-3.X
deleted file mode 100644
index e69de29..0000000
--- a/tests/test/N-paren-3.X
+++ /dev/null
diff --git a/tests/test/N-paren-4.X b/tests/test/N-paren-4.X
deleted file mode 100644
index e69de29..0000000
--- a/tests/test/N-paren-4.X
+++ /dev/null
diff --git a/tests/test/N-paren-5.X b/tests/test/N-paren-5.X
deleted file mode 100644
index e69de29..0000000
--- a/tests/test/N-paren-5.X
+++ /dev/null
diff --git a/tests/test/N-streq-1.X b/tests/test/N-streq-1.X
deleted file mode 100644
index e69de29..0000000
--- a/tests/test/N-streq-1.X
+++ /dev/null
diff --git a/tests/test/N-streq-2.X b/tests/test/N-streq-2.X
deleted file mode 100644
index e69de29..0000000
--- a/tests/test/N-streq-2.X
+++ /dev/null
diff --git a/tests/test/N-streq-3.X b/tests/test/N-streq-3.X
deleted file mode 100644
index e69de29..0000000
--- a/tests/test/N-streq-3.X
+++ /dev/null
diff --git a/tests/test/N-streq-4.X b/tests/test/N-streq-4.X
deleted file mode 100644
index e69de29..0000000
--- a/tests/test/N-streq-4.X
+++ /dev/null
diff --git a/tests/test/N-streq-5.X b/tests/test/N-streq-5.X
deleted file mode 100644
index e69de29..0000000
--- a/tests/test/N-streq-5.X
+++ /dev/null
diff --git a/tests/test/N-streq-6.X b/tests/test/N-streq-6.X
deleted file mode 100644
index e69de29..0000000
--- a/tests/test/N-streq-6.X
+++ /dev/null
diff --git a/tests/test/N-strne-1.X b/tests/test/N-strne-1.X
deleted file mode 100644
index e69de29..0000000
--- a/tests/test/N-strne-1.X
+++ /dev/null
diff --git a/tests/test/N-strne-2.X b/tests/test/N-strne-2.X
deleted file mode 100644
index e69de29..0000000
--- a/tests/test/N-strne-2.X
+++ /dev/null
diff --git a/tests/test/N-strne-3.X b/tests/test/N-strne-3.X
deleted file mode 100644
index e69de29..0000000
--- a/tests/test/N-strne-3.X
+++ /dev/null
diff --git a/tests/test/N-strne-4.X b/tests/test/N-strne-4.X
deleted file mode 100644
index e69de29..0000000
--- a/tests/test/N-strne-4.X
+++ /dev/null
diff --git a/tests/test/N-strne-5.X b/tests/test/N-strne-5.X
deleted file mode 100644
index e69de29..0000000
--- a/tests/test/N-strne-5.X
+++ /dev/null
diff --git a/tests/test/N-strne-6.X b/tests/test/N-strne-6.X
deleted file mode 100644
index e69de29..0000000
--- a/tests/test/N-strne-6.X
+++ /dev/null
diff --git a/tests/test/N-t1.X b/tests/test/N-t1.X
deleted file mode 100644
index e69de29..0000000
--- a/tests/test/N-t1.X
+++ /dev/null
diff --git a/tests/test/N-t2.X b/tests/test/N-t2.X
deleted file mode 100644
index e69de29..0000000
--- a/tests/test/N-t2.X
+++ /dev/null
diff --git a/tests/test/NNP-1b.X b/tests/test/NNP-1b.X
deleted file mode 100644
index e69de29..0000000
--- a/tests/test/NNP-1b.X
+++ /dev/null
diff --git a/tests/test/NNP-1c.X b/tests/test/NNP-1c.X
deleted file mode 100644
index e69de29..0000000
--- a/tests/test/NNP-1c.X
+++ /dev/null
diff --git a/tests/test/NNP-1d.X b/tests/test/NNP-1d.X
deleted file mode 100644
index e69de29..0000000
--- a/tests/test/NNP-1d.X
+++ /dev/null
diff --git a/tests/test/NNP-1e.X b/tests/test/NNP-1e.X
deleted file mode 100644
index e69de29..0000000
--- a/tests/test/NNP-1e.X
+++ /dev/null
diff --git a/tests/test/NNP-1f.X b/tests/test/NNP-1f.X
deleted file mode 100644
index e69de29..0000000
--- a/tests/test/NNP-1f.X
+++ /dev/null
diff --git a/tests/test/NNP-1g.X b/tests/test/NNP-1g.X
deleted file mode 100644
index e69de29..0000000
--- a/tests/test/NNP-1g.X
+++ /dev/null
diff --git a/tests/test/NNP-1h.X b/tests/test/NNP-1h.X
deleted file mode 100644
index e69de29..0000000
--- a/tests/test/NNP-1h.X
+++ /dev/null
diff --git a/tests/test/NNP-1i.X b/tests/test/NNP-1i.X
deleted file mode 100644
index e69de29..0000000
--- a/tests/test/NNP-1i.X
+++ /dev/null
diff --git a/tests/test/NNP-1j.X b/tests/test/NNP-1j.X
deleted file mode 100644
index e69de29..0000000
--- a/tests/test/NNP-1j.X
+++ /dev/null
diff --git a/tests/test/NNP-1k.X b/tests/test/NNP-1k.X
deleted file mode 100644
index e69de29..0000000
--- a/tests/test/NNP-1k.X
+++ /dev/null
diff --git a/tests/test/NNP-and-1.X b/tests/test/NNP-and-1.X
deleted file mode 100644
index e69de29..0000000
--- a/tests/test/NNP-and-1.X
+++ /dev/null
diff --git a/tests/test/NNP-and-2.X b/tests/test/NNP-and-2.X
deleted file mode 100644
index e69de29..0000000
--- a/tests/test/NNP-and-2.X
+++ /dev/null
diff --git a/tests/test/NNP-and-3.X b/tests/test/NNP-and-3.X
deleted file mode 100644
index e69de29..0000000
--- a/tests/test/NNP-and-3.X
+++ /dev/null
diff --git a/tests/test/NNP-and-4.X b/tests/test/NNP-and-4.X
deleted file mode 100644
index e69de29..0000000
--- a/tests/test/NNP-and-4.X
+++ /dev/null
diff --git a/tests/test/NNP-eq-1.X b/tests/test/NNP-eq-1.X
deleted file mode 100644
index e69de29..0000000
--- a/tests/test/NNP-eq-1.X
+++ /dev/null
diff --git a/tests/test/NNP-eq-2.X b/tests/test/NNP-eq-2.X
deleted file mode 100644
index e69de29..0000000
--- a/tests/test/NNP-eq-2.X
+++ /dev/null
diff --git a/tests/test/NNP-eq-3.X b/tests/test/NNP-eq-3.X
deleted file mode 100644
index e69de29..0000000
--- a/tests/test/NNP-eq-3.X
+++ /dev/null
diff --git a/tests/test/NNP-eq-4.X b/tests/test/NNP-eq-4.X
deleted file mode 100644
index e69de29..0000000
--- a/tests/test/NNP-eq-4.X
+++ /dev/null
diff --git a/tests/test/NNP-eq-5.X b/tests/test/NNP-eq-5.X
deleted file mode 100644
index e69de29..0000000
--- a/tests/test/NNP-eq-5.X
+++ /dev/null
diff --git a/tests/test/NNP-eq-6.X b/tests/test/NNP-eq-6.X
deleted file mode 100644
index e69de29..0000000
--- a/tests/test/NNP-eq-6.X
+++ /dev/null
diff --git a/tests/test/NNP-gt-1.X b/tests/test/NNP-gt-1.X
deleted file mode 100644
index e69de29..0000000
--- a/tests/test/NNP-gt-1.X
+++ /dev/null
diff --git a/tests/test/NNP-gt-2.X b/tests/test/NNP-gt-2.X
deleted file mode 100644
index e69de29..0000000
--- a/tests/test/NNP-gt-2.X
+++ /dev/null
diff --git a/tests/test/NNP-gt-3.X b/tests/test/NNP-gt-3.X
deleted file mode 100644
index e69de29..0000000
--- a/tests/test/NNP-gt-3.X
+++ /dev/null
diff --git a/tests/test/NNP-gt-4.X b/tests/test/NNP-gt-4.X
deleted file mode 100644
index e69de29..0000000
--- a/tests/test/NNP-gt-4.X
+++ /dev/null
diff --git a/tests/test/NNP-gt-5.X b/tests/test/NNP-gt-5.X
deleted file mode 100644
index e69de29..0000000
--- a/tests/test/NNP-gt-5.X
+++ /dev/null
diff --git a/tests/test/NNP-lt-1.X b/tests/test/NNP-lt-1.X
deleted file mode 100644
index e69de29..0000000
--- a/tests/test/NNP-lt-1.X
+++ /dev/null
diff --git a/tests/test/NNP-lt-2.X b/tests/test/NNP-lt-2.X
deleted file mode 100644
index e69de29..0000000
--- a/tests/test/NNP-lt-2.X
+++ /dev/null
diff --git a/tests/test/NNP-lt-3.X b/tests/test/NNP-lt-3.X
deleted file mode 100644
index e69de29..0000000
--- a/tests/test/NNP-lt-3.X
+++ /dev/null
diff --git a/tests/test/NNP-lt-4.X b/tests/test/NNP-lt-4.X
deleted file mode 100644
index e69de29..0000000
--- a/tests/test/NNP-lt-4.X
+++ /dev/null
diff --git a/tests/test/NNP-lt-5.X b/tests/test/NNP-lt-5.X
deleted file mode 100644
index e69de29..0000000
--- a/tests/test/NNP-lt-5.X
+++ /dev/null
diff --git a/tests/test/NNP-or-1.X b/tests/test/NNP-or-1.X
deleted file mode 100644
index e69de29..0000000
--- a/tests/test/NNP-or-1.X
+++ /dev/null
diff --git a/tests/test/NNP-or-2.X b/tests/test/NNP-or-2.X
deleted file mode 100644
index e69de29..0000000
--- a/tests/test/NNP-or-2.X
+++ /dev/null
diff --git a/tests/test/NNP-or-3.X b/tests/test/NNP-or-3.X
deleted file mode 100644
index e69de29..0000000
--- a/tests/test/NNP-or-3.X
+++ /dev/null
diff --git a/tests/test/NNP-or-4.X b/tests/test/NNP-or-4.X
deleted file mode 100644
index e69de29..0000000
--- a/tests/test/NNP-or-4.X
+++ /dev/null
diff --git a/tests/test/NNP-streq-1.X b/tests/test/NNP-streq-1.X
deleted file mode 100644
index e69de29..0000000
--- a/tests/test/NNP-streq-1.X
+++ /dev/null
diff --git a/tests/test/NNP-streq-2.X b/tests/test/NNP-streq-2.X
deleted file mode 100644
index e69de29..0000000
--- a/tests/test/NNP-streq-2.X
+++ /dev/null
diff --git a/tests/test/NNP-streq-3.X b/tests/test/NNP-streq-3.X
deleted file mode 100644
index e69de29..0000000
--- a/tests/test/NNP-streq-3.X
+++ /dev/null
diff --git a/tests/test/NNP-streq-4.X b/tests/test/NNP-streq-4.X
deleted file mode 100644
index e69de29..0000000
--- a/tests/test/NNP-streq-4.X
+++ /dev/null
diff --git a/tests/test/NNP-streq-5.X b/tests/test/NNP-streq-5.X
deleted file mode 100644
index e69de29..0000000
--- a/tests/test/NNP-streq-5.X
+++ /dev/null
diff --git a/tests/test/NNP-strne-1.X b/tests/test/NNP-strne-1.X
deleted file mode 100644
index e69de29..0000000
--- a/tests/test/NNP-strne-1.X
+++ /dev/null
diff --git a/tests/test/NNP-strne-2.X b/tests/test/NNP-strne-2.X
deleted file mode 100644
index e69de29..0000000
--- a/tests/test/NNP-strne-2.X
+++ /dev/null
diff --git a/tests/test/NNP-strne-3.X b/tests/test/NNP-strne-3.X
deleted file mode 100644
index e69de29..0000000
--- a/tests/test/NNP-strne-3.X
+++ /dev/null
diff --git a/tests/test/NNP-strne-4.X b/tests/test/NNP-strne-4.X
deleted file mode 100644
index e69de29..0000000
--- a/tests/test/NNP-strne-4.X
+++ /dev/null
diff --git a/tests/test/NNP-strne-5.X b/tests/test/NNP-strne-5.X
deleted file mode 100644
index e69de29..0000000
--- a/tests/test/NNP-strne-5.X
+++ /dev/null
diff --git a/tests/test/NNP-t1.X b/tests/test/NNP-t1.X
deleted file mode 100644
index e69de29..0000000
--- a/tests/test/NNP-t1.X
+++ /dev/null
diff --git a/tests/test/NNP-t2.X b/tests/test/NNP-t2.X
deleted file mode 100644
index e69de29..0000000
--- a/tests/test/NNP-t2.X
+++ /dev/null
diff --git a/tests/test/NP-1b.X b/tests/test/NP-1b.X
deleted file mode 100644
index e69de29..0000000
--- a/tests/test/NP-1b.X
+++ /dev/null
diff --git a/tests/test/NP-1c.X b/tests/test/NP-1c.X
deleted file mode 100644
index e69de29..0000000
--- a/tests/test/NP-1c.X
+++ /dev/null
diff --git a/tests/test/NP-1d.X b/tests/test/NP-1d.X
deleted file mode 100644
index e69de29..0000000
--- a/tests/test/NP-1d.X
+++ /dev/null
diff --git a/tests/test/NP-1e.X b/tests/test/NP-1e.X
deleted file mode 100644
index e69de29..0000000
--- a/tests/test/NP-1e.X
+++ /dev/null
diff --git a/tests/test/NP-1f.X b/tests/test/NP-1f.X
deleted file mode 100644
index e69de29..0000000
--- a/tests/test/NP-1f.X
+++ /dev/null
diff --git a/tests/test/NP-1g.X b/tests/test/NP-1g.X
deleted file mode 100644
index e69de29..0000000
--- a/tests/test/NP-1g.X
+++ /dev/null
diff --git a/tests/test/NP-1h.X b/tests/test/NP-1h.X
deleted file mode 100644
index e69de29..0000000
--- a/tests/test/NP-1h.X
+++ /dev/null
diff --git a/tests/test/NP-1i.X b/tests/test/NP-1i.X
deleted file mode 100644
index e69de29..0000000
--- a/tests/test/NP-1i.X
+++ /dev/null
diff --git a/tests/test/NP-1j.X b/tests/test/NP-1j.X
deleted file mode 100644
index e69de29..0000000
--- a/tests/test/NP-1j.X
+++ /dev/null
diff --git a/tests/test/NP-1k.X b/tests/test/NP-1k.X
deleted file mode 100644
index e69de29..0000000
--- a/tests/test/NP-1k.X
+++ /dev/null
diff --git a/tests/test/NP-and-1.X b/tests/test/NP-and-1.X
deleted file mode 100644
index e69de29..0000000
--- a/tests/test/NP-and-1.X
+++ /dev/null
diff --git a/tests/test/NP-and-2.X b/tests/test/NP-and-2.X
deleted file mode 100644
index e69de29..0000000
--- a/tests/test/NP-and-2.X
+++ /dev/null
diff --git a/tests/test/NP-and-3.X b/tests/test/NP-and-3.X
deleted file mode 100644
index e69de29..0000000
--- a/tests/test/NP-and-3.X
+++ /dev/null
diff --git a/tests/test/NP-and-4.X b/tests/test/NP-and-4.X
deleted file mode 100644
index e69de29..0000000
--- a/tests/test/NP-and-4.X
+++ /dev/null
diff --git a/tests/test/NP-eq-1.X b/tests/test/NP-eq-1.X
deleted file mode 100644
index e69de29..0000000
--- a/tests/test/NP-eq-1.X
+++ /dev/null
diff --git a/tests/test/NP-eq-2.X b/tests/test/NP-eq-2.X
deleted file mode 100644
index e69de29..0000000
--- a/tests/test/NP-eq-2.X
+++ /dev/null
diff --git a/tests/test/NP-eq-3.X b/tests/test/NP-eq-3.X
deleted file mode 100644
index e69de29..0000000
--- a/tests/test/NP-eq-3.X
+++ /dev/null
diff --git a/tests/test/NP-eq-4.X b/tests/test/NP-eq-4.X
deleted file mode 100644
index e69de29..0000000
--- a/tests/test/NP-eq-4.X
+++ /dev/null
diff --git a/tests/test/NP-eq-5.X b/tests/test/NP-eq-5.X
deleted file mode 100644
index e69de29..0000000
--- a/tests/test/NP-eq-5.X
+++ /dev/null
diff --git a/tests/test/NP-eq-6.X b/tests/test/NP-eq-6.X
deleted file mode 100644
index e69de29..0000000
--- a/tests/test/NP-eq-6.X
+++ /dev/null
diff --git a/tests/test/NP-gt-1.X b/tests/test/NP-gt-1.X
deleted file mode 100644
index e69de29..0000000
--- a/tests/test/NP-gt-1.X
+++ /dev/null
diff --git a/tests/test/NP-gt-2.X b/tests/test/NP-gt-2.X
deleted file mode 100644
index e69de29..0000000
--- a/tests/test/NP-gt-2.X
+++ /dev/null
diff --git a/tests/test/NP-gt-3.X b/tests/test/NP-gt-3.X
deleted file mode 100644
index e69de29..0000000
--- a/tests/test/NP-gt-3.X
+++ /dev/null
diff --git a/tests/test/NP-gt-4.X b/tests/test/NP-gt-4.X
deleted file mode 100644
index e69de29..0000000
--- a/tests/test/NP-gt-4.X
+++ /dev/null
diff --git a/tests/test/NP-gt-5.X b/tests/test/NP-gt-5.X
deleted file mode 100644
index e69de29..0000000
--- a/tests/test/NP-gt-5.X
+++ /dev/null
diff --git a/tests/test/NP-lt-1.X b/tests/test/NP-lt-1.X
deleted file mode 100644
index e69de29..0000000
--- a/tests/test/NP-lt-1.X
+++ /dev/null
diff --git a/tests/test/NP-lt-2.X b/tests/test/NP-lt-2.X
deleted file mode 100644
index e69de29..0000000
--- a/tests/test/NP-lt-2.X
+++ /dev/null
diff --git a/tests/test/NP-lt-3.X b/tests/test/NP-lt-3.X
deleted file mode 100644
index e69de29..0000000
--- a/tests/test/NP-lt-3.X
+++ /dev/null
diff --git a/tests/test/NP-lt-4.X b/tests/test/NP-lt-4.X
deleted file mode 100644
index e69de29..0000000
--- a/tests/test/NP-lt-4.X
+++ /dev/null
diff --git a/tests/test/NP-lt-5.X b/tests/test/NP-lt-5.X
deleted file mode 100644
index e69de29..0000000
--- a/tests/test/NP-lt-5.X
+++ /dev/null
diff --git a/tests/test/NP-or-1.X b/tests/test/NP-or-1.X
deleted file mode 100644
index e69de29..0000000
--- a/tests/test/NP-or-1.X
+++ /dev/null
diff --git a/tests/test/NP-or-2.X b/tests/test/NP-or-2.X
deleted file mode 100644
index e69de29..0000000
--- a/tests/test/NP-or-2.X
+++ /dev/null
diff --git a/tests/test/NP-or-3.X b/tests/test/NP-or-3.X
deleted file mode 100644
index e69de29..0000000
--- a/tests/test/NP-or-3.X
+++ /dev/null
diff --git a/tests/test/NP-or-4.X b/tests/test/NP-or-4.X
deleted file mode 100644
index e69de29..0000000
--- a/tests/test/NP-or-4.X
+++ /dev/null
diff --git a/tests/test/NP-streq-1.X b/tests/test/NP-streq-1.X
deleted file mode 100644
index e69de29..0000000
--- a/tests/test/NP-streq-1.X
+++ /dev/null
diff --git a/tests/test/NP-streq-2.X b/tests/test/NP-streq-2.X
deleted file mode 100644
index e69de29..0000000
--- a/tests/test/NP-streq-2.X
+++ /dev/null
diff --git a/tests/test/NP-streq-3.X b/tests/test/NP-streq-3.X
deleted file mode 100644
index e69de29..0000000
--- a/tests/test/NP-streq-3.X
+++ /dev/null
diff --git a/tests/test/NP-streq-4.X b/tests/test/NP-streq-4.X
deleted file mode 100644
index e69de29..0000000
--- a/tests/test/NP-streq-4.X
+++ /dev/null
diff --git a/tests/test/NP-streq-5.X b/tests/test/NP-streq-5.X
deleted file mode 100644
index e69de29..0000000
--- a/tests/test/NP-streq-5.X
+++ /dev/null
diff --git a/tests/test/NP-strne-1.X b/tests/test/NP-strne-1.X
deleted file mode 100644
index e69de29..0000000
--- a/tests/test/NP-strne-1.X
+++ /dev/null
diff --git a/tests/test/NP-strne-2.X b/tests/test/NP-strne-2.X
deleted file mode 100644
index e69de29..0000000
--- a/tests/test/NP-strne-2.X
+++ /dev/null
diff --git a/tests/test/NP-strne-3.X b/tests/test/NP-strne-3.X
deleted file mode 100644
index e69de29..0000000
--- a/tests/test/NP-strne-3.X
+++ /dev/null
diff --git a/tests/test/NP-strne-4.X b/tests/test/NP-strne-4.X
deleted file mode 100644
index e69de29..0000000
--- a/tests/test/NP-strne-4.X
+++ /dev/null
diff --git a/tests/test/NP-strne-5.X b/tests/test/NP-strne-5.X
deleted file mode 100644
index e69de29..0000000
--- a/tests/test/NP-strne-5.X
+++ /dev/null
diff --git a/tests/test/NP-t1.X b/tests/test/NP-t1.X
deleted file mode 100644
index e69de29..0000000
--- a/tests/test/NP-t1.X
+++ /dev/null
diff --git a/tests/test/NP-t2.X b/tests/test/NP-t2.X
deleted file mode 100644
index e69de29..0000000
--- a/tests/test/NP-t2.X
+++ /dev/null
diff --git a/tests/test/P-1b.X b/tests/test/P-1b.X
deleted file mode 100644
index e69de29..0000000
--- a/tests/test/P-1b.X
+++ /dev/null
diff --git a/tests/test/P-1c.X b/tests/test/P-1c.X
deleted file mode 100644
index e69de29..0000000
--- a/tests/test/P-1c.X
+++ /dev/null
diff --git a/tests/test/P-1d.X b/tests/test/P-1d.X
deleted file mode 100644
index e69de29..0000000
--- a/tests/test/P-1d.X
+++ /dev/null
diff --git a/tests/test/P-1e.X b/tests/test/P-1e.X
deleted file mode 100644
index e69de29..0000000
--- a/tests/test/P-1e.X
+++ /dev/null
diff --git a/tests/test/P-1f.X b/tests/test/P-1f.X
deleted file mode 100644
index e69de29..0000000
--- a/tests/test/P-1f.X
+++ /dev/null
diff --git a/tests/test/P-1g.X b/tests/test/P-1g.X
deleted file mode 100644
index e69de29..0000000
--- a/tests/test/P-1g.X
+++ /dev/null
diff --git a/tests/test/P-1h.X b/tests/test/P-1h.X
deleted file mode 100644
index e69de29..0000000
--- a/tests/test/P-1h.X
+++ /dev/null
diff --git a/tests/test/P-1i.X b/tests/test/P-1i.X
deleted file mode 100644
index e69de29..0000000
--- a/tests/test/P-1i.X
+++ /dev/null
diff --git a/tests/test/P-1j.X b/tests/test/P-1j.X
deleted file mode 100644
index e69de29..0000000
--- a/tests/test/P-1j.X
+++ /dev/null
diff --git a/tests/test/P-1k.X b/tests/test/P-1k.X
deleted file mode 100644
index e69de29..0000000
--- a/tests/test/P-1k.X
+++ /dev/null
diff --git a/tests/test/P-and-1.X b/tests/test/P-and-1.X
deleted file mode 100644
index e69de29..0000000
--- a/tests/test/P-and-1.X
+++ /dev/null
diff --git a/tests/test/P-and-2.X b/tests/test/P-and-2.X
deleted file mode 100644
index e69de29..0000000
--- a/tests/test/P-and-2.X
+++ /dev/null
diff --git a/tests/test/P-and-3.X b/tests/test/P-and-3.X
deleted file mode 100644
index e69de29..0000000
--- a/tests/test/P-and-3.X
+++ /dev/null
diff --git a/tests/test/P-and-4.X b/tests/test/P-and-4.X
deleted file mode 100644
index e69de29..0000000
--- a/tests/test/P-and-4.X
+++ /dev/null
diff --git a/tests/test/P-eq-1.X b/tests/test/P-eq-1.X
deleted file mode 100644
index e69de29..0000000
--- a/tests/test/P-eq-1.X
+++ /dev/null
diff --git a/tests/test/P-eq-2.X b/tests/test/P-eq-2.X
deleted file mode 100644
index e69de29..0000000
--- a/tests/test/P-eq-2.X
+++ /dev/null
diff --git a/tests/test/P-eq-3.X b/tests/test/P-eq-3.X
deleted file mode 100644
index e69de29..0000000
--- a/tests/test/P-eq-3.X
+++ /dev/null
diff --git a/tests/test/P-eq-4.X b/tests/test/P-eq-4.X
deleted file mode 100644
index e69de29..0000000
--- a/tests/test/P-eq-4.X
+++ /dev/null
diff --git a/tests/test/P-eq-5.X b/tests/test/P-eq-5.X
deleted file mode 100644
index e69de29..0000000
--- a/tests/test/P-eq-5.X
+++ /dev/null
diff --git a/tests/test/P-eq-6.X b/tests/test/P-eq-6.X
deleted file mode 100644
index e69de29..0000000
--- a/tests/test/P-eq-6.X
+++ /dev/null
diff --git a/tests/test/P-gt-1.X b/tests/test/P-gt-1.X
deleted file mode 100644
index e69de29..0000000
--- a/tests/test/P-gt-1.X
+++ /dev/null
diff --git a/tests/test/P-gt-2.X b/tests/test/P-gt-2.X
deleted file mode 100644
index e69de29..0000000
--- a/tests/test/P-gt-2.X
+++ /dev/null
diff --git a/tests/test/P-gt-3.X b/tests/test/P-gt-3.X
deleted file mode 100644
index e69de29..0000000
--- a/tests/test/P-gt-3.X
+++ /dev/null
diff --git a/tests/test/P-gt-4.X b/tests/test/P-gt-4.X
deleted file mode 100644
index e69de29..0000000
--- a/tests/test/P-gt-4.X
+++ /dev/null
diff --git a/tests/test/P-gt-5.X b/tests/test/P-gt-5.X
deleted file mode 100644
index e69de29..0000000
--- a/tests/test/P-gt-5.X
+++ /dev/null
diff --git a/tests/test/P-lt-1.X b/tests/test/P-lt-1.X
deleted file mode 100644
index e69de29..0000000
--- a/tests/test/P-lt-1.X
+++ /dev/null
diff --git a/tests/test/P-lt-2.X b/tests/test/P-lt-2.X
deleted file mode 100644
index e69de29..0000000
--- a/tests/test/P-lt-2.X
+++ /dev/null
diff --git a/tests/test/P-lt-3.X b/tests/test/P-lt-3.X
deleted file mode 100644
index e69de29..0000000
--- a/tests/test/P-lt-3.X
+++ /dev/null
diff --git a/tests/test/P-lt-4.X b/tests/test/P-lt-4.X
deleted file mode 100644
index e69de29..0000000
--- a/tests/test/P-lt-4.X
+++ /dev/null
diff --git a/tests/test/P-lt-5.X b/tests/test/P-lt-5.X
deleted file mode 100644
index e69de29..0000000
--- a/tests/test/P-lt-5.X
+++ /dev/null
diff --git a/tests/test/P-or-1.X b/tests/test/P-or-1.X
deleted file mode 100644
index e69de29..0000000
--- a/tests/test/P-or-1.X
+++ /dev/null
diff --git a/tests/test/P-or-2.X b/tests/test/P-or-2.X
deleted file mode 100644
index e69de29..0000000
--- a/tests/test/P-or-2.X
+++ /dev/null
diff --git a/tests/test/P-or-3.X b/tests/test/P-or-3.X
deleted file mode 100644
index e69de29..0000000
--- a/tests/test/P-or-3.X
+++ /dev/null
diff --git a/tests/test/P-or-4.X b/tests/test/P-or-4.X
deleted file mode 100644
index e69de29..0000000
--- a/tests/test/P-or-4.X
+++ /dev/null
diff --git a/tests/test/P-streq-1.X b/tests/test/P-streq-1.X
deleted file mode 100644
index e69de29..0000000
--- a/tests/test/P-streq-1.X
+++ /dev/null
diff --git a/tests/test/P-streq-2.X b/tests/test/P-streq-2.X
deleted file mode 100644
index e69de29..0000000
--- a/tests/test/P-streq-2.X
+++ /dev/null
diff --git a/tests/test/P-streq-3.X b/tests/test/P-streq-3.X
deleted file mode 100644
index e69de29..0000000
--- a/tests/test/P-streq-3.X
+++ /dev/null
diff --git a/tests/test/P-streq-4.X b/tests/test/P-streq-4.X
deleted file mode 100644
index e69de29..0000000
--- a/tests/test/P-streq-4.X
+++ /dev/null
diff --git a/tests/test/P-streq-5.X b/tests/test/P-streq-5.X
deleted file mode 100644
index e69de29..0000000
--- a/tests/test/P-streq-5.X
+++ /dev/null
diff --git a/tests/test/P-strne-1.X b/tests/test/P-strne-1.X
deleted file mode 100644
index e69de29..0000000
--- a/tests/test/P-strne-1.X
+++ /dev/null
diff --git a/tests/test/P-strne-2.X b/tests/test/P-strne-2.X
deleted file mode 100644
index e69de29..0000000
--- a/tests/test/P-strne-2.X
+++ /dev/null
diff --git a/tests/test/P-strne-3.X b/tests/test/P-strne-3.X
deleted file mode 100644
index e69de29..0000000
--- a/tests/test/P-strne-3.X
+++ /dev/null
diff --git a/tests/test/P-strne-4.X b/tests/test/P-strne-4.X
deleted file mode 100644
index e69de29..0000000
--- a/tests/test/P-strne-4.X
+++ /dev/null
diff --git a/tests/test/P-strne-5.X b/tests/test/P-strne-5.X
deleted file mode 100644
index e69de29..0000000
--- a/tests/test/P-strne-5.X
+++ /dev/null
diff --git a/tests/test/P-t1.X b/tests/test/P-t1.X
deleted file mode 100644
index e69de29..0000000
--- a/tests/test/P-t1.X
+++ /dev/null
diff --git a/tests/test/P-t2.X b/tests/test/P-t2.X
deleted file mode 100644
index e69de29..0000000
--- a/tests/test/P-t2.X
+++ /dev/null
diff --git a/tests/test/Test.pm b/tests/test/Test.pm
deleted file mode 100644
index 865fc48..0000000
--- a/tests/test/Test.pm
+++ /dev/null
@@ -1,150 +0,0 @@
-# Test "test".
-
-# Copyright (C) 1998, 2003, 2005, 2006 Free Software Foundation, Inc.
-
-# This program is free software; you can redistribute it and/or modify
-# it under the terms of the GNU General Public License as published by
-# the Free Software Foundation; either version 2 of the License, or
-# (at your option) any later version.
-
-# This program is distributed in the hope that it will be useful,
-# but WITHOUT ANY WARRANTY; without even the implied warranty of
-# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
-# GNU General Public License for more details.
-
-# You should have received a copy of the GNU General Public License
-# along with this program; if not, write to the Free Software
-# Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA
-# 02110-1301, USA.
-
-# -*-perl-*-
-package Test;
-require 5.002;
-use strict;
-
-sub test_vector
-{
- my @tvec =
- (
- # test-name options input expected-output expected-return-code
- #
- ['1a', '', {}, '', 1],
- ['1b', "-z ''", {}, '', 0],
- ['1c', 'any-string', {}, '', 0],
- ['1d', '-n any-string', {}, '', 0],
- ['1e', "''", {}, '', 1],
- ['1f', '-', {}, '', 0],
- ['1g', '--', {}, '', 0],
- ['1h', '-0', {}, '', 0],
- ['1i', '-f', {}, '', 0],
- ['1j', '--help', {}, '', 0],
- ['1k', '--version', {}, '', 0],
-
- ['streq-1', 't = t', {}, '', 0],
- ['streq-2', 't = f', {}, '', 1],
- ['streq-3', '! = !', {}, '', 0],
- ['streq-4', '= = =', {}, '', 0],
- ['streq-5', "'(' = '('", {}, '', 0],
- ['streq-6', "'(' = ')'", {}, '', 1],
- ['strne-1', 't != t', {}, '', 1],
- ['strne-2', 't != f', {}, '', 0],
- ['strne-3', '! != !', {}, '', 1],
- ['strne-4', '= != =', {}, '', 1],
- ['strne-5', "'(' != '('", {}, '', 1],
- ['strne-6', "'(' != ')'", {}, '', 0],
-
- ['and-1', 't -a t', {}, '', 0],
- ['and-2', "'' -a t", {}, '', 1],
- ['and-3', "t -a ''", {}, '', 1],
- ['and-4', "'' -a ''", {}, '', 1],
-
- ['or-1', 't -o t', {}, '', 0],
- ['or-2', "'' -o t", {}, '', 0],
- ['or-3', "t -o ''", {}, '', 0],
- ['or-4', "'' -o ''", {}, '', 1],
-
- ['eq-1', '9 -eq 9', {}, '', 0],
- ['eq-2', '0 -eq 0', {}, '', 0],
- ['eq-3', '0 -eq 00', {}, '', 0],
- ['eq-4', '8 -eq 9', {}, '', 1],
- ['eq-5', '1 -eq 0', {}, '', 1],
- ['eq-6', '340282366920938463463374607431768211456 -eq 0', {}, '', 1],
-
- ['gt-1', '5 -gt 5', {}, '', 1],
- ['gt-2', '5 -gt 4', {}, '', 0],
- ['gt-3', '4 -gt 5', {}, '', 1],
- ['gt-4', '-1 -gt -2', {}, '', 0],
- ['gt-5', '18446744073709551616 -gt -18446744073709551616', {}, '', 0],
-
- ['lt-1', '5 -lt 5', {}, '', 1],
- ['lt-2', '5 -lt 4', {}, '', 1],
- ['lt-3', '4 -lt 5', {}, '', 0],
- ['lt-4', '-1 -lt -2', {}, '', 1],
- ['lt-5', '-18446744073709551616 -lt 18446744073709551616', {}, '', 0],
-
- # This evokes `test: 0x0: integer expression expected'.
- ['inv-1', '0x0 -eq 00', {}, '', 2],
-
- ['t1', "-t", {}, '', 0],
- ['t2', "-t 1", {}, '', 1],
-
- ['paren-1', "'(' '' ')'", {}, '', 1],
- ['paren-2', "'(' '(' ')'", {}, '', 0],
- ['paren-3', "'(' ')' ')'", {}, '', 0],
- ['paren-4', "'(' ! ')'", {}, '', 0],
- ['paren-5', "'(' -a ')'", {}, '', 0],
- );
-
- my %inverse_op =
- (
- eq => 'ne',
- lt => 'ge',
- gt => 'le',
- );
-
- # Generate corresponding tests of inverse ops.
- # E.g. generate tests of `-ge' from those of `-lt'.
- my @tv;
- my $t;
- foreach $t (@tvec)
- {
- my ($test_name, $flags, $in, $exp, $ret) = @$t;
-
- my $op;
- for $op (qw(gt lt eq))
- {
- if ($test_name =~ /$op-/ && $flags =~ / -$op /)
- {
- my $inv = $inverse_op{$op};
- $test_name =~ s/$op/$inv/;
- $flags =~ s/-$op/-$inv/;
- $ret = 1 - $ret;
- push (@tv, [$test_name, $flags, $in, $exp, $ret]);
- }
- }
- }
-
- # Generate parenthesized and negated versions of each test.
- # There are a few exceptions.
- my %not_N = map {$_ => 1} qw (1a);
- my %not_P = map {$_ => 1} qw (1a
- streq-6 strne-6
- paren-1 paren-2 paren-3 paren-4 paren-5);
- foreach $t (@tvec)
- {
- my ($test_name, $flags, $in, $exp, $ret) = @$t;
- next if $ret == 2;
- push (@tv, ["N-$test_name", "! $flags", $in, $exp, 1 - $ret])
- unless $not_N{$test_name};
- push (@tv, ["P-$test_name", "'(' $flags ')'", $in, $exp, $ret])
- unless $not_P{$test_name};
- push (@tv, ["NP-$test_name", "! '(' $flags ')'", $in, $exp, 1 - $ret])
- unless $not_P{$test_name};
- push (@tv, ["NNP-$test_name", "! ! '(' $flags ')'", $in, $exp, $ret])
- unless $not_P{$test_name};
- }
-
- return (@tv, @tvec);
-}
-
-1;
diff --git a/tests/test/and-1.X b/tests/test/and-1.X
deleted file mode 100644
index e69de29..0000000
--- a/tests/test/and-1.X
+++ /dev/null
diff --git a/tests/test/and-2.X b/tests/test/and-2.X
deleted file mode 100644
index e69de29..0000000
--- a/tests/test/and-2.X
+++ /dev/null
diff --git a/tests/test/and-3.X b/tests/test/and-3.X
deleted file mode 100644
index e69de29..0000000
--- a/tests/test/and-3.X
+++ /dev/null
diff --git a/tests/test/and-4.X b/tests/test/and-4.X
deleted file mode 100644
index e69de29..0000000
--- a/tests/test/and-4.X
+++ /dev/null
diff --git a/tests/test/eq-1.X b/tests/test/eq-1.X
deleted file mode 100644
index e69de29..0000000
--- a/tests/test/eq-1.X
+++ /dev/null
diff --git a/tests/test/eq-2.X b/tests/test/eq-2.X
deleted file mode 100644
index e69de29..0000000
--- a/tests/test/eq-2.X
+++ /dev/null
diff --git a/tests/test/eq-3.X b/tests/test/eq-3.X
deleted file mode 100644
index e69de29..0000000
--- a/tests/test/eq-3.X
+++ /dev/null
diff --git a/tests/test/eq-4.X b/tests/test/eq-4.X
deleted file mode 100644
index e69de29..0000000
--- a/tests/test/eq-4.X
+++ /dev/null
diff --git a/tests/test/eq-5.X b/tests/test/eq-5.X
deleted file mode 100644
index e69de29..0000000
--- a/tests/test/eq-5.X
+++ /dev/null
diff --git a/tests/test/eq-6.X b/tests/test/eq-6.X
deleted file mode 100644
index e69de29..0000000
--- a/tests/test/eq-6.X
+++ /dev/null
diff --git a/tests/test/ge-1.X b/tests/test/ge-1.X
deleted file mode 100644
index e69de29..0000000
--- a/tests/test/ge-1.X
+++ /dev/null
diff --git a/tests/test/ge-2.X b/tests/test/ge-2.X
deleted file mode 100644
index e69de29..0000000
--- a/tests/test/ge-2.X
+++ /dev/null
diff --git a/tests/test/ge-3.X b/tests/test/ge-3.X
deleted file mode 100644
index e69de29..0000000
--- a/tests/test/ge-3.X
+++ /dev/null
diff --git a/tests/test/ge-4.X b/tests/test/ge-4.X
deleted file mode 100644
index e69de29..0000000
--- a/tests/test/ge-4.X
+++ /dev/null
diff --git a/tests/test/ge-5.X b/tests/test/ge-5.X
deleted file mode 100644
index e69de29..0000000
--- a/tests/test/ge-5.X
+++ /dev/null
diff --git a/tests/test/gt-1.X b/tests/test/gt-1.X
deleted file mode 100644
index e69de29..0000000
--- a/tests/test/gt-1.X
+++ /dev/null
diff --git a/tests/test/gt-2.X b/tests/test/gt-2.X
deleted file mode 100644
index e69de29..0000000
--- a/tests/test/gt-2.X
+++ /dev/null
diff --git a/tests/test/gt-3.X b/tests/test/gt-3.X
deleted file mode 100644
index e69de29..0000000
--- a/tests/test/gt-3.X
+++ /dev/null
diff --git a/tests/test/gt-4.X b/tests/test/gt-4.X
deleted file mode 100644
index e69de29..0000000
--- a/tests/test/gt-4.X
+++ /dev/null
diff --git a/tests/test/gt-5.X b/tests/test/gt-5.X
deleted file mode 100644
index e69de29..0000000
--- a/tests/test/gt-5.X
+++ /dev/null
diff --git a/tests/test/inv-1.X b/tests/test/inv-1.X
deleted file mode 100644
index e69de29..0000000
--- a/tests/test/inv-1.X
+++ /dev/null
diff --git a/tests/test/le-1.X b/tests/test/le-1.X
deleted file mode 100644
index e69de29..0000000
--- a/tests/test/le-1.X
+++ /dev/null
diff --git a/tests/test/le-2.X b/tests/test/le-2.X
deleted file mode 100644
index e69de29..0000000
--- a/tests/test/le-2.X
+++ /dev/null
diff --git a/tests/test/le-3.X b/tests/test/le-3.X
deleted file mode 100644
index e69de29..0000000
--- a/tests/test/le-3.X
+++ /dev/null
diff --git a/tests/test/le-4.X b/tests/test/le-4.X
deleted file mode 100644
index e69de29..0000000
--- a/tests/test/le-4.X
+++ /dev/null
diff --git a/tests/test/le-5.X b/tests/test/le-5.X
deleted file mode 100644
index e69de29..0000000
--- a/tests/test/le-5.X
+++ /dev/null
diff --git a/tests/test/lt-1.X b/tests/test/lt-1.X
deleted file mode 100644
index e69de29..0000000
--- a/tests/test/lt-1.X
+++ /dev/null
diff --git a/tests/test/lt-2.X b/tests/test/lt-2.X
deleted file mode 100644
index e69de29..0000000
--- a/tests/test/lt-2.X
+++ /dev/null
diff --git a/tests/test/lt-3.X b/tests/test/lt-3.X
deleted file mode 100644
index e69de29..0000000
--- a/tests/test/lt-3.X
+++ /dev/null
diff --git a/tests/test/lt-4.X b/tests/test/lt-4.X
deleted file mode 100644
index e69de29..0000000
--- a/tests/test/lt-4.X
+++ /dev/null
diff --git a/tests/test/lt-5.X b/tests/test/lt-5.X
deleted file mode 100644
index e69de29..0000000
--- a/tests/test/lt-5.X
+++ /dev/null
diff --git a/tests/test/ne-1.X b/tests/test/ne-1.X
deleted file mode 100644
index e69de29..0000000
--- a/tests/test/ne-1.X
+++ /dev/null
diff --git a/tests/test/ne-2.X b/tests/test/ne-2.X
deleted file mode 100644
index e69de29..0000000
--- a/tests/test/ne-2.X
+++ /dev/null
diff --git a/tests/test/ne-3.X b/tests/test/ne-3.X
deleted file mode 100644
index e69de29..0000000
--- a/tests/test/ne-3.X
+++ /dev/null
diff --git a/tests/test/ne-4.X b/tests/test/ne-4.X
deleted file mode 100644
index e69de29..0000000
--- a/tests/test/ne-4.X
+++ /dev/null
diff --git a/tests/test/ne-5.X b/tests/test/ne-5.X
deleted file mode 100644
index e69de29..0000000
--- a/tests/test/ne-5.X
+++ /dev/null
diff --git a/tests/test/ne-6.X b/tests/test/ne-6.X
deleted file mode 100644
index e69de29..0000000
--- a/tests/test/ne-6.X
+++ /dev/null
diff --git a/tests/test/or-1.X b/tests/test/or-1.X
deleted file mode 100644
index e69de29..0000000
--- a/tests/test/or-1.X
+++ /dev/null
diff --git a/tests/test/or-2.X b/tests/test/or-2.X
deleted file mode 100644
index e69de29..0000000
--- a/tests/test/or-2.X
+++ /dev/null
diff --git a/tests/test/or-3.X b/tests/test/or-3.X
deleted file mode 100644
index e69de29..0000000
--- a/tests/test/or-3.X
+++ /dev/null
diff --git a/tests/test/or-4.X b/tests/test/or-4.X
deleted file mode 100644
index e69de29..0000000
--- a/tests/test/or-4.X
+++ /dev/null
diff --git a/tests/test/paren-1.X b/tests/test/paren-1.X
deleted file mode 100644
index e69de29..0000000
--- a/tests/test/paren-1.X
+++ /dev/null
diff --git a/tests/test/paren-2.X b/tests/test/paren-2.X
deleted file mode 100644
index e69de29..0000000
--- a/tests/test/paren-2.X
+++ /dev/null
diff --git a/tests/test/paren-3.X b/tests/test/paren-3.X
deleted file mode 100644
index e69de29..0000000
--- a/tests/test/paren-3.X
+++ /dev/null
diff --git a/tests/test/paren-4.X b/tests/test/paren-4.X
deleted file mode 100644
index e69de29..0000000
--- a/tests/test/paren-4.X
+++ /dev/null
diff --git a/tests/test/paren-5.X b/tests/test/paren-5.X
deleted file mode 100644
index e69de29..0000000
--- a/tests/test/paren-5.X
+++ /dev/null
diff --git a/tests/test/streq-1.X b/tests/test/streq-1.X
deleted file mode 100644
index e69de29..0000000
--- a/tests/test/streq-1.X
+++ /dev/null
diff --git a/tests/test/streq-2.X b/tests/test/streq-2.X
deleted file mode 100644
index e69de29..0000000
--- a/tests/test/streq-2.X
+++ /dev/null
diff --git a/tests/test/streq-3.X b/tests/test/streq-3.X
deleted file mode 100644
index e69de29..0000000
--- a/tests/test/streq-3.X
+++ /dev/null
diff --git a/tests/test/streq-4.X b/tests/test/streq-4.X
deleted file mode 100644
index e69de29..0000000
--- a/tests/test/streq-4.X
+++ /dev/null
diff --git a/tests/test/streq-5.X b/tests/test/streq-5.X
deleted file mode 100644
index e69de29..0000000
--- a/tests/test/streq-5.X
+++ /dev/null
diff --git a/tests/test/streq-6.X b/tests/test/streq-6.X
deleted file mode 100644
index e69de29..0000000
--- a/tests/test/streq-6.X
+++ /dev/null
diff --git a/tests/test/strne-1.X b/tests/test/strne-1.X
deleted file mode 100644
index e69de29..0000000
--- a/tests/test/strne-1.X
+++ /dev/null
diff --git a/tests/test/strne-2.X b/tests/test/strne-2.X
deleted file mode 100644
index e69de29..0000000
--- a/tests/test/strne-2.X
+++ /dev/null
diff --git a/tests/test/strne-3.X b/tests/test/strne-3.X
deleted file mode 100644
index e69de29..0000000
--- a/tests/test/strne-3.X
+++ /dev/null
diff --git a/tests/test/strne-4.X b/tests/test/strne-4.X
deleted file mode 100644
index e69de29..0000000
--- a/tests/test/strne-4.X
+++ /dev/null
diff --git a/tests/test/strne-5.X b/tests/test/strne-5.X
deleted file mode 100644
index e69de29..0000000
--- a/tests/test/strne-5.X
+++ /dev/null
diff --git a/tests/test/strne-6.X b/tests/test/strne-6.X
deleted file mode 100644
index e69de29..0000000
--- a/tests/test/strne-6.X
+++ /dev/null
diff --git a/tests/test/t1.X b/tests/test/t1.X
deleted file mode 100644
index e69de29..0000000
--- a/tests/test/t1.X
+++ /dev/null
diff --git a/tests/test/t2.X b/tests/test/t2.X
deleted file mode 100644
index e69de29..0000000
--- a/tests/test/t2.X
+++ /dev/null
diff --git a/tests/test/test-tests b/tests/test/test-tests
deleted file mode 100755
index 6122b92..0000000
--- a/tests/test/test-tests
+++ /dev/null
@@ -1,4743 +0,0 @@
-#! /bin/sh
-# This script was generated automatically by mk-script.
-case $# in
- 0) xx='../../src/test';;
- *) xx="$1";;
-esac
-test "$VERBOSE" && echo=echo || echo=:
-$echo testing program: $xx
-errors=0
-test "$srcdir" || srcdir=.
-test "$VERBOSE" && $xx --version 2> /dev/null
-
-# Make sure we get English translations.
-LANGUAGE=C
-export LANGUAGE
-LC_ALL=C
-export LC_ALL
-LANG=C
-export LANG
-
-$xx 9 -ne 9 > ne-1.O 2> ne-1.E
-code=$?
-if test $code != 1; then
- $echo "Test ne-1 failed: $xx return code $code differs from expected value 1" 1>&2
- errors=`expr $errors + 1`
-else
- cmp ne-1.O $srcdir/ne-1.X > /dev/null 2>&1
- case $? in
- 0) if test "$VERBOSE"; then $echo "passed ne-1"; fi;;
- 1) $echo "Test ne-1 failed: files ne-1.O and $srcdir/ne-1.X differ" 1>&2
- (diff -c ne-1.O $srcdir/ne-1.X) 2> /dev/null
- errors=`expr $errors + 1`;;
- 2) $echo "Test ne-1 may have failed." 1>&2
- $echo The command "cmp ne-1.O $srcdir/ne-1.X" failed. 1>&2
- errors=`expr $errors + 1`;;
- esac
-fi
-test -s ne-1.E || rm -f ne-1.E
-$xx 0 -ne 0 > ne-2.O 2> ne-2.E
-code=$?
-if test $code != 1; then
- $echo "Test ne-2 failed: $xx return code $code differs from expected value 1" 1>&2
- errors=`expr $errors + 1`
-else
- cmp ne-2.O $srcdir/ne-2.X > /dev/null 2>&1
- case $? in
- 0) if test "$VERBOSE"; then $echo "passed ne-2"; fi;;
- 1) $echo "Test ne-2 failed: files ne-2.O and $srcdir/ne-2.X differ" 1>&2
- (diff -c ne-2.O $srcdir/ne-2.X) 2> /dev/null
- errors=`expr $errors + 1`;;
- 2) $echo "Test ne-2 may have failed." 1>&2
- $echo The command "cmp ne-2.O $srcdir/ne-2.X" failed. 1>&2
- errors=`expr $errors + 1`;;
- esac
-fi
-test -s ne-2.E || rm -f ne-2.E
-$xx 0 -ne 00 > ne-3.O 2> ne-3.E
-code=$?
-if test $code != 1; then
- $echo "Test ne-3 failed: $xx return code $code differs from expected value 1" 1>&2
- errors=`expr $errors + 1`
-else
- cmp ne-3.O $srcdir/ne-3.X > /dev/null 2>&1
- case $? in
- 0) if test "$VERBOSE"; then $echo "passed ne-3"; fi;;
- 1) $echo "Test ne-3 failed: files ne-3.O and $srcdir/ne-3.X differ" 1>&2
- (diff -c ne-3.O $srcdir/ne-3.X) 2> /dev/null
- errors=`expr $errors + 1`;;
- 2) $echo "Test ne-3 may have failed." 1>&2
- $echo The command "cmp ne-3.O $srcdir/ne-3.X" failed. 1>&2
- errors=`expr $errors + 1`;;
- esac
-fi
-test -s ne-3.E || rm -f ne-3.E
-$xx 8 -ne 9 > ne-4.O 2> ne-4.E
-code=$?
-if test $code != 0; then
- $echo "Test ne-4 failed: $xx return code $code differs from expected value 0" 1>&2
- errors=`expr $errors + 1`
-else
- cmp ne-4.O $srcdir/ne-4.X > /dev/null 2>&1
- case $? in
- 0) if test "$VERBOSE"; then $echo "passed ne-4"; fi;;
- 1) $echo "Test ne-4 failed: files ne-4.O and $srcdir/ne-4.X differ" 1>&2
- (diff -c ne-4.O $srcdir/ne-4.X) 2> /dev/null
- errors=`expr $errors + 1`;;
- 2) $echo "Test ne-4 may have failed." 1>&2
- $echo The command "cmp ne-4.O $srcdir/ne-4.X" failed. 1>&2
- errors=`expr $errors + 1`;;
- esac
-fi
-test -s ne-4.E || rm -f ne-4.E
-$xx 1 -ne 0 > ne-5.O 2> ne-5.E
-code=$?
-if test $code != 0; then
- $echo "Test ne-5 failed: $xx return code $code differs from expected value 0" 1>&2
- errors=`expr $errors + 1`
-else
- cmp ne-5.O $srcdir/ne-5.X > /dev/null 2>&1
- case $? in
- 0) if test "$VERBOSE"; then $echo "passed ne-5"; fi;;
- 1) $echo "Test ne-5 failed: files ne-5.O and $srcdir/ne-5.X differ" 1>&2
- (diff -c ne-5.O $srcdir/ne-5.X) 2> /dev/null
- errors=`expr $errors + 1`;;
- 2) $echo "Test ne-5 may have failed." 1>&2
- $echo The command "cmp ne-5.O $srcdir/ne-5.X" failed. 1>&2
- errors=`expr $errors + 1`;;
- esac
-fi
-test -s ne-5.E || rm -f ne-5.E
-$xx 340282366920938463463374607431768211456 -ne 0 > ne-6.O 2> ne-6.E
-code=$?
-if test $code != 0; then
- $echo "Test ne-6 failed: $xx return code $code differs from expected value 0" 1>&2
- errors=`expr $errors + 1`
-else
- cmp ne-6.O $srcdir/ne-6.X > /dev/null 2>&1
- case $? in
- 0) if test "$VERBOSE"; then $echo "passed ne-6"; fi;;
- 1) $echo "Test ne-6 failed: files ne-6.O and $srcdir/ne-6.X differ" 1>&2
- (diff -c ne-6.O $srcdir/ne-6.X) 2> /dev/null
- errors=`expr $errors + 1`;;
- 2) $echo "Test ne-6 may have failed." 1>&2
- $echo The command "cmp ne-6.O $srcdir/ne-6.X" failed. 1>&2
- errors=`expr $errors + 1`;;
- esac
-fi
-test -s ne-6.E || rm -f ne-6.E
-$xx 5 -le 5 > le-1.O 2> le-1.E
-code=$?
-if test $code != 0; then
- $echo "Test le-1 failed: $xx return code $code differs from expected value 0" 1>&2
- errors=`expr $errors + 1`
-else
- cmp le-1.O $srcdir/le-1.X > /dev/null 2>&1
- case $? in
- 0) if test "$VERBOSE"; then $echo "passed le-1"; fi;;
- 1) $echo "Test le-1 failed: files le-1.O and $srcdir/le-1.X differ" 1>&2
- (diff -c le-1.O $srcdir/le-1.X) 2> /dev/null
- errors=`expr $errors + 1`;;
- 2) $echo "Test le-1 may have failed." 1>&2
- $echo The command "cmp le-1.O $srcdir/le-1.X" failed. 1>&2
- errors=`expr $errors + 1`;;
- esac
-fi
-test -s le-1.E || rm -f le-1.E
-$xx 5 -le 4 > le-2.O 2> le-2.E
-code=$?
-if test $code != 1; then
- $echo "Test le-2 failed: $xx return code $code differs from expected value 1" 1>&2
- errors=`expr $errors + 1`
-else
- cmp le-2.O $srcdir/le-2.X > /dev/null 2>&1
- case $? in
- 0) if test "$VERBOSE"; then $echo "passed le-2"; fi;;
- 1) $echo "Test le-2 failed: files le-2.O and $srcdir/le-2.X differ" 1>&2
- (diff -c le-2.O $srcdir/le-2.X) 2> /dev/null
- errors=`expr $errors + 1`;;
- 2) $echo "Test le-2 may have failed." 1>&2
- $echo The command "cmp le-2.O $srcdir/le-2.X" failed. 1>&2
- errors=`expr $errors + 1`;;
- esac
-fi
-test -s le-2.E || rm -f le-2.E
-$xx 4 -le 5 > le-3.O 2> le-3.E
-code=$?
-if test $code != 0; then
- $echo "Test le-3 failed: $xx return code $code differs from expected value 0" 1>&2
- errors=`expr $errors + 1`
-else
- cmp le-3.O $srcdir/le-3.X > /dev/null 2>&1
- case $? in
- 0) if test "$VERBOSE"; then $echo "passed le-3"; fi;;
- 1) $echo "Test le-3 failed: files le-3.O and $srcdir/le-3.X differ" 1>&2
- (diff -c le-3.O $srcdir/le-3.X) 2> /dev/null
- errors=`expr $errors + 1`;;
- 2) $echo "Test le-3 may have failed." 1>&2
- $echo The command "cmp le-3.O $srcdir/le-3.X" failed. 1>&2
- errors=`expr $errors + 1`;;
- esac
-fi
-test -s le-3.E || rm -f le-3.E
-$xx -1 -le -2 > le-4.O 2> le-4.E
-code=$?
-if test $code != 1; then
- $echo "Test le-4 failed: $xx return code $code differs from expected value 1" 1>&2
- errors=`expr $errors + 1`
-else
- cmp le-4.O $srcdir/le-4.X > /dev/null 2>&1
- case $? in
- 0) if test "$VERBOSE"; then $echo "passed le-4"; fi;;
- 1) $echo "Test le-4 failed: files le-4.O and $srcdir/le-4.X differ" 1>&2
- (diff -c le-4.O $srcdir/le-4.X) 2> /dev/null
- errors=`expr $errors + 1`;;
- 2) $echo "Test le-4 may have failed." 1>&2
- $echo The command "cmp le-4.O $srcdir/le-4.X" failed. 1>&2
- errors=`expr $errors + 1`;;
- esac
-fi
-test -s le-4.E || rm -f le-4.E
-$xx 18446744073709551616 -le -18446744073709551616 > le-5.O 2> le-5.E
-code=$?
-if test $code != 1; then
- $echo "Test le-5 failed: $xx return code $code differs from expected value 1" 1>&2
- errors=`expr $errors + 1`
-else
- cmp le-5.O $srcdir/le-5.X > /dev/null 2>&1
- case $? in
- 0) if test "$VERBOSE"; then $echo "passed le-5"; fi;;
- 1) $echo "Test le-5 failed: files le-5.O and $srcdir/le-5.X differ" 1>&2
- (diff -c le-5.O $srcdir/le-5.X) 2> /dev/null
- errors=`expr $errors + 1`;;
- 2) $echo "Test le-5 may have failed." 1>&2
- $echo The command "cmp le-5.O $srcdir/le-5.X" failed. 1>&2
- errors=`expr $errors + 1`;;
- esac
-fi
-test -s le-5.E || rm -f le-5.E
-$xx 5 -ge 5 > ge-1.O 2> ge-1.E
-code=$?
-if test $code != 0; then
- $echo "Test ge-1 failed: $xx return code $code differs from expected value 0" 1>&2
- errors=`expr $errors + 1`
-else
- cmp ge-1.O $srcdir/ge-1.X > /dev/null 2>&1
- case $? in
- 0) if test "$VERBOSE"; then $echo "passed ge-1"; fi;;
- 1) $echo "Test ge-1 failed: files ge-1.O and $srcdir/ge-1.X differ" 1>&2
- (diff -c ge-1.O $srcdir/ge-1.X) 2> /dev/null
- errors=`expr $errors + 1`;;
- 2) $echo "Test ge-1 may have failed." 1>&2
- $echo The command "cmp ge-1.O $srcdir/ge-1.X" failed. 1>&2
- errors=`expr $errors + 1`;;
- esac
-fi
-test -s ge-1.E || rm -f ge-1.E
-$xx 5 -ge 4 > ge-2.O 2> ge-2.E
-code=$?
-if test $code != 0; then
- $echo "Test ge-2 failed: $xx return code $code differs from expected value 0" 1>&2
- errors=`expr $errors + 1`
-else
- cmp ge-2.O $srcdir/ge-2.X > /dev/null 2>&1
- case $? in
- 0) if test "$VERBOSE"; then $echo "passed ge-2"; fi;;
- 1) $echo "Test ge-2 failed: files ge-2.O and $srcdir/ge-2.X differ" 1>&2
- (diff -c ge-2.O $srcdir/ge-2.X) 2> /dev/null
- errors=`expr $errors + 1`;;
- 2) $echo "Test ge-2 may have failed." 1>&2
- $echo The command "cmp ge-2.O $srcdir/ge-2.X" failed. 1>&2
- errors=`expr $errors + 1`;;
- esac
-fi
-test -s ge-2.E || rm -f ge-2.E
-$xx 4 -ge 5 > ge-3.O 2> ge-3.E
-code=$?
-if test $code != 1; then
- $echo "Test ge-3 failed: $xx return code $code differs from expected value 1" 1>&2
- errors=`expr $errors + 1`
-else
- cmp ge-3.O $srcdir/ge-3.X > /dev/null 2>&1
- case $? in
- 0) if test "$VERBOSE"; then $echo "passed ge-3"; fi;;
- 1) $echo "Test ge-3 failed: files ge-3.O and $srcdir/ge-3.X differ" 1>&2
- (diff -c ge-3.O $srcdir/ge-3.X) 2> /dev/null
- errors=`expr $errors + 1`;;
- 2) $echo "Test ge-3 may have failed." 1>&2
- $echo The command "cmp ge-3.O $srcdir/ge-3.X" failed. 1>&2
- errors=`expr $errors + 1`;;
- esac
-fi
-test -s ge-3.E || rm -f ge-3.E
-$xx -1 -ge -2 > ge-4.O 2> ge-4.E
-code=$?
-if test $code != 0; then
- $echo "Test ge-4 failed: $xx return code $code differs from expected value 0" 1>&2
- errors=`expr $errors + 1`
-else
- cmp ge-4.O $srcdir/ge-4.X > /dev/null 2>&1
- case $? in
- 0) if test "$VERBOSE"; then $echo "passed ge-4"; fi;;
- 1) $echo "Test ge-4 failed: files ge-4.O and $srcdir/ge-4.X differ" 1>&2
- (diff -c ge-4.O $srcdir/ge-4.X) 2> /dev/null
- errors=`expr $errors + 1`;;
- 2) $echo "Test ge-4 may have failed." 1>&2
- $echo The command "cmp ge-4.O $srcdir/ge-4.X" failed. 1>&2
- errors=`expr $errors + 1`;;
- esac
-fi
-test -s ge-4.E || rm -f ge-4.E
-$xx -18446744073709551616 -ge 18446744073709551616 > ge-5.O 2> ge-5.E
-code=$?
-if test $code != 1; then
- $echo "Test ge-5 failed: $xx return code $code differs from expected value 1" 1>&2
- errors=`expr $errors + 1`
-else
- cmp ge-5.O $srcdir/ge-5.X > /dev/null 2>&1
- case $? in
- 0) if test "$VERBOSE"; then $echo "passed ge-5"; fi;;
- 1) $echo "Test ge-5 failed: files ge-5.O and $srcdir/ge-5.X differ" 1>&2
- (diff -c ge-5.O $srcdir/ge-5.X) 2> /dev/null
- errors=`expr $errors + 1`;;
- 2) $echo "Test ge-5 may have failed." 1>&2
- $echo The command "cmp ge-5.O $srcdir/ge-5.X" failed. 1>&2
- errors=`expr $errors + 1`;;
- esac
-fi
-test -s ge-5.E || rm -f ge-5.E
-$xx ! -z '' > N-1b.O 2> N-1b.E
-code=$?
-if test $code != 1; then
- $echo "Test N-1b failed: $xx return code $code differs from expected value 1" 1>&2
- errors=`expr $errors + 1`
-else
- cmp N-1b.O $srcdir/N-1b.X > /dev/null 2>&1
- case $? in
- 0) if test "$VERBOSE"; then $echo "passed N-1b"; fi;;
- 1) $echo "Test N-1b failed: files N-1b.O and $srcdir/N-1b.X differ" 1>&2
- (diff -c N-1b.O $srcdir/N-1b.X) 2> /dev/null
- errors=`expr $errors + 1`;;
- 2) $echo "Test N-1b may have failed." 1>&2
- $echo The command "cmp N-1b.O $srcdir/N-1b.X" failed. 1>&2
- errors=`expr $errors + 1`;;
- esac
-fi
-test -s N-1b.E || rm -f N-1b.E
-$xx '(' -z '' ')' > P-1b.O 2> P-1b.E
-code=$?
-if test $code != 0; then
- $echo "Test P-1b failed: $xx return code $code differs from expected value 0" 1>&2
- errors=`expr $errors + 1`
-else
- cmp P-1b.O $srcdir/P-1b.X > /dev/null 2>&1
- case $? in
- 0) if test "$VERBOSE"; then $echo "passed P-1b"; fi;;
- 1) $echo "Test P-1b failed: files P-1b.O and $srcdir/P-1b.X differ" 1>&2
- (diff -c P-1b.O $srcdir/P-1b.X) 2> /dev/null
- errors=`expr $errors + 1`;;
- 2) $echo "Test P-1b may have failed." 1>&2
- $echo The command "cmp P-1b.O $srcdir/P-1b.X" failed. 1>&2
- errors=`expr $errors + 1`;;
- esac
-fi
-test -s P-1b.E || rm -f P-1b.E
-$xx ! '(' -z '' ')' > NP-1b.O 2> NP-1b.E
-code=$?
-if test $code != 1; then
- $echo "Test NP-1b failed: $xx return code $code differs from expected value 1" 1>&2
- errors=`expr $errors + 1`
-else
- cmp NP-1b.O $srcdir/NP-1b.X > /dev/null 2>&1
- case $? in
- 0) if test "$VERBOSE"; then $echo "passed NP-1b"; fi;;
- 1) $echo "Test NP-1b failed: files NP-1b.O and $srcdir/NP-1b.X differ" 1>&2
- (diff -c NP-1b.O $srcdir/NP-1b.X) 2> /dev/null
- errors=`expr $errors + 1`;;
- 2) $echo "Test NP-1b may have failed." 1>&2
- $echo The command "cmp NP-1b.O $srcdir/NP-1b.X" failed. 1>&2
- errors=`expr $errors + 1`;;
- esac
-fi
-test -s NP-1b.E || rm -f NP-1b.E
-$xx ! ! '(' -z '' ')' > NNP-1b.O 2> NNP-1b.E
-code=$?
-if test $code != 0; then
- $echo "Test NNP-1b failed: $xx return code $code differs from expected value 0" 1>&2
- errors=`expr $errors + 1`
-else
- cmp NNP-1b.O $srcdir/NNP-1b.X > /dev/null 2>&1
- case $? in
- 0) if test "$VERBOSE"; then $echo "passed NNP-1b"; fi;;
- 1) $echo "Test NNP-1b failed: files NNP-1b.O and $srcdir/NNP-1b.X differ" 1>&2
- (diff -c NNP-1b.O $srcdir/NNP-1b.X) 2> /dev/null
- errors=`expr $errors + 1`;;
- 2) $echo "Test NNP-1b may have failed." 1>&2
- $echo The command "cmp NNP-1b.O $srcdir/NNP-1b.X" failed. 1>&2
- errors=`expr $errors + 1`;;
- esac
-fi
-test -s NNP-1b.E || rm -f NNP-1b.E
-$xx ! any-string > N-1c.O 2> N-1c.E
-code=$?
-if test $code != 1; then
- $echo "Test N-1c failed: $xx return code $code differs from expected value 1" 1>&2
- errors=`expr $errors + 1`
-else
- cmp N-1c.O $srcdir/N-1c.X > /dev/null 2>&1
- case $? in
- 0) if test "$VERBOSE"; then $echo "passed N-1c"; fi;;
- 1) $echo "Test N-1c failed: files N-1c.O and $srcdir/N-1c.X differ" 1>&2
- (diff -c N-1c.O $srcdir/N-1c.X) 2> /dev/null
- errors=`expr $errors + 1`;;
- 2) $echo "Test N-1c may have failed." 1>&2
- $echo The command "cmp N-1c.O $srcdir/N-1c.X" failed. 1>&2
- errors=`expr $errors + 1`;;
- esac
-fi
-test -s N-1c.E || rm -f N-1c.E
-$xx '(' any-string ')' > P-1c.O 2> P-1c.E
-code=$?
-if test $code != 0; then
- $echo "Test P-1c failed: $xx return code $code differs from expected value 0" 1>&2
- errors=`expr $errors + 1`
-else
- cmp P-1c.O $srcdir/P-1c.X > /dev/null 2>&1
- case $? in
- 0) if test "$VERBOSE"; then $echo "passed P-1c"; fi;;
- 1) $echo "Test P-1c failed: files P-1c.O and $srcdir/P-1c.X differ" 1>&2
- (diff -c P-1c.O $srcdir/P-1c.X) 2> /dev/null
- errors=`expr $errors + 1`;;
- 2) $echo "Test P-1c may have failed." 1>&2
- $echo The command "cmp P-1c.O $srcdir/P-1c.X" failed. 1>&2
- errors=`expr $errors + 1`;;
- esac
-fi
-test -s P-1c.E || rm -f P-1c.E
-$xx ! '(' any-string ')' > NP-1c.O 2> NP-1c.E
-code=$?
-if test $code != 1; then
- $echo "Test NP-1c failed: $xx return code $code differs from expected value 1" 1>&2
- errors=`expr $errors + 1`
-else
- cmp NP-1c.O $srcdir/NP-1c.X > /dev/null 2>&1
- case $? in
- 0) if test "$VERBOSE"; then $echo "passed NP-1c"; fi;;
- 1) $echo "Test NP-1c failed: files NP-1c.O and $srcdir/NP-1c.X differ" 1>&2
- (diff -c NP-1c.O $srcdir/NP-1c.X) 2> /dev/null
- errors=`expr $errors + 1`;;
- 2) $echo "Test NP-1c may have failed." 1>&2
- $echo The command "cmp NP-1c.O $srcdir/NP-1c.X" failed. 1>&2
- errors=`expr $errors + 1`;;
- esac
-fi
-test -s NP-1c.E || rm -f NP-1c.E
-$xx ! ! '(' any-string ')' > NNP-1c.O 2> NNP-1c.E
-code=$?
-if test $code != 0; then
- $echo "Test NNP-1c failed: $xx return code $code differs from expected value 0" 1>&2
- errors=`expr $errors + 1`
-else
- cmp NNP-1c.O $srcdir/NNP-1c.X > /dev/null 2>&1
- case $? in
- 0) if test "$VERBOSE"; then $echo "passed NNP-1c"; fi;;
- 1) $echo "Test NNP-1c failed: files NNP-1c.O and $srcdir/NNP-1c.X differ" 1>&2
- (diff -c NNP-1c.O $srcdir/NNP-1c.X) 2> /dev/null
- errors=`expr $errors + 1`;;
- 2) $echo "Test NNP-1c may have failed." 1>&2
- $echo The command "cmp NNP-1c.O $srcdir/NNP-1c.X" failed. 1>&2
- errors=`expr $errors + 1`;;
- esac
-fi
-test -s NNP-1c.E || rm -f NNP-1c.E
-$xx ! -n any-string > N-1d.O 2> N-1d.E
-code=$?
-if test $code != 1; then
- $echo "Test N-1d failed: $xx return code $code differs from expected value 1" 1>&2
- errors=`expr $errors + 1`
-else
- cmp N-1d.O $srcdir/N-1d.X > /dev/null 2>&1
- case $? in
- 0) if test "$VERBOSE"; then $echo "passed N-1d"; fi;;
- 1) $echo "Test N-1d failed: files N-1d.O and $srcdir/N-1d.X differ" 1>&2
- (diff -c N-1d.O $srcdir/N-1d.X) 2> /dev/null
- errors=`expr $errors + 1`;;
- 2) $echo "Test N-1d may have failed." 1>&2
- $echo The command "cmp N-1d.O $srcdir/N-1d.X" failed. 1>&2
- errors=`expr $errors + 1`;;
- esac
-fi
-test -s N-1d.E || rm -f N-1d.E
-$xx '(' -n any-string ')' > P-1d.O 2> P-1d.E
-code=$?
-if test $code != 0; then
- $echo "Test P-1d failed: $xx return code $code differs from expected value 0" 1>&2
- errors=`expr $errors + 1`
-else
- cmp P-1d.O $srcdir/P-1d.X > /dev/null 2>&1
- case $? in
- 0) if test "$VERBOSE"; then $echo "passed P-1d"; fi;;
- 1) $echo "Test P-1d failed: files P-1d.O and $srcdir/P-1d.X differ" 1>&2
- (diff -c P-1d.O $srcdir/P-1d.X) 2> /dev/null
- errors=`expr $errors + 1`;;
- 2) $echo "Test P-1d may have failed." 1>&2
- $echo The command "cmp P-1d.O $srcdir/P-1d.X" failed. 1>&2
- errors=`expr $errors + 1`;;
- esac
-fi
-test -s P-1d.E || rm -f P-1d.E
-$xx ! '(' -n any-string ')' > NP-1d.O 2> NP-1d.E
-code=$?
-if test $code != 1; then
- $echo "Test NP-1d failed: $xx return code $code differs from expected value 1" 1>&2
- errors=`expr $errors + 1`
-else
- cmp NP-1d.O $srcdir/NP-1d.X > /dev/null 2>&1
- case $? in
- 0) if test "$VERBOSE"; then $echo "passed NP-1d"; fi;;
- 1) $echo "Test NP-1d failed: files NP-1d.O and $srcdir/NP-1d.X differ" 1>&2
- (diff -c NP-1d.O $srcdir/NP-1d.X) 2> /dev/null
- errors=`expr $errors + 1`;;
- 2) $echo "Test NP-1d may have failed." 1>&2
- $echo The command "cmp NP-1d.O $srcdir/NP-1d.X" failed. 1>&2
- errors=`expr $errors + 1`;;
- esac
-fi
-test -s NP-1d.E || rm -f NP-1d.E
-$xx ! ! '(' -n any-string ')' > NNP-1d.O 2> NNP-1d.E
-code=$?
-if test $code != 0; then
- $echo "Test NNP-1d failed: $xx return code $code differs from expected value 0" 1>&2
- errors=`expr $errors + 1`
-else
- cmp NNP-1d.O $srcdir/NNP-1d.X > /dev/null 2>&1
- case $? in
- 0) if test "$VERBOSE"; then $echo "passed NNP-1d"; fi;;
- 1) $echo "Test NNP-1d failed: files NNP-1d.O and $srcdir/NNP-1d.X differ" 1>&2
- (diff -c NNP-1d.O $srcdir/NNP-1d.X) 2> /dev/null
- errors=`expr $errors + 1`;;
- 2) $echo "Test NNP-1d may have failed." 1>&2
- $echo The command "cmp NNP-1d.O $srcdir/NNP-1d.X" failed. 1>&2
- errors=`expr $errors + 1`;;
- esac
-fi
-test -s NNP-1d.E || rm -f NNP-1d.E
-$xx ! '' > N-1e.O 2> N-1e.E
-code=$?
-if test $code != 0; then
- $echo "Test N-1e failed: $xx return code $code differs from expected value 0" 1>&2
- errors=`expr $errors + 1`
-else
- cmp N-1e.O $srcdir/N-1e.X > /dev/null 2>&1
- case $? in
- 0) if test "$VERBOSE"; then $echo "passed N-1e"; fi;;
- 1) $echo "Test N-1e failed: files N-1e.O and $srcdir/N-1e.X differ" 1>&2
- (diff -c N-1e.O $srcdir/N-1e.X) 2> /dev/null
- errors=`expr $errors + 1`;;
- 2) $echo "Test N-1e may have failed." 1>&2
- $echo The command "cmp N-1e.O $srcdir/N-1e.X" failed. 1>&2
- errors=`expr $errors + 1`;;
- esac
-fi
-test -s N-1e.E || rm -f N-1e.E
-$xx '(' '' ')' > P-1e.O 2> P-1e.E
-code=$?
-if test $code != 1; then
- $echo "Test P-1e failed: $xx return code $code differs from expected value 1" 1>&2
- errors=`expr $errors + 1`
-else
- cmp P-1e.O $srcdir/P-1e.X > /dev/null 2>&1
- case $? in
- 0) if test "$VERBOSE"; then $echo "passed P-1e"; fi;;
- 1) $echo "Test P-1e failed: files P-1e.O and $srcdir/P-1e.X differ" 1>&2
- (diff -c P-1e.O $srcdir/P-1e.X) 2> /dev/null
- errors=`expr $errors + 1`;;
- 2) $echo "Test P-1e may have failed." 1>&2
- $echo The command "cmp P-1e.O $srcdir/P-1e.X" failed. 1>&2
- errors=`expr $errors + 1`;;
- esac
-fi
-test -s P-1e.E || rm -f P-1e.E
-$xx ! '(' '' ')' > NP-1e.O 2> NP-1e.E
-code=$?
-if test $code != 0; then
- $echo "Test NP-1e failed: $xx return code $code differs from expected value 0" 1>&2
- errors=`expr $errors + 1`
-else
- cmp NP-1e.O $srcdir/NP-1e.X > /dev/null 2>&1
- case $? in
- 0) if test "$VERBOSE"; then $echo "passed NP-1e"; fi;;
- 1) $echo "Test NP-1e failed: files NP-1e.O and $srcdir/NP-1e.X differ" 1>&2
- (diff -c NP-1e.O $srcdir/NP-1e.X) 2> /dev/null
- errors=`expr $errors + 1`;;
- 2) $echo "Test NP-1e may have failed." 1>&2
- $echo The command "cmp NP-1e.O $srcdir/NP-1e.X" failed. 1>&2
- errors=`expr $errors + 1`;;
- esac
-fi
-test -s NP-1e.E || rm -f NP-1e.E
-$xx ! ! '(' '' ')' > NNP-1e.O 2> NNP-1e.E
-code=$?
-if test $code != 1; then
- $echo "Test NNP-1e failed: $xx return code $code differs from expected value 1" 1>&2
- errors=`expr $errors + 1`
-else
- cmp NNP-1e.O $srcdir/NNP-1e.X > /dev/null 2>&1
- case $? in
- 0) if test "$VERBOSE"; then $echo "passed NNP-1e"; fi;;
- 1) $echo "Test NNP-1e failed: files NNP-1e.O and $srcdir/NNP-1e.X differ" 1>&2
- (diff -c NNP-1e.O $srcdir/NNP-1e.X) 2> /dev/null
- errors=`expr $errors + 1`;;
- 2) $echo "Test NNP-1e may have failed." 1>&2
- $echo The command "cmp NNP-1e.O $srcdir/NNP-1e.X" failed. 1>&2
- errors=`expr $errors + 1`;;
- esac
-fi
-test -s NNP-1e.E || rm -f NNP-1e.E
-$xx ! - > N-1f.O 2> N-1f.E
-code=$?
-if test $code != 1; then
- $echo "Test N-1f failed: $xx return code $code differs from expected value 1" 1>&2
- errors=`expr $errors + 1`
-else
- cmp N-1f.O $srcdir/N-1f.X > /dev/null 2>&1
- case $? in
- 0) if test "$VERBOSE"; then $echo "passed N-1f"; fi;;
- 1) $echo "Test N-1f failed: files N-1f.O and $srcdir/N-1f.X differ" 1>&2
- (diff -c N-1f.O $srcdir/N-1f.X) 2> /dev/null
- errors=`expr $errors + 1`;;
- 2) $echo "Test N-1f may have failed." 1>&2
- $echo The command "cmp N-1f.O $srcdir/N-1f.X" failed. 1>&2
- errors=`expr $errors + 1`;;
- esac
-fi
-test -s N-1f.E || rm -f N-1f.E
-$xx '(' - ')' > P-1f.O 2> P-1f.E
-code=$?
-if test $code != 0; then
- $echo "Test P-1f failed: $xx return code $code differs from expected value 0" 1>&2
- errors=`expr $errors + 1`
-else
- cmp P-1f.O $srcdir/P-1f.X > /dev/null 2>&1
- case $? in
- 0) if test "$VERBOSE"; then $echo "passed P-1f"; fi;;
- 1) $echo "Test P-1f failed: files P-1f.O and $srcdir/P-1f.X differ" 1>&2
- (diff -c P-1f.O $srcdir/P-1f.X) 2> /dev/null
- errors=`expr $errors + 1`;;
- 2) $echo "Test P-1f may have failed." 1>&2
- $echo The command "cmp P-1f.O $srcdir/P-1f.X" failed. 1>&2
- errors=`expr $errors + 1`;;
- esac
-fi
-test -s P-1f.E || rm -f P-1f.E
-$xx ! '(' - ')' > NP-1f.O 2> NP-1f.E
-code=$?
-if test $code != 1; then
- $echo "Test NP-1f failed: $xx return code $code differs from expected value 1" 1>&2
- errors=`expr $errors + 1`
-else
- cmp NP-1f.O $srcdir/NP-1f.X > /dev/null 2>&1
- case $? in
- 0) if test "$VERBOSE"; then $echo "passed NP-1f"; fi;;
- 1) $echo "Test NP-1f failed: files NP-1f.O and $srcdir/NP-1f.X differ" 1>&2
- (diff -c NP-1f.O $srcdir/NP-1f.X) 2> /dev/null
- errors=`expr $errors + 1`;;
- 2) $echo "Test NP-1f may have failed." 1>&2
- $echo The command "cmp NP-1f.O $srcdir/NP-1f.X" failed. 1>&2
- errors=`expr $errors + 1`;;
- esac
-fi
-test -s NP-1f.E || rm -f NP-1f.E
-$xx ! ! '(' - ')' > NNP-1f.O 2> NNP-1f.E
-code=$?
-if test $code != 0; then
- $echo "Test NNP-1f failed: $xx return code $code differs from expected value 0" 1>&2
- errors=`expr $errors + 1`
-else
- cmp NNP-1f.O $srcdir/NNP-1f.X > /dev/null 2>&1
- case $? in
- 0) if test "$VERBOSE"; then $echo "passed NNP-1f"; fi;;
- 1) $echo "Test NNP-1f failed: files NNP-1f.O and $srcdir/NNP-1f.X differ" 1>&2
- (diff -c NNP-1f.O $srcdir/NNP-1f.X) 2> /dev/null
- errors=`expr $errors + 1`;;
- 2) $echo "Test NNP-1f may have failed." 1>&2
- $echo The command "cmp NNP-1f.O $srcdir/NNP-1f.X" failed. 1>&2
- errors=`expr $errors + 1`;;
- esac
-fi
-test -s NNP-1f.E || rm -f NNP-1f.E
-$xx ! -- > N-1g.O 2> N-1g.E
-code=$?
-if test $code != 1; then
- $echo "Test N-1g failed: $xx return code $code differs from expected value 1" 1>&2
- errors=`expr $errors + 1`
-else
- cmp N-1g.O $srcdir/N-1g.X > /dev/null 2>&1
- case $? in
- 0) if test "$VERBOSE"; then $echo "passed N-1g"; fi;;
- 1) $echo "Test N-1g failed: files N-1g.O and $srcdir/N-1g.X differ" 1>&2
- (diff -c N-1g.O $srcdir/N-1g.X) 2> /dev/null
- errors=`expr $errors + 1`;;
- 2) $echo "Test N-1g may have failed." 1>&2
- $echo The command "cmp N-1g.O $srcdir/N-1g.X" failed. 1>&2
- errors=`expr $errors + 1`;;
- esac
-fi
-test -s N-1g.E || rm -f N-1g.E
-$xx '(' -- ')' > P-1g.O 2> P-1g.E
-code=$?
-if test $code != 0; then
- $echo "Test P-1g failed: $xx return code $code differs from expected value 0" 1>&2
- errors=`expr $errors + 1`
-else
- cmp P-1g.O $srcdir/P-1g.X > /dev/null 2>&1
- case $? in
- 0) if test "$VERBOSE"; then $echo "passed P-1g"; fi;;
- 1) $echo "Test P-1g failed: files P-1g.O and $srcdir/P-1g.X differ" 1>&2
- (diff -c P-1g.O $srcdir/P-1g.X) 2> /dev/null
- errors=`expr $errors + 1`;;
- 2) $echo "Test P-1g may have failed." 1>&2
- $echo The command "cmp P-1g.O $srcdir/P-1g.X" failed. 1>&2
- errors=`expr $errors + 1`;;
- esac
-fi
-test -s P-1g.E || rm -f P-1g.E
-$xx ! '(' -- ')' > NP-1g.O 2> NP-1g.E
-code=$?
-if test $code != 1; then
- $echo "Test NP-1g failed: $xx return code $code differs from expected value 1" 1>&2
- errors=`expr $errors + 1`
-else
- cmp NP-1g.O $srcdir/NP-1g.X > /dev/null 2>&1
- case $? in
- 0) if test "$VERBOSE"; then $echo "passed NP-1g"; fi;;
- 1) $echo "Test NP-1g failed: files NP-1g.O and $srcdir/NP-1g.X differ" 1>&2
- (diff -c NP-1g.O $srcdir/NP-1g.X) 2> /dev/null
- errors=`expr $errors + 1`;;
- 2) $echo "Test NP-1g may have failed." 1>&2
- $echo The command "cmp NP-1g.O $srcdir/NP-1g.X" failed. 1>&2
- errors=`expr $errors + 1`;;
- esac
-fi
-test -s NP-1g.E || rm -f NP-1g.E
-$xx ! ! '(' -- ')' > NNP-1g.O 2> NNP-1g.E
-code=$?
-if test $code != 0; then
- $echo "Test NNP-1g failed: $xx return code $code differs from expected value 0" 1>&2
- errors=`expr $errors + 1`
-else
- cmp NNP-1g.O $srcdir/NNP-1g.X > /dev/null 2>&1
- case $? in
- 0) if test "$VERBOSE"; then $echo "passed NNP-1g"; fi;;
- 1) $echo "Test NNP-1g failed: files NNP-1g.O and $srcdir/NNP-1g.X differ" 1>&2
- (diff -c NNP-1g.O $srcdir/NNP-1g.X) 2> /dev/null
- errors=`expr $errors + 1`;;
- 2) $echo "Test NNP-1g may have failed." 1>&2
- $echo The command "cmp NNP-1g.O $srcdir/NNP-1g.X" failed. 1>&2
- errors=`expr $errors + 1`;;
- esac
-fi
-test -s NNP-1g.E || rm -f NNP-1g.E
-$xx ! -0 > N-1h.O 2> N-1h.E
-code=$?
-if test $code != 1; then
- $echo "Test N-1h failed: $xx return code $code differs from expected value 1" 1>&2
- errors=`expr $errors + 1`
-else
- cmp N-1h.O $srcdir/N-1h.X > /dev/null 2>&1
- case $? in
- 0) if test "$VERBOSE"; then $echo "passed N-1h"; fi;;
- 1) $echo "Test N-1h failed: files N-1h.O and $srcdir/N-1h.X differ" 1>&2
- (diff -c N-1h.O $srcdir/N-1h.X) 2> /dev/null
- errors=`expr $errors + 1`;;
- 2) $echo "Test N-1h may have failed." 1>&2
- $echo The command "cmp N-1h.O $srcdir/N-1h.X" failed. 1>&2
- errors=`expr $errors + 1`;;
- esac
-fi
-test -s N-1h.E || rm -f N-1h.E
-$xx '(' -0 ')' > P-1h.O 2> P-1h.E
-code=$?
-if test $code != 0; then
- $echo "Test P-1h failed: $xx return code $code differs from expected value 0" 1>&2
- errors=`expr $errors + 1`
-else
- cmp P-1h.O $srcdir/P-1h.X > /dev/null 2>&1
- case $? in
- 0) if test "$VERBOSE"; then $echo "passed P-1h"; fi;;
- 1) $echo "Test P-1h failed: files P-1h.O and $srcdir/P-1h.X differ" 1>&2
- (diff -c P-1h.O $srcdir/P-1h.X) 2> /dev/null
- errors=`expr $errors + 1`;;
- 2) $echo "Test P-1h may have failed." 1>&2
- $echo The command "cmp P-1h.O $srcdir/P-1h.X" failed. 1>&2
- errors=`expr $errors + 1`;;
- esac
-fi
-test -s P-1h.E || rm -f P-1h.E
-$xx ! '(' -0 ')' > NP-1h.O 2> NP-1h.E
-code=$?
-if test $code != 1; then
- $echo "Test NP-1h failed: $xx return code $code differs from expected value 1" 1>&2
- errors=`expr $errors + 1`
-else
- cmp NP-1h.O $srcdir/NP-1h.X > /dev/null 2>&1
- case $? in
- 0) if test "$VERBOSE"; then $echo "passed NP-1h"; fi;;
- 1) $echo "Test NP-1h failed: files NP-1h.O and $srcdir/NP-1h.X differ" 1>&2
- (diff -c NP-1h.O $srcdir/NP-1h.X) 2> /dev/null
- errors=`expr $errors + 1`;;
- 2) $echo "Test NP-1h may have failed." 1>&2
- $echo The command "cmp NP-1h.O $srcdir/NP-1h.X" failed. 1>&2
- errors=`expr $errors + 1`;;
- esac
-fi
-test -s NP-1h.E || rm -f NP-1h.E
-$xx ! ! '(' -0 ')' > NNP-1h.O 2> NNP-1h.E
-code=$?
-if test $code != 0; then
- $echo "Test NNP-1h failed: $xx return code $code differs from expected value 0" 1>&2
- errors=`expr $errors + 1`
-else
- cmp NNP-1h.O $srcdir/NNP-1h.X > /dev/null 2>&1
- case $? in
- 0) if test "$VERBOSE"; then $echo "passed NNP-1h"; fi;;
- 1) $echo "Test NNP-1h failed: files NNP-1h.O and $srcdir/NNP-1h.X differ" 1>&2
- (diff -c NNP-1h.O $srcdir/NNP-1h.X) 2> /dev/null
- errors=`expr $errors + 1`;;
- 2) $echo "Test NNP-1h may have failed." 1>&2
- $echo The command "cmp NNP-1h.O $srcdir/NNP-1h.X" failed. 1>&2
- errors=`expr $errors + 1`;;
- esac
-fi
-test -s NNP-1h.E || rm -f NNP-1h.E
-$xx ! -f > N-1i.O 2> N-1i.E
-code=$?
-if test $code != 1; then
- $echo "Test N-1i failed: $xx return code $code differs from expected value 1" 1>&2
- errors=`expr $errors + 1`
-else
- cmp N-1i.O $srcdir/N-1i.X > /dev/null 2>&1
- case $? in
- 0) if test "$VERBOSE"; then $echo "passed N-1i"; fi;;
- 1) $echo "Test N-1i failed: files N-1i.O and $srcdir/N-1i.X differ" 1>&2
- (diff -c N-1i.O $srcdir/N-1i.X) 2> /dev/null
- errors=`expr $errors + 1`;;
- 2) $echo "Test N-1i may have failed." 1>&2
- $echo The command "cmp N-1i.O $srcdir/N-1i.X" failed. 1>&2
- errors=`expr $errors + 1`;;
- esac
-fi
-test -s N-1i.E || rm -f N-1i.E
-$xx '(' -f ')' > P-1i.O 2> P-1i.E
-code=$?
-if test $code != 0; then
- $echo "Test P-1i failed: $xx return code $code differs from expected value 0" 1>&2
- errors=`expr $errors + 1`
-else
- cmp P-1i.O $srcdir/P-1i.X > /dev/null 2>&1
- case $? in
- 0) if test "$VERBOSE"; then $echo "passed P-1i"; fi;;
- 1) $echo "Test P-1i failed: files P-1i.O and $srcdir/P-1i.X differ" 1>&2
- (diff -c P-1i.O $srcdir/P-1i.X) 2> /dev/null
- errors=`expr $errors + 1`;;
- 2) $echo "Test P-1i may have failed." 1>&2
- $echo The command "cmp P-1i.O $srcdir/P-1i.X" failed. 1>&2
- errors=`expr $errors + 1`;;
- esac
-fi
-test -s P-1i.E || rm -f P-1i.E
-$xx ! '(' -f ')' > NP-1i.O 2> NP-1i.E
-code=$?
-if test $code != 1; then
- $echo "Test NP-1i failed: $xx return code $code differs from expected value 1" 1>&2
- errors=`expr $errors + 1`
-else
- cmp NP-1i.O $srcdir/NP-1i.X > /dev/null 2>&1
- case $? in
- 0) if test "$VERBOSE"; then $echo "passed NP-1i"; fi;;
- 1) $echo "Test NP-1i failed: files NP-1i.O and $srcdir/NP-1i.X differ" 1>&2
- (diff -c NP-1i.O $srcdir/NP-1i.X) 2> /dev/null
- errors=`expr $errors + 1`;;
- 2) $echo "Test NP-1i may have failed." 1>&2
- $echo The command "cmp NP-1i.O $srcdir/NP-1i.X" failed. 1>&2
- errors=`expr $errors + 1`;;
- esac
-fi
-test -s NP-1i.E || rm -f NP-1i.E
-$xx ! ! '(' -f ')' > NNP-1i.O 2> NNP-1i.E
-code=$?
-if test $code != 0; then
- $echo "Test NNP-1i failed: $xx return code $code differs from expected value 0" 1>&2
- errors=`expr $errors + 1`
-else
- cmp NNP-1i.O $srcdir/NNP-1i.X > /dev/null 2>&1
- case $? in
- 0) if test "$VERBOSE"; then $echo "passed NNP-1i"; fi;;
- 1) $echo "Test NNP-1i failed: files NNP-1i.O and $srcdir/NNP-1i.X differ" 1>&2
- (diff -c NNP-1i.O $srcdir/NNP-1i.X) 2> /dev/null
- errors=`expr $errors + 1`;;
- 2) $echo "Test NNP-1i may have failed." 1>&2
- $echo The command "cmp NNP-1i.O $srcdir/NNP-1i.X" failed. 1>&2
- errors=`expr $errors + 1`;;
- esac
-fi
-test -s NNP-1i.E || rm -f NNP-1i.E
-$xx ! --help > N-1j.O 2> N-1j.E
-code=$?
-if test $code != 1; then
- $echo "Test N-1j failed: $xx return code $code differs from expected value 1" 1>&2
- errors=`expr $errors + 1`
-else
- cmp N-1j.O $srcdir/N-1j.X > /dev/null 2>&1
- case $? in
- 0) if test "$VERBOSE"; then $echo "passed N-1j"; fi;;
- 1) $echo "Test N-1j failed: files N-1j.O and $srcdir/N-1j.X differ" 1>&2
- (diff -c N-1j.O $srcdir/N-1j.X) 2> /dev/null
- errors=`expr $errors + 1`;;
- 2) $echo "Test N-1j may have failed." 1>&2
- $echo The command "cmp N-1j.O $srcdir/N-1j.X" failed. 1>&2
- errors=`expr $errors + 1`;;
- esac
-fi
-test -s N-1j.E || rm -f N-1j.E
-$xx '(' --help ')' > P-1j.O 2> P-1j.E
-code=$?
-if test $code != 0; then
- $echo "Test P-1j failed: $xx return code $code differs from expected value 0" 1>&2
- errors=`expr $errors + 1`
-else
- cmp P-1j.O $srcdir/P-1j.X > /dev/null 2>&1
- case $? in
- 0) if test "$VERBOSE"; then $echo "passed P-1j"; fi;;
- 1) $echo "Test P-1j failed: files P-1j.O and $srcdir/P-1j.X differ" 1>&2
- (diff -c P-1j.O $srcdir/P-1j.X) 2> /dev/null
- errors=`expr $errors + 1`;;
- 2) $echo "Test P-1j may have failed." 1>&2
- $echo The command "cmp P-1j.O $srcdir/P-1j.X" failed. 1>&2
- errors=`expr $errors + 1`;;
- esac
-fi
-test -s P-1j.E || rm -f P-1j.E
-$xx ! '(' --help ')' > NP-1j.O 2> NP-1j.E
-code=$?
-if test $code != 1; then
- $echo "Test NP-1j failed: $xx return code $code differs from expected value 1" 1>&2
- errors=`expr $errors + 1`
-else
- cmp NP-1j.O $srcdir/NP-1j.X > /dev/null 2>&1
- case $? in
- 0) if test "$VERBOSE"; then $echo "passed NP-1j"; fi;;
- 1) $echo "Test NP-1j failed: files NP-1j.O and $srcdir/NP-1j.X differ" 1>&2
- (diff -c NP-1j.O $srcdir/NP-1j.X) 2> /dev/null
- errors=`expr $errors + 1`;;
- 2) $echo "Test NP-1j may have failed." 1>&2
- $echo The command "cmp NP-1j.O $srcdir/NP-1j.X" failed. 1>&2
- errors=`expr $errors + 1`;;
- esac
-fi
-test -s NP-1j.E || rm -f NP-1j.E
-$xx ! ! '(' --help ')' > NNP-1j.O 2> NNP-1j.E
-code=$?
-if test $code != 0; then
- $echo "Test NNP-1j failed: $xx return code $code differs from expected value 0" 1>&2
- errors=`expr $errors + 1`
-else
- cmp NNP-1j.O $srcdir/NNP-1j.X > /dev/null 2>&1
- case $? in
- 0) if test "$VERBOSE"; then $echo "passed NNP-1j"; fi;;
- 1) $echo "Test NNP-1j failed: files NNP-1j.O and $srcdir/NNP-1j.X differ" 1>&2
- (diff -c NNP-1j.O $srcdir/NNP-1j.X) 2> /dev/null
- errors=`expr $errors + 1`;;
- 2) $echo "Test NNP-1j may have failed." 1>&2
- $echo The command "cmp NNP-1j.O $srcdir/NNP-1j.X" failed. 1>&2
- errors=`expr $errors + 1`;;
- esac
-fi
-test -s NNP-1j.E || rm -f NNP-1j.E
-$xx ! --version > N-1k.O 2> N-1k.E
-code=$?
-if test $code != 1; then
- $echo "Test N-1k failed: $xx return code $code differs from expected value 1" 1>&2
- errors=`expr $errors + 1`
-else
- cmp N-1k.O $srcdir/N-1k.X > /dev/null 2>&1
- case $? in
- 0) if test "$VERBOSE"; then $echo "passed N-1k"; fi;;
- 1) $echo "Test N-1k failed: files N-1k.O and $srcdir/N-1k.X differ" 1>&2
- (diff -c N-1k.O $srcdir/N-1k.X) 2> /dev/null
- errors=`expr $errors + 1`;;
- 2) $echo "Test N-1k may have failed." 1>&2
- $echo The command "cmp N-1k.O $srcdir/N-1k.X" failed. 1>&2
- errors=`expr $errors + 1`;;
- esac
-fi
-test -s N-1k.E || rm -f N-1k.E
-$xx '(' --version ')' > P-1k.O 2> P-1k.E
-code=$?
-if test $code != 0; then
- $echo "Test P-1k failed: $xx return code $code differs from expected value 0" 1>&2
- errors=`expr $errors + 1`
-else
- cmp P-1k.O $srcdir/P-1k.X > /dev/null 2>&1
- case $? in
- 0) if test "$VERBOSE"; then $echo "passed P-1k"; fi;;
- 1) $echo "Test P-1k failed: files P-1k.O and $srcdir/P-1k.X differ" 1>&2
- (diff -c P-1k.O $srcdir/P-1k.X) 2> /dev/null
- errors=`expr $errors + 1`;;
- 2) $echo "Test P-1k may have failed." 1>&2
- $echo The command "cmp P-1k.O $srcdir/P-1k.X" failed. 1>&2
- errors=`expr $errors + 1`;;
- esac
-fi
-test -s P-1k.E || rm -f P-1k.E
-$xx ! '(' --version ')' > NP-1k.O 2> NP-1k.E
-code=$?
-if test $code != 1; then
- $echo "Test NP-1k failed: $xx return code $code differs from expected value 1" 1>&2
- errors=`expr $errors + 1`
-else
- cmp NP-1k.O $srcdir/NP-1k.X > /dev/null 2>&1
- case $? in
- 0) if test "$VERBOSE"; then $echo "passed NP-1k"; fi;;
- 1) $echo "Test NP-1k failed: files NP-1k.O and $srcdir/NP-1k.X differ" 1>&2
- (diff -c NP-1k.O $srcdir/NP-1k.X) 2> /dev/null
- errors=`expr $errors + 1`;;
- 2) $echo "Test NP-1k may have failed." 1>&2
- $echo The command "cmp NP-1k.O $srcdir/NP-1k.X" failed. 1>&2
- errors=`expr $errors + 1`;;
- esac
-fi
-test -s NP-1k.E || rm -f NP-1k.E
-$xx ! ! '(' --version ')' > NNP-1k.O 2> NNP-1k.E
-code=$?
-if test $code != 0; then
- $echo "Test NNP-1k failed: $xx return code $code differs from expected value 0" 1>&2
- errors=`expr $errors + 1`
-else
- cmp NNP-1k.O $srcdir/NNP-1k.X > /dev/null 2>&1
- case $? in
- 0) if test "$VERBOSE"; then $echo "passed NNP-1k"; fi;;
- 1) $echo "Test NNP-1k failed: files NNP-1k.O and $srcdir/NNP-1k.X differ" 1>&2
- (diff -c NNP-1k.O $srcdir/NNP-1k.X) 2> /dev/null
- errors=`expr $errors + 1`;;
- 2) $echo "Test NNP-1k may have failed." 1>&2
- $echo The command "cmp NNP-1k.O $srcdir/NNP-1k.X" failed. 1>&2
- errors=`expr $errors + 1`;;
- esac
-fi
-test -s NNP-1k.E || rm -f NNP-1k.E
-$xx ! t = t > N-streq-1.O 2> N-streq-1.E
-code=$?
-if test $code != 1; then
- $echo "Test N-streq-1 failed: $xx return code $code differs from expected value 1" 1>&2
- errors=`expr $errors + 1`
-else
- cmp N-streq-1.O $srcdir/N-streq-1.X > /dev/null 2>&1
- case $? in
- 0) if test "$VERBOSE"; then $echo "passed N-streq-1"; fi;;
- 1) $echo "Test N-streq-1 failed: files N-streq-1.O and $srcdir/N-streq-1.X differ" 1>&2
- (diff -c N-streq-1.O $srcdir/N-streq-1.X) 2> /dev/null
- errors=`expr $errors + 1`;;
- 2) $echo "Test N-streq-1 may have failed." 1>&2
- $echo The command "cmp N-streq-1.O $srcdir/N-streq-1.X" failed. 1>&2
- errors=`expr $errors + 1`;;
- esac
-fi
-test -s N-streq-1.E || rm -f N-streq-1.E
-$xx '(' t = t ')' > P-streq-1.O 2> P-streq-1.E
-code=$?
-if test $code != 0; then
- $echo "Test P-streq-1 failed: $xx return code $code differs from expected value 0" 1>&2
- errors=`expr $errors + 1`
-else
- cmp P-streq-1.O $srcdir/P-streq-1.X > /dev/null 2>&1
- case $? in
- 0) if test "$VERBOSE"; then $echo "passed P-streq-1"; fi;;
- 1) $echo "Test P-streq-1 failed: files P-streq-1.O and $srcdir/P-streq-1.X differ" 1>&2
- (diff -c P-streq-1.O $srcdir/P-streq-1.X) 2> /dev/null
- errors=`expr $errors + 1`;;
- 2) $echo "Test P-streq-1 may have failed." 1>&2
- $echo The command "cmp P-streq-1.O $srcdir/P-streq-1.X" failed. 1>&2
- errors=`expr $errors + 1`;;
- esac
-fi
-test -s P-streq-1.E || rm -f P-streq-1.E
-$xx ! '(' t = t ')' > NP-streq-1.O 2> NP-streq-1.E
-code=$?
-if test $code != 1; then
- $echo "Test NP-streq-1 failed: $xx return code $code differs from expected value 1" 1>&2
- errors=`expr $errors + 1`
-else
- cmp NP-streq-1.O $srcdir/NP-streq-1.X > /dev/null 2>&1
- case $? in
- 0) if test "$VERBOSE"; then $echo "passed NP-streq-1"; fi;;
- 1) $echo "Test NP-streq-1 failed: files NP-streq-1.O and $srcdir/NP-streq-1.X differ" 1>&2
- (diff -c NP-streq-1.O $srcdir/NP-streq-1.X) 2> /dev/null
- errors=`expr $errors + 1`;;
- 2) $echo "Test NP-streq-1 may have failed." 1>&2
- $echo The command "cmp NP-streq-1.O $srcdir/NP-streq-1.X" failed. 1>&2
- errors=`expr $errors + 1`;;
- esac
-fi
-test -s NP-streq-1.E || rm -f NP-streq-1.E
-$xx ! ! '(' t = t ')' > NNP-streq-1.O 2> NNP-streq-1.E
-code=$?
-if test $code != 0; then
- $echo "Test NNP-streq-1 failed: $xx return code $code differs from expected value 0" 1>&2
- errors=`expr $errors + 1`
-else
- cmp NNP-streq-1.O $srcdir/NNP-streq-1.X > /dev/null 2>&1
- case $? in
- 0) if test "$VERBOSE"; then $echo "passed NNP-streq-1"; fi;;
- 1) $echo "Test NNP-streq-1 failed: files NNP-streq-1.O and $srcdir/NNP-streq-1.X differ" 1>&2
- (diff -c NNP-streq-1.O $srcdir/NNP-streq-1.X) 2> /dev/null
- errors=`expr $errors + 1`;;
- 2) $echo "Test NNP-streq-1 may have failed." 1>&2
- $echo The command "cmp NNP-streq-1.O $srcdir/NNP-streq-1.X" failed. 1>&2
- errors=`expr $errors + 1`;;
- esac
-fi
-test -s NNP-streq-1.E || rm -f NNP-streq-1.E
-$xx ! t = f > N-streq-2.O 2> N-streq-2.E
-code=$?
-if test $code != 0; then
- $echo "Test N-streq-2 failed: $xx return code $code differs from expected value 0" 1>&2
- errors=`expr $errors + 1`
-else
- cmp N-streq-2.O $srcdir/N-streq-2.X > /dev/null 2>&1
- case $? in
- 0) if test "$VERBOSE"; then $echo "passed N-streq-2"; fi;;
- 1) $echo "Test N-streq-2 failed: files N-streq-2.O and $srcdir/N-streq-2.X differ" 1>&2
- (diff -c N-streq-2.O $srcdir/N-streq-2.X) 2> /dev/null
- errors=`expr $errors + 1`;;
- 2) $echo "Test N-streq-2 may have failed." 1>&2
- $echo The command "cmp N-streq-2.O $srcdir/N-streq-2.X" failed. 1>&2
- errors=`expr $errors + 1`;;
- esac
-fi
-test -s N-streq-2.E || rm -f N-streq-2.E
-$xx '(' t = f ')' > P-streq-2.O 2> P-streq-2.E
-code=$?
-if test $code != 1; then
- $echo "Test P-streq-2 failed: $xx return code $code differs from expected value 1" 1>&2
- errors=`expr $errors + 1`
-else
- cmp P-streq-2.O $srcdir/P-streq-2.X > /dev/null 2>&1
- case $? in
- 0) if test "$VERBOSE"; then $echo "passed P-streq-2"; fi;;
- 1) $echo "Test P-streq-2 failed: files P-streq-2.O and $srcdir/P-streq-2.X differ" 1>&2
- (diff -c P-streq-2.O $srcdir/P-streq-2.X) 2> /dev/null
- errors=`expr $errors + 1`;;
- 2) $echo "Test P-streq-2 may have failed." 1>&2
- $echo The command "cmp P-streq-2.O $srcdir/P-streq-2.X" failed. 1>&2
- errors=`expr $errors + 1`;;
- esac
-fi
-test -s P-streq-2.E || rm -f P-streq-2.E
-$xx ! '(' t = f ')' > NP-streq-2.O 2> NP-streq-2.E
-code=$?
-if test $code != 0; then
- $echo "Test NP-streq-2 failed: $xx return code $code differs from expected value 0" 1>&2
- errors=`expr $errors + 1`
-else
- cmp NP-streq-2.O $srcdir/NP-streq-2.X > /dev/null 2>&1
- case $? in
- 0) if test "$VERBOSE"; then $echo "passed NP-streq-2"; fi;;
- 1) $echo "Test NP-streq-2 failed: files NP-streq-2.O and $srcdir/NP-streq-2.X differ" 1>&2
- (diff -c NP-streq-2.O $srcdir/NP-streq-2.X) 2> /dev/null
- errors=`expr $errors + 1`;;
- 2) $echo "Test NP-streq-2 may have failed." 1>&2
- $echo The command "cmp NP-streq-2.O $srcdir/NP-streq-2.X" failed. 1>&2
- errors=`expr $errors + 1`;;
- esac
-fi
-test -s NP-streq-2.E || rm -f NP-streq-2.E
-$xx ! ! '(' t = f ')' > NNP-streq-2.O 2> NNP-streq-2.E
-code=$?
-if test $code != 1; then
- $echo "Test NNP-streq-2 failed: $xx return code $code differs from expected value 1" 1>&2
- errors=`expr $errors + 1`
-else
- cmp NNP-streq-2.O $srcdir/NNP-streq-2.X > /dev/null 2>&1
- case $? in
- 0) if test "$VERBOSE"; then $echo "passed NNP-streq-2"; fi;;
- 1) $echo "Test NNP-streq-2 failed: files NNP-streq-2.O and $srcdir/NNP-streq-2.X differ" 1>&2
- (diff -c NNP-streq-2.O $srcdir/NNP-streq-2.X) 2> /dev/null
- errors=`expr $errors + 1`;;
- 2) $echo "Test NNP-streq-2 may have failed." 1>&2
- $echo The command "cmp NNP-streq-2.O $srcdir/NNP-streq-2.X" failed. 1>&2
- errors=`expr $errors + 1`;;
- esac
-fi
-test -s NNP-streq-2.E || rm -f NNP-streq-2.E
-$xx ! ! = ! > N-streq-3.O 2> N-streq-3.E
-code=$?
-if test $code != 1; then
- $echo "Test N-streq-3 failed: $xx return code $code differs from expected value 1" 1>&2
- errors=`expr $errors + 1`
-else
- cmp N-streq-3.O $srcdir/N-streq-3.X > /dev/null 2>&1
- case $? in
- 0) if test "$VERBOSE"; then $echo "passed N-streq-3"; fi;;
- 1) $echo "Test N-streq-3 failed: files N-streq-3.O and $srcdir/N-streq-3.X differ" 1>&2
- (diff -c N-streq-3.O $srcdir/N-streq-3.X) 2> /dev/null
- errors=`expr $errors + 1`;;
- 2) $echo "Test N-streq-3 may have failed." 1>&2
- $echo The command "cmp N-streq-3.O $srcdir/N-streq-3.X" failed. 1>&2
- errors=`expr $errors + 1`;;
- esac
-fi
-test -s N-streq-3.E || rm -f N-streq-3.E
-$xx '(' ! = ! ')' > P-streq-3.O 2> P-streq-3.E
-code=$?
-if test $code != 0; then
- $echo "Test P-streq-3 failed: $xx return code $code differs from expected value 0" 1>&2
- errors=`expr $errors + 1`
-else
- cmp P-streq-3.O $srcdir/P-streq-3.X > /dev/null 2>&1
- case $? in
- 0) if test "$VERBOSE"; then $echo "passed P-streq-3"; fi;;
- 1) $echo "Test P-streq-3 failed: files P-streq-3.O and $srcdir/P-streq-3.X differ" 1>&2
- (diff -c P-streq-3.O $srcdir/P-streq-3.X) 2> /dev/null
- errors=`expr $errors + 1`;;
- 2) $echo "Test P-streq-3 may have failed." 1>&2
- $echo The command "cmp P-streq-3.O $srcdir/P-streq-3.X" failed. 1>&2
- errors=`expr $errors + 1`;;
- esac
-fi
-test -s P-streq-3.E || rm -f P-streq-3.E
-$xx ! '(' ! = ! ')' > NP-streq-3.O 2> NP-streq-3.E
-code=$?
-if test $code != 1; then
- $echo "Test NP-streq-3 failed: $xx return code $code differs from expected value 1" 1>&2
- errors=`expr $errors + 1`
-else
- cmp NP-streq-3.O $srcdir/NP-streq-3.X > /dev/null 2>&1
- case $? in
- 0) if test "$VERBOSE"; then $echo "passed NP-streq-3"; fi;;
- 1) $echo "Test NP-streq-3 failed: files NP-streq-3.O and $srcdir/NP-streq-3.X differ" 1>&2
- (diff -c NP-streq-3.O $srcdir/NP-streq-3.X) 2> /dev/null
- errors=`expr $errors + 1`;;
- 2) $echo "Test NP-streq-3 may have failed." 1>&2
- $echo The command "cmp NP-streq-3.O $srcdir/NP-streq-3.X" failed. 1>&2
- errors=`expr $errors + 1`;;
- esac
-fi
-test -s NP-streq-3.E || rm -f NP-streq-3.E
-$xx ! ! '(' ! = ! ')' > NNP-streq-3.O 2> NNP-streq-3.E
-code=$?
-if test $code != 0; then
- $echo "Test NNP-streq-3 failed: $xx return code $code differs from expected value 0" 1>&2
- errors=`expr $errors + 1`
-else
- cmp NNP-streq-3.O $srcdir/NNP-streq-3.X > /dev/null 2>&1
- case $? in
- 0) if test "$VERBOSE"; then $echo "passed NNP-streq-3"; fi;;
- 1) $echo "Test NNP-streq-3 failed: files NNP-streq-3.O and $srcdir/NNP-streq-3.X differ" 1>&2
- (diff -c NNP-streq-3.O $srcdir/NNP-streq-3.X) 2> /dev/null
- errors=`expr $errors + 1`;;
- 2) $echo "Test NNP-streq-3 may have failed." 1>&2
- $echo The command "cmp NNP-streq-3.O $srcdir/NNP-streq-3.X" failed. 1>&2
- errors=`expr $errors + 1`;;
- esac
-fi
-test -s NNP-streq-3.E || rm -f NNP-streq-3.E
-$xx ! = = = > N-streq-4.O 2> N-streq-4.E
-code=$?
-if test $code != 1; then
- $echo "Test N-streq-4 failed: $xx return code $code differs from expected value 1" 1>&2
- errors=`expr $errors + 1`
-else
- cmp N-streq-4.O $srcdir/N-streq-4.X > /dev/null 2>&1
- case $? in
- 0) if test "$VERBOSE"; then $echo "passed N-streq-4"; fi;;
- 1) $echo "Test N-streq-4 failed: files N-streq-4.O and $srcdir/N-streq-4.X differ" 1>&2
- (diff -c N-streq-4.O $srcdir/N-streq-4.X) 2> /dev/null
- errors=`expr $errors + 1`;;
- 2) $echo "Test N-streq-4 may have failed." 1>&2
- $echo The command "cmp N-streq-4.O $srcdir/N-streq-4.X" failed. 1>&2
- errors=`expr $errors + 1`;;
- esac
-fi
-test -s N-streq-4.E || rm -f N-streq-4.E
-$xx '(' = = = ')' > P-streq-4.O 2> P-streq-4.E
-code=$?
-if test $code != 0; then
- $echo "Test P-streq-4 failed: $xx return code $code differs from expected value 0" 1>&2
- errors=`expr $errors + 1`
-else
- cmp P-streq-4.O $srcdir/P-streq-4.X > /dev/null 2>&1
- case $? in
- 0) if test "$VERBOSE"; then $echo "passed P-streq-4"; fi;;
- 1) $echo "Test P-streq-4 failed: files P-streq-4.O and $srcdir/P-streq-4.X differ" 1>&2
- (diff -c P-streq-4.O $srcdir/P-streq-4.X) 2> /dev/null
- errors=`expr $errors + 1`;;
- 2) $echo "Test P-streq-4 may have failed." 1>&2
- $echo The command "cmp P-streq-4.O $srcdir/P-streq-4.X" failed. 1>&2
- errors=`expr $errors + 1`;;
- esac
-fi
-test -s P-streq-4.E || rm -f P-streq-4.E
-$xx ! '(' = = = ')' > NP-streq-4.O 2> NP-streq-4.E
-code=$?
-if test $code != 1; then
- $echo "Test NP-streq-4 failed: $xx return code $code differs from expected value 1" 1>&2
- errors=`expr $errors + 1`
-else
- cmp NP-streq-4.O $srcdir/NP-streq-4.X > /dev/null 2>&1
- case $? in
- 0) if test "$VERBOSE"; then $echo "passed NP-streq-4"; fi;;
- 1) $echo "Test NP-streq-4 failed: files NP-streq-4.O and $srcdir/NP-streq-4.X differ" 1>&2
- (diff -c NP-streq-4.O $srcdir/NP-streq-4.X) 2> /dev/null
- errors=`expr $errors + 1`;;
- 2) $echo "Test NP-streq-4 may have failed." 1>&2
- $echo The command "cmp NP-streq-4.O $srcdir/NP-streq-4.X" failed. 1>&2
- errors=`expr $errors + 1`;;
- esac
-fi
-test -s NP-streq-4.E || rm -f NP-streq-4.E
-$xx ! ! '(' = = = ')' > NNP-streq-4.O 2> NNP-streq-4.E
-code=$?
-if test $code != 0; then
- $echo "Test NNP-streq-4 failed: $xx return code $code differs from expected value 0" 1>&2
- errors=`expr $errors + 1`
-else
- cmp NNP-streq-4.O $srcdir/NNP-streq-4.X > /dev/null 2>&1
- case $? in
- 0) if test "$VERBOSE"; then $echo "passed NNP-streq-4"; fi;;
- 1) $echo "Test NNP-streq-4 failed: files NNP-streq-4.O and $srcdir/NNP-streq-4.X differ" 1>&2
- (diff -c NNP-streq-4.O $srcdir/NNP-streq-4.X) 2> /dev/null
- errors=`expr $errors + 1`;;
- 2) $echo "Test NNP-streq-4 may have failed." 1>&2
- $echo The command "cmp NNP-streq-4.O $srcdir/NNP-streq-4.X" failed. 1>&2
- errors=`expr $errors + 1`;;
- esac
-fi
-test -s NNP-streq-4.E || rm -f NNP-streq-4.E
-$xx ! '(' = '(' > N-streq-5.O 2> N-streq-5.E
-code=$?
-if test $code != 1; then
- $echo "Test N-streq-5 failed: $xx return code $code differs from expected value 1" 1>&2
- errors=`expr $errors + 1`
-else
- cmp N-streq-5.O $srcdir/N-streq-5.X > /dev/null 2>&1
- case $? in
- 0) if test "$VERBOSE"; then $echo "passed N-streq-5"; fi;;
- 1) $echo "Test N-streq-5 failed: files N-streq-5.O and $srcdir/N-streq-5.X differ" 1>&2
- (diff -c N-streq-5.O $srcdir/N-streq-5.X) 2> /dev/null
- errors=`expr $errors + 1`;;
- 2) $echo "Test N-streq-5 may have failed." 1>&2
- $echo The command "cmp N-streq-5.O $srcdir/N-streq-5.X" failed. 1>&2
- errors=`expr $errors + 1`;;
- esac
-fi
-test -s N-streq-5.E || rm -f N-streq-5.E
-$xx '(' '(' = '(' ')' > P-streq-5.O 2> P-streq-5.E
-code=$?
-if test $code != 0; then
- $echo "Test P-streq-5 failed: $xx return code $code differs from expected value 0" 1>&2
- errors=`expr $errors + 1`
-else
- cmp P-streq-5.O $srcdir/P-streq-5.X > /dev/null 2>&1
- case $? in
- 0) if test "$VERBOSE"; then $echo "passed P-streq-5"; fi;;
- 1) $echo "Test P-streq-5 failed: files P-streq-5.O and $srcdir/P-streq-5.X differ" 1>&2
- (diff -c P-streq-5.O $srcdir/P-streq-5.X) 2> /dev/null
- errors=`expr $errors + 1`;;
- 2) $echo "Test P-streq-5 may have failed." 1>&2
- $echo The command "cmp P-streq-5.O $srcdir/P-streq-5.X" failed. 1>&2
- errors=`expr $errors + 1`;;
- esac
-fi
-test -s P-streq-5.E || rm -f P-streq-5.E
-$xx ! '(' '(' = '(' ')' > NP-streq-5.O 2> NP-streq-5.E
-code=$?
-if test $code != 1; then
- $echo "Test NP-streq-5 failed: $xx return code $code differs from expected value 1" 1>&2
- errors=`expr $errors + 1`
-else
- cmp NP-streq-5.O $srcdir/NP-streq-5.X > /dev/null 2>&1
- case $? in
- 0) if test "$VERBOSE"; then $echo "passed NP-streq-5"; fi;;
- 1) $echo "Test NP-streq-5 failed: files NP-streq-5.O and $srcdir/NP-streq-5.X differ" 1>&2
- (diff -c NP-streq-5.O $srcdir/NP-streq-5.X) 2> /dev/null
- errors=`expr $errors + 1`;;
- 2) $echo "Test NP-streq-5 may have failed." 1>&2
- $echo The command "cmp NP-streq-5.O $srcdir/NP-streq-5.X" failed. 1>&2
- errors=`expr $errors + 1`;;
- esac
-fi
-test -s NP-streq-5.E || rm -f NP-streq-5.E
-$xx ! ! '(' '(' = '(' ')' > NNP-streq-5.O 2> NNP-streq-5.E
-code=$?
-if test $code != 0; then
- $echo "Test NNP-streq-5 failed: $xx return code $code differs from expected value 0" 1>&2
- errors=`expr $errors + 1`
-else
- cmp NNP-streq-5.O $srcdir/NNP-streq-5.X > /dev/null 2>&1
- case $? in
- 0) if test "$VERBOSE"; then $echo "passed NNP-streq-5"; fi;;
- 1) $echo "Test NNP-streq-5 failed: files NNP-streq-5.O and $srcdir/NNP-streq-5.X differ" 1>&2
- (diff -c NNP-streq-5.O $srcdir/NNP-streq-5.X) 2> /dev/null
- errors=`expr $errors + 1`;;
- 2) $echo "Test NNP-streq-5 may have failed." 1>&2
- $echo The command "cmp NNP-streq-5.O $srcdir/NNP-streq-5.X" failed. 1>&2
- errors=`expr $errors + 1`;;
- esac
-fi
-test -s NNP-streq-5.E || rm -f NNP-streq-5.E
-$xx ! '(' = ')' > N-streq-6.O 2> N-streq-6.E
-code=$?
-if test $code != 0; then
- $echo "Test N-streq-6 failed: $xx return code $code differs from expected value 0" 1>&2
- errors=`expr $errors + 1`
-else
- cmp N-streq-6.O $srcdir/N-streq-6.X > /dev/null 2>&1
- case $? in
- 0) if test "$VERBOSE"; then $echo "passed N-streq-6"; fi;;
- 1) $echo "Test N-streq-6 failed: files N-streq-6.O and $srcdir/N-streq-6.X differ" 1>&2
- (diff -c N-streq-6.O $srcdir/N-streq-6.X) 2> /dev/null
- errors=`expr $errors + 1`;;
- 2) $echo "Test N-streq-6 may have failed." 1>&2
- $echo The command "cmp N-streq-6.O $srcdir/N-streq-6.X" failed. 1>&2
- errors=`expr $errors + 1`;;
- esac
-fi
-test -s N-streq-6.E || rm -f N-streq-6.E
-$xx ! t != t > N-strne-1.O 2> N-strne-1.E
-code=$?
-if test $code != 0; then
- $echo "Test N-strne-1 failed: $xx return code $code differs from expected value 0" 1>&2
- errors=`expr $errors + 1`
-else
- cmp N-strne-1.O $srcdir/N-strne-1.X > /dev/null 2>&1
- case $? in
- 0) if test "$VERBOSE"; then $echo "passed N-strne-1"; fi;;
- 1) $echo "Test N-strne-1 failed: files N-strne-1.O and $srcdir/N-strne-1.X differ" 1>&2
- (diff -c N-strne-1.O $srcdir/N-strne-1.X) 2> /dev/null
- errors=`expr $errors + 1`;;
- 2) $echo "Test N-strne-1 may have failed." 1>&2
- $echo The command "cmp N-strne-1.O $srcdir/N-strne-1.X" failed. 1>&2
- errors=`expr $errors + 1`;;
- esac
-fi
-test -s N-strne-1.E || rm -f N-strne-1.E
-$xx '(' t != t ')' > P-strne-1.O 2> P-strne-1.E
-code=$?
-if test $code != 1; then
- $echo "Test P-strne-1 failed: $xx return code $code differs from expected value 1" 1>&2
- errors=`expr $errors + 1`
-else
- cmp P-strne-1.O $srcdir/P-strne-1.X > /dev/null 2>&1
- case $? in
- 0) if test "$VERBOSE"; then $echo "passed P-strne-1"; fi;;
- 1) $echo "Test P-strne-1 failed: files P-strne-1.O and $srcdir/P-strne-1.X differ" 1>&2
- (diff -c P-strne-1.O $srcdir/P-strne-1.X) 2> /dev/null
- errors=`expr $errors + 1`;;
- 2) $echo "Test P-strne-1 may have failed." 1>&2
- $echo The command "cmp P-strne-1.O $srcdir/P-strne-1.X" failed. 1>&2
- errors=`expr $errors + 1`;;
- esac
-fi
-test -s P-strne-1.E || rm -f P-strne-1.E
-$xx ! '(' t != t ')' > NP-strne-1.O 2> NP-strne-1.E
-code=$?
-if test $code != 0; then
- $echo "Test NP-strne-1 failed: $xx return code $code differs from expected value 0" 1>&2
- errors=`expr $errors + 1`
-else
- cmp NP-strne-1.O $srcdir/NP-strne-1.X > /dev/null 2>&1
- case $? in
- 0) if test "$VERBOSE"; then $echo "passed NP-strne-1"; fi;;
- 1) $echo "Test NP-strne-1 failed: files NP-strne-1.O and $srcdir/NP-strne-1.X differ" 1>&2
- (diff -c NP-strne-1.O $srcdir/NP-strne-1.X) 2> /dev/null
- errors=`expr $errors + 1`;;
- 2) $echo "Test NP-strne-1 may have failed." 1>&2
- $echo The command "cmp NP-strne-1.O $srcdir/NP-strne-1.X" failed. 1>&2
- errors=`expr $errors + 1`;;
- esac
-fi
-test -s NP-strne-1.E || rm -f NP-strne-1.E
-$xx ! ! '(' t != t ')' > NNP-strne-1.O 2> NNP-strne-1.E
-code=$?
-if test $code != 1; then
- $echo "Test NNP-strne-1 failed: $xx return code $code differs from expected value 1" 1>&2
- errors=`expr $errors + 1`
-else
- cmp NNP-strne-1.O $srcdir/NNP-strne-1.X > /dev/null 2>&1
- case $? in
- 0) if test "$VERBOSE"; then $echo "passed NNP-strne-1"; fi;;
- 1) $echo "Test NNP-strne-1 failed: files NNP-strne-1.O and $srcdir/NNP-strne-1.X differ" 1>&2
- (diff -c NNP-strne-1.O $srcdir/NNP-strne-1.X) 2> /dev/null
- errors=`expr $errors + 1`;;
- 2) $echo "Test NNP-strne-1 may have failed." 1>&2
- $echo The command "cmp NNP-strne-1.O $srcdir/NNP-strne-1.X" failed. 1>&2
- errors=`expr $errors + 1`;;
- esac
-fi
-test -s NNP-strne-1.E || rm -f NNP-strne-1.E
-$xx ! t != f > N-strne-2.O 2> N-strne-2.E
-code=$?
-if test $code != 1; then
- $echo "Test N-strne-2 failed: $xx return code $code differs from expected value 1" 1>&2
- errors=`expr $errors + 1`
-else
- cmp N-strne-2.O $srcdir/N-strne-2.X > /dev/null 2>&1
- case $? in
- 0) if test "$VERBOSE"; then $echo "passed N-strne-2"; fi;;
- 1) $echo "Test N-strne-2 failed: files N-strne-2.O and $srcdir/N-strne-2.X differ" 1>&2
- (diff -c N-strne-2.O $srcdir/N-strne-2.X) 2> /dev/null
- errors=`expr $errors + 1`;;
- 2) $echo "Test N-strne-2 may have failed." 1>&2
- $echo The command "cmp N-strne-2.O $srcdir/N-strne-2.X" failed. 1>&2
- errors=`expr $errors + 1`;;
- esac
-fi
-test -s N-strne-2.E || rm -f N-strne-2.E
-$xx '(' t != f ')' > P-strne-2.O 2> P-strne-2.E
-code=$?
-if test $code != 0; then
- $echo "Test P-strne-2 failed: $xx return code $code differs from expected value 0" 1>&2
- errors=`expr $errors + 1`
-else
- cmp P-strne-2.O $srcdir/P-strne-2.X > /dev/null 2>&1
- case $? in
- 0) if test "$VERBOSE"; then $echo "passed P-strne-2"; fi;;
- 1) $echo "Test P-strne-2 failed: files P-strne-2.O and $srcdir/P-strne-2.X differ" 1>&2
- (diff -c P-strne-2.O $srcdir/P-strne-2.X) 2> /dev/null
- errors=`expr $errors + 1`;;
- 2) $echo "Test P-strne-2 may have failed." 1>&2
- $echo The command "cmp P-strne-2.O $srcdir/P-strne-2.X" failed. 1>&2
- errors=`expr $errors + 1`;;
- esac
-fi
-test -s P-strne-2.E || rm -f P-strne-2.E
-$xx ! '(' t != f ')' > NP-strne-2.O 2> NP-strne-2.E
-code=$?
-if test $code != 1; then
- $echo "Test NP-strne-2 failed: $xx return code $code differs from expected value 1" 1>&2
- errors=`expr $errors + 1`
-else
- cmp NP-strne-2.O $srcdir/NP-strne-2.X > /dev/null 2>&1
- case $? in
- 0) if test "$VERBOSE"; then $echo "passed NP-strne-2"; fi;;
- 1) $echo "Test NP-strne-2 failed: files NP-strne-2.O and $srcdir/NP-strne-2.X differ" 1>&2
- (diff -c NP-strne-2.O $srcdir/NP-strne-2.X) 2> /dev/null
- errors=`expr $errors + 1`;;
- 2) $echo "Test NP-strne-2 may have failed." 1>&2
- $echo The command "cmp NP-strne-2.O $srcdir/NP-strne-2.X" failed. 1>&2
- errors=`expr $errors + 1`;;
- esac
-fi
-test -s NP-strne-2.E || rm -f NP-strne-2.E
-$xx ! ! '(' t != f ')' > NNP-strne-2.O 2> NNP-strne-2.E
-code=$?
-if test $code != 0; then
- $echo "Test NNP-strne-2 failed: $xx return code $code differs from expected value 0" 1>&2
- errors=`expr $errors + 1`
-else
- cmp NNP-strne-2.O $srcdir/NNP-strne-2.X > /dev/null 2>&1
- case $? in
- 0) if test "$VERBOSE"; then $echo "passed NNP-strne-2"; fi;;
- 1) $echo "Test NNP-strne-2 failed: files NNP-strne-2.O and $srcdir/NNP-strne-2.X differ" 1>&2
- (diff -c NNP-strne-2.O $srcdir/NNP-strne-2.X) 2> /dev/null
- errors=`expr $errors + 1`;;
- 2) $echo "Test NNP-strne-2 may have failed." 1>&2
- $echo The command "cmp NNP-strne-2.O $srcdir/NNP-strne-2.X" failed. 1>&2
- errors=`expr $errors + 1`;;
- esac
-fi
-test -s NNP-strne-2.E || rm -f NNP-strne-2.E
-$xx ! ! != ! > N-strne-3.O 2> N-strne-3.E
-code=$?
-if test $code != 0; then
- $echo "Test N-strne-3 failed: $xx return code $code differs from expected value 0" 1>&2
- errors=`expr $errors + 1`
-else
- cmp N-strne-3.O $srcdir/N-strne-3.X > /dev/null 2>&1
- case $? in
- 0) if test "$VERBOSE"; then $echo "passed N-strne-3"; fi;;
- 1) $echo "Test N-strne-3 failed: files N-strne-3.O and $srcdir/N-strne-3.X differ" 1>&2
- (diff -c N-strne-3.O $srcdir/N-strne-3.X) 2> /dev/null
- errors=`expr $errors + 1`;;
- 2) $echo "Test N-strne-3 may have failed." 1>&2
- $echo The command "cmp N-strne-3.O $srcdir/N-strne-3.X" failed. 1>&2
- errors=`expr $errors + 1`;;
- esac
-fi
-test -s N-strne-3.E || rm -f N-strne-3.E
-$xx '(' ! != ! ')' > P-strne-3.O 2> P-strne-3.E
-code=$?
-if test $code != 1; then
- $echo "Test P-strne-3 failed: $xx return code $code differs from expected value 1" 1>&2
- errors=`expr $errors + 1`
-else
- cmp P-strne-3.O $srcdir/P-strne-3.X > /dev/null 2>&1
- case $? in
- 0) if test "$VERBOSE"; then $echo "passed P-strne-3"; fi;;
- 1) $echo "Test P-strne-3 failed: files P-strne-3.O and $srcdir/P-strne-3.X differ" 1>&2
- (diff -c P-strne-3.O $srcdir/P-strne-3.X) 2> /dev/null
- errors=`expr $errors + 1`;;
- 2) $echo "Test P-strne-3 may have failed." 1>&2
- $echo The command "cmp P-strne-3.O $srcdir/P-strne-3.X" failed. 1>&2
- errors=`expr $errors + 1`;;
- esac
-fi
-test -s P-strne-3.E || rm -f P-strne-3.E
-$xx ! '(' ! != ! ')' > NP-strne-3.O 2> NP-strne-3.E
-code=$?
-if test $code != 0; then
- $echo "Test NP-strne-3 failed: $xx return code $code differs from expected value 0" 1>&2
- errors=`expr $errors + 1`
-else
- cmp NP-strne-3.O $srcdir/NP-strne-3.X > /dev/null 2>&1
- case $? in
- 0) if test "$VERBOSE"; then $echo "passed NP-strne-3"; fi;;
- 1) $echo "Test NP-strne-3 failed: files NP-strne-3.O and $srcdir/NP-strne-3.X differ" 1>&2
- (diff -c NP-strne-3.O $srcdir/NP-strne-3.X) 2> /dev/null
- errors=`expr $errors + 1`;;
- 2) $echo "Test NP-strne-3 may have failed." 1>&2
- $echo The command "cmp NP-strne-3.O $srcdir/NP-strne-3.X" failed. 1>&2
- errors=`expr $errors + 1`;;
- esac
-fi
-test -s NP-strne-3.E || rm -f NP-strne-3.E
-$xx ! ! '(' ! != ! ')' > NNP-strne-3.O 2> NNP-strne-3.E
-code=$?
-if test $code != 1; then
- $echo "Test NNP-strne-3 failed: $xx return code $code differs from expected value 1" 1>&2
- errors=`expr $errors + 1`
-else
- cmp NNP-strne-3.O $srcdir/NNP-strne-3.X > /dev/null 2>&1
- case $? in
- 0) if test "$VERBOSE"; then $echo "passed NNP-strne-3"; fi;;
- 1) $echo "Test NNP-strne-3 failed: files NNP-strne-3.O and $srcdir/NNP-strne-3.X differ" 1>&2
- (diff -c NNP-strne-3.O $srcdir/NNP-strne-3.X) 2> /dev/null
- errors=`expr $errors + 1`;;
- 2) $echo "Test NNP-strne-3 may have failed." 1>&2
- $echo The command "cmp NNP-strne-3.O $srcdir/NNP-strne-3.X" failed. 1>&2
- errors=`expr $errors + 1`;;
- esac
-fi
-test -s NNP-strne-3.E || rm -f NNP-strne-3.E
-$xx ! = != = > N-strne-4.O 2> N-strne-4.E
-code=$?
-if test $code != 0; then
- $echo "Test N-strne-4 failed: $xx return code $code differs from expected value 0" 1>&2
- errors=`expr $errors + 1`
-else
- cmp N-strne-4.O $srcdir/N-strne-4.X > /dev/null 2>&1
- case $? in
- 0) if test "$VERBOSE"; then $echo "passed N-strne-4"; fi;;
- 1) $echo "Test N-strne-4 failed: files N-strne-4.O and $srcdir/N-strne-4.X differ" 1>&2
- (diff -c N-strne-4.O $srcdir/N-strne-4.X) 2> /dev/null
- errors=`expr $errors + 1`;;
- 2) $echo "Test N-strne-4 may have failed." 1>&2
- $echo The command "cmp N-strne-4.O $srcdir/N-strne-4.X" failed. 1>&2
- errors=`expr $errors + 1`;;
- esac
-fi
-test -s N-strne-4.E || rm -f N-strne-4.E
-$xx '(' = != = ')' > P-strne-4.O 2> P-strne-4.E
-code=$?
-if test $code != 1; then
- $echo "Test P-strne-4 failed: $xx return code $code differs from expected value 1" 1>&2
- errors=`expr $errors + 1`
-else
- cmp P-strne-4.O $srcdir/P-strne-4.X > /dev/null 2>&1
- case $? in
- 0) if test "$VERBOSE"; then $echo "passed P-strne-4"; fi;;
- 1) $echo "Test P-strne-4 failed: files P-strne-4.O and $srcdir/P-strne-4.X differ" 1>&2
- (diff -c P-strne-4.O $srcdir/P-strne-4.X) 2> /dev/null
- errors=`expr $errors + 1`;;
- 2) $echo "Test P-strne-4 may have failed." 1>&2
- $echo The command "cmp P-strne-4.O $srcdir/P-strne-4.X" failed. 1>&2
- errors=`expr $errors + 1`;;
- esac
-fi
-test -s P-strne-4.E || rm -f P-strne-4.E
-$xx ! '(' = != = ')' > NP-strne-4.O 2> NP-strne-4.E
-code=$?
-if test $code != 0; then
- $echo "Test NP-strne-4 failed: $xx return code $code differs from expected value 0" 1>&2
- errors=`expr $errors + 1`
-else
- cmp NP-strne-4.O $srcdir/NP-strne-4.X > /dev/null 2>&1
- case $? in
- 0) if test "$VERBOSE"; then $echo "passed NP-strne-4"; fi;;
- 1) $echo "Test NP-strne-4 failed: files NP-strne-4.O and $srcdir/NP-strne-4.X differ" 1>&2
- (diff -c NP-strne-4.O $srcdir/NP-strne-4.X) 2> /dev/null
- errors=`expr $errors + 1`;;
- 2) $echo "Test NP-strne-4 may have failed." 1>&2
- $echo The command "cmp NP-strne-4.O $srcdir/NP-strne-4.X" failed. 1>&2
- errors=`expr $errors + 1`;;
- esac
-fi
-test -s NP-strne-4.E || rm -f NP-strne-4.E
-$xx ! ! '(' = != = ')' > NNP-strne-4.O 2> NNP-strne-4.E
-code=$?
-if test $code != 1; then
- $echo "Test NNP-strne-4 failed: $xx return code $code differs from expected value 1" 1>&2
- errors=`expr $errors + 1`
-else
- cmp NNP-strne-4.O $srcdir/NNP-strne-4.X > /dev/null 2>&1
- case $? in
- 0) if test "$VERBOSE"; then $echo "passed NNP-strne-4"; fi;;
- 1) $echo "Test NNP-strne-4 failed: files NNP-strne-4.O and $srcdir/NNP-strne-4.X differ" 1>&2
- (diff -c NNP-strne-4.O $srcdir/NNP-strne-4.X) 2> /dev/null
- errors=`expr $errors + 1`;;
- 2) $echo "Test NNP-strne-4 may have failed." 1>&2
- $echo The command "cmp NNP-strne-4.O $srcdir/NNP-strne-4.X" failed. 1>&2
- errors=`expr $errors + 1`;;
- esac
-fi
-test -s NNP-strne-4.E || rm -f NNP-strne-4.E
-$xx ! '(' != '(' > N-strne-5.O 2> N-strne-5.E
-code=$?
-if test $code != 0; then
- $echo "Test N-strne-5 failed: $xx return code $code differs from expected value 0" 1>&2
- errors=`expr $errors + 1`
-else
- cmp N-strne-5.O $srcdir/N-strne-5.X > /dev/null 2>&1
- case $? in
- 0) if test "$VERBOSE"; then $echo "passed N-strne-5"; fi;;
- 1) $echo "Test N-strne-5 failed: files N-strne-5.O and $srcdir/N-strne-5.X differ" 1>&2
- (diff -c N-strne-5.O $srcdir/N-strne-5.X) 2> /dev/null
- errors=`expr $errors + 1`;;
- 2) $echo "Test N-strne-5 may have failed." 1>&2
- $echo The command "cmp N-strne-5.O $srcdir/N-strne-5.X" failed. 1>&2
- errors=`expr $errors + 1`;;
- esac
-fi
-test -s N-strne-5.E || rm -f N-strne-5.E
-$xx '(' '(' != '(' ')' > P-strne-5.O 2> P-strne-5.E
-code=$?
-if test $code != 1; then
- $echo "Test P-strne-5 failed: $xx return code $code differs from expected value 1" 1>&2
- errors=`expr $errors + 1`
-else
- cmp P-strne-5.O $srcdir/P-strne-5.X > /dev/null 2>&1
- case $? in
- 0) if test "$VERBOSE"; then $echo "passed P-strne-5"; fi;;
- 1) $echo "Test P-strne-5 failed: files P-strne-5.O and $srcdir/P-strne-5.X differ" 1>&2
- (diff -c P-strne-5.O $srcdir/P-strne-5.X) 2> /dev/null
- errors=`expr $errors + 1`;;
- 2) $echo "Test P-strne-5 may have failed." 1>&2
- $echo The command "cmp P-strne-5.O $srcdir/P-strne-5.X" failed. 1>&2
- errors=`expr $errors + 1`;;
- esac
-fi
-test -s P-strne-5.E || rm -f P-strne-5.E
-$xx ! '(' '(' != '(' ')' > NP-strne-5.O 2> NP-strne-5.E
-code=$?
-if test $code != 0; then
- $echo "Test NP-strne-5 failed: $xx return code $code differs from expected value 0" 1>&2
- errors=`expr $errors + 1`
-else
- cmp NP-strne-5.O $srcdir/NP-strne-5.X > /dev/null 2>&1
- case $? in
- 0) if test "$VERBOSE"; then $echo "passed NP-strne-5"; fi;;
- 1) $echo "Test NP-strne-5 failed: files NP-strne-5.O and $srcdir/NP-strne-5.X differ" 1>&2
- (diff -c NP-strne-5.O $srcdir/NP-strne-5.X) 2> /dev/null
- errors=`expr $errors + 1`;;
- 2) $echo "Test NP-strne-5 may have failed." 1>&2
- $echo The command "cmp NP-strne-5.O $srcdir/NP-strne-5.X" failed. 1>&2
- errors=`expr $errors + 1`;;
- esac
-fi
-test -s NP-strne-5.E || rm -f NP-strne-5.E
-$xx ! ! '(' '(' != '(' ')' > NNP-strne-5.O 2> NNP-strne-5.E
-code=$?
-if test $code != 1; then
- $echo "Test NNP-strne-5 failed: $xx return code $code differs from expected value 1" 1>&2
- errors=`expr $errors + 1`
-else
- cmp NNP-strne-5.O $srcdir/NNP-strne-5.X > /dev/null 2>&1
- case $? in
- 0) if test "$VERBOSE"; then $echo "passed NNP-strne-5"; fi;;
- 1) $echo "Test NNP-strne-5 failed: files NNP-strne-5.O and $srcdir/NNP-strne-5.X differ" 1>&2
- (diff -c NNP-strne-5.O $srcdir/NNP-strne-5.X) 2> /dev/null
- errors=`expr $errors + 1`;;
- 2) $echo "Test NNP-strne-5 may have failed." 1>&2
- $echo The command "cmp NNP-strne-5.O $srcdir/NNP-strne-5.X" failed. 1>&2
- errors=`expr $errors + 1`;;
- esac
-fi
-test -s NNP-strne-5.E || rm -f NNP-strne-5.E
-$xx ! '(' != ')' > N-strne-6.O 2> N-strne-6.E
-code=$?
-if test $code != 1; then
- $echo "Test N-strne-6 failed: $xx return code $code differs from expected value 1" 1>&2
- errors=`expr $errors + 1`
-else
- cmp N-strne-6.O $srcdir/N-strne-6.X > /dev/null 2>&1
- case $? in
- 0) if test "$VERBOSE"; then $echo "passed N-strne-6"; fi;;
- 1) $echo "Test N-strne-6 failed: files N-strne-6.O and $srcdir/N-strne-6.X differ" 1>&2
- (diff -c N-strne-6.O $srcdir/N-strne-6.X) 2> /dev/null
- errors=`expr $errors + 1`;;
- 2) $echo "Test N-strne-6 may have failed." 1>&2
- $echo The command "cmp N-strne-6.O $srcdir/N-strne-6.X" failed. 1>&2
- errors=`expr $errors + 1`;;
- esac
-fi
-test -s N-strne-6.E || rm -f N-strne-6.E
-$xx ! t -a t > N-and-1.O 2> N-and-1.E
-code=$?
-if test $code != 1; then
- $echo "Test N-and-1 failed: $xx return code $code differs from expected value 1" 1>&2
- errors=`expr $errors + 1`
-else
- cmp N-and-1.O $srcdir/N-and-1.X > /dev/null 2>&1
- case $? in
- 0) if test "$VERBOSE"; then $echo "passed N-and-1"; fi;;
- 1) $echo "Test N-and-1 failed: files N-and-1.O and $srcdir/N-and-1.X differ" 1>&2
- (diff -c N-and-1.O $srcdir/N-and-1.X) 2> /dev/null
- errors=`expr $errors + 1`;;
- 2) $echo "Test N-and-1 may have failed." 1>&2
- $echo The command "cmp N-and-1.O $srcdir/N-and-1.X" failed. 1>&2
- errors=`expr $errors + 1`;;
- esac
-fi
-test -s N-and-1.E || rm -f N-and-1.E
-$xx '(' t -a t ')' > P-and-1.O 2> P-and-1.E
-code=$?
-if test $code != 0; then
- $echo "Test P-and-1 failed: $xx return code $code differs from expected value 0" 1>&2
- errors=`expr $errors + 1`
-else
- cmp P-and-1.O $srcdir/P-and-1.X > /dev/null 2>&1
- case $? in
- 0) if test "$VERBOSE"; then $echo "passed P-and-1"; fi;;
- 1) $echo "Test P-and-1 failed: files P-and-1.O and $srcdir/P-and-1.X differ" 1>&2
- (diff -c P-and-1.O $srcdir/P-and-1.X) 2> /dev/null
- errors=`expr $errors + 1`;;
- 2) $echo "Test P-and-1 may have failed." 1>&2
- $echo The command "cmp P-and-1.O $srcdir/P-and-1.X" failed. 1>&2
- errors=`expr $errors + 1`;;
- esac
-fi
-test -s P-and-1.E || rm -f P-and-1.E
-$xx ! '(' t -a t ')' > NP-and-1.O 2> NP-and-1.E
-code=$?
-if test $code != 1; then
- $echo "Test NP-and-1 failed: $xx return code $code differs from expected value 1" 1>&2
- errors=`expr $errors + 1`
-else
- cmp NP-and-1.O $srcdir/NP-and-1.X > /dev/null 2>&1
- case $? in
- 0) if test "$VERBOSE"; then $echo "passed NP-and-1"; fi;;
- 1) $echo "Test NP-and-1 failed: files NP-and-1.O and $srcdir/NP-and-1.X differ" 1>&2
- (diff -c NP-and-1.O $srcdir/NP-and-1.X) 2> /dev/null
- errors=`expr $errors + 1`;;
- 2) $echo "Test NP-and-1 may have failed." 1>&2
- $echo The command "cmp NP-and-1.O $srcdir/NP-and-1.X" failed. 1>&2
- errors=`expr $errors + 1`;;
- esac
-fi
-test -s NP-and-1.E || rm -f NP-and-1.E
-$xx ! ! '(' t -a t ')' > NNP-and-1.O 2> NNP-and-1.E
-code=$?
-if test $code != 0; then
- $echo "Test NNP-and-1 failed: $xx return code $code differs from expected value 0" 1>&2
- errors=`expr $errors + 1`
-else
- cmp NNP-and-1.O $srcdir/NNP-and-1.X > /dev/null 2>&1
- case $? in
- 0) if test "$VERBOSE"; then $echo "passed NNP-and-1"; fi;;
- 1) $echo "Test NNP-and-1 failed: files NNP-and-1.O and $srcdir/NNP-and-1.X differ" 1>&2
- (diff -c NNP-and-1.O $srcdir/NNP-and-1.X) 2> /dev/null
- errors=`expr $errors + 1`;;
- 2) $echo "Test NNP-and-1 may have failed." 1>&2
- $echo The command "cmp NNP-and-1.O $srcdir/NNP-and-1.X" failed. 1>&2
- errors=`expr $errors + 1`;;
- esac
-fi
-test -s NNP-and-1.E || rm -f NNP-and-1.E
-$xx ! '' -a t > N-and-2.O 2> N-and-2.E
-code=$?
-if test $code != 0; then
- $echo "Test N-and-2 failed: $xx return code $code differs from expected value 0" 1>&2
- errors=`expr $errors + 1`
-else
- cmp N-and-2.O $srcdir/N-and-2.X > /dev/null 2>&1
- case $? in
- 0) if test "$VERBOSE"; then $echo "passed N-and-2"; fi;;
- 1) $echo "Test N-and-2 failed: files N-and-2.O and $srcdir/N-and-2.X differ" 1>&2
- (diff -c N-and-2.O $srcdir/N-and-2.X) 2> /dev/null
- errors=`expr $errors + 1`;;
- 2) $echo "Test N-and-2 may have failed." 1>&2
- $echo The command "cmp N-and-2.O $srcdir/N-and-2.X" failed. 1>&2
- errors=`expr $errors + 1`;;
- esac
-fi
-test -s N-and-2.E || rm -f N-and-2.E
-$xx '(' '' -a t ')' > P-and-2.O 2> P-and-2.E
-code=$?
-if test $code != 1; then
- $echo "Test P-and-2 failed: $xx return code $code differs from expected value 1" 1>&2
- errors=`expr $errors + 1`
-else
- cmp P-and-2.O $srcdir/P-and-2.X > /dev/null 2>&1
- case $? in
- 0) if test "$VERBOSE"; then $echo "passed P-and-2"; fi;;
- 1) $echo "Test P-and-2 failed: files P-and-2.O and $srcdir/P-and-2.X differ" 1>&2
- (diff -c P-and-2.O $srcdir/P-and-2.X) 2> /dev/null
- errors=`expr $errors + 1`;;
- 2) $echo "Test P-and-2 may have failed." 1>&2
- $echo The command "cmp P-and-2.O $srcdir/P-and-2.X" failed. 1>&2
- errors=`expr $errors + 1`;;
- esac
-fi
-test -s P-and-2.E || rm -f P-and-2.E
-$xx ! '(' '' -a t ')' > NP-and-2.O 2> NP-and-2.E
-code=$?
-if test $code != 0; then
- $echo "Test NP-and-2 failed: $xx return code $code differs from expected value 0" 1>&2
- errors=`expr $errors + 1`
-else
- cmp NP-and-2.O $srcdir/NP-and-2.X > /dev/null 2>&1
- case $? in
- 0) if test "$VERBOSE"; then $echo "passed NP-and-2"; fi;;
- 1) $echo "Test NP-and-2 failed: files NP-and-2.O and $srcdir/NP-and-2.X differ" 1>&2
- (diff -c NP-and-2.O $srcdir/NP-and-2.X) 2> /dev/null
- errors=`expr $errors + 1`;;
- 2) $echo "Test NP-and-2 may have failed." 1>&2
- $echo The command "cmp NP-and-2.O $srcdir/NP-and-2.X" failed. 1>&2
- errors=`expr $errors + 1`;;
- esac
-fi
-test -s NP-and-2.E || rm -f NP-and-2.E
-$xx ! ! '(' '' -a t ')' > NNP-and-2.O 2> NNP-and-2.E
-code=$?
-if test $code != 1; then
- $echo "Test NNP-and-2 failed: $xx return code $code differs from expected value 1" 1>&2
- errors=`expr $errors + 1`
-else
- cmp NNP-and-2.O $srcdir/NNP-and-2.X > /dev/null 2>&1
- case $? in
- 0) if test "$VERBOSE"; then $echo "passed NNP-and-2"; fi;;
- 1) $echo "Test NNP-and-2 failed: files NNP-and-2.O and $srcdir/NNP-and-2.X differ" 1>&2
- (diff -c NNP-and-2.O $srcdir/NNP-and-2.X) 2> /dev/null
- errors=`expr $errors + 1`;;
- 2) $echo "Test NNP-and-2 may have failed." 1>&2
- $echo The command "cmp NNP-and-2.O $srcdir/NNP-and-2.X" failed. 1>&2
- errors=`expr $errors + 1`;;
- esac
-fi
-test -s NNP-and-2.E || rm -f NNP-and-2.E
-$xx ! t -a '' > N-and-3.O 2> N-and-3.E
-code=$?
-if test $code != 0; then
- $echo "Test N-and-3 failed: $xx return code $code differs from expected value 0" 1>&2
- errors=`expr $errors + 1`
-else
- cmp N-and-3.O $srcdir/N-and-3.X > /dev/null 2>&1
- case $? in
- 0) if test "$VERBOSE"; then $echo "passed N-and-3"; fi;;
- 1) $echo "Test N-and-3 failed: files N-and-3.O and $srcdir/N-and-3.X differ" 1>&2
- (diff -c N-and-3.O $srcdir/N-and-3.X) 2> /dev/null
- errors=`expr $errors + 1`;;
- 2) $echo "Test N-and-3 may have failed." 1>&2
- $echo The command "cmp N-and-3.O $srcdir/N-and-3.X" failed. 1>&2
- errors=`expr $errors + 1`;;
- esac
-fi
-test -s N-and-3.E || rm -f N-and-3.E
-$xx '(' t -a '' ')' > P-and-3.O 2> P-and-3.E
-code=$?
-if test $code != 1; then
- $echo "Test P-and-3 failed: $xx return code $code differs from expected value 1" 1>&2
- errors=`expr $errors + 1`
-else
- cmp P-and-3.O $srcdir/P-and-3.X > /dev/null 2>&1
- case $? in
- 0) if test "$VERBOSE"; then $echo "passed P-and-3"; fi;;
- 1) $echo "Test P-and-3 failed: files P-and-3.O and $srcdir/P-and-3.X differ" 1>&2
- (diff -c P-and-3.O $srcdir/P-and-3.X) 2> /dev/null
- errors=`expr $errors + 1`;;
- 2) $echo "Test P-and-3 may have failed." 1>&2
- $echo The command "cmp P-and-3.O $srcdir/P-and-3.X" failed. 1>&2
- errors=`expr $errors + 1`;;
- esac
-fi
-test -s P-and-3.E || rm -f P-and-3.E
-$xx ! '(' t -a '' ')' > NP-and-3.O 2> NP-and-3.E
-code=$?
-if test $code != 0; then
- $echo "Test NP-and-3 failed: $xx return code $code differs from expected value 0" 1>&2
- errors=`expr $errors + 1`
-else
- cmp NP-and-3.O $srcdir/NP-and-3.X > /dev/null 2>&1
- case $? in
- 0) if test "$VERBOSE"; then $echo "passed NP-and-3"; fi;;
- 1) $echo "Test NP-and-3 failed: files NP-and-3.O and $srcdir/NP-and-3.X differ" 1>&2
- (diff -c NP-and-3.O $srcdir/NP-and-3.X) 2> /dev/null
- errors=`expr $errors + 1`;;
- 2) $echo "Test NP-and-3 may have failed." 1>&2
- $echo The command "cmp NP-and-3.O $srcdir/NP-and-3.X" failed. 1>&2
- errors=`expr $errors + 1`;;
- esac
-fi
-test -s NP-and-3.E || rm -f NP-and-3.E
-$xx ! ! '(' t -a '' ')' > NNP-and-3.O 2> NNP-and-3.E
-code=$?
-if test $code != 1; then
- $echo "Test NNP-and-3 failed: $xx return code $code differs from expected value 1" 1>&2
- errors=`expr $errors + 1`
-else
- cmp NNP-and-3.O $srcdir/NNP-and-3.X > /dev/null 2>&1
- case $? in
- 0) if test "$VERBOSE"; then $echo "passed NNP-and-3"; fi;;
- 1) $echo "Test NNP-and-3 failed: files NNP-and-3.O and $srcdir/NNP-and-3.X differ" 1>&2
- (diff -c NNP-and-3.O $srcdir/NNP-and-3.X) 2> /dev/null
- errors=`expr $errors + 1`;;
- 2) $echo "Test NNP-and-3 may have failed." 1>&2
- $echo The command "cmp NNP-and-3.O $srcdir/NNP-and-3.X" failed. 1>&2
- errors=`expr $errors + 1`;;
- esac
-fi
-test -s NNP-and-3.E || rm -f NNP-and-3.E
-$xx ! '' -a '' > N-and-4.O 2> N-and-4.E
-code=$?
-if test $code != 0; then
- $echo "Test N-and-4 failed: $xx return code $code differs from expected value 0" 1>&2
- errors=`expr $errors + 1`
-else
- cmp N-and-4.O $srcdir/N-and-4.X > /dev/null 2>&1
- case $? in
- 0) if test "$VERBOSE"; then $echo "passed N-and-4"; fi;;
- 1) $echo "Test N-and-4 failed: files N-and-4.O and $srcdir/N-and-4.X differ" 1>&2
- (diff -c N-and-4.O $srcdir/N-and-4.X) 2> /dev/null
- errors=`expr $errors + 1`;;
- 2) $echo "Test N-and-4 may have failed." 1>&2
- $echo The command "cmp N-and-4.O $srcdir/N-and-4.X" failed. 1>&2
- errors=`expr $errors + 1`;;
- esac
-fi
-test -s N-and-4.E || rm -f N-and-4.E
-$xx '(' '' -a '' ')' > P-and-4.O 2> P-and-4.E
-code=$?
-if test $code != 1; then
- $echo "Test P-and-4 failed: $xx return code $code differs from expected value 1" 1>&2
- errors=`expr $errors + 1`
-else
- cmp P-and-4.O $srcdir/P-and-4.X > /dev/null 2>&1
- case $? in
- 0) if test "$VERBOSE"; then $echo "passed P-and-4"; fi;;
- 1) $echo "Test P-and-4 failed: files P-and-4.O and $srcdir/P-and-4.X differ" 1>&2
- (diff -c P-and-4.O $srcdir/P-and-4.X) 2> /dev/null
- errors=`expr $errors + 1`;;
- 2) $echo "Test P-and-4 may have failed." 1>&2
- $echo The command "cmp P-and-4.O $srcdir/P-and-4.X" failed. 1>&2
- errors=`expr $errors + 1`;;
- esac
-fi
-test -s P-and-4.E || rm -f P-and-4.E
-$xx ! '(' '' -a '' ')' > NP-and-4.O 2> NP-and-4.E
-code=$?
-if test $code != 0; then
- $echo "Test NP-and-4 failed: $xx return code $code differs from expected value 0" 1>&2
- errors=`expr $errors + 1`
-else
- cmp NP-and-4.O $srcdir/NP-and-4.X > /dev/null 2>&1
- case $? in
- 0) if test "$VERBOSE"; then $echo "passed NP-and-4"; fi;;
- 1) $echo "Test NP-and-4 failed: files NP-and-4.O and $srcdir/NP-and-4.X differ" 1>&2
- (diff -c NP-and-4.O $srcdir/NP-and-4.X) 2> /dev/null
- errors=`expr $errors + 1`;;
- 2) $echo "Test NP-and-4 may have failed." 1>&2
- $echo The command "cmp NP-and-4.O $srcdir/NP-and-4.X" failed. 1>&2
- errors=`expr $errors + 1`;;
- esac
-fi
-test -s NP-and-4.E || rm -f NP-and-4.E
-$xx ! ! '(' '' -a '' ')' > NNP-and-4.O 2> NNP-and-4.E
-code=$?
-if test $code != 1; then
- $echo "Test NNP-and-4 failed: $xx return code $code differs from expected value 1" 1>&2
- errors=`expr $errors + 1`
-else
- cmp NNP-and-4.O $srcdir/NNP-and-4.X > /dev/null 2>&1
- case $? in
- 0) if test "$VERBOSE"; then $echo "passed NNP-and-4"; fi;;
- 1) $echo "Test NNP-and-4 failed: files NNP-and-4.O and $srcdir/NNP-and-4.X differ" 1>&2
- (diff -c NNP-and-4.O $srcdir/NNP-and-4.X) 2> /dev/null
- errors=`expr $errors + 1`;;
- 2) $echo "Test NNP-and-4 may have failed." 1>&2
- $echo The command "cmp NNP-and-4.O $srcdir/NNP-and-4.X" failed. 1>&2
- errors=`expr $errors + 1`;;
- esac
-fi
-test -s NNP-and-4.E || rm -f NNP-and-4.E
-$xx ! t -o t > N-or-1.O 2> N-or-1.E
-code=$?
-if test $code != 1; then
- $echo "Test N-or-1 failed: $xx return code $code differs from expected value 1" 1>&2
- errors=`expr $errors + 1`
-else
- cmp N-or-1.O $srcdir/N-or-1.X > /dev/null 2>&1
- case $? in
- 0) if test "$VERBOSE"; then $echo "passed N-or-1"; fi;;
- 1) $echo "Test N-or-1 failed: files N-or-1.O and $srcdir/N-or-1.X differ" 1>&2
- (diff -c N-or-1.O $srcdir/N-or-1.X) 2> /dev/null
- errors=`expr $errors + 1`;;
- 2) $echo "Test N-or-1 may have failed." 1>&2
- $echo The command "cmp N-or-1.O $srcdir/N-or-1.X" failed. 1>&2
- errors=`expr $errors + 1`;;
- esac
-fi
-test -s N-or-1.E || rm -f N-or-1.E
-$xx '(' t -o t ')' > P-or-1.O 2> P-or-1.E
-code=$?
-if test $code != 0; then
- $echo "Test P-or-1 failed: $xx return code $code differs from expected value 0" 1>&2
- errors=`expr $errors + 1`
-else
- cmp P-or-1.O $srcdir/P-or-1.X > /dev/null 2>&1
- case $? in
- 0) if test "$VERBOSE"; then $echo "passed P-or-1"; fi;;
- 1) $echo "Test P-or-1 failed: files P-or-1.O and $srcdir/P-or-1.X differ" 1>&2
- (diff -c P-or-1.O $srcdir/P-or-1.X) 2> /dev/null
- errors=`expr $errors + 1`;;
- 2) $echo "Test P-or-1 may have failed." 1>&2
- $echo The command "cmp P-or-1.O $srcdir/P-or-1.X" failed. 1>&2
- errors=`expr $errors + 1`;;
- esac
-fi
-test -s P-or-1.E || rm -f P-or-1.E
-$xx ! '(' t -o t ')' > NP-or-1.O 2> NP-or-1.E
-code=$?
-if test $code != 1; then
- $echo "Test NP-or-1 failed: $xx return code $code differs from expected value 1" 1>&2
- errors=`expr $errors + 1`
-else
- cmp NP-or-1.O $srcdir/NP-or-1.X > /dev/null 2>&1
- case $? in
- 0) if test "$VERBOSE"; then $echo "passed NP-or-1"; fi;;
- 1) $echo "Test NP-or-1 failed: files NP-or-1.O and $srcdir/NP-or-1.X differ" 1>&2
- (diff -c NP-or-1.O $srcdir/NP-or-1.X) 2> /dev/null
- errors=`expr $errors + 1`;;
- 2) $echo "Test NP-or-1 may have failed." 1>&2
- $echo The command "cmp NP-or-1.O $srcdir/NP-or-1.X" failed. 1>&2
- errors=`expr $errors + 1`;;
- esac
-fi
-test -s NP-or-1.E || rm -f NP-or-1.E
-$xx ! ! '(' t -o t ')' > NNP-or-1.O 2> NNP-or-1.E
-code=$?
-if test $code != 0; then
- $echo "Test NNP-or-1 failed: $xx return code $code differs from expected value 0" 1>&2
- errors=`expr $errors + 1`
-else
- cmp NNP-or-1.O $srcdir/NNP-or-1.X > /dev/null 2>&1
- case $? in
- 0) if test "$VERBOSE"; then $echo "passed NNP-or-1"; fi;;
- 1) $echo "Test NNP-or-1 failed: files NNP-or-1.O and $srcdir/NNP-or-1.X differ" 1>&2
- (diff -c NNP-or-1.O $srcdir/NNP-or-1.X) 2> /dev/null
- errors=`expr $errors + 1`;;
- 2) $echo "Test NNP-or-1 may have failed." 1>&2
- $echo The command "cmp NNP-or-1.O $srcdir/NNP-or-1.X" failed. 1>&2
- errors=`expr $errors + 1`;;
- esac
-fi
-test -s NNP-or-1.E || rm -f NNP-or-1.E
-$xx ! '' -o t > N-or-2.O 2> N-or-2.E
-code=$?
-if test $code != 1; then
- $echo "Test N-or-2 failed: $xx return code $code differs from expected value 1" 1>&2
- errors=`expr $errors + 1`
-else
- cmp N-or-2.O $srcdir/N-or-2.X > /dev/null 2>&1
- case $? in
- 0) if test "$VERBOSE"; then $echo "passed N-or-2"; fi;;
- 1) $echo "Test N-or-2 failed: files N-or-2.O and $srcdir/N-or-2.X differ" 1>&2
- (diff -c N-or-2.O $srcdir/N-or-2.X) 2> /dev/null
- errors=`expr $errors + 1`;;
- 2) $echo "Test N-or-2 may have failed." 1>&2
- $echo The command "cmp N-or-2.O $srcdir/N-or-2.X" failed. 1>&2
- errors=`expr $errors + 1`;;
- esac
-fi
-test -s N-or-2.E || rm -f N-or-2.E
-$xx '(' '' -o t ')' > P-or-2.O 2> P-or-2.E
-code=$?
-if test $code != 0; then
- $echo "Test P-or-2 failed: $xx return code $code differs from expected value 0" 1>&2
- errors=`expr $errors + 1`
-else
- cmp P-or-2.O $srcdir/P-or-2.X > /dev/null 2>&1
- case $? in
- 0) if test "$VERBOSE"; then $echo "passed P-or-2"; fi;;
- 1) $echo "Test P-or-2 failed: files P-or-2.O and $srcdir/P-or-2.X differ" 1>&2
- (diff -c P-or-2.O $srcdir/P-or-2.X) 2> /dev/null
- errors=`expr $errors + 1`;;
- 2) $echo "Test P-or-2 may have failed." 1>&2
- $echo The command "cmp P-or-2.O $srcdir/P-or-2.X" failed. 1>&2
- errors=`expr $errors + 1`;;
- esac
-fi
-test -s P-or-2.E || rm -f P-or-2.E
-$xx ! '(' '' -o t ')' > NP-or-2.O 2> NP-or-2.E
-code=$?
-if test $code != 1; then
- $echo "Test NP-or-2 failed: $xx return code $code differs from expected value 1" 1>&2
- errors=`expr $errors + 1`
-else
- cmp NP-or-2.O $srcdir/NP-or-2.X > /dev/null 2>&1
- case $? in
- 0) if test "$VERBOSE"; then $echo "passed NP-or-2"; fi;;
- 1) $echo "Test NP-or-2 failed: files NP-or-2.O and $srcdir/NP-or-2.X differ" 1>&2
- (diff -c NP-or-2.O $srcdir/NP-or-2.X) 2> /dev/null
- errors=`expr $errors + 1`;;
- 2) $echo "Test NP-or-2 may have failed." 1>&2
- $echo The command "cmp NP-or-2.O $srcdir/NP-or-2.X" failed. 1>&2
- errors=`expr $errors + 1`;;
- esac
-fi
-test -s NP-or-2.E || rm -f NP-or-2.E
-$xx ! ! '(' '' -o t ')' > NNP-or-2.O 2> NNP-or-2.E
-code=$?
-if test $code != 0; then
- $echo "Test NNP-or-2 failed: $xx return code $code differs from expected value 0" 1>&2
- errors=`expr $errors + 1`
-else
- cmp NNP-or-2.O $srcdir/NNP-or-2.X > /dev/null 2>&1
- case $? in
- 0) if test "$VERBOSE"; then $echo "passed NNP-or-2"; fi;;
- 1) $echo "Test NNP-or-2 failed: files NNP-or-2.O and $srcdir/NNP-or-2.X differ" 1>&2
- (diff -c NNP-or-2.O $srcdir/NNP-or-2.X) 2> /dev/null
- errors=`expr $errors + 1`;;
- 2) $echo "Test NNP-or-2 may have failed." 1>&2
- $echo The command "cmp NNP-or-2.O $srcdir/NNP-or-2.X" failed. 1>&2
- errors=`expr $errors + 1`;;
- esac
-fi
-test -s NNP-or-2.E || rm -f NNP-or-2.E
-$xx ! t -o '' > N-or-3.O 2> N-or-3.E
-code=$?
-if test $code != 1; then
- $echo "Test N-or-3 failed: $xx return code $code differs from expected value 1" 1>&2
- errors=`expr $errors + 1`
-else
- cmp N-or-3.O $srcdir/N-or-3.X > /dev/null 2>&1
- case $? in
- 0) if test "$VERBOSE"; then $echo "passed N-or-3"; fi;;
- 1) $echo "Test N-or-3 failed: files N-or-3.O and $srcdir/N-or-3.X differ" 1>&2
- (diff -c N-or-3.O $srcdir/N-or-3.X) 2> /dev/null
- errors=`expr $errors + 1`;;
- 2) $echo "Test N-or-3 may have failed." 1>&2
- $echo The command "cmp N-or-3.O $srcdir/N-or-3.X" failed. 1>&2
- errors=`expr $errors + 1`;;
- esac
-fi
-test -s N-or-3.E || rm -f N-or-3.E
-$xx '(' t -o '' ')' > P-or-3.O 2> P-or-3.E
-code=$?
-if test $code != 0; then
- $echo "Test P-or-3 failed: $xx return code $code differs from expected value 0" 1>&2
- errors=`expr $errors + 1`
-else
- cmp P-or-3.O $srcdir/P-or-3.X > /dev/null 2>&1
- case $? in
- 0) if test "$VERBOSE"; then $echo "passed P-or-3"; fi;;
- 1) $echo "Test P-or-3 failed: files P-or-3.O and $srcdir/P-or-3.X differ" 1>&2
- (diff -c P-or-3.O $srcdir/P-or-3.X) 2> /dev/null
- errors=`expr $errors + 1`;;
- 2) $echo "Test P-or-3 may have failed." 1>&2
- $echo The command "cmp P-or-3.O $srcdir/P-or-3.X" failed. 1>&2
- errors=`expr $errors + 1`;;
- esac
-fi
-test -s P-or-3.E || rm -f P-or-3.E
-$xx ! '(' t -o '' ')' > NP-or-3.O 2> NP-or-3.E
-code=$?
-if test $code != 1; then
- $echo "Test NP-or-3 failed: $xx return code $code differs from expected value 1" 1>&2
- errors=`expr $errors + 1`
-else
- cmp NP-or-3.O $srcdir/NP-or-3.X > /dev/null 2>&1
- case $? in
- 0) if test "$VERBOSE"; then $echo "passed NP-or-3"; fi;;
- 1) $echo "Test NP-or-3 failed: files NP-or-3.O and $srcdir/NP-or-3.X differ" 1>&2
- (diff -c NP-or-3.O $srcdir/NP-or-3.X) 2> /dev/null
- errors=`expr $errors + 1`;;
- 2) $echo "Test NP-or-3 may have failed." 1>&2
- $echo The command "cmp NP-or-3.O $srcdir/NP-or-3.X" failed. 1>&2
- errors=`expr $errors + 1`;;
- esac
-fi
-test -s NP-or-3.E || rm -f NP-or-3.E
-$xx ! ! '(' t -o '' ')' > NNP-or-3.O 2> NNP-or-3.E
-code=$?
-if test $code != 0; then
- $echo "Test NNP-or-3 failed: $xx return code $code differs from expected value 0" 1>&2
- errors=`expr $errors + 1`
-else
- cmp NNP-or-3.O $srcdir/NNP-or-3.X > /dev/null 2>&1
- case $? in
- 0) if test "$VERBOSE"; then $echo "passed NNP-or-3"; fi;;
- 1) $echo "Test NNP-or-3 failed: files NNP-or-3.O and $srcdir/NNP-or-3.X differ" 1>&2
- (diff -c NNP-or-3.O $srcdir/NNP-or-3.X) 2> /dev/null
- errors=`expr $errors + 1`;;
- 2) $echo "Test NNP-or-3 may have failed." 1>&2
- $echo The command "cmp NNP-or-3.O $srcdir/NNP-or-3.X" failed. 1>&2
- errors=`expr $errors + 1`;;
- esac
-fi
-test -s NNP-or-3.E || rm -f NNP-or-3.E
-$xx ! '' -o '' > N-or-4.O 2> N-or-4.E
-code=$?
-if test $code != 0; then
- $echo "Test N-or-4 failed: $xx return code $code differs from expected value 0" 1>&2
- errors=`expr $errors + 1`
-else
- cmp N-or-4.O $srcdir/N-or-4.X > /dev/null 2>&1
- case $? in
- 0) if test "$VERBOSE"; then $echo "passed N-or-4"; fi;;
- 1) $echo "Test N-or-4 failed: files N-or-4.O and $srcdir/N-or-4.X differ" 1>&2
- (diff -c N-or-4.O $srcdir/N-or-4.X) 2> /dev/null
- errors=`expr $errors + 1`;;
- 2) $echo "Test N-or-4 may have failed." 1>&2
- $echo The command "cmp N-or-4.O $srcdir/N-or-4.X" failed. 1>&2
- errors=`expr $errors + 1`;;
- esac
-fi
-test -s N-or-4.E || rm -f N-or-4.E
-$xx '(' '' -o '' ')' > P-or-4.O 2> P-or-4.E
-code=$?
-if test $code != 1; then
- $echo "Test P-or-4 failed: $xx return code $code differs from expected value 1" 1>&2
- errors=`expr $errors + 1`
-else
- cmp P-or-4.O $srcdir/P-or-4.X > /dev/null 2>&1
- case $? in
- 0) if test "$VERBOSE"; then $echo "passed P-or-4"; fi;;
- 1) $echo "Test P-or-4 failed: files P-or-4.O and $srcdir/P-or-4.X differ" 1>&2
- (diff -c P-or-4.O $srcdir/P-or-4.X) 2> /dev/null
- errors=`expr $errors + 1`;;
- 2) $echo "Test P-or-4 may have failed." 1>&2
- $echo The command "cmp P-or-4.O $srcdir/P-or-4.X" failed. 1>&2
- errors=`expr $errors + 1`;;
- esac
-fi
-test -s P-or-4.E || rm -f P-or-4.E
-$xx ! '(' '' -o '' ')' > NP-or-4.O 2> NP-or-4.E
-code=$?
-if test $code != 0; then
- $echo "Test NP-or-4 failed: $xx return code $code differs from expected value 0" 1>&2
- errors=`expr $errors + 1`
-else
- cmp NP-or-4.O $srcdir/NP-or-4.X > /dev/null 2>&1
- case $? in
- 0) if test "$VERBOSE"; then $echo "passed NP-or-4"; fi;;
- 1) $echo "Test NP-or-4 failed: files NP-or-4.O and $srcdir/NP-or-4.X differ" 1>&2
- (diff -c NP-or-4.O $srcdir/NP-or-4.X) 2> /dev/null
- errors=`expr $errors + 1`;;
- 2) $echo "Test NP-or-4 may have failed." 1>&2
- $echo The command "cmp NP-or-4.O $srcdir/NP-or-4.X" failed. 1>&2
- errors=`expr $errors + 1`;;
- esac
-fi
-test -s NP-or-4.E || rm -f NP-or-4.E
-$xx ! ! '(' '' -o '' ')' > NNP-or-4.O 2> NNP-or-4.E
-code=$?
-if test $code != 1; then
- $echo "Test NNP-or-4 failed: $xx return code $code differs from expected value 1" 1>&2
- errors=`expr $errors + 1`
-else
- cmp NNP-or-4.O $srcdir/NNP-or-4.X > /dev/null 2>&1
- case $? in
- 0) if test "$VERBOSE"; then $echo "passed NNP-or-4"; fi;;
- 1) $echo "Test NNP-or-4 failed: files NNP-or-4.O and $srcdir/NNP-or-4.X differ" 1>&2
- (diff -c NNP-or-4.O $srcdir/NNP-or-4.X) 2> /dev/null
- errors=`expr $errors + 1`;;
- 2) $echo "Test NNP-or-4 may have failed." 1>&2
- $echo The command "cmp NNP-or-4.O $srcdir/NNP-or-4.X" failed. 1>&2
- errors=`expr $errors + 1`;;
- esac
-fi
-test -s NNP-or-4.E || rm -f NNP-or-4.E
-$xx ! 9 -eq 9 > N-eq-1.O 2> N-eq-1.E
-code=$?
-if test $code != 1; then
- $echo "Test N-eq-1 failed: $xx return code $code differs from expected value 1" 1>&2
- errors=`expr $errors + 1`
-else
- cmp N-eq-1.O $srcdir/N-eq-1.X > /dev/null 2>&1
- case $? in
- 0) if test "$VERBOSE"; then $echo "passed N-eq-1"; fi;;
- 1) $echo "Test N-eq-1 failed: files N-eq-1.O and $srcdir/N-eq-1.X differ" 1>&2
- (diff -c N-eq-1.O $srcdir/N-eq-1.X) 2> /dev/null
- errors=`expr $errors + 1`;;
- 2) $echo "Test N-eq-1 may have failed." 1>&2
- $echo The command "cmp N-eq-1.O $srcdir/N-eq-1.X" failed. 1>&2
- errors=`expr $errors + 1`;;
- esac
-fi
-test -s N-eq-1.E || rm -f N-eq-1.E
-$xx '(' 9 -eq 9 ')' > P-eq-1.O 2> P-eq-1.E
-code=$?
-if test $code != 0; then
- $echo "Test P-eq-1 failed: $xx return code $code differs from expected value 0" 1>&2
- errors=`expr $errors + 1`
-else
- cmp P-eq-1.O $srcdir/P-eq-1.X > /dev/null 2>&1
- case $? in
- 0) if test "$VERBOSE"; then $echo "passed P-eq-1"; fi;;
- 1) $echo "Test P-eq-1 failed: files P-eq-1.O and $srcdir/P-eq-1.X differ" 1>&2
- (diff -c P-eq-1.O $srcdir/P-eq-1.X) 2> /dev/null
- errors=`expr $errors + 1`;;
- 2) $echo "Test P-eq-1 may have failed." 1>&2
- $echo The command "cmp P-eq-1.O $srcdir/P-eq-1.X" failed. 1>&2
- errors=`expr $errors + 1`;;
- esac
-fi
-test -s P-eq-1.E || rm -f P-eq-1.E
-$xx ! '(' 9 -eq 9 ')' > NP-eq-1.O 2> NP-eq-1.E
-code=$?
-if test $code != 1; then
- $echo "Test NP-eq-1 failed: $xx return code $code differs from expected value 1" 1>&2
- errors=`expr $errors + 1`
-else
- cmp NP-eq-1.O $srcdir/NP-eq-1.X > /dev/null 2>&1
- case $? in
- 0) if test "$VERBOSE"; then $echo "passed NP-eq-1"; fi;;
- 1) $echo "Test NP-eq-1 failed: files NP-eq-1.O and $srcdir/NP-eq-1.X differ" 1>&2
- (diff -c NP-eq-1.O $srcdir/NP-eq-1.X) 2> /dev/null
- errors=`expr $errors + 1`;;
- 2) $echo "Test NP-eq-1 may have failed." 1>&2
- $echo The command "cmp NP-eq-1.O $srcdir/NP-eq-1.X" failed. 1>&2
- errors=`expr $errors + 1`;;
- esac
-fi
-test -s NP-eq-1.E || rm -f NP-eq-1.E
-$xx ! ! '(' 9 -eq 9 ')' > NNP-eq-1.O 2> NNP-eq-1.E
-code=$?
-if test $code != 0; then
- $echo "Test NNP-eq-1 failed: $xx return code $code differs from expected value 0" 1>&2
- errors=`expr $errors + 1`
-else
- cmp NNP-eq-1.O $srcdir/NNP-eq-1.X > /dev/null 2>&1
- case $? in
- 0) if test "$VERBOSE"; then $echo "passed NNP-eq-1"; fi;;
- 1) $echo "Test NNP-eq-1 failed: files NNP-eq-1.O and $srcdir/NNP-eq-1.X differ" 1>&2
- (diff -c NNP-eq-1.O $srcdir/NNP-eq-1.X) 2> /dev/null
- errors=`expr $errors + 1`;;
- 2) $echo "Test NNP-eq-1 may have failed." 1>&2
- $echo The command "cmp NNP-eq-1.O $srcdir/NNP-eq-1.X" failed. 1>&2
- errors=`expr $errors + 1`;;
- esac
-fi
-test -s NNP-eq-1.E || rm -f NNP-eq-1.E
-$xx ! 0 -eq 0 > N-eq-2.O 2> N-eq-2.E
-code=$?
-if test $code != 1; then
- $echo "Test N-eq-2 failed: $xx return code $code differs from expected value 1" 1>&2
- errors=`expr $errors + 1`
-else
- cmp N-eq-2.O $srcdir/N-eq-2.X > /dev/null 2>&1
- case $? in
- 0) if test "$VERBOSE"; then $echo "passed N-eq-2"; fi;;
- 1) $echo "Test N-eq-2 failed: files N-eq-2.O and $srcdir/N-eq-2.X differ" 1>&2
- (diff -c N-eq-2.O $srcdir/N-eq-2.X) 2> /dev/null
- errors=`expr $errors + 1`;;
- 2) $echo "Test N-eq-2 may have failed." 1>&2
- $echo The command "cmp N-eq-2.O $srcdir/N-eq-2.X" failed. 1>&2
- errors=`expr $errors + 1`;;
- esac
-fi
-test -s N-eq-2.E || rm -f N-eq-2.E
-$xx '(' 0 -eq 0 ')' > P-eq-2.O 2> P-eq-2.E
-code=$?
-if test $code != 0; then
- $echo "Test P-eq-2 failed: $xx return code $code differs from expected value 0" 1>&2
- errors=`expr $errors + 1`
-else
- cmp P-eq-2.O $srcdir/P-eq-2.X > /dev/null 2>&1
- case $? in
- 0) if test "$VERBOSE"; then $echo "passed P-eq-2"; fi;;
- 1) $echo "Test P-eq-2 failed: files P-eq-2.O and $srcdir/P-eq-2.X differ" 1>&2
- (diff -c P-eq-2.O $srcdir/P-eq-2.X) 2> /dev/null
- errors=`expr $errors + 1`;;
- 2) $echo "Test P-eq-2 may have failed." 1>&2
- $echo The command "cmp P-eq-2.O $srcdir/P-eq-2.X" failed. 1>&2
- errors=`expr $errors + 1`;;
- esac
-fi
-test -s P-eq-2.E || rm -f P-eq-2.E
-$xx ! '(' 0 -eq 0 ')' > NP-eq-2.O 2> NP-eq-2.E
-code=$?
-if test $code != 1; then
- $echo "Test NP-eq-2 failed: $xx return code $code differs from expected value 1" 1>&2
- errors=`expr $errors + 1`
-else
- cmp NP-eq-2.O $srcdir/NP-eq-2.X > /dev/null 2>&1
- case $? in
- 0) if test "$VERBOSE"; then $echo "passed NP-eq-2"; fi;;
- 1) $echo "Test NP-eq-2 failed: files NP-eq-2.O and $srcdir/NP-eq-2.X differ" 1>&2
- (diff -c NP-eq-2.O $srcdir/NP-eq-2.X) 2> /dev/null
- errors=`expr $errors + 1`;;
- 2) $echo "Test NP-eq-2 may have failed." 1>&2
- $echo The command "cmp NP-eq-2.O $srcdir/NP-eq-2.X" failed. 1>&2
- errors=`expr $errors + 1`;;
- esac
-fi
-test -s NP-eq-2.E || rm -f NP-eq-2.E
-$xx ! ! '(' 0 -eq 0 ')' > NNP-eq-2.O 2> NNP-eq-2.E
-code=$?
-if test $code != 0; then
- $echo "Test NNP-eq-2 failed: $xx return code $code differs from expected value 0" 1>&2
- errors=`expr $errors + 1`
-else
- cmp NNP-eq-2.O $srcdir/NNP-eq-2.X > /dev/null 2>&1
- case $? in
- 0) if test "$VERBOSE"; then $echo "passed NNP-eq-2"; fi;;
- 1) $echo "Test NNP-eq-2 failed: files NNP-eq-2.O and $srcdir/NNP-eq-2.X differ" 1>&2
- (diff -c NNP-eq-2.O $srcdir/NNP-eq-2.X) 2> /dev/null
- errors=`expr $errors + 1`;;
- 2) $echo "Test NNP-eq-2 may have failed." 1>&2
- $echo The command "cmp NNP-eq-2.O $srcdir/NNP-eq-2.X" failed. 1>&2
- errors=`expr $errors + 1`;;
- esac
-fi
-test -s NNP-eq-2.E || rm -f NNP-eq-2.E
-$xx ! 0 -eq 00 > N-eq-3.O 2> N-eq-3.E
-code=$?
-if test $code != 1; then
- $echo "Test N-eq-3 failed: $xx return code $code differs from expected value 1" 1>&2
- errors=`expr $errors + 1`
-else
- cmp N-eq-3.O $srcdir/N-eq-3.X > /dev/null 2>&1
- case $? in
- 0) if test "$VERBOSE"; then $echo "passed N-eq-3"; fi;;
- 1) $echo "Test N-eq-3 failed: files N-eq-3.O and $srcdir/N-eq-3.X differ" 1>&2
- (diff -c N-eq-3.O $srcdir/N-eq-3.X) 2> /dev/null
- errors=`expr $errors + 1`;;
- 2) $echo "Test N-eq-3 may have failed." 1>&2
- $echo The command "cmp N-eq-3.O $srcdir/N-eq-3.X" failed. 1>&2
- errors=`expr $errors + 1`;;
- esac
-fi
-test -s N-eq-3.E || rm -f N-eq-3.E
-$xx '(' 0 -eq 00 ')' > P-eq-3.O 2> P-eq-3.E
-code=$?
-if test $code != 0; then
- $echo "Test P-eq-3 failed: $xx return code $code differs from expected value 0" 1>&2
- errors=`expr $errors + 1`
-else
- cmp P-eq-3.O $srcdir/P-eq-3.X > /dev/null 2>&1
- case $? in
- 0) if test "$VERBOSE"; then $echo "passed P-eq-3"; fi;;
- 1) $echo "Test P-eq-3 failed: files P-eq-3.O and $srcdir/P-eq-3.X differ" 1>&2
- (diff -c P-eq-3.O $srcdir/P-eq-3.X) 2> /dev/null
- errors=`expr $errors + 1`;;
- 2) $echo "Test P-eq-3 may have failed." 1>&2
- $echo The command "cmp P-eq-3.O $srcdir/P-eq-3.X" failed. 1>&2
- errors=`expr $errors + 1`;;
- esac
-fi
-test -s P-eq-3.E || rm -f P-eq-3.E
-$xx ! '(' 0 -eq 00 ')' > NP-eq-3.O 2> NP-eq-3.E
-code=$?
-if test $code != 1; then
- $echo "Test NP-eq-3 failed: $xx return code $code differs from expected value 1" 1>&2
- errors=`expr $errors + 1`
-else
- cmp NP-eq-3.O $srcdir/NP-eq-3.X > /dev/null 2>&1
- case $? in
- 0) if test "$VERBOSE"; then $echo "passed NP-eq-3"; fi;;
- 1) $echo "Test NP-eq-3 failed: files NP-eq-3.O and $srcdir/NP-eq-3.X differ" 1>&2
- (diff -c NP-eq-3.O $srcdir/NP-eq-3.X) 2> /dev/null
- errors=`expr $errors + 1`;;
- 2) $echo "Test NP-eq-3 may have failed." 1>&2
- $echo The command "cmp NP-eq-3.O $srcdir/NP-eq-3.X" failed. 1>&2
- errors=`expr $errors + 1`;;
- esac
-fi
-test -s NP-eq-3.E || rm -f NP-eq-3.E
-$xx ! ! '(' 0 -eq 00 ')' > NNP-eq-3.O 2> NNP-eq-3.E
-code=$?
-if test $code != 0; then
- $echo "Test NNP-eq-3 failed: $xx return code $code differs from expected value 0" 1>&2
- errors=`expr $errors + 1`
-else
- cmp NNP-eq-3.O $srcdir/NNP-eq-3.X > /dev/null 2>&1
- case $? in
- 0) if test "$VERBOSE"; then $echo "passed NNP-eq-3"; fi;;
- 1) $echo "Test NNP-eq-3 failed: files NNP-eq-3.O and $srcdir/NNP-eq-3.X differ" 1>&2
- (diff -c NNP-eq-3.O $srcdir/NNP-eq-3.X) 2> /dev/null
- errors=`expr $errors + 1`;;
- 2) $echo "Test NNP-eq-3 may have failed." 1>&2
- $echo The command "cmp NNP-eq-3.O $srcdir/NNP-eq-3.X" failed. 1>&2
- errors=`expr $errors + 1`;;
- esac
-fi
-test -s NNP-eq-3.E || rm -f NNP-eq-3.E
-$xx ! 8 -eq 9 > N-eq-4.O 2> N-eq-4.E
-code=$?
-if test $code != 0; then
- $echo "Test N-eq-4 failed: $xx return code $code differs from expected value 0" 1>&2
- errors=`expr $errors + 1`
-else
- cmp N-eq-4.O $srcdir/N-eq-4.X > /dev/null 2>&1
- case $? in
- 0) if test "$VERBOSE"; then $echo "passed N-eq-4"; fi;;
- 1) $echo "Test N-eq-4 failed: files N-eq-4.O and $srcdir/N-eq-4.X differ" 1>&2
- (diff -c N-eq-4.O $srcdir/N-eq-4.X) 2> /dev/null
- errors=`expr $errors + 1`;;
- 2) $echo "Test N-eq-4 may have failed." 1>&2
- $echo The command "cmp N-eq-4.O $srcdir/N-eq-4.X" failed. 1>&2
- errors=`expr $errors + 1`;;
- esac
-fi
-test -s N-eq-4.E || rm -f N-eq-4.E
-$xx '(' 8 -eq 9 ')' > P-eq-4.O 2> P-eq-4.E
-code=$?
-if test $code != 1; then
- $echo "Test P-eq-4 failed: $xx return code $code differs from expected value 1" 1>&2
- errors=`expr $errors + 1`
-else
- cmp P-eq-4.O $srcdir/P-eq-4.X > /dev/null 2>&1
- case $? in
- 0) if test "$VERBOSE"; then $echo "passed P-eq-4"; fi;;
- 1) $echo "Test P-eq-4 failed: files P-eq-4.O and $srcdir/P-eq-4.X differ" 1>&2
- (diff -c P-eq-4.O $srcdir/P-eq-4.X) 2> /dev/null
- errors=`expr $errors + 1`;;
- 2) $echo "Test P-eq-4 may have failed." 1>&2
- $echo The command "cmp P-eq-4.O $srcdir/P-eq-4.X" failed. 1>&2
- errors=`expr $errors + 1`;;
- esac
-fi
-test -s P-eq-4.E || rm -f P-eq-4.E
-$xx ! '(' 8 -eq 9 ')' > NP-eq-4.O 2> NP-eq-4.E
-code=$?
-if test $code != 0; then
- $echo "Test NP-eq-4 failed: $xx return code $code differs from expected value 0" 1>&2
- errors=`expr $errors + 1`
-else
- cmp NP-eq-4.O $srcdir/NP-eq-4.X > /dev/null 2>&1
- case $? in
- 0) if test "$VERBOSE"; then $echo "passed NP-eq-4"; fi;;
- 1) $echo "Test NP-eq-4 failed: files NP-eq-4.O and $srcdir/NP-eq-4.X differ" 1>&2
- (diff -c NP-eq-4.O $srcdir/NP-eq-4.X) 2> /dev/null
- errors=`expr $errors + 1`;;
- 2) $echo "Test NP-eq-4 may have failed." 1>&2
- $echo The command "cmp NP-eq-4.O $srcdir/NP-eq-4.X" failed. 1>&2
- errors=`expr $errors + 1`;;
- esac
-fi
-test -s NP-eq-4.E || rm -f NP-eq-4.E
-$xx ! ! '(' 8 -eq 9 ')' > NNP-eq-4.O 2> NNP-eq-4.E
-code=$?
-if test $code != 1; then
- $echo "Test NNP-eq-4 failed: $xx return code $code differs from expected value 1" 1>&2
- errors=`expr $errors + 1`
-else
- cmp NNP-eq-4.O $srcdir/NNP-eq-4.X > /dev/null 2>&1
- case $? in
- 0) if test "$VERBOSE"; then $echo "passed NNP-eq-4"; fi;;
- 1) $echo "Test NNP-eq-4 failed: files NNP-eq-4.O and $srcdir/NNP-eq-4.X differ" 1>&2
- (diff -c NNP-eq-4.O $srcdir/NNP-eq-4.X) 2> /dev/null
- errors=`expr $errors + 1`;;
- 2) $echo "Test NNP-eq-4 may have failed." 1>&2
- $echo The command "cmp NNP-eq-4.O $srcdir/NNP-eq-4.X" failed. 1>&2
- errors=`expr $errors + 1`;;
- esac
-fi
-test -s NNP-eq-4.E || rm -f NNP-eq-4.E
-$xx ! 1 -eq 0 > N-eq-5.O 2> N-eq-5.E
-code=$?
-if test $code != 0; then
- $echo "Test N-eq-5 failed: $xx return code $code differs from expected value 0" 1>&2
- errors=`expr $errors + 1`
-else
- cmp N-eq-5.O $srcdir/N-eq-5.X > /dev/null 2>&1
- case $? in
- 0) if test "$VERBOSE"; then $echo "passed N-eq-5"; fi;;
- 1) $echo "Test N-eq-5 failed: files N-eq-5.O and $srcdir/N-eq-5.X differ" 1>&2
- (diff -c N-eq-5.O $srcdir/N-eq-5.X) 2> /dev/null
- errors=`expr $errors + 1`;;
- 2) $echo "Test N-eq-5 may have failed." 1>&2
- $echo The command "cmp N-eq-5.O $srcdir/N-eq-5.X" failed. 1>&2
- errors=`expr $errors + 1`;;
- esac
-fi
-test -s N-eq-5.E || rm -f N-eq-5.E
-$xx '(' 1 -eq 0 ')' > P-eq-5.O 2> P-eq-5.E
-code=$?
-if test $code != 1; then
- $echo "Test P-eq-5 failed: $xx return code $code differs from expected value 1" 1>&2
- errors=`expr $errors + 1`
-else
- cmp P-eq-5.O $srcdir/P-eq-5.X > /dev/null 2>&1
- case $? in
- 0) if test "$VERBOSE"; then $echo "passed P-eq-5"; fi;;
- 1) $echo "Test P-eq-5 failed: files P-eq-5.O and $srcdir/P-eq-5.X differ" 1>&2
- (diff -c P-eq-5.O $srcdir/P-eq-5.X) 2> /dev/null
- errors=`expr $errors + 1`;;
- 2) $echo "Test P-eq-5 may have failed." 1>&2
- $echo The command "cmp P-eq-5.O $srcdir/P-eq-5.X" failed. 1>&2
- errors=`expr $errors + 1`;;
- esac
-fi
-test -s P-eq-5.E || rm -f P-eq-5.E
-$xx ! '(' 1 -eq 0 ')' > NP-eq-5.O 2> NP-eq-5.E
-code=$?
-if test $code != 0; then
- $echo "Test NP-eq-5 failed: $xx return code $code differs from expected value 0" 1>&2
- errors=`expr $errors + 1`
-else
- cmp NP-eq-5.O $srcdir/NP-eq-5.X > /dev/null 2>&1
- case $? in
- 0) if test "$VERBOSE"; then $echo "passed NP-eq-5"; fi;;
- 1) $echo "Test NP-eq-5 failed: files NP-eq-5.O and $srcdir/NP-eq-5.X differ" 1>&2
- (diff -c NP-eq-5.O $srcdir/NP-eq-5.X) 2> /dev/null
- errors=`expr $errors + 1`;;
- 2) $echo "Test NP-eq-5 may have failed." 1>&2
- $echo The command "cmp NP-eq-5.O $srcdir/NP-eq-5.X" failed. 1>&2
- errors=`expr $errors + 1`;;
- esac
-fi
-test -s NP-eq-5.E || rm -f NP-eq-5.E
-$xx ! ! '(' 1 -eq 0 ')' > NNP-eq-5.O 2> NNP-eq-5.E
-code=$?
-if test $code != 1; then
- $echo "Test NNP-eq-5 failed: $xx return code $code differs from expected value 1" 1>&2
- errors=`expr $errors + 1`
-else
- cmp NNP-eq-5.O $srcdir/NNP-eq-5.X > /dev/null 2>&1
- case $? in
- 0) if test "$VERBOSE"; then $echo "passed NNP-eq-5"; fi;;
- 1) $echo "Test NNP-eq-5 failed: files NNP-eq-5.O and $srcdir/NNP-eq-5.X differ" 1>&2
- (diff -c NNP-eq-5.O $srcdir/NNP-eq-5.X) 2> /dev/null
- errors=`expr $errors + 1`;;
- 2) $echo "Test NNP-eq-5 may have failed." 1>&2
- $echo The command "cmp NNP-eq-5.O $srcdir/NNP-eq-5.X" failed. 1>&2
- errors=`expr $errors + 1`;;
- esac
-fi
-test -s NNP-eq-5.E || rm -f NNP-eq-5.E
-$xx ! 340282366920938463463374607431768211456 -eq 0 > N-eq-6.O 2> N-eq-6.E
-code=$?
-if test $code != 0; then
- $echo "Test N-eq-6 failed: $xx return code $code differs from expected value 0" 1>&2
- errors=`expr $errors + 1`
-else
- cmp N-eq-6.O $srcdir/N-eq-6.X > /dev/null 2>&1
- case $? in
- 0) if test "$VERBOSE"; then $echo "passed N-eq-6"; fi;;
- 1) $echo "Test N-eq-6 failed: files N-eq-6.O and $srcdir/N-eq-6.X differ" 1>&2
- (diff -c N-eq-6.O $srcdir/N-eq-6.X) 2> /dev/null
- errors=`expr $errors + 1`;;
- 2) $echo "Test N-eq-6 may have failed." 1>&2
- $echo The command "cmp N-eq-6.O $srcdir/N-eq-6.X" failed. 1>&2
- errors=`expr $errors + 1`;;
- esac
-fi
-test -s N-eq-6.E || rm -f N-eq-6.E
-$xx '(' 340282366920938463463374607431768211456 -eq 0 ')' > P-eq-6.O 2> P-eq-6.E
-code=$?
-if test $code != 1; then
- $echo "Test P-eq-6 failed: $xx return code $code differs from expected value 1" 1>&2
- errors=`expr $errors + 1`
-else
- cmp P-eq-6.O $srcdir/P-eq-6.X > /dev/null 2>&1
- case $? in
- 0) if test "$VERBOSE"; then $echo "passed P-eq-6"; fi;;
- 1) $echo "Test P-eq-6 failed: files P-eq-6.O and $srcdir/P-eq-6.X differ" 1>&2
- (diff -c P-eq-6.O $srcdir/P-eq-6.X) 2> /dev/null
- errors=`expr $errors + 1`;;
- 2) $echo "Test P-eq-6 may have failed." 1>&2
- $echo The command "cmp P-eq-6.O $srcdir/P-eq-6.X" failed. 1>&2
- errors=`expr $errors + 1`;;
- esac
-fi
-test -s P-eq-6.E || rm -f P-eq-6.E
-$xx ! '(' 340282366920938463463374607431768211456 -eq 0 ')' > NP-eq-6.O 2> NP-eq-6.E
-code=$?
-if test $code != 0; then
- $echo "Test NP-eq-6 failed: $xx return code $code differs from expected value 0" 1>&2
- errors=`expr $errors + 1`
-else
- cmp NP-eq-6.O $srcdir/NP-eq-6.X > /dev/null 2>&1
- case $? in
- 0) if test "$VERBOSE"; then $echo "passed NP-eq-6"; fi;;
- 1) $echo "Test NP-eq-6 failed: files NP-eq-6.O and $srcdir/NP-eq-6.X differ" 1>&2
- (diff -c NP-eq-6.O $srcdir/NP-eq-6.X) 2> /dev/null
- errors=`expr $errors + 1`;;
- 2) $echo "Test NP-eq-6 may have failed." 1>&2
- $echo The command "cmp NP-eq-6.O $srcdir/NP-eq-6.X" failed. 1>&2
- errors=`expr $errors + 1`;;
- esac
-fi
-test -s NP-eq-6.E || rm -f NP-eq-6.E
-$xx ! ! '(' 340282366920938463463374607431768211456 -eq 0 ')' > NNP-eq-6.O 2> NNP-eq-6.E
-code=$?
-if test $code != 1; then
- $echo "Test NNP-eq-6 failed: $xx return code $code differs from expected value 1" 1>&2
- errors=`expr $errors + 1`
-else
- cmp NNP-eq-6.O $srcdir/NNP-eq-6.X > /dev/null 2>&1
- case $? in
- 0) if test "$VERBOSE"; then $echo "passed NNP-eq-6"; fi;;
- 1) $echo "Test NNP-eq-6 failed: files NNP-eq-6.O and $srcdir/NNP-eq-6.X differ" 1>&2
- (diff -c NNP-eq-6.O $srcdir/NNP-eq-6.X) 2> /dev/null
- errors=`expr $errors + 1`;;
- 2) $echo "Test NNP-eq-6 may have failed." 1>&2
- $echo The command "cmp NNP-eq-6.O $srcdir/NNP-eq-6.X" failed. 1>&2
- errors=`expr $errors + 1`;;
- esac
-fi
-test -s NNP-eq-6.E || rm -f NNP-eq-6.E
-$xx ! 5 -gt 5 > N-gt-1.O 2> N-gt-1.E
-code=$?
-if test $code != 0; then
- $echo "Test N-gt-1 failed: $xx return code $code differs from expected value 0" 1>&2
- errors=`expr $errors + 1`
-else
- cmp N-gt-1.O $srcdir/N-gt-1.X > /dev/null 2>&1
- case $? in
- 0) if test "$VERBOSE"; then $echo "passed N-gt-1"; fi;;
- 1) $echo "Test N-gt-1 failed: files N-gt-1.O and $srcdir/N-gt-1.X differ" 1>&2
- (diff -c N-gt-1.O $srcdir/N-gt-1.X) 2> /dev/null
- errors=`expr $errors + 1`;;
- 2) $echo "Test N-gt-1 may have failed." 1>&2
- $echo The command "cmp N-gt-1.O $srcdir/N-gt-1.X" failed. 1>&2
- errors=`expr $errors + 1`;;
- esac
-fi
-test -s N-gt-1.E || rm -f N-gt-1.E
-$xx '(' 5 -gt 5 ')' > P-gt-1.O 2> P-gt-1.E
-code=$?
-if test $code != 1; then
- $echo "Test P-gt-1 failed: $xx return code $code differs from expected value 1" 1>&2
- errors=`expr $errors + 1`
-else
- cmp P-gt-1.O $srcdir/P-gt-1.X > /dev/null 2>&1
- case $? in
- 0) if test "$VERBOSE"; then $echo "passed P-gt-1"; fi;;
- 1) $echo "Test P-gt-1 failed: files P-gt-1.O and $srcdir/P-gt-1.X differ" 1>&2
- (diff -c P-gt-1.O $srcdir/P-gt-1.X) 2> /dev/null
- errors=`expr $errors + 1`;;
- 2) $echo "Test P-gt-1 may have failed." 1>&2
- $echo The command "cmp P-gt-1.O $srcdir/P-gt-1.X" failed. 1>&2
- errors=`expr $errors + 1`;;
- esac
-fi
-test -s P-gt-1.E || rm -f P-gt-1.E
-$xx ! '(' 5 -gt 5 ')' > NP-gt-1.O 2> NP-gt-1.E
-code=$?
-if test $code != 0; then
- $echo "Test NP-gt-1 failed: $xx return code $code differs from expected value 0" 1>&2
- errors=`expr $errors + 1`
-else
- cmp NP-gt-1.O $srcdir/NP-gt-1.X > /dev/null 2>&1
- case $? in
- 0) if test "$VERBOSE"; then $echo "passed NP-gt-1"; fi;;
- 1) $echo "Test NP-gt-1 failed: files NP-gt-1.O and $srcdir/NP-gt-1.X differ" 1>&2
- (diff -c NP-gt-1.O $srcdir/NP-gt-1.X) 2> /dev/null
- errors=`expr $errors + 1`;;
- 2) $echo "Test NP-gt-1 may have failed." 1>&2
- $echo The command "cmp NP-gt-1.O $srcdir/NP-gt-1.X" failed. 1>&2
- errors=`expr $errors + 1`;;
- esac
-fi
-test -s NP-gt-1.E || rm -f NP-gt-1.E
-$xx ! ! '(' 5 -gt 5 ')' > NNP-gt-1.O 2> NNP-gt-1.E
-code=$?
-if test $code != 1; then
- $echo "Test NNP-gt-1 failed: $xx return code $code differs from expected value 1" 1>&2
- errors=`expr $errors + 1`
-else
- cmp NNP-gt-1.O $srcdir/NNP-gt-1.X > /dev/null 2>&1
- case $? in
- 0) if test "$VERBOSE"; then $echo "passed NNP-gt-1"; fi;;
- 1) $echo "Test NNP-gt-1 failed: files NNP-gt-1.O and $srcdir/NNP-gt-1.X differ" 1>&2
- (diff -c NNP-gt-1.O $srcdir/NNP-gt-1.X) 2> /dev/null
- errors=`expr $errors + 1`;;
- 2) $echo "Test NNP-gt-1 may have failed." 1>&2
- $echo The command "cmp NNP-gt-1.O $srcdir/NNP-gt-1.X" failed. 1>&2
- errors=`expr $errors + 1`;;
- esac
-fi
-test -s NNP-gt-1.E || rm -f NNP-gt-1.E
-$xx ! 5 -gt 4 > N-gt-2.O 2> N-gt-2.E
-code=$?
-if test $code != 1; then
- $echo "Test N-gt-2 failed: $xx return code $code differs from expected value 1" 1>&2
- errors=`expr $errors + 1`
-else
- cmp N-gt-2.O $srcdir/N-gt-2.X > /dev/null 2>&1
- case $? in
- 0) if test "$VERBOSE"; then $echo "passed N-gt-2"; fi;;
- 1) $echo "Test N-gt-2 failed: files N-gt-2.O and $srcdir/N-gt-2.X differ" 1>&2
- (diff -c N-gt-2.O $srcdir/N-gt-2.X) 2> /dev/null
- errors=`expr $errors + 1`;;
- 2) $echo "Test N-gt-2 may have failed." 1>&2
- $echo The command "cmp N-gt-2.O $srcdir/N-gt-2.X" failed. 1>&2
- errors=`expr $errors + 1`;;
- esac
-fi
-test -s N-gt-2.E || rm -f N-gt-2.E
-$xx '(' 5 -gt 4 ')' > P-gt-2.O 2> P-gt-2.E
-code=$?
-if test $code != 0; then
- $echo "Test P-gt-2 failed: $xx return code $code differs from expected value 0" 1>&2
- errors=`expr $errors + 1`
-else
- cmp P-gt-2.O $srcdir/P-gt-2.X > /dev/null 2>&1
- case $? in
- 0) if test "$VERBOSE"; then $echo "passed P-gt-2"; fi;;
- 1) $echo "Test P-gt-2 failed: files P-gt-2.O and $srcdir/P-gt-2.X differ" 1>&2
- (diff -c P-gt-2.O $srcdir/P-gt-2.X) 2> /dev/null
- errors=`expr $errors + 1`;;
- 2) $echo "Test P-gt-2 may have failed." 1>&2
- $echo The command "cmp P-gt-2.O $srcdir/P-gt-2.X" failed. 1>&2
- errors=`expr $errors + 1`;;
- esac
-fi
-test -s P-gt-2.E || rm -f P-gt-2.E
-$xx ! '(' 5 -gt 4 ')' > NP-gt-2.O 2> NP-gt-2.E
-code=$?
-if test $code != 1; then
- $echo "Test NP-gt-2 failed: $xx return code $code differs from expected value 1" 1>&2
- errors=`expr $errors + 1`
-else
- cmp NP-gt-2.O $srcdir/NP-gt-2.X > /dev/null 2>&1
- case $? in
- 0) if test "$VERBOSE"; then $echo "passed NP-gt-2"; fi;;
- 1) $echo "Test NP-gt-2 failed: files NP-gt-2.O and $srcdir/NP-gt-2.X differ" 1>&2
- (diff -c NP-gt-2.O $srcdir/NP-gt-2.X) 2> /dev/null
- errors=`expr $errors + 1`;;
- 2) $echo "Test NP-gt-2 may have failed." 1>&2
- $echo The command "cmp NP-gt-2.O $srcdir/NP-gt-2.X" failed. 1>&2
- errors=`expr $errors + 1`;;
- esac
-fi
-test -s NP-gt-2.E || rm -f NP-gt-2.E
-$xx ! ! '(' 5 -gt 4 ')' > NNP-gt-2.O 2> NNP-gt-2.E
-code=$?
-if test $code != 0; then
- $echo "Test NNP-gt-2 failed: $xx return code $code differs from expected value 0" 1>&2
- errors=`expr $errors + 1`
-else
- cmp NNP-gt-2.O $srcdir/NNP-gt-2.X > /dev/null 2>&1
- case $? in
- 0) if test "$VERBOSE"; then $echo "passed NNP-gt-2"; fi;;
- 1) $echo "Test NNP-gt-2 failed: files NNP-gt-2.O and $srcdir/NNP-gt-2.X differ" 1>&2
- (diff -c NNP-gt-2.O $srcdir/NNP-gt-2.X) 2> /dev/null
- errors=`expr $errors + 1`;;
- 2) $echo "Test NNP-gt-2 may have failed." 1>&2
- $echo The command "cmp NNP-gt-2.O $srcdir/NNP-gt-2.X" failed. 1>&2
- errors=`expr $errors + 1`;;
- esac
-fi
-test -s NNP-gt-2.E || rm -f NNP-gt-2.E
-$xx ! 4 -gt 5 > N-gt-3.O 2> N-gt-3.E
-code=$?
-if test $code != 0; then
- $echo "Test N-gt-3 failed: $xx return code $code differs from expected value 0" 1>&2
- errors=`expr $errors + 1`
-else
- cmp N-gt-3.O $srcdir/N-gt-3.X > /dev/null 2>&1
- case $? in
- 0) if test "$VERBOSE"; then $echo "passed N-gt-3"; fi;;
- 1) $echo "Test N-gt-3 failed: files N-gt-3.O and $srcdir/N-gt-3.X differ" 1>&2
- (diff -c N-gt-3.O $srcdir/N-gt-3.X) 2> /dev/null
- errors=`expr $errors + 1`;;
- 2) $echo "Test N-gt-3 may have failed." 1>&2
- $echo The command "cmp N-gt-3.O $srcdir/N-gt-3.X" failed. 1>&2
- errors=`expr $errors + 1`;;
- esac
-fi
-test -s N-gt-3.E || rm -f N-gt-3.E
-$xx '(' 4 -gt 5 ')' > P-gt-3.O 2> P-gt-3.E
-code=$?
-if test $code != 1; then
- $echo "Test P-gt-3 failed: $xx return code $code differs from expected value 1" 1>&2
- errors=`expr $errors + 1`
-else
- cmp P-gt-3.O $srcdir/P-gt-3.X > /dev/null 2>&1
- case $? in
- 0) if test "$VERBOSE"; then $echo "passed P-gt-3"; fi;;
- 1) $echo "Test P-gt-3 failed: files P-gt-3.O and $srcdir/P-gt-3.X differ" 1>&2
- (diff -c P-gt-3.O $srcdir/P-gt-3.X) 2> /dev/null
- errors=`expr $errors + 1`;;
- 2) $echo "Test P-gt-3 may have failed." 1>&2
- $echo The command "cmp P-gt-3.O $srcdir/P-gt-3.X" failed. 1>&2
- errors=`expr $errors + 1`;;
- esac
-fi
-test -s P-gt-3.E || rm -f P-gt-3.E
-$xx ! '(' 4 -gt 5 ')' > NP-gt-3.O 2> NP-gt-3.E
-code=$?
-if test $code != 0; then
- $echo "Test NP-gt-3 failed: $xx return code $code differs from expected value 0" 1>&2
- errors=`expr $errors + 1`
-else
- cmp NP-gt-3.O $srcdir/NP-gt-3.X > /dev/null 2>&1
- case $? in
- 0) if test "$VERBOSE"; then $echo "passed NP-gt-3"; fi;;
- 1) $echo "Test NP-gt-3 failed: files NP-gt-3.O and $srcdir/NP-gt-3.X differ" 1>&2
- (diff -c NP-gt-3.O $srcdir/NP-gt-3.X) 2> /dev/null
- errors=`expr $errors + 1`;;
- 2) $echo "Test NP-gt-3 may have failed." 1>&2
- $echo The command "cmp NP-gt-3.O $srcdir/NP-gt-3.X" failed. 1>&2
- errors=`expr $errors + 1`;;
- esac
-fi
-test -s NP-gt-3.E || rm -f NP-gt-3.E
-$xx ! ! '(' 4 -gt 5 ')' > NNP-gt-3.O 2> NNP-gt-3.E
-code=$?
-if test $code != 1; then
- $echo "Test NNP-gt-3 failed: $xx return code $code differs from expected value 1" 1>&2
- errors=`expr $errors + 1`
-else
- cmp NNP-gt-3.O $srcdir/NNP-gt-3.X > /dev/null 2>&1
- case $? in
- 0) if test "$VERBOSE"; then $echo "passed NNP-gt-3"; fi;;
- 1) $echo "Test NNP-gt-3 failed: files NNP-gt-3.O and $srcdir/NNP-gt-3.X differ" 1>&2
- (diff -c NNP-gt-3.O $srcdir/NNP-gt-3.X) 2> /dev/null
- errors=`expr $errors + 1`;;
- 2) $echo "Test NNP-gt-3 may have failed." 1>&2
- $echo The command "cmp NNP-gt-3.O $srcdir/NNP-gt-3.X" failed. 1>&2
- errors=`expr $errors + 1`;;
- esac
-fi
-test -s NNP-gt-3.E || rm -f NNP-gt-3.E
-$xx ! -1 -gt -2 > N-gt-4.O 2> N-gt-4.E
-code=$?
-if test $code != 1; then
- $echo "Test N-gt-4 failed: $xx return code $code differs from expected value 1" 1>&2
- errors=`expr $errors + 1`
-else
- cmp N-gt-4.O $srcdir/N-gt-4.X > /dev/null 2>&1
- case $? in
- 0) if test "$VERBOSE"; then $echo "passed N-gt-4"; fi;;
- 1) $echo "Test N-gt-4 failed: files N-gt-4.O and $srcdir/N-gt-4.X differ" 1>&2
- (diff -c N-gt-4.O $srcdir/N-gt-4.X) 2> /dev/null
- errors=`expr $errors + 1`;;
- 2) $echo "Test N-gt-4 may have failed." 1>&2
- $echo The command "cmp N-gt-4.O $srcdir/N-gt-4.X" failed. 1>&2
- errors=`expr $errors + 1`;;
- esac
-fi
-test -s N-gt-4.E || rm -f N-gt-4.E
-$xx '(' -1 -gt -2 ')' > P-gt-4.O 2> P-gt-4.E
-code=$?
-if test $code != 0; then
- $echo "Test P-gt-4 failed: $xx return code $code differs from expected value 0" 1>&2
- errors=`expr $errors + 1`
-else
- cmp P-gt-4.O $srcdir/P-gt-4.X > /dev/null 2>&1
- case $? in
- 0) if test "$VERBOSE"; then $echo "passed P-gt-4"; fi;;
- 1) $echo "Test P-gt-4 failed: files P-gt-4.O and $srcdir/P-gt-4.X differ" 1>&2
- (diff -c P-gt-4.O $srcdir/P-gt-4.X) 2> /dev/null
- errors=`expr $errors + 1`;;
- 2) $echo "Test P-gt-4 may have failed." 1>&2
- $echo The command "cmp P-gt-4.O $srcdir/P-gt-4.X" failed. 1>&2
- errors=`expr $errors + 1`;;
- esac
-fi
-test -s P-gt-4.E || rm -f P-gt-4.E
-$xx ! '(' -1 -gt -2 ')' > NP-gt-4.O 2> NP-gt-4.E
-code=$?
-if test $code != 1; then
- $echo "Test NP-gt-4 failed: $xx return code $code differs from expected value 1" 1>&2
- errors=`expr $errors + 1`
-else
- cmp NP-gt-4.O $srcdir/NP-gt-4.X > /dev/null 2>&1
- case $? in
- 0) if test "$VERBOSE"; then $echo "passed NP-gt-4"; fi;;
- 1) $echo "Test NP-gt-4 failed: files NP-gt-4.O and $srcdir/NP-gt-4.X differ" 1>&2
- (diff -c NP-gt-4.O $srcdir/NP-gt-4.X) 2> /dev/null
- errors=`expr $errors + 1`;;
- 2) $echo "Test NP-gt-4 may have failed." 1>&2
- $echo The command "cmp NP-gt-4.O $srcdir/NP-gt-4.X" failed. 1>&2
- errors=`expr $errors + 1`;;
- esac
-fi
-test -s NP-gt-4.E || rm -f NP-gt-4.E
-$xx ! ! '(' -1 -gt -2 ')' > NNP-gt-4.O 2> NNP-gt-4.E
-code=$?
-if test $code != 0; then
- $echo "Test NNP-gt-4 failed: $xx return code $code differs from expected value 0" 1>&2
- errors=`expr $errors + 1`
-else
- cmp NNP-gt-4.O $srcdir/NNP-gt-4.X > /dev/null 2>&1
- case $? in
- 0) if test "$VERBOSE"; then $echo "passed NNP-gt-4"; fi;;
- 1) $echo "Test NNP-gt-4 failed: files NNP-gt-4.O and $srcdir/NNP-gt-4.X differ" 1>&2
- (diff -c NNP-gt-4.O $srcdir/NNP-gt-4.X) 2> /dev/null
- errors=`expr $errors + 1`;;
- 2) $echo "Test NNP-gt-4 may have failed." 1>&2
- $echo The command "cmp NNP-gt-4.O $srcdir/NNP-gt-4.X" failed. 1>&2
- errors=`expr $errors + 1`;;
- esac
-fi
-test -s NNP-gt-4.E || rm -f NNP-gt-4.E
-$xx ! 18446744073709551616 -gt -18446744073709551616 > N-gt-5.O 2> N-gt-5.E
-code=$?
-if test $code != 1; then
- $echo "Test N-gt-5 failed: $xx return code $code differs from expected value 1" 1>&2
- errors=`expr $errors + 1`
-else
- cmp N-gt-5.O $srcdir/N-gt-5.X > /dev/null 2>&1
- case $? in
- 0) if test "$VERBOSE"; then $echo "passed N-gt-5"; fi;;
- 1) $echo "Test N-gt-5 failed: files N-gt-5.O and $srcdir/N-gt-5.X differ" 1>&2
- (diff -c N-gt-5.O $srcdir/N-gt-5.X) 2> /dev/null
- errors=`expr $errors + 1`;;
- 2) $echo "Test N-gt-5 may have failed." 1>&2
- $echo The command "cmp N-gt-5.O $srcdir/N-gt-5.X" failed. 1>&2
- errors=`expr $errors + 1`;;
- esac
-fi
-test -s N-gt-5.E || rm -f N-gt-5.E
-$xx '(' 18446744073709551616 -gt -18446744073709551616 ')' > P-gt-5.O 2> P-gt-5.E
-code=$?
-if test $code != 0; then
- $echo "Test P-gt-5 failed: $xx return code $code differs from expected value 0" 1>&2
- errors=`expr $errors + 1`
-else
- cmp P-gt-5.O $srcdir/P-gt-5.X > /dev/null 2>&1
- case $? in
- 0) if test "$VERBOSE"; then $echo "passed P-gt-5"; fi;;
- 1) $echo "Test P-gt-5 failed: files P-gt-5.O and $srcdir/P-gt-5.X differ" 1>&2
- (diff -c P-gt-5.O $srcdir/P-gt-5.X) 2> /dev/null
- errors=`expr $errors + 1`;;
- 2) $echo "Test P-gt-5 may have failed." 1>&2
- $echo The command "cmp P-gt-5.O $srcdir/P-gt-5.X" failed. 1>&2
- errors=`expr $errors + 1`;;
- esac
-fi
-test -s P-gt-5.E || rm -f P-gt-5.E
-$xx ! '(' 18446744073709551616 -gt -18446744073709551616 ')' > NP-gt-5.O 2> NP-gt-5.E
-code=$?
-if test $code != 1; then
- $echo "Test NP-gt-5 failed: $xx return code $code differs from expected value 1" 1>&2
- errors=`expr $errors + 1`
-else
- cmp NP-gt-5.O $srcdir/NP-gt-5.X > /dev/null 2>&1
- case $? in
- 0) if test "$VERBOSE"; then $echo "passed NP-gt-5"; fi;;
- 1) $echo "Test NP-gt-5 failed: files NP-gt-5.O and $srcdir/NP-gt-5.X differ" 1>&2
- (diff -c NP-gt-5.O $srcdir/NP-gt-5.X) 2> /dev/null
- errors=`expr $errors + 1`;;
- 2) $echo "Test NP-gt-5 may have failed." 1>&2
- $echo The command "cmp NP-gt-5.O $srcdir/NP-gt-5.X" failed. 1>&2
- errors=`expr $errors + 1`;;
- esac
-fi
-test -s NP-gt-5.E || rm -f NP-gt-5.E
-$xx ! ! '(' 18446744073709551616 -gt -18446744073709551616 ')' > NNP-gt-5.O 2> NNP-gt-5.E
-code=$?
-if test $code != 0; then
- $echo "Test NNP-gt-5 failed: $xx return code $code differs from expected value 0" 1>&2
- errors=`expr $errors + 1`
-else
- cmp NNP-gt-5.O $srcdir/NNP-gt-5.X > /dev/null 2>&1
- case $? in
- 0) if test "$VERBOSE"; then $echo "passed NNP-gt-5"; fi;;
- 1) $echo "Test NNP-gt-5 failed: files NNP-gt-5.O and $srcdir/NNP-gt-5.X differ" 1>&2
- (diff -c NNP-gt-5.O $srcdir/NNP-gt-5.X) 2> /dev/null
- errors=`expr $errors + 1`;;
- 2) $echo "Test NNP-gt-5 may have failed." 1>&2
- $echo The command "cmp NNP-gt-5.O $srcdir/NNP-gt-5.X" failed. 1>&2
- errors=`expr $errors + 1`;;
- esac
-fi
-test -s NNP-gt-5.E || rm -f NNP-gt-5.E
-$xx ! 5 -lt 5 > N-lt-1.O 2> N-lt-1.E
-code=$?
-if test $code != 0; then
- $echo "Test N-lt-1 failed: $xx return code $code differs from expected value 0" 1>&2
- errors=`expr $errors + 1`
-else
- cmp N-lt-1.O $srcdir/N-lt-1.X > /dev/null 2>&1
- case $? in
- 0) if test "$VERBOSE"; then $echo "passed N-lt-1"; fi;;
- 1) $echo "Test N-lt-1 failed: files N-lt-1.O and $srcdir/N-lt-1.X differ" 1>&2
- (diff -c N-lt-1.O $srcdir/N-lt-1.X) 2> /dev/null
- errors=`expr $errors + 1`;;
- 2) $echo "Test N-lt-1 may have failed." 1>&2
- $echo The command "cmp N-lt-1.O $srcdir/N-lt-1.X" failed. 1>&2
- errors=`expr $errors + 1`;;
- esac
-fi
-test -s N-lt-1.E || rm -f N-lt-1.E
-$xx '(' 5 -lt 5 ')' > P-lt-1.O 2> P-lt-1.E
-code=$?
-if test $code != 1; then
- $echo "Test P-lt-1 failed: $xx return code $code differs from expected value 1" 1>&2
- errors=`expr $errors + 1`
-else
- cmp P-lt-1.O $srcdir/P-lt-1.X > /dev/null 2>&1
- case $? in
- 0) if test "$VERBOSE"; then $echo "passed P-lt-1"; fi;;
- 1) $echo "Test P-lt-1 failed: files P-lt-1.O and $srcdir/P-lt-1.X differ" 1>&2
- (diff -c P-lt-1.O $srcdir/P-lt-1.X) 2> /dev/null
- errors=`expr $errors + 1`;;
- 2) $echo "Test P-lt-1 may have failed." 1>&2
- $echo The command "cmp P-lt-1.O $srcdir/P-lt-1.X" failed. 1>&2
- errors=`expr $errors + 1`;;
- esac
-fi
-test -s P-lt-1.E || rm -f P-lt-1.E
-$xx ! '(' 5 -lt 5 ')' > NP-lt-1.O 2> NP-lt-1.E
-code=$?
-if test $code != 0; then
- $echo "Test NP-lt-1 failed: $xx return code $code differs from expected value 0" 1>&2
- errors=`expr $errors + 1`
-else
- cmp NP-lt-1.O $srcdir/NP-lt-1.X > /dev/null 2>&1
- case $? in
- 0) if test "$VERBOSE"; then $echo "passed NP-lt-1"; fi;;
- 1) $echo "Test NP-lt-1 failed: files NP-lt-1.O and $srcdir/NP-lt-1.X differ" 1>&2
- (diff -c NP-lt-1.O $srcdir/NP-lt-1.X) 2> /dev/null
- errors=`expr $errors + 1`;;
- 2) $echo "Test NP-lt-1 may have failed." 1>&2
- $echo The command "cmp NP-lt-1.O $srcdir/NP-lt-1.X" failed. 1>&2
- errors=`expr $errors + 1`;;
- esac
-fi
-test -s NP-lt-1.E || rm -f NP-lt-1.E
-$xx ! ! '(' 5 -lt 5 ')' > NNP-lt-1.O 2> NNP-lt-1.E
-code=$?
-if test $code != 1; then
- $echo "Test NNP-lt-1 failed: $xx return code $code differs from expected value 1" 1>&2
- errors=`expr $errors + 1`
-else
- cmp NNP-lt-1.O $srcdir/NNP-lt-1.X > /dev/null 2>&1
- case $? in
- 0) if test "$VERBOSE"; then $echo "passed NNP-lt-1"; fi;;
- 1) $echo "Test NNP-lt-1 failed: files NNP-lt-1.O and $srcdir/NNP-lt-1.X differ" 1>&2
- (diff -c NNP-lt-1.O $srcdir/NNP-lt-1.X) 2> /dev/null
- errors=`expr $errors + 1`;;
- 2) $echo "Test NNP-lt-1 may have failed." 1>&2
- $echo The command "cmp NNP-lt-1.O $srcdir/NNP-lt-1.X" failed. 1>&2
- errors=`expr $errors + 1`;;
- esac
-fi
-test -s NNP-lt-1.E || rm -f NNP-lt-1.E
-$xx ! 5 -lt 4 > N-lt-2.O 2> N-lt-2.E
-code=$?
-if test $code != 0; then
- $echo "Test N-lt-2 failed: $xx return code $code differs from expected value 0" 1>&2
- errors=`expr $errors + 1`
-else
- cmp N-lt-2.O $srcdir/N-lt-2.X > /dev/null 2>&1
- case $? in
- 0) if test "$VERBOSE"; then $echo "passed N-lt-2"; fi;;
- 1) $echo "Test N-lt-2 failed: files N-lt-2.O and $srcdir/N-lt-2.X differ" 1>&2
- (diff -c N-lt-2.O $srcdir/N-lt-2.X) 2> /dev/null
- errors=`expr $errors + 1`;;
- 2) $echo "Test N-lt-2 may have failed." 1>&2
- $echo The command "cmp N-lt-2.O $srcdir/N-lt-2.X" failed. 1>&2
- errors=`expr $errors + 1`;;
- esac
-fi
-test -s N-lt-2.E || rm -f N-lt-2.E
-$xx '(' 5 -lt 4 ')' > P-lt-2.O 2> P-lt-2.E
-code=$?
-if test $code != 1; then
- $echo "Test P-lt-2 failed: $xx return code $code differs from expected value 1" 1>&2
- errors=`expr $errors + 1`
-else
- cmp P-lt-2.O $srcdir/P-lt-2.X > /dev/null 2>&1
- case $? in
- 0) if test "$VERBOSE"; then $echo "passed P-lt-2"; fi;;
- 1) $echo "Test P-lt-2 failed: files P-lt-2.O and $srcdir/P-lt-2.X differ" 1>&2
- (diff -c P-lt-2.O $srcdir/P-lt-2.X) 2> /dev/null
- errors=`expr $errors + 1`;;
- 2) $echo "Test P-lt-2 may have failed." 1>&2
- $echo The command "cmp P-lt-2.O $srcdir/P-lt-2.X" failed. 1>&2
- errors=`expr $errors + 1`;;
- esac
-fi
-test -s P-lt-2.E || rm -f P-lt-2.E
-$xx ! '(' 5 -lt 4 ')' > NP-lt-2.O 2> NP-lt-2.E
-code=$?
-if test $code != 0; then
- $echo "Test NP-lt-2 failed: $xx return code $code differs from expected value 0" 1>&2
- errors=`expr $errors + 1`
-else
- cmp NP-lt-2.O $srcdir/NP-lt-2.X > /dev/null 2>&1
- case $? in
- 0) if test "$VERBOSE"; then $echo "passed NP-lt-2"; fi;;
- 1) $echo "Test NP-lt-2 failed: files NP-lt-2.O and $srcdir/NP-lt-2.X differ" 1>&2
- (diff -c NP-lt-2.O $srcdir/NP-lt-2.X) 2> /dev/null
- errors=`expr $errors + 1`;;
- 2) $echo "Test NP-lt-2 may have failed." 1>&2
- $echo The command "cmp NP-lt-2.O $srcdir/NP-lt-2.X" failed. 1>&2
- errors=`expr $errors + 1`;;
- esac
-fi
-test -s NP-lt-2.E || rm -f NP-lt-2.E
-$xx ! ! '(' 5 -lt 4 ')' > NNP-lt-2.O 2> NNP-lt-2.E
-code=$?
-if test $code != 1; then
- $echo "Test NNP-lt-2 failed: $xx return code $code differs from expected value 1" 1>&2
- errors=`expr $errors + 1`
-else
- cmp NNP-lt-2.O $srcdir/NNP-lt-2.X > /dev/null 2>&1
- case $? in
- 0) if test "$VERBOSE"; then $echo "passed NNP-lt-2"; fi;;
- 1) $echo "Test NNP-lt-2 failed: files NNP-lt-2.O and $srcdir/NNP-lt-2.X differ" 1>&2
- (diff -c NNP-lt-2.O $srcdir/NNP-lt-2.X) 2> /dev/null
- errors=`expr $errors + 1`;;
- 2) $echo "Test NNP-lt-2 may have failed." 1>&2
- $echo The command "cmp NNP-lt-2.O $srcdir/NNP-lt-2.X" failed. 1>&2
- errors=`expr $errors + 1`;;
- esac
-fi
-test -s NNP-lt-2.E || rm -f NNP-lt-2.E
-$xx ! 4 -lt 5 > N-lt-3.O 2> N-lt-3.E
-code=$?
-if test $code != 1; then
- $echo "Test N-lt-3 failed: $xx return code $code differs from expected value 1" 1>&2
- errors=`expr $errors + 1`
-else
- cmp N-lt-3.O $srcdir/N-lt-3.X > /dev/null 2>&1
- case $? in
- 0) if test "$VERBOSE"; then $echo "passed N-lt-3"; fi;;
- 1) $echo "Test N-lt-3 failed: files N-lt-3.O and $srcdir/N-lt-3.X differ" 1>&2
- (diff -c N-lt-3.O $srcdir/N-lt-3.X) 2> /dev/null
- errors=`expr $errors + 1`;;
- 2) $echo "Test N-lt-3 may have failed." 1>&2
- $echo The command "cmp N-lt-3.O $srcdir/N-lt-3.X" failed. 1>&2
- errors=`expr $errors + 1`;;
- esac
-fi
-test -s N-lt-3.E || rm -f N-lt-3.E
-$xx '(' 4 -lt 5 ')' > P-lt-3.O 2> P-lt-3.E
-code=$?
-if test $code != 0; then
- $echo "Test P-lt-3 failed: $xx return code $code differs from expected value 0" 1>&2
- errors=`expr $errors + 1`
-else
- cmp P-lt-3.O $srcdir/P-lt-3.X > /dev/null 2>&1
- case $? in
- 0) if test "$VERBOSE"; then $echo "passed P-lt-3"; fi;;
- 1) $echo "Test P-lt-3 failed: files P-lt-3.O and $srcdir/P-lt-3.X differ" 1>&2
- (diff -c P-lt-3.O $srcdir/P-lt-3.X) 2> /dev/null
- errors=`expr $errors + 1`;;
- 2) $echo "Test P-lt-3 may have failed." 1>&2
- $echo The command "cmp P-lt-3.O $srcdir/P-lt-3.X" failed. 1>&2
- errors=`expr $errors + 1`;;
- esac
-fi
-test -s P-lt-3.E || rm -f P-lt-3.E
-$xx ! '(' 4 -lt 5 ')' > NP-lt-3.O 2> NP-lt-3.E
-code=$?
-if test $code != 1; then
- $echo "Test NP-lt-3 failed: $xx return code $code differs from expected value 1" 1>&2
- errors=`expr $errors + 1`
-else
- cmp NP-lt-3.O $srcdir/NP-lt-3.X > /dev/null 2>&1
- case $? in
- 0) if test "$VERBOSE"; then $echo "passed NP-lt-3"; fi;;
- 1) $echo "Test NP-lt-3 failed: files NP-lt-3.O and $srcdir/NP-lt-3.X differ" 1>&2
- (diff -c NP-lt-3.O $srcdir/NP-lt-3.X) 2> /dev/null
- errors=`expr $errors + 1`;;
- 2) $echo "Test NP-lt-3 may have failed." 1>&2
- $echo The command "cmp NP-lt-3.O $srcdir/NP-lt-3.X" failed. 1>&2
- errors=`expr $errors + 1`;;
- esac
-fi
-test -s NP-lt-3.E || rm -f NP-lt-3.E
-$xx ! ! '(' 4 -lt 5 ')' > NNP-lt-3.O 2> NNP-lt-3.E
-code=$?
-if test $code != 0; then
- $echo "Test NNP-lt-3 failed: $xx return code $code differs from expected value 0" 1>&2
- errors=`expr $errors + 1`
-else
- cmp NNP-lt-3.O $srcdir/NNP-lt-3.X > /dev/null 2>&1
- case $? in
- 0) if test "$VERBOSE"; then $echo "passed NNP-lt-3"; fi;;
- 1) $echo "Test NNP-lt-3 failed: files NNP-lt-3.O and $srcdir/NNP-lt-3.X differ" 1>&2
- (diff -c NNP-lt-3.O $srcdir/NNP-lt-3.X) 2> /dev/null
- errors=`expr $errors + 1`;;
- 2) $echo "Test NNP-lt-3 may have failed." 1>&2
- $echo The command "cmp NNP-lt-3.O $srcdir/NNP-lt-3.X" failed. 1>&2
- errors=`expr $errors + 1`;;
- esac
-fi
-test -s NNP-lt-3.E || rm -f NNP-lt-3.E
-$xx ! -1 -lt -2 > N-lt-4.O 2> N-lt-4.E
-code=$?
-if test $code != 0; then
- $echo "Test N-lt-4 failed: $xx return code $code differs from expected value 0" 1>&2
- errors=`expr $errors + 1`
-else
- cmp N-lt-4.O $srcdir/N-lt-4.X > /dev/null 2>&1
- case $? in
- 0) if test "$VERBOSE"; then $echo "passed N-lt-4"; fi;;
- 1) $echo "Test N-lt-4 failed: files N-lt-4.O and $srcdir/N-lt-4.X differ" 1>&2
- (diff -c N-lt-4.O $srcdir/N-lt-4.X) 2> /dev/null
- errors=`expr $errors + 1`;;
- 2) $echo "Test N-lt-4 may have failed." 1>&2
- $echo The command "cmp N-lt-4.O $srcdir/N-lt-4.X" failed. 1>&2
- errors=`expr $errors + 1`;;
- esac
-fi
-test -s N-lt-4.E || rm -f N-lt-4.E
-$xx '(' -1 -lt -2 ')' > P-lt-4.O 2> P-lt-4.E
-code=$?
-if test $code != 1; then
- $echo "Test P-lt-4 failed: $xx return code $code differs from expected value 1" 1>&2
- errors=`expr $errors + 1`
-else
- cmp P-lt-4.O $srcdir/P-lt-4.X > /dev/null 2>&1
- case $? in
- 0) if test "$VERBOSE"; then $echo "passed P-lt-4"; fi;;
- 1) $echo "Test P-lt-4 failed: files P-lt-4.O and $srcdir/P-lt-4.X differ" 1>&2
- (diff -c P-lt-4.O $srcdir/P-lt-4.X) 2> /dev/null
- errors=`expr $errors + 1`;;
- 2) $echo "Test P-lt-4 may have failed." 1>&2
- $echo The command "cmp P-lt-4.O $srcdir/P-lt-4.X" failed. 1>&2
- errors=`expr $errors + 1`;;
- esac
-fi
-test -s P-lt-4.E || rm -f P-lt-4.E
-$xx ! '(' -1 -lt -2 ')' > NP-lt-4.O 2> NP-lt-4.E
-code=$?
-if test $code != 0; then
- $echo "Test NP-lt-4 failed: $xx return code $code differs from expected value 0" 1>&2
- errors=`expr $errors + 1`
-else
- cmp NP-lt-4.O $srcdir/NP-lt-4.X > /dev/null 2>&1
- case $? in
- 0) if test "$VERBOSE"; then $echo "passed NP-lt-4"; fi;;
- 1) $echo "Test NP-lt-4 failed: files NP-lt-4.O and $srcdir/NP-lt-4.X differ" 1>&2
- (diff -c NP-lt-4.O $srcdir/NP-lt-4.X) 2> /dev/null
- errors=`expr $errors + 1`;;
- 2) $echo "Test NP-lt-4 may have failed." 1>&2
- $echo The command "cmp NP-lt-4.O $srcdir/NP-lt-4.X" failed. 1>&2
- errors=`expr $errors + 1`;;
- esac
-fi
-test -s NP-lt-4.E || rm -f NP-lt-4.E
-$xx ! ! '(' -1 -lt -2 ')' > NNP-lt-4.O 2> NNP-lt-4.E
-code=$?
-if test $code != 1; then
- $echo "Test NNP-lt-4 failed: $xx return code $code differs from expected value 1" 1>&2
- errors=`expr $errors + 1`
-else
- cmp NNP-lt-4.O $srcdir/NNP-lt-4.X > /dev/null 2>&1
- case $? in
- 0) if test "$VERBOSE"; then $echo "passed NNP-lt-4"; fi;;
- 1) $echo "Test NNP-lt-4 failed: files NNP-lt-4.O and $srcdir/NNP-lt-4.X differ" 1>&2
- (diff -c NNP-lt-4.O $srcdir/NNP-lt-4.X) 2> /dev/null
- errors=`expr $errors + 1`;;
- 2) $echo "Test NNP-lt-4 may have failed." 1>&2
- $echo The command "cmp NNP-lt-4.O $srcdir/NNP-lt-4.X" failed. 1>&2
- errors=`expr $errors + 1`;;
- esac
-fi
-test -s NNP-lt-4.E || rm -f NNP-lt-4.E
-$xx ! -18446744073709551616 -lt 18446744073709551616 > N-lt-5.O 2> N-lt-5.E
-code=$?
-if test $code != 1; then
- $echo "Test N-lt-5 failed: $xx return code $code differs from expected value 1" 1>&2
- errors=`expr $errors + 1`
-else
- cmp N-lt-5.O $srcdir/N-lt-5.X > /dev/null 2>&1
- case $? in
- 0) if test "$VERBOSE"; then $echo "passed N-lt-5"; fi;;
- 1) $echo "Test N-lt-5 failed: files N-lt-5.O and $srcdir/N-lt-5.X differ" 1>&2
- (diff -c N-lt-5.O $srcdir/N-lt-5.X) 2> /dev/null
- errors=`expr $errors + 1`;;
- 2) $echo "Test N-lt-5 may have failed." 1>&2
- $echo The command "cmp N-lt-5.O $srcdir/N-lt-5.X" failed. 1>&2
- errors=`expr $errors + 1`;;
- esac
-fi
-test -s N-lt-5.E || rm -f N-lt-5.E
-$xx '(' -18446744073709551616 -lt 18446744073709551616 ')' > P-lt-5.O 2> P-lt-5.E
-code=$?
-if test $code != 0; then
- $echo "Test P-lt-5 failed: $xx return code $code differs from expected value 0" 1>&2
- errors=`expr $errors + 1`
-else
- cmp P-lt-5.O $srcdir/P-lt-5.X > /dev/null 2>&1
- case $? in
- 0) if test "$VERBOSE"; then $echo "passed P-lt-5"; fi;;
- 1) $echo "Test P-lt-5 failed: files P-lt-5.O and $srcdir/P-lt-5.X differ" 1>&2
- (diff -c P-lt-5.O $srcdir/P-lt-5.X) 2> /dev/null
- errors=`expr $errors + 1`;;
- 2) $echo "Test P-lt-5 may have failed." 1>&2
- $echo The command "cmp P-lt-5.O $srcdir/P-lt-5.X" failed. 1>&2
- errors=`expr $errors + 1`;;
- esac
-fi
-test -s P-lt-5.E || rm -f P-lt-5.E
-$xx ! '(' -18446744073709551616 -lt 18446744073709551616 ')' > NP-lt-5.O 2> NP-lt-5.E
-code=$?
-if test $code != 1; then
- $echo "Test NP-lt-5 failed: $xx return code $code differs from expected value 1" 1>&2
- errors=`expr $errors + 1`
-else
- cmp NP-lt-5.O $srcdir/NP-lt-5.X > /dev/null 2>&1
- case $? in
- 0) if test "$VERBOSE"; then $echo "passed NP-lt-5"; fi;;
- 1) $echo "Test NP-lt-5 failed: files NP-lt-5.O and $srcdir/NP-lt-5.X differ" 1>&2
- (diff -c NP-lt-5.O $srcdir/NP-lt-5.X) 2> /dev/null
- errors=`expr $errors + 1`;;
- 2) $echo "Test NP-lt-5 may have failed." 1>&2
- $echo The command "cmp NP-lt-5.O $srcdir/NP-lt-5.X" failed. 1>&2
- errors=`expr $errors + 1`;;
- esac
-fi
-test -s NP-lt-5.E || rm -f NP-lt-5.E
-$xx ! ! '(' -18446744073709551616 -lt 18446744073709551616 ')' > NNP-lt-5.O 2> NNP-lt-5.E
-code=$?
-if test $code != 0; then
- $echo "Test NNP-lt-5 failed: $xx return code $code differs from expected value 0" 1>&2
- errors=`expr $errors + 1`
-else
- cmp NNP-lt-5.O $srcdir/NNP-lt-5.X > /dev/null 2>&1
- case $? in
- 0) if test "$VERBOSE"; then $echo "passed NNP-lt-5"; fi;;
- 1) $echo "Test NNP-lt-5 failed: files NNP-lt-5.O and $srcdir/NNP-lt-5.X differ" 1>&2
- (diff -c NNP-lt-5.O $srcdir/NNP-lt-5.X) 2> /dev/null
- errors=`expr $errors + 1`;;
- 2) $echo "Test NNP-lt-5 may have failed." 1>&2
- $echo The command "cmp NNP-lt-5.O $srcdir/NNP-lt-5.X" failed. 1>&2
- errors=`expr $errors + 1`;;
- esac
-fi
-test -s NNP-lt-5.E || rm -f NNP-lt-5.E
-$xx ! -t > N-t1.O 2> N-t1.E
-code=$?
-if test $code != 1; then
- $echo "Test N-t1 failed: $xx return code $code differs from expected value 1" 1>&2
- errors=`expr $errors + 1`
-else
- cmp N-t1.O $srcdir/N-t1.X > /dev/null 2>&1
- case $? in
- 0) if test "$VERBOSE"; then $echo "passed N-t1"; fi;;
- 1) $echo "Test N-t1 failed: files N-t1.O and $srcdir/N-t1.X differ" 1>&2
- (diff -c N-t1.O $srcdir/N-t1.X) 2> /dev/null
- errors=`expr $errors + 1`;;
- 2) $echo "Test N-t1 may have failed." 1>&2
- $echo The command "cmp N-t1.O $srcdir/N-t1.X" failed. 1>&2
- errors=`expr $errors + 1`;;
- esac
-fi
-test -s N-t1.E || rm -f N-t1.E
-$xx '(' -t ')' > P-t1.O 2> P-t1.E
-code=$?
-if test $code != 0; then
- $echo "Test P-t1 failed: $xx return code $code differs from expected value 0" 1>&2
- errors=`expr $errors + 1`
-else
- cmp P-t1.O $srcdir/P-t1.X > /dev/null 2>&1
- case $? in
- 0) if test "$VERBOSE"; then $echo "passed P-t1"; fi;;
- 1) $echo "Test P-t1 failed: files P-t1.O and $srcdir/P-t1.X differ" 1>&2
- (diff -c P-t1.O $srcdir/P-t1.X) 2> /dev/null
- errors=`expr $errors + 1`;;
- 2) $echo "Test P-t1 may have failed." 1>&2
- $echo The command "cmp P-t1.O $srcdir/P-t1.X" failed. 1>&2
- errors=`expr $errors + 1`;;
- esac
-fi
-test -s P-t1.E || rm -f P-t1.E
-$xx ! '(' -t ')' > NP-t1.O 2> NP-t1.E
-code=$?
-if test $code != 1; then
- $echo "Test NP-t1 failed: $xx return code $code differs from expected value 1" 1>&2
- errors=`expr $errors + 1`
-else
- cmp NP-t1.O $srcdir/NP-t1.X > /dev/null 2>&1
- case $? in
- 0) if test "$VERBOSE"; then $echo "passed NP-t1"; fi;;
- 1) $echo "Test NP-t1 failed: files NP-t1.O and $srcdir/NP-t1.X differ" 1>&2
- (diff -c NP-t1.O $srcdir/NP-t1.X) 2> /dev/null
- errors=`expr $errors + 1`;;
- 2) $echo "Test NP-t1 may have failed." 1>&2
- $echo The command "cmp NP-t1.O $srcdir/NP-t1.X" failed. 1>&2
- errors=`expr $errors + 1`;;
- esac
-fi
-test -s NP-t1.E || rm -f NP-t1.E
-$xx ! ! '(' -t ')' > NNP-t1.O 2> NNP-t1.E
-code=$?
-if test $code != 0; then
- $echo "Test NNP-t1 failed: $xx return code $code differs from expected value 0" 1>&2
- errors=`expr $errors + 1`
-else
- cmp NNP-t1.O $srcdir/NNP-t1.X > /dev/null 2>&1
- case $? in
- 0) if test "$VERBOSE"; then $echo "passed NNP-t1"; fi;;
- 1) $echo "Test NNP-t1 failed: files NNP-t1.O and $srcdir/NNP-t1.X differ" 1>&2
- (diff -c NNP-t1.O $srcdir/NNP-t1.X) 2> /dev/null
- errors=`expr $errors + 1`;;
- 2) $echo "Test NNP-t1 may have failed." 1>&2
- $echo The command "cmp NNP-t1.O $srcdir/NNP-t1.X" failed. 1>&2
- errors=`expr $errors + 1`;;
- esac
-fi
-test -s NNP-t1.E || rm -f NNP-t1.E
-$xx ! -t 1 > N-t2.O 2> N-t2.E
-code=$?
-if test $code != 0; then
- $echo "Test N-t2 failed: $xx return code $code differs from expected value 0" 1>&2
- errors=`expr $errors + 1`
-else
- cmp N-t2.O $srcdir/N-t2.X > /dev/null 2>&1
- case $? in
- 0) if test "$VERBOSE"; then $echo "passed N-t2"; fi;;
- 1) $echo "Test N-t2 failed: files N-t2.O and $srcdir/N-t2.X differ" 1>&2
- (diff -c N-t2.O $srcdir/N-t2.X) 2> /dev/null
- errors=`expr $errors + 1`;;
- 2) $echo "Test N-t2 may have failed." 1>&2
- $echo The command "cmp N-t2.O $srcdir/N-t2.X" failed. 1>&2
- errors=`expr $errors + 1`;;
- esac
-fi
-test -s N-t2.E || rm -f N-t2.E
-$xx '(' -t 1 ')' > P-t2.O 2> P-t2.E
-code=$?
-if test $code != 1; then
- $echo "Test P-t2 failed: $xx return code $code differs from expected value 1" 1>&2
- errors=`expr $errors + 1`
-else
- cmp P-t2.O $srcdir/P-t2.X > /dev/null 2>&1
- case $? in
- 0) if test "$VERBOSE"; then $echo "passed P-t2"; fi;;
- 1) $echo "Test P-t2 failed: files P-t2.O and $srcdir/P-t2.X differ" 1>&2
- (diff -c P-t2.O $srcdir/P-t2.X) 2> /dev/null
- errors=`expr $errors + 1`;;
- 2) $echo "Test P-t2 may have failed." 1>&2
- $echo The command "cmp P-t2.O $srcdir/P-t2.X" failed. 1>&2
- errors=`expr $errors + 1`;;
- esac
-fi
-test -s P-t2.E || rm -f P-t2.E
-$xx ! '(' -t 1 ')' > NP-t2.O 2> NP-t2.E
-code=$?
-if test $code != 0; then
- $echo "Test NP-t2 failed: $xx return code $code differs from expected value 0" 1>&2
- errors=`expr $errors + 1`
-else
- cmp NP-t2.O $srcdir/NP-t2.X > /dev/null 2>&1
- case $? in
- 0) if test "$VERBOSE"; then $echo "passed NP-t2"; fi;;
- 1) $echo "Test NP-t2 failed: files NP-t2.O and $srcdir/NP-t2.X differ" 1>&2
- (diff -c NP-t2.O $srcdir/NP-t2.X) 2> /dev/null
- errors=`expr $errors + 1`;;
- 2) $echo "Test NP-t2 may have failed." 1>&2
- $echo The command "cmp NP-t2.O $srcdir/NP-t2.X" failed. 1>&2
- errors=`expr $errors + 1`;;
- esac
-fi
-test -s NP-t2.E || rm -f NP-t2.E
-$xx ! ! '(' -t 1 ')' > NNP-t2.O 2> NNP-t2.E
-code=$?
-if test $code != 1; then
- $echo "Test NNP-t2 failed: $xx return code $code differs from expected value 1" 1>&2
- errors=`expr $errors + 1`
-else
- cmp NNP-t2.O $srcdir/NNP-t2.X > /dev/null 2>&1
- case $? in
- 0) if test "$VERBOSE"; then $echo "passed NNP-t2"; fi;;
- 1) $echo "Test NNP-t2 failed: files NNP-t2.O and $srcdir/NNP-t2.X differ" 1>&2
- (diff -c NNP-t2.O $srcdir/NNP-t2.X) 2> /dev/null
- errors=`expr $errors + 1`;;
- 2) $echo "Test NNP-t2 may have failed." 1>&2
- $echo The command "cmp NNP-t2.O $srcdir/NNP-t2.X" failed. 1>&2
- errors=`expr $errors + 1`;;
- esac
-fi
-test -s NNP-t2.E || rm -f NNP-t2.E
-$xx ! '(' '' ')' > N-paren-1.O 2> N-paren-1.E
-code=$?
-if test $code != 0; then
- $echo "Test N-paren-1 failed: $xx return code $code differs from expected value 0" 1>&2
- errors=`expr $errors + 1`
-else
- cmp N-paren-1.O $srcdir/N-paren-1.X > /dev/null 2>&1
- case $? in
- 0) if test "$VERBOSE"; then $echo "passed N-paren-1"; fi;;
- 1) $echo "Test N-paren-1 failed: files N-paren-1.O and $srcdir/N-paren-1.X differ" 1>&2
- (diff -c N-paren-1.O $srcdir/N-paren-1.X) 2> /dev/null
- errors=`expr $errors + 1`;;
- 2) $echo "Test N-paren-1 may have failed." 1>&2
- $echo The command "cmp N-paren-1.O $srcdir/N-paren-1.X" failed. 1>&2
- errors=`expr $errors + 1`;;
- esac
-fi
-test -s N-paren-1.E || rm -f N-paren-1.E
-$xx ! '(' '(' ')' > N-paren-2.O 2> N-paren-2.E
-code=$?
-if test $code != 1; then
- $echo "Test N-paren-2 failed: $xx return code $code differs from expected value 1" 1>&2
- errors=`expr $errors + 1`
-else
- cmp N-paren-2.O $srcdir/N-paren-2.X > /dev/null 2>&1
- case $? in
- 0) if test "$VERBOSE"; then $echo "passed N-paren-2"; fi;;
- 1) $echo "Test N-paren-2 failed: files N-paren-2.O and $srcdir/N-paren-2.X differ" 1>&2
- (diff -c N-paren-2.O $srcdir/N-paren-2.X) 2> /dev/null
- errors=`expr $errors + 1`;;
- 2) $echo "Test N-paren-2 may have failed." 1>&2
- $echo The command "cmp N-paren-2.O $srcdir/N-paren-2.X" failed. 1>&2
- errors=`expr $errors + 1`;;
- esac
-fi
-test -s N-paren-2.E || rm -f N-paren-2.E
-$xx ! '(' ')' ')' > N-paren-3.O 2> N-paren-3.E
-code=$?
-if test $code != 1; then
- $echo "Test N-paren-3 failed: $xx return code $code differs from expected value 1" 1>&2
- errors=`expr $errors + 1`
-else
- cmp N-paren-3.O $srcdir/N-paren-3.X > /dev/null 2>&1
- case $? in
- 0) if test "$VERBOSE"; then $echo "passed N-paren-3"; fi;;
- 1) $echo "Test N-paren-3 failed: files N-paren-3.O and $srcdir/N-paren-3.X differ" 1>&2
- (diff -c N-paren-3.O $srcdir/N-paren-3.X) 2> /dev/null
- errors=`expr $errors + 1`;;
- 2) $echo "Test N-paren-3 may have failed." 1>&2
- $echo The command "cmp N-paren-3.O $srcdir/N-paren-3.X" failed. 1>&2
- errors=`expr $errors + 1`;;
- esac
-fi
-test -s N-paren-3.E || rm -f N-paren-3.E
-$xx ! '(' ! ')' > N-paren-4.O 2> N-paren-4.E
-code=$?
-if test $code != 1; then
- $echo "Test N-paren-4 failed: $xx return code $code differs from expected value 1" 1>&2
- errors=`expr $errors + 1`
-else
- cmp N-paren-4.O $srcdir/N-paren-4.X > /dev/null 2>&1
- case $? in
- 0) if test "$VERBOSE"; then $echo "passed N-paren-4"; fi;;
- 1) $echo "Test N-paren-4 failed: files N-paren-4.O and $srcdir/N-paren-4.X differ" 1>&2
- (diff -c N-paren-4.O $srcdir/N-paren-4.X) 2> /dev/null
- errors=`expr $errors + 1`;;
- 2) $echo "Test N-paren-4 may have failed." 1>&2
- $echo The command "cmp N-paren-4.O $srcdir/N-paren-4.X" failed. 1>&2
- errors=`expr $errors + 1`;;
- esac
-fi
-test -s N-paren-4.E || rm -f N-paren-4.E
-$xx ! '(' -a ')' > N-paren-5.O 2> N-paren-5.E
-code=$?
-if test $code != 1; then
- $echo "Test N-paren-5 failed: $xx return code $code differs from expected value 1" 1>&2
- errors=`expr $errors + 1`
-else
- cmp N-paren-5.O $srcdir/N-paren-5.X > /dev/null 2>&1
- case $? in
- 0) if test "$VERBOSE"; then $echo "passed N-paren-5"; fi;;
- 1) $echo "Test N-paren-5 failed: files N-paren-5.O and $srcdir/N-paren-5.X differ" 1>&2
- (diff -c N-paren-5.O $srcdir/N-paren-5.X) 2> /dev/null
- errors=`expr $errors + 1`;;
- 2) $echo "Test N-paren-5 may have failed." 1>&2
- $echo The command "cmp N-paren-5.O $srcdir/N-paren-5.X" failed. 1>&2
- errors=`expr $errors + 1`;;
- esac
-fi
-test -s N-paren-5.E || rm -f N-paren-5.E
-$xx > 1a.O 2> 1a.E
-code=$?
-if test $code != 1; then
- $echo "Test 1a failed: $xx return code $code differs from expected value 1" 1>&2
- errors=`expr $errors + 1`
-else
- cmp 1a.O $srcdir/1a.X > /dev/null 2>&1
- case $? in
- 0) if test "$VERBOSE"; then $echo "passed 1a"; fi;;
- 1) $echo "Test 1a failed: files 1a.O and $srcdir/1a.X differ" 1>&2
- (diff -c 1a.O $srcdir/1a.X) 2> /dev/null
- errors=`expr $errors + 1`;;
- 2) $echo "Test 1a may have failed." 1>&2
- $echo The command "cmp 1a.O $srcdir/1a.X" failed. 1>&2
- errors=`expr $errors + 1`;;
- esac
-fi
-test -s 1a.E || rm -f 1a.E
-$xx -z '' > 1b.O 2> 1b.E
-code=$?
-if test $code != 0; then
- $echo "Test 1b failed: $xx return code $code differs from expected value 0" 1>&2
- errors=`expr $errors + 1`
-else
- cmp 1b.O $srcdir/1b.X > /dev/null 2>&1
- case $? in
- 0) if test "$VERBOSE"; then $echo "passed 1b"; fi;;
- 1) $echo "Test 1b failed: files 1b.O and $srcdir/1b.X differ" 1>&2
- (diff -c 1b.O $srcdir/1b.X) 2> /dev/null
- errors=`expr $errors + 1`;;
- 2) $echo "Test 1b may have failed." 1>&2
- $echo The command "cmp 1b.O $srcdir/1b.X" failed. 1>&2
- errors=`expr $errors + 1`;;
- esac
-fi
-test -s 1b.E || rm -f 1b.E
-$xx any-string > 1c.O 2> 1c.E
-code=$?
-if test $code != 0; then
- $echo "Test 1c failed: $xx return code $code differs from expected value 0" 1>&2
- errors=`expr $errors + 1`
-else
- cmp 1c.O $srcdir/1c.X > /dev/null 2>&1
- case $? in
- 0) if test "$VERBOSE"; then $echo "passed 1c"; fi;;
- 1) $echo "Test 1c failed: files 1c.O and $srcdir/1c.X differ" 1>&2
- (diff -c 1c.O $srcdir/1c.X) 2> /dev/null
- errors=`expr $errors + 1`;;
- 2) $echo "Test 1c may have failed." 1>&2
- $echo The command "cmp 1c.O $srcdir/1c.X" failed. 1>&2
- errors=`expr $errors + 1`;;
- esac
-fi
-test -s 1c.E || rm -f 1c.E
-$xx -n any-string > 1d.O 2> 1d.E
-code=$?
-if test $code != 0; then
- $echo "Test 1d failed: $xx return code $code differs from expected value 0" 1>&2
- errors=`expr $errors + 1`
-else
- cmp 1d.O $srcdir/1d.X > /dev/null 2>&1
- case $? in
- 0) if test "$VERBOSE"; then $echo "passed 1d"; fi;;
- 1) $echo "Test 1d failed: files 1d.O and $srcdir/1d.X differ" 1>&2
- (diff -c 1d.O $srcdir/1d.X) 2> /dev/null
- errors=`expr $errors + 1`;;
- 2) $echo "Test 1d may have failed." 1>&2
- $echo The command "cmp 1d.O $srcdir/1d.X" failed. 1>&2
- errors=`expr $errors + 1`;;
- esac
-fi
-test -s 1d.E || rm -f 1d.E
-$xx '' > 1e.O 2> 1e.E
-code=$?
-if test $code != 1; then
- $echo "Test 1e failed: $xx return code $code differs from expected value 1" 1>&2
- errors=`expr $errors + 1`
-else
- cmp 1e.O $srcdir/1e.X > /dev/null 2>&1
- case $? in
- 0) if test "$VERBOSE"; then $echo "passed 1e"; fi;;
- 1) $echo "Test 1e failed: files 1e.O and $srcdir/1e.X differ" 1>&2
- (diff -c 1e.O $srcdir/1e.X) 2> /dev/null
- errors=`expr $errors + 1`;;
- 2) $echo "Test 1e may have failed." 1>&2
- $echo The command "cmp 1e.O $srcdir/1e.X" failed. 1>&2
- errors=`expr $errors + 1`;;
- esac
-fi
-test -s 1e.E || rm -f 1e.E
-$xx - > 1f.O 2> 1f.E
-code=$?
-if test $code != 0; then
- $echo "Test 1f failed: $xx return code $code differs from expected value 0" 1>&2
- errors=`expr $errors + 1`
-else
- cmp 1f.O $srcdir/1f.X > /dev/null 2>&1
- case $? in
- 0) if test "$VERBOSE"; then $echo "passed 1f"; fi;;
- 1) $echo "Test 1f failed: files 1f.O and $srcdir/1f.X differ" 1>&2
- (diff -c 1f.O $srcdir/1f.X) 2> /dev/null
- errors=`expr $errors + 1`;;
- 2) $echo "Test 1f may have failed." 1>&2
- $echo The command "cmp 1f.O $srcdir/1f.X" failed. 1>&2
- errors=`expr $errors + 1`;;
- esac
-fi
-test -s 1f.E || rm -f 1f.E
-$xx -- > 1g.O 2> 1g.E
-code=$?
-if test $code != 0; then
- $echo "Test 1g failed: $xx return code $code differs from expected value 0" 1>&2
- errors=`expr $errors + 1`
-else
- cmp 1g.O $srcdir/1g.X > /dev/null 2>&1
- case $? in
- 0) if test "$VERBOSE"; then $echo "passed 1g"; fi;;
- 1) $echo "Test 1g failed: files 1g.O and $srcdir/1g.X differ" 1>&2
- (diff -c 1g.O $srcdir/1g.X) 2> /dev/null
- errors=`expr $errors + 1`;;
- 2) $echo "Test 1g may have failed." 1>&2
- $echo The command "cmp 1g.O $srcdir/1g.X" failed. 1>&2
- errors=`expr $errors + 1`;;
- esac
-fi
-test -s 1g.E || rm -f 1g.E
-$xx -0 > 1h.O 2> 1h.E
-code=$?
-if test $code != 0; then
- $echo "Test 1h failed: $xx return code $code differs from expected value 0" 1>&2
- errors=`expr $errors + 1`
-else
- cmp 1h.O $srcdir/1h.X > /dev/null 2>&1
- case $? in
- 0) if test "$VERBOSE"; then $echo "passed 1h"; fi;;
- 1) $echo "Test 1h failed: files 1h.O and $srcdir/1h.X differ" 1>&2
- (diff -c 1h.O $srcdir/1h.X) 2> /dev/null
- errors=`expr $errors + 1`;;
- 2) $echo "Test 1h may have failed." 1>&2
- $echo The command "cmp 1h.O $srcdir/1h.X" failed. 1>&2
- errors=`expr $errors + 1`;;
- esac
-fi
-test -s 1h.E || rm -f 1h.E
-$xx -f > 1i.O 2> 1i.E
-code=$?
-if test $code != 0; then
- $echo "Test 1i failed: $xx return code $code differs from expected value 0" 1>&2
- errors=`expr $errors + 1`
-else
- cmp 1i.O $srcdir/1i.X > /dev/null 2>&1
- case $? in
- 0) if test "$VERBOSE"; then $echo "passed 1i"; fi;;
- 1) $echo "Test 1i failed: files 1i.O and $srcdir/1i.X differ" 1>&2
- (diff -c 1i.O $srcdir/1i.X) 2> /dev/null
- errors=`expr $errors + 1`;;
- 2) $echo "Test 1i may have failed." 1>&2
- $echo The command "cmp 1i.O $srcdir/1i.X" failed. 1>&2
- errors=`expr $errors + 1`;;
- esac
-fi
-test -s 1i.E || rm -f 1i.E
-$xx --help > 1j.O 2> 1j.E
-code=$?
-if test $code != 0; then
- $echo "Test 1j failed: $xx return code $code differs from expected value 0" 1>&2
- errors=`expr $errors + 1`
-else
- cmp 1j.O $srcdir/1j.X > /dev/null 2>&1
- case $? in
- 0) if test "$VERBOSE"; then $echo "passed 1j"; fi;;
- 1) $echo "Test 1j failed: files 1j.O and $srcdir/1j.X differ" 1>&2
- (diff -c 1j.O $srcdir/1j.X) 2> /dev/null
- errors=`expr $errors + 1`;;
- 2) $echo "Test 1j may have failed." 1>&2
- $echo The command "cmp 1j.O $srcdir/1j.X" failed. 1>&2
- errors=`expr $errors + 1`;;
- esac
-fi
-test -s 1j.E || rm -f 1j.E
-$xx --version > 1k.O 2> 1k.E
-code=$?
-if test $code != 0; then
- $echo "Test 1k failed: $xx return code $code differs from expected value 0" 1>&2
- errors=`expr $errors + 1`
-else
- cmp 1k.O $srcdir/1k.X > /dev/null 2>&1
- case $? in
- 0) if test "$VERBOSE"; then $echo "passed 1k"; fi;;
- 1) $echo "Test 1k failed: files 1k.O and $srcdir/1k.X differ" 1>&2
- (diff -c 1k.O $srcdir/1k.X) 2> /dev/null
- errors=`expr $errors + 1`;;
- 2) $echo "Test 1k may have failed." 1>&2
- $echo The command "cmp 1k.O $srcdir/1k.X" failed. 1>&2
- errors=`expr $errors + 1`;;
- esac
-fi
-test -s 1k.E || rm -f 1k.E
-$xx t = t > streq-1.O 2> streq-1.E
-code=$?
-if test $code != 0; then
- $echo "Test streq-1 failed: $xx return code $code differs from expected value 0" 1>&2
- errors=`expr $errors + 1`
-else
- cmp streq-1.O $srcdir/streq-1.X > /dev/null 2>&1
- case $? in
- 0) if test "$VERBOSE"; then $echo "passed streq-1"; fi;;
- 1) $echo "Test streq-1 failed: files streq-1.O and $srcdir/streq-1.X differ" 1>&2
- (diff -c streq-1.O $srcdir/streq-1.X) 2> /dev/null
- errors=`expr $errors + 1`;;
- 2) $echo "Test streq-1 may have failed." 1>&2
- $echo The command "cmp streq-1.O $srcdir/streq-1.X" failed. 1>&2
- errors=`expr $errors + 1`;;
- esac
-fi
-test -s streq-1.E || rm -f streq-1.E
-$xx t = f > streq-2.O 2> streq-2.E
-code=$?
-if test $code != 1; then
- $echo "Test streq-2 failed: $xx return code $code differs from expected value 1" 1>&2
- errors=`expr $errors + 1`
-else
- cmp streq-2.O $srcdir/streq-2.X > /dev/null 2>&1
- case $? in
- 0) if test "$VERBOSE"; then $echo "passed streq-2"; fi;;
- 1) $echo "Test streq-2 failed: files streq-2.O and $srcdir/streq-2.X differ" 1>&2
- (diff -c streq-2.O $srcdir/streq-2.X) 2> /dev/null
- errors=`expr $errors + 1`;;
- 2) $echo "Test streq-2 may have failed." 1>&2
- $echo The command "cmp streq-2.O $srcdir/streq-2.X" failed. 1>&2
- errors=`expr $errors + 1`;;
- esac
-fi
-test -s streq-2.E || rm -f streq-2.E
-$xx ! = ! > streq-3.O 2> streq-3.E
-code=$?
-if test $code != 0; then
- $echo "Test streq-3 failed: $xx return code $code differs from expected value 0" 1>&2
- errors=`expr $errors + 1`
-else
- cmp streq-3.O $srcdir/streq-3.X > /dev/null 2>&1
- case $? in
- 0) if test "$VERBOSE"; then $echo "passed streq-3"; fi;;
- 1) $echo "Test streq-3 failed: files streq-3.O and $srcdir/streq-3.X differ" 1>&2
- (diff -c streq-3.O $srcdir/streq-3.X) 2> /dev/null
- errors=`expr $errors + 1`;;
- 2) $echo "Test streq-3 may have failed." 1>&2
- $echo The command "cmp streq-3.O $srcdir/streq-3.X" failed. 1>&2
- errors=`expr $errors + 1`;;
- esac
-fi
-test -s streq-3.E || rm -f streq-3.E
-$xx = = = > streq-4.O 2> streq-4.E
-code=$?
-if test $code != 0; then
- $echo "Test streq-4 failed: $xx return code $code differs from expected value 0" 1>&2
- errors=`expr $errors + 1`
-else
- cmp streq-4.O $srcdir/streq-4.X > /dev/null 2>&1
- case $? in
- 0) if test "$VERBOSE"; then $echo "passed streq-4"; fi;;
- 1) $echo "Test streq-4 failed: files streq-4.O and $srcdir/streq-4.X differ" 1>&2
- (diff -c streq-4.O $srcdir/streq-4.X) 2> /dev/null
- errors=`expr $errors + 1`;;
- 2) $echo "Test streq-4 may have failed." 1>&2
- $echo The command "cmp streq-4.O $srcdir/streq-4.X" failed. 1>&2
- errors=`expr $errors + 1`;;
- esac
-fi
-test -s streq-4.E || rm -f streq-4.E
-$xx '(' = '(' > streq-5.O 2> streq-5.E
-code=$?
-if test $code != 0; then
- $echo "Test streq-5 failed: $xx return code $code differs from expected value 0" 1>&2
- errors=`expr $errors + 1`
-else
- cmp streq-5.O $srcdir/streq-5.X > /dev/null 2>&1
- case $? in
- 0) if test "$VERBOSE"; then $echo "passed streq-5"; fi;;
- 1) $echo "Test streq-5 failed: files streq-5.O and $srcdir/streq-5.X differ" 1>&2
- (diff -c streq-5.O $srcdir/streq-5.X) 2> /dev/null
- errors=`expr $errors + 1`;;
- 2) $echo "Test streq-5 may have failed." 1>&2
- $echo The command "cmp streq-5.O $srcdir/streq-5.X" failed. 1>&2
- errors=`expr $errors + 1`;;
- esac
-fi
-test -s streq-5.E || rm -f streq-5.E
-$xx '(' = ')' > streq-6.O 2> streq-6.E
-code=$?
-if test $code != 1; then
- $echo "Test streq-6 failed: $xx return code $code differs from expected value 1" 1>&2
- errors=`expr $errors + 1`
-else
- cmp streq-6.O $srcdir/streq-6.X > /dev/null 2>&1
- case $? in
- 0) if test "$VERBOSE"; then $echo "passed streq-6"; fi;;
- 1) $echo "Test streq-6 failed: files streq-6.O and $srcdir/streq-6.X differ" 1>&2
- (diff -c streq-6.O $srcdir/streq-6.X) 2> /dev/null
- errors=`expr $errors + 1`;;
- 2) $echo "Test streq-6 may have failed." 1>&2
- $echo The command "cmp streq-6.O $srcdir/streq-6.X" failed. 1>&2
- errors=`expr $errors + 1`;;
- esac
-fi
-test -s streq-6.E || rm -f streq-6.E
-$xx t != t > strne-1.O 2> strne-1.E
-code=$?
-if test $code != 1; then
- $echo "Test strne-1 failed: $xx return code $code differs from expected value 1" 1>&2
- errors=`expr $errors + 1`
-else
- cmp strne-1.O $srcdir/strne-1.X > /dev/null 2>&1
- case $? in
- 0) if test "$VERBOSE"; then $echo "passed strne-1"; fi;;
- 1) $echo "Test strne-1 failed: files strne-1.O and $srcdir/strne-1.X differ" 1>&2
- (diff -c strne-1.O $srcdir/strne-1.X) 2> /dev/null
- errors=`expr $errors + 1`;;
- 2) $echo "Test strne-1 may have failed." 1>&2
- $echo The command "cmp strne-1.O $srcdir/strne-1.X" failed. 1>&2
- errors=`expr $errors + 1`;;
- esac
-fi
-test -s strne-1.E || rm -f strne-1.E
-$xx t != f > strne-2.O 2> strne-2.E
-code=$?
-if test $code != 0; then
- $echo "Test strne-2 failed: $xx return code $code differs from expected value 0" 1>&2
- errors=`expr $errors + 1`
-else
- cmp strne-2.O $srcdir/strne-2.X > /dev/null 2>&1
- case $? in
- 0) if test "$VERBOSE"; then $echo "passed strne-2"; fi;;
- 1) $echo "Test strne-2 failed: files strne-2.O and $srcdir/strne-2.X differ" 1>&2
- (diff -c strne-2.O $srcdir/strne-2.X) 2> /dev/null
- errors=`expr $errors + 1`;;
- 2) $echo "Test strne-2 may have failed." 1>&2
- $echo The command "cmp strne-2.O $srcdir/strne-2.X" failed. 1>&2
- errors=`expr $errors + 1`;;
- esac
-fi
-test -s strne-2.E || rm -f strne-2.E
-$xx ! != ! > strne-3.O 2> strne-3.E
-code=$?
-if test $code != 1; then
- $echo "Test strne-3 failed: $xx return code $code differs from expected value 1" 1>&2
- errors=`expr $errors + 1`
-else
- cmp strne-3.O $srcdir/strne-3.X > /dev/null 2>&1
- case $? in
- 0) if test "$VERBOSE"; then $echo "passed strne-3"; fi;;
- 1) $echo "Test strne-3 failed: files strne-3.O and $srcdir/strne-3.X differ" 1>&2
- (diff -c strne-3.O $srcdir/strne-3.X) 2> /dev/null
- errors=`expr $errors + 1`;;
- 2) $echo "Test strne-3 may have failed." 1>&2
- $echo The command "cmp strne-3.O $srcdir/strne-3.X" failed. 1>&2
- errors=`expr $errors + 1`;;
- esac
-fi
-test -s strne-3.E || rm -f strne-3.E
-$xx = != = > strne-4.O 2> strne-4.E
-code=$?
-if test $code != 1; then
- $echo "Test strne-4 failed: $xx return code $code differs from expected value 1" 1>&2
- errors=`expr $errors + 1`
-else
- cmp strne-4.O $srcdir/strne-4.X > /dev/null 2>&1
- case $? in
- 0) if test "$VERBOSE"; then $echo "passed strne-4"; fi;;
- 1) $echo "Test strne-4 failed: files strne-4.O and $srcdir/strne-4.X differ" 1>&2
- (diff -c strne-4.O $srcdir/strne-4.X) 2> /dev/null
- errors=`expr $errors + 1`;;
- 2) $echo "Test strne-4 may have failed." 1>&2
- $echo The command "cmp strne-4.O $srcdir/strne-4.X" failed. 1>&2
- errors=`expr $errors + 1`;;
- esac
-fi
-test -s strne-4.E || rm -f strne-4.E
-$xx '(' != '(' > strne-5.O 2> strne-5.E
-code=$?
-if test $code != 1; then
- $echo "Test strne-5 failed: $xx return code $code differs from expected value 1" 1>&2
- errors=`expr $errors + 1`
-else
- cmp strne-5.O $srcdir/strne-5.X > /dev/null 2>&1
- case $? in
- 0) if test "$VERBOSE"; then $echo "passed strne-5"; fi;;
- 1) $echo "Test strne-5 failed: files strne-5.O and $srcdir/strne-5.X differ" 1>&2
- (diff -c strne-5.O $srcdir/strne-5.X) 2> /dev/null
- errors=`expr $errors + 1`;;
- 2) $echo "Test strne-5 may have failed." 1>&2
- $echo The command "cmp strne-5.O $srcdir/strne-5.X" failed. 1>&2
- errors=`expr $errors + 1`;;
- esac
-fi
-test -s strne-5.E || rm -f strne-5.E
-$xx '(' != ')' > strne-6.O 2> strne-6.E
-code=$?
-if test $code != 0; then
- $echo "Test strne-6 failed: $xx return code $code differs from expected value 0" 1>&2
- errors=`expr $errors + 1`
-else
- cmp strne-6.O $srcdir/strne-6.X > /dev/null 2>&1
- case $? in
- 0) if test "$VERBOSE"; then $echo "passed strne-6"; fi;;
- 1) $echo "Test strne-6 failed: files strne-6.O and $srcdir/strne-6.X differ" 1>&2
- (diff -c strne-6.O $srcdir/strne-6.X) 2> /dev/null
- errors=`expr $errors + 1`;;
- 2) $echo "Test strne-6 may have failed." 1>&2
- $echo The command "cmp strne-6.O $srcdir/strne-6.X" failed. 1>&2
- errors=`expr $errors + 1`;;
- esac
-fi
-test -s strne-6.E || rm -f strne-6.E
-$xx t -a t > and-1.O 2> and-1.E
-code=$?
-if test $code != 0; then
- $echo "Test and-1 failed: $xx return code $code differs from expected value 0" 1>&2
- errors=`expr $errors + 1`
-else
- cmp and-1.O $srcdir/and-1.X > /dev/null 2>&1
- case $? in
- 0) if test "$VERBOSE"; then $echo "passed and-1"; fi;;
- 1) $echo "Test and-1 failed: files and-1.O and $srcdir/and-1.X differ" 1>&2
- (diff -c and-1.O $srcdir/and-1.X) 2> /dev/null
- errors=`expr $errors + 1`;;
- 2) $echo "Test and-1 may have failed." 1>&2
- $echo The command "cmp and-1.O $srcdir/and-1.X" failed. 1>&2
- errors=`expr $errors + 1`;;
- esac
-fi
-test -s and-1.E || rm -f and-1.E
-$xx '' -a t > and-2.O 2> and-2.E
-code=$?
-if test $code != 1; then
- $echo "Test and-2 failed: $xx return code $code differs from expected value 1" 1>&2
- errors=`expr $errors + 1`
-else
- cmp and-2.O $srcdir/and-2.X > /dev/null 2>&1
- case $? in
- 0) if test "$VERBOSE"; then $echo "passed and-2"; fi;;
- 1) $echo "Test and-2 failed: files and-2.O and $srcdir/and-2.X differ" 1>&2
- (diff -c and-2.O $srcdir/and-2.X) 2> /dev/null
- errors=`expr $errors + 1`;;
- 2) $echo "Test and-2 may have failed." 1>&2
- $echo The command "cmp and-2.O $srcdir/and-2.X" failed. 1>&2
- errors=`expr $errors + 1`;;
- esac
-fi
-test -s and-2.E || rm -f and-2.E
-$xx t -a '' > and-3.O 2> and-3.E
-code=$?
-if test $code != 1; then
- $echo "Test and-3 failed: $xx return code $code differs from expected value 1" 1>&2
- errors=`expr $errors + 1`
-else
- cmp and-3.O $srcdir/and-3.X > /dev/null 2>&1
- case $? in
- 0) if test "$VERBOSE"; then $echo "passed and-3"; fi;;
- 1) $echo "Test and-3 failed: files and-3.O and $srcdir/and-3.X differ" 1>&2
- (diff -c and-3.O $srcdir/and-3.X) 2> /dev/null
- errors=`expr $errors + 1`;;
- 2) $echo "Test and-3 may have failed." 1>&2
- $echo The command "cmp and-3.O $srcdir/and-3.X" failed. 1>&2
- errors=`expr $errors + 1`;;
- esac
-fi
-test -s and-3.E || rm -f and-3.E
-$xx '' -a '' > and-4.O 2> and-4.E
-code=$?
-if test $code != 1; then
- $echo "Test and-4 failed: $xx return code $code differs from expected value 1" 1>&2
- errors=`expr $errors + 1`
-else
- cmp and-4.O $srcdir/and-4.X > /dev/null 2>&1
- case $? in
- 0) if test "$VERBOSE"; then $echo "passed and-4"; fi;;
- 1) $echo "Test and-4 failed: files and-4.O and $srcdir/and-4.X differ" 1>&2
- (diff -c and-4.O $srcdir/and-4.X) 2> /dev/null
- errors=`expr $errors + 1`;;
- 2) $echo "Test and-4 may have failed." 1>&2
- $echo The command "cmp and-4.O $srcdir/and-4.X" failed. 1>&2
- errors=`expr $errors + 1`;;
- esac
-fi
-test -s and-4.E || rm -f and-4.E
-$xx t -o t > or-1.O 2> or-1.E
-code=$?
-if test $code != 0; then
- $echo "Test or-1 failed: $xx return code $code differs from expected value 0" 1>&2
- errors=`expr $errors + 1`
-else
- cmp or-1.O $srcdir/or-1.X > /dev/null 2>&1
- case $? in
- 0) if test "$VERBOSE"; then $echo "passed or-1"; fi;;
- 1) $echo "Test or-1 failed: files or-1.O and $srcdir/or-1.X differ" 1>&2
- (diff -c or-1.O $srcdir/or-1.X) 2> /dev/null
- errors=`expr $errors + 1`;;
- 2) $echo "Test or-1 may have failed." 1>&2
- $echo The command "cmp or-1.O $srcdir/or-1.X" failed. 1>&2
- errors=`expr $errors + 1`;;
- esac
-fi
-test -s or-1.E || rm -f or-1.E
-$xx '' -o t > or-2.O 2> or-2.E
-code=$?
-if test $code != 0; then
- $echo "Test or-2 failed: $xx return code $code differs from expected value 0" 1>&2
- errors=`expr $errors + 1`
-else
- cmp or-2.O $srcdir/or-2.X > /dev/null 2>&1
- case $? in
- 0) if test "$VERBOSE"; then $echo "passed or-2"; fi;;
- 1) $echo "Test or-2 failed: files or-2.O and $srcdir/or-2.X differ" 1>&2
- (diff -c or-2.O $srcdir/or-2.X) 2> /dev/null
- errors=`expr $errors + 1`;;
- 2) $echo "Test or-2 may have failed." 1>&2
- $echo The command "cmp or-2.O $srcdir/or-2.X" failed. 1>&2
- errors=`expr $errors + 1`;;
- esac
-fi
-test -s or-2.E || rm -f or-2.E
-$xx t -o '' > or-3.O 2> or-3.E
-code=$?
-if test $code != 0; then
- $echo "Test or-3 failed: $xx return code $code differs from expected value 0" 1>&2
- errors=`expr $errors + 1`
-else
- cmp or-3.O $srcdir/or-3.X > /dev/null 2>&1
- case $? in
- 0) if test "$VERBOSE"; then $echo "passed or-3"; fi;;
- 1) $echo "Test or-3 failed: files or-3.O and $srcdir/or-3.X differ" 1>&2
- (diff -c or-3.O $srcdir/or-3.X) 2> /dev/null
- errors=`expr $errors + 1`;;
- 2) $echo "Test or-3 may have failed." 1>&2
- $echo The command "cmp or-3.O $srcdir/or-3.X" failed. 1>&2
- errors=`expr $errors + 1`;;
- esac
-fi
-test -s or-3.E || rm -f or-3.E
-$xx '' -o '' > or-4.O 2> or-4.E
-code=$?
-if test $code != 1; then
- $echo "Test or-4 failed: $xx return code $code differs from expected value 1" 1>&2
- errors=`expr $errors + 1`
-else
- cmp or-4.O $srcdir/or-4.X > /dev/null 2>&1
- case $? in
- 0) if test "$VERBOSE"; then $echo "passed or-4"; fi;;
- 1) $echo "Test or-4 failed: files or-4.O and $srcdir/or-4.X differ" 1>&2
- (diff -c or-4.O $srcdir/or-4.X) 2> /dev/null
- errors=`expr $errors + 1`;;
- 2) $echo "Test or-4 may have failed." 1>&2
- $echo The command "cmp or-4.O $srcdir/or-4.X" failed. 1>&2
- errors=`expr $errors + 1`;;
- esac
-fi
-test -s or-4.E || rm -f or-4.E
-$xx 9 -eq 9 > eq-1.O 2> eq-1.E
-code=$?
-if test $code != 0; then
- $echo "Test eq-1 failed: $xx return code $code differs from expected value 0" 1>&2
- errors=`expr $errors + 1`
-else
- cmp eq-1.O $srcdir/eq-1.X > /dev/null 2>&1
- case $? in
- 0) if test "$VERBOSE"; then $echo "passed eq-1"; fi;;
- 1) $echo "Test eq-1 failed: files eq-1.O and $srcdir/eq-1.X differ" 1>&2
- (diff -c eq-1.O $srcdir/eq-1.X) 2> /dev/null
- errors=`expr $errors + 1`;;
- 2) $echo "Test eq-1 may have failed." 1>&2
- $echo The command "cmp eq-1.O $srcdir/eq-1.X" failed. 1>&2
- errors=`expr $errors + 1`;;
- esac
-fi
-test -s eq-1.E || rm -f eq-1.E
-$xx 0 -eq 0 > eq-2.O 2> eq-2.E
-code=$?
-if test $code != 0; then
- $echo "Test eq-2 failed: $xx return code $code differs from expected value 0" 1>&2
- errors=`expr $errors + 1`
-else
- cmp eq-2.O $srcdir/eq-2.X > /dev/null 2>&1
- case $? in
- 0) if test "$VERBOSE"; then $echo "passed eq-2"; fi;;
- 1) $echo "Test eq-2 failed: files eq-2.O and $srcdir/eq-2.X differ" 1>&2
- (diff -c eq-2.O $srcdir/eq-2.X) 2> /dev/null
- errors=`expr $errors + 1`;;
- 2) $echo "Test eq-2 may have failed." 1>&2
- $echo The command "cmp eq-2.O $srcdir/eq-2.X" failed. 1>&2
- errors=`expr $errors + 1`;;
- esac
-fi
-test -s eq-2.E || rm -f eq-2.E
-$xx 0 -eq 00 > eq-3.O 2> eq-3.E
-code=$?
-if test $code != 0; then
- $echo "Test eq-3 failed: $xx return code $code differs from expected value 0" 1>&2
- errors=`expr $errors + 1`
-else
- cmp eq-3.O $srcdir/eq-3.X > /dev/null 2>&1
- case $? in
- 0) if test "$VERBOSE"; then $echo "passed eq-3"; fi;;
- 1) $echo "Test eq-3 failed: files eq-3.O and $srcdir/eq-3.X differ" 1>&2
- (diff -c eq-3.O $srcdir/eq-3.X) 2> /dev/null
- errors=`expr $errors + 1`;;
- 2) $echo "Test eq-3 may have failed." 1>&2
- $echo The command "cmp eq-3.O $srcdir/eq-3.X" failed. 1>&2
- errors=`expr $errors + 1`;;
- esac
-fi
-test -s eq-3.E || rm -f eq-3.E
-$xx 8 -eq 9 > eq-4.O 2> eq-4.E
-code=$?
-if test $code != 1; then
- $echo "Test eq-4 failed: $xx return code $code differs from expected value 1" 1>&2
- errors=`expr $errors + 1`
-else
- cmp eq-4.O $srcdir/eq-4.X > /dev/null 2>&1
- case $? in
- 0) if test "$VERBOSE"; then $echo "passed eq-4"; fi;;
- 1) $echo "Test eq-4 failed: files eq-4.O and $srcdir/eq-4.X differ" 1>&2
- (diff -c eq-4.O $srcdir/eq-4.X) 2> /dev/null
- errors=`expr $errors + 1`;;
- 2) $echo "Test eq-4 may have failed." 1>&2
- $echo The command "cmp eq-4.O $srcdir/eq-4.X" failed. 1>&2
- errors=`expr $errors + 1`;;
- esac
-fi
-test -s eq-4.E || rm -f eq-4.E
-$xx 1 -eq 0 > eq-5.O 2> eq-5.E
-code=$?
-if test $code != 1; then
- $echo "Test eq-5 failed: $xx return code $code differs from expected value 1" 1>&2
- errors=`expr $errors + 1`
-else
- cmp eq-5.O $srcdir/eq-5.X > /dev/null 2>&1
- case $? in
- 0) if test "$VERBOSE"; then $echo "passed eq-5"; fi;;
- 1) $echo "Test eq-5 failed: files eq-5.O and $srcdir/eq-5.X differ" 1>&2
- (diff -c eq-5.O $srcdir/eq-5.X) 2> /dev/null
- errors=`expr $errors + 1`;;
- 2) $echo "Test eq-5 may have failed." 1>&2
- $echo The command "cmp eq-5.O $srcdir/eq-5.X" failed. 1>&2
- errors=`expr $errors + 1`;;
- esac
-fi
-test -s eq-5.E || rm -f eq-5.E
-$xx 340282366920938463463374607431768211456 -eq 0 > eq-6.O 2> eq-6.E
-code=$?
-if test $code != 1; then
- $echo "Test eq-6 failed: $xx return code $code differs from expected value 1" 1>&2
- errors=`expr $errors + 1`
-else
- cmp eq-6.O $srcdir/eq-6.X > /dev/null 2>&1
- case $? in
- 0) if test "$VERBOSE"; then $echo "passed eq-6"; fi;;
- 1) $echo "Test eq-6 failed: files eq-6.O and $srcdir/eq-6.X differ" 1>&2
- (diff -c eq-6.O $srcdir/eq-6.X) 2> /dev/null
- errors=`expr $errors + 1`;;
- 2) $echo "Test eq-6 may have failed." 1>&2
- $echo The command "cmp eq-6.O $srcdir/eq-6.X" failed. 1>&2
- errors=`expr $errors + 1`;;
- esac
-fi
-test -s eq-6.E || rm -f eq-6.E
-$xx 5 -gt 5 > gt-1.O 2> gt-1.E
-code=$?
-if test $code != 1; then
- $echo "Test gt-1 failed: $xx return code $code differs from expected value 1" 1>&2
- errors=`expr $errors + 1`
-else
- cmp gt-1.O $srcdir/gt-1.X > /dev/null 2>&1
- case $? in
- 0) if test "$VERBOSE"; then $echo "passed gt-1"; fi;;
- 1) $echo "Test gt-1 failed: files gt-1.O and $srcdir/gt-1.X differ" 1>&2
- (diff -c gt-1.O $srcdir/gt-1.X) 2> /dev/null
- errors=`expr $errors + 1`;;
- 2) $echo "Test gt-1 may have failed." 1>&2
- $echo The command "cmp gt-1.O $srcdir/gt-1.X" failed. 1>&2
- errors=`expr $errors + 1`;;
- esac
-fi
-test -s gt-1.E || rm -f gt-1.E
-$xx 5 -gt 4 > gt-2.O 2> gt-2.E
-code=$?
-if test $code != 0; then
- $echo "Test gt-2 failed: $xx return code $code differs from expected value 0" 1>&2
- errors=`expr $errors + 1`
-else
- cmp gt-2.O $srcdir/gt-2.X > /dev/null 2>&1
- case $? in
- 0) if test "$VERBOSE"; then $echo "passed gt-2"; fi;;
- 1) $echo "Test gt-2 failed: files gt-2.O and $srcdir/gt-2.X differ" 1>&2
- (diff -c gt-2.O $srcdir/gt-2.X) 2> /dev/null
- errors=`expr $errors + 1`;;
- 2) $echo "Test gt-2 may have failed." 1>&2
- $echo The command "cmp gt-2.O $srcdir/gt-2.X" failed. 1>&2
- errors=`expr $errors + 1`;;
- esac
-fi
-test -s gt-2.E || rm -f gt-2.E
-$xx 4 -gt 5 > gt-3.O 2> gt-3.E
-code=$?
-if test $code != 1; then
- $echo "Test gt-3 failed: $xx return code $code differs from expected value 1" 1>&2
- errors=`expr $errors + 1`
-else
- cmp gt-3.O $srcdir/gt-3.X > /dev/null 2>&1
- case $? in
- 0) if test "$VERBOSE"; then $echo "passed gt-3"; fi;;
- 1) $echo "Test gt-3 failed: files gt-3.O and $srcdir/gt-3.X differ" 1>&2
- (diff -c gt-3.O $srcdir/gt-3.X) 2> /dev/null
- errors=`expr $errors + 1`;;
- 2) $echo "Test gt-3 may have failed." 1>&2
- $echo The command "cmp gt-3.O $srcdir/gt-3.X" failed. 1>&2
- errors=`expr $errors + 1`;;
- esac
-fi
-test -s gt-3.E || rm -f gt-3.E
-$xx -1 -gt -2 > gt-4.O 2> gt-4.E
-code=$?
-if test $code != 0; then
- $echo "Test gt-4 failed: $xx return code $code differs from expected value 0" 1>&2
- errors=`expr $errors + 1`
-else
- cmp gt-4.O $srcdir/gt-4.X > /dev/null 2>&1
- case $? in
- 0) if test "$VERBOSE"; then $echo "passed gt-4"; fi;;
- 1) $echo "Test gt-4 failed: files gt-4.O and $srcdir/gt-4.X differ" 1>&2
- (diff -c gt-4.O $srcdir/gt-4.X) 2> /dev/null
- errors=`expr $errors + 1`;;
- 2) $echo "Test gt-4 may have failed." 1>&2
- $echo The command "cmp gt-4.O $srcdir/gt-4.X" failed. 1>&2
- errors=`expr $errors + 1`;;
- esac
-fi
-test -s gt-4.E || rm -f gt-4.E
-$xx 18446744073709551616 -gt -18446744073709551616 > gt-5.O 2> gt-5.E
-code=$?
-if test $code != 0; then
- $echo "Test gt-5 failed: $xx return code $code differs from expected value 0" 1>&2
- errors=`expr $errors + 1`
-else
- cmp gt-5.O $srcdir/gt-5.X > /dev/null 2>&1
- case $? in
- 0) if test "$VERBOSE"; then $echo "passed gt-5"; fi;;
- 1) $echo "Test gt-5 failed: files gt-5.O and $srcdir/gt-5.X differ" 1>&2
- (diff -c gt-5.O $srcdir/gt-5.X) 2> /dev/null
- errors=`expr $errors + 1`;;
- 2) $echo "Test gt-5 may have failed." 1>&2
- $echo The command "cmp gt-5.O $srcdir/gt-5.X" failed. 1>&2
- errors=`expr $errors + 1`;;
- esac
-fi
-test -s gt-5.E || rm -f gt-5.E
-$xx 5 -lt 5 > lt-1.O 2> lt-1.E
-code=$?
-if test $code != 1; then
- $echo "Test lt-1 failed: $xx return code $code differs from expected value 1" 1>&2
- errors=`expr $errors + 1`
-else
- cmp lt-1.O $srcdir/lt-1.X > /dev/null 2>&1
- case $? in
- 0) if test "$VERBOSE"; then $echo "passed lt-1"; fi;;
- 1) $echo "Test lt-1 failed: files lt-1.O and $srcdir/lt-1.X differ" 1>&2
- (diff -c lt-1.O $srcdir/lt-1.X) 2> /dev/null
- errors=`expr $errors + 1`;;
- 2) $echo "Test lt-1 may have failed." 1>&2
- $echo The command "cmp lt-1.O $srcdir/lt-1.X" failed. 1>&2
- errors=`expr $errors + 1`;;
- esac
-fi
-test -s lt-1.E || rm -f lt-1.E
-$xx 5 -lt 4 > lt-2.O 2> lt-2.E
-code=$?
-if test $code != 1; then
- $echo "Test lt-2 failed: $xx return code $code differs from expected value 1" 1>&2
- errors=`expr $errors + 1`
-else
- cmp lt-2.O $srcdir/lt-2.X > /dev/null 2>&1
- case $? in
- 0) if test "$VERBOSE"; then $echo "passed lt-2"; fi;;
- 1) $echo "Test lt-2 failed: files lt-2.O and $srcdir/lt-2.X differ" 1>&2
- (diff -c lt-2.O $srcdir/lt-2.X) 2> /dev/null
- errors=`expr $errors + 1`;;
- 2) $echo "Test lt-2 may have failed." 1>&2
- $echo The command "cmp lt-2.O $srcdir/lt-2.X" failed. 1>&2
- errors=`expr $errors + 1`;;
- esac
-fi
-test -s lt-2.E || rm -f lt-2.E
-$xx 4 -lt 5 > lt-3.O 2> lt-3.E
-code=$?
-if test $code != 0; then
- $echo "Test lt-3 failed: $xx return code $code differs from expected value 0" 1>&2
- errors=`expr $errors + 1`
-else
- cmp lt-3.O $srcdir/lt-3.X > /dev/null 2>&1
- case $? in
- 0) if test "$VERBOSE"; then $echo "passed lt-3"; fi;;
- 1) $echo "Test lt-3 failed: files lt-3.O and $srcdir/lt-3.X differ" 1>&2
- (diff -c lt-3.O $srcdir/lt-3.X) 2> /dev/null
- errors=`expr $errors + 1`;;
- 2) $echo "Test lt-3 may have failed." 1>&2
- $echo The command "cmp lt-3.O $srcdir/lt-3.X" failed. 1>&2
- errors=`expr $errors + 1`;;
- esac
-fi
-test -s lt-3.E || rm -f lt-3.E
-$xx -1 -lt -2 > lt-4.O 2> lt-4.E
-code=$?
-if test $code != 1; then
- $echo "Test lt-4 failed: $xx return code $code differs from expected value 1" 1>&2
- errors=`expr $errors + 1`
-else
- cmp lt-4.O $srcdir/lt-4.X > /dev/null 2>&1
- case $? in
- 0) if test "$VERBOSE"; then $echo "passed lt-4"; fi;;
- 1) $echo "Test lt-4 failed: files lt-4.O and $srcdir/lt-4.X differ" 1>&2
- (diff -c lt-4.O $srcdir/lt-4.X) 2> /dev/null
- errors=`expr $errors + 1`;;
- 2) $echo "Test lt-4 may have failed." 1>&2
- $echo The command "cmp lt-4.O $srcdir/lt-4.X" failed. 1>&2
- errors=`expr $errors + 1`;;
- esac
-fi
-test -s lt-4.E || rm -f lt-4.E
-$xx -18446744073709551616 -lt 18446744073709551616 > lt-5.O 2> lt-5.E
-code=$?
-if test $code != 0; then
- $echo "Test lt-5 failed: $xx return code $code differs from expected value 0" 1>&2
- errors=`expr $errors + 1`
-else
- cmp lt-5.O $srcdir/lt-5.X > /dev/null 2>&1
- case $? in
- 0) if test "$VERBOSE"; then $echo "passed lt-5"; fi;;
- 1) $echo "Test lt-5 failed: files lt-5.O and $srcdir/lt-5.X differ" 1>&2
- (diff -c lt-5.O $srcdir/lt-5.X) 2> /dev/null
- errors=`expr $errors + 1`;;
- 2) $echo "Test lt-5 may have failed." 1>&2
- $echo The command "cmp lt-5.O $srcdir/lt-5.X" failed. 1>&2
- errors=`expr $errors + 1`;;
- esac
-fi
-test -s lt-5.E || rm -f lt-5.E
-$xx 0x0 -eq 00 > inv-1.O 2> inv-1.E
-code=$?
-if test $code != 2; then
- $echo "Test inv-1 failed: $xx return code $code differs from expected value 2" 1>&2
- errors=`expr $errors + 1`
-else
- cmp inv-1.O $srcdir/inv-1.X > /dev/null 2>&1
- case $? in
- 0) if test "$VERBOSE"; then $echo "passed inv-1"; fi;;
- 1) $echo "Test inv-1 failed: files inv-1.O and $srcdir/inv-1.X differ" 1>&2
- (diff -c inv-1.O $srcdir/inv-1.X) 2> /dev/null
- errors=`expr $errors + 1`;;
- 2) $echo "Test inv-1 may have failed." 1>&2
- $echo The command "cmp inv-1.O $srcdir/inv-1.X" failed. 1>&2
- errors=`expr $errors + 1`;;
- esac
-fi
-test -s inv-1.E || rm -f inv-1.E
-$xx -t > t1.O 2> t1.E
-code=$?
-if test $code != 0; then
- $echo "Test t1 failed: $xx return code $code differs from expected value 0" 1>&2
- errors=`expr $errors + 1`
-else
- cmp t1.O $srcdir/t1.X > /dev/null 2>&1
- case $? in
- 0) if test "$VERBOSE"; then $echo "passed t1"; fi;;
- 1) $echo "Test t1 failed: files t1.O and $srcdir/t1.X differ" 1>&2
- (diff -c t1.O $srcdir/t1.X) 2> /dev/null
- errors=`expr $errors + 1`;;
- 2) $echo "Test t1 may have failed." 1>&2
- $echo The command "cmp t1.O $srcdir/t1.X" failed. 1>&2
- errors=`expr $errors + 1`;;
- esac
-fi
-test -s t1.E || rm -f t1.E
-$xx -t 1 > t2.O 2> t2.E
-code=$?
-if test $code != 1; then
- $echo "Test t2 failed: $xx return code $code differs from expected value 1" 1>&2
- errors=`expr $errors + 1`
-else
- cmp t2.O $srcdir/t2.X > /dev/null 2>&1
- case $? in
- 0) if test "$VERBOSE"; then $echo "passed t2"; fi;;
- 1) $echo "Test t2 failed: files t2.O and $srcdir/t2.X differ" 1>&2
- (diff -c t2.O $srcdir/t2.X) 2> /dev/null
- errors=`expr $errors + 1`;;
- 2) $echo "Test t2 may have failed." 1>&2
- $echo The command "cmp t2.O $srcdir/t2.X" failed. 1>&2
- errors=`expr $errors + 1`;;
- esac
-fi
-test -s t2.E || rm -f t2.E
-$xx '(' '' ')' > paren-1.O 2> paren-1.E
-code=$?
-if test $code != 1; then
- $echo "Test paren-1 failed: $xx return code $code differs from expected value 1" 1>&2
- errors=`expr $errors + 1`
-else
- cmp paren-1.O $srcdir/paren-1.X > /dev/null 2>&1
- case $? in
- 0) if test "$VERBOSE"; then $echo "passed paren-1"; fi;;
- 1) $echo "Test paren-1 failed: files paren-1.O and $srcdir/paren-1.X differ" 1>&2
- (diff -c paren-1.O $srcdir/paren-1.X) 2> /dev/null
- errors=`expr $errors + 1`;;
- 2) $echo "Test paren-1 may have failed." 1>&2
- $echo The command "cmp paren-1.O $srcdir/paren-1.X" failed. 1>&2
- errors=`expr $errors + 1`;;
- esac
-fi
-test -s paren-1.E || rm -f paren-1.E
-$xx '(' '(' ')' > paren-2.O 2> paren-2.E
-code=$?
-if test $code != 0; then
- $echo "Test paren-2 failed: $xx return code $code differs from expected value 0" 1>&2
- errors=`expr $errors + 1`
-else
- cmp paren-2.O $srcdir/paren-2.X > /dev/null 2>&1
- case $? in
- 0) if test "$VERBOSE"; then $echo "passed paren-2"; fi;;
- 1) $echo "Test paren-2 failed: files paren-2.O and $srcdir/paren-2.X differ" 1>&2
- (diff -c paren-2.O $srcdir/paren-2.X) 2> /dev/null
- errors=`expr $errors + 1`;;
- 2) $echo "Test paren-2 may have failed." 1>&2
- $echo The command "cmp paren-2.O $srcdir/paren-2.X" failed. 1>&2
- errors=`expr $errors + 1`;;
- esac
-fi
-test -s paren-2.E || rm -f paren-2.E
-$xx '(' ')' ')' > paren-3.O 2> paren-3.E
-code=$?
-if test $code != 0; then
- $echo "Test paren-3 failed: $xx return code $code differs from expected value 0" 1>&2
- errors=`expr $errors + 1`
-else
- cmp paren-3.O $srcdir/paren-3.X > /dev/null 2>&1
- case $? in
- 0) if test "$VERBOSE"; then $echo "passed paren-3"; fi;;
- 1) $echo "Test paren-3 failed: files paren-3.O and $srcdir/paren-3.X differ" 1>&2
- (diff -c paren-3.O $srcdir/paren-3.X) 2> /dev/null
- errors=`expr $errors + 1`;;
- 2) $echo "Test paren-3 may have failed." 1>&2
- $echo The command "cmp paren-3.O $srcdir/paren-3.X" failed. 1>&2
- errors=`expr $errors + 1`;;
- esac
-fi
-test -s paren-3.E || rm -f paren-3.E
-$xx '(' ! ')' > paren-4.O 2> paren-4.E
-code=$?
-if test $code != 0; then
- $echo "Test paren-4 failed: $xx return code $code differs from expected value 0" 1>&2
- errors=`expr $errors + 1`
-else
- cmp paren-4.O $srcdir/paren-4.X > /dev/null 2>&1
- case $? in
- 0) if test "$VERBOSE"; then $echo "passed paren-4"; fi;;
- 1) $echo "Test paren-4 failed: files paren-4.O and $srcdir/paren-4.X differ" 1>&2
- (diff -c paren-4.O $srcdir/paren-4.X) 2> /dev/null
- errors=`expr $errors + 1`;;
- 2) $echo "Test paren-4 may have failed." 1>&2
- $echo The command "cmp paren-4.O $srcdir/paren-4.X" failed. 1>&2
- errors=`expr $errors + 1`;;
- esac
-fi
-test -s paren-4.E || rm -f paren-4.E
-$xx '(' -a ')' > paren-5.O 2> paren-5.E
-code=$?
-if test $code != 0; then
- $echo "Test paren-5 failed: $xx return code $code differs from expected value 0" 1>&2
- errors=`expr $errors + 1`
-else
- cmp paren-5.O $srcdir/paren-5.X > /dev/null 2>&1
- case $? in
- 0) if test "$VERBOSE"; then $echo "passed paren-5"; fi;;
- 1) $echo "Test paren-5 failed: files paren-5.O and $srcdir/paren-5.X differ" 1>&2
- (diff -c paren-5.O $srcdir/paren-5.X) 2> /dev/null
- errors=`expr $errors + 1`;;
- 2) $echo "Test paren-5 may have failed." 1>&2
- $echo The command "cmp paren-5.O $srcdir/paren-5.X" failed. 1>&2
- errors=`expr $errors + 1`;;
- esac
-fi
-test -s paren-5.E || rm -f paren-5.E
-if test $errors = 0; then
- $echo Passed all 262 tests. 1>&2
-else
- $echo Failed $errors tests. 1>&2
-fi
-test $errors = 0 || errors=1
-exit $errors
diff --git a/tests/touch/60-seconds.sh b/tests/touch/60-seconds.sh
new file mode 100755
index 0000000..21a2df5
--- /dev/null
+++ b/tests/touch/60-seconds.sh
@@ -0,0 +1,33 @@
+#!/bin/sh
+# touch -t would mistakenly reject a time specifying "60" seconds
+
+# Copyright (C) 2009-2016 Free Software Foundation, Inc.
+
+# This program is free software: you can redistribute it and/or modify
+# it under the terms of the GNU General Public License as published by
+# the Free Software Foundation, either version 3 of the License, or
+# (at your option) any later version.
+
+# This program is distributed in the hope that it will be useful,
+# but WITHOUT ANY WARRANTY; without even the implied warranty of
+# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
+# GNU General Public License for more details.
+
+# You should have received a copy of the GNU General Public License
+# along with this program. If not, see <http://www.gnu.org/licenses/>.
+
+. "${srcdir=.}/tests/init.sh"; path_prepend_ ./src
+print_ver_ touch
+
+echo 60.000000000 > exp || framework_failure_
+
+
+# Before coreutils-7.7, this would fail, complaining of
+# an 'invalid date format'. Specifying 60 seconds *is* valid.
+TZ=UTC0 touch -t 197001010000.60 f || fail=1
+
+stat --p='%.9Y\n' f > out || fail=1
+
+compare exp out || fail=1
+
+Exit $fail
diff --git a/tests/touch/Makefile.am b/tests/touch/Makefile.am
deleted file mode 100644
index 1fce9cd..0000000
--- a/tests/touch/Makefile.am
+++ /dev/null
@@ -1,30 +0,0 @@
-# Make coreutils tests for "touch". -*-Makefile-*-
-
-# Copyright (C) 1998-2007 Free Software Foundation, Inc.
-
-# This program is free software; you can redistribute it and/or modify
-# it under the terms of the GNU General Public License as published by
-# the Free Software Foundation; either version 2 of the License, or
-# (at your option) any later version.
-
-# This program is distributed in the hope that it will be useful,
-# but WITHOUT ANY WARRANTY; without even the implied warranty of
-# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
-# GNU General Public License for more details.
-
-# You should have received a copy of the GNU General Public License
-# along with this program; if not, write to the Free Software
-# Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA
-# 02110-1301, USA.
-
-TESTS = \
- read-only \
- relative \
- not-owner \
- no-create-missing \
- fail-diag dir-1 dangling-symlink empty-file fifo no-rights obsolescent
-EXTRA_DIST = $(TESTS)
-TESTS_ENVIRONMENT = \
- host_triplet=$(host_triplet) \
- CU_TEST_NAME=`basename $(abs_srcdir)`,$$tst \
- PATH="$(VG_PATH_PREFIX)`pwd`/../../src$(PATH_SEPARATOR)$$PATH"
diff --git a/tests/touch/Makefile.in b/tests/touch/Makefile.in
deleted file mode 100644
index 442fa3f..0000000
--- a/tests/touch/Makefile.in
+++ /dev/null
@@ -1,742 +0,0 @@
-# Makefile.in generated by automake 1.10 from Makefile.am.
-# @configure_input@
-
-# Copyright (C) 1994, 1995, 1996, 1997, 1998, 1999, 2000, 2001, 2002,
-# 2003, 2004, 2005, 2006 Free Software Foundation, Inc.
-# This Makefile.in is free software; the Free Software Foundation
-# gives unlimited permission to copy and/or distribute it,
-# with or without modifications, as long as this notice is preserved.
-
-# This program is distributed in the hope that it will be useful,
-# but WITHOUT ANY WARRANTY, to the extent permitted by law; without
-# even the implied warranty of MERCHANTABILITY or FITNESS FOR A
-# PARTICULAR PURPOSE.
-
-@SET_MAKE@
-
-# Make coreutils tests for "touch". -*-Makefile-*-
-
-# Copyright (C) 1998-2007 Free Software Foundation, Inc.
-
-# This program is free software; you can redistribute it and/or modify
-# it under the terms of the GNU General Public License as published by
-# the Free Software Foundation; either version 2 of the License, or
-# (at your option) any later version.
-
-# This program is distributed in the hope that it will be useful,
-# but WITHOUT ANY WARRANTY; without even the implied warranty of
-# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
-# GNU General Public License for more details.
-
-# You should have received a copy of the GNU General Public License
-# along with this program; if not, write to the Free Software
-# Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA
-# 02110-1301, USA.
-VPATH = @srcdir@
-pkgdatadir = $(datadir)/@PACKAGE@
-pkglibdir = $(libdir)/@PACKAGE@
-pkgincludedir = $(includedir)/@PACKAGE@
-am__cd = CDPATH="$${ZSH_VERSION+.}$(PATH_SEPARATOR)" && cd
-install_sh_DATA = $(install_sh) -c -m 644
-install_sh_PROGRAM = $(install_sh) -c
-install_sh_SCRIPT = $(install_sh) -c
-INSTALL_HEADER = $(INSTALL_DATA)
-transform = $(program_transform_name)
-NORMAL_INSTALL = :
-PRE_INSTALL = :
-POST_INSTALL = :
-NORMAL_UNINSTALL = :
-PRE_UNINSTALL = :
-POST_UNINSTALL = :
-build_triplet = @build@
-host_triplet = @host@
-subdir = tests/touch
-DIST_COMMON = $(srcdir)/Makefile.am $(srcdir)/Makefile.in
-ACLOCAL_M4 = $(top_srcdir)/aclocal.m4
-am__aclocal_m4_deps = $(top_srcdir)/m4/absolute-header.m4 \
- $(top_srcdir)/m4/acl.m4 $(top_srcdir)/m4/alloca.m4 \
- $(top_srcdir)/m4/allocsa.m4 $(top_srcdir)/m4/argmatch.m4 \
- $(top_srcdir)/m4/arpa_inet_h.m4 $(top_srcdir)/m4/assert.m4 \
- $(top_srcdir)/m4/atexit.m4 $(top_srcdir)/m4/autobuild.m4 \
- $(top_srcdir)/m4/backupfile.m4 $(top_srcdir)/m4/base64.m4 \
- $(top_srcdir)/m4/bison.m4 $(top_srcdir)/m4/boottime.m4 \
- $(top_srcdir)/m4/c-strtod.m4 $(top_srcdir)/m4/calloc.m4 \
- $(top_srcdir)/m4/canon-host.m4 \
- $(top_srcdir)/m4/canonicalize.m4 \
- $(top_srcdir)/m4/chdir-long.m4 $(top_srcdir)/m4/check-decl.m4 \
- $(top_srcdir)/m4/chown.m4 $(top_srcdir)/m4/clock_time.m4 \
- $(top_srcdir)/m4/cloexec.m4 $(top_srcdir)/m4/close-stream.m4 \
- $(top_srcdir)/m4/closeout.m4 $(top_srcdir)/m4/codeset.m4 \
- $(top_srcdir)/m4/config-h.m4 $(top_srcdir)/m4/cycle-check.m4 \
- $(top_srcdir)/m4/d-ino.m4 $(top_srcdir)/m4/d-type.m4 \
- $(top_srcdir)/m4/dirfd.m4 $(top_srcdir)/m4/dirname.m4 \
- $(top_srcdir)/m4/dos.m4 $(top_srcdir)/m4/double-slash-root.m4 \
- $(top_srcdir)/m4/dup2.m4 $(top_srcdir)/m4/eealloc.m4 \
- $(top_srcdir)/m4/eoverflow.m4 $(top_srcdir)/m4/error.m4 \
- $(top_srcdir)/m4/euidaccess-stat.m4 \
- $(top_srcdir)/m4/euidaccess.m4 $(top_srcdir)/m4/exclude.m4 \
- $(top_srcdir)/m4/exitfail.m4 $(top_srcdir)/m4/extensions.m4 \
- $(top_srcdir)/m4/fchdir.m4 $(top_srcdir)/m4/fcntl-safer.m4 \
- $(top_srcdir)/m4/fcntl_h.m4 $(top_srcdir)/m4/fd-reopen.m4 \
- $(top_srcdir)/m4/file-type.m4 $(top_srcdir)/m4/fileblocks.m4 \
- $(top_srcdir)/m4/filemode.m4 $(top_srcdir)/m4/filenamecat.m4 \
- $(top_srcdir)/m4/flexmember.m4 $(top_srcdir)/m4/fnmatch.m4 \
- $(top_srcdir)/m4/fpending.m4 $(top_srcdir)/m4/fprintftime.m4 \
- $(top_srcdir)/m4/free.m4 $(top_srcdir)/m4/fstypename.m4 \
- $(top_srcdir)/m4/fsusage.m4 $(top_srcdir)/m4/ftruncate.m4 \
- $(top_srcdir)/m4/fts.m4 $(top_srcdir)/m4/getaddrinfo.m4 \
- $(top_srcdir)/m4/getcwd-abort-bug.m4 \
- $(top_srcdir)/m4/getcwd-path-max.m4 $(top_srcdir)/m4/getcwd.m4 \
- $(top_srcdir)/m4/getdate.m4 $(top_srcdir)/m4/getdelim.m4 \
- $(top_srcdir)/m4/getgroups.m4 $(top_srcdir)/m4/gethostname.m4 \
- $(top_srcdir)/m4/gethrxtime.m4 $(top_srcdir)/m4/getline.m4 \
- $(top_srcdir)/m4/getloadavg.m4 $(top_srcdir)/m4/getndelim2.m4 \
- $(top_srcdir)/m4/getopt.m4 $(top_srcdir)/m4/getpagesize.m4 \
- $(top_srcdir)/m4/getpass.m4 $(top_srcdir)/m4/gettext.m4 \
- $(top_srcdir)/m4/gettime.m4 $(top_srcdir)/m4/gettimeofday.m4 \
- $(top_srcdir)/m4/getugroups.m4 \
- $(top_srcdir)/m4/getusershell.m4 $(top_srcdir)/m4/glibc21.m4 \
- $(top_srcdir)/m4/gnulib-common.m4 \
- $(top_srcdir)/m4/gnulib-comp.m4 \
- $(top_srcdir)/m4/group-member.m4 \
- $(top_srcdir)/m4/hard-locale.m4 $(top_srcdir)/m4/hash.m4 \
- $(top_srcdir)/m4/host-os.m4 $(top_srcdir)/m4/human.m4 \
- $(top_srcdir)/m4/i-ring.m4 $(top_srcdir)/m4/iconv.m4 \
- $(top_srcdir)/m4/idcache.m4 $(top_srcdir)/m4/inet_ntop.m4 \
- $(top_srcdir)/m4/inline.m4 $(top_srcdir)/m4/intmax_t.m4 \
- $(top_srcdir)/m4/inttostr.m4 $(top_srcdir)/m4/inttypes-pri.m4 \
- $(top_srcdir)/m4/inttypes.m4 $(top_srcdir)/m4/inttypes_h.m4 \
- $(top_srcdir)/m4/isapipe.m4 $(top_srcdir)/m4/jm-macros.m4 \
- $(top_srcdir)/m4/jm-winsz1.m4 $(top_srcdir)/m4/jm-winsz2.m4 \
- $(top_srcdir)/m4/lchmod.m4 $(top_srcdir)/m4/lchown.m4 \
- $(top_srcdir)/m4/lib-check.m4 $(top_srcdir)/m4/lib-ignore.m4 \
- $(top_srcdir)/m4/lib-ld.m4 $(top_srcdir)/m4/lib-link.m4 \
- $(top_srcdir)/m4/lib-prefix.m4 $(top_srcdir)/m4/link-follow.m4 \
- $(top_srcdir)/m4/localcharset.m4 \
- $(top_srcdir)/m4/long-options.m4 \
- $(top_srcdir)/m4/longdouble.m4 $(top_srcdir)/m4/longlong.m4 \
- $(top_srcdir)/m4/ls-mntd-fs.m4 $(top_srcdir)/m4/lstat.m4 \
- $(top_srcdir)/m4/mbchar.m4 $(top_srcdir)/m4/mbiter.m4 \
- $(top_srcdir)/m4/mbrtowc.m4 $(top_srcdir)/m4/mbscasecmp.m4 \
- $(top_srcdir)/m4/mbstate_t.m4 $(top_srcdir)/m4/mbswidth.m4 \
- $(top_srcdir)/m4/md5.m4 $(top_srcdir)/m4/memcasecmp.m4 \
- $(top_srcdir)/m4/memchr.m4 $(top_srcdir)/m4/memcmp.m4 \
- $(top_srcdir)/m4/memcoll.m4 $(top_srcdir)/m4/memcpy.m4 \
- $(top_srcdir)/m4/memmove.m4 $(top_srcdir)/m4/mempcpy.m4 \
- $(top_srcdir)/m4/memrchr.m4 $(top_srcdir)/m4/memset.m4 \
- $(top_srcdir)/m4/memxfrm.m4 $(top_srcdir)/m4/mkancesdirs.m4 \
- $(top_srcdir)/m4/mkdir-p.m4 $(top_srcdir)/m4/mkdir-slash.m4 \
- $(top_srcdir)/m4/mkstemp.m4 $(top_srcdir)/m4/mktime.m4 \
- $(top_srcdir)/m4/modechange.m4 $(top_srcdir)/m4/mountlist.m4 \
- $(top_srcdir)/m4/mpsort.m4 $(top_srcdir)/m4/nanosleep.m4 \
- $(top_srcdir)/m4/netinet_in_h.m4 $(top_srcdir)/m4/nls.m4 \
- $(top_srcdir)/m4/openat.m4 $(top_srcdir)/m4/pathmax.m4 \
- $(top_srcdir)/m4/perl.m4 $(top_srcdir)/m4/physmem.m4 \
- $(top_srcdir)/m4/po.m4 $(top_srcdir)/m4/posixtm.m4 \
- $(top_srcdir)/m4/posixver.m4 $(top_srcdir)/m4/prereq.m4 \
- $(top_srcdir)/m4/progtest.m4 $(top_srcdir)/m4/putenv.m4 \
- $(top_srcdir)/m4/quote.m4 $(top_srcdir)/m4/quotearg.m4 \
- $(top_srcdir)/m4/randint.m4 $(top_srcdir)/m4/randperm.m4 \
- $(top_srcdir)/m4/randread.m4 $(top_srcdir)/m4/readlink.m4 \
- $(top_srcdir)/m4/readtokens.m4 $(top_srcdir)/m4/readutmp.m4 \
- $(top_srcdir)/m4/regex.m4 \
- $(top_srcdir)/m4/rename-dest-slash.m4 \
- $(top_srcdir)/m4/rename.m4 $(top_srcdir)/m4/rmdir-errno.m4 \
- $(top_srcdir)/m4/rmdir.m4 $(top_srcdir)/m4/root-dev-ino.m4 \
- $(top_srcdir)/m4/rpmatch.m4 $(top_srcdir)/m4/safe-read.m4 \
- $(top_srcdir)/m4/safe-write.m4 $(top_srcdir)/m4/same.m4 \
- $(top_srcdir)/m4/save-cwd.m4 $(top_srcdir)/m4/savedir.m4 \
- $(top_srcdir)/m4/savewd.m4 $(top_srcdir)/m4/setenv.m4 \
- $(top_srcdir)/m4/settime.m4 $(top_srcdir)/m4/sha1.m4 \
- $(top_srcdir)/m4/sha256.m4 $(top_srcdir)/m4/sha512.m4 \
- $(top_srcdir)/m4/sig2str.m4 $(top_srcdir)/m4/snprintf.m4 \
- $(top_srcdir)/m4/socklen.m4 $(top_srcdir)/m4/sockpfaf.m4 \
- $(top_srcdir)/m4/ssize_t.m4 $(top_srcdir)/m4/st_dm_mode.m4 \
- $(top_srcdir)/m4/stat-prog.m4 $(top_srcdir)/m4/stat-time.m4 \
- $(top_srcdir)/m4/stdarg.m4 $(top_srcdir)/m4/stdbool.m4 \
- $(top_srcdir)/m4/stdint.m4 $(top_srcdir)/m4/stdint_h.m4 \
- $(top_srcdir)/m4/stdio-safer.m4 $(top_srcdir)/m4/stdio_h.m4 \
- $(top_srcdir)/m4/stdlib-safer.m4 $(top_srcdir)/m4/stdlib_h.m4 \
- $(top_srcdir)/m4/stpcpy.m4 $(top_srcdir)/m4/strcspn.m4 \
- $(top_srcdir)/m4/strdup.m4 $(top_srcdir)/m4/strftime.m4 \
- $(top_srcdir)/m4/string_h.m4 $(top_srcdir)/m4/strndup.m4 \
- $(top_srcdir)/m4/strnlen.m4 $(top_srcdir)/m4/strnumcmp.m4 \
- $(top_srcdir)/m4/strpbrk.m4 $(top_srcdir)/m4/strtod.m4 \
- $(top_srcdir)/m4/strtoimax.m4 $(top_srcdir)/m4/strtol.m4 \
- $(top_srcdir)/m4/strtoll.m4 $(top_srcdir)/m4/strtoul.m4 \
- $(top_srcdir)/m4/strtoull.m4 $(top_srcdir)/m4/strtoumax.m4 \
- $(top_srcdir)/m4/strverscmp.m4 \
- $(top_srcdir)/m4/sys_socket_h.m4 \
- $(top_srcdir)/m4/sys_stat_h.m4 $(top_srcdir)/m4/sys_time_h.m4 \
- $(top_srcdir)/m4/tempname.m4 $(top_srcdir)/m4/time_h.m4 \
- $(top_srcdir)/m4/time_r.m4 $(top_srcdir)/m4/timespec.m4 \
- $(top_srcdir)/m4/tm_gmtoff.m4 $(top_srcdir)/m4/tzset.m4 \
- $(top_srcdir)/m4/unicodeio.m4 $(top_srcdir)/m4/unistd-safer.m4 \
- $(top_srcdir)/m4/unistd_h.m4 $(top_srcdir)/m4/unlink-busy.m4 \
- $(top_srcdir)/m4/unlinkdir.m4 $(top_srcdir)/m4/unlocked-io.m4 \
- $(top_srcdir)/m4/uptime.m4 $(top_srcdir)/m4/userspec.m4 \
- $(top_srcdir)/m4/utimbuf.m4 $(top_srcdir)/m4/utime.m4 \
- $(top_srcdir)/m4/utimecmp.m4 $(top_srcdir)/m4/utimens.m4 \
- $(top_srcdir)/m4/utimes-null.m4 $(top_srcdir)/m4/utimes.m4 \
- $(top_srcdir)/m4/vasnprintf.m4 $(top_srcdir)/m4/vasprintf.m4 \
- $(top_srcdir)/m4/wchar.m4 $(top_srcdir)/m4/wchar_t.m4 \
- $(top_srcdir)/m4/wctype.m4 $(top_srcdir)/m4/wcwidth.m4 \
- $(top_srcdir)/m4/wint_t.m4 $(top_srcdir)/m4/xalloc.m4 \
- $(top_srcdir)/m4/xfts.m4 $(top_srcdir)/m4/xgetcwd.m4 \
- $(top_srcdir)/m4/xnanosleep.m4 $(top_srcdir)/m4/xstrndup.m4 \
- $(top_srcdir)/m4/xstrtod.m4 $(top_srcdir)/m4/xstrtol.m4 \
- $(top_srcdir)/m4/yesno.m4 $(top_srcdir)/configure.ac
-am__configure_deps = $(am__aclocal_m4_deps) $(CONFIGURE_DEPENDENCIES) \
- $(ACLOCAL_M4)
-mkinstalldirs = $(install_sh) -d
-CONFIG_HEADER = $(top_builddir)/lib/config.h
-CONFIG_CLEAN_FILES =
-SOURCES =
-DIST_SOURCES =
-DISTFILES = $(DIST_COMMON) $(DIST_SOURCES) $(TEXINFOS) $(EXTRA_DIST)
-ABSOLUTE_DIRENT_H = @ABSOLUTE_DIRENT_H@
-ABSOLUTE_FCNTL_H = @ABSOLUTE_FCNTL_H@
-ABSOLUTE_INTTYPES_H = @ABSOLUTE_INTTYPES_H@
-ABSOLUTE_NETINET_IN_H = @ABSOLUTE_NETINET_IN_H@
-ABSOLUTE_STDINT_H = @ABSOLUTE_STDINT_H@
-ABSOLUTE_STDIO_H = @ABSOLUTE_STDIO_H@
-ABSOLUTE_STDLIB_H = @ABSOLUTE_STDLIB_H@
-ABSOLUTE_STRING_H = @ABSOLUTE_STRING_H@
-ABSOLUTE_SYS_SOCKET_H = @ABSOLUTE_SYS_SOCKET_H@
-ABSOLUTE_SYS_STAT_H = @ABSOLUTE_SYS_STAT_H@
-ABSOLUTE_SYS_TIME_H = @ABSOLUTE_SYS_TIME_H@
-ABSOLUTE_TIME_H = @ABSOLUTE_TIME_H@
-ABSOLUTE_UNISTD_H = @ABSOLUTE_UNISTD_H@
-ABSOLUTE_WCHAR_H = @ABSOLUTE_WCHAR_H@
-ABSOLUTE_WCTYPE_H = @ABSOLUTE_WCTYPE_H@
-ACLOCAL = @ACLOCAL@
-ALLOCA = @ALLOCA@
-ALLOCA_H = @ALLOCA_H@
-AMTAR = @AMTAR@
-ARPA_INET_H = @ARPA_INET_H@
-AUTOCONF = @AUTOCONF@
-AUTOHEADER = @AUTOHEADER@
-AUTOMAKE = @AUTOMAKE@
-AWK = @AWK@
-BITSIZEOF_PTRDIFF_T = @BITSIZEOF_PTRDIFF_T@
-BITSIZEOF_SIG_ATOMIC_T = @BITSIZEOF_SIG_ATOMIC_T@
-BITSIZEOF_SIZE_T = @BITSIZEOF_SIZE_T@
-BITSIZEOF_WCHAR_T = @BITSIZEOF_WCHAR_T@
-BITSIZEOF_WINT_T = @BITSIZEOF_WINT_T@
-CC = @CC@
-CCDEPMODE = @CCDEPMODE@
-CFLAGS = @CFLAGS@
-CPP = @CPP@
-CPPFLAGS = @CPPFLAGS@
-CYGPATH_W = @CYGPATH_W@
-DEFAULT_POSIX2_VERSION = @DEFAULT_POSIX2_VERSION@
-DEFS = @DEFS@
-DEPDIR = @DEPDIR@
-DF_PROG = @DF_PROG@
-DIRENT_H = @DIRENT_H@
-ECHO_C = @ECHO_C@
-ECHO_N = @ECHO_N@
-ECHO_T = @ECHO_T@
-EGREP = @EGREP@
-EOVERFLOW = @EOVERFLOW@
-EXEEXT = @EXEEXT@
-FCNTL_H = @FCNTL_H@
-FNMATCH_H = @FNMATCH_H@
-GETLOADAVG_LIBS = @GETLOADAVG_LIBS@
-GETOPT_H = @GETOPT_H@
-GLIBC21 = @GLIBC21@
-GMSGFMT = @GMSGFMT@
-GMSGFMT_015 = @GMSGFMT_015@
-GNULIB_CHOWN = @GNULIB_CHOWN@
-GNULIB_DUP2 = @GNULIB_DUP2@
-GNULIB_FCHDIR = @GNULIB_FCHDIR@
-GNULIB_FPRINTF_POSIX = @GNULIB_FPRINTF_POSIX@
-GNULIB_FTRUNCATE = @GNULIB_FTRUNCATE@
-GNULIB_GETCWD = @GNULIB_GETCWD@
-GNULIB_GETLOGIN_R = @GNULIB_GETLOGIN_R@
-GNULIB_GETSUBOPT = @GNULIB_GETSUBOPT@
-GNULIB_IMAXABS = @GNULIB_IMAXABS@
-GNULIB_IMAXDIV = @GNULIB_IMAXDIV@
-GNULIB_MBSCASECMP = @GNULIB_MBSCASECMP@
-GNULIB_MBSCASESTR = @GNULIB_MBSCASESTR@
-GNULIB_MBSCHR = @GNULIB_MBSCHR@
-GNULIB_MBSCSPN = @GNULIB_MBSCSPN@
-GNULIB_MBSLEN = @GNULIB_MBSLEN@
-GNULIB_MBSNCASECMP = @GNULIB_MBSNCASECMP@
-GNULIB_MBSPBRK = @GNULIB_MBSPBRK@
-GNULIB_MBSPCASECMP = @GNULIB_MBSPCASECMP@
-GNULIB_MBSRCHR = @GNULIB_MBSRCHR@
-GNULIB_MBSSEP = @GNULIB_MBSSEP@
-GNULIB_MBSSPN = @GNULIB_MBSSPN@
-GNULIB_MBSSTR = @GNULIB_MBSSTR@
-GNULIB_MBSTOK_R = @GNULIB_MBSTOK_R@
-GNULIB_MEMMEM = @GNULIB_MEMMEM@
-GNULIB_MEMPCPY = @GNULIB_MEMPCPY@
-GNULIB_MEMRCHR = @GNULIB_MEMRCHR@
-GNULIB_MKDTEMP = @GNULIB_MKDTEMP@
-GNULIB_MKSTEMP = @GNULIB_MKSTEMP@
-GNULIB_PRINTF_POSIX = @GNULIB_PRINTF_POSIX@
-GNULIB_READLINK = @GNULIB_READLINK@
-GNULIB_SNPRINTF = @GNULIB_SNPRINTF@
-GNULIB_SPRINTF_POSIX = @GNULIB_SPRINTF_POSIX@
-GNULIB_STPCPY = @GNULIB_STPCPY@
-GNULIB_STPNCPY = @GNULIB_STPNCPY@
-GNULIB_STRCASESTR = @GNULIB_STRCASESTR@
-GNULIB_STRCHRNUL = @GNULIB_STRCHRNUL@
-GNULIB_STRDUP = @GNULIB_STRDUP@
-GNULIB_STRNDUP = @GNULIB_STRNDUP@
-GNULIB_STRNLEN = @GNULIB_STRNLEN@
-GNULIB_STRPBRK = @GNULIB_STRPBRK@
-GNULIB_STRSEP = @GNULIB_STRSEP@
-GNULIB_STRTOIMAX = @GNULIB_STRTOIMAX@
-GNULIB_STRTOK_R = @GNULIB_STRTOK_R@
-GNULIB_STRTOUMAX = @GNULIB_STRTOUMAX@
-GNULIB_VFPRINTF_POSIX = @GNULIB_VFPRINTF_POSIX@
-GNULIB_VPRINTF_POSIX = @GNULIB_VPRINTF_POSIX@
-GNULIB_VSNPRINTF = @GNULIB_VSNPRINTF@
-GNULIB_VSPRINTF_POSIX = @GNULIB_VSPRINTF_POSIX@
-GNU_PACKAGE = @GNU_PACKAGE@
-GREP = @GREP@
-HAVE_DECL_GETLOGIN_R = @HAVE_DECL_GETLOGIN_R@
-HAVE_DECL_IMAXABS = @HAVE_DECL_IMAXABS@
-HAVE_DECL_IMAXDIV = @HAVE_DECL_IMAXDIV@
-HAVE_DECL_MEMMEM = @HAVE_DECL_MEMMEM@
-HAVE_DECL_MEMRCHR = @HAVE_DECL_MEMRCHR@
-HAVE_DECL_SNPRINTF = @HAVE_DECL_SNPRINTF@
-HAVE_DECL_STRDUP = @HAVE_DECL_STRDUP@
-HAVE_DECL_STRNCASECMP = @HAVE_DECL_STRNCASECMP@
-HAVE_DECL_STRNDUP = @HAVE_DECL_STRNDUP@
-HAVE_DECL_STRNLEN = @HAVE_DECL_STRNLEN@
-HAVE_DECL_STRTOIMAX = @HAVE_DECL_STRTOIMAX@
-HAVE_DECL_STRTOK_R = @HAVE_DECL_STRTOK_R@
-HAVE_DECL_STRTOUMAX = @HAVE_DECL_STRTOUMAX@
-HAVE_DECL_VSNPRINTF = @HAVE_DECL_VSNPRINTF@
-HAVE_DUP2 = @HAVE_DUP2@
-HAVE_FTRUNCATE = @HAVE_FTRUNCATE@
-HAVE_GETSUBOPT = @HAVE_GETSUBOPT@
-HAVE_INTTYPES_H = @HAVE_INTTYPES_H@
-HAVE_LONG_LONG_INT = @HAVE_LONG_LONG_INT@
-HAVE_MEMPCPY = @HAVE_MEMPCPY@
-HAVE_MKDTEMP = @HAVE_MKDTEMP@
-HAVE_NETINET_IN_H = @HAVE_NETINET_IN_H@
-HAVE_READLINK = @HAVE_READLINK@
-HAVE_SIGNED_SIG_ATOMIC_T = @HAVE_SIGNED_SIG_ATOMIC_T@
-HAVE_SIGNED_WCHAR_T = @HAVE_SIGNED_WCHAR_T@
-HAVE_SIGNED_WINT_T = @HAVE_SIGNED_WINT_T@
-HAVE_STDINT_H = @HAVE_STDINT_H@
-HAVE_STPCPY = @HAVE_STPCPY@
-HAVE_STPNCPY = @HAVE_STPNCPY@
-HAVE_STRCASECMP = @HAVE_STRCASECMP@
-HAVE_STRCASESTR = @HAVE_STRCASESTR@
-HAVE_STRCHRNUL = @HAVE_STRCHRNUL@
-HAVE_STRNDUP = @HAVE_STRNDUP@
-HAVE_STRPBRK = @HAVE_STRPBRK@
-HAVE_STRSEP = @HAVE_STRSEP@
-HAVE_STRUCT_TIMEVAL = @HAVE_STRUCT_TIMEVAL@
-HAVE_SYS_BITYPES_H = @HAVE_SYS_BITYPES_H@
-HAVE_SYS_INTTYPES_H = @HAVE_SYS_INTTYPES_H@
-HAVE_SYS_SOCKET_H = @HAVE_SYS_SOCKET_H@
-HAVE_SYS_TIME_H = @HAVE_SYS_TIME_H@
-HAVE_SYS_TYPES_H = @HAVE_SYS_TYPES_H@
-HAVE_UNISTD_H = @HAVE_UNISTD_H@
-HAVE_UNSIGNED_LONG_LONG_INT = @HAVE_UNSIGNED_LONG_LONG_INT@
-HAVE_WCTYPE_H = @HAVE_WCTYPE_H@
-HAVE_WINSOCK2_H = @HAVE_WINSOCK2_H@
-HAVE_WINT_T = @HAVE_WINT_T@
-HAVE_WS2TCPIP_H = @HAVE_WS2TCPIP_H@
-HAVE__BOOL = @HAVE__BOOL@
-HELP2MAN = @HELP2MAN@
-INSTALL = @INSTALL@
-INSTALL_DATA = @INSTALL_DATA@
-INSTALL_PROGRAM = @INSTALL_PROGRAM@
-INSTALL_SCRIPT = @INSTALL_SCRIPT@
-INSTALL_STRIP_PROGRAM = @INSTALL_STRIP_PROGRAM@
-INTLLIBS = @INTLLIBS@
-INTL_MACOSX_LIBS = @INTL_MACOSX_LIBS@
-INTTYPES_H = @INTTYPES_H@
-KMEM_GROUP = @KMEM_GROUP@
-LDFLAGS = @LDFLAGS@
-LIBCOREUTILS_LIBDEPS = @LIBCOREUTILS_LIBDEPS@
-LIBCOREUTILS_LTLIBDEPS = @LIBCOREUTILS_LTLIBDEPS@
-LIBICONV = @LIBICONV@
-LIBINTL = @LIBINTL@
-LIBOBJS = @LIBOBJS@
-LIBS = @LIBS@
-LIB_ACL = @LIB_ACL@
-LIB_ACL_TRIVIAL = @LIB_ACL_TRIVIAL@
-LIB_CLOCK_GETTIME = @LIB_CLOCK_GETTIME@
-LIB_CRYPT = @LIB_CRYPT@
-LIB_EACCESS = @LIB_EACCESS@
-LIB_FDATASYNC = @LIB_FDATASYNC@
-LIB_GETHRXTIME = @LIB_GETHRXTIME@
-LIB_NANOSLEEP = @LIB_NANOSLEEP@
-LN_S = @LN_S@
-LTLIBICONV = @LTLIBICONV@
-LTLIBINTL = @LTLIBINTL@
-LTLIBOBJS = @LTLIBOBJS@
-MAKEINFO = @MAKEINFO@
-MAN = @MAN@
-MKDIR_P = @MKDIR_P@
-MSGFMT = @MSGFMT@
-MSGFMT_015 = @MSGFMT_015@
-MSGMERGE = @MSGMERGE@
-NEED_SETGID = @NEED_SETGID@
-NETINET_IN_H = @NETINET_IN_H@
-OBJEXT = @OBJEXT@
-OPTIONAL_BIN_PROGS = @OPTIONAL_BIN_PROGS@
-PACKAGE = @PACKAGE@
-PACKAGE_BUGREPORT = @PACKAGE_BUGREPORT@
-PACKAGE_NAME = @PACKAGE_NAME@
-PACKAGE_STRING = @PACKAGE_STRING@
-PACKAGE_TARNAME = @PACKAGE_TARNAME@
-PACKAGE_VERSION = @PACKAGE_VERSION@
-PATH_SEPARATOR = @PATH_SEPARATOR@
-PERL = @PERL@
-POSUB = @POSUB@
-POW_LIB = @POW_LIB@
-PRIPTR_PREFIX = @PRIPTR_PREFIX@
-PRI_MACROS_BROKEN = @PRI_MACROS_BROKEN@
-PTRDIFF_T_SUFFIX = @PTRDIFF_T_SUFFIX@
-RANLIB = @RANLIB@
-REPLACE_CHOWN = @REPLACE_CHOWN@
-REPLACE_FCHDIR = @REPLACE_FCHDIR@
-REPLACE_FPRINTF = @REPLACE_FPRINTF@
-REPLACE_GETCWD = @REPLACE_GETCWD@
-REPLACE_GETTIMEOFDAY = @REPLACE_GETTIMEOFDAY@
-REPLACE_LOCALTIME_R = @REPLACE_LOCALTIME_R@
-REPLACE_MKSTEMP = @REPLACE_MKSTEMP@
-REPLACE_NANOSLEEP = @REPLACE_NANOSLEEP@
-REPLACE_PRINTF = @REPLACE_PRINTF@
-REPLACE_SNPRINTF = @REPLACE_SNPRINTF@
-REPLACE_SPRINTF = @REPLACE_SPRINTF@
-REPLACE_STRPTIME = @REPLACE_STRPTIME@
-REPLACE_TIMEGM = @REPLACE_TIMEGM@
-REPLACE_VFPRINTF = @REPLACE_VFPRINTF@
-REPLACE_VPRINTF = @REPLACE_VPRINTF@
-REPLACE_VSNPRINTF = @REPLACE_VSNPRINTF@
-REPLACE_VSPRINTF = @REPLACE_VSPRINTF@
-SEQ_LIBM = @SEQ_LIBM@
-SET_MAKE = @SET_MAKE@
-SHELL = @SHELL@
-SIG_ATOMIC_T_SUFFIX = @SIG_ATOMIC_T_SUFFIX@
-SIZE_T_SUFFIX = @SIZE_T_SUFFIX@
-STDBOOL_H = @STDBOOL_H@
-STDINT_H = @STDINT_H@
-STRIP = @STRIP@
-SYS_SOCKET_H = @SYS_SOCKET_H@
-SYS_STAT_H = @SYS_STAT_H@
-SYS_TIME_H = @SYS_TIME_H@
-SYS_TIME_H_DEFINES_STRUCT_TIMESPEC = @SYS_TIME_H_DEFINES_STRUCT_TIMESPEC@
-TIME_H_DEFINES_STRUCT_TIMESPEC = @TIME_H_DEFINES_STRUCT_TIMESPEC@
-U = @U@
-USE_NLS = @USE_NLS@
-VERSION = @VERSION@
-WCHAR_H = @WCHAR_H@
-WCHAR_T_SUFFIX = @WCHAR_T_SUFFIX@
-WCTYPE_H = @WCTYPE_H@
-WINT_T_SUFFIX = @WINT_T_SUFFIX@
-XGETTEXT = @XGETTEXT@
-XGETTEXT_015 = @XGETTEXT_015@
-YACC = @YACC@
-YFLAGS = @YFLAGS@
-abs_builddir = @abs_builddir@
-abs_srcdir = @abs_srcdir@
-abs_top_builddir = @abs_top_builddir@
-abs_top_srcdir = @abs_top_srcdir@
-ac_ct_CC = @ac_ct_CC@
-am__include = @am__include@
-am__leading_dot = @am__leading_dot@
-am__quote = @am__quote@
-am__tar = @am__tar@
-am__untar = @am__untar@
-bindir = @bindir@
-build = @build@
-build_alias = @build_alias@
-build_cpu = @build_cpu@
-build_os = @build_os@
-build_vendor = @build_vendor@
-builddir = @builddir@
-datadir = @datadir@
-datarootdir = @datarootdir@
-docdir = @docdir@
-dvidir = @dvidir@
-exec_prefix = @exec_prefix@
-gl_LIBOBJS = @gl_LIBOBJS@
-gl_LTLIBOBJS = @gl_LTLIBOBJS@
-host = @host@
-host_alias = @host_alias@
-host_cpu = @host_cpu@
-host_os = @host_os@
-host_vendor = @host_vendor@
-htmldir = @htmldir@
-includedir = @includedir@
-infodir = @infodir@
-install_sh = @install_sh@
-libdir = @libdir@
-libexecdir = @libexecdir@
-localedir = @localedir@
-localstatedir = @localstatedir@
-mandir = @mandir@
-mkdir_p = @mkdir_p@
-oldincludedir = @oldincludedir@
-pdfdir = @pdfdir@
-prefix = @prefix@
-program_transform_name = @program_transform_name@
-psdir = @psdir@
-sbindir = @sbindir@
-sharedstatedir = @sharedstatedir@
-srcdir = @srcdir@
-sysconfdir = @sysconfdir@
-target_alias = @target_alias@
-top_builddir = @top_builddir@
-top_srcdir = @top_srcdir@
-TESTS = \
- read-only \
- relative \
- not-owner \
- no-create-missing \
- fail-diag dir-1 dangling-symlink empty-file fifo no-rights obsolescent
-
-EXTRA_DIST = $(TESTS)
-TESTS_ENVIRONMENT = \
- host_triplet=$(host_triplet) \
- CU_TEST_NAME=`basename $(abs_srcdir)`,$$tst \
- PATH="$(VG_PATH_PREFIX)`pwd`/../../src$(PATH_SEPARATOR)$$PATH"
-
-all: all-am
-
-.SUFFIXES:
-$(srcdir)/Makefile.in: $(srcdir)/Makefile.am $(am__configure_deps)
- @for dep in $?; do \
- case '$(am__configure_deps)' in \
- *$$dep*) \
- cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh \
- && exit 0; \
- exit 1;; \
- esac; \
- done; \
- echo ' cd $(top_srcdir) && $(AUTOMAKE) --gnu tests/touch/Makefile'; \
- cd $(top_srcdir) && \
- $(AUTOMAKE) --gnu tests/touch/Makefile
-.PRECIOUS: Makefile
-Makefile: $(srcdir)/Makefile.in $(top_builddir)/config.status
- @case '$?' in \
- *config.status*) \
- cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh;; \
- *) \
- echo ' cd $(top_builddir) && $(SHELL) ./config.status $(subdir)/$@ $(am__depfiles_maybe)'; \
- cd $(top_builddir) && $(SHELL) ./config.status $(subdir)/$@ $(am__depfiles_maybe);; \
- esac;
-
-$(top_builddir)/config.status: $(top_srcdir)/configure $(CONFIG_STATUS_DEPENDENCIES)
- cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh
-
-$(top_srcdir)/configure: $(am__configure_deps)
- cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh
-$(ACLOCAL_M4): $(am__aclocal_m4_deps)
- cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh
-tags: TAGS
-TAGS:
-
-ctags: CTAGS
-CTAGS:
-
-
-check-TESTS: $(TESTS)
- @failed=0; all=0; xfail=0; xpass=0; skip=0; ws='[ ]'; \
- srcdir=$(srcdir); export srcdir; \
- list=' $(TESTS) '; \
- if test -n "$$list"; then \
- for tst in $$list; do \
- if test -f ./$$tst; then dir=./; \
- elif test -f $$tst; then dir=; \
- else dir="$(srcdir)/"; fi; \
- if $(TESTS_ENVIRONMENT) $${dir}$$tst; then \
- all=`expr $$all + 1`; \
- case " $(XFAIL_TESTS) " in \
- *$$ws$$tst$$ws*) \
- xpass=`expr $$xpass + 1`; \
- failed=`expr $$failed + 1`; \
- echo "XPASS: $$tst"; \
- ;; \
- *) \
- echo "PASS: $$tst"; \
- ;; \
- esac; \
- elif test $$? -ne 77; then \
- all=`expr $$all + 1`; \
- case " $(XFAIL_TESTS) " in \
- *$$ws$$tst$$ws*) \
- xfail=`expr $$xfail + 1`; \
- echo "XFAIL: $$tst"; \
- ;; \
- *) \
- failed=`expr $$failed + 1`; \
- echo "FAIL: $$tst"; \
- ;; \
- esac; \
- else \
- skip=`expr $$skip + 1`; \
- echo "SKIP: $$tst"; \
- fi; \
- done; \
- if test "$$failed" -eq 0; then \
- if test "$$xfail" -eq 0; then \
- banner="All $$all tests passed"; \
- else \
- banner="All $$all tests behaved as expected ($$xfail expected failures)"; \
- fi; \
- else \
- if test "$$xpass" -eq 0; then \
- banner="$$failed of $$all tests failed"; \
- else \
- banner="$$failed of $$all tests did not behave as expected ($$xpass unexpected passes)"; \
- fi; \
- fi; \
- dashes="$$banner"; \
- skipped=""; \
- if test "$$skip" -ne 0; then \
- skipped="($$skip tests were not run)"; \
- test `echo "$$skipped" | wc -c` -le `echo "$$banner" | wc -c` || \
- dashes="$$skipped"; \
- fi; \
- report=""; \
- if test "$$failed" -ne 0 && test -n "$(PACKAGE_BUGREPORT)"; then \
- report="Please report to $(PACKAGE_BUGREPORT)"; \
- test `echo "$$report" | wc -c` -le `echo "$$banner" | wc -c` || \
- dashes="$$report"; \
- fi; \
- dashes=`echo "$$dashes" | sed s/./=/g`; \
- echo "$$dashes"; \
- echo "$$banner"; \
- test -z "$$skipped" || echo "$$skipped"; \
- test -z "$$report" || echo "$$report"; \
- echo "$$dashes"; \
- test "$$failed" -eq 0; \
- else :; fi
-
-distdir: $(DISTFILES)
- @srcdirstrip=`echo "$(srcdir)" | sed 's/[].[^$$\\*]/\\\\&/g'`; \
- topsrcdirstrip=`echo "$(top_srcdir)" | sed 's/[].[^$$\\*]/\\\\&/g'`; \
- list='$(DISTFILES)'; \
- dist_files=`for file in $$list; do echo $$file; done | \
- sed -e "s|^$$srcdirstrip/||;t" \
- -e "s|^$$topsrcdirstrip/|$(top_builddir)/|;t"`; \
- case $$dist_files in \
- */*) $(MKDIR_P) `echo "$$dist_files" | \
- sed '/\//!d;s|^|$(distdir)/|;s,/[^/]*$$,,' | \
- sort -u` ;; \
- esac; \
- for file in $$dist_files; do \
- if test -f $$file || test -d $$file; then d=.; else d=$(srcdir); fi; \
- if test -d $$d/$$file; then \
- dir=`echo "/$$file" | sed -e 's,/[^/]*$$,,'`; \
- if test -d $(srcdir)/$$file && test $$d != $(srcdir); then \
- cp -pR $(srcdir)/$$file $(distdir)$$dir || exit 1; \
- fi; \
- cp -pR $$d/$$file $(distdir)$$dir || exit 1; \
- else \
- test -f $(distdir)/$$file \
- || cp -p $$d/$$file $(distdir)/$$file \
- || exit 1; \
- fi; \
- done
-check-am: all-am
- $(MAKE) $(AM_MAKEFLAGS) check-TESTS
-check: check-am
-all-am: Makefile
-installdirs:
-install: install-am
-install-exec: install-exec-am
-install-data: install-data-am
-uninstall: uninstall-am
-
-install-am: all-am
- @$(MAKE) $(AM_MAKEFLAGS) install-exec-am install-data-am
-
-installcheck: installcheck-am
-install-strip:
- $(MAKE) $(AM_MAKEFLAGS) INSTALL_PROGRAM="$(INSTALL_STRIP_PROGRAM)" \
- install_sh_PROGRAM="$(INSTALL_STRIP_PROGRAM)" INSTALL_STRIP_FLAG=-s \
- `test -z '$(STRIP)' || \
- echo "INSTALL_PROGRAM_ENV=STRIPPROG='$(STRIP)'"` install
-mostlyclean-generic:
-
-clean-generic:
-
-distclean-generic:
- -test -z "$(CONFIG_CLEAN_FILES)" || rm -f $(CONFIG_CLEAN_FILES)
-
-maintainer-clean-generic:
- @echo "This command is intended for maintainers to use"
- @echo "it deletes files that may require special tools to rebuild."
-clean: clean-am
-
-clean-am: clean-generic mostlyclean-am
-
-distclean: distclean-am
- -rm -f Makefile
-distclean-am: clean-am distclean-generic
-
-dvi: dvi-am
-
-dvi-am:
-
-html: html-am
-
-info: info-am
-
-info-am:
-
-install-data-am:
-
-install-dvi: install-dvi-am
-
-install-exec-am:
-
-install-html: install-html-am
-
-install-info: install-info-am
-
-install-man:
-
-install-pdf: install-pdf-am
-
-install-ps: install-ps-am
-
-installcheck-am:
-
-maintainer-clean: maintainer-clean-am
- -rm -f Makefile
-maintainer-clean-am: distclean-am maintainer-clean-generic
-
-mostlyclean: mostlyclean-am
-
-mostlyclean-am: mostlyclean-generic
-
-pdf: pdf-am
-
-pdf-am:
-
-ps: ps-am
-
-ps-am:
-
-uninstall-am:
-
-.MAKE: install-am install-strip
-
-.PHONY: all all-am check check-TESTS check-am clean clean-generic \
- distclean distclean-generic distdir dvi dvi-am html html-am \
- info info-am install install-am install-data install-data-am \
- install-dvi install-dvi-am install-exec install-exec-am \
- install-html install-html-am install-info install-info-am \
- install-man install-pdf install-pdf-am install-ps \
- install-ps-am install-strip installcheck installcheck-am \
- installdirs maintainer-clean maintainer-clean-generic \
- mostlyclean mostlyclean-generic pdf pdf-am ps ps-am uninstall \
- uninstall-am
-
-# Tell versions [3.59,3.63) of GNU make to not export all variables.
-# Otherwise a system limit (for SysV at least) may be exceeded.
-.NOEXPORT:
diff --git a/tests/touch/dangling-symlink b/tests/touch/dangling-symlink
deleted file mode 100755
index 2f43902..0000000
--- a/tests/touch/dangling-symlink
+++ /dev/null
@@ -1,56 +0,0 @@
-#!/bin/sh
-# Make sure touch can create a file through a dangling symlink.
-# This was broken in the 4.0[e-i] test releases.
-
-# Copyright (C) 1999, 2000 Free Software Foundation, Inc.
-
-# This program is free software; you can redistribute it and/or modify
-# it under the terms of the GNU General Public License as published by
-# the Free Software Foundation; either version 2 of the License, or
-# (at your option) any later version.
-
-# This program is distributed in the hope that it will be useful,
-# but WITHOUT ANY WARRANTY; without even the implied warranty of
-# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
-# GNU General Public License for more details.
-
-# You should have received a copy of the GNU General Public License
-# along with this program; if not, write to the Free Software
-# Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA
-# 02110-1301, USA.
-
-if test "$VERBOSE" = yes; then
- set -x
- touch --version
-fi
-
-rm -f touch-target t-symlink
-ln -s touch-target t-symlink
-fail=0
-
-# This used to infloop.
-touch t-symlink || fail=1
-
-test -f touch-target || fail=1
-rm -f touch-target t-symlink
-
-if test $fail = 1; then
- case $host_triplet in
- *linux-gnu*)
- case "`uname -r`" in
- 2.3.9[0-9]*)
- cat 1>&2 <<EOF
-====================================================
-$0: WARNING!!!
-This version of the Linux kernel causes touch to fail
-when operating on dangling symlinks.
-====================================================
-EOF
- exit 77
- ;;
- esac
- ;;
- esac
-fi
-
-exit $fail
diff --git a/tests/touch/dangling-symlink.sh b/tests/touch/dangling-symlink.sh
new file mode 100755
index 0000000..07223ff
--- /dev/null
+++ b/tests/touch/dangling-symlink.sh
@@ -0,0 +1,49 @@
+#!/bin/sh
+# Make sure touch can create a file through a dangling symlink.
+# This was broken in the 4.0[e-i] test releases.
+
+# Copyright (C) 1999-2016 Free Software Foundation, Inc.
+
+# This program is free software: you can redistribute it and/or modify
+# it under the terms of the GNU General Public License as published by
+# the Free Software Foundation, either version 3 of the License, or
+# (at your option) any later version.
+
+# This program is distributed in the hope that it will be useful,
+# but WITHOUT ANY WARRANTY; without even the implied warranty of
+# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
+# GNU General Public License for more details.
+
+# You should have received a copy of the GNU General Public License
+# along with this program. If not, see <http://www.gnu.org/licenses/>.
+
+. "${srcdir=.}/tests/init.sh"; path_prepend_ ./src
+print_ver_ touch
+
+rm -f touch-target t-symlink
+ln -s touch-target t-symlink
+
+# This used to infloop.
+touch t-symlink || fail=1
+
+test -f touch-target || fail=1
+rm -f touch-target t-symlink
+
+if test $fail = 1; then
+ case $host_triplet in
+ *linux-gnu*)
+ case "$(uname -r)" in
+ 2.3.9[0-9]*)
+ skip_ \
+'****************************************************
+WARNING!!!
+This version of the Linux kernel causes touch to fail
+when operating on dangling symlinks.
+****************************************************'
+ ;;
+ esac
+ ;;
+ esac
+fi
+
+Exit $fail
diff --git a/tests/touch/dir-1 b/tests/touch/dir-1
deleted file mode 100755
index bbfbd68..0000000
--- a/tests/touch/dir-1
+++ /dev/null
@@ -1,12 +0,0 @@
-#!/bin/sh
-# Make sure touch can operate on a directory.
-# This was broken in the 4.0[efg] test releases.
-
-if test "$VERBOSE" = yes; then
- set -x
- touch --version
-fi
-
-fail=0
-touch . || fail=1
-exit $fail
diff --git a/tests/touch/dir-1.sh b/tests/touch/dir-1.sh
new file mode 100755
index 0000000..cb0e172
--- /dev/null
+++ b/tests/touch/dir-1.sh
@@ -0,0 +1,9 @@
+#!/bin/sh
+# Make sure touch can operate on a directory.
+# This was broken in the 4.0[efg] test releases.
+
+. "${srcdir=.}/tests/init.sh"; path_prepend_ ./src
+print_ver_ touch
+
+touch . || fail=1
+Exit $fail
diff --git a/tests/touch/empty-file b/tests/touch/empty-file
deleted file mode 100755
index b918362..0000000
--- a/tests/touch/empty-file
+++ /dev/null
@@ -1,93 +0,0 @@
-#!/bin/sh
-# Make sure touch can set the mtime on an empty file.
-
-# Copyright (C) 1998, 1999, 2000, 2005, 2006 Free Software Foundation, Inc.
-
-# This program is free software; you can redistribute it and/or modify
-# it under the terms of the GNU General Public License as published by
-# the Free Software Foundation; either version 2 of the License, or
-# (at your option) any later version.
-
-# This program is distributed in the hope that it will be useful,
-# but WITHOUT ANY WARRANTY; without even the implied warranty of
-# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
-# GNU General Public License for more details.
-
-# You should have received a copy of the GNU General Public License
-# along with this program; if not, write to the Free Software
-# Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA
-# 02110-1301, USA.
-
-
-# Volker Borchert reported that touch 3.16r (and presumably all before that)
-# fails to work on SunOS 4.1.3 with `most of the recommended patches' when
-# the empty file is on an NFS-mounted 4.2 volume.
-
-if test "$VERBOSE" = yes; then
- set -x
- touch --version
-fi
-
-. $srcdir/../envvar-check
-
-DEFAULT_SLEEP_SECONDS=2
-SLEEP_SECONDS=${SLEEP_SECONDS=$DEFAULT_SLEEP_SECONDS}
-
-fail=0
-
-# FIXME: find writable directories on other partitions
-# and run the test in those directories, too.
-
-: ${TOUCH_DIR_LIST=.}
-
-framework_failure=0
-
-for d in $TOUCH_DIR_LIST; do
- rm -rf $d/a $d/b $d/c
- > $d/a || framework_failure=1
- test -f $d/a || framework_failure=1
- > $d/b || framework_failure=1
- test -f $d/b || framework_failure=1
- > $d/c || framework_failure=1
- test -f $d/c || framework_failure=1
-done
-
-if test $framework_failure = 1; then
- echo 'failure in testing framework'
- exit 1
-fi
-
-echo sleeping for $SLEEP_SECONDS seconds...
-sleep $SLEEP_SECONDS
-for d in $TOUCH_DIR_LIST; do
- touch $d/a || fail=1
- set x `ls -t $d/a $d/b`
- test "$*" = "x $d/a $d/b" || fail=1
-done
-
-echo sleeping for $SLEEP_SECONDS seconds...
-sleep $SLEEP_SECONDS
-for d in $TOUCH_DIR_LIST; do
- touch $d/b
- set x `ls -t $d/a $d/b`
- test "$*" = "x $d/b $d/a" || fail=1
-
- if touch - 1< $d/c 2> /dev/null; then
- set x `ls -t $d/a $d/c`
- test "$*" = "x $d/c $d/a" || fail=1
- fi
-
- rm -rf $d/a $d/b $d/c
-done
-
-if test $fail != 0; then
- cat 1>&2 <<EOF
-*** This test has just failed. That can happen when the test is run in an
-*** NFS-mounted directory on a system whose clock is not well synchronized
-*** with that of the NFS server. If you think that is the reason, set the
-*** environment variable SLEEP_SECONDS to some number of seconds larger than
-*** the default of $DEFAULT_SLEEP_SECONDS and rerun the test.
-EOF
-fi
-
-exit $fail
diff --git a/tests/touch/empty-file.sh b/tests/touch/empty-file.sh
new file mode 100755
index 0000000..10fe299
--- /dev/null
+++ b/tests/touch/empty-file.sh
@@ -0,0 +1,80 @@
+#!/bin/sh
+# Make sure touch can set the mtime on an empty file.
+
+# Copyright (C) 1998-2016 Free Software Foundation, Inc.
+
+# This program is free software: you can redistribute it and/or modify
+# it under the terms of the GNU General Public License as published by
+# the Free Software Foundation, either version 3 of the License, or
+# (at your option) any later version.
+
+# This program is distributed in the hope that it will be useful,
+# but WITHOUT ANY WARRANTY; without even the implied warranty of
+# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
+# GNU General Public License for more details.
+
+# You should have received a copy of the GNU General Public License
+# along with this program. If not, see <http://www.gnu.org/licenses/>.
+
+
+# Volker Borchert reported that touch 3.16r (and presumably all before that)
+# fails to work on SunOS 4.1.3 with 'most of the recommended patches' when
+# the empty file is on an NFS-mounted 4.2 volume.
+
+. "${srcdir=.}/tests/init.sh"; path_prepend_ ./src
+print_ver_ touch
+
+DEFAULT_SLEEP_SECONDS=2
+SLEEP_SECONDS=${SLEEP_SECONDS=$DEFAULT_SLEEP_SECONDS}
+
+
+# FIXME: find writable directories on other partitions
+# and run the test in those directories, too.
+
+: ${TOUCH_DIR_LIST=.}
+
+
+for d in $TOUCH_DIR_LIST; do
+ rm -rf $d/a $d/b $d/c
+ > $d/a || framework_failure_
+ test -f $d/a || framework_failure_
+ > $d/b || framework_failure_
+ test -f $d/b || framework_failure_
+ > $d/c || framework_failure_
+ test -f $d/c || framework_failure_
+done
+
+echo sleeping for $SLEEP_SECONDS seconds...
+sleep $SLEEP_SECONDS
+for d in $TOUCH_DIR_LIST; do
+ touch $d/a || fail=1
+ set x $(ls -t $d/a $d/b)
+ test "$*" = "x $d/a $d/b" || fail=1
+done
+
+echo sleeping for $SLEEP_SECONDS seconds...
+sleep $SLEEP_SECONDS
+for d in $TOUCH_DIR_LIST; do
+ touch $d/b
+ set x $(ls -t $d/a $d/b)
+ test "$*" = "x $d/b $d/a" || fail=1
+
+ if touch - 1< $d/c 2> /dev/null; then
+ set x $(ls -t $d/a $d/c)
+ test "$*" = "x $d/c $d/a" || fail=1
+ fi
+
+ rm -rf $d/a $d/b $d/c
+done
+
+if test $fail != 0; then
+ cat 1>&2 <<EOF
+*** This test has just failed. That can happen when the test is run in an
+*** NFS-mounted directory on a system whose clock is not well synchronized
+*** with that of the NFS server. If you think that is the reason, set the
+*** environment variable SLEEP_SECONDS to some number of seconds larger than
+*** the default of $DEFAULT_SLEEP_SECONDS and rerun the test.
+EOF
+fi
+
+Exit $fail
diff --git a/tests/touch/fail-diag b/tests/touch/fail-diag
deleted file mode 100755
index 082f754..0000000
--- a/tests/touch/fail-diag
+++ /dev/null
@@ -1,59 +0,0 @@
-#!/bin/sh
-# make sure touch gives reasonable diagnostics
-
-# Copyright (C) 2001, 2002, 2003, 2004, 2006 Free Software Foundation, Inc.
-
-# This program is free software; you can redistribute it and/or modify
-# it under the terms of the GNU General Public License as published by
-# the Free Software Foundation; either version 2 of the License, or
-# (at your option) any later version.
-
-# This program is distributed in the hope that it will be useful,
-# but WITHOUT ANY WARRANTY; without even the implied warranty of
-# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
-# GNU General Public License for more details.
-
-# You should have received a copy of the GNU General Public License
-# along with this program; if not, write to the Free Software
-# Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA
-# 02110-1301, USA.
-
-if test "$VERBOSE" = yes; then
- set -x
- touch --version
-fi
-
-. $srcdir/../envvar-check
-. $srcdir/../lang-default
-PRIV_CHECK_ARG=require-non-root . $srcdir/../priv-check
-
-pwd=`pwd`
-tmp=fail-diag.$$
-trap 'status=$?; cd "$pwd" && rm -rf $tmp && exit $status' 0
-trap '(exit $?); exit' 1 2 13 15
-
-framework_failure=0
-mkdir $tmp || framework_failure=1
-cd $tmp || framework_failure=1
-
-d1=no-$$
-dir=/$d1/such-dir
-# Ensure that $d1 doesn't already exist.
-ls -d $d1 2> /dev/null && framework_failure=1
-
-if test $framework_failure = 1; then
- echo 'failure in testing framework' 1>&2
- (exit 1); exit 1
-fi
-
-fail=0
-
-touch $dir > out 2>&1 && fail=1
-cat <<EOF > exp
-touch: cannot touch \`$dir': No such file or directory
-EOF
-
-cmp out exp || fail=1
-test $fail = 1 && diff out exp 2> /dev/null
-
-(exit $fail); exit $fail
diff --git a/tests/touch/fail-diag.sh b/tests/touch/fail-diag.sh
new file mode 100755
index 0000000..58f0285
--- /dev/null
+++ b/tests/touch/fail-diag.sh
@@ -0,0 +1,32 @@
+#!/bin/sh
+# make sure touch gives reasonable diagnostics
+
+# Copyright (C) 2001-2016 Free Software Foundation, Inc.
+
+# This program is free software: you can redistribute it and/or modify
+# it under the terms of the GNU General Public License as published by
+# the Free Software Foundation, either version 3 of the License, or
+# (at your option) any later version.
+
+# This program is distributed in the hope that it will be useful,
+# but WITHOUT ANY WARRANTY; without even the implied warranty of
+# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
+# GNU General Public License for more details.
+
+# You should have received a copy of the GNU General Public License
+# along with this program. If not, see <http://www.gnu.org/licenses/>.
+
+. "${srcdir=.}/tests/init.sh"; path_prepend_ ./src
+print_ver_ touch
+skip_if_root_
+
+file=/no-such-dir/file
+
+touch $file > out 2>&1 && fail=1
+cat <<EOF > exp
+touch: cannot touch '$file': No such file or directory
+EOF
+
+compare exp out || fail=1
+
+Exit $fail
diff --git a/tests/touch/fifo b/tests/touch/fifo
deleted file mode 100755
index dc33c0f..0000000
--- a/tests/touch/fifo
+++ /dev/null
@@ -1,48 +0,0 @@
-#!/bin/sh
-# Make sure touch works on fifos without hanging.
-
-# Copyright (C) 2000 Free Software Foundation, Inc.
-
-# This program is free software; you can redistribute it and/or modify
-# it under the terms of the GNU General Public License as published by
-# the Free Software Foundation; either version 2 of the License, or
-# (at your option) any later version.
-
-# This program is distributed in the hope that it will be useful,
-# but WITHOUT ANY WARRANTY; without even the implied warranty of
-# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
-# GNU General Public License for more details.
-
-# You should have received a copy of the GNU General Public License
-# along with this program; if not, write to the Free Software
-# Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA
-# 02110-1301, USA.
-
-if test "$VERBOSE" = yes; then
- set -x
- touch --version
-fi
-
-framework_failure=0
-
-tmp=fifo-$$
-rm -rf $tmp
-mkfifo $tmp || framework_failure=1
-
-if test $framework_failure = 1; then
- # Make an exception of this case -- usually we interpret framework-creation
- # failure as a test failure. However, in this case, when running on a SunOS
- # system using a disk NFS mounted from OpenBSD, the above fails like this:
- # mkfifo: cannot make fifo `fifo-10558': Not owner
- echo '********************************************'
- echo 'NOTICE: unable to create test prerequisites'
- echo '********************************************'
- exit 77
-fi
-
-fail=0
-
-touch $tmp || fail=1
-rm -rf $tmp
-
-exit $fail
diff --git a/tests/touch/fifo.sh b/tests/touch/fifo.sh
new file mode 100755
index 0000000..2b58c73
--- /dev/null
+++ b/tests/touch/fifo.sh
@@ -0,0 +1,27 @@
+#!/bin/sh
+# Make sure touch works on fifos without hanging.
+
+# Copyright (C) 2000-2016 Free Software Foundation, Inc.
+
+# This program is free software: you can redistribute it and/or modify
+# it under the terms of the GNU General Public License as published by
+# the Free Software Foundation, either version 3 of the License, or
+# (at your option) any later version.
+
+# This program is distributed in the hope that it will be useful,
+# but WITHOUT ANY WARRANTY; without even the implied warranty of
+# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
+# GNU General Public License for more details.
+
+# You should have received a copy of the GNU General Public License
+# along with this program. If not, see <http://www.gnu.org/licenses/>.
+
+. "${srcdir=.}/tests/init.sh"; path_prepend_ ./src
+print_ver_ touch
+
+mkfifo_or_skip_ fifo
+
+
+touch fifo || fail=1
+
+Exit $fail
diff --git a/tests/touch/no-create-missing b/tests/touch/no-create-missing
deleted file mode 100755
index cf6b6dc..0000000
--- a/tests/touch/no-create-missing
+++ /dev/null
@@ -1,56 +0,0 @@
-#!/bin/sh
-# Ensure that touch -c no-such-file no longer fails (it did in 4.1.8).
-
-# Copyright (C) 2002, 2004, 2005, 2006 Free Software Foundation, Inc.
-
-# This program is free software; you can redistribute it and/or modify
-# it under the terms of the GNU General Public License as published by
-# the Free Software Foundation; either version 2 of the License, or
-# (at your option) any later version.
-
-# This program is distributed in the hope that it will be useful,
-# but WITHOUT ANY WARRANTY; without even the implied warranty of
-# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
-# GNU General Public License for more details.
-
-# You should have received a copy of the GNU General Public License
-# along with this program; if not, write to the Free Software
-# Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA
-# 02110-1301, USA.
-
-if test "$VERBOSE" = yes; then
- set -x
- touch --version
-fi
-
-pwd=`pwd`
-tmp=`echo "$0"|sed 's,.*/,,'`.tmp
-trap 'status=$?; cd "$pwd" && rm -rf $tmp && exit $status' 0
-trap '(exit $?); exit' 1 2 13 15
-
-framework_failure=0
-mkdir $tmp || framework_failure=1
-cd $tmp || framework_failure=1
-
-if test $framework_failure = 1; then
- echo "$0: failure in testing framework" 1>&2
- (exit 1); exit 1
-fi
-
-fail=0
-
-touch -c no-file > /dev/null 2>&1 || fail=1
-touch -cm no-file > /dev/null 2>&1 || fail=1
-touch -ca no-file > /dev/null 2>&1 || fail=1
-
-# If >&- works, test "touch -c -" etc.
-# >&- apparently does not work in HP-UX 11.23.
-# This test is ineffective unless /dev/stdout also works.
-if "$pwd/../../src/test" -w /dev/stdout >/dev/null &&
- "$pwd/../../src/test" ! -w /dev/stdout >&-; then
- touch -c - >&- 2> /dev/null || fail=1
- touch -cm - >&- 2> /dev/null || fail=1
- touch -ca - >&- 2> /dev/null || fail=1
-fi
-
-(exit $fail); exit $fail
diff --git a/tests/touch/no-create-missing.sh b/tests/touch/no-create-missing.sh
new file mode 100755
index 0000000..8430c3f
--- /dev/null
+++ b/tests/touch/no-create-missing.sh
@@ -0,0 +1,37 @@
+#!/bin/sh
+# Ensure that touch -c no-such-file no longer fails (it did in 4.1.8).
+
+# Copyright (C) 2002-2016 Free Software Foundation, Inc.
+
+# This program is free software: you can redistribute it and/or modify
+# it under the terms of the GNU General Public License as published by
+# the Free Software Foundation, either version 3 of the License, or
+# (at your option) any later version.
+
+# This program is distributed in the hope that it will be useful,
+# but WITHOUT ANY WARRANTY; without even the implied warranty of
+# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
+# GNU General Public License for more details.
+
+# You should have received a copy of the GNU General Public License
+# along with this program. If not, see <http://www.gnu.org/licenses/>.
+
+. "${srcdir=.}/tests/init.sh"; path_prepend_ ./src
+print_ver_ touch test
+
+
+touch -c no-file > /dev/null 2>&1 || fail=1
+touch -cm no-file > /dev/null 2>&1 || fail=1
+touch -ca no-file > /dev/null 2>&1 || fail=1
+
+# If >&- works, test "touch -c -" etc.
+# >&- apparently does not work in HP-UX 11.23.
+# This test is ineffective unless /dev/stdout also works.
+if env test -w /dev/stdout >/dev/null &&
+ env test ! -w /dev/stdout >&-; then
+ touch -c - >&- 2> /dev/null || fail=1
+ touch -cm - >&- 2> /dev/null || fail=1
+ touch -ca - >&- 2> /dev/null || fail=1
+fi
+
+Exit $fail
diff --git a/tests/touch/no-dereference.sh b/tests/touch/no-dereference.sh
new file mode 100755
index 0000000..7994638
--- /dev/null
+++ b/tests/touch/no-dereference.sh
@@ -0,0 +1,82 @@
+#!/bin/sh
+# Ensure that touch -h works.
+
+# Copyright (C) 2009-2016 Free Software Foundation, Inc.
+
+# This program is free software: you can redistribute it and/or modify
+# it under the terms of the GNU General Public License as published by
+# the Free Software Foundation, either version 3 of the License, or
+# (at your option) any later version.
+
+# This program is distributed in the hope that it will be useful,
+# but WITHOUT ANY WARRANTY; without even the implied warranty of
+# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
+# GNU General Public License for more details.
+
+# You should have received a copy of the GNU General Public License
+# along with this program. If not, see <http://www.gnu.org/licenses/>.
+
+. "${srcdir=.}/tests/init.sh"; path_prepend_ ./src
+print_ver_ touch test
+
+ln -s nowhere dangling || framework_failure_
+touch file || framework_failure_
+ln -s file link || framework_failure_
+
+
+# These first tests should work on every platform.
+# -h does not create files, but it warns. Use -c to silence warning.
+returns_ 1 touch -h no-file 2> err || fail=1
+compare /dev/null err && fail=1
+touch -h -c no-file 2> err || fail=1
+compare /dev/null err || fail=1
+
+# -h works on regular files
+touch -h file || fail=1
+
+# -h coupled with -r uses timestamp of the symlink, not the referent.
+touch -h -r dangling file || fail=1
+test -f nowhere && fail=1
+
+# The remaining tests of -h require kernel support for changing symlink times.
+grep '^#define HAVE_UTIMENSAT 1' "$CONFIG_HEADER" > /dev/null ||
+grep '^#define HAVE_LUTIMES 1' "$CONFIG_HEADER" > /dev/null ||
+ skip_ 'this system lacks the utimensat function'
+
+# Changing time of dangling symlink is okay.
+# Skip the test if this fails, but the error text corresponds to
+# ENOSYS (possible with old kernel but new glibc).
+touch -h dangling 2> err
+case $? in
+ 0) test -f nowhere && fail=1
+ compare /dev/null err || fail=1;;
+ 1) grep 'Function not implemented' err \
+ && skip_ 'this system lacks the utimensat function'
+ fail=1;;
+ *) fail=1;;
+esac
+
+# Change the mtime of a symlink.
+touch -m -h -d 2009-10-10 link || fail=1
+case $(stat --format=%y link) in
+ 2009-10-10*) ;;
+ *) fail=1 ;;
+esac
+case $(stat --format=%y file) in
+ 2009-10-10*) fail=1;;
+esac
+
+# Test interactions with -.
+touch -h - > file || fail=1
+
+# If >&- works, test "touch -ch -" etc.
+# >&- apparently does not work in HP-UX 11.23.
+# This test is ineffective unless /dev/stdout also works.
+# If stdout is open, it is not a symlink.
+if env test -w /dev/stdout >/dev/null &&
+ env test ! -w /dev/stdout >&-; then
+ returns_ 1 touch -h - >&- || fail=1
+ touch -h -c - >&- || fail=1
+fi
+
+Exit $fail
diff --git a/tests/touch/no-rights b/tests/touch/no-rights
deleted file mode 100755
index 8faef99..0000000
--- a/tests/touch/no-rights
+++ /dev/null
@@ -1,57 +0,0 @@
-#!/bin/sh
-# Make sure touch can update the times on a file that is neither
-# readable nor writable.
-
-# Copyright (C) 1999, 2000, 2002, 2006 Free Software Foundation, Inc.
-
-# This program is free software; you can redistribute it and/or modify
-# it under the terms of the GNU General Public License as published by
-# the Free Software Foundation; either version 2 of the License, or
-# (at your option) any later version.
-
-# This program is distributed in the hope that it will be useful,
-# but WITHOUT ANY WARRANTY; without even the implied warranty of
-# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
-# GNU General Public License for more details.
-
-# You should have received a copy of the GNU General Public License
-# along with this program; if not, write to the Free Software
-# Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA
-# 02110-1301, USA.
-
-if test "$VERBOSE" = yes; then
- set -x
- touch --version
-fi
-
-. $srcdir/../envvar-check
-
-DEFAULT_SLEEP_SECONDS=2
-SLEEP_SECONDS=${SLEEP_SECONDS=$DEFAULT_SLEEP_SECONDS}
-
-t1=no-rw1
-t2=no-rw2
-rm -rf $t1 $t2
-: > $t1
-
-# Make sure $t2 is two seconds newer than $t1.
-echo sleeping for $SLEEP_SECONDS seconds...
-sleep $SLEEP_SECONDS
-: > $t2
-fail=0
-
-set x `ls -t $t1 $t2`
-test "$*" = "x $t2 $t1" || fail=1
-
-chmod 0 $t1
-touch -d tomorrow -c $t1 || fail=1
-
-set x `ls -t $t1 $t2`
-test "$*" = "x $t1 $t2" || fail=1
-
-# Also test the combination of --no-create and -a.
-touch -a --no-create $t1 || fail=1
-
-rm -f $t1 $t2
-
-exit $fail
diff --git a/tests/touch/no-rights.sh b/tests/touch/no-rights.sh
new file mode 100755
index 0000000..e972b47
--- /dev/null
+++ b/tests/touch/no-rights.sh
@@ -0,0 +1,40 @@
+#!/bin/sh
+# Make sure touch can update the times on a file that is neither
+# readable nor writable.
+
+# Copyright (C) 1999-2016 Free Software Foundation, Inc.
+
+# This program is free software: you can redistribute it and/or modify
+# it under the terms of the GNU General Public License as published by
+# the Free Software Foundation, either version 3 of the License, or
+# (at your option) any later version.
+
+# This program is distributed in the hope that it will be useful,
+# but WITHOUT ANY WARRANTY; without even the implied warranty of
+# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
+# GNU General Public License for more details.
+
+# You should have received a copy of the GNU General Public License
+# along with this program. If not, see <http://www.gnu.org/licenses/>.
+
+. "${srcdir=.}/tests/init.sh"; path_prepend_ ./src
+print_ver_ touch
+
+# Make sure t2 is newer than t1.
+touch -d '2000-01-01 00:00' t1 || framework_failure_
+touch -d '2000-01-02 00:00' t2 || framework_failure_
+
+set x $(ls -t t1 t2)
+test "$*" = "x t2 t1" || framework_failure_
+
+
+chmod 0 t1
+touch -d '2000-01-03 00:00' -c t1 || fail=1
+
+set x $(ls -t t1 t2)
+test "$*" = "x t1 t2" || fail=1
+
+# Also test the combination of --no-create and -a.
+touch -a --no-create t1 || fail=1
+
+Exit $fail
diff --git a/tests/touch/not-owner b/tests/touch/not-owner
deleted file mode 100755
index 4d63ad7..0000000
--- a/tests/touch/not-owner
+++ /dev/null
@@ -1,76 +0,0 @@
-#!/bin/sh
-# Make sure that touch gives reasonable diagnostics when applied
-# to an unwritable directory owned by some other user.
-
-# Copyright (C) 2003, 2004, 2005, 2006 Free Software Foundation, Inc.
-
-# This program is free software; you can redistribute it and/or modify
-# it under the terms of the GNU General Public License as published by
-# the Free Software Foundation; either version 2 of the License, or
-# (at your option) any later version.
-
-# This program is distributed in the hope that it will be useful,
-# but WITHOUT ANY WARRANTY; without even the implied warranty of
-# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
-# GNU General Public License for more details.
-
-# You should have received a copy of the GNU General Public License
-# along with this program; if not, write to the Free Software
-# Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA
-# 02110-1301, USA.
-
-if test "$VERBOSE" = yes; then
- set -x
- touch --version
-fi
-
-. $srcdir/../envvar-check
-. $srcdir/../lang-default
-PRIV_CHECK_ARG=require-non-root . $srcdir/../priv-check
-
-test=../../src/test
-if $test -w /; then
- echo Skipping because you have write access to /.
- (exit 77); exit 77
-fi
-
-if $test -O / || $test -G /; then
- echo Skipping because you own /.
- (exit 77); exit 77
-fi
-
-pwd=`pwd`
-t0=`echo "$0"|sed 's,.*/,,'`.tmp; tmp=$t0/$$
-trap 'status=$?; cd "$pwd" && chmod -R u+rwx $t0 && rm -rf $t0 && exit $status' 0
-trap '(exit $?); exit $?' 1 2 13 15
-
-framework_failure=0
-mkdir -p $tmp || framework_failure=1
-cd $tmp || framework_failure=1
-
-if test $framework_failure = 1; then
- echo "$0: failure in testing framework" 1>&2
- (exit 1); exit 1
-fi
-
-fail=0
-
-# Before fileutils-4.1, we'd get the following misleading
-# diagnostic instead of `...: Permission denied'.
-# touch: creating `/': Is a directory
-touch / > out 2>&1 && fail=1
-
-# On SunOS4, EPERM is `Not owner'.
-# On some *BSD systems it's `Operation not permitted'.
-for msg in 'Not owner' 'Operation not permitted' 'Permission denied'; do
- cat > exp <<EOF
-touch: setting times of \`/': $msg
-EOF
-
- cmp out exp > /dev/null 2>&1 && { match=1; break; }
-done
-test "$match" = 1 || fail=1
-
-test $fail = 1 && diff out exp 2> /dev/null
-
-(exit $fail); exit $fail
diff --git a/tests/touch/not-owner.sh b/tests/touch/not-owner.sh
new file mode 100755
index 0000000..118daab
--- /dev/null
+++ b/tests/touch/not-owner.sh
@@ -0,0 +1,55 @@
+#!/bin/sh
+# Make sure that touch gives reasonable diagnostics when applied
+# to an unwritable directory owned by some other user.
+
+# Copyright (C) 2003-2016 Free Software Foundation, Inc.
+
+# This program is free software: you can redistribute it and/or modify
+# it under the terms of the GNU General Public License as published by
+# the Free Software Foundation, either version 3 of the License, or
+# (at your option) any later version.
+
+# This program is distributed in the hope that it will be useful,
+# but WITHOUT ANY WARRANTY; without even the implied warranty of
+# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
+# GNU General Public License for more details.
+
+# You should have received a copy of the GNU General Public License
+# along with this program. If not, see <http://www.gnu.org/licenses/>.
+
+. "${srcdir=.}/tests/init.sh"; path_prepend_ ./src
+print_ver_ touch
+
+if env -- test -w /; then
+ skip_ you have write access to /.
+fi
+
+if env -- test -O / || env -- test -G /; then
+ skip_ "you own /."
+fi
+
+skip_if_root_
+
+
+# Before fileutils-4.1, we'd get the following misleading
+# diagnostic instead of '...: Permission denied'.
+# touch: creating '/': Is a directory
+touch / > out 2>&1 && fail=1
+
+# On SunOS4, EPERM is 'Not owner'.
+# On some *BSD systems it's 'Operation not permitted'.
+# On a system where root file system is mounted read-only
+# it's 'Read-only file system'.
+for msg in 'Not owner' 'Operation not permitted' 'Permission denied' \
+ 'Read-only file system'; do
+ cat > exp <<EOF
+touch: setting times of '/': $msg
+EOF
+
+ cmp out exp > /dev/null 2>&1 && { match=1; break; }
+done
+test "$match" = 1 || fail=1
+
+test $fail = 1 && compare exp out
+
+Exit $fail
diff --git a/tests/touch/now-owned-by-other.sh b/tests/touch/now-owned-by-other.sh
new file mode 100755
index 0000000..db51244
--- /dev/null
+++ b/tests/touch/now-owned-by-other.sh
@@ -0,0 +1,34 @@
+#!/bin/sh
+# Demonstrate that "touch -d now writable-but-owned-by-other" works.
+
+# Copyright (C) 2008-2016 Free Software Foundation, Inc.
+
+# This program is free software: you can redistribute it and/or modify
+# it under the terms of the GNU General Public License as published by
+# the Free Software Foundation, either version 3 of the License, or
+# (at your option) any later version.
+
+# This program is distributed in the hope that it will be useful,
+# but WITHOUT ANY WARRANTY; without even the implied warranty of
+# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
+# GNU General Public License for more details.
+
+# You should have received a copy of the GNU General Public License
+# along with this program. If not, see <http://www.gnu.org/licenses/>.
+
+. "${srcdir=.}/tests/init.sh"; path_prepend_ ./src
+print_ver_ touch
+require_root_
+
+# Create a file owned by root, and writable by $NON_ROOT_USERNAME.
+echo > root-owned || framework_failure_
+chgrp +$NON_ROOT_GID . root-owned || framework_failure_
+chmod g+w root-owned
+
+# Ensure that the current directory is searchable by $NON_ROOT_USERNAME.
+chmod g+x .
+
+chroot --skip-chdir --user=$NON_ROOT_USERNAME / env PATH="$PATH" \
+ touch -d now root-owned || fail=1
+
+Exit $fail
diff --git a/tests/touch/obsolescent b/tests/touch/obsolescent
deleted file mode 100755
index 0f99210..0000000
--- a/tests/touch/obsolescent
+++ /dev/null
@@ -1,60 +0,0 @@
-#!/bin/sh
-# Test touch with obsolescent 8- or 10-digit time stamps.
-
-# Copyright (C) 2000, 2004, 2005, 2006 Free Software Foundation, Inc.
-
-# This program is free software; you can redistribute it and/or modify
-# it under the terms of the GNU General Public License as published by
-# the Free Software Foundation; either version 2 of the License, or
-# (at your option) any later version.
-
-# This program is distributed in the hope that it will be useful,
-# but WITHOUT ANY WARRANTY; without even the implied warranty of
-# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
-# GNU General Public License for more details.
-
-# You should have received a copy of the GNU General Public License
-# along with this program; if not, write to the Free Software
-# Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA
-# 02110-1301, USA.
-
-_POSIX2_VERSION=199209; export _POSIX2_VERSION
-POSIXLY_CORRECT=1; export POSIXLY_CORRECT
-
-if test "$VERBOSE" = yes; then
- set -x
- touch --version
-fi
-
-pwd=`pwd`
-tmp=obsol.$$
-trap 'status=$?; cd "$pwd" && rm -rf $tmp && exit $status' 0
-trap '(exit $?); exit' 1 2 13 15
-
-framework_failure=0
-mkdir $tmp || framework_failure=1
-cd $tmp || framework_failure=1
-
-if test $framework_failure = 1; then
- echo 'failure in testing framework'
- (exit 1); exit 1
-fi
-
-fail=0
-
-yearstart=01010000
-
-for ones in 11111111 1111111111; do
- for args in $ones "-- $ones" "$yearstart $ones" "-- $yearstart $ones"; do
- touch $args || fail=1
- test -f $ones || fail=1
- test -f $yearstart && fail=1
- rm -f $ones || fail=1
- done
-done
-
-y2000=0101000000
-rm -f $y2000 file || fail=1
-touch $y2000 file && test -f $y2000 && test -f file || fail=1
-
-(exit $fail); exit $fail
diff --git a/tests/touch/obsolescent.sh b/tests/touch/obsolescent.sh
new file mode 100755
index 0000000..1ecd53d
--- /dev/null
+++ b/tests/touch/obsolescent.sh
@@ -0,0 +1,41 @@
+#!/bin/sh
+# Test touch with obsolescent 8- or 10-digit time stamps.
+
+# Copyright (C) 2000-2016 Free Software Foundation, Inc.
+
+# This program is free software: you can redistribute it and/or modify
+# it under the terms of the GNU General Public License as published by
+# the Free Software Foundation, either version 3 of the License, or
+# (at your option) any later version.
+
+# This program is distributed in the hope that it will be useful,
+# but WITHOUT ANY WARRANTY; without even the implied warranty of
+# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
+# GNU General Public License for more details.
+
+# You should have received a copy of the GNU General Public License
+# along with this program. If not, see <http://www.gnu.org/licenses/>.
+
+. "${srcdir=.}/tests/init.sh"; path_prepend_ ./src
+print_ver_ touch
+
+_POSIX2_VERSION=199209; export _POSIX2_VERSION
+POSIXLY_CORRECT=1; export POSIXLY_CORRECT
+
+
+yearstart=01010000
+
+for ones in 11111111 1111111111; do
+ for args in $ones "-- $ones" "$yearstart $ones" "-- $yearstart $ones"; do
+ touch $args || fail=1
+ test -f $ones || fail=1
+ test -f $yearstart && fail=1
+ rm -f $ones || fail=1
+ done
+done
+
+y2000=0101000000
+rm -f $y2000 file || fail=1
+touch $y2000 file && test -f $y2000 && test -f file || fail=1
+
+Exit $fail
diff --git a/tests/touch/read-only b/tests/touch/read-only
deleted file mode 100755
index 0a12ec7..0000000
--- a/tests/touch/read-only
+++ /dev/null
@@ -1,51 +0,0 @@
-#!/bin/sh
-# ensure that touch can operate on read-only files
-
-# Copyright (C) 2005, 2006 Free Software Foundation, Inc.
-
-# This program is free software; you can redistribute it and/or modify
-# it under the terms of the GNU General Public License as published by
-# the Free Software Foundation; either version 2 of the License, or
-# (at your option) any later version.
-
-# This program is distributed in the hope that it will be useful,
-# but WITHOUT ANY WARRANTY; without even the implied warranty of
-# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
-# GNU General Public License for more details.
-
-# You should have received a copy of the GNU General Public License
-# along with this program; if not, write to the Free Software
-# Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA
-# 02110-1301, USA.
-
-if test "$VERBOSE" = yes; then
- set -x
- touch --version
-fi
-
-PRIV_CHECK_ARG=require-non-root . $srcdir/../priv-check
-
-pwd=`pwd`
-t0=`echo "$0"|sed 's,.*/,,'`.tmp; tmp=$t0/$$
-trap 'status=$?; cd "$pwd" && chmod -R u+rwx $t0 && rm -rf $t0 && exit $status' 0
-trap '(exit $?); exit $?' 1 2 13 15
-
-framework_failure=0
-mkdir -p $tmp || framework_failure=1
-cd $tmp || framework_failure=1
-
-: > read-only || framework_failure=1
-chmod 444 read-only || framework_failure=1
-
-if test $framework_failure = 1; then
- echo "$0: failure in testing framework" 1>&2
- (exit 1); exit 1
-fi
-
-fail=0
-
-touch read-only || fail=1
-
-touch - 1< read-only 2> /dev/null && { test ! -f - || fail=1; }
-
-(exit $fail); exit $fail
diff --git a/tests/touch/read-only.sh b/tests/touch/read-only.sh
new file mode 100755
index 0000000..451e45f
--- /dev/null
+++ b/tests/touch/read-only.sh
@@ -0,0 +1,31 @@
+#!/bin/sh
+# ensure that touch can operate on read-only files
+
+# Copyright (C) 2005-2016 Free Software Foundation, Inc.
+
+# This program is free software: you can redistribute it and/or modify
+# it under the terms of the GNU General Public License as published by
+# the Free Software Foundation, either version 3 of the License, or
+# (at your option) any later version.
+
+# This program is distributed in the hope that it will be useful,
+# but WITHOUT ANY WARRANTY; without even the implied warranty of
+# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
+# GNU General Public License for more details.
+
+# You should have received a copy of the GNU General Public License
+# along with this program. If not, see <http://www.gnu.org/licenses/>.
+
+. "${srcdir=.}/tests/init.sh"; path_prepend_ ./src
+print_ver_ touch
+skip_if_root_
+
+> read-only || framework_failure_
+chmod 444 read-only || framework_failure_
+
+
+touch read-only || fail=1
+
+touch - 1< read-only 2> /dev/null && { test ! -f - || fail=1; }
+
+Exit $fail
diff --git a/tests/touch/relative b/tests/touch/relative
deleted file mode 100755
index dc1e49e..0000000
--- a/tests/touch/relative
+++ /dev/null
@@ -1,59 +0,0 @@
-#!/bin/sh
-# Demonstrate using a combination of --reference and --date to
-# set the time of a file back by an arbitrary amount.
-
-# Copyright (C) 2004, 2006 Free Software Foundation, Inc.
-
-# This program is free software; you can redistribute it and/or modify
-# it under the terms of the GNU General Public License as published by
-# the Free Software Foundation; either version 2 of the License, or
-# (at your option) any later version.
-
-# This program is distributed in the hope that it will be useful,
-# but WITHOUT ANY WARRANTY; without even the implied warranty of
-# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
-# GNU General Public License for more details.
-
-# You should have received a copy of the GNU General Public License
-# along with this program; if not, write to the Free Software
-# Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA
-# 02110-1301, USA.
-
-if test "$VERBOSE" = yes; then
- set -x
- touch --version
-fi
-
-. $srcdir/../envvar-check
-
-pwd=`pwd`
-t0=`echo "$0"|sed 's,.*/,,'`.tmp; tmp=$t0/$$
-trap 'status=$?; cd "$pwd" && chmod -R u+rwx $t0 && rm -rf $t0 && exit $status' 0
-trap '(exit $?); exit $?' 1 2 13 15
-
-framework_failure=0
-mkdir -p $tmp || framework_failure=1
-cd $tmp || framework_failure=1
-TZ=UTC0 touch --date='2004-01-16 12:00 +0000' f || framework_failure=1
-
-if test $framework_failure = 1; then
- echo "$0: failure in testing framework" 1>&2
- (exit 1); exit 1
-fi
-
-fail=0
-
-# Set times back by 5 days.
-touch --ref f --date='-5 days' f || fail=1
-
-TZ=UTC0 ls -og --time-style=+%Y-%m-%d f > out.1 || fail
-sed 's/ f$//;s/.* //' out.1 > out
-
-cat <<\EOF > exp || fail=1
-2004-01-11
-EOF
-
-cmp out exp || fail=1
-test $fail = 1 && diff out exp 2> /dev/null
-
-(exit $fail); exit $fail
diff --git a/tests/touch/relative.sh b/tests/touch/relative.sh
new file mode 100755
index 0000000..8a73cbf
--- /dev/null
+++ b/tests/touch/relative.sh
@@ -0,0 +1,38 @@
+#!/bin/sh
+# Demonstrate using a combination of --reference and --date to
+# set the time of a file back by an arbitrary amount.
+
+# Copyright (C) 2004-2016 Free Software Foundation, Inc.
+
+# This program is free software: you can redistribute it and/or modify
+# it under the terms of the GNU General Public License as published by
+# the Free Software Foundation, either version 3 of the License, or
+# (at your option) any later version.
+
+# This program is distributed in the hope that it will be useful,
+# but WITHOUT ANY WARRANTY; without even the implied warranty of
+# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
+# GNU General Public License for more details.
+
+# You should have received a copy of the GNU General Public License
+# along with this program. If not, see <http://www.gnu.org/licenses/>.
+
+. "${srcdir=.}/tests/init.sh"; path_prepend_ ./src
+print_ver_ touch
+
+TZ=UTC0 touch --date='2004-01-16 12:00 +0000' f || framework_failure_
+
+
+# Set times back by 5 days.
+touch --ref f --date='-5 days' f || fail=1
+
+TZ=UTC0 ls -og --time-style=+%Y-%m-%d f > out.1 || fail
+sed 's/ f$//;s/.* //' out.1 > out
+
+cat <<\EOF > exp || fail=1
+2004-01-11
+EOF
+
+compare exp out || fail=1
+
+Exit $fail
diff --git a/tests/touch/trailing-slash.sh b/tests/touch/trailing-slash.sh
new file mode 100755
index 0000000..c800f77
--- /dev/null
+++ b/tests/touch/trailing-slash.sh
@@ -0,0 +1,66 @@
+#!/bin/sh
+# Ensure that touch honors trailing slash.
+
+# Copyright (C) 2009-2016 Free Software Foundation, Inc.
+
+# This program is free software: you can redistribute it and/or modify
+# it under the terms of the GNU General Public License as published by
+# the Free Software Foundation, either version 3 of the License, or
+# (at your option) any later version.
+
+# This program is distributed in the hope that it will be useful,
+# but WITHOUT ANY WARRANTY; without even the implied warranty of
+# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
+# GNU General Public License for more details.
+
+# You should have received a copy of the GNU General Public License
+# along with this program. If not, see <http://www.gnu.org/licenses/>.
+
+. "${srcdir=.}/tests/init.sh"; path_prepend_ ./src
+print_ver_ touch
+
+ln -s nowhere dangling || framework_failure_
+ln -s loop loop || framework_failure_
+touch file || framework_failure_
+ln -s file link1 || framework_failure_
+mkdir dir || framework_failure_
+ln -s dir link2 || framework_failure_
+
+
+# Trailing slash can only appear on directory or symlink-to-directory.
+# Up through coreutils 8.0, Solaris 9 failed these tests.
+returns_ 1 touch no-file/ || fail=1
+returns_ 1 touch file/ || fail=1
+returns_ 1 touch dangling/ || fail=1
+returns_ 1 touch loop/ || fail=1
+returns_ 1 touch link1/ || fail=1
+touch dir/ || fail=1
+
+# -c silences ENOENT, but not ENOTDIR or ELOOP
+touch -c no-file/ || fail=1
+returns_ 1 touch -c file/ || fail=1
+touch -c dangling/ || fail=1
+returns_ 1 touch -c loop/ || fail=1
+returns_ 1 touch -c link1/ || fail=1
+touch -c dir/ || fail=1
+returns_ 1 test -f no-file || fail=1
+returns_ 1 test -f nowhere || fail=1
+
+# Trailing slash dereferences a symlink, even with -h.
+# mtime is sufficient to show pass (besides, lstat changes atime of
+# symlinks and directories under Cygwin 1.5).
+touch -d 2009-10-10 -h link2/ || fail=1
+touch -h -r link2/ file || fail=1
+case $(stat --format=%y dir) in
+ 2009-10-10*) ;;
+ *) fail=1 ;;
+esac
+case $(stat --format=%y link2) in
+ 2009-10-10*) fail=1 ;;
+esac
+case $(stat --format=%y file) in
+ 2009-10-10*) ;;
+ *) fail=1 ;;
+esac
+
+Exit $fail
diff --git a/tests/tr/1.I b/tests/tr/1.I
deleted file mode 100644
index 85df507..0000000
--- a/tests/tr/1.I
+++ /dev/null
@@ -1 +0,0 @@
-abcd \ No newline at end of file
diff --git a/tests/tr/1.X b/tests/tr/1.X
deleted file mode 100644
index 214a034..0000000
--- a/tests/tr/1.X
+++ /dev/null
@@ -1 +0,0 @@
-]]]] \ No newline at end of file
diff --git a/tests/tr/2.I b/tests/tr/2.I
deleted file mode 100644
index f2ba8f8..0000000
--- a/tests/tr/2.I
+++ /dev/null
@@ -1 +0,0 @@
-abc \ No newline at end of file
diff --git a/tests/tr/2.X b/tests/tr/2.X
deleted file mode 100644
index d66d9d7..0000000
--- a/tests/tr/2.X
+++ /dev/null
@@ -1 +0,0 @@
-xyz \ No newline at end of file
diff --git a/tests/tr/3.I b/tests/tr/3.I
deleted file mode 100644
index f2ba8f8..0000000
--- a/tests/tr/3.I
+++ /dev/null
@@ -1 +0,0 @@
-abc \ No newline at end of file
diff --git a/tests/tr/3.X b/tests/tr/3.X
deleted file mode 100644
index f2ba8f8..0000000
--- a/tests/tr/3.X
+++ /dev/null
@@ -1 +0,0 @@
-abc \ No newline at end of file
diff --git a/tests/tr/4.I b/tests/tr/4.I
deleted file mode 100644
index 6a81654..0000000
--- a/tests/tr/4.I
+++ /dev/null
@@ -1 +0,0 @@
-abcde \ No newline at end of file
diff --git a/tests/tr/4.X b/tests/tr/4.X
deleted file mode 100644
index 410c0a3..0000000
--- a/tests/tr/4.X
+++ /dev/null
@@ -1 +0,0 @@
-xycde \ No newline at end of file
diff --git a/tests/tr/5.I b/tests/tr/5.I
deleted file mode 100644
index 6a81654..0000000
--- a/tests/tr/5.I
+++ /dev/null
@@ -1 +0,0 @@
-abcde \ No newline at end of file
diff --git a/tests/tr/5.X b/tests/tr/5.X
deleted file mode 100644
index 882b506..0000000
--- a/tests/tr/5.X
+++ /dev/null
@@ -1 +0,0 @@
-xyyye \ No newline at end of file
diff --git a/tests/tr/6.I b/tests/tr/6.I
deleted file mode 100644
index 6a81654..0000000
--- a/tests/tr/6.I
+++ /dev/null
@@ -1 +0,0 @@
-abcde \ No newline at end of file
diff --git a/tests/tr/6.X b/tests/tr/6.X
deleted file mode 100644
index 882b506..0000000
--- a/tests/tr/6.X
+++ /dev/null
@@ -1 +0,0 @@
-xyyye \ No newline at end of file
diff --git a/tests/tr/7.I b/tests/tr/7.I
deleted file mode 100644
index 70e6a83..0000000
--- a/tests/tr/7.I
+++ /dev/null
@@ -1 +0,0 @@
-abcdefghijklmnop \ No newline at end of file
diff --git a/tests/tr/7.X b/tests/tr/7.X
deleted file mode 100644
index 91883c3..0000000
--- a/tests/tr/7.X
+++ /dev/null
@@ -1 +0,0 @@
-%.$ \ No newline at end of file
diff --git a/tests/tr/8.I b/tests/tr/8.I
deleted file mode 100644
index 70e6a83..0000000
--- a/tests/tr/8.I
+++ /dev/null
@@ -1 +0,0 @@
-abcdefghijklmnop \ No newline at end of file
diff --git a/tests/tr/8.X b/tests/tr/8.X
deleted file mode 100644
index 0b8a7bd..0000000
--- a/tests/tr/8.X
+++ /dev/null
@@ -1 +0,0 @@
-.$ \ No newline at end of file
diff --git a/tests/tr/9.I b/tests/tr/9.I
deleted file mode 100644
index 70e6a83..0000000
--- a/tests/tr/9.I
+++ /dev/null
@@ -1 +0,0 @@
-abcdefghijklmnop \ No newline at end of file
diff --git a/tests/tr/9.X b/tests/tr/9.X
deleted file mode 100644
index 48b4659..0000000
--- a/tests/tr/9.X
+++ /dev/null
@@ -1 +0,0 @@
-%. \ No newline at end of file
diff --git a/tests/tr/Makefile.am b/tests/tr/Makefile.am
deleted file mode 100644
index 1d9605a..0000000
--- a/tests/tr/Makefile.am
+++ /dev/null
@@ -1,82 +0,0 @@
-# Make coreutils tests. -*-Makefile-*-
-
-# Copyright (C) 1997, 1998, 2000, 2003, 2004, 2006 Free Software
-# Foundation, Inc.
-
-# This program is free software; you can redistribute it and/or modify
-# it under the terms of the GNU General Public License as published by
-# the Free Software Foundation; either version 2 of the License, or
-# (at your option) any later version.
-
-# This program is distributed in the hope that it will be useful,
-# but WITHOUT ANY WARRANTY; without even the implied warranty of
-# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
-# GNU General Public License for more details.
-
-# You should have received a copy of the GNU General Public License
-# along with this program; if not, write to the Free Software
-# Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA
-# 02110-1301, USA.
-
-##test-files-begin
-x = tr
-explicit =
-maint_gen = 1.I 1.X 2.I 2.X 3.I 3.X 4.I 4.X 5.I 5.X 6.I 6.X 7.I 7.X 8.I 8.X \
-9.I 9.X a.I a.X b.I b.X c.I c.X d.I d.X e.I e.X f.I f.X g.I g.X h.I h.X i.I \
-i.X j.I j.X k.I k.X l.I l.X m.I m.X n.I n.X o.I o.X p.I p.X q.I q.X r.I r.X \
-s.I s.X t.I t.X u.I u.X v.I v.X w.I w.X x.I x.X y.I y.X z.I z.X range-a-a.I \
-range-a-a.X null.I null.X upcase.I upcase.X dncase.I dncase.X rep-cclass.I \
-rep-cclass.X rep-1.I rep-1.X rep-2.I rep-2.X rep-3.I rep-3.X o-rep-1.I \
-o-rep-1.X o-rep-2.I o-rep-2.X esc.I esc.X bs-055.I bs-055.X bs-at-end.I \
-bs-at-end.X ross-0a.I ross-0a.X ross-0b.I ross-0b.X ross-1a.I ross-1a.X \
-ross-1b.I ross-1b.X ross-2.I ross-2.X ross-3.I ross-3.X ross-4.I ross-4.X \
-ross-5.I ross-5.X ross-6.I ross-6.X empty-eq.I empty-eq.X empty-cc.I \
-empty-cc.X repeat-bs-9.I repeat-bs-9.X repeat-0.I repeat-0.X repeat-zeros.I \
-repeat-zeros.X repeat-compl.I repeat-compl.X repeat-xC.I repeat-xC.X \
-fowler-1.I fowler-1.X
-run_gen = 1.O 1.E 2.O 2.E 3.O 3.E 4.O 4.E 5.O 5.E 6.O 6.E 7.O 7.E 8.O 8.E 9.O \
-9.E a.O a.E b.O b.E c.O c.E d.O d.E e.O e.E f.O f.E g.O g.E h.O h.E i.O i.E \
-j.O j.E k.O k.E l.O l.E m.O m.E n.O n.E o.O o.E p.O p.E q.O q.E r.O r.E s.O \
-s.E t.O t.E u.O u.E v.O v.E w.O w.E x.O x.E y.O y.E z.O z.E range-a-a.O \
-range-a-a.E null.O null.E upcase.O upcase.E dncase.O dncase.E rep-cclass.O \
-rep-cclass.E rep-1.O rep-1.E rep-2.O rep-2.E rep-3.O rep-3.E o-rep-1.O \
-o-rep-1.E o-rep-2.O o-rep-2.E esc.O esc.E bs-055.O bs-055.E bs-at-end.O \
-bs-at-end.E ross-0a.O ross-0a.E ross-0b.O ross-0b.E ross-1a.O ross-1a.E \
-ross-1b.O ross-1b.E ross-2.O ross-2.E ross-3.O ross-3.E ross-4.O ross-4.E \
-ross-5.O ross-5.E ross-6.O ross-6.E empty-eq.O empty-eq.E empty-cc.O \
-empty-cc.E repeat-bs-9.O repeat-bs-9.E repeat-0.O repeat-0.E repeat-zeros.O \
-repeat-zeros.E repeat-compl.O repeat-compl.E repeat-xC.O repeat-xC.E \
-fowler-1.O fowler-1.E
-##test-files-end
-
-EXTRA_DIST = Test.pm $x-tests $(explicit) $(maint_gen)
-noinst_SCRIPTS = $x-tests
-TESTS_ENVIRONMENT = \
- CU_TEST_NAME=`basename $(abs_srcdir)`,$$tst \
- PATH="$(VG_PATH_PREFIX)`pwd`/../../src$(PATH_SEPARATOR)$$PATH"
-
-editpl = sed -e 's,@''PERL''@,$(PERL),g' -e 's,@''srcdir''@,$(srcdir),g'
-
-TESTS = $x-tests
-
-mk_script = $(srcdir)/../mk-script
-$(srcdir)/$x-tests: $(mk_script) Test.pm Makefile.am
- test '$x' = test && prog=../../src/$x || prog=$x; \
- $(PERL) -I$(srcdir) -w -- $(mk_script) $(srcdir) $$prog > $@.n
- mv $@.n $@
- chmod 755 $@
-
-MAINTAINERCLEANFILES = $x-tests $(maint_gen)
-CLEANFILES = $(run_gen)
-
-check: $(maint_gen)
-
-$(srcdir)/Makefile.am: ../Makefile.am.in Test.pm $(mk_script)
- rm -f $@ $@t
- sed -n '1,/^##test-files-begin/p' $(srcdir)/../Makefile.am.in > $@t
- tool=`echo $(subdir)|sed 's/^tests.//;s/-test//'`; \
- echo "x = $$tool" >> $@t
- $(PERL) -I$(srcdir) -w -- $(mk_script) $(srcdir) --list >> $@t
- sed -n '/^##test-files-end/,$$p' $(srcdir)/../Makefile.am.in >> $@t
- chmod -w $@t
- mv $@t $@
diff --git a/tests/tr/Makefile.in b/tests/tr/Makefile.in
deleted file mode 100644
index 6ae4ba3..0000000
--- a/tests/tr/Makefile.in
+++ /dev/null
@@ -1,792 +0,0 @@
-# Makefile.in generated by automake 1.10 from Makefile.am.
-# @configure_input@
-
-# Copyright (C) 1994, 1995, 1996, 1997, 1998, 1999, 2000, 2001, 2002,
-# 2003, 2004, 2005, 2006 Free Software Foundation, Inc.
-# This Makefile.in is free software; the Free Software Foundation
-# gives unlimited permission to copy and/or distribute it,
-# with or without modifications, as long as this notice is preserved.
-
-# This program is distributed in the hope that it will be useful,
-# but WITHOUT ANY WARRANTY, to the extent permitted by law; without
-# even the implied warranty of MERCHANTABILITY or FITNESS FOR A
-# PARTICULAR PURPOSE.
-
-@SET_MAKE@
-
-# Make coreutils tests. -*-Makefile-*-
-
-# Copyright (C) 1997, 1998, 2000, 2003, 2004, 2006 Free Software
-# Foundation, Inc.
-
-# This program is free software; you can redistribute it and/or modify
-# it under the terms of the GNU General Public License as published by
-# the Free Software Foundation; either version 2 of the License, or
-# (at your option) any later version.
-
-# This program is distributed in the hope that it will be useful,
-# but WITHOUT ANY WARRANTY; without even the implied warranty of
-# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
-# GNU General Public License for more details.
-
-# You should have received a copy of the GNU General Public License
-# along with this program; if not, write to the Free Software
-# Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA
-# 02110-1301, USA.
-
-VPATH = @srcdir@
-pkgdatadir = $(datadir)/@PACKAGE@
-pkglibdir = $(libdir)/@PACKAGE@
-pkgincludedir = $(includedir)/@PACKAGE@
-am__cd = CDPATH="$${ZSH_VERSION+.}$(PATH_SEPARATOR)" && cd
-install_sh_DATA = $(install_sh) -c -m 644
-install_sh_PROGRAM = $(install_sh) -c
-install_sh_SCRIPT = $(install_sh) -c
-INSTALL_HEADER = $(INSTALL_DATA)
-transform = $(program_transform_name)
-NORMAL_INSTALL = :
-PRE_INSTALL = :
-POST_INSTALL = :
-NORMAL_UNINSTALL = :
-PRE_UNINSTALL = :
-POST_UNINSTALL = :
-build_triplet = @build@
-host_triplet = @host@
-subdir = tests/tr
-DIST_COMMON = $(srcdir)/Makefile.am $(srcdir)/Makefile.in TODO
-ACLOCAL_M4 = $(top_srcdir)/aclocal.m4
-am__aclocal_m4_deps = $(top_srcdir)/m4/absolute-header.m4 \
- $(top_srcdir)/m4/acl.m4 $(top_srcdir)/m4/alloca.m4 \
- $(top_srcdir)/m4/allocsa.m4 $(top_srcdir)/m4/argmatch.m4 \
- $(top_srcdir)/m4/arpa_inet_h.m4 $(top_srcdir)/m4/assert.m4 \
- $(top_srcdir)/m4/atexit.m4 $(top_srcdir)/m4/autobuild.m4 \
- $(top_srcdir)/m4/backupfile.m4 $(top_srcdir)/m4/base64.m4 \
- $(top_srcdir)/m4/bison.m4 $(top_srcdir)/m4/boottime.m4 \
- $(top_srcdir)/m4/c-strtod.m4 $(top_srcdir)/m4/calloc.m4 \
- $(top_srcdir)/m4/canon-host.m4 \
- $(top_srcdir)/m4/canonicalize.m4 \
- $(top_srcdir)/m4/chdir-long.m4 $(top_srcdir)/m4/check-decl.m4 \
- $(top_srcdir)/m4/chown.m4 $(top_srcdir)/m4/clock_time.m4 \
- $(top_srcdir)/m4/cloexec.m4 $(top_srcdir)/m4/close-stream.m4 \
- $(top_srcdir)/m4/closeout.m4 $(top_srcdir)/m4/codeset.m4 \
- $(top_srcdir)/m4/config-h.m4 $(top_srcdir)/m4/cycle-check.m4 \
- $(top_srcdir)/m4/d-ino.m4 $(top_srcdir)/m4/d-type.m4 \
- $(top_srcdir)/m4/dirfd.m4 $(top_srcdir)/m4/dirname.m4 \
- $(top_srcdir)/m4/dos.m4 $(top_srcdir)/m4/double-slash-root.m4 \
- $(top_srcdir)/m4/dup2.m4 $(top_srcdir)/m4/eealloc.m4 \
- $(top_srcdir)/m4/eoverflow.m4 $(top_srcdir)/m4/error.m4 \
- $(top_srcdir)/m4/euidaccess-stat.m4 \
- $(top_srcdir)/m4/euidaccess.m4 $(top_srcdir)/m4/exclude.m4 \
- $(top_srcdir)/m4/exitfail.m4 $(top_srcdir)/m4/extensions.m4 \
- $(top_srcdir)/m4/fchdir.m4 $(top_srcdir)/m4/fcntl-safer.m4 \
- $(top_srcdir)/m4/fcntl_h.m4 $(top_srcdir)/m4/fd-reopen.m4 \
- $(top_srcdir)/m4/file-type.m4 $(top_srcdir)/m4/fileblocks.m4 \
- $(top_srcdir)/m4/filemode.m4 $(top_srcdir)/m4/filenamecat.m4 \
- $(top_srcdir)/m4/flexmember.m4 $(top_srcdir)/m4/fnmatch.m4 \
- $(top_srcdir)/m4/fpending.m4 $(top_srcdir)/m4/fprintftime.m4 \
- $(top_srcdir)/m4/free.m4 $(top_srcdir)/m4/fstypename.m4 \
- $(top_srcdir)/m4/fsusage.m4 $(top_srcdir)/m4/ftruncate.m4 \
- $(top_srcdir)/m4/fts.m4 $(top_srcdir)/m4/getaddrinfo.m4 \
- $(top_srcdir)/m4/getcwd-abort-bug.m4 \
- $(top_srcdir)/m4/getcwd-path-max.m4 $(top_srcdir)/m4/getcwd.m4 \
- $(top_srcdir)/m4/getdate.m4 $(top_srcdir)/m4/getdelim.m4 \
- $(top_srcdir)/m4/getgroups.m4 $(top_srcdir)/m4/gethostname.m4 \
- $(top_srcdir)/m4/gethrxtime.m4 $(top_srcdir)/m4/getline.m4 \
- $(top_srcdir)/m4/getloadavg.m4 $(top_srcdir)/m4/getndelim2.m4 \
- $(top_srcdir)/m4/getopt.m4 $(top_srcdir)/m4/getpagesize.m4 \
- $(top_srcdir)/m4/getpass.m4 $(top_srcdir)/m4/gettext.m4 \
- $(top_srcdir)/m4/gettime.m4 $(top_srcdir)/m4/gettimeofday.m4 \
- $(top_srcdir)/m4/getugroups.m4 \
- $(top_srcdir)/m4/getusershell.m4 $(top_srcdir)/m4/glibc21.m4 \
- $(top_srcdir)/m4/gnulib-common.m4 \
- $(top_srcdir)/m4/gnulib-comp.m4 \
- $(top_srcdir)/m4/group-member.m4 \
- $(top_srcdir)/m4/hard-locale.m4 $(top_srcdir)/m4/hash.m4 \
- $(top_srcdir)/m4/host-os.m4 $(top_srcdir)/m4/human.m4 \
- $(top_srcdir)/m4/i-ring.m4 $(top_srcdir)/m4/iconv.m4 \
- $(top_srcdir)/m4/idcache.m4 $(top_srcdir)/m4/inet_ntop.m4 \
- $(top_srcdir)/m4/inline.m4 $(top_srcdir)/m4/intmax_t.m4 \
- $(top_srcdir)/m4/inttostr.m4 $(top_srcdir)/m4/inttypes-pri.m4 \
- $(top_srcdir)/m4/inttypes.m4 $(top_srcdir)/m4/inttypes_h.m4 \
- $(top_srcdir)/m4/isapipe.m4 $(top_srcdir)/m4/jm-macros.m4 \
- $(top_srcdir)/m4/jm-winsz1.m4 $(top_srcdir)/m4/jm-winsz2.m4 \
- $(top_srcdir)/m4/lchmod.m4 $(top_srcdir)/m4/lchown.m4 \
- $(top_srcdir)/m4/lib-check.m4 $(top_srcdir)/m4/lib-ignore.m4 \
- $(top_srcdir)/m4/lib-ld.m4 $(top_srcdir)/m4/lib-link.m4 \
- $(top_srcdir)/m4/lib-prefix.m4 $(top_srcdir)/m4/link-follow.m4 \
- $(top_srcdir)/m4/localcharset.m4 \
- $(top_srcdir)/m4/long-options.m4 \
- $(top_srcdir)/m4/longdouble.m4 $(top_srcdir)/m4/longlong.m4 \
- $(top_srcdir)/m4/ls-mntd-fs.m4 $(top_srcdir)/m4/lstat.m4 \
- $(top_srcdir)/m4/mbchar.m4 $(top_srcdir)/m4/mbiter.m4 \
- $(top_srcdir)/m4/mbrtowc.m4 $(top_srcdir)/m4/mbscasecmp.m4 \
- $(top_srcdir)/m4/mbstate_t.m4 $(top_srcdir)/m4/mbswidth.m4 \
- $(top_srcdir)/m4/md5.m4 $(top_srcdir)/m4/memcasecmp.m4 \
- $(top_srcdir)/m4/memchr.m4 $(top_srcdir)/m4/memcmp.m4 \
- $(top_srcdir)/m4/memcoll.m4 $(top_srcdir)/m4/memcpy.m4 \
- $(top_srcdir)/m4/memmove.m4 $(top_srcdir)/m4/mempcpy.m4 \
- $(top_srcdir)/m4/memrchr.m4 $(top_srcdir)/m4/memset.m4 \
- $(top_srcdir)/m4/memxfrm.m4 $(top_srcdir)/m4/mkancesdirs.m4 \
- $(top_srcdir)/m4/mkdir-p.m4 $(top_srcdir)/m4/mkdir-slash.m4 \
- $(top_srcdir)/m4/mkstemp.m4 $(top_srcdir)/m4/mktime.m4 \
- $(top_srcdir)/m4/modechange.m4 $(top_srcdir)/m4/mountlist.m4 \
- $(top_srcdir)/m4/mpsort.m4 $(top_srcdir)/m4/nanosleep.m4 \
- $(top_srcdir)/m4/netinet_in_h.m4 $(top_srcdir)/m4/nls.m4 \
- $(top_srcdir)/m4/openat.m4 $(top_srcdir)/m4/pathmax.m4 \
- $(top_srcdir)/m4/perl.m4 $(top_srcdir)/m4/physmem.m4 \
- $(top_srcdir)/m4/po.m4 $(top_srcdir)/m4/posixtm.m4 \
- $(top_srcdir)/m4/posixver.m4 $(top_srcdir)/m4/prereq.m4 \
- $(top_srcdir)/m4/progtest.m4 $(top_srcdir)/m4/putenv.m4 \
- $(top_srcdir)/m4/quote.m4 $(top_srcdir)/m4/quotearg.m4 \
- $(top_srcdir)/m4/randint.m4 $(top_srcdir)/m4/randperm.m4 \
- $(top_srcdir)/m4/randread.m4 $(top_srcdir)/m4/readlink.m4 \
- $(top_srcdir)/m4/readtokens.m4 $(top_srcdir)/m4/readutmp.m4 \
- $(top_srcdir)/m4/regex.m4 \
- $(top_srcdir)/m4/rename-dest-slash.m4 \
- $(top_srcdir)/m4/rename.m4 $(top_srcdir)/m4/rmdir-errno.m4 \
- $(top_srcdir)/m4/rmdir.m4 $(top_srcdir)/m4/root-dev-ino.m4 \
- $(top_srcdir)/m4/rpmatch.m4 $(top_srcdir)/m4/safe-read.m4 \
- $(top_srcdir)/m4/safe-write.m4 $(top_srcdir)/m4/same.m4 \
- $(top_srcdir)/m4/save-cwd.m4 $(top_srcdir)/m4/savedir.m4 \
- $(top_srcdir)/m4/savewd.m4 $(top_srcdir)/m4/setenv.m4 \
- $(top_srcdir)/m4/settime.m4 $(top_srcdir)/m4/sha1.m4 \
- $(top_srcdir)/m4/sha256.m4 $(top_srcdir)/m4/sha512.m4 \
- $(top_srcdir)/m4/sig2str.m4 $(top_srcdir)/m4/snprintf.m4 \
- $(top_srcdir)/m4/socklen.m4 $(top_srcdir)/m4/sockpfaf.m4 \
- $(top_srcdir)/m4/ssize_t.m4 $(top_srcdir)/m4/st_dm_mode.m4 \
- $(top_srcdir)/m4/stat-prog.m4 $(top_srcdir)/m4/stat-time.m4 \
- $(top_srcdir)/m4/stdarg.m4 $(top_srcdir)/m4/stdbool.m4 \
- $(top_srcdir)/m4/stdint.m4 $(top_srcdir)/m4/stdint_h.m4 \
- $(top_srcdir)/m4/stdio-safer.m4 $(top_srcdir)/m4/stdio_h.m4 \
- $(top_srcdir)/m4/stdlib-safer.m4 $(top_srcdir)/m4/stdlib_h.m4 \
- $(top_srcdir)/m4/stpcpy.m4 $(top_srcdir)/m4/strcspn.m4 \
- $(top_srcdir)/m4/strdup.m4 $(top_srcdir)/m4/strftime.m4 \
- $(top_srcdir)/m4/string_h.m4 $(top_srcdir)/m4/strndup.m4 \
- $(top_srcdir)/m4/strnlen.m4 $(top_srcdir)/m4/strnumcmp.m4 \
- $(top_srcdir)/m4/strpbrk.m4 $(top_srcdir)/m4/strtod.m4 \
- $(top_srcdir)/m4/strtoimax.m4 $(top_srcdir)/m4/strtol.m4 \
- $(top_srcdir)/m4/strtoll.m4 $(top_srcdir)/m4/strtoul.m4 \
- $(top_srcdir)/m4/strtoull.m4 $(top_srcdir)/m4/strtoumax.m4 \
- $(top_srcdir)/m4/strverscmp.m4 \
- $(top_srcdir)/m4/sys_socket_h.m4 \
- $(top_srcdir)/m4/sys_stat_h.m4 $(top_srcdir)/m4/sys_time_h.m4 \
- $(top_srcdir)/m4/tempname.m4 $(top_srcdir)/m4/time_h.m4 \
- $(top_srcdir)/m4/time_r.m4 $(top_srcdir)/m4/timespec.m4 \
- $(top_srcdir)/m4/tm_gmtoff.m4 $(top_srcdir)/m4/tzset.m4 \
- $(top_srcdir)/m4/unicodeio.m4 $(top_srcdir)/m4/unistd-safer.m4 \
- $(top_srcdir)/m4/unistd_h.m4 $(top_srcdir)/m4/unlink-busy.m4 \
- $(top_srcdir)/m4/unlinkdir.m4 $(top_srcdir)/m4/unlocked-io.m4 \
- $(top_srcdir)/m4/uptime.m4 $(top_srcdir)/m4/userspec.m4 \
- $(top_srcdir)/m4/utimbuf.m4 $(top_srcdir)/m4/utime.m4 \
- $(top_srcdir)/m4/utimecmp.m4 $(top_srcdir)/m4/utimens.m4 \
- $(top_srcdir)/m4/utimes-null.m4 $(top_srcdir)/m4/utimes.m4 \
- $(top_srcdir)/m4/vasnprintf.m4 $(top_srcdir)/m4/vasprintf.m4 \
- $(top_srcdir)/m4/wchar.m4 $(top_srcdir)/m4/wchar_t.m4 \
- $(top_srcdir)/m4/wctype.m4 $(top_srcdir)/m4/wcwidth.m4 \
- $(top_srcdir)/m4/wint_t.m4 $(top_srcdir)/m4/xalloc.m4 \
- $(top_srcdir)/m4/xfts.m4 $(top_srcdir)/m4/xgetcwd.m4 \
- $(top_srcdir)/m4/xnanosleep.m4 $(top_srcdir)/m4/xstrndup.m4 \
- $(top_srcdir)/m4/xstrtod.m4 $(top_srcdir)/m4/xstrtol.m4 \
- $(top_srcdir)/m4/yesno.m4 $(top_srcdir)/configure.ac
-am__configure_deps = $(am__aclocal_m4_deps) $(CONFIGURE_DEPENDENCIES) \
- $(ACLOCAL_M4)
-mkinstalldirs = $(install_sh) -d
-CONFIG_HEADER = $(top_builddir)/lib/config.h
-CONFIG_CLEAN_FILES =
-SCRIPTS = $(noinst_SCRIPTS)
-SOURCES =
-DIST_SOURCES =
-DISTFILES = $(DIST_COMMON) $(DIST_SOURCES) $(TEXINFOS) $(EXTRA_DIST)
-ABSOLUTE_DIRENT_H = @ABSOLUTE_DIRENT_H@
-ABSOLUTE_FCNTL_H = @ABSOLUTE_FCNTL_H@
-ABSOLUTE_INTTYPES_H = @ABSOLUTE_INTTYPES_H@
-ABSOLUTE_NETINET_IN_H = @ABSOLUTE_NETINET_IN_H@
-ABSOLUTE_STDINT_H = @ABSOLUTE_STDINT_H@
-ABSOLUTE_STDIO_H = @ABSOLUTE_STDIO_H@
-ABSOLUTE_STDLIB_H = @ABSOLUTE_STDLIB_H@
-ABSOLUTE_STRING_H = @ABSOLUTE_STRING_H@
-ABSOLUTE_SYS_SOCKET_H = @ABSOLUTE_SYS_SOCKET_H@
-ABSOLUTE_SYS_STAT_H = @ABSOLUTE_SYS_STAT_H@
-ABSOLUTE_SYS_TIME_H = @ABSOLUTE_SYS_TIME_H@
-ABSOLUTE_TIME_H = @ABSOLUTE_TIME_H@
-ABSOLUTE_UNISTD_H = @ABSOLUTE_UNISTD_H@
-ABSOLUTE_WCHAR_H = @ABSOLUTE_WCHAR_H@
-ABSOLUTE_WCTYPE_H = @ABSOLUTE_WCTYPE_H@
-ACLOCAL = @ACLOCAL@
-ALLOCA = @ALLOCA@
-ALLOCA_H = @ALLOCA_H@
-AMTAR = @AMTAR@
-ARPA_INET_H = @ARPA_INET_H@
-AUTOCONF = @AUTOCONF@
-AUTOHEADER = @AUTOHEADER@
-AUTOMAKE = @AUTOMAKE@
-AWK = @AWK@
-BITSIZEOF_PTRDIFF_T = @BITSIZEOF_PTRDIFF_T@
-BITSIZEOF_SIG_ATOMIC_T = @BITSIZEOF_SIG_ATOMIC_T@
-BITSIZEOF_SIZE_T = @BITSIZEOF_SIZE_T@
-BITSIZEOF_WCHAR_T = @BITSIZEOF_WCHAR_T@
-BITSIZEOF_WINT_T = @BITSIZEOF_WINT_T@
-CC = @CC@
-CCDEPMODE = @CCDEPMODE@
-CFLAGS = @CFLAGS@
-CPP = @CPP@
-CPPFLAGS = @CPPFLAGS@
-CYGPATH_W = @CYGPATH_W@
-DEFAULT_POSIX2_VERSION = @DEFAULT_POSIX2_VERSION@
-DEFS = @DEFS@
-DEPDIR = @DEPDIR@
-DF_PROG = @DF_PROG@
-DIRENT_H = @DIRENT_H@
-ECHO_C = @ECHO_C@
-ECHO_N = @ECHO_N@
-ECHO_T = @ECHO_T@
-EGREP = @EGREP@
-EOVERFLOW = @EOVERFLOW@
-EXEEXT = @EXEEXT@
-FCNTL_H = @FCNTL_H@
-FNMATCH_H = @FNMATCH_H@
-GETLOADAVG_LIBS = @GETLOADAVG_LIBS@
-GETOPT_H = @GETOPT_H@
-GLIBC21 = @GLIBC21@
-GMSGFMT = @GMSGFMT@
-GMSGFMT_015 = @GMSGFMT_015@
-GNULIB_CHOWN = @GNULIB_CHOWN@
-GNULIB_DUP2 = @GNULIB_DUP2@
-GNULIB_FCHDIR = @GNULIB_FCHDIR@
-GNULIB_FPRINTF_POSIX = @GNULIB_FPRINTF_POSIX@
-GNULIB_FTRUNCATE = @GNULIB_FTRUNCATE@
-GNULIB_GETCWD = @GNULIB_GETCWD@
-GNULIB_GETLOGIN_R = @GNULIB_GETLOGIN_R@
-GNULIB_GETSUBOPT = @GNULIB_GETSUBOPT@
-GNULIB_IMAXABS = @GNULIB_IMAXABS@
-GNULIB_IMAXDIV = @GNULIB_IMAXDIV@
-GNULIB_MBSCASECMP = @GNULIB_MBSCASECMP@
-GNULIB_MBSCASESTR = @GNULIB_MBSCASESTR@
-GNULIB_MBSCHR = @GNULIB_MBSCHR@
-GNULIB_MBSCSPN = @GNULIB_MBSCSPN@
-GNULIB_MBSLEN = @GNULIB_MBSLEN@
-GNULIB_MBSNCASECMP = @GNULIB_MBSNCASECMP@
-GNULIB_MBSPBRK = @GNULIB_MBSPBRK@
-GNULIB_MBSPCASECMP = @GNULIB_MBSPCASECMP@
-GNULIB_MBSRCHR = @GNULIB_MBSRCHR@
-GNULIB_MBSSEP = @GNULIB_MBSSEP@
-GNULIB_MBSSPN = @GNULIB_MBSSPN@
-GNULIB_MBSSTR = @GNULIB_MBSSTR@
-GNULIB_MBSTOK_R = @GNULIB_MBSTOK_R@
-GNULIB_MEMMEM = @GNULIB_MEMMEM@
-GNULIB_MEMPCPY = @GNULIB_MEMPCPY@
-GNULIB_MEMRCHR = @GNULIB_MEMRCHR@
-GNULIB_MKDTEMP = @GNULIB_MKDTEMP@
-GNULIB_MKSTEMP = @GNULIB_MKSTEMP@
-GNULIB_PRINTF_POSIX = @GNULIB_PRINTF_POSIX@
-GNULIB_READLINK = @GNULIB_READLINK@
-GNULIB_SNPRINTF = @GNULIB_SNPRINTF@
-GNULIB_SPRINTF_POSIX = @GNULIB_SPRINTF_POSIX@
-GNULIB_STPCPY = @GNULIB_STPCPY@
-GNULIB_STPNCPY = @GNULIB_STPNCPY@
-GNULIB_STRCASESTR = @GNULIB_STRCASESTR@
-GNULIB_STRCHRNUL = @GNULIB_STRCHRNUL@
-GNULIB_STRDUP = @GNULIB_STRDUP@
-GNULIB_STRNDUP = @GNULIB_STRNDUP@
-GNULIB_STRNLEN = @GNULIB_STRNLEN@
-GNULIB_STRPBRK = @GNULIB_STRPBRK@
-GNULIB_STRSEP = @GNULIB_STRSEP@
-GNULIB_STRTOIMAX = @GNULIB_STRTOIMAX@
-GNULIB_STRTOK_R = @GNULIB_STRTOK_R@
-GNULIB_STRTOUMAX = @GNULIB_STRTOUMAX@
-GNULIB_VFPRINTF_POSIX = @GNULIB_VFPRINTF_POSIX@
-GNULIB_VPRINTF_POSIX = @GNULIB_VPRINTF_POSIX@
-GNULIB_VSNPRINTF = @GNULIB_VSNPRINTF@
-GNULIB_VSPRINTF_POSIX = @GNULIB_VSPRINTF_POSIX@
-GNU_PACKAGE = @GNU_PACKAGE@
-GREP = @GREP@
-HAVE_DECL_GETLOGIN_R = @HAVE_DECL_GETLOGIN_R@
-HAVE_DECL_IMAXABS = @HAVE_DECL_IMAXABS@
-HAVE_DECL_IMAXDIV = @HAVE_DECL_IMAXDIV@
-HAVE_DECL_MEMMEM = @HAVE_DECL_MEMMEM@
-HAVE_DECL_MEMRCHR = @HAVE_DECL_MEMRCHR@
-HAVE_DECL_SNPRINTF = @HAVE_DECL_SNPRINTF@
-HAVE_DECL_STRDUP = @HAVE_DECL_STRDUP@
-HAVE_DECL_STRNCASECMP = @HAVE_DECL_STRNCASECMP@
-HAVE_DECL_STRNDUP = @HAVE_DECL_STRNDUP@
-HAVE_DECL_STRNLEN = @HAVE_DECL_STRNLEN@
-HAVE_DECL_STRTOIMAX = @HAVE_DECL_STRTOIMAX@
-HAVE_DECL_STRTOK_R = @HAVE_DECL_STRTOK_R@
-HAVE_DECL_STRTOUMAX = @HAVE_DECL_STRTOUMAX@
-HAVE_DECL_VSNPRINTF = @HAVE_DECL_VSNPRINTF@
-HAVE_DUP2 = @HAVE_DUP2@
-HAVE_FTRUNCATE = @HAVE_FTRUNCATE@
-HAVE_GETSUBOPT = @HAVE_GETSUBOPT@
-HAVE_INTTYPES_H = @HAVE_INTTYPES_H@
-HAVE_LONG_LONG_INT = @HAVE_LONG_LONG_INT@
-HAVE_MEMPCPY = @HAVE_MEMPCPY@
-HAVE_MKDTEMP = @HAVE_MKDTEMP@
-HAVE_NETINET_IN_H = @HAVE_NETINET_IN_H@
-HAVE_READLINK = @HAVE_READLINK@
-HAVE_SIGNED_SIG_ATOMIC_T = @HAVE_SIGNED_SIG_ATOMIC_T@
-HAVE_SIGNED_WCHAR_T = @HAVE_SIGNED_WCHAR_T@
-HAVE_SIGNED_WINT_T = @HAVE_SIGNED_WINT_T@
-HAVE_STDINT_H = @HAVE_STDINT_H@
-HAVE_STPCPY = @HAVE_STPCPY@
-HAVE_STPNCPY = @HAVE_STPNCPY@
-HAVE_STRCASECMP = @HAVE_STRCASECMP@
-HAVE_STRCASESTR = @HAVE_STRCASESTR@
-HAVE_STRCHRNUL = @HAVE_STRCHRNUL@
-HAVE_STRNDUP = @HAVE_STRNDUP@
-HAVE_STRPBRK = @HAVE_STRPBRK@
-HAVE_STRSEP = @HAVE_STRSEP@
-HAVE_STRUCT_TIMEVAL = @HAVE_STRUCT_TIMEVAL@
-HAVE_SYS_BITYPES_H = @HAVE_SYS_BITYPES_H@
-HAVE_SYS_INTTYPES_H = @HAVE_SYS_INTTYPES_H@
-HAVE_SYS_SOCKET_H = @HAVE_SYS_SOCKET_H@
-HAVE_SYS_TIME_H = @HAVE_SYS_TIME_H@
-HAVE_SYS_TYPES_H = @HAVE_SYS_TYPES_H@
-HAVE_UNISTD_H = @HAVE_UNISTD_H@
-HAVE_UNSIGNED_LONG_LONG_INT = @HAVE_UNSIGNED_LONG_LONG_INT@
-HAVE_WCTYPE_H = @HAVE_WCTYPE_H@
-HAVE_WINSOCK2_H = @HAVE_WINSOCK2_H@
-HAVE_WINT_T = @HAVE_WINT_T@
-HAVE_WS2TCPIP_H = @HAVE_WS2TCPIP_H@
-HAVE__BOOL = @HAVE__BOOL@
-HELP2MAN = @HELP2MAN@
-INSTALL = @INSTALL@
-INSTALL_DATA = @INSTALL_DATA@
-INSTALL_PROGRAM = @INSTALL_PROGRAM@
-INSTALL_SCRIPT = @INSTALL_SCRIPT@
-INSTALL_STRIP_PROGRAM = @INSTALL_STRIP_PROGRAM@
-INTLLIBS = @INTLLIBS@
-INTL_MACOSX_LIBS = @INTL_MACOSX_LIBS@
-INTTYPES_H = @INTTYPES_H@
-KMEM_GROUP = @KMEM_GROUP@
-LDFLAGS = @LDFLAGS@
-LIBCOREUTILS_LIBDEPS = @LIBCOREUTILS_LIBDEPS@
-LIBCOREUTILS_LTLIBDEPS = @LIBCOREUTILS_LTLIBDEPS@
-LIBICONV = @LIBICONV@
-LIBINTL = @LIBINTL@
-LIBOBJS = @LIBOBJS@
-LIBS = @LIBS@
-LIB_ACL = @LIB_ACL@
-LIB_ACL_TRIVIAL = @LIB_ACL_TRIVIAL@
-LIB_CLOCK_GETTIME = @LIB_CLOCK_GETTIME@
-LIB_CRYPT = @LIB_CRYPT@
-LIB_EACCESS = @LIB_EACCESS@
-LIB_FDATASYNC = @LIB_FDATASYNC@
-LIB_GETHRXTIME = @LIB_GETHRXTIME@
-LIB_NANOSLEEP = @LIB_NANOSLEEP@
-LN_S = @LN_S@
-LTLIBICONV = @LTLIBICONV@
-LTLIBINTL = @LTLIBINTL@
-LTLIBOBJS = @LTLIBOBJS@
-MAKEINFO = @MAKEINFO@
-MAN = @MAN@
-MKDIR_P = @MKDIR_P@
-MSGFMT = @MSGFMT@
-MSGFMT_015 = @MSGFMT_015@
-MSGMERGE = @MSGMERGE@
-NEED_SETGID = @NEED_SETGID@
-NETINET_IN_H = @NETINET_IN_H@
-OBJEXT = @OBJEXT@
-OPTIONAL_BIN_PROGS = @OPTIONAL_BIN_PROGS@
-PACKAGE = @PACKAGE@
-PACKAGE_BUGREPORT = @PACKAGE_BUGREPORT@
-PACKAGE_NAME = @PACKAGE_NAME@
-PACKAGE_STRING = @PACKAGE_STRING@
-PACKAGE_TARNAME = @PACKAGE_TARNAME@
-PACKAGE_VERSION = @PACKAGE_VERSION@
-PATH_SEPARATOR = @PATH_SEPARATOR@
-PERL = @PERL@
-POSUB = @POSUB@
-POW_LIB = @POW_LIB@
-PRIPTR_PREFIX = @PRIPTR_PREFIX@
-PRI_MACROS_BROKEN = @PRI_MACROS_BROKEN@
-PTRDIFF_T_SUFFIX = @PTRDIFF_T_SUFFIX@
-RANLIB = @RANLIB@
-REPLACE_CHOWN = @REPLACE_CHOWN@
-REPLACE_FCHDIR = @REPLACE_FCHDIR@
-REPLACE_FPRINTF = @REPLACE_FPRINTF@
-REPLACE_GETCWD = @REPLACE_GETCWD@
-REPLACE_GETTIMEOFDAY = @REPLACE_GETTIMEOFDAY@
-REPLACE_LOCALTIME_R = @REPLACE_LOCALTIME_R@
-REPLACE_MKSTEMP = @REPLACE_MKSTEMP@
-REPLACE_NANOSLEEP = @REPLACE_NANOSLEEP@
-REPLACE_PRINTF = @REPLACE_PRINTF@
-REPLACE_SNPRINTF = @REPLACE_SNPRINTF@
-REPLACE_SPRINTF = @REPLACE_SPRINTF@
-REPLACE_STRPTIME = @REPLACE_STRPTIME@
-REPLACE_TIMEGM = @REPLACE_TIMEGM@
-REPLACE_VFPRINTF = @REPLACE_VFPRINTF@
-REPLACE_VPRINTF = @REPLACE_VPRINTF@
-REPLACE_VSNPRINTF = @REPLACE_VSNPRINTF@
-REPLACE_VSPRINTF = @REPLACE_VSPRINTF@
-SEQ_LIBM = @SEQ_LIBM@
-SET_MAKE = @SET_MAKE@
-SHELL = @SHELL@
-SIG_ATOMIC_T_SUFFIX = @SIG_ATOMIC_T_SUFFIX@
-SIZE_T_SUFFIX = @SIZE_T_SUFFIX@
-STDBOOL_H = @STDBOOL_H@
-STDINT_H = @STDINT_H@
-STRIP = @STRIP@
-SYS_SOCKET_H = @SYS_SOCKET_H@
-SYS_STAT_H = @SYS_STAT_H@
-SYS_TIME_H = @SYS_TIME_H@
-SYS_TIME_H_DEFINES_STRUCT_TIMESPEC = @SYS_TIME_H_DEFINES_STRUCT_TIMESPEC@
-TIME_H_DEFINES_STRUCT_TIMESPEC = @TIME_H_DEFINES_STRUCT_TIMESPEC@
-U = @U@
-USE_NLS = @USE_NLS@
-VERSION = @VERSION@
-WCHAR_H = @WCHAR_H@
-WCHAR_T_SUFFIX = @WCHAR_T_SUFFIX@
-WCTYPE_H = @WCTYPE_H@
-WINT_T_SUFFIX = @WINT_T_SUFFIX@
-XGETTEXT = @XGETTEXT@
-XGETTEXT_015 = @XGETTEXT_015@
-YACC = @YACC@
-YFLAGS = @YFLAGS@
-abs_builddir = @abs_builddir@
-abs_srcdir = @abs_srcdir@
-abs_top_builddir = @abs_top_builddir@
-abs_top_srcdir = @abs_top_srcdir@
-ac_ct_CC = @ac_ct_CC@
-am__include = @am__include@
-am__leading_dot = @am__leading_dot@
-am__quote = @am__quote@
-am__tar = @am__tar@
-am__untar = @am__untar@
-bindir = @bindir@
-build = @build@
-build_alias = @build_alias@
-build_cpu = @build_cpu@
-build_os = @build_os@
-build_vendor = @build_vendor@
-builddir = @builddir@
-datadir = @datadir@
-datarootdir = @datarootdir@
-docdir = @docdir@
-dvidir = @dvidir@
-exec_prefix = @exec_prefix@
-gl_LIBOBJS = @gl_LIBOBJS@
-gl_LTLIBOBJS = @gl_LTLIBOBJS@
-host = @host@
-host_alias = @host_alias@
-host_cpu = @host_cpu@
-host_os = @host_os@
-host_vendor = @host_vendor@
-htmldir = @htmldir@
-includedir = @includedir@
-infodir = @infodir@
-install_sh = @install_sh@
-libdir = @libdir@
-libexecdir = @libexecdir@
-localedir = @localedir@
-localstatedir = @localstatedir@
-mandir = @mandir@
-mkdir_p = @mkdir_p@
-oldincludedir = @oldincludedir@
-pdfdir = @pdfdir@
-prefix = @prefix@
-program_transform_name = @program_transform_name@
-psdir = @psdir@
-sbindir = @sbindir@
-sharedstatedir = @sharedstatedir@
-srcdir = @srcdir@
-sysconfdir = @sysconfdir@
-target_alias = @target_alias@
-top_builddir = @top_builddir@
-top_srcdir = @top_srcdir@
-x = tr
-explicit =
-maint_gen = 1.I 1.X 2.I 2.X 3.I 3.X 4.I 4.X 5.I 5.X 6.I 6.X 7.I 7.X 8.I 8.X \
-9.I 9.X a.I a.X b.I b.X c.I c.X d.I d.X e.I e.X f.I f.X g.I g.X h.I h.X i.I \
-i.X j.I j.X k.I k.X l.I l.X m.I m.X n.I n.X o.I o.X p.I p.X q.I q.X r.I r.X \
-s.I s.X t.I t.X u.I u.X v.I v.X w.I w.X x.I x.X y.I y.X z.I z.X range-a-a.I \
-range-a-a.X null.I null.X upcase.I upcase.X dncase.I dncase.X rep-cclass.I \
-rep-cclass.X rep-1.I rep-1.X rep-2.I rep-2.X rep-3.I rep-3.X o-rep-1.I \
-o-rep-1.X o-rep-2.I o-rep-2.X esc.I esc.X bs-055.I bs-055.X bs-at-end.I \
-bs-at-end.X ross-0a.I ross-0a.X ross-0b.I ross-0b.X ross-1a.I ross-1a.X \
-ross-1b.I ross-1b.X ross-2.I ross-2.X ross-3.I ross-3.X ross-4.I ross-4.X \
-ross-5.I ross-5.X ross-6.I ross-6.X empty-eq.I empty-eq.X empty-cc.I \
-empty-cc.X repeat-bs-9.I repeat-bs-9.X repeat-0.I repeat-0.X repeat-zeros.I \
-repeat-zeros.X repeat-compl.I repeat-compl.X repeat-xC.I repeat-xC.X \
-fowler-1.I fowler-1.X
-
-run_gen = 1.O 1.E 2.O 2.E 3.O 3.E 4.O 4.E 5.O 5.E 6.O 6.E 7.O 7.E 8.O 8.E 9.O \
-9.E a.O a.E b.O b.E c.O c.E d.O d.E e.O e.E f.O f.E g.O g.E h.O h.E i.O i.E \
-j.O j.E k.O k.E l.O l.E m.O m.E n.O n.E o.O o.E p.O p.E q.O q.E r.O r.E s.O \
-s.E t.O t.E u.O u.E v.O v.E w.O w.E x.O x.E y.O y.E z.O z.E range-a-a.O \
-range-a-a.E null.O null.E upcase.O upcase.E dncase.O dncase.E rep-cclass.O \
-rep-cclass.E rep-1.O rep-1.E rep-2.O rep-2.E rep-3.O rep-3.E o-rep-1.O \
-o-rep-1.E o-rep-2.O o-rep-2.E esc.O esc.E bs-055.O bs-055.E bs-at-end.O \
-bs-at-end.E ross-0a.O ross-0a.E ross-0b.O ross-0b.E ross-1a.O ross-1a.E \
-ross-1b.O ross-1b.E ross-2.O ross-2.E ross-3.O ross-3.E ross-4.O ross-4.E \
-ross-5.O ross-5.E ross-6.O ross-6.E empty-eq.O empty-eq.E empty-cc.O \
-empty-cc.E repeat-bs-9.O repeat-bs-9.E repeat-0.O repeat-0.E repeat-zeros.O \
-repeat-zeros.E repeat-compl.O repeat-compl.E repeat-xC.O repeat-xC.E \
-fowler-1.O fowler-1.E
-
-EXTRA_DIST = Test.pm $x-tests $(explicit) $(maint_gen)
-noinst_SCRIPTS = $x-tests
-TESTS_ENVIRONMENT = \
- CU_TEST_NAME=`basename $(abs_srcdir)`,$$tst \
- PATH="$(VG_PATH_PREFIX)`pwd`/../../src$(PATH_SEPARATOR)$$PATH"
-
-editpl = sed -e 's,@''PERL''@,$(PERL),g' -e 's,@''srcdir''@,$(srcdir),g'
-TESTS = $x-tests
-mk_script = $(srcdir)/../mk-script
-MAINTAINERCLEANFILES = $x-tests $(maint_gen)
-CLEANFILES = $(run_gen)
-all: all-am
-
-.SUFFIXES:
-$(srcdir)/Makefile.in: $(srcdir)/Makefile.am $(am__configure_deps)
- @for dep in $?; do \
- case '$(am__configure_deps)' in \
- *$$dep*) \
- cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh \
- && exit 0; \
- exit 1;; \
- esac; \
- done; \
- echo ' cd $(top_srcdir) && $(AUTOMAKE) --gnu tests/tr/Makefile'; \
- cd $(top_srcdir) && \
- $(AUTOMAKE) --gnu tests/tr/Makefile
-.PRECIOUS: Makefile
-Makefile: $(srcdir)/Makefile.in $(top_builddir)/config.status
- @case '$?' in \
- *config.status*) \
- cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh;; \
- *) \
- echo ' cd $(top_builddir) && $(SHELL) ./config.status $(subdir)/$@ $(am__depfiles_maybe)'; \
- cd $(top_builddir) && $(SHELL) ./config.status $(subdir)/$@ $(am__depfiles_maybe);; \
- esac;
-
-$(top_builddir)/config.status: $(top_srcdir)/configure $(CONFIG_STATUS_DEPENDENCIES)
- cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh
-
-$(top_srcdir)/configure: $(am__configure_deps)
- cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh
-$(ACLOCAL_M4): $(am__aclocal_m4_deps)
- cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh
-tags: TAGS
-TAGS:
-
-ctags: CTAGS
-CTAGS:
-
-
-check-TESTS: $(TESTS)
- @failed=0; all=0; xfail=0; xpass=0; skip=0; ws='[ ]'; \
- srcdir=$(srcdir); export srcdir; \
- list=' $(TESTS) '; \
- if test -n "$$list"; then \
- for tst in $$list; do \
- if test -f ./$$tst; then dir=./; \
- elif test -f $$tst; then dir=; \
- else dir="$(srcdir)/"; fi; \
- if $(TESTS_ENVIRONMENT) $${dir}$$tst; then \
- all=`expr $$all + 1`; \
- case " $(XFAIL_TESTS) " in \
- *$$ws$$tst$$ws*) \
- xpass=`expr $$xpass + 1`; \
- failed=`expr $$failed + 1`; \
- echo "XPASS: $$tst"; \
- ;; \
- *) \
- echo "PASS: $$tst"; \
- ;; \
- esac; \
- elif test $$? -ne 77; then \
- all=`expr $$all + 1`; \
- case " $(XFAIL_TESTS) " in \
- *$$ws$$tst$$ws*) \
- xfail=`expr $$xfail + 1`; \
- echo "XFAIL: $$tst"; \
- ;; \
- *) \
- failed=`expr $$failed + 1`; \
- echo "FAIL: $$tst"; \
- ;; \
- esac; \
- else \
- skip=`expr $$skip + 1`; \
- echo "SKIP: $$tst"; \
- fi; \
- done; \
- if test "$$failed" -eq 0; then \
- if test "$$xfail" -eq 0; then \
- banner="All $$all tests passed"; \
- else \
- banner="All $$all tests behaved as expected ($$xfail expected failures)"; \
- fi; \
- else \
- if test "$$xpass" -eq 0; then \
- banner="$$failed of $$all tests failed"; \
- else \
- banner="$$failed of $$all tests did not behave as expected ($$xpass unexpected passes)"; \
- fi; \
- fi; \
- dashes="$$banner"; \
- skipped=""; \
- if test "$$skip" -ne 0; then \
- skipped="($$skip tests were not run)"; \
- test `echo "$$skipped" | wc -c` -le `echo "$$banner" | wc -c` || \
- dashes="$$skipped"; \
- fi; \
- report=""; \
- if test "$$failed" -ne 0 && test -n "$(PACKAGE_BUGREPORT)"; then \
- report="Please report to $(PACKAGE_BUGREPORT)"; \
- test `echo "$$report" | wc -c` -le `echo "$$banner" | wc -c` || \
- dashes="$$report"; \
- fi; \
- dashes=`echo "$$dashes" | sed s/./=/g`; \
- echo "$$dashes"; \
- echo "$$banner"; \
- test -z "$$skipped" || echo "$$skipped"; \
- test -z "$$report" || echo "$$report"; \
- echo "$$dashes"; \
- test "$$failed" -eq 0; \
- else :; fi
-
-distdir: $(DISTFILES)
- @srcdirstrip=`echo "$(srcdir)" | sed 's/[].[^$$\\*]/\\\\&/g'`; \
- topsrcdirstrip=`echo "$(top_srcdir)" | sed 's/[].[^$$\\*]/\\\\&/g'`; \
- list='$(DISTFILES)'; \
- dist_files=`for file in $$list; do echo $$file; done | \
- sed -e "s|^$$srcdirstrip/||;t" \
- -e "s|^$$topsrcdirstrip/|$(top_builddir)/|;t"`; \
- case $$dist_files in \
- */*) $(MKDIR_P) `echo "$$dist_files" | \
- sed '/\//!d;s|^|$(distdir)/|;s,/[^/]*$$,,' | \
- sort -u` ;; \
- esac; \
- for file in $$dist_files; do \
- if test -f $$file || test -d $$file; then d=.; else d=$(srcdir); fi; \
- if test -d $$d/$$file; then \
- dir=`echo "/$$file" | sed -e 's,/[^/]*$$,,'`; \
- if test -d $(srcdir)/$$file && test $$d != $(srcdir); then \
- cp -pR $(srcdir)/$$file $(distdir)$$dir || exit 1; \
- fi; \
- cp -pR $$d/$$file $(distdir)$$dir || exit 1; \
- else \
- test -f $(distdir)/$$file \
- || cp -p $$d/$$file $(distdir)/$$file \
- || exit 1; \
- fi; \
- done
-check-am: all-am
- $(MAKE) $(AM_MAKEFLAGS) check-TESTS
-check: check-am
-all-am: Makefile $(SCRIPTS)
-installdirs:
-install: install-am
-install-exec: install-exec-am
-install-data: install-data-am
-uninstall: uninstall-am
-
-install-am: all-am
- @$(MAKE) $(AM_MAKEFLAGS) install-exec-am install-data-am
-
-installcheck: installcheck-am
-install-strip:
- $(MAKE) $(AM_MAKEFLAGS) INSTALL_PROGRAM="$(INSTALL_STRIP_PROGRAM)" \
- install_sh_PROGRAM="$(INSTALL_STRIP_PROGRAM)" INSTALL_STRIP_FLAG=-s \
- `test -z '$(STRIP)' || \
- echo "INSTALL_PROGRAM_ENV=STRIPPROG='$(STRIP)'"` install
-mostlyclean-generic:
-
-clean-generic:
- -test -z "$(CLEANFILES)" || rm -f $(CLEANFILES)
-
-distclean-generic:
- -test -z "$(CONFIG_CLEAN_FILES)" || rm -f $(CONFIG_CLEAN_FILES)
-
-maintainer-clean-generic:
- @echo "This command is intended for maintainers to use"
- @echo "it deletes files that may require special tools to rebuild."
- -test -z "$(MAINTAINERCLEANFILES)" || rm -f $(MAINTAINERCLEANFILES)
-clean: clean-am
-
-clean-am: clean-generic mostlyclean-am
-
-distclean: distclean-am
- -rm -f Makefile
-distclean-am: clean-am distclean-generic
-
-dvi: dvi-am
-
-dvi-am:
-
-html: html-am
-
-info: info-am
-
-info-am:
-
-install-data-am:
-
-install-dvi: install-dvi-am
-
-install-exec-am:
-
-install-html: install-html-am
-
-install-info: install-info-am
-
-install-man:
-
-install-pdf: install-pdf-am
-
-install-ps: install-ps-am
-
-installcheck-am:
-
-maintainer-clean: maintainer-clean-am
- -rm -f Makefile
-maintainer-clean-am: distclean-am maintainer-clean-generic
-
-mostlyclean: mostlyclean-am
-
-mostlyclean-am: mostlyclean-generic
-
-pdf: pdf-am
-
-pdf-am:
-
-ps: ps-am
-
-ps-am:
-
-uninstall-am:
-
-.MAKE: install-am install-strip
-
-.PHONY: all all-am check check-TESTS check-am clean clean-generic \
- distclean distclean-generic distdir dvi dvi-am html html-am \
- info info-am install install-am install-data install-data-am \
- install-dvi install-dvi-am install-exec install-exec-am \
- install-html install-html-am install-info install-info-am \
- install-man install-pdf install-pdf-am install-ps \
- install-ps-am install-strip installcheck installcheck-am \
- installdirs maintainer-clean maintainer-clean-generic \
- mostlyclean mostlyclean-generic pdf pdf-am ps ps-am uninstall \
- uninstall-am
-
-$(srcdir)/$x-tests: $(mk_script) Test.pm Makefile.am
- test '$x' = test && prog=../../src/$x || prog=$x; \
- $(PERL) -I$(srcdir) -w -- $(mk_script) $(srcdir) $$prog > $@.n
- mv $@.n $@
- chmod 755 $@
-
-check: $(maint_gen)
-
-$(srcdir)/Makefile.am: ../Makefile.am.in Test.pm $(mk_script)
- rm -f $@ $@t
- sed -n '1,/^##test-files-begin/p' $(srcdir)/../Makefile.am.in > $@t
- tool=`echo $(subdir)|sed 's/^tests.//;s/-test//'`; \
- echo "x = $$tool" >> $@t
- $(PERL) -I$(srcdir) -w -- $(mk_script) $(srcdir) --list >> $@t
- sed -n '/^##test-files-end/,$$p' $(srcdir)/../Makefile.am.in >> $@t
- chmod -w $@t
- mv $@t $@
-# Tell versions [3.59,3.63) of GNU make to not export all variables.
-# Otherwise a system limit (for SysV at least) may be exceeded.
-.NOEXPORT:
diff --git a/tests/tr/TODO b/tests/tr/TODO
deleted file mode 100644
index e1cffb7..0000000
--- a/tests/tr/TODO
+++ /dev/null
@@ -1 +0,0 @@
-Integrate tests from the files `range-tests' and `failures'.
diff --git a/tests/tr/Test.pm b/tests/tr/Test.pm
deleted file mode 100755
index 3475740..0000000
--- a/tests/tr/Test.pm
+++ /dev/null
@@ -1,152 +0,0 @@
-# Test "tr".
-
-# Copyright (C) 1996, 1997, 2000, 2002, 2004, 2005, 2006 Free Software
-# Foundation, Inc.
-
-# This program is free software; you can redistribute it and/or modify
-# it under the terms of the GNU General Public License as published by
-# the Free Software Foundation; either version 2 of the License, or
-# (at your option) any later version.
-
-# This program is distributed in the hope that it will be useful,
-# but WITHOUT ANY WARRANTY; without even the implied warranty of
-# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
-# GNU General Public License for more details.
-
-# You should have received a copy of the GNU General Public License
-# along with this program; if not, write to the Free Software
-# Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA
-# 02110-1301, USA.
-
-package Test;
-require 5.002;
-use strict;
-
-$Test::input_via_stdin = 1;
-
-my @tv = (
-# test flags 1 or 2 strings input expected output expected return code
-#
-['1', q|'abcd' '[]*]'|, 'abcd', ']]]]', 0],
-['2', q|'abc' '[%*]xyz'|, 'abc', 'xyz', 0],
-['3', q|'' '[.*]'|, 'abc', 'abc', 0],
-# Test --truncate-set1 behavior when string1 is longer than string2
-['4', '-t ' . q|'abcd' 'xy'|, 'abcde', 'xycde', 0],
-# Test bsd behavior (the default) when string1 is longer than string2
-['5', q|'abcd' 'xy'|, 'abcde', 'xyyye', 0],
-# Do it the posix way
-['6', q|'abcd' 'x[y*]'|, 'abcde', 'xyyye', 0],
-#
-['7', '-s ' . q|'a-p' '%[.*]$'|, 'abcdefghijklmnop', '%.$', 0],
-['8', '-s ' . q|'a-p' '[.*]$'|, 'abcdefghijklmnop', '.$', 0],
-['9', '-s ' . q|'a-p' '%[.*]'|, 'abcdefghijklmnop', '%.', 0],
-['a', '-s ' . q|'[a-z]'|, 'aabbcc', 'abc', 0],
-['b', '-s ' . q|'[a-c]'|, 'aabbcc', 'abc', 0],
-['c', '-s ' . q|'[a-b]'|, 'aabbcc', 'abcc', 0],
-['d', '-s ' . q|'[b-c]'|, 'aabbcc', 'aabc', 0],
-['e', '-s ' . q|'[\0-\5]'|,
- "\0\0a\1\1b\2\2\2c\3\3\3d\4\4\4\4e\5\5",
- "\0a\1b\2c\3d\4e\5", 0],
-# tests of delete
-['f', '-d ' . q|'[=[=]'|, '[[[[[[[]]]]]]]]', ']]]]]]]]', 0],
-['g', '-d ' . q|'[=]=]'|, '[[[[[[[]]]]]]]]', '[[[[[[[', 0],
-['h', '-d ' . q|'[:xdigit:]'|, '0123456789acbdefABCDEF', '', 0],
-['i', '-d ' . q|'[:xdigit:]'|, 'w0x1y2z3456789acbdefABCDEFz', 'wxyzz', 0],
-['j', '-d ' . q|'[:digit:]'|, '0123456789', '', 0],
-['k', '-d ' . q|'[:digit:]'|, 'a0b1c2d3e4f5g6h7i8j9k', 'abcdefghijk', 0],
-['l', '-d ' . q|'[:lower:]'|, 'abcdefghijklmnopqrstuvwxyz', '', 0],
-['m', '-d ' . q|'[:upper:]'|, 'ABCDEFGHIJKLMNOPQRSTUVWXYZ', '', 0],
-['n', '-d ' . q|'[:lower:][:upper:]'|,
- 'abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ', '', 0],
-['o', '-d ' . q|'[:alpha:]'|,
- 'abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ', '', 0],
-['p', '-d ' . q|'[:alnum:]'|,
- 'abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789', '', 0],
-['q', '-d ' . q|'[:alnum:]'|,
- '.abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789.', '..', 0],
-['r', '-ds ' . q|'[:alnum:]' '.'|,
- '.abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789.', '.', 0],
-
-# The classic example, with string2 BSD-style
-['s', '-cs ' . q|'[:alnum:]' '\n'|,
- 'The big black fox jumped over the fence.',
- "The\nbig\nblack\nfox\njumped\nover\nthe\nfence\n", 0],
-
-# The classic example, POSIX-style
-['t', '-cs ' . q|'[:alnum:]' '[\n*]'|,
- 'The big black fox jumped over the fence.',
- "The\nbig\nblack\nfox\njumped\nover\nthe\nfence\n", 0],
-['u', '-ds ' . q|'b' 'a'|, 'aabbaa', 'a', 0],
-['v', '-ds ' . q|'[:xdigit:]' 'Z'|,
- 'ZZ0123456789acbdefABCDEFZZ', 'Z', 0],
-
-# Try some data with 8th bit set in case something is mistakenly sign-extended.
-['w', '-ds ' . q|'\350' '\345'|,
- "\300\301\377\345\345\350\345",
- "\300\301\377\345", 0],
-['x', '-s ' . q|'abcdefghijklmn' '[:*016]'|, 'abcdefghijklmnop', ':op', 0],
-['y', '-d ' . q|'a-z'|, 'abc $code', ' $', 0],
-['z', '-ds ' . q|'a-z' '$.'|, 'a.b.c $$$$code\\', '. $\\', 0],
-
-# Make sure that a-a is accepted.
-['range-a-a', q|'a-a' 'z'|, 'abc', 'zbc', 0],
-#
-['null', q|'a' ''''|, '', '', 1],
-['upcase',q|'[:lower:]' '[:upper:]'|, 'abcxyzABCXYZ', 'ABCXYZABCXYZ', 0],
-['dncase', q|'[:upper:]' '[:lower:]'|, 'abcxyzABCXYZ', 'abcxyzabcxyz', 0],
-#
-['rep-cclass', q|'a[=*2][=c=]' 'xyyz'|, 'a=c', 'xyz', 0],
-['rep-1', q|'[:*3][:digit:]' 'a-m'|, ':1239', 'cefgm', 0],
-['rep-2', q|'a[b*512]c' '1[x*]2'|, 'abc', '1x2', 0],
-['rep-3', q|'a[b*513]c' '1[x*]2'|, 'abc', '1x2', 0],
-# Another couple octal repeat count tests.
-['o-rep-1', q|'[b*08]' '[x*]'|, '', '', 1],
-['o-rep-2', q|'[b*010]cd' '[a*7]BC[x*]'|, 'bcd', 'BCx', 0],
-
-['esc', q|'a\-z' 'A-Z'|, 'abc-z', 'AbcBC', 0],
-['bs-055', q|'a\055b' def|, "a\055b", 'def', 0],
-['bs-at-end', q|'\' x|, "\\", 'x', 0],
-
-#
-# From Ross
-['ross-0a', '-cs ' . q|'[:upper:]' 'X[Y*]'|, '', '', 1],
-['ross-0b', '-cs ' . q|'[:cntrl:]' 'X[Y*]'|, '', '', 1],
-['ross-1a', '-cs ' . q|'[:upper:]' '[X*]'|, 'AMZamz123.-+AMZ', 'AMZXAMZ', 0],
-['ross-1b', '-cs ' . q|'[:upper:][:digit:]' '[Z*]'|, '', '', 0],
-['ross-2', '-dcs ' . q|'[:lower:]' 'n-rs-z'|, 'amzAMZ123.-+amz', 'amzamz', 0],
-['ross-3', '-ds ' . q|'[:xdigit:]' '[:alnum:]'|,
- '.ZABCDEFGzabcdefg.0123456788899.GG', '.ZGzg..G', 0],
-['ross-4', '-dcs ' . q|'[:alnum:]' '[:digit:]'|, '', '', 0],
-['ross-5', '-dc ' . q|'[:lower:]'|, '', '', 0],
-['ross-6', '-dc ' . q|'[:upper:]'|, '', '', 0],
-
-# Ensure that these fail.
-# Prior to 2.0.20, each would evoke a failed assertion.
-['empty-eq', q|'[==]' x|, '', '', 1],
-['empty-cc', q|'[::]' x|, '', '', 1],
-
-# Weird repeat counts.
-['repeat-bs-9', q|abc '[b*\9]'|, 'abcd', '[b*d', 0],
-['repeat-0', q|abc '[b*0]'|, 'abcd', 'bbbd', 0],
-['repeat-zeros', q|abc '[b*00000000000000000000]'|, 'abcd', 'bbbd', 0],
-['repeat-compl', '-c ' . q|'[a*65536]\n' '[b*]'|, 'abcd', 'abbb', 0],
-['repeat-xC', '-C ' . q|'[a*65536]\n' '[b*]'|, 'abcd', 'abbb', 0],
-
-# From Glenn Fowler.
-['fowler-1', q|ah -H|, 'aha', '-H-', 0],
-
-);
-
-sub test_vector
-{
- my $t;
- foreach $t (@tv)
- {
- my ($test_name, $flags, $in, $exp, $ret) = @$t;
- $Test::input_via{$test_name} = {REDIR => 0, PIPE => 0};
- }
-
- return @tv;
-}
-
-1;
diff --git a/tests/tr/a.I b/tests/tr/a.I
deleted file mode 100644
index 4a60922..0000000
--- a/tests/tr/a.I
+++ /dev/null
@@ -1 +0,0 @@
-aabbcc \ No newline at end of file
diff --git a/tests/tr/a.X b/tests/tr/a.X
deleted file mode 100644
index f2ba8f8..0000000
--- a/tests/tr/a.X
+++ /dev/null
@@ -1 +0,0 @@
-abc \ No newline at end of file
diff --git a/tests/tr/b.I b/tests/tr/b.I
deleted file mode 100644
index 4a60922..0000000
--- a/tests/tr/b.I
+++ /dev/null
@@ -1 +0,0 @@
-aabbcc \ No newline at end of file
diff --git a/tests/tr/b.X b/tests/tr/b.X
deleted file mode 100644
index f2ba8f8..0000000
--- a/tests/tr/b.X
+++ /dev/null
@@ -1 +0,0 @@
-abc \ No newline at end of file
diff --git a/tests/tr/bs-055.I b/tests/tr/bs-055.I
deleted file mode 100644
index 5c7796f..0000000
--- a/tests/tr/bs-055.I
+++ /dev/null
@@ -1 +0,0 @@
-a-b \ No newline at end of file
diff --git a/tests/tr/bs-055.X b/tests/tr/bs-055.X
deleted file mode 100644
index 0c00383..0000000
--- a/tests/tr/bs-055.X
+++ /dev/null
@@ -1 +0,0 @@
-def \ No newline at end of file
diff --git a/tests/tr/bs-at-end.I b/tests/tr/bs-at-end.I
deleted file mode 100644
index b7d5379..0000000
--- a/tests/tr/bs-at-end.I
+++ /dev/null
@@ -1 +0,0 @@
-\ \ No newline at end of file
diff --git a/tests/tr/bs-at-end.X b/tests/tr/bs-at-end.X
deleted file mode 100644
index c1b0730..0000000
--- a/tests/tr/bs-at-end.X
+++ /dev/null
@@ -1 +0,0 @@
-x \ No newline at end of file
diff --git a/tests/tr/c.I b/tests/tr/c.I
deleted file mode 100644
index 4a60922..0000000
--- a/tests/tr/c.I
+++ /dev/null
@@ -1 +0,0 @@
-aabbcc \ No newline at end of file
diff --git a/tests/tr/c.X b/tests/tr/c.X
deleted file mode 100644
index 8b5cb22..0000000
--- a/tests/tr/c.X
+++ /dev/null
@@ -1 +0,0 @@
-abcc \ No newline at end of file
diff --git a/tests/tr/d.I b/tests/tr/d.I
deleted file mode 100644
index 4a60922..0000000
--- a/tests/tr/d.I
+++ /dev/null
@@ -1 +0,0 @@
-aabbcc \ No newline at end of file
diff --git a/tests/tr/d.X b/tests/tr/d.X
deleted file mode 100644
index f6d629a..0000000
--- a/tests/tr/d.X
+++ /dev/null
@@ -1 +0,0 @@
-aabc \ No newline at end of file
diff --git a/tests/tr/dncase.I b/tests/tr/dncase.I
deleted file mode 100644
index ef2f0e1..0000000
--- a/tests/tr/dncase.I
+++ /dev/null
@@ -1 +0,0 @@
-abcxyzABCXYZ \ No newline at end of file
diff --git a/tests/tr/dncase.X b/tests/tr/dncase.X
deleted file mode 100644
index 88924ab..0000000
--- a/tests/tr/dncase.X
+++ /dev/null
@@ -1 +0,0 @@
-abcxyzabcxyz \ No newline at end of file
diff --git a/tests/tr/e.I b/tests/tr/e.I
deleted file mode 100644
index 17595c1..0000000
--- a/tests/tr/e.I
+++ /dev/null
Binary files differ
diff --git a/tests/tr/e.X b/tests/tr/e.X
deleted file mode 100644
index b8a4f59..0000000
--- a/tests/tr/e.X
+++ /dev/null
Binary files differ
diff --git a/tests/tr/empty-cc.I b/tests/tr/empty-cc.I
deleted file mode 100644
index e69de29..0000000
--- a/tests/tr/empty-cc.I
+++ /dev/null
diff --git a/tests/tr/empty-cc.X b/tests/tr/empty-cc.X
deleted file mode 100644
index e69de29..0000000
--- a/tests/tr/empty-cc.X
+++ /dev/null
diff --git a/tests/tr/empty-eq.I b/tests/tr/empty-eq.I
deleted file mode 100644
index e69de29..0000000
--- a/tests/tr/empty-eq.I
+++ /dev/null
diff --git a/tests/tr/empty-eq.X b/tests/tr/empty-eq.X
deleted file mode 100644
index e69de29..0000000
--- a/tests/tr/empty-eq.X
+++ /dev/null
diff --git a/tests/tr/esc.I b/tests/tr/esc.I
deleted file mode 100644
index b50d678..0000000
--- a/tests/tr/esc.I
+++ /dev/null
@@ -1 +0,0 @@
-abc-z \ No newline at end of file
diff --git a/tests/tr/esc.X b/tests/tr/esc.X
deleted file mode 100644
index 4a8f26b..0000000
--- a/tests/tr/esc.X
+++ /dev/null
@@ -1 +0,0 @@
-AbcBC \ No newline at end of file
diff --git a/tests/tr/f.I b/tests/tr/f.I
deleted file mode 100644
index a2d7b65..0000000
--- a/tests/tr/f.I
+++ /dev/null
@@ -1 +0,0 @@
-[[[[[[[]]]]]]]] \ No newline at end of file
diff --git a/tests/tr/f.X b/tests/tr/f.X
deleted file mode 100644
index 11f77fa..0000000
--- a/tests/tr/f.X
+++ /dev/null
@@ -1 +0,0 @@
-]]]]]]]] \ No newline at end of file
diff --git a/tests/tr/fowler-1.I b/tests/tr/fowler-1.I
deleted file mode 100644
index e906b8f..0000000
--- a/tests/tr/fowler-1.I
+++ /dev/null
@@ -1 +0,0 @@
-aha \ No newline at end of file
diff --git a/tests/tr/fowler-1.X b/tests/tr/fowler-1.X
deleted file mode 100644
index c9feb1b..0000000
--- a/tests/tr/fowler-1.X
+++ /dev/null
@@ -1 +0,0 @@
--H- \ No newline at end of file
diff --git a/tests/tr/g.I b/tests/tr/g.I
deleted file mode 100644
index a2d7b65..0000000
--- a/tests/tr/g.I
+++ /dev/null
@@ -1 +0,0 @@
-[[[[[[[]]]]]]]] \ No newline at end of file
diff --git a/tests/tr/g.X b/tests/tr/g.X
deleted file mode 100644
index 92971a2..0000000
--- a/tests/tr/g.X
+++ /dev/null
@@ -1 +0,0 @@
-[[[[[[[ \ No newline at end of file
diff --git a/tests/tr/h.I b/tests/tr/h.I
deleted file mode 100644
index 3cda32c..0000000
--- a/tests/tr/h.I
+++ /dev/null
@@ -1 +0,0 @@
-0123456789acbdefABCDEF \ No newline at end of file
diff --git a/tests/tr/h.X b/tests/tr/h.X
deleted file mode 100644
index e69de29..0000000
--- a/tests/tr/h.X
+++ /dev/null
diff --git a/tests/tr/i.I b/tests/tr/i.I
deleted file mode 100644
index 8a414d8..0000000
--- a/tests/tr/i.I
+++ /dev/null
@@ -1 +0,0 @@
-w0x1y2z3456789acbdefABCDEFz \ No newline at end of file
diff --git a/tests/tr/i.X b/tests/tr/i.X
deleted file mode 100644
index fcb2d82..0000000
--- a/tests/tr/i.X
+++ /dev/null
@@ -1 +0,0 @@
-wxyzz \ No newline at end of file
diff --git a/tests/tr/j.I b/tests/tr/j.I
deleted file mode 100644
index ad47100..0000000
--- a/tests/tr/j.I
+++ /dev/null
@@ -1 +0,0 @@
-0123456789 \ No newline at end of file
diff --git a/tests/tr/j.X b/tests/tr/j.X
deleted file mode 100644
index e69de29..0000000
--- a/tests/tr/j.X
+++ /dev/null
diff --git a/tests/tr/k.I b/tests/tr/k.I
deleted file mode 100644
index 68f959a..0000000
--- a/tests/tr/k.I
+++ /dev/null
@@ -1 +0,0 @@
-a0b1c2d3e4f5g6h7i8j9k \ No newline at end of file
diff --git a/tests/tr/k.X b/tests/tr/k.X
deleted file mode 100644
index e48ff44..0000000
--- a/tests/tr/k.X
+++ /dev/null
@@ -1 +0,0 @@
-abcdefghijk \ No newline at end of file
diff --git a/tests/tr/l.I b/tests/tr/l.I
deleted file mode 100644
index e85d5b4..0000000
--- a/tests/tr/l.I
+++ /dev/null
@@ -1 +0,0 @@
-abcdefghijklmnopqrstuvwxyz \ No newline at end of file
diff --git a/tests/tr/l.X b/tests/tr/l.X
deleted file mode 100644
index e69de29..0000000
--- a/tests/tr/l.X
+++ /dev/null
diff --git a/tests/tr/m.I b/tests/tr/m.I
deleted file mode 100644
index a6860d9..0000000
--- a/tests/tr/m.I
+++ /dev/null
@@ -1 +0,0 @@
-ABCDEFGHIJKLMNOPQRSTUVWXYZ \ No newline at end of file
diff --git a/tests/tr/m.X b/tests/tr/m.X
deleted file mode 100644
index e69de29..0000000
--- a/tests/tr/m.X
+++ /dev/null
diff --git a/tests/tr/n.I b/tests/tr/n.I
deleted file mode 100644
index e6e3e48..0000000
--- a/tests/tr/n.I
+++ /dev/null
@@ -1 +0,0 @@
-abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ \ No newline at end of file
diff --git a/tests/tr/n.X b/tests/tr/n.X
deleted file mode 100644
index e69de29..0000000
--- a/tests/tr/n.X
+++ /dev/null
diff --git a/tests/tr/null.I b/tests/tr/null.I
deleted file mode 100644
index e69de29..0000000
--- a/tests/tr/null.I
+++ /dev/null
diff --git a/tests/tr/null.X b/tests/tr/null.X
deleted file mode 100644
index e69de29..0000000
--- a/tests/tr/null.X
+++ /dev/null
diff --git a/tests/tr/o-rep-1.I b/tests/tr/o-rep-1.I
deleted file mode 100644
index e69de29..0000000
--- a/tests/tr/o-rep-1.I
+++ /dev/null
diff --git a/tests/tr/o-rep-1.X b/tests/tr/o-rep-1.X
deleted file mode 100644
index e69de29..0000000
--- a/tests/tr/o-rep-1.X
+++ /dev/null
diff --git a/tests/tr/o-rep-2.I b/tests/tr/o-rep-2.I
deleted file mode 100644
index c58cd57..0000000
--- a/tests/tr/o-rep-2.I
+++ /dev/null
@@ -1 +0,0 @@
-bcd \ No newline at end of file
diff --git a/tests/tr/o-rep-2.X b/tests/tr/o-rep-2.X
deleted file mode 100644
index 3e02548..0000000
--- a/tests/tr/o-rep-2.X
+++ /dev/null
@@ -1 +0,0 @@
-BCx \ No newline at end of file
diff --git a/tests/tr/o.I b/tests/tr/o.I
deleted file mode 100644
index e6e3e48..0000000
--- a/tests/tr/o.I
+++ /dev/null
@@ -1 +0,0 @@
-abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ \ No newline at end of file
diff --git a/tests/tr/o.X b/tests/tr/o.X
deleted file mode 100644
index e69de29..0000000
--- a/tests/tr/o.X
+++ /dev/null
diff --git a/tests/tr/p.I b/tests/tr/p.I
deleted file mode 100644
index 4667bd2..0000000
--- a/tests/tr/p.I
+++ /dev/null
@@ -1 +0,0 @@
-abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789 \ No newline at end of file
diff --git a/tests/tr/p.X b/tests/tr/p.X
deleted file mode 100644
index e69de29..0000000
--- a/tests/tr/p.X
+++ /dev/null
diff --git a/tests/tr/q.I b/tests/tr/q.I
deleted file mode 100644
index 3c876ca..0000000
--- a/tests/tr/q.I
+++ /dev/null
@@ -1 +0,0 @@
-.abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789. \ No newline at end of file
diff --git a/tests/tr/q.X b/tests/tr/q.X
deleted file mode 100644
index a96aa0e..0000000
--- a/tests/tr/q.X
+++ /dev/null
@@ -1 +0,0 @@
-.. \ No newline at end of file
diff --git a/tests/tr/r.I b/tests/tr/r.I
deleted file mode 100644
index 3c876ca..0000000
--- a/tests/tr/r.I
+++ /dev/null
@@ -1 +0,0 @@
-.abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789. \ No newline at end of file
diff --git a/tests/tr/r.X b/tests/tr/r.X
deleted file mode 100644
index 945c9b4..0000000
--- a/tests/tr/r.X
+++ /dev/null
@@ -1 +0,0 @@
-. \ No newline at end of file
diff --git a/tests/tr/range-a-a.I b/tests/tr/range-a-a.I
deleted file mode 100644
index f2ba8f8..0000000
--- a/tests/tr/range-a-a.I
+++ /dev/null
@@ -1 +0,0 @@
-abc \ No newline at end of file
diff --git a/tests/tr/range-a-a.X b/tests/tr/range-a-a.X
deleted file mode 100644
index 28ff465..0000000
--- a/tests/tr/range-a-a.X
+++ /dev/null
@@ -1 +0,0 @@
-zbc \ No newline at end of file
diff --git a/tests/tr/rep-1.I b/tests/tr/rep-1.I
deleted file mode 100644
index 48842f9..0000000
--- a/tests/tr/rep-1.I
+++ /dev/null
@@ -1 +0,0 @@
-:1239 \ No newline at end of file
diff --git a/tests/tr/rep-1.X b/tests/tr/rep-1.X
deleted file mode 100644
index fc31dd8..0000000
--- a/tests/tr/rep-1.X
+++ /dev/null
@@ -1 +0,0 @@
-cefgm \ No newline at end of file
diff --git a/tests/tr/rep-2.I b/tests/tr/rep-2.I
deleted file mode 100644
index f2ba8f8..0000000
--- a/tests/tr/rep-2.I
+++ /dev/null
@@ -1 +0,0 @@
-abc \ No newline at end of file
diff --git a/tests/tr/rep-2.X b/tests/tr/rep-2.X
deleted file mode 100644
index fdbf37b..0000000
--- a/tests/tr/rep-2.X
+++ /dev/null
@@ -1 +0,0 @@
-1x2 \ No newline at end of file
diff --git a/tests/tr/rep-3.I b/tests/tr/rep-3.I
deleted file mode 100644
index f2ba8f8..0000000
--- a/tests/tr/rep-3.I
+++ /dev/null
@@ -1 +0,0 @@
-abc \ No newline at end of file
diff --git a/tests/tr/rep-3.X b/tests/tr/rep-3.X
deleted file mode 100644
index fdbf37b..0000000
--- a/tests/tr/rep-3.X
+++ /dev/null
@@ -1 +0,0 @@
-1x2 \ No newline at end of file
diff --git a/tests/tr/rep-cclass.I b/tests/tr/rep-cclass.I
deleted file mode 100644
index 0602236..0000000
--- a/tests/tr/rep-cclass.I
+++ /dev/null
@@ -1 +0,0 @@
-a=c \ No newline at end of file
diff --git a/tests/tr/rep-cclass.X b/tests/tr/rep-cclass.X
deleted file mode 100644
index d66d9d7..0000000
--- a/tests/tr/rep-cclass.X
+++ /dev/null
@@ -1 +0,0 @@
-xyz \ No newline at end of file
diff --git a/tests/tr/repeat-0.I b/tests/tr/repeat-0.I
deleted file mode 100644
index 85df507..0000000
--- a/tests/tr/repeat-0.I
+++ /dev/null
@@ -1 +0,0 @@
-abcd \ No newline at end of file
diff --git a/tests/tr/repeat-0.X b/tests/tr/repeat-0.X
deleted file mode 100644
index c87902b..0000000
--- a/tests/tr/repeat-0.X
+++ /dev/null
@@ -1 +0,0 @@
-bbbd \ No newline at end of file
diff --git a/tests/tr/repeat-bs-9.I b/tests/tr/repeat-bs-9.I
deleted file mode 100644
index 85df507..0000000
--- a/tests/tr/repeat-bs-9.I
+++ /dev/null
@@ -1 +0,0 @@
-abcd \ No newline at end of file
diff --git a/tests/tr/repeat-bs-9.X b/tests/tr/repeat-bs-9.X
deleted file mode 100644
index 0c63346..0000000
--- a/tests/tr/repeat-bs-9.X
+++ /dev/null
@@ -1 +0,0 @@
-[b*d \ No newline at end of file
diff --git a/tests/tr/repeat-compl.I b/tests/tr/repeat-compl.I
deleted file mode 100644
index 85df507..0000000
--- a/tests/tr/repeat-compl.I
+++ /dev/null
@@ -1 +0,0 @@
-abcd \ No newline at end of file
diff --git a/tests/tr/repeat-compl.X b/tests/tr/repeat-compl.X
deleted file mode 100644
index e9dacc2..0000000
--- a/tests/tr/repeat-compl.X
+++ /dev/null
@@ -1 +0,0 @@
-abbb \ No newline at end of file
diff --git a/tests/tr/repeat-xC.I b/tests/tr/repeat-xC.I
deleted file mode 100644
index 85df507..0000000
--- a/tests/tr/repeat-xC.I
+++ /dev/null
@@ -1 +0,0 @@
-abcd \ No newline at end of file
diff --git a/tests/tr/repeat-xC.X b/tests/tr/repeat-xC.X
deleted file mode 100644
index e9dacc2..0000000
--- a/tests/tr/repeat-xC.X
+++ /dev/null
@@ -1 +0,0 @@
-abbb \ No newline at end of file
diff --git a/tests/tr/repeat-zeros.I b/tests/tr/repeat-zeros.I
deleted file mode 100644
index 85df507..0000000
--- a/tests/tr/repeat-zeros.I
+++ /dev/null
@@ -1 +0,0 @@
-abcd \ No newline at end of file
diff --git a/tests/tr/repeat-zeros.X b/tests/tr/repeat-zeros.X
deleted file mode 100644
index c87902b..0000000
--- a/tests/tr/repeat-zeros.X
+++ /dev/null
@@ -1 +0,0 @@
-bbbd \ No newline at end of file
diff --git a/tests/tr/ross-0a.I b/tests/tr/ross-0a.I
deleted file mode 100644
index e69de29..0000000
--- a/tests/tr/ross-0a.I
+++ /dev/null
diff --git a/tests/tr/ross-0a.X b/tests/tr/ross-0a.X
deleted file mode 100644
index e69de29..0000000
--- a/tests/tr/ross-0a.X
+++ /dev/null
diff --git a/tests/tr/ross-0b.I b/tests/tr/ross-0b.I
deleted file mode 100644
index e69de29..0000000
--- a/tests/tr/ross-0b.I
+++ /dev/null
diff --git a/tests/tr/ross-0b.X b/tests/tr/ross-0b.X
deleted file mode 100644
index e69de29..0000000
--- a/tests/tr/ross-0b.X
+++ /dev/null
diff --git a/tests/tr/ross-1a.I b/tests/tr/ross-1a.I
deleted file mode 100644
index c705e00..0000000
--- a/tests/tr/ross-1a.I
+++ /dev/null
@@ -1 +0,0 @@
-AMZamz123.-+AMZ \ No newline at end of file
diff --git a/tests/tr/ross-1a.X b/tests/tr/ross-1a.X
deleted file mode 100644
index 68c015d..0000000
--- a/tests/tr/ross-1a.X
+++ /dev/null
@@ -1 +0,0 @@
-AMZXAMZ \ No newline at end of file
diff --git a/tests/tr/ross-1b.I b/tests/tr/ross-1b.I
deleted file mode 100644
index e69de29..0000000
--- a/tests/tr/ross-1b.I
+++ /dev/null
diff --git a/tests/tr/ross-1b.X b/tests/tr/ross-1b.X
deleted file mode 100644
index e69de29..0000000
--- a/tests/tr/ross-1b.X
+++ /dev/null
diff --git a/tests/tr/ross-2.I b/tests/tr/ross-2.I
deleted file mode 100644
index 56610ff..0000000
--- a/tests/tr/ross-2.I
+++ /dev/null
@@ -1 +0,0 @@
-amzAMZ123.-+amz \ No newline at end of file
diff --git a/tests/tr/ross-2.X b/tests/tr/ross-2.X
deleted file mode 100644
index 966808d..0000000
--- a/tests/tr/ross-2.X
+++ /dev/null
@@ -1 +0,0 @@
-amzamz \ No newline at end of file
diff --git a/tests/tr/ross-3.I b/tests/tr/ross-3.I
deleted file mode 100644
index b0e3248..0000000
--- a/tests/tr/ross-3.I
+++ /dev/null
@@ -1 +0,0 @@
-.ZABCDEFGzabcdefg.0123456788899.GG \ No newline at end of file
diff --git a/tests/tr/ross-3.X b/tests/tr/ross-3.X
deleted file mode 100644
index e61116e..0000000
--- a/tests/tr/ross-3.X
+++ /dev/null
@@ -1 +0,0 @@
-.ZGzg..G \ No newline at end of file
diff --git a/tests/tr/ross-4.I b/tests/tr/ross-4.I
deleted file mode 100644
index e69de29..0000000
--- a/tests/tr/ross-4.I
+++ /dev/null
diff --git a/tests/tr/ross-4.X b/tests/tr/ross-4.X
deleted file mode 100644
index e69de29..0000000
--- a/tests/tr/ross-4.X
+++ /dev/null
diff --git a/tests/tr/ross-5.I b/tests/tr/ross-5.I
deleted file mode 100644
index e69de29..0000000
--- a/tests/tr/ross-5.I
+++ /dev/null
diff --git a/tests/tr/ross-5.X b/tests/tr/ross-5.X
deleted file mode 100644
index e69de29..0000000
--- a/tests/tr/ross-5.X
+++ /dev/null
diff --git a/tests/tr/ross-6.I b/tests/tr/ross-6.I
deleted file mode 100644
index e69de29..0000000
--- a/tests/tr/ross-6.I
+++ /dev/null
diff --git a/tests/tr/ross-6.X b/tests/tr/ross-6.X
deleted file mode 100644
index e69de29..0000000
--- a/tests/tr/ross-6.X
+++ /dev/null
diff --git a/tests/tr/s.I b/tests/tr/s.I
deleted file mode 100644
index c8ac0a9..0000000
--- a/tests/tr/s.I
+++ /dev/null
@@ -1 +0,0 @@
-The big black fox jumped over the fence. \ No newline at end of file
diff --git a/tests/tr/s.X b/tests/tr/s.X
deleted file mode 100644
index 5bc7887..0000000
--- a/tests/tr/s.X
+++ /dev/null
@@ -1,8 +0,0 @@
-The
-big
-black
-fox
-jumped
-over
-the
-fence
diff --git a/tests/tr/t.I b/tests/tr/t.I
deleted file mode 100644
index c8ac0a9..0000000
--- a/tests/tr/t.I
+++ /dev/null
@@ -1 +0,0 @@
-The big black fox jumped over the fence. \ No newline at end of file
diff --git a/tests/tr/t.X b/tests/tr/t.X
deleted file mode 100644
index 5bc7887..0000000
--- a/tests/tr/t.X
+++ /dev/null
@@ -1,8 +0,0 @@
-The
-big
-black
-fox
-jumped
-over
-the
-fence
diff --git a/tests/tr/tr-tests b/tests/tr/tr-tests
deleted file mode 100755
index 9003add..0000000
--- a/tests/tr/tr-tests
+++ /dev/null
@@ -1,2367 +0,0 @@
-#! /bin/sh
-# This script was generated automatically by mk-script.
-case $# in
- 0) xx='tr';;
- *) xx="$1";;
-esac
-test "$VERBOSE" && echo=echo || echo=:
-$echo testing program: $xx
-errors=0
-test "$srcdir" || srcdir=.
-test "$VERBOSE" && $xx --version 2> /dev/null
-
-# Make sure we get English translations.
-LANGUAGE=C
-export LANGUAGE
-LC_ALL=C
-export LC_ALL
-LANG=C
-export LANG
-
-cat $srcdir/1.I | $xx 'abcd' '[]*]' > 1.O 2> 1.E
-code=$?
-if test $code != 0; then
- $echo "Test 1(|) failed: $xx return code $code differs from expected value 0" 1>&2
- errors=`expr $errors + 1`
-else
- cmp 1.O $srcdir/1.X > /dev/null 2>&1
- case $? in
- 0) if test "$VERBOSE"; then $echo "passed 1(|)"; fi;;
- 1) $echo "Test 1(|) failed: files 1.O and $srcdir/1.X differ" 1>&2
- (diff -c 1.O $srcdir/1.X) 2> /dev/null
- errors=`expr $errors + 1`;;
- 2) $echo "Test 1(|) may have failed." 1>&2
- $echo The command "cmp 1.O $srcdir/1.X" failed. 1>&2
- errors=`expr $errors + 1`;;
- esac
-fi
-test -s 1.E || rm -f 1.E
-$xx 'abcd' '[]*]' < $srcdir/1.I > 1.O 2> 1.E
-code=$?
-if test $code != 0; then
- $echo "Test 1(<) failed: $xx return code $code differs from expected value 0" 1>&2
- errors=`expr $errors + 1`
-else
- cmp 1.O $srcdir/1.X > /dev/null 2>&1
- case $? in
- 0) if test "$VERBOSE"; then $echo "passed 1(<)"; fi;;
- 1) $echo "Test 1(<) failed: files 1.O and $srcdir/1.X differ" 1>&2
- (diff -c 1.O $srcdir/1.X) 2> /dev/null
- errors=`expr $errors + 1`;;
- 2) $echo "Test 1(<) may have failed." 1>&2
- $echo The command "cmp 1.O $srcdir/1.X" failed. 1>&2
- errors=`expr $errors + 1`;;
- esac
-fi
-test -s 1.E || rm -f 1.E
-cat $srcdir/2.I | $xx 'abc' '[%*]xyz' > 2.O 2> 2.E
-code=$?
-if test $code != 0; then
- $echo "Test 2(|) failed: $xx return code $code differs from expected value 0" 1>&2
- errors=`expr $errors + 1`
-else
- cmp 2.O $srcdir/2.X > /dev/null 2>&1
- case $? in
- 0) if test "$VERBOSE"; then $echo "passed 2(|)"; fi;;
- 1) $echo "Test 2(|) failed: files 2.O and $srcdir/2.X differ" 1>&2
- (diff -c 2.O $srcdir/2.X) 2> /dev/null
- errors=`expr $errors + 1`;;
- 2) $echo "Test 2(|) may have failed." 1>&2
- $echo The command "cmp 2.O $srcdir/2.X" failed. 1>&2
- errors=`expr $errors + 1`;;
- esac
-fi
-test -s 2.E || rm -f 2.E
-$xx 'abc' '[%*]xyz' < $srcdir/2.I > 2.O 2> 2.E
-code=$?
-if test $code != 0; then
- $echo "Test 2(<) failed: $xx return code $code differs from expected value 0" 1>&2
- errors=`expr $errors + 1`
-else
- cmp 2.O $srcdir/2.X > /dev/null 2>&1
- case $? in
- 0) if test "$VERBOSE"; then $echo "passed 2(<)"; fi;;
- 1) $echo "Test 2(<) failed: files 2.O and $srcdir/2.X differ" 1>&2
- (diff -c 2.O $srcdir/2.X) 2> /dev/null
- errors=`expr $errors + 1`;;
- 2) $echo "Test 2(<) may have failed." 1>&2
- $echo The command "cmp 2.O $srcdir/2.X" failed. 1>&2
- errors=`expr $errors + 1`;;
- esac
-fi
-test -s 2.E || rm -f 2.E
-cat $srcdir/3.I | $xx '' '[.*]' > 3.O 2> 3.E
-code=$?
-if test $code != 0; then
- $echo "Test 3(|) failed: $xx return code $code differs from expected value 0" 1>&2
- errors=`expr $errors + 1`
-else
- cmp 3.O $srcdir/3.X > /dev/null 2>&1
- case $? in
- 0) if test "$VERBOSE"; then $echo "passed 3(|)"; fi;;
- 1) $echo "Test 3(|) failed: files 3.O and $srcdir/3.X differ" 1>&2
- (diff -c 3.O $srcdir/3.X) 2> /dev/null
- errors=`expr $errors + 1`;;
- 2) $echo "Test 3(|) may have failed." 1>&2
- $echo The command "cmp 3.O $srcdir/3.X" failed. 1>&2
- errors=`expr $errors + 1`;;
- esac
-fi
-test -s 3.E || rm -f 3.E
-$xx '' '[.*]' < $srcdir/3.I > 3.O 2> 3.E
-code=$?
-if test $code != 0; then
- $echo "Test 3(<) failed: $xx return code $code differs from expected value 0" 1>&2
- errors=`expr $errors + 1`
-else
- cmp 3.O $srcdir/3.X > /dev/null 2>&1
- case $? in
- 0) if test "$VERBOSE"; then $echo "passed 3(<)"; fi;;
- 1) $echo "Test 3(<) failed: files 3.O and $srcdir/3.X differ" 1>&2
- (diff -c 3.O $srcdir/3.X) 2> /dev/null
- errors=`expr $errors + 1`;;
- 2) $echo "Test 3(<) may have failed." 1>&2
- $echo The command "cmp 3.O $srcdir/3.X" failed. 1>&2
- errors=`expr $errors + 1`;;
- esac
-fi
-test -s 3.E || rm -f 3.E
-cat $srcdir/4.I | $xx -t 'abcd' 'xy' > 4.O 2> 4.E
-code=$?
-if test $code != 0; then
- $echo "Test 4(|) failed: $xx return code $code differs from expected value 0" 1>&2
- errors=`expr $errors + 1`
-else
- cmp 4.O $srcdir/4.X > /dev/null 2>&1
- case $? in
- 0) if test "$VERBOSE"; then $echo "passed 4(|)"; fi;;
- 1) $echo "Test 4(|) failed: files 4.O and $srcdir/4.X differ" 1>&2
- (diff -c 4.O $srcdir/4.X) 2> /dev/null
- errors=`expr $errors + 1`;;
- 2) $echo "Test 4(|) may have failed." 1>&2
- $echo The command "cmp 4.O $srcdir/4.X" failed. 1>&2
- errors=`expr $errors + 1`;;
- esac
-fi
-test -s 4.E || rm -f 4.E
-$xx -t 'abcd' 'xy' < $srcdir/4.I > 4.O 2> 4.E
-code=$?
-if test $code != 0; then
- $echo "Test 4(<) failed: $xx return code $code differs from expected value 0" 1>&2
- errors=`expr $errors + 1`
-else
- cmp 4.O $srcdir/4.X > /dev/null 2>&1
- case $? in
- 0) if test "$VERBOSE"; then $echo "passed 4(<)"; fi;;
- 1) $echo "Test 4(<) failed: files 4.O and $srcdir/4.X differ" 1>&2
- (diff -c 4.O $srcdir/4.X) 2> /dev/null
- errors=`expr $errors + 1`;;
- 2) $echo "Test 4(<) may have failed." 1>&2
- $echo The command "cmp 4.O $srcdir/4.X" failed. 1>&2
- errors=`expr $errors + 1`;;
- esac
-fi
-test -s 4.E || rm -f 4.E
-cat $srcdir/5.I | $xx 'abcd' 'xy' > 5.O 2> 5.E
-code=$?
-if test $code != 0; then
- $echo "Test 5(|) failed: $xx return code $code differs from expected value 0" 1>&2
- errors=`expr $errors + 1`
-else
- cmp 5.O $srcdir/5.X > /dev/null 2>&1
- case $? in
- 0) if test "$VERBOSE"; then $echo "passed 5(|)"; fi;;
- 1) $echo "Test 5(|) failed: files 5.O and $srcdir/5.X differ" 1>&2
- (diff -c 5.O $srcdir/5.X) 2> /dev/null
- errors=`expr $errors + 1`;;
- 2) $echo "Test 5(|) may have failed." 1>&2
- $echo The command "cmp 5.O $srcdir/5.X" failed. 1>&2
- errors=`expr $errors + 1`;;
- esac
-fi
-test -s 5.E || rm -f 5.E
-$xx 'abcd' 'xy' < $srcdir/5.I > 5.O 2> 5.E
-code=$?
-if test $code != 0; then
- $echo "Test 5(<) failed: $xx return code $code differs from expected value 0" 1>&2
- errors=`expr $errors + 1`
-else
- cmp 5.O $srcdir/5.X > /dev/null 2>&1
- case $? in
- 0) if test "$VERBOSE"; then $echo "passed 5(<)"; fi;;
- 1) $echo "Test 5(<) failed: files 5.O and $srcdir/5.X differ" 1>&2
- (diff -c 5.O $srcdir/5.X) 2> /dev/null
- errors=`expr $errors + 1`;;
- 2) $echo "Test 5(<) may have failed." 1>&2
- $echo The command "cmp 5.O $srcdir/5.X" failed. 1>&2
- errors=`expr $errors + 1`;;
- esac
-fi
-test -s 5.E || rm -f 5.E
-cat $srcdir/6.I | $xx 'abcd' 'x[y*]' > 6.O 2> 6.E
-code=$?
-if test $code != 0; then
- $echo "Test 6(|) failed: $xx return code $code differs from expected value 0" 1>&2
- errors=`expr $errors + 1`
-else
- cmp 6.O $srcdir/6.X > /dev/null 2>&1
- case $? in
- 0) if test "$VERBOSE"; then $echo "passed 6(|)"; fi;;
- 1) $echo "Test 6(|) failed: files 6.O and $srcdir/6.X differ" 1>&2
- (diff -c 6.O $srcdir/6.X) 2> /dev/null
- errors=`expr $errors + 1`;;
- 2) $echo "Test 6(|) may have failed." 1>&2
- $echo The command "cmp 6.O $srcdir/6.X" failed. 1>&2
- errors=`expr $errors + 1`;;
- esac
-fi
-test -s 6.E || rm -f 6.E
-$xx 'abcd' 'x[y*]' < $srcdir/6.I > 6.O 2> 6.E
-code=$?
-if test $code != 0; then
- $echo "Test 6(<) failed: $xx return code $code differs from expected value 0" 1>&2
- errors=`expr $errors + 1`
-else
- cmp 6.O $srcdir/6.X > /dev/null 2>&1
- case $? in
- 0) if test "$VERBOSE"; then $echo "passed 6(<)"; fi;;
- 1) $echo "Test 6(<) failed: files 6.O and $srcdir/6.X differ" 1>&2
- (diff -c 6.O $srcdir/6.X) 2> /dev/null
- errors=`expr $errors + 1`;;
- 2) $echo "Test 6(<) may have failed." 1>&2
- $echo The command "cmp 6.O $srcdir/6.X" failed. 1>&2
- errors=`expr $errors + 1`;;
- esac
-fi
-test -s 6.E || rm -f 6.E
-cat $srcdir/7.I | $xx -s 'a-p' '%[.*]$' > 7.O 2> 7.E
-code=$?
-if test $code != 0; then
- $echo "Test 7(|) failed: $xx return code $code differs from expected value 0" 1>&2
- errors=`expr $errors + 1`
-else
- cmp 7.O $srcdir/7.X > /dev/null 2>&1
- case $? in
- 0) if test "$VERBOSE"; then $echo "passed 7(|)"; fi;;
- 1) $echo "Test 7(|) failed: files 7.O and $srcdir/7.X differ" 1>&2
- (diff -c 7.O $srcdir/7.X) 2> /dev/null
- errors=`expr $errors + 1`;;
- 2) $echo "Test 7(|) may have failed." 1>&2
- $echo The command "cmp 7.O $srcdir/7.X" failed. 1>&2
- errors=`expr $errors + 1`;;
- esac
-fi
-test -s 7.E || rm -f 7.E
-$xx -s 'a-p' '%[.*]$' < $srcdir/7.I > 7.O 2> 7.E
-code=$?
-if test $code != 0; then
- $echo "Test 7(<) failed: $xx return code $code differs from expected value 0" 1>&2
- errors=`expr $errors + 1`
-else
- cmp 7.O $srcdir/7.X > /dev/null 2>&1
- case $? in
- 0) if test "$VERBOSE"; then $echo "passed 7(<)"; fi;;
- 1) $echo "Test 7(<) failed: files 7.O and $srcdir/7.X differ" 1>&2
- (diff -c 7.O $srcdir/7.X) 2> /dev/null
- errors=`expr $errors + 1`;;
- 2) $echo "Test 7(<) may have failed." 1>&2
- $echo The command "cmp 7.O $srcdir/7.X" failed. 1>&2
- errors=`expr $errors + 1`;;
- esac
-fi
-test -s 7.E || rm -f 7.E
-cat $srcdir/8.I | $xx -s 'a-p' '[.*]$' > 8.O 2> 8.E
-code=$?
-if test $code != 0; then
- $echo "Test 8(|) failed: $xx return code $code differs from expected value 0" 1>&2
- errors=`expr $errors + 1`
-else
- cmp 8.O $srcdir/8.X > /dev/null 2>&1
- case $? in
- 0) if test "$VERBOSE"; then $echo "passed 8(|)"; fi;;
- 1) $echo "Test 8(|) failed: files 8.O and $srcdir/8.X differ" 1>&2
- (diff -c 8.O $srcdir/8.X) 2> /dev/null
- errors=`expr $errors + 1`;;
- 2) $echo "Test 8(|) may have failed." 1>&2
- $echo The command "cmp 8.O $srcdir/8.X" failed. 1>&2
- errors=`expr $errors + 1`;;
- esac
-fi
-test -s 8.E || rm -f 8.E
-$xx -s 'a-p' '[.*]$' < $srcdir/8.I > 8.O 2> 8.E
-code=$?
-if test $code != 0; then
- $echo "Test 8(<) failed: $xx return code $code differs from expected value 0" 1>&2
- errors=`expr $errors + 1`
-else
- cmp 8.O $srcdir/8.X > /dev/null 2>&1
- case $? in
- 0) if test "$VERBOSE"; then $echo "passed 8(<)"; fi;;
- 1) $echo "Test 8(<) failed: files 8.O and $srcdir/8.X differ" 1>&2
- (diff -c 8.O $srcdir/8.X) 2> /dev/null
- errors=`expr $errors + 1`;;
- 2) $echo "Test 8(<) may have failed." 1>&2
- $echo The command "cmp 8.O $srcdir/8.X" failed. 1>&2
- errors=`expr $errors + 1`;;
- esac
-fi
-test -s 8.E || rm -f 8.E
-cat $srcdir/9.I | $xx -s 'a-p' '%[.*]' > 9.O 2> 9.E
-code=$?
-if test $code != 0; then
- $echo "Test 9(|) failed: $xx return code $code differs from expected value 0" 1>&2
- errors=`expr $errors + 1`
-else
- cmp 9.O $srcdir/9.X > /dev/null 2>&1
- case $? in
- 0) if test "$VERBOSE"; then $echo "passed 9(|)"; fi;;
- 1) $echo "Test 9(|) failed: files 9.O and $srcdir/9.X differ" 1>&2
- (diff -c 9.O $srcdir/9.X) 2> /dev/null
- errors=`expr $errors + 1`;;
- 2) $echo "Test 9(|) may have failed." 1>&2
- $echo The command "cmp 9.O $srcdir/9.X" failed. 1>&2
- errors=`expr $errors + 1`;;
- esac
-fi
-test -s 9.E || rm -f 9.E
-$xx -s 'a-p' '%[.*]' < $srcdir/9.I > 9.O 2> 9.E
-code=$?
-if test $code != 0; then
- $echo "Test 9(<) failed: $xx return code $code differs from expected value 0" 1>&2
- errors=`expr $errors + 1`
-else
- cmp 9.O $srcdir/9.X > /dev/null 2>&1
- case $? in
- 0) if test "$VERBOSE"; then $echo "passed 9(<)"; fi;;
- 1) $echo "Test 9(<) failed: files 9.O and $srcdir/9.X differ" 1>&2
- (diff -c 9.O $srcdir/9.X) 2> /dev/null
- errors=`expr $errors + 1`;;
- 2) $echo "Test 9(<) may have failed." 1>&2
- $echo The command "cmp 9.O $srcdir/9.X" failed. 1>&2
- errors=`expr $errors + 1`;;
- esac
-fi
-test -s 9.E || rm -f 9.E
-cat $srcdir/a.I | $xx -s '[a-z]' > a.O 2> a.E
-code=$?
-if test $code != 0; then
- $echo "Test a(|) failed: $xx return code $code differs from expected value 0" 1>&2
- errors=`expr $errors + 1`
-else
- cmp a.O $srcdir/a.X > /dev/null 2>&1
- case $? in
- 0) if test "$VERBOSE"; then $echo "passed a(|)"; fi;;
- 1) $echo "Test a(|) failed: files a.O and $srcdir/a.X differ" 1>&2
- (diff -c a.O $srcdir/a.X) 2> /dev/null
- errors=`expr $errors + 1`;;
- 2) $echo "Test a(|) may have failed." 1>&2
- $echo The command "cmp a.O $srcdir/a.X" failed. 1>&2
- errors=`expr $errors + 1`;;
- esac
-fi
-test -s a.E || rm -f a.E
-$xx -s '[a-z]' < $srcdir/a.I > a.O 2> a.E
-code=$?
-if test $code != 0; then
- $echo "Test a(<) failed: $xx return code $code differs from expected value 0" 1>&2
- errors=`expr $errors + 1`
-else
- cmp a.O $srcdir/a.X > /dev/null 2>&1
- case $? in
- 0) if test "$VERBOSE"; then $echo "passed a(<)"; fi;;
- 1) $echo "Test a(<) failed: files a.O and $srcdir/a.X differ" 1>&2
- (diff -c a.O $srcdir/a.X) 2> /dev/null
- errors=`expr $errors + 1`;;
- 2) $echo "Test a(<) may have failed." 1>&2
- $echo The command "cmp a.O $srcdir/a.X" failed. 1>&2
- errors=`expr $errors + 1`;;
- esac
-fi
-test -s a.E || rm -f a.E
-cat $srcdir/b.I | $xx -s '[a-c]' > b.O 2> b.E
-code=$?
-if test $code != 0; then
- $echo "Test b(|) failed: $xx return code $code differs from expected value 0" 1>&2
- errors=`expr $errors + 1`
-else
- cmp b.O $srcdir/b.X > /dev/null 2>&1
- case $? in
- 0) if test "$VERBOSE"; then $echo "passed b(|)"; fi;;
- 1) $echo "Test b(|) failed: files b.O and $srcdir/b.X differ" 1>&2
- (diff -c b.O $srcdir/b.X) 2> /dev/null
- errors=`expr $errors + 1`;;
- 2) $echo "Test b(|) may have failed." 1>&2
- $echo The command "cmp b.O $srcdir/b.X" failed. 1>&2
- errors=`expr $errors + 1`;;
- esac
-fi
-test -s b.E || rm -f b.E
-$xx -s '[a-c]' < $srcdir/b.I > b.O 2> b.E
-code=$?
-if test $code != 0; then
- $echo "Test b(<) failed: $xx return code $code differs from expected value 0" 1>&2
- errors=`expr $errors + 1`
-else
- cmp b.O $srcdir/b.X > /dev/null 2>&1
- case $? in
- 0) if test "$VERBOSE"; then $echo "passed b(<)"; fi;;
- 1) $echo "Test b(<) failed: files b.O and $srcdir/b.X differ" 1>&2
- (diff -c b.O $srcdir/b.X) 2> /dev/null
- errors=`expr $errors + 1`;;
- 2) $echo "Test b(<) may have failed." 1>&2
- $echo The command "cmp b.O $srcdir/b.X" failed. 1>&2
- errors=`expr $errors + 1`;;
- esac
-fi
-test -s b.E || rm -f b.E
-cat $srcdir/c.I | $xx -s '[a-b]' > c.O 2> c.E
-code=$?
-if test $code != 0; then
- $echo "Test c(|) failed: $xx return code $code differs from expected value 0" 1>&2
- errors=`expr $errors + 1`
-else
- cmp c.O $srcdir/c.X > /dev/null 2>&1
- case $? in
- 0) if test "$VERBOSE"; then $echo "passed c(|)"; fi;;
- 1) $echo "Test c(|) failed: files c.O and $srcdir/c.X differ" 1>&2
- (diff -c c.O $srcdir/c.X) 2> /dev/null
- errors=`expr $errors + 1`;;
- 2) $echo "Test c(|) may have failed." 1>&2
- $echo The command "cmp c.O $srcdir/c.X" failed. 1>&2
- errors=`expr $errors + 1`;;
- esac
-fi
-test -s c.E || rm -f c.E
-$xx -s '[a-b]' < $srcdir/c.I > c.O 2> c.E
-code=$?
-if test $code != 0; then
- $echo "Test c(<) failed: $xx return code $code differs from expected value 0" 1>&2
- errors=`expr $errors + 1`
-else
- cmp c.O $srcdir/c.X > /dev/null 2>&1
- case $? in
- 0) if test "$VERBOSE"; then $echo "passed c(<)"; fi;;
- 1) $echo "Test c(<) failed: files c.O and $srcdir/c.X differ" 1>&2
- (diff -c c.O $srcdir/c.X) 2> /dev/null
- errors=`expr $errors + 1`;;
- 2) $echo "Test c(<) may have failed." 1>&2
- $echo The command "cmp c.O $srcdir/c.X" failed. 1>&2
- errors=`expr $errors + 1`;;
- esac
-fi
-test -s c.E || rm -f c.E
-cat $srcdir/d.I | $xx -s '[b-c]' > d.O 2> d.E
-code=$?
-if test $code != 0; then
- $echo "Test d(|) failed: $xx return code $code differs from expected value 0" 1>&2
- errors=`expr $errors + 1`
-else
- cmp d.O $srcdir/d.X > /dev/null 2>&1
- case $? in
- 0) if test "$VERBOSE"; then $echo "passed d(|)"; fi;;
- 1) $echo "Test d(|) failed: files d.O and $srcdir/d.X differ" 1>&2
- (diff -c d.O $srcdir/d.X) 2> /dev/null
- errors=`expr $errors + 1`;;
- 2) $echo "Test d(|) may have failed." 1>&2
- $echo The command "cmp d.O $srcdir/d.X" failed. 1>&2
- errors=`expr $errors + 1`;;
- esac
-fi
-test -s d.E || rm -f d.E
-$xx -s '[b-c]' < $srcdir/d.I > d.O 2> d.E
-code=$?
-if test $code != 0; then
- $echo "Test d(<) failed: $xx return code $code differs from expected value 0" 1>&2
- errors=`expr $errors + 1`
-else
- cmp d.O $srcdir/d.X > /dev/null 2>&1
- case $? in
- 0) if test "$VERBOSE"; then $echo "passed d(<)"; fi;;
- 1) $echo "Test d(<) failed: files d.O and $srcdir/d.X differ" 1>&2
- (diff -c d.O $srcdir/d.X) 2> /dev/null
- errors=`expr $errors + 1`;;
- 2) $echo "Test d(<) may have failed." 1>&2
- $echo The command "cmp d.O $srcdir/d.X" failed. 1>&2
- errors=`expr $errors + 1`;;
- esac
-fi
-test -s d.E || rm -f d.E
-cat $srcdir/e.I | $xx -s '[\0-\5]' > e.O 2> e.E
-code=$?
-if test $code != 0; then
- $echo "Test e(|) failed: $xx return code $code differs from expected value 0" 1>&2
- errors=`expr $errors + 1`
-else
- cmp e.O $srcdir/e.X > /dev/null 2>&1
- case $? in
- 0) if test "$VERBOSE"; then $echo "passed e(|)"; fi;;
- 1) $echo "Test e(|) failed: files e.O and $srcdir/e.X differ" 1>&2
- (diff -c e.O $srcdir/e.X) 2> /dev/null
- errors=`expr $errors + 1`;;
- 2) $echo "Test e(|) may have failed." 1>&2
- $echo The command "cmp e.O $srcdir/e.X" failed. 1>&2
- errors=`expr $errors + 1`;;
- esac
-fi
-test -s e.E || rm -f e.E
-$xx -s '[\0-\5]' < $srcdir/e.I > e.O 2> e.E
-code=$?
-if test $code != 0; then
- $echo "Test e(<) failed: $xx return code $code differs from expected value 0" 1>&2
- errors=`expr $errors + 1`
-else
- cmp e.O $srcdir/e.X > /dev/null 2>&1
- case $? in
- 0) if test "$VERBOSE"; then $echo "passed e(<)"; fi;;
- 1) $echo "Test e(<) failed: files e.O and $srcdir/e.X differ" 1>&2
- (diff -c e.O $srcdir/e.X) 2> /dev/null
- errors=`expr $errors + 1`;;
- 2) $echo "Test e(<) may have failed." 1>&2
- $echo The command "cmp e.O $srcdir/e.X" failed. 1>&2
- errors=`expr $errors + 1`;;
- esac
-fi
-test -s e.E || rm -f e.E
-cat $srcdir/f.I | $xx -d '[=[=]' > f.O 2> f.E
-code=$?
-if test $code != 0; then
- $echo "Test f(|) failed: $xx return code $code differs from expected value 0" 1>&2
- errors=`expr $errors + 1`
-else
- cmp f.O $srcdir/f.X > /dev/null 2>&1
- case $? in
- 0) if test "$VERBOSE"; then $echo "passed f(|)"; fi;;
- 1) $echo "Test f(|) failed: files f.O and $srcdir/f.X differ" 1>&2
- (diff -c f.O $srcdir/f.X) 2> /dev/null
- errors=`expr $errors + 1`;;
- 2) $echo "Test f(|) may have failed." 1>&2
- $echo The command "cmp f.O $srcdir/f.X" failed. 1>&2
- errors=`expr $errors + 1`;;
- esac
-fi
-test -s f.E || rm -f f.E
-$xx -d '[=[=]' < $srcdir/f.I > f.O 2> f.E
-code=$?
-if test $code != 0; then
- $echo "Test f(<) failed: $xx return code $code differs from expected value 0" 1>&2
- errors=`expr $errors + 1`
-else
- cmp f.O $srcdir/f.X > /dev/null 2>&1
- case $? in
- 0) if test "$VERBOSE"; then $echo "passed f(<)"; fi;;
- 1) $echo "Test f(<) failed: files f.O and $srcdir/f.X differ" 1>&2
- (diff -c f.O $srcdir/f.X) 2> /dev/null
- errors=`expr $errors + 1`;;
- 2) $echo "Test f(<) may have failed." 1>&2
- $echo The command "cmp f.O $srcdir/f.X" failed. 1>&2
- errors=`expr $errors + 1`;;
- esac
-fi
-test -s f.E || rm -f f.E
-cat $srcdir/g.I | $xx -d '[=]=]' > g.O 2> g.E
-code=$?
-if test $code != 0; then
- $echo "Test g(|) failed: $xx return code $code differs from expected value 0" 1>&2
- errors=`expr $errors + 1`
-else
- cmp g.O $srcdir/g.X > /dev/null 2>&1
- case $? in
- 0) if test "$VERBOSE"; then $echo "passed g(|)"; fi;;
- 1) $echo "Test g(|) failed: files g.O and $srcdir/g.X differ" 1>&2
- (diff -c g.O $srcdir/g.X) 2> /dev/null
- errors=`expr $errors + 1`;;
- 2) $echo "Test g(|) may have failed." 1>&2
- $echo The command "cmp g.O $srcdir/g.X" failed. 1>&2
- errors=`expr $errors + 1`;;
- esac
-fi
-test -s g.E || rm -f g.E
-$xx -d '[=]=]' < $srcdir/g.I > g.O 2> g.E
-code=$?
-if test $code != 0; then
- $echo "Test g(<) failed: $xx return code $code differs from expected value 0" 1>&2
- errors=`expr $errors + 1`
-else
- cmp g.O $srcdir/g.X > /dev/null 2>&1
- case $? in
- 0) if test "$VERBOSE"; then $echo "passed g(<)"; fi;;
- 1) $echo "Test g(<) failed: files g.O and $srcdir/g.X differ" 1>&2
- (diff -c g.O $srcdir/g.X) 2> /dev/null
- errors=`expr $errors + 1`;;
- 2) $echo "Test g(<) may have failed." 1>&2
- $echo The command "cmp g.O $srcdir/g.X" failed. 1>&2
- errors=`expr $errors + 1`;;
- esac
-fi
-test -s g.E || rm -f g.E
-cat $srcdir/h.I | $xx -d '[:xdigit:]' > h.O 2> h.E
-code=$?
-if test $code != 0; then
- $echo "Test h(|) failed: $xx return code $code differs from expected value 0" 1>&2
- errors=`expr $errors + 1`
-else
- cmp h.O $srcdir/h.X > /dev/null 2>&1
- case $? in
- 0) if test "$VERBOSE"; then $echo "passed h(|)"; fi;;
- 1) $echo "Test h(|) failed: files h.O and $srcdir/h.X differ" 1>&2
- (diff -c h.O $srcdir/h.X) 2> /dev/null
- errors=`expr $errors + 1`;;
- 2) $echo "Test h(|) may have failed." 1>&2
- $echo The command "cmp h.O $srcdir/h.X" failed. 1>&2
- errors=`expr $errors + 1`;;
- esac
-fi
-test -s h.E || rm -f h.E
-$xx -d '[:xdigit:]' < $srcdir/h.I > h.O 2> h.E
-code=$?
-if test $code != 0; then
- $echo "Test h(<) failed: $xx return code $code differs from expected value 0" 1>&2
- errors=`expr $errors + 1`
-else
- cmp h.O $srcdir/h.X > /dev/null 2>&1
- case $? in
- 0) if test "$VERBOSE"; then $echo "passed h(<)"; fi;;
- 1) $echo "Test h(<) failed: files h.O and $srcdir/h.X differ" 1>&2
- (diff -c h.O $srcdir/h.X) 2> /dev/null
- errors=`expr $errors + 1`;;
- 2) $echo "Test h(<) may have failed." 1>&2
- $echo The command "cmp h.O $srcdir/h.X" failed. 1>&2
- errors=`expr $errors + 1`;;
- esac
-fi
-test -s h.E || rm -f h.E
-cat $srcdir/i.I | $xx -d '[:xdigit:]' > i.O 2> i.E
-code=$?
-if test $code != 0; then
- $echo "Test i(|) failed: $xx return code $code differs from expected value 0" 1>&2
- errors=`expr $errors + 1`
-else
- cmp i.O $srcdir/i.X > /dev/null 2>&1
- case $? in
- 0) if test "$VERBOSE"; then $echo "passed i(|)"; fi;;
- 1) $echo "Test i(|) failed: files i.O and $srcdir/i.X differ" 1>&2
- (diff -c i.O $srcdir/i.X) 2> /dev/null
- errors=`expr $errors + 1`;;
- 2) $echo "Test i(|) may have failed." 1>&2
- $echo The command "cmp i.O $srcdir/i.X" failed. 1>&2
- errors=`expr $errors + 1`;;
- esac
-fi
-test -s i.E || rm -f i.E
-$xx -d '[:xdigit:]' < $srcdir/i.I > i.O 2> i.E
-code=$?
-if test $code != 0; then
- $echo "Test i(<) failed: $xx return code $code differs from expected value 0" 1>&2
- errors=`expr $errors + 1`
-else
- cmp i.O $srcdir/i.X > /dev/null 2>&1
- case $? in
- 0) if test "$VERBOSE"; then $echo "passed i(<)"; fi;;
- 1) $echo "Test i(<) failed: files i.O and $srcdir/i.X differ" 1>&2
- (diff -c i.O $srcdir/i.X) 2> /dev/null
- errors=`expr $errors + 1`;;
- 2) $echo "Test i(<) may have failed." 1>&2
- $echo The command "cmp i.O $srcdir/i.X" failed. 1>&2
- errors=`expr $errors + 1`;;
- esac
-fi
-test -s i.E || rm -f i.E
-cat $srcdir/j.I | $xx -d '[:digit:]' > j.O 2> j.E
-code=$?
-if test $code != 0; then
- $echo "Test j(|) failed: $xx return code $code differs from expected value 0" 1>&2
- errors=`expr $errors + 1`
-else
- cmp j.O $srcdir/j.X > /dev/null 2>&1
- case $? in
- 0) if test "$VERBOSE"; then $echo "passed j(|)"; fi;;
- 1) $echo "Test j(|) failed: files j.O and $srcdir/j.X differ" 1>&2
- (diff -c j.O $srcdir/j.X) 2> /dev/null
- errors=`expr $errors + 1`;;
- 2) $echo "Test j(|) may have failed." 1>&2
- $echo The command "cmp j.O $srcdir/j.X" failed. 1>&2
- errors=`expr $errors + 1`;;
- esac
-fi
-test -s j.E || rm -f j.E
-$xx -d '[:digit:]' < $srcdir/j.I > j.O 2> j.E
-code=$?
-if test $code != 0; then
- $echo "Test j(<) failed: $xx return code $code differs from expected value 0" 1>&2
- errors=`expr $errors + 1`
-else
- cmp j.O $srcdir/j.X > /dev/null 2>&1
- case $? in
- 0) if test "$VERBOSE"; then $echo "passed j(<)"; fi;;
- 1) $echo "Test j(<) failed: files j.O and $srcdir/j.X differ" 1>&2
- (diff -c j.O $srcdir/j.X) 2> /dev/null
- errors=`expr $errors + 1`;;
- 2) $echo "Test j(<) may have failed." 1>&2
- $echo The command "cmp j.O $srcdir/j.X" failed. 1>&2
- errors=`expr $errors + 1`;;
- esac
-fi
-test -s j.E || rm -f j.E
-cat $srcdir/k.I | $xx -d '[:digit:]' > k.O 2> k.E
-code=$?
-if test $code != 0; then
- $echo "Test k(|) failed: $xx return code $code differs from expected value 0" 1>&2
- errors=`expr $errors + 1`
-else
- cmp k.O $srcdir/k.X > /dev/null 2>&1
- case $? in
- 0) if test "$VERBOSE"; then $echo "passed k(|)"; fi;;
- 1) $echo "Test k(|) failed: files k.O and $srcdir/k.X differ" 1>&2
- (diff -c k.O $srcdir/k.X) 2> /dev/null
- errors=`expr $errors + 1`;;
- 2) $echo "Test k(|) may have failed." 1>&2
- $echo The command "cmp k.O $srcdir/k.X" failed. 1>&2
- errors=`expr $errors + 1`;;
- esac
-fi
-test -s k.E || rm -f k.E
-$xx -d '[:digit:]' < $srcdir/k.I > k.O 2> k.E
-code=$?
-if test $code != 0; then
- $echo "Test k(<) failed: $xx return code $code differs from expected value 0" 1>&2
- errors=`expr $errors + 1`
-else
- cmp k.O $srcdir/k.X > /dev/null 2>&1
- case $? in
- 0) if test "$VERBOSE"; then $echo "passed k(<)"; fi;;
- 1) $echo "Test k(<) failed: files k.O and $srcdir/k.X differ" 1>&2
- (diff -c k.O $srcdir/k.X) 2> /dev/null
- errors=`expr $errors + 1`;;
- 2) $echo "Test k(<) may have failed." 1>&2
- $echo The command "cmp k.O $srcdir/k.X" failed. 1>&2
- errors=`expr $errors + 1`;;
- esac
-fi
-test -s k.E || rm -f k.E
-cat $srcdir/l.I | $xx -d '[:lower:]' > l.O 2> l.E
-code=$?
-if test $code != 0; then
- $echo "Test l(|) failed: $xx return code $code differs from expected value 0" 1>&2
- errors=`expr $errors + 1`
-else
- cmp l.O $srcdir/l.X > /dev/null 2>&1
- case $? in
- 0) if test "$VERBOSE"; then $echo "passed l(|)"; fi;;
- 1) $echo "Test l(|) failed: files l.O and $srcdir/l.X differ" 1>&2
- (diff -c l.O $srcdir/l.X) 2> /dev/null
- errors=`expr $errors + 1`;;
- 2) $echo "Test l(|) may have failed." 1>&2
- $echo The command "cmp l.O $srcdir/l.X" failed. 1>&2
- errors=`expr $errors + 1`;;
- esac
-fi
-test -s l.E || rm -f l.E
-$xx -d '[:lower:]' < $srcdir/l.I > l.O 2> l.E
-code=$?
-if test $code != 0; then
- $echo "Test l(<) failed: $xx return code $code differs from expected value 0" 1>&2
- errors=`expr $errors + 1`
-else
- cmp l.O $srcdir/l.X > /dev/null 2>&1
- case $? in
- 0) if test "$VERBOSE"; then $echo "passed l(<)"; fi;;
- 1) $echo "Test l(<) failed: files l.O and $srcdir/l.X differ" 1>&2
- (diff -c l.O $srcdir/l.X) 2> /dev/null
- errors=`expr $errors + 1`;;
- 2) $echo "Test l(<) may have failed." 1>&2
- $echo The command "cmp l.O $srcdir/l.X" failed. 1>&2
- errors=`expr $errors + 1`;;
- esac
-fi
-test -s l.E || rm -f l.E
-cat $srcdir/m.I | $xx -d '[:upper:]' > m.O 2> m.E
-code=$?
-if test $code != 0; then
- $echo "Test m(|) failed: $xx return code $code differs from expected value 0" 1>&2
- errors=`expr $errors + 1`
-else
- cmp m.O $srcdir/m.X > /dev/null 2>&1
- case $? in
- 0) if test "$VERBOSE"; then $echo "passed m(|)"; fi;;
- 1) $echo "Test m(|) failed: files m.O and $srcdir/m.X differ" 1>&2
- (diff -c m.O $srcdir/m.X) 2> /dev/null
- errors=`expr $errors + 1`;;
- 2) $echo "Test m(|) may have failed." 1>&2
- $echo The command "cmp m.O $srcdir/m.X" failed. 1>&2
- errors=`expr $errors + 1`;;
- esac
-fi
-test -s m.E || rm -f m.E
-$xx -d '[:upper:]' < $srcdir/m.I > m.O 2> m.E
-code=$?
-if test $code != 0; then
- $echo "Test m(<) failed: $xx return code $code differs from expected value 0" 1>&2
- errors=`expr $errors + 1`
-else
- cmp m.O $srcdir/m.X > /dev/null 2>&1
- case $? in
- 0) if test "$VERBOSE"; then $echo "passed m(<)"; fi;;
- 1) $echo "Test m(<) failed: files m.O and $srcdir/m.X differ" 1>&2
- (diff -c m.O $srcdir/m.X) 2> /dev/null
- errors=`expr $errors + 1`;;
- 2) $echo "Test m(<) may have failed." 1>&2
- $echo The command "cmp m.O $srcdir/m.X" failed. 1>&2
- errors=`expr $errors + 1`;;
- esac
-fi
-test -s m.E || rm -f m.E
-cat $srcdir/n.I | $xx -d '[:lower:][:upper:]' > n.O 2> n.E
-code=$?
-if test $code != 0; then
- $echo "Test n(|) failed: $xx return code $code differs from expected value 0" 1>&2
- errors=`expr $errors + 1`
-else
- cmp n.O $srcdir/n.X > /dev/null 2>&1
- case $? in
- 0) if test "$VERBOSE"; then $echo "passed n(|)"; fi;;
- 1) $echo "Test n(|) failed: files n.O and $srcdir/n.X differ" 1>&2
- (diff -c n.O $srcdir/n.X) 2> /dev/null
- errors=`expr $errors + 1`;;
- 2) $echo "Test n(|) may have failed." 1>&2
- $echo The command "cmp n.O $srcdir/n.X" failed. 1>&2
- errors=`expr $errors + 1`;;
- esac
-fi
-test -s n.E || rm -f n.E
-$xx -d '[:lower:][:upper:]' < $srcdir/n.I > n.O 2> n.E
-code=$?
-if test $code != 0; then
- $echo "Test n(<) failed: $xx return code $code differs from expected value 0" 1>&2
- errors=`expr $errors + 1`
-else
- cmp n.O $srcdir/n.X > /dev/null 2>&1
- case $? in
- 0) if test "$VERBOSE"; then $echo "passed n(<)"; fi;;
- 1) $echo "Test n(<) failed: files n.O and $srcdir/n.X differ" 1>&2
- (diff -c n.O $srcdir/n.X) 2> /dev/null
- errors=`expr $errors + 1`;;
- 2) $echo "Test n(<) may have failed." 1>&2
- $echo The command "cmp n.O $srcdir/n.X" failed. 1>&2
- errors=`expr $errors + 1`;;
- esac
-fi
-test -s n.E || rm -f n.E
-cat $srcdir/o.I | $xx -d '[:alpha:]' > o.O 2> o.E
-code=$?
-if test $code != 0; then
- $echo "Test o(|) failed: $xx return code $code differs from expected value 0" 1>&2
- errors=`expr $errors + 1`
-else
- cmp o.O $srcdir/o.X > /dev/null 2>&1
- case $? in
- 0) if test "$VERBOSE"; then $echo "passed o(|)"; fi;;
- 1) $echo "Test o(|) failed: files o.O and $srcdir/o.X differ" 1>&2
- (diff -c o.O $srcdir/o.X) 2> /dev/null
- errors=`expr $errors + 1`;;
- 2) $echo "Test o(|) may have failed." 1>&2
- $echo The command "cmp o.O $srcdir/o.X" failed. 1>&2
- errors=`expr $errors + 1`;;
- esac
-fi
-test -s o.E || rm -f o.E
-$xx -d '[:alpha:]' < $srcdir/o.I > o.O 2> o.E
-code=$?
-if test $code != 0; then
- $echo "Test o(<) failed: $xx return code $code differs from expected value 0" 1>&2
- errors=`expr $errors + 1`
-else
- cmp o.O $srcdir/o.X > /dev/null 2>&1
- case $? in
- 0) if test "$VERBOSE"; then $echo "passed o(<)"; fi;;
- 1) $echo "Test o(<) failed: files o.O and $srcdir/o.X differ" 1>&2
- (diff -c o.O $srcdir/o.X) 2> /dev/null
- errors=`expr $errors + 1`;;
- 2) $echo "Test o(<) may have failed." 1>&2
- $echo The command "cmp o.O $srcdir/o.X" failed. 1>&2
- errors=`expr $errors + 1`;;
- esac
-fi
-test -s o.E || rm -f o.E
-cat $srcdir/p.I | $xx -d '[:alnum:]' > p.O 2> p.E
-code=$?
-if test $code != 0; then
- $echo "Test p(|) failed: $xx return code $code differs from expected value 0" 1>&2
- errors=`expr $errors + 1`
-else
- cmp p.O $srcdir/p.X > /dev/null 2>&1
- case $? in
- 0) if test "$VERBOSE"; then $echo "passed p(|)"; fi;;
- 1) $echo "Test p(|) failed: files p.O and $srcdir/p.X differ" 1>&2
- (diff -c p.O $srcdir/p.X) 2> /dev/null
- errors=`expr $errors + 1`;;
- 2) $echo "Test p(|) may have failed." 1>&2
- $echo The command "cmp p.O $srcdir/p.X" failed. 1>&2
- errors=`expr $errors + 1`;;
- esac
-fi
-test -s p.E || rm -f p.E
-$xx -d '[:alnum:]' < $srcdir/p.I > p.O 2> p.E
-code=$?
-if test $code != 0; then
- $echo "Test p(<) failed: $xx return code $code differs from expected value 0" 1>&2
- errors=`expr $errors + 1`
-else
- cmp p.O $srcdir/p.X > /dev/null 2>&1
- case $? in
- 0) if test "$VERBOSE"; then $echo "passed p(<)"; fi;;
- 1) $echo "Test p(<) failed: files p.O and $srcdir/p.X differ" 1>&2
- (diff -c p.O $srcdir/p.X) 2> /dev/null
- errors=`expr $errors + 1`;;
- 2) $echo "Test p(<) may have failed." 1>&2
- $echo The command "cmp p.O $srcdir/p.X" failed. 1>&2
- errors=`expr $errors + 1`;;
- esac
-fi
-test -s p.E || rm -f p.E
-cat $srcdir/q.I | $xx -d '[:alnum:]' > q.O 2> q.E
-code=$?
-if test $code != 0; then
- $echo "Test q(|) failed: $xx return code $code differs from expected value 0" 1>&2
- errors=`expr $errors + 1`
-else
- cmp q.O $srcdir/q.X > /dev/null 2>&1
- case $? in
- 0) if test "$VERBOSE"; then $echo "passed q(|)"; fi;;
- 1) $echo "Test q(|) failed: files q.O and $srcdir/q.X differ" 1>&2
- (diff -c q.O $srcdir/q.X) 2> /dev/null
- errors=`expr $errors + 1`;;
- 2) $echo "Test q(|) may have failed." 1>&2
- $echo The command "cmp q.O $srcdir/q.X" failed. 1>&2
- errors=`expr $errors + 1`;;
- esac
-fi
-test -s q.E || rm -f q.E
-$xx -d '[:alnum:]' < $srcdir/q.I > q.O 2> q.E
-code=$?
-if test $code != 0; then
- $echo "Test q(<) failed: $xx return code $code differs from expected value 0" 1>&2
- errors=`expr $errors + 1`
-else
- cmp q.O $srcdir/q.X > /dev/null 2>&1
- case $? in
- 0) if test "$VERBOSE"; then $echo "passed q(<)"; fi;;
- 1) $echo "Test q(<) failed: files q.O and $srcdir/q.X differ" 1>&2
- (diff -c q.O $srcdir/q.X) 2> /dev/null
- errors=`expr $errors + 1`;;
- 2) $echo "Test q(<) may have failed." 1>&2
- $echo The command "cmp q.O $srcdir/q.X" failed. 1>&2
- errors=`expr $errors + 1`;;
- esac
-fi
-test -s q.E || rm -f q.E
-cat $srcdir/r.I | $xx -ds '[:alnum:]' '.' > r.O 2> r.E
-code=$?
-if test $code != 0; then
- $echo "Test r(|) failed: $xx return code $code differs from expected value 0" 1>&2
- errors=`expr $errors + 1`
-else
- cmp r.O $srcdir/r.X > /dev/null 2>&1
- case $? in
- 0) if test "$VERBOSE"; then $echo "passed r(|)"; fi;;
- 1) $echo "Test r(|) failed: files r.O and $srcdir/r.X differ" 1>&2
- (diff -c r.O $srcdir/r.X) 2> /dev/null
- errors=`expr $errors + 1`;;
- 2) $echo "Test r(|) may have failed." 1>&2
- $echo The command "cmp r.O $srcdir/r.X" failed. 1>&2
- errors=`expr $errors + 1`;;
- esac
-fi
-test -s r.E || rm -f r.E
-$xx -ds '[:alnum:]' '.' < $srcdir/r.I > r.O 2> r.E
-code=$?
-if test $code != 0; then
- $echo "Test r(<) failed: $xx return code $code differs from expected value 0" 1>&2
- errors=`expr $errors + 1`
-else
- cmp r.O $srcdir/r.X > /dev/null 2>&1
- case $? in
- 0) if test "$VERBOSE"; then $echo "passed r(<)"; fi;;
- 1) $echo "Test r(<) failed: files r.O and $srcdir/r.X differ" 1>&2
- (diff -c r.O $srcdir/r.X) 2> /dev/null
- errors=`expr $errors + 1`;;
- 2) $echo "Test r(<) may have failed." 1>&2
- $echo The command "cmp r.O $srcdir/r.X" failed. 1>&2
- errors=`expr $errors + 1`;;
- esac
-fi
-test -s r.E || rm -f r.E
-cat $srcdir/s.I | $xx -cs '[:alnum:]' '\n' > s.O 2> s.E
-code=$?
-if test $code != 0; then
- $echo "Test s(|) failed: $xx return code $code differs from expected value 0" 1>&2
- errors=`expr $errors + 1`
-else
- cmp s.O $srcdir/s.X > /dev/null 2>&1
- case $? in
- 0) if test "$VERBOSE"; then $echo "passed s(|)"; fi;;
- 1) $echo "Test s(|) failed: files s.O and $srcdir/s.X differ" 1>&2
- (diff -c s.O $srcdir/s.X) 2> /dev/null
- errors=`expr $errors + 1`;;
- 2) $echo "Test s(|) may have failed." 1>&2
- $echo The command "cmp s.O $srcdir/s.X" failed. 1>&2
- errors=`expr $errors + 1`;;
- esac
-fi
-test -s s.E || rm -f s.E
-$xx -cs '[:alnum:]' '\n' < $srcdir/s.I > s.O 2> s.E
-code=$?
-if test $code != 0; then
- $echo "Test s(<) failed: $xx return code $code differs from expected value 0" 1>&2
- errors=`expr $errors + 1`
-else
- cmp s.O $srcdir/s.X > /dev/null 2>&1
- case $? in
- 0) if test "$VERBOSE"; then $echo "passed s(<)"; fi;;
- 1) $echo "Test s(<) failed: files s.O and $srcdir/s.X differ" 1>&2
- (diff -c s.O $srcdir/s.X) 2> /dev/null
- errors=`expr $errors + 1`;;
- 2) $echo "Test s(<) may have failed." 1>&2
- $echo The command "cmp s.O $srcdir/s.X" failed. 1>&2
- errors=`expr $errors + 1`;;
- esac
-fi
-test -s s.E || rm -f s.E
-cat $srcdir/t.I | $xx -cs '[:alnum:]' '[\n*]' > t.O 2> t.E
-code=$?
-if test $code != 0; then
- $echo "Test t(|) failed: $xx return code $code differs from expected value 0" 1>&2
- errors=`expr $errors + 1`
-else
- cmp t.O $srcdir/t.X > /dev/null 2>&1
- case $? in
- 0) if test "$VERBOSE"; then $echo "passed t(|)"; fi;;
- 1) $echo "Test t(|) failed: files t.O and $srcdir/t.X differ" 1>&2
- (diff -c t.O $srcdir/t.X) 2> /dev/null
- errors=`expr $errors + 1`;;
- 2) $echo "Test t(|) may have failed." 1>&2
- $echo The command "cmp t.O $srcdir/t.X" failed. 1>&2
- errors=`expr $errors + 1`;;
- esac
-fi
-test -s t.E || rm -f t.E
-$xx -cs '[:alnum:]' '[\n*]' < $srcdir/t.I > t.O 2> t.E
-code=$?
-if test $code != 0; then
- $echo "Test t(<) failed: $xx return code $code differs from expected value 0" 1>&2
- errors=`expr $errors + 1`
-else
- cmp t.O $srcdir/t.X > /dev/null 2>&1
- case $? in
- 0) if test "$VERBOSE"; then $echo "passed t(<)"; fi;;
- 1) $echo "Test t(<) failed: files t.O and $srcdir/t.X differ" 1>&2
- (diff -c t.O $srcdir/t.X) 2> /dev/null
- errors=`expr $errors + 1`;;
- 2) $echo "Test t(<) may have failed." 1>&2
- $echo The command "cmp t.O $srcdir/t.X" failed. 1>&2
- errors=`expr $errors + 1`;;
- esac
-fi
-test -s t.E || rm -f t.E
-cat $srcdir/u.I | $xx -ds 'b' 'a' > u.O 2> u.E
-code=$?
-if test $code != 0; then
- $echo "Test u(|) failed: $xx return code $code differs from expected value 0" 1>&2
- errors=`expr $errors + 1`
-else
- cmp u.O $srcdir/u.X > /dev/null 2>&1
- case $? in
- 0) if test "$VERBOSE"; then $echo "passed u(|)"; fi;;
- 1) $echo "Test u(|) failed: files u.O and $srcdir/u.X differ" 1>&2
- (diff -c u.O $srcdir/u.X) 2> /dev/null
- errors=`expr $errors + 1`;;
- 2) $echo "Test u(|) may have failed." 1>&2
- $echo The command "cmp u.O $srcdir/u.X" failed. 1>&2
- errors=`expr $errors + 1`;;
- esac
-fi
-test -s u.E || rm -f u.E
-$xx -ds 'b' 'a' < $srcdir/u.I > u.O 2> u.E
-code=$?
-if test $code != 0; then
- $echo "Test u(<) failed: $xx return code $code differs from expected value 0" 1>&2
- errors=`expr $errors + 1`
-else
- cmp u.O $srcdir/u.X > /dev/null 2>&1
- case $? in
- 0) if test "$VERBOSE"; then $echo "passed u(<)"; fi;;
- 1) $echo "Test u(<) failed: files u.O and $srcdir/u.X differ" 1>&2
- (diff -c u.O $srcdir/u.X) 2> /dev/null
- errors=`expr $errors + 1`;;
- 2) $echo "Test u(<) may have failed." 1>&2
- $echo The command "cmp u.O $srcdir/u.X" failed. 1>&2
- errors=`expr $errors + 1`;;
- esac
-fi
-test -s u.E || rm -f u.E
-cat $srcdir/v.I | $xx -ds '[:xdigit:]' 'Z' > v.O 2> v.E
-code=$?
-if test $code != 0; then
- $echo "Test v(|) failed: $xx return code $code differs from expected value 0" 1>&2
- errors=`expr $errors + 1`
-else
- cmp v.O $srcdir/v.X > /dev/null 2>&1
- case $? in
- 0) if test "$VERBOSE"; then $echo "passed v(|)"; fi;;
- 1) $echo "Test v(|) failed: files v.O and $srcdir/v.X differ" 1>&2
- (diff -c v.O $srcdir/v.X) 2> /dev/null
- errors=`expr $errors + 1`;;
- 2) $echo "Test v(|) may have failed." 1>&2
- $echo The command "cmp v.O $srcdir/v.X" failed. 1>&2
- errors=`expr $errors + 1`;;
- esac
-fi
-test -s v.E || rm -f v.E
-$xx -ds '[:xdigit:]' 'Z' < $srcdir/v.I > v.O 2> v.E
-code=$?
-if test $code != 0; then
- $echo "Test v(<) failed: $xx return code $code differs from expected value 0" 1>&2
- errors=`expr $errors + 1`
-else
- cmp v.O $srcdir/v.X > /dev/null 2>&1
- case $? in
- 0) if test "$VERBOSE"; then $echo "passed v(<)"; fi;;
- 1) $echo "Test v(<) failed: files v.O and $srcdir/v.X differ" 1>&2
- (diff -c v.O $srcdir/v.X) 2> /dev/null
- errors=`expr $errors + 1`;;
- 2) $echo "Test v(<) may have failed." 1>&2
- $echo The command "cmp v.O $srcdir/v.X" failed. 1>&2
- errors=`expr $errors + 1`;;
- esac
-fi
-test -s v.E || rm -f v.E
-cat $srcdir/w.I | $xx -ds '\350' '\345' > w.O 2> w.E
-code=$?
-if test $code != 0; then
- $echo "Test w(|) failed: $xx return code $code differs from expected value 0" 1>&2
- errors=`expr $errors + 1`
-else
- cmp w.O $srcdir/w.X > /dev/null 2>&1
- case $? in
- 0) if test "$VERBOSE"; then $echo "passed w(|)"; fi;;
- 1) $echo "Test w(|) failed: files w.O and $srcdir/w.X differ" 1>&2
- (diff -c w.O $srcdir/w.X) 2> /dev/null
- errors=`expr $errors + 1`;;
- 2) $echo "Test w(|) may have failed." 1>&2
- $echo The command "cmp w.O $srcdir/w.X" failed. 1>&2
- errors=`expr $errors + 1`;;
- esac
-fi
-test -s w.E || rm -f w.E
-$xx -ds '\350' '\345' < $srcdir/w.I > w.O 2> w.E
-code=$?
-if test $code != 0; then
- $echo "Test w(<) failed: $xx return code $code differs from expected value 0" 1>&2
- errors=`expr $errors + 1`
-else
- cmp w.O $srcdir/w.X > /dev/null 2>&1
- case $? in
- 0) if test "$VERBOSE"; then $echo "passed w(<)"; fi;;
- 1) $echo "Test w(<) failed: files w.O and $srcdir/w.X differ" 1>&2
- (diff -c w.O $srcdir/w.X) 2> /dev/null
- errors=`expr $errors + 1`;;
- 2) $echo "Test w(<) may have failed." 1>&2
- $echo The command "cmp w.O $srcdir/w.X" failed. 1>&2
- errors=`expr $errors + 1`;;
- esac
-fi
-test -s w.E || rm -f w.E
-cat $srcdir/x.I | $xx -s 'abcdefghijklmn' '[:*016]' > x.O 2> x.E
-code=$?
-if test $code != 0; then
- $echo "Test x(|) failed: $xx return code $code differs from expected value 0" 1>&2
- errors=`expr $errors + 1`
-else
- cmp x.O $srcdir/x.X > /dev/null 2>&1
- case $? in
- 0) if test "$VERBOSE"; then $echo "passed x(|)"; fi;;
- 1) $echo "Test x(|) failed: files x.O and $srcdir/x.X differ" 1>&2
- (diff -c x.O $srcdir/x.X) 2> /dev/null
- errors=`expr $errors + 1`;;
- 2) $echo "Test x(|) may have failed." 1>&2
- $echo The command "cmp x.O $srcdir/x.X" failed. 1>&2
- errors=`expr $errors + 1`;;
- esac
-fi
-test -s x.E || rm -f x.E
-$xx -s 'abcdefghijklmn' '[:*016]' < $srcdir/x.I > x.O 2> x.E
-code=$?
-if test $code != 0; then
- $echo "Test x(<) failed: $xx return code $code differs from expected value 0" 1>&2
- errors=`expr $errors + 1`
-else
- cmp x.O $srcdir/x.X > /dev/null 2>&1
- case $? in
- 0) if test "$VERBOSE"; then $echo "passed x(<)"; fi;;
- 1) $echo "Test x(<) failed: files x.O and $srcdir/x.X differ" 1>&2
- (diff -c x.O $srcdir/x.X) 2> /dev/null
- errors=`expr $errors + 1`;;
- 2) $echo "Test x(<) may have failed." 1>&2
- $echo The command "cmp x.O $srcdir/x.X" failed. 1>&2
- errors=`expr $errors + 1`;;
- esac
-fi
-test -s x.E || rm -f x.E
-cat $srcdir/y.I | $xx -d 'a-z' > y.O 2> y.E
-code=$?
-if test $code != 0; then
- $echo "Test y(|) failed: $xx return code $code differs from expected value 0" 1>&2
- errors=`expr $errors + 1`
-else
- cmp y.O $srcdir/y.X > /dev/null 2>&1
- case $? in
- 0) if test "$VERBOSE"; then $echo "passed y(|)"; fi;;
- 1) $echo "Test y(|) failed: files y.O and $srcdir/y.X differ" 1>&2
- (diff -c y.O $srcdir/y.X) 2> /dev/null
- errors=`expr $errors + 1`;;
- 2) $echo "Test y(|) may have failed." 1>&2
- $echo The command "cmp y.O $srcdir/y.X" failed. 1>&2
- errors=`expr $errors + 1`;;
- esac
-fi
-test -s y.E || rm -f y.E
-$xx -d 'a-z' < $srcdir/y.I > y.O 2> y.E
-code=$?
-if test $code != 0; then
- $echo "Test y(<) failed: $xx return code $code differs from expected value 0" 1>&2
- errors=`expr $errors + 1`
-else
- cmp y.O $srcdir/y.X > /dev/null 2>&1
- case $? in
- 0) if test "$VERBOSE"; then $echo "passed y(<)"; fi;;
- 1) $echo "Test y(<) failed: files y.O and $srcdir/y.X differ" 1>&2
- (diff -c y.O $srcdir/y.X) 2> /dev/null
- errors=`expr $errors + 1`;;
- 2) $echo "Test y(<) may have failed." 1>&2
- $echo The command "cmp y.O $srcdir/y.X" failed. 1>&2
- errors=`expr $errors + 1`;;
- esac
-fi
-test -s y.E || rm -f y.E
-cat $srcdir/z.I | $xx -ds 'a-z' '$.' > z.O 2> z.E
-code=$?
-if test $code != 0; then
- $echo "Test z(|) failed: $xx return code $code differs from expected value 0" 1>&2
- errors=`expr $errors + 1`
-else
- cmp z.O $srcdir/z.X > /dev/null 2>&1
- case $? in
- 0) if test "$VERBOSE"; then $echo "passed z(|)"; fi;;
- 1) $echo "Test z(|) failed: files z.O and $srcdir/z.X differ" 1>&2
- (diff -c z.O $srcdir/z.X) 2> /dev/null
- errors=`expr $errors + 1`;;
- 2) $echo "Test z(|) may have failed." 1>&2
- $echo The command "cmp z.O $srcdir/z.X" failed. 1>&2
- errors=`expr $errors + 1`;;
- esac
-fi
-test -s z.E || rm -f z.E
-$xx -ds 'a-z' '$.' < $srcdir/z.I > z.O 2> z.E
-code=$?
-if test $code != 0; then
- $echo "Test z(<) failed: $xx return code $code differs from expected value 0" 1>&2
- errors=`expr $errors + 1`
-else
- cmp z.O $srcdir/z.X > /dev/null 2>&1
- case $? in
- 0) if test "$VERBOSE"; then $echo "passed z(<)"; fi;;
- 1) $echo "Test z(<) failed: files z.O and $srcdir/z.X differ" 1>&2
- (diff -c z.O $srcdir/z.X) 2> /dev/null
- errors=`expr $errors + 1`;;
- 2) $echo "Test z(<) may have failed." 1>&2
- $echo The command "cmp z.O $srcdir/z.X" failed. 1>&2
- errors=`expr $errors + 1`;;
- esac
-fi
-test -s z.E || rm -f z.E
-cat $srcdir/range-a-a.I | $xx 'a-a' 'z' > range-a-a.O 2> range-a-a.E
-code=$?
-if test $code != 0; then
- $echo "Test range-a-a(|) failed: $xx return code $code differs from expected value 0" 1>&2
- errors=`expr $errors + 1`
-else
- cmp range-a-a.O $srcdir/range-a-a.X > /dev/null 2>&1
- case $? in
- 0) if test "$VERBOSE"; then $echo "passed range-a-a(|)"; fi;;
- 1) $echo "Test range-a-a(|) failed: files range-a-a.O and $srcdir/range-a-a.X differ" 1>&2
- (diff -c range-a-a.O $srcdir/range-a-a.X) 2> /dev/null
- errors=`expr $errors + 1`;;
- 2) $echo "Test range-a-a(|) may have failed." 1>&2
- $echo The command "cmp range-a-a.O $srcdir/range-a-a.X" failed. 1>&2
- errors=`expr $errors + 1`;;
- esac
-fi
-test -s range-a-a.E || rm -f range-a-a.E
-$xx 'a-a' 'z' < $srcdir/range-a-a.I > range-a-a.O 2> range-a-a.E
-code=$?
-if test $code != 0; then
- $echo "Test range-a-a(<) failed: $xx return code $code differs from expected value 0" 1>&2
- errors=`expr $errors + 1`
-else
- cmp range-a-a.O $srcdir/range-a-a.X > /dev/null 2>&1
- case $? in
- 0) if test "$VERBOSE"; then $echo "passed range-a-a(<)"; fi;;
- 1) $echo "Test range-a-a(<) failed: files range-a-a.O and $srcdir/range-a-a.X differ" 1>&2
- (diff -c range-a-a.O $srcdir/range-a-a.X) 2> /dev/null
- errors=`expr $errors + 1`;;
- 2) $echo "Test range-a-a(<) may have failed." 1>&2
- $echo The command "cmp range-a-a.O $srcdir/range-a-a.X" failed. 1>&2
- errors=`expr $errors + 1`;;
- esac
-fi
-test -s range-a-a.E || rm -f range-a-a.E
-cat $srcdir/null.I | $xx 'a' '''' > null.O 2> null.E
-code=$?
-if test $code != 1; then
- $echo "Test null(|) failed: $xx return code $code differs from expected value 1" 1>&2
- errors=`expr $errors + 1`
-else
- cmp null.O $srcdir/null.X > /dev/null 2>&1
- case $? in
- 0) if test "$VERBOSE"; then $echo "passed null(|)"; fi;;
- 1) $echo "Test null(|) failed: files null.O and $srcdir/null.X differ" 1>&2
- (diff -c null.O $srcdir/null.X) 2> /dev/null
- errors=`expr $errors + 1`;;
- 2) $echo "Test null(|) may have failed." 1>&2
- $echo The command "cmp null.O $srcdir/null.X" failed. 1>&2
- errors=`expr $errors + 1`;;
- esac
-fi
-test -s null.E || rm -f null.E
-$xx 'a' '''' < $srcdir/null.I > null.O 2> null.E
-code=$?
-if test $code != 1; then
- $echo "Test null(<) failed: $xx return code $code differs from expected value 1" 1>&2
- errors=`expr $errors + 1`
-else
- cmp null.O $srcdir/null.X > /dev/null 2>&1
- case $? in
- 0) if test "$VERBOSE"; then $echo "passed null(<)"; fi;;
- 1) $echo "Test null(<) failed: files null.O and $srcdir/null.X differ" 1>&2
- (diff -c null.O $srcdir/null.X) 2> /dev/null
- errors=`expr $errors + 1`;;
- 2) $echo "Test null(<) may have failed." 1>&2
- $echo The command "cmp null.O $srcdir/null.X" failed. 1>&2
- errors=`expr $errors + 1`;;
- esac
-fi
-test -s null.E || rm -f null.E
-cat $srcdir/upcase.I | $xx '[:lower:]' '[:upper:]' > upcase.O 2> upcase.E
-code=$?
-if test $code != 0; then
- $echo "Test upcase(|) failed: $xx return code $code differs from expected value 0" 1>&2
- errors=`expr $errors + 1`
-else
- cmp upcase.O $srcdir/upcase.X > /dev/null 2>&1
- case $? in
- 0) if test "$VERBOSE"; then $echo "passed upcase(|)"; fi;;
- 1) $echo "Test upcase(|) failed: files upcase.O and $srcdir/upcase.X differ" 1>&2
- (diff -c upcase.O $srcdir/upcase.X) 2> /dev/null
- errors=`expr $errors + 1`;;
- 2) $echo "Test upcase(|) may have failed." 1>&2
- $echo The command "cmp upcase.O $srcdir/upcase.X" failed. 1>&2
- errors=`expr $errors + 1`;;
- esac
-fi
-test -s upcase.E || rm -f upcase.E
-$xx '[:lower:]' '[:upper:]' < $srcdir/upcase.I > upcase.O 2> upcase.E
-code=$?
-if test $code != 0; then
- $echo "Test upcase(<) failed: $xx return code $code differs from expected value 0" 1>&2
- errors=`expr $errors + 1`
-else
- cmp upcase.O $srcdir/upcase.X > /dev/null 2>&1
- case $? in
- 0) if test "$VERBOSE"; then $echo "passed upcase(<)"; fi;;
- 1) $echo "Test upcase(<) failed: files upcase.O and $srcdir/upcase.X differ" 1>&2
- (diff -c upcase.O $srcdir/upcase.X) 2> /dev/null
- errors=`expr $errors + 1`;;
- 2) $echo "Test upcase(<) may have failed." 1>&2
- $echo The command "cmp upcase.O $srcdir/upcase.X" failed. 1>&2
- errors=`expr $errors + 1`;;
- esac
-fi
-test -s upcase.E || rm -f upcase.E
-cat $srcdir/dncase.I | $xx '[:upper:]' '[:lower:]' > dncase.O 2> dncase.E
-code=$?
-if test $code != 0; then
- $echo "Test dncase(|) failed: $xx return code $code differs from expected value 0" 1>&2
- errors=`expr $errors + 1`
-else
- cmp dncase.O $srcdir/dncase.X > /dev/null 2>&1
- case $? in
- 0) if test "$VERBOSE"; then $echo "passed dncase(|)"; fi;;
- 1) $echo "Test dncase(|) failed: files dncase.O and $srcdir/dncase.X differ" 1>&2
- (diff -c dncase.O $srcdir/dncase.X) 2> /dev/null
- errors=`expr $errors + 1`;;
- 2) $echo "Test dncase(|) may have failed." 1>&2
- $echo The command "cmp dncase.O $srcdir/dncase.X" failed. 1>&2
- errors=`expr $errors + 1`;;
- esac
-fi
-test -s dncase.E || rm -f dncase.E
-$xx '[:upper:]' '[:lower:]' < $srcdir/dncase.I > dncase.O 2> dncase.E
-code=$?
-if test $code != 0; then
- $echo "Test dncase(<) failed: $xx return code $code differs from expected value 0" 1>&2
- errors=`expr $errors + 1`
-else
- cmp dncase.O $srcdir/dncase.X > /dev/null 2>&1
- case $? in
- 0) if test "$VERBOSE"; then $echo "passed dncase(<)"; fi;;
- 1) $echo "Test dncase(<) failed: files dncase.O and $srcdir/dncase.X differ" 1>&2
- (diff -c dncase.O $srcdir/dncase.X) 2> /dev/null
- errors=`expr $errors + 1`;;
- 2) $echo "Test dncase(<) may have failed." 1>&2
- $echo The command "cmp dncase.O $srcdir/dncase.X" failed. 1>&2
- errors=`expr $errors + 1`;;
- esac
-fi
-test -s dncase.E || rm -f dncase.E
-cat $srcdir/rep-cclass.I | $xx 'a[=*2][=c=]' 'xyyz' > rep-cclass.O 2> rep-cclass.E
-code=$?
-if test $code != 0; then
- $echo "Test rep-cclass(|) failed: $xx return code $code differs from expected value 0" 1>&2
- errors=`expr $errors + 1`
-else
- cmp rep-cclass.O $srcdir/rep-cclass.X > /dev/null 2>&1
- case $? in
- 0) if test "$VERBOSE"; then $echo "passed rep-cclass(|)"; fi;;
- 1) $echo "Test rep-cclass(|) failed: files rep-cclass.O and $srcdir/rep-cclass.X differ" 1>&2
- (diff -c rep-cclass.O $srcdir/rep-cclass.X) 2> /dev/null
- errors=`expr $errors + 1`;;
- 2) $echo "Test rep-cclass(|) may have failed." 1>&2
- $echo The command "cmp rep-cclass.O $srcdir/rep-cclass.X" failed. 1>&2
- errors=`expr $errors + 1`;;
- esac
-fi
-test -s rep-cclass.E || rm -f rep-cclass.E
-$xx 'a[=*2][=c=]' 'xyyz' < $srcdir/rep-cclass.I > rep-cclass.O 2> rep-cclass.E
-code=$?
-if test $code != 0; then
- $echo "Test rep-cclass(<) failed: $xx return code $code differs from expected value 0" 1>&2
- errors=`expr $errors + 1`
-else
- cmp rep-cclass.O $srcdir/rep-cclass.X > /dev/null 2>&1
- case $? in
- 0) if test "$VERBOSE"; then $echo "passed rep-cclass(<)"; fi;;
- 1) $echo "Test rep-cclass(<) failed: files rep-cclass.O and $srcdir/rep-cclass.X differ" 1>&2
- (diff -c rep-cclass.O $srcdir/rep-cclass.X) 2> /dev/null
- errors=`expr $errors + 1`;;
- 2) $echo "Test rep-cclass(<) may have failed." 1>&2
- $echo The command "cmp rep-cclass.O $srcdir/rep-cclass.X" failed. 1>&2
- errors=`expr $errors + 1`;;
- esac
-fi
-test -s rep-cclass.E || rm -f rep-cclass.E
-cat $srcdir/rep-1.I | $xx '[:*3][:digit:]' 'a-m' > rep-1.O 2> rep-1.E
-code=$?
-if test $code != 0; then
- $echo "Test rep-1(|) failed: $xx return code $code differs from expected value 0" 1>&2
- errors=`expr $errors + 1`
-else
- cmp rep-1.O $srcdir/rep-1.X > /dev/null 2>&1
- case $? in
- 0) if test "$VERBOSE"; then $echo "passed rep-1(|)"; fi;;
- 1) $echo "Test rep-1(|) failed: files rep-1.O and $srcdir/rep-1.X differ" 1>&2
- (diff -c rep-1.O $srcdir/rep-1.X) 2> /dev/null
- errors=`expr $errors + 1`;;
- 2) $echo "Test rep-1(|) may have failed." 1>&2
- $echo The command "cmp rep-1.O $srcdir/rep-1.X" failed. 1>&2
- errors=`expr $errors + 1`;;
- esac
-fi
-test -s rep-1.E || rm -f rep-1.E
-$xx '[:*3][:digit:]' 'a-m' < $srcdir/rep-1.I > rep-1.O 2> rep-1.E
-code=$?
-if test $code != 0; then
- $echo "Test rep-1(<) failed: $xx return code $code differs from expected value 0" 1>&2
- errors=`expr $errors + 1`
-else
- cmp rep-1.O $srcdir/rep-1.X > /dev/null 2>&1
- case $? in
- 0) if test "$VERBOSE"; then $echo "passed rep-1(<)"; fi;;
- 1) $echo "Test rep-1(<) failed: files rep-1.O and $srcdir/rep-1.X differ" 1>&2
- (diff -c rep-1.O $srcdir/rep-1.X) 2> /dev/null
- errors=`expr $errors + 1`;;
- 2) $echo "Test rep-1(<) may have failed." 1>&2
- $echo The command "cmp rep-1.O $srcdir/rep-1.X" failed. 1>&2
- errors=`expr $errors + 1`;;
- esac
-fi
-test -s rep-1.E || rm -f rep-1.E
-cat $srcdir/rep-2.I | $xx 'a[b*512]c' '1[x*]2' > rep-2.O 2> rep-2.E
-code=$?
-if test $code != 0; then
- $echo "Test rep-2(|) failed: $xx return code $code differs from expected value 0" 1>&2
- errors=`expr $errors + 1`
-else
- cmp rep-2.O $srcdir/rep-2.X > /dev/null 2>&1
- case $? in
- 0) if test "$VERBOSE"; then $echo "passed rep-2(|)"; fi;;
- 1) $echo "Test rep-2(|) failed: files rep-2.O and $srcdir/rep-2.X differ" 1>&2
- (diff -c rep-2.O $srcdir/rep-2.X) 2> /dev/null
- errors=`expr $errors + 1`;;
- 2) $echo "Test rep-2(|) may have failed." 1>&2
- $echo The command "cmp rep-2.O $srcdir/rep-2.X" failed. 1>&2
- errors=`expr $errors + 1`;;
- esac
-fi
-test -s rep-2.E || rm -f rep-2.E
-$xx 'a[b*512]c' '1[x*]2' < $srcdir/rep-2.I > rep-2.O 2> rep-2.E
-code=$?
-if test $code != 0; then
- $echo "Test rep-2(<) failed: $xx return code $code differs from expected value 0" 1>&2
- errors=`expr $errors + 1`
-else
- cmp rep-2.O $srcdir/rep-2.X > /dev/null 2>&1
- case $? in
- 0) if test "$VERBOSE"; then $echo "passed rep-2(<)"; fi;;
- 1) $echo "Test rep-2(<) failed: files rep-2.O and $srcdir/rep-2.X differ" 1>&2
- (diff -c rep-2.O $srcdir/rep-2.X) 2> /dev/null
- errors=`expr $errors + 1`;;
- 2) $echo "Test rep-2(<) may have failed." 1>&2
- $echo The command "cmp rep-2.O $srcdir/rep-2.X" failed. 1>&2
- errors=`expr $errors + 1`;;
- esac
-fi
-test -s rep-2.E || rm -f rep-2.E
-cat $srcdir/rep-3.I | $xx 'a[b*513]c' '1[x*]2' > rep-3.O 2> rep-3.E
-code=$?
-if test $code != 0; then
- $echo "Test rep-3(|) failed: $xx return code $code differs from expected value 0" 1>&2
- errors=`expr $errors + 1`
-else
- cmp rep-3.O $srcdir/rep-3.X > /dev/null 2>&1
- case $? in
- 0) if test "$VERBOSE"; then $echo "passed rep-3(|)"; fi;;
- 1) $echo "Test rep-3(|) failed: files rep-3.O and $srcdir/rep-3.X differ" 1>&2
- (diff -c rep-3.O $srcdir/rep-3.X) 2> /dev/null
- errors=`expr $errors + 1`;;
- 2) $echo "Test rep-3(|) may have failed." 1>&2
- $echo The command "cmp rep-3.O $srcdir/rep-3.X" failed. 1>&2
- errors=`expr $errors + 1`;;
- esac
-fi
-test -s rep-3.E || rm -f rep-3.E
-$xx 'a[b*513]c' '1[x*]2' < $srcdir/rep-3.I > rep-3.O 2> rep-3.E
-code=$?
-if test $code != 0; then
- $echo "Test rep-3(<) failed: $xx return code $code differs from expected value 0" 1>&2
- errors=`expr $errors + 1`
-else
- cmp rep-3.O $srcdir/rep-3.X > /dev/null 2>&1
- case $? in
- 0) if test "$VERBOSE"; then $echo "passed rep-3(<)"; fi;;
- 1) $echo "Test rep-3(<) failed: files rep-3.O and $srcdir/rep-3.X differ" 1>&2
- (diff -c rep-3.O $srcdir/rep-3.X) 2> /dev/null
- errors=`expr $errors + 1`;;
- 2) $echo "Test rep-3(<) may have failed." 1>&2
- $echo The command "cmp rep-3.O $srcdir/rep-3.X" failed. 1>&2
- errors=`expr $errors + 1`;;
- esac
-fi
-test -s rep-3.E || rm -f rep-3.E
-cat $srcdir/o-rep-1.I | $xx '[b*08]' '[x*]' > o-rep-1.O 2> o-rep-1.E
-code=$?
-if test $code != 1; then
- $echo "Test o-rep-1(|) failed: $xx return code $code differs from expected value 1" 1>&2
- errors=`expr $errors + 1`
-else
- cmp o-rep-1.O $srcdir/o-rep-1.X > /dev/null 2>&1
- case $? in
- 0) if test "$VERBOSE"; then $echo "passed o-rep-1(|)"; fi;;
- 1) $echo "Test o-rep-1(|) failed: files o-rep-1.O and $srcdir/o-rep-1.X differ" 1>&2
- (diff -c o-rep-1.O $srcdir/o-rep-1.X) 2> /dev/null
- errors=`expr $errors + 1`;;
- 2) $echo "Test o-rep-1(|) may have failed." 1>&2
- $echo The command "cmp o-rep-1.O $srcdir/o-rep-1.X" failed. 1>&2
- errors=`expr $errors + 1`;;
- esac
-fi
-test -s o-rep-1.E || rm -f o-rep-1.E
-$xx '[b*08]' '[x*]' < $srcdir/o-rep-1.I > o-rep-1.O 2> o-rep-1.E
-code=$?
-if test $code != 1; then
- $echo "Test o-rep-1(<) failed: $xx return code $code differs from expected value 1" 1>&2
- errors=`expr $errors + 1`
-else
- cmp o-rep-1.O $srcdir/o-rep-1.X > /dev/null 2>&1
- case $? in
- 0) if test "$VERBOSE"; then $echo "passed o-rep-1(<)"; fi;;
- 1) $echo "Test o-rep-1(<) failed: files o-rep-1.O and $srcdir/o-rep-1.X differ" 1>&2
- (diff -c o-rep-1.O $srcdir/o-rep-1.X) 2> /dev/null
- errors=`expr $errors + 1`;;
- 2) $echo "Test o-rep-1(<) may have failed." 1>&2
- $echo The command "cmp o-rep-1.O $srcdir/o-rep-1.X" failed. 1>&2
- errors=`expr $errors + 1`;;
- esac
-fi
-test -s o-rep-1.E || rm -f o-rep-1.E
-cat $srcdir/o-rep-2.I | $xx '[b*010]cd' '[a*7]BC[x*]' > o-rep-2.O 2> o-rep-2.E
-code=$?
-if test $code != 0; then
- $echo "Test o-rep-2(|) failed: $xx return code $code differs from expected value 0" 1>&2
- errors=`expr $errors + 1`
-else
- cmp o-rep-2.O $srcdir/o-rep-2.X > /dev/null 2>&1
- case $? in
- 0) if test "$VERBOSE"; then $echo "passed o-rep-2(|)"; fi;;
- 1) $echo "Test o-rep-2(|) failed: files o-rep-2.O and $srcdir/o-rep-2.X differ" 1>&2
- (diff -c o-rep-2.O $srcdir/o-rep-2.X) 2> /dev/null
- errors=`expr $errors + 1`;;
- 2) $echo "Test o-rep-2(|) may have failed." 1>&2
- $echo The command "cmp o-rep-2.O $srcdir/o-rep-2.X" failed. 1>&2
- errors=`expr $errors + 1`;;
- esac
-fi
-test -s o-rep-2.E || rm -f o-rep-2.E
-$xx '[b*010]cd' '[a*7]BC[x*]' < $srcdir/o-rep-2.I > o-rep-2.O 2> o-rep-2.E
-code=$?
-if test $code != 0; then
- $echo "Test o-rep-2(<) failed: $xx return code $code differs from expected value 0" 1>&2
- errors=`expr $errors + 1`
-else
- cmp o-rep-2.O $srcdir/o-rep-2.X > /dev/null 2>&1
- case $? in
- 0) if test "$VERBOSE"; then $echo "passed o-rep-2(<)"; fi;;
- 1) $echo "Test o-rep-2(<) failed: files o-rep-2.O and $srcdir/o-rep-2.X differ" 1>&2
- (diff -c o-rep-2.O $srcdir/o-rep-2.X) 2> /dev/null
- errors=`expr $errors + 1`;;
- 2) $echo "Test o-rep-2(<) may have failed." 1>&2
- $echo The command "cmp o-rep-2.O $srcdir/o-rep-2.X" failed. 1>&2
- errors=`expr $errors + 1`;;
- esac
-fi
-test -s o-rep-2.E || rm -f o-rep-2.E
-cat $srcdir/esc.I | $xx 'a\-z' 'A-Z' > esc.O 2> esc.E
-code=$?
-if test $code != 0; then
- $echo "Test esc(|) failed: $xx return code $code differs from expected value 0" 1>&2
- errors=`expr $errors + 1`
-else
- cmp esc.O $srcdir/esc.X > /dev/null 2>&1
- case $? in
- 0) if test "$VERBOSE"; then $echo "passed esc(|)"; fi;;
- 1) $echo "Test esc(|) failed: files esc.O and $srcdir/esc.X differ" 1>&2
- (diff -c esc.O $srcdir/esc.X) 2> /dev/null
- errors=`expr $errors + 1`;;
- 2) $echo "Test esc(|) may have failed." 1>&2
- $echo The command "cmp esc.O $srcdir/esc.X" failed. 1>&2
- errors=`expr $errors + 1`;;
- esac
-fi
-test -s esc.E || rm -f esc.E
-$xx 'a\-z' 'A-Z' < $srcdir/esc.I > esc.O 2> esc.E
-code=$?
-if test $code != 0; then
- $echo "Test esc(<) failed: $xx return code $code differs from expected value 0" 1>&2
- errors=`expr $errors + 1`
-else
- cmp esc.O $srcdir/esc.X > /dev/null 2>&1
- case $? in
- 0) if test "$VERBOSE"; then $echo "passed esc(<)"; fi;;
- 1) $echo "Test esc(<) failed: files esc.O and $srcdir/esc.X differ" 1>&2
- (diff -c esc.O $srcdir/esc.X) 2> /dev/null
- errors=`expr $errors + 1`;;
- 2) $echo "Test esc(<) may have failed." 1>&2
- $echo The command "cmp esc.O $srcdir/esc.X" failed. 1>&2
- errors=`expr $errors + 1`;;
- esac
-fi
-test -s esc.E || rm -f esc.E
-cat $srcdir/bs-055.I | $xx 'a\055b' def > bs-055.O 2> bs-055.E
-code=$?
-if test $code != 0; then
- $echo "Test bs-055(|) failed: $xx return code $code differs from expected value 0" 1>&2
- errors=`expr $errors + 1`
-else
- cmp bs-055.O $srcdir/bs-055.X > /dev/null 2>&1
- case $? in
- 0) if test "$VERBOSE"; then $echo "passed bs-055(|)"; fi;;
- 1) $echo "Test bs-055(|) failed: files bs-055.O and $srcdir/bs-055.X differ" 1>&2
- (diff -c bs-055.O $srcdir/bs-055.X) 2> /dev/null
- errors=`expr $errors + 1`;;
- 2) $echo "Test bs-055(|) may have failed." 1>&2
- $echo The command "cmp bs-055.O $srcdir/bs-055.X" failed. 1>&2
- errors=`expr $errors + 1`;;
- esac
-fi
-test -s bs-055.E || rm -f bs-055.E
-$xx 'a\055b' def < $srcdir/bs-055.I > bs-055.O 2> bs-055.E
-code=$?
-if test $code != 0; then
- $echo "Test bs-055(<) failed: $xx return code $code differs from expected value 0" 1>&2
- errors=`expr $errors + 1`
-else
- cmp bs-055.O $srcdir/bs-055.X > /dev/null 2>&1
- case $? in
- 0) if test "$VERBOSE"; then $echo "passed bs-055(<)"; fi;;
- 1) $echo "Test bs-055(<) failed: files bs-055.O and $srcdir/bs-055.X differ" 1>&2
- (diff -c bs-055.O $srcdir/bs-055.X) 2> /dev/null
- errors=`expr $errors + 1`;;
- 2) $echo "Test bs-055(<) may have failed." 1>&2
- $echo The command "cmp bs-055.O $srcdir/bs-055.X" failed. 1>&2
- errors=`expr $errors + 1`;;
- esac
-fi
-test -s bs-055.E || rm -f bs-055.E
-cat $srcdir/bs-at-end.I | $xx '\' x > bs-at-end.O 2> bs-at-end.E
-code=$?
-if test $code != 0; then
- $echo "Test bs-at-end(|) failed: $xx return code $code differs from expected value 0" 1>&2
- errors=`expr $errors + 1`
-else
- cmp bs-at-end.O $srcdir/bs-at-end.X > /dev/null 2>&1
- case $? in
- 0) if test "$VERBOSE"; then $echo "passed bs-at-end(|)"; fi;;
- 1) $echo "Test bs-at-end(|) failed: files bs-at-end.O and $srcdir/bs-at-end.X differ" 1>&2
- (diff -c bs-at-end.O $srcdir/bs-at-end.X) 2> /dev/null
- errors=`expr $errors + 1`;;
- 2) $echo "Test bs-at-end(|) may have failed." 1>&2
- $echo The command "cmp bs-at-end.O $srcdir/bs-at-end.X" failed. 1>&2
- errors=`expr $errors + 1`;;
- esac
-fi
-test -s bs-at-end.E || rm -f bs-at-end.E
-$xx '\' x < $srcdir/bs-at-end.I > bs-at-end.O 2> bs-at-end.E
-code=$?
-if test $code != 0; then
- $echo "Test bs-at-end(<) failed: $xx return code $code differs from expected value 0" 1>&2
- errors=`expr $errors + 1`
-else
- cmp bs-at-end.O $srcdir/bs-at-end.X > /dev/null 2>&1
- case $? in
- 0) if test "$VERBOSE"; then $echo "passed bs-at-end(<)"; fi;;
- 1) $echo "Test bs-at-end(<) failed: files bs-at-end.O and $srcdir/bs-at-end.X differ" 1>&2
- (diff -c bs-at-end.O $srcdir/bs-at-end.X) 2> /dev/null
- errors=`expr $errors + 1`;;
- 2) $echo "Test bs-at-end(<) may have failed." 1>&2
- $echo The command "cmp bs-at-end.O $srcdir/bs-at-end.X" failed. 1>&2
- errors=`expr $errors + 1`;;
- esac
-fi
-test -s bs-at-end.E || rm -f bs-at-end.E
-cat $srcdir/ross-0a.I | $xx -cs '[:upper:]' 'X[Y*]' > ross-0a.O 2> ross-0a.E
-code=$?
-if test $code != 1; then
- $echo "Test ross-0a(|) failed: $xx return code $code differs from expected value 1" 1>&2
- errors=`expr $errors + 1`
-else
- cmp ross-0a.O $srcdir/ross-0a.X > /dev/null 2>&1
- case $? in
- 0) if test "$VERBOSE"; then $echo "passed ross-0a(|)"; fi;;
- 1) $echo "Test ross-0a(|) failed: files ross-0a.O and $srcdir/ross-0a.X differ" 1>&2
- (diff -c ross-0a.O $srcdir/ross-0a.X) 2> /dev/null
- errors=`expr $errors + 1`;;
- 2) $echo "Test ross-0a(|) may have failed." 1>&2
- $echo The command "cmp ross-0a.O $srcdir/ross-0a.X" failed. 1>&2
- errors=`expr $errors + 1`;;
- esac
-fi
-test -s ross-0a.E || rm -f ross-0a.E
-$xx -cs '[:upper:]' 'X[Y*]' < $srcdir/ross-0a.I > ross-0a.O 2> ross-0a.E
-code=$?
-if test $code != 1; then
- $echo "Test ross-0a(<) failed: $xx return code $code differs from expected value 1" 1>&2
- errors=`expr $errors + 1`
-else
- cmp ross-0a.O $srcdir/ross-0a.X > /dev/null 2>&1
- case $? in
- 0) if test "$VERBOSE"; then $echo "passed ross-0a(<)"; fi;;
- 1) $echo "Test ross-0a(<) failed: files ross-0a.O and $srcdir/ross-0a.X differ" 1>&2
- (diff -c ross-0a.O $srcdir/ross-0a.X) 2> /dev/null
- errors=`expr $errors + 1`;;
- 2) $echo "Test ross-0a(<) may have failed." 1>&2
- $echo The command "cmp ross-0a.O $srcdir/ross-0a.X" failed. 1>&2
- errors=`expr $errors + 1`;;
- esac
-fi
-test -s ross-0a.E || rm -f ross-0a.E
-cat $srcdir/ross-0b.I | $xx -cs '[:cntrl:]' 'X[Y*]' > ross-0b.O 2> ross-0b.E
-code=$?
-if test $code != 1; then
- $echo "Test ross-0b(|) failed: $xx return code $code differs from expected value 1" 1>&2
- errors=`expr $errors + 1`
-else
- cmp ross-0b.O $srcdir/ross-0b.X > /dev/null 2>&1
- case $? in
- 0) if test "$VERBOSE"; then $echo "passed ross-0b(|)"; fi;;
- 1) $echo "Test ross-0b(|) failed: files ross-0b.O and $srcdir/ross-0b.X differ" 1>&2
- (diff -c ross-0b.O $srcdir/ross-0b.X) 2> /dev/null
- errors=`expr $errors + 1`;;
- 2) $echo "Test ross-0b(|) may have failed." 1>&2
- $echo The command "cmp ross-0b.O $srcdir/ross-0b.X" failed. 1>&2
- errors=`expr $errors + 1`;;
- esac
-fi
-test -s ross-0b.E || rm -f ross-0b.E
-$xx -cs '[:cntrl:]' 'X[Y*]' < $srcdir/ross-0b.I > ross-0b.O 2> ross-0b.E
-code=$?
-if test $code != 1; then
- $echo "Test ross-0b(<) failed: $xx return code $code differs from expected value 1" 1>&2
- errors=`expr $errors + 1`
-else
- cmp ross-0b.O $srcdir/ross-0b.X > /dev/null 2>&1
- case $? in
- 0) if test "$VERBOSE"; then $echo "passed ross-0b(<)"; fi;;
- 1) $echo "Test ross-0b(<) failed: files ross-0b.O and $srcdir/ross-0b.X differ" 1>&2
- (diff -c ross-0b.O $srcdir/ross-0b.X) 2> /dev/null
- errors=`expr $errors + 1`;;
- 2) $echo "Test ross-0b(<) may have failed." 1>&2
- $echo The command "cmp ross-0b.O $srcdir/ross-0b.X" failed. 1>&2
- errors=`expr $errors + 1`;;
- esac
-fi
-test -s ross-0b.E || rm -f ross-0b.E
-cat $srcdir/ross-1a.I | $xx -cs '[:upper:]' '[X*]' > ross-1a.O 2> ross-1a.E
-code=$?
-if test $code != 0; then
- $echo "Test ross-1a(|) failed: $xx return code $code differs from expected value 0" 1>&2
- errors=`expr $errors + 1`
-else
- cmp ross-1a.O $srcdir/ross-1a.X > /dev/null 2>&1
- case $? in
- 0) if test "$VERBOSE"; then $echo "passed ross-1a(|)"; fi;;
- 1) $echo "Test ross-1a(|) failed: files ross-1a.O and $srcdir/ross-1a.X differ" 1>&2
- (diff -c ross-1a.O $srcdir/ross-1a.X) 2> /dev/null
- errors=`expr $errors + 1`;;
- 2) $echo "Test ross-1a(|) may have failed." 1>&2
- $echo The command "cmp ross-1a.O $srcdir/ross-1a.X" failed. 1>&2
- errors=`expr $errors + 1`;;
- esac
-fi
-test -s ross-1a.E || rm -f ross-1a.E
-$xx -cs '[:upper:]' '[X*]' < $srcdir/ross-1a.I > ross-1a.O 2> ross-1a.E
-code=$?
-if test $code != 0; then
- $echo "Test ross-1a(<) failed: $xx return code $code differs from expected value 0" 1>&2
- errors=`expr $errors + 1`
-else
- cmp ross-1a.O $srcdir/ross-1a.X > /dev/null 2>&1
- case $? in
- 0) if test "$VERBOSE"; then $echo "passed ross-1a(<)"; fi;;
- 1) $echo "Test ross-1a(<) failed: files ross-1a.O and $srcdir/ross-1a.X differ" 1>&2
- (diff -c ross-1a.O $srcdir/ross-1a.X) 2> /dev/null
- errors=`expr $errors + 1`;;
- 2) $echo "Test ross-1a(<) may have failed." 1>&2
- $echo The command "cmp ross-1a.O $srcdir/ross-1a.X" failed. 1>&2
- errors=`expr $errors + 1`;;
- esac
-fi
-test -s ross-1a.E || rm -f ross-1a.E
-cat $srcdir/ross-1b.I | $xx -cs '[:upper:][:digit:]' '[Z*]' > ross-1b.O 2> ross-1b.E
-code=$?
-if test $code != 0; then
- $echo "Test ross-1b(|) failed: $xx return code $code differs from expected value 0" 1>&2
- errors=`expr $errors + 1`
-else
- cmp ross-1b.O $srcdir/ross-1b.X > /dev/null 2>&1
- case $? in
- 0) if test "$VERBOSE"; then $echo "passed ross-1b(|)"; fi;;
- 1) $echo "Test ross-1b(|) failed: files ross-1b.O and $srcdir/ross-1b.X differ" 1>&2
- (diff -c ross-1b.O $srcdir/ross-1b.X) 2> /dev/null
- errors=`expr $errors + 1`;;
- 2) $echo "Test ross-1b(|) may have failed." 1>&2
- $echo The command "cmp ross-1b.O $srcdir/ross-1b.X" failed. 1>&2
- errors=`expr $errors + 1`;;
- esac
-fi
-test -s ross-1b.E || rm -f ross-1b.E
-$xx -cs '[:upper:][:digit:]' '[Z*]' < $srcdir/ross-1b.I > ross-1b.O 2> ross-1b.E
-code=$?
-if test $code != 0; then
- $echo "Test ross-1b(<) failed: $xx return code $code differs from expected value 0" 1>&2
- errors=`expr $errors + 1`
-else
- cmp ross-1b.O $srcdir/ross-1b.X > /dev/null 2>&1
- case $? in
- 0) if test "$VERBOSE"; then $echo "passed ross-1b(<)"; fi;;
- 1) $echo "Test ross-1b(<) failed: files ross-1b.O and $srcdir/ross-1b.X differ" 1>&2
- (diff -c ross-1b.O $srcdir/ross-1b.X) 2> /dev/null
- errors=`expr $errors + 1`;;
- 2) $echo "Test ross-1b(<) may have failed." 1>&2
- $echo The command "cmp ross-1b.O $srcdir/ross-1b.X" failed. 1>&2
- errors=`expr $errors + 1`;;
- esac
-fi
-test -s ross-1b.E || rm -f ross-1b.E
-cat $srcdir/ross-2.I | $xx -dcs '[:lower:]' 'n-rs-z' > ross-2.O 2> ross-2.E
-code=$?
-if test $code != 0; then
- $echo "Test ross-2(|) failed: $xx return code $code differs from expected value 0" 1>&2
- errors=`expr $errors + 1`
-else
- cmp ross-2.O $srcdir/ross-2.X > /dev/null 2>&1
- case $? in
- 0) if test "$VERBOSE"; then $echo "passed ross-2(|)"; fi;;
- 1) $echo "Test ross-2(|) failed: files ross-2.O and $srcdir/ross-2.X differ" 1>&2
- (diff -c ross-2.O $srcdir/ross-2.X) 2> /dev/null
- errors=`expr $errors + 1`;;
- 2) $echo "Test ross-2(|) may have failed." 1>&2
- $echo The command "cmp ross-2.O $srcdir/ross-2.X" failed. 1>&2
- errors=`expr $errors + 1`;;
- esac
-fi
-test -s ross-2.E || rm -f ross-2.E
-$xx -dcs '[:lower:]' 'n-rs-z' < $srcdir/ross-2.I > ross-2.O 2> ross-2.E
-code=$?
-if test $code != 0; then
- $echo "Test ross-2(<) failed: $xx return code $code differs from expected value 0" 1>&2
- errors=`expr $errors + 1`
-else
- cmp ross-2.O $srcdir/ross-2.X > /dev/null 2>&1
- case $? in
- 0) if test "$VERBOSE"; then $echo "passed ross-2(<)"; fi;;
- 1) $echo "Test ross-2(<) failed: files ross-2.O and $srcdir/ross-2.X differ" 1>&2
- (diff -c ross-2.O $srcdir/ross-2.X) 2> /dev/null
- errors=`expr $errors + 1`;;
- 2) $echo "Test ross-2(<) may have failed." 1>&2
- $echo The command "cmp ross-2.O $srcdir/ross-2.X" failed. 1>&2
- errors=`expr $errors + 1`;;
- esac
-fi
-test -s ross-2.E || rm -f ross-2.E
-cat $srcdir/ross-3.I | $xx -ds '[:xdigit:]' '[:alnum:]' > ross-3.O 2> ross-3.E
-code=$?
-if test $code != 0; then
- $echo "Test ross-3(|) failed: $xx return code $code differs from expected value 0" 1>&2
- errors=`expr $errors + 1`
-else
- cmp ross-3.O $srcdir/ross-3.X > /dev/null 2>&1
- case $? in
- 0) if test "$VERBOSE"; then $echo "passed ross-3(|)"; fi;;
- 1) $echo "Test ross-3(|) failed: files ross-3.O and $srcdir/ross-3.X differ" 1>&2
- (diff -c ross-3.O $srcdir/ross-3.X) 2> /dev/null
- errors=`expr $errors + 1`;;
- 2) $echo "Test ross-3(|) may have failed." 1>&2
- $echo The command "cmp ross-3.O $srcdir/ross-3.X" failed. 1>&2
- errors=`expr $errors + 1`;;
- esac
-fi
-test -s ross-3.E || rm -f ross-3.E
-$xx -ds '[:xdigit:]' '[:alnum:]' < $srcdir/ross-3.I > ross-3.O 2> ross-3.E
-code=$?
-if test $code != 0; then
- $echo "Test ross-3(<) failed: $xx return code $code differs from expected value 0" 1>&2
- errors=`expr $errors + 1`
-else
- cmp ross-3.O $srcdir/ross-3.X > /dev/null 2>&1
- case $? in
- 0) if test "$VERBOSE"; then $echo "passed ross-3(<)"; fi;;
- 1) $echo "Test ross-3(<) failed: files ross-3.O and $srcdir/ross-3.X differ" 1>&2
- (diff -c ross-3.O $srcdir/ross-3.X) 2> /dev/null
- errors=`expr $errors + 1`;;
- 2) $echo "Test ross-3(<) may have failed." 1>&2
- $echo The command "cmp ross-3.O $srcdir/ross-3.X" failed. 1>&2
- errors=`expr $errors + 1`;;
- esac
-fi
-test -s ross-3.E || rm -f ross-3.E
-cat $srcdir/ross-4.I | $xx -dcs '[:alnum:]' '[:digit:]' > ross-4.O 2> ross-4.E
-code=$?
-if test $code != 0; then
- $echo "Test ross-4(|) failed: $xx return code $code differs from expected value 0" 1>&2
- errors=`expr $errors + 1`
-else
- cmp ross-4.O $srcdir/ross-4.X > /dev/null 2>&1
- case $? in
- 0) if test "$VERBOSE"; then $echo "passed ross-4(|)"; fi;;
- 1) $echo "Test ross-4(|) failed: files ross-4.O and $srcdir/ross-4.X differ" 1>&2
- (diff -c ross-4.O $srcdir/ross-4.X) 2> /dev/null
- errors=`expr $errors + 1`;;
- 2) $echo "Test ross-4(|) may have failed." 1>&2
- $echo The command "cmp ross-4.O $srcdir/ross-4.X" failed. 1>&2
- errors=`expr $errors + 1`;;
- esac
-fi
-test -s ross-4.E || rm -f ross-4.E
-$xx -dcs '[:alnum:]' '[:digit:]' < $srcdir/ross-4.I > ross-4.O 2> ross-4.E
-code=$?
-if test $code != 0; then
- $echo "Test ross-4(<) failed: $xx return code $code differs from expected value 0" 1>&2
- errors=`expr $errors + 1`
-else
- cmp ross-4.O $srcdir/ross-4.X > /dev/null 2>&1
- case $? in
- 0) if test "$VERBOSE"; then $echo "passed ross-4(<)"; fi;;
- 1) $echo "Test ross-4(<) failed: files ross-4.O and $srcdir/ross-4.X differ" 1>&2
- (diff -c ross-4.O $srcdir/ross-4.X) 2> /dev/null
- errors=`expr $errors + 1`;;
- 2) $echo "Test ross-4(<) may have failed." 1>&2
- $echo The command "cmp ross-4.O $srcdir/ross-4.X" failed. 1>&2
- errors=`expr $errors + 1`;;
- esac
-fi
-test -s ross-4.E || rm -f ross-4.E
-cat $srcdir/ross-5.I | $xx -dc '[:lower:]' > ross-5.O 2> ross-5.E
-code=$?
-if test $code != 0; then
- $echo "Test ross-5(|) failed: $xx return code $code differs from expected value 0" 1>&2
- errors=`expr $errors + 1`
-else
- cmp ross-5.O $srcdir/ross-5.X > /dev/null 2>&1
- case $? in
- 0) if test "$VERBOSE"; then $echo "passed ross-5(|)"; fi;;
- 1) $echo "Test ross-5(|) failed: files ross-5.O and $srcdir/ross-5.X differ" 1>&2
- (diff -c ross-5.O $srcdir/ross-5.X) 2> /dev/null
- errors=`expr $errors + 1`;;
- 2) $echo "Test ross-5(|) may have failed." 1>&2
- $echo The command "cmp ross-5.O $srcdir/ross-5.X" failed. 1>&2
- errors=`expr $errors + 1`;;
- esac
-fi
-test -s ross-5.E || rm -f ross-5.E
-$xx -dc '[:lower:]' < $srcdir/ross-5.I > ross-5.O 2> ross-5.E
-code=$?
-if test $code != 0; then
- $echo "Test ross-5(<) failed: $xx return code $code differs from expected value 0" 1>&2
- errors=`expr $errors + 1`
-else
- cmp ross-5.O $srcdir/ross-5.X > /dev/null 2>&1
- case $? in
- 0) if test "$VERBOSE"; then $echo "passed ross-5(<)"; fi;;
- 1) $echo "Test ross-5(<) failed: files ross-5.O and $srcdir/ross-5.X differ" 1>&2
- (diff -c ross-5.O $srcdir/ross-5.X) 2> /dev/null
- errors=`expr $errors + 1`;;
- 2) $echo "Test ross-5(<) may have failed." 1>&2
- $echo The command "cmp ross-5.O $srcdir/ross-5.X" failed. 1>&2
- errors=`expr $errors + 1`;;
- esac
-fi
-test -s ross-5.E || rm -f ross-5.E
-cat $srcdir/ross-6.I | $xx -dc '[:upper:]' > ross-6.O 2> ross-6.E
-code=$?
-if test $code != 0; then
- $echo "Test ross-6(|) failed: $xx return code $code differs from expected value 0" 1>&2
- errors=`expr $errors + 1`
-else
- cmp ross-6.O $srcdir/ross-6.X > /dev/null 2>&1
- case $? in
- 0) if test "$VERBOSE"; then $echo "passed ross-6(|)"; fi;;
- 1) $echo "Test ross-6(|) failed: files ross-6.O and $srcdir/ross-6.X differ" 1>&2
- (diff -c ross-6.O $srcdir/ross-6.X) 2> /dev/null
- errors=`expr $errors + 1`;;
- 2) $echo "Test ross-6(|) may have failed." 1>&2
- $echo The command "cmp ross-6.O $srcdir/ross-6.X" failed. 1>&2
- errors=`expr $errors + 1`;;
- esac
-fi
-test -s ross-6.E || rm -f ross-6.E
-$xx -dc '[:upper:]' < $srcdir/ross-6.I > ross-6.O 2> ross-6.E
-code=$?
-if test $code != 0; then
- $echo "Test ross-6(<) failed: $xx return code $code differs from expected value 0" 1>&2
- errors=`expr $errors + 1`
-else
- cmp ross-6.O $srcdir/ross-6.X > /dev/null 2>&1
- case $? in
- 0) if test "$VERBOSE"; then $echo "passed ross-6(<)"; fi;;
- 1) $echo "Test ross-6(<) failed: files ross-6.O and $srcdir/ross-6.X differ" 1>&2
- (diff -c ross-6.O $srcdir/ross-6.X) 2> /dev/null
- errors=`expr $errors + 1`;;
- 2) $echo "Test ross-6(<) may have failed." 1>&2
- $echo The command "cmp ross-6.O $srcdir/ross-6.X" failed. 1>&2
- errors=`expr $errors + 1`;;
- esac
-fi
-test -s ross-6.E || rm -f ross-6.E
-cat $srcdir/empty-eq.I | $xx '[==]' x > empty-eq.O 2> empty-eq.E
-code=$?
-if test $code != 1; then
- $echo "Test empty-eq(|) failed: $xx return code $code differs from expected value 1" 1>&2
- errors=`expr $errors + 1`
-else
- cmp empty-eq.O $srcdir/empty-eq.X > /dev/null 2>&1
- case $? in
- 0) if test "$VERBOSE"; then $echo "passed empty-eq(|)"; fi;;
- 1) $echo "Test empty-eq(|) failed: files empty-eq.O and $srcdir/empty-eq.X differ" 1>&2
- (diff -c empty-eq.O $srcdir/empty-eq.X) 2> /dev/null
- errors=`expr $errors + 1`;;
- 2) $echo "Test empty-eq(|) may have failed." 1>&2
- $echo The command "cmp empty-eq.O $srcdir/empty-eq.X" failed. 1>&2
- errors=`expr $errors + 1`;;
- esac
-fi
-test -s empty-eq.E || rm -f empty-eq.E
-$xx '[==]' x < $srcdir/empty-eq.I > empty-eq.O 2> empty-eq.E
-code=$?
-if test $code != 1; then
- $echo "Test empty-eq(<) failed: $xx return code $code differs from expected value 1" 1>&2
- errors=`expr $errors + 1`
-else
- cmp empty-eq.O $srcdir/empty-eq.X > /dev/null 2>&1
- case $? in
- 0) if test "$VERBOSE"; then $echo "passed empty-eq(<)"; fi;;
- 1) $echo "Test empty-eq(<) failed: files empty-eq.O and $srcdir/empty-eq.X differ" 1>&2
- (diff -c empty-eq.O $srcdir/empty-eq.X) 2> /dev/null
- errors=`expr $errors + 1`;;
- 2) $echo "Test empty-eq(<) may have failed." 1>&2
- $echo The command "cmp empty-eq.O $srcdir/empty-eq.X" failed. 1>&2
- errors=`expr $errors + 1`;;
- esac
-fi
-test -s empty-eq.E || rm -f empty-eq.E
-cat $srcdir/empty-cc.I | $xx '[::]' x > empty-cc.O 2> empty-cc.E
-code=$?
-if test $code != 1; then
- $echo "Test empty-cc(|) failed: $xx return code $code differs from expected value 1" 1>&2
- errors=`expr $errors + 1`
-else
- cmp empty-cc.O $srcdir/empty-cc.X > /dev/null 2>&1
- case $? in
- 0) if test "$VERBOSE"; then $echo "passed empty-cc(|)"; fi;;
- 1) $echo "Test empty-cc(|) failed: files empty-cc.O and $srcdir/empty-cc.X differ" 1>&2
- (diff -c empty-cc.O $srcdir/empty-cc.X) 2> /dev/null
- errors=`expr $errors + 1`;;
- 2) $echo "Test empty-cc(|) may have failed." 1>&2
- $echo The command "cmp empty-cc.O $srcdir/empty-cc.X" failed. 1>&2
- errors=`expr $errors + 1`;;
- esac
-fi
-test -s empty-cc.E || rm -f empty-cc.E
-$xx '[::]' x < $srcdir/empty-cc.I > empty-cc.O 2> empty-cc.E
-code=$?
-if test $code != 1; then
- $echo "Test empty-cc(<) failed: $xx return code $code differs from expected value 1" 1>&2
- errors=`expr $errors + 1`
-else
- cmp empty-cc.O $srcdir/empty-cc.X > /dev/null 2>&1
- case $? in
- 0) if test "$VERBOSE"; then $echo "passed empty-cc(<)"; fi;;
- 1) $echo "Test empty-cc(<) failed: files empty-cc.O and $srcdir/empty-cc.X differ" 1>&2
- (diff -c empty-cc.O $srcdir/empty-cc.X) 2> /dev/null
- errors=`expr $errors + 1`;;
- 2) $echo "Test empty-cc(<) may have failed." 1>&2
- $echo The command "cmp empty-cc.O $srcdir/empty-cc.X" failed. 1>&2
- errors=`expr $errors + 1`;;
- esac
-fi
-test -s empty-cc.E || rm -f empty-cc.E
-cat $srcdir/repeat-bs-9.I | $xx abc '[b*\9]' > repeat-bs-9.O 2> repeat-bs-9.E
-code=$?
-if test $code != 0; then
- $echo "Test repeat-bs-9(|) failed: $xx return code $code differs from expected value 0" 1>&2
- errors=`expr $errors + 1`
-else
- cmp repeat-bs-9.O $srcdir/repeat-bs-9.X > /dev/null 2>&1
- case $? in
- 0) if test "$VERBOSE"; then $echo "passed repeat-bs-9(|)"; fi;;
- 1) $echo "Test repeat-bs-9(|) failed: files repeat-bs-9.O and $srcdir/repeat-bs-9.X differ" 1>&2
- (diff -c repeat-bs-9.O $srcdir/repeat-bs-9.X) 2> /dev/null
- errors=`expr $errors + 1`;;
- 2) $echo "Test repeat-bs-9(|) may have failed." 1>&2
- $echo The command "cmp repeat-bs-9.O $srcdir/repeat-bs-9.X" failed. 1>&2
- errors=`expr $errors + 1`;;
- esac
-fi
-test -s repeat-bs-9.E || rm -f repeat-bs-9.E
-$xx abc '[b*\9]' < $srcdir/repeat-bs-9.I > repeat-bs-9.O 2> repeat-bs-9.E
-code=$?
-if test $code != 0; then
- $echo "Test repeat-bs-9(<) failed: $xx return code $code differs from expected value 0" 1>&2
- errors=`expr $errors + 1`
-else
- cmp repeat-bs-9.O $srcdir/repeat-bs-9.X > /dev/null 2>&1
- case $? in
- 0) if test "$VERBOSE"; then $echo "passed repeat-bs-9(<)"; fi;;
- 1) $echo "Test repeat-bs-9(<) failed: files repeat-bs-9.O and $srcdir/repeat-bs-9.X differ" 1>&2
- (diff -c repeat-bs-9.O $srcdir/repeat-bs-9.X) 2> /dev/null
- errors=`expr $errors + 1`;;
- 2) $echo "Test repeat-bs-9(<) may have failed." 1>&2
- $echo The command "cmp repeat-bs-9.O $srcdir/repeat-bs-9.X" failed. 1>&2
- errors=`expr $errors + 1`;;
- esac
-fi
-test -s repeat-bs-9.E || rm -f repeat-bs-9.E
-cat $srcdir/repeat-0.I | $xx abc '[b*0]' > repeat-0.O 2> repeat-0.E
-code=$?
-if test $code != 0; then
- $echo "Test repeat-0(|) failed: $xx return code $code differs from expected value 0" 1>&2
- errors=`expr $errors + 1`
-else
- cmp repeat-0.O $srcdir/repeat-0.X > /dev/null 2>&1
- case $? in
- 0) if test "$VERBOSE"; then $echo "passed repeat-0(|)"; fi;;
- 1) $echo "Test repeat-0(|) failed: files repeat-0.O and $srcdir/repeat-0.X differ" 1>&2
- (diff -c repeat-0.O $srcdir/repeat-0.X) 2> /dev/null
- errors=`expr $errors + 1`;;
- 2) $echo "Test repeat-0(|) may have failed." 1>&2
- $echo The command "cmp repeat-0.O $srcdir/repeat-0.X" failed. 1>&2
- errors=`expr $errors + 1`;;
- esac
-fi
-test -s repeat-0.E || rm -f repeat-0.E
-$xx abc '[b*0]' < $srcdir/repeat-0.I > repeat-0.O 2> repeat-0.E
-code=$?
-if test $code != 0; then
- $echo "Test repeat-0(<) failed: $xx return code $code differs from expected value 0" 1>&2
- errors=`expr $errors + 1`
-else
- cmp repeat-0.O $srcdir/repeat-0.X > /dev/null 2>&1
- case $? in
- 0) if test "$VERBOSE"; then $echo "passed repeat-0(<)"; fi;;
- 1) $echo "Test repeat-0(<) failed: files repeat-0.O and $srcdir/repeat-0.X differ" 1>&2
- (diff -c repeat-0.O $srcdir/repeat-0.X) 2> /dev/null
- errors=`expr $errors + 1`;;
- 2) $echo "Test repeat-0(<) may have failed." 1>&2
- $echo The command "cmp repeat-0.O $srcdir/repeat-0.X" failed. 1>&2
- errors=`expr $errors + 1`;;
- esac
-fi
-test -s repeat-0.E || rm -f repeat-0.E
-cat $srcdir/repeat-zeros.I | $xx abc '[b*00000000000000000000]' > repeat-zeros.O 2> repeat-zeros.E
-code=$?
-if test $code != 0; then
- $echo "Test repeat-zeros(|) failed: $xx return code $code differs from expected value 0" 1>&2
- errors=`expr $errors + 1`
-else
- cmp repeat-zeros.O $srcdir/repeat-zeros.X > /dev/null 2>&1
- case $? in
- 0) if test "$VERBOSE"; then $echo "passed repeat-zeros(|)"; fi;;
- 1) $echo "Test repeat-zeros(|) failed: files repeat-zeros.O and $srcdir/repeat-zeros.X differ" 1>&2
- (diff -c repeat-zeros.O $srcdir/repeat-zeros.X) 2> /dev/null
- errors=`expr $errors + 1`;;
- 2) $echo "Test repeat-zeros(|) may have failed." 1>&2
- $echo The command "cmp repeat-zeros.O $srcdir/repeat-zeros.X" failed. 1>&2
- errors=`expr $errors + 1`;;
- esac
-fi
-test -s repeat-zeros.E || rm -f repeat-zeros.E
-$xx abc '[b*00000000000000000000]' < $srcdir/repeat-zeros.I > repeat-zeros.O 2> repeat-zeros.E
-code=$?
-if test $code != 0; then
- $echo "Test repeat-zeros(<) failed: $xx return code $code differs from expected value 0" 1>&2
- errors=`expr $errors + 1`
-else
- cmp repeat-zeros.O $srcdir/repeat-zeros.X > /dev/null 2>&1
- case $? in
- 0) if test "$VERBOSE"; then $echo "passed repeat-zeros(<)"; fi;;
- 1) $echo "Test repeat-zeros(<) failed: files repeat-zeros.O and $srcdir/repeat-zeros.X differ" 1>&2
- (diff -c repeat-zeros.O $srcdir/repeat-zeros.X) 2> /dev/null
- errors=`expr $errors + 1`;;
- 2) $echo "Test repeat-zeros(<) may have failed." 1>&2
- $echo The command "cmp repeat-zeros.O $srcdir/repeat-zeros.X" failed. 1>&2
- errors=`expr $errors + 1`;;
- esac
-fi
-test -s repeat-zeros.E || rm -f repeat-zeros.E
-cat $srcdir/repeat-compl.I | $xx -c '[a*65536]\n' '[b*]' > repeat-compl.O 2> repeat-compl.E
-code=$?
-if test $code != 0; then
- $echo "Test repeat-compl(|) failed: $xx return code $code differs from expected value 0" 1>&2
- errors=`expr $errors + 1`
-else
- cmp repeat-compl.O $srcdir/repeat-compl.X > /dev/null 2>&1
- case $? in
- 0) if test "$VERBOSE"; then $echo "passed repeat-compl(|)"; fi;;
- 1) $echo "Test repeat-compl(|) failed: files repeat-compl.O and $srcdir/repeat-compl.X differ" 1>&2
- (diff -c repeat-compl.O $srcdir/repeat-compl.X) 2> /dev/null
- errors=`expr $errors + 1`;;
- 2) $echo "Test repeat-compl(|) may have failed." 1>&2
- $echo The command "cmp repeat-compl.O $srcdir/repeat-compl.X" failed. 1>&2
- errors=`expr $errors + 1`;;
- esac
-fi
-test -s repeat-compl.E || rm -f repeat-compl.E
-$xx -c '[a*65536]\n' '[b*]' < $srcdir/repeat-compl.I > repeat-compl.O 2> repeat-compl.E
-code=$?
-if test $code != 0; then
- $echo "Test repeat-compl(<) failed: $xx return code $code differs from expected value 0" 1>&2
- errors=`expr $errors + 1`
-else
- cmp repeat-compl.O $srcdir/repeat-compl.X > /dev/null 2>&1
- case $? in
- 0) if test "$VERBOSE"; then $echo "passed repeat-compl(<)"; fi;;
- 1) $echo "Test repeat-compl(<) failed: files repeat-compl.O and $srcdir/repeat-compl.X differ" 1>&2
- (diff -c repeat-compl.O $srcdir/repeat-compl.X) 2> /dev/null
- errors=`expr $errors + 1`;;
- 2) $echo "Test repeat-compl(<) may have failed." 1>&2
- $echo The command "cmp repeat-compl.O $srcdir/repeat-compl.X" failed. 1>&2
- errors=`expr $errors + 1`;;
- esac
-fi
-test -s repeat-compl.E || rm -f repeat-compl.E
-cat $srcdir/repeat-xC.I | $xx -C '[a*65536]\n' '[b*]' > repeat-xC.O 2> repeat-xC.E
-code=$?
-if test $code != 0; then
- $echo "Test repeat-xC(|) failed: $xx return code $code differs from expected value 0" 1>&2
- errors=`expr $errors + 1`
-else
- cmp repeat-xC.O $srcdir/repeat-xC.X > /dev/null 2>&1
- case $? in
- 0) if test "$VERBOSE"; then $echo "passed repeat-xC(|)"; fi;;
- 1) $echo "Test repeat-xC(|) failed: files repeat-xC.O and $srcdir/repeat-xC.X differ" 1>&2
- (diff -c repeat-xC.O $srcdir/repeat-xC.X) 2> /dev/null
- errors=`expr $errors + 1`;;
- 2) $echo "Test repeat-xC(|) may have failed." 1>&2
- $echo The command "cmp repeat-xC.O $srcdir/repeat-xC.X" failed. 1>&2
- errors=`expr $errors + 1`;;
- esac
-fi
-test -s repeat-xC.E || rm -f repeat-xC.E
-$xx -C '[a*65536]\n' '[b*]' < $srcdir/repeat-xC.I > repeat-xC.O 2> repeat-xC.E
-code=$?
-if test $code != 0; then
- $echo "Test repeat-xC(<) failed: $xx return code $code differs from expected value 0" 1>&2
- errors=`expr $errors + 1`
-else
- cmp repeat-xC.O $srcdir/repeat-xC.X > /dev/null 2>&1
- case $? in
- 0) if test "$VERBOSE"; then $echo "passed repeat-xC(<)"; fi;;
- 1) $echo "Test repeat-xC(<) failed: files repeat-xC.O and $srcdir/repeat-xC.X differ" 1>&2
- (diff -c repeat-xC.O $srcdir/repeat-xC.X) 2> /dev/null
- errors=`expr $errors + 1`;;
- 2) $echo "Test repeat-xC(<) may have failed." 1>&2
- $echo The command "cmp repeat-xC.O $srcdir/repeat-xC.X" failed. 1>&2
- errors=`expr $errors + 1`;;
- esac
-fi
-test -s repeat-xC.E || rm -f repeat-xC.E
-cat $srcdir/fowler-1.I | $xx ah -H > fowler-1.O 2> fowler-1.E
-code=$?
-if test $code != 0; then
- $echo "Test fowler-1(|) failed: $xx return code $code differs from expected value 0" 1>&2
- errors=`expr $errors + 1`
-else
- cmp fowler-1.O $srcdir/fowler-1.X > /dev/null 2>&1
- case $? in
- 0) if test "$VERBOSE"; then $echo "passed fowler-1(|)"; fi;;
- 1) $echo "Test fowler-1(|) failed: files fowler-1.O and $srcdir/fowler-1.X differ" 1>&2
- (diff -c fowler-1.O $srcdir/fowler-1.X) 2> /dev/null
- errors=`expr $errors + 1`;;
- 2) $echo "Test fowler-1(|) may have failed." 1>&2
- $echo The command "cmp fowler-1.O $srcdir/fowler-1.X" failed. 1>&2
- errors=`expr $errors + 1`;;
- esac
-fi
-test -s fowler-1.E || rm -f fowler-1.E
-$xx ah -H < $srcdir/fowler-1.I > fowler-1.O 2> fowler-1.E
-code=$?
-if test $code != 0; then
- $echo "Test fowler-1(<) failed: $xx return code $code differs from expected value 0" 1>&2
- errors=`expr $errors + 1`
-else
- cmp fowler-1.O $srcdir/fowler-1.X > /dev/null 2>&1
- case $? in
- 0) if test "$VERBOSE"; then $echo "passed fowler-1(<)"; fi;;
- 1) $echo "Test fowler-1(<) failed: files fowler-1.O and $srcdir/fowler-1.X differ" 1>&2
- (diff -c fowler-1.O $srcdir/fowler-1.X) 2> /dev/null
- errors=`expr $errors + 1`;;
- 2) $echo "Test fowler-1(<) may have failed." 1>&2
- $echo The command "cmp fowler-1.O $srcdir/fowler-1.X" failed. 1>&2
- errors=`expr $errors + 1`;;
- esac
-fi
-test -s fowler-1.E || rm -f fowler-1.E
-if test $errors = 0; then
- $echo Passed all 130 tests. 1>&2
-else
- $echo Failed $errors tests. 1>&2
-fi
-test $errors = 0 || errors=1
-exit $errors
diff --git a/tests/tr/u.I b/tests/tr/u.I
deleted file mode 100644
index cb16a86..0000000
--- a/tests/tr/u.I
+++ /dev/null
@@ -1 +0,0 @@
-aabbaa \ No newline at end of file
diff --git a/tests/tr/u.X b/tests/tr/u.X
deleted file mode 100644
index 2e65efe..0000000
--- a/tests/tr/u.X
+++ /dev/null
@@ -1 +0,0 @@
-a \ No newline at end of file
diff --git a/tests/tr/upcase.I b/tests/tr/upcase.I
deleted file mode 100644
index ef2f0e1..0000000
--- a/tests/tr/upcase.I
+++ /dev/null
@@ -1 +0,0 @@
-abcxyzABCXYZ \ No newline at end of file
diff --git a/tests/tr/upcase.X b/tests/tr/upcase.X
deleted file mode 100644
index ecc9b53..0000000
--- a/tests/tr/upcase.X
+++ /dev/null
@@ -1 +0,0 @@
-ABCXYZABCXYZ \ No newline at end of file
diff --git a/tests/tr/v.I b/tests/tr/v.I
deleted file mode 100644
index 445a510..0000000
--- a/tests/tr/v.I
+++ /dev/null
@@ -1 +0,0 @@
-ZZ0123456789acbdefABCDEFZZ \ No newline at end of file
diff --git a/tests/tr/v.X b/tests/tr/v.X
deleted file mode 100644
index 0f13712..0000000
--- a/tests/tr/v.X
+++ /dev/null
@@ -1 +0,0 @@
-Z \ No newline at end of file
diff --git a/tests/tr/w.I b/tests/tr/w.I
deleted file mode 100644
index 2b9d533..0000000
--- a/tests/tr/w.I
+++ /dev/null
@@ -1 +0,0 @@
-ÀÁÿååèå \ No newline at end of file
diff --git a/tests/tr/w.X b/tests/tr/w.X
deleted file mode 100644
index bacb551..0000000
--- a/tests/tr/w.X
+++ /dev/null
@@ -1 +0,0 @@
-ÀÁÿå \ No newline at end of file
diff --git a/tests/tr/x.I b/tests/tr/x.I
deleted file mode 100644
index 70e6a83..0000000
--- a/tests/tr/x.I
+++ /dev/null
@@ -1 +0,0 @@
-abcdefghijklmnop \ No newline at end of file
diff --git a/tests/tr/x.X b/tests/tr/x.X
deleted file mode 100644
index abbc3c4..0000000
--- a/tests/tr/x.X
+++ /dev/null
@@ -1 +0,0 @@
-:op \ No newline at end of file
diff --git a/tests/tr/y.I b/tests/tr/y.I
deleted file mode 100644
index 75585da..0000000
--- a/tests/tr/y.I
+++ /dev/null
@@ -1 +0,0 @@
-abc $code \ No newline at end of file
diff --git a/tests/tr/y.X b/tests/tr/y.X
deleted file mode 100644
index 6ac101f..0000000
--- a/tests/tr/y.X
+++ /dev/null
@@ -1 +0,0 @@
- $ \ No newline at end of file
diff --git a/tests/tr/z.I b/tests/tr/z.I
deleted file mode 100644
index 33aca71..0000000
--- a/tests/tr/z.I
+++ /dev/null
@@ -1 +0,0 @@
-a.b.c $$$$code\ \ No newline at end of file
diff --git a/tests/tr/z.X b/tests/tr/z.X
deleted file mode 100644
index 4ec46f4..0000000
--- a/tests/tr/z.X
+++ /dev/null
@@ -1 +0,0 @@
-. $\ \ No newline at end of file
diff --git a/tests/tsort/Makefile.am b/tests/tsort/Makefile.am
deleted file mode 100644
index 389cf88..0000000
--- a/tests/tsort/Makefile.am
+++ /dev/null
@@ -1,13 +0,0 @@
-## Process this file with automake to produce Makefile.in -*-Makefile-*-.
-
-EXTRA_DIST = $(TESTS)
-
-TESTS_ENVIRONMENT = \
- top_srcdir=$(top_srcdir) \
- srcdir=$(srcdir) \
- PERL="$(PERL)" \
- CU_TEST_NAME=`basename $(abs_srcdir)`,$$tst \
- PATH="$(VG_PATH_PREFIX)`pwd`/../../src$(PATH_SEPARATOR)$$PATH" \
- PROG=tsort
-
-TESTS = basic-1
diff --git a/tests/tsort/Makefile.in b/tests/tsort/Makefile.in
deleted file mode 100644
index 3f3be5b..0000000
--- a/tests/tsort/Makefile.in
+++ /dev/null
@@ -1,720 +0,0 @@
-# Makefile.in generated by automake 1.10 from Makefile.am.
-# @configure_input@
-
-# Copyright (C) 1994, 1995, 1996, 1997, 1998, 1999, 2000, 2001, 2002,
-# 2003, 2004, 2005, 2006 Free Software Foundation, Inc.
-# This Makefile.in is free software; the Free Software Foundation
-# gives unlimited permission to copy and/or distribute it,
-# with or without modifications, as long as this notice is preserved.
-
-# This program is distributed in the hope that it will be useful,
-# but WITHOUT ANY WARRANTY, to the extent permitted by law; without
-# even the implied warranty of MERCHANTABILITY or FITNESS FOR A
-# PARTICULAR PURPOSE.
-
-@SET_MAKE@
-VPATH = @srcdir@
-pkgdatadir = $(datadir)/@PACKAGE@
-pkglibdir = $(libdir)/@PACKAGE@
-pkgincludedir = $(includedir)/@PACKAGE@
-am__cd = CDPATH="$${ZSH_VERSION+.}$(PATH_SEPARATOR)" && cd
-install_sh_DATA = $(install_sh) -c -m 644
-install_sh_PROGRAM = $(install_sh) -c
-install_sh_SCRIPT = $(install_sh) -c
-INSTALL_HEADER = $(INSTALL_DATA)
-transform = $(program_transform_name)
-NORMAL_INSTALL = :
-PRE_INSTALL = :
-POST_INSTALL = :
-NORMAL_UNINSTALL = :
-PRE_UNINSTALL = :
-POST_UNINSTALL = :
-build_triplet = @build@
-host_triplet = @host@
-subdir = tests/tsort
-DIST_COMMON = $(srcdir)/Makefile.am $(srcdir)/Makefile.in
-ACLOCAL_M4 = $(top_srcdir)/aclocal.m4
-am__aclocal_m4_deps = $(top_srcdir)/m4/absolute-header.m4 \
- $(top_srcdir)/m4/acl.m4 $(top_srcdir)/m4/alloca.m4 \
- $(top_srcdir)/m4/allocsa.m4 $(top_srcdir)/m4/argmatch.m4 \
- $(top_srcdir)/m4/arpa_inet_h.m4 $(top_srcdir)/m4/assert.m4 \
- $(top_srcdir)/m4/atexit.m4 $(top_srcdir)/m4/autobuild.m4 \
- $(top_srcdir)/m4/backupfile.m4 $(top_srcdir)/m4/base64.m4 \
- $(top_srcdir)/m4/bison.m4 $(top_srcdir)/m4/boottime.m4 \
- $(top_srcdir)/m4/c-strtod.m4 $(top_srcdir)/m4/calloc.m4 \
- $(top_srcdir)/m4/canon-host.m4 \
- $(top_srcdir)/m4/canonicalize.m4 \
- $(top_srcdir)/m4/chdir-long.m4 $(top_srcdir)/m4/check-decl.m4 \
- $(top_srcdir)/m4/chown.m4 $(top_srcdir)/m4/clock_time.m4 \
- $(top_srcdir)/m4/cloexec.m4 $(top_srcdir)/m4/close-stream.m4 \
- $(top_srcdir)/m4/closeout.m4 $(top_srcdir)/m4/codeset.m4 \
- $(top_srcdir)/m4/config-h.m4 $(top_srcdir)/m4/cycle-check.m4 \
- $(top_srcdir)/m4/d-ino.m4 $(top_srcdir)/m4/d-type.m4 \
- $(top_srcdir)/m4/dirfd.m4 $(top_srcdir)/m4/dirname.m4 \
- $(top_srcdir)/m4/dos.m4 $(top_srcdir)/m4/double-slash-root.m4 \
- $(top_srcdir)/m4/dup2.m4 $(top_srcdir)/m4/eealloc.m4 \
- $(top_srcdir)/m4/eoverflow.m4 $(top_srcdir)/m4/error.m4 \
- $(top_srcdir)/m4/euidaccess-stat.m4 \
- $(top_srcdir)/m4/euidaccess.m4 $(top_srcdir)/m4/exclude.m4 \
- $(top_srcdir)/m4/exitfail.m4 $(top_srcdir)/m4/extensions.m4 \
- $(top_srcdir)/m4/fchdir.m4 $(top_srcdir)/m4/fcntl-safer.m4 \
- $(top_srcdir)/m4/fcntl_h.m4 $(top_srcdir)/m4/fd-reopen.m4 \
- $(top_srcdir)/m4/file-type.m4 $(top_srcdir)/m4/fileblocks.m4 \
- $(top_srcdir)/m4/filemode.m4 $(top_srcdir)/m4/filenamecat.m4 \
- $(top_srcdir)/m4/flexmember.m4 $(top_srcdir)/m4/fnmatch.m4 \
- $(top_srcdir)/m4/fpending.m4 $(top_srcdir)/m4/fprintftime.m4 \
- $(top_srcdir)/m4/free.m4 $(top_srcdir)/m4/fstypename.m4 \
- $(top_srcdir)/m4/fsusage.m4 $(top_srcdir)/m4/ftruncate.m4 \
- $(top_srcdir)/m4/fts.m4 $(top_srcdir)/m4/getaddrinfo.m4 \
- $(top_srcdir)/m4/getcwd-abort-bug.m4 \
- $(top_srcdir)/m4/getcwd-path-max.m4 $(top_srcdir)/m4/getcwd.m4 \
- $(top_srcdir)/m4/getdate.m4 $(top_srcdir)/m4/getdelim.m4 \
- $(top_srcdir)/m4/getgroups.m4 $(top_srcdir)/m4/gethostname.m4 \
- $(top_srcdir)/m4/gethrxtime.m4 $(top_srcdir)/m4/getline.m4 \
- $(top_srcdir)/m4/getloadavg.m4 $(top_srcdir)/m4/getndelim2.m4 \
- $(top_srcdir)/m4/getopt.m4 $(top_srcdir)/m4/getpagesize.m4 \
- $(top_srcdir)/m4/getpass.m4 $(top_srcdir)/m4/gettext.m4 \
- $(top_srcdir)/m4/gettime.m4 $(top_srcdir)/m4/gettimeofday.m4 \
- $(top_srcdir)/m4/getugroups.m4 \
- $(top_srcdir)/m4/getusershell.m4 $(top_srcdir)/m4/glibc21.m4 \
- $(top_srcdir)/m4/gnulib-common.m4 \
- $(top_srcdir)/m4/gnulib-comp.m4 \
- $(top_srcdir)/m4/group-member.m4 \
- $(top_srcdir)/m4/hard-locale.m4 $(top_srcdir)/m4/hash.m4 \
- $(top_srcdir)/m4/host-os.m4 $(top_srcdir)/m4/human.m4 \
- $(top_srcdir)/m4/i-ring.m4 $(top_srcdir)/m4/iconv.m4 \
- $(top_srcdir)/m4/idcache.m4 $(top_srcdir)/m4/inet_ntop.m4 \
- $(top_srcdir)/m4/inline.m4 $(top_srcdir)/m4/intmax_t.m4 \
- $(top_srcdir)/m4/inttostr.m4 $(top_srcdir)/m4/inttypes-pri.m4 \
- $(top_srcdir)/m4/inttypes.m4 $(top_srcdir)/m4/inttypes_h.m4 \
- $(top_srcdir)/m4/isapipe.m4 $(top_srcdir)/m4/jm-macros.m4 \
- $(top_srcdir)/m4/jm-winsz1.m4 $(top_srcdir)/m4/jm-winsz2.m4 \
- $(top_srcdir)/m4/lchmod.m4 $(top_srcdir)/m4/lchown.m4 \
- $(top_srcdir)/m4/lib-check.m4 $(top_srcdir)/m4/lib-ignore.m4 \
- $(top_srcdir)/m4/lib-ld.m4 $(top_srcdir)/m4/lib-link.m4 \
- $(top_srcdir)/m4/lib-prefix.m4 $(top_srcdir)/m4/link-follow.m4 \
- $(top_srcdir)/m4/localcharset.m4 \
- $(top_srcdir)/m4/long-options.m4 \
- $(top_srcdir)/m4/longdouble.m4 $(top_srcdir)/m4/longlong.m4 \
- $(top_srcdir)/m4/ls-mntd-fs.m4 $(top_srcdir)/m4/lstat.m4 \
- $(top_srcdir)/m4/mbchar.m4 $(top_srcdir)/m4/mbiter.m4 \
- $(top_srcdir)/m4/mbrtowc.m4 $(top_srcdir)/m4/mbscasecmp.m4 \
- $(top_srcdir)/m4/mbstate_t.m4 $(top_srcdir)/m4/mbswidth.m4 \
- $(top_srcdir)/m4/md5.m4 $(top_srcdir)/m4/memcasecmp.m4 \
- $(top_srcdir)/m4/memchr.m4 $(top_srcdir)/m4/memcmp.m4 \
- $(top_srcdir)/m4/memcoll.m4 $(top_srcdir)/m4/memcpy.m4 \
- $(top_srcdir)/m4/memmove.m4 $(top_srcdir)/m4/mempcpy.m4 \
- $(top_srcdir)/m4/memrchr.m4 $(top_srcdir)/m4/memset.m4 \
- $(top_srcdir)/m4/memxfrm.m4 $(top_srcdir)/m4/mkancesdirs.m4 \
- $(top_srcdir)/m4/mkdir-p.m4 $(top_srcdir)/m4/mkdir-slash.m4 \
- $(top_srcdir)/m4/mkstemp.m4 $(top_srcdir)/m4/mktime.m4 \
- $(top_srcdir)/m4/modechange.m4 $(top_srcdir)/m4/mountlist.m4 \
- $(top_srcdir)/m4/mpsort.m4 $(top_srcdir)/m4/nanosleep.m4 \
- $(top_srcdir)/m4/netinet_in_h.m4 $(top_srcdir)/m4/nls.m4 \
- $(top_srcdir)/m4/openat.m4 $(top_srcdir)/m4/pathmax.m4 \
- $(top_srcdir)/m4/perl.m4 $(top_srcdir)/m4/physmem.m4 \
- $(top_srcdir)/m4/po.m4 $(top_srcdir)/m4/posixtm.m4 \
- $(top_srcdir)/m4/posixver.m4 $(top_srcdir)/m4/prereq.m4 \
- $(top_srcdir)/m4/progtest.m4 $(top_srcdir)/m4/putenv.m4 \
- $(top_srcdir)/m4/quote.m4 $(top_srcdir)/m4/quotearg.m4 \
- $(top_srcdir)/m4/randint.m4 $(top_srcdir)/m4/randperm.m4 \
- $(top_srcdir)/m4/randread.m4 $(top_srcdir)/m4/readlink.m4 \
- $(top_srcdir)/m4/readtokens.m4 $(top_srcdir)/m4/readutmp.m4 \
- $(top_srcdir)/m4/regex.m4 \
- $(top_srcdir)/m4/rename-dest-slash.m4 \
- $(top_srcdir)/m4/rename.m4 $(top_srcdir)/m4/rmdir-errno.m4 \
- $(top_srcdir)/m4/rmdir.m4 $(top_srcdir)/m4/root-dev-ino.m4 \
- $(top_srcdir)/m4/rpmatch.m4 $(top_srcdir)/m4/safe-read.m4 \
- $(top_srcdir)/m4/safe-write.m4 $(top_srcdir)/m4/same.m4 \
- $(top_srcdir)/m4/save-cwd.m4 $(top_srcdir)/m4/savedir.m4 \
- $(top_srcdir)/m4/savewd.m4 $(top_srcdir)/m4/setenv.m4 \
- $(top_srcdir)/m4/settime.m4 $(top_srcdir)/m4/sha1.m4 \
- $(top_srcdir)/m4/sha256.m4 $(top_srcdir)/m4/sha512.m4 \
- $(top_srcdir)/m4/sig2str.m4 $(top_srcdir)/m4/snprintf.m4 \
- $(top_srcdir)/m4/socklen.m4 $(top_srcdir)/m4/sockpfaf.m4 \
- $(top_srcdir)/m4/ssize_t.m4 $(top_srcdir)/m4/st_dm_mode.m4 \
- $(top_srcdir)/m4/stat-prog.m4 $(top_srcdir)/m4/stat-time.m4 \
- $(top_srcdir)/m4/stdarg.m4 $(top_srcdir)/m4/stdbool.m4 \
- $(top_srcdir)/m4/stdint.m4 $(top_srcdir)/m4/stdint_h.m4 \
- $(top_srcdir)/m4/stdio-safer.m4 $(top_srcdir)/m4/stdio_h.m4 \
- $(top_srcdir)/m4/stdlib-safer.m4 $(top_srcdir)/m4/stdlib_h.m4 \
- $(top_srcdir)/m4/stpcpy.m4 $(top_srcdir)/m4/strcspn.m4 \
- $(top_srcdir)/m4/strdup.m4 $(top_srcdir)/m4/strftime.m4 \
- $(top_srcdir)/m4/string_h.m4 $(top_srcdir)/m4/strndup.m4 \
- $(top_srcdir)/m4/strnlen.m4 $(top_srcdir)/m4/strnumcmp.m4 \
- $(top_srcdir)/m4/strpbrk.m4 $(top_srcdir)/m4/strtod.m4 \
- $(top_srcdir)/m4/strtoimax.m4 $(top_srcdir)/m4/strtol.m4 \
- $(top_srcdir)/m4/strtoll.m4 $(top_srcdir)/m4/strtoul.m4 \
- $(top_srcdir)/m4/strtoull.m4 $(top_srcdir)/m4/strtoumax.m4 \
- $(top_srcdir)/m4/strverscmp.m4 \
- $(top_srcdir)/m4/sys_socket_h.m4 \
- $(top_srcdir)/m4/sys_stat_h.m4 $(top_srcdir)/m4/sys_time_h.m4 \
- $(top_srcdir)/m4/tempname.m4 $(top_srcdir)/m4/time_h.m4 \
- $(top_srcdir)/m4/time_r.m4 $(top_srcdir)/m4/timespec.m4 \
- $(top_srcdir)/m4/tm_gmtoff.m4 $(top_srcdir)/m4/tzset.m4 \
- $(top_srcdir)/m4/unicodeio.m4 $(top_srcdir)/m4/unistd-safer.m4 \
- $(top_srcdir)/m4/unistd_h.m4 $(top_srcdir)/m4/unlink-busy.m4 \
- $(top_srcdir)/m4/unlinkdir.m4 $(top_srcdir)/m4/unlocked-io.m4 \
- $(top_srcdir)/m4/uptime.m4 $(top_srcdir)/m4/userspec.m4 \
- $(top_srcdir)/m4/utimbuf.m4 $(top_srcdir)/m4/utime.m4 \
- $(top_srcdir)/m4/utimecmp.m4 $(top_srcdir)/m4/utimens.m4 \
- $(top_srcdir)/m4/utimes-null.m4 $(top_srcdir)/m4/utimes.m4 \
- $(top_srcdir)/m4/vasnprintf.m4 $(top_srcdir)/m4/vasprintf.m4 \
- $(top_srcdir)/m4/wchar.m4 $(top_srcdir)/m4/wchar_t.m4 \
- $(top_srcdir)/m4/wctype.m4 $(top_srcdir)/m4/wcwidth.m4 \
- $(top_srcdir)/m4/wint_t.m4 $(top_srcdir)/m4/xalloc.m4 \
- $(top_srcdir)/m4/xfts.m4 $(top_srcdir)/m4/xgetcwd.m4 \
- $(top_srcdir)/m4/xnanosleep.m4 $(top_srcdir)/m4/xstrndup.m4 \
- $(top_srcdir)/m4/xstrtod.m4 $(top_srcdir)/m4/xstrtol.m4 \
- $(top_srcdir)/m4/yesno.m4 $(top_srcdir)/configure.ac
-am__configure_deps = $(am__aclocal_m4_deps) $(CONFIGURE_DEPENDENCIES) \
- $(ACLOCAL_M4)
-mkinstalldirs = $(install_sh) -d
-CONFIG_HEADER = $(top_builddir)/lib/config.h
-CONFIG_CLEAN_FILES =
-SOURCES =
-DIST_SOURCES =
-DISTFILES = $(DIST_COMMON) $(DIST_SOURCES) $(TEXINFOS) $(EXTRA_DIST)
-ABSOLUTE_DIRENT_H = @ABSOLUTE_DIRENT_H@
-ABSOLUTE_FCNTL_H = @ABSOLUTE_FCNTL_H@
-ABSOLUTE_INTTYPES_H = @ABSOLUTE_INTTYPES_H@
-ABSOLUTE_NETINET_IN_H = @ABSOLUTE_NETINET_IN_H@
-ABSOLUTE_STDINT_H = @ABSOLUTE_STDINT_H@
-ABSOLUTE_STDIO_H = @ABSOLUTE_STDIO_H@
-ABSOLUTE_STDLIB_H = @ABSOLUTE_STDLIB_H@
-ABSOLUTE_STRING_H = @ABSOLUTE_STRING_H@
-ABSOLUTE_SYS_SOCKET_H = @ABSOLUTE_SYS_SOCKET_H@
-ABSOLUTE_SYS_STAT_H = @ABSOLUTE_SYS_STAT_H@
-ABSOLUTE_SYS_TIME_H = @ABSOLUTE_SYS_TIME_H@
-ABSOLUTE_TIME_H = @ABSOLUTE_TIME_H@
-ABSOLUTE_UNISTD_H = @ABSOLUTE_UNISTD_H@
-ABSOLUTE_WCHAR_H = @ABSOLUTE_WCHAR_H@
-ABSOLUTE_WCTYPE_H = @ABSOLUTE_WCTYPE_H@
-ACLOCAL = @ACLOCAL@
-ALLOCA = @ALLOCA@
-ALLOCA_H = @ALLOCA_H@
-AMTAR = @AMTAR@
-ARPA_INET_H = @ARPA_INET_H@
-AUTOCONF = @AUTOCONF@
-AUTOHEADER = @AUTOHEADER@
-AUTOMAKE = @AUTOMAKE@
-AWK = @AWK@
-BITSIZEOF_PTRDIFF_T = @BITSIZEOF_PTRDIFF_T@
-BITSIZEOF_SIG_ATOMIC_T = @BITSIZEOF_SIG_ATOMIC_T@
-BITSIZEOF_SIZE_T = @BITSIZEOF_SIZE_T@
-BITSIZEOF_WCHAR_T = @BITSIZEOF_WCHAR_T@
-BITSIZEOF_WINT_T = @BITSIZEOF_WINT_T@
-CC = @CC@
-CCDEPMODE = @CCDEPMODE@
-CFLAGS = @CFLAGS@
-CPP = @CPP@
-CPPFLAGS = @CPPFLAGS@
-CYGPATH_W = @CYGPATH_W@
-DEFAULT_POSIX2_VERSION = @DEFAULT_POSIX2_VERSION@
-DEFS = @DEFS@
-DEPDIR = @DEPDIR@
-DF_PROG = @DF_PROG@
-DIRENT_H = @DIRENT_H@
-ECHO_C = @ECHO_C@
-ECHO_N = @ECHO_N@
-ECHO_T = @ECHO_T@
-EGREP = @EGREP@
-EOVERFLOW = @EOVERFLOW@
-EXEEXT = @EXEEXT@
-FCNTL_H = @FCNTL_H@
-FNMATCH_H = @FNMATCH_H@
-GETLOADAVG_LIBS = @GETLOADAVG_LIBS@
-GETOPT_H = @GETOPT_H@
-GLIBC21 = @GLIBC21@
-GMSGFMT = @GMSGFMT@
-GMSGFMT_015 = @GMSGFMT_015@
-GNULIB_CHOWN = @GNULIB_CHOWN@
-GNULIB_DUP2 = @GNULIB_DUP2@
-GNULIB_FCHDIR = @GNULIB_FCHDIR@
-GNULIB_FPRINTF_POSIX = @GNULIB_FPRINTF_POSIX@
-GNULIB_FTRUNCATE = @GNULIB_FTRUNCATE@
-GNULIB_GETCWD = @GNULIB_GETCWD@
-GNULIB_GETLOGIN_R = @GNULIB_GETLOGIN_R@
-GNULIB_GETSUBOPT = @GNULIB_GETSUBOPT@
-GNULIB_IMAXABS = @GNULIB_IMAXABS@
-GNULIB_IMAXDIV = @GNULIB_IMAXDIV@
-GNULIB_MBSCASECMP = @GNULIB_MBSCASECMP@
-GNULIB_MBSCASESTR = @GNULIB_MBSCASESTR@
-GNULIB_MBSCHR = @GNULIB_MBSCHR@
-GNULIB_MBSCSPN = @GNULIB_MBSCSPN@
-GNULIB_MBSLEN = @GNULIB_MBSLEN@
-GNULIB_MBSNCASECMP = @GNULIB_MBSNCASECMP@
-GNULIB_MBSPBRK = @GNULIB_MBSPBRK@
-GNULIB_MBSPCASECMP = @GNULIB_MBSPCASECMP@
-GNULIB_MBSRCHR = @GNULIB_MBSRCHR@
-GNULIB_MBSSEP = @GNULIB_MBSSEP@
-GNULIB_MBSSPN = @GNULIB_MBSSPN@
-GNULIB_MBSSTR = @GNULIB_MBSSTR@
-GNULIB_MBSTOK_R = @GNULIB_MBSTOK_R@
-GNULIB_MEMMEM = @GNULIB_MEMMEM@
-GNULIB_MEMPCPY = @GNULIB_MEMPCPY@
-GNULIB_MEMRCHR = @GNULIB_MEMRCHR@
-GNULIB_MKDTEMP = @GNULIB_MKDTEMP@
-GNULIB_MKSTEMP = @GNULIB_MKSTEMP@
-GNULIB_PRINTF_POSIX = @GNULIB_PRINTF_POSIX@
-GNULIB_READLINK = @GNULIB_READLINK@
-GNULIB_SNPRINTF = @GNULIB_SNPRINTF@
-GNULIB_SPRINTF_POSIX = @GNULIB_SPRINTF_POSIX@
-GNULIB_STPCPY = @GNULIB_STPCPY@
-GNULIB_STPNCPY = @GNULIB_STPNCPY@
-GNULIB_STRCASESTR = @GNULIB_STRCASESTR@
-GNULIB_STRCHRNUL = @GNULIB_STRCHRNUL@
-GNULIB_STRDUP = @GNULIB_STRDUP@
-GNULIB_STRNDUP = @GNULIB_STRNDUP@
-GNULIB_STRNLEN = @GNULIB_STRNLEN@
-GNULIB_STRPBRK = @GNULIB_STRPBRK@
-GNULIB_STRSEP = @GNULIB_STRSEP@
-GNULIB_STRTOIMAX = @GNULIB_STRTOIMAX@
-GNULIB_STRTOK_R = @GNULIB_STRTOK_R@
-GNULIB_STRTOUMAX = @GNULIB_STRTOUMAX@
-GNULIB_VFPRINTF_POSIX = @GNULIB_VFPRINTF_POSIX@
-GNULIB_VPRINTF_POSIX = @GNULIB_VPRINTF_POSIX@
-GNULIB_VSNPRINTF = @GNULIB_VSNPRINTF@
-GNULIB_VSPRINTF_POSIX = @GNULIB_VSPRINTF_POSIX@
-GNU_PACKAGE = @GNU_PACKAGE@
-GREP = @GREP@
-HAVE_DECL_GETLOGIN_R = @HAVE_DECL_GETLOGIN_R@
-HAVE_DECL_IMAXABS = @HAVE_DECL_IMAXABS@
-HAVE_DECL_IMAXDIV = @HAVE_DECL_IMAXDIV@
-HAVE_DECL_MEMMEM = @HAVE_DECL_MEMMEM@
-HAVE_DECL_MEMRCHR = @HAVE_DECL_MEMRCHR@
-HAVE_DECL_SNPRINTF = @HAVE_DECL_SNPRINTF@
-HAVE_DECL_STRDUP = @HAVE_DECL_STRDUP@
-HAVE_DECL_STRNCASECMP = @HAVE_DECL_STRNCASECMP@
-HAVE_DECL_STRNDUP = @HAVE_DECL_STRNDUP@
-HAVE_DECL_STRNLEN = @HAVE_DECL_STRNLEN@
-HAVE_DECL_STRTOIMAX = @HAVE_DECL_STRTOIMAX@
-HAVE_DECL_STRTOK_R = @HAVE_DECL_STRTOK_R@
-HAVE_DECL_STRTOUMAX = @HAVE_DECL_STRTOUMAX@
-HAVE_DECL_VSNPRINTF = @HAVE_DECL_VSNPRINTF@
-HAVE_DUP2 = @HAVE_DUP2@
-HAVE_FTRUNCATE = @HAVE_FTRUNCATE@
-HAVE_GETSUBOPT = @HAVE_GETSUBOPT@
-HAVE_INTTYPES_H = @HAVE_INTTYPES_H@
-HAVE_LONG_LONG_INT = @HAVE_LONG_LONG_INT@
-HAVE_MEMPCPY = @HAVE_MEMPCPY@
-HAVE_MKDTEMP = @HAVE_MKDTEMP@
-HAVE_NETINET_IN_H = @HAVE_NETINET_IN_H@
-HAVE_READLINK = @HAVE_READLINK@
-HAVE_SIGNED_SIG_ATOMIC_T = @HAVE_SIGNED_SIG_ATOMIC_T@
-HAVE_SIGNED_WCHAR_T = @HAVE_SIGNED_WCHAR_T@
-HAVE_SIGNED_WINT_T = @HAVE_SIGNED_WINT_T@
-HAVE_STDINT_H = @HAVE_STDINT_H@
-HAVE_STPCPY = @HAVE_STPCPY@
-HAVE_STPNCPY = @HAVE_STPNCPY@
-HAVE_STRCASECMP = @HAVE_STRCASECMP@
-HAVE_STRCASESTR = @HAVE_STRCASESTR@
-HAVE_STRCHRNUL = @HAVE_STRCHRNUL@
-HAVE_STRNDUP = @HAVE_STRNDUP@
-HAVE_STRPBRK = @HAVE_STRPBRK@
-HAVE_STRSEP = @HAVE_STRSEP@
-HAVE_STRUCT_TIMEVAL = @HAVE_STRUCT_TIMEVAL@
-HAVE_SYS_BITYPES_H = @HAVE_SYS_BITYPES_H@
-HAVE_SYS_INTTYPES_H = @HAVE_SYS_INTTYPES_H@
-HAVE_SYS_SOCKET_H = @HAVE_SYS_SOCKET_H@
-HAVE_SYS_TIME_H = @HAVE_SYS_TIME_H@
-HAVE_SYS_TYPES_H = @HAVE_SYS_TYPES_H@
-HAVE_UNISTD_H = @HAVE_UNISTD_H@
-HAVE_UNSIGNED_LONG_LONG_INT = @HAVE_UNSIGNED_LONG_LONG_INT@
-HAVE_WCTYPE_H = @HAVE_WCTYPE_H@
-HAVE_WINSOCK2_H = @HAVE_WINSOCK2_H@
-HAVE_WINT_T = @HAVE_WINT_T@
-HAVE_WS2TCPIP_H = @HAVE_WS2TCPIP_H@
-HAVE__BOOL = @HAVE__BOOL@
-HELP2MAN = @HELP2MAN@
-INSTALL = @INSTALL@
-INSTALL_DATA = @INSTALL_DATA@
-INSTALL_PROGRAM = @INSTALL_PROGRAM@
-INSTALL_SCRIPT = @INSTALL_SCRIPT@
-INSTALL_STRIP_PROGRAM = @INSTALL_STRIP_PROGRAM@
-INTLLIBS = @INTLLIBS@
-INTL_MACOSX_LIBS = @INTL_MACOSX_LIBS@
-INTTYPES_H = @INTTYPES_H@
-KMEM_GROUP = @KMEM_GROUP@
-LDFLAGS = @LDFLAGS@
-LIBCOREUTILS_LIBDEPS = @LIBCOREUTILS_LIBDEPS@
-LIBCOREUTILS_LTLIBDEPS = @LIBCOREUTILS_LTLIBDEPS@
-LIBICONV = @LIBICONV@
-LIBINTL = @LIBINTL@
-LIBOBJS = @LIBOBJS@
-LIBS = @LIBS@
-LIB_ACL = @LIB_ACL@
-LIB_ACL_TRIVIAL = @LIB_ACL_TRIVIAL@
-LIB_CLOCK_GETTIME = @LIB_CLOCK_GETTIME@
-LIB_CRYPT = @LIB_CRYPT@
-LIB_EACCESS = @LIB_EACCESS@
-LIB_FDATASYNC = @LIB_FDATASYNC@
-LIB_GETHRXTIME = @LIB_GETHRXTIME@
-LIB_NANOSLEEP = @LIB_NANOSLEEP@
-LN_S = @LN_S@
-LTLIBICONV = @LTLIBICONV@
-LTLIBINTL = @LTLIBINTL@
-LTLIBOBJS = @LTLIBOBJS@
-MAKEINFO = @MAKEINFO@
-MAN = @MAN@
-MKDIR_P = @MKDIR_P@
-MSGFMT = @MSGFMT@
-MSGFMT_015 = @MSGFMT_015@
-MSGMERGE = @MSGMERGE@
-NEED_SETGID = @NEED_SETGID@
-NETINET_IN_H = @NETINET_IN_H@
-OBJEXT = @OBJEXT@
-OPTIONAL_BIN_PROGS = @OPTIONAL_BIN_PROGS@
-PACKAGE = @PACKAGE@
-PACKAGE_BUGREPORT = @PACKAGE_BUGREPORT@
-PACKAGE_NAME = @PACKAGE_NAME@
-PACKAGE_STRING = @PACKAGE_STRING@
-PACKAGE_TARNAME = @PACKAGE_TARNAME@
-PACKAGE_VERSION = @PACKAGE_VERSION@
-PATH_SEPARATOR = @PATH_SEPARATOR@
-PERL = @PERL@
-POSUB = @POSUB@
-POW_LIB = @POW_LIB@
-PRIPTR_PREFIX = @PRIPTR_PREFIX@
-PRI_MACROS_BROKEN = @PRI_MACROS_BROKEN@
-PTRDIFF_T_SUFFIX = @PTRDIFF_T_SUFFIX@
-RANLIB = @RANLIB@
-REPLACE_CHOWN = @REPLACE_CHOWN@
-REPLACE_FCHDIR = @REPLACE_FCHDIR@
-REPLACE_FPRINTF = @REPLACE_FPRINTF@
-REPLACE_GETCWD = @REPLACE_GETCWD@
-REPLACE_GETTIMEOFDAY = @REPLACE_GETTIMEOFDAY@
-REPLACE_LOCALTIME_R = @REPLACE_LOCALTIME_R@
-REPLACE_MKSTEMP = @REPLACE_MKSTEMP@
-REPLACE_NANOSLEEP = @REPLACE_NANOSLEEP@
-REPLACE_PRINTF = @REPLACE_PRINTF@
-REPLACE_SNPRINTF = @REPLACE_SNPRINTF@
-REPLACE_SPRINTF = @REPLACE_SPRINTF@
-REPLACE_STRPTIME = @REPLACE_STRPTIME@
-REPLACE_TIMEGM = @REPLACE_TIMEGM@
-REPLACE_VFPRINTF = @REPLACE_VFPRINTF@
-REPLACE_VPRINTF = @REPLACE_VPRINTF@
-REPLACE_VSNPRINTF = @REPLACE_VSNPRINTF@
-REPLACE_VSPRINTF = @REPLACE_VSPRINTF@
-SEQ_LIBM = @SEQ_LIBM@
-SET_MAKE = @SET_MAKE@
-SHELL = @SHELL@
-SIG_ATOMIC_T_SUFFIX = @SIG_ATOMIC_T_SUFFIX@
-SIZE_T_SUFFIX = @SIZE_T_SUFFIX@
-STDBOOL_H = @STDBOOL_H@
-STDINT_H = @STDINT_H@
-STRIP = @STRIP@
-SYS_SOCKET_H = @SYS_SOCKET_H@
-SYS_STAT_H = @SYS_STAT_H@
-SYS_TIME_H = @SYS_TIME_H@
-SYS_TIME_H_DEFINES_STRUCT_TIMESPEC = @SYS_TIME_H_DEFINES_STRUCT_TIMESPEC@
-TIME_H_DEFINES_STRUCT_TIMESPEC = @TIME_H_DEFINES_STRUCT_TIMESPEC@
-U = @U@
-USE_NLS = @USE_NLS@
-VERSION = @VERSION@
-WCHAR_H = @WCHAR_H@
-WCHAR_T_SUFFIX = @WCHAR_T_SUFFIX@
-WCTYPE_H = @WCTYPE_H@
-WINT_T_SUFFIX = @WINT_T_SUFFIX@
-XGETTEXT = @XGETTEXT@
-XGETTEXT_015 = @XGETTEXT_015@
-YACC = @YACC@
-YFLAGS = @YFLAGS@
-abs_builddir = @abs_builddir@
-abs_srcdir = @abs_srcdir@
-abs_top_builddir = @abs_top_builddir@
-abs_top_srcdir = @abs_top_srcdir@
-ac_ct_CC = @ac_ct_CC@
-am__include = @am__include@
-am__leading_dot = @am__leading_dot@
-am__quote = @am__quote@
-am__tar = @am__tar@
-am__untar = @am__untar@
-bindir = @bindir@
-build = @build@
-build_alias = @build_alias@
-build_cpu = @build_cpu@
-build_os = @build_os@
-build_vendor = @build_vendor@
-builddir = @builddir@
-datadir = @datadir@
-datarootdir = @datarootdir@
-docdir = @docdir@
-dvidir = @dvidir@
-exec_prefix = @exec_prefix@
-gl_LIBOBJS = @gl_LIBOBJS@
-gl_LTLIBOBJS = @gl_LTLIBOBJS@
-host = @host@
-host_alias = @host_alias@
-host_cpu = @host_cpu@
-host_os = @host_os@
-host_vendor = @host_vendor@
-htmldir = @htmldir@
-includedir = @includedir@
-infodir = @infodir@
-install_sh = @install_sh@
-libdir = @libdir@
-libexecdir = @libexecdir@
-localedir = @localedir@
-localstatedir = @localstatedir@
-mandir = @mandir@
-mkdir_p = @mkdir_p@
-oldincludedir = @oldincludedir@
-pdfdir = @pdfdir@
-prefix = @prefix@
-program_transform_name = @program_transform_name@
-psdir = @psdir@
-sbindir = @sbindir@
-sharedstatedir = @sharedstatedir@
-srcdir = @srcdir@
-sysconfdir = @sysconfdir@
-target_alias = @target_alias@
-top_builddir = @top_builddir@
-top_srcdir = @top_srcdir@
-EXTRA_DIST = $(TESTS)
-TESTS_ENVIRONMENT = \
- top_srcdir=$(top_srcdir) \
- srcdir=$(srcdir) \
- PERL="$(PERL)" \
- CU_TEST_NAME=`basename $(abs_srcdir)`,$$tst \
- PATH="$(VG_PATH_PREFIX)`pwd`/../../src$(PATH_SEPARATOR)$$PATH" \
- PROG=tsort
-
-TESTS = basic-1
-all: all-am
-
-.SUFFIXES:
-$(srcdir)/Makefile.in: $(srcdir)/Makefile.am $(am__configure_deps)
- @for dep in $?; do \
- case '$(am__configure_deps)' in \
- *$$dep*) \
- cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh \
- && exit 0; \
- exit 1;; \
- esac; \
- done; \
- echo ' cd $(top_srcdir) && $(AUTOMAKE) --gnu tests/tsort/Makefile'; \
- cd $(top_srcdir) && \
- $(AUTOMAKE) --gnu tests/tsort/Makefile
-.PRECIOUS: Makefile
-Makefile: $(srcdir)/Makefile.in $(top_builddir)/config.status
- @case '$?' in \
- *config.status*) \
- cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh;; \
- *) \
- echo ' cd $(top_builddir) && $(SHELL) ./config.status $(subdir)/$@ $(am__depfiles_maybe)'; \
- cd $(top_builddir) && $(SHELL) ./config.status $(subdir)/$@ $(am__depfiles_maybe);; \
- esac;
-
-$(top_builddir)/config.status: $(top_srcdir)/configure $(CONFIG_STATUS_DEPENDENCIES)
- cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh
-
-$(top_srcdir)/configure: $(am__configure_deps)
- cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh
-$(ACLOCAL_M4): $(am__aclocal_m4_deps)
- cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh
-tags: TAGS
-TAGS:
-
-ctags: CTAGS
-CTAGS:
-
-
-check-TESTS: $(TESTS)
- @failed=0; all=0; xfail=0; xpass=0; skip=0; ws='[ ]'; \
- srcdir=$(srcdir); export srcdir; \
- list=' $(TESTS) '; \
- if test -n "$$list"; then \
- for tst in $$list; do \
- if test -f ./$$tst; then dir=./; \
- elif test -f $$tst; then dir=; \
- else dir="$(srcdir)/"; fi; \
- if $(TESTS_ENVIRONMENT) $${dir}$$tst; then \
- all=`expr $$all + 1`; \
- case " $(XFAIL_TESTS) " in \
- *$$ws$$tst$$ws*) \
- xpass=`expr $$xpass + 1`; \
- failed=`expr $$failed + 1`; \
- echo "XPASS: $$tst"; \
- ;; \
- *) \
- echo "PASS: $$tst"; \
- ;; \
- esac; \
- elif test $$? -ne 77; then \
- all=`expr $$all + 1`; \
- case " $(XFAIL_TESTS) " in \
- *$$ws$$tst$$ws*) \
- xfail=`expr $$xfail + 1`; \
- echo "XFAIL: $$tst"; \
- ;; \
- *) \
- failed=`expr $$failed + 1`; \
- echo "FAIL: $$tst"; \
- ;; \
- esac; \
- else \
- skip=`expr $$skip + 1`; \
- echo "SKIP: $$tst"; \
- fi; \
- done; \
- if test "$$failed" -eq 0; then \
- if test "$$xfail" -eq 0; then \
- banner="All $$all tests passed"; \
- else \
- banner="All $$all tests behaved as expected ($$xfail expected failures)"; \
- fi; \
- else \
- if test "$$xpass" -eq 0; then \
- banner="$$failed of $$all tests failed"; \
- else \
- banner="$$failed of $$all tests did not behave as expected ($$xpass unexpected passes)"; \
- fi; \
- fi; \
- dashes="$$banner"; \
- skipped=""; \
- if test "$$skip" -ne 0; then \
- skipped="($$skip tests were not run)"; \
- test `echo "$$skipped" | wc -c` -le `echo "$$banner" | wc -c` || \
- dashes="$$skipped"; \
- fi; \
- report=""; \
- if test "$$failed" -ne 0 && test -n "$(PACKAGE_BUGREPORT)"; then \
- report="Please report to $(PACKAGE_BUGREPORT)"; \
- test `echo "$$report" | wc -c` -le `echo "$$banner" | wc -c` || \
- dashes="$$report"; \
- fi; \
- dashes=`echo "$$dashes" | sed s/./=/g`; \
- echo "$$dashes"; \
- echo "$$banner"; \
- test -z "$$skipped" || echo "$$skipped"; \
- test -z "$$report" || echo "$$report"; \
- echo "$$dashes"; \
- test "$$failed" -eq 0; \
- else :; fi
-
-distdir: $(DISTFILES)
- @srcdirstrip=`echo "$(srcdir)" | sed 's/[].[^$$\\*]/\\\\&/g'`; \
- topsrcdirstrip=`echo "$(top_srcdir)" | sed 's/[].[^$$\\*]/\\\\&/g'`; \
- list='$(DISTFILES)'; \
- dist_files=`for file in $$list; do echo $$file; done | \
- sed -e "s|^$$srcdirstrip/||;t" \
- -e "s|^$$topsrcdirstrip/|$(top_builddir)/|;t"`; \
- case $$dist_files in \
- */*) $(MKDIR_P) `echo "$$dist_files" | \
- sed '/\//!d;s|^|$(distdir)/|;s,/[^/]*$$,,' | \
- sort -u` ;; \
- esac; \
- for file in $$dist_files; do \
- if test -f $$file || test -d $$file; then d=.; else d=$(srcdir); fi; \
- if test -d $$d/$$file; then \
- dir=`echo "/$$file" | sed -e 's,/[^/]*$$,,'`; \
- if test -d $(srcdir)/$$file && test $$d != $(srcdir); then \
- cp -pR $(srcdir)/$$file $(distdir)$$dir || exit 1; \
- fi; \
- cp -pR $$d/$$file $(distdir)$$dir || exit 1; \
- else \
- test -f $(distdir)/$$file \
- || cp -p $$d/$$file $(distdir)/$$file \
- || exit 1; \
- fi; \
- done
-check-am: all-am
- $(MAKE) $(AM_MAKEFLAGS) check-TESTS
-check: check-am
-all-am: Makefile
-installdirs:
-install: install-am
-install-exec: install-exec-am
-install-data: install-data-am
-uninstall: uninstall-am
-
-install-am: all-am
- @$(MAKE) $(AM_MAKEFLAGS) install-exec-am install-data-am
-
-installcheck: installcheck-am
-install-strip:
- $(MAKE) $(AM_MAKEFLAGS) INSTALL_PROGRAM="$(INSTALL_STRIP_PROGRAM)" \
- install_sh_PROGRAM="$(INSTALL_STRIP_PROGRAM)" INSTALL_STRIP_FLAG=-s \
- `test -z '$(STRIP)' || \
- echo "INSTALL_PROGRAM_ENV=STRIPPROG='$(STRIP)'"` install
-mostlyclean-generic:
-
-clean-generic:
-
-distclean-generic:
- -test -z "$(CONFIG_CLEAN_FILES)" || rm -f $(CONFIG_CLEAN_FILES)
-
-maintainer-clean-generic:
- @echo "This command is intended for maintainers to use"
- @echo "it deletes files that may require special tools to rebuild."
-clean: clean-am
-
-clean-am: clean-generic mostlyclean-am
-
-distclean: distclean-am
- -rm -f Makefile
-distclean-am: clean-am distclean-generic
-
-dvi: dvi-am
-
-dvi-am:
-
-html: html-am
-
-info: info-am
-
-info-am:
-
-install-data-am:
-
-install-dvi: install-dvi-am
-
-install-exec-am:
-
-install-html: install-html-am
-
-install-info: install-info-am
-
-install-man:
-
-install-pdf: install-pdf-am
-
-install-ps: install-ps-am
-
-installcheck-am:
-
-maintainer-clean: maintainer-clean-am
- -rm -f Makefile
-maintainer-clean-am: distclean-am maintainer-clean-generic
-
-mostlyclean: mostlyclean-am
-
-mostlyclean-am: mostlyclean-generic
-
-pdf: pdf-am
-
-pdf-am:
-
-ps: ps-am
-
-ps-am:
-
-uninstall-am:
-
-.MAKE: install-am install-strip
-
-.PHONY: all all-am check check-TESTS check-am clean clean-generic \
- distclean distclean-generic distdir dvi dvi-am html html-am \
- info info-am install install-am install-data install-data-am \
- install-dvi install-dvi-am install-exec install-exec-am \
- install-html install-html-am install-info install-info-am \
- install-man install-pdf install-pdf-am install-ps \
- install-ps-am install-strip installcheck installcheck-am \
- installdirs maintainer-clean maintainer-clean-generic \
- mostlyclean mostlyclean-generic pdf pdf-am ps ps-am uninstall \
- uninstall-am
-
-# Tell versions [3.59,3.63) of GNU make to not export all variables.
-# Otherwise a system limit (for SysV at least) may be exceeded.
-.NOEXPORT:
diff --git a/tests/tsort/basic-1 b/tests/tsort/basic-1
deleted file mode 100755
index 4fe24f3..0000000
--- a/tests/tsort/basic-1
+++ /dev/null
@@ -1,83 +0,0 @@
-#!/bin/sh
-# -*- perl -*-
-# Test "tsort".
-
-# Copyright (C) 1999, 2000, 2003, 2004, 2005, 2006 Free Software
-# Foundation, Inc.
-
-# This program is free software; you can redistribute it and/or modify
-# it under the terms of the GNU General Public License as published by
-# the Free Software Foundation; either version 2 of the License, or
-# (at your option) any later version.
-
-# This program is distributed in the hope that it will be useful,
-# but WITHOUT ANY WARRANTY; without even the implied warranty of
-# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
-# GNU General Public License for more details.
-
-# You should have received a copy of the GNU General Public License
-# along with this program; if not, write to the Free Software
-# Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA
-# 02110-1301, USA.
-
-: ${PERL=perl}
-: ${srcdir=.}
-
-$PERL -e 1 > /dev/null 2>&1 || {
- echo 1>&2 "$0: configure didn't find a usable version of Perl," \
- "so can't run this test"
- exit 77
-}
-
-exec $PERL -w -I$srcdir/.. -MCoreutils -- - <<\EOF
-#/
-require 5.003;
-use strict;
-
-(my $program_name = $0) =~ s|.*/||;
-
-# Turn off localisation of executable's ouput.
-@ENV{qw(LANGUAGE LANG LC_ALL)} = ('C') x 3;
-
-my @Tests =
- (
- ['cycle-1', {IN => {f => "t b\nt s\ns t\n"}}, {OUT => "s\nt\nb\n"},
- {EXIT => 1},
- {ERR => "tsort: f: input contains a loop:\ntsort: s\ntsort: t\n"} ],
- ['cycle-2', {IN => {f => "t x\nt s\ns t\n"}}, {OUT => "s\nt\nx\n"},
- {EXIT => 1},
- {ERR => "tsort: f: input contains a loop:\ntsort: s\ntsort: t\n"} ],
-
- ['posix-1', {IN => "a b c c d e\ng g\nf g e f\nh h\n"},
- {OUT => "a\nc\nd\nh\nb\ne\nf\ng\n"}],
- ['posix-2', {IN => "b a\nd c\nz h x h r h\n"},
- {OUT => "b\nd\nr\nx\nz\na\nc\nh\n"}],
-
- ['linear-1', {IN => "a b b c c d d e e f f g\n"},
- {OUT => "a\nb\nc\nd\ne\nf\ng\n"}],
-
- ['tree-1', {IN => "a b b c c d d e e f f g\nc x x y y z\n"},
- {OUT => "a\nb\nc\nx\nd\ny\ne\nz\nf\ng\n"}],
- ['tree-2', {IN => "a b b c c d d e e f f g\nc x x y y z\nf r r s s t\n"},
- {OUT => "a\nb\nc\nx\nd\ny\ne\nz\nf\nr\ng\ns\nt\n"}],
-
- # Before coreutils-5.0.1, given an odd number of input tokens,
- # tsort would accept that and treat the input as if an additional
- # copy of the final token were appended.
- ['odd', {IN => "a\n"},
- {EXIT => 1},
- {ERR => "tsort: odd.1: input contains an odd number of tokens\n"}],
-
- ['only-one', {IN => {f => ""}}, {IN => {g => ""}},
- {EXIT => 1},
- {ERR => "tsort: extra operand `g'\n"
- . "Try `tsort --help' for more information.\n"}],
- );
-
-my $save_temps = $ENV{DEBUG};
-my $verbose = $ENV{VERBOSE};
-
-my $prog = $ENV{PROG} || die "$0: \$PROG not specified in environment\n";
-my $fail = run_tests ($program_name, $prog, \@Tests, $save_temps, $verbose);
-exit $fail;
-EOF
diff --git a/tests/umask-check b/tests/umask-check
deleted file mode 100644
index 2e0aba0..0000000
--- a/tests/umask-check
+++ /dev/null
@@ -1,37 +0,0 @@
-# -*- sh -*-
-# Disable the current test if umask doesn't work as usual.
-
-# Copyright (C) 2005 Free Software Foundation, Inc.
-
-# This program is free software; you can redistribute it and/or modify
-# it under the terms of the GNU General Public License as published by
-# the Free Software Foundation; either version 2, or (at your option)
-# any later version.
-
-# This program is distributed in the hope that it will be useful,
-# but WITHOUT ANY WARRANTY; without even the implied warranty of
-# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
-# GNU General Public License for more details.
-
-# You should have received a copy of the GNU General Public License
-# along with this program; if not, write to the Free Software Foundation,
-# Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. */
-
-# This test should be run in the temporary directory that ends
-# up being removed via the trap commands.
-
-umask 022
-touch file1 file2
-chmod 644 file2
-perms=`ls -l file1 file2 | sed 's/ .*//' | uniq`
-rm -f file1 file2
-
-case $perms in
-*'
-'*)
- cat <<EOF >&2
-$0: Since it looks like you're running this test in a directory with
-something other than the usual umask semantics, we're skipping this test.
-EOF
- (exit 77); exit 77
-esac
diff --git a/tests/unexpand/Makefile.am b/tests/unexpand/Makefile.am
deleted file mode 100644
index 6c692bd..0000000
--- a/tests/unexpand/Makefile.am
+++ /dev/null
@@ -1,13 +0,0 @@
-## Process this file with automake to produce Makefile.in -*-Makefile-*-.
-
-EXTRA_DIST = $(TESTS)
-
-TESTS_ENVIRONMENT = \
- top_srcdir=$(top_srcdir) \
- srcdir=$(srcdir) \
- PERL="$(PERL)" \
- CU_TEST_NAME=`basename $(abs_srcdir)`,$$tst \
- PATH="$(VG_PATH_PREFIX)`pwd`/../../src$(PATH_SEPARATOR)$$PATH" \
- PROG=unexpand
-
-TESTS = basic-1
diff --git a/tests/unexpand/Makefile.in b/tests/unexpand/Makefile.in
deleted file mode 100644
index 48393aa..0000000
--- a/tests/unexpand/Makefile.in
+++ /dev/null
@@ -1,720 +0,0 @@
-# Makefile.in generated by automake 1.10 from Makefile.am.
-# @configure_input@
-
-# Copyright (C) 1994, 1995, 1996, 1997, 1998, 1999, 2000, 2001, 2002,
-# 2003, 2004, 2005, 2006 Free Software Foundation, Inc.
-# This Makefile.in is free software; the Free Software Foundation
-# gives unlimited permission to copy and/or distribute it,
-# with or without modifications, as long as this notice is preserved.
-
-# This program is distributed in the hope that it will be useful,
-# but WITHOUT ANY WARRANTY, to the extent permitted by law; without
-# even the implied warranty of MERCHANTABILITY or FITNESS FOR A
-# PARTICULAR PURPOSE.
-
-@SET_MAKE@
-VPATH = @srcdir@
-pkgdatadir = $(datadir)/@PACKAGE@
-pkglibdir = $(libdir)/@PACKAGE@
-pkgincludedir = $(includedir)/@PACKAGE@
-am__cd = CDPATH="$${ZSH_VERSION+.}$(PATH_SEPARATOR)" && cd
-install_sh_DATA = $(install_sh) -c -m 644
-install_sh_PROGRAM = $(install_sh) -c
-install_sh_SCRIPT = $(install_sh) -c
-INSTALL_HEADER = $(INSTALL_DATA)
-transform = $(program_transform_name)
-NORMAL_INSTALL = :
-PRE_INSTALL = :
-POST_INSTALL = :
-NORMAL_UNINSTALL = :
-PRE_UNINSTALL = :
-POST_UNINSTALL = :
-build_triplet = @build@
-host_triplet = @host@
-subdir = tests/unexpand
-DIST_COMMON = $(srcdir)/Makefile.am $(srcdir)/Makefile.in
-ACLOCAL_M4 = $(top_srcdir)/aclocal.m4
-am__aclocal_m4_deps = $(top_srcdir)/m4/absolute-header.m4 \
- $(top_srcdir)/m4/acl.m4 $(top_srcdir)/m4/alloca.m4 \
- $(top_srcdir)/m4/allocsa.m4 $(top_srcdir)/m4/argmatch.m4 \
- $(top_srcdir)/m4/arpa_inet_h.m4 $(top_srcdir)/m4/assert.m4 \
- $(top_srcdir)/m4/atexit.m4 $(top_srcdir)/m4/autobuild.m4 \
- $(top_srcdir)/m4/backupfile.m4 $(top_srcdir)/m4/base64.m4 \
- $(top_srcdir)/m4/bison.m4 $(top_srcdir)/m4/boottime.m4 \
- $(top_srcdir)/m4/c-strtod.m4 $(top_srcdir)/m4/calloc.m4 \
- $(top_srcdir)/m4/canon-host.m4 \
- $(top_srcdir)/m4/canonicalize.m4 \
- $(top_srcdir)/m4/chdir-long.m4 $(top_srcdir)/m4/check-decl.m4 \
- $(top_srcdir)/m4/chown.m4 $(top_srcdir)/m4/clock_time.m4 \
- $(top_srcdir)/m4/cloexec.m4 $(top_srcdir)/m4/close-stream.m4 \
- $(top_srcdir)/m4/closeout.m4 $(top_srcdir)/m4/codeset.m4 \
- $(top_srcdir)/m4/config-h.m4 $(top_srcdir)/m4/cycle-check.m4 \
- $(top_srcdir)/m4/d-ino.m4 $(top_srcdir)/m4/d-type.m4 \
- $(top_srcdir)/m4/dirfd.m4 $(top_srcdir)/m4/dirname.m4 \
- $(top_srcdir)/m4/dos.m4 $(top_srcdir)/m4/double-slash-root.m4 \
- $(top_srcdir)/m4/dup2.m4 $(top_srcdir)/m4/eealloc.m4 \
- $(top_srcdir)/m4/eoverflow.m4 $(top_srcdir)/m4/error.m4 \
- $(top_srcdir)/m4/euidaccess-stat.m4 \
- $(top_srcdir)/m4/euidaccess.m4 $(top_srcdir)/m4/exclude.m4 \
- $(top_srcdir)/m4/exitfail.m4 $(top_srcdir)/m4/extensions.m4 \
- $(top_srcdir)/m4/fchdir.m4 $(top_srcdir)/m4/fcntl-safer.m4 \
- $(top_srcdir)/m4/fcntl_h.m4 $(top_srcdir)/m4/fd-reopen.m4 \
- $(top_srcdir)/m4/file-type.m4 $(top_srcdir)/m4/fileblocks.m4 \
- $(top_srcdir)/m4/filemode.m4 $(top_srcdir)/m4/filenamecat.m4 \
- $(top_srcdir)/m4/flexmember.m4 $(top_srcdir)/m4/fnmatch.m4 \
- $(top_srcdir)/m4/fpending.m4 $(top_srcdir)/m4/fprintftime.m4 \
- $(top_srcdir)/m4/free.m4 $(top_srcdir)/m4/fstypename.m4 \
- $(top_srcdir)/m4/fsusage.m4 $(top_srcdir)/m4/ftruncate.m4 \
- $(top_srcdir)/m4/fts.m4 $(top_srcdir)/m4/getaddrinfo.m4 \
- $(top_srcdir)/m4/getcwd-abort-bug.m4 \
- $(top_srcdir)/m4/getcwd-path-max.m4 $(top_srcdir)/m4/getcwd.m4 \
- $(top_srcdir)/m4/getdate.m4 $(top_srcdir)/m4/getdelim.m4 \
- $(top_srcdir)/m4/getgroups.m4 $(top_srcdir)/m4/gethostname.m4 \
- $(top_srcdir)/m4/gethrxtime.m4 $(top_srcdir)/m4/getline.m4 \
- $(top_srcdir)/m4/getloadavg.m4 $(top_srcdir)/m4/getndelim2.m4 \
- $(top_srcdir)/m4/getopt.m4 $(top_srcdir)/m4/getpagesize.m4 \
- $(top_srcdir)/m4/getpass.m4 $(top_srcdir)/m4/gettext.m4 \
- $(top_srcdir)/m4/gettime.m4 $(top_srcdir)/m4/gettimeofday.m4 \
- $(top_srcdir)/m4/getugroups.m4 \
- $(top_srcdir)/m4/getusershell.m4 $(top_srcdir)/m4/glibc21.m4 \
- $(top_srcdir)/m4/gnulib-common.m4 \
- $(top_srcdir)/m4/gnulib-comp.m4 \
- $(top_srcdir)/m4/group-member.m4 \
- $(top_srcdir)/m4/hard-locale.m4 $(top_srcdir)/m4/hash.m4 \
- $(top_srcdir)/m4/host-os.m4 $(top_srcdir)/m4/human.m4 \
- $(top_srcdir)/m4/i-ring.m4 $(top_srcdir)/m4/iconv.m4 \
- $(top_srcdir)/m4/idcache.m4 $(top_srcdir)/m4/inet_ntop.m4 \
- $(top_srcdir)/m4/inline.m4 $(top_srcdir)/m4/intmax_t.m4 \
- $(top_srcdir)/m4/inttostr.m4 $(top_srcdir)/m4/inttypes-pri.m4 \
- $(top_srcdir)/m4/inttypes.m4 $(top_srcdir)/m4/inttypes_h.m4 \
- $(top_srcdir)/m4/isapipe.m4 $(top_srcdir)/m4/jm-macros.m4 \
- $(top_srcdir)/m4/jm-winsz1.m4 $(top_srcdir)/m4/jm-winsz2.m4 \
- $(top_srcdir)/m4/lchmod.m4 $(top_srcdir)/m4/lchown.m4 \
- $(top_srcdir)/m4/lib-check.m4 $(top_srcdir)/m4/lib-ignore.m4 \
- $(top_srcdir)/m4/lib-ld.m4 $(top_srcdir)/m4/lib-link.m4 \
- $(top_srcdir)/m4/lib-prefix.m4 $(top_srcdir)/m4/link-follow.m4 \
- $(top_srcdir)/m4/localcharset.m4 \
- $(top_srcdir)/m4/long-options.m4 \
- $(top_srcdir)/m4/longdouble.m4 $(top_srcdir)/m4/longlong.m4 \
- $(top_srcdir)/m4/ls-mntd-fs.m4 $(top_srcdir)/m4/lstat.m4 \
- $(top_srcdir)/m4/mbchar.m4 $(top_srcdir)/m4/mbiter.m4 \
- $(top_srcdir)/m4/mbrtowc.m4 $(top_srcdir)/m4/mbscasecmp.m4 \
- $(top_srcdir)/m4/mbstate_t.m4 $(top_srcdir)/m4/mbswidth.m4 \
- $(top_srcdir)/m4/md5.m4 $(top_srcdir)/m4/memcasecmp.m4 \
- $(top_srcdir)/m4/memchr.m4 $(top_srcdir)/m4/memcmp.m4 \
- $(top_srcdir)/m4/memcoll.m4 $(top_srcdir)/m4/memcpy.m4 \
- $(top_srcdir)/m4/memmove.m4 $(top_srcdir)/m4/mempcpy.m4 \
- $(top_srcdir)/m4/memrchr.m4 $(top_srcdir)/m4/memset.m4 \
- $(top_srcdir)/m4/memxfrm.m4 $(top_srcdir)/m4/mkancesdirs.m4 \
- $(top_srcdir)/m4/mkdir-p.m4 $(top_srcdir)/m4/mkdir-slash.m4 \
- $(top_srcdir)/m4/mkstemp.m4 $(top_srcdir)/m4/mktime.m4 \
- $(top_srcdir)/m4/modechange.m4 $(top_srcdir)/m4/mountlist.m4 \
- $(top_srcdir)/m4/mpsort.m4 $(top_srcdir)/m4/nanosleep.m4 \
- $(top_srcdir)/m4/netinet_in_h.m4 $(top_srcdir)/m4/nls.m4 \
- $(top_srcdir)/m4/openat.m4 $(top_srcdir)/m4/pathmax.m4 \
- $(top_srcdir)/m4/perl.m4 $(top_srcdir)/m4/physmem.m4 \
- $(top_srcdir)/m4/po.m4 $(top_srcdir)/m4/posixtm.m4 \
- $(top_srcdir)/m4/posixver.m4 $(top_srcdir)/m4/prereq.m4 \
- $(top_srcdir)/m4/progtest.m4 $(top_srcdir)/m4/putenv.m4 \
- $(top_srcdir)/m4/quote.m4 $(top_srcdir)/m4/quotearg.m4 \
- $(top_srcdir)/m4/randint.m4 $(top_srcdir)/m4/randperm.m4 \
- $(top_srcdir)/m4/randread.m4 $(top_srcdir)/m4/readlink.m4 \
- $(top_srcdir)/m4/readtokens.m4 $(top_srcdir)/m4/readutmp.m4 \
- $(top_srcdir)/m4/regex.m4 \
- $(top_srcdir)/m4/rename-dest-slash.m4 \
- $(top_srcdir)/m4/rename.m4 $(top_srcdir)/m4/rmdir-errno.m4 \
- $(top_srcdir)/m4/rmdir.m4 $(top_srcdir)/m4/root-dev-ino.m4 \
- $(top_srcdir)/m4/rpmatch.m4 $(top_srcdir)/m4/safe-read.m4 \
- $(top_srcdir)/m4/safe-write.m4 $(top_srcdir)/m4/same.m4 \
- $(top_srcdir)/m4/save-cwd.m4 $(top_srcdir)/m4/savedir.m4 \
- $(top_srcdir)/m4/savewd.m4 $(top_srcdir)/m4/setenv.m4 \
- $(top_srcdir)/m4/settime.m4 $(top_srcdir)/m4/sha1.m4 \
- $(top_srcdir)/m4/sha256.m4 $(top_srcdir)/m4/sha512.m4 \
- $(top_srcdir)/m4/sig2str.m4 $(top_srcdir)/m4/snprintf.m4 \
- $(top_srcdir)/m4/socklen.m4 $(top_srcdir)/m4/sockpfaf.m4 \
- $(top_srcdir)/m4/ssize_t.m4 $(top_srcdir)/m4/st_dm_mode.m4 \
- $(top_srcdir)/m4/stat-prog.m4 $(top_srcdir)/m4/stat-time.m4 \
- $(top_srcdir)/m4/stdarg.m4 $(top_srcdir)/m4/stdbool.m4 \
- $(top_srcdir)/m4/stdint.m4 $(top_srcdir)/m4/stdint_h.m4 \
- $(top_srcdir)/m4/stdio-safer.m4 $(top_srcdir)/m4/stdio_h.m4 \
- $(top_srcdir)/m4/stdlib-safer.m4 $(top_srcdir)/m4/stdlib_h.m4 \
- $(top_srcdir)/m4/stpcpy.m4 $(top_srcdir)/m4/strcspn.m4 \
- $(top_srcdir)/m4/strdup.m4 $(top_srcdir)/m4/strftime.m4 \
- $(top_srcdir)/m4/string_h.m4 $(top_srcdir)/m4/strndup.m4 \
- $(top_srcdir)/m4/strnlen.m4 $(top_srcdir)/m4/strnumcmp.m4 \
- $(top_srcdir)/m4/strpbrk.m4 $(top_srcdir)/m4/strtod.m4 \
- $(top_srcdir)/m4/strtoimax.m4 $(top_srcdir)/m4/strtol.m4 \
- $(top_srcdir)/m4/strtoll.m4 $(top_srcdir)/m4/strtoul.m4 \
- $(top_srcdir)/m4/strtoull.m4 $(top_srcdir)/m4/strtoumax.m4 \
- $(top_srcdir)/m4/strverscmp.m4 \
- $(top_srcdir)/m4/sys_socket_h.m4 \
- $(top_srcdir)/m4/sys_stat_h.m4 $(top_srcdir)/m4/sys_time_h.m4 \
- $(top_srcdir)/m4/tempname.m4 $(top_srcdir)/m4/time_h.m4 \
- $(top_srcdir)/m4/time_r.m4 $(top_srcdir)/m4/timespec.m4 \
- $(top_srcdir)/m4/tm_gmtoff.m4 $(top_srcdir)/m4/tzset.m4 \
- $(top_srcdir)/m4/unicodeio.m4 $(top_srcdir)/m4/unistd-safer.m4 \
- $(top_srcdir)/m4/unistd_h.m4 $(top_srcdir)/m4/unlink-busy.m4 \
- $(top_srcdir)/m4/unlinkdir.m4 $(top_srcdir)/m4/unlocked-io.m4 \
- $(top_srcdir)/m4/uptime.m4 $(top_srcdir)/m4/userspec.m4 \
- $(top_srcdir)/m4/utimbuf.m4 $(top_srcdir)/m4/utime.m4 \
- $(top_srcdir)/m4/utimecmp.m4 $(top_srcdir)/m4/utimens.m4 \
- $(top_srcdir)/m4/utimes-null.m4 $(top_srcdir)/m4/utimes.m4 \
- $(top_srcdir)/m4/vasnprintf.m4 $(top_srcdir)/m4/vasprintf.m4 \
- $(top_srcdir)/m4/wchar.m4 $(top_srcdir)/m4/wchar_t.m4 \
- $(top_srcdir)/m4/wctype.m4 $(top_srcdir)/m4/wcwidth.m4 \
- $(top_srcdir)/m4/wint_t.m4 $(top_srcdir)/m4/xalloc.m4 \
- $(top_srcdir)/m4/xfts.m4 $(top_srcdir)/m4/xgetcwd.m4 \
- $(top_srcdir)/m4/xnanosleep.m4 $(top_srcdir)/m4/xstrndup.m4 \
- $(top_srcdir)/m4/xstrtod.m4 $(top_srcdir)/m4/xstrtol.m4 \
- $(top_srcdir)/m4/yesno.m4 $(top_srcdir)/configure.ac
-am__configure_deps = $(am__aclocal_m4_deps) $(CONFIGURE_DEPENDENCIES) \
- $(ACLOCAL_M4)
-mkinstalldirs = $(install_sh) -d
-CONFIG_HEADER = $(top_builddir)/lib/config.h
-CONFIG_CLEAN_FILES =
-SOURCES =
-DIST_SOURCES =
-DISTFILES = $(DIST_COMMON) $(DIST_SOURCES) $(TEXINFOS) $(EXTRA_DIST)
-ABSOLUTE_DIRENT_H = @ABSOLUTE_DIRENT_H@
-ABSOLUTE_FCNTL_H = @ABSOLUTE_FCNTL_H@
-ABSOLUTE_INTTYPES_H = @ABSOLUTE_INTTYPES_H@
-ABSOLUTE_NETINET_IN_H = @ABSOLUTE_NETINET_IN_H@
-ABSOLUTE_STDINT_H = @ABSOLUTE_STDINT_H@
-ABSOLUTE_STDIO_H = @ABSOLUTE_STDIO_H@
-ABSOLUTE_STDLIB_H = @ABSOLUTE_STDLIB_H@
-ABSOLUTE_STRING_H = @ABSOLUTE_STRING_H@
-ABSOLUTE_SYS_SOCKET_H = @ABSOLUTE_SYS_SOCKET_H@
-ABSOLUTE_SYS_STAT_H = @ABSOLUTE_SYS_STAT_H@
-ABSOLUTE_SYS_TIME_H = @ABSOLUTE_SYS_TIME_H@
-ABSOLUTE_TIME_H = @ABSOLUTE_TIME_H@
-ABSOLUTE_UNISTD_H = @ABSOLUTE_UNISTD_H@
-ABSOLUTE_WCHAR_H = @ABSOLUTE_WCHAR_H@
-ABSOLUTE_WCTYPE_H = @ABSOLUTE_WCTYPE_H@
-ACLOCAL = @ACLOCAL@
-ALLOCA = @ALLOCA@
-ALLOCA_H = @ALLOCA_H@
-AMTAR = @AMTAR@
-ARPA_INET_H = @ARPA_INET_H@
-AUTOCONF = @AUTOCONF@
-AUTOHEADER = @AUTOHEADER@
-AUTOMAKE = @AUTOMAKE@
-AWK = @AWK@
-BITSIZEOF_PTRDIFF_T = @BITSIZEOF_PTRDIFF_T@
-BITSIZEOF_SIG_ATOMIC_T = @BITSIZEOF_SIG_ATOMIC_T@
-BITSIZEOF_SIZE_T = @BITSIZEOF_SIZE_T@
-BITSIZEOF_WCHAR_T = @BITSIZEOF_WCHAR_T@
-BITSIZEOF_WINT_T = @BITSIZEOF_WINT_T@
-CC = @CC@
-CCDEPMODE = @CCDEPMODE@
-CFLAGS = @CFLAGS@
-CPP = @CPP@
-CPPFLAGS = @CPPFLAGS@
-CYGPATH_W = @CYGPATH_W@
-DEFAULT_POSIX2_VERSION = @DEFAULT_POSIX2_VERSION@
-DEFS = @DEFS@
-DEPDIR = @DEPDIR@
-DF_PROG = @DF_PROG@
-DIRENT_H = @DIRENT_H@
-ECHO_C = @ECHO_C@
-ECHO_N = @ECHO_N@
-ECHO_T = @ECHO_T@
-EGREP = @EGREP@
-EOVERFLOW = @EOVERFLOW@
-EXEEXT = @EXEEXT@
-FCNTL_H = @FCNTL_H@
-FNMATCH_H = @FNMATCH_H@
-GETLOADAVG_LIBS = @GETLOADAVG_LIBS@
-GETOPT_H = @GETOPT_H@
-GLIBC21 = @GLIBC21@
-GMSGFMT = @GMSGFMT@
-GMSGFMT_015 = @GMSGFMT_015@
-GNULIB_CHOWN = @GNULIB_CHOWN@
-GNULIB_DUP2 = @GNULIB_DUP2@
-GNULIB_FCHDIR = @GNULIB_FCHDIR@
-GNULIB_FPRINTF_POSIX = @GNULIB_FPRINTF_POSIX@
-GNULIB_FTRUNCATE = @GNULIB_FTRUNCATE@
-GNULIB_GETCWD = @GNULIB_GETCWD@
-GNULIB_GETLOGIN_R = @GNULIB_GETLOGIN_R@
-GNULIB_GETSUBOPT = @GNULIB_GETSUBOPT@
-GNULIB_IMAXABS = @GNULIB_IMAXABS@
-GNULIB_IMAXDIV = @GNULIB_IMAXDIV@
-GNULIB_MBSCASECMP = @GNULIB_MBSCASECMP@
-GNULIB_MBSCASESTR = @GNULIB_MBSCASESTR@
-GNULIB_MBSCHR = @GNULIB_MBSCHR@
-GNULIB_MBSCSPN = @GNULIB_MBSCSPN@
-GNULIB_MBSLEN = @GNULIB_MBSLEN@
-GNULIB_MBSNCASECMP = @GNULIB_MBSNCASECMP@
-GNULIB_MBSPBRK = @GNULIB_MBSPBRK@
-GNULIB_MBSPCASECMP = @GNULIB_MBSPCASECMP@
-GNULIB_MBSRCHR = @GNULIB_MBSRCHR@
-GNULIB_MBSSEP = @GNULIB_MBSSEP@
-GNULIB_MBSSPN = @GNULIB_MBSSPN@
-GNULIB_MBSSTR = @GNULIB_MBSSTR@
-GNULIB_MBSTOK_R = @GNULIB_MBSTOK_R@
-GNULIB_MEMMEM = @GNULIB_MEMMEM@
-GNULIB_MEMPCPY = @GNULIB_MEMPCPY@
-GNULIB_MEMRCHR = @GNULIB_MEMRCHR@
-GNULIB_MKDTEMP = @GNULIB_MKDTEMP@
-GNULIB_MKSTEMP = @GNULIB_MKSTEMP@
-GNULIB_PRINTF_POSIX = @GNULIB_PRINTF_POSIX@
-GNULIB_READLINK = @GNULIB_READLINK@
-GNULIB_SNPRINTF = @GNULIB_SNPRINTF@
-GNULIB_SPRINTF_POSIX = @GNULIB_SPRINTF_POSIX@
-GNULIB_STPCPY = @GNULIB_STPCPY@
-GNULIB_STPNCPY = @GNULIB_STPNCPY@
-GNULIB_STRCASESTR = @GNULIB_STRCASESTR@
-GNULIB_STRCHRNUL = @GNULIB_STRCHRNUL@
-GNULIB_STRDUP = @GNULIB_STRDUP@
-GNULIB_STRNDUP = @GNULIB_STRNDUP@
-GNULIB_STRNLEN = @GNULIB_STRNLEN@
-GNULIB_STRPBRK = @GNULIB_STRPBRK@
-GNULIB_STRSEP = @GNULIB_STRSEP@
-GNULIB_STRTOIMAX = @GNULIB_STRTOIMAX@
-GNULIB_STRTOK_R = @GNULIB_STRTOK_R@
-GNULIB_STRTOUMAX = @GNULIB_STRTOUMAX@
-GNULIB_VFPRINTF_POSIX = @GNULIB_VFPRINTF_POSIX@
-GNULIB_VPRINTF_POSIX = @GNULIB_VPRINTF_POSIX@
-GNULIB_VSNPRINTF = @GNULIB_VSNPRINTF@
-GNULIB_VSPRINTF_POSIX = @GNULIB_VSPRINTF_POSIX@
-GNU_PACKAGE = @GNU_PACKAGE@
-GREP = @GREP@
-HAVE_DECL_GETLOGIN_R = @HAVE_DECL_GETLOGIN_R@
-HAVE_DECL_IMAXABS = @HAVE_DECL_IMAXABS@
-HAVE_DECL_IMAXDIV = @HAVE_DECL_IMAXDIV@
-HAVE_DECL_MEMMEM = @HAVE_DECL_MEMMEM@
-HAVE_DECL_MEMRCHR = @HAVE_DECL_MEMRCHR@
-HAVE_DECL_SNPRINTF = @HAVE_DECL_SNPRINTF@
-HAVE_DECL_STRDUP = @HAVE_DECL_STRDUP@
-HAVE_DECL_STRNCASECMP = @HAVE_DECL_STRNCASECMP@
-HAVE_DECL_STRNDUP = @HAVE_DECL_STRNDUP@
-HAVE_DECL_STRNLEN = @HAVE_DECL_STRNLEN@
-HAVE_DECL_STRTOIMAX = @HAVE_DECL_STRTOIMAX@
-HAVE_DECL_STRTOK_R = @HAVE_DECL_STRTOK_R@
-HAVE_DECL_STRTOUMAX = @HAVE_DECL_STRTOUMAX@
-HAVE_DECL_VSNPRINTF = @HAVE_DECL_VSNPRINTF@
-HAVE_DUP2 = @HAVE_DUP2@
-HAVE_FTRUNCATE = @HAVE_FTRUNCATE@
-HAVE_GETSUBOPT = @HAVE_GETSUBOPT@
-HAVE_INTTYPES_H = @HAVE_INTTYPES_H@
-HAVE_LONG_LONG_INT = @HAVE_LONG_LONG_INT@
-HAVE_MEMPCPY = @HAVE_MEMPCPY@
-HAVE_MKDTEMP = @HAVE_MKDTEMP@
-HAVE_NETINET_IN_H = @HAVE_NETINET_IN_H@
-HAVE_READLINK = @HAVE_READLINK@
-HAVE_SIGNED_SIG_ATOMIC_T = @HAVE_SIGNED_SIG_ATOMIC_T@
-HAVE_SIGNED_WCHAR_T = @HAVE_SIGNED_WCHAR_T@
-HAVE_SIGNED_WINT_T = @HAVE_SIGNED_WINT_T@
-HAVE_STDINT_H = @HAVE_STDINT_H@
-HAVE_STPCPY = @HAVE_STPCPY@
-HAVE_STPNCPY = @HAVE_STPNCPY@
-HAVE_STRCASECMP = @HAVE_STRCASECMP@
-HAVE_STRCASESTR = @HAVE_STRCASESTR@
-HAVE_STRCHRNUL = @HAVE_STRCHRNUL@
-HAVE_STRNDUP = @HAVE_STRNDUP@
-HAVE_STRPBRK = @HAVE_STRPBRK@
-HAVE_STRSEP = @HAVE_STRSEP@
-HAVE_STRUCT_TIMEVAL = @HAVE_STRUCT_TIMEVAL@
-HAVE_SYS_BITYPES_H = @HAVE_SYS_BITYPES_H@
-HAVE_SYS_INTTYPES_H = @HAVE_SYS_INTTYPES_H@
-HAVE_SYS_SOCKET_H = @HAVE_SYS_SOCKET_H@
-HAVE_SYS_TIME_H = @HAVE_SYS_TIME_H@
-HAVE_SYS_TYPES_H = @HAVE_SYS_TYPES_H@
-HAVE_UNISTD_H = @HAVE_UNISTD_H@
-HAVE_UNSIGNED_LONG_LONG_INT = @HAVE_UNSIGNED_LONG_LONG_INT@
-HAVE_WCTYPE_H = @HAVE_WCTYPE_H@
-HAVE_WINSOCK2_H = @HAVE_WINSOCK2_H@
-HAVE_WINT_T = @HAVE_WINT_T@
-HAVE_WS2TCPIP_H = @HAVE_WS2TCPIP_H@
-HAVE__BOOL = @HAVE__BOOL@
-HELP2MAN = @HELP2MAN@
-INSTALL = @INSTALL@
-INSTALL_DATA = @INSTALL_DATA@
-INSTALL_PROGRAM = @INSTALL_PROGRAM@
-INSTALL_SCRIPT = @INSTALL_SCRIPT@
-INSTALL_STRIP_PROGRAM = @INSTALL_STRIP_PROGRAM@
-INTLLIBS = @INTLLIBS@
-INTL_MACOSX_LIBS = @INTL_MACOSX_LIBS@
-INTTYPES_H = @INTTYPES_H@
-KMEM_GROUP = @KMEM_GROUP@
-LDFLAGS = @LDFLAGS@
-LIBCOREUTILS_LIBDEPS = @LIBCOREUTILS_LIBDEPS@
-LIBCOREUTILS_LTLIBDEPS = @LIBCOREUTILS_LTLIBDEPS@
-LIBICONV = @LIBICONV@
-LIBINTL = @LIBINTL@
-LIBOBJS = @LIBOBJS@
-LIBS = @LIBS@
-LIB_ACL = @LIB_ACL@
-LIB_ACL_TRIVIAL = @LIB_ACL_TRIVIAL@
-LIB_CLOCK_GETTIME = @LIB_CLOCK_GETTIME@
-LIB_CRYPT = @LIB_CRYPT@
-LIB_EACCESS = @LIB_EACCESS@
-LIB_FDATASYNC = @LIB_FDATASYNC@
-LIB_GETHRXTIME = @LIB_GETHRXTIME@
-LIB_NANOSLEEP = @LIB_NANOSLEEP@
-LN_S = @LN_S@
-LTLIBICONV = @LTLIBICONV@
-LTLIBINTL = @LTLIBINTL@
-LTLIBOBJS = @LTLIBOBJS@
-MAKEINFO = @MAKEINFO@
-MAN = @MAN@
-MKDIR_P = @MKDIR_P@
-MSGFMT = @MSGFMT@
-MSGFMT_015 = @MSGFMT_015@
-MSGMERGE = @MSGMERGE@
-NEED_SETGID = @NEED_SETGID@
-NETINET_IN_H = @NETINET_IN_H@
-OBJEXT = @OBJEXT@
-OPTIONAL_BIN_PROGS = @OPTIONAL_BIN_PROGS@
-PACKAGE = @PACKAGE@
-PACKAGE_BUGREPORT = @PACKAGE_BUGREPORT@
-PACKAGE_NAME = @PACKAGE_NAME@
-PACKAGE_STRING = @PACKAGE_STRING@
-PACKAGE_TARNAME = @PACKAGE_TARNAME@
-PACKAGE_VERSION = @PACKAGE_VERSION@
-PATH_SEPARATOR = @PATH_SEPARATOR@
-PERL = @PERL@
-POSUB = @POSUB@
-POW_LIB = @POW_LIB@
-PRIPTR_PREFIX = @PRIPTR_PREFIX@
-PRI_MACROS_BROKEN = @PRI_MACROS_BROKEN@
-PTRDIFF_T_SUFFIX = @PTRDIFF_T_SUFFIX@
-RANLIB = @RANLIB@
-REPLACE_CHOWN = @REPLACE_CHOWN@
-REPLACE_FCHDIR = @REPLACE_FCHDIR@
-REPLACE_FPRINTF = @REPLACE_FPRINTF@
-REPLACE_GETCWD = @REPLACE_GETCWD@
-REPLACE_GETTIMEOFDAY = @REPLACE_GETTIMEOFDAY@
-REPLACE_LOCALTIME_R = @REPLACE_LOCALTIME_R@
-REPLACE_MKSTEMP = @REPLACE_MKSTEMP@
-REPLACE_NANOSLEEP = @REPLACE_NANOSLEEP@
-REPLACE_PRINTF = @REPLACE_PRINTF@
-REPLACE_SNPRINTF = @REPLACE_SNPRINTF@
-REPLACE_SPRINTF = @REPLACE_SPRINTF@
-REPLACE_STRPTIME = @REPLACE_STRPTIME@
-REPLACE_TIMEGM = @REPLACE_TIMEGM@
-REPLACE_VFPRINTF = @REPLACE_VFPRINTF@
-REPLACE_VPRINTF = @REPLACE_VPRINTF@
-REPLACE_VSNPRINTF = @REPLACE_VSNPRINTF@
-REPLACE_VSPRINTF = @REPLACE_VSPRINTF@
-SEQ_LIBM = @SEQ_LIBM@
-SET_MAKE = @SET_MAKE@
-SHELL = @SHELL@
-SIG_ATOMIC_T_SUFFIX = @SIG_ATOMIC_T_SUFFIX@
-SIZE_T_SUFFIX = @SIZE_T_SUFFIX@
-STDBOOL_H = @STDBOOL_H@
-STDINT_H = @STDINT_H@
-STRIP = @STRIP@
-SYS_SOCKET_H = @SYS_SOCKET_H@
-SYS_STAT_H = @SYS_STAT_H@
-SYS_TIME_H = @SYS_TIME_H@
-SYS_TIME_H_DEFINES_STRUCT_TIMESPEC = @SYS_TIME_H_DEFINES_STRUCT_TIMESPEC@
-TIME_H_DEFINES_STRUCT_TIMESPEC = @TIME_H_DEFINES_STRUCT_TIMESPEC@
-U = @U@
-USE_NLS = @USE_NLS@
-VERSION = @VERSION@
-WCHAR_H = @WCHAR_H@
-WCHAR_T_SUFFIX = @WCHAR_T_SUFFIX@
-WCTYPE_H = @WCTYPE_H@
-WINT_T_SUFFIX = @WINT_T_SUFFIX@
-XGETTEXT = @XGETTEXT@
-XGETTEXT_015 = @XGETTEXT_015@
-YACC = @YACC@
-YFLAGS = @YFLAGS@
-abs_builddir = @abs_builddir@
-abs_srcdir = @abs_srcdir@
-abs_top_builddir = @abs_top_builddir@
-abs_top_srcdir = @abs_top_srcdir@
-ac_ct_CC = @ac_ct_CC@
-am__include = @am__include@
-am__leading_dot = @am__leading_dot@
-am__quote = @am__quote@
-am__tar = @am__tar@
-am__untar = @am__untar@
-bindir = @bindir@
-build = @build@
-build_alias = @build_alias@
-build_cpu = @build_cpu@
-build_os = @build_os@
-build_vendor = @build_vendor@
-builddir = @builddir@
-datadir = @datadir@
-datarootdir = @datarootdir@
-docdir = @docdir@
-dvidir = @dvidir@
-exec_prefix = @exec_prefix@
-gl_LIBOBJS = @gl_LIBOBJS@
-gl_LTLIBOBJS = @gl_LTLIBOBJS@
-host = @host@
-host_alias = @host_alias@
-host_cpu = @host_cpu@
-host_os = @host_os@
-host_vendor = @host_vendor@
-htmldir = @htmldir@
-includedir = @includedir@
-infodir = @infodir@
-install_sh = @install_sh@
-libdir = @libdir@
-libexecdir = @libexecdir@
-localedir = @localedir@
-localstatedir = @localstatedir@
-mandir = @mandir@
-mkdir_p = @mkdir_p@
-oldincludedir = @oldincludedir@
-pdfdir = @pdfdir@
-prefix = @prefix@
-program_transform_name = @program_transform_name@
-psdir = @psdir@
-sbindir = @sbindir@
-sharedstatedir = @sharedstatedir@
-srcdir = @srcdir@
-sysconfdir = @sysconfdir@
-target_alias = @target_alias@
-top_builddir = @top_builddir@
-top_srcdir = @top_srcdir@
-EXTRA_DIST = $(TESTS)
-TESTS_ENVIRONMENT = \
- top_srcdir=$(top_srcdir) \
- srcdir=$(srcdir) \
- PERL="$(PERL)" \
- CU_TEST_NAME=`basename $(abs_srcdir)`,$$tst \
- PATH="$(VG_PATH_PREFIX)`pwd`/../../src$(PATH_SEPARATOR)$$PATH" \
- PROG=unexpand
-
-TESTS = basic-1
-all: all-am
-
-.SUFFIXES:
-$(srcdir)/Makefile.in: $(srcdir)/Makefile.am $(am__configure_deps)
- @for dep in $?; do \
- case '$(am__configure_deps)' in \
- *$$dep*) \
- cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh \
- && exit 0; \
- exit 1;; \
- esac; \
- done; \
- echo ' cd $(top_srcdir) && $(AUTOMAKE) --gnu tests/unexpand/Makefile'; \
- cd $(top_srcdir) && \
- $(AUTOMAKE) --gnu tests/unexpand/Makefile
-.PRECIOUS: Makefile
-Makefile: $(srcdir)/Makefile.in $(top_builddir)/config.status
- @case '$?' in \
- *config.status*) \
- cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh;; \
- *) \
- echo ' cd $(top_builddir) && $(SHELL) ./config.status $(subdir)/$@ $(am__depfiles_maybe)'; \
- cd $(top_builddir) && $(SHELL) ./config.status $(subdir)/$@ $(am__depfiles_maybe);; \
- esac;
-
-$(top_builddir)/config.status: $(top_srcdir)/configure $(CONFIG_STATUS_DEPENDENCIES)
- cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh
-
-$(top_srcdir)/configure: $(am__configure_deps)
- cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh
-$(ACLOCAL_M4): $(am__aclocal_m4_deps)
- cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh
-tags: TAGS
-TAGS:
-
-ctags: CTAGS
-CTAGS:
-
-
-check-TESTS: $(TESTS)
- @failed=0; all=0; xfail=0; xpass=0; skip=0; ws='[ ]'; \
- srcdir=$(srcdir); export srcdir; \
- list=' $(TESTS) '; \
- if test -n "$$list"; then \
- for tst in $$list; do \
- if test -f ./$$tst; then dir=./; \
- elif test -f $$tst; then dir=; \
- else dir="$(srcdir)/"; fi; \
- if $(TESTS_ENVIRONMENT) $${dir}$$tst; then \
- all=`expr $$all + 1`; \
- case " $(XFAIL_TESTS) " in \
- *$$ws$$tst$$ws*) \
- xpass=`expr $$xpass + 1`; \
- failed=`expr $$failed + 1`; \
- echo "XPASS: $$tst"; \
- ;; \
- *) \
- echo "PASS: $$tst"; \
- ;; \
- esac; \
- elif test $$? -ne 77; then \
- all=`expr $$all + 1`; \
- case " $(XFAIL_TESTS) " in \
- *$$ws$$tst$$ws*) \
- xfail=`expr $$xfail + 1`; \
- echo "XFAIL: $$tst"; \
- ;; \
- *) \
- failed=`expr $$failed + 1`; \
- echo "FAIL: $$tst"; \
- ;; \
- esac; \
- else \
- skip=`expr $$skip + 1`; \
- echo "SKIP: $$tst"; \
- fi; \
- done; \
- if test "$$failed" -eq 0; then \
- if test "$$xfail" -eq 0; then \
- banner="All $$all tests passed"; \
- else \
- banner="All $$all tests behaved as expected ($$xfail expected failures)"; \
- fi; \
- else \
- if test "$$xpass" -eq 0; then \
- banner="$$failed of $$all tests failed"; \
- else \
- banner="$$failed of $$all tests did not behave as expected ($$xpass unexpected passes)"; \
- fi; \
- fi; \
- dashes="$$banner"; \
- skipped=""; \
- if test "$$skip" -ne 0; then \
- skipped="($$skip tests were not run)"; \
- test `echo "$$skipped" | wc -c` -le `echo "$$banner" | wc -c` || \
- dashes="$$skipped"; \
- fi; \
- report=""; \
- if test "$$failed" -ne 0 && test -n "$(PACKAGE_BUGREPORT)"; then \
- report="Please report to $(PACKAGE_BUGREPORT)"; \
- test `echo "$$report" | wc -c` -le `echo "$$banner" | wc -c` || \
- dashes="$$report"; \
- fi; \
- dashes=`echo "$$dashes" | sed s/./=/g`; \
- echo "$$dashes"; \
- echo "$$banner"; \
- test -z "$$skipped" || echo "$$skipped"; \
- test -z "$$report" || echo "$$report"; \
- echo "$$dashes"; \
- test "$$failed" -eq 0; \
- else :; fi
-
-distdir: $(DISTFILES)
- @srcdirstrip=`echo "$(srcdir)" | sed 's/[].[^$$\\*]/\\\\&/g'`; \
- topsrcdirstrip=`echo "$(top_srcdir)" | sed 's/[].[^$$\\*]/\\\\&/g'`; \
- list='$(DISTFILES)'; \
- dist_files=`for file in $$list; do echo $$file; done | \
- sed -e "s|^$$srcdirstrip/||;t" \
- -e "s|^$$topsrcdirstrip/|$(top_builddir)/|;t"`; \
- case $$dist_files in \
- */*) $(MKDIR_P) `echo "$$dist_files" | \
- sed '/\//!d;s|^|$(distdir)/|;s,/[^/]*$$,,' | \
- sort -u` ;; \
- esac; \
- for file in $$dist_files; do \
- if test -f $$file || test -d $$file; then d=.; else d=$(srcdir); fi; \
- if test -d $$d/$$file; then \
- dir=`echo "/$$file" | sed -e 's,/[^/]*$$,,'`; \
- if test -d $(srcdir)/$$file && test $$d != $(srcdir); then \
- cp -pR $(srcdir)/$$file $(distdir)$$dir || exit 1; \
- fi; \
- cp -pR $$d/$$file $(distdir)$$dir || exit 1; \
- else \
- test -f $(distdir)/$$file \
- || cp -p $$d/$$file $(distdir)/$$file \
- || exit 1; \
- fi; \
- done
-check-am: all-am
- $(MAKE) $(AM_MAKEFLAGS) check-TESTS
-check: check-am
-all-am: Makefile
-installdirs:
-install: install-am
-install-exec: install-exec-am
-install-data: install-data-am
-uninstall: uninstall-am
-
-install-am: all-am
- @$(MAKE) $(AM_MAKEFLAGS) install-exec-am install-data-am
-
-installcheck: installcheck-am
-install-strip:
- $(MAKE) $(AM_MAKEFLAGS) INSTALL_PROGRAM="$(INSTALL_STRIP_PROGRAM)" \
- install_sh_PROGRAM="$(INSTALL_STRIP_PROGRAM)" INSTALL_STRIP_FLAG=-s \
- `test -z '$(STRIP)' || \
- echo "INSTALL_PROGRAM_ENV=STRIPPROG='$(STRIP)'"` install
-mostlyclean-generic:
-
-clean-generic:
-
-distclean-generic:
- -test -z "$(CONFIG_CLEAN_FILES)" || rm -f $(CONFIG_CLEAN_FILES)
-
-maintainer-clean-generic:
- @echo "This command is intended for maintainers to use"
- @echo "it deletes files that may require special tools to rebuild."
-clean: clean-am
-
-clean-am: clean-generic mostlyclean-am
-
-distclean: distclean-am
- -rm -f Makefile
-distclean-am: clean-am distclean-generic
-
-dvi: dvi-am
-
-dvi-am:
-
-html: html-am
-
-info: info-am
-
-info-am:
-
-install-data-am:
-
-install-dvi: install-dvi-am
-
-install-exec-am:
-
-install-html: install-html-am
-
-install-info: install-info-am
-
-install-man:
-
-install-pdf: install-pdf-am
-
-install-ps: install-ps-am
-
-installcheck-am:
-
-maintainer-clean: maintainer-clean-am
- -rm -f Makefile
-maintainer-clean-am: distclean-am maintainer-clean-generic
-
-mostlyclean: mostlyclean-am
-
-mostlyclean-am: mostlyclean-generic
-
-pdf: pdf-am
-
-pdf-am:
-
-ps: ps-am
-
-ps-am:
-
-uninstall-am:
-
-.MAKE: install-am install-strip
-
-.PHONY: all all-am check check-TESTS check-am clean clean-generic \
- distclean distclean-generic distdir dvi dvi-am html html-am \
- info info-am install install-am install-data install-data-am \
- install-dvi install-dvi-am install-exec install-exec-am \
- install-html install-html-am install-info install-info-am \
- install-man install-pdf install-pdf-am install-ps \
- install-ps-am install-strip installcheck installcheck-am \
- installdirs maintainer-clean maintainer-clean-generic \
- mostlyclean mostlyclean-generic pdf pdf-am ps ps-am uninstall \
- uninstall-am
-
-# Tell versions [3.59,3.63) of GNU make to not export all variables.
-# Otherwise a system limit (for SysV at least) may be exceeded.
-.NOEXPORT:
diff --git a/tests/unexpand/basic-1 b/tests/unexpand/basic-1
deleted file mode 100755
index 3824d7c..0000000
--- a/tests/unexpand/basic-1
+++ /dev/null
@@ -1,102 +0,0 @@
-#!/bin/sh
-# Test "unexpand".
-
-# Copyright (C) 2000, 2003, 2004, 2005, 2006 Free Software Foundation,
-# Inc.
-
-# This program is free software; you can redistribute it and/or modify
-# it under the terms of the GNU General Public License as published by
-# the Free Software Foundation; either version 2 of the License, or
-# (at your option) any later version.
-
-# This program is distributed in the hope that it will be useful,
-# but WITHOUT ANY WARRANTY; without even the implied warranty of
-# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
-# GNU General Public License for more details.
-
-# You should have received a copy of the GNU General Public License
-# along with this program; if not, write to the Free Software
-# Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA
-# 02110-1301, USA.
-
-: ${PERL=perl}
-: ${srcdir=.}
-
-$PERL -e 1 > /dev/null 2>&1 || {
- echo 1>&2 "$0: configure didn't find a usable version of Perl," \
- "so can't run this test"
- exit 77
-}
-
-exec $PERL -w -I$srcdir/.. -MCoreutils -- - <<\EOF
-require 5.003;
-use strict;
-
-(my $program_name = $0) =~ s|.*/||;
-
-# Turn off localisation of executable's ouput.
-@ENV{qw(LANGUAGE LANG LC_ALL)} = ('C') x 3;
-
-my $prog = $ENV{PROG} || die "$0: \$PROG not specified in environment\n";
-
-my @Tests =
- (
- ['a1', {IN=> ' 'x 1 ."y\n"}, {OUT=> ' 'x 1 ."y\n"}],
- ['a2', {IN=> ' 'x 2 ."y\n"}, {OUT=> ' 'x 2 ."y\n"}],
- ['a3', {IN=> ' 'x 3 ."y\n"}, {OUT=> ' 'x 3 ."y\n"}],
- ['a4', {IN=> ' 'x 4 ."y\n"}, {OUT=> ' 'x 4 ."y\n"}],
- ['a5', {IN=> ' 'x 5 ."y\n"}, {OUT=> ' 'x 5 ."y\n"}],
- ['a6', {IN=> ' 'x 6 ."y\n"}, {OUT=> ' 'x 6 ."y\n"}],
- ['a7', {IN=> ' 'x 7 ."y\n"}, {OUT=> ' 'x 7 ."y\n"}],
- ['a8', {IN=> ' 'x 8 ."y\n"}, {OUT=> "\ty\n"}],
-
- ['aa-1', '-a', {IN=> 'w'.' 'x 1 ."y\n"}, {OUT=> 'w'.' 'x 1 ."y\n"}],
- ['aa-2', '-a', {IN=> 'w'.' 'x 2 ."y\n"}, {OUT=> 'w'.' 'x 2 ."y\n"}],
- ['aa-3', '-a', {IN=> 'w'.' 'x 3 ."y\n"}, {OUT=> 'w'.' 'x 3 ."y\n"}],
- ['aa-4', '-a', {IN=> 'w'.' 'x 4 ."y\n"}, {OUT=> 'w'.' 'x 4 ."y\n"}],
- ['aa-5', '-a', {IN=> 'w'.' 'x 5 ."y\n"}, {OUT=> 'w'.' 'x 5 ."y\n"}],
- ['aa-6', '-a', {IN=> 'w'.' 'x 6 ."y\n"}, {OUT=> 'w'.' 'x 6 ."y\n"}],
- ['aa-7', '-a', {IN=> 'w'.' 'x 7 ."y\n"}, {OUT=> "w\ty\n"}],
- ['aa-8', '-a', {IN=> 'w'.' 'x 8 ."y\n"}, {OUT=> "w\t y\n"}],
-
- ['b-1', '-t', '2,4', {IN=> " ."}, {OUT=>"\t\t ."}],
- # These would infloop prior to textutils-2.0d.
-
- ['infloop-1', '-t', '1,2', {IN=> " \t\t .\n"}, {OUT=>"\t\t\t .\n"}],
- ['infloop-2', '-t', '4,5', {IN=> ' 'x4 . "\t\t \n"}, {OUT=>"\t\t\t \n"}],
- ['infloop-3', '-t', '2,3', {IN=> "x \t\t \n"}, {OUT=>"x \t\t \n"}],
- ['infloop-4', '-t', '1,2', {IN=> " \t\t \n"}, {OUT=>"\t\t\t \n"}],
- ['c-1', '-t', '1,2', {IN=> "x\t\t .\n"}, {OUT=>"x\t\t .\n"}],
-
- # -t implies -a
- # Feature addition (--first-only) prompted by a report from Jie Xu.
- ['tabs-1', qw(-t 3), {IN=> " a b\n"}, {OUT=>"\ta\tb\n"}],
- ['tabs-2', qw(-t 3 --first-only), {IN=> " a b\n"}, {OUT=>"\ta b\n"}],
-
- # blanks
- ['blanks-1', qw(-t 1), {IN=> " b c d\n"}, {OUT=> "\tb\t\tc\t\t\td\n"}],
- ['blanks-2', qw(-t 1), {IN=> "a \n"}, {OUT=> "a \n"}],
- ['blanks-3', qw(-t 1), {IN=> "a \n"}, {OUT=> "a\t\t\n"}],
- ['blanks-4', qw(-t 1), {IN=> "a \n"}, {OUT=> "a\t\t\t\n"}],
- ['blanks-5', qw(-t 1), {IN=> "a "}, {OUT=> "a "}],
- ['blanks-6', qw(-t 1), {IN=> "a "}, {OUT=> "a\t\t"}],
- ['blanks-7', qw(-t 1), {IN=> "a "}, {OUT=> "a\t\t\t"}],
- ['blanks-8', qw(-t 1), {IN=> " a a a\n"}, {OUT=> "\ta a\t\ta\n"}],
- ['blanks-9', qw(-t 2), {IN=> " a a a\n"}, {OUT=> "\t a\ta a\n"}],
- ['blanks-10', '-t', '3,4', {IN=> "0 2 4 6\t8\n"}, {OUT=> "0 2 4 6\t8\n"}],
- ['blanks-11', '-t', '3,4', {IN=> " 4\n"}, {OUT=> "\t\t4\n"}],
- ['blanks-12', '-t', '3,4', {IN=> "01 4\n"}, {OUT=> "01\t\t4\n"}],
- ['blanks-13', '-t', '3,4', {IN=> "0 4\n"}, {OUT=> "0\t\t4\n"}],
-
- # It is debatable whether this test should require an environment
- # setting of e.g., _POSIX2_VERSION=1.
- ['obs-ovflo', '-18446744073709551617', {IN=>''}, {OUT=>''},
- {EXIT => 1}, {ERR => "$prog: tab stop value is too large\n"}],
- );
-
-my $save_temps = $ENV{DEBUG};
-my $verbose = $ENV{VERBOSE};
-
-my $fail = run_tests ($program_name, $prog, \@Tests, $save_temps, $verbose);
-exit $fail;
-EOF
diff --git a/tests/uniq/1.I b/tests/uniq/1.I
deleted file mode 100644
index e69de29..0000000
--- a/tests/uniq/1.I
+++ /dev/null
diff --git a/tests/uniq/1.X b/tests/uniq/1.X
deleted file mode 100644
index e69de29..0000000
--- a/tests/uniq/1.X
+++ /dev/null
diff --git a/tests/uniq/10.I b/tests/uniq/10.I
deleted file mode 100644
index 422c2b7..0000000
--- a/tests/uniq/10.I
+++ /dev/null
@@ -1,2 +0,0 @@
-a
-b
diff --git a/tests/uniq/10.X b/tests/uniq/10.X
deleted file mode 100644
index 422c2b7..0000000
--- a/tests/uniq/10.X
+++ /dev/null
@@ -1,2 +0,0 @@
-a
-b
diff --git a/tests/uniq/101.I b/tests/uniq/101.I
deleted file mode 100644
index 422c2b7..0000000
--- a/tests/uniq/101.I
+++ /dev/null
@@ -1,2 +0,0 @@
-a
-b
diff --git a/tests/uniq/101.X b/tests/uniq/101.X
deleted file mode 100644
index 6cc98cc..0000000
--- a/tests/uniq/101.X
+++ /dev/null
@@ -1,2 +0,0 @@
- 1 a
- 1 b
diff --git a/tests/uniq/102.I b/tests/uniq/102.I
deleted file mode 100644
index 7e8a165..0000000
--- a/tests/uniq/102.I
+++ /dev/null
@@ -1,2 +0,0 @@
-a
-a
diff --git a/tests/uniq/102.X b/tests/uniq/102.X
deleted file mode 100644
index 8a17c1c..0000000
--- a/tests/uniq/102.X
+++ /dev/null
@@ -1 +0,0 @@
- 2 a
diff --git a/tests/uniq/11.I b/tests/uniq/11.I
deleted file mode 100644
index 8f468ef..0000000
--- a/tests/uniq/11.I
+++ /dev/null
@@ -1,3 +0,0 @@
-a
-b
-a
diff --git a/tests/uniq/11.X b/tests/uniq/11.X
deleted file mode 100644
index 8f468ef..0000000
--- a/tests/uniq/11.X
+++ /dev/null
@@ -1,3 +0,0 @@
-a
-b
-a
diff --git a/tests/uniq/110.I b/tests/uniq/110.I
deleted file mode 100644
index 7e8a165..0000000
--- a/tests/uniq/110.I
+++ /dev/null
@@ -1,2 +0,0 @@
-a
-a
diff --git a/tests/uniq/110.X b/tests/uniq/110.X
deleted file mode 100644
index 7e8a165..0000000
--- a/tests/uniq/110.X
+++ /dev/null
@@ -1,2 +0,0 @@
-a
-a
diff --git a/tests/uniq/111.I b/tests/uniq/111.I
deleted file mode 100644
index eb8559a..0000000
--- a/tests/uniq/111.I
+++ /dev/null
@@ -1,2 +0,0 @@
-a a
-a b
diff --git a/tests/uniq/111.X b/tests/uniq/111.X
deleted file mode 100644
index eb8559a..0000000
--- a/tests/uniq/111.X
+++ /dev/null
@@ -1,2 +0,0 @@
-a a
-a b
diff --git a/tests/uniq/112.I b/tests/uniq/112.I
deleted file mode 100644
index eb8559a..0000000
--- a/tests/uniq/112.I
+++ /dev/null
@@ -1,2 +0,0 @@
-a a
-a b
diff --git a/tests/uniq/112.X b/tests/uniq/112.X
deleted file mode 100644
index e69de29..0000000
--- a/tests/uniq/112.X
+++ /dev/null
diff --git a/tests/uniq/113.I b/tests/uniq/113.I
deleted file mode 100644
index 7e8a165..0000000
--- a/tests/uniq/113.I
+++ /dev/null
@@ -1,2 +0,0 @@
-a
-a
diff --git a/tests/uniq/113.X b/tests/uniq/113.X
deleted file mode 100644
index 7e8a165..0000000
--- a/tests/uniq/113.X
+++ /dev/null
@@ -1,2 +0,0 @@
-a
-a
diff --git a/tests/uniq/114.I b/tests/uniq/114.I
deleted file mode 100644
index 79b996f..0000000
--- a/tests/uniq/114.I
+++ /dev/null
@@ -1,5 +0,0 @@
-a
-a
-b
-c
-c
diff --git a/tests/uniq/114.X b/tests/uniq/114.X
deleted file mode 100644
index 32b772f..0000000
--- a/tests/uniq/114.X
+++ /dev/null
@@ -1,5 +0,0 @@
-a
-a
-
-c
-c
diff --git a/tests/uniq/115.I b/tests/uniq/115.I
deleted file mode 100644
index 8d88178..0000000
--- a/tests/uniq/115.I
+++ /dev/null
@@ -1,5 +0,0 @@
-a
-a
-b
-b
-c
diff --git a/tests/uniq/115.X b/tests/uniq/115.X
deleted file mode 100644
index fb01bd6..0000000
--- a/tests/uniq/115.X
+++ /dev/null
@@ -1,5 +0,0 @@
-a
-a
-
-b
-b
diff --git a/tests/uniq/116.I b/tests/uniq/116.I
deleted file mode 100644
index 7e8a165..0000000
--- a/tests/uniq/116.I
+++ /dev/null
@@ -1,2 +0,0 @@
-a
-a
diff --git a/tests/uniq/116.X b/tests/uniq/116.X
deleted file mode 100644
index b46a8a0..0000000
--- a/tests/uniq/116.X
+++ /dev/null
@@ -1,3 +0,0 @@
-
-a
-a
diff --git a/tests/uniq/117.I b/tests/uniq/117.I
deleted file mode 100644
index 79b996f..0000000
--- a/tests/uniq/117.I
+++ /dev/null
@@ -1,5 +0,0 @@
-a
-a
-b
-c
-c
diff --git a/tests/uniq/117.X b/tests/uniq/117.X
deleted file mode 100644
index b1c75bf..0000000
--- a/tests/uniq/117.X
+++ /dev/null
@@ -1,6 +0,0 @@
-
-a
-a
-
-c
-c
diff --git a/tests/uniq/118.I b/tests/uniq/118.I
deleted file mode 100644
index 422c2b7..0000000
--- a/tests/uniq/118.I
+++ /dev/null
@@ -1,2 +0,0 @@
-a
-b
diff --git a/tests/uniq/118.X b/tests/uniq/118.X
deleted file mode 100644
index e69de29..0000000
--- a/tests/uniq/118.X
+++ /dev/null
diff --git a/tests/uniq/119.I b/tests/uniq/119.I
deleted file mode 100644
index 7898192..0000000
--- a/tests/uniq/119.I
+++ /dev/null
@@ -1 +0,0 @@
-a
diff --git a/tests/uniq/119.X b/tests/uniq/119.X
deleted file mode 100644
index e69de29..0000000
--- a/tests/uniq/119.X
+++ /dev/null
diff --git a/tests/uniq/12.I b/tests/uniq/12.I
deleted file mode 100644
index 7e8a165..0000000
--- a/tests/uniq/12.I
+++ /dev/null
@@ -1,2 +0,0 @@
-a
-a
diff --git a/tests/uniq/12.X b/tests/uniq/12.X
deleted file mode 100644
index e69de29..0000000
--- a/tests/uniq/12.X
+++ /dev/null
diff --git a/tests/uniq/120.I b/tests/uniq/120.I
deleted file mode 100644
index c8fd6dc..0000000
--- a/tests/uniq/120.I
+++ /dev/null
@@ -1,3 +0,0 @@
-a
-a
- \ No newline at end of file
diff --git a/tests/uniq/120.X b/tests/uniq/120.X
deleted file mode 100644
index e69de29..0000000
--- a/tests/uniq/120.X
+++ /dev/null
diff --git a/tests/uniq/121.I b/tests/uniq/121.I
deleted file mode 100644
index c8fd6dc..0000000
--- a/tests/uniq/121.I
+++ /dev/null
@@ -1,3 +0,0 @@
-a
-a
- \ No newline at end of file
diff --git a/tests/uniq/121.X b/tests/uniq/121.X
deleted file mode 100644
index e69de29..0000000
--- a/tests/uniq/121.X
+++ /dev/null
diff --git a/tests/uniq/13.I b/tests/uniq/13.I
deleted file mode 100644
index 7e8a165..0000000
--- a/tests/uniq/13.I
+++ /dev/null
@@ -1,2 +0,0 @@
-a
-a
diff --git a/tests/uniq/13.X b/tests/uniq/13.X
deleted file mode 100644
index e69de29..0000000
--- a/tests/uniq/13.X
+++ /dev/null
diff --git a/tests/uniq/2.I b/tests/uniq/2.I
deleted file mode 100644
index 7e8a165..0000000
--- a/tests/uniq/2.I
+++ /dev/null
@@ -1,2 +0,0 @@
-a
-a
diff --git a/tests/uniq/2.X b/tests/uniq/2.X
deleted file mode 100644
index 7898192..0000000
--- a/tests/uniq/2.X
+++ /dev/null
@@ -1 +0,0 @@
-a
diff --git a/tests/uniq/20.I b/tests/uniq/20.I
deleted file mode 100644
index 7e8a165..0000000
--- a/tests/uniq/20.I
+++ /dev/null
@@ -1,2 +0,0 @@
-a
-a
diff --git a/tests/uniq/20.X b/tests/uniq/20.X
deleted file mode 100644
index 7898192..0000000
--- a/tests/uniq/20.X
+++ /dev/null
@@ -1 +0,0 @@
-a
diff --git a/tests/uniq/21.I b/tests/uniq/21.I
deleted file mode 100644
index 422c2b7..0000000
--- a/tests/uniq/21.I
+++ /dev/null
@@ -1,2 +0,0 @@
-a
-b
diff --git a/tests/uniq/21.X b/tests/uniq/21.X
deleted file mode 100644
index e69de29..0000000
--- a/tests/uniq/21.X
+++ /dev/null
diff --git a/tests/uniq/22.I b/tests/uniq/22.I
deleted file mode 100644
index 8f468ef..0000000
--- a/tests/uniq/22.I
+++ /dev/null
@@ -1,3 +0,0 @@
-a
-b
-a
diff --git a/tests/uniq/22.X b/tests/uniq/22.X
deleted file mode 100644
index e69de29..0000000
--- a/tests/uniq/22.X
+++ /dev/null
diff --git a/tests/uniq/23.I b/tests/uniq/23.I
deleted file mode 100644
index 4ac2bee..0000000
--- a/tests/uniq/23.I
+++ /dev/null
@@ -1,3 +0,0 @@
-a
-a
-b
diff --git a/tests/uniq/23.X b/tests/uniq/23.X
deleted file mode 100644
index 7898192..0000000
--- a/tests/uniq/23.X
+++ /dev/null
@@ -1 +0,0 @@
-a
diff --git a/tests/uniq/3.I b/tests/uniq/3.I
deleted file mode 100644
index a0f9c0a..0000000
--- a/tests/uniq/3.I
+++ /dev/null
@@ -1,2 +0,0 @@
-a
-a \ No newline at end of file
diff --git a/tests/uniq/3.X b/tests/uniq/3.X
deleted file mode 100644
index 7898192..0000000
--- a/tests/uniq/3.X
+++ /dev/null
@@ -1 +0,0 @@
-a
diff --git a/tests/uniq/31.I b/tests/uniq/31.I
deleted file mode 100644
index 573a9ac..0000000
--- a/tests/uniq/31.I
+++ /dev/null
@@ -1,2 +0,0 @@
-a a
-b a
diff --git a/tests/uniq/31.X b/tests/uniq/31.X
deleted file mode 100644
index a4c6917..0000000
--- a/tests/uniq/31.X
+++ /dev/null
@@ -1 +0,0 @@
-a a
diff --git a/tests/uniq/32.I b/tests/uniq/32.I
deleted file mode 100644
index a46753a..0000000
--- a/tests/uniq/32.I
+++ /dev/null
@@ -1,2 +0,0 @@
-a a
-b b
diff --git a/tests/uniq/32.X b/tests/uniq/32.X
deleted file mode 100644
index a46753a..0000000
--- a/tests/uniq/32.X
+++ /dev/null
@@ -1,2 +0,0 @@
-a a
-b b
diff --git a/tests/uniq/33.I b/tests/uniq/33.I
deleted file mode 100644
index 8cfc442..0000000
--- a/tests/uniq/33.I
+++ /dev/null
@@ -1,2 +0,0 @@
-a a a
-b a c
diff --git a/tests/uniq/33.X b/tests/uniq/33.X
deleted file mode 100644
index 8cfc442..0000000
--- a/tests/uniq/33.X
+++ /dev/null
@@ -1,2 +0,0 @@
-a a a
-b a c
diff --git a/tests/uniq/34.I b/tests/uniq/34.I
deleted file mode 100644
index 7c0b1be..0000000
--- a/tests/uniq/34.I
+++ /dev/null
@@ -1,2 +0,0 @@
-b a
-a a
diff --git a/tests/uniq/34.X b/tests/uniq/34.X
deleted file mode 100644
index a6b6601..0000000
--- a/tests/uniq/34.X
+++ /dev/null
@@ -1 +0,0 @@
-b a
diff --git a/tests/uniq/35.I b/tests/uniq/35.I
deleted file mode 100644
index eee5a58..0000000
--- a/tests/uniq/35.I
+++ /dev/null
@@ -1,2 +0,0 @@
-a a c
-b a c
diff --git a/tests/uniq/35.X b/tests/uniq/35.X
deleted file mode 100644
index 7114345..0000000
--- a/tests/uniq/35.X
+++ /dev/null
@@ -1 +0,0 @@
-a a c
diff --git a/tests/uniq/4.I b/tests/uniq/4.I
deleted file mode 100644
index 0a207c0..0000000
--- a/tests/uniq/4.I
+++ /dev/null
@@ -1,2 +0,0 @@
-a
-b \ No newline at end of file
diff --git a/tests/uniq/4.X b/tests/uniq/4.X
deleted file mode 100644
index 422c2b7..0000000
--- a/tests/uniq/4.X
+++ /dev/null
@@ -1,2 +0,0 @@
-a
-b
diff --git a/tests/uniq/42.I b/tests/uniq/42.I
deleted file mode 100644
index eaf82f7..0000000
--- a/tests/uniq/42.I
+++ /dev/null
@@ -1,2 +0,0 @@
-aaa
-aaa
diff --git a/tests/uniq/42.X b/tests/uniq/42.X
deleted file mode 100644
index 72943a1..0000000
--- a/tests/uniq/42.X
+++ /dev/null
@@ -1 +0,0 @@
-aaa
diff --git a/tests/uniq/43.I b/tests/uniq/43.I
deleted file mode 100644
index cf26fdc..0000000
--- a/tests/uniq/43.I
+++ /dev/null
@@ -1,2 +0,0 @@
-baa
-aaa
diff --git a/tests/uniq/43.X b/tests/uniq/43.X
deleted file mode 100644
index 397acea..0000000
--- a/tests/uniq/43.X
+++ /dev/null
@@ -1 +0,0 @@
-baa
diff --git a/tests/uniq/5.I b/tests/uniq/5.I
deleted file mode 100644
index 59f03ae..0000000
--- a/tests/uniq/5.I
+++ /dev/null
@@ -1,3 +0,0 @@
-a
-a
-b \ No newline at end of file
diff --git a/tests/uniq/5.X b/tests/uniq/5.X
deleted file mode 100644
index 422c2b7..0000000
--- a/tests/uniq/5.X
+++ /dev/null
@@ -1,2 +0,0 @@
-a
-b
diff --git a/tests/uniq/50.I b/tests/uniq/50.I
deleted file mode 100644
index e55fe35..0000000
--- a/tests/uniq/50.I
+++ /dev/null
@@ -1,2 +0,0 @@
-a aaa
-b ab
diff --git a/tests/uniq/50.X b/tests/uniq/50.X
deleted file mode 100644
index e55fe35..0000000
--- a/tests/uniq/50.X
+++ /dev/null
@@ -1,2 +0,0 @@
-a aaa
-b ab
diff --git a/tests/uniq/51.I b/tests/uniq/51.I
deleted file mode 100644
index a224488..0000000
--- a/tests/uniq/51.I
+++ /dev/null
@@ -1,2 +0,0 @@
-a aaa
-b aaa
diff --git a/tests/uniq/51.X b/tests/uniq/51.X
deleted file mode 100644
index cc26cf5..0000000
--- a/tests/uniq/51.X
+++ /dev/null
@@ -1 +0,0 @@
-a aaa
diff --git a/tests/uniq/52.I b/tests/uniq/52.I
deleted file mode 100644
index e55fe35..0000000
--- a/tests/uniq/52.I
+++ /dev/null
@@ -1,2 +0,0 @@
-a aaa
-b ab
diff --git a/tests/uniq/52.X b/tests/uniq/52.X
deleted file mode 100644
index e55fe35..0000000
--- a/tests/uniq/52.X
+++ /dev/null
@@ -1,2 +0,0 @@
-a aaa
-b ab
diff --git a/tests/uniq/53.I b/tests/uniq/53.I
deleted file mode 100644
index a224488..0000000
--- a/tests/uniq/53.I
+++ /dev/null
@@ -1,2 +0,0 @@
-a aaa
-b aaa
diff --git a/tests/uniq/53.X b/tests/uniq/53.X
deleted file mode 100644
index cc26cf5..0000000
--- a/tests/uniq/53.X
+++ /dev/null
@@ -1 +0,0 @@
-a aaa
diff --git a/tests/uniq/54.I b/tests/uniq/54.I
deleted file mode 100644
index 470caaa..0000000
--- a/tests/uniq/54.I
+++ /dev/null
@@ -1,2 +0,0 @@
-abc
-abcd
diff --git a/tests/uniq/54.X b/tests/uniq/54.X
deleted file mode 100644
index 8baef1b..0000000
--- a/tests/uniq/54.X
+++ /dev/null
@@ -1 +0,0 @@
-abc
diff --git a/tests/uniq/55.I b/tests/uniq/55.I
deleted file mode 100644
index 470caaa..0000000
--- a/tests/uniq/55.I
+++ /dev/null
@@ -1,2 +0,0 @@
-abc
-abcd
diff --git a/tests/uniq/55.X b/tests/uniq/55.X
deleted file mode 100644
index 470caaa..0000000
--- a/tests/uniq/55.X
+++ /dev/null
@@ -1,2 +0,0 @@
-abc
-abcd
diff --git a/tests/uniq/56.I b/tests/uniq/56.I
deleted file mode 100644
index 8baef1b..0000000
--- a/tests/uniq/56.I
+++ /dev/null
@@ -1 +0,0 @@
-abc
diff --git a/tests/uniq/56.X b/tests/uniq/56.X
deleted file mode 100644
index 8baef1b..0000000
--- a/tests/uniq/56.X
+++ /dev/null
@@ -1 +0,0 @@
-abc
diff --git a/tests/uniq/57.I b/tests/uniq/57.I
deleted file mode 100644
index 470caaa..0000000
--- a/tests/uniq/57.I
+++ /dev/null
@@ -1,2 +0,0 @@
-abc
-abcd
diff --git a/tests/uniq/57.X b/tests/uniq/57.X
deleted file mode 100644
index 8baef1b..0000000
--- a/tests/uniq/57.X
+++ /dev/null
@@ -1 +0,0 @@
-abc
diff --git a/tests/uniq/6.I b/tests/uniq/6.I
deleted file mode 100644
index be1d2b6..0000000
--- a/tests/uniq/6.I
+++ /dev/null
@@ -1,3 +0,0 @@
-b
-a
-a
diff --git a/tests/uniq/6.X b/tests/uniq/6.X
deleted file mode 100644
index 0e1677a..0000000
--- a/tests/uniq/6.X
+++ /dev/null
@@ -1,2 +0,0 @@
-b
-a
diff --git a/tests/uniq/60.I b/tests/uniq/60.I
deleted file mode 100644
index 573a9ac..0000000
--- a/tests/uniq/60.I
+++ /dev/null
@@ -1,2 +0,0 @@
-a a
-b a
diff --git a/tests/uniq/60.X b/tests/uniq/60.X
deleted file mode 100644
index 573a9ac..0000000
--- a/tests/uniq/60.X
+++ /dev/null
@@ -1,2 +0,0 @@
-a a
-b a
diff --git a/tests/uniq/61.I b/tests/uniq/61.I
deleted file mode 100644
index 573a9ac..0000000
--- a/tests/uniq/61.I
+++ /dev/null
@@ -1,2 +0,0 @@
-a a
-b a
diff --git a/tests/uniq/61.X b/tests/uniq/61.X
deleted file mode 100644
index 573a9ac..0000000
--- a/tests/uniq/61.X
+++ /dev/null
@@ -1,2 +0,0 @@
-a a
-b a
diff --git a/tests/uniq/62.I b/tests/uniq/62.I
deleted file mode 100644
index 8cfc442..0000000
--- a/tests/uniq/62.I
+++ /dev/null
@@ -1,2 +0,0 @@
-a a a
-b a c
diff --git a/tests/uniq/62.X b/tests/uniq/62.X
deleted file mode 100644
index b22eb84..0000000
--- a/tests/uniq/62.X
+++ /dev/null
@@ -1 +0,0 @@
-a a a
diff --git a/tests/uniq/63.I b/tests/uniq/63.I
deleted file mode 100644
index 8cfc442..0000000
--- a/tests/uniq/63.I
+++ /dev/null
@@ -1,2 +0,0 @@
-a a a
-b a c
diff --git a/tests/uniq/63.X b/tests/uniq/63.X
deleted file mode 100644
index b22eb84..0000000
--- a/tests/uniq/63.X
+++ /dev/null
@@ -1 +0,0 @@
-a a a
diff --git a/tests/uniq/64.I b/tests/uniq/64.I
deleted file mode 100644
index 8cfc442..0000000
--- a/tests/uniq/64.I
+++ /dev/null
@@ -1,2 +0,0 @@
-a a a
-b a c
diff --git a/tests/uniq/64.X b/tests/uniq/64.X
deleted file mode 100644
index 8cfc442..0000000
--- a/tests/uniq/64.X
+++ /dev/null
@@ -1,2 +0,0 @@
-a a a
-b a c
diff --git a/tests/uniq/65.I b/tests/uniq/65.I
deleted file mode 100644
index 8cfc442..0000000
--- a/tests/uniq/65.I
+++ /dev/null
@@ -1,2 +0,0 @@
-a a a
-b a c
diff --git a/tests/uniq/65.X b/tests/uniq/65.X
deleted file mode 100644
index b22eb84..0000000
--- a/tests/uniq/65.X
+++ /dev/null
@@ -1 +0,0 @@
-a a a
diff --git a/tests/uniq/7.I b/tests/uniq/7.I
deleted file mode 100644
index de98044..0000000
--- a/tests/uniq/7.I
+++ /dev/null
@@ -1,3 +0,0 @@
-a
-b
-c
diff --git a/tests/uniq/7.X b/tests/uniq/7.X
deleted file mode 100644
index de98044..0000000
--- a/tests/uniq/7.X
+++ /dev/null
@@ -1,3 +0,0 @@
-a
-b
-c
diff --git a/tests/uniq/8.I b/tests/uniq/8.I
deleted file mode 100644
index 2513045..0000000
--- a/tests/uniq/8.I
+++ /dev/null
@@ -1,2 +0,0 @@
-ö
-v
diff --git a/tests/uniq/8.X b/tests/uniq/8.X
deleted file mode 100644
index 2513045..0000000
--- a/tests/uniq/8.X
+++ /dev/null
@@ -1,2 +0,0 @@
-ö
-v
diff --git a/tests/uniq/9.I b/tests/uniq/9.I
deleted file mode 100644
index 7e8a165..0000000
--- a/tests/uniq/9.I
+++ /dev/null
@@ -1,2 +0,0 @@
-a
-a
diff --git a/tests/uniq/9.X b/tests/uniq/9.X
deleted file mode 100644
index e69de29..0000000
--- a/tests/uniq/9.X
+++ /dev/null
diff --git a/tests/uniq/90.I b/tests/uniq/90.I
deleted file mode 100644
index c21a2fb..0000000
--- a/tests/uniq/90.I
+++ /dev/null
Binary files differ
diff --git a/tests/uniq/90.X b/tests/uniq/90.X
deleted file mode 100644
index c21a2fb..0000000
--- a/tests/uniq/90.X
+++ /dev/null
Binary files differ
diff --git a/tests/uniq/91.I b/tests/uniq/91.I
deleted file mode 100644
index ec34811..0000000
--- a/tests/uniq/91.I
+++ /dev/null
@@ -1,2 +0,0 @@
-a a
-a a
diff --git a/tests/uniq/91.X b/tests/uniq/91.X
deleted file mode 100644
index ec34811..0000000
--- a/tests/uniq/91.X
+++ /dev/null
@@ -1,2 +0,0 @@
-a a
-a a
diff --git a/tests/uniq/92.I b/tests/uniq/92.I
deleted file mode 100644
index ec34811..0000000
--- a/tests/uniq/92.I
+++ /dev/null
@@ -1,2 +0,0 @@
-a a
-a a
diff --git a/tests/uniq/92.X b/tests/uniq/92.X
deleted file mode 100644
index ec34811..0000000
--- a/tests/uniq/92.X
+++ /dev/null
@@ -1,2 +0,0 @@
-a a
-a a
diff --git a/tests/uniq/93.I b/tests/uniq/93.I
deleted file mode 100644
index 5bae3a5..0000000
--- a/tests/uniq/93.I
+++ /dev/null
@@ -1,2 +0,0 @@
-a a a
-a a a
diff --git a/tests/uniq/93.X b/tests/uniq/93.X
deleted file mode 100644
index 6dc89af..0000000
--- a/tests/uniq/93.X
+++ /dev/null
@@ -1 +0,0 @@
-a a a
diff --git a/tests/uniq/94.I b/tests/uniq/94.I
deleted file mode 100644
index dda140e..0000000
--- a/tests/uniq/94.I
+++ /dev/null
@@ -1,2 +0,0 @@
-a a
-a a
diff --git a/tests/uniq/94.X b/tests/uniq/94.X
deleted file mode 100644
index 525689a..0000000
--- a/tests/uniq/94.X
+++ /dev/null
@@ -1 +0,0 @@
-a a
diff --git a/tests/uniq/Makefile.am b/tests/uniq/Makefile.am
deleted file mode 100644
index 077a1a4..0000000
--- a/tests/uniq/Makefile.am
+++ /dev/null
@@ -1,76 +0,0 @@
-# Make coreutils tests. -*-Makefile-*-
-
-# Copyright (C) 1997, 1998, 2000, 2003, 2004, 2006 Free Software
-# Foundation, Inc.
-
-# This program is free software; you can redistribute it and/or modify
-# it under the terms of the GNU General Public License as published by
-# the Free Software Foundation; either version 2 of the License, or
-# (at your option) any later version.
-
-# This program is distributed in the hope that it will be useful,
-# but WITHOUT ANY WARRANTY; without even the implied warranty of
-# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
-# GNU General Public License for more details.
-
-# You should have received a copy of the GNU General Public License
-# along with this program; if not, write to the Free Software
-# Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA
-# 02110-1301, USA.
-
-##test-files-begin
-x = uniq
-explicit =
-maint_gen = 1.I 1.X 2.I 2.X 3.I 3.X 4.I 4.X 5.I 5.X 6.I 6.X 7.I 7.X 8.I 8.X \
-9.I 9.X 10.I 10.X 11.I 11.X 12.I 12.X 13.I 13.X 20.I 20.X 21.I 21.X 22.I 22.X \
-23.I 23.X obs30.I obs30.X 31.I 31.X 32.I 32.X 33.I 33.X 34.I 34.X 35.I 35.X \
-obs-plus40.I obs-plus40.X obs-plus41.I obs-plus41.X 42.I 42.X 43.I 43.X \
-obs-plus44.I obs-plus44.X obs-plus45.I obs-plus45.X 50.I 50.X 51.I 51.X 52.I \
-52.X 53.I 53.X 54.I 54.X 55.I 55.X 56.I 56.X 57.I 57.X 60.I 60.X 61.I 61.X \
-62.I 62.X 63.I 63.X 64.I 64.X 65.I 65.X 90.I 90.X 91.I 91.X 92.I 92.X 93.I \
-93.X 94.I 94.X 101.I 101.X 102.I 102.X 110.I 110.X 111.I 111.X 112.I 112.X \
-113.I 113.X 114.I 114.X 115.I 115.X 116.I 116.X 117.I 117.X 118.I 118.X 119.I \
-119.X 120.I 120.X 121.I 121.X
-run_gen = 1.O 1.E 2.O 2.E 3.O 3.E 4.O 4.E 5.O 5.E 6.O 6.E 7.O 7.E 8.O 8.E 9.O \
-9.E 10.O 10.E 11.O 11.E 12.O 12.E 13.O 13.E 20.O 20.E 21.O 21.E 22.O 22.E \
-23.O 23.E obs30.O obs30.E 31.O 31.E 32.O 32.E 33.O 33.E 34.O 34.E 35.O 35.E \
-obs-plus40.O obs-plus40.E obs-plus41.O obs-plus41.E 42.O 42.E 43.O 43.E \
-obs-plus44.O obs-plus44.E obs-plus45.O obs-plus45.E 50.O 50.E 51.O 51.E 52.O \
-52.E 53.O 53.E 54.O 54.E 55.O 55.E 56.O 56.E 57.O 57.E 60.O 60.E 61.O 61.E \
-62.O 62.E 63.O 63.E 64.O 64.E 65.O 65.E 90.O 90.E 91.O 91.E 92.O 92.E 93.O \
-93.E 94.O 94.E 101.O 101.E 102.O 102.E 110.O 110.E 111.O 111.E 112.O 112.E \
-113.O 113.E 114.O 114.E 115.O 115.E 116.O 116.E 117.O 117.E 118.O 118.E 119.O \
-119.E 120.O 120.E 121.O 121.E
-##test-files-end
-
-EXTRA_DIST = Test.pm $x-tests $(explicit) $(maint_gen)
-noinst_SCRIPTS = $x-tests
-TESTS_ENVIRONMENT = \
- CU_TEST_NAME=`basename $(abs_srcdir)`,$$tst \
- PATH="$(VG_PATH_PREFIX)`pwd`/../../src$(PATH_SEPARATOR)$$PATH"
-
-editpl = sed -e 's,@''PERL''@,$(PERL),g' -e 's,@''srcdir''@,$(srcdir),g'
-
-TESTS = $x-tests
-
-mk_script = $(srcdir)/../mk-script
-$(srcdir)/$x-tests: $(mk_script) Test.pm Makefile.am
- test '$x' = test && prog=../../src/$x || prog=$x; \
- $(PERL) -I$(srcdir) -w -- $(mk_script) $(srcdir) $$prog > $@.n
- mv $@.n $@
- chmod 755 $@
-
-MAINTAINERCLEANFILES = $x-tests $(maint_gen)
-CLEANFILES = $(run_gen)
-
-check: $(maint_gen)
-
-$(srcdir)/Makefile.am: ../Makefile.am.in Test.pm $(mk_script)
- rm -f $@ $@t
- sed -n '1,/^##test-files-begin/p' $(srcdir)/../Makefile.am.in > $@t
- tool=`echo $(subdir)|sed 's/^tests.//;s/-test//'`; \
- echo "x = $$tool" >> $@t
- $(PERL) -I$(srcdir) -w -- $(mk_script) $(srcdir) --list >> $@t
- sed -n '/^##test-files-end/,$$p' $(srcdir)/../Makefile.am.in >> $@t
- chmod -w $@t
- mv $@t $@
diff --git a/tests/uniq/Makefile.in b/tests/uniq/Makefile.in
deleted file mode 100644
index bd99059..0000000
--- a/tests/uniq/Makefile.in
+++ /dev/null
@@ -1,786 +0,0 @@
-# Makefile.in generated by automake 1.10 from Makefile.am.
-# @configure_input@
-
-# Copyright (C) 1994, 1995, 1996, 1997, 1998, 1999, 2000, 2001, 2002,
-# 2003, 2004, 2005, 2006 Free Software Foundation, Inc.
-# This Makefile.in is free software; the Free Software Foundation
-# gives unlimited permission to copy and/or distribute it,
-# with or without modifications, as long as this notice is preserved.
-
-# This program is distributed in the hope that it will be useful,
-# but WITHOUT ANY WARRANTY, to the extent permitted by law; without
-# even the implied warranty of MERCHANTABILITY or FITNESS FOR A
-# PARTICULAR PURPOSE.
-
-@SET_MAKE@
-
-# Make coreutils tests. -*-Makefile-*-
-
-# Copyright (C) 1997, 1998, 2000, 2003, 2004, 2006 Free Software
-# Foundation, Inc.
-
-# This program is free software; you can redistribute it and/or modify
-# it under the terms of the GNU General Public License as published by
-# the Free Software Foundation; either version 2 of the License, or
-# (at your option) any later version.
-
-# This program is distributed in the hope that it will be useful,
-# but WITHOUT ANY WARRANTY; without even the implied warranty of
-# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
-# GNU General Public License for more details.
-
-# You should have received a copy of the GNU General Public License
-# along with this program; if not, write to the Free Software
-# Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA
-# 02110-1301, USA.
-
-VPATH = @srcdir@
-pkgdatadir = $(datadir)/@PACKAGE@
-pkglibdir = $(libdir)/@PACKAGE@
-pkgincludedir = $(includedir)/@PACKAGE@
-am__cd = CDPATH="$${ZSH_VERSION+.}$(PATH_SEPARATOR)" && cd
-install_sh_DATA = $(install_sh) -c -m 644
-install_sh_PROGRAM = $(install_sh) -c
-install_sh_SCRIPT = $(install_sh) -c
-INSTALL_HEADER = $(INSTALL_DATA)
-transform = $(program_transform_name)
-NORMAL_INSTALL = :
-PRE_INSTALL = :
-POST_INSTALL = :
-NORMAL_UNINSTALL = :
-PRE_UNINSTALL = :
-POST_UNINSTALL = :
-build_triplet = @build@
-host_triplet = @host@
-subdir = tests/uniq
-DIST_COMMON = $(srcdir)/Makefile.am $(srcdir)/Makefile.in
-ACLOCAL_M4 = $(top_srcdir)/aclocal.m4
-am__aclocal_m4_deps = $(top_srcdir)/m4/absolute-header.m4 \
- $(top_srcdir)/m4/acl.m4 $(top_srcdir)/m4/alloca.m4 \
- $(top_srcdir)/m4/allocsa.m4 $(top_srcdir)/m4/argmatch.m4 \
- $(top_srcdir)/m4/arpa_inet_h.m4 $(top_srcdir)/m4/assert.m4 \
- $(top_srcdir)/m4/atexit.m4 $(top_srcdir)/m4/autobuild.m4 \
- $(top_srcdir)/m4/backupfile.m4 $(top_srcdir)/m4/base64.m4 \
- $(top_srcdir)/m4/bison.m4 $(top_srcdir)/m4/boottime.m4 \
- $(top_srcdir)/m4/c-strtod.m4 $(top_srcdir)/m4/calloc.m4 \
- $(top_srcdir)/m4/canon-host.m4 \
- $(top_srcdir)/m4/canonicalize.m4 \
- $(top_srcdir)/m4/chdir-long.m4 $(top_srcdir)/m4/check-decl.m4 \
- $(top_srcdir)/m4/chown.m4 $(top_srcdir)/m4/clock_time.m4 \
- $(top_srcdir)/m4/cloexec.m4 $(top_srcdir)/m4/close-stream.m4 \
- $(top_srcdir)/m4/closeout.m4 $(top_srcdir)/m4/codeset.m4 \
- $(top_srcdir)/m4/config-h.m4 $(top_srcdir)/m4/cycle-check.m4 \
- $(top_srcdir)/m4/d-ino.m4 $(top_srcdir)/m4/d-type.m4 \
- $(top_srcdir)/m4/dirfd.m4 $(top_srcdir)/m4/dirname.m4 \
- $(top_srcdir)/m4/dos.m4 $(top_srcdir)/m4/double-slash-root.m4 \
- $(top_srcdir)/m4/dup2.m4 $(top_srcdir)/m4/eealloc.m4 \
- $(top_srcdir)/m4/eoverflow.m4 $(top_srcdir)/m4/error.m4 \
- $(top_srcdir)/m4/euidaccess-stat.m4 \
- $(top_srcdir)/m4/euidaccess.m4 $(top_srcdir)/m4/exclude.m4 \
- $(top_srcdir)/m4/exitfail.m4 $(top_srcdir)/m4/extensions.m4 \
- $(top_srcdir)/m4/fchdir.m4 $(top_srcdir)/m4/fcntl-safer.m4 \
- $(top_srcdir)/m4/fcntl_h.m4 $(top_srcdir)/m4/fd-reopen.m4 \
- $(top_srcdir)/m4/file-type.m4 $(top_srcdir)/m4/fileblocks.m4 \
- $(top_srcdir)/m4/filemode.m4 $(top_srcdir)/m4/filenamecat.m4 \
- $(top_srcdir)/m4/flexmember.m4 $(top_srcdir)/m4/fnmatch.m4 \
- $(top_srcdir)/m4/fpending.m4 $(top_srcdir)/m4/fprintftime.m4 \
- $(top_srcdir)/m4/free.m4 $(top_srcdir)/m4/fstypename.m4 \
- $(top_srcdir)/m4/fsusage.m4 $(top_srcdir)/m4/ftruncate.m4 \
- $(top_srcdir)/m4/fts.m4 $(top_srcdir)/m4/getaddrinfo.m4 \
- $(top_srcdir)/m4/getcwd-abort-bug.m4 \
- $(top_srcdir)/m4/getcwd-path-max.m4 $(top_srcdir)/m4/getcwd.m4 \
- $(top_srcdir)/m4/getdate.m4 $(top_srcdir)/m4/getdelim.m4 \
- $(top_srcdir)/m4/getgroups.m4 $(top_srcdir)/m4/gethostname.m4 \
- $(top_srcdir)/m4/gethrxtime.m4 $(top_srcdir)/m4/getline.m4 \
- $(top_srcdir)/m4/getloadavg.m4 $(top_srcdir)/m4/getndelim2.m4 \
- $(top_srcdir)/m4/getopt.m4 $(top_srcdir)/m4/getpagesize.m4 \
- $(top_srcdir)/m4/getpass.m4 $(top_srcdir)/m4/gettext.m4 \
- $(top_srcdir)/m4/gettime.m4 $(top_srcdir)/m4/gettimeofday.m4 \
- $(top_srcdir)/m4/getugroups.m4 \
- $(top_srcdir)/m4/getusershell.m4 $(top_srcdir)/m4/glibc21.m4 \
- $(top_srcdir)/m4/gnulib-common.m4 \
- $(top_srcdir)/m4/gnulib-comp.m4 \
- $(top_srcdir)/m4/group-member.m4 \
- $(top_srcdir)/m4/hard-locale.m4 $(top_srcdir)/m4/hash.m4 \
- $(top_srcdir)/m4/host-os.m4 $(top_srcdir)/m4/human.m4 \
- $(top_srcdir)/m4/i-ring.m4 $(top_srcdir)/m4/iconv.m4 \
- $(top_srcdir)/m4/idcache.m4 $(top_srcdir)/m4/inet_ntop.m4 \
- $(top_srcdir)/m4/inline.m4 $(top_srcdir)/m4/intmax_t.m4 \
- $(top_srcdir)/m4/inttostr.m4 $(top_srcdir)/m4/inttypes-pri.m4 \
- $(top_srcdir)/m4/inttypes.m4 $(top_srcdir)/m4/inttypes_h.m4 \
- $(top_srcdir)/m4/isapipe.m4 $(top_srcdir)/m4/jm-macros.m4 \
- $(top_srcdir)/m4/jm-winsz1.m4 $(top_srcdir)/m4/jm-winsz2.m4 \
- $(top_srcdir)/m4/lchmod.m4 $(top_srcdir)/m4/lchown.m4 \
- $(top_srcdir)/m4/lib-check.m4 $(top_srcdir)/m4/lib-ignore.m4 \
- $(top_srcdir)/m4/lib-ld.m4 $(top_srcdir)/m4/lib-link.m4 \
- $(top_srcdir)/m4/lib-prefix.m4 $(top_srcdir)/m4/link-follow.m4 \
- $(top_srcdir)/m4/localcharset.m4 \
- $(top_srcdir)/m4/long-options.m4 \
- $(top_srcdir)/m4/longdouble.m4 $(top_srcdir)/m4/longlong.m4 \
- $(top_srcdir)/m4/ls-mntd-fs.m4 $(top_srcdir)/m4/lstat.m4 \
- $(top_srcdir)/m4/mbchar.m4 $(top_srcdir)/m4/mbiter.m4 \
- $(top_srcdir)/m4/mbrtowc.m4 $(top_srcdir)/m4/mbscasecmp.m4 \
- $(top_srcdir)/m4/mbstate_t.m4 $(top_srcdir)/m4/mbswidth.m4 \
- $(top_srcdir)/m4/md5.m4 $(top_srcdir)/m4/memcasecmp.m4 \
- $(top_srcdir)/m4/memchr.m4 $(top_srcdir)/m4/memcmp.m4 \
- $(top_srcdir)/m4/memcoll.m4 $(top_srcdir)/m4/memcpy.m4 \
- $(top_srcdir)/m4/memmove.m4 $(top_srcdir)/m4/mempcpy.m4 \
- $(top_srcdir)/m4/memrchr.m4 $(top_srcdir)/m4/memset.m4 \
- $(top_srcdir)/m4/memxfrm.m4 $(top_srcdir)/m4/mkancesdirs.m4 \
- $(top_srcdir)/m4/mkdir-p.m4 $(top_srcdir)/m4/mkdir-slash.m4 \
- $(top_srcdir)/m4/mkstemp.m4 $(top_srcdir)/m4/mktime.m4 \
- $(top_srcdir)/m4/modechange.m4 $(top_srcdir)/m4/mountlist.m4 \
- $(top_srcdir)/m4/mpsort.m4 $(top_srcdir)/m4/nanosleep.m4 \
- $(top_srcdir)/m4/netinet_in_h.m4 $(top_srcdir)/m4/nls.m4 \
- $(top_srcdir)/m4/openat.m4 $(top_srcdir)/m4/pathmax.m4 \
- $(top_srcdir)/m4/perl.m4 $(top_srcdir)/m4/physmem.m4 \
- $(top_srcdir)/m4/po.m4 $(top_srcdir)/m4/posixtm.m4 \
- $(top_srcdir)/m4/posixver.m4 $(top_srcdir)/m4/prereq.m4 \
- $(top_srcdir)/m4/progtest.m4 $(top_srcdir)/m4/putenv.m4 \
- $(top_srcdir)/m4/quote.m4 $(top_srcdir)/m4/quotearg.m4 \
- $(top_srcdir)/m4/randint.m4 $(top_srcdir)/m4/randperm.m4 \
- $(top_srcdir)/m4/randread.m4 $(top_srcdir)/m4/readlink.m4 \
- $(top_srcdir)/m4/readtokens.m4 $(top_srcdir)/m4/readutmp.m4 \
- $(top_srcdir)/m4/regex.m4 \
- $(top_srcdir)/m4/rename-dest-slash.m4 \
- $(top_srcdir)/m4/rename.m4 $(top_srcdir)/m4/rmdir-errno.m4 \
- $(top_srcdir)/m4/rmdir.m4 $(top_srcdir)/m4/root-dev-ino.m4 \
- $(top_srcdir)/m4/rpmatch.m4 $(top_srcdir)/m4/safe-read.m4 \
- $(top_srcdir)/m4/safe-write.m4 $(top_srcdir)/m4/same.m4 \
- $(top_srcdir)/m4/save-cwd.m4 $(top_srcdir)/m4/savedir.m4 \
- $(top_srcdir)/m4/savewd.m4 $(top_srcdir)/m4/setenv.m4 \
- $(top_srcdir)/m4/settime.m4 $(top_srcdir)/m4/sha1.m4 \
- $(top_srcdir)/m4/sha256.m4 $(top_srcdir)/m4/sha512.m4 \
- $(top_srcdir)/m4/sig2str.m4 $(top_srcdir)/m4/snprintf.m4 \
- $(top_srcdir)/m4/socklen.m4 $(top_srcdir)/m4/sockpfaf.m4 \
- $(top_srcdir)/m4/ssize_t.m4 $(top_srcdir)/m4/st_dm_mode.m4 \
- $(top_srcdir)/m4/stat-prog.m4 $(top_srcdir)/m4/stat-time.m4 \
- $(top_srcdir)/m4/stdarg.m4 $(top_srcdir)/m4/stdbool.m4 \
- $(top_srcdir)/m4/stdint.m4 $(top_srcdir)/m4/stdint_h.m4 \
- $(top_srcdir)/m4/stdio-safer.m4 $(top_srcdir)/m4/stdio_h.m4 \
- $(top_srcdir)/m4/stdlib-safer.m4 $(top_srcdir)/m4/stdlib_h.m4 \
- $(top_srcdir)/m4/stpcpy.m4 $(top_srcdir)/m4/strcspn.m4 \
- $(top_srcdir)/m4/strdup.m4 $(top_srcdir)/m4/strftime.m4 \
- $(top_srcdir)/m4/string_h.m4 $(top_srcdir)/m4/strndup.m4 \
- $(top_srcdir)/m4/strnlen.m4 $(top_srcdir)/m4/strnumcmp.m4 \
- $(top_srcdir)/m4/strpbrk.m4 $(top_srcdir)/m4/strtod.m4 \
- $(top_srcdir)/m4/strtoimax.m4 $(top_srcdir)/m4/strtol.m4 \
- $(top_srcdir)/m4/strtoll.m4 $(top_srcdir)/m4/strtoul.m4 \
- $(top_srcdir)/m4/strtoull.m4 $(top_srcdir)/m4/strtoumax.m4 \
- $(top_srcdir)/m4/strverscmp.m4 \
- $(top_srcdir)/m4/sys_socket_h.m4 \
- $(top_srcdir)/m4/sys_stat_h.m4 $(top_srcdir)/m4/sys_time_h.m4 \
- $(top_srcdir)/m4/tempname.m4 $(top_srcdir)/m4/time_h.m4 \
- $(top_srcdir)/m4/time_r.m4 $(top_srcdir)/m4/timespec.m4 \
- $(top_srcdir)/m4/tm_gmtoff.m4 $(top_srcdir)/m4/tzset.m4 \
- $(top_srcdir)/m4/unicodeio.m4 $(top_srcdir)/m4/unistd-safer.m4 \
- $(top_srcdir)/m4/unistd_h.m4 $(top_srcdir)/m4/unlink-busy.m4 \
- $(top_srcdir)/m4/unlinkdir.m4 $(top_srcdir)/m4/unlocked-io.m4 \
- $(top_srcdir)/m4/uptime.m4 $(top_srcdir)/m4/userspec.m4 \
- $(top_srcdir)/m4/utimbuf.m4 $(top_srcdir)/m4/utime.m4 \
- $(top_srcdir)/m4/utimecmp.m4 $(top_srcdir)/m4/utimens.m4 \
- $(top_srcdir)/m4/utimes-null.m4 $(top_srcdir)/m4/utimes.m4 \
- $(top_srcdir)/m4/vasnprintf.m4 $(top_srcdir)/m4/vasprintf.m4 \
- $(top_srcdir)/m4/wchar.m4 $(top_srcdir)/m4/wchar_t.m4 \
- $(top_srcdir)/m4/wctype.m4 $(top_srcdir)/m4/wcwidth.m4 \
- $(top_srcdir)/m4/wint_t.m4 $(top_srcdir)/m4/xalloc.m4 \
- $(top_srcdir)/m4/xfts.m4 $(top_srcdir)/m4/xgetcwd.m4 \
- $(top_srcdir)/m4/xnanosleep.m4 $(top_srcdir)/m4/xstrndup.m4 \
- $(top_srcdir)/m4/xstrtod.m4 $(top_srcdir)/m4/xstrtol.m4 \
- $(top_srcdir)/m4/yesno.m4 $(top_srcdir)/configure.ac
-am__configure_deps = $(am__aclocal_m4_deps) $(CONFIGURE_DEPENDENCIES) \
- $(ACLOCAL_M4)
-mkinstalldirs = $(install_sh) -d
-CONFIG_HEADER = $(top_builddir)/lib/config.h
-CONFIG_CLEAN_FILES =
-SCRIPTS = $(noinst_SCRIPTS)
-SOURCES =
-DIST_SOURCES =
-DISTFILES = $(DIST_COMMON) $(DIST_SOURCES) $(TEXINFOS) $(EXTRA_DIST)
-ABSOLUTE_DIRENT_H = @ABSOLUTE_DIRENT_H@
-ABSOLUTE_FCNTL_H = @ABSOLUTE_FCNTL_H@
-ABSOLUTE_INTTYPES_H = @ABSOLUTE_INTTYPES_H@
-ABSOLUTE_NETINET_IN_H = @ABSOLUTE_NETINET_IN_H@
-ABSOLUTE_STDINT_H = @ABSOLUTE_STDINT_H@
-ABSOLUTE_STDIO_H = @ABSOLUTE_STDIO_H@
-ABSOLUTE_STDLIB_H = @ABSOLUTE_STDLIB_H@
-ABSOLUTE_STRING_H = @ABSOLUTE_STRING_H@
-ABSOLUTE_SYS_SOCKET_H = @ABSOLUTE_SYS_SOCKET_H@
-ABSOLUTE_SYS_STAT_H = @ABSOLUTE_SYS_STAT_H@
-ABSOLUTE_SYS_TIME_H = @ABSOLUTE_SYS_TIME_H@
-ABSOLUTE_TIME_H = @ABSOLUTE_TIME_H@
-ABSOLUTE_UNISTD_H = @ABSOLUTE_UNISTD_H@
-ABSOLUTE_WCHAR_H = @ABSOLUTE_WCHAR_H@
-ABSOLUTE_WCTYPE_H = @ABSOLUTE_WCTYPE_H@
-ACLOCAL = @ACLOCAL@
-ALLOCA = @ALLOCA@
-ALLOCA_H = @ALLOCA_H@
-AMTAR = @AMTAR@
-ARPA_INET_H = @ARPA_INET_H@
-AUTOCONF = @AUTOCONF@
-AUTOHEADER = @AUTOHEADER@
-AUTOMAKE = @AUTOMAKE@
-AWK = @AWK@
-BITSIZEOF_PTRDIFF_T = @BITSIZEOF_PTRDIFF_T@
-BITSIZEOF_SIG_ATOMIC_T = @BITSIZEOF_SIG_ATOMIC_T@
-BITSIZEOF_SIZE_T = @BITSIZEOF_SIZE_T@
-BITSIZEOF_WCHAR_T = @BITSIZEOF_WCHAR_T@
-BITSIZEOF_WINT_T = @BITSIZEOF_WINT_T@
-CC = @CC@
-CCDEPMODE = @CCDEPMODE@
-CFLAGS = @CFLAGS@
-CPP = @CPP@
-CPPFLAGS = @CPPFLAGS@
-CYGPATH_W = @CYGPATH_W@
-DEFAULT_POSIX2_VERSION = @DEFAULT_POSIX2_VERSION@
-DEFS = @DEFS@
-DEPDIR = @DEPDIR@
-DF_PROG = @DF_PROG@
-DIRENT_H = @DIRENT_H@
-ECHO_C = @ECHO_C@
-ECHO_N = @ECHO_N@
-ECHO_T = @ECHO_T@
-EGREP = @EGREP@
-EOVERFLOW = @EOVERFLOW@
-EXEEXT = @EXEEXT@
-FCNTL_H = @FCNTL_H@
-FNMATCH_H = @FNMATCH_H@
-GETLOADAVG_LIBS = @GETLOADAVG_LIBS@
-GETOPT_H = @GETOPT_H@
-GLIBC21 = @GLIBC21@
-GMSGFMT = @GMSGFMT@
-GMSGFMT_015 = @GMSGFMT_015@
-GNULIB_CHOWN = @GNULIB_CHOWN@
-GNULIB_DUP2 = @GNULIB_DUP2@
-GNULIB_FCHDIR = @GNULIB_FCHDIR@
-GNULIB_FPRINTF_POSIX = @GNULIB_FPRINTF_POSIX@
-GNULIB_FTRUNCATE = @GNULIB_FTRUNCATE@
-GNULIB_GETCWD = @GNULIB_GETCWD@
-GNULIB_GETLOGIN_R = @GNULIB_GETLOGIN_R@
-GNULIB_GETSUBOPT = @GNULIB_GETSUBOPT@
-GNULIB_IMAXABS = @GNULIB_IMAXABS@
-GNULIB_IMAXDIV = @GNULIB_IMAXDIV@
-GNULIB_MBSCASECMP = @GNULIB_MBSCASECMP@
-GNULIB_MBSCASESTR = @GNULIB_MBSCASESTR@
-GNULIB_MBSCHR = @GNULIB_MBSCHR@
-GNULIB_MBSCSPN = @GNULIB_MBSCSPN@
-GNULIB_MBSLEN = @GNULIB_MBSLEN@
-GNULIB_MBSNCASECMP = @GNULIB_MBSNCASECMP@
-GNULIB_MBSPBRK = @GNULIB_MBSPBRK@
-GNULIB_MBSPCASECMP = @GNULIB_MBSPCASECMP@
-GNULIB_MBSRCHR = @GNULIB_MBSRCHR@
-GNULIB_MBSSEP = @GNULIB_MBSSEP@
-GNULIB_MBSSPN = @GNULIB_MBSSPN@
-GNULIB_MBSSTR = @GNULIB_MBSSTR@
-GNULIB_MBSTOK_R = @GNULIB_MBSTOK_R@
-GNULIB_MEMMEM = @GNULIB_MEMMEM@
-GNULIB_MEMPCPY = @GNULIB_MEMPCPY@
-GNULIB_MEMRCHR = @GNULIB_MEMRCHR@
-GNULIB_MKDTEMP = @GNULIB_MKDTEMP@
-GNULIB_MKSTEMP = @GNULIB_MKSTEMP@
-GNULIB_PRINTF_POSIX = @GNULIB_PRINTF_POSIX@
-GNULIB_READLINK = @GNULIB_READLINK@
-GNULIB_SNPRINTF = @GNULIB_SNPRINTF@
-GNULIB_SPRINTF_POSIX = @GNULIB_SPRINTF_POSIX@
-GNULIB_STPCPY = @GNULIB_STPCPY@
-GNULIB_STPNCPY = @GNULIB_STPNCPY@
-GNULIB_STRCASESTR = @GNULIB_STRCASESTR@
-GNULIB_STRCHRNUL = @GNULIB_STRCHRNUL@
-GNULIB_STRDUP = @GNULIB_STRDUP@
-GNULIB_STRNDUP = @GNULIB_STRNDUP@
-GNULIB_STRNLEN = @GNULIB_STRNLEN@
-GNULIB_STRPBRK = @GNULIB_STRPBRK@
-GNULIB_STRSEP = @GNULIB_STRSEP@
-GNULIB_STRTOIMAX = @GNULIB_STRTOIMAX@
-GNULIB_STRTOK_R = @GNULIB_STRTOK_R@
-GNULIB_STRTOUMAX = @GNULIB_STRTOUMAX@
-GNULIB_VFPRINTF_POSIX = @GNULIB_VFPRINTF_POSIX@
-GNULIB_VPRINTF_POSIX = @GNULIB_VPRINTF_POSIX@
-GNULIB_VSNPRINTF = @GNULIB_VSNPRINTF@
-GNULIB_VSPRINTF_POSIX = @GNULIB_VSPRINTF_POSIX@
-GNU_PACKAGE = @GNU_PACKAGE@
-GREP = @GREP@
-HAVE_DECL_GETLOGIN_R = @HAVE_DECL_GETLOGIN_R@
-HAVE_DECL_IMAXABS = @HAVE_DECL_IMAXABS@
-HAVE_DECL_IMAXDIV = @HAVE_DECL_IMAXDIV@
-HAVE_DECL_MEMMEM = @HAVE_DECL_MEMMEM@
-HAVE_DECL_MEMRCHR = @HAVE_DECL_MEMRCHR@
-HAVE_DECL_SNPRINTF = @HAVE_DECL_SNPRINTF@
-HAVE_DECL_STRDUP = @HAVE_DECL_STRDUP@
-HAVE_DECL_STRNCASECMP = @HAVE_DECL_STRNCASECMP@
-HAVE_DECL_STRNDUP = @HAVE_DECL_STRNDUP@
-HAVE_DECL_STRNLEN = @HAVE_DECL_STRNLEN@
-HAVE_DECL_STRTOIMAX = @HAVE_DECL_STRTOIMAX@
-HAVE_DECL_STRTOK_R = @HAVE_DECL_STRTOK_R@
-HAVE_DECL_STRTOUMAX = @HAVE_DECL_STRTOUMAX@
-HAVE_DECL_VSNPRINTF = @HAVE_DECL_VSNPRINTF@
-HAVE_DUP2 = @HAVE_DUP2@
-HAVE_FTRUNCATE = @HAVE_FTRUNCATE@
-HAVE_GETSUBOPT = @HAVE_GETSUBOPT@
-HAVE_INTTYPES_H = @HAVE_INTTYPES_H@
-HAVE_LONG_LONG_INT = @HAVE_LONG_LONG_INT@
-HAVE_MEMPCPY = @HAVE_MEMPCPY@
-HAVE_MKDTEMP = @HAVE_MKDTEMP@
-HAVE_NETINET_IN_H = @HAVE_NETINET_IN_H@
-HAVE_READLINK = @HAVE_READLINK@
-HAVE_SIGNED_SIG_ATOMIC_T = @HAVE_SIGNED_SIG_ATOMIC_T@
-HAVE_SIGNED_WCHAR_T = @HAVE_SIGNED_WCHAR_T@
-HAVE_SIGNED_WINT_T = @HAVE_SIGNED_WINT_T@
-HAVE_STDINT_H = @HAVE_STDINT_H@
-HAVE_STPCPY = @HAVE_STPCPY@
-HAVE_STPNCPY = @HAVE_STPNCPY@
-HAVE_STRCASECMP = @HAVE_STRCASECMP@
-HAVE_STRCASESTR = @HAVE_STRCASESTR@
-HAVE_STRCHRNUL = @HAVE_STRCHRNUL@
-HAVE_STRNDUP = @HAVE_STRNDUP@
-HAVE_STRPBRK = @HAVE_STRPBRK@
-HAVE_STRSEP = @HAVE_STRSEP@
-HAVE_STRUCT_TIMEVAL = @HAVE_STRUCT_TIMEVAL@
-HAVE_SYS_BITYPES_H = @HAVE_SYS_BITYPES_H@
-HAVE_SYS_INTTYPES_H = @HAVE_SYS_INTTYPES_H@
-HAVE_SYS_SOCKET_H = @HAVE_SYS_SOCKET_H@
-HAVE_SYS_TIME_H = @HAVE_SYS_TIME_H@
-HAVE_SYS_TYPES_H = @HAVE_SYS_TYPES_H@
-HAVE_UNISTD_H = @HAVE_UNISTD_H@
-HAVE_UNSIGNED_LONG_LONG_INT = @HAVE_UNSIGNED_LONG_LONG_INT@
-HAVE_WCTYPE_H = @HAVE_WCTYPE_H@
-HAVE_WINSOCK2_H = @HAVE_WINSOCK2_H@
-HAVE_WINT_T = @HAVE_WINT_T@
-HAVE_WS2TCPIP_H = @HAVE_WS2TCPIP_H@
-HAVE__BOOL = @HAVE__BOOL@
-HELP2MAN = @HELP2MAN@
-INSTALL = @INSTALL@
-INSTALL_DATA = @INSTALL_DATA@
-INSTALL_PROGRAM = @INSTALL_PROGRAM@
-INSTALL_SCRIPT = @INSTALL_SCRIPT@
-INSTALL_STRIP_PROGRAM = @INSTALL_STRIP_PROGRAM@
-INTLLIBS = @INTLLIBS@
-INTL_MACOSX_LIBS = @INTL_MACOSX_LIBS@
-INTTYPES_H = @INTTYPES_H@
-KMEM_GROUP = @KMEM_GROUP@
-LDFLAGS = @LDFLAGS@
-LIBCOREUTILS_LIBDEPS = @LIBCOREUTILS_LIBDEPS@
-LIBCOREUTILS_LTLIBDEPS = @LIBCOREUTILS_LTLIBDEPS@
-LIBICONV = @LIBICONV@
-LIBINTL = @LIBINTL@
-LIBOBJS = @LIBOBJS@
-LIBS = @LIBS@
-LIB_ACL = @LIB_ACL@
-LIB_ACL_TRIVIAL = @LIB_ACL_TRIVIAL@
-LIB_CLOCK_GETTIME = @LIB_CLOCK_GETTIME@
-LIB_CRYPT = @LIB_CRYPT@
-LIB_EACCESS = @LIB_EACCESS@
-LIB_FDATASYNC = @LIB_FDATASYNC@
-LIB_GETHRXTIME = @LIB_GETHRXTIME@
-LIB_NANOSLEEP = @LIB_NANOSLEEP@
-LN_S = @LN_S@
-LTLIBICONV = @LTLIBICONV@
-LTLIBINTL = @LTLIBINTL@
-LTLIBOBJS = @LTLIBOBJS@
-MAKEINFO = @MAKEINFO@
-MAN = @MAN@
-MKDIR_P = @MKDIR_P@
-MSGFMT = @MSGFMT@
-MSGFMT_015 = @MSGFMT_015@
-MSGMERGE = @MSGMERGE@
-NEED_SETGID = @NEED_SETGID@
-NETINET_IN_H = @NETINET_IN_H@
-OBJEXT = @OBJEXT@
-OPTIONAL_BIN_PROGS = @OPTIONAL_BIN_PROGS@
-PACKAGE = @PACKAGE@
-PACKAGE_BUGREPORT = @PACKAGE_BUGREPORT@
-PACKAGE_NAME = @PACKAGE_NAME@
-PACKAGE_STRING = @PACKAGE_STRING@
-PACKAGE_TARNAME = @PACKAGE_TARNAME@
-PACKAGE_VERSION = @PACKAGE_VERSION@
-PATH_SEPARATOR = @PATH_SEPARATOR@
-PERL = @PERL@
-POSUB = @POSUB@
-POW_LIB = @POW_LIB@
-PRIPTR_PREFIX = @PRIPTR_PREFIX@
-PRI_MACROS_BROKEN = @PRI_MACROS_BROKEN@
-PTRDIFF_T_SUFFIX = @PTRDIFF_T_SUFFIX@
-RANLIB = @RANLIB@
-REPLACE_CHOWN = @REPLACE_CHOWN@
-REPLACE_FCHDIR = @REPLACE_FCHDIR@
-REPLACE_FPRINTF = @REPLACE_FPRINTF@
-REPLACE_GETCWD = @REPLACE_GETCWD@
-REPLACE_GETTIMEOFDAY = @REPLACE_GETTIMEOFDAY@
-REPLACE_LOCALTIME_R = @REPLACE_LOCALTIME_R@
-REPLACE_MKSTEMP = @REPLACE_MKSTEMP@
-REPLACE_NANOSLEEP = @REPLACE_NANOSLEEP@
-REPLACE_PRINTF = @REPLACE_PRINTF@
-REPLACE_SNPRINTF = @REPLACE_SNPRINTF@
-REPLACE_SPRINTF = @REPLACE_SPRINTF@
-REPLACE_STRPTIME = @REPLACE_STRPTIME@
-REPLACE_TIMEGM = @REPLACE_TIMEGM@
-REPLACE_VFPRINTF = @REPLACE_VFPRINTF@
-REPLACE_VPRINTF = @REPLACE_VPRINTF@
-REPLACE_VSNPRINTF = @REPLACE_VSNPRINTF@
-REPLACE_VSPRINTF = @REPLACE_VSPRINTF@
-SEQ_LIBM = @SEQ_LIBM@
-SET_MAKE = @SET_MAKE@
-SHELL = @SHELL@
-SIG_ATOMIC_T_SUFFIX = @SIG_ATOMIC_T_SUFFIX@
-SIZE_T_SUFFIX = @SIZE_T_SUFFIX@
-STDBOOL_H = @STDBOOL_H@
-STDINT_H = @STDINT_H@
-STRIP = @STRIP@
-SYS_SOCKET_H = @SYS_SOCKET_H@
-SYS_STAT_H = @SYS_STAT_H@
-SYS_TIME_H = @SYS_TIME_H@
-SYS_TIME_H_DEFINES_STRUCT_TIMESPEC = @SYS_TIME_H_DEFINES_STRUCT_TIMESPEC@
-TIME_H_DEFINES_STRUCT_TIMESPEC = @TIME_H_DEFINES_STRUCT_TIMESPEC@
-U = @U@
-USE_NLS = @USE_NLS@
-VERSION = @VERSION@
-WCHAR_H = @WCHAR_H@
-WCHAR_T_SUFFIX = @WCHAR_T_SUFFIX@
-WCTYPE_H = @WCTYPE_H@
-WINT_T_SUFFIX = @WINT_T_SUFFIX@
-XGETTEXT = @XGETTEXT@
-XGETTEXT_015 = @XGETTEXT_015@
-YACC = @YACC@
-YFLAGS = @YFLAGS@
-abs_builddir = @abs_builddir@
-abs_srcdir = @abs_srcdir@
-abs_top_builddir = @abs_top_builddir@
-abs_top_srcdir = @abs_top_srcdir@
-ac_ct_CC = @ac_ct_CC@
-am__include = @am__include@
-am__leading_dot = @am__leading_dot@
-am__quote = @am__quote@
-am__tar = @am__tar@
-am__untar = @am__untar@
-bindir = @bindir@
-build = @build@
-build_alias = @build_alias@
-build_cpu = @build_cpu@
-build_os = @build_os@
-build_vendor = @build_vendor@
-builddir = @builddir@
-datadir = @datadir@
-datarootdir = @datarootdir@
-docdir = @docdir@
-dvidir = @dvidir@
-exec_prefix = @exec_prefix@
-gl_LIBOBJS = @gl_LIBOBJS@
-gl_LTLIBOBJS = @gl_LTLIBOBJS@
-host = @host@
-host_alias = @host_alias@
-host_cpu = @host_cpu@
-host_os = @host_os@
-host_vendor = @host_vendor@
-htmldir = @htmldir@
-includedir = @includedir@
-infodir = @infodir@
-install_sh = @install_sh@
-libdir = @libdir@
-libexecdir = @libexecdir@
-localedir = @localedir@
-localstatedir = @localstatedir@
-mandir = @mandir@
-mkdir_p = @mkdir_p@
-oldincludedir = @oldincludedir@
-pdfdir = @pdfdir@
-prefix = @prefix@
-program_transform_name = @program_transform_name@
-psdir = @psdir@
-sbindir = @sbindir@
-sharedstatedir = @sharedstatedir@
-srcdir = @srcdir@
-sysconfdir = @sysconfdir@
-target_alias = @target_alias@
-top_builddir = @top_builddir@
-top_srcdir = @top_srcdir@
-x = uniq
-explicit =
-maint_gen = 1.I 1.X 2.I 2.X 3.I 3.X 4.I 4.X 5.I 5.X 6.I 6.X 7.I 7.X 8.I 8.X \
-9.I 9.X 10.I 10.X 11.I 11.X 12.I 12.X 13.I 13.X 20.I 20.X 21.I 21.X 22.I 22.X \
-23.I 23.X obs30.I obs30.X 31.I 31.X 32.I 32.X 33.I 33.X 34.I 34.X 35.I 35.X \
-obs-plus40.I obs-plus40.X obs-plus41.I obs-plus41.X 42.I 42.X 43.I 43.X \
-obs-plus44.I obs-plus44.X obs-plus45.I obs-plus45.X 50.I 50.X 51.I 51.X 52.I \
-52.X 53.I 53.X 54.I 54.X 55.I 55.X 56.I 56.X 57.I 57.X 60.I 60.X 61.I 61.X \
-62.I 62.X 63.I 63.X 64.I 64.X 65.I 65.X 90.I 90.X 91.I 91.X 92.I 92.X 93.I \
-93.X 94.I 94.X 101.I 101.X 102.I 102.X 110.I 110.X 111.I 111.X 112.I 112.X \
-113.I 113.X 114.I 114.X 115.I 115.X 116.I 116.X 117.I 117.X 118.I 118.X 119.I \
-119.X 120.I 120.X 121.I 121.X
-
-run_gen = 1.O 1.E 2.O 2.E 3.O 3.E 4.O 4.E 5.O 5.E 6.O 6.E 7.O 7.E 8.O 8.E 9.O \
-9.E 10.O 10.E 11.O 11.E 12.O 12.E 13.O 13.E 20.O 20.E 21.O 21.E 22.O 22.E \
-23.O 23.E obs30.O obs30.E 31.O 31.E 32.O 32.E 33.O 33.E 34.O 34.E 35.O 35.E \
-obs-plus40.O obs-plus40.E obs-plus41.O obs-plus41.E 42.O 42.E 43.O 43.E \
-obs-plus44.O obs-plus44.E obs-plus45.O obs-plus45.E 50.O 50.E 51.O 51.E 52.O \
-52.E 53.O 53.E 54.O 54.E 55.O 55.E 56.O 56.E 57.O 57.E 60.O 60.E 61.O 61.E \
-62.O 62.E 63.O 63.E 64.O 64.E 65.O 65.E 90.O 90.E 91.O 91.E 92.O 92.E 93.O \
-93.E 94.O 94.E 101.O 101.E 102.O 102.E 110.O 110.E 111.O 111.E 112.O 112.E \
-113.O 113.E 114.O 114.E 115.O 115.E 116.O 116.E 117.O 117.E 118.O 118.E 119.O \
-119.E 120.O 120.E 121.O 121.E
-
-EXTRA_DIST = Test.pm $x-tests $(explicit) $(maint_gen)
-noinst_SCRIPTS = $x-tests
-TESTS_ENVIRONMENT = \
- CU_TEST_NAME=`basename $(abs_srcdir)`,$$tst \
- PATH="$(VG_PATH_PREFIX)`pwd`/../../src$(PATH_SEPARATOR)$$PATH"
-
-editpl = sed -e 's,@''PERL''@,$(PERL),g' -e 's,@''srcdir''@,$(srcdir),g'
-TESTS = $x-tests
-mk_script = $(srcdir)/../mk-script
-MAINTAINERCLEANFILES = $x-tests $(maint_gen)
-CLEANFILES = $(run_gen)
-all: all-am
-
-.SUFFIXES:
-$(srcdir)/Makefile.in: $(srcdir)/Makefile.am $(am__configure_deps)
- @for dep in $?; do \
- case '$(am__configure_deps)' in \
- *$$dep*) \
- cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh \
- && exit 0; \
- exit 1;; \
- esac; \
- done; \
- echo ' cd $(top_srcdir) && $(AUTOMAKE) --gnu tests/uniq/Makefile'; \
- cd $(top_srcdir) && \
- $(AUTOMAKE) --gnu tests/uniq/Makefile
-.PRECIOUS: Makefile
-Makefile: $(srcdir)/Makefile.in $(top_builddir)/config.status
- @case '$?' in \
- *config.status*) \
- cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh;; \
- *) \
- echo ' cd $(top_builddir) && $(SHELL) ./config.status $(subdir)/$@ $(am__depfiles_maybe)'; \
- cd $(top_builddir) && $(SHELL) ./config.status $(subdir)/$@ $(am__depfiles_maybe);; \
- esac;
-
-$(top_builddir)/config.status: $(top_srcdir)/configure $(CONFIG_STATUS_DEPENDENCIES)
- cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh
-
-$(top_srcdir)/configure: $(am__configure_deps)
- cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh
-$(ACLOCAL_M4): $(am__aclocal_m4_deps)
- cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh
-tags: TAGS
-TAGS:
-
-ctags: CTAGS
-CTAGS:
-
-
-check-TESTS: $(TESTS)
- @failed=0; all=0; xfail=0; xpass=0; skip=0; ws='[ ]'; \
- srcdir=$(srcdir); export srcdir; \
- list=' $(TESTS) '; \
- if test -n "$$list"; then \
- for tst in $$list; do \
- if test -f ./$$tst; then dir=./; \
- elif test -f $$tst; then dir=; \
- else dir="$(srcdir)/"; fi; \
- if $(TESTS_ENVIRONMENT) $${dir}$$tst; then \
- all=`expr $$all + 1`; \
- case " $(XFAIL_TESTS) " in \
- *$$ws$$tst$$ws*) \
- xpass=`expr $$xpass + 1`; \
- failed=`expr $$failed + 1`; \
- echo "XPASS: $$tst"; \
- ;; \
- *) \
- echo "PASS: $$tst"; \
- ;; \
- esac; \
- elif test $$? -ne 77; then \
- all=`expr $$all + 1`; \
- case " $(XFAIL_TESTS) " in \
- *$$ws$$tst$$ws*) \
- xfail=`expr $$xfail + 1`; \
- echo "XFAIL: $$tst"; \
- ;; \
- *) \
- failed=`expr $$failed + 1`; \
- echo "FAIL: $$tst"; \
- ;; \
- esac; \
- else \
- skip=`expr $$skip + 1`; \
- echo "SKIP: $$tst"; \
- fi; \
- done; \
- if test "$$failed" -eq 0; then \
- if test "$$xfail" -eq 0; then \
- banner="All $$all tests passed"; \
- else \
- banner="All $$all tests behaved as expected ($$xfail expected failures)"; \
- fi; \
- else \
- if test "$$xpass" -eq 0; then \
- banner="$$failed of $$all tests failed"; \
- else \
- banner="$$failed of $$all tests did not behave as expected ($$xpass unexpected passes)"; \
- fi; \
- fi; \
- dashes="$$banner"; \
- skipped=""; \
- if test "$$skip" -ne 0; then \
- skipped="($$skip tests were not run)"; \
- test `echo "$$skipped" | wc -c` -le `echo "$$banner" | wc -c` || \
- dashes="$$skipped"; \
- fi; \
- report=""; \
- if test "$$failed" -ne 0 && test -n "$(PACKAGE_BUGREPORT)"; then \
- report="Please report to $(PACKAGE_BUGREPORT)"; \
- test `echo "$$report" | wc -c` -le `echo "$$banner" | wc -c` || \
- dashes="$$report"; \
- fi; \
- dashes=`echo "$$dashes" | sed s/./=/g`; \
- echo "$$dashes"; \
- echo "$$banner"; \
- test -z "$$skipped" || echo "$$skipped"; \
- test -z "$$report" || echo "$$report"; \
- echo "$$dashes"; \
- test "$$failed" -eq 0; \
- else :; fi
-
-distdir: $(DISTFILES)
- @srcdirstrip=`echo "$(srcdir)" | sed 's/[].[^$$\\*]/\\\\&/g'`; \
- topsrcdirstrip=`echo "$(top_srcdir)" | sed 's/[].[^$$\\*]/\\\\&/g'`; \
- list='$(DISTFILES)'; \
- dist_files=`for file in $$list; do echo $$file; done | \
- sed -e "s|^$$srcdirstrip/||;t" \
- -e "s|^$$topsrcdirstrip/|$(top_builddir)/|;t"`; \
- case $$dist_files in \
- */*) $(MKDIR_P) `echo "$$dist_files" | \
- sed '/\//!d;s|^|$(distdir)/|;s,/[^/]*$$,,' | \
- sort -u` ;; \
- esac; \
- for file in $$dist_files; do \
- if test -f $$file || test -d $$file; then d=.; else d=$(srcdir); fi; \
- if test -d $$d/$$file; then \
- dir=`echo "/$$file" | sed -e 's,/[^/]*$$,,'`; \
- if test -d $(srcdir)/$$file && test $$d != $(srcdir); then \
- cp -pR $(srcdir)/$$file $(distdir)$$dir || exit 1; \
- fi; \
- cp -pR $$d/$$file $(distdir)$$dir || exit 1; \
- else \
- test -f $(distdir)/$$file \
- || cp -p $$d/$$file $(distdir)/$$file \
- || exit 1; \
- fi; \
- done
-check-am: all-am
- $(MAKE) $(AM_MAKEFLAGS) check-TESTS
-check: check-am
-all-am: Makefile $(SCRIPTS)
-installdirs:
-install: install-am
-install-exec: install-exec-am
-install-data: install-data-am
-uninstall: uninstall-am
-
-install-am: all-am
- @$(MAKE) $(AM_MAKEFLAGS) install-exec-am install-data-am
-
-installcheck: installcheck-am
-install-strip:
- $(MAKE) $(AM_MAKEFLAGS) INSTALL_PROGRAM="$(INSTALL_STRIP_PROGRAM)" \
- install_sh_PROGRAM="$(INSTALL_STRIP_PROGRAM)" INSTALL_STRIP_FLAG=-s \
- `test -z '$(STRIP)' || \
- echo "INSTALL_PROGRAM_ENV=STRIPPROG='$(STRIP)'"` install
-mostlyclean-generic:
-
-clean-generic:
- -test -z "$(CLEANFILES)" || rm -f $(CLEANFILES)
-
-distclean-generic:
- -test -z "$(CONFIG_CLEAN_FILES)" || rm -f $(CONFIG_CLEAN_FILES)
-
-maintainer-clean-generic:
- @echo "This command is intended for maintainers to use"
- @echo "it deletes files that may require special tools to rebuild."
- -test -z "$(MAINTAINERCLEANFILES)" || rm -f $(MAINTAINERCLEANFILES)
-clean: clean-am
-
-clean-am: clean-generic mostlyclean-am
-
-distclean: distclean-am
- -rm -f Makefile
-distclean-am: clean-am distclean-generic
-
-dvi: dvi-am
-
-dvi-am:
-
-html: html-am
-
-info: info-am
-
-info-am:
-
-install-data-am:
-
-install-dvi: install-dvi-am
-
-install-exec-am:
-
-install-html: install-html-am
-
-install-info: install-info-am
-
-install-man:
-
-install-pdf: install-pdf-am
-
-install-ps: install-ps-am
-
-installcheck-am:
-
-maintainer-clean: maintainer-clean-am
- -rm -f Makefile
-maintainer-clean-am: distclean-am maintainer-clean-generic
-
-mostlyclean: mostlyclean-am
-
-mostlyclean-am: mostlyclean-generic
-
-pdf: pdf-am
-
-pdf-am:
-
-ps: ps-am
-
-ps-am:
-
-uninstall-am:
-
-.MAKE: install-am install-strip
-
-.PHONY: all all-am check check-TESTS check-am clean clean-generic \
- distclean distclean-generic distdir dvi dvi-am html html-am \
- info info-am install install-am install-data install-data-am \
- install-dvi install-dvi-am install-exec install-exec-am \
- install-html install-html-am install-info install-info-am \
- install-man install-pdf install-pdf-am install-ps \
- install-ps-am install-strip installcheck installcheck-am \
- installdirs maintainer-clean maintainer-clean-generic \
- mostlyclean mostlyclean-generic pdf pdf-am ps ps-am uninstall \
- uninstall-am
-
-$(srcdir)/$x-tests: $(mk_script) Test.pm Makefile.am
- test '$x' = test && prog=../../src/$x || prog=$x; \
- $(PERL) -I$(srcdir) -w -- $(mk_script) $(srcdir) $$prog > $@.n
- mv $@.n $@
- chmod 755 $@
-
-check: $(maint_gen)
-
-$(srcdir)/Makefile.am: ../Makefile.am.in Test.pm $(mk_script)
- rm -f $@ $@t
- sed -n '1,/^##test-files-begin/p' $(srcdir)/../Makefile.am.in > $@t
- tool=`echo $(subdir)|sed 's/^tests.//;s/-test//'`; \
- echo "x = $$tool" >> $@t
- $(PERL) -I$(srcdir) -w -- $(mk_script) $(srcdir) --list >> $@t
- sed -n '/^##test-files-end/,$$p' $(srcdir)/../Makefile.am.in >> $@t
- chmod -w $@t
- mv $@t $@
-# Tell versions [3.59,3.63) of GNU make to not export all variables.
-# Otherwise a system limit (for SysV at least) may be exceeded.
-.NOEXPORT:
diff --git a/tests/uniq/Test.pm b/tests/uniq/Test.pm
deleted file mode 100644
index 1eda7e2..0000000
--- a/tests/uniq/Test.pm
+++ /dev/null
@@ -1,130 +0,0 @@
-# Test "uniq".
-
-# Copyright (C) 1998, 1999, 2001, 2002, 2003, 2004, 2005, 2006 Free
-# Software Foundation, Inc.
-
-# This program is free software; you can redistribute it and/or modify
-# it under the terms of the GNU General Public License as published by
-# the Free Software Foundation; either version 2 of the License, or
-# (at your option) any later version.
-
-# This program is distributed in the hope that it will be useful,
-# but WITHOUT ANY WARRANTY; without even the implied warranty of
-# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
-# GNU General Public License for more details.
-
-# You should have received a copy of the GNU General Public License
-# along with this program; if not, write to the Free Software
-# Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA
-# 02110-1301, USA.
-
-package Test;
-require 5.002;
-use strict;
-
-$Test::input_via_stdin = 1;
-
-my @tv = (
-# test flags input expected output expected return code
-#
-['1', '', '', '', 0],
-['2', '', "a\na\n", "a\n", 0],
-['3', '', "a\na", "a\n", 0],
-['4', '', "a\nb", "a\nb\n", 0],
-['5', '', "a\na\nb", "a\nb\n", 0],
-['6', '', "b\na\na\n", "b\na\n", 0],
-['7', '', "a\nb\nc\n", "a\nb\nc\n", 0],
-# Make sure that eight bit characters work
-['8', '', "ö\nv\n", "ö\nv\n", 0],
-# Test output of -u option; only unique lines
-['9', '-u', "a\na\n", "", 0],
-['10', '-u', "a\nb\n", "a\nb\n", 0],
-['11', '-u', "a\nb\na\n", "a\nb\na\n", 0],
-['12', '-u', "a\na\n", "", 0],
-['13', '-u', "a\na\n", "", 0],
-#['5', '-u', "a\na\n", "", 0],
-# Test output of -d option; only repeated lines
-['20', '-d', "a\na\n", "a\n", 0],
-['21', '-d', "a\nb\n", "", 0],
-['22', '-d', "a\nb\na\n", "", 0],
-['23', '-d', "a\na\nb\n", "a\n", 0],
-# Check the key options
-# If we skip over fields or characters, is the output deterministic?
-['obs30', '-1', "a a\nb a\n", "a a\n", 0],
-['31', '-f 1',"a a\nb a\n", "a a\n", 0],
-['32', '-f 1',"a a\nb b\n", "a a\nb b\n", 0],
-['33', '-f 1',"a a a\nb a c\n", "a a a\nb a c\n", 0],
-['34', '-f 1',"b a\na a\n", "b a\n", 0],
-['35', '-f 2',"a a c\nb a c\n", "a a c\n", 0],
-# Skip over characters.
-['obs-plus40', '+1', "aaa\naaa\n", "aaa\n", 0],
-['obs-plus41', '+1', "baa\naaa\n", "baa\n", 0],
-['42', '-s 1',"aaa\naaa\n", "aaa\n", 0],
-['43', '-s 2',"baa\naaa\n", "baa\n", 0],
-['obs-plus44', '+1 --', "aaa\naaa\n", "aaa\n", 0],
-['obs-plus45', '+1 --', "baa\naaa\n", "baa\n", 0],
-# Skip over fields and characters
-['50', '-f 1 -s 1',"a aaa\nb ab\n", "a aaa\nb ab\n", 0],
-['51', '-f 1 -s 1',"a aaa\nb aaa\n", "a aaa\n", 0],
-['52', '-s 1 -f 1',"a aaa\nb ab\n", "a aaa\nb ab\n", 0],
-['53', '-s 1 -f 1',"a aaa\nb aaa\n", "a aaa\n", 0],
-# Fixed in 2.0.15
-['54', '-s 4', "abc\nabcd\n", "abc\n", 0],
-# Supported in 2.0.15
-['55', '-s 0', "abc\nabcd\n", "abc\nabcd\n", 0],
-['56', '-s 0', "abc\n", "abc\n", 0],
-['57', '-w 0', "abc\nabcd\n", "abc\n", 0],
-# Only account for a number of characters
-['60', '-w 1',"a a\nb a\n", "a a\nb a\n", 0],
-['61', '-w 3',"a a\nb a\n", "a a\nb a\n", 0],
-['62', '-w 1 -f 1',"a a a\nb a c\n", "a a a\n", 0],
-['63', '-f 1 -w 1',"a a a\nb a c\n", "a a a\n", 0],
-# The blank after field one is checked too
-['64', '-f 1 -w 4',"a a a\nb a c\n", "a a a\nb a c\n", 0],
-['65', '-f 1 -w 3',"a a a\nb a c\n", "a a a\n", 0],
-# Make sure we don't break if the file contains \0
-['90', '', "a\0a\na\n", "a\0a\na\n", 0],
-# Check fields seperated by tabs and by spaces
-['91', '', "a\ta\na a\n", "a\ta\na a\n", 0],
-['92', '-f 1', "a\ta\na a\n", "a\ta\na a\n", 0],
-['93', '-f 2', "a\ta a\na a a\n", "a\ta a\n", 0],
-['94', '-f 1', "a\ta\na\ta\n", "a\ta\n", 0],
-# Check the count option; add tests for other options too
-['101', '-c', "a\nb\n", " 1 a\n 1 b\n", 0],
-['102', '-c', "a\na\n", " 2 a\n", 0],
-# Check the local -D (--all-repeated) option
-['110', '-D', "a\na\n", "a\na\n", 0],
-['111', '-D -w1',"a a\na b\n", "a a\na b\n", 0],
-['112', '-D -c', "a a\na b\n", "", 1],
-['113', '--all-repeated=separate',"a\na\n", "a\na\n", 0],
-['114', '--all-repeated=separate',"a\na\nb\nc\nc\n", "a\na\n\nc\nc\n", 0],
-['115', '--all-repeated=separate',"a\na\nb\nb\nc\n", "a\na\n\nb\nb\n", 0],
-['116', '--all-repeated=prepend', "a\na\n", "\na\na\n", 0],
-['117', '--all-repeated=prepend', "a\na\nb\nc\nc\n", "\na\na\n\nc\nc\n", 0],
-['118', '--all-repeated=prepend', "a\nb\n", "", 0],
-['119', '--all-repeated=badoption', "a\n", "", 1],
-# Check that -d and -u suppress all output, as POSIX requires.
-['120', '-d -u', "a\na\n\b", "", 0],
-['121', '-d -u -w340282366920938463463374607431768211456',
- "a\na\n\b", "", 0],
-);
-
-sub test_vector
-{
- my $t;
- foreach $t (@tv)
- {
- my ($test_name, $flags, $in, $exp, $ret) = @$t;
- $Test::input_via{$test_name} = {REDIR => 0, PIPE => 0};
-
- $test_name =~ /^obs-plus/
- and $Test::env{$test_name} = ['_POSIX2_VERSION=199209'];
-
- $ret
- and $Test::input_via{$test_name} = {REDIR => 0};
- }
-
- return @tv;
-}
-
-1;
diff --git a/tests/uniq/obs-plus40.I b/tests/uniq/obs-plus40.I
deleted file mode 100644
index eaf82f7..0000000
--- a/tests/uniq/obs-plus40.I
+++ /dev/null
@@ -1,2 +0,0 @@
-aaa
-aaa
diff --git a/tests/uniq/obs-plus40.X b/tests/uniq/obs-plus40.X
deleted file mode 100644
index 72943a1..0000000
--- a/tests/uniq/obs-plus40.X
+++ /dev/null
@@ -1 +0,0 @@
-aaa
diff --git a/tests/uniq/obs-plus41.I b/tests/uniq/obs-plus41.I
deleted file mode 100644
index cf26fdc..0000000
--- a/tests/uniq/obs-plus41.I
+++ /dev/null
@@ -1,2 +0,0 @@
-baa
-aaa
diff --git a/tests/uniq/obs-plus41.X b/tests/uniq/obs-plus41.X
deleted file mode 100644
index 397acea..0000000
--- a/tests/uniq/obs-plus41.X
+++ /dev/null
@@ -1 +0,0 @@
-baa
diff --git a/tests/uniq/obs-plus44.I b/tests/uniq/obs-plus44.I
deleted file mode 100644
index eaf82f7..0000000
--- a/tests/uniq/obs-plus44.I
+++ /dev/null
@@ -1,2 +0,0 @@
-aaa
-aaa
diff --git a/tests/uniq/obs-plus44.X b/tests/uniq/obs-plus44.X
deleted file mode 100644
index 72943a1..0000000
--- a/tests/uniq/obs-plus44.X
+++ /dev/null
@@ -1 +0,0 @@
-aaa
diff --git a/tests/uniq/obs-plus45.I b/tests/uniq/obs-plus45.I
deleted file mode 100644
index cf26fdc..0000000
--- a/tests/uniq/obs-plus45.I
+++ /dev/null
@@ -1,2 +0,0 @@
-baa
-aaa
diff --git a/tests/uniq/obs-plus45.X b/tests/uniq/obs-plus45.X
deleted file mode 100644
index 397acea..0000000
--- a/tests/uniq/obs-plus45.X
+++ /dev/null
@@ -1 +0,0 @@
-baa
diff --git a/tests/uniq/obs30.I b/tests/uniq/obs30.I
deleted file mode 100644
index 573a9ac..0000000
--- a/tests/uniq/obs30.I
+++ /dev/null
@@ -1,2 +0,0 @@
-a a
-b a
diff --git a/tests/uniq/obs30.X b/tests/uniq/obs30.X
deleted file mode 100644
index a4c6917..0000000
--- a/tests/uniq/obs30.X
+++ /dev/null
@@ -1 +0,0 @@
-a a
diff --git a/tests/uniq/uniq-tests b/tests/uniq/uniq-tests
deleted file mode 100755
index e1465d3..0000000
--- a/tests/uniq/uniq-tests
+++ /dev/null
@@ -1,2223 +0,0 @@
-#! /bin/sh
-# This script was generated automatically by mk-script.
-case $# in
- 0) xx='uniq';;
- *) xx="$1";;
-esac
-test "$VERBOSE" && echo=echo || echo=:
-$echo testing program: $xx
-errors=0
-test "$srcdir" || srcdir=.
-test "$VERBOSE" && $xx --version 2> /dev/null
-
-# Make sure we get English translations.
-LANGUAGE=C
-export LANGUAGE
-LC_ALL=C
-export LC_ALL
-LANG=C
-export LANG
-
-cat $srcdir/1.I | $xx > 1.O 2> 1.E
-code=$?
-if test $code != 0; then
- $echo "Test 1(|) failed: $xx return code $code differs from expected value 0" 1>&2
- errors=`expr $errors + 1`
-else
- cmp 1.O $srcdir/1.X > /dev/null 2>&1
- case $? in
- 0) if test "$VERBOSE"; then $echo "passed 1(|)"; fi;;
- 1) $echo "Test 1(|) failed: files 1.O and $srcdir/1.X differ" 1>&2
- (diff -c 1.O $srcdir/1.X) 2> /dev/null
- errors=`expr $errors + 1`;;
- 2) $echo "Test 1(|) may have failed." 1>&2
- $echo The command "cmp 1.O $srcdir/1.X" failed. 1>&2
- errors=`expr $errors + 1`;;
- esac
-fi
-test -s 1.E || rm -f 1.E
-$xx < $srcdir/1.I > 1.O 2> 1.E
-code=$?
-if test $code != 0; then
- $echo "Test 1(<) failed: $xx return code $code differs from expected value 0" 1>&2
- errors=`expr $errors + 1`
-else
- cmp 1.O $srcdir/1.X > /dev/null 2>&1
- case $? in
- 0) if test "$VERBOSE"; then $echo "passed 1(<)"; fi;;
- 1) $echo "Test 1(<) failed: files 1.O and $srcdir/1.X differ" 1>&2
- (diff -c 1.O $srcdir/1.X) 2> /dev/null
- errors=`expr $errors + 1`;;
- 2) $echo "Test 1(<) may have failed." 1>&2
- $echo The command "cmp 1.O $srcdir/1.X" failed. 1>&2
- errors=`expr $errors + 1`;;
- esac
-fi
-test -s 1.E || rm -f 1.E
-cat $srcdir/2.I | $xx > 2.O 2> 2.E
-code=$?
-if test $code != 0; then
- $echo "Test 2(|) failed: $xx return code $code differs from expected value 0" 1>&2
- errors=`expr $errors + 1`
-else
- cmp 2.O $srcdir/2.X > /dev/null 2>&1
- case $? in
- 0) if test "$VERBOSE"; then $echo "passed 2(|)"; fi;;
- 1) $echo "Test 2(|) failed: files 2.O and $srcdir/2.X differ" 1>&2
- (diff -c 2.O $srcdir/2.X) 2> /dev/null
- errors=`expr $errors + 1`;;
- 2) $echo "Test 2(|) may have failed." 1>&2
- $echo The command "cmp 2.O $srcdir/2.X" failed. 1>&2
- errors=`expr $errors + 1`;;
- esac
-fi
-test -s 2.E || rm -f 2.E
-$xx < $srcdir/2.I > 2.O 2> 2.E
-code=$?
-if test $code != 0; then
- $echo "Test 2(<) failed: $xx return code $code differs from expected value 0" 1>&2
- errors=`expr $errors + 1`
-else
- cmp 2.O $srcdir/2.X > /dev/null 2>&1
- case $? in
- 0) if test "$VERBOSE"; then $echo "passed 2(<)"; fi;;
- 1) $echo "Test 2(<) failed: files 2.O and $srcdir/2.X differ" 1>&2
- (diff -c 2.O $srcdir/2.X) 2> /dev/null
- errors=`expr $errors + 1`;;
- 2) $echo "Test 2(<) may have failed." 1>&2
- $echo The command "cmp 2.O $srcdir/2.X" failed. 1>&2
- errors=`expr $errors + 1`;;
- esac
-fi
-test -s 2.E || rm -f 2.E
-cat $srcdir/3.I | $xx > 3.O 2> 3.E
-code=$?
-if test $code != 0; then
- $echo "Test 3(|) failed: $xx return code $code differs from expected value 0" 1>&2
- errors=`expr $errors + 1`
-else
- cmp 3.O $srcdir/3.X > /dev/null 2>&1
- case $? in
- 0) if test "$VERBOSE"; then $echo "passed 3(|)"; fi;;
- 1) $echo "Test 3(|) failed: files 3.O and $srcdir/3.X differ" 1>&2
- (diff -c 3.O $srcdir/3.X) 2> /dev/null
- errors=`expr $errors + 1`;;
- 2) $echo "Test 3(|) may have failed." 1>&2
- $echo The command "cmp 3.O $srcdir/3.X" failed. 1>&2
- errors=`expr $errors + 1`;;
- esac
-fi
-test -s 3.E || rm -f 3.E
-$xx < $srcdir/3.I > 3.O 2> 3.E
-code=$?
-if test $code != 0; then
- $echo "Test 3(<) failed: $xx return code $code differs from expected value 0" 1>&2
- errors=`expr $errors + 1`
-else
- cmp 3.O $srcdir/3.X > /dev/null 2>&1
- case $? in
- 0) if test "$VERBOSE"; then $echo "passed 3(<)"; fi;;
- 1) $echo "Test 3(<) failed: files 3.O and $srcdir/3.X differ" 1>&2
- (diff -c 3.O $srcdir/3.X) 2> /dev/null
- errors=`expr $errors + 1`;;
- 2) $echo "Test 3(<) may have failed." 1>&2
- $echo The command "cmp 3.O $srcdir/3.X" failed. 1>&2
- errors=`expr $errors + 1`;;
- esac
-fi
-test -s 3.E || rm -f 3.E
-cat $srcdir/4.I | $xx > 4.O 2> 4.E
-code=$?
-if test $code != 0; then
- $echo "Test 4(|) failed: $xx return code $code differs from expected value 0" 1>&2
- errors=`expr $errors + 1`
-else
- cmp 4.O $srcdir/4.X > /dev/null 2>&1
- case $? in
- 0) if test "$VERBOSE"; then $echo "passed 4(|)"; fi;;
- 1) $echo "Test 4(|) failed: files 4.O and $srcdir/4.X differ" 1>&2
- (diff -c 4.O $srcdir/4.X) 2> /dev/null
- errors=`expr $errors + 1`;;
- 2) $echo "Test 4(|) may have failed." 1>&2
- $echo The command "cmp 4.O $srcdir/4.X" failed. 1>&2
- errors=`expr $errors + 1`;;
- esac
-fi
-test -s 4.E || rm -f 4.E
-$xx < $srcdir/4.I > 4.O 2> 4.E
-code=$?
-if test $code != 0; then
- $echo "Test 4(<) failed: $xx return code $code differs from expected value 0" 1>&2
- errors=`expr $errors + 1`
-else
- cmp 4.O $srcdir/4.X > /dev/null 2>&1
- case $? in
- 0) if test "$VERBOSE"; then $echo "passed 4(<)"; fi;;
- 1) $echo "Test 4(<) failed: files 4.O and $srcdir/4.X differ" 1>&2
- (diff -c 4.O $srcdir/4.X) 2> /dev/null
- errors=`expr $errors + 1`;;
- 2) $echo "Test 4(<) may have failed." 1>&2
- $echo The command "cmp 4.O $srcdir/4.X" failed. 1>&2
- errors=`expr $errors + 1`;;
- esac
-fi
-test -s 4.E || rm -f 4.E
-cat $srcdir/5.I | $xx > 5.O 2> 5.E
-code=$?
-if test $code != 0; then
- $echo "Test 5(|) failed: $xx return code $code differs from expected value 0" 1>&2
- errors=`expr $errors + 1`
-else
- cmp 5.O $srcdir/5.X > /dev/null 2>&1
- case $? in
- 0) if test "$VERBOSE"; then $echo "passed 5(|)"; fi;;
- 1) $echo "Test 5(|) failed: files 5.O and $srcdir/5.X differ" 1>&2
- (diff -c 5.O $srcdir/5.X) 2> /dev/null
- errors=`expr $errors + 1`;;
- 2) $echo "Test 5(|) may have failed." 1>&2
- $echo The command "cmp 5.O $srcdir/5.X" failed. 1>&2
- errors=`expr $errors + 1`;;
- esac
-fi
-test -s 5.E || rm -f 5.E
-$xx < $srcdir/5.I > 5.O 2> 5.E
-code=$?
-if test $code != 0; then
- $echo "Test 5(<) failed: $xx return code $code differs from expected value 0" 1>&2
- errors=`expr $errors + 1`
-else
- cmp 5.O $srcdir/5.X > /dev/null 2>&1
- case $? in
- 0) if test "$VERBOSE"; then $echo "passed 5(<)"; fi;;
- 1) $echo "Test 5(<) failed: files 5.O and $srcdir/5.X differ" 1>&2
- (diff -c 5.O $srcdir/5.X) 2> /dev/null
- errors=`expr $errors + 1`;;
- 2) $echo "Test 5(<) may have failed." 1>&2
- $echo The command "cmp 5.O $srcdir/5.X" failed. 1>&2
- errors=`expr $errors + 1`;;
- esac
-fi
-test -s 5.E || rm -f 5.E
-cat $srcdir/6.I | $xx > 6.O 2> 6.E
-code=$?
-if test $code != 0; then
- $echo "Test 6(|) failed: $xx return code $code differs from expected value 0" 1>&2
- errors=`expr $errors + 1`
-else
- cmp 6.O $srcdir/6.X > /dev/null 2>&1
- case $? in
- 0) if test "$VERBOSE"; then $echo "passed 6(|)"; fi;;
- 1) $echo "Test 6(|) failed: files 6.O and $srcdir/6.X differ" 1>&2
- (diff -c 6.O $srcdir/6.X) 2> /dev/null
- errors=`expr $errors + 1`;;
- 2) $echo "Test 6(|) may have failed." 1>&2
- $echo The command "cmp 6.O $srcdir/6.X" failed. 1>&2
- errors=`expr $errors + 1`;;
- esac
-fi
-test -s 6.E || rm -f 6.E
-$xx < $srcdir/6.I > 6.O 2> 6.E
-code=$?
-if test $code != 0; then
- $echo "Test 6(<) failed: $xx return code $code differs from expected value 0" 1>&2
- errors=`expr $errors + 1`
-else
- cmp 6.O $srcdir/6.X > /dev/null 2>&1
- case $? in
- 0) if test "$VERBOSE"; then $echo "passed 6(<)"; fi;;
- 1) $echo "Test 6(<) failed: files 6.O and $srcdir/6.X differ" 1>&2
- (diff -c 6.O $srcdir/6.X) 2> /dev/null
- errors=`expr $errors + 1`;;
- 2) $echo "Test 6(<) may have failed." 1>&2
- $echo The command "cmp 6.O $srcdir/6.X" failed. 1>&2
- errors=`expr $errors + 1`;;
- esac
-fi
-test -s 6.E || rm -f 6.E
-cat $srcdir/7.I | $xx > 7.O 2> 7.E
-code=$?
-if test $code != 0; then
- $echo "Test 7(|) failed: $xx return code $code differs from expected value 0" 1>&2
- errors=`expr $errors + 1`
-else
- cmp 7.O $srcdir/7.X > /dev/null 2>&1
- case $? in
- 0) if test "$VERBOSE"; then $echo "passed 7(|)"; fi;;
- 1) $echo "Test 7(|) failed: files 7.O and $srcdir/7.X differ" 1>&2
- (diff -c 7.O $srcdir/7.X) 2> /dev/null
- errors=`expr $errors + 1`;;
- 2) $echo "Test 7(|) may have failed." 1>&2
- $echo The command "cmp 7.O $srcdir/7.X" failed. 1>&2
- errors=`expr $errors + 1`;;
- esac
-fi
-test -s 7.E || rm -f 7.E
-$xx < $srcdir/7.I > 7.O 2> 7.E
-code=$?
-if test $code != 0; then
- $echo "Test 7(<) failed: $xx return code $code differs from expected value 0" 1>&2
- errors=`expr $errors + 1`
-else
- cmp 7.O $srcdir/7.X > /dev/null 2>&1
- case $? in
- 0) if test "$VERBOSE"; then $echo "passed 7(<)"; fi;;
- 1) $echo "Test 7(<) failed: files 7.O and $srcdir/7.X differ" 1>&2
- (diff -c 7.O $srcdir/7.X) 2> /dev/null
- errors=`expr $errors + 1`;;
- 2) $echo "Test 7(<) may have failed." 1>&2
- $echo The command "cmp 7.O $srcdir/7.X" failed. 1>&2
- errors=`expr $errors + 1`;;
- esac
-fi
-test -s 7.E || rm -f 7.E
-cat $srcdir/8.I | $xx > 8.O 2> 8.E
-code=$?
-if test $code != 0; then
- $echo "Test 8(|) failed: $xx return code $code differs from expected value 0" 1>&2
- errors=`expr $errors + 1`
-else
- cmp 8.O $srcdir/8.X > /dev/null 2>&1
- case $? in
- 0) if test "$VERBOSE"; then $echo "passed 8(|)"; fi;;
- 1) $echo "Test 8(|) failed: files 8.O and $srcdir/8.X differ" 1>&2
- (diff -c 8.O $srcdir/8.X) 2> /dev/null
- errors=`expr $errors + 1`;;
- 2) $echo "Test 8(|) may have failed." 1>&2
- $echo The command "cmp 8.O $srcdir/8.X" failed. 1>&2
- errors=`expr $errors + 1`;;
- esac
-fi
-test -s 8.E || rm -f 8.E
-$xx < $srcdir/8.I > 8.O 2> 8.E
-code=$?
-if test $code != 0; then
- $echo "Test 8(<) failed: $xx return code $code differs from expected value 0" 1>&2
- errors=`expr $errors + 1`
-else
- cmp 8.O $srcdir/8.X > /dev/null 2>&1
- case $? in
- 0) if test "$VERBOSE"; then $echo "passed 8(<)"; fi;;
- 1) $echo "Test 8(<) failed: files 8.O and $srcdir/8.X differ" 1>&2
- (diff -c 8.O $srcdir/8.X) 2> /dev/null
- errors=`expr $errors + 1`;;
- 2) $echo "Test 8(<) may have failed." 1>&2
- $echo The command "cmp 8.O $srcdir/8.X" failed. 1>&2
- errors=`expr $errors + 1`;;
- esac
-fi
-test -s 8.E || rm -f 8.E
-cat $srcdir/9.I | $xx -u > 9.O 2> 9.E
-code=$?
-if test $code != 0; then
- $echo "Test 9(|) failed: $xx return code $code differs from expected value 0" 1>&2
- errors=`expr $errors + 1`
-else
- cmp 9.O $srcdir/9.X > /dev/null 2>&1
- case $? in
- 0) if test "$VERBOSE"; then $echo "passed 9(|)"; fi;;
- 1) $echo "Test 9(|) failed: files 9.O and $srcdir/9.X differ" 1>&2
- (diff -c 9.O $srcdir/9.X) 2> /dev/null
- errors=`expr $errors + 1`;;
- 2) $echo "Test 9(|) may have failed." 1>&2
- $echo The command "cmp 9.O $srcdir/9.X" failed. 1>&2
- errors=`expr $errors + 1`;;
- esac
-fi
-test -s 9.E || rm -f 9.E
-$xx -u < $srcdir/9.I > 9.O 2> 9.E
-code=$?
-if test $code != 0; then
- $echo "Test 9(<) failed: $xx return code $code differs from expected value 0" 1>&2
- errors=`expr $errors + 1`
-else
- cmp 9.O $srcdir/9.X > /dev/null 2>&1
- case $? in
- 0) if test "$VERBOSE"; then $echo "passed 9(<)"; fi;;
- 1) $echo "Test 9(<) failed: files 9.O and $srcdir/9.X differ" 1>&2
- (diff -c 9.O $srcdir/9.X) 2> /dev/null
- errors=`expr $errors + 1`;;
- 2) $echo "Test 9(<) may have failed." 1>&2
- $echo The command "cmp 9.O $srcdir/9.X" failed. 1>&2
- errors=`expr $errors + 1`;;
- esac
-fi
-test -s 9.E || rm -f 9.E
-cat $srcdir/10.I | $xx -u > 10.O 2> 10.E
-code=$?
-if test $code != 0; then
- $echo "Test 10(|) failed: $xx return code $code differs from expected value 0" 1>&2
- errors=`expr $errors + 1`
-else
- cmp 10.O $srcdir/10.X > /dev/null 2>&1
- case $? in
- 0) if test "$VERBOSE"; then $echo "passed 10(|)"; fi;;
- 1) $echo "Test 10(|) failed: files 10.O and $srcdir/10.X differ" 1>&2
- (diff -c 10.O $srcdir/10.X) 2> /dev/null
- errors=`expr $errors + 1`;;
- 2) $echo "Test 10(|) may have failed." 1>&2
- $echo The command "cmp 10.O $srcdir/10.X" failed. 1>&2
- errors=`expr $errors + 1`;;
- esac
-fi
-test -s 10.E || rm -f 10.E
-$xx -u < $srcdir/10.I > 10.O 2> 10.E
-code=$?
-if test $code != 0; then
- $echo "Test 10(<) failed: $xx return code $code differs from expected value 0" 1>&2
- errors=`expr $errors + 1`
-else
- cmp 10.O $srcdir/10.X > /dev/null 2>&1
- case $? in
- 0) if test "$VERBOSE"; then $echo "passed 10(<)"; fi;;
- 1) $echo "Test 10(<) failed: files 10.O and $srcdir/10.X differ" 1>&2
- (diff -c 10.O $srcdir/10.X) 2> /dev/null
- errors=`expr $errors + 1`;;
- 2) $echo "Test 10(<) may have failed." 1>&2
- $echo The command "cmp 10.O $srcdir/10.X" failed. 1>&2
- errors=`expr $errors + 1`;;
- esac
-fi
-test -s 10.E || rm -f 10.E
-cat $srcdir/11.I | $xx -u > 11.O 2> 11.E
-code=$?
-if test $code != 0; then
- $echo "Test 11(|) failed: $xx return code $code differs from expected value 0" 1>&2
- errors=`expr $errors + 1`
-else
- cmp 11.O $srcdir/11.X > /dev/null 2>&1
- case $? in
- 0) if test "$VERBOSE"; then $echo "passed 11(|)"; fi;;
- 1) $echo "Test 11(|) failed: files 11.O and $srcdir/11.X differ" 1>&2
- (diff -c 11.O $srcdir/11.X) 2> /dev/null
- errors=`expr $errors + 1`;;
- 2) $echo "Test 11(|) may have failed." 1>&2
- $echo The command "cmp 11.O $srcdir/11.X" failed. 1>&2
- errors=`expr $errors + 1`;;
- esac
-fi
-test -s 11.E || rm -f 11.E
-$xx -u < $srcdir/11.I > 11.O 2> 11.E
-code=$?
-if test $code != 0; then
- $echo "Test 11(<) failed: $xx return code $code differs from expected value 0" 1>&2
- errors=`expr $errors + 1`
-else
- cmp 11.O $srcdir/11.X > /dev/null 2>&1
- case $? in
- 0) if test "$VERBOSE"; then $echo "passed 11(<)"; fi;;
- 1) $echo "Test 11(<) failed: files 11.O and $srcdir/11.X differ" 1>&2
- (diff -c 11.O $srcdir/11.X) 2> /dev/null
- errors=`expr $errors + 1`;;
- 2) $echo "Test 11(<) may have failed." 1>&2
- $echo The command "cmp 11.O $srcdir/11.X" failed. 1>&2
- errors=`expr $errors + 1`;;
- esac
-fi
-test -s 11.E || rm -f 11.E
-cat $srcdir/12.I | $xx -u > 12.O 2> 12.E
-code=$?
-if test $code != 0; then
- $echo "Test 12(|) failed: $xx return code $code differs from expected value 0" 1>&2
- errors=`expr $errors + 1`
-else
- cmp 12.O $srcdir/12.X > /dev/null 2>&1
- case $? in
- 0) if test "$VERBOSE"; then $echo "passed 12(|)"; fi;;
- 1) $echo "Test 12(|) failed: files 12.O and $srcdir/12.X differ" 1>&2
- (diff -c 12.O $srcdir/12.X) 2> /dev/null
- errors=`expr $errors + 1`;;
- 2) $echo "Test 12(|) may have failed." 1>&2
- $echo The command "cmp 12.O $srcdir/12.X" failed. 1>&2
- errors=`expr $errors + 1`;;
- esac
-fi
-test -s 12.E || rm -f 12.E
-$xx -u < $srcdir/12.I > 12.O 2> 12.E
-code=$?
-if test $code != 0; then
- $echo "Test 12(<) failed: $xx return code $code differs from expected value 0" 1>&2
- errors=`expr $errors + 1`
-else
- cmp 12.O $srcdir/12.X > /dev/null 2>&1
- case $? in
- 0) if test "$VERBOSE"; then $echo "passed 12(<)"; fi;;
- 1) $echo "Test 12(<) failed: files 12.O and $srcdir/12.X differ" 1>&2
- (diff -c 12.O $srcdir/12.X) 2> /dev/null
- errors=`expr $errors + 1`;;
- 2) $echo "Test 12(<) may have failed." 1>&2
- $echo The command "cmp 12.O $srcdir/12.X" failed. 1>&2
- errors=`expr $errors + 1`;;
- esac
-fi
-test -s 12.E || rm -f 12.E
-cat $srcdir/13.I | $xx -u > 13.O 2> 13.E
-code=$?
-if test $code != 0; then
- $echo "Test 13(|) failed: $xx return code $code differs from expected value 0" 1>&2
- errors=`expr $errors + 1`
-else
- cmp 13.O $srcdir/13.X > /dev/null 2>&1
- case $? in
- 0) if test "$VERBOSE"; then $echo "passed 13(|)"; fi;;
- 1) $echo "Test 13(|) failed: files 13.O and $srcdir/13.X differ" 1>&2
- (diff -c 13.O $srcdir/13.X) 2> /dev/null
- errors=`expr $errors + 1`;;
- 2) $echo "Test 13(|) may have failed." 1>&2
- $echo The command "cmp 13.O $srcdir/13.X" failed. 1>&2
- errors=`expr $errors + 1`;;
- esac
-fi
-test -s 13.E || rm -f 13.E
-$xx -u < $srcdir/13.I > 13.O 2> 13.E
-code=$?
-if test $code != 0; then
- $echo "Test 13(<) failed: $xx return code $code differs from expected value 0" 1>&2
- errors=`expr $errors + 1`
-else
- cmp 13.O $srcdir/13.X > /dev/null 2>&1
- case $? in
- 0) if test "$VERBOSE"; then $echo "passed 13(<)"; fi;;
- 1) $echo "Test 13(<) failed: files 13.O and $srcdir/13.X differ" 1>&2
- (diff -c 13.O $srcdir/13.X) 2> /dev/null
- errors=`expr $errors + 1`;;
- 2) $echo "Test 13(<) may have failed." 1>&2
- $echo The command "cmp 13.O $srcdir/13.X" failed. 1>&2
- errors=`expr $errors + 1`;;
- esac
-fi
-test -s 13.E || rm -f 13.E
-cat $srcdir/20.I | $xx -d > 20.O 2> 20.E
-code=$?
-if test $code != 0; then
- $echo "Test 20(|) failed: $xx return code $code differs from expected value 0" 1>&2
- errors=`expr $errors + 1`
-else
- cmp 20.O $srcdir/20.X > /dev/null 2>&1
- case $? in
- 0) if test "$VERBOSE"; then $echo "passed 20(|)"; fi;;
- 1) $echo "Test 20(|) failed: files 20.O and $srcdir/20.X differ" 1>&2
- (diff -c 20.O $srcdir/20.X) 2> /dev/null
- errors=`expr $errors + 1`;;
- 2) $echo "Test 20(|) may have failed." 1>&2
- $echo The command "cmp 20.O $srcdir/20.X" failed. 1>&2
- errors=`expr $errors + 1`;;
- esac
-fi
-test -s 20.E || rm -f 20.E
-$xx -d < $srcdir/20.I > 20.O 2> 20.E
-code=$?
-if test $code != 0; then
- $echo "Test 20(<) failed: $xx return code $code differs from expected value 0" 1>&2
- errors=`expr $errors + 1`
-else
- cmp 20.O $srcdir/20.X > /dev/null 2>&1
- case $? in
- 0) if test "$VERBOSE"; then $echo "passed 20(<)"; fi;;
- 1) $echo "Test 20(<) failed: files 20.O and $srcdir/20.X differ" 1>&2
- (diff -c 20.O $srcdir/20.X) 2> /dev/null
- errors=`expr $errors + 1`;;
- 2) $echo "Test 20(<) may have failed." 1>&2
- $echo The command "cmp 20.O $srcdir/20.X" failed. 1>&2
- errors=`expr $errors + 1`;;
- esac
-fi
-test -s 20.E || rm -f 20.E
-cat $srcdir/21.I | $xx -d > 21.O 2> 21.E
-code=$?
-if test $code != 0; then
- $echo "Test 21(|) failed: $xx return code $code differs from expected value 0" 1>&2
- errors=`expr $errors + 1`
-else
- cmp 21.O $srcdir/21.X > /dev/null 2>&1
- case $? in
- 0) if test "$VERBOSE"; then $echo "passed 21(|)"; fi;;
- 1) $echo "Test 21(|) failed: files 21.O and $srcdir/21.X differ" 1>&2
- (diff -c 21.O $srcdir/21.X) 2> /dev/null
- errors=`expr $errors + 1`;;
- 2) $echo "Test 21(|) may have failed." 1>&2
- $echo The command "cmp 21.O $srcdir/21.X" failed. 1>&2
- errors=`expr $errors + 1`;;
- esac
-fi
-test -s 21.E || rm -f 21.E
-$xx -d < $srcdir/21.I > 21.O 2> 21.E
-code=$?
-if test $code != 0; then
- $echo "Test 21(<) failed: $xx return code $code differs from expected value 0" 1>&2
- errors=`expr $errors + 1`
-else
- cmp 21.O $srcdir/21.X > /dev/null 2>&1
- case $? in
- 0) if test "$VERBOSE"; then $echo "passed 21(<)"; fi;;
- 1) $echo "Test 21(<) failed: files 21.O and $srcdir/21.X differ" 1>&2
- (diff -c 21.O $srcdir/21.X) 2> /dev/null
- errors=`expr $errors + 1`;;
- 2) $echo "Test 21(<) may have failed." 1>&2
- $echo The command "cmp 21.O $srcdir/21.X" failed. 1>&2
- errors=`expr $errors + 1`;;
- esac
-fi
-test -s 21.E || rm -f 21.E
-cat $srcdir/22.I | $xx -d > 22.O 2> 22.E
-code=$?
-if test $code != 0; then
- $echo "Test 22(|) failed: $xx return code $code differs from expected value 0" 1>&2
- errors=`expr $errors + 1`
-else
- cmp 22.O $srcdir/22.X > /dev/null 2>&1
- case $? in
- 0) if test "$VERBOSE"; then $echo "passed 22(|)"; fi;;
- 1) $echo "Test 22(|) failed: files 22.O and $srcdir/22.X differ" 1>&2
- (diff -c 22.O $srcdir/22.X) 2> /dev/null
- errors=`expr $errors + 1`;;
- 2) $echo "Test 22(|) may have failed." 1>&2
- $echo The command "cmp 22.O $srcdir/22.X" failed. 1>&2
- errors=`expr $errors + 1`;;
- esac
-fi
-test -s 22.E || rm -f 22.E
-$xx -d < $srcdir/22.I > 22.O 2> 22.E
-code=$?
-if test $code != 0; then
- $echo "Test 22(<) failed: $xx return code $code differs from expected value 0" 1>&2
- errors=`expr $errors + 1`
-else
- cmp 22.O $srcdir/22.X > /dev/null 2>&1
- case $? in
- 0) if test "$VERBOSE"; then $echo "passed 22(<)"; fi;;
- 1) $echo "Test 22(<) failed: files 22.O and $srcdir/22.X differ" 1>&2
- (diff -c 22.O $srcdir/22.X) 2> /dev/null
- errors=`expr $errors + 1`;;
- 2) $echo "Test 22(<) may have failed." 1>&2
- $echo The command "cmp 22.O $srcdir/22.X" failed. 1>&2
- errors=`expr $errors + 1`;;
- esac
-fi
-test -s 22.E || rm -f 22.E
-cat $srcdir/23.I | $xx -d > 23.O 2> 23.E
-code=$?
-if test $code != 0; then
- $echo "Test 23(|) failed: $xx return code $code differs from expected value 0" 1>&2
- errors=`expr $errors + 1`
-else
- cmp 23.O $srcdir/23.X > /dev/null 2>&1
- case $? in
- 0) if test "$VERBOSE"; then $echo "passed 23(|)"; fi;;
- 1) $echo "Test 23(|) failed: files 23.O and $srcdir/23.X differ" 1>&2
- (diff -c 23.O $srcdir/23.X) 2> /dev/null
- errors=`expr $errors + 1`;;
- 2) $echo "Test 23(|) may have failed." 1>&2
- $echo The command "cmp 23.O $srcdir/23.X" failed. 1>&2
- errors=`expr $errors + 1`;;
- esac
-fi
-test -s 23.E || rm -f 23.E
-$xx -d < $srcdir/23.I > 23.O 2> 23.E
-code=$?
-if test $code != 0; then
- $echo "Test 23(<) failed: $xx return code $code differs from expected value 0" 1>&2
- errors=`expr $errors + 1`
-else
- cmp 23.O $srcdir/23.X > /dev/null 2>&1
- case $? in
- 0) if test "$VERBOSE"; then $echo "passed 23(<)"; fi;;
- 1) $echo "Test 23(<) failed: files 23.O and $srcdir/23.X differ" 1>&2
- (diff -c 23.O $srcdir/23.X) 2> /dev/null
- errors=`expr $errors + 1`;;
- 2) $echo "Test 23(<) may have failed." 1>&2
- $echo The command "cmp 23.O $srcdir/23.X" failed. 1>&2
- errors=`expr $errors + 1`;;
- esac
-fi
-test -s 23.E || rm -f 23.E
-cat $srcdir/obs30.I | $xx -1 > obs30.O 2> obs30.E
-code=$?
-if test $code != 0; then
- $echo "Test obs30(|) failed: $xx return code $code differs from expected value 0" 1>&2
- errors=`expr $errors + 1`
-else
- cmp obs30.O $srcdir/obs30.X > /dev/null 2>&1
- case $? in
- 0) if test "$VERBOSE"; then $echo "passed obs30(|)"; fi;;
- 1) $echo "Test obs30(|) failed: files obs30.O and $srcdir/obs30.X differ" 1>&2
- (diff -c obs30.O $srcdir/obs30.X) 2> /dev/null
- errors=`expr $errors + 1`;;
- 2) $echo "Test obs30(|) may have failed." 1>&2
- $echo The command "cmp obs30.O $srcdir/obs30.X" failed. 1>&2
- errors=`expr $errors + 1`;;
- esac
-fi
-test -s obs30.E || rm -f obs30.E
-$xx -1 < $srcdir/obs30.I > obs30.O 2> obs30.E
-code=$?
-if test $code != 0; then
- $echo "Test obs30(<) failed: $xx return code $code differs from expected value 0" 1>&2
- errors=`expr $errors + 1`
-else
- cmp obs30.O $srcdir/obs30.X > /dev/null 2>&1
- case $? in
- 0) if test "$VERBOSE"; then $echo "passed obs30(<)"; fi;;
- 1) $echo "Test obs30(<) failed: files obs30.O and $srcdir/obs30.X differ" 1>&2
- (diff -c obs30.O $srcdir/obs30.X) 2> /dev/null
- errors=`expr $errors + 1`;;
- 2) $echo "Test obs30(<) may have failed." 1>&2
- $echo The command "cmp obs30.O $srcdir/obs30.X" failed. 1>&2
- errors=`expr $errors + 1`;;
- esac
-fi
-test -s obs30.E || rm -f obs30.E
-cat $srcdir/31.I | $xx -f 1 > 31.O 2> 31.E
-code=$?
-if test $code != 0; then
- $echo "Test 31(|) failed: $xx return code $code differs from expected value 0" 1>&2
- errors=`expr $errors + 1`
-else
- cmp 31.O $srcdir/31.X > /dev/null 2>&1
- case $? in
- 0) if test "$VERBOSE"; then $echo "passed 31(|)"; fi;;
- 1) $echo "Test 31(|) failed: files 31.O and $srcdir/31.X differ" 1>&2
- (diff -c 31.O $srcdir/31.X) 2> /dev/null
- errors=`expr $errors + 1`;;
- 2) $echo "Test 31(|) may have failed." 1>&2
- $echo The command "cmp 31.O $srcdir/31.X" failed. 1>&2
- errors=`expr $errors + 1`;;
- esac
-fi
-test -s 31.E || rm -f 31.E
-$xx -f 1 < $srcdir/31.I > 31.O 2> 31.E
-code=$?
-if test $code != 0; then
- $echo "Test 31(<) failed: $xx return code $code differs from expected value 0" 1>&2
- errors=`expr $errors + 1`
-else
- cmp 31.O $srcdir/31.X > /dev/null 2>&1
- case $? in
- 0) if test "$VERBOSE"; then $echo "passed 31(<)"; fi;;
- 1) $echo "Test 31(<) failed: files 31.O and $srcdir/31.X differ" 1>&2
- (diff -c 31.O $srcdir/31.X) 2> /dev/null
- errors=`expr $errors + 1`;;
- 2) $echo "Test 31(<) may have failed." 1>&2
- $echo The command "cmp 31.O $srcdir/31.X" failed. 1>&2
- errors=`expr $errors + 1`;;
- esac
-fi
-test -s 31.E || rm -f 31.E
-cat $srcdir/32.I | $xx -f 1 > 32.O 2> 32.E
-code=$?
-if test $code != 0; then
- $echo "Test 32(|) failed: $xx return code $code differs from expected value 0" 1>&2
- errors=`expr $errors + 1`
-else
- cmp 32.O $srcdir/32.X > /dev/null 2>&1
- case $? in
- 0) if test "$VERBOSE"; then $echo "passed 32(|)"; fi;;
- 1) $echo "Test 32(|) failed: files 32.O and $srcdir/32.X differ" 1>&2
- (diff -c 32.O $srcdir/32.X) 2> /dev/null
- errors=`expr $errors + 1`;;
- 2) $echo "Test 32(|) may have failed." 1>&2
- $echo The command "cmp 32.O $srcdir/32.X" failed. 1>&2
- errors=`expr $errors + 1`;;
- esac
-fi
-test -s 32.E || rm -f 32.E
-$xx -f 1 < $srcdir/32.I > 32.O 2> 32.E
-code=$?
-if test $code != 0; then
- $echo "Test 32(<) failed: $xx return code $code differs from expected value 0" 1>&2
- errors=`expr $errors + 1`
-else
- cmp 32.O $srcdir/32.X > /dev/null 2>&1
- case $? in
- 0) if test "$VERBOSE"; then $echo "passed 32(<)"; fi;;
- 1) $echo "Test 32(<) failed: files 32.O and $srcdir/32.X differ" 1>&2
- (diff -c 32.O $srcdir/32.X) 2> /dev/null
- errors=`expr $errors + 1`;;
- 2) $echo "Test 32(<) may have failed." 1>&2
- $echo The command "cmp 32.O $srcdir/32.X" failed. 1>&2
- errors=`expr $errors + 1`;;
- esac
-fi
-test -s 32.E || rm -f 32.E
-cat $srcdir/33.I | $xx -f 1 > 33.O 2> 33.E
-code=$?
-if test $code != 0; then
- $echo "Test 33(|) failed: $xx return code $code differs from expected value 0" 1>&2
- errors=`expr $errors + 1`
-else
- cmp 33.O $srcdir/33.X > /dev/null 2>&1
- case $? in
- 0) if test "$VERBOSE"; then $echo "passed 33(|)"; fi;;
- 1) $echo "Test 33(|) failed: files 33.O and $srcdir/33.X differ" 1>&2
- (diff -c 33.O $srcdir/33.X) 2> /dev/null
- errors=`expr $errors + 1`;;
- 2) $echo "Test 33(|) may have failed." 1>&2
- $echo The command "cmp 33.O $srcdir/33.X" failed. 1>&2
- errors=`expr $errors + 1`;;
- esac
-fi
-test -s 33.E || rm -f 33.E
-$xx -f 1 < $srcdir/33.I > 33.O 2> 33.E
-code=$?
-if test $code != 0; then
- $echo "Test 33(<) failed: $xx return code $code differs from expected value 0" 1>&2
- errors=`expr $errors + 1`
-else
- cmp 33.O $srcdir/33.X > /dev/null 2>&1
- case $? in
- 0) if test "$VERBOSE"; then $echo "passed 33(<)"; fi;;
- 1) $echo "Test 33(<) failed: files 33.O and $srcdir/33.X differ" 1>&2
- (diff -c 33.O $srcdir/33.X) 2> /dev/null
- errors=`expr $errors + 1`;;
- 2) $echo "Test 33(<) may have failed." 1>&2
- $echo The command "cmp 33.O $srcdir/33.X" failed. 1>&2
- errors=`expr $errors + 1`;;
- esac
-fi
-test -s 33.E || rm -f 33.E
-cat $srcdir/34.I | $xx -f 1 > 34.O 2> 34.E
-code=$?
-if test $code != 0; then
- $echo "Test 34(|) failed: $xx return code $code differs from expected value 0" 1>&2
- errors=`expr $errors + 1`
-else
- cmp 34.O $srcdir/34.X > /dev/null 2>&1
- case $? in
- 0) if test "$VERBOSE"; then $echo "passed 34(|)"; fi;;
- 1) $echo "Test 34(|) failed: files 34.O and $srcdir/34.X differ" 1>&2
- (diff -c 34.O $srcdir/34.X) 2> /dev/null
- errors=`expr $errors + 1`;;
- 2) $echo "Test 34(|) may have failed." 1>&2
- $echo The command "cmp 34.O $srcdir/34.X" failed. 1>&2
- errors=`expr $errors + 1`;;
- esac
-fi
-test -s 34.E || rm -f 34.E
-$xx -f 1 < $srcdir/34.I > 34.O 2> 34.E
-code=$?
-if test $code != 0; then
- $echo "Test 34(<) failed: $xx return code $code differs from expected value 0" 1>&2
- errors=`expr $errors + 1`
-else
- cmp 34.O $srcdir/34.X > /dev/null 2>&1
- case $? in
- 0) if test "$VERBOSE"; then $echo "passed 34(<)"; fi;;
- 1) $echo "Test 34(<) failed: files 34.O and $srcdir/34.X differ" 1>&2
- (diff -c 34.O $srcdir/34.X) 2> /dev/null
- errors=`expr $errors + 1`;;
- 2) $echo "Test 34(<) may have failed." 1>&2
- $echo The command "cmp 34.O $srcdir/34.X" failed. 1>&2
- errors=`expr $errors + 1`;;
- esac
-fi
-test -s 34.E || rm -f 34.E
-cat $srcdir/35.I | $xx -f 2 > 35.O 2> 35.E
-code=$?
-if test $code != 0; then
- $echo "Test 35(|) failed: $xx return code $code differs from expected value 0" 1>&2
- errors=`expr $errors + 1`
-else
- cmp 35.O $srcdir/35.X > /dev/null 2>&1
- case $? in
- 0) if test "$VERBOSE"; then $echo "passed 35(|)"; fi;;
- 1) $echo "Test 35(|) failed: files 35.O and $srcdir/35.X differ" 1>&2
- (diff -c 35.O $srcdir/35.X) 2> /dev/null
- errors=`expr $errors + 1`;;
- 2) $echo "Test 35(|) may have failed." 1>&2
- $echo The command "cmp 35.O $srcdir/35.X" failed. 1>&2
- errors=`expr $errors + 1`;;
- esac
-fi
-test -s 35.E || rm -f 35.E
-$xx -f 2 < $srcdir/35.I > 35.O 2> 35.E
-code=$?
-if test $code != 0; then
- $echo "Test 35(<) failed: $xx return code $code differs from expected value 0" 1>&2
- errors=`expr $errors + 1`
-else
- cmp 35.O $srcdir/35.X > /dev/null 2>&1
- case $? in
- 0) if test "$VERBOSE"; then $echo "passed 35(<)"; fi;;
- 1) $echo "Test 35(<) failed: files 35.O and $srcdir/35.X differ" 1>&2
- (diff -c 35.O $srcdir/35.X) 2> /dev/null
- errors=`expr $errors + 1`;;
- 2) $echo "Test 35(<) may have failed." 1>&2
- $echo The command "cmp 35.O $srcdir/35.X" failed. 1>&2
- errors=`expr $errors + 1`;;
- esac
-fi
-test -s 35.E || rm -f 35.E
-cat $srcdir/obs-plus40.I | _POSIX2_VERSION=199209 $xx +1 > obs-plus40.O 2> obs-plus40.E
-code=$?
-if test $code != 0; then
- $echo "Test obs-plus40(_POSIX2_VERSION=199209:|) failed: $xx return code $code differs from expected value 0" 1>&2
- errors=`expr $errors + 1`
-else
- cmp obs-plus40.O $srcdir/obs-plus40.X > /dev/null 2>&1
- case $? in
- 0) if test "$VERBOSE"; then $echo "passed obs-plus40(_POSIX2_VERSION=199209:|)"; fi;;
- 1) $echo "Test obs-plus40(_POSIX2_VERSION=199209:|) failed: files obs-plus40.O and $srcdir/obs-plus40.X differ" 1>&2
- (diff -c obs-plus40.O $srcdir/obs-plus40.X) 2> /dev/null
- errors=`expr $errors + 1`;;
- 2) $echo "Test obs-plus40(_POSIX2_VERSION=199209:|) may have failed." 1>&2
- $echo The command "cmp obs-plus40.O $srcdir/obs-plus40.X" failed. 1>&2
- errors=`expr $errors + 1`;;
- esac
-fi
-test -s obs-plus40.E || rm -f obs-plus40.E
-_POSIX2_VERSION=199209 $xx +1 < $srcdir/obs-plus40.I > obs-plus40.O 2> obs-plus40.E
-code=$?
-if test $code != 0; then
- $echo "Test obs-plus40(_POSIX2_VERSION=199209:<) failed: $xx return code $code differs from expected value 0" 1>&2
- errors=`expr $errors + 1`
-else
- cmp obs-plus40.O $srcdir/obs-plus40.X > /dev/null 2>&1
- case $? in
- 0) if test "$VERBOSE"; then $echo "passed obs-plus40(_POSIX2_VERSION=199209:<)"; fi;;
- 1) $echo "Test obs-plus40(_POSIX2_VERSION=199209:<) failed: files obs-plus40.O and $srcdir/obs-plus40.X differ" 1>&2
- (diff -c obs-plus40.O $srcdir/obs-plus40.X) 2> /dev/null
- errors=`expr $errors + 1`;;
- 2) $echo "Test obs-plus40(_POSIX2_VERSION=199209:<) may have failed." 1>&2
- $echo The command "cmp obs-plus40.O $srcdir/obs-plus40.X" failed. 1>&2
- errors=`expr $errors + 1`;;
- esac
-fi
-test -s obs-plus40.E || rm -f obs-plus40.E
-cat $srcdir/obs-plus41.I | _POSIX2_VERSION=199209 $xx +1 > obs-plus41.O 2> obs-plus41.E
-code=$?
-if test $code != 0; then
- $echo "Test obs-plus41(_POSIX2_VERSION=199209:|) failed: $xx return code $code differs from expected value 0" 1>&2
- errors=`expr $errors + 1`
-else
- cmp obs-plus41.O $srcdir/obs-plus41.X > /dev/null 2>&1
- case $? in
- 0) if test "$VERBOSE"; then $echo "passed obs-plus41(_POSIX2_VERSION=199209:|)"; fi;;
- 1) $echo "Test obs-plus41(_POSIX2_VERSION=199209:|) failed: files obs-plus41.O and $srcdir/obs-plus41.X differ" 1>&2
- (diff -c obs-plus41.O $srcdir/obs-plus41.X) 2> /dev/null
- errors=`expr $errors + 1`;;
- 2) $echo "Test obs-plus41(_POSIX2_VERSION=199209:|) may have failed." 1>&2
- $echo The command "cmp obs-plus41.O $srcdir/obs-plus41.X" failed. 1>&2
- errors=`expr $errors + 1`;;
- esac
-fi
-test -s obs-plus41.E || rm -f obs-plus41.E
-_POSIX2_VERSION=199209 $xx +1 < $srcdir/obs-plus41.I > obs-plus41.O 2> obs-plus41.E
-code=$?
-if test $code != 0; then
- $echo "Test obs-plus41(_POSIX2_VERSION=199209:<) failed: $xx return code $code differs from expected value 0" 1>&2
- errors=`expr $errors + 1`
-else
- cmp obs-plus41.O $srcdir/obs-plus41.X > /dev/null 2>&1
- case $? in
- 0) if test "$VERBOSE"; then $echo "passed obs-plus41(_POSIX2_VERSION=199209:<)"; fi;;
- 1) $echo "Test obs-plus41(_POSIX2_VERSION=199209:<) failed: files obs-plus41.O and $srcdir/obs-plus41.X differ" 1>&2
- (diff -c obs-plus41.O $srcdir/obs-plus41.X) 2> /dev/null
- errors=`expr $errors + 1`;;
- 2) $echo "Test obs-plus41(_POSIX2_VERSION=199209:<) may have failed." 1>&2
- $echo The command "cmp obs-plus41.O $srcdir/obs-plus41.X" failed. 1>&2
- errors=`expr $errors + 1`;;
- esac
-fi
-test -s obs-plus41.E || rm -f obs-plus41.E
-cat $srcdir/42.I | $xx -s 1 > 42.O 2> 42.E
-code=$?
-if test $code != 0; then
- $echo "Test 42(|) failed: $xx return code $code differs from expected value 0" 1>&2
- errors=`expr $errors + 1`
-else
- cmp 42.O $srcdir/42.X > /dev/null 2>&1
- case $? in
- 0) if test "$VERBOSE"; then $echo "passed 42(|)"; fi;;
- 1) $echo "Test 42(|) failed: files 42.O and $srcdir/42.X differ" 1>&2
- (diff -c 42.O $srcdir/42.X) 2> /dev/null
- errors=`expr $errors + 1`;;
- 2) $echo "Test 42(|) may have failed." 1>&2
- $echo The command "cmp 42.O $srcdir/42.X" failed. 1>&2
- errors=`expr $errors + 1`;;
- esac
-fi
-test -s 42.E || rm -f 42.E
-$xx -s 1 < $srcdir/42.I > 42.O 2> 42.E
-code=$?
-if test $code != 0; then
- $echo "Test 42(<) failed: $xx return code $code differs from expected value 0" 1>&2
- errors=`expr $errors + 1`
-else
- cmp 42.O $srcdir/42.X > /dev/null 2>&1
- case $? in
- 0) if test "$VERBOSE"; then $echo "passed 42(<)"; fi;;
- 1) $echo "Test 42(<) failed: files 42.O and $srcdir/42.X differ" 1>&2
- (diff -c 42.O $srcdir/42.X) 2> /dev/null
- errors=`expr $errors + 1`;;
- 2) $echo "Test 42(<) may have failed." 1>&2
- $echo The command "cmp 42.O $srcdir/42.X" failed. 1>&2
- errors=`expr $errors + 1`;;
- esac
-fi
-test -s 42.E || rm -f 42.E
-cat $srcdir/43.I | $xx -s 2 > 43.O 2> 43.E
-code=$?
-if test $code != 0; then
- $echo "Test 43(|) failed: $xx return code $code differs from expected value 0" 1>&2
- errors=`expr $errors + 1`
-else
- cmp 43.O $srcdir/43.X > /dev/null 2>&1
- case $? in
- 0) if test "$VERBOSE"; then $echo "passed 43(|)"; fi;;
- 1) $echo "Test 43(|) failed: files 43.O and $srcdir/43.X differ" 1>&2
- (diff -c 43.O $srcdir/43.X) 2> /dev/null
- errors=`expr $errors + 1`;;
- 2) $echo "Test 43(|) may have failed." 1>&2
- $echo The command "cmp 43.O $srcdir/43.X" failed. 1>&2
- errors=`expr $errors + 1`;;
- esac
-fi
-test -s 43.E || rm -f 43.E
-$xx -s 2 < $srcdir/43.I > 43.O 2> 43.E
-code=$?
-if test $code != 0; then
- $echo "Test 43(<) failed: $xx return code $code differs from expected value 0" 1>&2
- errors=`expr $errors + 1`
-else
- cmp 43.O $srcdir/43.X > /dev/null 2>&1
- case $? in
- 0) if test "$VERBOSE"; then $echo "passed 43(<)"; fi;;
- 1) $echo "Test 43(<) failed: files 43.O and $srcdir/43.X differ" 1>&2
- (diff -c 43.O $srcdir/43.X) 2> /dev/null
- errors=`expr $errors + 1`;;
- 2) $echo "Test 43(<) may have failed." 1>&2
- $echo The command "cmp 43.O $srcdir/43.X" failed. 1>&2
- errors=`expr $errors + 1`;;
- esac
-fi
-test -s 43.E || rm -f 43.E
-cat $srcdir/obs-plus44.I | _POSIX2_VERSION=199209 $xx +1 -- > obs-plus44.O 2> obs-plus44.E
-code=$?
-if test $code != 0; then
- $echo "Test obs-plus44(_POSIX2_VERSION=199209:|) failed: $xx return code $code differs from expected value 0" 1>&2
- errors=`expr $errors + 1`
-else
- cmp obs-plus44.O $srcdir/obs-plus44.X > /dev/null 2>&1
- case $? in
- 0) if test "$VERBOSE"; then $echo "passed obs-plus44(_POSIX2_VERSION=199209:|)"; fi;;
- 1) $echo "Test obs-plus44(_POSIX2_VERSION=199209:|) failed: files obs-plus44.O and $srcdir/obs-plus44.X differ" 1>&2
- (diff -c obs-plus44.O $srcdir/obs-plus44.X) 2> /dev/null
- errors=`expr $errors + 1`;;
- 2) $echo "Test obs-plus44(_POSIX2_VERSION=199209:|) may have failed." 1>&2
- $echo The command "cmp obs-plus44.O $srcdir/obs-plus44.X" failed. 1>&2
- errors=`expr $errors + 1`;;
- esac
-fi
-test -s obs-plus44.E || rm -f obs-plus44.E
-_POSIX2_VERSION=199209 $xx +1 -- < $srcdir/obs-plus44.I > obs-plus44.O 2> obs-plus44.E
-code=$?
-if test $code != 0; then
- $echo "Test obs-plus44(_POSIX2_VERSION=199209:<) failed: $xx return code $code differs from expected value 0" 1>&2
- errors=`expr $errors + 1`
-else
- cmp obs-plus44.O $srcdir/obs-plus44.X > /dev/null 2>&1
- case $? in
- 0) if test "$VERBOSE"; then $echo "passed obs-plus44(_POSIX2_VERSION=199209:<)"; fi;;
- 1) $echo "Test obs-plus44(_POSIX2_VERSION=199209:<) failed: files obs-plus44.O and $srcdir/obs-plus44.X differ" 1>&2
- (diff -c obs-plus44.O $srcdir/obs-plus44.X) 2> /dev/null
- errors=`expr $errors + 1`;;
- 2) $echo "Test obs-plus44(_POSIX2_VERSION=199209:<) may have failed." 1>&2
- $echo The command "cmp obs-plus44.O $srcdir/obs-plus44.X" failed. 1>&2
- errors=`expr $errors + 1`;;
- esac
-fi
-test -s obs-plus44.E || rm -f obs-plus44.E
-cat $srcdir/obs-plus45.I | _POSIX2_VERSION=199209 $xx +1 -- > obs-plus45.O 2> obs-plus45.E
-code=$?
-if test $code != 0; then
- $echo "Test obs-plus45(_POSIX2_VERSION=199209:|) failed: $xx return code $code differs from expected value 0" 1>&2
- errors=`expr $errors + 1`
-else
- cmp obs-plus45.O $srcdir/obs-plus45.X > /dev/null 2>&1
- case $? in
- 0) if test "$VERBOSE"; then $echo "passed obs-plus45(_POSIX2_VERSION=199209:|)"; fi;;
- 1) $echo "Test obs-plus45(_POSIX2_VERSION=199209:|) failed: files obs-plus45.O and $srcdir/obs-plus45.X differ" 1>&2
- (diff -c obs-plus45.O $srcdir/obs-plus45.X) 2> /dev/null
- errors=`expr $errors + 1`;;
- 2) $echo "Test obs-plus45(_POSIX2_VERSION=199209:|) may have failed." 1>&2
- $echo The command "cmp obs-plus45.O $srcdir/obs-plus45.X" failed. 1>&2
- errors=`expr $errors + 1`;;
- esac
-fi
-test -s obs-plus45.E || rm -f obs-plus45.E
-_POSIX2_VERSION=199209 $xx +1 -- < $srcdir/obs-plus45.I > obs-plus45.O 2> obs-plus45.E
-code=$?
-if test $code != 0; then
- $echo "Test obs-plus45(_POSIX2_VERSION=199209:<) failed: $xx return code $code differs from expected value 0" 1>&2
- errors=`expr $errors + 1`
-else
- cmp obs-plus45.O $srcdir/obs-plus45.X > /dev/null 2>&1
- case $? in
- 0) if test "$VERBOSE"; then $echo "passed obs-plus45(_POSIX2_VERSION=199209:<)"; fi;;
- 1) $echo "Test obs-plus45(_POSIX2_VERSION=199209:<) failed: files obs-plus45.O and $srcdir/obs-plus45.X differ" 1>&2
- (diff -c obs-plus45.O $srcdir/obs-plus45.X) 2> /dev/null
- errors=`expr $errors + 1`;;
- 2) $echo "Test obs-plus45(_POSIX2_VERSION=199209:<) may have failed." 1>&2
- $echo The command "cmp obs-plus45.O $srcdir/obs-plus45.X" failed. 1>&2
- errors=`expr $errors + 1`;;
- esac
-fi
-test -s obs-plus45.E || rm -f obs-plus45.E
-cat $srcdir/50.I | $xx -f 1 -s 1 > 50.O 2> 50.E
-code=$?
-if test $code != 0; then
- $echo "Test 50(|) failed: $xx return code $code differs from expected value 0" 1>&2
- errors=`expr $errors + 1`
-else
- cmp 50.O $srcdir/50.X > /dev/null 2>&1
- case $? in
- 0) if test "$VERBOSE"; then $echo "passed 50(|)"; fi;;
- 1) $echo "Test 50(|) failed: files 50.O and $srcdir/50.X differ" 1>&2
- (diff -c 50.O $srcdir/50.X) 2> /dev/null
- errors=`expr $errors + 1`;;
- 2) $echo "Test 50(|) may have failed." 1>&2
- $echo The command "cmp 50.O $srcdir/50.X" failed. 1>&2
- errors=`expr $errors + 1`;;
- esac
-fi
-test -s 50.E || rm -f 50.E
-$xx -f 1 -s 1 < $srcdir/50.I > 50.O 2> 50.E
-code=$?
-if test $code != 0; then
- $echo "Test 50(<) failed: $xx return code $code differs from expected value 0" 1>&2
- errors=`expr $errors + 1`
-else
- cmp 50.O $srcdir/50.X > /dev/null 2>&1
- case $? in
- 0) if test "$VERBOSE"; then $echo "passed 50(<)"; fi;;
- 1) $echo "Test 50(<) failed: files 50.O and $srcdir/50.X differ" 1>&2
- (diff -c 50.O $srcdir/50.X) 2> /dev/null
- errors=`expr $errors + 1`;;
- 2) $echo "Test 50(<) may have failed." 1>&2
- $echo The command "cmp 50.O $srcdir/50.X" failed. 1>&2
- errors=`expr $errors + 1`;;
- esac
-fi
-test -s 50.E || rm -f 50.E
-cat $srcdir/51.I | $xx -f 1 -s 1 > 51.O 2> 51.E
-code=$?
-if test $code != 0; then
- $echo "Test 51(|) failed: $xx return code $code differs from expected value 0" 1>&2
- errors=`expr $errors + 1`
-else
- cmp 51.O $srcdir/51.X > /dev/null 2>&1
- case $? in
- 0) if test "$VERBOSE"; then $echo "passed 51(|)"; fi;;
- 1) $echo "Test 51(|) failed: files 51.O and $srcdir/51.X differ" 1>&2
- (diff -c 51.O $srcdir/51.X) 2> /dev/null
- errors=`expr $errors + 1`;;
- 2) $echo "Test 51(|) may have failed." 1>&2
- $echo The command "cmp 51.O $srcdir/51.X" failed. 1>&2
- errors=`expr $errors + 1`;;
- esac
-fi
-test -s 51.E || rm -f 51.E
-$xx -f 1 -s 1 < $srcdir/51.I > 51.O 2> 51.E
-code=$?
-if test $code != 0; then
- $echo "Test 51(<) failed: $xx return code $code differs from expected value 0" 1>&2
- errors=`expr $errors + 1`
-else
- cmp 51.O $srcdir/51.X > /dev/null 2>&1
- case $? in
- 0) if test "$VERBOSE"; then $echo "passed 51(<)"; fi;;
- 1) $echo "Test 51(<) failed: files 51.O and $srcdir/51.X differ" 1>&2
- (diff -c 51.O $srcdir/51.X) 2> /dev/null
- errors=`expr $errors + 1`;;
- 2) $echo "Test 51(<) may have failed." 1>&2
- $echo The command "cmp 51.O $srcdir/51.X" failed. 1>&2
- errors=`expr $errors + 1`;;
- esac
-fi
-test -s 51.E || rm -f 51.E
-cat $srcdir/52.I | $xx -s 1 -f 1 > 52.O 2> 52.E
-code=$?
-if test $code != 0; then
- $echo "Test 52(|) failed: $xx return code $code differs from expected value 0" 1>&2
- errors=`expr $errors + 1`
-else
- cmp 52.O $srcdir/52.X > /dev/null 2>&1
- case $? in
- 0) if test "$VERBOSE"; then $echo "passed 52(|)"; fi;;
- 1) $echo "Test 52(|) failed: files 52.O and $srcdir/52.X differ" 1>&2
- (diff -c 52.O $srcdir/52.X) 2> /dev/null
- errors=`expr $errors + 1`;;
- 2) $echo "Test 52(|) may have failed." 1>&2
- $echo The command "cmp 52.O $srcdir/52.X" failed. 1>&2
- errors=`expr $errors + 1`;;
- esac
-fi
-test -s 52.E || rm -f 52.E
-$xx -s 1 -f 1 < $srcdir/52.I > 52.O 2> 52.E
-code=$?
-if test $code != 0; then
- $echo "Test 52(<) failed: $xx return code $code differs from expected value 0" 1>&2
- errors=`expr $errors + 1`
-else
- cmp 52.O $srcdir/52.X > /dev/null 2>&1
- case $? in
- 0) if test "$VERBOSE"; then $echo "passed 52(<)"; fi;;
- 1) $echo "Test 52(<) failed: files 52.O and $srcdir/52.X differ" 1>&2
- (diff -c 52.O $srcdir/52.X) 2> /dev/null
- errors=`expr $errors + 1`;;
- 2) $echo "Test 52(<) may have failed." 1>&2
- $echo The command "cmp 52.O $srcdir/52.X" failed. 1>&2
- errors=`expr $errors + 1`;;
- esac
-fi
-test -s 52.E || rm -f 52.E
-cat $srcdir/53.I | $xx -s 1 -f 1 > 53.O 2> 53.E
-code=$?
-if test $code != 0; then
- $echo "Test 53(|) failed: $xx return code $code differs from expected value 0" 1>&2
- errors=`expr $errors + 1`
-else
- cmp 53.O $srcdir/53.X > /dev/null 2>&1
- case $? in
- 0) if test "$VERBOSE"; then $echo "passed 53(|)"; fi;;
- 1) $echo "Test 53(|) failed: files 53.O and $srcdir/53.X differ" 1>&2
- (diff -c 53.O $srcdir/53.X) 2> /dev/null
- errors=`expr $errors + 1`;;
- 2) $echo "Test 53(|) may have failed." 1>&2
- $echo The command "cmp 53.O $srcdir/53.X" failed. 1>&2
- errors=`expr $errors + 1`;;
- esac
-fi
-test -s 53.E || rm -f 53.E
-$xx -s 1 -f 1 < $srcdir/53.I > 53.O 2> 53.E
-code=$?
-if test $code != 0; then
- $echo "Test 53(<) failed: $xx return code $code differs from expected value 0" 1>&2
- errors=`expr $errors + 1`
-else
- cmp 53.O $srcdir/53.X > /dev/null 2>&1
- case $? in
- 0) if test "$VERBOSE"; then $echo "passed 53(<)"; fi;;
- 1) $echo "Test 53(<) failed: files 53.O and $srcdir/53.X differ" 1>&2
- (diff -c 53.O $srcdir/53.X) 2> /dev/null
- errors=`expr $errors + 1`;;
- 2) $echo "Test 53(<) may have failed." 1>&2
- $echo The command "cmp 53.O $srcdir/53.X" failed. 1>&2
- errors=`expr $errors + 1`;;
- esac
-fi
-test -s 53.E || rm -f 53.E
-cat $srcdir/54.I | $xx -s 4 > 54.O 2> 54.E
-code=$?
-if test $code != 0; then
- $echo "Test 54(|) failed: $xx return code $code differs from expected value 0" 1>&2
- errors=`expr $errors + 1`
-else
- cmp 54.O $srcdir/54.X > /dev/null 2>&1
- case $? in
- 0) if test "$VERBOSE"; then $echo "passed 54(|)"; fi;;
- 1) $echo "Test 54(|) failed: files 54.O and $srcdir/54.X differ" 1>&2
- (diff -c 54.O $srcdir/54.X) 2> /dev/null
- errors=`expr $errors + 1`;;
- 2) $echo "Test 54(|) may have failed." 1>&2
- $echo The command "cmp 54.O $srcdir/54.X" failed. 1>&2
- errors=`expr $errors + 1`;;
- esac
-fi
-test -s 54.E || rm -f 54.E
-$xx -s 4 < $srcdir/54.I > 54.O 2> 54.E
-code=$?
-if test $code != 0; then
- $echo "Test 54(<) failed: $xx return code $code differs from expected value 0" 1>&2
- errors=`expr $errors + 1`
-else
- cmp 54.O $srcdir/54.X > /dev/null 2>&1
- case $? in
- 0) if test "$VERBOSE"; then $echo "passed 54(<)"; fi;;
- 1) $echo "Test 54(<) failed: files 54.O and $srcdir/54.X differ" 1>&2
- (diff -c 54.O $srcdir/54.X) 2> /dev/null
- errors=`expr $errors + 1`;;
- 2) $echo "Test 54(<) may have failed." 1>&2
- $echo The command "cmp 54.O $srcdir/54.X" failed. 1>&2
- errors=`expr $errors + 1`;;
- esac
-fi
-test -s 54.E || rm -f 54.E
-cat $srcdir/55.I | $xx -s 0 > 55.O 2> 55.E
-code=$?
-if test $code != 0; then
- $echo "Test 55(|) failed: $xx return code $code differs from expected value 0" 1>&2
- errors=`expr $errors + 1`
-else
- cmp 55.O $srcdir/55.X > /dev/null 2>&1
- case $? in
- 0) if test "$VERBOSE"; then $echo "passed 55(|)"; fi;;
- 1) $echo "Test 55(|) failed: files 55.O and $srcdir/55.X differ" 1>&2
- (diff -c 55.O $srcdir/55.X) 2> /dev/null
- errors=`expr $errors + 1`;;
- 2) $echo "Test 55(|) may have failed." 1>&2
- $echo The command "cmp 55.O $srcdir/55.X" failed. 1>&2
- errors=`expr $errors + 1`;;
- esac
-fi
-test -s 55.E || rm -f 55.E
-$xx -s 0 < $srcdir/55.I > 55.O 2> 55.E
-code=$?
-if test $code != 0; then
- $echo "Test 55(<) failed: $xx return code $code differs from expected value 0" 1>&2
- errors=`expr $errors + 1`
-else
- cmp 55.O $srcdir/55.X > /dev/null 2>&1
- case $? in
- 0) if test "$VERBOSE"; then $echo "passed 55(<)"; fi;;
- 1) $echo "Test 55(<) failed: files 55.O and $srcdir/55.X differ" 1>&2
- (diff -c 55.O $srcdir/55.X) 2> /dev/null
- errors=`expr $errors + 1`;;
- 2) $echo "Test 55(<) may have failed." 1>&2
- $echo The command "cmp 55.O $srcdir/55.X" failed. 1>&2
- errors=`expr $errors + 1`;;
- esac
-fi
-test -s 55.E || rm -f 55.E
-cat $srcdir/56.I | $xx -s 0 > 56.O 2> 56.E
-code=$?
-if test $code != 0; then
- $echo "Test 56(|) failed: $xx return code $code differs from expected value 0" 1>&2
- errors=`expr $errors + 1`
-else
- cmp 56.O $srcdir/56.X > /dev/null 2>&1
- case $? in
- 0) if test "$VERBOSE"; then $echo "passed 56(|)"; fi;;
- 1) $echo "Test 56(|) failed: files 56.O and $srcdir/56.X differ" 1>&2
- (diff -c 56.O $srcdir/56.X) 2> /dev/null
- errors=`expr $errors + 1`;;
- 2) $echo "Test 56(|) may have failed." 1>&2
- $echo The command "cmp 56.O $srcdir/56.X" failed. 1>&2
- errors=`expr $errors + 1`;;
- esac
-fi
-test -s 56.E || rm -f 56.E
-$xx -s 0 < $srcdir/56.I > 56.O 2> 56.E
-code=$?
-if test $code != 0; then
- $echo "Test 56(<) failed: $xx return code $code differs from expected value 0" 1>&2
- errors=`expr $errors + 1`
-else
- cmp 56.O $srcdir/56.X > /dev/null 2>&1
- case $? in
- 0) if test "$VERBOSE"; then $echo "passed 56(<)"; fi;;
- 1) $echo "Test 56(<) failed: files 56.O and $srcdir/56.X differ" 1>&2
- (diff -c 56.O $srcdir/56.X) 2> /dev/null
- errors=`expr $errors + 1`;;
- 2) $echo "Test 56(<) may have failed." 1>&2
- $echo The command "cmp 56.O $srcdir/56.X" failed. 1>&2
- errors=`expr $errors + 1`;;
- esac
-fi
-test -s 56.E || rm -f 56.E
-cat $srcdir/57.I | $xx -w 0 > 57.O 2> 57.E
-code=$?
-if test $code != 0; then
- $echo "Test 57(|) failed: $xx return code $code differs from expected value 0" 1>&2
- errors=`expr $errors + 1`
-else
- cmp 57.O $srcdir/57.X > /dev/null 2>&1
- case $? in
- 0) if test "$VERBOSE"; then $echo "passed 57(|)"; fi;;
- 1) $echo "Test 57(|) failed: files 57.O and $srcdir/57.X differ" 1>&2
- (diff -c 57.O $srcdir/57.X) 2> /dev/null
- errors=`expr $errors + 1`;;
- 2) $echo "Test 57(|) may have failed." 1>&2
- $echo The command "cmp 57.O $srcdir/57.X" failed. 1>&2
- errors=`expr $errors + 1`;;
- esac
-fi
-test -s 57.E || rm -f 57.E
-$xx -w 0 < $srcdir/57.I > 57.O 2> 57.E
-code=$?
-if test $code != 0; then
- $echo "Test 57(<) failed: $xx return code $code differs from expected value 0" 1>&2
- errors=`expr $errors + 1`
-else
- cmp 57.O $srcdir/57.X > /dev/null 2>&1
- case $? in
- 0) if test "$VERBOSE"; then $echo "passed 57(<)"; fi;;
- 1) $echo "Test 57(<) failed: files 57.O and $srcdir/57.X differ" 1>&2
- (diff -c 57.O $srcdir/57.X) 2> /dev/null
- errors=`expr $errors + 1`;;
- 2) $echo "Test 57(<) may have failed." 1>&2
- $echo The command "cmp 57.O $srcdir/57.X" failed. 1>&2
- errors=`expr $errors + 1`;;
- esac
-fi
-test -s 57.E || rm -f 57.E
-cat $srcdir/60.I | $xx -w 1 > 60.O 2> 60.E
-code=$?
-if test $code != 0; then
- $echo "Test 60(|) failed: $xx return code $code differs from expected value 0" 1>&2
- errors=`expr $errors + 1`
-else
- cmp 60.O $srcdir/60.X > /dev/null 2>&1
- case $? in
- 0) if test "$VERBOSE"; then $echo "passed 60(|)"; fi;;
- 1) $echo "Test 60(|) failed: files 60.O and $srcdir/60.X differ" 1>&2
- (diff -c 60.O $srcdir/60.X) 2> /dev/null
- errors=`expr $errors + 1`;;
- 2) $echo "Test 60(|) may have failed." 1>&2
- $echo The command "cmp 60.O $srcdir/60.X" failed. 1>&2
- errors=`expr $errors + 1`;;
- esac
-fi
-test -s 60.E || rm -f 60.E
-$xx -w 1 < $srcdir/60.I > 60.O 2> 60.E
-code=$?
-if test $code != 0; then
- $echo "Test 60(<) failed: $xx return code $code differs from expected value 0" 1>&2
- errors=`expr $errors + 1`
-else
- cmp 60.O $srcdir/60.X > /dev/null 2>&1
- case $? in
- 0) if test "$VERBOSE"; then $echo "passed 60(<)"; fi;;
- 1) $echo "Test 60(<) failed: files 60.O and $srcdir/60.X differ" 1>&2
- (diff -c 60.O $srcdir/60.X) 2> /dev/null
- errors=`expr $errors + 1`;;
- 2) $echo "Test 60(<) may have failed." 1>&2
- $echo The command "cmp 60.O $srcdir/60.X" failed. 1>&2
- errors=`expr $errors + 1`;;
- esac
-fi
-test -s 60.E || rm -f 60.E
-cat $srcdir/61.I | $xx -w 3 > 61.O 2> 61.E
-code=$?
-if test $code != 0; then
- $echo "Test 61(|) failed: $xx return code $code differs from expected value 0" 1>&2
- errors=`expr $errors + 1`
-else
- cmp 61.O $srcdir/61.X > /dev/null 2>&1
- case $? in
- 0) if test "$VERBOSE"; then $echo "passed 61(|)"; fi;;
- 1) $echo "Test 61(|) failed: files 61.O and $srcdir/61.X differ" 1>&2
- (diff -c 61.O $srcdir/61.X) 2> /dev/null
- errors=`expr $errors + 1`;;
- 2) $echo "Test 61(|) may have failed." 1>&2
- $echo The command "cmp 61.O $srcdir/61.X" failed. 1>&2
- errors=`expr $errors + 1`;;
- esac
-fi
-test -s 61.E || rm -f 61.E
-$xx -w 3 < $srcdir/61.I > 61.O 2> 61.E
-code=$?
-if test $code != 0; then
- $echo "Test 61(<) failed: $xx return code $code differs from expected value 0" 1>&2
- errors=`expr $errors + 1`
-else
- cmp 61.O $srcdir/61.X > /dev/null 2>&1
- case $? in
- 0) if test "$VERBOSE"; then $echo "passed 61(<)"; fi;;
- 1) $echo "Test 61(<) failed: files 61.O and $srcdir/61.X differ" 1>&2
- (diff -c 61.O $srcdir/61.X) 2> /dev/null
- errors=`expr $errors + 1`;;
- 2) $echo "Test 61(<) may have failed." 1>&2
- $echo The command "cmp 61.O $srcdir/61.X" failed. 1>&2
- errors=`expr $errors + 1`;;
- esac
-fi
-test -s 61.E || rm -f 61.E
-cat $srcdir/62.I | $xx -w 1 -f 1 > 62.O 2> 62.E
-code=$?
-if test $code != 0; then
- $echo "Test 62(|) failed: $xx return code $code differs from expected value 0" 1>&2
- errors=`expr $errors + 1`
-else
- cmp 62.O $srcdir/62.X > /dev/null 2>&1
- case $? in
- 0) if test "$VERBOSE"; then $echo "passed 62(|)"; fi;;
- 1) $echo "Test 62(|) failed: files 62.O and $srcdir/62.X differ" 1>&2
- (diff -c 62.O $srcdir/62.X) 2> /dev/null
- errors=`expr $errors + 1`;;
- 2) $echo "Test 62(|) may have failed." 1>&2
- $echo The command "cmp 62.O $srcdir/62.X" failed. 1>&2
- errors=`expr $errors + 1`;;
- esac
-fi
-test -s 62.E || rm -f 62.E
-$xx -w 1 -f 1 < $srcdir/62.I > 62.O 2> 62.E
-code=$?
-if test $code != 0; then
- $echo "Test 62(<) failed: $xx return code $code differs from expected value 0" 1>&2
- errors=`expr $errors + 1`
-else
- cmp 62.O $srcdir/62.X > /dev/null 2>&1
- case $? in
- 0) if test "$VERBOSE"; then $echo "passed 62(<)"; fi;;
- 1) $echo "Test 62(<) failed: files 62.O and $srcdir/62.X differ" 1>&2
- (diff -c 62.O $srcdir/62.X) 2> /dev/null
- errors=`expr $errors + 1`;;
- 2) $echo "Test 62(<) may have failed." 1>&2
- $echo The command "cmp 62.O $srcdir/62.X" failed. 1>&2
- errors=`expr $errors + 1`;;
- esac
-fi
-test -s 62.E || rm -f 62.E
-cat $srcdir/63.I | $xx -f 1 -w 1 > 63.O 2> 63.E
-code=$?
-if test $code != 0; then
- $echo "Test 63(|) failed: $xx return code $code differs from expected value 0" 1>&2
- errors=`expr $errors + 1`
-else
- cmp 63.O $srcdir/63.X > /dev/null 2>&1
- case $? in
- 0) if test "$VERBOSE"; then $echo "passed 63(|)"; fi;;
- 1) $echo "Test 63(|) failed: files 63.O and $srcdir/63.X differ" 1>&2
- (diff -c 63.O $srcdir/63.X) 2> /dev/null
- errors=`expr $errors + 1`;;
- 2) $echo "Test 63(|) may have failed." 1>&2
- $echo The command "cmp 63.O $srcdir/63.X" failed. 1>&2
- errors=`expr $errors + 1`;;
- esac
-fi
-test -s 63.E || rm -f 63.E
-$xx -f 1 -w 1 < $srcdir/63.I > 63.O 2> 63.E
-code=$?
-if test $code != 0; then
- $echo "Test 63(<) failed: $xx return code $code differs from expected value 0" 1>&2
- errors=`expr $errors + 1`
-else
- cmp 63.O $srcdir/63.X > /dev/null 2>&1
- case $? in
- 0) if test "$VERBOSE"; then $echo "passed 63(<)"; fi;;
- 1) $echo "Test 63(<) failed: files 63.O and $srcdir/63.X differ" 1>&2
- (diff -c 63.O $srcdir/63.X) 2> /dev/null
- errors=`expr $errors + 1`;;
- 2) $echo "Test 63(<) may have failed." 1>&2
- $echo The command "cmp 63.O $srcdir/63.X" failed. 1>&2
- errors=`expr $errors + 1`;;
- esac
-fi
-test -s 63.E || rm -f 63.E
-cat $srcdir/64.I | $xx -f 1 -w 4 > 64.O 2> 64.E
-code=$?
-if test $code != 0; then
- $echo "Test 64(|) failed: $xx return code $code differs from expected value 0" 1>&2
- errors=`expr $errors + 1`
-else
- cmp 64.O $srcdir/64.X > /dev/null 2>&1
- case $? in
- 0) if test "$VERBOSE"; then $echo "passed 64(|)"; fi;;
- 1) $echo "Test 64(|) failed: files 64.O and $srcdir/64.X differ" 1>&2
- (diff -c 64.O $srcdir/64.X) 2> /dev/null
- errors=`expr $errors + 1`;;
- 2) $echo "Test 64(|) may have failed." 1>&2
- $echo The command "cmp 64.O $srcdir/64.X" failed. 1>&2
- errors=`expr $errors + 1`;;
- esac
-fi
-test -s 64.E || rm -f 64.E
-$xx -f 1 -w 4 < $srcdir/64.I > 64.O 2> 64.E
-code=$?
-if test $code != 0; then
- $echo "Test 64(<) failed: $xx return code $code differs from expected value 0" 1>&2
- errors=`expr $errors + 1`
-else
- cmp 64.O $srcdir/64.X > /dev/null 2>&1
- case $? in
- 0) if test "$VERBOSE"; then $echo "passed 64(<)"; fi;;
- 1) $echo "Test 64(<) failed: files 64.O and $srcdir/64.X differ" 1>&2
- (diff -c 64.O $srcdir/64.X) 2> /dev/null
- errors=`expr $errors + 1`;;
- 2) $echo "Test 64(<) may have failed." 1>&2
- $echo The command "cmp 64.O $srcdir/64.X" failed. 1>&2
- errors=`expr $errors + 1`;;
- esac
-fi
-test -s 64.E || rm -f 64.E
-cat $srcdir/65.I | $xx -f 1 -w 3 > 65.O 2> 65.E
-code=$?
-if test $code != 0; then
- $echo "Test 65(|) failed: $xx return code $code differs from expected value 0" 1>&2
- errors=`expr $errors + 1`
-else
- cmp 65.O $srcdir/65.X > /dev/null 2>&1
- case $? in
- 0) if test "$VERBOSE"; then $echo "passed 65(|)"; fi;;
- 1) $echo "Test 65(|) failed: files 65.O and $srcdir/65.X differ" 1>&2
- (diff -c 65.O $srcdir/65.X) 2> /dev/null
- errors=`expr $errors + 1`;;
- 2) $echo "Test 65(|) may have failed." 1>&2
- $echo The command "cmp 65.O $srcdir/65.X" failed. 1>&2
- errors=`expr $errors + 1`;;
- esac
-fi
-test -s 65.E || rm -f 65.E
-$xx -f 1 -w 3 < $srcdir/65.I > 65.O 2> 65.E
-code=$?
-if test $code != 0; then
- $echo "Test 65(<) failed: $xx return code $code differs from expected value 0" 1>&2
- errors=`expr $errors + 1`
-else
- cmp 65.O $srcdir/65.X > /dev/null 2>&1
- case $? in
- 0) if test "$VERBOSE"; then $echo "passed 65(<)"; fi;;
- 1) $echo "Test 65(<) failed: files 65.O and $srcdir/65.X differ" 1>&2
- (diff -c 65.O $srcdir/65.X) 2> /dev/null
- errors=`expr $errors + 1`;;
- 2) $echo "Test 65(<) may have failed." 1>&2
- $echo The command "cmp 65.O $srcdir/65.X" failed. 1>&2
- errors=`expr $errors + 1`;;
- esac
-fi
-test -s 65.E || rm -f 65.E
-cat $srcdir/90.I | $xx > 90.O 2> 90.E
-code=$?
-if test $code != 0; then
- $echo "Test 90(|) failed: $xx return code $code differs from expected value 0" 1>&2
- errors=`expr $errors + 1`
-else
- cmp 90.O $srcdir/90.X > /dev/null 2>&1
- case $? in
- 0) if test "$VERBOSE"; then $echo "passed 90(|)"; fi;;
- 1) $echo "Test 90(|) failed: files 90.O and $srcdir/90.X differ" 1>&2
- (diff -c 90.O $srcdir/90.X) 2> /dev/null
- errors=`expr $errors + 1`;;
- 2) $echo "Test 90(|) may have failed." 1>&2
- $echo The command "cmp 90.O $srcdir/90.X" failed. 1>&2
- errors=`expr $errors + 1`;;
- esac
-fi
-test -s 90.E || rm -f 90.E
-$xx < $srcdir/90.I > 90.O 2> 90.E
-code=$?
-if test $code != 0; then
- $echo "Test 90(<) failed: $xx return code $code differs from expected value 0" 1>&2
- errors=`expr $errors + 1`
-else
- cmp 90.O $srcdir/90.X > /dev/null 2>&1
- case $? in
- 0) if test "$VERBOSE"; then $echo "passed 90(<)"; fi;;
- 1) $echo "Test 90(<) failed: files 90.O and $srcdir/90.X differ" 1>&2
- (diff -c 90.O $srcdir/90.X) 2> /dev/null
- errors=`expr $errors + 1`;;
- 2) $echo "Test 90(<) may have failed." 1>&2
- $echo The command "cmp 90.O $srcdir/90.X" failed. 1>&2
- errors=`expr $errors + 1`;;
- esac
-fi
-test -s 90.E || rm -f 90.E
-cat $srcdir/91.I | $xx > 91.O 2> 91.E
-code=$?
-if test $code != 0; then
- $echo "Test 91(|) failed: $xx return code $code differs from expected value 0" 1>&2
- errors=`expr $errors + 1`
-else
- cmp 91.O $srcdir/91.X > /dev/null 2>&1
- case $? in
- 0) if test "$VERBOSE"; then $echo "passed 91(|)"; fi;;
- 1) $echo "Test 91(|) failed: files 91.O and $srcdir/91.X differ" 1>&2
- (diff -c 91.O $srcdir/91.X) 2> /dev/null
- errors=`expr $errors + 1`;;
- 2) $echo "Test 91(|) may have failed." 1>&2
- $echo The command "cmp 91.O $srcdir/91.X" failed. 1>&2
- errors=`expr $errors + 1`;;
- esac
-fi
-test -s 91.E || rm -f 91.E
-$xx < $srcdir/91.I > 91.O 2> 91.E
-code=$?
-if test $code != 0; then
- $echo "Test 91(<) failed: $xx return code $code differs from expected value 0" 1>&2
- errors=`expr $errors + 1`
-else
- cmp 91.O $srcdir/91.X > /dev/null 2>&1
- case $? in
- 0) if test "$VERBOSE"; then $echo "passed 91(<)"; fi;;
- 1) $echo "Test 91(<) failed: files 91.O and $srcdir/91.X differ" 1>&2
- (diff -c 91.O $srcdir/91.X) 2> /dev/null
- errors=`expr $errors + 1`;;
- 2) $echo "Test 91(<) may have failed." 1>&2
- $echo The command "cmp 91.O $srcdir/91.X" failed. 1>&2
- errors=`expr $errors + 1`;;
- esac
-fi
-test -s 91.E || rm -f 91.E
-cat $srcdir/92.I | $xx -f 1 > 92.O 2> 92.E
-code=$?
-if test $code != 0; then
- $echo "Test 92(|) failed: $xx return code $code differs from expected value 0" 1>&2
- errors=`expr $errors + 1`
-else
- cmp 92.O $srcdir/92.X > /dev/null 2>&1
- case $? in
- 0) if test "$VERBOSE"; then $echo "passed 92(|)"; fi;;
- 1) $echo "Test 92(|) failed: files 92.O and $srcdir/92.X differ" 1>&2
- (diff -c 92.O $srcdir/92.X) 2> /dev/null
- errors=`expr $errors + 1`;;
- 2) $echo "Test 92(|) may have failed." 1>&2
- $echo The command "cmp 92.O $srcdir/92.X" failed. 1>&2
- errors=`expr $errors + 1`;;
- esac
-fi
-test -s 92.E || rm -f 92.E
-$xx -f 1 < $srcdir/92.I > 92.O 2> 92.E
-code=$?
-if test $code != 0; then
- $echo "Test 92(<) failed: $xx return code $code differs from expected value 0" 1>&2
- errors=`expr $errors + 1`
-else
- cmp 92.O $srcdir/92.X > /dev/null 2>&1
- case $? in
- 0) if test "$VERBOSE"; then $echo "passed 92(<)"; fi;;
- 1) $echo "Test 92(<) failed: files 92.O and $srcdir/92.X differ" 1>&2
- (diff -c 92.O $srcdir/92.X) 2> /dev/null
- errors=`expr $errors + 1`;;
- 2) $echo "Test 92(<) may have failed." 1>&2
- $echo The command "cmp 92.O $srcdir/92.X" failed. 1>&2
- errors=`expr $errors + 1`;;
- esac
-fi
-test -s 92.E || rm -f 92.E
-cat $srcdir/93.I | $xx -f 2 > 93.O 2> 93.E
-code=$?
-if test $code != 0; then
- $echo "Test 93(|) failed: $xx return code $code differs from expected value 0" 1>&2
- errors=`expr $errors + 1`
-else
- cmp 93.O $srcdir/93.X > /dev/null 2>&1
- case $? in
- 0) if test "$VERBOSE"; then $echo "passed 93(|)"; fi;;
- 1) $echo "Test 93(|) failed: files 93.O and $srcdir/93.X differ" 1>&2
- (diff -c 93.O $srcdir/93.X) 2> /dev/null
- errors=`expr $errors + 1`;;
- 2) $echo "Test 93(|) may have failed." 1>&2
- $echo The command "cmp 93.O $srcdir/93.X" failed. 1>&2
- errors=`expr $errors + 1`;;
- esac
-fi
-test -s 93.E || rm -f 93.E
-$xx -f 2 < $srcdir/93.I > 93.O 2> 93.E
-code=$?
-if test $code != 0; then
- $echo "Test 93(<) failed: $xx return code $code differs from expected value 0" 1>&2
- errors=`expr $errors + 1`
-else
- cmp 93.O $srcdir/93.X > /dev/null 2>&1
- case $? in
- 0) if test "$VERBOSE"; then $echo "passed 93(<)"; fi;;
- 1) $echo "Test 93(<) failed: files 93.O and $srcdir/93.X differ" 1>&2
- (diff -c 93.O $srcdir/93.X) 2> /dev/null
- errors=`expr $errors + 1`;;
- 2) $echo "Test 93(<) may have failed." 1>&2
- $echo The command "cmp 93.O $srcdir/93.X" failed. 1>&2
- errors=`expr $errors + 1`;;
- esac
-fi
-test -s 93.E || rm -f 93.E
-cat $srcdir/94.I | $xx -f 1 > 94.O 2> 94.E
-code=$?
-if test $code != 0; then
- $echo "Test 94(|) failed: $xx return code $code differs from expected value 0" 1>&2
- errors=`expr $errors + 1`
-else
- cmp 94.O $srcdir/94.X > /dev/null 2>&1
- case $? in
- 0) if test "$VERBOSE"; then $echo "passed 94(|)"; fi;;
- 1) $echo "Test 94(|) failed: files 94.O and $srcdir/94.X differ" 1>&2
- (diff -c 94.O $srcdir/94.X) 2> /dev/null
- errors=`expr $errors + 1`;;
- 2) $echo "Test 94(|) may have failed." 1>&2
- $echo The command "cmp 94.O $srcdir/94.X" failed. 1>&2
- errors=`expr $errors + 1`;;
- esac
-fi
-test -s 94.E || rm -f 94.E
-$xx -f 1 < $srcdir/94.I > 94.O 2> 94.E
-code=$?
-if test $code != 0; then
- $echo "Test 94(<) failed: $xx return code $code differs from expected value 0" 1>&2
- errors=`expr $errors + 1`
-else
- cmp 94.O $srcdir/94.X > /dev/null 2>&1
- case $? in
- 0) if test "$VERBOSE"; then $echo "passed 94(<)"; fi;;
- 1) $echo "Test 94(<) failed: files 94.O and $srcdir/94.X differ" 1>&2
- (diff -c 94.O $srcdir/94.X) 2> /dev/null
- errors=`expr $errors + 1`;;
- 2) $echo "Test 94(<) may have failed." 1>&2
- $echo The command "cmp 94.O $srcdir/94.X" failed. 1>&2
- errors=`expr $errors + 1`;;
- esac
-fi
-test -s 94.E || rm -f 94.E
-cat $srcdir/101.I | $xx -c > 101.O 2> 101.E
-code=$?
-if test $code != 0; then
- $echo "Test 101(|) failed: $xx return code $code differs from expected value 0" 1>&2
- errors=`expr $errors + 1`
-else
- cmp 101.O $srcdir/101.X > /dev/null 2>&1
- case $? in
- 0) if test "$VERBOSE"; then $echo "passed 101(|)"; fi;;
- 1) $echo "Test 101(|) failed: files 101.O and $srcdir/101.X differ" 1>&2
- (diff -c 101.O $srcdir/101.X) 2> /dev/null
- errors=`expr $errors + 1`;;
- 2) $echo "Test 101(|) may have failed." 1>&2
- $echo The command "cmp 101.O $srcdir/101.X" failed. 1>&2
- errors=`expr $errors + 1`;;
- esac
-fi
-test -s 101.E || rm -f 101.E
-$xx -c < $srcdir/101.I > 101.O 2> 101.E
-code=$?
-if test $code != 0; then
- $echo "Test 101(<) failed: $xx return code $code differs from expected value 0" 1>&2
- errors=`expr $errors + 1`
-else
- cmp 101.O $srcdir/101.X > /dev/null 2>&1
- case $? in
- 0) if test "$VERBOSE"; then $echo "passed 101(<)"; fi;;
- 1) $echo "Test 101(<) failed: files 101.O and $srcdir/101.X differ" 1>&2
- (diff -c 101.O $srcdir/101.X) 2> /dev/null
- errors=`expr $errors + 1`;;
- 2) $echo "Test 101(<) may have failed." 1>&2
- $echo The command "cmp 101.O $srcdir/101.X" failed. 1>&2
- errors=`expr $errors + 1`;;
- esac
-fi
-test -s 101.E || rm -f 101.E
-cat $srcdir/102.I | $xx -c > 102.O 2> 102.E
-code=$?
-if test $code != 0; then
- $echo "Test 102(|) failed: $xx return code $code differs from expected value 0" 1>&2
- errors=`expr $errors + 1`
-else
- cmp 102.O $srcdir/102.X > /dev/null 2>&1
- case $? in
- 0) if test "$VERBOSE"; then $echo "passed 102(|)"; fi;;
- 1) $echo "Test 102(|) failed: files 102.O and $srcdir/102.X differ" 1>&2
- (diff -c 102.O $srcdir/102.X) 2> /dev/null
- errors=`expr $errors + 1`;;
- 2) $echo "Test 102(|) may have failed." 1>&2
- $echo The command "cmp 102.O $srcdir/102.X" failed. 1>&2
- errors=`expr $errors + 1`;;
- esac
-fi
-test -s 102.E || rm -f 102.E
-$xx -c < $srcdir/102.I > 102.O 2> 102.E
-code=$?
-if test $code != 0; then
- $echo "Test 102(<) failed: $xx return code $code differs from expected value 0" 1>&2
- errors=`expr $errors + 1`
-else
- cmp 102.O $srcdir/102.X > /dev/null 2>&1
- case $? in
- 0) if test "$VERBOSE"; then $echo "passed 102(<)"; fi;;
- 1) $echo "Test 102(<) failed: files 102.O and $srcdir/102.X differ" 1>&2
- (diff -c 102.O $srcdir/102.X) 2> /dev/null
- errors=`expr $errors + 1`;;
- 2) $echo "Test 102(<) may have failed." 1>&2
- $echo The command "cmp 102.O $srcdir/102.X" failed. 1>&2
- errors=`expr $errors + 1`;;
- esac
-fi
-test -s 102.E || rm -f 102.E
-cat $srcdir/110.I | $xx -D > 110.O 2> 110.E
-code=$?
-if test $code != 0; then
- $echo "Test 110(|) failed: $xx return code $code differs from expected value 0" 1>&2
- errors=`expr $errors + 1`
-else
- cmp 110.O $srcdir/110.X > /dev/null 2>&1
- case $? in
- 0) if test "$VERBOSE"; then $echo "passed 110(|)"; fi;;
- 1) $echo "Test 110(|) failed: files 110.O and $srcdir/110.X differ" 1>&2
- (diff -c 110.O $srcdir/110.X) 2> /dev/null
- errors=`expr $errors + 1`;;
- 2) $echo "Test 110(|) may have failed." 1>&2
- $echo The command "cmp 110.O $srcdir/110.X" failed. 1>&2
- errors=`expr $errors + 1`;;
- esac
-fi
-test -s 110.E || rm -f 110.E
-$xx -D < $srcdir/110.I > 110.O 2> 110.E
-code=$?
-if test $code != 0; then
- $echo "Test 110(<) failed: $xx return code $code differs from expected value 0" 1>&2
- errors=`expr $errors + 1`
-else
- cmp 110.O $srcdir/110.X > /dev/null 2>&1
- case $? in
- 0) if test "$VERBOSE"; then $echo "passed 110(<)"; fi;;
- 1) $echo "Test 110(<) failed: files 110.O and $srcdir/110.X differ" 1>&2
- (diff -c 110.O $srcdir/110.X) 2> /dev/null
- errors=`expr $errors + 1`;;
- 2) $echo "Test 110(<) may have failed." 1>&2
- $echo The command "cmp 110.O $srcdir/110.X" failed. 1>&2
- errors=`expr $errors + 1`;;
- esac
-fi
-test -s 110.E || rm -f 110.E
-cat $srcdir/111.I | $xx -D -w1 > 111.O 2> 111.E
-code=$?
-if test $code != 0; then
- $echo "Test 111(|) failed: $xx return code $code differs from expected value 0" 1>&2
- errors=`expr $errors + 1`
-else
- cmp 111.O $srcdir/111.X > /dev/null 2>&1
- case $? in
- 0) if test "$VERBOSE"; then $echo "passed 111(|)"; fi;;
- 1) $echo "Test 111(|) failed: files 111.O and $srcdir/111.X differ" 1>&2
- (diff -c 111.O $srcdir/111.X) 2> /dev/null
- errors=`expr $errors + 1`;;
- 2) $echo "Test 111(|) may have failed." 1>&2
- $echo The command "cmp 111.O $srcdir/111.X" failed. 1>&2
- errors=`expr $errors + 1`;;
- esac
-fi
-test -s 111.E || rm -f 111.E
-$xx -D -w1 < $srcdir/111.I > 111.O 2> 111.E
-code=$?
-if test $code != 0; then
- $echo "Test 111(<) failed: $xx return code $code differs from expected value 0" 1>&2
- errors=`expr $errors + 1`
-else
- cmp 111.O $srcdir/111.X > /dev/null 2>&1
- case $? in
- 0) if test "$VERBOSE"; then $echo "passed 111(<)"; fi;;
- 1) $echo "Test 111(<) failed: files 111.O and $srcdir/111.X differ" 1>&2
- (diff -c 111.O $srcdir/111.X) 2> /dev/null
- errors=`expr $errors + 1`;;
- 2) $echo "Test 111(<) may have failed." 1>&2
- $echo The command "cmp 111.O $srcdir/111.X" failed. 1>&2
- errors=`expr $errors + 1`;;
- esac
-fi
-test -s 111.E || rm -f 111.E
-$xx -D -c < $srcdir/112.I > 112.O 2> 112.E
-code=$?
-if test $code != 1; then
- $echo "Test 112 failed: $xx return code $code differs from expected value 1" 1>&2
- errors=`expr $errors + 1`
-else
- cmp 112.O $srcdir/112.X > /dev/null 2>&1
- case $? in
- 0) if test "$VERBOSE"; then $echo "passed 112"; fi;;
- 1) $echo "Test 112 failed: files 112.O and $srcdir/112.X differ" 1>&2
- (diff -c 112.O $srcdir/112.X) 2> /dev/null
- errors=`expr $errors + 1`;;
- 2) $echo "Test 112 may have failed." 1>&2
- $echo The command "cmp 112.O $srcdir/112.X" failed. 1>&2
- errors=`expr $errors + 1`;;
- esac
-fi
-test -s 112.E || rm -f 112.E
-cat $srcdir/113.I | $xx --all-repeated=separate > 113.O 2> 113.E
-code=$?
-if test $code != 0; then
- $echo "Test 113(|) failed: $xx return code $code differs from expected value 0" 1>&2
- errors=`expr $errors + 1`
-else
- cmp 113.O $srcdir/113.X > /dev/null 2>&1
- case $? in
- 0) if test "$VERBOSE"; then $echo "passed 113(|)"; fi;;
- 1) $echo "Test 113(|) failed: files 113.O and $srcdir/113.X differ" 1>&2
- (diff -c 113.O $srcdir/113.X) 2> /dev/null
- errors=`expr $errors + 1`;;
- 2) $echo "Test 113(|) may have failed." 1>&2
- $echo The command "cmp 113.O $srcdir/113.X" failed. 1>&2
- errors=`expr $errors + 1`;;
- esac
-fi
-test -s 113.E || rm -f 113.E
-$xx --all-repeated=separate < $srcdir/113.I > 113.O 2> 113.E
-code=$?
-if test $code != 0; then
- $echo "Test 113(<) failed: $xx return code $code differs from expected value 0" 1>&2
- errors=`expr $errors + 1`
-else
- cmp 113.O $srcdir/113.X > /dev/null 2>&1
- case $? in
- 0) if test "$VERBOSE"; then $echo "passed 113(<)"; fi;;
- 1) $echo "Test 113(<) failed: files 113.O and $srcdir/113.X differ" 1>&2
- (diff -c 113.O $srcdir/113.X) 2> /dev/null
- errors=`expr $errors + 1`;;
- 2) $echo "Test 113(<) may have failed." 1>&2
- $echo The command "cmp 113.O $srcdir/113.X" failed. 1>&2
- errors=`expr $errors + 1`;;
- esac
-fi
-test -s 113.E || rm -f 113.E
-cat $srcdir/114.I | $xx --all-repeated=separate > 114.O 2> 114.E
-code=$?
-if test $code != 0; then
- $echo "Test 114(|) failed: $xx return code $code differs from expected value 0" 1>&2
- errors=`expr $errors + 1`
-else
- cmp 114.O $srcdir/114.X > /dev/null 2>&1
- case $? in
- 0) if test "$VERBOSE"; then $echo "passed 114(|)"; fi;;
- 1) $echo "Test 114(|) failed: files 114.O and $srcdir/114.X differ" 1>&2
- (diff -c 114.O $srcdir/114.X) 2> /dev/null
- errors=`expr $errors + 1`;;
- 2) $echo "Test 114(|) may have failed." 1>&2
- $echo The command "cmp 114.O $srcdir/114.X" failed. 1>&2
- errors=`expr $errors + 1`;;
- esac
-fi
-test -s 114.E || rm -f 114.E
-$xx --all-repeated=separate < $srcdir/114.I > 114.O 2> 114.E
-code=$?
-if test $code != 0; then
- $echo "Test 114(<) failed: $xx return code $code differs from expected value 0" 1>&2
- errors=`expr $errors + 1`
-else
- cmp 114.O $srcdir/114.X > /dev/null 2>&1
- case $? in
- 0) if test "$VERBOSE"; then $echo "passed 114(<)"; fi;;
- 1) $echo "Test 114(<) failed: files 114.O and $srcdir/114.X differ" 1>&2
- (diff -c 114.O $srcdir/114.X) 2> /dev/null
- errors=`expr $errors + 1`;;
- 2) $echo "Test 114(<) may have failed." 1>&2
- $echo The command "cmp 114.O $srcdir/114.X" failed. 1>&2
- errors=`expr $errors + 1`;;
- esac
-fi
-test -s 114.E || rm -f 114.E
-cat $srcdir/115.I | $xx --all-repeated=separate > 115.O 2> 115.E
-code=$?
-if test $code != 0; then
- $echo "Test 115(|) failed: $xx return code $code differs from expected value 0" 1>&2
- errors=`expr $errors + 1`
-else
- cmp 115.O $srcdir/115.X > /dev/null 2>&1
- case $? in
- 0) if test "$VERBOSE"; then $echo "passed 115(|)"; fi;;
- 1) $echo "Test 115(|) failed: files 115.O and $srcdir/115.X differ" 1>&2
- (diff -c 115.O $srcdir/115.X) 2> /dev/null
- errors=`expr $errors + 1`;;
- 2) $echo "Test 115(|) may have failed." 1>&2
- $echo The command "cmp 115.O $srcdir/115.X" failed. 1>&2
- errors=`expr $errors + 1`;;
- esac
-fi
-test -s 115.E || rm -f 115.E
-$xx --all-repeated=separate < $srcdir/115.I > 115.O 2> 115.E
-code=$?
-if test $code != 0; then
- $echo "Test 115(<) failed: $xx return code $code differs from expected value 0" 1>&2
- errors=`expr $errors + 1`
-else
- cmp 115.O $srcdir/115.X > /dev/null 2>&1
- case $? in
- 0) if test "$VERBOSE"; then $echo "passed 115(<)"; fi;;
- 1) $echo "Test 115(<) failed: files 115.O and $srcdir/115.X differ" 1>&2
- (diff -c 115.O $srcdir/115.X) 2> /dev/null
- errors=`expr $errors + 1`;;
- 2) $echo "Test 115(<) may have failed." 1>&2
- $echo The command "cmp 115.O $srcdir/115.X" failed. 1>&2
- errors=`expr $errors + 1`;;
- esac
-fi
-test -s 115.E || rm -f 115.E
-cat $srcdir/116.I | $xx --all-repeated=prepend > 116.O 2> 116.E
-code=$?
-if test $code != 0; then
- $echo "Test 116(|) failed: $xx return code $code differs from expected value 0" 1>&2
- errors=`expr $errors + 1`
-else
- cmp 116.O $srcdir/116.X > /dev/null 2>&1
- case $? in
- 0) if test "$VERBOSE"; then $echo "passed 116(|)"; fi;;
- 1) $echo "Test 116(|) failed: files 116.O and $srcdir/116.X differ" 1>&2
- (diff -c 116.O $srcdir/116.X) 2> /dev/null
- errors=`expr $errors + 1`;;
- 2) $echo "Test 116(|) may have failed." 1>&2
- $echo The command "cmp 116.O $srcdir/116.X" failed. 1>&2
- errors=`expr $errors + 1`;;
- esac
-fi
-test -s 116.E || rm -f 116.E
-$xx --all-repeated=prepend < $srcdir/116.I > 116.O 2> 116.E
-code=$?
-if test $code != 0; then
- $echo "Test 116(<) failed: $xx return code $code differs from expected value 0" 1>&2
- errors=`expr $errors + 1`
-else
- cmp 116.O $srcdir/116.X > /dev/null 2>&1
- case $? in
- 0) if test "$VERBOSE"; then $echo "passed 116(<)"; fi;;
- 1) $echo "Test 116(<) failed: files 116.O and $srcdir/116.X differ" 1>&2
- (diff -c 116.O $srcdir/116.X) 2> /dev/null
- errors=`expr $errors + 1`;;
- 2) $echo "Test 116(<) may have failed." 1>&2
- $echo The command "cmp 116.O $srcdir/116.X" failed. 1>&2
- errors=`expr $errors + 1`;;
- esac
-fi
-test -s 116.E || rm -f 116.E
-cat $srcdir/117.I | $xx --all-repeated=prepend > 117.O 2> 117.E
-code=$?
-if test $code != 0; then
- $echo "Test 117(|) failed: $xx return code $code differs from expected value 0" 1>&2
- errors=`expr $errors + 1`
-else
- cmp 117.O $srcdir/117.X > /dev/null 2>&1
- case $? in
- 0) if test "$VERBOSE"; then $echo "passed 117(|)"; fi;;
- 1) $echo "Test 117(|) failed: files 117.O and $srcdir/117.X differ" 1>&2
- (diff -c 117.O $srcdir/117.X) 2> /dev/null
- errors=`expr $errors + 1`;;
- 2) $echo "Test 117(|) may have failed." 1>&2
- $echo The command "cmp 117.O $srcdir/117.X" failed. 1>&2
- errors=`expr $errors + 1`;;
- esac
-fi
-test -s 117.E || rm -f 117.E
-$xx --all-repeated=prepend < $srcdir/117.I > 117.O 2> 117.E
-code=$?
-if test $code != 0; then
- $echo "Test 117(<) failed: $xx return code $code differs from expected value 0" 1>&2
- errors=`expr $errors + 1`
-else
- cmp 117.O $srcdir/117.X > /dev/null 2>&1
- case $? in
- 0) if test "$VERBOSE"; then $echo "passed 117(<)"; fi;;
- 1) $echo "Test 117(<) failed: files 117.O and $srcdir/117.X differ" 1>&2
- (diff -c 117.O $srcdir/117.X) 2> /dev/null
- errors=`expr $errors + 1`;;
- 2) $echo "Test 117(<) may have failed." 1>&2
- $echo The command "cmp 117.O $srcdir/117.X" failed. 1>&2
- errors=`expr $errors + 1`;;
- esac
-fi
-test -s 117.E || rm -f 117.E
-cat $srcdir/118.I | $xx --all-repeated=prepend > 118.O 2> 118.E
-code=$?
-if test $code != 0; then
- $echo "Test 118(|) failed: $xx return code $code differs from expected value 0" 1>&2
- errors=`expr $errors + 1`
-else
- cmp 118.O $srcdir/118.X > /dev/null 2>&1
- case $? in
- 0) if test "$VERBOSE"; then $echo "passed 118(|)"; fi;;
- 1) $echo "Test 118(|) failed: files 118.O and $srcdir/118.X differ" 1>&2
- (diff -c 118.O $srcdir/118.X) 2> /dev/null
- errors=`expr $errors + 1`;;
- 2) $echo "Test 118(|) may have failed." 1>&2
- $echo The command "cmp 118.O $srcdir/118.X" failed. 1>&2
- errors=`expr $errors + 1`;;
- esac
-fi
-test -s 118.E || rm -f 118.E
-$xx --all-repeated=prepend < $srcdir/118.I > 118.O 2> 118.E
-code=$?
-if test $code != 0; then
- $echo "Test 118(<) failed: $xx return code $code differs from expected value 0" 1>&2
- errors=`expr $errors + 1`
-else
- cmp 118.O $srcdir/118.X > /dev/null 2>&1
- case $? in
- 0) if test "$VERBOSE"; then $echo "passed 118(<)"; fi;;
- 1) $echo "Test 118(<) failed: files 118.O and $srcdir/118.X differ" 1>&2
- (diff -c 118.O $srcdir/118.X) 2> /dev/null
- errors=`expr $errors + 1`;;
- 2) $echo "Test 118(<) may have failed." 1>&2
- $echo The command "cmp 118.O $srcdir/118.X" failed. 1>&2
- errors=`expr $errors + 1`;;
- esac
-fi
-test -s 118.E || rm -f 118.E
-$xx --all-repeated=badoption < $srcdir/119.I > 119.O 2> 119.E
-code=$?
-if test $code != 1; then
- $echo "Test 119 failed: $xx return code $code differs from expected value 1" 1>&2
- errors=`expr $errors + 1`
-else
- cmp 119.O $srcdir/119.X > /dev/null 2>&1
- case $? in
- 0) if test "$VERBOSE"; then $echo "passed 119"; fi;;
- 1) $echo "Test 119 failed: files 119.O and $srcdir/119.X differ" 1>&2
- (diff -c 119.O $srcdir/119.X) 2> /dev/null
- errors=`expr $errors + 1`;;
- 2) $echo "Test 119 may have failed." 1>&2
- $echo The command "cmp 119.O $srcdir/119.X" failed. 1>&2
- errors=`expr $errors + 1`;;
- esac
-fi
-test -s 119.E || rm -f 119.E
-cat $srcdir/120.I | $xx -d -u > 120.O 2> 120.E
-code=$?
-if test $code != 0; then
- $echo "Test 120(|) failed: $xx return code $code differs from expected value 0" 1>&2
- errors=`expr $errors + 1`
-else
- cmp 120.O $srcdir/120.X > /dev/null 2>&1
- case $? in
- 0) if test "$VERBOSE"; then $echo "passed 120(|)"; fi;;
- 1) $echo "Test 120(|) failed: files 120.O and $srcdir/120.X differ" 1>&2
- (diff -c 120.O $srcdir/120.X) 2> /dev/null
- errors=`expr $errors + 1`;;
- 2) $echo "Test 120(|) may have failed." 1>&2
- $echo The command "cmp 120.O $srcdir/120.X" failed. 1>&2
- errors=`expr $errors + 1`;;
- esac
-fi
-test -s 120.E || rm -f 120.E
-$xx -d -u < $srcdir/120.I > 120.O 2> 120.E
-code=$?
-if test $code != 0; then
- $echo "Test 120(<) failed: $xx return code $code differs from expected value 0" 1>&2
- errors=`expr $errors + 1`
-else
- cmp 120.O $srcdir/120.X > /dev/null 2>&1
- case $? in
- 0) if test "$VERBOSE"; then $echo "passed 120(<)"; fi;;
- 1) $echo "Test 120(<) failed: files 120.O and $srcdir/120.X differ" 1>&2
- (diff -c 120.O $srcdir/120.X) 2> /dev/null
- errors=`expr $errors + 1`;;
- 2) $echo "Test 120(<) may have failed." 1>&2
- $echo The command "cmp 120.O $srcdir/120.X" failed. 1>&2
- errors=`expr $errors + 1`;;
- esac
-fi
-test -s 120.E || rm -f 120.E
-cat $srcdir/121.I | $xx -d -u -w340282366920938463463374607431768211456 > 121.O 2> 121.E
-code=$?
-if test $code != 0; then
- $echo "Test 121(|) failed: $xx return code $code differs from expected value 0" 1>&2
- errors=`expr $errors + 1`
-else
- cmp 121.O $srcdir/121.X > /dev/null 2>&1
- case $? in
- 0) if test "$VERBOSE"; then $echo "passed 121(|)"; fi;;
- 1) $echo "Test 121(|) failed: files 121.O and $srcdir/121.X differ" 1>&2
- (diff -c 121.O $srcdir/121.X) 2> /dev/null
- errors=`expr $errors + 1`;;
- 2) $echo "Test 121(|) may have failed." 1>&2
- $echo The command "cmp 121.O $srcdir/121.X" failed. 1>&2
- errors=`expr $errors + 1`;;
- esac
-fi
-test -s 121.E || rm -f 121.E
-$xx -d -u -w340282366920938463463374607431768211456 < $srcdir/121.I > 121.O 2> 121.E
-code=$?
-if test $code != 0; then
- $echo "Test 121(<) failed: $xx return code $code differs from expected value 0" 1>&2
- errors=`expr $errors + 1`
-else
- cmp 121.O $srcdir/121.X > /dev/null 2>&1
- case $? in
- 0) if test "$VERBOSE"; then $echo "passed 121(<)"; fi;;
- 1) $echo "Test 121(<) failed: files 121.O and $srcdir/121.X differ" 1>&2
- (diff -c 121.O $srcdir/121.X) 2> /dev/null
- errors=`expr $errors + 1`;;
- 2) $echo "Test 121(<) may have failed." 1>&2
- $echo The command "cmp 121.O $srcdir/121.X" failed. 1>&2
- errors=`expr $errors + 1`;;
- esac
-fi
-test -s 121.E || rm -f 121.E
-if test $errors = 0; then
- $echo Passed all 122 tests. 1>&2
-else
- $echo Failed $errors tests. 1>&2
-fi
-test $errors = 0 || errors=1
-exit $errors
diff --git a/tests/very-expensive b/tests/very-expensive
deleted file mode 100644
index 3e27c0b..0000000
--- a/tests/very-expensive
+++ /dev/null
@@ -1,11 +0,0 @@
-if test "$RUN_VERY_EXPENSIVE_TESTS" != yes; then
- cat <<EOF >&2
-$0: This test is very expensive, so it is disabled by default.
-To run it anyway, rerun make check with the RUN_VERY_EXPENSIVE_TESTS
-environment variable set to yes. E.g.,
-
- env RUN_VERY_EXPENSIVE_TESTS=yes make check
-
-EOF
- (exit 77); exit 77
-fi
diff --git a/tests/wc/Makefile.am b/tests/wc/Makefile.am
deleted file mode 100644
index 04dad02..0000000
--- a/tests/wc/Makefile.am
+++ /dev/null
@@ -1,62 +0,0 @@
-# Make coreutils tests. -*-Makefile-*-
-
-# Copyright (C) 1997, 1998, 2000, 2003, 2004, 2006 Free Software
-# Foundation, Inc.
-
-# This program is free software; you can redistribute it and/or modify
-# it under the terms of the GNU General Public License as published by
-# the Free Software Foundation; either version 2 of the License, or
-# (at your option) any later version.
-
-# This program is distributed in the hope that it will be useful,
-# but WITHOUT ANY WARRANTY; without even the implied warranty of
-# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
-# GNU General Public License for more details.
-
-# You should have received a copy of the GNU General Public License
-# along with this program; if not, write to the Free Software
-# Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA
-# 02110-1301, USA.
-
-##test-files-begin
-x = wc
-explicit =
-maint_gen = a0.I a0.X a1.I a1.X a2.I a2.X a3.I a3.X a4.I a4.X a5.I a5.X a6.I \
-a6.X a7.I a7.X a8.I a8.X a9.I a9.X b0.I b0.X b1.I b1.X c0.I c0.X c1.I c1.X \
-c2.I c2.X
-run_gen = a0.O a0.E a1.O a1.E a2.O a2.E a3.O a3.E a4.O a4.E a5.O a5.E a6.O \
-a6.E a7.O a7.E a8.O a8.E a9.O a9.E b0.O b0.E b1.O b1.E c0.O c0.E c1.O c1.E \
-c2.O c2.E
-##test-files-end
-
-EXTRA_DIST = Test.pm $x-tests $(explicit) $(maint_gen)
-noinst_SCRIPTS = $x-tests
-TESTS_ENVIRONMENT = \
- CU_TEST_NAME=`basename $(abs_srcdir)`,$$tst \
- PATH="$(VG_PATH_PREFIX)`pwd`/../../src$(PATH_SEPARATOR)$$PATH"
-
-editpl = sed -e 's,@''PERL''@,$(PERL),g' -e 's,@''srcdir''@,$(srcdir),g'
-
-TESTS = $x-tests
-
-mk_script = $(srcdir)/../mk-script
-$(srcdir)/$x-tests: $(mk_script) Test.pm Makefile.am
- test '$x' = test && prog=../../src/$x || prog=$x; \
- $(PERL) -I$(srcdir) -w -- $(mk_script) $(srcdir) $$prog > $@.n
- mv $@.n $@
- chmod 755 $@
-
-MAINTAINERCLEANFILES = $x-tests $(maint_gen)
-CLEANFILES = $(run_gen)
-
-check: $(maint_gen)
-
-$(srcdir)/Makefile.am: ../Makefile.am.in Test.pm $(mk_script)
- rm -f $@ $@t
- sed -n '1,/^##test-files-begin/p' $(srcdir)/../Makefile.am.in > $@t
- tool=`echo $(subdir)|sed 's/^tests.//;s/-test//'`; \
- echo "x = $$tool" >> $@t
- $(PERL) -I$(srcdir) -w -- $(mk_script) $(srcdir) --list >> $@t
- sed -n '/^##test-files-end/,$$p' $(srcdir)/../Makefile.am.in >> $@t
- chmod -w $@t
- mv $@t $@
diff --git a/tests/wc/Makefile.in b/tests/wc/Makefile.in
deleted file mode 100644
index 5a46cac..0000000
--- a/tests/wc/Makefile.in
+++ /dev/null
@@ -1,772 +0,0 @@
-# Makefile.in generated by automake 1.10 from Makefile.am.
-# @configure_input@
-
-# Copyright (C) 1994, 1995, 1996, 1997, 1998, 1999, 2000, 2001, 2002,
-# 2003, 2004, 2005, 2006 Free Software Foundation, Inc.
-# This Makefile.in is free software; the Free Software Foundation
-# gives unlimited permission to copy and/or distribute it,
-# with or without modifications, as long as this notice is preserved.
-
-# This program is distributed in the hope that it will be useful,
-# but WITHOUT ANY WARRANTY, to the extent permitted by law; without
-# even the implied warranty of MERCHANTABILITY or FITNESS FOR A
-# PARTICULAR PURPOSE.
-
-@SET_MAKE@
-
-# Make coreutils tests. -*-Makefile-*-
-
-# Copyright (C) 1997, 1998, 2000, 2003, 2004, 2006 Free Software
-# Foundation, Inc.
-
-# This program is free software; you can redistribute it and/or modify
-# it under the terms of the GNU General Public License as published by
-# the Free Software Foundation; either version 2 of the License, or
-# (at your option) any later version.
-
-# This program is distributed in the hope that it will be useful,
-# but WITHOUT ANY WARRANTY; without even the implied warranty of
-# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
-# GNU General Public License for more details.
-
-# You should have received a copy of the GNU General Public License
-# along with this program; if not, write to the Free Software
-# Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA
-# 02110-1301, USA.
-
-VPATH = @srcdir@
-pkgdatadir = $(datadir)/@PACKAGE@
-pkglibdir = $(libdir)/@PACKAGE@
-pkgincludedir = $(includedir)/@PACKAGE@
-am__cd = CDPATH="$${ZSH_VERSION+.}$(PATH_SEPARATOR)" && cd
-install_sh_DATA = $(install_sh) -c -m 644
-install_sh_PROGRAM = $(install_sh) -c
-install_sh_SCRIPT = $(install_sh) -c
-INSTALL_HEADER = $(INSTALL_DATA)
-transform = $(program_transform_name)
-NORMAL_INSTALL = :
-PRE_INSTALL = :
-POST_INSTALL = :
-NORMAL_UNINSTALL = :
-PRE_UNINSTALL = :
-POST_UNINSTALL = :
-build_triplet = @build@
-host_triplet = @host@
-subdir = tests/wc
-DIST_COMMON = $(srcdir)/Makefile.am $(srcdir)/Makefile.in
-ACLOCAL_M4 = $(top_srcdir)/aclocal.m4
-am__aclocal_m4_deps = $(top_srcdir)/m4/absolute-header.m4 \
- $(top_srcdir)/m4/acl.m4 $(top_srcdir)/m4/alloca.m4 \
- $(top_srcdir)/m4/allocsa.m4 $(top_srcdir)/m4/argmatch.m4 \
- $(top_srcdir)/m4/arpa_inet_h.m4 $(top_srcdir)/m4/assert.m4 \
- $(top_srcdir)/m4/atexit.m4 $(top_srcdir)/m4/autobuild.m4 \
- $(top_srcdir)/m4/backupfile.m4 $(top_srcdir)/m4/base64.m4 \
- $(top_srcdir)/m4/bison.m4 $(top_srcdir)/m4/boottime.m4 \
- $(top_srcdir)/m4/c-strtod.m4 $(top_srcdir)/m4/calloc.m4 \
- $(top_srcdir)/m4/canon-host.m4 \
- $(top_srcdir)/m4/canonicalize.m4 \
- $(top_srcdir)/m4/chdir-long.m4 $(top_srcdir)/m4/check-decl.m4 \
- $(top_srcdir)/m4/chown.m4 $(top_srcdir)/m4/clock_time.m4 \
- $(top_srcdir)/m4/cloexec.m4 $(top_srcdir)/m4/close-stream.m4 \
- $(top_srcdir)/m4/closeout.m4 $(top_srcdir)/m4/codeset.m4 \
- $(top_srcdir)/m4/config-h.m4 $(top_srcdir)/m4/cycle-check.m4 \
- $(top_srcdir)/m4/d-ino.m4 $(top_srcdir)/m4/d-type.m4 \
- $(top_srcdir)/m4/dirfd.m4 $(top_srcdir)/m4/dirname.m4 \
- $(top_srcdir)/m4/dos.m4 $(top_srcdir)/m4/double-slash-root.m4 \
- $(top_srcdir)/m4/dup2.m4 $(top_srcdir)/m4/eealloc.m4 \
- $(top_srcdir)/m4/eoverflow.m4 $(top_srcdir)/m4/error.m4 \
- $(top_srcdir)/m4/euidaccess-stat.m4 \
- $(top_srcdir)/m4/euidaccess.m4 $(top_srcdir)/m4/exclude.m4 \
- $(top_srcdir)/m4/exitfail.m4 $(top_srcdir)/m4/extensions.m4 \
- $(top_srcdir)/m4/fchdir.m4 $(top_srcdir)/m4/fcntl-safer.m4 \
- $(top_srcdir)/m4/fcntl_h.m4 $(top_srcdir)/m4/fd-reopen.m4 \
- $(top_srcdir)/m4/file-type.m4 $(top_srcdir)/m4/fileblocks.m4 \
- $(top_srcdir)/m4/filemode.m4 $(top_srcdir)/m4/filenamecat.m4 \
- $(top_srcdir)/m4/flexmember.m4 $(top_srcdir)/m4/fnmatch.m4 \
- $(top_srcdir)/m4/fpending.m4 $(top_srcdir)/m4/fprintftime.m4 \
- $(top_srcdir)/m4/free.m4 $(top_srcdir)/m4/fstypename.m4 \
- $(top_srcdir)/m4/fsusage.m4 $(top_srcdir)/m4/ftruncate.m4 \
- $(top_srcdir)/m4/fts.m4 $(top_srcdir)/m4/getaddrinfo.m4 \
- $(top_srcdir)/m4/getcwd-abort-bug.m4 \
- $(top_srcdir)/m4/getcwd-path-max.m4 $(top_srcdir)/m4/getcwd.m4 \
- $(top_srcdir)/m4/getdate.m4 $(top_srcdir)/m4/getdelim.m4 \
- $(top_srcdir)/m4/getgroups.m4 $(top_srcdir)/m4/gethostname.m4 \
- $(top_srcdir)/m4/gethrxtime.m4 $(top_srcdir)/m4/getline.m4 \
- $(top_srcdir)/m4/getloadavg.m4 $(top_srcdir)/m4/getndelim2.m4 \
- $(top_srcdir)/m4/getopt.m4 $(top_srcdir)/m4/getpagesize.m4 \
- $(top_srcdir)/m4/getpass.m4 $(top_srcdir)/m4/gettext.m4 \
- $(top_srcdir)/m4/gettime.m4 $(top_srcdir)/m4/gettimeofday.m4 \
- $(top_srcdir)/m4/getugroups.m4 \
- $(top_srcdir)/m4/getusershell.m4 $(top_srcdir)/m4/glibc21.m4 \
- $(top_srcdir)/m4/gnulib-common.m4 \
- $(top_srcdir)/m4/gnulib-comp.m4 \
- $(top_srcdir)/m4/group-member.m4 \
- $(top_srcdir)/m4/hard-locale.m4 $(top_srcdir)/m4/hash.m4 \
- $(top_srcdir)/m4/host-os.m4 $(top_srcdir)/m4/human.m4 \
- $(top_srcdir)/m4/i-ring.m4 $(top_srcdir)/m4/iconv.m4 \
- $(top_srcdir)/m4/idcache.m4 $(top_srcdir)/m4/inet_ntop.m4 \
- $(top_srcdir)/m4/inline.m4 $(top_srcdir)/m4/intmax_t.m4 \
- $(top_srcdir)/m4/inttostr.m4 $(top_srcdir)/m4/inttypes-pri.m4 \
- $(top_srcdir)/m4/inttypes.m4 $(top_srcdir)/m4/inttypes_h.m4 \
- $(top_srcdir)/m4/isapipe.m4 $(top_srcdir)/m4/jm-macros.m4 \
- $(top_srcdir)/m4/jm-winsz1.m4 $(top_srcdir)/m4/jm-winsz2.m4 \
- $(top_srcdir)/m4/lchmod.m4 $(top_srcdir)/m4/lchown.m4 \
- $(top_srcdir)/m4/lib-check.m4 $(top_srcdir)/m4/lib-ignore.m4 \
- $(top_srcdir)/m4/lib-ld.m4 $(top_srcdir)/m4/lib-link.m4 \
- $(top_srcdir)/m4/lib-prefix.m4 $(top_srcdir)/m4/link-follow.m4 \
- $(top_srcdir)/m4/localcharset.m4 \
- $(top_srcdir)/m4/long-options.m4 \
- $(top_srcdir)/m4/longdouble.m4 $(top_srcdir)/m4/longlong.m4 \
- $(top_srcdir)/m4/ls-mntd-fs.m4 $(top_srcdir)/m4/lstat.m4 \
- $(top_srcdir)/m4/mbchar.m4 $(top_srcdir)/m4/mbiter.m4 \
- $(top_srcdir)/m4/mbrtowc.m4 $(top_srcdir)/m4/mbscasecmp.m4 \
- $(top_srcdir)/m4/mbstate_t.m4 $(top_srcdir)/m4/mbswidth.m4 \
- $(top_srcdir)/m4/md5.m4 $(top_srcdir)/m4/memcasecmp.m4 \
- $(top_srcdir)/m4/memchr.m4 $(top_srcdir)/m4/memcmp.m4 \
- $(top_srcdir)/m4/memcoll.m4 $(top_srcdir)/m4/memcpy.m4 \
- $(top_srcdir)/m4/memmove.m4 $(top_srcdir)/m4/mempcpy.m4 \
- $(top_srcdir)/m4/memrchr.m4 $(top_srcdir)/m4/memset.m4 \
- $(top_srcdir)/m4/memxfrm.m4 $(top_srcdir)/m4/mkancesdirs.m4 \
- $(top_srcdir)/m4/mkdir-p.m4 $(top_srcdir)/m4/mkdir-slash.m4 \
- $(top_srcdir)/m4/mkstemp.m4 $(top_srcdir)/m4/mktime.m4 \
- $(top_srcdir)/m4/modechange.m4 $(top_srcdir)/m4/mountlist.m4 \
- $(top_srcdir)/m4/mpsort.m4 $(top_srcdir)/m4/nanosleep.m4 \
- $(top_srcdir)/m4/netinet_in_h.m4 $(top_srcdir)/m4/nls.m4 \
- $(top_srcdir)/m4/openat.m4 $(top_srcdir)/m4/pathmax.m4 \
- $(top_srcdir)/m4/perl.m4 $(top_srcdir)/m4/physmem.m4 \
- $(top_srcdir)/m4/po.m4 $(top_srcdir)/m4/posixtm.m4 \
- $(top_srcdir)/m4/posixver.m4 $(top_srcdir)/m4/prereq.m4 \
- $(top_srcdir)/m4/progtest.m4 $(top_srcdir)/m4/putenv.m4 \
- $(top_srcdir)/m4/quote.m4 $(top_srcdir)/m4/quotearg.m4 \
- $(top_srcdir)/m4/randint.m4 $(top_srcdir)/m4/randperm.m4 \
- $(top_srcdir)/m4/randread.m4 $(top_srcdir)/m4/readlink.m4 \
- $(top_srcdir)/m4/readtokens.m4 $(top_srcdir)/m4/readutmp.m4 \
- $(top_srcdir)/m4/regex.m4 \
- $(top_srcdir)/m4/rename-dest-slash.m4 \
- $(top_srcdir)/m4/rename.m4 $(top_srcdir)/m4/rmdir-errno.m4 \
- $(top_srcdir)/m4/rmdir.m4 $(top_srcdir)/m4/root-dev-ino.m4 \
- $(top_srcdir)/m4/rpmatch.m4 $(top_srcdir)/m4/safe-read.m4 \
- $(top_srcdir)/m4/safe-write.m4 $(top_srcdir)/m4/same.m4 \
- $(top_srcdir)/m4/save-cwd.m4 $(top_srcdir)/m4/savedir.m4 \
- $(top_srcdir)/m4/savewd.m4 $(top_srcdir)/m4/setenv.m4 \
- $(top_srcdir)/m4/settime.m4 $(top_srcdir)/m4/sha1.m4 \
- $(top_srcdir)/m4/sha256.m4 $(top_srcdir)/m4/sha512.m4 \
- $(top_srcdir)/m4/sig2str.m4 $(top_srcdir)/m4/snprintf.m4 \
- $(top_srcdir)/m4/socklen.m4 $(top_srcdir)/m4/sockpfaf.m4 \
- $(top_srcdir)/m4/ssize_t.m4 $(top_srcdir)/m4/st_dm_mode.m4 \
- $(top_srcdir)/m4/stat-prog.m4 $(top_srcdir)/m4/stat-time.m4 \
- $(top_srcdir)/m4/stdarg.m4 $(top_srcdir)/m4/stdbool.m4 \
- $(top_srcdir)/m4/stdint.m4 $(top_srcdir)/m4/stdint_h.m4 \
- $(top_srcdir)/m4/stdio-safer.m4 $(top_srcdir)/m4/stdio_h.m4 \
- $(top_srcdir)/m4/stdlib-safer.m4 $(top_srcdir)/m4/stdlib_h.m4 \
- $(top_srcdir)/m4/stpcpy.m4 $(top_srcdir)/m4/strcspn.m4 \
- $(top_srcdir)/m4/strdup.m4 $(top_srcdir)/m4/strftime.m4 \
- $(top_srcdir)/m4/string_h.m4 $(top_srcdir)/m4/strndup.m4 \
- $(top_srcdir)/m4/strnlen.m4 $(top_srcdir)/m4/strnumcmp.m4 \
- $(top_srcdir)/m4/strpbrk.m4 $(top_srcdir)/m4/strtod.m4 \
- $(top_srcdir)/m4/strtoimax.m4 $(top_srcdir)/m4/strtol.m4 \
- $(top_srcdir)/m4/strtoll.m4 $(top_srcdir)/m4/strtoul.m4 \
- $(top_srcdir)/m4/strtoull.m4 $(top_srcdir)/m4/strtoumax.m4 \
- $(top_srcdir)/m4/strverscmp.m4 \
- $(top_srcdir)/m4/sys_socket_h.m4 \
- $(top_srcdir)/m4/sys_stat_h.m4 $(top_srcdir)/m4/sys_time_h.m4 \
- $(top_srcdir)/m4/tempname.m4 $(top_srcdir)/m4/time_h.m4 \
- $(top_srcdir)/m4/time_r.m4 $(top_srcdir)/m4/timespec.m4 \
- $(top_srcdir)/m4/tm_gmtoff.m4 $(top_srcdir)/m4/tzset.m4 \
- $(top_srcdir)/m4/unicodeio.m4 $(top_srcdir)/m4/unistd-safer.m4 \
- $(top_srcdir)/m4/unistd_h.m4 $(top_srcdir)/m4/unlink-busy.m4 \
- $(top_srcdir)/m4/unlinkdir.m4 $(top_srcdir)/m4/unlocked-io.m4 \
- $(top_srcdir)/m4/uptime.m4 $(top_srcdir)/m4/userspec.m4 \
- $(top_srcdir)/m4/utimbuf.m4 $(top_srcdir)/m4/utime.m4 \
- $(top_srcdir)/m4/utimecmp.m4 $(top_srcdir)/m4/utimens.m4 \
- $(top_srcdir)/m4/utimes-null.m4 $(top_srcdir)/m4/utimes.m4 \
- $(top_srcdir)/m4/vasnprintf.m4 $(top_srcdir)/m4/vasprintf.m4 \
- $(top_srcdir)/m4/wchar.m4 $(top_srcdir)/m4/wchar_t.m4 \
- $(top_srcdir)/m4/wctype.m4 $(top_srcdir)/m4/wcwidth.m4 \
- $(top_srcdir)/m4/wint_t.m4 $(top_srcdir)/m4/xalloc.m4 \
- $(top_srcdir)/m4/xfts.m4 $(top_srcdir)/m4/xgetcwd.m4 \
- $(top_srcdir)/m4/xnanosleep.m4 $(top_srcdir)/m4/xstrndup.m4 \
- $(top_srcdir)/m4/xstrtod.m4 $(top_srcdir)/m4/xstrtol.m4 \
- $(top_srcdir)/m4/yesno.m4 $(top_srcdir)/configure.ac
-am__configure_deps = $(am__aclocal_m4_deps) $(CONFIGURE_DEPENDENCIES) \
- $(ACLOCAL_M4)
-mkinstalldirs = $(install_sh) -d
-CONFIG_HEADER = $(top_builddir)/lib/config.h
-CONFIG_CLEAN_FILES =
-SCRIPTS = $(noinst_SCRIPTS)
-SOURCES =
-DIST_SOURCES =
-DISTFILES = $(DIST_COMMON) $(DIST_SOURCES) $(TEXINFOS) $(EXTRA_DIST)
-ABSOLUTE_DIRENT_H = @ABSOLUTE_DIRENT_H@
-ABSOLUTE_FCNTL_H = @ABSOLUTE_FCNTL_H@
-ABSOLUTE_INTTYPES_H = @ABSOLUTE_INTTYPES_H@
-ABSOLUTE_NETINET_IN_H = @ABSOLUTE_NETINET_IN_H@
-ABSOLUTE_STDINT_H = @ABSOLUTE_STDINT_H@
-ABSOLUTE_STDIO_H = @ABSOLUTE_STDIO_H@
-ABSOLUTE_STDLIB_H = @ABSOLUTE_STDLIB_H@
-ABSOLUTE_STRING_H = @ABSOLUTE_STRING_H@
-ABSOLUTE_SYS_SOCKET_H = @ABSOLUTE_SYS_SOCKET_H@
-ABSOLUTE_SYS_STAT_H = @ABSOLUTE_SYS_STAT_H@
-ABSOLUTE_SYS_TIME_H = @ABSOLUTE_SYS_TIME_H@
-ABSOLUTE_TIME_H = @ABSOLUTE_TIME_H@
-ABSOLUTE_UNISTD_H = @ABSOLUTE_UNISTD_H@
-ABSOLUTE_WCHAR_H = @ABSOLUTE_WCHAR_H@
-ABSOLUTE_WCTYPE_H = @ABSOLUTE_WCTYPE_H@
-ACLOCAL = @ACLOCAL@
-ALLOCA = @ALLOCA@
-ALLOCA_H = @ALLOCA_H@
-AMTAR = @AMTAR@
-ARPA_INET_H = @ARPA_INET_H@
-AUTOCONF = @AUTOCONF@
-AUTOHEADER = @AUTOHEADER@
-AUTOMAKE = @AUTOMAKE@
-AWK = @AWK@
-BITSIZEOF_PTRDIFF_T = @BITSIZEOF_PTRDIFF_T@
-BITSIZEOF_SIG_ATOMIC_T = @BITSIZEOF_SIG_ATOMIC_T@
-BITSIZEOF_SIZE_T = @BITSIZEOF_SIZE_T@
-BITSIZEOF_WCHAR_T = @BITSIZEOF_WCHAR_T@
-BITSIZEOF_WINT_T = @BITSIZEOF_WINT_T@
-CC = @CC@
-CCDEPMODE = @CCDEPMODE@
-CFLAGS = @CFLAGS@
-CPP = @CPP@
-CPPFLAGS = @CPPFLAGS@
-CYGPATH_W = @CYGPATH_W@
-DEFAULT_POSIX2_VERSION = @DEFAULT_POSIX2_VERSION@
-DEFS = @DEFS@
-DEPDIR = @DEPDIR@
-DF_PROG = @DF_PROG@
-DIRENT_H = @DIRENT_H@
-ECHO_C = @ECHO_C@
-ECHO_N = @ECHO_N@
-ECHO_T = @ECHO_T@
-EGREP = @EGREP@
-EOVERFLOW = @EOVERFLOW@
-EXEEXT = @EXEEXT@
-FCNTL_H = @FCNTL_H@
-FNMATCH_H = @FNMATCH_H@
-GETLOADAVG_LIBS = @GETLOADAVG_LIBS@
-GETOPT_H = @GETOPT_H@
-GLIBC21 = @GLIBC21@
-GMSGFMT = @GMSGFMT@
-GMSGFMT_015 = @GMSGFMT_015@
-GNULIB_CHOWN = @GNULIB_CHOWN@
-GNULIB_DUP2 = @GNULIB_DUP2@
-GNULIB_FCHDIR = @GNULIB_FCHDIR@
-GNULIB_FPRINTF_POSIX = @GNULIB_FPRINTF_POSIX@
-GNULIB_FTRUNCATE = @GNULIB_FTRUNCATE@
-GNULIB_GETCWD = @GNULIB_GETCWD@
-GNULIB_GETLOGIN_R = @GNULIB_GETLOGIN_R@
-GNULIB_GETSUBOPT = @GNULIB_GETSUBOPT@
-GNULIB_IMAXABS = @GNULIB_IMAXABS@
-GNULIB_IMAXDIV = @GNULIB_IMAXDIV@
-GNULIB_MBSCASECMP = @GNULIB_MBSCASECMP@
-GNULIB_MBSCASESTR = @GNULIB_MBSCASESTR@
-GNULIB_MBSCHR = @GNULIB_MBSCHR@
-GNULIB_MBSCSPN = @GNULIB_MBSCSPN@
-GNULIB_MBSLEN = @GNULIB_MBSLEN@
-GNULIB_MBSNCASECMP = @GNULIB_MBSNCASECMP@
-GNULIB_MBSPBRK = @GNULIB_MBSPBRK@
-GNULIB_MBSPCASECMP = @GNULIB_MBSPCASECMP@
-GNULIB_MBSRCHR = @GNULIB_MBSRCHR@
-GNULIB_MBSSEP = @GNULIB_MBSSEP@
-GNULIB_MBSSPN = @GNULIB_MBSSPN@
-GNULIB_MBSSTR = @GNULIB_MBSSTR@
-GNULIB_MBSTOK_R = @GNULIB_MBSTOK_R@
-GNULIB_MEMMEM = @GNULIB_MEMMEM@
-GNULIB_MEMPCPY = @GNULIB_MEMPCPY@
-GNULIB_MEMRCHR = @GNULIB_MEMRCHR@
-GNULIB_MKDTEMP = @GNULIB_MKDTEMP@
-GNULIB_MKSTEMP = @GNULIB_MKSTEMP@
-GNULIB_PRINTF_POSIX = @GNULIB_PRINTF_POSIX@
-GNULIB_READLINK = @GNULIB_READLINK@
-GNULIB_SNPRINTF = @GNULIB_SNPRINTF@
-GNULIB_SPRINTF_POSIX = @GNULIB_SPRINTF_POSIX@
-GNULIB_STPCPY = @GNULIB_STPCPY@
-GNULIB_STPNCPY = @GNULIB_STPNCPY@
-GNULIB_STRCASESTR = @GNULIB_STRCASESTR@
-GNULIB_STRCHRNUL = @GNULIB_STRCHRNUL@
-GNULIB_STRDUP = @GNULIB_STRDUP@
-GNULIB_STRNDUP = @GNULIB_STRNDUP@
-GNULIB_STRNLEN = @GNULIB_STRNLEN@
-GNULIB_STRPBRK = @GNULIB_STRPBRK@
-GNULIB_STRSEP = @GNULIB_STRSEP@
-GNULIB_STRTOIMAX = @GNULIB_STRTOIMAX@
-GNULIB_STRTOK_R = @GNULIB_STRTOK_R@
-GNULIB_STRTOUMAX = @GNULIB_STRTOUMAX@
-GNULIB_VFPRINTF_POSIX = @GNULIB_VFPRINTF_POSIX@
-GNULIB_VPRINTF_POSIX = @GNULIB_VPRINTF_POSIX@
-GNULIB_VSNPRINTF = @GNULIB_VSNPRINTF@
-GNULIB_VSPRINTF_POSIX = @GNULIB_VSPRINTF_POSIX@
-GNU_PACKAGE = @GNU_PACKAGE@
-GREP = @GREP@
-HAVE_DECL_GETLOGIN_R = @HAVE_DECL_GETLOGIN_R@
-HAVE_DECL_IMAXABS = @HAVE_DECL_IMAXABS@
-HAVE_DECL_IMAXDIV = @HAVE_DECL_IMAXDIV@
-HAVE_DECL_MEMMEM = @HAVE_DECL_MEMMEM@
-HAVE_DECL_MEMRCHR = @HAVE_DECL_MEMRCHR@
-HAVE_DECL_SNPRINTF = @HAVE_DECL_SNPRINTF@
-HAVE_DECL_STRDUP = @HAVE_DECL_STRDUP@
-HAVE_DECL_STRNCASECMP = @HAVE_DECL_STRNCASECMP@
-HAVE_DECL_STRNDUP = @HAVE_DECL_STRNDUP@
-HAVE_DECL_STRNLEN = @HAVE_DECL_STRNLEN@
-HAVE_DECL_STRTOIMAX = @HAVE_DECL_STRTOIMAX@
-HAVE_DECL_STRTOK_R = @HAVE_DECL_STRTOK_R@
-HAVE_DECL_STRTOUMAX = @HAVE_DECL_STRTOUMAX@
-HAVE_DECL_VSNPRINTF = @HAVE_DECL_VSNPRINTF@
-HAVE_DUP2 = @HAVE_DUP2@
-HAVE_FTRUNCATE = @HAVE_FTRUNCATE@
-HAVE_GETSUBOPT = @HAVE_GETSUBOPT@
-HAVE_INTTYPES_H = @HAVE_INTTYPES_H@
-HAVE_LONG_LONG_INT = @HAVE_LONG_LONG_INT@
-HAVE_MEMPCPY = @HAVE_MEMPCPY@
-HAVE_MKDTEMP = @HAVE_MKDTEMP@
-HAVE_NETINET_IN_H = @HAVE_NETINET_IN_H@
-HAVE_READLINK = @HAVE_READLINK@
-HAVE_SIGNED_SIG_ATOMIC_T = @HAVE_SIGNED_SIG_ATOMIC_T@
-HAVE_SIGNED_WCHAR_T = @HAVE_SIGNED_WCHAR_T@
-HAVE_SIGNED_WINT_T = @HAVE_SIGNED_WINT_T@
-HAVE_STDINT_H = @HAVE_STDINT_H@
-HAVE_STPCPY = @HAVE_STPCPY@
-HAVE_STPNCPY = @HAVE_STPNCPY@
-HAVE_STRCASECMP = @HAVE_STRCASECMP@
-HAVE_STRCASESTR = @HAVE_STRCASESTR@
-HAVE_STRCHRNUL = @HAVE_STRCHRNUL@
-HAVE_STRNDUP = @HAVE_STRNDUP@
-HAVE_STRPBRK = @HAVE_STRPBRK@
-HAVE_STRSEP = @HAVE_STRSEP@
-HAVE_STRUCT_TIMEVAL = @HAVE_STRUCT_TIMEVAL@
-HAVE_SYS_BITYPES_H = @HAVE_SYS_BITYPES_H@
-HAVE_SYS_INTTYPES_H = @HAVE_SYS_INTTYPES_H@
-HAVE_SYS_SOCKET_H = @HAVE_SYS_SOCKET_H@
-HAVE_SYS_TIME_H = @HAVE_SYS_TIME_H@
-HAVE_SYS_TYPES_H = @HAVE_SYS_TYPES_H@
-HAVE_UNISTD_H = @HAVE_UNISTD_H@
-HAVE_UNSIGNED_LONG_LONG_INT = @HAVE_UNSIGNED_LONG_LONG_INT@
-HAVE_WCTYPE_H = @HAVE_WCTYPE_H@
-HAVE_WINSOCK2_H = @HAVE_WINSOCK2_H@
-HAVE_WINT_T = @HAVE_WINT_T@
-HAVE_WS2TCPIP_H = @HAVE_WS2TCPIP_H@
-HAVE__BOOL = @HAVE__BOOL@
-HELP2MAN = @HELP2MAN@
-INSTALL = @INSTALL@
-INSTALL_DATA = @INSTALL_DATA@
-INSTALL_PROGRAM = @INSTALL_PROGRAM@
-INSTALL_SCRIPT = @INSTALL_SCRIPT@
-INSTALL_STRIP_PROGRAM = @INSTALL_STRIP_PROGRAM@
-INTLLIBS = @INTLLIBS@
-INTL_MACOSX_LIBS = @INTL_MACOSX_LIBS@
-INTTYPES_H = @INTTYPES_H@
-KMEM_GROUP = @KMEM_GROUP@
-LDFLAGS = @LDFLAGS@
-LIBCOREUTILS_LIBDEPS = @LIBCOREUTILS_LIBDEPS@
-LIBCOREUTILS_LTLIBDEPS = @LIBCOREUTILS_LTLIBDEPS@
-LIBICONV = @LIBICONV@
-LIBINTL = @LIBINTL@
-LIBOBJS = @LIBOBJS@
-LIBS = @LIBS@
-LIB_ACL = @LIB_ACL@
-LIB_ACL_TRIVIAL = @LIB_ACL_TRIVIAL@
-LIB_CLOCK_GETTIME = @LIB_CLOCK_GETTIME@
-LIB_CRYPT = @LIB_CRYPT@
-LIB_EACCESS = @LIB_EACCESS@
-LIB_FDATASYNC = @LIB_FDATASYNC@
-LIB_GETHRXTIME = @LIB_GETHRXTIME@
-LIB_NANOSLEEP = @LIB_NANOSLEEP@
-LN_S = @LN_S@
-LTLIBICONV = @LTLIBICONV@
-LTLIBINTL = @LTLIBINTL@
-LTLIBOBJS = @LTLIBOBJS@
-MAKEINFO = @MAKEINFO@
-MAN = @MAN@
-MKDIR_P = @MKDIR_P@
-MSGFMT = @MSGFMT@
-MSGFMT_015 = @MSGFMT_015@
-MSGMERGE = @MSGMERGE@
-NEED_SETGID = @NEED_SETGID@
-NETINET_IN_H = @NETINET_IN_H@
-OBJEXT = @OBJEXT@
-OPTIONAL_BIN_PROGS = @OPTIONAL_BIN_PROGS@
-PACKAGE = @PACKAGE@
-PACKAGE_BUGREPORT = @PACKAGE_BUGREPORT@
-PACKAGE_NAME = @PACKAGE_NAME@
-PACKAGE_STRING = @PACKAGE_STRING@
-PACKAGE_TARNAME = @PACKAGE_TARNAME@
-PACKAGE_VERSION = @PACKAGE_VERSION@
-PATH_SEPARATOR = @PATH_SEPARATOR@
-PERL = @PERL@
-POSUB = @POSUB@
-POW_LIB = @POW_LIB@
-PRIPTR_PREFIX = @PRIPTR_PREFIX@
-PRI_MACROS_BROKEN = @PRI_MACROS_BROKEN@
-PTRDIFF_T_SUFFIX = @PTRDIFF_T_SUFFIX@
-RANLIB = @RANLIB@
-REPLACE_CHOWN = @REPLACE_CHOWN@
-REPLACE_FCHDIR = @REPLACE_FCHDIR@
-REPLACE_FPRINTF = @REPLACE_FPRINTF@
-REPLACE_GETCWD = @REPLACE_GETCWD@
-REPLACE_GETTIMEOFDAY = @REPLACE_GETTIMEOFDAY@
-REPLACE_LOCALTIME_R = @REPLACE_LOCALTIME_R@
-REPLACE_MKSTEMP = @REPLACE_MKSTEMP@
-REPLACE_NANOSLEEP = @REPLACE_NANOSLEEP@
-REPLACE_PRINTF = @REPLACE_PRINTF@
-REPLACE_SNPRINTF = @REPLACE_SNPRINTF@
-REPLACE_SPRINTF = @REPLACE_SPRINTF@
-REPLACE_STRPTIME = @REPLACE_STRPTIME@
-REPLACE_TIMEGM = @REPLACE_TIMEGM@
-REPLACE_VFPRINTF = @REPLACE_VFPRINTF@
-REPLACE_VPRINTF = @REPLACE_VPRINTF@
-REPLACE_VSNPRINTF = @REPLACE_VSNPRINTF@
-REPLACE_VSPRINTF = @REPLACE_VSPRINTF@
-SEQ_LIBM = @SEQ_LIBM@
-SET_MAKE = @SET_MAKE@
-SHELL = @SHELL@
-SIG_ATOMIC_T_SUFFIX = @SIG_ATOMIC_T_SUFFIX@
-SIZE_T_SUFFIX = @SIZE_T_SUFFIX@
-STDBOOL_H = @STDBOOL_H@
-STDINT_H = @STDINT_H@
-STRIP = @STRIP@
-SYS_SOCKET_H = @SYS_SOCKET_H@
-SYS_STAT_H = @SYS_STAT_H@
-SYS_TIME_H = @SYS_TIME_H@
-SYS_TIME_H_DEFINES_STRUCT_TIMESPEC = @SYS_TIME_H_DEFINES_STRUCT_TIMESPEC@
-TIME_H_DEFINES_STRUCT_TIMESPEC = @TIME_H_DEFINES_STRUCT_TIMESPEC@
-U = @U@
-USE_NLS = @USE_NLS@
-VERSION = @VERSION@
-WCHAR_H = @WCHAR_H@
-WCHAR_T_SUFFIX = @WCHAR_T_SUFFIX@
-WCTYPE_H = @WCTYPE_H@
-WINT_T_SUFFIX = @WINT_T_SUFFIX@
-XGETTEXT = @XGETTEXT@
-XGETTEXT_015 = @XGETTEXT_015@
-YACC = @YACC@
-YFLAGS = @YFLAGS@
-abs_builddir = @abs_builddir@
-abs_srcdir = @abs_srcdir@
-abs_top_builddir = @abs_top_builddir@
-abs_top_srcdir = @abs_top_srcdir@
-ac_ct_CC = @ac_ct_CC@
-am__include = @am__include@
-am__leading_dot = @am__leading_dot@
-am__quote = @am__quote@
-am__tar = @am__tar@
-am__untar = @am__untar@
-bindir = @bindir@
-build = @build@
-build_alias = @build_alias@
-build_cpu = @build_cpu@
-build_os = @build_os@
-build_vendor = @build_vendor@
-builddir = @builddir@
-datadir = @datadir@
-datarootdir = @datarootdir@
-docdir = @docdir@
-dvidir = @dvidir@
-exec_prefix = @exec_prefix@
-gl_LIBOBJS = @gl_LIBOBJS@
-gl_LTLIBOBJS = @gl_LTLIBOBJS@
-host = @host@
-host_alias = @host_alias@
-host_cpu = @host_cpu@
-host_os = @host_os@
-host_vendor = @host_vendor@
-htmldir = @htmldir@
-includedir = @includedir@
-infodir = @infodir@
-install_sh = @install_sh@
-libdir = @libdir@
-libexecdir = @libexecdir@
-localedir = @localedir@
-localstatedir = @localstatedir@
-mandir = @mandir@
-mkdir_p = @mkdir_p@
-oldincludedir = @oldincludedir@
-pdfdir = @pdfdir@
-prefix = @prefix@
-program_transform_name = @program_transform_name@
-psdir = @psdir@
-sbindir = @sbindir@
-sharedstatedir = @sharedstatedir@
-srcdir = @srcdir@
-sysconfdir = @sysconfdir@
-target_alias = @target_alias@
-top_builddir = @top_builddir@
-top_srcdir = @top_srcdir@
-x = wc
-explicit =
-maint_gen = a0.I a0.X a1.I a1.X a2.I a2.X a3.I a3.X a4.I a4.X a5.I a5.X a6.I \
-a6.X a7.I a7.X a8.I a8.X a9.I a9.X b0.I b0.X b1.I b1.X c0.I c0.X c1.I c1.X \
-c2.I c2.X
-
-run_gen = a0.O a0.E a1.O a1.E a2.O a2.E a3.O a3.E a4.O a4.E a5.O a5.E a6.O \
-a6.E a7.O a7.E a8.O a8.E a9.O a9.E b0.O b0.E b1.O b1.E c0.O c0.E c1.O c1.E \
-c2.O c2.E
-
-EXTRA_DIST = Test.pm $x-tests $(explicit) $(maint_gen)
-noinst_SCRIPTS = $x-tests
-TESTS_ENVIRONMENT = \
- CU_TEST_NAME=`basename $(abs_srcdir)`,$$tst \
- PATH="$(VG_PATH_PREFIX)`pwd`/../../src$(PATH_SEPARATOR)$$PATH"
-
-editpl = sed -e 's,@''PERL''@,$(PERL),g' -e 's,@''srcdir''@,$(srcdir),g'
-TESTS = $x-tests
-mk_script = $(srcdir)/../mk-script
-MAINTAINERCLEANFILES = $x-tests $(maint_gen)
-CLEANFILES = $(run_gen)
-all: all-am
-
-.SUFFIXES:
-$(srcdir)/Makefile.in: $(srcdir)/Makefile.am $(am__configure_deps)
- @for dep in $?; do \
- case '$(am__configure_deps)' in \
- *$$dep*) \
- cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh \
- && exit 0; \
- exit 1;; \
- esac; \
- done; \
- echo ' cd $(top_srcdir) && $(AUTOMAKE) --gnu tests/wc/Makefile'; \
- cd $(top_srcdir) && \
- $(AUTOMAKE) --gnu tests/wc/Makefile
-.PRECIOUS: Makefile
-Makefile: $(srcdir)/Makefile.in $(top_builddir)/config.status
- @case '$?' in \
- *config.status*) \
- cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh;; \
- *) \
- echo ' cd $(top_builddir) && $(SHELL) ./config.status $(subdir)/$@ $(am__depfiles_maybe)'; \
- cd $(top_builddir) && $(SHELL) ./config.status $(subdir)/$@ $(am__depfiles_maybe);; \
- esac;
-
-$(top_builddir)/config.status: $(top_srcdir)/configure $(CONFIG_STATUS_DEPENDENCIES)
- cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh
-
-$(top_srcdir)/configure: $(am__configure_deps)
- cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh
-$(ACLOCAL_M4): $(am__aclocal_m4_deps)
- cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh
-tags: TAGS
-TAGS:
-
-ctags: CTAGS
-CTAGS:
-
-
-check-TESTS: $(TESTS)
- @failed=0; all=0; xfail=0; xpass=0; skip=0; ws='[ ]'; \
- srcdir=$(srcdir); export srcdir; \
- list=' $(TESTS) '; \
- if test -n "$$list"; then \
- for tst in $$list; do \
- if test -f ./$$tst; then dir=./; \
- elif test -f $$tst; then dir=; \
- else dir="$(srcdir)/"; fi; \
- if $(TESTS_ENVIRONMENT) $${dir}$$tst; then \
- all=`expr $$all + 1`; \
- case " $(XFAIL_TESTS) " in \
- *$$ws$$tst$$ws*) \
- xpass=`expr $$xpass + 1`; \
- failed=`expr $$failed + 1`; \
- echo "XPASS: $$tst"; \
- ;; \
- *) \
- echo "PASS: $$tst"; \
- ;; \
- esac; \
- elif test $$? -ne 77; then \
- all=`expr $$all + 1`; \
- case " $(XFAIL_TESTS) " in \
- *$$ws$$tst$$ws*) \
- xfail=`expr $$xfail + 1`; \
- echo "XFAIL: $$tst"; \
- ;; \
- *) \
- failed=`expr $$failed + 1`; \
- echo "FAIL: $$tst"; \
- ;; \
- esac; \
- else \
- skip=`expr $$skip + 1`; \
- echo "SKIP: $$tst"; \
- fi; \
- done; \
- if test "$$failed" -eq 0; then \
- if test "$$xfail" -eq 0; then \
- banner="All $$all tests passed"; \
- else \
- banner="All $$all tests behaved as expected ($$xfail expected failures)"; \
- fi; \
- else \
- if test "$$xpass" -eq 0; then \
- banner="$$failed of $$all tests failed"; \
- else \
- banner="$$failed of $$all tests did not behave as expected ($$xpass unexpected passes)"; \
- fi; \
- fi; \
- dashes="$$banner"; \
- skipped=""; \
- if test "$$skip" -ne 0; then \
- skipped="($$skip tests were not run)"; \
- test `echo "$$skipped" | wc -c` -le `echo "$$banner" | wc -c` || \
- dashes="$$skipped"; \
- fi; \
- report=""; \
- if test "$$failed" -ne 0 && test -n "$(PACKAGE_BUGREPORT)"; then \
- report="Please report to $(PACKAGE_BUGREPORT)"; \
- test `echo "$$report" | wc -c` -le `echo "$$banner" | wc -c` || \
- dashes="$$report"; \
- fi; \
- dashes=`echo "$$dashes" | sed s/./=/g`; \
- echo "$$dashes"; \
- echo "$$banner"; \
- test -z "$$skipped" || echo "$$skipped"; \
- test -z "$$report" || echo "$$report"; \
- echo "$$dashes"; \
- test "$$failed" -eq 0; \
- else :; fi
-
-distdir: $(DISTFILES)
- @srcdirstrip=`echo "$(srcdir)" | sed 's/[].[^$$\\*]/\\\\&/g'`; \
- topsrcdirstrip=`echo "$(top_srcdir)" | sed 's/[].[^$$\\*]/\\\\&/g'`; \
- list='$(DISTFILES)'; \
- dist_files=`for file in $$list; do echo $$file; done | \
- sed -e "s|^$$srcdirstrip/||;t" \
- -e "s|^$$topsrcdirstrip/|$(top_builddir)/|;t"`; \
- case $$dist_files in \
- */*) $(MKDIR_P) `echo "$$dist_files" | \
- sed '/\//!d;s|^|$(distdir)/|;s,/[^/]*$$,,' | \
- sort -u` ;; \
- esac; \
- for file in $$dist_files; do \
- if test -f $$file || test -d $$file; then d=.; else d=$(srcdir); fi; \
- if test -d $$d/$$file; then \
- dir=`echo "/$$file" | sed -e 's,/[^/]*$$,,'`; \
- if test -d $(srcdir)/$$file && test $$d != $(srcdir); then \
- cp -pR $(srcdir)/$$file $(distdir)$$dir || exit 1; \
- fi; \
- cp -pR $$d/$$file $(distdir)$$dir || exit 1; \
- else \
- test -f $(distdir)/$$file \
- || cp -p $$d/$$file $(distdir)/$$file \
- || exit 1; \
- fi; \
- done
-check-am: all-am
- $(MAKE) $(AM_MAKEFLAGS) check-TESTS
-check: check-am
-all-am: Makefile $(SCRIPTS)
-installdirs:
-install: install-am
-install-exec: install-exec-am
-install-data: install-data-am
-uninstall: uninstall-am
-
-install-am: all-am
- @$(MAKE) $(AM_MAKEFLAGS) install-exec-am install-data-am
-
-installcheck: installcheck-am
-install-strip:
- $(MAKE) $(AM_MAKEFLAGS) INSTALL_PROGRAM="$(INSTALL_STRIP_PROGRAM)" \
- install_sh_PROGRAM="$(INSTALL_STRIP_PROGRAM)" INSTALL_STRIP_FLAG=-s \
- `test -z '$(STRIP)' || \
- echo "INSTALL_PROGRAM_ENV=STRIPPROG='$(STRIP)'"` install
-mostlyclean-generic:
-
-clean-generic:
- -test -z "$(CLEANFILES)" || rm -f $(CLEANFILES)
-
-distclean-generic:
- -test -z "$(CONFIG_CLEAN_FILES)" || rm -f $(CONFIG_CLEAN_FILES)
-
-maintainer-clean-generic:
- @echo "This command is intended for maintainers to use"
- @echo "it deletes files that may require special tools to rebuild."
- -test -z "$(MAINTAINERCLEANFILES)" || rm -f $(MAINTAINERCLEANFILES)
-clean: clean-am
-
-clean-am: clean-generic mostlyclean-am
-
-distclean: distclean-am
- -rm -f Makefile
-distclean-am: clean-am distclean-generic
-
-dvi: dvi-am
-
-dvi-am:
-
-html: html-am
-
-info: info-am
-
-info-am:
-
-install-data-am:
-
-install-dvi: install-dvi-am
-
-install-exec-am:
-
-install-html: install-html-am
-
-install-info: install-info-am
-
-install-man:
-
-install-pdf: install-pdf-am
-
-install-ps: install-ps-am
-
-installcheck-am:
-
-maintainer-clean: maintainer-clean-am
- -rm -f Makefile
-maintainer-clean-am: distclean-am maintainer-clean-generic
-
-mostlyclean: mostlyclean-am
-
-mostlyclean-am: mostlyclean-generic
-
-pdf: pdf-am
-
-pdf-am:
-
-ps: ps-am
-
-ps-am:
-
-uninstall-am:
-
-.MAKE: install-am install-strip
-
-.PHONY: all all-am check check-TESTS check-am clean clean-generic \
- distclean distclean-generic distdir dvi dvi-am html html-am \
- info info-am install install-am install-data install-data-am \
- install-dvi install-dvi-am install-exec install-exec-am \
- install-html install-html-am install-info install-info-am \
- install-man install-pdf install-pdf-am install-ps \
- install-ps-am install-strip installcheck installcheck-am \
- installdirs maintainer-clean maintainer-clean-generic \
- mostlyclean mostlyclean-generic pdf pdf-am ps ps-am uninstall \
- uninstall-am
-
-$(srcdir)/$x-tests: $(mk_script) Test.pm Makefile.am
- test '$x' = test && prog=../../src/$x || prog=$x; \
- $(PERL) -I$(srcdir) -w -- $(mk_script) $(srcdir) $$prog > $@.n
- mv $@.n $@
- chmod 755 $@
-
-check: $(maint_gen)
-
-$(srcdir)/Makefile.am: ../Makefile.am.in Test.pm $(mk_script)
- rm -f $@ $@t
- sed -n '1,/^##test-files-begin/p' $(srcdir)/../Makefile.am.in > $@t
- tool=`echo $(subdir)|sed 's/^tests.//;s/-test//'`; \
- echo "x = $$tool" >> $@t
- $(PERL) -I$(srcdir) -w -- $(mk_script) $(srcdir) --list >> $@t
- sed -n '/^##test-files-end/,$$p' $(srcdir)/../Makefile.am.in >> $@t
- chmod -w $@t
- mv $@t $@
-# Tell versions [3.59,3.63) of GNU make to not export all variables.
-# Otherwise a system limit (for SysV at least) may be exceeded.
-.NOEXPORT:
diff --git a/tests/wc/Test.pm b/tests/wc/Test.pm
deleted file mode 100755
index 3adbbba..0000000
--- a/tests/wc/Test.pm
+++ /dev/null
@@ -1,70 +0,0 @@
-# Test "wc".
-
-# Copyright (C) 1997, 2003, 2006 Free Software Foundation, Inc.
-
-# This program is free software; you can redistribute it and/or modify
-# it under the terms of the GNU General Public License as published by
-# the Free Software Foundation; either version 2 of the License, or
-# (at your option) any later version.
-
-# This program is distributed in the hope that it will be useful,
-# but WITHOUT ANY WARRANTY; without even the implied warranty of
-# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
-# GNU General Public License for more details.
-
-# You should have received a copy of the GNU General Public License
-# along with this program; if not, write to the Free Software
-# Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA
-# 02110-1301, USA.
-
-package Test;
-require 5.002;
-use strict;
-
-$Test::input_via_stdin = 1;
-
-my @tv = (
-# test flags input expected output expected return code
-['a0', '-c', '', "0\n", 0],
-['a1', '-l', '', "0\n", 0],
-['a2', '-w', '', "0\n", 0],
-['a3', '-c', 'x', "1\n", 0],
-['a4', '-w', 'x', "1\n", 0],
-['a5', '-w', "x y\n", "2\n", 0],
-['a6', '-w', "x y\nz", "3\n", 0],
-# Remember, -l counts *newline* bytes, not logical lines.
-['a7', '-l', "x y", "0\n", 0],
-['a8', '-l', "x y\n", "1\n", 0],
-['a9', '-l', "x\ny\n", "2\n", 0],
-['b0', '', "", "0 0 0\n", 0],
-['b1', '', "a b\nc\n", "2 3 6\n", 0],
-['c0', '-L', "1\n12\n", "2\n", 0],
-['c1', '-L', "1\n123\n1\n", "3\n", 0],
-['c2', '-L', "\n123456", "6\n", 0],
-);
-
-sub test_vector
-{
- my $t;
- foreach $t (@tv)
- {
- my ($test_name, $flags, $in, $exp, $ret) = @$t;
- # By default, test both stdin-redirection and input from a pipe.
- $Test::input_via{$test_name} = {REDIR => 0, PIPE => 0};
-
- # But if test name ends with `-file', test only with file arg(s).
- # FIXME: unfortunately, invoking wc like `wc FILE' makes it put
- # FILE in the ouput -- and FILE is different depending on $srcdir.
- $Test::input_via{$test_name} = {FILE => 0}
- if $test_name =~ /-file$/;
-
- # Now that `wc FILE' (note, with no options) produces results
- # different from `cat FILE|wc', disable those two `PIPE' tests.
- $flags eq ''
- and delete $Test::input_via{$test_name}->{PIPE};
- }
-
- return @tv;
-}
-
-1;
diff --git a/tests/wc/a0.I b/tests/wc/a0.I
deleted file mode 100644
index e69de29..0000000
--- a/tests/wc/a0.I
+++ /dev/null
diff --git a/tests/wc/a0.X b/tests/wc/a0.X
deleted file mode 100644
index 573541a..0000000
--- a/tests/wc/a0.X
+++ /dev/null
@@ -1 +0,0 @@
-0
diff --git a/tests/wc/a1.I b/tests/wc/a1.I
deleted file mode 100644
index e69de29..0000000
--- a/tests/wc/a1.I
+++ /dev/null
diff --git a/tests/wc/a1.X b/tests/wc/a1.X
deleted file mode 100644
index 573541a..0000000
--- a/tests/wc/a1.X
+++ /dev/null
@@ -1 +0,0 @@
-0
diff --git a/tests/wc/a2.I b/tests/wc/a2.I
deleted file mode 100644
index e69de29..0000000
--- a/tests/wc/a2.I
+++ /dev/null
diff --git a/tests/wc/a2.X b/tests/wc/a2.X
deleted file mode 100644
index 573541a..0000000
--- a/tests/wc/a2.X
+++ /dev/null
@@ -1 +0,0 @@
-0
diff --git a/tests/wc/a3.I b/tests/wc/a3.I
deleted file mode 100644
index c1b0730..0000000
--- a/tests/wc/a3.I
+++ /dev/null
@@ -1 +0,0 @@
-x \ No newline at end of file
diff --git a/tests/wc/a3.X b/tests/wc/a3.X
deleted file mode 100644
index d00491f..0000000
--- a/tests/wc/a3.X
+++ /dev/null
@@ -1 +0,0 @@
-1
diff --git a/tests/wc/a4.I b/tests/wc/a4.I
deleted file mode 100644
index c1b0730..0000000
--- a/tests/wc/a4.I
+++ /dev/null
@@ -1 +0,0 @@
-x \ No newline at end of file
diff --git a/tests/wc/a4.X b/tests/wc/a4.X
deleted file mode 100644
index d00491f..0000000
--- a/tests/wc/a4.X
+++ /dev/null
@@ -1 +0,0 @@
-1
diff --git a/tests/wc/a5.I b/tests/wc/a5.I
deleted file mode 100644
index 74b863c..0000000
--- a/tests/wc/a5.I
+++ /dev/null
@@ -1 +0,0 @@
-x y
diff --git a/tests/wc/a5.X b/tests/wc/a5.X
deleted file mode 100644
index 0cfbf08..0000000
--- a/tests/wc/a5.X
+++ /dev/null
@@ -1 +0,0 @@
-2
diff --git a/tests/wc/a6.I b/tests/wc/a6.I
deleted file mode 100644
index ef2a240..0000000
--- a/tests/wc/a6.I
+++ /dev/null
@@ -1,2 +0,0 @@
-x y
-z \ No newline at end of file
diff --git a/tests/wc/a6.X b/tests/wc/a6.X
deleted file mode 100644
index 00750ed..0000000
--- a/tests/wc/a6.X
+++ /dev/null
@@ -1 +0,0 @@
-3
diff --git a/tests/wc/a7.I b/tests/wc/a7.I
deleted file mode 100644
index 0501513..0000000
--- a/tests/wc/a7.I
+++ /dev/null
@@ -1 +0,0 @@
-x y \ No newline at end of file
diff --git a/tests/wc/a7.X b/tests/wc/a7.X
deleted file mode 100644
index 573541a..0000000
--- a/tests/wc/a7.X
+++ /dev/null
@@ -1 +0,0 @@
-0
diff --git a/tests/wc/a8.I b/tests/wc/a8.I
deleted file mode 100644
index 74b863c..0000000
--- a/tests/wc/a8.I
+++ /dev/null
@@ -1 +0,0 @@
-x y
diff --git a/tests/wc/a8.X b/tests/wc/a8.X
deleted file mode 100644
index d00491f..0000000
--- a/tests/wc/a8.X
+++ /dev/null
@@ -1 +0,0 @@
-1
diff --git a/tests/wc/a9.I b/tests/wc/a9.I
deleted file mode 100644
index b77b4eb..0000000
--- a/tests/wc/a9.I
+++ /dev/null
@@ -1,2 +0,0 @@
-x
-y
diff --git a/tests/wc/a9.X b/tests/wc/a9.X
deleted file mode 100644
index 0cfbf08..0000000
--- a/tests/wc/a9.X
+++ /dev/null
@@ -1 +0,0 @@
-2
diff --git a/tests/wc/b0.I b/tests/wc/b0.I
deleted file mode 100644
index e69de29..0000000
--- a/tests/wc/b0.I
+++ /dev/null
diff --git a/tests/wc/b0.X b/tests/wc/b0.X
deleted file mode 100644
index a5c7b77..0000000
--- a/tests/wc/b0.X
+++ /dev/null
@@ -1 +0,0 @@
-0 0 0
diff --git a/tests/wc/b1.I b/tests/wc/b1.I
deleted file mode 100644
index 6307455..0000000
--- a/tests/wc/b1.I
+++ /dev/null
@@ -1,2 +0,0 @@
-a b
-c
diff --git a/tests/wc/b1.X b/tests/wc/b1.X
deleted file mode 100644
index a6e198a..0000000
--- a/tests/wc/b1.X
+++ /dev/null
@@ -1 +0,0 @@
-2 3 6
diff --git a/tests/wc/c0.I b/tests/wc/c0.I
deleted file mode 100644
index 7fd5171..0000000
--- a/tests/wc/c0.I
+++ /dev/null
@@ -1,2 +0,0 @@
-1
-12
diff --git a/tests/wc/c0.X b/tests/wc/c0.X
deleted file mode 100644
index 0cfbf08..0000000
--- a/tests/wc/c0.X
+++ /dev/null
@@ -1 +0,0 @@
-2
diff --git a/tests/wc/c1.I b/tests/wc/c1.I
deleted file mode 100644
index 81871d6..0000000
--- a/tests/wc/c1.I
+++ /dev/null
@@ -1,3 +0,0 @@
-1
-123
-1
diff --git a/tests/wc/c1.X b/tests/wc/c1.X
deleted file mode 100644
index 00750ed..0000000
--- a/tests/wc/c1.X
+++ /dev/null
@@ -1 +0,0 @@
-3
diff --git a/tests/wc/c2.I b/tests/wc/c2.I
deleted file mode 100644
index 0af26ea..0000000
--- a/tests/wc/c2.I
+++ /dev/null
@@ -1,2 +0,0 @@
-
-123456 \ No newline at end of file
diff --git a/tests/wc/c2.X b/tests/wc/c2.X
deleted file mode 100644
index 1e8b314..0000000
--- a/tests/wc/c2.X
+++ /dev/null
@@ -1 +0,0 @@
-6
diff --git a/tests/wc/wc-tests b/tests/wc/wc-tests
deleted file mode 100755
index 4f9f2a2..0000000
--- a/tests/wc/wc-tests
+++ /dev/null
@@ -1,531 +0,0 @@
-#! /bin/sh
-# This script was generated automatically by mk-script.
-case $# in
- 0) xx='wc';;
- *) xx="$1";;
-esac
-test "$VERBOSE" && echo=echo || echo=:
-$echo testing program: $xx
-errors=0
-test "$srcdir" || srcdir=.
-test "$VERBOSE" && $xx --version 2> /dev/null
-
-# Make sure we get English translations.
-LANGUAGE=C
-export LANGUAGE
-LC_ALL=C
-export LC_ALL
-LANG=C
-export LANG
-
-cat $srcdir/a0.I | $xx -c > a0.O 2> a0.E
-code=$?
-if test $code != 0; then
- $echo "Test a0(|) failed: $xx return code $code differs from expected value 0" 1>&2
- errors=`expr $errors + 1`
-else
- cmp a0.O $srcdir/a0.X > /dev/null 2>&1
- case $? in
- 0) if test "$VERBOSE"; then $echo "passed a0(|)"; fi;;
- 1) $echo "Test a0(|) failed: files a0.O and $srcdir/a0.X differ" 1>&2
- (diff -c a0.O $srcdir/a0.X) 2> /dev/null
- errors=`expr $errors + 1`;;
- 2) $echo "Test a0(|) may have failed." 1>&2
- $echo The command "cmp a0.O $srcdir/a0.X" failed. 1>&2
- errors=`expr $errors + 1`;;
- esac
-fi
-test -s a0.E || rm -f a0.E
-$xx -c < $srcdir/a0.I > a0.O 2> a0.E
-code=$?
-if test $code != 0; then
- $echo "Test a0(<) failed: $xx return code $code differs from expected value 0" 1>&2
- errors=`expr $errors + 1`
-else
- cmp a0.O $srcdir/a0.X > /dev/null 2>&1
- case $? in
- 0) if test "$VERBOSE"; then $echo "passed a0(<)"; fi;;
- 1) $echo "Test a0(<) failed: files a0.O and $srcdir/a0.X differ" 1>&2
- (diff -c a0.O $srcdir/a0.X) 2> /dev/null
- errors=`expr $errors + 1`;;
- 2) $echo "Test a0(<) may have failed." 1>&2
- $echo The command "cmp a0.O $srcdir/a0.X" failed. 1>&2
- errors=`expr $errors + 1`;;
- esac
-fi
-test -s a0.E || rm -f a0.E
-cat $srcdir/a1.I | $xx -l > a1.O 2> a1.E
-code=$?
-if test $code != 0; then
- $echo "Test a1(|) failed: $xx return code $code differs from expected value 0" 1>&2
- errors=`expr $errors + 1`
-else
- cmp a1.O $srcdir/a1.X > /dev/null 2>&1
- case $? in
- 0) if test "$VERBOSE"; then $echo "passed a1(|)"; fi;;
- 1) $echo "Test a1(|) failed: files a1.O and $srcdir/a1.X differ" 1>&2
- (diff -c a1.O $srcdir/a1.X) 2> /dev/null
- errors=`expr $errors + 1`;;
- 2) $echo "Test a1(|) may have failed." 1>&2
- $echo The command "cmp a1.O $srcdir/a1.X" failed. 1>&2
- errors=`expr $errors + 1`;;
- esac
-fi
-test -s a1.E || rm -f a1.E
-$xx -l < $srcdir/a1.I > a1.O 2> a1.E
-code=$?
-if test $code != 0; then
- $echo "Test a1(<) failed: $xx return code $code differs from expected value 0" 1>&2
- errors=`expr $errors + 1`
-else
- cmp a1.O $srcdir/a1.X > /dev/null 2>&1
- case $? in
- 0) if test "$VERBOSE"; then $echo "passed a1(<)"; fi;;
- 1) $echo "Test a1(<) failed: files a1.O and $srcdir/a1.X differ" 1>&2
- (diff -c a1.O $srcdir/a1.X) 2> /dev/null
- errors=`expr $errors + 1`;;
- 2) $echo "Test a1(<) may have failed." 1>&2
- $echo The command "cmp a1.O $srcdir/a1.X" failed. 1>&2
- errors=`expr $errors + 1`;;
- esac
-fi
-test -s a1.E || rm -f a1.E
-cat $srcdir/a2.I | $xx -w > a2.O 2> a2.E
-code=$?
-if test $code != 0; then
- $echo "Test a2(|) failed: $xx return code $code differs from expected value 0" 1>&2
- errors=`expr $errors + 1`
-else
- cmp a2.O $srcdir/a2.X > /dev/null 2>&1
- case $? in
- 0) if test "$VERBOSE"; then $echo "passed a2(|)"; fi;;
- 1) $echo "Test a2(|) failed: files a2.O and $srcdir/a2.X differ" 1>&2
- (diff -c a2.O $srcdir/a2.X) 2> /dev/null
- errors=`expr $errors + 1`;;
- 2) $echo "Test a2(|) may have failed." 1>&2
- $echo The command "cmp a2.O $srcdir/a2.X" failed. 1>&2
- errors=`expr $errors + 1`;;
- esac
-fi
-test -s a2.E || rm -f a2.E
-$xx -w < $srcdir/a2.I > a2.O 2> a2.E
-code=$?
-if test $code != 0; then
- $echo "Test a2(<) failed: $xx return code $code differs from expected value 0" 1>&2
- errors=`expr $errors + 1`
-else
- cmp a2.O $srcdir/a2.X > /dev/null 2>&1
- case $? in
- 0) if test "$VERBOSE"; then $echo "passed a2(<)"; fi;;
- 1) $echo "Test a2(<) failed: files a2.O and $srcdir/a2.X differ" 1>&2
- (diff -c a2.O $srcdir/a2.X) 2> /dev/null
- errors=`expr $errors + 1`;;
- 2) $echo "Test a2(<) may have failed." 1>&2
- $echo The command "cmp a2.O $srcdir/a2.X" failed. 1>&2
- errors=`expr $errors + 1`;;
- esac
-fi
-test -s a2.E || rm -f a2.E
-cat $srcdir/a3.I | $xx -c > a3.O 2> a3.E
-code=$?
-if test $code != 0; then
- $echo "Test a3(|) failed: $xx return code $code differs from expected value 0" 1>&2
- errors=`expr $errors + 1`
-else
- cmp a3.O $srcdir/a3.X > /dev/null 2>&1
- case $? in
- 0) if test "$VERBOSE"; then $echo "passed a3(|)"; fi;;
- 1) $echo "Test a3(|) failed: files a3.O and $srcdir/a3.X differ" 1>&2
- (diff -c a3.O $srcdir/a3.X) 2> /dev/null
- errors=`expr $errors + 1`;;
- 2) $echo "Test a3(|) may have failed." 1>&2
- $echo The command "cmp a3.O $srcdir/a3.X" failed. 1>&2
- errors=`expr $errors + 1`;;
- esac
-fi
-test -s a3.E || rm -f a3.E
-$xx -c < $srcdir/a3.I > a3.O 2> a3.E
-code=$?
-if test $code != 0; then
- $echo "Test a3(<) failed: $xx return code $code differs from expected value 0" 1>&2
- errors=`expr $errors + 1`
-else
- cmp a3.O $srcdir/a3.X > /dev/null 2>&1
- case $? in
- 0) if test "$VERBOSE"; then $echo "passed a3(<)"; fi;;
- 1) $echo "Test a3(<) failed: files a3.O and $srcdir/a3.X differ" 1>&2
- (diff -c a3.O $srcdir/a3.X) 2> /dev/null
- errors=`expr $errors + 1`;;
- 2) $echo "Test a3(<) may have failed." 1>&2
- $echo The command "cmp a3.O $srcdir/a3.X" failed. 1>&2
- errors=`expr $errors + 1`;;
- esac
-fi
-test -s a3.E || rm -f a3.E
-cat $srcdir/a4.I | $xx -w > a4.O 2> a4.E
-code=$?
-if test $code != 0; then
- $echo "Test a4(|) failed: $xx return code $code differs from expected value 0" 1>&2
- errors=`expr $errors + 1`
-else
- cmp a4.O $srcdir/a4.X > /dev/null 2>&1
- case $? in
- 0) if test "$VERBOSE"; then $echo "passed a4(|)"; fi;;
- 1) $echo "Test a4(|) failed: files a4.O and $srcdir/a4.X differ" 1>&2
- (diff -c a4.O $srcdir/a4.X) 2> /dev/null
- errors=`expr $errors + 1`;;
- 2) $echo "Test a4(|) may have failed." 1>&2
- $echo The command "cmp a4.O $srcdir/a4.X" failed. 1>&2
- errors=`expr $errors + 1`;;
- esac
-fi
-test -s a4.E || rm -f a4.E
-$xx -w < $srcdir/a4.I > a4.O 2> a4.E
-code=$?
-if test $code != 0; then
- $echo "Test a4(<) failed: $xx return code $code differs from expected value 0" 1>&2
- errors=`expr $errors + 1`
-else
- cmp a4.O $srcdir/a4.X > /dev/null 2>&1
- case $? in
- 0) if test "$VERBOSE"; then $echo "passed a4(<)"; fi;;
- 1) $echo "Test a4(<) failed: files a4.O and $srcdir/a4.X differ" 1>&2
- (diff -c a4.O $srcdir/a4.X) 2> /dev/null
- errors=`expr $errors + 1`;;
- 2) $echo "Test a4(<) may have failed." 1>&2
- $echo The command "cmp a4.O $srcdir/a4.X" failed. 1>&2
- errors=`expr $errors + 1`;;
- esac
-fi
-test -s a4.E || rm -f a4.E
-cat $srcdir/a5.I | $xx -w > a5.O 2> a5.E
-code=$?
-if test $code != 0; then
- $echo "Test a5(|) failed: $xx return code $code differs from expected value 0" 1>&2
- errors=`expr $errors + 1`
-else
- cmp a5.O $srcdir/a5.X > /dev/null 2>&1
- case $? in
- 0) if test "$VERBOSE"; then $echo "passed a5(|)"; fi;;
- 1) $echo "Test a5(|) failed: files a5.O and $srcdir/a5.X differ" 1>&2
- (diff -c a5.O $srcdir/a5.X) 2> /dev/null
- errors=`expr $errors + 1`;;
- 2) $echo "Test a5(|) may have failed." 1>&2
- $echo The command "cmp a5.O $srcdir/a5.X" failed. 1>&2
- errors=`expr $errors + 1`;;
- esac
-fi
-test -s a5.E || rm -f a5.E
-$xx -w < $srcdir/a5.I > a5.O 2> a5.E
-code=$?
-if test $code != 0; then
- $echo "Test a5(<) failed: $xx return code $code differs from expected value 0" 1>&2
- errors=`expr $errors + 1`
-else
- cmp a5.O $srcdir/a5.X > /dev/null 2>&1
- case $? in
- 0) if test "$VERBOSE"; then $echo "passed a5(<)"; fi;;
- 1) $echo "Test a5(<) failed: files a5.O and $srcdir/a5.X differ" 1>&2
- (diff -c a5.O $srcdir/a5.X) 2> /dev/null
- errors=`expr $errors + 1`;;
- 2) $echo "Test a5(<) may have failed." 1>&2
- $echo The command "cmp a5.O $srcdir/a5.X" failed. 1>&2
- errors=`expr $errors + 1`;;
- esac
-fi
-test -s a5.E || rm -f a5.E
-cat $srcdir/a6.I | $xx -w > a6.O 2> a6.E
-code=$?
-if test $code != 0; then
- $echo "Test a6(|) failed: $xx return code $code differs from expected value 0" 1>&2
- errors=`expr $errors + 1`
-else
- cmp a6.O $srcdir/a6.X > /dev/null 2>&1
- case $? in
- 0) if test "$VERBOSE"; then $echo "passed a6(|)"; fi;;
- 1) $echo "Test a6(|) failed: files a6.O and $srcdir/a6.X differ" 1>&2
- (diff -c a6.O $srcdir/a6.X) 2> /dev/null
- errors=`expr $errors + 1`;;
- 2) $echo "Test a6(|) may have failed." 1>&2
- $echo The command "cmp a6.O $srcdir/a6.X" failed. 1>&2
- errors=`expr $errors + 1`;;
- esac
-fi
-test -s a6.E || rm -f a6.E
-$xx -w < $srcdir/a6.I > a6.O 2> a6.E
-code=$?
-if test $code != 0; then
- $echo "Test a6(<) failed: $xx return code $code differs from expected value 0" 1>&2
- errors=`expr $errors + 1`
-else
- cmp a6.O $srcdir/a6.X > /dev/null 2>&1
- case $? in
- 0) if test "$VERBOSE"; then $echo "passed a6(<)"; fi;;
- 1) $echo "Test a6(<) failed: files a6.O and $srcdir/a6.X differ" 1>&2
- (diff -c a6.O $srcdir/a6.X) 2> /dev/null
- errors=`expr $errors + 1`;;
- 2) $echo "Test a6(<) may have failed." 1>&2
- $echo The command "cmp a6.O $srcdir/a6.X" failed. 1>&2
- errors=`expr $errors + 1`;;
- esac
-fi
-test -s a6.E || rm -f a6.E
-cat $srcdir/a7.I | $xx -l > a7.O 2> a7.E
-code=$?
-if test $code != 0; then
- $echo "Test a7(|) failed: $xx return code $code differs from expected value 0" 1>&2
- errors=`expr $errors + 1`
-else
- cmp a7.O $srcdir/a7.X > /dev/null 2>&1
- case $? in
- 0) if test "$VERBOSE"; then $echo "passed a7(|)"; fi;;
- 1) $echo "Test a7(|) failed: files a7.O and $srcdir/a7.X differ" 1>&2
- (diff -c a7.O $srcdir/a7.X) 2> /dev/null
- errors=`expr $errors + 1`;;
- 2) $echo "Test a7(|) may have failed." 1>&2
- $echo The command "cmp a7.O $srcdir/a7.X" failed. 1>&2
- errors=`expr $errors + 1`;;
- esac
-fi
-test -s a7.E || rm -f a7.E
-$xx -l < $srcdir/a7.I > a7.O 2> a7.E
-code=$?
-if test $code != 0; then
- $echo "Test a7(<) failed: $xx return code $code differs from expected value 0" 1>&2
- errors=`expr $errors + 1`
-else
- cmp a7.O $srcdir/a7.X > /dev/null 2>&1
- case $? in
- 0) if test "$VERBOSE"; then $echo "passed a7(<)"; fi;;
- 1) $echo "Test a7(<) failed: files a7.O and $srcdir/a7.X differ" 1>&2
- (diff -c a7.O $srcdir/a7.X) 2> /dev/null
- errors=`expr $errors + 1`;;
- 2) $echo "Test a7(<) may have failed." 1>&2
- $echo The command "cmp a7.O $srcdir/a7.X" failed. 1>&2
- errors=`expr $errors + 1`;;
- esac
-fi
-test -s a7.E || rm -f a7.E
-cat $srcdir/a8.I | $xx -l > a8.O 2> a8.E
-code=$?
-if test $code != 0; then
- $echo "Test a8(|) failed: $xx return code $code differs from expected value 0" 1>&2
- errors=`expr $errors + 1`
-else
- cmp a8.O $srcdir/a8.X > /dev/null 2>&1
- case $? in
- 0) if test "$VERBOSE"; then $echo "passed a8(|)"; fi;;
- 1) $echo "Test a8(|) failed: files a8.O and $srcdir/a8.X differ" 1>&2
- (diff -c a8.O $srcdir/a8.X) 2> /dev/null
- errors=`expr $errors + 1`;;
- 2) $echo "Test a8(|) may have failed." 1>&2
- $echo The command "cmp a8.O $srcdir/a8.X" failed. 1>&2
- errors=`expr $errors + 1`;;
- esac
-fi
-test -s a8.E || rm -f a8.E
-$xx -l < $srcdir/a8.I > a8.O 2> a8.E
-code=$?
-if test $code != 0; then
- $echo "Test a8(<) failed: $xx return code $code differs from expected value 0" 1>&2
- errors=`expr $errors + 1`
-else
- cmp a8.O $srcdir/a8.X > /dev/null 2>&1
- case $? in
- 0) if test "$VERBOSE"; then $echo "passed a8(<)"; fi;;
- 1) $echo "Test a8(<) failed: files a8.O and $srcdir/a8.X differ" 1>&2
- (diff -c a8.O $srcdir/a8.X) 2> /dev/null
- errors=`expr $errors + 1`;;
- 2) $echo "Test a8(<) may have failed." 1>&2
- $echo The command "cmp a8.O $srcdir/a8.X" failed. 1>&2
- errors=`expr $errors + 1`;;
- esac
-fi
-test -s a8.E || rm -f a8.E
-cat $srcdir/a9.I | $xx -l > a9.O 2> a9.E
-code=$?
-if test $code != 0; then
- $echo "Test a9(|) failed: $xx return code $code differs from expected value 0" 1>&2
- errors=`expr $errors + 1`
-else
- cmp a9.O $srcdir/a9.X > /dev/null 2>&1
- case $? in
- 0) if test "$VERBOSE"; then $echo "passed a9(|)"; fi;;
- 1) $echo "Test a9(|) failed: files a9.O and $srcdir/a9.X differ" 1>&2
- (diff -c a9.O $srcdir/a9.X) 2> /dev/null
- errors=`expr $errors + 1`;;
- 2) $echo "Test a9(|) may have failed." 1>&2
- $echo The command "cmp a9.O $srcdir/a9.X" failed. 1>&2
- errors=`expr $errors + 1`;;
- esac
-fi
-test -s a9.E || rm -f a9.E
-$xx -l < $srcdir/a9.I > a9.O 2> a9.E
-code=$?
-if test $code != 0; then
- $echo "Test a9(<) failed: $xx return code $code differs from expected value 0" 1>&2
- errors=`expr $errors + 1`
-else
- cmp a9.O $srcdir/a9.X > /dev/null 2>&1
- case $? in
- 0) if test "$VERBOSE"; then $echo "passed a9(<)"; fi;;
- 1) $echo "Test a9(<) failed: files a9.O and $srcdir/a9.X differ" 1>&2
- (diff -c a9.O $srcdir/a9.X) 2> /dev/null
- errors=`expr $errors + 1`;;
- 2) $echo "Test a9(<) may have failed." 1>&2
- $echo The command "cmp a9.O $srcdir/a9.X" failed. 1>&2
- errors=`expr $errors + 1`;;
- esac
-fi
-test -s a9.E || rm -f a9.E
-$xx < $srcdir/b0.I > b0.O 2> b0.E
-code=$?
-if test $code != 0; then
- $echo "Test b0 failed: $xx return code $code differs from expected value 0" 1>&2
- errors=`expr $errors + 1`
-else
- cmp b0.O $srcdir/b0.X > /dev/null 2>&1
- case $? in
- 0) if test "$VERBOSE"; then $echo "passed b0"; fi;;
- 1) $echo "Test b0 failed: files b0.O and $srcdir/b0.X differ" 1>&2
- (diff -c b0.O $srcdir/b0.X) 2> /dev/null
- errors=`expr $errors + 1`;;
- 2) $echo "Test b0 may have failed." 1>&2
- $echo The command "cmp b0.O $srcdir/b0.X" failed. 1>&2
- errors=`expr $errors + 1`;;
- esac
-fi
-test -s b0.E || rm -f b0.E
-$xx < $srcdir/b1.I > b1.O 2> b1.E
-code=$?
-if test $code != 0; then
- $echo "Test b1 failed: $xx return code $code differs from expected value 0" 1>&2
- errors=`expr $errors + 1`
-else
- cmp b1.O $srcdir/b1.X > /dev/null 2>&1
- case $? in
- 0) if test "$VERBOSE"; then $echo "passed b1"; fi;;
- 1) $echo "Test b1 failed: files b1.O and $srcdir/b1.X differ" 1>&2
- (diff -c b1.O $srcdir/b1.X) 2> /dev/null
- errors=`expr $errors + 1`;;
- 2) $echo "Test b1 may have failed." 1>&2
- $echo The command "cmp b1.O $srcdir/b1.X" failed. 1>&2
- errors=`expr $errors + 1`;;
- esac
-fi
-test -s b1.E || rm -f b1.E
-cat $srcdir/c0.I | $xx -L > c0.O 2> c0.E
-code=$?
-if test $code != 0; then
- $echo "Test c0(|) failed: $xx return code $code differs from expected value 0" 1>&2
- errors=`expr $errors + 1`
-else
- cmp c0.O $srcdir/c0.X > /dev/null 2>&1
- case $? in
- 0) if test "$VERBOSE"; then $echo "passed c0(|)"; fi;;
- 1) $echo "Test c0(|) failed: files c0.O and $srcdir/c0.X differ" 1>&2
- (diff -c c0.O $srcdir/c0.X) 2> /dev/null
- errors=`expr $errors + 1`;;
- 2) $echo "Test c0(|) may have failed." 1>&2
- $echo The command "cmp c0.O $srcdir/c0.X" failed. 1>&2
- errors=`expr $errors + 1`;;
- esac
-fi
-test -s c0.E || rm -f c0.E
-$xx -L < $srcdir/c0.I > c0.O 2> c0.E
-code=$?
-if test $code != 0; then
- $echo "Test c0(<) failed: $xx return code $code differs from expected value 0" 1>&2
- errors=`expr $errors + 1`
-else
- cmp c0.O $srcdir/c0.X > /dev/null 2>&1
- case $? in
- 0) if test "$VERBOSE"; then $echo "passed c0(<)"; fi;;
- 1) $echo "Test c0(<) failed: files c0.O and $srcdir/c0.X differ" 1>&2
- (diff -c c0.O $srcdir/c0.X) 2> /dev/null
- errors=`expr $errors + 1`;;
- 2) $echo "Test c0(<) may have failed." 1>&2
- $echo The command "cmp c0.O $srcdir/c0.X" failed. 1>&2
- errors=`expr $errors + 1`;;
- esac
-fi
-test -s c0.E || rm -f c0.E
-cat $srcdir/c1.I | $xx -L > c1.O 2> c1.E
-code=$?
-if test $code != 0; then
- $echo "Test c1(|) failed: $xx return code $code differs from expected value 0" 1>&2
- errors=`expr $errors + 1`
-else
- cmp c1.O $srcdir/c1.X > /dev/null 2>&1
- case $? in
- 0) if test "$VERBOSE"; then $echo "passed c1(|)"; fi;;
- 1) $echo "Test c1(|) failed: files c1.O and $srcdir/c1.X differ" 1>&2
- (diff -c c1.O $srcdir/c1.X) 2> /dev/null
- errors=`expr $errors + 1`;;
- 2) $echo "Test c1(|) may have failed." 1>&2
- $echo The command "cmp c1.O $srcdir/c1.X" failed. 1>&2
- errors=`expr $errors + 1`;;
- esac
-fi
-test -s c1.E || rm -f c1.E
-$xx -L < $srcdir/c1.I > c1.O 2> c1.E
-code=$?
-if test $code != 0; then
- $echo "Test c1(<) failed: $xx return code $code differs from expected value 0" 1>&2
- errors=`expr $errors + 1`
-else
- cmp c1.O $srcdir/c1.X > /dev/null 2>&1
- case $? in
- 0) if test "$VERBOSE"; then $echo "passed c1(<)"; fi;;
- 1) $echo "Test c1(<) failed: files c1.O and $srcdir/c1.X differ" 1>&2
- (diff -c c1.O $srcdir/c1.X) 2> /dev/null
- errors=`expr $errors + 1`;;
- 2) $echo "Test c1(<) may have failed." 1>&2
- $echo The command "cmp c1.O $srcdir/c1.X" failed. 1>&2
- errors=`expr $errors + 1`;;
- esac
-fi
-test -s c1.E || rm -f c1.E
-cat $srcdir/c2.I | $xx -L > c2.O 2> c2.E
-code=$?
-if test $code != 0; then
- $echo "Test c2(|) failed: $xx return code $code differs from expected value 0" 1>&2
- errors=`expr $errors + 1`
-else
- cmp c2.O $srcdir/c2.X > /dev/null 2>&1
- case $? in
- 0) if test "$VERBOSE"; then $echo "passed c2(|)"; fi;;
- 1) $echo "Test c2(|) failed: files c2.O and $srcdir/c2.X differ" 1>&2
- (diff -c c2.O $srcdir/c2.X) 2> /dev/null
- errors=`expr $errors + 1`;;
- 2) $echo "Test c2(|) may have failed." 1>&2
- $echo The command "cmp c2.O $srcdir/c2.X" failed. 1>&2
- errors=`expr $errors + 1`;;
- esac
-fi
-test -s c2.E || rm -f c2.E
-$xx -L < $srcdir/c2.I > c2.O 2> c2.E
-code=$?
-if test $code != 0; then
- $echo "Test c2(<) failed: $xx return code $code differs from expected value 0" 1>&2
- errors=`expr $errors + 1`
-else
- cmp c2.O $srcdir/c2.X > /dev/null 2>&1
- case $? in
- 0) if test "$VERBOSE"; then $echo "passed c2(<)"; fi;;
- 1) $echo "Test c2(<) failed: files c2.O and $srcdir/c2.X differ" 1>&2
- (diff -c c2.O $srcdir/c2.X) 2> /dev/null
- errors=`expr $errors + 1`;;
- 2) $echo "Test c2(<) may have failed." 1>&2
- $echo The command "cmp c2.O $srcdir/c2.X" failed. 1>&2
- errors=`expr $errors + 1`;;
- esac
-fi
-test -s c2.E || rm -f c2.E
-if test $errors = 0; then
- $echo Passed all 28 tests. 1>&2
-else
- $echo Failed $errors tests. 1>&2
-fi
-test $errors = 0 || errors=1
-exit $errors