sogo/Tests/Integration/teststrings.sh
Jean Raby a134cbe2cb Fix teststrings.sh to exit != 0 if an error occured.
Monotone-Parent: c80984a4695d7e15164ed59ed14c2b823311be38
Monotone-Revision: 986c53393f0caccafae8ec72f8b2d56477f587b6

Monotone-Author: jraby@inverse.ca
Monotone-Date: 2011-05-20T19:46:13
Monotone-Branch: ca.inverse.sogo
2011-05-20 19:46:13 +00:00

25 lines
375 B
Bash
Executable file

#!/bin/bash
TOPDIR=../..
RC=0
if [ ! -f teststrings ]
then
make teststrings
fi
for stringfile in ${TOPDIR}/*/*/*.lproj/Localizable.strings
do
./teststrings "$stringfile" > /dev/null
code=$?
if test $code -eq 0;
then
echo "$stringfile: passed";
else
echo "$stringfile: FAILED (code: $code)";
RC=$(($RC+$code))
fi
done
exit $RC