2
0
mirror of https://github.com/vasi/pixz synced 2024-10-30 15:21:41 +00:00
pixz/test/concatenated-small-files.sh
2020-11-15 17:40:43 -05:00

19 lines
283 B
Bash
Executable File

#!/bin/sh
PIXZ=../src/pixz
F1=$(mktemp)
F2=$(mktemp)
EXPECTED=$(mktemp)
ACTUAL=$(mktemp)
trap "rm -f $F1 $F2 $EXPECTED $ACTUAL" EXIT
echo foo >> $EXPECTED
echo foo | $PIXZ > $F1
echo bar >> $EXPECTED
echo bar | $PIXZ > $F2
cat $F1 $F2 | $PIXZ -d > $ACTUAL
cmp $ACTUAL $EXPECTED