[tpm] libtap (Perl related)

Shlomi Fish shlomif at iglu.org.il
Thu Oct 1 03:56:59 PDT 2009


On Thursday 01 Oct 2009 12:24:52 lanas wrote:
> Hello all,
> 
>   This is about a great gift from Perl (if it works) to C.  I have to
> make something in C and since I took with Perl the devious habit of
> having tests developed at the same time as code, I thought of doing the
> same in C.  And there's libtap, which brings TAP to C:
> 
> http://jc.ngo.org.uk/trac-bin/trac.cgi/wiki/LibTap
> 
>   Do you know of any support for this project ?  I've tried several
> examples (some from O'Reilly also) and the examples, even the
> most simple one, never exits.  Maybe there's a gcc problem of some
> sort with the latest version, or Something.
> 

The vanilla libtap has been broken for quite some time. Mandriva compiles it 
by using a specialised build process. I give a workaround in the HACKING.txt 
file in:

https://svn.berlios.de/svnroot/repos/fc-solve/trunk/fc-solve/source/

{{{{{{{{{{
3. Install the development headers of 
libtap ( http://jc.ngo.org.uk/trac-bin/trac.cgi/wiki/LibTap ).
+
* On Mandriva:
+
    # urpmi libtap-devel
+
* On Debian:
+
-------------------------------
tar -xvf /home/shlomif/Desktop/tap-1.01.tar.gz 
cd tap-1.01
 ./configure --prefix="$HOME/apps/libtap"
make CFLAGS+=-UHAVE_LIBPTHREAD
make install
# For gcc finding tap.h in the includes
echo 'export CPATH="$HOME/apps/libtap/include:$CPATH"' >> ~/.bashrc
# For CMake finding libtap.
echo 'export CMAKE_PREFIX_PATH="$HOME/apps/libtap:$CMAKE_PREFIX_PATH"' >> 
~/.bashrc
------------------------------
}}}}}}}}}}

I've been thinking of forking or rewriting it. I'd like to make it thread-safe 
and capable of being instantiated, etc.

Regards,

	Shlomi Fish

>   I've also seen that there are a few other such test frameworks
> around, but libtap would carry on familiarity.
> 
> Cheers,
> 
> Al
> _______________________________________________
> toronto-pm mailing list
> toronto-pm at pm.org
> http://mail.pm.org/mailman/listinfo/toronto-pm
> 

-- 
-----------------------------------------------------------------
Shlomi Fish       http://www.shlomifish.org/
Rethinking CPAN - http://shlom.in/rethinking-cpan

Chuck Norris read the entire English Wikipedia in 24 hours. Twice.


More information about the toronto-pm mailing list