taucmdr.tests.test_run_tests module¶
Unit tests for the test runner itself.
- class taucmdr.tests.test_run_tests.RunTestsTest(methodName='runTest')[source]¶
Bases:
TestCaseTests for
scripts/run_tests.py.- _classSetupFailed = False¶
- _class_cleanups = []¶
- _probe_system_prefix(setenv=None, cwd=None)[source]¶
Run a probe test under the runner and return what it saw.
- Returns:
taucmdr.SYSTEM_PREFIX, the values ofTAUCMDR_SYSTEM_PREFIXand__TAUCMDR_SYSTEM_PREFIX__in the probe’s environment, and whether the prefix directory exists.- Return type:
- test_deprecation_warnings()[source]¶
Deprecation warnings from TAU Commander’s own modules fail the run; other deprecation warnings don’t.
- test_import_error_traceback()[source]¶
A package that raises an exception when imported shows a traceback, not a “no tests” error.
- test_nested_run_results_dir()[source]¶
A nested test run writes its results elsewhere than this run’s results directory.
- test_no_implicit_tempdir_cleanup()[source]¶
Every temporary directory is cleaned up explicitly, so none warns at exit.
- test_package_name()[source]¶
Listing tests by package name lists the tests in every test module under it.
- test_results_dir_replaced()[source]¶
The runner clears old results from the results directory and writes new ones there.
- test_system_prefix_absolute()[source]¶
The runner exports a relative system prefix as an absolute path, under both names.
- test_system_prefix_created()[source]¶
The runner creates a system prefix that doesn’t exist yet, so the tests have a system level.