diff options
author | Stefano Lattarini <stefano.lattarini@gmail.com> | 2012-06-02 20:52:26 +0200 |
---|---|---|
committer | Stefano Lattarini <stefano.lattarini@gmail.com> | 2012-06-02 21:44:00 +0200 |
commit | 9dea4346c710904599d62d3b15df191b9d533866 (patch) | |
tree | c280195d965b4fb6f8f3579580a6b7bc4451fa24 /t/internals.tap | |
parent | a09d8f50b3ba671c5366b46edf7f48192a936c99 (diff) | |
download | automake-9dea4346c710904599d62d3b15df191b9d533866.tar.gz |
[ng] internals: new variable $(am__newline)
* lib/am/header-vars.am (am__newline): New, contains one single newline.
* t/internals.tap: Test it.
Signed-off-by: Stefano Lattarini <stefano.lattarini@gmail.com>
Diffstat (limited to 't/internals.tap')
-rwxr-xr-x | t/internals.tap | 10 |
1 files changed, 9 insertions, 1 deletions
diff --git a/t/internals.tap b/t/internals.tap index 4b545b144..2c2fccda6 100755 --- a/t/internals.tap +++ b/t/internals.tap @@ -19,7 +19,7 @@ am_create_testdir=empty . ./defs || Exit 1 -plan_ 7 +plan_ 8 cp "$am_amdir"/header-vars.am . \ || fatal_ "fetching makefile fragment headers-vars.am" @@ -161,6 +161,13 @@ test-canonicalize: test '$(call am__canon,$(comma))' = '_' test '$(call am__canon,$(bslash)$(comma))' = '__' test '$(call am__canon,x$(comma)@$(bslash))' = 'x_@_' + +.PHONY: test-newline +test-newline: + @echo OK > foo$(am__newline)@touch bar$(am__newline)-false > baz + test `cat foo` = OK + test -f bar + test -f baz END command_ok_ am__strip_firstword $MAKE test-strip-firstword @@ -170,5 +177,6 @@ command_ok_ am__test_strip_suffixes $MAKE test-strip-suffixes command_ok_ am__tolower $MAKE test-tolower command_ok_ am__toupper $MAKE test-toupper command_ok_ am__canon $MAKE test-canonicalize +command_ok_ am__newline $MAKE test-newline : |