Tapper::Reports::DPath - Tapper - Extended DPath functionality for Tapper reports
use Tapper::Reports::DPath 'reports_dpath_search'; # the first bogomips entry of math sections: @resultlist = reportdata ( '{ suite_name => "TestSuite-LmBench" } :: /tap/section/math/*/bogomips[0]' ); # all report IDs of suite_id 17 that FAILed: @resultlist = reportdata ( '{ suite_name => "TestSuite-LmBench" } :: /suite_id[value == 17]/../successgrade[value eq 'FAIL']/../id' ); # # '{ "reportgrouptestrun.testrun_id" => 4711 } :: /suite_id[value == 17]/../successgrade[value eq 'FAIL']/../id # # '{ "reportgrouparbitrary.arbitrary_id" => "fc123a2" } :: /suite_id[value == 17]/../successgrade[value eq 'FAIL']/../id
This searches all reports of the test suite "TestSuite-LmBench" and furthermore in them for a TAP section "math" with the particular subtest "bogomips" and takes the first array entry of them.
The part before the '::' selects reports to search in a DBIx::Class search query, the second part is a normal Data::DPath expression that matches against the datastructure that is build from the DB.
Takes an extended DPath expression, applies it to Tapper Reports with TAP::DOM structure and returns the matching results in an array.
Alias for reports_dpath_search.
Cache a result for a raw dpath on a report id.
Return cached result for a raw dpath on a report id.
Cache a result for a complete tapper::dpath on all reports.
Return cached result for a complete tapper::dpath on all reports.
AMD OSRC Tapper Team <tapper@amd64.org>
This software is Copyright (c) 2012 by Advanced Micro Devices, Inc..
This is free software, licensed under:
The (two-clause) FreeBSD License
To install Tapper::Reports::DPath, copy and paste the appropriate command in to your terminal.
cpanm
cpanm Tapper::Reports::DPath
CPAN shell
perl -MCPAN -e shell install Tapper::Reports::DPath
For more information on module installation, please visit the detailed CPAN module installation guide.