aboutsummaryrefslogtreecommitdiff
path: root/src/test/test-network.sh
AgeCommit message (Collapse)Author
2023-06-15Change git.tpo URLs to gitlab.tpoDavid Goulet
Signed-off-by: David Goulet <dgoulet@torproject.org>
2019-04-02Remove no-longer needed logging statementsrl1987
2019-04-02Stop requiring bash in test-network.sh. Make it POSIX compliantrl1987
2019-03-10Revert "Walk back from requiring bash"rl1987
This reverts commit c346eff223e94b5fbeb6e751a99393fc5f7dd4b0.
2019-02-21Walk back from requiring bashrl1987
Refrain from using bash array to remember $@.
2019-02-13Use env to find bashrl1987
2019-02-02Fix one last SC2086rl1987
2019-02-02Update test-network.sh to bash script to use arrayrl1987
This lets us to save original script argument to array (POSIX shell does not support that). Fixes shellcheck warnings SC2124 and SC2086.
2019-02-02Fix all instances of SC2166 in test-network.shrl1987
2018-07-05Fix everything that previously referred to src/orNick Mathewson
2017-03-01Make test-network.sh always call chutney's test-network.shteor
Previously, this only worked on systems which had bash installed, due to some bash-specific code in the script. Fixes bug 19699; follow-up to 21581.
2017-03-01Remove the space before the interpreter name in test-network.shteor
Apparently some unixes don't like this. Part of #21581.
2017-03-01Restore support for test-network.sh on BSD and other systems without bashteor
(But use bash if it's available.) This is a workaround until we remove bash-specific code in 19699. Fixes bug 21581; bugfix on 21562, not in any released version of tor.
2017-02-28Use bash in src/test/test-network.shteor
This ensures we reliably call chutney's newer tools/test-network.sh when available. Fixes bug 21562; bugfix on tor-0.2.9.1-alpha.
2017-02-28Reserve a test-network.sh exit status of 2 for unknown argumentsteor
Part of 21570.
2017-02-28Add a quiet mode to test-network.shteor
Requires the equivalent chutney changes in 21571. Part of 21570.
2016-07-26We fixed #15937, update a commentteor (Tim Wilson-Brown)
2016-07-26Call chutney's test-network.sh when it is availableteor (Tim Wilson-Brown)
Also mark the parts of tor's test-network.sh that can be deleted once everyone has updated to chutney's test-network.sh.
2016-07-26Add a dry run mode to test-network.shteor (Tim Wilson-Brown)
2016-07-18Rewrite test-network.sh so out-of-tree and $PATH binaries workteor (Tim Wilson-Brown)
2015-09-09Bump default test-network bootstrap time to 35 sec (see 16953)Nick Mathewson
2015-09-09Increase default boostrap time in test-network.shteor (Tim Wilson-Brown)
Increase default boostrap time in test-network.sh to 30 seconds, for larger networks like bridges+ipv6+hs. This avoids the failure-hiding issues inherent in the retry approach in #16952.
2015-09-08Make test-network.sh more robust against arguments containing spacesteor (Tim Wilson-Brown)
2015-09-02Test bridges and hidden services in make test-networkteor (Tim Wilson-Brown)
Make "bridges+hs" the default test network. This tests almost all tor functionality during make test-network, while allowing tests to succeed on non-IPv6 systems. Requires chutney commit 396da92 in test-network-bridges-hs. Closes tickets 16945 (tor), 16946 (chutney) . Patches by "teor".
2015-08-03When building with coverage, run chutney with coverageNick Mathewson
Previously, this required me to do stuff like 'cp src/or/tor-cov src/or/tor' , which is pretty embarrassing.
2015-07-06Add chutney performance testing support to src/test/test-network.shteor
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".
2015-03-22Fix test-network.sh argument parsingSebastian Hahn
The bash on one of my machines didn't understand the question mark correctly, it didn't end up accepting flavor. We can spell it out explicitly.
2015-01-10Speed up hidden service bootstrap by reducing the initial post delayteor
Drop the MIN_REND_INITIAL_POST_DELAY on a testing network to 5 seconds, but keep the default at 30 seconds. Reduces the hidden service bootstrap to 25 seconds from around 45 seconds. Change the default src/test/test-network.sh delay to 25 seconds. Closes ticket 13401.
2014-10-08Merge remote-tracking branches 'teor/issue-13161-test-network' and ↵Nick Mathewson
'teor/issue-13161-TestingDirAuthVoteExit'
2014-10-05Exit test-network with status of chutney verifyteor
Preserve previous semantics of src/test/test-network.sh by exiting with the exit status of chutney verify, even though the latest version ends with chutney stop.
2014-10-04Stop an apparent test-network hang when used with make -j2teor
If (GNU) Make 3.81 is running processes in parallel using -j2 (or more), it waits until all descendent processes have exited before it returns to the shell. When a command like "make -j2 test-network" is run, this means that test-network.sh apparently hangs until it either make is forcibly terminated, or all the chutney-launched tor processes have exited. A workaround is to use make without -j, or make -j1 if there is an existing alias to "make -jn" in the shell. We resolve this bug in tor by using "chutney stop" after "chutney verify" in test-network.sh.
2014-10-01Add test-network delay optionteor
Add a --delay option to test-network.sh, which configures the delay before the chutney network tests for data transmission. The default remains at 18 seconds if the argument isn't specified. Apparently we should be using bootstrap status for this (eventually). Partially implements ticket 13161.
2014-10-01test-network.sh: Use "/bin/echo -n" rather than builtin echoteor
The default shell on OS X is bash, which has a builtin echo. When called in "sh" mode, this echo does not accept "-n". This patch uses "/bin/echo -n" instead. Partially fixes issue 13161.
2013-09-29test-network.sh: tools dir in PATH, parameterizationJim Pannacciulli
2013-06-18Invoke binaries in $PATH rather than by absolute path.Linus Nordberg
That security measure costs more than it gives. So, keep your PATH sane and we can run this script on more than one system.
2013-06-14Use CHUTNEY_PATH to find Chutney.Linus Nordberg
2013-06-13Add make target test-network running traffic tests in a Chutney network.Linus Nordberg
This implements ticket #8530.