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:28:17 -0500 |
| commit | 7a5a03ef8504e2b3faf1f34a8d38d3e6e0dfa18a (patch) | |
| tree | b602308f10444c2867c844ef4ef3ad012990f066 /scripts/test | |
| parent | 624f5579fa54a6b6df982d2481f43b8d0ca8729e (diff) | |
| download | portable-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.
Diffstat (limited to 'scripts/test')
| -rwxr-xr-x | scripts/test | 9 |
1 files changed, 5 insertions, 4 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 |
