Age | Commit message (Collapse) | Author |
|
|
|
|
|
In "make test-network", add tests for single onion services v2 and v3.
In "make test-network-all", test onion services v2 and v3 in the same
network.
Part of 33334.
|
|
This network is used in make test-network-all and test-network-ipv6.
Closes 33334.
|
|
This network is used in make test-network-all and test-network-ipv4.
Part of 33334.
|
|
Use bridges+hs-v23 for "make test-network",
rather than using chutney's old default.
This change requires a recent version of chutney,
because the old bridges+hs-v23 did not work.
(See chutney's 33302 for details.)
Closes 28208.
|
|
The IPv6 test only runs if IPv6 is available.
Also, explicitly use the bridges+hs-v2 network for the IPv4-only test.
This network was chutney's default as of January 2020.
Closes 33300.
|
|
Signed-off-by: David Goulet <dgoulet@torproject.org>
|
|
|
|
|
|
|
|
Some of these helpers will be needed in multiple places in the unit
tests, so we should move them now.
|
|
|
|
|
|
|
|
Part of 32213.
|
|
At this commit, 93.9% of line coverage and 95.5% of function coverage.
Closes #32196
Signed-off-by: David Goulet <dgoulet@torproject.org>
|
|
Fake circuits are created everywhere in the unit tests. This is an attempt at
centralizing a "fake circuit creation" API like fakechans.c does for channel.
This commit introduces fakecircs.c and changes test_relay.c and
test_circpadding.c which were using roughly the same code.
This will allow easier OR circuit creation for the future tests in
test_circuitmux.c
Signed-off-by: David Goulet <dgoulet@torproject.org>
|
|
|
|
Based on examination of our tests, this mock function accepts
"localhost" and "torproject.org", and rejects everything else.
|
|
|
|
|
|
This script takes a set of example torrcs and command-lines from
src/test/conf_examples. If a success is expected, it runs "tor
--dump-config" and compares the result with the one we expect. If a
failure is expected, it runs "tor --verify-config" and greps for the
error we expect.
|
|
|
|
(This option tests our existing behavior, not necessarily the most
sensible behavior.)
|
|
|
|
This test case, at this point, only constructs the confmgr object.
More code to come.
|
|
|
|
Currently test the only available function which is hs_dos_can_send_intro2()
within the HS anti-DoS subsystem.
Closes #15516
Signed-off-by: David Goulet <dgoulet@torproject.org>
|
|
This makes all of the practracker tests get run by make check, and
hence by our CI.
Closes ticket 31304.
|
|
This set of tests gets the line coverage to 100%.
|
|
Closes #30687.
Signed-off-by: David Goulet <dgoulet@torproject.org>
|
|
Because it invokes the Tor mainloop, it does unpredictable things to
test coverage of a lot of code that it doesn't actually test at
all. (It is more an integration test than anything else.)
|
|
|
|
|
|
This mechanism isn't perfect, and sometimes it will guess wrong,
but it will help our automation.
|
|
We had this previously, but we did it differently in different
places. This implementation is pulled from test_prob_distr.c
|
|
Part of #26288
Signed-off-by: David Goulet <dgoulet@torproject.org>
|
|
In "make test-network-all", test IPv6-only v3 single onion services,
using the chutney network single-onion-v23-ipv6-md. This test will
not pass until 23588 has been merged.
Closes ticket 27251.
|
|
|
|
|
|
This "publish/subscribe" layer sits on top of lib/dispatch, and
tries to provide more type-safety and cross-checking for the
lower-level layer.
Even with this commit, we're still not done: more checking will come
in the next commit, and a set of usability/typesafety macros will
come after.
|
|
This module implements a way to send messages from one module to
another, with associated data types. It does not yet do anything to
ensure that messages are correct, that types match, or that other
forms of consistency are preserved.
|
|
We'll be using this for four kinds of identifier in dispatch.c
|
|
|
|
|
|
boklm tracked this down, and it doesn't make sense. It caused
This change goes back to the previous LDFLAGS line.
|
|
|
|
|
|
test_crypto.c is pretty big; it wouldn't hurt to split it up some
more before I start adding stuff to the PRNG tests.
|