2014-04-14 18:02:48 +00:00
|
|
|
all: covtest example
|
2014-04-14 20:35:04 +00:00
|
|
|
example: example.cpp flask.h http_server.h http_connection.h parser.h http_response.h routing.h common.h utility.h
|
2014-04-14 16:43:25 +00:00
|
|
|
g++ -Wall -g -O2 -std=c++11 -o example example.cpp http-parser/http_parser.c -pthread -lboost_system -lboost_thread -I http-parser/
|
2014-04-14 18:02:48 +00:00
|
|
|
|
|
|
|
test: covtest
|
|
|
|
|
|
|
|
runtest: example
|
2014-04-01 12:25:16 +00:00
|
|
|
pkill example || exit 0
|
2014-03-31 16:51:50 +00:00
|
|
|
./example &
|
2014-04-01 12:25:16 +00:00
|
|
|
python test.py || exit 0
|
2014-03-31 16:51:50 +00:00
|
|
|
pkill example
|
2014-04-14 18:02:48 +00:00
|
|
|
|
2014-04-02 16:38:08 +00:00
|
|
|
unittest: unittest.cpp routing.h
|
2014-04-14 20:35:04 +00:00
|
|
|
g++ -Wall -g -std=c++11 -o unittest unittest.cpp
|
2014-04-14 18:02:48 +00:00
|
|
|
./unittest
|
|
|
|
|
2014-04-14 20:35:04 +00:00
|
|
|
covtest: unittest.cpp routing.h utility.h flask.h http_server.h http_connection.h parser.h http_response.h common.h
|
2014-04-15 17:57:18 +00:00
|
|
|
g++ -O2 -Wall -g -std=c++11 -fno-default-inline -fno-inline-small-functions --coverage -o covtest unittest.cpp http-parser/http_parser.c -pthread -lboost_system -lboost_thread -I http-parser/
|
|
|
|
#clang++ -O2 -Wall -g -std=c++11 -o covtest unittest.cpp http-parser/http_parser.c -pthread -lboost_system -lboost_thread -I http-parser/
|
2014-04-14 18:02:48 +00:00
|
|
|
./covtest
|
|
|
|
gcov -r unittest.cpp
|
|
|
|
|
2014-04-02 16:38:08 +00:00
|
|
|
|