Skip to contentSkip to conversation

doc: add tests catalog page

PATCH Superseded Andrea Cervesato 3 participants 3 messages Feb 5, 2025

v3 of 5 Superseded Latest is v5 →

lore
Share & tools
lore
#0 lore raw

PATCH v3 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 v3:
- fix table widths alignment
- add warning at the beginning of the test catalog
- Link to v2: https://lore.kernel.org/r/[email protected]

Changes in v2:
- add setup
- cleanup code
- Link to v1: https://lore.kernel.org/r/[email protected]

---
 doc/.gitignore             |   1 +
 doc/conf.py                | 267 ++++++++++++++++++++++++++++++++++++++++++++-
 doc/index.rst              |   4 +
 doc/users/test_catalog.rst |   7 ++
 4 files changed, 275 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 +263 -4

312 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: 07d79673a65f0f5f06c19507df4a15ceab22f2f9
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
Acked-by on v3 1/1
#1 lore raw

Hi!

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

Quoted 6 lines
doc/conf.py +6 -0
+        # timeout information
+        timeout = conf.get('timeout', None)
+        if timeout:
+            text.extend([
+                '',
+                f'Test timeout to {timeout} seconds.',
                                  ^
				  is

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

Quoted 8 lines
doc/conf.py +8 -0
+                ''
+            ])
+        else:
+            text.extend([
+                '',
+                f'Test timeout defaults to {timeout_def} seconds.',
+                ''
+            ])

Maybe it would make sense to add runtime here as well since it's logically connected to the timeout.

Otherwise:

Signature · 5 lines
Cyril Hrubis
[email protected]

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

Hi!

Quoted 17 lines · Cyril Hrubis

Hi!

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

Quoted 6 lines
doc/conf.py +6 -0
+        # timeout information
+        timeout = conf.get('timeout', None)
+        if timeout:
+            text.extend([
+                '',
+                f'Test timeout to {timeout} seconds.',
                                   ^
				  is

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

Quoted 8 lines
doc/conf.py +8 -0
+                ''
+            ])
+        else:
+            text.extend([
+                '',
+                f'Test timeout defaults to {timeout_def} seconds.',
+                ''
+            ])
Quoted 2 lines

Maybe it would make sense to add runtime here as well since it's logically connected to the timeout.

Probably yes. I will add it and correct the text.

Quoted 5 lines

Otherwise:

Andrea

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