aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorSergio Martins <smartins@kde.org>2019-10-14 18:50:15 +0100
committerSergio Martins <smartins@kde.org>2019-10-14 18:50:15 +0100
commite52fe4f4fc7d7d4ccaa3d73bb85c93443b31dc5f (patch)
tree78291313198aeefe3a302ca53539638184fe5356
parenta89eac65cd797696179e3c5d2373df915f6a593b (diff)
When running test_requested_checks.sh, honour CLAZY_CXX
-rwxr-xr-xtests/clazy/test_requested_checks.sh7
1 files changed, 6 insertions, 1 deletions
diff --git a/tests/clazy/test_requested_checks.sh b/tests/clazy/test_requested_checks.sh
index 40b04d44..b0de457b 100755
--- a/tests/clazy/test_requested_checks.sh
+++ b/tests/clazy/test_requested_checks.sh
@@ -1,5 +1,10 @@
unset CLAZY_CHECKS
-CLAZY_COMMAND="clazy -c -o /dev/null -xc++ -Xclang -plugin-arg-clazy -Xclang print-requested-checks "
+
+if [ -z "${CLAZY_CXX}" ]; then
+ CLAZY_CXX=clazy
+fi
+
+CLAZY_COMMAND="${CLAZY_CXX} -c -o /dev/null -xc++ -Xclang -plugin-arg-clazy -Xclang print-requested-checks "
CLAZY_COMMAND_STDIN=$CLAZY_COMMAND"-"
# Test without checks: