150471Speter# $FreeBSD$ 218471Swosch 316SalmThe files in this directory with suffixes `.t', `.d', `.r' and `.err' are 416Salmused for testing ed. To run the tests, set the ED variable in the Makefile 516Salmfor the path name of the program to be tested (e.g., /bin/ed), and type 616Salm`make'. The tests do not exhaustively verify POSIX compliance nor do 716Salmthey verify correct 8-bit or long line support. 816Salm 916SalmThe test file suffixes have the following meanings: 1016Salm.t Template - a list of ed commands from which an ed script is 1116Salm constructed 1216Salm.d Data - read by an ed script 1316Salm.r Result - the expected output after processing data via an ed 1416Salm script. 1516Salm.err Error - invalid ed commands that should generate an error 1616Salm 1716SalmThe output of the tests is written to the two files err.o and scripts.o. 1816SalmAt the end of the tests, these files are grep'ed for error messages, 1916Salmwhich look like: 2016Salm *** The script u.ed exited abnormally *** 2116Salmor: 2216Salm *** Output u.o of script u.ed is incorrect *** 2316Salm 2416SalmThe POSIX requirement that an address range not be used where at most 2516Salma single address is expected has been relaxed in this version of ed. 2616SalmTherefore, the following scripts which test for compliance with this 2716SalmPOSIX rule exit abnormally: 2816Salm=-err.ed 2916Salma1-err.ed 3016Salmi1-err.ed 3116Salmk1-err.ed 3216Salmr1-err.ed 33