[build2] Checking the output of a test against a file

Boris Kolpackov boris at codesynthesis.com
Thu Mar 1 11:48:54 UTC 2018

Ankur deDev <ankur.dedev at tuta.io> writes:

> I am trying to check that the output of a test equals a fixed value that
> is stored in a file. Is there in Testscript a simple built-in way to check
> the output of a test (stdout for example) against a given file?


For example:

$* >>>$src_base/test.out

> Ideally the file could be empty or not even exist if the output generated
> by the test is empty.

Empty will work but there is no support for a non-existent file.


More information about the users mailing list