~ubuntu-branches/ubuntu/saucy/curl/saucy-201307251546

« back to all changes in this revision

Viewing changes to tests/testcurl.pl

  • Committer: Bazaar Package Importer
  • Author(s): Ramakrishnan Muthukrishnan
  • Date: 2010-10-18 11:13:17 UTC
  • mto: (3.6.1 experimental) (1.3.1)
  • mto: This revision was merged to the branch mainline in revision 44.
  • Revision ID: james.westby@ubuntu.com-20101018111317-9rkas34ecwtq0upn
Tags: upstream-7.21.2
ImportĀ upstreamĀ versionĀ 7.21.2

Show diffs side-by-side

added added

removed removed

Lines of Context:
64
64
#BEGIN { $^W = 1; }
65
65
 
66
66
use vars qw($version $fixed $infixed $CURLDIR $git $pwd $build $buildlog
67
 
            $buildlogname $configurebuild $targetos $confsuffix $binext
 
67
            $buildlogname $configurebuild $targetos $confheader $binext
68
68
            $libext);
69
69
 
70
70
use vars qw($name $email $desc $confopts $runtestopts $setupfile $mktarball
72
72
            $timestamp);
73
73
 
74
74
# version of this script
75
 
$version='2010-10-10';
 
75
$version='2010-08-20';
76
76
$fixed=0;
77
77
 
78
78
# Determine if we're running from git or a canned copy of curl,
132
132
 
133
133
# Do the platform-specific stuff here
134
134
$configurebuild = 1;
135
 
$confsuffix = '';
 
135
$confheader = 'curl_config.h';
136
136
$binext = '';
137
137
$libext = '.la'; # .la since both libcurl and libcares are made with libtool
138
138
if ($^O eq 'MSWin32' || $targetos) {
168
168
 
169
169
  # Set these things only when building ON Windows and for Win32 platform.
170
170
  # FOR Windows since we might be cross-compiling on another system. Non-
171
 
  # Windows builds still default to configure-style builds with no confsuffix.
 
171
  # Windows builds still default to configure-style builds with curl_config.h.
172
172
 
173
173
  $configurebuild = 0;
174
 
  $confsuffix = '-win32';
 
174
  $confheader = 'config-win32.h';
175
175
}
176
176
 
177
177
$ENV{LC_ALL}="C" if (($ENV{LC_ALL}) && ($ENV{LC_ALL} !~ /^C$/));
567
567
  mydie "no curlbuild.h created/found";
568
568
}
569
569
 
570
 
logit_spaced "display lib/curl_config$confsuffix.h";
571
 
open(F, "lib/curl_config$confsuffix.h") or die "lib/curl_config$confsuffix.h: $!";
 
570
logit_spaced "display lib/$confheader";
 
571
open(F, "lib/$confheader") or die "lib/$confheader: $!";
572
572
while (<F>) {
573
573
  print if /^ *#/;
574
574
}
575
575
close(F);
576
576
 
577
 
if (grepfile("^#define USE_ARES", "lib/curl_config$confsuffix.h")) {
 
577
if (grepfile("^#define USE_ARES", "lib/$confheader")) {
578
578
  print "\n";
579
579
  logit "setup to build ares";
580
580
 
603
603
    mydie "no ares_build.h created/found";
604
604
  }
605
605
 
606
 
  logit_spaced "display ares/ares_config$confsuffix.h";
607
 
  if(open(F, "ares/ares_config$confsuffix.h")) {
 
606
  $confheader =~ s/curl/ares/;
 
607
  logit_spaced "display ares/$confheader";
 
608
  if(open(F, "ares/$confheader")) {
608
609
      while (<F>) {
609
610
          print if /^ *#/;
610
611
      }