summaryrefslogtreecommitdiffstats
path: root/meta/lib
diff options
context:
space:
mode:
Diffstat (limited to 'meta/lib')
-rw-r--r--meta/lib/oeqa/selftest/buildoptions.py3
-rw-r--r--meta/lib/oeqa/selftest/layerappend.py3
-rw-r--r--meta/lib/oeqa/selftest/liboe.py5
-rw-r--r--meta/lib/oeqa/selftest/signing.py2
4 files changed, 9 insertions, 4 deletions
diff --git a/meta/lib/oeqa/selftest/buildoptions.py b/meta/lib/oeqa/selftest/buildoptions.py
index 95fd2f01ec..d40eb007de 100644
--- a/meta/lib/oeqa/selftest/buildoptions.py
+++ b/meta/lib/oeqa/selftest/buildoptions.py
@@ -33,7 +33,8 @@ class ImageOptionsTests(oeSelfTest):
33 @testcase(286) 33 @testcase(286)
34 def test_ccache_tool(self): 34 def test_ccache_tool(self):
35 bitbake("ccache-native") 35 bitbake("ccache-native")
36 self.assertTrue(os.path.isfile(os.path.join(get_bb_var('STAGING_BINDIR_NATIVE', 'ccache-native'), "ccache")), msg = "No ccache found under %s" % str(get_bb_var('STAGING_BINDIR_NATIVE', 'ccache-native'))) 36 p = get_bb_var('SYSROOT_DESTDIR', 'ccache-native') + get_bb_var('bindir', 'ccache-native') + "/" + "ccache"
37 self.assertTrue(os.path.isfile(p), msg = "No ccache found (%s)" % p)
37 self.write_config('INHERIT += "ccache"') 38 self.write_config('INHERIT += "ccache"')
38 bitbake("m4 -c cleansstate") 39 bitbake("m4 -c cleansstate")
39 bitbake("m4 -c compile") 40 bitbake("m4 -c compile")
diff --git a/meta/lib/oeqa/selftest/layerappend.py b/meta/lib/oeqa/selftest/layerappend.py
index 4de5034a94..37bb32cd1d 100644
--- a/meta/lib/oeqa/selftest/layerappend.py
+++ b/meta/lib/oeqa/selftest/layerappend.py
@@ -55,7 +55,7 @@ SRC_URI_append += "file://appendtest.txt"
55 @testcase(1196) 55 @testcase(1196)
56 def test_layer_appends(self): 56 def test_layer_appends(self):
57 corebase = get_bb_var("COREBASE") 57 corebase = get_bb_var("COREBASE")
58 stagingdir = get_bb_var("STAGING_DIR_TARGET") 58
59 for l in ["0", "1", "2"]: 59 for l in ["0", "1", "2"]:
60 layer = os.path.join(corebase, "meta-layertest" + l) 60 layer = os.path.join(corebase, "meta-layertest" + l)
61 self.assertFalse(os.path.exists(layer)) 61 self.assertFalse(os.path.exists(layer))
@@ -83,6 +83,7 @@ SRC_URI_append += "file://appendtest.txt"
83 83
84 self.layerappend = "BBLAYERS += \"{0}/meta-layertest0 {0}/meta-layertest1 {0}/meta-layertest2\"".format(corebase) 84 self.layerappend = "BBLAYERS += \"{0}/meta-layertest0 {0}/meta-layertest1 {0}/meta-layertest2\"".format(corebase)
85 ftools.append_file(self.builddir + "/conf/bblayers.conf", self.layerappend) 85 ftools.append_file(self.builddir + "/conf/bblayers.conf", self.layerappend)
86 stagingdir = get_bb_var("SYSROOT_DESTDIR", "layerappendtest")
86 bitbake("layerappendtest") 87 bitbake("layerappendtest")
87 data = ftools.read_file(stagingdir + "/appendtest.txt") 88 data = ftools.read_file(stagingdir + "/appendtest.txt")
88 self.assertEqual(data, "Layer 2 test") 89 self.assertEqual(data, "Layer 2 test")
diff --git a/meta/lib/oeqa/selftest/liboe.py b/meta/lib/oeqa/selftest/liboe.py
index 35131eb240..cd12cd25b3 100644
--- a/meta/lib/oeqa/selftest/liboe.py
+++ b/meta/lib/oeqa/selftest/liboe.py
@@ -50,7 +50,10 @@ class LibOE(oeSelfTest):
50 50
51 # ensure we have setfattr available 51 # ensure we have setfattr available
52 bitbake("attr-native") 52 bitbake("attr-native")
53 bindir = get_bb_var('STAGING_BINDIR_NATIVE') 53
54 destdir = get_bb_var('SYSROOT_DESTDIR', 'attr-native')
55 bindir = get_bb_var('bindir', 'attr-native')
56 bindir = destdir + bindir
54 57
55 # create a file with xattr and copy it 58 # create a file with xattr and copy it
56 open(oe.path.join(src, testfilename), 'w+b').close() 59 open(oe.path.join(src, testfilename), 'w+b').close()
diff --git a/meta/lib/oeqa/selftest/signing.py b/meta/lib/oeqa/selftest/signing.py
index 4c12d6d940..70e8369876 100644
--- a/meta/lib/oeqa/selftest/signing.py
+++ b/meta/lib/oeqa/selftest/signing.py
@@ -66,7 +66,7 @@ class Signing(oeSelfTest):
66 pf = pkgdata['PN'] + "-" + pkgdata['PKGV'] + '-' + pkgdata['PKGR'] 66 pf = pkgdata['PN'] + "-" + pkgdata['PKGV'] + '-' + pkgdata['PKGR']
67 deploy_dir_rpm = get_bb_var('DEPLOY_DIR_RPM', test_recipe) 67 deploy_dir_rpm = get_bb_var('DEPLOY_DIR_RPM', test_recipe)
68 package_arch = get_bb_var('PACKAGE_ARCH', test_recipe).replace('-', '_') 68 package_arch = get_bb_var('PACKAGE_ARCH', test_recipe).replace('-', '_')
69 staging_bindir_native = get_bb_var('STAGING_BINDIR_NATIVE') 69 staging_bindir_native = get_bb_var('STAGING_BINDIR_NATIVE', test_recipe)
70 70
71 pkg_deploy = os.path.join(deploy_dir_rpm, package_arch, '.'.join((pf, package_arch, 'rpm'))) 71 pkg_deploy = os.path.join(deploy_dir_rpm, package_arch, '.'.join((pf, package_arch, 'rpm')))
72 72