summaryrefslogtreecommitdiff
path: root/auto_tests
AgeCommit message (Collapse)Author
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-20Move system header includes from network.h to network.ciphydf
2018-04-17Improve network error reporting on WindowsMaxim Biro
Windows doesn't report network errors though errno, it has its own facilities.
2018-04-15Restrict packet kinds that can be sent through onion path.Evgeny Kurnevsky
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-03-17Disallow stderr logger by default.iphydf
2018-03-17Add logging to the onion_test.iphydf
Makes debugging easier.
2018-03-16Remove the use of the 'hh' format specifier.iphydf
It's not supported in mingw. See https://github.com/TokTok/c-toxcore/issues/786.
2018-03-02Make file transfers 50% faster.iphydf
By increasing a magic number.. Also, added more verbose logging to the file transfer test.
2018-02-27Remove deprecated conference namelist change callback.iphydf
2018-02-27Fix auto_tests to stop using the deprecated conference API.iphydf
2018-02-24Fix a bunch of compiler warnings and remove suppressions.iphydf
2018-02-23Link all tests to the android cpufeatures library if available.iphydf
This is needed for libvpx to work on android. This also means that we can upload our test binaries to an android device and actually run them, now that libcheck is no longer a blocker.
2018-02-20Make the "persistent conference" callback changes new functions.iphydf
We can now revert the changes to the callbacks and keep supporting them until clients have moved off them.
2018-02-19Make some sizeof tests linux-only.iphydf
net_crypto has pthread types in its struct, so its size is system dependent. In particular, the sizes are wrong on FreeBSD.
2018-02-18Increase range of ports available to Toxes during testsRobin Lindén
2018-02-18Disable lan discovery in most tests.iphydf
2018-02-18Remove tox_test from autotools build.iphydf
2018-02-18Split up tox_test into multiple smaller testsRobin Lindén
2018-02-18Don't print trace level logging in tests.iphydf
2018-02-17Add static asserts for all the struct sizes in toxcore.iphydf
This forces us to record size changes (for LP64) and helps estimate memory consumption of internal data structures.
2018-02-17Make outgoing Filetransfers round-robin.zoff99
Instead of 1 FT blocking all others.
2018-02-14Get rid of the only GNU extension we used.iphydf
2018-02-09Remove libcheck from the dependencies.iphydf
We're not gaining much from this library, and it's a burden, especially for windows development.
2018-02-08Fix LAN discovery on FreeBSD.iphydf
Also, add an auto-test for bootstrap and for LAN discovery. Bootstrap is never tested otherwise, and LAN discovery is a prerequisite for everything else. Having these two tests lets us rule out or identify LAN discovery as a possible cause for test failures.
2018-02-06Improve stability of crypto_memcmp test.iphydf
Also reduce number of people in conference to 5, because on Circle CI the test times out trying to connect more than 6 or 7 people. The persistent conferences PR will improve this so we can set it much higher then.
2018-02-06Format .cpp files with format-source.iphydf
2018-02-01Improve conference test stability.iphydf
2018-01-30Use nullptr as NULL pointer constant instead of NULL or 0.iphydf
This changes only code, no string literals or comments.
2018-01-28Avoid clashes with "build" directories on case-insensitive file systems.iphydf
2018-01-28Make audio/video bit rates "properties"xhe
follow TokTok#731. This commit completely removed all things in namespace bit_rate, and deprecated functions are to be added back in another commit. set_xxx() is treadted as a property of namespace audio&video, same as bit_rate change event. toxav_basic_test is fixed, either.
2018-01-26Fix out of bounds read in error case in messenger_test.iphydf
Also got rid of two VLAs. They are overused a bit in toxcore. In irc_syncbot, the array was uninitialised and then filled by a recv system call. This can cause uninitialised reads if recv doesn't fill the entire array. It could not cause out of bounds read directly, because a NUL-terminator was in place, but both cases are undefined behaviour.
2018-01-25Split bit_rate_set(), one for audio, one for video.xhe
Fixes #572. As discussed in the issue, there's a risk that toxcore may not hold the maximum bitrates libvpx supports, if toxcore insists on using integer type. I initially proposed to have another flag in set(), so that we can use unsigned type instead. iphydf came up with a better solution, that is splitting the original functions, one for audio, one for video. Now, we could safely replace int32_t with uint32_t. Also: clean video_bit_rate_invalid() Though this is not a part of issue #572, as it's used in the toxav_bit_rate_set(), i cleaned the code. As mannol said, there should be a check. Uint32_t is large enough to hold the maximum bitrates libvpx supports, but user may pass a value larger than uint while smaller than uint32_t. Thanks to the reminding from nurupo, it's no longer a stub function. Bitrate error enums are shared for both audio and video https://github.com/TokTok/c-toxcore/pull/578#issuecomment-360095609, just as iphydf said.
2018-01-21Make the monolith test a C++ binary.iphydf
This way, developers compile toxcore, toxav, and toxencryptsave as C++ at least once at home, reducing the likelyhood of running into travis failures where we compile as C++ in the windows build.
2018-01-21Make BUILD files more finely-grained.iphydf
This allows us to precisely see which libraries depend on which and lets us split them up more, if necessary.
2018-01-21Don't allocate or dereference Tox_Options in tests.iphydf
This struct will soon become opaque.
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.