mpd/test/test_archive_iso9660.sh
Max Kellermann 1a5e0ef7c9 test/test_archive_iso9660.sh: use an odd chunk size to trigger bug
This makes the unit test fail.  D'oh!
2020-09-07 20:53:46 +02:00

14 lines
331 B
Bash
Executable File

#!/bin/sh -e
SRC_BASE=meson.build
SRC="$(dirname $0)/../${SRC_BASE}"
DST="$(pwd)/test/tmp/${SRC_BASE}.iso"
mkdir -p test/tmp
rm -f "$DST"
mkisofs -quiet -l -o "$DST" "$SRC"
# Using an odd chunk size to check whether the plugin can cope with
# partial sectors
./test/run_input --chunk-size=1337 "$DST/${SRC_BASE}" |diff "$SRC" -