* tests/m4sh.at (Negated classes in globbing): New test.

This commit is contained in:
Akim Demaille 2000-11-10 14:43:33 +00:00
parent d2329b45d3
commit 8ced8eb0a4
2 changed files with 35 additions and 2 deletions

View File

@ -1,3 +1,7 @@
2000-11-10 Akim Demaille <akim@epita.fr>
* tests/m4sh.at (Negated classes in globbing): New test.
2000-11-10 Akim Demaille <akim@epita.fr>
* doc/autoconf.texi (Limitations of Builtins): `for i; do'.

View File

@ -13,7 +13,7 @@ EOF
# Build nested dirs.
AT_SETUP(AS_DIRNAME & AS_DIRNAME_SED)
AT_SETUP([AS_DIRNAME & AS_DIRNAME_SED])
AT_DATA(configure.in,
[[
@ -85,7 +85,7 @@ AT_CLEANUP(configure)
# Build nested dirs.
AT_SETUP(AC_SHELL_MKDIR_P)
AT_SETUP([AC_SHELL_MKDIR_P])
AT_DATA(configure.in,
[[AC_PLAIN_SCRIPT
@ -106,3 +106,32 @@ AT_CHECK([autoconf --autoconf-dir .. -l $at_srcdir], 0, [], [])
AT_CHECK([./configure], 0)
AT_CLEANUP(configure 1 a)
## ----------------------------- ##
## Negated classes in globbing. ##
## ----------------------------- ##
# It is known that `[^...]' is not universally supported, but it is
# unknown for `[!...]'.
AT_SETUP([Negated classes in globbing])
AT_DATA(configure.in,
[[AC_PLAIN_SCRIPT
case 'with!two!bangs' in
*[[!a-z]]*) ;;
*) AC_MSG_ERROR([[`*[!a-z]*' didn't match `with!two!bangs']]);;
esac
case without in
*[[!a-z]]*) AC_MSG_ERROR([[`*[!a-z]*' matched `without']]);;
esac
]])
AT_CHECK([autoconf --autoconf-dir .. -l $at_srcdir], 0, [], [])
AT_CHECK([./configure], 0)
AT_CLEANUP(configure)