Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
T
TLMSP curl
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Package registry
Container Registry
Model registry
Operate
Environments
Terraform modules
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
CYBER - Cyber Security
TS 103 523 MSP
TLMSP
TLMSP curl
Commits
16ddb09c
Commit
16ddb09c
authored
22 years ago
by
Daniel Stenberg
Browse files
Options
Downloads
Patches
Plain Diff
support the new <killserver> tag
parent
d37031f1
No related branches found
Branches containing commit
No related tags found
Tags containing commit
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
tests/runtests.pl
+20
-4
20 additions, 4 deletions
tests/runtests.pl
with
20 additions
and
4 deletions
tests/runtests.pl
+
20
−
4
View file @
16ddb09c
...
...
@@ -83,6 +83,8 @@ my $listonly; # only list the tests
my
$pwd
;
# current working directory
my
%run
;
# running server
chomp
(
$pwd
=
`
pwd
`);
# enable memory debugging if curl is compiled with it
...
...
@@ -202,7 +204,7 @@ sub runhttpserver {
# verify that our server is up and running:
my
$data
=
`
$CURL
--silent -i
$HOSTIP
:
$HOSTPORT
/verifiedserver 2>/dev/null
`;
if
(
$data
!~
/WE ROOLZ/
)
{
if
(
$data
!~
/WE ROOLZ
: (\d+)
/
)
{
sleep
(
1
);
next
;
}
...
...
@@ -308,7 +310,10 @@ sub runftpserver {
# verify that our server is up and running:
my
$data
=
`
$CURL
--silent -i ftp://
$HOSTIP
:
$FTPPORT
/verifiedserver 2>/dev/null
`;
if
(
$data
!~
/WE ROOLZ/
)
{
if
(
$data
!~
/WE ROOLZ: (\d+)/
)
{
if
(
$verbose
)
{
print
STDERR
"
RUN: Retrying FTP server existance in 1 sec
\n
";
}
sleep
(
1
);
next
;
}
...
...
@@ -839,6 +844,19 @@ sub singletest {
unlink
(
$FTPDCMD
);
# remove the instructions for this test
my
@what
=
getpart
("
client
",
"
killserver
");
for
(
@what
)
{
my
$serv
=
$_
;
chomp
$serv
;
if
(
$run
{
$serv
})
{
stopserver
(
$run
{
$serv
});
# the pid file is in the hash table
$run
{
$serv
}
=
"";
# clear it
}
else
{
print
STDERR
"
RUN: The
$serv
server is not running
\n
";
}
}
if
(
$memory_debug
)
{
if
(
!
-
f
$memdump
)
{
print
"
\n
** ALERT! memory debuggin without any output file?
\n
";
...
...
@@ -873,8 +891,6 @@ sub singletest {
return
0
;
}
my
%run
;
##############################################################################
# This function makes sure the right set of server is running for the
# specified test case. This is a useful design when we run single tests as not
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment