瀏覽代碼

Add --disable-build-tests configure option

Samuel Thibault 9 年之前
父節點
當前提交
8c38b636d4
共有 5 個文件被更改,包括 24 次插入2 次删除
  1. 6 1
      Makefile.am
  2. 5 0
      configure.ac
  3. 7 0
      doc/doxygen/chapters/41configure_options.doxy
  4. 4 1
      gcc-plugin/Makefile.am
  5. 2 0
      mpi/tests/Makefile.am

+ 6 - 1
Makefile.am

@@ -19,7 +19,12 @@ ACLOCAL_AMFLAGS=-I m4
 CLEANFILES = *.gcno *.gcda *.linkinfo
 
 SUBDIRS = src
-SUBDIRS += tools tests
+SUBDIRS += tools
+
+if BUILD_EXAMPLES
+SUBDIRS += tests
+endif
+
 SUBDIRS += doc
 
 if USE_MPI

+ 5 - 0
configure.ac

@@ -2206,6 +2206,11 @@ fi
 #                                                                             #
 ###############################################################################
 
+AC_ARG_ENABLE(build-tests, [AS_HELP_STRING([--disable-build-tests],
+			[disable building of tests])],
+			enable_build_tests=$enableval, enable_build_tests=yes)
+# check stuff for tests (todo)
+AM_CONDITIONAL(BUILD_TESTS, [test x$enable_build_tests != xno])
 AC_ARG_ENABLE(build-examples, [AS_HELP_STRING([--disable-build-examples],
 			[disable building of examples])],
 			enable_build_examples=$enableval, enable_build_examples=yes)

+ 7 - 0
doc/doxygen/chapters/41configure_options.doxy

@@ -517,6 +517,13 @@ that the MKL website
 provides a script to determine the linking flags.
 </dd>
 
+<dt>--disable-build-tests</dt>
+<dd>
+\anchor disable-build-tests
+\addindex __configure__--disable-build-tests
+Disable the build of tests.
+</dd>
+
 <dt>--disable-build-examples</dt>
 <dd>
 \anchor disable-build-examples

+ 4 - 1
gcc-plugin/Makefile.am

@@ -13,7 +13,10 @@
 #
 # See the GNU Lesser General Public License in COPYING.LGPL for more details.
 
-SUBDIRS = src tests
+SUBDIRS = src
+if BUILD_TESTS
+SUBDIRS += tests
+endif
 if BUILD_EXAMPLES
 SUBDIRS += examples
 endif

+ 2 - 0
mpi/tests/Makefile.am

@@ -77,6 +77,7 @@ AM_LDFLAGS = $(STARPU_OPENCL_LDFLAGS) $(STARPU_CUDA_LDFLAGS) $(FXT_LDFLAGS) $(ST
 # Unit testcases       #
 ########################
 
+if BUILD_TESTS
 starpu_mpi_TESTS =				\
 	datatypes				\
 	pingpong				\
@@ -315,6 +316,7 @@ mpi_earlyrecv2_SOURCES = mpi_earlyrecv2.c
 mpi_earlyrecv2_SOURCES += ../../examples/interface/complex_interface.c
 mpi_earlyrecv2_sync_SOURCES = mpi_earlyrecv2_sync.c
 mpi_earlyrecv2_sync_SOURCES += ../../examples/interface/complex_interface.c
+endif
 
 showcheck:
 	-cat $(TEST_LOGS) /dev/null