From 6b097978bf15eb5c0d7b93ec7051ea038fa0859b Mon Sep 17 00:00:00 2001 From: Joe Cooper Date: Fri, 8 Jul 2016 00:06:41 -0700 Subject: [PATCH] strict/warnings and syntax tests --- t/acl_security-syntax.t | 5 +++++ t/edit_docs-syntax.t | 5 +++++ t/edit_fcgi-syntax.t | 5 +++++ t/edit_laccess-syntax.t | 5 +++++ t/edit_ldocs-syntax.t | 5 +++++ t/edit_lfcgi-syntax.t | 5 +++++ t/edit_lgzip-syntax.t | 5 +++++ t/edit_location-syntax.t | 5 +++++ t/edit_logs-syntax.t | 5 +++++ t/edit_lproxy-syntax.t | 5 +++++ t/edit_lrewrite-syntax.t | 5 +++++ t/edit_lssi-syntax.t | 5 +++++ t/edit_manual-syntax.t | 5 +++++ t/edit_mime-syntax.t | 5 +++++ t/edit_misc-syntax.t | 5 +++++ t/edit_net-syntax.t | 5 +++++ t/edit_saccess-syntax.t | 5 +++++ t/edit_sdocs-syntax.t | 5 +++++ t/edit_server-syntax.t | 5 +++++ t/edit_sgzip-syntax.t | 5 +++++ t/edit_slogs-syntax.t | 5 +++++ t/edit_sproxy-syntax.t | 5 +++++ t/edit_srewrite-syntax.t | 5 +++++ t/edit_ssi-syntax.t | 5 +++++ t/edit_ssl-syntax.t | 5 +++++ t/edit_sssi-syntax.t | 5 +++++ t/edit_user-syntax.t | 5 +++++ t/fetch-directives-syntax.t | 5 +++++ t/index-syntax.t | 5 +++++ t/list_users-syntax.t | 5 +++++ t/log_parser-syntax.t | 5 +++++ t/php-loop-syntax.t | 5 +++++ t/restart-syntax.t | 5 +++++ t/save_docs-syntax.t | 5 +++++ t/save_fcgi-syntax.t | 5 +++++ t/save_laccess-syntax.t | 5 +++++ t/save_ldocs-syntax.t | 5 +++++ t/save_lfcgi-syntax.t | 5 +++++ t/save_lgzip-syntax.t | 5 +++++ t/save_location-syntax.t | 5 +++++ t/save_logs-syntax.t | 5 +++++ t/save_lproxy-syntax.t | 5 +++++ t/save_lrewrite-syntax.t | 5 +++++ t/save_lssi-syntax.t | 5 +++++ t/save_manual-syntax.t | 5 +++++ t/save_mime-syntax.t | 5 +++++ t/save_misc-syntax.t | 5 +++++ t/save_net-syntax.t | 5 +++++ t/save_saccess-syntax.t | 5 +++++ t/save_sdocs-syntax.t | 5 +++++ t/save_server-syntax.t | 5 +++++ t/save_sgzip-syntax.t | 5 +++++ t/save_slogs-syntax.t | 5 +++++ t/save_sproxy-syntax.t | 5 +++++ t/save_srewrite-syntax.t | 5 +++++ t/save_ssi-syntax.t | 5 +++++ t/save_ssl-syntax.t | 5 +++++ t/save_sssi-syntax.t | 5 +++++ t/save_user-syntax.t | 5 +++++ t/start-syntax.t | 5 +++++ t/status_monitor-syntax.t | 5 +++++ t/stop-syntax.t | 5 +++++ t/virtual_feature-syntax.t | 5 +++++ t/virtualmin-nginx-lib-syntax.t | 5 +++++ 64 files changed, 320 insertions(+) create mode 100644 t/acl_security-syntax.t create mode 100644 t/edit_docs-syntax.t create mode 100644 t/edit_fcgi-syntax.t create mode 100644 t/edit_laccess-syntax.t create mode 100644 t/edit_ldocs-syntax.t create mode 100644 t/edit_lfcgi-syntax.t create mode 100644 t/edit_lgzip-syntax.t create mode 100644 t/edit_location-syntax.t create mode 100644 t/edit_logs-syntax.t create mode 100644 t/edit_lproxy-syntax.t create mode 100644 t/edit_lrewrite-syntax.t create mode 100644 t/edit_lssi-syntax.t create mode 100644 t/edit_manual-syntax.t create mode 100644 t/edit_mime-syntax.t create mode 100644 t/edit_misc-syntax.t create mode 100644 t/edit_net-syntax.t create mode 100644 t/edit_saccess-syntax.t create mode 100644 t/edit_sdocs-syntax.t create mode 100644 t/edit_server-syntax.t create mode 100644 t/edit_sgzip-syntax.t create mode 100644 t/edit_slogs-syntax.t create mode 100644 t/edit_sproxy-syntax.t create mode 100644 t/edit_srewrite-syntax.t create mode 100644 t/edit_ssi-syntax.t create mode 100644 t/edit_ssl-syntax.t create mode 100644 t/edit_sssi-syntax.t create mode 100644 t/edit_user-syntax.t create mode 100644 t/fetch-directives-syntax.t create mode 100644 t/index-syntax.t create mode 100644 t/list_users-syntax.t create mode 100644 t/log_parser-syntax.t create mode 100644 t/php-loop-syntax.t create mode 100644 t/restart-syntax.t create mode 100644 t/save_docs-syntax.t create mode 100644 t/save_fcgi-syntax.t create mode 100644 t/save_laccess-syntax.t create mode 100644 t/save_ldocs-syntax.t create mode 100644 t/save_lfcgi-syntax.t create mode 100644 t/save_lgzip-syntax.t create mode 100644 t/save_location-syntax.t create mode 100644 t/save_logs-syntax.t create mode 100644 t/save_lproxy-syntax.t create mode 100644 t/save_lrewrite-syntax.t create mode 100644 t/save_lssi-syntax.t create mode 100644 t/save_manual-syntax.t create mode 100644 t/save_mime-syntax.t create mode 100644 t/save_misc-syntax.t create mode 100644 t/save_net-syntax.t create mode 100644 t/save_saccess-syntax.t create mode 100644 t/save_sdocs-syntax.t create mode 100644 t/save_server-syntax.t create mode 100644 t/save_sgzip-syntax.t create mode 100644 t/save_slogs-syntax.t create mode 100644 t/save_sproxy-syntax.t create mode 100644 t/save_srewrite-syntax.t create mode 100644 t/save_ssi-syntax.t create mode 100644 t/save_ssl-syntax.t create mode 100644 t/save_sssi-syntax.t create mode 100644 t/save_user-syntax.t create mode 100644 t/start-syntax.t create mode 100644 t/status_monitor-syntax.t create mode 100644 t/stop-syntax.t create mode 100644 t/virtual_feature-syntax.t create mode 100644 t/virtualmin-nginx-lib-syntax.t diff --git a/t/acl_security-syntax.t b/t/acl_security-syntax.t new file mode 100644 index 0000000..696644d --- /dev/null +++ b/t/acl_security-syntax.t @@ -0,0 +1,5 @@ +use Test::Strict tests => 3; # last test to print + +syntax_ok( 'acl_security.pl' ); +strict_ok( 'acl_security.pl' ); +warnings_ok( 'acl_security.pl' ); diff --git a/t/edit_docs-syntax.t b/t/edit_docs-syntax.t new file mode 100644 index 0000000..7104901 --- /dev/null +++ b/t/edit_docs-syntax.t @@ -0,0 +1,5 @@ +use Test::Strict tests => 3; # last test to print + +syntax_ok( 'edit_docs.cgi' ); +strict_ok( 'edit_docs.cgi' ); +warnings_ok( 'edit_docs.cgi' ); diff --git a/t/edit_fcgi-syntax.t b/t/edit_fcgi-syntax.t new file mode 100644 index 0000000..8a8a889 --- /dev/null +++ b/t/edit_fcgi-syntax.t @@ -0,0 +1,5 @@ +use Test::Strict tests => 3; # last test to print + +syntax_ok( 'edit_fcgi.cgi' ); +strict_ok( 'edit_fcgi.cgi' ); +warnings_ok( 'edit_fcgi.cgi' ); diff --git a/t/edit_laccess-syntax.t b/t/edit_laccess-syntax.t new file mode 100644 index 0000000..c1f7303 --- /dev/null +++ b/t/edit_laccess-syntax.t @@ -0,0 +1,5 @@ +use Test::Strict tests => 3; # last test to print + +syntax_ok( 'edit_laccess.cgi' ); +strict_ok( 'edit_laccess.cgi' ); +warnings_ok( 'edit_laccess.cgi' ); diff --git a/t/edit_ldocs-syntax.t b/t/edit_ldocs-syntax.t new file mode 100644 index 0000000..f7e2b75 --- /dev/null +++ b/t/edit_ldocs-syntax.t @@ -0,0 +1,5 @@ +use Test::Strict tests => 3; # last test to print + +syntax_ok( 'edit_ldocs.cgi' ); +strict_ok( 'edit_ldocs.cgi' ); +warnings_ok( 'edit_ldocs.cgi' ); diff --git a/t/edit_lfcgi-syntax.t b/t/edit_lfcgi-syntax.t new file mode 100644 index 0000000..35d626d --- /dev/null +++ b/t/edit_lfcgi-syntax.t @@ -0,0 +1,5 @@ +use Test::Strict tests => 3; # last test to print + +syntax_ok( 'edit_lfcgi.cgi' ); +strict_ok( 'edit_lfcgi.cgi' ); +warnings_ok( 'edit_lfcgi.cgi' ); diff --git a/t/edit_lgzip-syntax.t b/t/edit_lgzip-syntax.t new file mode 100644 index 0000000..91b65f4 --- /dev/null +++ b/t/edit_lgzip-syntax.t @@ -0,0 +1,5 @@ +use Test::Strict tests => 3; # last test to print + +syntax_ok( 'edit_lgzip.cgi' ); +strict_ok( 'edit_lgzip.cgi' ); +warnings_ok( 'edit_lgzip.cgi' ); diff --git a/t/edit_location-syntax.t b/t/edit_location-syntax.t new file mode 100644 index 0000000..65f4096 --- /dev/null +++ b/t/edit_location-syntax.t @@ -0,0 +1,5 @@ +use Test::Strict tests => 3; # last test to print + +syntax_ok( 'edit_location.cgi' ); +strict_ok( 'edit_location.cgi' ); +warnings_ok( 'edit_location.cgi' ); diff --git a/t/edit_logs-syntax.t b/t/edit_logs-syntax.t new file mode 100644 index 0000000..5b3bebc --- /dev/null +++ b/t/edit_logs-syntax.t @@ -0,0 +1,5 @@ +use Test::Strict tests => 3; # last test to print + +syntax_ok( 'edit_logs.cgi' ); +strict_ok( 'edit_logs.cgi' ); +warnings_ok( 'edit_logs.cgi' ); diff --git a/t/edit_lproxy-syntax.t b/t/edit_lproxy-syntax.t new file mode 100644 index 0000000..d0702da --- /dev/null +++ b/t/edit_lproxy-syntax.t @@ -0,0 +1,5 @@ +use Test::Strict tests => 3; # last test to print + +syntax_ok( 'edit_lproxy.cgi' ); +strict_ok( 'edit_lproxy.cgi' ); +warnings_ok( 'edit_lproxy.cgi' ); diff --git a/t/edit_lrewrite-syntax.t b/t/edit_lrewrite-syntax.t new file mode 100644 index 0000000..aca1000 --- /dev/null +++ b/t/edit_lrewrite-syntax.t @@ -0,0 +1,5 @@ +use Test::Strict tests => 3; # last test to print + +syntax_ok( 'edit_lrewrite.cgi' ); +strict_ok( 'edit_lrewrite.cgi' ); +warnings_ok( 'edit_lrewrite.cgi' ); diff --git a/t/edit_lssi-syntax.t b/t/edit_lssi-syntax.t new file mode 100644 index 0000000..4f4a5e2 --- /dev/null +++ b/t/edit_lssi-syntax.t @@ -0,0 +1,5 @@ +use Test::Strict tests => 3; # last test to print + +syntax_ok( 'edit_lssi.cgi' ); +strict_ok( 'edit_lssi.cgi' ); +warnings_ok( 'edit_lssi.cgi' ); diff --git a/t/edit_manual-syntax.t b/t/edit_manual-syntax.t new file mode 100644 index 0000000..801dcd6 --- /dev/null +++ b/t/edit_manual-syntax.t @@ -0,0 +1,5 @@ +use Test::Strict tests => 3; # last test to print + +syntax_ok( 'edit_manual.cgi' ); +strict_ok( 'edit_manual.cgi' ); +warnings_ok( 'edit_manual.cgi' ); diff --git a/t/edit_mime-syntax.t b/t/edit_mime-syntax.t new file mode 100644 index 0000000..39cd3ae --- /dev/null +++ b/t/edit_mime-syntax.t @@ -0,0 +1,5 @@ +use Test::Strict tests => 3; # last test to print + +syntax_ok( 'edit_mime.cgi' ); +strict_ok( 'edit_mime.cgi' ); +warnings_ok( 'edit_mime.cgi' ); diff --git a/t/edit_misc-syntax.t b/t/edit_misc-syntax.t new file mode 100644 index 0000000..b0df61c --- /dev/null +++ b/t/edit_misc-syntax.t @@ -0,0 +1,5 @@ +use Test::Strict tests => 3; # last test to print + +syntax_ok( 'edit_misc.cgi' ); +strict_ok( 'edit_misc.cgi' ); +warnings_ok( 'edit_misc.cgi' ); diff --git a/t/edit_net-syntax.t b/t/edit_net-syntax.t new file mode 100644 index 0000000..4cf2d74 --- /dev/null +++ b/t/edit_net-syntax.t @@ -0,0 +1,5 @@ +use Test::Strict tests => 3; # last test to print + +syntax_ok( 'edit_net.cgi' ); +strict_ok( 'edit_net.cgi' ); +warnings_ok( 'edit_net.cgi' ); diff --git a/t/edit_saccess-syntax.t b/t/edit_saccess-syntax.t new file mode 100644 index 0000000..d6a34b5 --- /dev/null +++ b/t/edit_saccess-syntax.t @@ -0,0 +1,5 @@ +use Test::Strict tests => 3; # last test to print + +syntax_ok( 'edit_saccess.cgi' ); +strict_ok( 'edit_saccess.cgi' ); +warnings_ok( 'edit_saccess.cgi' ); diff --git a/t/edit_sdocs-syntax.t b/t/edit_sdocs-syntax.t new file mode 100644 index 0000000..821be90 --- /dev/null +++ b/t/edit_sdocs-syntax.t @@ -0,0 +1,5 @@ +use Test::Strict tests => 3; # last test to print + +syntax_ok( 'edit_sdocs.cgi' ); +strict_ok( 'edit_sdocs.cgi' ); +warnings_ok( 'edit_sdocs.cgi' ); diff --git a/t/edit_server-syntax.t b/t/edit_server-syntax.t new file mode 100644 index 0000000..a678c11 --- /dev/null +++ b/t/edit_server-syntax.t @@ -0,0 +1,5 @@ +use Test::Strict tests => 3; # last test to print + +syntax_ok( 'edit_server.cgi' ); +strict_ok( 'edit_server.cgi' ); +warnings_ok( 'edit_server.cgi' ); diff --git a/t/edit_sgzip-syntax.t b/t/edit_sgzip-syntax.t new file mode 100644 index 0000000..28f4d67 --- /dev/null +++ b/t/edit_sgzip-syntax.t @@ -0,0 +1,5 @@ +use Test::Strict tests => 3; # last test to print + +syntax_ok( 'edit_sgzip.cgi' ); +strict_ok( 'edit_sgzip.cgi' ); +warnings_ok( 'edit_sgzip.cgi' ); diff --git a/t/edit_slogs-syntax.t b/t/edit_slogs-syntax.t new file mode 100644 index 0000000..1f5cf26 --- /dev/null +++ b/t/edit_slogs-syntax.t @@ -0,0 +1,5 @@ +use Test::Strict tests => 3; # last test to print + +syntax_ok( 'edit_slogs.cgi' ); +strict_ok( 'edit_slogs.cgi' ); +warnings_ok( 'edit_slogs.cgi' ); diff --git a/t/edit_sproxy-syntax.t b/t/edit_sproxy-syntax.t new file mode 100644 index 0000000..d4dcb56 --- /dev/null +++ b/t/edit_sproxy-syntax.t @@ -0,0 +1,5 @@ +use Test::Strict tests => 3; # last test to print + +syntax_ok( 'edit_sproxy.cgi' ); +strict_ok( 'edit_sproxy.cgi' ); +warnings_ok( 'edit_sproxy.cgi' ); diff --git a/t/edit_srewrite-syntax.t b/t/edit_srewrite-syntax.t new file mode 100644 index 0000000..9c51b3e --- /dev/null +++ b/t/edit_srewrite-syntax.t @@ -0,0 +1,5 @@ +use Test::Strict tests => 3; # last test to print + +syntax_ok( 'edit_srewrite.cgi' ); +strict_ok( 'edit_srewrite.cgi' ); +warnings_ok( 'edit_srewrite.cgi' ); diff --git a/t/edit_ssi-syntax.t b/t/edit_ssi-syntax.t new file mode 100644 index 0000000..418b55f --- /dev/null +++ b/t/edit_ssi-syntax.t @@ -0,0 +1,5 @@ +use Test::Strict tests => 3; # last test to print + +syntax_ok( 'edit_ssi.cgi' ); +strict_ok( 'edit_ssi.cgi' ); +warnings_ok( 'edit_ssi.cgi' ); diff --git a/t/edit_ssl-syntax.t b/t/edit_ssl-syntax.t new file mode 100644 index 0000000..71e9e01 --- /dev/null +++ b/t/edit_ssl-syntax.t @@ -0,0 +1,5 @@ +use Test::Strict tests => 3; # last test to print + +syntax_ok( 'edit_ssl.cgi' ); +strict_ok( 'edit_ssl.cgi' ); +warnings_ok( 'edit_ssl.cgi' ); diff --git a/t/edit_sssi-syntax.t b/t/edit_sssi-syntax.t new file mode 100644 index 0000000..0fa823b --- /dev/null +++ b/t/edit_sssi-syntax.t @@ -0,0 +1,5 @@ +use Test::Strict tests => 3; # last test to print + +syntax_ok( 'edit_sssi.cgi' ); +strict_ok( 'edit_sssi.cgi' ); +warnings_ok( 'edit_sssi.cgi' ); diff --git a/t/edit_user-syntax.t b/t/edit_user-syntax.t new file mode 100644 index 0000000..54f6c45 --- /dev/null +++ b/t/edit_user-syntax.t @@ -0,0 +1,5 @@ +use Test::Strict tests => 3; # last test to print + +syntax_ok( 'edit_user.cgi' ); +strict_ok( 'edit_user.cgi' ); +warnings_ok( 'edit_user.cgi' ); diff --git a/t/fetch-directives-syntax.t b/t/fetch-directives-syntax.t new file mode 100644 index 0000000..cc122a2 --- /dev/null +++ b/t/fetch-directives-syntax.t @@ -0,0 +1,5 @@ +use Test::Strict tests => 3; # last test to print + +syntax_ok( 'fetch-directives.pl' ); +strict_ok( 'fetch-directives.pl' ); +warnings_ok( 'fetch-directives.pl' ); 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/list_users-syntax.t b/t/list_users-syntax.t new file mode 100644 index 0000000..ddd3ce2 --- /dev/null +++ b/t/list_users-syntax.t @@ -0,0 +1,5 @@ +use Test::Strict tests => 3; # last test to print + +syntax_ok( 'list_users.cgi' ); +strict_ok( 'list_users.cgi' ); +warnings_ok( 'list_users.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/php-loop-syntax.t b/t/php-loop-syntax.t new file mode 100644 index 0000000..3ab7849 --- /dev/null +++ b/t/php-loop-syntax.t @@ -0,0 +1,5 @@ +use Test::Strict tests => 3; # last test to print + +syntax_ok( 'php-loop.pl' ); +strict_ok( 'php-loop.pl' ); +warnings_ok( 'php-loop.pl' ); diff --git a/t/restart-syntax.t b/t/restart-syntax.t new file mode 100644 index 0000000..deabd7a --- /dev/null +++ b/t/restart-syntax.t @@ -0,0 +1,5 @@ +use Test::Strict tests => 3; # last test to print + +syntax_ok( 'restart.cgi' ); +strict_ok( 'restart.cgi' ); +warnings_ok( 'restart.cgi' ); diff --git a/t/save_docs-syntax.t b/t/save_docs-syntax.t new file mode 100644 index 0000000..2bd9c57 --- /dev/null +++ b/t/save_docs-syntax.t @@ -0,0 +1,5 @@ +use Test::Strict tests => 3; # last test to print + +syntax_ok( 'save_docs.cgi' ); +strict_ok( 'save_docs.cgi' ); +warnings_ok( 'save_docs.cgi' ); diff --git a/t/save_fcgi-syntax.t b/t/save_fcgi-syntax.t new file mode 100644 index 0000000..0112a99 --- /dev/null +++ b/t/save_fcgi-syntax.t @@ -0,0 +1,5 @@ +use Test::Strict tests => 3; # last test to print + +syntax_ok( 'save_fcgi.cgi' ); +strict_ok( 'save_fcgi.cgi' ); +warnings_ok( 'save_fcgi.cgi' ); diff --git a/t/save_laccess-syntax.t b/t/save_laccess-syntax.t new file mode 100644 index 0000000..37614a4 --- /dev/null +++ b/t/save_laccess-syntax.t @@ -0,0 +1,5 @@ +use Test::Strict tests => 3; # last test to print + +syntax_ok( 'save_laccess.cgi' ); +strict_ok( 'save_laccess.cgi' ); +warnings_ok( 'save_laccess.cgi' ); diff --git a/t/save_ldocs-syntax.t b/t/save_ldocs-syntax.t new file mode 100644 index 0000000..526ae84 --- /dev/null +++ b/t/save_ldocs-syntax.t @@ -0,0 +1,5 @@ +use Test::Strict tests => 3; # last test to print + +syntax_ok( 'save_ldocs.cgi' ); +strict_ok( 'save_ldocs.cgi' ); +warnings_ok( 'save_ldocs.cgi' ); diff --git a/t/save_lfcgi-syntax.t b/t/save_lfcgi-syntax.t new file mode 100644 index 0000000..b36cfb3 --- /dev/null +++ b/t/save_lfcgi-syntax.t @@ -0,0 +1,5 @@ +use Test::Strict tests => 3; # last test to print + +syntax_ok( 'save_lfcgi.cgi' ); +strict_ok( 'save_lfcgi.cgi' ); +warnings_ok( 'save_lfcgi.cgi' ); diff --git a/t/save_lgzip-syntax.t b/t/save_lgzip-syntax.t new file mode 100644 index 0000000..dd98edd --- /dev/null +++ b/t/save_lgzip-syntax.t @@ -0,0 +1,5 @@ +use Test::Strict tests => 3; # last test to print + +syntax_ok( 'save_lgzip.cgi' ); +strict_ok( 'save_lgzip.cgi' ); +warnings_ok( 'save_lgzip.cgi' ); diff --git a/t/save_location-syntax.t b/t/save_location-syntax.t new file mode 100644 index 0000000..fde283d --- /dev/null +++ b/t/save_location-syntax.t @@ -0,0 +1,5 @@ +use Test::Strict tests => 3; # last test to print + +syntax_ok( 'save_location.cgi' ); +strict_ok( 'save_location.cgi' ); +warnings_ok( 'save_location.cgi' ); diff --git a/t/save_logs-syntax.t b/t/save_logs-syntax.t new file mode 100644 index 0000000..e6f159c --- /dev/null +++ b/t/save_logs-syntax.t @@ -0,0 +1,5 @@ +use Test::Strict tests => 3; # last test to print + +syntax_ok( 'save_logs.cgi' ); +strict_ok( 'save_logs.cgi' ); +warnings_ok( 'save_logs.cgi' ); diff --git a/t/save_lproxy-syntax.t b/t/save_lproxy-syntax.t new file mode 100644 index 0000000..c66c89c --- /dev/null +++ b/t/save_lproxy-syntax.t @@ -0,0 +1,5 @@ +use Test::Strict tests => 3; # last test to print + +syntax_ok( 'save_lproxy.cgi' ); +strict_ok( 'save_lproxy.cgi' ); +warnings_ok( 'save_lproxy.cgi' ); diff --git a/t/save_lrewrite-syntax.t b/t/save_lrewrite-syntax.t new file mode 100644 index 0000000..c309a93 --- /dev/null +++ b/t/save_lrewrite-syntax.t @@ -0,0 +1,5 @@ +use Test::Strict tests => 3; # last test to print + +syntax_ok( 'save_lrewrite.cgi' ); +strict_ok( 'save_lrewrite.cgi' ); +warnings_ok( 'save_lrewrite.cgi' ); diff --git a/t/save_lssi-syntax.t b/t/save_lssi-syntax.t new file mode 100644 index 0000000..e6ffd79 --- /dev/null +++ b/t/save_lssi-syntax.t @@ -0,0 +1,5 @@ +use Test::Strict tests => 3; # last test to print + +syntax_ok( 'save_lssi.cgi' ); +strict_ok( 'save_lssi.cgi' ); +warnings_ok( 'save_lssi.cgi' ); diff --git a/t/save_manual-syntax.t b/t/save_manual-syntax.t new file mode 100644 index 0000000..af226dd --- /dev/null +++ b/t/save_manual-syntax.t @@ -0,0 +1,5 @@ +use Test::Strict tests => 3; # last test to print + +syntax_ok( 'save_manual.cgi' ); +strict_ok( 'save_manual.cgi' ); +warnings_ok( 'save_manual.cgi' ); diff --git a/t/save_mime-syntax.t b/t/save_mime-syntax.t new file mode 100644 index 0000000..a588330 --- /dev/null +++ b/t/save_mime-syntax.t @@ -0,0 +1,5 @@ +use Test::Strict tests => 3; # last test to print + +syntax_ok( 'save_mime.cgi' ); +strict_ok( 'save_mime.cgi' ); +warnings_ok( 'save_mime.cgi' ); diff --git a/t/save_misc-syntax.t b/t/save_misc-syntax.t new file mode 100644 index 0000000..daf41c1 --- /dev/null +++ b/t/save_misc-syntax.t @@ -0,0 +1,5 @@ +use Test::Strict tests => 3; # last test to print + +syntax_ok( 'save_misc.cgi' ); +strict_ok( 'save_misc.cgi' ); +warnings_ok( 'save_misc.cgi' ); diff --git a/t/save_net-syntax.t b/t/save_net-syntax.t new file mode 100644 index 0000000..7d0f89e --- /dev/null +++ b/t/save_net-syntax.t @@ -0,0 +1,5 @@ +use Test::Strict tests => 3; # last test to print + +syntax_ok( 'save_net.cgi' ); +strict_ok( 'save_net.cgi' ); +warnings_ok( 'save_net.cgi' ); diff --git a/t/save_saccess-syntax.t b/t/save_saccess-syntax.t new file mode 100644 index 0000000..46e658c --- /dev/null +++ b/t/save_saccess-syntax.t @@ -0,0 +1,5 @@ +use Test::Strict tests => 3; # last test to print + +syntax_ok( 'save_saccess.cgi' ); +strict_ok( 'save_saccess.cgi' ); +warnings_ok( 'save_saccess.cgi' ); diff --git a/t/save_sdocs-syntax.t b/t/save_sdocs-syntax.t new file mode 100644 index 0000000..f81e21d --- /dev/null +++ b/t/save_sdocs-syntax.t @@ -0,0 +1,5 @@ +use Test::Strict tests => 3; # last test to print + +syntax_ok( 'save_sdocs.cgi' ); +strict_ok( 'save_sdocs.cgi' ); +warnings_ok( 'save_sdocs.cgi' ); diff --git a/t/save_server-syntax.t b/t/save_server-syntax.t new file mode 100644 index 0000000..0f19503 --- /dev/null +++ b/t/save_server-syntax.t @@ -0,0 +1,5 @@ +use Test::Strict tests => 3; # last test to print + +syntax_ok( 'save_server.cgi' ); +strict_ok( 'save_server.cgi' ); +warnings_ok( 'save_server.cgi' ); diff --git a/t/save_sgzip-syntax.t b/t/save_sgzip-syntax.t new file mode 100644 index 0000000..c9b4c60 --- /dev/null +++ b/t/save_sgzip-syntax.t @@ -0,0 +1,5 @@ +use Test::Strict tests => 3; # last test to print + +syntax_ok( 'save_sgzip.cgi' ); +strict_ok( 'save_sgzip.cgi' ); +warnings_ok( 'save_sgzip.cgi' ); diff --git a/t/save_slogs-syntax.t b/t/save_slogs-syntax.t new file mode 100644 index 0000000..ebbe13f --- /dev/null +++ b/t/save_slogs-syntax.t @@ -0,0 +1,5 @@ +use Test::Strict tests => 3; # last test to print + +syntax_ok( 'save_slogs.cgi' ); +strict_ok( 'save_slogs.cgi' ); +warnings_ok( 'save_slogs.cgi' ); diff --git a/t/save_sproxy-syntax.t b/t/save_sproxy-syntax.t new file mode 100644 index 0000000..a7c7ad6 --- /dev/null +++ b/t/save_sproxy-syntax.t @@ -0,0 +1,5 @@ +use Test::Strict tests => 3; # last test to print + +syntax_ok( 'save_sproxy.cgi' ); +strict_ok( 'save_sproxy.cgi' ); +warnings_ok( 'save_sproxy.cgi' ); diff --git a/t/save_srewrite-syntax.t b/t/save_srewrite-syntax.t new file mode 100644 index 0000000..7fc3ac7 --- /dev/null +++ b/t/save_srewrite-syntax.t @@ -0,0 +1,5 @@ +use Test::Strict tests => 3; # last test to print + +syntax_ok( 'save_srewrite.cgi' ); +strict_ok( 'save_srewrite.cgi' ); +warnings_ok( 'save_srewrite.cgi' ); diff --git a/t/save_ssi-syntax.t b/t/save_ssi-syntax.t new file mode 100644 index 0000000..ff3d8d5 --- /dev/null +++ b/t/save_ssi-syntax.t @@ -0,0 +1,5 @@ +use Test::Strict tests => 3; # last test to print + +syntax_ok( 'save_ssi.cgi' ); +strict_ok( 'save_ssi.cgi' ); +warnings_ok( 'save_ssi.cgi' ); diff --git a/t/save_ssl-syntax.t b/t/save_ssl-syntax.t new file mode 100644 index 0000000..27dbadf --- /dev/null +++ b/t/save_ssl-syntax.t @@ -0,0 +1,5 @@ +use Test::Strict tests => 3; # last test to print + +syntax_ok( 'save_ssl.cgi' ); +strict_ok( 'save_ssl.cgi' ); +warnings_ok( 'save_ssl.cgi' ); diff --git a/t/save_sssi-syntax.t b/t/save_sssi-syntax.t new file mode 100644 index 0000000..1a17dd6 --- /dev/null +++ b/t/save_sssi-syntax.t @@ -0,0 +1,5 @@ +use Test::Strict tests => 3; # last test to print + +syntax_ok( 'save_sssi.cgi' ); +strict_ok( 'save_sssi.cgi' ); +warnings_ok( 'save_sssi.cgi' ); diff --git a/t/save_user-syntax.t b/t/save_user-syntax.t new file mode 100644 index 0000000..e60f523 --- /dev/null +++ b/t/save_user-syntax.t @@ -0,0 +1,5 @@ +use Test::Strict tests => 3; # last test to print + +syntax_ok( 'save_user.cgi' ); +strict_ok( 'save_user.cgi' ); +warnings_ok( 'save_user.cgi' ); diff --git a/t/start-syntax.t b/t/start-syntax.t new file mode 100644 index 0000000..995b9be --- /dev/null +++ b/t/start-syntax.t @@ -0,0 +1,5 @@ +use Test::Strict tests => 3; # last test to print + +syntax_ok( 'start.cgi' ); +strict_ok( 'start.cgi' ); +warnings_ok( 'start.cgi' ); diff --git a/t/status_monitor-syntax.t b/t/status_monitor-syntax.t new file mode 100644 index 0000000..6b4966f --- /dev/null +++ b/t/status_monitor-syntax.t @@ -0,0 +1,5 @@ +use Test::Strict tests => 3; # last test to print + +syntax_ok( 'status_monitor.pl' ); +strict_ok( 'status_monitor.pl' ); +warnings_ok( 'status_monitor.pl' ); diff --git a/t/stop-syntax.t b/t/stop-syntax.t new file mode 100644 index 0000000..6418349 --- /dev/null +++ b/t/stop-syntax.t @@ -0,0 +1,5 @@ +use Test::Strict tests => 3; # last test to print + +syntax_ok( 'stop.cgi' ); +strict_ok( 'stop.cgi' ); +warnings_ok( 'stop.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-nginx-lib-syntax.t b/t/virtualmin-nginx-lib-syntax.t new file mode 100644 index 0000000..a2b297a --- /dev/null +++ b/t/virtualmin-nginx-lib-syntax.t @@ -0,0 +1,5 @@ +use Test::Strict tests => 3; # last test to print + +syntax_ok( 'virtualmin-nginx-lib.pl' ); +strict_ok( 'virtualmin-nginx-lib.pl' ); +warnings_ok( 'virtualmin-nginx-lib.pl' );