Kenneth Skovhede
d00166f791
Attempt to fix test issues on Windows
2026-06-12 19:40:32 +02:00
Kenneth Skovhede
4f26f77f6c
Fixed failing test
2026-06-12 19:27:15 +02:00
Kenneth Skovhede
1f155da26a
Added test that verifies paths can be modified by writing --localpath options back
2026-06-12 17:15:55 +02:00
Kenneth Skovhede
c5e621434c
Simplify test to avoid quirks in how filters are handled internally across platforms.
2026-06-12 16:37:41 +02:00
Kenneth Skovhede
ee371c7413
Handle script modified filter
...
This PR fixes a bug where a script could write a new filter, but the filter was never applied to the backup.
This also fixes an issue where the filter string was not available in scripts or emails, except on the initial call.
This PR updates the logic so the `run-script-after` and `run-script-post-backup` also have access to the filter string, if needed for reporting or other.
This fixes #5143
2026-06-09 16:29:02 +02:00
Kenneth Skovhede
e377bce6d1
Fixed run-script tests
2026-05-14 22:45:40 +02:00
Kenneth Skovhede
179d1ceb47
Make controller Async
...
This PR has a large blast radius because it takes the final step and bumps up the Controller to be fully async.
We have historically done a piece-by-piece update, so all operations were already async but the controller interface was kept synchronous.
With this update, the controller is now fully async and all tests are updated.
Most places where the new C# compiler warns about function names not ending in `Async` were also adressed, giving a massive refactor change.
Functionally, no changes are done.
2026-05-13 15:04:13 +02:00
Kenneth Skovhede
c0f40e19ca
Updated copyright year to 2026 across the project
2026-04-16 15:21:24 +02:00
Kenneth Skovhede
8fca01f64f
Updated NUnit
...
This closes #4939
2025-06-13 11:48:24 +02:00
Kenneth Skovhede
bac8bd414b
Ignore Windows CI generating warnings
2025-05-30 10:07:58 +02:00
Kenneth Skovhede
766a318468
Improved test to return error message
2025-05-21 15:47:00 +02:00
Kenneth Skovhede and GitHub
9464caf622
Feature/update license 2025 ( #5851 )
...
* Fixed some minor whitespace issues
* Updated all copyright to 2025
2025-01-07 09:40:39 +01:00
Jojo-1000
917e2cd0c4
Remove obsolete custom platform detection.
2024-05-30 02:14:05 +02:00
Kenneth Skovhede
d7f027b9e2
Fixed usings in unit tests
2024-03-03 15:41:49 +01:00
Kenneth Skovhede
aa20088c39
Tool based upgrade of all projects with some manual update
2024-03-01 14:29:54 +01:00
Kenneth Skovhede
40dd3c6816
Updated all license mentions to MIT
2024-02-28 15:45:30 +01:00
Jan and gpatel-fr
71eb03130a
Improve result reporting for interrupted/failed backups ( Fix #4829 )
...
Direct import of PR#4978
Update web UI for new result reports.
For operations with fatal errors, write logs to same operation ID.
Test that Interrupted flag is correct in RunScriptTests.
Update backup log display for new result reporting.
Hide file statistics for fatal errors and change fatal icon.
2023-09-21 20:01:17 +02:00
Kenneth Skovhede and GitHub
5498f16f7a
Merge pull request #4414 from warwickmm/test/run_script_after
...
Add test for run-script-after option
2021-03-06 15:00:38 +01:00
Kenneth Skovhede and GitHub
713b0b0746
Merge pull request #4417 from warwickmm/handle_unsupported_run_script_exit_codes
...
Abort with error if run-script-before script returns unsupported code
2021-03-06 14:12:33 +01:00
Kenneth Hsu
11bd54d160
Fix test for DUPLICATI__PARSED_RESULT on Windows.
2021-01-14 20:21:47 -08:00
Kenneth Hsu
148788a879
Add test for DUPLICATI__PARSED_RESULT environment variable.
...
This concerns issue #4222 .
2021-01-14 19:39:03 -08:00
Kenneth Hsu
c11f7c2e47
Avoid testing scripts with exit code -1.
...
The behavior is not consistent or well-defined across shells.
https://unix.stackexchange.com/questions/418784/what-is-the-min-and-max-values-of-exit-codes-in-linux
2021-01-10 15:53:51 -08:00
Kenneth Hsu
359ae2c85b
Add test for unsupported script exit codes.
2021-01-10 10:44:58 -08:00
Kenneth Hsu
c377e33e3d
Remove spaces around redirection operator.
...
This was failing in AppVeyor with the message:
Expected string length 5 but was 6. Strings differ at index 5.
Expected: "Hello"
But was: "Hello "
2021-01-09 12:26:20 -08:00
Kenneth Hsu
232544e5a3
Remove quotes from echo statement in run-script-after test.
...
The behavior appears to be different between Windows and Linux.
2021-01-09 12:00:01 -08:00
Kenneth Hsu
80028005c1
Add test for run-script-after.
2021-01-09 11:14:31 -08:00
Kenneth Hsu
6570cd954c
Add test for specifying remote URL using run-script-before.
...
This concerns issue #3651 .
2020-11-01 14:19:09 -08:00
Kenneth Hsu
ca5aad9ccb
Allow custom commands to be provided to CreateScript test helper.
2020-11-01 13:14:00 -08:00
Kenneth Hsu
e1a6ae4483
Check operation results for errors and warnings in tests.
2020-07-05 18:50:10 -07:00
Kenneth Hsu
d364be4037
Clean test data after each test.
2019-08-18 14:27:01 -07:00
Kenneth Hsu
a6f751f605
Move creation of test data folders to base class.
2019-08-18 14:01:27 -07:00
verhoek
8bb406cd15
Migrated to use the platform class.
2018-11-02 22:17:16 +01:00
Kenneth Skovhede
baee3e312e
Added delay to the exit code tests to avoid overlapping timestamps
2018-08-15 08:15:15 +02:00
Kenneth Skovhede
1626037fd7
Changed path where scripts are created to avoid littering the base folder with junk
2018-08-14 11:30:17 +02:00
Kenneth Skovhede
494fccd931
Added support for multiple exit codes, and added a unittest to verify that the exit codes are handled correctly
2018-08-14 11:09:16 +02:00