xref: /netbsd-src/bin/ed/test/README (revision 49f0ad860122f7b8af24a6a2763cd4a5bad95369)
1*49f0ad86Scgd$NetBSD: README,v 1.8 1995/03/21 09:05:18 cgd Exp $
2*49f0ad86Scgd
3336e165cScgdThe files in this directory with suffixes `.t', `.d', `.r' and `.err' are
4336e165cScgdused for testing ed.  To run the tests, set the ED variable in the Makefile
5336e165cScgdfor the path name of the program to be tested (e.g., /bin/ed), and type
6a723dd79Salm`make'.  The tests do not exhaustively verify POSIX compliance nor do
7a723dd79Salmthey verify correct 8-bit or long line support.
8a723dd79Salm
9a723dd79SalmThe test file suffixes have the following meanings:
10a723dd79Salm.t    Template - a list of ed commands from which an ed script is
11a723dd79Salm      constructed
12a723dd79Salm.d    Data - read by an ed script
13a723dd79Salm.r    Result - the expected output after processing data via an ed
14a723dd79Salm      script.
15a723dd79Salm.err  Error - invalid ed commands that should generate an error
169b082a69Scgd
17336e165cScgdThe output of the tests is written to the two files err.o and scripts.o.
18336e165cScgdAt the end of the tests, these files are grep'ed for error messages,
19336e165cScgdwhich look like:
209b082a69Scgd	*** The script u.ed exited abnormally ***
219b082a69Scgdor:
229b082a69Scgd	*** Output u.o of script u.ed is incorrect ***
239b082a69Scgd
24336e165cScgdThe POSIX requirement that an address range not be used where at most
25336e165cScgda single address is expected has been relaxed in this version of ed.
26336e165cScgdTherefore, the  following scripts  which test for compliance with this
27336e165cScgdPOSIX rule exit abnormally:
28336e165cScgd=-err.ed
29336e165cScgda1-err.ed
30336e165cScgdi1-err.ed
31336e165cScgdk1-err.ed
32336e165cScgdr1-err.ed
33