Test.json 3.0 KB
Newer Older
W
weiyufeng 已提交
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17
{
    "description": "Configuration for mediaLibrary Tests",
    "driver": {
        "type": "JSUnitTest",
        "test-timeout": "300000",
        "package": "ohos.acts.multimedia.mediaLibrary",
        "shell-timeout": "600000"
    },
    "kits": [
        {
            "type": "ShellKit",
            "pre-push": [
            ],
            "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}",
C
caochuan 已提交
18
                "mkdir -p /storage/media/100/local/temp"
W
weiyufeng 已提交
19 20 21 22 23 24 25
            ]
        },
        {
            "type": "PushKit",
            "pre-push": [
            ],
            "push": [
C
caochuan 已提交
26 27 28
                "./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"
W
weiyufeng 已提交
29 30 31 32 33
            ]
        },
        {
            "type": "ShellKit",
            "run-command": [
34
                "mkdir -pv /storage/media/100/local/files/Pictures/Static",
W
weiyufeng 已提交
35 36
                "mkdir -pv /storage/media/100/local/files/Videos/Static",
                "mkdir -pv /storage/media/100/local/files/Audios/Static",
37 38 39
                "for i in $$(seq 6); do mkdir -pv /storage/media/100/local/files/Pictures/DynamicPro$$i; done;",
                "for i in $$(seq 6); do mkdir -pv /storage/media/100/local/files/Pictures/DynamicCb$$i; done;",

C
caochuan 已提交
40 41 42
                "for d in Static; do for i in $$(seq 5); do cp /storage/media/100/local/temp/01.jpg /storage/media/100/local/files/Pictures/$$d/0$$i.jpg; done;done;",
                "for d in Static; do for i in $$(seq 5); do cp /storage/media/100/local/temp/01.mp3 /storage/media/100/local/files/Audios/$$d/0$$i.mp3; done;done;",
                "for d in Static; do for i in $$(seq 5); do cp /storage/media/100/local/temp/01.mp4 /storage/media/100/local/files/Videos/$$d/0$$i.mp4; done;done;",
W
weiyufeng 已提交
43
               
44
                "for d in DynamicPro1 DynamicPro2 DynamicPro3 DynamicPro4 DynamicPro5 DynamicPro6 DynamicCb1 DynamicCb2 DynamicCb3 DynamicCb4 DynamicCb5 DynamicCb6;  do cp /storage/media/100/local/temp/01.jpg /storage/media/100/local/files/Pictures/$$d ;done;",
W
weiyufeng 已提交
45 46 47 48 49

                "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 已提交
50
                "hilog -b I",
W
weiyufeng 已提交
51
                "hilog -b D -D 0xD002B70", 
Y
yangbo 已提交
52
                "scanner",
W
weiyufeng 已提交
53
                "sleep 10"
1
modify  
18742514821 已提交
54 55 56
            ],
            "teardown-command":[
                "hilog -b X -D 0xD002B70"
W
weiyufeng 已提交
57 58 59 60
            ]
        },
        {
            "test-file-name": [
C
caochuan 已提交
61
                "ActsMediaLibraryAlbumTest.hap"
W
weiyufeng 已提交
62 63 64 65 66
            ],
            "type": "AppInstallKit",
            "cleanup-apps": true
        }
    ]
Y
yangbo 已提交
67
}