Rubber-stamped by Brady Eidson.
[webbrowser.git] / BugsSite / runtests.pl
blobffeddeae3dace9d6520de6c6bc16cf2bb779f1f0
1 #!/usr/bin/env perl -w
2 # -*- Mode: perl; indent-tabs-mode: nil -*-
4 # The contents of this file are subject to the Mozilla Public
5 # License Version 1.1 (the "License"); you may not use this file
6 # except in compliance with the License. You may obtain a copy of
7 # the License at http://www.mozilla.org/MPL/
9 # Software distributed under the License is distributed on an "AS
10 # IS" basis, WITHOUT WARRANTY OF ANY KIND, either express or
11 # implied. See the License for the specific language governing
12 # rights and limitations under the License.
14 # The Original Code is the Bugzilla Bug Tracking System.
16 # The Initial Developer of the Original Code is Mike Norton.
17 # Portions created by the Initial Developer are Copyright (C) 2002
18 # the Initial Developer. All Rights Reserved.
20 # Contributor(s):
23 # Make it harder for us to do dangerous things in Perl.
24 use diagnostics;
25 use strict;
26 use lib qw(lib);
28 use Test::Harness qw(&runtests $verbose);
30 $verbose = 0;
31 my $onlytest = "";
33 foreach (@ARGV) {
34 if (/^(?:-v|--verbose)$/) {
35 $verbose = 1;
37 else {
38 $onlytest = sprintf("%0.3d",$_);
42 runtests(glob("t/$onlytest*.t"));