xref: /titanic_50/usr/src/cmd/mdb/test/README (revision 0a47c91c895e274dd0990009919e30e984364a8b)
1*0a47c91cSRobert MustacchiMDB Test suite
2*0a47c91cSRobert Mustacchi
3*0a47c91cSRobert MustacchiThis provides a primordial version of a test suite for mdb. To run the tests,
4*0a47c91cSRobert Mustacchirun mtest. Tests exist in various subdirectories. The name of the test is
5*0a47c91cSRobert Mustacchiimportant.
6*0a47c91cSRobert Mustacchi
7*0a47c91cSRobert MustacchiA test must start with either:
8*0a47c91cSRobert Mustacchi
9*0a47c91cSRobert Mustacchi o tst - Indicating that it should exit zero
10*0a47c91cSRobert Mustacchi o err - Indicating that it should exit non-zero
11*0a47c91cSRobert Mustacchi
12*0a47c91cSRobert MustacchiA test must end with either:
13*0a47c91cSRobert Mustacchi
14*0a47c91cSRobert Mustacchi o mdb - Indicating that the file should be passed as standard input to mdb
15*0a47c91cSRobert Mustacchi o ksh - Indicating that it should be run with ksh
16*0a47c91cSRobert Mustacchi
17*0a47c91cSRobert MustacchiA test may have an optional .out file which if present indicates that the test
18*0a47c91cSRobert Mustacchishould pass if and only if its standard ouput matches its standar error.
19