[OpenMP][libomptarget] Separate lit tests for different offloading targets (1/2)
authorJoachim Protze <protze@itc.rwth-aachen.de>
Tue, 27 Apr 2021 10:23:18 +0000 (12:23 +0200)
committerJoachim Protze <protze@itc.rwth-aachen.de>
Tue, 27 Apr 2021 10:30:01 +0000 (12:30 +0200)
commitb845217b1dadc3e30c13720be1dfacd17ea3cbae
treea73d9551a63bfd59a1b1c9cbacd12310818709c6
parentfb7be0d912cbcba68803456fbde3fd311b3922ed
[OpenMP][libomptarget] Separate lit tests for different offloading targets (1/2)

This patch creates a separate test directory for each offloading target to be
tested. This allows to test multiple architectures in one configuration, while
still see all failing tests separately. The lit test names include the target
triple, so that it will be easier to spot the failing target.

This patch also allows to mark expected failing tests based on the
target-triple, as the currently used triple is added to the lit "features":
```
// XFAIL: nvptx64-nvidia-cuda
```

Differential Revision: https://reviews.llvm.org/D101315
openmp/libomptarget/test/CMakeLists.txt
openmp/libomptarget/test/lit.cfg
openmp/libomptarget/test/lit.site.cfg.in