Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
bugzilla
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
etersoft
bugzilla
Commits
31985208
Commit
31985208
authored
May 27, 2005
by
mkanat%kerio.com
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Bug 286701: Tests fail compiling Bugzilla::DB::Pg.pm
Patch By Colin Ogilvie <colin.ogilvie@gmail.com> r=mkanat, a=justdave
parent
8656d280
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
14 additions
and
0 deletions
+14
-0
001compile.t
t/001compile.t
+14
-0
No files found.
t/001compile.t
View file @
31985208
...
...
@@ -32,6 +32,10 @@ use Support::Files;
use
Test::
More
tests
=>
scalar
(
@
Support::Files::
testitems
);
# Need this to get the available driver information
use
DBI
;
my
@DBI_drivers
=
DBI
->
available_drivers
;
# Bugzilla requires Perl 5.6.1 now. Checksetup will tell you this if you run it, but
# it tests it in a polite/passive way that won't make it fail at compile time. We'll
# slip in a compile-time failure if it's missing here so a tinderbox on 5.00503 won't
...
...
@@ -60,6 +64,16 @@ my $perlapp = "\"$^X\"";
foreach
my
$file
(
@testitems
)
{
$file
=~
s/\s.*$//
;
# nuke everything after the first space (#comment)
next
if
(
!
$file
);
# skip null entries
# Check that we have a DBI module to support the DB, if this is a database
# module (but not Schema)
if
(
$file
=~
m
#Bugzilla/DB/([^/]+)\.pm$# && $file ne "Bugzilla/DB/Schema.pm") {
if
(
!
grep
(
lc
(
$_
)
=~
/$1/i
,
@DBI_drivers
))
{
ok
(
1
,
$file
.
" - Skipping, as the DBD module not installed"
);
next
;
}
}
open
(
FILE
,
$file
);
my
$bang
=
<
FILE
>
;
close
(
FILE
);
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment