summaryrefslogtreecommitdiff
path: root/TestScripts
diff options
context:
space:
mode:
authorJeffrey Walton <noloader@gmail.com>2022-02-16 15:08:03 -0500
committerJeffrey Walton <noloader@gmail.com>2022-02-16 15:08:03 -0500
commit27b7b8e4e6b3e54cca13b2faae87eb95faa0d819 (patch)
treec231f33cd2ead9509f17a9a17c4ad09eb6975870 /TestScripts
parent5c01b1115eb4795e9b794254511fe7f4d3f17f8d (diff)
downloadcryptopp-git-27b7b8e4e6b3e54cca13b2faae87eb95faa0d819.tar.gz
Disable Analyzer tests. C++ is still not working.
Diffstat (limited to 'TestScripts')
-rwxr-xr-xTestScripts/cryptest.sh8
1 files changed, 4 insertions, 4 deletions
diff --git a/TestScripts/cryptest.sh b/TestScripts/cryptest.sh
index 81b9b952..f6d82b8d 100755
--- a/TestScripts/cryptest.sh
+++ b/TestScripts/cryptest.sh
@@ -312,6 +312,7 @@ CXX_VERSION=$("$CXX" -v 2>&1)
GCC_4_8=$("$GREP" -i -c -E 'gcc version 4\.8' <<< "$CXX_VERSION")
GCC_4_8_OR_ABOVE=$("$GREP" -i -c -E 'gcc version (4\.[8-9]|[5-9]\.[0-9])' <<< "$CXX_VERSION")
GCC_11_0_OR_ABOVE=$("$GREP" -i -c -E 'gcc \(GCC\) (1[1-9]\.|[2-9][0-9]\.)' <<< "$CXX_VERSION")
+GCC_12_0_OR_ABOVE=$("$GREP" -i -c -E 'gcc \(GCC\) (1[2-9]\.|[2-9][0-9]\.)' <<< "$CXX_VERSION")
CXX_VERSION=$("$CXX" -V 2>&1)
SUNCC_5_10_OR_ABOVE=$("$GREP" -c -E "CC: (Sun|Studio) .* (5\.1[0-9]|5\.[2-9]|[6-9]\.)" <<< "$CXX_VERSION")
@@ -322,7 +323,7 @@ if [[ ("$SUNCC_5_10_OR_ABOVE" -ne 0) ]]; then
fi
# Fixup, Analyzer available in GCC 10.0, but C++ is not planned until GCC 11.
-if [[ ("$GCC_COMPILER" -ne 0) && ("$GCC_11_0_OR_ABOVE" -ne 0) ]]; then
+if [[ ("$GCC_COMPILER" -ne 0) && ("$GCC_12_0_OR_ABOVE" -ne 0) ]]; then
HAVE_ANALYZER=0
fi
@@ -627,7 +628,7 @@ if [[ (-z "$HAVE_BSAN") ]]; then
fi
# Analyzer available in GCC 10.0, but C++ is not planned until GCC 11.
-# Whoops, GCC 11 is not working for C++. Better disable it for now.
+# GCC 11 is not working for C++. It is disabled earlier via HAVE_ANALYZER.
# https://developers.redhat.com/blog/2020/03/26/static-analysis-in-gcc-10/
# and https://gcc.gnu.org/bugzilla/show_bug.cgi?id=95031#c2.
rm -f "${TMPDIR}/test.exe" &>/dev/null
@@ -637,8 +638,7 @@ if [[ (-z "$HAVE_ANALYZER") ]]; then
if [[ ("$?" -eq 0) ]]; then
"${TMPDIR}/test.exe" &>/dev/null
if [[ ("$?" -eq 0) ]]; then
- # HAVE_ANALYZER=1
- :
+ HAVE_ANALYZER=1
fi
fi
fi