mirror of
https://github.com/brl/mutter.git
synced 2024-11-24 00:50:42 -05:00
596d4628e6
* tests/tools/Makefile.am: Optionally build the libdisable-npots.la library depending on whether libdl was detected in the configure script. A helper script is also generated to setup the LD_PRELOAD. * tests/conform/Makefile.am: There are now two versions of the test-report and full-report rules. test-report-normal is the same as before and test-report-disable-npots runs the tests with the disable-npots wrapper script. The full-report rule runs both of them and displays two separate HTML files. The test-report rule just runs the normal version as before. * configure.ac: Add a test for libdl * tests/tools/disable-npots.sh.in: New file. Template for the helper script * tests/tools/disable-npots.c: New file
16 lines
344 B
Bash
16 lines
344 B
Bash
#!/bin/sh
|
|
|
|
# This script sets up the LD_PRELOAD environment to use
|
|
# libdisable-npots.la
|
|
|
|
# Read the .la file so we can get the library name
|
|
. "--builddir--/tests/tools/libdisable-npots.la"
|
|
|
|
if test -n "$LD_PRELOAD"; then
|
|
LD_PRELOAD="${LD_PRELOAD}:";
|
|
fi
|
|
|
|
export LD_PRELOAD="${LD_PRELOAD}--builddir--/tests/tools/.libs/${dlname}"
|
|
|
|
exec "$@"
|