6 test -n "$tag" ||
{ echo "usage: $0 PY TAG"; exit 1; }
8 PYTHONIOENCODING
=utf8
; export PYTHONIOENCODING
9 #PYTHONUTF8=1; export PYTHONUTF8
12 diffs
="tmp/output.$tag.diffs"
21 if test -n "$quiet"; then
22 echo "[$tag] testing structure dump"
28 for f
in test
/files
/*.rar
; do
29 $vprintf "%s -> %-30s .. " "$tag" "$f"
30 "$PYTHON" dumprar.py
-v -ppassword "$f" > "$f.$tag"
31 if diff -uw "$f.exp" "$f.$tag" > /dev
/null
; then
38 *-hpsw.rar
) errmsg
="failed-nocrypto";;
41 if test -n "$quiet"; then
42 printf "[%s] %-30s .. ${errmsg}\n" "$tag" "$f"
44 echo "#### $py ####" >> "$diffs"
45 diff -uw "$f.exp" "$f.$tag" >> "$diffs"
49 test "$result" = "0" ||
echo "Diffs: ${diffs}"