.PHONY: test-strip-suffixes
test-strip-suffixes:
- test '$(call am__strip_suffixes,,)' = ''
- test '$(call am__strip_suffixes, ,)' = ''
- test '$(call am__strip_suffixes,, )' = ''
- test '$(call am__strip_suffixes, , )' = ''
- test '$(call am__strip_suffixes,x,)' = ''
- test '$(call am__strip_suffixes,x y, )' = ''
- test '$(call am__strip_suffixes,,x y)' = 'x y'
- test '$(call am__strip_suffixes, ,x y)' = 'x y'
- test '$(call am__strip_suffixes,.c,foo.c)' = 'foo'
- test '$(call am__strip_suffixes,.foo,a.foo b.foo)' = 'a b'
- test '$(call am__strip_suffixes, x y, ax ay ax)' = 'a a a'
- test '$(call am__strip_suffixes,x,ax)' = 'a'
- test '$(call am__strip_suffixes,x,xa)' = 'xa'
- test '$(call am__strip_suffixes,x,xx)' = 'x'
- test '$(call am__strip_suffixes,x,xux)' = 'xu'
- test '$(call am__strip_suffixes, .c .c++, \
+ test '$(call am.util.strip-suffixes,,)' = ''
+ test '$(call am.util.strip-suffixes, ,)' = ''
+ test '$(call am.util.strip-suffixes,, )' = ''
+ test '$(call am.util.strip-suffixes, , )' = ''
+ test '$(call am.util.strip-suffixes,x,)' = ''
+ test '$(call am.util.strip-suffixes,x y, )' = ''
+ test '$(call am.util.strip-suffixes,,x y)' = 'x y'
+ test '$(call am.util.strip-suffixes, ,x y)' = 'x y'
+ test '$(call am.util.strip-suffixes,.c,foo.c)' = 'foo'
+ test '$(call am.util.strip-suffixes,.foo,a.foo b.foo)' = 'a b'
+ test '$(call am.util.strip-suffixes, x y, ax ay ax)' = 'a a a'
+ test '$(call am.util.strip-suffixes,x,ax)' = 'a'
+ test '$(call am.util.strip-suffixes,x,xa)' = 'xa'
+ test '$(call am.util.strip-suffixes,x,xx)' = 'x'
+ test '$(call am.util.strip-suffixes,x,xux)' = 'xu'
+ test '$(call am.util.strip-suffixes, .c .c++, \
foo.c bar.c++ baz.cxx zap.c)' = 'foo bar baz.cxx zap'
- test '$(call am__strip_suffixes, .a .b, \
+ test '$(call am.util.strip-suffixes, .a .b, \
1.a.a 2.a.b 3.b.a 4.b.b)' = '1.a 2.a 3.b 4.b'
# Corner cases: the *first* matched suffix is stripped
- test '$(call am__strip_suffixes,.a .b,x.a.a)' = 'x.a'
- test '$(call am__strip_suffixes,.a .b,x.a.b)' = 'x.a'
- test '$(call am__strip_suffixes,.a .b,x.b.a)' = 'x.b'
- test '$(call am__strip_suffixes,.a .b,x.b.b)' = 'x.b'
- test '$(call am__strip_suffixes, .a .b.a, foo.b.a bar.a)' \
+ test '$(call am.util.strip-suffixes,.a .b,x.a.a)' = 'x.a'
+ test '$(call am.util.strip-suffixes,.a .b,x.a.b)' = 'x.a'
+ test '$(call am.util.strip-suffixes,.a .b,x.b.a)' = 'x.b'
+ test '$(call am.util.strip-suffixes,.a .b,x.b.b)' = 'x.b'
+ test '$(call am.util.strip-suffixes, .a .b.a, foo.b.a bar.a)' \
= 'foo.b bar'
- test '$(call am__strip_suffixes, .b.a .a, foo.b.a bar.a)' \
+ test '$(call am.util.strip-suffixes, .b.a .a, foo.b.a bar.a)' \
= 'foo bar'
.PHONY: test-toupper
command_ok_ am.util.strip-first-word $MAKE test-strip-first-word
command_ok_ am.util.strip-last-word $MAKE test-strip-last-word
command_ok_ am.util.uniq $MAKE test-uniq
-command_ok_ am__test_strip_suffixes $MAKE test-strip-suffixes
+command_ok_ am.util.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