{ "description": "Configuration for mediaLibrary Tests", "driver": { "type": "OHJSUnitTest", "test-timeout": "180000", "bundle-name": "ohos.acts.multimedia.mediaLibrary", "module-name": "phone", "shell-timeout": "600000", "testcase-timeout": 70000 }, "kits": [ { "type": "ShellKit", "pre-push": [], "run-command": [ "rm -rf /storage/media/100/local/files/Audios/*", "rm -rf /storage/media/100/local/files/Camera/*", "rm -rf /storage/media/100/local/files/Documents/*", "rm -rf /storage/media/100/local/files/Download/*", "rm -rf /storage/media/100/local/files/Pictures/*", "rm -rf /storage/media/100/local/files/Videos/*", "mkdir -p /storage/media/100/local/temp", "param set persist.sys.suspend_manager_enabled 0", "reboot", "param set persist.ace.testmode.enabled 1", "power-shell wakeup", "uinput -T -d 300 600 -m 300 600 300 100 -u 300 100", "power-shell setmode 602" ] }, { "type": "PushKit", "pre-push": [], "push": [ "./resource/medialibrary/01.jpg ->/storage/media/100/local/temp", "./resource/medialibrary/01.mp3 ->/storage/media/100/local/temp", "./resource/medialibrary/01.mp4 ->/storage/media/100/local/temp", "./resource/medialibrary/01.dat ->/storage/media/100/local/temp" ] }, { "type": "ShellKit", "run-command": [ "mkdir -pv /storage/media/100/local/files/Pictures/{StaticPro,StaticCb}", "mkdir -pv /storage/media/100/local/files/Videos/{StaticPro,StaticCb}", "mkdir -pv /storage/media/100/local/files/Audios/{StaticPro,StaticCb}", "mkdir -pv /storage/media/100/local/files/Documents/{StaticPro,StaticCb}", "for d in {StaticPro,StaticCb}; do for i in $$(seq 4); do cp /storage/media/100/local/temp/01.jpg /storage/media/100/local/files/Pictures/$$d/0$$i.jpg; done;done;", "for d in {StaticPro,StaticCb}; do for i in $$(seq 4); do cp /storage/media/100/local/temp/01.mp3 /storage/media/100/local/files/Audios/$$d/0$$i.mp3; done;done;", "for d in {StaticPro,StaticCb}; do for i in $$(seq 4); do cp /storage/media/100/local/temp/01.mp4 /storage/media/100/local/files/Videos/$$d/0$$i.mp4; done;done;", "for d in {StaticPro,StaticCb}; do for i in $$(seq 4); do cp /storage/media/100/local/temp/01.dat /storage/media/100/local/files/Documents/$$d/0$$i.dat; done;done;", "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 I", "hilog -b D -D 0xD002B70", "scanner", "sleep 10" ], "teardown-command": [ "rm -rf /storage/media/100/local/files/Audios/*", "rm -rf /storage/media/100/local/files/Camera/*", "rm -rf /storage/media/100/local/files/Documents/*", "rm -rf /storage/media/100/local/files/Download/*", "rm -rf /storage/media/100/local/files/Pictures/*", "rm -rf /storage/media/100/local/files/Videos/*", "rm -rf /storage/media/100/local/temp", "param set persist.sys.suspend_manager_enabled 1", "reboot", "hilog -b X -D 0xD002B70", "power-shell setmode 600" ] }, { "test-file-name": [ "ActsMediaLibraryFavoriteTest.hap" ], "type": "AppInstallKit", "cleanup-apps": true } ] }