apk upgrade
apk add \
- git binutils make autoconf automake gcc linux-headers diffutils texinfo \
- procps socat shadow sudo libgcrypt-dev \
+ git binutils make autoconf automake gcc linux-headers diffutils \
+ procps socat shadow sudo libgcrypt-dev texinfo texlive gzip \
openssl-dev zlib-dev lzo-dev ncurses-dev readline-dev musl-dev lz4-dev vde2-dev
}
apt-get upgrade -y
apt-get install -y \
- git binutils make autoconf automake gcc diffutils sudo texinfo netcat-openbsd procps socat \
+ git binutils make autoconf automake gcc diffutils sudo texinfo texlive netcat-openbsd procps socat \
zlib1g-dev:"$HOST" \
libssl-dev:"$HOST" \
liblzo2-dev:"$HOST" \
yum upgrade -y
yum install -y \
- git binutils make autoconf automake gcc diffutils sudo texinfo netcat procps systemd \
+ git binutils make autoconf automake gcc diffutils sudo texinfo-tex netcat procps systemd \
findutils socat lzo-devel zlib-devel lz4-devel ncurses-devel readline-devel libgcrypt-devel "$@"
if yum info openssl11-devel; then
+# plain make
src:ed25519/*
src:chacha-poly1305/*
src:xoshiro.c
+
+# make distcheck
+src:../../../src/ed25519/*
+src:../../../src/chacha-poly1305/*
+src:../../../src/xoshiro.c
header "Running test flavor $flavor"
autoreconf -fsi
- # shellcheck disable=SC2046
- ./configure $(sh .ci/conf.sh "$@")
+
+ DISTCHECK_CONFIGURE_FLAGS=$(sh .ci/conf.sh "$@")
+ export DISTCHECK_CONFIGURE_FLAGS
+
+ # shellcheck disable=SC2086
+ ./configure $DISTCHECK_CONFIGURE_FLAGS
+
make -j"$(nproc)" all extra
+ if [ "$(uname -s)" = Linux ]; then
+ cmd=distcheck
+ else
+ cmd=check
+ fi
+
code=0
- make check -j2 VERBOSE=1 || code=$?
+ make $cmd -j2 VERBOSE=1 || code=$?
sudo tar -c -z -f "/tmp/logs/tests.$flavor.tar.gz" test/ sanitizer/
CLEANFILES = README
+# If we're running on a CI server, we may not be able to remove some test
+# artifacts without using sudo because they are created by tincd running
+# with root privileges.
+clean-local:
+ if test -n "${CI}"; then sudo rm -rf test/*.test.*/; fi
+
ChangeLog:
(cd $(srcdir) && git log) > ChangeLog