#!/bin/sh # # $RCSfile: t0037a.sh,v $-- Test test/00/t0006a.sh # # # Test of big definitions # work=${TMPDIR:-/tmp}/$$ PAGER=cat export PAGER umask 022 here=`pwd` if test $? -ne 0 ; then exit 2; fi SHELL=/bin/sh export SHELL bin="$here/${1-.}" pass() { set +x cd $here rm -rf $work exit 0 } fail() { set +x echo "FAILED test of big definitions" 1>&2 cd $here rm -rf $work exit 1 } no_result() { set +x echo "NO RESULT for test of big definitions" 1>&2 cd $here rm -rf $work exit 2 } trap \"no_result\" 1 2 3 15 mkdir $work if test $? -ne 0 ; then no_result; fi cd $work if test $? -ne 0 ; then no_result; fi # # test big definitions # cat > test.w <<"EOF" \documentclass{article} \begin{document} @O test.c -cc @{Call the macro @ as parameter@> @ as parameter@> @ as parameter@> @} @D Fragment with @'Begin macro@'... @{@1<<>>@1<< test.expected.c <<"EOF" Call the macro /* Fragment with as parameter 1b */ /* A macro argument 1e */ Hello folks<< as parameter 1c */ Here is the beginning of the second macro /* A macro argument 1e */ Hello folks<< as parameter 1d */ Here is the argument>>>Hello folks<<