aboutsummaryrefslogtreecommitdiff
path: root/src/test/include.am
Commit message (Collapse)AuthorAge
* Uplift status.c unit test coverage with new test cases and macros.dana koch2014-04-15
| | | | | | | | | | | | | | | 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.
* Merge branch 'bug7952_final'Nick Mathewson2014-04-08
|\ | | | | | | | | | | Conflicts: src/test/include.am src/test/test.c
| * Making entire exit policy available to Tor controller.rl19872014-04-08
| |
* | Unit tests for connection_edge_process_resolved_cellNick Mathewson2014-04-02
| | | | | | | | Also rename a function to be more accurate (resolve->resolved)
* | Merge branch 'bug10169_025_v2'Nick Mathewson2014-03-04
|\ \ | | | | | | | | | | | | Conflicts: src/test/test.c
| * | Initial unit tests for OOM handlingNick Mathewson2014-02-12
| | |
* | | Unit tests for test_routerkeys_write_fingerprintNick Mathewson2014-02-28
|/ /
* | add test for node_get_verbose_nickname_by_idQingping Hou2014-02-06
| |
* | remove node_describe_by_id() functionQingping Hou2014-02-06
| | | | | | | | This function is not used anymore
* | Distcheck repair: add new python testing code to "tarballs"Nick Mathewson2014-02-04
| | | | | | | | 'make distcheck' now passes again.
* | add test case for node_describe_by_idQingping Hou2014-01-29
| |
* | add test case for hidden service async eventsQingping Hou2014-01-29
| |
* | Merge branch 'backtrace_squashed'Nick Mathewson2013-11-18
|\ \ | | | | | | | | | | | | | | | | | | | | | | | | | | | 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
| * | Tests for backtrace.cNick Mathewson2013-11-18
| | | | | | | | | | | | | | | These need to be a separate executable, since the point of backtrace.c is that it can crash and write stuff.
| * | Unit tests for new functions in log.cNick Mathewson2013-11-18
| | |
* | | Merge branch 'morestats4' into morestats5Karsten Loesing2013-10-28
|\ \ \ | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | 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
| * | | Test functions used for TB_EMPTY and CELL_STATS events.Karsten Loesing2013-05-31
| | | |
* | | | Fix out-of-tree "make check-local"Nick Mathewson2013-10-11
| | | |
* | | | When possible, run the ntor python integration tests tooNick Mathewson2013-10-11
| | | |
* | | | When python is available, run the commandline unit tests from "make check"Nick Mathewson2013-10-11
| | | |
* | | | Fix benchmarks to run without crashing.Nick Mathewson2013-09-18
| |_|/ |/| | | | | | | | | | | I broke this when I added separate test-mode support by having the benchmarks get built with TEST_CFLAGS.
* | | Merge branch 'bug5040_4773_rebase_3'Nick Mathewson2013-08-15
|\ \ \ | |_|/ |/| |
| * | Unit tests for ext_or_id_map.Nick Mathewson2013-08-15
| | |
| * | Split out buffers and socks tests into separate modules.Nick Mathewson2013-08-15
| | | | | | | | | | | | | | | | | | | | | | | | 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.
* | | Regression test for destroy cell queueNick Mathewson2013-07-19
|/ / | | | | | | This exercises the code that crashed and caused #9296.
* | Start of a unit test for options_validate.Nick Mathewson2013-07-18
| | | | | | | | | | | | 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.
* | Unit tests for cell queues.Nick Mathewson2013-07-18
| | | | | | | | | | This removes some INLINE markers from functions that probably didn't need them.
* | Add some basic unit tests for the circuit map data structure.Nick Mathewson2013-07-10
| | | | | | | | | | These show off the new mocking code by mocking the circuitmux code so that we can test the circuit map code in isolation.
* | Coverage support: build with --enable-coverage to have tests run with gcovNick Mathewson2013-07-10
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | 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.
* | Start work on fancy compiler tricks to expose extra stuff to our testsNick Mathewson2013-07-10
| | | | | | | | | | | | | | | | | | | | | | | | | | | | 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.
* | Fix #9043 - simplyfy the code and use EVP_PKEY_cmp instead of pkey_eq / ↵Marek Majkowski2013-06-12
| | | | | | | | tor_tls_evp_pkey_eq
* | Bug #5170 - make pkey_eq testable, introduce test_tortls.cMarek Majkowski2013-06-10
|/
* Actually link against nacl when we want to use itNick Mathewson2013-01-16
| | | | Fixes more of bug 7972
* Add reference implementation for ntor, plus compatibility testNick Mathewson2013-01-03
| | | | | Before I started coding ntor in C, I did another one in Python. Turns out, they interoperate just fine.
* Make libcurve25519_donna get built as a .aNick Mathewson2013-01-03
| | | | | This lets us give it compiler flags differing from the rest of libor-crypto.a
* Refactor begin cell parsing into its own function, with tests.Nick Mathewson2012-11-14
| | | | Add 'flags' argument to begin cells, per proposal 208.
* Move all externally maintained source files into src/extNick Mathewson2012-10-11
| | | | | | The rationale for treating these files differently is that we should be checking upstream for changes as applicable, and merging changes upstream as warranted.
* fix TESTS to include full path to src/test/testStewart Smith2012-08-09
|
* Move to non-recursive makeStewart Smith2012-08-09
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/