summaryrefslogtreecommitdiff
path: root/ubuntu/install-uprobe-kernel-on-arndale.yaml
blob: 7b4151bafabdad5a654143615a9eb47aaae59a41 (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
67
68
69
70
71
72
metadata:
    name: install-uprobe-kernel-on-arndale
    format: "Lava-Test-Shell Test Definition 1.0"
    description: "Build and install uprobes kernel on arndale. Pre-requirement of uprobes_systemtap_test.yaml"
    maintainer:
        - naresh.kamboju@linaro.org
    os:
        - ubuntu
    scope:
        - functional
    devices:
        - arndale
    timeout: 14400

install:
    deps:
        - build-essential
        - m4
        - dejagnu
        - bzip2
        - wget
        - gettext
        - git
        - bc
        - expect
        - u-boot-tools

    steps:
        - 'git clone git://git.linaro.org/kernel/linux-linaro-tracking.git /usr/src/linux-linaro-tracking'
        - 'echo git_clone_linux-linaro-tracking: pass'
        - 'git clone git://git.linaro.org/qa/test-definitions.git /usr/src/test-definitions'
        - 'echo git_clone_test-definitions: pass'
        - 'cd /usr/src/linux-linaro-tracking'
        - 'git checkout -b linux-linaro-uprobes origin/linux-linaro'
        - 'echo checkout_linux-linaro: pass'
        - 'ARCH=arm scripts/kconfig/merge_config.sh linaro/configs/linaro-base.conf linaro/configs/distribution.conf linaro/configs/kvm-host.conf linaro/configs/xen.conf linaro/configs/uprobes.conf linaro/configs/arndale.conf'
        - 'make -j4  ARCH=arm LOADADDR=0x40008000 uImage'
        - 'echo make_uImage: pass'
        - 'make ARCH=arm modules'
        - 'echo make_modules: pass'
        - 'make ARCH=arm modules_install'
        - 'echo make_modules_install: pass'
        - 'cp /usr/src/test-definitions/common/scripts/make-kernel-install.exp /usr/src/linux-linaro-tracking/'
        - 'echo copy_make-kernel-install: pass'
        - '/usr/bin/expect make-kernel-install.exp'
        - 'echo make-kernel-install: pass'
        - 'make ARCH=arm headers_install'
        - 'echo make_headers-install: pass'
        - 'mount /dev/mmcblk1p5 /mnt/'
        - 'echo mount_boot_partition: pass'
        - 'cp arch/arm/boot/uImage /mnt/'
        - 'echo copy_uImage: pass'
        - 'umount /mnt/'
        - 'echo umount_boot_partition: pass'
run:
    steps:
        - 'cat /proc/version'
        - 'df -h'
parse:
    pattern: "^(?P<test_case_id>\\S+)\\s+:\\s+(?P<result>\\S+)$"
    fixupdict:
          PASS: pass
          FAIL: fail

# Linux kernel clone, build, install would take 3 hours on target.
# 10 GB test partition needed for install-uprobe-kernel and uprobes_systemtap_test
# uImage will be copied on to boot partition.
# Newly installed kernel image would be booted in next reboot by lava_test_shell
# uprobes_systemtap_test.yaml would be run after this test.
# Currently test intended to run on arndale target device.
# Example json file:
# http://people.linaro.org/~naresh.kamboju/uprobe-systemtap-test-on-lava.json