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
2c123051
Commit
2c123051
authored
24 years ago
by
Daniel Stenberg
Browse files
Options
Downloads
Patches
Plain Diff
added a command line log that logs all command lines run in the complete
test run
parent
b82fa8d9
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
+19
-5
19 additions, 5 deletions
tests/runtests.pl
with
19 additions
and
5 deletions
tests/runtests.pl
+
19
−
5
View file @
2c123051
...
...
@@ -11,11 +11,12 @@ use strict;
my
$HOSTIP
=
"
127.0.0.1
";
my
$HOSTPORT
=
8999
;
# bad name, but this is the HTTP server port
my
$FTPPORT
=
8921
;
# this is the FTP server port
my
$CURL
=
"
../src/curl
";
my
$CURL
=
"
../src/curl
";
# what curl executable to run on the tests
my
$LOGDIR
=
"
log
";
my
$TESTDIR
=
"
data
";
my
$SERVERIN
=
"
$LOGDIR
/server.input
";
my
$CURLOUT
=
"
$LOGDIR
/curl.out
";
my
$SERVERIN
=
"
$LOGDIR
/server.input
";
# what curl sent the server
my
$CURLOUT
=
"
$LOGDIR
/curl.out
";
# curl output if not stdout
my
$CURLLOG
=
"
$LOGDIR
/curl.log
";
# all command lines run
# Normally, all test cases should be run, but at times it is handy to
# simply run a particular one:
...
...
@@ -382,6 +383,8 @@ sub singletest {
print
"
$CMDLINE
\n
";
}
print
CMDLOG
"
$CMDLINE
\n
";
# run the command line we built
my
$res
=
system
("
$CMDLINE
");
$res
/=
256
;
...
...
@@ -454,8 +457,8 @@ sub singletest {
# always differ!
# verify the sent request
$res
=
compare
(
$SERVERIN
,
$PROT
,
"
http
",
"
^(User-Agent:|--curl|Content-Type: multipart/form-data; boundary=|PORT
127,0,0,1
).*
\r\n
");
$res
=
compare
(
$SERVERIN
,
$PROT
,
"
protocol
",
"
^(User-Agent:|--curl|Content-Type: multipart/form-data; boundary=|PORT ).*
\r\n
");
if
(
$res
)
{
return
1
;
}
...
...
@@ -576,6 +579,12 @@ if ( $TESTCASES eq "all") {
}
}
#######################################################################
# Start the command line log
#
open
(
CMDLOG
,
"
>
$CURLLOG
")
||
print
"
can't log command lines to
$CURLLOG
\n
";
#######################################################################
# The main test-loop
#
...
...
@@ -592,6 +601,11 @@ foreach $testnum (split(" ", $TESTCASES)) {
# loop for next test
}
#######################################################################
# Close command log
#
close
(
CMDLOG
);
#######################################################################
# Tests done, stop the servers
#
...
...
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