mirror of
https://github.com/curl/curl.git
synced 2026-08-04 01:10:00 +03:00
testcurl: skip reading the setup file if given enough cmdline info
This makes it much easier to run multiple tests in the same directory, just altering the command lines used.
This commit is contained in:
parent
700843d69f
commit
c1e8744177
1 changed files with 9 additions and 2 deletions
|
|
@ -258,7 +258,13 @@ sub get_host_triplet {
|
|||
return $triplet;
|
||||
}
|
||||
|
||||
if (open(F, "$setupfile")) {
|
||||
if($name && $email && $desc) {
|
||||
# having these fields set are enough to continue, skip reading the setup
|
||||
# file
|
||||
$infixed=4;
|
||||
$fixed=4;
|
||||
}
|
||||
elsif (open(F, "$setupfile")) {
|
||||
while (<F>) {
|
||||
if (/(\w+)=(.*)/) {
|
||||
eval "\$$1=$2;";
|
||||
|
|
@ -266,7 +272,8 @@ if (open(F, "$setupfile")) {
|
|||
}
|
||||
close(F);
|
||||
$infixed=$fixed;
|
||||
} else {
|
||||
}
|
||||
else {
|
||||
$infixed=0; # so that "additional args to configure" works properly first time...
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue