Package: restic Version: 0.18.1-1 Severity: wishlist Tags: patch X-Debbugs-Cc: [email protected]
Dear Maintainer, I'd like to suggest the attached debdiff to add an autopkgtest. Cheers, Nathan
diffstat for restic-0.18.1 restic-0.18.1 changelog | 6 ++++++ tests/control | 3 +++ tests/restore-test | 20 ++++++++++++++++++++ tests/sample-tree/1 | 1 + tests/sample-tree/link-to-1 | 1 + tests/sample-tree/subdir/2 | 1 + 6 files changed, 32 insertions(+) diff -Nru restic-0.18.1/debian/changelog restic-0.18.1/debian/changelog --- restic-0.18.1/debian/changelog 2025-11-01 07:27:07.000000000 -0300 +++ restic-0.18.1/debian/changelog 2025-12-09 19:33:08.000000000 -0300 @@ -1,3 +1,9 @@ +restic (0.18.1-2) unstable; urgency=medium + + * d/tests: Add an autopkgtest. + + -- Nathan Pratta Teodosio <[email protected]> Tue, 09 Dec 2025 19:33:08 -0300 + restic (0.18.1-1) unstable; urgency=medium * New upstream version 0.18.1 diff -Nru restic-0.18.1/debian/tests/control restic-0.18.1/debian/tests/control --- restic-0.18.1/debian/tests/control 1969-12-31 21:00:00.000000000 -0300 +++ restic-0.18.1/debian/tests/control 2025-12-09 18:44:05.000000000 -0300 @@ -0,0 +1,3 @@ +Tests: restore-test +Depends: @ +Restrictions: allow-stderr diff -Nru restic-0.18.1/debian/tests/restore-test restic-0.18.1/debian/tests/restore-test --- restic-0.18.1/debian/tests/restore-test 1969-12-31 21:00:00.000000000 -0300 +++ restic-0.18.1/debian/tests/restore-test 2025-12-09 18:51:24.000000000 -0300 @@ -0,0 +1,20 @@ +#!/bin/sh -ex +# +#Backup a tree and make sure it can be restored only after giving the correct +#password, intact in structure as well as in its file contents. + +d="$(dirname "$0")/sample-tree" +restoreTo=$(mktemp -d) +RESTIC_REPOSITORY="$(mktemp -d)" +export RESTIC_REPOSITORY +export RESTIC_PASSWORD=123 + +restic init +restic backup "$d" + +export RESTIC_PASSWORD=incorrect +restic restore --target "$restoreTo" latest && exit 1 + +export RESTIC_PASSWORD=123 +restic restore --target "$restoreTo" latest +diff -r "$restoreTo/$d" "$d" diff -Nru restic-0.18.1/debian/tests/sample-tree/1 restic-0.18.1/debian/tests/sample-tree/1 --- restic-0.18.1/debian/tests/sample-tree/1 1969-12-31 21:00:00.000000000 -0300 +++ restic-0.18.1/debian/tests/sample-tree/1 2025-12-09 18:35:27.000000000 -0300 @@ -0,0 +1 @@ +1 diff -Nru restic-0.18.1/debian/tests/sample-tree/link-to-1 restic-0.18.1/debian/tests/sample-tree/link-to-1 --- restic-0.18.1/debian/tests/sample-tree/link-to-1 1969-12-31 21:00:00.000000000 -0300 +++ restic-0.18.1/debian/tests/sample-tree/link-to-1 2025-12-09 18:35:27.000000000 -0300 @@ -0,0 +1 @@ +1 diff -Nru restic-0.18.1/debian/tests/sample-tree/subdir/2 restic-0.18.1/debian/tests/sample-tree/subdir/2 --- restic-0.18.1/debian/tests/sample-tree/subdir/2 1969-12-31 21:00:00.000000000 -0300 +++ restic-0.18.1/debian/tests/sample-tree/subdir/2 2025-12-09 18:35:44.000000000 -0300 @@ -0,0 +1 @@ +2

