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
b3ebfc2b
Commit
b3ebfc2b
authored
12 years ago
by
Yang Tse
Browse files
Options
Downloads
Patches
Plain Diff
testcurl.pl: allow non in-tree c-ares enabled autobuild
parent
069b280f
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/testcurl.pl
+9
-2
9 additions, 2 deletions
tests/testcurl.pl
with
9 additions
and
2 deletions
tests/testcurl.pl
+
9
−
2
View file @
b3ebfc2b
...
...
@@ -73,7 +73,7 @@ use vars qw($name $email $desc $confopts $runtestopts $setupfile $mktarball
$timestamp $notes)
;
# version of this script
$version
=
'
2012-0
4-13
';
$version
=
'
2012-0
7-02
';
$fixed
=
0
;
# Determine if we're running from git or a canned copy of curl,
...
...
@@ -357,14 +357,20 @@ $str1066os = undef;
# off that path from all possible logs and error messages etc.
$pwd
=
getcwd
();
my
$have_embedded_ares
=
0
;
if
(
-
d
$CURLDIR
)
{
if
(
$git
&&
-
d
"
$CURLDIR
/.git
")
{
logit
"
$CURLDIR
is verified to be a fine git source dir
";
# remove the generated sources to force them to be re-generated each
# time we run this test
unlink
"
$CURLDIR
/src/hugehelp.c
";
# find out if curl source dir has an in-tree c-ares repo
$have_embedded_ares
=
1
if
(
-
f
"
$CURLDIR
/ares/GIT-INFO
");
}
elsif
(
!
$git
&&
-
f
"
$CURLDIR
/tests/testcurl.pl
")
{
logit
"
$CURLDIR
is verified to be a fine daily source dir
"
# find out if curl source dir has an in-tree c-ares extracted tarball
$have_embedded_ares
=
1
if
(
-
f
"
$CURLDIR
/ares/ares_build.h
");
}
else
{
mydie
"
$CURLDIR
is not a daily source dir or checked out from git!
"
}
...
...
@@ -593,7 +599,8 @@ while (<F>) {
}
close
(
F
);
if
(
grepfile
("
^#define USE_ARES
",
"
lib/
$confheader
"))
{
if
((
$have_embedded_ares
)
&&
(
grepfile
("
^#define USE_ARES
",
"
lib/
$confheader
")))
{
print
"
\n
";
logit
"
setup to build ares
";
...
...
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