summaryrefslogtreecommitdiff
path: root/tests
diff options
context:
space:
mode:
Diffstat (limited to 'tests')
-rw-r--r--tests/FILEFORMAT.md14
-rwxr-xr-xtests/runtests.pl3
2 files changed, 10 insertions, 7 deletions
diff --git a/tests/FILEFORMAT.md b/tests/FILEFORMAT.md
index e5c2a312a..b99fd26a9 100644
--- a/tests/FILEFORMAT.md
+++ b/tests/FILEFORMAT.md
@@ -177,12 +177,14 @@ that will be checked/used if specified.
### `<keywords>`
A newline-separated list of keywords describing what this test case uses and
-tests. Try to use an already used keyword. These keywords will be used for
-statistical/informational purposes and for choosing or skipping classes
-of tests. "Keywords" must begin with an alphabetic character, "-", "["
-or "{" and may actually consist of multiple words separated by spaces
-which are treated together as a single identifier.
-
+tests. Try to use already used keywords. These keywords will be used for
+statistical/informational purposes and for choosing or skipping classes of
+tests. "Keywords" must begin with an alphabetic character, "-", "[" or "{"
+and may actually consist of multiple words separated by spaces which are
+treated together as a single identifier.
+
+When using curl built with Hyper, the keywords must include HTTP or HTTPS for
+'hyper mode' to kick in and make line ending checks work for tests.
## `<reply>`
### `<data [nocheck="yes"] [sendzero="yes"] [base64="yes"] [hex="yes"]>`
diff --git a/tests/runtests.pl b/tests/runtests.pl
index 696c11a72..2a2b4ee1a 100755
--- a/tests/runtests.pl
+++ b/tests/runtests.pl
@@ -3524,7 +3524,8 @@ sub prepro {
if($show) {
subVariables(\$s, $testnum, "%");
subBase64(\$s);
- subNewlines(\$s) if($has_hyper);
+ subNewlines(\$s) if($has_hyper && ($keywords{"HTTP"} ||
+ $keywords{"HTTPS"}));
push @out, $s;
}
}