diff options
| -rw-r--r-- | meta/lib/oeqa/selftest/cases/recipetool.py | 19 |
1 files changed, 8 insertions, 11 deletions
diff --git a/meta/lib/oeqa/selftest/cases/recipetool.py b/meta/lib/oeqa/selftest/cases/recipetool.py index e3f5c71666..1c701a40bf 100644 --- a/meta/lib/oeqa/selftest/cases/recipetool.py +++ b/meta/lib/oeqa/selftest/cases/recipetool.py | |||
| @@ -406,22 +406,19 @@ class RecipetoolTests(RecipetoolBase): | |||
| 406 | self._test_recipe_contents(os.path.join(temprecipe, dirlist[0]), checkvars, inherits) | 406 | self._test_recipe_contents(os.path.join(temprecipe, dirlist[0]), checkvars, inherits) |
| 407 | 407 | ||
| 408 | def test_recipetool_create_cmake(self): | 408 | def test_recipetool_create_cmake(self): |
| 409 | bitbake('-c packagedata gtk+') | ||
| 410 | |||
| 411 | # Try adding a recipe | ||
| 412 | temprecipe = os.path.join(self.tempdir, 'recipe') | 409 | temprecipe = os.path.join(self.tempdir, 'recipe') |
| 413 | os.makedirs(temprecipe) | 410 | os.makedirs(temprecipe) |
| 414 | recipefile = os.path.join(temprecipe, 'navit_0.5.0.bb') | 411 | recipefile = os.path.join(temprecipe, 'taglib_1.11.1.bb') |
| 415 | srcuri = 'http://downloads.yoctoproject.org/mirror/sources/navit-0.5.0.tar.gz' | 412 | srcuri = 'http://taglib.github.io/releases/taglib-1.11.1.tar.gz' |
| 416 | result = runCmd('recipetool create -o %s %s' % (temprecipe, srcuri)) | 413 | result = runCmd('recipetool create -o %s %s' % (temprecipe, srcuri)) |
| 417 | self.assertTrue(os.path.isfile(recipefile)) | 414 | self.assertTrue(os.path.isfile(recipefile)) |
| 418 | checkvars = {} | 415 | checkvars = {} |
| 419 | checkvars['LICENSE'] = set(['Unknown', 'GPLv2', 'LGPLv2']) | 416 | checkvars['LICENSE'] = set(['LGPLv2.1', 'MPL-1.1']) |
| 420 | checkvars['SRC_URI'] = 'http://downloads.yoctoproject.org/mirror/sources/navit-${PV}.tar.gz' | 417 | checkvars['SRC_URI'] = 'http://taglib.github.io/releases/taglib-${PV}.tar.gz' |
| 421 | checkvars['SRC_URI[md5sum]'] = '242f398e979a6b8c0f3c802b63435b68' | 418 | checkvars['SRC_URI[md5sum]'] = 'cee7be0ccfc892fa433d6c837df9522a' |
| 422 | checkvars['SRC_URI[sha256sum]'] = '13353481d7fc01a4f64e385dda460b51496366bba0fd2cc85a89a0747910e94d' | 419 | checkvars['SRC_URI[sha256sum]'] = 'b6d1a5a610aae6ff39d93de5efd0fdc787aa9e9dc1e7026fa4c961b26563526b' |
| 423 | checkvars['DEPENDS'] = set(['freetype', 'zlib', 'openssl', 'glib-2.0', 'virtual/libgl', 'virtual/egl', 'gtk+', 'libpng', 'libsdl', 'freeglut', 'dbus-glib', 'fribidi']) | 420 | checkvars['DEPENDS'] = set(['boost', 'zlib']) |
| 424 | inherits = ['cmake', 'python-dir', 'gettext', 'pkgconfig'] | 421 | inherits = ['cmake'] |
| 425 | self._test_recipe_contents(recipefile, checkvars, inherits) | 422 | self._test_recipe_contents(recipefile, checkvars, inherits) |
| 426 | 423 | ||
| 427 | def test_recipetool_create_github(self): | 424 | def test_recipetool_create_github(self): |
