2008-11-04 08:07:48 +01:00
|
|
|
TESTING "testing plugins" ./test-interfaces
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
TEST "discovering plugins, missing path" plugin_discover <<END
|
2009-02-12 02:38:58 +01:00
|
|
|
out: found plugin: \(null\)
|
2008-11-04 08:07:48 +01:00
|
|
|
return: 0
|
|
|
|
|
END
|
|
|
|
|
|
2011-02-06 05:06:16 +01:00
|
|
|
export LUMIERA_PLUGIN_PATH=modules
|
2008-12-21 21:15:11 +01:00
|
|
|
export LUMIERA_CONFIG_PATH=./
|
2008-11-04 08:07:48 +01:00
|
|
|
|
|
|
|
|
TEST "discovering plugins" plugin_discover <<END
|
2011-02-06 05:06:16 +01:00
|
|
|
out: found plugin: modules/examplepluginc.lum
|
2008-11-04 08:07:48 +01:00
|
|
|
return: 0
|
|
|
|
|
END
|
|
|
|
|
|
|
|
|
|
TEST "plugin unloading" plugin_unload <<END
|
2009-02-12 02:38:58 +01:00
|
|
|
out: plugin unload: \(nil\)
|
2008-11-04 08:07:48 +01:00
|
|
|
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
|
|
|
|
|
|
2008-11-07 03:59:43 +01:00
|
|
|
TEST "C plugin test, nested" plugin_examplepluginc_nested <<END
|
2009-02-12 02:38:58 +01:00
|
|
|
out: config path is: \./
|
2011-02-06 05:06:16 +01:00
|
|
|
out: plugin path is: modules
|
2008-11-07 03:59:43 +01:00
|
|
|
out: Hallo Welt!
|
|
|
|
|
out: Hello World!
|
|
|
|
|
out: Bye World!
|
|
|
|
|
out: Tschuess Welt!
|
|
|
|
|
return: 0
|
|
|
|
|
END
|
|
|
|
|
|
2008-11-04 08:07:48 +01:00
|
|
|
unset LUMIERA_PLUGIN_PATH
|
2008-12-21 21:15:11 +01:00
|
|
|
unset LUMIERA_CONFIG_PATH
|