summaryrefslogtreecommitdiffstats
path: root/Source/CTest
Commit message (Collapse)AuthorAgeFilesLines
* Merge topic 'cmake-gui-capture-output'Brad King2014-05-161-23/+27
|\ | | | | | | | | | | | | | | | | | | | | | | 209cd475 Help: Add notes for topic 'cmake-gui-capture-output' d7c69246 execute_process: Send stderr through cmSystemTools::Stderr 92ddf0c9 cmake-gui: Capture cmSystemTools::Stdout and Stderr f52b5ae3 cmSystemTools: Add callback for Stderr a9ae1d7a cmSystemTools: Simplify InterruptCallback definition 73b13f56 cmSystemTools: Rename ErrorCallback to MessageCallback 7577a542 cmCTestBuildAndTestHandler: Refactor output capture b1b4d761 cmCTestBuildAndTestHandler: Refactor local loop var
| * cmSystemTools: Add callback for StderrBrad King2014-05-151-2/+4
| | | | | | | | | | | | | | | | | | Factor a common callback type out of StdoutCallback. Add an equivalent StderrCallback. While at it, use "size_t" for the data length instead of "int". Teach "ctest --build-and-test" to capture the Stderr callback because output sent through it is part of the logical CMake process output.
| * cmSystemTools: Rename ErrorCallback to MessageCallbackBrad King2014-05-151-2/+2
| | | | | | | | | | Clarify that it is the callback for the cmSystemTools::Message API. Rename callback clients too.
| * cmCTestBuildAndTestHandler: Refactor output captureBrad King2014-05-151-19/+22
| | | | | | | | Use an RAII class to add and remove callbacks.
| * cmCTestBuildAndTestHandler: Refactor local loop varBrad King2014-05-151-3/+2
| |
* | Merge topic 'fix_mumps_coverage'Brad King2014-05-162-4/+32
|\ \ | |/ |/| | | | | 9ad07fbe CTest: Fix MUMPS coverage parsing and test
| * CTest: Fix MUMPS coverage parsing and testJoseph Snyder2014-05-162-4/+32
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Fix the MUMPS coverage parser: * Account for tabs after entry points * Stop double incrementing lines that have explicit calls to the 0 line * If a line has been previously marked as non executable, but then contains a count, increment it an extra one to push it back into the executable code set. Add a custom routine and corresponding coverage files in the test case. This file is smaller and has cmcov/mcov files that have data for only that routine.
* | Merge topic 'ctest-bad-generator'Brad King2014-05-081-0/+9
|\ \ | |/ |/| | | | | 54111286 ctest_build: Do not crash on bad generator name
| * ctest_build: Do not crash on bad generator nameBrad King2014-05-071-0/+9
| | | | | | | | | | | | | | | | | | | | If creation of the global generator fails, return early with an error message instead of trying to use the generator and crashing. Add a CTestTestBadGenerator test to cover this case. Reported-by: Mathieu Malaterre <malat@debian.org> Bug-Debian: http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=747306
* | CTest: Add support for Intel coverage filesVolkan Gezer2014-03-132-0/+309
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | By default, Intel compiler coverage tools generate HTML files as reports, but the option -txtlcov can be given to codecov to output a coverage file with LCov format. To use Intel coverage: * build the project with coverage flags * run the application * run profmerge * run codecov The output file will be "build_dir/CodeCoverage/SRCFILEDIR.LCOV". Ask users to compile with -prof-dir${BUILD_DIR} instead of searching the entire build tree recursively to find coverage files.
* | 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.