Home | History | Annotate | Line # | Download | only in tests
      1  1.1  christos #! /bin/sh
      2  1.1  christos 
      3  1.1  christos # Test output in Qt .qm format.
      4  1.1  christos 
      5  1.1  christos tmpfiles=""
      6  1.1  christos trap 'rm -fr $tmpfiles' 1 2 3 15
      7  1.1  christos 
      8  1.1  christos tmpfiles="$tmpfiles mf-qt-1.qm"
      9  1.1  christos : ${MSGFMT=msgfmt}
     10  1.1  christos ${MSGFMT} --qt -o mf-qt-1.qm ${top_srcdir}/tests/qttest_pl.po
     11  1.1  christos test $? = 0 || { rm -fr $tmpfiles; exit 1; }
     12  1.1  christos 
     13  1.1  christos : ${CMP=cmp}
     14  1.1  christos ${CMP} ${top_srcdir}/tests/qttest_pl.qm mf-qt-1.qm >/dev/null 2>/dev/null
     15  1.1  christos result=$?
     16  1.1  christos 
     17  1.1  christos rm -fr $tmpfiles
     18  1.1  christos 
     19  1.1  christos exit $result
     20