2010-07-12 15:16:31 +08:00
|
|
|
#----------------------------------------------------------------------------------------------------
|
|
|
|
|
# GTSAM tests
|
|
|
|
|
# More elaborate unit tests that test functionality with slam examples
|
|
|
|
|
#----------------------------------------------------------------------------------------------------
|
|
|
|
|
|
2010-08-20 01:23:19 +08:00
|
|
|
# use nostdinc to turn off -I. and -I.., we do not need them because
|
|
|
|
|
# header files are qualified so they can be included in external projects.
|
|
|
|
|
AUTOMAKE_OPTIONS = nostdinc
|
|
|
|
|
|
2010-07-17 02:16:18 +08:00
|
|
|
check_PROGRAMS = testBayesNetPreconditioner
|
2010-07-12 15:16:31 +08:00
|
|
|
check_PROGRAMS += testGaussianBayesNet testGaussianFactor testGaussianFactorGraph
|
2010-07-13 13:26:19 +08:00
|
|
|
check_PROGRAMS += testGaussianISAM testGraph
|
2010-07-13 05:34:03 +08:00
|
|
|
check_PROGRAMS += testInference testIterative testGaussianJunctionTree
|
2010-07-12 15:16:31 +08:00
|
|
|
check_PROGRAMS += testNonlinearEquality testNonlinearFactor testNonlinearFactorGraph
|
2010-08-07 02:30:07 +08:00
|
|
|
check_PROGRAMS += testNonlinearOptimizer testSubgraphPreconditioner
|
2010-07-12 15:16:31 +08:00
|
|
|
check_PROGRAMS += testSymbolicBayesNet testSymbolicFactorGraph testTupleConfig
|
2010-08-10 05:59:29 +08:00
|
|
|
check_PROGRAMS += testNonlinearEqualityConstraint testBoundingConstraint
|
2010-08-11 00:59:22 +08:00
|
|
|
check_PROGRAMS += testTransformConstraint testLinearApproxFactor
|
2010-07-12 15:16:31 +08:00
|
|
|
|
2010-08-27 23:31:20 +08:00
|
|
|
# only if serialization is available
|
|
|
|
|
if ENABLE_SERIALIZATION
|
|
|
|
|
check_PROGRAMS += testSerialization
|
|
|
|
|
endif
|
|
|
|
|
|
2010-08-12 23:23:03 +08:00
|
|
|
# experimental
|
2010-08-25 01:26:56 +08:00
|
|
|
#check_PROGRAMS += testFusionTupleConfig # Doesn't work on Macs
|
2010-08-12 23:23:03 +08:00
|
|
|
|
2010-07-17 02:16:18 +08:00
|
|
|
if USE_LDL
|
2010-07-17 09:13:03 +08:00
|
|
|
check_PROGRAMS += testConstraintOptimizer
|
2010-07-17 02:16:18 +08:00
|
|
|
endif
|
|
|
|
|
|
2010-07-12 15:16:31 +08:00
|
|
|
# Timing tests
|
2010-08-22 01:54:59 +08:00
|
|
|
noinst_PROGRAMS = timeGaussianFactorGraph timeFactorOverhead
|
2010-07-12 15:16:31 +08:00
|
|
|
|
|
|
|
|
#----------------------------------------------------------------------------------------------------
|
|
|
|
|
# rules to build unit tests
|
|
|
|
|
#----------------------------------------------------------------------------------------------------
|
|
|
|
|
TESTS = $(check_PROGRAMS)
|
2010-09-12 00:54:50 +08:00
|
|
|
AM_CPPFLAGS = -I$(boost) -I$(top_srcdir)/..
|
2010-08-27 23:31:20 +08:00
|
|
|
AM_LDFLAGS = $(BOOST_LDFLAGS)
|
|
|
|
|
|
|
|
|
|
# link to serialization library for test
|
|
|
|
|
if ENABLE_SERIALIZATION
|
|
|
|
|
AM_LDFLAGS += -lboost_serialization
|
|
|
|
|
endif
|
|
|
|
|
|
2010-07-13 13:26:19 +08:00
|
|
|
LDADD = ../libgtsam.la ../CppUnitLite/libCppUnitLite.a
|
2010-07-12 15:16:31 +08:00
|
|
|
AM_DEFAULT_SOURCE_EXT = .cpp
|
|
|
|
|
|
|
|
|
|
# rule to run an executable
|
|
|
|
|
%.run: % $(LDADD)
|
|
|
|
|
./$^
|
|
|
|
|
|