taucmdr.cf.tests.test_platforms module

Unit tests for taucmdr.cf.platforms

class taucmdr.cf.tests.test_platforms.PlatformsTest(methodName='runTest')[source]

Bases: TestCase

Unit tests for taucmdr.cf.platforms

_classSetupFailed = False
_class_cleanups = []
_run_patched(machine, system, code, cray=False)[source]

Run code in a new process after patching platform.machine and platform.system.

test_architecture_detect()[source]
test_arm64_alias()[source]

macOS reports Apple silicon as arm64, which is the same architecture as aarch64.

test_arm64_apple_detected()[source]
test_cray_aarch64_detected()[source]
test_cray_login_aprun()[source]

A Cray node with aprun on PATH is still a login node outside a job.

test_cray_login_in_job()[source]

Inside a Slurm, PBS, PALS, Flux, Cobalt or LSF job, a Cray node isn’t treated as a login node.

test_cray_login_outside_job()[source]

Outside any job, a Cray node is treated as a login node.

test_cray_x86_64_detected()[source]
test_not_cray_login()[source]
test_operating_system_detect()[source]
test_removed_platforms()[source]

Architectures and operating systems that TAU Commander doesn’t support aren’t defined.

test_shared_library_names_on_darwin()[source]
test_shared_library_suffix()[source]
test_supported_platforms()[source]

Each supported host platform maps to the expected TAU magic word.

test_tau_magic_detect()[source]
taucmdr.cf.tests.test_platforms._clear_job_variables()[source]