Dr Stephen Henson wrote:
>
> [EMAIL PROTECTED] wrote:
> >
> > That seems very complicated. How about doing this
> > in the Makefile
> > test: cipherlist
> > cipherlist: cipherlist.c
> > ..usual CC rules.
> > And cipherlist is
> > main()
> > {
> > #ifndef NO_DES
> > printf("des_cfb\ndes_ede_cfb\ndes_ede3_cfb\n...")
> >
> > and so on.
> > Then the test is
> > for I in `cipherlist` ; do
>
> Hmmm thats not portable to single Makefile stuff like Win32 which would
> need a special case of course.
>
> How about a 'test' application that works similar to the openssl
> application which has all the tests linked into it and unimplemented
> stuff #ifdef'ed out? You could then run it as:
> test des_cfb
> or
> test all
> this should hopefully work on all platforms. Most of the code could be
> pinched from apps/
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? This is what I was going to suggest in the first place,
but the other idea got done first, and seemed OK to me...
Cheers,
Ben.
--
http://www.apache-ssl.org/ben.html
"My grandfather once told me that there are two kinds of people: those
who work and those who take the credit. He told me to try to be in the
first group; there was less competition there."
- Indira Gandhi
______________________________________________________________________
OpenSSL Project http://www.openssl.org
Development Mailing List [EMAIL PROTECTED]
Automated List Manager [EMAIL PROTECTED]