test-math.patch 1.6 KB

1234567891011121314151617181920212223242526272829303132333435363738394041
  1. diff -Nur uClibc-0.9.33.2.orig/test/math/Makefile.in uClibc-0.9.33.2/test/math/Makefile.in
  2. --- uClibc-0.9.33.2.orig/test/math/Makefile.in 2012-05-15 09:20:09.000000000 +0200
  3. +++ uClibc-0.9.33.2/test/math/Makefile.in 2014-08-07 16:12:20.137047118 +0200
  4. @@ -1,11 +1,13 @@
  5. # uClibc math tests
  6. # Licensed under the LGPL v2.1, see the file COPYING.LIB in this tarball.
  7. -TESTS := basic-test tst-definitions test-fpucw test-float test-ifloat test-double test-idouble \
  8. +TESTS_DISABLED := libm-test
  9. +
  10. +TESTS := basic-test tst-definitions test-fpucw \
  11. rint signgam ilogb
  12. # gamma (removed from TESTS, need to add "small errors are ok" machinery there)
  13. ifeq ($(UCLIBC_HAS_LONG_DOUBLE_MATH),y)
  14. -TESTS += test-ldouble test-ildoubl compile_test c99_test
  15. +TESTS += compile_test c99_test
  16. else
  17. CFLAGS_basic-test := -DNO_LONG_DOUBLE
  18. endif
  19. @@ -23,9 +25,19 @@
  20. PERL := /usr/bin/perl
  21. +MDEPS := $(wildcard test-*.c)
  22. +$(MDEPS): libm-test.c
  23. +
  24. +ifeq ($(TARGET_ARCH),mips)
  25. +ULP_SUFFIX:=$(if $(CONFIG_MIPS_ISA_MIPS64R1)$(CONFIG_MIPS_ISA_MIPS64R2),64,32)
  26. +TARGET_ULP:=$(TARGET_ARCH)$(ULP_SUFFIX)
  27. +else
  28. +TARGET_ULP := $(if $(wildcard libm-test-ulps-$(TARGET_ARCH)),$(TARGET_ARCH),generic)
  29. +endif
  30. +
  31. $(TESTS): libm-test.c
  32. -libm-test.c: libm-test-ulps-$(TARGET_ARCH) libm-test.inc gen-libm-test.pl
  33. - $(Q)$(PERL) ./gen-libm-test.pl -u libm-test-ulps-$(TARGET_ARCH) ./libm-test.inc -o "." 2>&1 > /dev/null
  34. +libm-test.c: libm-test-ulps-$(TARGET_ULP) libm-test.inc gen-libm-test.pl
  35. + $(Q)$(PERL) ./gen-libm-test.pl -u libm-test-ulps-$(TARGET_ULP) ./libm-test.inc -o "." 2>&1 > /dev/null
  36. EXTRA_CLEAN := libm-test.c libm-test-ulps.h