xref: /illumos-gate/usr/src/test/util-tests/tests/mdb/README (revision ac2f5fbefc05314fcd97b03f2338b39e6efe643f)
1*ac2f5fbeSJohn LevonMDB Test suite
2*ac2f5fbeSJohn Levon
3*ac2f5fbeSJohn LevonThis provides a primordial version of a test suite for mdb. To run the tests,
4*ac2f5fbeSJohn Levonrun mtest. Tests exist in various subdirectories. The name of the test is
5*ac2f5fbeSJohn Levonimportant.
6*ac2f5fbeSJohn Levon
7*ac2f5fbeSJohn LevonA test must start with either:
8*ac2f5fbeSJohn Levon
9*ac2f5fbeSJohn Levon o tst - Indicating that it should exit zero
10*ac2f5fbeSJohn Levon o err - Indicating that it should exit non-zero
11*ac2f5fbeSJohn Levon
12*ac2f5fbeSJohn LevonA test must end with either:
13*ac2f5fbeSJohn Levon
14*ac2f5fbeSJohn Levon o mdb - Indicating that the file should be passed as standard input to mdb
15*ac2f5fbeSJohn Levon o ksh - Indicating that it should be run with ksh
16*ac2f5fbeSJohn Levon
17*ac2f5fbeSJohn LevonA test may have an optional .out file which if present indicates that the test
18*ac2f5fbeSJohn Levonshould pass if and only if its standard ouput matches its standar error.
19