diff mbox

[i-g-t,2/6] docs: add subtest lists to test descriptions

Message ID 1417182334-20027-2-git-send-email-thomas.wood@intel.com (mailing list archive)
State New, archived
Headers show

Commit Message

Thomas Wood Nov. 28, 2014, 1:45 p.m. UTC
Signed-off-by: Thomas Wood <thomas.wood@intel.com>
---
 docs/reference/intel-gpu-tools/Makefile.am | 11 ++++++++++-
 1 file changed, 10 insertions(+), 1 deletion(-)
diff mbox

Patch

diff --git a/docs/reference/intel-gpu-tools/Makefile.am b/docs/reference/intel-gpu-tools/Makefile.am
index cd9c771..d7ef4df 100644
--- a/docs/reference/intel-gpu-tools/Makefile.am
+++ b/docs/reference/intel-gpu-tools/Makefile.am
@@ -39,7 +39,16 @@  xml/igt_test_programs_%_description.xml: $(TESTLISTS)
 			testprog=$(top_srcdir)/tests/$$test; \
 		fi; \
 		 ./$$testprog --help-description >> $@; \
-		echo "</para></refsect2>" >> $@; \
+		echo "</para>" >> $@; \
+		if ./$$testprog --list-subtests > /dev/null ; then \
+			echo "<refsect3><title>Subtests</title>" >> $@; \
+			echo "<simplelist>" >> $@; \
+			for subtest in `./$$testprog --list-subtests`; do \
+				echo "<member>$$subtest</member>" >> $@; \
+			done; \
+			echo "</simplelist></refsect3>" >> $@; \
+		fi; \
+		echo "</refsect2>" >> $@; \
 	done;
 	echo "</refsect1>" >> $@