taucmdr.cli.commands.target.tests.test_create module¶
Test functions.
Functions used for unit tests of create.py.
- class taucmdr.cli.commands.target.tests.test_create.CreateTest(methodName='runTest')[source]¶
Bases:
TestCaseTests for
target.create.- _assert_from_makefile(prefix: str, makefile: str) None[source]¶
Create a target from makefile and check it uses the TAU installed at prefix on this host.
- _classSetupFailed = False¶
- _class_cleanups = []¶
- test_makefile_exec_prefix()[source]¶
The architecture comes from
TAU_ARCHin the makefile, not the name of its directory.
- test_makefile_generic_cc()[source]¶
A makefile’s
ccis identified by the first compiler family that accepts it, not always Cray.
- test_makefile_no_arch()[source]¶
A makefile without
TAU_ARCHis refused, even in a directory named after a TAU architecture.
- test_makefile_spack_link()[source]¶
A makefile given through Spack’s
<prefix>/liblink is found in its architecture directory.
- test_makefile_unknown_arch()[source]¶
A makefile whose
TAU_ARCHnames no known TAU architecture is refused.
- test_ompt_tr4_tr6_rejected()[source]¶
The retired –ompt download-tr4/download-tr6 keywords are refused at parse time with a hint.
- taucmdr.cli.commands.target.tests.test_create._tau_tree(arch_dir: str, tau_arch: str | None, spack_links: bool = False, extra: str = '') tuple[str, str][source]¶
Make a TAU installation holding one makefile in arch_dir, with
TAU_ARCHset to tau_arch if given.The makefile ends with the lines in extra.
With spack_links, add the
<prefix>/liblink to<arch_dir>/libthat Spack adds, and give the makefile’s path through that link, as Spack’sTAU_MAKEFILEdoes.- Returns:
The installation prefix and the makefile path to give
--from-tau-makefile.- Return type: