test: Revamp which linux paths are redirected
authorCharles Giessen <charles@lunarg.com>
Tue, 10 Aug 2021 22:07:55 +0000 (16:07 -0600)
committerCharles Giessen <46324611+charles-lunarg@users.noreply.github.com>
Wed, 11 Aug 2021 21:16:33 +0000 (15:16 -0600)
commit773f1d20763d4e0ced660de7c98619eb9e805f81
treeb8d9fdeb9c4c589c2b08501fba109b09d845da4e
parentbaf0ffd791b8ff82c6de966190e4ab6fd537cdde
test: Revamp which linux paths are redirected

Adds FALLBACK_DATA_DIRS, FALLBACK_CONFIG_DIRS, SYSCONFDIR, and EXTRASYSCONFDIR
to the list of redirected paths. They were previously 'covered' by manual entries.
This commit makes them responsive to changes in the build system.

This commit also makes sure that the path used for redirection is one searched by
the loader by using the SYSCONFIG variable. Previously it would use /usr/local/etc/
which was only correct on systems where CMAKE_INSTALL_PREFIX was set to /usr/local.
tests/framework/shim/shim.h