[CMake] Refactor testing infrastructure
authorJonas Hahnfeld <hahnjo@hahnjo.de>
Wed, 29 Nov 2017 19:31:52 +0000 (19:31 +0000)
committerJonas Hahnfeld <hahnjo@hahnjo.de>
Wed, 29 Nov 2017 19:31:52 +0000 (19:31 +0000)
commit18bec60bc2d5c6140cb11c459dc6055e2e8884c9
treebebca38a2a0d527f55e749426126b61d275d9941
parent5af381acade8a285ff2e3c8c8e6018d5432116d3
[CMake] Refactor testing infrastructure

The code for the two OpenMP runtime libraries was very similar.
Move to common CMake file that is included and provides a simple
interface for adding testsuites. Also add a common check-openmp
target that runs all testsuites that have been registered.

Note that this renames all test options to the common OPENMP
namespace, for example OPENMP_TEST_C_COMPILER instead of
LIBOMP_TEST_COMPILER and so on.

Differential Revision: https://reviews.llvm.org/D40082

llvm-svn: 319343
openmp/CMakeLists.txt
openmp/cmake/OpenMPTesting.cmake [new file with mode: 0644]
openmp/libomptarget/Build_With_CMake.txt
openmp/libomptarget/test/CMakeLists.txt
openmp/libomptarget/test/lit.cfg
openmp/libomptarget/test/lit.site.cfg.in
openmp/runtime/Build_With_CMake.txt
openmp/runtime/test/CMakeLists.txt
openmp/runtime/test/lit.cfg
openmp/runtime/test/lit.site.cfg.in
openmp/runtime/test/ompt/loadtool/tool_available.c