cURL / Mailing Lists / curl-library / Single Mail

curl-library

Re: Passing key value parameters to testcurl.pl

From: Marc <mback2k_at_googlemail.com>
Date: Tue, 31 May 2011 11:34:51 +0200

Good idea. I applied the patch but now testcurl.pl just runs at 100% CPU
load while doing nothing.

I tried different commandlines:

--nogitpull --mktarball=../mktarball.sh '--configure=--host=i586-mingw32msvc
--prefix=/usr/i586-mingw32msvc --disable-ldap --disable-rtsp --without-ssl
--with-nss=/tmp/win32dev/nss-3.12.5-nspr-4.8.2'

--nogitpull --mktarball=../mktarball.sh --configure='--host=i586-mingw32msvc
--prefix=/usr/i586-mingw32msvc --disable-ldap --disable-rtsp --without-ssl
--with-nss=/tmp/win32dev/nss-3.12.5-nspr-4.8.2'

--nogitpull --mktarball=../mktarball.sh "--configure=--host=i586-mingw32msvc
--prefix=/usr/i586-mingw32msvc --disable-ldap --disable-rtsp --without-ssl
--with-nss=/tmp/win32dev/nss-3.12.5-nspr-4.8.2"

--nogitpull --mktarball=../mktarball.sh --configure="--host=i586-mingw32msvc
--prefix=/usr/i586-mingw32msvc --disable-ldap --disable-rtsp --without-ssl
--with-nss=/tmp/win32dev/nss-3.12.5-nspr-4.8.2"

--nogitpull --mktarball=../mktarball.sh --configure=´--host=i586-mingw32msvc
--prefix=/usr/i586-mingw32msvc --disable-ldap --disable-rtsp --without-ssl
--with-nss=/tmp/win32dev/nss-3.12.5-nspr-4.8.2´

Any ideas? Thanks in advance.

Best regards,
Marc

2011/5/31 Daniel Stenberg <daniel_at_haxx.se>

> On Tue, 31 May 2011, Marc wrote:
>
> The problem is that testcurl.pl splits it's own arguments into 2 or more
>> parts using the equal sign already. It drops everything behind the third
>> equal sign.
>>
>
> Oops. How about we just get everything after the configure= and pass it to
> configure, like this:
>
> diff --git a/tests/testcurl.pl b/tests/testcurl.pl
> index 27f188f..dcfe615 100755
> --- a/tests/testcurl.pl
> +++ b/tests/testcurl.pl
> @@ -108,8 +108,8 @@ while ($ARGV[0]) {
> elsif ($ARGV[0] =~ /--desc=/) {
> $desc = (split(/=/, shift @ARGV))[1];
> }
> - elsif ($ARGV[0] =~ /--configure=/) {
>
> - $confopts = (split(/=/, shift @ARGV))[1];
> + elsif ($ARGV[0] =~ /--configure=(.*)/) {
> + $confopts = $1;
> }
> elsif (($ARGV[0] eq "--nocvsup") || ($ARGV[0] eq "--nogitpull")) {
> $nogitpull=1;
>
> --
>
> / daniel.haxx.se
> -------------------------------------------------------------------
> List admin: http://cool.haxx.se/list/listinfo/curl-library
> Etiquette: http://curl.haxx.se/mail/etiquette.html
>

-------------------------------------------------------------------
List admin: http://cool.haxx.se/list/listinfo/curl-library
Etiquette: http://curl.haxx.se/mail/etiquette.html
Received on 2011-05-31