What about the obvious..
use Test::more qw(2); sub it_worked { # check to see if myscript worked # EG, did it update file X by adding line Y } ok( !system('./bin/myscript'), "didn't blow chunks"); ok( it_worked,'it worked');
In reply to Re: Guidelines for creating self-contained testable scripts
by pileofrogs
in thread Guidelines for creating self-contained testable scripts
by rpetre
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |