summaryrefslogtreecommitdiffstats
path: root/meta/lib/oeqa/selftest
diff options
context:
space:
mode:
Diffstat (limited to 'meta/lib/oeqa/selftest')
-rw-r--r--meta/lib/oeqa/selftest/recipetool.py17
1 files changed, 17 insertions, 0 deletions
diff --git a/meta/lib/oeqa/selftest/recipetool.py b/meta/lib/oeqa/selftest/recipetool.py
index 927da73e6f..b4d33bc35d 100644
--- a/meta/lib/oeqa/selftest/recipetool.py
+++ b/meta/lib/oeqa/selftest/recipetool.py
@@ -422,6 +422,23 @@ class RecipetoolTests(RecipetoolBase):
422 inherits = ['autotools'] 422 inherits = ['autotools']
423 self._test_recipe_contents(os.path.join(temprecipe, dirlist[0]), checkvars, inherits) 423 self._test_recipe_contents(os.path.join(temprecipe, dirlist[0]), checkvars, inherits)
424 424
425 def test_recipetool_create_cmake(self):
426 # Try adding a recipe
427 temprecipe = os.path.join(self.tempdir, 'recipe')
428 os.makedirs(temprecipe)
429 recipefile = os.path.join(temprecipe, 'navit_0.5.0.bb')
430 srcuri = 'http://downloads.sourceforge.net/project/navit/v0.5.0/navit-0.5.0.tar.gz'
431 result = runCmd('recipetool create -o %s %s' % (temprecipe, srcuri))
432 self.assertTrue(os.path.isfile(recipefile))
433 checkvars = {}
434 checkvars['LICENSE'] = set(['Unknown', 'GPLv2', 'LGPLv2'])
435 checkvars['SRC_URI'] = 'http://downloads.sourceforge.net/project/navit/v${PV}/navit-${PV}.tar.gz'
436 checkvars['SRC_URI[md5sum]'] = '242f398e979a6b8c0f3c802b63435b68'
437 checkvars['SRC_URI[sha256sum]'] = '13353481d7fc01a4f64e385dda460b51496366bba0fd2cc85a89a0747910e94d'
438 checkvars['DEPENDS'] = set(['freetype', 'zlib', 'openssl', 'glib-2.0', 'virtual/libgl', 'virtual/egl', 'gtk+', 'libpng', 'libsdl', 'freeglut', 'dbus-glib'])
439 inherits = ['cmake', 'python-dir', 'gettext', 'pkgconfig']
440 self._test_recipe_contents(recipefile, checkvars, inherits)
441
425class RecipetoolAppendsrcBase(RecipetoolBase): 442class RecipetoolAppendsrcBase(RecipetoolBase):
426 def _try_recipetool_appendsrcfile(self, testrecipe, newfile, destfile, options, expectedlines, expectedfiles): 443 def _try_recipetool_appendsrcfile(self, testrecipe, newfile, destfile, options, expectedlines, expectedfiles):
427 cmd = 'recipetool appendsrcfile %s %s %s %s %s' % (options, self.templayerdir, testrecipe, newfile, destfile) 444 cmd = 'recipetool appendsrcfile %s %s %s %s %s' % (options, self.templayerdir, testrecipe, newfile, destfile)