summaryrefslogtreecommitdiffstats
path: root/Source/CTest/cmCTestSubmitHandler.cxx
Commit message (Collapse)AuthorAgeFilesLines
* Revise include order using clang-format-6.0Kitware Robot2019-10-011-3/+4
| | | | | Run the `clang-format.bash` script to update our C and C++ code to a new include order `.clang-format`. Use `clang-format` version 6.0.
* clang-tidy: modernize-deprecated-headersRegina Pfeifer2019-09-161-2/+2
|
* clang-tidy: Replace typedef with usingRegina Pfeifer2019-09-031-1/+1
|
* Merge topic 'source_sweep_cmExpandedList'Brad King2019-08-261-4/+2
|\ | | | | | | | | | | | | aaf59120bf Source sweep: Replace cmExpandList with the shorter cmExpandedList Acked-by: Kitware Robot <kwrobot@kitware.com> Merge-request: !3725
| * Source sweep: Replace cmExpandList with the shorter cmExpandedListSebastian Holtermann2019-08-231-4/+2
| | | | | | | | | | | | | | | | | | | | | | | | This replaces the code pattern ``` std::vector<std::string> args; cmExpandList(valueStr, args, ...) ``` with ``` std::vector<std::string> args = cmExpandedList(valueStr, ...) ```
* | ctest: rename TRACK to GROUPZack Galbreath2019-08-221-3/+8
|/ | | | | | | | | | Update command-line options, script variables, and documentation to use the term "group" instead of "track". The old terms are still available for now, but they are now undocumented. This makes our terminology more consistent with CDash. The goal of this change is to make it more clear to our users how CTest and CDash interact with each other.
* Source sweep: Use cmIsOn instead of cmSystemTools::IsOnSebastian Holtermann2019-08-171-2/+2
| | | | | | | | | This replaces invocations of - `cmSystemTools::IsInternallyOn` with `cmIsInternallyOn` - `cmSystemTools::IsNOTFOUND` with `cmIsNOTFOUND` - `cmSystemTools::IsOn` with `cmIsOn` - `cmSystemTools::IsOff` with `cmIsOff`
* Merge topic 'cmExpandList'Kyle Edwards2019-08-161-2/+2
|\ | | | | | | | | | | | | | | | | 2f6495e24e cmSystemTools: Remove ExpandListArgument methods f4f3c68926 Source code: Use cmExpandList instead of cmSystemTools::ExpandListArgument ff42dec891 cmStringAlgorithms: Add cmExpandList functions Acked-by: Kitware Robot <kwrobot@kitware.com> Merge-request: !3682
| * Source code: Use cmExpandList instead of cmSystemTools::ExpandListArgumentSebastian Holtermann2019-08-141-2/+2
| |
* | cmStringAlgorithms: Add cmStrToLong and cmStrToULongSebastian Holtermann2019-08-101-3/+2
|/ | | | | | | | This adds the following functions to cmStringAlgorithms: - `cmStrToLong`: moved from `cmSystemTools::StringToLong` - `cmStrToULong`: moved from `cmSystemTools::StringToULong` Overloads of the given functions for `std::string` are added as well.
* clang-tidy: Enable performance-inefficient-string-concatenationSebastian Holtermann2019-08-051-4/+4
| | | | | | | Enables the clang-tidy test performance-inefficient-string-concatenation and replaces all inefficient string concatenations with `cmStrCat`. Closes: #19555
* cmStringAlgorithms: Move string functions to the new cmStringAlgorithms.hSebastian Holtermann2019-07-291-0/+1
| | | | | This adds the `cmStringAlgorithms.h` header and moves all string functions from `cmAlgorithms.h` to `cmStringAlgorithms.h`.
* CTest: Generate Done.xml before calculating its hashBetsy McPhail2019-07-191-9/+9
| | | | Fixes: #19489
* Use cmAppend to append ranges to std::vector instancesSebastian Holtermann2019-05-231-14/+7
|
* cmCTest: Cleanup typedefsRegina Pfeifer2019-03-201-1/+1
|
* cmCTest: Use concrete accessor functions for TestingHandlersRegina Pfeifer2019-03-201-4/+2
|
* Prefer front/back/data over dereferencing begin/rbegin iterArtur Ryt2019-02-061-11/+10
| | | | Changed for sequenced containers: vector, list, string and array
* cleanup: Prefer compiler provided special member functionsRegina Pfeifer2019-01-251-5/+1
|
* clang-tidy: Use `= default`Regina Pfeifer2019-01-251-1/+1
| | | | | | Suppress some cases in `Source/cmGeneratorExpressionNode.cxx` and `Source/cmUVHandlePtr.h` where a few older compilers require a user-defined default constructor (with `{}`).
* Merge topic 'use-emplace'Brad King2019-01-211-1/+1
|\ | | | | | | | | | | | | | | ef61997b1b clang-tidy: Use emplace 2e5307a2a4 CTestSVN: Accept std::string in SVNInfo constructor Acked-by: Kitware Robot <kwrobot@kitware.com> Merge-request: !2811
| * clang-tidy: Use emplaceRegina Pfeifer2019-01-171-1/+1
| |
* | CTest: Add function GetSubmitURLRegina Pfeifer2019-01-161-37/+2
| |
* | ctest_submit: Remove submit method from log outputRegina Pfeifer2019-01-161-64/+33
|/
* clang-tidy: Remove redundant member initializationsRegina Pfeifer2018-12-151-1/+0
|
* Merge topic 'submit-method'Brad King2018-12-071-721/+5
|\ | | | | | | | | | | | | | | | | | | | | | | | | 9501a6145d CTest: Remove special case for Dart version <= 1 e184603378 CTest: Add release note about removed submission methods 8c25aa2feb CTest: Remove submission trigger a688c6b928 CTest: Remove submit method 'ftp' c339b64cf2 CTest: Remove submit method 'scp' aebdad399e CTest: Remove submit method 'cp' c2f6872c4e CTest: Remove submit method 'xmlrpc' Acked-by: Kitware Robot <kwrobot@kitware.com> Merge-request: !2672
| * CTest: Remove submission triggerRegina Pfeifer2018-11-281-153/+0
| |
| * CTest: Remove submit method 'ftp'Regina Pfeifer2018-11-281-234/+5
| |
| * CTest: Remove submit method 'scp'Regina Pfeifer2018-11-281-133/+0
| |
| * CTest: Remove submit method 'cp'Regina Pfeifer2018-11-281-64/+0
| |
| * CTest: Remove submit method 'xmlrpc'Regina Pfeifer2018-11-281-137/+0
| |
* | cmSystemTools: Add EncodeURL helperBrad King2018-11-281-20/+1
|/ | | | | | | Factor a URL encoding implementation out of CTest. Add an option to not escape slashes. Suggested-by: Daniel Pfeifer <daniel@pfeifer-mail.de>
* CDashUpload: Use the query part of the submit url as fieldRegina Pfeifer2018-11-201-3/+6
|
* CTest: Don't require 'submit.php?' in submit locationRegina Pfeifer2018-11-201-2/+4
| | | | Fixes: #18611
* ctest_submit: Generate Done.xml at submit timeZack Galbreath2018-10-151-1/+11
| | | | | | | | | | | This fixes a bug where calling `ctest_submit()` would result in a Done.xml file with an empty <buildId> element. CDash responds with a buildId when CTest submits a file. For this reason, Done.xml needs to generated after CTest has submitted some other file to CDash. This change also has the benefit of making Done.xml's timestamp as late as possible, giving us a more accurate record of how long the entire build took to complete.
* ctest_submit: Add support for a "Done" partBetsy McPhail2018-10-101-0/+10
| | | | | | | | | | | Teach CTest to submit Done.xml. Submission of this file indicates to CDash that a build is complete and no more files will be uploaded. It contains the build id returned by CDash and the current time. This file is submitted last for a given build when using the `ctest_submit()` command. If submitting by PARTS, use `ctest_submit(PARTS Done)`.
* ctest_submit: Refactor file list to use a vector instead of a setBetsy McPhail2018-10-101-22/+29
| | | | Remove duplicates in a way that preserves order.
* ctest: only create buildid when submitting from Testing/ dirZack Galbreath2018-09-281-20/+28
| | | | | | | | | | | In 7f530cc we taught CTest to pass extra information to CDash at submit time. This extra info is used by CDash to initialize a buildid. `ctest_submit(FILES)` can be used to send specific files to CDash. These files are not necessarily associated with the build currently being performed. For this reason, we modify the behavior of ctest_submit() to only specify this extra info when we are submitting files from the current build's Testing directory.
* ctest_submit: pass additional info to CDashZack Galbreath2018-09-171-0/+23
| | | | | Specify buildname, site, and buildstamp to CDash upon submission. CDash will use this extra info to assign and report back a buildid.
* ctest: allow cdash submissions using alternate authentication methodsClinton Stimpson2018-08-171-0/+4
|
* ctest_submit: show headers as debug infoZack Galbreath2018-06-271-1/+1
| | | | | | | Hide any headers specified by `ctest_submit(HTTPHEADER ...)` unless ctest is run with --debug. This option is used to present bearer tokens to CDash. We do not want to inadvertently expose this secret data in the console output log.
* Revise C++ coding style using clang-format-6.0Kitware Robot2018-06-011-72/+102
| | | | | | | | | | | | Run the `clang-format.bash` script to update all our C and C++ code to a new style defined by `.clang-format`. Use `clang-format` version 6.0. * If you reached this commit for a line in `git blame`, re-run the blame operation starting at the parent of this commit to see older history for the content. * See the parent commit for instructions to rebase a change across this style transition commit.
* cmWorkingDirectory: Check success of current dir changesCraig Scott2018-03-081-0/+19
|
* Reduce raw string pointers usage.Pavel Solodovnikov2018-01-311-6/+6
| | | | | | | | | | * Change some functions to take `std::string` instead of `const char*` in the following classes: `cmMakeFile`, `cmake`, `cmCoreTryCompile`, `cmSystemTools`, `cmState`, `cmLocalGenerator` and a few others. * Greatly reduce using of `const char*` overloads for `cmSystemTools::MakeDirectory` and `cmSystemTools::RelativePath`. * Remove many redundant `c_str()` conversions throughout the code.
* CTest: introduce cmDurationWouter Klouwen2018-01-231-1/+2
| | | | | | | | This commit introduces cmDuration as a typedef for std::chrono::duration<double, std::ratio<1>>. It is less verbose and provides for a point to put future common functionality for durations. No functional change intended.
* CTest: adopt std::chrono::system_clockWouter Klouwen2017-11-171-2/+4
| | | | | | | | | | | | | | | | | | After the refactor to make CTest use std::chrono::steady_clock for the keeping of time for test duration, there are still references to cmSystemTools::GetTime() left. To further adopt std::chrono for time related activities, this commit changes those remaining references to std::chrono::system_clock::now() calls and alters the storage from either unsigned int or double to std::chrono::system_clock::time_point. For ease of conversion, a converter method is added to cmXMLWriter that converts from a std::chrono::system_clock::time_point to the number of seconds since the UN*X epoch as that is expected behaviour. This means no more casts as required. Functionally should be no difference as the system_clock is implemented in the same terms.
* CTest: use std::chrono::steady_clock for time keepingWouter Klouwen2017-11-141-15/+21
| | | | | | | | | | | | It was reported in issue #17345 that CTest does not use monotonic time to report test duration. Monotonic clocks are not affected by large NTP adjustments or things like daylight savings time. As CMake 3.10 requires C++11, which introduced std::chrono, this commit moves the time keeping in CTest from cmSystemTools::GetTime() to std::chrono::steady_clock. Fixes: #17345
* Fix trivial typos in textluzpaz2017-11-031-2/+2
| | | | | | | | | | | | | | | | | | | | | | | | | | | Some are user facing. Found using codespell -q 3 --skip="./Utilities" -I .cmake-whitelist.txt` whereby the whitelist contained: ans dum helpfull emmited emmitted buil iff isnt nto ot pathes substract te todays upto whitespaces
* Replace empty-string comparisons with checking against `empty()`.Pavel Solodovnikov2017-09-211-5/+5
|
* Merge topic 'string-clear'Brad King2017-09-191-3/+3
|\ | | | | | | | | | | | | 5db3aac1 Meta: replace empty-string assignments with `clear()`. Acked-by: Kitware Robot <kwrobot@kitware.com> Merge-request: !1276
| * Meta: replace empty-string assignments with `clear()`.Pavel Solodovnikov2017-09-151-3/+3
| |