home *** CD-ROM | disk | FTP | other *** search
/ PC Professionell 2004 December / PCpro_2004_12.ISO / files / webserver / xampp / xampp-perl-addon-1.4.9-installer.exe / mp2bug < prev    next >
Encoding:
Text File  |  2004-03-04  |  992 b   |  36 lines

  1. #!perl
  2. # Copyright 2003-2004 The Apache Software Foundation
  3. #
  4. # Licensed under the Apache License, Version 2.0 (the "License");
  5. # you may not use this file except in compliance with the License.
  6. # You may obtain a copy of the License at
  7. #
  8. #     http://www.apache.org/licenses/LICENSE-2.0
  9. #
  10. # Unless required by applicable law or agreed to in writing, software
  11. # distributed under the License is distributed on an "AS IS" BASIS,
  12. # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
  13. # See the License for the specific language governing permissions and
  14. # limitations under the License.
  15. #
  16.  
  17. use strict;
  18. use warnings FATAL => 'all';
  19.  
  20. use FindBin;
  21.  
  22. use constant IS_MOD_PERL_BUILD => -e "$FindBin::Bin/../lib/mod_perl.pm";
  23.  
  24. if (IS_MOD_PERL_BUILD) {
  25.     unshift @INC, "$FindBin::Bin/../lib";
  26. }
  27. else {
  28.     eval { require Apache2 };
  29.     if ($@) {
  30.         die "This script requires mod_perl 2.0\n", "$@";
  31.     }
  32. }
  33.  
  34. require ModPerl::TestReport;
  35. ModPerl::TestReport->new(@ARGV)->run;
  36.