Imported Upstream version 2.8.4
[platform/upstream/man-db.git] / src / tests / Makefile.am
1 ## Process this file with automake to produce Makefile.in
2 ##
3 ## Copyright (C) 2009, 2010, 2011 Colin Watson.
4 ##
5 ## This file is part of man-db.
6 ##
7 ## man-db is free software; you can redistribute it and/or modify it
8 ## under the terms of the GNU General Public License as published by
9 ## the Free Software Foundation; either version 2 of the License, or
10 ## (at your option) any later version.
11 ##
12 ## man-db is distributed in the hope that it will be useful, but
13 ## WITHOUT ANY WARRANTY; without even the implied warranty of
14 ## MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
15 ## GNU General Public License for more details.
16 ##
17 ## You should have received a copy of the GNU General Public License
18 ## along with man-db; if not, write to the Free Software Foundation,
19 ## Inc., 51 Franklin St, Fifth Floor, Boston, MA  02110-1301  USA
20
21 TESTS_ENVIRONMENT = PATH=$(abs_builddir)/..:$$PATH; export PATH; \
22                     DBTYPE=$(DBTYPE); export DBTYPE; \
23                     MANDIR_LAYOUT=$(MANDIR_LAYOUT); export MANDIR_LAYOUT; \
24                     abs_top_builddir=$(abs_top_builddir); export abs_top_builddir; \
25                     OVERRIDE_DIR="$(override_dir)"; export OVERRIDE_DIR;
26 # Each test must use the configure-detected shell, not necessarily /bin/sh.
27 AM_LOG_FLAGS = $(SHELL)
28 ALL_TESTS = \
29         lexgrog-1 \
30         man-1 man-2 man-3 man-4 man-5 man-6 man-7 man-8 man-9 man-10 man-11 \
31         manconv-1 manconv-2 manconv-3 \
32         mandb-1 mandb-2 mandb-3 mandb-4 mandb-5 mandb-6 mandb-7 \
33         whatis-1 \
34         zsoelim-1
35 if !CROSS_COMPILING
36 TESTS = $(ALL_TESTS)
37 endif
38
39 AM_CPPFLAGS = \
40         -I$(top_builddir)/include \
41         -I$(top_builddir)/gl/lib \
42         -I$(top_srcdir)/gl/lib
43 AM_CFLAGS = $(WARN_CFLAGS)
44 check_PROGRAMS = fspause
45 fspause_SOURCES = fspause.c
46 fspause_LDADD = \
47         $(top_builddir)/gl/lib/libgnu.la \
48         $(LIB_NANOSLEEP)
49
50 dist_check_SCRIPTS = testlib.sh $(ALL_TESTS)