53 lines
1.1 KiB
Text
53 lines
1.1 KiB
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/test-c-plugin.lum
|
|
out: found plugin: modules/test-cpp-plugin.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_exampleplugin <<END
|
|
out: Hallo Welt!
|
|
out: Tschuess Welt!
|
|
out: Hello World!
|
|
out: Bye World!
|
|
return: 0
|
|
END
|
|
|
|
TEST "C plugin test, nested" plugin_exampleplugin_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
|
|
|
|
TEST "C++ plugin test" plugin_exampleplugin_cpp <<END
|
|
out: opened 0x.+ global interfaces 0x...
|
|
out: Hallo Welt!
|
|
out: Tschüss schnöde Welt!
|
|
out: Hello World!
|
|
out: Bye Vale of Tears!
|
|
out: dying
|
|
return: 0
|
|
END
|
|
|
|
unset LUMIERA_PLUGIN_PATH
|
|
unset LUMIERA_CONFIG_PATH
|