summaryrefslogtreecommitdiff
path: root/src/gpm-self-test.c
diff options
context:
space:
mode:
authorStefano Karapetsas <[email protected]>2011-12-11 12:55:19 +0100
committerStefano Karapetsas <[email protected]>2011-12-11 12:55:19 +0100
commit51175189c6d7313a3b84019e39496f957c4e6164 (patch)
treee4c2c130fa3140bca28685ef900f04a012e53dcd /src/gpm-self-test.c
downloadmate-power-manager-51175189c6d7313a3b84019e39496f957c4e6164.tar.bz2
mate-power-manager-51175189c6d7313a3b84019e39496f957c4e6164.tar.xz
moved from Mate-Extra
Diffstat (limited to 'src/gpm-self-test.c')
-rw-r--r--src/gpm-self-test.c84
1 files changed, 84 insertions, 0 deletions
diff --git a/src/gpm-self-test.c b/src/gpm-self-test.c
new file mode 100644
index 0000000..ef8c769
--- /dev/null
+++ b/src/gpm-self-test.c
@@ -0,0 +1,84 @@
+/* -*- Mode: C; tab-width: 8; indent-tabs-mode: t; c-basic-offset: 8 -*-
+ *
+ * Copyright (C) 2007-2008 Richard Hughes <[email protected]>
+ *
+ * Licensed under the GNU General Public License Version 2
+ *
+ * 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 2 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, write to the Free Software
+ * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA.
+ */
+
+#include "config.h"
+
+#include <glib.h>
+#include <glib-object.h>
+#include <gtk/gtk.h>
+#include "egg-test.h"
+#include "egg-debug.h"
+
+#include "gpm-screensaver.h"
+
+/* prototypes */
+void egg_precision_test (EggTest *test);
+void egg_discrete_test (EggTest *test);
+void egg_color_test (EggTest *test);
+void egg_array_float_test (EggTest *test);
+void egg_idletime_test (EggTest *test);
+
+void gpm_common_test (EggTest *test);
+void gpm_idle_test (EggTest *test);
+void gpm_phone_test (EggTest *test);
+void gpm_dpms_test (EggTest *test);
+void gpm_graph_widget_test (EggTest *test);
+void gpm_proxy_test (EggTest *test);
+void gpm_hal_manager_test (EggTest *test);
+void gpm_device_test (EggTest *test);
+void gpm_device_teststore (EggTest *test);
+
+int
+main (int argc, char **argv)
+{
+ EggTest *test;
+
+ g_type_init ();
+ test = egg_test_init ();
+ egg_debug_init (TRUE);
+
+ /* needed for DPMS checks */
+ gtk_init (&argc, &argv);
+
+ /* tests go here */
+ egg_precision_test (test);
+ egg_discrete_test (test);
+ egg_color_test (test);
+ egg_array_float_test (test);
+// egg_idletime_test (test);
+
+ gpm_common_test (test);
+ gpm_idle_test (test);
+ gpm_phone_test (test);
+// gpm_dpms_test (test);
+// gpm_graph_widget_test (test);
+// gpm_screensaver_test (test);
+
+#if 0
+ gpm_proxy_test (test);
+ gpm_hal_manager_test (test);
+ gpm_device_test (test);
+ gpm_device_teststore (test);
+#endif
+
+ return (egg_test_finish (test));
+}
+