~ubuntu-branches/ubuntu/breezy/gettext/breezy

« back to all changes in this revision

Viewing changes to gettext-tools/tests/msgen-2

  • Committer: Bazaar Package Importer
  • Author(s): Santiago Vila
  • Date: 2004-03-14 17:40:02 UTC
  • mfrom: (1.1.1 upstream)
  • Revision ID: james.westby@ubuntu.com-20040314174002-p1ad5ldve1hqzhye
Tags: 0.14.1-2
* Added libexpat1-dev to Build-Depends, for glade support.
* Added libc0.1-dev to Build-Depends, for GNU/kFreeBSD.
* Removed special-casing of knetbsd-gnu in debian/rules.

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
1
#! /bin/sh
 
2
 
 
3
# Test general operation with Java .properties syntax.
 
4
 
 
5
tmpfiles=""
 
6
trap 'rm -fr $tmpfiles' 1 2 3 15
 
7
 
 
8
tmpfiles="$tmpfiles men-test2.properties"
 
9
cat <<\EOF > men-test2.properties
 
10
!height\ must\ be\ positive=
 
11
 
 
12
color\ cannot\ be\ transparent=colour cannot be transparent
 
13
 
 
14
width\ must\ be\ positive=
 
15
EOF
 
16
 
 
17
tmpfiles="$tmpfiles men-test2.out"
 
18
: ${MSGEN=msgen}
 
19
${MSGEN} --properties-input --properties-output men-test2.properties -o men-test2.out
 
20
test $? = 0 || { rm -fr $tmpfiles; exit 1; }
 
21
 
 
22
tmpfiles="$tmpfiles men-test2.ok"
 
23
cat <<\EOF > men-test2.ok
 
24
height\ must\ be\ positive=height must be positive
 
25
 
 
26
color\ cannot\ be\ transparent=colour cannot be transparent
 
27
 
 
28
width\ must\ be\ positive=width must be positive
 
29
EOF
 
30
 
 
31
: ${DIFF=diff}
 
32
${DIFF} men-test2.ok men-test2.out
 
33
result=$?
 
34
 
 
35
rm -fr $tmpfiles
 
36
 
 
37
exit $result