summaryrefslogtreecommitdiffstats
path: root/Source/CTest
Commit message (Collapse)AuthorAgeFilesLines
* Merge topic 'remove-c_str-calls'Brad King2014-03-1222-163/+163
|\ | | | | | | | | | | | | 3be265b3 Workaround Sun C++ 5.9 compiler crash af8a1643 Remove c_str calls when using stream APIs. 21c573f6 Remove some c_str() calls.
| * Remove c_str calls when using stream APIs.Stephen Kelly2014-03-1114-116/+116
| | | | | | | | | | Use an ad-hoc clang tool for matching the calls which should be ported.
| * Remove some c_str() calls.Stephen Kelly2014-03-1115-47/+47
| | | | | | | | | | | | Use the clang RemoveCStrCalls tool to automatically migrate the code. This was only run on linux, so does not have any positive or negative effect on other platforms.
* | CTest: Teach ctest_coverage() to read CTEST_COVERAGE_EXTRA_FLAGSVolkan Gezer2014-03-101-1/+2
|/ | | | | Use it to set the CoverageExtraFlags value just as COVERAGE_EXTRA_FLAGS does in the CTest module for creating DartConfiguration.tcl.
* stringapi: Command namesBen Boeckel2014-03-0814-17/+17
|
* stringapi: Use strings for generator namesBen Boeckel2014-03-081-2/+1
|
* stringapi: Miscellaneous char* parametersBen Boeckel2014-03-087-63/+57
|
* strings: Remove cmStdString referencesBen Boeckel2014-03-0836-217/+217
| | | | | | | | | | | Casts from std::string -> cmStdString were high on the list of things taking up time. Avoid such implicit casts across function calls by just using std::string everywhere. The comment that the symbol name is too long is no longer relevant since modern debuggers alias the templates anyways and the size is a non-issue since the underlying methods are generated since it's inherited.
* stringapi: Use strings in target nameBen Boeckel2014-03-081-1/+2
|
* stringapi: Use strings for variable namesBen Boeckel2014-03-082-14/+6
| | | | Variable names are always generated by CMake and should never be NULL.
* CTest: notify user if gcov cannot be foundZack Galbreath2014-02-281-0/+6
| | | | | Emit an error message when we're performing coverage using gcov and the gcov executable cannot be found.
* CTest: exclude /showIncludes notes when scraping logsNils Gladitz2014-02-252-2/+18
| | | | | | | | My last related commit e5e3f3d4 (CTest: filter /showIncludes output from ninja compile launcher, 2013-12-01) filtered /showIncludes messages from the generated xml output but they also need to be filtered in ScrapeLog(). Otherwise they are being detected as warnings when using compilers withs english diagnostics.
* Kate: handle spaces in build dirAlex Neundorf2014-02-171-1/+0
| | | | | | | | They need to be escaped in the json file... I'm quite sure I tested this before, obviously I didn't test it correctly. Alex
* ctest_update: Handle P4 unknown revisions more robustlyPedro Navarro2014-01-221-26/+35
| | | | | | Mark unknown revisions as such and fail instead of reporting revision 0. Otherwise CTest reports massive file updates between revisions when the server timeouts while trying to fetch the current revision number.
* allow to mark a test as "Not Run" with a specific return code (#8466)Rolf Eike Beer2014-01-143-1/+18
|
* Use cmsys::[io]fstream instead of cmsys_ios::[io]fstream.Clinton Stimpson2014-01-0718-64/+76
| | | | | Also use SystemTools::Fopen() instead of fopen(). This is to eventually support utf-8 filenames.
* CTest: fix regressions introduced by the ctest-fix-run-serial topicNils Gladitz2013-12-232-4/+89
| | | | | | The first regression resulted in endless looping due to unrun test dependencies. The second regression prioritized all tests with dependencies in serial test runs.
* CTest: filter /showIncludes output from ninja compile launcherNils Gladitz2013-12-032-1/+19
| | | | | Teach "ctest --launch" a new "--filter-prefix" option. Set it using the CMAKE_CL_SHOWINCLUDES_PREFIX value with the Ninja generator.
* Use new cmHasLiteralPrefix functionStephen Kelly2013-11-212-5/+5
|
* ctest: Teach --build-options to allow zero optionsBrad King2013-11-181-14/+5
| | | | | | The --build-options option consumes all following arguments until either --build-target or --test-command. Fix the logic to allow this to be zero options.
* ctest: Make the --build-makeprogram optional for --build-and-testBrad King2013-11-181-4/+9
| | | | | | | | | | GenerateBuildCommand now knows how to lookup CMAKE_MAKE_PROGRAM or choose a generator-provided default build tool. Therefore the --build-makeprogram can now be optional and simply override the default selection when provided. Note that with --build-nocmake we now need to load the cache in order to make the CMAKE_MAKE_PROGRAM entry available to GenerateBuildCommand.
* ctest_build: Use "cmake --build" to launch the native build toolBrad King2013-11-151-7/+2
| | | | | | | | | | This avoids requiring cmGlobalGenerator::GenerateBuildCommand to produce a string so that it can be later refactored to produce a vector with no quoting or escaping. It also makes the ctest_build command match what "ctest -T Build" would run in a build tree configured with the new build_command() command behavior. It also ensures that the native build tool used matches that selected by the configuration of the tree to be built.
* Refactor internal resource location APIs and initializationBrad King2013-11-123-6/+6
| | | | | | | | | | | | | | | | | | | | Rename cmSystemTools::FindExecutableDirectory to FindCMakeResources. Teach it to compute the locations of cmake, ctest, cpack, ccmake, and cmake-gui executables, and the location of CMAKE_ROOT. Provide this information from static cmSystemTools::Get<resource>() methods. Refactor code that needs these locations to use the new APIs. Teach FindCMakeResources to use the OS X system API to lookup the executable location. When running from the CMake build tree itself, leave a file in the tree that FindCMakeResources can use to read the location of the source tree. This avoids the need to compile the source tree location into a binary that may be installed and used without the source tree. Teach the QtDialog on OS X to create a "cmake-gui" symlink in the build tree next to "cmake" and the other tools, as is already done in the install tree for the application bundle. This ensures a consistent set of executables are available in one directory.
* Merge topic 'robust-ctest_empty_binary_directory'Brad King2013-11-042-3/+63
|\ | | | | | | | | | | 35fbc10 CTest: more aggressive implementation of ctest_empty_binary_directory() 9d9f102 Tests: added test for ctest_empty_binary_directory()
| * CTest: more aggressive implementation of ctest_empty_binary_directory()Nils Gladitz2013-11-022-3/+63
| | | | | | | | | | | | | | | | | | Make sure that CMakeCache.txt is the last file being removed since the binary directory may be left in a state that is no longer removable otherwise. Also retry removal a couple of times which makes this more robust on windows where file locks may temporarily prevent removal.
* | Merge topic 'ctest-p4'Brad King2013-11-021-11/+1
|\ \ | | | | | | | | | | | | 1b54b1d ctest_update: Do not remove the p4 depot name
| * | ctest_update: Do not remove the p4 depot namePedro Navarro2013-11-011-11/+1
| |/ | | | | | | | | | | Instead of removing the depot name, which causes problems when looking at the file change list in CDash, make the Update test remove a given prefix from the files retrieved from Update.xml.
* | CTest: prevent tests from being inserted in the cost list twiceNils Gladitz2013-10-311-1/+8
|/
* CTest: clean TargetDirs between unrelated coverage runs (issue 13143)Nils Gladitz2013-10-291-0/+1
|
* CTest: restore old failed test priority in serial test runsNils Gladitz2013-10-271-3/+4
|
* Merge topic 'ctest-fix-run-serial'Brad King2013-10-262-59/+85
|\ | | | | | | | | | | | | | | | | | | | | | | ff59365 CTest: fix dashboard issues associated with the ctest-fix-run-serial topic 7a665ae CTest: added test for RUN_SERIAL issue #14484 384beff CTest: added comments that describe the basic test sorting approach adbe00d CTest: removed redundant copy of test dependency set 1b750cb CTest: perform cycle test early 6d4d7ca CTest: consider previously failed tests before all others e809d8c CTest: prioritize tests by their depth in the dependency graph 44017a4 CTest: handle dependent and non dependent test requirements equally
| * CTest: fix dashboard issues associated with the ctest-fix-run-serial topicNils Gladitz2013-10-251-7/+20
| |
| * CTest: added comments that describe the basic test sorting approachNils Gladitz2013-10-211-0/+7
| |
| * CTest: removed redundant copy of test dependency setNils Gladitz2013-10-211-7/+1
| |
| * CTest: perform cycle test earlyNils Gladitz2013-10-192-1/+8
| |
| * CTest: consider previously failed tests before all othersNils Gladitz2013-10-191-15/+10
| |
| * CTest: prioritize tests by their depth in the dependency graphNils Gladitz2013-10-181-4/+45
| |
| * CTest: handle dependent and non dependent test requirements equallyNils Gladitz2013-10-171-40/+9
| |
* | ctest_update: Add support for Perforce p4 clientPedro Navarro2013-10-265-1/+674
|/ | | | | | | | | | | Teach the ctest_update implementation to use the p4 command-line client to perform updates and extract the list of changes. Add a CTest.UpdateP4 test like those that exist already for the other version control tools. Make the test available when p4 and the p4d server are found. During the test launch p4d in the background to serve a repository from the test directory. Then direct the client toward this server for the duration of the test.
* Drop builtin command documentationBrad King2013-10-1614-355/+0
| | | | | Drop all GetTerseDocumentation and GetFullDocumentation methods from commands. The command documentation is now in Help/command/*.rst files.
* Drop "full" documentation output typesBrad King2013-10-152-7/+0
| | | | | | | | | | | | | | | | We will no longer support full documentation generation from executables and will instead generate documentation with other tools. Disable (with a warning left behind) the command-line options: --copyright --help-compatcommands --help-full --help-html --help-man Drop supporting code. Drop manual sections generation from executables. Remove internal documentation construction APIs. Drop unused sections See Also, Author, Copyright, Compat Commands, Custom Modules.
* Merge topic 'Add-coverage.py-Coverage'Brad King2013-10-084-0/+199
|\ | | | | | | | | d0ec3a0 Adding support for the Python coverage.py tool.
| * Adding support for the Python coverage.py tool.Patrick Reynolds2013-10-084-0/+199
| | | | | | | | | | | | This assumes that coverage.py has been run in such a way to produce its standard XML output. This uses the Cobertura schema and should be somewhat generalizable.
* | Merge topic 'ctest_rerun_failed'Brad King2013-10-082-2/+149
|\ \ | | | | | | | | | | | | eb2decc ctest: Add --rerun-failed option
| * | ctest: Add --rerun-failed optionZack Galbreath2013-10-082-2/+149
| |/ | | | | | | | | | | | | | | Add a new command line argument to ctest. This allows users to rerun tests that failed during the previous call to ctest. This is accomplished by analyzing the most recently modified file named "^LastTestsFailed*" in the Testing/Temporary subdirectory of the project's binary directory.
* | Merge topic 'generate-modern-style'Brad King2013-10-071-2/+2
|\ \ | |/ |/| | | | | | | 027a020 Merge branch 'test-property-genex' into generate-modern-style 33055c4 Generate modern-style cmake code.
| * Generate modern-style cmake code.Stephen Kelly2013-08-221-2/+2
| | | | | | | | | | | | | | | | | | | | | | The commits 9db31162 (Remove CMake-language block-end command arguments, 2012-08-13) and 77543bde (Convert CMake-language commands to lower case, 2012-08-13) changed most cmake code to use lowercase commands and no parameters in termination commands. However, those changes excluded cmake code generated in c++ by cmake. Make a similar style change to code generated by cmake.
* | CTest: Fix GTM coverage parsing line offset bugZack Galbreath2013-08-291-2/+2
|/ | | | | | In cmParseGTMCoverage::ReadMCovFile, initialize the lineoffset variable. Also set lastoffset only if the function is found (thanks to Bill Hoffman).
* CTest: create one output file per memcheck (#14303)Rolf Eike Beer2013-08-076-43/+87
| | | | | | 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-3/+2
| | | | | | | 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.