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
ffc6d062
Commit
ffc6d062
authored
21 years ago
by
Daniel Stenberg
Browse files
Options
Downloads
Patches
Plain Diff
now check for and use valgrind, inserted and modified the check for stunnel
and we no longer use the stunnel.pm
parent
757a7d08
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
+27
-2
27 additions, 2 deletions
tests/runtests.pl
with
27 additions
and
2 deletions
tests/runtests.pl
+
27
−
2
View file @
ffc6d062
...
...
@@ -57,7 +57,8 @@ my $memdump="memdump";
# the path to the script that analyzes the memory debug output file:
my
$memanalyze
=
"
./memanalyze.pl
";
my
$checkstunnel
=
&checkstunnel
;
my
$checkstunnel
=
checkcmd
("
stunnel
");
my
$checkvalgrind
=
checkcmd
("
valgrind
");
my
$ssl_version
;
# set if libcurl is built with SSL support
...
...
@@ -65,6 +66,12 @@ my $skipped=0; # number of tests skipped; reported in main loop
my
%skipped
;
# skipped{reason}=counter, reasons for skip
my
@teststat
;
# teststat[testnum]=reason, reasons for skip
if
(
$checkvalgrind
)
{
# we have found valgrind on the host, use it
# perhaps we should verify that valgrind works before we actually use it?
$CURL
=
"
valgrind --leak-check=yes --logfile-fd=3 -q
$CURL
";
}
#######################################################################
# variables the command line options may set
#
...
...
@@ -105,6 +112,20 @@ foreach $protocol (('ftp', 'http', 'ftps', 'https', 'gopher', 'no')) {
$ENV
{
uc
(
$proxy
)}
=
undef
;
}
#######################################################################
# Check for a command in the PATH.
#
sub
checkcmd
{
my
(
$cmd
)
=
@_
;
my
@paths
=
("
/usr/sbin
",
"
/usr/local/sbin
",
"
/sbin
",
"
/usr/bin
",
"
/usr/local/bin
",
split
("
:
",
$ENV
{'
PATH
'}));
for
(
@paths
)
{
if
(
-
x
"
$_
/
$cmd
")
{
return
"
$_
/
$cmd
";
}
}
}
#######################################################################
# Return the pid of the server as found in the given pid file
#
...
...
@@ -578,7 +599,7 @@ sub checkcurl {
my
$curl
;
my
$libcurl
;
my
@version
=
`
$CURL
-V
`;
my
@version
=
`
$CURL
-V
2>/dev/null
`;
for
(
@version
)
{
chomp
;
...
...
@@ -635,6 +656,7 @@ sub checkcurl {
printf
("
* Server SSL: %s
\n
",
$checkstunnel
?"
ON
":"
OFF
");
printf
("
* libcurl SSL: %s
\n
",
$ssl_version
?"
ON
":"
OFF
");
printf
("
* libcurl debug: %s
\n
",
$curl_debug
?"
ON
":"
OFF
");
printf
("
* valgrind: %s
\n
",
$checkvalgrind
?"
ON
":"
OFF
");
print
"
*****************************************
\n
";
}
...
...
@@ -881,6 +903,9 @@ sub singletest {
$cmdargs
.=
"
<
$stdinfile
";
}
if
(
$checkvalgrind
)
{
$cmdargs
.=
"
3>log/valgrind
$testnum
";
}
my
$CMDLINE
;
if
(
!
$tool
)
{
...
...
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