[Cdash] ctest, valgrind and cdash

girish hilage girish_hilage at yahoo.com
Thu Jan 28 08:18:11 UTC 2010


Hi,
 
I am using ctest, cdash for the first time.
I do not have any code to build.
I only want to run test on some executable a.out using valgrind and see the results on my.cdash.org.
 
I have created file 'CMakeLists.txt' :
cmake_minimum_required (VERSION 2.6)
ENABLE_TESTING ()
set(PROJECT_NAME "VALG1")
set(NIGHTLY_START_TIME "00:00:00 EST")
set(DROP_METHOD "http")
set(DROP_SITE "my.cdash.org")
set(DROP_LOCATION "/submit.php?project=VALG1")
set(DROP_SITE_CDASH TRUE)
INCLUDE(CTest)
ADD_TEST (a.out /home/girish/a.out)
 
When I run 'ctest -D Experimental', I get the following output.
 
----- OUTPUT START -----
[girish at ps0485 CTEST]$ ctest -D Experimental 
Site: ps0485.persistent.co.in
Build name: Linux-c++
Create new tag: 20100127-1055 - Experimental
Start processing tests
Configure project
Each . represents 1024 bytes of output
. Size of output: 0K
Build project
Each symbol represents 1024 bytes of output.
'!' represents an error and '*' a warning.
Size of output: 0K
0 Compiler errors
0 Compiler warnings
Test project /home/girish/CTEST
1/ 1 Testing a.out Passed
100% tests passed, 0 tests failed out of 1
Performing coverage
Cannot find any coverage files. Ignoring Coverage request.
Submit files (using http)
Using HTTP submit method
Drop site: http://my.cdash.org/submit.php?project=VALG1
Uploaded: /home/girish/CTEST/Testing/20100127-1055/Build.xml
Uploaded: /home/girish/CTEST/Testing/20100127-1055/Configure.xml
Uploaded: /home/girish/CTEST/Testing/20100127-1055/Test.xml
Using HTTP trigger method
Trigger site: http://my.cdash.org/cgi-bin/Submit-Random-TestingResults.cgi
Dart server triggered...
Submission successful
----- OUTPUT END -----
 
I have created a project VALG1 on my.cdash.org.
But, after I run the above command; I do not see any results on the page http://my.cdash.org/index.php?project=VALG1.
 
Now, if I have a CMakeLists.txt as follows :
cmake_minimum_required (VERSION 2.6)
ENABLE_TESTING ()
INCLUDE(CTest)
ADD_TEST (a.out /home/girish/a.out)
and CTestConfig.cmake as follows :
set(CTEST_PROJECT_NAME "VALG1")
set(CTEST_NIGHTLY_START_TIME "15:59:00 IST")
set(CTEST_DROP_METHOD "http")
set(CTEST_DROP_SITE "my.cdash.org")
set(CTEST_DROP_LOCATION "/submit.php?project=VALG1")
set(CTEST_DROP_SITE_CDASH TRUE)
ctest_memcheck(BUILD “${CTEST_BINARY_DIRECTORY}”)
set(CTEST_MEMORYCHECK_COMMAND "/usr/bin/valgrind")
set(CTEST_MEMORYCHECK_COMMAND_OPTIONS "--log-file=vlogs --leak-check=full --xml=yes")
 
and if I give the command 'cmake .' then it gives me following error :
----- OUTPUT START -----
.......
.......
-- Detecting CXX compiler ABI info
-- Detecting CXX compiler ABI info - done
CMake Error at CTestConfig.cmake:9 (ctest_memcheck):
Unknown CMake command "ctest_memcheck".
Call Stack (most recent call first):
/usr/share/cmake/Modules/CTest.cmake:50 (INCLUDE)
CMakeLists.txt:14 (INCLUDE)
-- Configuring incomplete, errors occurred!
----- OUTPUT END -----
 
So, I would like to know :
1. What I need to do in order to see the results on my.cdash.org?
2. Why is it saying Unknown CMake command "ctest_memcheck"?
3. How do I make 'valgrind' run on the test?
 
Regards,
Girish


      
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://public.kitware.com/pipermail/cdash/attachments/20100128/9b76504d/attachment-0002.htm>


More information about the CDash mailing list