[glib/wip/test-cleanup: 1/4] Move a pair of gobject tests to tests/gobject/
- From: Ryan Lortie <ryanl src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [glib/wip/test-cleanup: 1/4] Move a pair of gobject tests to tests/gobject/
- Date: Fri, 31 May 2013 20:43:16 +0000 (UTC)
commit bb173d2c45a49f06a61fad9e9421d869d72ffc79
Author: Ryan Lortie <desrt desrt ca>
Date: Wed May 29 23:43:26 2013 -0400
Move a pair of gobject tests to tests/gobject/
testgobject.c and timeloop-closure.c are the only two tests in the
toplevel tests/ directory that depend on gobject, so move them to
tests/gobject/ along with the other gobject tests.
Both of these were in noinst_PROGRAMS and not TESTS, so keep them that
way when we move them.
tests/Makefile.am | 7 ++-----
tests/gobject/Makefile.am | 6 +++++-
tests/{ => gobject}/testgobject.c | 0
tests/{ => gobject}/timeloop-closure.c | 0
4 files changed, 7 insertions(+), 6 deletions(-)
---
diff --git a/tests/Makefile.am b/tests/Makefile.am
index 6f4b82e..5a342c5 100644
--- a/tests/Makefile.am
+++ b/tests/Makefile.am
@@ -60,7 +60,7 @@ CXX_TEST =
endif
if ENABLE_TIMELOOP
-timeloop = timeloop timeloop-closure
+timeloop = timeloop
endif
noinst_PROGRAMS = $(TEST_PROGS) \
testgdate \
@@ -69,8 +69,7 @@ noinst_PROGRAMS = $(TEST_PROGS) \
unicode-collate \
$(timeloop) \
assert-msg-test \
- datetime \
- testgobject
+ datetime
TEST_PROGS += testglib
testglib_SOURCES = testglib.c
@@ -84,10 +83,8 @@ unicode_collate_LDADD = $(libglib)
assert_msg_test_LDADD = $(libglib)
if ENABLE_TIMELOOP
timeloop_LDADD = $(libglib)
-timeloop_closure_LDADD = $(libglib) $(libgobject)
endif
datetime_LDADD = $(libglib)
-testgobject_LDADD = $(libglib) $(libgobject)
test_programs = \
atomic-test \
diff --git a/tests/gobject/Makefile.am b/tests/gobject/Makefile.am
index 7748dd1..e58b158 100644
--- a/tests/gobject/Makefile.am
+++ b/tests/gobject/Makefile.am
@@ -70,7 +70,11 @@ performance_programs = \
performance_LDADD = $(libgobject) $(libgthread)
performance_threaded_LDADD = $(libgobject) $(libgthread)
check_PROGRAMS = $(test_programs)
-noinst_PROGRAMS = $(performance_programs)
+noinst_PROGRAMS = $(performance_programs) testgobject
+
+if ENABLE_TIMELOOP
+noinst_PROGRAMS += timeloop-closure
+endif
TESTS = $(test_programs) $(performance_programs)
TESTS_ENVIRONMENT = srcdir=$(srcdir) \
diff --git a/tests/testgobject.c b/tests/gobject/testgobject.c
similarity index 100%
rename from tests/testgobject.c
rename to tests/gobject/testgobject.c
diff --git a/tests/timeloop-closure.c b/tests/gobject/timeloop-closure.c
similarity index 100%
rename from tests/timeloop-closure.c
rename to tests/gobject/timeloop-closure.c
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]