Commits

Anonymous committed 43c9c47

Support for testing multi-session CD images.

Comments (0)

Files changed (2)

tests/00_second.iso

Binary file added.

tests/tests-gen.awk

 BEGIN {
 	print "MIRAGE2ISO = mirage2iso"
 	print "INPUT = 00_input.iso"
+	print "SECOND = 00_second.iso"
 	print
 	print "all: tests"
 	print "preclean:"
 
 {
 	print $2 ": " $1 " preclean"
-	print "	$(MIRAGE2ISO) -q -p test $< $@" failpart
+	print "	$(MIRAGE2ISO) -q -s 0 -p test $< $@" failpart
 	print "	cmp $(INPUT) $@" failpart
 
 	all = all " " $2
+
+	if ($3) {
+		print $3 ": " $1 " preclean"
+		print "	$(MIRAGE2ISO) -q -s 1 -p test $< $@" failpart
+		print "	cmp $(SECOND) $@" failpart
+
+		all = all " " $3
+	}
 }
 
 END {