<feed xmlns='http://www.w3.org/2005/Atom'>
<title>coreutils/tests/ls, 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-11-17T20:46:25Z</updated>
<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: fix a false positive for 32 bit on 64 bit hosts</title>
<updated>2010-11-01T16:02:39Z</updated>
<author>
<name>Nix</name>
<email>nix@esperi.org.uk</email>
</author>
<published>2010-11-01T15:46:01Z</published>
<link rel='alternate' type='text/html' href='https://git.shady.money/coreutils/commit/?id=272f8bf0ac23d7c9ac96f3cb53e114cd3566875b'/>
<id>urn:sha1:272f8bf0ac23d7c9ac96f3cb53e114cd3566875b</id>
<content type='text'>
* tests/ls/stat-free-symlinks: strace currently outputs an
informational message about arch difference to stdout.
Therefore we need to strip that before comparison.
</content>
</entry>
<entry>
<title>tests: make various timeouts more robust</title>
<updated>2010-09-07T13:02:56Z</updated>
<author>
<name>Pádraig Brady</name>
<email>P@draigBrady.com</email>
</author>
<published>2010-09-07T13:02:56Z</published>
<link rel='alternate' type='text/html' href='https://git.shady.money/coreutils/commit/?id=c52d220c300c63a93ffd39dd29e89201e6fd929c'/>
<id>urn:sha1:c52d220c300c63a93ffd39dd29e89201e6fd929c</id>
<content type='text'>
* tests/init.cfg (retry_delay_): Describe
the backoff method used.
* tests/ls/readdir-mountpoint-inode: Add a timeout
to the stat call to eliminate the chance of hangups.
* tests/mv/i-3: Change the timeout required to pass
from 1 second to a range of .1s - 3.1s.
* tests/rm/dangling-symlink: Likewise.
</content>
</entry>
<entry>
<title>ls: fix a test failure that should have been skipped</title>
<updated>2010-08-09T14:52:12Z</updated>
<author>
<name>Dan Hipschman</name>
<email>dsh@linux.ucla.edu</email>
</author>
<published>2010-07-31T01:49:02Z</published>
<link rel='alternate' type='text/html' href='https://git.shady.money/coreutils/commit/?id=24f1af88c79de353fb51ab4eecad99143c4e16fd'/>
<id>urn:sha1:24f1af88c79de353fb51ab4eecad99143c4e16fd</id>
<content type='text'>
* tests/ls/readdir-mountpoint-inode: Check to see if skip_test_ is
called in a helper function via $() instead of mistakenly failing.
* THANKS: Update.
</content>
</entry>
<entry>
<title>tests: avoid spurious failure of ls/color-norm test</title>
<updated>2010-04-15T23:26:21Z</updated>
<author>
<name>Pádraig Brady</name>
<email>P@draigBrady.com</email>
</author>
<published>2010-04-14T14:32:27Z</published>
<link rel='alternate' type='text/html' href='https://git.shady.money/coreutils/commit/?id=3a1595a3fbb07c53ea920c969667f0346a10534c'/>
<id>urn:sha1:3a1595a3fbb07c53ea920c969667f0346a10534c</id>
<content type='text'>
* tests/ls/color-norm: Use the "time" output by `ls -l`
to check normal style.  Previously we used the size from `ls -s`,
but the size of "empty" files can vary depending on whether
SELinux is enabled for example.
</content>
</entry>
<entry>
<title>tests: avoid spurious failure of root-only ls/capability test</title>
<updated>2010-04-14T13:48:31Z</updated>
<author>
<name>Jim Meyering</name>
<email>meyering@redhat.com</email>
</author>
<published>2010-04-14T13:48:31Z</published>
<link rel='alternate' type='text/html' href='https://git.shady.money/coreutils/commit/?id=05bee6f116d81084f5796b2ab1ec12135fb72fc2'/>
<id>urn:sha1:05bee6f116d81084f5796b2ab1ec12135fb72fc2</id>
<content type='text'>
* tests/ls/capability: Adjust this test not to expect the no-op escape
sequence that was removed from all other tests by 2010-01-30 commit
5d43617e, "ls --color: don't emit a final no-op escape sequence".
</content>
</entry>
</feed>
