test init: refactor: new function 'am_setup_testdir'
[automake.git] / t / noinstdir.sh
blobbe07970f7e6c1821ca321189d38c8213b1ca7fa3
1 #! /bin/sh
2 # Copyright (C) 2001-2012 Free Software Foundation, Inc.
4 # This program is free software; you can redistribute it and/or modify
5 # it under the terms of the GNU General Public License as published by
6 # the Free Software Foundation; either version 2, or (at your option)
7 # any later version.
9 # This program is distributed in the hope that it will be useful,
10 # but WITHOUT ANY WARRANTY; without even the implied warranty of
11 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
12 # GNU General Public License for more details.
14 # You should have received a copy of the GNU General Public License
15 # along with this program. If not, see <http://www.gnu.org/licenses/>.
17 # Test to make sure that noinst_* and check_* are not installed.
18 # From Pavel Roskin.
20 . ./defs || exit 1
22 cat > Makefile.am << 'END'
23 noinst_SCRIPTS = foo.sh
24 noinst_DATA = foo.xpm
25 noinst_LIBRARIES = libfoo.a
26 noinst_PROGRAMS = foo
27 noinst_HEADERS = foo.h
28 check_SCRIPTS = bar.sh
29 check_DATA = bar.xpm
30 check_LIBRARIES = libbar.a
31 check_PROGRAMS = bar
32 check_HEADERS = bar.h
33 END
35 cat >> configure.ac << 'END'
36 AC_PROG_CC
37 AM_PROG_AR
38 AC_PROG_RANLIB
39 END
41 : > ar-lib
43 $ACLOCAL
44 $AUTOMAKE
46 grep 'noinstdir' Makefile.in && exit 1
47 grep 'checkdir' Makefile.in && exit 1