diff options
author | Samuel Ortiz <sameo@linux.intel.com> | 2011-04-22 19:43:15 +0200 |
---|---|---|
committer | Marcel Holtmann <marcel@holtmann.org> | 2011-10-20 23:54:01 -0700 |
commit | 17d609bdeb6ba094aed994edf92f25ab91233545 (patch) | |
tree | f785e8d020d7ebca4941e2dc7bd045d1326a77f7 | |
parent | 2c9893f41b41451fc4ad36f4d01d459497df6190 (diff) | |
download | neard-17d609bdeb6ba094aed994edf92f25ab91233545.tar.gz neard-17d609bdeb6ba094aed994edf92f25ab91233545.tar.bz2 neard-17d609bdeb6ba094aed994edf92f25ab91233545.zip |
Makefile: Add test scripts
-rw-r--r-- | Makefile.am | 11 | ||||
-rw-r--r-- | configure.ac | 4 |
2 files changed, 14 insertions, 1 deletions
diff --git a/Makefile.am b/Makefile.am index 339d2f3..717527d 100644 --- a/Makefile.am +++ b/Makefile.am @@ -41,7 +41,16 @@ CLEANFILES = src/builtin.h $(local_headers) doc_files = doc/manager-api.txt doc/target-api.txt doc/adapter-api.txt -EXTRA_DIST = src/genbuiltin $(test_scripts) $(doc_files) +EXTRA_DIST = src/genbuiltin $(doc_files) + +test_scripts = test/list-adapters + +if TEST +testdir = $(pkglibdir)/test +test_SCRIPTS = $(test_scripts) +endif + +EXTRA_DIST += $(test_scripts) MAINTAINERCLEANFILES = Makefile.in \ aclocal.m4 configure config.h.in config.sub config.guess \ diff --git a/configure.ac b/configure.ac index 91d90b7..fe22d98 100644 --- a/configure.ac +++ b/configure.ac @@ -78,4 +78,8 @@ PKG_CHECK_MODULES(NETLINK, libnl-2.0, dummy=yes, AC_SUBST(NETLINK_CFLAGS) AC_SUBST(NETLINK_LIBS) +AC_ARG_ENABLE(test, AC_HELP_STRING([--enable-test], + [enable test/example scripts]), [enable_test=${enableval}]) +AM_CONDITIONAL(TEST, test "${enable_test}" = "yes") + AC_OUTPUT(Makefile) |