aboutsummaryrefslogtreecommitdiff
path: root/tests
diff options
context:
space:
mode:
authorTed Gould <ted@gould.cx>2012-04-25 11:39:52 -0500
committerTed Gould <ted@gould.cx>2012-04-25 11:39:52 -0500
commit274e47788ea7e1d7cd453598715233eb99a75292 (patch)
treebbadaf673257e61860a1be556385815caf64fbd5 /tests
parent68dedd8bd6eb262c10955a8ab27732e52a8114d7 (diff)
downloadayatana-ido-274e47788ea7e1d7cd453598715233eb99a75292.tar.gz
ayatana-ido-274e47788ea7e1d7cd453598715233eb99a75292.tar.bz2
ayatana-ido-274e47788ea7e1d7cd453598715233eb99a75292.zip
Adding in a dummy test and the dependencies to build it
Diffstat (limited to 'tests')
-rw-r--r--tests/Makefile.am44
-rw-r--r--tests/gtest-menuitems.cpp8
2 files changed, 51 insertions, 1 deletions
diff --git a/tests/Makefile.am b/tests/Makefile.am
index e0b73f5..8fded37 100644
--- a/tests/Makefile.am
+++ b/tests/Makefile.am
@@ -1 +1,43 @@
-# Testing, one, two, three
+
+check_LIBRARIES = libgtest.a
+check_PROGRAMS =
+TESTS =
+
+AM_CPPFLAGS = \
+ $(GTEST_CPPFLAGS) \
+ -I${top_srcdir}/src
+
+#############################
+# Google Test base library
+#############################
+
+nodist_libgtest_a_SOURCES = \
+ $(GTEST_SOURCE)/src/gtest-all.cc \
+ $(GTEST_SOURCE)/src/gtest_main.cc
+libgtest_a_CPPFLAGS = \
+ $(GTEST_CPPFLAGS) -w
+libgtest_a_CXXFLAGS = \
+ $(AM_CXXFLAGS)
+libgtest_a_CPPFLAGS = \
+ $(AM_CPPFLAGS)
+
+#############################
+# Menuitem tests
+#############################
+
+TESTS += gtest-menuitems
+check_PROGRAMS += gtest-menuitems
+
+gtest_menuitems_SOURCES = \
+ gtest-menuitems.cpp
+gtest_menuitems_CPPFLAGS = \
+ $(GCC_CFLAGS) \
+ $(GTK_CFLAGS) \
+ $(MAINTAINER_CFLAGS) \
+ $(AM_CPPFLAGS)
+gtest_menuitems_LDFLAGS = \
+ -pthread
+gtest_menuitems_LDADD = \
+ $(GTK_LIBS) \
+ libgtest.a
+
diff --git a/tests/gtest-menuitems.cpp b/tests/gtest-menuitems.cpp
new file mode 100644
index 0000000..cac28c4
--- /dev/null
+++ b/tests/gtest-menuitems.cpp
@@ -0,0 +1,8 @@
+
+#include <glib-object.h>
+#include <gtest/gtest.h>
+
+TEST(StartTesting, DummyTest) {
+ g_type_init();
+ EXPECT_TRUE(true);
+}