GNU bug report logs -
#10441
The testsuite assumes that ln -s really creates a symlink
Previous Next
Reported by: Peter Rosin <peda <at> lysator.liu.se>
Date: Thu, 5 Jan 2012 22:17:01 UTC
Severity: important
Tags: patch
Done: Stefano Lattarini <stefano.lattarini <at> gmail.com>
Bug is archived. No further changes may be made.
To add a comment to this bug, you must first unarchive it, by sending
a message to control AT debbugs.gnu.org, with unarchive 10441 in the body.
You can then email your comments to 10441 AT debbugs.gnu.org in the normal way.
Toggle the display of automated, internal messages from the tracker.
Report forwarded
to
bug-automake <at> gnu.org
:
bug#10441
; Package
automake
.
(Thu, 05 Jan 2012 22:17:01 GMT)
Full text and
rfc822 format available.
Acknowledgement sent
to
Peter Rosin <peda <at> lysator.liu.se>
:
New bug report received and forwarded. Copy sent to
bug-automake <at> gnu.org
.
(Thu, 05 Jan 2012 22:17:01 GMT)
Full text and
rfc822 format available.
Message #5 received at submit <at> debbugs.gnu.org (full text, mbox):
Hi!
"ln -s" on MSYS does not create a symlink, instead it makes a
regular copy. Lots of test cases (on master) FAIL due to this.
"test -h foo" will simply not return success on MSYS, ever.
Affected tests (that I have noticed):
add-missing.tap (lots of failing test cases)
copy.test
Cheers,
Peter
Severity set to 'important' from 'normal'
Request was from
Stefano Lattarini <stefano.lattarini <at> gmail.com>
to
control <at> debbugs.gnu.org
.
(Sun, 08 Jan 2012 09:56:01 GMT)
Full text and
rfc822 format available.
Information forwarded
to
bug-automake <at> gnu.org
:
bug#10441
; Package
automake
.
(Sun, 08 Jan 2012 12:57:02 GMT)
Full text and
rfc822 format available.
Message #10 received at 10441 <at> debbugs.gnu.org (full text, mbox):
[Message part 1 (text/plain, inline)]
On 01/05/2012 11:13 PM, Peter Rosin wrote:
> Hi!
>
Hi Peter, thanks for the report.
> "ln -s" on MSYS does not create a symlink, instead it makes a
> regular copy. Lots of test cases (on master) FAIL due to this.
>
> "test -h foo" will simply not return success on MSYS, ever.
>
> Affected tests (that I have noticed):
> add-missing.tap (lots of failing test cases)
> copy.test
>
The attached patch should take care of the problem. Tested using
this script in PATH as the `ln' program:
#!/bin/bash
declare -a args=()
for i in "$@"; do
test x"$i" = x"-s" && continue
args=("${args[@]}" "$i")
done
exec /bin/ln "${args[@]}"
I will push after your ACK or in 48 hours, whichever comes first.
Regards,
Stefano
[0001-tests-avoid-many-spurious-failures-on-MSYS-due-to-la.patch (text/x-diff, attachment)]
Information forwarded
to
bug-automake <at> gnu.org
:
bug#10441
; Package
automake
.
(Sun, 08 Jan 2012 15:50:01 GMT)
Full text and
rfc822 format available.
Message #13 received at 10441 <at> debbugs.gnu.org (full text, mbox):
Stefano Lattarini skrev 2012-01-08 13:56:
> On 01/05/2012 11:13 PM, Peter Rosin wrote:
>> Hi!
>>
> Hi Peter, thanks for the report.
>
>> "ln -s" on MSYS does not create a symlink, instead it makes a
>> regular copy. Lots of test cases (on master) FAIL due to this.
>>
>> "test -h foo" will simply not return success on MSYS, ever.
>>
>> Affected tests (that I have noticed):
>> add-missing.tap (lots of failing test cases)
>> copy.test
>>
> The attached patch should take care of the problem. Tested using
> this script in PATH as the `ln' program:
>
> #!/bin/bash
> declare -a args=()
> for i in "$@"; do
> test x"$i" = x"-s" && continue
> args=("${args[@]}" "$i")
> done
> exec /bin/ln "${args[@]}"
>
> I will push after your ACK or in 48 hours, whichever comes first.
add-missing.tap: 351 PASS, 50 skip
copy.test: PASS
Thanks!
Cheers,
Peter
Information forwarded
to
bug-automake <at> gnu.org
:
bug#10441
; Package
automake
.
(Sun, 08 Jan 2012 16:09:01 GMT)
Full text and
rfc822 format available.
Message #16 received at submit <at> debbugs.gnu.org (full text, mbox):
On 1/8/12 7:56 AM, Stefano Lattarini wrote:
>
>
> The attached patch should take care of the problem. Tested using
> this script in PATH as the `ln' program:
Hi Stefano,
I'm just curious if there is a reason not to use AC_PROG_LN_S as
provided by Autoconf. I thought one could call that macro in Autoconf
and place a line
LN_S=@LN_S@
in 'defs.in' and then replace all 'ln -s' with '$LN_S' in tests. In that
way you avoid having another script to maintain. Am I missing something?
Cheers,
Peter
Information forwarded
to
bug-automake <at> gnu.org
:
bug#10441
; Package
automake
.
(Sun, 08 Jan 2012 16:59:02 GMT)
Full text and
rfc822 format available.
Message #19 received at 10441 <at> debbugs.gnu.org (full text, mbox):
On 01/08/2012 05:06 PM, Peter Johansson wrote:
> On 1/8/12 7:56 AM, Stefano Lattarini wrote:
>>
>>
>> The attached patch should take care of the problem. Tested using
>> this script in PATH as the `ln' program:
>
> Hi Stefano,
>
Hi Peter.
> I'm just curious if there is a reason not to use AC_PROG_LN_S as provided
> by Autoconf.
>
> I thought one could call that macro in Autoconf and place a line
>
> LN_S=@LN_S@
>
> in 'defs.in' and then replace all 'ln -s' with '$LN_S' in tests.
>
Ah, but the "ln -s" in the testsuite are used only in places where we want
*real* symlinks (and want to skip some tests if they are not available), so
using $LN_S would quite defy the purpose.
> In that way you avoid having another script to maintain.
>
Oh, don't worry: that script was only a temporary hack to allow me testing
the patch on GNU/Linux, since I don't have easy access to a MinGW system.
It has already been deleted and forgotten. Sorry if I haven't been clear.
> Am I missing something?
>
I hope the above clarifies your doubts.
Thanks,
Stefano
Information forwarded
to
bug-automake <at> gnu.org
:
bug#10441
; Package
automake
.
(Sun, 08 Jan 2012 17:07:01 GMT)
Full text and
rfc822 format available.
Message #22 received at 10441 <at> debbugs.gnu.org (full text, mbox):
tags 10441 patch
close 10441
thanks
On 01/08/2012 04:49 PM, Peter Rosin wrote:
>
> add-missing.tap: 351 PASS, 50 skip
> copy.test: PASS
>
> Thanks!
>
Good! Patch pushed, and bug report closed.
Thanks again for all the testing,
Stefano
Added tag(s) patch.
Request was from
Stefano Lattarini <stefano.lattarini <at> gmail.com>
to
control <at> debbugs.gnu.org
.
(Sun, 08 Jan 2012 17:07:02 GMT)
Full text and
rfc822 format available.
bug closed, send any further explanations to
10441 <at> debbugs.gnu.org and Peter Rosin <peda <at> lysator.liu.se>
Request was from
Stefano Lattarini <stefano.lattarini <at> gmail.com>
to
control <at> debbugs.gnu.org
.
(Sun, 08 Jan 2012 17:07:03 GMT)
Full text and
rfc822 format available.
bug archived.
Request was from
Debbugs Internal Request <help-debbugs <at> gnu.org>
to
internal_control <at> debbugs.gnu.org
.
(Mon, 06 Feb 2012 12:24:03 GMT)
Full text and
rfc822 format available.
This bug report was last modified 13 years and 142 days ago.
Previous Next
GNU bug tracking system
Copyright (C) 1999 Darren O. Benham,
1997,2003 nCipher Corporation Ltd,
1994-97 Ian Jackson.