summaryrefslogtreecommitdiff
path: root/auto_tests
AgeCommit message (Collapse)Author
2016-08-17Make self_connection_status callback stateless.iphydf
**What are we doing?** We are moving towards stateless callbacks. This means that when registering a callback, you no longer pass a user data pointer. Instead, you pass a user data pointer to tox_iterate. This pointer is threaded through the code, passed to each callback. The callback can modify the data pointed at. An extra indirection will be needed if the pointer itself can change. **Why?** Currently, callbacks are registered with a user data pointer. This means the library has N pointers for N different callbacks. These pointers need to be managed by the client code. Managing the lifetime of the pointee can be difficult. In C++, it takes special effort to ensure that the lifetime of user data extends at least beyond the lifetime of the Tox instance. For other languages, the situation is much worse. Java and other garbage collected languages may move objects in memory, so the pointers are not stable. Tox4j goes through a lot of effort to make the Java/Scala user experience a pleasant one by keeping a global array of Tox+userdata on the C++ side, and communicating via protobufs. A Haskell FFI would have to do similarly complex tricks. Stateless callbacks ensure that a user data pointer only needs to live during a single function call. This means that the user code (or language runtime) can move the data around at will, as long as it sets the new location in the callback. **How?** We are doing this change one callback at a time. After each callback, we ensure that everything still works as expected. This means the toxcore change will require 15 Pull Requests.
2016-08-12Add and use CMake build scriptiphydf
Also, fix the hstox build that was taking half an hour. It now takes 5 minutes. Also, perform distcheck on travis to ensure that make dist works. It's not actually failing the build at the moment due to broken tests.
2016-08-12Check code formatting on Travis.iphydf
We run astyle on Travis and check if there is a diff. The build terminates if git finds a difference.
2016-08-11Fix a few issues with running Toxcore tests on Travis-CIGregory Mullen (grayhatter)
> increased the timeout for TCP tests because per @irungentoo the network on Travis-CI can be slow sometimes > allowed groupchats test to restart on error until timeout This had to be done because current groupchats are fundamentally broken and 3/5 times they'll 'net-split' on connect >> Drop group chat tests, add comment to the reason > added some debugging information to TCP tests, and a #define to force IPV6 (Travis-CI only uses IPv4 on their containers) and decreased the itr interval > Went crazy with timeouts for Tox network stuff on Travis. Tests on TCP will still randomly fail due to timeouts. I can't reproduce on any local system. So again per @irungentoo, Travis is slow, let's offer it a short bus.
2016-08-10Silence/fix some compiler warnings.iphydf
Some of these (like the incompatible pointers one) are really annoying for later refactoring.
2016-02-27Move argument comments to the end of lineRoman Yepishev
2016-02-27Remove unused main() argumentsRoman Yepishev
2016-02-27Remove magic numbers from addr_resolveRoman Yepishev
* Add #defines for INET/INET6 returns * Remove magic number 3 - exact AF_INET/INET6 result found. * Updated network_test.c
2016-01-30Realised there was no test to test these functions.irungentoo
2016-01-30Fixes.irungentoo
Fixed bug from merged PR. Don't build useless files when building with libsodium.
2016-01-27 fix: compare sensitive data with sodium_memcmpRoman Proskuryakov
fix: make increment_nonce & increment_nonce_number independent of user-controlled input fix: make crypto_core more stable agains null ptr dereference
2016-01-04Test fix.irungentoo
2015-12-15Onion test fixed to work with faster DHT.irungentoo
2015-12-11Better DHT tests.irungentoo
2015-12-01Slightly increased number of peers to announce to.irungentoo
Some test fixes.
2015-11-03Astyle.irungentoo
2015-10-23Changed gramatically incorrect comment in messenger_testSoumitra
2015-10-23Added ommited words in commentSoumitra
2015-10-11Test should not assert when hangup failsEniz Vukovic
2015-10-10New Adaptive BR algorithm, cleanups and fixesEniz Vukovic
2015-08-09Updated with upstreammannol
2015-08-07Removed a useless define.irungentoo
2015-07-29client_id -> public_keyirungentoo
2015-07-10Fixed CALL_STATE namingmannol
2015-07-06Test oob responding too.irungentoo
2015-07-05Added a TCP test for oob packets.irungentoo
2015-07-04Test fix.irungentoo
2015-07-03Fixed Tox reporting itself as being connected with TCP when using UDP only ↵irungentoo
on LAN.
2015-07-02Added a couple of checks to test.irungentoo
2015-07-01Basic tcp connections test done.irungentoo
2015-06-29TCP connections test start.irungentoo
2015-06-30Implement handling capability change on rtp levelmannol
2015-06-28Removed useless parameter from new_TCP_server()irungentoo
2015-06-27Renamed TOXAV_CALL_STATE to TOXAV_FRIEND_CALL_STATEmannol
2015-06-27Added payload turning off by setting bit rate to 0mannol
2015-06-25Merge remote-tracking branch 'upstream/master' into new_apimannol
2015-06-13Fixed sample size in callback and other stuffmannol
2015-06-12Added save/load live test.irungentoo
2015-06-07Test fix.irungentoo
2015-06-06Save DHT nodes in a smarter way.irungentoo
2015-06-05Added test.irungentoo
2015-06-05Rebased on master and removed alpha channel (again)mannol
2015-06-04Added test.irungentoo
2015-06-01Add a test for loading with a secret key.irungentoo
2015-05-27Allow empty keys in toxencryptsave.irungentoo
2015-05-22Move savedata to options struct.irungentoo
Add a way to select the type of savedata (normal savedata, load a secret key, potentially others?) to load.
2015-05-22Updated with mastermannol
2015-05-21Load only secret key from tox save, not public key.irungentoo
Calculate public key from it.
2015-05-19Some fixes.irungentoo
2015-05-14Added tcp test.irungentoo