blob: 9e0e68c43f3cbe6852f93229c7ad541f15631bbb (
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
|
metadata:
name: audit
format: "Lava-Test-Shell Test Definition 1.0"
description: "Run Audit test suite on Ubuntu"
maintainer:
- naresh.kamboju@linaro.org
os:
- ubuntu
scope:
- functional
devices:
- juno
install:
steps:
- 'wget http://testdata.validation.linaro.org/tests/audit-2.4.1.tar.gz'
- 'tar -xf audit-2.4.1.tar.gz'
- 'cd audit-2.4.1'
- './configure'
- 'make all'
- 'make install'
- 'cd -'
deps:
- wget
- make
- automake
- aptitude
- expect
- cpp
- gcc
- binutils
- virt-what
- libpod-latex-perl
- libcap-dev
- selinux-policy-default
- selinux-policy-dev
- libselinux1-dev
- libselinux1
- libaudit-dev
- python-dev
- libldap2-dev
- libsasl2-dev
- libssl-dev
- swig
- auditd
run:
steps:
- 'HOME_PWD=`pwd`'
- 'mkdir /usr/local/eal4_testing'
- 'chmod 755 /usr/local/eal4_testing'
- 'cd /usr/local/eal4_testing'
- 'wget http://people.linaro.org/~naresh.kamboju/audit-test-code.tar.gz'
- 'tar -xf audit-test-code.tar.gz'
- 'chown -R root:root /usr/local/eal4_testing'
- 'chmod a+rX /usr/local/eal4_testing'
- 'cd audit-test-code/audit-test/'
- 'make'
- 'groupadd wheel'
- 'useradd -c "EAL Test User" -g wheel eal'
- '/usr/bin/expect $HOME_PWD/ubuntu/scripts/audit-make-run.exp'
- 'egrep "PASS|FAIL|ERROR" audit.rollup.log || true'
- 'lava-test-case audit-test --result pass'
- 'lava-test-case-attach audit-test audit.rollup.log text/plan'
parse:
pattern: "^\\[\\d*\\]\\s+(?P<test_case_id>\\w+)\\s+(?P<result>ERROR|FAIL|PASS)\\s+"
fixupdict:
ERROR: error
FAIL: fail
PASS: pass
|