summaryrefslogtreecommitdiff
path: root/auto_tests
AgeCommit message (Collapse)Author
2018-01-20Fix log message in simple_conference_test: invite -> message.iphydf
2018-01-20Add a simple conference test with 3 friends.iphydf
This tests that a message from tox1 is relayed via tox2 to tox3 when tox1 and tox3 are not friends.
2018-01-19Use larger arrays in crypto timing tests.iphydf
Increasing from 256K to 1M and increasing the number of iterations from 1000 to 2000. This makes the test more accurate and less flaky.
2018-01-18Use C99 standard in bazel builds.iphydf
2018-01-18Add bazel build scripts for c-toxcore.iphydf
This allows us and users to reproducibly build verified versions of the library with checksums. It will power the toktok-stack continuous build with checked-in checksums at specific git revisions.
2018-01-16Make DHT a module-private type.iphydf
2018-01-16Make Net_Crypto a module-private type.iphydf
2018-01-14Fix some memory or file descriptor leaks in test code.iphydf
Also some missing return value checks for `fopen`.
2018-01-14Make TCP_Client_Connection a module-private type.iphydf
2018-01-14Make Onion_Client a module-private type.iphydf
2018-01-14Make Onion_Announce a module-private type.iphydf
2018-01-14Filter out annoying log statements in unit tests.iphydf
These may be useful when debugging toxcore locally, but are not useful in unit tests.
2018-01-12Fix some typos in code and cmake commentsyangfl
2018-01-11Move Networking_Core struct into the .c file.iphydf
To make it an abstract type everywhere except in network.c.
2018-01-10Fix formatting in some C files.iphydf
Also replace &(x) with &x for consistency.
2017-12-29Change toxencryptsave API to never overwrite pass keys.iphydf
2017-12-12Fix Travis fail on addr_resolve testingDiadlo
2017-11-20Fix bootstrap portDiadlo
Test uses the first node as bootstrap, but the port is hardcoded.
2017-11-20Remove upper bound of save sizeDiadlo
2017-11-20Fix assert for the first port valueDiadlo
Port of the first tox instance will be 33445 only if this port was not in use during testing
2017-11-19Fix typoyangfl
2017-11-15Add workaround for conference testDiadlo
2017-11-15Don't use IPv6 in test if it's unsupportedDiadlo
2017-11-15Fix IPv4 and IPv6 loopbacksDiadlo
2017-08-24Add loopback and broadcast constantsDiadlo
2017-08-24Add platform independent constantsDiadlo
2017-08-24AF_INET -> TOX_AF_INETDiadlo
2017-06-06Remove unused variableMaxim Biro
2017-06-05Build tests on appveyor, the MSVC build.iphydf
Tests are not actually ran on appveyor for now, since they all fault for some reason. For now, we just build them. Also, some tests are disabled on msvc entirely, because they don't even compile. We'll need to look into those, later. They are disabled using `MSVC_DONT_BUILD`.
2017-06-05Add test for changing the conference title and not receiving a callback.pranomostro
2017-06-04Add a monolith_test that includes all toxcore sources.iphydf
This requires that every symbol, even if static (file-scope), is unique. The idea is that we can easily run "whole" program static analysis on programs that include monolith.h ("whole" is in quotes, as we don't include dependencies like libsodium in this static analysis).
2017-06-04Test for memberlist not changing after changing own name.pranomostro
This test shows that the conference members callback is not invoked when the own name changes.
2017-05-13Make variable names in file saving test less cryptic.pranomostro
2017-04-22Revert "initial version of tox_loop"Maxim Biro
This reverts commit 200ee1cace2f17537e6982ac447ea65d7c7a00b3.
2017-04-22Revert "Implement tox_loop"Maxim Biro
This reverts commit 5ff099763b1f56414572e1c12eb2f003117db5a0.
2017-04-13Add test for DHT pack_nodes and unpack_nodesDiadlo
2017-04-01Implement tox_loopAnsa89
2017-04-01initial version of tox_loopmichael bishop
2017-03-25Move c_sleep to helpers.h and misc_tools.hDiadlo
Also fix a mistake with forgotten braces around parameter
2017-03-01Add test for tox_strncasecmp()Maxim Biro
2017-02-26Add part of platform-independent network API implementationDiadlo
socket -> net_socket htons -> net_htons htonl -> net_htonl connect -> net_connect sendto -> net_sendto_ip4 getaddrinfo -> net_getipport sa_family_t -> Family
2017-01-28Add VLA compatibility macro for C89-ish compilers.iphydf
2017-01-26Add platform-independent Socket and IP implementationDiadlo
2017-01-21reduce thread-unsafe use of static variableszugz
- rework ip_ntoa() to avoid use of static variables - rework sort_client_list() to avoid use of static variables - move static 'lastdump' into Messenger struct - rework ID2String() to avoid use of static variables; rename to id_to_string() - fetch_broadcast_info(): attempt to mitigate risks from concurrent execution - current_time_monotonic(): attempt to mitigate risks from concurrent execution - comment on non-thread-safety of unix_time_update
2017-01-19Update license headers and remove redundant file name comment.iphydf
"All rights reserved" was incorrect. The project was licensed under GPL3, which means a lot of rights are licensed to everybody in the world, i.e. not reserved to the "Tox Project".
2017-01-08Set up autotools build to build against vanilla NaCl.iphydf
Fixes #363.
2017-01-07Fix issues in crypto_test.cendoffile78
2017-01-07Replace make_quick_sort with qsortendoffile78
2017-01-06Add logging callback to messenger_test.iphydf
So we can see what went wrong if it fails.
2017-01-06Revert "Revert "Portability fixes""David Zero
This reverts commit 59e2a844f04a8725e8079f854158aa86ef5988b2, and defines _DARWIN_C_SOURCE in toxcore/network.c