2014-04-14 18:02:48 +00:00
|
|
|
all: covtest example
|
2014-05-20 16:17:56 +00:00
|
|
|
example: example.cpp settings.h crow.h http_server.h http_connection.h parser.h http_response.h routing.h common.h utility.h json.h datetime.h logging.h
|
2014-05-02 05:17:49 +00:00
|
|
|
g++ -Wall -g -O3 -std=c++11 -o example example.cpp http-parser/http_parser.c -pthread -lboost_system -lboost_thread -ltcmalloc_minimal -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-05-20 16:17:56 +00:00
|
|
|
unittest: unittest.cpp routing.h utility.h crow.h http_server.h http_connection.h parser.h http_response.h common.h json.h datetime.h logging.h
|
2014-04-20 08:45:10 +00:00
|
|
|
g++ -Wall -g -std=c++11 -o unittest unittest.cpp http-parser/http_parser.c -pthread -lboost_system -lboost_thread -I http-parser/
|
2014-04-14 18:02:48 +00:00
|
|
|
./unittest
|
|
|
|
|
2014-05-20 16:17:56 +00:00
|
|
|
covtest: unittest.cpp routing.h utility.h crow.h http_server.h http_connection.h parser.h http_response.h common.h json.h datetime.h logging.h
|
2014-04-18 22:12:56 +00:00
|
|
|
g++ -Wall -g -std=c++11 -o covtest --coverage 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
|
|
|
|