2 . "${srcdir=.}/init.sh"; path_prepend_ . ../src
4 # Test handling of obsolete/untranslated messages.
6 cat <<EOF > mm-test3.in1
13 msgstr "but with translation"
16 msgid "not existing without translation"
20 msgid "still existing"
23 #: should-not-be-here:10
24 #~ msgid "former obsolete"
28 #~ msgid "this stays obsolete"
29 #~ msgstr "even after running msgmerge"
32 # trailing comments should be removed
35 cat <<EOF > mm-test3.in2
40 msgid "still existing"
41 msgstr "here is normally no comment"
49 # trailing comments should be removed, even here
52 : ${MSGMERGE=msgmerge}
53 ${MSGMERGE} -q -o mm-test3.tmp mm-test3.in1 mm-test3.in2 || exit 1
54 LC_ALL=C tr -d '\r' < mm-test3.tmp > mm-test3.out || exit 1
56 cat << EOF > mm-test3.ok
58 msgid "still existing"
62 msgid "former obsolete"
63 msgstr "but again useful"
68 #~ msgid "not existing"
69 #~ msgstr "but with translation"
71 #~ msgid "this stays obsolete"
72 #~ msgstr "even after running msgmerge"
76 ${DIFF} mm-test3.ok mm-test3.out