From 62b4c70b4bd56df2737eafae9b4b36feea018862 Mon Sep 17 00:00:00 2001 From: Joe Cooper Date: Thu, 7 Jul 2016 23:51:16 -0700 Subject: [PATCH] strict/warnings and syntax tests --- t/add-syntax.t | 5 +++++ t/add_form-syntax.t | 5 +++++ t/cgi_args-syntax.t | 5 +++++ t/delete-syntax.t | 5 +++++ t/find-syntax.t | 5 +++++ t/index-syntax.t | 5 +++++ t/virtual_feature-syntax.t | 5 +++++ t/virtualmin-htpasswd-lib-syntax.t | 5 +++++ 8 files changed, 40 insertions(+) create mode 100644 t/add-syntax.t create mode 100644 t/add_form-syntax.t create mode 100644 t/cgi_args-syntax.t create mode 100644 t/delete-syntax.t create mode 100644 t/find-syntax.t create mode 100644 t/index-syntax.t create mode 100644 t/virtual_feature-syntax.t create mode 100644 t/virtualmin-htpasswd-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/add_form-syntax.t b/t/add_form-syntax.t new file mode 100644 index 0000000..860d98a --- /dev/null +++ b/t/add_form-syntax.t @@ -0,0 +1,5 @@ +use Test::Strict tests => 3; # last test to print + +syntax_ok( 'add_form.cgi' ); +strict_ok( 'add_form.cgi' ); +warnings_ok( 'add_form.cgi' ); 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/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/find-syntax.t b/t/find-syntax.t new file mode 100644 index 0000000..4412503 --- /dev/null +++ b/t/find-syntax.t @@ -0,0 +1,5 @@ +use Test::Strict tests => 3; # last test to print + +syntax_ok( 'find.cgi' ); +strict_ok( 'find.cgi' ); +warnings_ok( 'find.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/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-htpasswd-lib-syntax.t b/t/virtualmin-htpasswd-lib-syntax.t new file mode 100644 index 0000000..cf4b02d --- /dev/null +++ b/t/virtualmin-htpasswd-lib-syntax.t @@ -0,0 +1,5 @@ +use Test::Strict tests => 3; # last test to print + +syntax_ok( 'virtualmin-htpasswd-lib.pl' ); +strict_ok( 'virtualmin-htpasswd-lib.pl' ); +warnings_ok( 'virtualmin-htpasswd-lib.pl' );