diff options
author | Aníbal Limón <anibal.limon@linux.intel.com> | 2016-10-27 16:39:47 -0500 |
---|---|---|
committer | Richard Purdie <richard.purdie@linuxfoundation.org> | 2017-01-23 12:05:19 +0000 |
commit | b61326efb1bc66202831f9710716b5171a722039 (patch) | |
tree | 31e229ee225f0a816eb60a5fb721b021f8eab3e2 /meta/lib/oeqa/runtime/buildiptables.py | |
parent | ba1aec3407e38f4dc4141e4d6300b3d538dc9dd3 (diff) | |
download | poky-b61326efb1bc66202831f9710716b5171a722039.tar.gz |
oeqa/runtime: Move to runtime_cases
The new oeqa core framework will modify the structure of the runtime
folder the new runtime folder will have python code inside to support
runtime test cases.
(From OE-Core rev: 637b712096e9d230e15b1a432a561e4118db34c8)
Signed-off-by: Aníbal Limón <anibal.limon@linux.intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
Diffstat (limited to 'meta/lib/oeqa/runtime/buildiptables.py')
-rw-r--r-- | meta/lib/oeqa/runtime/buildiptables.py | 33 |
1 files changed, 0 insertions, 33 deletions
diff --git a/meta/lib/oeqa/runtime/buildiptables.py b/meta/lib/oeqa/runtime/buildiptables.py deleted file mode 100644 index a0e82f0dde..0000000000 --- a/meta/lib/oeqa/runtime/buildiptables.py +++ /dev/null | |||
@@ -1,33 +0,0 @@ | |||
1 | from oeqa.oetest import oeRuntimeTest, skipModule | ||
2 | from oeqa.utils.decorators import * | ||
3 | from oeqa.runtime.utils.targetbuildproject import TargetBuildProject | ||
4 | |||
5 | def setUpModule(): | ||
6 | if not oeRuntimeTest.hasFeature("tools-sdk"): | ||
7 | skipModule("Image doesn't have tools-sdk in IMAGE_FEATURES") | ||
8 | |||
9 | class BuildIptablesTest(oeRuntimeTest): | ||
10 | |||
11 | @classmethod | ||
12 | def setUpClass(self): | ||
13 | dl_dir = oeRuntimeTest.tc.d.getVar('DL_DIR', True) | ||
14 | self.project = TargetBuildProject(oeRuntimeTest.tc.target, | ||
15 | "http://downloads.yoctoproject.org/mirror/sources/iptables-1.4.13.tar.bz2", | ||
16 | dl_dir=dl_dir) | ||
17 | self.project.download_archive() | ||
18 | |||
19 | @testcase(206) | ||
20 | @skipUnlessPassed("test_ssh") | ||
21 | def test_iptables(self): | ||
22 | self.assertEqual(self.project.run_configure(), 0, | ||
23 | msg="Running configure failed") | ||
24 | |||
25 | self.assertEqual(self.project.run_make(), 0, | ||
26 | msg="Running make failed") | ||
27 | |||
28 | self.assertEqual(self.project.run_install(), 0, | ||
29 | msg="Running make install failed") | ||
30 | |||
31 | @classmethod | ||
32 | def tearDownClass(self): | ||
33 | self.project.clean() | ||