Skip to content

Commit

Permalink
Update test-script.sh
Browse files Browse the repository at this point in the history
  • Loading branch information
mrrfv committed May 20, 2023
1 parent 73e34aa commit 2cc4306
Showing 1 changed file with 9 additions and 3 deletions.
12 changes: 9 additions & 3 deletions .github/test-script.sh
@@ -1,7 +1,9 @@
#!/bin/bash

adb shell mkdir -p /storage/emulated/0/open-android-backup-temp
adb shell touch /storage/emulated/0/open-android-backup-temp/SMS_Messages.csv
create_dummy_files() {
adb shell mkdir -p /storage/emulated/0/open-android-backup-temp
adb shell touch /storage/emulated/0/open-android-backup-temp/SMS_Messages.csv
}

export unattended_mode="yes"
export archive_path="/tmp"
Expand All @@ -14,24 +16,28 @@ export data_erase_choice="Fast"
# Backup
export selected_action="Backup"

# Hooks disabled, ADB exporting method
# Hooks disabled, ADB exporting method
export use_hooks="no"
export export_method="adb"
create_dummy_files
./backup.sh

# Hooks disabled, TAR exporting method
export use_hooks="no"
export export_method="tar"
create_dummy_files
./backup.sh

# Hooks enabled, ADB exporting method
export use_hooks="yes"
export export_method="adb"
cp .github/test-hook.sh ./hooks.sh
create_dummy_files
./backup.sh

# Hooks enabled, TAR exporting method
export use_hooks="yes"
export export_method="tar"
cp .github/test-hook.sh ./hooks.sh
create_dummy_files
./backup.sh

0 comments on commit 2cc4306

Please sign in to comment.