From cd449e243c8e1945c0b148332cb5e2f2773bd697 Mon Sep 17 00:00:00 2001 From: Lars Wirzenius Date: Mon, 29 Aug 2011 20:37:45 +0100 Subject: Add foo.script to README. --- README | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) (limited to 'README') diff --git a/README b/README index 7ab533e..200c322 100644 --- a/README +++ b/README @@ -14,6 +14,8 @@ Each test case consists of: * a set of command line arguments, not including the command name (`foo.args`) - each argument is on its own line +* alternatively, a script to run the command, in case that's easier + (`foo.script`) * the file fed to standard input (`foo.stdin`) * the expected output to the standard output (`foo.stdout`) * the expected output to the standard error (`foo.stderr`) @@ -37,7 +39,8 @@ or several such directories, and it does the following: - execute `setup` - execute `foo.setup` - execute the command, giving it command line arguments from - `foo.args`, and redirecting standard input to come from `foo.stdin` + `foo.args`, or by running `foo.script`, + and redirecting standard input to come from `foo.stdin` - capture standard output and error and exit codes - execute `foo.teardown` - execute `teardown` @@ -60,6 +63,7 @@ to achieve. The shell scripts may use the following environment variables: * `DATADIR`: a temporary directory where files may be created by the test +* `COMMAND`: the command to be run; it is an absolute pathname In addition, the `foo.args` files can use Pythonic string expansion: -- cgit v1.2.1