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
d5e6404b
Commit
d5e6404b
authored
24 years ago
by
Daniel Stenberg
Browse files
Options
Downloads
Patches
Plain Diff
uses the new httpd server, runs the tests much faster
parent
bc84fe1c
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.sh
+40
-11
40 additions, 11 deletions
tests/runtests.sh
with
40 additions
and
11 deletions
tests/runtests.sh
+
40
−
11
View file @
d5e6404b
...
...
@@ -17,6 +17,39 @@ NC=nc
# simply run a particular one:
TESTCASES
=
" 1 2 3 4"
stopserver
()
{
PIDFILE
=
"
$LOGDIR
/server.pid"
# check for pidfile
if
[
-f
$PIDFILE
]
;
then
PID
=
`
cat
$PIDFILE
`
kill
-9
$PID
fi
}
runserver
()
{
PIDFILE
=
"
$LOGDIR
/server.pid"
# check for pidfile
if
[
-f
$PIDFILE
]
;
then
PID
=
`
cat
$PIDFILE
`
if
[
"x
$PID
"
!=
"x"
]
&&
kill
-0
$PID
2>/dev/null
;
then
STATUS
=
"httpd (pid
$PID
) running"
RUNNING
=
1
else
STATUS
=
"httpd (pid
$PID
?) not running"
RUNNING
=
0
fi
else
STATUS
=
"httpd (no pid file) not running"
RUNNING
=
0
fi
if
[
$RUNNING
!=
"1"
]
;
then
./httpserver.pl
$HOSTPORT
&
sleep
1
# give it a little time to start
fi
}
compare
()
{
# filter off the $4 pattern before compare!
...
...
@@ -55,10 +88,6 @@ singletest ()
echo
"test
$NUMBER
... [
$DESC
]"
./runserv.pl
$HOSTIP
$HOSTPORT
&
sleep
1
# get the command line options to use
cmd
=
`
sed
-e
"s/%HOSTIP/
$HOSTIP
/g"
-e
"s/%HOSTPORT/
$HOSTPORT
/g"
<
$CURLCMD
`
...
...
@@ -135,14 +164,8 @@ mkdir $LOGDIR
#######################################################################
# First, start the TCP server
#
#./runserv.pl $HOSTIP $HOSTPORT &
#if [ $? != "0" ]; then
# echo "failed starting the TCP server"
# exit
#fi
#sleep 1 # give it a second to start
runserver
#######################################################################
# The main test-loop
...
...
@@ -154,3 +177,9 @@ for NUMBER in $TESTCASES; do
# loop for next test
done
#######################################################################
# Tests done, stop server
#
stopserver
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