[PATCH 09/12] Mamda unittest makefiles


Ian Bell <IBell@...>
 

From 4c699e525633dede4900245759e4d001d5ed3aa8 Mon Sep 17 00:00:00 2001

Message-Id: <4c699e525633dede4900245759e4d001d5ed3aa8.1351009358.git.ibell@...>

In-Reply-To: <180145dfd9a175bb1b824b63df34a41b7e97d425.1351009358.git.ibell@...>

References: <180145dfd9a175bb1b824b63df34a41b7e97d425.1351009358.git.ibell@...>

From: Ian Bell <ibell@...>

Date: Tue, 23 Oct 2012 17:12:23 +0100

Subject: [PATCH 09/12] Mamda unittest makefiles

 

Modified the unittest makefiles for mamda to bring them inline with mama

 

Signed-off-by: Ian Bell <ibell@...>

---

.../src/gunittest/orderImbalances/Makefile.am      |    8 +++-----

mamda/c_cpp/src/gunittest/orderbooks/Makefile.am   |    8 +++-----

mamda/c_cpp/src/gunittest/quotes/Makefile.am       |    8 +++-----

mamda/c_cpp/src/gunittest/secstatus/Makefile.am    |    9 +++------

mamda/c_cpp/src/gunittest/trades/Makefile.am       |    7 +++----

5 files changed, 15 insertions(+), 25 deletions(-)

 

diff --git a/mamda/c_cpp/src/gunittest/orderImbalances/Makefile.am b/mamda/c_cpp/src/gunittest/orderImbalances/Makefile.am

index 7b046db..bc07a58 100644

--- a/mamda/c_cpp/src/gunittest/orderImbalances/Makefile.am

+++ b/mamda/c_cpp/src/gunittest/orderImbalances/Makefile.am

@@ -34,16 +34,14 @@ CFLAGS   += -I@builddir@/../../c

CPPFLAGS += -I@builddir@/../../c

 LIBS = -lmamdabook -lmamda -lrt

-LIBS += -lmama -lwombatcommon -lmamacpp

+LIBS += -lmama -lwombatcommon -lmamacpp -lgtest

 LDADD = -lgtest_main

 common_files = ../common/MainUnitTest.cpp ../common/MamdaUnitTestUtils.cpp

 

-noinst_PROGRAMS = MamdaOrderImbalanceTests

+dist_UnitTestMamdaOrderImbalance_SOURCES = MamdaOrderImbalanceFieldTests.cpp $(common_files)

-dist_MamdaOrderImbalanceTests_SOURCES = MamdaOrderImbalanceFieldTests.cpp $(common_files)

-

-bin_PROGRAMS = MamdaOrderImbalanceTests

+bin_PROGRAMS = UnitTestMamdaOrderImbalance

diff --git a/mamda/c_cpp/src/gunittest/orderbooks/Makefile.am b/mamda/c_cpp/src/gunittest/orderbooks/Makefile.am

index aeaf9d6..bd20c7a 100644

--- a/mamda/c_cpp/src/gunittest/orderbooks/Makefile.am

+++ b/mamda/c_cpp/src/gunittest/orderbooks/Makefile.am

@@ -34,15 +34,13 @@ CFLAGS   += -I@builddir@/../../c

CPPFLAGS += -I@builddir@/../../c

 LIBS = -lmamdabook -lmamda -lrt

-LIBS += -lmama -lwombatcommon -lmamacpp

+LIBS += -lmama -lwombatcommon -lmamacpp -lgtest

 LDADD = -lgtest_main

common_files = ../common/MainUnitTest.cpp ../common/MamdaUnitTestUtils.cpp

 

-noinst_PROGRAMS = MamdaOrderBookTests

-

-dist_MamdaOrderBookTests_SOURCES =  MamdaOrderBookListenerFuncTests.cpp \

+dist_UnitTestMamdaOrderBook_SOURCES =  MamdaOrderBookListenerFuncTests.cpp \

                                     MamdaOrderBookEntryTests.cpp \

                                     MamdaOrderBookPriceLevelTests.cpp \

                                     MamdaOrderBookListenerCpuTests.cpp \

@@ -53,6 +51,6 @@ dist_MamdaOrderBookTests_SOURCES =  MamdaOrderBookListenerFuncTests.cpp \

                                     MamdaBookAtomicListenerV5Tests.cpp \

                                     $(common_files)

-bin_PROGRAMS = MamdaOrderBookTests

+bin_PROGRAMS = UnitTestMamdaOrderBook

 

diff --git a/mamda/c_cpp/src/gunittest/quotes/Makefile.am b/mamda/c_cpp/src/gunittest/quotes/Makefile.am

index 9603631..4e0eea4 100644

--- a/mamda/c_cpp/src/gunittest/quotes/Makefile.am

+++ b/mamda/c_cpp/src/gunittest/quotes/Makefile.am

@@ -35,18 +35,16 @@ CFLAGS   += -I@builddir@/../../c

CPPFLAGS += -I@builddir@/../../c

 LIBS = -lmamdabook -lmamda -lrt

-LIBS += -lmama -lwombatcommon -lmamacpp

+LIBS += -lmama -lwombatcommon -lmamacpp -lgtest

 LDADD = -lgtest_main

common_files = ../common/MainUnitTest.cpp ../common/MamdaUnitTestUtils.cpp

 

 

-noinst_PROGRAMS = MamdaQuoteTests

-

-dist_MamdaQuoteTests_SOURCES = MamdaQuoteCallBackTests.cpp \

+dist_UnitTestMamdaQuote_SOURCES = MamdaQuoteCallBackTests.cpp \

                                MamdaQuoteFieldTests.cpp \

                                MamdaQuoteListenerPerfTests.cpp \

                                MamdaQuoteListenerShortSaleTests.cpp \

                                $(common_files)

-bin_PROGRAMS = MamdaQuoteTests

+bin_PROGRAMS = UnitTestMamdaQuote

diff --git a/mamda/c_cpp/src/gunittest/secstatus/Makefile.am b/mamda/c_cpp/src/gunittest/secstatus/Makefile.am

index e6d2f68..49731f5 100644

--- a/mamda/c_cpp/src/gunittest/secstatus/Makefile.am

+++ b/mamda/c_cpp/src/gunittest/secstatus/Makefile.am

@@ -34,15 +34,12 @@ CFLAGS   += -I@builddir@/../../c

CPPFLAGS += -I@builddir@/../../c

 LIBS = -lmamdabook -lmamda -lrt

-LIBS += -lmama -lwombatcommon -lmamacpp

+LIBS += -lmama -lwombatcommon -lmamacpp -lgtest

 LDADD = -lgtest_main

common_files = ../common/MainUnitTest.cpp ../common/MamdaUnitTestUtils.cpp

+dist_UnitTestMamdaSecurityStatus_SOURCES = MamdaSecStatusListenerShortSaleTests.cpp $(common_files)

-noinst_PROGRAMS = MamdaSecurityStatusTests

-

-dist_MamdaSecurityStatusTests_SOURCES = MamdaSecStatusListenerShortSaleTests.cpp $(common_files)

-

-bin_PROGRAMS = MamdaSecurityStatusTests

+bin_PROGRAMS = UnitTestMamdaSecurityStatus

diff --git a/mamda/c_cpp/src/gunittest/trades/Makefile.am b/mamda/c_cpp/src/gunittest/trades/Makefile.am

index 85d88fb..8bca381 100644

--- a/mamda/c_cpp/src/gunittest/trades/Makefile.am

+++ b/mamda/c_cpp/src/gunittest/trades/Makefile.am

@@ -34,14 +34,13 @@ CFLAGS   += -I@builddir@/../../c

CPPFLAGS += -I@builddir@/../../c

 LIBS = -lmamdabook -lmamda -lrt

-LIBS += -lmama -lwombatcommon -lmamacpp

+LIBS += -lmama -lwombatcommon -lmamacpp -lgtest

 LDADD = -lgtest_main

common_files = ../common/MainUnitTest.cpp ../common/MamdaUnitTestUtils.cpp

-noinst_PROGRAMS = MamdaTradeTests

-dist_MamdaTradeTests_SOURCES =  MamdaTradeCallBackTests.cpp \

+dist_UnitTestMamdaTradeTests_SOURCES =  MamdaTradeCallBackTests.cpp \

                                 MamdaTradeFieldTests.cpp \

                                 MamdaTradeListenerPerfTests.cpp \

                                 MamdaTradeListenerTradeIdTests.cpp \

@@ -49,6 +48,6 @@ dist_MamdaTradeTests_SOURCES =  MamdaTradeCallBackTests.cpp \

                                 MamdaTradeListenerShortSaleTests.cpp \

                                 $(common_files)

-bin_PROGRAMS = MamdaTradeTests

+bin_PROGRAMS = UnitTestMamdaTradeTests

 

--

1.7.9.5

 




Please consider the environment before printing this e-mail.

This e-mail may contain confidential and/or privileged information. If you are not the intended recipient or have received this e-mail in error, please advise the sender immediately by reply e-mail and delete this message and any attachments without retaining a copy.

Any unauthorised copying, disclosure or distribution of the material in this e-mail is strictly forbidden.