stas        02/01/13 19:38:08

  Modified:    src/docs/2.0/devel/testing testing.pod
  Log:
  - how to retrieve Module Magic Number data
  
  Revision  Changes    Path
  1.6       +25 -0     modperl-docs/src/docs/2.0/devel/testing/testing.pod
  
  Index: testing.pod
  ===================================================================
  RCS file: /home/cvs/modperl-docs/src/docs/2.0/devel/testing/testing.pod,v
  retrieving revision 1.5
  retrieving revision 1.6
  diff -u -r1.5 -r1.6
  --- testing.pod       6 Jan 2002 07:25:15 -0000       1.5
  +++ testing.pod       14 Jan 2002 03:38:08 -0000      1.6
  @@ -2417,6 +2417,31 @@
   
   which is essentially does a lookup in $Config{useithreads}.
   
  +=head2 Retrieving the Server Configuration Data
  +
  +The server configuration data can be retrieved and used in the tests
  +via the configuration object:
  +
  +  use Apache::Test;
  +  my $cfg  = Apache::Test::config();
  +
  +=head3 Module Magic Number
  +
  +The following code retrieves the major and minor MMN numbers.
  +
  +  my $cfg  = Apache::Test::config();
  +  my $info = $cfg->{httpd_info};
  +  
  +  my $major = $info->{MODULE_MAGIC_NUMBER_MAJOR};
  +  my $minor = $info->{MODULE_MAGIC_NUMBER_MINOR};
  +  
  +  print "major=$major, minor=$minor\n";
  +
  +For example for MMN C<20011218:0>, this code prints:
  +
  +  major=20011218, minor=0
  +
  +
   =head1 Debugging Tests
   
   Sometimes your tests won't run properly or even worse will
  
  
  

---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to