[CMake] Trouble starting ctest run with intention of reportingto dashboard
Steve Huston
shuston at riverace.com
Wed Jun 10 15:35:54 EDT 2009
Hi Bill,
> David Cole wrote:
> > OK. You have a correct CTestConfig.cmake now.
> >
> > Is it at the top level of your source tree? (In
> > "${CTEST_SOURCE_DIRECTORY}"?)
> > Do you "include(CTest)" in your CMakeLists.txt file?
> >
> So, I downloaded qpid sources. I think the main problem you
> are having
> is because with the old declarative style scripts if you do a
> -D Nightly
> it will require a successful configure to already have been
> run on the tree.
Ok.
> I would suggest using the new style ctest scripts. Here is a
sample:
>
> set (CTEST_SOURCE_DIRECTORY c:/hoffman/Projects/qpid/qpid/cpp)
> set (CTEST_BINARY_DIRECTORY c:/hoffman/Projects/qpid/qpid/cpp/rhel5)
> SET(CTEST_CMAKE_GENERATOR "Unix Makefiles")
> SET(CTEST_BUILD_COMMAND make)
>
> CTEST_START("Experimental")
> CTEST_CONFIGURE(BUILD "${CTEST_BINARY_DIRECTORY}")
> CTEST_BUILD(BUILD "${CTEST_BINARY_DIRECTORY}")
> CTEST_TEST(BUILD "${CTEST_BINARY_DIRECTORY}")
> CTEST_SUBMIT()
Ok, how do I run this?
> I had to put a CTestConfig.cmake with the following in it:
> set(CTEST_PROJECT_NAME "Qpid")
> set(CTEST_NIGHTLY_START_TIME "00:00:00 EST")
> set(CTEST_DROP_METHOD "http")
> set(CTEST_DROP_SITE "www.riverace.com")
> set(CTEST_DROP_LOCATION "/CDash-1.4.2/submit.php?project=Qpid")
> set(CTEST_DROP_SITE_CDASH TRUE)
>
> in c:/hoffman/Projects/qpid/qpid/cpp/CTestConfig.cmake.
>
> Also, note for 1 day you will have to do Experimentals,
> because if you
> do a nightly the update will remove the CTestConfig.cmake or
> not check it out in the first place.
>
> I did submit some experimentals but the Qpid dashboard here :
> http://www.riverace.com/CDash-1.4.2/index.php is not public
> so I can not see them.
You should be able to now.
Thanks!
-Steve
More information about the CMake
mailing list