Name | Date | Size | |
---|---|---|---|
.. | 2016-12-01 22:49:49 | 26 | |
api | 2016-12-01 22:49:49 | 45 | |
baseline.py | 2015-09-14 23:25:57 | 5.6 KiB | |
baseline.txt | 2012-05-08 22:21:56 | 587 | |
certgenerator.py | 2016-05-13 00:03:59 | 17.2 KiB | |
cli | 2016-12-01 22:49:49 | 67 | |
interactive | 2015-03-27 17:42:26 | 4 | |
multiplatform.py | 2015-12-26 15:17:04 | 7.3 KiB | |
pep8-whitelist.txt | 2016-08-02 17:04:54 | 129 | |
perf | 2015-12-26 15:17:04 | 6 | |
pkg5testenv.py | 2016-05-13 00:03:59 | 5.1 KiB | |
pkg5unittest.py | 2016-10-10 07:48:42 | 201.2 KiB | |
pylintrc | 2016-12-01 22:49:49 | 9.6 KiB | |
pylintrc_py3k | 2015-12-26 15:17:04 | 3.5 KiB | |
README | 2012-09-04 00:07:51 | 1.8 KiB | |
ro_data | 2014-05-10 13:02:27 | 9 | |
run.py | 2016-10-10 07:48:42 | 21.6 KiB | |
testsuite | 2012-05-08 22:21:56 | 5 |
README
Copyright (c) 2007, 2012, Oracle and/or its affiliates. All rights reserved.
1. Summary
The global test target, i.e. "make test", should be executed prior to
requesting code review and prior to integration. That target invokes
run.py in this directory.
run.py drives the execution of our api and cli test suites, and
compares the results to a baseline file stored in baseline.txt.
run.py can also be run standalone with a variety of options:
Usage: run.py [-ghptv] [-c format] [-b filename] [-o regexp]
run.py [-hptvx] [-c format] [-b filename] [-s regexp] [-o regexp]
-a <dir> Archive failed test cases to <dir>/$pid/$testcasename
-b <filename> Baseline filename
-c <format> Collect code coverage data in xml or html format
-d Show debug output, including commands run, and outputs
-f Show fail/error information even when test is expected to fail
-g Generate result baseline
-h This help message
-j Parallelism
-o <regexp> Run only tests that match regexp
-p Parseable output format
-q Quiet output
-s <regexp> Run tests starting at regexp
-t Generate timing info file
-u Enable IPS GUI tests, disabled by default
-v Verbose output
-x Stop after the first baseline mismatch
-z <port> Lowest port the test suite should use
When adding, removing, or changing the results of test cases, make
sure to update baseline.txt and check it in. This can be done with the
-g option to run.py.
The code coverage collection is done with Ned Batchelder's "coverage.py"
tool [1].
2. References
[1] N. Batchelder, coverage module, 2009.