README revision 1.4
11.2ScgdThe files in this directory with suffixes `.t', `.d', `.r' and `.err' are
21.2Scgdused for testing ed.  To run the tests, set the ED variable in the Makefile
31.2Scgdfor the path name of the program to be tested (e.g., /bin/ed), and type
41.4Salm`make'.  The tests do not exhaustively verify POSIX compliance nor do
51.4Salmthey verify correct 8-bit or long line support.
61.4Salm
71.4SalmThe test file suffixes have the following meanings:
81.4Salm.t    Template - a list of ed commands from which an ed script is
91.4Salm      constructed
101.4Salm.d    Data - read by an ed script
111.4Salm.r    Result - the expected output after processing data via an ed
121.4Salm      script.
131.4Salm.err  Error - invalid ed commands that should generate an error
141.1Scgd
151.2ScgdThe output of the tests is written to the two files err.o and scripts.o.
161.2ScgdAt the end of the tests, these files are grep'ed for error messages,
171.2Scgdwhich look like:
181.1Scgd	*** The script u.ed exited abnormally ***
191.1Scgdor:
201.1Scgd	*** Output u.o of script u.ed is incorrect ***
211.1Scgd
221.1ScgdIt is assumed that the ed being tested processes escapes (\) in file names.
231.1ScgdThis is so that a name starting with bang (!) can be read, via:
241.1Scgd	r \!file
251.1ScgdWithout the escape, a POSIX ed would attempt to read the output of
261.2Scgdthe shell command `file'.  If the ed being tested does not support escape
271.2Scgdprocessing on file names, then the script `mkscripts.sh' should be modified
281.2Scgdaccordingly.
291.1Scgd
301.2ScgdThe POSIX requirement that an address range not be used where at most
311.2Scgda single address is expected has been relaxed in this version of ed.
321.2ScgdTherefore, the  following scripts  which test for compliance with this
331.2ScgdPOSIX rule exit abnormally:
341.2Scgd=-err.ed
351.2Scgda1-err.ed
361.2Scgdi1-err.ed
371.2Scgdk1-err.ed
381.2Scgdr1-err.ed
391.3Salm
401.3SalmIn addition, one of !1-err.ed or !2.ed will fail, depending on whether or
411.3Salmnot ed was compiled with the VI_BANG directive.
42