RSS

(root)/bugzilla/3.6 : 3283 : testserver.pl

To get this branch, use:
bzr branch /bugzilla/3.6

« back to all changes in this revision

Viewing changes to testserver.pl

lpsolit%gmail.com
2005-03-22 19:22:34
Revision ID: cvs-1:lpsolitgmail.com-20050323032234-3yolr0y1t0ono8s9
Bug 280193: Round up places using data/ instead of $datadir - Patch by Marc Schumann <wurblzap@gmail.com> r=LpSolit, a=justdave

Show diffs side-by-side

added added

removed removed

19
19
# issues as possible.
20
20
 
21
21
use Socket;
 
22
use Bugzilla::Config qw($datadir);
22
23
my $envpath = $ENV{'PATH'};
23
24
use lib ".";
24
25
use strict;
165
166
        $image->fill(50, 50, $red);
166
167
 
167
168
        if ($image->can('png')) {
168
 
            create_file('data/testgd-local.png', $image->png);
169
 
            check_image('data/testgd-local.png', 't/testgd.png', 'GD', 'PNG');
 
169
            create_file("$datadir/testgd-local.png", $image->png);
 
170
            check_image("$datadir/testgd-local.png", 't/testgd.png', 'GD', 'PNG');
170
171
        } else {
171
172
            die "GD doesn't support PNG generation\n";
172
173
        }
188
189
            $chart->add_pt('bar', 16, 32);
189
190
 
190
191
            my $type = $chart->can('gif') ? 'gif' : 'png';
191
 
            $chart->$type("data/testchart-local.$type");
192
 
            check_image("data/testchart-local.$type", "t/testchart.$type",
 
192
            $chart->$type("$datadir/testchart-local.$type");
 
193
            check_image("$datadir/testchart-local.$type", "t/testchart.$type",
193
194
                "Chart", uc($type));
194
195
        };
195
196
        if ($@ ne '') {

Loggerhead 1.18.1 is a web-based interface for Bazaar branches