in reply to How do you test end-user scripts?

I wrote this test to see if my script would compile and run. I used Test::Script. Run it with Devel::SmallProf like this
perl -d:SmallProf test.pl
When its done, look in the Cwd for smallprof.out.
#!/usr/bin/perl use strict; use warnings; use Test::Script; use Test::More tests => 2; script_compiles( 'blib/script/test.pl', 'Main script compiles' ); script_runs( 'blib/script/test.pl', 'Main script runs' );