xref: /curl/tests/FILEFORMAT.md (revision f7cc9e91)
1<!--
2Copyright (C) Daniel Stenberg, <daniel@haxx.se>, et al.
3
4SPDX-License-Identifier: curl
5-->
6
7# curl test suite file format
8
9The curl test suite's file format is simple and extendable, closely resembling
10XML. All data for a single test case resides in a single ASCII file. Labels
11mark the beginning and the end of all sections, and each label must be written
12in its own line. Comments are either XML-style (enclosed with `<!--` and
13`-->`) or shell script style (beginning with `#`) and must appear on their own
14lines and not alongside actual test data. Most test data files are
15syntactically valid XML, although a few files are not (lack of support for
16character entities and the preservation of CR/LF characters at the end of
17lines are the biggest differences).
18
19Each test case source exists as a file matching the format
20`tests/data/testNUM`, where `NUM` is the unique test number, and must begin
21with a `testcase` tag, which encompasses the remainder of the file.
22
23# Preprocessing
24
25When a test is to be executed, the source file is first preprocessed and
26variables are substituted by their respective contents and the output
27version of the test file is stored as `%LOGDIR/testNUM`. That version is what
28will be read and used by the test servers.
29
30## Base64 Encoding
31
32In the preprocess stage, a special instruction can be used to have runtests.pl
33base64 encode a certain section and insert in the generated output file. This
34is in particular good for test cases where the test tool is expected to pass
35in base64 encoded content that might use dynamic information that is unique
36for this particular test invocation, like the server port number.
37
38To insert a base64 encoded string into the output, use this syntax:
39
40    %b64[ data to encode ]b64%
41
42The data to encode can then use any of the existing variables mentioned below,
43or even percent-encoded individual bytes. As an example, insert the HTTP
44server's port number (in ASCII) followed by a space and the hexadecimal byte
459a:
46
47    %b64[%HTTPPORT %9a]b64%
48
49## Hexadecimal decoding
50
51In the preprocess stage, a special instruction can be used to have runtests.pl
52generate a sequence of binary bytes.
53
54To insert a sequence of bytes from a hex encoded string, use this syntax:
55
56    %hex[ %XX-encoded data to decode ]hex%
57
58For example, to insert the binary octets 0, 1 and 255 into the test file:
59
60    %hex[ %00%01%FF ]hex%
61
62## Repeat content
63
64In the preprocess stage, a special instruction can be used to have runtests.pl
65generate a repetitive sequence of bytes.
66
67To insert a sequence of repeat bytes, use this syntax to make the `<string>`
68get repeated `<number>` of times. The number has to be 1 or larger and the
69string may contain `%HH` hexadecimal codes:
70
71    %repeat[<number> x <string>]%
72
73For example, to insert the word hello 100 times:
74
75    %repeat[100 x hello]%
76
77## Include file
78
79This instruction allows a test case to include another file. It is helpful to
80remember that the ordinary variables are expanded before the include happens
81so `%LOGDIR` and the others can be used in the include line.
82
83The file name cannot contain `%` as that letter is used to end the name for
84the include instruction:
85
86    %include filename%
87
88## Conditional lines
89
90Lines in the test file can be made to appear conditionally on a specific
91feature (see the "features" section below) being set or not set. If the
92specific feature is present, the following lines will be output, otherwise it
93outputs nothing, until a following else or `endif` clause. Like this:
94
95    %if brotli
96    Accept-Encoding
97    %endif
98
99It can also check for the inverse condition, so if the feature is *not* set by
100the use of an exclamation mark:
101
102    %if !brotli
103    Accept-Encoding: not-brotli
104    %endif
105
106You can also make an "else" clause to get output for the opposite condition,
107like:
108
109    %if brotli
110    Accept-Encoding: brotli
111    %else
112    Accept-Encoding: nothing
113    %endif
114
115Nested conditions are supported.
116
117# Variables
118
119When the test is preprocessed, a range of "variables" in the test file will be
120replaced by their content at that time.
121
122Available substitute variables include:
123
124- `%CLIENT6IP` - IPv6 address of the client running curl
125- `%CLIENTIP` - IPv4 address of the client running curl
126- `%CURL` - Path to the curl executable
127- `%FILE_PWD` - Current directory, on Windows prefixed with a slash
128- `%FTP6PORT` - IPv6 port number of the FTP server
129- `%FTPPORT` - Port number of the FTP server
130- `%FTPSPORT` - Port number of the FTPS server
131- `%FTPTIME2` - Timeout in seconds that should be just sufficient to receive a
132  response from the test FTP server
133- `%FTPTIME3` - Even longer than `%FTPTIME2`
134- `%GOPHER6PORT` - IPv6 port number of the Gopher server
135- `%GOPHERPORT` - Port number of the Gopher server
136- `%GOPHERSPORT` - Port number of the Gophers server
137- `%HOST6IP` - IPv6 address of the host running this test
138- `%HOSTIP` - IPv4 address of the host running this test
139- `%HTTP6PORT` - IPv6 port number of the HTTP server
140- `%HTTPPORT` - Port number of the HTTP server
141- `%HTTP2PORT` - Port number of the HTTP/2 server
142- `%HTTPSPORT` - Port number of the HTTPS server
143- `%HTTPSPROXYPORT` - Port number of the HTTPS-proxy
144- `%HTTPTLS6PORT` - IPv6 port number of the HTTP TLS server
145- `%HTTPTLSPORT` - Port number of the HTTP TLS server
146- `%HTTPUNIXPATH` - Path to the Unix socket of the HTTP server
147- `%SOCKSUNIXPATH` - Path to the Unix socket of the SOCKS server
148- `%IMAP6PORT` - IPv6 port number of the IMAP server
149- `%IMAPPORT` - Port number of the IMAP server
150- `%LOGDIR` - Log directory relative to %PWD
151- `%MQTTPORT` - Port number of the MQTT server
152- `%TELNETPORT` - Port number of the telnet server
153- `%NOLISTENPORT` - Port number where no service is listening
154- `%POP36PORT` - IPv6 port number of the POP3 server
155- `%POP3PORT` - Port number of the POP3 server
156- `%POSIX_PWD` - Current directory somewhat mingw friendly
157- `%PROXYPORT` - Port number of the HTTP proxy
158- `%PWD` - Current directory
159- `%RTSP6PORT` - IPv6 port number of the RTSP server
160- `%RTSPPORT` - Port number of the RTSP server
161- `%SMBPORT` - Port number of the SMB server
162- `%SMBSPORT` - Port number of the SMBS server
163- `%SMTP6PORT` - IPv6 port number of the SMTP server
164- `%SMTPPORT` - Port number of the SMTP server
165- `%SOCKSPORT` - Port number of the SOCKS4/5 server
166- `%SRCDIR` - Full path to the source dir
167- `%SSHPORT` - Port number of the SCP/SFTP server
168- `%SSHSRVMD5` - MD5 of SSH server's public key
169- `%SSHSRVSHA256` - SHA256 of SSH server's public key
170- `%SSH_PWD` - Current directory friendly for the SSH server
171- `%TESTNUMBER` - Number of the test case
172- `%TFTP6PORT` - IPv6 port number of the TFTP server
173- `%TFTPPORT` - Port number of the TFTP server
174- `%USER` - Login ID of the user running the test
175- `%VERSION` - the full version number of the tested curl
176
177# `<testcase>`
178
179Each test is always specified entirely within the `testcase` tag. Each test
180case is split up in four main sections: `info`, `reply`, `client` and
181`verify`.
182
183- **info** provides information about the test case
184
185- **reply** is used for the server to know what to send as a reply for the
186requests curl sends
187
188- **client** defines how the client should behave
189
190- **verify** defines how to verify that the data stored after a command has
191been run ended up correct
192
193Each main section has a number of available subsections that can be specified,
194that will be checked/used if specified.
195
196## `<info>`
197
198### `<keywords>`
199A newline-separated list of keywords describing what this test case uses and
200tests. Try to use already used keywords. These keywords will be used for
201statistical/informational purposes and for choosing or skipping classes of
202tests. Keywords must begin with an alphabetic character, `-`, `[` or `{` and
203may actually consist of multiple words separated by spaces which are treated
204together as a single identifier. Most keywords are only there to provide a way
205for users to skip certain classes of tests, if desired, but a few are treated
206specially by the test harness or build system.
207
208When using curl built with Hyper, the keywords must include `HTTP` or `HTTPS`
209for 'hyper mode' to kick in and make line ending checks work for tests.
210
211When running a unit test and the keywords include `unittest`, the `<tool>`
212section can be left empty to use the standard unit test tool name `unitN` where
213`N` is the test number.
214
215The `text-ci` make target automatically skips test with the `flaky` keyword.
216
217Tests that have strict timing dependencies have the `timing-dependent` keyword.
218These are intended to eventually be treated specially on CI builds which are
219often run on overloaded machines with unpredictable timing.
220
221## `<reply>`
222
223### `<data [nocheck="yes"] [sendzero="yes"] [base64="yes"] [hex="yes"] [nonewline="yes"] [crlf="yes"]>`
224
225data to be sent to the client on its request and later verified that it
226arrived safely. Set `nocheck="yes"` to prevent the test script from verifying
227the arrival of this data.
228
229If the data contains `swsclose` anywhere within the start and end tag, and
230this is an HTTP test, then the connection will be closed by the server after
231this response is sent. If not, the connection will be kept persistent.
232
233If the data contains `swsbounce` anywhere within the start and end tag, the
234HTTP server will detect if this is a second request using the same test and
235part number and will then increase the part number with one. This is useful
236for auth tests and similar.
237
238`sendzero=yes` means that the (FTP) server will "send" the data even if the
239size is zero bytes. Used to verify curl's behavior on zero bytes transfers.
240
241`base64=yes` means that the data provided in the test-file is a chunk of data
242encoded with base64. It is the only way a test case can contain binary
243data. (This attribute can in fact be used on any section, but it doesn't make
244much sense for other sections than "data").
245
246`hex=yes` means that the data is a sequence of hex pairs. It will get decoded
247and used as "raw" data.
248
249`nonewline=yes` means that the last byte (the trailing newline character)
250should be cut off from the data before sending or comparing it.
251
252`crlf=yes` forces *header* newlines to become CRLF even if not written so in
253the source file. Note that this makes runtests.pl parse and "guess" what is a
254header and what is not in order to apply the CRLF line endings appropriately.
255
256For FTP file listings, the `<data>` section will be used *only* if you make
257sure that there has been a CWD done first to a directory named `test-[NUM]`
258where `NUM` is the test case number. Otherwise the ftp server can't know from
259which test file to load the list content.
260
261### `<dataNUM [crlf="yes"]>`
262
263Send back this contents instead of the `<data>` one. The `NUM` is set by:
264
265 - The test number in the request line is >10000 and this is the remainder
266   of [test case number]%10000.
267 - The request was HTTP and included digest details, which adds 1000 to `NUM`
268 - If an HTTP request is NTLM type-1, it adds 1001 to `NUM`
269 - If an HTTP request is NTLM type-3, it adds 1002 to `NUM`
270 - If an HTTP request is Basic and `NUM` is already >=1000, it adds 1 to `NUM`
271 - If an HTTP request is Negotiate, `NUM` gets incremented by one for each
272   request with Negotiate authorization header on the same test case.
273
274Dynamically changing `NUM` in this way allows the test harness to be used to
275test authentication negotiation where several different requests must be sent
276to complete a transfer. The response to each request is found in its own data
277section. Validating the entire negotiation sequence can be done by specifying
278a `datacheck` section.
279
280### `<connect>`
281The connect section is used instead of the 'data' for all CONNECT
282requests. The remainder of the rules for the data section then apply but with
283a connect prefix.
284
285### `<socks>`
286Address type and address details as logged by the SOCKS proxy.
287
288### `<datacheck [mode="text"] [nonewline="yes"] [crlf="yes"]>`
289if the data is sent but this is what should be checked afterwards. If
290`nonewline=yes` is set, runtests will cut off the trailing newline from the
291data before comparing with the one actually received by the client.
292
293Use the `mode="text"` attribute if the output is in text mode on platforms
294that have a text/binary difference.
295
296### `<datacheckNUM [nonewline="yes"] [mode="text"] [crlf="yes"]>`
297The contents of numbered `datacheck` sections are appended to the non-numbered
298one.
299
300### `<size>`
301number to return on a ftp SIZE command (set to -1 to make this command fail)
302
303### `<mdtm>`
304what to send back if the client sends a (FTP) `MDTM` command, set to -1 to
305have it return that the file doesn't exist
306
307### `<postcmd>`
308special purpose server-command to control its behavior *after* the
309reply is sent
310For HTTP/HTTPS, these are supported:
311
312`wait [secs]` - Pause for the given time
313
314### `<servercmd>`
315Special-commands for the server.
316
317The first line of this file will always be set to `Testnum [number]` by the
318test script, to allow servers to read that to know what test the client is
319about to issue.
320
321#### For FTP/SMTP/POP/IMAP
322
323- `REPLY [command] [return value] [response string]` - Changes how the server
324  responds to the [command]. [response string] is evaluated as a perl string,
325  so it can contain embedded \r\n, for example. There's a special [command]
326  named "welcome" (without quotes) which is the string sent immediately on
327  connect as a welcome.
328- `REPLYLF` (like above but sends the response terminated with LF-only and not
329   CRLF)
330- `COUNT [command] [num]` - Do the `REPLY` change for `[command]` only `[num]`
331  times and then go back to the built-in approach
332- `DELAY [command] [secs]` - Delay responding to this command for the given
333  time
334- `RETRWEIRDO` - Enable the "weirdo" RETR case when multiple response lines
335   appear at once when a file is transferred
336- `RETRNOSIZE` - Make sure the RETR response doesn't contain the size of the
337  file
338- `RETRSIZE [size]` - Force RETR response to contain the specified size
339- `NOSAVE` - Don't actually save what is received
340- `SLOWDOWN` - Send FTP responses with 0.01 sec delay between each byte
341- `PASVBADIP` - makes PASV send back an illegal IP in its 227 response
342- `CAPA [capabilities]` - Enables support for and specifies a list of space
343   separated capabilities to return to the client for the IMAP `CAPABILITY`,
344   POP3 `CAPA` and SMTP `EHLO` commands
345- `AUTH [mechanisms]` - Enables support for SASL authentication and specifies
346   a list of space separated mechanisms for IMAP, POP3 and SMTP
347- `STOR [msg]` respond with this instead of default after `STOR`
348
349#### For HTTP/HTTPS
350
351- `auth_required` if this is set and a POST/PUT is made without auth, the
352  server will NOT wait for the full request body to get sent
353- `delay: [msecs]` - delay this amount after connection
354- `idle` - do nothing after receiving the request, just "sit idle"
355- `stream` - continuously send data to the client, never-ending
356- `writedelay: [msecs]` delay this amount between reply packets
357- `skip: [num]` - instructs the server to ignore reading this many bytes from
358  a PUT or POST request
359- `rtp: part [num] channel [num] size [num]` - stream a fake RTP packet for
360  the given part on a chosen channel with the given payload size
361- `connection-monitor` - When used, this will log `[DISCONNECT]` to the
362  `server.input` log when the connection is disconnected.
363- `upgrade` - when an HTTP upgrade header is found, the server will upgrade to
364  http2
365- `swsclose` - instruct server to close connection after response
366- `no-expect` - don't read the request body if Expect: is present
367
368#### For TFTP
369`writedelay: [secs]` delay this amount between reply packets (each packet
370  being 512 bytes payload)
371
372## `<client>`
373
374### `<server>`
375What server(s) this test case requires/uses. Available servers:
376
377- `dict`
378- `file`
379- `ftp`
380- `ftp-ipv6`
381- `ftps`
382- `gopher`
383- `gopher-ipv6`
384- `gophers`
385- `http`
386- `http/2`
387- `http-ipv6`
388- `http-proxy`
389- `https`
390- `https-proxy`
391- `httptls+srp`
392- `httptls+srp-ipv6`
393- `http-unix`
394- `imap`
395- `mqtt`
396- `none`
397- `pop3`
398- `rtsp`
399- `rtsp-ipv6`
400- `scp`
401- `sftp`
402- `smb`
403- `smtp`
404- `socks4`
405- `socks5`
406- `socks5unix`
407- `telnet`
408- `tftp`
409
410Give only one per line. This subsection is mandatory (use `none` if no servers
411are required). Servers that require a special server certificate can have the
412PEM certificate file name (found in the `certs` directory) appended to the
413server name separated by a space.
414
415### `<features>`
416A list of features that MUST be present in the client/library for this test to
417be able to run. If a required feature is not present then the test will be
418SKIPPED.
419
420Alternatively a feature can be prefixed with an exclamation mark to indicate a
421feature is NOT required. If the feature is present then the test will be
422SKIPPED.
423
424Features testable here are:
425
426- `alt-svc`
427- `bearssl`
428- `brotli`
429- `c-ares`
430- `CharConv`
431- `cookies`
432- `crypto`
433- `debug`
434- `DoH`
435- `getrlimit`
436- `GnuTLS`
437- `GSS-API`
438- `h2c`
439- `headers-api`
440- `HSTS`
441- `HTTP-auth`
442- `http/2`
443- `http/3`
444- `https-proxy`
445- `hyper`
446- `idn`
447- `ipv6`
448- `Kerberos`
449- `large_file`
450- `large-time` (time_t is larger than 32 bit)
451- `ld_preload`
452- `libssh2`
453- `libssh`
454- `oldlibssh` (versions before 0.9.4)
455- `libz`
456- `manual`
457- `mbedtls`
458- `Mime`
459- `netrc`
460- `nghttpx`
461- `nghttpx-h3`
462- `NTLM`
463- `NTLM_WB`
464- `OpenSSL`
465- `parsedate`
466- `proxy`
467- `PSL`
468- `rustls`
469- `Schannel`
470- `sectransp`
471- `shuffle-dns`
472- `socks`
473- `SPNEGO`
474- `SSL`
475- `SSLpinning`
476- `SSPI`
477- `threaded-resolver`
478- `TLS-SRP`
479- `TrackMemory`
480- `typecheck`
481- `threadsafe`
482- `Unicode`
483- `unittest`
484- `unix-sockets`
485- `verbose-strings`
486- `wakeup`
487- `win32`
488- `wolfssh`
489- `wolfssl`
490- `xattr`
491- `zstd`
492
493as well as each protocol that curl supports. A protocol only needs to be
494specified if it is different from the server (useful when the server is
495`none`).
496
497### `<killserver>`
498Using the same syntax as in `<server>` but when mentioned here these servers
499are explicitly KILLED when this test case is completed. Only use this if there
500is no other alternatives. Using this of course requires subsequent tests to
501restart servers.
502
503### `<precheck>`
504A command line that if set gets run by the test script before the test. If an
505output is displayed by the command or if the return code is non-zero, the test
506will be skipped and the (single-line) output will be displayed as reason for
507not running the test.
508
509### `<postcheck>`
510A command line that if set gets run by the test script after the test. If
511the command exists with a non-zero status code, the test will be considered
512to have failed.
513
514### `<tool>`
515Name of tool to invoke instead of "curl". This tool must be built and exist
516either in the `libtest/` directory (if the tool name starts with `lib`) or in
517the `unit/` directory (if the tool name starts with `unit`).
518
519### `<name>`
520Brief test case description, shown when the test runs.
521
522### `<setenv>`
523    variable1=contents1
524    variable2=contents2
525    variable3
526
527Set the given environment variables to the specified value before the actual
528command is run. They are restored back to their former values again after the
529command has been run.
530
531If the variable name has no assignment, no `=`, then that variable is just
532deleted.
533
534### `<command [option="no-q/no-output/no-include/force-output/binary-trace"] [timeout="secs"][delay="secs"][type="perl/shell"]>`
535Command line to run.
536
537Note that the URL that gets passed to the server actually controls what data
538that is returned. The last slash in the URL must be followed by a number. That
539number (N) will be used by the test-server to load test case N and return the
540data that is defined within the `<reply><data></data></reply>` section.
541
542If there's no test number found above, the HTTP test server will use the
543number following the last dot in the given hostname (made so that a CONNECT
544can still pass on test number) so that "foo.bar.123" gets treated as test case
545123. Alternatively, if an IPv6 address is provided to CONNECT, the last
546hexadecimal group in the address will be used as the test number! For example
547the address "[1234::ff]" would be treated as test case 255.
548
549Set `type="perl"` to write the test case as a perl script. It implies that
550there's no memory debugging and valgrind gets shut off for this test.
551
552Set `type="shell"` to write the test case as a shell script. It implies that
553there's no memory debugging and valgrind gets shut off for this test.
554
555Set `option="no-output"` to prevent the test script to slap on the `--output`
556argument that directs the output to a file. The `--output` is also not added
557if the verify/stdout section is used.
558
559Set `option="force-output"` to make use of `--output` even when the test is
560otherwise written to verify stdout.
561
562Set `option="no-include"` to prevent the test script to slap on the
563`--include` argument.
564
565Set `option="no-q"` avoid using `-q` as the first argument in the curl command
566line.
567
568Set `option="binary-trace"` to use `--trace` instead of `--trace-ascii` for
569tracing. Suitable for binary-oriented protocols such as MQTT.
570
571Set `timeout="secs"` to override default server logs advisor read lock
572timeout. This timeout is used by the test harness, once that the command has
573completed execution, to wait for the test server to write out server side log
574files and remove the lock that advised not to read them. The "secs" parameter
575is the not negative integer number of seconds for the timeout. This `timeout`
576attribute is documented for completeness sake, but is deep test harness stuff
577and only needed for singular and specific test cases. Avoid using it.
578
579Set `delay="secs"` to introduce a time delay once that the command has
580completed execution and before the `<postcheck>` section runs. The "secs"
581parameter is the not negative integer number of seconds for the delay. This
582'delay' attribute is intended for specific test cases, and normally not
583needed.
584
585### `<file name="%LOGDIR/filename" [nonewline="yes"]>`
586This creates the named file with this content before the test case is run,
587which is useful if the test case needs a file to act on.
588
589If `nonewline="yes"` is used, the created file will have the final newline
590stripped off.
591
592### `<stdin [nonewline="yes"]>`
593Pass this given data on stdin to the tool.
594
595If `nonewline` is set, we will cut off the trailing newline of this given data
596before comparing with the one actually received by the client
597
598## `<verify>`
599### `<errorcode>`
600numerical error code curl is supposed to return. Specify a list of accepted
601error codes by separating multiple numbers with comma. See test 237 for an
602example.
603
604### `<strip>`
605One regex per line that is removed from the protocol dumps before the
606comparison is made. This is useful to remove dependencies on dynamically
607changing protocol data such as port numbers or user-agent strings.
608
609### `<strippart>`
610One perl op per line that operates on the protocol dump. This is pretty
611advanced. Example: `s/^EPRT .*/EPRT stripped/`.
612
613### `<protocol [nonewline="yes"][crlf="yes"]>`
614
615the protocol dump curl should transmit, if `nonewline` is set, we will cut off
616the trailing newline of this given data before comparing with the one actually
617sent by the client The `<strip>` and `<strippart>` rules are applied before
618comparisons are made.
619
620`crlf=yes` forces the newlines to become CRLF even if not written so in the
621test.
622
623### `<proxy [nonewline="yes"][crlf="yes"]>`
624
625The protocol dump curl should transmit to an HTTP proxy (when the http-proxy
626server is used), if `nonewline` is set, we will cut off the trailing newline
627of this given data before comparing with the one actually sent by the client
628The `<strip>` and `<strippart>` rules are applied before comparisons are made.
629
630### `<stderr [mode="text"] [nonewline="yes"]>`
631This verifies that this data was passed to stderr.
632
633Use the mode="text" attribute if the output is in text mode on platforms that
634have a text/binary difference.
635
636If `nonewline` is set, we will cut off the trailing newline of this given data
637before comparing with the one actually received by the client
638
639### `<stdout [mode="text"] [nonewline="yes"] [crlf="yes"] [loadfile="filename"]>`
640This verifies that this data was passed to stdout.
641
642Use the mode="text" attribute if the output is in text mode on platforms that
643have a text/binary difference.
644
645If `nonewline` is set, we will cut off the trailing newline of this given data
646before comparing with the one actually received by the client
647
648`crlf=yes` forces the newlines to become CRLF even if not written so in the
649test.
650
651`loadfile="filename"` makes loading the data from an external file.
652
653### `<file name="%LOGDIR/filename" [mode="text"]>`
654The file's contents must be identical to this after the test is complete. Use
655the mode="text" attribute if the output is in text mode on platforms that have
656a text/binary difference.
657
658### `<file1>`
6591 to 4 can be appended to 'file' to compare more files.
660
661### `<file2>`
662
663### `<file3>`
664
665### `<file4>`
666
667### `<stripfile>`
668One perl op per line that operates on the output file or stdout before being
669compared with what is stored in the test file. This is pretty
670advanced. Example: "s/^EPRT .*/EPRT stripped/"
671
672### `<stripfile1>`
6731 to 4 can be appended to `stripfile` to strip the corresponding `<fileN>`
674content
675
676### `<stripfile2>`
677
678### `<stripfile3>`
679
680### `<stripfile4>`
681
682### `<upload>`
683the contents of the upload data curl should have sent
684
685### `<valgrind>`
686disable - disables the valgrind log check for this test
687