toxcore/auto_tests
hugbubby 47a527509d
lan_discovery_test and version_test cleanup
Removed a pointless declaration of a function in lan_discovery_test
and cleaned up the one error message there. Did an entire restructuring
of the version_test using macros that resulted in fewer lines of code but more
thorough testing.

Formatting of version_test.c

back to old way, save comments and one change

Missing space
My greatest enemy

Add `#include <cstdio>` for `std::printf`.

Make tox.c unambiguously parseable.

Rules:
1. Constants are uppercase names: THE_CONSTANT.
2. SUE[1] types start with an uppercase letter and have at least one
   lowercase letter in it: The_Type, THE_Type.
3. Function types end in "_cb": tox_friend_connection_cb.
4. Variable and function names are all lowercase: the_function.

This makes it easier for humans reading the code to determine what an
identifier means. I'm not convinced by the enum type name change, but I
don't know a better rule. Currently, a lot of enum types are spelled like
constants, which is confusing.

[1] struct/union/enum

Use run_auto_test.h test fixture for some auto-tests.

Most of the auto-tests should use this fixture, but I've only done a few
to set an example.
2018-07-06 10:25:47 +00:00
..
bootstrap_test.c Add assertions to bootstrap tests for correct connection type. 2018-06-23 14:05:56 +00:00
BUILD.bazel Add a test to try and overflow the send queue in net_crypto. 2018-06-29 23:24:20 +00:00
check_compat.h Add test for creating multiple conferences in one tox. 2018-06-19 21:00:26 +00:00
conference_double_invite_test.c Use run_auto_test.h test fixture for some auto-tests. 2018-07-05 23:41:27 +00:00
conference_test.c Avoid the use of rand() in tests. 2018-04-03 17:43:22 +00:00
conference_two_test.c Add test for creating multiple conferences in one tox. 2018-06-19 21:00:26 +00:00
crypto_test.c Avoid the use of rand() in tests. 2018-04-03 17:43:22 +00:00
dht_test.c Make tox.c unambiguously parseable. 2018-07-05 23:09:28 +00:00
encryptsave_test.c Fix a bunch of compiler warnings and remove suppressions. 2018-02-24 22:20:22 +00:00
file_saving_test.c Remove the use of the 'hh' format specifier. 2018-03-16 01:57:26 +00:00
file_transfer_test.c Make file transfers 50% faster. 2018-03-02 13:56:49 +00:00
friend_connection_test.c Use run_auto_test.h test fixture for some auto-tests. 2018-07-05 23:41:27 +00:00
friend_request_test.c Fix a bunch of compiler warnings and remove suppressions. 2018-02-24 22:20:22 +00:00
helpers.h Use clang-format for C++ code. 2018-06-24 20:17:53 +00:00
invalid_proxy_test.c Disable UDP when proxy is enabled. 2018-06-23 17:36:37 +00:00
invalid_tcp_proxy_test.c Add tests for what happens when passing an invalid proxy host. 2018-06-23 12:34:33 +00:00
lan_discovery_test.c lan_discovery_test and version_test cleanup 2018-07-06 10:25:47 +00:00
lossless_packet_test.c Fix a bunch of compiler warnings and remove suppressions. 2018-02-24 22:20:22 +00:00
lossy_packet_test.c Fix a bunch of compiler warnings and remove suppressions. 2018-02-24 22:20:22 +00:00
Makefile.inc Remove tox_test from autotools build. 2018-02-18 17:17:28 +00:00
messenger_test.c Make tox.c unambiguously parseable. 2018-07-05 23:09:28 +00:00
monolith_test.cc Remove broken conference tests. 2018-06-29 18:25:44 +00:00
network_test.c Add new Circle CI configuration. 2018-06-24 19:51:34 +00:00
onion_test.c Make tox.c unambiguously parseable. 2018-07-05 23:09:28 +00:00
overflow_recvq_test.c Use run_auto_test.h test fixture for some auto-tests. 2018-07-05 23:41:27 +00:00
overflow_sendq_test.c Use run_auto_test.h test fixture for some auto-tests. 2018-07-05 23:41:27 +00:00
run_auto_test.h Use run_auto_test.h test fixture for some auto-tests. 2018-07-05 23:41:27 +00:00
save_friend_test.c Avoid the use of rand() in tests. 2018-04-03 17:43:22 +00:00
save_load_test.c Fix a bunch of compiler warnings and remove suppressions. 2018-02-24 22:20:22 +00:00
send_message_test.c Use run_auto_test.h test fixture for some auto-tests. 2018-07-05 23:41:27 +00:00
set_name_test.c Fix a bunch of compiler warnings and remove suppressions. 2018-02-24 22:20:22 +00:00
set_status_message_test.c Fix a bunch of compiler warnings and remove suppressions. 2018-02-24 22:20:22 +00:00
simple_conference_test.c Add a test for double conference invite. 2018-06-24 01:09:46 +00:00
skeleton_test.c Fix a bunch of compiler warnings and remove suppressions. 2018-02-24 22:20:22 +00:00
tcp_relay_test.c Add assertions to bootstrap tests for correct connection type. 2018-06-23 14:05:56 +00:00
TCP_test.c Another TCP_test.c upgrade 2018-06-28 14:05:03 +00:00
tox_many_tcp_test.c Avoid the use of rand() in tests. 2018-04-03 17:43:22 +00:00
tox_many_test.c Avoid the use of rand() in tests. 2018-04-03 17:43:22 +00:00
tox_one_test.c Avoid the use of rand() in tests. 2018-04-03 17:43:22 +00:00
tox_strncasecmp_test.c Fix a bunch of compiler warnings and remove suppressions. 2018-02-24 22:20:22 +00:00
toxav_basic_test.c Fix a bunch of compiler warnings and remove suppressions. 2018-02-24 22:20:22 +00:00
toxav_many_test.c Remove the use of the 'hh' format specifier. 2018-03-16 01:57:26 +00:00
typing_test.c Fix a bunch of compiler warnings and remove suppressions. 2018-02-24 22:20:22 +00:00
version_test.c lan_discovery_test and version_test cleanup 2018-07-06 10:25:47 +00:00