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.tmp mm-test1.out"
42 : ${MSGMERGE=msgmerge}
43 ${MSGMERGE} -q -o mm-test1.tmp mm-test1.in1 mm-test1.in2
44 test $? = 0 || { rm -fr $tmpfiles; exit 1; }
45 LC_ALL=C tr -d '\r' < mm-test1.tmp > mm-test1.out
46 test $? = 0 || { rm -fr $tmpfiles; exit 1; }
48 tmpfiles="$tmpfiles mm-test1.ok"
49 cat << EOF > mm-test1.ok
61 "this is a really long msgstr used to test the wrapping to make sure it works "
62 "after all what is a test for if not to test things?"
72 ${DIFF} mm-test1.ok mm-test1.out