[gnome-logs/wip/test: 28/33] Add tests/gnome-logs-behave-test.c
- From: Rashi Aswani <aswanirashi src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gnome-logs/wip/test: 28/33] Add tests/gnome-logs-behave-test.c
- Date: Wed, 19 Aug 2015 05:51:08 +0000 (UTC)
commit 6b53217b77f8fe2c7c0366c12a3bd6dfd79394d1
Author: Rashi Aswani <aswanirashi19 gmail com>
Date: Mon Jul 27 14:26:31 2015 +0530
Add tests/gnome-logs-behave-test.c
tests/environment.py | 2 +-
tests/gnome-logs-behave-test.c | 53 ++++++++++++++++++++++++++++++++++++++++
2 files changed, 54 insertions(+), 1 deletions(-)
---
diff --git a/tests/environment.py b/tests/environment.py
index f0f7bdb..c8965b4 100644
--- a/tests/environment.py
+++ b/tests/environment.py
@@ -31,7 +31,7 @@ def before_all(context):
# Store scenario start time for session logs
context.log_start_time = strftime("%Y-%m-%d %H:%M:%S", localtime())
- context.app_class = App('./gnome-logs-test')
+ context.app_class = App('./gnome-logs-behave-test')
except Exception as e:
print("Error in before_all: %s" % e.message)
diff --git a/tests/gnome-logs-behave-test.c b/tests/gnome-logs-behave-test.c
new file mode 100644
index 0000000..2030b73
--- /dev/null
+++ b/tests/gnome-logs-behave-test.c
@@ -0,0 +1,53 @@
+/*
+ * GNOME Logs - View and search logs
+ * Copyright (C) 2015 Rashi Aswani
+ *
+ * This program is free software: you can redistribute it and/or modify
+ * it under the terms of the GNU General Public License as published by
+ * the Free Software Foundation, either version 3 of the License, or
+ * (at your option) any later version.
+ *
+ * This program 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 General Public License for more details.
+ *
+ * You should have received a copy of the GNU General Public License
+ * along with this program. If not, see <http://www.gnu.org/licenses/>.
+ */
+
+#include "config.h"
+
+#include <gtk/gtk.h>
+#include <glib/gi18n.h>
+
+#include "gl-mock-journal.h"
+#include "../src/gl-application.h"
+#include "../src/gl-eventviewdetail.h"
+#include "../src/gl-journal-model.h"
+#include "../src/gl-categorylist.h"
+#include "../src/gl-eventview.h"
+#include "../src/gl-enums.h"
+#include "../src/gl-eventtoolbar.h"
+#include "../src/gl-eventviewlist.h"
+#include "../src/gl-eventviewrow.h"
+#include "../src/gl-util.h"
+#include "../src/gl-window.h"
+
+int
+main (int argc, char** argv)
+{
+ GtkApplication *application;
+ int status;
+
+ bindtextdomain (GETTEXT_PACKAGE, LOCALEDIR);
+ bind_textdomain_codeset (PACKAGE_TARNAME, "UTF-8");
+ textdomain (GETTEXT_PACKAGE);
+
+ g_set_prgname (PACKAGE_TARNAME);
+ application = gl_application_new ();
+ status = g_application_run (G_APPLICATION (application), argc, argv);
+ g_application_quit (G_APPLICATION (application));
+ g_object_unref (application);
+ return status;
+}
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]