From 5049b8938f407629690c6682263187986fb5f2ba Mon Sep 17 00:00:00 2001 From: Philip Chimento Date: Tue, 9 Apr 2013 14:03:53 +0100 Subject: 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] --- test/test-init.c | 19 +++++++++++++++++++ 1 file changed, 19 insertions(+) create mode 100644 test/test-init.c (limited to 'test/test-init.c') 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 +#include +#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); +} -- cgit v1.2.3