Training courses

Kernel and Embedded Linux

Bootlin training courses

Embedded Linux, kernel,
Yocto Project, Buildroot, real-time,
graphics, boot time, debugging...

Bootlin logo

Elixir Cross Referencer

#! /bin/sh

# Test --more-than=0; identical message are wanted once only.

tmpfiles=""
trap 'rm -fr $tmpfiles' 1 2 3 15

tmpfiles="$tmpfiles mcomm-test18.in1 mcomm-test18.in2"
cat <<EOF > mcomm-test18.in1
# Sure.
#: first.c:123
msgid "1"
msgstr "1x"
EOF

cat <<EOF > mcomm-test18.in2
# Right.
#: hunt.c:759
msgid "1"
msgstr "1x"
EOF

tmpfiles="$tmpfiles mcomm-test18.out"
: ${MSGCOMM=msgcomm}
${MSGCOMM} --more-than=0 -o mcomm-test18.out mcomm-test18.in1 mcomm-test18.in2
test $? = 0 || { rm -fr $tmpfiles; exit 1; }

tmpfiles="$tmpfiles mcomm-test18.ok"
cat << EOF > mcomm-test18.ok
# Sure.
#: first.c:123 hunt.c:759
msgid "1"
msgstr "1x"
EOF

: ${DIFF=diff}
${DIFF} mcomm-test18.ok mcomm-test18.out
result=$?

rm -fr $tmpfiles

exit $result