Skip to content

Commit 8b0bbca

Browse files
authored
Add test to check that gcc in uenv does not generate a "fixed" pthread.h (#474)
1 parent 17aa69c commit 8b0bbca

File tree

1 file changed

+32
-0
lines changed

1 file changed

+32
-0
lines changed

checks/prgenv/uenv_fixincludes.py

Lines changed: 32 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,32 @@
1+
# Copyright Swiss National Supercomputing Centre (CSCS/ETH Zurich)
2+
# ReFrame Project Developers. See the top-level LICENSE file for details.
3+
#
4+
# SPDX-License-Identifier: BSD-3-Clause
5+
6+
import reframe as rfm
7+
import reframe.utility.sanity as sn
8+
9+
10+
@rfm.simple_test
11+
class UenvFixincludes(rfm.RunOnlyRegressionTest):
12+
descr = '''
13+
Check that GCC is not "fixing" the pthread.h header. See
14+
https://github.com/spack/spack-packages/pull/2596 for an overview and links
15+
to further details.
16+
'''
17+
18+
valid_systems = ['+uenv +remote +scontrol']
19+
valid_prog_environs = ['+uenv']
20+
maintainers = ['msimberg', 'SSA']
21+
22+
time_limit = '1m'
23+
num_tasks_per_node = 1
24+
sourcesdir = None
25+
executable = 'find'
26+
executable_opts = ["/user-environment", "/user-tools", "-type", "f",
27+
"-name", "pthread.h"]
28+
tags = {'production', 'maintenance', 'uenv'}
29+
30+
@sanity_function
31+
def validate(self):
32+
return sn.assert_not_found(r'include-fixed', self.stdout)

0 commit comments

Comments
 (0)