taucmdr.cf.software.tests.test_installation module¶
Test functions.
Functions used for unit tests of installation.py.
- class taucmdr.cf.software.tests.test_installation.InstallationEnvironmentTest(methodName='runTest')[source]¶
Bases:
TestCaseTests for the compile-time and runtime environments an installation contributes.
- _LIBRARY_PATH = 'LD_LIBRARY_PATH'¶
- _classSetupFailed = False¶
- _class_cleanups = []¶
- test_bin_and_lib_paths_prepended()[source]¶
PATH and the loader path start with the installation’s directories.
- class taucmdr.cf.software.tests.test_installation.InstallationSourceTest(methodName='runTest')[source]¶
Bases:
TestCaseTests for how Installation resolves the package source given at construction.
- _classSetupFailed = False¶
- _class_cleanups = []¶
- test_arch_and_os_specific_repos()[source]¶
Repositories are looked up by target architecture, then OS, falling back to the defaults.
- test_archive_path_is_managed()[source]¶
A path that is not a directory (an archive) still has to be installed.
- test_download_single_repo_string()[source]¶
A single repository string is a source with no fallbacks.
- test_download_uses_repo_list()[source]¶
‘download’ takes the first repository and keeps the rest as fallbacks.
- class taucmdr.cf.software.tests.test_installation.InstallationVerifyTest(methodName='runTest')[source]¶
Bases:
TestCaseTests for verify() against a fabricated installation prefix.
- _classSetupFailed = False¶
- _class_cleanups = []¶
- test_complete_installation_verifies()[source]¶
Executable commands, libraries, and headers in the usual places pass.
- class taucmdr.cf.software.tests.test_installation.ParallelMakeFlagsTest(methodName='runTest')[source]¶
Bases:
TestCaseTests for
parallel_make_flags.- _DEFAULT = ['-j', '3']¶
- _classSetupFailed = False¶
- _class_cleanups = []¶
- taucmdr.cf.software.tests.test_installation._widget(src, repos=None, commands=None, libraries=None, headers=None, arch=<taucmdr.cf.platforms.Architecture object>, target_os=<taucmdr.cf.platforms.OperatingSystem object>)[source]¶
Build a bare Installation for a package named ‘widget’ without touching any storage level.