httpd-cvs mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From mar...@locus.apache.org
Subject cvs commit: apache-1.3/src/helpers TestCompile
Date Thu, 15 Jun 2000 12:57:51 GMT
martin      00/06/15 05:57:50

  Modified:    src/helpers TestCompile
  Log:
  Add descriptions of invocation switches and environment variables.
  Add a new variable $TCADDINCL which allows addition of header files
  for the testfunc scripts. It can be used, e.g., for testing a certain
  typedef in a special include file, by using:
    env TCADDINCL='#include <special.h>' ./helpers/TestCompile sizeof blah_t
  where the typedef of blah_t is assumed to be in <special.h>
  
  Revision  Changes    Path
  1.38      +50 -1     apache-1.3/src/helpers/TestCompile
  
  Index: TestCompile
  ===================================================================
  RCS file: /home/cvs/apache-1.3/src/helpers/TestCompile,v
  retrieving revision 1.37
  retrieving revision 1.38
  diff -u -u -r1.37 -r1.38
  --- TestCompile	1999/12/15 22:07:59	1.37
  +++ TestCompile	2000/06/15 12:57:49	1.38
  @@ -40,6 +40,51 @@
   # located) if you want to test it out. Configure must
   # also call it as './helpers/TestCompile'
   #
  +#
  +# INVOCATION SWITCHES:
  +# TestCompile evaluates the following switches
  +# (currently, it accepts only *ONE* of them!):
  +#
  +#  -v (enable verbose operation)
  +#   Enables VERBOSE=yes, see below.
  +#
  +#  -s (enforce silent operation)
  +#   Override a VERBOSE=yes, force it to VERBOSE=no.
  +#
  +#  -r (run generated test program)
  +#   Enables TCRUNIT=yes, see below
  +#
  +#  
  +# ENVIRONMENT VARIABLES:
  +# The following environment variables have influence on
  +# TestCompile's operation:
  +#
  +#  $VERBOSE (yes|no; default=no)
  +#    If set to "yes", will print compiler messages to stderr
  +#    Otherwise, stderr of all invoked programs is sent to /dev/null
  +#
  +#  $TCRUNIT (yes|no; default=no)
  +#    (This variable is obsoleted by the "-r" switch)
  +#    If set to "yes", will invoke the test program which was
  +#    generated by TestCompile. Useful for "TestCompile sizeof"
  +#    and "TestCompile byteorder" tests.
  +#    Otherwise, TestCompile only tests for the presence of a
  +#    generated program when deciding whether the compilation was
  +#    successful.
  +#
  +#  $TCADDINCL (#include <> stmt list; default=empty)
  +#    If set to an "#include <file>" preprocessor directive
  +#    (optionally several #include's separated by newlines), these
  +#    directives will be added to the generated test sources.
  +#    That allows, e.g., the "TestCompile sizeof" test to check for
  +#    types which are not defined in the standard locations.
  +#
  +#  $TLIB (additional libraries; default=empty)
  +#    If set to a list of additional libraries, these libs will be used
  +#    in addition to the one tested by the "TestCompile lib" call.
  +#    For the other TextCompile tests, it is ignored.
  +#
  +#
   # Initially written by Jim Jagielski for the Apache configuration mechanism
   #
   # This script falls under the Apache License.
  @@ -74,7 +119,7 @@
   esac
   
   #
  -# Make sure have the right arguments
  +# Make sure we have the right arguments
   #
   
   case "$1" in
  @@ -109,6 +154,7 @@
   	cat <<EOF >testfunc.c
   #include <stdio.h>
   #include <sys/types.h>
  +$TCADDINCL
   int main(void) {
       printf("%d\n", sizeof($2));
       return(0);
  @@ -126,6 +172,7 @@
   	cat <<EOF >testfunc.c
   #include <stdio.h>
   #include <sys/types.h>
  +$TCADDINCL
   int main(void) {
       /* Are we little or big endian? From Harbison & Steele */
       union {
  @@ -159,6 +206,7 @@
   	fi
   	TARGET='testfunc'
   	cat <<EOF >testfunc.c
  +$TCADDINCL
   int main(void) {
       $2();
       return(0);
  @@ -177,6 +225,7 @@
   	fi
   	TARGET='testfunc'
   	cat <<EOF >testfunc.c
  +$TCADDINCL
   #include <$2>
   int main(void) {
       return(0);
  
  
  

Mime
View raw message