diff --git a/TestScripts/cryptest.sh b/TestScripts/cryptest.sh index c59d2d09..381c70e7 100755 --- a/TestScripts/cryptest.sh +++ b/TestScripts/cryptest.sh @@ -136,7 +136,7 @@ IS_SPARC=$(echo -n "$THIS_MACHINE" | "$GREP" -i -c "sparc") IS_X32=0 # Fixup -if [[ "$IS_SOLARIS" -ne "0" ]]; then +if [[ "$IS_SOLARIS" -ne 0 ]]; then DISASS=dis DISASSARGS=() fi @@ -148,22 +148,22 @@ if [[ "$IS_DARWIN" -ne 0 ]]; then fi # CPU features and flags -if [[ ("$IS_X86" -ne "0" || "$IS_X64" -ne "0") ]]; then - if [[ ("$IS_DARWIN" -ne "0") ]]; then +if [[ ("$IS_X86" -ne 0 || "$IS_X64" -ne 0) ]]; then + if [[ ("$IS_DARWIN" -ne 0) ]]; then X86_CPU_FLAGS=$(sysctl machdep.cpu.features 2>&1 | cut -f 2 -d ':') - elif [[ ("$IS_SOLARIS" -ne "0") ]]; then + elif [[ ("$IS_SOLARIS" -ne 0) ]]; then X86_CPU_FLAGS=$(isainfo -v 2>/dev/null) - elif [[ ("$IS_FREEBSD" -ne "0") ]]; then + elif [[ ("$IS_FREEBSD" -ne 0) ]]; then X86_CPU_FLAGS=$(grep Features /var/run/dmesg.boot) - elif [[ ("$IS_DRAGONFLY" -ne "0") ]]; then + elif [[ ("$IS_DRAGONFLY" -ne 0) ]]; then X86_CPU_FLAGS=$(dmesg | grep Features) - elif [[ ("$IS_HURD" -ne "0") ]]; then + elif [[ ("$IS_HURD" -ne 0) ]]; then : # Do nothing... cpuid is not helpful at the moment else X86_CPU_FLAGS="$($AWK '{IGNORECASE=1}{if ($1 == "flags"){print;exit}}' < /proc/cpuinfo | cut -f 2 -d ':')" fi -elif [[ ("$IS_ARM32" -ne "0" || "$IS_ARM64" -ne "0") ]]; then - if [[ ("$IS_DARWIN" -ne "0") ]]; then +elif [[ ("$IS_ARM32" -ne 0 || "$IS_ARM64" -ne 0) ]]; then + if [[ ("$IS_DARWIN" -ne 0) ]]; then ARM_CPU_FLAGS="$(sysctl machdep.cpu.features 2>&1 | cut -f 2 -d ':')" else ARM_CPU_FLAGS="$($AWK '{IGNORECASE=1}{if ($1 == "Features"){print;exit}}' < /proc/cpuinfo | cut -f 2 -d ':')" @@ -191,9 +191,9 @@ done if [[ ((-z "$CXX") || ("$CXX" == "gcc")) ]]; then if [[ ("$CXX" == "gcc") ]]; then CXX="g++" - elif [[ "$IS_DARWIN" -ne "0" ]]; then + elif [[ "$IS_DARWIN" -ne 0 ]]; then CXX="c++" - elif [[ "$IS_SOLARIS" -ne "0" ]]; then + elif [[ "$IS_SOLARIS" -ne 0 ]]; then if [[ (-e "/opt/developerstudio12.5/bin/CC") ]]; then CXX="/opt/developerstudio12.5/bin/CC" elif [[ (-e "/opt/solarisstudio12.4/bin/CC") ]]; then @@ -228,10 +228,10 @@ MACPORTS_COMPILER=$("$CXX" --version 2>&1 | "$GREP" -i -c "MacPorts") CLANG_COMPILER=$("$CXX" --version 2>&1 | "$GREP" -i -c "clang") GNU_LINKER=$(ld --version 2>&1 | "$GREP" -i -c "GNU ld") -if [[ ("$SUN_COMPILER" -eq "0") ]]; then +if [[ ("$SUN_COMPILER" -eq 0) ]]; then AMD64=$("$CXX" -dM -E - /dev/null | "$GREP" -i -c -E "(__x64_64__|__amd64__)") ILP32=$("$CXX" -dM -E - /dev/null | "$GREP" -i -c -E "(__ILP32__|__ILP32)") - if [[ ("$AMD64" -ne "0") && ("$ILP32" -ne "0") ]]; then + if [[ ("$AMD64" -ne 0) && ("$ILP32" -ne 0) ]]; then IS_X32=1 fi fi @@ -243,7 +243,7 @@ SUNCC_510_OR_ABOVE=$("$CXX" -V 2>&1 | "$GREP" -c -E "CC: (Sun|Studio) .* (5\.1[0 SUNCC_511_OR_ABOVE=$("$CXX" -V 2>&1 | "$GREP" -c -E "CC: (Sun|Studio) .* (5\.1[1-9]|5\.[2-9]|[6-9]\.)") # Fixup, bad code generation -if [[ ("$SUNCC_510_OR_ABOVE" -ne "0") ]]; then +if [[ ("$SUNCC_510_OR_ABOVE" -ne 0) ]]; then HAVE_O5=0 HAVE_OFAST=0 fi @@ -274,7 +274,7 @@ if [[ (-z "$HAVE_CXX17") ]]; then HAVE_CXX17=0 rm -f "$TMPDIR/adhoc.exe" > /dev/null 2>&1 "$CXX" -DCRYPTOPP_ADHOC_MAIN -std=c++17 adhoc.cpp -o "$TMPDIR/adhoc.exe" > /dev/null 2>&1 - if [[ "$?" -eq "0" ]]; then + if [[ "$?" -eq 0 ]]; then HAVE_CXX17=1 fi fi @@ -283,7 +283,7 @@ rm -f "$TMPDIR/adhoc.exe" > /dev/null 2>&1 if [[ (-z "$HAVE_GNU17") ]]; then HAVE_GNU17=0 "$CXX" -DCRYPTOPP_ADHOC_MAIN -std=gnu++17 adhoc.cpp -o "$TMPDIR/adhoc.exe" > /dev/null 2>&1 - if [[ "$?" -eq "0" ]]; then + if [[ "$?" -eq 0 ]]; then HAVE_GNU17=1 fi fi @@ -293,7 +293,7 @@ if [[ (-z "$HAVE_CXX20") ]]; then HAVE_CXX20=0 rm -f "$TMPDIR/adhoc.exe" > /dev/null 2>&1 "$CXX" -DCRYPTOPP_ADHOC_MAIN -std=c++20 adhoc.cpp -o "$TMPDIR/adhoc.exe" > /dev/null 2>&1 - if [[ "$?" -eq "0" ]]; then + if [[ "$?" -eq 0 ]]; then HAVE_CXX20=1 fi fi @@ -302,7 +302,7 @@ rm -f "$TMPDIR/adhoc.exe" > /dev/null 2>&1 if [[ (-z "$HAVE_GNU20") ]]; then HAVE_GNU20=0 "$CXX" -DCRYPTOPP_ADHOC_MAIN -std=gnu++20 adhoc.cpp -o "$TMPDIR/adhoc.exe" > /dev/null 2>&1 - if [[ "$?" -eq "0" ]]; then + if [[ "$?" -eq 0 ]]; then HAVE_GNU20=1 fi fi @@ -311,7 +311,7 @@ rm -f "$TMPDIR/adhoc.exe" > /dev/null 2>&1 if [[ (-z "$HAVE_CXX14") ]]; then HAVE_CXX14=0 "$CXX" -DCRYPTOPP_ADHOC_MAIN -std=c++14 adhoc.cpp -o "$TMPDIR/adhoc.exe" > /dev/null 2>&1 - if [[ "$?" -eq "0" ]]; then + if [[ "$?" -eq 0 ]]; then HAVE_CXX14=1 fi fi @@ -320,7 +320,7 @@ rm -f "$TMPDIR/adhoc.exe" > /dev/null 2>&1 if [[ (-z "$HAVE_GNU14") ]]; then HAVE_GNU14=0 "$CXX" -DCRYPTOPP_ADHOC_MAIN -std=gnu++14 adhoc.cpp -o "$TMPDIR/adhoc.exe" > /dev/null 2>&1 - if [[ "$?" -eq "0" ]]; then + if [[ "$?" -eq 0 ]]; then HAVE_GNU14=1 fi fi @@ -329,7 +329,7 @@ rm -f "$TMPDIR/adhoc.exe" > /dev/null 2>&1 if [[ (-z "$HAVE_CXX11") ]]; then HAVE_CXX11=0 "$CXX" -DCRYPTOPP_ADHOC_MAIN -std=c++11 adhoc.cpp -o "$TMPDIR/adhoc.exe" > /dev/null 2>&1 - if [[ "$?" -eq "0" ]]; then + if [[ "$?" -eq 0 ]]; then HAVE_CXX11=1 fi fi @@ -338,7 +338,7 @@ rm -f "$TMPDIR/adhoc.exe" > /dev/null 2>&1 if [[ (-z "$HAVE_GNU11") ]]; then HAVE_GNU11=0 "$CXX" -DCRYPTOPP_ADHOC_MAIN -std=gnu++11 adhoc.cpp -o "$TMPDIR/adhoc.exe" > /dev/null 2>&1 - if [[ "$?" -eq "0" ]]; then + if [[ "$?" -eq 0 ]]; then HAVE_GNU11=1 fi fi @@ -347,7 +347,7 @@ rm -f "$TMPDIR/adhoc.exe" > /dev/null 2>&1 if [[ (-z "$HAVE_CXX03") ]]; then HAVE_CXX03=0 "$CXX" -DCRYPTOPP_ADHOC_MAIN -std=c++03 adhoc.cpp -o "$TMPDIR/adhoc.exe" > /dev/null 2>&1 - if [[ "$?" -eq "0" ]]; then + if [[ "$?" -eq 0 ]]; then HAVE_CXX03=1 fi fi @@ -356,7 +356,7 @@ rm -f "$TMPDIR/adhoc.exe" > /dev/null 2>&1 if [[ (-z "$HAVE_GNU03") ]]; then HAVE_GNU03=0 "$CXX" -DCRYPTOPP_ADHOC_MAIN -std=gnu++03 adhoc.cpp -o "$TMPDIR/adhoc.exe" > /dev/null 2>&1 - if [[ "$?" -eq "0" ]]; then + if [[ "$?" -eq 0 ]]; then HAVE_GNU03=1 fi fi @@ -365,12 +365,12 @@ fi OPT_O0= rm -f "$TMPDIR/adhoc.exe" > /dev/null 2>&1 "$CXX" -DCRYPTOPP_ADHOC_MAIN -O0 adhoc.cpp -o "$TMPDIR/adhoc.exe" > /dev/null 2>&1 -if [[ ("$?" -eq "0") ]]; then +if [[ ("$?" -eq 0) ]]; then OPT_O0=-O0 else rm -f "$TMPDIR/adhoc.exe" > /dev/null 2>&1 "$CXX" -DCRYPTOPP_ADHOC_MAIN -xO0 adhoc.cpp -o "$TMPDIR/adhoc.exe" > /dev/null 2>&1 - if [[ ("$?" -eq "0") ]]; then + if [[ ("$?" -eq 0) ]]; then OPT_O0=-xO0 fi fi @@ -379,13 +379,13 @@ fi OPT_O1= rm -f "$TMPDIR/adhoc.exe" > /dev/null 2>&1 "$CXX" -DCRYPTOPP_ADHOC_MAIN -O1 adhoc.cpp -o "$TMPDIR/adhoc.exe" > /dev/null 2>&1 -if [[ ("$?" -eq "0") ]]; then +if [[ ("$?" -eq 0) ]]; then HAVE_O1=1 OPT_O1=-O1 else rm -f "$TMPDIR/adhoc.exe" > /dev/null 2>&1 "$CXX" -DCRYPTOPP_ADHOC_MAIN -xO1 adhoc.cpp -o "$TMPDIR/adhoc.exe" > /dev/null 2>&1 - if [[ ("$?" -eq "0") ]]; then + if [[ ("$?" -eq 0) ]]; then HAVE_O1=1 OPT_O1=-xO1 fi @@ -395,13 +395,13 @@ fi OPT_O2= rm -f "$TMPDIR/adhoc.exe" > /dev/null 2>&1 "$CXX" -DCRYPTOPP_ADHOC_MAIN -O2 adhoc.cpp -o "$TMPDIR/adhoc.exe" > /dev/null 2>&1 -if [[ ("$?" -eq "0") ]]; then +if [[ ("$?" -eq 0) ]]; then HAVE_O2=1 OPT_O2=-O2 else rm -f "$TMPDIR/adhoc.exe" > /dev/null 2>&1 "$CXX" -DCRYPTOPP_ADHOC_MAIN -xO2 adhoc.cpp -o "$TMPDIR/adhoc.exe" > /dev/null 2>&1 - if [[ ("$?" -eq "0") ]]; then + if [[ ("$?" -eq 0) ]]; then HAVE_O2=1 OPT_O2=-xO2 fi @@ -411,31 +411,31 @@ fi OPT_O3= rm -f "$TMPDIR/adhoc.exe" > /dev/null 2>&1 "$CXX" -DCRYPTOPP_ADHOC_MAIN -O3 adhoc.cpp -o "$TMPDIR/adhoc.exe" > /dev/null 2>&1 -if [[ ("$?" -eq "0") ]]; then +if [[ ("$?" -eq 0) ]]; then HAVE_O3=1 OPT_O3=-O3 else rm -f "$TMPDIR/adhoc.exe" > /dev/null 2>&1 "$CXX" -DCRYPTOPP_ADHOC_MAIN -xO3 adhoc.cpp -o "$TMPDIR/adhoc.exe" > /dev/null 2>&1 - if [[ ("$?" -eq "0") ]]; then + if [[ ("$?" -eq 0) ]]; then HAVE_O3=1 OPT_O3=-xO3 fi fi # Hit or miss, mostly hit -if [[ ( (-z "$HAVE_O5") && ("$CLANG_COMPILER" -eq "0") ) ]]; then +if [[ ( (-z "$HAVE_O5") && ("$CLANG_COMPILER" -eq 0) ) ]]; then HAVE_O5=0 OPT_O5= rm -f "$TMPDIR/adhoc.exe" > /dev/null 2>&1 "$CXX" -DCRYPTOPP_ADHOC_MAIN -O5 adhoc.cpp -o "$TMPDIR/adhoc.exe" > /dev/null 2>&1 - if [[ ("$?" -eq "0") ]]; then + if [[ ("$?" -eq 0) ]]; then HAVE_O5=1 OPT_O5=-O5 else rm -f "$TMPDIR/adhoc.exe" > /dev/null 2>&1 "$CXX" -DCRYPTOPP_ADHOC_MAIN -xO5 adhoc.cpp -o "$TMPDIR/adhoc.exe" > /dev/null 2>&1 - if [[ ("$?" -eq "0") ]]; then + if [[ ("$?" -eq 0) ]]; then HAVE_O5=1 OPT_O5=-xO5 fi @@ -448,7 +448,7 @@ if [[ (-z "$HAVE_OS") ]]; then OPT_OS= rm -f "$TMPDIR/adhoc.exe" > /dev/null 2>&1 "$CXX" -DCRYPTOPP_ADHOC_MAIN -Os adhoc.cpp -o "$TMPDIR/adhoc.exe" > /dev/null 2>&1 - if [[ ("$?" -eq "0") ]]; then + if [[ ("$?" -eq 0) ]]; then HAVE_OS=1 OPT_OS=-Os fi @@ -460,7 +460,7 @@ if [[ (-z "$HAVE_OFAST") ]]; then OPT_OFAST= rm -f "$TMPDIR/adhoc.exe" > /dev/null 2>&1 "$CXX" -DCRYPTOPP_ADHOC_MAIN -Ofast adhoc.cpp -o "$TMPDIR/adhoc.exe" > /dev/null 2>&1 - if [[ ("$?" -eq "0") ]]; then + if [[ ("$?" -eq 0) ]]; then HAVE_OFAST=1 OPT_OFAST=-Ofast fi @@ -470,12 +470,12 @@ fi OPT_G2= rm -f "$TMPDIR/adhoc.exe" > /dev/null 2>&1 "$CXX" -DCRYPTOPP_ADHOC_MAIN -g2 adhoc.cpp -o "$TMPDIR/adhoc.exe" > /dev/null 2>&1 -if [[ ("$?" -eq "0") ]]; then +if [[ ("$?" -eq 0) ]]; then OPT_G2=-g2 else rm -f "$TMPDIR/adhoc.exe" > /dev/null 2>&1 "$CXX" -DCRYPTOPP_ADHOC_MAIN -g adhoc.cpp -o "$TMPDIR/adhoc.exe" > /dev/null 2>&1 - if [[ ("$?" -eq "0") ]]; then + if [[ ("$?" -eq 0) ]]; then OPT_G2=-g fi fi @@ -484,12 +484,12 @@ fi OPT_G3= rm -f "$TMPDIR/adhoc.exe" > /dev/null 2>&1 "$CXX" -DCRYPTOPP_ADHOC_MAIN -g3 adhoc.cpp -o "$TMPDIR/adhoc.exe" > /dev/null 2>&1 -if [[ ("$?" -eq "0") ]]; then +if [[ ("$?" -eq 0) ]]; then OPT_G3=-g3 else rm -f "$TMPDIR/adhoc.exe" > /dev/null 2>&1 "$CXX" -DCRYPTOPP_ADHOC_MAIN -g adhoc.cpp -o "$TMPDIR/adhoc.exe" > /dev/null 2>&1 - if [[ ("$?" -eq "0") ]]; then + if [[ ("$?" -eq 0) ]]; then OPT_G3=-g fi fi @@ -500,10 +500,10 @@ rm -f "$TMPDIR/adhoc.exe" > /dev/null 2>&1 if [[ (-z "$HAVE_PIC") ]]; then HAVE_PIC=0 PIC_PROBLEMS=$("$CXX" -DCRYPTOPP_ADHOC_MAIN -fPIC adhoc.cpp -o "$TMPDIR/adhoc.exe" 2>&1 | "$GREP" -i -c -E '(warning|error)') - if [[ "$PIC_PROBLEMS" -eq "0" ]]; then + if [[ "$PIC_PROBLEMS" -eq 0 ]]; then HAVE_PIC=1 OPT_PIC=-fPIC - if [[ ("$XLC_COMPILER" -eq "1") ]]; then + if [[ ("$XLC_COMPILER" -eq 1) ]]; then OPT_PIC=-qpic fi fi @@ -514,9 +514,9 @@ rm -f "$TMPDIR/adhoc.exe" > /dev/null 2>&1 if [[ (-z "$HAVE_UBSAN") ]]; then HAVE_UBSAN=0 "$CXX" -DCRYPTOPP_ADHOC_MAIN -fsanitize=undefined adhoc.cpp -o "$TMPDIR/adhoc.exe" > /dev/null 2>&1 - if [[ ("$?" -eq "0") ]]; then + if [[ ("$?" -eq 0) ]]; then "$TMPDIR/adhoc.exe" > /dev/null 2>&1 - if [[ ("$?" -eq "0") ]]; then + if [[ ("$?" -eq 0) ]]; then HAVE_UBSAN=1 fi fi @@ -527,9 +527,9 @@ rm -f "$TMPDIR/adhoc.exe" > /dev/null 2>&1 if [[ (-z "$HAVE_ASAN") ]]; then HAVE_ASAN=0 "$CXX" -DCRYPTOPP_ADHOC_MAIN -fsanitize=address adhoc.cpp -o "$TMPDIR/adhoc.exe" > /dev/null 2>&1 - if [[ ("$?" -eq "0") ]]; then + if [[ ("$?" -eq 0) ]]; then "$TMPDIR/adhoc.exe" > /dev/null 2>&1 - if [[ ("$?" -eq "0") ]]; then + if [[ ("$?" -eq 0) ]]; then HAVE_ASAN=1 fi fi @@ -540,9 +540,9 @@ rm -f "$TMPDIR/adhoc.exe" > /dev/null 2>&1 if [[ (-z "$HAVE_BSAN") ]]; then HAVE_BSAN=0 "$CXX" -DCRYPTOPP_ADHOC_MAIN -fsanitize=bounds-strict adhoc.cpp -o "$TMPDIR/adhoc.exe" > /dev/null 2>&1 - if [[ ("$?" -eq "0") ]]; then + if [[ ("$?" -eq 0) ]]; then "$TMPDIR/adhoc.exe" > /dev/null 2>&1 - if [[ ("$?" -eq "0") ]]; then + if [[ ("$?" -eq 0) ]]; then HAVE_BSAN=1 fi fi @@ -553,9 +553,9 @@ rm -f "$TMPDIR/adhoc.exe" > /dev/null 2>&1 if [[ (-z "$HAVE_CET") ]]; then HAVE_CET=0 "$CXX" -DCRYPTOPP_ADHOC_MAIN -fcf-protection=full -mcet adhoc.cpp -o "$TMPDIR/adhoc.exe" > /dev/null 2>&1 - if [[ ("$?" -eq "0") ]]; then + if [[ ("$?" -eq 0) ]]; then "$TMPDIR/adhoc.exe" > /dev/null 2>&1 - if [[ ("$?" -eq "0") ]]; then + if [[ ("$?" -eq 0) ]]; then HAVE_CET=1 fi fi @@ -566,9 +566,9 @@ rm -f "$TMPDIR/adhoc.exe" > /dev/null 2>&1 if [[ (-z "$HAVE_REPTOLINE") ]]; then HAVE_REPTOLINE=0 "$CXX" -DCRYPTOPP_ADHOC_MAIN -mfunction-return=thunk -mindirect-branch=thunk adhoc.cpp -o "$TMPDIR/adhoc.exe" > /dev/null 2>&1 - if [[ ("$?" -eq "0") ]]; then + if [[ ("$?" -eq 0) ]]; then "$TMPDIR/adhoc.exe" > /dev/null 2>&1 - if [[ ("$?" -eq "0") ]]; then + if [[ ("$?" -eq 0) ]]; then HAVE_REPTOLINE=1 fi fi @@ -577,27 +577,27 @@ fi rm -f "$TMPDIR/adhoc.exe" > /dev/null 2>&1 if [[ (-z "$HAVE_OMP") ]]; then HAVE_OMP=0 - if [[ "$GCC_COMPILER" -ne "0" ]]; then + if [[ "$GCC_COMPILER" -ne 0 ]]; then "$CXX" -DCRYPTOPP_ADHOC_MAIN -fopenmp -O3 adhoc.cpp -o "$TMPDIR/adhoc.exe" > /dev/null 2>&1 - if [[ "$?" -eq "0" ]]; then + if [[ "$?" -eq 0 ]]; then HAVE_OMP=1 OMP_FLAGS=(-fopenmp -O3) fi - elif [[ "$INTEL_COMPILER" -ne "0" ]]; then + elif [[ "$INTEL_COMPILER" -ne 0 ]]; then "$CXX" -DCRYPTOPP_ADHOC_MAIN -openmp -O3 adhoc.cpp -o "$TMPDIR/adhoc.exe" > /dev/null 2>&1 - if [[ "$?" -eq "0" ]]; then + if [[ "$?" -eq 0 ]]; then HAVE_OMP=1 OMP_FLAGS=(-openmp -O3) fi - elif [[ "$CLANG_COMPILER" -ne "0" ]]; then + elif [[ "$CLANG_COMPILER" -ne 0 ]]; then "$CXX" -DCRYPTOPP_ADHOC_MAIN -fopenmp=libomp -O3 adhoc.cpp -o "$TMPDIR/adhoc.exe" > /dev/null 2>&1 - if [[ "$?" -eq "0" ]]; then + if [[ "$?" -eq 0 ]]; then HAVE_OMP=1 OMP_FLAGS=(-fopenmp=libomp -O3) fi - elif [[ "$SUN_COMPILER" -ne "0" ]]; then + elif [[ "$SUN_COMPILER" -ne 0 ]]; then "$CXX" -DCRYPTOPP_ADHOC_MAIN -xopenmp=parallel -xO3 adhoc.cpp -o "$TMPDIR/adhoc.exe" > /dev/null 2>&1 - if [[ "$?" -eq "0" ]]; then + if [[ "$?" -eq 0 ]]; then HAVE_OMP=1 OMP_FLAGS=(-xopenmp=parallel -xO3) fi @@ -607,9 +607,9 @@ fi rm -f "$TMPDIR/adhoc.exe" > /dev/null 2>&1 if [[ (-z "$HAVE_INTEL_MULTIARCH") ]]; then HAVE_INTEL_MULTIARCH=0 - if [[ ("$IS_DARWIN" -ne "0") && ("$IS_X86" -ne "0" || "$IS_X64" -ne "0") ]]; then + if [[ ("$IS_DARWIN" -ne 0) && ("$IS_X86" -ne 0 || "$IS_X64" -ne 0) ]]; then "$CXX" -DCRYPTOPP_ADHOC_MAIN -arch i386 -arch x86_64 adhoc.cpp -o "$TMPDIR/adhoc.exe" > /dev/null 2>&1 - if [[ "$?" -eq "0" ]]; then + if [[ "$?" -eq 0 ]]; then HAVE_INTEL_MULTIARCH=1 fi fi @@ -618,9 +618,9 @@ fi rm -f "$TMPDIR/adhoc.exe" > /dev/null 2>&1 if [[ (-z "$HAVE_PPC_MULTIARCH") ]]; then HAVE_PPC_MULTIARCH=0 - if [[ ("$IS_DARWIN" -ne "0") && ("$IS_PPC32" -ne "0" || "$IS_PPC64" -ne "0") ]]; then + if [[ ("$IS_DARWIN" -ne 0) && ("$IS_PPC32" -ne 0 || "$IS_PPC64" -ne 0) ]]; then "$CXX" -DCRYPTOPP_ADHOC_MAIN -arch ppc -arch ppc64 adhoc.cpp -o "$TMPDIR/adhoc.exe" > /dev/null 2>&1 - if [[ "$?" -eq "0" ]]; then + if [[ "$?" -eq 0 ]]; then HAVE_PPC_MULTIARCH=1 fi fi @@ -629,9 +629,9 @@ fi rm -f "$TMPDIR/adhoc.exe" > /dev/null 2>&1 if [[ (-z "$HAVE_X32") ]]; then HAVE_X32=0 - if [[ "$IS_X32" -ne "0" ]]; then + if [[ "$IS_X32" -ne 0 ]]; then "$CXX" -DCRYPTOPP_ADHOC_MAIN -mx32 adhoc.cpp -o "$TMPDIR/adhoc.exe" > /dev/null 2>&1 - if [[ "$?" -eq "0" ]]; then + if [[ "$?" -eq 0 ]]; then HAVE_X32=1 fi fi @@ -642,7 +642,7 @@ if [[ (-z "$HAVE_NATIVE_ARCH") ]]; then HAVE_NATIVE_ARCH=0 rm -f "$TMPDIR/adhoc.exe" > /dev/null 2>&1 "$CXX" -DCRYPTOPP_ADHOC_MAIN -march=native adhoc.cpp -o "$TMPDIR/adhoc.exe" > /dev/null 2>&1 - if [[ ("$?" -eq "0") ]]; then + if [[ ("$?" -eq 0) ]]; then HAVE_NATIVE_ARCH=1 fi fi @@ -654,9 +654,9 @@ if [[ (-z "$HAVE_LDGOLD") ]]; then ELF_FILE=$(command -v file 2>/dev/null) if [[ (! -z "$LD_GOLD") && (! -z "$ELF_FILE") ]]; then LD_GOLD=$(file "$LD_GOLD" | cut -d":" -f 2 | "$GREP" -i -c "elf") - if [[ ("$LD_GOLD" -ne "0") ]]; then + if [[ ("$LD_GOLD" -ne 0) ]]; then "$CXX" -DCRYPTOPP_ADHOC_MAIN -fuse-ld=gold adhoc.cpp -o "$TMPDIR/adhoc.exe" > /dev/null 2>&1 - if [[ "$?" -eq "0" ]]; then + if [[ "$?" -eq 0 ]]; then HAVE_LDGOLD=1 fi fi @@ -664,51 +664,51 @@ if [[ (-z "$HAVE_LDGOLD") ]]; then fi # ARMv7 and ARMv8, including NEON, CRC32 and Crypto extensions -if [[ ("$IS_ARM32" -ne "0" || "$IS_ARM64" -ne "0") ]]; then +if [[ ("$IS_ARM32" -ne 0 || "$IS_ARM64" -ne 0) ]]; then - if [[ (-z "$HAVE_ARMV7A" && "$IS_ARM32" -ne "0") ]]; then + if [[ (-z "$HAVE_ARMV7A" && "$IS_ARM32" -ne 0) ]]; then HAVE_ARMV7A=$(echo -n "$ARM_CPU_FLAGS" | "$GREP" -i -c 'neon') - if [[ ("$HAVE_ARMV7A" -gt "0") ]]; then HAVE_ARMV7A=1; fi + if [[ ("$HAVE_ARMV7A" -gt 0) ]]; then HAVE_ARMV7A=1; fi fi - if [[ (-z "$HAVE_ARMV8A" && ("$IS_ARM32" -ne "0" || "$IS_ARM64" -ne "0")) ]]; then + if [[ (-z "$HAVE_ARMV8A" && ("$IS_ARM32" -ne 0 || "$IS_ARM64" -ne 0)) ]]; then HAVE_ARMV8A=$(echo -n "$ARM_CPU_FLAGS" | "$GREP" -i -c -E '(asimd|crc|crypto)') - if [[ ("$HAVE_ARMV8A" -gt "0") ]]; then HAVE_ARMV8A=1; fi + if [[ ("$HAVE_ARMV8A" -gt 0) ]]; then HAVE_ARMV8A=1; fi fi if [[ (-z "$HAVE_ARM_VFPV3") ]]; then HAVE_ARM_VFPV3=$(echo -n "$ARM_CPU_FLAGS" | "$GREP" -i -c 'vfpv3') - if [[ ("$HAVE_ARM_VFPV3" -gt "0") ]]; then HAVE_ARM_VFPV3=1; fi + if [[ ("$HAVE_ARM_VFPV3" -gt 0) ]]; then HAVE_ARM_VFPV3=1; fi fi if [[ (-z "$HAVE_ARM_VFPV4") ]]; then HAVE_ARM_VFPV4=$(echo -n "$ARM_CPU_FLAGS" | "$GREP" -i -c 'vfpv4') - if [[ ("$HAVE_ARM_VFPV4" -gt "0") ]]; then HAVE_ARM_VFPV4=1; fi + if [[ ("$HAVE_ARM_VFPV4" -gt 0) ]]; then HAVE_ARM_VFPV4=1; fi fi if [[ (-z "$HAVE_ARM_VFPV5") ]]; then HAVE_ARM_VFPV5=$(echo -n "$ARM_CPU_FLAGS" | "$GREP" -i -c 'fpv5') - if [[ ("$HAVE_ARM_VFPV5" -gt "0") ]]; then HAVE_ARM_VFPV5=1; fi + if [[ ("$HAVE_ARM_VFPV5" -gt 0) ]]; then HAVE_ARM_VFPV5=1; fi fi if [[ (-z "$HAVE_ARM_VFPD32") ]]; then HAVE_ARM_VFPD32=$(echo -n "$ARM_CPU_FLAGS" | "$GREP" -i -c 'vfpd32') - if [[ ("$HAVE_ARM_VFPD32" -gt "0") ]]; then HAVE_ARM_VFPD32=1; fi + if [[ ("$HAVE_ARM_VFPD32" -gt 0) ]]; then HAVE_ARM_VFPD32=1; fi fi if [[ (-z "$HAVE_ARM_NEON") ]]; then HAVE_ARM_NEON=$(echo -n "$ARM_CPU_FLAGS" | "$GREP" -i -c 'neon') - if [[ ("$HAVE_ARM_NEON" -gt "0") ]]; then HAVE_ARM_NEON=1; fi + if [[ ("$HAVE_ARM_NEON" -gt 0) ]]; then HAVE_ARM_NEON=1; fi fi if [[ (-z "$HAVE_ARM_CRYPTO") ]]; then HAVE_ARM_CRYPTO=$(echo -n "$ARM_CPU_FLAGS" | "$GREP" -i -c -E '(aes|pmull|sha1|sha2)') - if [[ ("$HAVE_ARM_CRYPTO" -gt "0") ]]; then HAVE_ARM_CRYPTO=1; fi + if [[ ("$HAVE_ARM_CRYPTO" -gt 0) ]]; then HAVE_ARM_CRYPTO=1; fi fi if [[ (-z "$HAVE_ARM_CRC") ]]; then HAVE_ARM_CRC=$(echo -n "$ARM_CPU_FLAGS" | "$GREP" -i -c 'crc32') - if [[ ("$HAVE_ARM_CRC" -gt "0") ]]; then HAVE_ARM_CRC=1; fi + if [[ ("$HAVE_ARM_CRC" -gt 0) ]]; then HAVE_ARM_CRC=1; fi fi fi @@ -725,7 +725,7 @@ if [[ (-z "$HAVE_SYMBOLIZE") && (! -z "$ASAN_SYMBOLIZER_PATH") ]]; then if [[ $(command -v asan_symbolize 2>/dev/null) ]]; then HAVE_SYMBOLIZE=1 fi - if [[ (("$HAVE_SYMBOLIZE" -ne "0") && (-z "$ASAN_SYMBOLIZE")) ]]; then + if [[ (("$HAVE_SYMBOLIZE" -ne 0) && (-z "$ASAN_SYMBOLIZE")) ]]; then ASAN_SYMBOLIZE=asan_symbolize fi @@ -734,7 +734,7 @@ if [[ (-z "$HAVE_SYMBOLIZE") && (! -z "$ASAN_SYMBOLIZER_PATH") ]]; then if [[ $(command -v llvm-symbolizer 2>/dev/null) ]]; then LLVM_SYMBOLIZER_FOUND=1; fi - if [[ ("$LLVM_SYMBOLIZER_FOUND" -ne "0") ]]; then + if [[ ("$LLVM_SYMBOLIZER_FOUND" -ne 0) ]]; then ASAN_SYMBOLIZER_PATH=$(command -v llvm-symbolizer) export ASAN_SYMBOLIZER_PATH fi @@ -745,9 +745,9 @@ fi if [[ (-z "$HAVE_DISASS") ]]; then echo "int main(int argc, char* argv[]) {return 0;}" > "$TMPDIR/test.cc" "$CXX" "$TMPDIR/test.cc" -o "$TMPDIR/test.exe" > /dev/null 2>&1 - if [[ "$?" -eq "0" ]]; then + if [[ "$?" -eq 0 ]]; then "$DISASS" "${DISASSARGS[@]}" "$TMPDIR/test.exe" > /dev/null 2>&1 - if [[ "$?" -eq "0" ]]; then + if [[ "$?" -eq 0 ]]; then HAVE_DISASS=1 else HAVE_DISASS=0 @@ -756,15 +756,15 @@ if [[ (-z "$HAVE_DISASS") ]]; then fi # LD_LIBRARY_PATH and DYLD_LIBRARY_PATH -if [[ "$IS_LINUX" -ne "0" || "$IS_SOLARIS" -ne "0" || "$IS_BSD" -ne "0" ]]; then +if [[ "$IS_LINUX" -ne 0 || "$IS_SOLARIS" -ne 0 || "$IS_BSD" -ne 0 ]]; then HAVE_LD_LIBRARY_PATH=1 fi -if [[ "$IS_DARWIN" -ne "0" ]]; then +if [[ "$IS_DARWIN" -ne 0 ]]; then HAVE_DYLD_LIBRARY_PATH=1 fi # Fixup... GCC 4.8 ASAN produces false positives under ARM -if [[ ( ("$IS_ARM32" -ne "0" || "$IS_ARM64" -ne "0") && "$GCC_48_COMPILER" -ne "0") ]]; then +if [[ ( ("$IS_ARM32" -ne 0 || "$IS_ARM64" -ne 0) && "$GCC_48_COMPILER" -ne 0) ]]; then HAVE_ASAN=0 fi @@ -774,7 +774,7 @@ if [[ (-z "$WANT_BENCHMARKS") ]]; then fi # IBM XL C/C++ compiler fixups. Not sure why it fails to return non-0 on failure... -if [[ "$XLC_COMPILER" -ne "0" ]]; then +if [[ "$XLC_COMPILER" -ne 0 ]]; then HAVE_CXX03=0 HAVE_GNU03=0 HAVE_CXX11=0 @@ -798,63 +798,63 @@ fi # System information echo | tee -a "$TEST_RESULTS" -if [[ "$IS_LINUX" -ne "0" ]]; then +if [[ "$IS_LINUX" -ne 0 ]]; then echo "IS_LINUX: $IS_LINUX" | tee -a "$TEST_RESULTS" -elif [[ "$IS_CYGWIN" -ne "0" ]]; then +elif [[ "$IS_CYGWIN" -ne 0 ]]; then echo "IS_CYGWIN: $IS_CYGWIN" | tee -a "$TEST_RESULTS" -elif [[ "$IS_MINGW" -ne "0" ]]; then +elif [[ "$IS_MINGW" -ne 0 ]]; then echo "IS_MINGW: $IS_MINGW" | tee -a "$TEST_RESULTS" -elif [[ "$IS_SOLARIS" -ne "0" ]]; then +elif [[ "$IS_SOLARIS" -ne 0 ]]; then echo "IS_SOLARIS: $IS_SOLARIS" | tee -a "$TEST_RESULTS" -elif [[ "$IS_DARWIN" -ne "0" ]]; then +elif [[ "$IS_DARWIN" -ne 0 ]]; then echo "IS_DARWIN: $IS_DARWIN" | tee -a "$TEST_RESULTS" -elif [[ "$IS_AIX" -ne "0" ]]; then +elif [[ "$IS_AIX" -ne 0 ]]; then echo "IS_AIX: $IS_AIX" | tee -a "$TEST_RESULTS" fi -if [[ "$IS_PPC64" -ne "0" ]]; then +if [[ "$IS_PPC64" -ne 0 ]]; then echo "IS_PPC64: $IS_PPC64" | tee -a "$TEST_RESULTS" -elif [[ "$IS_PPC32" -ne "0" ]]; then +elif [[ "$IS_PPC32" -ne 0 ]]; then echo "IS_PPC32: $IS_PPC32" | tee -a "$TEST_RESULTS" fi -if [[ "$IS_ARM64" -ne "0" ]]; then +if [[ "$IS_ARM64" -ne 0 ]]; then echo "IS_ARM64: $IS_ARM64" | tee -a "$TEST_RESULTS" -elif [[ "$IS_ARM32" -ne "0" ]]; then +elif [[ "$IS_ARM32" -ne 0 ]]; then echo "IS_ARM32: $IS_ARM32" | tee -a "$TEST_RESULTS" fi -if [[ "$HAVE_ARMV7A" -ne "0" ]]; then +if [[ "$HAVE_ARMV7A" -ne 0 ]]; then echo "HAVE_ARMV7A: $HAVE_ARMV7A" | tee -a "$TEST_RESULTS" -elif [[ "$HAVE_ARMV8A" -ne "0" ]]; then +elif [[ "$HAVE_ARMV8A" -ne 0 ]]; then echo "HAVE_ARMV8A: $HAVE_ARMV8A" | tee -a "$TEST_RESULTS" fi -if [[ "$HAVE_ARM_NEON" -ne "0" ]]; then +if [[ "$HAVE_ARM_NEON" -ne 0 ]]; then echo "HAVE_ARM_NEON: $HAVE_ARM_NEON" | tee -a "$TEST_RESULTS" fi -if [[ "$HAVE_ARM_VFPD32" -ne "0" ]]; then +if [[ "$HAVE_ARM_VFPD32" -ne 0 ]]; then echo "HAVE_ARM_VFPD32: $HAVE_ARM_VFPD32" | tee -a "$TEST_RESULTS" fi -if [[ "$HAVE_ARM_VFPV3" -ne "0" ]]; then +if [[ "$HAVE_ARM_VFPV3" -ne 0 ]]; then echo "HAVE_ARM_VFPV3: $HAVE_ARM_VFPV3" | tee -a "$TEST_RESULTS" fi -if [[ "$HAVE_ARM_VFPV4" -ne "0" ]]; then +if [[ "$HAVE_ARM_VFPV4" -ne 0 ]]; then echo "HAVE_ARM_VFPV4: $HAVE_ARM_VFPV4" | tee -a "$TEST_RESULTS" fi -if [[ "$HAVE_ARM_CRC" -ne "0" ]]; then +if [[ "$HAVE_ARM_CRC" -ne 0 ]]; then echo "HAVE_ARM_CRC: $HAVE_ARM_CRC" | tee -a "$TEST_RESULTS" fi -if [[ "$HAVE_ARM_CRYPTO" -ne "0" ]]; then +if [[ "$HAVE_ARM_CRYPTO" -ne 0 ]]; then echo "HAVE_ARM_CRYPTO: $HAVE_ARM_CRYPTO" | tee -a "$TEST_RESULTS" fi -if [[ "$IS_X32" -ne "0" ]]; then +if [[ "$IS_X32" -ne 0 ]]; then echo "IS_X32: $IS_X32" | tee -a "$TEST_RESULTS" -elif [[ "$IS_X64" -ne "0" ]]; then +elif [[ "$IS_X64" -ne 0 ]]; then echo "IS_X64: $IS_X64" | tee -a "$TEST_RESULTS" -elif [[ "$IS_X86" -ne "0" ]]; then +elif [[ "$IS_X86" -ne 0 ]]; then echo "IS_X86: $IS_X86" | tee -a "$TEST_RESULTS" fi -if [[ "$IS_S390" -ne "0" ]]; then +if [[ "$IS_S390" -ne 0 ]]; then echo "IS_S390: $IS_S390" | tee -a "$TEST_RESULTS" fi @@ -864,7 +864,7 @@ echo "HAVE_CXX03: $HAVE_CXX03" | tee -a "$TEST_RESULTS" echo "HAVE_GNU03: $HAVE_GNU03" | tee -a "$TEST_RESULTS" echo "HAVE_CXX11: $HAVE_CXX11" | tee -a "$TEST_RESULTS" echo "HAVE_GNU11: $HAVE_GNU11" | tee -a "$TEST_RESULTS" -if [[ ("$HAVE_CXX14" -ne "0" || "$HAVE_CXX17" -ne "0" || "$HAVE_CXX20" -ne "0" || "$HAVE_GNU14" -ne "0" || "$HAVE_GNU17" -ne "0" || "$HAVE_GNU20" -ne "0") ]]; then +if [[ ("$HAVE_CXX14" -ne 0 || "$HAVE_CXX17" -ne 0 || "$HAVE_CXX20" -ne 0 || "$HAVE_GNU14" -ne 0 || "$HAVE_GNU17" -ne 0 || "$HAVE_GNU20" -ne 0) ]]; then echo "HAVE_CXX14: $HAVE_CXX14" | tee -a "$TEST_RESULTS" echo "HAVE_GNU14: $HAVE_GNU14" | tee -a "$TEST_RESULTS" echo "HAVE_CXX17: $HAVE_CXX17" | tee -a "$TEST_RESULTS" @@ -872,10 +872,10 @@ if [[ ("$HAVE_CXX14" -ne "0" || "$HAVE_CXX17" -ne "0" || "$HAVE_CXX20" -ne "0" | echo "HAVE_CXX20: $HAVE_CXX20" | tee -a "$TEST_RESULTS" echo "HAVE_GNU20: $HAVE_GNU20" | tee -a "$TEST_RESULTS" fi -if [[ "$HAVE_LDGOLD" -ne "0" ]]; then +if [[ "$HAVE_LDGOLD" -ne 0 ]]; then echo "HAVE_LDGOLD: $HAVE_LDGOLD" | tee -a "$TEST_RESULTS" fi -if [[ "$HAVE_UNIFIED_ASM" -ne "0" ]]; then +if [[ "$HAVE_UNIFIED_ASM" -ne 0 ]]; then echo "HAVE_UNIFIED_ASM: $HAVE_UNIFIED_ASM" | tee -a "$TEST_RESULTS" fi @@ -891,9 +891,9 @@ fi # Tools available for testing echo | tee -a "$TEST_RESULTS" -if [[ ((! -z "$HAVE_OMP") && ("$HAVE_OMP" -ne "0")) ]]; then echo "HAVE_OMP: $HAVE_OMP" | tee -a "$TEST_RESULTS"; fi +if [[ ((! -z "$HAVE_OMP") && ("$HAVE_OMP" -ne 0)) ]]; then echo "HAVE_OMP: $HAVE_OMP" | tee -a "$TEST_RESULTS"; fi echo "HAVE_ASAN: $HAVE_ASAN" | tee -a "$TEST_RESULTS" -if [[ ("$HAVE_ASAN" -ne "0") && (! -z "$ASAN_SYMBOLIZE") ]]; then echo "ASAN_SYMBOLIZE: $ASAN_SYMBOLIZE" | tee -a "$TEST_RESULTS"; fi +if [[ ("$HAVE_ASAN" -ne 0) && (! -z "$ASAN_SYMBOLIZE") ]]; then echo "ASAN_SYMBOLIZE: $ASAN_SYMBOLIZE" | tee -a "$TEST_RESULTS"; fi echo "HAVE_UBSAN: $HAVE_UBSAN" | tee -a "$TEST_RESULTS" echo "HAVE_BSAN: $HAVE_BSAN" | tee -a "$TEST_RESULTS" echo "HAVE_CET: $HAVE_CET" | tee -a "$TEST_RESULTS" @@ -901,10 +901,10 @@ echo "HAVE_REPTOLINE: $HAVE_REPTOLINE" | tee -a "$TEST_RESULTS" echo "HAVE_VALGRIND: $HAVE_VALGRIND" | tee -a "$TEST_RESULTS" # HAVE_REPTOLINE is for Meltdown and Spectre option testing, called Reptoline (play on trampoline) -if [[ "$HAVE_INTEL_MULTIARCH" -ne "0" ]]; then +if [[ "$HAVE_INTEL_MULTIARCH" -ne 0 ]]; then echo "HAVE_INTEL_MULTIARCH: $HAVE_INTEL_MULTIARCH" | tee -a "$TEST_RESULTS" fi -if [[ "$HAVE_PPC_MULTIARCH" -ne "0" ]]; then +if [[ "$HAVE_PPC_MULTIARCH" -ne 0 ]]; then echo "HAVE_PPC_MULTIARCH: $HAVE_PPC_MULTIARCH" | tee -a "$TEST_RESULTS" fi @@ -916,19 +916,19 @@ fi CPU_COUNT=1 MEM_SIZE=512 -if [[ ("$IS_SPARC" -ne "0") && ("$IS_LINUX" -ne "0") ]]; then +if [[ ("$IS_SPARC" -ne 0) && ("$IS_LINUX" -ne 0) ]]; then CPU_COUNT="$($GREP -E 'CPU.*' /proc/cpuinfo | cut -f 1 -d ':' | $SED 's|CPU||g' | sort -n | tail -1)" MEM_SIZE="$($GREP "MemTotal" < /proc/meminfo | $AWK '{print int($2/1024)}')" elif [[ (-e "/proc/cpuinfo") && (-e "/proc/meminfo") ]]; then CPU_COUNT="$($GREP -c -E "^processor" < /proc/cpuinfo)" MEM_SIZE="$($GREP "MemTotal" < /proc/meminfo | $AWK '{print int($2/1024)}')" -elif [[ "$IS_DARWIN" -ne "0" ]]; then +elif [[ "$IS_DARWIN" -ne 0 ]]; then CPU_COUNT="$(sysctl -a 2>&1 | $GREP "hw.availcpu" | $AWK '{print $3; exit}')" MEM_SIZE="$(sysctl -a 2>&1 | $GREP "hw.memsize" | $AWK '{print int($3/1024/1024); exit;}')" -elif [[ "$IS_SOLARIS" -ne "0" ]]; then +elif [[ "$IS_SOLARIS" -ne 0 ]]; then CPU_COUNT="$(psrinfo 2>/dev/null | wc -l | $AWK '{print $1}')" MEM_SIZE="$(prtconf 2>/dev/null | $GREP "Memory" | $AWK '{print int($3)}')" -elif [[ "$IS_AIX" -ne "0" ]]; then +elif [[ "$IS_AIX" -ne 0 ]]; then CPU_COUNT="$(bindprocessor -q 2>/dev/null | cut -f 2 -d ":" | wc -w | $AWK '{print $1}')" MEM_SIZE="$(prtconf -m 2>/dev/null | $GREP "MB" | $AWK '{print int($3); exit;}')" fi @@ -942,13 +942,13 @@ elif [[ (-e "/proc/cpuinfo") ]]; then CPU_FREQ="$($GREP 'MHz' < /proc/cpuinfo | $AWK '{print $4; exit}')" if [[ -z "$CPU_FREQ" ]]; then CPU_FREQ=512; fi CPU_FREQ="$(echo $CPU_FREQ | $AWK '{print $0/1024}')" -elif [[ "$IS_DARWIN" -ne "0" ]]; then +elif [[ "$IS_DARWIN" -ne 0 ]]; then CPU_FREQ="$(sysctl -a 2>&1 | $GREP "hw.cpufrequency" | $AWK '{print ($3); exit;}')" CPU_FREQ="$(echo $CPU_FREQ | $AWK '{print $0/1024/1024/1024}')" -elif [[ "$IS_SOLARIS" -ne "0" ]]; then +elif [[ "$IS_SOLARIS" -ne 0 ]]; then CPU_FREQ="$(psrinfo -v 2>/dev/null | $GREP "MHz" | $AWK '{print $6; exit;}')" CPU_FREQ="$(echo $CPU_FREQ | $AWK '{print $0/1024}')" -elif [[ "$IS_AIX" -ne "0" ]]; then +elif [[ "$IS_AIX" -ne 0 ]]; then CPU_FREQ="$(prtconf -s 2>/dev/null | $GREP "MHz" | $AWK '{print $4; exit;}')" CPU_FREQ="$(echo $CPU_FREQ | $AWK '{print $0/1024}')" fi @@ -956,14 +956,17 @@ fi # Some ARM devboards cannot use 'make -j N', even with multiple cores and RAM # An 8-core Cubietruck Plus with 2GB RAM experiences OOM kills with '-j 2'. HAVE_SWAP=1 -if [[ "$IS_LINUX" -ne "0" ]]; then - if [[ (-e "/proc/meminfo") ]]; then - SWAP_SIZE="$($GREP 'SwapTotal' < /proc/meminfo | "$AWK" '{print $2}')" - if [[ "$SWAP_SIZE" -eq "0" ]]; then +if [[ "$IS_LINUX" -ne 0 ]]; then + # If memory is small, then ensure swap space exists + if [[ "$MEM_SIZE" -lt 4096 ]]; then + if [[ (-e "/proc/meminfo") ]]; then + SWAP_SIZE="$($GREP 'SwapTotal' < /proc/meminfo | "$AWK" '{print $2}')" + if [[ "$SWAP_SIZE" -eq 0 ]]; then + HAVE_SWAP=0 + fi + else HAVE_SWAP=0 fi - else - HAVE_SWAP=0 fi fi @@ -972,8 +975,8 @@ echo "CPU: $CPU_COUNT logical" | tee -a "$TEST_RESULTS" echo "FREQ: $CPU_FREQ GHz" | tee -a "$TEST_RESULTS" echo "MEM: $MEM_SIZE MB" | tee -a "$TEST_RESULTS" -if [[ ("$CPU_COUNT" -ge "2" && "$MEM_SIZE" -ge "1280" && "$HAVE_SWAP" -ne "0") ]]; then - if [[ ("$WANT_NICE" -eq "1") ]]; then +if [[ ("$CPU_COUNT" -ge 2 && "$MEM_SIZE" -ge 1280 && "$HAVE_SWAP" -ne 0) ]]; then + if [[ ("$WANT_NICE" -eq 1) ]]; then CPU_COUNT=$(echo -n "$CPU_COUNT 2" | "$AWK" '{print int($1/$2)}') fi MAKEARGS=(-j "$CPU_COUNT") @@ -983,7 +986,7 @@ fi ############################################ GIT_REPO=$(git branch 2>&1 | "$GREP" -v "fatal" | wc -l | "$AWK" '{print $1; exit;}') -if [[ "$GIT_REPO" -ne "0" ]]; then +if [[ "$GIT_REPO" -ne 0 ]]; then GIT_BRANCH=$(git rev-parse --abbrev-ref HEAD 2>/dev/null) GIT_HASH=$(git rev-parse HEAD 2>/dev/null | cut -c 1-16) fi @@ -993,9 +996,9 @@ if [[ ! -z "$GIT_BRANCH" ]]; then echo "Git branch: $GIT_BRANCH (commit $GIT_HASH)" | tee -a "$TEST_RESULTS" fi -if [[ ("$SUN_COMPILER" -ne "0") ]]; then +if [[ ("$SUN_COMPILER" -ne 0) ]]; then "$CXX" -V 2>&1 | "$SED" 's|CC:|Compiler:|g' | head -1 | tee -a "$TEST_RESULTS" -elif [[ ("$XLC_COMPILER" -ne "0") ]]; then +elif [[ ("$XLC_COMPILER" -ne 0) ]]; then echo "Compiler: $($CXX -qversion | head -1)" | tee -a "$TEST_RESULTS" else echo "Compiler: $($CXX --version | head -1)" | tee -a "$TEST_RESULTS" @@ -1003,7 +1006,7 @@ fi CXX_PATH=$(command -v "$CXX" 2>/dev/null) CXX_SYMLINK=$(ls -l "$CXX_PATH" 2>/dev/null | "$GREP" -c '\->' | "$AWK" '{print $1}') -if [[ ("$CXX_SYMLINK" -ne "0") ]]; then CXX_PATH="$CXX_PATH (symlinked)"; fi +if [[ ("$CXX_SYMLINK" -ne 0) ]]; then CXX_PATH="$CXX_PATH (symlinked)"; fi echo "Pathname: $CXX_PATH" | tee -a "$TEST_RESULTS" ############################################ @@ -1014,14 +1017,14 @@ RELEASE_CXXFLAGS="-DNDEBUG $OPT_G2 $OPT_O3" VALGRIND_CXXFLAGS="-DNDEBUG $OPT_G3 $OPT_O1" WARNING_CXXFLAGS=() -if [[ ("$GCC_COMPILER" -ne "0" || "$CLANG_COMPILER" -ne "0") ]]; then +if [[ ("$GCC_COMPILER" -ne 0 || "$CLANG_COMPILER" -ne 0) ]]; then WARNING_CXXFLAGS+=("-Wall" "-Wextra" "-Wno-unknown-pragmas" "-Wstrict-overflow") WARNING_CXXFLAGS+=("-Wcast-align" "-Wwrite-strings" "-Wformat=2" "-Wformat-security") fi # On PowerPC we test the original Altivec load and store with unaligned data. # Modern compilers generate a warning and recommend the new loads and stores. -if [[ ("$GCC_COMPILER" -ne "0" && ("$IS_PPC32" -ne "0" || "$IS_PPC64" -ne "0") ) ]]; then +if [[ ("$GCC_COMPILER" -ne 0 && ("$IS_PPC32" -ne 0 || "$IS_PPC64" -ne 0) ) ]]; then WARNING_CXXFLAGS+=("-Wno-deprecated") fi @@ -1057,26 +1060,26 @@ if true; then # Search for headers. Filter out C++ abd Doxygen comments. COUNT=$(cat ./*.h ./*.cpp | "$GREP" -v '//' | "$GREP" -c -E '(assert.h|cassert)') - if [[ "$COUNT" -ne "0" ]]; then + if [[ "$COUNT" -ne 0 ]]; then FAILED=1 echo "FAILED: found Posix assert headers" | tee -a "$TEST_RESULTS" fi # Search for asserts. Filter out C++, Doxygen comments and static_assert. COUNT=$(cat ./*.h ./*.cpp | "$GREP" -v -E '//|_assert' | "$GREP" -c -E 'assert[[:space:]]*\(') - if [[ "$COUNT" -ne "0" ]]; then + if [[ "$COUNT" -ne 0 ]]; then FAILED=1 echo "FAILED: found use of Posix assert" | tee -a "$TEST_RESULTS" fi # Filter out C++ and Doxygen comments. COUNT=$(cat ./*.h ./*.cpp | "$GREP" -v '//' | "$GREP" -c 'NDEBUG') - if [[ "$COUNT" -ne "0" ]]; then + if [[ "$COUNT" -ne 0 ]]; then FAILED=1 echo "FAILED: found use of Posix NDEBUG" | tee -a "$TEST_RESULTS" fi - if [[ ("$FAILED" -eq "0") ]]; then + if [[ ("$FAILED" -eq 0) ]]; then echo "Verified no Posix NDEBUG or assert" | tee -a "$TEST_RESULTS" fi fi @@ -1096,32 +1099,32 @@ if true; then # If this fires, then use the library's STDMIN(a,b) or (std::min)(a, b); COUNT=$(cat ./*.h ./*.cpp | "$GREP" -v '//' | "$GREP" -c -E 'std::min[[:space:]]*\(') - if [[ "$COUNT" -ne "0" ]]; then + if [[ "$COUNT" -ne 0 ]]; then FAILED=1 echo "FAILED: found std::min" | tee -a "$TEST_RESULTS" fi # If this fires, then use the library's STDMAX(a,b) or (std::max)(a, b); COUNT=$(cat ./*.h ./*.cpp | "$GREP" -v '//' | "$GREP" -c -E 'std::max[[:space:]]*\(') - if [[ "$COUNT" -ne "0" ]]; then + if [[ "$COUNT" -ne 0 ]]; then FAILED=1 echo "FAILED: found std::max" | tee -a "$TEST_RESULTS" fi - if [[ ("$FAILED" -eq "0") ]]; then + if [[ ("$FAILED" -eq 0) ]]; then echo "Verified std::min and std::max" | tee -a "$TEST_RESULTS" fi fi ############################################ # X86 code generation tests -if [[ ("$HAVE_DISASS" -ne "0" && ("$IS_X86" -ne "0" || "$IS_X64" -ne "0")) ]]; then +if [[ ("$HAVE_DISASS" -ne 0 && ("$IS_X86" -ne 0 || "$IS_X64" -ne 0)) ]]; then ############################################ # X86 rotate immediate code generation X86_ROTATE_IMM=1 - if [[ ("$X86_ROTATE_IMM" -ne "0") ]]; then + if [[ ("$X86_ROTATE_IMM" -ne 0) ]]; then echo echo "************************************" | tee -a "$TEST_RESULTS" echo "Testing: X86 rotate immediate code generation" | tee -a "$TEST_RESULTS" @@ -1136,27 +1139,27 @@ if [[ ("$HAVE_DISASS" -ne "0" && ("$IS_X86" -ne "0" || "$IS_X64" -ne "0")) ]]; t X86_SSE2=$(echo -n "$X86_CPU_FLAGS" | "$GREP" -i -c sse2) X86_SHA256_HASH_BLOCKS=$(echo -n "$DISASS_TEXT" | "$GREP" -c 'SHA256_HashMultipleBlocks_SSE2') - if [[ ("$X86_SHA256_HASH_BLOCKS" -ne "0") ]]; then + if [[ ("$X86_SHA256_HASH_BLOCKS" -ne 0) ]]; then COUNT=$(echo -n "$DISASS_TEXT" | "$GREP" -i -c -E '(rol.*0x|ror.*0x)') - if [[ ("$COUNT" -le "250") ]]; then + if [[ ("$COUNT" -le 250) ]]; then FAILED=1 echo "ERROR: failed to generate rotate immediate instruction (SHA256_HashMultipleBlocks_SSE2)" | tee -a "$TEST_RESULTS" fi else COUNT=$(echo -n "$DISASS_TEXT" | "$GREP" -i -c -E '(rol.*0x|ror.*0x)') - if [[ ("$COUNT" -le "500") ]]; then + if [[ ("$COUNT" -le 500) ]]; then FAILED=1 echo "ERROR: failed to generate rotate immediate instruction" | tee -a "$TEST_RESULTS" fi fi - if [[ ("$X86_SSE2" -ne "0" && "$X86_SHA256_HASH_BLOCKS" -eq "0") ]]; then + if [[ ("$X86_SSE2" -ne 0 && "$X86_SHA256_HASH_BLOCKS" -eq 0) ]]; then echo "ERROR: failed to use SHA256_HashMultipleBlocks_SSE2" | tee -a "$TEST_RESULTS" fi - if [[ ("$FAILED" -eq "0" && "$X86_SHA256_HASH_BLOCKS" -ne "0") ]]; then + if [[ ("$FAILED" -eq 0 && "$X86_SHA256_HASH_BLOCKS" -ne 0) ]]; then echo "Verified rotate immediate machine instructions (SHA256_HashMultipleBlocks_SSE2)" | tee -a "$TEST_RESULTS" - elif [[ ("$FAILED" -eq "0") ]]; then + elif [[ ("$FAILED" -eq 0) ]]; then echo "Verified rotate immediate machine instructions" | tee -a "$TEST_RESULTS" fi fi @@ -1165,11 +1168,11 @@ if [[ ("$HAVE_DISASS" -ne "0" && ("$IS_X86" -ne "0" || "$IS_X64" -ne "0")) ]]; t # Test CRC-32C code generation "$CXX" -DCRYPTOPP_ADHOC_MAIN -msse4.2 adhoc.cpp -o "$TMPDIR/adhoc.exe" > /dev/null 2>&1 - if [[ "$?" -eq "0" ]]; then + if [[ "$?" -eq 0 ]]; then X86_CRC32=1 fi - if [[ ("$X86_CRC32" -ne "0") ]]; then + if [[ ("$X86_CRC32" -ne 0) ]]; then echo echo "************************************" | tee -a "$TEST_RESULTS" echo "Testing: X86 CRC32 code generation" | tee -a "$TEST_RESULTS" @@ -1185,18 +1188,18 @@ if [[ ("$HAVE_DISASS" -ne "0" && ("$IS_X86" -ne "0" || "$IS_X64" -ne "0")) ]]; t DISASS_TEXT=$("$DISASS" "${DISASSARGS[@]}" "$OBJFILE" 2>/dev/null) COUNT=$(echo -n "$DISASS_TEXT" | "$GREP" -i -c crc32b) - if [[ ("$COUNT" -eq "0") ]]; then + if [[ ("$COUNT" -eq 0) ]]; then FAILED=1 echo "ERROR: failed to generate crc32b instruction" | tee -a "$TEST_RESULTS" fi COUNT=$(echo -n "$DISASS_TEXT" | "$GREP" -i -c crc32l) - if [[ ("$COUNT" -eq "0") ]]; then + if [[ ("$COUNT" -eq 0) ]]; then FAILED=1 echo "ERROR: failed to generate crc32l instruction" | tee -a "$TEST_RESULTS" fi - if [[ ("$FAILED" -eq "0") ]]; then + if [[ ("$FAILED" -eq 0) ]]; then echo "Verified crc32b and crc32l machine instructions" | tee -a "$TEST_RESULTS" fi fi @@ -1205,11 +1208,11 @@ if [[ ("$HAVE_DISASS" -ne "0" && ("$IS_X86" -ne "0" || "$IS_X64" -ne "0")) ]]; t # Test AES-NI code generation "$CXX" -DCRYPTOPP_ADHOC_MAIN -maes adhoc.cpp -o "$TMPDIR/adhoc.exe" > /dev/null 2>&1 - if [[ "$?" -eq "0" ]]; then + if [[ "$?" -eq 0 ]]; then X86_AESNI=1 fi - if [[ ("$X86_AESNI" -ne "0") ]]; then + if [[ ("$X86_AESNI" -ne 0) ]]; then echo echo "************************************" | tee -a "$TEST_RESULTS" echo "Testing: X86 AES-NI code generation" | tee -a "$TEST_RESULTS" @@ -1225,42 +1228,42 @@ if [[ ("$HAVE_DISASS" -ne "0" && ("$IS_X86" -ne "0" || "$IS_X64" -ne "0")) ]]; t DISASS_TEXT=$("$DISASS" "${DISASSARGS[@]}" "$OBJFILE" 2>/dev/null) COUNT=$(echo -n "$DISASS_TEXT" | "$GREP" -i -c aesenc) - if [[ ("$COUNT" -eq "0") ]]; then + if [[ ("$COUNT" -eq 0) ]]; then FAILED=1 echo "ERROR: failed to generate aesenc instruction" | tee -a "$TEST_RESULTS" fi COUNT=$(echo -n "$DISASS_TEXT" | "$GREP" -i -c aesenclast) - if [[ ("$COUNT" -eq "0") ]]; then + if [[ ("$COUNT" -eq 0) ]]; then FAILED=1 echo "ERROR: failed to generate aesenclast instruction" | tee -a "$TEST_RESULTS" fi COUNT=$(echo -n "$DISASS_TEXT" | "$GREP" -i -c aesdec) - if [[ ("$COUNT" -eq "0") ]]; then + if [[ ("$COUNT" -eq 0) ]]; then FAILED=1 echo "ERROR: failed to generate aesdec instruction" | tee -a "$TEST_RESULTS" fi COUNT=$(echo -n "$DISASS_TEXT" | "$GREP" -i -c aesdeclast) - if [[ ("$COUNT" -eq "0") ]]; then + if [[ ("$COUNT" -eq 0) ]]; then FAILED=1 echo "ERROR: failed to generate aesdeclast instruction" | tee -a "$TEST_RESULTS" fi COUNT=$(echo -n "$DISASS_TEXT" | "$GREP" -i -c aesimc) - if [[ ("$COUNT" -eq "0") ]]; then + if [[ ("$COUNT" -eq 0) ]]; then FAILED=1 echo "ERROR: failed to generate aesimc instruction" | tee -a "$TEST_RESULTS" fi COUNT=$(echo -n "$DISASS_TEXT" | "$GREP" -i -c aeskeygenassist) - if [[ ("$COUNT" -eq "0") ]]; then + if [[ ("$COUNT" -eq 0) ]]; then FAILED=1 echo "ERROR: failed to generate aeskeygenassist instruction" | tee -a "$TEST_RESULTS" fi - if [[ ("$FAILED" -eq "0") ]]; then + if [[ ("$FAILED" -eq 0) ]]; then echo "Verified aesenc, aesenclast, aesdec, aesdeclast, aesimc, aeskeygenassist machine instructions" | tee -a "$TEST_RESULTS" fi fi @@ -1269,11 +1272,11 @@ if [[ ("$HAVE_DISASS" -ne "0" && ("$IS_X86" -ne "0" || "$IS_X64" -ne "0")) ]]; t # X86 carryless multiply code generation "$CXX" -DCRYPTOPP_ADHOC_MAIN -mpclmul adhoc.cpp -o "$TMPDIR/adhoc.exe" > /dev/null 2>&1 - if [[ "$?" -eq "0" ]]; then + if [[ "$?" -eq 0 ]]; then X86_PCLMUL=1 fi - if [[ ("$X86_PCLMUL" -ne "0") ]]; then + if [[ ("$X86_PCLMUL" -ne 0) ]]; then echo echo "************************************" | tee -a "$TEST_RESULTS" echo "Testing: X86 carryless multiply code generation" | tee -a "$TEST_RESULTS" @@ -1289,18 +1292,18 @@ if [[ ("$HAVE_DISASS" -ne "0" && ("$IS_X86" -ne "0" || "$IS_X64" -ne "0")) ]]; t DISASS_TEXT=$("$DISASS" "${DISASSARGS[@]}" "$OBJFILE" 2>/dev/null) COUNT=$(echo -n "$DISASS_TEXT" | "$GREP" -i -c -E '(pclmulqdq|pclmullqhq|vpclmulqdq)') - if [[ ("$COUNT" -eq "0") ]]; then + if [[ ("$COUNT" -eq 0) ]]; then FAILED=1 echo "ERROR: failed to generate pclmullqhq instruction" | tee -a "$TEST_RESULTS" fi COUNT=$(echo -n "$DISASS_TEXT" | "$GREP" -i -c -E '(pclmulqdq|pclmullqlq|vpclmulqdq)') - if [[ ("$COUNT" -eq "0") ]]; then + if [[ ("$COUNT" -eq 0) ]]; then FAILED=1 echo "ERROR: failed to generate pclmullqlq instruction" | tee -a "$TEST_RESULTS" fi - if [[ ("$FAILED" -eq "0") ]]; then + if [[ ("$FAILED" -eq 0) ]]; then echo "Verified pclmullqhq and pclmullqlq machine instructions" | tee -a "$TEST_RESULTS" fi fi @@ -1309,15 +1312,15 @@ if [[ ("$HAVE_DISASS" -ne "0" && ("$IS_X86" -ne "0" || "$IS_X64" -ne "0")) ]]; t # Test RDRAND and RDSEED code generation "$CXX" -DCRYPTOPP_ADHOC_MAIN -mrdrnd adhoc.cpp -o "$TMPDIR/adhoc.exe" > /dev/null 2>&1 - if [[ "$?" -eq "0" ]]; then + if [[ "$?" -eq 0 ]]; then X86_RDRAND=1 fi "$CXX" -DCRYPTOPP_ADHOC_MAIN -mrdseed adhoc.cpp -o "$TMPDIR/adhoc.exe" > /dev/null 2>&1 - if [[ "$?" -eq "0" ]]; then + if [[ "$?" -eq 0 ]]; then X86_RDSEED=1 fi - if [[ ("$X86_RDRAND" -ne "0" || "$X86_RDSEED" -ne "0") ]]; then + if [[ ("$X86_RDRAND" -ne 0 || "$X86_RDSEED" -ne 0) ]]; then echo echo "************************************" | tee -a "$TEST_RESULTS" echo "Testing: X86 RDRAND and RDSEED code generation" | tee -a "$TEST_RESULTS" @@ -1332,23 +1335,23 @@ if [[ ("$HAVE_DISASS" -ne "0" && ("$IS_X86" -ne "0" || "$IS_X64" -ne "0")) ]]; t FAILED=0 DISASS_TEXT=$("$DISASS" "${DISASSARGS[@]}" "$OBJFILE" 2>/dev/null) - if [[ "$X86_RDRAND" -ne "0" ]]; then + if [[ "$X86_RDRAND" -ne 0 ]]; then COUNT=$(echo -n "$DISASS_TEXT" | "$GREP" -i -c rdrand) - if [[ ("$COUNT" -eq "0") ]]; then + if [[ ("$COUNT" -eq 0) ]]; then FAILED=1 echo "ERROR: failed to generate rdrand instruction" | tee -a "$TEST_RESULTS" fi fi - if [[ "$X86_RDSEED" -ne "0" ]]; then + if [[ "$X86_RDSEED" -ne 0 ]]; then COUNT=$(echo -n "$DISASS_TEXT" | "$GREP" -i -c rdseed) - if [[ ("$COUNT" -eq "0") ]]; then + if [[ ("$COUNT" -eq 0) ]]; then FAILED=1 echo "ERROR: failed to generate rdseed instruction" | tee -a "$TEST_RESULTS" fi fi - if [[ ("$FAILED" -eq "0") ]]; then + if [[ ("$FAILED" -eq 0) ]]; then echo "Verified rdrand and rdseed machine instructions" | tee -a "$TEST_RESULTS" fi fi @@ -1357,11 +1360,11 @@ if [[ ("$HAVE_DISASS" -ne "0" && ("$IS_X86" -ne "0" || "$IS_X64" -ne "0")) ]]; t # X86 SHA code generation "$CXX" -DCRYPTOPP_ADHOC_MAIN -msha adhoc.cpp -o "$TMPDIR/adhoc.exe" > /dev/null 2>&1 - if [[ "$?" -eq "0" ]]; then + if [[ "$?" -eq 0 ]]; then X86_SHA=1 fi - if [[ ("$X86_SHA" -ne "0") ]]; then + if [[ ("$X86_SHA" -ne 0) ]]; then echo echo "************************************" | tee -a "$TEST_RESULTS" echo "Testing: X86 SHA code generation" | tee -a "$TEST_RESULTS" @@ -1377,48 +1380,48 @@ if [[ ("$HAVE_DISASS" -ne "0" && ("$IS_X86" -ne "0" || "$IS_X64" -ne "0")) ]]; t DISASS_TEXT=$("$DISASS" "${DISASSARGS[@]}" "$OBJFILE" 2>/dev/null) COUNT=$(echo -n "$DISASS_TEXT" | "$GREP" -i -c sha1rnds4) - if [[ ("$COUNT" -eq "0") ]]; then + if [[ ("$COUNT" -eq 0) ]]; then FAILED=1 echo "ERROR: failed to generate sha1rnds4 instruction" | tee -a "$TEST_RESULTS" fi COUNT=$(echo -n "$DISASS_TEXT" | "$GREP" -i -c sha1nexte) - if [[ ("$COUNT" -eq "0") ]]; then + if [[ ("$COUNT" -eq 0) ]]; then FAILED=1 echo "ERROR: failed to generate sha1nexte instruction" | tee -a "$TEST_RESULTS" fi COUNT=$(echo -n "$DISASS_TEXT" | "$GREP" -i -c sha1msg1) - if [[ ("$COUNT" -eq "0") ]]; then + if [[ ("$COUNT" -eq 0) ]]; then FAILED=1 echo "ERROR: failed to generate sha1msg1 instruction" | tee -a "$TEST_RESULTS" fi COUNT=$(echo -n "$DISASS_TEXT" | "$GREP" -i -c sha1msg2) - if [[ ("$COUNT" -eq "0") ]]; then + if [[ ("$COUNT" -eq 0) ]]; then FAILED=1 echo "ERROR: failed to generate sha1msg2 instruction" | tee -a "$TEST_RESULTS" fi COUNT=$(echo -n "$DISASS_TEXT" | "$GREP" -i -c sha256rnds2) - if [[ ("$COUNT" -eq "0") ]]; then + if [[ ("$COUNT" -eq 0) ]]; then FAILED=1 echo "ERROR: failed to generate sha256rnds2 instruction" | tee -a "$TEST_RESULTS" fi COUNT=$(echo -n "$DISASS_TEXT" | "$GREP" -i -c sha256msg1) - if [[ ("$COUNT" -eq "0") ]]; then + if [[ ("$COUNT" -eq 0) ]]; then FAILED=1 echo "ERROR: failed to generate sha256msg1 instruction" | tee -a "$TEST_RESULTS" fi COUNT=$(echo -n "$DISASS_TEXT" | "$GREP" -i -c sha256msg2) - if [[ ("$COUNT" -eq "0") ]]; then + if [[ ("$COUNT" -eq 0) ]]; then FAILED=1 echo "ERROR: failed to generate sha256msg2 instruction" | tee -a "$TEST_RESULTS" fi - if [[ ("$FAILED" -eq "0") ]]; then + if [[ ("$FAILED" -eq 0) ]]; then echo "Verified sha1rnds4, sha1nexte, sha1msg1, sha1msg2, sha256rnds2, sha256msg1 and sha256msg2 machine instructions" | tee -a "$TEST_RESULTS" fi fi @@ -1426,13 +1429,13 @@ fi ############################################ # ARM code generation tests -if [[ ("$HAVE_DISASS" -ne "0" && ("$IS_ARM32" -ne "0" || "$IS_ARM64" -ne "0")) ]]; then +if [[ ("$HAVE_DISASS" -ne 0 && ("$IS_ARM32" -ne 0 || "$IS_ARM64" -ne 0)) ]]; then ############################################ # ARM NEON code generation ARM_NEON=$(echo -n "$ARM_CPU_FLAGS" | "$GREP" -i -c -E '(neon|asimd)') - if [[ ("$ARM_NEON" -ne "0" || "$HAVE_ARM_NEON" -ne "0") ]]; then + if [[ ("$ARM_NEON" -ne 0 || "$HAVE_ARM_NEON" -ne 0) ]]; then echo echo "************************************" | tee -a "$TEST_RESULTS" echo "Testing: ARM NEON code generation" | tee -a "$TEST_RESULTS" @@ -1447,74 +1450,74 @@ if [[ ("$HAVE_DISASS" -ne "0" && ("$IS_ARM32" -ne "0" || "$IS_ARM64" -ne "0")) ] FAILED=0 DISASS_TEXT=$("$DISASS" "${DISASSARGS[@]}" "$OBJFILE" 2>/dev/null) - if [[ ("$HAVE_ARMV8A" -ne "0") ]]; then + if [[ ("$HAVE_ARMV8A" -ne 0) ]]; then # ARIA::UncheckedKeySet: 4 ldr q{N} COUNT=$(echo -n "$DISASS_TEXT" | "$GREP" -i -c -E 'ldr[[:space:]]*q') - if [[ ("$COUNT" -lt "4") ]]; then + if [[ ("$COUNT" -lt 4) ]]; then FAILED=1 echo "ERROR: failed to generate NEON load instructions" | tee -a "$TEST_RESULTS" fi else # ARMv7 # ARIA::UncheckedKeySet: 4 vld1.32 {d1,d2} COUNT=$(echo -n "$DISASS_TEXT" | "$GREP" -i -c -E 'vld1.32[[:space:]]*{') - if [[ ("$COUNT" -lt "4") ]]; then + if [[ ("$COUNT" -lt 4) ]]; then FAILED=1 echo "ERROR: failed to generate NEON load instructions" | tee -a "$TEST_RESULTS" fi fi - if [[ ("$HAVE_ARMV8A" -ne "0") ]]; then + if [[ ("$HAVE_ARMV8A" -ne 0) ]]; then # ARIA::UncheckedKeySet: 17 str q{N} COUNT=$(echo -n "$DISASS_TEXT" | "$GREP" -i -c -E 'str[[:space:]]*q') - if [[ ("$COUNT" -lt "16") ]]; then + if [[ ("$COUNT" -lt 16) ]]; then FAILED=1 echo "ERROR: failed to generate NEON store instructions" | tee -a "$TEST_RESULTS" fi else # ARIA::UncheckedKeySet: 17 vstr1.32 {d1,d2} COUNT=$(echo -n "$DISASS_TEXT" | "$GREP" -i -c -E 'vst1.32[[:space:]]*{') - if [[ ("$COUNT" -lt "16") ]]; then + if [[ ("$COUNT" -lt 16) ]]; then FAILED=1 echo "ERROR: failed to generate NEON store instructions" | tee -a "$TEST_RESULTS" fi fi - if [[ ("$HAVE_ARMV8A" -ne "0") ]]; then + if [[ ("$HAVE_ARMV8A" -ne 0) ]]; then # ARIA::UncheckedKeySet: 17 shl v{N} COUNT=$(echo -n "$DISASS_TEXT" | "$GREP" -i -c -E 'shl[[:space:]]*v') - if [[ ("$COUNT" -lt "16") ]]; then + if [[ ("$COUNT" -lt 16) ]]; then FAILED=1 echo "ERROR: failed to generate NEON shift left instructions" | tee -a "$TEST_RESULTS" fi else # ARIA::UncheckedKeySet: 17 vshl COUNT=$(echo -n "$DISASS_TEXT" | "$GREP" -i -c -E 'vshl') - if [[ ("$COUNT" -lt "16") ]]; then + if [[ ("$COUNT" -lt 16) ]]; then FAILED=1 echo "ERROR: failed to generate NEON store instructions" | tee -a "$TEST_RESULTS" fi fi - if [[ ("$HAVE_ARMV8A" -ne "0") ]]; then + if [[ ("$HAVE_ARMV8A" -ne 0) ]]; then # ARIA::UncheckedKeySet: 17 shr v{N} COUNT=$(echo -n "$DISASS_TEXT" | "$GREP" -i -c -E 'shr[[:space:]]*v') - if [[ ("$COUNT" -lt "16") ]]; then + if [[ ("$COUNT" -lt 16) ]]; then FAILED=1 echo "ERROR: failed to generate NEON shift left instructions" | tee -a "$TEST_RESULTS" fi else # ARIA::UncheckedKeySet: 17 vshr COUNT=$(echo -n "$DISASS_TEXT" | "$GREP" -i -c -E 'vshr') - if [[ ("$COUNT" -lt "16") ]]; then + if [[ ("$COUNT" -lt 16) ]]; then FAILED=1 echo "ERROR: failed to generate NEON store instructions" | tee -a "$TEST_RESULTS" fi fi - if [[ ("$HAVE_ARMV8A" -ne "0") ]]; then + if [[ ("$HAVE_ARMV8A" -ne 0) ]]; then # ARIA::UncheckedKeySet: 12 ext v{N} COUNT=$(echo -n "$DISASS_TEXT" | "$GREP" -i -c -E 'ext[[:space:]]*v') - if [[ ("$COUNT" -lt "12") ]]; then + if [[ ("$COUNT" -lt 12) ]]; then FAILED=1 echo "ERROR: failed to generate NEON extract instructions" | tee -a "$TEST_RESULTS" fi @@ -1522,12 +1525,12 @@ if [[ ("$HAVE_DISASS" -ne "0" && ("$IS_ARM32" -ne "0" || "$IS_ARM64" -ne "0")) ] # ARIA::UncheckedKeySet: 17 veor COUNT=$(echo -n "$DISASS_TEXT" | "$GREP" -i -c -E 'eor.*v|veor') - if [[ ("$COUNT" -lt "16") ]]; then + if [[ ("$COUNT" -lt 16) ]]; then FAILED=1 echo "ERROR: failed to generate NEON xor instructions" | tee -a "$TEST_RESULTS" fi - if [[ ("$FAILED" -eq "0") ]]; then + if [[ ("$FAILED" -eq 0) ]]; then echo "Verified NEON load, store, shfit left, shift right, xor machine instructions" | tee -a "$TEST_RESULTS" fi fi @@ -1536,11 +1539,11 @@ if [[ ("$HAVE_DISASS" -ne "0" && ("$IS_ARM32" -ne "0" || "$IS_ARM64" -ne "0")) ] # ARM CRC32 code generation "$CXX" -DCRYPTOPP_ADHOC_MAIN -march=armv8-a+crc adhoc.cpp -o "$TMPDIR/adhoc.exe" > /dev/null 2>&1 - if [[ "$?" -eq "0" ]]; then + if [[ "$?" -eq 0 ]]; then ARM_CRC32=1 fi - if [[ ("$HAVE_ARMV8A" -ne "0" && "$ARM_CRC32" -ne "0") ]]; then + if [[ ("$HAVE_ARMV8A" -ne 0 && "$ARM_CRC32" -ne 0) ]]; then echo echo "************************************" | tee -a "$TEST_RESULTS" echo "Testing: ARM CRC32 code generation" | tee -a "$TEST_RESULTS" @@ -1556,30 +1559,30 @@ if [[ ("$HAVE_DISASS" -ne "0" && ("$IS_ARM32" -ne "0" || "$IS_ARM64" -ne "0")) ] DISASS_TEXT=$("$DISASS" "${DISASSARGS[@]}" "$OBJFILE" 2>/dev/null) COUNT=$(echo -n "$DISASS_TEXT" | "$GREP" -i -c crc32cb) - if [[ ("$COUNT" -eq "0") ]]; then + if [[ ("$COUNT" -eq 0) ]]; then FAILED=1 echo "ERROR: failed to generate crc32cb instruction" | tee -a "$TEST_RESULTS" fi COUNT=$(echo -n "$DISASS_TEXT" | "$GREP" -i -c crc32cw) - if [[ ("$COUNT" -eq "0") ]]; then + if [[ ("$COUNT" -eq 0) ]]; then FAILED=1 echo "ERROR: failed to generate crc32cw instruction" | tee -a "$TEST_RESULTS" fi COUNT=$(echo -n "$DISASS_TEXT" | "$GREP" -i -c crc32b) - if [[ ("$COUNT" -eq "0") ]]; then + if [[ ("$COUNT" -eq 0) ]]; then FAILED=1 echo "ERROR: failed to generate crc32b instruction" | tee -a "$TEST_RESULTS" fi COUNT=$(echo -n "$DISASS_TEXT" | "$GREP" -i -c crc32w) - if [[ ("$COUNT" -eq "0") ]]; then + if [[ ("$COUNT" -eq 0) ]]; then FAILED=1 echo "ERROR: failed to generate crc32w instruction" | tee -a "$TEST_RESULTS" fi - if [[ ("$FAILED" -eq "0") ]]; then + if [[ ("$FAILED" -eq 0) ]]; then echo "Verified crc32cb, crc32cw, crc32b and crc32w machine instructions" | tee -a "$TEST_RESULTS" fi fi @@ -1588,11 +1591,11 @@ if [[ ("$HAVE_DISASS" -ne "0" && ("$IS_ARM32" -ne "0" || "$IS_ARM64" -ne "0")) ] # ARM carryless multiply code generation "$CXX" -DCRYPTOPP_ADHOC_MAIN -march=armv8-a+crypto adhoc.cpp -o "$TMPDIR/adhoc.exe" > /dev/null 2>&1 - if [[ "$?" -eq "0" ]]; then + if [[ "$?" -eq 0 ]]; then ARM_PMULL=1 fi - if [[ ("$HAVE_ARMV8A" -ne "0" && "$ARM_PMULL" -ne "0") ]]; then + if [[ ("$HAVE_ARMV8A" -ne 0 && "$ARM_PMULL" -ne 0) ]]; then echo echo "************************************" | tee -a "$TEST_RESULTS" echo "Testing: ARM carryless multiply code generation" | tee -a "$TEST_RESULTS" @@ -1608,18 +1611,18 @@ if [[ ("$HAVE_DISASS" -ne "0" && ("$IS_ARM32" -ne "0" || "$IS_ARM64" -ne "0")) ] DISASS_TEXT=$("$DISASS" "${DISASSARGS[@]}" "$OBJFILE" 2>/dev/null) COUNT=$(echo -n "$DISASS_TEXT" | "$GREP" -v pmull2 | "$GREP" -i -c pmull) - if [[ ("$COUNT" -eq "0") ]]; then + if [[ ("$COUNT" -eq 0) ]]; then FAILED=1 echo "ERROR: failed to generate pmull instruction" | tee -a "$TEST_RESULTS" fi COUNT=$(echo -n "$DISASS_TEXT" | "$GREP" -i -c pmull2) - if [[ ("$COUNT" -eq "0") ]]; then + if [[ ("$COUNT" -eq 0) ]]; then FAILED=1 echo "ERROR: failed to generate pmull2 instruction" | tee -a "$TEST_RESULTS" fi - if [[ ("$FAILED" -eq "0") ]]; then + if [[ ("$FAILED" -eq 0) ]]; then echo "Verified pmull and pmull2 machine instructions" | tee -a "$TEST_RESULTS" fi fi @@ -1628,11 +1631,11 @@ if [[ ("$HAVE_DISASS" -ne "0" && ("$IS_ARM32" -ne "0" || "$IS_ARM64" -ne "0")) ] # ARM AES code generation "$CXX" -DCRYPTOPP_ADHOC_MAIN -march=armv8-a+crypto adhoc.cpp -o "$TMPDIR/adhoc.exe" > /dev/null 2>&1 - if [[ "$?" -eq "0" ]]; then + if [[ "$?" -eq 0 ]]; then ARM_AES=1 fi - if [[ ("$HAVE_ARMV8A" -ne "0" && "$ARM_AES" -ne "0") ]]; then + if [[ ("$HAVE_ARMV8A" -ne 0 && "$ARM_AES" -ne 0) ]]; then echo echo "************************************" | tee -a "$TEST_RESULTS" echo "Testing: ARM AES generation" | tee -a "$TEST_RESULTS" @@ -1648,30 +1651,30 @@ if [[ ("$HAVE_DISASS" -ne "0" && ("$IS_ARM32" -ne "0" || "$IS_ARM64" -ne "0")) ] DISASS_TEXT=$("$DISASS" "${DISASSARGS[@]}" "$OBJFILE" 2>/dev/null) COUNT=$(echo -n "$DISASS_TEXT" | "$GREP" -i -c aese) - if [[ ("$COUNT" -eq "0") ]]; then + if [[ ("$COUNT" -eq 0) ]]; then FAILED=1 echo "ERROR: failed to generate aese instruction" | tee -a "$TEST_RESULTS" fi COUNT=$(echo -n "$DISASS_TEXT" | "$GREP" -i -c aesmc) - if [[ ("$COUNT" -eq "0") ]]; then + if [[ ("$COUNT" -eq 0) ]]; then FAILED=1 echo "ERROR: failed to generate aesmc instruction" | tee -a "$TEST_RESULTS" fi COUNT=$(echo -n "$DISASS_TEXT" | "$GREP" -i -c aesd) - if [[ ("$COUNT" -eq "0") ]]; then + if [[ ("$COUNT" -eq 0) ]]; then FAILED=1 echo "ERROR: failed to generate aesd instruction" | tee -a "$TEST_RESULTS" fi COUNT=$(echo -n "$DISASS_TEXT" | "$GREP" -i -c aesimc) - if [[ ("$COUNT" -eq "0") ]]; then + if [[ ("$COUNT" -eq 0) ]]; then FAILED=1 echo "ERROR: failed to generate aesimc instruction" | tee -a "$TEST_RESULTS" fi - if [[ ("$FAILED" -eq "0") ]]; then + if [[ ("$FAILED" -eq 0) ]]; then echo "Verified aese, aesd, aesmc, aesimc machine instructions" | tee -a "$TEST_RESULTS" fi fi @@ -1680,11 +1683,11 @@ if [[ ("$HAVE_DISASS" -ne "0" && ("$IS_ARM32" -ne "0" || "$IS_ARM64" -ne "0")) ] # ARM SHA code generation "$CXX" -DCRYPTOPP_ADHOC_MAIN -march=armv8-a+crypto adhoc.cpp -o "$TMPDIR/adhoc.exe" > /dev/null 2>&1 - if [[ "$?" -eq "0" ]]; then + if [[ "$?" -eq 0 ]]; then ARM_SHA=1 fi - if [[ ("$HAVE_ARMV8A" -ne "0" && "$ARM_SHA" -ne "0") ]]; then + if [[ ("$HAVE_ARMV8A" -ne 0 && "$ARM_SHA" -ne 0) ]]; then echo echo "************************************" | tee -a "$TEST_RESULTS" echo "Testing: ARM SHA generation" | tee -a "$TEST_RESULTS" @@ -1700,66 +1703,66 @@ if [[ ("$HAVE_DISASS" -ne "0" && ("$IS_ARM32" -ne "0" || "$IS_ARM64" -ne "0")) ] DISASS_TEXT=$("$DISASS" "${DISASSARGS[@]}" "$OBJFILE" 2>/dev/null) COUNT=$(echo -n "$DISASS_TEXT" | "$GREP" -i -c sha1c) - if [[ ("$COUNT" -eq "0") ]]; then + if [[ ("$COUNT" -eq 0) ]]; then FAILED=1 echo "ERROR: failed to generate sha1c instruction" | tee -a "$TEST_RESULTS" fi COUNT=$(echo -n "$DISASS_TEXT" | "$GREP" -i -c sha1m) - if [[ ("$COUNT" -eq "0") ]]; then + if [[ ("$COUNT" -eq 0) ]]; then FAILED=1 echo "ERROR: failed to generate sha1m instruction" | tee -a "$TEST_RESULTS" fi COUNT=$(echo -n "$DISASS_TEXT" | "$GREP" -i -c sha1p) - if [[ ("$COUNT" -eq "0") ]]; then + if [[ ("$COUNT" -eq 0) ]]; then FAILED=1 echo "ERROR: failed to generate sha1p instruction" | tee -a "$TEST_RESULTS" fi COUNT=$(echo -n "$DISASS_TEXT" | "$GREP" -i -c sha1h) - if [[ ("$COUNT" -eq "0") ]]; then + if [[ ("$COUNT" -eq 0) ]]; then FAILED=1 echo "ERROR: failed to generate sha1h instruction" | tee -a "$TEST_RESULTS" fi COUNT=$(echo -n "$DISASS_TEXT" | "$GREP" -i -c sha1su0) - if [[ ("$COUNT" -eq "0") ]]; then + if [[ ("$COUNT" -eq 0) ]]; then FAILED=1 echo "ERROR: failed to generate sha1su0 instruction" | tee -a "$TEST_RESULTS" fi COUNT=$(echo -n "$DISASS_TEXT" | "$GREP" -i -c sha1su1) - if [[ ("$COUNT" -eq "0") ]]; then + if [[ ("$COUNT" -eq 0) ]]; then FAILED=1 echo "ERROR: failed to generate sha1su1 instruction" | tee -a "$TEST_RESULTS" fi COUNT=$(echo -n "$DISASS_TEXT" | "$GREP" -v sha256h2 | "$GREP" -i -c sha256h) - if [[ ("$COUNT" -eq "0") ]]; then + if [[ ("$COUNT" -eq 0) ]]; then FAILED=1 echo "ERROR: failed to generate sha256h instruction" | tee -a "$TEST_RESULTS" fi COUNT=$(echo -n "$DISASS_TEXT" | "$GREP" -i -c sha256h2) - if [[ ("$COUNT" -eq "0") ]]; then + if [[ ("$COUNT" -eq 0) ]]; then FAILED=1 echo "ERROR: failed to generate sha256h2 instruction" | tee -a "$TEST_RESULTS" fi COUNT=$(echo -n "$DISASS_TEXT" | "$GREP" -i -c sha256su0) - if [[ ("$COUNT" -eq "0") ]]; then + if [[ ("$COUNT" -eq 0) ]]; then FAILED=1 echo "ERROR: failed to generate sha256su0 instruction" | tee -a "$TEST_RESULTS" fi COUNT=$(echo -n "$DISASS_TEXT" | "$GREP" -i -c sha256su1) - if [[ ("$COUNT" -eq "0") ]]; then + if [[ ("$COUNT" -eq 0) ]]; then FAILED=1 echo "ERROR: failed to generate sha256su1 instruction" | tee -a "$TEST_RESULTS" fi - if [[ ("$FAILED" -eq "0") ]]; then + if [[ ("$FAILED" -eq 0) ]]; then echo "Verified sha1c, sha1m, sha1p, sha1su0, sha1su1, sha256h, sha256h2, sha256su0, sha256su1 machine instructions" | tee -a "$TEST_RESULTS" fi fi @@ -1767,28 +1770,28 @@ fi ############################################ # Power8 code generation tests -if [[ ("$HAVE_DISASS" -ne "0" && ("$IS_PPC32" -ne "0" || "$IS_PPC64" -ne "0")) ]]; then +if [[ ("$HAVE_DISASS" -ne 0 && ("$IS_PPC32" -ne 0 || "$IS_PPC64" -ne 0)) ]]; then ############################################ # Power8 AES PPC_AES=0 - if [[ ("$PPC_AES" -eq "0") ]]; then + if [[ ("$PPC_AES" -eq 0) ]]; then "$CXX" -DCRYPTOPP_ADHOC_MAIN -mcpu=power8 adhoc.cpp -o "$TMPDIR/adhoc.exe" > /dev/null 2>&1 - if [[ "$?" -eq "0" ]]; then + if [[ "$?" -eq 0 ]]; then PPC_AES=1 PPC_AES_FLAGS="-mcpu=power8" fi fi - if [[ ("$PPC_AES" -eq "0") ]]; then + if [[ ("$PPC_AES" -eq 0) ]]; then "$CXX" -DCRYPTOPP_ADHOC_MAIN -qarch=pwr8 -qaltivec adhoc.cpp -o "$TMPDIR/adhoc.exe" > /dev/null 2>&1 - if [[ "$?" -eq "0" ]]; then + if [[ "$?" -eq 0 ]]; then PPC_AES=1 PPC_AES_FLAGS="-qarch=pwr8 -qaltivec" fi fi - if [[ ("$PPC_AES" -ne "0") ]]; then + if [[ ("$PPC_AES" -ne 0) ]]; then echo echo "************************************" | tee -a "$TEST_RESULTS" echo "Testing: Power8 AES generation" | tee -a "$TEST_RESULTS" @@ -1804,30 +1807,30 @@ if [[ ("$HAVE_DISASS" -ne "0" && ("$IS_PPC32" -ne "0" || "$IS_PPC64" -ne "0")) ] DISASS_TEXT=$("$DISASS" "${DISASSARGS[@]}" "$OBJFILE" 2>/dev/null) COUNT=$(echo -n "$DISASS_TEXT" | "$GREP" -i -v vcipherlast | "$GREP" -i -c vcipher) - if [[ ("$COUNT" -eq "0") ]]; then + if [[ ("$COUNT" -eq 0) ]]; then FAILED=1 echo "ERROR: failed to generate vcipher instruction" | tee -a "$TEST_RESULTS" fi COUNT=$(echo -n "$DISASS_TEXT" | "$GREP" -i -c vcipherlast) - if [[ ("$COUNT" -eq "0") ]]; then + if [[ ("$COUNT" -eq 0) ]]; then FAILED=1 echo "ERROR: failed to generate vcipherlast instruction" | tee -a "$TEST_RESULTS" fi COUNT=$(echo -n "$DISASS_TEXT" | "$GREP" -i -v vncipherlast | "$GREP" -i -c vncipher) - if [[ ("$COUNT" -eq "0") ]]; then + if [[ ("$COUNT" -eq 0) ]]; then FAILED=1 echo "ERROR: failed to generate vncipher instruction" | tee -a "$TEST_RESULTS" fi COUNT=$(echo -n "$DISASS_TEXT" | "$GREP" -i -c vncipherlast) - if [[ ("$COUNT" -eq "0") ]]; then + if [[ ("$COUNT" -eq 0) ]]; then FAILED=1 echo "ERROR: failed to generate vncipherlast instruction" | tee -a "$TEST_RESULTS" fi - if [[ ("$FAILED" -eq "0") ]]; then + if [[ ("$FAILED" -eq 0) ]]; then echo "Verified vcipher, vcipherlast,vncipher, vncipherlast machine instructions" | tee -a "$TEST_RESULTS" fi fi @@ -1836,22 +1839,22 @@ if [[ ("$HAVE_DISASS" -ne "0" && ("$IS_PPC32" -ne "0" || "$IS_PPC64" -ne "0")) ] # Power8 SHA PPC_SHA=0 - if [[ ("$PPC_SHA" -eq "0") ]]; then + if [[ ("$PPC_SHA" -eq 0) ]]; then "$CXX" -DCRYPTOPP_ADHOC_MAIN -mcpu=power8 adhoc.cpp -o "$TMPDIR/adhoc.exe" > /dev/null 2>&1 - if [[ "$?" -eq "0" ]]; then + if [[ "$?" -eq 0 ]]; then PPC_SHA=1 PPC_SHA_FLAGS="-mcpu=power8" fi fi - if [[ ("$PPC_SHA" -eq "0") ]]; then + if [[ ("$PPC_SHA" -eq 0) ]]; then "$CXX" -DCRYPTOPP_ADHOC_MAIN -qarch=pwr8 -qaltivec adhoc.cpp -o "$TMPDIR/adhoc.exe" > /dev/null 2>&1 - if [[ "$?" -eq "0" ]]; then + if [[ "$?" -eq 0 ]]; then PPC_SHA=1 PPC_SHA_FLAGS="-qarch=pwr8 -qaltivec" fi fi - if [[ ("$PPC_SHA" -ne "0") ]]; then + if [[ ("$PPC_SHA" -ne 0) ]]; then echo echo "************************************" | tee -a "$TEST_RESULTS" echo "Testing: Power8 SHA generation" | tee -a "$TEST_RESULTS" @@ -1867,18 +1870,18 @@ if [[ ("$HAVE_DISASS" -ne "0" && ("$IS_PPC32" -ne "0" || "$IS_PPC64" -ne "0")) ] DISASS_TEXT=$("$DISASS" "${DISASSARGS[@]}" "$OBJFILE" 2>/dev/null) COUNT=$(echo -n "$DISASS_TEXT" | "$GREP" -i -c vshasigmaw) - if [[ ("$COUNT" -eq "0") ]]; then + if [[ ("$COUNT" -eq 0) ]]; then FAILED=1 echo "ERROR: failed to generate vshasigmaw instruction" | tee -a "$TEST_RESULTS" fi COUNT=$(echo -n "$DISASS_TEXT" | "$GREP" -i -c vshasigmad) - if [[ ("$COUNT" -eq "0") ]]; then + if [[ ("$COUNT" -eq 0) ]]; then FAILED=1 echo "ERROR: failed to generate vshasigmad instruction" | tee -a "$TEST_RESULTS" fi - if [[ ("$FAILED" -eq "0") ]]; then + if [[ ("$FAILED" -eq 0) ]]; then echo "Verified vshasigmaw and vshasigmad machine instructions" | tee -a "$TEST_RESULTS" fi fi @@ -1887,22 +1890,22 @@ if [[ ("$HAVE_DISASS" -ne "0" && ("$IS_PPC32" -ne "0" || "$IS_PPC64" -ne "0")) ] # Power8 VMULL PPC_VMULL=0 - if [[ ("$PPC_VMULL" -eq "0") ]]; then + if [[ ("$PPC_VMULL" -eq 0) ]]; then "$CXX" -DCRYPTOPP_ADHOC_MAIN -mcpu=power8 adhoc.cpp -o "$TMPDIR/adhoc.exe" > /dev/null 2>&1 - if [[ "$?" -eq "0" ]]; then + if [[ "$?" -eq 0 ]]; then PPC_VMULL=1 PPC_VMULL_FLAGS="-mcpu=power8" fi fi - if [[ ("$PPC_VMULL" -eq "0") ]]; then + if [[ ("$PPC_VMULL" -eq 0) ]]; then "$CXX" -DCRYPTOPP_ADHOC_MAIN -qarch=pwr8 adhoc.cpp -o "$TMPDIR/adhoc.exe" > /dev/null 2>&1 - if [[ "$?" -eq "0" ]]; then + if [[ "$?" -eq 0 ]]; then PPC_VMULL=1 PPC_VMULL_FLAGS="-qarch=pwr8" fi fi - if [[ ("$PPC_VMULL" -ne "0") ]]; then + if [[ ("$PPC_VMULL" -ne 0) ]]; then echo echo "************************************" | tee -a "$TEST_RESULTS" echo "Testing: Power8 carryless multiply generation" | tee -a "$TEST_RESULTS" @@ -1918,12 +1921,12 @@ if [[ ("$HAVE_DISASS" -ne "0" && ("$IS_PPC32" -ne "0" || "$IS_PPC64" -ne "0")) ] DISASS_TEXT=$("$DISASS" "${DISASSARGS[@]}" "$OBJFILE" 2>/dev/null) COUNT=$(echo -n "$DISASS_TEXT" | "$GREP" -i -c vpmsum) - if [[ ("$COUNT" -eq "0") ]]; then + if [[ ("$COUNT" -eq 0) ]]; then FAILED=1 echo "ERROR: failed to generate vpmsum instruction" | tee -a "$TEST_RESULTS" fi - if [[ ("$FAILED" -eq "0") ]]; then + if [[ ("$FAILED" -eq 0) ]]; then echo "Verified vpmsum machine instruction" | tee -a "$TEST_RESULTS" fi fi @@ -1947,19 +1950,19 @@ if true; then CXXFLAGS="$DEBUG_CXXFLAGS" CXX="$CXX" CXXFLAGS="$CXXFLAGS" "$MAKE" "${MAKEARGS[@]}" static dynamic cryptest.exe 2>&1 | tee -a "$TEST_RESULTS" - if [[ ("${PIPESTATUS[0]}" -ne "0") ]]; then + if [[ ("${PIPESTATUS[0]}" -ne 0) ]]; then echo "ERROR: failed to make cryptest.exe" | tee -a "$TEST_RESULTS" # Stop now if things are broke exit 1 else ./cryptest.exe v 2>&1 | tee -a "$TEST_RESULTS" - if [[ ("${PIPESTATUS[0]}" -ne "0") ]]; then + if [[ ("${PIPESTATUS[0]}" -ne 0) ]]; then echo "ERROR: failed to execute validation suite" | tee -a "$TEST_RESULTS" # Stop now if things are broke exit 1 fi ./cryptest.exe tv all 2>&1 | tee -a "$TEST_RESULTS" - if [[ ("${PIPESTATUS[0]}" -ne "0") ]]; then + if [[ ("${PIPESTATUS[0]}" -ne 0) ]]; then echo "ERROR: failed to execute test vectors" | tee -a "$TEST_RESULTS" # Stop now if things are broke exit 1 @@ -1981,19 +1984,19 @@ if true; then CXXFLAGS="$RELEASE_CXXFLAGS" CXX="$CXX" CXXFLAGS="$CXXFLAGS" "$MAKE" "${MAKEARGS[@]}" static dynamic cryptest.exe 2>&1 | tee -a "$TEST_RESULTS" - if [[ ("${PIPESTATUS[0]}" -ne "0") ]]; then + if [[ ("${PIPESTATUS[0]}" -ne 0) ]]; then echo "ERROR: failed to make cryptest.exe" | tee -a "$TEST_RESULTS" # Stop now if things are broke exit 1 else ./cryptest.exe v 2>&1 | tee -a "$TEST_RESULTS" - if [[ ("${PIPESTATUS[0]}" -ne "0") ]]; then + if [[ ("${PIPESTATUS[0]}" -ne 0) ]]; then echo "ERROR: failed to execute validation suite" | tee -a "$TEST_RESULTS" # Stop now if things are broke exit 1 fi ./cryptest.exe tv all 2>&1 | tee -a "$TEST_RESULTS" - if [[ ("${PIPESTATUS[0]}" -ne "0") ]]; then + if [[ ("${PIPESTATUS[0]}" -ne 0) ]]; then echo "ERROR: failed to execute test vectors" | tee -a "$TEST_RESULTS" # Stop now if things are broke exit 1 @@ -2004,7 +2007,7 @@ fi ############################################ # Shared Objects -if [[ "$HAVE_LD_LIBRARY_PATH" -ne "0" ]]; then +if [[ "$HAVE_LD_LIBRARY_PATH" -ne 0 ]]; then ############################################ # Debug build echo @@ -2020,15 +2023,15 @@ if [[ "$HAVE_LD_LIBRARY_PATH" -ne "0" ]]; then CXX="$CXX" CXXFLAGS="$DEBUG_CXXFLAGS" LINK_LIBRARY=libcryptopp.so \ "$MAKE" "${MAKEARGS[@]}" static dynamic cryptest.exe 2>&1 | tee -a "$TEST_RESULTS" - if [[ ("${PIPESTATUS[0]}" -ne "0") ]]; then + if [[ ("${PIPESTATUS[0]}" -ne 0) ]]; then echo "ERROR: failed to make cryptest.exe" | tee -a "$TEST_RESULTS" else LD_LIBRARY_PATH="." ./cryptest.exe v 2>&1 | tee -a "$TEST_RESULTS" - if [[ ("${PIPESTATUS[0]}" -ne "0") ]]; then + if [[ ("${PIPESTATUS[0]}" -ne 0) ]]; then echo "ERROR: failed to execute validation suite" | tee -a "$TEST_RESULTS" fi LD_LIBRARY_PATH="." ./cryptest.exe tv all 2>&1 | tee -a "$TEST_RESULTS" - if [[ ("${PIPESTATUS[0]}" -ne "0") ]]; then + if [[ ("${PIPESTATUS[0]}" -ne 0) ]]; then echo "ERROR: failed to execute test vectors" | tee -a "$TEST_RESULTS" fi fi @@ -2048,15 +2051,15 @@ if [[ "$HAVE_LD_LIBRARY_PATH" -ne "0" ]]; then CXX="$CXX" CXXFLAGS="$RELEASE_CXXFLAGS" LINK_LIBRARY=libcryptopp.so \ "$MAKE" "${MAKEARGS[@]}" static dynamic cryptest.exe 2>&1 | tee -a "$TEST_RESULTS" - if [[ ("${PIPESTATUS[0]}" -ne "0") ]]; then + if [[ ("${PIPESTATUS[0]}" -ne 0) ]]; then echo "ERROR: failed to make cryptest.exe" | tee -a "$TEST_RESULTS" else LD_LIBRARY_PATH="." ./cryptest.exe v 2>&1 | tee -a "$TEST_RESULTS" - if [[ ("${PIPESTATUS[0]}" -ne "0") ]]; then + if [[ ("${PIPESTATUS[0]}" -ne 0) ]]; then echo "ERROR: failed to execute validation suite" | tee -a "$TEST_RESULTS" fi LD_LIBRARY_PATH="." ./cryptest.exe tv all 2>&1 | tee -a "$TEST_RESULTS" - if [[ ("${PIPESTATUS[0]}" -ne "0") ]]; then + if [[ ("${PIPESTATUS[0]}" -ne 0) ]]; then echo "ERROR: failed to execute test vectors" | tee -a "$TEST_RESULTS" fi echo @@ -2065,7 +2068,7 @@ fi ############################################ # Dynamic Objects on Darwin -if [[ "$HAVE_DYLD_LIBRARY_PATH" -ne "0" ]]; then +if [[ "$HAVE_DYLD_LIBRARY_PATH" -ne 0 ]]; then ############################################ # Debug build echo @@ -2081,15 +2084,15 @@ if [[ "$HAVE_DYLD_LIBRARY_PATH" -ne "0" ]]; then CXX="$CXX" CXXFLAGS="$DEBUG_CXXFLAGS" LINK_LIBRARY=libcryptopp.dylib \ "$MAKE" "${MAKEARGS[@]}" static dynamic cryptest.exe 2>&1 | tee -a "$TEST_RESULTS" - if [[ ("${PIPESTATUS[0]}" -ne "0") ]]; then + if [[ ("${PIPESTATUS[0]}" -ne 0) ]]; then echo "ERROR: failed to make cryptest.exe" | tee -a "$TEST_RESULTS" else DYLD_LIBRARY_PATH="." ./cryptest.exe v 2>&1 | tee -a "$TEST_RESULTS" - if [[ ("${PIPESTATUS[0]}" -ne "0") ]]; then + if [[ ("${PIPESTATUS[0]}" -ne 0) ]]; then echo "ERROR: failed to execute validation suite" | tee -a "$TEST_RESULTS" fi DYLD_LIBRARY_PATH="." ./cryptest.exe tv all 2>&1 | tee -a "$TEST_RESULTS" - if [[ ("${PIPESTATUS[0]}" -ne "0") ]]; then + if [[ ("${PIPESTATUS[0]}" -ne 0) ]]; then echo "ERROR: failed to execute test vectors" | tee -a "$TEST_RESULTS" fi fi @@ -2109,15 +2112,15 @@ if [[ "$HAVE_DYLD_LIBRARY_PATH" -ne "0" ]]; then CXX="$CXX" CXXFLAGS="$RELEASE_CXXFLAGS" LINK_LIBRARY=libcryptopp.dylib \ "$MAKE" "${MAKEARGS[@]}" static dynamic cryptest.exe 2>&1 | tee -a "$TEST_RESULTS" - if [[ ("${PIPESTATUS[0]}" -ne "0") ]]; then + if [[ ("${PIPESTATUS[0]}" -ne 0) ]]; then echo "ERROR: failed to make cryptest.exe" | tee -a "$TEST_RESULTS" else DYLD_LIBRARY_PATH="." ./cryptest.exe v 2>&1 | tee -a "$TEST_RESULTS" - if [[ ("${PIPESTATUS[0]}" -ne "0") ]]; then + if [[ ("${PIPESTATUS[0]}" -ne 0) ]]; then echo "ERROR: failed to execute validation suite" | tee -a "$TEST_RESULTS" fi DYLD_LIBRARY_PATH="." ./cryptest.exe tv all 2>&1 | tee -a "$TEST_RESULTS" - if [[ ("${PIPESTATUS[0]}" -ne "0") ]]; then + if [[ ("${PIPESTATUS[0]}" -ne 0) ]]; then echo "ERROR: failed to execute test vectors" | tee -a "$TEST_RESULTS" fi echo @@ -2126,7 +2129,7 @@ fi ############################################ # Debian specific. -if [[ ("$IS_DEBIAN" -ne "0" || "$IS_UBUNTU" -ne "0") ]]; then +if [[ ("$IS_DEBIAN" -ne 0 || "$IS_UBUNTU" -ne 0) ]]; then # Flags taken from Debian's build logs # https://buildd.debian.org/status/fetch.php?pkg=libcrypto%2b%2b&arch=i386&ver=5.6.4-6 @@ -2148,15 +2151,15 @@ if [[ ("$IS_DEBIAN" -ne "0" || "$IS_UBUNTU" -ne "0") ]]; then CXX="g++" "$MAKE" "${MAKEARGS[@]}" CXXFLAGS="${DEBIAN_FLAGS[*]}" static dynamic cryptest.exe 2>&1 | tee -a "$TEST_RESULTS" - if [[ ("${PIPESTATUS[0]}" -ne "0") ]]; then + if [[ ("${PIPESTATUS[0]}" -ne 0) ]]; then echo "ERROR: failed to make cryptest.exe" | tee -a "$TEST_RESULTS" else ./cryptest.exe v 2>&1 | tee -a "$TEST_RESULTS" - if [[ ("${PIPESTATUS[0]}" -ne "0") ]]; then + if [[ ("${PIPESTATUS[0]}" -ne 0) ]]; then echo "ERROR: failed to execute validation suite" | tee -a "$TEST_RESULTS" fi ./cryptest.exe tv all 2>&1 | tee -a "$TEST_RESULTS" - if [[ ("${PIPESTATUS[0]}" -ne "0") ]]; then + if [[ ("${PIPESTATUS[0]}" -ne 0) ]]; then echo "ERROR: failed to execute test vectors" | tee -a "$TEST_RESULTS" fi fi @@ -2164,14 +2167,14 @@ fi ############################################ # Fedora specific. -if [[ ("$IS_FEDORA" -ne "0") ]]; then +if [[ ("$IS_FEDORA" -ne 0) ]]; then # Flags taken from Fedora's build logs # https://kojipkgs.fedoraproject.org//packages/cryptopp/5.6.3/8.fc27/data/logs/i686/build.log # https://kojipkgs.fedoraproject.org//packages/cryptopp/5.6.3/8.fc27/data/logs/x86_64/build.log - if [[ ("$IS_X86" -ne "0") ]]; then + if [[ ("$IS_X86" -ne 0) ]]; then MARCH_OPT=(-m32 -march=i686) - elif [[ ("$IS_X64" -ne "0") ]]; then + elif [[ ("$IS_X64" -ne 0) ]]; then MARCH_OPT=(-m64 -mtune=generic) fi @@ -2194,15 +2197,15 @@ if [[ ("$IS_FEDORA" -ne "0") ]]; then CXX="g++" "$MAKE" "${MAKEARGS[@]}" CXXFLAGS="${FEDORA_FLAGS[*]}" static dynamic cryptest.exe 2>&1 | tee -a "$TEST_RESULTS" - if [[ ("${PIPESTATUS[0]}" -ne "0") ]]; then + if [[ ("${PIPESTATUS[0]}" -ne 0) ]]; then echo "ERROR: failed to make cryptest.exe" | tee -a "$TEST_RESULTS" else ./cryptest.exe v 2>&1 | tee -a "$TEST_RESULTS" - if [[ ("${PIPESTATUS[0]}" -ne "0") ]]; then + if [[ ("${PIPESTATUS[0]}" -ne 0) ]]; then echo "ERROR: failed to execute validation suite" | tee -a "$TEST_RESULTS" fi ./cryptest.exe tv all 2>&1 | tee -a "$TEST_RESULTS" - if [[ ("${PIPESTATUS[0]}" -ne "0") ]]; then + if [[ ("${PIPESTATUS[0]}" -ne 0) ]]; then echo "ERROR: failed to execute test vectors" | tee -a "$TEST_RESULTS" fi fi @@ -2211,7 +2214,7 @@ fi ############################################ # openSUSE specific. -if [[ ("$IS_SUSE" -ne "0") ]]; then +if [[ ("$IS_SUSE" -ne 0) ]]; then # Flags taken from openSUSE's build logs # http://susepaste.org/view//9613298 @@ -2224,25 +2227,25 @@ if [[ ("$IS_SUSE" -ne "0") ]]; then rm -f "$TMPDIR/adhoc.exe" > /dev/null 2>&1 "$CXX" -DCRYPTOPP_ADHOC_MAIN -fstack-protector-strong adhoc.cpp -o "$TMPDIR/adhoc.exe" > /dev/null 2>&1 - if [[ "$?" -eq "0" ]]; then + if [[ "$?" -eq 0 ]]; then SUSE_FLAGS+=("-fstack-protector-strong") fi rm -f "$TMPDIR/adhoc.exe" > /dev/null 2>&1 "$CXX" -DCRYPTOPP_ADHOC_MAIN -fasynchronous-unwind-tables adhoc.cpp -o "$TMPDIR/adhoc.exe" > /dev/null 2>&1 - if [[ "$?" -eq "0" ]]; then + if [[ "$?" -eq 0 ]]; then SUSE_FLAGS+=("-fasynchronous-unwind-tables") fi rm -f "$TMPDIR/adhoc.exe" > /dev/null 2>&1 "$CXX" -DCRYPTOPP_ADHOC_MAIN -fstack-clash-protection adhoc.cpp -o "$TMPDIR/adhoc.exe" > /dev/null 2>&1 - if [[ "$?" -eq "0" ]]; then + if [[ "$?" -eq 0 ]]; then SUSE_FLAGS+=("-fstack-clash-protection") fi rm -f "$TMPDIR/adhoc.exe" > /dev/null 2>&1 "$CXX" -DCRYPTOPP_ADHOC_MAIN -flto=6 adhoc.cpp -o "$TMPDIR/adhoc.exe" > /dev/null 2>&1 - if [[ "$?" -eq "0" ]]; then + if [[ "$?" -eq 0 ]]; then SUSE_FLAGS+=("-flto=6") fi @@ -2258,15 +2261,15 @@ if [[ ("$IS_SUSE" -ne "0") ]]; then CXX="g++" "$MAKE" "${MAKEARGS[@]}" CXXFLAGS="${SUSE_FLAGS[*]}" static dynamic cryptest.exe 2>&1 | tee -a "$TEST_RESULTS" - if [[ ("${PIPESTATUS[0]}" -ne "0") ]]; then + if [[ ("${PIPESTATUS[0]}" -ne 0) ]]; then echo "ERROR: failed to make cryptest.exe" | tee -a "$TEST_RESULTS" else ./cryptest.exe v 2>&1 | tee -a "$TEST_RESULTS" - if [[ ("${PIPESTATUS[0]}" -ne "0") ]]; then + if [[ ("${PIPESTATUS[0]}" -ne 0) ]]; then echo "ERROR: failed to execute validation suite" | tee -a "$TEST_RESULTS" fi ./cryptest.exe tv all 2>&1 | tee -a "$TEST_RESULTS" - if [[ ("${PIPESTATUS[0]}" -ne "0") ]]; then + if [[ ("${PIPESTATUS[0]}" -ne 0) ]]; then echo "ERROR: failed to execute test vectors" | tee -a "$TEST_RESULTS" fi fi @@ -2274,10 +2277,10 @@ fi ############################################ # Minimum platform -if [[ ("$GCC_COMPILER" -ne "0" || "$CLANG_COMPILER" -ne "0" || "$INTEL_COMPILER" -ne "0") ]]; then +if [[ ("$GCC_COMPILER" -ne 0 || "$CLANG_COMPILER" -ne 0 || "$INTEL_COMPILER" -ne 0) ]]; then # i686 (lacks MMX, SSE and SSE2) - if [[ "$IS_X86" -ne "0" ]]; then + if [[ "$IS_X86" -ne 0 ]]; then ############################################ # Debug build echo @@ -2293,15 +2296,15 @@ if [[ ("$GCC_COMPILER" -ne "0" || "$CLANG_COMPILER" -ne "0" || "$INTEL_COMPILER" CXXFLAGS="$DEBUG_CXXFLAGS -march=i686 $OPT_PIC" CXX="$CXX" CXXFLAGS="$CXXFLAGS" "$MAKE" "${MAKEARGS[@]}" static dynamic cryptest.exe 2>&1 | tee -a "$TEST_RESULTS" - if [[ ("${PIPESTATUS[0]}" -ne "0") ]]; then + if [[ ("${PIPESTATUS[0]}" -ne 0) ]]; then echo "ERROR: failed to make cryptest.exe" | tee -a "$TEST_RESULTS" else ./cryptest.exe v 2>&1 | tee -a "$TEST_RESULTS" - if [[ ("${PIPESTATUS[0]}" -ne "0") ]]; then + if [[ ("${PIPESTATUS[0]}" -ne 0) ]]; then echo "ERROR: failed to execute validation suite" | tee -a "$TEST_RESULTS" fi ./cryptest.exe tv all 2>&1 | tee -a "$TEST_RESULTS" - if [[ ("${PIPESTATUS[0]}" -ne "0") ]]; then + if [[ ("${PIPESTATUS[0]}" -ne 0) ]]; then echo "ERROR: failed to execute test vectors" | tee -a "$TEST_RESULTS" fi fi @@ -2321,22 +2324,22 @@ if [[ ("$GCC_COMPILER" -ne "0" || "$CLANG_COMPILER" -ne "0" || "$INTEL_COMPILER" CXXFLAGS="$RELEASE_CXXFLAGS -march=i686 $OPT_PIC" CXX="$CXX" CXXFLAGS="$CXXFLAGS" "$MAKE" "${MAKEARGS[@]}" static dynamic cryptest.exe 2>&1 | tee -a "$TEST_RESULTS" - if [[ ("${PIPESTATUS[0]}" -ne "0") ]]; then + if [[ ("${PIPESTATUS[0]}" -ne 0) ]]; then echo "ERROR: failed to make cryptest.exe" | tee -a "$TEST_RESULTS" else ./cryptest.exe v 2>&1 | tee -a "$TEST_RESULTS" - if [[ ("${PIPESTATUS[0]}" -ne "0") ]]; then + if [[ ("${PIPESTATUS[0]}" -ne 0) ]]; then echo "ERROR: failed to execute validation suite" | tee -a "$TEST_RESULTS" fi ./cryptest.exe tv all 2>&1 | tee -a "$TEST_RESULTS" - if [[ ("${PIPESTATUS[0]}" -ne "0") ]]; then + if [[ ("${PIPESTATUS[0]}" -ne 0) ]]; then echo "ERROR: failed to execute test vectors" | tee -a "$TEST_RESULTS" fi fi fi # x86_64 - if [[ "$IS_X64" -ne "0" ]]; then + if [[ "$IS_X64" -ne 0 ]]; then ############################################ # Debug build echo @@ -2352,15 +2355,15 @@ if [[ ("$GCC_COMPILER" -ne "0" || "$CLANG_COMPILER" -ne "0" || "$INTEL_COMPILER" CXXFLAGS="$DEBUG_CXXFLAGS -march=x86-64 $OPT_PIC" CXX="$CXX" CXXFLAGS="$CXXFLAGS" "$MAKE" "${MAKEARGS[@]}" static dynamic cryptest.exe 2>&1 | tee -a "$TEST_RESULTS" - if [[ ("${PIPESTATUS[0]}" -ne "0") ]]; then + if [[ ("${PIPESTATUS[0]}" -ne 0) ]]; then echo "ERROR: failed to make cryptest.exe" | tee -a "$TEST_RESULTS" else ./cryptest.exe v 2>&1 | tee -a "$TEST_RESULTS" - if [[ ("${PIPESTATUS[0]}" -ne "0") ]]; then + if [[ ("${PIPESTATUS[0]}" -ne 0) ]]; then echo "ERROR: failed to execute validation suite" | tee -a "$TEST_RESULTS" fi ./cryptest.exe tv all 2>&1 | tee -a "$TEST_RESULTS" - if [[ ("${PIPESTATUS[0]}" -ne "0") ]]; then + if [[ ("${PIPESTATUS[0]}" -ne 0) ]]; then echo "ERROR: failed to execute test vectors" | tee -a "$TEST_RESULTS" fi fi @@ -2380,15 +2383,15 @@ if [[ ("$GCC_COMPILER" -ne "0" || "$CLANG_COMPILER" -ne "0" || "$INTEL_COMPILER" CXXFLAGS="$RELEASE_CXXFLAGS -march=x86-64 $OPT_PIC" CXX="$CXX" CXXFLAGS="$CXXFLAGS" "$MAKE" "${MAKEARGS[@]}" static dynamic cryptest.exe 2>&1 | tee -a "$TEST_RESULTS" - if [[ ("${PIPESTATUS[0]}" -ne "0") ]]; then + if [[ ("${PIPESTATUS[0]}" -ne 0) ]]; then echo "ERROR: failed to make cryptest.exe" | tee -a "$TEST_RESULTS" else ./cryptest.exe v 2>&1 | tee -a "$TEST_RESULTS" - if [[ ("${PIPESTATUS[0]}" -ne "0") ]]; then + if [[ ("${PIPESTATUS[0]}" -ne 0) ]]; then echo "ERROR: failed to execute validation suite" | tee -a "$TEST_RESULTS" fi ./cryptest.exe tv all 2>&1 | tee -a "$TEST_RESULTS" - if [[ ("${PIPESTATUS[0]}" -ne "0") ]]; then + if [[ ("${PIPESTATUS[0]}" -ne 0) ]]; then echo "ERROR: failed to execute test vectors" | tee -a "$TEST_RESULTS" fi fi @@ -2397,10 +2400,10 @@ fi ############################################ # Mismatched arch capabilities -if [[ ( ("$IS_X86" -ne "0" || "$IS_X32" -ne "0" || "$IS_X64" -ne "0") && "$HAVE_NATIVE_ARCH" -ne "0") ]]; then +if [[ ( ("$IS_X86" -ne 0 || "$IS_X32" -ne 0 || "$IS_X64" -ne 0) && "$HAVE_NATIVE_ARCH" -ne 0) ]]; then # i686 (lacks MMX, SSE and SSE2) - if [[ "$IS_X86" -ne "0" ]]; then + if [[ "$IS_X86" -ne 0 ]]; then ############################################ # Debug build echo @@ -2420,15 +2423,15 @@ if [[ ( ("$IS_X86" -ne "0" || "$IS_X32" -ne "0" || "$IS_X64" -ne "0") && "$HAVE_ CXXFLAGS="$DEBUG_CXXFLAGS $OPT_PIC" CXX="$CXX" CXXFLAGS="$CXXFLAGS" "$MAKE" "${MAKEARGS[@]}" cryptest.exe 2>&1 | tee -a "$TEST_RESULTS" - if [[ ("${PIPESTATUS[0]}" -ne "0") ]]; then + if [[ ("${PIPESTATUS[0]}" -ne 0) ]]; then echo "ERROR: failed to make cryptest.exe" | tee -a "$TEST_RESULTS" else ./cryptest.exe v 2>&1 | tee -a "$TEST_RESULTS" - if [[ ("${PIPESTATUS[0]}" -ne "0") ]]; then + if [[ ("${PIPESTATUS[0]}" -ne 0) ]]; then echo "ERROR: failed to execute validation suite" | tee -a "$TEST_RESULTS" fi ./cryptest.exe tv all 2>&1 | tee -a "$TEST_RESULTS" - if [[ ("${PIPESTATUS[0]}" -ne "0") ]]; then + if [[ ("${PIPESTATUS[0]}" -ne 0) ]]; then echo "ERROR: failed to execute test vectors" | tee -a "$TEST_RESULTS" fi fi @@ -2452,22 +2455,22 @@ if [[ ( ("$IS_X86" -ne "0" || "$IS_X32" -ne "0" || "$IS_X64" -ne "0") && "$HAVE_ CXXFLAGS="$RELEASE_CXXFLAGS $OPT_PIC" CXX="$CXX" CXXFLAGS="$CXXFLAGS" "$MAKE" "${MAKEARGS[@]}" cryptest.exe 2>&1 | tee -a "$TEST_RESULTS" - if [[ ("${PIPESTATUS[0]}" -ne "0") ]]; then + if [[ ("${PIPESTATUS[0]}" -ne 0) ]]; then echo "ERROR: failed to make cryptest.exe" | tee -a "$TEST_RESULTS" else ./cryptest.exe v 2>&1 | tee -a "$TEST_RESULTS" - if [[ ("${PIPESTATUS[0]}" -ne "0") ]]; then + if [[ ("${PIPESTATUS[0]}" -ne 0) ]]; then echo "ERROR: failed to execute validation suite" | tee -a "$TEST_RESULTS" fi ./cryptest.exe tv all 2>&1 | tee -a "$TEST_RESULTS" - if [[ ("${PIPESTATUS[0]}" -ne "0") ]]; then + if [[ ("${PIPESTATUS[0]}" -ne 0) ]]; then echo "ERROR: failed to execute test vectors" | tee -a "$TEST_RESULTS" fi fi fi # x86-64 - if [[ "$IS_X64" -ne "0" ]]; then + if [[ "$IS_X64" -ne 0 ]]; then ############################################ # Debug build echo @@ -2487,15 +2490,15 @@ if [[ ( ("$IS_X86" -ne "0" || "$IS_X32" -ne "0" || "$IS_X64" -ne "0") && "$HAVE_ CXXFLAGS="$DEBUG_CXXFLAGS $OPT_PIC" CXX="$CXX" CXXFLAGS="$CXXFLAGS" "$MAKE" "${MAKEARGS[@]}" cryptest.exe 2>&1 | tee -a "$TEST_RESULTS" - if [[ ("${PIPESTATUS[0]}" -ne "0") ]]; then + if [[ ("${PIPESTATUS[0]}" -ne 0) ]]; then echo "ERROR: failed to make cryptest.exe" | tee -a "$TEST_RESULTS" else ./cryptest.exe v 2>&1 | tee -a "$TEST_RESULTS" - if [[ ("${PIPESTATUS[0]}" -ne "0") ]]; then + if [[ ("${PIPESTATUS[0]}" -ne 0) ]]; then echo "ERROR: failed to execute validation suite" | tee -a "$TEST_RESULTS" fi ./cryptest.exe tv all 2>&1 | tee -a "$TEST_RESULTS" - if [[ ("${PIPESTATUS[0]}" -ne "0") ]]; then + if [[ ("${PIPESTATUS[0]}" -ne 0) ]]; then echo "ERROR: failed to execute test vectors" | tee -a "$TEST_RESULTS" fi fi @@ -2519,15 +2522,15 @@ if [[ ( ("$IS_X86" -ne "0" || "$IS_X32" -ne "0" || "$IS_X64" -ne "0") && "$HAVE_ CXXFLAGS="$RELEASE_CXXFLAGS $OPT_PIC" CXX="$CXX" CXXFLAGS="$CXXFLAGS" "$MAKE" "${MAKEARGS[@]}" cryptest.exe 2>&1 | tee -a "$TEST_RESULTS" - if [[ ("${PIPESTATUS[0]}" -ne "0") ]]; then + if [[ ("${PIPESTATUS[0]}" -ne 0) ]]; then echo "ERROR: failed to make cryptest.exe" | tee -a "$TEST_RESULTS" else ./cryptest.exe v 2>&1 | tee -a "$TEST_RESULTS" - if [[ ("${PIPESTATUS[0]}" -ne "0") ]]; then + if [[ ("${PIPESTATUS[0]}" -ne 0) ]]; then echo "ERROR: failed to execute validation suite" | tee -a "$TEST_RESULTS" fi ./cryptest.exe tv all 2>&1 | tee -a "$TEST_RESULTS" - if [[ ("${PIPESTATUS[0]}" -ne "0") ]]; then + if [[ ("${PIPESTATUS[0]}" -ne 0) ]]; then echo "ERROR: failed to execute test vectors" | tee -a "$TEST_RESULTS" fi fi @@ -2553,15 +2556,15 @@ if true; then CXXFLAGS="$DEBUG_CXXFLAGS -DCRYPTOPP_DISABLE_ASM" CXX="$CXX" CXXFLAGS="$CXXFLAGS" "$MAKE" "${MAKEARGS[@]}" static dynamic cryptest.exe 2>&1 | tee -a "$TEST_RESULTS" - if [[ ("${PIPESTATUS[0]}" -ne "0") ]]; then + if [[ ("${PIPESTATUS[0]}" -ne 0) ]]; then echo "ERROR: failed to make cryptest.exe" | tee -a "$TEST_RESULTS" else ./cryptest.exe v 2>&1 | tee -a "$TEST_RESULTS" - if [[ ("${PIPESTATUS[0]}" -ne "0") ]]; then + if [[ ("${PIPESTATUS[0]}" -ne 0) ]]; then echo "ERROR: failed to execute validation suite" | tee -a "$TEST_RESULTS" fi ./cryptest.exe tv all 2>&1 | tee -a "$TEST_RESULTS" - if [[ ("${PIPESTATUS[0]}" -ne "0") ]]; then + if [[ ("${PIPESTATUS[0]}" -ne 0) ]]; then echo "ERROR: failed to execute test vectors" | tee -a "$TEST_RESULTS" fi fi @@ -2581,15 +2584,15 @@ if true; then CXXFLAGS="$RELEASE_CXXFLAGS -DCRYPTOPP_DISABLE_ASM" CXX="$CXX" CXXFLAGS="$CXXFLAGS" "$MAKE" "${MAKEARGS[@]}" static dynamic cryptest.exe 2>&1 | tee -a "$TEST_RESULTS" - if [[ ("${PIPESTATUS[0]}" -ne "0") ]]; then + if [[ ("${PIPESTATUS[0]}" -ne 0) ]]; then echo "ERROR: failed to make cryptest.exe" | tee -a "$TEST_RESULTS" else ./cryptest.exe v 2>&1 | tee -a "$TEST_RESULTS" - if [[ ("${PIPESTATUS[0]}" -ne "0") ]]; then + if [[ ("${PIPESTATUS[0]}" -ne 0) ]]; then echo "ERROR: failed to execute validation suite" | tee -a "$TEST_RESULTS" fi ./cryptest.exe tv all 2>&1 | tee -a "$TEST_RESULTS" - if [[ ("${PIPESTATUS[0]}" -ne "0") ]]; then + if [[ ("${PIPESTATUS[0]}" -ne 0) ]]; then echo "ERROR: failed to execute test vectors" | tee -a "$TEST_RESULTS" fi fi @@ -2614,15 +2617,15 @@ if true; then CXXFLAGS="$DEBUG_CXXFLAGS -DCRYPTOPP_NO_CPU_FEATURE_PROBES=1" CXX="$CXX" CXXFLAGS="$CXXFLAGS" "$MAKE" "${MAKEARGS[@]}" static dynamic cryptest.exe 2>&1 | tee -a "$TEST_RESULTS" - if [[ ("${PIPESTATUS[0]}" -ne "0") ]]; then + if [[ ("${PIPESTATUS[0]}" -ne 0) ]]; then echo "ERROR: failed to make cryptest.exe" | tee -a "$TEST_RESULTS" else ./cryptest.exe v 2>&1 | tee -a "$TEST_RESULTS" - if [[ ("${PIPESTATUS[0]}" -ne "0") ]]; then + if [[ ("${PIPESTATUS[0]}" -ne 0) ]]; then echo "ERROR: failed to execute validation suite" | tee -a "$TEST_RESULTS" fi ./cryptest.exe tv all 2>&1 | tee -a "$TEST_RESULTS" - if [[ ("${PIPESTATUS[0]}" -ne "0") ]]; then + if [[ ("${PIPESTATUS[0]}" -ne 0) ]]; then echo "ERROR: failed to execute test vectors" | tee -a "$TEST_RESULTS" fi fi @@ -2642,15 +2645,15 @@ if true; then CXXFLAGS="$RELEASE_CXXFLAGS -DCRYPTOPP_NO_CPU_FEATURE_PROBES=1" CXX="$CXX" CXXFLAGS="$CXXFLAGS" "$MAKE" "${MAKEARGS[@]}" static dynamic cryptest.exe 2>&1 | tee -a "$TEST_RESULTS" - if [[ ("${PIPESTATUS[0]}" -ne "0") ]]; then + if [[ ("${PIPESTATUS[0]}" -ne 0) ]]; then echo "ERROR: failed to make cryptest.exe" | tee -a "$TEST_RESULTS" else ./cryptest.exe v 2>&1 | tee -a "$TEST_RESULTS" - if [[ ("${PIPESTATUS[0]}" -ne "0") ]]; then + if [[ ("${PIPESTATUS[0]}" -ne 0) ]]; then echo "ERROR: failed to execute validation suite" | tee -a "$TEST_RESULTS" fi ./cryptest.exe tv all 2>&1 | tee -a "$TEST_RESULTS" - if [[ ("${PIPESTATUS[0]}" -ne "0") ]]; then + if [[ ("${PIPESTATUS[0]}" -ne 0) ]]; then echo "ERROR: failed to execute test vectors" | tee -a "$TEST_RESULTS" fi fi @@ -2658,7 +2661,7 @@ fi ############################################ # Debug build, CRYPTOPP_NO_CXX11 -if [[ "$HAVE_CXX11" -ne "0" ]] || [[ "$HAVE_GNU11" -ne "0" ]]; then +if [[ "$HAVE_CXX11" -ne 0 ]] || [[ "$HAVE_GNU11" -ne 0 ]]; then ############################################ # Debug build @@ -2675,15 +2678,15 @@ if [[ "$HAVE_CXX11" -ne "0" ]] || [[ "$HAVE_GNU11" -ne "0" ]]; then CXXFLAGS="$DEBUG_CXXFLAGS -DCRYPTOPP_CRYPTOPP_NO_CXX11=1" CXX="$CXX" CXXFLAGS="$CXXFLAGS" "$MAKE" "${MAKEARGS[@]}" static dynamic cryptest.exe 2>&1 | tee -a "$TEST_RESULTS" - if [[ ("${PIPESTATUS[0]}" -ne "0") ]]; then + if [[ ("${PIPESTATUS[0]}" -ne 0) ]]; then echo "ERROR: failed to make cryptest.exe" | tee -a "$TEST_RESULTS" else ./cryptest.exe v 2>&1 | tee -a "$TEST_RESULTS" - if [[ ("${PIPESTATUS[0]}" -ne "0") ]]; then + if [[ ("${PIPESTATUS[0]}" -ne 0) ]]; then echo "ERROR: failed to execute validation suite" | tee -a "$TEST_RESULTS" fi ./cryptest.exe tv all 2>&1 | tee -a "$TEST_RESULTS" - if [[ ("${PIPESTATUS[0]}" -ne "0") ]]; then + if [[ ("${PIPESTATUS[0]}" -ne 0) ]]; then echo "ERROR: failed to execute test vectors" | tee -a "$TEST_RESULTS" fi fi @@ -2703,15 +2706,15 @@ if [[ "$HAVE_CXX11" -ne "0" ]] || [[ "$HAVE_GNU11" -ne "0" ]]; then CXXFLAGS="$RELEASE_CXXFLAGS -DCRYPTOPP_CRYPTOPP_NO_CXX11=1" CXX="$CXX" CXXFLAGS="$CXXFLAGS" "$MAKE" "${MAKEARGS[@]}" static dynamic cryptest.exe 2>&1 | tee -a "$TEST_RESULTS" - if [[ ("${PIPESTATUS[0]}" -ne "0") ]]; then + if [[ ("${PIPESTATUS[0]}" -ne 0) ]]; then echo "ERROR: failed to make cryptest.exe" | tee -a "$TEST_RESULTS" else ./cryptest.exe v 2>&1 | tee -a "$TEST_RESULTS" - if [[ ("${PIPESTATUS[0]}" -ne "0") ]]; then + if [[ ("${PIPESTATUS[0]}" -ne 0) ]]; then echo "ERROR: failed to execute validation suite" | tee -a "$TEST_RESULTS" fi ./cryptest.exe tv all 2>&1 | tee -a "$TEST_RESULTS" - if [[ ("${PIPESTATUS[0]}" -ne "0") ]]; then + if [[ ("${PIPESTATUS[0]}" -ne 0) ]]; then echo "ERROR: failed to execute test vectors" | tee -a "$TEST_RESULTS" fi fi @@ -2719,7 +2722,7 @@ fi ############################################ # c++03 debug and release build -if [[ "$HAVE_CXX03" -ne "0" ]]; then +if [[ "$HAVE_CXX03" -ne 0 ]]; then ############################################ # Debug build @@ -2736,15 +2739,15 @@ if [[ "$HAVE_CXX03" -ne "0" ]]; then CXXFLAGS="$DEBUG_CXXFLAGS -std=c++03 $USER_CXXFLAGS" CXX="$CXX" CXXFLAGS="$CXXFLAGS" "$MAKE" "${MAKEARGS[@]}" static dynamic cryptest.exe 2>&1 | tee -a "$TEST_RESULTS" - if [[ ("${PIPESTATUS[0]}" -ne "0") ]]; then + if [[ ("${PIPESTATUS[0]}" -ne 0) ]]; then echo "ERROR: failed to make cryptest.exe" | tee -a "$TEST_RESULTS" else ./cryptest.exe v 2>&1 | tee -a "$TEST_RESULTS" - if [[ ("${PIPESTATUS[0]}" -ne "0") ]]; then + if [[ ("${PIPESTATUS[0]}" -ne 0) ]]; then echo "ERROR: failed to execute validation suite" | tee -a "$TEST_RESULTS" fi ./cryptest.exe tv all 2>&1 | tee -a "$TEST_RESULTS" - if [[ ("${PIPESTATUS[0]}" -ne "0") ]]; then + if [[ ("${PIPESTATUS[0]}" -ne 0) ]]; then echo "ERROR: failed to execute test vectors" | tee -a "$TEST_RESULTS" fi fi @@ -2764,15 +2767,15 @@ if [[ "$HAVE_CXX03" -ne "0" ]]; then CXXFLAGS="$RELEASE_CXXFLAGS -std=c++03 $USER_CXXFLAGS" CXX="$CXX" CXXFLAGS="$CXXFLAGS" "$MAKE" "${MAKEARGS[@]}" static dynamic cryptest.exe 2>&1 | tee -a "$TEST_RESULTS" - if [[ ("${PIPESTATUS[0]}" -ne "0") ]]; then + if [[ ("${PIPESTATUS[0]}" -ne 0) ]]; then echo "ERROR: failed to make cryptest.exe" | tee -a "$TEST_RESULTS" else ./cryptest.exe v 2>&1 | tee -a "$TEST_RESULTS" - if [[ ("${PIPESTATUS[0]}" -ne "0") ]]; then + if [[ ("${PIPESTATUS[0]}" -ne 0) ]]; then echo "ERROR: failed to execute validation suite" | tee -a "$TEST_RESULTS" fi ./cryptest.exe tv all 2>&1 | tee -a "$TEST_RESULTS" - if [[ ("${PIPESTATUS[0]}" -ne "0") ]]; then + if [[ ("${PIPESTATUS[0]}" -ne 0) ]]; then echo "ERROR: failed to execute test vectors" | tee -a "$TEST_RESULTS" fi fi @@ -2780,7 +2783,7 @@ fi ############################################ # gnu++03 debug and release build -if [[ "$HAVE_GNU03" -ne "0" ]]; then +if [[ "$HAVE_GNU03" -ne 0 ]]; then ############################################ # Debug build @@ -2797,15 +2800,15 @@ if [[ "$HAVE_GNU03" -ne "0" ]]; then CXXFLAGS="$DEBUG_CXXFLAGS -std=gnu++03 $USER_CXXFLAGS" CXX="$CXX" CXXFLAGS="$CXXFLAGS" "$MAKE" "${MAKEARGS[@]}" static dynamic cryptest.exe 2>&1 | tee -a "$TEST_RESULTS" - if [[ ("${PIPESTATUS[0]}" -ne "0") ]]; then + if [[ ("${PIPESTATUS[0]}" -ne 0) ]]; then echo "ERROR: failed to make cryptest.exe" | tee -a "$TEST_RESULTS" else ./cryptest.exe v 2>&1 | tee -a "$TEST_RESULTS" - if [[ ("${PIPESTATUS[0]}" -ne "0") ]]; then + if [[ ("${PIPESTATUS[0]}" -ne 0) ]]; then echo "ERROR: failed to execute validation suite" | tee -a "$TEST_RESULTS" fi ./cryptest.exe tv all 2>&1 | tee -a "$TEST_RESULTS" - if [[ ("${PIPESTATUS[0]}" -ne "0") ]]; then + if [[ ("${PIPESTATUS[0]}" -ne 0) ]]; then echo "ERROR: failed to execute test vectors" | tee -a "$TEST_RESULTS" fi fi @@ -2825,15 +2828,15 @@ if [[ "$HAVE_GNU03" -ne "0" ]]; then CXXFLAGS="$RELEASE_CXXFLAGS -std=gnu++03 $USER_CXXFLAGS" CXX="$CXX" CXXFLAGS="$CXXFLAGS" "$MAKE" "${MAKEARGS[@]}" static dynamic cryptest.exe 2>&1 | tee -a "$TEST_RESULTS" - if [[ ("${PIPESTATUS[0]}" -ne "0") ]]; then + if [[ ("${PIPESTATUS[0]}" -ne 0) ]]; then echo "ERROR: failed to make cryptest.exe" | tee -a "$TEST_RESULTS" else ./cryptest.exe v 2>&1 | tee -a "$TEST_RESULTS" - if [[ ("${PIPESTATUS[0]}" -ne "0") ]]; then + if [[ ("${PIPESTATUS[0]}" -ne 0) ]]; then echo "ERROR: failed to execute validation suite" | tee -a "$TEST_RESULTS" fi ./cryptest.exe tv all 2>&1 | tee -a "$TEST_RESULTS" - if [[ ("${PIPESTATUS[0]}" -ne "0") ]]; then + if [[ ("${PIPESTATUS[0]}" -ne 0) ]]; then echo "ERROR: failed to execute test vectors" | tee -a "$TEST_RESULTS" fi fi @@ -2841,7 +2844,7 @@ fi ############################################ # c++11 debug and release build -if [[ "$HAVE_CXX11" -ne "0" ]]; then +if [[ "$HAVE_CXX11" -ne 0 ]]; then ############################################ # Debug build @@ -2858,15 +2861,15 @@ if [[ "$HAVE_CXX11" -ne "0" ]]; then CXXFLAGS="$DEBUG_CXXFLAGS -std=c++11 $USER_CXXFLAGS" CXX="$CXX" CXXFLAGS="$CXXFLAGS" "$MAKE" "${MAKEARGS[@]}" static dynamic cryptest.exe 2>&1 | tee -a "$TEST_RESULTS" - if [[ ("${PIPESTATUS[0]}" -ne "0") ]]; then + if [[ ("${PIPESTATUS[0]}" -ne 0) ]]; then echo "ERROR: failed to make cryptest.exe" | tee -a "$TEST_RESULTS" else ./cryptest.exe v 2>&1 | tee -a "$TEST_RESULTS" - if [[ ("${PIPESTATUS[0]}" -ne "0") ]]; then + if [[ ("${PIPESTATUS[0]}" -ne 0) ]]; then echo "ERROR: failed to execute validation suite" | tee -a "$TEST_RESULTS" fi ./cryptest.exe tv all 2>&1 | tee -a "$TEST_RESULTS" - if [[ ("${PIPESTATUS[0]}" -ne "0") ]]; then + if [[ ("${PIPESTATUS[0]}" -ne 0) ]]; then echo "ERROR: failed to execute test vectors" | tee -a "$TEST_RESULTS" fi fi @@ -2886,15 +2889,15 @@ if [[ "$HAVE_CXX11" -ne "0" ]]; then CXXFLAGS="$RELEASE_CXXFLAGS -std=c++11 $USER_CXXFLAGS" CXX="$CXX" CXXFLAGS="$CXXFLAGS" "$MAKE" "${MAKEARGS[@]}" static dynamic cryptest.exe 2>&1 | tee -a "$TEST_RESULTS" - if [[ ("${PIPESTATUS[0]}" -ne "0") ]]; then + if [[ ("${PIPESTATUS[0]}" -ne 0) ]]; then echo "ERROR: failed to make cryptest.exe" | tee -a "$TEST_RESULTS" else ./cryptest.exe v 2>&1 | tee -a "$TEST_RESULTS" - if [[ ("${PIPESTATUS[0]}" -ne "0") ]]; then + if [[ ("${PIPESTATUS[0]}" -ne 0) ]]; then echo "ERROR: failed to execute validation suite" | tee -a "$TEST_RESULTS" fi ./cryptest.exe tv all 2>&1 | tee -a "$TEST_RESULTS" - if [[ ("${PIPESTATUS[0]}" -ne "0") ]]; then + if [[ ("${PIPESTATUS[0]}" -ne 0) ]]; then echo "ERROR: failed to execute test vectors" | tee -a "$TEST_RESULTS" fi fi @@ -2902,7 +2905,7 @@ fi ############################################ # gnu++11 debug and release build -if [[ "$HAVE_GNU11" -ne "0" ]]; then +if [[ "$HAVE_GNU11" -ne 0 ]]; then ############################################ # Debug build @@ -2919,15 +2922,15 @@ if [[ "$HAVE_GNU11" -ne "0" ]]; then CXXFLAGS="$DEBUG_CXXFLAGS -std=gnu++11 $USER_CXXFLAGS" CXX="$CXX" CXXFLAGS="$CXXFLAGS" "$MAKE" "${MAKEARGS[@]}" static dynamic cryptest.exe 2>&1 | tee -a "$TEST_RESULTS" - if [[ ("${PIPESTATUS[0]}" -ne "0") ]]; then + if [[ ("${PIPESTATUS[0]}" -ne 0) ]]; then echo "ERROR: failed to make cryptest.exe" | tee -a "$TEST_RESULTS" else ./cryptest.exe v 2>&1 | tee -a "$TEST_RESULTS" - if [[ ("${PIPESTATUS[0]}" -ne "0") ]]; then + if [[ ("${PIPESTATUS[0]}" -ne 0) ]]; then echo "ERROR: failed to execute validation suite" | tee -a "$TEST_RESULTS" fi ./cryptest.exe tv all 2>&1 | tee -a "$TEST_RESULTS" - if [[ ("${PIPESTATUS[0]}" -ne "0") ]]; then + if [[ ("${PIPESTATUS[0]}" -ne 0) ]]; then echo "ERROR: failed to execute test vectors" | tee -a "$TEST_RESULTS" fi fi @@ -2947,15 +2950,15 @@ if [[ "$HAVE_GNU11" -ne "0" ]]; then CXXFLAGS="$RELEASE_CXXFLAGS -std=gnu++11 $USER_CXXFLAGS" CXX="$CXX" CXXFLAGS="$CXXFLAGS" "$MAKE" "${MAKEARGS[@]}" static dynamic cryptest.exe 2>&1 | tee -a "$TEST_RESULTS" - if [[ ("${PIPESTATUS[0]}" -ne "0") ]]; then + if [[ ("${PIPESTATUS[0]}" -ne 0) ]]; then echo "ERROR: failed to make cryptest.exe" | tee -a "$TEST_RESULTS" else ./cryptest.exe v 2>&1 | tee -a "$TEST_RESULTS" - if [[ ("${PIPESTATUS[0]}" -ne "0") ]]; then + if [[ ("${PIPESTATUS[0]}" -ne 0) ]]; then echo "ERROR: failed to execute validation suite" | tee -a "$TEST_RESULTS" fi ./cryptest.exe tv all 2>&1 | tee -a "$TEST_RESULTS" - if [[ ("${PIPESTATUS[0]}" -ne "0") ]]; then + if [[ ("${PIPESTATUS[0]}" -ne 0) ]]; then echo "ERROR: failed to execute test vectors" | tee -a "$TEST_RESULTS" fi fi @@ -2963,7 +2966,7 @@ fi ############################################ # c++14 debug and release build -if [[ "$HAVE_CXX14" -ne "0" ]]; then +if [[ "$HAVE_CXX14" -ne 0 ]]; then ############################################ # Debug build @@ -2980,15 +2983,15 @@ if [[ "$HAVE_CXX14" -ne "0" ]]; then CXXFLAGS="$DEBUG_CXXFLAGS -std=c++14 $USER_CXXFLAGS" CXX="$CXX" CXXFLAGS="$CXXFLAGS" "$MAKE" "${MAKEARGS[@]}" static dynamic cryptest.exe 2>&1 | tee -a "$TEST_RESULTS" - if [[ ("${PIPESTATUS[0]}" -ne "0") ]]; then + if [[ ("${PIPESTATUS[0]}" -ne 0) ]]; then echo "ERROR: failed to make cryptest.exe" | tee -a "$TEST_RESULTS" else ./cryptest.exe v 2>&1 | tee -a "$TEST_RESULTS" - if [[ ("${PIPESTATUS[0]}" -ne "0") ]]; then + if [[ ("${PIPESTATUS[0]}" -ne 0) ]]; then echo "ERROR: failed to execute validation suite" | tee -a "$TEST_RESULTS" fi ./cryptest.exe tv all 2>&1 | tee -a "$TEST_RESULTS" - if [[ ("${PIPESTATUS[0]}" -ne "0") ]]; then + if [[ ("${PIPESTATUS[0]}" -ne 0) ]]; then echo "ERROR: failed to execute test vectors" | tee -a "$TEST_RESULTS" fi fi @@ -3008,15 +3011,15 @@ if [[ "$HAVE_CXX14" -ne "0" ]]; then CXXFLAGS="$RELEASE_CXXFLAGS -std=c++14 $USER_CXXFLAGS" CXX="$CXX" CXXFLAGS="$CXXFLAGS" "$MAKE" "${MAKEARGS[@]}" static dynamic cryptest.exe 2>&1 | tee -a "$TEST_RESULTS" - if [[ ("${PIPESTATUS[0]}" -ne "0") ]]; then + if [[ ("${PIPESTATUS[0]}" -ne 0) ]]; then echo "ERROR: failed to make cryptest.exe" | tee -a "$TEST_RESULTS" else ./cryptest.exe v 2>&1 | tee -a "$TEST_RESULTS" - if [[ ("${PIPESTATUS[0]}" -ne "0") ]]; then + if [[ ("${PIPESTATUS[0]}" -ne 0) ]]; then echo "ERROR: failed to execute validation suite" | tee -a "$TEST_RESULTS" fi ./cryptest.exe tv all 2>&1 | tee -a "$TEST_RESULTS" - if [[ ("${PIPESTATUS[0]}" -ne "0") ]]; then + if [[ ("${PIPESTATUS[0]}" -ne 0) ]]; then echo "ERROR: failed to execute test vectors" | tee -a "$TEST_RESULTS" fi fi @@ -3024,7 +3027,7 @@ fi ############################################ # gnu++14 debug and release build -if [[ "$HAVE_GNU14" -ne "0" ]]; then +if [[ "$HAVE_GNU14" -ne 0 ]]; then ############################################ # Debug build @@ -3041,15 +3044,15 @@ if [[ "$HAVE_GNU14" -ne "0" ]]; then CXXFLAGS="$DEBUG_CXXFLAGS -std=gnu++14 $USER_CXXFLAGS" CXX="$CXX" CXXFLAGS="$CXXFLAGS" "$MAKE" "${MAKEARGS[@]}" static dynamic cryptest.exe 2>&1 | tee -a "$TEST_RESULTS" - if [[ ("${PIPESTATUS[0]}" -ne "0") ]]; then + if [[ ("${PIPESTATUS[0]}" -ne 0) ]]; then echo "ERROR: failed to make cryptest.exe" | tee -a "$TEST_RESULTS" else ./cryptest.exe v 2>&1 | tee -a "$TEST_RESULTS" - if [[ ("${PIPESTATUS[0]}" -ne "0") ]]; then + if [[ ("${PIPESTATUS[0]}" -ne 0) ]]; then echo "ERROR: failed to execute validation suite" | tee -a "$TEST_RESULTS" fi ./cryptest.exe tv all 2>&1 | tee -a "$TEST_RESULTS" - if [[ ("${PIPESTATUS[0]}" -ne "0") ]]; then + if [[ ("${PIPESTATUS[0]}" -ne 0) ]]; then echo "ERROR: failed to execute test vectors" | tee -a "$TEST_RESULTS" fi fi @@ -3069,15 +3072,15 @@ if [[ "$HAVE_GNU14" -ne "0" ]]; then CXXFLAGS="$RELEASE_CXXFLAGS -std=gnu++14 $USER_CXXFLAGS" CXX="$CXX" CXXFLAGS="$CXXFLAGS" "$MAKE" "${MAKEARGS[@]}" static dynamic cryptest.exe 2>&1 | tee -a "$TEST_RESULTS" - if [[ ("${PIPESTATUS[0]}" -ne "0") ]]; then + if [[ ("${PIPESTATUS[0]}" -ne 0) ]]; then echo "ERROR: failed to make cryptest.exe" | tee -a "$TEST_RESULTS" else ./cryptest.exe v 2>&1 | tee -a "$TEST_RESULTS" - if [[ ("${PIPESTATUS[0]}" -ne "0") ]]; then + if [[ ("${PIPESTATUS[0]}" -ne 0) ]]; then echo "ERROR: failed to execute validation suite" | tee -a "$TEST_RESULTS" fi ./cryptest.exe tv all 2>&1 | tee -a "$TEST_RESULTS" - if [[ ("${PIPESTATUS[0]}" -ne "0") ]]; then + if [[ ("${PIPESTATUS[0]}" -ne 0) ]]; then echo "ERROR: failed to execute test vectors" | tee -a "$TEST_RESULTS" fi fi @@ -3085,7 +3088,7 @@ fi ############################################ # c++17 debug and release build -if [[ "$HAVE_CXX17" -ne "0" ]]; then +if [[ "$HAVE_CXX17" -ne 0 ]]; then ############################################ # Debug build @@ -3102,15 +3105,15 @@ if [[ "$HAVE_CXX17" -ne "0" ]]; then CXXFLAGS="$DEBUG_CXXFLAGS -std=c++17 $USER_CXXFLAGS" CXX="$CXX" CXXFLAGS="$CXXFLAGS" "$MAKE" "${MAKEARGS[@]}" static dynamic cryptest.exe 2>&1 | tee -a "$TEST_RESULTS" - if [[ ("${PIPESTATUS[0]}" -ne "0") ]]; then + if [[ ("${PIPESTATUS[0]}" -ne 0) ]]; then echo "ERROR: failed to make cryptest.exe" | tee -a "$TEST_RESULTS" else ./cryptest.exe v 2>&1 | tee -a "$TEST_RESULTS" - if [[ ("${PIPESTATUS[0]}" -ne "0") ]]; then + if [[ ("${PIPESTATUS[0]}" -ne 0) ]]; then echo "ERROR: failed to execute validation suite" | tee -a "$TEST_RESULTS" fi ./cryptest.exe tv all 2>&1 | tee -a "$TEST_RESULTS" - if [[ ("${PIPESTATUS[0]}" -ne "0") ]]; then + if [[ ("${PIPESTATUS[0]}" -ne 0) ]]; then echo "ERROR: failed to execute test vectors" | tee -a "$TEST_RESULTS" fi fi @@ -3130,15 +3133,15 @@ if [[ "$HAVE_CXX17" -ne "0" ]]; then CXXFLAGS="$RELEASE_CXXFLAGS -std=c++17 $USER_CXXFLAGS" CXX="$CXX" CXXFLAGS="$CXXFLAGS" "$MAKE" "${MAKEARGS[@]}" static dynamic cryptest.exe 2>&1 | tee -a "$TEST_RESULTS" - if [[ ("${PIPESTATUS[0]}" -ne "0") ]]; then + if [[ ("${PIPESTATUS[0]}" -ne 0) ]]; then echo "ERROR: failed to make cryptest.exe" | tee -a "$TEST_RESULTS" else ./cryptest.exe v 2>&1 | tee -a "$TEST_RESULTS" - if [[ ("${PIPESTATUS[0]}" -ne "0") ]]; then + if [[ ("${PIPESTATUS[0]}" -ne 0) ]]; then echo "ERROR: failed to execute validation suite" | tee -a "$TEST_RESULTS" fi ./cryptest.exe tv all 2>&1 | tee -a "$TEST_RESULTS" - if [[ ("${PIPESTATUS[0]}" -ne "0") ]]; then + if [[ ("${PIPESTATUS[0]}" -ne 0) ]]; then echo "ERROR: failed to execute test vectors" | tee -a "$TEST_RESULTS" fi fi @@ -3146,7 +3149,7 @@ fi ############################################ # gnu++17 debug and release build -if [[ "$HAVE_GNU17" -ne "0" ]]; then +if [[ "$HAVE_GNU17" -ne 0 ]]; then ############################################ # Debug build @@ -3163,15 +3166,15 @@ if [[ "$HAVE_GNU17" -ne "0" ]]; then CXXFLAGS="$DEBUG_CXXFLAGS -std=gnu++17 $USER_CXXFLAGS" CXX="$CXX" CXXFLAGS="$CXXFLAGS" "$MAKE" "${MAKEARGS[@]}" static dynamic cryptest.exe 2>&1 | tee -a "$TEST_RESULTS" - if [[ ("${PIPESTATUS[0]}" -ne "0") ]]; then + if [[ ("${PIPESTATUS[0]}" -ne 0) ]]; then echo "ERROR: failed to make cryptest.exe" | tee -a "$TEST_RESULTS" else ./cryptest.exe v 2>&1 | tee -a "$TEST_RESULTS" - if [[ ("${PIPESTATUS[0]}" -ne "0") ]]; then + if [[ ("${PIPESTATUS[0]}" -ne 0) ]]; then echo "ERROR: failed to execute validation suite" | tee -a "$TEST_RESULTS" fi ./cryptest.exe tv all 2>&1 | tee -a "$TEST_RESULTS" - if [[ ("${PIPESTATUS[0]}" -ne "0") ]]; then + if [[ ("${PIPESTATUS[0]}" -ne 0) ]]; then echo "ERROR: failed to execute test vectors" | tee -a "$TEST_RESULTS" fi fi @@ -3191,15 +3194,15 @@ if [[ "$HAVE_GNU17" -ne "0" ]]; then CXXFLAGS="$RELEASE_CXXFLAGS -std=gnu++17 $USER_CXXFLAGS" CXX="$CXX" CXXFLAGS="$CXXFLAGS" "$MAKE" "${MAKEARGS[@]}" static dynamic cryptest.exe 2>&1 | tee -a "$TEST_RESULTS" - if [[ ("${PIPESTATUS[0]}" -ne "0") ]]; then + if [[ ("${PIPESTATUS[0]}" -ne 0) ]]; then echo "ERROR: failed to make cryptest.exe" | tee -a "$TEST_RESULTS" else ./cryptest.exe v 2>&1 | tee -a "$TEST_RESULTS" - if [[ ("${PIPESTATUS[0]}" -ne "0") ]]; then + if [[ ("${PIPESTATUS[0]}" -ne 0) ]]; then echo "ERROR: failed to execute validation suite" | tee -a "$TEST_RESULTS" fi ./cryptest.exe tv all 2>&1 | tee -a "$TEST_RESULTS" - if [[ ("${PIPESTATUS[0]}" -ne "0") ]]; then + if [[ ("${PIPESTATUS[0]}" -ne 0) ]]; then echo "ERROR: failed to execute test vectors" | tee -a "$TEST_RESULTS" fi fi @@ -3207,7 +3210,7 @@ fi ############################################ # c++20 debug and release build -if [[ "$HAVE_CXX20" -ne "0" ]]; then +if [[ "$HAVE_CXX20" -ne 0 ]]; then ############################################ # Debug build @@ -3224,15 +3227,15 @@ if [[ "$HAVE_CXX20" -ne "0" ]]; then CXXFLAGS="$DEBUG_CXXFLAGS -std=c++20 $USER_CXXFLAGS" CXX="$CXX" CXXFLAGS="$CXXFLAGS" "$MAKE" "${MAKEARGS[@]}" static dynamic cryptest.exe 2>&1 | tee -a "$TEST_RESULTS" - if [[ ("${PIPESTATUS[0]}" -ne "0") ]]; then + if [[ ("${PIPESTATUS[0]}" -ne 0) ]]; then echo "ERROR: failed to make cryptest.exe" | tee -a "$TEST_RESULTS" else ./cryptest.exe v 2>&1 | tee -a "$TEST_RESULTS" - if [[ ("${PIPESTATUS[0]}" -ne "0") ]]; then + if [[ ("${PIPESTATUS[0]}" -ne 0) ]]; then echo "ERROR: failed to execute validation suite" | tee -a "$TEST_RESULTS" fi ./cryptest.exe tv all 2>&1 | tee -a "$TEST_RESULTS" - if [[ ("${PIPESTATUS[0]}" -ne "0") ]]; then + if [[ ("${PIPESTATUS[0]}" -ne 0) ]]; then echo "ERROR: failed to execute test vectors" | tee -a "$TEST_RESULTS" fi fi @@ -3252,15 +3255,15 @@ if [[ "$HAVE_CXX20" -ne "0" ]]; then CXXFLAGS="$RELEASE_CXXFLAGS -std=c++20 $USER_CXXFLAGS" CXX="$CXX" CXXFLAGS="$CXXFLAGS" "$MAKE" "${MAKEARGS[@]}" static dynamic cryptest.exe 2>&1 | tee -a "$TEST_RESULTS" - if [[ ("${PIPESTATUS[0]}" -ne "0") ]]; then + if [[ ("${PIPESTATUS[0]}" -ne 0) ]]; then echo "ERROR: failed to make cryptest.exe" | tee -a "$TEST_RESULTS" else ./cryptest.exe v 2>&1 | tee -a "$TEST_RESULTS" - if [[ ("${PIPESTATUS[0]}" -ne "0") ]]; then + if [[ ("${PIPESTATUS[0]}" -ne 0) ]]; then echo "ERROR: failed to execute validation suite" | tee -a "$TEST_RESULTS" fi ./cryptest.exe tv all 2>&1 | tee -a "$TEST_RESULTS" - if [[ ("${PIPESTATUS[0]}" -ne "0") ]]; then + if [[ ("${PIPESTATUS[0]}" -ne 0) ]]; then echo "ERROR: failed to execute test vectors" | tee -a "$TEST_RESULTS" fi fi @@ -3268,7 +3271,7 @@ fi ############################################ # gnu++20 debug and release build -if [[ "$HAVE_GNU20" -ne "0" ]]; then +if [[ "$HAVE_GNU20" -ne 0 ]]; then ############################################ # Debug build @@ -3285,15 +3288,15 @@ if [[ "$HAVE_GNU20" -ne "0" ]]; then CXXFLAGS="$DEBUG_CXXFLAGS -std=gnu++20 $USER_CXXFLAGS" CXX="$CXX" CXXFLAGS="$CXXFLAGS" "$MAKE" "${MAKEARGS[@]}" static dynamic cryptest.exe 2>&1 | tee -a "$TEST_RESULTS" - if [[ ("${PIPESTATUS[0]}" -ne "0") ]]; then + if [[ ("${PIPESTATUS[0]}" -ne 0) ]]; then echo "ERROR: failed to make cryptest.exe" | tee -a "$TEST_RESULTS" else ./cryptest.exe v 2>&1 | tee -a "$TEST_RESULTS" - if [[ ("${PIPESTATUS[0]}" -ne "0") ]]; then + if [[ ("${PIPESTATUS[0]}" -ne 0) ]]; then echo "ERROR: failed to execute validation suite" | tee -a "$TEST_RESULTS" fi ./cryptest.exe tv all 2>&1 | tee -a "$TEST_RESULTS" - if [[ ("${PIPESTATUS[0]}" -ne "0") ]]; then + if [[ ("${PIPESTATUS[0]}" -ne 0) ]]; then echo "ERROR: failed to execute test vectors" | tee -a "$TEST_RESULTS" fi fi @@ -3313,15 +3316,15 @@ if [[ "$HAVE_GNU20" -ne "0" ]]; then CXXFLAGS="$RELEASE_CXXFLAGS -std=gnu++20 $USER_CXXFLAGS" CXX="$CXX" CXXFLAGS="$CXXFLAGS" "$MAKE" "${MAKEARGS[@]}" static dynamic cryptest.exe 2>&1 | tee -a "$TEST_RESULTS" - if [[ ("${PIPESTATUS[0]}" -ne "0") ]]; then + if [[ ("${PIPESTATUS[0]}" -ne 0) ]]; then echo "ERROR: failed to make cryptest.exe" | tee -a "$TEST_RESULTS" else ./cryptest.exe v 2>&1 | tee -a "$TEST_RESULTS" - if [[ ("${PIPESTATUS[0]}" -ne "0") ]]; then + if [[ ("${PIPESTATUS[0]}" -ne 0) ]]; then echo "ERROR: failed to execute validation suite" | tee -a "$TEST_RESULTS" fi ./cryptest.exe tv all 2>&1 | tee -a "$TEST_RESULTS" - if [[ ("${PIPESTATUS[0]}" -ne "0") ]]; then + if [[ ("${PIPESTATUS[0]}" -ne 0) ]]; then echo "ERROR: failed to execute test vectors" | tee -a "$TEST_RESULTS" fi fi @@ -3329,7 +3332,7 @@ fi ############################################ # X32 debug and release build -if [[ "$HAVE_X32" -ne "0" ]]; then +if [[ "$HAVE_X32" -ne 0 ]]; then ############################################ # Debug build @@ -3346,15 +3349,15 @@ if [[ "$HAVE_X32" -ne "0" ]]; then CXXFLAGS="$DEBUG_CXXFLAGS -mx32 $USER_CXXFLAGS" CXX="$CXX" CXXFLAGS="$CXXFLAGS" "$MAKE" "${MAKEARGS[@]}" static dynamic cryptest.exe 2>&1 | tee -a "$TEST_RESULTS" - if [[ ("${PIPESTATUS[0]}" -ne "0") ]]; then + if [[ ("${PIPESTATUS[0]}" -ne 0) ]]; then echo "ERROR: failed to make cryptest.exe" | tee -a "$TEST_RESULTS" else ./cryptest.exe v 2>&1 | tee -a "$TEST_RESULTS" - if [[ ("${PIPESTATUS[0]}" -ne "0") ]]; then + if [[ ("${PIPESTATUS[0]}" -ne 0) ]]; then echo "ERROR: failed to execute validation suite" | tee -a "$TEST_RESULTS" fi ./cryptest.exe tv all 2>&1 | tee -a "$TEST_RESULTS" - if [[ ("${PIPESTATUS[0]}" -ne "0") ]]; then + if [[ ("${PIPESTATUS[0]}" -ne 0) ]]; then echo "ERROR: failed to execute test vectors" | tee -a "$TEST_RESULTS" fi fi @@ -3374,15 +3377,15 @@ if [[ "$HAVE_X32" -ne "0" ]]; then CXXFLAGS="$RELEASE_CXXFLAGS -mx32 $USER_CXXFLAGS" CXX="$CXX" CXXFLAGS="$CXXFLAGS" "$MAKE" "${MAKEARGS[@]}" static dynamic cryptest.exe 2>&1 | tee -a "$TEST_RESULTS" - if [[ ("${PIPESTATUS[0]}" -ne "0") ]]; then + if [[ ("${PIPESTATUS[0]}" -ne 0) ]]; then echo "ERROR: failed to make cryptest.exe" | tee -a "$TEST_RESULTS" else ./cryptest.exe v 2>&1 | tee -a "$TEST_RESULTS" - if [[ ("${PIPESTATUS[0]}" -ne "0") ]]; then + if [[ ("${PIPESTATUS[0]}" -ne 0) ]]; then echo "ERROR: failed to execute validation suite" | tee -a "$TEST_RESULTS" fi ./cryptest.exe tv all 2>&1 | tee -a "$TEST_RESULTS" - if [[ ("${PIPESTATUS[0]}" -ne "0") ]]; then + if [[ ("${PIPESTATUS[0]}" -ne 0) ]]; then echo "ERROR: failed to execute test vectors" | tee -a "$TEST_RESULTS" fi fi @@ -3407,15 +3410,15 @@ if true; then CXXFLAGS="$DEBUG_CXXFLAGS -DCRYPTOPP_INIT_PRIORITY=0 $USER_CXXFLAGS" CXX="$CXX" CXXFLAGS="$CXXFLAGS" "$MAKE" "${MAKEARGS[@]}" static dynamic cryptest.exe 2>&1 | tee -a "$TEST_RESULTS" - if [[ ("${PIPESTATUS[0]}" -ne "0") ]]; then + if [[ ("${PIPESTATUS[0]}" -ne 0) ]]; then echo "ERROR: failed to make cryptest.exe" | tee -a "$TEST_RESULTS" else ./cryptest.exe v 2>&1 | tee -a "$TEST_RESULTS" - if [[ ("${PIPESTATUS[0]}" -ne "0") ]]; then + if [[ ("${PIPESTATUS[0]}" -ne 0) ]]; then echo "ERROR: failed to execute validation suite" | tee -a "$TEST_RESULTS" fi ./cryptest.exe tv all 2>&1 | tee -a "$TEST_RESULTS" - if [[ ("${PIPESTATUS[0]}" -ne "0") ]]; then + if [[ ("${PIPESTATUS[0]}" -ne 0) ]]; then echo "ERROR: failed to execute test vectors" | tee -a "$TEST_RESULTS" fi fi @@ -3435,15 +3438,15 @@ if true; then CXXFLAGS="$RELEASE_CXXFLAGS -DCRYPTOPP_INIT_PRIORITY=0 $USER_CXXFLAGS" CXX="$CXX" CXXFLAGS="$CXXFLAGS" "$MAKE" "${MAKEARGS[@]}" static dynamic cryptest.exe 2>&1 | tee -a "$TEST_RESULTS" - if [[ ("${PIPESTATUS[0]}" -ne "0") ]]; then + if [[ ("${PIPESTATUS[0]}" -ne 0) ]]; then echo "ERROR: failed to make cryptest.exe" | tee -a "$TEST_RESULTS" else ./cryptest.exe v 2>&1 | tee -a "$TEST_RESULTS" - if [[ ("${PIPESTATUS[0]}" -ne "0") ]]; then + if [[ ("${PIPESTATUS[0]}" -ne 0) ]]; then echo "ERROR: failed to execute validation suite" | tee -a "$TEST_RESULTS" fi ./cryptest.exe tv all 2>&1 | tee -a "$TEST_RESULTS" - if [[ ("${PIPESTATUS[0]}" -ne "0") ]]; then + if [[ ("${PIPESTATUS[0]}" -ne 0) ]]; then echo "ERROR: failed to execute test vectors" | tee -a "$TEST_RESULTS" fi fi @@ -3468,15 +3471,15 @@ if true; then CXXFLAGS="$DEBUG_CXXFLAGS -DNO_OS_DEPENDENCE $USER_CXXFLAGS" CXX="$CXX" CXXFLAGS="$CXXFLAGS" "$MAKE" "${MAKEARGS[@]}" static dynamic cryptest.exe 2>&1 | tee -a "$TEST_RESULTS" - if [[ ("${PIPESTATUS[0]}" -ne "0") ]]; then + if [[ ("${PIPESTATUS[0]}" -ne 0) ]]; then echo "ERROR: failed to make cryptest.exe" | tee -a "$TEST_RESULTS" else ./cryptest.exe v 2>&1 | tee -a "$TEST_RESULTS" - if [[ ("${PIPESTATUS[0]}" -ne "0") ]]; then + if [[ ("${PIPESTATUS[0]}" -ne 0) ]]; then echo "ERROR: failed to execute validation suite" | tee -a "$TEST_RESULTS" fi ./cryptest.exe tv all 2>&1 | tee -a "$TEST_RESULTS" - if [[ ("${PIPESTATUS[0]}" -ne "0") ]]; then + if [[ ("${PIPESTATUS[0]}" -ne 0) ]]; then echo "ERROR: failed to execute test vectors" | tee -a "$TEST_RESULTS" fi fi @@ -3496,15 +3499,15 @@ if true; then CXXFLAGS="$RELEASE_CXXFLAGS -DNO_OS_DEPENDENCE $USER_CXXFLAGS" CXX="$CXX" CXXFLAGS="$CXXFLAGS" "$MAKE" "${MAKEARGS[@]}" static dynamic cryptest.exe 2>&1 | tee -a "$TEST_RESULTS" - if [[ ("${PIPESTATUS[0]}" -ne "0") ]]; then + if [[ ("${PIPESTATUS[0]}" -ne 0) ]]; then echo "ERROR: failed to make cryptest.exe" | tee -a "$TEST_RESULTS" else ./cryptest.exe v 2>&1 | tee -a "$TEST_RESULTS" - if [[ ("${PIPESTATUS[0]}" -ne "0") ]]; then + if [[ ("${PIPESTATUS[0]}" -ne 0) ]]; then echo "ERROR: failed to execute validation suite" | tee -a "$TEST_RESULTS" fi ./cryptest.exe tv all 2>&1 | tee -a "$TEST_RESULTS" - if [[ ("${PIPESTATUS[0]}" -ne "0") ]]; then + if [[ ("${PIPESTATUS[0]}" -ne 0) ]]; then echo "ERROR: failed to execute test vectors" | tee -a "$TEST_RESULTS" fi fi @@ -3512,7 +3515,7 @@ fi ############################################ # Build with LD-Gold -if [[ "$HAVE_LDGOLD" -ne "0" ]]; then +if [[ "$HAVE_LDGOLD" -ne 0 ]]; then ############################################ # Debug build @@ -3529,15 +3532,15 @@ if [[ "$HAVE_LDGOLD" -ne "0" ]]; then CXXFLAGS="$DEBUG_CXXFLAGS $USER_CXXFLAGS" CXX="$CXX" CXXFLAGS="$CXXFLAGS" LD="ld.gold" "$MAKE" "${MAKEARGS[@]}" static dynamic cryptest.exe 2>&1 | tee -a "$TEST_RESULTS" - if [[ ("${PIPESTATUS[0]}" -ne "0") ]]; then + if [[ ("${PIPESTATUS[0]}" -ne 0) ]]; then echo "ERROR: failed to make cryptest.exe" | tee -a "$TEST_RESULTS" else ./cryptest.exe v 2>&1 | tee -a "$TEST_RESULTS" - if [[ ("${PIPESTATUS[0]}" -ne "0") ]]; then + if [[ ("${PIPESTATUS[0]}" -ne 0) ]]; then echo "ERROR: failed to execute validation suite" | tee -a "$TEST_RESULTS" fi ./cryptest.exe tv all 2>&1 | tee -a "$TEST_RESULTS" - if [[ ("${PIPESTATUS[0]}" -ne "0") ]]; then + if [[ ("${PIPESTATUS[0]}" -ne 0) ]]; then echo "ERROR: failed to execute test vectors" | tee -a "$TEST_RESULTS" fi fi @@ -3557,15 +3560,15 @@ if [[ "$HAVE_LDGOLD" -ne "0" ]]; then CXXFLAGS="$RELEASE_CXXFLAGS $USER_CXXFLAGS" CXX="$CXX" CXXFLAGS="$CXXFLAGS" LD="ld.gold" "$MAKE" "${MAKEARGS[@]}" static dynamic cryptest.exe 2>&1 | tee -a "$TEST_RESULTS" - if [[ ("${PIPESTATUS[0]}" -ne "0") ]]; then + if [[ ("${PIPESTATUS[0]}" -ne 0) ]]; then echo "ERROR: failed to make cryptest.exe" | tee -a "$TEST_RESULTS" else ./cryptest.exe v 2>&1 | tee -a "$TEST_RESULTS" - if [[ ("${PIPESTATUS[0]}" -ne "0") ]]; then + if [[ ("${PIPESTATUS[0]}" -ne 0) ]]; then echo "ERROR: failed to execute validation suite" | tee -a "$TEST_RESULTS" fi ./cryptest.exe tv all 2>&1 | tee -a "$TEST_RESULTS" - if [[ ("${PIPESTATUS[0]}" -ne "0") ]]; then + if [[ ("${PIPESTATUS[0]}" -ne 0) ]]; then echo "ERROR: failed to execute test vectors" | tee -a "$TEST_RESULTS" fi fi @@ -3573,7 +3576,7 @@ fi ############################################ # Build at -O2 -if [[ "$HAVE_O2" -ne "0" ]]; then +if [[ "$HAVE_O2" -ne 0 ]]; then ############################################ # Debug build @@ -3590,15 +3593,15 @@ if [[ "$HAVE_O2" -ne "0" ]]; then CXXFLAGS="-DDEBUG $OPT_O2 $USER_CXXFLAGS" CXX="$CXX" CXXFLAGS="$CXXFLAGS" "$MAKE" "${MAKEARGS[@]}" static dynamic cryptest.exe 2>&1 | tee -a "$TEST_RESULTS" - if [[ ("${PIPESTATUS[0]}" -ne "0") ]]; then + if [[ ("${PIPESTATUS[0]}" -ne 0) ]]; then echo "ERROR: failed to make cryptest.exe" | tee -a "$TEST_RESULTS" else ./cryptest.exe v 2>&1 | tee -a "$TEST_RESULTS" - if [[ ("${PIPESTATUS[0]}" -ne "0") ]]; then + if [[ ("${PIPESTATUS[0]}" -ne 0) ]]; then echo "ERROR: failed to execute validation suite" | tee -a "$TEST_RESULTS" fi ./cryptest.exe tv all 2>&1 | tee -a "$TEST_RESULTS" - if [[ ("${PIPESTATUS[0]}" -ne "0") ]]; then + if [[ ("${PIPESTATUS[0]}" -ne 0) ]]; then echo "ERROR: failed to execute test vectors" | tee -a "$TEST_RESULTS" fi fi @@ -3618,15 +3621,15 @@ if [[ "$HAVE_O2" -ne "0" ]]; then CXXFLAGS="-DNDEBUG $OPT_O2 $USER_CXXFLAGS" CXX="$CXX" CXXFLAGS="$CXXFLAGS" "$MAKE" "${MAKEARGS[@]}" static dynamic cryptest.exe 2>&1 | tee -a "$TEST_RESULTS" - if [[ ("${PIPESTATUS[0]}" -ne "0") ]]; then + if [[ ("${PIPESTATUS[0]}" -ne 0) ]]; then echo "ERROR: failed to make cryptest.exe" | tee -a "$TEST_RESULTS" else ./cryptest.exe v 2>&1 | tee -a "$TEST_RESULTS" - if [[ ("${PIPESTATUS[0]}" -ne "0") ]]; then + if [[ ("${PIPESTATUS[0]}" -ne 0) ]]; then echo "ERROR: failed to execute validation suite" | tee -a "$TEST_RESULTS" fi ./cryptest.exe tv all 2>&1 | tee -a "$TEST_RESULTS" - if [[ ("${PIPESTATUS[0]}" -ne "0") ]]; then + if [[ ("${PIPESTATUS[0]}" -ne 0) ]]; then echo "ERROR: failed to execute test vectors" | tee -a "$TEST_RESULTS" fi fi @@ -3634,7 +3637,7 @@ fi ############################################ # Build at -O3 -if [[ "$HAVE_O3" -ne "0" ]]; then +if [[ "$HAVE_O3" -ne 0 ]]; then ############################################ # Debug build @@ -3651,15 +3654,15 @@ if [[ "$HAVE_O3" -ne "0" ]]; then CXXFLAGS="-DDEBUG $OPT_O3 $USER_CXXFLAGS" CXX="$CXX" CXXFLAGS="$CXXFLAGS" "$MAKE" "${MAKEARGS[@]}" static dynamic cryptest.exe 2>&1 | tee -a "$TEST_RESULTS" - if [[ ("${PIPESTATUS[0]}" -ne "0") ]]; then + if [[ ("${PIPESTATUS[0]}" -ne 0) ]]; then echo "ERROR: failed to make cryptest.exe" | tee -a "$TEST_RESULTS" else ./cryptest.exe v 2>&1 | tee -a "$TEST_RESULTS" - if [[ ("${PIPESTATUS[0]}" -ne "0") ]]; then + if [[ ("${PIPESTATUS[0]}" -ne 0) ]]; then echo "ERROR: failed to execute validation suite" | tee -a "$TEST_RESULTS" fi ./cryptest.exe tv all 2>&1 | tee -a "$TEST_RESULTS" - if [[ ("${PIPESTATUS[0]}" -ne "0") ]]; then + if [[ ("${PIPESTATUS[0]}" -ne 0) ]]; then echo "ERROR: failed to execute test vectors" | tee -a "$TEST_RESULTS" fi fi @@ -3679,15 +3682,15 @@ if [[ "$HAVE_O3" -ne "0" ]]; then CXXFLAGS="-DNDEBUG $OPT_O3 $USER_CXXFLAGS" CXX="$CXX" CXXFLAGS="$CXXFLAGS" "$MAKE" "${MAKEARGS[@]}" static dynamic cryptest.exe 2>&1 | tee -a "$TEST_RESULTS" - if [[ ("${PIPESTATUS[0]}" -ne "0") ]]; then + if [[ ("${PIPESTATUS[0]}" -ne 0) ]]; then echo "ERROR: failed to make cryptest.exe" | tee -a "$TEST_RESULTS" else ./cryptest.exe v 2>&1 | tee -a "$TEST_RESULTS" - if [[ ("${PIPESTATUS[0]}" -ne "0") ]]; then + if [[ ("${PIPESTATUS[0]}" -ne 0) ]]; then echo "ERROR: failed to execute validation suite" | tee -a "$TEST_RESULTS" fi ./cryptest.exe tv all 2>&1 | tee -a "$TEST_RESULTS" - if [[ ("${PIPESTATUS[0]}" -ne "0") ]]; then + if [[ ("${PIPESTATUS[0]}" -ne 0) ]]; then echo "ERROR: failed to execute test vectors" | tee -a "$TEST_RESULTS" fi fi @@ -3695,7 +3698,7 @@ fi ############################################ # Build at -O5 -if [[ "$HAVE_O5" -ne "0" ]]; then +if [[ "$HAVE_O5" -ne 0 ]]; then ############################################ # Debug build @@ -3712,15 +3715,15 @@ if [[ "$HAVE_O5" -ne "0" ]]; then CXXFLAGS="-DDEBUG $OPT_O5 $USER_CXXFLAGS" CXX="$CXX" CXXFLAGS="$CXXFLAGS" "$MAKE" "${MAKEARGS[@]}" static dynamic cryptest.exe 2>&1 | tee -a "$TEST_RESULTS" - if [[ ("${PIPESTATUS[0]}" -ne "0") ]]; then + if [[ ("${PIPESTATUS[0]}" -ne 0) ]]; then echo "ERROR: failed to make cryptest.exe" | tee -a "$TEST_RESULTS" else ./cryptest.exe v 2>&1 | tee -a "$TEST_RESULTS" - if [[ ("${PIPESTATUS[0]}" -ne "0") ]]; then + if [[ ("${PIPESTATUS[0]}" -ne 0) ]]; then echo "ERROR: failed to execute validation suite" | tee -a "$TEST_RESULTS" fi ./cryptest.exe tv all 2>&1 | tee -a "$TEST_RESULTS" - if [[ ("${PIPESTATUS[0]}" -ne "0") ]]; then + if [[ ("${PIPESTATUS[0]}" -ne 0) ]]; then echo "ERROR: failed to execute test vectors" | tee -a "$TEST_RESULTS" fi fi @@ -3740,15 +3743,15 @@ if [[ "$HAVE_O5" -ne "0" ]]; then CXXFLAGS="-DNDEBUG $OPT_O5 $USER_CXXFLAGS" CXX="$CXX" CXXFLAGS="$CXXFLAGS" "$MAKE" "${MAKEARGS[@]}" static dynamic cryptest.exe 2>&1 | tee -a "$TEST_RESULTS" - if [[ ("${PIPESTATUS[0]}" -ne "0") ]]; then + if [[ ("${PIPESTATUS[0]}" -ne 0) ]]; then echo "ERROR: failed to make cryptest.exe" | tee -a "$TEST_RESULTS" else ./cryptest.exe v 2>&1 | tee -a "$TEST_RESULTS" - if [[ ("${PIPESTATUS[0]}" -ne "0") ]]; then + if [[ ("${PIPESTATUS[0]}" -ne 0) ]]; then echo "ERROR: failed to execute validation suite" | tee -a "$TEST_RESULTS" fi ./cryptest.exe tv all 2>&1 | tee -a "$TEST_RESULTS" - if [[ ("${PIPESTATUS[0]}" -ne "0") ]]; then + if [[ ("${PIPESTATUS[0]}" -ne 0) ]]; then echo "ERROR: failed to execute test vectors" | tee -a "$TEST_RESULTS" fi fi @@ -3756,7 +3759,7 @@ fi ############################################ # Build at -Os -if [[ "$HAVE_OS" -ne "0" ]]; then +if [[ "$HAVE_OS" -ne 0 ]]; then ############################################ # Debug build @@ -3773,15 +3776,15 @@ if [[ "$HAVE_OS" -ne "0" ]]; then CXXFLAGS="-DDEBUG $OPT_OS $USER_CXXFLAGS" CXX="$CXX" CXXFLAGS="$CXXFLAGS" "$MAKE" "${MAKEARGS[@]}" static dynamic cryptest.exe 2>&1 | tee -a "$TEST_RESULTS" - if [[ ("${PIPESTATUS[0]}" -ne "0") ]]; then + if [[ ("${PIPESTATUS[0]}" -ne 0) ]]; then echo "ERROR: failed to make cryptest.exe" | tee -a "$TEST_RESULTS" else ./cryptest.exe v 2>&1 | tee -a "$TEST_RESULTS" - if [[ ("${PIPESTATUS[0]}" -ne "0") ]]; then + if [[ ("${PIPESTATUS[0]}" -ne 0) ]]; then echo "ERROR: failed to execute validation suite" | tee -a "$TEST_RESULTS" fi ./cryptest.exe tv all 2>&1 | tee -a "$TEST_RESULTS" - if [[ ("${PIPESTATUS[0]}" -ne "0") ]]; then + if [[ ("${PIPESTATUS[0]}" -ne 0) ]]; then echo "ERROR: failed to execute test vectors" | tee -a "$TEST_RESULTS" fi fi @@ -3801,15 +3804,15 @@ if [[ "$HAVE_OS" -ne "0" ]]; then CXXFLAGS="-DNDEBUG $OPT_OS $USER_CXXFLAGS" CXX="$CXX" CXXFLAGS="$CXXFLAGS" "$MAKE" "${MAKEARGS[@]}" static dynamic cryptest.exe 2>&1 | tee -a "$TEST_RESULTS" - if [[ ("${PIPESTATUS[0]}" -ne "0") ]]; then + if [[ ("${PIPESTATUS[0]}" -ne 0) ]]; then echo "ERROR: failed to make cryptest.exe" | tee -a "$TEST_RESULTS" else ./cryptest.exe v 2>&1 | tee -a "$TEST_RESULTS" - if [[ ("${PIPESTATUS[0]}" -ne "0") ]]; then + if [[ ("${PIPESTATUS[0]}" -ne 0) ]]; then echo "ERROR: failed to execute validation suite" | tee -a "$TEST_RESULTS" fi ./cryptest.exe tv all 2>&1 | tee -a "$TEST_RESULTS" - if [[ ("${PIPESTATUS[0]}" -ne "0") ]]; then + if [[ ("${PIPESTATUS[0]}" -ne 0) ]]; then echo "ERROR: failed to execute test vectors" | tee -a "$TEST_RESULTS" fi fi @@ -3817,7 +3820,7 @@ fi ############################################ # Build at -Ofast -if [[ "$HAVE_OFAST" -ne "0" ]]; then +if [[ "$HAVE_OFAST" -ne 0 ]]; then ############################################ # Debug build @@ -3834,15 +3837,15 @@ if [[ "$HAVE_OFAST" -ne "0" ]]; then CXXFLAGS="-DDEBUG $OPT_OFAST $USER_CXXFLAGS" CXX="$CXX" CXXFLAGS="$CXXFLAGS" "$MAKE" "${MAKEARGS[@]}" static dynamic cryptest.exe 2>&1 | tee -a "$TEST_RESULTS" - if [[ ("${PIPESTATUS[0]}" -ne "0") ]]; then + if [[ ("${PIPESTATUS[0]}" -ne 0) ]]; then echo "ERROR: failed to make cryptest.exe" | tee -a "$TEST_RESULTS" else ./cryptest.exe v 2>&1 | tee -a "$TEST_RESULTS" - if [[ ("${PIPESTATUS[0]}" -ne "0") ]]; then + if [[ ("${PIPESTATUS[0]}" -ne 0) ]]; then echo "ERROR: failed to execute validation suite" | tee -a "$TEST_RESULTS" fi ./cryptest.exe tv all 2>&1 | tee -a "$TEST_RESULTS" - if [[ ("${PIPESTATUS[0]}" -ne "0") ]]; then + if [[ ("${PIPESTATUS[0]}" -ne 0) ]]; then echo "ERROR: failed to execute test vectors" | tee -a "$TEST_RESULTS" fi fi @@ -3862,15 +3865,15 @@ if [[ "$HAVE_OFAST" -ne "0" ]]; then CXXFLAGS="-DNDEBUG $OPT_OFAST $USER_CXXFLAGS" CXX="$CXX" CXXFLAGS="$CXXFLAGS" "$MAKE" "${MAKEARGS[@]}" static dynamic cryptest.exe 2>&1 | tee -a "$TEST_RESULTS" - if [[ ("${PIPESTATUS[0]}" -ne "0") ]]; then + if [[ ("${PIPESTATUS[0]}" -ne 0) ]]; then echo "ERROR: failed to make cryptest.exe" | tee -a "$TEST_RESULTS" else ./cryptest.exe v 2>&1 | tee -a "$TEST_RESULTS" - if [[ ("${PIPESTATUS[0]}" -ne "0") ]]; then + if [[ ("${PIPESTATUS[0]}" -ne 0) ]]; then echo "ERROR: failed to execute validation suite" | tee -a "$TEST_RESULTS" fi ./cryptest.exe tv all 2>&1 | tee -a "$TEST_RESULTS" - if [[ ("${PIPESTATUS[0]}" -ne "0") ]]; then + if [[ ("${PIPESTATUS[0]}" -ne 0) ]]; then echo "ERROR: failed to execute test vectors" | tee -a "$TEST_RESULTS" fi fi @@ -3878,7 +3881,7 @@ fi ############################################ # Dead code stripping -if [[ ("$GNU_LINKER" -eq "1") ]]; then +if [[ ("$GNU_LINKER" -eq 1) ]]; then ############################################ # Debug build @@ -3895,15 +3898,15 @@ if [[ ("$GNU_LINKER" -eq "1") ]]; then CXXFLAGS="$DEBUG_CXXFLAGS $USER_CXXFLAGS" CXX="$CXX" CXXFLAGS="$CXXFLAGS" "$MAKE" "${MAKEARGS[@]}" lean 2>&1 | tee -a "$TEST_RESULTS" - if [[ ("${PIPESTATUS[0]}" -ne "0") ]]; then + if [[ ("${PIPESTATUS[0]}" -ne 0) ]]; then echo "ERROR: failed to make cryptest.exe" | tee -a "$TEST_RESULTS" else ./cryptest.exe v 2>&1 | tee -a "$TEST_RESULTS" - if [[ ("${PIPESTATUS[0]}" -ne "0") ]]; then + if [[ ("${PIPESTATUS[0]}" -ne 0) ]]; then echo "ERROR: failed to execute validation suite" | tee -a "$TEST_RESULTS" fi ./cryptest.exe tv all 2>&1 | tee -a "$TEST_RESULTS" - if [[ ("${PIPESTATUS[0]}" -ne "0") ]]; then + if [[ ("${PIPESTATUS[0]}" -ne 0) ]]; then echo "ERROR: failed to execute test vectors" | tee -a "$TEST_RESULTS" fi fi @@ -3923,15 +3926,15 @@ if [[ ("$GNU_LINKER" -eq "1") ]]; then CXXFLAGS="$RELEASE_CXXFLAGS $USER_CXXFLAGS" CXX="$CXX" CXXFLAGS="$CXXFLAGS" "$MAKE" "${MAKEARGS[@]}" lean 2>&1 | tee -a "$TEST_RESULTS" - if [[ ("${PIPESTATUS[0]}" -ne "0") ]]; then + if [[ ("${PIPESTATUS[0]}" -ne 0) ]]; then echo "ERROR: failed to make cryptest.exe" | tee -a "$TEST_RESULTS" else ./cryptest.exe v 2>&1 | tee -a "$TEST_RESULTS" - if [[ ("${PIPESTATUS[0]}" -ne "0") ]]; then + if [[ ("${PIPESTATUS[0]}" -ne 0) ]]; then echo "ERROR: failed to execute validation suite" | tee -a "$TEST_RESULTS" fi ./cryptest.exe tv all 2>&1 | tee -a "$TEST_RESULTS" - if [[ ("${PIPESTATUS[0]}" -ne "0") ]]; then + if [[ ("${PIPESTATUS[0]}" -ne 0) ]]; then echo "ERROR: failed to execute test vectors" | tee -a "$TEST_RESULTS" fi fi @@ -3939,7 +3942,7 @@ fi ############################################ # OpenMP -if [[ ("$HAVE_OMP" -ne "0") ]]; then +if [[ ("$HAVE_OMP" -ne 0) ]]; then ############################################ # Debug build @@ -3956,15 +3959,15 @@ if [[ ("$HAVE_OMP" -ne "0") ]]; then CXXFLAGS="-DDEBUG ${OMP_FLAGS[*]} $USER_CXXFLAGS" CXX="$CXX" CXXFLAGS="$CXXFLAGS" "$MAKE" "${MAKEARGS[@]}" | tee -a "$TEST_RESULTS" - if [[ ("${PIPESTATUS[0]}" -ne "0") ]]; then + if [[ ("${PIPESTATUS[0]}" -ne 0) ]]; then echo "ERROR: failed to make cryptest.exe" | tee -a "$TEST_RESULTS" else ./cryptest.exe v 2>&1 | tee -a "$TEST_RESULTS" - if [[ ("${PIPESTATUS[0]}" -ne "0") ]]; then + if [[ ("${PIPESTATUS[0]}" -ne 0) ]]; then echo "ERROR: failed to execute validation suite" | tee -a "$TEST_RESULTS" fi ./cryptest.exe tv all 2>&1 | tee -a "$TEST_RESULTS" - if [[ ("${PIPESTATUS[0]}" -ne "0") ]]; then + if [[ ("${PIPESTATUS[0]}" -ne 0) ]]; then echo "ERROR: failed to execute test vectors" | tee -a "$TEST_RESULTS" fi fi @@ -3984,15 +3987,15 @@ if [[ ("$HAVE_OMP" -ne "0") ]]; then CXXFLAGS="-DNDEBUG ${OMP_FLAGS[*]} $USER_CXXFLAGS" CXX="$CXX" CXXFLAGS="$CXXFLAGS" "$MAKE" "${MAKEARGS[@]}" | tee -a "$TEST_RESULTS" - if [[ ("${PIPESTATUS[0]}" -ne "0") ]]; then + if [[ ("${PIPESTATUS[0]}" -ne 0) ]]; then echo "ERROR: failed to make cryptest.exe" | tee -a "$TEST_RESULTS" else ./cryptest.exe v 2>&1 | tee -a "$TEST_RESULTS" - if [[ ("${PIPESTATUS[0]}" -ne "0") ]]; then + if [[ ("${PIPESTATUS[0]}" -ne 0) ]]; then echo "ERROR: failed to execute validation suite" | tee -a "$TEST_RESULTS" fi ./cryptest.exe tv all 2>&1 | tee -a "$TEST_RESULTS" - if [[ ("${PIPESTATUS[0]}" -ne "0") ]]; then + if [[ ("${PIPESTATUS[0]}" -ne 0) ]]; then echo "ERROR: failed to execute test vectors" | tee -a "$TEST_RESULTS" fi fi @@ -4000,7 +4003,7 @@ fi ############################################ # UBSan, c++03 -if [[ ("$HAVE_CXX03" -ne "0" && "$HAVE_UBSAN" -ne "0") ]]; then +if [[ ("$HAVE_CXX03" -ne 0 && "$HAVE_UBSAN" -ne 0) ]]; then ############################################ # Debug build, UBSan, c++03 @@ -4017,15 +4020,15 @@ if [[ ("$HAVE_CXX03" -ne "0" && "$HAVE_UBSAN" -ne "0") ]]; then CXXFLAGS="$DEBUG_CXXFLAGS -std=c++03 $USER_CXXFLAGS" CXX="$CXX" CXXFLAGS="$CXXFLAGS" "$MAKE" "${MAKEARGS[@]}" ubsan | tee -a "$TEST_RESULTS" - if [[ ("${PIPESTATUS[0]}" -ne "0") ]]; then + if [[ ("${PIPESTATUS[0]}" -ne 0) ]]; then echo "ERROR: failed to make cryptest.exe" | tee -a "$TEST_RESULTS" else ./cryptest.exe v 2>&1 | tee -a "$TEST_RESULTS" - if [[ ("${PIPESTATUS[0]}" -ne "0") ]]; then + if [[ ("${PIPESTATUS[0]}" -ne 0) ]]; then echo "ERROR: failed to execute validation suite" | tee -a "$TEST_RESULTS" fi ./cryptest.exe tv all 2>&1 | tee -a "$TEST_RESULTS" - if [[ ("${PIPESTATUS[0]}" -ne "0") ]]; then + if [[ ("${PIPESTATUS[0]}" -ne 0) ]]; then echo "ERROR: failed to execute test vectors" | tee -a "$TEST_RESULTS" fi fi @@ -4045,15 +4048,15 @@ if [[ ("$HAVE_CXX03" -ne "0" && "$HAVE_UBSAN" -ne "0") ]]; then CXXFLAGS="$RELEASE_CXXFLAGS -std=c++03 $USER_CXXFLAGS" CXX="$CXX" CXXFLAGS="$CXXFLAGS" "$MAKE" "${MAKEARGS[@]}" ubsan | tee -a "$TEST_RESULTS" - if [[ ("${PIPESTATUS[0]}" -ne "0") ]]; then + if [[ ("${PIPESTATUS[0]}" -ne 0) ]]; then echo "ERROR: failed to make cryptest.exe" | tee -a "$TEST_RESULTS" else ./cryptest.exe v 2>&1 | tee -a "$TEST_RESULTS" - if [[ ("${PIPESTATUS[0]}" -ne "0") ]]; then + if [[ ("${PIPESTATUS[0]}" -ne 0) ]]; then echo "ERROR: failed to execute validation suite" | tee -a "$TEST_RESULTS" fi ./cryptest.exe tv all 2>&1 | tee -a "$TEST_RESULTS" - if [[ ("${PIPESTATUS[0]}" -ne "0") ]]; then + if [[ ("${PIPESTATUS[0]}" -ne 0) ]]; then echo "ERROR: failed to execute test vectors" | tee -a "$TEST_RESULTS" fi fi @@ -4061,7 +4064,7 @@ fi ############################################ # Asan, c++03 -if [[ ("$HAVE_CXX03" -ne "0" && "$HAVE_ASAN" -ne "0") ]]; then +if [[ ("$HAVE_CXX03" -ne 0 && "$HAVE_ASAN" -ne 0) ]]; then ############################################ # Debug build, Asan, c++03 @@ -4078,25 +4081,25 @@ if [[ ("$HAVE_CXX03" -ne "0" && "$HAVE_ASAN" -ne "0") ]]; then CXXFLAGS="$DEBUG_CXXFLAGS -std=c++03 $USER_CXXFLAGS" CXX="$CXX" CXXFLAGS="$CXXFLAGS" "$MAKE" "${MAKEARGS[@]}" asan | tee -a "$TEST_RESULTS" - if [[ ("${PIPESTATUS[0]}" -ne "0") ]]; then + if [[ ("${PIPESTATUS[0]}" -ne 0) ]]; then echo "ERROR: failed to make cryptest.exe" | tee -a "$TEST_RESULTS" else - if [[ ("$HAVE_SYMBOLIZE" -ne "0") ]]; then + if [[ ("$HAVE_SYMBOLIZE" -ne 0) ]]; then ./cryptest.exe v 2>&1 | "$ASAN_SYMBOLIZE" 2>&1 | tee -a "$TEST_RESULTS" - if [[ ("${PIPESTATUS[0]}" -ne "0") ]]; then + if [[ ("${PIPESTATUS[0]}" -ne 0) ]]; then echo "ERROR: failed to execute validation suite" | tee -a "$TEST_RESULTS" fi ./cryptest.exe tv all 2>&1 | "$ASAN_SYMBOLIZE" 2>&1 | tee -a "$TEST_RESULTS" - if [[ ("${PIPESTATUS[0]}" -ne "0") ]]; then + if [[ ("${PIPESTATUS[0]}" -ne 0) ]]; then echo "ERROR: failed to execute test vectors" | tee -a "$TEST_RESULTS" fi else ./cryptest.exe v 2>&1 | tee -a "$TEST_RESULTS" - if [[ ("${PIPESTATUS[0]}" -ne "0") ]]; then + if [[ ("${PIPESTATUS[0]}" -ne 0) ]]; then echo "ERROR: failed to execute validation suite" | tee -a "$TEST_RESULTS" fi ./cryptest.exe tv all 2>&1 | tee -a "$TEST_RESULTS" - if [[ ("${PIPESTATUS[0]}" -ne "0") ]]; then + if [[ ("${PIPESTATUS[0]}" -ne 0) ]]; then echo "ERROR: failed to execute test vectors" | tee -a "$TEST_RESULTS" fi fi @@ -4118,25 +4121,25 @@ if [[ ("$HAVE_CXX03" -ne "0" && "$HAVE_ASAN" -ne "0") ]]; then CXXFLAGS="$RELEASE_CXXFLAGS -std=c++03 $USER_CXXFLAGS" CXX="$CXX" CXXFLAGS="$CXXFLAGS" "$MAKE" "${MAKEARGS[@]}" asan | tee -a "$TEST_RESULTS" - if [[ ("${PIPESTATUS[0]}" -ne "0") ]]; then + if [[ ("${PIPESTATUS[0]}" -ne 0) ]]; then echo "ERROR: failed to make cryptest.exe" | tee -a "$TEST_RESULTS" else - if [[ ("$HAVE_SYMBOLIZE" -ne "0") ]]; then + if [[ ("$HAVE_SYMBOLIZE" -ne 0) ]]; then ./cryptest.exe v 2>&1 | "$ASAN_SYMBOLIZE" 2>&1 | tee -a "$TEST_RESULTS" - if [[ ("${PIPESTATUS[0]}" -ne "0") ]]; then + if [[ ("${PIPESTATUS[0]}" -ne 0) ]]; then echo "ERROR: failed to execute validation suite" | tee -a "$TEST_RESULTS" fi ./cryptest.exe tv all 2>&1 | "$ASAN_SYMBOLIZE" 2>&1 | tee -a "$TEST_RESULTS" - if [[ ("${PIPESTATUS[0]}" -ne "0") ]]; then + if [[ ("${PIPESTATUS[0]}" -ne 0) ]]; then echo "ERROR: failed to execute test vectors" | tee -a "$TEST_RESULTS" fi else ./cryptest.exe v 2>&1 | tee -a "$TEST_RESULTS" - if [[ ("${PIPESTATUS[0]}" -ne "0") ]]; then + if [[ ("${PIPESTATUS[0]}" -ne 0) ]]; then echo "ERROR: failed to execute validation suite" | tee -a "$TEST_RESULTS" fi ./cryptest.exe tv all 2>&1 | tee -a "$TEST_RESULTS" - if [[ ("${PIPESTATUS[0]}" -ne "0") ]]; then + if [[ ("${PIPESTATUS[0]}" -ne 0) ]]; then echo "ERROR: failed to execute test vectors" | tee -a "$TEST_RESULTS" fi fi @@ -4145,7 +4148,7 @@ fi ############################################ # Bounds Sanitizer, c++03 -if [[ ("$HAVE_CXX03" -ne "0" && "$HAVE_BSAN" -ne "0") ]]; then +if [[ ("$HAVE_CXX03" -ne 0 && "$HAVE_BSAN" -ne 0) ]]; then ############################################ # Debug build, Bounds Sanitizer, c++03 @@ -4162,25 +4165,25 @@ if [[ ("$HAVE_CXX03" -ne "0" && "$HAVE_BSAN" -ne "0") ]]; then CXXFLAGS="$DEBUG_CXXFLAGS -std=c++03 -fsanitize=bounds-strict $USER_CXXFLAGS" CXX="$CXX" CXXFLAGS="$CXXFLAGS" "$MAKE" "${MAKEARGS[@]}" | tee -a "$TEST_RESULTS" - if [[ ("${PIPESTATUS[0]}" -ne "0") ]]; then + if [[ ("${PIPESTATUS[0]}" -ne 0) ]]; then echo "ERROR: failed to make cryptest.exe" | tee -a "$TEST_RESULTS" else - if [[ ("$HAVE_SYMBOLIZE" -ne "0") ]]; then + if [[ ("$HAVE_SYMBOLIZE" -ne 0) ]]; then ./cryptest.exe v 2>&1 | "$ASAN_SYMBOLIZE" 2>&1 | tee -a "$TEST_RESULTS" - if [[ ("${PIPESTATUS[0]}" -ne "0") ]]; then + if [[ ("${PIPESTATUS[0]}" -ne 0) ]]; then echo "ERROR: failed to execute validation suite" | tee -a "$TEST_RESULTS" fi ./cryptest.exe tv all 2>&1 | "$ASAN_SYMBOLIZE" 2>&1 | tee -a "$TEST_RESULTS" - if [[ ("${PIPESTATUS[0]}" -ne "0") ]]; then + if [[ ("${PIPESTATUS[0]}" -ne 0) ]]; then echo "ERROR: failed to execute test vectors" | tee -a "$TEST_RESULTS" fi else ./cryptest.exe v 2>&1 | tee -a "$TEST_RESULTS" - if [[ ("${PIPESTATUS[0]}" -ne "0") ]]; then + if [[ ("${PIPESTATUS[0]}" -ne 0) ]]; then echo "ERROR: failed to execute validation suite" | tee -a "$TEST_RESULTS" fi ./cryptest.exe tv all 2>&1 | tee -a "$TEST_RESULTS" - if [[ ("${PIPESTATUS[0]}" -ne "0") ]]; then + if [[ ("${PIPESTATUS[0]}" -ne 0) ]]; then echo "ERROR: failed to execute test vectors" | tee -a "$TEST_RESULTS" fi fi @@ -4202,25 +4205,25 @@ if [[ ("$HAVE_CXX03" -ne "0" && "$HAVE_BSAN" -ne "0") ]]; then CXXFLAGS="$RELEASE_CXXFLAGS -std=c++03 -fsanitize=bounds-strict $USER_CXXFLAGS" CXX="$CXX" CXXFLAGS="$CXXFLAGS" "$MAKE" "${MAKEARGS[@]}" | tee -a "$TEST_RESULTS" - if [[ ("${PIPESTATUS[0]}" -ne "0") ]]; then + if [[ ("${PIPESTATUS[0]}" -ne 0) ]]; then echo "ERROR: failed to make cryptest.exe" | tee -a "$TEST_RESULTS" else - if [[ ("$HAVE_SYMBOLIZE" -ne "0") ]]; then + if [[ ("$HAVE_SYMBOLIZE" -ne 0) ]]; then ./cryptest.exe v 2>&1 | "$ASAN_SYMBOLIZE" 2>&1 | tee -a "$TEST_RESULTS" - if [[ ("${PIPESTATUS[0]}" -ne "0") ]]; then + if [[ ("${PIPESTATUS[0]}" -ne 0) ]]; then echo "ERROR: failed to execute validation suite" | tee -a "$TEST_RESULTS" fi ./cryptest.exe tv all 2>&1 | "$ASAN_SYMBOLIZE" 2>&1 | tee -a "$TEST_RESULTS" - if [[ ("${PIPESTATUS[0]}" -ne "0") ]]; then + if [[ ("${PIPESTATUS[0]}" -ne 0) ]]; then echo "ERROR: failed to execute test vectors" | tee -a "$TEST_RESULTS" fi else ./cryptest.exe v 2>&1 | tee -a "$TEST_RESULTS" - if [[ ("${PIPESTATUS[0]}" -ne "0") ]]; then + if [[ ("${PIPESTATUS[0]}" -ne 0) ]]; then echo "ERROR: failed to execute validation suite" | tee -a "$TEST_RESULTS" fi ./cryptest.exe tv all 2>&1 | tee -a "$TEST_RESULTS" - if [[ ("${PIPESTATUS[0]}" -ne "0") ]]; then + if [[ ("${PIPESTATUS[0]}" -ne 0) ]]; then echo "ERROR: failed to execute test vectors" | tee -a "$TEST_RESULTS" fi fi @@ -4229,7 +4232,7 @@ fi ############################################ # Control-flow Enforcement Technology (CET), c++03 -if [[ ("$HAVE_CXX11" -ne "0" && "$HAVE_CET" -ne "0") ]]; then +if [[ ("$HAVE_CXX11" -ne 0 && "$HAVE_CET" -ne 0) ]]; then ############################################ # Debug build, CET, c++03 @@ -4246,15 +4249,15 @@ if [[ ("$HAVE_CXX11" -ne "0" && "$HAVE_CET" -ne "0") ]]; then CXXFLAGS="$DEBUG_CXXFLAGS -std=c++03 -fcf-protection=full -mcet $USER_CXXFLAGS" CXX="$CXX" CXXFLAGS="$CXXFLAGS" "$MAKE" "${MAKEARGS[@]}" | tee -a "$TEST_RESULTS" - if [[ ("${PIPESTATUS[0]}" -ne "0") ]]; then + if [[ ("${PIPESTATUS[0]}" -ne 0) ]]; then echo "ERROR: failed to make cryptest.exe" | tee -a "$TEST_RESULTS" else ./cryptest.exe v 2>&1 | tee -a "$TEST_RESULTS" - if [[ ("${PIPESTATUS[0]}" -ne "0") ]]; then + if [[ ("${PIPESTATUS[0]}" -ne 0) ]]; then echo "ERROR: failed to execute validation suite" | tee -a "$TEST_RESULTS" fi ./cryptest.exe tv all 2>&1 | tee -a "$TEST_RESULTS" - if [[ ("${PIPESTATUS[0]}" -ne "0") ]]; then + if [[ ("${PIPESTATUS[0]}" -ne 0) ]]; then echo "ERROR: failed to execute test vectors" | tee -a "$TEST_RESULTS" fi fi @@ -4274,15 +4277,15 @@ if [[ ("$HAVE_CXX11" -ne "0" && "$HAVE_CET" -ne "0") ]]; then CXXFLAGS="$RELEASE_CXXFLAGS -std=c++03 -fcf-protection=full -mcet $USER_CXXFLAGS" CXX="$CXX" CXXFLAGS="$CXXFLAGS" "$MAKE" "${MAKEARGS[@]}" | tee -a "$TEST_RESULTS" - if [[ ("${PIPESTATUS[0]}" -ne "0") ]]; then + if [[ ("${PIPESTATUS[0]}" -ne 0) ]]; then echo "ERROR: failed to make cryptest.exe" | tee -a "$TEST_RESULTS" else ./cryptest.exe v 2>&1 | tee -a "$TEST_RESULTS" - if [[ ("${PIPESTATUS[0]}" -ne "0") ]]; then + if [[ ("${PIPESTATUS[0]}" -ne 0) ]]; then echo "ERROR: failed to execute validation suite" | tee -a "$TEST_RESULTS" fi ./cryptest.exe tv all 2>&1 | tee -a "$TEST_RESULTS" - if [[ ("${PIPESTATUS[0]}" -ne "0") ]]; then + if [[ ("${PIPESTATUS[0]}" -ne 0) ]]; then echo "ERROR: failed to execute test vectors" | tee -a "$TEST_RESULTS" fi fi @@ -4290,7 +4293,7 @@ fi ############################################ # Specter, c++03 -if [[ ("$HAVE_CXX11" -ne "0" && "$HAVE_REPTOLINE" -ne "0") ]]; then +if [[ ("$HAVE_CXX11" -ne 0 && "$HAVE_REPTOLINE" -ne 0) ]]; then ############################################ # Debug build, Specter, c++03 @@ -4307,15 +4310,15 @@ if [[ ("$HAVE_CXX11" -ne "0" && "$HAVE_REPTOLINE" -ne "0") ]]; then CXXFLAGS="$DEBUG_CXXFLAGS -std=c++03 -mfunction-return=thunk -mindirect-branch=thunk $USER_CXXFLAGS" CXX="$CXX" CXXFLAGS="$CXXFLAGS" "$MAKE" "${MAKEARGS[@]}" | tee -a "$TEST_RESULTS" - if [[ ("${PIPESTATUS[0]}" -ne "0") ]]; then + if [[ ("${PIPESTATUS[0]}" -ne 0) ]]; then echo "ERROR: failed to make cryptest.exe" | tee -a "$TEST_RESULTS" else ./cryptest.exe v 2>&1 | tee -a "$TEST_RESULTS" - if [[ ("${PIPESTATUS[0]}" -ne "0") ]]; then + if [[ ("${PIPESTATUS[0]}" -ne 0) ]]; then echo "ERROR: failed to execute validation suite" | tee -a "$TEST_RESULTS" fi ./cryptest.exe tv all 2>&1 | tee -a "$TEST_RESULTS" - if [[ ("${PIPESTATUS[0]}" -ne "0") ]]; then + if [[ ("${PIPESTATUS[0]}" -ne 0) ]]; then echo "ERROR: failed to execute test vectors" | tee -a "$TEST_RESULTS" fi fi @@ -4335,15 +4338,15 @@ if [[ ("$HAVE_CXX11" -ne "0" && "$HAVE_REPTOLINE" -ne "0") ]]; then CXXFLAGS="$RELEASE_CXXFLAGS -std=c++03 -mfunction-return=thunk -mindirect-branch=thunk $USER_CXXFLAGS" CXX="$CXX" CXXFLAGS="$CXXFLAGS" "$MAKE" "${MAKEARGS[@]}" | tee -a "$TEST_RESULTS" - if [[ ("${PIPESTATUS[0]}" -ne "0") ]]; then + if [[ ("${PIPESTATUS[0]}" -ne 0) ]]; then echo "ERROR: failed to make cryptest.exe" | tee -a "$TEST_RESULTS" else ./cryptest.exe v 2>&1 | tee -a "$TEST_RESULTS" - if [[ ("${PIPESTATUS[0]}" -ne "0") ]]; then + if [[ ("${PIPESTATUS[0]}" -ne 0) ]]; then echo "ERROR: failed to execute validation suite" | tee -a "$TEST_RESULTS" fi ./cryptest.exe tv all 2>&1 | tee -a "$TEST_RESULTS" - if [[ ("${PIPESTATUS[0]}" -ne "0") ]]; then + if [[ ("${PIPESTATUS[0]}" -ne 0) ]]; then echo "ERROR: failed to execute test vectors" | tee -a "$TEST_RESULTS" fi fi @@ -4351,7 +4354,7 @@ fi ############################################ # UBSan, c++11 -if [[ ("$HAVE_CXX11" -ne "0" && "$HAVE_UBSAN" -ne "0") ]]; then +if [[ ("$HAVE_CXX11" -ne 0 && "$HAVE_UBSAN" -ne 0) ]]; then ############################################ # Debug build, UBSan, c++11 @@ -4368,15 +4371,15 @@ if [[ ("$HAVE_CXX11" -ne "0" && "$HAVE_UBSAN" -ne "0") ]]; then CXXFLAGS="$DEBUG_CXXFLAGS -std=c++11 $USER_CXXFLAGS" CXX="$CXX" CXXFLAGS="$CXXFLAGS" "$MAKE" "${MAKEARGS[@]}" ubsan | tee -a "$TEST_RESULTS" - if [[ ("${PIPESTATUS[0]}" -ne "0") ]]; then + if [[ ("${PIPESTATUS[0]}" -ne 0) ]]; then echo "ERROR: failed to make cryptest.exe" | tee -a "$TEST_RESULTS" else ./cryptest.exe v 2>&1 | tee -a "$TEST_RESULTS" - if [[ ("${PIPESTATUS[0]}" -ne "0") ]]; then + if [[ ("${PIPESTATUS[0]}" -ne 0) ]]; then echo "ERROR: failed to execute validation suite" | tee -a "$TEST_RESULTS" fi ./cryptest.exe tv all 2>&1 | tee -a "$TEST_RESULTS" - if [[ ("${PIPESTATUS[0]}" -ne "0") ]]; then + if [[ ("${PIPESTATUS[0]}" -ne 0) ]]; then echo "ERROR: failed to execute test vectors" | tee -a "$TEST_RESULTS" fi fi @@ -4396,15 +4399,15 @@ if [[ ("$HAVE_CXX11" -ne "0" && "$HAVE_UBSAN" -ne "0") ]]; then CXXFLAGS="$RELEASE_CXXFLAGS -std=c++11 $USER_CXXFLAGS" CXX="$CXX" CXXFLAGS="$CXXFLAGS" "$MAKE" "${MAKEARGS[@]}" ubsan | tee -a "$TEST_RESULTS" - if [[ ("${PIPESTATUS[0]}" -ne "0") ]]; then + if [[ ("${PIPESTATUS[0]}" -ne 0) ]]; then echo "ERROR: failed to make cryptest.exe" | tee -a "$TEST_RESULTS" else ./cryptest.exe v 2>&1 | tee -a "$TEST_RESULTS" - if [[ ("${PIPESTATUS[0]}" -ne "0") ]]; then + if [[ ("${PIPESTATUS[0]}" -ne 0) ]]; then echo "ERROR: failed to execute validation suite" | tee -a "$TEST_RESULTS" fi ./cryptest.exe tv all 2>&1 | tee -a "$TEST_RESULTS" - if [[ ("${PIPESTATUS[0]}" -ne "0") ]]; then + if [[ ("${PIPESTATUS[0]}" -ne 0) ]]; then echo "ERROR: failed to execute test vectors" | tee -a "$TEST_RESULTS" fi fi @@ -4412,7 +4415,7 @@ fi ############################################ # Asan, c++11 -if [[ ("$HAVE_CXX11" -ne "0" && "$HAVE_ASAN" -ne "0") ]]; then +if [[ ("$HAVE_CXX11" -ne 0 && "$HAVE_ASAN" -ne 0) ]]; then ############################################ # Debug build, Asan, c++11 @@ -4429,25 +4432,25 @@ if [[ ("$HAVE_CXX11" -ne "0" && "$HAVE_ASAN" -ne "0") ]]; then CXXFLAGS="$DEBUG_CXXFLAGS -std=c++11 $USER_CXXFLAGS" CXX="$CXX" CXXFLAGS="$CXXFLAGS" "$MAKE" "${MAKEARGS[@]}" asan | tee -a "$TEST_RESULTS" - if [[ ("${PIPESTATUS[0]}" -ne "0") ]]; then + if [[ ("${PIPESTATUS[0]}" -ne 0) ]]; then echo "ERROR: failed to make cryptest.exe" | tee -a "$TEST_RESULTS" else - if [[ ("$HAVE_SYMBOLIZE" -ne "0") ]]; then + if [[ ("$HAVE_SYMBOLIZE" -ne 0) ]]; then ./cryptest.exe v 2>&1 | "$ASAN_SYMBOLIZE" 2>&1 | tee -a "$TEST_RESULTS" - if [[ ("${PIPESTATUS[0]}" -ne "0") ]]; then + if [[ ("${PIPESTATUS[0]}" -ne 0) ]]; then echo "ERROR: failed to execute validation suite" | tee -a "$TEST_RESULTS" fi ./cryptest.exe tv all 2>&1 | "$ASAN_SYMBOLIZE" 2>&1 | tee -a "$TEST_RESULTS" - if [[ ("${PIPESTATUS[0]}" -ne "0") ]]; then + if [[ ("${PIPESTATUS[0]}" -ne 0) ]]; then echo "ERROR: failed to execute test vectors" | tee -a "$TEST_RESULTS" fi else ./cryptest.exe v 2>&1 | tee -a "$TEST_RESULTS" - if [[ ("${PIPESTATUS[0]}" -ne "0") ]]; then + if [[ ("${PIPESTATUS[0]}" -ne 0) ]]; then echo "ERROR: failed to execute validation suite" | tee -a "$TEST_RESULTS" fi ./cryptest.exe tv all 2>&1 | tee -a "$TEST_RESULTS" - if [[ ("${PIPESTATUS[0]}" -ne "0") ]]; then + if [[ ("${PIPESTATUS[0]}" -ne 0) ]]; then echo "ERROR: failed to execute test vectors" | tee -a "$TEST_RESULTS" fi fi @@ -4469,25 +4472,25 @@ if [[ ("$HAVE_CXX11" -ne "0" && "$HAVE_ASAN" -ne "0") ]]; then CXXFLAGS="$RELEASE_CXXFLAGS -std=c++11 $USER_CXXFLAGS" CXX="$CXX" CXXFLAGS="$CXXFLAGS" "$MAKE" "${MAKEARGS[@]}" asan | tee -a "$TEST_RESULTS" - if [[ ("${PIPESTATUS[0]}" -ne "0") ]]; then + if [[ ("${PIPESTATUS[0]}" -ne 0) ]]; then echo "ERROR: failed to make cryptest.exe" | tee -a "$TEST_RESULTS" else - if [[ ("$HAVE_SYMBOLIZE" -ne "0") ]]; then + if [[ ("$HAVE_SYMBOLIZE" -ne 0) ]]; then ./cryptest.exe v 2>&1 | "$ASAN_SYMBOLIZE" 2>&1 | tee -a "$TEST_RESULTS" - if [[ ("${PIPESTATUS[0]}" -ne "0") ]]; then + if [[ ("${PIPESTATUS[0]}" -ne 0) ]]; then echo "ERROR: failed to execute validation suite" | tee -a "$TEST_RESULTS" fi ./cryptest.exe tv all 2>&1 | "$ASAN_SYMBOLIZE" 2>&1 | tee -a "$TEST_RESULTS" - if [[ ("${PIPESTATUS[0]}" -ne "0") ]]; then + if [[ ("${PIPESTATUS[0]}" -ne 0) ]]; then echo "ERROR: failed to execute test vectors" | tee -a "$TEST_RESULTS" fi else ./cryptest.exe v 2>&1 | tee -a "$TEST_RESULTS" - if [[ ("${PIPESTATUS[0]}" -ne "0") ]]; then + if [[ ("${PIPESTATUS[0]}" -ne 0) ]]; then echo "ERROR: failed to execute validation suite" | tee -a "$TEST_RESULTS" fi ./cryptest.exe tv all 2>&1 | tee -a "$TEST_RESULTS" - if [[ ("${PIPESTATUS[0]}" -ne "0") ]]; then + if [[ ("${PIPESTATUS[0]}" -ne 0) ]]; then echo "ERROR: failed to execute test vectors" | tee -a "$TEST_RESULTS" fi fi @@ -4496,7 +4499,7 @@ fi ############################################ # Bounds Sanitizer, c++11 -if [[ ("$HAVE_CXX11" -ne "0" && "$HAVE_BSAN" -ne "0") ]]; then +if [[ ("$HAVE_CXX11" -ne 0 && "$HAVE_BSAN" -ne 0) ]]; then ############################################ # Debug build, Bounds Sanitizer, c++11 @@ -4513,25 +4516,25 @@ if [[ ("$HAVE_CXX11" -ne "0" && "$HAVE_BSAN" -ne "0") ]]; then CXXFLAGS="$DEBUG_CXXFLAGS -std=c++11 -fsanitize=bounds-strict $USER_CXXFLAGS" CXX="$CXX" CXXFLAGS="$CXXFLAGS" "$MAKE" "${MAKEARGS[@]}" | tee -a "$TEST_RESULTS" - if [[ ("${PIPESTATUS[0]}" -ne "0") ]]; then + if [[ ("${PIPESTATUS[0]}" -ne 0) ]]; then echo "ERROR: failed to make cryptest.exe" | tee -a "$TEST_RESULTS" else - if [[ ("$HAVE_SYMBOLIZE" -ne "0") ]]; then + if [[ ("$HAVE_SYMBOLIZE" -ne 0) ]]; then ./cryptest.exe v 2>&1 | "$ASAN_SYMBOLIZE" 2>&1 | tee -a "$TEST_RESULTS" - if [[ ("${PIPESTATUS[0]}" -ne "0") ]]; then + if [[ ("${PIPESTATUS[0]}" -ne 0) ]]; then echo "ERROR: failed to execute validation suite" | tee -a "$TEST_RESULTS" fi ./cryptest.exe tv all 2>&1 | "$ASAN_SYMBOLIZE" 2>&1 | tee -a "$TEST_RESULTS" - if [[ ("${PIPESTATUS[0]}" -ne "0") ]]; then + if [[ ("${PIPESTATUS[0]}" -ne 0) ]]; then echo "ERROR: failed to execute test vectors" | tee -a "$TEST_RESULTS" fi else ./cryptest.exe v 2>&1 | tee -a "$TEST_RESULTS" - if [[ ("${PIPESTATUS[0]}" -ne "0") ]]; then + if [[ ("${PIPESTATUS[0]}" -ne 0) ]]; then echo "ERROR: failed to execute validation suite" | tee -a "$TEST_RESULTS" fi ./cryptest.exe tv all 2>&1 | tee -a "$TEST_RESULTS" - if [[ ("${PIPESTATUS[0]}" -ne "0") ]]; then + if [[ ("${PIPESTATUS[0]}" -ne 0) ]]; then echo "ERROR: failed to execute test vectors" | tee -a "$TEST_RESULTS" fi fi @@ -4553,25 +4556,25 @@ if [[ ("$HAVE_CXX11" -ne "0" && "$HAVE_BSAN" -ne "0") ]]; then CXXFLAGS="$RELEASE_CXXFLAGS -std=c++11 -fsanitize=bounds-strict $USER_CXXFLAGS" CXX="$CXX" CXXFLAGS="$CXXFLAGS" "$MAKE" "${MAKEARGS[@]}" | tee -a "$TEST_RESULTS" - if [[ ("${PIPESTATUS[0]}" -ne "0") ]]; then + if [[ ("${PIPESTATUS[0]}" -ne 0) ]]; then echo "ERROR: failed to make cryptest.exe" | tee -a "$TEST_RESULTS" else - if [[ ("$HAVE_SYMBOLIZE" -ne "0") ]]; then + if [[ ("$HAVE_SYMBOLIZE" -ne 0) ]]; then ./cryptest.exe v 2>&1 | "$ASAN_SYMBOLIZE" 2>&1 | tee -a "$TEST_RESULTS" - if [[ ("${PIPESTATUS[0]}" -ne "0") ]]; then + if [[ ("${PIPESTATUS[0]}" -ne 0) ]]; then echo "ERROR: failed to execute validation suite" | tee -a "$TEST_RESULTS" fi ./cryptest.exe tv all 2>&1 | "$ASAN_SYMBOLIZE" 2>&1 | tee -a "$TEST_RESULTS" - if [[ ("${PIPESTATUS[0]}" -ne "0") ]]; then + if [[ ("${PIPESTATUS[0]}" -ne 0) ]]; then echo "ERROR: failed to execute test vectors" | tee -a "$TEST_RESULTS" fi else ./cryptest.exe v 2>&1 | tee -a "$TEST_RESULTS" - if [[ ("${PIPESTATUS[0]}" -ne "0") ]]; then + if [[ ("${PIPESTATUS[0]}" -ne 0) ]]; then echo "ERROR: failed to execute validation suite" | tee -a "$TEST_RESULTS" fi ./cryptest.exe tv all 2>&1 | tee -a "$TEST_RESULTS" - if [[ ("${PIPESTATUS[0]}" -ne "0") ]]; then + if [[ ("${PIPESTATUS[0]}" -ne 0) ]]; then echo "ERROR: failed to execute test vectors" | tee -a "$TEST_RESULTS" fi fi @@ -4580,7 +4583,7 @@ fi ############################################ # Control-flow Enforcement Technology (CET), c++11 -if [[ ("$HAVE_CXX11" -ne "0" && "$HAVE_CET" -ne "0") ]]; then +if [[ ("$HAVE_CXX11" -ne 0 && "$HAVE_CET" -ne 0) ]]; then ############################################ # Debug build, CET, c++11 @@ -4597,15 +4600,15 @@ if [[ ("$HAVE_CXX11" -ne "0" && "$HAVE_CET" -ne "0") ]]; then CXXFLAGS="$DEBUG_CXXFLAGS -std=c++11 -fcf-protection=full -mcet $USER_CXXFLAGS" CXX="$CXX" CXXFLAGS="$CXXFLAGS" "$MAKE" "${MAKEARGS[@]}" | tee -a "$TEST_RESULTS" - if [[ ("${PIPESTATUS[0]}" -ne "0") ]]; then + if [[ ("${PIPESTATUS[0]}" -ne 0) ]]; then echo "ERROR: failed to make cryptest.exe" | tee -a "$TEST_RESULTS" else ./cryptest.exe v 2>&1 | tee -a "$TEST_RESULTS" - if [[ ("${PIPESTATUS[0]}" -ne "0") ]]; then + if [[ ("${PIPESTATUS[0]}" -ne 0) ]]; then echo "ERROR: failed to execute validation suite" | tee -a "$TEST_RESULTS" fi ./cryptest.exe tv all 2>&1 | tee -a "$TEST_RESULTS" - if [[ ("${PIPESTATUS[0]}" -ne "0") ]]; then + if [[ ("${PIPESTATUS[0]}" -ne 0) ]]; then echo "ERROR: failed to execute test vectors" | tee -a "$TEST_RESULTS" fi fi @@ -4625,15 +4628,15 @@ if [[ ("$HAVE_CXX11" -ne "0" && "$HAVE_CET" -ne "0") ]]; then CXXFLAGS="$RELEASE_CXXFLAGS -std=c++11 -fcf-protection=full -mcet $USER_CXXFLAGS" CXX="$CXX" CXXFLAGS="$CXXFLAGS" "$MAKE" "${MAKEARGS[@]}" | tee -a "$TEST_RESULTS" - if [[ ("${PIPESTATUS[0]}" -ne "0") ]]; then + if [[ ("${PIPESTATUS[0]}" -ne 0) ]]; then echo "ERROR: failed to make cryptest.exe" | tee -a "$TEST_RESULTS" else ./cryptest.exe v 2>&1 | tee -a "$TEST_RESULTS" - if [[ ("${PIPESTATUS[0]}" -ne "0") ]]; then + if [[ ("${PIPESTATUS[0]}" -ne 0) ]]; then echo "ERROR: failed to execute validation suite" | tee -a "$TEST_RESULTS" fi ./cryptest.exe tv all 2>&1 | tee -a "$TEST_RESULTS" - if [[ ("${PIPESTATUS[0]}" -ne "0") ]]; then + if [[ ("${PIPESTATUS[0]}" -ne 0) ]]; then echo "ERROR: failed to execute test vectors" | tee -a "$TEST_RESULTS" fi fi @@ -4641,7 +4644,7 @@ fi ############################################ # Specter, c++11 -if [[ ("$HAVE_CXX11" -ne "0" && "$HAVE_REPTOLINE" -ne "0") ]]; then +if [[ ("$HAVE_CXX11" -ne 0 && "$HAVE_REPTOLINE" -ne 0) ]]; then ############################################ # Debug build, Specter, c++11 @@ -4658,15 +4661,15 @@ if [[ ("$HAVE_CXX11" -ne "0" && "$HAVE_REPTOLINE" -ne "0") ]]; then CXXFLAGS="$DEBUG_CXXFLAGS -std=c++11 -mfunction-return=thunk -mindirect-branch=thunk $USER_CXXFLAGS" CXX="$CXX" CXXFLAGS="$CXXFLAGS" "$MAKE" "${MAKEARGS[@]}" | tee -a "$TEST_RESULTS" - if [[ ("${PIPESTATUS[0]}" -ne "0") ]]; then + if [[ ("${PIPESTATUS[0]}" -ne 0) ]]; then echo "ERROR: failed to make cryptest.exe" | tee -a "$TEST_RESULTS" else ./cryptest.exe v 2>&1 | tee -a "$TEST_RESULTS" - if [[ ("${PIPESTATUS[0]}" -ne "0") ]]; then + if [[ ("${PIPESTATUS[0]}" -ne 0) ]]; then echo "ERROR: failed to execute validation suite" | tee -a "$TEST_RESULTS" fi ./cryptest.exe tv all 2>&1 | tee -a "$TEST_RESULTS" - if [[ ("${PIPESTATUS[0]}" -ne "0") ]]; then + if [[ ("${PIPESTATUS[0]}" -ne 0) ]]; then echo "ERROR: failed to execute test vectors" | tee -a "$TEST_RESULTS" fi fi @@ -4686,15 +4689,15 @@ if [[ ("$HAVE_CXX11" -ne "0" && "$HAVE_REPTOLINE" -ne "0") ]]; then CXXFLAGS="$RELEASE_CXXFLAGS -std=c++11 -mfunction-return=thunk -mindirect-branch=thunk $USER_CXXFLAGS" CXX="$CXX" CXXFLAGS="$CXXFLAGS" "$MAKE" "${MAKEARGS[@]}" | tee -a "$TEST_RESULTS" - if [[ ("${PIPESTATUS[0]}" -ne "0") ]]; then + if [[ ("${PIPESTATUS[0]}" -ne 0) ]]; then echo "ERROR: failed to make cryptest.exe" | tee -a "$TEST_RESULTS" else ./cryptest.exe v 2>&1 | tee -a "$TEST_RESULTS" - if [[ ("${PIPESTATUS[0]}" -ne "0") ]]; then + if [[ ("${PIPESTATUS[0]}" -ne 0) ]]; then echo "ERROR: failed to execute validation suite" | tee -a "$TEST_RESULTS" fi ./cryptest.exe tv all 2>&1 | tee -a "$TEST_RESULTS" - if [[ ("${PIPESTATUS[0]}" -ne "0") ]]; then + if [[ ("${PIPESTATUS[0]}" -ne 0) ]]; then echo "ERROR: failed to execute test vectors" | tee -a "$TEST_RESULTS" fi fi @@ -4702,7 +4705,7 @@ fi ############################################ # Release build, UBSan, c++14 -if [[ ("$HAVE_CXX14" -ne "0" && "$HAVE_UBSAN" -ne "0") ]]; then +if [[ ("$HAVE_CXX14" -ne 0 && "$HAVE_UBSAN" -ne 0) ]]; then echo echo "************************************" | tee -a "$TEST_RESULTS" echo "Testing: Release, c++14, UBsan" | tee -a "$TEST_RESULTS" @@ -4716,15 +4719,15 @@ if [[ ("$HAVE_CXX14" -ne "0" && "$HAVE_UBSAN" -ne "0") ]]; then CXXFLAGS="$RELEASE_CXXFLAGS -std=c++14 $USER_CXXFLAGS" CXX="$CXX" CXXFLAGS="$CXXFLAGS" "$MAKE" "${MAKEARGS[@]}" ubsan | tee -a "$TEST_RESULTS" - if [[ ("${PIPESTATUS[0]}" -ne "0") ]]; then + if [[ ("${PIPESTATUS[0]}" -ne 0) ]]; then echo "ERROR: failed to make cryptest.exe" | tee -a "$TEST_RESULTS" else ./cryptest.exe v 2>&1 | tee -a "$TEST_RESULTS" - if [[ ("${PIPESTATUS[0]}" -ne "0") ]]; then + if [[ ("${PIPESTATUS[0]}" -ne 0) ]]; then echo "ERROR: failed to execute validation suite" | tee -a "$TEST_RESULTS" fi ./cryptest.exe tv all 2>&1 | tee -a "$TEST_RESULTS" - if [[ ("${PIPESTATUS[0]}" -ne "0") ]]; then + if [[ ("${PIPESTATUS[0]}" -ne 0) ]]; then echo "ERROR: failed to execute test vectors" | tee -a "$TEST_RESULTS" fi fi @@ -4732,7 +4735,7 @@ fi ############################################ # Release build, Asan, c++14 -if [[ ("$HAVE_CXX14" -ne "0" && "$HAVE_ASAN" -ne "0") ]]; then +if [[ ("$HAVE_CXX14" -ne 0 && "$HAVE_ASAN" -ne 0) ]]; then echo echo "************************************" | tee -a "$TEST_RESULTS" echo "Testing: Release, c++14, Asan" | tee -a "$TEST_RESULTS" @@ -4746,25 +4749,25 @@ if [[ ("$HAVE_CXX14" -ne "0" && "$HAVE_ASAN" -ne "0") ]]; then CXXFLAGS="$RELEASE_CXXFLAGS -std=c++14 $USER_CXXFLAGS" CXX="$CXX" CXXFLAGS="$CXXFLAGS" "$MAKE" "${MAKEARGS[@]}" asan | tee -a "$TEST_RESULTS" - if [[ ("${PIPESTATUS[0]}" -ne "0") ]]; then + if [[ ("${PIPESTATUS[0]}" -ne 0) ]]; then echo "ERROR: failed to make cryptest.exe" | tee -a "$TEST_RESULTS" else - if [[ ("$HAVE_SYMBOLIZE" -ne "0") ]]; then + if [[ ("$HAVE_SYMBOLIZE" -ne 0) ]]; then ./cryptest.exe v 2>&1 | "$ASAN_SYMBOLIZE" 2>&1 | tee -a "$TEST_RESULTS" - if [[ ("${PIPESTATUS[0]}" -ne "0") ]]; then + if [[ ("${PIPESTATUS[0]}" -ne 0) ]]; then echo "ERROR: failed to execute validation suite" | tee -a "$TEST_RESULTS" fi ./cryptest.exe tv all 2>&1 | "$ASAN_SYMBOLIZE" 2>&1 | tee -a "$TEST_RESULTS" - if [[ ("${PIPESTATUS[0]}" -ne "0") ]]; then + if [[ ("${PIPESTATUS[0]}" -ne 0) ]]; then echo "ERROR: failed to execute test vectors" | tee -a "$TEST_RESULTS" fi else ./cryptest.exe v 2>&1 | tee -a "$TEST_RESULTS" - if [[ ("${PIPESTATUS[0]}" -ne "0") ]]; then + if [[ ("${PIPESTATUS[0]}" -ne 0) ]]; then echo "ERROR: failed to execute validation suite" | tee -a "$TEST_RESULTS" fi ./cryptest.exe tv all 2>&1 | tee -a "$TEST_RESULTS" - if [[ ("${PIPESTATUS[0]}" -ne "0") ]]; then + if [[ ("${PIPESTATUS[0]}" -ne 0) ]]; then echo "ERROR: failed to execute test vectors" | tee -a "$TEST_RESULTS" fi fi @@ -4773,7 +4776,7 @@ fi ############################################ # Release build, Bounds Sanitizer, c++14 -if [[ ("$HAVE_CXX14" -ne "0" && "$HAVE_BSAN" -ne "0") ]]; then +if [[ ("$HAVE_CXX14" -ne 0 && "$HAVE_BSAN" -ne 0) ]]; then echo echo "************************************" | tee -a "$TEST_RESULTS" echo "Testing: Release, c++14, Bounds Sanitizer" | tee -a "$TEST_RESULTS" @@ -4787,15 +4790,15 @@ if [[ ("$HAVE_CXX14" -ne "0" && "$HAVE_BSAN" -ne "0") ]]; then CXXFLAGS="$RELEASE_CXXFLAGS -std=c++14 -fsanitize=bounds-strict $USER_CXXFLAGS" CXX="$CXX" CXXFLAGS="$CXXFLAGS" "$MAKE" "${MAKEARGS[@]}" | tee -a "$TEST_RESULTS" - if [[ ("${PIPESTATUS[0]}" -ne "0") ]]; then + if [[ ("${PIPESTATUS[0]}" -ne 0) ]]; then echo "ERROR: failed to make cryptest.exe" | tee -a "$TEST_RESULTS" else ./cryptest.exe v 2>&1 | tee -a "$TEST_RESULTS" - if [[ ("${PIPESTATUS[0]}" -ne "0") ]]; then + if [[ ("${PIPESTATUS[0]}" -ne 0) ]]; then echo "ERROR: failed to execute validation suite" | tee -a "$TEST_RESULTS" fi ./cryptest.exe tv all 2>&1 | tee -a "$TEST_RESULTS" - if [[ ("${PIPESTATUS[0]}" -ne "0") ]]; then + if [[ ("${PIPESTATUS[0]}" -ne 0) ]]; then echo "ERROR: failed to execute test vectors" | tee -a "$TEST_RESULTS" fi fi @@ -4803,7 +4806,7 @@ fi ############################################ # Release build, Control-flow Enforcement Technology (CET), c++14 -if [[ ("$HAVE_CXX14" -ne "0" && "$HAVE_CET" -ne "0") ]]; then +if [[ ("$HAVE_CXX14" -ne 0 && "$HAVE_CET" -ne 0) ]]; then echo echo "************************************" | tee -a "$TEST_RESULTS" echo "Testing: Release, c++14, CET" | tee -a "$TEST_RESULTS" @@ -4817,15 +4820,15 @@ if [[ ("$HAVE_CXX14" -ne "0" && "$HAVE_CET" -ne "0") ]]; then CXXFLAGS="$RELEASE_CXXFLAGS -std=c++14 -fcf-protection=full -mcet $USER_CXXFLAGS" CXX="$CXX" CXXFLAGS="$CXXFLAGS" "$MAKE" "${MAKEARGS[@]}" | tee -a "$TEST_RESULTS" - if [[ ("${PIPESTATUS[0]}" -ne "0") ]]; then + if [[ ("${PIPESTATUS[0]}" -ne 0) ]]; then echo "ERROR: failed to make cryptest.exe" | tee -a "$TEST_RESULTS" else ./cryptest.exe v 2>&1 | tee -a "$TEST_RESULTS" - if [[ ("${PIPESTATUS[0]}" -ne "0") ]]; then + if [[ ("${PIPESTATUS[0]}" -ne 0) ]]; then echo "ERROR: failed to execute validation suite" | tee -a "$TEST_RESULTS" fi ./cryptest.exe tv all 2>&1 | tee -a "$TEST_RESULTS" - if [[ ("${PIPESTATUS[0]}" -ne "0") ]]; then + if [[ ("${PIPESTATUS[0]}" -ne 0) ]]; then echo "ERROR: failed to execute test vectors" | tee -a "$TEST_RESULTS" fi fi @@ -4833,7 +4836,7 @@ fi ############################################ # Release build, Specter, c++14 -if [[ ("$HAVE_CXX14" -ne "0" && "$HAVE_REPTOLINE" -ne "0") ]]; then +if [[ ("$HAVE_CXX14" -ne 0 && "$HAVE_REPTOLINE" -ne 0) ]]; then echo echo "************************************" | tee -a "$TEST_RESULTS" echo "Testing: Release, c++14, Specter" | tee -a "$TEST_RESULTS" @@ -4847,15 +4850,15 @@ if [[ ("$HAVE_CXX14" -ne "0" && "$HAVE_REPTOLINE" -ne "0") ]]; then CXXFLAGS="$RELEASE_CXXFLAGS -std=c++14 -mfunction-return=thunk -mindirect-branch=thunk $USER_CXXFLAGS" CXX="$CXX" CXXFLAGS="$CXXFLAGS" "$MAKE" "${MAKEARGS[@]}" | tee -a "$TEST_RESULTS" - if [[ ("${PIPESTATUS[0]}" -ne "0") ]]; then + if [[ ("${PIPESTATUS[0]}" -ne 0) ]]; then echo "ERROR: failed to make cryptest.exe" | tee -a "$TEST_RESULTS" else ./cryptest.exe v 2>&1 | tee -a "$TEST_RESULTS" - if [[ ("${PIPESTATUS[0]}" -ne "0") ]]; then + if [[ ("${PIPESTATUS[0]}" -ne 0) ]]; then echo "ERROR: failed to execute validation suite" | tee -a "$TEST_RESULTS" fi ./cryptest.exe tv all 2>&1 | tee -a "$TEST_RESULTS" - if [[ ("${PIPESTATUS[0]}" -ne "0") ]]; then + if [[ ("${PIPESTATUS[0]}" -ne 0) ]]; then echo "ERROR: failed to execute test vectors" | tee -a "$TEST_RESULTS" fi fi @@ -4863,7 +4866,7 @@ fi ############################################ # Release build, UBSan, c++17 -if [[ ("$HAVE_CXX17" -ne "0" && "$HAVE_UBSAN" -ne "0") ]]; then +if [[ ("$HAVE_CXX17" -ne 0 && "$HAVE_UBSAN" -ne 0) ]]; then echo echo "************************************" | tee -a "$TEST_RESULTS" echo "Testing: Release, c++17, UBsan" | tee -a "$TEST_RESULTS" @@ -4877,15 +4880,15 @@ if [[ ("$HAVE_CXX17" -ne "0" && "$HAVE_UBSAN" -ne "0") ]]; then CXXFLAGS="$RELEASE_CXXFLAGS -std=c++17 $USER_CXXFLAGS" CXX="$CXX" CXXFLAGS="$CXXFLAGS" "$MAKE" "${MAKEARGS[@]}" ubsan | tee -a "$TEST_RESULTS" - if [[ ("${PIPESTATUS[0]}" -ne "0") ]]; then + if [[ ("${PIPESTATUS[0]}" -ne 0) ]]; then echo "ERROR: failed to make cryptest.exe" | tee -a "$TEST_RESULTS" else ./cryptest.exe v 2>&1 | tee -a "$TEST_RESULTS" - if [[ ("${PIPESTATUS[0]}" -ne "0") ]]; then + if [[ ("${PIPESTATUS[0]}" -ne 0) ]]; then echo "ERROR: failed to execute validation suite" | tee -a "$TEST_RESULTS" fi ./cryptest.exe tv all 2>&1 | tee -a "$TEST_RESULTS" - if [[ ("${PIPESTATUS[0]}" -ne "0") ]]; then + if [[ ("${PIPESTATUS[0]}" -ne 0) ]]; then echo "ERROR: failed to execute test vectors" | tee -a "$TEST_RESULTS" fi fi @@ -4893,7 +4896,7 @@ fi ############################################ # Release build, Asan, c++17 -if [[ ("$HAVE_CXX17" -ne "0" && "$HAVE_ASAN" -ne "0") ]]; then +if [[ ("$HAVE_CXX17" -ne 0 && "$HAVE_ASAN" -ne 0) ]]; then echo echo "************************************" | tee -a "$TEST_RESULTS" echo "Testing: Release, c++17, Asan" | tee -a "$TEST_RESULTS" @@ -4907,25 +4910,25 @@ if [[ ("$HAVE_CXX17" -ne "0" && "$HAVE_ASAN" -ne "0") ]]; then CXXFLAGS="$RELEASE_CXXFLAGS -std=c++17 $USER_CXXFLAGS" CXX="$CXX" CXXFLAGS="$CXXFLAGS" "$MAKE" "${MAKEARGS[@]}" asan | tee -a "$TEST_RESULTS" - if [[ ("${PIPESTATUS[0]}" -ne "0") ]]; then + if [[ ("${PIPESTATUS[0]}" -ne 0) ]]; then echo "ERROR: failed to make cryptest.exe" | tee -a "$TEST_RESULTS" else - if [[ ("$HAVE_SYMBOLIZE" -ne "0") ]]; then + if [[ ("$HAVE_SYMBOLIZE" -ne 0) ]]; then ./cryptest.exe v 2>&1 | "$ASAN_SYMBOLIZE" 2>&1 | tee -a "$TEST_RESULTS" - if [[ ("${PIPESTATUS[0]}" -ne "0") ]]; then + if [[ ("${PIPESTATUS[0]}" -ne 0) ]]; then echo "ERROR: failed to execute validation suite" | tee -a "$TEST_RESULTS" fi ./cryptest.exe tv all 2>&1 | "$ASAN_SYMBOLIZE" 2>&1 | tee -a "$TEST_RESULTS" - if [[ ("${PIPESTATUS[0]}" -ne "0") ]]; then + if [[ ("${PIPESTATUS[0]}" -ne 0) ]]; then echo "ERROR: failed to execute test vectors" | tee -a "$TEST_RESULTS" fi else ./cryptest.exe v 2>&1 | tee -a "$TEST_RESULTS" - if [[ ("${PIPESTATUS[0]}" -ne "0") ]]; then + if [[ ("${PIPESTATUS[0]}" -ne 0) ]]; then echo "ERROR: failed to execute validation suite" | tee -a "$TEST_RESULTS" fi ./cryptest.exe tv all 2>&1 | tee -a "$TEST_RESULTS" - if [[ ("${PIPESTATUS[0]}" -ne "0") ]]; then + if [[ ("${PIPESTATUS[0]}" -ne 0) ]]; then echo "ERROR: failed to execute test vectors" | tee -a "$TEST_RESULTS" fi fi @@ -4934,7 +4937,7 @@ fi ############################################ # Release build, Bounds Sanitizer, c++17 -if [[ ("$HAVE_CXX17" -ne "0" && "$HAVE_BSAN" -ne "0") ]]; then +if [[ ("$HAVE_CXX17" -ne 0 && "$HAVE_BSAN" -ne 0) ]]; then echo echo "************************************" | tee -a "$TEST_RESULTS" echo "Testing: Release, c++17, Bounds Sanitizer" | tee -a "$TEST_RESULTS" @@ -4948,15 +4951,15 @@ if [[ ("$HAVE_CXX17" -ne "0" && "$HAVE_BSAN" -ne "0") ]]; then CXXFLAGS="$RELEASE_CXXFLAGS -std=c++17 -fsanitize=bounds-strict $USER_CXXFLAGS" CXX="$CXX" CXXFLAGS="$CXXFLAGS" "$MAKE" "${MAKEARGS[@]}" | tee -a "$TEST_RESULTS" - if [[ ("${PIPESTATUS[0]}" -ne "0") ]]; then + if [[ ("${PIPESTATUS[0]}" -ne 0) ]]; then echo "ERROR: failed to make cryptest.exe" | tee -a "$TEST_RESULTS" else ./cryptest.exe v 2>&1 | tee -a "$TEST_RESULTS" - if [[ ("${PIPESTATUS[0]}" -ne "0") ]]; then + if [[ ("${PIPESTATUS[0]}" -ne 0) ]]; then echo "ERROR: failed to execute validation suite" | tee -a "$TEST_RESULTS" fi ./cryptest.exe tv all 2>&1 | tee -a "$TEST_RESULTS" - if [[ ("${PIPESTATUS[0]}" -ne "0") ]]; then + if [[ ("${PIPESTATUS[0]}" -ne 0) ]]; then echo "ERROR: failed to execute test vectors" | tee -a "$TEST_RESULTS" fi fi @@ -4964,7 +4967,7 @@ fi ############################################ # Release build, Control-flow Enforcement Technology (CET), c++17 -if [[ ("$HAVE_CXX17" -ne "0" && "$HAVE_CET" -ne "0") ]]; then +if [[ ("$HAVE_CXX17" -ne 0 && "$HAVE_CET" -ne 0) ]]; then echo echo "************************************" | tee -a "$TEST_RESULTS" echo "Testing: Release, c++17, CET" | tee -a "$TEST_RESULTS" @@ -4978,15 +4981,15 @@ if [[ ("$HAVE_CXX17" -ne "0" && "$HAVE_CET" -ne "0") ]]; then CXXFLAGS="$RELEASE_CXXFLAGS -std=c++17 -fcf-protection=full -mcet $USER_CXXFLAGS" CXX="$CXX" CXXFLAGS="$CXXFLAGS" "$MAKE" "${MAKEARGS[@]}" | tee -a "$TEST_RESULTS" - if [[ ("${PIPESTATUS[0]}" -ne "0") ]]; then + if [[ ("${PIPESTATUS[0]}" -ne 0) ]]; then echo "ERROR: failed to make cryptest.exe" | tee -a "$TEST_RESULTS" else ./cryptest.exe v 2>&1 | tee -a "$TEST_RESULTS" - if [[ ("${PIPESTATUS[0]}" -ne "0") ]]; then + if [[ ("${PIPESTATUS[0]}" -ne 0) ]]; then echo "ERROR: failed to execute validation suite" | tee -a "$TEST_RESULTS" fi ./cryptest.exe tv all 2>&1 | tee -a "$TEST_RESULTS" - if [[ ("${PIPESTATUS[0]}" -ne "0") ]]; then + if [[ ("${PIPESTATUS[0]}" -ne 0) ]]; then echo "ERROR: failed to execute test vectors" | tee -a "$TEST_RESULTS" fi fi @@ -4994,7 +4997,7 @@ fi ############################################ # Release build, Specter, c++17 -if [[ ("$HAVE_CXX17" -ne "0" && "$HAVE_REPTOLINE" -ne "0") ]]; then +if [[ ("$HAVE_CXX17" -ne 0 && "$HAVE_REPTOLINE" -ne 0) ]]; then echo echo "************************************" | tee -a "$TEST_RESULTS" echo "Testing: Release, c++17, Specter" | tee -a "$TEST_RESULTS" @@ -5008,15 +5011,15 @@ if [[ ("$HAVE_CXX17" -ne "0" && "$HAVE_REPTOLINE" -ne "0") ]]; then CXXFLAGS="$RELEASE_CXXFLAGS -std=c++17 -mfunction-return=thunk -mindirect-branch=thunk $USER_CXXFLAGS" CXX="$CXX" CXXFLAGS="$CXXFLAGS" "$MAKE" "${MAKEARGS[@]}" | tee -a "$TEST_RESULTS" - if [[ ("${PIPESTATUS[0]}" -ne "0") ]]; then + if [[ ("${PIPESTATUS[0]}" -ne 0) ]]; then echo "ERROR: failed to make cryptest.exe" | tee -a "$TEST_RESULTS" else ./cryptest.exe v 2>&1 | tee -a "$TEST_RESULTS" - if [[ ("${PIPESTATUS[0]}" -ne "0") ]]; then + if [[ ("${PIPESTATUS[0]}" -ne 0) ]]; then echo "ERROR: failed to execute validation suite" | tee -a "$TEST_RESULTS" fi ./cryptest.exe tv all 2>&1 | tee -a "$TEST_RESULTS" - if [[ ("${PIPESTATUS[0]}" -ne "0") ]]; then + if [[ ("${PIPESTATUS[0]}" -ne 0) ]]; then echo "ERROR: failed to execute test vectors" | tee -a "$TEST_RESULTS" fi fi @@ -5024,7 +5027,7 @@ fi ############################################ # Release build, UBSan, c++20 -if [[ ("$HAVE_CXX20" -ne "0" && "$HAVE_UBSAN" -ne "0") ]]; then +if [[ ("$HAVE_CXX20" -ne 0 && "$HAVE_UBSAN" -ne 0) ]]; then echo echo "************************************" | tee -a "$TEST_RESULTS" echo "Testing: Release, c++20, UBsan" | tee -a "$TEST_RESULTS" @@ -5038,15 +5041,15 @@ if [[ ("$HAVE_CXX20" -ne "0" && "$HAVE_UBSAN" -ne "0") ]]; then CXXFLAGS="$RELEASE_CXXFLAGS -std=c++20 $USER_CXXFLAGS" CXX="$CXX" CXXFLAGS="$CXXFLAGS" "$MAKE" "${MAKEARGS[@]}" ubsan | tee -a "$TEST_RESULTS" - if [[ ("${PIPESTATUS[0]}" -ne "0") ]]; then + if [[ ("${PIPESTATUS[0]}" -ne 0) ]]; then echo "ERROR: failed to make cryptest.exe" | tee -a "$TEST_RESULTS" else ./cryptest.exe v 2>&1 | tee -a "$TEST_RESULTS" - if [[ ("${PIPESTATUS[0]}" -ne "0") ]]; then + if [[ ("${PIPESTATUS[0]}" -ne 0) ]]; then echo "ERROR: failed to execute validation suite" | tee -a "$TEST_RESULTS" fi ./cryptest.exe tv all 2>&1 | tee -a "$TEST_RESULTS" - if [[ ("${PIPESTATUS[0]}" -ne "0") ]]; then + if [[ ("${PIPESTATUS[0]}" -ne 0) ]]; then echo "ERROR: failed to execute test vectors" | tee -a "$TEST_RESULTS" fi fi @@ -5054,7 +5057,7 @@ fi ############################################ # Release build, Asan, c++20 -if [[ ("$HAVE_CXX20" -ne "0" && "$HAVE_ASAN" -ne "0") ]]; then +if [[ ("$HAVE_CXX20" -ne 0 && "$HAVE_ASAN" -ne 0) ]]; then echo echo "************************************" | tee -a "$TEST_RESULTS" echo "Testing: Release, c++20, Asan" | tee -a "$TEST_RESULTS" @@ -5068,25 +5071,25 @@ if [[ ("$HAVE_CXX20" -ne "0" && "$HAVE_ASAN" -ne "0") ]]; then CXXFLAGS="$RELEASE_CXXFLAGS -std=c++20 $USER_CXXFLAGS" CXX="$CXX" CXXFLAGS="$CXXFLAGS" "$MAKE" "${MAKEARGS[@]}" asan | tee -a "$TEST_RESULTS" - if [[ ("${PIPESTATUS[0]}" -ne "0") ]]; then + if [[ ("${PIPESTATUS[0]}" -ne 0) ]]; then echo "ERROR: failed to make cryptest.exe" | tee -a "$TEST_RESULTS" else - if [[ ("$HAVE_SYMBOLIZE" -ne "0") ]]; then + if [[ ("$HAVE_SYMBOLIZE" -ne 0) ]]; then ./cryptest.exe v 2>&1 | "$ASAN_SYMBOLIZE" 2>&1 | tee -a "$TEST_RESULTS" - if [[ ("${PIPESTATUS[0]}" -ne "0") ]]; then + if [[ ("${PIPESTATUS[0]}" -ne 0) ]]; then echo "ERROR: failed to execute validation suite" | tee -a "$TEST_RESULTS" fi ./cryptest.exe tv all 2>&1 | "$ASAN_SYMBOLIZE" 2>&1 | tee -a "$TEST_RESULTS" - if [[ ("${PIPESTATUS[0]}" -ne "0") ]]; then + if [[ ("${PIPESTATUS[0]}" -ne 0) ]]; then echo "ERROR: failed to execute test vectors" | tee -a "$TEST_RESULTS" fi else ./cryptest.exe v 2>&1 | tee -a "$TEST_RESULTS" - if [[ ("${PIPESTATUS[0]}" -ne "0") ]]; then + if [[ ("${PIPESTATUS[0]}" -ne 0) ]]; then echo "ERROR: failed to execute validation suite" | tee -a "$TEST_RESULTS" fi ./cryptest.exe tv all 2>&1 | tee -a "$TEST_RESULTS" - if [[ ("${PIPESTATUS[0]}" -ne "0") ]]; then + if [[ ("${PIPESTATUS[0]}" -ne 0) ]]; then echo "ERROR: failed to execute test vectors" | tee -a "$TEST_RESULTS" fi fi @@ -5095,7 +5098,7 @@ fi ############################################ # Release build, Bounds Sanitizer, c++20 -if [[ ("$HAVE_CXX20" -ne "0" && "$HAVE_BSAN" -ne "0") ]]; then +if [[ ("$HAVE_CXX20" -ne 0 && "$HAVE_BSAN" -ne 0) ]]; then echo echo "************************************" | tee -a "$TEST_RESULTS" echo "Testing: Release, c++20, Bounds Sanitizer" | tee -a "$TEST_RESULTS" @@ -5109,15 +5112,15 @@ if [[ ("$HAVE_CXX20" -ne "0" && "$HAVE_BSAN" -ne "0") ]]; then CXXFLAGS="$RELEASE_CXXFLAGS -std=c++20 -fsanitize=bounds-strict $USER_CXXFLAGS" CXX="$CXX" CXXFLAGS="$CXXFLAGS" "$MAKE" "${MAKEARGS[@]}" | tee -a "$TEST_RESULTS" - if [[ ("${PIPESTATUS[0]}" -ne "0") ]]; then + if [[ ("${PIPESTATUS[0]}" -ne 0) ]]; then echo "ERROR: failed to make cryptest.exe" | tee -a "$TEST_RESULTS" else ./cryptest.exe v 2>&1 | tee -a "$TEST_RESULTS" - if [[ ("${PIPESTATUS[0]}" -ne "0") ]]; then + if [[ ("${PIPESTATUS[0]}" -ne 0) ]]; then echo "ERROR: failed to execute validation suite" | tee -a "$TEST_RESULTS" fi ./cryptest.exe tv all 2>&1 | tee -a "$TEST_RESULTS" - if [[ ("${PIPESTATUS[0]}" -ne "0") ]]; then + if [[ ("${PIPESTATUS[0]}" -ne 0) ]]; then echo "ERROR: failed to execute test vectors" | tee -a "$TEST_RESULTS" fi fi @@ -5125,7 +5128,7 @@ fi ############################################ # Release build, Control-flow Enforcement Technology (CET), c++20 -if [[ ("$HAVE_CXX20" -ne "0" && "$HAVE_CET" -ne "0") ]]; then +if [[ ("$HAVE_CXX20" -ne 0 && "$HAVE_CET" -ne 0) ]]; then echo echo "************************************" | tee -a "$TEST_RESULTS" echo "Testing: Release, c++20, CET" | tee -a "$TEST_RESULTS" @@ -5139,15 +5142,15 @@ if [[ ("$HAVE_CXX20" -ne "0" && "$HAVE_CET" -ne "0") ]]; then CXXFLAGS="$RELEASE_CXXFLAGS -std=c++20 -fcf-protection=full -mcet $USER_CXXFLAGS" CXX="$CXX" CXXFLAGS="$CXXFLAGS" "$MAKE" "${MAKEARGS[@]}" | tee -a "$TEST_RESULTS" - if [[ ("${PIPESTATUS[0]}" -ne "0") ]]; then + if [[ ("${PIPESTATUS[0]}" -ne 0) ]]; then echo "ERROR: failed to make cryptest.exe" | tee -a "$TEST_RESULTS" else ./cryptest.exe v 2>&1 | tee -a "$TEST_RESULTS" - if [[ ("${PIPESTATUS[0]}" -ne "0") ]]; then + if [[ ("${PIPESTATUS[0]}" -ne 0) ]]; then echo "ERROR: failed to execute validation suite" | tee -a "$TEST_RESULTS" fi ./cryptest.exe tv all 2>&1 | tee -a "$TEST_RESULTS" - if [[ ("${PIPESTATUS[0]}" -ne "0") ]]; then + if [[ ("${PIPESTATUS[0]}" -ne 0) ]]; then echo "ERROR: failed to execute test vectors" | tee -a "$TEST_RESULTS" fi fi @@ -5155,7 +5158,7 @@ fi ############################################ # Release build, Specter, c++20 -if [[ ("$HAVE_CXX20" -ne "0" && "$HAVE_REPTOLINE" -ne "0") ]]; then +if [[ ("$HAVE_CXX20" -ne 0 && "$HAVE_REPTOLINE" -ne 0) ]]; then echo echo "************************************" | tee -a "$TEST_RESULTS" echo "Testing: Release, c++20, Specter" | tee -a "$TEST_RESULTS" @@ -5169,15 +5172,15 @@ if [[ ("$HAVE_CXX20" -ne "0" && "$HAVE_REPTOLINE" -ne "0") ]]; then CXXFLAGS="$RELEASE_CXXFLAGS -std=c++20 -mfunction-return=thunk -mindirect-branch=thunk $USER_CXXFLAGS" CXX="$CXX" CXXFLAGS="$CXXFLAGS" "$MAKE" "${MAKEARGS[@]}" | tee -a "$TEST_RESULTS" - if [[ ("${PIPESTATUS[0]}" -ne "0") ]]; then + if [[ ("${PIPESTATUS[0]}" -ne 0) ]]; then echo "ERROR: failed to make cryptest.exe" | tee -a "$TEST_RESULTS" else ./cryptest.exe v 2>&1 | tee -a "$TEST_RESULTS" - if [[ ("${PIPESTATUS[0]}" -ne "0") ]]; then + if [[ ("${PIPESTATUS[0]}" -ne 0) ]]; then echo "ERROR: failed to execute validation suite" | tee -a "$TEST_RESULTS" fi ./cryptest.exe tv all 2>&1 | tee -a "$TEST_RESULTS" - if [[ ("${PIPESTATUS[0]}" -ne "0") ]]; then + if [[ ("${PIPESTATUS[0]}" -ne 0) ]]; then echo "ERROR: failed to execute test vectors" | tee -a "$TEST_RESULTS" fi fi @@ -5185,7 +5188,7 @@ fi ############################################ # For Solaris, test under Sun Studio 12.2 - 12.5 -if [[ "$IS_SOLARIS" -ne "0" ]]; then +if [[ "$IS_SOLARIS" -ne 0 ]]; then ############################################ # Sun Studio 12.2/SunCC 5.11 @@ -5206,15 +5209,15 @@ if [[ "$IS_SOLARIS" -ne "0" ]]; then CXXFLAGS="-DDEBUG -g -xO0" CXX="/opt/solstudio12.2/bin/CC" CXXFLAGS="$CXXFLAGS" "$MAKE" "${MAKEARGS[@]}" static dynamic cryptest.exe 2>&1 | tee -a "$TEST_RESULTS" - if [[ ("${PIPESTATUS[0]}" -ne "0") ]]; then + if [[ ("${PIPESTATUS[0]}" -ne 0) ]]; then echo "ERROR: failed to make cryptest.exe" | tee -a "$TEST_RESULTS" else ./cryptest.exe v 2>&1 | tee -a "$TEST_RESULTS" - if [[ ("${PIPESTATUS[0]}" -ne "0") ]]; then + if [[ ("${PIPESTATUS[0]}" -ne 0) ]]; then echo "ERROR: failed to execute validation suite" | tee -a "$TEST_RESULTS" fi ./cryptest.exe tv all 2>&1 | tee -a "$TEST_RESULTS" - if [[ ("${PIPESTATUS[0]}" -ne "0") ]]; then + if [[ ("${PIPESTATUS[0]}" -ne 0) ]]; then echo "ERROR: failed to execute test vectors" | tee -a "$TEST_RESULTS" fi fi @@ -5234,15 +5237,15 @@ if [[ "$IS_SOLARIS" -ne "0" ]]; then CXXFLAGS="-DNDEBUG -g -xO2" CXX="/opt/solstudio12.2/bin/CC" CXXFLAGS="$CXXFLAGS" "$MAKE" "${MAKEARGS[@]}" static dynamic cryptest.exe 2>&1 | tee -a "$TEST_RESULTS" - if [[ ("${PIPESTATUS[0]}" -ne "0") ]]; then + if [[ ("${PIPESTATUS[0]}" -ne 0) ]]; then echo "ERROR: failed to make cryptest.exe" | tee -a "$TEST_RESULTS" else ./cryptest.exe v 2>&1 | tee -a "$TEST_RESULTS" - if [[ ("${PIPESTATUS[0]}" -ne "0") ]]; then + if [[ ("${PIPESTATUS[0]}" -ne 0) ]]; then echo "ERROR: failed to execute validation suite" | tee -a "$TEST_RESULTS" fi ./cryptest.exe tv all 2>&1 | tee -a "$TEST_RESULTS" - if [[ ("${PIPESTATUS[0]}" -ne "0") ]]; then + if [[ ("${PIPESTATUS[0]}" -ne 0) ]]; then echo "ERROR: failed to execute test vectors" | tee -a "$TEST_RESULTS" fi fi @@ -5267,15 +5270,15 @@ if [[ "$IS_SOLARIS" -ne "0" ]]; then CXXFLAGS="-DDEBUG -g3 -xO0" CXX=/opt/solarisstudio12.3/bin/CC CXXFLAGS="$CXXFLAGS" "$MAKE" "${MAKEARGS[@]}" static dynamic cryptest.exe 2>&1 | tee -a "$TEST_RESULTS" - if [[ ("${PIPESTATUS[0]}" -ne "0") ]]; then + if [[ ("${PIPESTATUS[0]}" -ne 0) ]]; then echo "ERROR: failed to make cryptest.exe" | tee -a "$TEST_RESULTS" else ./cryptest.exe v 2>&1 | tee -a "$TEST_RESULTS" - if [[ ("${PIPESTATUS[0]}" -ne "0") ]]; then + if [[ ("${PIPESTATUS[0]}" -ne 0) ]]; then echo "ERROR: failed to execute validation suite" | tee -a "$TEST_RESULTS" fi ./cryptest.exe tv all 2>&1 | tee -a "$TEST_RESULTS" - if [[ ("${PIPESTATUS[0]}" -ne "0") ]]; then + if [[ ("${PIPESTATUS[0]}" -ne 0) ]]; then echo "ERROR: failed to execute test vectors" | tee -a "$TEST_RESULTS" fi fi @@ -5295,15 +5298,15 @@ if [[ "$IS_SOLARIS" -ne "0" ]]; then CXXFLAGS="-DNDEBUG -g3 -xO2" CXX=/opt/solarisstudio12.3/bin/CC CXXFLAGS="$CXXFLAGS" "$MAKE" "${MAKEARGS[@]}" static dynamic cryptest.exe 2>&1 | tee -a "$TEST_RESULTS" - if [[ ("${PIPESTATUS[0]}" -ne "0") ]]; then + if [[ ("${PIPESTATUS[0]}" -ne 0) ]]; then echo "ERROR: failed to make cryptest.exe" | tee -a "$TEST_RESULTS" else ./cryptest.exe v 2>&1 | tee -a "$TEST_RESULTS" - if [[ ("${PIPESTATUS[0]}" -ne "0") ]]; then + if [[ ("${PIPESTATUS[0]}" -ne 0) ]]; then echo "ERROR: failed to execute validation suite" | tee -a "$TEST_RESULTS" fi ./cryptest.exe tv all 2>&1 | tee -a "$TEST_RESULTS" - if [[ ("${PIPESTATUS[0]}" -ne "0") ]]; then + if [[ ("${PIPESTATUS[0]}" -ne 0) ]]; then echo "ERROR: failed to execute test vectors" | tee -a "$TEST_RESULTS" fi fi @@ -5328,15 +5331,15 @@ if [[ "$IS_SOLARIS" -ne "0" ]]; then CXXFLAGS="-DDEBUG -g3 -xO0" CXX=/opt/solarisstudio12.4/bin/CC CXXFLAGS="$CXXFLAGS" "$MAKE" "${MAKEARGS[@]}" static dynamic cryptest.exe 2>&1 | tee -a "$TEST_RESULTS" - if [[ ("${PIPESTATUS[0]}" -ne "0") ]]; then + if [[ ("${PIPESTATUS[0]}" -ne 0) ]]; then echo "ERROR: failed to make cryptest.exe" | tee -a "$TEST_RESULTS" else ./cryptest.exe v 2>&1 | tee -a "$TEST_RESULTS" - if [[ ("${PIPESTATUS[0]}" -ne "0") ]]; then + if [[ ("${PIPESTATUS[0]}" -ne 0) ]]; then echo "ERROR: failed to execute validation suite" | tee -a "$TEST_RESULTS" fi ./cryptest.exe tv all 2>&1 | tee -a "$TEST_RESULTS" - if [[ ("${PIPESTATUS[0]}" -ne "0") ]]; then + if [[ ("${PIPESTATUS[0]}" -ne 0) ]]; then echo "ERROR: failed to execute test vectors" | tee -a "$TEST_RESULTS" fi fi @@ -5356,15 +5359,15 @@ if [[ "$IS_SOLARIS" -ne "0" ]]; then CXXFLAGS="-DNDEBUG -g2 -xO2" CXX=/opt/solarisstudio12.4/bin/CC CXXFLAGS="$CXXFLAGS" "$MAKE" "${MAKEARGS[@]}" static dynamic cryptest.exe 2>&1 | tee -a "$TEST_RESULTS" - if [[ ("${PIPESTATUS[0]}" -ne "0") ]]; then + if [[ ("${PIPESTATUS[0]}" -ne 0) ]]; then echo "ERROR: failed to make cryptest.exe" | tee -a "$TEST_RESULTS" else ./cryptest.exe v 2>&1 | tee -a "$TEST_RESULTS" - if [[ ("${PIPESTATUS[0]}" -ne "0") ]]; then + if [[ ("${PIPESTATUS[0]}" -ne 0) ]]; then echo "ERROR: failed to execute validation suite" | tee -a "$TEST_RESULTS" fi ./cryptest.exe tv all 2>&1 | tee -a "$TEST_RESULTS" - if [[ ("${PIPESTATUS[0]}" -ne "0") ]]; then + if [[ ("${PIPESTATUS[0]}" -ne 0) ]]; then echo "ERROR: failed to execute test vectors" | tee -a "$TEST_RESULTS" fi fi @@ -5389,15 +5392,15 @@ if [[ "$IS_SOLARIS" -ne "0" ]]; then CXXFLAGS="-DDEBUG -g3 -xO1" CXX=/opt/developerstudio12.5/bin/CC CXXFLAGS="$CXXFLAGS" "$MAKE" "${MAKEARGS[@]}" static dynamic cryptest.exe 2>&1 | tee -a "$TEST_RESULTS" - if [[ ("${PIPESTATUS[0]}" -ne "0") ]]; then + if [[ ("${PIPESTATUS[0]}" -ne 0) ]]; then echo "ERROR: failed to make cryptest.exe" | tee -a "$TEST_RESULTS" else ./cryptest.exe v 2>&1 | tee -a "$TEST_RESULTS" - if [[ ("${PIPESTATUS[0]}" -ne "0") ]]; then + if [[ ("${PIPESTATUS[0]}" -ne 0) ]]; then echo "ERROR: failed to execute validation suite" | tee -a "$TEST_RESULTS" fi ./cryptest.exe tv all 2>&1 | tee -a "$TEST_RESULTS" - if [[ ("${PIPESTATUS[0]}" -ne "0") ]]; then + if [[ ("${PIPESTATUS[0]}" -ne 0) ]]; then echo "ERROR: failed to execute test vectors" | tee -a "$TEST_RESULTS" fi fi @@ -5417,15 +5420,15 @@ if [[ "$IS_SOLARIS" -ne "0" ]]; then CXXFLAGS="-DNDEBUG -g2 -xO2" CXX=/opt/developerstudio12.5/bin/CC CXXFLAGS="$CXXFLAGS" "$MAKE" "${MAKEARGS[@]}" static dynamic cryptest.exe 2>&1 | tee -a "$TEST_RESULTS" - if [[ ("${PIPESTATUS[0]}" -ne "0") ]]; then + if [[ ("${PIPESTATUS[0]}" -ne 0) ]]; then echo "ERROR: failed to make cryptest.exe" | tee -a "$TEST_RESULTS" else ./cryptest.exe v 2>&1 | tee -a "$TEST_RESULTS" - if [[ ("${PIPESTATUS[0]}" -ne "0") ]]; then + if [[ ("${PIPESTATUS[0]}" -ne 0) ]]; then echo "ERROR: failed to execute validation suite" | tee -a "$TEST_RESULTS" fi ./cryptest.exe tv all 2>&1 | tee -a "$TEST_RESULTS" - if [[ ("${PIPESTATUS[0]}" -ne "0") ]]; then + if [[ ("${PIPESTATUS[0]}" -ne 0) ]]; then echo "ERROR: failed to execute test vectors" | tee -a "$TEST_RESULTS" fi fi @@ -5450,15 +5453,15 @@ if [[ "$IS_SOLARIS" -ne "0" ]]; then CXXFLAGS="-DDEBUG -g3 -xO1" CXX=/opt/developerstudio12.6/bin/CC CXXFLAGS="$CXXFLAGS" "$MAKE" "${MAKEARGS[@]}" static dynamic cryptest.exe 2>&1 | tee -a "$TEST_RESULTS" - if [[ ("${PIPESTATUS[0]}" -ne "0") ]]; then + if [[ ("${PIPESTATUS[0]}" -ne 0) ]]; then echo "ERROR: failed to make cryptest.exe" | tee -a "$TEST_RESULTS" else ./cryptest.exe v 2>&1 | tee -a "$TEST_RESULTS" - if [[ ("${PIPESTATUS[0]}" -ne "0") ]]; then + if [[ ("${PIPESTATUS[0]}" -ne 0) ]]; then echo "ERROR: failed to execute validation suite" | tee -a "$TEST_RESULTS" fi ./cryptest.exe tv all 2>&1 | tee -a "$TEST_RESULTS" - if [[ ("${PIPESTATUS[0]}" -ne "0") ]]; then + if [[ ("${PIPESTATUS[0]}" -ne 0) ]]; then echo "ERROR: failed to execute test vectors" | tee -a "$TEST_RESULTS" fi fi @@ -5478,15 +5481,15 @@ if [[ "$IS_SOLARIS" -ne "0" ]]; then CXXFLAGS="-DNDEBUG -g2 -xO2" CXX=/opt/developerstudio12.6/bin/CC CXXFLAGS="$CXXFLAGS" "$MAKE" "${MAKEARGS[@]}" static dynamic cryptest.exe 2>&1 | tee -a "$TEST_RESULTS" - if [[ ("${PIPESTATUS[0]}" -ne "0") ]]; then + if [[ ("${PIPESTATUS[0]}" -ne 0) ]]; then echo "ERROR: failed to make cryptest.exe" | tee -a "$TEST_RESULTS" else ./cryptest.exe v 2>&1 | tee -a "$TEST_RESULTS" - if [[ ("${PIPESTATUS[0]}" -ne "0") ]]; then + if [[ ("${PIPESTATUS[0]}" -ne 0) ]]; then echo "ERROR: failed to execute validation suite" | tee -a "$TEST_RESULTS" fi ./cryptest.exe tv all 2>&1 | tee -a "$TEST_RESULTS" - if [[ ("${PIPESTATUS[0]}" -ne "0") ]]; then + if [[ ("${PIPESTATUS[0]}" -ne 0) ]]; then echo "ERROR: failed to execute test vectors" | tee -a "$TEST_RESULTS" fi fi @@ -5511,15 +5514,15 @@ if [[ "$IS_SOLARIS" -ne "0" ]]; then CXXFLAGS="-DDEBUG -g3 -O0" CXX="/bin/g++" CXXFLAGS="$CXXFLAGS" "$MAKE" "${MAKEARGS[@]}" static dynamic cryptest.exe 2>&1 | tee -a "$TEST_RESULTS" - if [[ ("${PIPESTATUS[0]}" -ne "0") ]]; then + if [[ ("${PIPESTATUS[0]}" -ne 0) ]]; then echo "ERROR: failed to make cryptest.exe" | tee -a "$TEST_RESULTS" else ./cryptest.exe v 2>&1 | tee -a "$TEST_RESULTS" - if [[ ("${PIPESTATUS[0]}" -ne "0") ]]; then + if [[ ("${PIPESTATUS[0]}" -ne 0) ]]; then echo "ERROR: failed to execute validation suite" | tee -a "$TEST_RESULTS" fi ./cryptest.exe tv all 2>&1 | tee -a "$TEST_RESULTS" - if [[ ("${PIPESTATUS[0]}" -ne "0") ]]; then + if [[ ("${PIPESTATUS[0]}" -ne 0) ]]; then echo "ERROR: failed to execute test vectors" | tee -a "$TEST_RESULTS" fi fi @@ -5539,15 +5542,15 @@ if [[ "$IS_SOLARIS" -ne "0" ]]; then CXXFLAGS="-DNDEBUG -g2 -O3" CXX="/bin/g++" CXXFLAGS="$CXXFLAGS" "$MAKE" "${MAKEARGS[@]}" static dynamic cryptest.exe 2>&1 | tee -a "$TEST_RESULTS" - if [[ ("${PIPESTATUS[0]}" -ne "0") ]]; then + if [[ ("${PIPESTATUS[0]}" -ne 0) ]]; then echo "ERROR: failed to make cryptest.exe" | tee -a "$TEST_RESULTS" else ./cryptest.exe v 2>&1 | tee -a "$TEST_RESULTS" - if [[ ("${PIPESTATUS[0]}" -ne "0") ]]; then + if [[ ("${PIPESTATUS[0]}" -ne 0) ]]; then echo "ERROR: failed to execute validation suite" | tee -a "$TEST_RESULTS" fi ./cryptest.exe tv all 2>&1 | tee -a "$TEST_RESULTS" - if [[ ("${PIPESTATUS[0]}" -ne "0") ]]; then + if [[ ("${PIPESTATUS[0]}" -ne 0) ]]; then echo "ERROR: failed to execute test vectors" | tee -a "$TEST_RESULTS" fi fi @@ -5559,7 +5562,7 @@ fi ############################################ # Darwin, c++03, libc++ -if [[ ("$IS_DARWIN" -ne "0") && ("$HAVE_CXX03" -ne "0" && "$CLANG_COMPILER" -ne "0") ]]; then +if [[ ("$IS_DARWIN" -ne 0) && ("$HAVE_CXX03" -ne 0 && "$CLANG_COMPILER" -ne 0) ]]; then echo echo "************************************" | tee -a "$TEST_RESULTS" echo "Testing: Darwin, c++03, libc++ (LLVM)" | tee -a "$TEST_RESULTS" @@ -5573,15 +5576,15 @@ if [[ ("$IS_DARWIN" -ne "0") && ("$HAVE_CXX03" -ne "0" && "$CLANG_COMPILER" -ne CXXFLAGS="$RELEASE_CXXFLAGS -std=c++03 -stdlib=libc++ $USER_CXXFLAGS" CXX="$CXX" CXXFLAGS="$CXXFLAGS" "$MAKE" "${MAKEARGS[@]}" static cryptest.exe 2>&1 | tee -a "$TEST_RESULTS" - if [[ ("${PIPESTATUS[0]}" -ne "0") ]]; then + if [[ ("${PIPESTATUS[0]}" -ne 0) ]]; then echo "ERROR: failed to make cryptest.exe" | tee -a "$TEST_RESULTS" else ./cryptest.exe v 2>&1 | tee -a "$TEST_RESULTS" - if [[ ("${PIPESTATUS[0]}" -ne "0") ]]; then + if [[ ("${PIPESTATUS[0]}" -ne 0) ]]; then echo "ERROR: failed to execute validation suite" | tee -a "$TEST_RESULTS" fi ./cryptest.exe tv all 2>&1 | tee -a "$TEST_RESULTS" - if [[ ("${PIPESTATUS[0]}" -ne "0") ]]; then + if [[ ("${PIPESTATUS[0]}" -ne 0) ]]; then echo "ERROR: failed to execute test vectors" | tee -a "$TEST_RESULTS" fi fi @@ -5589,7 +5592,7 @@ fi ############################################ # Darwin, c++03, libstdc++ -if [[ ("$IS_DARWIN" -ne "0" && "$HAVE_CXX03" -ne "0") ]]; then +if [[ ("$IS_DARWIN" -ne 0 && "$HAVE_CXX03" -ne 0) ]]; then echo echo "************************************" | tee -a "$TEST_RESULTS" echo "Testing: Darwin, c++03, libstdc++ (GNU)" | tee -a "$TEST_RESULTS" @@ -5603,15 +5606,15 @@ if [[ ("$IS_DARWIN" -ne "0" && "$HAVE_CXX03" -ne "0") ]]; then CXXFLAGS="$RELEASE_CXXFLAGS -std=c++03 -stdlib=libstdc++ $USER_CXXFLAGS" CXX="$CXX" CXXFLAGS="$CXXFLAGS" "$MAKE" "${MAKEARGS[@]}" static cryptest.exe 2>&1 | tee -a "$TEST_RESULTS" - if [[ ("${PIPESTATUS[0]}" -ne "0") ]]; then + if [[ ("${PIPESTATUS[0]}" -ne 0) ]]; then echo "ERROR: failed to make cryptest.exe" | tee -a "$TEST_RESULTS" else ./cryptest.exe v 2>&1 | tee -a "$TEST_RESULTS" - if [[ ("${PIPESTATUS[0]}" -ne "0") ]]; then + if [[ ("${PIPESTATUS[0]}" -ne 0) ]]; then echo "ERROR: failed to execute validation suite" | tee -a "$TEST_RESULTS" fi ./cryptest.exe tv all 2>&1 | tee -a "$TEST_RESULTS" - if [[ ("${PIPESTATUS[0]}" -ne "0") ]]; then + if [[ ("${PIPESTATUS[0]}" -ne 0) ]]; then echo "ERROR: failed to execute test vectors" | tee -a "$TEST_RESULTS" fi fi @@ -5619,7 +5622,7 @@ fi ############################################ # Darwin, c++11, libc++ -if [[ ("$IS_DARWIN" -ne "0" && "$HAVE_CXX11" -ne "0" && "$CLANG_COMPILER" -ne "0") ]]; then +if [[ ("$IS_DARWIN" -ne 0 && "$HAVE_CXX11" -ne 0 && "$CLANG_COMPILER" -ne 0) ]]; then echo echo "************************************" | tee -a "$TEST_RESULTS" echo "Testing: Darwin, c++11, libc++ (LLVM)" | tee -a "$TEST_RESULTS" @@ -5633,15 +5636,15 @@ if [[ ("$IS_DARWIN" -ne "0" && "$HAVE_CXX11" -ne "0" && "$CLANG_COMPILER" -ne "0 CXXFLAGS="$RELEASE_CXXFLAGS -std=c++11 -stdlib=libc++ $USER_CXXFLAGS" CXX="$CXX" CXXFLAGS="$CXXFLAGS" "$MAKE" "${MAKEARGS[@]}" static cryptest.exe 2>&1 | tee -a "$TEST_RESULTS" - if [[ ("${PIPESTATUS[0]}" -ne "0") ]]; then + if [[ ("${PIPESTATUS[0]}" -ne 0) ]]; then echo "ERROR: failed to make cryptest.exe" | tee -a "$TEST_RESULTS" else ./cryptest.exe v 2>&1 | tee -a "$TEST_RESULTS" - if [[ ("${PIPESTATUS[0]}" -ne "0") ]]; then + if [[ ("${PIPESTATUS[0]}" -ne 0) ]]; then echo "ERROR: failed to execute validation suite" | tee -a "$TEST_RESULTS" fi ./cryptest.exe tv all 2>&1 | tee -a "$TEST_RESULTS" - if [[ ("${PIPESTATUS[0]}" -ne "0") ]]; then + if [[ ("${PIPESTATUS[0]}" -ne 0) ]]; then echo "ERROR: failed to execute test vectors" | tee -a "$TEST_RESULTS" fi fi @@ -5649,7 +5652,7 @@ fi ############################################ # Darwin, c++11, libstdc++ -if [[ ("$IS_DARWIN" -ne "0" && "$HAVE_CXX11" -ne "0") ]]; then +if [[ ("$IS_DARWIN" -ne 0 && "$HAVE_CXX11" -ne 0) ]]; then echo echo "************************************" | tee -a "$TEST_RESULTS" echo "Testing: Darwin, c++11, libstdc++ (GNU)" | tee -a "$TEST_RESULTS" @@ -5663,15 +5666,15 @@ if [[ ("$IS_DARWIN" -ne "0" && "$HAVE_CXX11" -ne "0") ]]; then CXXFLAGS="$RELEASE_CXXFLAGS -std=c++11 -stdlib=libstdc++ $USER_CXXFLAGS" CXX="$CXX" CXXFLAGS="$CXXFLAGS" "$MAKE" "${MAKEARGS[@]}" static cryptest.exe 2>&1 | tee -a "$TEST_RESULTS" - if [[ ("${PIPESTATUS[0]}" -ne "0") ]]; then + if [[ ("${PIPESTATUS[0]}" -ne 0) ]]; then echo "ERROR: failed to make cryptest.exe" | tee -a "$TEST_RESULTS" else ./cryptest.exe v 2>&1 | tee -a "$TEST_RESULTS" - if [[ ("${PIPESTATUS[0]}" -ne "0") ]]; then + if [[ ("${PIPESTATUS[0]}" -ne 0) ]]; then echo "ERROR: failed to execute validation suite" | tee -a "$TEST_RESULTS" fi ./cryptest.exe tv all 2>&1 | tee -a "$TEST_RESULTS" - if [[ ("${PIPESTATUS[0]}" -ne "0") ]]; then + if [[ ("${PIPESTATUS[0]}" -ne 0) ]]; then echo "ERROR: failed to execute test vectors" | tee -a "$TEST_RESULTS" fi fi @@ -5679,7 +5682,7 @@ fi ############################################ # Darwin, c++14, libc++ -if [[ ("$IS_DARWIN" -ne "0" && "$HAVE_CXX14" -ne "0" && "$CLANG_COMPILER" -ne "0") ]]; then +if [[ ("$IS_DARWIN" -ne 0 && "$HAVE_CXX14" -ne 0 && "$CLANG_COMPILER" -ne 0) ]]; then echo echo "************************************" | tee -a "$TEST_RESULTS" echo "Testing: Darwin, c++14, libc++ (LLVM)" | tee -a "$TEST_RESULTS" @@ -5693,15 +5696,15 @@ if [[ ("$IS_DARWIN" -ne "0" && "$HAVE_CXX14" -ne "0" && "$CLANG_COMPILER" -ne "0 CXXFLAGS="$RELEASE_CXXFLAGS -std=c++14 -stdlib=libc++ $USER_CXXFLAGS" CXX="$CXX" CXXFLAGS="$CXXFLAGS" "$MAKE" "${MAKEARGS[@]}" static cryptest.exe 2>&1 | tee -a "$TEST_RESULTS" - if [[ ("${PIPESTATUS[0]}" -ne "0") ]]; then + if [[ ("${PIPESTATUS[0]}" -ne 0) ]]; then echo "ERROR: failed to make cryptest.exe" | tee -a "$TEST_RESULTS" else ./cryptest.exe v 2>&1 | tee -a "$TEST_RESULTS" - if [[ ("${PIPESTATUS[0]}" -ne "0") ]]; then + if [[ ("${PIPESTATUS[0]}" -ne 0) ]]; then echo "ERROR: failed to execute validation suite" | tee -a "$TEST_RESULTS" fi ./cryptest.exe tv all 2>&1 | tee -a "$TEST_RESULTS" - if [[ ("${PIPESTATUS[0]}" -ne "0") ]]; then + if [[ ("${PIPESTATUS[0]}" -ne 0) ]]; then echo "ERROR: failed to execute test vectors" | tee -a "$TEST_RESULTS" fi fi @@ -5709,7 +5712,7 @@ fi ############################################ # Darwin, c++14, libstdc++ -if [[ ("$IS_DARWIN" -ne "0" && "$HAVE_CXX14" -ne "0") ]]; then +if [[ ("$IS_DARWIN" -ne 0 && "$HAVE_CXX14" -ne 0) ]]; then echo echo "************************************" | tee -a "$TEST_RESULTS" echo "Testing: Darwin, c++14, libstdc++ (GNU)" | tee -a "$TEST_RESULTS" @@ -5723,15 +5726,15 @@ if [[ ("$IS_DARWIN" -ne "0" && "$HAVE_CXX14" -ne "0") ]]; then CXXFLAGS="$RELEASE_CXXFLAGS -std=c++14 -stdlib=libstdc++ $USER_CXXFLAGS" CXX="$CXX" CXXFLAGS="$CXXFLAGS" "$MAKE" "${MAKEARGS[@]}" static cryptest.exe 2>&1 | tee -a "$TEST_RESULTS" - if [[ ("${PIPESTATUS[0]}" -ne "0") ]]; then + if [[ ("${PIPESTATUS[0]}" -ne 0) ]]; then echo "ERROR: failed to make cryptest.exe" | tee -a "$TEST_RESULTS" else ./cryptest.exe v 2>&1 | tee -a "$TEST_RESULTS" - if [[ ("${PIPESTATUS[0]}" -ne "0") ]]; then + if [[ ("${PIPESTATUS[0]}" -ne 0) ]]; then echo "ERROR: failed to execute validation suite" | tee -a "$TEST_RESULTS" fi ./cryptest.exe tv all 2>&1 | tee -a "$TEST_RESULTS" - if [[ ("${PIPESTATUS[0]}" -ne "0") ]]; then + if [[ ("${PIPESTATUS[0]}" -ne 0) ]]; then echo "ERROR: failed to execute test vectors" | tee -a "$TEST_RESULTS" fi fi @@ -5739,7 +5742,7 @@ fi ############################################ # Darwin, c++17, libc++ -if [[ ("$IS_DARWIN" -ne "0" && "$HAVE_CXX17" -ne "0" && "$CLANG_COMPILER" -ne "0") ]]; then +if [[ ("$IS_DARWIN" -ne 0 && "$HAVE_CXX17" -ne 0 && "$CLANG_COMPILER" -ne 0) ]]; then echo echo "************************************" | tee -a "$TEST_RESULTS" echo "Testing: Darwin, c++17, libc++ (LLVM)" | tee -a "$TEST_RESULTS" @@ -5753,15 +5756,15 @@ if [[ ("$IS_DARWIN" -ne "0" && "$HAVE_CXX17" -ne "0" && "$CLANG_COMPILER" -ne "0 CXXFLAGS="$RELEASE_CXXFLAGS -std=c++17 -stdlib=libc++ $USER_CXXFLAGS" CXX="$CXX" CXXFLAGS="$CXXFLAGS" "$MAKE" "${MAKEARGS[@]}" static cryptest.exe 2>&1 | tee -a "$TEST_RESULTS" - if [[ ("${PIPESTATUS[0]}" -ne "0") ]]; then + if [[ ("${PIPESTATUS[0]}" -ne 0) ]]; then echo "ERROR: failed to make cryptest.exe" | tee -a "$TEST_RESULTS" else ./cryptest.exe v 2>&1 | tee -a "$TEST_RESULTS" - if [[ ("${PIPESTATUS[0]}" -ne "0") ]]; then + if [[ ("${PIPESTATUS[0]}" -ne 0) ]]; then echo "ERROR: failed to execute validation suite" | tee -a "$TEST_RESULTS" fi ./cryptest.exe tv all 2>&1 | tee -a "$TEST_RESULTS" - if [[ ("${PIPESTATUS[0]}" -ne "0") ]]; then + if [[ ("${PIPESTATUS[0]}" -ne 0) ]]; then echo "ERROR: failed to execute test vectors" | tee -a "$TEST_RESULTS" fi fi @@ -5769,7 +5772,7 @@ fi ############################################ # Darwin, c++17, libstdc++ -if [[ ("$IS_DARWIN" -ne "0" && "$HAVE_CXX17" -ne "0") ]]; then +if [[ ("$IS_DARWIN" -ne 0 && "$HAVE_CXX17" -ne 0) ]]; then echo echo "************************************" | tee -a "$TEST_RESULTS" echo "Testing: Darwin, c++17, libstdc++ (GNU)" | tee -a "$TEST_RESULTS" @@ -5783,15 +5786,15 @@ if [[ ("$IS_DARWIN" -ne "0" && "$HAVE_CXX17" -ne "0") ]]; then CXXFLAGS="$RELEASE_CXXFLAGS -std=c++17 -stdlib=libstdc++ $USER_CXXFLAGS" CXX="$CXX" CXXFLAGS="$CXXFLAGS" "$MAKE" "${MAKEARGS[@]}" static cryptest.exe 2>&1 | tee -a "$TEST_RESULTS" - if [[ ("${PIPESTATUS[0]}" -ne "0") ]]; then + if [[ ("${PIPESTATUS[0]}" -ne 0) ]]; then echo "ERROR: failed to make cryptest.exe" | tee -a "$TEST_RESULTS" else ./cryptest.exe v 2>&1 | tee -a "$TEST_RESULTS" - if [[ ("${PIPESTATUS[0]}" -ne "0") ]]; then + if [[ ("${PIPESTATUS[0]}" -ne 0) ]]; then echo "ERROR: failed to execute validation suite" | tee -a "$TEST_RESULTS" fi ./cryptest.exe tv all 2>&1 | tee -a "$TEST_RESULTS" - if [[ ("${PIPESTATUS[0]}" -ne "0") ]]; then + if [[ ("${PIPESTATUS[0]}" -ne 0) ]]; then echo "ERROR: failed to execute test vectors" | tee -a "$TEST_RESULTS" fi fi @@ -5799,7 +5802,7 @@ fi ############################################ # Darwin, Intel multiarch, c++03 -if [[ "$IS_DARWIN" -ne "0" && "$HAVE_INTEL_MULTIARCH" -ne "0" && "$HAVE_CXX03" -ne "0" ]]; then +if [[ "$IS_DARWIN" -ne 0 && "$HAVE_INTEL_MULTIARCH" -ne 0 && "$HAVE_CXX03" -ne 0 ]]; then echo echo "************************************" | tee -a "$TEST_RESULTS" echo "Testing: Darwin, Intel multiarch, c++03" | tee -a "$TEST_RESULTS" @@ -5813,26 +5816,26 @@ if [[ "$IS_DARWIN" -ne "0" && "$HAVE_INTEL_MULTIARCH" -ne "0" && "$HAVE_CXX03" - CXXFLAGS="$RELEASE_CXXFLAGS -arch i386 -arch x86_64 -std=c++03 -DCRYPTOPP_DISABLE_ASM $USER_CXXFLAGS" CXX="$CXX" CXXFLAGS="$CXXFLAGS" "$MAKE" "${MAKEARGS[@]}" static cryptest.exe 2>&1 | tee -a "$TEST_RESULTS" - if [[ ("${PIPESTATUS[0]}" -ne "0") ]]; then + if [[ ("${PIPESTATUS[0]}" -ne 0) ]]; then echo "ERROR: failed to make cryptest.exe" | tee -a "$TEST_RESULTS" else echo "Running i386 version..." arch -i386 ./cryptest.exe v 2>&1 | tee -a "$TEST_RESULTS" - if [[ ("${PIPESTATUS[0]}" -ne "0") ]]; then + if [[ ("${PIPESTATUS[0]}" -ne 0) ]]; then echo "ERROR: failed to execute validation suite (i386)" | tee -a "$TEST_RESULTS" fi arch -i386 ./cryptest.exe tv all 2>&1 | tee -a "$TEST_RESULTS" - if [[ ("${PIPESTATUS[0]}" -ne "0") ]]; then + if [[ ("${PIPESTATUS[0]}" -ne 0) ]]; then echo "ERROR: failed to execute test vectors (i386)" | tee -a "$TEST_RESULTS" fi echo "Running x86_64 version..." arch -x86_64 ./cryptest.exe v 2>&1 | tee -a "$TEST_RESULTS" - if [[ ("${PIPESTATUS[0]}" -ne "0") ]]; then + if [[ ("${PIPESTATUS[0]}" -ne 0) ]]; then echo "ERROR: failed to execute validation suite (x86_64)" | tee -a "$TEST_RESULTS" fi arch -x86_64 ./cryptest.exe tv all 2>&1 | tee -a "$TEST_RESULTS" - if [[ ("${PIPESTATUS[0]}" -ne "0") ]]; then + if [[ ("${PIPESTATUS[0]}" -ne 0) ]]; then echo "ERROR: failed to execute test vectors (x86_64)" | tee -a "$TEST_RESULTS" fi fi @@ -5840,7 +5843,7 @@ fi ############################################ # Darwin, Intel multiarch, c++11 -if [[ "$IS_DARWIN" -ne "0" && "$HAVE_INTEL_MULTIARCH" -ne "0" && "$HAVE_CXX11" -ne "0" ]]; then +if [[ "$IS_DARWIN" -ne 0 && "$HAVE_INTEL_MULTIARCH" -ne 0 && "$HAVE_CXX11" -ne 0 ]]; then echo echo "************************************" | tee -a "$TEST_RESULTS" echo "Testing: Darwin, Intel multiarch, c++11" | tee -a "$TEST_RESULTS" @@ -5854,26 +5857,26 @@ if [[ "$IS_DARWIN" -ne "0" && "$HAVE_INTEL_MULTIARCH" -ne "0" && "$HAVE_CXX11" - CXXFLAGS="$RELEASE_CXXFLAGS -arch i386 -arch x86_64 -std=c++11 -DCRYPTOPP_DISABLE_ASM $USER_CXXFLAGS" CXX="$CXX" CXXFLAGS="$CXXFLAGS" "$MAKE" "${MAKEARGS[@]}" static cryptest.exe 2>&1 | tee -a "$TEST_RESULTS" - if [[ ("${PIPESTATUS[0]}" -ne "0") ]]; then + if [[ ("${PIPESTATUS[0]}" -ne 0) ]]; then echo "ERROR: failed to make cryptest.exe" | tee -a "$TEST_RESULTS" else echo "Running i386 version..." arch -i386 ./cryptest.exe v 2>&1 | tee -a "$TEST_RESULTS" - if [[ ("${PIPESTATUS[0]}" -ne "0") ]]; then + if [[ ("${PIPESTATUS[0]}" -ne 0) ]]; then echo "ERROR: failed to execute validation suite (i386)" | tee -a "$TEST_RESULTS" fi arch -i386 ./cryptest.exe tv all 2>&1 | tee -a "$TEST_RESULTS" - if [[ ("${PIPESTATUS[0]}" -ne "0") ]]; then + if [[ ("${PIPESTATUS[0]}" -ne 0) ]]; then echo "ERROR: failed to execute test vectors (i386)" | tee -a "$TEST_RESULTS" fi echo "Running x86_64 version..." arch -x86_64 ./cryptest.exe v 2>&1 | tee -a "$TEST_RESULTS" - if [[ ("${PIPESTATUS[0]}" -ne "0") ]]; then + if [[ ("${PIPESTATUS[0]}" -ne 0) ]]; then echo "ERROR: failed to execute validation suite (x86_64)" | tee -a "$TEST_RESULTS" fi arch -x86_64 ./cryptest.exe tv all 2>&1 | tee -a "$TEST_RESULTS" - if [[ ("${PIPESTATUS[0]}" -ne "0") ]]; then + if [[ ("${PIPESTATUS[0]}" -ne 0) ]]; then echo "ERROR: failed to execute test vectors (x86_64)" | tee -a "$TEST_RESULTS" fi fi @@ -5881,7 +5884,7 @@ fi ############################################ # Darwin, Intel multiarch, c++14 -if [[ "$IS_DARWIN" -ne "0" && "$HAVE_INTEL_MULTIARCH" -ne "0" && "$HAVE_CXX14" -ne "0" ]]; then +if [[ "$IS_DARWIN" -ne 0 && "$HAVE_INTEL_MULTIARCH" -ne 0 && "$HAVE_CXX14" -ne 0 ]]; then echo echo "************************************" | tee -a "$TEST_RESULTS" echo "Testing: Darwin, Intel multiarch, c++14" | tee -a "$TEST_RESULTS" @@ -5895,26 +5898,26 @@ if [[ "$IS_DARWIN" -ne "0" && "$HAVE_INTEL_MULTIARCH" -ne "0" && "$HAVE_CXX14" - CXXFLAGS="$RELEASE_CXXFLAGS -arch i386 -arch x86_64 -std=c++14 -DCRYPTOPP_DISABLE_ASM $USER_CXXFLAGS" CXX="$CXX" CXXFLAGS="$CXXFLAGS" "$MAKE" "${MAKEARGS[@]}" static cryptest.exe 2>&1 | tee -a "$TEST_RESULTS" - if [[ ("${PIPESTATUS[0]}" -ne "0") ]]; then + if [[ ("${PIPESTATUS[0]}" -ne 0) ]]; then echo "ERROR: failed to make cryptest.exe" | tee -a "$TEST_RESULTS" else echo "Running i386 version..." arch -i386 ./cryptest.exe v 2>&1 | tee -a "$TEST_RESULTS" - if [[ ("${PIPESTATUS[0]}" -ne "0") ]]; then + if [[ ("${PIPESTATUS[0]}" -ne 0) ]]; then echo "ERROR: failed to execute validation suite (i386)" | tee -a "$TEST_RESULTS" fi arch -i386 ./cryptest.exe tv all 2>&1 | tee -a "$TEST_RESULTS" - if [[ ("${PIPESTATUS[0]}" -ne "0") ]]; then + if [[ ("${PIPESTATUS[0]}" -ne 0) ]]; then echo "ERROR: failed to execute test vectors (i386)" | tee -a "$TEST_RESULTS" fi echo "Running x86_64 version..." arch -x86_64 ./cryptest.exe v 2>&1 | tee -a "$TEST_RESULTS" - if [[ ("${PIPESTATUS[0]}" -ne "0") ]]; then + if [[ ("${PIPESTATUS[0]}" -ne 0) ]]; then echo "ERROR: failed to execute validation suite (x86_64)" | tee -a "$TEST_RESULTS" fi arch -x86_64 ./cryptest.exe tv all 2>&1 | tee -a "$TEST_RESULTS" - if [[ ("${PIPESTATUS[0]}" -ne "0") ]]; then + if [[ ("${PIPESTATUS[0]}" -ne 0) ]]; then echo "ERROR: failed to execute test vectors (x86_64)" | tee -a "$TEST_RESULTS" fi fi @@ -5922,7 +5925,7 @@ fi ############################################ # Darwin, Intel multiarch, c++17 -if [[ "$IS_DARWIN" -ne "0" && "$HAVE_INTEL_MULTIARCH" -ne "0" && "$HAVE_CXX17" -ne "0" ]]; then +if [[ "$IS_DARWIN" -ne 0 && "$HAVE_INTEL_MULTIARCH" -ne 0 && "$HAVE_CXX17" -ne 0 ]]; then echo echo "************************************" | tee -a "$TEST_RESULTS" echo "Testing: Darwin, Intel multiarch, c++17" | tee -a "$TEST_RESULTS" @@ -5936,26 +5939,26 @@ if [[ "$IS_DARWIN" -ne "0" && "$HAVE_INTEL_MULTIARCH" -ne "0" && "$HAVE_CXX17" - CXXFLAGS="$RELEASE_CXXFLAGS -arch i386 -arch x86_64 -std=c++17 -DCRYPTOPP_DISABLE_ASM $USER_CXXFLAGS" CXX="$CXX" CXXFLAGS="$CXXFLAGS" "$MAKE" "${MAKEARGS[@]}" static cryptest.exe 2>&1 | tee -a "$TEST_RESULTS" - if [[ ("${PIPESTATUS[0]}" -ne "0") ]]; then + if [[ ("${PIPESTATUS[0]}" -ne 0) ]]; then echo "ERROR: failed to make cryptest.exe" | tee -a "$TEST_RESULTS" else echo "Running i386 version..." arch -i386 ./cryptest.exe v 2>&1 | tee -a "$TEST_RESULTS" - if [[ ("${PIPESTATUS[0]}" -ne "0") ]]; then + if [[ ("${PIPESTATUS[0]}" -ne 0) ]]; then echo "ERROR: failed to execute validation suite (i386)" | tee -a "$TEST_RESULTS" fi arch -i386 ./cryptest.exe tv all 2>&1 | tee -a "$TEST_RESULTS" - if [[ ("${PIPESTATUS[0]}" -ne "0") ]]; then + if [[ ("${PIPESTATUS[0]}" -ne 0) ]]; then echo "ERROR: failed to execute test vectors (i386)" | tee -a "$TEST_RESULTS" fi echo "Running x86_64 version..." arch -x86_64 ./cryptest.exe v 2>&1 | tee -a "$TEST_RESULTS" - if [[ ("${PIPESTATUS[0]}" -ne "0") ]]; then + if [[ ("${PIPESTATUS[0]}" -ne 0) ]]; then echo "ERROR: failed to execute validation suite (x86_64)" | tee -a "$TEST_RESULTS" fi arch -x86_64 ./cryptest.exe tv all 2>&1 | tee -a "$TEST_RESULTS" - if [[ ("${PIPESTATUS[0]}" -ne "0") ]]; then + if [[ ("${PIPESTATUS[0]}" -ne 0) ]]; then echo "ERROR: failed to execute test vectors (x86_64)" | tee -a "$TEST_RESULTS" fi fi @@ -5963,7 +5966,7 @@ fi ############################################ # Darwin, PowerPC multiarch -if [[ ("$IS_DARWIN" -ne "0" && "$HAVE_PPC_MULTIARCH" -ne "0") ]]; then +if [[ ("$IS_DARWIN" -ne 0 && "$HAVE_PPC_MULTIARCH" -ne 0) ]]; then echo echo "************************************" | tee -a "$TEST_RESULTS" echo "Testing: Darwin, PowerPC multiarch" | tee -a "$TEST_RESULTS" @@ -5977,26 +5980,26 @@ if [[ ("$IS_DARWIN" -ne "0" && "$HAVE_PPC_MULTIARCH" -ne "0") ]]; then CXXFLAGS="$RELEASE_CXXFLAGS -arch ppc -arch ppc64 -DCRYPTOPP_DISABLE_ASM $USER_CXXFLAGS" CXX="$CXX" CXXFLAGS="$CXXFLAGS" "$MAKE" "${MAKEARGS[@]}" static cryptest.exe 2>&1 | tee -a "$TEST_RESULTS" - if [[ ("${PIPESTATUS[0]}" -ne "0") ]]; then + if [[ ("${PIPESTATUS[0]}" -ne 0) ]]; then echo "ERROR: failed to make cryptest.exe" | tee -a "$TEST_RESULTS" else echo "Running PPC version..." arch -ppc ./cryptest.exe v 2>&1 | tee -a "$TEST_RESULTS" - if [[ ("${PIPESTATUS[0]}" -ne "0") ]]; then + if [[ ("${PIPESTATUS[0]}" -ne 0) ]]; then echo "ERROR: failed to execute validation suite (PPC)" | tee -a "$TEST_RESULTS" fi arch -ppc ./cryptest.exe tv all 2>&1 | tee -a "$TEST_RESULTS" - if [[ ("${PIPESTATUS[0]}" -ne "0") ]]; then + if [[ ("${PIPESTATUS[0]}" -ne 0) ]]; then echo "ERROR: failed to execute test vectors (PPC)" | tee -a "$TEST_RESULTS" fi echo "Running PPC64 version..." arch -ppc64 ./cryptest.exe v 2>&1 | tee -a "$TEST_RESULTS" - if [[ ("${PIPESTATUS[0]}" -ne "0") ]]; then + if [[ ("${PIPESTATUS[0]}" -ne 0) ]]; then echo "ERROR: failed to execute validation suite (PPC64)" | tee -a "$TEST_RESULTS" fi arch -ppc64 ./cryptest.exe tv all 2>&1 | tee -a "$TEST_RESULTS" - if [[ ("${PIPESTATUS[0]}" -ne "0") ]]; then + if [[ ("${PIPESTATUS[0]}" -ne 0) ]]; then echo "ERROR: failed to execute test vectors (PPC64)" | tee -a "$TEST_RESULTS" fi fi @@ -6004,7 +6007,7 @@ fi ############################################ # Darwin, c++03, Malloc Guards -if [[ ("$IS_DARWIN" -ne "0" && "$HAVE_CXX03" -ne "0") ]]; then +if [[ ("$IS_DARWIN" -ne 0 && "$HAVE_CXX03" -ne 0) ]]; then echo echo "************************************" | tee -a "$TEST_RESULTS" echo "Testing: Darwin, c++03, Malloc Guards" | tee -a "$TEST_RESULTS" @@ -6018,7 +6021,7 @@ if [[ ("$IS_DARWIN" -ne "0" && "$HAVE_CXX03" -ne "0") ]]; then CXXFLAGS="$RELEASE_CXXFLAGS -std=c++03 $USER_CXXFLAGS" CXX="$CXX" CXXFLAGS="$CXXFLAGS" "$MAKE" "${MAKEARGS[@]}" static cryptest.exe 2>&1 | tee -a "$TEST_RESULTS" - if [[ ("${PIPESTATUS[0]}" -ne "0") ]]; then + if [[ ("${PIPESTATUS[0]}" -ne 0) ]]; then echo "ERROR: failed to make cryptest.exe" | tee -a "$TEST_RESULTS" else export MallocScribble=1 @@ -6026,11 +6029,11 @@ if [[ ("$IS_DARWIN" -ne "0" && "$HAVE_CXX03" -ne "0") ]]; then export MallocGuardEdges=1 ./cryptest.exe v 2>&1 | tee -a "$TEST_RESULTS" - if [[ ("${PIPESTATUS[0]}" -ne "0") ]]; then + if [[ ("${PIPESTATUS[0]}" -ne 0) ]]; then echo "ERROR: failed to execute validation suite" | tee -a "$TEST_RESULTS" fi ./cryptest.exe tv all 2>&1 | tee -a "$TEST_RESULTS" - if [[ ("${PIPESTATUS[0]}" -ne "0") ]]; then + if [[ ("${PIPESTATUS[0]}" -ne 0) ]]; then echo "ERROR: failed to execute test vectors" | tee -a "$TEST_RESULTS" fi @@ -6040,7 +6043,7 @@ fi ############################################ # Darwin, c++11, Malloc Guards -if [[ ("$IS_DARWIN" -ne "0" && "$HAVE_CXX11" -ne "0") ]]; then +if [[ ("$IS_DARWIN" -ne 0 && "$HAVE_CXX11" -ne 0) ]]; then echo echo "************************************" | tee -a "$TEST_RESULTS" echo "Testing: Darwin, c++11, Malloc Guards" | tee -a "$TEST_RESULTS" @@ -6054,7 +6057,7 @@ if [[ ("$IS_DARWIN" -ne "0" && "$HAVE_CXX11" -ne "0") ]]; then CXXFLAGS="$RELEASE_CXXFLAGS -std=c++11 $USER_CXXFLAGS" CXX="$CXX" CXXFLAGS="$CXXFLAGS" "$MAKE" "${MAKEARGS[@]}" static cryptest.exe 2>&1 | tee -a "$TEST_RESULTS" - if [[ ("${PIPESTATUS[0]}" -ne "0") ]]; then + if [[ ("${PIPESTATUS[0]}" -ne 0) ]]; then echo "ERROR: failed to make cryptest.exe" | tee -a "$TEST_RESULTS" else export MallocScribble=1 @@ -6062,11 +6065,11 @@ if [[ ("$IS_DARWIN" -ne "0" && "$HAVE_CXX11" -ne "0") ]]; then export MallocGuardEdges=1 ./cryptest.exe v 2>&1 | tee -a "$TEST_RESULTS" - if [[ ("${PIPESTATUS[0]}" -ne "0") ]]; then + if [[ ("${PIPESTATUS[0]}" -ne 0) ]]; then echo "ERROR: failed to execute validation suite" | tee -a "$TEST_RESULTS" fi ./cryptest.exe tv all 2>&1 | tee -a "$TEST_RESULTS" - if [[ ("${PIPESTATUS[0]}" -ne "0") ]]; then + if [[ ("${PIPESTATUS[0]}" -ne 0) ]]; then echo "ERROR: failed to execute test vectors" | tee -a "$TEST_RESULTS" fi @@ -6076,7 +6079,7 @@ fi ############################################ # Darwin, c++14, Malloc Guards -if [[ ("$IS_DARWIN" -ne "0" && "$HAVE_CXX14" -ne "0") ]]; then +if [[ ("$IS_DARWIN" -ne 0 && "$HAVE_CXX14" -ne 0) ]]; then echo echo "************************************" | tee -a "$TEST_RESULTS" echo "Testing: Darwin, c++14, Malloc Guards" | tee -a "$TEST_RESULTS" @@ -6090,7 +6093,7 @@ if [[ ("$IS_DARWIN" -ne "0" && "$HAVE_CXX14" -ne "0") ]]; then CXXFLAGS="$RELEASE_CXXFLAGS -std=c++14 $USER_CXXFLAGS" CXX="$CXX" CXXFLAGS="$CXXFLAGS" "$MAKE" "${MAKEARGS[@]}" static cryptest.exe 2>&1 | tee -a "$TEST_RESULTS" - if [[ ("${PIPESTATUS[0]}" -ne "0") ]]; then + if [[ ("${PIPESTATUS[0]}" -ne 0) ]]; then echo "ERROR: failed to make cryptest.exe" | tee -a "$TEST_RESULTS" else export MallocScribble=1 @@ -6098,11 +6101,11 @@ if [[ ("$IS_DARWIN" -ne "0" && "$HAVE_CXX14" -ne "0") ]]; then export MallocGuardEdges=1 ./cryptest.exe v 2>&1 | tee -a "$TEST_RESULTS" - if [[ ("${PIPESTATUS[0]}" -ne "0") ]]; then + if [[ ("${PIPESTATUS[0]}" -ne 0) ]]; then echo "ERROR: failed to execute validation suite" | tee -a "$TEST_RESULTS" fi ./cryptest.exe tv all 2>&1 | tee -a "$TEST_RESULTS" - if [[ ("${PIPESTATUS[0]}" -ne "0") ]]; then + if [[ ("${PIPESTATUS[0]}" -ne 0) ]]; then echo "ERROR: failed to execute test vectors" | tee -a "$TEST_RESULTS" fi @@ -6112,7 +6115,7 @@ fi ############################################ # Darwin, c++17, Malloc Guards -if [[ ("$IS_DARWIN" -ne "0" && "$HAVE_CXX17" -ne "0") ]]; then +if [[ ("$IS_DARWIN" -ne 0 && "$HAVE_CXX17" -ne 0) ]]; then echo echo "************************************" | tee -a "$TEST_RESULTS" echo "Testing: Darwin, c++17, Malloc Guards" | tee -a "$TEST_RESULTS" @@ -6126,7 +6129,7 @@ if [[ ("$IS_DARWIN" -ne "0" && "$HAVE_CXX17" -ne "0") ]]; then CXXFLAGS="$RELEASE_CXXFLAGS -std=c++17 $USER_CXXFLAGS" CXX="$CXX" CXXFLAGS="$CXXFLAGS" "$MAKE" "${MAKEARGS[@]}" static cryptest.exe 2>&1 | tee -a "$TEST_RESULTS" - if [[ ("${PIPESTATUS[0]}" -ne "0") ]]; then + if [[ ("${PIPESTATUS[0]}" -ne 0) ]]; then echo "ERROR: failed to make cryptest.exe" | tee -a "$TEST_RESULTS" else export MallocScribble=1 @@ -6134,11 +6137,11 @@ if [[ ("$IS_DARWIN" -ne "0" && "$HAVE_CXX17" -ne "0") ]]; then export MallocGuardEdges=1 ./cryptest.exe v 2>&1 | tee -a "$TEST_RESULTS" - if [[ ("${PIPESTATUS[0]}" -ne "0") ]]; then + if [[ ("${PIPESTATUS[0]}" -ne 0) ]]; then echo "ERROR: failed to execute validation suite" | tee -a "$TEST_RESULTS" fi ./cryptest.exe tv all 2>&1 | tee -a "$TEST_RESULTS" - if [[ ("${PIPESTATUS[0]}" -ne "0") ]]; then + if [[ ("${PIPESTATUS[0]}" -ne 0) ]]; then echo "ERROR: failed to execute test vectors" | tee -a "$TEST_RESULTS" fi @@ -6148,11 +6151,11 @@ fi ############################################ # Benchmarks -if [[ "$WANT_BENCHMARKS" -ne "0" ]]; then +if [[ "$WANT_BENCHMARKS" -ne 0 ]]; then ############################################ # Benchmarks, c++03 - if [[ "$HAVE_CXX03" -ne "0" ]]; then + if [[ "$HAVE_CXX03" -ne 0 ]]; then echo echo "************************************" | tee -a "$TEST_RESULTS" echo "Testing: Benchmarks, c++03" | tee -a "$TEST_RESULTS" @@ -6166,12 +6169,12 @@ if [[ "$WANT_BENCHMARKS" -ne "0" ]]; then CXXFLAGS="$RELEASE_CXXFLAGS -std=c++03 $USER_CXXFLAGS" CXX="$CXX" CXXFLAGS="$CXXFLAGS" "$MAKE" "${MAKEARGS[@]}" static cryptest.exe 2>&1 | tee -a "$TEST_RESULTS" - if [[ ("${PIPESTATUS[0]}" -ne "0") ]]; then + if [[ ("${PIPESTATUS[0]}" -ne 0) ]]; then echo "ERROR: failed to make cryptest.exe" | tee -a "$TEST_RESULTS" else echo "**************************************" >> "$BENCHMARK_RESULTS" ./cryptest.exe b 3 "$CPU_FREQ" 2>&1 | tee -a "$BENCHMARK_RESULTS" - if [[ ("${PIPESTATUS[0]}" -ne "0") ]]; then + if [[ ("${PIPESTATUS[0]}" -ne 0) ]]; then echo "ERROR: failed to execute benchmarks" | tee -a "$BENCHMARK_RESULTS" fi fi @@ -6179,7 +6182,7 @@ if [[ "$WANT_BENCHMARKS" -ne "0" ]]; then ############################################ # Benchmarks, c++11 - if [[ "$HAVE_CXX11" -ne "0" ]]; then + if [[ "$HAVE_CXX11" -ne 0 ]]; then echo echo "************************************" | tee -a "$TEST_RESULTS" echo "Testing: Benchmarks, c++11" | tee -a "$TEST_RESULTS" @@ -6193,12 +6196,12 @@ if [[ "$WANT_BENCHMARKS" -ne "0" ]]; then CXXFLAGS="$RELEASE_CXXFLAGS -std=c++11 $USER_CXXFLAGS" CXX="$CXX" CXXFLAGS="$CXXFLAGS" "$MAKE" "${MAKEARGS[@]}" static cryptest.exe 2>&1 | tee -a "$TEST_RESULTS" - if [[ ("${PIPESTATUS[0]}" -ne "0") ]]; then + if [[ ("${PIPESTATUS[0]}" -ne 0) ]]; then echo "ERROR: failed to make cryptest.exe" | tee -a "$TEST_RESULTS" else echo "**************************************" >> "$BENCHMARK_RESULTS" ./cryptest.exe b 3 "$CPU_FREQ" 2>&1 | tee -a "$BENCHMARK_RESULTS" - if [[ ("${PIPESTATUS[0]}" -ne "0") ]]; then + if [[ ("${PIPESTATUS[0]}" -ne 0) ]]; then echo "ERROR: failed to execute benchmarks" | tee -a "$BENCHMARK_RESULTS" fi fi @@ -6206,7 +6209,7 @@ if [[ "$WANT_BENCHMARKS" -ne "0" ]]; then ############################################ # Benchmarks, c++14 - if [[ "$HAVE_CXX14" -ne "0" ]]; then + if [[ "$HAVE_CXX14" -ne 0 ]]; then echo echo "************************************" | tee -a "$TEST_RESULTS" echo "Testing: Benchmarks, c++14" | tee -a "$TEST_RESULTS" @@ -6220,12 +6223,12 @@ if [[ "$WANT_BENCHMARKS" -ne "0" ]]; then CXXFLAGS="$RELEASE_CXXFLAGS -std=c++14 $USER_CXXFLAGS" CXX="$CXX" CXXFLAGS="$CXXFLAGS" "$MAKE" "${MAKEARGS[@]}" static cryptest.exe 2>&1 | tee -a "$TEST_RESULTS" - if [[ ("${PIPESTATUS[0]}" -ne "0") ]]; then + if [[ ("${PIPESTATUS[0]}" -ne 0) ]]; then echo "ERROR: failed to make cryptest.exe" | tee -a "$TEST_RESULTS" else echo "**************************************" >> "$BENCHMARK_RESULTS" ./cryptest.exe b 3 "$CPU_FREQ" 2>&1 | tee -a "$BENCHMARK_RESULTS" - if [[ ("${PIPESTATUS[0]}" -ne "0") ]]; then + if [[ ("${PIPESTATUS[0]}" -ne 0) ]]; then echo "ERROR: failed to execute benchmarks" | tee -a "$BENCHMARK_RESULTS" fi fi @@ -6237,7 +6240,7 @@ fi ############################################ # MinGW and PREFER_BERKELEY_STYLE_SOCKETS -if [[ "$IS_MINGW" -ne "0" ]]; then +if [[ "$IS_MINGW" -ne 0 ]]; then echo echo "************************************" | tee -a "$TEST_RESULTS" echo "Testing: MinGW, PREFER_BERKELEY_STYLE_SOCKETS" | tee -a "$TEST_RESULTS" @@ -6251,15 +6254,15 @@ if [[ "$IS_MINGW" -ne "0" ]]; then CXXFLAGS="$RELEASE_CXXFLAGS -DPREFER_BERKELEY_STYLE_SOCKETS -DNO_WINDOWS_STYLE_SOCKETS $USER_CXXFLAGS" CXX="$CXX" CXXFLAGS="$CXXFLAGS" "$MAKE" "${MAKEARGS[@]}" static cryptest.exe 2>&1 | tee -a "$TEST_RESULTS" - if [[ ("${PIPESTATUS[0]}" -ne "0") ]]; then + if [[ ("${PIPESTATUS[0]}" -ne 0) ]]; then echo "ERROR: failed to make cryptest.exe" | tee -a "$TEST_RESULTS" else ./cryptest.exe v 2>&1 | tee -a "$TEST_RESULTS" - if [[ ("${PIPESTATUS[0]}" -ne "0") ]]; then + if [[ ("${PIPESTATUS[0]}" -ne 0) ]]; then echo "ERROR: failed to execute validation suite" | tee -a "$TEST_RESULTS" fi ./cryptest.exe tv all 2>&1 | tee -a "$TEST_RESULTS" - if [[ ("${PIPESTATUS[0]}" -ne "0") ]]; then + if [[ ("${PIPESTATUS[0]}" -ne 0) ]]; then echo "ERROR: failed to execute test vectors" | tee -a "$TEST_RESULTS" fi fi @@ -6267,7 +6270,7 @@ fi ############################################ # MinGW and PREFER_WINDOWS_STYLE_SOCKETS -if [[ "$IS_MINGW" -ne "0" ]]; then +if [[ "$IS_MINGW" -ne 0 ]]; then echo echo "************************************" | tee -a "$TEST_RESULTS" echo "Testing: MinGW, PREFER_WINDOWS_STYLE_SOCKETS" | tee -a "$TEST_RESULTS" @@ -6281,15 +6284,15 @@ if [[ "$IS_MINGW" -ne "0" ]]; then CXXFLAGS="$RELEASE_CXXFLAGS -DPREFER_WINDOWS_STYLE_SOCKETS -DNO_BERKELEY_STYLE_SOCKETS $USER_CXXFLAGS" CXX="$CXX" CXXFLAGS="$CXXFLAGS" "$MAKE" "${MAKEARGS[@]}" static cryptest.exe 2>&1 | tee -a "$TEST_RESULTS" - if [[ ("${PIPESTATUS[0]}" -ne "0") ]]; then + if [[ ("${PIPESTATUS[0]}" -ne 0) ]]; then echo "ERROR: failed to make cryptest.exe" | tee -a "$TEST_RESULTS" else ./cryptest.exe v 2>&1 | tee -a "$TEST_RESULTS" - if [[ ("${PIPESTATUS[0]}" -ne "0") ]]; then + if [[ ("${PIPESTATUS[0]}" -ne 0) ]]; then echo "ERROR: failed to execute validation suite" | tee -a "$TEST_RESULTS" fi ./cryptest.exe tv all 2>&1 | tee -a "$TEST_RESULTS" - if [[ ("${PIPESTATUS[0]}" -ne "0") ]]; then + if [[ ("${PIPESTATUS[0]}" -ne 0) ]]; then echo "ERROR: failed to execute test vectors" | tee -a "$TEST_RESULTS" fi fi @@ -6297,7 +6300,7 @@ fi ############################################ # Valgrind, c++03. Requires -O1 for accurate results -if [[ "$HAVE_CXX03" -ne "0" && "$HAVE_VALGRIND" -ne "0" ]]; then +if [[ "$HAVE_CXX03" -ne 0 && "$HAVE_VALGRIND" -ne 0 ]]; then echo echo "************************************" | tee -a "$TEST_RESULTS" echo "Testing: Valgrind, c++03" | tee -a "$TEST_RESULTS" @@ -6311,7 +6314,7 @@ if [[ "$HAVE_CXX03" -ne "0" && "$HAVE_VALGRIND" -ne "0" ]]; then CXXFLAGS="$VALGRIND_CXXFLAGS -std=c++03 $USER_CXXFLAGS" CXX="$CXX" CXXFLAGS="$CXXFLAGS" "$MAKE" "${MAKEARGS[@]}" static cryptest.exe 2>&1 | tee -a "$TEST_RESULTS" - if [[ ("${PIPESTATUS[0]}" -ne "0") ]]; then + if [[ ("${PIPESTATUS[0]}" -ne 0) ]]; then echo "ERROR: failed to make cryptest.exe" | tee -a "$TEST_RESULTS" else valgrind --track-origins=yes --suppressions=cryptopp.supp ./cryptest.exe v 2>&1 | tee -a "$TEST_RESULTS" @@ -6321,7 +6324,7 @@ fi ############################################ # Valgrind, c++11. Requires -O1 for accurate results -if [[ ("$HAVE_VALGRIND" -ne "0" && "$HAVE_CXX11" -ne "0") ]]; then +if [[ ("$HAVE_VALGRIND" -ne 0 && "$HAVE_CXX11" -ne 0) ]]; then echo echo "************************************" | tee -a "$TEST_RESULTS" echo "Testing: Valgrind, c++11" | tee -a "$TEST_RESULTS" @@ -6335,7 +6338,7 @@ if [[ ("$HAVE_VALGRIND" -ne "0" && "$HAVE_CXX11" -ne "0") ]]; then CXXFLAGS="$VALGRIND_CXXFLAGS -std=c++11 $USER_CXXFLAGS" CXX="$CXX" CXXFLAGS="$CXXFLAGS" "$MAKE" "${MAKEARGS[@]}" static cryptest.exe 2>&1 | tee -a "$TEST_RESULTS" - if [[ ("${PIPESTATUS[0]}" -ne "0") ]]; then + if [[ ("${PIPESTATUS[0]}" -ne 0) ]]; then echo "ERROR: failed to make cryptest.exe" | tee -a "$TEST_RESULTS" else valgrind --track-origins=yes --suppressions=cryptopp.supp ./cryptest.exe v 2>&1 | tee -a "$TEST_RESULTS" @@ -6345,7 +6348,7 @@ fi ############################################ # Valgrind, c++14. Requires -O1 for accurate results -if [[ ("$HAVE_VALGRIND" -ne "0" && "$HAVE_CXX14" -ne "0") ]]; then +if [[ ("$HAVE_VALGRIND" -ne 0 && "$HAVE_CXX14" -ne 0) ]]; then echo echo "************************************" | tee -a "$TEST_RESULTS" echo "Testing: Valgrind, c++14" | tee -a "$TEST_RESULTS" @@ -6359,7 +6362,7 @@ if [[ ("$HAVE_VALGRIND" -ne "0" && "$HAVE_CXX14" -ne "0") ]]; then CXXFLAGS="$VALGRIND_CXXFLAGS -std=c++14 $USER_CXXFLAGS" CXX="$CXX" CXXFLAGS="$CXXFLAGS" "$MAKE" "${MAKEARGS[@]}" static cryptest.exe 2>&1 | tee -a "$TEST_RESULTS" - if [[ ("${PIPESTATUS[0]}" -ne "0") ]]; then + if [[ ("${PIPESTATUS[0]}" -ne 0) ]]; then echo "ERROR: failed to make cryptest.exe" | tee -a "$TEST_RESULTS" else valgrind --track-origins=yes --suppressions=cryptopp.supp ./cryptest.exe v 2>&1 | tee -a "$TEST_RESULTS" @@ -6369,7 +6372,7 @@ fi ############################################ # Valgrind, c++17. Requires -O1 for accurate results -if [[ ("$HAVE_VALGRIND" -ne "0" && "$HAVE_CXX17" -ne "0") ]]; then +if [[ ("$HAVE_VALGRIND" -ne 0 && "$HAVE_CXX17" -ne 0) ]]; then echo echo "************************************" | tee -a "$TEST_RESULTS" echo "Testing: Valgrind, c++17" | tee -a "$TEST_RESULTS" @@ -6383,7 +6386,7 @@ if [[ ("$HAVE_VALGRIND" -ne "0" && "$HAVE_CXX17" -ne "0") ]]; then CXXFLAGS="$VALGRIND_CXXFLAGS -std=c++17 $USER_CXXFLAGS" CXX="$CXX" CXXFLAGS="$CXXFLAGS" "$MAKE" "${MAKEARGS[@]}" static cryptest.exe 2>&1 | tee -a "$TEST_RESULTS" - if [[ ("${PIPESTATUS[0]}" -ne "0") ]]; then + if [[ ("${PIPESTATUS[0]}" -ne 0) ]]; then echo "ERROR: failed to make cryptest.exe" | tee -a "$TEST_RESULTS" else valgrind --track-origins=yes --suppressions=cryptopp.supp ./cryptest.exe v 2>&1 | tee -a "$TEST_RESULTS" @@ -6393,7 +6396,7 @@ fi ############################################ # C++03 with elevated warnings -if [[ ("$HAVE_CXX03" -ne "0" && ("$GCC_COMPILER" -ne "0" || "$CLANG_COMPILER" -ne "0")) ]]; then +if [[ ("$HAVE_CXX03" -ne 0 && ("$GCC_COMPILER" -ne 0 || "$CLANG_COMPILER" -ne 0)) ]]; then ############################################ # Debug build @@ -6410,7 +6413,7 @@ if [[ ("$HAVE_CXX03" -ne "0" && ("$GCC_COMPILER" -ne "0" || "$CLANG_COMPILER" -n CXXFLAGS="$DEBUG_CXXFLAGS -std=c++03 ${WARNING_CXXFLAGS[@]}" CXX="$CXX" CXXFLAGS="$CXXFLAGS" "$MAKE" "${MAKEARGS[@]}" static dynamic cryptest.exe 2>&1 | tee -a "$WARN_RESULTS" - if [[ ("${PIPESTATUS[0]}" -ne "0") ]]; then + if [[ ("${PIPESTATUS[0]}" -ne 0) ]]; then echo "ERROR: failed to make cryptest.exe" | tee -a "$WARN_RESULTS" fi @@ -6428,14 +6431,14 @@ if [[ ("$HAVE_CXX03" -ne "0" && ("$GCC_COMPILER" -ne "0" || "$CLANG_COMPILER" -n CXXFLAGS="$RELEASE_CXXFLAGS -std=c++03 ${WARNING_CXXFLAGS[@]}" CXX="$CXX" CXXFLAGS="$CXXFLAGS" "$MAKE" "${MAKEARGS[@]}" static dynamic cryptest.exe 2>&1 | tee -a "$WARN_RESULTS" - if [[ "$?" -ne "0" ]]; then + if [[ "$?" -ne 0 ]]; then echo "ERROR: failed to make cryptest.exe" | tee -a "$WARN_RESULTS" fi fi ############################################ # C++11 with elevated warnings -if [[ ("$HAVE_CXX11" -ne "0" && ("$GCC_COMPILER" -ne "0" || "$CLANG_COMPILER" -ne "0")) ]]; then +if [[ ("$HAVE_CXX11" -ne 0 && ("$GCC_COMPILER" -ne 0 || "$CLANG_COMPILER" -ne 0)) ]]; then ############################################ # Debug build @@ -6452,7 +6455,7 @@ if [[ ("$HAVE_CXX11" -ne "0" && ("$GCC_COMPILER" -ne "0" || "$CLANG_COMPILER" -n CXXFLAGS="$DEBUG_CXXFLAGS -std=c++11 ${WARNING_CXXFLAGS[@]}" CXX="$CXX" CXXFLAGS="$CXXFLAGS" "$MAKE" "${MAKEARGS[@]}" static dynamic cryptest.exe 2>&1 | tee -a "$WARN_RESULTS" - if [[ ("${PIPESTATUS[0]}" -ne "0") ]]; then + if [[ ("${PIPESTATUS[0]}" -ne 0) ]]; then echo "ERROR: failed to make cryptest.exe" | tee -a "$WARN_RESULTS" fi @@ -6470,14 +6473,14 @@ if [[ ("$HAVE_CXX11" -ne "0" && ("$GCC_COMPILER" -ne "0" || "$CLANG_COMPILER" -n CXXFLAGS="$RELEASE_CXXFLAGS -std=c++11 ${WARNING_CXXFLAGS[@]}" CXX="$CXX" CXXFLAGS="$CXXFLAGS" "$MAKE" "${MAKEARGS[@]}" static dynamic cryptest.exe 2>&1 | tee -a "$WARN_RESULTS" - if [[ "$?" -ne "0" ]]; then + if [[ "$?" -ne 0 ]]; then echo "ERROR: failed to make cryptest.exe" | tee -a "$WARN_RESULTS" fi fi ############################################ # C++14 with elevated warnings -if [[ ("$HAVE_CXX14" -ne "0" && ("$GCC_COMPILER" -ne "0" || "$CLANG_COMPILER" -ne "0")) ]]; then +if [[ ("$HAVE_CXX14" -ne 0 && ("$GCC_COMPILER" -ne 0 || "$CLANG_COMPILER" -ne 0)) ]]; then ############################################ # Debug build @@ -6494,7 +6497,7 @@ if [[ ("$HAVE_CXX14" -ne "0" && ("$GCC_COMPILER" -ne "0" || "$CLANG_COMPILER" -n CXXFLAGS="$DEBUG_CXXFLAGS -std=c++14 ${WARNING_CXXFLAGS[@]}" CXX="$CXX" CXXFLAGS="$CXXFLAGS" "$MAKE" "${MAKEARGS[@]}" static dynamic cryptest.exe 2>&1 | tee -a "$WARN_RESULTS" - if [[ ("${PIPESTATUS[0]}" -ne "0") ]]; then + if [[ ("${PIPESTATUS[0]}" -ne 0) ]]; then echo "ERROR: failed to make cryptest.exe" | tee -a "$WARN_RESULTS" fi @@ -6512,14 +6515,14 @@ if [[ ("$HAVE_CXX14" -ne "0" && ("$GCC_COMPILER" -ne "0" || "$CLANG_COMPILER" -n CXXFLAGS="$RELEASE_CXXFLAGS -std=c++14 ${WARNING_CXXFLAGS[@]}" CXX="$CXX" CXXFLAGS="$CXXFLAGS" "$MAKE" "${MAKEARGS[@]}" static dynamic cryptest.exe 2>&1 | tee -a "$WARN_RESULTS" - if [[ "$?" -ne "0" ]]; then + if [[ "$?" -ne 0 ]]; then echo "ERROR: failed to make cryptest.exe" | tee -a "$WARN_RESULTS" fi fi ############################################ # C++17 with elevated warnings -if [[ ("$HAVE_CXX17" -ne "0" && ("$GCC_COMPILER" -ne "0" || "$CLANG_COMPILER" -ne "0")) ]]; then +if [[ ("$HAVE_CXX17" -ne 0 && ("$GCC_COMPILER" -ne 0 || "$CLANG_COMPILER" -ne 0)) ]]; then ############################################ # Debug build @@ -6536,7 +6539,7 @@ if [[ ("$HAVE_CXX17" -ne "0" && ("$GCC_COMPILER" -ne "0" || "$CLANG_COMPILER" -n CXXFLAGS="$DEBUG_CXXFLAGS -std=c++17 ${WARNING_CXXFLAGS[@]}" CXX="$CXX" CXXFLAGS="$CXXFLAGS" "$MAKE" "${MAKEARGS[@]}" static dynamic cryptest.exe 2>&1 | tee -a "$WARN_RESULTS" - if [[ ("${PIPESTATUS[0]}" -ne "0") ]]; then + if [[ ("${PIPESTATUS[0]}" -ne 0) ]]; then echo "ERROR: failed to make cryptest.exe" | tee -a "$WARN_RESULTS" fi @@ -6555,14 +6558,14 @@ if [[ ("$HAVE_CXX17" -ne "0" && ("$GCC_COMPILER" -ne "0" || "$CLANG_COMPILER" -n CXXFLAGS="$RELEASE_CXXFLAGS -std=c++17 ${WARNING_CXXFLAGS[@]}" CXX="$CXX" CXXFLAGS="$CXXFLAGS" "$MAKE" "${MAKEARGS[@]}" static dynamic cryptest.exe 2>&1 | tee -a "$WARN_RESULTS" - if [[ "$?" -ne "0" ]]; then + if [[ "$?" -ne 0 ]]; then echo "ERROR: failed to make cryptest.exe" | tee -a "$WARN_RESULTS" fi fi ############################################ # C++20 with elevated warnings -if [[ ("$HAVE_CXX20" -ne "0" && ("$GCC_COMPILER" -ne "0" || "$CLANG_COMPILER" -ne "0")) ]]; then +if [[ ("$HAVE_CXX20" -ne 0 && ("$GCC_COMPILER" -ne 0 || "$CLANG_COMPILER" -ne 0)) ]]; then ############################################ # Debug build @@ -6579,7 +6582,7 @@ if [[ ("$HAVE_CXX20" -ne "0" && ("$GCC_COMPILER" -ne "0" || "$CLANG_COMPILER" -n CXXFLAGS="$DEBUG_CXXFLAGS -std=c++20 ${WARNING_CXXFLAGS[@]}" CXX="$CXX" CXXFLAGS="$CXXFLAGS" "$MAKE" "${MAKEARGS[@]}" static dynamic cryptest.exe 2>&1 | tee -a "$WARN_RESULTS" - if [[ ("${PIPESTATUS[0]}" -ne "0") ]]; then + if [[ ("${PIPESTATUS[0]}" -ne 0) ]]; then echo "ERROR: failed to make cryptest.exe" | tee -a "$WARN_RESULTS" fi @@ -6598,7 +6601,7 @@ if [[ ("$HAVE_CXX20" -ne "0" && ("$GCC_COMPILER" -ne "0" || "$CLANG_COMPILER" -n CXXFLAGS="$RELEASE_CXXFLAGS -std=c++20 ${WARNING_CXXFLAGS[@]}" CXX="$CXX" CXXFLAGS="$CXXFLAGS" "$MAKE" "${MAKEARGS[@]}" static dynamic cryptest.exe 2>&1 | tee -a "$WARN_RESULTS" - if [[ "$?" -ne "0" ]]; then + if [[ "$?" -ne 0 ]]; then echo "ERROR: failed to make cryptest.exe" | tee -a "$WARN_RESULTS" fi fi @@ -6606,11 +6609,11 @@ fi ############################################ # Perform a quick check with Clang, if available. # This check was added after testing on Ubuntu 14.04 with Clang 3.4. -if [[ ("$CLANG_COMPILER" -eq "0") ]]; then +if [[ ("$CLANG_COMPILER" -eq 0) ]]; then CLANG_CXX=$(command -v clang++ 2>/dev/null) "$CLANG_CXX" -x c++ -DCRYPTOPP_ADHOC_MAIN adhoc.cpp.proto -o "$TMPDIR/adhoc.exe" > /dev/null 2>&1 - if [[ "$?" -eq "0" ]]; then + if [[ "$?" -eq 0 ]]; then ############################################ # Clang build @@ -6626,15 +6629,15 @@ if [[ ("$CLANG_COMPILER" -eq "0") ]]; then CXXFLAGS="-DNDEBUG -g2 -O3" CXX="$CLANG_CXX" CXXFLAGS="$CXXFLAGS" "$MAKE" "${MAKEARGS[@]}" static dynamic cryptest.exe 2>&1 | tee -a "$TEST_RESULTS" - if [[ ("${PIPESTATUS[0]}" -ne "0") ]]; then + if [[ ("${PIPESTATUS[0]}" -ne 0) ]]; then echo "ERROR: failed to make cryptest.exe" | tee -a "$TEST_RESULTS" else ./cryptest.exe v 2>&1 | tee -a "$TEST_RESULTS" - if [[ ("${PIPESTATUS[0]}" -ne "0") ]]; then + if [[ ("${PIPESTATUS[0]}" -ne 0) ]]; then echo "ERROR: failed to execute validation suite" | tee -a "$TEST_RESULTS" fi ./cryptest.exe tv all 2>&1 | tee -a "$TEST_RESULTS" - if [[ ("${PIPESTATUS[0]}" -ne "0") ]]; then + if [[ ("${PIPESTATUS[0]}" -ne 0) ]]; then echo "ERROR: failed to execute test vectors" | tee -a "$TEST_RESULTS" fi fi @@ -6643,11 +6646,11 @@ fi ############################################ # Perform a quick check with GCC, if available. -if [[ ("$GCC_COMPILER" -eq "0") ]]; then +if [[ ("$GCC_COMPILER" -eq 0) ]]; then GCC_CXX=$(command -v g++ 2>/dev/null) "$GCC_CXX" -x c++ -DCRYPTOPP_ADHOC_MAIN adhoc.cpp.proto -o "$TMPDIR/adhoc.exe" > /dev/null 2>&1 - if [[ "$?" -eq "0" ]]; then + if [[ "$?" -eq 0 ]]; then ############################################ # GCC build @@ -6663,15 +6666,15 @@ if [[ ("$GCC_COMPILER" -eq "0") ]]; then CXXFLAGS="-DNDEBUG -g2 -O3" CXX="$GCC_CXX" CXXFLAGS="$CXXFLAGS" "$MAKE" "${MAKEARGS[@]}" static dynamic cryptest.exe 2>&1 | tee -a "$TEST_RESULTS" - if [[ ("${PIPESTATUS[0]}" -ne "0") ]]; then + if [[ ("${PIPESTATUS[0]}" -ne 0) ]]; then echo "ERROR: failed to make cryptest.exe" | tee -a "$TEST_RESULTS" else ./cryptest.exe v 2>&1 | tee -a "$TEST_RESULTS" - if [[ ("${PIPESTATUS[0]}" -ne "0") ]]; then + if [[ ("${PIPESTATUS[0]}" -ne 0) ]]; then echo "ERROR: failed to execute validation suite" | tee -a "$TEST_RESULTS" fi ./cryptest.exe tv all 2>&1 | tee -a "$TEST_RESULTS" - if [[ ("${PIPESTATUS[0]}" -ne "0") ]]; then + if [[ ("${PIPESTATUS[0]}" -ne 0) ]]; then echo "ERROR: failed to execute test vectors" | tee -a "$TEST_RESULTS" fi fi @@ -6680,14 +6683,14 @@ fi ############################################ # Perform a quick check with Intel ICPC, if available. -if [[ ("$INTEL_COMPILER" -eq "0") ]]; then +if [[ ("$INTEL_COMPILER" -eq 0) ]]; then INTEL_CXX=$(command -v icpc 2>/dev/null) if [[ (-z "$INTEL_CXX") ]]; then INTEL_CXX=$(find /opt/intel -name icpc 2>/dev/null | "$GREP" -iv composer | head -1) fi "$INTEL_CXX" -x c++ -DCRYPTOPP_ADHOC_MAIN adhoc.cpp.proto -o "$TMPDIR/adhoc.exe" > /dev/null 2>&1 - if [[ "$?" -eq "0" ]]; then + if [[ "$?" -eq 0 ]]; then ############################################ # Intel build @@ -6703,15 +6706,15 @@ if [[ ("$INTEL_COMPILER" -eq "0") ]]; then CXXFLAGS="-DNDEBUG -g2 -O3" CXX="$INTEL_CXX" CXXFLAGS="$CXXFLAGS" "$MAKE" "${MAKEARGS[@]}" static dynamic cryptest.exe 2>&1 | tee -a "$TEST_RESULTS" - if [[ ("${PIPESTATUS[0]}" -ne "0") ]]; then + if [[ ("${PIPESTATUS[0]}" -ne 0) ]]; then echo "ERROR: failed to make cryptest.exe" | tee -a "$TEST_RESULTS" else ./cryptest.exe v 2>&1 | tee -a "$TEST_RESULTS" - if [[ ("${PIPESTATUS[0]}" -ne "0") ]]; then + if [[ ("${PIPESTATUS[0]}" -ne 0) ]]; then echo "ERROR: failed to execute validation suite" | tee -a "$TEST_RESULTS" fi ./cryptest.exe tv all 2>&1 | tee -a "$TEST_RESULTS" - if [[ ("${PIPESTATUS[0]}" -ne "0") ]]; then + if [[ ("${PIPESTATUS[0]}" -ne 0) ]]; then echo "ERROR: failed to execute test vectors" | tee -a "$TEST_RESULTS" fi fi @@ -6720,12 +6723,12 @@ fi ############################################ # Perform a quick check with MacPorts compilers, if available. -if [[ ("$IS_DARWIN" -ne "0" && "$MACPORTS_COMPILER" -eq "0") ]]; then +if [[ ("$IS_DARWIN" -ne 0 && "$MACPORTS_COMPILER" -eq 0) ]]; then MACPORTS_CXX=$(find /opt/local/bin -name 'g++-mp-4*' 2>/dev/null | head -1) if [[ (! -z "$MACPORTS_CXX") ]]; then "$MACPORTS_CXX" -x c++ -std=c++11 -DCRYPTOPP_ADHOC_MAIN adhoc.cpp.proto -o "$TMPDIR/adhoc.exe" > /dev/null 2>&1 - if [[ "$?" -eq "0" ]]; then + if [[ "$?" -eq 0 ]]; then ############################################ # MacPorts GCC 4.x build @@ -6742,15 +6745,15 @@ if [[ ("$IS_DARWIN" -ne "0" && "$MACPORTS_COMPILER" -eq "0") ]]; then # We want to use -stdlib=libstdc++ below, but it causes a compile error. Maybe MacPorts hardwired libc++. CXXFLAGS="-DNDEBUG -g2 -O3 -std=c++11" CXX="$MACPORTS_CXX" CXXFLAGS="$CXXFLAGS" "$MAKE" "${MAKEARGS[@]}" static dynamic cryptest.exe 2>&1 | tee -a "$TEST_RESULTS" - if [[ ("${PIPESTATUS[0]}" -ne "0") ]]; then + if [[ ("${PIPESTATUS[0]}" -ne 0) ]]; then echo "ERROR: failed to make cryptest.exe" | tee -a "$TEST_RESULTS" else ./cryptest.exe v 2>&1 | tee -a "$TEST_RESULTS" - if [[ ("${PIPESTATUS[0]}" -ne "0") ]]; then + if [[ ("${PIPESTATUS[0]}" -ne 0) ]]; then echo "ERROR: failed to execute validation suite" | tee -a "$TEST_RESULTS" fi ./cryptest.exe tv all 2>&1 | tee -a "$TEST_RESULTS" - if [[ ("${PIPESTATUS[0]}" -ne "0") ]]; then + if [[ ("${PIPESTATUS[0]}" -ne 0) ]]; then echo "ERROR: failed to execute test vectors" | tee -a "$TEST_RESULTS" fi fi @@ -6760,7 +6763,7 @@ if [[ ("$IS_DARWIN" -ne "0" && "$MACPORTS_COMPILER" -eq "0") ]]; then MACPORTS_CXX=$(find /opt/local/bin -name 'g++-mp-5*' 2>/dev/null | head -1) if [[ (! -z "$MACPORTS_CXX") ]]; then "$MACPORTS_CXX" -x c++ -std=c++11 -DCRYPTOPP_ADHOC_MAIN adhoc.cpp.proto -o "$TMPDIR/adhoc.exe" > /dev/null 2>&1 - if [[ "$?" -eq "0" ]]; then + if [[ "$?" -eq 0 ]]; then ############################################ # MacPorts GCC 5.x build @@ -6777,15 +6780,15 @@ if [[ ("$IS_DARWIN" -ne "0" && "$MACPORTS_COMPILER" -eq "0") ]]; then # We want to use -stdlib=libstdc++ below, but it causes a compile error. Maybe MacPorts hardwired libc++. CXXFLAGS="-DNDEBUG -g2 -O3 -std=c++11" CXX="$MACPORTS_CXX" CXXFLAGS="$CXXFLAGS" "$MAKE" "${MAKEARGS[@]}" static dynamic cryptest.exe 2>&1 | tee -a "$TEST_RESULTS" - if [[ ("${PIPESTATUS[0]}" -ne "0") ]]; then + if [[ ("${PIPESTATUS[0]}" -ne 0) ]]; then echo "ERROR: failed to make cryptest.exe" | tee -a "$TEST_RESULTS" else ./cryptest.exe v 2>&1 | tee -a "$TEST_RESULTS" - if [[ ("${PIPESTATUS[0]}" -ne "0") ]]; then + if [[ ("${PIPESTATUS[0]}" -ne 0) ]]; then echo "ERROR: failed to execute validation suite" | tee -a "$TEST_RESULTS" fi ./cryptest.exe tv all 2>&1 | tee -a "$TEST_RESULTS" - if [[ ("${PIPESTATUS[0]}" -ne "0") ]]; then + if [[ ("${PIPESTATUS[0]}" -ne 0) ]]; then echo "ERROR: failed to execute test vectors" | tee -a "$TEST_RESULTS" fi fi @@ -6795,7 +6798,7 @@ if [[ ("$IS_DARWIN" -ne "0" && "$MACPORTS_COMPILER" -eq "0") ]]; then MACPORTS_CXX=$(find /opt/local/bin -name 'g++-mp-6*' 2>/dev/null | head -1) if [[ (! -z "$MACPORTS_CXX") ]]; then "$MACPORTS_CXX" -x c++ -std=c++11 -DCRYPTOPP_ADHOC_MAIN adhoc.cpp.proto -o "$TMPDIR/adhoc.exe" > /dev/null 2>&1 - if [[ "$?" -eq "0" ]]; then + if [[ "$?" -eq 0 ]]; then ############################################ # MacPorts GCC 6.x build @@ -6812,15 +6815,15 @@ if [[ ("$IS_DARWIN" -ne "0" && "$MACPORTS_COMPILER" -eq "0") ]]; then # We want to use -stdlib=libstdc++ below, but it causes a compile error. Maybe MacPorts hardwired libc++. CXXFLAGS="-DNDEBUG -g2 -O3 -std=c++11" CXX="$MACPORTS_CXX" CXXFLAGS="$CXXFLAGS" "$MAKE" "${MAKEARGS[@]}" static dynamic cryptest.exe 2>&1 | tee -a "$TEST_RESULTS" - if [[ ("${PIPESTATUS[0]}" -ne "0") ]]; then + if [[ ("${PIPESTATUS[0]}" -ne 0) ]]; then echo "ERROR: failed to make cryptest.exe" | tee -a "$TEST_RESULTS" else ./cryptest.exe v 2>&1 | tee -a "$TEST_RESULTS" - if [[ ("${PIPESTATUS[0]}" -ne "0") ]]; then + if [[ ("${PIPESTATUS[0]}" -ne 0) ]]; then echo "ERROR: failed to execute validation suite" | tee -a "$TEST_RESULTS" fi ./cryptest.exe tv all 2>&1 | tee -a "$TEST_RESULTS" - if [[ ("${PIPESTATUS[0]}" -ne "0") ]]; then + if [[ ("${PIPESTATUS[0]}" -ne 0) ]]; then echo "ERROR: failed to execute test vectors" | tee -a "$TEST_RESULTS" fi fi @@ -6830,7 +6833,7 @@ if [[ ("$IS_DARWIN" -ne "0" && "$MACPORTS_COMPILER" -eq "0") ]]; then MACPORTS_CXX=$(find /opt/local/bin -name 'g++-mp-7*' 2>/dev/null | head -1) if [[ (! -z "$MACPORTS_CXX") ]]; then "$MACPORTS_CXX" -x c++ -std=c++11 -DCRYPTOPP_ADHOC_MAIN adhoc.cpp.proto -o "$TMPDIR/adhoc.exe" > /dev/null 2>&1 - if [[ "$?" -eq "0" ]]; then + if [[ "$?" -eq 0 ]]; then ############################################ # MacPorts GCC 7.x build @@ -6847,15 +6850,15 @@ if [[ ("$IS_DARWIN" -ne "0" && "$MACPORTS_COMPILER" -eq "0") ]]; then # We want to use -stdlib=libstdc++ below, but it causes a compile error. Maybe MacPorts hardwired libc++. CXXFLAGS="-DNDEBUG -g2 -O3 -std=c++11" CXX="$MACPORTS_CXX" CXXFLAGS="$CXXFLAGS" "$MAKE" "${MAKEARGS[@]}" static dynamic cryptest.exe 2>&1 | tee -a "$TEST_RESULTS" - if [[ ("${PIPESTATUS[0]}" -ne "0") ]]; then + if [[ ("${PIPESTATUS[0]}" -ne 0) ]]; then echo "ERROR: failed to make cryptest.exe" | tee -a "$TEST_RESULTS" else ./cryptest.exe v 2>&1 | tee -a "$TEST_RESULTS" - if [[ ("${PIPESTATUS[0]}" -ne "0") ]]; then + if [[ ("${PIPESTATUS[0]}" -ne 0) ]]; then echo "ERROR: failed to execute validation suite" | tee -a "$TEST_RESULTS" fi ./cryptest.exe tv all 2>&1 | tee -a "$TEST_RESULTS" - if [[ ("${PIPESTATUS[0]}" -ne "0") ]]; then + if [[ ("${PIPESTATUS[0]}" -ne 0) ]]; then echo "ERROR: failed to execute test vectors" | tee -a "$TEST_RESULTS" fi fi @@ -6865,7 +6868,7 @@ if [[ ("$IS_DARWIN" -ne "0" && "$MACPORTS_COMPILER" -eq "0") ]]; then MACPORTS_CXX=$(find /opt/local/bin -name 'clang++-mp-3.7*' 2>/dev/null | head -1) if [[ (! -z "$MACPORTS_CXX") ]]; then "$MACPORTS_CXX" -x c++ -std=c++11 -DCRYPTOPP_ADHOC_MAIN adhoc.cpp.proto -o "$TMPDIR/adhoc.exe" > /dev/null 2>&1 - if [[ "$?" -eq "0" ]]; then + if [[ "$?" -eq 0 ]]; then ############################################ # MacPorts 3.7 Clang build @@ -6881,15 +6884,15 @@ if [[ ("$IS_DARWIN" -ne "0" && "$MACPORTS_COMPILER" -eq "0") ]]; then CXXFLAGS="-DNDEBUG -g2 -O3 -std=c++11 -stdlib=libc++" CXX="$MACPORTS_CXX" CXXFLAGS="$CXXFLAGS" "$MAKE" "${MAKEARGS[@]}" static dynamic cryptest.exe 2>&1 | tee -a "$TEST_RESULTS" - if [[ ("${PIPESTATUS[0]}" -ne "0") ]]; then + if [[ ("${PIPESTATUS[0]}" -ne 0) ]]; then echo "ERROR: failed to make cryptest.exe" | tee -a "$TEST_RESULTS" else ./cryptest.exe v 2>&1 | tee -a "$TEST_RESULTS" - if [[ ("${PIPESTATUS[0]}" -ne "0") ]]; then + if [[ ("${PIPESTATUS[0]}" -ne 0) ]]; then echo "ERROR: failed to execute validation suite" | tee -a "$TEST_RESULTS" fi ./cryptest.exe tv all 2>&1 | tee -a "$TEST_RESULTS" - if [[ ("${PIPESTATUS[0]}" -ne "0") ]]; then + if [[ ("${PIPESTATUS[0]}" -ne 0) ]]; then echo "ERROR: failed to execute test vectors" | tee -a "$TEST_RESULTS" fi fi @@ -6899,7 +6902,7 @@ if [[ ("$IS_DARWIN" -ne "0" && "$MACPORTS_COMPILER" -eq "0") ]]; then MACPORTS_CXX=$(find /opt/local/bin -name 'clang++-mp-3.8*' 2>/dev/null | head -1) if [[ (! -z "$MACPORTS_CXX") ]]; then "$MACPORTS_CXX" -x c++ -std=c++11 -DCRYPTOPP_ADHOC_MAIN adhoc.cpp.proto -o "$TMPDIR/adhoc.exe" > /dev/null 2>&1 - if [[ "$?" -eq "0" ]]; then + if [[ "$?" -eq 0 ]]; then ############################################ # MacPorts 3.8 Clang build @@ -6915,15 +6918,15 @@ if [[ ("$IS_DARWIN" -ne "0" && "$MACPORTS_COMPILER" -eq "0") ]]; then CXXFLAGS="-DNDEBUG -g2 -O3 -std=c++11 -stdlib=libc++" CXX="$MACPORTS_CXX" CXXFLAGS="$CXXFLAGS" "$MAKE" "${MAKEARGS[@]}" static dynamic cryptest.exe 2>&1 | tee -a "$TEST_RESULTS" - if [[ ("${PIPESTATUS[0]}" -ne "0") ]]; then + if [[ ("${PIPESTATUS[0]}" -ne 0) ]]; then echo "ERROR: failed to make cryptest.exe" | tee -a "$TEST_RESULTS" else ./cryptest.exe v 2>&1 | tee -a "$TEST_RESULTS" - if [[ ("${PIPESTATUS[0]}" -ne "0") ]]; then + if [[ ("${PIPESTATUS[0]}" -ne 0) ]]; then echo "ERROR: failed to execute validation suite" | tee -a "$TEST_RESULTS" fi ./cryptest.exe tv all 2>&1 | tee -a "$TEST_RESULTS" - if [[ ("${PIPESTATUS[0]}" -ne "0") ]]; then + if [[ ("${PIPESTATUS[0]}" -ne 0) ]]; then echo "ERROR: failed to execute test vectors" | tee -a "$TEST_RESULTS" fi fi @@ -6933,7 +6936,7 @@ if [[ ("$IS_DARWIN" -ne "0" && "$MACPORTS_COMPILER" -eq "0") ]]; then MACPORTS_CXX=$(find /opt/local/bin -name 'clang++-mp-3.9*' 2>/dev/null | head -1) if [[ (! -z "$MACPORTS_CXX") ]]; then "$MACPORTS_CXX" -x c++ -std=c++11 -DCRYPTOPP_ADHOC_MAIN adhoc.cpp.proto -o "$TMPDIR/adhoc.exe" > /dev/null 2>&1 - if [[ "$?" -eq "0" ]]; then + if [[ "$?" -eq 0 ]]; then ############################################ # MacPorts 3.9 Clang build @@ -6949,15 +6952,15 @@ if [[ ("$IS_DARWIN" -ne "0" && "$MACPORTS_COMPILER" -eq "0") ]]; then CXXFLAGS="-DNDEBUG -g2 -O3 -std=c++11 -stdlib=libc++" CXX="$MACPORTS_CXX" CXXFLAGS="$CXXFLAGS" "$MAKE" "${MAKEARGS[@]}" static dynamic cryptest.exe 2>&1 | tee -a "$TEST_RESULTS" - if [[ ("${PIPESTATUS[0]}" -ne "0") ]]; then + if [[ ("${PIPESTATUS[0]}" -ne 0) ]]; then echo "ERROR: failed to make cryptest.exe" | tee -a "$TEST_RESULTS" else ./cryptest.exe v 2>&1 | tee -a "$TEST_RESULTS" - if [[ ("${PIPESTATUS[0]}" -ne "0") ]]; then + if [[ ("${PIPESTATUS[0]}" -ne 0) ]]; then echo "ERROR: failed to execute validation suite" | tee -a "$TEST_RESULTS" fi ./cryptest.exe tv all 2>&1 | tee -a "$TEST_RESULTS" - if [[ ("${PIPESTATUS[0]}" -ne "0") ]]; then + if [[ ("${PIPESTATUS[0]}" -ne 0) ]]; then echo "ERROR: failed to execute test vectors" | tee -a "$TEST_RESULTS" fi fi @@ -6967,7 +6970,7 @@ if [[ ("$IS_DARWIN" -ne "0" && "$MACPORTS_COMPILER" -eq "0") ]]; then MACPORTS_CXX=$(find /opt/local/bin -name 'clang++-mp-4*' 2>/dev/null | head -1) if [[ (! -z "$MACPORTS_CXX") ]]; then "$MACPORTS_CXX" -x c++ -std=c++11 -DCRYPTOPP_ADHOC_MAIN adhoc.cpp.proto -o "$TMPDIR/adhoc.exe" > /dev/null 2>&1 - if [[ "$?" -eq "0" ]]; then + if [[ "$?" -eq 0 ]]; then ############################################ # MacPorts 4.x Clang build @@ -6983,15 +6986,15 @@ if [[ ("$IS_DARWIN" -ne "0" && "$MACPORTS_COMPILER" -eq "0") ]]; then CXXFLAGS="-DNDEBUG -g2 -O3 -std=c++11 -stdlib=libc++" CXX="$MACPORTS_CXX" CXXFLAGS="$CXXFLAGS" "$MAKE" "${MAKEARGS[@]}" static dynamic cryptest.exe 2>&1 | tee -a "$TEST_RESULTS" - if [[ ("${PIPESTATUS[0]}" -ne "0") ]]; then + if [[ ("${PIPESTATUS[0]}" -ne 0) ]]; then echo "ERROR: failed to make cryptest.exe" | tee -a "$TEST_RESULTS" else ./cryptest.exe v 2>&1 | tee -a "$TEST_RESULTS" - if [[ ("${PIPESTATUS[0]}" -ne "0") ]]; then + if [[ ("${PIPESTATUS[0]}" -ne 0) ]]; then echo "ERROR: failed to execute validation suite" | tee -a "$TEST_RESULTS" fi ./cryptest.exe tv all 2>&1 | tee -a "$TEST_RESULTS" - if [[ ("${PIPESTATUS[0]}" -ne "0") ]]; then + if [[ ("${PIPESTATUS[0]}" -ne 0) ]]; then echo "ERROR: failed to execute test vectors" | tee -a "$TEST_RESULTS" fi fi @@ -7001,7 +7004,7 @@ fi ############################################ # Perform a quick check with Xcode compiler, if available. -if [[ "$IS_DARWIN" -ne "0" ]]; then +if [[ "$IS_DARWIN" -ne 0 ]]; then XCODE_CXX=$(find /Applications/Xcode*.app/Contents/Developer -name clang++ 2>/dev/null | head -1) if [[ (-z "$XCODE_CXX") ]]; then XCODE_CXX=$(find /Developer/Applications/Xcode.app -name clang++ 2>/dev/null | head -1) @@ -7021,15 +7024,15 @@ if [[ "$IS_DARWIN" -ne "0" ]]; then CXXFLAGS="-DNDEBUG -g2 -O3" CXX="$XCODE_CXX" CXXFLAGS="$CXXFLAGS" "$MAKE" "${MAKEARGS[@]}" static cryptest.exe 2>&1 | tee -a "$TEST_RESULTS" - if [[ ("${PIPESTATUS[0]}" -ne "0") ]]; then + if [[ ("${PIPESTATUS[0]}" -ne 0) ]]; then echo "ERROR: failed to make cryptest.exe" | tee -a "$TEST_RESULTS" else ./cryptest.exe v 2>&1 | tee -a "$TEST_RESULTS" - if [[ ("${PIPESTATUS[0]}" -ne "0") ]]; then + if [[ ("${PIPESTATUS[0]}" -ne 0) ]]; then echo "ERROR: failed to execute validation suite" | tee -a "$TEST_RESULTS" fi ./cryptest.exe tv all 2>&1 | tee -a "$TEST_RESULTS" - if [[ ("${PIPESTATUS[0]}" -ne "0") ]]; then + if [[ ("${PIPESTATUS[0]}" -ne 0) ]]; then echo "ERROR: failed to execute test vectors" | tee -a "$TEST_RESULTS" fi fi @@ -7038,7 +7041,7 @@ fi ############################################ # Test an install with CRYPTOPP_DATA_DIR -if [[ ("$IS_CYGWIN" -eq "0") && ("$IS_MINGW" -eq "0") ]]; then +if [[ ("$IS_CYGWIN" -eq 0) && ("$IS_MINGW" -eq 0) ]]; then echo echo "************************************" | tee -a "$TEST_RESULTS" "$INSTALL_RESULTS" @@ -7056,7 +7059,7 @@ if [[ ("$IS_CYGWIN" -eq "0") && ("$IS_MINGW" -eq "0") ]]; then CXXFLAGS="$RELEASE_CXXFLAGS -DCRYPTOPP_DATA_DIR='\"$INSTALL_DIR/share/cryptopp/\"' $USER_CXXFLAGS" CXX="$CXX" CXXFLAGS="$CXXFLAGS" "$MAKE" "${MAKEARGS[@]}" static dynamic cryptest.exe 2>&1 | tee -a "$TEST_RESULTS" "$INSTALL_RESULTS" - if [[ ("${PIPESTATUS[0]}" -ne "0") ]]; then + if [[ ("${PIPESTATUS[0]}" -ne 0) ]]; then echo "ERROR: failed to make cryptest.exe" | tee -a "$TEST_RESULTS" "$INSTALL_RESULTS" else OLD_DIR=$(pwd) @@ -7068,7 +7071,7 @@ if [[ ("$IS_CYGWIN" -eq "0") && ("$IS_MINGW" -eq "0") ]]; then echo "Testing: Install (validation suite)" | tee -a "$TEST_RESULTS" "$INSTALL_RESULTS" echo ./cryptest.exe v 2>&1 | tee -a "$TEST_RESULTS" "$INSTALL_RESULTS" - if [[ ("${PIPESTATUS[0]}" -ne "0") ]]; then + if [[ ("${PIPESTATUS[0]}" -ne 0) ]]; then echo "ERROR: failed to execute validation suite" | tee -a "$TEST_RESULTS" "$INSTALL_RESULTS" fi @@ -7077,17 +7080,17 @@ if [[ ("$IS_CYGWIN" -eq "0") && ("$IS_MINGW" -eq "0") ]]; then echo "Testing: Install (test vectors)" | tee -a "$TEST_RESULTS" "$INSTALL_RESULTS" echo ./cryptest.exe tv all 2>&1 | tee -a "$TEST_RESULTS" "$INSTALL_RESULTS" - if [[ ("${PIPESTATUS[0]}" -ne "0") ]]; then + if [[ ("${PIPESTATUS[0]}" -ne 0) ]]; then echo "ERROR: failed to execute test vectors" | tee -a "$TEST_RESULTS" "$INSTALL_RESULTS" fi - if [[ "$WANT_BENCHMARKS" -ne "0" ]]; then + if [[ "$WANT_BENCHMARKS" -ne 0 ]]; then echo echo "************************************" | tee -a "$TEST_RESULTS" "$INSTALL_RESULTS" echo "Testing: Install (benchmarks)" | tee -a "$TEST_RESULTS" "$INSTALL_RESULTS" echo ./cryptest.exe b 1 "$CPU_FREQ" 2>&1 | tee -a "$TEST_RESULTS" "$INSTALL_RESULTS" - if [[ ("${PIPESTATUS[0]}" -ne "0") ]]; then + if [[ ("${PIPESTATUS[0]}" -ne 0) ]]; then echo "ERROR: failed to execute benchmarks" | tee -a "$TEST_RESULTS" "$INSTALL_RESULTS" fi fi @@ -7097,7 +7100,7 @@ if [[ ("$IS_CYGWIN" -eq "0") && ("$IS_MINGW" -eq "0") ]]; then echo "Testing: Install (help file)" | tee -a "$TEST_RESULTS" "$INSTALL_RESULTS" echo ./cryptest.exe h 2>&1 | tee -a "$TEST_RESULTS" "$INSTALL_RESULTS" - if [[ ("${PIPESTATUS[0]}" -ne "1") ]]; then + if [[ ("${PIPESTATUS[0]}" -ne 1) ]]; then echo "ERROR: failed to provide help" | tee -a "$TEST_RESULTS" "$INSTALL_RESULTS" fi @@ -7108,7 +7111,7 @@ fi ############################################ # Test a remove with CRYPTOPP_DATA_DIR -if [[ ("$IS_CYGWIN" -eq "0" && "$IS_MINGW" -eq "0") ]]; then +if [[ ("$IS_CYGWIN" -eq 0 && "$IS_MINGW" -eq 0) ]]; then echo echo "************************************" | tee -a "$TEST_RESULTS" "$INSTALL_RESULTS" @@ -7118,7 +7121,7 @@ if [[ ("$IS_CYGWIN" -eq "0" && "$IS_MINGW" -eq "0") ]]; then TEST_LIST+=("Remove with data directory") "$MAKE" "${MAKEARGS[@]}" remove PREFIX="$INSTALL_DIR" 2>&1 | tee -a "$TEST_RESULTS" "$INSTALL_RESULTS" - if [[ ("${PIPESTATUS[0]}" -ne "0") ]]; then + if [[ ("${PIPESTATUS[0]}" -ne 0) ]]; then echo "ERROR: failed to make remove" | tee -a "$TEST_RESULTS" "$INSTALL_RESULTS" else # Test for complete removal @@ -7140,7 +7143,7 @@ if [[ ("$IS_CYGWIN" -eq "0" && "$IS_MINGW" -eq "0") ]]; then if [[ (-e "$INSTALL_DIR/lib/libcryptopp.a") ]]; then echo "ERROR: failed to remove libcryptopp.a static library" | tee -a "$TEST_RESULTS" "$INSTALL_RESULTS" fi - if [[ "$IS_DARWIN" -ne "0" && (-e "$INSTALL_DIR/lib/libcryptopp.dylib") ]]; then + if [[ "$IS_DARWIN" -ne 0 && (-e "$INSTALL_DIR/lib/libcryptopp.dylib") ]]; then echo "ERROR: failed to remove libcryptopp.dylib dynamic library" | tee -a "$TEST_RESULTS" "$INSTALL_RESULTS" elif [[ (-e "$INSTALL_DIR/lib/libcryptopp.so") ]]; then echo "ERROR: failed to remove libcryptopp.so dynamic library" | tee -a "$TEST_RESULTS" "$INSTALL_RESULTS" diff --git a/cryptest.sh b/cryptest.sh index 6036d936..381c70e7 100755 --- a/cryptest.sh +++ b/cryptest.sh @@ -136,7 +136,7 @@ IS_SPARC=$(echo -n "$THIS_MACHINE" | "$GREP" -i -c "sparc") IS_X32=0 # Fixup -if [[ "$IS_SOLARIS" -ne "0" ]]; then +if [[ "$IS_SOLARIS" -ne 0 ]]; then DISASS=dis DISASSARGS=() fi @@ -148,22 +148,22 @@ if [[ "$IS_DARWIN" -ne 0 ]]; then fi # CPU features and flags -if [[ ("$IS_X86" -ne "0" || "$IS_X64" -ne "0") ]]; then - if [[ ("$IS_DARWIN" -ne "0") ]]; then +if [[ ("$IS_X86" -ne 0 || "$IS_X64" -ne 0) ]]; then + if [[ ("$IS_DARWIN" -ne 0) ]]; then X86_CPU_FLAGS=$(sysctl machdep.cpu.features 2>&1 | cut -f 2 -d ':') - elif [[ ("$IS_SOLARIS" -ne "0") ]]; then + elif [[ ("$IS_SOLARIS" -ne 0) ]]; then X86_CPU_FLAGS=$(isainfo -v 2>/dev/null) - elif [[ ("$IS_FREEBSD" -ne "0") ]]; then + elif [[ ("$IS_FREEBSD" -ne 0) ]]; then X86_CPU_FLAGS=$(grep Features /var/run/dmesg.boot) - elif [[ ("$IS_DRAGONFLY" -ne "0") ]]; then + elif [[ ("$IS_DRAGONFLY" -ne 0) ]]; then X86_CPU_FLAGS=$(dmesg | grep Features) - elif [[ ("$IS_HURD" -ne "0") ]]; then + elif [[ ("$IS_HURD" -ne 0) ]]; then : # Do nothing... cpuid is not helpful at the moment else X86_CPU_FLAGS="$($AWK '{IGNORECASE=1}{if ($1 == "flags"){print;exit}}' < /proc/cpuinfo | cut -f 2 -d ':')" fi -elif [[ ("$IS_ARM32" -ne "0" || "$IS_ARM64" -ne "0") ]]; then - if [[ ("$IS_DARWIN" -ne "0") ]]; then +elif [[ ("$IS_ARM32" -ne 0 || "$IS_ARM64" -ne 0) ]]; then + if [[ ("$IS_DARWIN" -ne 0) ]]; then ARM_CPU_FLAGS="$(sysctl machdep.cpu.features 2>&1 | cut -f 2 -d ':')" else ARM_CPU_FLAGS="$($AWK '{IGNORECASE=1}{if ($1 == "Features"){print;exit}}' < /proc/cpuinfo | cut -f 2 -d ':')" @@ -191,9 +191,9 @@ done if [[ ((-z "$CXX") || ("$CXX" == "gcc")) ]]; then if [[ ("$CXX" == "gcc") ]]; then CXX="g++" - elif [[ "$IS_DARWIN" -ne "0" ]]; then + elif [[ "$IS_DARWIN" -ne 0 ]]; then CXX="c++" - elif [[ "$IS_SOLARIS" -ne "0" ]]; then + elif [[ "$IS_SOLARIS" -ne 0 ]]; then if [[ (-e "/opt/developerstudio12.5/bin/CC") ]]; then CXX="/opt/developerstudio12.5/bin/CC" elif [[ (-e "/opt/solarisstudio12.4/bin/CC") ]]; then @@ -231,7 +231,7 @@ GNU_LINKER=$(ld --version 2>&1 | "$GREP" -i -c "GNU ld") if [[ ("$SUN_COMPILER" -eq 0) ]]; then AMD64=$("$CXX" -dM -E - /dev/null | "$GREP" -i -c -E "(__x64_64__|__amd64__)") ILP32=$("$CXX" -dM -E - /dev/null | "$GREP" -i -c -E "(__ILP32__|__ILP32)") - if [[ ("$AMD64" -ne "0") && ("$ILP32" -ne "0") ]]; then + if [[ ("$AMD64" -ne 0) && ("$ILP32" -ne 0) ]]; then IS_X32=1 fi fi @@ -243,7 +243,7 @@ SUNCC_510_OR_ABOVE=$("$CXX" -V 2>&1 | "$GREP" -c -E "CC: (Sun|Studio) .* (5\.1[0 SUNCC_511_OR_ABOVE=$("$CXX" -V 2>&1 | "$GREP" -c -E "CC: (Sun|Studio) .* (5\.1[1-9]|5\.[2-9]|[6-9]\.)") # Fixup, bad code generation -if [[ ("$SUNCC_510_OR_ABOVE" -ne "0") ]]; then +if [[ ("$SUNCC_510_OR_ABOVE" -ne 0) ]]; then HAVE_O5=0 HAVE_OFAST=0 fi @@ -503,7 +503,7 @@ if [[ (-z "$HAVE_PIC") ]]; then if [[ "$PIC_PROBLEMS" -eq 0 ]]; then HAVE_PIC=1 OPT_PIC=-fPIC - if [[ ("$XLC_COMPILER" -eq "1") ]]; then + if [[ ("$XLC_COMPILER" -eq 1) ]]; then OPT_PIC=-qpic fi fi @@ -577,25 +577,25 @@ fi rm -f "$TMPDIR/adhoc.exe" > /dev/null 2>&1 if [[ (-z "$HAVE_OMP") ]]; then HAVE_OMP=0 - if [[ "$GCC_COMPILER" -ne "0" ]]; then + if [[ "$GCC_COMPILER" -ne 0 ]]; then "$CXX" -DCRYPTOPP_ADHOC_MAIN -fopenmp -O3 adhoc.cpp -o "$TMPDIR/adhoc.exe" > /dev/null 2>&1 if [[ "$?" -eq 0 ]]; then HAVE_OMP=1 OMP_FLAGS=(-fopenmp -O3) fi - elif [[ "$INTEL_COMPILER" -ne "0" ]]; then + elif [[ "$INTEL_COMPILER" -ne 0 ]]; then "$CXX" -DCRYPTOPP_ADHOC_MAIN -openmp -O3 adhoc.cpp -o "$TMPDIR/adhoc.exe" > /dev/null 2>&1 if [[ "$?" -eq 0 ]]; then HAVE_OMP=1 OMP_FLAGS=(-openmp -O3) fi - elif [[ "$CLANG_COMPILER" -ne "0" ]]; then + elif [[ "$CLANG_COMPILER" -ne 0 ]]; then "$CXX" -DCRYPTOPP_ADHOC_MAIN -fopenmp=libomp -O3 adhoc.cpp -o "$TMPDIR/adhoc.exe" > /dev/null 2>&1 if [[ "$?" -eq 0 ]]; then HAVE_OMP=1 OMP_FLAGS=(-fopenmp=libomp -O3) fi - elif [[ "$SUN_COMPILER" -ne "0" ]]; then + elif [[ "$SUN_COMPILER" -ne 0 ]]; then "$CXX" -DCRYPTOPP_ADHOC_MAIN -xopenmp=parallel -xO3 adhoc.cpp -o "$TMPDIR/adhoc.exe" > /dev/null 2>&1 if [[ "$?" -eq 0 ]]; then HAVE_OMP=1 @@ -607,7 +607,7 @@ fi rm -f "$TMPDIR/adhoc.exe" > /dev/null 2>&1 if [[ (-z "$HAVE_INTEL_MULTIARCH") ]]; then HAVE_INTEL_MULTIARCH=0 - if [[ ("$IS_DARWIN" -ne "0") && ("$IS_X86" -ne "0" || "$IS_X64" -ne "0") ]]; then + if [[ ("$IS_DARWIN" -ne 0) && ("$IS_X86" -ne 0 || "$IS_X64" -ne 0) ]]; then "$CXX" -DCRYPTOPP_ADHOC_MAIN -arch i386 -arch x86_64 adhoc.cpp -o "$TMPDIR/adhoc.exe" > /dev/null 2>&1 if [[ "$?" -eq 0 ]]; then HAVE_INTEL_MULTIARCH=1 @@ -618,7 +618,7 @@ fi rm -f "$TMPDIR/adhoc.exe" > /dev/null 2>&1 if [[ (-z "$HAVE_PPC_MULTIARCH") ]]; then HAVE_PPC_MULTIARCH=0 - if [[ ("$IS_DARWIN" -ne "0") && ("$IS_PPC32" -ne "0" || "$IS_PPC64" -ne "0") ]]; then + if [[ ("$IS_DARWIN" -ne 0) && ("$IS_PPC32" -ne 0 || "$IS_PPC64" -ne 0) ]]; then "$CXX" -DCRYPTOPP_ADHOC_MAIN -arch ppc -arch ppc64 adhoc.cpp -o "$TMPDIR/adhoc.exe" > /dev/null 2>&1 if [[ "$?" -eq 0 ]]; then HAVE_PPC_MULTIARCH=1 @@ -629,7 +629,7 @@ fi rm -f "$TMPDIR/adhoc.exe" > /dev/null 2>&1 if [[ (-z "$HAVE_X32") ]]; then HAVE_X32=0 - if [[ "$IS_X32" -ne "0" ]]; then + if [[ "$IS_X32" -ne 0 ]]; then "$CXX" -DCRYPTOPP_ADHOC_MAIN -mx32 adhoc.cpp -o "$TMPDIR/adhoc.exe" > /dev/null 2>&1 if [[ "$?" -eq 0 ]]; then HAVE_X32=1 @@ -654,7 +654,7 @@ if [[ (-z "$HAVE_LDGOLD") ]]; then ELF_FILE=$(command -v file 2>/dev/null) if [[ (! -z "$LD_GOLD") && (! -z "$ELF_FILE") ]]; then LD_GOLD=$(file "$LD_GOLD" | cut -d":" -f 2 | "$GREP" -i -c "elf") - if [[ ("$LD_GOLD" -ne "0") ]]; then + if [[ ("$LD_GOLD" -ne 0) ]]; then "$CXX" -DCRYPTOPP_ADHOC_MAIN -fuse-ld=gold adhoc.cpp -o "$TMPDIR/adhoc.exe" > /dev/null 2>&1 if [[ "$?" -eq 0 ]]; then HAVE_LDGOLD=1 @@ -664,51 +664,51 @@ if [[ (-z "$HAVE_LDGOLD") ]]; then fi # ARMv7 and ARMv8, including NEON, CRC32 and Crypto extensions -if [[ ("$IS_ARM32" -ne "0" || "$IS_ARM64" -ne "0") ]]; then +if [[ ("$IS_ARM32" -ne 0 || "$IS_ARM64" -ne 0) ]]; then - if [[ (-z "$HAVE_ARMV7A" && "$IS_ARM32" -ne "0") ]]; then + if [[ (-z "$HAVE_ARMV7A" && "$IS_ARM32" -ne 0) ]]; then HAVE_ARMV7A=$(echo -n "$ARM_CPU_FLAGS" | "$GREP" -i -c 'neon') - if [[ ("$HAVE_ARMV7A" -gt "0") ]]; then HAVE_ARMV7A=1; fi + if [[ ("$HAVE_ARMV7A" -gt 0) ]]; then HAVE_ARMV7A=1; fi fi - if [[ (-z "$HAVE_ARMV8A" && ("$IS_ARM32" -ne "0" || "$IS_ARM64" -ne "0")) ]]; then + if [[ (-z "$HAVE_ARMV8A" && ("$IS_ARM32" -ne 0 || "$IS_ARM64" -ne 0)) ]]; then HAVE_ARMV8A=$(echo -n "$ARM_CPU_FLAGS" | "$GREP" -i -c -E '(asimd|crc|crypto)') - if [[ ("$HAVE_ARMV8A" -gt "0") ]]; then HAVE_ARMV8A=1; fi + if [[ ("$HAVE_ARMV8A" -gt 0) ]]; then HAVE_ARMV8A=1; fi fi if [[ (-z "$HAVE_ARM_VFPV3") ]]; then HAVE_ARM_VFPV3=$(echo -n "$ARM_CPU_FLAGS" | "$GREP" -i -c 'vfpv3') - if [[ ("$HAVE_ARM_VFPV3" -gt "0") ]]; then HAVE_ARM_VFPV3=1; fi + if [[ ("$HAVE_ARM_VFPV3" -gt 0) ]]; then HAVE_ARM_VFPV3=1; fi fi if [[ (-z "$HAVE_ARM_VFPV4") ]]; then HAVE_ARM_VFPV4=$(echo -n "$ARM_CPU_FLAGS" | "$GREP" -i -c 'vfpv4') - if [[ ("$HAVE_ARM_VFPV4" -gt "0") ]]; then HAVE_ARM_VFPV4=1; fi + if [[ ("$HAVE_ARM_VFPV4" -gt 0) ]]; then HAVE_ARM_VFPV4=1; fi fi if [[ (-z "$HAVE_ARM_VFPV5") ]]; then HAVE_ARM_VFPV5=$(echo -n "$ARM_CPU_FLAGS" | "$GREP" -i -c 'fpv5') - if [[ ("$HAVE_ARM_VFPV5" -gt "0") ]]; then HAVE_ARM_VFPV5=1; fi + if [[ ("$HAVE_ARM_VFPV5" -gt 0) ]]; then HAVE_ARM_VFPV5=1; fi fi if [[ (-z "$HAVE_ARM_VFPD32") ]]; then HAVE_ARM_VFPD32=$(echo -n "$ARM_CPU_FLAGS" | "$GREP" -i -c 'vfpd32') - if [[ ("$HAVE_ARM_VFPD32" -gt "0") ]]; then HAVE_ARM_VFPD32=1; fi + if [[ ("$HAVE_ARM_VFPD32" -gt 0) ]]; then HAVE_ARM_VFPD32=1; fi fi if [[ (-z "$HAVE_ARM_NEON") ]]; then HAVE_ARM_NEON=$(echo -n "$ARM_CPU_FLAGS" | "$GREP" -i -c 'neon') - if [[ ("$HAVE_ARM_NEON" -gt "0") ]]; then HAVE_ARM_NEON=1; fi + if [[ ("$HAVE_ARM_NEON" -gt 0) ]]; then HAVE_ARM_NEON=1; fi fi if [[ (-z "$HAVE_ARM_CRYPTO") ]]; then HAVE_ARM_CRYPTO=$(echo -n "$ARM_CPU_FLAGS" | "$GREP" -i -c -E '(aes|pmull|sha1|sha2)') - if [[ ("$HAVE_ARM_CRYPTO" -gt "0") ]]; then HAVE_ARM_CRYPTO=1; fi + if [[ ("$HAVE_ARM_CRYPTO" -gt 0) ]]; then HAVE_ARM_CRYPTO=1; fi fi if [[ (-z "$HAVE_ARM_CRC") ]]; then HAVE_ARM_CRC=$(echo -n "$ARM_CPU_FLAGS" | "$GREP" -i -c 'crc32') - if [[ ("$HAVE_ARM_CRC" -gt "0") ]]; then HAVE_ARM_CRC=1; fi + if [[ ("$HAVE_ARM_CRC" -gt 0) ]]; then HAVE_ARM_CRC=1; fi fi fi @@ -725,7 +725,7 @@ if [[ (-z "$HAVE_SYMBOLIZE") && (! -z "$ASAN_SYMBOLIZER_PATH") ]]; then if [[ $(command -v asan_symbolize 2>/dev/null) ]]; then HAVE_SYMBOLIZE=1 fi - if [[ (("$HAVE_SYMBOLIZE" -ne "0") && (-z "$ASAN_SYMBOLIZE")) ]]; then + if [[ (("$HAVE_SYMBOLIZE" -ne 0) && (-z "$ASAN_SYMBOLIZE")) ]]; then ASAN_SYMBOLIZE=asan_symbolize fi @@ -734,7 +734,7 @@ if [[ (-z "$HAVE_SYMBOLIZE") && (! -z "$ASAN_SYMBOLIZER_PATH") ]]; then if [[ $(command -v llvm-symbolizer 2>/dev/null) ]]; then LLVM_SYMBOLIZER_FOUND=1; fi - if [[ ("$LLVM_SYMBOLIZER_FOUND" -ne "0") ]]; then + if [[ ("$LLVM_SYMBOLIZER_FOUND" -ne 0) ]]; then ASAN_SYMBOLIZER_PATH=$(command -v llvm-symbolizer) export ASAN_SYMBOLIZER_PATH fi @@ -756,15 +756,15 @@ if [[ (-z "$HAVE_DISASS") ]]; then fi # LD_LIBRARY_PATH and DYLD_LIBRARY_PATH -if [[ "$IS_LINUX" -ne "0" || "$IS_SOLARIS" -ne "0" || "$IS_BSD" -ne "0" ]]; then +if [[ "$IS_LINUX" -ne 0 || "$IS_SOLARIS" -ne 0 || "$IS_BSD" -ne 0 ]]; then HAVE_LD_LIBRARY_PATH=1 fi -if [[ "$IS_DARWIN" -ne "0" ]]; then +if [[ "$IS_DARWIN" -ne 0 ]]; then HAVE_DYLD_LIBRARY_PATH=1 fi # Fixup... GCC 4.8 ASAN produces false positives under ARM -if [[ ( ("$IS_ARM32" -ne "0" || "$IS_ARM64" -ne "0") && "$GCC_48_COMPILER" -ne "0") ]]; then +if [[ ( ("$IS_ARM32" -ne 0 || "$IS_ARM64" -ne 0) && "$GCC_48_COMPILER" -ne 0) ]]; then HAVE_ASAN=0 fi @@ -774,7 +774,7 @@ if [[ (-z "$WANT_BENCHMARKS") ]]; then fi # IBM XL C/C++ compiler fixups. Not sure why it fails to return non-0 on failure... -if [[ "$XLC_COMPILER" -ne "0" ]]; then +if [[ "$XLC_COMPILER" -ne 0 ]]; then HAVE_CXX03=0 HAVE_GNU03=0 HAVE_CXX11=0 @@ -798,63 +798,63 @@ fi # System information echo | tee -a "$TEST_RESULTS" -if [[ "$IS_LINUX" -ne "0" ]]; then +if [[ "$IS_LINUX" -ne 0 ]]; then echo "IS_LINUX: $IS_LINUX" | tee -a "$TEST_RESULTS" -elif [[ "$IS_CYGWIN" -ne "0" ]]; then +elif [[ "$IS_CYGWIN" -ne 0 ]]; then echo "IS_CYGWIN: $IS_CYGWIN" | tee -a "$TEST_RESULTS" -elif [[ "$IS_MINGW" -ne "0" ]]; then +elif [[ "$IS_MINGW" -ne 0 ]]; then echo "IS_MINGW: $IS_MINGW" | tee -a "$TEST_RESULTS" -elif [[ "$IS_SOLARIS" -ne "0" ]]; then +elif [[ "$IS_SOLARIS" -ne 0 ]]; then echo "IS_SOLARIS: $IS_SOLARIS" | tee -a "$TEST_RESULTS" -elif [[ "$IS_DARWIN" -ne "0" ]]; then +elif [[ "$IS_DARWIN" -ne 0 ]]; then echo "IS_DARWIN: $IS_DARWIN" | tee -a "$TEST_RESULTS" -elif [[ "$IS_AIX" -ne "0" ]]; then +elif [[ "$IS_AIX" -ne 0 ]]; then echo "IS_AIX: $IS_AIX" | tee -a "$TEST_RESULTS" fi -if [[ "$IS_PPC64" -ne "0" ]]; then +if [[ "$IS_PPC64" -ne 0 ]]; then echo "IS_PPC64: $IS_PPC64" | tee -a "$TEST_RESULTS" -elif [[ "$IS_PPC32" -ne "0" ]]; then +elif [[ "$IS_PPC32" -ne 0 ]]; then echo "IS_PPC32: $IS_PPC32" | tee -a "$TEST_RESULTS" fi -if [[ "$IS_ARM64" -ne "0" ]]; then +if [[ "$IS_ARM64" -ne 0 ]]; then echo "IS_ARM64: $IS_ARM64" | tee -a "$TEST_RESULTS" -elif [[ "$IS_ARM32" -ne "0" ]]; then +elif [[ "$IS_ARM32" -ne 0 ]]; then echo "IS_ARM32: $IS_ARM32" | tee -a "$TEST_RESULTS" fi -if [[ "$HAVE_ARMV7A" -ne "0" ]]; then +if [[ "$HAVE_ARMV7A" -ne 0 ]]; then echo "HAVE_ARMV7A: $HAVE_ARMV7A" | tee -a "$TEST_RESULTS" -elif [[ "$HAVE_ARMV8A" -ne "0" ]]; then +elif [[ "$HAVE_ARMV8A" -ne 0 ]]; then echo "HAVE_ARMV8A: $HAVE_ARMV8A" | tee -a "$TEST_RESULTS" fi -if [[ "$HAVE_ARM_NEON" -ne "0" ]]; then +if [[ "$HAVE_ARM_NEON" -ne 0 ]]; then echo "HAVE_ARM_NEON: $HAVE_ARM_NEON" | tee -a "$TEST_RESULTS" fi -if [[ "$HAVE_ARM_VFPD32" -ne "0" ]]; then +if [[ "$HAVE_ARM_VFPD32" -ne 0 ]]; then echo "HAVE_ARM_VFPD32: $HAVE_ARM_VFPD32" | tee -a "$TEST_RESULTS" fi -if [[ "$HAVE_ARM_VFPV3" -ne "0" ]]; then +if [[ "$HAVE_ARM_VFPV3" -ne 0 ]]; then echo "HAVE_ARM_VFPV3: $HAVE_ARM_VFPV3" | tee -a "$TEST_RESULTS" fi -if [[ "$HAVE_ARM_VFPV4" -ne "0" ]]; then +if [[ "$HAVE_ARM_VFPV4" -ne 0 ]]; then echo "HAVE_ARM_VFPV4: $HAVE_ARM_VFPV4" | tee -a "$TEST_RESULTS" fi -if [[ "$HAVE_ARM_CRC" -ne "0" ]]; then +if [[ "$HAVE_ARM_CRC" -ne 0 ]]; then echo "HAVE_ARM_CRC: $HAVE_ARM_CRC" | tee -a "$TEST_RESULTS" fi -if [[ "$HAVE_ARM_CRYPTO" -ne "0" ]]; then +if [[ "$HAVE_ARM_CRYPTO" -ne 0 ]]; then echo "HAVE_ARM_CRYPTO: $HAVE_ARM_CRYPTO" | tee -a "$TEST_RESULTS" fi -if [[ "$IS_X32" -ne "0" ]]; then +if [[ "$IS_X32" -ne 0 ]]; then echo "IS_X32: $IS_X32" | tee -a "$TEST_RESULTS" -elif [[ "$IS_X64" -ne "0" ]]; then +elif [[ "$IS_X64" -ne 0 ]]; then echo "IS_X64: $IS_X64" | tee -a "$TEST_RESULTS" -elif [[ "$IS_X86" -ne "0" ]]; then +elif [[ "$IS_X86" -ne 0 ]]; then echo "IS_X86: $IS_X86" | tee -a "$TEST_RESULTS" fi -if [[ "$IS_S390" -ne "0" ]]; then +if [[ "$IS_S390" -ne 0 ]]; then echo "IS_S390: $IS_S390" | tee -a "$TEST_RESULTS" fi @@ -864,7 +864,7 @@ echo "HAVE_CXX03: $HAVE_CXX03" | tee -a "$TEST_RESULTS" echo "HAVE_GNU03: $HAVE_GNU03" | tee -a "$TEST_RESULTS" echo "HAVE_CXX11: $HAVE_CXX11" | tee -a "$TEST_RESULTS" echo "HAVE_GNU11: $HAVE_GNU11" | tee -a "$TEST_RESULTS" -if [[ ("$HAVE_CXX14" -ne "0" || "$HAVE_CXX17" -ne "0" || "$HAVE_CXX20" -ne "0" || "$HAVE_GNU14" -ne "0" || "$HAVE_GNU17" -ne "0" || "$HAVE_GNU20" -ne "0") ]]; then +if [[ ("$HAVE_CXX14" -ne 0 || "$HAVE_CXX17" -ne 0 || "$HAVE_CXX20" -ne 0 || "$HAVE_GNU14" -ne 0 || "$HAVE_GNU17" -ne 0 || "$HAVE_GNU20" -ne 0) ]]; then echo "HAVE_CXX14: $HAVE_CXX14" | tee -a "$TEST_RESULTS" echo "HAVE_GNU14: $HAVE_GNU14" | tee -a "$TEST_RESULTS" echo "HAVE_CXX17: $HAVE_CXX17" | tee -a "$TEST_RESULTS" @@ -872,10 +872,10 @@ if [[ ("$HAVE_CXX14" -ne "0" || "$HAVE_CXX17" -ne "0" || "$HAVE_CXX20" -ne "0" | echo "HAVE_CXX20: $HAVE_CXX20" | tee -a "$TEST_RESULTS" echo "HAVE_GNU20: $HAVE_GNU20" | tee -a "$TEST_RESULTS" fi -if [[ "$HAVE_LDGOLD" -ne "0" ]]; then +if [[ "$HAVE_LDGOLD" -ne 0 ]]; then echo "HAVE_LDGOLD: $HAVE_LDGOLD" | tee -a "$TEST_RESULTS" fi -if [[ "$HAVE_UNIFIED_ASM" -ne "0" ]]; then +if [[ "$HAVE_UNIFIED_ASM" -ne 0 ]]; then echo "HAVE_UNIFIED_ASM: $HAVE_UNIFIED_ASM" | tee -a "$TEST_RESULTS" fi @@ -891,9 +891,9 @@ fi # Tools available for testing echo | tee -a "$TEST_RESULTS" -if [[ ((! -z "$HAVE_OMP") && ("$HAVE_OMP" -ne "0")) ]]; then echo "HAVE_OMP: $HAVE_OMP" | tee -a "$TEST_RESULTS"; fi +if [[ ((! -z "$HAVE_OMP") && ("$HAVE_OMP" -ne 0)) ]]; then echo "HAVE_OMP: $HAVE_OMP" | tee -a "$TEST_RESULTS"; fi echo "HAVE_ASAN: $HAVE_ASAN" | tee -a "$TEST_RESULTS" -if [[ ("$HAVE_ASAN" -ne "0") && (! -z "$ASAN_SYMBOLIZE") ]]; then echo "ASAN_SYMBOLIZE: $ASAN_SYMBOLIZE" | tee -a "$TEST_RESULTS"; fi +if [[ ("$HAVE_ASAN" -ne 0) && (! -z "$ASAN_SYMBOLIZE") ]]; then echo "ASAN_SYMBOLIZE: $ASAN_SYMBOLIZE" | tee -a "$TEST_RESULTS"; fi echo "HAVE_UBSAN: $HAVE_UBSAN" | tee -a "$TEST_RESULTS" echo "HAVE_BSAN: $HAVE_BSAN" | tee -a "$TEST_RESULTS" echo "HAVE_CET: $HAVE_CET" | tee -a "$TEST_RESULTS" @@ -901,10 +901,10 @@ echo "HAVE_REPTOLINE: $HAVE_REPTOLINE" | tee -a "$TEST_RESULTS" echo "HAVE_VALGRIND: $HAVE_VALGRIND" | tee -a "$TEST_RESULTS" # HAVE_REPTOLINE is for Meltdown and Spectre option testing, called Reptoline (play on trampoline) -if [[ "$HAVE_INTEL_MULTIARCH" -ne "0" ]]; then +if [[ "$HAVE_INTEL_MULTIARCH" -ne 0 ]]; then echo "HAVE_INTEL_MULTIARCH: $HAVE_INTEL_MULTIARCH" | tee -a "$TEST_RESULTS" fi -if [[ "$HAVE_PPC_MULTIARCH" -ne "0" ]]; then +if [[ "$HAVE_PPC_MULTIARCH" -ne 0 ]]; then echo "HAVE_PPC_MULTIARCH: $HAVE_PPC_MULTIARCH" | tee -a "$TEST_RESULTS" fi @@ -916,19 +916,19 @@ fi CPU_COUNT=1 MEM_SIZE=512 -if [[ ("$IS_SPARC" -ne "0") && ("$IS_LINUX" -ne "0") ]]; then +if [[ ("$IS_SPARC" -ne 0) && ("$IS_LINUX" -ne 0) ]]; then CPU_COUNT="$($GREP -E 'CPU.*' /proc/cpuinfo | cut -f 1 -d ':' | $SED 's|CPU||g' | sort -n | tail -1)" MEM_SIZE="$($GREP "MemTotal" < /proc/meminfo | $AWK '{print int($2/1024)}')" elif [[ (-e "/proc/cpuinfo") && (-e "/proc/meminfo") ]]; then CPU_COUNT="$($GREP -c -E "^processor" < /proc/cpuinfo)" MEM_SIZE="$($GREP "MemTotal" < /proc/meminfo | $AWK '{print int($2/1024)}')" -elif [[ "$IS_DARWIN" -ne "0" ]]; then +elif [[ "$IS_DARWIN" -ne 0 ]]; then CPU_COUNT="$(sysctl -a 2>&1 | $GREP "hw.availcpu" | $AWK '{print $3; exit}')" MEM_SIZE="$(sysctl -a 2>&1 | $GREP "hw.memsize" | $AWK '{print int($3/1024/1024); exit;}')" -elif [[ "$IS_SOLARIS" -ne "0" ]]; then +elif [[ "$IS_SOLARIS" -ne 0 ]]; then CPU_COUNT="$(psrinfo 2>/dev/null | wc -l | $AWK '{print $1}')" MEM_SIZE="$(prtconf 2>/dev/null | $GREP "Memory" | $AWK '{print int($3)}')" -elif [[ "$IS_AIX" -ne "0" ]]; then +elif [[ "$IS_AIX" -ne 0 ]]; then CPU_COUNT="$(bindprocessor -q 2>/dev/null | cut -f 2 -d ":" | wc -w | $AWK '{print $1}')" MEM_SIZE="$(prtconf -m 2>/dev/null | $GREP "MB" | $AWK '{print int($3); exit;}')" fi @@ -942,13 +942,13 @@ elif [[ (-e "/proc/cpuinfo") ]]; then CPU_FREQ="$($GREP 'MHz' < /proc/cpuinfo | $AWK '{print $4; exit}')" if [[ -z "$CPU_FREQ" ]]; then CPU_FREQ=512; fi CPU_FREQ="$(echo $CPU_FREQ | $AWK '{print $0/1024}')" -elif [[ "$IS_DARWIN" -ne "0" ]]; then +elif [[ "$IS_DARWIN" -ne 0 ]]; then CPU_FREQ="$(sysctl -a 2>&1 | $GREP "hw.cpufrequency" | $AWK '{print ($3); exit;}')" CPU_FREQ="$(echo $CPU_FREQ | $AWK '{print $0/1024/1024/1024}')" -elif [[ "$IS_SOLARIS" -ne "0" ]]; then +elif [[ "$IS_SOLARIS" -ne 0 ]]; then CPU_FREQ="$(psrinfo -v 2>/dev/null | $GREP "MHz" | $AWK '{print $6; exit;}')" CPU_FREQ="$(echo $CPU_FREQ | $AWK '{print $0/1024}')" -elif [[ "$IS_AIX" -ne "0" ]]; then +elif [[ "$IS_AIX" -ne 0 ]]; then CPU_FREQ="$(prtconf -s 2>/dev/null | $GREP "MHz" | $AWK '{print $4; exit;}')" CPU_FREQ="$(echo $CPU_FREQ | $AWK '{print $0/1024}')" fi @@ -956,7 +956,7 @@ fi # Some ARM devboards cannot use 'make -j N', even with multiple cores and RAM # An 8-core Cubietruck Plus with 2GB RAM experiences OOM kills with '-j 2'. HAVE_SWAP=1 -if [[ "$IS_LINUX" -ne "0" ]]; then +if [[ "$IS_LINUX" -ne 0 ]]; then # If memory is small, then ensure swap space exists if [[ "$MEM_SIZE" -lt 4096 ]]; then if [[ (-e "/proc/meminfo") ]]; then @@ -975,8 +975,8 @@ echo "CPU: $CPU_COUNT logical" | tee -a "$TEST_RESULTS" echo "FREQ: $CPU_FREQ GHz" | tee -a "$TEST_RESULTS" echo "MEM: $MEM_SIZE MB" | tee -a "$TEST_RESULTS" -if [[ ("$CPU_COUNT" -ge "2" && "$MEM_SIZE" -ge "1280" && "$HAVE_SWAP" -ne "0") ]]; then - if [[ ("$WANT_NICE" -eq "1") ]]; then +if [[ ("$CPU_COUNT" -ge 2 && "$MEM_SIZE" -ge 1280 && "$HAVE_SWAP" -ne 0) ]]; then + if [[ ("$WANT_NICE" -eq 1) ]]; then CPU_COUNT=$(echo -n "$CPU_COUNT 2" | "$AWK" '{print int($1/$2)}') fi MAKEARGS=(-j "$CPU_COUNT") @@ -986,7 +986,7 @@ fi ############################################ GIT_REPO=$(git branch 2>&1 | "$GREP" -v "fatal" | wc -l | "$AWK" '{print $1; exit;}') -if [[ "$GIT_REPO" -ne "0" ]]; then +if [[ "$GIT_REPO" -ne 0 ]]; then GIT_BRANCH=$(git rev-parse --abbrev-ref HEAD 2>/dev/null) GIT_HASH=$(git rev-parse HEAD 2>/dev/null | cut -c 1-16) fi @@ -996,9 +996,9 @@ if [[ ! -z "$GIT_BRANCH" ]]; then echo "Git branch: $GIT_BRANCH (commit $GIT_HASH)" | tee -a "$TEST_RESULTS" fi -if [[ ("$SUN_COMPILER" -ne "0") ]]; then +if [[ ("$SUN_COMPILER" -ne 0) ]]; then "$CXX" -V 2>&1 | "$SED" 's|CC:|Compiler:|g' | head -1 | tee -a "$TEST_RESULTS" -elif [[ ("$XLC_COMPILER" -ne "0") ]]; then +elif [[ ("$XLC_COMPILER" -ne 0) ]]; then echo "Compiler: $($CXX -qversion | head -1)" | tee -a "$TEST_RESULTS" else echo "Compiler: $($CXX --version | head -1)" | tee -a "$TEST_RESULTS" @@ -1006,7 +1006,7 @@ fi CXX_PATH=$(command -v "$CXX" 2>/dev/null) CXX_SYMLINK=$(ls -l "$CXX_PATH" 2>/dev/null | "$GREP" -c '\->' | "$AWK" '{print $1}') -if [[ ("$CXX_SYMLINK" -ne "0") ]]; then CXX_PATH="$CXX_PATH (symlinked)"; fi +if [[ ("$CXX_SYMLINK" -ne 0) ]]; then CXX_PATH="$CXX_PATH (symlinked)"; fi echo "Pathname: $CXX_PATH" | tee -a "$TEST_RESULTS" ############################################ @@ -1017,14 +1017,14 @@ RELEASE_CXXFLAGS="-DNDEBUG $OPT_G2 $OPT_O3" VALGRIND_CXXFLAGS="-DNDEBUG $OPT_G3 $OPT_O1" WARNING_CXXFLAGS=() -if [[ ("$GCC_COMPILER" -ne "0" || "$CLANG_COMPILER" -ne "0") ]]; then +if [[ ("$GCC_COMPILER" -ne 0 || "$CLANG_COMPILER" -ne 0) ]]; then WARNING_CXXFLAGS+=("-Wall" "-Wextra" "-Wno-unknown-pragmas" "-Wstrict-overflow") WARNING_CXXFLAGS+=("-Wcast-align" "-Wwrite-strings" "-Wformat=2" "-Wformat-security") fi # On PowerPC we test the original Altivec load and store with unaligned data. # Modern compilers generate a warning and recommend the new loads and stores. -if [[ ("$GCC_COMPILER" -ne "0" && ("$IS_PPC32" -ne "0" || "$IS_PPC64" -ne "0") ) ]]; then +if [[ ("$GCC_COMPILER" -ne 0 && ("$IS_PPC32" -ne 0 || "$IS_PPC64" -ne 0) ) ]]; then WARNING_CXXFLAGS+=("-Wno-deprecated") fi @@ -1060,21 +1060,21 @@ if true; then # Search for headers. Filter out C++ abd Doxygen comments. COUNT=$(cat ./*.h ./*.cpp | "$GREP" -v '//' | "$GREP" -c -E '(assert.h|cassert)') - if [[ "$COUNT" -ne "0" ]]; then + if [[ "$COUNT" -ne 0 ]]; then FAILED=1 echo "FAILED: found Posix assert headers" | tee -a "$TEST_RESULTS" fi # Search for asserts. Filter out C++, Doxygen comments and static_assert. COUNT=$(cat ./*.h ./*.cpp | "$GREP" -v -E '//|_assert' | "$GREP" -c -E 'assert[[:space:]]*\(') - if [[ "$COUNT" -ne "0" ]]; then + if [[ "$COUNT" -ne 0 ]]; then FAILED=1 echo "FAILED: found use of Posix assert" | tee -a "$TEST_RESULTS" fi # Filter out C++ and Doxygen comments. COUNT=$(cat ./*.h ./*.cpp | "$GREP" -v '//' | "$GREP" -c 'NDEBUG') - if [[ "$COUNT" -ne "0" ]]; then + if [[ "$COUNT" -ne 0 ]]; then FAILED=1 echo "FAILED: found use of Posix NDEBUG" | tee -a "$TEST_RESULTS" fi @@ -1099,14 +1099,14 @@ if true; then # If this fires, then use the library's STDMIN(a,b) or (std::min)(a, b); COUNT=$(cat ./*.h ./*.cpp | "$GREP" -v '//' | "$GREP" -c -E 'std::min[[:space:]]*\(') - if [[ "$COUNT" -ne "0" ]]; then + if [[ "$COUNT" -ne 0 ]]; then FAILED=1 echo "FAILED: found std::min" | tee -a "$TEST_RESULTS" fi # If this fires, then use the library's STDMAX(a,b) or (std::max)(a, b); COUNT=$(cat ./*.h ./*.cpp | "$GREP" -v '//' | "$GREP" -c -E 'std::max[[:space:]]*\(') - if [[ "$COUNT" -ne "0" ]]; then + if [[ "$COUNT" -ne 0 ]]; then FAILED=1 echo "FAILED: found std::max" | tee -a "$TEST_RESULTS" fi @@ -1118,13 +1118,13 @@ fi ############################################ # X86 code generation tests -if [[ ("$HAVE_DISASS" -ne "0" && ("$IS_X86" -ne "0" || "$IS_X64" -ne "0")) ]]; then +if [[ ("$HAVE_DISASS" -ne 0 && ("$IS_X86" -ne 0 || "$IS_X64" -ne 0)) ]]; then ############################################ # X86 rotate immediate code generation X86_ROTATE_IMM=1 - if [[ ("$X86_ROTATE_IMM" -ne "0") ]]; then + if [[ ("$X86_ROTATE_IMM" -ne 0) ]]; then echo echo "************************************" | tee -a "$TEST_RESULTS" echo "Testing: X86 rotate immediate code generation" | tee -a "$TEST_RESULTS" @@ -1139,25 +1139,25 @@ if [[ ("$HAVE_DISASS" -ne "0" && ("$IS_X86" -ne "0" || "$IS_X64" -ne "0")) ]]; t X86_SSE2=$(echo -n "$X86_CPU_FLAGS" | "$GREP" -i -c sse2) X86_SHA256_HASH_BLOCKS=$(echo -n "$DISASS_TEXT" | "$GREP" -c 'SHA256_HashMultipleBlocks_SSE2') - if [[ ("$X86_SHA256_HASH_BLOCKS" -ne "0") ]]; then + if [[ ("$X86_SHA256_HASH_BLOCKS" -ne 0) ]]; then COUNT=$(echo -n "$DISASS_TEXT" | "$GREP" -i -c -E '(rol.*0x|ror.*0x)') - if [[ ("$COUNT" -le "250") ]]; then + if [[ ("$COUNT" -le 250) ]]; then FAILED=1 echo "ERROR: failed to generate rotate immediate instruction (SHA256_HashMultipleBlocks_SSE2)" | tee -a "$TEST_RESULTS" fi else COUNT=$(echo -n "$DISASS_TEXT" | "$GREP" -i -c -E '(rol.*0x|ror.*0x)') - if [[ ("$COUNT" -le "500") ]]; then + if [[ ("$COUNT" -le 500) ]]; then FAILED=1 echo "ERROR: failed to generate rotate immediate instruction" | tee -a "$TEST_RESULTS" fi fi - if [[ ("$X86_SSE2" -ne "0" && "$X86_SHA256_HASH_BLOCKS" -eq 0) ]]; then + if [[ ("$X86_SSE2" -ne 0 && "$X86_SHA256_HASH_BLOCKS" -eq 0) ]]; then echo "ERROR: failed to use SHA256_HashMultipleBlocks_SSE2" | tee -a "$TEST_RESULTS" fi - if [[ ("$FAILED" -eq 0 && "$X86_SHA256_HASH_BLOCKS" -ne "0") ]]; then + if [[ ("$FAILED" -eq 0 && "$X86_SHA256_HASH_BLOCKS" -ne 0) ]]; then echo "Verified rotate immediate machine instructions (SHA256_HashMultipleBlocks_SSE2)" | tee -a "$TEST_RESULTS" elif [[ ("$FAILED" -eq 0) ]]; then echo "Verified rotate immediate machine instructions" | tee -a "$TEST_RESULTS" @@ -1172,7 +1172,7 @@ if [[ ("$HAVE_DISASS" -ne "0" && ("$IS_X86" -ne "0" || "$IS_X64" -ne "0")) ]]; t X86_CRC32=1 fi - if [[ ("$X86_CRC32" -ne "0") ]]; then + if [[ ("$X86_CRC32" -ne 0) ]]; then echo echo "************************************" | tee -a "$TEST_RESULTS" echo "Testing: X86 CRC32 code generation" | tee -a "$TEST_RESULTS" @@ -1212,7 +1212,7 @@ if [[ ("$HAVE_DISASS" -ne "0" && ("$IS_X86" -ne "0" || "$IS_X64" -ne "0")) ]]; t X86_AESNI=1 fi - if [[ ("$X86_AESNI" -ne "0") ]]; then + if [[ ("$X86_AESNI" -ne 0) ]]; then echo echo "************************************" | tee -a "$TEST_RESULTS" echo "Testing: X86 AES-NI code generation" | tee -a "$TEST_RESULTS" @@ -1276,7 +1276,7 @@ if [[ ("$HAVE_DISASS" -ne "0" && ("$IS_X86" -ne "0" || "$IS_X64" -ne "0")) ]]; t X86_PCLMUL=1 fi - if [[ ("$X86_PCLMUL" -ne "0") ]]; then + if [[ ("$X86_PCLMUL" -ne 0) ]]; then echo echo "************************************" | tee -a "$TEST_RESULTS" echo "Testing: X86 carryless multiply code generation" | tee -a "$TEST_RESULTS" @@ -1320,7 +1320,7 @@ if [[ ("$HAVE_DISASS" -ne "0" && ("$IS_X86" -ne "0" || "$IS_X64" -ne "0")) ]]; t X86_RDSEED=1 fi - if [[ ("$X86_RDRAND" -ne "0" || "$X86_RDSEED" -ne "0") ]]; then + if [[ ("$X86_RDRAND" -ne 0 || "$X86_RDSEED" -ne 0) ]]; then echo echo "************************************" | tee -a "$TEST_RESULTS" echo "Testing: X86 RDRAND and RDSEED code generation" | tee -a "$TEST_RESULTS" @@ -1335,7 +1335,7 @@ if [[ ("$HAVE_DISASS" -ne "0" && ("$IS_X86" -ne "0" || "$IS_X64" -ne "0")) ]]; t FAILED=0 DISASS_TEXT=$("$DISASS" "${DISASSARGS[@]}" "$OBJFILE" 2>/dev/null) - if [[ "$X86_RDRAND" -ne "0" ]]; then + if [[ "$X86_RDRAND" -ne 0 ]]; then COUNT=$(echo -n "$DISASS_TEXT" | "$GREP" -i -c rdrand) if [[ ("$COUNT" -eq 0) ]]; then FAILED=1 @@ -1343,7 +1343,7 @@ if [[ ("$HAVE_DISASS" -ne "0" && ("$IS_X86" -ne "0" || "$IS_X64" -ne "0")) ]]; t fi fi - if [[ "$X86_RDSEED" -ne "0" ]]; then + if [[ "$X86_RDSEED" -ne 0 ]]; then COUNT=$(echo -n "$DISASS_TEXT" | "$GREP" -i -c rdseed) if [[ ("$COUNT" -eq 0) ]]; then FAILED=1 @@ -1364,7 +1364,7 @@ if [[ ("$HAVE_DISASS" -ne "0" && ("$IS_X86" -ne "0" || "$IS_X64" -ne "0")) ]]; t X86_SHA=1 fi - if [[ ("$X86_SHA" -ne "0") ]]; then + if [[ ("$X86_SHA" -ne 0) ]]; then echo echo "************************************" | tee -a "$TEST_RESULTS" echo "Testing: X86 SHA code generation" | tee -a "$TEST_RESULTS" @@ -1429,13 +1429,13 @@ fi ############################################ # ARM code generation tests -if [[ ("$HAVE_DISASS" -ne "0" && ("$IS_ARM32" -ne "0" || "$IS_ARM64" -ne "0")) ]]; then +if [[ ("$HAVE_DISASS" -ne 0 && ("$IS_ARM32" -ne 0 || "$IS_ARM64" -ne 0)) ]]; then ############################################ # ARM NEON code generation ARM_NEON=$(echo -n "$ARM_CPU_FLAGS" | "$GREP" -i -c -E '(neon|asimd)') - if [[ ("$ARM_NEON" -ne "0" || "$HAVE_ARM_NEON" -ne "0") ]]; then + if [[ ("$ARM_NEON" -ne 0 || "$HAVE_ARM_NEON" -ne 0) ]]; then echo echo "************************************" | tee -a "$TEST_RESULTS" echo "Testing: ARM NEON code generation" | tee -a "$TEST_RESULTS" @@ -1450,74 +1450,74 @@ if [[ ("$HAVE_DISASS" -ne "0" && ("$IS_ARM32" -ne "0" || "$IS_ARM64" -ne "0")) ] FAILED=0 DISASS_TEXT=$("$DISASS" "${DISASSARGS[@]}" "$OBJFILE" 2>/dev/null) - if [[ ("$HAVE_ARMV8A" -ne "0") ]]; then + if [[ ("$HAVE_ARMV8A" -ne 0) ]]; then # ARIA::UncheckedKeySet: 4 ldr q{N} COUNT=$(echo -n "$DISASS_TEXT" | "$GREP" -i -c -E 'ldr[[:space:]]*q') - if [[ ("$COUNT" -lt "4") ]]; then + if [[ ("$COUNT" -lt 4) ]]; then FAILED=1 echo "ERROR: failed to generate NEON load instructions" | tee -a "$TEST_RESULTS" fi else # ARMv7 # ARIA::UncheckedKeySet: 4 vld1.32 {d1,d2} COUNT=$(echo -n "$DISASS_TEXT" | "$GREP" -i -c -E 'vld1.32[[:space:]]*{') - if [[ ("$COUNT" -lt "4") ]]; then + if [[ ("$COUNT" -lt 4) ]]; then FAILED=1 echo "ERROR: failed to generate NEON load instructions" | tee -a "$TEST_RESULTS" fi fi - if [[ ("$HAVE_ARMV8A" -ne "0") ]]; then + if [[ ("$HAVE_ARMV8A" -ne 0) ]]; then # ARIA::UncheckedKeySet: 17 str q{N} COUNT=$(echo -n "$DISASS_TEXT" | "$GREP" -i -c -E 'str[[:space:]]*q') - if [[ ("$COUNT" -lt "16") ]]; then + if [[ ("$COUNT" -lt 16) ]]; then FAILED=1 echo "ERROR: failed to generate NEON store instructions" | tee -a "$TEST_RESULTS" fi else # ARIA::UncheckedKeySet: 17 vstr1.32 {d1,d2} COUNT=$(echo -n "$DISASS_TEXT" | "$GREP" -i -c -E 'vst1.32[[:space:]]*{') - if [[ ("$COUNT" -lt "16") ]]; then + if [[ ("$COUNT" -lt 16) ]]; then FAILED=1 echo "ERROR: failed to generate NEON store instructions" | tee -a "$TEST_RESULTS" fi fi - if [[ ("$HAVE_ARMV8A" -ne "0") ]]; then + if [[ ("$HAVE_ARMV8A" -ne 0) ]]; then # ARIA::UncheckedKeySet: 17 shl v{N} COUNT=$(echo -n "$DISASS_TEXT" | "$GREP" -i -c -E 'shl[[:space:]]*v') - if [[ ("$COUNT" -lt "16") ]]; then + if [[ ("$COUNT" -lt 16) ]]; then FAILED=1 echo "ERROR: failed to generate NEON shift left instructions" | tee -a "$TEST_RESULTS" fi else # ARIA::UncheckedKeySet: 17 vshl COUNT=$(echo -n "$DISASS_TEXT" | "$GREP" -i -c -E 'vshl') - if [[ ("$COUNT" -lt "16") ]]; then + if [[ ("$COUNT" -lt 16) ]]; then FAILED=1 echo "ERROR: failed to generate NEON store instructions" | tee -a "$TEST_RESULTS" fi fi - if [[ ("$HAVE_ARMV8A" -ne "0") ]]; then + if [[ ("$HAVE_ARMV8A" -ne 0) ]]; then # ARIA::UncheckedKeySet: 17 shr v{N} COUNT=$(echo -n "$DISASS_TEXT" | "$GREP" -i -c -E 'shr[[:space:]]*v') - if [[ ("$COUNT" -lt "16") ]]; then + if [[ ("$COUNT" -lt 16) ]]; then FAILED=1 echo "ERROR: failed to generate NEON shift left instructions" | tee -a "$TEST_RESULTS" fi else # ARIA::UncheckedKeySet: 17 vshr COUNT=$(echo -n "$DISASS_TEXT" | "$GREP" -i -c -E 'vshr') - if [[ ("$COUNT" -lt "16") ]]; then + if [[ ("$COUNT" -lt 16) ]]; then FAILED=1 echo "ERROR: failed to generate NEON store instructions" | tee -a "$TEST_RESULTS" fi fi - if [[ ("$HAVE_ARMV8A" -ne "0") ]]; then + if [[ ("$HAVE_ARMV8A" -ne 0) ]]; then # ARIA::UncheckedKeySet: 12 ext v{N} COUNT=$(echo -n "$DISASS_TEXT" | "$GREP" -i -c -E 'ext[[:space:]]*v') - if [[ ("$COUNT" -lt "12") ]]; then + if [[ ("$COUNT" -lt 12) ]]; then FAILED=1 echo "ERROR: failed to generate NEON extract instructions" | tee -a "$TEST_RESULTS" fi @@ -1525,7 +1525,7 @@ if [[ ("$HAVE_DISASS" -ne "0" && ("$IS_ARM32" -ne "0" || "$IS_ARM64" -ne "0")) ] # ARIA::UncheckedKeySet: 17 veor COUNT=$(echo -n "$DISASS_TEXT" | "$GREP" -i -c -E 'eor.*v|veor') - if [[ ("$COUNT" -lt "16") ]]; then + if [[ ("$COUNT" -lt 16) ]]; then FAILED=1 echo "ERROR: failed to generate NEON xor instructions" | tee -a "$TEST_RESULTS" fi @@ -1543,7 +1543,7 @@ if [[ ("$HAVE_DISASS" -ne "0" && ("$IS_ARM32" -ne "0" || "$IS_ARM64" -ne "0")) ] ARM_CRC32=1 fi - if [[ ("$HAVE_ARMV8A" -ne "0" && "$ARM_CRC32" -ne "0") ]]; then + if [[ ("$HAVE_ARMV8A" -ne 0 && "$ARM_CRC32" -ne 0) ]]; then echo echo "************************************" | tee -a "$TEST_RESULTS" echo "Testing: ARM CRC32 code generation" | tee -a "$TEST_RESULTS" @@ -1595,7 +1595,7 @@ if [[ ("$HAVE_DISASS" -ne "0" && ("$IS_ARM32" -ne "0" || "$IS_ARM64" -ne "0")) ] ARM_PMULL=1 fi - if [[ ("$HAVE_ARMV8A" -ne "0" && "$ARM_PMULL" -ne "0") ]]; then + if [[ ("$HAVE_ARMV8A" -ne 0 && "$ARM_PMULL" -ne 0) ]]; then echo echo "************************************" | tee -a "$TEST_RESULTS" echo "Testing: ARM carryless multiply code generation" | tee -a "$TEST_RESULTS" @@ -1635,7 +1635,7 @@ if [[ ("$HAVE_DISASS" -ne "0" && ("$IS_ARM32" -ne "0" || "$IS_ARM64" -ne "0")) ] ARM_AES=1 fi - if [[ ("$HAVE_ARMV8A" -ne "0" && "$ARM_AES" -ne "0") ]]; then + if [[ ("$HAVE_ARMV8A" -ne 0 && "$ARM_AES" -ne 0) ]]; then echo echo "************************************" | tee -a "$TEST_RESULTS" echo "Testing: ARM AES generation" | tee -a "$TEST_RESULTS" @@ -1687,7 +1687,7 @@ if [[ ("$HAVE_DISASS" -ne "0" && ("$IS_ARM32" -ne "0" || "$IS_ARM64" -ne "0")) ] ARM_SHA=1 fi - if [[ ("$HAVE_ARMV8A" -ne "0" && "$ARM_SHA" -ne "0") ]]; then + if [[ ("$HAVE_ARMV8A" -ne 0 && "$ARM_SHA" -ne 0) ]]; then echo echo "************************************" | tee -a "$TEST_RESULTS" echo "Testing: ARM SHA generation" | tee -a "$TEST_RESULTS" @@ -1770,7 +1770,7 @@ fi ############################################ # Power8 code generation tests -if [[ ("$HAVE_DISASS" -ne "0" && ("$IS_PPC32" -ne "0" || "$IS_PPC64" -ne "0")) ]]; then +if [[ ("$HAVE_DISASS" -ne 0 && ("$IS_PPC32" -ne 0 || "$IS_PPC64" -ne 0)) ]]; then ############################################ # Power8 AES @@ -1791,7 +1791,7 @@ if [[ ("$HAVE_DISASS" -ne "0" && ("$IS_PPC32" -ne "0" || "$IS_PPC64" -ne "0")) ] fi fi - if [[ ("$PPC_AES" -ne "0") ]]; then + if [[ ("$PPC_AES" -ne 0) ]]; then echo echo "************************************" | tee -a "$TEST_RESULTS" echo "Testing: Power8 AES generation" | tee -a "$TEST_RESULTS" @@ -1854,7 +1854,7 @@ if [[ ("$HAVE_DISASS" -ne "0" && ("$IS_PPC32" -ne "0" || "$IS_PPC64" -ne "0")) ] fi fi - if [[ ("$PPC_SHA" -ne "0") ]]; then + if [[ ("$PPC_SHA" -ne 0) ]]; then echo echo "************************************" | tee -a "$TEST_RESULTS" echo "Testing: Power8 SHA generation" | tee -a "$TEST_RESULTS" @@ -1905,7 +1905,7 @@ if [[ ("$HAVE_DISASS" -ne "0" && ("$IS_PPC32" -ne "0" || "$IS_PPC64" -ne "0")) ] fi fi - if [[ ("$PPC_VMULL" -ne "0") ]]; then + if [[ ("$PPC_VMULL" -ne 0) ]]; then echo echo "************************************" | tee -a "$TEST_RESULTS" echo "Testing: Power8 carryless multiply generation" | tee -a "$TEST_RESULTS" @@ -1950,19 +1950,19 @@ if true; then CXXFLAGS="$DEBUG_CXXFLAGS" CXX="$CXX" CXXFLAGS="$CXXFLAGS" "$MAKE" "${MAKEARGS[@]}" static dynamic cryptest.exe 2>&1 | tee -a "$TEST_RESULTS" - if [[ ("${PIPESTATUS[0]}" -ne "0") ]]; then + if [[ ("${PIPESTATUS[0]}" -ne 0) ]]; then echo "ERROR: failed to make cryptest.exe" | tee -a "$TEST_RESULTS" # Stop now if things are broke exit 1 else ./cryptest.exe v 2>&1 | tee -a "$TEST_RESULTS" - if [[ ("${PIPESTATUS[0]}" -ne "0") ]]; then + if [[ ("${PIPESTATUS[0]}" -ne 0) ]]; then echo "ERROR: failed to execute validation suite" | tee -a "$TEST_RESULTS" # Stop now if things are broke exit 1 fi ./cryptest.exe tv all 2>&1 | tee -a "$TEST_RESULTS" - if [[ ("${PIPESTATUS[0]}" -ne "0") ]]; then + if [[ ("${PIPESTATUS[0]}" -ne 0) ]]; then echo "ERROR: failed to execute test vectors" | tee -a "$TEST_RESULTS" # Stop now if things are broke exit 1 @@ -1984,19 +1984,19 @@ if true; then CXXFLAGS="$RELEASE_CXXFLAGS" CXX="$CXX" CXXFLAGS="$CXXFLAGS" "$MAKE" "${MAKEARGS[@]}" static dynamic cryptest.exe 2>&1 | tee -a "$TEST_RESULTS" - if [[ ("${PIPESTATUS[0]}" -ne "0") ]]; then + if [[ ("${PIPESTATUS[0]}" -ne 0) ]]; then echo "ERROR: failed to make cryptest.exe" | tee -a "$TEST_RESULTS" # Stop now if things are broke exit 1 else ./cryptest.exe v 2>&1 | tee -a "$TEST_RESULTS" - if [[ ("${PIPESTATUS[0]}" -ne "0") ]]; then + if [[ ("${PIPESTATUS[0]}" -ne 0) ]]; then echo "ERROR: failed to execute validation suite" | tee -a "$TEST_RESULTS" # Stop now if things are broke exit 1 fi ./cryptest.exe tv all 2>&1 | tee -a "$TEST_RESULTS" - if [[ ("${PIPESTATUS[0]}" -ne "0") ]]; then + if [[ ("${PIPESTATUS[0]}" -ne 0) ]]; then echo "ERROR: failed to execute test vectors" | tee -a "$TEST_RESULTS" # Stop now if things are broke exit 1 @@ -2007,7 +2007,7 @@ fi ############################################ # Shared Objects -if [[ "$HAVE_LD_LIBRARY_PATH" -ne "0" ]]; then +if [[ "$HAVE_LD_LIBRARY_PATH" -ne 0 ]]; then ############################################ # Debug build echo @@ -2023,15 +2023,15 @@ if [[ "$HAVE_LD_LIBRARY_PATH" -ne "0" ]]; then CXX="$CXX" CXXFLAGS="$DEBUG_CXXFLAGS" LINK_LIBRARY=libcryptopp.so \ "$MAKE" "${MAKEARGS[@]}" static dynamic cryptest.exe 2>&1 | tee -a "$TEST_RESULTS" - if [[ ("${PIPESTATUS[0]}" -ne "0") ]]; then + if [[ ("${PIPESTATUS[0]}" -ne 0) ]]; then echo "ERROR: failed to make cryptest.exe" | tee -a "$TEST_RESULTS" else LD_LIBRARY_PATH="." ./cryptest.exe v 2>&1 | tee -a "$TEST_RESULTS" - if [[ ("${PIPESTATUS[0]}" -ne "0") ]]; then + if [[ ("${PIPESTATUS[0]}" -ne 0) ]]; then echo "ERROR: failed to execute validation suite" | tee -a "$TEST_RESULTS" fi LD_LIBRARY_PATH="." ./cryptest.exe tv all 2>&1 | tee -a "$TEST_RESULTS" - if [[ ("${PIPESTATUS[0]}" -ne "0") ]]; then + if [[ ("${PIPESTATUS[0]}" -ne 0) ]]; then echo "ERROR: failed to execute test vectors" | tee -a "$TEST_RESULTS" fi fi @@ -2051,15 +2051,15 @@ if [[ "$HAVE_LD_LIBRARY_PATH" -ne "0" ]]; then CXX="$CXX" CXXFLAGS="$RELEASE_CXXFLAGS" LINK_LIBRARY=libcryptopp.so \ "$MAKE" "${MAKEARGS[@]}" static dynamic cryptest.exe 2>&1 | tee -a "$TEST_RESULTS" - if [[ ("${PIPESTATUS[0]}" -ne "0") ]]; then + if [[ ("${PIPESTATUS[0]}" -ne 0) ]]; then echo "ERROR: failed to make cryptest.exe" | tee -a "$TEST_RESULTS" else LD_LIBRARY_PATH="." ./cryptest.exe v 2>&1 | tee -a "$TEST_RESULTS" - if [[ ("${PIPESTATUS[0]}" -ne "0") ]]; then + if [[ ("${PIPESTATUS[0]}" -ne 0) ]]; then echo "ERROR: failed to execute validation suite" | tee -a "$TEST_RESULTS" fi LD_LIBRARY_PATH="." ./cryptest.exe tv all 2>&1 | tee -a "$TEST_RESULTS" - if [[ ("${PIPESTATUS[0]}" -ne "0") ]]; then + if [[ ("${PIPESTATUS[0]}" -ne 0) ]]; then echo "ERROR: failed to execute test vectors" | tee -a "$TEST_RESULTS" fi echo @@ -2068,7 +2068,7 @@ fi ############################################ # Dynamic Objects on Darwin -if [[ "$HAVE_DYLD_LIBRARY_PATH" -ne "0" ]]; then +if [[ "$HAVE_DYLD_LIBRARY_PATH" -ne 0 ]]; then ############################################ # Debug build echo @@ -2084,15 +2084,15 @@ if [[ "$HAVE_DYLD_LIBRARY_PATH" -ne "0" ]]; then CXX="$CXX" CXXFLAGS="$DEBUG_CXXFLAGS" LINK_LIBRARY=libcryptopp.dylib \ "$MAKE" "${MAKEARGS[@]}" static dynamic cryptest.exe 2>&1 | tee -a "$TEST_RESULTS" - if [[ ("${PIPESTATUS[0]}" -ne "0") ]]; then + if [[ ("${PIPESTATUS[0]}" -ne 0) ]]; then echo "ERROR: failed to make cryptest.exe" | tee -a "$TEST_RESULTS" else DYLD_LIBRARY_PATH="." ./cryptest.exe v 2>&1 | tee -a "$TEST_RESULTS" - if [[ ("${PIPESTATUS[0]}" -ne "0") ]]; then + if [[ ("${PIPESTATUS[0]}" -ne 0) ]]; then echo "ERROR: failed to execute validation suite" | tee -a "$TEST_RESULTS" fi DYLD_LIBRARY_PATH="." ./cryptest.exe tv all 2>&1 | tee -a "$TEST_RESULTS" - if [[ ("${PIPESTATUS[0]}" -ne "0") ]]; then + if [[ ("${PIPESTATUS[0]}" -ne 0) ]]; then echo "ERROR: failed to execute test vectors" | tee -a "$TEST_RESULTS" fi fi @@ -2112,15 +2112,15 @@ if [[ "$HAVE_DYLD_LIBRARY_PATH" -ne "0" ]]; then CXX="$CXX" CXXFLAGS="$RELEASE_CXXFLAGS" LINK_LIBRARY=libcryptopp.dylib \ "$MAKE" "${MAKEARGS[@]}" static dynamic cryptest.exe 2>&1 | tee -a "$TEST_RESULTS" - if [[ ("${PIPESTATUS[0]}" -ne "0") ]]; then + if [[ ("${PIPESTATUS[0]}" -ne 0) ]]; then echo "ERROR: failed to make cryptest.exe" | tee -a "$TEST_RESULTS" else DYLD_LIBRARY_PATH="." ./cryptest.exe v 2>&1 | tee -a "$TEST_RESULTS" - if [[ ("${PIPESTATUS[0]}" -ne "0") ]]; then + if [[ ("${PIPESTATUS[0]}" -ne 0) ]]; then echo "ERROR: failed to execute validation suite" | tee -a "$TEST_RESULTS" fi DYLD_LIBRARY_PATH="." ./cryptest.exe tv all 2>&1 | tee -a "$TEST_RESULTS" - if [[ ("${PIPESTATUS[0]}" -ne "0") ]]; then + if [[ ("${PIPESTATUS[0]}" -ne 0) ]]; then echo "ERROR: failed to execute test vectors" | tee -a "$TEST_RESULTS" fi echo @@ -2129,7 +2129,7 @@ fi ############################################ # Debian specific. -if [[ ("$IS_DEBIAN" -ne "0" || "$IS_UBUNTU" -ne "0") ]]; then +if [[ ("$IS_DEBIAN" -ne 0 || "$IS_UBUNTU" -ne 0) ]]; then # Flags taken from Debian's build logs # https://buildd.debian.org/status/fetch.php?pkg=libcrypto%2b%2b&arch=i386&ver=5.6.4-6 @@ -2151,15 +2151,15 @@ if [[ ("$IS_DEBIAN" -ne "0" || "$IS_UBUNTU" -ne "0") ]]; then CXX="g++" "$MAKE" "${MAKEARGS[@]}" CXXFLAGS="${DEBIAN_FLAGS[*]}" static dynamic cryptest.exe 2>&1 | tee -a "$TEST_RESULTS" - if [[ ("${PIPESTATUS[0]}" -ne "0") ]]; then + if [[ ("${PIPESTATUS[0]}" -ne 0) ]]; then echo "ERROR: failed to make cryptest.exe" | tee -a "$TEST_RESULTS" else ./cryptest.exe v 2>&1 | tee -a "$TEST_RESULTS" - if [[ ("${PIPESTATUS[0]}" -ne "0") ]]; then + if [[ ("${PIPESTATUS[0]}" -ne 0) ]]; then echo "ERROR: failed to execute validation suite" | tee -a "$TEST_RESULTS" fi ./cryptest.exe tv all 2>&1 | tee -a "$TEST_RESULTS" - if [[ ("${PIPESTATUS[0]}" -ne "0") ]]; then + if [[ ("${PIPESTATUS[0]}" -ne 0) ]]; then echo "ERROR: failed to execute test vectors" | tee -a "$TEST_RESULTS" fi fi @@ -2167,14 +2167,14 @@ fi ############################################ # Fedora specific. -if [[ ("$IS_FEDORA" -ne "0") ]]; then +if [[ ("$IS_FEDORA" -ne 0) ]]; then # Flags taken from Fedora's build logs # https://kojipkgs.fedoraproject.org//packages/cryptopp/5.6.3/8.fc27/data/logs/i686/build.log # https://kojipkgs.fedoraproject.org//packages/cryptopp/5.6.3/8.fc27/data/logs/x86_64/build.log - if [[ ("$IS_X86" -ne "0") ]]; then + if [[ ("$IS_X86" -ne 0) ]]; then MARCH_OPT=(-m32 -march=i686) - elif [[ ("$IS_X64" -ne "0") ]]; then + elif [[ ("$IS_X64" -ne 0) ]]; then MARCH_OPT=(-m64 -mtune=generic) fi @@ -2197,15 +2197,15 @@ if [[ ("$IS_FEDORA" -ne "0") ]]; then CXX="g++" "$MAKE" "${MAKEARGS[@]}" CXXFLAGS="${FEDORA_FLAGS[*]}" static dynamic cryptest.exe 2>&1 | tee -a "$TEST_RESULTS" - if [[ ("${PIPESTATUS[0]}" -ne "0") ]]; then + if [[ ("${PIPESTATUS[0]}" -ne 0) ]]; then echo "ERROR: failed to make cryptest.exe" | tee -a "$TEST_RESULTS" else ./cryptest.exe v 2>&1 | tee -a "$TEST_RESULTS" - if [[ ("${PIPESTATUS[0]}" -ne "0") ]]; then + if [[ ("${PIPESTATUS[0]}" -ne 0) ]]; then echo "ERROR: failed to execute validation suite" | tee -a "$TEST_RESULTS" fi ./cryptest.exe tv all 2>&1 | tee -a "$TEST_RESULTS" - if [[ ("${PIPESTATUS[0]}" -ne "0") ]]; then + if [[ ("${PIPESTATUS[0]}" -ne 0) ]]; then echo "ERROR: failed to execute test vectors" | tee -a "$TEST_RESULTS" fi fi @@ -2214,7 +2214,7 @@ fi ############################################ # openSUSE specific. -if [[ ("$IS_SUSE" -ne "0") ]]; then +if [[ ("$IS_SUSE" -ne 0) ]]; then # Flags taken from openSUSE's build logs # http://susepaste.org/view//9613298 @@ -2261,15 +2261,15 @@ if [[ ("$IS_SUSE" -ne "0") ]]; then CXX="g++" "$MAKE" "${MAKEARGS[@]}" CXXFLAGS="${SUSE_FLAGS[*]}" static dynamic cryptest.exe 2>&1 | tee -a "$TEST_RESULTS" - if [[ ("${PIPESTATUS[0]}" -ne "0") ]]; then + if [[ ("${PIPESTATUS[0]}" -ne 0) ]]; then echo "ERROR: failed to make cryptest.exe" | tee -a "$TEST_RESULTS" else ./cryptest.exe v 2>&1 | tee -a "$TEST_RESULTS" - if [[ ("${PIPESTATUS[0]}" -ne "0") ]]; then + if [[ ("${PIPESTATUS[0]}" -ne 0) ]]; then echo "ERROR: failed to execute validation suite" | tee -a "$TEST_RESULTS" fi ./cryptest.exe tv all 2>&1 | tee -a "$TEST_RESULTS" - if [[ ("${PIPESTATUS[0]}" -ne "0") ]]; then + if [[ ("${PIPESTATUS[0]}" -ne 0) ]]; then echo "ERROR: failed to execute test vectors" | tee -a "$TEST_RESULTS" fi fi @@ -2277,10 +2277,10 @@ fi ############################################ # Minimum platform -if [[ ("$GCC_COMPILER" -ne "0" || "$CLANG_COMPILER" -ne "0" || "$INTEL_COMPILER" -ne "0") ]]; then +if [[ ("$GCC_COMPILER" -ne 0 || "$CLANG_COMPILER" -ne 0 || "$INTEL_COMPILER" -ne 0) ]]; then # i686 (lacks MMX, SSE and SSE2) - if [[ "$IS_X86" -ne "0" ]]; then + if [[ "$IS_X86" -ne 0 ]]; then ############################################ # Debug build echo @@ -2296,15 +2296,15 @@ if [[ ("$GCC_COMPILER" -ne "0" || "$CLANG_COMPILER" -ne "0" || "$INTEL_COMPILER" CXXFLAGS="$DEBUG_CXXFLAGS -march=i686 $OPT_PIC" CXX="$CXX" CXXFLAGS="$CXXFLAGS" "$MAKE" "${MAKEARGS[@]}" static dynamic cryptest.exe 2>&1 | tee -a "$TEST_RESULTS" - if [[ ("${PIPESTATUS[0]}" -ne "0") ]]; then + if [[ ("${PIPESTATUS[0]}" -ne 0) ]]; then echo "ERROR: failed to make cryptest.exe" | tee -a "$TEST_RESULTS" else ./cryptest.exe v 2>&1 | tee -a "$TEST_RESULTS" - if [[ ("${PIPESTATUS[0]}" -ne "0") ]]; then + if [[ ("${PIPESTATUS[0]}" -ne 0) ]]; then echo "ERROR: failed to execute validation suite" | tee -a "$TEST_RESULTS" fi ./cryptest.exe tv all 2>&1 | tee -a "$TEST_RESULTS" - if [[ ("${PIPESTATUS[0]}" -ne "0") ]]; then + if [[ ("${PIPESTATUS[0]}" -ne 0) ]]; then echo "ERROR: failed to execute test vectors" | tee -a "$TEST_RESULTS" fi fi @@ -2324,22 +2324,22 @@ if [[ ("$GCC_COMPILER" -ne "0" || "$CLANG_COMPILER" -ne "0" || "$INTEL_COMPILER" CXXFLAGS="$RELEASE_CXXFLAGS -march=i686 $OPT_PIC" CXX="$CXX" CXXFLAGS="$CXXFLAGS" "$MAKE" "${MAKEARGS[@]}" static dynamic cryptest.exe 2>&1 | tee -a "$TEST_RESULTS" - if [[ ("${PIPESTATUS[0]}" -ne "0") ]]; then + if [[ ("${PIPESTATUS[0]}" -ne 0) ]]; then echo "ERROR: failed to make cryptest.exe" | tee -a "$TEST_RESULTS" else ./cryptest.exe v 2>&1 | tee -a "$TEST_RESULTS" - if [[ ("${PIPESTATUS[0]}" -ne "0") ]]; then + if [[ ("${PIPESTATUS[0]}" -ne 0) ]]; then echo "ERROR: failed to execute validation suite" | tee -a "$TEST_RESULTS" fi ./cryptest.exe tv all 2>&1 | tee -a "$TEST_RESULTS" - if [[ ("${PIPESTATUS[0]}" -ne "0") ]]; then + if [[ ("${PIPESTATUS[0]}" -ne 0) ]]; then echo "ERROR: failed to execute test vectors" | tee -a "$TEST_RESULTS" fi fi fi # x86_64 - if [[ "$IS_X64" -ne "0" ]]; then + if [[ "$IS_X64" -ne 0 ]]; then ############################################ # Debug build echo @@ -2355,15 +2355,15 @@ if [[ ("$GCC_COMPILER" -ne "0" || "$CLANG_COMPILER" -ne "0" || "$INTEL_COMPILER" CXXFLAGS="$DEBUG_CXXFLAGS -march=x86-64 $OPT_PIC" CXX="$CXX" CXXFLAGS="$CXXFLAGS" "$MAKE" "${MAKEARGS[@]}" static dynamic cryptest.exe 2>&1 | tee -a "$TEST_RESULTS" - if [[ ("${PIPESTATUS[0]}" -ne "0") ]]; then + if [[ ("${PIPESTATUS[0]}" -ne 0) ]]; then echo "ERROR: failed to make cryptest.exe" | tee -a "$TEST_RESULTS" else ./cryptest.exe v 2>&1 | tee -a "$TEST_RESULTS" - if [[ ("${PIPESTATUS[0]}" -ne "0") ]]; then + if [[ ("${PIPESTATUS[0]}" -ne 0) ]]; then echo "ERROR: failed to execute validation suite" | tee -a "$TEST_RESULTS" fi ./cryptest.exe tv all 2>&1 | tee -a "$TEST_RESULTS" - if [[ ("${PIPESTATUS[0]}" -ne "0") ]]; then + if [[ ("${PIPESTATUS[0]}" -ne 0) ]]; then echo "ERROR: failed to execute test vectors" | tee -a "$TEST_RESULTS" fi fi @@ -2383,15 +2383,15 @@ if [[ ("$GCC_COMPILER" -ne "0" || "$CLANG_COMPILER" -ne "0" || "$INTEL_COMPILER" CXXFLAGS="$RELEASE_CXXFLAGS -march=x86-64 $OPT_PIC" CXX="$CXX" CXXFLAGS="$CXXFLAGS" "$MAKE" "${MAKEARGS[@]}" static dynamic cryptest.exe 2>&1 | tee -a "$TEST_RESULTS" - if [[ ("${PIPESTATUS[0]}" -ne "0") ]]; then + if [[ ("${PIPESTATUS[0]}" -ne 0) ]]; then echo "ERROR: failed to make cryptest.exe" | tee -a "$TEST_RESULTS" else ./cryptest.exe v 2>&1 | tee -a "$TEST_RESULTS" - if [[ ("${PIPESTATUS[0]}" -ne "0") ]]; then + if [[ ("${PIPESTATUS[0]}" -ne 0) ]]; then echo "ERROR: failed to execute validation suite" | tee -a "$TEST_RESULTS" fi ./cryptest.exe tv all 2>&1 | tee -a "$TEST_RESULTS" - if [[ ("${PIPESTATUS[0]}" -ne "0") ]]; then + if [[ ("${PIPESTATUS[0]}" -ne 0) ]]; then echo "ERROR: failed to execute test vectors" | tee -a "$TEST_RESULTS" fi fi @@ -2400,10 +2400,10 @@ fi ############################################ # Mismatched arch capabilities -if [[ ( ("$IS_X86" -ne "0" || "$IS_X32" -ne "0" || "$IS_X64" -ne "0") && "$HAVE_NATIVE_ARCH" -ne "0") ]]; then +if [[ ( ("$IS_X86" -ne 0 || "$IS_X32" -ne 0 || "$IS_X64" -ne 0) && "$HAVE_NATIVE_ARCH" -ne 0) ]]; then # i686 (lacks MMX, SSE and SSE2) - if [[ "$IS_X86" -ne "0" ]]; then + if [[ "$IS_X86" -ne 0 ]]; then ############################################ # Debug build echo @@ -2423,15 +2423,15 @@ if [[ ( ("$IS_X86" -ne "0" || "$IS_X32" -ne "0" || "$IS_X64" -ne "0") && "$HAVE_ CXXFLAGS="$DEBUG_CXXFLAGS $OPT_PIC" CXX="$CXX" CXXFLAGS="$CXXFLAGS" "$MAKE" "${MAKEARGS[@]}" cryptest.exe 2>&1 | tee -a "$TEST_RESULTS" - if [[ ("${PIPESTATUS[0]}" -ne "0") ]]; then + if [[ ("${PIPESTATUS[0]}" -ne 0) ]]; then echo "ERROR: failed to make cryptest.exe" | tee -a "$TEST_RESULTS" else ./cryptest.exe v 2>&1 | tee -a "$TEST_RESULTS" - if [[ ("${PIPESTATUS[0]}" -ne "0") ]]; then + if [[ ("${PIPESTATUS[0]}" -ne 0) ]]; then echo "ERROR: failed to execute validation suite" | tee -a "$TEST_RESULTS" fi ./cryptest.exe tv all 2>&1 | tee -a "$TEST_RESULTS" - if [[ ("${PIPESTATUS[0]}" -ne "0") ]]; then + if [[ ("${PIPESTATUS[0]}" -ne 0) ]]; then echo "ERROR: failed to execute test vectors" | tee -a "$TEST_RESULTS" fi fi @@ -2455,22 +2455,22 @@ if [[ ( ("$IS_X86" -ne "0" || "$IS_X32" -ne "0" || "$IS_X64" -ne "0") && "$HAVE_ CXXFLAGS="$RELEASE_CXXFLAGS $OPT_PIC" CXX="$CXX" CXXFLAGS="$CXXFLAGS" "$MAKE" "${MAKEARGS[@]}" cryptest.exe 2>&1 | tee -a "$TEST_RESULTS" - if [[ ("${PIPESTATUS[0]}" -ne "0") ]]; then + if [[ ("${PIPESTATUS[0]}" -ne 0) ]]; then echo "ERROR: failed to make cryptest.exe" | tee -a "$TEST_RESULTS" else ./cryptest.exe v 2>&1 | tee -a "$TEST_RESULTS" - if [[ ("${PIPESTATUS[0]}" -ne "0") ]]; then + if [[ ("${PIPESTATUS[0]}" -ne 0) ]]; then echo "ERROR: failed to execute validation suite" | tee -a "$TEST_RESULTS" fi ./cryptest.exe tv all 2>&1 | tee -a "$TEST_RESULTS" - if [[ ("${PIPESTATUS[0]}" -ne "0") ]]; then + if [[ ("${PIPESTATUS[0]}" -ne 0) ]]; then echo "ERROR: failed to execute test vectors" | tee -a "$TEST_RESULTS" fi fi fi # x86-64 - if [[ "$IS_X64" -ne "0" ]]; then + if [[ "$IS_X64" -ne 0 ]]; then ############################################ # Debug build echo @@ -2490,15 +2490,15 @@ if [[ ( ("$IS_X86" -ne "0" || "$IS_X32" -ne "0" || "$IS_X64" -ne "0") && "$HAVE_ CXXFLAGS="$DEBUG_CXXFLAGS $OPT_PIC" CXX="$CXX" CXXFLAGS="$CXXFLAGS" "$MAKE" "${MAKEARGS[@]}" cryptest.exe 2>&1 | tee -a "$TEST_RESULTS" - if [[ ("${PIPESTATUS[0]}" -ne "0") ]]; then + if [[ ("${PIPESTATUS[0]}" -ne 0) ]]; then echo "ERROR: failed to make cryptest.exe" | tee -a "$TEST_RESULTS" else ./cryptest.exe v 2>&1 | tee -a "$TEST_RESULTS" - if [[ ("${PIPESTATUS[0]}" -ne "0") ]]; then + if [[ ("${PIPESTATUS[0]}" -ne 0) ]]; then echo "ERROR: failed to execute validation suite" | tee -a "$TEST_RESULTS" fi ./cryptest.exe tv all 2>&1 | tee -a "$TEST_RESULTS" - if [[ ("${PIPESTATUS[0]}" -ne "0") ]]; then + if [[ ("${PIPESTATUS[0]}" -ne 0) ]]; then echo "ERROR: failed to execute test vectors" | tee -a "$TEST_RESULTS" fi fi @@ -2522,15 +2522,15 @@ if [[ ( ("$IS_X86" -ne "0" || "$IS_X32" -ne "0" || "$IS_X64" -ne "0") && "$HAVE_ CXXFLAGS="$RELEASE_CXXFLAGS $OPT_PIC" CXX="$CXX" CXXFLAGS="$CXXFLAGS" "$MAKE" "${MAKEARGS[@]}" cryptest.exe 2>&1 | tee -a "$TEST_RESULTS" - if [[ ("${PIPESTATUS[0]}" -ne "0") ]]; then + if [[ ("${PIPESTATUS[0]}" -ne 0) ]]; then echo "ERROR: failed to make cryptest.exe" | tee -a "$TEST_RESULTS" else ./cryptest.exe v 2>&1 | tee -a "$TEST_RESULTS" - if [[ ("${PIPESTATUS[0]}" -ne "0") ]]; then + if [[ ("${PIPESTATUS[0]}" -ne 0) ]]; then echo "ERROR: failed to execute validation suite" | tee -a "$TEST_RESULTS" fi ./cryptest.exe tv all 2>&1 | tee -a "$TEST_RESULTS" - if [[ ("${PIPESTATUS[0]}" -ne "0") ]]; then + if [[ ("${PIPESTATUS[0]}" -ne 0) ]]; then echo "ERROR: failed to execute test vectors" | tee -a "$TEST_RESULTS" fi fi @@ -2556,15 +2556,15 @@ if true; then CXXFLAGS="$DEBUG_CXXFLAGS -DCRYPTOPP_DISABLE_ASM" CXX="$CXX" CXXFLAGS="$CXXFLAGS" "$MAKE" "${MAKEARGS[@]}" static dynamic cryptest.exe 2>&1 | tee -a "$TEST_RESULTS" - if [[ ("${PIPESTATUS[0]}" -ne "0") ]]; then + if [[ ("${PIPESTATUS[0]}" -ne 0) ]]; then echo "ERROR: failed to make cryptest.exe" | tee -a "$TEST_RESULTS" else ./cryptest.exe v 2>&1 | tee -a "$TEST_RESULTS" - if [[ ("${PIPESTATUS[0]}" -ne "0") ]]; then + if [[ ("${PIPESTATUS[0]}" -ne 0) ]]; then echo "ERROR: failed to execute validation suite" | tee -a "$TEST_RESULTS" fi ./cryptest.exe tv all 2>&1 | tee -a "$TEST_RESULTS" - if [[ ("${PIPESTATUS[0]}" -ne "0") ]]; then + if [[ ("${PIPESTATUS[0]}" -ne 0) ]]; then echo "ERROR: failed to execute test vectors" | tee -a "$TEST_RESULTS" fi fi @@ -2584,15 +2584,15 @@ if true; then CXXFLAGS="$RELEASE_CXXFLAGS -DCRYPTOPP_DISABLE_ASM" CXX="$CXX" CXXFLAGS="$CXXFLAGS" "$MAKE" "${MAKEARGS[@]}" static dynamic cryptest.exe 2>&1 | tee -a "$TEST_RESULTS" - if [[ ("${PIPESTATUS[0]}" -ne "0") ]]; then + if [[ ("${PIPESTATUS[0]}" -ne 0) ]]; then echo "ERROR: failed to make cryptest.exe" | tee -a "$TEST_RESULTS" else ./cryptest.exe v 2>&1 | tee -a "$TEST_RESULTS" - if [[ ("${PIPESTATUS[0]}" -ne "0") ]]; then + if [[ ("${PIPESTATUS[0]}" -ne 0) ]]; then echo "ERROR: failed to execute validation suite" | tee -a "$TEST_RESULTS" fi ./cryptest.exe tv all 2>&1 | tee -a "$TEST_RESULTS" - if [[ ("${PIPESTATUS[0]}" -ne "0") ]]; then + if [[ ("${PIPESTATUS[0]}" -ne 0) ]]; then echo "ERROR: failed to execute test vectors" | tee -a "$TEST_RESULTS" fi fi @@ -2617,15 +2617,15 @@ if true; then CXXFLAGS="$DEBUG_CXXFLAGS -DCRYPTOPP_NO_CPU_FEATURE_PROBES=1" CXX="$CXX" CXXFLAGS="$CXXFLAGS" "$MAKE" "${MAKEARGS[@]}" static dynamic cryptest.exe 2>&1 | tee -a "$TEST_RESULTS" - if [[ ("${PIPESTATUS[0]}" -ne "0") ]]; then + if [[ ("${PIPESTATUS[0]}" -ne 0) ]]; then echo "ERROR: failed to make cryptest.exe" | tee -a "$TEST_RESULTS" else ./cryptest.exe v 2>&1 | tee -a "$TEST_RESULTS" - if [[ ("${PIPESTATUS[0]}" -ne "0") ]]; then + if [[ ("${PIPESTATUS[0]}" -ne 0) ]]; then echo "ERROR: failed to execute validation suite" | tee -a "$TEST_RESULTS" fi ./cryptest.exe tv all 2>&1 | tee -a "$TEST_RESULTS" - if [[ ("${PIPESTATUS[0]}" -ne "0") ]]; then + if [[ ("${PIPESTATUS[0]}" -ne 0) ]]; then echo "ERROR: failed to execute test vectors" | tee -a "$TEST_RESULTS" fi fi @@ -2645,15 +2645,15 @@ if true; then CXXFLAGS="$RELEASE_CXXFLAGS -DCRYPTOPP_NO_CPU_FEATURE_PROBES=1" CXX="$CXX" CXXFLAGS="$CXXFLAGS" "$MAKE" "${MAKEARGS[@]}" static dynamic cryptest.exe 2>&1 | tee -a "$TEST_RESULTS" - if [[ ("${PIPESTATUS[0]}" -ne "0") ]]; then + if [[ ("${PIPESTATUS[0]}" -ne 0) ]]; then echo "ERROR: failed to make cryptest.exe" | tee -a "$TEST_RESULTS" else ./cryptest.exe v 2>&1 | tee -a "$TEST_RESULTS" - if [[ ("${PIPESTATUS[0]}" -ne "0") ]]; then + if [[ ("${PIPESTATUS[0]}" -ne 0) ]]; then echo "ERROR: failed to execute validation suite" | tee -a "$TEST_RESULTS" fi ./cryptest.exe tv all 2>&1 | tee -a "$TEST_RESULTS" - if [[ ("${PIPESTATUS[0]}" -ne "0") ]]; then + if [[ ("${PIPESTATUS[0]}" -ne 0) ]]; then echo "ERROR: failed to execute test vectors" | tee -a "$TEST_RESULTS" fi fi @@ -2661,7 +2661,7 @@ fi ############################################ # Debug build, CRYPTOPP_NO_CXX11 -if [[ "$HAVE_CXX11" -ne "0" ]] || [[ "$HAVE_GNU11" -ne "0" ]]; then +if [[ "$HAVE_CXX11" -ne 0 ]] || [[ "$HAVE_GNU11" -ne 0 ]]; then ############################################ # Debug build @@ -2678,15 +2678,15 @@ if [[ "$HAVE_CXX11" -ne "0" ]] || [[ "$HAVE_GNU11" -ne "0" ]]; then CXXFLAGS="$DEBUG_CXXFLAGS -DCRYPTOPP_CRYPTOPP_NO_CXX11=1" CXX="$CXX" CXXFLAGS="$CXXFLAGS" "$MAKE" "${MAKEARGS[@]}" static dynamic cryptest.exe 2>&1 | tee -a "$TEST_RESULTS" - if [[ ("${PIPESTATUS[0]}" -ne "0") ]]; then + if [[ ("${PIPESTATUS[0]}" -ne 0) ]]; then echo "ERROR: failed to make cryptest.exe" | tee -a "$TEST_RESULTS" else ./cryptest.exe v 2>&1 | tee -a "$TEST_RESULTS" - if [[ ("${PIPESTATUS[0]}" -ne "0") ]]; then + if [[ ("${PIPESTATUS[0]}" -ne 0) ]]; then echo "ERROR: failed to execute validation suite" | tee -a "$TEST_RESULTS" fi ./cryptest.exe tv all 2>&1 | tee -a "$TEST_RESULTS" - if [[ ("${PIPESTATUS[0]}" -ne "0") ]]; then + if [[ ("${PIPESTATUS[0]}" -ne 0) ]]; then echo "ERROR: failed to execute test vectors" | tee -a "$TEST_RESULTS" fi fi @@ -2706,15 +2706,15 @@ if [[ "$HAVE_CXX11" -ne "0" ]] || [[ "$HAVE_GNU11" -ne "0" ]]; then CXXFLAGS="$RELEASE_CXXFLAGS -DCRYPTOPP_CRYPTOPP_NO_CXX11=1" CXX="$CXX" CXXFLAGS="$CXXFLAGS" "$MAKE" "${MAKEARGS[@]}" static dynamic cryptest.exe 2>&1 | tee -a "$TEST_RESULTS" - if [[ ("${PIPESTATUS[0]}" -ne "0") ]]; then + if [[ ("${PIPESTATUS[0]}" -ne 0) ]]; then echo "ERROR: failed to make cryptest.exe" | tee -a "$TEST_RESULTS" else ./cryptest.exe v 2>&1 | tee -a "$TEST_RESULTS" - if [[ ("${PIPESTATUS[0]}" -ne "0") ]]; then + if [[ ("${PIPESTATUS[0]}" -ne 0) ]]; then echo "ERROR: failed to execute validation suite" | tee -a "$TEST_RESULTS" fi ./cryptest.exe tv all 2>&1 | tee -a "$TEST_RESULTS" - if [[ ("${PIPESTATUS[0]}" -ne "0") ]]; then + if [[ ("${PIPESTATUS[0]}" -ne 0) ]]; then echo "ERROR: failed to execute test vectors" | tee -a "$TEST_RESULTS" fi fi @@ -2722,7 +2722,7 @@ fi ############################################ # c++03 debug and release build -if [[ "$HAVE_CXX03" -ne "0" ]]; then +if [[ "$HAVE_CXX03" -ne 0 ]]; then ############################################ # Debug build @@ -2739,15 +2739,15 @@ if [[ "$HAVE_CXX03" -ne "0" ]]; then CXXFLAGS="$DEBUG_CXXFLAGS -std=c++03 $USER_CXXFLAGS" CXX="$CXX" CXXFLAGS="$CXXFLAGS" "$MAKE" "${MAKEARGS[@]}" static dynamic cryptest.exe 2>&1 | tee -a "$TEST_RESULTS" - if [[ ("${PIPESTATUS[0]}" -ne "0") ]]; then + if [[ ("${PIPESTATUS[0]}" -ne 0) ]]; then echo "ERROR: failed to make cryptest.exe" | tee -a "$TEST_RESULTS" else ./cryptest.exe v 2>&1 | tee -a "$TEST_RESULTS" - if [[ ("${PIPESTATUS[0]}" -ne "0") ]]; then + if [[ ("${PIPESTATUS[0]}" -ne 0) ]]; then echo "ERROR: failed to execute validation suite" | tee -a "$TEST_RESULTS" fi ./cryptest.exe tv all 2>&1 | tee -a "$TEST_RESULTS" - if [[ ("${PIPESTATUS[0]}" -ne "0") ]]; then + if [[ ("${PIPESTATUS[0]}" -ne 0) ]]; then echo "ERROR: failed to execute test vectors" | tee -a "$TEST_RESULTS" fi fi @@ -2767,15 +2767,15 @@ if [[ "$HAVE_CXX03" -ne "0" ]]; then CXXFLAGS="$RELEASE_CXXFLAGS -std=c++03 $USER_CXXFLAGS" CXX="$CXX" CXXFLAGS="$CXXFLAGS" "$MAKE" "${MAKEARGS[@]}" static dynamic cryptest.exe 2>&1 | tee -a "$TEST_RESULTS" - if [[ ("${PIPESTATUS[0]}" -ne "0") ]]; then + if [[ ("${PIPESTATUS[0]}" -ne 0) ]]; then echo "ERROR: failed to make cryptest.exe" | tee -a "$TEST_RESULTS" else ./cryptest.exe v 2>&1 | tee -a "$TEST_RESULTS" - if [[ ("${PIPESTATUS[0]}" -ne "0") ]]; then + if [[ ("${PIPESTATUS[0]}" -ne 0) ]]; then echo "ERROR: failed to execute validation suite" | tee -a "$TEST_RESULTS" fi ./cryptest.exe tv all 2>&1 | tee -a "$TEST_RESULTS" - if [[ ("${PIPESTATUS[0]}" -ne "0") ]]; then + if [[ ("${PIPESTATUS[0]}" -ne 0) ]]; then echo "ERROR: failed to execute test vectors" | tee -a "$TEST_RESULTS" fi fi @@ -2783,7 +2783,7 @@ fi ############################################ # gnu++03 debug and release build -if [[ "$HAVE_GNU03" -ne "0" ]]; then +if [[ "$HAVE_GNU03" -ne 0 ]]; then ############################################ # Debug build @@ -2800,15 +2800,15 @@ if [[ "$HAVE_GNU03" -ne "0" ]]; then CXXFLAGS="$DEBUG_CXXFLAGS -std=gnu++03 $USER_CXXFLAGS" CXX="$CXX" CXXFLAGS="$CXXFLAGS" "$MAKE" "${MAKEARGS[@]}" static dynamic cryptest.exe 2>&1 | tee -a "$TEST_RESULTS" - if [[ ("${PIPESTATUS[0]}" -ne "0") ]]; then + if [[ ("${PIPESTATUS[0]}" -ne 0) ]]; then echo "ERROR: failed to make cryptest.exe" | tee -a "$TEST_RESULTS" else ./cryptest.exe v 2>&1 | tee -a "$TEST_RESULTS" - if [[ ("${PIPESTATUS[0]}" -ne "0") ]]; then + if [[ ("${PIPESTATUS[0]}" -ne 0) ]]; then echo "ERROR: failed to execute validation suite" | tee -a "$TEST_RESULTS" fi ./cryptest.exe tv all 2>&1 | tee -a "$TEST_RESULTS" - if [[ ("${PIPESTATUS[0]}" -ne "0") ]]; then + if [[ ("${PIPESTATUS[0]}" -ne 0) ]]; then echo "ERROR: failed to execute test vectors" | tee -a "$TEST_RESULTS" fi fi @@ -2828,15 +2828,15 @@ if [[ "$HAVE_GNU03" -ne "0" ]]; then CXXFLAGS="$RELEASE_CXXFLAGS -std=gnu++03 $USER_CXXFLAGS" CXX="$CXX" CXXFLAGS="$CXXFLAGS" "$MAKE" "${MAKEARGS[@]}" static dynamic cryptest.exe 2>&1 | tee -a "$TEST_RESULTS" - if [[ ("${PIPESTATUS[0]}" -ne "0") ]]; then + if [[ ("${PIPESTATUS[0]}" -ne 0) ]]; then echo "ERROR: failed to make cryptest.exe" | tee -a "$TEST_RESULTS" else ./cryptest.exe v 2>&1 | tee -a "$TEST_RESULTS" - if [[ ("${PIPESTATUS[0]}" -ne "0") ]]; then + if [[ ("${PIPESTATUS[0]}" -ne 0) ]]; then echo "ERROR: failed to execute validation suite" | tee -a "$TEST_RESULTS" fi ./cryptest.exe tv all 2>&1 | tee -a "$TEST_RESULTS" - if [[ ("${PIPESTATUS[0]}" -ne "0") ]]; then + if [[ ("${PIPESTATUS[0]}" -ne 0) ]]; then echo "ERROR: failed to execute test vectors" | tee -a "$TEST_RESULTS" fi fi @@ -2844,7 +2844,7 @@ fi ############################################ # c++11 debug and release build -if [[ "$HAVE_CXX11" -ne "0" ]]; then +if [[ "$HAVE_CXX11" -ne 0 ]]; then ############################################ # Debug build @@ -2861,15 +2861,15 @@ if [[ "$HAVE_CXX11" -ne "0" ]]; then CXXFLAGS="$DEBUG_CXXFLAGS -std=c++11 $USER_CXXFLAGS" CXX="$CXX" CXXFLAGS="$CXXFLAGS" "$MAKE" "${MAKEARGS[@]}" static dynamic cryptest.exe 2>&1 | tee -a "$TEST_RESULTS" - if [[ ("${PIPESTATUS[0]}" -ne "0") ]]; then + if [[ ("${PIPESTATUS[0]}" -ne 0) ]]; then echo "ERROR: failed to make cryptest.exe" | tee -a "$TEST_RESULTS" else ./cryptest.exe v 2>&1 | tee -a "$TEST_RESULTS" - if [[ ("${PIPESTATUS[0]}" -ne "0") ]]; then + if [[ ("${PIPESTATUS[0]}" -ne 0) ]]; then echo "ERROR: failed to execute validation suite" | tee -a "$TEST_RESULTS" fi ./cryptest.exe tv all 2>&1 | tee -a "$TEST_RESULTS" - if [[ ("${PIPESTATUS[0]}" -ne "0") ]]; then + if [[ ("${PIPESTATUS[0]}" -ne 0) ]]; then echo "ERROR: failed to execute test vectors" | tee -a "$TEST_RESULTS" fi fi @@ -2889,15 +2889,15 @@ if [[ "$HAVE_CXX11" -ne "0" ]]; then CXXFLAGS="$RELEASE_CXXFLAGS -std=c++11 $USER_CXXFLAGS" CXX="$CXX" CXXFLAGS="$CXXFLAGS" "$MAKE" "${MAKEARGS[@]}" static dynamic cryptest.exe 2>&1 | tee -a "$TEST_RESULTS" - if [[ ("${PIPESTATUS[0]}" -ne "0") ]]; then + if [[ ("${PIPESTATUS[0]}" -ne 0) ]]; then echo "ERROR: failed to make cryptest.exe" | tee -a "$TEST_RESULTS" else ./cryptest.exe v 2>&1 | tee -a "$TEST_RESULTS" - if [[ ("${PIPESTATUS[0]}" -ne "0") ]]; then + if [[ ("${PIPESTATUS[0]}" -ne 0) ]]; then echo "ERROR: failed to execute validation suite" | tee -a "$TEST_RESULTS" fi ./cryptest.exe tv all 2>&1 | tee -a "$TEST_RESULTS" - if [[ ("${PIPESTATUS[0]}" -ne "0") ]]; then + if [[ ("${PIPESTATUS[0]}" -ne 0) ]]; then echo "ERROR: failed to execute test vectors" | tee -a "$TEST_RESULTS" fi fi @@ -2905,7 +2905,7 @@ fi ############################################ # gnu++11 debug and release build -if [[ "$HAVE_GNU11" -ne "0" ]]; then +if [[ "$HAVE_GNU11" -ne 0 ]]; then ############################################ # Debug build @@ -2922,15 +2922,15 @@ if [[ "$HAVE_GNU11" -ne "0" ]]; then CXXFLAGS="$DEBUG_CXXFLAGS -std=gnu++11 $USER_CXXFLAGS" CXX="$CXX" CXXFLAGS="$CXXFLAGS" "$MAKE" "${MAKEARGS[@]}" static dynamic cryptest.exe 2>&1 | tee -a "$TEST_RESULTS" - if [[ ("${PIPESTATUS[0]}" -ne "0") ]]; then + if [[ ("${PIPESTATUS[0]}" -ne 0) ]]; then echo "ERROR: failed to make cryptest.exe" | tee -a "$TEST_RESULTS" else ./cryptest.exe v 2>&1 | tee -a "$TEST_RESULTS" - if [[ ("${PIPESTATUS[0]}" -ne "0") ]]; then + if [[ ("${PIPESTATUS[0]}" -ne 0) ]]; then echo "ERROR: failed to execute validation suite" | tee -a "$TEST_RESULTS" fi ./cryptest.exe tv all 2>&1 | tee -a "$TEST_RESULTS" - if [[ ("${PIPESTATUS[0]}" -ne "0") ]]; then + if [[ ("${PIPESTATUS[0]}" -ne 0) ]]; then echo "ERROR: failed to execute test vectors" | tee -a "$TEST_RESULTS" fi fi @@ -2950,15 +2950,15 @@ if [[ "$HAVE_GNU11" -ne "0" ]]; then CXXFLAGS="$RELEASE_CXXFLAGS -std=gnu++11 $USER_CXXFLAGS" CXX="$CXX" CXXFLAGS="$CXXFLAGS" "$MAKE" "${MAKEARGS[@]}" static dynamic cryptest.exe 2>&1 | tee -a "$TEST_RESULTS" - if [[ ("${PIPESTATUS[0]}" -ne "0") ]]; then + if [[ ("${PIPESTATUS[0]}" -ne 0) ]]; then echo "ERROR: failed to make cryptest.exe" | tee -a "$TEST_RESULTS" else ./cryptest.exe v 2>&1 | tee -a "$TEST_RESULTS" - if [[ ("${PIPESTATUS[0]}" -ne "0") ]]; then + if [[ ("${PIPESTATUS[0]}" -ne 0) ]]; then echo "ERROR: failed to execute validation suite" | tee -a "$TEST_RESULTS" fi ./cryptest.exe tv all 2>&1 | tee -a "$TEST_RESULTS" - if [[ ("${PIPESTATUS[0]}" -ne "0") ]]; then + if [[ ("${PIPESTATUS[0]}" -ne 0) ]]; then echo "ERROR: failed to execute test vectors" | tee -a "$TEST_RESULTS" fi fi @@ -2966,7 +2966,7 @@ fi ############################################ # c++14 debug and release build -if [[ "$HAVE_CXX14" -ne "0" ]]; then +if [[ "$HAVE_CXX14" -ne 0 ]]; then ############################################ # Debug build @@ -2983,15 +2983,15 @@ if [[ "$HAVE_CXX14" -ne "0" ]]; then CXXFLAGS="$DEBUG_CXXFLAGS -std=c++14 $USER_CXXFLAGS" CXX="$CXX" CXXFLAGS="$CXXFLAGS" "$MAKE" "${MAKEARGS[@]}" static dynamic cryptest.exe 2>&1 | tee -a "$TEST_RESULTS" - if [[ ("${PIPESTATUS[0]}" -ne "0") ]]; then + if [[ ("${PIPESTATUS[0]}" -ne 0) ]]; then echo "ERROR: failed to make cryptest.exe" | tee -a "$TEST_RESULTS" else ./cryptest.exe v 2>&1 | tee -a "$TEST_RESULTS" - if [[ ("${PIPESTATUS[0]}" -ne "0") ]]; then + if [[ ("${PIPESTATUS[0]}" -ne 0) ]]; then echo "ERROR: failed to execute validation suite" | tee -a "$TEST_RESULTS" fi ./cryptest.exe tv all 2>&1 | tee -a "$TEST_RESULTS" - if [[ ("${PIPESTATUS[0]}" -ne "0") ]]; then + if [[ ("${PIPESTATUS[0]}" -ne 0) ]]; then echo "ERROR: failed to execute test vectors" | tee -a "$TEST_RESULTS" fi fi @@ -3011,15 +3011,15 @@ if [[ "$HAVE_CXX14" -ne "0" ]]; then CXXFLAGS="$RELEASE_CXXFLAGS -std=c++14 $USER_CXXFLAGS" CXX="$CXX" CXXFLAGS="$CXXFLAGS" "$MAKE" "${MAKEARGS[@]}" static dynamic cryptest.exe 2>&1 | tee -a "$TEST_RESULTS" - if [[ ("${PIPESTATUS[0]}" -ne "0") ]]; then + if [[ ("${PIPESTATUS[0]}" -ne 0) ]]; then echo "ERROR: failed to make cryptest.exe" | tee -a "$TEST_RESULTS" else ./cryptest.exe v 2>&1 | tee -a "$TEST_RESULTS" - if [[ ("${PIPESTATUS[0]}" -ne "0") ]]; then + if [[ ("${PIPESTATUS[0]}" -ne 0) ]]; then echo "ERROR: failed to execute validation suite" | tee -a "$TEST_RESULTS" fi ./cryptest.exe tv all 2>&1 | tee -a "$TEST_RESULTS" - if [[ ("${PIPESTATUS[0]}" -ne "0") ]]; then + if [[ ("${PIPESTATUS[0]}" -ne 0) ]]; then echo "ERROR: failed to execute test vectors" | tee -a "$TEST_RESULTS" fi fi @@ -3027,7 +3027,7 @@ fi ############################################ # gnu++14 debug and release build -if [[ "$HAVE_GNU14" -ne "0" ]]; then +if [[ "$HAVE_GNU14" -ne 0 ]]; then ############################################ # Debug build @@ -3044,15 +3044,15 @@ if [[ "$HAVE_GNU14" -ne "0" ]]; then CXXFLAGS="$DEBUG_CXXFLAGS -std=gnu++14 $USER_CXXFLAGS" CXX="$CXX" CXXFLAGS="$CXXFLAGS" "$MAKE" "${MAKEARGS[@]}" static dynamic cryptest.exe 2>&1 | tee -a "$TEST_RESULTS" - if [[ ("${PIPESTATUS[0]}" -ne "0") ]]; then + if [[ ("${PIPESTATUS[0]}" -ne 0) ]]; then echo "ERROR: failed to make cryptest.exe" | tee -a "$TEST_RESULTS" else ./cryptest.exe v 2>&1 | tee -a "$TEST_RESULTS" - if [[ ("${PIPESTATUS[0]}" -ne "0") ]]; then + if [[ ("${PIPESTATUS[0]}" -ne 0) ]]; then echo "ERROR: failed to execute validation suite" | tee -a "$TEST_RESULTS" fi ./cryptest.exe tv all 2>&1 | tee -a "$TEST_RESULTS" - if [[ ("${PIPESTATUS[0]}" -ne "0") ]]; then + if [[ ("${PIPESTATUS[0]}" -ne 0) ]]; then echo "ERROR: failed to execute test vectors" | tee -a "$TEST_RESULTS" fi fi @@ -3072,15 +3072,15 @@ if [[ "$HAVE_GNU14" -ne "0" ]]; then CXXFLAGS="$RELEASE_CXXFLAGS -std=gnu++14 $USER_CXXFLAGS" CXX="$CXX" CXXFLAGS="$CXXFLAGS" "$MAKE" "${MAKEARGS[@]}" static dynamic cryptest.exe 2>&1 | tee -a "$TEST_RESULTS" - if [[ ("${PIPESTATUS[0]}" -ne "0") ]]; then + if [[ ("${PIPESTATUS[0]}" -ne 0) ]]; then echo "ERROR: failed to make cryptest.exe" | tee -a "$TEST_RESULTS" else ./cryptest.exe v 2>&1 | tee -a "$TEST_RESULTS" - if [[ ("${PIPESTATUS[0]}" -ne "0") ]]; then + if [[ ("${PIPESTATUS[0]}" -ne 0) ]]; then echo "ERROR: failed to execute validation suite" | tee -a "$TEST_RESULTS" fi ./cryptest.exe tv all 2>&1 | tee -a "$TEST_RESULTS" - if [[ ("${PIPESTATUS[0]}" -ne "0") ]]; then + if [[ ("${PIPESTATUS[0]}" -ne 0) ]]; then echo "ERROR: failed to execute test vectors" | tee -a "$TEST_RESULTS" fi fi @@ -3088,7 +3088,7 @@ fi ############################################ # c++17 debug and release build -if [[ "$HAVE_CXX17" -ne "0" ]]; then +if [[ "$HAVE_CXX17" -ne 0 ]]; then ############################################ # Debug build @@ -3105,15 +3105,15 @@ if [[ "$HAVE_CXX17" -ne "0" ]]; then CXXFLAGS="$DEBUG_CXXFLAGS -std=c++17 $USER_CXXFLAGS" CXX="$CXX" CXXFLAGS="$CXXFLAGS" "$MAKE" "${MAKEARGS[@]}" static dynamic cryptest.exe 2>&1 | tee -a "$TEST_RESULTS" - if [[ ("${PIPESTATUS[0]}" -ne "0") ]]; then + if [[ ("${PIPESTATUS[0]}" -ne 0) ]]; then echo "ERROR: failed to make cryptest.exe" | tee -a "$TEST_RESULTS" else ./cryptest.exe v 2>&1 | tee -a "$TEST_RESULTS" - if [[ ("${PIPESTATUS[0]}" -ne "0") ]]; then + if [[ ("${PIPESTATUS[0]}" -ne 0) ]]; then echo "ERROR: failed to execute validation suite" | tee -a "$TEST_RESULTS" fi ./cryptest.exe tv all 2>&1 | tee -a "$TEST_RESULTS" - if [[ ("${PIPESTATUS[0]}" -ne "0") ]]; then + if [[ ("${PIPESTATUS[0]}" -ne 0) ]]; then echo "ERROR: failed to execute test vectors" | tee -a "$TEST_RESULTS" fi fi @@ -3133,15 +3133,15 @@ if [[ "$HAVE_CXX17" -ne "0" ]]; then CXXFLAGS="$RELEASE_CXXFLAGS -std=c++17 $USER_CXXFLAGS" CXX="$CXX" CXXFLAGS="$CXXFLAGS" "$MAKE" "${MAKEARGS[@]}" static dynamic cryptest.exe 2>&1 | tee -a "$TEST_RESULTS" - if [[ ("${PIPESTATUS[0]}" -ne "0") ]]; then + if [[ ("${PIPESTATUS[0]}" -ne 0) ]]; then echo "ERROR: failed to make cryptest.exe" | tee -a "$TEST_RESULTS" else ./cryptest.exe v 2>&1 | tee -a "$TEST_RESULTS" - if [[ ("${PIPESTATUS[0]}" -ne "0") ]]; then + if [[ ("${PIPESTATUS[0]}" -ne 0) ]]; then echo "ERROR: failed to execute validation suite" | tee -a "$TEST_RESULTS" fi ./cryptest.exe tv all 2>&1 | tee -a "$TEST_RESULTS" - if [[ ("${PIPESTATUS[0]}" -ne "0") ]]; then + if [[ ("${PIPESTATUS[0]}" -ne 0) ]]; then echo "ERROR: failed to execute test vectors" | tee -a "$TEST_RESULTS" fi fi @@ -3149,7 +3149,7 @@ fi ############################################ # gnu++17 debug and release build -if [[ "$HAVE_GNU17" -ne "0" ]]; then +if [[ "$HAVE_GNU17" -ne 0 ]]; then ############################################ # Debug build @@ -3166,15 +3166,15 @@ if [[ "$HAVE_GNU17" -ne "0" ]]; then CXXFLAGS="$DEBUG_CXXFLAGS -std=gnu++17 $USER_CXXFLAGS" CXX="$CXX" CXXFLAGS="$CXXFLAGS" "$MAKE" "${MAKEARGS[@]}" static dynamic cryptest.exe 2>&1 | tee -a "$TEST_RESULTS" - if [[ ("${PIPESTATUS[0]}" -ne "0") ]]; then + if [[ ("${PIPESTATUS[0]}" -ne 0) ]]; then echo "ERROR: failed to make cryptest.exe" | tee -a "$TEST_RESULTS" else ./cryptest.exe v 2>&1 | tee -a "$TEST_RESULTS" - if [[ ("${PIPESTATUS[0]}" -ne "0") ]]; then + if [[ ("${PIPESTATUS[0]}" -ne 0) ]]; then echo "ERROR: failed to execute validation suite" | tee -a "$TEST_RESULTS" fi ./cryptest.exe tv all 2>&1 | tee -a "$TEST_RESULTS" - if [[ ("${PIPESTATUS[0]}" -ne "0") ]]; then + if [[ ("${PIPESTATUS[0]}" -ne 0) ]]; then echo "ERROR: failed to execute test vectors" | tee -a "$TEST_RESULTS" fi fi @@ -3194,15 +3194,15 @@ if [[ "$HAVE_GNU17" -ne "0" ]]; then CXXFLAGS="$RELEASE_CXXFLAGS -std=gnu++17 $USER_CXXFLAGS" CXX="$CXX" CXXFLAGS="$CXXFLAGS" "$MAKE" "${MAKEARGS[@]}" static dynamic cryptest.exe 2>&1 | tee -a "$TEST_RESULTS" - if [[ ("${PIPESTATUS[0]}" -ne "0") ]]; then + if [[ ("${PIPESTATUS[0]}" -ne 0) ]]; then echo "ERROR: failed to make cryptest.exe" | tee -a "$TEST_RESULTS" else ./cryptest.exe v 2>&1 | tee -a "$TEST_RESULTS" - if [[ ("${PIPESTATUS[0]}" -ne "0") ]]; then + if [[ ("${PIPESTATUS[0]}" -ne 0) ]]; then echo "ERROR: failed to execute validation suite" | tee -a "$TEST_RESULTS" fi ./cryptest.exe tv all 2>&1 | tee -a "$TEST_RESULTS" - if [[ ("${PIPESTATUS[0]}" -ne "0") ]]; then + if [[ ("${PIPESTATUS[0]}" -ne 0) ]]; then echo "ERROR: failed to execute test vectors" | tee -a "$TEST_RESULTS" fi fi @@ -3210,7 +3210,7 @@ fi ############################################ # c++20 debug and release build -if [[ "$HAVE_CXX20" -ne "0" ]]; then +if [[ "$HAVE_CXX20" -ne 0 ]]; then ############################################ # Debug build @@ -3227,15 +3227,15 @@ if [[ "$HAVE_CXX20" -ne "0" ]]; then CXXFLAGS="$DEBUG_CXXFLAGS -std=c++20 $USER_CXXFLAGS" CXX="$CXX" CXXFLAGS="$CXXFLAGS" "$MAKE" "${MAKEARGS[@]}" static dynamic cryptest.exe 2>&1 | tee -a "$TEST_RESULTS" - if [[ ("${PIPESTATUS[0]}" -ne "0") ]]; then + if [[ ("${PIPESTATUS[0]}" -ne 0) ]]; then echo "ERROR: failed to make cryptest.exe" | tee -a "$TEST_RESULTS" else ./cryptest.exe v 2>&1 | tee -a "$TEST_RESULTS" - if [[ ("${PIPESTATUS[0]}" -ne "0") ]]; then + if [[ ("${PIPESTATUS[0]}" -ne 0) ]]; then echo "ERROR: failed to execute validation suite" | tee -a "$TEST_RESULTS" fi ./cryptest.exe tv all 2>&1 | tee -a "$TEST_RESULTS" - if [[ ("${PIPESTATUS[0]}" -ne "0") ]]; then + if [[ ("${PIPESTATUS[0]}" -ne 0) ]]; then echo "ERROR: failed to execute test vectors" | tee -a "$TEST_RESULTS" fi fi @@ -3255,15 +3255,15 @@ if [[ "$HAVE_CXX20" -ne "0" ]]; then CXXFLAGS="$RELEASE_CXXFLAGS -std=c++20 $USER_CXXFLAGS" CXX="$CXX" CXXFLAGS="$CXXFLAGS" "$MAKE" "${MAKEARGS[@]}" static dynamic cryptest.exe 2>&1 | tee -a "$TEST_RESULTS" - if [[ ("${PIPESTATUS[0]}" -ne "0") ]]; then + if [[ ("${PIPESTATUS[0]}" -ne 0) ]]; then echo "ERROR: failed to make cryptest.exe" | tee -a "$TEST_RESULTS" else ./cryptest.exe v 2>&1 | tee -a "$TEST_RESULTS" - if [[ ("${PIPESTATUS[0]}" -ne "0") ]]; then + if [[ ("${PIPESTATUS[0]}" -ne 0) ]]; then echo "ERROR: failed to execute validation suite" | tee -a "$TEST_RESULTS" fi ./cryptest.exe tv all 2>&1 | tee -a "$TEST_RESULTS" - if [[ ("${PIPESTATUS[0]}" -ne "0") ]]; then + if [[ ("${PIPESTATUS[0]}" -ne 0) ]]; then echo "ERROR: failed to execute test vectors" | tee -a "$TEST_RESULTS" fi fi @@ -3271,7 +3271,7 @@ fi ############################################ # gnu++20 debug and release build -if [[ "$HAVE_GNU20" -ne "0" ]]; then +if [[ "$HAVE_GNU20" -ne 0 ]]; then ############################################ # Debug build @@ -3288,15 +3288,15 @@ if [[ "$HAVE_GNU20" -ne "0" ]]; then CXXFLAGS="$DEBUG_CXXFLAGS -std=gnu++20 $USER_CXXFLAGS" CXX="$CXX" CXXFLAGS="$CXXFLAGS" "$MAKE" "${MAKEARGS[@]}" static dynamic cryptest.exe 2>&1 | tee -a "$TEST_RESULTS" - if [[ ("${PIPESTATUS[0]}" -ne "0") ]]; then + if [[ ("${PIPESTATUS[0]}" -ne 0) ]]; then echo "ERROR: failed to make cryptest.exe" | tee -a "$TEST_RESULTS" else ./cryptest.exe v 2>&1 | tee -a "$TEST_RESULTS" - if [[ ("${PIPESTATUS[0]}" -ne "0") ]]; then + if [[ ("${PIPESTATUS[0]}" -ne 0) ]]; then echo "ERROR: failed to execute validation suite" | tee -a "$TEST_RESULTS" fi ./cryptest.exe tv all 2>&1 | tee -a "$TEST_RESULTS" - if [[ ("${PIPESTATUS[0]}" -ne "0") ]]; then + if [[ ("${PIPESTATUS[0]}" -ne 0) ]]; then echo "ERROR: failed to execute test vectors" | tee -a "$TEST_RESULTS" fi fi @@ -3316,15 +3316,15 @@ if [[ "$HAVE_GNU20" -ne "0" ]]; then CXXFLAGS="$RELEASE_CXXFLAGS -std=gnu++20 $USER_CXXFLAGS" CXX="$CXX" CXXFLAGS="$CXXFLAGS" "$MAKE" "${MAKEARGS[@]}" static dynamic cryptest.exe 2>&1 | tee -a "$TEST_RESULTS" - if [[ ("${PIPESTATUS[0]}" -ne "0") ]]; then + if [[ ("${PIPESTATUS[0]}" -ne 0) ]]; then echo "ERROR: failed to make cryptest.exe" | tee -a "$TEST_RESULTS" else ./cryptest.exe v 2>&1 | tee -a "$TEST_RESULTS" - if [[ ("${PIPESTATUS[0]}" -ne "0") ]]; then + if [[ ("${PIPESTATUS[0]}" -ne 0) ]]; then echo "ERROR: failed to execute validation suite" | tee -a "$TEST_RESULTS" fi ./cryptest.exe tv all 2>&1 | tee -a "$TEST_RESULTS" - if [[ ("${PIPESTATUS[0]}" -ne "0") ]]; then + if [[ ("${PIPESTATUS[0]}" -ne 0) ]]; then echo "ERROR: failed to execute test vectors" | tee -a "$TEST_RESULTS" fi fi @@ -3332,7 +3332,7 @@ fi ############################################ # X32 debug and release build -if [[ "$HAVE_X32" -ne "0" ]]; then +if [[ "$HAVE_X32" -ne 0 ]]; then ############################################ # Debug build @@ -3349,15 +3349,15 @@ if [[ "$HAVE_X32" -ne "0" ]]; then CXXFLAGS="$DEBUG_CXXFLAGS -mx32 $USER_CXXFLAGS" CXX="$CXX" CXXFLAGS="$CXXFLAGS" "$MAKE" "${MAKEARGS[@]}" static dynamic cryptest.exe 2>&1 | tee -a "$TEST_RESULTS" - if [[ ("${PIPESTATUS[0]}" -ne "0") ]]; then + if [[ ("${PIPESTATUS[0]}" -ne 0) ]]; then echo "ERROR: failed to make cryptest.exe" | tee -a "$TEST_RESULTS" else ./cryptest.exe v 2>&1 | tee -a "$TEST_RESULTS" - if [[ ("${PIPESTATUS[0]}" -ne "0") ]]; then + if [[ ("${PIPESTATUS[0]}" -ne 0) ]]; then echo "ERROR: failed to execute validation suite" | tee -a "$TEST_RESULTS" fi ./cryptest.exe tv all 2>&1 | tee -a "$TEST_RESULTS" - if [[ ("${PIPESTATUS[0]}" -ne "0") ]]; then + if [[ ("${PIPESTATUS[0]}" -ne 0) ]]; then echo "ERROR: failed to execute test vectors" | tee -a "$TEST_RESULTS" fi fi @@ -3377,15 +3377,15 @@ if [[ "$HAVE_X32" -ne "0" ]]; then CXXFLAGS="$RELEASE_CXXFLAGS -mx32 $USER_CXXFLAGS" CXX="$CXX" CXXFLAGS="$CXXFLAGS" "$MAKE" "${MAKEARGS[@]}" static dynamic cryptest.exe 2>&1 | tee -a "$TEST_RESULTS" - if [[ ("${PIPESTATUS[0]}" -ne "0") ]]; then + if [[ ("${PIPESTATUS[0]}" -ne 0) ]]; then echo "ERROR: failed to make cryptest.exe" | tee -a "$TEST_RESULTS" else ./cryptest.exe v 2>&1 | tee -a "$TEST_RESULTS" - if [[ ("${PIPESTATUS[0]}" -ne "0") ]]; then + if [[ ("${PIPESTATUS[0]}" -ne 0) ]]; then echo "ERROR: failed to execute validation suite" | tee -a "$TEST_RESULTS" fi ./cryptest.exe tv all 2>&1 | tee -a "$TEST_RESULTS" - if [[ ("${PIPESTATUS[0]}" -ne "0") ]]; then + if [[ ("${PIPESTATUS[0]}" -ne 0) ]]; then echo "ERROR: failed to execute test vectors" | tee -a "$TEST_RESULTS" fi fi @@ -3410,15 +3410,15 @@ if true; then CXXFLAGS="$DEBUG_CXXFLAGS -DCRYPTOPP_INIT_PRIORITY=0 $USER_CXXFLAGS" CXX="$CXX" CXXFLAGS="$CXXFLAGS" "$MAKE" "${MAKEARGS[@]}" static dynamic cryptest.exe 2>&1 | tee -a "$TEST_RESULTS" - if [[ ("${PIPESTATUS[0]}" -ne "0") ]]; then + if [[ ("${PIPESTATUS[0]}" -ne 0) ]]; then echo "ERROR: failed to make cryptest.exe" | tee -a "$TEST_RESULTS" else ./cryptest.exe v 2>&1 | tee -a "$TEST_RESULTS" - if [[ ("${PIPESTATUS[0]}" -ne "0") ]]; then + if [[ ("${PIPESTATUS[0]}" -ne 0) ]]; then echo "ERROR: failed to execute validation suite" | tee -a "$TEST_RESULTS" fi ./cryptest.exe tv all 2>&1 | tee -a "$TEST_RESULTS" - if [[ ("${PIPESTATUS[0]}" -ne "0") ]]; then + if [[ ("${PIPESTATUS[0]}" -ne 0) ]]; then echo "ERROR: failed to execute test vectors" | tee -a "$TEST_RESULTS" fi fi @@ -3438,15 +3438,15 @@ if true; then CXXFLAGS="$RELEASE_CXXFLAGS -DCRYPTOPP_INIT_PRIORITY=0 $USER_CXXFLAGS" CXX="$CXX" CXXFLAGS="$CXXFLAGS" "$MAKE" "${MAKEARGS[@]}" static dynamic cryptest.exe 2>&1 | tee -a "$TEST_RESULTS" - if [[ ("${PIPESTATUS[0]}" -ne "0") ]]; then + if [[ ("${PIPESTATUS[0]}" -ne 0) ]]; then echo "ERROR: failed to make cryptest.exe" | tee -a "$TEST_RESULTS" else ./cryptest.exe v 2>&1 | tee -a "$TEST_RESULTS" - if [[ ("${PIPESTATUS[0]}" -ne "0") ]]; then + if [[ ("${PIPESTATUS[0]}" -ne 0) ]]; then echo "ERROR: failed to execute validation suite" | tee -a "$TEST_RESULTS" fi ./cryptest.exe tv all 2>&1 | tee -a "$TEST_RESULTS" - if [[ ("${PIPESTATUS[0]}" -ne "0") ]]; then + if [[ ("${PIPESTATUS[0]}" -ne 0) ]]; then echo "ERROR: failed to execute test vectors" | tee -a "$TEST_RESULTS" fi fi @@ -3471,15 +3471,15 @@ if true; then CXXFLAGS="$DEBUG_CXXFLAGS -DNO_OS_DEPENDENCE $USER_CXXFLAGS" CXX="$CXX" CXXFLAGS="$CXXFLAGS" "$MAKE" "${MAKEARGS[@]}" static dynamic cryptest.exe 2>&1 | tee -a "$TEST_RESULTS" - if [[ ("${PIPESTATUS[0]}" -ne "0") ]]; then + if [[ ("${PIPESTATUS[0]}" -ne 0) ]]; then echo "ERROR: failed to make cryptest.exe" | tee -a "$TEST_RESULTS" else ./cryptest.exe v 2>&1 | tee -a "$TEST_RESULTS" - if [[ ("${PIPESTATUS[0]}" -ne "0") ]]; then + if [[ ("${PIPESTATUS[0]}" -ne 0) ]]; then echo "ERROR: failed to execute validation suite" | tee -a "$TEST_RESULTS" fi ./cryptest.exe tv all 2>&1 | tee -a "$TEST_RESULTS" - if [[ ("${PIPESTATUS[0]}" -ne "0") ]]; then + if [[ ("${PIPESTATUS[0]}" -ne 0) ]]; then echo "ERROR: failed to execute test vectors" | tee -a "$TEST_RESULTS" fi fi @@ -3499,15 +3499,15 @@ if true; then CXXFLAGS="$RELEASE_CXXFLAGS -DNO_OS_DEPENDENCE $USER_CXXFLAGS" CXX="$CXX" CXXFLAGS="$CXXFLAGS" "$MAKE" "${MAKEARGS[@]}" static dynamic cryptest.exe 2>&1 | tee -a "$TEST_RESULTS" - if [[ ("${PIPESTATUS[0]}" -ne "0") ]]; then + if [[ ("${PIPESTATUS[0]}" -ne 0) ]]; then echo "ERROR: failed to make cryptest.exe" | tee -a "$TEST_RESULTS" else ./cryptest.exe v 2>&1 | tee -a "$TEST_RESULTS" - if [[ ("${PIPESTATUS[0]}" -ne "0") ]]; then + if [[ ("${PIPESTATUS[0]}" -ne 0) ]]; then echo "ERROR: failed to execute validation suite" | tee -a "$TEST_RESULTS" fi ./cryptest.exe tv all 2>&1 | tee -a "$TEST_RESULTS" - if [[ ("${PIPESTATUS[0]}" -ne "0") ]]; then + if [[ ("${PIPESTATUS[0]}" -ne 0) ]]; then echo "ERROR: failed to execute test vectors" | tee -a "$TEST_RESULTS" fi fi @@ -3515,7 +3515,7 @@ fi ############################################ # Build with LD-Gold -if [[ "$HAVE_LDGOLD" -ne "0" ]]; then +if [[ "$HAVE_LDGOLD" -ne 0 ]]; then ############################################ # Debug build @@ -3532,15 +3532,15 @@ if [[ "$HAVE_LDGOLD" -ne "0" ]]; then CXXFLAGS="$DEBUG_CXXFLAGS $USER_CXXFLAGS" CXX="$CXX" CXXFLAGS="$CXXFLAGS" LD="ld.gold" "$MAKE" "${MAKEARGS[@]}" static dynamic cryptest.exe 2>&1 | tee -a "$TEST_RESULTS" - if [[ ("${PIPESTATUS[0]}" -ne "0") ]]; then + if [[ ("${PIPESTATUS[0]}" -ne 0) ]]; then echo "ERROR: failed to make cryptest.exe" | tee -a "$TEST_RESULTS" else ./cryptest.exe v 2>&1 | tee -a "$TEST_RESULTS" - if [[ ("${PIPESTATUS[0]}" -ne "0") ]]; then + if [[ ("${PIPESTATUS[0]}" -ne 0) ]]; then echo "ERROR: failed to execute validation suite" | tee -a "$TEST_RESULTS" fi ./cryptest.exe tv all 2>&1 | tee -a "$TEST_RESULTS" - if [[ ("${PIPESTATUS[0]}" -ne "0") ]]; then + if [[ ("${PIPESTATUS[0]}" -ne 0) ]]; then echo "ERROR: failed to execute test vectors" | tee -a "$TEST_RESULTS" fi fi @@ -3560,15 +3560,15 @@ if [[ "$HAVE_LDGOLD" -ne "0" ]]; then CXXFLAGS="$RELEASE_CXXFLAGS $USER_CXXFLAGS" CXX="$CXX" CXXFLAGS="$CXXFLAGS" LD="ld.gold" "$MAKE" "${MAKEARGS[@]}" static dynamic cryptest.exe 2>&1 | tee -a "$TEST_RESULTS" - if [[ ("${PIPESTATUS[0]}" -ne "0") ]]; then + if [[ ("${PIPESTATUS[0]}" -ne 0) ]]; then echo "ERROR: failed to make cryptest.exe" | tee -a "$TEST_RESULTS" else ./cryptest.exe v 2>&1 | tee -a "$TEST_RESULTS" - if [[ ("${PIPESTATUS[0]}" -ne "0") ]]; then + if [[ ("${PIPESTATUS[0]}" -ne 0) ]]; then echo "ERROR: failed to execute validation suite" | tee -a "$TEST_RESULTS" fi ./cryptest.exe tv all 2>&1 | tee -a "$TEST_RESULTS" - if [[ ("${PIPESTATUS[0]}" -ne "0") ]]; then + if [[ ("${PIPESTATUS[0]}" -ne 0) ]]; then echo "ERROR: failed to execute test vectors" | tee -a "$TEST_RESULTS" fi fi @@ -3576,7 +3576,7 @@ fi ############################################ # Build at -O2 -if [[ "$HAVE_O2" -ne "0" ]]; then +if [[ "$HAVE_O2" -ne 0 ]]; then ############################################ # Debug build @@ -3593,15 +3593,15 @@ if [[ "$HAVE_O2" -ne "0" ]]; then CXXFLAGS="-DDEBUG $OPT_O2 $USER_CXXFLAGS" CXX="$CXX" CXXFLAGS="$CXXFLAGS" "$MAKE" "${MAKEARGS[@]}" static dynamic cryptest.exe 2>&1 | tee -a "$TEST_RESULTS" - if [[ ("${PIPESTATUS[0]}" -ne "0") ]]; then + if [[ ("${PIPESTATUS[0]}" -ne 0) ]]; then echo "ERROR: failed to make cryptest.exe" | tee -a "$TEST_RESULTS" else ./cryptest.exe v 2>&1 | tee -a "$TEST_RESULTS" - if [[ ("${PIPESTATUS[0]}" -ne "0") ]]; then + if [[ ("${PIPESTATUS[0]}" -ne 0) ]]; then echo "ERROR: failed to execute validation suite" | tee -a "$TEST_RESULTS" fi ./cryptest.exe tv all 2>&1 | tee -a "$TEST_RESULTS" - if [[ ("${PIPESTATUS[0]}" -ne "0") ]]; then + if [[ ("${PIPESTATUS[0]}" -ne 0) ]]; then echo "ERROR: failed to execute test vectors" | tee -a "$TEST_RESULTS" fi fi @@ -3621,15 +3621,15 @@ if [[ "$HAVE_O2" -ne "0" ]]; then CXXFLAGS="-DNDEBUG $OPT_O2 $USER_CXXFLAGS" CXX="$CXX" CXXFLAGS="$CXXFLAGS" "$MAKE" "${MAKEARGS[@]}" static dynamic cryptest.exe 2>&1 | tee -a "$TEST_RESULTS" - if [[ ("${PIPESTATUS[0]}" -ne "0") ]]; then + if [[ ("${PIPESTATUS[0]}" -ne 0) ]]; then echo "ERROR: failed to make cryptest.exe" | tee -a "$TEST_RESULTS" else ./cryptest.exe v 2>&1 | tee -a "$TEST_RESULTS" - if [[ ("${PIPESTATUS[0]}" -ne "0") ]]; then + if [[ ("${PIPESTATUS[0]}" -ne 0) ]]; then echo "ERROR: failed to execute validation suite" | tee -a "$TEST_RESULTS" fi ./cryptest.exe tv all 2>&1 | tee -a "$TEST_RESULTS" - if [[ ("${PIPESTATUS[0]}" -ne "0") ]]; then + if [[ ("${PIPESTATUS[0]}" -ne 0) ]]; then echo "ERROR: failed to execute test vectors" | tee -a "$TEST_RESULTS" fi fi @@ -3637,7 +3637,7 @@ fi ############################################ # Build at -O3 -if [[ "$HAVE_O3" -ne "0" ]]; then +if [[ "$HAVE_O3" -ne 0 ]]; then ############################################ # Debug build @@ -3654,15 +3654,15 @@ if [[ "$HAVE_O3" -ne "0" ]]; then CXXFLAGS="-DDEBUG $OPT_O3 $USER_CXXFLAGS" CXX="$CXX" CXXFLAGS="$CXXFLAGS" "$MAKE" "${MAKEARGS[@]}" static dynamic cryptest.exe 2>&1 | tee -a "$TEST_RESULTS" - if [[ ("${PIPESTATUS[0]}" -ne "0") ]]; then + if [[ ("${PIPESTATUS[0]}" -ne 0) ]]; then echo "ERROR: failed to make cryptest.exe" | tee -a "$TEST_RESULTS" else ./cryptest.exe v 2>&1 | tee -a "$TEST_RESULTS" - if [[ ("${PIPESTATUS[0]}" -ne "0") ]]; then + if [[ ("${PIPESTATUS[0]}" -ne 0) ]]; then echo "ERROR: failed to execute validation suite" | tee -a "$TEST_RESULTS" fi ./cryptest.exe tv all 2>&1 | tee -a "$TEST_RESULTS" - if [[ ("${PIPESTATUS[0]}" -ne "0") ]]; then + if [[ ("${PIPESTATUS[0]}" -ne 0) ]]; then echo "ERROR: failed to execute test vectors" | tee -a "$TEST_RESULTS" fi fi @@ -3682,15 +3682,15 @@ if [[ "$HAVE_O3" -ne "0" ]]; then CXXFLAGS="-DNDEBUG $OPT_O3 $USER_CXXFLAGS" CXX="$CXX" CXXFLAGS="$CXXFLAGS" "$MAKE" "${MAKEARGS[@]}" static dynamic cryptest.exe 2>&1 | tee -a "$TEST_RESULTS" - if [[ ("${PIPESTATUS[0]}" -ne "0") ]]; then + if [[ ("${PIPESTATUS[0]}" -ne 0) ]]; then echo "ERROR: failed to make cryptest.exe" | tee -a "$TEST_RESULTS" else ./cryptest.exe v 2>&1 | tee -a "$TEST_RESULTS" - if [[ ("${PIPESTATUS[0]}" -ne "0") ]]; then + if [[ ("${PIPESTATUS[0]}" -ne 0) ]]; then echo "ERROR: failed to execute validation suite" | tee -a "$TEST_RESULTS" fi ./cryptest.exe tv all 2>&1 | tee -a "$TEST_RESULTS" - if [[ ("${PIPESTATUS[0]}" -ne "0") ]]; then + if [[ ("${PIPESTATUS[0]}" -ne 0) ]]; then echo "ERROR: failed to execute test vectors" | tee -a "$TEST_RESULTS" fi fi @@ -3698,7 +3698,7 @@ fi ############################################ # Build at -O5 -if [[ "$HAVE_O5" -ne "0" ]]; then +if [[ "$HAVE_O5" -ne 0 ]]; then ############################################ # Debug build @@ -3715,15 +3715,15 @@ if [[ "$HAVE_O5" -ne "0" ]]; then CXXFLAGS="-DDEBUG $OPT_O5 $USER_CXXFLAGS" CXX="$CXX" CXXFLAGS="$CXXFLAGS" "$MAKE" "${MAKEARGS[@]}" static dynamic cryptest.exe 2>&1 | tee -a "$TEST_RESULTS" - if [[ ("${PIPESTATUS[0]}" -ne "0") ]]; then + if [[ ("${PIPESTATUS[0]}" -ne 0) ]]; then echo "ERROR: failed to make cryptest.exe" | tee -a "$TEST_RESULTS" else ./cryptest.exe v 2>&1 | tee -a "$TEST_RESULTS" - if [[ ("${PIPESTATUS[0]}" -ne "0") ]]; then + if [[ ("${PIPESTATUS[0]}" -ne 0) ]]; then echo "ERROR: failed to execute validation suite" | tee -a "$TEST_RESULTS" fi ./cryptest.exe tv all 2>&1 | tee -a "$TEST_RESULTS" - if [[ ("${PIPESTATUS[0]}" -ne "0") ]]; then + if [[ ("${PIPESTATUS[0]}" -ne 0) ]]; then echo "ERROR: failed to execute test vectors" | tee -a "$TEST_RESULTS" fi fi @@ -3743,15 +3743,15 @@ if [[ "$HAVE_O5" -ne "0" ]]; then CXXFLAGS="-DNDEBUG $OPT_O5 $USER_CXXFLAGS" CXX="$CXX" CXXFLAGS="$CXXFLAGS" "$MAKE" "${MAKEARGS[@]}" static dynamic cryptest.exe 2>&1 | tee -a "$TEST_RESULTS" - if [[ ("${PIPESTATUS[0]}" -ne "0") ]]; then + if [[ ("${PIPESTATUS[0]}" -ne 0) ]]; then echo "ERROR: failed to make cryptest.exe" | tee -a "$TEST_RESULTS" else ./cryptest.exe v 2>&1 | tee -a "$TEST_RESULTS" - if [[ ("${PIPESTATUS[0]}" -ne "0") ]]; then + if [[ ("${PIPESTATUS[0]}" -ne 0) ]]; then echo "ERROR: failed to execute validation suite" | tee -a "$TEST_RESULTS" fi ./cryptest.exe tv all 2>&1 | tee -a "$TEST_RESULTS" - if [[ ("${PIPESTATUS[0]}" -ne "0") ]]; then + if [[ ("${PIPESTATUS[0]}" -ne 0) ]]; then echo "ERROR: failed to execute test vectors" | tee -a "$TEST_RESULTS" fi fi @@ -3759,7 +3759,7 @@ fi ############################################ # Build at -Os -if [[ "$HAVE_OS" -ne "0" ]]; then +if [[ "$HAVE_OS" -ne 0 ]]; then ############################################ # Debug build @@ -3776,15 +3776,15 @@ if [[ "$HAVE_OS" -ne "0" ]]; then CXXFLAGS="-DDEBUG $OPT_OS $USER_CXXFLAGS" CXX="$CXX" CXXFLAGS="$CXXFLAGS" "$MAKE" "${MAKEARGS[@]}" static dynamic cryptest.exe 2>&1 | tee -a "$TEST_RESULTS" - if [[ ("${PIPESTATUS[0]}" -ne "0") ]]; then + if [[ ("${PIPESTATUS[0]}" -ne 0) ]]; then echo "ERROR: failed to make cryptest.exe" | tee -a "$TEST_RESULTS" else ./cryptest.exe v 2>&1 | tee -a "$TEST_RESULTS" - if [[ ("${PIPESTATUS[0]}" -ne "0") ]]; then + if [[ ("${PIPESTATUS[0]}" -ne 0) ]]; then echo "ERROR: failed to execute validation suite" | tee -a "$TEST_RESULTS" fi ./cryptest.exe tv all 2>&1 | tee -a "$TEST_RESULTS" - if [[ ("${PIPESTATUS[0]}" -ne "0") ]]; then + if [[ ("${PIPESTATUS[0]}" -ne 0) ]]; then echo "ERROR: failed to execute test vectors" | tee -a "$TEST_RESULTS" fi fi @@ -3804,15 +3804,15 @@ if [[ "$HAVE_OS" -ne "0" ]]; then CXXFLAGS="-DNDEBUG $OPT_OS $USER_CXXFLAGS" CXX="$CXX" CXXFLAGS="$CXXFLAGS" "$MAKE" "${MAKEARGS[@]}" static dynamic cryptest.exe 2>&1 | tee -a "$TEST_RESULTS" - if [[ ("${PIPESTATUS[0]}" -ne "0") ]]; then + if [[ ("${PIPESTATUS[0]}" -ne 0) ]]; then echo "ERROR: failed to make cryptest.exe" | tee -a "$TEST_RESULTS" else ./cryptest.exe v 2>&1 | tee -a "$TEST_RESULTS" - if [[ ("${PIPESTATUS[0]}" -ne "0") ]]; then + if [[ ("${PIPESTATUS[0]}" -ne 0) ]]; then echo "ERROR: failed to execute validation suite" | tee -a "$TEST_RESULTS" fi ./cryptest.exe tv all 2>&1 | tee -a "$TEST_RESULTS" - if [[ ("${PIPESTATUS[0]}" -ne "0") ]]; then + if [[ ("${PIPESTATUS[0]}" -ne 0) ]]; then echo "ERROR: failed to execute test vectors" | tee -a "$TEST_RESULTS" fi fi @@ -3820,7 +3820,7 @@ fi ############################################ # Build at -Ofast -if [[ "$HAVE_OFAST" -ne "0" ]]; then +if [[ "$HAVE_OFAST" -ne 0 ]]; then ############################################ # Debug build @@ -3837,15 +3837,15 @@ if [[ "$HAVE_OFAST" -ne "0" ]]; then CXXFLAGS="-DDEBUG $OPT_OFAST $USER_CXXFLAGS" CXX="$CXX" CXXFLAGS="$CXXFLAGS" "$MAKE" "${MAKEARGS[@]}" static dynamic cryptest.exe 2>&1 | tee -a "$TEST_RESULTS" - if [[ ("${PIPESTATUS[0]}" -ne "0") ]]; then + if [[ ("${PIPESTATUS[0]}" -ne 0) ]]; then echo "ERROR: failed to make cryptest.exe" | tee -a "$TEST_RESULTS" else ./cryptest.exe v 2>&1 | tee -a "$TEST_RESULTS" - if [[ ("${PIPESTATUS[0]}" -ne "0") ]]; then + if [[ ("${PIPESTATUS[0]}" -ne 0) ]]; then echo "ERROR: failed to execute validation suite" | tee -a "$TEST_RESULTS" fi ./cryptest.exe tv all 2>&1 | tee -a "$TEST_RESULTS" - if [[ ("${PIPESTATUS[0]}" -ne "0") ]]; then + if [[ ("${PIPESTATUS[0]}" -ne 0) ]]; then echo "ERROR: failed to execute test vectors" | tee -a "$TEST_RESULTS" fi fi @@ -3865,15 +3865,15 @@ if [[ "$HAVE_OFAST" -ne "0" ]]; then CXXFLAGS="-DNDEBUG $OPT_OFAST $USER_CXXFLAGS" CXX="$CXX" CXXFLAGS="$CXXFLAGS" "$MAKE" "${MAKEARGS[@]}" static dynamic cryptest.exe 2>&1 | tee -a "$TEST_RESULTS" - if [[ ("${PIPESTATUS[0]}" -ne "0") ]]; then + if [[ ("${PIPESTATUS[0]}" -ne 0) ]]; then echo "ERROR: failed to make cryptest.exe" | tee -a "$TEST_RESULTS" else ./cryptest.exe v 2>&1 | tee -a "$TEST_RESULTS" - if [[ ("${PIPESTATUS[0]}" -ne "0") ]]; then + if [[ ("${PIPESTATUS[0]}" -ne 0) ]]; then echo "ERROR: failed to execute validation suite" | tee -a "$TEST_RESULTS" fi ./cryptest.exe tv all 2>&1 | tee -a "$TEST_RESULTS" - if [[ ("${PIPESTATUS[0]}" -ne "0") ]]; then + if [[ ("${PIPESTATUS[0]}" -ne 0) ]]; then echo "ERROR: failed to execute test vectors" | tee -a "$TEST_RESULTS" fi fi @@ -3881,7 +3881,7 @@ fi ############################################ # Dead code stripping -if [[ ("$GNU_LINKER" -eq "1") ]]; then +if [[ ("$GNU_LINKER" -eq 1) ]]; then ############################################ # Debug build @@ -3898,15 +3898,15 @@ if [[ ("$GNU_LINKER" -eq "1") ]]; then CXXFLAGS="$DEBUG_CXXFLAGS $USER_CXXFLAGS" CXX="$CXX" CXXFLAGS="$CXXFLAGS" "$MAKE" "${MAKEARGS[@]}" lean 2>&1 | tee -a "$TEST_RESULTS" - if [[ ("${PIPESTATUS[0]}" -ne "0") ]]; then + if [[ ("${PIPESTATUS[0]}" -ne 0) ]]; then echo "ERROR: failed to make cryptest.exe" | tee -a "$TEST_RESULTS" else ./cryptest.exe v 2>&1 | tee -a "$TEST_RESULTS" - if [[ ("${PIPESTATUS[0]}" -ne "0") ]]; then + if [[ ("${PIPESTATUS[0]}" -ne 0) ]]; then echo "ERROR: failed to execute validation suite" | tee -a "$TEST_RESULTS" fi ./cryptest.exe tv all 2>&1 | tee -a "$TEST_RESULTS" - if [[ ("${PIPESTATUS[0]}" -ne "0") ]]; then + if [[ ("${PIPESTATUS[0]}" -ne 0) ]]; then echo "ERROR: failed to execute test vectors" | tee -a "$TEST_RESULTS" fi fi @@ -3926,15 +3926,15 @@ if [[ ("$GNU_LINKER" -eq "1") ]]; then CXXFLAGS="$RELEASE_CXXFLAGS $USER_CXXFLAGS" CXX="$CXX" CXXFLAGS="$CXXFLAGS" "$MAKE" "${MAKEARGS[@]}" lean 2>&1 | tee -a "$TEST_RESULTS" - if [[ ("${PIPESTATUS[0]}" -ne "0") ]]; then + if [[ ("${PIPESTATUS[0]}" -ne 0) ]]; then echo "ERROR: failed to make cryptest.exe" | tee -a "$TEST_RESULTS" else ./cryptest.exe v 2>&1 | tee -a "$TEST_RESULTS" - if [[ ("${PIPESTATUS[0]}" -ne "0") ]]; then + if [[ ("${PIPESTATUS[0]}" -ne 0) ]]; then echo "ERROR: failed to execute validation suite" | tee -a "$TEST_RESULTS" fi ./cryptest.exe tv all 2>&1 | tee -a "$TEST_RESULTS" - if [[ ("${PIPESTATUS[0]}" -ne "0") ]]; then + if [[ ("${PIPESTATUS[0]}" -ne 0) ]]; then echo "ERROR: failed to execute test vectors" | tee -a "$TEST_RESULTS" fi fi @@ -3942,7 +3942,7 @@ fi ############################################ # OpenMP -if [[ ("$HAVE_OMP" -ne "0") ]]; then +if [[ ("$HAVE_OMP" -ne 0) ]]; then ############################################ # Debug build @@ -3959,15 +3959,15 @@ if [[ ("$HAVE_OMP" -ne "0") ]]; then CXXFLAGS="-DDEBUG ${OMP_FLAGS[*]} $USER_CXXFLAGS" CXX="$CXX" CXXFLAGS="$CXXFLAGS" "$MAKE" "${MAKEARGS[@]}" | tee -a "$TEST_RESULTS" - if [[ ("${PIPESTATUS[0]}" -ne "0") ]]; then + if [[ ("${PIPESTATUS[0]}" -ne 0) ]]; then echo "ERROR: failed to make cryptest.exe" | tee -a "$TEST_RESULTS" else ./cryptest.exe v 2>&1 | tee -a "$TEST_RESULTS" - if [[ ("${PIPESTATUS[0]}" -ne "0") ]]; then + if [[ ("${PIPESTATUS[0]}" -ne 0) ]]; then echo "ERROR: failed to execute validation suite" | tee -a "$TEST_RESULTS" fi ./cryptest.exe tv all 2>&1 | tee -a "$TEST_RESULTS" - if [[ ("${PIPESTATUS[0]}" -ne "0") ]]; then + if [[ ("${PIPESTATUS[0]}" -ne 0) ]]; then echo "ERROR: failed to execute test vectors" | tee -a "$TEST_RESULTS" fi fi @@ -3987,15 +3987,15 @@ if [[ ("$HAVE_OMP" -ne "0") ]]; then CXXFLAGS="-DNDEBUG ${OMP_FLAGS[*]} $USER_CXXFLAGS" CXX="$CXX" CXXFLAGS="$CXXFLAGS" "$MAKE" "${MAKEARGS[@]}" | tee -a "$TEST_RESULTS" - if [[ ("${PIPESTATUS[0]}" -ne "0") ]]; then + if [[ ("${PIPESTATUS[0]}" -ne 0) ]]; then echo "ERROR: failed to make cryptest.exe" | tee -a "$TEST_RESULTS" else ./cryptest.exe v 2>&1 | tee -a "$TEST_RESULTS" - if [[ ("${PIPESTATUS[0]}" -ne "0") ]]; then + if [[ ("${PIPESTATUS[0]}" -ne 0) ]]; then echo "ERROR: failed to execute validation suite" | tee -a "$TEST_RESULTS" fi ./cryptest.exe tv all 2>&1 | tee -a "$TEST_RESULTS" - if [[ ("${PIPESTATUS[0]}" -ne "0") ]]; then + if [[ ("${PIPESTATUS[0]}" -ne 0) ]]; then echo "ERROR: failed to execute test vectors" | tee -a "$TEST_RESULTS" fi fi @@ -4003,7 +4003,7 @@ fi ############################################ # UBSan, c++03 -if [[ ("$HAVE_CXX03" -ne "0" && "$HAVE_UBSAN" -ne "0") ]]; then +if [[ ("$HAVE_CXX03" -ne 0 && "$HAVE_UBSAN" -ne 0) ]]; then ############################################ # Debug build, UBSan, c++03 @@ -4020,15 +4020,15 @@ if [[ ("$HAVE_CXX03" -ne "0" && "$HAVE_UBSAN" -ne "0") ]]; then CXXFLAGS="$DEBUG_CXXFLAGS -std=c++03 $USER_CXXFLAGS" CXX="$CXX" CXXFLAGS="$CXXFLAGS" "$MAKE" "${MAKEARGS[@]}" ubsan | tee -a "$TEST_RESULTS" - if [[ ("${PIPESTATUS[0]}" -ne "0") ]]; then + if [[ ("${PIPESTATUS[0]}" -ne 0) ]]; then echo "ERROR: failed to make cryptest.exe" | tee -a "$TEST_RESULTS" else ./cryptest.exe v 2>&1 | tee -a "$TEST_RESULTS" - if [[ ("${PIPESTATUS[0]}" -ne "0") ]]; then + if [[ ("${PIPESTATUS[0]}" -ne 0) ]]; then echo "ERROR: failed to execute validation suite" | tee -a "$TEST_RESULTS" fi ./cryptest.exe tv all 2>&1 | tee -a "$TEST_RESULTS" - if [[ ("${PIPESTATUS[0]}" -ne "0") ]]; then + if [[ ("${PIPESTATUS[0]}" -ne 0) ]]; then echo "ERROR: failed to execute test vectors" | tee -a "$TEST_RESULTS" fi fi @@ -4048,15 +4048,15 @@ if [[ ("$HAVE_CXX03" -ne "0" && "$HAVE_UBSAN" -ne "0") ]]; then CXXFLAGS="$RELEASE_CXXFLAGS -std=c++03 $USER_CXXFLAGS" CXX="$CXX" CXXFLAGS="$CXXFLAGS" "$MAKE" "${MAKEARGS[@]}" ubsan | tee -a "$TEST_RESULTS" - if [[ ("${PIPESTATUS[0]}" -ne "0") ]]; then + if [[ ("${PIPESTATUS[0]}" -ne 0) ]]; then echo "ERROR: failed to make cryptest.exe" | tee -a "$TEST_RESULTS" else ./cryptest.exe v 2>&1 | tee -a "$TEST_RESULTS" - if [[ ("${PIPESTATUS[0]}" -ne "0") ]]; then + if [[ ("${PIPESTATUS[0]}" -ne 0) ]]; then echo "ERROR: failed to execute validation suite" | tee -a "$TEST_RESULTS" fi ./cryptest.exe tv all 2>&1 | tee -a "$TEST_RESULTS" - if [[ ("${PIPESTATUS[0]}" -ne "0") ]]; then + if [[ ("${PIPESTATUS[0]}" -ne 0) ]]; then echo "ERROR: failed to execute test vectors" | tee -a "$TEST_RESULTS" fi fi @@ -4064,7 +4064,7 @@ fi ############################################ # Asan, c++03 -if [[ ("$HAVE_CXX03" -ne "0" && "$HAVE_ASAN" -ne "0") ]]; then +if [[ ("$HAVE_CXX03" -ne 0 && "$HAVE_ASAN" -ne 0) ]]; then ############################################ # Debug build, Asan, c++03 @@ -4081,25 +4081,25 @@ if [[ ("$HAVE_CXX03" -ne "0" && "$HAVE_ASAN" -ne "0") ]]; then CXXFLAGS="$DEBUG_CXXFLAGS -std=c++03 $USER_CXXFLAGS" CXX="$CXX" CXXFLAGS="$CXXFLAGS" "$MAKE" "${MAKEARGS[@]}" asan | tee -a "$TEST_RESULTS" - if [[ ("${PIPESTATUS[0]}" -ne "0") ]]; then + if [[ ("${PIPESTATUS[0]}" -ne 0) ]]; then echo "ERROR: failed to make cryptest.exe" | tee -a "$TEST_RESULTS" else - if [[ ("$HAVE_SYMBOLIZE" -ne "0") ]]; then + if [[ ("$HAVE_SYMBOLIZE" -ne 0) ]]; then ./cryptest.exe v 2>&1 | "$ASAN_SYMBOLIZE" 2>&1 | tee -a "$TEST_RESULTS" - if [[ ("${PIPESTATUS[0]}" -ne "0") ]]; then + if [[ ("${PIPESTATUS[0]}" -ne 0) ]]; then echo "ERROR: failed to execute validation suite" | tee -a "$TEST_RESULTS" fi ./cryptest.exe tv all 2>&1 | "$ASAN_SYMBOLIZE" 2>&1 | tee -a "$TEST_RESULTS" - if [[ ("${PIPESTATUS[0]}" -ne "0") ]]; then + if [[ ("${PIPESTATUS[0]}" -ne 0) ]]; then echo "ERROR: failed to execute test vectors" | tee -a "$TEST_RESULTS" fi else ./cryptest.exe v 2>&1 | tee -a "$TEST_RESULTS" - if [[ ("${PIPESTATUS[0]}" -ne "0") ]]; then + if [[ ("${PIPESTATUS[0]}" -ne 0) ]]; then echo "ERROR: failed to execute validation suite" | tee -a "$TEST_RESULTS" fi ./cryptest.exe tv all 2>&1 | tee -a "$TEST_RESULTS" - if [[ ("${PIPESTATUS[0]}" -ne "0") ]]; then + if [[ ("${PIPESTATUS[0]}" -ne 0) ]]; then echo "ERROR: failed to execute test vectors" | tee -a "$TEST_RESULTS" fi fi @@ -4121,25 +4121,25 @@ if [[ ("$HAVE_CXX03" -ne "0" && "$HAVE_ASAN" -ne "0") ]]; then CXXFLAGS="$RELEASE_CXXFLAGS -std=c++03 $USER_CXXFLAGS" CXX="$CXX" CXXFLAGS="$CXXFLAGS" "$MAKE" "${MAKEARGS[@]}" asan | tee -a "$TEST_RESULTS" - if [[ ("${PIPESTATUS[0]}" -ne "0") ]]; then + if [[ ("${PIPESTATUS[0]}" -ne 0) ]]; then echo "ERROR: failed to make cryptest.exe" | tee -a "$TEST_RESULTS" else - if [[ ("$HAVE_SYMBOLIZE" -ne "0") ]]; then + if [[ ("$HAVE_SYMBOLIZE" -ne 0) ]]; then ./cryptest.exe v 2>&1 | "$ASAN_SYMBOLIZE" 2>&1 | tee -a "$TEST_RESULTS" - if [[ ("${PIPESTATUS[0]}" -ne "0") ]]; then + if [[ ("${PIPESTATUS[0]}" -ne 0) ]]; then echo "ERROR: failed to execute validation suite" | tee -a "$TEST_RESULTS" fi ./cryptest.exe tv all 2>&1 | "$ASAN_SYMBOLIZE" 2>&1 | tee -a "$TEST_RESULTS" - if [[ ("${PIPESTATUS[0]}" -ne "0") ]]; then + if [[ ("${PIPESTATUS[0]}" -ne 0) ]]; then echo "ERROR: failed to execute test vectors" | tee -a "$TEST_RESULTS" fi else ./cryptest.exe v 2>&1 | tee -a "$TEST_RESULTS" - if [[ ("${PIPESTATUS[0]}" -ne "0") ]]; then + if [[ ("${PIPESTATUS[0]}" -ne 0) ]]; then echo "ERROR: failed to execute validation suite" | tee -a "$TEST_RESULTS" fi ./cryptest.exe tv all 2>&1 | tee -a "$TEST_RESULTS" - if [[ ("${PIPESTATUS[0]}" -ne "0") ]]; then + if [[ ("${PIPESTATUS[0]}" -ne 0) ]]; then echo "ERROR: failed to execute test vectors" | tee -a "$TEST_RESULTS" fi fi @@ -4148,7 +4148,7 @@ fi ############################################ # Bounds Sanitizer, c++03 -if [[ ("$HAVE_CXX03" -ne "0" && "$HAVE_BSAN" -ne "0") ]]; then +if [[ ("$HAVE_CXX03" -ne 0 && "$HAVE_BSAN" -ne 0) ]]; then ############################################ # Debug build, Bounds Sanitizer, c++03 @@ -4165,25 +4165,25 @@ if [[ ("$HAVE_CXX03" -ne "0" && "$HAVE_BSAN" -ne "0") ]]; then CXXFLAGS="$DEBUG_CXXFLAGS -std=c++03 -fsanitize=bounds-strict $USER_CXXFLAGS" CXX="$CXX" CXXFLAGS="$CXXFLAGS" "$MAKE" "${MAKEARGS[@]}" | tee -a "$TEST_RESULTS" - if [[ ("${PIPESTATUS[0]}" -ne "0") ]]; then + if [[ ("${PIPESTATUS[0]}" -ne 0) ]]; then echo "ERROR: failed to make cryptest.exe" | tee -a "$TEST_RESULTS" else - if [[ ("$HAVE_SYMBOLIZE" -ne "0") ]]; then + if [[ ("$HAVE_SYMBOLIZE" -ne 0) ]]; then ./cryptest.exe v 2>&1 | "$ASAN_SYMBOLIZE" 2>&1 | tee -a "$TEST_RESULTS" - if [[ ("${PIPESTATUS[0]}" -ne "0") ]]; then + if [[ ("${PIPESTATUS[0]}" -ne 0) ]]; then echo "ERROR: failed to execute validation suite" | tee -a "$TEST_RESULTS" fi ./cryptest.exe tv all 2>&1 | "$ASAN_SYMBOLIZE" 2>&1 | tee -a "$TEST_RESULTS" - if [[ ("${PIPESTATUS[0]}" -ne "0") ]]; then + if [[ ("${PIPESTATUS[0]}" -ne 0) ]]; then echo "ERROR: failed to execute test vectors" | tee -a "$TEST_RESULTS" fi else ./cryptest.exe v 2>&1 | tee -a "$TEST_RESULTS" - if [[ ("${PIPESTATUS[0]}" -ne "0") ]]; then + if [[ ("${PIPESTATUS[0]}" -ne 0) ]]; then echo "ERROR: failed to execute validation suite" | tee -a "$TEST_RESULTS" fi ./cryptest.exe tv all 2>&1 | tee -a "$TEST_RESULTS" - if [[ ("${PIPESTATUS[0]}" -ne "0") ]]; then + if [[ ("${PIPESTATUS[0]}" -ne 0) ]]; then echo "ERROR: failed to execute test vectors" | tee -a "$TEST_RESULTS" fi fi @@ -4205,25 +4205,25 @@ if [[ ("$HAVE_CXX03" -ne "0" && "$HAVE_BSAN" -ne "0") ]]; then CXXFLAGS="$RELEASE_CXXFLAGS -std=c++03 -fsanitize=bounds-strict $USER_CXXFLAGS" CXX="$CXX" CXXFLAGS="$CXXFLAGS" "$MAKE" "${MAKEARGS[@]}" | tee -a "$TEST_RESULTS" - if [[ ("${PIPESTATUS[0]}" -ne "0") ]]; then + if [[ ("${PIPESTATUS[0]}" -ne 0) ]]; then echo "ERROR: failed to make cryptest.exe" | tee -a "$TEST_RESULTS" else - if [[ ("$HAVE_SYMBOLIZE" -ne "0") ]]; then + if [[ ("$HAVE_SYMBOLIZE" -ne 0) ]]; then ./cryptest.exe v 2>&1 | "$ASAN_SYMBOLIZE" 2>&1 | tee -a "$TEST_RESULTS" - if [[ ("${PIPESTATUS[0]}" -ne "0") ]]; then + if [[ ("${PIPESTATUS[0]}" -ne 0) ]]; then echo "ERROR: failed to execute validation suite" | tee -a "$TEST_RESULTS" fi ./cryptest.exe tv all 2>&1 | "$ASAN_SYMBOLIZE" 2>&1 | tee -a "$TEST_RESULTS" - if [[ ("${PIPESTATUS[0]}" -ne "0") ]]; then + if [[ ("${PIPESTATUS[0]}" -ne 0) ]]; then echo "ERROR: failed to execute test vectors" | tee -a "$TEST_RESULTS" fi else ./cryptest.exe v 2>&1 | tee -a "$TEST_RESULTS" - if [[ ("${PIPESTATUS[0]}" -ne "0") ]]; then + if [[ ("${PIPESTATUS[0]}" -ne 0) ]]; then echo "ERROR: failed to execute validation suite" | tee -a "$TEST_RESULTS" fi ./cryptest.exe tv all 2>&1 | tee -a "$TEST_RESULTS" - if [[ ("${PIPESTATUS[0]}" -ne "0") ]]; then + if [[ ("${PIPESTATUS[0]}" -ne 0) ]]; then echo "ERROR: failed to execute test vectors" | tee -a "$TEST_RESULTS" fi fi @@ -4232,7 +4232,7 @@ fi ############################################ # Control-flow Enforcement Technology (CET), c++03 -if [[ ("$HAVE_CXX11" -ne "0" && "$HAVE_CET" -ne "0") ]]; then +if [[ ("$HAVE_CXX11" -ne 0 && "$HAVE_CET" -ne 0) ]]; then ############################################ # Debug build, CET, c++03 @@ -4249,15 +4249,15 @@ if [[ ("$HAVE_CXX11" -ne "0" && "$HAVE_CET" -ne "0") ]]; then CXXFLAGS="$DEBUG_CXXFLAGS -std=c++03 -fcf-protection=full -mcet $USER_CXXFLAGS" CXX="$CXX" CXXFLAGS="$CXXFLAGS" "$MAKE" "${MAKEARGS[@]}" | tee -a "$TEST_RESULTS" - if [[ ("${PIPESTATUS[0]}" -ne "0") ]]; then + if [[ ("${PIPESTATUS[0]}" -ne 0) ]]; then echo "ERROR: failed to make cryptest.exe" | tee -a "$TEST_RESULTS" else ./cryptest.exe v 2>&1 | tee -a "$TEST_RESULTS" - if [[ ("${PIPESTATUS[0]}" -ne "0") ]]; then + if [[ ("${PIPESTATUS[0]}" -ne 0) ]]; then echo "ERROR: failed to execute validation suite" | tee -a "$TEST_RESULTS" fi ./cryptest.exe tv all 2>&1 | tee -a "$TEST_RESULTS" - if [[ ("${PIPESTATUS[0]}" -ne "0") ]]; then + if [[ ("${PIPESTATUS[0]}" -ne 0) ]]; then echo "ERROR: failed to execute test vectors" | tee -a "$TEST_RESULTS" fi fi @@ -4277,15 +4277,15 @@ if [[ ("$HAVE_CXX11" -ne "0" && "$HAVE_CET" -ne "0") ]]; then CXXFLAGS="$RELEASE_CXXFLAGS -std=c++03 -fcf-protection=full -mcet $USER_CXXFLAGS" CXX="$CXX" CXXFLAGS="$CXXFLAGS" "$MAKE" "${MAKEARGS[@]}" | tee -a "$TEST_RESULTS" - if [[ ("${PIPESTATUS[0]}" -ne "0") ]]; then + if [[ ("${PIPESTATUS[0]}" -ne 0) ]]; then echo "ERROR: failed to make cryptest.exe" | tee -a "$TEST_RESULTS" else ./cryptest.exe v 2>&1 | tee -a "$TEST_RESULTS" - if [[ ("${PIPESTATUS[0]}" -ne "0") ]]; then + if [[ ("${PIPESTATUS[0]}" -ne 0) ]]; then echo "ERROR: failed to execute validation suite" | tee -a "$TEST_RESULTS" fi ./cryptest.exe tv all 2>&1 | tee -a "$TEST_RESULTS" - if [[ ("${PIPESTATUS[0]}" -ne "0") ]]; then + if [[ ("${PIPESTATUS[0]}" -ne 0) ]]; then echo "ERROR: failed to execute test vectors" | tee -a "$TEST_RESULTS" fi fi @@ -4293,7 +4293,7 @@ fi ############################################ # Specter, c++03 -if [[ ("$HAVE_CXX11" -ne "0" && "$HAVE_REPTOLINE" -ne "0") ]]; then +if [[ ("$HAVE_CXX11" -ne 0 && "$HAVE_REPTOLINE" -ne 0) ]]; then ############################################ # Debug build, Specter, c++03 @@ -4310,15 +4310,15 @@ if [[ ("$HAVE_CXX11" -ne "0" && "$HAVE_REPTOLINE" -ne "0") ]]; then CXXFLAGS="$DEBUG_CXXFLAGS -std=c++03 -mfunction-return=thunk -mindirect-branch=thunk $USER_CXXFLAGS" CXX="$CXX" CXXFLAGS="$CXXFLAGS" "$MAKE" "${MAKEARGS[@]}" | tee -a "$TEST_RESULTS" - if [[ ("${PIPESTATUS[0]}" -ne "0") ]]; then + if [[ ("${PIPESTATUS[0]}" -ne 0) ]]; then echo "ERROR: failed to make cryptest.exe" | tee -a "$TEST_RESULTS" else ./cryptest.exe v 2>&1 | tee -a "$TEST_RESULTS" - if [[ ("${PIPESTATUS[0]}" -ne "0") ]]; then + if [[ ("${PIPESTATUS[0]}" -ne 0) ]]; then echo "ERROR: failed to execute validation suite" | tee -a "$TEST_RESULTS" fi ./cryptest.exe tv all 2>&1 | tee -a "$TEST_RESULTS" - if [[ ("${PIPESTATUS[0]}" -ne "0") ]]; then + if [[ ("${PIPESTATUS[0]}" -ne 0) ]]; then echo "ERROR: failed to execute test vectors" | tee -a "$TEST_RESULTS" fi fi @@ -4338,15 +4338,15 @@ if [[ ("$HAVE_CXX11" -ne "0" && "$HAVE_REPTOLINE" -ne "0") ]]; then CXXFLAGS="$RELEASE_CXXFLAGS -std=c++03 -mfunction-return=thunk -mindirect-branch=thunk $USER_CXXFLAGS" CXX="$CXX" CXXFLAGS="$CXXFLAGS" "$MAKE" "${MAKEARGS[@]}" | tee -a "$TEST_RESULTS" - if [[ ("${PIPESTATUS[0]}" -ne "0") ]]; then + if [[ ("${PIPESTATUS[0]}" -ne 0) ]]; then echo "ERROR: failed to make cryptest.exe" | tee -a "$TEST_RESULTS" else ./cryptest.exe v 2>&1 | tee -a "$TEST_RESULTS" - if [[ ("${PIPESTATUS[0]}" -ne "0") ]]; then + if [[ ("${PIPESTATUS[0]}" -ne 0) ]]; then echo "ERROR: failed to execute validation suite" | tee -a "$TEST_RESULTS" fi ./cryptest.exe tv all 2>&1 | tee -a "$TEST_RESULTS" - if [[ ("${PIPESTATUS[0]}" -ne "0") ]]; then + if [[ ("${PIPESTATUS[0]}" -ne 0) ]]; then echo "ERROR: failed to execute test vectors" | tee -a "$TEST_RESULTS" fi fi @@ -4354,7 +4354,7 @@ fi ############################################ # UBSan, c++11 -if [[ ("$HAVE_CXX11" -ne "0" && "$HAVE_UBSAN" -ne "0") ]]; then +if [[ ("$HAVE_CXX11" -ne 0 && "$HAVE_UBSAN" -ne 0) ]]; then ############################################ # Debug build, UBSan, c++11 @@ -4371,15 +4371,15 @@ if [[ ("$HAVE_CXX11" -ne "0" && "$HAVE_UBSAN" -ne "0") ]]; then CXXFLAGS="$DEBUG_CXXFLAGS -std=c++11 $USER_CXXFLAGS" CXX="$CXX" CXXFLAGS="$CXXFLAGS" "$MAKE" "${MAKEARGS[@]}" ubsan | tee -a "$TEST_RESULTS" - if [[ ("${PIPESTATUS[0]}" -ne "0") ]]; then + if [[ ("${PIPESTATUS[0]}" -ne 0) ]]; then echo "ERROR: failed to make cryptest.exe" | tee -a "$TEST_RESULTS" else ./cryptest.exe v 2>&1 | tee -a "$TEST_RESULTS" - if [[ ("${PIPESTATUS[0]}" -ne "0") ]]; then + if [[ ("${PIPESTATUS[0]}" -ne 0) ]]; then echo "ERROR: failed to execute validation suite" | tee -a "$TEST_RESULTS" fi ./cryptest.exe tv all 2>&1 | tee -a "$TEST_RESULTS" - if [[ ("${PIPESTATUS[0]}" -ne "0") ]]; then + if [[ ("${PIPESTATUS[0]}" -ne 0) ]]; then echo "ERROR: failed to execute test vectors" | tee -a "$TEST_RESULTS" fi fi @@ -4399,15 +4399,15 @@ if [[ ("$HAVE_CXX11" -ne "0" && "$HAVE_UBSAN" -ne "0") ]]; then CXXFLAGS="$RELEASE_CXXFLAGS -std=c++11 $USER_CXXFLAGS" CXX="$CXX" CXXFLAGS="$CXXFLAGS" "$MAKE" "${MAKEARGS[@]}" ubsan | tee -a "$TEST_RESULTS" - if [[ ("${PIPESTATUS[0]}" -ne "0") ]]; then + if [[ ("${PIPESTATUS[0]}" -ne 0) ]]; then echo "ERROR: failed to make cryptest.exe" | tee -a "$TEST_RESULTS" else ./cryptest.exe v 2>&1 | tee -a "$TEST_RESULTS" - if [[ ("${PIPESTATUS[0]}" -ne "0") ]]; then + if [[ ("${PIPESTATUS[0]}" -ne 0) ]]; then echo "ERROR: failed to execute validation suite" | tee -a "$TEST_RESULTS" fi ./cryptest.exe tv all 2>&1 | tee -a "$TEST_RESULTS" - if [[ ("${PIPESTATUS[0]}" -ne "0") ]]; then + if [[ ("${PIPESTATUS[0]}" -ne 0) ]]; then echo "ERROR: failed to execute test vectors" | tee -a "$TEST_RESULTS" fi fi @@ -4415,7 +4415,7 @@ fi ############################################ # Asan, c++11 -if [[ ("$HAVE_CXX11" -ne "0" && "$HAVE_ASAN" -ne "0") ]]; then +if [[ ("$HAVE_CXX11" -ne 0 && "$HAVE_ASAN" -ne 0) ]]; then ############################################ # Debug build, Asan, c++11 @@ -4432,25 +4432,25 @@ if [[ ("$HAVE_CXX11" -ne "0" && "$HAVE_ASAN" -ne "0") ]]; then CXXFLAGS="$DEBUG_CXXFLAGS -std=c++11 $USER_CXXFLAGS" CXX="$CXX" CXXFLAGS="$CXXFLAGS" "$MAKE" "${MAKEARGS[@]}" asan | tee -a "$TEST_RESULTS" - if [[ ("${PIPESTATUS[0]}" -ne "0") ]]; then + if [[ ("${PIPESTATUS[0]}" -ne 0) ]]; then echo "ERROR: failed to make cryptest.exe" | tee -a "$TEST_RESULTS" else - if [[ ("$HAVE_SYMBOLIZE" -ne "0") ]]; then + if [[ ("$HAVE_SYMBOLIZE" -ne 0) ]]; then ./cryptest.exe v 2>&1 | "$ASAN_SYMBOLIZE" 2>&1 | tee -a "$TEST_RESULTS" - if [[ ("${PIPESTATUS[0]}" -ne "0") ]]; then + if [[ ("${PIPESTATUS[0]}" -ne 0) ]]; then echo "ERROR: failed to execute validation suite" | tee -a "$TEST_RESULTS" fi ./cryptest.exe tv all 2>&1 | "$ASAN_SYMBOLIZE" 2>&1 | tee -a "$TEST_RESULTS" - if [[ ("${PIPESTATUS[0]}" -ne "0") ]]; then + if [[ ("${PIPESTATUS[0]}" -ne 0) ]]; then echo "ERROR: failed to execute test vectors" | tee -a "$TEST_RESULTS" fi else ./cryptest.exe v 2>&1 | tee -a "$TEST_RESULTS" - if [[ ("${PIPESTATUS[0]}" -ne "0") ]]; then + if [[ ("${PIPESTATUS[0]}" -ne 0) ]]; then echo "ERROR: failed to execute validation suite" | tee -a "$TEST_RESULTS" fi ./cryptest.exe tv all 2>&1 | tee -a "$TEST_RESULTS" - if [[ ("${PIPESTATUS[0]}" -ne "0") ]]; then + if [[ ("${PIPESTATUS[0]}" -ne 0) ]]; then echo "ERROR: failed to execute test vectors" | tee -a "$TEST_RESULTS" fi fi @@ -4472,25 +4472,25 @@ if [[ ("$HAVE_CXX11" -ne "0" && "$HAVE_ASAN" -ne "0") ]]; then CXXFLAGS="$RELEASE_CXXFLAGS -std=c++11 $USER_CXXFLAGS" CXX="$CXX" CXXFLAGS="$CXXFLAGS" "$MAKE" "${MAKEARGS[@]}" asan | tee -a "$TEST_RESULTS" - if [[ ("${PIPESTATUS[0]}" -ne "0") ]]; then + if [[ ("${PIPESTATUS[0]}" -ne 0) ]]; then echo "ERROR: failed to make cryptest.exe" | tee -a "$TEST_RESULTS" else - if [[ ("$HAVE_SYMBOLIZE" -ne "0") ]]; then + if [[ ("$HAVE_SYMBOLIZE" -ne 0) ]]; then ./cryptest.exe v 2>&1 | "$ASAN_SYMBOLIZE" 2>&1 | tee -a "$TEST_RESULTS" - if [[ ("${PIPESTATUS[0]}" -ne "0") ]]; then + if [[ ("${PIPESTATUS[0]}" -ne 0) ]]; then echo "ERROR: failed to execute validation suite" | tee -a "$TEST_RESULTS" fi ./cryptest.exe tv all 2>&1 | "$ASAN_SYMBOLIZE" 2>&1 | tee -a "$TEST_RESULTS" - if [[ ("${PIPESTATUS[0]}" -ne "0") ]]; then + if [[ ("${PIPESTATUS[0]}" -ne 0) ]]; then echo "ERROR: failed to execute test vectors" | tee -a "$TEST_RESULTS" fi else ./cryptest.exe v 2>&1 | tee -a "$TEST_RESULTS" - if [[ ("${PIPESTATUS[0]}" -ne "0") ]]; then + if [[ ("${PIPESTATUS[0]}" -ne 0) ]]; then echo "ERROR: failed to execute validation suite" | tee -a "$TEST_RESULTS" fi ./cryptest.exe tv all 2>&1 | tee -a "$TEST_RESULTS" - if [[ ("${PIPESTATUS[0]}" -ne "0") ]]; then + if [[ ("${PIPESTATUS[0]}" -ne 0) ]]; then echo "ERROR: failed to execute test vectors" | tee -a "$TEST_RESULTS" fi fi @@ -4499,7 +4499,7 @@ fi ############################################ # Bounds Sanitizer, c++11 -if [[ ("$HAVE_CXX11" -ne "0" && "$HAVE_BSAN" -ne "0") ]]; then +if [[ ("$HAVE_CXX11" -ne 0 && "$HAVE_BSAN" -ne 0) ]]; then ############################################ # Debug build, Bounds Sanitizer, c++11 @@ -4516,25 +4516,25 @@ if [[ ("$HAVE_CXX11" -ne "0" && "$HAVE_BSAN" -ne "0") ]]; then CXXFLAGS="$DEBUG_CXXFLAGS -std=c++11 -fsanitize=bounds-strict $USER_CXXFLAGS" CXX="$CXX" CXXFLAGS="$CXXFLAGS" "$MAKE" "${MAKEARGS[@]}" | tee -a "$TEST_RESULTS" - if [[ ("${PIPESTATUS[0]}" -ne "0") ]]; then + if [[ ("${PIPESTATUS[0]}" -ne 0) ]]; then echo "ERROR: failed to make cryptest.exe" | tee -a "$TEST_RESULTS" else - if [[ ("$HAVE_SYMBOLIZE" -ne "0") ]]; then + if [[ ("$HAVE_SYMBOLIZE" -ne 0) ]]; then ./cryptest.exe v 2>&1 | "$ASAN_SYMBOLIZE" 2>&1 | tee -a "$TEST_RESULTS" - if [[ ("${PIPESTATUS[0]}" -ne "0") ]]; then + if [[ ("${PIPESTATUS[0]}" -ne 0) ]]; then echo "ERROR: failed to execute validation suite" | tee -a "$TEST_RESULTS" fi ./cryptest.exe tv all 2>&1 | "$ASAN_SYMBOLIZE" 2>&1 | tee -a "$TEST_RESULTS" - if [[ ("${PIPESTATUS[0]}" -ne "0") ]]; then + if [[ ("${PIPESTATUS[0]}" -ne 0) ]]; then echo "ERROR: failed to execute test vectors" | tee -a "$TEST_RESULTS" fi else ./cryptest.exe v 2>&1 | tee -a "$TEST_RESULTS" - if [[ ("${PIPESTATUS[0]}" -ne "0") ]]; then + if [[ ("${PIPESTATUS[0]}" -ne 0) ]]; then echo "ERROR: failed to execute validation suite" | tee -a "$TEST_RESULTS" fi ./cryptest.exe tv all 2>&1 | tee -a "$TEST_RESULTS" - if [[ ("${PIPESTATUS[0]}" -ne "0") ]]; then + if [[ ("${PIPESTATUS[0]}" -ne 0) ]]; then echo "ERROR: failed to execute test vectors" | tee -a "$TEST_RESULTS" fi fi @@ -4556,25 +4556,25 @@ if [[ ("$HAVE_CXX11" -ne "0" && "$HAVE_BSAN" -ne "0") ]]; then CXXFLAGS="$RELEASE_CXXFLAGS -std=c++11 -fsanitize=bounds-strict $USER_CXXFLAGS" CXX="$CXX" CXXFLAGS="$CXXFLAGS" "$MAKE" "${MAKEARGS[@]}" | tee -a "$TEST_RESULTS" - if [[ ("${PIPESTATUS[0]}" -ne "0") ]]; then + if [[ ("${PIPESTATUS[0]}" -ne 0) ]]; then echo "ERROR: failed to make cryptest.exe" | tee -a "$TEST_RESULTS" else - if [[ ("$HAVE_SYMBOLIZE" -ne "0") ]]; then + if [[ ("$HAVE_SYMBOLIZE" -ne 0) ]]; then ./cryptest.exe v 2>&1 | "$ASAN_SYMBOLIZE" 2>&1 | tee -a "$TEST_RESULTS" - if [[ ("${PIPESTATUS[0]}" -ne "0") ]]; then + if [[ ("${PIPESTATUS[0]}" -ne 0) ]]; then echo "ERROR: failed to execute validation suite" | tee -a "$TEST_RESULTS" fi ./cryptest.exe tv all 2>&1 | "$ASAN_SYMBOLIZE" 2>&1 | tee -a "$TEST_RESULTS" - if [[ ("${PIPESTATUS[0]}" -ne "0") ]]; then + if [[ ("${PIPESTATUS[0]}" -ne 0) ]]; then echo "ERROR: failed to execute test vectors" | tee -a "$TEST_RESULTS" fi else ./cryptest.exe v 2>&1 | tee -a "$TEST_RESULTS" - if [[ ("${PIPESTATUS[0]}" -ne "0") ]]; then + if [[ ("${PIPESTATUS[0]}" -ne 0) ]]; then echo "ERROR: failed to execute validation suite" | tee -a "$TEST_RESULTS" fi ./cryptest.exe tv all 2>&1 | tee -a "$TEST_RESULTS" - if [[ ("${PIPESTATUS[0]}" -ne "0") ]]; then + if [[ ("${PIPESTATUS[0]}" -ne 0) ]]; then echo "ERROR: failed to execute test vectors" | tee -a "$TEST_RESULTS" fi fi @@ -4583,7 +4583,7 @@ fi ############################################ # Control-flow Enforcement Technology (CET), c++11 -if [[ ("$HAVE_CXX11" -ne "0" && "$HAVE_CET" -ne "0") ]]; then +if [[ ("$HAVE_CXX11" -ne 0 && "$HAVE_CET" -ne 0) ]]; then ############################################ # Debug build, CET, c++11 @@ -4600,15 +4600,15 @@ if [[ ("$HAVE_CXX11" -ne "0" && "$HAVE_CET" -ne "0") ]]; then CXXFLAGS="$DEBUG_CXXFLAGS -std=c++11 -fcf-protection=full -mcet $USER_CXXFLAGS" CXX="$CXX" CXXFLAGS="$CXXFLAGS" "$MAKE" "${MAKEARGS[@]}" | tee -a "$TEST_RESULTS" - if [[ ("${PIPESTATUS[0]}" -ne "0") ]]; then + if [[ ("${PIPESTATUS[0]}" -ne 0) ]]; then echo "ERROR: failed to make cryptest.exe" | tee -a "$TEST_RESULTS" else ./cryptest.exe v 2>&1 | tee -a "$TEST_RESULTS" - if [[ ("${PIPESTATUS[0]}" -ne "0") ]]; then + if [[ ("${PIPESTATUS[0]}" -ne 0) ]]; then echo "ERROR: failed to execute validation suite" | tee -a "$TEST_RESULTS" fi ./cryptest.exe tv all 2>&1 | tee -a "$TEST_RESULTS" - if [[ ("${PIPESTATUS[0]}" -ne "0") ]]; then + if [[ ("${PIPESTATUS[0]}" -ne 0) ]]; then echo "ERROR: failed to execute test vectors" | tee -a "$TEST_RESULTS" fi fi @@ -4628,15 +4628,15 @@ if [[ ("$HAVE_CXX11" -ne "0" && "$HAVE_CET" -ne "0") ]]; then CXXFLAGS="$RELEASE_CXXFLAGS -std=c++11 -fcf-protection=full -mcet $USER_CXXFLAGS" CXX="$CXX" CXXFLAGS="$CXXFLAGS" "$MAKE" "${MAKEARGS[@]}" | tee -a "$TEST_RESULTS" - if [[ ("${PIPESTATUS[0]}" -ne "0") ]]; then + if [[ ("${PIPESTATUS[0]}" -ne 0) ]]; then echo "ERROR: failed to make cryptest.exe" | tee -a "$TEST_RESULTS" else ./cryptest.exe v 2>&1 | tee -a "$TEST_RESULTS" - if [[ ("${PIPESTATUS[0]}" -ne "0") ]]; then + if [[ ("${PIPESTATUS[0]}" -ne 0) ]]; then echo "ERROR: failed to execute validation suite" | tee -a "$TEST_RESULTS" fi ./cryptest.exe tv all 2>&1 | tee -a "$TEST_RESULTS" - if [[ ("${PIPESTATUS[0]}" -ne "0") ]]; then + if [[ ("${PIPESTATUS[0]}" -ne 0) ]]; then echo "ERROR: failed to execute test vectors" | tee -a "$TEST_RESULTS" fi fi @@ -4644,7 +4644,7 @@ fi ############################################ # Specter, c++11 -if [[ ("$HAVE_CXX11" -ne "0" && "$HAVE_REPTOLINE" -ne "0") ]]; then +if [[ ("$HAVE_CXX11" -ne 0 && "$HAVE_REPTOLINE" -ne 0) ]]; then ############################################ # Debug build, Specter, c++11 @@ -4661,15 +4661,15 @@ if [[ ("$HAVE_CXX11" -ne "0" && "$HAVE_REPTOLINE" -ne "0") ]]; then CXXFLAGS="$DEBUG_CXXFLAGS -std=c++11 -mfunction-return=thunk -mindirect-branch=thunk $USER_CXXFLAGS" CXX="$CXX" CXXFLAGS="$CXXFLAGS" "$MAKE" "${MAKEARGS[@]}" | tee -a "$TEST_RESULTS" - if [[ ("${PIPESTATUS[0]}" -ne "0") ]]; then + if [[ ("${PIPESTATUS[0]}" -ne 0) ]]; then echo "ERROR: failed to make cryptest.exe" | tee -a "$TEST_RESULTS" else ./cryptest.exe v 2>&1 | tee -a "$TEST_RESULTS" - if [[ ("${PIPESTATUS[0]}" -ne "0") ]]; then + if [[ ("${PIPESTATUS[0]}" -ne 0) ]]; then echo "ERROR: failed to execute validation suite" | tee -a "$TEST_RESULTS" fi ./cryptest.exe tv all 2>&1 | tee -a "$TEST_RESULTS" - if [[ ("${PIPESTATUS[0]}" -ne "0") ]]; then + if [[ ("${PIPESTATUS[0]}" -ne 0) ]]; then echo "ERROR: failed to execute test vectors" | tee -a "$TEST_RESULTS" fi fi @@ -4689,15 +4689,15 @@ if [[ ("$HAVE_CXX11" -ne "0" && "$HAVE_REPTOLINE" -ne "0") ]]; then CXXFLAGS="$RELEASE_CXXFLAGS -std=c++11 -mfunction-return=thunk -mindirect-branch=thunk $USER_CXXFLAGS" CXX="$CXX" CXXFLAGS="$CXXFLAGS" "$MAKE" "${MAKEARGS[@]}" | tee -a "$TEST_RESULTS" - if [[ ("${PIPESTATUS[0]}" -ne "0") ]]; then + if [[ ("${PIPESTATUS[0]}" -ne 0) ]]; then echo "ERROR: failed to make cryptest.exe" | tee -a "$TEST_RESULTS" else ./cryptest.exe v 2>&1 | tee -a "$TEST_RESULTS" - if [[ ("${PIPESTATUS[0]}" -ne "0") ]]; then + if [[ ("${PIPESTATUS[0]}" -ne 0) ]]; then echo "ERROR: failed to execute validation suite" | tee -a "$TEST_RESULTS" fi ./cryptest.exe tv all 2>&1 | tee -a "$TEST_RESULTS" - if [[ ("${PIPESTATUS[0]}" -ne "0") ]]; then + if [[ ("${PIPESTATUS[0]}" -ne 0) ]]; then echo "ERROR: failed to execute test vectors" | tee -a "$TEST_RESULTS" fi fi @@ -4705,7 +4705,7 @@ fi ############################################ # Release build, UBSan, c++14 -if [[ ("$HAVE_CXX14" -ne "0" && "$HAVE_UBSAN" -ne "0") ]]; then +if [[ ("$HAVE_CXX14" -ne 0 && "$HAVE_UBSAN" -ne 0) ]]; then echo echo "************************************" | tee -a "$TEST_RESULTS" echo "Testing: Release, c++14, UBsan" | tee -a "$TEST_RESULTS" @@ -4719,15 +4719,15 @@ if [[ ("$HAVE_CXX14" -ne "0" && "$HAVE_UBSAN" -ne "0") ]]; then CXXFLAGS="$RELEASE_CXXFLAGS -std=c++14 $USER_CXXFLAGS" CXX="$CXX" CXXFLAGS="$CXXFLAGS" "$MAKE" "${MAKEARGS[@]}" ubsan | tee -a "$TEST_RESULTS" - if [[ ("${PIPESTATUS[0]}" -ne "0") ]]; then + if [[ ("${PIPESTATUS[0]}" -ne 0) ]]; then echo "ERROR: failed to make cryptest.exe" | tee -a "$TEST_RESULTS" else ./cryptest.exe v 2>&1 | tee -a "$TEST_RESULTS" - if [[ ("${PIPESTATUS[0]}" -ne "0") ]]; then + if [[ ("${PIPESTATUS[0]}" -ne 0) ]]; then echo "ERROR: failed to execute validation suite" | tee -a "$TEST_RESULTS" fi ./cryptest.exe tv all 2>&1 | tee -a "$TEST_RESULTS" - if [[ ("${PIPESTATUS[0]}" -ne "0") ]]; then + if [[ ("${PIPESTATUS[0]}" -ne 0) ]]; then echo "ERROR: failed to execute test vectors" | tee -a "$TEST_RESULTS" fi fi @@ -4735,7 +4735,7 @@ fi ############################################ # Release build, Asan, c++14 -if [[ ("$HAVE_CXX14" -ne "0" && "$HAVE_ASAN" -ne "0") ]]; then +if [[ ("$HAVE_CXX14" -ne 0 && "$HAVE_ASAN" -ne 0) ]]; then echo echo "************************************" | tee -a "$TEST_RESULTS" echo "Testing: Release, c++14, Asan" | tee -a "$TEST_RESULTS" @@ -4749,25 +4749,25 @@ if [[ ("$HAVE_CXX14" -ne "0" && "$HAVE_ASAN" -ne "0") ]]; then CXXFLAGS="$RELEASE_CXXFLAGS -std=c++14 $USER_CXXFLAGS" CXX="$CXX" CXXFLAGS="$CXXFLAGS" "$MAKE" "${MAKEARGS[@]}" asan | tee -a "$TEST_RESULTS" - if [[ ("${PIPESTATUS[0]}" -ne "0") ]]; then + if [[ ("${PIPESTATUS[0]}" -ne 0) ]]; then echo "ERROR: failed to make cryptest.exe" | tee -a "$TEST_RESULTS" else - if [[ ("$HAVE_SYMBOLIZE" -ne "0") ]]; then + if [[ ("$HAVE_SYMBOLIZE" -ne 0) ]]; then ./cryptest.exe v 2>&1 | "$ASAN_SYMBOLIZE" 2>&1 | tee -a "$TEST_RESULTS" - if [[ ("${PIPESTATUS[0]}" -ne "0") ]]; then + if [[ ("${PIPESTATUS[0]}" -ne 0) ]]; then echo "ERROR: failed to execute validation suite" | tee -a "$TEST_RESULTS" fi ./cryptest.exe tv all 2>&1 | "$ASAN_SYMBOLIZE" 2>&1 | tee -a "$TEST_RESULTS" - if [[ ("${PIPESTATUS[0]}" -ne "0") ]]; then + if [[ ("${PIPESTATUS[0]}" -ne 0) ]]; then echo "ERROR: failed to execute test vectors" | tee -a "$TEST_RESULTS" fi else ./cryptest.exe v 2>&1 | tee -a "$TEST_RESULTS" - if [[ ("${PIPESTATUS[0]}" -ne "0") ]]; then + if [[ ("${PIPESTATUS[0]}" -ne 0) ]]; then echo "ERROR: failed to execute validation suite" | tee -a "$TEST_RESULTS" fi ./cryptest.exe tv all 2>&1 | tee -a "$TEST_RESULTS" - if [[ ("${PIPESTATUS[0]}" -ne "0") ]]; then + if [[ ("${PIPESTATUS[0]}" -ne 0) ]]; then echo "ERROR: failed to execute test vectors" | tee -a "$TEST_RESULTS" fi fi @@ -4776,7 +4776,7 @@ fi ############################################ # Release build, Bounds Sanitizer, c++14 -if [[ ("$HAVE_CXX14" -ne "0" && "$HAVE_BSAN" -ne "0") ]]; then +if [[ ("$HAVE_CXX14" -ne 0 && "$HAVE_BSAN" -ne 0) ]]; then echo echo "************************************" | tee -a "$TEST_RESULTS" echo "Testing: Release, c++14, Bounds Sanitizer" | tee -a "$TEST_RESULTS" @@ -4790,15 +4790,15 @@ if [[ ("$HAVE_CXX14" -ne "0" && "$HAVE_BSAN" -ne "0") ]]; then CXXFLAGS="$RELEASE_CXXFLAGS -std=c++14 -fsanitize=bounds-strict $USER_CXXFLAGS" CXX="$CXX" CXXFLAGS="$CXXFLAGS" "$MAKE" "${MAKEARGS[@]}" | tee -a "$TEST_RESULTS" - if [[ ("${PIPESTATUS[0]}" -ne "0") ]]; then + if [[ ("${PIPESTATUS[0]}" -ne 0) ]]; then echo "ERROR: failed to make cryptest.exe" | tee -a "$TEST_RESULTS" else ./cryptest.exe v 2>&1 | tee -a "$TEST_RESULTS" - if [[ ("${PIPESTATUS[0]}" -ne "0") ]]; then + if [[ ("${PIPESTATUS[0]}" -ne 0) ]]; then echo "ERROR: failed to execute validation suite" | tee -a "$TEST_RESULTS" fi ./cryptest.exe tv all 2>&1 | tee -a "$TEST_RESULTS" - if [[ ("${PIPESTATUS[0]}" -ne "0") ]]; then + if [[ ("${PIPESTATUS[0]}" -ne 0) ]]; then echo "ERROR: failed to execute test vectors" | tee -a "$TEST_RESULTS" fi fi @@ -4806,7 +4806,7 @@ fi ############################################ # Release build, Control-flow Enforcement Technology (CET), c++14 -if [[ ("$HAVE_CXX14" -ne "0" && "$HAVE_CET" -ne "0") ]]; then +if [[ ("$HAVE_CXX14" -ne 0 && "$HAVE_CET" -ne 0) ]]; then echo echo "************************************" | tee -a "$TEST_RESULTS" echo "Testing: Release, c++14, CET" | tee -a "$TEST_RESULTS" @@ -4820,15 +4820,15 @@ if [[ ("$HAVE_CXX14" -ne "0" && "$HAVE_CET" -ne "0") ]]; then CXXFLAGS="$RELEASE_CXXFLAGS -std=c++14 -fcf-protection=full -mcet $USER_CXXFLAGS" CXX="$CXX" CXXFLAGS="$CXXFLAGS" "$MAKE" "${MAKEARGS[@]}" | tee -a "$TEST_RESULTS" - if [[ ("${PIPESTATUS[0]}" -ne "0") ]]; then + if [[ ("${PIPESTATUS[0]}" -ne 0) ]]; then echo "ERROR: failed to make cryptest.exe" | tee -a "$TEST_RESULTS" else ./cryptest.exe v 2>&1 | tee -a "$TEST_RESULTS" - if [[ ("${PIPESTATUS[0]}" -ne "0") ]]; then + if [[ ("${PIPESTATUS[0]}" -ne 0) ]]; then echo "ERROR: failed to execute validation suite" | tee -a "$TEST_RESULTS" fi ./cryptest.exe tv all 2>&1 | tee -a "$TEST_RESULTS" - if [[ ("${PIPESTATUS[0]}" -ne "0") ]]; then + if [[ ("${PIPESTATUS[0]}" -ne 0) ]]; then echo "ERROR: failed to execute test vectors" | tee -a "$TEST_RESULTS" fi fi @@ -4836,7 +4836,7 @@ fi ############################################ # Release build, Specter, c++14 -if [[ ("$HAVE_CXX14" -ne "0" && "$HAVE_REPTOLINE" -ne "0") ]]; then +if [[ ("$HAVE_CXX14" -ne 0 && "$HAVE_REPTOLINE" -ne 0) ]]; then echo echo "************************************" | tee -a "$TEST_RESULTS" echo "Testing: Release, c++14, Specter" | tee -a "$TEST_RESULTS" @@ -4850,15 +4850,15 @@ if [[ ("$HAVE_CXX14" -ne "0" && "$HAVE_REPTOLINE" -ne "0") ]]; then CXXFLAGS="$RELEASE_CXXFLAGS -std=c++14 -mfunction-return=thunk -mindirect-branch=thunk $USER_CXXFLAGS" CXX="$CXX" CXXFLAGS="$CXXFLAGS" "$MAKE" "${MAKEARGS[@]}" | tee -a "$TEST_RESULTS" - if [[ ("${PIPESTATUS[0]}" -ne "0") ]]; then + if [[ ("${PIPESTATUS[0]}" -ne 0) ]]; then echo "ERROR: failed to make cryptest.exe" | tee -a "$TEST_RESULTS" else ./cryptest.exe v 2>&1 | tee -a "$TEST_RESULTS" - if [[ ("${PIPESTATUS[0]}" -ne "0") ]]; then + if [[ ("${PIPESTATUS[0]}" -ne 0) ]]; then echo "ERROR: failed to execute validation suite" | tee -a "$TEST_RESULTS" fi ./cryptest.exe tv all 2>&1 | tee -a "$TEST_RESULTS" - if [[ ("${PIPESTATUS[0]}" -ne "0") ]]; then + if [[ ("${PIPESTATUS[0]}" -ne 0) ]]; then echo "ERROR: failed to execute test vectors" | tee -a "$TEST_RESULTS" fi fi @@ -4866,7 +4866,7 @@ fi ############################################ # Release build, UBSan, c++17 -if [[ ("$HAVE_CXX17" -ne "0" && "$HAVE_UBSAN" -ne "0") ]]; then +if [[ ("$HAVE_CXX17" -ne 0 && "$HAVE_UBSAN" -ne 0) ]]; then echo echo "************************************" | tee -a "$TEST_RESULTS" echo "Testing: Release, c++17, UBsan" | tee -a "$TEST_RESULTS" @@ -4880,15 +4880,15 @@ if [[ ("$HAVE_CXX17" -ne "0" && "$HAVE_UBSAN" -ne "0") ]]; then CXXFLAGS="$RELEASE_CXXFLAGS -std=c++17 $USER_CXXFLAGS" CXX="$CXX" CXXFLAGS="$CXXFLAGS" "$MAKE" "${MAKEARGS[@]}" ubsan | tee -a "$TEST_RESULTS" - if [[ ("${PIPESTATUS[0]}" -ne "0") ]]; then + if [[ ("${PIPESTATUS[0]}" -ne 0) ]]; then echo "ERROR: failed to make cryptest.exe" | tee -a "$TEST_RESULTS" else ./cryptest.exe v 2>&1 | tee -a "$TEST_RESULTS" - if [[ ("${PIPESTATUS[0]}" -ne "0") ]]; then + if [[ ("${PIPESTATUS[0]}" -ne 0) ]]; then echo "ERROR: failed to execute validation suite" | tee -a "$TEST_RESULTS" fi ./cryptest.exe tv all 2>&1 | tee -a "$TEST_RESULTS" - if [[ ("${PIPESTATUS[0]}" -ne "0") ]]; then + if [[ ("${PIPESTATUS[0]}" -ne 0) ]]; then echo "ERROR: failed to execute test vectors" | tee -a "$TEST_RESULTS" fi fi @@ -4896,7 +4896,7 @@ fi ############################################ # Release build, Asan, c++17 -if [[ ("$HAVE_CXX17" -ne "0" && "$HAVE_ASAN" -ne "0") ]]; then +if [[ ("$HAVE_CXX17" -ne 0 && "$HAVE_ASAN" -ne 0) ]]; then echo echo "************************************" | tee -a "$TEST_RESULTS" echo "Testing: Release, c++17, Asan" | tee -a "$TEST_RESULTS" @@ -4910,25 +4910,25 @@ if [[ ("$HAVE_CXX17" -ne "0" && "$HAVE_ASAN" -ne "0") ]]; then CXXFLAGS="$RELEASE_CXXFLAGS -std=c++17 $USER_CXXFLAGS" CXX="$CXX" CXXFLAGS="$CXXFLAGS" "$MAKE" "${MAKEARGS[@]}" asan | tee -a "$TEST_RESULTS" - if [[ ("${PIPESTATUS[0]}" -ne "0") ]]; then + if [[ ("${PIPESTATUS[0]}" -ne 0) ]]; then echo "ERROR: failed to make cryptest.exe" | tee -a "$TEST_RESULTS" else - if [[ ("$HAVE_SYMBOLIZE" -ne "0") ]]; then + if [[ ("$HAVE_SYMBOLIZE" -ne 0) ]]; then ./cryptest.exe v 2>&1 | "$ASAN_SYMBOLIZE" 2>&1 | tee -a "$TEST_RESULTS" - if [[ ("${PIPESTATUS[0]}" -ne "0") ]]; then + if [[ ("${PIPESTATUS[0]}" -ne 0) ]]; then echo "ERROR: failed to execute validation suite" | tee -a "$TEST_RESULTS" fi ./cryptest.exe tv all 2>&1 | "$ASAN_SYMBOLIZE" 2>&1 | tee -a "$TEST_RESULTS" - if [[ ("${PIPESTATUS[0]}" -ne "0") ]]; then + if [[ ("${PIPESTATUS[0]}" -ne 0) ]]; then echo "ERROR: failed to execute test vectors" | tee -a "$TEST_RESULTS" fi else ./cryptest.exe v 2>&1 | tee -a "$TEST_RESULTS" - if [[ ("${PIPESTATUS[0]}" -ne "0") ]]; then + if [[ ("${PIPESTATUS[0]}" -ne 0) ]]; then echo "ERROR: failed to execute validation suite" | tee -a "$TEST_RESULTS" fi ./cryptest.exe tv all 2>&1 | tee -a "$TEST_RESULTS" - if [[ ("${PIPESTATUS[0]}" -ne "0") ]]; then + if [[ ("${PIPESTATUS[0]}" -ne 0) ]]; then echo "ERROR: failed to execute test vectors" | tee -a "$TEST_RESULTS" fi fi @@ -4937,7 +4937,7 @@ fi ############################################ # Release build, Bounds Sanitizer, c++17 -if [[ ("$HAVE_CXX17" -ne "0" && "$HAVE_BSAN" -ne "0") ]]; then +if [[ ("$HAVE_CXX17" -ne 0 && "$HAVE_BSAN" -ne 0) ]]; then echo echo "************************************" | tee -a "$TEST_RESULTS" echo "Testing: Release, c++17, Bounds Sanitizer" | tee -a "$TEST_RESULTS" @@ -4951,15 +4951,15 @@ if [[ ("$HAVE_CXX17" -ne "0" && "$HAVE_BSAN" -ne "0") ]]; then CXXFLAGS="$RELEASE_CXXFLAGS -std=c++17 -fsanitize=bounds-strict $USER_CXXFLAGS" CXX="$CXX" CXXFLAGS="$CXXFLAGS" "$MAKE" "${MAKEARGS[@]}" | tee -a "$TEST_RESULTS" - if [[ ("${PIPESTATUS[0]}" -ne "0") ]]; then + if [[ ("${PIPESTATUS[0]}" -ne 0) ]]; then echo "ERROR: failed to make cryptest.exe" | tee -a "$TEST_RESULTS" else ./cryptest.exe v 2>&1 | tee -a "$TEST_RESULTS" - if [[ ("${PIPESTATUS[0]}" -ne "0") ]]; then + if [[ ("${PIPESTATUS[0]}" -ne 0) ]]; then echo "ERROR: failed to execute validation suite" | tee -a "$TEST_RESULTS" fi ./cryptest.exe tv all 2>&1 | tee -a "$TEST_RESULTS" - if [[ ("${PIPESTATUS[0]}" -ne "0") ]]; then + if [[ ("${PIPESTATUS[0]}" -ne 0) ]]; then echo "ERROR: failed to execute test vectors" | tee -a "$TEST_RESULTS" fi fi @@ -4967,7 +4967,7 @@ fi ############################################ # Release build, Control-flow Enforcement Technology (CET), c++17 -if [[ ("$HAVE_CXX17" -ne "0" && "$HAVE_CET" -ne "0") ]]; then +if [[ ("$HAVE_CXX17" -ne 0 && "$HAVE_CET" -ne 0) ]]; then echo echo "************************************" | tee -a "$TEST_RESULTS" echo "Testing: Release, c++17, CET" | tee -a "$TEST_RESULTS" @@ -4981,15 +4981,15 @@ if [[ ("$HAVE_CXX17" -ne "0" && "$HAVE_CET" -ne "0") ]]; then CXXFLAGS="$RELEASE_CXXFLAGS -std=c++17 -fcf-protection=full -mcet $USER_CXXFLAGS" CXX="$CXX" CXXFLAGS="$CXXFLAGS" "$MAKE" "${MAKEARGS[@]}" | tee -a "$TEST_RESULTS" - if [[ ("${PIPESTATUS[0]}" -ne "0") ]]; then + if [[ ("${PIPESTATUS[0]}" -ne 0) ]]; then echo "ERROR: failed to make cryptest.exe" | tee -a "$TEST_RESULTS" else ./cryptest.exe v 2>&1 | tee -a "$TEST_RESULTS" - if [[ ("${PIPESTATUS[0]}" -ne "0") ]]; then + if [[ ("${PIPESTATUS[0]}" -ne 0) ]]; then echo "ERROR: failed to execute validation suite" | tee -a "$TEST_RESULTS" fi ./cryptest.exe tv all 2>&1 | tee -a "$TEST_RESULTS" - if [[ ("${PIPESTATUS[0]}" -ne "0") ]]; then + if [[ ("${PIPESTATUS[0]}" -ne 0) ]]; then echo "ERROR: failed to execute test vectors" | tee -a "$TEST_RESULTS" fi fi @@ -4997,7 +4997,7 @@ fi ############################################ # Release build, Specter, c++17 -if [[ ("$HAVE_CXX17" -ne "0" && "$HAVE_REPTOLINE" -ne "0") ]]; then +if [[ ("$HAVE_CXX17" -ne 0 && "$HAVE_REPTOLINE" -ne 0) ]]; then echo echo "************************************" | tee -a "$TEST_RESULTS" echo "Testing: Release, c++17, Specter" | tee -a "$TEST_RESULTS" @@ -5011,15 +5011,15 @@ if [[ ("$HAVE_CXX17" -ne "0" && "$HAVE_REPTOLINE" -ne "0") ]]; then CXXFLAGS="$RELEASE_CXXFLAGS -std=c++17 -mfunction-return=thunk -mindirect-branch=thunk $USER_CXXFLAGS" CXX="$CXX" CXXFLAGS="$CXXFLAGS" "$MAKE" "${MAKEARGS[@]}" | tee -a "$TEST_RESULTS" - if [[ ("${PIPESTATUS[0]}" -ne "0") ]]; then + if [[ ("${PIPESTATUS[0]}" -ne 0) ]]; then echo "ERROR: failed to make cryptest.exe" | tee -a "$TEST_RESULTS" else ./cryptest.exe v 2>&1 | tee -a "$TEST_RESULTS" - if [[ ("${PIPESTATUS[0]}" -ne "0") ]]; then + if [[ ("${PIPESTATUS[0]}" -ne 0) ]]; then echo "ERROR: failed to execute validation suite" | tee -a "$TEST_RESULTS" fi ./cryptest.exe tv all 2>&1 | tee -a "$TEST_RESULTS" - if [[ ("${PIPESTATUS[0]}" -ne "0") ]]; then + if [[ ("${PIPESTATUS[0]}" -ne 0) ]]; then echo "ERROR: failed to execute test vectors" | tee -a "$TEST_RESULTS" fi fi @@ -5027,7 +5027,7 @@ fi ############################################ # Release build, UBSan, c++20 -if [[ ("$HAVE_CXX20" -ne "0" && "$HAVE_UBSAN" -ne "0") ]]; then +if [[ ("$HAVE_CXX20" -ne 0 && "$HAVE_UBSAN" -ne 0) ]]; then echo echo "************************************" | tee -a "$TEST_RESULTS" echo "Testing: Release, c++20, UBsan" | tee -a "$TEST_RESULTS" @@ -5041,15 +5041,15 @@ if [[ ("$HAVE_CXX20" -ne "0" && "$HAVE_UBSAN" -ne "0") ]]; then CXXFLAGS="$RELEASE_CXXFLAGS -std=c++20 $USER_CXXFLAGS" CXX="$CXX" CXXFLAGS="$CXXFLAGS" "$MAKE" "${MAKEARGS[@]}" ubsan | tee -a "$TEST_RESULTS" - if [[ ("${PIPESTATUS[0]}" -ne "0") ]]; then + if [[ ("${PIPESTATUS[0]}" -ne 0) ]]; then echo "ERROR: failed to make cryptest.exe" | tee -a "$TEST_RESULTS" else ./cryptest.exe v 2>&1 | tee -a "$TEST_RESULTS" - if [[ ("${PIPESTATUS[0]}" -ne "0") ]]; then + if [[ ("${PIPESTATUS[0]}" -ne 0) ]]; then echo "ERROR: failed to execute validation suite" | tee -a "$TEST_RESULTS" fi ./cryptest.exe tv all 2>&1 | tee -a "$TEST_RESULTS" - if [[ ("${PIPESTATUS[0]}" -ne "0") ]]; then + if [[ ("${PIPESTATUS[0]}" -ne 0) ]]; then echo "ERROR: failed to execute test vectors" | tee -a "$TEST_RESULTS" fi fi @@ -5057,7 +5057,7 @@ fi ############################################ # Release build, Asan, c++20 -if [[ ("$HAVE_CXX20" -ne "0" && "$HAVE_ASAN" -ne "0") ]]; then +if [[ ("$HAVE_CXX20" -ne 0 && "$HAVE_ASAN" -ne 0) ]]; then echo echo "************************************" | tee -a "$TEST_RESULTS" echo "Testing: Release, c++20, Asan" | tee -a "$TEST_RESULTS" @@ -5071,25 +5071,25 @@ if [[ ("$HAVE_CXX20" -ne "0" && "$HAVE_ASAN" -ne "0") ]]; then CXXFLAGS="$RELEASE_CXXFLAGS -std=c++20 $USER_CXXFLAGS" CXX="$CXX" CXXFLAGS="$CXXFLAGS" "$MAKE" "${MAKEARGS[@]}" asan | tee -a "$TEST_RESULTS" - if [[ ("${PIPESTATUS[0]}" -ne "0") ]]; then + if [[ ("${PIPESTATUS[0]}" -ne 0) ]]; then echo "ERROR: failed to make cryptest.exe" | tee -a "$TEST_RESULTS" else - if [[ ("$HAVE_SYMBOLIZE" -ne "0") ]]; then + if [[ ("$HAVE_SYMBOLIZE" -ne 0) ]]; then ./cryptest.exe v 2>&1 | "$ASAN_SYMBOLIZE" 2>&1 | tee -a "$TEST_RESULTS" - if [[ ("${PIPESTATUS[0]}" -ne "0") ]]; then + if [[ ("${PIPESTATUS[0]}" -ne 0) ]]; then echo "ERROR: failed to execute validation suite" | tee -a "$TEST_RESULTS" fi ./cryptest.exe tv all 2>&1 | "$ASAN_SYMBOLIZE" 2>&1 | tee -a "$TEST_RESULTS" - if [[ ("${PIPESTATUS[0]}" -ne "0") ]]; then + if [[ ("${PIPESTATUS[0]}" -ne 0) ]]; then echo "ERROR: failed to execute test vectors" | tee -a "$TEST_RESULTS" fi else ./cryptest.exe v 2>&1 | tee -a "$TEST_RESULTS" - if [[ ("${PIPESTATUS[0]}" -ne "0") ]]; then + if [[ ("${PIPESTATUS[0]}" -ne 0) ]]; then echo "ERROR: failed to execute validation suite" | tee -a "$TEST_RESULTS" fi ./cryptest.exe tv all 2>&1 | tee -a "$TEST_RESULTS" - if [[ ("${PIPESTATUS[0]}" -ne "0") ]]; then + if [[ ("${PIPESTATUS[0]}" -ne 0) ]]; then echo "ERROR: failed to execute test vectors" | tee -a "$TEST_RESULTS" fi fi @@ -5098,7 +5098,7 @@ fi ############################################ # Release build, Bounds Sanitizer, c++20 -if [[ ("$HAVE_CXX20" -ne "0" && "$HAVE_BSAN" -ne "0") ]]; then +if [[ ("$HAVE_CXX20" -ne 0 && "$HAVE_BSAN" -ne 0) ]]; then echo echo "************************************" | tee -a "$TEST_RESULTS" echo "Testing: Release, c++20, Bounds Sanitizer" | tee -a "$TEST_RESULTS" @@ -5112,15 +5112,15 @@ if [[ ("$HAVE_CXX20" -ne "0" && "$HAVE_BSAN" -ne "0") ]]; then CXXFLAGS="$RELEASE_CXXFLAGS -std=c++20 -fsanitize=bounds-strict $USER_CXXFLAGS" CXX="$CXX" CXXFLAGS="$CXXFLAGS" "$MAKE" "${MAKEARGS[@]}" | tee -a "$TEST_RESULTS" - if [[ ("${PIPESTATUS[0]}" -ne "0") ]]; then + if [[ ("${PIPESTATUS[0]}" -ne 0) ]]; then echo "ERROR: failed to make cryptest.exe" | tee -a "$TEST_RESULTS" else ./cryptest.exe v 2>&1 | tee -a "$TEST_RESULTS" - if [[ ("${PIPESTATUS[0]}" -ne "0") ]]; then + if [[ ("${PIPESTATUS[0]}" -ne 0) ]]; then echo "ERROR: failed to execute validation suite" | tee -a "$TEST_RESULTS" fi ./cryptest.exe tv all 2>&1 | tee -a "$TEST_RESULTS" - if [[ ("${PIPESTATUS[0]}" -ne "0") ]]; then + if [[ ("${PIPESTATUS[0]}" -ne 0) ]]; then echo "ERROR: failed to execute test vectors" | tee -a "$TEST_RESULTS" fi fi @@ -5128,7 +5128,7 @@ fi ############################################ # Release build, Control-flow Enforcement Technology (CET), c++20 -if [[ ("$HAVE_CXX20" -ne "0" && "$HAVE_CET" -ne "0") ]]; then +if [[ ("$HAVE_CXX20" -ne 0 && "$HAVE_CET" -ne 0) ]]; then echo echo "************************************" | tee -a "$TEST_RESULTS" echo "Testing: Release, c++20, CET" | tee -a "$TEST_RESULTS" @@ -5142,15 +5142,15 @@ if [[ ("$HAVE_CXX20" -ne "0" && "$HAVE_CET" -ne "0") ]]; then CXXFLAGS="$RELEASE_CXXFLAGS -std=c++20 -fcf-protection=full -mcet $USER_CXXFLAGS" CXX="$CXX" CXXFLAGS="$CXXFLAGS" "$MAKE" "${MAKEARGS[@]}" | tee -a "$TEST_RESULTS" - if [[ ("${PIPESTATUS[0]}" -ne "0") ]]; then + if [[ ("${PIPESTATUS[0]}" -ne 0) ]]; then echo "ERROR: failed to make cryptest.exe" | tee -a "$TEST_RESULTS" else ./cryptest.exe v 2>&1 | tee -a "$TEST_RESULTS" - if [[ ("${PIPESTATUS[0]}" -ne "0") ]]; then + if [[ ("${PIPESTATUS[0]}" -ne 0) ]]; then echo "ERROR: failed to execute validation suite" | tee -a "$TEST_RESULTS" fi ./cryptest.exe tv all 2>&1 | tee -a "$TEST_RESULTS" - if [[ ("${PIPESTATUS[0]}" -ne "0") ]]; then + if [[ ("${PIPESTATUS[0]}" -ne 0) ]]; then echo "ERROR: failed to execute test vectors" | tee -a "$TEST_RESULTS" fi fi @@ -5158,7 +5158,7 @@ fi ############################################ # Release build, Specter, c++20 -if [[ ("$HAVE_CXX20" -ne "0" && "$HAVE_REPTOLINE" -ne "0") ]]; then +if [[ ("$HAVE_CXX20" -ne 0 && "$HAVE_REPTOLINE" -ne 0) ]]; then echo echo "************************************" | tee -a "$TEST_RESULTS" echo "Testing: Release, c++20, Specter" | tee -a "$TEST_RESULTS" @@ -5172,15 +5172,15 @@ if [[ ("$HAVE_CXX20" -ne "0" && "$HAVE_REPTOLINE" -ne "0") ]]; then CXXFLAGS="$RELEASE_CXXFLAGS -std=c++20 -mfunction-return=thunk -mindirect-branch=thunk $USER_CXXFLAGS" CXX="$CXX" CXXFLAGS="$CXXFLAGS" "$MAKE" "${MAKEARGS[@]}" | tee -a "$TEST_RESULTS" - if [[ ("${PIPESTATUS[0]}" -ne "0") ]]; then + if [[ ("${PIPESTATUS[0]}" -ne 0) ]]; then echo "ERROR: failed to make cryptest.exe" | tee -a "$TEST_RESULTS" else ./cryptest.exe v 2>&1 | tee -a "$TEST_RESULTS" - if [[ ("${PIPESTATUS[0]}" -ne "0") ]]; then + if [[ ("${PIPESTATUS[0]}" -ne 0) ]]; then echo "ERROR: failed to execute validation suite" | tee -a "$TEST_RESULTS" fi ./cryptest.exe tv all 2>&1 | tee -a "$TEST_RESULTS" - if [[ ("${PIPESTATUS[0]}" -ne "0") ]]; then + if [[ ("${PIPESTATUS[0]}" -ne 0) ]]; then echo "ERROR: failed to execute test vectors" | tee -a "$TEST_RESULTS" fi fi @@ -5188,7 +5188,7 @@ fi ############################################ # For Solaris, test under Sun Studio 12.2 - 12.5 -if [[ "$IS_SOLARIS" -ne "0" ]]; then +if [[ "$IS_SOLARIS" -ne 0 ]]; then ############################################ # Sun Studio 12.2/SunCC 5.11 @@ -5209,15 +5209,15 @@ if [[ "$IS_SOLARIS" -ne "0" ]]; then CXXFLAGS="-DDEBUG -g -xO0" CXX="/opt/solstudio12.2/bin/CC" CXXFLAGS="$CXXFLAGS" "$MAKE" "${MAKEARGS[@]}" static dynamic cryptest.exe 2>&1 | tee -a "$TEST_RESULTS" - if [[ ("${PIPESTATUS[0]}" -ne "0") ]]; then + if [[ ("${PIPESTATUS[0]}" -ne 0) ]]; then echo "ERROR: failed to make cryptest.exe" | tee -a "$TEST_RESULTS" else ./cryptest.exe v 2>&1 | tee -a "$TEST_RESULTS" - if [[ ("${PIPESTATUS[0]}" -ne "0") ]]; then + if [[ ("${PIPESTATUS[0]}" -ne 0) ]]; then echo "ERROR: failed to execute validation suite" | tee -a "$TEST_RESULTS" fi ./cryptest.exe tv all 2>&1 | tee -a "$TEST_RESULTS" - if [[ ("${PIPESTATUS[0]}" -ne "0") ]]; then + if [[ ("${PIPESTATUS[0]}" -ne 0) ]]; then echo "ERROR: failed to execute test vectors" | tee -a "$TEST_RESULTS" fi fi @@ -5237,15 +5237,15 @@ if [[ "$IS_SOLARIS" -ne "0" ]]; then CXXFLAGS="-DNDEBUG -g -xO2" CXX="/opt/solstudio12.2/bin/CC" CXXFLAGS="$CXXFLAGS" "$MAKE" "${MAKEARGS[@]}" static dynamic cryptest.exe 2>&1 | tee -a "$TEST_RESULTS" - if [[ ("${PIPESTATUS[0]}" -ne "0") ]]; then + if [[ ("${PIPESTATUS[0]}" -ne 0) ]]; then echo "ERROR: failed to make cryptest.exe" | tee -a "$TEST_RESULTS" else ./cryptest.exe v 2>&1 | tee -a "$TEST_RESULTS" - if [[ ("${PIPESTATUS[0]}" -ne "0") ]]; then + if [[ ("${PIPESTATUS[0]}" -ne 0) ]]; then echo "ERROR: failed to execute validation suite" | tee -a "$TEST_RESULTS" fi ./cryptest.exe tv all 2>&1 | tee -a "$TEST_RESULTS" - if [[ ("${PIPESTATUS[0]}" -ne "0") ]]; then + if [[ ("${PIPESTATUS[0]}" -ne 0) ]]; then echo "ERROR: failed to execute test vectors" | tee -a "$TEST_RESULTS" fi fi @@ -5270,15 +5270,15 @@ if [[ "$IS_SOLARIS" -ne "0" ]]; then CXXFLAGS="-DDEBUG -g3 -xO0" CXX=/opt/solarisstudio12.3/bin/CC CXXFLAGS="$CXXFLAGS" "$MAKE" "${MAKEARGS[@]}" static dynamic cryptest.exe 2>&1 | tee -a "$TEST_RESULTS" - if [[ ("${PIPESTATUS[0]}" -ne "0") ]]; then + if [[ ("${PIPESTATUS[0]}" -ne 0) ]]; then echo "ERROR: failed to make cryptest.exe" | tee -a "$TEST_RESULTS" else ./cryptest.exe v 2>&1 | tee -a "$TEST_RESULTS" - if [[ ("${PIPESTATUS[0]}" -ne "0") ]]; then + if [[ ("${PIPESTATUS[0]}" -ne 0) ]]; then echo "ERROR: failed to execute validation suite" | tee -a "$TEST_RESULTS" fi ./cryptest.exe tv all 2>&1 | tee -a "$TEST_RESULTS" - if [[ ("${PIPESTATUS[0]}" -ne "0") ]]; then + if [[ ("${PIPESTATUS[0]}" -ne 0) ]]; then echo "ERROR: failed to execute test vectors" | tee -a "$TEST_RESULTS" fi fi @@ -5298,15 +5298,15 @@ if [[ "$IS_SOLARIS" -ne "0" ]]; then CXXFLAGS="-DNDEBUG -g3 -xO2" CXX=/opt/solarisstudio12.3/bin/CC CXXFLAGS="$CXXFLAGS" "$MAKE" "${MAKEARGS[@]}" static dynamic cryptest.exe 2>&1 | tee -a "$TEST_RESULTS" - if [[ ("${PIPESTATUS[0]}" -ne "0") ]]; then + if [[ ("${PIPESTATUS[0]}" -ne 0) ]]; then echo "ERROR: failed to make cryptest.exe" | tee -a "$TEST_RESULTS" else ./cryptest.exe v 2>&1 | tee -a "$TEST_RESULTS" - if [[ ("${PIPESTATUS[0]}" -ne "0") ]]; then + if [[ ("${PIPESTATUS[0]}" -ne 0) ]]; then echo "ERROR: failed to execute validation suite" | tee -a "$TEST_RESULTS" fi ./cryptest.exe tv all 2>&1 | tee -a "$TEST_RESULTS" - if [[ ("${PIPESTATUS[0]}" -ne "0") ]]; then + if [[ ("${PIPESTATUS[0]}" -ne 0) ]]; then echo "ERROR: failed to execute test vectors" | tee -a "$TEST_RESULTS" fi fi @@ -5331,15 +5331,15 @@ if [[ "$IS_SOLARIS" -ne "0" ]]; then CXXFLAGS="-DDEBUG -g3 -xO0" CXX=/opt/solarisstudio12.4/bin/CC CXXFLAGS="$CXXFLAGS" "$MAKE" "${MAKEARGS[@]}" static dynamic cryptest.exe 2>&1 | tee -a "$TEST_RESULTS" - if [[ ("${PIPESTATUS[0]}" -ne "0") ]]; then + if [[ ("${PIPESTATUS[0]}" -ne 0) ]]; then echo "ERROR: failed to make cryptest.exe" | tee -a "$TEST_RESULTS" else ./cryptest.exe v 2>&1 | tee -a "$TEST_RESULTS" - if [[ ("${PIPESTATUS[0]}" -ne "0") ]]; then + if [[ ("${PIPESTATUS[0]}" -ne 0) ]]; then echo "ERROR: failed to execute validation suite" | tee -a "$TEST_RESULTS" fi ./cryptest.exe tv all 2>&1 | tee -a "$TEST_RESULTS" - if [[ ("${PIPESTATUS[0]}" -ne "0") ]]; then + if [[ ("${PIPESTATUS[0]}" -ne 0) ]]; then echo "ERROR: failed to execute test vectors" | tee -a "$TEST_RESULTS" fi fi @@ -5359,15 +5359,15 @@ if [[ "$IS_SOLARIS" -ne "0" ]]; then CXXFLAGS="-DNDEBUG -g2 -xO2" CXX=/opt/solarisstudio12.4/bin/CC CXXFLAGS="$CXXFLAGS" "$MAKE" "${MAKEARGS[@]}" static dynamic cryptest.exe 2>&1 | tee -a "$TEST_RESULTS" - if [[ ("${PIPESTATUS[0]}" -ne "0") ]]; then + if [[ ("${PIPESTATUS[0]}" -ne 0) ]]; then echo "ERROR: failed to make cryptest.exe" | tee -a "$TEST_RESULTS" else ./cryptest.exe v 2>&1 | tee -a "$TEST_RESULTS" - if [[ ("${PIPESTATUS[0]}" -ne "0") ]]; then + if [[ ("${PIPESTATUS[0]}" -ne 0) ]]; then echo "ERROR: failed to execute validation suite" | tee -a "$TEST_RESULTS" fi ./cryptest.exe tv all 2>&1 | tee -a "$TEST_RESULTS" - if [[ ("${PIPESTATUS[0]}" -ne "0") ]]; then + if [[ ("${PIPESTATUS[0]}" -ne 0) ]]; then echo "ERROR: failed to execute test vectors" | tee -a "$TEST_RESULTS" fi fi @@ -5392,15 +5392,15 @@ if [[ "$IS_SOLARIS" -ne "0" ]]; then CXXFLAGS="-DDEBUG -g3 -xO1" CXX=/opt/developerstudio12.5/bin/CC CXXFLAGS="$CXXFLAGS" "$MAKE" "${MAKEARGS[@]}" static dynamic cryptest.exe 2>&1 | tee -a "$TEST_RESULTS" - if [[ ("${PIPESTATUS[0]}" -ne "0") ]]; then + if [[ ("${PIPESTATUS[0]}" -ne 0) ]]; then echo "ERROR: failed to make cryptest.exe" | tee -a "$TEST_RESULTS" else ./cryptest.exe v 2>&1 | tee -a "$TEST_RESULTS" - if [[ ("${PIPESTATUS[0]}" -ne "0") ]]; then + if [[ ("${PIPESTATUS[0]}" -ne 0) ]]; then echo "ERROR: failed to execute validation suite" | tee -a "$TEST_RESULTS" fi ./cryptest.exe tv all 2>&1 | tee -a "$TEST_RESULTS" - if [[ ("${PIPESTATUS[0]}" -ne "0") ]]; then + if [[ ("${PIPESTATUS[0]}" -ne 0) ]]; then echo "ERROR: failed to execute test vectors" | tee -a "$TEST_RESULTS" fi fi @@ -5420,15 +5420,15 @@ if [[ "$IS_SOLARIS" -ne "0" ]]; then CXXFLAGS="-DNDEBUG -g2 -xO2" CXX=/opt/developerstudio12.5/bin/CC CXXFLAGS="$CXXFLAGS" "$MAKE" "${MAKEARGS[@]}" static dynamic cryptest.exe 2>&1 | tee -a "$TEST_RESULTS" - if [[ ("${PIPESTATUS[0]}" -ne "0") ]]; then + if [[ ("${PIPESTATUS[0]}" -ne 0) ]]; then echo "ERROR: failed to make cryptest.exe" | tee -a "$TEST_RESULTS" else ./cryptest.exe v 2>&1 | tee -a "$TEST_RESULTS" - if [[ ("${PIPESTATUS[0]}" -ne "0") ]]; then + if [[ ("${PIPESTATUS[0]}" -ne 0) ]]; then echo "ERROR: failed to execute validation suite" | tee -a "$TEST_RESULTS" fi ./cryptest.exe tv all 2>&1 | tee -a "$TEST_RESULTS" - if [[ ("${PIPESTATUS[0]}" -ne "0") ]]; then + if [[ ("${PIPESTATUS[0]}" -ne 0) ]]; then echo "ERROR: failed to execute test vectors" | tee -a "$TEST_RESULTS" fi fi @@ -5453,15 +5453,15 @@ if [[ "$IS_SOLARIS" -ne "0" ]]; then CXXFLAGS="-DDEBUG -g3 -xO1" CXX=/opt/developerstudio12.6/bin/CC CXXFLAGS="$CXXFLAGS" "$MAKE" "${MAKEARGS[@]}" static dynamic cryptest.exe 2>&1 | tee -a "$TEST_RESULTS" - if [[ ("${PIPESTATUS[0]}" -ne "0") ]]; then + if [[ ("${PIPESTATUS[0]}" -ne 0) ]]; then echo "ERROR: failed to make cryptest.exe" | tee -a "$TEST_RESULTS" else ./cryptest.exe v 2>&1 | tee -a "$TEST_RESULTS" - if [[ ("${PIPESTATUS[0]}" -ne "0") ]]; then + if [[ ("${PIPESTATUS[0]}" -ne 0) ]]; then echo "ERROR: failed to execute validation suite" | tee -a "$TEST_RESULTS" fi ./cryptest.exe tv all 2>&1 | tee -a "$TEST_RESULTS" - if [[ ("${PIPESTATUS[0]}" -ne "0") ]]; then + if [[ ("${PIPESTATUS[0]}" -ne 0) ]]; then echo "ERROR: failed to execute test vectors" | tee -a "$TEST_RESULTS" fi fi @@ -5481,15 +5481,15 @@ if [[ "$IS_SOLARIS" -ne "0" ]]; then CXXFLAGS="-DNDEBUG -g2 -xO2" CXX=/opt/developerstudio12.6/bin/CC CXXFLAGS="$CXXFLAGS" "$MAKE" "${MAKEARGS[@]}" static dynamic cryptest.exe 2>&1 | tee -a "$TEST_RESULTS" - if [[ ("${PIPESTATUS[0]}" -ne "0") ]]; then + if [[ ("${PIPESTATUS[0]}" -ne 0) ]]; then echo "ERROR: failed to make cryptest.exe" | tee -a "$TEST_RESULTS" else ./cryptest.exe v 2>&1 | tee -a "$TEST_RESULTS" - if [[ ("${PIPESTATUS[0]}" -ne "0") ]]; then + if [[ ("${PIPESTATUS[0]}" -ne 0) ]]; then echo "ERROR: failed to execute validation suite" | tee -a "$TEST_RESULTS" fi ./cryptest.exe tv all 2>&1 | tee -a "$TEST_RESULTS" - if [[ ("${PIPESTATUS[0]}" -ne "0") ]]; then + if [[ ("${PIPESTATUS[0]}" -ne 0) ]]; then echo "ERROR: failed to execute test vectors" | tee -a "$TEST_RESULTS" fi fi @@ -5514,15 +5514,15 @@ if [[ "$IS_SOLARIS" -ne "0" ]]; then CXXFLAGS="-DDEBUG -g3 -O0" CXX="/bin/g++" CXXFLAGS="$CXXFLAGS" "$MAKE" "${MAKEARGS[@]}" static dynamic cryptest.exe 2>&1 | tee -a "$TEST_RESULTS" - if [[ ("${PIPESTATUS[0]}" -ne "0") ]]; then + if [[ ("${PIPESTATUS[0]}" -ne 0) ]]; then echo "ERROR: failed to make cryptest.exe" | tee -a "$TEST_RESULTS" else ./cryptest.exe v 2>&1 | tee -a "$TEST_RESULTS" - if [[ ("${PIPESTATUS[0]}" -ne "0") ]]; then + if [[ ("${PIPESTATUS[0]}" -ne 0) ]]; then echo "ERROR: failed to execute validation suite" | tee -a "$TEST_RESULTS" fi ./cryptest.exe tv all 2>&1 | tee -a "$TEST_RESULTS" - if [[ ("${PIPESTATUS[0]}" -ne "0") ]]; then + if [[ ("${PIPESTATUS[0]}" -ne 0) ]]; then echo "ERROR: failed to execute test vectors" | tee -a "$TEST_RESULTS" fi fi @@ -5542,15 +5542,15 @@ if [[ "$IS_SOLARIS" -ne "0" ]]; then CXXFLAGS="-DNDEBUG -g2 -O3" CXX="/bin/g++" CXXFLAGS="$CXXFLAGS" "$MAKE" "${MAKEARGS[@]}" static dynamic cryptest.exe 2>&1 | tee -a "$TEST_RESULTS" - if [[ ("${PIPESTATUS[0]}" -ne "0") ]]; then + if [[ ("${PIPESTATUS[0]}" -ne 0) ]]; then echo "ERROR: failed to make cryptest.exe" | tee -a "$TEST_RESULTS" else ./cryptest.exe v 2>&1 | tee -a "$TEST_RESULTS" - if [[ ("${PIPESTATUS[0]}" -ne "0") ]]; then + if [[ ("${PIPESTATUS[0]}" -ne 0) ]]; then echo "ERROR: failed to execute validation suite" | tee -a "$TEST_RESULTS" fi ./cryptest.exe tv all 2>&1 | tee -a "$TEST_RESULTS" - if [[ ("${PIPESTATUS[0]}" -ne "0") ]]; then + if [[ ("${PIPESTATUS[0]}" -ne 0) ]]; then echo "ERROR: failed to execute test vectors" | tee -a "$TEST_RESULTS" fi fi @@ -5562,7 +5562,7 @@ fi ############################################ # Darwin, c++03, libc++ -if [[ ("$IS_DARWIN" -ne "0") && ("$HAVE_CXX03" -ne "0" && "$CLANG_COMPILER" -ne "0") ]]; then +if [[ ("$IS_DARWIN" -ne 0) && ("$HAVE_CXX03" -ne 0 && "$CLANG_COMPILER" -ne 0) ]]; then echo echo "************************************" | tee -a "$TEST_RESULTS" echo "Testing: Darwin, c++03, libc++ (LLVM)" | tee -a "$TEST_RESULTS" @@ -5576,15 +5576,15 @@ if [[ ("$IS_DARWIN" -ne "0") && ("$HAVE_CXX03" -ne "0" && "$CLANG_COMPILER" -ne CXXFLAGS="$RELEASE_CXXFLAGS -std=c++03 -stdlib=libc++ $USER_CXXFLAGS" CXX="$CXX" CXXFLAGS="$CXXFLAGS" "$MAKE" "${MAKEARGS[@]}" static cryptest.exe 2>&1 | tee -a "$TEST_RESULTS" - if [[ ("${PIPESTATUS[0]}" -ne "0") ]]; then + if [[ ("${PIPESTATUS[0]}" -ne 0) ]]; then echo "ERROR: failed to make cryptest.exe" | tee -a "$TEST_RESULTS" else ./cryptest.exe v 2>&1 | tee -a "$TEST_RESULTS" - if [[ ("${PIPESTATUS[0]}" -ne "0") ]]; then + if [[ ("${PIPESTATUS[0]}" -ne 0) ]]; then echo "ERROR: failed to execute validation suite" | tee -a "$TEST_RESULTS" fi ./cryptest.exe tv all 2>&1 | tee -a "$TEST_RESULTS" - if [[ ("${PIPESTATUS[0]}" -ne "0") ]]; then + if [[ ("${PIPESTATUS[0]}" -ne 0) ]]; then echo "ERROR: failed to execute test vectors" | tee -a "$TEST_RESULTS" fi fi @@ -5592,7 +5592,7 @@ fi ############################################ # Darwin, c++03, libstdc++ -if [[ ("$IS_DARWIN" -ne "0" && "$HAVE_CXX03" -ne "0") ]]; then +if [[ ("$IS_DARWIN" -ne 0 && "$HAVE_CXX03" -ne 0) ]]; then echo echo "************************************" | tee -a "$TEST_RESULTS" echo "Testing: Darwin, c++03, libstdc++ (GNU)" | tee -a "$TEST_RESULTS" @@ -5606,15 +5606,15 @@ if [[ ("$IS_DARWIN" -ne "0" && "$HAVE_CXX03" -ne "0") ]]; then CXXFLAGS="$RELEASE_CXXFLAGS -std=c++03 -stdlib=libstdc++ $USER_CXXFLAGS" CXX="$CXX" CXXFLAGS="$CXXFLAGS" "$MAKE" "${MAKEARGS[@]}" static cryptest.exe 2>&1 | tee -a "$TEST_RESULTS" - if [[ ("${PIPESTATUS[0]}" -ne "0") ]]; then + if [[ ("${PIPESTATUS[0]}" -ne 0) ]]; then echo "ERROR: failed to make cryptest.exe" | tee -a "$TEST_RESULTS" else ./cryptest.exe v 2>&1 | tee -a "$TEST_RESULTS" - if [[ ("${PIPESTATUS[0]}" -ne "0") ]]; then + if [[ ("${PIPESTATUS[0]}" -ne 0) ]]; then echo "ERROR: failed to execute validation suite" | tee -a "$TEST_RESULTS" fi ./cryptest.exe tv all 2>&1 | tee -a "$TEST_RESULTS" - if [[ ("${PIPESTATUS[0]}" -ne "0") ]]; then + if [[ ("${PIPESTATUS[0]}" -ne 0) ]]; then echo "ERROR: failed to execute test vectors" | tee -a "$TEST_RESULTS" fi fi @@ -5622,7 +5622,7 @@ fi ############################################ # Darwin, c++11, libc++ -if [[ ("$IS_DARWIN" -ne "0" && "$HAVE_CXX11" -ne "0" && "$CLANG_COMPILER" -ne "0") ]]; then +if [[ ("$IS_DARWIN" -ne 0 && "$HAVE_CXX11" -ne 0 && "$CLANG_COMPILER" -ne 0) ]]; then echo echo "************************************" | tee -a "$TEST_RESULTS" echo "Testing: Darwin, c++11, libc++ (LLVM)" | tee -a "$TEST_RESULTS" @@ -5636,15 +5636,15 @@ if [[ ("$IS_DARWIN" -ne "0" && "$HAVE_CXX11" -ne "0" && "$CLANG_COMPILER" -ne "0 CXXFLAGS="$RELEASE_CXXFLAGS -std=c++11 -stdlib=libc++ $USER_CXXFLAGS" CXX="$CXX" CXXFLAGS="$CXXFLAGS" "$MAKE" "${MAKEARGS[@]}" static cryptest.exe 2>&1 | tee -a "$TEST_RESULTS" - if [[ ("${PIPESTATUS[0]}" -ne "0") ]]; then + if [[ ("${PIPESTATUS[0]}" -ne 0) ]]; then echo "ERROR: failed to make cryptest.exe" | tee -a "$TEST_RESULTS" else ./cryptest.exe v 2>&1 | tee -a "$TEST_RESULTS" - if [[ ("${PIPESTATUS[0]}" -ne "0") ]]; then + if [[ ("${PIPESTATUS[0]}" -ne 0) ]]; then echo "ERROR: failed to execute validation suite" | tee -a "$TEST_RESULTS" fi ./cryptest.exe tv all 2>&1 | tee -a "$TEST_RESULTS" - if [[ ("${PIPESTATUS[0]}" -ne "0") ]]; then + if [[ ("${PIPESTATUS[0]}" -ne 0) ]]; then echo "ERROR: failed to execute test vectors" | tee -a "$TEST_RESULTS" fi fi @@ -5652,7 +5652,7 @@ fi ############################################ # Darwin, c++11, libstdc++ -if [[ ("$IS_DARWIN" -ne "0" && "$HAVE_CXX11" -ne "0") ]]; then +if [[ ("$IS_DARWIN" -ne 0 && "$HAVE_CXX11" -ne 0) ]]; then echo echo "************************************" | tee -a "$TEST_RESULTS" echo "Testing: Darwin, c++11, libstdc++ (GNU)" | tee -a "$TEST_RESULTS" @@ -5666,15 +5666,15 @@ if [[ ("$IS_DARWIN" -ne "0" && "$HAVE_CXX11" -ne "0") ]]; then CXXFLAGS="$RELEASE_CXXFLAGS -std=c++11 -stdlib=libstdc++ $USER_CXXFLAGS" CXX="$CXX" CXXFLAGS="$CXXFLAGS" "$MAKE" "${MAKEARGS[@]}" static cryptest.exe 2>&1 | tee -a "$TEST_RESULTS" - if [[ ("${PIPESTATUS[0]}" -ne "0") ]]; then + if [[ ("${PIPESTATUS[0]}" -ne 0) ]]; then echo "ERROR: failed to make cryptest.exe" | tee -a "$TEST_RESULTS" else ./cryptest.exe v 2>&1 | tee -a "$TEST_RESULTS" - if [[ ("${PIPESTATUS[0]}" -ne "0") ]]; then + if [[ ("${PIPESTATUS[0]}" -ne 0) ]]; then echo "ERROR: failed to execute validation suite" | tee -a "$TEST_RESULTS" fi ./cryptest.exe tv all 2>&1 | tee -a "$TEST_RESULTS" - if [[ ("${PIPESTATUS[0]}" -ne "0") ]]; then + if [[ ("${PIPESTATUS[0]}" -ne 0) ]]; then echo "ERROR: failed to execute test vectors" | tee -a "$TEST_RESULTS" fi fi @@ -5682,7 +5682,7 @@ fi ############################################ # Darwin, c++14, libc++ -if [[ ("$IS_DARWIN" -ne "0" && "$HAVE_CXX14" -ne "0" && "$CLANG_COMPILER" -ne "0") ]]; then +if [[ ("$IS_DARWIN" -ne 0 && "$HAVE_CXX14" -ne 0 && "$CLANG_COMPILER" -ne 0) ]]; then echo echo "************************************" | tee -a "$TEST_RESULTS" echo "Testing: Darwin, c++14, libc++ (LLVM)" | tee -a "$TEST_RESULTS" @@ -5696,15 +5696,15 @@ if [[ ("$IS_DARWIN" -ne "0" && "$HAVE_CXX14" -ne "0" && "$CLANG_COMPILER" -ne "0 CXXFLAGS="$RELEASE_CXXFLAGS -std=c++14 -stdlib=libc++ $USER_CXXFLAGS" CXX="$CXX" CXXFLAGS="$CXXFLAGS" "$MAKE" "${MAKEARGS[@]}" static cryptest.exe 2>&1 | tee -a "$TEST_RESULTS" - if [[ ("${PIPESTATUS[0]}" -ne "0") ]]; then + if [[ ("${PIPESTATUS[0]}" -ne 0) ]]; then echo "ERROR: failed to make cryptest.exe" | tee -a "$TEST_RESULTS" else ./cryptest.exe v 2>&1 | tee -a "$TEST_RESULTS" - if [[ ("${PIPESTATUS[0]}" -ne "0") ]]; then + if [[ ("${PIPESTATUS[0]}" -ne 0) ]]; then echo "ERROR: failed to execute validation suite" | tee -a "$TEST_RESULTS" fi ./cryptest.exe tv all 2>&1 | tee -a "$TEST_RESULTS" - if [[ ("${PIPESTATUS[0]}" -ne "0") ]]; then + if [[ ("${PIPESTATUS[0]}" -ne 0) ]]; then echo "ERROR: failed to execute test vectors" | tee -a "$TEST_RESULTS" fi fi @@ -5712,7 +5712,7 @@ fi ############################################ # Darwin, c++14, libstdc++ -if [[ ("$IS_DARWIN" -ne "0" && "$HAVE_CXX14" -ne "0") ]]; then +if [[ ("$IS_DARWIN" -ne 0 && "$HAVE_CXX14" -ne 0) ]]; then echo echo "************************************" | tee -a "$TEST_RESULTS" echo "Testing: Darwin, c++14, libstdc++ (GNU)" | tee -a "$TEST_RESULTS" @@ -5726,15 +5726,15 @@ if [[ ("$IS_DARWIN" -ne "0" && "$HAVE_CXX14" -ne "0") ]]; then CXXFLAGS="$RELEASE_CXXFLAGS -std=c++14 -stdlib=libstdc++ $USER_CXXFLAGS" CXX="$CXX" CXXFLAGS="$CXXFLAGS" "$MAKE" "${MAKEARGS[@]}" static cryptest.exe 2>&1 | tee -a "$TEST_RESULTS" - if [[ ("${PIPESTATUS[0]}" -ne "0") ]]; then + if [[ ("${PIPESTATUS[0]}" -ne 0) ]]; then echo "ERROR: failed to make cryptest.exe" | tee -a "$TEST_RESULTS" else ./cryptest.exe v 2>&1 | tee -a "$TEST_RESULTS" - if [[ ("${PIPESTATUS[0]}" -ne "0") ]]; then + if [[ ("${PIPESTATUS[0]}" -ne 0) ]]; then echo "ERROR: failed to execute validation suite" | tee -a "$TEST_RESULTS" fi ./cryptest.exe tv all 2>&1 | tee -a "$TEST_RESULTS" - if [[ ("${PIPESTATUS[0]}" -ne "0") ]]; then + if [[ ("${PIPESTATUS[0]}" -ne 0) ]]; then echo "ERROR: failed to execute test vectors" | tee -a "$TEST_RESULTS" fi fi @@ -5742,7 +5742,7 @@ fi ############################################ # Darwin, c++17, libc++ -if [[ ("$IS_DARWIN" -ne "0" && "$HAVE_CXX17" -ne "0" && "$CLANG_COMPILER" -ne "0") ]]; then +if [[ ("$IS_DARWIN" -ne 0 && "$HAVE_CXX17" -ne 0 && "$CLANG_COMPILER" -ne 0) ]]; then echo echo "************************************" | tee -a "$TEST_RESULTS" echo "Testing: Darwin, c++17, libc++ (LLVM)" | tee -a "$TEST_RESULTS" @@ -5756,15 +5756,15 @@ if [[ ("$IS_DARWIN" -ne "0" && "$HAVE_CXX17" -ne "0" && "$CLANG_COMPILER" -ne "0 CXXFLAGS="$RELEASE_CXXFLAGS -std=c++17 -stdlib=libc++ $USER_CXXFLAGS" CXX="$CXX" CXXFLAGS="$CXXFLAGS" "$MAKE" "${MAKEARGS[@]}" static cryptest.exe 2>&1 | tee -a "$TEST_RESULTS" - if [[ ("${PIPESTATUS[0]}" -ne "0") ]]; then + if [[ ("${PIPESTATUS[0]}" -ne 0) ]]; then echo "ERROR: failed to make cryptest.exe" | tee -a "$TEST_RESULTS" else ./cryptest.exe v 2>&1 | tee -a "$TEST_RESULTS" - if [[ ("${PIPESTATUS[0]}" -ne "0") ]]; then + if [[ ("${PIPESTATUS[0]}" -ne 0) ]]; then echo "ERROR: failed to execute validation suite" | tee -a "$TEST_RESULTS" fi ./cryptest.exe tv all 2>&1 | tee -a "$TEST_RESULTS" - if [[ ("${PIPESTATUS[0]}" -ne "0") ]]; then + if [[ ("${PIPESTATUS[0]}" -ne 0) ]]; then echo "ERROR: failed to execute test vectors" | tee -a "$TEST_RESULTS" fi fi @@ -5772,7 +5772,7 @@ fi ############################################ # Darwin, c++17, libstdc++ -if [[ ("$IS_DARWIN" -ne "0" && "$HAVE_CXX17" -ne "0") ]]; then +if [[ ("$IS_DARWIN" -ne 0 && "$HAVE_CXX17" -ne 0) ]]; then echo echo "************************************" | tee -a "$TEST_RESULTS" echo "Testing: Darwin, c++17, libstdc++ (GNU)" | tee -a "$TEST_RESULTS" @@ -5786,15 +5786,15 @@ if [[ ("$IS_DARWIN" -ne "0" && "$HAVE_CXX17" -ne "0") ]]; then CXXFLAGS="$RELEASE_CXXFLAGS -std=c++17 -stdlib=libstdc++ $USER_CXXFLAGS" CXX="$CXX" CXXFLAGS="$CXXFLAGS" "$MAKE" "${MAKEARGS[@]}" static cryptest.exe 2>&1 | tee -a "$TEST_RESULTS" - if [[ ("${PIPESTATUS[0]}" -ne "0") ]]; then + if [[ ("${PIPESTATUS[0]}" -ne 0) ]]; then echo "ERROR: failed to make cryptest.exe" | tee -a "$TEST_RESULTS" else ./cryptest.exe v 2>&1 | tee -a "$TEST_RESULTS" - if [[ ("${PIPESTATUS[0]}" -ne "0") ]]; then + if [[ ("${PIPESTATUS[0]}" -ne 0) ]]; then echo "ERROR: failed to execute validation suite" | tee -a "$TEST_RESULTS" fi ./cryptest.exe tv all 2>&1 | tee -a "$TEST_RESULTS" - if [[ ("${PIPESTATUS[0]}" -ne "0") ]]; then + if [[ ("${PIPESTATUS[0]}" -ne 0) ]]; then echo "ERROR: failed to execute test vectors" | tee -a "$TEST_RESULTS" fi fi @@ -5802,7 +5802,7 @@ fi ############################################ # Darwin, Intel multiarch, c++03 -if [[ "$IS_DARWIN" -ne "0" && "$HAVE_INTEL_MULTIARCH" -ne "0" && "$HAVE_CXX03" -ne "0" ]]; then +if [[ "$IS_DARWIN" -ne 0 && "$HAVE_INTEL_MULTIARCH" -ne 0 && "$HAVE_CXX03" -ne 0 ]]; then echo echo "************************************" | tee -a "$TEST_RESULTS" echo "Testing: Darwin, Intel multiarch, c++03" | tee -a "$TEST_RESULTS" @@ -5816,26 +5816,26 @@ if [[ "$IS_DARWIN" -ne "0" && "$HAVE_INTEL_MULTIARCH" -ne "0" && "$HAVE_CXX03" - CXXFLAGS="$RELEASE_CXXFLAGS -arch i386 -arch x86_64 -std=c++03 -DCRYPTOPP_DISABLE_ASM $USER_CXXFLAGS" CXX="$CXX" CXXFLAGS="$CXXFLAGS" "$MAKE" "${MAKEARGS[@]}" static cryptest.exe 2>&1 | tee -a "$TEST_RESULTS" - if [[ ("${PIPESTATUS[0]}" -ne "0") ]]; then + if [[ ("${PIPESTATUS[0]}" -ne 0) ]]; then echo "ERROR: failed to make cryptest.exe" | tee -a "$TEST_RESULTS" else echo "Running i386 version..." arch -i386 ./cryptest.exe v 2>&1 | tee -a "$TEST_RESULTS" - if [[ ("${PIPESTATUS[0]}" -ne "0") ]]; then + if [[ ("${PIPESTATUS[0]}" -ne 0) ]]; then echo "ERROR: failed to execute validation suite (i386)" | tee -a "$TEST_RESULTS" fi arch -i386 ./cryptest.exe tv all 2>&1 | tee -a "$TEST_RESULTS" - if [[ ("${PIPESTATUS[0]}" -ne "0") ]]; then + if [[ ("${PIPESTATUS[0]}" -ne 0) ]]; then echo "ERROR: failed to execute test vectors (i386)" | tee -a "$TEST_RESULTS" fi echo "Running x86_64 version..." arch -x86_64 ./cryptest.exe v 2>&1 | tee -a "$TEST_RESULTS" - if [[ ("${PIPESTATUS[0]}" -ne "0") ]]; then + if [[ ("${PIPESTATUS[0]}" -ne 0) ]]; then echo "ERROR: failed to execute validation suite (x86_64)" | tee -a "$TEST_RESULTS" fi arch -x86_64 ./cryptest.exe tv all 2>&1 | tee -a "$TEST_RESULTS" - if [[ ("${PIPESTATUS[0]}" -ne "0") ]]; then + if [[ ("${PIPESTATUS[0]}" -ne 0) ]]; then echo "ERROR: failed to execute test vectors (x86_64)" | tee -a "$TEST_RESULTS" fi fi @@ -5843,7 +5843,7 @@ fi ############################################ # Darwin, Intel multiarch, c++11 -if [[ "$IS_DARWIN" -ne "0" && "$HAVE_INTEL_MULTIARCH" -ne "0" && "$HAVE_CXX11" -ne "0" ]]; then +if [[ "$IS_DARWIN" -ne 0 && "$HAVE_INTEL_MULTIARCH" -ne 0 && "$HAVE_CXX11" -ne 0 ]]; then echo echo "************************************" | tee -a "$TEST_RESULTS" echo "Testing: Darwin, Intel multiarch, c++11" | tee -a "$TEST_RESULTS" @@ -5857,26 +5857,26 @@ if [[ "$IS_DARWIN" -ne "0" && "$HAVE_INTEL_MULTIARCH" -ne "0" && "$HAVE_CXX11" - CXXFLAGS="$RELEASE_CXXFLAGS -arch i386 -arch x86_64 -std=c++11 -DCRYPTOPP_DISABLE_ASM $USER_CXXFLAGS" CXX="$CXX" CXXFLAGS="$CXXFLAGS" "$MAKE" "${MAKEARGS[@]}" static cryptest.exe 2>&1 | tee -a "$TEST_RESULTS" - if [[ ("${PIPESTATUS[0]}" -ne "0") ]]; then + if [[ ("${PIPESTATUS[0]}" -ne 0) ]]; then echo "ERROR: failed to make cryptest.exe" | tee -a "$TEST_RESULTS" else echo "Running i386 version..." arch -i386 ./cryptest.exe v 2>&1 | tee -a "$TEST_RESULTS" - if [[ ("${PIPESTATUS[0]}" -ne "0") ]]; then + if [[ ("${PIPESTATUS[0]}" -ne 0) ]]; then echo "ERROR: failed to execute validation suite (i386)" | tee -a "$TEST_RESULTS" fi arch -i386 ./cryptest.exe tv all 2>&1 | tee -a "$TEST_RESULTS" - if [[ ("${PIPESTATUS[0]}" -ne "0") ]]; then + if [[ ("${PIPESTATUS[0]}" -ne 0) ]]; then echo "ERROR: failed to execute test vectors (i386)" | tee -a "$TEST_RESULTS" fi echo "Running x86_64 version..." arch -x86_64 ./cryptest.exe v 2>&1 | tee -a "$TEST_RESULTS" - if [[ ("${PIPESTATUS[0]}" -ne "0") ]]; then + if [[ ("${PIPESTATUS[0]}" -ne 0) ]]; then echo "ERROR: failed to execute validation suite (x86_64)" | tee -a "$TEST_RESULTS" fi arch -x86_64 ./cryptest.exe tv all 2>&1 | tee -a "$TEST_RESULTS" - if [[ ("${PIPESTATUS[0]}" -ne "0") ]]; then + if [[ ("${PIPESTATUS[0]}" -ne 0) ]]; then echo "ERROR: failed to execute test vectors (x86_64)" | tee -a "$TEST_RESULTS" fi fi @@ -5884,7 +5884,7 @@ fi ############################################ # Darwin, Intel multiarch, c++14 -if [[ "$IS_DARWIN" -ne "0" && "$HAVE_INTEL_MULTIARCH" -ne "0" && "$HAVE_CXX14" -ne "0" ]]; then +if [[ "$IS_DARWIN" -ne 0 && "$HAVE_INTEL_MULTIARCH" -ne 0 && "$HAVE_CXX14" -ne 0 ]]; then echo echo "************************************" | tee -a "$TEST_RESULTS" echo "Testing: Darwin, Intel multiarch, c++14" | tee -a "$TEST_RESULTS" @@ -5898,26 +5898,26 @@ if [[ "$IS_DARWIN" -ne "0" && "$HAVE_INTEL_MULTIARCH" -ne "0" && "$HAVE_CXX14" - CXXFLAGS="$RELEASE_CXXFLAGS -arch i386 -arch x86_64 -std=c++14 -DCRYPTOPP_DISABLE_ASM $USER_CXXFLAGS" CXX="$CXX" CXXFLAGS="$CXXFLAGS" "$MAKE" "${MAKEARGS[@]}" static cryptest.exe 2>&1 | tee -a "$TEST_RESULTS" - if [[ ("${PIPESTATUS[0]}" -ne "0") ]]; then + if [[ ("${PIPESTATUS[0]}" -ne 0) ]]; then echo "ERROR: failed to make cryptest.exe" | tee -a "$TEST_RESULTS" else echo "Running i386 version..." arch -i386 ./cryptest.exe v 2>&1 | tee -a "$TEST_RESULTS" - if [[ ("${PIPESTATUS[0]}" -ne "0") ]]; then + if [[ ("${PIPESTATUS[0]}" -ne 0) ]]; then echo "ERROR: failed to execute validation suite (i386)" | tee -a "$TEST_RESULTS" fi arch -i386 ./cryptest.exe tv all 2>&1 | tee -a "$TEST_RESULTS" - if [[ ("${PIPESTATUS[0]}" -ne "0") ]]; then + if [[ ("${PIPESTATUS[0]}" -ne 0) ]]; then echo "ERROR: failed to execute test vectors (i386)" | tee -a "$TEST_RESULTS" fi echo "Running x86_64 version..." arch -x86_64 ./cryptest.exe v 2>&1 | tee -a "$TEST_RESULTS" - if [[ ("${PIPESTATUS[0]}" -ne "0") ]]; then + if [[ ("${PIPESTATUS[0]}" -ne 0) ]]; then echo "ERROR: failed to execute validation suite (x86_64)" | tee -a "$TEST_RESULTS" fi arch -x86_64 ./cryptest.exe tv all 2>&1 | tee -a "$TEST_RESULTS" - if [[ ("${PIPESTATUS[0]}" -ne "0") ]]; then + if [[ ("${PIPESTATUS[0]}" -ne 0) ]]; then echo "ERROR: failed to execute test vectors (x86_64)" | tee -a "$TEST_RESULTS" fi fi @@ -5925,7 +5925,7 @@ fi ############################################ # Darwin, Intel multiarch, c++17 -if [[ "$IS_DARWIN" -ne "0" && "$HAVE_INTEL_MULTIARCH" -ne "0" && "$HAVE_CXX17" -ne "0" ]]; then +if [[ "$IS_DARWIN" -ne 0 && "$HAVE_INTEL_MULTIARCH" -ne 0 && "$HAVE_CXX17" -ne 0 ]]; then echo echo "************************************" | tee -a "$TEST_RESULTS" echo "Testing: Darwin, Intel multiarch, c++17" | tee -a "$TEST_RESULTS" @@ -5939,26 +5939,26 @@ if [[ "$IS_DARWIN" -ne "0" && "$HAVE_INTEL_MULTIARCH" -ne "0" && "$HAVE_CXX17" - CXXFLAGS="$RELEASE_CXXFLAGS -arch i386 -arch x86_64 -std=c++17 -DCRYPTOPP_DISABLE_ASM $USER_CXXFLAGS" CXX="$CXX" CXXFLAGS="$CXXFLAGS" "$MAKE" "${MAKEARGS[@]}" static cryptest.exe 2>&1 | tee -a "$TEST_RESULTS" - if [[ ("${PIPESTATUS[0]}" -ne "0") ]]; then + if [[ ("${PIPESTATUS[0]}" -ne 0) ]]; then echo "ERROR: failed to make cryptest.exe" | tee -a "$TEST_RESULTS" else echo "Running i386 version..." arch -i386 ./cryptest.exe v 2>&1 | tee -a "$TEST_RESULTS" - if [[ ("${PIPESTATUS[0]}" -ne "0") ]]; then + if [[ ("${PIPESTATUS[0]}" -ne 0) ]]; then echo "ERROR: failed to execute validation suite (i386)" | tee -a "$TEST_RESULTS" fi arch -i386 ./cryptest.exe tv all 2>&1 | tee -a "$TEST_RESULTS" - if [[ ("${PIPESTATUS[0]}" -ne "0") ]]; then + if [[ ("${PIPESTATUS[0]}" -ne 0) ]]; then echo "ERROR: failed to execute test vectors (i386)" | tee -a "$TEST_RESULTS" fi echo "Running x86_64 version..." arch -x86_64 ./cryptest.exe v 2>&1 | tee -a "$TEST_RESULTS" - if [[ ("${PIPESTATUS[0]}" -ne "0") ]]; then + if [[ ("${PIPESTATUS[0]}" -ne 0) ]]; then echo "ERROR: failed to execute validation suite (x86_64)" | tee -a "$TEST_RESULTS" fi arch -x86_64 ./cryptest.exe tv all 2>&1 | tee -a "$TEST_RESULTS" - if [[ ("${PIPESTATUS[0]}" -ne "0") ]]; then + if [[ ("${PIPESTATUS[0]}" -ne 0) ]]; then echo "ERROR: failed to execute test vectors (x86_64)" | tee -a "$TEST_RESULTS" fi fi @@ -5966,7 +5966,7 @@ fi ############################################ # Darwin, PowerPC multiarch -if [[ ("$IS_DARWIN" -ne "0" && "$HAVE_PPC_MULTIARCH" -ne "0") ]]; then +if [[ ("$IS_DARWIN" -ne 0 && "$HAVE_PPC_MULTIARCH" -ne 0) ]]; then echo echo "************************************" | tee -a "$TEST_RESULTS" echo "Testing: Darwin, PowerPC multiarch" | tee -a "$TEST_RESULTS" @@ -5980,26 +5980,26 @@ if [[ ("$IS_DARWIN" -ne "0" && "$HAVE_PPC_MULTIARCH" -ne "0") ]]; then CXXFLAGS="$RELEASE_CXXFLAGS -arch ppc -arch ppc64 -DCRYPTOPP_DISABLE_ASM $USER_CXXFLAGS" CXX="$CXX" CXXFLAGS="$CXXFLAGS" "$MAKE" "${MAKEARGS[@]}" static cryptest.exe 2>&1 | tee -a "$TEST_RESULTS" - if [[ ("${PIPESTATUS[0]}" -ne "0") ]]; then + if [[ ("${PIPESTATUS[0]}" -ne 0) ]]; then echo "ERROR: failed to make cryptest.exe" | tee -a "$TEST_RESULTS" else echo "Running PPC version..." arch -ppc ./cryptest.exe v 2>&1 | tee -a "$TEST_RESULTS" - if [[ ("${PIPESTATUS[0]}" -ne "0") ]]; then + if [[ ("${PIPESTATUS[0]}" -ne 0) ]]; then echo "ERROR: failed to execute validation suite (PPC)" | tee -a "$TEST_RESULTS" fi arch -ppc ./cryptest.exe tv all 2>&1 | tee -a "$TEST_RESULTS" - if [[ ("${PIPESTATUS[0]}" -ne "0") ]]; then + if [[ ("${PIPESTATUS[0]}" -ne 0) ]]; then echo "ERROR: failed to execute test vectors (PPC)" | tee -a "$TEST_RESULTS" fi echo "Running PPC64 version..." arch -ppc64 ./cryptest.exe v 2>&1 | tee -a "$TEST_RESULTS" - if [[ ("${PIPESTATUS[0]}" -ne "0") ]]; then + if [[ ("${PIPESTATUS[0]}" -ne 0) ]]; then echo "ERROR: failed to execute validation suite (PPC64)" | tee -a "$TEST_RESULTS" fi arch -ppc64 ./cryptest.exe tv all 2>&1 | tee -a "$TEST_RESULTS" - if [[ ("${PIPESTATUS[0]}" -ne "0") ]]; then + if [[ ("${PIPESTATUS[0]}" -ne 0) ]]; then echo "ERROR: failed to execute test vectors (PPC64)" | tee -a "$TEST_RESULTS" fi fi @@ -6007,7 +6007,7 @@ fi ############################################ # Darwin, c++03, Malloc Guards -if [[ ("$IS_DARWIN" -ne "0" && "$HAVE_CXX03" -ne "0") ]]; then +if [[ ("$IS_DARWIN" -ne 0 && "$HAVE_CXX03" -ne 0) ]]; then echo echo "************************************" | tee -a "$TEST_RESULTS" echo "Testing: Darwin, c++03, Malloc Guards" | tee -a "$TEST_RESULTS" @@ -6021,7 +6021,7 @@ if [[ ("$IS_DARWIN" -ne "0" && "$HAVE_CXX03" -ne "0") ]]; then CXXFLAGS="$RELEASE_CXXFLAGS -std=c++03 $USER_CXXFLAGS" CXX="$CXX" CXXFLAGS="$CXXFLAGS" "$MAKE" "${MAKEARGS[@]}" static cryptest.exe 2>&1 | tee -a "$TEST_RESULTS" - if [[ ("${PIPESTATUS[0]}" -ne "0") ]]; then + if [[ ("${PIPESTATUS[0]}" -ne 0) ]]; then echo "ERROR: failed to make cryptest.exe" | tee -a "$TEST_RESULTS" else export MallocScribble=1 @@ -6029,11 +6029,11 @@ if [[ ("$IS_DARWIN" -ne "0" && "$HAVE_CXX03" -ne "0") ]]; then export MallocGuardEdges=1 ./cryptest.exe v 2>&1 | tee -a "$TEST_RESULTS" - if [[ ("${PIPESTATUS[0]}" -ne "0") ]]; then + if [[ ("${PIPESTATUS[0]}" -ne 0) ]]; then echo "ERROR: failed to execute validation suite" | tee -a "$TEST_RESULTS" fi ./cryptest.exe tv all 2>&1 | tee -a "$TEST_RESULTS" - if [[ ("${PIPESTATUS[0]}" -ne "0") ]]; then + if [[ ("${PIPESTATUS[0]}" -ne 0) ]]; then echo "ERROR: failed to execute test vectors" | tee -a "$TEST_RESULTS" fi @@ -6043,7 +6043,7 @@ fi ############################################ # Darwin, c++11, Malloc Guards -if [[ ("$IS_DARWIN" -ne "0" && "$HAVE_CXX11" -ne "0") ]]; then +if [[ ("$IS_DARWIN" -ne 0 && "$HAVE_CXX11" -ne 0) ]]; then echo echo "************************************" | tee -a "$TEST_RESULTS" echo "Testing: Darwin, c++11, Malloc Guards" | tee -a "$TEST_RESULTS" @@ -6057,7 +6057,7 @@ if [[ ("$IS_DARWIN" -ne "0" && "$HAVE_CXX11" -ne "0") ]]; then CXXFLAGS="$RELEASE_CXXFLAGS -std=c++11 $USER_CXXFLAGS" CXX="$CXX" CXXFLAGS="$CXXFLAGS" "$MAKE" "${MAKEARGS[@]}" static cryptest.exe 2>&1 | tee -a "$TEST_RESULTS" - if [[ ("${PIPESTATUS[0]}" -ne "0") ]]; then + if [[ ("${PIPESTATUS[0]}" -ne 0) ]]; then echo "ERROR: failed to make cryptest.exe" | tee -a "$TEST_RESULTS" else export MallocScribble=1 @@ -6065,11 +6065,11 @@ if [[ ("$IS_DARWIN" -ne "0" && "$HAVE_CXX11" -ne "0") ]]; then export MallocGuardEdges=1 ./cryptest.exe v 2>&1 | tee -a "$TEST_RESULTS" - if [[ ("${PIPESTATUS[0]}" -ne "0") ]]; then + if [[ ("${PIPESTATUS[0]}" -ne 0) ]]; then echo "ERROR: failed to execute validation suite" | tee -a "$TEST_RESULTS" fi ./cryptest.exe tv all 2>&1 | tee -a "$TEST_RESULTS" - if [[ ("${PIPESTATUS[0]}" -ne "0") ]]; then + if [[ ("${PIPESTATUS[0]}" -ne 0) ]]; then echo "ERROR: failed to execute test vectors" | tee -a "$TEST_RESULTS" fi @@ -6079,7 +6079,7 @@ fi ############################################ # Darwin, c++14, Malloc Guards -if [[ ("$IS_DARWIN" -ne "0" && "$HAVE_CXX14" -ne "0") ]]; then +if [[ ("$IS_DARWIN" -ne 0 && "$HAVE_CXX14" -ne 0) ]]; then echo echo "************************************" | tee -a "$TEST_RESULTS" echo "Testing: Darwin, c++14, Malloc Guards" | tee -a "$TEST_RESULTS" @@ -6093,7 +6093,7 @@ if [[ ("$IS_DARWIN" -ne "0" && "$HAVE_CXX14" -ne "0") ]]; then CXXFLAGS="$RELEASE_CXXFLAGS -std=c++14 $USER_CXXFLAGS" CXX="$CXX" CXXFLAGS="$CXXFLAGS" "$MAKE" "${MAKEARGS[@]}" static cryptest.exe 2>&1 | tee -a "$TEST_RESULTS" - if [[ ("${PIPESTATUS[0]}" -ne "0") ]]; then + if [[ ("${PIPESTATUS[0]}" -ne 0) ]]; then echo "ERROR: failed to make cryptest.exe" | tee -a "$TEST_RESULTS" else export MallocScribble=1 @@ -6101,11 +6101,11 @@ if [[ ("$IS_DARWIN" -ne "0" && "$HAVE_CXX14" -ne "0") ]]; then export MallocGuardEdges=1 ./cryptest.exe v 2>&1 | tee -a "$TEST_RESULTS" - if [[ ("${PIPESTATUS[0]}" -ne "0") ]]; then + if [[ ("${PIPESTATUS[0]}" -ne 0) ]]; then echo "ERROR: failed to execute validation suite" | tee -a "$TEST_RESULTS" fi ./cryptest.exe tv all 2>&1 | tee -a "$TEST_RESULTS" - if [[ ("${PIPESTATUS[0]}" -ne "0") ]]; then + if [[ ("${PIPESTATUS[0]}" -ne 0) ]]; then echo "ERROR: failed to execute test vectors" | tee -a "$TEST_RESULTS" fi @@ -6115,7 +6115,7 @@ fi ############################################ # Darwin, c++17, Malloc Guards -if [[ ("$IS_DARWIN" -ne "0" && "$HAVE_CXX17" -ne "0") ]]; then +if [[ ("$IS_DARWIN" -ne 0 && "$HAVE_CXX17" -ne 0) ]]; then echo echo "************************************" | tee -a "$TEST_RESULTS" echo "Testing: Darwin, c++17, Malloc Guards" | tee -a "$TEST_RESULTS" @@ -6129,7 +6129,7 @@ if [[ ("$IS_DARWIN" -ne "0" && "$HAVE_CXX17" -ne "0") ]]; then CXXFLAGS="$RELEASE_CXXFLAGS -std=c++17 $USER_CXXFLAGS" CXX="$CXX" CXXFLAGS="$CXXFLAGS" "$MAKE" "${MAKEARGS[@]}" static cryptest.exe 2>&1 | tee -a "$TEST_RESULTS" - if [[ ("${PIPESTATUS[0]}" -ne "0") ]]; then + if [[ ("${PIPESTATUS[0]}" -ne 0) ]]; then echo "ERROR: failed to make cryptest.exe" | tee -a "$TEST_RESULTS" else export MallocScribble=1 @@ -6137,11 +6137,11 @@ if [[ ("$IS_DARWIN" -ne "0" && "$HAVE_CXX17" -ne "0") ]]; then export MallocGuardEdges=1 ./cryptest.exe v 2>&1 | tee -a "$TEST_RESULTS" - if [[ ("${PIPESTATUS[0]}" -ne "0") ]]; then + if [[ ("${PIPESTATUS[0]}" -ne 0) ]]; then echo "ERROR: failed to execute validation suite" | tee -a "$TEST_RESULTS" fi ./cryptest.exe tv all 2>&1 | tee -a "$TEST_RESULTS" - if [[ ("${PIPESTATUS[0]}" -ne "0") ]]; then + if [[ ("${PIPESTATUS[0]}" -ne 0) ]]; then echo "ERROR: failed to execute test vectors" | tee -a "$TEST_RESULTS" fi @@ -6151,11 +6151,11 @@ fi ############################################ # Benchmarks -if [[ "$WANT_BENCHMARKS" -ne "0" ]]; then +if [[ "$WANT_BENCHMARKS" -ne 0 ]]; then ############################################ # Benchmarks, c++03 - if [[ "$HAVE_CXX03" -ne "0" ]]; then + if [[ "$HAVE_CXX03" -ne 0 ]]; then echo echo "************************************" | tee -a "$TEST_RESULTS" echo "Testing: Benchmarks, c++03" | tee -a "$TEST_RESULTS" @@ -6169,12 +6169,12 @@ if [[ "$WANT_BENCHMARKS" -ne "0" ]]; then CXXFLAGS="$RELEASE_CXXFLAGS -std=c++03 $USER_CXXFLAGS" CXX="$CXX" CXXFLAGS="$CXXFLAGS" "$MAKE" "${MAKEARGS[@]}" static cryptest.exe 2>&1 | tee -a "$TEST_RESULTS" - if [[ ("${PIPESTATUS[0]}" -ne "0") ]]; then + if [[ ("${PIPESTATUS[0]}" -ne 0) ]]; then echo "ERROR: failed to make cryptest.exe" | tee -a "$TEST_RESULTS" else echo "**************************************" >> "$BENCHMARK_RESULTS" ./cryptest.exe b 3 "$CPU_FREQ" 2>&1 | tee -a "$BENCHMARK_RESULTS" - if [[ ("${PIPESTATUS[0]}" -ne "0") ]]; then + if [[ ("${PIPESTATUS[0]}" -ne 0) ]]; then echo "ERROR: failed to execute benchmarks" | tee -a "$BENCHMARK_RESULTS" fi fi @@ -6182,7 +6182,7 @@ if [[ "$WANT_BENCHMARKS" -ne "0" ]]; then ############################################ # Benchmarks, c++11 - if [[ "$HAVE_CXX11" -ne "0" ]]; then + if [[ "$HAVE_CXX11" -ne 0 ]]; then echo echo "************************************" | tee -a "$TEST_RESULTS" echo "Testing: Benchmarks, c++11" | tee -a "$TEST_RESULTS" @@ -6196,12 +6196,12 @@ if [[ "$WANT_BENCHMARKS" -ne "0" ]]; then CXXFLAGS="$RELEASE_CXXFLAGS -std=c++11 $USER_CXXFLAGS" CXX="$CXX" CXXFLAGS="$CXXFLAGS" "$MAKE" "${MAKEARGS[@]}" static cryptest.exe 2>&1 | tee -a "$TEST_RESULTS" - if [[ ("${PIPESTATUS[0]}" -ne "0") ]]; then + if [[ ("${PIPESTATUS[0]}" -ne 0) ]]; then echo "ERROR: failed to make cryptest.exe" | tee -a "$TEST_RESULTS" else echo "**************************************" >> "$BENCHMARK_RESULTS" ./cryptest.exe b 3 "$CPU_FREQ" 2>&1 | tee -a "$BENCHMARK_RESULTS" - if [[ ("${PIPESTATUS[0]}" -ne "0") ]]; then + if [[ ("${PIPESTATUS[0]}" -ne 0) ]]; then echo "ERROR: failed to execute benchmarks" | tee -a "$BENCHMARK_RESULTS" fi fi @@ -6209,7 +6209,7 @@ if [[ "$WANT_BENCHMARKS" -ne "0" ]]; then ############################################ # Benchmarks, c++14 - if [[ "$HAVE_CXX14" -ne "0" ]]; then + if [[ "$HAVE_CXX14" -ne 0 ]]; then echo echo "************************************" | tee -a "$TEST_RESULTS" echo "Testing: Benchmarks, c++14" | tee -a "$TEST_RESULTS" @@ -6223,12 +6223,12 @@ if [[ "$WANT_BENCHMARKS" -ne "0" ]]; then CXXFLAGS="$RELEASE_CXXFLAGS -std=c++14 $USER_CXXFLAGS" CXX="$CXX" CXXFLAGS="$CXXFLAGS" "$MAKE" "${MAKEARGS[@]}" static cryptest.exe 2>&1 | tee -a "$TEST_RESULTS" - if [[ ("${PIPESTATUS[0]}" -ne "0") ]]; then + if [[ ("${PIPESTATUS[0]}" -ne 0) ]]; then echo "ERROR: failed to make cryptest.exe" | tee -a "$TEST_RESULTS" else echo "**************************************" >> "$BENCHMARK_RESULTS" ./cryptest.exe b 3 "$CPU_FREQ" 2>&1 | tee -a "$BENCHMARK_RESULTS" - if [[ ("${PIPESTATUS[0]}" -ne "0") ]]; then + if [[ ("${PIPESTATUS[0]}" -ne 0) ]]; then echo "ERROR: failed to execute benchmarks" | tee -a "$BENCHMARK_RESULTS" fi fi @@ -6240,7 +6240,7 @@ fi ############################################ # MinGW and PREFER_BERKELEY_STYLE_SOCKETS -if [[ "$IS_MINGW" -ne "0" ]]; then +if [[ "$IS_MINGW" -ne 0 ]]; then echo echo "************************************" | tee -a "$TEST_RESULTS" echo "Testing: MinGW, PREFER_BERKELEY_STYLE_SOCKETS" | tee -a "$TEST_RESULTS" @@ -6254,15 +6254,15 @@ if [[ "$IS_MINGW" -ne "0" ]]; then CXXFLAGS="$RELEASE_CXXFLAGS -DPREFER_BERKELEY_STYLE_SOCKETS -DNO_WINDOWS_STYLE_SOCKETS $USER_CXXFLAGS" CXX="$CXX" CXXFLAGS="$CXXFLAGS" "$MAKE" "${MAKEARGS[@]}" static cryptest.exe 2>&1 | tee -a "$TEST_RESULTS" - if [[ ("${PIPESTATUS[0]}" -ne "0") ]]; then + if [[ ("${PIPESTATUS[0]}" -ne 0) ]]; then echo "ERROR: failed to make cryptest.exe" | tee -a "$TEST_RESULTS" else ./cryptest.exe v 2>&1 | tee -a "$TEST_RESULTS" - if [[ ("${PIPESTATUS[0]}" -ne "0") ]]; then + if [[ ("${PIPESTATUS[0]}" -ne 0) ]]; then echo "ERROR: failed to execute validation suite" | tee -a "$TEST_RESULTS" fi ./cryptest.exe tv all 2>&1 | tee -a "$TEST_RESULTS" - if [[ ("${PIPESTATUS[0]}" -ne "0") ]]; then + if [[ ("${PIPESTATUS[0]}" -ne 0) ]]; then echo "ERROR: failed to execute test vectors" | tee -a "$TEST_RESULTS" fi fi @@ -6270,7 +6270,7 @@ fi ############################################ # MinGW and PREFER_WINDOWS_STYLE_SOCKETS -if [[ "$IS_MINGW" -ne "0" ]]; then +if [[ "$IS_MINGW" -ne 0 ]]; then echo echo "************************************" | tee -a "$TEST_RESULTS" echo "Testing: MinGW, PREFER_WINDOWS_STYLE_SOCKETS" | tee -a "$TEST_RESULTS" @@ -6284,15 +6284,15 @@ if [[ "$IS_MINGW" -ne "0" ]]; then CXXFLAGS="$RELEASE_CXXFLAGS -DPREFER_WINDOWS_STYLE_SOCKETS -DNO_BERKELEY_STYLE_SOCKETS $USER_CXXFLAGS" CXX="$CXX" CXXFLAGS="$CXXFLAGS" "$MAKE" "${MAKEARGS[@]}" static cryptest.exe 2>&1 | tee -a "$TEST_RESULTS" - if [[ ("${PIPESTATUS[0]}" -ne "0") ]]; then + if [[ ("${PIPESTATUS[0]}" -ne 0) ]]; then echo "ERROR: failed to make cryptest.exe" | tee -a "$TEST_RESULTS" else ./cryptest.exe v 2>&1 | tee -a "$TEST_RESULTS" - if [[ ("${PIPESTATUS[0]}" -ne "0") ]]; then + if [[ ("${PIPESTATUS[0]}" -ne 0) ]]; then echo "ERROR: failed to execute validation suite" | tee -a "$TEST_RESULTS" fi ./cryptest.exe tv all 2>&1 | tee -a "$TEST_RESULTS" - if [[ ("${PIPESTATUS[0]}" -ne "0") ]]; then + if [[ ("${PIPESTATUS[0]}" -ne 0) ]]; then echo "ERROR: failed to execute test vectors" | tee -a "$TEST_RESULTS" fi fi @@ -6300,7 +6300,7 @@ fi ############################################ # Valgrind, c++03. Requires -O1 for accurate results -if [[ "$HAVE_CXX03" -ne "0" && "$HAVE_VALGRIND" -ne "0" ]]; then +if [[ "$HAVE_CXX03" -ne 0 && "$HAVE_VALGRIND" -ne 0 ]]; then echo echo "************************************" | tee -a "$TEST_RESULTS" echo "Testing: Valgrind, c++03" | tee -a "$TEST_RESULTS" @@ -6314,7 +6314,7 @@ if [[ "$HAVE_CXX03" -ne "0" && "$HAVE_VALGRIND" -ne "0" ]]; then CXXFLAGS="$VALGRIND_CXXFLAGS -std=c++03 $USER_CXXFLAGS" CXX="$CXX" CXXFLAGS="$CXXFLAGS" "$MAKE" "${MAKEARGS[@]}" static cryptest.exe 2>&1 | tee -a "$TEST_RESULTS" - if [[ ("${PIPESTATUS[0]}" -ne "0") ]]; then + if [[ ("${PIPESTATUS[0]}" -ne 0) ]]; then echo "ERROR: failed to make cryptest.exe" | tee -a "$TEST_RESULTS" else valgrind --track-origins=yes --suppressions=cryptopp.supp ./cryptest.exe v 2>&1 | tee -a "$TEST_RESULTS" @@ -6324,7 +6324,7 @@ fi ############################################ # Valgrind, c++11. Requires -O1 for accurate results -if [[ ("$HAVE_VALGRIND" -ne "0" && "$HAVE_CXX11" -ne "0") ]]; then +if [[ ("$HAVE_VALGRIND" -ne 0 && "$HAVE_CXX11" -ne 0) ]]; then echo echo "************************************" | tee -a "$TEST_RESULTS" echo "Testing: Valgrind, c++11" | tee -a "$TEST_RESULTS" @@ -6338,7 +6338,7 @@ if [[ ("$HAVE_VALGRIND" -ne "0" && "$HAVE_CXX11" -ne "0") ]]; then CXXFLAGS="$VALGRIND_CXXFLAGS -std=c++11 $USER_CXXFLAGS" CXX="$CXX" CXXFLAGS="$CXXFLAGS" "$MAKE" "${MAKEARGS[@]}" static cryptest.exe 2>&1 | tee -a "$TEST_RESULTS" - if [[ ("${PIPESTATUS[0]}" -ne "0") ]]; then + if [[ ("${PIPESTATUS[0]}" -ne 0) ]]; then echo "ERROR: failed to make cryptest.exe" | tee -a "$TEST_RESULTS" else valgrind --track-origins=yes --suppressions=cryptopp.supp ./cryptest.exe v 2>&1 | tee -a "$TEST_RESULTS" @@ -6348,7 +6348,7 @@ fi ############################################ # Valgrind, c++14. Requires -O1 for accurate results -if [[ ("$HAVE_VALGRIND" -ne "0" && "$HAVE_CXX14" -ne "0") ]]; then +if [[ ("$HAVE_VALGRIND" -ne 0 && "$HAVE_CXX14" -ne 0) ]]; then echo echo "************************************" | tee -a "$TEST_RESULTS" echo "Testing: Valgrind, c++14" | tee -a "$TEST_RESULTS" @@ -6362,7 +6362,7 @@ if [[ ("$HAVE_VALGRIND" -ne "0" && "$HAVE_CXX14" -ne "0") ]]; then CXXFLAGS="$VALGRIND_CXXFLAGS -std=c++14 $USER_CXXFLAGS" CXX="$CXX" CXXFLAGS="$CXXFLAGS" "$MAKE" "${MAKEARGS[@]}" static cryptest.exe 2>&1 | tee -a "$TEST_RESULTS" - if [[ ("${PIPESTATUS[0]}" -ne "0") ]]; then + if [[ ("${PIPESTATUS[0]}" -ne 0) ]]; then echo "ERROR: failed to make cryptest.exe" | tee -a "$TEST_RESULTS" else valgrind --track-origins=yes --suppressions=cryptopp.supp ./cryptest.exe v 2>&1 | tee -a "$TEST_RESULTS" @@ -6372,7 +6372,7 @@ fi ############################################ # Valgrind, c++17. Requires -O1 for accurate results -if [[ ("$HAVE_VALGRIND" -ne "0" && "$HAVE_CXX17" -ne "0") ]]; then +if [[ ("$HAVE_VALGRIND" -ne 0 && "$HAVE_CXX17" -ne 0) ]]; then echo echo "************************************" | tee -a "$TEST_RESULTS" echo "Testing: Valgrind, c++17" | tee -a "$TEST_RESULTS" @@ -6386,7 +6386,7 @@ if [[ ("$HAVE_VALGRIND" -ne "0" && "$HAVE_CXX17" -ne "0") ]]; then CXXFLAGS="$VALGRIND_CXXFLAGS -std=c++17 $USER_CXXFLAGS" CXX="$CXX" CXXFLAGS="$CXXFLAGS" "$MAKE" "${MAKEARGS[@]}" static cryptest.exe 2>&1 | tee -a "$TEST_RESULTS" - if [[ ("${PIPESTATUS[0]}" -ne "0") ]]; then + if [[ ("${PIPESTATUS[0]}" -ne 0) ]]; then echo "ERROR: failed to make cryptest.exe" | tee -a "$TEST_RESULTS" else valgrind --track-origins=yes --suppressions=cryptopp.supp ./cryptest.exe v 2>&1 | tee -a "$TEST_RESULTS" @@ -6396,7 +6396,7 @@ fi ############################################ # C++03 with elevated warnings -if [[ ("$HAVE_CXX03" -ne "0" && ("$GCC_COMPILER" -ne "0" || "$CLANG_COMPILER" -ne "0")) ]]; then +if [[ ("$HAVE_CXX03" -ne 0 && ("$GCC_COMPILER" -ne 0 || "$CLANG_COMPILER" -ne 0)) ]]; then ############################################ # Debug build @@ -6413,7 +6413,7 @@ if [[ ("$HAVE_CXX03" -ne "0" && ("$GCC_COMPILER" -ne "0" || "$CLANG_COMPILER" -n CXXFLAGS="$DEBUG_CXXFLAGS -std=c++03 ${WARNING_CXXFLAGS[@]}" CXX="$CXX" CXXFLAGS="$CXXFLAGS" "$MAKE" "${MAKEARGS[@]}" static dynamic cryptest.exe 2>&1 | tee -a "$WARN_RESULTS" - if [[ ("${PIPESTATUS[0]}" -ne "0") ]]; then + if [[ ("${PIPESTATUS[0]}" -ne 0) ]]; then echo "ERROR: failed to make cryptest.exe" | tee -a "$WARN_RESULTS" fi @@ -6431,14 +6431,14 @@ if [[ ("$HAVE_CXX03" -ne "0" && ("$GCC_COMPILER" -ne "0" || "$CLANG_COMPILER" -n CXXFLAGS="$RELEASE_CXXFLAGS -std=c++03 ${WARNING_CXXFLAGS[@]}" CXX="$CXX" CXXFLAGS="$CXXFLAGS" "$MAKE" "${MAKEARGS[@]}" static dynamic cryptest.exe 2>&1 | tee -a "$WARN_RESULTS" - if [[ "$?" -ne "0" ]]; then + if [[ "$?" -ne 0 ]]; then echo "ERROR: failed to make cryptest.exe" | tee -a "$WARN_RESULTS" fi fi ############################################ # C++11 with elevated warnings -if [[ ("$HAVE_CXX11" -ne "0" && ("$GCC_COMPILER" -ne "0" || "$CLANG_COMPILER" -ne "0")) ]]; then +if [[ ("$HAVE_CXX11" -ne 0 && ("$GCC_COMPILER" -ne 0 || "$CLANG_COMPILER" -ne 0)) ]]; then ############################################ # Debug build @@ -6455,7 +6455,7 @@ if [[ ("$HAVE_CXX11" -ne "0" && ("$GCC_COMPILER" -ne "0" || "$CLANG_COMPILER" -n CXXFLAGS="$DEBUG_CXXFLAGS -std=c++11 ${WARNING_CXXFLAGS[@]}" CXX="$CXX" CXXFLAGS="$CXXFLAGS" "$MAKE" "${MAKEARGS[@]}" static dynamic cryptest.exe 2>&1 | tee -a "$WARN_RESULTS" - if [[ ("${PIPESTATUS[0]}" -ne "0") ]]; then + if [[ ("${PIPESTATUS[0]}" -ne 0) ]]; then echo "ERROR: failed to make cryptest.exe" | tee -a "$WARN_RESULTS" fi @@ -6473,14 +6473,14 @@ if [[ ("$HAVE_CXX11" -ne "0" && ("$GCC_COMPILER" -ne "0" || "$CLANG_COMPILER" -n CXXFLAGS="$RELEASE_CXXFLAGS -std=c++11 ${WARNING_CXXFLAGS[@]}" CXX="$CXX" CXXFLAGS="$CXXFLAGS" "$MAKE" "${MAKEARGS[@]}" static dynamic cryptest.exe 2>&1 | tee -a "$WARN_RESULTS" - if [[ "$?" -ne "0" ]]; then + if [[ "$?" -ne 0 ]]; then echo "ERROR: failed to make cryptest.exe" | tee -a "$WARN_RESULTS" fi fi ############################################ # C++14 with elevated warnings -if [[ ("$HAVE_CXX14" -ne "0" && ("$GCC_COMPILER" -ne "0" || "$CLANG_COMPILER" -ne "0")) ]]; then +if [[ ("$HAVE_CXX14" -ne 0 && ("$GCC_COMPILER" -ne 0 || "$CLANG_COMPILER" -ne 0)) ]]; then ############################################ # Debug build @@ -6497,7 +6497,7 @@ if [[ ("$HAVE_CXX14" -ne "0" && ("$GCC_COMPILER" -ne "0" || "$CLANG_COMPILER" -n CXXFLAGS="$DEBUG_CXXFLAGS -std=c++14 ${WARNING_CXXFLAGS[@]}" CXX="$CXX" CXXFLAGS="$CXXFLAGS" "$MAKE" "${MAKEARGS[@]}" static dynamic cryptest.exe 2>&1 | tee -a "$WARN_RESULTS" - if [[ ("${PIPESTATUS[0]}" -ne "0") ]]; then + if [[ ("${PIPESTATUS[0]}" -ne 0) ]]; then echo "ERROR: failed to make cryptest.exe" | tee -a "$WARN_RESULTS" fi @@ -6515,14 +6515,14 @@ if [[ ("$HAVE_CXX14" -ne "0" && ("$GCC_COMPILER" -ne "0" || "$CLANG_COMPILER" -n CXXFLAGS="$RELEASE_CXXFLAGS -std=c++14 ${WARNING_CXXFLAGS[@]}" CXX="$CXX" CXXFLAGS="$CXXFLAGS" "$MAKE" "${MAKEARGS[@]}" static dynamic cryptest.exe 2>&1 | tee -a "$WARN_RESULTS" - if [[ "$?" -ne "0" ]]; then + if [[ "$?" -ne 0 ]]; then echo "ERROR: failed to make cryptest.exe" | tee -a "$WARN_RESULTS" fi fi ############################################ # C++17 with elevated warnings -if [[ ("$HAVE_CXX17" -ne "0" && ("$GCC_COMPILER" -ne "0" || "$CLANG_COMPILER" -ne "0")) ]]; then +if [[ ("$HAVE_CXX17" -ne 0 && ("$GCC_COMPILER" -ne 0 || "$CLANG_COMPILER" -ne 0)) ]]; then ############################################ # Debug build @@ -6539,7 +6539,7 @@ if [[ ("$HAVE_CXX17" -ne "0" && ("$GCC_COMPILER" -ne "0" || "$CLANG_COMPILER" -n CXXFLAGS="$DEBUG_CXXFLAGS -std=c++17 ${WARNING_CXXFLAGS[@]}" CXX="$CXX" CXXFLAGS="$CXXFLAGS" "$MAKE" "${MAKEARGS[@]}" static dynamic cryptest.exe 2>&1 | tee -a "$WARN_RESULTS" - if [[ ("${PIPESTATUS[0]}" -ne "0") ]]; then + if [[ ("${PIPESTATUS[0]}" -ne 0) ]]; then echo "ERROR: failed to make cryptest.exe" | tee -a "$WARN_RESULTS" fi @@ -6558,14 +6558,14 @@ if [[ ("$HAVE_CXX17" -ne "0" && ("$GCC_COMPILER" -ne "0" || "$CLANG_COMPILER" -n CXXFLAGS="$RELEASE_CXXFLAGS -std=c++17 ${WARNING_CXXFLAGS[@]}" CXX="$CXX" CXXFLAGS="$CXXFLAGS" "$MAKE" "${MAKEARGS[@]}" static dynamic cryptest.exe 2>&1 | tee -a "$WARN_RESULTS" - if [[ "$?" -ne "0" ]]; then + if [[ "$?" -ne 0 ]]; then echo "ERROR: failed to make cryptest.exe" | tee -a "$WARN_RESULTS" fi fi ############################################ # C++20 with elevated warnings -if [[ ("$HAVE_CXX20" -ne "0" && ("$GCC_COMPILER" -ne "0" || "$CLANG_COMPILER" -ne "0")) ]]; then +if [[ ("$HAVE_CXX20" -ne 0 && ("$GCC_COMPILER" -ne 0 || "$CLANG_COMPILER" -ne 0)) ]]; then ############################################ # Debug build @@ -6582,7 +6582,7 @@ if [[ ("$HAVE_CXX20" -ne "0" && ("$GCC_COMPILER" -ne "0" || "$CLANG_COMPILER" -n CXXFLAGS="$DEBUG_CXXFLAGS -std=c++20 ${WARNING_CXXFLAGS[@]}" CXX="$CXX" CXXFLAGS="$CXXFLAGS" "$MAKE" "${MAKEARGS[@]}" static dynamic cryptest.exe 2>&1 | tee -a "$WARN_RESULTS" - if [[ ("${PIPESTATUS[0]}" -ne "0") ]]; then + if [[ ("${PIPESTATUS[0]}" -ne 0) ]]; then echo "ERROR: failed to make cryptest.exe" | tee -a "$WARN_RESULTS" fi @@ -6601,7 +6601,7 @@ if [[ ("$HAVE_CXX20" -ne "0" && ("$GCC_COMPILER" -ne "0" || "$CLANG_COMPILER" -n CXXFLAGS="$RELEASE_CXXFLAGS -std=c++20 ${WARNING_CXXFLAGS[@]}" CXX="$CXX" CXXFLAGS="$CXXFLAGS" "$MAKE" "${MAKEARGS[@]}" static dynamic cryptest.exe 2>&1 | tee -a "$WARN_RESULTS" - if [[ "$?" -ne "0" ]]; then + if [[ "$?" -ne 0 ]]; then echo "ERROR: failed to make cryptest.exe" | tee -a "$WARN_RESULTS" fi fi @@ -6629,15 +6629,15 @@ if [[ ("$CLANG_COMPILER" -eq 0) ]]; then CXXFLAGS="-DNDEBUG -g2 -O3" CXX="$CLANG_CXX" CXXFLAGS="$CXXFLAGS" "$MAKE" "${MAKEARGS[@]}" static dynamic cryptest.exe 2>&1 | tee -a "$TEST_RESULTS" - if [[ ("${PIPESTATUS[0]}" -ne "0") ]]; then + if [[ ("${PIPESTATUS[0]}" -ne 0) ]]; then echo "ERROR: failed to make cryptest.exe" | tee -a "$TEST_RESULTS" else ./cryptest.exe v 2>&1 | tee -a "$TEST_RESULTS" - if [[ ("${PIPESTATUS[0]}" -ne "0") ]]; then + if [[ ("${PIPESTATUS[0]}" -ne 0) ]]; then echo "ERROR: failed to execute validation suite" | tee -a "$TEST_RESULTS" fi ./cryptest.exe tv all 2>&1 | tee -a "$TEST_RESULTS" - if [[ ("${PIPESTATUS[0]}" -ne "0") ]]; then + if [[ ("${PIPESTATUS[0]}" -ne 0) ]]; then echo "ERROR: failed to execute test vectors" | tee -a "$TEST_RESULTS" fi fi @@ -6666,15 +6666,15 @@ if [[ ("$GCC_COMPILER" -eq 0) ]]; then CXXFLAGS="-DNDEBUG -g2 -O3" CXX="$GCC_CXX" CXXFLAGS="$CXXFLAGS" "$MAKE" "${MAKEARGS[@]}" static dynamic cryptest.exe 2>&1 | tee -a "$TEST_RESULTS" - if [[ ("${PIPESTATUS[0]}" -ne "0") ]]; then + if [[ ("${PIPESTATUS[0]}" -ne 0) ]]; then echo "ERROR: failed to make cryptest.exe" | tee -a "$TEST_RESULTS" else ./cryptest.exe v 2>&1 | tee -a "$TEST_RESULTS" - if [[ ("${PIPESTATUS[0]}" -ne "0") ]]; then + if [[ ("${PIPESTATUS[0]}" -ne 0) ]]; then echo "ERROR: failed to execute validation suite" | tee -a "$TEST_RESULTS" fi ./cryptest.exe tv all 2>&1 | tee -a "$TEST_RESULTS" - if [[ ("${PIPESTATUS[0]}" -ne "0") ]]; then + if [[ ("${PIPESTATUS[0]}" -ne 0) ]]; then echo "ERROR: failed to execute test vectors" | tee -a "$TEST_RESULTS" fi fi @@ -6706,15 +6706,15 @@ if [[ ("$INTEL_COMPILER" -eq 0) ]]; then CXXFLAGS="-DNDEBUG -g2 -O3" CXX="$INTEL_CXX" CXXFLAGS="$CXXFLAGS" "$MAKE" "${MAKEARGS[@]}" static dynamic cryptest.exe 2>&1 | tee -a "$TEST_RESULTS" - if [[ ("${PIPESTATUS[0]}" -ne "0") ]]; then + if [[ ("${PIPESTATUS[0]}" -ne 0) ]]; then echo "ERROR: failed to make cryptest.exe" | tee -a "$TEST_RESULTS" else ./cryptest.exe v 2>&1 | tee -a "$TEST_RESULTS" - if [[ ("${PIPESTATUS[0]}" -ne "0") ]]; then + if [[ ("${PIPESTATUS[0]}" -ne 0) ]]; then echo "ERROR: failed to execute validation suite" | tee -a "$TEST_RESULTS" fi ./cryptest.exe tv all 2>&1 | tee -a "$TEST_RESULTS" - if [[ ("${PIPESTATUS[0]}" -ne "0") ]]; then + if [[ ("${PIPESTATUS[0]}" -ne 0) ]]; then echo "ERROR: failed to execute test vectors" | tee -a "$TEST_RESULTS" fi fi @@ -6723,7 +6723,7 @@ fi ############################################ # Perform a quick check with MacPorts compilers, if available. -if [[ ("$IS_DARWIN" -ne "0" && "$MACPORTS_COMPILER" -eq 0) ]]; then +if [[ ("$IS_DARWIN" -ne 0 && "$MACPORTS_COMPILER" -eq 0) ]]; then MACPORTS_CXX=$(find /opt/local/bin -name 'g++-mp-4*' 2>/dev/null | head -1) if [[ (! -z "$MACPORTS_CXX") ]]; then @@ -6745,15 +6745,15 @@ if [[ ("$IS_DARWIN" -ne "0" && "$MACPORTS_COMPILER" -eq 0) ]]; then # We want to use -stdlib=libstdc++ below, but it causes a compile error. Maybe MacPorts hardwired libc++. CXXFLAGS="-DNDEBUG -g2 -O3 -std=c++11" CXX="$MACPORTS_CXX" CXXFLAGS="$CXXFLAGS" "$MAKE" "${MAKEARGS[@]}" static dynamic cryptest.exe 2>&1 | tee -a "$TEST_RESULTS" - if [[ ("${PIPESTATUS[0]}" -ne "0") ]]; then + if [[ ("${PIPESTATUS[0]}" -ne 0) ]]; then echo "ERROR: failed to make cryptest.exe" | tee -a "$TEST_RESULTS" else ./cryptest.exe v 2>&1 | tee -a "$TEST_RESULTS" - if [[ ("${PIPESTATUS[0]}" -ne "0") ]]; then + if [[ ("${PIPESTATUS[0]}" -ne 0) ]]; then echo "ERROR: failed to execute validation suite" | tee -a "$TEST_RESULTS" fi ./cryptest.exe tv all 2>&1 | tee -a "$TEST_RESULTS" - if [[ ("${PIPESTATUS[0]}" -ne "0") ]]; then + if [[ ("${PIPESTATUS[0]}" -ne 0) ]]; then echo "ERROR: failed to execute test vectors" | tee -a "$TEST_RESULTS" fi fi @@ -6780,15 +6780,15 @@ if [[ ("$IS_DARWIN" -ne "0" && "$MACPORTS_COMPILER" -eq 0) ]]; then # We want to use -stdlib=libstdc++ below, but it causes a compile error. Maybe MacPorts hardwired libc++. CXXFLAGS="-DNDEBUG -g2 -O3 -std=c++11" CXX="$MACPORTS_CXX" CXXFLAGS="$CXXFLAGS" "$MAKE" "${MAKEARGS[@]}" static dynamic cryptest.exe 2>&1 | tee -a "$TEST_RESULTS" - if [[ ("${PIPESTATUS[0]}" -ne "0") ]]; then + if [[ ("${PIPESTATUS[0]}" -ne 0) ]]; then echo "ERROR: failed to make cryptest.exe" | tee -a "$TEST_RESULTS" else ./cryptest.exe v 2>&1 | tee -a "$TEST_RESULTS" - if [[ ("${PIPESTATUS[0]}" -ne "0") ]]; then + if [[ ("${PIPESTATUS[0]}" -ne 0) ]]; then echo "ERROR: failed to execute validation suite" | tee -a "$TEST_RESULTS" fi ./cryptest.exe tv all 2>&1 | tee -a "$TEST_RESULTS" - if [[ ("${PIPESTATUS[0]}" -ne "0") ]]; then + if [[ ("${PIPESTATUS[0]}" -ne 0) ]]; then echo "ERROR: failed to execute test vectors" | tee -a "$TEST_RESULTS" fi fi @@ -6815,15 +6815,15 @@ if [[ ("$IS_DARWIN" -ne "0" && "$MACPORTS_COMPILER" -eq 0) ]]; then # We want to use -stdlib=libstdc++ below, but it causes a compile error. Maybe MacPorts hardwired libc++. CXXFLAGS="-DNDEBUG -g2 -O3 -std=c++11" CXX="$MACPORTS_CXX" CXXFLAGS="$CXXFLAGS" "$MAKE" "${MAKEARGS[@]}" static dynamic cryptest.exe 2>&1 | tee -a "$TEST_RESULTS" - if [[ ("${PIPESTATUS[0]}" -ne "0") ]]; then + if [[ ("${PIPESTATUS[0]}" -ne 0) ]]; then echo "ERROR: failed to make cryptest.exe" | tee -a "$TEST_RESULTS" else ./cryptest.exe v 2>&1 | tee -a "$TEST_RESULTS" - if [[ ("${PIPESTATUS[0]}" -ne "0") ]]; then + if [[ ("${PIPESTATUS[0]}" -ne 0) ]]; then echo "ERROR: failed to execute validation suite" | tee -a "$TEST_RESULTS" fi ./cryptest.exe tv all 2>&1 | tee -a "$TEST_RESULTS" - if [[ ("${PIPESTATUS[0]}" -ne "0") ]]; then + if [[ ("${PIPESTATUS[0]}" -ne 0) ]]; then echo "ERROR: failed to execute test vectors" | tee -a "$TEST_RESULTS" fi fi @@ -6850,15 +6850,15 @@ if [[ ("$IS_DARWIN" -ne "0" && "$MACPORTS_COMPILER" -eq 0) ]]; then # We want to use -stdlib=libstdc++ below, but it causes a compile error. Maybe MacPorts hardwired libc++. CXXFLAGS="-DNDEBUG -g2 -O3 -std=c++11" CXX="$MACPORTS_CXX" CXXFLAGS="$CXXFLAGS" "$MAKE" "${MAKEARGS[@]}" static dynamic cryptest.exe 2>&1 | tee -a "$TEST_RESULTS" - if [[ ("${PIPESTATUS[0]}" -ne "0") ]]; then + if [[ ("${PIPESTATUS[0]}" -ne 0) ]]; then echo "ERROR: failed to make cryptest.exe" | tee -a "$TEST_RESULTS" else ./cryptest.exe v 2>&1 | tee -a "$TEST_RESULTS" - if [[ ("${PIPESTATUS[0]}" -ne "0") ]]; then + if [[ ("${PIPESTATUS[0]}" -ne 0) ]]; then echo "ERROR: failed to execute validation suite" | tee -a "$TEST_RESULTS" fi ./cryptest.exe tv all 2>&1 | tee -a "$TEST_RESULTS" - if [[ ("${PIPESTATUS[0]}" -ne "0") ]]; then + if [[ ("${PIPESTATUS[0]}" -ne 0) ]]; then echo "ERROR: failed to execute test vectors" | tee -a "$TEST_RESULTS" fi fi @@ -6884,15 +6884,15 @@ if [[ ("$IS_DARWIN" -ne "0" && "$MACPORTS_COMPILER" -eq 0) ]]; then CXXFLAGS="-DNDEBUG -g2 -O3 -std=c++11 -stdlib=libc++" CXX="$MACPORTS_CXX" CXXFLAGS="$CXXFLAGS" "$MAKE" "${MAKEARGS[@]}" static dynamic cryptest.exe 2>&1 | tee -a "$TEST_RESULTS" - if [[ ("${PIPESTATUS[0]}" -ne "0") ]]; then + if [[ ("${PIPESTATUS[0]}" -ne 0) ]]; then echo "ERROR: failed to make cryptest.exe" | tee -a "$TEST_RESULTS" else ./cryptest.exe v 2>&1 | tee -a "$TEST_RESULTS" - if [[ ("${PIPESTATUS[0]}" -ne "0") ]]; then + if [[ ("${PIPESTATUS[0]}" -ne 0) ]]; then echo "ERROR: failed to execute validation suite" | tee -a "$TEST_RESULTS" fi ./cryptest.exe tv all 2>&1 | tee -a "$TEST_RESULTS" - if [[ ("${PIPESTATUS[0]}" -ne "0") ]]; then + if [[ ("${PIPESTATUS[0]}" -ne 0) ]]; then echo "ERROR: failed to execute test vectors" | tee -a "$TEST_RESULTS" fi fi @@ -6918,15 +6918,15 @@ if [[ ("$IS_DARWIN" -ne "0" && "$MACPORTS_COMPILER" -eq 0) ]]; then CXXFLAGS="-DNDEBUG -g2 -O3 -std=c++11 -stdlib=libc++" CXX="$MACPORTS_CXX" CXXFLAGS="$CXXFLAGS" "$MAKE" "${MAKEARGS[@]}" static dynamic cryptest.exe 2>&1 | tee -a "$TEST_RESULTS" - if [[ ("${PIPESTATUS[0]}" -ne "0") ]]; then + if [[ ("${PIPESTATUS[0]}" -ne 0) ]]; then echo "ERROR: failed to make cryptest.exe" | tee -a "$TEST_RESULTS" else ./cryptest.exe v 2>&1 | tee -a "$TEST_RESULTS" - if [[ ("${PIPESTATUS[0]}" -ne "0") ]]; then + if [[ ("${PIPESTATUS[0]}" -ne 0) ]]; then echo "ERROR: failed to execute validation suite" | tee -a "$TEST_RESULTS" fi ./cryptest.exe tv all 2>&1 | tee -a "$TEST_RESULTS" - if [[ ("${PIPESTATUS[0]}" -ne "0") ]]; then + if [[ ("${PIPESTATUS[0]}" -ne 0) ]]; then echo "ERROR: failed to execute test vectors" | tee -a "$TEST_RESULTS" fi fi @@ -6952,15 +6952,15 @@ if [[ ("$IS_DARWIN" -ne "0" && "$MACPORTS_COMPILER" -eq 0) ]]; then CXXFLAGS="-DNDEBUG -g2 -O3 -std=c++11 -stdlib=libc++" CXX="$MACPORTS_CXX" CXXFLAGS="$CXXFLAGS" "$MAKE" "${MAKEARGS[@]}" static dynamic cryptest.exe 2>&1 | tee -a "$TEST_RESULTS" - if [[ ("${PIPESTATUS[0]}" -ne "0") ]]; then + if [[ ("${PIPESTATUS[0]}" -ne 0) ]]; then echo "ERROR: failed to make cryptest.exe" | tee -a "$TEST_RESULTS" else ./cryptest.exe v 2>&1 | tee -a "$TEST_RESULTS" - if [[ ("${PIPESTATUS[0]}" -ne "0") ]]; then + if [[ ("${PIPESTATUS[0]}" -ne 0) ]]; then echo "ERROR: failed to execute validation suite" | tee -a "$TEST_RESULTS" fi ./cryptest.exe tv all 2>&1 | tee -a "$TEST_RESULTS" - if [[ ("${PIPESTATUS[0]}" -ne "0") ]]; then + if [[ ("${PIPESTATUS[0]}" -ne 0) ]]; then echo "ERROR: failed to execute test vectors" | tee -a "$TEST_RESULTS" fi fi @@ -6986,15 +6986,15 @@ if [[ ("$IS_DARWIN" -ne "0" && "$MACPORTS_COMPILER" -eq 0) ]]; then CXXFLAGS="-DNDEBUG -g2 -O3 -std=c++11 -stdlib=libc++" CXX="$MACPORTS_CXX" CXXFLAGS="$CXXFLAGS" "$MAKE" "${MAKEARGS[@]}" static dynamic cryptest.exe 2>&1 | tee -a "$TEST_RESULTS" - if [[ ("${PIPESTATUS[0]}" -ne "0") ]]; then + if [[ ("${PIPESTATUS[0]}" -ne 0) ]]; then echo "ERROR: failed to make cryptest.exe" | tee -a "$TEST_RESULTS" else ./cryptest.exe v 2>&1 | tee -a "$TEST_RESULTS" - if [[ ("${PIPESTATUS[0]}" -ne "0") ]]; then + if [[ ("${PIPESTATUS[0]}" -ne 0) ]]; then echo "ERROR: failed to execute validation suite" | tee -a "$TEST_RESULTS" fi ./cryptest.exe tv all 2>&1 | tee -a "$TEST_RESULTS" - if [[ ("${PIPESTATUS[0]}" -ne "0") ]]; then + if [[ ("${PIPESTATUS[0]}" -ne 0) ]]; then echo "ERROR: failed to execute test vectors" | tee -a "$TEST_RESULTS" fi fi @@ -7004,7 +7004,7 @@ fi ############################################ # Perform a quick check with Xcode compiler, if available. -if [[ "$IS_DARWIN" -ne "0" ]]; then +if [[ "$IS_DARWIN" -ne 0 ]]; then XCODE_CXX=$(find /Applications/Xcode*.app/Contents/Developer -name clang++ 2>/dev/null | head -1) if [[ (-z "$XCODE_CXX") ]]; then XCODE_CXX=$(find /Developer/Applications/Xcode.app -name clang++ 2>/dev/null | head -1) @@ -7024,15 +7024,15 @@ if [[ "$IS_DARWIN" -ne "0" ]]; then CXXFLAGS="-DNDEBUG -g2 -O3" CXX="$XCODE_CXX" CXXFLAGS="$CXXFLAGS" "$MAKE" "${MAKEARGS[@]}" static cryptest.exe 2>&1 | tee -a "$TEST_RESULTS" - if [[ ("${PIPESTATUS[0]}" -ne "0") ]]; then + if [[ ("${PIPESTATUS[0]}" -ne 0) ]]; then echo "ERROR: failed to make cryptest.exe" | tee -a "$TEST_RESULTS" else ./cryptest.exe v 2>&1 | tee -a "$TEST_RESULTS" - if [[ ("${PIPESTATUS[0]}" -ne "0") ]]; then + if [[ ("${PIPESTATUS[0]}" -ne 0) ]]; then echo "ERROR: failed to execute validation suite" | tee -a "$TEST_RESULTS" fi ./cryptest.exe tv all 2>&1 | tee -a "$TEST_RESULTS" - if [[ ("${PIPESTATUS[0]}" -ne "0") ]]; then + if [[ ("${PIPESTATUS[0]}" -ne 0) ]]; then echo "ERROR: failed to execute test vectors" | tee -a "$TEST_RESULTS" fi fi @@ -7059,7 +7059,7 @@ if [[ ("$IS_CYGWIN" -eq 0) && ("$IS_MINGW" -eq 0) ]]; then CXXFLAGS="$RELEASE_CXXFLAGS -DCRYPTOPP_DATA_DIR='\"$INSTALL_DIR/share/cryptopp/\"' $USER_CXXFLAGS" CXX="$CXX" CXXFLAGS="$CXXFLAGS" "$MAKE" "${MAKEARGS[@]}" static dynamic cryptest.exe 2>&1 | tee -a "$TEST_RESULTS" "$INSTALL_RESULTS" - if [[ ("${PIPESTATUS[0]}" -ne "0") ]]; then + if [[ ("${PIPESTATUS[0]}" -ne 0) ]]; then echo "ERROR: failed to make cryptest.exe" | tee -a "$TEST_RESULTS" "$INSTALL_RESULTS" else OLD_DIR=$(pwd) @@ -7071,7 +7071,7 @@ if [[ ("$IS_CYGWIN" -eq 0) && ("$IS_MINGW" -eq 0) ]]; then echo "Testing: Install (validation suite)" | tee -a "$TEST_RESULTS" "$INSTALL_RESULTS" echo ./cryptest.exe v 2>&1 | tee -a "$TEST_RESULTS" "$INSTALL_RESULTS" - if [[ ("${PIPESTATUS[0]}" -ne "0") ]]; then + if [[ ("${PIPESTATUS[0]}" -ne 0) ]]; then echo "ERROR: failed to execute validation suite" | tee -a "$TEST_RESULTS" "$INSTALL_RESULTS" fi @@ -7080,17 +7080,17 @@ if [[ ("$IS_CYGWIN" -eq 0) && ("$IS_MINGW" -eq 0) ]]; then echo "Testing: Install (test vectors)" | tee -a "$TEST_RESULTS" "$INSTALL_RESULTS" echo ./cryptest.exe tv all 2>&1 | tee -a "$TEST_RESULTS" "$INSTALL_RESULTS" - if [[ ("${PIPESTATUS[0]}" -ne "0") ]]; then + if [[ ("${PIPESTATUS[0]}" -ne 0) ]]; then echo "ERROR: failed to execute test vectors" | tee -a "$TEST_RESULTS" "$INSTALL_RESULTS" fi - if [[ "$WANT_BENCHMARKS" -ne "0" ]]; then + if [[ "$WANT_BENCHMARKS" -ne 0 ]]; then echo echo "************************************" | tee -a "$TEST_RESULTS" "$INSTALL_RESULTS" echo "Testing: Install (benchmarks)" | tee -a "$TEST_RESULTS" "$INSTALL_RESULTS" echo ./cryptest.exe b 1 "$CPU_FREQ" 2>&1 | tee -a "$TEST_RESULTS" "$INSTALL_RESULTS" - if [[ ("${PIPESTATUS[0]}" -ne "0") ]]; then + if [[ ("${PIPESTATUS[0]}" -ne 0) ]]; then echo "ERROR: failed to execute benchmarks" | tee -a "$TEST_RESULTS" "$INSTALL_RESULTS" fi fi @@ -7100,7 +7100,7 @@ if [[ ("$IS_CYGWIN" -eq 0) && ("$IS_MINGW" -eq 0) ]]; then echo "Testing: Install (help file)" | tee -a "$TEST_RESULTS" "$INSTALL_RESULTS" echo ./cryptest.exe h 2>&1 | tee -a "$TEST_RESULTS" "$INSTALL_RESULTS" - if [[ ("${PIPESTATUS[0]}" -ne "1") ]]; then + if [[ ("${PIPESTATUS[0]}" -ne 1) ]]; then echo "ERROR: failed to provide help" | tee -a "$TEST_RESULTS" "$INSTALL_RESULTS" fi @@ -7121,7 +7121,7 @@ if [[ ("$IS_CYGWIN" -eq 0 && "$IS_MINGW" -eq 0) ]]; then TEST_LIST+=("Remove with data directory") "$MAKE" "${MAKEARGS[@]}" remove PREFIX="$INSTALL_DIR" 2>&1 | tee -a "$TEST_RESULTS" "$INSTALL_RESULTS" - if [[ ("${PIPESTATUS[0]}" -ne "0") ]]; then + if [[ ("${PIPESTATUS[0]}" -ne 0) ]]; then echo "ERROR: failed to make remove" | tee -a "$TEST_RESULTS" "$INSTALL_RESULTS" else # Test for complete removal @@ -7143,7 +7143,7 @@ if [[ ("$IS_CYGWIN" -eq 0 && "$IS_MINGW" -eq 0) ]]; then if [[ (-e "$INSTALL_DIR/lib/libcryptopp.a") ]]; then echo "ERROR: failed to remove libcryptopp.a static library" | tee -a "$TEST_RESULTS" "$INSTALL_RESULTS" fi - if [[ "$IS_DARWIN" -ne "0" && (-e "$INSTALL_DIR/lib/libcryptopp.dylib") ]]; then + if [[ "$IS_DARWIN" -ne 0 && (-e "$INSTALL_DIR/lib/libcryptopp.dylib") ]]; then echo "ERROR: failed to remove libcryptopp.dylib dynamic library" | tee -a "$TEST_RESULTS" "$INSTALL_RESULTS" elif [[ (-e "$INSTALL_DIR/lib/libcryptopp.so") ]]; then echo "ERROR: failed to remove libcryptopp.so dynamic library" | tee -a "$TEST_RESULTS" "$INSTALL_RESULTS" diff --git a/ecp.cpp b/ecp.cpp index feef032e..daabb819 100644 --- a/ecp.cpp +++ b/ecp.cpp @@ -230,7 +230,7 @@ ECP::Point AdditionFunction::operator()(const ECP::Point& P) const return R; } else if (m_alpha == A_Star) - { + { // Gyrations attempt to maintain constant-timeness // We need either (P.x, P.y, 1) or (0, 1, 0). const Integer x = P.x * IdentityToInteger(!P.identity);