[lttng-dev] [PATCH lttng-ust 1/2] Tests: Replace prove by autotools tap runner

Michael Jeanson mjeanson at efficios.com
Thu May 12 15:41:30 UTC 2016


----- On May 12, 2016, at 11:30 AM, Mathieu Desnoyers mathieu.desnoyers at efficios.com wrote:

> ----- On May 12, 2016, at 11:01 AM, Michael Jeanson mjeanson at efficios.com wrote:
> 
>> This patch removes the dependency on the prove perl script
>> to run the TAP test suite. It replaces it with the autotools
>> shell TAP driver that only requires a shell and awk.
>> 
>> Custom arguments can be passed to the test runner with
>> env variables as follow:
>> 
>>  env LOG_DRIVER_FLAGS='--comments --ignore-exit' \
>>      TESTS='foo.test baz.test' make -e check
>> 
>> This tap driver also creates a log file for each test that
>> can then be used by another system to build a test report.
>> 
> 
> This changes the output of tests to the following:
> 
> [...]
> PASS: ust-elf/test_ust_elf 44 - debug link filename - expected: main.elf.debug,
> got: main.elf.debug
> PASS: ust-elf/test_ust_elf 45 - debug link crc - expected: 0x2b8cedce, got:
> 0x2b8cedce
> PASS: ust-elf/test_ust_elf 46 - hello.exec is not PIC
> PASS: ust-elf/test_ust_elf 47 - hello.pie is PIC
> PASS: ust-elf/test_ust_elf 48 - hello.pic is PIC
> 
> Is it still TAP compliant ?

The tests themselves still output TAP, it's the output of the autotools
TAP driver that is different from "prove" that was previously used.

Michael


More information about the lttng-dev mailing list