Create an empty file. The optional PREFIX is a relative pathname that is prepended to PATHNAME: It is useful to prepend the name of a parent directory. Print to stdout the full pathname of the file.
Remove the temporary directory and all its children. Should be invoked at the end of each function that creates temporary files or directories.
Return the value of the last command executed before the invocation,
that way it can be used right after dotest-output()
and
dotest-equal()
without loosing the return value of the function.
Compose a pathname under the temporary testing directory. The optional PREFIX is a relative pathname that is prepended to PATHNAME: It is useful to prepend the name of a parent directory. Print to stdout the full pathname of the file.
This function invokes dotest-mktmpdir()
.
Test that FILE exists: If true returns with code zero; else print
ERROR_MESSAGE, invoke dotest-clean-files()
and return with
code one.
Test that FILE does not exist: If true return with code zero; else
print ERROR_MESSAGE, invoke dotest-clean-files()
and return
with code one.
This document describes version 3.0.0-devel.9 of Marcos Bash Functions Library.