Commit e13f680c authored by Jan Včelák's avatar Jan Včelák 🚀

build: add check-compile target to compile tests without running them

parent 3e10240d
......@@ -11,6 +11,7 @@ m4_define([knot_PKG_VERSION],[knot_VERSION_MAJOR.knot_VERSION_MINOR.knot_VERSION
AC_INIT([knot], knot_PKG_VERSION, [knot-dns@labs.nic.cz])
AM_INIT_AUTOMAKE([gnits subdir-objects no-dist-gzip dist-xz -Wall -Werror])
AM_SILENT_RULES([yes])
AM_EXTRA_RECURSIVE_TARGETS([check-compile])
AC_CONFIG_SRCDIR([src/knot])
AC_CONFIG_HEADERS([src/config.h])
AC_CONFIG_MACRO_DIR([m4])
......
......@@ -11,3 +11,5 @@ check_PROGRAMS = \
EXTRA_DIST = \
tap/libtap.sh
check-compile-local: $(check_LTLIBRARIES) $(check_PROGRAMS)
......@@ -48,7 +48,7 @@ check_PROGRAMS = \
keystore_pkcs11_CPPFLAGS = $(AM_CPPFLAGS) -DLIBDIR='"$(libdir)"'
check-compile-only: $(check_PROGRAMS)
check-compile-local: $(check_PROGRAMS)
check-local: $(check_PROGRAMS)
$(top_builddir)/libtap/runtests -s $(srcdir) \
......
......@@ -24,7 +24,7 @@ tests/unittests:
$(edit) < $(top_srcdir)/src/zscanner/$@.in > $(top_builddir)/src/zscanner/$@
chmod +x $(top_builddir)/src/zscanner/$@
check-compile-only: $(check_SCRIPTS) $(check_PROGRAMS)
check-compile-local: $(check_SCRIPTS) $(check_PROGRAMS)
check-local: $(check_PROGRAMS)
$(top_builddir)/libtap/runtests \
......
......@@ -20,3 +20,5 @@ knotd_stdio_CPPFLAGS = $(AM_CPPFLAGS) $(liburcu_CFLAGS)
knotd_stdio_LDADD = \
$(top_builddir)/src/utils/knotd/knotd-main.o \
$(top_builddir)/src/libknotd.la $(liburcu_LIBS)
check-compile-local: $(check_PROGRAMS)
......@@ -65,7 +65,7 @@ check_PROGRAMS = \
check_PROGRAMS += \
modules/online_sign
check-compile-only: $(check_PROGRAMS)
check-compile-local: $(check_PROGRAMS)
check-local: $(check_PROGRAMS)
$(top_builddir)/libtap/runtests -s $(top_srcdir)/tests \
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment