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