spack.test.compilers package

Submodules

spack.test.compilers.basics module

Test basic behavior of compilers in Spack

class spack.test.compilers.basics.MockCompiler[source]

Bases: spack.compiler.Compiler

property name
required_libs = ['libgfortran']
property verbose_flag

This property should be overridden in the compiler subclass if a verbose flag is available.

If it is not overridden, it is assumed to not be supported.

property version
spack.test.compilers.basics.call_compiler(exe, *args, **kwargs)[source]
spack.test.compilers.basics.flag_value(flag, spec)[source]
spack.test.compilers.basics.make_args_for_version(monkeypatch)[source]
spack.test.compilers.basics.supported_flag_test(flag, flag_value_ref, spec=None)[source]
spack.test.compilers.basics.test_all_compilers(config)[source]
spack.test.compilers.basics.test_aocc_flags()[source]
spack.test.compilers.basics.test_apple_clang_flags()[source]
spack.test.compilers.basics.test_apple_clang_setup_environment(mock_executable, monkeypatch)[source]

Test a code path that is taken only if the package uses Xcode on MacOS.

spack.test.compilers.basics.test_arm_flags()[source]
spack.test.compilers.basics.test_cce_flags()[source]
spack.test.compilers.basics.test_clang_flags()[source]
spack.test.compilers.basics.test_compiler_executable_verification_raises(tmpdir)[source]
spack.test.compilers.basics.test_compiler_executable_verification_success(tmpdir)[source]
spack.test.compilers.basics.test_compiler_flags_from_config_are_grouped()[source]
spack.test.compilers.basics.test_compiler_flags_use_real_version(working_env, monkeypatch, tmpdir)[source]
spack.test.compilers.basics.test_compiler_get_real_version(working_env, monkeypatch, tmpdir)[source]
spack.test.compilers.basics.test_compiler_get_real_version_fails(working_env, monkeypatch, tmpdir)[source]
spack.test.compilers.basics.test_default_flags()[source]
spack.test.compilers.basics.test_detecting_mixed_toolchains(compiler_spec, expected_result, config)[source]
spack.test.compilers.basics.test_fj_flags()[source]
spack.test.compilers.basics.test_gcc_flags()[source]
spack.test.compilers.basics.test_get_compiler_duplicates(config)[source]
spack.test.compilers.basics.test_implicit_rpaths(dirs_with_libfiles, monkeypatch)[source]
spack.test.compilers.basics.test_intel_flags()[source]
spack.test.compilers.basics.test_multiple_conflicting_compiler_definitions(mutable_config)[source]
spack.test.compilers.basics.test_nag_flags()[source]
spack.test.compilers.basics.test_nvhpc_flags()[source]
spack.test.compilers.basics.test_oneapi_flags()[source]
spack.test.compilers.basics.test_pgi_flags()[source]
spack.test.compilers.basics.test_raising_if_compiler_target_is_over_specific(config)[source]
spack.test.compilers.basics.test_version_detection_is_empty(make_args_for_version, input_version, expected_version, expected_error)[source]
spack.test.compilers.basics.test_xcode_not_available(xcode_select_output, mock_executable, monkeypatch)[source]
spack.test.compilers.basics.test_xl_flags()[source]
spack.test.compilers.basics.test_xl_r_flags()[source]
spack.test.compilers.basics.unsupported_flag_test(flag, spec=None)[source]

spack.test.compilers.detection module

Test detection of compiler version

spack.test.compilers.detection.test_aocc_version_detection(version_str, expected_version)[source]
spack.test.compilers.detection.test_apple_clang_version_detection(version_str, expected_version)[source]
spack.test.compilers.detection.test_arm_version_detection(version_str, expected_version)[source]
spack.test.compilers.detection.test_cce_version_detection(version_str, expected_version)[source]
spack.test.compilers.detection.test_clang_version_detection(version_str, expected_version)[source]
spack.test.compilers.detection.test_cray_frontend_compiler_detection(compiler, version, tmpdir, monkeypatch, working_env)[source]

Test that the Cray frontend properly finds compilers form modules

spack.test.compilers.detection.test_fj_version_detection(version_str, expected_version)[source]
spack.test.compilers.detection.test_gcc_version_detection(version_str, expected_version)[source]
spack.test.compilers.detection.test_intel_version_detection(version_str, expected_version)[source]
spack.test.compilers.detection.test_nag_version_detection(version_str, expected_version)[source]
spack.test.compilers.detection.test_nvhpc_version_detection(version_str, expected_version)[source]
spack.test.compilers.detection.test_oneapi_version_detection(version_str, expected_version)[source]
spack.test.compilers.detection.test_pgi_version_detection(version_str, expected_version)[source]
spack.test.compilers.detection.test_xl_version_detection(version_str, expected_version)[source]

Module contents