diff --git a/.cirrus.yml b/.cirrus.yml new file mode 100644 index 0000000..50f7e98 --- /dev/null +++ b/.cirrus.yml @@ -0,0 +1,81 @@ +env: + LANG: C + +common_task_template: &COMMON_TASK_TEMPLATE + configure_script: + - ./autogen.sh + - ./configure --enable-all --enable-developer-warnings --enable-werror + compile_script: + - make + test_script: + - make check + dist_script: + - make dist + source_artifacts: + path: "*.xz" + +alpine_task: + name: Alpine + matrix: + - name: Alpine + container: + image: alpine:latest + prepare_script: + - apk update + - apk add autoconf automake gcc g++ make libtool pkgconf xz + << : *COMMON_TASK_TEMPLATE + +debian_task: + name: Debian + matrix: + - name: Debian 12 + container: + image: debian:bookworm + - name: Debian 11 + container: + image: debian:bullseye + - name: Debian 10 + container: + image: debian:buster + prepare_script: + - apt-get update + - apt-get install -y autoconf automake gcc g++ make libtool pkg-config + << : *COMMON_TASK_TEMPLATE + +fedora_task: + name: Fedora + matrix: + - name: Fedora 37 + container: + image: fedora:37 + - name: Fedora 36 + container: + image: fedora:36 + - name: Fedora 35 + container: + image: fedora:35 + prepare_script: + - dnf install -y autoconf automake gcc g++ make libtool pkg-config xz + << : *COMMON_TASK_TEMPLATE + +freebsd_task: + name: FreeBSD + matrix: + - name: FreeBSD 14 + freebsd_instance: + image_family: freebsd-14-0-snap + - name: FreeBSD 13 + freebsd_instance: + image_family: freebsd-13-1 + - name: FreeBSD 12 + freebsd_instance: + image_family: freebsd-12-3 + prepare_script: + - pkg update -f + - pkg install -y autoconf automake gmake libtool pkgconf + << : *COMMON_TASK_TEMPLATE + package_script: + - make -C freebsd package + - mv freebsd/work/pkg/*.pkg . + binaries_artifacts: + path: "*.pkg" diff --git a/.gitignore b/.gitignore index 90d685a..08d589b 100644 --- a/.gitignore +++ b/.gitignore @@ -21,6 +21,7 @@ *.o *.pc *.trs +*.xz Makefile Makefile.in test.cov diff --git a/.travis.yml b/.travis.yml deleted file mode 100644 index ac9dc68..0000000 --- a/.travis.yml +++ /dev/null @@ -1,30 +0,0 @@ -dist: xenial - -language: c -compiler: - - clang - - gcc - -before_install: - - sudo apt-get update -q - - sudo apt-get install -y pkg-config - -before_script: - - ./autogen.sh - - ./configure --enable-developer-warnings --enable-werror - -script: - - make check - -# Coverity Scan configuration -env: - global: - - CFLAGS="-Wno-unused-result" - - secure: "mvZ7LO2lCFicTg+L3c4PvDeXtMR7ez2pfPYJ/BSYLknTx1yzz31p9k1lwFPnG86oBK4A5MxnlGj+LAfLBRR2ZxvVh5enQyjqSSFfGzG06bmSmfzbM+wkveTzFiKyAnWyzd0bFshsU0tuFXU4QH3jiO+/QO+ixybNyw2wgC+yBz0/OBmzIVKvoK7mqBl31givL6YsLPF5HdipMZK7KHYxp1Kjj36AF1QmsivMKalMjBGIh5PeJ8QY3R/GDdy+I2zEyAS1a6fFMcBbCQrjPl4eQJ/y6pl3EuvMfeSjRUPXvzEf9fiwZcuiw9KY0EDtYuIAyzaBUTHuW/tO359LbLYI4X2V3SgA5b58H0zDvavssRzAp/l/bYq70Q0n1Xz/aF1R01SDqG48BFMWWT3eb7eLIeZNapPLOWk07D801Wpt8XYbfEDZZ5FA5UK/o8DBAlIEDivFLkuG2+vv9wMwY0qkTQ8ZyBvfSRa/pjVBpiPiPRO5Pg6UrnPOHnX7hf+IGa1U38vY8S8sBdA0Xc4QSH3K7dQZc33N12Nhrbp9hQR5WFPz35CZVnf77XPLSWocG1icb6tFF2ybzE26XiUXzRy6eaVkfcNlAvtUl4Rci7520436bJnNfZiFMD9Lj4Wy/td89guqboH2jETcHbly5h5yqfL+95pCt+0i3zCtC0GfrbU=" -addons: - coverity_scan: - project: - name: cryb-to/cryb-to - notification_email: des@des.no - build_command: make - branch_pattern: scan diff --git a/configure.ac b/configure.ac index a5137fb..6d8dfee 100644 --- a/configure.ac +++ b/configure.ac @@ -3,7 +3,7 @@ AC_INIT([cryb.to], [0.20221002], [des@des.no], [cryb-to], [http://cryb.to/]) AC_CONFIG_SRCDIR([include/cryb/core.h]) AC_CONFIG_MACRO_DIR([m4]) AM_INIT_AUTOMAKE([foreign no-dist-gzip dist-xz]) -AM_CONFIG_HEADER([include/config.h]) +AC_CONFIG_HEADERS([include/config.h]) AM_MAINTAINER_MODE([enable]) ############################################################################ diff --git a/lib/mac/cryb_hmac_sha1.c b/lib/mac/cryb_hmac_sha1.c index 26f6900..c2bf389 100644 --- a/lib/mac/cryb_hmac_sha1.c +++ b/lib/mac/cryb_hmac_sha1.c @@ -35,7 +35,6 @@ #endif #if HAVE_ENDIAN_H -#define _BSD_SOURCE #include #endif diff --git a/lib/mac/cryb_hmac_sha224.c b/lib/mac/cryb_hmac_sha224.c index 91bbd77..1d9bd6a 100644 --- a/lib/mac/cryb_hmac_sha224.c +++ b/lib/mac/cryb_hmac_sha224.c @@ -35,7 +35,6 @@ #endif #if HAVE_ENDIAN_H -#define _BSD_SOURCE #include #endif diff --git a/lib/mac/cryb_hmac_sha256.c b/lib/mac/cryb_hmac_sha256.c index 126ed63..10f376c 100644 --- a/lib/mac/cryb_hmac_sha256.c +++ b/lib/mac/cryb_hmac_sha256.c @@ -35,7 +35,6 @@ #endif #if HAVE_ENDIAN_H -#define _BSD_SOURCE #include #endif diff --git a/lib/mac/cryb_hmac_sha384.c b/lib/mac/cryb_hmac_sha384.c index b5efe1e..d70b171 100644 --- a/lib/mac/cryb_hmac_sha384.c +++ b/lib/mac/cryb_hmac_sha384.c @@ -35,7 +35,6 @@ #endif #if HAVE_ENDIAN_H -#define _BSD_SOURCE #include #endif diff --git a/lib/mac/cryb_hmac_sha512.c b/lib/mac/cryb_hmac_sha512.c index 1935a1a..e083e48 100644 --- a/lib/mac/cryb_hmac_sha512.c +++ b/lib/mac/cryb_hmac_sha512.c @@ -35,7 +35,6 @@ #endif #if HAVE_ENDIAN_H -#define _BSD_SOURCE #include #endif diff --git a/t/t_fnv.c b/t/t_fnv.c index 2559bb8..982649c 100644 --- a/t/t_fnv.c +++ b/t/t_fnv.c @@ -133,12 +133,12 @@ t_prepare(int argc, char *argv[]) t_add_test(t_fnv0_64, &t_offset_basis, "FNV-64 offset basis"); n = sizeof t_cases / sizeof t_cases[0]; for (i = 0; i < n; ++i) { - t_add_test(t_fnv0_32, &t_cases[i], ""); - t_add_test(t_fnv0_64, &t_cases[i], ""); - t_add_test(t_fnv1_32, &t_cases[i], ""); - t_add_test(t_fnv1_64, &t_cases[i], ""); - t_add_test(t_fnv1a_32, &t_cases[i], ""); - t_add_test(t_fnv1a_64, &t_cases[i], ""); + t_add_test(t_fnv0_32, &t_cases[i], "FNV-0-32"); + t_add_test(t_fnv0_64, &t_cases[i], "FNV-0-64"); + t_add_test(t_fnv1_32, &t_cases[i], "FNV-1-32"); + t_add_test(t_fnv1_64, &t_cases[i], "FNV-1-64"); + t_add_test(t_fnv1a_32, &t_cases[i], "FNV-1a-32"); + t_add_test(t_fnv1a_64, &t_cases[i], "FNV-1a-64"); } return (0); } diff --git a/t/t_hmac_sha1.c b/t/t_hmac_sha1.c index 2c22e27..f9e7b76 100644 --- a/t/t_hmac_sha1.c +++ b/t/t_hmac_sha1.c @@ -33,6 +33,7 @@ #include #include #include +#include #include diff --git a/t/t_hmac_sha224.c b/t/t_hmac_sha224.c index 36af581..094389d 100644 --- a/t/t_hmac_sha224.c +++ b/t/t_hmac_sha224.c @@ -33,6 +33,7 @@ #include #include #include +#include #include diff --git a/t/t_hmac_sha256.c b/t/t_hmac_sha256.c index 44347f2..24cdc9e 100644 --- a/t/t_hmac_sha256.c +++ b/t/t_hmac_sha256.c @@ -33,6 +33,7 @@ #include #include #include +#include #include diff --git a/t/t_hmac_sha384.c b/t/t_hmac_sha384.c index 1e9b93e..f24a499 100644 --- a/t/t_hmac_sha384.c +++ b/t/t_hmac_sha384.c @@ -33,6 +33,7 @@ #include #include #include +#include #include diff --git a/t/t_hmac_sha512.c b/t/t_hmac_sha512.c index 5855a06..4755c0d 100644 --- a/t/t_hmac_sha512.c +++ b/t/t_hmac_sha512.c @@ -33,6 +33,7 @@ #include #include #include +#include #include