-
Notifications
You must be signed in to change notification settings - Fork 13
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Add scripts/test-all.sh used for local testing
- Loading branch information
1 parent
c0dd1d5
commit 78895bb
Showing
1 changed file
with
20 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,20 @@ | ||
#!/bin/bash | ||
|
||
# SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception | ||
|
||
# Test all configurations: gcc-14, gcc-13, clang-18, clang-17. | ||
# Expected to be run from the root of the project. | ||
# Expected all configurations to be present in the CMakeLists.txt file and installed on the system. | ||
# Usage: ./scripts/test-all.sh | ||
|
||
set -e | ||
set -x | ||
|
||
# rm -rf .build | ||
|
||
cmake --workflow --preset gcc-14 &> /dev/null && echo "passed" || echo "gcc-14 test failed." | ||
cmake --workflow --preset gcc-13 &> /dev/null && echo "passed" || echo "gcc-13 test failed." | ||
cmake --workflow --preset clang-18 &> /dev/null && echo "passed" || echo "clang-18 test failed." | ||
cmake --workflow --preset clang-17 &> /dev/null && echo "passed" || echo "clang-17 test failed." | ||
|
||
echo "All tests passed." |