tests: use 'check_PROGRAMS' instead of 'noinst_PROGRAMS'

When using 'check_PROGRAMS', autoconf/automake generates smarter
Makefiles, so that the test programs are not being compiled during
the normal 'make all', but only during 'make check'.

Change-Id: Icca22778831b043358acf0482948dbff32a11256
changes/79/27779/1
Vadim Yanitskiy 8 months ago
parent 64dda770c3
commit 7d8a674e88
  1. 2
      tests/m2ua/Makefile.am
  2. 2
      tests/mtp/Makefile.am
  3. 2
      tests/sccp/Makefile.am
  4. 2
      tests/ss7/Makefile.am
  5. 2
      tests/vty/Makefile.am
  6. 2
      tests/xua/Makefile.am

@ -3,6 +3,6 @@ AM_CFLAGS=-Wall $(LIBOSMOCORE_CFLAGS)
EXTRA_DIST = m2ua_test.ok
noinst_PROGRAMS = m2ua_test
check_PROGRAMS = m2ua_test
m2ua_test_SOURCES = m2ua_test.c
m2ua_test_LDADD = $(top_builddir)/src/libxua.a $(LIBOSMOCORE_LIBS)

@ -1,5 +1,5 @@
AM_CPPFLAGS = $(all_includes) -I$(top_srcdir)/include $(LIBOSMOCORE_CFLAGS) -Wall
noinst_PROGRAMS = mtp_parse_test
check_PROGRAMS = mtp_parse_test
EXTRA_DIST = mtp_parse_test.ok

@ -3,7 +3,7 @@ AM_CFLAGS=-Wall -ggdb3 $(LIBOSMOCORE_CFLAGS)
EXTRA_DIST = sccp_test.ok
noinst_PROGRAMS = sccp_test
check_PROGRAMS = sccp_test
sccp_test_SOURCES = sccp_test.c
sccp_test_LDADD = \

@ -7,6 +7,6 @@ LDADD = $(top_builddir)/src/libosmo-sigtran.la \
EXTRA_DIST = ss7_test.ok ss7_test.err
noinst_PROGRAMS = ss7_test
check_PROGRAMS = ss7_test
ss7_test_SOURCES = ss7_test.c

@ -10,7 +10,7 @@ EXTRA_DIST = \
vty_test_runner.py \
$(NULL)
noinst_PROGRAMS = ss7_asp_vty_test
check_PROGRAMS = ss7_asp_vty_test
ss7_asp_vty_test_SOURCES = ss7_asp_vty_test.c

@ -8,6 +8,6 @@ LDADD = $(top_builddir)/src/libosmo-sigtran.la \
EXTRA_DIST = xua_test.ok xua_test.err
noinst_HEADERS = sccp_test_data.h
noinst_PROGRAMS = xua_test
check_PROGRAMS = xua_test
xua_test_SOURCES = xua_test.c sccp_test_data.c

Loading…
Cancel
Save