{ "description": "Configuration for mediaLibrary Tests", "driver": { "type": "JSUnitTest", "test-timeout": "300000", "package": "ohos.acts.multimedia.mediaLibrary", "shell-timeout": "600000" }, "kits": [ { "type": "ShellKit", "pre-push": [ ], "run-command": [ "rm -rf /storage/media/100/local/files/*", "rm -rf /data/app/el2/100/database/com.ohos.medialibrary.medialibrarydata/*", "mkdir -pv /storage/media/100/local/files/{Pictures,Videos,Audios,Documents}", "mkdir -p /data/accounts/account_0/appdata/com.ohos.medialibrary.medialibrarydata" ] }, { "type": "PushKit", "pre-push": [ ], "push": [ "./resource/medialibrary/01.jpg ->/data/accounts/account_0/appdata/com.ohos.medialibrary.medialibrarydata", "./resource/medialibrary/01.mp3 ->/data/accounts/account_0/appdata/com.ohos.medialibrary.medialibrarydata", "./resource/medialibrary/01.mp4 ->/data/accounts/account_0/appdata/com.ohos.medialibrary.medialibrarydata", "./resource/medialibrary/01.dat ->/data/accounts/account_0/appdata/com.ohos.medialibrary.medialibrarydata" ] }, { "type": "ShellKit", "run-command": [ "mkdir -pv /storage/media/100/local/files/Pictures/{Static,Dynamic}", "mkdir -pv /storage/media/100/local/files/Videos/{Static,Dynamic}", "mkdir -pv /storage/media/100/local/files/Audios/{Static,Dynamic}", "mkdir -pv /storage/media/100/local/files/Documents/{Static,Dynamic}", "for d in Static; do for i in $$(seq 6); do cp /data/accounts/account_0/appdata/com.ohos.medialibrary.medialibrarydata/01.jpg /storage/media/100/local/files/Pictures/$$d/0$$i.jpg; done;done;", "for d in Static; do for i in $$(seq 6); do cp /data/accounts/account_0/appdata/com.ohos.medialibrary.medialibrarydata/01.mp3 /storage/media/100/local/files/Audios/$$d/0$$i.mp3; done;done;", "for d in Static; do for i in $$(seq 6); do cp /data/accounts/account_0/appdata/com.ohos.medialibrary.medialibrarydata/01.mp4 /storage/media/100/local/files/Videos/$$d/0$$i.mp4; done;done;", "for d in Static; do for i in $$(seq 6); do cp /data/accounts/account_0/appdata/com.ohos.medialibrary.medialibrarydata/01.dat /storage/media/100/local/files/Documents/$$d/0$$i.dat; done;done;", "cp /data/accounts/account_0/appdata/com.ohos.medialibrary.medialibrarydata/01.jpg /storage/media/100/local/files/Pictures/Dynamic/01.jpg", "cp /data/accounts/account_0/appdata/com.ohos.medialibrary.medialibrarydata/01.mp4 /storage/media/100/local/files/Videos/Dynamic/01.mp4", "cp /data/accounts/account_0/appdata/com.ohos.medialibrary.medialibrarydata/01.mp3 /storage/media/100/local/files/Audios/Dynamic/01.mp3", "cp /data/accounts/account_0/appdata/com.ohos.medialibrary.medialibrarydata/01.dat /storage/media/100/local/files/Documents/Dynamic/01.dat", "chmod -R 777 /storage/media/100/local/files/*", "chmod -R 777 /data/service/el2/100/hmdfs/account/files/*", "hilog -Q pidoff", "hilog -p off", "hilog -b D -D 0xD002B70", "scanner_demo", "sleep 10" ] }, { "test-file-name": [ "ActsMediaLibraryFile.hap" ], "type": "AppInstallKit", "cleanup-apps": true } ] }