aboutsummaryrefslogtreecommitdiff
path: root/scripts
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:05:29 -0500
commit9091d5551c40315149912ff447264bde8e811453 (patch)
tree21a819cbf5e38a419614654ac4216804de860738 /scripts
parent7362be429ccf7c8381cc3e7f91c1a57ff1a11f7f (diff)
downloadportable-9091d5551c40315149912ff447264bde8e811453.tar.gz
portable-9091d5551c40315149912ff447264bde8e811453.tar.bz2
portable-9091d5551c40315149912ff447264bde8e811453.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.
Diffstat (limited to 'scripts')
-rwxr-xr-xscripts/test9
1 files changed, 5 insertions, 4 deletions
diff --git a/scripts/test b/scripts/test
index d093eab..3e4b291 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
@@ -61,8 +62,8 @@ elif [ "$ARCH" = "native" ]; then
61 # make distribution 62 # make distribution
62 make -j 4 distcheck 63 make -j 4 distcheck
63 64
64 tar zxvf libressl-*.tar.gz 65 tar zxvf libressl-$VERSION.tar.gz
65 cd libressl-* 66 cd libressl-$VERSION
66 67
67 68
68 # test cmake and ninja 69 # test cmake and ninja