From e375e39369315c3135384f220ea93fc7e6a9cd93 Mon Sep 17 00:00:00 2001 From: Joe Cooper Date: Thu, 7 Jul 2016 23:53:55 -0700 Subject: [PATCH] strict/warnings and syntax tests --- t/cgi_args-syntax.t | 5 +++++ t/edit-syntax.t | 5 +++++ t/edit_tmpl-syntax.t | 5 +++++ t/index-syntax.t | 5 +++++ t/mass-syntax.t | 5 +++++ t/save-syntax.t | 5 +++++ t/save_tmpl-syntax.t | 5 +++++ t/virtual_feature-syntax.t | 5 +++++ t/virtualmin-init-lib-syntax.t | 5 +++++ 9 files changed, 45 insertions(+) create mode 100644 t/cgi_args-syntax.t create mode 100644 t/edit-syntax.t create mode 100644 t/edit_tmpl-syntax.t create mode 100644 t/index-syntax.t create mode 100644 t/mass-syntax.t create mode 100644 t/save-syntax.t create mode 100644 t/save_tmpl-syntax.t create mode 100644 t/virtual_feature-syntax.t create mode 100644 t/virtualmin-init-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/edit_tmpl-syntax.t b/t/edit_tmpl-syntax.t new file mode 100644 index 0000000..4d81c43 --- /dev/null +++ b/t/edit_tmpl-syntax.t @@ -0,0 +1,5 @@ +use Test::Strict tests => 3; # last test to print + +syntax_ok( 'edit_tmpl.cgi' ); +strict_ok( 'edit_tmpl.cgi' ); +warnings_ok( 'edit_tmpl.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/mass-syntax.t b/t/mass-syntax.t new file mode 100644 index 0000000..782eedb --- /dev/null +++ b/t/mass-syntax.t @@ -0,0 +1,5 @@ +use Test::Strict tests => 3; # last test to print + +syntax_ok( 'mass.cgi' ); +strict_ok( 'mass.cgi' ); +warnings_ok( 'mass.cgi' ); 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/save_tmpl-syntax.t b/t/save_tmpl-syntax.t new file mode 100644 index 0000000..4bd5522 --- /dev/null +++ b/t/save_tmpl-syntax.t @@ -0,0 +1,5 @@ +use Test::Strict tests => 3; # last test to print + +syntax_ok( 'save_tmpl.cgi' ); +strict_ok( 'save_tmpl.cgi' ); +warnings_ok( 'save_tmpl.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-init-lib-syntax.t b/t/virtualmin-init-lib-syntax.t new file mode 100644 index 0000000..dced984 --- /dev/null +++ b/t/virtualmin-init-lib-syntax.t @@ -0,0 +1,5 @@ +use Test::Strict tests => 3; # last test to print + +syntax_ok( 'virtualmin-init-lib.pl' ); +strict_ok( 'virtualmin-init-lib.pl' ); +warnings_ok( 'virtualmin-init-lib.pl' );