Test.json 4.4 KB
Newer Older
G
gudehe 已提交
1 2 3 4
{
    "description": "Configuration for mediaLibrary Tests",
    "driver": {
        "type": "JSUnitTest",
P
panqiangbiao 已提交
5
        "test-timeout": "600000",
G
gudehe 已提交
6
        "package": "ohos.acts.multimedia.mediaLibrary",
P
panqiangbiao 已提交
7
        "shell-timeout": "600000"
G
gudehe 已提交
8 9
    },
    "kits": [
J
JH C 已提交
10 11 12 13 14 15
        {
            "type": "ShellKit",
            "pre-push": [
            ],
            "run-command": [
                "rm -rf /storage/media/100/local/files/*",
P
panqiangbiao 已提交
16
                "rm -rf /data/accounts/account_0/appdata/com.ohos.medialibrary.medialibrarydata/*",
J
JH C 已提交
17
                "mkdir -pv /storage/media/100/local/files/{Pictures,Videos,Audios,Documents}",
P
panqiangbiao 已提交
18
                "mkdir -p /data/accounts/account_0/appdata/com.ohos.medialibrary.medialibrarydata"
J
JH C 已提交
19 20
            ]
        },
G
gudehe 已提交
21 22 23 24 25
        {
            "type": "PushKit",
            "pre-push": [
            ],
            "push": [
P
panqiangbiao 已提交
26 27 28 29
                "./resource/medialibrary/01.jpg ->/data/accounts/account_0/appdata/com.ohos.medialibrary.medialibrarydata",
                "./resource/medialibrary/01.mp3 ->/data/accounts/account_0/appdata/com.ohos.medialibrary.medialibrarydata",
                "./resource/medialibrary/01.mp4 ->/data/accounts/account_0/appdata/com.ohos.medialibrary.medialibrarydata",
                "./resource/medialibrary/01.dat ->/data/accounts/account_0/appdata/com.ohos.medialibrary.medialibrarydata"
G
gudehe 已提交
30 31 32 33 34
            ]
        },
        {
            "type": "ShellKit",
            "run-command": [
J
JH C 已提交
35
                "mkdir -pv /storage/media/100/local/files/{Pictures/{Static,Static01,Album/Static,SR001PRO,SR001CB,Dynamic,Dynamic01,Dynamic02,Dynamic022,DeleteCb01,AblumInfo,DeletePro01,Delete01,Temp},Videos/{Static,Static01,Album/Static,SR001PRO,SR001CB,Dynamic,Dynamic01,Dynamic02,DeleteCb01,AblumInfo,DeletePro01,Delete01},Audios/{Static,Static01,Album/Static,SR001PRO,SR001CB,Dynamic,Dynamic01,Dynamic02,DeleteCb01,AblumInfo,DeletePro01,Delete01},Documents/{Static,Static01,Album/Static,SR001PRO,SR001CB,Dynamic,Dynamic01,Dynamic02,DeleteCb01,AblumInfo,DeletePro01,Delete01}}",
P
panqiangbiao 已提交
36 37 38 39
                "for d in Static Album/Static Dynamic Dynamic01 Dynamic022 AblumInfo; do for i in $$(seq 3); do cp /data/accounts/account_0/appdata/com.ohos.medialibrary.medialibrarydata/01.jpg /storage/media/100/local/files/Pictures/$$d/0$$i.jpg; done;done;",
                "for d in Static Album/Static Dynamic Dynamic01 Dynamic02 AblumInfo; do for i in $$(seq 3); do cp /data/accounts/account_0/appdata/com.ohos.medialibrary.medialibrarydata/01.mp3 /storage/media/100/local/files/Audios/$$d/0$$i.mp3; done;done;",
                "for d in Static Album/Static Dynamic Dynamic01 Dynamic02 AblumInfo; do for i in $$(seq 3); do cp /data/accounts/account_0/appdata/com.ohos.medialibrary.medialibrarydata/01.mp4 /storage/media/100/local/files/Videos/$$d/0$$i.mp4; done;done;",
                "for d in Static Album/Static Dynamic Dynamic01 Dynamic02 AblumInfo; do for i in $$(seq 3); do cp /data/accounts/account_0/appdata/com.ohos.medialibrary.medialibrarydata/01.dat /storage/media/100/local/files/Documents/$$d/0$$i.dat; done;done;",
J
JH C 已提交
40
               
P
panqiangbiao 已提交
41 42 43 44
                "for d in SR001PRO SR001CB DeleteCb01 DeletePro01 Static01;  do cp /data/accounts/account_0/appdata/com.ohos.medialibrary.medialibrarydata/01.jpg /storage/media/100/local/files/Pictures/$$d ;done;",
                "for d in SR001PRO SR001CB DeleteCb01 DeletePro01 Static01;  do cp /data/accounts/account_0/appdata/com.ohos.medialibrary.medialibrarydata/01.mp3 /storage/media/100/local/files/Audios/$$d ;done;",
                "for d in SR001PRO SR001CB DeleteCb01 DeletePro01 Static01;  do cp /data/accounts/account_0/appdata/com.ohos.medialibrary.medialibrarydata/01.mp4 /storage/media/100/local/files/Videos/$$d ;done;",
                "for d in SR001PRO SR001CB DeleteCb01 DeletePro01 Static01;  do cp /data/accounts/account_0/appdata/com.ohos.medialibrary.medialibrarydata/01.dat /storage/media/100/local/files/Documents/$$d ;done;",
J
JH C 已提交
45

G
gudehe 已提交
46
                "chmod -R 777 /storage/media/100/local/files/*",
P
panqiangbiao 已提交
47
                "chmod -R 777 /data/service/el2/100/hmdfs/account/files/*",
48 49
                "hilog -Q pidoff",
                "hilog -p off",
P
panqiangbiao 已提交
50 51 52 53
                "aa start -a com.ohos.photos.MainAbility -b com.ohos.photos",
                "sleep 60",
                "sleep 60",
                "sleep 60"
G
gudehe 已提交
54 55 56 57
            ]
        },
        {
            "test-file-name": [
T
tongtongdad 已提交
58
                "ActsMediaLibraryJsTest.hap"
G
gudehe 已提交
59 60 61 62 63
            ],
            "type": "AppInstallKit",
            "cleanup-apps": true
        }
    ]
P
panqiangbiao 已提交
64
}