Switch test params to 5.6.5 and Master

pull/339/head
Jeffrey Walton 2016-11-07 06:20:24 -05:00
parent e4ddc44957
commit b38edd49d8
No known key found for this signature in database
GPG Key ID: B36AB348921B1838
1 changed files with 21 additions and 4 deletions

View File

@ -9,8 +9,8 @@
############################################ ############################################
# Tags to test # Tags to test
OLD_VERSION_TAG=CRYPTOPP_5_6_4 OLD_VERSION_TAG=CRYPTOPP_5_6_5
NEW_VERSION_TAG=CRYPTOPP_5_6_5 NEW_VERSION_TAG=master
############################################ ############################################
# If repo is dirty, then promt first # If repo is dirty, then promt first
@ -18,6 +18,7 @@ NEW_VERSION_TAG=CRYPTOPP_5_6_5
DIRTY=$(git diff --shortstat 2> /dev/null | tail -n1) DIRTY=$(git diff --shortstat 2> /dev/null | tail -n1)
if [[ ! (-z "$DIRTY") ]]; then if [[ ! (-z "$DIRTY") ]]; then
echo
echo "The local repo is dirty. Continuing will reset the repo and lose changes." echo "The local repo is dirty. Continuing will reset the repo and lose changes."
read -p "Type 'Y' to proceed. Proceed? " -n 1 -r read -p "Type 'Y' to proceed. Proceed? " -n 1 -r
echo # (optional) move to a new line echo # (optional) move to a new line
@ -25,9 +26,20 @@ if [[ ! (-z "$DIRTY") ]]; then
[[ "$0" = "$BASH_SOURCE" ]] && exit 0 || return 0 [[ "$0" = "$BASH_SOURCE" ]] && exit 0 || return 0
fi fi
else else
echo
echo "The repo is clean. Proceeding..." echo "The repo is clean. Proceeding..."
echo
fi fi
############################################
echo "****************************************************************"
echo "****************************************************************"
echo "Testing '$OLD_VERSION_TAG' against '$NEW_VERSION_TAG'"
echo "****************************************************************"
echo "****************************************************************"
echo
############################################ ############################################
# Setup tools and platforms # Setup tools and platforms
@ -185,7 +197,6 @@ if [[ ("$CPU_COUNT" -ge "2" && "$MEM_SIZE" -ge "1280" && "$HAVE_SWAP" -ne "0") ]
CPU_COUNT=$(echo -n "$CPU_COUNT 2" | "$AWK" '{print int($1/$2)}') CPU_COUNT=$(echo -n "$CPU_COUNT 2" | "$AWK" '{print int($1/$2)}')
fi fi
MAKEARGS=(-j "$CPU_COUNT") MAKEARGS=(-j "$CPU_COUNT")
echo "Using $MAKE -j $CPU_COUNT"
fi fi
############################################################################### ###############################################################################
@ -213,12 +224,14 @@ git diff --exit-code
echo "****************************************************************" echo "****************************************************************"
echo "Building library for $OLD_VERSION_TAG" echo "Building library for $OLD_VERSION_TAG"
echo "****************************************************************" echo "****************************************************************"
echo
"$MAKE" "${MAKEARGS[@]}" -f GNUmakefile-symbols dynamic "$MAKE" "${MAKEARGS[@]}" -f GNUmakefile-symbols dynamic
echo "****************************************************************" echo "****************************************************************"
echo "Building cryptest.exe for $OLD_VERSION_TAG" echo "Building cryptest.exe for $OLD_VERSION_TAG"
echo "****************************************************************" echo "****************************************************************"
echo
"$MAKE" "${MAKEARGS[@]}" -f GNUmakefile-symbols cryptest.exe "$MAKE" "${MAKEARGS[@]}" -f GNUmakefile-symbols cryptest.exe
@ -227,6 +240,7 @@ if [[ -f "cryptest.exe" ]]; then
echo "****************************************************************" echo "****************************************************************"
echo "Running $OLD_VERSION_TAG cryptest.exe using $OLD_VERSION_TAG library" echo "Running $OLD_VERSION_TAG cryptest.exe using $OLD_VERSION_TAG library"
echo "****************************************************************" echo "****************************************************************"
echo
if [[ "$IS_DARWIN" -ne "0" ]]; then if [[ "$IS_DARWIN" -ne "0" ]]; then
DYLD_LIBRARY_PATH="$PWD:$DYLD_LIBRARY_PATH" "$PWD/cryptest.exe" v 2>&1 | c++filt DYLD_LIBRARY_PATH="$PWD:$DYLD_LIBRARY_PATH" "$PWD/cryptest.exe" v 2>&1 | c++filt
@ -242,6 +256,7 @@ fi
echo "****************************************************************" echo "****************************************************************"
echo "Removing dynamic library for $OLD_VERSION_TAG" echo "Removing dynamic library for $OLD_VERSION_TAG"
echo "****************************************************************" echo "****************************************************************"
echo
rm -f *.o *.so *.dylib rm -f *.o *.so *.dylib
@ -250,6 +265,7 @@ git checkout "$NEW_VERSION_TAG" -f &>/dev/null
echo "****************************************************************" echo "****************************************************************"
echo "Building dynamic library for $NEW_VERSION_TAG" echo "Building dynamic library for $NEW_VERSION_TAG"
echo "****************************************************************" echo "****************************************************************"
echo
"$MAKE" "${MAKEARGS[@]}" -f GNUmakefile-symbols dynamic "$MAKE" "${MAKEARGS[@]}" -f GNUmakefile-symbols dynamic
@ -258,6 +274,7 @@ if [[ -f "cryptest.exe" ]]; then
echo "****************************************************************" echo "****************************************************************"
echo "Running $OLD_VERSION_TAG cryptest.exe using $NEW_VERSION_TAG library" echo "Running $OLD_VERSION_TAG cryptest.exe using $NEW_VERSION_TAG library"
echo "****************************************************************" echo "****************************************************************"
echo
if [[ "$IS_DARWIN" -ne "0" ]]; then if [[ "$IS_DARWIN" -ne "0" ]]; then
DYLD_LIBRARY_PATH="$PWD:$DYLD_LIBRARY_PATH" "$PWD/cryptest.exe" v 2>&1 | c++filt DYLD_LIBRARY_PATH="$PWD:$DYLD_LIBRARY_PATH" "$PWD/cryptest.exe" v 2>&1 | c++filt
@ -272,4 +289,4 @@ fi
git checkout master -f &>/dev/null git checkout master -f &>/dev/null
[[ "$0" = "$BASH_SOURCE" ]] && exit 0 || return 0] [[ "$0" = "$BASH_SOURCE" ]] && exit 0 || return 0