From 57521bd22ab6f37a4b7e6e917fbbd6005ac4d4cd Mon Sep 17 00:00:00 2001 From: Jeffrey Walton Date: Tue, 31 Jul 2018 19:53:40 -0400 Subject: [PATCH] Add calls to 'make clean' to ensure building artifacts --- TestScripts/cryptest-autotools.sh | 2 ++ TestScripts/cryptest-cmake.sh | 2 ++ 2 files changed, 4 insertions(+) diff --git a/TestScripts/cryptest-autotools.sh b/TestScripts/cryptest-autotools.sh index 95e47d0f..d9fa2609 100755 --- a/TestScripts/cryptest-autotools.sh +++ b/TestScripts/cryptest-autotools.sh @@ -83,6 +83,8 @@ if ! ./configure; then [[ "$0" = "${BASH_SOURCE[0]}" ]] && exit 1 || return 1 fi +make clean 2>/dev/null + if ! "$MAKE" -j2 -f Makefile; then echo "make failed" [[ "$0" = "${BASH_SOURCE[0]}" ]] && exit 1 || return 1 diff --git a/TestScripts/cryptest-cmake.sh b/TestScripts/cryptest-cmake.sh index 842a4c30..b4d68e64 100755 --- a/TestScripts/cryptest-cmake.sh +++ b/TestScripts/cryptest-cmake.sh @@ -28,6 +28,8 @@ if ! cmake ../; then [[ "$0" = "${BASH_SOURCE[0]}" ]] && exit 1 || return 1 fi +make clean 2>/dev/null + if ! make -j2 -f Makefile VERBOSE=1; then echo "make failed" [[ "$0" = "${BASH_SOURCE[0]}" ]] && exit 1 || return 1