| 1 |
# -*- Autotest -*- |
| 2 |
|
| 3 |
AT_BANNER([Autoscan.]) |
| 4 |
|
| 5 |
# Copyright (C) 2005, 2009-2017, 2020-2026 Free Software Foundation, |
| 6 |
# Inc. |
| 7 |
# |
| 8 |
# This program is free software: you can redistribute it and/or modify |
| 9 |
# it under the terms of the GNU General Public License as published by |
| 10 |
# the Free Software Foundation, either version 3 of the License, or |
| 11 |
# (at your option) any later version. |
| 12 |
# |
| 13 |
# This program is distributed in the hope that it will be useful, |
| 14 |
# but WITHOUT ANY WARRANTY; without even the implied warranty of |
| 15 |
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the |
| 16 |
# GNU General Public License for more details. |
| 17 |
# |
| 18 |
# You should have received a copy of the GNU General Public License |
| 19 |
# along with this program. If not, see <https://www.gnu.org/licenses/>. |
| 20 |
|
| 21 |
AT_SETUP([autoscan]) |
| 22 |
|
| 23 |
AT_DATA([Makefile.am], |
| 24 |
[[SUBDIRS = subpkg |
| 25 |
]]) |
| 26 |
|
| 27 |
AT_DATA([configure.ac], |
| 28 |
[[AC_INIT |
| 29 |
AC_PREREQ(2.59) |
| 30 |
AM_INIT_AUTOMAKE(foreign) |
| 31 |
AC_CONFIG_SUBDIRS(subpkg) |
| 32 |
AC_CONFIG_FILES(Makefile) |
| 33 |
AC_OUTPUT |
| 34 |
]]) |
| 35 |
|
| 36 |
mkdir subpkg |
| 37 |
|
| 38 |
AT_DATA([subpkg/Makefile.am], []) |
| 39 |
AT_DATA([subpkg/configure.ac], |
| 40 |
[[AC_INIT |
| 41 |
AM_INIT_AUTOMAKE(foreign) |
| 42 |
AC_CONFIG_FILES(Makefile) |
| 43 |
AC_OUTPUT |
| 44 |
]]) |
| 45 |
AT_CHECK([autoscan]) |
| 46 |
AT_CHECK([grep subpkg/Makefile configure.scan], [1], [], [ignore]) |
| 47 |
|
| 48 |
AT_CLEANUP |