xmlconfig: Add unit tests for recent bugs in the driconf rewrite.
authorEric Anholt <eric@anholt.net>
Wed, 7 Oct 2020 16:59:43 +0000 (09:59 -0700)
committerMarge Bot <eric+marge@anholt.net>
Fri, 4 Dec 2020 21:32:17 +0000 (21:32 +0000)
commit1618bd1bee6c80a3614c980f6649ae5a13bfeff4
tree26a29563550b6750889793ae2e71c796277e1292
parentaacf309c8d8e03aa411b5da1298864afd0ed0eca
xmlconfig: Add unit tests for recent bugs in the driconf rewrite.

This covers:
7fb4ab9ec122 ("driconf: Restore the ability to override driconf with the environment.")
2b977adff805 ("xmlconfig: fix scandir_filter")

and touches a bit more of drirc logic while I'm here.

Reviewed-by: Adam Jackson <ajax@redhat.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/7048>
src/util/meson.build
src/util/tests/drirc_configdir/00-test.conf [new file with mode: 0644]
src/util/tests/drirc_configdir/01-unused [new file with mode: 0644]
src/util/tests/drirc_home/.drirc [new file with mode: 0644]
src/util/tests/xmlconfig.cpp
src/util/xmlconfig.c
src/util/xmlconfig.h