<feed xmlns='http://www.w3.org/2005/Atom'>
<title>delta/cmake.git/Tests/CTestUpdateGIT.cmake.in, branch master</title>
<subtitle>gitlab.kitware.com: cmake/cmake.git
</subtitle>
<link rel='alternate' type='text/html' href='http://trove.baserock.org/cgit/delta/cmake.git/'/>
<entry>
<title>Tests: Fix CTest.UpdateGIT under repo-local defaultBranch config</title>
<updated>2022-11-11T20:05:01+00:00</updated>
<author>
<name>Brad King</name>
<email>brad.king@kitware.com</email>
</author>
<published>2022-11-11T19:50:55+00:00</published>
<link rel='alternate' type='text/html' href='http://trove.baserock.org/cgit/delta/cmake.git/commit/?id=b0d16c7f7404bfa9979680b5bb4994441a6c0faa'/>
<id>b0d16c7f7404bfa9979680b5bb4994441a6c0faa</id>
<content type='text'>
The default branch detection added by commit 26ec2e2b0c (Tests: Update
CTest.UpdateGIT test for custom defaultBranch, 2020-12-02,
v3.20.0-rc1~355^2) fails if the test is run inside a Git work tree whose
`.git` directory configures a `defaultBranch` that is different from the
global or system-wide value.  Fix the detection to ignore the locally
configured value so that we match the `git init` decision.
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
The default branch detection added by commit 26ec2e2b0c (Tests: Update
CTest.UpdateGIT test for custom defaultBranch, 2020-12-02,
v3.20.0-rc1~355^2) fails if the test is run inside a Git work tree whose
`.git` directory configures a `defaultBranch` that is different from the
global or system-wide value.  Fix the detection to ignore the locally
configured value so that we match the `git init` decision.
</pre>
</div>
</content>
</entry>
<entry>
<title>Tests: Update CTest.UpdateGIT test for custom defaultBranch</title>
<updated>2020-12-02T16:27:39+00:00</updated>
<author>
<name>Brad King</name>
<email>brad.king@kitware.com</email>
</author>
<published>2020-12-02T13:55:09+00:00</published>
<link rel='alternate' type='text/html' href='http://trove.baserock.org/cgit/delta/cmake.git/commit/?id=26ec2e2b0cfee6424290103b5f947bd171ac55a9'/>
<id>26ec2e2b0cfee6424290103b5f947bd171ac55a9</id>
<content type='text'>
Git installation now prompts the user to choose a system-wide
name for the default branch in new repositories.
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
Git installation now prompts the user to choose a system-wide
name for the default branch in new repositories.
</pre>
</div>
</content>
</entry>
<entry>
<title>Use string(APPEND) in Tests</title>
<updated>2016-07-27T22:43:04+00:00</updated>
<author>
<name>Daniel Pfeifer</name>
<email>daniel@pfeifer-mail.de</email>
</author>
<published>2016-07-27T22:43:04+00:00</published>
<link rel='alternate' type='text/html' href='http://trove.baserock.org/cgit/delta/cmake.git/commit/?id=7a649111cdea2b10f2ec57084416be619867fbfb'/>
<id>7a649111cdea2b10f2ec57084416be619867fbfb</id>
<content type='text'>
Automate with:

find Tests -type f -print0 | xargs -0 perl -i -0pe \
's/set\(([a-zA-Z0-9_]+)(\s+)"\$\{\1\}([^"])/string(APPEND \1\2"\3/g'
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
Automate with:

find Tests -type f -print0 | xargs -0 perl -i -0pe \
's/set\(([a-zA-Z0-9_]+)(\s+)"\$\{\1\}([^"])/string(APPEND \1\2"\3/g'
</pre>
</div>
</content>
</entry>
<entry>
<title>Tests: Simplify CTest.UpdateGIT repo path construction</title>
<updated>2015-12-10T18:54:54+00:00</updated>
<author>
<name>Brad King</name>
<email>brad.king@kitware.com</email>
</author>
<published>2015-12-10T16:16:11+00:00</published>
<link rel='alternate' type='text/html' href='http://trove.baserock.org/cgit/delta/cmake.git/commit/?id=972849fbb7531b2d43e4ecc5bd0cf2b0b75922da'/>
<id>972849fbb7531b2d43e4ecc5bd0cf2b0b75922da</id>
<content type='text'>
Avoid constructing full paths to .git repositories in the test.  Use
relative paths and let Git convert them to absolute paths internally.
This is simpler and also avoids trouble with various absolute path root
component conventions on Windows (`c:/`, `/c/`, `/cygdrive/c/`).
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
Avoid constructing full paths to .git repositories in the test.  Use
relative paths and let Git convert them to absolute paths internally.
This is simpler and also avoids trouble with various absolute path root
component conventions on Windows (`c:/`, `/c/`, `/cygdrive/c/`).
</pre>
</div>
</content>
</entry>
<entry>
<title>ctest_update: Fix RETURN_VALUE on VCS tool failure (#15610)</title>
<updated>2015-06-11T15:00:48+00:00</updated>
<author>
<name>Brad King</name>
<email>brad.king@kitware.com</email>
</author>
<published>2015-06-11T13:00:01+00:00</published>
<link rel='alternate' type='text/html' href='http://trove.baserock.org/cgit/delta/cmake.git/commit/?id=493388ce48cb4188068c6f0379bb2afa60c0a41a'/>
<id>493388ce48cb4188068c6f0379bb2afa60c0a41a</id>
<content type='text'>
Make RETURN_VALUE report -1 if the update command failed as the
documentation claims.  Also avoid reporting a ctest script-level failure
if the update command fails because we still correctly administered the
update step.
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
Make RETURN_VALUE report -1 if the update command failed as the
documentation claims.  Also avoid reporting a ctest script-level failure
if the update command fails because we still correctly administered the
update step.
</pre>
</div>
</content>
</entry>
<entry>
<title>Tests: Simplify CTest.UpdateGIT QUIET mode test</title>
<updated>2015-06-11T14:57:20+00:00</updated>
<author>
<name>Brad King</name>
<email>brad.king@kitware.com</email>
</author>
<published>2015-06-11T13:44:05+00:00</published>
<link rel='alternate' type='text/html' href='http://trove.baserock.org/cgit/delta/cmake.git/commit/?id=b6667729cb40dec8aff28464152dfa1b7c92decc'/>
<id>b6667729cb40dec8aff28464152dfa1b7c92decc</id>
<content type='text'>
Parameterize the dashboard script generation to configure custom
content.  Also move state cleanup from previous test back to its block.
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
Parameterize the dashboard script generation to configure custom
content.  Also move state cleanup from previous test back to its block.
</pre>
</div>
</content>
</entry>
<entry>
<title>ctest_update: Add QUIET option</title>
<updated>2015-02-23T15:01:59+00:00</updated>
<author>
<name>Zack Galbreath</name>
<email>zack.galbreath@kitware.com</email>
</author>
<published>2015-02-17T16:45:46+00:00</published>
<link rel='alternate' type='text/html' href='http://trove.baserock.org/cgit/delta/cmake.git/commit/?id=645ad117e1c8b3b99fda128daad708a87c0a3f2e'/>
<id>645ad117e1c8b3b99fda128daad708a87c0a3f2e</id>
<content type='text'>
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
</pre>
</div>
</content>
</entry>
<entry>
<title>ctest_update: Add CTEST_UPDATE_VERSION_ONLY option to only note the version</title>
<updated>2014-08-18T15:21:36+00:00</updated>
<author>
<name>Bill Hoffman</name>
<email>bill.hoffman@kitware.com</email>
</author>
<published>2014-08-13T17:45:08+00:00</published>
<link rel='alternate' type='text/html' href='http://trove.baserock.org/cgit/delta/cmake.git/commit/?id=39b5df2f3714c32d498fcb7c88f5bda456f75cb3'/>
<id>39b5df2f3714c32d498fcb7c88f5bda456f75cb3</id>
<content type='text'>
This allows ctest_update to get the current version without actually
changing the repository.  This is useful when using Jenkins or an
external project to update the source to a specific version, but you
still want the current version to show up in CDash.
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
This allows ctest_update to get the current version without actually
changing the repository.  This is useful when using Jenkins or an
external project to update the source to a specific version, but you
still want the current version to show up in CDash.
</pre>
</div>
</content>
</entry>
<entry>
<title>CTest: Fix ctest_update with 'HEAD' file in source tree</title>
<updated>2013-02-28T16:52:30+00:00</updated>
<author>
<name>Brad King</name>
<email>brad.king@kitware.com</email>
</author>
<published>2013-02-28T16:52:30+00:00</published>
<link rel='alternate' type='text/html' href='http://trove.baserock.org/cgit/delta/cmake.git/commit/?id=78b81b773c428b6575ea50369a96e26fdfa586df'/>
<id>78b81b773c428b6575ea50369a96e26fdfa586df</id>
<content type='text'>
Add the '--' command-line separator to make the HEAD reference
unambiguous.  Extend the CTest.UpdateGIT test to cover this case.
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
Add the '--' command-line separator to make the HEAD reference
unambiguous.  Extend the CTest.UpdateGIT test to cover this case.
</pre>
</div>
</content>
</entry>
<entry>
<title>Remove CMake-language block-end command arguments</title>
<updated>2012-08-13T18:19:16+00:00</updated>
<author>
<name>Kitware Robot</name>
<email>kwrobot@kitware.com</email>
</author>
<published>2012-08-13T17:50:14+00:00</published>
<link rel='alternate' type='text/html' href='http://trove.baserock.org/cgit/delta/cmake.git/commit/?id=9db3116226cb99fcf54e936c833953abcde9b729'/>
<id>9db3116226cb99fcf54e936c833953abcde9b729</id>
<content type='text'>
Ancient versions of CMake required else(), endif(), and similar block
termination commands to have arguments matching the command starting the
block.  This is no longer the preferred style.

Run the following shell code:

for c in else endif endforeach endfunction endmacro endwhile; do
    echo 's/\b'"$c"'\(\s*\)(.\+)/'"$c"'\1()/'
done &gt;convert.sed &amp;&amp;
git ls-files -z -- bootstrap '*.cmake' '*.cmake.in' '*CMakeLists.txt' |
egrep -z -v '^(Utilities/cm|Source/kwsys/)' |
egrep -z -v 'Tests/CMakeTests/While-Endwhile-' |
xargs -0 sed -i -f convert.sed &amp;&amp;
rm convert.sed
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
Ancient versions of CMake required else(), endif(), and similar block
termination commands to have arguments matching the command starting the
block.  This is no longer the preferred style.

Run the following shell code:

for c in else endif endforeach endfunction endmacro endwhile; do
    echo 's/\b'"$c"'\(\s*\)(.\+)/'"$c"'\1()/'
done &gt;convert.sed &amp;&amp;
git ls-files -z -- bootstrap '*.cmake' '*.cmake.in' '*CMakeLists.txt' |
egrep -z -v '^(Utilities/cm|Source/kwsys/)' |
egrep -z -v 'Tests/CMakeTests/While-Endwhile-' |
xargs -0 sed -i -f convert.sed &amp;&amp;
rm convert.sed
</pre>
</div>
</content>
</entry>
</feed>
