diff --git a/CMakeLists.txt b/CMakeLists.txt index d1621000cb..da4d629e0f 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -32,6 +32,7 @@ include("cmake/docs.cmake") # tests enable_testing() +include(CTest) add_subdirectory("test/") # package diff --git a/CTestConfig.cmake b/CTestConfig.cmake new file mode 100644 index 0000000000..851fa25816 --- /dev/null +++ b/CTestConfig.cmake @@ -0,0 +1,7 @@ +set(CTEST_PROJECT_NAME "node") +set(CTEST_NIGHTLY_START_TIME "00:00:00 EST") + +set(CTEST_DROP_METHOD "http") +set(CTEST_DROP_SITE "my.cdash.org") +set(CTEST_DROP_LOCATION "/submit.php?project=node") +set(CTEST_DROP_SITE_CDASH TRUE) diff --git a/Makefile.cmake b/Makefile.cmake index 686877c607..d2a357756c 100644 --- a/Makefile.cmake +++ b/Makefile.cmake @@ -27,4 +27,7 @@ package: $(BUILD)/Makefile test: $(BUILD)/Makefile cd $(BUILD) && make test -.PHONY: build install clean doc package test +cdash: $(BUILD)/Makefile + cd $(BUILD) && make Experimental + +.PHONY: build install clean doc package test cdash diff --git a/README.cmake b/README.cmake index 16614ef9ba..5267baab9c 100644 --- a/README.cmake +++ b/README.cmake @@ -26,6 +26,10 @@ To build distro packages (tgz, deb, rpm, PackageMaker): make -f Makefile.cmake package +To submit test results (see http://my.cdash.org/index.php?project=node): + + make -f Makefile.cmake cdash + Using cmake directly: cd ~/your-node-source-dir mkdir name-of-build-dir (can be anything) @@ -36,6 +40,11 @@ Using cmake directly: make commands (make, make install, etc.). The Makefile.cmake file is just a wrapper around these commands; take a look at it for more details. +Other build targets: + make Experimental + make Nightly + make Continuous + Additional options: In the CMakeLists.txt, you'll see things like option(SHARED_V8, ...). If you want to enable any of those options you can