<feed xmlns='http://www.w3.org/2005/Atom'>
<title>delta/diffutils.git/tests, branch baserock/morph</title>
<subtitle>git.savannah.gnu.org: git/diffutils.git
</subtitle>
<link rel='alternate' type='text/html' href='http://git.baserock.org/cgit/delta/diffutils.git/'/>
<entry>
<title>New option --no-dereference.</title>
<updated>2012-01-08T20:26:27+00:00</updated>
<author>
<name>Bruno Haible</name>
<email>bruno@clisp.org</email>
</author>
<published>2012-01-06T23:57:29+00:00</published>
<link rel='alternate' type='text/html' href='http://git.baserock.org/cgit/delta/diffutils.git/commit/?id=e3324651cc1f9f116754a4713e08bfb0bac50150'/>
<id>e3324651cc1f9f116754a4713e08bfb0bac50150</id>
<content type='text'>
* src/diff.h (no_dereference_symlinks): New variable.
* src/diff.c: Include xreadlink.h.
(longopts): Add --no-dereference option.
(main): Accept --no-dereference option.
(option_help_msgid): Mention the --no-dereference option.
(compare_files): If no_dereference_symlinks is true, use lstat()
instead of stat(). Compare symbolic links by comparing their values.
* bootstrap.conf (gnulib_modules): Add lstat, stat, xreadlink.
* doc/diffutils.texi (Comparing Directories, diff Options): Mention the
--no-dereference option.
* tests/no-dereference: New file.
* tests/Makefile.am (TESTS): Add it.
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
* src/diff.h (no_dereference_symlinks): New variable.
* src/diff.c: Include xreadlink.h.
(longopts): Add --no-dereference option.
(main): Accept --no-dereference option.
(option_help_msgid): Mention the --no-dereference option.
(compare_files): If no_dereference_symlinks is true, use lstat()
instead of stat(). Compare symbolic links by comparing their values.
* bootstrap.conf (gnulib_modules): Add lstat, stat, xreadlink.
* doc/diffutils.texi (Comparing Directories, diff Options): Mention the
--no-dereference option.
* tests/no-dereference: New file.
* tests/Makefile.am (TESTS): Add it.
</pre>
</div>
</content>
</entry>
<entry>
<title>maint: update all copyright year number ranges</title>
<updated>2012-01-01T08:32:41+00:00</updated>
<author>
<name>Jim Meyering</name>
<email>meyering@redhat.com</email>
</author>
<published>2012-01-01T08:32:41+00:00</published>
<link rel='alternate' type='text/html' href='http://git.baserock.org/cgit/delta/diffutils.git/commit/?id=45110a7927df633cb3235d4fee3d84b0b6d26a96'/>
<id>45110a7927df633cb3235d4fee3d84b0b6d26a96</id>
<content type='text'>
Run "make update-copyright".
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
Run "make update-copyright".
</pre>
</div>
</content>
</entry>
<entry>
<title>build: update to latest gnulib and adapt</title>
<updated>2011-12-14T14:07:57+00:00</updated>
<author>
<name>Jim Meyering</name>
<email>meyering@redhat.com</email>
</author>
<published>2011-12-14T13:28:47+00:00</published>
<link rel='alternate' type='text/html' href='http://git.baserock.org/cgit/delta/diffutils.git/commit/?id=c88c3b6b2ae94bf5d72a04dd4fb797cb386fcb07'/>
<id>c88c3b6b2ae94bf5d72a04dd4fb797cb386fcb07</id>
<content type='text'>
* tests/binary: Reverse arguments to compare to avoid failure of
new syntax-check rule.
* configure.ac: Use -Wno-format-nonliteral.
Mark functions as pure of const, per recommendations enabled by
new gcc -W options.  Use _GL_ATTRIBUTE_PURE and _GL_ATTRIBUTE_CONST.
* lib/cmpbuf.h (buffer_lcm, block_compare):
Apply pure and/or const attributes.
* src/cmp.c (block_compare): Likewise.
* src/context.c (find_hunk): Likewise.
* src/diff.h (lines_differ): Likewise.
* src/diff3.c (skipwhite): Likewise.
* src/dir.c (dir_loop): Likewise.
* src/util.c (find_change, find_reverse_change): Likewise.
(translate_line_number): Likewise.
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
* tests/binary: Reverse arguments to compare to avoid failure of
new syntax-check rule.
* configure.ac: Use -Wno-format-nonliteral.
Mark functions as pure of const, per recommendations enabled by
new gcc -W options.  Use _GL_ATTRIBUTE_PURE and _GL_ATTRIBUTE_CONST.
* lib/cmpbuf.h (buffer_lcm, block_compare):
Apply pure and/or const attributes.
* src/cmp.c (block_compare): Likewise.
* src/context.c (find_hunk): Likewise.
* src/diff.h (lines_differ): Likewise.
* src/diff3.c (skipwhite): Likewise.
* src/dir.c (dir_loop): Likewise.
* src/util.c (find_change, find_reverse_change): Likewise.
(translate_line_number): Likewise.
</pre>
</div>
</content>
</entry>
<entry>
<title>tests: use "compare exp out", not "compare out exp"</title>
<updated>2011-11-29T16:17:10+00:00</updated>
<author>
<name>Jim Meyering</name>
<email>meyering@redhat.com</email>
</author>
<published>2011-11-29T16:11:59+00:00</published>
<link rel='alternate' type='text/html' href='http://git.baserock.org/cgit/delta/diffutils.git/commit/?id=31b43733d40d0a919e0af013f48e271f5824200e'/>
<id>31b43733d40d0a919e0af013f48e271f5824200e</id>
<content type='text'>
Likewise, when an empty file is expected, use "compare /dev/null out",
not "compare out /dev/null". I.e., specify the expected/desired contents
via the first file name.  Prompted by a suggestion from Bruno Haible
in http://thread.gmane.org/gmane.comp.gnu.grep.bugs/4020/focus=29154

Run these commands:

  git grep -l -E 'compare [^ ]+ exp' \
    |xargs perl -pi -e 's/\b(compare) (\S+) (exp\S*)/$1 $3 $2/'
  git grep -l -E 'compare [^ ]+ /dev/null' \
    |xargs perl -pi -e 's,\b(compare) (\S+) (/dev/null),$1 $3 $2,'

But manually convert this one:

  -compare out exp-$(echo $opt|tr ' ' _)
  +compare exp-$(echo $opt|tr ' ' _) out

and avoid an inappropriate change to cfg.mk.
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
Likewise, when an empty file is expected, use "compare /dev/null out",
not "compare out /dev/null". I.e., specify the expected/desired contents
via the first file name.  Prompted by a suggestion from Bruno Haible
in http://thread.gmane.org/gmane.comp.gnu.grep.bugs/4020/focus=29154

Run these commands:

  git grep -l -E 'compare [^ ]+ exp' \
    |xargs perl -pi -e 's/\b(compare) (\S+) (exp\S*)/$1 $3 $2/'
  git grep -l -E 'compare [^ ]+ /dev/null' \
    |xargs perl -pi -e 's,\b(compare) (\S+) (/dev/null),$1 $3 $2,'

But manually convert this one:

  -compare out exp-$(echo $opt|tr ' ' _)
  +compare exp-$(echo $opt|tr ' ' _) out

and avoid an inappropriate change to cfg.mk.
</pre>
</div>
</content>
</entry>
<entry>
<title>tests: use more portable fd redirection in TESTS_ENVIRONMENT</title>
<updated>2011-10-12T17:46:13+00:00</updated>
<author>
<name>Stefano Lattarini</name>
<email>stefano.lattarini@gmail.com</email>
</author>
<published>2011-10-12T09:11:23+00:00</published>
<link rel='alternate' type='text/html' href='http://git.baserock.org/cgit/delta/diffutils.git/commit/?id=5e2baecb26cede9f42456da9593bd0f15af823bb'/>
<id>5e2baecb26cede9f42456da9593bd0f15af823bb</id>
<content type='text'>
* tests/Makefile.am (TESTS_ENVIRONMENT): Redirection with `exec 9&gt;&amp;2'
is not portable to various Korn shells, and to (at least) HP-UX 11
/bin/sh.  Use a more portable idiom.
See http://thread.gmane.org/gmane.comp.gnu.coreutils.bugs/22488 for
lots of discussion.
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
* tests/Makefile.am (TESTS_ENVIRONMENT): Redirection with `exec 9&gt;&amp;2'
is not portable to various Korn shells, and to (at least) HP-UX 11
/bin/sh.  Use a more portable idiom.
See http://thread.gmane.org/gmane.comp.gnu.coreutils.bugs/22488 for
lots of discussion.
</pre>
</div>
</content>
</entry>
<entry>
<title>tests: make test runner a script, not a shell function</title>
<updated>2011-10-11T14:40:12+00:00</updated>
<author>
<name>Stefano Lattarini</name>
<email>stefano.lattarini@gmail.com</email>
</author>
<published>2011-10-10T18:30:21+00:00</published>
<link rel='alternate' type='text/html' href='http://git.baserock.org/cgit/delta/diffutils.git/commit/?id=366adeb73d80cbe8ed4b730c46ed7864cf10eb73'/>
<id>366adeb73d80cbe8ed4b730c46ed7864cf10eb73</id>
<content type='text'>
All the test scripts in the diffutils testsuite are shell scripts,
so the current definition of TESTS_ENVIRONMENT, which adaptively
run tests using either perl or the shell depending on their kind,
is an overkill.

Moreover, this change is required in order for the testsuite to
continue to work with the new testsuite harness that is planned
to be introduced in Automake 1.12 (which, as of the writing date,
is still under development and in late alpha state).

See also related discussion on bug-coreutils:
 &lt;http://debbugs.gnu.org/cgi/bugreport.cgi?bug=8887&gt;

* tests/Makefile.am (TESTS_ENVIRONMENT): Remove definition of the
`shell_or_perl_' shell function, which is not required anymore.
(LOG_COMPILER): New, define to `$(SHELL)'.
* tests/binary: Make executable.
* tests/colliding-file-names: Likewise.
* tests/excess-slash: Likewise.
* tests/no-newline-at-eof: Likewise.
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
All the test scripts in the diffutils testsuite are shell scripts,
so the current definition of TESTS_ENVIRONMENT, which adaptively
run tests using either perl or the shell depending on their kind,
is an overkill.

Moreover, this change is required in order for the testsuite to
continue to work with the new testsuite harness that is planned
to be introduced in Automake 1.12 (which, as of the writing date,
is still under development and in late alpha state).

See also related discussion on bug-coreutils:
 &lt;http://debbugs.gnu.org/cgi/bugreport.cgi?bug=8887&gt;

* tests/Makefile.am (TESTS_ENVIRONMENT): Remove definition of the
`shell_or_perl_' shell function, which is not required anymore.
(LOG_COMPILER): New, define to `$(SHELL)'.
* tests/binary: Make executable.
* tests/colliding-file-names: Likewise.
* tests/excess-slash: Likewise.
* tests/no-newline-at-eof: Likewise.
</pre>
</div>
</content>
</entry>
<entry>
<title>build: update bootstrap and tests/init.sh from gnulib</title>
<updated>2011-09-02T12:16:04+00:00</updated>
<author>
<name>Jim Meyering</name>
<email>meyering@redhat.com</email>
</author>
<published>2011-09-02T12:16:04+00:00</published>
<link rel='alternate' type='text/html' href='http://git.baserock.org/cgit/delta/diffutils.git/commit/?id=e2ed9d279b1a9933a4225a1c952aa5c9d50b4c69'/>
<id>e2ed9d279b1a9933a4225a1c952aa5c9d50b4c69</id>
<content type='text'>
* bootstrap: Update from gnulib.
* tests/init.sh: Likewise.
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
* bootstrap: Update from gnulib.
* tests/init.sh: Likewise.
</pre>
</div>
</content>
</entry>
<entry>
<title>tests: update init.sh from gnulib</title>
<updated>2011-08-03T16:07:33+00:00</updated>
<author>
<name>Jim Meyering</name>
<email>meyering@redhat.com</email>
</author>
<published>2011-08-03T16:07:33+00:00</published>
<link rel='alternate' type='text/html' href='http://git.baserock.org/cgit/delta/diffutils.git/commit/?id=c06794dacf66868840ea4818352929eabeec09c2'/>
<id>c06794dacf66868840ea4818352929eabeec09c2</id>
<content type='text'>
* tests/init.sh: Update from gnulib.
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
* tests/init.sh: Update from gnulib.
</pre>
</div>
</content>
</entry>
<entry>
<title>tests: avoid newer but less-portable tail option syntax</title>
<updated>2011-01-24T15:34:32+00:00</updated>
<author>
<name>Jim Meyering</name>
<email>meyering@redhat.com</email>
</author>
<published>2011-01-24T15:32:00+00:00</published>
<link rel='alternate' type='text/html' href='http://git.baserock.org/cgit/delta/diffutils.git/commit/?id=4e0d3664c7a1a7515309b140dbf8ff27538423cf'/>
<id>4e0d3664c7a1a7515309b140dbf8ff27538423cf</id>
<content type='text'>
* tests/function-line-vs-leading-space: Use sed -n '3,$p' rather than
tail -n+3.  Older versions of tail do not accept that newer syntax.
Reported by Sudhakara Peram.
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
* tests/function-line-vs-leading-space: Use sed -n '3,$p' rather than
tail -n+3.  Older versions of tail do not accept that newer syntax.
Reported by Sudhakara Peram.
</pre>
</div>
</content>
</entry>
<entry>
<title>tests: fix an erroneous test</title>
<updated>2011-01-24T12:36:17+00:00</updated>
<author>
<name>Jim Meyering</name>
<email>meyering@redhat.com</email>
</author>
<published>2011-01-24T12:36:17+00:00</published>
<link rel='alternate' type='text/html' href='http://git.baserock.org/cgit/delta/diffutils.git/commit/?id=bf4003c13d75c927f5f616b2c38eef7c3d7e28c4'/>
<id>bf4003c13d75c927f5f616b2c38eef7c3d7e28c4</id>
<content type='text'>
On most systems, like-named files were compared, by luck.
However, on others, different-named files would be compared
since their names were being treated as equal -- but they had
different content, so the test would fail.
* tests/colliding-file-names: Use different sets of file names
in d1 and d2 so that they cannot accidentally match.
Put the same line in each test file.  This is required
when files named e.g., abc and ABC are compared.
This test was failing on a NixOS 86_64-darwin system.
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
On most systems, like-named files were compared, by luck.
However, on others, different-named files would be compared
since their names were being treated as equal -- but they had
different content, so the test would fail.
* tests/colliding-file-names: Use different sets of file names
in d1 and d2 so that they cannot accidentally match.
Put the same line in each test file.  This is required
when files named e.g., abc and ABC are compared.
This test was failing on a NixOS 86_64-darwin system.
</pre>
</div>
</content>
</entry>
</feed>
