diff options
Diffstat (limited to 'meta/lib/oeqa/buildtools-docs')
| -rw-r--r-- | meta/lib/oeqa/buildtools-docs/cases/README | 2 | ||||
| -rw-r--r-- | meta/lib/oeqa/buildtools-docs/cases/build.py | 19 |
2 files changed, 21 insertions, 0 deletions
diff --git a/meta/lib/oeqa/buildtools-docs/cases/README b/meta/lib/oeqa/buildtools-docs/cases/README new file mode 100644 index 0000000000..f8edbc7dad --- /dev/null +++ b/meta/lib/oeqa/buildtools-docs/cases/README | |||
| @@ -0,0 +1,2 @@ | |||
| 1 | These test cases are used by build-docs-tarball, and are not used by the testsdk | ||
| 2 | class. | ||
diff --git a/meta/lib/oeqa/buildtools-docs/cases/build.py b/meta/lib/oeqa/buildtools-docs/cases/build.py new file mode 100644 index 0000000000..6e3ee94292 --- /dev/null +++ b/meta/lib/oeqa/buildtools-docs/cases/build.py | |||
| @@ -0,0 +1,19 @@ | |||
| 1 | # | ||
| 2 | # Copyright OpenEmbedded Contributors | ||
| 3 | # | ||
| 4 | # SPDX-License-Identifier: MIT | ||
| 5 | # | ||
| 6 | |||
| 7 | import tempfile | ||
| 8 | from oeqa.sdk.case import OESDKTestCase | ||
| 9 | from oeqa.utils.subprocesstweak import errors_have_output | ||
| 10 | errors_have_output() | ||
| 11 | |||
| 12 | class BuildTests(OESDKTestCase): | ||
| 13 | """ | ||
| 14 | Verify that our docs can build using our docs tools tarball. | ||
| 15 | """ | ||
| 16 | def test_docs_build(self): | ||
| 17 | with tempfile.TemporaryDirectory(prefix='docs-tarball-build-', dir=self.tc.sdk_dir) as testdir: | ||
| 18 | self._run('git clone git://git.yoctoproject.org/yocto-docs %s' % testdir) | ||
| 19 | self._run('cd %s/documentation && make html' % testdir) | ||
