NetBSD/bin/ed/test
alm a723dd79c7 Added more tests... 1993-05-27 01:28:27 +00:00
..
!.d added ed, from Andrew Moore, alm@netcom.com 1993-04-08 01:07:16 +00:00
!.err updated to alm's ed-0.2 1993-04-10 11:46:38 +00:00
!.r added ed, from Andrew Moore, alm@netcom.com 1993-04-08 01:07:16 +00:00
!.t added ed, from Andrew Moore, alm@netcom.com 1993-04-08 01:07:16 +00:00
!1.d added support for lines of arbitrary length 1993-05-08 10:49:52 +00:00
!1.err added more tests 1993-04-23 02:09:38 +00:00
!1.r added support for lines of arbitrary length 1993-05-08 10:49:52 +00:00
!1.t added support for lines of arbitrary length 1993-05-08 10:49:52 +00:00
!2.d added support for lines of arbitrary length 1993-05-08 10:49:52 +00:00
!2.err added more tests 1993-04-23 02:09:38 +00:00
!2.r added support for lines of arbitrary length 1993-05-08 10:49:52 +00:00
!2.t added support for lines of arbitrary length 1993-05-08 10:49:52 +00:00
=.err updated to alm's ed-0.2 1993-04-10 11:46:38 +00:00
Makefile added support for lines of arbitrary length 1993-05-08 10:49:52 +00:00
README Added more tests... 1993-05-27 01:28:27 +00:00
TODO Added more tests... 1993-05-27 01:28:27 +00:00
a.d added ed, from Andrew Moore, alm@netcom.com 1993-04-08 01:07:16 +00:00
a.r added ed, from Andrew Moore, alm@netcom.com 1993-04-08 01:07:16 +00:00
a.t added ed, from Andrew Moore, alm@netcom.com 1993-04-08 01:07:16 +00:00
a1.err updated to alm's ed-0.2 1993-04-10 11:46:38 +00:00
a2.err updated to alm's ed-0.2 1993-04-10 11:46:38 +00:00
addr1.err Added more tests... 1993-05-27 01:28:27 +00:00
addr2.err Added more tests... 1993-05-27 01:28:27 +00:00
ascii.d added support for lines of arbitrary length 1993-05-08 10:49:52 +00:00
ascii.r added support for lines of arbitrary length 1993-05-08 10:49:52 +00:00
ascii.t added support for lines of arbitrary length 1993-05-08 10:49:52 +00:00
c.d added ed, from Andrew Moore, alm@netcom.com 1993-04-08 01:07:16 +00:00
c.err updated to alm's ed-0.2 1993-04-10 11:46:38 +00:00
c.r added ed, from Andrew Moore, alm@netcom.com 1993-04-08 01:07:16 +00:00
c.t added ed, from Andrew Moore, alm@netcom.com 1993-04-08 01:07:16 +00:00
c1.err added support for lines of arbitrary length 1993-05-08 10:49:52 +00:00
c2.err added support for lines of arbitrary length 1993-05-08 10:49:52 +00:00
ckscripts.sh added support for lines of arbitrary length 1993-05-08 10:49:52 +00:00
d.d added ed, from Andrew Moore, alm@netcom.com 1993-04-08 01:07:16 +00:00
d.err updated to alm's ed-0.2 1993-04-10 11:46:38 +00:00
d.r added ed, from Andrew Moore, alm@netcom.com 1993-04-08 01:07:16 +00:00
d.t Added tests: \n[12].[drt] [ik]3.err 1993-04-13 08:35:55 +00:00
e1.d added ed, from Andrew Moore, alm@netcom.com 1993-04-08 01:07:16 +00:00
e1.err updated to alm's ed-0.2 1993-04-10 11:46:38 +00:00
e1.r added ed, from Andrew Moore, alm@netcom.com 1993-04-08 01:07:16 +00:00
e1.t added ed, from Andrew Moore, alm@netcom.com 1993-04-08 01:07:16 +00:00
e2.d added ed, from Andrew Moore, alm@netcom.com 1993-04-08 01:07:16 +00:00
e2.err updated to alm's ed-0.2 1993-04-10 11:46:38 +00:00
e2.r added ed, from Andrew Moore, alm@netcom.com 1993-04-08 01:07:16 +00:00
e2.t added ed, from Andrew Moore, alm@netcom.com 1993-04-08 01:07:16 +00:00
e3.d added ed, from Andrew Moore, alm@netcom.com 1993-04-08 01:07:16 +00:00
e3.ed added ed, from Andrew Moore, alm@netcom.com 1993-04-08 01:07:16 +00:00
e3.err updated to alm's ed-0.2 1993-04-10 11:46:38 +00:00
e3.o added ed, from Andrew Moore, alm@netcom.com 1993-04-08 01:07:16 +00:00
e3.r added ed, from Andrew Moore, alm@netcom.com 1993-04-08 01:07:16 +00:00
e3.t added ed, from Andrew Moore, alm@netcom.com 1993-04-08 01:07:16 +00:00
e4.err added support for lines of arbitrary length 1993-05-08 10:49:52 +00:00
f1.err updated to alm's ed-0.2 1993-04-10 11:46:38 +00:00
f2.err updated to alm's ed-0.2 1993-04-10 11:46:38 +00:00
g1.d added ed, from Andrew Moore, alm@netcom.com 1993-04-08 01:07:16 +00:00
g1.ed added ed, from Andrew Moore, alm@netcom.com 1993-04-08 01:07:16 +00:00
g1.err updated to alm's ed-0.2 1993-04-10 11:46:38 +00:00
g1.o added ed, from Andrew Moore, alm@netcom.com 1993-04-08 01:07:16 +00:00
g1.r added ed, from Andrew Moore, alm@netcom.com 1993-04-08 01:07:16 +00:00
g1.t added ed, from Andrew Moore, alm@netcom.com 1993-04-08 01:07:16 +00:00
g2.d added ed, from Andrew Moore, alm@netcom.com 1993-04-08 01:07:16 +00:00
g2.ed added ed, from Andrew Moore, alm@netcom.com 1993-04-08 01:07:16 +00:00
g2.err updated to alm's ed-0.2 1993-04-10 11:46:38 +00:00
g2.o added ed, from Andrew Moore, alm@netcom.com 1993-04-08 01:07:16 +00:00
g2.r added ed, from Andrew Moore, alm@netcom.com 1993-04-08 01:07:16 +00:00
g2.t added ed, from Andrew Moore, alm@netcom.com 1993-04-08 01:07:16 +00:00
g3.err added more tests 1993-04-23 02:09:38 +00:00
h.err updated to alm's ed-0.2 1993-04-10 11:46:38 +00:00
i.d added ed, from Andrew Moore, alm@netcom.com 1993-04-08 01:07:16 +00:00
i.ed added ed, from Andrew Moore, alm@netcom.com 1993-04-08 01:07:16 +00:00
i.o added ed, from Andrew Moore, alm@netcom.com 1993-04-08 01:07:16 +00:00
i.r added ed, from Andrew Moore, alm@netcom.com 1993-04-08 01:07:16 +00:00
i.t added ed, from Andrew Moore, alm@netcom.com 1993-04-08 01:07:16 +00:00
i1.err updated to alm's ed-0.2 1993-04-10 11:46:38 +00:00
i2.err updated to alm's ed-0.2 1993-04-10 11:46:38 +00:00
i3.err Added tests: \n[12].[drt] [ik]3.err 1993-04-13 08:35:55 +00:00
j.d added ed, from Andrew Moore, alm@netcom.com 1993-04-08 01:07:16 +00:00
j.ed added ed, from Andrew Moore, alm@netcom.com 1993-04-08 01:07:16 +00:00
j.o added ed, from Andrew Moore, alm@netcom.com 1993-04-08 01:07:16 +00:00
j.r added ed, from Andrew Moore, alm@netcom.com 1993-04-08 01:07:16 +00:00
j.t added ed, from Andrew Moore, alm@netcom.com 1993-04-08 01:07:16 +00:00
k.d added tests for the `k' and `w' commands 1993-04-14 12:05:05 +00:00
k.r added tests for the `k' and `w' commands 1993-04-14 12:05:05 +00:00
k.t added tests for the `k' and `w' commands 1993-04-14 12:05:05 +00:00
k1.err updated to alm's ed-0.2 1993-04-10 11:46:38 +00:00
k2.err updated to alm's ed-0.2 1993-04-10 11:46:38 +00:00
k3.err Added tests: \n[12].[drt] [ik]3.err 1993-04-13 08:35:55 +00:00
k4.err added tests for the `k' and `w' commands 1993-04-14 12:05:05 +00:00
l.d added ed, from Andrew Moore, alm@netcom.com 1993-04-08 01:07:16 +00:00
l.ed added ed, from Andrew Moore, alm@netcom.com 1993-04-08 01:07:16 +00:00
l.o added ed, from Andrew Moore, alm@netcom.com 1993-04-08 01:07:16 +00:00
l.r added ed, from Andrew Moore, alm@netcom.com 1993-04-08 01:07:16 +00:00
l.t added ed, from Andrew Moore, alm@netcom.com 1993-04-08 01:07:16 +00:00
m.d added ed, from Andrew Moore, alm@netcom.com 1993-04-08 01:07:16 +00:00
m.ed added ed, from Andrew Moore, alm@netcom.com 1993-04-08 01:07:16 +00:00
m.err updated to alm's ed-0.2 1993-04-10 11:46:38 +00:00
m.o added ed, from Andrew Moore, alm@netcom.com 1993-04-08 01:07:16 +00:00
m.r added ed, from Andrew Moore, alm@netcom.com 1993-04-08 01:07:16 +00:00
m.t added ed, from Andrew Moore, alm@netcom.com 1993-04-08 01:07:16 +00:00
mkscripts.sh added support for lines of arbitrary length 1993-05-08 10:49:52 +00:00
n.d added ed, from Andrew Moore, alm@netcom.com 1993-04-08 01:07:16 +00:00
n.ed added ed, from Andrew Moore, alm@netcom.com 1993-04-08 01:07:16 +00:00
n.o added ed, from Andrew Moore, alm@netcom.com 1993-04-08 01:07:16 +00:00
n.r added ed, from Andrew Moore, alm@netcom.com 1993-04-08 01:07:16 +00:00
n.t added ed, from Andrew Moore, alm@netcom.com 1993-04-08 01:07:16 +00:00
nl.d updated to alm's ed-0.2 1993-04-10 11:46:38 +00:00
nl.r Added tests: \n[12].[drt] [ik]3.err 1993-04-13 08:35:55 +00:00
nl.t Added tests: \n[12].[drt] [ik]3.err 1993-04-13 08:35:55 +00:00
p.d added ed, from Andrew Moore, alm@netcom.com 1993-04-08 01:07:16 +00:00
p.ed added ed, from Andrew Moore, alm@netcom.com 1993-04-08 01:07:16 +00:00
p.o added ed, from Andrew Moore, alm@netcom.com 1993-04-08 01:07:16 +00:00
p.r added ed, from Andrew Moore, alm@netcom.com 1993-04-08 01:07:16 +00:00
p.t added ed, from Andrew Moore, alm@netcom.com 1993-04-08 01:07:16 +00:00
q.d added more tests 1993-04-23 02:09:38 +00:00
q.err updated to alm's ed-0.2 1993-04-10 11:46:38 +00:00
q.r added more tests 1993-04-23 02:09:38 +00:00
q.t added more tests 1993-04-23 02:09:38 +00:00
q1.err added support for lines of arbitrary length 1993-05-08 10:49:52 +00:00
r1.d added ed, from Andrew Moore, alm@netcom.com 1993-04-08 01:07:16 +00:00
r1.ed added ed, from Andrew Moore, alm@netcom.com 1993-04-08 01:07:16 +00:00
r1.err updated to alm's ed-0.2 1993-04-10 11:46:38 +00:00
r1.o added ed, from Andrew Moore, alm@netcom.com 1993-04-08 01:07:16 +00:00
r1.r added ed, from Andrew Moore, alm@netcom.com 1993-04-08 01:07:16 +00:00
r1.t added ed, from Andrew Moore, alm@netcom.com 1993-04-08 01:07:16 +00:00
r2.d added ed, from Andrew Moore, alm@netcom.com 1993-04-08 01:07:16 +00:00
r2.ed added ed, from Andrew Moore, alm@netcom.com 1993-04-08 01:07:16 +00:00
r2.err updated to alm's ed-0.2 1993-04-10 11:46:38 +00:00
r2.o added ed, from Andrew Moore, alm@netcom.com 1993-04-08 01:07:16 +00:00
r2.r added ed, from Andrew Moore, alm@netcom.com 1993-04-08 01:07:16 +00:00
r2.t added ed, from Andrew Moore, alm@netcom.com 1993-04-08 01:07:16 +00:00
r3.d added ed, from Andrew Moore, alm@netcom.com 1993-04-08 01:07:16 +00:00
r3.ed added ed, from Andrew Moore, alm@netcom.com 1993-04-08 01:07:16 +00:00
r3.o added ed, from Andrew Moore, alm@netcom.com 1993-04-08 01:07:16 +00:00
r3.r added ed, from Andrew Moore, alm@netcom.com 1993-04-08 01:07:16 +00:00
r3.t added ed, from Andrew Moore, alm@netcom.com 1993-04-08 01:07:16 +00:00
s1.d added ed, from Andrew Moore, alm@netcom.com 1993-04-08 01:07:16 +00:00
s1.ed added ed, from Andrew Moore, alm@netcom.com 1993-04-08 01:07:16 +00:00
s1.err updated to alm's ed-0.2 1993-04-10 11:46:38 +00:00
s1.o added ed, from Andrew Moore, alm@netcom.com 1993-04-08 01:07:16 +00:00
s1.r added ed, from Andrew Moore, alm@netcom.com 1993-04-08 01:07:16 +00:00
s1.t added ed, from Andrew Moore, alm@netcom.com 1993-04-08 01:07:16 +00:00
s2.d added ed, from Andrew Moore, alm@netcom.com 1993-04-08 01:07:16 +00:00
s2.ed added ed, from Andrew Moore, alm@netcom.com 1993-04-08 01:07:16 +00:00
s2.err updated to alm's ed-0.2 1993-04-10 11:46:38 +00:00
s2.o added ed, from Andrew Moore, alm@netcom.com 1993-04-08 01:07:16 +00:00
s2.r added ed, from Andrew Moore, alm@netcom.com 1993-04-08 01:07:16 +00:00
s2.t added ed, from Andrew Moore, alm@netcom.com 1993-04-08 01:07:16 +00:00
s3.d Added more tests... 1993-05-27 01:28:27 +00:00
s3.err updated to alm's ed-0.2 1993-04-10 11:46:38 +00:00
s3.r Added more tests... 1993-05-27 01:28:27 +00:00
s3.t Added more tests... 1993-05-27 01:28:27 +00:00
s4.err updated to alm's ed-0.2 1993-04-10 11:46:38 +00:00
s5.err updated to alm's ed-0.2 1993-04-10 11:46:38 +00:00
s6.err added more tests 1993-04-23 02:09:38 +00:00
s7.err added more tests 1993-04-23 02:09:38 +00:00
s8.err Added more tests... 1993-05-27 01:28:27 +00:00
s9.err Added more tests... 1993-05-27 01:28:27 +00:00
s10.err Added more tests... 1993-05-27 01:28:27 +00:00
t.d added ed, from Andrew Moore, alm@netcom.com 1993-04-08 01:07:16 +00:00
t.ed added ed, from Andrew Moore, alm@netcom.com 1993-04-08 01:07:16 +00:00
t.o added ed, from Andrew Moore, alm@netcom.com 1993-04-08 01:07:16 +00:00
t.r added ed, from Andrew Moore, alm@netcom.com 1993-04-08 01:07:16 +00:00
t.t added ed, from Andrew Moore, alm@netcom.com 1993-04-08 01:07:16 +00:00
t1.d updated to alm's ed-0.2 1993-04-10 11:46:38 +00:00
t1.err updated to alm's ed-0.2 1993-04-10 11:46:38 +00:00
t1.r updated to alm's ed-0.2 1993-04-10 11:46:38 +00:00
t1.t updated to alm's ed-0.2 1993-04-10 11:46:38 +00:00
t2.d updated to alm's ed-0.2 1993-04-10 11:46:38 +00:00
t2.err updated to alm's ed-0.2 1993-04-10 11:46:38 +00:00
t2.r updated to alm's ed-0.2 1993-04-10 11:46:38 +00:00
t2.t updated to alm's ed-0.2 1993-04-10 11:46:38 +00:00
u.d added ed, from Andrew Moore, alm@netcom.com 1993-04-08 01:07:16 +00:00
u.ed added ed, from Andrew Moore, alm@netcom.com 1993-04-08 01:07:16 +00:00
u.err updated to alm's ed-0.2 1993-04-10 11:46:38 +00:00
u.o added ed, from Andrew Moore, alm@netcom.com 1993-04-08 01:07:16 +00:00
u.r added ed, from Andrew Moore, alm@netcom.com 1993-04-08 01:07:16 +00:00
u.t added ed, from Andrew Moore, alm@netcom.com 1993-04-08 01:07:16 +00:00
v.d added ed, from Andrew Moore, alm@netcom.com 1993-04-08 01:07:16 +00:00
v.ed added ed, from Andrew Moore, alm@netcom.com 1993-04-08 01:07:16 +00:00
v.o added ed, from Andrew Moore, alm@netcom.com 1993-04-08 01:07:16 +00:00
v.r added ed, from Andrew Moore, alm@netcom.com 1993-04-08 01:07:16 +00:00
v.t added ed, from Andrew Moore, alm@netcom.com 1993-04-08 01:07:16 +00:00
w.d added ed, from Andrew Moore, alm@netcom.com 1993-04-08 01:07:16 +00:00
w.ed added ed, from Andrew Moore, alm@netcom.com 1993-04-08 01:07:16 +00:00
w.err updated to alm's ed-0.2 1993-04-10 11:46:38 +00:00
w.o added ed, from Andrew Moore, alm@netcom.com 1993-04-08 01:07:16 +00:00
w.r added ed, from Andrew Moore, alm@netcom.com 1993-04-08 01:07:16 +00:00
w.t added ed, from Andrew Moore, alm@netcom.com 1993-04-08 01:07:16 +00:00
w1.err added tests for the `k' and `w' commands 1993-04-14 12:05:05 +00:00
w2.err added tests for the `k' and `w' commands 1993-04-14 12:05:05 +00:00
w3.err added tests for the `k' and `w' commands 1993-04-14 12:05:05 +00:00
x.err updated to alm's ed-0.2 1993-04-10 11:46:38 +00:00
z.err updated to alm's ed-0.2 1993-04-10 11:46:38 +00:00

README

The files in this directory with suffixes `.t', `.d', `.r' and `.err' are
used for testing ed.  To run the tests, set the ED variable in the Makefile
for the path name of the program to be tested (e.g., /bin/ed), and type
`make'.  The tests do not exhaustively verify POSIX compliance nor do
they verify correct 8-bit or long line support.

The test file suffixes have the following meanings:
.t    Template - a list of ed commands from which an ed script is
      constructed
.d    Data - read by an ed script
.r    Result - the expected output after processing data via an ed
      script.
.err  Error - invalid ed commands that should generate an error

The output of the tests is written to the two files err.o and scripts.o.
At the end of the tests, these files are grep'ed for error messages,
which look like:
	*** The script u.ed exited abnormally ***
or:
	*** Output u.o of script u.ed is incorrect ***

It is assumed that the ed being tested processes escapes (\) in file names.
This is so that a name starting with bang (!) can be read, via:
	r \!file
Without the escape, a POSIX ed would attempt to read the output of
the shell command `file'.  If the ed being tested does not support escape
processing on file names, then the script `mkscripts.sh' should be modified
accordingly.

The POSIX requirement that an address range not be used where at most
a single address is expected has been relaxed in this version of ed.
Therefore, the  following scripts  which test for compliance with this
POSIX rule exit abnormally:
=-err.ed
a1-err.ed
i1-err.ed
k1-err.ed
r1-err.ed

In addition, one of !1-err.ed or !2.ed will fail, depending on whether or
not ed was compiled with the VI_BANG directive.