summaryrefslogtreecommitdiff
path: root/src/up-self-test.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/up-self-test.c')
-rw-r--r--src/up-self-test.c60
1 files changed, 60 insertions, 0 deletions
diff --git a/src/up-self-test.c b/src/up-self-test.c
new file mode 100644
index 0000000..efa09cf
--- /dev/null
+++ b/src/up-self-test.c
@@ -0,0 +1,60 @@
+/* -*- Mode: C; tab-width: 8; indent-tabs-mode: t; c-basic-offset: 8 -*-
+ *
+ * Copyright (C) 2007-2009 Richard Hughes <richard@hughsie.com>
+ *
+ * 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., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
+ */
+
+#include "config.h"
+
+#include <glib-object.h>
+#include "egg-test.h"
+#include "egg-debug.h"
+
+#include "up-backend.h"
+#include "up-daemon.h"
+#include "up-device.h"
+#include "up-device-list.h"
+#include "up-history.h"
+#include "up-native.h"
+#include "up-polkit.h"
+#include "up-qos.h"
+#include "up-wakeups.h"
+
+int
+main (int argc, char **argv)
+{
+ EggTest *test;
+
+ g_type_init ();
+ test = egg_test_init ();
+ egg_debug_init (&argc, &argv);
+
+ /* tests go here */
+ dkp_backend_test (test);
+ dkp_device_test (test);
+ dkp_device_list_test (test);
+ dkp_history_test (test);
+ dkp_native_test (test);
+ dkp_polkit_test (test);
+ dkp_qos_test (test);
+ dkp_wakeups_test (test);
+ dkp_daemon_test (test);
+
+ return (egg_test_finish (test));
+}
+