aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorBrent Cook <busterb@gmail.com>2024-04-08 20:05:29 -0500
committerBrent Cook <busterb@gmail.com>2024-04-08 20:28:17 -0500
commit7a5a03ef8504e2b3faf1f34a8d38d3e6e0dfa18a (patch)
treeb602308f10444c2867c844ef4ef3ad012990f066
parent624f5579fa54a6b6df982d2481f43b8d0ca8729e (diff)
downloadportable-7a5a03ef8504e2b3faf1f34a8d38d3e6e0dfa18a.tar.gz
portable-7a5a03ef8504e2b3faf1f34a8d38d3e6e0dfa18a.tar.bz2
portable-7a5a03ef8504e2b3faf1f34a8d38d3e6e0dfa18a.zip
use a specific version number in test scripts
This avoids issue reported in #1041 with file glob confusing cd. Also remove extra newline from VERSION when update.sh runs.
-rwxr-xr-xscripts/test9
-rwxr-xr-xupdate.sh2
2 files changed, 6 insertions, 5 deletions
diff --git a/scripts/test b/scripts/test
index 97e316e..6d9c15c 100755
--- a/scripts/test
+++ b/scripts/test
@@ -4,6 +4,7 @@ set -x
4 4
5unset CC 5unset CC
6ENABLE_ASM="${ENABLE_ASM:=ON}" 6ENABLE_ASM="${ENABLE_ASM:=ON}"
7VERSION=`cat VERSION`
7 8
8if type apt-get >/dev/null 2>&1; then 9if type apt-get >/dev/null 2>&1; then
9 sudo apt-get update 10 sudo apt-get update
@@ -26,8 +27,8 @@ if [ `uname` = "Darwin" ]; then
26 make -j 4 distcheck 27 make -j 4 distcheck
27 28
28 # test cmake 29 # test cmake
29 tar zxvf libressl-*.tar.gz 30 tar zxvf libressl-$VERSION.tar.gz
30 cd libressl-* 31 cd libressl-$VERSION
31 32
32 ( 33 (
33 mkdir build-static 34 mkdir build-static
@@ -57,8 +58,8 @@ elif [ "$ARCH" = "native" ]; then
57 # make distribution 58 # make distribution
58 make -j 4 distcheck 59 make -j 4 distcheck
59 60
60 tar zxvf libressl-*.tar.gz 61 tar zxvf libressl-$VERSION.tar.gz
61 cd libressl-* 62 cd libressl-$VERSION
62 63
63 64
64 # test cmake and ninja 65 # test cmake and ninja
diff --git a/update.sh b/update.sh
index f7c48ee..9540a76 100755
--- a/update.sh
+++ b/update.sh
@@ -151,7 +151,7 @@ else
151 $CP $libcrypto_src/opensslv.h include/openssl 151 $CP $libcrypto_src/opensslv.h include/openssl
152fi 152fi
153 153
154awk '/LIBRESSL_VERSION_TEXT/ {print $4}' < include/openssl/opensslv.h | cut -d\" -f1 > VERSION 154awk '/LIBRESSL_VERSION_TEXT/ {print $4}' < include/openssl/opensslv.h | cut -d\" -f1 | head -n1 > VERSION
155echo "LibreSSL version `cat VERSION`" 155echo "LibreSSL version `cat VERSION`"
156 156
157# copy libcrypto source 157# copy libcrypto source