Update SoftHSM v2.0 to the latest version
[aaf/sshsm.git] / SoftHSMv2 / testing / travis / travis.sh
1 #!/bin/sh
2
3 CONF_CRYPTO=""
4 CONF_OBJSTORE=""
5
6 case $CRYPTO in
7 botan)
8         CONF_CRYPTO="$CONF_CRYPTO --with-crypto-backend=botan --with-botan=/usr"
9         CONF_CRYPTO="$CONF_CRYPTO --disable-ecc --disable-eddsa --disable-gost"
10         ;;
11 openssl)
12         CONF_CRYPTO="$CONF_CRYPTO --with-crypto-backend=openssl --with-openssl=/usr"
13         CONF_CRYPTO="$CONF_CRYPTO --disable-eddsa --disable-gost"
14         openssl version -a
15         ;;
16 *)
17         echo "Unknown crypto backend"
18         exit 1
19 esac
20
21 case $OBJSTORE in
22 file)
23         CONF_OBJSTORE="$CONF_OBJSTORE"
24         ;;
25 sqlite)
26         CONF_OBJSTORE="$CONF_OBJSTORE --with-objectstore-backend-db --with-migrate"
27         ;;
28 *)
29         echo "Unknown objectstore backend"
30         exit 1
31 esac
32
33 sh autogen.sh && \
34 ./configure $CONF_CRYPTO $CONF_OBJSTORE && \
35 make all check