Test.json 1.7 KB
Newer Older
1
{
2
    "description": "Configuration for videoEncoder Tests",
3 4 5 6
    "driver": {
        "type": "JSUnitTest",
        "test-timeout": "2000000",
        "package": "ohos.acts.multimedia.video.videoencoder",
7
        "shell-timeout": "60000"
8 9
    },
    "kits": [
10 11 12 13 14 15 16 17
        {
            "test-file-name": [
                "ActsVideoEncoderJsTest.hap"
            ],
            "type": "AppInstallKit",
            "cleanup-apps": true
        },
        {
18 19
            "type": "ShellKit",
            "run-command": [
20
                "setenforce 0",
21
                "rm -rf /storage/media/100/local/files/*",
22 23
                "mkdir -p /data/app/el2/100/base/ohos.acts.multimedia.video.videoencoder/haps/entry/files/",
                "chmod 777 -R /data/app/el2/100/base/ohos.acts.multimedia.video.videoencoder/haps/entry/files/"
24 25 26
            ],
            "teardown-command":[
            ]
27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45
        },
        {
            "type": "PushKit",
            "pre-push": [
            ],
            "push": [
                "./resource/media/es/mpeg4_320_240.es ->/data/app/el2/100/base/ohos.acts.multimedia.video.videoencoder/haps/entry/files/",
                "./resource/media/es/out_320_240_10s.h264 ->/data/app/el2/100/base/ohos.acts.multimedia.video.videoencoder/haps/entry/files/"
            ]
        },
        {
            "type": "ShellKit",
            "run-command": [
                "chmod 777 -R /data/app/el2/100/base/ohos.acts.multimedia.video.videoencoder/haps/entry/files/",
                "chmod 777 /data/app/el2/100/base/ohos.acts.multimedia.video.videoencoder/haps/entry/files/*"
            ],
            "teardown-command":[
                "setenforce 1"
            ]
46 47
        }
    ]
48
}