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