aboutsummaryrefslogtreecommitdiff
path: root/templates/lmbench/generic-arm64-uboot-dtb-kernel-ci-lmbench-template.json
blob: 57a04b5337a6e99b522248ad6d43f231070c477d (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
{
    "actions": [
        {
            "command": "deploy_linaro_kernel",
            "metadata": {
                "image.type": "{image_type}",
                "image.url": "{image_url}",
                "kernel.tree": "{tree}",
                "kernel.version": "{kernel_version}",
                "device.tree": "{device_tree}",
                "kernel.endian": "{endian}",
                "kernel.defconfig": "{defconfig}",
                "platform.fastboot": "{fastboot}",
                "test.plan": "{test_plan}",
                "test.suite": "{test_suite}",
                "test.set": "{test_set}",
                "test.desc": "{test_desc}",
                "test.type": "{test_type}"
            },
            "parameters": {
                "dtb": "{dtb_url}",
                "kernel": "{kernel_url}",
                "overlays": ["{modules_url}"],
                "ramdisk": "http://storage.kernelci.org/images/rootfs/buildroot/arm64/tests/rootfs.cpio.gz"
            }
        },
        {
            "command": "boot_linaro_image",
            "parameters": {
                "test_image_prompt": "sh-4.3#"
            }
        },
        {
            "command": "lava_command_run",
            "parameters": {
                "commands": [
                    "export LAVA_TESTDIR=/usr/share/linaro-testsuites",
                    "cd ${LAVA_TESTDIR}",
                    "./common/scripts/lmbench.sh 2>&1| tee lmbench.log",
                    "./common/scripts/parse_lmbench.sh lmbench.log ms result_lmbench.log",
                    "cat result_lmbench.log",
                    "lava-test-run-attach result_lmbench.log text/plain"
                ],
                "fixupdict": [
                    "PASS:pass",
                    "FAIL:fail",
                    "SKIP:skip"
                ],
                "parser": "^(?P<test_case_id>[^:]+):\\s*(?P<measurement>[0-9.]+)\\s+(?P<units>\\w+)\\s+(?P<result>\\w+)",
                "timeout": 1800
            }
        },
        {
            "command": "submit_results",
            "parameters": {
                "server": "LAVA_SERVER",
                "stream": "BUNDLE_STREAM"
            }
        }
    ],
    "device_type": "{device_type}",
    "job_name": "{job_name}",
    "logging_level": "DEBUG",
    "priority": "{priority}",
    "timeout": 1811
}