docs: cleanup: Rephrase and correct typos
[barectf.git] / README.adoc
CommitLineData
2fe524ac
PP
1// Render with Asciidoctor
2
2fe524ac
PP
3ifndef::env-github[]
4:toc: left
5endif::env-github[]
6
7= barectf
4c8d4e9e 88 March 2022
2fe524ac
PP
9Philippe Proulx
10
11image::https://barectf.org/barectf-logo.svg[{nbsp}]
12
13https://pypi.python.org/pypi/barectf[image:https://img.shields.io/pypi/v/barectf.svg[]]
0ab76514 14https://ci.lttng.org/view/barectf/job/barectf_master_linuxbuild/[image:https://img.shields.io/jenkins/build?jobUrl=https%3A%2F%2Fci.lttng.org%2Fview%2Fbarectf%2Fjob%2Fbarectf_master_linuxbuild%2F[]]
2fe524ac
PP
15
16[.lead]
17https://barectf.org/[**_barectf_**] (from _bare_ metal and _CTF_)
18is a generator of
5a496a3d 19https://en.wikipedia.org/wiki/Tracing_(software)[tracers] that produce
2fe524ac
PP
20https://diamon.org/ctf/[CTF] data streams.
21
22[NOTE]
23====
24This README mostly documents barectf development.
25
26To learn how to use barectf, read its
f4dfde39 27https://barectf.org/docs/[documentation].
2fe524ac
PP
28====
29
30== Install barectf
31
32See the barectf documentation's
974ffe0c 33https://barectf.org/docs/barectf/3.1/install.html[Install barectf]
2fe524ac
PP
34page.
35
36== Build barectf
37
38barectf is a https://python-poetry.org/[Poetry] project.
39
40To build barectf from this repository:
41
42. https://python-poetry.org/docs/#installation[Install Poetry].
43
44. Build the project:
45+
46----
47$ poetry build
48----
49+
50The `dist` directory contains the distribution archives.
51
52== Build the barectf documentation
53
54This repository contains an
4c8d4e9e 55https://docs.antora.org/antora/latest/component-version/[Antora
2fe524ac
PP
56documentation component version] under the `docs` directory.
57
58This component version is the source of the
974ffe0c 59https://barectf.org/docs/[barectf documentation website].
2fe524ac
PP
60
61You can refer to this component version in your
4c8d4e9e 62https://docs.antora.org/antora/latest/playbook/[Antora playbook file],
2fe524ac
PP
63for example:
64
65[source,yaml]
66----
67site:
68 # ...
69content:
70 sources:
71 - url: https://github.com/efficios/barectf
4c8d4e9e 72 branches: [stable-3.1]
2fe524ac
PP
73 start_path: docs
74 # ...
75ui:
76 # ...
77----
78
79== Test barectf
80
81To run the barectf tests:
82
83. Make sure you have the testing requirements:
84** A little-endian architecture.
85+
86YAML configuration files of tracing tests use a little-endian
87native byte order.
88
f4dfde39 89** https://tox.wiki/en/latest/installation.html[tox]
2fe524ac
PP
90** A C{nbsp}compiler.
91+
92If your C{nbsp}compiler is not the command `cc`, then set the `CC`
93environment variable to your compiler's path and export it to run
94the barectf tests.
95
96** https://www.gnu.org/software/make/[GNU Make]
97
98. Run the tests:
99+
100----
101$ tox
102----
103
104== Get help
105
106See the barectf documentation's
974ffe0c 107https://barectf.org/docs/barectf/3.1/get-help.html[Get help] page.
This page took 0.026117 seconds and 4 git commands to generate.