Skip to content

Commit

Permalink
Add scripts/test-all.sh used for local testing
Browse files Browse the repository at this point in the history
  • Loading branch information
neatudarius committed Jun 24, 2024
1 parent c0dd1d5 commit 78895bb
Showing 1 changed file with 20 additions and 0 deletions.
20 changes: 20 additions & 0 deletions scripts/test-all.sh
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."

0 comments on commit 78895bb

Please sign in to comment.