• 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/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            ]
48        },
49        {
50            "type": "ShellKit",
51            "run-command": [
52                "mkdir -pv /storage/media/100/local/files/Pictures/Thumbnail",
53                "mkdir -pv /storage/media/100/local/files/Videos/Thumbnail",
54                "mkdir -pv /storage/media/100/local/files/Audios/Thumbnail",
55                "cp /storage/media/100/local/temp/01.jpg /storage/media/100/local/files/Pictures/Thumbnail",
56                "cp /storage/media/100/local/temp/01.mp3 /storage/media/100/local/files/Audios/Thumbnail",
57                "cp /storage/media/100/local/temp/01.mp4 /storage/media/100/local/files/Videos/Thumbnail",
58                "chmod -R 777 /storage/media/100/local/files/*",
59                "chmod -R 777 /data/service/el2/100/hmdfs/account/files/*",
60                "hilog -Q pidoff",
61                "hilog -p off",
62                "hilog -b I",
63                "hilog -b D -D 0xD002B70",
64                "scanner",
65                "sleep 10"
66            ],
67            "teardown-command": [
68                "power-shell setmode 600",
69                "rm -rf /storage/media/100/local/temp",
70                "rm -rf /storage/media/100/local/files/Audios/*",
71                "rm -rf /storage/media/100/local/files/Audios/.*",
72                "rm -rf /storage/media/100/local/files/Camera/*",
73                "rm -rf /storage/media/100/local/files/Camera/.*",
74                "rm -rf /storage/media/100/local/files/Documents/*",
75                "rm -rf /storage/media/100/local/files/Documents/.*",
76                "rm -rf /storage/media/100/local/files/Download/*",
77                "rm -rf /storage/media/100/local/files/Download/.*",
78                "rm -rf /storage/media/100/local/files/Pictures/*",
79                "rm -rf /storage/media/100/local/files/Pictures/.*",
80                "rm -rf /storage/media/100/local/files/Videos/*",
81                "rm -rf /storage/media/100/local/files/Videos/.*",
82                "rm -rf /data/app/el2/100/database/com.ohos.medialibrary.medialibrarydata/*",
83                "kill -9 `pidof com.ohos.medialibrary.medialibrarydata`",
84                "sleep 5"
85            ]
86        },
87        {
88            "test-file-name": [
89                "ActsMediaLibraryGetThumbnailTest.hap"
90            ],
91            "type": "AppInstallKit",
92            "cleanup-apps": true
93        }
94    ]
95}