deliverable/lttng-ivc.git
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.02759 seconds and 5 git commands to generate.