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/Pictures", 17 "rm -rf /storage/media/100/local/files/Videos", 18 "rm -rf /storage/media/100/local/files/Camera", 19 "rm -rf /storage/media/100/local/files/Audios", 20 "rm -rf /storage/media/100/local/files/Docs/Documents/*", 21 "rm -rf /storage/media/100/local/files/Docs/Documents/.*", 22 "rm -rf /storage/media/100/local/files/Photo/*", 23 "sleep 5", 24 "rm -rf /data/app/el2/100/database/com.ohos.medialibrary.medialibrarydata/*", 25 "kill -9 `pidof com.ohos.medialibrary.medialibrarydata`" 26 ] 27 }, 28 { 29 "test-file-name": [ 30 "ActsMediaLibraryGetExifLocationTest.hap" 31 ], 32 "type": "AppInstallKit", 33 "cleanup-apps": true 34 }, 35 { 36 "type": "ShellKit", 37 "pre-push": [], 38 "run-command": [ 39 "param set persist.ace.testmode.enabled 1", 40 "power-shell wakeup", 41 "uinput -T -d 300 2700 -m 300 2700 300 100 -u 300 100", 42 "power-shell setmode 602", 43 "mkdir -p /storage/media/100/local/files/Pictures", 44 "mkdir -p /storage/media/100/local/files/Videos", 45 "mkdir -p /storage/media/100/local/files/Camera", 46 "mkdir -p /storage/media/100/local/files/Audios", 47 "mkdir -pv /storage/media/100/local/files/Pictures/Images", 48 "mkdir -p /data/app/el2/100/base/ohos.acts.multimedia.mediaLibrary/haps/phone/files", 49 "chmod 777 -R /data/app/el2/100/base/ohos.acts.multimedia.mediaLibrary/haps/phone", 50 "chmod -R 777 /storage/media/100/local/files/*", 51 "chmod -R 777 /data/service/el2/100/hmdfs/account/files/*" 52 ] 53 }, 54 { 55 "type": "PushKit", 56 "pre-push": [], 57 "push": [ 58 "./resource/medialibrary/test_exif.jpg ->/data/app/el2/100/base/ohos.acts.multimedia.mediaLibrary/haps/phone/files/" 59 ] 60 }, 61 { 62 "type": "ShellKit", 63 "run-command": [ 64 "hilog -Q pidoff", 65 "hilog -Q domainoff", 66 "hilog -b D -D 0xD002B70" 67 ], 68 "teardown-command": [ 69 "power-shell setmode 600", 70 "hilog -Q pidon", 71 "hilog -Q domainon", 72 "rm -rf /storage/media/100/local/files/Pictures", 73 "rm -rf /storage/media/100/local/files/Videos", 74 "rm -rf /storage/media/100/local/files/Camera", 75 "rm -rf /storage/media/100/local/files/Audios", 76 "rm -rf /storage/media/100/local/files/Docs/Documents/*", 77 "rm -rf /storage/media/100/local/files/Docs/Documents/.*", 78 "rm -rf /storage/media/100/local/files/Photo/*", 79 "sleep 5", 80 "rm -rf /data/app/el2/100/database/com.ohos.medialibrary.medialibrarydata/*", 81 "kill -9 `pidof com.ohos.medialibrary.medialibrarydata`" 82 ] 83 } 84 ] 85}