summaryrefslogtreecommitdiff
path: root/test/misc/Makefile.in
blob: 09ff5c3e9ea1495cbd07645a51fc2dade9ae01e1 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
# uClibc misc tests
# Licensed under the LGPL v2.1, see the file COPYING.LIB in this tarball.

TESTS_DISABLED := outb tst-fnmatch bug-glob1 tst-gnuglob

ifeq ($(TARGET_avr32),y)
TESTS_DISABLED += tst-inotify
endif

ifeq  ($(UCLIBC_HAS_LFS),)
TESTS_DISABLED += dirent64
TESTS_DISABLED += tst-statfs # assuming host has LFS on
endif
CFLAGS_dirent64 := -D_LARGEFILE_SOURCE -D_LARGEFILE64_SOURCE -D_FILE_OFFSET_BITS=64

ifeq ($(UCLIBC_LINUX_SPECIFIC),)
TESTS_DISABLED += tst-inotify
endif

ifeq ($(UCLIBC_HAS_GLOB),)
TESTS_DISABLED += bug-glob2
endif

ifeq ($(UCLIBC_HAS_UTMPX),)
TESTS_DISABLED += tst-utmpx
endif

ifeq ($(UCLIBC_HAS_UTMP),)
TESTS_DISABLED += tst-utmp
endif

DODIFF_dirent    := 1
DODIFF_dirent64  := 1
DODIFF_tst-statfs := 1
DODIFF_tst-statvfs := 1

OPTS_bug-glob1   := $(PWD)
OPTS_tst-fnmatch := < tst-fnmatch.input

MNTENTS = $(shell mount | while read dev on mp rest; do echo $$mp; done)
OPTS_tst-statfs := $(MNTENTS)
OPTS_tst-statvfs := $(MNTENTS)

CFLAGS_bug-glob2 = -fPIC
CFLAGS_opendir-tst1 = -fPIC
CFLAGS_tst-inotify = -fPIC
CFLAGS_tst-utmp = -fPIC
CFLAGS_tst-utmpx = -fPIC