open5gs/tests/Makefile.am

116 lines
3.5 KiB
Makefile
Raw Normal View History

2017-02-03 08:00:22 +00:00
## Process this file with automake to produce Makefile.in.
2019-06-15 10:37:34 +00:00
bin_PROGRAMS = testunit testsimple testcomplex testvolte testcsfb
2017-02-03 08:00:22 +00:00
2019-06-11 05:26:04 +00:00
configdir = ${sysconfdir}/nextepc/tests
2019-06-15 10:37:34 +00:00
config_DATA = sample.conf sample-simple.conf sample-volte.conf sample-csfb.conf
2019-04-27 14:54:30 +00:00
testunit_SOURCES = \
2019-06-11 05:12:31 +00:00
common/test-packet.h common/test-packet.c \
2019-04-27 14:54:30 +00:00
unit/abts-main.c \
2019-06-11 05:12:31 +00:00
unit/s1ap-message-test.c unit/nas-message-test.c \
unit/gtp-message-test.c unit/security-test.c \
2019-07-25 13:20:18 +00:00
unit/sctp-test.c unit/crash-test.c \
2017-11-07 14:01:27 +00:00
$(NULL)
2019-04-27 14:54:30 +00:00
testunit_LDADD = $(top_srcdir)/src/libepc.la
2017-02-03 08:00:22 +00:00
2019-04-27 14:54:30 +00:00
testsimple_SOURCES = \
2019-06-11 05:12:31 +00:00
common/test-packet.h common/test-packet.c \
2019-04-27 14:54:30 +00:00
simple/abts-main.c \
simple/mnc3-test.c \
2018-02-05 11:57:06 +00:00
$(NULL)
2019-04-27 14:54:30 +00:00
testsimple_LDADD = $(top_srcdir)/src/libepc.la
2018-02-05 11:57:06 +00:00
2019-04-27 14:54:30 +00:00
testcomplex_SOURCES = \
2019-06-11 05:12:31 +00:00
common/test-packet.h common/test-packet.c \
2019-04-27 14:54:30 +00:00
complex/abts-main.c \
2019-06-11 05:12:31 +00:00
complex/s1setup-test.c \
complex/attach-test.c complex/volte-test.c complex/handover-test.c \
2019-06-29 06:40:52 +00:00
complex/crash-test.c \
2018-02-05 11:57:06 +00:00
$(NULL)
2019-04-27 14:54:30 +00:00
testcomplex_LDADD = $(top_srcdir)/src/libepc.la
2018-02-05 11:57:06 +00:00
2019-04-27 14:54:30 +00:00
testvolte_SOURCES = \
2019-06-11 05:12:31 +00:00
common/test-packet.h common/test-packet.c \
2019-06-18 06:32:01 +00:00
common/test-app.h \
volte/abts-main.c volte/test-app.c \
2019-06-11 05:12:31 +00:00
volte/pcscf-fd-path.h volte/pcscf-fd-path.c \
volte/volte-test.c \
2017-11-07 14:01:27 +00:00
$(NULL)
2019-04-27 14:54:30 +00:00
testvolte_LDADD = $(top_srcdir)/src/libepc.la
2017-02-03 08:00:22 +00:00
2019-06-15 10:37:34 +00:00
testcsfb_SOURCES = \
common/test-packet.h common/test-packet.c \
2019-06-18 06:32:01 +00:00
common/test-app.h \
csfb/abts-main.c csfb/test-app.c \
2019-07-08 00:18:17 +00:00
csfb/mo-idle-test.c csfb/mt-idle-test.c \
2019-07-11 09:14:32 +00:00
csfb/mo-active-test.c csfb/mt-active-test.c \
2019-07-13 13:52:50 +00:00
csfb/mo-sms-test.c csfb/mt-sms-test.c \
2019-07-21 06:14:31 +00:00
csfb/crash-test.c \
2019-06-15 10:37:34 +00:00
$(NULL)
testcsfb_LDADD = $(top_srcdir)/src/libepc.la
2017-02-03 08:00:22 +00:00
AM_CPPFLAGS = \
2019-04-27 14:54:30 +00:00
@OGSCORE_CFLAGS@ \
@MONGOC_CFLAGS@ \
2018-01-04 11:38:22 +00:00
-I$(top_srcdir)/lib \
-I$(top_srcdir)/src \
2019-04-27 14:54:30 +00:00
-I$(top_srcdir)/lib/asn1c/common \
-I$(top_srcdir)/lib/asn1c/s1ap \
2017-11-07 14:01:27 +00:00
-I$(top_srcdir)/lib/@FREEDIAMETER_DIR@/include \
2019-06-11 05:26:04 +00:00
-I$(top_srcdir)/tests/common \
2017-11-07 14:01:27 +00:00
$(NULL)
2017-02-03 08:00:22 +00:00
AM_CFLAGS = \
2017-10-16 16:25:28 +00:00
-Wall -Werror \
-Wno-unused-function -Wno-unused-variable -Wno-deprecated-declarations \
@OSCPPFLAGS@ \
2017-11-07 14:01:27 +00:00
$(NULL)
2017-02-03 08:00:22 +00:00
DEFS = \
@DEFS@ \
-DFD_EXT_DIR=\"$(abs_top_builddir)/lib/@FREEDIAMETER_DIR@/extensions\" \
$(NULL)
TESTSUITE = $(srcdir)/testsuite
check-local: atconfig $(TESTSUITE)
$(SHELL) '$(TESTSUITE)' $(TESTSUITEFLAGS)
2018-02-06 03:45:08 +00:00
#installcheck-local: atconfig $(TESTSUITE)
# $(SHELL) '$(TESTSUITE)' AUTOTEST_PATH='$(bindir)' \
# $(TESTSUITEFLAGS)
clean-local:
test ! -f '$(TESTSUITE)' || \
$(SHELL) '$(TESTSUITE)' --clean
2019-04-27 14:54:30 +00:00
AUTOM4TE = $(SHELL) $(top_srcdir)/build/missing --run autom4te
AUTOTEST = $(AUTOM4TE) --language=autotest
$(TESTSUITE): $(srcdir)/testsuite.at $(srcdir)/package.m4
$(AUTOTEST) -I '$(srcdir)' -o $@.tmp $@.at
mv $@.tmp $@
# The `:;' works around a Bash 3.2 bug when the output is not writeable.
$(srcdir)/package.m4: $(top_srcdir)/configure.ac
:;{ \
echo '# Signature of the current package.' && \
echo 'm4_define([AT_PACKAGE_NAME],' && \
echo ' [$(PACKAGE_NAME)])' && \
echo 'm4_define([AT_PACKAGE_TARNAME],' && \
echo ' [$(PACKAGE_TARNAME)])' && \
echo 'm4_define([AT_PACKAGE_VERSION],' && \
echo ' [$(PACKAGE_VERSION)])' && \
echo 'm4_define([AT_PACKAGE_STRING],' && \
echo ' [$(PACKAGE_STRING)])' && \
echo 'm4_define([AT_PACKAGE_BUGREPORT],' && \
echo ' [$(PACKAGE_BUGREPORT)])'; \
echo 'm4_define([AT_PACKAGE_URL],' && \
echo ' [$(PACKAGE_URL)])'; \
} >'$(srcdir)/package.m4'
EXTRA_DIST = testsuite.at $(srcdir)/package.m4 $(TESTSUITE)
2017-02-03 08:00:22 +00:00
MAINTAINERCLEANFILES = Makefile.in
MOSTLYCLEANFILES = core *.stackdump