#!/bin/sh

set -eu

dd if=/dev/urandom of=testfile.img bs=10M count=1
ddrescue testfile.img copyfile.img | tee -a run.log

cmp testfile.img copyfile.img

grep -q '^Finished' run.log
