From e134add0341e6737110a04789fcf81910d3117ed Mon Sep 17 00:00:00 2001 From: Karolina Surma Date: Thu, 22 Aug 2024 11:20:13 +0200 Subject: [PATCH] Add a smoke test --- .fmf/version | 1 + plan.fmf | 5 +++++ tests/smoke/main.fmf | 9 +++++++++ tests/smoke/source/conf.py | 5 +++++ tests/smoke/source/index.rst | 15 +++++++++++++++ 5 files changed, 35 insertions(+) create mode 100644 .fmf/version create mode 100644 plan.fmf create mode 100644 tests/smoke/main.fmf create mode 100644 tests/smoke/source/conf.py create mode 100644 tests/smoke/source/index.rst 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/plan.fmf b/plan.fmf new file mode 100644 index 0000000..94cb32d --- /dev/null +++ b/plan.fmf @@ -0,0 +1,5 @@ +discover: + how: fmf +execute: + how: tmt + diff --git a/tests/smoke/main.fmf b/tests/smoke/main.fmf new file mode 100644 index 0000000..80e8276 --- /dev/null +++ b/tests/smoke/main.fmf @@ -0,0 +1,9 @@ +summary: run the basic documentation build +test: | + sphinx-build -M html source/ build/ && + grep '
' build/html/index.html && + grep '

Test docfile' build/html/index.html && + rm -rf build/ +require: + - python3-sphinx + - python3-sphinx-theme-alabaster diff --git a/tests/smoke/source/conf.py b/tests/smoke/source/conf.py new file mode 100644 index 0000000..3c43798 --- /dev/null +++ b/tests/smoke/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/source/index.rst b/tests/smoke/source/index.rst new file mode 100644 index 0000000..4d6fdff --- /dev/null +++ b/tests/smoke/source/index.rst @@ -0,0 +1,15 @@ +Test docfile +============ + +.. toctree:: + :maxdepth: 2 + :caption: Contents: + + + +Indices and tables +================== + +* :ref:`genindex` +* :ref:`modindex` +* :ref:`search`