Merge lp:~linaro-foundations/lava-test/wifi-enablement into lp:lava-test/0.0

Proposed by Ricardo Salveti
Status: Merged
Merged at revision: 115
Proposed branch: lp:~linaro-foundations/lava-test/wifi-enablement
Merge into: lp:lava-test/0.0
Diff against target: 84 lines (+54/-0)
3 files modified
doc/tests.rst (+6/-0)
lava_test/core/providers.py (+1/-0)
lava_test/test_definitions/wifi-enablement.py (+47/-0)
To merge this branch: bzr merge lp:~linaro-foundations/lava-test/wifi-enablement
Reviewer Review Type Date Requested Status
Paul Larson (community) Approve
Review via email: mp+90647@code.launchpad.net

Description of the change

Adding wifi-enablement test case, to help validating and testing the wireless support.

Executed the test case as out-of-the tree at LAVA and also by installing it locally with lava-test, both worked fine and the results were properly parsed.

To post a comment you must log in.
Revision history for this message
Paul Larson (pwlars) wrote :

One thing you might want to consider for future revisions, is the ability to override the defaults if, for instance, you want to configure the test to connect to different access points, etc.

review: Approve

Preview Diff

[H/L] Next/Prev Comment, [J/K] Next/Prev File, [N/P] Next/Prev Hunk
1=== modified file 'doc/tests.rst'
2--- doc/tests.rst 2012-01-19 00:11:33 +0000
3+++ doc/tests.rst 2012-01-30 05:04:25 +0000
4@@ -23,6 +23,7 @@
5 * `tiobench`_
6 * `x11perf`_
7 * `xrestop`_
8+ * `wifi-enablement`_
9
10 bootchart
11 +++++++++
12@@ -87,3 +88,8 @@
13 xrestop
14 +++++++
15 .. automodule:: lava_test.test_definitions.xrestop
16+
17+wifi-enablement
18++++++++++
19+.. automodule:: lava_test.test_definitions.wifi-enablement
20+
21
22=== modified file 'lava_test/core/providers.py'
23--- lava_test/core/providers.py 2012-01-18 21:45:51 +0000
24+++ lava_test/core/providers.py 2012-01-30 05:04:25 +0000
25@@ -46,6 +46,7 @@
26 'tiobench',
27 'x11perf',
28 'xrestop',
29+ 'wifi-enablement',
30 ]
31
32 def __init__(self, config):
33
34=== added file 'lava_test/test_definitions/wifi-enablement.py'
35--- lava_test/test_definitions/wifi-enablement.py 1970-01-01 00:00:00 +0000
36+++ lava_test/test_definitions/wifi-enablement.py 2012-01-30 05:04:25 +0000
37@@ -0,0 +1,47 @@
38+# Copyright (c) 2012 Linaro
39+#
40+# Author: Ricardo Salveti <rsalveti@linaro.org>
41+#
42+# This program is free software: you can redistribute it and/or modify
43+# it under the terms of the GNU General Public License as published by
44+# the Free Software Foundation, either version 3 of the License, or
45+# (at your option) any later version.
46+#
47+# This program is distributed in the hope that it will be useful,
48+# but WITHOUT ANY WARRANTY; without even the implied warranty of
49+# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
50+# GNU General Public License for more details.
51+#
52+# You should have received a copy of the GNU General Public License
53+# along with this program. If not, see <http://www.gnu.org/licenses/>.
54+
55+"""
56+The WIFI Enablement test cases helps validating basic wireless
57+functionality, like if the adapter is available, able to scan, connect and
58+transfer a file over the network.
59+
60+**URL:** https://code.launchpad.net/~linaro-foundations/linaro-ubuntu/lava-test-wifi-enablement
61+
62+**Default Options:** None
63+"""
64+
65+from lava_test.core.installers import TestInstaller
66+from lava_test.core.parsers import TestParser
67+from lava_test.core.runners import TestRunner
68+from lava_test.core.tests import Test
69+
70+DEFAULT_OPTIONS = ""
71+INSTALLSTEPS = ["bzr branch lp:~linaro-foundations/linaro-ubuntu/lava-test-wifi-enablement wifi-enablement"]
72+DEPS = ["bzr", "wpasupplicant", "isc-dhcp-client", "wireless-tools", "net-tools"]
73+RUNSTEPS = ["cd wifi-enablement; sudo bash -x ./run-test.sh"]
74+PATTERN = "(?P<test_case_id>[a-zA-Z0-9_-]+):\s(?P<result>\w+)"
75+FIXUPS = {
76+ "PASS": "pass",
77+ "FAIL": "fail"
78+ }
79+
80+testinst = TestInstaller(INSTALLSTEPS, deps=DEPS)
81+testrun = TestRunner(RUNSTEPS, default_options=DEFAULT_OPTIONS)
82+testparser = TestParser(PATTERN, fixupdict = FIXUPS)
83+testobj = Test(test_id="wifi-enablement", installer=testinst,
84+ runner=testrun, parser=testparser)

Subscribers

People subscribed via source and target branches