~ubuntu-branches/ubuntu/lucid/curl/lucid-security

« back to all changes in this revision

Viewing changes to tests/testcurl.pl

  • Committer: Bazaar Package Importer
  • Author(s): Michael Vogt
  • Date: 2009-04-29 11:10:29 UTC
  • mfrom: (3.2.3 sid)
  • Revision ID: james.westby@ubuntu.com-20090429111029-2j5eiyokfw2bw049
Tags: 7.19.4-1ubuntu1
* Merge from debian unstable, remaining changes:
  - Drop build dependencies: stunnel, libdb4.6-dev, libssh2-1-dev
  - Add build-dependency on openssh-server
  - Drop libssh2-1-dev from libcurl4-openssl-dev's Depends.
  - Call automake-1.9 with --add-missing --copy --force
* drop debian/patches/security_CVE-2009-0037.patch 
  - this patch is part of 7.19.4

Show diffs side-by-side

added added

removed removed

Lines of Context:
19
19
# This software is distributed on an "AS IS" basis, WITHOUT WARRANTY OF ANY
20
20
# KIND, either express or implied.
21
21
#
22
 
# $Id: testcurl.pl,v 1.55 2008-03-20 16:10:54 gknauf Exp $
 
22
# $Id: testcurl.pl,v 1.68 2008-10-02 03:59:25 yangtse Exp $
23
23
###########################################################################
24
24
 
25
25
###########################
69
69
            $extvercmd $nocvsup $nobuildconf $crosscompile $timestamp);
70
70
 
71
71
# version of this script
72
 
$version='$Revision: 1.55 $';
 
72
$version='$Revision: 1.68 $';
73
73
$fixed=0;
74
74
 
75
75
# Determine if we're running from CVS or a canned copy of curl,
274
274
    close(F);
275
275
}
276
276
 
 
277
# Enable picky compiler warnings unless explicitly disabled
 
278
if (($confopts !~ /--enable-debug/) &&
 
279
    ($confopts !~ /--enable-warnings/) &&
 
280
    ($confopts !~ /--disable-warnings/)) {
 
281
  $confopts .= " --enable-warnings";
 
282
}
 
283
 
277
284
my $str1066os = 'o' x 1066;
278
285
 
279
286
# Set timestamp to the UTC this script is running. Its value might
367
374
  while (!cvsup()) {
368
375
    $att++;
369
376
    logit "failed CVS update attempt number $att.";
370
 
    if ($att > 10) {
 
377
    if ($att > 20) {
371
378
      $cvsstat=111;
372
379
      last; # get out of the loop
373
380
    }
391
398
    unlink "autom4te.cache";
392
399
 
393
400
    # generate the build files
394
 
    logit "invoke buildconf, but filter off the silly aclocal warnings";
 
401
    logit "invoke buildconf, but filter off aclocal underquoted definition warnings";
395
402
    open(F, "./buildconf 2>&1 |") or die;
396
403
    open(LOG, ">$buildlog") or die;
397
404
    while (<F>) {
486
493
    system("xcopy /s /q ..\\$CURLDIR .");
487
494
    system("buildconf.bat");
488
495
  }
489
 
  elsif (($^O eq 'linux') || ($targetos =~ /netware/)) {
490
 
    system("cp -afr ../$CURLDIR/* ."); 
491
 
    system("cp -af ../$CURLDIR/Makefile.dist Makefile"); 
 
496
  elsif ($targetos =~ /netware/) {
 
497
    system("cp -afr ../$CURLDIR/* .");
 
498
    system("cp -af ../$CURLDIR/Makefile.dist Makefile");
 
499
    system("$make -i -C lib -f Makefile.netware prebuild");
 
500
    system("$make -i -C src -f Makefile.netware prebuild");
 
501
  }
 
502
  elsif ($^O eq 'linux') {
 
503
    system("cp -afr ../$CURLDIR/* .");
 
504
    system("cp -af ../$CURLDIR/Makefile.dist Makefile");
 
505
    system("cp -af ../$CURLDIR/include/curl/curlbuild.h.dist ./include/curl/curlbuild.h");
492
506
    system("$make -i -C lib -f Makefile.$targetos prebuild");
493
507
    system("$make -i -C src -f Makefile.$targetos prebuild");
494
508
  }
495
509
}
496
510
 
 
511
if(-f "./include/curl/curlbuild.h") {
 
512
  logit "display include/curl/curlbuild.h";
 
513
  if(open(F, "<./include/curl/curlbuild.h")) {
 
514
    while(<F>) {
 
515
      my $ll = $_;
 
516
      print $ll if(($ll =~ /^ *# *define/) && ($ll !~ /__CURL_CURLBUILD_H/));
 
517
    }
 
518
    close(F);
 
519
  }
 
520
}
 
521
else {
 
522
  mydie "no curlbuild.h created/found";
 
523
}
 
524
 
497
525
logit "display lib/config$confsuffix.h";
498
526
open(F, "lib/config$confsuffix.h") or die "lib/config$confsuffix.h: $!";
499
527
while (<F>) {