Without this patch, the openmp project's test suites do not appear to have support for negative tests. However, D78170 needs to add a test that an expected runtime failure occurs. This patch makes `not` visible in all of the openmp project's test suites. In all but `libomptarget/test`, it should be possible for a test author to insert `not` before a use of the lit substitution for running a test program. In `libomptarget/test`, that substitution is target-specific, and its value is `echo` when the target is not available. In that case, inserting `not` before a lit substitution would expect an `echo` fail, so this patch instead defines a separate lit substitution for expected runtime fails. Reviewed By: jdoerfert, Hahnfeld Differential Revision: https://reviews.llvm.org/D78566
22 lines
951 B
INI
22 lines
951 B
INI
@AUTO_GEN_COMMENT@
|
|
|
|
config.test_c_compiler = "@OPENMP_TEST_C_COMPILER@"
|
|
config.test_cxx_compiler = "@OPENMP_TEST_CXX_COMPILER@"
|
|
config.test_compiler_features = @OPENMP_TEST_COMPILER_FEATURES@
|
|
config.test_filecheck = "@OPENMP_FILECHECK_EXECUTABLE@"
|
|
config.test_not = "@OPENMP_NOT_EXECUTABLE@"
|
|
config.test_openmp_flags = "@OPENMP_TEST_OPENMP_FLAGS@"
|
|
config.test_extra_flags = "@OPENMP_TEST_FLAGS@"
|
|
config.libomp_obj_root = "@CMAKE_CURRENT_BINARY_DIR@"
|
|
config.library_dir = "@LIBOMP_LIBRARY_DIR@"
|
|
config.omp_header_directory = "@LIBOMP_BINARY_DIR@/src"
|
|
config.operating_system = "@CMAKE_SYSTEM_NAME@"
|
|
config.hwloc_library_dir = "@LIBOMP_HWLOC_LIBRARY_DIR@"
|
|
config.using_hwloc = @LIBOMP_USE_HWLOC@
|
|
config.has_ompt = @LIBOMP_OMPT_SUPPORT@ and @LIBOMP_OMPT_OPTIONAL@
|
|
config.has_libm = @LIBOMP_HAVE_LIBM@
|
|
config.has_libatomic = @LIBOMP_HAVE_LIBATOMIC@
|
|
|
|
# Let the main config do the real work.
|
|
lit_config.load_config(config, "@LIBOMP_BASE_DIR@/test/lit.cfg")
|