diff --git a/lemonldap-ng-portal/t/20-Auth-DBI-utf8.t b/lemonldap-ng-portal/t/20-Auth-DBI-utf8.t index 7bf7079b2..2ec22c73d 100644 --- a/lemonldap-ng-portal/t/20-Auth-DBI-utf8.t +++ b/lemonldap-ng-portal/t/20-Auth-DBI-utf8.t @@ -5,14 +5,14 @@ use IO::String; require 't/test-lib.pm'; my $res; -my $mainTests = 8; +my $maintests = 8; eval { unlink 't/userdb.db' }; SKIP: { eval { require DBI; require DBD::SQLite; }; if ($@) { - skip 'DBD::SQLite not found', $mainTests; + skip 'DBD::SQLite not found', $maintests; } my $dbh = DBI->connect("dbi:SQLite:dbname=t/userdb.db"); $dbh->do('CREATE TABLE users (user text,password text,cn text)'); @@ -85,5 +85,5 @@ SKIP: { clean_sessions(); } eval { unlink 't/userdb.db' }; -count($mainTests); +count($maintests); done_testing( count() ); diff --git a/lemonldap-ng-portal/t/20-Auth-and-password-DBI-dynamic-hash.t b/lemonldap-ng-portal/t/20-Auth-and-password-DBI-dynamic-hash.t index 5b80f2064..ef3cc4b82 100644 --- a/lemonldap-ng-portal/t/20-Auth-and-password-DBI-dynamic-hash.t +++ b/lemonldap-ng-portal/t/20-Auth-and-password-DBI-dynamic-hash.t @@ -81,14 +81,14 @@ use IO::String; require 't/test-lib.pm'; my $res; -my $mainTests = 6; +my $maintests = 6; eval { unlink 't/userdb.db' }; SKIP: { eval { require DBI; require DBD::SQLite; use Digest::SHA }; if ($@) { - skip 'DBD::SQLite not found', $mainTests; + skip 'DBD::SQLite not found', $maintests; } my $dbh = DBI->connect("dbi:SQLite:dbname=t/userdb.db"); @@ -202,5 +202,5 @@ SKIP: { clean_sessions(); } eval { unlink 't/userdb.db' }; -count($mainTests); +count($maintests); done_testing( count() ); diff --git a/lemonldap-ng-portal/t/20-Auth-and-password-DBI.t b/lemonldap-ng-portal/t/20-Auth-and-password-DBI.t index 7362e2576..817c775bb 100644 --- a/lemonldap-ng-portal/t/20-Auth-and-password-DBI.t +++ b/lemonldap-ng-portal/t/20-Auth-and-password-DBI.t @@ -5,14 +5,14 @@ use IO::String; require 't/test-lib.pm'; my $res; -my $mainTests = 3; +my $maintests = 3; eval { unlink 't/userdb.db' }; SKIP: { eval { require DBI; require DBD::SQLite; }; if ($@) { - skip 'DBD::SQLite not found', $mainTests; + skip 'DBD::SQLite not found', $maintests; } my $dbh = DBI->connect("dbi:SQLite:dbname=t/userdb.db"); $dbh->do('CREATE TABLE users (user text,password text,name text)'); @@ -80,5 +80,5 @@ SKIP: { clean_sessions(); } eval { unlink 't/userdb.db' }; -count($mainTests); +count($maintests); done_testing( count() ); diff --git a/lemonldap-ng-portal/t/21-Auth-LDAP-utf8.t b/lemonldap-ng-portal/t/21-Auth-LDAP-utf8.t index f47a90d6b..c36fe04cc 100644 --- a/lemonldap-ng-portal/t/21-Auth-LDAP-utf8.t +++ b/lemonldap-ng-portal/t/21-Auth-LDAP-utf8.t @@ -5,10 +5,10 @@ use IO::String; require 't/test-lib.pm'; my $res; -my $mainTests = 8; +my $maintests = 8; SKIP: { - skip 'LLNGTESTLDAP is not set', $mainTests unless ( $ENV{LLNGTESTLDAP} ); + skip 'LLNGTESTLDAP is not set', $maintests unless ( $ENV{LLNGTESTLDAP} ); require 't/test-ldap.pm'; my $client = LLNG::Manager::Test->new( @@ -78,6 +78,6 @@ SKIP: { clean_sessions(); } -count($mainTests); +count($maintests); stopLdapServer() if $ENV{LLNGTESTLDAP}; done_testing( count() ); diff --git a/lemonldap-ng-portal/t/21-Auth-and-password-LDAP.t b/lemonldap-ng-portal/t/21-Auth-and-password-LDAP.t index 7181b7af3..4ad7c2860 100644 --- a/lemonldap-ng-portal/t/21-Auth-and-password-LDAP.t +++ b/lemonldap-ng-portal/t/21-Auth-and-password-LDAP.t @@ -5,10 +5,10 @@ use IO::String; require 't/test-lib.pm'; my $res; -my $mainTests = 3; +my $maintests = 3; SKIP: { - skip 'LLNGTESTLDAP is not set', $mainTests unless ( $ENV{LLNGTESTLDAP} ); + skip 'LLNGTESTLDAP is not set', $maintests unless ( $ENV{LLNGTESTLDAP} ); require 't/test-ldap.pm'; my $client = LLNG::Manager::Test->new( @@ -73,6 +73,6 @@ SKIP: { $client->logout($id); clean_sessions(); } -count($mainTests); +count($maintests); stopLdapServer() if $ENV{LLNGTESTLDAP}; done_testing( count() ); diff --git a/lemonldap-ng-portal/t/22-Auth-and-password-AD.t b/lemonldap-ng-portal/t/22-Auth-and-password-AD.t index 5742665f5..727d36b3b 100644 --- a/lemonldap-ng-portal/t/22-Auth-and-password-AD.t +++ b/lemonldap-ng-portal/t/22-Auth-and-password-AD.t @@ -5,10 +5,10 @@ use IO::String; require 't/test-lib.pm'; my $res; -my $mainTests = 1; +my $maintests = 1; SKIP: { - skip 'No AD server given', $mainTests unless ( $ENV{ADSERVER} ); + skip 'No AD server given', $maintests unless ( $ENV{ADSERVER} ); my $client = LLNG::Manager::Test->new( { @@ -45,5 +45,5 @@ SKIP: { clean_sessions(); } -count($mainTests); +count($maintests); done_testing( count() ); diff --git a/lemonldap-ng-portal/t/27-AuthProxy.t b/lemonldap-ng-portal/t/27-AuthProxy.t index bb1ea0cd7..8ce3eb080 100644 --- a/lemonldap-ng-portal/t/27-AuthProxy.t +++ b/lemonldap-ng-portal/t/27-AuthProxy.t @@ -3,11 +3,11 @@ use strict; use IO::String; my $res; -my $mainTests = 2; +my $maintests = 2; require 't/test-lib.pm'; SKIP: { - skip 'REMOTELLNG is not set', $mainTests unless ( $ENV{REMOTELLNG} ); + skip 'REMOTELLNG is not set', $maintests unless ( $ENV{REMOTELLNG} ); my $client = LLNG::Manager::Test->new( { ini => { @@ -33,5 +33,5 @@ SKIP: { $client->logout($id); clean_sessions(); } -count($mainTests); +count($maintests); done_testing( count() ); diff --git a/lemonldap-ng-portal/t/28-AuthChoice.t b/lemonldap-ng-portal/t/28-AuthChoice.t index 2bf3e12f0..6ae08d7b2 100644 --- a/lemonldap-ng-portal/t/28-AuthChoice.t +++ b/lemonldap-ng-portal/t/28-AuthChoice.t @@ -5,16 +5,16 @@ use IO::String; require 't/test-lib.pm'; my $res; -my $mainTests = 2; +my $maintests = 2; eval { unlink 't/userdb.db' }; SKIP: { eval { require DBI; require DBD::SQLite; }; if ($@) { - skip 'DBD::SQLite not found', $mainTests; + skip 'DBD::SQLite not found', $maintests; } - skip 'LLNGTESTLDAP is not set', $mainTests unless ( $ENV{LLNGTESTLDAP} ); + skip 'LLNGTESTLDAP is not set', $maintests unless ( $ENV{LLNGTESTLDAP} ); require 't/test-ldap.pm'; my $dbh = DBI->connect("dbi:SQLite:dbname=t/userdb.db"); $dbh->do('CREATE TABLE users (user text,password text,name text)'); @@ -73,7 +73,7 @@ SKIP: { clean_sessions(); } -count($mainTests); +count($maintests); eval { unlink 't/userdb.db' }; stopLdapServer() if $ENV{LLNGTESTLDAP}; clean_sessions(); diff --git a/lemonldap-ng-portal/t/30-SAML-ReAuth-with-choice.t b/lemonldap-ng-portal/t/30-SAML-ReAuth-with-choice.t index 9dc1ffb41..c9d3c9e42 100644 --- a/lemonldap-ng-portal/t/30-SAML-ReAuth-with-choice.t +++ b/lemonldap-ng-portal/t/30-SAML-ReAuth-with-choice.t @@ -9,7 +9,7 @@ BEGIN { } eval { unlink 't/userdb.db' }; -my $mainTests = 16; +my $maintests = 16; my $debug = 'error'; my ( $issuer, $sp, $res ); my %handlerOR = ( issuer => [], sp => [] ); @@ -17,11 +17,11 @@ my %handlerOR = ( issuer => [], sp => [] ); SKIP: { eval "use Lasso"; if ($@) { - skip 'Lasso not found', $mainTests; + skip 'Lasso not found', $maintests; } eval { require DBI; require DBD::SQLite; }; if ($@) { - skip 'DBD::SQLite not found', $mainTests; + skip 'DBD::SQLite not found', $maintests; } my $dbh = DBI->connect("dbi:SQLite:dbname=t/userdb.db"); $dbh->do('CREATE TABLE users (user text,password text,name text,uid text,cn text,mail text)'); @@ -176,7 +176,7 @@ SKIP: { clean_sessions(); } -count($mainTests); +count($maintests); eval { unlink 't/userdb.db' }; done_testing( count() ); diff --git a/lemonldap-ng-portal/t/31-Auth-and-issuer-CAS-with-choice.t b/lemonldap-ng-portal/t/31-Auth-and-issuer-CAS-with-choice.t index bb9f28748..1cb1c8f7a 100644 --- a/lemonldap-ng-portal/t/31-Auth-and-issuer-CAS-with-choice.t +++ b/lemonldap-ng-portal/t/31-Auth-and-issuer-CAS-with-choice.t @@ -8,7 +8,7 @@ BEGIN { } eval { unlink 't/userdb.db' }; -my $mainTests = 14; +my $maintests = 14; my $debug = 'error'; my ( $issuer, $sp, $res ); my %handlerOR = ( issuer => [], sp => [] ); @@ -18,7 +18,7 @@ no warnings 'redefine'; SKIP: { eval { require DBI; require DBD::SQLite; }; if ($@) { - skip 'DBD::SQLite not found', $mainTests; + skip 'DBD::SQLite not found', $maintests; } my $dbh = DBI->connect("dbi:SQLite:dbname=t/userdb.db"); $dbh->do( @@ -163,7 +163,7 @@ SKIP: { clean_sessions(); } -count($mainTests); +count($maintests); eval { unlink 't/userdb.db' }; done_testing( count() ); diff --git a/lemonldap-ng-portal/t/32-Auth-and-issuer-OIDC-authorization_code-with-authchoice.t b/lemonldap-ng-portal/t/32-Auth-and-issuer-OIDC-authorization_code-with-authchoice.t index 133e5ac8d..ac0b685b3 100644 --- a/lemonldap-ng-portal/t/32-Auth-and-issuer-OIDC-authorization_code-with-authchoice.t +++ b/lemonldap-ng-portal/t/32-Auth-and-issuer-OIDC-authorization_code-with-authchoice.t @@ -8,14 +8,14 @@ BEGIN { } my $debug = 'error'; -my $mainTests = 18; +my $maintests = 18; my ( $op, $rp, $res ); my %handlerOR = ( op => [], rp => [] ); SKIP: { eval { require DBI; require DBD::SQLite; }; if ($@) { - skip 'DBD::SQLite not found', $mainTests; + skip 'DBD::SQLite not found', $maintests; } my $dbh = DBI->connect("dbi:SQLite:dbname=t/userdb.db"); $dbh->do('CREATE TABLE users (user text,password text,name text)'); @@ -182,7 +182,7 @@ SKIP: { #print STDERR Dumper($res); -count($mainTests); +count($maintests); eval { unlink 't/userdb.db' }; done_testing( count() ); diff --git a/lemonldap-ng-portal/t/36-Combination-with-over.t b/lemonldap-ng-portal/t/36-Combination-with-over.t index 50e8506ba..b3d746a30 100644 --- a/lemonldap-ng-portal/t/36-Combination-with-over.t +++ b/lemonldap-ng-portal/t/36-Combination-with-over.t @@ -5,7 +5,7 @@ use IO::String; require 't/test-lib.pm'; my $res; -my $mainTests = 0; +my $maintests = 0; my $client; eval { unlink 't/userdb.db' }; @@ -13,7 +13,7 @@ eval { unlink 't/userdb.db' }; SKIP: { eval { require DBI; require DBD::SQLite; }; if ($@) { - skip 'DBD::SQLite not found', $mainTests; + skip 'DBD::SQLite not found', $maintests; } my $dbh = DBI->connect("dbi:SQLite:dbname=t/userdb.db"); $dbh->do('CREATE TABLE users (user text,password text,name text)'); @@ -24,7 +24,7 @@ SKIP: { expectCookie( try('dwho') ); expectCookie( try('dvador') ); } -count($mainTests); +count($maintests); clean_sessions(); eval { unlink 't/userdb.db' }; done_testing( count() ); diff --git a/lemonldap-ng-portal/t/36-Combination-with-token.t b/lemonldap-ng-portal/t/36-Combination-with-token.t index a5772d19d..7ef2fd32a 100644 --- a/lemonldap-ng-portal/t/36-Combination-with-token.t +++ b/lemonldap-ng-portal/t/36-Combination-with-token.t @@ -5,7 +5,7 @@ use IO::String; require 't/test-lib.pm'; my $res; -my $mainTests = 0; +my $maintests = 0; my $client; eval { unlink 't/userdb.db' }; @@ -13,7 +13,7 @@ eval { unlink 't/userdb.db' }; SKIP: { eval { require DBI; require DBD::SQLite; }; if ($@) { - skip 'DBD::SQLite not found', $mainTests; + skip 'DBD::SQLite not found', $maintests; } my $dbh = DBI->connect("dbi:SQLite:dbname=t/userdb.db"); $dbh->do('CREATE TABLE users (user text,password text,name text)'); @@ -39,7 +39,7 @@ SKIP: { expectCookie( try('dvador') ); expectReject( try('dwho'), 5 ); } -count($mainTests); +count($maintests); clean_sessions(); eval { unlink 't/userdb.db' }; done_testing( count() ); diff --git a/lemonldap-ng-portal/t/36-Combination.t b/lemonldap-ng-portal/t/36-Combination.t index 4c54a8d10..8d0878ef1 100644 --- a/lemonldap-ng-portal/t/36-Combination.t +++ b/lemonldap-ng-portal/t/36-Combination.t @@ -5,7 +5,7 @@ use IO::String; require 't/test-lib.pm'; my $res; -my $mainTests = 0; +my $maintests = 0; my $client; eval { unlink 't/userdb.db' }; @@ -13,7 +13,7 @@ eval { unlink 't/userdb.db' }; SKIP: { eval { require DBI; require DBD::SQLite; }; if ($@) { - skip 'DBD::SQLite not found', $mainTests; + skip 'DBD::SQLite not found', $maintests; } my $dbh = DBI->connect("dbi:SQLite:dbname=t/userdb.db"); $dbh->do('CREATE TABLE users (user text,password text,name text)'); @@ -39,7 +39,7 @@ SKIP: { expectCookie( try('dvador') ); expectReject( try('dwho') ); } -count($mainTests); +count($maintests); clean_sessions(); eval { unlink 't/userdb.db' }; done_testing( count() ); diff --git a/lemonldap-ng-portal/t/40-Notifications-JSON-DBI.t b/lemonldap-ng-portal/t/40-Notifications-JSON-DBI.t index 0e661fe47..055327d4b 100644 --- a/lemonldap-ng-portal/t/40-Notifications-JSON-DBI.t +++ b/lemonldap-ng-portal/t/40-Notifications-JSON-DBI.t @@ -4,14 +4,14 @@ use IO::String; my $res; my $file = 't/notifications.db'; -my $mainTests = 6; +my $maintests = 6; eval { unlink $file }; require 't/test-lib.pm'; SKIP: { eval { require DBI; require DBD::SQLite; }; if ($@) { - skip 'DBD::SQLite not found', $mainTests; + skip 'DBD::SQLite not found', $maintests; } my $dbh = DBI->connect("dbi:SQLite:dbname=$file"); @@ -122,6 +122,6 @@ q{INSERT INTO notifications VALUES ('dwho','testref','2016-05-30 00:00:00',?,nul } -count($mainTests); +count($maintests); done_testing( count() ); diff --git a/lemonldap-ng-portal/t/40-Notifications-XML-DBI.t b/lemonldap-ng-portal/t/40-Notifications-XML-DBI.t index d622d3275..fdc48f792 100644 --- a/lemonldap-ng-portal/t/40-Notifications-XML-DBI.t +++ b/lemonldap-ng-portal/t/40-Notifications-XML-DBI.t @@ -4,7 +4,7 @@ use IO::String; my $res; my $file = 't/notifications.db'; -my $mainTests = 6; +my $maintests = 6; eval { unlink $file }; require 't/test-lib.pm'; @@ -16,7 +16,7 @@ SKIP: { require XML::LibXSLT; }; if ($@) { - skip 'DBD::SQLite or XML::Lib* not found', $mainTests; + skip 'DBD::SQLite or XML::Lib* not found', $maintests; } my $dbh = DBI->connect("dbi:SQLite:dbname=$file"); @@ -121,6 +121,6 @@ qq{INSERT INTO notifications VALUES ('dwho','testref','2016-05-30 00:00:00',' $file" or die($!); @@ -108,5 +108,5 @@ SKIP: { } -count($mainTests); +count($maintests); done_testing( count() );