Test.json 2.1 KB
Newer Older
Z
zhaoyuan17 已提交
1 2 3 4
{
    "description": "Configuration for hjunit demo Tests",
    "driver": {
        "type": "JSUnitTest",
Z
zhaoyuan17 已提交
5
        "test-timeout": "60000",
Z
zhaoyuan17 已提交
6
        "package": "com.example.actsbmsmetadatatest",
J
jiyong 已提交
7
        "shell-timeout": "60000"
Z
zhaoyuan17 已提交
8 9 10 11
    },
    "kits": [
        {
            "test-file-name": [
Z
zhaoyuan17 已提交
12 13 14
                "ActsBmsMetaDataTest.hap",
                "bmsSystemBundleTest1.hap",
                "bmsVendorBundleTest1.hap"
Z
zhaoyuan17 已提交
15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30
            ],
            "type": "AppInstallKit",
            "cleanup-apps": true
        },
        {
            "type": "ShellKit",
            "run-command": [
                "remount",
                "mkdir /data/test"
            ]
        },
        {
            "type": "PushKit",
            "push": [
                "bmsThirdBundleTest1.hap->/data/test/bmsThirdBundleTest1.hap",
                "bmsThirdBundleTest5.hap->/data/test/bmsThirdBundleTest5.hap",
I
inter515 已提交
31 32 33 34
                "bmsSystemBundleTest1.hap->/data/test/bmsSystemBundleTest1.hap",
                "bmsVendorBundleTest1.hap->/data/test/bmsVendorBundleTest1.hap",
                "bmsThirdBundleTest7.hap->/data/test/bmsThirdBundleTest7.hap",
                "bmsThirdBundleTest7A.hap->/data/test/bmsThirdBundleTest7A.hap"
Z
zhaoyuan17 已提交
35 36 37 38 39
            ]
        },
        {
            "type": "ShellKit",
            "run-command": [
I
inter515 已提交
40 41 42 43 44 45 46 47 48 49 50 51 52 53
                "bm install -p /data/test/bmsThirdBundleTest1.hap",
                "bm install -p /data/test/bmsSystemBundleTest1.hap",
                "bm install -p /data/test/bmsVendorBundleTest1.hap",
                "bm install -p /data/test/bmsThirdBundleTest5.hap",
                "bm install -p /data/test/bmsThirdBundleTest7.hap",
                "bm install -p /data/test/bmsThirdBundleTest7A.hap"
            ],
            "teardown-command":[
                "bm uninstall -n com.example.third1",
                "bm uninstall -n com.example.system1",
                "bm uninstall -n com.example.vendor1",
                "bm uninstall -n com.example.third5",
                "bm uninstall -n com.example.third7",
                "rm -rf /data/test/"
Z
zhaoyuan17 已提交
54 55 56 57
            ]
        }
    ]
}