diff options
author | Nikos Mavrogiannopoulos <nmav@redhat.com> | 2016-09-01 12:35:55 +0200 |
---|---|---|
committer | Nikos Mavrogiannopoulos <nmav@redhat.com> | 2016-09-02 14:37:41 +0200 |
commit | 6f0d8971e7995689ac1870c8e9e2b7a6eee38e0d (patch) | |
tree | cf3d0c686b1958ccd516d6ca98959768127e92b9 | |
parent | 26ab59400cf501c502354aea586155fbf2b5b964 (diff) | |
download | gnutls-shared-runners.tar.gz |
.gitlab-ci.yml: use the gitlab.com shared runnersshared-runners
-rw-r--r-- | .gitlab-ci.yml | 197 | ||||
-rwxr-xr-x | build-aux/wine-wrapper.sh | 11 | ||||
-rw-r--r-- | tests/pkcs11/softhsm.h | 4 |
3 files changed, 43 insertions, 169 deletions
diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml index 5ca605a449..120932eac2 100644 --- a/.gitlab-ci.yml +++ b/.gitlab-ci.yml @@ -1,108 +1,15 @@ -Compile minimal library and openssl compat: +image: fedora:24 + +Build and Check for windows64 in separate build dir: script: - - make autoreconf && ./configure --with-included-libtasn1 - --disable-doc --disable-dtls-srtp-support --disable-alpn-support --disable-rsa-export - --disable-heartbeat-support --disable-srp-authentication --disable-psk-authentication - --disable-anon-authentication --disable-dhe --disable-ecdhe --disable-openpgp-authentication - --disable-ocsp --disable-session-tickets --disable-openssl-compatibility --disable-non-suiteb-curves - --disable-nls --disable-crywrap --disable-libdane --without-p11-kit --without-tpm - --disable-ssl3-support --disable-ssl2-support --without-zlib --disable-doc --disable-tests --enable-openssl-compatibility && make -j4 - tags: - - nettle3 - - linux - except: - - tags -Build and Check with asan: - script: - - make autoreconf && CFLAGS="-fsanitize=address -g -O2" LDFLAGS="-static-libasan" - ./configure --disable-doc --enable-code-coverage --disable-valgrind-tests --disable-non-suiteb-curves --disable-guile && - make -j4 && make check -j4 && make local-code-coverage-output - tags: - - nettle3 - - lcov - - asan - - linux - except: - - tags - artifacts: - expire_in: 1 week - when: on_failure - paths: - - tests/*.log - - tests/*/*.log -Build and Check with C99 and ubsan: - script: - - make autoreconf && CFLAGS="-fsanitize=undefined -fno-sanitize-recover -g -std=c99 - -O2" LDFLAGS="-static-libubsan" ./configure --disable-doc --disable-valgrind-tests --disable-non-suiteb-curves --disable-guile --enable-code-coverage - && make -j4 && make check -j4 && make local-code-coverage-output - tags: - - ubsan - - lcov - - nettle3 - - linux - except: - - tags - artifacts: - expire_in: 1 week - when: on_failure - paths: - - tests/*.log - - tests/*/*.log -Build and Check - separate build dir (x86): - script: - - make autoreconf && mkdir -p build && cd build && - ../configure --disable-non-suiteb-curves --enable-seccomp-tests --disable-doc --disable-valgrind-tests --enable-code-coverage && - make -j4 && make check -j4 && make local-code-coverage-output - tags: - - x86 - - lcov - - nettle3 - - linux - except: - - tags - artifacts: - expire_in: 1 week - when: on_failure - paths: - - build/tests/*.log - - build/tests/*/*.log -Build and Check - without SSL 3.0: - script: - - make autoreconf && mkdir -p build && cd build && - ../configure --disable-ssl3-support --disable-ssl2-support --disable-non-suiteb-curves --enable-seccomp-tests --disable-doc --disable-valgrind-tests --enable-code-coverage && - make -j4 && make check -j4 && make local-code-coverage-output - tags: - - lcov - - nettle3 - - linux - except: - - tags - artifacts: - expire_in: 1 week - when: on_failure - paths: - - build/guile/tests/*.log - - build/tests/*.log - - build/tests/*/*.log -Build with ABI-check (x86-64): - script: - - make autoreconf && mkdir -p build && cd build && - ../configure --disable-doc --disable-cxx --disable-guile --disable-non-suiteb-curves && make -j4 && make abi-check - tags: - - x86-64 - - nettle3 - - abi-checker - - linux - except: - - tags -Build and Check - clang: - script: - - make autoreconf && - CC=clang ./configure --disable-non-suiteb-curves --enable-seccomp-tests --disable-doc --disable-valgrind-tests && - make -j4 && make check -C tests -j4 + - dnf install -y git autoconf libtool gettext-devel automake autogen nettle-devel p11-kit-devel autogen-libopts-devel trousers-devel guile-devel libtasn1-devel libidn-devel gawk gperf git2cl libtasn1-tools unbound-devel bison help2man xz net-tools + - dnf install -y clang libseccomp-devel libubsan libubsan-static nodejs softhsm datefudge lcov openssl-devel dieharder mbedtls-utils openssl libcmocka-devel socat xz ppp abi-compliance-checker valgrind + - dnf install -y wine mingw64-nettle mingw64-libtasn1 mingw64-gcc mingw64-gmp mingw32-libidn + - make autoreconf && rm -f tests/suite/mini-eagain2.c && mkdir -p build && cd build && + mingw64-configure --enable-local-libopts --without-p11-kit --disable-non-suiteb-curves --disable-doc --disable-valgrind-tests && + mingw64-make -j4 && mingw64-make LOG_COMPILER="$(pwd)/build-aux/wine-wrapper.sh" -C tests check -j4 tags: - - nettle3 - - linux + - shared except: - tags artifacts: @@ -110,54 +17,19 @@ Build and Check - clang: when: on_failure paths: - guile/tests/*.log - - tests/*.log - - tests/*/*.log -Build and Check in FIPS140-2 mode: - script: - - make autoreconf && mkdir -p build && cd build && - ../configure --disable-non-suiteb-curves --enable-fips140-mode --disable-doc --disable-valgrind-tests && - make -j4 && make check -j4 - tags: - - nettle3 - - linux - except: - - tags - artifacts: - when: on_failure - paths: - - guile/tests/*.log - build/tests/*.log - build/tests/*/*.log -Release build for windows DLLs: - script: - - make autoreconf && rm -f tests/suite/mini-eagain2.c && mingw32-configure --enable-local-libopts --without-p11-kit --disable-non-suiteb-curves --disable-doc --disable-valgrind-tests && - mingw32-make -j4 && mingw32-make -C tests check -j4 - tags: - - nettle3 - - wine - - mingw - - linux - only: - - tags - artifacts: - expire_in: 6 months - paths: - - src/*.exe - - lib/.libs/*.dll - - lib/.libs/*.a - - lib/*.def - - lib/includes/gnutls/*.h - - lib/gnutls.pc -Build and Check for windows in separate build dir: + +Build and Check for windows32 in separate build dir: script: + - dnf install -y git autoconf libtool gettext-devel automake autogen nettle-devel p11-kit-devel autogen-libopts-devel trousers-devel guile-devel libtasn1-devel libidn-devel gawk gperf git2cl libtasn1-tools unbound-devel bison help2man xz net-tools + - dnf install -y clang libseccomp-devel libubsan libubsan-static nodejs softhsm datefudge lcov openssl-devel dieharder mbedtls-utils openssl libcmocka-devel socat xz ppp abi-compliance-checker valgrind + - dnf install -y wine.i686 mingw32-nettle mingw32-libtasn1 mingw32-gcc mingw32-gmp mingw32-libidn - make autoreconf && rm -f tests/suite/mini-eagain2.c && mkdir -p build && cd build && mingw32-configure --enable-local-libopts --without-p11-kit --disable-non-suiteb-curves --disable-doc --disable-valgrind-tests && - mingw32-make -j4 && mingw32-make -C tests check -j4 + mingw32-make -j4 && mingw32-make LOG_COMPILER="$(pwd)/build-aux/wine-wrapper.sh" -C tests check -j4 tags: - - nettle3 - - wine - - mingw - - linux + - shared except: - tags artifacts: @@ -167,33 +39,24 @@ Build and Check for windows in separate build dir: - guile/tests/*.log - build/tests/*.log - build/tests/*/*.log -Build and Check with valgrind: - script: - - make autoreconf && rm -f tests/suite/mini-eagain2.c && ./configure - --disable-non-suiteb-curves --enable-code-coverage --disable-doc && make -j4 && make check -j4 && make local-code-coverage-output - tags: - - nettle3 - - lcov - - linux - except: - - tags - artifacts: - expire_in: 1 week - when: on_failure - paths: - - tests/*.log - - tests/*/*.log -Build and Check on FreeBSD: + +# We need a clean 32-bit fedora for testing +Build and Check - separate build dir (x86): + image: nickcis/fedora-32:23 script: - - gmake autoreconf && rm -f tests/suite/mini-eagain2.c && LIBS="-L/usr/local/lib" ./configure - --disable-guile --disable-doc --disable-valgrind-tests && gmake -j4 && gmake check -j4 + - linux32 dnf install -y autoconf libtool gettext-devel automake autogen nettle-devel p11-kit-devel autogen-libopts-devel trousers-devel guile-devel libtasn1-devel libidn-devel gawk gperf git2cl libtasn1-tools unbound-devel bison help2man xz net-tools libseccomp-devel libubsan libubsan-static nodejs softhsm datefudge lcov openssl-devel dieharder mbedtls-utils openssl libcmocka-devel socat xz ppp abi-compliance-checker valgrind + - make autoreconf && mkdir -p build && cd build && + ../configure --disable-cxx --disable-hardware-acceleration --disable-non-suiteb-curves --enable-seccomp-tests --disable-doc --disable-valgrind-tests --enable-code-coverage && + make -j4 && make check -j4 && make local-code-coverage-output tags: - - freebsd + - shared except: - tags artifacts: expire_in: 1 week when: on_failure paths: - - tests/*.log - - tests/*/*.log + - build/*.log + - build/tests/*.log + - build/tests/*/*.log + diff --git a/build-aux/wine-wrapper.sh b/build-aux/wine-wrapper.sh new file mode 100755 index 0000000000..6f903554e8 --- /dev/null +++ b/build-aux/wine-wrapper.sh @@ -0,0 +1,11 @@ +#!/bin/sh + +case "$1" in +*.exe) + /usr/bin/env wine $@ + ;; + +*) + $@ + ;; +esac diff --git a/tests/pkcs11/softhsm.h b/tests/pkcs11/softhsm.h index 3ac8167d74..bd94bd8526 100644 --- a/tests/pkcs11/softhsm.h +++ b/tests/pkcs11/softhsm.h @@ -50,13 +50,13 @@ inline static const char *softhsm_lib(void) { const char *lib; - if (access(LIB1, R_OK) == 0) { + if (sizeof(int) == 8 && access(LIB1, R_OK) == 0) { lib = LIB1; } else if (access(LIB2, R_OK) == 0) { lib = LIB2; } else if (access(LIB3, R_OK) == 0) { lib = LIB3; - } else if (access(LIB4, R_OK) == 0) { + } else if (sizeof(int) == 8 && access(LIB4, R_OK) == 0) { lib = LIB4; } else { fprintf(stderr, "cannot find softhsm module\n"); |