diff options
Diffstat (limited to 'meta/lib/oeqa/core/tests/cases/data.py')
-rw-r--r-- | meta/lib/oeqa/core/tests/cases/data.py | 20 |
1 files changed, 20 insertions, 0 deletions
diff --git a/meta/lib/oeqa/core/tests/cases/data.py b/meta/lib/oeqa/core/tests/cases/data.py new file mode 100644 index 0000000000..88003a6adc --- /dev/null +++ b/meta/lib/oeqa/core/tests/cases/data.py | |||
@@ -0,0 +1,20 @@ | |||
1 | # Copyright (C) 2016 Intel Corporation | ||
2 | # Released under the MIT license (see COPYING.MIT) | ||
3 | |||
4 | from oeqa.core.case import OETestCase | ||
5 | from oeqa.core.decorator.oetag import OETestTag | ||
6 | from oeqa.core.decorator.data import OETestDataDepends | ||
7 | |||
8 | class DataTest(OETestCase): | ||
9 | data_vars = ['IMAGE', 'ARCH'] | ||
10 | |||
11 | @OETestDataDepends(['MACHINE',]) | ||
12 | @OETestTag('dataTestOk') | ||
13 | def testDataOk(self): | ||
14 | self.assertEqual(self.td.get('IMAGE'), 'core-image-minimal') | ||
15 | self.assertEqual(self.td.get('ARCH'), 'x86') | ||
16 | self.assertEqual(self.td.get('MACHINE'), 'qemuarm') | ||
17 | |||
18 | @OETestTag('dataTestFail') | ||
19 | def testDataFail(self): | ||
20 | pass | ||