summaryrefslogtreecommitdiff
path: root/test
Commit message (Collapse)AuthorAge
...
| | * Rename global TLSContext variable to avoid conflicts.Chris Wilson2015-09-20
| | | | | | | | | | | | | | | "context" might easily be used in a test function, and doesn't follow our naming convention anyway, so renamed to sTlsContext.
| * | Add a test for reading and writing BackupStoreDirectory binary data.Chris Wilson2015-09-20
| |/ | | | | | | | | | | | | | | | | 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.
* / Remove unused headers to aid compilation on Windows (MSVC).Chris Wilson2015-12-08
|/
* Disable httpserver keepalive tests until keepalive support is implemented.Chris Wilson2015-08-29
| | | | Switch httpserver daemon start/stop to use standard functions.
* Whitespace, import order and comment fixesChris Wilson2015-08-29
|
* Improve exception handling on backup store side.Chris Wilson2015-08-15
| | | | | | | | | | | | | | | | Add a new exception code to represent an object being completely missing (not found on the store at all), separate from not being found in a particular directory. Improve mapping of server-side exceptions to protocol error messages returned to the client. Add handling for missing exceptions, such as BackupStoreException::PatchChainInfoBadInDirectory, and the new BackupStoreException::ObjectDoesNotExist. Fix mapping for BackupStoreException::CouldNotFindEntryInDirectory to make it distinguistable from BackupStoreException::ObjectDoesNotExist.
* Add a BackupStoreFile encoding streaming verifierChris Wilson2015-08-07
|
* Fix random failures of testbbackup test_backup_pauses_when_store_is_full.Chris Wilson2015-08-07
| | | | | Stop the client while waiting for housekeeping, to ensure that it doesn't prevent housekeeping from running and cause the test to fail.
* Really fix check for s3simulator memleaks.Chris Wilson2015-08-06
|
* Replace TEST_CHECK_THROWS() with TEST_COMMAND_RETURNS_ERROR().Chris Wilson2015-08-06
| | | | | Also checks the returned error code, and gives more useful diagnostics on failure.
* Fix memleaks file in test after changed in s3simulator daemon.Chris Wilson2015-08-06
|
* Stop daemon on test setup, in case the previous test didn't.Chris Wilson2015-08-06
|
* Test that root directory was created properlyChris Wilson2015-07-31
|
* Add missing bbackupd.keys file and a marker to create subdirs.Chris Wilson2015-07-31
|
* Add missing files for S3Store test.Chris Wilson2015-07-31
|
* Move load_config_file to Test.cpp to allow reuse.Chris Wilson2015-07-25
|
* Fix test_backup_pauses_when_store_is_full by waiting for housekeeping.Chris Wilson2015-07-18
| | | | | | It's not safe to assume that we can get into the store before housekeeping runs, so don't try. Just wait for housekeeping to run and check that all the files are deleted afterwards.
* Major test refactor to support test suites.Chris Wilson2015-07-01
| | | | | | | Refactor all common code from testbbackupd and testbackupstore to allow other test suites to contain multiple tests and execute selected tests more easily. Report all test results within a suite in a standard, easy to read summary.
* Compile fix for test/bbackupd after ClientException moveChris Wilson2015-06-28
|
* Ensure that errored tests are reported as failures, not successesChris Wilson2015-06-10
|
* Fix another test failure on Windows caused by holding files open.Chris Wilson2015-05-16
|
* Fix test failures on Windows caused by keeping files open too long.Chris Wilson2015-05-16
| | | | | | Once again, the Windows issue of being unable to delete or overwrite an open file causes issues. In this case it's only test failures. We need to be diligent about closing open file handles and protocol sessions in tests.
* Fix missing account lock while checking for errors.Chris Wilson2015-05-06
| | | | | | | | | | | The old assertion, that the write lock file exists before starting checking, was erroneously passing before when no lock was held, because the lockfile was never deleted. Now that we delete it when unlocking the account, this started causing test failures. Changed the way that accounts are checked for errors to use a function that acquires a write lock first, and modified test to disconnect open clients before starting checking the account, to fix it.
* Fix system exit codes from tests, so we can use them in the shell.Chris Wilson2015-05-04
| | | | | I needed reliable exit codes to run the tests in a loop to catch an intermittent failure.
* Fix file locking on Windows.Chris Wilson2015-04-13
| | | | | NamedLock simply didn't work before. This may cause test failures, but the tests are already failing on Windows, and must be fixed.
* Fix warning caused by saving a const string in a non-const pointerChris Wilson2015-04-06
|
* Fix test failures caused by failure to commit the temporary refcount DB.Chris Wilson2015-04-06
| | | | Files need to be closed before renaming over them on Windows.
* Fix test_ssl_keepalives to not depend on directory listing order.Chris Wilson2015-02-27
|
* Fix testbackupstorefix in release mode.Chris Wilson2015-02-27
| | | | | | It was checking for raidfiles files that have different filenames in release and debug builds, and that aren't even deleted by the test in release builds.
* Reduce verbosity of testcommon by hiding some log messages.Chris Wilson2015-02-25
|
* Reduce test output noise by hiding some error messages in tests.Chris Wilson2015-02-25
| | | | | Should make the Travis logs shorter and more readable.
* Fix test failure caused by logging fd change.Chris Wilson2015-02-23
| | | | | | Logging everything to stdout (so that Windows users can redirect it) causes extra output on stdout that confused the Perl script for this test.
* Fix testhttpserver, broken by renaming test executables.Chris Wilson2015-02-23
|
* Fix misisng timeouts on network operations.Chris Wilson2015-02-23
| | | | | They cause a lot of noise in the Travis build logs.
* Fix test failures caused by renaming the test executable, thanks to Achim ↵Chris Wilson2015-02-15
| | | | for reporting.
* Add test for hardlink handling.Chris Wilson2015-01-04
|
* Fix test failing on OpenBSD because tar -m behaves differently.Chris Wilson2015-01-02
|
* Fix more minor test breaks on WindowsChris Wilson2015-01-02
|
* Fix test to handle console encoding already in UTF-8.Chris Wilson2015-01-02
|
* Fix warning about assigning literal string constants to a char *Chris Wilson2014-12-26
|
* Fix test failures caused by connections left open on Windows.Chris Wilson2014-12-26
|
* Fix compile errors in tests on Windows.Chris Wilson2014-12-26
|
* Add comments about why some tests are skipped on Windows.Chris Wilson2014-12-26
|
* Catch exceptions in individual tests and clean up nicely.Chris Wilson2014-12-26
| | | | | | This stops stale daemons from hanging around if a single test fails because it throws an exception, which otherwise would cause the whole suite to abort immediately without cleaning up after itself.
* Don't try to kill daemons at beginning of each deselected test.Chris Wilson2014-12-26
| | | | | This just results in huge console noise if we can't kill a daemon for some reason. Kill them once, after all tests have run, instead.
* Fix tar commands to work on OpenBSD.Chris Wilson2014-12-21
| | | | | BSD tar seems to not like additional options after the first block.
* Increase timing accuracy of client store marker test.Chris Wilson2014-12-21
| | | | | | Test now passes reliably with any verbosity level on NetBSD, despite the really slow compares.
* Fix test_changing_client_store_marker_pauses_daemon on NetBSD.Chris Wilson2014-12-15
| | | | | | Running a compare takes far too long on NetBSD (3 seconds) and this was messing up the timing of the test.
* Fix timing issue causing test_changing_client_store_marker_pauses_daemon to ↵Chris Wilson2014-12-10
| | | | | | | | fail. We didn't take into account the time taken to perform a compare as part of the test, when deciding how long to wait for bbackupd to recover.
* Add comment to explain why freshly extracted files should be backed up.Chris Wilson2014-12-10
| | | | Hopefully will help anyone trying to debug this test in future.