Commit message (Collapse) | Author | Age | |
---|---|---|---|
* | Use the new test utilities to remove some duplicate code. | Chris Wilson | 2014-02-27 |
| | | | | Fix previous changes by waiting for forked bbstored process during termination. | ||
* | Move test utilities into a separate file, to share with testbbackupd. | Chris Wilson | 2014-02-27 |
| | |||
* | Rename tests. Split up and refactor. | Chris Wilson | 2014-02-27 |
| | | | | | | Use SETUP macro and tearDown function in tests. Make tests return bool instead of int, and check it. | ||
* | Revert part of patch that caused compile errors. | Chris Wilson | 2014-02-13 |
| | | | | This reverts commit 59c3fdf8be1def3f237a4b51eb27773b4f42bbcd. | ||
* | Change some TEST_THAT assertions to TEST_EQUAL. | Chris Wilson | 2014-02-13 |
| | | | | | | Being able to see the actual and expected values helps with debugging. More cleanup of comments. | ||
* | White space and comment fixes. | Chris Wilson | 2014-02-13 |
| | |||
* | Compile fix. Remove redefinition of ExpectedRefCounts. | Chris Wilson | 2014-02-13 |
| | |||
* | Compile fix. | Chris Wilson | 2014-02-13 |
| | | | | Move ExpectedRefCounts definition to where it's needed. | ||
* | Add a convenience constructor to read a BackupStoreDirectory from a stream. | Chris Wilson | 2014-02-13 |
| | | | | Saves ~2 lines each time it's used. And we use it a lot in testbackupstore. | ||
* | Compile fix. | Chris Wilson | 2014-02-13 |
| | |||
* | Add some utility methods. | Chris Wilson | 2014-02-13 |
| | | | | Backported from new testbackupstore, to reduce diff. | ||
* | Overwrite existing files left by previous tests. | Chris Wilson | 2014-02-13 |
| | | | | | | Will help to ensure that individual test cases run properly, even if a previous test didn't clear up after itself. Splitting up testbackupstore into idempotent testcases is coming soon. | ||
* | The new backupstore check detects 4 errors instead of 3, adjust test to match. | Chris Wilson | 2014-02-11 |
| | |||
* | Re-enable the disabled test_dir_fixing | Chris Wilson | 2014-02-11 |
| | |||
* | Remove unnecessary import | Chris Wilson | 2014-02-11 |
| | |||
* | Fix compile error in MemBlockStream. | Chris Wilson | 2014-02-11 |
| | | | | | | Fix test/common memory leak checks now that MemBlockStream allocates another block. | ||
* | Compile fixes. | Chris Wilson | 2014-02-11 |
| | | | | | Backport a few new functions to simplify tests. | ||
* | Fix testbackupstore, apart from wrong accounting for old files. | Chris Wilson | 2014-02-10 |
| | |||
* | Rename BackupStoreInfo variable NumFiles to NumCurrentFiles. | Chris Wilson | 2014-02-09 |
| | | | | | Will hopefully prevent future confusion about the meaning of this info variable. | ||
* | Fix some backupstore test failures caused by refcount db changes. | Chris Wilson | 2014-02-08 |
| | |||
* | Allow test/bbackupd to test bbackupquery completions. | Chris Wilson | 2014-02-07 |
| | |||
* | Fix bbackupquery accepting a command starting with options. | Chris Wilson | 2014-02-07 |
| | | | | | | | This should never have been a valid command, but was accepted before, and silently ignored because it was treated as an empty command. This obscured bad quoting of bbackupquery command-line arguments, allowing commands to appear to work, but not do what you expected. | ||
* | Add a BackupProtocolLocal2 convenience class. | Chris Wilson | 2014-02-07 |
| | | | | | Adds a nicer constructor and more helpful cleanup on QueryFinished() to the auto-generated BackupProtocolLocal. | ||
* | Add a test that Used block counts match expected values. | Chris Wilson | 2013-10-22 |
| | |||
* | Fix test fallout from SendStream ptr to auto_ptr change. | Chris Wilson | 2013-09-30 |
| | | | | | You can only pass a std::auto_ptr<IOStream> to SendStream now. Nothing else will do for Clang. But you can cast a std::auto_ptr<subclass>. | ||
* | Repair damaged Box RAID objects and non-transformed .rfw files. | Chris Wilson | 2013-09-20 |
| | |||
* | Repeatedly "fix" directories until all errors are cleared. | Chris Wilson | 2013-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 Wilson | 2013-08-22 |
| | |||
* | Fix a bug where bbstoreaccounts check could hang or crash. | Chris Wilson | 2013-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 Wilson | 2013-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 compile error due to missing mode on open(O_CREAT). | Chris Wilson | 2013-02-13 |
| | |||
* | Link testbbackupd with bbackupquery object files, so that we can use | Chris Wilson | 2012-11-27 |
| | | | | | BackupQueries directly for debugging compare failures. | ||
* | Fix testbackupstore: don't keep using a reference to a protocol object | Chris Wilson | 2012-11-18 |
| | | | | | that's been disposed (Windows only). | ||
* | Fix random failures of bbackupd test by locking the account before making | Chris Wilson | 2012-11-18 |
| | | | | | changes to it. | ||
* | Use more efficient direct reset of Timers instead of assignment. | Chris Wilson | 2012-11-17 |
| | |||
* | Link to HousekeepStoreAccount.o in the right directory since the big refactor. | Chris Wilson | 2012-11-08 |
| | |||
* | Ensure that newly created accounts are enabled by default. | Chris Wilson | 2012-11-08 |
| | |||
* | Fix additional space before [FILENAME NOT ENCRYPTED] causing test failures. | Chris Wilson | 2012-11-08 |
| | |||
* | Test that BackupStoreInfo::CreateForRegeneration saves AccountEnabled | Chris Wilson | 2012-11-08 |
| | | | | | flag and ExtraData. | ||
* | Timer arguments are in milliseconds, not seconds. | Chris Wilson | 2012-11-06 |
| | |||
* | Test that the BackupStoreInfo AccountEnabled flag works properly, and is | Chris Wilson | 2012-10-22 |
| | | | | | | | | | loaded and saved properly, and the "bbstoreaccounts enabled" command works. Test that the conversion of historic BackupStoreInfo v1 format files works properly. | ||
* | Add support for SyncAllowScript to set maximum upload bandwidth dynamically. | Chris Wilson | 2012-03-10 |
| | |||
* | Force all options to be present to BackupClientRestore(), to fix | Chris Wilson | 2012-02-02 |
| | | | | | | | misinterpretation of char * arguments as bools. Use macros to simplify test code. Test that locations not present when bbackupd started will be detected and backed up if subsequently created. | ||
* | Disable automatic backups in the temploc configuration, and enable the | Chris Wilson | 2012-02-01 |
| | | | | | | NotifyScript, so that we can tell what kind of errors bbackupd reported and reproduce them reliably. | ||
* | Test that invalid directory entries (pointers to nonexistent objects) are ↵ | Chris Wilson | 2011-11-01 |
| | | | | removed properly. | ||
* | Combine client and server protocols to make way for an offline/local protocol. | Chris Wilson | 2011-08-27 |
| | | | | | Rename ProtocolObject to Message. | ||
* | Fix test/bbackupd build for new object locations. | Chris Wilson | 2011-06-22 |
| | |||
* | Major refactoring to make lib/backupclient depend on lib/backupstore rather | Chris Wilson | 2011-04-26 |
| | | | | | | | than the other way around. This is needed to allow clients to have all the code that they'd need to implement local backups (using the Local protocol) in subsequent commits. | ||
* | Reformat for readability. | Chris Wilson | 2011-04-23 |
| | |||
* | Log the expected and actual values when comparison failed. | Chris Wilson | 2011-04-23 |
| |