diff options
author | Joe Onorato <joeo@android.com> | 2009-06-26 14:45:25 -0400 |
---|---|---|
committer | Joe Onorato <joeo@android.com> | 2009-06-26 14:45:25 -0400 |
commit | dc355a90a3d9d34f66316928a53f61ac35ab4781 (patch) | |
tree | 7b9de72bba6ed97ff81b600073cbbed46a0cf7a1 /tests/backup/test_backup.sh | |
parent | aae628b44518f0886a7f33b88c1131f47d853e70 (diff) |
Add a test for SharedPreferencesBackupHelper
(which nobody had ever tested. I like it when stuff
just works the first time).
Diffstat (limited to 'tests/backup/test_backup.sh')
-rwxr-xr-x | tests/backup/test_backup.sh | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/tests/backup/test_backup.sh b/tests/backup/test_backup.sh index 6ef5dffcad85..dbf9ed213ebc 100755 --- a/tests/backup/test_backup.sh +++ b/tests/backup/test_backup.sh @@ -9,6 +9,8 @@ adb shell bmgr transport 1 adb shell "rm /data/data/com.android.backuptest/files/* ; \ mkdir /data/data/com.android.backuptest ; \ mkdir /data/data/com.android.backuptest/files ; \ + mkdir /data/data/com.android.backuptest/shared_prefs ; \ + echo -n \"<map><int name=\\\"pref\\\" value=\\\"1\\\" /></map>\" > /data/data/com.android.backuptest/shared_prefs/raw.xml ; \ echo -n first file > /data/data/com.android.backuptest/files/file.txt ; \ echo -n asdf > /data/data/com.android.backuptest/files/another_file.txt ; \ echo -n 3 > /data/data/com.android.backuptest/files/3.txt ; \ @@ -20,3 +22,6 @@ adb shell bmgr backup com.android.backuptest # run the backup adb shell bmgr run + + + |