aboutsummaryrefslogtreecommitdiff
path: root/testsuite/Makefile.am
blob: f9b6c0df9258a5c732d3244b3655fd207c58f88f (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
# Copyright (C) 1992 - 2001 Free Software Foundation, Inc.
#
# This program is free software; you can redistribute it and/or modify
# it under the terms of the GNU General Public License as published by
# the Free Software Foundation; either version 1, or (at your option)
# any later version.
#
# This program is distributed in the hope that it will be useful,
# but WITHOUT ANY WARRANTY; without even the implied warranty of
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
# GNU General Public License for more details.
#
# You should have received a copy of the GNU General Public License
# along with this program; if not, write to the Free Software
# Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
#

AUTOMAKE_OPTIONS = dejagnu

if USE_VALGRIND
valgrind_cmd="VALGRIND=valgrind -q --error-exitcode=1 --leak-check=full"
endif

RUNTESTDEFAULTFLAGS = --srcdir $(srcdir) $(valgrind_cmd)

SUBDIRS = ltrace.main ltrace.minor ltrace.torture

EXTRA_DIST = \
	README \
	config/unix.exp \
	lib/compiler.c \
	lib/compiler.cc \
	lib/ltrace.exp \
	run-my-tests.sh

BUILT_SOURCES = env.exp

env.exp: Makefile
	rm -f env.exp
	echo set libelf_LD_LIBRARY_PATH '"$(libelf_LD_LIBRARY_PATH)"' >> $@
	echo set libunwind_LD_LIBRARY_PATH '"$(libunwind_LD_LIBRARY_PATH)"' >> $@

CLEANFILES = *.o *.so *.log *.sum *.ltrace site.bak setval.tmp site.exp env.exp

MAINTAINERCLEANFILES = Makefile.in