Blame tests/autoscan.at

Packit 47b4ca
#							-*- Autotest -*-
Packit 47b4ca
Packit 47b4ca
AT_BANNER([Autoscan.])
Packit 47b4ca
Packit 47b4ca
# Copyright (C) 2005, 2009-2012 Free Software Foundation, Inc.
Packit 47b4ca
#
Packit 47b4ca
# This program is free software: you can redistribute it and/or modify
Packit 47b4ca
# it under the terms of the GNU General Public License as published by
Packit 47b4ca
# the Free Software Foundation, either version 3 of the License, or
Packit 47b4ca
# (at your option) any later version.
Packit 47b4ca
#
Packit 47b4ca
# This program is distributed in the hope that it will be useful,
Packit 47b4ca
# but WITHOUT ANY WARRANTY; without even the implied warranty of
Packit 47b4ca
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
Packit 47b4ca
# GNU General Public License for more details.
Packit 47b4ca
#
Packit 47b4ca
# You should have received a copy of the GNU General Public License
Packit 47b4ca
# along with this program.  If not, see <http://www.gnu.org/licenses/>.
Packit 47b4ca
Packit 47b4ca
AT_SETUP([autoscan])
Packit 47b4ca
Packit 47b4ca
AT_DATA([Makefile.am],
Packit 47b4ca
[[SUBDIRS = subpkg
Packit 47b4ca
]])
Packit 47b4ca
Packit 47b4ca
AT_DATA([configure.ac],
Packit 47b4ca
[[AC_INIT
Packit 47b4ca
AC_PREREQ(2.59)
Packit 47b4ca
AM_INIT_AUTOMAKE(foreign)
Packit 47b4ca
AC_CONFIG_SUBDIRS(subpkg)
Packit 47b4ca
AC_CONFIG_FILES(Makefile)
Packit 47b4ca
AC_OUTPUT
Packit 47b4ca
]])
Packit 47b4ca
Packit 47b4ca
mkdir subpkg
Packit 47b4ca
Packit 47b4ca
AT_DATA([subpkg/Makefile.am], [])
Packit 47b4ca
AT_DATA([subpkg/configure.ac],
Packit 47b4ca
[[AC_INIT
Packit 47b4ca
AM_INIT_AUTOMAKE(foreign)
Packit 47b4ca
AC_CONFIG_FILES(Makefile)
Packit 47b4ca
AC_OUTPUT
Packit 47b4ca
]])
Packit 47b4ca
AT_CHECK([autoscan])
Packit 47b4ca
AT_CHECK([grep subpkg/Makefile configure.scan], [1], [], [ignore])
Packit 47b4ca
Packit 47b4ca
AT_CLEANUP