llvm-capstone/openmp/tools
Joachim Jenke 81bc7cf609 [OpenMP][NFC] lit: Allow setting default environment variables for test
Add CHECK_OPENMP_ENV environment variable which will be passed to environment
variables for test (make check-* target). This provides a handy way to
exercise various openmp code with different settings during development.

For example, to change default barrier pattern:
```
$ env CHECK_OPENMP_ENV="KMP_FORKJOIN_BARRIER_PATTERN=hier,hier \
KMP_PLAIN_BARRIER_PATTERN=hier,hier \
KMP_REDUCTION_BARRIER_PATTERN=hier,hier" \
ninja check-openmp
```

Even with this, each test can set appropriate environment variables if needed
as before.

Also, this commit adds missing documention about how to run tests in README.

Patch provided by t-msn

Differential Revision: https://reviews.llvm.org/D122645
2023-07-11 15:00:40 +02:00
..
archer [OpenMP][NFC] lit: Allow setting default environment variables for test 2023-07-11 15:00:40 +02:00
Modules Reland "[CMake] Bumps minimum version to 3.20.0. 2023-05-27 12:51:21 +02:00
multiplex [OpenMP][NFC] lit: Allow setting default environment variables for test 2023-07-11 15:00:40 +02:00
CMakeLists.txt