2
0
mirror of https://github.com/vasi/pixz synced 2024-10-30 15:21:41 +00:00
pixz/test/single-file-round-trip.sh

15 lines
281 B
Bash
Raw Permalink Normal View History

2018-02-19 18:47:49 +00:00
#!/bin/sh
2015-08-08 10:30:49 +00:00
PIXZ=../src/pixz
INPUT=$(basename $0)
COMPRESSED=$INPUT.xz
UNCOMPRESSED=$INPUT.extracted
trap "rm -f $COMPRESSED $UNCOMPRESSED" EXIT
$PIXZ $INPUT $COMPRESSED
$PIXZ -d $COMPRESSED $UNCOMPRESSED
2018-02-19 18:47:49 +00:00
[ "$(cat $INPUT | md5sum)" = "$(cat $UNCOMPRESSED | md5sum)" ] || exit 1