diff options
-rwxr-xr-x | scripts/test | 10 | ||||
-rwxr-xr-x | update.sh | 2 |
2 files changed, 7 insertions, 5 deletions
diff --git a/scripts/test b/scripts/test index d093eab..e389728 100755 --- a/scripts/test +++ b/scripts/test | |||
@@ -13,6 +13,8 @@ fi | |||
13 | # generate source tree | 13 | # generate source tree |
14 | ./autogen.sh | 14 | ./autogen.sh |
15 | 15 | ||
16 | VERSION=`cat VERSION` | ||
17 | |||
16 | if [ "$ARCH" = "" ]; then | 18 | if [ "$ARCH" = "" ]; then |
17 | ARCH=`uname -m` | 19 | ARCH=`uname -m` |
18 | fi | 20 | fi |
@@ -26,8 +28,8 @@ if [ `uname` = "Darwin" ]; then | |||
26 | make -j 4 distcheck | 28 | make -j 4 distcheck |
27 | 29 | ||
28 | # test cmake | 30 | # test cmake |
29 | tar zxvf libressl-*.tar.gz | 31 | tar zxvf libressl-$VERSION.tar.gz |
30 | cd libressl-* | 32 | cd libressl-$VERSION |
31 | 33 | ||
32 | ( | 34 | ( |
33 | mkdir build-static | 35 | mkdir build-static |
@@ -61,8 +63,8 @@ elif [ "$ARCH" = "native" ]; then | |||
61 | # make distribution | 63 | # make distribution |
62 | make -j 4 distcheck | 64 | make -j 4 distcheck |
63 | 65 | ||
64 | tar zxvf libressl-*.tar.gz | 66 | tar zxvf libressl-$VERSION.tar.gz |
65 | cd libressl-* | 67 | cd libressl-$VERSION |
66 | 68 | ||
67 | 69 | ||
68 | # test cmake and ninja | 70 | # test cmake and ninja |
@@ -149,7 +149,7 @@ else | |||
149 | $CP $libcrypto_src/opensslv.h include/openssl | 149 | $CP $libcrypto_src/opensslv.h include/openssl |
150 | fi | 150 | fi |
151 | 151 | ||
152 | awk '/LIBRESSL_VERSION_TEXT/ {print $4}' < include/openssl/opensslv.h | cut -d\" -f1 > VERSION | 152 | awk '/LIBRESSL_VERSION_TEXT/ {print $4}' < include/openssl/opensslv.h | cut -d\" -f1 | head -n1 > VERSION |
153 | echo "LibreSSL version `cat VERSION`" | 153 | echo "LibreSSL version `cat VERSION`" |
154 | 154 | ||
155 | # copy libcrypto source | 155 | # copy libcrypto source |