lumiera_/tests/31plugin.tests
Ichthyostega 88678209bc use setup.ini to retrieve the modulepath and configpath
connect config-facade with the new BasicSetup implementation
to fetch values from setup.ini, instead of the (not implemented)
Config-system. Hook this new lookup mechanism into the
plugin loader to retrieve the search path from there
2011-02-06 05:06:16 +01:00

41 lines
806 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 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