]> git.ipfire.org Git - thirdparty/tor.git/commitdiff
Add chutney performance testing support to src/test/test-network.sh
authorteor <teor2345@gmail.com>
Mon, 6 Jul 2015 06:59:15 +0000 (16:59 +1000)
committerteor <teor2345@gmail.com>
Mon, 6 Jul 2015 06:59:15 +0000 (16:59 +1000)
The following arguments change how chutney verifies the network:
--bytes n             sends n bytes per test connection (10 KBytes)
--connections n       makes n test connections per client (1)
--hs-multi-client 1   makes each client connect to each HS (0)
Requires the corresponding chutney performance testing changes.
Note: using --connections 7 or greater on a HS will trigger #15937.
Patch by "teor".

changes/feature14175-chutney-performance [new file with mode: 0644]
src/test/test-network.sh

diff --git a/changes/feature14175-chutney-performance b/changes/feature14175-chutney-performance
new file mode 100644 (file)
index 0000000..ba3a6fe
--- /dev/null
@@ -0,0 +1,9 @@
+  o Major enhancements (performance testing):
+    - Add chutney performance testing support to src/test/test-network.sh
+      The following arguments change how chutney verifies the network:
+      --bytes n             sends n bytes per test connection (10 KBytes)
+      --connections n       makes n test connections per client (1)
+      --hs-multi-client 1   makes each client connect to each HS (0)
+      Requires the corresponding chutney performance testing changes.
+      Note: using --connections 7 or greater on a HS will trigger #15937.
+      Patch by "teor".
index ccfb5df4245ddb581b925e0b695a005e5ca55cc2..49bf03c0d376eab43dfcbe23866bd90006ee5fe3 100755 (executable)
@@ -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