Source

mirage2iso / tests / perform-test

Full commit
#!/bin/sh

m2i=${1}
input=${2}
output=${2}.iso
base=${srcdir}/00_input.iso

echo "${input} -> ${output}"

set -x
case "$(basename "${input}")" in
	04_*)
		base2=${srcdir}/00_second.iso
		output2=${output}.2

		"${m2i}" -q -s 0 -p test "${input}" "${output}" && \
			cmp "${base}" "${output}" && \
			"${m2i}" -q -s 1 -p test "${input}" "${output2}" && \
			cmp "${base2}" "${output2}"
		;;
	*)
		"${m2i}" -q -s 0 -p test "${input}" "${output}" && \
			cmp "${base}" "${output}"
		;;
esac