4 if echo '\c' |
grep -s c
>/dev
/null
2>&1
13 if [ ! -d results
];then
21 tests
="euc_jp sjis euc_kr euc_cn euc_tw big5 utf8 mule_internal"
22 unset PGCLIENTENCODING
25 $ECHO_N "${i} .. " $ECHO_C
29 export PGCLIENTENCODING
30 $PSQL euc_jp
< sql
/sjis.sql
> results
/sjis.out
2>&1
31 unset PGCLIENTENCODING
32 elif [ $i = big5
];then
34 export PGCLIENTENCODING
35 $PSQL euc_tw
< sql
/big5.sql
> results
/big5.out
2>&1
36 unset PGCLIENTENCODING
38 dropdb
$i >/dev
/null
2>&1
39 createdb
-E `echo $i | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'` $i >/dev
/null
40 $PSQL $i < sql
/${i}.sql
> results
/${i}.out
2>&1
43 if [ -f expected
/${i}-${SYSTEM}.out
]
45 EXPECTED
="expected/${i}-${SYSTEM}.out"
47 EXPECTED
="expected/${i}.out"
50 if [ `diff ${EXPECTED} results/${i}.out | wc -l` -ne 0 ]
52 ( diff -wC3 ${EXPECTED} results
/${i}.out
; \
54 echo "----------------------"; \
55 echo "" ) >> regression.diffs