perl-docs-cvs mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From s...@apache.org
Subject cvs commit: modperl-docs/src/docs/2.0/devel/testing testing.pod
Date Mon, 14 Jan 2002 03:38:08 GMT
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: docs-cvs-unsubscribe@perl.apache.org
For additional commands, e-mail: docs-cvs-help@perl.apache.org


Mime
View raw message