-
Notifications
You must be signed in to change notification settings - Fork 39
Readthedocs #157
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Merged
Merged
Readthedocs #157
Changes from all commits
Commits
Show all changes
6 commits
Select commit
Hold shift + click to select a range
2e69d79
Migrate wiki docs
LecrisUT 9afeb97
Add simple pyproject.toml setup
LecrisUT 59e5011
Add simple sphinx builder
LecrisUT 453d605
Changed landing page
LecrisUT 5d78951
Add readthedocs setup
LecrisUT 5e12730
Add auto-generated documentation
LecrisUT File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,4 @@ | ||
| node: $Format:%H$ | ||
| node-date: $Format:%cI$ | ||
| describe-name: $Format:%(describe:tags=true,match=?[0-9.]*)$ | ||
| ref-names: $Format:%D$ |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -1 +1,2 @@ | ||
| beaker.spec export-subst | ||
| .git_archival.txt export-subst |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,15 @@ | ||
| version: 2 | ||
|
|
||
| python: | ||
| install: | ||
| - path: . | ||
| extra_requirements: | ||
| - docs | ||
| build: | ||
| os: ubuntu-22.04 | ||
| tools: | ||
| python: "3.11" | ||
| apt_packages: | ||
| - libpod-markdown-perl | ||
| sphinx: | ||
| configuration: doc/conf.py |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1 @@ | ||
| /man.md |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1 @@ | ||
|
|
||
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,52 @@ | ||
| import os | ||
| import subprocess | ||
| import sys | ||
| from sphinx.application import Sphinx | ||
|
|
||
| project = 'BeakerLib' | ||
| copyright = '2023, Dalibor Pospíšil' | ||
| author = 'Dalibor Pospíšil' | ||
|
|
||
| extensions = [ | ||
| "myst_parser", | ||
| "sphinx_design", | ||
| "sphinx_togglebutton", | ||
| "breathe", | ||
| ] | ||
|
|
||
| templates_path = [] | ||
| exclude_patterns = [ | ||
| 'build', | ||
| '_build', | ||
| 'Thumbs.db', | ||
| '.DS_Store', | ||
| "README.md", | ||
| ] | ||
| source_suffix = [".md"] | ||
|
|
||
| html_theme = 'furo' | ||
| html_static_path = ['_static'] | ||
|
|
||
| myst_enable_extensions = [ | ||
| "tasklist", | ||
| "colon_fence", | ||
| ] | ||
|
|
||
|
|
||
| def run_make_pod(app: Sphinx): | ||
| try: | ||
| with open("man.md", "w") as file: | ||
| os.chdir(f"{app.confdir}/../src") | ||
| subprocess.run(["make", "docs/pod/beakerlib.pod"]) | ||
| # Fix the header level to not conflict with page title | ||
| sed = subprocess.Popen(["sed", "s/^#/##/g"], stdin=subprocess.PIPE, stdout=file) | ||
| pod2md = subprocess.Popen(["pod2markdown", "docs/pod/beakerlib.pod"], stdout=sed.stdin) | ||
| sed.communicate() | ||
| pod2md.wait() | ||
| except OSError: | ||
| sys.stderr.write("Failed to generate perl pod documentations") | ||
| raise | ||
|
|
||
|
|
||
| def setup(app: Sphinx): | ||
| app.connect("builder-inited", run_make_pod) |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,148 @@ | ||
| # BeakerLib | ||
|
|
||
| After fedorahosted.org got shut down this became the official new home for this project. | ||
|
|
||
| BeakerLib is a shell-level integration testing library, providing | ||
| convenient functions which simplify writing, running and analysis of | ||
| integration and blackbox tests. | ||
|
|
||
| :::{toctree} | ||
| --- | ||
| maxdepth: 2 | ||
| titlesonly: true | ||
| caption: Contents | ||
| glob: true | ||
| --- | ||
| manual | ||
| roadmap | ||
| ::: | ||
|
|
||
| ## News | ||
sopos marked this conversation as resolved.
Show resolved
Hide resolved
|
||
| ### 2022-10-20 | ||
| * Released [version 1.29.3](https://github.com/beakerlib/beakerlib/releases/tag/1.29.3) | ||
| - support for fmf_id nick attribute | ||
|
|
||
| ### 2022-08-25 | ||
| * Released [version 1.29.2](https://github.com/beakerlib/beakerlib/releases/tag/1.29.2) | ||
| - improved performance and memory consumption of the fingerprint feature | ||
|
|
||
| ### 2022-07-19 | ||
| * Released [version 1.29.1](https://github.com/beakerlib/beakerlib/releases/tag/1.29.1) | ||
| - fixed a check for os-release file existence | ||
|
|
||
| ### 2022-06-29 | ||
| * Released [version 1.29](https://github.com/beakerlib/beakerlib/releases/tag/1.29) | ||
| - rlImport: upwards traversal start in the current directory | ||
| - rlImport: support '.' to import lib.sh from the current directory | ||
| - rlImport: can handle libraries required by the fmf_id in different forms than (url, name) | ||
| also name-only. Also the path attribute is considered | ||
| - fingerprint: an asserts fingerprint and phases fingerprint is computed | ||
| it is printed as a message and it is also available in the TestResults file | ||
| - fixed LOG_LEVEL usage | ||
| - removed dependency on selinuxenabled | ||
| - fixed a few typos, thanks to [email protected] | ||
|
|
||
| ### 2021-11-09 | ||
| * Released [version 1.28](https://github.com/beakerlib/beakerlib/releases/tag/1.28) | ||
| - cleanup rlRun_LOG files at rlJournalEnd | ||
| - close journal in rlDie - generate journal.xml at that moment | ||
| - implemented functions rlIsOS, rlIsOSLike, rlIsOSVersion, and rlIsRHELLike | ||
| - rlAssertRequired can now handle versioned dependencies | ||
| - new functions rlCheckRerquired, rlCheckRecommended, and rlCheckDependencies | ||
|
|
||
| ### 2021-03-25 | ||
| * Released [version 1.27](https://github.com/beakerlib/beakerlib/releases/tag/1.27) | ||
| - rlCheckRequirements is now able to check also versioned requirements | ||
|
|
||
| ### 2021-03-09 | ||
| * Released [version 1.26](https://github.com/beakerlib/beakerlib/releases/tag/1.26) | ||
| - fixed rlServiceDisable if called without rlServiceEnable beforehand | ||
| - few internal fixes | ||
|
|
||
| ### 2021-02-09 | ||
| * Released [version 1.25](https://github.com/beakerlib/beakerlib/releases/tag/1.25) | ||
| * rebased yash to version 1.2, fixes the backtick iterpretation | ||
| * docs fixes, by Štěpán Němec <[email protected]> | ||
|
|
||
| ### 2021-01-30 | ||
| * Released [version 1.24](https://github.com/beakerlib/beakerlib/releases/tag/1.24) | ||
| * rlImport --all imports only required libraries, not recommend | ||
| * implemented chkconfig fallback to systemctl | ||
| * fixed `make test` test suite execution | ||
|
|
||
| ### 2021-01-26 | ||
| * Released [version 1.23](https://github.com/beakerlib/beakerlib/releases/tag/1.23) | ||
| * TestResults state indicator | ||
| * profiling code | ||
| * rebased yash to 1.1 | ||
| * fixed rlAssertLesser | ||
| * fixed failed library load name logging | ||
|
|
||
| ### 2021-01-20 | ||
| * Released [version 1.22](https://github.com/beakerlib/beakerlib/releases/tag/1.22) | ||
| * There is finally a new stable release after a lot time. | ||
| * ability to parse yaml files including main.fmf and metadata.yaml | ||
| * ability the use simpler library name - library(foo) | ||
| * ability to refer library using fmf id - {url: '../foo.git', name: '/'}, meaming the library is n the root folder | ||
| * ability to put library even deeper in the tree - library(foo/path/to/the/library), {url: '../foo.git', name: '/path/to/the/library'} | ||
| * better and more consistent search for libraries | ||
| * docs update | ||
| * some optimizations | ||
| * for more info see individual commits | ||
|
|
||
| ### 2019-06-13 | ||
| * Released [version 1.18.1](https://github.com/beakerlib/beakerlib/releases/tag/1.18.1) | ||
| * introducing few bug fixes and better alignment to harness API | ||
|
|
||
| ### 2019-04-04 | ||
| * Released [version 1.18](https://github.com/beakerlib/beakerlib/releases/tag/1.18) | ||
|
|
||
| ### 2018-11-20 | ||
| * merged devel into testing branch | ||
|
|
||
| ### 2018-03-26 | ||
| * draft of [[roadmap|roadmap]] | ||
|
|
||
| ### 2018-01-26 | ||
| * as a part of the journal redesign we also changed the look | ||
|
|
||
| it would be good to have some more opinions on this topic, please comment in [PR23](https://github.com/beakerlib/beakerlib/pull/23) | ||
| ### 2018-01-25 | ||
| * we need to limit the number of ways how to do reboot in the test, | ||
| therefore we would like to gather examples of tests with reboot, i.e. the sequence of beakerlib commands and their embedding to conditions, like: | ||
| ``` | ||
| if [ "$REBOOTCOUNT" -eq 0 ]; then | ||
| rlPhaseStartSetup 'first phase' | ||
| rlPhaseEnd | ||
| reboot; #actual reboot | ||
| else | ||
| rlPhaseStartSetup 'second phase' | ||
| rlPhaseEnd | ||
| fi | ||
| ``` | ||
| Please put your templates into [this pad](https://public.etherpad-mozilla.org/p/beakerlib-reboot) | ||
|
|
||
| ### 2017-12-14 | ||
| * new version [beakerlib-1.17.2](https://github.com/beakerlib/beakerlib/releases/tag/beakerlib-1.17.2) ready | ||
| ``` | ||
| changelog: | ||
| added result file | ||
| fixes regarding changes IFS | ||
| improved performance of xml journal processing which contains really big log messages | ||
| enable nested phases by default | ||
| fixed pre-phase reports generation | ||
| other minor fixes and tweaks | ||
| ``` | ||
|
|
||
| ### 2017-10-06 | ||
| * rename initiative [discussion pad](https://public.etherpad-mozilla.org/p/beakerlib-rename) | ||
|
|
||
|
|
||
| ## Documentation | ||
| Manual pages which are also distributed within the Fedora package can be found [[here|man]]. | ||
|
|
||
| ## Bugs | ||
| [List of open bugs](https://bugzilla.redhat.com/buglist.cgi?bug_status=NEW&bug_status=ASSIGNED&bug_status=POST&bug_status=MODIFIED&bug_status=ON_DEV&bug_status=ON_QA&bug_status=VERIFIED&bug_status=RELEASE_PENDING&component=beakerlib&list_id=8030834&product=Fedora) | ||
|
|
||
| If you face and issue for which is not open a bug already you can proceed:<BR> | ||
| [file a new bug page](https://bugzilla.redhat.com/enter_bug.cgi?product=Fedora&component=beakerlib) can be use for reporting bugs or requesting a RFEs | ||
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,6 @@ | ||
| # Manual | ||
|
|
||
| :::{include} man.md | ||
| --- | ||
| --- | ||
| ::: |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,7 @@ | ||
| # Roadmap | ||
|
|
||
| * implement compatibility changes (spring 2018) | ||
| * python3 | ||
| * bash < 4.1 | ||
| * implement conditional phases as discussed in [bz508650](https://bugzilla.redhat.com/show_bug.cgi?id=508650) (summer 2018?) | ||
| * drop support of bash < 4 (fall 2018) |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,37 @@ | ||
| [build-system] | ||
| requires = ["setuptools", "setuptools-scm"] | ||
| build-backend = "setuptools.build_meta" | ||
|
|
||
| [project] | ||
| name = "beakerlib" | ||
| description = "BeakerLib is a shell-level integration testing library" | ||
| readme = "README.md" | ||
| authors = [ | ||
| { name = "Cristian Le", email = "[email protected]" }, | ||
| { name = "Dalibor Pospíšil", email = "[email protected]"}, | ||
| ] | ||
| maintainers = [ | ||
| { name = "Cristian Le", email = "[email protected]" }, | ||
| ] | ||
| license = { file = "LICENSE" } | ||
| dynamic = ["version"] | ||
|
|
||
|
|
||
| [project.optional-dependencies] | ||
| test = [ | ||
| ] | ||
| docs = [ | ||
| "sphinx >= 6.0", | ||
| "furo", | ||
| "sphinx-design", | ||
| "sphinx-togglebutton", | ||
| "myst-parser", | ||
| "breathe", | ||
| ] | ||
| dev = [ | ||
| "beakerlib[test]", | ||
| "pre-commit", | ||
| ] | ||
|
|
||
| [tool.setuptools] | ||
| packages = [] |
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Uh oh!
There was an error while loading. Please reload this page.