Apparently I have to: include( CTest )
I wasn't doing that. Now it works as you have explained. Thanks! On Fri, Jan 30, 2015 at 2:26 PM, Robert Dailey <rcdailey.li...@gmail.com> wrote: > David, > > I added a CTestConfig.cmake right next to the root CMakeLists.txt and > it's empty except for a comment. I get the following output: > > =============================================================================== > [189/189] Linking CXX executable output/bin/Test_UI_String > Cannot find file: > /home/fe/atlassian/bamboo_builds/131076/FE-MP88-UT/build/DartConfiguration.tcl > Site: > Build name: (empty) > Create new tag: 20150130-2000 - Experimental > Cannot find file: > /home/fe/atlassian/bamboo_builds/131076/FE-MP88-UT/build/DartConfiguration.tcl > Test project /home/fe/atlassian/bamboo_builds/131076/FE-MP88-UT/build > Start 1: Test_UI_List > Start 2: Test_UI_String > 1/2 Test #1: Test_UI_List ..................... Passed 0.03 sec > 2/2 Test #2: Test_UI_String ................... Passed 0.03 sec > > 100% tests passed, 0 tests failed out of 2 > > Total Test time (real) = 0.04 sec > =============================================================================== > > It still says it can't find the dart files. Do I need to include the > CTestConfig.cmake file somewhere? > > here is the build script my Bamboo server is using: > > =============================================================================== > set -e > > export CC=clang > export CXX=clang++ > NINJA=${bamboo.capability.system.builder.command.Ninja} > TRUE_COMMAND=${bamboo.capability.system.builder.command.true} > > cmake ../frontend -G"Ninja" \ > -DCMAKE_BUILD_TYPE=Release \ > -DCMAKE_MAKE_PROGRAM=$NINJA \ > > # This builds all tests + dependencies > $NINJA all_tests || { echo "Build Failure"; exit 1; } > > # Test against /usr/bin/true so that test failures don't > # cause build failures. > ctest -T Test -j 16 --output-on-failure || eval $TRUE_COMMAND > =============================================================================== > > On Fri, Jan 30, 2015 at 1:47 PM, David Cole <dlrd...@aol.com> wrote: >> Do you have a CTestConfig.cmake file in your source tree? >> >> If you do, then ctest will load that instead of looking for the >> DartConfiguration.tcl file in your build tree... Even if it's empty >> because you don't submit to a CDash server, the presence of >> CTestConfig.cmake in your top level source tree should suppress this >> error message. >> >> >> HTH, >> David C. >> >> >> >> On Fri, Jan 30, 2015 at 1:07 PM, Robert Dailey <rcdailey.li...@gmail.com> >> wrote: >>> I run ctest on my build server *just* to run the test executables and >>> get result XML. I use a separate tool to parse the XML and upload it >>> to an unrelated server (not CDash) >>> >>> I get errors like below: >>> >>> Cannot find file: /sourcerepo/build/DartConfiguration.tcl >>> >>> Can someone explain what CTest is doing and if there is a way to turn it >>> off? >>> -- >>> >>> Powered by www.kitware.com >>> >>> Please keep messages on-topic and check the CMake FAQ at: >>> http://www.cmake.org/Wiki/CMake_FAQ >>> >>> Kitware offers various services to support the CMake community. For more >>> information on each offering, please visit: >>> >>> CMake Support: http://cmake.org/cmake/help/support.html >>> CMake Consulting: http://cmake.org/cmake/help/consulting.html >>> CMake Training Courses: http://cmake.org/cmake/help/training.html >>> >>> Visit other Kitware open-source projects at >>> http://www.kitware.com/opensource/opensource.html >>> >>> Follow this link to subscribe/unsubscribe: >>> http://public.kitware.com/mailman/listinfo/cmake -- Powered by www.kitware.com Please keep messages on-topic and check the CMake FAQ at: http://www.cmake.org/Wiki/CMake_FAQ Kitware offers various services to support the CMake community. For more information on each offering, please visit: CMake Support: http://cmake.org/cmake/help/support.html CMake Consulting: http://cmake.org/cmake/help/consulting.html CMake Training Courses: http://cmake.org/cmake/help/training.html Visit other Kitware open-source projects at http://www.kitware.com/opensource/opensource.html Follow this link to subscribe/unsubscribe: http://public.kitware.com/mailman/listinfo/cmake