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": 10000 10 }, 11 "kits": [ 12 { 13 "type": "ShellKit", 14 "pre-push": [], 15 "run-command": [ 16 "rm -rf /storage/media/100/local/files/Audios/*", 17 "rm -rf /storage/media/100/local/files/Audios/.*", 18 "rm -rf /storage/media/100/local/files/Camera/*", 19 "rm -rf /storage/media/100/local/files/Camera/.*", 20 "rm -rf /storage/media/100/local/files/Documents/*", 21 "rm -rf /storage/media/100/local/files/Documents/.*", 22 "rm -rf /storage/media/100/local/files/Download/*", 23 "rm -rf /storage/media/100/local/files/Download/.*", 24 "rm -rf /storage/media/100/local/files/Pictures/*", 25 "rm -rf /storage/media/100/local/files/Pictures/.*", 26 "rm -rf /storage/media/100/local/files/Videos/*", 27 "rm -rf /storage/media/100/local/files/Videos/.*", 28 "sleep 5", 29 "rm -rf /data/app/el2/100/database/com.ohos.medialibrary.medialibrarydata/*", 30 "kill -9 `pidof com.ohos.medialibrary.medialibrarydata`", 31 "scanner", 32 "sleep 5", 33 "mkdir /storage/media/100/local/temp", 34 "param set persist.ace.testmode.enabled 1", 35 "power-shell wakeup", 36 "uinput -T -d 300 600 -m 300 600 300 100 -u 300 100", 37 "power-shell setmode 602" 38 ] 39 }, 40 { 41 "type": "PushKit", 42 "pre-push": [], 43 "push": [ 44 "./resource/medialibrary/01.jpg ->/storage/media/100/local/temp", 45 "./resource/medialibrary/01.mp3 ->/storage/media/100/local/temp", 46 "./resource/medialibrary/01.mp4 ->/storage/media/100/local/temp", 47 "./resource/medialibrary/01.dat ->/storage/media/100/local/temp" 48 ] 49 }, 50 { 51 "type": "ShellKit", 52 "run-command": [ 53 "mkdir -pv /storage/media/100/local/files/Pictures/{Static,Dynamic}", 54 "mkdir -pv /storage/media/100/local/files/Videos/{Static,Dynamic}", 55 "mkdir -pv /storage/media/100/local/files/Audios/{Static,Dynamic}", 56 "mkdir -pv /storage/media/100/local/files/Documents/{Static,Dynamic}", 57 "for d in Static; do for i in $$(seq 6); do cp /storage/media/100/local/temp/01.jpg /storage/media/100/local/files/Pictures/$$d/0$$i.jpg; done;done;", 58 "for d in Static; do for i in $$(seq 6); do cp /storage/media/100/local/temp/01.mp3 /storage/media/100/local/files/Audios/$$d/0$$i.mp3; done;done;", 59 "for d in Static; do for i in $$(seq 6); do cp /storage/media/100/local/temp/01.mp4 /storage/media/100/local/files/Videos/$$d/0$$i.mp4; done;done;", 60 "for d in Static; do for i in $$(seq 6); do cp /storage/media/100/local/temp/01.dat /storage/media/100/local/files/Documents/$$d/0$$i.dat; done;done;", 61 "cp /storage/media/100/local/temp/01.jpg /storage/media/100/local/files/Pictures/Dynamic/01.jpg", 62 "cp /storage/media/100/local/temp/01.mp4 /storage/media/100/local/files/Videos/Dynamic/01.mp4", 63 "cp /storage/media/100/local/temp/01.mp3 /storage/media/100/local/files/Audios/Dynamic/01.mp3", 64 "cp /storage/media/100/local/temp/01.dat /storage/media/100/local/files/Documents/Dynamic/01.dat", 65 "chmod -R 777 /storage/media/100/local/files/*", 66 "chmod -R 777 /data/service/el2/100/hmdfs/account/files/*", 67 "hilog -Q pidoff", 68 "hilog -p off", 69 "hilog -b I", 70 "hilog -b D -D 0xD002B70", 71 "scanner", 72 "sleep 10" 73 ], 74 "teardown-command": [ 75 "power-shell setmode 600", 76 "rm -rf /storage/media/100/local/temp", 77 "rm -rf /storage/media/100/local/files/Audios/*", 78 "rm -rf /storage/media/100/local/files/Audios/.*", 79 "rm -rf /storage/media/100/local/files/Camera/*", 80 "rm -rf /storage/media/100/local/files/Camera/.*", 81 "rm -rf /storage/media/100/local/files/Documents/*", 82 "rm -rf /storage/media/100/local/files/Documents/.*", 83 "rm -rf /storage/media/100/local/files/Download/*", 84 "rm -rf /storage/media/100/local/files/Download/.*", 85 "rm -rf /storage/media/100/local/files/Pictures/*", 86 "rm -rf /storage/media/100/local/files/Pictures/.*", 87 "rm -rf /storage/media/100/local/files/Videos/*", 88 "rm -rf /storage/media/100/local/files/Videos/.*", 89 "rm -rf /data/app/el2/100/database/com.ohos.medialibrary.medialibrarydata/*", 90 "kill -9 `pidof com.ohos.medialibrary.medialibrarydata`", 91 "sleep 5" 92 ] 93 }, 94 { 95 "test-file-name": [ 96 "ActsMediaLibraryFileTest.hap" 97 ], 98 "type": "AppInstallKit", 99 "cleanup-apps": true 100 } 101 ] 102}