aboutsummaryrefslogtreecommitdiff
path: root/update.sh
diff options
context:
space:
mode:
authorBrent Cook <busterb@gmail.com>2014-07-10 19:41:42 -0500
committerBrent Cook <busterb@gmail.com>2014-07-10 19:43:04 -0500
commitfaaf265e849078c99fa701facf8952a5a18e12fd (patch)
treebed0cd49d8c6b74aaa3f20f2747cb138ca6aa29f /update.sh
parent2ce79c599beb6cb083893ee1052043ff34d9a27e (diff)
downloadportable-faaf265e849078c99fa701facf8952a5a18e12fd.tar.gz
portable-faaf265e849078c99fa701facf8952a5a18e12fd.tar.bz2
portable-faaf265e849078c99fa701facf8952a5a18e12fd.zip
build fixes and simplifications
switch from submodules to plain-old-clones remove broken biotest for now ok beck@
Diffstat (limited to 'update.sh')
-rwxr-xr-xupdate.sh37
1 files changed, 13 insertions, 24 deletions
diff --git a/update.sh b/update.sh
index bc2d755..c6ae79c 100755
--- a/update.sh
+++ b/update.sh
@@ -3,15 +3,15 @@ set -e
3 3
4# resync this library with the upstream project, remove old submodule dirs 4# resync this library with the upstream project, remove old submodule dirs
5if [ -d openbsd ]; then 5if [ -d openbsd ]; then
6git submodule init 6 (cd openbsd
7git submodule update 7 git co master
8 git pull)
8else 9else
9if [ -z "$LIBRESSL_GIT" ]; then 10 if [ -z "$LIBRESSL_GIT" ]; then
10git submodule add https://github.com/libressl-portable/openbsd.git 11 git clone https://github.com/libressl-portable/openbsd.git
11else 12 else
12git submodule add $LIBRESSL_GIT/openbsd 13 git clone $LIBRESSL_GIT/openbsd
13git submodule update 14 fi
14fi
15fi 15fi
16 16
17libssl_src=openbsd/src/lib/libssl 17libssl_src=openbsd/src/lib/libssl
@@ -292,7 +292,7 @@ for i in ssl/ssltest.c ssl/testssl certs/ca.pem certs/server.pem; do
292done 292done
293 293
294# do not directly run all test programs 294# do not directly run all test programs
295test_excludes=(aeadtest evptest pq_test ssltest arc4randomforktest) 295test_excludes=(biotest aeadtest evptest pq_test ssltest arc4randomforktest)
296(cd tests 296(cd tests
297 cp Makefile.am.tpl Makefile.am 297 cp Makefile.am.tpl Makefile.am
298 298
@@ -313,8 +313,10 @@ cp $libcrypto_regress/aead/aeadtests.txt tests
313cp $libcrypto_regress/pqueue/expected.txt tests/pq_expected.txt 313cp $libcrypto_regress/pqueue/expected.txt tests/pq_expected.txt
314chmod 755 tests/testssl 314chmod 755 tests/testssl
315for i in "${test_excludes[@]}"; do 315for i in "${test_excludes[@]}"; do
316 echo "TESTS += ${i}.sh" >> tests/Makefile.am 316 if [ -e tests/${i}.sh ]; then
317 echo "EXTRA_DIST += ${i}.sh" >> tests/Makefile.am 317 echo "TESTS += ${i}.sh" >> tests/Makefile.am
318 echo "EXTRA_DIST += ${i}.sh" >> tests/Makefile.am
319 fi
318done 320done
319echo "EXTRA_DIST += aeadtests.txt" >> tests/Makefile.am 321echo "EXTRA_DIST += aeadtests.txt" >> tests/Makefile.am
320echo "EXTRA_DIST += evptests.txt" >> tests/Makefile.am 322echo "EXTRA_DIST += evptests.txt" >> tests/Makefile.am
@@ -328,19 +330,6 @@ echo "EXTRA_DIST += testssl ca.pem server.pem" >> tests/Makefile.am
328 done 330 done
329) 331)
330 332
331#XXX fix this in a header and remove it.
332# remove unsupported __bounded__ attributes
333#bounded_excludes=(
334# include/openssl/bio.h
335# include/openssl/buffer.h
336# include/openssl/md5.h
337# include/openssl/sha.h
338# crypto/chacha/chacha-merged.c
339# )
340#for i in "${bounded_excludes[@]}"; do
341# sed -ie 's/__attribute__.*((__bounded__.*/;/' $i
342#done
343
344(cd ssl 333(cd ssl
345 sed -e "s/libssl-version/${libssl_version}/" Makefile.am.tpl > Makefile.am 334 sed -e "s/libssl-version/${libssl_version}/" Makefile.am.tpl > Makefile.am
346 for i in `ls -1 *.c|sort`; do 335 for i in `ls -1 *.c|sort`; do