2004-03-25 13:16:42 +01:00
|
|
|
#!/usr/bin/env perl
|
2004-03-23 17:07:02 +01:00
|
|
|
#***************************************************************************
|
|
|
|
# _ _ ____ _
|
|
|
|
# Project ___| | | | _ \| |
|
|
|
|
# / __| | | | |_) | |
|
|
|
|
# | (__| |_| | _ <| |___
|
|
|
|
# \___|\___/|_| \_\_____|
|
|
|
|
#
|
|
|
|
# Copyright (C) 1998 - 2004, Daniel Stenberg, <daniel@haxx.se>, et al.
|
|
|
|
#
|
|
|
|
# This software is licensed as described in the file COPYING, which
|
|
|
|
# you should have received as part of this distribution. The terms
|
|
|
|
# are also available at http://curl.haxx.se/docs/copyright.html.
|
|
|
|
#
|
|
|
|
# You may opt to use, copy, modify, merge, publish, distribute and/or sell
|
|
|
|
# copies of the Software, and permit persons to whom the Software is
|
|
|
|
# furnished to do so, under the terms of the COPYING file.
|
|
|
|
#
|
|
|
|
# This software is distributed on an "AS IS" basis, WITHOUT WARRANTY OF ANY
|
|
|
|
# KIND, either express or implied.
|
|
|
|
#
|
|
|
|
# $Id$
|
|
|
|
###########################################################################
|
|
|
|
|
|
|
|
###########################
|
|
|
|
# What is This Script?
|
|
|
|
###########################
|
|
|
|
|
|
|
|
# testcurl.pl is the master script to use for automatic testing of CVS-curl.
|
|
|
|
# This is written for the purpose of being run from a crontab job or similar
|
|
|
|
# at a regular interval. The output will be suitable to be mailed automaticly
|
|
|
|
# to "curl-autocompile@haxx.se" to be dealt with automatically. The most
|
|
|
|
# current build status (with a resonable backlog) will be published on the
|
|
|
|
# curl site, at http://curl.haxx.se/auto/
|
|
|
|
|
|
|
|
# USAGE:
|
2004-06-29 15:20:37 +02:00
|
|
|
# testcurl.pl [--target=your_os] [curl-daily-name] > output
|
2004-03-23 17:07:02 +01:00
|
|
|
|
|
|
|
# Updated:
|
2004-06-22 22:02:49 +02:00
|
|
|
# v1.7 22-Jun-04 - added --target option for other platform targets.
|
|
|
|
# v1.2 8-Mar-04 - rewritten in perl
|
|
|
|
# v1.1 6-Nov-03 - to take an optional parameter, the name of a daily-build
|
|
|
|
# directory. If present, build from that directory, otherwise
|
|
|
|
# perform a normal CVS build.
|
2004-03-23 17:07:02 +01:00
|
|
|
|
|
|
|
use strict;
|
|
|
|
|
|
|
|
use Cwd;
|
|
|
|
|
2004-03-25 13:16:42 +01:00
|
|
|
# Turn on warnings (equivalent to -w, which can't be used with /usr/bin/env)
|
|
|
|
BEGIN { $^W = 1; }
|
|
|
|
|
2004-06-22 22:02:49 +02:00
|
|
|
use vars qw($version $fixed $infixed $CURLDIR $CVS $pwd $build $buildlog
|
2004-07-05 23:32:18 +02:00
|
|
|
$buildlogname $gnulikebuild $targetos $confsuffix $binext $libext);
|
2004-07-06 00:35:00 +02:00
|
|
|
use vars qw($name $email $desc $confopts $setupfile $mktarball);
|
2004-03-23 17:07:02 +01:00
|
|
|
|
|
|
|
# version of this script
|
|
|
|
$version='$Revision$';
|
|
|
|
$fixed=0;
|
|
|
|
|
2004-06-22 22:02:49 +02:00
|
|
|
# Determine if we're running from CVS or a canned copy of curl,
|
2004-06-29 15:20:37 +02:00
|
|
|
# or if we got a specific target option or setup file option.
|
2004-06-22 22:02:49 +02:00
|
|
|
$CURLDIR="curl";
|
|
|
|
$CVS=1;
|
2004-06-29 15:20:37 +02:00
|
|
|
$targetos = '';
|
|
|
|
$setupfile = 'setup';
|
2004-07-06 00:35:00 +02:00
|
|
|
$mktarball = '';
|
2004-06-29 15:20:37 +02:00
|
|
|
while ($ARGV[0]) {
|
2004-06-22 22:02:49 +02:00
|
|
|
if ($ARGV[0] =~ /--target=/) {
|
2004-06-29 15:20:37 +02:00
|
|
|
$targetos = (split(/=/, shift @ARGV))[1];
|
|
|
|
} elsif ($ARGV[0] =~ /--setup=/) {
|
|
|
|
$setupfile = (split(/=/, shift @ARGV))[1];
|
2004-07-06 00:35:00 +02:00
|
|
|
} elsif ($ARGV[0] =~ /--mktarball=/) {
|
|
|
|
$mktarball = (split(/=/, shift @ARGV))[1];
|
2004-06-22 22:02:49 +02:00
|
|
|
} else {
|
2004-06-29 15:20:37 +02:00
|
|
|
$CURLDIR=shift @ARGV;
|
2004-06-22 22:02:49 +02:00
|
|
|
$CVS=0;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
# Do the platform-specific stuff here
|
|
|
|
$gnulikebuild = 1;
|
|
|
|
$confsuffix = '';
|
|
|
|
$binext = '';
|
2004-07-25 08:03:10 +02:00
|
|
|
$libext = '.la'; # .la since both libcurl and libcares are made with libtool
|
2004-06-29 15:20:37 +02:00
|
|
|
if ($^O eq 'MSWin32' || $targetos ne '') {
|
2004-06-22 22:02:49 +02:00
|
|
|
$gnulikebuild = 0;
|
2004-06-29 15:20:37 +02:00
|
|
|
if ($targetos eq '') {
|
2004-06-22 22:02:49 +02:00
|
|
|
# If no target defined on Win32 lets assume vc
|
|
|
|
$targetos = 'vc';
|
|
|
|
}
|
2004-07-15 04:34:58 +02:00
|
|
|
if ($targetos =~ /vc/ || $targetos =~ /mingw32/ || $targetos =~ /borland/) {
|
2004-06-22 22:02:49 +02:00
|
|
|
$confsuffix = '-win32';
|
|
|
|
$binext = '.exe';
|
2004-07-15 04:34:58 +02:00
|
|
|
$libext = '.lib' if ($targetos =~ /vc/ || $targetos =~ /borland/);
|
2004-07-29 09:37:36 +02:00
|
|
|
$libext = '.a' if ($targetos =~ /mingw32/);
|
2004-06-22 22:02:49 +02:00
|
|
|
} elsif ($targetos =~ /netware/) {
|
|
|
|
$binext = '.nlm';
|
2004-07-05 23:32:18 +02:00
|
|
|
$libext = '.lib';
|
2004-06-22 22:02:49 +02:00
|
|
|
}
|
2004-03-23 17:07:02 +01:00
|
|
|
}
|
|
|
|
|
|
|
|
$ENV{LANG}="C";
|
|
|
|
|
|
|
|
sub rmtree($) {
|
|
|
|
my $target = $_[0];
|
|
|
|
if ($^O eq 'MSWin32') {
|
|
|
|
foreach (glob($target)) {
|
|
|
|
s:/:\\:g;
|
|
|
|
system("rd /s /q $_");
|
|
|
|
}
|
|
|
|
} else {
|
|
|
|
system("rm -rf $target");
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
sub grepfile($$) {
|
|
|
|
my ($target, $fn) = @_;
|
|
|
|
open(F, $fn) or die;
|
|
|
|
while (<F>) {
|
|
|
|
if (/$target/) {
|
|
|
|
close(F);
|
|
|
|
return 1;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
close(F);
|
|
|
|
return 0;
|
|
|
|
}
|
|
|
|
|
|
|
|
sub logit($) {
|
|
|
|
my $text=$_[0];
|
|
|
|
if ($text) {
|
|
|
|
print "testcurl: $text\n";
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
sub mydie($){
|
|
|
|
my $text=$_[0];
|
|
|
|
logit "$text";
|
|
|
|
chdir $pwd; # cd back to the original root dir
|
|
|
|
|
|
|
|
if ($pwd && $build) {
|
|
|
|
# we have a build directory name, remove the dir
|
|
|
|
logit "removing the $build dir";
|
|
|
|
rmtree "$pwd/$build";
|
|
|
|
}
|
|
|
|
if (-r $buildlog) {
|
|
|
|
# we have a build log output file left, remove it
|
|
|
|
logit "removing the $buildlogname file";
|
|
|
|
unlink "$buildlog";
|
|
|
|
}
|
|
|
|
logit "ENDING HERE"; # last line logged!
|
|
|
|
exit 1;
|
|
|
|
}
|
|
|
|
|
2004-06-29 15:20:37 +02:00
|
|
|
if (open(F, "$setupfile")) {
|
2004-03-23 17:07:02 +01:00
|
|
|
while (<F>) {
|
|
|
|
if (/(\w+)=(.*)/) {
|
|
|
|
eval "\$$1=$2;";
|
|
|
|
}
|
|
|
|
}
|
|
|
|
close(F);
|
|
|
|
$infixed=$fixed;
|
|
|
|
} else {
|
2004-07-05 23:32:18 +02:00
|
|
|
$infixed=0; # so that "additional args to configure" works properly first time...
|
2004-03-23 17:07:02 +01:00
|
|
|
}
|
|
|
|
|
|
|
|
if (!$name) {
|
|
|
|
print "please enter your name\n";
|
|
|
|
$name = <>;
|
|
|
|
chomp $name;
|
|
|
|
$fixed=1;
|
|
|
|
}
|
|
|
|
|
|
|
|
if (!$email) {
|
|
|
|
print "please enter your contact email address\n";
|
|
|
|
$email = <>;
|
|
|
|
chomp $email;
|
|
|
|
$fixed=2;
|
|
|
|
}
|
|
|
|
|
|
|
|
if (!$desc) {
|
|
|
|
print "please enter a one line system description\n";
|
|
|
|
$desc = <>;
|
|
|
|
chomp $desc;
|
|
|
|
$fixed=3;
|
|
|
|
}
|
|
|
|
|
|
|
|
if (!$confopts) {
|
|
|
|
if ($infixed < 4) {
|
|
|
|
print "please enter your additional arguments to configure\n";
|
|
|
|
print "examples: --with-ssl --enable-debug --enable-ipv6 --with-krb4\n";
|
|
|
|
$confopts = <>;
|
|
|
|
chomp $confopts;
|
|
|
|
$fixed=4;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
|
2005-03-11 01:20:30 +01:00
|
|
|
if ($fixed < 4) {
|
2004-06-29 15:20:37 +02:00
|
|
|
open(F, ">$setupfile") or die;
|
2004-03-23 17:07:02 +01:00
|
|
|
print F "name='$name'\n";
|
|
|
|
print F "email='$email'\n";
|
|
|
|
print F "desc='$desc'\n";
|
|
|
|
print F "confopts='$confopts'\n";
|
|
|
|
print F "fixed='$fixed'\n";
|
2004-06-29 15:20:37 +02:00
|
|
|
close(F);
|
2004-03-23 17:07:02 +01:00
|
|
|
}
|
|
|
|
|
|
|
|
logit "STARTING HERE"; # first line logged
|
|
|
|
logit "NAME = $name";
|
|
|
|
logit "EMAIL = $email";
|
|
|
|
logit "DESC = $desc";
|
|
|
|
logit "CONFOPTS = $confopts";
|
|
|
|
logit "CFLAGS = ".($ENV{CFLAGS} ? $ENV{CFLAGS} : "");
|
|
|
|
logit "CC = ".($ENV{CC} ? $ENV{CC} : "");
|
2004-06-22 22:02:49 +02:00
|
|
|
logit "target = ".($targetos ? $targetos : "");
|
2004-03-23 17:07:02 +01:00
|
|
|
logit "version = $version";
|
|
|
|
logit "date = ".(scalar gmtime)." UTC";
|
|
|
|
|
|
|
|
# Make $pwd to become the path without newline. We'll use that in order to cut
|
|
|
|
# off that path from all possible logs and error messages etc.
|
|
|
|
$pwd = cwd();
|
|
|
|
|
|
|
|
if (-d $CURLDIR) {
|
|
|
|
if ($CVS && -d "$CURLDIR/CVS") {
|
2004-06-29 15:20:37 +02:00
|
|
|
logit "$CURLDIR is verified to be a fine source dir";
|
2004-03-23 17:07:02 +01:00
|
|
|
# remove the generated sources to force them to be re-generated each
|
|
|
|
# time we run this test
|
|
|
|
unlink "$CURLDIR/src/hugehelp.c";
|
2004-03-25 12:39:29 +01:00
|
|
|
} elsif (!$CVS && -f "$CURLDIR/tests/testcurl.pl") {
|
2004-06-29 15:20:37 +02:00
|
|
|
logit "$CURLDIR is verified to be a fine daily source dir"
|
2004-03-23 17:07:02 +01:00
|
|
|
} else {
|
2004-06-29 15:20:37 +02:00
|
|
|
mydie "$CURLDIR is not a daily source dir or checked out from CVS!"
|
2004-03-23 17:07:02 +01:00
|
|
|
}
|
|
|
|
}
|
|
|
|
$build="build-$$";
|
|
|
|
$buildlogname="buildlog-$$";
|
|
|
|
$buildlog="$pwd/$buildlogname";
|
|
|
|
|
|
|
|
# remove any previous left-overs
|
|
|
|
rmtree "build-*";
|
|
|
|
rmtree "buildlog-*";
|
|
|
|
|
|
|
|
# this is to remove old build logs that ended up in the wrong dir
|
|
|
|
foreach (glob("$CURLDIR/buildlog-*")) { unlink $_; }
|
|
|
|
|
|
|
|
# create a dir to build in
|
2004-03-24 22:28:31 +01:00
|
|
|
mkdir $build, 0777;
|
2004-03-23 17:07:02 +01:00
|
|
|
|
|
|
|
if (-d $build) {
|
|
|
|
logit "build dir $build was created fine";
|
|
|
|
} else {
|
|
|
|
mydie "failed to create dir $build";
|
|
|
|
}
|
|
|
|
|
|
|
|
# get in the curl source tree root
|
|
|
|
chdir $CURLDIR;
|
|
|
|
|
|
|
|
# Do the CVS thing, or not...
|
|
|
|
if ($CVS) {
|
|
|
|
|
|
|
|
# this is a temporary fix to make things work again, remove later
|
|
|
|
logit "remove ares/aclocal.m4";
|
|
|
|
unlink "ares/aclocal.m4";
|
|
|
|
|
|
|
|
logit "update from CVS";
|
|
|
|
my $cvsstat;
|
|
|
|
|
|
|
|
sub cvsup() {
|
|
|
|
# update quietly to the latest CVS
|
|
|
|
logit "run cvs up";
|
|
|
|
system("cvs -Q up -dP 2>&1");
|
|
|
|
|
|
|
|
$cvsstat=$?;
|
|
|
|
|
|
|
|
# return !RETURNVALUE so that errors return 0 while goodness
|
|
|
|
# returns 1
|
|
|
|
return !$cvsstat;
|
|
|
|
}
|
|
|
|
|
|
|
|
my $att=0;
|
|
|
|
while (!cvsup()) {
|
|
|
|
$att++;
|
|
|
|
logit "failed CVS update attempt number $att.";
|
|
|
|
if ($att > 10) {
|
|
|
|
$cvsstat=111;
|
|
|
|
last; # get out of the loop
|
|
|
|
}
|
|
|
|
sleep 5;
|
|
|
|
}
|
|
|
|
|
|
|
|
if ($cvsstat != 0) {
|
|
|
|
mydie "failed to update from CVS ($cvsstat), exiting";
|
|
|
|
}
|
|
|
|
|
|
|
|
# remove possible left-overs from the past
|
|
|
|
unlink "configure";
|
|
|
|
unlink "autom4te.cache";
|
|
|
|
|
|
|
|
if ($gnulikebuild) {
|
|
|
|
# generate the build files
|
|
|
|
logit "invoke buildconf, but filter off the silly aclocal warnings";
|
|
|
|
open(F, "./buildconf 2>&1 |") or die;
|
|
|
|
open(LOG, ">$buildlog") or die;
|
|
|
|
while (<F>) {
|
|
|
|
next if /warning: underquoted definition of/;
|
|
|
|
print;
|
|
|
|
print LOG;
|
|
|
|
}
|
|
|
|
close(F);
|
|
|
|
close(LOG);
|
|
|
|
|
|
|
|
if (grepfile("^buildconf: OK", $buildlog)) {
|
2004-07-05 23:32:18 +02:00
|
|
|
logit "buildconf was successful";
|
2004-03-23 17:07:02 +01:00
|
|
|
} else {
|
2004-07-05 23:32:18 +02:00
|
|
|
mydie "buildconf was NOT successful";
|
2004-03-23 17:07:02 +01:00
|
|
|
}
|
2004-07-24 23:24:03 +02:00
|
|
|
|
|
|
|
if($confopts =~ /--enable-ares/) {
|
|
|
|
logit "run buildconf for ares";
|
|
|
|
chdir "ares";
|
|
|
|
open(F, "./buildconf 2>&1 |") or die;
|
|
|
|
open(LOG, ">$buildlog") or die;
|
|
|
|
while (<F>) {
|
|
|
|
next if /warning: underquoted definition of/;
|
|
|
|
print;
|
|
|
|
print LOG;
|
|
|
|
}
|
|
|
|
close(F);
|
|
|
|
close(LOG);
|
|
|
|
chdir "..";
|
|
|
|
}
|
|
|
|
|
2004-03-23 17:07:02 +01:00
|
|
|
} else {
|
2004-07-24 23:24:03 +02:00
|
|
|
logit "buildconf was successful (dummy message)";
|
2004-03-23 17:07:02 +01:00
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
if ($gnulikebuild) {
|
|
|
|
if (-f "configure") {
|
|
|
|
logit "configure created";
|
|
|
|
} else {
|
|
|
|
mydie "no configure created";
|
|
|
|
}
|
|
|
|
} else {
|
|
|
|
logit "configure created (dummy message)"; # dummy message to feign success
|
|
|
|
}
|
|
|
|
|
|
|
|
# change to build dir
|
2004-03-24 11:52:21 +01:00
|
|
|
chdir "$pwd/$build";
|
2004-03-23 17:07:02 +01:00
|
|
|
|
|
|
|
if ($gnulikebuild) {
|
|
|
|
# run configure script
|
2004-10-10 09:51:25 +02:00
|
|
|
print `../$CURLDIR/configure $confopts 2>&1`;
|
2004-03-23 17:07:02 +01:00
|
|
|
|
|
|
|
if (-f "lib/Makefile") {
|
|
|
|
logit "configure seems to have finished fine";
|
|
|
|
} else {
|
|
|
|
mydie "configure didn't work";
|
|
|
|
}
|
|
|
|
} else {
|
2004-07-06 04:37:52 +02:00
|
|
|
if (($^O eq 'MSWin32') && ($targetos !~ /netware/)) {
|
2004-07-05 23:32:18 +02:00
|
|
|
system("xcopy /s /q ..\\$CURLDIR .");
|
|
|
|
system("buildconf.bat");
|
2004-07-06 04:37:52 +02:00
|
|
|
} elsif (($^O eq 'linux') || ($targetos =~ /netware/)) {
|
|
|
|
system("cp -afr ../$CURLDIR/* .");
|
2004-07-05 23:32:18 +02:00
|
|
|
system("cp -af ../$CURLDIR/Makefile.dist Makefile");
|
|
|
|
system("make -i -C lib -f Makefile.$targetos prebuild");
|
|
|
|
system("make -i -C src -f Makefile.$targetos prebuild");
|
2004-06-22 22:02:49 +02:00
|
|
|
}
|
2004-03-23 17:07:02 +01:00
|
|
|
}
|
|
|
|
|
2004-06-22 22:02:49 +02:00
|
|
|
logit "display lib/config$confsuffix.h";
|
2004-07-06 01:35:49 +02:00
|
|
|
open(F, "lib/config$confsuffix.h") or die "lib/config$confsuffix.h: $!";
|
2004-03-23 17:07:02 +01:00
|
|
|
while (<F>) {
|
|
|
|
print if /^ *#/;
|
|
|
|
}
|
|
|
|
close(F);
|
|
|
|
|
2004-06-22 22:02:49 +02:00
|
|
|
logit "display src/config$confsuffix.h";
|
2004-07-06 01:35:49 +02:00
|
|
|
open(F, "src/config$confsuffix.h") or die "src/config$confsuffix.h: $!";
|
2004-03-23 17:07:02 +01:00
|
|
|
while (<F>) {
|
|
|
|
print if /^ *#/;
|
|
|
|
}
|
|
|
|
close(F);
|
|
|
|
|
2004-06-22 22:02:49 +02:00
|
|
|
if (grepfile("define USE_ARES", "lib/config$confsuffix.h")) {
|
2004-03-23 17:07:02 +01:00
|
|
|
logit "setup to build ares";
|
|
|
|
|
|
|
|
logit "build ares";
|
|
|
|
chdir "ares";
|
2004-07-24 23:24:03 +02:00
|
|
|
|
2004-07-05 23:32:18 +02:00
|
|
|
if ($targetos ne '') {
|
2004-07-24 23:24:03 +02:00
|
|
|
open(F, "make -f Makefile.$targetos 2>&1 |") or die;
|
2004-07-05 23:32:18 +02:00
|
|
|
} else {
|
2004-07-24 23:24:03 +02:00
|
|
|
open(F, "make 2>&1 |") or die;
|
2004-07-05 23:32:18 +02:00
|
|
|
}
|
2004-03-23 17:07:02 +01:00
|
|
|
while (<F>) {
|
|
|
|
s/$pwd//g;
|
|
|
|
print;
|
|
|
|
}
|
|
|
|
close(F);
|
|
|
|
|
2004-07-05 23:32:18 +02:00
|
|
|
if (-f "libcares$libext") {
|
2004-07-06 04:37:52 +02:00
|
|
|
logit "ares is now built successfully (libcares$libext)";
|
2004-03-23 17:07:02 +01:00
|
|
|
} else {
|
2004-07-06 04:37:52 +02:00
|
|
|
logit "ares build failed (libares$libext)";
|
2004-03-23 17:07:02 +01:00
|
|
|
}
|
|
|
|
|
|
|
|
# cd back to the curl build dir
|
2004-03-24 11:52:21 +01:00
|
|
|
chdir "$pwd/$build";
|
2004-03-23 17:07:02 +01:00
|
|
|
}
|
|
|
|
|
|
|
|
logit "run make";
|
|
|
|
if ($gnulikebuild) {
|
|
|
|
open(F, "make -i 2>&1 |") or die;
|
|
|
|
while (<F>) {
|
|
|
|
s/$pwd//g;
|
|
|
|
print;
|
|
|
|
}
|
|
|
|
close(F);
|
|
|
|
} else {
|
2004-06-22 22:02:49 +02:00
|
|
|
if ($^O eq 'MSWin32') {
|
|
|
|
if ($targetos =~ /vc/) {
|
|
|
|
open(F, "nmake -i $targetos|") or die;
|
|
|
|
} else {
|
|
|
|
open(F, "make -i $targetos |") or die;
|
|
|
|
}
|
|
|
|
} else {
|
|
|
|
open(F, "make -i $targetos 2>&1 |") or die;
|
|
|
|
}
|
2004-03-23 17:07:02 +01:00
|
|
|
while (<F>) {
|
|
|
|
s/$pwd//g;
|
|
|
|
print;
|
|
|
|
}
|
|
|
|
close(F);
|
|
|
|
}
|
|
|
|
|
2004-07-06 04:37:52 +02:00
|
|
|
if (-f "lib/libcurl$libext") {
|
|
|
|
logit "lib/libcurl was created fine (libcurl$libext)";
|
|
|
|
} else {
|
|
|
|
logit "lib/libcurl was not created (libcurl$libext)";
|
|
|
|
}
|
|
|
|
|
2004-06-22 22:02:49 +02:00
|
|
|
if (-f "src/curl$binext") {
|
|
|
|
logit "src/curl was created fine (curl$binext)";
|
2004-03-23 17:07:02 +01:00
|
|
|
} else {
|
2004-06-22 22:02:49 +02:00
|
|
|
mydie "src/curl was not created (curl$binext)";
|
2004-03-23 17:07:02 +01:00
|
|
|
}
|
|
|
|
|
2004-06-29 15:20:37 +02:00
|
|
|
if ($targetos ne '' && $targetos =~ /netware/) {
|
2004-07-06 00:35:00 +02:00
|
|
|
if (-f '../../curlver') {
|
|
|
|
system('../../curlver');
|
|
|
|
}
|
2004-06-22 22:02:49 +02:00
|
|
|
} else {
|
2004-07-06 01:07:59 +02:00
|
|
|
logit "display curl$binext --version output";
|
|
|
|
system("./src/curl$binext --version");
|
2004-06-22 22:02:49 +02:00
|
|
|
}
|
2004-03-23 17:07:02 +01:00
|
|
|
|
|
|
|
if ($gnulikebuild) {
|
|
|
|
logit "run make test-full";
|
|
|
|
open(F, "make test-full 2>&1 |") or die;
|
|
|
|
open(LOG, ">$buildlog") or die;
|
|
|
|
while (<F>) {
|
|
|
|
s/$pwd//g;
|
|
|
|
print;
|
|
|
|
print LOG;
|
|
|
|
}
|
|
|
|
close(F);
|
|
|
|
close(LOG);
|
|
|
|
|
|
|
|
if (grepfile("^TEST", $buildlog)) {
|
|
|
|
logit "tests were run";
|
|
|
|
} else {
|
|
|
|
mydie "test suite failure";
|
|
|
|
}
|
|
|
|
|
|
|
|
if (grepfile("^TESTFAIL:", $buildlog)) {
|
|
|
|
logit "the tests were not successful";
|
|
|
|
} else {
|
|
|
|
logit "the tests were successful!";
|
|
|
|
}
|
|
|
|
} else {
|
|
|
|
print "TESTDONE: 1 tests out of 0 (dummy message)\n"; # dummy message to feign success
|
|
|
|
}
|
|
|
|
|
2004-07-06 00:35:00 +02:00
|
|
|
# create a tarball if we got that option.
|
2004-07-06 01:07:59 +02:00
|
|
|
if (($mktarball ne '') && (-f $mktarball)) {
|
2004-07-06 00:35:00 +02:00
|
|
|
system($mktarball);
|
2004-07-05 23:41:28 +02:00
|
|
|
}
|
|
|
|
|
2004-03-23 17:07:02 +01:00
|
|
|
# mydie to cleanup
|
|
|
|
mydie "ending nicely";
|