aboutsummaryrefslogtreecommitdiff
path: root/src/test/include.am
AgeCommit message (Collapse)Author
2020-10-23Merge branch 'combined_libs'Nick Mathewson
2020-10-07Remove long-obsolete members from the state file.Nick Mathewson
Tor has a feature to preserve unrecognized state file entries in order to maintain forward compatibility. But this feature, along with some unused code that we never actually removed, led to us keeping items that were of no use to the user, other than at worst to preserve ancient information about them. This commit adds a feature to remove obsolete entries when we load the file. Closes ticket 40137.
2020-09-23Implement IPv6 sybil protection.vnepveu
[This is a squashed patch for ticket 7193, based on taking a "git diff" for the original branch, then applying it with "git apply -3". I earlier attempted to squash the branch with "git rebase", but there were too many conflicts. --nickm]
2020-09-18Build one big .a library full of Tor's implementation.Nick Mathewson
This is experimental and probably will break some platforms
2020-08-19Merge branch 'maint-0.4.4'George Kadianakis
2020-08-19Merge branch 'mr/124' into maint-0.4.4George Kadianakis
2020-08-19Parallelize src/test/test into chunks.Nick Mathewson
First, we introduce a flag to teach src/test/test to split its work into chunks. Then we replace our invocation of src/test/test in our "make check" target with a set of 8 scripts that invoke the first 8th of the tests, the second 8th, and so on. This change makes our "make -kj4 check" target in our hardened gitlab build more than twice as fast, since src/test/test was taking the longest to finish. Closes 40098.
2020-07-15Add test for torrc %include functionality and seccomp sandboxDaniel Pinto
Tests %include with files and folders, modifying and reloading the config file with sandbox enabled and reponse of SAVECONF and getinfo config-can-saveconf control commmands.
2020-07-15Add support for patterns on %include #25140Daniel Pinto
Also adds generic tor_glob function to expand globs.
2020-07-08trace: Add LTTng-UST interface supportDavid Goulet
No probes at this point. They are per subsystem and thus in later commits. Part of #32910
2020-04-07Add a test script to check subsystem order as part of make check.Nick Mathewson
2020-02-24Merge remote-tracking branch 'tor-github/pr/1685/head'Nick Mathewson
2020-02-19Makefile: Tweak the test-network* chuttney networksteor
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.
2020-02-17Makefile: Add an IPv6 mixed chutney networkteor
This network is used in make test-network-all and test-network-ipv6. Closes 33334.
2020-02-17Makefile: Add v3 onion services to the mixed networkteor
This network is used in make test-network-all and test-network-ipv4. Part of 33334.
2020-02-13Makefile: Use chutney's latest default networkteor
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.
2020-02-13Makefike: Add an IPv6 test to test-networkteor
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.
2020-01-21test: Add HS onion balance testsDavid Goulet
Signed-off-by: David Goulet <dgoulet@torproject.org>
2020-01-17Merge branch 'ticket32806'Nick Mathewson
2020-01-06Merge branch 'haxxpop/tcp_proxy_squashed' into tcp_proxy_squshed_and_mergedNick Mathewson
2020-01-06test: Implement haproxySuphanat Chunhapanya
2019-12-19Move get_foo_options() test helpers into a new test module.Nick Mathewson
Some of these helpers will be needed in multiple places in the unit tests, so we should move them now.
2019-12-03Distribute checkSpaceTest.sh and run it when we have perl.Nick Mathewson
2019-11-20New unit tests for options_create_directories().Nick Mathewson
2019-11-05Merge remote-tracking branch 'tor-github/pr/1477'teor
2019-11-05test: Split stats into its own fileteor
Part of 32213.
2019-10-28ewma: Implement unit testsDavid Goulet
At this commit, 93.9% of line coverage and 95.5% of function coverage. Closes #32196 Signed-off-by: David Goulet <dgoulet@torproject.org>
2019-10-28test: Add fakecircs.{h|c} helperDavid Goulet
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>
2019-10-14Merge remote-tracking branch 'tor-github/pr/1393' into maint-0.4.2Nick Mathewson
2019-10-04Add a mock replacement for blocking hostname resolutionNick Mathewson
Based on examination of our tests, this mock function accepts "localhost" and "torproject.org", and rejects everything else.
2019-10-03Merge branch 'tor-github/pr/1276'George Kadianakis
2019-10-03Unit tests for dirserv_reject_tor_version().Nick Mathewson
2019-09-14Add a test script to try parsing and encoding Tor configurationsNick Mathewson
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.
2019-09-11Add test_cmdline.sh to distribution.Nick Mathewson
2019-09-11integration test for --list-torrc-optionsNick Mathewson
(This option tests our existing behavior, not necessarily the most sensible behavior.)
2019-08-28Merge branch 'ticket31240v2' into ticket31240v2_merged_2Nick Mathewson
2019-08-28Start on test cases for the multi-object feature of confmgr.Nick Mathewson
This test case, at this point, only constructs the confmgr object. More code to come.
2019-08-07Merge remote-tracking branch 'tor-github/pr/1208'Nick Mathewson
2019-08-06test: Add hs_dos.c unit testsDavid Goulet
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>
2019-08-01practracker: Add unit tests to test script, and test script to makefileNick Mathewson
This makes all of the practracker tests get run by make check, and hence by our CI. Closes ticket 31304.
2019-06-15Add more unit tests for confparse.c, so we can refactor.Nick Mathewson
This set of tests gets the line coverage to 100%.
2019-06-11token-bucket: Implement a single counter objectDavid Goulet
Closes #30687. Signed-off-by: David Goulet <dgoulet@torproject.org>
2019-05-23Coverage: do not include test-rebind in coverage builds.Nick Mathewson
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.)
2019-05-13Merge branch 'tor-github/pr/976'David Goulet
2019-05-02Merge branch 'tor-github/pr/986'George Kadianakis
2019-05-02Add comments to include.am files to note where new sources goNick Mathewson
This mechanism isn't perfect, and sometimes it will guess wrong, but it will help our automation.
2019-04-30Add support for deterministic override of crypto_rand() in testsNick Mathewson
We had this previously, but we did it differently in different places. This implementation is pulled from test_prob_distr.c
2019-04-29tests: Implement unit tests for SENDME v1David Goulet
Part of #26288 Signed-off-by: David Goulet <dgoulet@torproject.org>
2019-04-24test-network-all: Test IPv6-only v3 single onion servicesteor
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.
2019-03-26Merge branch 'messaging_v3' into messaging_v3_mergedNick Mathewson