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
b4fdc025
Commit
b4fdc025
authored
23 years ago
by
Daniel Stenberg
Browse files
Options
Downloads
Patches
Plain Diff
-l lists all tests
parent
f1c14fe0
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
-8
19 additions, 8 deletions
tests/runtests.pl
with
19 additions
and
8 deletions
tests/runtests.pl
+
19
−
8
View file @
b4fdc025
...
...
@@ -68,6 +68,8 @@ my $debugprotocol;
my
$anyway
;
my
$gdbthis
;
# run test case with gdb debugger
my
$keepoutfiles
;
# keep stdout and stderr files after tests
my
$listonly
;
# only list the tests
my
$pwd
;
# current working directory
chomp
(
$pwd
=
`
pwd
`);
...
...
@@ -427,14 +429,6 @@ sub singletest {
my
$CURLOUT
=
"
$LOGDIR
/curl
$testnum
.out
";
# curl output if not stdout
# remove previous server output logfile
unlink
(
$SERVERIN
);
if
(
@ftpservercmd
)
{
# write the instructions to file
writearray
(
$FTPDCMD
,
\
@ftpservercmd
);
}
# name of the test
my
@testname
=
getpart
("
client
",
"
name
");
...
...
@@ -445,6 +439,18 @@ sub singletest {
print
"
[
$name
]
\n
";
}
if
(
$listonly
)
{
return
0
;
# look successful
}
# remove previous server output logfile
unlink
(
$SERVERIN
);
if
(
@ftpservercmd
)
{
# write the instructions to file
writearray
(
$FTPDCMD
,
\
@ftpservercmd
);
}
# get the command line options to use
my
(
$cmd
,
@blaha
)
=
getpart
("
client
",
"
command
");
...
...
@@ -775,6 +781,10 @@ do {
# continue anyway, even if a test fail
$anyway
=
1
;
}
elsif
(
$ARGV
[
0
]
eq
"
-l
")
{
# lists the test case names only
$listonly
=
1
;
}
elsif
(
$ARGV
[
0
]
eq
"
-k
")
{
# keep stdout and stderr files after tests
$keepoutfiles
=
1
;
...
...
@@ -788,6 +798,7 @@ Usage: runtests.pl [options]
-g run the test case with gdb
-h this help text
-k keep stdout and stderr files present after tests
-l list all test case names/descriptions
-s short output
-v verbose output
[num] like "5 6 9" or " 5 to 22 " to run those tests only
...
...
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