summaryrefslogtreecommitdiff
path: root/auto_tests/tox_test.c
AgeCommit message (Collapse)Author
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.
2015-12-01Slightly increased number of peers to announce to.irungentoo
Some test fixes.
2015-07-03Fixed Tox reporting itself as being connected with TCP when using UDP only ↵irungentoo
on LAN.
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-04Added test.irungentoo
2015-06-01Add a test for loading with a secret key.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-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
2015-05-11Fixes and changes to tox_bootstrap and tox_add_tcp_relay.irungentoo
Functionality of both no longer overlaps. If address has more than 1 ip, call the internal function on all of them.
2015-05-08Added basic TCP server hosting to tox.h api.irungentoo
TODO: tell friends we are hosting a relay and prioritize using relays hosted by friends over bootstrap ones.
2015-03-21Renamed tox_file_send_control to tox_file_control.irungentoo
Renamed tox_file_send_seek to tox_file_seek.
2015-03-21Transfers with filelength == 0 now behave exactly like transfers of everyirungentoo
other size (except streaming of course).
2015-03-20Allow sending of file transfer requests with length 0 but don't allocateirungentoo
any file number for them in core. These can be used to tell friends we don't have an avatar set or to unset a set avatar.
2015-03-20For file transfers UINT64_MAX is now used as the size for streamingirungentoo
transfers instead of 0. For avatar transfers file size 0 now means that the client has no avatar set. Added a test for streaming transfers.
2015-03-19callback_file_request_chunk -> callback_file_chunk_requestDubslow
A couple of minor reasons, combined warrant a PR imo: a) fileChunkRequested is a better signal name than fileRequestChunkReceived, and I don't want to break consistency by reordering words for just this signal b) "request chunk" is parsed by English speakers as a verb-object combination, implying sending the request, not receiving, whereas "chunk requested" is parsed (more correctly) as an adjective-noun combo (in particular, request is a noun not a verb), and thus reads far more like "hey heads up we just got a request" For instance some tests/testing code had some callbacks to *receive* chunk requests, and they were called "tox_file_request_chunk"... to receive a chunk, not request it. Now they're called "tox_file_chunk_request". So yeah...
2015-03-18Renamed TOX_MESSAGE_TYPE_MESSAGE to TOX_MESSAGE_TYPE_NORMAL.irungentoo
2015-03-18Merge branch 'one_more_rename' of https://github.com/dubslow/toxcore into ↵irungentoo
new_api
2015-03-18Merged normal message function and send action function into oneirungentoo
messaging function. This removes code duplication and allows us to easily add new message types to the api without having to add new functions.
2015-03-18Move get_connection_status to self pseudonamespace, to contrast ↵Dubslow
friend_get_connection_status
2015-03-18Api changes.irungentoo
receive to recv in file receive functions. Added TOX_MAX_FILENAME_LENGTH define.
2015-03-17Save function renamed to tox_get_savedata()irungentoo
2015-03-17Added tox_file_send_seek() function to api.irungentoo
This function can be used to seek an incoming file tranfer right before accepting it. It is meant to be used to resume incomplete file tranfers by clients.
2015-03-17Added and implemented file_id parameter to file tranfers.irungentoo
file_id is a 32byte identifier that can be used by users to identify file tranfers across core/client restarts in order to resume broken file tranfers. In avatar tranfers it corresponds to the hash of the avatar. Added tox_file_get_file_id() function to api to obtain the file_id of an ongoing file transfer. If not set, core will generate a random one.
2015-03-16New API fixups.iphydf
2015-03-13This belongs in the previous commit.irungentoo
2015-03-13Merge branch 'newer_api' of https://github.com/dubslow/toxcore into new_apiirungentoo
2015-03-13revert to TOX_FILE_KINDDubslow
2015-03-12Convert core code depending on the apiDubslow
2015-03-12Check more ports in tox_test.cirungentoo
2015-03-12Added position parameter to tox_file_send_chunk().irungentoo
This is done so that the function now has the same parameters as the request chunk callback.
2015-03-12Added simple status message test to tox_test.cirungentoo
2015-03-11tox_callback_connection_status() implemented.irungentoo
Attempted fix of connection checking to make it more stable.
2015-03-11Implemented the 3 low level network information functions.irungentoo
Added tox_get_udp_port() to tests.
2015-03-10Implementation of new api file transfers.irungentoo
Everything should work except resuming.
2015-02-27Test fixes.irungentoo
2015-02-26More tests ported to new api.irungentoo
2015-02-25Ported some tests to the new api.irungentoo
2014-12-21Fixed bug in tox_load where names of size TOX_MAX_NAME_LENGTH didn'tirungentoo
load.
2014-12-20auto test group titles.irungentoo
2014-12-14Sendback data size is always 8 bytes.irungentoo
2014-12-13More group auto testing.irungentoo
2014-12-11Test if everything goes well when a peer leaves the group chat.irungentoo
2014-12-10Added a tox_add_friend auto test.irungentoo
2014-12-09Fixed tox_test.cirungentoo