summaryrefslogtreecommitdiffstats
path: root/meta/lib/oeqa/core/cases
diff options
context:
space:
mode:
Diffstat (limited to 'meta/lib/oeqa/core/cases')
-rw-r--r--meta/lib/oeqa/core/cases/__init__.py0
-rw-r--r--meta/lib/oeqa/core/cases/example/data.json1
-rw-r--r--meta/lib/oeqa/core/cases/example/test_basic.py20
3 files changed, 21 insertions, 0 deletions
diff --git a/meta/lib/oeqa/core/cases/__init__.py b/meta/lib/oeqa/core/cases/__init__.py
new file mode 100644
index 0000000000..e69de29bb2
--- /dev/null
+++ b/meta/lib/oeqa/core/cases/__init__.py
diff --git a/meta/lib/oeqa/core/cases/example/data.json b/meta/lib/oeqa/core/cases/example/data.json
new file mode 100644
index 0000000000..21d6b16d17
--- /dev/null
+++ b/meta/lib/oeqa/core/cases/example/data.json
@@ -0,0 +1 @@
{"ARCH": "x86", "IMAGE": "core-image-minimal"} \ No newline at end of file
diff --git a/meta/lib/oeqa/core/cases/example/test_basic.py b/meta/lib/oeqa/core/cases/example/test_basic.py
new file mode 100644
index 0000000000..11cf3800cc
--- /dev/null
+++ b/meta/lib/oeqa/core/cases/example/test_basic.py
@@ -0,0 +1,20 @@
1# Copyright (C) 2016 Intel Corporation
2# Released under the MIT license (see COPYING.MIT)
3
4from oeqa.core.case import OETestCase
5from oeqa.core.decorator.depends import OETestDepends
6
7class OETestExample(OETestCase):
8 def test_example(self):
9 self.logger.info('IMAGE: %s' % self.td.get('IMAGE'))
10 self.assertEqual('core-image-minimal', self.td.get('IMAGE'))
11 self.logger.info('ARCH: %s' % self.td.get('ARCH'))
12 self.assertEqual('x86', self.td.get('ARCH'))
13
14class OETestExampleDepend(OETestCase):
15 @OETestDepends(['OETestExample.test_example'])
16 def test_example_depends(self):
17 pass
18
19 def test_example_no_depends(self):
20 pass