Merge pull request #1 from t-b/new-sdk-fixes

Fixes for the new SDK
t9300: use test_cmp_bin instead of test_cmp to compare binary files

test_cmp is intended to produce diff output for human consumption. The
input in one instance in t9300-fast-import.sh are binary files, however.
Use test_cmp_bin to compare the files.

This was noticed because on Windows we have a special implementation of
test_cmp in pure bash code (to ignore differences due to intermittent CR
in actual output), and bash runs into an infinite loop due to the binary
nature of the input.

Signed-off-by: Johannes Sixt <j6t@kdbg.org>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
Merge pull request #2 from t-b/tb_more_use_of_test_cmp_bin

t9300: use test_cmp_bin instead of test_cmp to compare binary files
t5000: Fix CRLF vs LF issue

All CRLF vs LF errors are introduced by the tr tool.

Signed-off-by: Thomas Braun <thomas.braun@byte-physics.de>
t2025: Tell tail explicitly to read from stdin

Our current version of bash 3.1.17(5) can not parse the following snippet
correctly
p=abcd
abspath=/$p
subdir="x$(echo "$p" | tail -c $((253 - ${#abspath})))"
as it returns
tail: cannot open `253' for reading: No such file or directory

This is fixed in bash 3.1.20(4), I did not check earlier versions.

Signed-off-by: Thomas Braun <thomas.braun@byte-physics.de>
t5503: Mark flaky tests as known breakages

As non reliable tests are nasty.

Signed-off-by: Thomas Braun <thomas.braun@byte-physics.de>
t1508: Be more clever than msys path substitution

A string of the form "@/abcd" is considered a file path
by the msys layer and therefore translated to a windows path.

Here the trick is to double the slashes.

The msys patch translation can be studied with the following
test program:

 #include <stdio.h>
 #include <stdlib.h>

 int main(int argc, char** argv)
 {
 unsigned int i;
 for(i=1; i < argc; i++)
 	printf("argv[%d]=%s\n",i, argv[i]);

 exit(0);
 }

Signed-off-by: Thomas Braun <thomas.braun@byte-physics.de>
fixup! t0061: Work around a line endings issue with newer versions of cat on MSYS

This reverts commit 57a35fd.

test_cmp_text is not defined anymore and as of 4d715ac
(Windows: a test_cmp that is agnostic to random LF <> CRLF conversions)
this workaround is also not required anymore.

Signed-off-by: Thomas Braun <thomas.braun@byte-physics.de>
fixup! t7800: Use "test_cmp_text" in all places where "echo" is used

This reverts commit 9264b1f.

test_cmp_text is not defined anymore and as of 4d715ac
(Windows: a test_cmp that is agnostic to random LF <> CRLF conversions)
this workaround is also not required anymore.

Signed-off-by: Thomas Braun <thomas.braun@byte-physics.de>
Merge pull request #3 from t-b/test-fixes-again

Final test fixes
Enable support for perl regular expressions (LIBPCRE)

Signed-off-by: Thomas Braun <thomas.braun@byte-physics.de>