mirror of
https://github.com/curl/curl.git
synced 2026-08-25 06:03:32 +03:00
testutil: make runtests support %include
Using this instruction, a test case can include the contents of a file into the test during the preprocessing. Closes #12612
This commit is contained in:
parent
8620b11c3a
commit
12f832d950
2 changed files with 24 additions and 0 deletions
|
|
@ -74,6 +74,17 @@ For example, to insert the word hello 100 times:
|
|||
|
||||
%repeat[100 x hello]%
|
||||
|
||||
## Include file
|
||||
|
||||
This instruction allows a test case to include another file. It is helpful to
|
||||
remember that the ordinary variables are expanded before the include happens
|
||||
so `%LOGDIR` and the others can be used in the include line.
|
||||
|
||||
The file name cannot contain `%` as that letter is used to end the name for
|
||||
the include instruction:
|
||||
|
||||
%include filename%
|
||||
|
||||
## Conditional lines
|
||||
|
||||
Lines in the test file can be made to appear conditionally on a specific
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue