summaryrefslogtreecommitdiffstats
path: root/meta
diff options
context:
space:
mode:
Diffstat (limited to 'meta')
-rw-r--r--meta/lib/oeqa/selftest/devtool.py9
1 files changed, 5 insertions, 4 deletions
diff --git a/meta/lib/oeqa/selftest/devtool.py b/meta/lib/oeqa/selftest/devtool.py
index dc3435fc2b..79a4b1fbaf 100644
--- a/meta/lib/oeqa/selftest/devtool.py
+++ b/meta/lib/oeqa/selftest/devtool.py
@@ -247,8 +247,6 @@ class DevtoolTests(DevtoolBase):
247 247
248 @testcase(1162) 248 @testcase(1162)
249 def test_devtool_add_library(self): 249 def test_devtool_add_library(self):
250 # We don't have the ability to pick up this dependency automatically yet...
251 bitbake('libusb1')
252 # Fetch source 250 # Fetch source
253 tempdir = tempfile.mkdtemp(prefix='devtoolqa') 251 tempdir = tempfile.mkdtemp(prefix='devtoolqa')
254 self.track_for_cleanup(tempdir) 252 self.track_for_cleanup(tempdir)
@@ -277,10 +275,13 @@ class DevtoolTests(DevtoolBase):
277 result = runCmd('recipetool setvar %s EXTRA_OECMAKE -- \'-DPYTHON_BINDINGS=OFF -DLIBFTDI_CMAKE_CONFIG_DIR=${datadir}/cmake/Modules\'' % recipefile) 275 result = runCmd('recipetool setvar %s EXTRA_OECMAKE -- \'-DPYTHON_BINDINGS=OFF -DLIBFTDI_CMAKE_CONFIG_DIR=${datadir}/cmake/Modules\'' % recipefile)
278 with open(recipefile, 'a') as f: 276 with open(recipefile, 'a') as f:
279 f.write('\nFILES_${PN}-dev += "${datadir}/cmake/Modules"\n') 277 f.write('\nFILES_${PN}-dev += "${datadir}/cmake/Modules"\n')
278 # We don't have the ability to pick up this dependency automatically yet...
279 f.write('\nDEPENDS += "libusb1"\n')
280 f.write('\nTESTLIBOUTPUT = "${STAGING_DIR}-components/${TUNE_PKGARCH}/${PN}/${libdir}"\n')
280 # Test devtool build 281 # Test devtool build
281 result = runCmd('devtool build libftdi') 282 result = runCmd('devtool build libftdi')
282 staging_libdir = get_bb_var('STAGING_LIBDIR', 'libftdi') 283 staging_libdir = get_bb_var('TESTLIBOUTPUT', 'libftdi')
283 self.assertTrue(staging_libdir, 'Could not query STAGING_LIBDIR variable') 284 self.assertTrue(staging_libdir, 'Could not query TESTLIBOUTPUT variable')
284 self.assertTrue(os.path.isfile(os.path.join(staging_libdir, 'libftdi1.so.2.1.0')), "libftdi binary not found in STAGING_LIBDIR. Output of devtool build libftdi %s" % result.output) 285 self.assertTrue(os.path.isfile(os.path.join(staging_libdir, 'libftdi1.so.2.1.0')), "libftdi binary not found in STAGING_LIBDIR. Output of devtool build libftdi %s" % result.output)
285 # Test devtool reset 286 # Test devtool reset
286 stampprefix = get_bb_var('STAMP', 'libftdi') 287 stampprefix = get_bb_var('STAMP', 'libftdi')