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:55:01 +0100 |
commit | 69f5bbc1041e15691af0b4845e2136957a4846a1 (patch) | |
tree | 66d7944eb50704fa779f53337017e67f61572003 /meta/lib/oeqa/selftest | |
parent | 9a2292a995de9f93e742bda6c465daa854279fed (diff) | |
download | openembedded-core-69f5bbc1041e15691af0b4845e2136957a4846a1.tar.gz openembedded-core-69f5bbc1041e15691af0b4845e2136957a4846a1.tar.bz2 openembedded-core-69f5bbc1041e15691af0b4845e2136957a4846a1.zip |
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.
Signed-off-by: Ross Burton <ross.burton@intel.com>
Diffstat (limited to 'meta/lib/oeqa/selftest')
-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): self.track_for_cleanup(tempdir) self.track_for_cleanup(self.workspacedir) self.add_command_to_tearDown('bitbake-layers remove-layer */workspace') + + def test_devtool_layer_plugins(self): + """Test that devtool can use plugins from other layers. + + This test executes the selftest-reverse command from meta-selftest.""" + + self.track_for_cleanup(self.workspacedir) + self.add_command_to_tearDown('bitbake-layers remove-layer */workspace') + + s = "Microsoft Made No Profit From Anyone's Zunes Yo" + result = runCmd("devtool --quiet selftest-reverse \"%s\"" % s) + self.assertEqual(result.output, s[::-1]) |