diff options
| -rw-r--r-- | Documentation/test-suite | 6 | ||||
| -rwxr-xr-x | validation/test-suite | 2 |
2 files changed, 8 insertions, 0 deletions
diff --git a/Documentation/test-suite b/Documentation/test-suite index 6c4f24f6..6936feeb 100644 --- a/Documentation/test-suite +++ b/Documentation/test-suite @@ -29,6 +29,12 @@ check-output-start / check-output-end (optional) The expected output (stdout and stderr) of check-command lies between those two tags. It defaults to no output. +check-output-ignore / check-error-ignore (optional) + Don't check the expected output (stdout or stderr) of check-command + (usefull when this output is not comparable or if you're only interested + in the exit value). + By default this check is done. + check-known-to-fail (optional) Mark the test as being known to fail. diff --git a/validation/test-suite b/validation/test-suite index df5a7c60..0d874e07 100755 --- a/validation/test-suite +++ b/validation/test-suite @@ -146,6 +146,8 @@ do_test() actual_exit_value=$? for stream in output error; do + grep -s -q "check-$stream-ignore" $file && continue + diff -u "$file".$stream.expected "$file".$stream.got > "$file".$stream.diff if [ "$?" -ne "0" ]; then error "actual $stream text does not match expected $stream text." |
