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
85dd4bfb
Commit
85dd4bfb
authored
20 years ago
by
Daniel Stenberg
Browse files
Options
Downloads
Patches
Plain Diff
make it possible for a test case to depend on the feature 'libz'
parent
5ae34aa8
No related branches found
Branches containing commit
No related tags found
Tags containing commit
No related merge requests found
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
tests/FILEFORMAT
+5
-2
5 additions, 2 deletions
tests/FILEFORMAT
tests/runtests.pl
+9
-0
9 additions, 0 deletions
tests/runtests.pl
with
14 additions
and
2 deletions
tests/FILEFORMAT
+
5
−
2
View file @
85dd4bfb
...
...
@@ -84,14 +84,17 @@ case number.
</server>
<features>
A list of features that must be present in the client/library for this test
to be able to run. Features testable here are:
A list of features that MUST be present in the client/library for this test to
be able to run (if these features are not present, the test will be
SKIPPED). Features testable here are:
SSL
netrc_debug
large_file
idn
getrlimit
ipv6
libz
</features>
<killserver>
...
...
This diff is collapsed.
Click to expand it.
tests/runtests.pl
+
9
−
0
View file @
85dd4bfb
...
...
@@ -97,6 +97,7 @@ my $ssl_version; # set if libcurl is built with SSL support
my
$large_file
;
# set if libcurl is built with large file support
my
$has_idn
;
# set if libcurl is built with IDN support
my
$has_ipv6
;
# set if libcurl is built with IPv6 support
my
$has_libz
;
# set if libcurl is built with libz support
my
$has_getrlimit
;
# set if system has getrlimit()
my
$skipped
=
0
;
# number of tests skipped; reported in main loop
...
...
@@ -764,6 +765,9 @@ sub checkcurl {
if
(
$feat
=~
/IPv6/i
)
{
$has_ipv6
=
1
;
}
if
(
$feat
=~
/libz/i
)
{
$has_libz
=
1
;
}
}
}
if
(
!
$curl
)
{
...
...
@@ -885,6 +889,11 @@ sub singletest {
next
;
}
}
elsif
(
$f
eq
"
libz
")
{
if
(
$has_libz
)
{
next
;
}
}
elsif
(
$f
eq
"
getrlimit
")
{
if
(
$has_getrlimit
)
{
next
;
...
...
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