1{ 2 "description": "Configuration for mediaLibrary Tests", 3 "driver": { 4 "type": "OHJSUnitTest", 5 "test-timeout": "180000", 6 "bundle-name": "ohos.acts.multimedia.mediaLibrary", 7 "module-name": "phone", 8 "shell-timeout": "600000", 9 "testcase-timeout": 70000 10 }, 11 "kits": [ 12 { 13 "type": "ShellKit", 14 "pre-push": [], 15 "run-command": [ 16 "rm -rf /storage/media/100/local/files/*", 17 "rm -rf /data/app/el2/100/database/com.ohos.medialibrary.medialibrarydata/*", 18 "mkdir -pv /storage/media/100/local/files/{Pictures,Videos,Audios,Documents}", 19 "mkdir -p /storage/media/100/local/temp", 20 "param set persist.sys.suspend_manager_enabled 0", 21 "reboot", 22 "param set persist.ace.testmode.enabled 1", 23 "power-shell wakeup", 24 "uinput -T -d 300 600 -m 300 600 300 100 -u 300 100", 25 "power-shell setmode 602" 26 ] 27 }, 28 { 29 "type": "PushKit", 30 "pre-push": [], 31 "push": [ 32 "./resource/medialibrary/01.jpg ->/storage/media/100/local/temp", 33 "./resource/medialibrary/01.mp3 ->/storage/media/100/local/temp", 34 "./resource/medialibrary/01.mp4 ->/storage/media/100/local/temp", 35 "./resource/medialibrary/01.dat ->/storage/media/100/local/temp" 36 ] 37 }, 38 { 39 "type": "ShellKit", 40 "run-command": [ 41 "mkdir -pv /storage/media/100/local/files/Pictures/Static", 42 "mkdir -pv /storage/media/100/local/files/Videos/Static", 43 "mkdir -pv /storage/media/100/local/files/Audios/Static", 44 "mkdir -pv /storage/media/100/local/files/Documents/Static", 45 "for d in Static; do for i in $$(seq 2); do cp /storage/media/100/local/temp/01.jpg /storage/media/100/local/files/Pictures/$$d/0$$i.jpg; done;done;", 46 "for d in Static; do for i in $$(seq 2); do cp /storage/media/100/local/temp/01.mp3 /storage/media/100/local/files/Audios/$$d/0$$i.mp3; done;done;", 47 "for d in Static; do for i in $$(seq 2); do cp /storage/media/100/local/temp/01.mp4 /storage/media/100/local/files/Videos/$$d/0$$i.mp4; done;done;", 48 "for d in Static; do for i in $$(seq 2); do cp /storage/media/100/local/temp/01.dat /storage/media/100/local/files/Documents/$$d/0$$i.dat; done;done;", 49 "chmod -R 777 /storage/media/100/local/files/*", 50 "chmod -R 777 /data/service/el2/100/hmdfs/account/files/*", 51 "hilog -Q pidoff", 52 "hilog -p off", 53 "hilog -b I", 54 "hilog -b D -D 0xD002B70", 55 "scanner", 56 "sleep 10" 57 ], 58 "teardown-command": [ 59 "param set persist.sys.suspend_manager_enabled 1", 60 "reboot", 61 "hilog -b X -D 0xD002B70", 62 "power-shell setmode 600" 63 ] 64 }, 65 { 66 "test-file-name": [ 67 "ActsMediaLibraryMediafetchoptionsTest.hap" 68 ], 69 "type": "AppInstallKit", 70 "cleanup-apps": true 71 } 72 ] 73}