Commit Graph
55 Commits
Author SHA1 Message Date
Kenneth Skovhede 6855824285 Rewrote the commandline to support plug-able output 2017-04-04 16:57:30 +02:00
Kenneth Skovhede 7349d73e80 Fixed returning non-zero status codes when verification fails 2017-03-07 23:09:04 +01:00
Kenneth Skovhede 680ee82189 Updated SharpCompress to the latest version 2017-02-27 22:21:01 +01:00
Kenneth Skovhede 5f9539b9ea Fixed creating the temporary folder for the unittest data before using it 2017-01-12 08:41:34 +01:00
Kenneth Skovhede 37ee4d4cf8 Fixed an issue with broken logging in the unittest 2017-01-11 22:41:45 +01:00
Kenneth Skovhede e692be5c92 Reworked the way log messages are handled, to include call-context setup.
This enables modules to report messages to the message-sink, and thus to the commandline through the normal interface.
This simplifies handling multiple logging systems, and supports reporting logging from multiple concurrent controller instances.

This fixes #2225
This fixes #1575
2017-01-09 23:27:56 +01:00
Kenneth Skovhede 9c0b463765 Added minor delays to purge unittest to avoid errors that happen when timestamps are back-to-back 2017-01-06 23:00:30 +01:00
Kenneth Skovhede 1b4cb3b5df Merge branch 'feature/implement_remote_file_recovery' 2017-01-05 22:16:25 +01:00
Kenneth Skovhede 1108d51d7f Implemented a new new list-broken-files and purge-broken-files command for the commandline to assist with handling remote file loss. 2017-01-05 16:46:01 +01:00
Kenneth Skovhede 76aae5de7b Changed the logic for getting the last-modified timestamp from the database.
Now we only look at the timestamp from the previous fileset, instead of for the last time the file was seen.
This should improve lookup times, and thus the running time for backups with many files.

This change means that the following sequence of operations will react differently:

- backup
- delete file
- backup
- undelete file
- backup

Prior to this commit, the undeleted file would be seen with the original timestamp and thus can avoid being scanned for changes.
After this commit, the file will be treated as a new file, even if it has the previous timestamp and will thus be scanned for changes.

An additional switch has been introduced, --check-filetime-only that improves the lookup further by not looking at the metadata or filesize, and thus makes a much lighter call to the database, where fewer tables need to be touched.
2017-01-05 10:03:32 +01:00
Kenneth Skovhede e69cec8dd6 Fixed purge unittest by delaying final backup such that the modified timestamp is not in the future 2017-01-01 20:09:29 +01:00
Kenneth Skovhede 33694ba45e Additional debugging information for Travis debug 2016-12-31 11:11:46 +01:00
Kenneth Skovhede e1a989ca32 Merge branch 'feature/add_purge_command' 2016-12-30 00:39:59 +01:00
Kenneth Skovhede 15de17c86d Fixed error messages in purge unittest 2016-12-30 00:08:14 +01:00
Kenneth Skovhede 52eb8e8478 Disabled MSBuild for much faster builds on MacOS 2016-12-29 23:12:41 +01:00
Kenneth Skovhede 4bf4871427 Added commandline operation to purge select files from filesets.
This fixes #1009.
This paves the way for #1337.
2016-12-29 22:41:13 +01:00
Kenneth Skovhede 24ec8ede9b Updated nunit 2016-11-10 10:32:36 +01:00
Kenneth Skovhede 3939f038ae Added unitttest to catch problems with metadata computation 2016-11-08 10:47:18 +01:00
Kenneth Skovhede 309bf1648d Merge branch 'master' into feature/fix_for_different_blockhash_and_filehash_plus_multiblocks_metadata
# Conflicts:
#	Duplicati/Library/Main/Database/LocalDatabase.cs
#	Duplicati/Library/Main/Database/LocalRecreateDatabase.cs
#	Duplicati/Library/Main/Operation/RecreateDatabaseHandler.cs
#	Duplicati/UnitTest/BorderTests.cs
2016-10-17 13:28:27 +02:00
Kenneth SkovhedeandGitHub f3fa60e49f Upgrade NUnit to use 3.4.1 (#1959)
Updated NUnit to version 3.4.1 and added some extra display helps to Travis
2016-09-29 13:45:55 +02:00
Kenneth Skovhede a0368d5f30 Added support for reporting backend size when --no-backend-verification is supplied.
This fixes #1723
2016-09-23 13:46:42 +02:00
Kenneth Skovhede 8d6d88c740 Fixed options in unittest. 2016-09-23 13:45:51 +02:00
Kenneth Skovhede 0c68daff6c Fixed all whitespace to be 4 spaces instead of tabs 2016-09-15 11:39:27 +02:00
Kenneth Skovhede ec193a7a58 Added unittest categories 2016-06-29 23:00:37 +02:00
Kenneth Skovhede d2e01d11b1 Added unittests that tests for setups with no index files, and partial index files. 2016-05-02 20:33:34 +02:00
Kenneth Skovhede 785c4d325f Reverted changes to solution file so it again forces Windows linefeeds.
This also moved stuff around in some project files.
2016-04-13 00:36:22 +02:00
Kenneth Skovhede 69929e5949 Added option to set the base folder for unittests from an environment variable 2016-04-07 01:51:05 +02:00
Kenneth Skovhede df58a97e15 Improved debug-ability for unittests by not deleting the database, but instead creating a new side-by-side database. 2016-04-06 20:42:52 +02:00
Kenneth Skovhede e2e645a6a0 Added option to set the base folder for unittests from an environment variable 2016-04-06 20:42:12 +02:00
Kenneth Skovhede d5e4194978 Added extra test for testing with metadata disabled 2016-04-05 00:27:14 +02:00
Kenneth Skovhede f063143279 Re-enable mixed block/filehash tests as it now works 2016-04-04 18:19:35 +02:00
Kenneth Skovhede 8b448408b3 Cleaned up the border-tests and added a check for restore.
The mixed-hash tests fail the restore for files smaller than blocksize, so they are commented out, but should be fixed soon.
2016-04-02 21:54:46 +02:00
Kenneth Skovhede 406ecdd336 Added restore check to unittest 2016-04-01 00:15:56 +02:00
Kenneth Skovhede 450ee501fd Expanded border tests with additional edge cases 2016-03-31 20:28:08 +02:00
Kenneth Skovhede 6e1a0d3df5 Fixed applying the overrides 2016-03-31 20:15:21 +02:00
Kenneth Skovhede 8d0a42e33d Added additional unittest to verify that using a different filehash and blockhash works 2016-03-30 20:33:15 +02:00
Kenneth Skovhede fcff385c35 Added additional test cases to the unittest to check for files with size zero and 1 byte. 2016-03-30 20:32:47 +02:00
Kenneth Skovhede 201c5c99a9 Fixed the unittest to actually test the odd blocksize values 2016-03-27 12:51:02 +02:00
Kenneth Skovhede 057ac8f707 Added additional tests for checking non-standard settings and borderline cases 2016-03-18 14:33:37 +01:00
Kenneth Skovhede cbe6b959e8 Added new unittest that makes sure strange files with repeated content and sizes around the block-size are handled correctly 2016-03-17 22:23:45 +01:00
Kenneth Skovhede 7e1067e996 Added extra test for the simple a + b test 2016-02-23 20:57:18 +01:00
Kenneth Skovhede 05d3cc2822 Removed unused field 2016-02-19 00:03:02 +01:00
Kenneth Skovhede 6dd9aa2702 Delete target folder before running unittest to allow multiple runs with the same data 2016-01-26 23:30:03 +01:00
Kenneth Skovhede 20a1d4855f More bugfixes for Travis unittest 2016-01-26 22:48:59 +01:00
Kenneth Skovhede 7741bc8b7f ... don't break the build ... 2016-01-26 21:52:28 +01:00
Kenneth Skovhede bfe8639284 Changed unittest to use individual logs to avoid sharingviolations when running tests back-to-back 2016-01-26 21:46:05 +01:00
Kenneth Skovhede 7112e0b19f Fixed building unittest in release mode 2016-01-26 15:14:48 +01:00
Kenneth Skovhede beed30f398 Added SizeOmittingBackend to the unittests to test to test if backends which have no size reporting capabilities cause problems 2015-09-17 20:04:49 +02:00
Kenneth Skovhede 60bd9693d0 Imporved handling of the ~ character in paths 2015-09-05 09:14:21 +02:00
Kenneth Skovhede 6dac0f3c2e Fixed an invalid line-ending character 2015-08-05 13:51:56 +02:00