summaryrefslogtreecommitdiff
path: root/lib
diff options
context:
space:
mode:
Diffstat (limited to 'lib')
-rw-r--r--lib/spack/spack/test/compilers/detection.py12
1 files changed, 12 insertions, 0 deletions
diff --git a/lib/spack/spack/test/compilers/detection.py b/lib/spack/spack/test/compilers/detection.py
index 06095c4bf4..8bc3285d43 100644
--- a/lib/spack/spack/test/compilers/detection.py
+++ b/lib/spack/spack/test/compilers/detection.py
@@ -177,6 +177,13 @@ def test_intel_version_detection(version_str, expected_version):
'InstalledDir: /made/up/path',
'2021.3.0'
),
+ ( # ICX/ICPX
+ 'Intel(R) oneAPI DPC++/C++ Compiler 2021.4.0 (2021.4.0.20210924)\n'
+ 'Target: x86_64-unknown-linux-gnu\n'
+ 'Thread model: posix\n'
+ 'InstalledDir: /made/up/path',
+ '2021.4.0'
+ ),
( # IFX
'ifx (IFORT) 2021.1.2 Beta 20201214\n'
'Copyright (C) 1985-2020 Intel Corporation. All rights reserved.',
@@ -192,6 +199,11 @@ def test_intel_version_detection(version_str, expected_version):
'Copyright (C) 1985-2020 Intel Corporation. All rights reserved.',
'2021.3.0'
),
+ ( # IFX
+ 'ifx (IFORT) 2021.4.0 Beta 20210924\n'
+ 'Copyright (C) 1985-2021 Intel Corporation. All rights reserved.',
+ '2021.4.0'
+ ),
])
def test_oneapi_version_detection(version_str, expected_version):
version = spack.compilers.oneapi.Oneapi.extract_version_from_output(