summaryrefslogtreecommitdiff
path: root/test/backupstorefix
Commit message (Collapse)AuthorAge
* New upstream version 0.13~~git20200326.g8e8b63cReinhard Tartler2020-05-10
|
* New upstream version 0.13~~git20190527.g039c4a1Reinhard Tartler2019-05-28
|
* Lock account before modifying in backupstorefix.Chris Wilson2016-09-19
| | | | Hopefully this will fix intermittent test failures on AppVeyor.
* Remove deletion of random files in testbackupstorefix.Chris Wilson2016-09-16
| | | | | | 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.
* Fix test/backupstorefix random failures caused by file upload order.Chris Wilson2015-12-26
| | | | | | | | 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.
* Don't start and stop bbstored on Windows.Chris Wilson2015-12-22
| | | | | StopServer() does a hard terminate on Windows, which can leave temporary files in place, causing problems later in the test.
* Change a generated filename to avoid creating files called "con".Chris Wilson2015-12-22
| | | | | Con is a special filename on Windows and you just can't create a file with that name.
* Check file counts before messing with the store in test/backupstorefix.Chris Wilson2015-12-22
| | | | | Otherwise when the counts differ later, we won't know whether we did the setup properly in the first place or not.
* Use rd instead of rmdir command, to try to work properly in appveyor.Chris Wilson2015-12-20
| | | | | I think something is on the PATH in Appveyor that makes rmdir /s/q fail, especially when run through Perl.
* Replace mv command with rename(), and replace rm -r with rmdir /s/q on Windows.Chris Wilson2015-12-19
| | | | Fixes test/backupstorefix.
* 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.
* Fix another test failure on Windows caused by holding files open.Chris Wilson2015-05-16
|
* 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 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.
* 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 test failures in testbackupstorefix on FreeBSD 10.Chris Wilson2014-12-03
| | | | | | | It seems that sending a NULL pointer to an ostringstream on FreeBSD gives different results depending on the type of the pointer. It could write 0 or 0x0, and if they don't match, tests will fail.
* Repair the refcount database while checking accounts for errors.Chris Wilson2014-10-31
| | | | | | | Normally this will be done by housekeeping anyway, so it's not that useful, but it's good to check for it in tests, especially when testing BackupStoreCheck's ability to repair bad things that happened to the store when they involve references.
* Whitespace, comment and readability fixesChris Wilson2014-10-31
|
* Refactor StartClient and StopClient out of testbbackupd.Chris Wilson2014-10-31
| | | | Use them in testbackupstorefix to reduce code duplication.
* Fix tests broken by bbackupquery list recursive option change.Chris Wilson2014-08-17
|
* The new backupstore check detects 4 errors instead of 3, adjust test to match.Chris Wilson2014-02-11
|
* Re-enable the disabled test_dir_fixingChris Wilson2014-02-11
|
* Remove unnecessary importChris Wilson2014-02-11
|
* Add a BackupProtocolLocal2 convenience class.Chris Wilson2014-02-07
| | | | | Adds a nicer constructor and more helpful cleanup on QueryFinished() to the auto-generated BackupProtocolLocal.
* Repair damaged Box RAID objects and non-transformed .rfw files.Chris Wilson2013-09-20
|
* Repeatedly "fix" directories until all errors are cleared.Chris Wilson2013-09-19
| | | | | | | Fixes some cases where a directory might refer to an object that doesn't exist, which is removed from the directory, but an object that depends on it (a patch) isn't removed, and requires a subsequent recheck.
* Re-enable test_dir_fixing.Chris Wilson2013-08-22
|
* Fix a bug where bbstoreaccounts check could hang or crash.Chris Wilson2013-08-22
| | | | | | | It's not safe to use an iterator after the underlying collection has been modified. We need to restart iterating over the directory in that case. Otherwise we could loop forever looking for an end() that we've already passed, or start accessing unallocated memory.
* Refactor testbackupstorefix.Chris Wilson2013-08-22
| | | | | | Preparation work for better testing of fixing directories with entries that no longer exist on disk. Related to debugging the problems reported by Markus Grunwald.
* Fix additional space before [FILENAME NOT ENCRYPTED] causing test failures.Chris Wilson2012-11-08
|
* Test that invalid directory entries (pointers to nonexistent objects) are ↵Chris Wilson2011-11-01
| | | | removed properly.
* Shorten long lineChris Wilson2008-09-06
|
* Add bbackupquery -W<level> option to set explicit warning level, Chris Wilson2008-05-28
| | | | | | | | | | | | | | | | | | | Obsolete old (inconsistent) meaning of -q in bbackupquery. Replace -q with -Wwarning or -Werror in tests to reduce noise and fix tests. Test that reading a nonexistent directory on the server doesn't crash server or client. Test that bbackupd does continue backup run and delete files when storage limit is exceeded. Use logging guards to hide expected warnings in testbbackupd. Remove apparently pointless listing files on server at the end of testbbackupd.
* Delete bbstored PID file after killing the daemon on Windows, as the Chris Wilson2008-03-01
| | | | | daemon can't clean up after itself.
* Another compile fix for [1931]Chris Wilson2007-11-09
|
* Handle bbackupd_args without leading space.Chris Wilson2007-11-07
|
* Wait for long enough after creating test files that they will actuallyChris Wilson2007-11-04
| | | | | | | be seen as old enough to upload by bbackupd. Fix comments.
* Explicitly wait for sync to finish instead of assuming that 14 secondsChris Wilson2007-11-04
| | | | | is enough time.
* Close RaidFile before committing, so that commit can work on win32.Chris Wilson2007-03-25
| | | | | | | Typo fix. (refs #3)
* Fix spurious/suprious typos.Chris Wilson2007-03-25
| | | | | | | | | | | Use #defined paths for executables to remove win32/unix differences. Don't check for bbstored memory leaks on win32. Wrap long lines for readability. (refs #3)
* Moved SendCommands(), HUPServer(), KillServer() to lib/server/ServerCommands.h.Chris Wilson2007-03-10
| | | | | | | | | | | | | | | | | All of these use lib/server/WinNamedPipeStream on Win32, so they don't belong in lib/common. Made LaunchServer() work on Win32. Added constants for paths to executables, for use in tests, removing the need for #ifdefs and clumsy DIRECTORY_SEPARATORs in paths. Added terminate_bbackupd() and wait_for_operation() functions. Update unit tests to #include "ServerControl.h" if they need it. (refs #3)
* Fix memory leak false alarms caused by modifying static objects (refs #3)Chris Wilson2006-11-13
|
* (refs #3)Chris Wilson2006-09-02
| | | | | Remove newlines from output to avoid failure to recognise it on Win32
* Revert to trunkChris Wilson2006-09-02
|
* * mergeChris Wilson2006-07-27
| | | | | | | - This is my current patch queue. I think that all of these are safe to apply. This is just under half of the pending changes in chris/general (the easy half).
* This is part 2 of a patch from James O'Gorman.Martin Ebourne2006-03-04
| | | | | This just renames all of the files that configure now substitutes - no changes to any of the files.
* This is part 1 of a patch from James O'Gorman.Martin Ebourne2006-03-04
| | | | | configure now detects perl executable location and updates all scripts to use the correct path; also adds PERL_EXECUTABLE define to BoxConfig.h. makebuildenv.pl adds PERL define to all makefiles.
* Merged martin/autoconf at r35 to trunkMartin Ebourne2005-12-07
|
* Box Backup 0.09 with a few tweeksBen Summers2005-10-14