Bug 16361

Error-prone detection of library directory for Testopia 2.3...
Or apache2ctl start fails :-(


git-svn-id: svn://svn.office.custis.ru/3rdparty/bugzilla.org/trunk@616 6955db30-a419-402b-8a0d-67ecbb4d7f56
master
vfilippov 2009-12-29 17:57:36 +00:00
parent 76cdf13954
commit aba364961e
48 changed files with 130 additions and 87 deletions

View File

@ -1,3 +0,0 @@
Order deny,allow
Deny from all
Allow from none

View File

@ -24,11 +24,12 @@ package extensions::testopia::lib::Testopia::WebService::Build;
use strict;
use base qw(Bugzilla::WebService);
use lib qw(./extensions/testopia/lib);
use Bugzilla::Error;
use Bugzilla::Constants;
use lib (bz_locations()->{extensionsdir} . '/testopia/lib');
use Testopia::Build;
use Testopia::Product;

View File

@ -24,11 +24,12 @@ package extensions::testopia::lib::Testopia::WebService::Environment;
use strict;
use base qw(Bugzilla::WebService);
use lib qw(./extensions/testopia/lib);
use Bugzilla::Constants;
use Bugzilla::Error;
use lib (bz_locations()->{extensionsdir} . '/testopia/lib');
use Testopia::Environment;
use Testopia::Search;
use Testopia::Table;

View File

@ -24,11 +24,12 @@ package extensions::testopia::lib::Testopia::WebService::Product;
use strict;
use base qw(Bugzilla::WebService);
use lib qw(./extensions/testopia/lib);
use Bugzilla::Error;
use Bugzilla::Constants;
use lib (bz_locations()->{extensionsdir} . '/testopia/lib');
use Testopia::Product;
sub _validate {

View File

@ -24,12 +24,13 @@ package extensions::testopia::lib::Testopia::WebService::TestCase;
use strict;
use base qw(Bugzilla::WebService);
use lib qw(./extensions/testopia/lib);
use Bugzilla::User;
use Bugzilla::Constants;
use Bugzilla::Error;
use lib (bz_locations()->{extensionsdir} . '/testopia/lib');
use Testopia::TestCase;
use Testopia::Category;
use Testopia::Search;

View File

@ -24,13 +24,14 @@ package extensions::testopia::lib::Testopia::WebService::TestCaseRun;
use strict;
use base qw(Bugzilla::WebService);
use lib qw(./extensions/testopia/lib);
use Bugzilla::User;
use Bugzilla::Constants;
use Bugzilla::Error;
use Bugzilla::Util;
use lib (bz_locations()->{extensionsdir} . '/testopia/lib');
use Testopia::Constants;
use Testopia::Search;
use Testopia::Table;

View File

@ -24,13 +24,14 @@ package extensions::testopia::lib::Testopia::WebService::TestPlan;
use strict;
use base qw(Bugzilla::WebService);
use lib qw(./extensions/testopia/lib);
use Bugzilla::Constants;
use Bugzilla::User;
use Bugzilla::Util;
use Bugzilla::Error;
use lib (bz_locations()->{extensionsdir} . '/testopia/lib');
use Testopia::TestPlan;
use Testopia::Search;
use Testopia::Table;

View File

@ -24,7 +24,6 @@ package extensions::testopia::lib::Testopia::WebService::TestRun;
use strict;
use base qw(Bugzilla::WebService);
use lib qw(./extensions/testopia/lib);
use Bugzilla::Constants;
use Bugzilla::Product;
@ -32,6 +31,8 @@ use Bugzilla::User;
use Bugzilla::Util;
use Bugzilla::Error;
use lib (bz_locations()->{extensionsdir} . '/testopia/lib');
use Testopia::Constants;
use Testopia::TestRun;
use Testopia::Search;

View File

@ -24,11 +24,12 @@ package extensions::testopia::lib::Testopia::WebService::Testopia;
use strict;
use base qw(Bugzilla::WebService);
use lib qw(./extensions/testopia/lib);
use Bugzilla::Error;
use Bugzilla::Constants;
use lib (bz_locations()->{extensionsdir} . '/testopia/lib');
use Testopia::Constants;
sub api_version {

View File

@ -20,10 +20,11 @@
# Contributor(s): Greg Hendricks <ghendricks@novell.com>
use strict;
use lib qw(. lib extensions/testopia/lib);
use lib qw(. lib);
use Bugzilla::Constants;
use lib (bz_locations()->{extensionsdir} . '/testopia/lib');
use Bugzilla;
use Bugzilla::Constants;
use Bugzilla::Error;
use Bugzilla::Util;
use Testopia::TestPlan;

View File

@ -20,11 +20,12 @@
# Contributor(s): Greg Hendricks <ghendricks@novell.com>
use strict;
use lib qw(. lib extensions/testopia/lib);
use lib qw(. lib);
use Bugzilla::Constants;
use lib (bz_locations()->{extensionsdir} . '/testopia/lib');
use Bugzilla;
use Bugzilla::Util;
use Bugzilla::Constants;
use Bugzilla::Error;
use Testopia::Util;
use Testopia::Attachment;

View File

@ -20,11 +20,12 @@
# Contributor(s): Greg Hendricks <ghendricks@novell.com>
use strict;
use lib qw(. lib extensions/testopia/lib);
use lib qw(. lib);
use Bugzilla::Constants;
use lib (bz_locations()->{extensionsdir} . '/testopia/lib');
use Bugzilla;
use Bugzilla::Util;
use Bugzilla::Constants;
use Testopia::Constants;
use Bugzilla::Error;
use Testopia::Build;

View File

@ -22,10 +22,11 @@
# Portions taken from Bugzilla reports by Gervase Markham <gerv@gerv.net>
use strict;
use lib qw(. lib extensions/testopia/lib);
use lib qw(. lib);
use Bugzilla::Constants;
use lib (bz_locations()->{extensionsdir} . '/testopia/lib');
use Bugzilla;
use Bugzilla::Constants;
use Bugzilla::Error;
use Bugzilla::Util;
use Testopia::Util;

View File

@ -20,11 +20,12 @@
# Contributor(s): Greg Hendricks <ghendricks@novell.com>
use strict;
use lib qw(. lib extensions/testopia/lib);
use lib qw(. lib);
use Bugzilla::Constants;
use lib (bz_locations()->{extensionsdir} . '/testopia/lib');
use Bugzilla;
use Bugzilla::Bug;
use Bugzilla::Constants;
use Bugzilla::Error;
use Bugzilla::Util;
use Bugzilla::User;

View File

@ -22,10 +22,11 @@
# Portions taken from Bugzilla reports by Gervase Markham <gerv@gerv.net>
use strict;
use lib qw(. lib extensions/testopia/lib);
use lib qw(. lib);
use Bugzilla::Constants;
use lib (bz_locations()->{extensionsdir} . '/testopia/lib');
use Bugzilla;
use Bugzilla::Constants;
use Bugzilla::Error;
use Bugzilla::Util;
use Testopia::Util;

View File

@ -20,11 +20,12 @@
# Contributor(s): Greg Hendricks <ghendricks@novell.com>
use strict;
use lib qw(. lib extensions/testopia/lib);
use lib qw(. lib);
use Bugzilla::Constants;
use lib (bz_locations()->{extensionsdir} . '/testopia/lib');
use Bugzilla;
use Bugzilla::Util;
use Bugzilla::Constants;
use Bugzilla::Error;
use Testopia::Category;
use Testopia::Util;

View File

@ -27,7 +27,9 @@ use Class::CSV;
use Getopt::Long;
use File::Temp "tempfile";
use Pod::Usage;
use lib qw(. lib extensions/testopia/lib);
use lib qw(. lib);
use Bugzilla::Constants;
use lib (bz_locations()->{extensionsdir} . '/testopia/lib');
=head1 NAME

View File

@ -20,10 +20,11 @@
# Contributor(s): Greg Hendricks <ghendricks@novell.com>
use strict;
use lib qw(. lib extensions/testopia/lib);
use lib qw(. lib);
use Bugzilla::Constants;
use lib (bz_locations()->{extensionsdir} . '/testopia/lib');
use Bugzilla;
use Bugzilla::Constants;
use Bugzilla::Error;
Bugzilla->login(LOGIN_REQUIRED);

View File

@ -24,12 +24,13 @@
# Andrew Nelson <anelson@novell.com>
use strict;
use lib qw(. lib extensions/testopia/lib);
use lib qw(. lib);
use Bugzilla::Constants;
use lib (bz_locations()->{extensionsdir} . '/testopia/lib');
use Bugzilla;
use Bugzilla::Util;
use Bugzilla::Config;
use Bugzilla::Constants;
use Bugzilla::Error;
use Testopia::Search;
use Testopia::Table;

View File

@ -38,11 +38,12 @@ a html textarea.
#************************************************** Uses ****************************************************#
use strict;
use CGI;
use lib qw(. lib extensions/testopia/lib);
use lib qw(. lib);
use Bugzilla::Constants;
use lib (bz_locations()->{extensionsdir} . '/testopia/lib');
use Bugzilla;
use Bugzilla::Util;
use Bugzilla::Config;
use Bugzilla::Constants;
use Bugzilla::Error;
use Testopia::Util;
use Testopia::Environment;

View File

@ -2,10 +2,11 @@
use strict;
use lib qw(. lib extensions/testopia/lib);
use lib qw(. lib);
use Bugzilla::Constants;
use lib (bz_locations()->{extensionsdir} . '/testopia/lib');
use Bugzilla;
use Bugzilla::Constants;
use Bugzilla::Error;
use Bugzilla::Util;
use Testopia::TestPlan;

View File

@ -37,11 +37,12 @@ import.
#************************************************** Uses ****************************************************#
use strict;
use CGI;
use lib qw(. lib extensions/testopia/lib);
use lib qw(. lib);
use Bugzilla::Constants;
use lib (bz_locations()->{extensionsdir} . '/testopia/lib');
use Bugzilla;
use Bugzilla::Util;
use Bugzilla::Config;
use Bugzilla::Constants;
use Bugzilla::Error;
use Testopia::Util;
use Testopia::Environment;

View File

@ -20,11 +20,12 @@
# Contributor(s): Greg Hendricks <ghendricks@novell.com>
use strict;
use lib qw(. lib extensions/testopia/lib);
use lib qw(. lib);
use Bugzilla::Constants;
use lib (bz_locations()->{extensionsdir} . '/testopia/lib');
use Bugzilla;
use Bugzilla::Util;
use Bugzilla::Constants;
use Bugzilla::Error;
use Bugzilla::Product;
use Bugzilla::Token;

View File

@ -47,7 +47,6 @@ chdir $::path;
use lib ( $::path, "extensions/testopia/lib" );
use Bugzilla;
use Bugzilla::Constants;
use Testopia::Importer;
use XML::Twig;

View File

@ -23,10 +23,11 @@
use strict;
use lib qw(. lib extensions/testopia/lib);
use lib qw(. lib);
use Bugzilla::Constants;
use lib (bz_locations()->{extensionsdir} . '/testopia/lib');
use Bugzilla;
use Bugzilla::Constants;
use Bugzilla::Util;
use Bugzilla::Error;
use Bugzilla::User;

View File

@ -20,14 +20,15 @@
# Contributor(s): Greg Hendricks <ghendricks@novell.com>
use strict;
use lib qw(. lib extensions/testopia/lib);
use lib qw(. lib);
use Bugzilla::Constants;
use lib (bz_locations()->{extensionsdir} . '/testopia/lib');
use Bugzilla;
use Bugzilla::Bug;
use Bugzilla::Util;
use Bugzilla::User;
use Bugzilla::Error;
use Bugzilla::Constants;
use Testopia::Search;
use Testopia::Util;
use Testopia::TestCaseRun;

View File

@ -21,13 +21,14 @@
# Jeff Dayley <jedayley@novell.com>
use strict;
use lib qw(. lib extensions/testopia/lib);
use lib qw(. lib);
use Bugzilla::Constants;
use lib (bz_locations()->{extensionsdir} . '/testopia/lib');
use Bugzilla;
use Bugzilla::Util;
use Bugzilla::User;
use Bugzilla::Error;
use Bugzilla::Constants;
use Testopia::Search;
use Testopia::Util;
use Testopia::Category;

View File

@ -20,11 +20,12 @@
# Contributor(s): Greg Hendricks <ghendricks@novell.com>
use strict;
use lib qw(. lib extensions/testopia/lib);
use lib qw(. lib);
use Bugzilla::Constants;
use lib (bz_locations()->{extensionsdir} . '/testopia/lib');
use Bugzilla;
use Bugzilla::Config;
use Bugzilla::Constants;
use Bugzilla::Error;
use Testopia::Search;
use Testopia::Table;

View File

@ -21,12 +21,13 @@
# Jeff Dayley <jedayley@novell.com>
use strict;
use lib qw(. lib extensions/testopia/lib);
use lib qw(. lib);
use Bugzilla::Constants;
use lib (bz_locations()->{extensionsdir} . '/testopia/lib');
use Bugzilla;
use Bugzilla::Config;
use Bugzilla::Error;
use Bugzilla::Constants;
use Bugzilla::Util;
use Testopia::Util;
use Testopia::Search;

View File

@ -21,12 +21,13 @@
# Jeff Dayley <jedayley@novell.com>
use strict;
use lib qw(. lib extensions/testopia/lib);
use lib qw(. lib);
use Bugzilla::Constants;
use lib (bz_locations()->{extensionsdir} . '/testopia/lib');
use Bugzilla;
use Bugzilla::Config;
use Bugzilla::Error;
use Bugzilla::Constants;
use Bugzilla::Util;
use Testopia::Util;
use Testopia::Search;

View File

@ -20,10 +20,11 @@
# Contributor(s): Greg Hendricks <ghendricks@novell.com>
use strict;
use lib qw(. lib extensions/testopia/lib);
use lib qw(. lib);
use Bugzilla::Constants;
use lib (bz_locations()->{extensionsdir} . '/testopia/lib');
use Bugzilla;
use Bugzilla::Constants;
use Bugzilla::Error;
use Bugzilla::Util;
use Bugzilla::User;

View File

@ -22,13 +22,14 @@
# Garrett Braden <gbraden@novell.com>
use strict;
use lib qw(. lib extensions/testopia/lib);
use lib qw(. lib);
use Bugzilla::Constants;
use lib (bz_locations()->{extensionsdir} . '/testopia/lib');
use Bugzilla;
use Bugzilla::Util;
use Bugzilla::Config;
use Bugzilla::Error;
use Bugzilla::Constants;
use Testopia::Util;
use Testopia::Environment;
use Testopia::Environment::Element;

View File

@ -20,10 +20,11 @@
# Contributor(s): Greg Hendricks <ghendricks@novell.com>
use strict;
use lib qw(. lib extensions/testopia/lib);
use lib qw(. lib);
use Bugzilla::Constants;
use lib (bz_locations()->{extensionsdir} . '/testopia/lib');
use Bugzilla;
use Bugzilla::Constants;
use Bugzilla::Config;
use Bugzilla::Error;
use Bugzilla::Util;

View File

@ -20,10 +20,11 @@
# Contributor(s): Greg Hendricks <ghendricks@novell.com>
use strict;
use lib qw(. lib extensions/testopia/lib);
use lib qw(. lib);
use Bugzilla::Constants;
use lib (bz_locations()->{extensionsdir} . '/testopia/lib');
use Bugzilla;
use Bugzilla::Constants;
use Bugzilla::Error;
use Bugzilla::Util;
use Bugzilla::User;

View File

@ -20,10 +20,11 @@
# Contributor(s): Greg Hendricks <ghendricks@novell.com>
use strict;
use lib qw(. lib extensions/testopia/lib);
use lib qw(. lib);
use Bugzilla::Constants;
use lib (bz_locations()->{extensionsdir} . '/testopia/lib');
use Bugzilla;
use Bugzilla::Constants;
use Testopia::Constants;
use Bugzilla::Error;
use Bugzilla::Util;

View File

@ -20,10 +20,11 @@
# Contributor(s): Greg Hendricks <ghendricks@novell.com>
use strict;
use lib qw(. lib extensions/testopia/lib);
use lib qw(. lib);
use Bugzilla::Constants;
use lib (bz_locations()->{extensionsdir} . '/testopia/lib');
use Bugzilla;
use Bugzilla::Constants;
use Bugzilla::Error;
use Bugzilla::Util;
use Testopia::Util;

View File

@ -20,14 +20,15 @@
# Contributor(s): Greg Hendricks <ghendricks@novell.com>
use strict;
use lib qw(. lib extensions/testopia/lib);
use lib qw(. lib);
use Bugzilla::Constants;
use lib (bz_locations()->{extensionsdir} . '/testopia/lib');
use Bugzilla;
use Bugzilla::Bug;
use Bugzilla::Util;
use Bugzilla::User;
use Bugzilla::Error;
use Bugzilla::Constants;
use Testopia::Util;
use Testopia::TestCase;
use Testopia::Category;

View File

@ -20,10 +20,11 @@
# Contributor(s): Greg Hendricks <ghendricks@novell.com>
use strict;
use lib qw(. lib extensions/testopia/lib);
use lib qw(. lib);
use Bugzilla::Constants;
use lib (bz_locations()->{extensionsdir} . '/testopia/lib');
use Bugzilla;
use Bugzilla::Constants;
use Bugzilla::Error;
use Bugzilla::Util;
use Testopia::Util;

View File

@ -21,12 +21,13 @@
# Joel Smith <jsmith@novell.com>
use strict;
use lib qw(. lib extensions/testopia/lib);
use lib qw(. lib);
use Bugzilla::Constants;
use lib (bz_locations()->{extensionsdir} . '/testopia/lib');
use Bugzilla;
use Bugzilla::Util;
use Bugzilla::Error;
use Bugzilla::Constants;
use Testopia::Constants;
use Testopia::Util;
use Testopia::TestRun;

View File

@ -20,10 +20,11 @@
# Contributor(s): Greg Hendricks <ghendricks@novell.com>
use strict;
use lib qw(. lib extensions/testopia/lib);
use lib qw(. lib);
use Bugzilla::Constants;
use lib (bz_locations()->{extensionsdir} . '/testopia/lib');
use Bugzilla;
use Bugzilla::Constants;
use Bugzilla::Error;
use Bugzilla::Util;
use Testopia::Util;

View File

@ -22,12 +22,13 @@
# Greg Hendricks <ghendricks@novell.com>
use strict;
use lib qw(. lib extensions/testopia/lib);
use lib qw(. lib);
use Bugzilla::Constants;
use lib (bz_locations()->{extensionsdir} . '/testopia/lib');
use Bugzilla;
use Bugzilla::Util;
use Bugzilla::Error;
use Bugzilla::Constants;
use Bugzilla::Field;
use Testopia::Constants;
use Testopia::Util;

View File

@ -20,10 +20,11 @@
# Contributor(s): Greg Hendricks <ghendricks@novell.com>
use strict;
use lib qw(. lib extensions/testopia/lib);
use lib qw(. lib);
use Bugzilla::Constants;
use lib (bz_locations()->{extensionsdir} . '/testopia/lib');
use Bugzilla;
use Bugzilla::Constants;
use Bugzilla::Config;
use Bugzilla::Error;
use Bugzilla::Util;

View File

@ -20,10 +20,11 @@
# Contributor(s): Greg Hendricks <ghendricks@novell.com>
use strict;
use lib qw(. lib extensions/testopia/lib);
use lib qw(. lib);
use Bugzilla::Constants;
use lib (bz_locations()->{extensionsdir} . '/testopia/lib');
use Bugzilla;
use Bugzilla::Constants;
use Bugzilla::Error;
use Bugzilla::Util;
use Bugzilla::User;

View File

@ -21,12 +21,13 @@
# Tyler Peterson <typeterson@novell.com>
use strict;
use lib qw(. lib extensions/testopia/lib);
use lib qw(. lib);
use Bugzilla::Constants;
use lib (bz_locations()->{extensionsdir} . '/testopia/lib');
use Bugzilla;
use Bugzilla::Util;
use Bugzilla::Error;
use Bugzilla::Constants;
use Testopia::Util;
use Testopia::Table;
use Testopia::TestCase;

View File

@ -22,10 +22,11 @@
# Greg Hendricks <ghendricks@novell.com>
use strict;
use lib qw(. lib extensions/testopia/lib);
use lib qw(. lib);
use Bugzilla::Constants;
use lib (bz_locations()->{extensionsdir} . '/testopia/lib');
use Bugzilla;
use Bugzilla::Constants;
use Bugzilla::Error;
use Bugzilla::Util;
use Bugzilla::Hook;

View File

@ -20,10 +20,11 @@
# Contributor(s): Greg Hendricks <ghendricks@novell.com>
use strict;
use lib qw(. lib extensions/testopia/lib);
use lib qw(. lib);
use Bugzilla::Constants;
use lib (bz_locations()->{extensionsdir} . '/testopia/lib');
use Bugzilla;
use Bugzilla::Constants;
use Bugzilla::Error;
use Bugzilla::Util;
use Testopia::Util;

View File

@ -20,10 +20,11 @@
# Contributor(s): Greg Hendricks <ghendricks@novell.com>
use strict;
use lib qw(. lib extensions/testopia/lib);
use lib qw(. lib);
use Bugzilla::Constants;
use lib (bz_locations()->{extensionsdir} . '/testopia/lib');
use Bugzilla;
use Bugzilla::Constants;
use Bugzilla::Error;
use Bugzilla::Util;
use Testopia::Util;

View File

@ -20,13 +20,14 @@
# Contributor(s): Greg Hendricks <ghendricks@novell.com>
use strict;
use lib qw(. lib extensions/testopia/lib);
use lib qw(. lib);
use Bugzilla::Constants;
use lib (bz_locations()->{extensionsdir} . '/testopia/lib');
use Bugzilla;
use Bugzilla::Util;
use Bugzilla::User;
use Bugzilla::Config;
use Bugzilla::Constants;
use Bugzilla::Error;
use Testopia::Util;
use Testopia::TestTag;