aboutsummaryrefslogtreecommitdiff
path: root/src/test/include.am
AgeCommit message (Collapse)Author
2018-08-21Add rudimentary support for PEM-encoding, since NSS doesn't do that.Nick Mathewson
2018-07-31Merge branch 'nss_dh_squashed' into nss_dh_squashed_mergedNick Mathewson
2018-07-17Merge branch 'bug25552_ope_squashed'Nick Mathewson
2018-07-17Implementation for a simple order-preserving encryption scheme.Nick Mathewson
This is meant for use when encrypting the current time within the period in order to get a monotonically increasing revision counter without actually revealing our view of the time. This scheme is far from the most state-of-the-art: don't use it for anything else without careful analysis by somebody much smarter than I am. See ticket #25552 for some rationale for this logic.
2018-07-17Merge branch 'maint-0.3.4'Nick Mathewson
2018-07-17Fix build to work with --disable-unittests againrl1987
2018-07-11Make our crypto library symbolic in the makefiles.Nick Mathewson
2018-07-05All remaining files in src/common belong to the event loop.Nick Mathewson
2018-07-01Tabify all of the .am files.Nick Mathewson
2018-06-27Merge branch 'net_refactor'Nick Mathewson
2018-06-27Revert "Use the "commands" argument of AC_CONFIG_FILES to make scripts +x"Nick Mathewson
This reverts commit 56c1fbf33f34e010ec33e7660fab3ec3ecb43fc8.
2018-06-27Link GetAdaptersAddresses, rather than loading it on-demand.Nick Mathewson
This function has been present since Windows XP.
2018-06-21Use the "commands" argument of AC_CONFIG_FILES to make scripts +xNick Mathewson
Closes ticket 26439.
2018-06-21Remove unused pubsub module.Nick Mathewson
2018-06-21Refactor makefiles to keep list of internal libraries in one place.Nick Mathewson
This change makes it possible for us to change the list of libraries more easily, without changing every single linker line.
2018-06-21Merge branch 'maint-0.3.4'Nick Mathewson
2018-06-21Merge branch 'bug25787_squashed' into maint-0.3.4Nick Mathewson
2018-06-21Revise geoip tests to not require paths of actual geoip configNick Mathewson
When I wrote the first one of these, it needed the path of the geoip file. But that doesn't translate well in at least two cases: - Mingw, where the compile-time path is /c/foo/bar and the run-time path is c:\foo\bar. - Various CI weirdnesses, where we cross-compile a test binary, then copy it into limbo and expect it to work. Together, these problems precluded these tests running on windows. So, instead let's just generate some minimal files ourselves, and test against them. Fixes bug 25787
2018-06-21Merge branch 'maint-0.3.4'Nick Mathewson
2018-06-20Add a leak suppression for backtrace_allocNick Mathewson
This appears to be an internal rust thing: I don't know why it's leaking. We should investigate further.
2018-06-20Simplify AM_CPPFLAGS include setupNick Mathewson
We had accumulated a bunch of cruft here. Now let's only include src and src/ext. (exception: src/trunnel is autogenerated code, and need to include src/trunnel.) This commit will break the build hard. The next commit will fix it.
2018-06-19Use a rust build script to set linker options correctly for tests.Nick Mathewson
We need this trick because some of our Rust tests depend on our C code, which in turn depend on other native libraries, which thereby pulls a whole mess of our build system into "cargo test". To solve this, we add a build script (build.rs) to set most of the options that we want based on the contents of config.rust. Some options can't be set, and need to go to the linker directly: we use a linker replacement (link_rust.sh) for these. Both config.rust and link_rust.sh are generated by autoconf for us. This patch on its own should enough to make the crypto test build, but not necessarily enough to make it pass.
2018-06-18Revert "Remove duplicate MODULE_DIRAUTH_SOURCES from libtor_testing.a"Nick Mathewson
This reverts commit 70d91bd059869a0ecf24ceb66942ada4f66f03c9.
2018-06-18Remove duplicate MODULE_DIRAUTH_SOURCES from libtor_testing.aNick Mathewson
This was already added to LIBTOR_A_SOURCES; it doesn't need to get added again. Fixes bug 26402. Bugfix on 0.3.4.1-alpha.
2018-06-14Merge branch 'maint-0.3.3'Nick Mathewson
2018-06-13squash! Make sure that the test_rust.sh script fails when a test failsNick Mathewson
Also make sure that we're actually running the test from within the right cwd, like we do when we're building. This seems necessary to avoid an error when running offline. Amusingly, it appears that we had this bug before: we just weren't noticing it, because of bug 26258.
2018-06-02Heed --disable-unittests properlyrl1987
2018-05-09Merge branch 'ticket26009'Nick Mathewson
2018-05-06Add unit test for ..get_start_of_next_voting_interval().Nick Mathewson
This functionality was covered only accidentally by our voting-test code, and as such wasn't actually tested at all. The tests that called it made its coverage nondeterministic, depending on what time of day you ran the tests. Closes ticket 26014.
2018-05-03Basic unit tests for update_current_time().Nick Mathewson
This function is about to get more complicated, so we should track how it's working.
2018-04-26test: Add missing geoip_dummy file to EXTRA_DISTDavid Goulet
Needed to run tests from the tarball else the geoip unit test would fail by not finding that file. Signed-off-by: David Goulet <dgoulet@torproject.org>
2018-04-23test: Add periodic events unit testsDavid Goulet
Signed-off-by: David Goulet <dgoulet@torproject.org>
2018-04-13Merge branch 'token_bucket_refactor_squashed'Nick Mathewson
2018-04-13Add a new token-bucket backend abstraction, with testsNick Mathewson
This differs from our previous token bucket abstraction in a few ways: 1) It is an abstraction, and not a collection of fields. 2) It is meant to be used with monotonic timestamps, which should produce better results than calling gettimeofday over and over.
2018-04-10Merge remote-tracking branch 'isis-github/bug25425_squashed2'Nick Mathewson
2018-04-09test: Add testing module and some unittests for bridges.c.Isis Lovecruft
This roughly doubles our test coverage of the bridges.c module. * ADD new testing module, .../src/test/test_bridges.c. * CHANGE a few function declarations from `static` to `STATIC`. * CHANGE one function in transports.c, transport_get_by_name(), to be mockable. * CLOSES #25425: https://bugs.torproject.org/25425
2018-04-05Merge remote-tracking branch 'public/split_relay_crypto'Nick Mathewson
2018-03-24Basic unit tests for relay_crypto.cNick Mathewson
These tests handle incoming and outgoing cells on a three-hop circuit, and make sure that the crypto works end-to-end. They don't yet test spec conformance, leaky-pipe, or various error cases.
2018-03-23Merge branch 'maint-0.3.3'Nick Mathewson
2018-03-23tests: Automatically detect Rust crates to test and also pass --verbose.Isis Lovecruft
* FIXES #25560: https://bugs.torproject.org/25560.
2018-03-15Split geoip tests into a separate module.Nick Mathewson
2018-02-16Merge branch 'maint-0.3.1' into maint-0.3.2Nick Mathewson
2018-02-16Merge branch 'maint-0.2.9' into maint-0.3.1Nick Mathewson
2018-02-13Merge branch 'tests_rust'Nick Mathewson
2018-02-09Merge remote-tracking branch 'dgoulet/ticket24902_029_05'Nick Mathewson
2018-02-08Add a "make test-rust" target to run the rust tests only.Nick Mathewson
2018-02-08Merge branch 'ticket25183_029_01' into ticket24902_029_05David Goulet
2018-02-08test: Add unit tests for addressset.cDavid Goulet
This also adds one that tests the integration with the nodelist. Signed-off-by: David Goulet <dgoulet@torproject.org>
2018-01-30Merge branch 'ticket24902_029_05' into ticket24902_033_02David Goulet
2018-01-30test: Add unit tests for the DoS subsystemGeorge Kadianakis
Signed-off-by: David Goulet <dgoulet@torproject.org>