From 0c89b3ccba7c9b7332ab67ae1936aff51ca62367 Mon Sep 17 00:00:00 2001 From: NingSun Date: Thu, 8 Feb 2018 08:34:03 -0800 Subject: Initial sshsm project structure Issue-ID: AAF-94 Change-Id: I5e82fff418e7567b161acf9b98013a9b85ffc5b4 Signed-off-by: NingSun --- SoftHSMv2/testing/travis/travis.sh | 35 +++++++++++++++++++++++++++++++++++ 1 file changed, 35 insertions(+) create mode 100644 SoftHSMv2/testing/travis/travis.sh (limited to 'SoftHSMv2/testing/travis/travis.sh') diff --git a/SoftHSMv2/testing/travis/travis.sh b/SoftHSMv2/testing/travis/travis.sh new file mode 100644 index 0000000..6a1ca1f --- /dev/null +++ b/SoftHSMv2/testing/travis/travis.sh @@ -0,0 +1,35 @@ +#!/bin/sh + +CONF_CRYPTO="" +CONF_OBJSTORE="" + +case $CRYPTO in +botan) + CONF_CRYPTO="$CONF_CRYPTO --with-crypto-backend=botan --with-botan=/usr" + CONF_CRYPTO="$CONF_CRYPTO --disable-ecc --disable-gost" + ;; +openssl) + CONF_CRYPTO="$CONF_CRYPTO --with-crypto-backend=openssl --with-openssl=/usr" + CONF_CRYPTO="$CONF_CRYPTO --disable-gost" + openssl version -a + ;; +*) + echo "Unknown crypto backend" + exit 1 +esac + +case $OBJSTORE in +file) + CONF_OBJSTORE="$CONF_OBJSTORE" + ;; +sqlite) + CONF_OBJSTORE="$CONF_OBJSTORE --with-objectstore-backend-db --with-migrate" + ;; +*) + echo "Unknown objectstore backend" + exit 1 +esac + +sh autogen.sh && \ +./configure $CONF_CRYPTO $CONF_OBJSTORE && \ +make all check -- cgit 1.2.3-korg