Added tests into automake files.
This commit is contained in:
parent
68644500b8
commit
e9e3811657
3 changed files with 28 additions and 3 deletions
14
Makefile.am
14
Makefile.am
|
@ -2,9 +2,9 @@
|
||||||
|
|
||||||
AUTOMAKE_OPTIONS = gnu
|
AUTOMAKE_OPTIONS = gnu
|
||||||
|
|
||||||
SUBDIRS = src doc gui test
|
SUBDIRS = test src doc gui
|
||||||
|
|
||||||
ACLOCAL_AMFLAGS = -I m4
|
ACLOCAL_AMFLAGS = -I m4
|
||||||
|
|
||||||
EXTRA_DIST = COPYING.README README.android
|
EXTRA_DIST = COPYING.README README.android
|
||||||
|
|
||||||
|
@ -33,3 +33,13 @@ release:
|
||||||
echo "Please edit the NEWS file now..."
|
echo "Please edit the NEWS file now..."
|
||||||
/usr/bin/editor $(srcdir)/NEWS
|
/usr/bin/editor $(srcdir)/NEWS
|
||||||
$(MAKE) dist
|
$(MAKE) dist
|
||||||
|
|
||||||
|
$(srcdir)/package.m4: $(top_srcdir)/configure.ac
|
||||||
|
{ \
|
||||||
|
echo '# Signature of the current package.'; \
|
||||||
|
echo 'm4_define([AT_PACKAGE_NAME], [@PACKAGE_NAME@])'; \
|
||||||
|
echo 'm4_define([AT_PACKAGE_TARNAME], [@PACKAGE_TARNAME@])'; \
|
||||||
|
echo 'm4_define([AT_PACKAGE_VERSION], [@PACKAGE_VERSION@])'; \
|
||||||
|
echo 'm4_define([AT_PACKAGE_STRING], [@PACKAGE_STRING@])'; \
|
||||||
|
echo 'm4_define([AT_PACKAGE_BUGREPORT], [@PACKAGE_BUGREPORT@])'; \
|
||||||
|
} >$(srcdir)/package.m4
|
||||||
|
|
|
@ -255,4 +255,6 @@ AC_ARG_ENABLE(jumbograms,
|
||||||
|
|
||||||
AC_CONFIG_FILES([Makefile src/Makefile doc/Makefile gui/Makefile test/Makefile])
|
AC_CONFIG_FILES([Makefile src/Makefile doc/Makefile gui/Makefile test/Makefile])
|
||||||
|
|
||||||
|
AC_CONFIG_TESTDIR(test/, [test-path = 'test/'])
|
||||||
|
|
||||||
AC_OUTPUT
|
AC_OUTPUT
|
||||||
|
|
|
@ -1,4 +1,6 @@
|
||||||
|
|
||||||
TESTS = \
|
TESTS = \
|
||||||
|
simple \
|
||||||
basic.test \
|
basic.test \
|
||||||
commandline.test \
|
commandline.test \
|
||||||
executables.test \
|
executables.test \
|
||||||
|
@ -9,14 +11,25 @@ TESTS = \
|
||||||
sptps-basic.test \
|
sptps-basic.test \
|
||||||
variables.test
|
variables.test
|
||||||
|
|
||||||
|
CC=afl-clang
|
||||||
|
|
||||||
dist_check_SCRIPTS = $(TESTS)
|
dist_check_SCRIPTS = $(TESTS)
|
||||||
|
|
||||||
EXTRA_DIST = testlib.sh
|
EXTRA_DIST = testlib.sh
|
||||||
|
|
||||||
check_PROGRAMS = pong
|
check_PROGRAMS = pong simple
|
||||||
|
|
||||||
pong_SOURCES = pong.c
|
pong_SOURCES = pong.c
|
||||||
|
|
||||||
|
simple_SOURCES = \
|
||||||
|
simple.c
|
||||||
|
|
||||||
|
pong_LDFLAGS = -L$(top_srcdir)/src -ltinc
|
||||||
|
|
||||||
|
simple_CFLAGS = -I$(top_srcdir)/src -I/usr/include -iquote$(top_srcdir)/src
|
||||||
|
simple_LDFLAGS = -L$(top_srcdir)/src -lcmocka -ltincd -lchacha_poly1305 -led25519
|
||||||
|
|
||||||
|
|
||||||
clean-local:
|
clean-local:
|
||||||
-for pid in *.test.?/pid; do ../src/tinc --pidfile="$$pid" stop; done
|
-for pid in *.test.?/pid; do ../src/tinc --pidfile="$$pid" stop; done
|
||||||
-killall ../src/sptps_test
|
-killall ../src/sptps_test
|
||||||
|
|
Loading…
Reference in a new issue