From 675f5fb66fd30ff2ea0bfdf455430fe1f76e42a6 Mon Sep 17 00:00:00 2001 From: Daniel Stenberg Date: Tue, 14 Apr 2020 11:19:12 +0200 Subject: tests: support hex encoded data and mqtt server The mqtt server is started using a "random" port. --- tests/FILEFORMAT | 12 +++++++++--- 1 file changed, 9 insertions(+), 3 deletions(-) (limited to 'tests/FILEFORMAT') diff --git a/tests/FILEFORMAT b/tests/FILEFORMAT index 653984905..44e79ab5f 100644 --- a/tests/FILEFORMAT +++ b/tests/FILEFORMAT @@ -37,7 +37,7 @@ which are treated together as a single identifier. - + data to be sent to the client on its request and later verified that it arrived safely. Set nocheck="yes" to prevent the test script from verifying the arrival of this data. @@ -60,6 +60,9 @@ of data encoded with base64. It is the only way a test case can contain binary data. (This attribute can in fact be used on any section, but it doesn't make much sense for other sections than "data"). +'hex' set to yes means that the data is a sequence of hex pairs. It will get +decoded and used as "raw" data. + For FTP file listings, the section will be used *only* if you make sure that there has been a CWD done first to a directory named 'test-[num]' where [num] is the test case number. Otherwise the ftp server can't know from which @@ -292,8 +295,8 @@ command is run. They are cleared again after the command has been run. Variables are first substituted as in the section. - + command line to run, there's a bunch of %variables that get replaced accordingly. @@ -322,6 +325,9 @@ otherwise written to verify stdout. Set option="no-include" to prevent the test script to slap on the --include argument. +Set option="binary-trace" to use --trace instead of --trace-ascii for tracing. +Suitable for binary-oriented protocols such as MQTT. + Set timeout="secs" to override default server logs advisor read lock timeout. This timeout is used by the test harness, once that the command has completed execution, to wait for the test server to write out server side log files and -- cgit v1.2.3