summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorNick Mathewson <nickm@torproject.org>2015-09-08 14:43:34 -0400
committerNick Mathewson <nickm@torproject.org>2015-09-08 14:43:34 -0400
commitc59257d3787a452b34bc8c608c2c123929bdad0d (patch)
tree14c898f6d882b11f76013f8b657dd12678ccc007 /src
parent7ffc048f0aeab1b0e828b546df71cb647da443e5 (diff)
parent036966e3ec02d48ff3f69403430cb6d019ac5bcf (diff)
downloadtor-c59257d3787a452b34bc8c608c2c123929bdad0d.tar.gz
tor-c59257d3787a452b34bc8c608c2c123929bdad0d.zip
Merge remote-tracking branch 'teor/make-test-network-all'
Diffstat (limited to 'src')
-rw-r--r--src/test/include.am7
-rwxr-xr-xsrc/test/test-network.sh6
2 files changed, 10 insertions, 3 deletions
diff --git a/src/test/include.am b/src/test/include.am
index ef2fd4fb8e..f7c0204832 100644
--- a/src/test/include.am
+++ b/src/test/include.am
@@ -8,6 +8,13 @@ endif
TESTS += src/test/test src/test/test-slow src/test/test-memwipe \
src/test/test_workqueue src/test/test_keygen.sh $(TESTSCRIPTS)
+# These flavors are run using automake's test-driver and test-network.sh
+TEST_CHUTNEY_FLAVORS = basic-min bridges-min hs-min bridges+hs
+# only run if we can ping6 ::1 (localhost)
+TEST_CHUTNEY_FLAVORS_IPV6 = bridges+ipv6-min ipv6-exit-min
+# only run if we can find a stable (or simply another) version of tor
+TEST_CHUTNEY_FLAVORS_MIXED = mixed
+
### This is a lovely feature, but it requires automake >= 1.12, and Tor
### doesn't require that yet. Below is a kludge to work around.
###
diff --git a/src/test/test-network.sh b/src/test/test-network.sh
index b5d7f7c42d..576fbed03b 100755
--- a/src/test/test-network.sh
+++ b/src/test/test-network.sh
@@ -3,9 +3,9 @@
ECHO_N="/bin/echo -n"
use_coverage_binary=false
-until [ -z $1 ]
+until [ -z "$1" ]
do
- case $1 in
+ case "$1" in
--chutney-path)
export CHUTNEY_PATH="$2"
shift
@@ -86,7 +86,7 @@ export CHUTNEY_TOR_GENCERT="${TOR_DIR}/src/tools/${tor_gencert_name}"
# Sleep some, waiting for the network to bootstrap.
# TODO: Add chutney command 'bootstrap-status' and use that instead.
-BOOTSTRAP_TIME=${BOOTSTRAP_TIME:-25}
+BOOTSTRAP_TIME=${BOOTSTRAP_TIME:-30}
$ECHO_N "$myname: sleeping for $BOOTSTRAP_TIME seconds"
n=$BOOTSTRAP_TIME; while [ $n -gt 0 ]; do
sleep 1; n=$(expr $n - 1); $ECHO_N .