Zhoutall / stasis

Automatically exported from code.google.com/p/stasis
Other
0 stars 0 forks source link

Add unit test support for out of tree modules #19

Open GoogleCodeExporter opened 9 years ago

GoogleCodeExporter commented 9 years ago
It is currently difficult to run the unit tests against out-of-tree stasis
modules.  The problem is that the makefiles don't link in the third-party
.so, and don't know what factory methods have been replaced.  Some sort of
an LD_PRELOAD or environment variable would solve the issue.

One proposal: check to see if the environment variable STASIS_ADDON_LIBRARY
is defined.  If so, dlopen it, then lookup the symbol "stasis_addon_init",
and call it with zero arguments.

Original issue reported on code.google.com by sears.ru...@gmail.com on 10 Dec 2009 at 1:48