File: mergeall-products/unzipped/test/test-normalization-3.3/Normalization/_TEST-output.txt

----------------------------------------------------------------------------------
CONSOLE RESULTS (see also LOGS/):

  - Run on macOS, which auto-maps variant names to the same file
  - FROM simulates macOS, TO simulates Android 10
  - All variant file and folder names match correctly between FROM and TO
  - TO files touched (some with initially different content) are updated correctly

See also: ../../test-path-normalization-3.3/test-path-normalization-walks/
for more normalization tests, including path normalization, that build on this.
----------------------------------------------------------------------------------

.../test/test-normalization-3.3/Normalization$ python3 _TEST.py 

Initial populate

[FROM]
('dir-Liñux', b'dir-Lin\xcc\x83ux')
('file1-Liñux.txt', b'file1-Lin\xcc\x83ux.txt')
('file2-Liñux.txt', b'file2-Lin\xcc\x83ux.txt')
('link-Liñux', b'link-Lin\xcc\x83ux')
('okay-dir', b'okay-dir')
('okay-link1', b'okay-link1')
('okay-link2', b'okay-link2')
('okay.txt', b'okay.txt')
FROM/file1-Liñux.txt => Liñux, b'Lin\xcc\x83ux'
FROM/file1-Liñux.txt => Liñux, b'Lin\xcc\x83ux'
FROM/file1-Liñux.txt => Liñux, b'Lin\xcc\x83ux'
FROM/dir-Liñux/nested1-Liñux.txt => nested1, b'Lin\xcc\x83ux'
FROM/dir-Liñux/nested2-Liñux.txt => nested2, b'Lin\xcc\x83ux'
[TO]
('dir-Liñux', b'dir-Li\xc3\xb1ux')
('file1-Liñux.txt', b'file1-Li\xc3\xb1ux.txt')
('file2-Liñux.txt', b'file2-Li\xc3\xb1ux.txt')
('link-Liñux', b'link-Li\xc3\xb1ux')
('okay-dir', b'okay-dir')
('okay-link1', b'okay-link1')
('okay-link2', b'okay-link2')
('okay.txt', b'okay.txt')
TO/file1-Liñux.txt => Liñux, b'Li\xc3\xb1ux'
TO/file1-Liñux.txt => Liñux, b'Li\xc3\xb1ux'
TO/file1-Liñux.txt => Liñux, b'Li\xc3\xb1ux'
TO/dir-Liñux/nested1-Liñux.txt => nested1, b'Li\xc3\xb1ux'
TO/dir-Liñux/nested2-Liñux.txt => nested2, b'Li\xc3\xb1ux'

Press enter to mod and sync

[FROM]
('dir-Liñux', b'dir-Lin\xcc\x83ux')
('file1-Liñux.txt', b'file1-Lin\xcc\x83ux.txt')
('file3-Liñux.txt', b'file3-Li\xc3\xb1ux.txt')
('link-Liñux', b'link-Lin\xcc\x83ux')
('okay-link1', b'okay-link1')
('okay.txt', b'okay.txt')
FROM/file1-Liñux.txt => Liñux, b'Lin\xcc\x83ux'
FROM/file1-Liñux.txt => Liñux, b'Lin\xcc\x83ux'
FROM/file1-Liñux.txt => Liñux, b'Lin\xcc\x83ux'
FROM/dir-Liñux/nested3-Liñux.txt => 
FROM/dir-Liñux/nested1-Liñux.txt => nested1, b'Lin\xcc\x83ux'
[TO]
('dir-Liñux', b'dir-Li\xc3\xb1ux')
('file1-Liñux.txt', b'file1-Li\xc3\xb1ux.txt')
('file3-Liñux.txt', b'file3-Li\xc3\xb1ux.txt')
('link-Liñux', b'link-Li\xc3\xb1ux')
('okay-link1', b'okay-link1')
('okay.txt', b'okay.txt')
TO/file1-Liñux.txt => Liñux, b'Lin\xcc\x83ux'
TO/file1-Liñux.txt => Liñux, b'Lin\xcc\x83ux'
TO/file1-Liñux.txt => Liñux, b'Lin\xcc\x83ux'
TO/dir-Liñux/nested3-Liñux.txt => 
TO/dir-Liñux/nested1-Liñux.txt => nested1, b'Lin\xcc\x83ux'

Press enter to run deltas test

[FROM]
('dir-Liñux', b'dir-Lin\xcc\x83ux')
('file1-Liñux.txt', b'file1-Lin\xcc\x83ux.txt')
('file3-Liñux.txt', b'file3-Li\xc3\xb1ux.txt')
('link-Liñux', b'link-Lin\xcc\x83ux')
('okay-link1', b'okay-link1')
('okay.txt', b'okay.txt')
FROM/file1-Liñux.txt => Liñux, b'Lin\xcc\x83ux'
FROM/file1-Liñux.txt => Liñux, b'Lin\xcc\x83ux'
FROM/file1-Liñux.txt => Liñux, b'Lin\xcc\x83ux'
FROM/dir-Liñux/nested3-Liñux.txt => 
FROM/dir-Liñux/nested1-Liñux.txt => nested1, b'Lin\xcc\x83ux'
[TO]
('__bkp__', b'__bkp__')
('dir-Liñux', b'dir-Li\xc3\xb1ux')
('file1-Liñux.txt', b'file1-Li\xc3\xb1ux.txt')
('file3-Liñux.txt', b'file3-Li\xc3\xb1ux.txt')
('link-Liñux', b'link-Li\xc3\xb1ux')
('okay-link1', b'okay-link1')
('okay.txt', b'okay.txt')
TO/file1-Liñux.txt => Liñux, b'Lin\xcc\x83ux'
TO/file1-Liñux.txt => Liñux, b'Lin\xcc\x83ux'
TO/file1-Liñux.txt => Liñux, b'Lin\xcc\x83ux'
TO/dir-Liñux/nested3-Liñux.txt => 
TO/dir-Liñux/nested1-Liñux.txt => nested1, b'Lin\xcc\x83ux'

----------------------------------------------------------------------------------
KEY DIFF:

# If sync with 3.2 (change [mergeall33 = mergeall32] above):

*Resolving tree differences
Skipping system cruft (metadata) files in FROM folders
removed old TO dir, TO/dir-Liñux
removed old TO file, TO/file-Liñux.txt
removed old TO file, TO/link-Liñux
copied new FROM dir, FROM/dir-Liñux
copied new FROM file, FROM/file-Liñux.txt
propagating symlink FROM/link-Liñux
copied new FROM file, FROM/link-Liñux
Phase runtime: 0.0012677520000000005

# Elif sync with 3.3 (with normalization):

*Resolving tree differences
Skipping system cruft (metadata) files in FROM folders
replaced same file, using FROM FROM/dir-Liñux/nested-Liñux.txt
replaced same file, using FROM FROM/file-Liñux.txt
propagating symlink FROM/link-Liñux
replaced same file, using FROM FROM/link-Liñux
Phase runtime: 0.001061434

# In this specific same-device case on macOS, the net effect is
# the same, but 3.2 must recopy the entire folder pointlessly.  
# In general, FROM and TO may reflect different devices (e.g., a
# zipfile from macOS and a copy on an Android phone), and FROM 
# may be a backup or deltas set instead of full content copy.  
# Duplicates may result in 3.2 from deltas sets, because TO name
# variants won't match FROM equivalents and be ignored as unchanged.
----------------------------------------------------------------------------------



[Home page] Books Code Blog Python Author Train Find ©M.Lutz