1 From 7598eeaa1defa2884adaa890bb115c493d69cc35 Mon Sep 17 00:00:00 2001
2 From: Bernhard Reutner-Fischer <rep.dot.nop@gmail.com>
3 Date: Sat, 23 Feb 2013 06:39:41 +0000
4 Subject: test: cater for config
6 Signed-off-by: Bernhard Reutner-Fischer <rep.dot.nop@gmail.com>
10 diff --git a/test/math/Makefile.in b/test/math/Makefile.in
11 index e76cbdb..beef650 100644
12 --- a/test/math/Makefile.in
13 +++ b/test/math/Makefile.in
16 # Licensed under the LGPL v2.1, see the file COPYING.LIB in this tarball.
18 -TESTS := basic-test tst-definitions test-fpucw test-float test-ifloat test-double test-idouble \
20 # gamma (removed from TESTS, need to add "small errors are ok" machinery there)
21 -ifeq ($(UCLIBC_HAS_LONG_DOUBLE_MATH),y)
22 -TESTS += test-ldouble test-ildoubl compile_test c99_test
23 +TESTS_DISABLED := gamma
24 +ifeq ($(UCLIBC_HAS_LONG_DOUBLE_MATH),)
25 +TESTS_DISABLED += test-ldouble test-ildoubl compile_test c99_test
27 CFLAGS_basic-test := -DNO_LONG_DOUBLE
29 +ifeq ($(DO_C99_MATH),)
30 +TESTS_DISABLED += test-float test-ifloat test-double test-idouble rint signgam ilogb
35 diff --git a/test/misc/Makefile.in b/test/misc/Makefile.in
36 index 9b74d22..52a3e71 100644
37 --- a/test/misc/Makefile.in
38 +++ b/test/misc/Makefile.in
40 TESTS_DISABLED := outb tst-fnmatch bug-glob1 tst-gnuglob
41 ifeq ($(UCLIBC_HAS_LFS),)
42 TESTS_DISABLED += dirent64
43 +TESTS_DISABLED += tst-statfs # assuming host has LFS on
45 CFLAGS_dirent64 := -D_LARGEFILE_SOURCE -D_LARGEFILE64_SOURCE -D_FILE_OFFSET_BITS=64
47 diff --git a/test/misc/tst-statfs.c b/test/misc/tst-statfs.c
48 index 44ab3aa..b8b4229 100644
49 --- a/test/misc/tst-statfs.c
50 +++ b/test/misc/tst-statfs.c
52 -#define _FILE_OFFSET_BITS 64
57 diff --git a/test/misc/tst-statvfs.c b/test/misc/tst-statvfs.c
58 index c1e8fde..4b67719 100644
59 --- a/test/misc/tst-statvfs.c
60 +++ b/test/misc/tst-statvfs.c
62 -#define _FILE_OFFSET_BITS 64
64 #include <sys/statvfs.h>
67 diff --git a/test/unistd/Makefile.in b/test/unistd/Makefile.in
68 index 24b9a37..cfef22e 100644
69 --- a/test/unistd/Makefile.in
70 +++ b/test/unistd/Makefile.in
71 @@ -5,7 +5,7 @@ ifeq ($(UCLIBC_HAS_LFS),)
72 TESTS_DISABLED := tst-preadwrite64 tst-posix_fallocate64
74 ifeq ($(UCLIBC_HAS_ADVANCED_REALTIME),)
75 -TESTS_DISABLED := tst-posix_fallocate
76 +TESTS_DISABLED += tst-posix_fallocate
78 OPTS_getopt := -abcXXX -9
79 OPTS_getopt_long := --add XXX --delete YYY --verbose