Remove CMake testing support (GH #506)

CMake can now be found at http://www.cryptopp.com/wiki/CMake. The Cmake project files are now maintianed by the community.
pull/507/head
Jeffrey Walton 2017-09-16 21:23:35 -04:00
parent 913a9e60d3
commit f3c04dbcb7
No known key found for this signature in database
GPG Key ID: B36AB348921B1838
4 changed files with 11 additions and 226 deletions

View File

@ -26,7 +26,6 @@ environment:
matrix: matrix:
- BUILD_MODE: CMake
- BUILD_MODE: MSBuild - BUILD_MODE: MSBuild
# Disable build through solution file # Disable build through solution file
@ -37,86 +36,15 @@ test_script:
- ps: >- - ps: >-
if($env:APPVEYOR_BUILD_WORKER_IMAGE -eq "Visual Studio 2017" -and $env:BUILD_MODE -eq "CMake") msbuild /t:Build /p:platform="$env:platform" /p:configuration="$env:configuration" cryptlib.vcxproj
{
mkdir cmake-build msbuild /t:Build /p:platform="$env:platform" /p:configuration="$env:configuration" cryptest.vcxproj
cd cmake-build msbuild /t:CopyCryptestToRoot cryptest.vcxproj
cmake -G "Visual Studio 15 2017" -DCMAKE_BUILD_TYPE=$env:configuration ..\ .\cryptest.exe v
msbuild /t:Build cryptopp-static.vcxproj .\cryptest.exe tv all
msbuild /t:Build cryptest.vcxproj
robocopy $env:APPVEYOR_BUILD_FOLDER\cmake-build\$env:configuration\ $env:APPVEYOR_BUILD_FOLDER\ cryptest.exe
cd $env:APPVEYOR_BUILD_FOLDER\
.\cryptest.exe v
.\cryptest.exe tv all
}
elseif($env:APPVEYOR_BUILD_WORKER_IMAGE -eq "Visual Studio 2015" -and $env:BUILD_MODE -eq "CMake")
{
mkdir cmake-build
cd cmake-build
cmake -G "Visual Studio 14 2015" -DCMAKE_BUILD_TYPE=$env:configuration ..\
msbuild /t:Build cryptopp-static.vcxproj
msbuild /t:Build cryptest.vcxproj
robocopy $env:APPVEYOR_BUILD_FOLDER\cmake-build\$env:configuration\ $env:APPVEYOR_BUILD_FOLDER\ cryptest.exe
cd $env:APPVEYOR_BUILD_FOLDER\
.\cryptest.exe v
.\cryptest.exe tv all
}
elseif($env:APPVEYOR_BUILD_WORKER_IMAGE -eq "Visual Studio 2013" -and $env:BUILD_MODE -eq "CMake")
{
mkdir cmake-build
cd cmake-build
cmake -G "Visual Studio 12 2013" -DCMAKE_BUILD_TYPE=$env:configuration ..\
msbuild /t:Build cryptopp-static.vcxproj
msbuild /t:Build cryptest.vcxproj
robocopy $env:APPVEYOR_BUILD_FOLDER\cmake-build\$env:configuration\ $env:APPVEYOR_BUILD_FOLDER\ cryptest.exe
cd $env:APPVEYOR_BUILD_FOLDER\
.\cryptest.exe v
.\cryptest.exe tv all
}
else
{
msbuild /t:Build /p:platform="$env:platform" /p:configuration="$env:configuration" cryptlib.vcxproj
msbuild /t:Build /p:platform="$env:platform" /p:configuration="$env:configuration" cryptest.vcxproj
msbuild /t:CopyCryptestToRoot cryptest.vcxproj
.\cryptest.exe v
.\cryptest.exe tv all
}
notifications: notifications:
- provider: Email - provider: Email

View File

@ -32,7 +32,6 @@ env:
- BUILD_MODE="ios-arm64" - BUILD_MODE="ios-arm64"
- BUILD_MODE="ios-watch" - BUILD_MODE="ios-watch"
- BUILD_MODE="ios-tv" - BUILD_MODE="ios-tv"
- BUILD_MODE="cmake"
matrix: matrix:
@ -67,33 +66,25 @@ script:
if [[ "$BUILD_MODE" == "ios-arm" ]]; then if [[ "$BUILD_MODE" == "ios-arm" ]]; then
cp ./TestScripts/setenv-ios.sh . cp ./TestScripts/setenv-ios.sh .
. ./setenv-ios.sh arm . ./setenv-ios.sh arm
make -f GNUmakefile-cross make -f GNUmakefile-cross -j "$BUILD_JOBS"
elif [[ "$BUILD_MODE" == "ios-arm64" ]]; then elif [[ "$BUILD_MODE" == "ios-arm64" ]]; then
cp ./TestScripts/setenv-ios.sh . cp ./TestScripts/setenv-ios.sh .
. ./setenv-ios.sh arm64 . ./setenv-ios.sh arm64 -j "$BUILD_JOBS"
make -f GNUmakefile-cross make -f GNUmakefile-cross
elif [[ "$BUILD_MODE" == "ios-watch" ]]; then elif [[ "$BUILD_MODE" == "ios-watch" ]]; then
cp ./TestScripts/setenv-ios.sh . cp ./TestScripts/setenv-ios.sh .
. ./setenv-ios.sh watch . ./setenv-ios.sh watch
make -f GNUmakefile-cross make -f GNUmakefile-cross -j "$BUILD_JOBS"
elif [[ "$BUILD_MODE" == "ios-tv" ]]; then elif [[ "$BUILD_MODE" == "ios-tv" ]]; then
cp ./TestScripts/setenv-ios.sh . cp ./TestScripts/setenv-ios.sh .
. ./setenv-ios.sh tv . ./setenv-ios.sh tv
make -f GNUmakefile-cross make -f GNUmakefile-cross -j "$BUILD_JOBS"
elif [[ "$BUILD_MODE" == "debug" ]]; then elif [[ "$BUILD_MODE" == "debug" ]]; then
CXXFLAGS="-DDEBUG -g2 -O1" make CXXFLAGS="-DDEBUG -g2 -O1" make -j "$BUILD_JOBS"
./cryptest.exe v
./cryptest.exe tv all
elif [[ "$BUILD_MODE" == "cmake" ]]; then
CRYPTOPP_DIR=$(pwd)
mkdir cryptopp-build
cd cryptopp-build
cmake $CRYPTOPP_DIR
make -j 4 VERBOSE=1
./cryptest.exe v ./cryptest.exe v
./cryptest.exe tv all ./cryptest.exe tv all
else else
make "$BUILD_MODE" make "$BUILD_MODE" -j "$BUILD_JOBS"
./cryptest.exe v ./cryptest.exe v
./cryptest.exe tv all ./cryptest.exe tv all
fi fi

View File

@ -4713,73 +4713,6 @@ if [[ ("$IS_DARWIN" -ne "0" && "$HAVE_CXX17" -ne "0") ]]; then
fi fi
fi fi
############################################
# CMake builds
CMAKE=$(which cmake 2>&1 | "$GREP" -v "no cmake" | head -1)
if [[ (! -z "$CMAKE") ]]; then
############################################
# Debug build
echo
echo "************************************" | tee -a "$TEST_RESULTS"
echo "Testing: Debug, CMake build" | tee -a "$TEST_RESULTS"
echo
"$MAKE" clean > /dev/null 2>&1
rm -f adhoc.cpp > /dev/null 2>&1
mkdir cryptopp-cmake
cd cryptopp-cmake
"$CMAKE" -DCMAKE_BUILD_TYPE=Debug ../
"$MAKE" "${MAKEARGS[@]}" static dynamic cryptest.exe 2>&1 | tee -a "$TEST_RESULTS"
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
echo "ERROR: failed to execute validation suite" | tee -a "$TEST_RESULTS"
fi
./cryptest.exe tv all 2>&1 | tee -a "$TEST_RESULTS"
if [[ ("${PIPESTATUS[0]}" -ne "0") ]]; then
echo "ERROR: failed to execute test vectors" | tee -a "$TEST_RESULTS"
fi
fi
cd ../
rm -rf cryptopp-cmake &> /dev/null
############################################
# Release build
echo
echo "************************************" | tee -a "$TEST_RESULTS"
echo "Testing: Release, CMake build" | tee -a "$TEST_RESULTS"
echo
mkdir cryptopp-cmake
cd cryptopp-cmake
"$CMAKE" -DCMAKE_BUILD_TYPE=Release ../
"$MAKE" "${MAKEARGS[@]}" static dynamic cryptest.exe 2>&1 | tee -a "$TEST_RESULTS"
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
echo "ERROR: failed to execute validation suite" | tee -a "$TEST_RESULTS"
fi
./cryptest.exe tv all 2>&1 | tee -a "$TEST_RESULTS"
if [[ ("${PIPESTATUS[0]}" -ne "0") ]]; then
echo "ERROR: failed to execute test vectors" | tee -a "$TEST_RESULTS"
fi
echo
fi
cd ../
rm -rf cryptopp-cmake &> /dev/null
fi
############################################ ############################################
# Benchmarks # Benchmarks
if [[ "$WANT_BENCHMARKS" -ne "0" ]]; then if [[ "$WANT_BENCHMARKS" -ne "0" ]]; then

View File

@ -4713,73 +4713,6 @@ if [[ ("$IS_DARWIN" -ne "0" && "$HAVE_CXX17" -ne "0") ]]; then
fi fi
fi fi
############################################
# CMake builds
CMAKE=$(which cmake 2>&1 | "$GREP" -v "no cmake" | head -1)
if [[ (! -z "$CMAKE") ]]; then
############################################
# Debug build
echo
echo "************************************" | tee -a "$TEST_RESULTS"
echo "Testing: Debug, CMake build" | tee -a "$TEST_RESULTS"
echo
"$MAKE" clean > /dev/null 2>&1
rm -f adhoc.cpp > /dev/null 2>&1
mkdir cryptopp-cmake
cd cryptopp-cmake
"$CMAKE" -DCMAKE_BUILD_TYPE=Debug ../
"$MAKE" "${MAKEARGS[@]}" static dynamic cryptest.exe 2>&1 | tee -a "$TEST_RESULTS"
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
echo "ERROR: failed to execute validation suite" | tee -a "$TEST_RESULTS"
fi
./cryptest.exe tv all 2>&1 | tee -a "$TEST_RESULTS"
if [[ ("${PIPESTATUS[0]}" -ne "0") ]]; then
echo "ERROR: failed to execute test vectors" | tee -a "$TEST_RESULTS"
fi
fi
cd ../
rm -rf cryptopp-cmake &> /dev/null
############################################
# Release build
echo
echo "************************************" | tee -a "$TEST_RESULTS"
echo "Testing: Release, CMake build" | tee -a "$TEST_RESULTS"
echo
mkdir cryptopp-cmake
cd cryptopp-cmake
"$CMAKE" -DCMAKE_BUILD_TYPE=Release ../
"$MAKE" "${MAKEARGS[@]}" static dynamic cryptest.exe 2>&1 | tee -a "$TEST_RESULTS"
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
echo "ERROR: failed to execute validation suite" | tee -a "$TEST_RESULTS"
fi
./cryptest.exe tv all 2>&1 | tee -a "$TEST_RESULTS"
if [[ ("${PIPESTATUS[0]}" -ne "0") ]]; then
echo "ERROR: failed to execute test vectors" | tee -a "$TEST_RESULTS"
fi
echo
fi
cd ../
rm -rf cryptopp-cmake &> /dev/null
fi
############################################ ############################################
# Benchmarks # Benchmarks
if [[ "$WANT_BENCHMARKS" -ne "0" ]]; then if [[ "$WANT_BENCHMARKS" -ne "0" ]]; then