From 9909e2b96723459e82683d1548e8d48d055ee300 Mon Sep 17 00:00:00 2001 From: Joe Cooper Date: Fri, 8 Jul 2016 00:26:37 -0700 Subject: [PATCH] strict/warnings and syntax tests --- t/index-syntax.t | 5 +++++ t/virtual_feature-syntax.t | 5 +++++ t/virtualmin-sqlite-lib-syntax.t | 5 +++++ 3 files changed, 15 insertions(+) create mode 100644 t/index-syntax.t create mode 100644 t/virtual_feature-syntax.t create mode 100644 t/virtualmin-sqlite-lib-syntax.t 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-sqlite-lib-syntax.t b/t/virtualmin-sqlite-lib-syntax.t new file mode 100644 index 0000000..69813b9 --- /dev/null +++ b/t/virtualmin-sqlite-lib-syntax.t @@ -0,0 +1,5 @@ +use Test::Strict tests => 3; # last test to print + +syntax_ok( 'virtualmin-sqlite-lib.pl' ); +strict_ok( 'virtualmin-sqlite-lib.pl' ); +warnings_ok( 'virtualmin-sqlite-lib.pl' );