View | Details | Raw Unified | Return to bug 13264
Collapse All | Expand All

(-)a/t/db_dependent/www/auth_values_input_www.t (-23 / +13 lines)
Lines 1-22 Link Here
1
#!/usr/bin/perl
1
#!/usr/bin/perl
2
2
3
# Copyright 2012 C & P Bibliography Services
3
# This file is part of Koha.
4
#
4
#
5
# This is free software; you can redistribute it and/or modify it under the
5
# Koha is free software; you can redistribute it and/or modify it
6
# terms of the GNU General Public License as published by the Free Software
6
# under the terms of the GNU General Public License as published by
7
# Foundation; either version 2 of the License, or (at your option) any later
7
# the Free Software Foundation; either version 3 of the License, or
8
# version.
8
# (at your option) any later version.
9
#
9
#
10
# This is distributed in the hope that it will be useful, but WITHOUT ANY
10
# Koha is distributed in the hope that it will be useful, but
11
# WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR
11
# WITHOUT ANY WARRANTY; without even the implied warranty of
12
# A PARTICULAR PURPOSE.  See the GNU General Public License for more details.
12
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
13
#
13
# GNU General Public License for more details.
14
# You should have received a copy of the GNU General Public License along with
15
# Koha; if not, write to the Free Software Foundation, Inc., 59 Temple Place,
16
# Suite 330, Boston, MA  02111-1307 USA
17
#
14
#
15
# You should have received a copy of the GNU General Public License
16
# along with Koha; if not, see <http://www.gnu.org/licenses>.
18
17
19
use Modern::Perl;
18
use Modern::Perl;
19
20
use utf8;
20
use utf8;
21
use Test::More;
21
use Test::More;
22
use Test::WWW::Mechanize;
22
use Test::WWW::Mechanize;
Lines 45-57 my $user = $ENV{KOHA_USER} || $xml->{config}->{user}; Link Here
45
my $password = $ENV{KOHA_PASS} || $xml->{config}->{pass};
45
my $password = $ENV{KOHA_PASS} || $xml->{config}->{pass};
46
my $intranet = $ENV{KOHA_INTRANET_URL};
46
my $intranet = $ENV{KOHA_INTRANET_URL};
47
47
48
my $mysql_on = ProgProcesses('mysql');
49
50
51
if ($mysql_on < 2) {
52
    plan skip_all => "Tests skip. You must start Mysql to do those tests\n";
53
}
54
55
if (not defined $intranet) {
48
if (not defined $intranet) {
56
    plan skip_all => "Tests skip. You must set env. variable KOHA_INTRANET_URL to do tests\n";
49
    plan skip_all => "Tests skip. You must set env. variable KOHA_INTRANET_URL to do tests\n";
57
}
50
}
Lines 107-112 if ($id_to_del) { Link Here
107
100
108
done_testing();
101
done_testing();
109
102
110
sub ProgProcesses {
103
1;
111
   return scalar grep /$_[0]/, (split /\n/, `ps -aef`);
112
}
113
- 

Return to bug 13264