--- /dev/null
+#
+#
+# Makefile for module_control unit test frameworks.
+#
+#
+TARGET = module_control_ut
+CPP = g++
+CPPFLAGS = -g -Wall -Werror -pthread -O0
+INCLUDES = -I../../logger \
+ -I../../parameter \
+ -I../../include \
+ -I../../src
+LIBS = -lboost_system-gcc41-mt \
+ -lboost_thread-gcc41-mt \
+ -lboost_unit_test_framework-gcc41-mt
+
+LDFLAGS = -lrt -ldl
+
+SRCS = protocol_module_control_test.cpp
+
+OBJS = $(SRCS:.cpp=.o)
+
+all: $(TARGET)
+
+$(TARGET): $(OBJS)
+ $(CPP) $(INCLUDES) -o $@ $(OBJS) $(LIBS)
+
+clean:
+ rm -f $(TARGET) $(OBJS)
+
+.cpp.o:
+ $(CPP) $(CFLAGS) $(INCLUDES) -c $<
+
--- /dev/null
+#define MAX_BUFFER_SIZE (65535)
+
+
+#include <boost/test/included/unit_test.hpp>
+#include "../../src/protocol_module_control.cpp"
+
+using namespace boost::unit_test;
+
+//test case1.
+void protocol_module_control_test(){
+ l7vs::protocol_module_control& control = l7vs::protocol_module_control::getInstance();
+ control.initialize( "./" );
+ control.finalize();
+ control.initialize( NULL );
+
+}
+
+test_suite* init_unit_test_suite( int argc, char* argv[] ){
+
+ // create unit test suite
+ test_suite* ts = BOOST_TEST_SUITE( "protocol_module_control" );
+ ts->add( BOOST_TEST_CASE( &protocol_module_control_test ) );
+
+ framework::master_test_suite().add( ts );
+
+ return 0;
+}
\ No newline at end of file