• 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": 70000
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/Camera/*",
18                "rm -rf /storage/media/100/local/files/Documents/*",
19                "rm -rf /storage/media/100/local/files/Download/*",
20                "rm -rf /storage/media/100/local/files/Pictures/*",
21                "rm -rf /storage/media/100/local/files/Videos/*",
22                "mkdir -p /storage/media/100/local/temp",
23                "param set persist.sys.suspend_manager_enabled 0",
24                "reboot",
25                "param set persist.ace.testmode.enabled 1",
26                "power-shell wakeup",
27                "uinput  -T -d 300 600 -m 300 600 300 100 -u 300 100",
28                "power-shell setmode 602"
29            ]
30        },
31        {
32            "type": "PushKit",
33            "pre-push": [],
34            "push": [
35                "./resource/medialibrary/01.jpg ->/storage/media/100/local/temp",
36                "./resource/medialibrary/01.mp3 ->/storage/media/100/local/temp",
37                "./resource/medialibrary/01.mp4 ->/storage/media/100/local/temp",
38                "./resource/medialibrary/01.dat ->/storage/media/100/local/temp"
39            ]
40        },
41        {
42            "type": "ShellKit",
43            "run-command": [
44                "mkdir -pv /storage/media/100/local/files/Pictures/ImageInfo",
45                "mkdir -pv /storage/media/100/local/files/Audios/Static",
46                "cp /storage/media/100/local/temp/01.jpg /storage/media/100/local/files/Pictures/ImageInfo/01.jpg",
47                "cp /storage/media/100/local/temp/01.mp3 /storage/media/100/local/files/Audios/Static/01.mp3",
48                "chmod -R 777 /storage/media/100/local/files/*",
49                "chmod -R 777 /data/service/el2/100/hmdfs/account/files/*",
50                "hilog -Q pidoff",
51                "hilog -p off",
52                "hilog -b I",
53                "hilog -b D -D 0xD002B70",
54                "scanner",
55                "sleep 10"
56            ],
57            "teardown-command": [
58                "rm -rf /storage/media/100/local/files/Audios/*",
59                "rm -rf /storage/media/100/local/files/Camera/*",
60                "rm -rf /storage/media/100/local/files/Documents/*",
61                "rm -rf /storage/media/100/local/files/Download/*",
62                "rm -rf /storage/media/100/local/files/Pictures/*",
63                "rm -rf /storage/media/100/local/files/Videos/*",
64                "rm -rf /storage/media/100/local/temp",
65                "param set persist.sys.suspend_manager_enabled 1",
66                "reboot",
67                "hilog -b X -D 0xD002B70",
68                "power-shell setmode 600"
69            ]
70        },
71        {
72            "test-file-name": [
73                "ActsMediaLibraryFileKeyTest.hap"
74            ],
75            "type": "AppInstallKit",
76            "cleanup-apps": true
77        }
78    ]
79}