All of lore.kernel.org
 help / color / mirror / Atom feed
* Re: Running lttng-tools tests?
       [not found] <48CF5AC71E61DB46B70D0F388054EFFD12D21ECF@VAL-E-02.valcartier.drdc-rddc.gc.ca>
@ 2013-05-30 19:16 ` Christian Babeux
       [not found] ` <CAGDH53k36vdDRECSym0s8WHAK33ZrMmCVwT4OJt-8kwxmCwQsQ@mail.gmail.com>
  1 sibling, 0 replies; 4+ messages in thread
From: Christian Babeux @ 2013-05-30 19:16 UTC (permalink / raw)
  To: Thibault, Daniel; +Cc: lttng-dev, Couture, Mario, Painchaud, Frederic

Hi Daniel,

> After installing lttng-tools (2.2.0-rc2) in /usr/src, I tried this:
>
> $ cd /usr/src/lttng-tools-2.2.0-rc2/tests
> $  ./run.sh unit_tests

This is indeed the right way to run the tests. Usually I run those in
the source tree _before_ installation e.g.:

[...]
make
cd lttng-tools/tests
./run.sh unit_tests
[...]

Or you can run the make check target after building:

[...]
./configure
make
make check
[...]

Perhaps there is an issue when the tests are installed? Make sure the
tests binaries are properly compiled and are present in the
installation paths. If not, we should remove any tests scripts/program
installation when issuing 'make install'...

Thanks,

Christian

On Thu, May 30, 2013 at 2:59 PM, Thibault, Daniel
<Daniel.Thibault@drdc-rddc.gc.ca> wrote:
> After installing lttng-tools (2.2.0-rc2) in /usr/src, I tried this:
>
> $ cd /usr/src/lttng-tools-2.2.0-rc2/tests
> $  ./run.sh unit_tests
>
>    And I got this:
>
> unit/test_kernel_data .............. Dubious, test returned 1 (wstat 256, 0x100)
> No subtests run
> unit/test_session .................. Dubious, test returned 1 (wstat 256, 0x100)
> No subtests run
> unit/test_uri ...................... Dubious, test returned 1 (wstat 256, 0x100)
> No subtests run
> unit/test_ust_data ................. Dubious, test returned 1 (wstat 256, 0x100)
> No subtests run
> unit/test_utils_parse_size_suffix .. Dubious, test returned 1 (wstat 256, 0x100)
> No subtests run
>
> Test Summary Report
> -------------------
> unit/test_kernel_data            (Wstat: 256 Tests: 0 Failed: 0)
>   Non-zero exit status: 1
>   Parse errors: No plan found in TAP output
> unit/test_session                (Wstat: 256 Tests: 0 Failed: 0)
>   Non-zero exit status: 1
>   Parse errors: No plan found in TAP output
> unit/test_uri                    (Wstat: 256 Tests: 0 Failed: 0)
>   Non-zero exit status: 1
>   Parse errors: No plan found in TAP output
> unit/test_ust_data               (Wstat: 256 Tests: 0 Failed: 0)
>   Non-zero exit status: 1
>   Parse errors: No plan found in TAP output
> unit/test_utils_parse_size_suffix (Wstat: 256 Tests: 0 Failed: 0)
>   Non-zero exit status: 1
>   Parse errors: No plan found in TAP output
> Files=5, Tests=0,  0 wallclock secs ( 0.03 usr  0.00 sys +  0.04 cusr  0.04 csys =  0.11 CPU)
> Result: FAIL
>
>    There is no README in lttng-tools/tests (unlike lttng-ust, but sadly like userspace-rcu), and the script is laconic, so I can't be sure if this is a true failure (my installation works) or if I just ran the tests wrong.  For userspace-rcu, I ran ' ./runtests.sh 2 2 10', but I got no PASS/FAIL evaluation so I'm not 100% sure the tests were a success.
>
>    How are these tests supposed to be run?
>
> Daniel U. Thibault
> Protection des systèmes et contremesures (PSC) | Systems Protection & Countermeasures (SPC)
> Cyber sécurité pour les missions essentielles (CME) | Mission Critical Cyber Security (MCCS)
> R & D pour la défense Canada - Valcartier (RDDC Valcartier) | Defence R&D Canada - Valcartier (DRDC Valcartier)
> 2459 route de la Bravoure
> Québec QC  G3J 1X5
> CANADA
> Vox : (418) 844-4000 x4245
> Fax : (418) 844-4538
> NAC : 918V QSDJ <http://www.travelgis.com/map.asp?addr=918V%20QSDJ>
> Gouvernement du Canada | Government of Canada
> <http://www.valcartier.drdc-rddc.gc.ca/>
>
> _______________________________________________
> lttng-dev mailing list
> lttng-dev@lists.lttng.org
> http://lists.lttng.org/cgi-bin/mailman/listinfo/lttng-dev

_______________________________________________
lttng-dev mailing list
lttng-dev@lists.lttng.org
http://lists.lttng.org/cgi-bin/mailman/listinfo/lttng-dev

^ permalink raw reply	[flat|nested] 4+ messages in thread

* Re: Running lttng-tools tests?
       [not found] ` <CAGDH53k36vdDRECSym0s8WHAK33ZrMmCVwT4OJt-8kwxmCwQsQ@mail.gmail.com>
@ 2013-05-30 20:52   ` Thibault, Daniel
       [not found]   ` <48CF5AC71E61DB46B70D0F388054EFFD12D22366@VAL-E-02.valcartier.drdc-rddc.gc.ca>
  1 sibling, 0 replies; 4+ messages in thread
From: Thibault, Daniel @ 2013-05-30 20:52 UTC (permalink / raw)
  To: Christian Babeux, lttng-dev; +Cc: Painchaud, Frederic, Couture, Mario

   I tried deploying the tarball to another directory and building.  The tests refuse to run ("Could not execute (unit/test_kernel_data): open3: exec of unit/test_kernmel_data failed at /usr/share/perl/5.14/TAP/Parser/Iterator/Process.pm line 168") until after the make step (naturally).  This time I got:

unit/test_kernel_data .............. ok
unit/test_session .................. ok
unit/test_uri ...................... Dubious, test returned 1 (wstat > 256, 0x100)
Failed 1/11 subtests
unit/test_ust_data ................. ok
unit/test_utils_parse_size_suffix .. ok

Test Summary Report
-------------------
unit/test_uri                    (Wstat: 256 Tests: 11 Failed: 1)
  Failed test:  4
  Non-zero exit status: 1
Files=5, Tests=55,  4 wallclock secs ( 0.13 usr  0.08 sys +  1.34 cusr  1.02 csys =  2.57 CPU)
Result: FAIL

   Now I get exactly the same report in the original /usr/src/... folder if I run 'sudo ./run.sh unit_tests' instead of 'sudo ./run.sh unit_tests'.  The problem is clearly one of file ownership (a lot of the /usr/src/... files are root-owned because of the way they were installed).

~~~~~~~~~~
   I was looking into the babeltrace tests as well (cd babeltrace/tests/, ./runall.sh) and I was surprised that every single "succeed" test failed.  Investigation revealed that the babeltrace/converter/babeltrace executable was responsible: it fails with "/usr/bin/ld: fatal error: /usr/src/babeltrace-1.1.0/converter/.libs/26622-lt-babeltrace: open: Permission denied" "collect2: ld a retourné 1 code d'état d'exécutionn".  Surprisingly, the babeltrace/converter/babeltrace executable is *different* from the /usr/local/bin/babeltrace executable (according to diff).  So are the babeltrace-log executables.  The timestamps are four seconds apart.

   The install log shows nothing strange: "libtool: install: /usr/bin/install -c .libs/babeltrace /usr/local/bin/babeltrace".  /usr/bin/install is supposed to do a plain copy, no?

   Changing runall.sh so it runs the installed /usr/local/bin/babeltrace yields successful tests except for the succeed3 trace:

$ babeltrace /usr/src/babeltrace-1.1.0/tests/ctf-traces/succeed/succeed3
[error] at line 9: token ""?\x20\o040?"": syntax error, unexpected ERROR

[error] Error creating AST
[warning] Unable to open trace metadata for path "/usr/src/babeltrace-1.1.0/tests/ctf-traces/succeed/succeed3".
[warning] [Context] Cannot open_trace of format ctf at path /usr/src/babeltrace-1.1.0/tests/ctf-traces/succeed/succeed3.
[warning] [Context] cannot open trace "/usr/src/babeltrace-1.1.0/tests/ctf-traces/succeed/succeed3" from /usr/src/babeltrace-1.1.0/tests/ctf-traces/succeed/succeed3 for reading.
[error] Cannot open any trace for reading.

[error] opening trace "/usr/src/babeltrace-1.1.0/tests/ctf-traces/succeed/succeed3" for reading.

[error] none of the specified trace paths could be opened.

   Here also, ownership is responsible: running 'sudo ./runall.sh' (on the original runall.sh) yields the same successes (and the same succeed3 trace failure).

   So at this point I have three remaining questions:

1) Why does unit/test_uri fail one of its 11 sub-tests?
2) Why does babeltrace fail when reading the succeed3 ctf trace?
3) Why on Earth are the babeltrace executables tampered with when installed?

Daniel U. Thibault
Protection des systèmes et contremesures (PSC) | Systems Protection & Countermeasures (SPC)
Cyber sécurité pour les missions essentielles (CME) | Mission Critical Cyber Security (MCCS)
R & D pour la défense Canada - Valcartier (RDDC Valcartier) | Defence R&D Canada - Valcartier (DRDC Valcartier)
2459 route de la Bravoure
Québec QC  G3J 1X5
CANADA
Vox : (418) 844-4000 x4245
Fax : (418) 844-4538
NAC : 918V QSDJ <http://www.travelgis.com/map.asp?addr=918V%20QSDJ>
Gouvernement du Canada | Government of Canada
<http://www.valcartier.drdc-rddc.gc.ca/>
_______________________________________________
lttng-dev mailing list
lttng-dev@lists.lttng.org
http://lists.lttng.org/cgi-bin/mailman/listinfo/lttng-dev

^ permalink raw reply	[flat|nested] 4+ messages in thread

* Re: Running lttng-tools tests?
       [not found]   ` <48CF5AC71E61DB46B70D0F388054EFFD12D22366@VAL-E-02.valcartier.drdc-rddc.gc.ca>
@ 2013-07-08 15:43     ` Mathieu Desnoyers
  0 siblings, 0 replies; 4+ messages in thread
From: Mathieu Desnoyers @ 2013-07-08 15:43 UTC (permalink / raw)
  To: Thibault, Daniel; +Cc: Painchaud, Frederic, Couture, Mario, lttng-dev

* Thibault, Daniel (Daniel.Thibault@drdc-rddc.gc.ca) wrote:
>    I tried deploying the tarball to another directory and building.  The tests refuse to run ("Could not execute (unit/test_kernel_data): open3: exec of unit/test_kernmel_data failed at /usr/share/perl/5.14/TAP/Parser/Iterator/Process.pm line 168") until after the make step (naturally).  This time I got:
> 
> unit/test_kernel_data .............. ok
> unit/test_session .................. ok
> unit/test_uri ...................... Dubious, test returned 1 (wstat > 256, 0x100)
> Failed 1/11 subtests
> unit/test_ust_data ................. ok
> unit/test_utils_parse_size_suffix .. ok
> 
> Test Summary Report
> -------------------
> unit/test_uri                    (Wstat: 256 Tests: 11 Failed: 1)
>   Failed test:  4
>   Non-zero exit status: 1
> Files=5, Tests=55,  4 wallclock secs ( 0.13 usr  0.08 sys +  1.34 cusr  1.02 csys =  2.57 CPU)
> Result: FAIL
> 
>    Now I get exactly the same report in the original /usr/src/... folder if I run 'sudo ./run.sh unit_tests' instead of 'sudo ./run.sh unit_tests'.  The problem is clearly one of file ownership (a lot of the /usr/src/... files are root-owned because of the way they were installed).
> 
> ~~~~~~~~~~
>    I was looking into the babeltrace tests as well (cd babeltrace/tests/, ./runall.sh) and I was surprised that every single "succeed" test failed.  Investigation revealed that the babeltrace/converter/babeltrace executable was responsible: it fails with "/usr/bin/ld: fatal error: /usr/src/babeltrace-1.1.0/converter/.libs/26622-lt-babeltrace: open: Permission denied" "collect2: ld a retourné 1 code d'état d'exécutionn".  Surprisingly, the babeltrace/converter/babeltrace executable is *different* from the /usr/local/bin/babeltrace executable (according to diff).  So are the babeltrace-log executables.  The timestamps are four seconds apart.
> 
>    The install log shows nothing strange: "libtool: install: /usr/bin/install -c .libs/babeltrace /usr/local/bin/babeltrace".  /usr/bin/install is supposed to do a plain copy, no?
> 
>    Changing runall.sh so it runs the installed /usr/local/bin/babeltrace yields successful tests except for the succeed3 trace:
> 
> $ babeltrace /usr/src/babeltrace-1.1.0/tests/ctf-traces/succeed/succeed3
> [error] at line 9: token ""?\x20\o040?"": syntax error, unexpected ERROR
> 
> [error] Error creating AST
> [warning] Unable to open trace metadata for path "/usr/src/babeltrace-1.1.0/tests/ctf-traces/succeed/succeed3".
> [warning] [Context] Cannot open_trace of format ctf at path /usr/src/babeltrace-1.1.0/tests/ctf-traces/succeed/succeed3.
> [warning] [Context] cannot open trace "/usr/src/babeltrace-1.1.0/tests/ctf-traces/succeed/succeed3" from /usr/src/babeltrace-1.1.0/tests/ctf-traces/succeed/succeed3 for reading.
> [error] Cannot open any trace for reading.
> 
> [error] opening trace "/usr/src/babeltrace-1.1.0/tests/ctf-traces/succeed/succeed3" for reading.
> 
> [error] none of the specified trace paths could be opened.
> 
>    Here also, ownership is responsible: running 'sudo ./runall.sh' (on the original runall.sh) yields the same successes (and the same succeed3 trace failure).
> 
>    So at this point I have three remaining questions:
> 
> 1) Why does unit/test_uri fail one of its 11 sub-tests?
> 2) Why does babeltrace fail when reading the succeed3 ctf trace?
> 3) Why on Earth are the babeltrace executables tampered with when installed?

ensure that your lttng-sessiond is not running when doing make check on
lttng-tools.

ensure that your files have the proper permissions when installed in
your system, if you plan on using them. You seem to be the only one
having this kind of issue, so it's probably specific to your
distribution setup.

Thanks,

Mathieu

> 
> Daniel U. Thibault
> Protection des systèmes et contremesures (PSC) | Systems Protection & Countermeasures (SPC)
> Cyber sécurité pour les missions essentielles (CME) | Mission Critical Cyber Security (MCCS)
> R & D pour la défense Canada - Valcartier (RDDC Valcartier) | Defence R&D Canada - Valcartier (DRDC Valcartier)
> 2459 route de la Bravoure
> Québec QC  G3J 1X5
> CANADA
> Vox : (418) 844-4000 x4245
> Fax : (418) 844-4538
> NAC : 918V QSDJ <http://www.travelgis.com/map.asp?addr=918V%20QSDJ>
> Gouvernement du Canada | Government of Canada
> <http://www.valcartier.drdc-rddc.gc.ca/>
> _______________________________________________
> lttng-dev mailing list
> lttng-dev@lists.lttng.org
> http://lists.lttng.org/cgi-bin/mailman/listinfo/lttng-dev

-- 
Mathieu Desnoyers
EfficiOS Inc.
http://www.efficios.com

^ permalink raw reply	[flat|nested] 4+ messages in thread

* Running lttng-tools tests?
@ 2013-05-30 18:59 Thibault, Daniel
  0 siblings, 0 replies; 4+ messages in thread
From: Thibault, Daniel @ 2013-05-30 18:59 UTC (permalink / raw)
  To: lttng-dev; +Cc: Painchaud, Frederic, Couture, Mario

After installing lttng-tools (2.2.0-rc2) in /usr/src, I tried this:

$ cd /usr/src/lttng-tools-2.2.0-rc2/tests
$  ./run.sh unit_tests

   And I got this:

unit/test_kernel_data .............. Dubious, test returned 1 (wstat 256, 0x100)
No subtests run 
unit/test_session .................. Dubious, test returned 1 (wstat 256, 0x100)
No subtests run 
unit/test_uri ...................... Dubious, test returned 1 (wstat 256, 0x100)
No subtests run 
unit/test_ust_data ................. Dubious, test returned 1 (wstat 256, 0x100)
No subtests run 
unit/test_utils_parse_size_suffix .. Dubious, test returned 1 (wstat 256, 0x100)
No subtests run 

Test Summary Report
-------------------
unit/test_kernel_data            (Wstat: 256 Tests: 0 Failed: 0)
  Non-zero exit status: 1
  Parse errors: No plan found in TAP output
unit/test_session                (Wstat: 256 Tests: 0 Failed: 0)
  Non-zero exit status: 1
  Parse errors: No plan found in TAP output
unit/test_uri                    (Wstat: 256 Tests: 0 Failed: 0)
  Non-zero exit status: 1
  Parse errors: No plan found in TAP output
unit/test_ust_data               (Wstat: 256 Tests: 0 Failed: 0)
  Non-zero exit status: 1
  Parse errors: No plan found in TAP output
unit/test_utils_parse_size_suffix (Wstat: 256 Tests: 0 Failed: 0)
  Non-zero exit status: 1
  Parse errors: No plan found in TAP output
Files=5, Tests=0,  0 wallclock secs ( 0.03 usr  0.00 sys +  0.04 cusr  0.04 csys =  0.11 CPU)
Result: FAIL

   There is no README in lttng-tools/tests (unlike lttng-ust, but sadly like userspace-rcu), and the script is laconic, so I can't be sure if this is a true failure (my installation works) or if I just ran the tests wrong.  For userspace-rcu, I ran ' ./runtests.sh 2 2 10', but I got no PASS/FAIL evaluation so I'm not 100% sure the tests were a success.

   How are these tests supposed to be run?

Daniel U. Thibault
Protection des systèmes et contremesures (PSC) | Systems Protection & Countermeasures (SPC)
Cyber sécurité pour les missions essentielles (CME) | Mission Critical Cyber Security (MCCS)
R & D pour la défense Canada - Valcartier (RDDC Valcartier) | Defence R&D Canada - Valcartier (DRDC Valcartier)
2459 route de la Bravoure
Québec QC  G3J 1X5
CANADA
Vox : (418) 844-4000 x4245
Fax : (418) 844-4538
NAC : 918V QSDJ <http://www.travelgis.com/map.asp?addr=918V%20QSDJ>
Gouvernement du Canada | Government of Canada
<http://www.valcartier.drdc-rddc.gc.ca/>

^ permalink raw reply	[flat|nested] 4+ messages in thread

end of thread, other threads:[~2013-07-08 15:43 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
     [not found] <48CF5AC71E61DB46B70D0F388054EFFD12D21ECF@VAL-E-02.valcartier.drdc-rddc.gc.ca>
2013-05-30 19:16 ` Running lttng-tools tests? Christian Babeux
     [not found] ` <CAGDH53k36vdDRECSym0s8WHAK33ZrMmCVwT4OJt-8kwxmCwQsQ@mail.gmail.com>
2013-05-30 20:52   ` Thibault, Daniel
     [not found]   ` <48CF5AC71E61DB46B70D0F388054EFFD12D22366@VAL-E-02.valcartier.drdc-rddc.gc.ca>
2013-07-08 15:43     ` Mathieu Desnoyers
2013-05-30 18:59 Thibault, Daniel

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.