#!/usr/bin/make -f
# -*- makefile -*-

%:
	dh $@

override_dh_clean:
	dh_clean
	! [ -r libtool ] || rm libtool

# Run the tests under a virtual X server. Disable accuracy tests that fail
# under Mesa's software rendering; it is not a particularly precise renderer.
space :=
space +=
DISABLED_TESTS := YCbCrConversionEffectTest.TenBitOutput
DISABLED_TESTS += ResampleEffectTest.UpscaleByThreeGetsCorrectPixelCenters
DISABLED_TESTS += ColorspaceConversionEffectTest.*
DISABLED_TESTS += FlatInput.ExternalTextureMipmapState
DISABLED_TESTS += EffectChainTest.Linear10bitIntermediateAccuracy
DISABLED_TESTS += WithAndWithoutComputeShaderTest/WithAndWithoutComputeShaderTest.SquareRoot10bitIntermediateAccuracy/0 
override_dh_auto_test:
	GTEST_FILTER=-$(subst $(space),:,$(DISABLED_TESTS)) xvfb-run -a dh_auto_test
