summaryrefslogtreecommitdiff
path: root/auto_tests
AgeCommit message (Collapse)Author
2020-03-14Use spdx license identifier instead of GPL blurb.iphydf
2020-03-14use -1 rather than ~0 in unsigned integer typeszugz (tox)
Using ~0 involves a bitwise operation on int, so depends on the internal representation of signed integers.
2020-03-12Use rules_cc instead of native cc_library rules.iphydf
2020-03-02Upgrade bazel to 2.1.1.iphydf
Removed av_test, because it depends on an ancient opencv that starts to really not exist on modern systems anymore.
2020-01-02synchronize call control actions to tox_iteratesudden6
2019-11-17Allow Bazel to rerun tests marked as flakyRobin Linden
2019-11-02Update tests to use a working bootstrap nodeRobin Linden
2019-05-19add configurable limit on number of stored frozen peerszugz (tox)
2019-05-01add undef guard in tox_many_tcp_testsudden6
This fixes an redefinition error when creating amalgamation.cc during static analysis
2019-04-01Disable failing TCP server testzugz (tox)
The test's intermittent failure may well be exposing a real bug in the TCP relay and/or onion systems, but we can't find the bug, and keeping the test is disrupting our CI.
2019-02-10add API function to test whether av is enabledzugz (tox)
2019-02-10Expose api functions for enabling and disabling AV in AV groupszugz (tox)
A group loaded from a savefile starts with AV disabled.
2019-01-03Added test and patch for VLA stack overflow vuln.zoff99
Also added and used the new crypto_malloc and crypto_free. The latter also zeroes out the memory safely. The former only exists for symmetry (static analysis can detect asymmetric usages).
2018-11-29Implement conferences savingzugz (tox)
* add global friend_connection status callback, used for group rejoining * stop leaving groups on killing tox
2018-11-23Avoid format truncation in save compatibility testzugz (tox)
(without this, gcc-8.2.0 issues a warning)
2018-10-20Make saving and loading the responsibility of Tox rather than Messengerzugz (tox)
2018-10-11ensure save data unchanged after save and loadzugz (tox)
2018-10-09Consistently use camel case enum names.iphydf
Including in tests and implementation files.
2018-10-06Avoid use of IPv6 in tests if not supported (e.g. on Travis).iphydf
2018-09-25Use a working DHT node for bootstrap tests.iphydf
A lot of bootstrap nodes are down :(.
2018-09-20Send rejoin packets on conference disconnectionzugz (tox)
We were mistakenly not making a rejoin attempt on freezing connections due to all closest connections going down. This fixes that, and tweaks the test. I've still only done tens rather than hundreds of tests, but I'm fairly confident that the conference test now consistently passes.
2018-09-19Fix typosyangfl
2018-09-14Standardise header guards.iphydf
Using the full path including the repo name.
2018-09-14Use run_auto_test fixture in typing_test.chugbubby
2018-09-08Use `(void)` for empty parameter lists in C.iphydf
Because `()` means "some unknown number of parameters".
2018-09-05Add mechanism for recovering from disconnections in conferenceszugz
* add freezing and unfreezing of peers * add rejoin packet * revise handling of temporary invited connections * rename "peer kill" packet to "peer leave" packet * test rejoining in conference test * use custom clock in conference test
2018-09-03Avoid use of global mutable state in mono_time on win32.iphydf
This uses a trick to get read-write access to `this` from a `const` member function, similar to C++ `mutable`, but uglier.
2018-08-31Use test clock in run_auto_test tests and dht testzugz (tox)
2018-08-27try ipv6 connections even after udp timeoutzugz (tox)
Also adds a test (auto_reconnect_test) which fails without this change.
2018-08-26Update copyright to 2018.iphydf
2018-08-26Call `abort` instead of `exit` on test failure.iphydf
This raises a signal, so we can more easily catch it with gdb.
2018-08-25Run save_compatibility_test in the autotools build.iphydf
2018-08-25Fix the `PORT_ALLOC` failure of `save_compatibility_test`.iphydf
`tox_new_log` has a much larger range of ports it can select from.
2018-08-25Use do-while instead of while in tests.iphydf
This forces all the loop bodies to be executed at least once, which is harmless since it just means one more tox event loop iteration. This reduces the jitter we see in coverage measurements, which is partially caused by loops sometimes being entered and sometimes not (because their condition happens to randomly already be true).
2018-08-25Stop using massive macros in `toxav_basic_test`.iphydf
Turned a huge macro into a function. Macros are a pain to debug.
2018-08-25Fix auto_tests Makefilezugz (tox)
* specify correct source files * add save_compatibility_test (commented out for now) * reformat TESTS to one line per test, and set check_PROGRAMS := TESTS * add run_auto_test.h to EXTRA_DIST * Fix `AUTO_TEST_CFLAGS` -> `AUTOTEST_CFLAGS`.
2018-08-22Add check to make sure tox was created successfullyendoffile78
2018-08-19Avoid redefining macros from different files.iphydf
2018-08-19Make the save_compatibility_test work with bazel.iphydf
2018-08-19Add save file generator, save compatibility test, and generate a save fileendoffile78
2018-08-16Use per-instance `Mono_Time` for Messenger and onion.iphydf
2018-08-16Reduce the number of times `unix_time_update` is called.iphydf
Reduced by, e.g.: * `file_transfer_test`: 33% of the `clock_gettime` calls. * `tox_many_test`: 53% of the `clock_gettime` calls. Other tests will see similar improvements. Real world applications will be closer to 40-50% improvement, since tox_many_test has 100 nodes, while file_transfer_test has 2 nodes.
2018-08-16Limit the size of a save file in file_saving_test.iphydf
Limited to 4GiB. That ought to be enough for any save file.
2018-08-16Prune long long warnings.Leonid Bobrov
2018-08-13Fix some printf format specifiers.iphydf
2018-08-12add callback for successful connection to a conferencezugz (tox)
2018-08-12Fix a few warnings from clang.iphydf
Also remove the use of a VLA in a context where there can be unbounded memory allocations.
2018-08-12Check that the save file size isn't larger than our address space.iphydf
2018-08-02Fix problems with initial connections and name-setting in conferenceszugz
* test names in conference_test * raise error on attempt to invite friend to group before we are connected * revise handling of temporary invited connections We are now careful not to prematurely delete a connection to a peer established during the invitation process; namely, before we have sufficient other connections and have confirmed that we have an alternative route to the peer. * process out-of-order messages from a peer * don't reset names when handling a Peer Response
2018-07-30Fix autotools buildhugbubby
Mosts of the tests in auto_tests weren't running when the project was built using autotools. This fixes that.