taucmdr.cf.compiler.tests.test_host module

Test functions.

Functions used for unit tests of host.py.

class taucmdr.cf.compiler.tests.test_host.CrayFamilyTest(methodName='runTest')[source]

Bases: TestCase

Tests for recognizing the Cray Programming Environment’s compiler wrappers.

_classSetupFailed = False
_class_cleanups = []
test_craype_mpi_wrappers()[source]

craype’s wrappers are Cray MPI compilers.

test_craype_wrappers()[source]

craype’s cc and ftn wrappers are Cray compilers, whichever compiler they wrap.

test_plain_cc()[source]

A cc that isn’t a craype wrapper isn’t a Cray compiler.

class taucmdr.cf.compiler.tests.test_host.FamilyOrderTest(methodName='runTest')[source]

Bases: TestCase

Tests for the order in which host compiler families are searched.

_classSetupFailed = False
_class_cleanups = []
test_find_any_without_preferred_family()[source]

Without the preferred family installed, a named family’s C compiler is found before the System family’s.

test_mpi_family_order()[source]

MPI compiler families are searched in definition order after the preferred family.

test_system_family_last()[source]

The generic System family is searched after every named family, but the preferred family is first.

class taucmdr.cf.compiler.tests.test_host.ProbeTest(methodName='runTest')[source]

Bases: TestCase

Tests for finding a compiler’s family from its output.

_classSetupFailed = False
_class_cleanups = []
test_failed_version_command()[source]

A family whose version command fails isn’t matched against another family’s output.

taucmdr.cf.compiler.tests.test_host._probe_family(path, output, candidates)[source]