diff options
author | Brent Cook <busterb@gmail.com> | 2024-04-08 20:05:29 -0500 |
---|---|---|
committer | Brent Cook <busterb@gmail.com> | 2024-04-08 20:27:57 -0500 |
commit | 5fdb83c9c3891ecff4c11d6f42ff128d16440541 (patch) | |
tree | 57bd0eae5e267fbba2c402092c4747311611d530 | |
parent | 1a7dced4cd2ec5e89e9ccd39bc8bf58910f0a3f5 (diff) | |
download | portable-5fdb83c9c3891ecff4c11d6f42ff128d16440541.tar.gz portable-5fdb83c9c3891ecff4c11d6f42ff128d16440541.tar.bz2 portable-5fdb83c9c3891ecff4c11d6f42ff128d16440541.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-x | scripts/test | 9 | ||||
-rwxr-xr-x | update.sh | 2 |
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 | ||
5 | unset CC | 5 | unset CC |
6 | ENABLE_ASM="${ENABLE_ASM:=ON}" | 6 | ENABLE_ASM="${ENABLE_ASM:=ON}" |
7 | VERSION=`cat VERSION` | ||
7 | 8 | ||
8 | if type apt-get >/dev/null 2>&1; then | 9 | if 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 |
@@ -151,7 +151,7 @@ else | |||
151 | $CP $libcrypto_src/opensslv.h include/openssl | 151 | $CP $libcrypto_src/opensslv.h include/openssl |
152 | fi | 152 | fi |
153 | 153 | ||
154 | awk '/LIBRESSL_VERSION_TEXT/ {print $4}' < include/openssl/opensslv.h | cut -d\" -f1 > VERSION | 154 | awk '/LIBRESSL_VERSION_TEXT/ {print $4}' < include/openssl/opensslv.h | cut -d\" -f1 | head -n1 > VERSION |
155 | echo "LibreSSL version `cat VERSION`" | 155 | echo "LibreSSL version `cat VERSION`" |
156 | 156 | ||
157 | # copy libcrypto source | 157 | # copy libcrypto source |