<feed xmlns='http://www.w3.org/2005/Atom'>
<title>coreutils/tests/mv, branch v8.8</title>
<subtitle>Mirror of https://https.git.savannah.gnu.org/git/coreutils.git/
</subtitle>
<id>https://git.shady.money/coreutils/atom?h=v8.8</id>
<link rel='self' href='https://git.shady.money/coreutils/atom?h=v8.8'/>
<link rel='alternate' type='text/html' href='https://git.shady.money/coreutils/'/>
<updated>2010-12-22T10:52:11Z</updated>
<entry>
<title>maint: correct test-related comments</title>
<updated>2010-12-22T10:52:11Z</updated>
<author>
<name>Jim Meyering</name>
<email>meyering@redhat.com</email>
</author>
<published>2010-12-22T10:49:25Z</published>
<link rel='alternate' type='text/html' href='https://git.shady.money/coreutils/commit/?id=887d530e62f7495de3a8289d07bf11a76390555b'/>
<id>urn:sha1:887d530e62f7495de3a8289d07bf11a76390555b</id>
<content type='text'>
* tests/mv/i-3: Adjust comment to match just-changed code.
Spotted by Pádraig Brady.
* tests/init.cfg (retry_delay_): Correct spelling of function name
in usage example.
</content>
</entry>
<entry>
<title>tests: mv/i-3: avoid false-positive failure on a slow/busy system</title>
<updated>2010-12-22T09:29:30Z</updated>
<author>
<name>Jim Meyering</name>
<email>meyering@redhat.com</email>
</author>
<published>2010-12-22T09:29:30Z</published>
<link rel='alternate' type='text/html' href='https://git.shady.money/coreutils/commit/?id=a300cfd43ccb3f48f5110a2abf6fe234fece3dc3'/>
<id>urn:sha1:a300cfd43ccb3f48f5110a2abf6fe234fece3dc3</id>
<content type='text'>
* tests/mv/i-3: Quadruple the timeout duration.
Without this, I saw an expired timeout on a heavily-loaded system.
</content>
</entry>
<entry>
<title>tests: avoid new false-positive failure on at least FreeBSD 8.1</title>
<updated>2010-12-21T08:30:55Z</updated>
<author>
<name>Jim Meyering</name>
<email>meyering@redhat.com</email>
</author>
<published>2010-12-20T13:27:08Z</published>
<link rel='alternate' type='text/html' href='https://git.shady.money/coreutils/commit/?id=7ca55ef3d1ac512aaa99871adcdd8f21eb5af775'/>
<id>urn:sha1:7ca55ef3d1ac512aaa99871adcdd8f21eb5af775</id>
<content type='text'>
* tests/mv/trailing-slash: Accommodate different diagnostic
on FreeBSD 8.1.
</content>
</entry>
<entry>
<title>cp: give a better diagnostic for nonexistent dest/</title>
<updated>2010-11-22T08:04:50Z</updated>
<author>
<name>Paul Eggert</name>
<email>eggert@cs.ucla.edu</email>
</author>
<published>2010-11-22T02:50:41Z</published>
<link rel='alternate' type='text/html' href='https://git.shady.money/coreutils/commit/?id=013d95af11f41cbe05abdb73c997040dce4301f8'/>
<id>urn:sha1:013d95af11f41cbe05abdb73c997040dce4301f8</id>
<content type='text'>
This patch was written by Jim Meyering and myself.
* src/copy.c (copy_reg): Turn EISDIR to ENOTDIR to improve the
quality of diagnostics for commands like "cp a nosuch/".  Reported
by Марк Коренберг and Alan Curry in the thread starting at:
http://lists.gnu.org/archive/html/bug-coreutils/2010-11/msg00178.html
* THANKS: Update.
* tests/mv/trailing-slash: Add a test.
</content>
</entry>
<entry>
<title>tests: convert the multi-prog $VERBOSE/--version uses</title>
<updated>2010-11-17T20:46:25Z</updated>
<author>
<name>Jim Meyering</name>
<email>meyering@redhat.com</email>
</author>
<published>2010-11-17T20:38:38Z</published>
<link rel='alternate' type='text/html' href='https://git.shady.money/coreutils/commit/?id=8f9be76b0d6995919ee960ce5864715faa11ea5b'/>
<id>urn:sha1:8f9be76b0d6995919ee960ce5864715faa11ea5b</id>
<content type='text'>
E.g.,

-test "$VERBOSE" = yes &amp;&amp; { env -- pwd --version; readlink --version; }
+print_ver_ pwd readlink

-test "$VERBOSE" = yes &amp;&amp; { stdbuf --version; mv --version; }
+print_ver_ stdbuf mv

Use this command:
git grep -l 'VERBOSE.*--version'|xargs perl -ni \
  -e '/^test "\$VERBOSE" = yes &amp;&amp; { .*--version/ or print,next;' \
  -e 's/env -- //g;' \
  -e 's/test "\$VERBOSE" = yes &amp;&amp; { /print_ver_ /;' \
  -e ' s/(\w+) --version;/$1/g; s/ *}$//; print'
</content>
</entry>
<entry>
<title>tests: substitute the single-program $VERBOSE/--version uses</title>
<updated>2010-11-17T20:45:51Z</updated>
<author>
<name>Jim Meyering</name>
<email>meyering@redhat.com</email>
</author>
<published>2010-11-17T20:35:31Z</published>
<link rel='alternate' type='text/html' href='https://git.shady.money/coreutils/commit/?id=293c37b9061c1afd0acd143bbded637a8f00b3a0'/>
<id>urn:sha1:293c37b9061c1afd0acd143bbded637a8f00b3a0</id>
<content type='text'>
Automatically make all of the changes like this:

  -test "$VERBOSE" = yes &amp;&amp; chgrp --version
  +print_ver_ chgrp

git grep -l 'VERBOSE.*--version'|xargs perl -pi -e \
  's/test "\$VERBOSE" = yes &amp;&amp; (\w+) --version/print_ver_ $1/'
</content>
</entry>
<entry>
<title>tests: convert remaining uses of test-lib.sh to init.sh</title>
<updated>2010-11-17T19:48:57Z</updated>
<author>
<name>Jim Meyering</name>
<email>meyering@redhat.com</email>
</author>
<published>2010-11-14T11:07:57Z</published>
<link rel='alternate' type='text/html' href='https://git.shady.money/coreutils/commit/?id=fbcc100f5bc4e5d57370544093fc9edfbde411d3'/>
<id>urn:sha1:fbcc100f5bc4e5d57370544093fc9edfbde411d3</id>
<content type='text'>
RHS='. "\${srcdir=.}/init.sh"; path_prepend_ ../src'
git grep -l test-lib.sh \
  | xargs perl -pi -e 's,^\. \$srcdir/test-lib\.sh$,'"$RHS",
</content>
</entry>
<entry>
<title>tests: convert 'if test "$VERBOSE" = yes; then' to test ... &amp;&amp;</title>
<updated>2010-11-17T19:48:57Z</updated>
<author>
<name>Jim Meyering</name>
<email>meyering@redhat.com</email>
</author>
<published>2010-11-14T11:02:39Z</published>
<link rel='alternate' type='text/html' href='https://git.shady.money/coreutils/commit/?id=ff7f0ff85c40174f1885ec61fa4ab6b73d02b555'/>
<id>urn:sha1:ff7f0ff85c40174f1885ec61fa4ab6b73d02b555</id>
<content type='text'>
</content>
</entry>
<entry>
<title>tests: convert first batch of tests from test-lib.sh to init.sh</title>
<updated>2010-11-17T19:48:57Z</updated>
<author>
<name>Jim Meyering</name>
<email>meyering@redhat.com</email>
</author>
<published>2010-11-14T10:05:05Z</published>
<link rel='alternate' type='text/html' href='https://git.shady.money/coreutils/commit/?id=f38becab02472e6872048a1951b249b2a3c054df'/>
<id>urn:sha1:f38becab02472e6872048a1951b249b2a3c054df</id>
<content type='text'>
Initially, I did this,
git grep -l srcdir/test-lib.sh|xargs perl -p0i -e '~180-byte script'
but that line would have been much longer than the maximum permitted
by coreutils' commit hook, and wasn't readable besides, so here's a
more readable version:

lhs=$(printf '%s\\n' \
'if test "$VERBOSE" = yes; then' \
'  set -x' \
'  touch --version' \
'fi' \
'' \
'. $srcdir/test-lib.sh' \
  | sed 's/\$/\\\$/g;s/touch/(\\w+)/')

rhs=$(printf '%s\\n' \
'. "${srcdir=.}/init.sh"; path_prepend_ ../src' \
'test "$VERBOSE" = yes &amp;&amp; FIXME --version' \
  | sed 's/\$/\\\$/g;s/FIXME/\$1/')

git grep -l srcdir/test-lib.sh|xargs perl -p0i -e "s,$lhs,$rhs,"
</content>
</entry>
<entry>
<title>tests: avoid portability problem with dash vs. symlinked ttys</title>
<updated>2010-11-09T12:43:20Z</updated>
<author>
<name>Pádraig Brady</name>
<email>P@draigBrady.com</email>
</author>
<published>2010-11-09T12:43:20Z</published>
<link rel='alternate' type='text/html' href='https://git.shady.money/coreutils/commit/?id=425503c8073a17df5ace9bb9330ce283804b07e1'/>
<id>urn:sha1:425503c8073a17df5ace9bb9330ce283804b07e1</id>
<content type='text'>
* tests/mv/i-3: Adjust so that the symlink is resolved
before redirecting to the background command, as otherwise
the stdin descriptor passed to the command will fail the
isatty() or ttyname() test.
</content>
</entry>
</feed>
