[CMake] A patch for CDash to display labels from test-subprojects
Kay-Uwe 'Kiwi' Lorenz
kay at moduleworks.com
Mon Aug 20 09:19:07 EDT 2012
Hi all,
If you are using subprojects and you have test-only subprojects, cdash will
show the labels of them as "(none)".
Attached you find a patch of index.php against CDash 2.0.2, which add
labels for tests.
Kind regards, Kiwi
--
Kay-Uwe (Kiwi) Lorenz
IT Department
ModuleWorks GmbH
Ritterstr. 12a
52072 Aachen
Germany
HRB 11871
Amtsgericht Aachen
Geschäftsführer Yavuz Murtezaoglu
-------------- next part --------------
--- a/index.php Mon Jul 16 15:05:05 2012 +0200
+++ b/index.php Mon Aug 20 15:06:13 2012 +0200
@@ -862,6 +862,15 @@
$build_row['labels'][] = $label_row['text'];
}
+ $label_rows = pdo_all_rows_query(
+ "SELECT text FROM label, label2test ".
+ "WHERE label2test.buildid='$buildid' ".
+ "AND label2test.labelid=label.id GROUP BY labelid");
+ foreach($label_rows as $label_row)
+ {
+ $build_row['labels'][] = $label_row['text'];
+ }
+
// Updates
if(!empty($build_row['updatestarttime']))
{
More information about the CMake
mailing list