Skip to contentSkip to conversation

doc: add tests catalog page

PATCH Superseded Andrea Cervesato 3 participants 6 messages Feb 4, 2025 – Feb 5, 2025

v2 of 5 Superseded Latest is v5 →

lore
Share & tools
lore
#0 lore raw

PATCH v2 1/1 doc: add tests catalog page

From: Andrea Cervesato <[email protected]>

Add a new section in the LTP documentation website, where we list all tests which are available in LTP and supporting new API.

---
This patch-set is meant to introduce a new page in the LTP
documentation, showing tests which are currently available with their description and information.
---
Changes in v2:
- add setup
- cleanup code
- Link to v1: https://lore.kernel.org/r/[email protected]

---
 doc/.gitignore             |   1 +
 doc/conf.py                | 264 ++++++++++++++++++++++++++++++++++++++++++++-
 doc/index.rst              |   4 +
 doc/users/test_catalog.rst |   7 ++
 4 files changed, 272 insertions(+), 4 deletions(-)
doc/.gitignore +1 -0
index 173179852070f25acb6a729975df9d52d171b422..2b05a1ec368573778cfe7ee6a1cb5d6c5ecb0b5a 100644
@@ -1,4 +1,5 @@
 html/
 build/
 _static/syscalls.rst
+_static/tests.rst
 syscalls.tbl
doc/conf.py +260 -4

321 lines not on this page · raw message

doc/index.rst +4 -0
index b907ac36f0c9328c576d25dee5777d808c2e5119..c00a59d31345142e78deb74eacc9da2941291d76 100644
@@ -11,6 +11,7 @@
    users/setup_tests
    users/supported_systems
    users/stats
+   users/test_catalog
 
 .. toctree::
    :maxdepth: 3
@@ -54,6 +55,9 @@ For users
 :doc:`users/stats`
    Some LTP statistics
 
+:doc:`users/test_catalog`
+   The LTP test catalog
+
 For developers
 --------------
 
doc/users/test_catalog.rst new file +7 -0
new file mode 100644
index 0000000000000000000000000000000000000000..b1674f9dc614ea04a89cf084e92b72c6862a5f48
@@ -0,0 +1,7 @@
+.. SPDX-License-Identifier: GPL-2.0-or-later
+
+Test catalog
+============
+
+.. include:: ../_static/tests.rst
+

---
base-commit: 0f38cb8e8ea8097620eee0ba79e5e321f8a898bb
change-id: 20250131-doc_tests_list-1b82f51e43fd

Best regards,

Signature · 5 lines
Andrea Cervesato <[email protected]>


-- 
Mailing list info: https://lists.linux.it/listinfo/ltp
#1 lore raw

Hi,

doc/conf.py def generate_syscalls_stats(_): · line 276

Quoted 3 lines · Andrea Cervesato
doc/conf.py +3 -0
+    table = [
+        '.. list-table::',
+        '    :widths: 25, 25'

I just noticed that there's an alignment issue here. Please fix it before running "make" :-) I will fix it in the next version

doc/conf.py def generate_syscalls_stats(_): · line 281

Quoted 5 lines
doc/conf.py +5 -0
+        '   :header-rows: 1',
+        '',
+        '   * - Tag',
+        '     - Info',
+    ]

Andrea

Signature · 1 line
Mailing list info: https://lists.linux.it/listinfo/ltp
#2 lore raw

Hi Andrea,

something is wrong, because this is in the output:
:widths: 25, 25 :header-rows: 1

Kind regards,
Petr

Signature · 1 line
Mailing list info: https://lists.linux.it/listinfo/ltp
#3 lore raw
In reply to Andrea Cervesato via ltp

Hi Andrea,

first, thanks for doing the migration.
I haven't checked whether all necessary keys are shown (will do).

It would be nice, if the keys (e.g. mount_device) were references, then user can click to the documentation.

I'm also thinking that splitting tests by alphabet would help to have shorter page + not that long list of the tests on the left side. But for searching it's better to have all tests on a single page. WDYT?

Kind regards,
Petr

Signature · 1 line
Mailing list info: https://lists.linux.it/listinfo/ltp
#4 lore raw

Hi Petr,

I sent a followup message for the broken format after sending the v3 patch.

Quoted 7 lines · Petr Vorel

Hi Andrea,

first, thanks for doing the migration.
I haven't checked whether all necessary keys are shown (will do).

It would be nice, if the keys (e.g. mount_device) were references, then user can click to the documentation.

I can check how to do that

Quoted 4 lines

I'm also thinking that splitting tests by alphabet would help to have shorter page + not that long list of the tests on the left side. But for searching it's better to have all tests on a single page. WDYT?

That's quite a thing. It requires more code and I don't know how to do it honestly. It would be nice to push the patch and add this feature later on eventually.

Quoted 3 lines

Kind regards,
Petr

Andrea

Signature · 1 line
Mailing list info: https://lists.linux.it/listinfo/ltp
#5 lore raw
Quoted 10 lines · Andrea Cervesato

Hi Petr,

I sent a followup message for the broken format after sending the v3 patch.

Quoted 5 lines · Petr Vorel

Hi Andrea,

first, thanks for doing the migration.
I haven't checked whether all necessary keys are shown (will do).

Quoted 8 lines
Quoted 2 lines

It would be nice, if the keys (e.g. mount_device) were references, then user can click to the documentation.

I can check how to do that

Quoted 4 lines

I'm also thinking that splitting tests by alphabet would help to have shorter page + not that long list of the tests on the left side. But for searching it's better to have all tests on a single page. WDYT?

That's quite a thing. It requires more code and I don't know how to do it honestly. It would be nice to push the patch and add this feature later on eventually.

Perhaps we don't have this possibility unless we rewrite the C API section. We can only point to the whole struct tst_test

https://linux-test-project.readthedocs.io/en/latest/developers/api_c_tests.html#tst-test-members

Quoted 4 lines
Quoted 3 lines

Kind regards,
Petr

Andrea

Signature · 1 line
Mailing list info: https://lists.linux.it/listinfo/ltp