Created
June 24, 2014 05:05
-
-
Save nicdk/30397586f3ac36426ac8 to your computer and use it in GitHub Desktop.
AccelTCP 0.2-pu-gtest_supportの実行結果
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
➜ AccelTCP git:(0.2-pu-gtest_support) cmake . | |
-- The C compiler identification is GNU | |
-- The CXX compiler identification is GNU | |
-- Check for working C compiler: /usr/bin/gcc | |
-- Check for working C compiler: /usr/bin/gcc -- works | |
-- Detecting C compiler ABI info | |
-- Detecting C compiler ABI info - done | |
-- Check for working CXX compiler: /usr/bin/c++ | |
-- Check for working CXX compiler: /usr/bin/c++ -- works | |
-- Detecting CXX compiler ABI info | |
-- Detecting CXX compiler ABI info - done | |
-- Found PythonInterp: /usr/bin/python2.4 | |
-- Looking for include files CMAKE_HAVE_PTHREAD_H | |
-- Looking for include files CMAKE_HAVE_PTHREAD_H - found | |
-- Looking for pthread_create in pthreads | |
-- Looking for pthread_create in pthreads - not found | |
-- Looking for pthread_create in pthread | |
-- Looking for pthread_create in pthread - found | |
-- Found Threads: TRUE | |
-- Configuring done | |
-- Generating done | |
-- Build files have been written to: /home/nikado/github/nicdk/AccelTCP | |
➜ AccelTCP git:(0.2-pu-gtest_support) make clean | |
➜ AccelTCP git:(0.2-pu-gtest_support) ls -la test | |
合計 52 | |
drwxr-xr-x 3 nikado repica 4096 6月 24 13:57 . | |
drwxr-xr-x 7 nikado repica 4096 6月 24 13:57 .. | |
drwxr-xr-x 3 nikado repica 4096 6月 24 13:57 CMakeFiles | |
-rw-r--r-- 1 nikado repica 452 6月 24 13:56 CMakeLists.txt | |
-rw-r--r-- 1 nikado repica 12669 6月 24 13:57 Makefile | |
-rw-r--r-- 1 nikado repica 1163 6月 24 13:57 cmake_install.cmake | |
-rw-r--r-- 1 nikado repica 1352 6月 24 13:56 test_acceltcp.cc | |
-rw-r--r-- 1 nikado repica 584 6月 24 13:56 test_evsock.cc | |
-rw-r--r-- 1 nikado repica 354 6月 24 13:56 test_http_handler.cc | |
-rw-r--r-- 1 nikado repica 561 6月 24 13:56 test_http_parser.cc | |
➜ AccelTCP git:(0.2-pu-gtest_support) make | |
Scanning dependencies of target acceltcp | |
[ 6%] Building C object CMakeFiles/acceltcp.dir/acceltcp_main.c.o | |
[ 13%] Building C object CMakeFiles/acceltcp.dir/acceltcp.c.o | |
[ 20%] Building C object CMakeFiles/acceltcp.dir/evsock.c.o | |
[ 26%] Building C object CMakeFiles/acceltcp.dir/http_handler.c.o | |
[ 33%] Building C object CMakeFiles/acceltcp.dir/http_parser.c.o | |
Linking C executable acceltcp | |
[ 33%] Built target acceltcp | |
Scanning dependencies of target gtest | |
[ 40%] Building CXX object gtest-1.7.0/CMakeFiles/gtest.dir/src/gtest-all.cc.o | |
Linking CXX static library libgtest.a | |
[ 40%] Built target gtest | |
Scanning dependencies of target gtest_main | |
[ 46%] Building CXX object gtest-1.7.0/CMakeFiles/gtest_main.dir/src/gtest_main.cc.o | |
Linking CXX static library libgtest_main.a | |
[ 46%] Built target gtest_main | |
Scanning dependencies of target acceltcp_unittest | |
[ 53%] Building CXX object test/CMakeFiles/acceltcp_unittest.dir/test_acceltcp.cc.o | |
[ 60%] Building CXX object test/CMakeFiles/acceltcp_unittest.dir/test_evsock.cc.o | |
[ 66%] Building CXX object test/CMakeFiles/acceltcp_unittest.dir/test_http_handler.cc.o | |
[ 73%] Building CXX object test/CMakeFiles/acceltcp_unittest.dir/test_http_parser.cc.o | |
[ 80%] Building C object test/CMakeFiles/acceltcp_unittest.dir/__/acceltcp.c.o | |
[ 86%] Building C object test/CMakeFiles/acceltcp_unittest.dir/__/evsock.c.o | |
[ 93%] Building C object test/CMakeFiles/acceltcp_unittest.dir/__/http_handler.c.o | |
[100%] Building C object test/CMakeFiles/acceltcp_unittest.dir/__/http_parser.c.o | |
Linking CXX executable acceltcp_unittest | |
[100%] Built target acceltcp_unittest | |
➜ AccelTCP git:(0.2-pu-gtest_support) ./test/acceltcp_unittest | |
Running main() from gtest_main.cc | |
[==========] Running 16 tests from 4 test cases. | |
[----------] Global test environment set-up. | |
[----------] 3 tests from HttpParserTest | |
[ RUN ] HttpParserTest.AssertionTrue | |
[ OK ] HttpParserTest.AssertionTrue (0 ms) | |
[ RUN ] HttpParserTest.HttpParserInitTest_00 | |
[ OK ] HttpParserTest.HttpParserInitTest_00 (0 ms) | |
[ RUN ] HttpParserTest.HttpParserExecuteTest_00 | |
[ OK ] HttpParserTest.HttpParserExecuteTest_00 (0 ms) | |
[----------] 3 tests from HttpParserTest (0 ms total) | |
[----------] 2 tests from HttpHandlerTest | |
[ RUN ] HttpHandlerTest.AssertionTrue | |
[ OK ] HttpHandlerTest.AssertionTrue (0 ms) | |
[ RUN ] HttpHandlerTest.HttpRequestSettingsTest_00 | |
[ OK ] HttpHandlerTest.HttpRequestSettingsTest_00 (0 ms) | |
[----------] 2 tests from HttpHandlerTest (1 ms total) | |
[----------] 4 tests from EvsockTest | |
[ RUN ] EvsockTest.AssertionTrue | |
[ OK ] EvsockTest.AssertionTrue (0 ms) | |
[ RUN ] EvsockTest.EvsockHandlerTest_00 | |
[ OK ] EvsockTest.EvsockHandlerTest_00 (0 ms) | |
[ RUN ] EvsockTest.EvsockSuspendTest_00 | |
[ OK ] EvsockTest.EvsockSuspendTest_00 (0 ms) | |
[ RUN ] EvsockTest.EvsockWakeupTest_00 | |
[ OK ] EvsockTest.EvsockWakeupTest_00 (0 ms) | |
[----------] 4 tests from EvsockTest (0 ms total) | |
[----------] 7 tests from AcceltcpTest | |
[ RUN ] AcceltcpTest.AssertionTrue | |
[ OK ] AcceltcpTest.AssertionTrue (0 ms) | |
[ RUN ] AcceltcpTest.AcceltcpTest_00 | |
usage: acceltcp [options] -- [tunnel_options] tunnel | |
Options: | |
-d, --debug # debug mode | |
-h, --help # show this message | |
-q, --quiet # quiet mode | |
-v, --verbose # verbose mode | |
-V, --version # show version | |
Tunnel Options: | |
-4, --ipv4only # IPv4 only | |
-6, --ipv6only # IPv6 only | |
--connection-num=num # connection pool num (default: 0) | |
--http # enable http mode | |
--http-host=host # http HOST header value | |
--rbuf=size # recieve socket buffer (default: system default) | |
--sbuf=size # send socket buffer (default: system default) | |
--server # enable server mode | |
--ssl-accept # enable SSL accept | |
--ssl-certificate=file # SSL certificate file (default: ./server.crt) | |
--ssl-privatekey=file # SSL private-key file (default: ./server.key) | |
--ssl-connect # enable SSL connect | |
Tunnel: (addr and port is numeric only) | |
[local_addr:]local_port:remote_addr:remote_port | |
Example: | |
[[email protected]]$ acceltcp -- --server --ssl-accept --ssl-connect 40381:133.242.5.116:443 | |
[[email protected]]$ acceltcp -- --http --http-host=www.klab.com --connection-num=100 --ssl-accept --ssl-connect 8443:10.10.0.100:40381 | |
[ OK ] AcceltcpTest.AcceltcpTest_00 (1 ms) | |
[ RUN ] AcceltcpTest.AcceltcpTest_01 | |
acceltcp (ACCELerate TCP proxy) version 0.2 | |
Author: Masaya YAMAMOTO <[email protected]> | |
[ OK ] AcceltcpTest.AcceltcpTest_01 (0 ms) | |
[ RUN ] AcceltcpTest.AcceltcpTest_02 | |
usage: acceltcp [options] -- [tunnel_options] tunnel | |
Options: | |
-d, --debug # debug mode | |
-h, --help # show this message | |
-q, --quiet # quiet mode | |
-v, --verbose # verbose mode | |
-V, --version # show version | |
Tunnel Options: | |
-4, --ipv4only # IPv4 only | |
-6, --ipv6only # IPv6 only | |
--connection-num=num # connection pool num (default: 0) | |
--http # enable http mode | |
--http-host=host # http HOST header value | |
--rbuf=size # recieve socket buffer (default: system default) | |
--sbuf=size # send socket buffer (default: system default) | |
--server # enable server mode | |
--ssl-accept # enable SSL accept | |
--ssl-certificate=file # SSL certificate file (default: ./server.crt) | |
--ssl-privatekey=file # SSL private-key file (default: ./server.key) | |
--ssl-connect # enable SSL connect | |
Tunnel: (addr and port is numeric only) | |
[local_addr:]local_port:remote_addr:remote_port | |
Example: | |
[[email protected]]$ acceltcp -- --server --ssl-accept --ssl-connect 40381:133.242.5.116:443 | |
[[email protected]]$ acceltcp -- --http --http-host=www.klab.com --connection-num=100 --ssl-accept --ssl-connect 8443:10.10.0.100:40381 | |
[ OK ] AcceltcpTest.AcceltcpTest_02 (1 ms) | |
[ RUN ] AcceltcpTest.OptionParseTest_00 | |
/home/nikado/github/nicdk/AccelTCP/test/test_acceltcp.cc:49: Failure | |
Value of: actual | |
Actual: -1 | |
Expected: expected | |
Which is: 0 | |
[ FAILED ] AcceltcpTest.OptionParseTest_00 (0 ms) | |
[ RUN ] AcceltcpTest.OptionParseTunnelTest_00 | |
[ OK ] AcceltcpTest.OptionParseTunnelTest_00 (0 ms) | |
[ RUN ] AcceltcpTest.TunnelSetupTest_00 | |
SSL_CTX_new: error:140A90A1:lib(20):func(169):reason(161) | |
[ OK ] AcceltcpTest.TunnelSetupTest_00 (0 ms) | |
[----------] 7 tests from AcceltcpTest (3 ms total) | |
[----------] Global test environment tear-down | |
[==========] 16 tests from 4 test cases ran. (4 ms total) | |
[ PASSED ] 15 tests. | |
[ FAILED ] 1 test, listed below: | |
[ FAILED ] AcceltcpTest.OptionParseTest_00 | |
1 FAILED TEST | |
➜ AccelTCP git:(0.2-pu-gtest_support) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment