test: Build test cases with their respective c++ files
The current build situation places the test wrappers and logs into the
top level test directory. We can actually build and run these binaries
ink the subdirectories containing the test sources. Do this.
Tested:
Run through the unit test suite and all test still show up and pass.
Change-Id: Ia5c9957242ae4df88dca6433682dc66bbbc3d684
Signed-off-by: William A. Kennington III <wak@google.com>
diff --git a/.gitignore b/.gitignore
index e7fd756..4d40130 100644
--- a/.gitignore
+++ b/.gitignore
@@ -46,11 +46,11 @@
/test/clock
/test/event
/test/exception
-/test/internal_sdref
-/test/internal_utils
-/test/source_base
-/test/source_child
-/test/source_event
-/test/source_io
-/test/source_signal
-/test/source_time
+/test/internal/sdref
+/test/internal/utils
+/test/source/base
+/test/source/child
+/test/source/event
+/test/source/io
+/test/source/signal
+/test/source/time
diff --git a/test/Makefile.am b/test/Makefile.am
index 6a5fd9e..2223dfc 100644
--- a/test/Makefile.am
+++ b/test/Makefile.am
@@ -22,42 +22,42 @@
exception_CPPFLAGS = $(gtest_cppflags)
exception_LDADD = $(gtest_ldadd)
-check_PROGRAMS += internal_sdref
+check_PROGRAMS += internal/sdref
internal_sdref_SOURCES = internal/sdref.cpp
internal_sdref_CPPFLAGS = $(gtest_cppflags)
internal_sdref_LDADD = $(gtest_ldadd)
-check_PROGRAMS += internal_utils
+check_PROGRAMS += internal/utils
internal_utils_SOURCES = internal/utils.cpp
internal_utils_CPPFLAGS = $(gtest_cppflags)
internal_utils_LDADD = $(gtest_ldadd)
-check_PROGRAMS += source_base
+check_PROGRAMS += source/base
source_base_SOURCES = source/base.cpp
source_base_CPPFLAGS = $(gtest_cppflags)
source_base_LDADD = $(gtest_ldadd)
-check_PROGRAMS += source_child
+check_PROGRAMS += source/child
source_child_SOURCES = source/child.cpp
source_child_CPPFLAGS = $(gtest_cppflags)
source_child_LDADD = $(gtest_ldadd)
-check_PROGRAMS += source_event
+check_PROGRAMS += source/event
source_event_SOURCES = source/event.cpp
source_event_CPPFLAGS = $(gtest_cppflags)
source_event_LDADD = $(gtest_ldadd)
-check_PROGRAMS += source_io
+check_PROGRAMS += source/io
source_io_SOURCES = source/io.cpp
source_io_CPPFLAGS = $(gtest_cppflags)
source_io_LDADD = $(gtest_ldadd)
-check_PROGRAMS += source_signal
+check_PROGRAMS += source/signal
source_signal_SOURCES = source/signal.cpp
source_signal_CPPFLAGS = $(gtest_cppflags)
source_signal_LDADD = $(gtest_ldadd)
-check_PROGRAMS += source_time
+check_PROGRAMS += source/time
source_time_SOURCES = source/time.cpp
source_time_CPPFLAGS = $(gtest_cppflags)
source_time_LDADD = $(gtest_ldadd)