* cogito-0.16: t/test-lib.sh: Unportable test(1) construct
@ 2006-10-16 1:05 Thomas Klausner
2006-10-16 1:47 ` Petr Baudis
0 siblings, 1 reply; 2+ messages in thread
From: Thomas Klausner @ 2006-10-16 1:05 UTC (permalink / raw)
To: git
[-- Attachment #1: Type: text/plain, Size: 246 bytes --]
Hi!
As of version 0.16, cogito is using an unportable bash extension
"==" for test(1) in t/test-lib.sh. This is not supported by most
other shells or even test(1) from GNU coreutils. Please use "="
instead. A patch is attached.
Thanks,
Thomas
[-- Attachment #2: patch-aa --]
[-- Type: text/plain, Size: 851 bytes --]
$NetBSD: patch-aa,v 1.1 2006/10/16 00:44:15 wiz Exp $
--- t/test-lib.sh.orig 2005-11-27 16:26:16.000000000 +0000
+++ t/test-lib.sh
@@ -87,16 +87,16 @@ test_failure_ () {
say "FAIL $test_count: $1"
shift
echo "$@" | sed -e 's/^/ /'
- test "$immediate" == "" || exit 1
+ test "$immediate" = "" || exit 1
}
test_debug () {
- test "$debug" == "" || eval "$1"
+ test "$debug" = "" || eval "$1"
}
test_expect_failure () {
- test "$#" == 2 ||
+ test "$#" = 2 ||
error "bug in the test script: not 2 parameters to test-expect-failure"
say >&3 "expecting failure: $2"
if eval >&3 2>&4 "$2"
@@ -108,7 +108,7 @@ test_expect_failure () {
}
test_expect_success () {
- test "$#" == 2 ||
+ test "$#" = 2 ||
error "bug in the test script: not 2 parameters to test-expect-success"
say >&3 "expecting success: $2"
if eval >&3 2>&4 "$2"
^ permalink raw reply [flat|nested] 2+ messages in thread
* Re: cogito-0.16: t/test-lib.sh: Unportable test(1) construct
2006-10-16 1:05 cogito-0.16: t/test-lib.sh: Unportable test(1) construct Thomas Klausner
@ 2006-10-16 1:47 ` Petr Baudis
0 siblings, 0 replies; 2+ messages in thread
From: Petr Baudis @ 2006-10-16 1:47 UTC (permalink / raw)
To: Thomas Klausner; +Cc: git, nico-linux-git
Hi,
Dear diary, on Mon, Oct 16, 2006 at 03:05:20AM CEST, I got a letter
where Thomas Klausner <tk@giga.or.at> said that...
> As of version 0.16, cogito is using an unportable bash extension
> "==" for test(1) in t/test-lib.sh. This is not supported by most
> other shells or even test(1) from GNU coreutils. Please use "="
> instead. A patch is attached.
thanks, applied. Please generate -p1 patches in the future and sign
them off.
--
Petr "Pasky" Baudis
Stuff: http://pasky.or.cz/
#!/bin/perl -sp0777i<X+d*lMLa^*lN%0]dsXx++lMlN/dsM0<j]dsj
$/=unpack('H*',$_);$_=`echo 16dio\U$k"SK$/SM$n\EsN0p[lN*1
lK[d2%Sa2/d0$^Ixp"|dc`;s/\W//g;$_=pack('H*',/((..)*)$/)
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2006-10-16 1:48 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2006-10-16 1:05 cogito-0.16: t/test-lib.sh: Unportable test(1) construct Thomas Klausner
2006-10-16 1:47 ` Petr Baudis
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox