summaryrefslogtreecommitdiff
path: root/test/test-init.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/test-init.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/test-init.c')
-rw-r--r--test/test-init.c19
1 files changed, 19 insertions, 0 deletions
diff --git a/test/test-init.c b/test/test-init.c
new file mode 100644
index 0000000..1fd856e
--- /dev/null
+++ b/test/test-init.c
@@ -0,0 +1,19 @@
+/* Copyright 2013 Endless Mobile, Inc. */
+
+#include <glib.h>
+#include <endless/endless.h>
+#include "endless/init-private.h"
+
+#include "run-tests.h"
+
+static void
+test_constructor_called (void)
+{
+ g_assert (eos_is_inited ());
+}
+
+void
+add_init_tests (void)
+{
+ g_test_add_func ("/init/constructor-called", test_constructor_called);
+}