• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
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/Photo/*",
20                "sleep 5",
21                "rm -rf /data/app/el2/100/database/com.ohos.medialibrary.medialibrarydata/*",
22                "kill -9 `pidof com.ohos.medialibrary.medialibrarydata`",
23                "sleep 5"
24            ]
25        },
26        {
27            "test-file-name": [
28                "ActsMediaLibraryFileKeyTest.hap"
29            ],
30            "type": "AppInstallKit",
31            "cleanup-apps": true
32        },
33        {
34            "type": "ShellKit",
35            "pre-push": [],
36            "run-command": [
37                "param set persist.ace.testmode.enabled 1",
38                "power-shell wakeup",
39                "uinput  -T -d 300 2700 -m 300 2700 300 100 -u 300 100",
40                "power-shell setmode 602",
41                "mkdir -p /storage/media/100/local/files/Pictures",
42                "mkdir -p /storage/media/100/local/files/Videos",
43                "mkdir -p /storage/media/100/local/files/Camera",
44                "mkdir -p /storage/media/100/local/files/Audios",
45                "mkdir -pv /storage/media/100/local/files/Pictures/ImageInfo",
46                "mkdir -pv /storage/media/100/local/files/Audios/Static",
47                "mkdir -p /data/app/el2/100/base/ohos.acts.multimedia.mediaLibrary/haps/phone/files",
48                "chmod 777 -R /data/app/el2/100/base/ohos.acts.multimedia.mediaLibrary/haps/phone",
49                "chmod -R 777 /storage/media/100/local/files/*",
50                "chmod -R 777 /data/service/el2/100/hmdfs/account/files/*"
51            ]
52        },
53        {
54            "type": "PushKit",
55            "pre-push": [],
56            "push": [
57                "./resource/medialibrary/01.jpg ->/data/app/el2/100/base/ohos.acts.multimedia.mediaLibrary/haps/phone/files/",
58                "./resource/medialibrary/01.mp3 ->/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/Photo/*",
76                "sleep 5",
77                "rm -rf /data/app/el2/100/database/com.ohos.medialibrary.medialibrarydata/*",
78                "kill -9 `pidof com.ohos.medialibrary.medialibrarydata`"
79            ]
80        }
81    ]
82}