-exec clang-tidy --header-filter='.*' '{}' +
if: always()
+ - name: Check warnings (gcc)
+ run: bash .github/workflows/warn/run.sh
+ env:
+ CC: gcc
+ if: always()
+
+ - name: Check warnings (clang)
+ run: bash .github/workflows/warn/run.sh
+ env:
+ CC: clang
+ if: always()
+
sanitizer:
runs-on: ubuntu-latest
timeout-minutes: 10
--- /dev/null
+#!/bin/sh
+
+set -eu
+
+test -n "$CC"
+export CFLAGS="${CFLAGS:-} -Werror"
+
+result=0
+
+check_warnings() {
+ git clean -dfx
+
+ autoreconf -fsi
+ ./configure --enable-uml --enable-vde --enable-miniupnpc "$@"
+
+ make -j"$(nproc)" all extra || result=$?
+}
+
+check_warnings
+check_warnings --disable-legacy-protocol
+
+exit $result
@CODE_COVERAGE_RULES@
+.PHONY: extra
+extra:
+ $(MAKE) -C $(srcdir)/src extra
+ $(MAKE) -C $(srcdir)/test extra
+
# If git describe works, force autoconf to run in order to make sure we have the
# current version number from git in the resulting configure script.
configure-version:
sbin_PROGRAMS = tincd tinc
check_PROGRAMS = sptps_test sptps_keypair
-EXTRA_PROGRAMS = sptps_test sptps_keypair
+EXTRA_PROGRAMS = $(check_PROGRAMS)
CLEANFILES = version_git.h
+.PHONY: extra
+extra: $(EXTRA_PROGRAMS)
+
.PHONY: version-stamp
version-stamp:
splice_SOURCES = splice.c
+.PHONY: extra
+extra: $(check_PROGRAMS)
+
clean-local:
-for pid in *.test.?/pid; do ../src/tinc --pidfile="$$pid" stop; done
-killall ../src/sptps_test