From a5425a101cd38941961c13f97b56aa0683f64f8e Mon Sep 17 00:00:00 2001 From: Thomas Wood Date: Wed, 19 Nov 2014 15:44:00 +0000 Subject: docs: add a glossary of test name terms Add a glossary of test name terms based on the details in tests/NAMING-CONVENTION. Signed-off-by: Thomas Wood --- docs/reference/intel-gpu-tools/Makefile.am | 10 ++++++++-- 1 file changed, 8 insertions(+), 2 deletions(-) (limited to 'docs/reference/intel-gpu-tools/Makefile.am') diff --git a/docs/reference/intel-gpu-tools/Makefile.am b/docs/reference/intel-gpu-tools/Makefile.am index d7ef4dfc..b40680bd 100644 --- a/docs/reference/intel-gpu-tools/Makefile.am +++ b/docs/reference/intel-gpu-tools/Makefile.am @@ -1,6 +1,8 @@ ## Process this file with automake to produce Makefile.in TESTLISTS = $(top_builddir)/tests/single-tests.txt $(top_builddir)/tests/multi-tests.txt +KEYWORDS = (hang|swap|thrash|crc|tiled|tiling|rte|ctx|exec|rpm) + xml/igt_test_programs_%_programs.xml: $(TESTLISTS) mkdir -p `dirname $@` echo "" > $@ @@ -32,7 +34,9 @@ xml/igt_test_programs_%_description.xml: $(TESTLISTS) echo "" >> $@ echo "Description" >> $@ for test in `cat $(TESTLISTS) | tr ' ' '\n' | grep "^$*" | sort`; do \ - echo "$$test" >> $@; \ + echo "" >> $@; \ + echo "$$test" | perl -pe 's/(?<=_)$(KEYWORDS)(?=(_|\W))/<acronym>\1<\/acronym>/g' >> $@; \ + echo "" >> $@; \ if [ -x $(top_builddir)/tests/$$test ]; then \ testprog=$(top_builddir)/tests/$$test; \ else \ @@ -44,7 +48,9 @@ xml/igt_test_programs_%_description.xml: $(TESTLISTS) echo "Subtests" >> $@; \ echo "" >> $@; \ for subtest in `./$$testprog --list-subtests`; do \ - echo "$$subtest" >> $@; \ + echo "" >> $@; \ + echo "$$subtest" | perl -pe 's/\b$(KEYWORDS)\b/\1<\/acronym>/g' >> $@; \ + echo "" >> $@; \ done; \ echo "" >> $@; \ fi; \ -- cgit v1.2.3