1148531efSWolfram Schneider 230154ac8SAndrew MooreThe files in this directory with suffixes `.t', `.d', `.r' and `.err' are 330154ac8SAndrew Mooreused for testing ed. To run the tests, set the ED variable in the Makefile 430154ac8SAndrew Moorefor the path name of the program to be tested (e.g., /bin/ed), and type 530154ac8SAndrew Moore`make'. The tests do not exhaustively verify POSIX compliance nor do 630154ac8SAndrew Moorethey verify correct 8-bit or long line support. 730154ac8SAndrew Moore 830154ac8SAndrew MooreThe test file suffixes have the following meanings: 930154ac8SAndrew Moore.t Template - a list of ed commands from which an ed script is 1030154ac8SAndrew Moore constructed 1130154ac8SAndrew Moore.d Data - read by an ed script 1230154ac8SAndrew Moore.r Result - the expected output after processing data via an ed 1330154ac8SAndrew Moore script. 1430154ac8SAndrew Moore.err Error - invalid ed commands that should generate an error 1530154ac8SAndrew Moore 1630154ac8SAndrew MooreThe output of the tests is written to the two files err.o and scripts.o. 1730154ac8SAndrew MooreAt the end of the tests, these files are grep'ed for error messages, 1830154ac8SAndrew Moorewhich look like: 1930154ac8SAndrew Moore *** The script u.ed exited abnormally *** 2030154ac8SAndrew Mooreor: 2130154ac8SAndrew Moore *** Output u.o of script u.ed is incorrect *** 2230154ac8SAndrew Moore 2330154ac8SAndrew MooreThe POSIX requirement that an address range not be used where at most 2430154ac8SAndrew Moorea single address is expected has been relaxed in this version of ed. 2530154ac8SAndrew MooreTherefore, the following scripts which test for compliance with this 2630154ac8SAndrew MoorePOSIX rule exit abnormally: 2730154ac8SAndrew Moore=-err.ed 2830154ac8SAndrew Moorea1-err.ed 2930154ac8SAndrew Moorei1-err.ed 3030154ac8SAndrew Moorek1-err.ed 3130154ac8SAndrew Moorer1-err.ed 32