1*23f24377SWarner LoshThe archive of test files contains 2*23f24377SWarner Losh 3*23f24377SWarner Losh- A shell file called REGRESS that controls the testing process. 4*23f24377SWarner Losh 5*23f24377SWarner Losh- Several shell files called Compare* that control sub-parts 6*23f24377SWarner Loshof the testing. 7*23f24377SWarner Losh 8*23f24377SWarner Losh- About 160 small tests called t.* that constitute a random 9*23f24377SWarner Loshsampling of awk constructions collected over the years. 10*23f24377SWarner LoshNot organized, but they touch almost everything. 11*23f24377SWarner Losh 12*23f24377SWarner Losh- About 60 small tests called p.* that come from the first 13*23f24377SWarner Loshtwo chapters of The AWK Programming Language. This is 14*23f24377SWarner Loshbasic stuff -- they have to work. 15*23f24377SWarner Losh 16*23f24377SWarner LoshThese two sets are intended as regression tests, to be sure 17*23f24377SWarner Loshthat a new version produces the same results as a previous one. 18*23f24377SWarner LoshThere are a couple of standard data files used with them, 19*23f24377SWarner Loshtest.data and test.countries, but others would work too. 20*23f24377SWarner Losh 21*23f24377SWarner Losh- About 20 files called T.* that are self-contained and 22*23f24377SWarner Loshmore systematic tests of specific language features. 23*23f24377SWarner LoshFor example, T.clv tests command-line variable handling. 24*23f24377SWarner LoshThese tests are not regressions -- they compute the right 25*23f24377SWarner Loshanswer by separate means, then compare the awk output. 26*23f24377SWarner LoshA specific test for each new bug found shows up in at least 27*23f24377SWarner Loshone of these, most often T.misc. There are about 220 tests 28*23f24377SWarner Loshtotal in these files. 29*23f24377SWarner Losh 30*23f24377SWarner Losh- Two of these files, T.re and T.sub, are systematic tests 31*23f24377SWarner Loshof the regular expression and substitution code. They express 32*23f24377SWarner Loshtests in a small language, then generate awk programs that 33*23f24377SWarner Loshverify behavior. 34*23f24377SWarner Losh 35*23f24377SWarner Losh- About 20 files called tt.* that are used as timing tests; 36*23f24377SWarner Loshthey use the most common awk constructions in straightforward 37*23f24377SWarner Loshways, against a large input file constructed by Compare.tt. 38*23f24377SWarner Losh 39*23f24377SWarner Losh 40*23f24377SWarner LoshThere is undoubtedly more stuff in the archive; it's been 41*23f24377SWarner Loshcollecting for years and may need pruning. Suggestions for 42*23f24377SWarner Loshimprovement, additional tests (especially systematic ones), 43*23f24377SWarner Loshand the like are all welcome. 44*23f24377SWarner Losh 45