3 common_objpfx
=$1; shift
5 rtld_installed_name
=$1; shift
9 testdir
=$TMPDIR/globtest-dir
10 testout
=$TMPDIR/globtest-out
12 trap 'rm -fr $testdir $testout' 1 2 3 15
16 echo 1 > $testdir/file1
17 echo 2 > $testdir/file2
20 echo 1_1
> $testdir/dir
1/file1_1
21 echo 1_2
> $testdir/dir
1/file1_2
26 ${elf_objpfx}${rtld_installed_name} --library-path ${common_objpfx} \
27 ${common_objpfx}posix
/globtest
"$testdir" "*" |
29 cat <<"EOF" | cmp - $testout || result=1
37 ${elf_objpfx}${rtld_installed_name} --library-path $common_objpfx \
38 ${common_objpfx}posix/globtest "$testdir" "*/*" |
40 cat <<"EOF" |
cmp - $testout || result
=1
46 ${elf_objpfx}${rtld_installed_name} --library-path $common_objpfx \
47 ${common_objpfx}posix/globtest "$testdir" "*/1" |
49 cat <<"EOF" | cmp - $testout || result=1
54 ${elf_objpfx}${rtld_installed_name} --library-path $common_objpfx \
55 ${common_objpfx}posix/globtest "$testdir" "*/*1_1" |
57 cat <<"EOF" | cmp - $testout || result=1
62 ${elf_objpfx}${rtld_installed_name} --library-path $common_objpfx \
63 ${common_objpfx}posix
/globtest
"$testdir" "*/file1_1" |
65 cat <<"EOF" | cmp - $testout || result=1
70 ${elf_objpfx}${rtld_installed_name} --library-path $common_objpfx \
71 ${common_objpfx}posix/globtest "$testdir" "*-/*" |
73 cat <<"EOF" |
cmp - $testout || result
=1
78 ${elf_objpfx}${rtld_installed_name} --library-path $common_objpfx \
79 ${common_objpfx}posix
/globtest
"$testdir" "*-" |
81 cat <<"EOF" | cmp - $testout || result=1
86 if test $result -eq 0; then
87 rm -fr $testdir $testout
92 # Preserve executable bits for this shell script.
94 eval:(defun frobme () (set-file-modes buffer-file-name file-mode))
95 eval:(make-local-variable 'file-mode)
96 eval:(setq file-mode (file-modes (buffer-file-name)))
97 eval:(make-local-variable 'after-save-hook)
98 eval:(add-hook 'after-save-hook 'frobme)