TESTING "testing plugins" ./test-interfaces


TEST "discovering plugins, missing path" plugin_discover <<END
out: found plugin: (null)
return: 0
END

export LUMIERA_PLUGIN_PATH=.libs
export LUMIERA_CONFIG_PATH=./

TEST "discovering plugins" plugin_discover <<END
out: found plugin: .libs/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: .libs
out: Hallo Welt!
out: Hello World!
out: Bye World!
out: Tschuess Welt!
return: 0
END

unset LUMIERA_PLUGIN_PATH
unset LUMIERA_CONFIG_PATH
