New LTP documentation
PATCH v3 1/1 New LTP documentation
From: Andrea Cervesato <[email protected]>
The new LTP documentation is meant to use Sphinx as the main documentation framework, with ReconStructedText as the main language. All the conversion has been done step-by-step, each chapter at time, updating english syntax and fixing typos. There are minor improvements, but overall the structure is the same.
The API chapters is ongoing and it will be completed soon in the future.
The old documentation has been moved into doc/old folder, but it will removed once new documentation will be completed.
---
Fix spelling
.readthedocs.yml | 18 +
README.md | 252 ----
README.rst | 29 +
doc/.gitignore | 4 +
doc/Makefile | 15 +-
doc/_static/custom.css | 4 +
doc/conf.py | 201 ++++
doc/developers/api_c_tests.rst | 7 +
doc/developers/api_kvm_tests.rst | 7 +
doc/developers/api_network_tests.rst | 7 +
doc/developers/api_shell_tests.rst | 4 +
doc/developers/build_system.rst | 213 ++++
doc/developers/debugging.rst | 21 +
doc/developers/ltp_library.rst | 42 +
doc/developers/setup_mailinglist.rst | 50 +
doc/developers/test_case_tutorial.rst | 1038 +++++++++++++++++
doc/developers/writing_tests.rst | 537 +++++++++
doc/index.rst | 103 ++
doc/maintainers/ltp_release_procedure.rst | 173 +++
doc/maintainers/patch_review.rst | 171 +++
doc/{ => old}/Build-System.asciidoc | 0
doc/{ => old}/C-Test-API.asciidoc | 0
doc/{ => old}/C-Test-Case-Tutorial.asciidoc | 0
doc/{ => old}/C-Test-Network-API.asciidoc | 0
doc/{ => old}/Contact-Info.asciidoc | 0
doc/{ => old}/KVM-Test-API.asciidoc | 0
...TP-Library-API-Writing-Guidelines.asciidoc | 0
doc/{ => old}/LTP-Release-Procedure.asciidoc | 0
...Maintainer-Patch-Review-Checklist.asciidoc | 0
doc/old/Makefile | 11 +
doc/{ => old}/Shell-Test-API.asciidoc | 0
...-kernel,-libc,-toolchain-versions.asciidoc | 0
.../Test-Writing-Guidelines.asciidoc | 0
doc/{ => old}/User-Guidelines.asciidoc | 0
doc/{ => old}/man1/Makefile | 0
doc/{ => old}/man1/doio.1 | 0
doc/{ => old}/man1/iogen.1 | 0
doc/{ => old}/man1/ltp-bump.1 | 0
doc/{ => old}/man1/ltp-pan.1 | 0
doc/{ => old}/man3/Makefile | 0
doc/{ => old}/man3/parse_opts.3 | 0
doc/{ => old}/man3/parse_ranges.3 | 0
doc/{ => old}/man3/random_range.3 | 0
doc/{ => old}/man3/random_range_seed.3 | 0
doc/{ => old}/man3/tst_res.3 | 0
doc/{ => old}/man3/tst_sig.3 | 0
doc/{ => old}/man3/tst_tmpdir.3 | 0
doc/{ => old}/man3/usctest.3 | 0
doc/{ => old}/namespaces-helper-tools.txt | 0
doc/{ => old}/nommu-notes.txt | 0
doc/{ => old}/rules.tsv | 0
doc/requirements.txt | 3 +
doc/spelling_wordlist | 121 ++
doc/users/quick_start.rst | 126 ++
doc/users/setup_tests.rst | 104 ++
doc/users/stats.rst | 9 +
doc/users/supported_systems.rst | 110 ++
57 files changed, 3119 insertions(+), 261 deletions(-)
create mode 100644 .readthedocs.yml
delete mode 100644 README.md
create mode 100644 README.rst
create mode 100644 doc/.gitignore
create mode 100644 doc/_static/custom.css
create mode 100644 doc/conf.py
create mode 100644 doc/developers/api_c_tests.rst
create mode 100644 doc/developers/api_kvm_tests.rst
create mode 100644 doc/developers/api_network_tests.rst
create mode 100644 doc/developers/api_shell_tests.rst
create mode 100644 doc/developers/build_system.rst
create mode 100644 doc/developers/debugging.rst
create mode 100644 doc/developers/ltp_library.rst
create mode 100644 doc/developers/setup_mailinglist.rst
create mode 100644 doc/developers/test_case_tutorial.rst
create mode 100644 doc/developers/writing_tests.rst
create mode 100644 doc/index.rst
create mode 100644 doc/maintainers/ltp_release_procedure.rst
create mode 100644 doc/maintainers/patch_review.rst
rename doc/{ => old}/Build-System.asciidoc (100%)
rename doc/{ => old}/C-Test-API.asciidoc (100%)
rename doc/{ => old}/C-Test-Case-Tutorial.asciidoc (100%)
rename doc/{ => old}/C-Test-Network-API.asciidoc (100%)
rename doc/{ => old}/Contact-Info.asciidoc (100%)
rename doc/{ => old}/KVM-Test-API.asciidoc (100%)
rename doc/{ => old}/LTP-Library-API-Writing-Guidelines.asciidoc (100%)
rename doc/{ => old}/LTP-Release-Procedure.asciidoc (100%)
rename doc/{ => old}/Maintainer-Patch-Review-Checklist.asciidoc (100%)
create mode 100644 doc/old/Makefile
rename doc/{ => old}/Shell-Test-API.asciidoc (100%)
rename doc/{ => old}/Supported-kernel,-libc,-toolchain-versions.asciidoc (100%)
rename doc/{ => old}/Test-Writing-Guidelines.asciidoc (100%)
rename doc/{ => old}/User-Guidelines.asciidoc (100%)
rename doc/{ => old}/man1/Makefile (100%)
rename doc/{ => old}/man1/doio.1 (100%)
rename doc/{ => old}/man1/iogen.1 (100%)
rename doc/{ => old}/man1/ltp-bump.1 (100%)
rename doc/{ => old}/man1/ltp-pan.1 (100%)
rename doc/{ => old}/man3/Makefile (100%)
rename doc/{ => old}/man3/parse_opts.3 (100%)
rename doc/{ => old}/man3/parse_ranges.3 (100%)
rename doc/{ => old}/man3/random_range.3 (100%)
rename doc/{ => old}/man3/random_range_seed.3 (100%)
rename doc/{ => old}/man3/tst_res.3 (100%)
rename doc/{ => old}/man3/tst_sig.3 (100%)
rename doc/{ => old}/man3/tst_tmpdir.3 (100%)
rename doc/{ => old}/man3/usctest.3 (100%)
rename doc/{ => old}/namespaces-helper-tools.txt (100%)
rename doc/{ => old}/nommu-notes.txt (100%)
rename doc/{ => old}/rules.tsv (100%)
create mode 100644 doc/requirements.txt
create mode 100644 doc/spelling_wordlist
create mode 100644 doc/users/quick_start.rst
create mode 100644 doc/users/setup_tests.rst
create mode 100644 doc/users/stats.rst
create mode 100644 doc/users/supported_systems.rst.readthedocs.yml new file +18 -0
@@ -0,0 +1,18 @@ +version: 2 + +build: + os: "ubuntu-22.04" + tools: + python: "3.6" + apt_packages: + - enchant-2 + - hunspell-en-us + +# Build from the doc/ directory with Sphinx +sphinx: + configuration: doc/conf.py + +# Explicitly set the version of Python and its requirements +python: + install: + - requirements: doc/requirements.txt
README.md deleted +0 -252
252 lines not on this page · raw message
README.rst new file +29 -0
@@ -0,0 +1,29 @@ +.. SPDX-License-Identifier: GPL-2.0-or-later + +Linux Test Project +================== + +Linux Test Project is a joint project started by SGI, OSDL and Bull developed +and maintained by SUSE, Red Hat, Fujitsu, IBM, Cisco, Oracle and others. The +project goal is to deliver tests to the open source community that validate +reliability, robustness, and stability of the Linux Kernel. + +The testing suites contain a collection of tools for testing the Linux kernel +and related features. Our goal is to improve the Linux kernel and system +libraries by bringing test automation. + +.. warning:: + + LTP tests shouldn't run in production systems. In particular, + growfiles, doio, and iogen, stress the I/O capabilities of the systems and + they are intended to find (or cause) problems. + +Some references: + +* `Documentation <http://linux-test-project.rtfd.io/>`_ +* `Source code <https://github.com/linux-test-project/ltp>`_ +* `Releases <https://github.com/linux-test-project/ltp/releases>`_ +* `Mailing List <http://lists.linux.it/listinfo/ltp>`_ +* `Working patches (patchwork) <https://patchwork.ozlabs.org/project/ltp/list/>`_ +* `Working patches (lore.kernel.org) <https://lore.kernel.org/ltp>`_ +* `#ltp @ libera chat <https://libera.chat/>`_
doc/.gitignore new file +4 -0
@@ -0,0 +1,4 @@ +html/ +build/ +_static/syscalls.rst +syscalls.tbl
doc/Makefile +6 -9
@@ -1,11 +1,8 @@ -# SPDX-License-Identifier: GPL-2.0-or-later -# Copyright (C) 2009, Cisco Systems Inc. -# Ngie Cooper, July 2009 +all: + sphinx-build -b html . html -top_srcdir ?= .. +spelling: + sphinx-build -b spelling -d build/doctree . build/spelling -include $(top_srcdir)/include/mk/env_pre.mk - -RECURSIVE_TARGETS := install - -include $(top_srcdir)/include/mk/generic_trunk_target.mk +clean: + rm -rf html/
doc/_static/custom.css new file +4 -0
@@ -0,0 +1,4 @@ +/* set multiline tables cells */ +.wy-table-responsive table td { + white-space: normal; +}
doc/conf.py new file +201 -0
201 lines not on this page · raw message
doc/developers/api_c_tests.rst new file +7 -0
@@ -0,0 +1,7 @@ +.. SPDX-License-Identifier: GPL-2.0-or-later + +.. Include headers in this file with: +.. .. kernel-doc:: ../../include/tst_test.h + +Developing using C API +======================
doc/developers/api_kvm_tests.rst new file +7 -0
@@ -0,0 +1,7 @@ +.. SPDX-License-Identifier: GPL-2.0-or-later + +.. Include headers in this file with: +.. .. kernel-doc:: ../../include/tst_test.h + +Developing using KVM API +========================
doc/developers/api_network_tests.rst new file +7 -0
@@ -0,0 +1,7 @@ +.. SPDX-License-Identifier: GPL-2.0-or-later + +.. Include headers in this file with: +.. .. kernel-doc:: ../../include/tst_test.h + +Developing using network API +============================
doc/developers/api_shell_tests.rst new file +4 -0
@@ -0,0 +1,4 @@ +.. SPDX-License-Identifier: GPL-2.0-or-later + +Developing using shell API +==========================
doc/developers/build_system.rst new file +213 -0
213 lines not on this page · raw message
doc/developers/debugging.rst new file +21 -0
@@ -0,0 +1,21 @@ +.. SPDX-License-Identifier: GPL-2.0-or-later + +Debugging +========= + +This section explains some tricks which can be used to debug test binaries. + +Debug messages +-------------- + +The LTP framework currently supports ``TDEBUG`` flag test debug messages. These +messages can be enabled using the ``-D`` test's argument. + +Tracing and debugging syscalls +------------------------------ + +The new test library runs the actual test (i.e. the ``test()`` function) in a +forked process. To get stack trace of a crashing test in gdb it's needed to +`set follow-fork-mode child <https://ftp.gnu.org/old-gnu/Manuals/gdb/html_node/gdb_25.html>`_. +To trace the test, please use ``strace -f`` to enable tracing also for the +forked processes.
doc/developers/ltp_library.rst new file +42 -0
42 lines not on this page · raw message
doc/developers/setup_mailinglist.rst new file +50 -0
50 lines not on this page · raw message
doc/developers/test_case_tutorial.rst new file +1038 -0
1,038 lines not on this page · raw message
doc/developers/writing_tests.rst new file +537 -0
537 lines not on this page · raw message
doc/index.rst new file +103 -0
103 lines not on this page · raw message
doc/maintainers/ltp_release_procedure.rst new file +173 -0
173 lines not on this page · raw message
doc/maintainers/patch_review.rst new file +171 -0
171 lines not on this page · raw message
doc/old/Build-System.asciidoc renamed from doc/Build-System.asciidoc +0 -0
doc/old/C-Test-API.asciidoc renamed from doc/C-Test-API.asciidoc +0 -0
doc/old/C-Test-Case-Tutorial.asciidoc renamed from doc/C-Test-Case-Tutorial.asciidoc +0 -0
doc/old/C-Test-Network-API.asciidoc renamed from doc/C-Test-Network-API.asciidoc +0 -0
doc/old/Contact-Info.asciidoc renamed from doc/Contact-Info.asciidoc +0 -0
doc/old/KVM-Test-API.asciidoc renamed from doc/KVM-Test-API.asciidoc +0 -0
doc/old/LTP-Library-API-Writing-Guidelines.asciidoc renamed from doc/LTP-Library-API-Writing-Guidelines.asciidoc +0 -0
doc/old/LTP-Release-Procedure.asciidoc renamed from doc/LTP-Release-Procedure.asciidoc +0 -0
doc/old/Maintainer-Patch-Review-Checklist.asciidoc renamed from doc/Maintainer-Patch-Review-Checklist.asciidoc +0 -0
doc/old/Makefile new file +11 -0
@@ -0,0 +1,11 @@ +# SPDX-License-Identifier: GPL-2.0-or-later +# Copyright (C) 2009, Cisco Systems Inc. +# Ngie Cooper, July 2009 + +top_srcdir ?= .. + +include $(top_srcdir)/include/mk/env_pre.mk + +RECURSIVE_TARGETS := install + +include $(top_srcdir)/include/mk/generic_trunk_target.mk
doc/old/Shell-Test-API.asciidoc renamed from doc/Shell-Test-API.asciidoc +0 -0
doc/old/Supported-kernel,-libc,-toolchain-versions.asciidoc renamed from doc/Supported-kernel,-libc,-toolchain-versions.asciidoc +0 -0
doc/old/Test-Writing-Guidelines.asciidoc renamed from doc/Test-Writing-Guidelines.asciidoc +0 -0
doc/old/User-Guidelines.asciidoc renamed from doc/User-Guidelines.asciidoc +0 -0
doc/old/man1/Makefile renamed from doc/man1/Makefile +0 -0
doc/old/man1/doio.1 renamed from doc/man1/doio.1 +0 -0
doc/old/man1/iogen.1 renamed from doc/man1/iogen.1 +0 -0
doc/old/man1/ltp-bump.1 renamed from doc/man1/ltp-bump.1 +0 -0
doc/old/man1/ltp-pan.1 renamed from doc/man1/ltp-pan.1 +0 -0
doc/old/man3/Makefile renamed from doc/man3/Makefile +0 -0
doc/old/man3/parse_opts.3 renamed from doc/man3/parse_opts.3 +0 -0
doc/old/man3/parse_ranges.3 renamed from doc/man3/parse_ranges.3 +0 -0
doc/old/man3/random_range.3 renamed from doc/man3/random_range.3 +0 -0
doc/old/man3/random_range_seed.3 renamed from doc/man3/random_range_seed.3 +0 -0
doc/old/man3/tst_res.3 renamed from doc/man3/tst_res.3 +0 -0
doc/old/man3/tst_sig.3 renamed from doc/man3/tst_sig.3 +0 -0
doc/old/man3/tst_tmpdir.3 renamed from doc/man3/tst_tmpdir.3 +0 -0
doc/old/man3/usctest.3 renamed from doc/man3/usctest.3 +0 -0
doc/old/namespaces-helper-tools.txt renamed from doc/namespaces-helper-tools.txt +0 -0
doc/old/nommu-notes.txt renamed from doc/nommu-notes.txt +0 -0
doc/old/rules.tsv renamed from doc/rules.tsv +0 -0
doc/requirements.txt new file +3 -0
@@ -0,0 +1,3 @@ +sphinx-rtd-theme==2.0.0 +linuxdoc==20231020 +sphinxcontrib-spelling==7.7.0
doc/spelling_wordlist new file +121 -0
88 lines not on this page · raw message
doc/users/quick_start.rst new file +126 -0
126 lines not on this page · raw message
doc/users/setup_tests.rst new file +104 -0
104 lines not on this page · raw message
doc/users/supported_systems.rst new file +110 -0
110 lines not on this page · raw message
The rest of this diff is not shown. View the raw message.
Signature · 5 lines
2.35.3 -- Mailing list info: https://lists.linux.it/listinfo/ltp
Part of the diff is not shown here. View the raw message.
Hi Andrea,
BTW when we mix everything in a single commit, we should have remove Wiki mirror (.github/workflows/wiki-mirror.yml). But I can do it separately.
Kind regards,
Petr
Signature · 1 line
Mailing list info: https://lists.linux.it/listinfo/ltp
Hi Andrea, Cyril,
merged the docs, thanks!
I also deleted .github/workflows/wiki-mirror.yml (there were 2 failures in CI after the move). Also, for some reasons some build CI jobs fails on some jobs in make install, but that should not be related. Hopefully restart fixes that.
Kind regards,
Petr
Signature · 1 line
Mailing list info: https://lists.linux.it/listinfo/ltp