From 51175189c6d7313a3b84019e39496f957c4e6164 Mon Sep 17 00:00:00 2001 From: Stefano Karapetsas Date: Sun, 11 Dec 2011 12:55:19 +0100 Subject: moved from Mate-Extra --- src/gpm-self-test.c | 84 +++++++++++++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 84 insertions(+) create mode 100644 src/gpm-self-test.c (limited to 'src/gpm-self-test.c') 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 + * + * 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 +#include +#include +#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)); +} + -- cgit v1.2.1