summaryrefslogtreecommitdiff
AgeCommit message (Collapse)Author
2018-09-02Use `code font` for tool names and flags in INSTALL.md.iphydf
2018-09-01Fix login issue on Travis-CI FreeBSD buildMaxim Biro
2018-08-31Use test clock in run_auto_test tests and dht testzugz (tox)
2018-08-30Use our own logging facility to log toxcore's logsMaxim Biro
2018-08-30Feature bootstrap trace/debug log outputcotox
Don't know why codes with macro dosen't work. As it's only a few expensive, just code it without macro for now. \#if (MIN_LOGGER_LEVEL == LOG_TRACE) || (MIN_LOGGER_LEVEL == LOG_DEBUG) fprintf(stderr, "[%s] %s:%d(%s) %s\n", strlevel, file, line, func, message); \#endif
2018-08-30Simplify configure.ac for faster autotools build.iphydf
* Remove ability to disable logging. * Remove unused `NCURSES_FOUND`. * Remove checks for stdbool and existence of int types. These mostly exist, and if they don't, we'll just fail to compile. * Remove checks for various functions. * Add check for `explicit_bzero` and `memset_s`.
2018-08-30Remove the use of `CLOCK_MONOTONIC_RAW`.iphydf
The raw clock isn't subject to NTP adjustments. It may run less accurately than the regular monotonic clock. I see no reason why raw would be better for tox than the normal one. This avoids one piece of OS-specific ifdef'd code.
2018-08-30Clean up `add_to_list` function a bit.iphydf
Can't trivially get rid of recursion here, since it's a non-linear recursive function.
2018-08-30Include necessary opencv2 header on OSX.iphydf
opencv2 is deprecated and homebrew ships with opencv3 now.
2018-08-30Release 0.2.7Robin Lindén
2018-08-27try ipv6 connections even after udp timeoutzugz (tox)
Also adds a test (auto_reconnect_test) which fails without this change.
2018-08-27Make `ip_is_lan` return bool instead of 0/-1.iphydf
This inverts the truthiness of the return value. Previously, 0 meant `true` and -1 meant `false`. Now, `true` (1) means `true` and `false` (0) means `false`.
2018-08-27Enable FreeBSD Travis-CI buildMaxim Biro
2018-08-27Fix FreeBSD VM on Travis not shutting downMaxim Biro
2018-08-26Use `bool` in place of 0/1 int values.iphydf
2018-08-26Make the tsan build fail instead of swallowing its errors.iphydf
We'll make it non-required, but we want to know about these failures so we are incentivised to fix them.
2018-08-26Add support for setting a custom monotonic time function in mono_timezugz (tox)
2018-08-26Format crypto_core.c.iphydf
Changes: * 100 columns maximum (not strict, can be a bit more sometimes). * No space after cast.
2018-08-26Update copyright to 2018.iphydf
2018-08-26Fix test class name for mono_time_test.iphydf
Was: Util, should be: MonoTime.
2018-08-26Add some tests for `ping_array`.iphydf
No timeout test here yet, because we don't yet have the ability to manipulate time at will, so we would have to actually sleep.
2018-08-26Call `abort` instead of `exit` on test failure.iphydf
This raises a signal, so we can more easily catch it with gdb.
2018-08-25Run save_compatibility_test in the autotools build.iphydf
2018-08-25Fix the `PORT_ALLOC` failure of `save_compatibility_test`.iphydf
`tox_new_log` has a much larger range of ports it can select from.
2018-08-25Change while-loop to for-loop to express for-each-frame.iphydf
* Assignments can't be used as expressions, therefore `while` loops should not be used as a `for-each` construct. Use `for`, instead.
2018-08-25fix leave callback calling in del_groupchatzugz (tox)
2018-08-25Use do-while instead of while in tests.iphydf
This forces all the loop bodies to be executed at least once, which is harmless since it just means one more tox event loop iteration. This reduces the jitter we see in coverage measurements, which is partially caused by loops sometimes being entered and sometimes not (because their condition happens to randomly already be true).
2018-08-25Run all tests (and compilation) in parallel with autotools.iphydf
With distcheck, it's all or nothing, so we build with -j50 and run tests with -j50.
2018-08-25Stop using massive macros in `toxav_basic_test`.iphydf
Turned a huge macro into a function. Macros are a pain to debug.
2018-08-25Fix auto_tests Makefilezugz (tox)
* specify correct source files * add save_compatibility_test (commented out for now) * reformat TESTS to one line per test, and set check_PROGRAMS := TESTS * add run_auto_test.h to EXTRA_DIST * Fix `AUTO_TEST_CFLAGS` -> `AUTOTEST_CFLAGS`.
2018-08-23Force storing the result of crypto_memcmp in the test.iphydf
So we don't accidentally elide the call given that it's a pure function and its result isn't used.
2018-08-23Install the `DHT_bootstrap` binary on `make install`.iphydf
We didn't install it before, only `tox-bootstrapd`.
2018-08-22Add check to make sure tox was created successfullyendoffile78
2018-08-21consistently use 'mono_time' rather than 'monotime'zugz (tox)
2018-08-21Always print output on failure in cmake tests on Travis.iphydf
Not only the second time it fails.
2018-08-21Run project tests like yamllint_test.iphydf
We check that: * The license is GPLv3. * .travis.yml conforms with the toktok style specification. * There exists a README.md file.
2018-08-21Enable color diagnostics on circleci.iphydf
See https://github.com/ninja-build/ninja/issues/814
2018-08-20handle libsodium dependency of misc_tools correctly for autotoolszugz (tox)
2018-08-19Avoid redefining macros from different files.iphydf
2018-08-19Upload coverage to codecov as well as coveralls.iphydf
2018-08-19Make the save_compatibility_test work with bazel.iphydf
2018-08-19make Mono_Time an argument to current_time_monotoniczugz (tox)
2018-08-19Run both asan and tsan on Circle CI.iphydf
2018-08-19Fix const cast in save-generator.iphydf
2018-08-19Add save file generator, save compatibility test, and generate a save fileendoffile78
2018-08-18Enable .travis.yml check and use non-markdown license.iphydf
2018-08-17Set `_POSIX_C_SOURCE` to 200112L. We need it for C99 compat.iphydf
It is invalid to compile an XPG3, XPG4, XPG4v2, or XPG5 application using c99. The same is true for POSIX.1-1990, POSIX.2-1992, POSIX.1b, and POSIX.1c applications. Likewise, it is invalid to compile an XPG6 or a POSIX.1-2001 application with anything other than a c99 or later compiler. Therefore, Solaris libc forces an error in both cases.
2018-08-16Use per-instance `Mono_Time` for Messenger and onion.iphydf
2018-08-16Reduce the number of times `unix_time_update` is called.iphydf
Reduced by, e.g.: * `file_transfer_test`: 33% of the `clock_gettime` calls. * `tox_many_test`: 53% of the `clock_gettime` calls. Other tests will see similar improvements. Real world applications will be closer to 40-50% improvement, since tox_many_test has 100 nodes, while file_transfer_test has 2 nodes.
2018-08-16Release 0.2.6Robin Lindén