Any hints for easy testing of console applications (black-box, acceptance,..): i.e. - setting relevant environment variables, spawning already bundled application (executable, shell script, whatever); providing variation of parameters, options and other inputs (e.g. stdin or other files); and validating the relevant outputs.