deliverable/lttng-ivc.git
6 years agoliblttng-ctl backward compatibility tests
Jonathan Rajotte [Wed, 22 Nov 2017 21:03:05 +0000 (16:03 -0500)] 
liblttng-ctl backward compatibility tests

Signed-off-by: Jonathan Rajotte <jonathan.rajotte-julien@efficios.com>
6 years agoRevert
Jonathan Rajotte [Wed, 22 Nov 2017 19:42:46 +0000 (14:42 -0500)] 
Revert

This is not needed, we can simply use the "lttng" bin for testing.

Signed-off-by: Jonathan Rajotte <jonathan.rajotte-julien@efficios.com>
6 years agoIntroduce ust_app_tools_update tests
Jonathan Rajotte [Wed, 22 Nov 2017 19:11:08 +0000 (14:11 -0500)] 
Introduce ust_app_tools_update tests

This provide a basic testing scenario where an app build against
lttng-ust 2.x is run inside a runtime for version 2.(x+1) or 2.(x-1) in
cases where we expect known features.

Signed-off-by: Jonathan Rajotte <jonathan.rajotte-julien@efficios.com>
6 years agoInclude lttng-ctl apps for liblttng-ctl testing
Jonathan Rajotte [Wed, 22 Nov 2017 19:09:44 +0000 (14:09 -0500)] 
Include lttng-ctl apps for liblttng-ctl testing

Signed-off-by: Jonathan Rajotte <jonathan.rajotte-julien@efficios.com>
6 years agoTypo
Jonathan Rajotte [Wed, 22 Nov 2017 19:08:49 +0000 (14:08 -0500)] 
Typo

Signed-off-by: Jonathan Rajotte <jonathan.rajotte-julien@efficios.com>
6 years agofixup! Introduce precooked project
Jonathan Rajotte [Wed, 22 Nov 2017 19:04:26 +0000 (14:04 -0500)] 
fixup! Introduce precooked project

6 years agofixup! Implement Runtime wrapper
Jonathan Rajotte [Wed, 22 Nov 2017 19:03:36 +0000 (14:03 -0500)] 
fixup! Implement Runtime wrapper

6 years agoCleanup
Jonathan Rajotte [Wed, 22 Nov 2017 19:02:09 +0000 (14:02 -0500)] 
Cleanup

This matrix will be redefined when necessary.

Signed-off-by: Jonathan Rajotte <jonathan.rajotte-julien@efficios.com>
6 years agoValidate the trace generated during testing
Jonathan Rajotte [Wed, 22 Nov 2017 19:01:33 +0000 (14:01 -0500)] 
Validate the trace generated during testing

Signed-off-by: Jonathan Rajotte <jonathan.rajotte-julien@efficios.com>
6 years agoConsumerd swapping for 2.8-2.9 unexpectedly works in a basic test case
Jonathan Rajotte [Wed, 22 Nov 2017 19:00:49 +0000 (14:00 -0500)] 
Consumerd swapping for 2.8-2.9 unexpectedly works in a basic test case

Signed-off-by: Jonathan Rajotte <jonathan.rajotte-julien@efficios.com>
6 years agoInclude babeltre 1.3 testing even if flaky
Jonathan Rajotte [Wed, 22 Nov 2017 18:59:38 +0000 (13:59 -0500)] 
Include babeltre 1.3 testing even if flaky

The test tuples are marked as expected to fail since these test are
flaky. Investigation under way.

Signed-off-by: Jonathan Rajotte <jonathan.rajotte-julien@efficios.com>
6 years agoAlways issues lttng stop before destroy
Jonathan Rajotte [Wed, 22 Nov 2017 18:58:48 +0000 (13:58 -0500)] 
Always issues lttng stop before destroy

lttng-tools 2.7 did not perform a stop on destroy.

Signed-off-by: Jonathan Rajotte <jonathan.rajotte-julien@efficios.com>
6 years agoFix: be aggressive on closing to prevent hanging sessiond
Jonathan Rajotte [Fri, 17 Nov 2017 01:25:58 +0000 (20:25 -0500)] 
Fix: be aggressive on closing to prevent hanging sessiond

Signed-off-by: Jonathan Rajotte <jonathan.rajotte-julien@efficios.com>
6 years agoSupport optional args for sessiond_spawn
Jonathan Rajotte [Fri, 17 Nov 2017 00:36:19 +0000 (19:36 -0500)] 
Support optional args for sessiond_spawn

Signed-off-by: Jonathan Rajotte <jonathan.rajotte-julien@efficios.com>
6 years agoAdd timeout to run
Jonathan Rajotte [Fri, 17 Nov 2017 00:35:58 +0000 (19:35 -0500)] 
Add timeout to run

Signed-off-by: Jonathan Rajotte <jonathan.rajotte-julien@efficios.com>
6 years agoUse subprocess_terminate on Runtime close
Jonathan Rajotte [Fri, 17 Nov 2017 00:35:02 +0000 (19:35 -0500)] 
Use subprocess_terminate on Runtime close

Signed-off-by: Jonathan Rajotte <jonathan.rajotte-julien@efficios.com>
6 years agoFix: use uuid for kill
Jonathan Rajotte [Fri, 17 Nov 2017 00:34:33 +0000 (19:34 -0500)] 
Fix: use uuid for kill

Signed-off-by: Jonathan Rajotte <jonathan.rajotte-julien@efficios.com>
6 years agoCleanup
Jonathan Rajotte [Fri, 17 Nov 2017 00:23:05 +0000 (19:23 -0500)] 
Cleanup

Signed-off-by: Jonathan Rajotte <jonathan.rajotte-julien@efficios.com>
6 years agoIntroduce babeltrace live test
Jonathan Rajotte [Wed, 15 Nov 2017 18:56:35 +0000 (13:56 -0500)] 
Introduce babeltrace live test

These test seems to expose a bug/race on relayd/babeltrace side with
mostly babeltrace 1.3.

Further investigation is required to either modify the test or provide a
fix on the concerned project.

Signed-off-by: Jonathan Rajotte <jonathan.rajotte-julien@efficios.com>
6 years agoUtility function for relayd spawning
Jonathan Rajotte [Wed, 15 Nov 2017 18:49:37 +0000 (13:49 -0500)] 
Utility function for relayd spawning

Spawn a relayd under a runtime with random free ports.

Synchronization is based on log which is less than ideal.

Signed-off-by: Jonathan Rajotte <jonathan.rajotte-julien@efficios.com>
6 years agoRework subprocess utility function
Jonathan Rajotte [Wed, 15 Nov 2017 18:47:54 +0000 (13:47 -0500)] 
Rework subprocess utility function

Add a wait function with a possible timeout.

The terminate function will perform an aggressive kill if the timeout is
reached.

Signed-off-by: Jonathan Rajotte <jonathan.rajotte-julien@efficios.com>
6 years agoUnload test module only if it was loaded
Jonathan Rajotte [Wed, 15 Nov 2017 18:47:16 +0000 (13:47 -0500)] 
Unload test module only if it was loaded

Signed-off-by: Jonathan Rajotte <jonathan.rajotte-julien@efficios.com>
6 years agoTraceback is not used
Jonathan Rajotte [Wed, 15 Nov 2017 18:46:42 +0000 (13:46 -0500)] 
Traceback is not used

Signed-off-by: Jonathan Rajotte <jonathan.rajotte-julien@efficios.com>
6 years agoIntroduce basic babeltrace testing
Jonathan Rajotte [Tue, 14 Nov 2017 22:06:16 +0000 (17:06 -0500)] 
Introduce basic babeltrace testing

Signed-off-by: Jonathan Rajotte <jonathan.rajotte-julien@efficios.com>
6 years agoIntroduce consumerd vs relayd testing
Jonathan Rajotte [Tue, 14 Nov 2017 02:17:53 +0000 (21:17 -0500)] 
Introduce consumerd vs relayd testing

Those testing are performed locally only.

Signed-off-by: Jonathan Rajotte <jonathan.rajotte-julien@efficios.com>
6 years agoRemove debug printing statement
Jonathan Rajotte [Tue, 14 Nov 2017 02:17:20 +0000 (21:17 -0500)] 
Remove debug printing statement

Signed-off-by: Jonathan Rajotte <jonathan.rajotte-julien@efficios.com>
6 years agoBase utils for xsd mi validation and saved sessions file
Jonathan Rajotte [Mon, 13 Nov 2017 16:46:05 +0000 (11:46 -0500)] 
Base utils for xsd mi validation and saved sessions file

Signed-off-by: Jonathan Rajotte <jonathan.rajotte-julien@efficios.com>
6 years agoIgnore .envrc from direnv
Jonathan Rajotte [Mon, 13 Nov 2017 16:45:03 +0000 (11:45 -0500)] 
Ignore .envrc from direnv

Signed-off-by: Jonathan Rajotte <jonathan.rajotte-julien@efficios.com>
6 years agoIntroduce save load test
Jonathan Rajotte [Mon, 13 Nov 2017 16:44:46 +0000 (11:44 -0500)] 
Introduce save load test

Signed-off-by: Jonathan Rajotte <jonathan.rajotte-julien@efficios.com>
6 years agoIntroduce test_ust_python_agent_vs_tools.py
Jonathan Rajotte [Wed, 8 Nov 2017 21:49:28 +0000 (16:49 -0500)] 
Introduce test_ust_python_agent_vs_tools.py

Signed-off-by: Jonathan Rajotte <jonathan.rajotte-julien@efficios.com>
6 years agoDo not use for now since a regression in userspace master deadlock java agent
Jonathan Rajotte [Tue, 7 Nov 2017 01:04:25 +0000 (20:04 -0500)] 
Do not use for now since a regression in userspace master deadlock java agent

Signed-off-by: Jonathan Rajotte <jonathan.rajotte-julien@efficios.com>
6 years agoAdd test_ust_java_agent_vs_tools
Jonathan Rajotte [Tue, 7 Nov 2017 01:03:33 +0000 (20:03 -0500)] 
Add test_ust_java_agent_vs_tools

Signed-off-by: Jonathan Rajotte <jonathan.rajotte-julien@efficios.com>
6 years agoSupport version ABI check for test_ust_app_vs_ust_tools
Jonathan Rajotte [Mon, 6 Nov 2017 21:13:43 +0000 (16:13 -0500)] 
Support version ABI check for test_ust_app_vs_ust_tools

Introduce a small utils for string searching inside a file.

Signed-off-by: Jonathan Rajotte <jonathan.rajotte-julien@efficios.com>
6 years agoBuild jul agent and python agent for lttng-ust
Jonathan Rajotte [Wed, 1 Nov 2017 15:40:32 +0000 (11:40 -0400)] 
Build jul agent and python agent for lttng-ust

Signed-off-by: Jonathan Rajotte <jonathan.rajotte-julien@efficios.com>
6 years agoAdd statedump regen and star globing for ust testing
Jonathan Rajotte [Tue, 31 Oct 2017 23:27:26 +0000 (19:27 -0400)] 
Add statedump regen and star globing for ust testing

Signed-off-by: Jonathan Rajotte <jonathan.rajotte-julien@efficios.com>
6 years agoFix: pytest.fail not fails
Jonathan Rajotte [Tue, 31 Oct 2017 20:24:36 +0000 (16:24 -0400)] 
Fix: pytest.fail not fails

Signed-off-by: Jonathan Rajotte <jonathan.rajotte-julien@efficios.com>
6 years agoAdd utility shell script to launch pytest under a venv
Jonathan Rajotte [Tue, 31 Oct 2017 19:39:52 +0000 (15:39 -0400)] 
Add utility shell script to launch pytest under a venv

Signed-off-by: Jonathan Rajotte <jonathan.rajotte-julien@efficios.com>
6 years agoImplement part of test_modules_abi_vs_tools
Jonathan Rajotte [Tue, 31 Oct 2017 19:38:49 +0000 (15:38 -0400)] 
Implement part of test_modules_abi_vs_tools

Signed-off-by: Jonathan Rajotte <jonathan.rajotte-julien@efficios.com>
6 years agoFormatting
Jonathan Rajotte [Tue, 31 Oct 2017 19:37:14 +0000 (15:37 -0400)] 
Formatting

Signed-off-by: Jonathan Rajotte <jonathan.rajotte-julien@efficios.com>
6 years agoRename to must_be_root
Jonathan Rajotte [Tue, 31 Oct 2017 19:36:30 +0000 (15:36 -0400)] 
Rename to must_be_root

Signed-off-by: Jonathan Rajotte <jonathan.rajotte-julien@efficios.com>
6 years agoFix: wrong option for directory manipulation of modprobe
Jonathan Rajotte [Tue, 31 Oct 2017 19:35:27 +0000 (15:35 -0400)] 
Fix: wrong option for directory manipulation of modprobe

Signed-off-by: Jonathan Rajotte <jonathan.rajotte-julien@efficios.com>
6 years agoRemove unnecessary handler
Jonathan Rajotte [Tue, 31 Oct 2017 15:50:11 +0000 (11:50 -0400)] 
Remove unnecessary handler

Signed-off-by: Jonathan Rajotte <jonathan.rajotte-julien@efficios.com>
6 years agoChecksum the project.py file to validate that the pickle we get from the project...
Jonathan Rajotte [Tue, 31 Oct 2017 15:48:43 +0000 (11:48 -0400)] 
Checksum the project.py file to validate that the pickle we get from the project cache is still valid.

This will rebuild all project if project.py changes. Not the best
solution but is good enough to prevent corruption.

Signed-off-by: Jonathan Rajotte <jonathan.rajotte-julien@efficios.com>
6 years agoUse os.path.join
Jonathan Rajotte [Tue, 31 Oct 2017 15:26:38 +0000 (11:26 -0400)] 
Use os.path.join

Signed-off-by: Jonathan Rajotte <jonathan.rajotte-julien@efficios.com>
6 years agoAdd test_ust_tracepoint_probe_ABI_API_vs_ust
Jonathan Rajotte [Thu, 26 Oct 2017 19:54:20 +0000 (15:54 -0400)] 
Add test_ust_tracepoint_probe_ABI_API_vs_ust

6 years agoMarx as xfail since it seems to be problematic
Jonathan Rajotte [Thu, 26 Oct 2017 15:55:59 +0000 (11:55 -0400)] 
Marx as xfail since it seems to be problematic

Looks like the sizeof fields changed between 2.7 and 2.8 and lead to
serialization problem on event creation sessiond side.

Since no response is sent it can also end up in a hang app side.

Signed-off-by: Jonathan Rajotte <jonathan.rajotte-julien@efficios.com>
6 years agoAdd ust_tracepoint_ABI-API_vs_ust
Jonathan Rajotte [Thu, 26 Oct 2017 15:17:33 +0000 (11:17 -0400)] 
Add ust_tracepoint_ABI-API_vs_ust

Signed-off-by: Jonathan Rajotte <jonathan.rajotte-julien@efficios.com>
6 years agoAdd preload_provider app
Jonathan Rajotte [Thu, 26 Oct 2017 15:13:38 +0000 (11:13 -0400)] 
Add preload_provider app

Shared object provider can be built and used independently of the app under
test.

Signed-off-by: Jonathan Rajotte <jonathan.rajotte-julien@efficios.com>
6 years agoAlways terminate sessiond before reading traces.
Jonathan Rajotte [Thu, 26 Oct 2017 15:11:50 +0000 (11:11 -0400)] 
Always terminate sessiond before reading traces.

Ensure that data is present on disk at the moment of reading.

Signed-off-by: Jonathan Rajotte <jonathan.rajotte-julien@efficios.com>
6 years agoOutput env cmd file as a possible bash like format for easier debugging
Jonathan Rajotte [Thu, 26 Oct 2017 15:09:53 +0000 (11:09 -0400)] 
Output env cmd file as a possible bash like format for easier debugging

Signed-off-by: Jonathan Rajotte <jonathan.rajotte-julien@efficios.com>
6 years agoAdd ld_preload capability to runtime.run()
Jonathan Rajotte [Thu, 26 Oct 2017 15:01:39 +0000 (11:01 -0400)] 
Add ld_preload capability to runtime.run()

Signed-off-by: Jonathan Rajotte <jonathan.rajotte-julien@efficios.com>
6 years agoFix: ld_library_path uses : as separator
Jonathan Rajotte [Thu, 26 Oct 2017 15:01:07 +0000 (11:01 -0400)] 
Fix: ld_library_path uses : as separator

Signed-off-by: Jonathan Rajotte <jonathan.rajotte-julien@efficios.com>
6 years agoExtract spawn sessiond to utils function
Jonathan Rajotte [Tue, 24 Oct 2017 15:54:20 +0000 (11:54 -0400)] 
Extract spawn sessiond to utils function

Signed-off-by: Jonathan Rajotte <jonathan.rajotte-julien@efficios.com>
6 years agoRemove whitespace
Jonathan Rajotte [Tue, 24 Oct 2017 15:22:25 +0000 (11:22 -0400)] 
Remove whitespace

Signed-off-by: Jonathan Rajotte <jonathan.rajotte-julien@efficios.com>
6 years agoBasic test ust_app_vs_ust_tools
Jonathan Rajotte [Tue, 24 Oct 2017 14:55:18 +0000 (10:55 -0400)] 
Basic test ust_app_vs_ust_tools

6 years agomodules_abi_vs_tools base empty test
Jonathan Rajotte [Tue, 24 Oct 2017 14:53:30 +0000 (10:53 -0400)] 
modules_abi_vs_tools base empty test

TODO:
add skip if not root.
version check the current kernel version and mark as skip or expected to fail.
implement tests.

Signed-off-by: Jonathan Rajotte <jonathan.rajotte-julien@efficios.com>
6 years agoBasic utils
Jonathan Rajotte [Tue, 24 Oct 2017 14:51:14 +0000 (10:51 -0400)] 
Basic utils

Signed-off-by: Jonathan Rajotte <jonathan.rajotte-julien@efficios.com>
6 years agoImport gen-ust-app application
Jonathan Rajotte [Tue, 24 Oct 2017 14:50:33 +0000 (10:50 -0400)] 
Import gen-ust-app application

Signed-off-by: Jonathan Rajotte <jonathan.rajotte-julien@efficios.com>
6 years agoMultiple framework fixes
Jonathan Rajotte [Tue, 24 Oct 2017 14:49:43 +0000 (10:49 -0400)] 
Multiple framework fixes

Signed-off-by: Jonathan Rajotte <jonathan.rajotte-julien@efficios.com>
6 years agoImplement Runtime wrapper
Jonathan Rajotte [Mon, 16 Oct 2017 20:19:03 +0000 (16:19 -0400)] 
Implement Runtime wrapper

Using this wrapper, it is possible obtain a specifier runtime environment
with valid pre-defined environment variables.

Each runtime can spawn individual background process and run command as
if it was on the command line. Each runtime also save all stdout and
stderr for further inspection and validation.

Include fix-up to Project objects to accomodate the Runtime object
requirement.

Signed-off-by: Jonathan Rajotte <jonathan.rajotte-julien@efficios.com>
6 years agoIntroduce precooked project
Jonathan Rajotte [Wed, 11 Oct 2017 19:49:26 +0000 (15:49 -0400)] 
Introduce precooked project

Precooked projects are cached project. This allows test that need
vanilla binary of projects to simply get a valid project without the
need to build one if it was already built.

This case is persistent accross pytest call and will update itself if
the run configuration is changed.

Signed-off-by: Jonathan Rajotte <jonathan.rajotte-julien@efficios.com>
6 years agoBase framework and liblttng-ust-ctl test
Jonathan Rajotte [Mon, 2 Oct 2017 21:57:56 +0000 (17:57 -0400)] 
Base framework and liblttng-ust-ctl test

Provide building block for building projects and a base primer for
pytest usage.

test_ust_so_name_vs_tools.py uses parametrized tests to ease the
handling of matrix testing.

Note that matrix can also be restricted to only tuples where certains
projects are constituent. This can be set under setting.py for now.

Signed-off-by: Jonathan Rajotte <jonathan.rajotte-julien@efficios.com>
6 years agoIgnore swp file and .cache directory
Jonathan Rajotte [Mon, 2 Oct 2017 21:57:25 +0000 (17:57 -0400)] 
Ignore swp file and .cache directory

Signed-off-by: Jonathan Rajotte <jonathan.rajotte-julien@efficios.com>
6 years agoCleanuop to squash
Jonathan Rajotte [Mon, 2 Oct 2017 21:55:23 +0000 (17:55 -0400)] 
Cleanuop to squash

Signed-off-by: Jonathan Rajotte <jonathan.rajotte-julien@efficios.com>
6 years agoAdd ignore for python in general and project specific tmp files
Jonathan Rajotte [Mon, 2 Oct 2017 21:53:27 +0000 (17:53 -0400)] 
Add ignore for python in general and project specific tmp files

Signed-off-by: Jonathan Rajotte <jonathan.rajotte-julien@efficios.com>
6 years agoInitial commit
Jonathan Rajotte [Mon, 2 Oct 2017 21:46:59 +0000 (17:46 -0400)] 
Initial commit

This page took 0.033362 seconds and 5 git commands to generate.