Test.json 4.4 KB
Newer Older
G
gudehe 已提交
1 2 3 4
{
    "description": "Configuration for mediaLibrary Tests",
    "driver": {
        "type": "JSUnitTest",
J
jiyong_sd 已提交
5
        "test-timeout": "600000",
G
gudehe 已提交
6
        "package": "ohos.acts.multimedia.mediaLibrary",
J
jiyong_sd 已提交
7
        "shell-timeout": "600000"
G
gudehe 已提交
8 9
    },
    "kits": [
J
JH C 已提交
10 11 12 13 14 15 16 17 18
        {
            "type": "ShellKit",
            "pre-push": [
            ],
            "run-command": [
                "rm -rf /storage/media/100/local/files/*",
                "rm -rf /data/accounts/account_0/appdata/com.ohos.medialibrary.MediaLibraryDataA/*"
            ]
        },
G
gudehe 已提交
19 20 21 22 23
        {
            "type": "PushKit",
            "pre-push": [
            ],
            "push": [
G
gudehe 已提交
24 25
                "./resource/medialibrary/01.jpg ->/storage/media/100/local/files",
                "./resource/medialibrary/01.mp3 ->/storage/media/100/local/files",
26 27 28
                "./resource/medialibrary/01.mp4 ->/storage/media/100/local/files",
                "./resource/medialibrary/test.dat ->/storage/media/100/local/files",
                "./resource/medialibrary/test2.dat ->/storage/media/100/local/files"
G
gudehe 已提交
29 30 31 32 33
            ]
        },
        {
            "type": "ShellKit",
            "run-command": [
34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51
                "mkdir /storage/media/100/local/files/Pictures",
                "cp /storage/media/100/local/files/01.jpg /storage/media/100/local/files/Pictures/",
                "cp /storage/media/100/local/files/01.mp3 /storage/media/100/local/files/Pictures/",
                "cp /storage/media/100/local/files/01.mp4 /storage/media/100/local/files/Pictures/",
                "mkdir /storage/media/100/local/files/Pictures/weixin",
                "cp /storage/media/100/local/files/01.jpg /storage/media/100/local/files/Pictures/weixin",
                "cp /storage/media/100/local/files/01.mp3 /storage/media/100/local/files/Pictures/weixin",
                "cp /storage/media/100/local/files/01.mp4 /storage/media/100/local/files/Pictures/weixin",
                "mkdir /storage/media/100/local/files/Camera",
                "cp /storage/media/100/local/files/01.jpg /storage/media/100/local/files/Camera/01.jpg",
                "cp /storage/media/100/local/files/01.jpg /storage/media/100/local/files/Camera/02.jpg",
                "cp /storage/media/100/local/files/01.mp3 /storage/media/100/local/files/Camera/01.mp3",
                "cp /storage/media/100/local/files/01.mp3 /storage/media/100/local/files/Camera/02.mp3",
                "cp /storage/media/100/local/files/01.mp4 /storage/media/100/local/files/Camera/01.mp4",
                "cp /storage/media/100/local/files/01.mp4 /storage/media/100/local/files/Camera/02.mp4",
                "mkdir /storage/media/100/local/files/Documents",
                "cp /storage/media/100/local/files/test.dat /storage/media/100/local/files/Documents/test.dat",
                "cp /storage/media/100/local/files/test2.dat /storage/media/100/local/files/Documents/test2.dat",
52 53 54 55 56 57 58 59
                "mkdir /storage/media/100/local/files/Pictures/DeleteAlbumPro",
                "cp /storage/media/100/local/files/01.jpg /storage/media/100/local/files/Pictures/DeleteAlbumPro",
                "cp /storage/media/100/local/files/01.mp3 /storage/media/100/local/files/Pictures/DeleteAlbumPro",
                "cp /storage/media/100/local/files/01.mp4 /storage/media/100/local/files/Pictures/DeleteAlbumPro",
                "mkdir /storage/media/100/local/files/Pictures/DeleteAlbumCallback",
                "cp /storage/media/100/local/files/01.jpg /storage/media/100/local/files/Pictures/DeleteAlbumCallback",
                "cp /storage/media/100/local/files/01.mp3 /storage/media/100/local/files/Pictures/DeleteAlbumCallback",
                "cp /storage/media/100/local/files/01.mp4 /storage/media/100/local/files/Pictures/DeleteAlbumCallback",
G
gudehe 已提交
60
                "chmod -R 777 /storage/media/100/local/files/*",
P
panqiangbiao 已提交
61 62 63
                "chmod -R 777 /data/service/el2/100/hmdfs/account/files/*",
                "killall com.ohos.medialibrary.MediaScannerAbilityA",
                "aa start  -a MediaScannerAbility -b com.ohos.medialibrary.MediaScannerAbilityA"
G
gudehe 已提交
64 65
            ],
            "teardown-command":[
T
tongtongdad 已提交
66
                "rm -rf /storage/media/100/local/files/*",
67
				"rm -rf /data/accounts/account_0/appdata/com.ohos.medialibrary.MediaLibraryDataA/database/*"
G
gudehe 已提交
68 69 70 71
            ]
        },
        {
            "test-file-name": [
T
tongtongdad 已提交
72
                "ActsMediaLibraryJsTest.hap"
G
gudehe 已提交
73 74 75 76 77
            ],
            "type": "AppInstallKit",
            "cleanup-apps": true
        }
    ]
G
gudehe 已提交
78
}
P
panqiangbiao 已提交
79