From 96831d81fefcb76f2b33bc97b6206f594a7fcd5f Mon Sep 17 00:00:00 2001 From: Lars Wirzenius Date: Sat, 26 Dec 2020 10:25:59 +0200 Subject: test: add verification test for non-UTF8 filenames --- obnam.md | 19 +++++++++++++++++++ 1 file changed, 19 insertions(+) (limited to 'obnam.md') diff --git a/obnam.md b/obnam.md index fbbf994..6706fb7 100644 --- a/obnam.md +++ b/obnam.md @@ -876,6 +876,25 @@ given a manifest of the directory live restored in rest in rest.yaml then files live.yaml and rest.yaml match ~~~ +## Tricky filenames + +Obnam needs to handle all filenames the underlying operating and file +system can handle. This scenario verifies it can handle a filename +that consists on a single byte with its top bit set. This is not +ASCII, and it's not UTF-8. + +~~~scenario +given an installed obnam +and a running chunk server +and a client config based on metadata.yaml +and a file in live with a non-UTF8 filename +and a manifest of the directory live in live.yaml +when I run obnam --config metadata.yaml backup +then backup generation is GEN +when I invoke obnam --config metadata.yaml restore rest +given a manifest of the directory live restored in rest in rest.yaml +then files live.yaml and rest.yaml match +~~~ -- cgit v1.2.1