diff options
| -rw-r--r-- | meta/lib/oeqa/selftest/cases/imagefeatures.py | 22 |
1 files changed, 22 insertions, 0 deletions
diff --git a/meta/lib/oeqa/selftest/cases/imagefeatures.py b/meta/lib/oeqa/selftest/cases/imagefeatures.py index af38150613..bdd4d3200e 100644 --- a/meta/lib/oeqa/selftest/cases/imagefeatures.py +++ b/meta/lib/oeqa/selftest/cases/imagefeatures.py | |||
| @@ -299,3 +299,25 @@ SKIP_RECIPE[busybox] = "Don't build this" | |||
| 299 | result = glob.glob(images) | 299 | result = glob.glob(images) |
| 300 | with open(result[1],"r") as f: | 300 | with open(result[1],"r") as f: |
| 301 | self.assertEqual(len(f.read().strip()),0) | 301 | self.assertEqual(len(f.read().strip()),0) |
| 302 | |||
| 303 | def test_mandb(self): | ||
| 304 | """ | ||
| 305 | Test that an image containing manpages has working man and apropos commands. | ||
| 306 | """ | ||
| 307 | config = """ | ||
| 308 | DISTRO_FEATURES:append = " api-documentation" | ||
| 309 | CORE_IMAGE_EXTRA_INSTALL = "man-pages kmod-doc" | ||
| 310 | """ | ||
| 311 | self.write_config(config) | ||
| 312 | bitbake("core-image-minimal") | ||
| 313 | |||
| 314 | with runqemu('core-image-minimal', ssh=False, runqemuparams='nographic') as qemu: | ||
| 315 | # This manpage is provided by man-pages | ||
| 316 | status, output = qemu.run_serial("apropos 8859") | ||
| 317 | self.assertEqual(status, 1, 'Failed to run apropos: %s' % (output)) | ||
| 318 | self.assertIn("iso_8859_15", output) | ||
| 319 | |||
| 320 | # This manpage is provided by kmod | ||
| 321 | status, output = qemu.run_serial("man --pager=cat modprobe") | ||
| 322 | self.assertEqual(status, 1, 'Failed to run man: %s' % (output)) | ||
| 323 | self.assertIn("force-modversion", output) | ||
