Revert last change since it breaks running the test suite
when builddir is different from srcdir.
This commit is contained in:
parent
8f1829d1d2
commit
3daa54d636
@ -23,7 +23,7 @@ Compare curl --version with curl-config --protocols
|
|||||||
--version
|
--version
|
||||||
</command>
|
</command>
|
||||||
<postcheck>
|
<postcheck>
|
||||||
%SRCDIR/libtest/test1013.pl %SRCDIR/../curl-config log/stdout1013 protocols
|
%SRCDIR/libtest/test1013.pl ../curl-config log/stdout1013 protocols
|
||||||
</postcheck>
|
</postcheck>
|
||||||
</client>
|
</client>
|
||||||
|
|
||||||
|
@ -23,7 +23,7 @@ Compare curl --version with curl-config --features
|
|||||||
--version
|
--version
|
||||||
</command>
|
</command>
|
||||||
<postcheck>
|
<postcheck>
|
||||||
%SRCDIR/libtest/test1013.pl %SRCDIR/../curl-config log/stdout1014 features
|
%SRCDIR/libtest/test1013.pl ../curl-config log/stdout1014 features
|
||||||
</postcheck>
|
</postcheck>
|
||||||
</client>
|
</client>
|
||||||
|
|
||||||
|
@ -163,7 +163,7 @@ sub sysread_or_die {
|
|||||||
}
|
}
|
||||||
|
|
||||||
sub startsf {
|
sub startsf {
|
||||||
my $cmd="$srcdir/server/sockfilt --port $port --logfile log/sockctrl$ftpdnum$ext.log --pidfile .sockfilt$ftpdnum$ext.pid $ipv6";
|
my $cmd="./server/sockfilt --port $port --logfile log/sockctrl$ftpdnum$ext.log --pidfile .sockfilt$ftpdnum$ext.pid $ipv6";
|
||||||
$sfpid = open2(*SFREAD, *SFWRITE, $cmd);
|
$sfpid = open2(*SFREAD, *SFWRITE, $cmd);
|
||||||
|
|
||||||
print STDERR "$cmd\n" if($verbose);
|
print STDERR "$cmd\n" if($verbose);
|
||||||
@ -548,7 +548,7 @@ sub PASV_command {
|
|||||||
|
|
||||||
# We fire up a new sockfilt to do the data transfer for us.
|
# We fire up a new sockfilt to do the data transfer for us.
|
||||||
$slavepid = open2(\*DREAD, \*DWRITE,
|
$slavepid = open2(\*DREAD, \*DWRITE,
|
||||||
"$srcdir/server/sockfilt --port 0 --logfile log/sockdata$ftpdnum$ext.log --pidfile $pidf $ipv6");
|
"./server/sockfilt --port 0 --logfile log/sockdata$ftpdnum$ext.log --pidfile $pidf $ipv6");
|
||||||
|
|
||||||
print DWRITE "PING\n";
|
print DWRITE "PING\n";
|
||||||
my $pong;
|
my $pong;
|
||||||
@ -680,7 +680,7 @@ sub PORT_command {
|
|||||||
|
|
||||||
# We fire up a new sockfilt to do the data transfer for us.
|
# We fire up a new sockfilt to do the data transfer for us.
|
||||||
# FIX: make it use IPv6 if need be
|
# FIX: make it use IPv6 if need be
|
||||||
my $filtcmd="$srcdir/server/sockfilt --connect $port --addr $addr --logfile log/sockdata$ftpdnum$ext.log --pidfile .sockdata$ftpdnum$ext.pid $ipv6";
|
my $filtcmd="./server/sockfilt --connect $port --addr $addr --logfile log/sockdata$ftpdnum$ext.log --pidfile .sockdata$ftpdnum$ext.pid $ipv6";
|
||||||
$slavepid = open2(\*DREAD, \*DWRITE, $filtcmd);
|
$slavepid = open2(\*DREAD, \*DWRITE, $filtcmd);
|
||||||
|
|
||||||
print STDERR "$filtcmd\n" if($verbose);
|
print STDERR "$filtcmd\n" if($verbose);
|
||||||
|
@ -4,7 +4,7 @@ use strict;
|
|||||||
|
|
||||||
my $verbose=0; # set to 1 for debugging
|
my $verbose=0; # set to 1 for debugging
|
||||||
|
|
||||||
my $srcdir=".";
|
my $dir=".";
|
||||||
my $port = 8999; # just a default
|
my $port = 8999; # just a default
|
||||||
my $ipv6;
|
my $ipv6;
|
||||||
my $pid=".http.pid"; # name of the pidfile
|
my $pid=".http.pid"; # name of the pidfile
|
||||||
@ -14,7 +14,7 @@ do {
|
|||||||
$verbose=1;
|
$verbose=1;
|
||||||
}
|
}
|
||||||
elsif($ARGV[0] eq "-d") {
|
elsif($ARGV[0] eq "-d") {
|
||||||
$srcdir=$ARGV[1];
|
$dir=$ARGV[1];
|
||||||
shift @ARGV;
|
shift @ARGV;
|
||||||
}
|
}
|
||||||
elsif($ARGV[0] eq "-p") {
|
elsif($ARGV[0] eq "-p") {
|
||||||
@ -33,4 +33,4 @@ do {
|
|||||||
}
|
}
|
||||||
} while(shift @ARGV);
|
} while(shift @ARGV);
|
||||||
|
|
||||||
exec("$srcdir/server/sws --pidfile $pid$fork $ipv6$port $srcdir");
|
exec("server/sws --pidfile $pid$fork $ipv6$port $dir");
|
||||||
|
@ -86,11 +86,11 @@ my $SSHPORT; # SCP/SFTP
|
|||||||
my $SOCKSPORT; # SOCKS4/5 port
|
my $SOCKSPORT; # SOCKS4/5 port
|
||||||
|
|
||||||
my $srcdir = $ENV{'srcdir'} || '.';
|
my $srcdir = $ENV{'srcdir'} || '.';
|
||||||
my $CURL="$srcdir/../src/curl"; # what curl executable to run on the tests
|
my $CURL="../src/curl"; # what curl executable to run on the tests
|
||||||
my $DBGCURL=$CURL; #"$srcdir/../src/.libs/curl"; # alternative for debugging
|
my $DBGCURL=$CURL; #"../src/.libs/curl"; # alternative for debugging
|
||||||
my $LOGDIR="log";
|
my $LOGDIR="log";
|
||||||
my $TESTDIR="$srcdir/data";
|
my $TESTDIR="$srcdir/data";
|
||||||
my $LIBDIR="$srcdir/libtest";
|
my $LIBDIR="./libtest";
|
||||||
my $SERVERIN="$LOGDIR/server.input"; # what curl sent the server
|
my $SERVERIN="$LOGDIR/server.input"; # what curl sent the server
|
||||||
my $SERVER2IN="$LOGDIR/server2.input"; # what curl sent the second server
|
my $SERVER2IN="$LOGDIR/server2.input"; # what curl sent the second server
|
||||||
my $CURLLOG="$LOGDIR/curl.log"; # all command lines run
|
my $CURLLOG="$LOGDIR/curl.log"; # all command lines run
|
||||||
@ -1000,7 +1000,7 @@ sub runtftpserver {
|
|||||||
if($ipv6) {
|
if($ipv6) {
|
||||||
$flag .="--ipv6 ";
|
$flag .="--ipv6 ";
|
||||||
}
|
}
|
||||||
$cmd="$srcdir/server/tftpd --pidfile $pidfile $flag $port";
|
$cmd="./server/tftpd --pidfile $pidfile $flag $port";
|
||||||
|
|
||||||
unlink($pidfile);
|
unlink($pidfile);
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user