mirror of
https://github.com/curl/curl.git
synced 2026-08-05 21:46:18 +03:00
tests: move server config files under the pid dir
These files are generated by the test servers and must therefore be found in the log directory to make them available to only those servers once multiple test runners are executing in parallel. They must also not be deleted with the log files, so they are stored in the pidfile directory. Ref: #10818 Closes #10875
This commit is contained in:
parent
1cffced9c5
commit
70d2fca2f6
56 changed files with 158 additions and 125 deletions
|
|
@ -37,6 +37,7 @@ BEGIN {
|
|||
|
||||
use Cwd;
|
||||
use Cwd 'abs_path';
|
||||
use File::Basename;
|
||||
|
||||
use serverhelp qw(
|
||||
server_pidfilename
|
||||
|
|
@ -78,6 +79,7 @@ my $certfile; # certificate chain PEM file
|
|||
my $path = getcwd();
|
||||
my $srcdir = $path;
|
||||
my $logdir = $path .'/log';
|
||||
my $piddir;
|
||||
|
||||
#***************************************************************************
|
||||
# Signal handler to remove our stunnel 4.00 and newer configuration file.
|
||||
|
|
@ -183,14 +185,20 @@ while(@ARGV) {
|
|||
#***************************************************************************
|
||||
# Initialize command line option dependent variables
|
||||
#
|
||||
if(!$pidfile) {
|
||||
$pidfile = server_pidfilename($path, $proto, $ipvnum, $idnum);
|
||||
if($pidfile) {
|
||||
# Use our pidfile directory to store the conf files
|
||||
$piddir = dirname($pidfile);
|
||||
}
|
||||
else {
|
||||
# Use the current directory to store the conf files
|
||||
$piddir = $path;
|
||||
$pidfile = server_pidfilename($piddir, $proto, $ipvnum, $idnum);
|
||||
}
|
||||
if(!$logfile) {
|
||||
$logfile = server_logfilename($logdir, $proto, $ipvnum, $idnum);
|
||||
}
|
||||
|
||||
$conffile = "$logdir/${proto}_stunnel.conf";
|
||||
$conffile = "$piddir/${proto}_stunnel.conf";
|
||||
|
||||
$capath = abs_path($path);
|
||||
$certfile = "$srcdir/". ($stuncert?"certs/$stuncert":"stunnel.pem");
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue