[mlpack-svn] r11257 - mlpack/trunk/src/mlpack

fastlab-svn at coffeetalk-1.cc.gatech.edu fastlab-svn at coffeetalk-1.cc.gatech.edu
Mon Jan 23 12:45:19 EST 2012


Author: rcurtin
Date: 2012-01-23 12:45:17 -0500 (Mon, 23 Jan 2012)
New Revision: 11257

Modified:
   mlpack/trunk/src/mlpack/CMakeLists.txt
Log:
Add 'make test' command.  This should make the build fail if the test does not
pass.  It is not run by default if you type 'make'; you have to type 'make test'
to actually run the test.


Modified: mlpack/trunk/src/mlpack/CMakeLists.txt
===================================================================
--- mlpack/trunk/src/mlpack/CMakeLists.txt	2012-01-23 17:39:15 UTC (rev 11256)
+++ mlpack/trunk/src/mlpack/CMakeLists.txt	2012-01-23 17:45:17 UTC (rev 11257)
@@ -66,3 +66,10 @@
   COMPONENT mlpack
   FILES_MATCHING
   PATTERN *[^_test])
+
+# For 'make test'.
+add_custom_target(test
+  ${CMAKE_BINARY_DIR}/bin/mlpack_test
+  WORKING_DIRECTORY ${CMAKE_BINARY_DIR}/ # This is where test files are put.
+  COMMENT "Running MLPACK test"
+  DEPENDS mlpack_test)




More information about the mlpack-svn mailing list