$HOSTIP
$HOST6IP
$HTTPUNIXPATH
- $testnumcheck
$sshdid
$SSHSRVMD5
$SSHSRVSHA256
our $HOSTIP="127.0.0.1"; # address on which the test server listens
our $HOST6IP="[::1]"; # address on which the test server listens
our $HTTPUNIXPATH; # HTTP server Unix domain socket path
-our $testnumcheck; # test number, set in singletest sub.
our $sshdid; # for socks server, ssh daemon version id
our $SSHSRVMD5 = "[uninitialized]"; # MD5 of ssh server public key
our $SSHSRVSHA256 = "[uninitialized]"; # SHA256 of ssh server public key
init_serverpidfile_hash();
}
-#######################################################################
-# Call main's displaylogs
-# TODO: instead, make the caller call displaylogs() in case of error
-sub displaylogs {
- return main::displaylogs(@_);
-}
-
#######################################################################
# Load serverpidfile and serverportfile hashes with file names for all
# possible servers.
# it is NOT alive
logmsg "RUN: failed to start the $srvrname server\n";
stopserver($server, "$pid2");
- displaylogs($testnumcheck);
$doesntrun{$pidfile} = 1;
return (1, 0, 0, 0);
}
logmsg "RUN: $srvrname server failed verification\n";
# failed to talk to it properly. Kill the server and return failure
stopserver($server, "$httppid $pid2");
- displaylogs($testnumcheck);
$doesntrun{$pidfile} = 1;
return (1, 0, 0, 0);
}
if($httpspid <= 0 || !pidexists($httpspid)) {
# it is NOT alive
stopserver($server, "$pid2");
- displaylogs($testnumcheck);
$doesntrun{$pidfile} = 1;
$httpspid = $pid2 = 0;
next;
if($httptlspid <= 0 || !pidexists($httptlspid)) {
# it is NOT alive
stopserver($server, "$pid2");
- displaylogs($testnumcheck);
$doesntrun{$pidfile} = 1;
$httptlspid = $pid2 = 0;
next;
# it is NOT alive
logmsg "RUN: failed to start the $srvrname server\n";
stopserver($server, "$pid2");
- displaylogs($testnumcheck);
$doesntrun{$pidfile} = 1;
return (1, 0, 0);
}
logmsg "RUN: $srvrname server failed verification\n";
# failed to talk to it properly. Kill the server and return failure
stopserver($server, "$ftppid $pid2");
- displaylogs($testnumcheck);
$doesntrun{$pidfile} = 1;
return (1, 0, 0);
}
if($protospid <= 0 || !pidexists($protospid)) {
# it is NOT alive
stopserver($server, "$pid2");
- displaylogs($testnumcheck);
$doesntrun{$pidfile} = 1;
$protospid = $pid2 = 0;
next;
# it is NOT alive
logmsg "RUN: failed to start the $srvrname server\n";
stopserver($server, "$pid2");
- displaylogs($testnumcheck);
$doesntrun{$pidfile} = 1;
return (1, 0, 0, 0);
}
logmsg "RUN: $srvrname server failed verification\n";
# failed to talk to it properly. Kill the server and return failure
stopserver($server, "$tftppid $pid2");
- displaylogs($testnumcheck);
$doesntrun{$pidfile} = 1;
return (1, 0, 0, 0);
}
# it is NOT alive
logmsg "RUN: failed to start the $srvrname server\n";
stopserver($server, "$pid2");
- displaylogs($testnumcheck);
$doesntrun{$pidfile} = 1;
return (1, 0, 0, 0);
}
logmsg "RUN: $srvrname server failed verification\n";
# failed to talk to it properly. Kill the server and return failure
stopserver($server, "$rtsppid $pid2");
- displaylogs($testnumcheck);
$doesntrun{$pidfile} = 1;
return (1, 0, 0, 0);
}
if($dictpid <= 0 || !pidexists($dictpid)) {
# it is NOT alive
stopserver($server, "$pid2");
- displaylogs($testnumcheck);
$doesntrun{$pidfile} = 1;
$dictpid = $pid2 = 0;
next;
if($smbpid <= 0 || !pidexists($smbpid)) {
# it is NOT alive
stopserver($server, "$pid2");
- displaylogs($testnumcheck);
$doesntrun{$pidfile} = 1;
$smbpid = $pid2 = 0;
next;
if($ntelpid <= 0 || !pidexists($ntelpid)) {
# it is NOT alive
stopserver($server, "$pid2");
- displaylogs($testnumcheck);
$doesntrun{$pidfile} = 1;
$ntelpid = $pid2 = 0;
next;