diff --git a/.fmf/version b/.fmf/version new file mode 100644 index 0000000..d00491f --- /dev/null +++ b/.fmf/version @@ -0,0 +1 @@ +1 diff --git a/gating.yaml b/gating.yaml index 581f7ac..16755b7 100644 --- a/gating.yaml +++ b/gating.yaml @@ -1,6 +1,5 @@ --- !Policy -product_versions: - - rhel-9 + decision_context: osci_compose_gate rules: - - !PassingTestCaseRule {test_case_name: baseos-ci.brew-build.tier1.functional} \ No newline at end of file + - !PassingTestCaseRule {test_case_name: osci.brew-build.tier0.functional} diff --git a/plan.fmf b/plan.fmf new file mode 100644 index 0000000..6468eb1 --- /dev/null +++ b/plan.fmf @@ -0,0 +1,7 @@ +discover: + how: fmf +execute: + how: tmt +prepare: + how: feature + crb: enabled diff --git a/tests/smoke-alabaster/main.fmf b/tests/smoke-alabaster/main.fmf new file mode 100644 index 0000000..18105fd --- /dev/null +++ b/tests/smoke-alabaster/main.fmf @@ -0,0 +1,10 @@ +summary: run the basic documentation build +test: | + sphinx-build -M html source/ build/ && + grep 'id="test-docfile">' build/html/index.html && + grep '

Test docfile' build/html/index.html && + grep '_static/alabaster.css' build/html/index.html && + rm -rf build/ +require: + - python3-sphinx + - python3-sphinx-theme-alabaster diff --git a/tests/smoke-alabaster/source/conf.py b/tests/smoke-alabaster/source/conf.py new file mode 100644 index 0000000..3c43798 --- /dev/null +++ b/tests/smoke-alabaster/source/conf.py @@ -0,0 +1,5 @@ +project = 'Test' +copyright = '2024, Test' +author = 'Test' +release = '0.3.0' +html_theme = 'alabaster' diff --git a/tests/smoke-alabaster/source/index.rst b/tests/smoke-alabaster/source/index.rst new file mode 100644 index 0000000..4d6fdff --- /dev/null +++ b/tests/smoke-alabaster/source/index.rst @@ -0,0 +1,15 @@ +Test docfile +============ + +.. toctree:: + :maxdepth: 2 + :caption: Contents: + + + +Indices and tables +================== + +* :ref:`genindex` +* :ref:`modindex` +* :ref:`search` diff --git a/tests/smoke-rtd-theme/main.fmf b/tests/smoke-rtd-theme/main.fmf new file mode 100644 index 0000000..e17c16c --- /dev/null +++ b/tests/smoke-rtd-theme/main.fmf @@ -0,0 +1,11 @@ +summary: run the basic documentation build with sphinx-rtd-theme +test: | + sphinx-build -M html source/ build/ && + grep 'id="test-docfile">' build/html/index.html && + grep '

Test docfile' build/html/index.html && + grep 'SphinxRtdTheme' build/html/_static/js/theme.js && + grep 'src="_static/js/theme.js' build/html/index.html && + rm -rf build/ +require: + - python3-sphinx + - python3-sphinx_rtd_theme diff --git a/tests/smoke-rtd-theme/source/conf.py b/tests/smoke-rtd-theme/source/conf.py new file mode 100644 index 0000000..81ad4b7 --- /dev/null +++ b/tests/smoke-rtd-theme/source/conf.py @@ -0,0 +1,8 @@ +project = 'Test' +copyright = '2024, Test' +author = 'Test' +release = '0.3.0' +html_theme = 'sphinx_rtd_theme' +extensions = [ + 'sphinx_rtd_theme', +] \ No newline at end of file diff --git a/tests/smoke-rtd-theme/source/index.rst b/tests/smoke-rtd-theme/source/index.rst new file mode 100644 index 0000000..4d6fdff --- /dev/null +++ b/tests/smoke-rtd-theme/source/index.rst @@ -0,0 +1,15 @@ +Test docfile +============ + +.. toctree:: + :maxdepth: 2 + :caption: Contents: + + + +Indices and tables +================== + +* :ref:`genindex` +* :ref:`modindex` +* :ref:`search`