fix: tests: grep for '$key =' in metadata Always grep for '$key =' to avoid a collision with a value, for example if you are looking for the 'domain' key and your hostname contains 'domain'. While we are here, add a bunch of logging to facilitate debugging in the future. Change-Id: I09197169ab7f842921c9139fdeb36007d7b20cfb Signed-off-by: Michael Jeanson <mjeanson@efficios.com> Signed-off-by: Jérémie Galarneau <jeremie.galarneau@efficios.com>
Remove part of last name to fit in a 80 character line It plays much more nicely with the .clang-format since it ensure that the line stay inside the 80 column limit. It also match my signed-off and other files already present in the project. Signed-off-by: Jonathan Rajotte <jonathan.rajotte-julien@efficios.com> Change-Id: Ib1ce1f101e9f24c03a05888b5fb1901341d8c005 Signed-off-by: Jérémie Galarneau <jeremie.galarneau@efficios.com>
tests: Move to kernel style SPDX license identifiers The SPDX identifier is a legally binding shorthand, which can be used instead of the full boiler plate text. See https://spdx.org/ids-how for details. Signed-off-by: Michael Jeanson <mjeanson@efficios.com> Change-Id: I89cd4b4b7440f71f52426a5508252932bb46e796 Signed-off-by: Jérémie Galarneau <jeremie.galarneau@efficios.com>
Tests: metadata env scope values The tests extract information from the metadata env scope of the trace and reconstruct an lttng directory hierarchy to validate that the information found in the metadata is correct. Testing this way simulate a viewer that must reconstruct a lttng directory hierarchy from metadata information only. This information is mostly there for this purpose. While there we validate the value of other env field when possible. Signed-off-by: Jonathan Rajotte <jonathan.rajotte-julien@efficios.com> Signed-off-by: Jérémie Galarneau <jeremie.galarneau@efficios.com>