You are viewing a plain text version of this content. The canonical link for it is here.
Posted to axkit-dev@xml.apache.org by ki...@apache.org on 2003/05/25 21:33:56 UTC

cvs commit: xml-axkit Makefile.PL

kip         2003/05/25 12:33:56

  Modified:    .        Makefile.PL
  Log:
  Adding Apache::Test stuff.
  
  Revision  Changes    Path
  1.18      +20 -1     xml-axkit/Makefile.PL
  
  Index: Makefile.PL
  ===================================================================
  RCS file: /home/cvs/xml-axkit/Makefile.PL,v
  retrieving revision 1.17
  retrieving revision 1.18
  diff -u -r1.17 -r1.18
  --- Makefile.PL	21 Mar 2003 13:30:38 -0000	1.17
  +++ Makefile.PL	25 May 2003 19:33:56 -0000	1.18
  @@ -39,6 +39,25 @@
     require lib; lib->import('./install');
     require './install/ExtUtils/AutoInstall.pm';
   }
  +eval { require Apache::TestMM; import Apache::TestMM qw(test clean); };
  +if ($@ || $Apache::Test::VERSION < 1.01) {
  +  warn( "\n",
  +        "==================================================================\n",
  +        "\n",
  +        "AxKit's test suite requires Apache::Test. AxKit comes\n",
  +        "with an older version, but it will not be installed.  You should\n",
  +        "install the most recent Apache::Test at your convenience.\n",
  +        "\n",
  +        "==================================================================\n",
  +        "\n",
  +      );
  +  require lib; lib->import('./t/lib');
  +  require 'Apache::TestMM.pm';
  +  import Apache::TestMM qw(test clean);
  +}
  +
  +Apache::TestMM::filter_args();
  +Apache::TestMM::generate_script('t/TEST');
   
   ######################################################
   # Standard bits required for have_library and friends