On 05.09.2017 11:53, Markus Armbruster wrote: > Thomas Huth <th...@redhat.com> writes: > >> On 01.09.2017 20:03, Eric Blake wrote: >>> It doesn't matter if things are unsorted, but finding stuff in a list >>> is easier when it is sorted. (Sorted under LC_ALL=C rules, rather than >>> en_US.UTF-8). >>> >>> Signed-off-by: Eric Blake <ebl...@redhat.com> >>> --- >>> tests/.gitignore | 30 +++++++++++++++--------------- >>> 1 file changed, 15 insertions(+), 15 deletions(-) >> >> Reviewed-by: Thomas Huth <th...@redhat.com> >> >> BTW, did you note the patch "build-sys: generate tests/.gitignore" from >> Marc-André ? Maybe the list can be generated automatically, too... >> >>> diff --git a/tests/.gitignore b/tests/.gitignore >>> index 64ecd6683b..8d35a58751 100644 >>> --- a/tests/.gitignore >>> +++ b/tests/.gitignore >>> @@ -1,25 +1,27 @@ >>> +*-test >> >> ... but looking at this wildcard, I wonder if we just named most of our >> tests in a bad way. If we name the files something-test instead of >> test-something, we maybe do not need the automatic generation from >> Marc-André (which is kind of ugly because it writes to the source >> directory - and this should not happen when doing out of tree builds). >> >> So what do you think about renaming our tests, so that the above >> wildcard applies instead? > > Apropos naming tests: there's an (unspoken) convention to name unit > tests check-FOO or test-FOO and tests using libqtest FOO-test, but it's > not really honored anymore, probably because people creating tests > didn't know about it.
Maybe it would help to have an entry for libqtest in MAINTAINERS with a wildcard for tests/*-test.c ? Then we would have at least some kind of documentation for this... (BTW: Any volunteers here for such a maintainer job? ;-)) Thomas