| Commit message (Collapse) | Author | Age |
|
|
|
|
|
| |
Until shown to be safe. See message from Johann Glaser to the mailing list.
This reverts commit 85e7efc3fa0477f60318d2cd2144503a9ea8feb9.
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
See https://github.com/boxbackup/boxbackup/issues/16 for details. Thanks to
Chris West @FauxFaux for the initial patch!
Use OpenSSL 1.1.0g for Windows superbuild.
Fix Windows build by removing calls to obsolete do_ms.bat
<https://stackoverflow.com/questions/39076244/why-there-is-no-ms-do-ms-bat-after-perl-configure-vc-win64a/39247560#39247560>.
Workaround for incorrect library suffixes searched by FindOpenSSL
<https://gitlab.kitware.com/cmake/cmake/issues/17604>.
Link OpenSSL statically and fix missing dependency on crypt32.lib.
(cherry picked from commit edd3687f067c68b131822e0064cdeff5bf7a3835)
(cherry picked from commit b003e009d1fccadf55a0f59a01c66f7b80f9b3e5)
(cherry picked from commit cc6e20466b857f7e20d816a2c20cb36f112398ab)
(cherry picked from commit 303c6405e3bc1e673dbc691792e0633742c01f4e)
(cherry picked from commit 4e24006f75142a254f1a7db76cf9da1e752d9283)
(cherry picked from commit 448ac48a89538f67f508f8d21931c5e6e90472c0)
(cherry picked from commit 00b3bb0697219ef8c742698dd43d53b538e362b1)
|
|\ |
|
| |
| |
| |
| |
| |
| |
| |
| |
| |
| | |
Master build fails with: lib/common/Timer.cpp:171:10: error: reference cannot
be bound to dereferenced null pointer in well-defined C++ code; pointer may be
assumed to always convert to true [-Werror,-Wundefined-bool-conversion].
Cannot get regtests to pass on this feature branch without fixing this.
Also remove unused code from Timers.
|
|/
|
|
|
|
|
|
|
|
|
| |
Enable the relevant compiler warning as an error, if supported
(-Werror=undefined-bool-conversion).
http://www.gotw.ca/conv/002.htm
http://stackoverflow.com/questions/2165078/a-reference-can-not-be-null-or-it-can-be-null
(cherry picked from commit f2911acac0c8375a08ecc0a55f853a5a59c4d511)
(cherry picked from commit 5a50b98401302a5ba89366e4c0f8cccdd88d8722)
|
|
|
|
|
|
|
| |
Should hopefully reduce random failures of timing-dependent tests which
rely on subsecond precision for accuracy.
(cherry picked from commit c845b2e39fffeb560983a301d810616a6495469d)
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
Ideally timers would be perfectly accurate and we could sleep for 1.0 seconds,
but on OSX in particular they could fire 50-100 ms late (I've seen 4 ms in
practice) and we don't want the tests to fail because of this, because we don't
really need that kind of precision in practice. So we reduce the timer
intervals by 100ms to be safe.
Increase logging level and add timestamps in testcommon. Should help to debug
frequent test failures such as Condition [t2.HasExpired()] on OSX hosts on
Travis.
Add a SettingsGuard to the Console logger for its specific settings, such as
showing times and microseconds.
(cherry picked from commit a5e6cff1d435329b0121417ed9509e315ce0edd5)
(cherry picked from commit 8d02eebce553ed822e0fcd60d6e319384e15ba4b)
|
| |
|
|
|
|
|
|
| |
Also increase test verbosity to help debug the test if it fails again.
(cherry picked from commit 00c2127e9832591c248fa6eea05dfaf785b8380d)
|
| |
|
|
|
|
| |
Hopefully this will fix intermittent test failures on AppVeyor.
|
|
|
|
|
|
| |
Deleting random files tends to cause random test failures. The results are not
predictable and depend on the order in which files are uploaded and directories
created.
|
|
|
|
|
| |
Detect when housekeeping has run and account is unlocked, and stop the loop
early, so that we don't have to wait for 32 iterations of the loop.
|
| |
|
|
|
|
|
| |
Fixes test failures on IPv6 enabled hosts where localhost can resolve to an
IPv6 address, but the server is only bound to the IPv4 localhost address.
|
|
|
|
|
|
| |
Define WIN32 properly when building with CMake, and in this case, use native
commands such as attrib.exe instead of Cygwin chmod, so that users don't have
to install Cygwin or msys-git.
|
| |
|
| |
|
| |
|
|
|
|
|
| |
On Windows there are no symlinks, so there should be 3 fewer files in the directory,
and thus 6 fewer keepalives sent.
|
|
|
|
|
| |
Should fix some problems with running the perl scripts, causing test failures
on Windows.
|
|
|
|
|
|
|
|
| |
Previously, files were uploaded using bbackupd, which did it in the order that
it read the directories, which was OS-dependent. So destroying certain fixed
RaidFiles would have an unpredictable effect on the store. Now, we write a manifest
when creating the test files, and upload them in exactly that order, so that the
ID of each file will always be the same.
|
| |
|
|
|
|
|
|
| |
pure C++.
Allows it to work with Visual Studio and no Cygwin/MSYS shell.
|
| |
|
| |
|
| |
|
|
|
|
|
| |
Avoid using the rm command, and use the correct name for the test executables
compiled by our cmake alternate build system.
|
|
|
|
|
| |
Perl on Windows tends to use IPv6 for localhost if possible, but the server binds
to IPv4, breaking the test.
|
|
|
|
|
| |
StopServer() does a hard terminate on Windows, which can leave temporary files
in place, causing problems later in the test.
|
|
|
|
|
| |
Con is a special filename on Windows and you just can't create a file with
that name.
|
|
|
|
|
| |
Otherwise when the counts differ later, we won't know whether we did the setup
properly in the first place or not.
|
|
|
|
|
| |
I think something is on the PATH in Appveyor that makes rmdir /s/q fail,
especially when run through Perl.
|
|
|
|
| |
Break dependendency of test/bbackupd on individual files from other modules.
|
|
|
|
| |
Fixes test/backupstorefix.
|
|
|
|
| |
wrong
|
| |
|
| |
|
| |
|
| |
|
| |
|
| |
|
|\
| |
| |
| | |
Merge branch 'master' of https://github.com/agrandville/boxbackup into appveyor
|
| |\ |
|
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | | |
This test has always been fragile, and usually fails on Travis for reasons
unknown, so replace the log parsing and intercepts with simple mocking code.
This doesn't cover 100% of what the old test did, including diff timer aborts
and the number of blocks used by the uploaded files, but it should be
completely robust.
|
| | |
| | |
| | |
| | |
| | | |
"context" might easily be used in a test function, and doesn't follow our
naming convention anyway, so renamed to sTlsContext.
|
| |/
| |
| |
| |
| |
| |
| |
| |
| | |
See discussion of incompatible struct packing on ARM processors:
http://lists.boxbackup.org/pipermail/boxbackup/2010-November/005818.html
http://lists.boxbackup.org/pipermail/boxbackup/2011-February/005978.html
Thanks to Leif Linderstam for identifying the problem and proposing a
solution. This is just a test for the problem, not a fix in itself.
|
|/ |
|
|
|
|
| |
Switch httpserver daemon start/stop to use standard functions.
|
| |
|