summaryrefslogtreecommitdiffstats
path: root/Tests/CTestTestMemcheck/CMakeLists.txt
Commit message (Collapse)AuthorAgeFilesLines
* Tests: Move CTestTestMemcheck tools into Tests/CMakeLibBrad King2014-12-181-41/+0
| | | | | | The dummy memcheck tools we build for the RunCMake.CTestMemcheck tests require CMakeLib, so put them in a Tests/CMakeLib/PseudoMemcheck directory.
* Tests: Move CTestTestMemcheck cases into a RunCMake.CTestMemcheck testBrad King2014-12-181-249/+0
| | | | | | | | The CTestTestMemcheck test cases all try to check the ctest output with a regular expression. They fail intermittently due to ordering of the portions of the output that come from stdout and stderr being mixed. Convert all the test cases to use the RunCMake infrastructure to match stdout and stderr separately.
* tests: Add a test for ctest_memcheck MemorySanitizerBill Hoffman2014-10-071-0/+17
|
* tests: add a test for ctest_memcheck UndefinedBehaviorSanitizerBen Boeckel2014-10-071-0/+17
|
* Tests: Organize CTestTestMemcheck inner test codeBrad King2014-10-071-3/+5
| | | | Update some whitespace and add comment dividers.
* tests: set sanitizer options properlyBen Boeckel2014-10-061-2/+2
| | | | Prior to this, these options were just being set in the environment.
* Merge topic 'fix_sanitizer_test_to_work_with_sanitizer'Brad King2014-07-231-2/+2
|\ | | | | | | | | f7d62cac Fix leak and address sanitizer tests to be able to run with real tools.
| * Fix leak and address sanitizer tests to be able to run with real tools.Bill Hoffman2014-07-221-2/+2
| | | | | | | | | | | | | | When running CMake under Leak or Address Sanitizer tools, the fake reporting would get picked up by the outer CMake and reported as leaks and address failures on the CMake dashboard. This commit makes sure the test only reports simulated errors when asked to.
* | Tests/CTestTestMemcheck: Tolerate malloc guard in BC outputBill Hoffman2014-07-221-1/+1
|/
* ctest_memcheck: Add support for memory and leak sanitizer.Bill Hoffman2014-07-161-4/+35
| | | | | | 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-091-0/+18
| | | | | | | | | 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.
* Tests/CTestTestMemcheck: Help Xcode 2.x create output dirsBrad King2014-03-261-8/+15
| | | | | 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: 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-071-6/+15
| | | | | | 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-031-32/+109
|\ | | | | | | | | Resolve conflicts in Tests/CTestTestMemcheck/CMakeLists.txt by combining changes from both sides.
| * Tests: ignore GuardMalloc messages on all Apple build, not just XCode onesRolf Eike Beer2013-05-231-1/+1
| |
| * 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-091-0/+9
| |
| * 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-091-1/+26
| | | | | | | | | | | | 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-091-13/+40
| | | | | | | | | | | | 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-091-5/+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-091-14/+20
| | | | | | | | | | | | | | 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
* CTest: add a check with a quoted memory checkerRolf Eike Beer2012-10-041-4/+9
|
* CTest: add a test for CTEST_CUSTOM_MEMCHECK_IGNORERolf Eike Beer2012-10-041-1/+6
|
* CTest: add tests that simulate memcheck runsRolf Eike Beer2012-10-041-0/+71