glibc/conform
Joseph Myers 9a62a9397d Use unique identifiers in conformtest.
This patch makes tests in conformtest use unique identifiers, in
preparation for trying to cover more tests in a single compilation to
speed up these tests as suggested in
<https://sourceware.org/ml/libc-alpha/2018-11/msg00229.html>.

Tests are assigned a number, used in generating identifiers; where a
single call to a run method does multiple compilations (sharing that
number), identifiers are changed as needed to avoid duplication
between those compilations, so they can be combined in future.

Large numbers of positional arguments to format strings make the code
harder to follow, and using the test numbers serves to increase the
number of arguments to such format strings, so the code is generally
changed to use %(name)s where all the arguments come from attributes
of the test object and so vars(self) is sufficient to provide all
those names for the format string.  Cases where some arguments aren't
attributes of self still use positional format arguments.

Tested for x86_64, and with build-many-glibcs.py.

	* conform/conformtest.py (ElementTest.run): Use unique identifiers
	in tests.  Use names for format arguments.
	(ConstantTest.run): Likewise.
	(SymbolTest.run): Likewise.
	(TypeTest.run): Likewise.
	(TagTest.run): Likewise.
	(FunctionTest.run): Likewise.
	(VariableTest.run): Likewise.
	(MacroFunctionTest.run): Likewise.
	(MacroStrTest.run): Likewise.
	(HeaderTests.__init__): Set self.num_tests.
	(HeaderTests.handle_test_line): Set test.num.  Increment
	self.num_tests.
2018-11-20 03:54:53 +00:00
..
data Replace conformtest.pl with conformtest.py. 2018-11-09 13:54:06 +00:00
check-header-lists.sh Update copyright dates with scripts/update-copyrights. 2018-01-01 00:32:25 +00:00
conformtest.py Use unique identifiers in conformtest. 2018-11-20 03:54:53 +00:00
glibcconform.py Replace conformtest.pl with conformtest.py. 2018-11-09 13:54:06 +00:00
linknamespace.py Convert linknamespace tests from Perl to Python. 2018-10-30 22:18:34 +00:00
list-header-symbols.py Replace conform/list-header-symbols.pl with a Python script. 2018-08-31 21:19:51 +00:00
Makefile Update conform/Makefile mkdir commands. 2018-11-09 17:40:58 +00:00