From 98d3ef3a0c395916eac8acff3cdd085c9081be9b Mon Sep 17 00:00:00 2001 From: Inaky Perez-Gonzalez Date: Thu, 3 Sep 2009 10:10:23 -0700 Subject: [PATCH] Allow builds to install the test scripts for field debugging --- Makefile.am | 9 ++++++++- configure.ac | 4 ++++ 2 files changed, 12 insertions(+), 1 deletion(-) diff --git a/Makefile.am b/Makefile.am index 0e13bf5..834d91d 100644 --- a/Makefile.am +++ b/Makefile.am @@ -115,7 +115,7 @@ noinst_PROGRAMS += tools/wifi-scan tools/addr-test tools/tap-test tools_wifi_scan_LDADD = @GLIB_LIBS@ @NETLINK_LIBS@ endif -EXTRA_DIST += test/get-state test/list-profiles test/list-services \ +test_scripts = test/get-state test/list-profiles test/list-services \ test/connect-service test/list-connections \ test/select-connection test/list-devices test/enable-device \ test/disable-device test/start-scanning test/list-networks \ @@ -124,6 +124,13 @@ EXTRA_DIST += test/get-state test/list-profiles test/list-services \ test/test-manager test/test-connman test/monitor-connman \ test/monitor-services test/debug-connman +if TEST +testdir = $(pkglibdir)/test +test_SCRIPTS = $(test_scripts) +endif + +EXTRA_DIST += $(test_scripts) + EXTRA_DIST += doc/overview-api.txt doc/behavior-api.txt \ doc/ipconfig-api.txt doc/plugin-api.txt \ doc/manager-api.txt doc/agent-api.txt \ diff --git a/configure.ac b/configure.ac index 7b98842..0884e80 100644 --- a/configure.ac +++ b/configure.ac @@ -333,6 +333,10 @@ if (test "${enable_tools}" = "yes"); then fi AM_CONDITIONAL(TOOLS, test "${enable_tools}" = "yes") +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(fake, AC_HELP_STRING([--enable-fake], [enable fake device support]), [enable_fake=${enableval}]) AM_CONDITIONAL(FAKE, test "${enable_fake}" = "yes") -- 2.7.4