summaryrefslogtreecommitdiff
AgeCommit message (Collapse)Author
2018-06-24Use clang-format for C++ code.iphydf
`clang-format -style='{BasedOnStyle: Google, ColumnLimit: 100}'`
2018-06-24Add new Circle CI configuration.iphydf
This one has ASAN enabled, unlike Travis.
2018-06-24Add Logger to various net_crypto functions.iphydf
In preparation for adding log statements. Also, fix an uninitialised variable warning in cppcheck.
2018-06-24Add a test for double conference invite.iphydf
In Persistent Group Chats (PGC), this will cause a use-after-free. This test ensures that we fix this bug before merging PGC.
2018-06-23Disable UDP when proxy is enabled.iphydf
Currently, toxcore does not support UDP over proxies. In the future, we can relax this by disabling UDP only if the proxy doesn't support it.
2018-06-23Avoid conditional-uninitialised warning for tcp test.iphydf
The C compiler warns because the value is initialised in a loop and used outside of it. In this case, it's always initialised, but changing the value of `NUM_PORTS` can change that.
2018-06-23Add assertions to bootstrap tests for correct connection type.iphydf
2018-06-23Make NULL options behave the same as default options.iphydf
I.e. make tox_new(0, 0) behave the same as tox_new(tox_options_new(0), 0). Changing defaults in the options does not currently affect NULL options.
2018-06-23Add random testing program.iphydf
This can be used as a random stress test for toxcore. Adjust the weights to make certain actions more or less likely.
2018-06-23Add tests for what happens when passing an invalid proxy host.iphydf
Related: https://github.com/qTox/qTox/issues/5174
2018-06-22Clarify/Improve test_some testhugbubby
Better error messages, better sleep() call placements, etc. Did not modify large chunk of function because I couldn't explain it. Maybe I'll come back later once I've regained lost brain cells.
2018-06-22Make the net_crypto connection state an enum.iphydf
It was a list of #defines, but clearly this is a discrete and limited set of named values, so an enum is more appropriate.
2018-06-20Merge remote-tracking branch 'irungentoo/master' into merge-iruiphydf
2018-06-20Better TCP testing (beginnings)hugbubby
Tests all ports instead of just one, also adds some comments/changes error messages to be more descriptive
2018-06-19Add test for creating multiple conferences in one tox.iphydf
This triggers a code path in Persistent Group Chats that causes a memory leak. I'm adding this test now, so that we don't merge PGC without fixing the memory leak first.
2018-06-18Remove resource_leak_test.iphydf
This test has never caught a bug. It's better to catch these with asan or the likes.
2018-06-18Fix linking with address sanitizer.iphydf
`-fsanitize=address` also needs to be passed to the linker.
2018-06-17Make dht_test more stable.iphydf
By making it run in a port range far away from other tests. This test creates 100 DHTs and makes either itself or other tests run out of ports.
2018-06-17Minor cleanup: return early on error condition.iphydf
2018-06-16Only check full rtp offset if RTP_LARGE_FRAME is setRobin Lindén
2018-06-14Add minitox to under "Other resources" section in the READMElazyrobot
2018-06-09Sort bazel build file according to buildifier standard.iphydf
2018-06-08In DEBUG mode, make toxcore crash on signed integer overflow.iphydf
Signed overflow is undefined behaviour, so in debug mode, we want to make it fail in a noisy way.
2018-06-04Log only the filename, not the full path in LOGGER.iphydf
Fixes #900.
2018-06-03Fix macOS macro because of GNU Machyangfl
2018-05-29Fix enumeration of Crypto_Connection instancesPavel Karelin
2018-05-23Fix ipport_isset: port 0 is not a valid port.iphydf
2018-05-23Fix the often call of event tox_friend_connection_statusPavel Karelin
Fixes #868 Is made by: 1. Fix enumeration mechanism of Crypto_Connection instances in function send_crypto_packets() (this item solves the main problem); 2. Disruption of correlation between parameters of different dimensions (the parameters MAX_NUM_SENDPACKET_TRIES and UDP_DIRECT_TIMEOUT have different dimensions).
2018-05-22Fix bootstrap loggercotox
TODO: need a meanful log output
2018-05-20Finish @Diadlo's network Family abstraction.iphydf
The Family stuff in toxcore is a big mess. I'm sure I saw a bunch of bugs on the way, but I'm not verifying that code now, so the bugs stay.
2018-05-20Add empty logger to DHT bootstrap daemons.iphydf
These should register a proper logging callback so the messages don't go devnull, but this at least ensures a logger is available.
2018-05-20Move system header includes from network.h to network.ciphydf
2018-05-10fix DHT_bootstrap key loadingAnthony Bilinski
Introduced by 643eea60bb9dcf4ecb33d64666b1bc77cbfd7438
2018-05-10Make toxcore compile on BSDendoffile78
2018-05-10Fix FreeBSD build on TravisMaxim Biro
2018-04-20Restrict packet kinds that can be sent through onion path.irungentoo
Taken from: https://github.com/TokTok/c-toxcore/commit/6b97acb773622f9abca5ef305cd55bdef1ecc484
2018-04-17Improve network error reporting on WindowsMaxim Biro
Windows doesn't report network errors though errno, it has its own facilities.
2018-04-18Release v0.2.2Robin Lindén
2018-04-18fix broken and unmaintained autotools buildMaxim Biro
2018-04-15Restrict packet kinds that can be sent through onion path.Evgeny Kurnevsky
2018-04-06CMake warn if libconfig not foundBraiden Vasco
2018-04-06remove broken and unmaintained scriptssudden6
2018-04-03Avoid the use of rand() in tests.iphydf
We control the random functions in crypto_core, so we can make them deterministic more easily. This will help test reproducibility in the future.
2018-04-03add comment to func cryptpacket_receivedhqwrong
2018-03-22fix build error on macoshqwrong
2018-03-17Disallow stderr logger by default.iphydf
2018-03-17Add logging to the onion_test.iphydf
Makes debugging easier.
2018-03-17Add COVERAGE cmake flag for clang.iphydf
This only works with clang/llvm. Coveralls support needs to be added later.
2018-03-17Fix coveralls reporting.iphydf
The new clang version makes gcov segfault. Also, coveralls needs another package that it doesn't install the right version of by default.
2018-03-16Add default stderr logger for logging to nullptr.iphydf
This is useful for debugging a function that doesn't have a logger available. It should not be used in production code, since it outputs to stderr.