Test.json 2.2 KB
Newer Older
W
weiyufeng 已提交
1 2 3 4 5 6 7 8 9 10 11
{
    "description": "Configuration for mediaLibrary Tests",
    "driver": {
        "type": "JSUnitTest",
        "test-timeout": "300000",
        "package": "ohos.acts.multimedia.mediaLibrary",
        "shell-timeout": "600000"
    },
    "kits": [
        {
            "type": "ShellKit",
C
caochuan 已提交
12
            "pre-push": [],
W
weiyufeng 已提交
13 14 15 16
            "run-command": [
                "rm -rf /storage/media/100/local/files/*",
                "rm -rf /data/app/el2/100/database/com.ohos.medialibrary.medialibrarydata/*",
                "mkdir -pv /storage/media/100/local/files/{Pictures,Videos,Audios,Documents}",
C
caochuan 已提交
17
                "mkdir -p /storage/media/100/local/temp"
W
weiyufeng 已提交
18 19 20 21
            ]
        },
        {
            "type": "PushKit",
C
caochuan 已提交
22
            "pre-push": [],
W
weiyufeng 已提交
23
            "push": [
C
caochuan 已提交
24 25 26 27
                "./resource/medialibrary/01.jpg ->/storage/media/100/local/temp",
                "./resource/medialibrary/01.mp3 ->/storage/media/100/local/temp",
                "./resource/medialibrary/01.mp4 ->/storage/media/100/local/temp",
                "./resource/medialibrary/01.dat ->/storage/media/100/local/temp"
W
weiyufeng 已提交
28 29 30 31 32 33
            ]
        },
        {
            "type": "ShellKit",
            "run-command": [
                "mkdir -pv /storage/media/100/local/files/Pictures/ImageInfo",
C
caochuan 已提交
34
                "mkdir -pv /storage/media/100/local/files/Audios/Static",
C
caochuan 已提交
35 36
                "cp /storage/media/100/local/temp/01.jpg /storage/media/100/local/files/Pictures/ImageInfo/01.jpg",
                "cp /storage/media/100/local/temp/01.mp3 /storage/media/100/local/files/Audios/Static/01.mp3",
W
weiyufeng 已提交
37 38 39 40
                "chmod -R 777 /storage/media/100/local/files/*",
                "chmod -R 777 /data/service/el2/100/hmdfs/account/files/*",
                "hilog -Q pidoff",
                "hilog -p off",
C
caochuan 已提交
41
                "hilog -b I",
C
caochuan 已提交
42
                "hilog -b D -D 0xD002B70",
Y
yangbo 已提交
43
                "scanner",
W
weiyufeng 已提交
44
                "sleep 10"
1
modify  
18742514821 已提交
45 46 47
            ],
            "teardown-command":[
                "hilog -b X -D 0xD002B70"
W
weiyufeng 已提交
48 49 50 51
            ]
        },
        {
            "test-file-name": [
C
caochuan 已提交
52
                "ActsMediaLibraryFileKeyTest.hap"
W
weiyufeng 已提交
53 54 55 56 57 58
            ],
            "type": "AppInstallKit",
            "cleanup-apps": true
        }
    ]
}