remove the seedjs loader itself refs #63
--- a/CMakeLists.txt Sat Feb 28 19:40:29 2015 -0600
+++ b/CMakeLists.txt Sat Feb 28 19:40:41 2015 -0600
@@ -185,7 +185,6 @@
###############################################################################
--- a/seed/CMakeLists.txt Sat Feb 28 19:40:29 2015 -0600
+++ /dev/null Thu Jan 01 00:00:00 1970 +0000
@@ -1,42 +0,0 @@
- "Whether or not to build the seed JavaScript plugin loader"
- message(FATAL_ERROR "Seed JavaScript plugin requires GObject Introspection.")
- set(GPLUGIN_SEED_SOURCES
- set(GPLUGIN_SEED_HEADERS
- pkg_check_modules(SEED REQUIRED seed>=3.0.0)
- add_library(gplugin-seed MODULE
- ${GPLUGIN_SEED_SOURCES}
- ${GPLUGIN_SEED_HEADERS}
- set_target_properties(gplugin-seed PROPERTIES PREFIX "")
- include_directories(${SEED_INCLUDE_DIRS})
- target_link_libraries(gplugin-seed
- install(TARGETS gplugin-seed DESTINATION lib/gplugin)
- add_subdirectory(tests)
--- a/seed/gplugin-seed-core.c Sat Feb 28 19:40:29 2015 -0600
+++ /dev/null Thu Jan 01 00:00:00 1970 +0000
@@ -1,67 +0,0 @@
- * Copyright (C) 2011-2014 Gary Kramlich <grim@reaperworld.com>
- * This library is free software; you can redistribute it and/or
- * modify it under the terms of the GNU Lesser General Public
- * License as published by the Free Software Foundation; either
- * version 2 of the License, or (at your option) any later version.
- * This library is distributed in the hope that it will be useful,
- * but WITHOUT ANY WARRANTY; without even the implied warranty of
- * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
- * Lesser General Public License for more details.
- * You should have received a copy of the GNU Lesser General Public
- * License along with this library; if not, see <http://www.gnu.org/licenses/>.
-#include <gplugin-native.h>
-#include "gplugin-seed-loader.h"
-#include "gplugin-seed-plugin.h"
-G_MODULE_EXPORT GPluginPluginInfo *
-gplugin_query(GPLUGIN_UNUSED GError **error) {
- const gchar * const authors[] = {
- "Gary Kramlich <grim@reaperworld.com>",
- return gplugin_plugin_info_new(
- GPLUGIN_NATIVE_PLUGIN_ABI_VERSION,
- "name", "Seed JavaScript Plugin Loader",
- "version", GPLUGIN_VERSION,
- "summary", "A plugin that can load seed JavaScript plugins",
- "description", "This plugin allows the loading of plugins written in "
- "website", GPLUGIN_WEBSITE,
-G_MODULE_EXPORT gboolean
-gplugin_load(GPluginNativePlugin *plugin,
- GPLUGIN_UNUSED GError **error)
- gplugin_seed_loader_register(plugin);
- gplugin_seed_plugin_register(plugin);
- gplugin_manager_register_loader(gplugin_seed_loader_get_type());
-G_MODULE_EXPORT gboolean
-gplugin_unload(GPLUGIN_UNUSED GPluginNativePlugin *plugin,
- GPLUGIN_UNUSED GError **error)
--- a/seed/gplugin-seed-loader.c Sat Feb 28 19:40:29 2015 -0600
+++ /dev/null Thu Jan 01 00:00:00 1970 +0000
@@ -1,330 +0,0 @@
- * Copyright (C) 2011-2014 Gary Kramlich <grim@reaperworld.com>
- * This library is free software; you can redistribute it and/or
- * modify it under the terms of the GNU Lesser General Public
- * License as published by the Free Software Foundation; either
- * version 2 of the License, or (at your option) any later version.
- * This library is distributed in the hope that it will be useful,
- * but WITHOUT ANY WARRANTY; without even the implied warranty of
- * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
- * Lesser General Public License for more details.
- * You should have received a copy of the GNU Lesser General Public
- * License along with this library; if not, see <http://www.gnu.org/licenses/>.
-#include "gplugin-seed-loader.h"
-#include "gplugin-seed-plugin.h"
-/******************************************************************************
- *****************************************************************************/
-static GObjectClass *parent_class = NULL;
-static GType type_real = 0;
-static SeedEngine *engine = NULL;
-/******************************************************************************
- *****************************************************************************/
-/******************************************************************************
- * GPluginLoaderInterface API
- *****************************************************************************/
-gplugin_seed_loader_class_supported_extensions(GPLUGIN_UNUSED const GPluginLoaderClass *klass) {
- return g_slist_append(NULL, "js");
-gplugin_seed_loader_query(GPluginLoader *loader, const gchar *filename,
- GPluginPluginInfo *info = NULL;
- SeedContext ctx = NULL;
- SeedException exp = NULL;
- SeedObject global = NULL, query = NULL, load = NULL, unload = NULL;
- SeedObject sinfo = NULL;
- SeedScript *script = NULL;
- gchar *contents = NULL;
- if(!g_file_get_contents(filename, &contents, NULL, error)) {
- /* create our context */
- ctx = seed_context_create(engine->group, NULL);
- seed_prepare_global_context(ctx);
- /* now create and evaluate the script object */
- script = seed_make_script(ctx, contents, filename, 0);
- seed_evaluate(ctx, script, NULL);
- exp = seed_script_exception(script);
- seed_script_destroy(script);
- /* did we get any exceptions during evaluation? */
- gchar *message = seed_exception_to_string(ctx, exp);
- *error = g_error_new(GPLUGIN_DOMAIN, 0, "Failed to load %s : %s",
- seed_context_unref(ctx);
- /* now get the global namespace from the context and use it to get the
- * GPlugin entry points.
- global = seed_context_get_global_object(ctx);
- query = seed_object_get_property(ctx, global, "gplugin_query");
- load = seed_object_get_property(ctx, global, "gplugin_load");
- unload = seed_object_get_property(ctx, global, "gplugin_unload");
- /* now validate the entry points */
- if(!seed_value_is_function(ctx, query)) {
- *error = g_error_new(GPLUGIN_DOMAIN, 0,
- "Failed to find the gplugin_query function");
- seed_context_unref(ctx);
- if(!seed_value_is_function(ctx, load)) {
- *error = g_error_new(GPLUGIN_DOMAIN, 0,
- "Failed to find the gplugin_load function");
- seed_context_unref(ctx);
- if(!seed_value_is_function(ctx, unload)) {
- *error = g_error_new(GPLUGIN_DOMAIN, 0,
- "Failed to find the gplugin_unload function");
- seed_context_unref(ctx);
- /* now that we have all of our entry points, call the query method to get
- sinfo = seed_object_call(ctx, query, NULL, 0, NULL, &exp);
- gchar *message = seed_exception_get_message(ctx, exp);
- *error = g_error_new(GPLUGIN_DOMAIN, 0,
- "Failed to query %s : %s", filename, message);
- seed_context_unref(ctx);
- /* now convert the JavaScript PluginInfo into the C version */
- info = GPLUGIN_PLUGIN_INFO(seed_value_to_object(ctx, sinfo, &exp));
- gchar *message = seed_exception_get_message(ctx, exp);
- *error = g_error_new(GPLUGIN_DOMAIN, 0,
- "Failed to query %s : %s", filename, message);
- seed_context_unref(ctx);
- /* validate that the info we got is an instance of GPluginPluginInfo */
- if(!GPLUGIN_IS_PLUGIN_INFO(info)) {
- *error = g_error_new(GPLUGIN_DOMAIN, 0,
- "Plugin %s did not return a PluginInfo",
- seed_context_unref(ctx);
- return g_object_new(GPLUGIN_TYPE_SEED_PLUGIN,
-gplugin_seed_loader_load_unload(GPLUGIN_UNUSED GPluginLoader *loader,
- SeedContext ctx = NULL;
- SeedException exp = NULL;
- SeedObject func = NULL;
- g_return_val_if_fail(GPLUGIN_IS_SEED_PLUGIN(plugin), FALSE);
- g_object_get(G_OBJECT(plugin),
- /* make sure we got the context and the function */
- if(ctx == NULL || func == NULL) {
- *error = g_error_new(GPLUGIN_DOMAIN, 0,
- "Plugin is in an unknown state");
- /* convert the plugin into a SeedObject */
- args[0] = seed_value_from_object(ctx, G_OBJECT(plugin), exp);
- gchar *message = seed_exception_get_message(ctx, exp);
- *error = g_error_new(GPLUGIN_DOMAIN, 0, "%s", message);
- /* now call the function */
- sret = seed_object_call(ctx, func, NULL, 1, args, exp);
- gchar *message = seed_exception_get_message(ctx, exp);
- *error = g_error_new(GPLUGIN_DOMAIN, 0, "%s", message);
- /* finally check what the plugins function returned */
- ret = seed_value_to_boolean(ctx, sret, &exp);
- gchar *message = seed_exception_get_message(ctx, exp);
- *error = g_error_new(GPLUGIN_DOMAIN, 0, "%s", message);
-gplugin_seed_loader_load(GPluginLoader *loader, GPluginPlugin *plugin,
- return gplugin_seed_loader_load_unload(loader, plugin, "load", error);
-gplugin_seed_loader_unload(GPluginLoader *loader, GPluginPlugin *plugin,
- return gplugin_seed_loader_load_unload(loader, plugin, "unload", error);
-/******************************************************************************
- *****************************************************************************/
-gplugin_seed_loader_class_init(GPluginSeedLoaderClass *klass) {
- GPluginLoaderClass *loader_class = GPLUGIN_LOADER_CLASS(klass);
- parent_class = g_type_class_peek_parent(klass);
- loader_class->supported_extensions =
- gplugin_seed_loader_class_supported_extensions;
- loader_class->query = gplugin_seed_loader_query;
- loader_class->load = gplugin_seed_loader_load;
- loader_class->unload = gplugin_seed_loader_unload;
-/******************************************************************************
- *****************************************************************************/
-gplugin_seed_loader_register(GPluginNativePlugin *plugin) {
- if(g_once_init_enter(&type_real)) {
- static const GTypeInfo info = {
- .class_size = sizeof(GPluginSeedLoaderClass),
- .class_init = (GClassInitFunc)gplugin_seed_loader_class_init,
- .instance_size = sizeof(GPluginSeedLoader),
- type = gplugin_native_plugin_register_type(plugin,
- engine = seed_init(NULL, NULL);
- g_once_init_leave(&type_real, type);
-gplugin_seed_loader_get_type(void) {
- if(G_UNLIKELY(type_real == 0)) {
- g_warning("gplugin_seed_loader_get_type was called before "
- "the type was registered!\n");
--- a/seed/gplugin-seed-loader.h Sat Feb 28 19:40:29 2015 -0600
+++ /dev/null Thu Jan 01 00:00:00 1970 +0000
@@ -1,60 +0,0 @@
- * Copyright (C) 2011-2014 Gary Kramlich <grim@reaperworld.com>
- * This library is free software; you can redistribute it and/or
- * modify it under the terms of the GNU Lesser General Public
- * License as published by the Free Software Foundation; either
- * version 2 of the License, or (at your option) any later version.
- * This library is distributed in the hope that it will be useful,
- * but WITHOUT ANY WARRANTY; without even the implied warranty of
- * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
- * Lesser General Public License for more details.
- * You should have received a copy of the GNU Lesser General Public
- * License along with this library; if not, see <http://www.gnu.org/licenses/>.
-#ifndef GPLUGIN_SEED_LOADER_H
-#define GPLUGIN_SEED_LOADER_H
-#define GPLUGIN_TYPE_SEED_LOADER (gplugin_seed_loader_get_type())
-#define GPLUGIN_SEED_LOADER(obj) (G_TYPE_CHECK_INSTANCE_CAST((obj), GPLUGIN_TYPE_SEED_LOADER, GPluginSeedLoader))
-#define GPLUGIN_SEED_LOADER_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST((obj), GPLUGIN_TYPE_SEED_LOADER, GPluginSeedLoaderClass))
-#define GPLUGIN_IS_SEED_LOADER(obj) (G_TYPE_CHECK_INSTANCE_TYPE((obj), GPLUGIN_TYPE_SEED_LOADER))
-#define GPLUGIN_IS_SEED_LOADER_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE((obj), GPLUGIN_TYPE_SEED_LOADER))
-#define GPLUGIN_SEED_LOADER_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS((obj), GPLUGIN_TYPE_SEED_LOADER, GPluginSeedLoaderClass))
-typedef struct _GPluginSeedLoader GPluginSeedLoader;
-typedef struct _GPluginSeedLoaderClass GPluginSeedLoaderClass;
-#include <gplugin-native.h>
-struct _GPluginSeedLoader {
- void (*_gplugin_reserved_1)(void);
- void (*_gplugin_reserved_2)(void);
- void (*_gplugin_reserved_3)(void);
- void (*_gplugin_reserved_4)(void);
-struct _GPluginSeedLoaderClass {
- GPluginLoaderClass parent;
- void (*_gplugin_reserved_1)(void);
- void (*_gplugin_reserved_2)(void);
- void (*_gplugin_reserved_3)(void);
- void (*_gplugin_reserved_4)(void);
-void gplugin_seed_loader_register(GPluginNativePlugin *plugin);
-GType gplugin_seed_loader_get_type(void);
-#endif /* GPLUGIN_SEED_LOADER_H */
--- a/seed/gplugin-seed-plugin.c Sat Feb 28 19:40:29 2015 -0600
+++ /dev/null Thu Jan 01 00:00:00 1970 +0000
@@ -1,220 +0,0 @@
- * Copyright (C) 2011-2014 Gary Kramlich <grim@reaperworld.com>
- * This library is free software; you can redistribute it and/or
- * modify it under the terms of the GNU Lesser General Public
- * License as published by the Free Software Foundation; either
- * version 2 of the License, or (at your option) any later version.
- * This library is distributed in the hope that it will be useful,
- * but WITHOUT ANY WARRANTY; without even the implied warranty of
- * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
- * Lesser General Public License for more details.
- * You should have received a copy of the GNU Lesser General Public
- * License along with this library; if not, see <http://www.gnu.org/licenses/>.
-#include "gplugin-seed-plugin.h"
-#define GPLUGIN_SEED_PLUGIN_GET_PRIVATE(obj) \
- (G_TYPE_INSTANCE_GET_PRIVATE((obj), GPLUGIN_TYPE_SEED_PLUGIN, GPluginSeedPluginPrivate))
-/******************************************************************************
- *****************************************************************************/
-} GPluginSeedPluginPrivate;
-/******************************************************************************
- *****************************************************************************/
-/******************************************************************************
- *****************************************************************************/
-static GObjectClass *parent_class = NULL;
-static GType type_real = 0;
-/******************************************************************************
- *****************************************************************************/
-gplugin_seed_plugin_set_context(GPluginSeedPlugin *plugin, SeedContext ctx) {
- GPluginSeedPluginPrivate *priv = GPLUGIN_SEED_PLUGIN_GET_PRIVATE(plugin);
-gplugin_seed_plugin_set_load(GPluginSeedPlugin *plugin, SeedObject load) {
- GPluginSeedPluginPrivate *priv = GPLUGIN_SEED_PLUGIN_GET_PRIVATE(plugin);
-gplugin_seed_plugin_set_unload(GPluginSeedPlugin *plugin, SeedObject unload) {
- GPluginSeedPluginPrivate *priv = GPLUGIN_SEED_PLUGIN_GET_PRIVATE(plugin);
-/******************************************************************************
- *****************************************************************************/
-gplugin_seed_plugin_get_property(GObject *obj, guint param_id, GValue *value,
- GPluginSeedPlugin *plugin = GPLUGIN_SEED_PLUGIN(obj);
- g_value_set_pointer(value,
- gplugin_seed_plugin_get_context(plugin));
- g_value_set_pointer(value,
- gplugin_seed_plugin_get_load_func(plugin));
- g_value_set_pointer(value,
- gplugin_seed_plugin_get_unload_func(plugin));
- G_OBJECT_WARN_INVALID_PROPERTY_ID(obj, param_id, pspec);
-gplugin_seed_plugin_set_property(GObject *obj, guint param_id,
- const GValue *value, GParamSpec *pspec)
- GPluginSeedPlugin *plugin = GPLUGIN_SEED_PLUGIN(obj);
- gplugin_seed_plugin_set_context(plugin,
- g_value_get_pointer(value));
- gplugin_seed_plugin_set_load(plugin,
- g_value_get_pointer(value));
- gplugin_seed_plugin_set_unload(plugin,
- g_value_get_pointer(value));
- G_OBJECT_WARN_INVALID_PROPERTY_ID(obj, param_id, pspec);
-gplugin_seed_plugin_finalize(GObject *obj) {
- GPluginSeedPluginPrivate *priv = GPLUGIN_SEED_PLUGIN_GET_PRIVATE(obj);
- seed_context_unref(priv->ctx);
- G_OBJECT_CLASS(parent_class)->finalize(obj);
-gplugin_seed_plugin_class_init(GPluginSeedPluginClass *klass) {
- GObjectClass *obj_class = G_OBJECT_CLASS(klass);
- parent_class = g_type_class_peek_parent(klass);
- g_type_class_add_private(klass, sizeof(GPluginSeedPluginPrivate));
- obj_class->get_property = gplugin_seed_plugin_get_property;
- obj_class->set_property = gplugin_seed_plugin_set_property;
- obj_class->finalize = gplugin_seed_plugin_finalize;
- g_object_class_install_property(obj_class, PROP_CONTEXT,
- g_param_spec_pointer("context", "context",
- "The seed context for the plugin",
- G_PARAM_READWRITE | G_PARAM_CONSTRUCT_ONLY));
- g_object_class_install_property(obj_class, PROP_LOAD,
- g_param_spec_pointer("load", "load",
- "The load function for the plugin",
- G_PARAM_READWRITE | G_PARAM_CONSTRUCT_ONLY));
- g_object_class_install_property(obj_class, PROP_UNLOAD,
- g_param_spec_pointer("unload", "unload",
- "The unload function for the plugin",
- G_PARAM_READWRITE | G_PARAM_CONSTRUCT_ONLY));
-/******************************************************************************
- *****************************************************************************/
-gplugin_seed_plugin_register(GPluginNativePlugin *plugin) {
- if(g_once_init_enter(&type_real)) {
- static const GTypeInfo info = {
- .class_size = sizeof(GPluginSeedPluginClass),
- .class_init = (GClassInitFunc)gplugin_seed_plugin_class_init,
- .instance_size = sizeof(GPluginSeedPlugin),
- type = gplugin_native_plugin_register_type(plugin,
- g_once_init_leave(&type_real, type);
-gplugin_seed_plugin_get_type(void) {
- if(G_UNLIKELY(type_real == 0)) {
- g_warning("gplugin_seed_plugin_get_type was called before "
- "the type was registered!\n");
-gplugin_seed_plugin_get_context(const GPluginSeedPlugin *plugin) {
- GPluginSeedPluginPrivate *priv = GPLUGIN_SEED_PLUGIN_GET_PRIVATE(plugin);
-gplugin_seed_plugin_get_load_func(const GPluginSeedPlugin *plugin) {
- GPluginSeedPluginPrivate *priv = GPLUGIN_SEED_PLUGIN_GET_PRIVATE(plugin);
-gplugin_seed_plugin_get_unload_func(const GPluginSeedPlugin *plugin) {
- GPluginSeedPluginPrivate *priv = GPLUGIN_SEED_PLUGIN_GET_PRIVATE(plugin);
--- a/seed/gplugin-seed-plugin.h Sat Feb 28 19:40:29 2015 -0600
+++ /dev/null Thu Jan 01 00:00:00 1970 +0000
@@ -1,61 +0,0 @@
- * Copyright (C) 2011-2014 Gary Kramlich <grim@reaperworld.com>
- * This library is free software; you can redistribute it and/or
- * modify it under the terms of the GNU Lesser General Public
- * License as published by the Free Software Foundation; either
- * version 2 of the License, or (at your option) any later version.
- * This library is distributed in the hope that it will be useful,
- * but WITHOUT ANY WARRANTY; without even the implied warranty of
- * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
- * Lesser General Public License for more details.
- * You should have received a copy of the GNU Lesser General Public
- * License along with this library; if not, see <http://www.gnu.org/licenses/>.
-#ifndef GPLUGIN_SEED_PLUGIN_H
-#define GPLUGIN_SEED_PLUGIN_H
-#define GPLUGIN_TYPE_SEED_PLUGIN (gplugin_seed_plugin_get_type())
-#define GPLUGIN_SEED_PLUGIN(obj) (G_TYPE_CHECK_INSTANCE_CAST((obj), GPLUGIN_TYPE_SEED_PLUGIN, GPluginSeedPlugin))
-#define GPLUGIN_SEED_PLUGIN_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST((obj), GPLUGIN_TYPE_SEED_PLUGIN, GPluginSeedPluginClass))
-#define GPLUGIN_IS_SEED_PLUGIN(obj) (G_TYPE_CHECK_INSTANCE_TYPE((obj), GPLUGIN_TYPE_SEED_PLUGIN))
-#define GPLUGIN_IS_SEED_PLUGIN_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE((obj), GPLUGIN_TYPE_SEED_PLUGIN))
-#define GPLUGIN_SEED_PLUGIN_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS((obj), GPLUGIN_TYPE_SEED_PLUGIN, GPluginSeedPluginClass))
-typedef struct _GPluginSeedPlugin GPluginSeedPlugin;
-typedef struct _GPluginSeedPluginClass GPluginSeedPluginClass;
-#include <gplugin-native.h>
-struct _GPluginSeedPlugin {
-struct _GPluginSeedPluginClass {
- GPluginPluginClass parent;
- void (*_gplugin_reserved_1)(void);
- void (*_gplugin_reserved_2)(void);
- void (*_gplugin_reserved_3)(void);
- void (*_gplugin_reserved_4)(void);
-void gplugin_seed_plugin_register(GPluginNativePlugin *plugin);
-GType gplugin_seed_plugin_get_type(void);
-SeedContext gplugin_seed_plugin_get_context(const GPluginSeedPlugin *plugin);
-SeedObject gplugin_seed_plugin_get_load_func(const GPluginSeedPlugin *plugin);
-SeedObject gplugin_seed_plugin_get_unload_func(const GPluginSeedPlugin *plugin);
-#endif /* GPLUGIN_SEED_PLUGIN_H */
--- a/seed/tests/CMakeLists.txt Sat Feb 28 19:40:29 2015 -0600
+++ /dev/null Thu Jan 01 00:00:00 1970 +0000
@@ -1,52 +0,0 @@
-macro(add_seed_gtest target)
- add_executable(${target} ${target}.c)
- target_link_libraries(${target}
- ${GLIB_LIBRARIES} ${SEED_LIBRARIES} gplugin
- add_dependencies(${target} gplugin-seed)
- get_target_property(_output_name ${target} RUNTIME_OUTPUT_NAME)
- if(NOT ${_output_name})
- get_target_property(_output_name ${target} LOCATION)
- endif(NOT ${_output_name})
- list(APPEND SEED_TESTS ${_output_name})
-endmacro(add_seed_gtest)
- -DSEED_LOADER_DIR="${CMAKE_BINARY_DIR}/seed"
- -DSEED_PLUGIN_DIR="${CMAKE_CURRENT_SOURCE_DIR}/plugins"
-add_seed_gtest(test-seed-loader)
-target_link_libraries(test-seed-loader gplugin-loader-tests)
-set(GTESTER_SEED_TESTS "${SEED_TESTS}")
-set(GTESTER_SEED_LOG "test-gplugin-seed.xml")
-set(GTESTER_SEED_JUNIT "test-gplugin-seed-junit.xml")
- COMMAND ${GTESTER} -k --verbose -o ${GTESTER_SEED_LOG} ${SEED_TESTS}
- OUTPUT ${GTESTER_SEED_LOG}
- DEPENDS gplugin ${GPLUGIN_GIR_TARGETS} gplugin-seed
- ${SEED_TESTS} ${CMAKE_CURRENT_SOURCE_DIR}/plugins
- WORKING_DIRECTORY ${CMAKE_CURRENT_BINARY_DIR}
- COMMAND ${XSLTPROC} -o ${GTESTER_SEED_JUNIT} --nonet
- ${CMAKE_SOURCE_DIR}/xsl/gtester-junit.xsl
- OUTPUT ${GTESTER_SEED_JUNIT}
- DEPENDS ${GTESTER_SEED_LOG}
- WORKING_DIRECTORY ${CMAKE_CURRENT_BINARY_DIR}
-add_custom_target(seed-tests ALL
- DEPENDS ${GTESTER_SEED_LOG} ${GTESTER_SEED_JUNIT} ${SEED_TESTS}
--- a/seed/tests/plugins/basic.js Sat Feb 28 19:40:29 2015 -0600
+++ /dev/null Thu Jan 01 00:00:00 1970 +0000
@@ -1,43 +0,0 @@
- * Copyright (C) 2011-2014 Gary Kramlich <grim@reaperworld.com>
- * This library is free software; you can redistribute it and/or
- * modify it under the terms of the GNU Lesser General Public
- * License as published by the Free Software Foundation; either
- * version 2 of the License, or (at your option) any later version.
- * This library is distributed in the hope that it will be useful,
- * but WITHOUT ANY WARRANTY; without even the implied warranty of
- * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
- * Lesser General Public License for more details.
- * You should have received a copy of the GNU Lesser General Public
- * License along with this library; if not, see <http://www.gnu.org/licenses/>.
-var GPlugin = imports.gi.GPlugin;
-function gplugin_query() {
- return new GPlugin.PluginInfo({
- id: "gplugin/seed-basic-plugin",
- abi_version: 0x01020304,
- description: 'description'
-function gplugin_load(plugin) {
-function gplugin_unload(plugin) {
--- a/seed/tests/plugins/dependent.js Sat Feb 28 19:40:29 2015 -0600
+++ /dev/null Thu Jan 01 00:00:00 1970 +0000
@@ -1,34 +0,0 @@
- * Copyright (C) 2011-2014 Gary Kramlich <grim@reaperworld.com>
- * This library is free software; you can redistribute it and/or
- * modify it under the terms of the GNU Lesser General Public
- * License as published by the Free Software Foundation; either
- * version 2 of the License, or (at your option) any later version.
- * This library is distributed in the hope that it will be useful,
- * but WITHOUT ANY WARRANTY; without even the implied warranty of
- * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
- * Lesser General Public License for more details.
- * You should have received a copy of the GNU Lesser General Public
- * License along with this library; if not, see <http://www.gnu.org/licenses/>.
-var GPlugin = imports.gi.GPlugin;
-function gplugin_query() {
- return new GPlugin.PluginInfo({
- id: "gplugin/seed-dependent-plugin",
- dependencies: ["dependency1", "dependency2"],
-function gplugin_load(plugin) {
-function gplugin_unload(plugin) {
--- a/seed/tests/plugins/load-exception.js Sat Feb 28 19:40:29 2015 -0600
+++ /dev/null Thu Jan 01 00:00:00 1970 +0000
@@ -1,33 +0,0 @@
- * Copyright (C) 2011-2014 Gary Kramlich <grim@reaperworld.com>
- * This library is free software; you can redistribute it and/or
- * modify it under the terms of the GNU Lesser General Public
- * License as published by the Free Software Foundation; either
- * version 2 of the License, or (at your option) any later version.
- * This library is distributed in the hope that it will be useful,
- * but WITHOUT ANY WARRANTY; without even the implied warranty of
- * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
- * Lesser General Public License for more details.
- * You should have received a copy of the GNU Lesser General Public
- * License along with this library; if not, see <http://www.gnu.org/licenses/>.
-var GPlugin = imports.gi.GPlugin;
-function gplugin_query() {
- return new GPlugin.PluginInfo({
- id: "gplugin/seed-load-exception"
-function gplugin_load(plugin) {
-function gplugin_unload(plugin) {
--- a/seed/tests/plugins/load-failed.js Sat Feb 28 19:40:29 2015 -0600
+++ /dev/null Thu Jan 01 00:00:00 1970 +0000
@@ -1,33 +0,0 @@
- * Copyright (C) 2011-2014 Gary Kramlich <grim@reaperworld.com>
- * This library is free software; you can redistribute it and/or
- * modify it under the terms of the GNU Lesser General Public
- * License as published by the Free Software Foundation; either
- * version 2 of the License, or (at your option) any later version.
- * This library is distributed in the hope that it will be useful,
- * but WITHOUT ANY WARRANTY; without even the implied warranty of
- * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
- * Lesser General Public License for more details.
- * You should have received a copy of the GNU Lesser General Public
- * License along with this library; if not, see <http://www.gnu.org/licenses/>.
-var GPlugin = imports.gi.GPlugin;
-function gplugin_query() {
- return new GPlugin.PluginInfo({
- id: "gplugin/seed-load-failed"
-function gplugin_load(plugin) {
-function gplugin_unload(plugin) {
--- a/seed/tests/plugins/unload-failed.js Sat Feb 28 19:40:29 2015 -0600
+++ /dev/null Thu Jan 01 00:00:00 1970 +0000
@@ -1,33 +0,0 @@
- * Copyright (C) 2011-2014 Gary Kramlich <grim@reaperworld.com>
- * This library is free software; you can redistribute it and/or
- * modify it under the terms of the GNU Lesser General Public
- * License as published by the Free Software Foundation; either
- * version 2 of the License, or (at your option) any later version.
- * This library is distributed in the hope that it will be useful,
- * but WITHOUT ANY WARRANTY; without even the implied warranty of
- * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
- * Lesser General Public License for more details.
- * You should have received a copy of the GNU Lesser General Public
- * License along with this library; if not, see <http://www.gnu.org/licenses/>.
-var GPlugin = imports.gi.GPlugin;
-function gplugin_query() {
- return new GPlugin.PluginInfo({
- id: "gplugin/seed-unload-failed"
-function gplugin_load(plugin) {
-function gplugin_unload(plugin) {
--- a/seed/tests/test-seed-loader.c Sat Feb 28 19:40:29 2015 -0600
+++ /dev/null Thu Jan 01 00:00:00 1970 +0000
@@ -1,31 +0,0 @@
- * Copyright (C) 2011-2014 Gary Kramlich <grim@reaperworld.com>
- * This library is free software; you can redistribute it and/or
- * modify it under the terms of the GNU Lesser General Public
- * License as published by the Free Software Foundation; either
- * version 2 of the License, or (at your option) any later version.
- * This library is distributed in the hope that it will be useful,
- * but WITHOUT ANY WARRANTY; without even the implied warranty of
- * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
- * Lesser General Public License for more details.
- * You should have received a copy of the GNU Lesser General Public
- * License along with this library; if not, see <http://www.gnu.org/licenses/>.
-#include <gplugin/gplugin-loader-tests.h>
-main(gint argc, gchar **argv) {
- g_test_init(&argc, &argv, NULL);
- gplugin_loader_tests_main(SEED_LOADER_DIR, SEED_PLUGIN_DIR, "seed");