aboutsummaryrefslogtreecommitdiff
path: root/src/test/include.am
AgeCommit message (Collapse)Author
2014-04-15Uplift status.c unit test coverage with new test cases and macros.dana koch
A new set of unit test cases are provided, as well as introducing an alternative paradigm and macros to support it. Primarily, each test case is given its own namespace, in order to isolate tests from each other. We do this by in the usual fashion, by appending module and submodule names to our symbols. New macros assist by reducing friction for this and other tasks, like overriding a function in the global namespace with one in the current namespace, or declaring integer variables to assist tracking how many times a mock has been called. A set of tests for a small-scale module has been included in this commit, in order to highlight how the paradigm can be used. This suite gives 100% coverage to status.c in test execution.
2014-04-08Merge branch 'bug7952_final'Nick Mathewson
Conflicts: src/test/include.am src/test/test.c
2014-04-08Making entire exit policy available to Tor controller.rl1987
2014-04-02Unit tests for connection_edge_process_resolved_cellNick Mathewson
Also rename a function to be more accurate (resolve->resolved)
2014-03-04Merge branch 'bug10169_025_v2'Nick Mathewson
Conflicts: src/test/test.c
2014-02-28Unit tests for test_routerkeys_write_fingerprintNick Mathewson
2014-02-12Initial unit tests for OOM handlingNick Mathewson
2014-02-06add test for node_get_verbose_nickname_by_idQingping Hou
2014-02-06remove node_describe_by_id() functionQingping Hou
This function is not used anymore
2014-02-04Distcheck repair: add new python testing code to "tarballs"Nick Mathewson
'make distcheck' now passes again.
2014-01-29add test case for node_describe_by_idQingping Hou
2014-01-29add test case for hidden service async eventsQingping Hou
2013-11-18Merge branch 'backtrace_squashed'Nick Mathewson
Conflicts: src/common/sandbox.c src/common/sandbox.h src/common/util.c src/or/main.c src/test/include.am src/test/test.c
2013-11-18Tests for backtrace.cNick Mathewson
These need to be a separate executable, since the point of backtrace.c is that it can crash and write stuff.
2013-11-18Unit tests for new functions in log.cNick Mathewson
2013-10-28Merge branch 'morestats4' into morestats5Karsten Loesing
Conflicts: doc/tor.1.txt src/or/config.c src/or/connection.h src/or/control.c src/or/control.h src/or/or.h src/or/relay.c src/or/relay.h src/test/test.c
2013-10-11Fix out-of-tree "make check-local"Nick Mathewson
2013-10-11When possible, run the ntor python integration tests tooNick Mathewson
2013-10-11When python is available, run the commandline unit tests from "make check"Nick Mathewson
2013-09-18Fix benchmarks to run without crashing.Nick Mathewson
I broke this when I added separate test-mode support by having the benchmarks get built with TEST_CFLAGS.
2013-08-15Merge branch 'bug5040_4773_rebase_3'Nick Mathewson
2013-08-15Unit tests for ext_or_id_map.Nick Mathewson
2013-08-15Split out buffers and socks tests into separate modules.Nick Mathewson
No other changes were made here. Keeping everything in src/test/test.c was a legacy of back when we had all our unit tests in one big file. Doing this now because I'm adding an ext_or_command test.
2013-07-19Regression test for destroy cell queueNick Mathewson
This exercises the code that crashed and caused #9296.
2013-07-18Start of a unit test for options_validate.Nick Mathewson
I added this so I could write a unit test for ServerTransportOptions, but it incidentally exercises the succeed-on-defaults case of options_validate too.
2013-07-18Unit tests for cell queues.Nick Mathewson
This removes some INLINE markers from functions that probably didn't need them.
2013-07-10Add some basic unit tests for the circuit map data structure.Nick Mathewson
These show off the new mocking code by mocking the circuitmux code so that we can test the circuit map code in isolation.
2013-07-10Coverage support: build with --enable-coverage to have tests run with gcovNick Mathewson
If you pass the --enable-coverage flag on the command line, we build our testing binaries with appropriate options eo enable coverage testing. We also build a "tor-cov" binary that has coverage enabled, for integration tests. On recent OSX versions, test coverage only works with clang, not gcc. So we warn about that. Also add a contrib/coverage script to actually run gcov with the appropriate options to generate useful .gcov files. (Thanks to automake, the .o files will not have the names that gcov expects to find.) Also, remove generated gcda and gcno files on clean.
2013-07-10Start work on fancy compiler tricks to expose extra stuff to our testsNick Mathewson
This is mainly a matter of automake trickery: we build each static library in two versions now: one with the TOR_UNIT_TESTS macro defined, and one without. When TOR_UNIT_TESTS is defined, we can enable mocking and expose more functions. When it's not defined, we can lock the binary down more. The alternatives would be to have alternate build modes: a "testing configuration" for building the libraries with test support, and a "production configuration" for building them without. I don't favor that approach, since I think it would mean more people runnning binaries build for testing, or more people not running unit tests.
2013-06-12Fix #9043 - simplyfy the code and use EVP_PKEY_cmp instead of pkey_eq / ↵Marek Majkowski
tor_tls_evp_pkey_eq
2013-06-10Bug #5170 - make pkey_eq testable, introduce test_tortls.cMarek Majkowski
2013-05-31Test functions used for TB_EMPTY and CELL_STATS events.Karsten Loesing
2013-01-16Actually link against nacl when we want to use itNick Mathewson
Fixes more of bug 7972
2013-01-03Add reference implementation for ntor, plus compatibility testNick Mathewson
Before I started coding ntor in C, I did another one in Python. Turns out, they interoperate just fine.
2013-01-03Make libcurve25519_donna get built as a .aNick Mathewson
This lets us give it compiler flags differing from the rest of libor-crypto.a
2012-11-14Refactor begin cell parsing into its own function, with tests.Nick Mathewson
Add 'flags' argument to begin cells, per proposal 208.
2012-10-11Move all externally maintained source files into src/extNick Mathewson
The rationale for treating these files differently is that we should be checking upstream for changes as applicable, and merging changes upstream as warranted.
2012-08-09fix TESTS to include full path to src/test/testStewart Smith
2012-08-09Move to non-recursive makeStewart Smith
This gives us a few benefits: 1) make -j clean all this will start working, as it should. It currently doesn't. 2) increased parallel build recursive make will max out at number of files in a directory, non-recursive make doesn't have such a limitation 3) Removal of duplicate information in make files, less error prone I've also slightly updated how we call AM_INIT_AUTOMAKE, as the way that was used was not only deprecated but will be *removed* in the next major automake release (1.13).... so probably best that we can continue to bulid tor without requiring old automake. (see http://www.gnu.org/software/automake/manual/html_node/Public-Macros.html ) For more reasons why, see resources such as: http://miller.emu.id.au/pmiller/books/rmch/