From 9a349531b6a3281883d95291c4bf7c867271e1b0 Mon Sep 17 00:00:00 2001 From: Joe Cooper Date: Thu, 7 Jul 2016 23:44:14 -0700 Subject: [PATCH] strict/warnings and syntax tests --- t/add-syntax.t | 5 +++++ t/delete-syntax.t | 5 +++++ t/help-syntax.t | 5 +++++ t/index-syntax.t | 5 +++++ t/log_parser-syntax.t | 5 +++++ t/postinstall-syntax.t | 5 +++++ t/virtual_feature-syntax.t | 5 +++++ t/virtualmin-git-lib-syntax.t | 5 +++++ 8 files changed, 40 insertions(+) create mode 100644 t/add-syntax.t create mode 100644 t/delete-syntax.t create mode 100644 t/help-syntax.t create mode 100644 t/index-syntax.t create mode 100644 t/log_parser-syntax.t create mode 100644 t/postinstall-syntax.t create mode 100644 t/virtual_feature-syntax.t create mode 100644 t/virtualmin-git-lib-syntax.t diff --git a/t/add-syntax.t b/t/add-syntax.t new file mode 100644 index 0000000..2a49e9c --- /dev/null +++ b/t/add-syntax.t @@ -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' ); diff --git a/t/delete-syntax.t b/t/delete-syntax.t new file mode 100644 index 0000000..8810478 --- /dev/null +++ b/t/delete-syntax.t @@ -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' ); diff --git a/t/help-syntax.t b/t/help-syntax.t new file mode 100644 index 0000000..1388ea1 --- /dev/null +++ b/t/help-syntax.t @@ -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' ); diff --git a/t/index-syntax.t b/t/index-syntax.t new file mode 100644 index 0000000..7a1bbba --- /dev/null +++ b/t/index-syntax.t @@ -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' ); diff --git a/t/log_parser-syntax.t b/t/log_parser-syntax.t new file mode 100644 index 0000000..e67d554 --- /dev/null +++ b/t/log_parser-syntax.t @@ -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' ); diff --git a/t/postinstall-syntax.t b/t/postinstall-syntax.t new file mode 100644 index 0000000..3fef351 --- /dev/null +++ b/t/postinstall-syntax.t @@ -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' ); diff --git a/t/virtual_feature-syntax.t b/t/virtual_feature-syntax.t new file mode 100644 index 0000000..0825ca8 --- /dev/null +++ b/t/virtual_feature-syntax.t @@ -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' ); diff --git a/t/virtualmin-git-lib-syntax.t b/t/virtualmin-git-lib-syntax.t new file mode 100644 index 0000000..7c24893 --- /dev/null +++ b/t/virtualmin-git-lib-syntax.t @@ -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' );