3 # Test general operation and line wrapping.
6 trap 'rm -fr $tmpfiles' 1 2 3 15
8 tmpfiles
="$tmpfiles mm-test1.in1 mm-test1.in2"
9 cat <<EOF > mm-test1.in1
11 #. this should be discarded
17 msgstr "this is a really long msgstr "
18 "used to test the wrapping to "
19 "make sure it works after all "
20 "what is a test for if not to test things?"
26 cat <<EOF > mm-test1.in2
41 tmpfiles
="$tmpfiles mm-test1.out"
42 : ${MSGMERGE=msgmerge}
43 ${MSGMERGE} -q mm-test1.in1 mm-test1.in2
-o mm-test1.out
44 test $?
= 0 ||
{ rm -fr $tmpfiles; exit 1; }
46 tmpfiles
="$tmpfiles mm-test1.ok"
47 cat << EOF > mm-test1.ok
59 "this is a really long msgstr used to test the wrapping to make sure it works "
60 "after all what is a test for if not to test things?"
70 ${DIFF} mm-test1.ok mm-test1.out