+2018-03-24 Jim Meyering <meyering@fb.com>
+
+ test-version-etc.sh: don't use diff directly: use init.sh's compare
+ We'd rather not sacrifice readable "diff -u" output even for
+ "diff -c" output (not supported by busybox) or for even less
+ readable ed-style "diff" output. So use init.sh's compare function
+ * tests/test-version-etc.sh: Source init.sh and add "." to path.
+ Remove "./" from invocation of test-version-etc, so we use path.
+ And s/diff/compare/.
+ * modules/version-etc-tests (Depends-on): Add test-framework-sh,
+ to get init.sh.
+ Prompted by Eric Blake's comments in
+ https://lists.gnu.org/r/sed-devel/2018-03/msg00015.html
+
2018-03-24 Bruno Haible <bruno@clisp.org>
javacomp-script, javacomp: Add support for Java 10.
# You should have received a copy of the GNU General Public License
# along with this program. If not, see <https://www.gnu.org/licenses/>.
+. "${srcdir=.}/init.sh"; path_prepend_ .
+
TMP=ve-expected.tmp
LC_ALL=C
export LC_ALL
Written by Sergey Poznyakoff and Eric Blake.
EOT
-./test-version-etc${EXEEXT} --version |
+test-version-etc${EXEEXT} --version |
sed '1s/test-version-etc (.*) .*/test-version-etc (PROJECT) VERSION/
/^Packaged by/d
2,3 s/Copyright (C) [0-9]\{4,4\}/COPYRIGHT/' |
tr -d '\015' |
- diff $TMP - || ERR=1
+ compare $TMP - || ERR=1
rm $TMP