summaryrefslogtreecommitdiff
path: root/test/run-tests.c
diff options
context:
space:
mode:
authorPhilip Chimento <philip@endlessm.com>2013-04-09 14:03:53 +0100
committerP. F. Chimento <philip.chimento@gmail.com>2013-04-17 17:15:52 +0200
commit5049b8938f407629690c6682263187986fb5f2ba (patch)
treeaaed4d880af24856a37c8e48918b20f3d2819fb0 /test/run-tests.c
parent89671a4914caf1e20ea20a19c6bff7a058ebb3c4 (diff)
Add test framework
There are automated tests which run when you do 'make check', and also smoke tests which demonstrate one piece of functionality, which can be used as a sort of sanity check or demo. [#1]
Diffstat (limited to 'test/run-tests.c')
-rw-r--r--test/run-tests.c18
1 files changed, 18 insertions, 0 deletions
diff --git a/test/run-tests.c b/test/run-tests.c
new file mode 100644
index 0000000..ba016bc
--- /dev/null
+++ b/test/run-tests.c
@@ -0,0 +1,18 @@
+/* Copyright 2013 Endless Mobile, Inc. */
+
+#include <glib-object.h>
+#include <glib.h>
+
+#include "run-tests.h"
+
+int
+main (int argc,
+ char **argv)
+{
+ g_test_init (&argc, &argv, NULL);
+
+ add_init_tests ();
+ add_hello_tests ();
+
+ return g_test_run ();
+}