[LAD] [RFC] jacksquat - a mock jack library (was Re: Testdriven development with JACK?)

Previous message: [thread] [date] [author]
Next message: [thread] [date] [author]
To: <linux-audio-dev@...>
Date: Monday, August 1, 2011 - 12:25 pm

On 07/27/2011 05:24 PM, Adrian Knoth wrote:

In a fit of inspiration, here's a proof of concept for a mock
jack library:

https://gitorious.org/gabrbedd/jacksquat
git://gitorious.org/gabrbedd/jacksquat.git

I invite your comments, criticisms, and snide remarks. :-)
See the README and DEVELOPERS files for more info. Personally,
I've convinced myself that it's a worthwhile effort.

In a nutshell... run your application through the mock
library like this[1]:

$ jacksquat -no-enforce-deprecated \
lv2_jack_host \
http://gabe.is-a-geek.org/composite/plugins/sampler/1

This will set your LD_LIBRARY_PATH to use the mock, and tell it *not*
to crash when a deprecated interface is used.

STATUS: Clients can register and the process() callback will be
called. However, ports and such are not yet implemented. Some
apps will seem to work OK, but some others will understandably
crash.

WHERE TO HELP: Need people to write tests that test the JACK API.
These are simple programs that will work with any properly functioning
libjack.so.0. While these tests will help us track that API
implementation in jacksquat, these tests will be valid unit
tests for Jack1, Jack2, tschack, etc. (FTW)

PS: Jack Interposer is awesome. I'd like to integrate it with
this tool somehow. Nice job Arnout!

-gabriel

[1] lv2_jack_host does *not* use deprecated interfaces. I just
added it to illustrate the ability to configure the mock
library.
_______________________________________________
Linux-audio-dev mailing list
Linux-audio-dev@lists.linuxaudio.org
http://lists.linuxaudio.org/listinfo/linux-audio-dev

Previous message: [thread] [date] [author]
Next message: [thread] [date] [author]

Messages in current thread:
[LAD] Testdriven development with JACK?, Adrian Knoth, (Wed Jul 27, 10:24 pm)
[LAD] [RFC] jacksquat - a mock jack library (was Re: Testdri..., Gabriel Beddingfield, (Mon Aug 1, 12:25 pm)
Re: [LAD] Testdriven development with JACK?, Gabriel Beddingfield, (Thu Jul 28, 1:40 am)
Re: [LAD] Testdriven development with JACK?, Paul Davis, (Thu Jul 28, 2:04 am)
Re: [LAD] Testdriven development with JACK?, Gabriel Beddingfield, (Thu Jul 28, 3:35 am)
Re: [LAD] Testdriven development with JACK?, Robin Gareus, (Thu Jul 28, 7:02 am)
Re: [LAD] Testdriven development with JACK?, Tristan Matthews, (Fri Jul 29, 3:31 pm)
Re: [LAD] Testdriven development with JACK?, David Robillard, (Thu Jul 28, 3:03 am)
Re: [LAD] Testdriven development with JACK?, Gordon JC Pearce, (Fri Jul 29, 4:35 pm)