summaryrefslogtreecommitdiff
path: root/src/test
diff options
context:
space:
mode:
authorNick Mathewson <nickm@torproject.org>2015-07-29 10:36:23 -0400
committerNick Mathewson <nickm@torproject.org>2015-07-29 10:36:23 -0400
commit8b1f88eded2b047eef9be9e16d6bf90b0f01bfd0 (patch)
tree3958cae3d024330598f095cd55c8c68a63ce21b2 /src/test
parent0dab1bc8127a9bfa860bec24490ab54401b96afb (diff)
parent128d4a68967fb2986965e9f8443f362a9dc20ecc (diff)
downloadtor-8b1f88eded2b047eef9be9e16d6bf90b0f01bfd0.tar.gz
tor-8b1f88eded2b047eef9be9e16d6bf90b0f01bfd0.zip
Merge remote-tracking branch 'teor/feature14175-chutney-performance-v2'
Diffstat (limited to 'src/test')
-rwxr-xr-xsrc/test/test-network.sh21
1 files changed, 21 insertions, 0 deletions
diff --git a/src/test/test-network.sh b/src/test/test-network.sh
index ccfb5df424..49bf03c0d3 100755
--- a/src/test/test-network.sh
+++ b/src/test/test-network.sh
@@ -21,6 +21,27 @@ do
export BOOTSTRAP_TIME="$2"
shift
;;
+ # Environmental variables used by chutney verify performance tests
+ # Send this many bytes per client connection (10 KBytes)
+ --data|--data-bytes|--data-byte|--bytes|--byte)
+ export CHUTNEY_DATA_BYTES="$2"
+ shift
+ ;;
+ # Make this many connections per client (1)
+ # Note: If you create 7 or more connections to a hidden service from
+ # a single client, you'll likely get a verification failure due to
+ # https://trac.torproject.org/projects/tor/ticket/15937
+ --connections|--connection|--connection-count|--count)
+ export CHUTNEY_CONNECTIONS="$2"
+ shift
+ ;;
+ # Make each client connect to each HS (0)
+ # 0 means a single client connects to each HS
+ # 1 means every client connects to every HS
+ --hs-multi-client|--hs-multi-clients|--hs-client|--hs-clients)
+ export CHUTNEY_HS_MULTI_CLIENT="$2"
+ shift
+ ;;
*)
echo "Sorry, I don't know what to do with '$1'."
exit 2