summaryrefslogtreecommitdiffstats
path: root/Tests/CTestTestMemcheck
Commit message (Collapse)AuthorAgeFilesLines
* ctest_memcheck: Add support for memory and leak sanitizer.Bill Hoffman2014-07-163-4/+126
| | | | | | This adds support for memory and leak sanitizers. This is built into clang and gcc 4.8 and new compilers. It is activated with a -f switch during compile.
* ctest_memcheck: Add support for ThreadSanitizerBill Hoffman2014-07-093-0/+66
| | | | | | | | | This commit adds support for ThreadSanitizer to ctest. ThreadSanitizer is part of the clang compiler and also gcc 4.8 and later. You have to compile the code with special flags. Then your code gets the the ThreadSanitizer ability built into it. To pass options to the ThreadSanitizer you use an environment variable. This commit teaches ctest to parse the output from ThreadSanitizer and send it to CDash.
* CTestTestMemcheck: do not search for compilersRolf Eike Beer2014-07-011-1/+1
|
* Update CDash server URLBrad King2014-06-241-2/+2
| | | | It is now at open.cdash.org and does not start in "/CDash".
* Tests/CTestTestMemcheck: Help Xcode 2.x create output dirsBrad King2014-03-262-14/+21
| | | | | Add the PRE_BUILD step to all targets that need it so the output directories get created no matter which target is built first.
* Tests: Prevent unnecessary rebuilds in CTestTestMemcheckDavid Cole2014-03-201-1/+6
| | | | | | | | | | | Repeated "cmake . && ninja" calls were resulting in rebuilds every time. Change the test so that it uses "file(WRITE" to generate a ".in" file and then configure_file to "copy if different" that ".in" file to the final generated source file. Now, rebuilds will only occur if there are changes to the generated source file on "cmake ." runs after the first one.
* Tests: Drop CMAKE_TEST_GENERATOR(|_TOOLSET) variablesBrad King2014-03-031-2/+2
| | | | s/CMAKE_TEST_GENERATOR/CMAKE_GENERATOR/g
* Tests: allow valgrind test to pass with symlinked build dirNils Gladitz2013-12-141-1/+9
|
* CTestTestMemcheck: Fix matching of malloc debug messagesBrad King2013-09-131-1/+1
| | | | | | In commit 10bc50ea (Tests: ignore Guard Malloc messages in MemChecker tests, 2013-05-13) we forgot to escape backslashes in the CMake language to get them into the regex. Add them now.
* CTestTestMemcheck: Tolerate trailing "==..." lines from valgrindBrad King2013-08-161-1/+2
|
* CTestTestMemcheck: Refactor output expectation regex generationBrad King2013-08-161-10/+26
| | | | | | | | | | | | | | Refactor generation of PASS_REGULAR_EXPRESSION for tests CTestTestMemcheckDummyPurify CTestTestMemcheckDummyValgrind CTestTestMemcheckDummyValgrindPrePost CTestTestMemcheckDummyValgrindIgnoreMemcheck Avoid duplicating the normal ctest output matching expression. Use literal newlines instead of "\n" to improve readability. Integrate matching of guard-malloc lines at the end of the output with expressions matching tool output like lines for BullseyeCoverage.
* CTest: create one output file per memcheck (#14303)Rolf Eike Beer2013-08-072-13/+16
| | | | | | The output file used for memory checker runs must be unique for every test run in parallel, so simply make them unique for every test run. Simply use the test index to avoid collisions.
* Revert "CTest: fix pre and post test commands with spaces" (#13887)Rolf Eike Beer2013-07-271-1/+5
| | | | | | | This reverts commit 6187876dea89618044e200808bcae75a18bd4043. It was actually possible before to have paths with spaces in them, the spaces just need to be quoted. This way spaces will work as argument separators.
* Merge branch 'master' into escape-regex-specials-in-pathRolf Eike Beer2013-06-0334-369/+199
|\ | | | | | | | | Resolve conflicts in Tests/CTestTestMemcheck/CMakeLists.txt by combining changes from both sides.
| * Merge topic 'Memchecker-Mac-fix'Brad King2013-05-241-1/+1
| |\ | | | | | | | | | | | | 0aed09f Tests: ignore GuardMalloc messages on all Apple build, not just XCode ones
| | * Tests: ignore GuardMalloc messages on all Apple build, not just XCode onesRolf Eike Beer2013-05-231-1/+1
| | |
| * | Tests: fix build of dummy memtester on AIXRolf Eike Beer2013-05-211-1/+1
| |/ | | | | | | | | | | Both <string> and <cmSystemTools.h> include <stdio.h> one or the other way. It looks like the CMake header adds a define that will cause another part of the system header to be used, resulting in conflicting definitions.
| * Tests: ignore Guard Malloc messages in MemChecker testsRolf Eike Beer2013-05-141-1/+7
| |
| * Tests: add a test with custom options passed to valgrindRolf Eike Beer2013-05-092-0/+15
| |
| * Tests: add test for non-existent Valgrind suppression fileRolf Eike Beer2013-05-091-1/+7
| |
| * Tests: verify that memory checker output files are always presentRolf Eike Beer2013-05-092-1/+43
| | | | | | | | | | | | All supported memory checkers now write their output to a file. Use a dummy checker that ignores the given filename and ensure that the missing file is reported as error.
| * Tests: remove code duplication in CTestTestMemCheck testsRolf Eike Beer2013-05-0929-319/+55
| | | | | | | | | | | | The code for the tests is basically the same for all those subtests, so have one template and configure that for as many tests as possible to make it easier maintainable.
| * CTest: remove unreachable code and CTestTestMemcheckUnknown testRolf Eike Beer2013-05-094-36/+3
| | | | | | | | | | | | | | The memory checker command can't be quoted at this point, because previously it has been tested that the given file exists, which will fail if the name is quoted. The CTestTestMemcheckUnknown test aimed to test this case, has always failed to do so and serves no useful purpose therefore.
| * Tests: create output files for all memory checkersRolf Eike Beer2013-05-092-14/+72
| | | | | | | | | | | | | | The dummy memory tester implementation now understands the command line switches for all memory checkers to redirect the output to a file. This avoids triggering the error cases for BoundsChecker and Purify because the output file does not exist.
* | Fix test failures caused by regexp-sensitive characters in the build pathsModestas Vainius2013-06-031-4/+6
|/ | | | | | | | | | | | | | | | | | Checkout [1] as an example of the test failures. In that particular cases, the failures is caused by the plus sign in the path being pass unescaped (buildd-cmake_2.8.9-1~bpo60+1-armel-3Lvkef) to the regexp. In addition to failures in the log, the following new tests also fail in 2.8.11: 243 - CTestTestMemcheckUnknown (Failed) 244 - CTestTestMemcheckUnknownQuoted (Failed) 248 - CTestTestMemcheckDummyValgrindFailPre (Failed) 249 - CTestTestMemcheckDummyValgrindFailPost (Failed) 250 - CTestTestMemcheckDummyPurify (Failed) 251 - CTestTestMemcheckDummyBC (Failed) 253 - CMake.List (Failed) [1] https://buildd.debian.org/status/fetch.php?pkg=cmake&arch=armel&ver=2.8.9-1~bpo60%2B1&stamp=1369243896
* Tests: Add generator toolset supportBrad King2013-02-0710-0/+10
| | | | | Propagate CMAKE_GENERATOR_TOOLSET through the test hierarchy so that all tests can build with the selected generator toolset, if any.
* CTest: add a check with a quoted memory checkerRolf Eike Beer2012-10-044-4/+39
|
* CTest: add a test for CTEST_CUSTOM_MEMCHECK_IGNORERolf Eike Beer2012-10-044-1/+45
|
* CTest: add tests that simulate memcheck runsRolf Eike Beer2012-10-0425-0/+354