Test Case Index

Test Case source

kselftest-ptrace

The kernel contains a set of 'self tests' under the tools/testing/selftests/. These are intended to be small unit tests to exercise individual code paths in the kernel. kself-ptrace uses ptrace or process trace system call that provides a means by which one process can observe and control the execution of another process and examine and change the tracee's memory and registers.

Example JSON job file

{
    "device_type": "arndale",
    "health_check": false,
    "job_name": "example kselftest-ptrace",
    "timeout": 1800
    "actions": [
        {
            "command": "deploy_linaro_image",
            "parameters": {
                "image": "<IMAGE_URL>"
            }
        },
        {
            "command": "lava_test_shell",
            "parameters": {
                "testdef_repos": [
                    {
                        "git-repo": "git://git.linaro.org/qa/test-definitions.git",
                        "testdef": "ubuntu/kselftest-ptrace.yaml"
                    }
                ],
                "timeout": 900
            }
        },

        {
            "command": "submit_results",
            "parameters": {
                "server": "http://username@your.lava.server/RPC2/",
                "stream": "/your/bundle/stream/",
                "token": "<your_token>"
            }
        }
    ],
}

Platform/QA/TestCases/Automated/ubuntu_kselftest-ptrace (last modified 2016-03-30 19:41:44)