libomp/lit.fedora.cfg.py
Tom Stellard 959c070864 Simplify libomp-test package
+ Rename test script to run-lit-tests and move to libexec to match
  llvm-test.
+ Move most of the configuration out of the spec file and into the
  test script and a custom lit config file.
+ Stop testing libomp with gcc.  Most of the complication in the
  spec file was to enable testing with gcc.  A user would have to
  go way out of their way to make libomp work with gcc, so I don't
  think there is much value in keeping the complexity in order to test
  this.
2019-04-25 03:52:17 +00:00

16 lines
668 B
Python

import tempfile
compiler = '%(libomp_compiler)s' % lit_config.params
config.test_filecheck = '%(bindir)s/FileCheck' % lit_config.params
config.omp_header_directory = '%(includedir)s' % lit_config.params
config.libomp_obj_root = tempfile.mkdtemp()
config.library_dir = '%(libdir)s' % lit_config.params
test_root = '%(libomp_test_root)s' % lit_config.params
# Lit will default to the compiler used to build openmp, which is gcc, but we
# want to run the tests using clang.
config.test_compiler_features = ['clang']
config.test_c_compiler = 'clang'
config.test_cxx_compiler = 'clang++'
lit_config.load_config(config, '%(libomp_test_root)s/lit.cfg' % lit_config.params)