mutter/tests/tools/disable-npots.sh.in
Neil Roberts 596d4628e6 Add a wrapper library to help testing without NPOTs.
* 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
2008-11-24 15:44:16 +00:00

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 "$@"