1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18
|
#!/bin/sh
# This script should only be run by the package maintainer,
# to generate reference copies of test script output.
for i in ascii binary utf16-be utf16-le utf8-bom-begin utf8-bom-end utf8 ; do
gunzip < samples/sample-${i}.txt.gz | \
../src/utfcheck > expected/out-${i}.txt ;
done
gunzip < samples/sample-utf8.txt.gz | \
../src/utfcheck -a > expected/out-ascii-only.txt ;
gunzip < samples/sample-utf8-surrogate.txt.gz | \
../src/utfcheck > expected/out-utf8-surrogate.txt ;
gunzip < samples/sample-utf8.txt.gz | \
../src/utfcheck --expurgated > expected/out-utf8-expurgated.txt ;
|