Skip to content

Commit f0ac63d

Browse files
author
Andras Fekete
committed
Add in sample scripts
1 parent a041641 commit f0ac63d

3 files changed

Lines changed: 39 additions & 1 deletion

File tree

Makefile.am

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@ include src/include.am
1818
include include/include.am
1919
include test/include.am
2020
include certs/include.am
21-
#include scripts/include.am
21+
include scripts/include.am
2222

2323
#noinst_PROGRAMS += bench
2424
#bench_SOURCES = bench.c

scripts/build-wolfprovider.sh

Lines changed: 32 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,32 @@
1+
#!/bin/bash
2+
# This script provides the bare minimum function definitions for compiling
3+
# the wolfProvider library
4+
5+
SCRIPT_DIR="$( cd "$( dirname "${BASH_SOURCE[0]}" )" &> /dev/null && pwd )"
6+
LOG_FILE=${SCRIPT_DIR}/build-release.log
7+
source ${SCRIPT_DIR}/utils-wolfprovider.sh
8+
9+
kill_servers() {
10+
if [ "$(jobs -p)" != "" ]; then
11+
kill $(jobs -p)
12+
fi
13+
}
14+
15+
do_cleanup() {
16+
sleep 0.5 # flush buffers
17+
kill_servers
18+
}
19+
20+
do_trap() {
21+
printf "got trap\n"
22+
do_cleanup
23+
date
24+
exit 1
25+
}
26+
trap do_trap INT TERM
27+
28+
echo "Using openssl: $OPENSSL_TAG, wolfssl: $WOLFSSL_TAG"
29+
30+
init_wolfprov
31+
32+
exit $?

scripts/include.am

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,6 @@
1+
dist_noinst_SCRIPTS += scripts/build-wolfprovider.sh
2+
dist_noinst_SCRIPTS += scripts/test-openssl.sh
3+
dist_noinst_SCRIPTS += scripts/test-wp-cs.sh
4+
dist_noinst_SCRIPTS += scripts/utils-openssl.sh
5+
dist_noinst_SCRIPTS += scripts/utils-wolfssl.sh
6+
dist_noinst_SCRIPTS += scripts/utils-wolfprovider.sh

0 commit comments

Comments
 (0)