On Fri, Apr 09, 1999 at 07:29:51PM +0100, Ben Laurie wrote:

> Isn't the simplest thing to just #ifdef the test code itself, so the
> test programs are always there, just don't do anything if there's
> nothing to test?

There are two kinds of tests: First, there are ideatest.c and similar
programs.  These don't seem to have any problems when NO_IDEA etc. is
defined.  Probably you were thinking of something like these.

The only test that failed for me is testenc, which is a shellscript
that tests the openssl application program by running

     openssl <algorithm> -bufsize 113 -e -k test

and then

     openssl <algorithm> -bufsize 157 -d -k test

And in a shellscript, we obviously cannot just write #ifndef NO_IDEA.
It would be possible, of course, to convert the shellscript into an
equivalent C program, but I don't know why one would want to do that
-- it's quite natural to use the openssl application in shells or
shellscripts, and that's exactly what we want to test.  Now when it
comes to determining which algorithms we should actually test here,
the C pre-processor inevitably becomes involved because the relevant
configuration is done by defining NO_IDEA and similar symbols.
But except for that, the "enctest" program does not have anything with
C.
______________________________________________________________________
OpenSSL Project                                 http://www.openssl.org
Development Mailing List                       [EMAIL PROTECTED]
Automated List Manager                           [EMAIL PROTECTED]

Reply via email to