Commit the vtable verification feature.
[gcc.git] / libvtv / testsuite / Makefile.am
1 ## Makefile for the testsuite subdirectory of the VTV library.
2 ##
3 ## Copyright (C) 2013 Free Software Foundation, Inc.
4 ##
5 ## Process this file with automake to produce Makefile.in.
6 ##
7 ## This file is part of the Vtable Verification (VTV) Library. This
8 ## library is free software; you can redistribute it and/or modify it
9 ## under the terms of the GNU General Public License as published by
10 ## the Free Software Foundation; either version 3, or (at your option)
11 ## any later version.
12
13 ## This library is distributed in the hope that it will be useful, but
14 ## WITHOUT ANY WARRANTY; without even the implied warranty of
15 ## MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
16 ## General Public License for more details.
17
18 ## You should have received a copy of the GNU General Public License
19 ## along with this library; see the file COPYING3. If not see
20 ## <http://www.gnu.org/licenses/>.
21
22 AUTOMAKE_OPTIONS = nostdinc
23
24 # Runs the testsuite via a script.
25
26 # Create subdirectories.
27 stamp-subdir:
28 if test ! -d lib64; then \
29 mkdir -p lib64; \
30 fi; \
31 if test ! -d lib32; then \
32 mkdir -p lib32; \
33 fi; \
34 echo `date` > stamp-subdir;
35
36
37 testing_script=${libvtv_srcdir}/scripts/run-testsuite.sh
38 check-script: ${testing_script} stamp-subdir
39 -@(chmod +x ${testing_script}; \
40 ${testing_script} ${libvtv_srcdir} ${libvtv_builddir})
41
42 if ENABLE_VTABLE_VERIFY
43 check-am:
44 $(MAKE) $(AM_MAKEFLAGS) check-script
45 else
46 check-am:
47 endif
48
49 .PHONY: check-script
50
51 # By adding these files here, automake will remove them for 'make clean'
52 CLEANFILES = *.out environment-fail-* stamp-* replace-fail-*
53
54 # To remove directories.
55 clean-local:
56 rm -rf lib*