axis-c-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Francois Mireaux (JIRA)" <j...@apache.org>
Subject [jira] Updated: (AXIS2C-1412) Very simple unit test framework and tests corrections
Date Mon, 16 Nov 2009 16:45:39 GMT

     [ https://issues.apache.org/jira/browse/AXIS2C-1412?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
]

Francois Mireaux updated AXIS2C-1412:
-------------------------------------

    Attachment: tests.patch

Caution, patch also contains a bug correction in util\url.c.

Two include files are defined in cutest\include to write tests :
     tunit.h   : simple macros and functions
     ut_http_server.h  : help function to start and stop a thread executing HTTP server (on
Unix needs the patch proposed in JIRA-1411)

Windows JScript program (genmktests.js) is a bit of mish-mash but seems to be the only solution
as libraries structure and names are not the same on Unix and Windows.

The first test failure aborts test processing which is arguable but permits a simple error
detection without reading log files.

I could go on working on rewrite and extend tests : some failures don't stop tests, some tests
don't really check that all is right... But I need to know if general principles are OK.


> Very simple unit test framework and tests corrections
> -----------------------------------------------------
>
>                 Key: AXIS2C-1412
>                 URL: https://issues.apache.org/jira/browse/AXIS2C-1412
>             Project: Axis2-C
>          Issue Type: Test
>            Reporter: Francois Mireaux
>         Attachments: tests.patch
>
>
> Here is a proposition for a very simple unit test framework, used for rewrite some of
tests (numerous errors found).
> Tests are also modified to be used under Windows (tested with the C compiler of Visual
Studio 2008 Express Edition) with the help of a JScript program which computes a Makefile
extension for tests (file makeTests) analysing files Makefile.am. After executing buid\win32\build.bat,
one can use build\win32\buildtests.bat to build and execute all defined tests. An optionnal
parameter ciould be used to build and execute one specific test defined by test_<nn>
(see makeTests file).

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.


Mime
View raw message