]> git.ipfire.org Git - thirdparty/strongswan.git/commitdiff
Use Botan 2.14.0 for tests
authorTobias Brunner <tobias@strongswan.org>
Tue, 7 Apr 2020 08:07:30 +0000 (10:07 +0200)
committerTobias Brunner <tobias@strongswan.org>
Tue, 7 Apr 2020 14:37:27 +0000 (16:37 +0200)
Requires at least GCC 5.0 to build with `--amalgamation`, so it's
disabled for our Ubuntu 16.04 build.

.travis.yml
scripts/test.sh
testing/scripts/recipes/011_botan.mk

index c827f02175357ef186236465f9531cf48a72d236..dd922a9eb10764576100b6cf75c26f822c1cb356 100644 (file)
@@ -63,9 +63,9 @@ jobs:
       arch: ppc64le
     - env: TEST=all
       arch: s390x
-    - env: TEST=all
+    - env: TEST=all UBUNTU_XENIAL=yes
       dist: xenial
-    - env: TEST=all
+    - env: TEST=all UBUNTU_XENIAL=yes
       dist: xenial
       compiler: clang
     - env: TEST=all MONOLITHIC=yes
@@ -105,9 +105,9 @@ jobs:
     - env: TEST=wolfssl LEAK_DETECTIVE=yes
     - env: TEST=openssl
     - env: TEST=openssl LEAK_DETECTIVE=yes
-    - env: TEST=openssl-1.0
+    - env: TEST=openssl-1.0 UBUNTU_XENIAL=yes
       dist: xenial
-    - env: TEST=openssl-1.0 LEAK_DETECTIVE=yes
+    - env: TEST=openssl-1.0 LEAK_DETECTIVE=yes UBUNTU_XENIAL=yes
       dist: xenial
     - env: TEST=gcrypt
     - env: TEST=gcrypt LEAK_DETECTIVE=yes
index 98731699ed5389d0bf4fa70ff36ffa82b1b15841..8f7017947567e6811aa7d33c66ea8a10c21e6753 100755 (executable)
@@ -4,7 +4,7 @@
 build_botan()
 {
        # same revision used in the build recipe of the testing environment
-       BOTAN_REV=0881f2c33ff7 # 2.13.0 + amalgamation patch
+       BOTAN_REV=2.14.0
        BOTAN_DIR=$DEPS_BUILD_DIR/botan
 
        if test -d "$BOTAN_DIR"; then
@@ -113,10 +113,6 @@ gcrypt)
 botan)
        CONFIG="--disable-defaults --enable-pki --enable-botan --enable-pem"
        export TESTS_PLUGINS="test-vectors pem botan!"
-       # we can't use the old package that comes with Ubuntu so we build from
-       # the current master until 2.8.0 is released and then probably switch to
-       # that unless we need newer features (at least 2.7.0 plus PKCS#1 patch is
-       # currently required)
        DEPS=""
        if test "$1" = "deps"; then
                build_botan
@@ -153,13 +149,19 @@ all|coverage|sonarcloud)
                # not actually required but configure checks for it
                DEPS="$DEPS lcov"
        fi
+       # Botan requires GCC 5.0, so disable it on Ubuntu 16.04
+       if test -n "$UBUNTU_XENIAL"; then
+               CONFIG="$CONFIG --disable-botan"
+       fi
        DEPS="$DEPS libcurl4-gnutls-dev libsoup2.4-dev libunbound-dev libldns-dev
                  libmysqlclient-dev libsqlite3-dev clearsilver-dev libfcgi-dev
                  libpcsclite-dev libpam0g-dev binutils-dev libnm-dev libgcrypt20-dev
                  libjson-c-dev iptables-dev python-pip libtspi-dev libsystemd-dev"
        PYDEPS="tox"
        if test "$1" = "deps"; then
-               build_botan
+               if test -z "$UBUNTU_XENIAL"; then
+                       build_botan
+               fi
                build_wolfssl
                build_tss2
        fi
index 98deaa1b1ac6cf8854de00d1008409c97b45c8df..7244a20fb9e2f31803e26cee11c8705a09ea0f4e 100644 (file)
@@ -2,7 +2,7 @@
 
 PKG = botan
 SRC = https://github.com/randombit/$(PKG).git
-REV = 2.13.0
+REV = 2.14.0
 
 NUM_CPUS := $(shell getconf _NPROCESSORS_ONLN)