MySQL + TAP == MyTAP

2008-03-29 Thread Michael G Schwern
Stumbled across this while finding an alternative to libtap for testing C (it 
has some sort of issue linking with this hairy project I'm working on). 
Apparently MySQL wrote their own TAP library for C.


From http://dev.mysql.com/doc/mysqltest/en/unit-test.html

The unit-testing facility is based on the Test Anything Protocol (TAP) which 
is mainly used when developing Perl and PHP modules. To write unit tests for 
C/C++ code, MySQL has developed a library for generating TAP output from C/C++ 
files. Each unit test is written as a separate source file that is compiled to 
produce an executable. For the unit test to be recognized as a unit test, the 
executable file has to be of the format mytext-t. For example, you can create 
a source file named mytest-t.c the compiles to produce an executable mytest-t. 
The executable will be found and run when you execute make test or make 
test-unit in the distribution top-level directory.


Here's the docs.
http://www.kindahl.net/mytap/doc/index.html


--
Defender of Lexical Encapsulation



Re: MySQL + TAP == MyTAP

2008-03-29 Thread Aristotle Pagaltzis
Hi Michael,

* Michael G Schwern [EMAIL PROTECTED] [2008-03-29 11:35]:
 Stumbled across this while finding an alternative to libtap for
 testing C (it has some sort of issue linking with this hairy
 project I'm working on). Apparently MySQL wrote their own TAP
 library for C.

 From http://dev.mysql.com/doc/mysqltest/en/unit-test.html

 The unit-testing facility is based on the Test Anything
 Protocol (TAP) which is mainly used when developing Perl and
 PHP modules. To write unit tests for C/C++ code, MySQL has
 developed a library for generating TAP output from C/C++ files.
 Each unit test is written as a separate source file that is
 compiled to produce an executable. For the unit test to be
 recognized as a unit test, the executable file has to be of the
 format mytext-t. For example, you can create a source file
 named mytest-t.c the compiles to produce an executable
 mytest-t. The executable will be found and run when you execute
 make test or make test-unit in the distribution top-level
 directory.

 Here's the docs. http://www.kindahl.net/mytap/doc/index.html

I think you wanted to send this to the TAP list. :-)

Regards,
-- 
Aristotle Pagaltzis // http://plasmasturm.org/