mirror of git://git.sysmocom.de/ofono
Allow builds to install the test scripts for debugging
This commit is contained in:
parent
bcef5a1dd6
commit
4960526aa9
|
@ -231,7 +231,7 @@ doc_files = doc/overview.txt doc/ofono-paper.txt \
|
||||||
doc/call-meter-api.txt \
|
doc/call-meter-api.txt \
|
||||||
doc/dataconnectionmanager-api.txt
|
doc/dataconnectionmanager-api.txt
|
||||||
|
|
||||||
test_files = test/test-manager test/test-modem test/test-voicecall \
|
test_scripts = test/test-manager test/test-modem test/test-voicecall \
|
||||||
test/test-network-registration test/test-phonebook \
|
test/test-network-registration test/test-phonebook \
|
||||||
test/test-advice-of-charge test/test-call-settings \
|
test/test-advice-of-charge test/test-call-settings \
|
||||||
test/test-call-forwarding test/test-call-barring \
|
test/test-call-forwarding test/test-call-barring \
|
||||||
|
@ -244,10 +244,15 @@ test_files = test/test-manager test/test-modem test/test-voicecall \
|
||||||
test/activate-context test/deactivate-context \
|
test/activate-context test/deactivate-context \
|
||||||
test/process-context-settings
|
test/process-context-settings
|
||||||
|
|
||||||
|
if TEST
|
||||||
|
testdir = $(pkglibdir)/test
|
||||||
|
test_SCRIPTS = $(test_scripts)
|
||||||
|
endif
|
||||||
|
|
||||||
conf_files = src/ofono.conf plugins/modem.conf
|
conf_files = src/ofono.conf plugins/modem.conf
|
||||||
|
|
||||||
EXTRA_DIST = src/genbuiltin plugins/example_history.c $(doc_files) \
|
EXTRA_DIST = src/genbuiltin plugins/example_history.c $(doc_files) \
|
||||||
$(test_files) $(conf_files) $(udev_files)
|
$(test_scripts) $(conf_files) $(udev_files)
|
||||||
|
|
||||||
dist_man_MANS = doc/ofonod.8
|
dist_man_MANS = doc/ofonod.8
|
||||||
|
|
||||||
|
|
|
@ -7,6 +7,7 @@ fi
|
||||||
./bootstrap && \
|
./bootstrap && \
|
||||||
./configure --enable-maintainer-mode \
|
./configure --enable-maintainer-mode \
|
||||||
--enable-debug \
|
--enable-debug \
|
||||||
|
--enable-test \
|
||||||
--prefix=/usr \
|
--prefix=/usr \
|
||||||
--mandir=/usr/share/man \
|
--mandir=/usr/share/man \
|
||||||
--sysconfdir=/etc \
|
--sysconfdir=/etc \
|
||||||
|
|
|
@ -48,6 +48,10 @@ AC_ARG_ENABLE(debug, AC_HELP_STRING([--enable-debug],
|
||||||
fi
|
fi
|
||||||
])
|
])
|
||||||
|
|
||||||
|
AC_ARG_ENABLE(test, AC_HELP_STRING([--enable-test],
|
||||||
|
[enable test/example scripts]), [enable_test=${enableval}])
|
||||||
|
AM_CONDITIONAL(TEST, test "${enable_test}" = "yes")
|
||||||
|
|
||||||
AC_ARG_ENABLE(pie, AC_HELP_STRING([--enable-pie],
|
AC_ARG_ENABLE(pie, AC_HELP_STRING([--enable-pie],
|
||||||
[enable position independent executables flag]), [
|
[enable position independent executables flag]), [
|
||||||
if (test "${enableval}" = "yes" &&
|
if (test "${enableval}" = "yes" &&
|
||||||
|
|
Loading…
Reference in New Issue