diff options
author | Ross Burton <ross.burton@intel.com> | 2015-10-12 12:55:04 +0100 |
---|---|---|
committer | Richard Purdie <richard.purdie@linuxfoundation.org> | 2015-10-21 22:56:06 +0100 |
commit | e1911205816e42c071d011f2c52f471251364735 (patch) | |
tree | 4dbe94e86d3e643b29a6dd785600b44ce55872a6 /meta/lib | |
parent | b8a972839544c76e8713329f2bfb5abff92ade2c (diff) | |
download | poky-e1911205816e42c071d011f2c52f471251364735.tar.gz |
oeqa/selftest: verify that devtool can use plugins in other layers
In selftest we want to exercise devtool's ability to use plugins from other
layers, so add a basic command to reverse a string to meta-selftest and a test
in oe-selftest to call it.
(From OE-Core rev: 69f5bbc1041e15691af0b4845e2136957a4846a1)
Signed-off-by: Ross Burton <ross.burton@intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
Diffstat (limited to 'meta/lib')
-rw-r--r-- | meta/lib/oeqa/selftest/devtool.py | 12 |
1 files changed, 12 insertions, 0 deletions
diff --git a/meta/lib/oeqa/selftest/devtool.py b/meta/lib/oeqa/selftest/devtool.py index e4de309e72..fb46559eec 100644 --- a/meta/lib/oeqa/selftest/devtool.py +++ b/meta/lib/oeqa/selftest/devtool.py | |||
@@ -1015,3 +1015,15 @@ class DevtoolTests(DevtoolBase): | |||
1015 | self.track_for_cleanup(tempdir) | 1015 | self.track_for_cleanup(tempdir) |
1016 | self.track_for_cleanup(self.workspacedir) | 1016 | self.track_for_cleanup(self.workspacedir) |
1017 | self.add_command_to_tearDown('bitbake-layers remove-layer */workspace') | 1017 | self.add_command_to_tearDown('bitbake-layers remove-layer */workspace') |
1018 | |||
1019 | def test_devtool_layer_plugins(self): | ||
1020 | """Test that devtool can use plugins from other layers. | ||
1021 | |||
1022 | This test executes the selftest-reverse command from meta-selftest.""" | ||
1023 | |||
1024 | self.track_for_cleanup(self.workspacedir) | ||
1025 | self.add_command_to_tearDown('bitbake-layers remove-layer */workspace') | ||
1026 | |||
1027 | s = "Microsoft Made No Profit From Anyone's Zunes Yo" | ||
1028 | result = runCmd("devtool --quiet selftest-reverse \"%s\"" % s) | ||
1029 | self.assertEqual(result.output, s[::-1]) | ||