From 49b974ab5b4151d5a8fabc7ded11eeacb12218dc Mon Sep 17 00:00:00 2001 From: bgallois Date: Thu, 24 Feb 2022 18:28:24 +0100 Subject: [PATCH] [fix] global: fix clang-clazy test --- FastTrack.pro | 5 +++++ code_check.sh | 7 ++++--- 2 files changed, 9 insertions(+), 3 deletions(-) diff --git a/FastTrack.pro b/FastTrack.pro index 48de86e..9e0697c 100644 --- a/FastTrack.pro +++ b/FastTrack.pro @@ -4,3 +4,8 @@ SUBDIRS += \ src/FastTrack.pro \ src/FastTrack-Cli.pro \ test/Test.pro + +SKIP_TEST { + SUBDIRS -= \ + test/Test.pro +} diff --git a/code_check.sh b/code_check.sh index 88edc35..012303b 100755 --- a/code_check.sh +++ b/code_check.sh @@ -1,11 +1,12 @@ #!/bin/bash make distclean -s -qmake6 CONFIG+="debug NO_WEB" QMAKE_CXXFLAGS+=-w -spec linux-clang QMAKE_CXX="clazy" FastTrack.pro + export CLAZY_CHECKS="level2" export CLAZY_EXPORT_FIXES=ON -export CLAZY_HEADER_FILTER="./src/" -export CLAZY_IGNORE_DIRS="./test/*" +export CLAZY_HEADER_FILTER="./src/" + +qmake6 CONFIG+="debug NO_WEB SKIP_TEST" QMAKE_CXXFLAGS+=-w -spec linux-clang QMAKE_CXX="clazy" FastTrack.pro if [ "$1" = "fail" ]; then VAR=$(make -s 2>&1 >/dev/null | grep "warning")