1 # This program is free software: you can redistribute it and/or modify
2 # it under the terms of the GNU General Public License as published by
3 # the Free Software Foundation, either version 3 of the License, or
4 # (at your option) any later version.
6 # This program is distributed in the hope that it will be useful,
7 # but WITHOUT ANY WARRANTY; without even the implied warranty of
8 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
9 # GNU General Public License for more details.
11 # You should have received a copy of the GNU General Public License
12 # along with this program. If not, see <http://www.gnu.org/licenses/>.
14 # test here documents for sizes > 65536 (max pipe capacity I've seen),
15 # 4096 < size < 65536 (for smaller pipe capacities)
16 # 512 < size < 4096 (PIPE_BUF)
18 # There are tests in other scripts for here documents shorter than 512 bytes
20 # This should return the same results regardless of the pipe capacity
23 FILENAME=${TMPDIR}/catfile-$$
27 cat <<- EOF > $FILENAME
35 if [ -f $BUILD_DIR/y.tab.c ]; then
36 catfile $BUILD_DIR/y.tab.c
40 catfile ${BUILD_DIR}/config.h
41 catfile ${BUILD_DIR}/version.h