[lttng-dev] Running lttng-tools tests?

Thibault, Daniel Daniel.Thibault at drdc-rddc.gc.ca
Thu May 30 14:59:13 EDT 2013


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/>



More information about the lttng-dev mailing list