2023-10-09 05:16:23 +02:00
|
|
|
|
test normalization
|
|
|
|
|
# Tests support for --no-unicode-normalization and --ignore-case-sync
|
|
|
|
|
# note: this test is written carefully to be runnable regardless of case/unicode sensitivity
|
|
|
|
|
# i.e. the results should be the same on linux and macOS
|
|
|
|
|
|
|
|
|
|
# force specific modification time since file time is lost through git
|
|
|
|
|
touch-copy 2001-01-02 {datadir/}file1.txt {path2/}
|
|
|
|
|
test initial bisync
|
|
|
|
|
bisync resync
|
|
|
|
|
|
|
|
|
|
# copy NFC version to Path1
|
2023-11-17 18:14:38 +01:00
|
|
|
|
copy-as-NFC {datadir/}file1.txt {path1/}測試_Русский___ě_áñ👸🏼🧝🏾♀️💆🏿♂️🐨🤙🏼🤮🧑🏻🔧🧑🔬éö 測試_Русский___ě_áñ👸🏼🧝🏾♀️💆🏿♂️🐨🤙🏼🤮🧑🏻🔧🧑🔬éö.txt
|
2023-10-09 05:16:23 +02:00
|
|
|
|
copy-as-NFC {datadir/}file1.txt {path1/}folder éééö.txt
|
|
|
|
|
copy-as-NFC {datadir/}file1.txt {path1/}folder HeLlO,wOrLd!.txt
|
|
|
|
|
|
|
|
|
|
# place newer NFD version on Path2
|
|
|
|
|
touch-copy 2001-01-03 {datadir/}file1.txt {path2/}
|
|
|
|
|
copy-as-NFD {datadir/}file1.txt {path2/}folder éééö.txt
|
|
|
|
|
copy-as-NFD {datadir/}file1.txt {path2/}folder hello,WORLD!.txt
|
|
|
|
|
|
|
|
|
|
test bisync run with fix-case
|
|
|
|
|
bisync fix-case
|
|
|
|
|
|
|
|
|
|
# purge and reset
|
|
|
|
|
purge-children {path1/}
|
|
|
|
|
purge-children {path2/}
|
|
|
|
|
touch-copy 2001-01-02 {datadir/}file1.txt {path2/}
|
2023-11-17 18:14:38 +01:00
|
|
|
|
copy-as-NFC {datadir/}file1.txt {path2/} file2.txt
|
|
|
|
|
copy-as-NFC {datadir/}file1.txt {path1/} file3.txt
|
2023-10-09 05:16:23 +02:00
|
|
|
|
bisync resync
|
|
|
|
|
|
|
|
|
|
# copy NFC version to Path1
|
2023-11-17 18:14:38 +01:00
|
|
|
|
# note: need to slightly change the name to avoid Drive known issue #3262 which could try to copy the old name from the trash
|
|
|
|
|
copy-as-NFC {datadir/}file1.txt {path1/}測試_Руский___ě_áñ👸🏼🧝🏾♀️💆🏿♂️🐨🤙🏼🤮🧑🏻🔧🧑🔬éö 測試_Руский___ě_áñ👸🏼🧝🏾♀️💆🏿♂️🐨🤙🏼🤮🧑🏻🔧🧑🔬éö.txt
|
2024-03-08 23:53:33 +01:00
|
|
|
|
copy-as-NFC {datadir/}file1.txt {path1/}newfolder éééö.txt
|
|
|
|
|
copy-as-NFC {datadir/}file1.txt {path1/}newfolder HeLlO,wOrLd!.txt
|
2023-10-09 05:16:23 +02:00
|
|
|
|
|
|
|
|
|
# place newer NFD version on Path2
|
|
|
|
|
touch-copy 2001-01-03 {datadir/}file1.txt {path2/}
|
2024-03-08 23:53:33 +01:00
|
|
|
|
copy-as-NFD {datadir/}file1.txt {path2/}newfolder éééö.txt
|
|
|
|
|
copy-as-NFD {datadir/}file1.txt {path2/}newfolder hello,WORLD!.txt
|
2023-10-09 05:16:23 +02:00
|
|
|
|
|
|
|
|
|
test bisync run with normalization
|
|
|
|
|
bisync norm force
|
|
|
|
|
|
|
|
|
|
test resync
|
|
|
|
|
bisync resync norm
|
|
|
|
|
|
2023-11-09 11:04:33 +01:00
|
|
|
|
test changed on one path
|
2023-10-09 05:16:23 +02:00
|
|
|
|
touch-copy 2001-01-05 {datadir/}file1.txt {path2/}
|
2023-11-17 18:14:38 +01:00
|
|
|
|
copy-as-NFC {datadir/}file1.txt {path1/}測試_Руский___ě_áñ👸🏼🧝🏾♀️💆🏿♂️🐨🤙🏼🤮🧑🏻🔧🧑🔬éö 測試_Руский___ě_áñ👸🏼🧝🏾♀️💆🏿♂️🐨🤙🏼🤮🧑🏻🔧🧑🔬éö.txt
|
2024-03-08 23:53:33 +01:00
|
|
|
|
copy-as-NFC {datadir/}file1.txt {path1/}newfolder éééö.txt
|
|
|
|
|
copy-as-NFC {datadir/}file1.txt {path1/}newfolder HeLlO,wOrLd!.txt
|
2023-10-09 05:16:23 +02:00
|
|
|
|
bisync norm
|