Skip to content

Commit

Permalink
strict/warnings and syntax tests
Browse files Browse the repository at this point in the history
  • Loading branch information
swelljoe committed Jul 8, 2016
1 parent 6867d11 commit 9a34953
Show file tree
Hide file tree
Showing 8 changed files with 40 additions and 0 deletions.
5 changes: 5 additions & 0 deletions t/add-syntax.t
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
use Test::Strict tests => 3; # last test to print

syntax_ok( 'add.cgi' );
strict_ok( 'add.cgi' );
warnings_ok( 'add.cgi' );
5 changes: 5 additions & 0 deletions t/delete-syntax.t
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
use Test::Strict tests => 3; # last test to print

syntax_ok( 'delete.cgi' );
strict_ok( 'delete.cgi' );
warnings_ok( 'delete.cgi' );
5 changes: 5 additions & 0 deletions t/help-syntax.t
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
use Test::Strict tests => 3; # last test to print

syntax_ok( 'help.cgi' );
strict_ok( 'help.cgi' );
warnings_ok( 'help.cgi' );
5 changes: 5 additions & 0 deletions t/index-syntax.t
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
use Test::Strict tests => 3; # last test to print

syntax_ok( 'index.cgi' );
strict_ok( 'index.cgi' );
warnings_ok( 'index.cgi' );
5 changes: 5 additions & 0 deletions t/log_parser-syntax.t
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
use Test::Strict tests => 3; # last test to print

syntax_ok( 'log_parser.pl' );
strict_ok( 'log_parser.pl' );
warnings_ok( 'log_parser.pl' );
5 changes: 5 additions & 0 deletions t/postinstall-syntax.t
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
use Test::Strict tests => 3; # last test to print

syntax_ok( 'postinstall.pl' );
strict_ok( 'postinstall.pl' );
warnings_ok( 'postinstall.pl' );
5 changes: 5 additions & 0 deletions t/virtual_feature-syntax.t
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
use Test::Strict tests => 3; # last test to print

syntax_ok( 'virtual_feature.pl' );
strict_ok( 'virtual_feature.pl' );
warnings_ok( 'virtual_feature.pl' );
5 changes: 5 additions & 0 deletions t/virtualmin-git-lib-syntax.t
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
use Test::Strict tests => 3; # last test to print

syntax_ok( 'virtualmin-git-lib.pl' );
strict_ok( 'virtualmin-git-lib.pl' );
warnings_ok( 'virtualmin-git-lib.pl' );

0 comments on commit 9a34953

Please sign in to comment.