0a47c91c895e274dd0990009919e30e984364a8bRobert MustacchiMDB Test suite
0a47c91c895e274dd0990009919e30e984364a8bRobert Mustacchi
0a47c91c895e274dd0990009919e30e984364a8bRobert MustacchiThis provides a primordial version of a test suite for mdb. To run the tests,
0a47c91c895e274dd0990009919e30e984364a8bRobert Mustacchirun mtest. Tests exist in various subdirectories. The name of the test is
0a47c91c895e274dd0990009919e30e984364a8bRobert Mustacchiimportant.
0a47c91c895e274dd0990009919e30e984364a8bRobert Mustacchi
0a47c91c895e274dd0990009919e30e984364a8bRobert MustacchiA test must start with either:
0a47c91c895e274dd0990009919e30e984364a8bRobert Mustacchi
0a47c91c895e274dd0990009919e30e984364a8bRobert Mustacchi o tst - Indicating that it should exit zero
0a47c91c895e274dd0990009919e30e984364a8bRobert Mustacchi o err - Indicating that it should exit non-zero
0a47c91c895e274dd0990009919e30e984364a8bRobert Mustacchi
0a47c91c895e274dd0990009919e30e984364a8bRobert MustacchiA test must end with either:
0a47c91c895e274dd0990009919e30e984364a8bRobert Mustacchi
0a47c91c895e274dd0990009919e30e984364a8bRobert Mustacchi o mdb - Indicating that the file should be passed as standard input to mdb
0a47c91c895e274dd0990009919e30e984364a8bRobert Mustacchi o ksh - Indicating that it should be run with ksh
0a47c91c895e274dd0990009919e30e984364a8bRobert Mustacchi
0a47c91c895e274dd0990009919e30e984364a8bRobert MustacchiA test may have an optional .out file which if present indicates that the test
0a47c91c895e274dd0990009919e30e984364a8bRobert Mustacchishould pass if and only if its standard ouput matches its standar error.