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