isomd5sum/tests/smoke.sh
2021-09-21 15:31:49 +02:00

16 lines
319 B
Bash
Executable File

#!/bin/sh -eux
# Create testing iso image
rm -rf ./isocontent
mkdir isocontent
dd if=/dev/zero of=isocontent/big_enough_file bs=500K count=1
mkisofs -o test.iso isocontent
# Implant and check md5 sum
implantisomd5 test.iso
checkisomd5 --verbose test.iso
# Destroy testing iso image
rm -rf ./isocontent
rm test.iso