File indexing completed on 2024-05-19 12:50:54
0001 #! /bin/sh 0002 # test_i18n_noop2: 0003 # $1: kundo2_aware_xgettext.sh 0004 # $2: xgettext 0005 # $3: msgcat 0006 # $4: podir 0007 0008 # source the kundo2_aware_xgettext.sh script 0009 . "$1" 0010 0011 # setup environment variables for kundo2_aware_xgettext.sh 0012 XGETTEXT_PROGRAM="$2" 0013 MSGCAT="$3" 0014 podir="$4" 0015 0016 # get common parameters 0017 . parameters.sh 0018 # kundo2_aware_xgettext.sh wants this in one variable 0019 XGETTEXT="$XGETTEXT_PROGRAM $XGETTEXT_FLAGS" 0020 0021 potfile="test_i18n_noop2.pot" 0022 cppfile="test_i18n_noop2.cpp" 0023 0024 kundo2_aware_xgettext "$potfile" "$cppfile" 0025 0026 # check result 0027 if test ! -e "$podir/$potfile"; then 0028 echo "FAIL: pot file not created" 0029 exit 1 0030 fi 0031 if test 0 -ne `grep qtundo-format "$podir/$potfile"|wc -l`; then 0032 echo "FAIL: there should be 0 qtundo-format strings" 0033 exit 2 0034 fi 0035 if test 2 -ne `grep msgid "$podir/$potfile"|wc -l`; then 0036 echo "FAIL: there should be 2 message strings" 0037 exit 3 0038 fi 0039 0040 exit 0