2 # Copyright (C) 2010-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)
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 that POSIX variable expansion '$(var:str=rpl)' works when used
18 # with the TESTS special variable.
20 # For gen-testsuite-part: ==> try-with-serial-tests <==
23 cat >> configure.ac
<< 'END'
27 cat > Makefile.am
<< 'END'
33 (echo '#!/bin/sh' && echo 'exit 0') > $@
&& chmod a
+x $@
34 CLEANFILES
= foo2.
test barz
# For FreeBSD make.
36 # Also try an empty match suffix, to ensure that the ':=' in there is
37 # not confused by the parser with an unportable assignment operator.
38 TESTS
= $
(t1
:=.
test) $
(t2
:x
=y
) $
(t3
:2=z
)
41 MOSTLYCLEANFILES
= *.out
44 cat > foo1.
test <<'END'
47 test x"${TESTSUITE_OK-no}" = x"yes"
49 sed 's/foo1/bary/g' foo1.
test > bary
50 chmod +x foo1.
test bary
57 $MAKE check
>out
2>&1 && { cat out
; exit 1; }
60 grep '^FAIL: foo1\.test *$' out
61 grep '^PASS: foo2\.test *$' out
62 grep '^FAIL: bary *$' out
63 grep '^PASS: barz *$' out
67 TESTSUITE_OK
=yes $MAKE distcheck