From e8829bbc9a641612113be9c8aaa9549e05f14482 Mon Sep 17 00:00:00 2001 From: Joe Cooper Date: Thu, 7 Jul 2016 23:45:00 -0700 Subject: [PATCH] strict/warnings and syntax tests --- t/cgi_args-syntax.t | 5 +++++ t/edit-syntax.t | 5 +++++ t/index-syntax.t | 5 +++++ t/log_parser-syntax.t | 5 +++++ t/postinstall-syntax.t | 5 +++++ t/save-syntax.t | 5 +++++ t/virtual_feature-syntax.t | 5 +++++ t/virtualmin-google-analytics-lib-syntax.t | 5 +++++ 8 files changed, 40 insertions(+) create mode 100644 t/cgi_args-syntax.t create mode 100644 t/edit-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/save-syntax.t create mode 100644 t/virtual_feature-syntax.t create mode 100644 t/virtualmin-google-analytics-lib-syntax.t diff --git a/t/cgi_args-syntax.t b/t/cgi_args-syntax.t new file mode 100644 index 0000000..e18fa74 --- /dev/null +++ b/t/cgi_args-syntax.t @@ -0,0 +1,5 @@ +use Test::Strict tests => 3; # last test to print + +syntax_ok( 'cgi_args.pl' ); +strict_ok( 'cgi_args.pl' ); +warnings_ok( 'cgi_args.pl' ); diff --git a/t/edit-syntax.t b/t/edit-syntax.t new file mode 100644 index 0000000..9cfc6c9 --- /dev/null +++ b/t/edit-syntax.t @@ -0,0 +1,5 @@ +use Test::Strict tests => 3; # last test to print + +syntax_ok( 'edit.cgi' ); +strict_ok( 'edit.cgi' ); +warnings_ok( 'edit.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/save-syntax.t b/t/save-syntax.t new file mode 100644 index 0000000..9d9586e --- /dev/null +++ b/t/save-syntax.t @@ -0,0 +1,5 @@ +use Test::Strict tests => 3; # last test to print + +syntax_ok( 'save.cgi' ); +strict_ok( 'save.cgi' ); +warnings_ok( 'save.cgi' ); 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-google-analytics-lib-syntax.t b/t/virtualmin-google-analytics-lib-syntax.t new file mode 100644 index 0000000..c58e25e --- /dev/null +++ b/t/virtualmin-google-analytics-lib-syntax.t @@ -0,0 +1,5 @@ +use Test::Strict tests => 3; # last test to print + +syntax_ok( 'virtualmin-google-analytics-lib.pl' ); +strict_ok( 'virtualmin-google-analytics-lib.pl' ); +warnings_ok( 'virtualmin-google-analytics-lib.pl' );