File: mergeall-android-scripts/_readme-items/VERIFY-RUNS/_HOW-RUN.txt

-------------------------------------------------------------------------
An exhaustive Mergeall-on-Android test.

Copy the same TEST folder from USB drive to the root of the
phone's SD card, the nested Termux app folder on the SD card,
and the root of internal storage, and sync from the USB copy 
to both SD locations and internal storage.

The USB copy was at its root, as it was only Mergeall "from" 
here (i.e., it was only ever read by the tests, not updated).
Its drive was exFAT and the copies were made with an Android
file explorer which stamped all files' times as "now" -- which
made all files register as differences, and requiring updates;
that's bad in general use, but ideal for testing updates here.  

Mergeall/diffall {q,d}*.txt logs were copied to here from 
Admin-Mergeall/, and trimmed.  This was run on an Android Oreo
Samsung Galaxy Note 9, with removable SD card formatted as 
FAT32, and after running termux-setup-storage in Termux.

-------------------------------------------------------------------------
Test1: sync to root of SD card (compare works, update fails)
-------------------------------------------------------------------------

- Set $plug in ~/.bash_profile to TEST/ at root of USB drive:
	/storage/5C3D-EB80/TEST
- Set $data in ~/.bash_profile to TEST/ at root of SD card:
	/storage/6C2A-1618/TEST
- Comparisons worked, but all updates failed on permission errors
- This proves that drive roots can be read, but updates to SD root fails

$ vi ~/.bash_profile
$ bash mergeall-android-scripts/mergeall-plug-to-data-report.sh q1.txt
$ bash mergeall-android-scripts/mergeall-plug-to-data-update.sh q2.txt

-------------------------------------------------------------------------
Test2: sync to nested app folder on SD card (works)
-------------------------------------------------------------------------

- Set $plug in ~/.bash_profile to TEST/ at root of USB drive:
	/storage/5C3D-EB80/TEST
- Set $data in ~/.bash_profile to TEST/ in nested app folder of SD card:
	/storage/6C2A-1618/Android/data/com.termux/TEST
- All comparisons and updates worked, and verified no diffs remain
- This proves that updates to nested Termux folder on SD work

$ vi ~/.bash_profile
$ bash mergeall-android-scripts/mergeall-plug-to-data-report.sh q3.txt
$ bash mergeall-android-scripts/mergeall-plug-to-data-update.sh q4.txt
$ bash mergeall-android-scripts/mergeall-plug-to-data-report.sh q5.txt

-------------------------------------------------------------------------
Test3: sync to internal storage (works)
-------------------------------------------------------------------------

- Set $plug in ~/.bash_profile to TEST/ at root of USB drive:
	/storage/5C3D-EB80/TEST
- Set $data in ~/.bash_profile to TEST/ at root of internal storage:
	/sdcard/TEST
- All comparisons and updates worked, and verified no diffs remain
- This proves that updates to unnested root of internal storage works

$ vi ~/.bash_profile
$ bash mergeall-android-scripts/mergeall-plug-to-data-report.sh q6.txt
$ bash mergeall-android-scripts/mergeall-plug-to-data-update.sh q7.txt
$ bash mergeall-android-scripts/mergeall-plug-to-data-report.sh q8.txt

-------------------------------------------------------------------------
Diffalls: verify copied files byte-for-byte (no diffs found)
-------------------------------------------------------------------------

- In both runs, $plug is still TEST/ at root of USB drive:
	/storage/5C3D-EB80/TEST

Run 1
- Set $data in ~/.bash_profile to TEST/ at root of internal storage:
	/sdcard/TEST
- All files compared byte-by-byte the same (normal extra backup in $data)

$ bash mergeall-android-scripts/diffall-plug-and-data.sh d1.txt

Run 2
- Set $data in ~/.bash_profile to TEST/ in nested app folder of SD card:
	/storage/6C2A-1618/Android/data/com.termux/TEST
- All files compared byte-by-byte the same (normal extra backup in $data)

$ bash mergeall-android-scripts/diffall-plug-and-data.sh d2.txt

-------------------------------------------------------------------------



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