|
| 1 | + |
| 2 | +# Copyright 2011 Dean Michael Berris. |
| 3 | +# Distributed under the Boost Software License, Version 1.0. |
| 4 | +# (See accompanying file LICENSE_1_0.txt or copy at |
| 5 | +# http://www.boost.org/LICENSE_1_0.txt) |
| 6 | + |
| 7 | +import testing ; |
| 8 | +import modules ; |
| 9 | +import feature ; |
| 10 | + |
| 11 | +project network_test/http : |
| 12 | + requirements |
| 13 | + <include>../../../../ |
| 14 | + <include>../ |
| 15 | + ; |
| 16 | + |
| 17 | +run client_constructor_test.cpp /cpp-netlib//cppnetlib-uri-parsers ; |
| 18 | +run client_get_test.cpp /cpp-netlib//cppnetlib-uri-parsers ; |
| 19 | +run client_get_different_port_test.cpp /cpp-netlib//cppnetlib-uri-parsers ; |
| 20 | +run client_get_timeout_test.cpp /cpp-netlib//cppnetlib-uri-parsers ; |
| 21 | +run client_include_inlined.cpp : <define>BOOST_NETWORK_NO_LIB ; |
| 22 | +run client_localhost_normal_test.cpp /cpp-netlib//cppnetlib-uri-parsers ; |
| 23 | +run client_localhost_ssl_test.cpp /cpp-netlib//cppnetlib-uri-parsers ; |
| 24 | +run message_async_ready_test.cpp ; |
| 25 | +run message_test.cpp /cpp-netlib//cppnetlib-uri-parsers ; |
| 26 | +run request_incremental_parser_test.cpp ; |
| 27 | +run request_linearize_test.cpp /cpp-netlib//cppnetlib-uri-parsers ; |
| 28 | +run response_incremental_parser_test.cpp /cpp-netlib//cppnetlib-server-parsers ; |
| 29 | +run server_constructor_test.cpp /cpp-netlib//cppnetlib-server-parsers ; |
| 30 | +run server_include_inlined.cpp : <define>BOOST_NETWORK_NO_LIB ; |
| 31 | +run url_test.cpp /cpp-netlib//cppnetlib-uri-parsers ; |
| 32 | + |
| 33 | +exe http_async_server : server_async.cpp /cpp-netlib//cppnetlib-server-parsers ; |
| 34 | +exe hello_world : server_hello_world.cpp /cpp-netlib//cppnetlib-server-parsers ; |
| 35 | +exe http_async_less_copy_server : server_async_less_copy.cpp /cpp-netlib//cppnetlib-server-parsers ; |
| 36 | + |
| 37 | +make httplib_acceptance.passed : ../httplib_acceptance.py hello_world : @httplib_acceptance ; |
| 38 | +make httplib_async_acceptance.passed : ../httplib_acceptance.py http_async_server : @httplib_acceptance ; |
| 39 | +make httplib_async_less_copy_acceptance.passed : ../httplib_acceptance.py http_async_less_copy_server : @httplib_acceptance |
| 40 | + |
| 41 | +actions httplib_acceptance { |
| 42 | + export TEST_SCRIPT=`echo "$(>)" | awk '{print $1}'` |
| 43 | + export EXECUTABLE=`echo "$(>)" | awk '{print $2}'` |
| 44 | + export PORT=`echo "import random; print random.randint(8000, 8010)" | python` |
| 45 | + python $TEST_SCRIPT $EXECUTABLE $PORT $(<) |
| 46 | +} |
| 47 | + |
0 commit comments