diff options
author | Paolo Bonzini <bonzini@gnu.org> | 2012-12-07 13:21:59 +0100 |
---|---|---|
committer | Paolo Bonzini <bonzini@gnu.org> | 2012-12-07 14:25:08 +0100 |
commit | 42b4918d161806fc56d15007c3129b50c1f94d12 (patch) | |
tree | 433b868deb58d9a8c8ccec962c8b1f5fd121c44f /tests | |
parent | 64ad4deb5124bcc3082e97530c78ceb244af4b74 (diff) | |
download | autoconf-42b4918d161806fc56d15007c3129b50c1f94d12.tar.gz |
autotest: define AT_DATA_UNQUOTED
* lib/autotest/general.m4 (AT_DATA_UNQUOTED): New macro, paralleling
AT_DATA but not quoting the contents.
* doc/autoconf.texi (Writing Testsuites): Document it.
* tests/autotest.at (AT_DATA_UNQUOTED): Test it.
Signed-off-by: Paolo Bonzini <bonzini@gnu.org>
Diffstat (limited to 'tests')
-rw-r--r-- | tests/autotest.at | 19 |
1 files changed, 19 insertions, 0 deletions
diff --git a/tests/autotest.at b/tests/autotest.at index b56d3f87..fe2e3bc4 100644 --- a/tests/autotest.at +++ b/tests/autotest.at @@ -178,6 +178,25 @@ AT_CHECK([cmp file2 file3]) ## ------------------ ## +## AT_DATA_UNQUOTED. ## +## ------------------ ## + +AT_CHECK_AT_TEST([AT@&t@_DATA_UNQUOTED], [ +AT_CHECK([test -f file1], [1]) +AT_DATA([file1]) +AT_CHECK([test -f file1 && test ! -s file1]) +AT_CHECK([echo hi > file1]) +AT_DATA([file1], [[]]) +AT_CHECK([test -f file1 && test ! -s file1]) +file=file2 +AT_DATA_UNQUOTED([$file], [[$file +]]) +AT_CHECK([echo file2 > file3]) +AT_CHECK([cmp file2 file3]) +]) + + +## ------------------ ## ## Empty test suite. ## ## ------------------ ## |