Changeset View
Changeset View
Standalone View
Standalone View
openmp/trunk/runtime/test/lit.cfg
Show First 20 Lines • Show All 42 Lines • ▼ Show 20 Lines | |||||
# compiler flags | # compiler flags | ||||
config.test_cflags = config.test_openmp_flag + \ | config.test_cflags = config.test_openmp_flag + \ | ||||
" -I " + config.test_source_root + \ | " -I " + config.test_source_root + \ | ||||
" -I " + config.omp_header_directory + \ | " -I " + config.omp_header_directory + \ | ||||
" -L " + config.library_dir + \ | " -L " + config.library_dir + \ | ||||
" " + config.test_extra_cflags | " " + config.test_extra_cflags | ||||
# extra libraries | |||||
libs = "" | |||||
if config.has_libm: | |||||
libs += " -lm" | |||||
# Allow XFAIL to work | # Allow XFAIL to work | ||||
config.target_triple = [ ] | config.target_triple = [ ] | ||||
if re.search('gcc', config.test_compiler) is not None: | if re.search('gcc', config.test_compiler) is not None: | ||||
config.available_features.add('gcc') | config.available_features.add('gcc') | ||||
# Setup environment to find dynamic library at runtime | # Setup environment to find dynamic library at runtime | ||||
append_dynamic_library_path(config.library_dir) | append_dynamic_library_path(config.library_dir) | ||||
if config.using_hwloc: | if config.using_hwloc: | ||||
Show All 28 Lines | |||||
# substitutions | # substitutions | ||||
if config.has_ompt: | if config.has_ompt: | ||||
config.substitutions.append(("FileCheck", config.test_filecheck)) | config.substitutions.append(("FileCheck", config.test_filecheck)) | ||||
config.substitutions.append(("%sort-threads", "sort --numeric-sort --stable")) | config.substitutions.append(("%sort-threads", "sort --numeric-sort --stable")) | ||||
config.substitutions.append(("%libomp-compile-and-run", \ | config.substitutions.append(("%libomp-compile-and-run", \ | ||||
"%libomp-compile && %libomp-run")) | "%libomp-compile && %libomp-run")) | ||||
config.substitutions.append(("%libomp-compile", \ | config.substitutions.append(("%libomp-compile", \ | ||||
"%clang %cflags %s -o %t -lm")) | "%clang %cflags %s -o %t" + libs)) | ||||
config.substitutions.append(("%libomp-run", "%t")) | config.substitutions.append(("%libomp-run", "%t")) | ||||
config.substitutions.append(("%clang", config.test_compiler)) | config.substitutions.append(("%clang", config.test_compiler)) | ||||
config.substitutions.append(("%openmp_flag", config.test_openmp_flag)) | config.substitutions.append(("%openmp_flag", config.test_openmp_flag)) | ||||
config.substitutions.append(("%cflags", config.test_cflags)) | config.substitutions.append(("%cflags", config.test_cflags)) | ||||