Skip to content

Commit

Permalink
script to run at release (#290)
Browse files Browse the repository at this point in the history
  • Loading branch information
baentsch committed Mar 3, 2021
1 parent a070c4d commit 46b4456
Showing 1 changed file with 28 additions and 0 deletions.
28 changes: 28 additions & 0 deletions oqs-scripts/release-test.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,28 @@
#!/bin/bash

# To be run as part of a release test only on Linux

# must be run in main folder
# on a serious machine (48+ cores, say)

if [ -d oqs-scripts ]; then
# just a temp setup
git checkout -b reltest
sed -i "s/enable\: false/enable\: true/g" oqs-template/generate.yml && \
python3 oqs-template/generate.py && \
oqs-scripts/clone_liboqs.sh && \
oqs-scripts/build_liboqs.sh && \
./Configure no-shared linux-x86_64 -lm && make generate_crypto_objects && \
make -j 48 && make test && \
python3 -m pytest --numprocesses=auto oqs-test/test_tls_full.py oqs-test/test_cms.py oqs-test/test_speed.py && \
LIBOQS_LIBTYPE=shared oqs-scripts/build_liboqs.sh && \
cp oqs/lib/*.so* . && \
make clean && ./Configure shared linux-x86_64 -lm && \
make -j 48 && LD_LIBRARY_PATH=. make test && \
LD_LIBRARY_PATH=. python3 -m pytest --numprocesses=auto oqs-test/test_tls_full.py oqs-test/test_cms.py oqs-test/test_speed.py
# revert temp setup
git reset --hard
else
echo "$0 must be run in main oqs-openssl folder. Exiting."
fi

0 comments on commit 46b4456

Please sign in to comment.