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 LD_LIBRARY_PATH
=$common_objpfx \
27 ${elf_objpfx}${rtld_installed_name} ${common_objpfx}posix
/globtest
"$testdir" "*" |
29 cat <<"EOF" | cmp - $testout || result=1
37 LD_LIBRARY_PATH=$common_objpfx \
38 ${elf_objpfx}${rtld_installed_name} ${common_objpfx}posix/globtest "$testdir" "*/*" |
40 cat <<"EOF" |
cmp - $testout || result
=1
46 LD_LIBRARY_PATH=$common_objpfx \
47 ${elf_objpfx}${rtld_installed_name} ${common_objpfx}posix/globtest "$testdir" "*/1" |
49 cat <<"EOF" | cmp - $testout || result=1
54 LD_LIBRARY_PATH=$common_objpfx \
55 ${elf_objpfx}${rtld_installed_name} ${common_objpfx}posix/globtest "$testdir" "*/*1_1" |
57 cat <<"EOF" | cmp - $testout || result=1
62 LD_LIBRARY_PATH
=$common_objpfx \
63 ${elf_objpfx}${rtld_installed_name} ${common_objpfx}posix
/globtest
"$testdir" "*/file1_1" |
65 cat <<"EOF" | cmp - $testout || result=1
70 LD_LIBRARY_PATH=$common_objpfx \
71 ${elf_objpfx}${rtld_installed_name} ${common_objpfx}posix/globtest "$testdir" "*-/*" |
73 cat <<"EOF" |
cmp - $testout || result
=1
78 LD_LIBRARY_PATH
=$common_objpfx \
79 ${elf_objpfx}${rtld_installed_name} ${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)