taucmdr.cf.software.tests.test_tau_installation module

Test functions.

Functions used for unit tests of tau_installation.py.

class taucmdr.cf.software.tests.test_tau_installation.TauInstallationTest(methodName='runTest')[source]

Bases: taucmdr.tests.TestCase

Tests for TauInstallation CUPTI detection and tagging.

_make_cupti_header(*path_parts)[source]

Create a fake cupti_events.h under the per-test cuda tmpdir.

setUp()[source]

Hook method for setting up the test fixture before exercising it.

tearDown()[source]

Hook method for deconstructing the test fixture after testing it.

test_find_cupti_orig_layout()[source]

extras/CUPTI.orig/include/cupti_events.h — fourth candidate.

test_find_cupti_returns_none_when_missing()[source]

No headers present: returns None.

test_find_cupti_returns_none_when_no_cuda_prefix()[source]

No cuda_prefix: returns None without touching filesystem.

test_find_cupti_standard_sdk_layout()[source]

extras/CUPTI/include/cupti_events.h — first candidate.

test_find_cupti_system_packaged_layout()[source]

<cuda>/include/cupti_events.h — third candidate (e.g. /usr).