From 7e5058708668a431d1ca90d85271ec868ec94c32 Mon Sep 17 00:00:00 2001 From: "Steinar H. Gunderson" Date: Fri, 12 Oct 2012 22:57:09 +0200 Subject: [PATCH 1/1] Set RMS limit much tighter, now that we have floating-point textures. --- Makefile | 4 +++- test_util.cpp | 2 +- 2 files changed, 4 insertions(+), 2 deletions(-) diff --git a/Makefile b/Makefile index 95661de..454dded 100644 --- a/Makefile +++ b/Makefile @@ -12,7 +12,7 @@ LDFLAGS += -fprofile-arcs -ftest-coverage endif DEMO_OBJS=demo.o -TESTS=effect_chain_test mix_effect_test gamma_expansion_effect_test +TESTS=effect_chain_test mix_effect_test gamma_expansion_effect_test gamma_compression_effect_test # Core. LIB_OBJS=util.o widgets.o effect.o effect_chain.o @@ -57,6 +57,8 @@ mix_effect_test: mix_effect_test.o $(TEST_OBJS) libmovit.a $(CXX) -o $@ $^ $(LDFLAGS) gamma_expansion_effect_test: gamma_expansion_effect_test.o $(TEST_OBJS) libmovit.a $(CXX) -o $@ $^ $(LDFLAGS) +gamma_compression_effect_test: gamma_compression_effect_test.o $(TEST_OBJS) libmovit.a + $(CXX) -o $@ $^ $(LDFLAGS) OBJS=$(DEMO_OBJS) $(LIB_OBJS) $(TEST_OBJS) $(TESTS:=.o) diff --git a/test_util.cpp b/test_util.cpp index 4e37cec..c8337d2 100644 --- a/test_util.cpp +++ b/test_util.cpp @@ -82,7 +82,7 @@ void expect_equal(const float *ref, const float *result, unsigned width, unsigne } const float largest_difference_limit = 1.5 / 255.0; - const float rms_limit = 0.5 / 255.0; + const float rms_limit = 0.2 / 255.0; EXPECT_LT(largest_difference, largest_difference_limit); -- 2.39.2