From 3526db62f4aa2e20f423bad5445d539f9d1e732e Mon Sep 17 00:00:00 2001 From: Tim Kientzle Date: Thu, 28 Jan 2016 21:33:53 -0800 Subject: Really sync up the test harnesses --- cat/test/test.h | 11 +++++++++++ 1 file changed, 11 insertions(+) (limited to 'cat') diff --git a/cat/test/test.h b/cat/test/test.h index 89b59310..78f96792 100644 --- a/cat/test/test.h +++ b/cat/test/test.h @@ -278,6 +278,9 @@ int canGrzip(void); /* Return true if this platform can run the "gzip" program. */ int canGzip(void); +/* Return true if this platform can run the specified command. */ +int canRunCommand(const char *); + /* Return true if this platform can run the "lrzip" program. */ int canLrzip(void); @@ -306,11 +309,19 @@ int is_LargeInode(const char *); /* Supports printf-style args: slurpfile(NULL, "%s/myfile", refdir); */ char *slurpfile(size_t *, const char *fmt, ...); +/* Dump block of bytes to a file. */ +void dumpfile(const char *filename, void *, size_t); + /* Extracts named reference file to the current directory. */ void extract_reference_file(const char *); /* Copies named reference file to the current directory. */ void copy_reference_file(const char *); +/* Extracts a list of files to the current directory. + * List must be NULL terminated. + */ +void extract_reference_files(const char **); + /* Path to working directory for current test */ extern const char *testworkdir; -- cgit v1.2.1