commit 5d93644fbcdebd9fb58cc7f690e2d69dfb550508 Author: David Goulet dgoulet@ev0ke.net Date: Sat Aug 24 12:24:08 2013 -0400
Cleanup old test system
Signed-off-by: David Goulet dgoulet@ev0ke.net --- test/Makefile.am | 5 -- test/README | 3 -- test/expectedresults.txt | 120 ---------------------------------------------- test/run_tests.sh | 44 ----------------- 4 files changed, 172 deletions(-)
diff --git a/test/Makefile.am b/test/Makefile.am index 263fea0..d42f10e 100644 --- a/test/Makefile.am +++ b/test/Makefile.am @@ -2,8 +2,3 @@ noinst_PROGRAMS= test_torsocks
test_torsocks_SOURCES= test_torsocks.c test_torsocks_LDFLAGS= $(TESTLDFLAGS) - -dist_data_DATA = run_tests.sh expectedresults.txt - -check-am: - ./run_tests.sh diff --git a/test/README b/test/README deleted file mode 100644 index 4d65948..0000000 --- a/test/README +++ /dev/null @@ -1,3 +0,0 @@ -To run the tests: -$./run_tests.sh - diff --git a/test/expectedresults.txt b/test/expectedresults.txt deleted file mode 100644 index 53f1105..0000000 --- a/test/expectedresults.txt +++ /dev/null @@ -1,120 +0,0 @@ -libtorsocks: The symbol getipnodebyname() was not found in any shared library. The error reported was: not found! -libtorsocks: The symbol getipnodebyname() was not found in any shared library. The error reported was: not found! -libtorsocks: The symbol getipnodebyname() was not found in any shared library. The error reported was: not found! -libtorsocks: our_getaddrinfo: 'www.torproject.org' requested -libtorsocks: Got sendmsg request -libtorsocks: sendmsg: Connection is a UDP or ICMP stream, may be a DNS request or other form of leak: rejecting. -libtorsocks: Got sendto request -libtorsocks: sendto: Connection is a UDP or ICMP stream, may be a DNS request or other form of leak: rejecting. -libtorsocks: Got sendto request -libtorsocks: sendto: Connection is a UDP or ICMP stream, may be a DNS request or other form of leak: rejecting. -libtorsocks: Got connection request -libtorsocks: connect: Connection is a UDP or ICMP stream, may be a DNS request or other form of leak: rejecting. -libtorsocks: our_gethostbyaddr: resolved '38.229.70.16' to: 'vescum.torproject.org' -libtorsocks: our_gethostbyname: 'www.torproject.org' requested -libtorsocks: Got connection request -libtorsocks: connect: Connection is to a local address (192.168.1.1), may be a TCP DNS request to a local DNS server so have to reject to be safe. Please report a bug to http://code.google.com/p/torsocks/issues/entry if this is preventing a program from working properly with torsocks. -libtorsocks: Got connection request -libtorsocks: Intercepted call to getpeername -libtorsocks: Got res_init request -libtorsocks: Got connection request -libtorsocks: Intercepted call to getpeername -libtorsocks: Got connection request -libtorsocks: Intercepted call to getpeername -libtorsocks: Got connection request -libtorsocks: Intercepted call to getpeername -libtorsocks: Got connection request -libtorsocks: Intercepted call to getpeername -libtorsocks: Got res_init request -libtorsocks: Got connection request -libtorsocks: connect: Connection is to a local address (192.168.1.1), may be a TCP DNS request to a local DNS server so have to reject to be safe. Please report a bug to http://code.google.com/p/torsocks/issues/entry if this is preventing a program from working properly with torsocks. -libtorsocks: Got connection request -libtorsocks: connect: Connection is to a local address (192.168.1.1), may be a TCP DNS request to a local DNS server so have to reject to be safe. Please report a bug to http://code.google.com/p/torsocks/issues/entry if this is preventing a program from working properly with torsocks. -libtorsocks: Got connection request -libtorsocks: connect: Connection is to a local address (192.168.1.1), may be a TCP DNS request to a local DNS server so have to reject to be safe. Please report a bug to http://code.google.com/p/torsocks/issues/entry if this is preventing a program from working properly with torsocks. -libtorsocks: Got connection request -libtorsocks: connect: Connection is to a local address (192.168.1.1), may be a TCP DNS request to a local DNS server so have to reject to be safe. Please report a bug to http://code.google.com/p/torsocks/issues/entry if this is preventing a program from working properly with torsocks. -libtorsocks: Got connection request -libtorsocks: connect: Connection is to a local address (192.168.1.1), may be a TCP DNS request to a local DNS server so have to reject to be safe. Please report a bug to http://code.google.com/p/torsocks/issues/entry if this is preventing a program from working properly with torsocks. -socket: Operation not permitted - -----------------------getaddrinfo() TEST----------------- - -getaddrinfo: Servname not supported for ai_socktype - -----------------------UDP TEST---------------------- - - -----------------------udp sendmsg() TEST------------------- - -sendmsg() returned ret=-1 wb=0 - -----------------------udp sendto() TEST-------------------- - -sendto() returned ret=-1 wb=0 - -----------------------udp connect() TEST------------------- - -Connect returned ret=-1 - -----------------------udp send() TEST---------------------- - -Note: no interception by torsocks expected as send() requires a socket in a connected state. -send() returned ret=-1 wb=0 - -----------------------gethostbyaddr() TEST----------------- - -vescum.torproject.org -> 38.229.70.16 - -----------------------gethostbyname() TEST----------------- - -www.torproject.org -> 38.229.70.16 - ----------------------- local connect() TEST---------------------- - - ----------------------- internet connect() TEST---------------------- - - ----------------------- internet res_init() TEST---------------------- - -nameserver for test: 8.8.8.8 - ----------------------- internet res_query() TEST---------------------- - -return code: 102 - ----------------------- internet res_search() TEST---------------------- - -return code: 102 - ---------------- internet res_querydomain() TEST---------------------- - -return code: -1 - ----------------------- internet res_send() TEST---------------------- - -return code: -1 - ----------------------- local res_init() TEST---------------------- - -nameserver for test: 192.168.1.1 - ----------------------- local res_query() TEST---------------------- - -return code: -1 - ----------------------- local res_search() TEST---------------------- - -return code: -1 - ---------------- local res_querydomain() TEST---------------------- - -return code: -1 - ----------------------- local res_send() TEST---------------------- - -return code: -1 - -----------------icmp() TEST---------------------------- - diff --git a/test/run_tests.sh b/test/run_tests.sh deleted file mode 100755 index 5582102..0000000 --- a/test/run_tests.sh +++ /dev/null @@ -1,44 +0,0 @@ -#! /bin/sh -# *************************************************************************** -# * * -# * Copyright (C) 2011 Robert Hogan robert@roberthogan.net * -# * * -# * This program is free software; you can redistribute it and/or modify * -# * it under the terms of the GNU General Public License as published by * -# * the Free Software Foundation; either version 2 of the License, or * -# * (at your option) any later version. * -# * * -# * This program is distributed in the hope that it will be useful, * -# * but WITHOUT ANY WARRANTY; without even the implied warranty of * -# * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * -# * GNU General Public License for more details. * -# * * -# * You should have received a copy of the GNU General Public License * -# * along with this program; if not, write to the * -# * Free Software Foundation, Inc., * -#* 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. * -# *************************************************************************** -export TORSOCKS_DEBUG=2 -TORSOCKS="`which torsocks`" - -if [ ! -x "$TORSOCKS" ]; then - echo "torsocks doesn't exist." >&2 - echo "Perhaps you haven't installed torsocks yet?" >&2 - exit 1 -fi - -if [ ! -f ./test_torsocks ]; then - echo "test_torsocks binary doesn't exist in this directory." >&2 - echo "Perhaps you haven't compiled torsocks yet?" >&2 - exit 1 -fi - -torsocks ./test_torsocks > /tmp/newresults.txt 2>&1 -output=`diff expectedresults.txt /tmp/newresults.txt` -if ["$output" = ""]; then - echo "Tests passed" -else - echo "Tests failed. Please post this output to http://code.google.com/p/torsocks/issues/entry" -fi -rm -f /tmp/newresults.txt -export TORSOCKS_DEBUG= \ No newline at end of file
tor-commits@lists.torproject.org