lumiera_/tests/31plugin.tests
Ichthyostega bc1c89639d fix the plugin loading test to suit the new dir layout
the 'missing path' test still works, but rather
accidentally: the plugin search path retrieved from
resolving $ORIGIN is an absolute path, while this
test uses relative paths; thus the querried plugin
won't be found. In the second test, we set an
environment override, using the relative path
(which is now 'modules'). Thus the discovery works.
2011-02-13 23:45:11 +01:00

42 lines
866 B
Text

TESTING "testing plugins" ./test-interfaces
TEST "discovering plugins, missing path" plugin_discover <<END
out: found plugin: \(null\)
return: 0
END
export LUMIERA_PLUGIN_PATH=modules
export LUMIERA_CONFIG_PATH=./
TEST "discovering plugins" plugin_discover <<END
out: found plugin: modules/examplepluginc.lum
return: 0
END
TEST "plugin unloading" plugin_unload <<END
out: plugin discovered before unload: 0x..
out: plugin discovered after unload: \(nil\)
return: 0
END
TEST "C plugin test" plugin_examplepluginc <<END
out: Hallo Welt!
out: Tschuess Welt!
out: Hello World!
out: Bye World!
return: 0
END
TEST "C plugin test, nested" plugin_examplepluginc_nested <<END
out: config path is: \./
out: plugin path is: modules
out: Hallo Welt!
out: Hello World!
out: Bye World!
out: Tschuess Welt!
return: 0
END
unset LUMIERA_PLUGIN_PATH
unset LUMIERA_CONFIG_PATH