apr-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From r..@apache.org
Subject Re: cvs commit: apr/test CuTest.c CuTest.h testall.c testapr.c Makefile.in test_apr.h teststr.c testtime.c
Date Sun, 15 Sep 2002 23:00:29 GMT
On 15 Sep 2002 rbb@apache.org wrote:

> rbb         2002/09/15 15:51:28
> 
>   Modified:    .        CHANGES
>                test     Makefile.in test_apr.h teststr.c testtime.c
>   Added:       test     CuTest.c CuTest.h testall.c testapr.c
>   Log:
>   Begin to migrate the APR test suite to the CuTest framework.  This
>   basically moves testtime and teststr to a single binary, testall.  The
>   testall binary will run all of the tests that it knows about, and print
>   the results.  A document will be added later today that describes how to
>   write tests, and how the test suite works.  This is just an initial port
>   for these test programs.  There have been no new tests added.


This initial port has included a copy of CuTest.c and CuTest.h.  These
files have been modified from the original files to include features that
APR requires.  I have not included a document yet, because I haven't had
time to create it.  I am hoping to do that later tonight, and get it
committed today.  However, the tests that I have committed should be good
enough for people to see how to create new tests.

My goal was to allow us to build testtime and have it work, and also to
build testall.  This doesn't currently work.  In order to build testtime
and teststr, you have to specify MY_CFLAGS=-DSINGLE_PROG on the command
line for make.  I will try to fix that later.  I also want to remove the
autoconf Makefile from this directory, because I want the tests to be
simple to build on all platforms.  That will be a very late modification
to the test suite.

Finally, the tests are currently just being ported from the old version to
the new version.  At some point, we will need to flush out the test suite,
but the first step is to make all of the test programs work.

I'm sorry this took me so long, I have been doing other stuff recently,
and I haven't had time to really write a lot of Apache code.

BTW, until I get a chance to create the doc, to run the test suite, do the
following:

    ./config.status or ./config.nice
    cd test
    make testall
    ./testall

If you have any test failures, run:

    ./testall -v

In the short-term, make check does not work for this.  I have not had the
time to port to Windows.  I also no longer have a Windows build
environment, so this will be a few weeks, until I get one setup again.

Ryan


Mime
View raw message