Now we build a unit test binary, though currently there aren't any tests.
LIBEXT := .a
CXXFLAGS :=
-LDFLAGS := -lfltk
+LDFLAGS :=
+
+CURDIR := $(shell pwd)
# each module will add to this, .os are derived from it
TARGETLIBS :=
include alg/module.mk
include gui/module.mk
+include test/module.mk
include module.mk
# process what the module.mks defined
include $(DEPS)
clean:
- -rm $(OBJ) $(DEPS)
+ -rm $(OBJ) $(DEPS) $(TARGETLIBS) $(TARGETBINS)
+
--- /dev/null
+CURDIR := $(BASEDIR)test/
+
+SOURCES.cxx := test_main.cpp \
+ test_flp.cpp \
+ test_nway.cpp
+
+TESTSRC := $(addprefix $(CURDIR), $(SOURCES.cxx))
+
+SRC += $(TESTSRC)
+CXXFLAGS += -I$(CURDIR)
+
+TEST := $(BASEDIR)/test_mussa$(BINEXT)
+TARGETBINS += $(TEST)
+
+$(TEST): $(TESTSRC:.cxx=$(OBJEXT)) $(MUSSA_ALG_LIB)
+ g++ $(CXXFLAGS) -lboost_unit_test_framework -o $@ $?
+
--- /dev/null
+#include <boost/test/auto_unit_test.hpp>
+
+#include "flp.hh"
+
+BOOST_AUTO_TEST_CASE( flp_test )
+{
+ FLPs flp;
+}
--- /dev/null
+#define BOOST_AUTO_TEST_MAIN
+#include <boost/test/auto_unit_test.hpp>
+
--- /dev/null
+#include <boost/test/auto_unit_test.hpp>
+
+BOOST_AUTO_TEST_CASE( nway_test )
+{
+}