New upstream version 0.79.6

This commit is contained in:
Carlos Maddela
2017-12-21 05:31:58 +11:00
parent 9ad5d25d65
commit ccc2d79dd4
592 changed files with 18076 additions and 7311 deletions

View File

@@ -18,9 +18,9 @@ CODEC_PREFIX=RS02
# Create master image
if ! file_exists $MASTERISO; then
$NEWVER --debug -i$MASTERISO --random-image $ISOSIZE >>$LOGFILE 2>&1
echo "$NEWVER --debug --set-version $SETVERSION -i$MASTERISO -mRS02 -n$ECCSIZE -c" >>$LOGFILE
$NEWVER --debug --set-version $SETVERSION -i$MASTERISO -mRS02 -n$ECCSIZE -c >>$LOGFILE 2>&1
$NEWVER --regtest --debug -i$MASTERISO --random-image $ISOSIZE >>$LOGFILE 2>&1
echo "$NEWVER --regtest --debug --set-version $SETVERSION -i$MASTERISO -mRS02 -n$ECCSIZE -c" >>$LOGFILE
$NEWVER --regtest --debug --set-version $SETVERSION -i$MASTERISO -mRS02 -n$ECCSIZE -c >>$LOGFILE 2>&1
echo -e "$FILE_MSG"
FILE_MSG=""
fi
@@ -28,12 +28,12 @@ fi
# Create master image with 137 trailing bytes
if ! file_exists $ISO_PLUS137; then
echo "$NEWVER --debug -i$ISO_PLUS137 --random-image $ISOSIZE" >>$LOGFILE
$NEWVER --debug -i$ISO_PLUS137 --random-image $ISOSIZE >>$LOGFILE 2>&1
echo "$NEWVER --regtest --debug -i$ISO_PLUS137 --random-image $ISOSIZE" >>$LOGFILE
$NEWVER --regtest --debug -i$ISO_PLUS137 --random-image $ISOSIZE >>$LOGFILE 2>&1
echo "dd if="$RNDSEQ" count=1 bs=137 >>$ISO_PLUS137" >>$LOGFILE
dd if="$RNDSEQ" count=1 bs=137 >>$ISO_PLUS137 2>/dev/null
echo "$NEWVER --debug --set-version $SETVERSION -i$ISO_PLUS137 -mRS02 -n$ECCSIZE -c" >>$LOGFILE
$NEWVER --debug --set-version $SETVERSION -i$ISO_PLUS137 -mRS02 -n$ECCSIZE -c >>$LOGFILE 2>&1
echo "$NEWVER --regtest --debug --set-version $SETVERSION -i$ISO_PLUS137 -mRS02 -n$ECCSIZE -c" >>$LOGFILE
$NEWVER --regtest --debug --set-version $SETVERSION -i$ISO_PLUS137 -mRS02 -n$ECCSIZE -c >>$LOGFILE 2>&1
echo -e "$FILE_MSG"
FILE_MSG=""
@@ -195,7 +195,7 @@ if try "good image, 150 sectors ECC offset" good_150_offset; then
# dd if=/dev/zero bs=2048 count=150 >>$TMPISO 2>/dev/null
$NEWVER --debug -i$TMPISO --byteset 16,80,198 >>$LOGFILE 2>&1 # fake 150 more sectors in vss
$NEWVER --debug -i$TMPISO --byteset 16,87,198 >>$LOGFILE 2>&1
$NEWVER --debug --set-version $SETVERSION -i$TMPISO -mRS02 -n$ECCSIZE -c >>$LOGFILE 2>&1
$NEWVER --regtest --debug --set-version $SETVERSION -i$TMPISO -mRS02 -n$ECCSIZE -c >>$LOGFILE 2>&1
run_regtest good_150_offset "-v -t" $TMPISO
fi
@@ -217,7 +217,7 @@ if try "header modulo glitch, post 0.79.5 style hdr" modulo_glitch; then
if ! test -f $HMGISO; then
$NEWVER --debug -i $HMGISO --random-image 274300 >>$LOGFILE 2>&1
$NEWVER --debug --set-version $SETVERSION -i$HMGISO -mRS02 -c >>$LOGFILE 2>&1
$NEWVER --regtest --debug --set-version $SETVERSION -i$HMGISO -mRS02 -c >>$LOGFILE 2>&1
fi
run_regtest modulo_glitch "-v -t" $HMGISO
@@ -231,7 +231,7 @@ if try "header modulo glitch, old style, complete img" modulo_glitch2; then
if ! test -f $HMGISO; then
$NEWVER --debug -i $HMGISO --random-image 274300 >>$LOGFILE 2>&1
$NEWVER --debug --set-version $SETVERSION -i$HMGISO -mRS02 -c >>$LOGFILE 2>&1
$NEWVER --regtest --debug --set-version $SETVERSION -i$HMGISO -mRS02 -c >>$LOGFILE 2>&1
fi
cp $HMGISO $TMPISO # create the old style image
@@ -264,7 +264,7 @@ if try "header modulo glitch, old style, truncated img" modulo_glitch3; then
if ! test -f $HMGISO; then
$NEWVER --debug -i $HMGISO --random-image 274300 >>$LOGFILE 2>&1
$NEWVER --debug --set-version $SETVERSION -i$HMGISO -mRS02 -c >>$LOGFILE 2>&1
$NEWVER --regtest --debug --set-version $SETVERSION -i$HMGISO -mRS02 -c >>$LOGFILE 2>&1
fi
cp $HMGISO $TMPISO # create the old style image
@@ -298,7 +298,7 @@ if try "header modulo glitch, old style, truncated img, missing ref secs" modulo
if ! test -f $HMGISO; then
$NEWVER --debug -i $HMGISO --random-image 274300 >>$LOGFILE 2>&1
$NEWVER --debug --set-version $SETVERSION -i$HMGISO -mRS02 -c >>$LOGFILE 2>&1
$NEWVER --regtest --debug --set-version $SETVERSION -i$HMGISO -mRS02 -c >>$LOGFILE 2>&1
fi
cp $HMGISO $TMPISO # create the old style image
@@ -331,7 +331,7 @@ fi
# Augmented image is protected by an outer RS01 error correction file
if try "with RS01 error correction file" with_rs01_file; then
$NEWVER --debug --set-version $SETVERSION -i$MASTERISO -e$TMPECC -c -n normal >>$LOGFILE 2>&1
$NEWVER --regtest --debug --set-version $SETVERSION -i$MASTERISO -e$TMPECC -c -n normal >>$LOGFILE 2>&1
run_regtest with_rs01_file "-v -t" $MASTERISO $TMPECC
fi
@@ -342,7 +342,7 @@ fi
# user did probably have some intentention specifying the ecc file.
if try "with non-matching RS01 error correction file" with_wrong_rs01_file; then
$NEWVER --debug --set-version $SETVERSION -i$MASTERISO -e$TMPECC -c -n normal >>$LOGFILE 2>&1
$NEWVER --regtest --debug --set-version $SETVERSION -i$MASTERISO -e$TMPECC -c -n normal >>$LOGFILE 2>&1
$NEWVER --debug -i$TMPECC --byteset 0,24,1 >>$LOGFILE 2>&1
run_regtest with_wrong_rs01_file "-v -t" $MASTERISO $TMPECC
@@ -351,7 +351,7 @@ fi
# Augmented image is protected by an outer RS03 error correction file
if try "with RS03 error correction file" with_rs03_file; then
$NEWVER --debug --set-version $SETVERSION -i$MASTERISO -e$TMPECC -mRS03 -c -n 20 -o file >>$LOGFILE 2>&1
$NEWVER --regtest --debug --set-version $SETVERSION -i$MASTERISO -e$TMPECC -mRS03 -c -n 20 -o file >>$LOGFILE 2>&1
run_regtest with_rs03_file "-v -t" $MASTERISO $TMPECC
fi
@@ -364,7 +364,7 @@ if try "with non-matching RS03 error correction file" with_wrong_rs03_file; then
$NEWVER --debug -i$TMPISO --byteset 16,240,1 >>$LOGFILE 2>&1
# Create ecc file for "wrong" image
$NEWVER --debug --set-version $SETVERSION -i$TMPISO -e$TMPECC -mRS03 -c -n 20 -o file >>$LOGFILE 2>&1
$NEWVER --regtest --debug --set-version $SETVERSION -i$TMPISO -e$TMPECC -mRS03 -c -n 20 -o file >>$LOGFILE 2>&1
# Now test against original image
run_regtest with_wrong_rs03_file "-v -t" $MASTERISO $TMPECC
@@ -401,7 +401,7 @@ if try "image with uncorrectable dead sector markers, verbose output" uncorrecta
run_regtest uncorrectable_dsm_in_image_verbose "-t -v" $TMPISO
fi
# Testimage containing several uncorrectable dead sector markers
# Test image containing several uncorrectable dead sector markers
# (non matching fingerprint)
if try "image with uncorrectable dead sector markers (2)" uncorrectable_dsm_in_image2; then
@@ -505,7 +505,6 @@ if try "ecc creating with no read permission" ecc_no_read_perm; then
replace_config medium-size 35000
extra_args="--debug --set-version $SETVERSION"
run_regtest ecc_no_read_perm "-mRS02 -n$ECCSIZE -c" $TMPISO
rm -f $TMPISO
fi
# Create with no write permission on image
@@ -518,7 +517,6 @@ if try "ecc creating with no write permission" ecc_no_write_perm; then
replace_config medium-size 35000
extra_args="--debug --set-version $SETVERSION"
run_regtest ecc_no_write_perm "-mRS02 -n$ECCSIZE -c" $TMPISO
rm -f $TMPISO
fi
# Create with already RS02-augmented image
@@ -559,9 +557,9 @@ fi
# Create with already RS02-augmented image of a non-2048 multiple size
if try "ecc creating from RS02-augmented image w/ non-block size" ecc_from_rs02_non_blocksize; then
$NEWVER --debug -i$TMPISO --random-image $ISOSIZE >>$LOGFILE 2>&1
for i in $(seq 56); do echo -n "1" >>$TMPISO; done
$NEWVER --debug --set-version $SETVERSION -i$TMPISO -mRS02 -n$ECCSIZE -c >>$LOGFILE 2>&1
$NEWVER --debug -i$TMPISO --random-image $ISOSIZE >>$LOGFILE 2>&1
for i in $(seq 56); do echo -n "1" >>$TMPISO; done
$NEWVER --debug --set-version $SETVERSION -i$TMPISO -mRS02 -n$ECCSIZE -c >>$LOGFILE 2>&1
replace_config method-name RS02
replace_config medium-size 35000
@@ -586,7 +584,7 @@ fi
if try "ecc creating from RS02-augmented image w/ non-block size, larger red." ecc_from_larger_rs02_non_blocksize; then
$NEWVER --debug -i$TMPISO --random-image $ISOSIZE >>$LOGFILE 2>&1
for i in $(seq 56); do echo -n "1" >>$TMPISO; done
$NEWVER --debug --set-version $SETVERSION -i$TMPISO -mRS02 -n$((ECCSIZE+5000)) -c >>$LOGFILE 2>&1
$NEWVER --regtest --debug --set-version $SETVERSION -i$TMPISO -mRS02 -n$((ECCSIZE+5000)) -c >>$LOGFILE 2>&1
replace_config method-name RS02
replace_config medium-size 35000
@@ -622,12 +620,10 @@ fi
# Read image and augment with RS02 in one pass.
# Make sure that checksums are handed over correctly between reading
# and error correction creation.
# NOTE: cache handling is currently disabled and will be fixed in 0.79.6!
if try "ecc creating after reading image" ecc_create_after_read; then
$NEWVER --debug -i$SIMISO --random-image $ISOSIZE >>$LOGFILE 2>&1
rm -f $TMPISO
replace_config method-name RS02
replace_config medium-size 35000
replace_config read-and-create 1
@@ -637,7 +633,6 @@ fi
# Complete image and augment with RS02 in one pass.
# In that case cached checksums can not be used.
# NOTE: cache handling is currently disabled and will be fixed in 0.79.6!
if try "ecc creating after completing image" ecc_create_after_partial_read; then
$NEWVER --debug -i$SIMISO --random-image $ISOSIZE >>$LOGFILE 2>&1
@@ -653,13 +648,11 @@ fi
# Read image with ecc file and create new (other) ecc in the same program call.
# Tests whether CRC and ECC information is handed over correctly.
# NOTE: cache handling is currently disabled and will be fixed in 0.79.6!
if try "read image with ecc (RS01) and create new ecc" ecc_recreate_after_read_rs01; then
$NEWVER --debug -i$SIMISO --random-image $ISOSIZE >>$LOGFILE 2>&1
$NEWVER --debug --set-version $SETVERSION -i$SIMISO -e$TMPECC -c $REDUNDANCY >>$LOGFILE 2>&1
$NEWVER --regtest --debug -i$SIMISO --random-image $ISOSIZE >>$LOGFILE 2>&1
$NEWVER --regtest --debug --set-version $SETVERSION -i$SIMISO -e$TMPECC -c $REDUNDANCY >>$LOGFILE 2>&1
rm -f $TMPISO
replace_config method-name RS02
replace_config medium-size 35000
extra_args="--debug --sim-cd=$SIMISO --fixed-speed-values --set-version $SETVERSION"
@@ -668,13 +661,11 @@ fi
# Read image with ecc file and create new (other) ecc in the same program call.
# Tests whether CRC and ECC information is handed over correctly.
# NOTE: cache handling is currently disabled and will be fixed in 0.79.6!
if try "read image with ecc (RS02) and create new ecc" ecc_recreate_after_read_rs02; then
$NEWVER --debug -i$SIMISO --random-image $ISOSIZE >>$LOGFILE 2>&1
$NEWVER --debug --set-version $SETVERSION -i$SIMISO -mRS02 -n50000 -c >>$LOGFILE 2>&1
$NEWVER --regtest --debug --set-version $SETVERSION -i$SIMISO -mRS02 -n50000 -c >>$LOGFILE 2>&1
rm -f $TMPISO
replace_config method-name RS02
replace_config medium-size 35000
extra_args="--debug --sim-cd=$SIMISO --fixed-speed-values --set-version $SETVERSION"
@@ -683,13 +674,11 @@ fi
# Read image with ecc file and create new (other) ecc in the same program call.
# Tests whether CRC and ECC information is handed over correctly.
# NOTE: cache handling is currently disabled and will be fixed in 0.79.6!
if try "read image with ecc (RS03i) and create new ecc" ecc_recreate_after_read_rs03i; then
$NEWVER --debug -i$SIMISO --random-image $ISOSIZE >>$LOGFILE 2>&1
$NEWVER --debug --set-version $SETVERSION -i$SIMISO -mRS03 -n$((ISOSIZE+7000)) -c >>$LOGFILE 2>&1
$NEWVER --regtest --debug --set-version $SETVERSION -i$SIMISO -mRS03 -n$((ISOSIZE+7000)) -c >>$LOGFILE 2>&1
rm -f $TMPISO
replace_config method-name RS02
replace_config medium-size 35000
extra_args="--debug --sim-cd=$SIMISO --fixed-speed-values --set-version $SETVERSION"
@@ -698,13 +687,11 @@ fi
# Read image with ecc file and create new (other) ecc in the same program call.
# Tests whether CRC and ECC information is handed over correctly.
# NOTE: cache handling is currently disabled and will be fixed in 0.79.6!
if try "read image with ecc (RS03f) and create new ecc" ecc_recreate_after_read_rs03f; then
$NEWVER --debug -i$SIMISO --random-image $ISOSIZE >>$LOGFILE 2>&1
$NEWVER --debug --set-version $SETVERSION -i$SIMISO -e$TMPECC -c -n 9 -mRS03 -o file >>$LOGFILE 2>&1
$NEWVER --regtest --debug --set-version $SETVERSION -i$SIMISO -e$TMPECC -c -n 9 -mRS03 -o file >>$LOGFILE 2>&1
rm -f $TMPISO
replace_config method-name RS02
replace_config medium-size 35000
extra_args="--debug --sim-cd=$SIMISO --fixed-speed-values --set-version $SETVERSION"
@@ -722,7 +709,6 @@ if try "trying fix with no read permission" fix_no_read_perm; then
chmod 000 $TMPISO
run_regtest fix_no_read_perm "--debug --set-version $SETVERSION -f" $TMPISO
rm -f $TMPISO
fi
# Fix with no write permission on image
@@ -732,7 +718,6 @@ if try "trying fix with no write permission" fix_no_write_perm; then
chmod 400 $TMPISO
run_regtest fix_no_write_perm "--debug --set-version $SETVERSION -f" $TMPISO
rm -f $TMPISO
fi
# Fix already good image
@@ -894,7 +879,7 @@ fi
if try "large image with missing sectors" fix_large_file; then
$NEWVER --debug -i$TMPISO --random-image 223456 >>$LOGFILE 2>&1
$NEWVER --debug --set-version $SETVERSION -i$TMPISO -mRS02 -c >>$LOGFILE 2>&1
$NEWVER --regtest --debug --set-version $SETVERSION -i$TMPISO -mRS02 -c >>$LOGFILE 2>&1
$NEWVER -i$TMPISO --debug --erase 50000-50015 >>$LOGFILE 2>&1
$NEWVER -i$TMPISO --debug --erase 223600-223605 >>$LOGFILE 2>&1
$NEWVER -i$TMPISO --debug --erase 279000-279007 >>$LOGFILE 2>&1
@@ -945,7 +930,7 @@ if try "good image, 150 sectors ECC offset" fix_good_150_offset; then
$NEWVER --debug -i$TMPISO --random-image $ISOSIZE >>$LOGFILE 2>&1
$NEWVER --debug -i$TMPISO --byteset 16,80,198 >>$LOGFILE 2>&1 # fake 150 more sectors in vss
$NEWVER --debug -i$TMPISO --byteset 16,87,198 >>$LOGFILE 2>&1
$NEWVER --debug --set-version $SETVERSION -i$TMPISO -mRS02 -n$ECCSIZE -c >>$LOGFILE 2>&1
$NEWVER --regtest --debug --set-version $SETVERSION -i$TMPISO -mRS02 -n$ECCSIZE -c >>$LOGFILE 2>&1
run_regtest fix_good_150_offset "--debug --set-version $SETVERSION -v -f" $TMPISO
fi
@@ -956,7 +941,7 @@ fi
# correct (outer) ECC is applied.
if try "RS02 image with RS01 ecc file" fix_with_rs01_file; then
$NEWVER --debug --set-version $SETVERSION -i$MASTERISO -e$TMPECC -c -n normal >>$LOGFILE 2>&1
$NEWVER --regtest --debug --set-version $SETVERSION -i$MASTERISO -e$TMPECC -c -n normal >>$LOGFILE 2>&1
cp $MASTERISO $TMPISO
$NEWVER --debug -i$TMPISO --byteset 34930,0,1 >>$LOGFILE 2>&1
@@ -966,7 +951,7 @@ fi
# Augmented image is protected by an outer RS03 error correction file
if try "RS02 image with RS03 error correction file" fix_with_rs03_file; then
$NEWVER --debug --set-version $SETVERSION -i$MASTERISO -e$TMPECC -mRS03 -c -n 20 -o file >>$LOGFILE 2>&1
$NEWVER --regtest --debug --set-version $SETVERSION -i$MASTERISO -e$TMPECC -mRS03 -c -n 20 -o file >>$LOGFILE 2>&1
cp $MASTERISO $TMPISO
$NEWVER --debug -i$TMPISO --byteset 34930,0,1 >>$LOGFILE 2>&1
@@ -983,7 +968,6 @@ echo "# Scanning tests"
if try "scanning good image" scan_good; then
cp $MASTERISO $SIMISO
rm -f $TMPISO
extra_args="--debug --sim-cd=$SIMISO --fixed-speed-values"
run_regtest scan_good "--spinup-delay=0 -s" $TMPISO
fi
@@ -994,7 +978,6 @@ if try "scanning image being shorter than expected" scan_shorter; then
cp $MASTERISO $SIMISO
$NEWVER --debug -i$SIMISO --truncate=$((REAL_ECCSIZE-44)) >>$LOGFILE 2>&1
rm -f $TMPISO
extra_args="--debug --sim-cd=$SIMISO --fixed-speed-values"
run_regtest scan_shorter "--spinup-delay=0 -s -v" $TMPISO
fi
@@ -1005,7 +988,6 @@ if try "scanning image being longer than expected" scan_longer; then
cp $MASTERISO $SIMISO
for i in $(seq 23); do cat fixed-random-sequence >>$SIMISO; done
rm -f $TMPISO
extra_args="--debug --sim-cd=$SIMISO --fixed-speed-values"
run_regtest scan_longer "--spinup-delay=0 -s -v" $TMPISO
fi
@@ -1017,7 +999,6 @@ if try "scanning image, tao tail case" scan_tao_tail; then
cat fixed-random-sequence >>$SIMISO
$NEWVER --debug -i$SIMISO --erase 34932-34933 >>$LOGFILE 2>&1
rm -f $TMPISO
extra_args="--debug --sim-cd=$SIMISO --fixed-speed-values"
run_regtest scan_tao_tail "--spinup-delay=0 -s" $TMPISO
fi
@@ -1029,7 +1010,6 @@ if try "scanning image, no tao tail case" scan_no_tao_tail; then
cp $MASTERISO $SIMISO
$NEWVER --debug -i$SIMISO --erase 34930-34931 >>$LOGFILE 2>&1
rm -f $TMPISO
extra_args="--debug --sim-cd=$SIMISO --fixed-speed-values"
run_regtest scan_no_tao_tail "--spinup-delay=0 -s --dao" $TMPISO
fi
@@ -1056,7 +1036,6 @@ if try "scanning image requiring a newer dvdisaster version" scan_incompatible_e
$NEWVER --debug -i$SIMISO --byteset 30000,98,75 >>$LOGFILE 2>&1
$NEWVER --debug -i$SIMISO --byteset 30000,99,203 >>$LOGFILE 2>&1
rm -f $TMPISO
extra_args="--debug --sim-cd=$SIMISO --fixed-speed-values"
run_regtest scan_incompatible_ecc "--spinup-delay=0 -s" $TMPISO
fi
@@ -1070,7 +1049,6 @@ if try "scanning image with one defective header" scan_bad_header; then
cp $MASTERISO $SIMISO
$NEWVER -i$SIMISO --debug --byteset 30592,1,1 >>$LOGFILE 2>&1
rm -f $TMPISO
extra_args="--debug --sim-cd=$SIMISO --fixed-speed-values"
run_regtest scan_bad_header "--spinup-delay=0 -s" $TMPISO
fi
@@ -1086,7 +1064,6 @@ if try "scanning image with two defective headers" scan_bad_headers; then
$NEWVER -i$SIMISO --debug --byteset 30592,1,1 >>$LOGFILE 2>&1
$NEWVER -i$SIMISO --debug --byteset 31488,100,1 >>$LOGFILE 2>&1
rm -f $TMPISO
extra_args="--debug --sim-cd=$SIMISO --fixed-speed-values"
run_regtest scan_bad_headers "--spinup-delay=0 -s" $TMPISO
fi
@@ -1100,7 +1077,6 @@ if try "scanning image with missing data sectors" scan_missing_data_sectors; the
$NEWVER -i$SIMISO --debug --erase 21230 >>$LOGFILE 2>&1
$NEWVER -i$SIMISO --debug --erase 22450-22457 >>$LOGFILE 2>&1
rm -f $TMPISO
extra_args="--debug --sim-cd=$SIMISO --fixed-speed-values"
run_regtest scan_missing_data_sectors "--spinup-delay=0 -s" $TMPISO
fi
@@ -1113,7 +1089,6 @@ if try "scanning image with missing crc sectors" scan_missing_crc_sectors; then
$NEWVER -i$SIMISO --debug --erase 30020-30030 >>$LOGFILE 2>&1
$NEWVER -i$SIMISO --debug --erase 30034 >>$LOGFILE 2>&1
rm -f $TMPISO
extra_args="--debug --sim-cd=$SIMISO --fixed-speed-values"
run_regtest scan_missing_crc_sectors "--spinup-delay=0 -s" $TMPISO
fi
@@ -1126,7 +1101,6 @@ if try "scanning image with missing ecc sectors" scan_missing_ecc_sectors; then
$NEWVER -i$SIMISO --debug --erase 32020-32030 >>$LOGFILE 2>&1
$NEWVER -i$SIMISO --debug --erase 33034 >>$LOGFILE 2>&1
rm -f $TMPISO
extra_args="--debug --sim-cd=$SIMISO --fixed-speed-values"
run_regtest scan_missing_ecc_sectors "--spinup-delay=0 -s" $TMPISO
fi
@@ -1137,7 +1111,6 @@ if try "scanning image with bad data byte" scan_data_bad_byte; then
cp $MASTERISO $SIMISO
$NEWVER -i$SIMISO --debug --byteset 1235,50,10 >>$LOGFILE 2>&1
rm -f $TMPISO
extra_args="--debug --sim-cd=$SIMISO --fixed-speed-values"
run_regtest scan_data_bad_byte "--spinup-delay=0 -s" $TMPISO
fi
@@ -1149,7 +1122,6 @@ if try "scanning image with bad crc byte" scan_crc_bad_byte; then
cp $MASTERISO $SIMISO
$NEWVER -i$SIMISO --debug --byteset 30020,50,10 >>$LOGFILE 2>&1
rm -f $TMPISO
extra_args="--debug --sim-cd=$SIMISO --fixed-speed-values"
run_regtest scan_crc_bad_byte "--spinup-delay=0 -s" $TMPISO
fi
@@ -1160,7 +1132,6 @@ if try "scanning image with bad ecc byte" scan_ecc_bad_byte; then
cp $MASTERISO $SIMISO
$NEWVER -i$SIMISO --debug --byteset 33100,50,10 >>$LOGFILE 2>&1
rm -f $TMPISO
extra_args="--debug --sim-cd=$SIMISO --fixed-speed-values"
run_regtest scan_ecc_bad_byte "--spinup-delay=0 -s" $TMPISO
fi
@@ -1173,10 +1144,9 @@ if try "scanning with header modulo glitch, post 0.79.5 style hdr" scan_modulo_g
if ! test -f $HMGISO; then
$NEWVER --debug -i $HMGISO --random-image 274300 >>$LOGFILE 2>&1
$NEWVER --debug --set-version $SETVERSION -i$HMGISO -mRS02 -c >>$LOGFILE 2>&1
$NEWVER --regtest --debug --set-version $SETVERSION -i$HMGISO -mRS02 -c >>$LOGFILE 2>&1
fi
rm -f $TMPISO
extra_args="--debug --sim-cd=$HMGISO --fixed-speed-values"
run_regtest scan_modulo_glitch "--spinup-delay=0 -s -v" $TMPISO
fi
@@ -1189,7 +1159,7 @@ if try "header modulo glitch, old style, complete img" scan_modulo_glitch2; then
if ! test -f $HMGISO; then
$NEWVER --debug -i $HMGISO --random-image 274300 >>$LOGFILE 2>&1
$NEWVER --debug --set-version $SETVERSION -i$HMGISO -mRS02 -c >>$LOGFILE 2>&1
$NEWVER --regtest --debug --set-version $SETVERSION -i$HMGISO -mRS02 -c >>$LOGFILE 2>&1
fi
cp $HMGISO $SIMISO # create the old style image
@@ -1209,7 +1179,6 @@ if try "header modulo glitch, old style, complete img" scan_modulo_glitch2; then
$NEWVER --debug -i $SIMISO --byteset $header,135,0 >>$LOGFILE 2>&1
done
rm -f $TMPISO
extra_args="--debug --sim-cd=$SIMISO --fixed-speed-values"
run_regtest scan_modulo_glitch2 "--spinup-delay=0 -s -v" $TMPISO
fi
@@ -1224,7 +1193,7 @@ if try "header modulo glitch, old style, truncated img" scan_modulo_glitch3; the
if ! test -f $HMGISO; then
$NEWVER --debug -i $HMGISO --sandom-image 274300 >>$LOGFILE 2>&1
$NEWVER --debug --set-version $SETVERSION -i$HMGISO -mRS02 -c >>$LOGFILE 2>&1
$NEWVER --regtest --debug --set-version $SETVERSION -i$HMGISO -mRS02 -c >>$LOGFILE 2>&1
fi
cp $HMGISO $SIMISO # create the old style image
@@ -1245,7 +1214,6 @@ if try "header modulo glitch, old style, truncated img" scan_modulo_glitch3; the
done
$NEWVER --debug -i $SIMISO --truncate=357520 >>$LOGFILE 2>&1
rm -f $TMPISO
extra_args="--debug --sim-cd=$SIMISO --fixed-speed-values"
run_regtest scan_modulo_glitch3 "--spinup-delay=0 -s -v" $TMPISO
fi
@@ -1260,7 +1228,7 @@ if try "header modulo glitch, old style, truncated img, missing ref secs" scan_m
if ! test -f $HMGISO; then
$NEWVER --debug -i $HMGISO --sandom-image 274300 >>$LOGFILE 2>&1
$NEWVER --debug --set-version $SETVERSION -i$HMGISO -mRS02 -c >>$LOGFILE 2>&1
$NEWVER --regtest --debug --set-version $SETVERSION -i$HMGISO -mRS02 -c >>$LOGFILE 2>&1
fi
cp $HMGISO $SIMISO # create the old style image
@@ -1287,7 +1255,6 @@ if try "header modulo glitch, old style, truncated img, missing ref secs" scan_m
$NEWVER --debug -i $SIMISO --erase $sector >>$LOGFILE 2>&1
done
rm -f $TMPISO
extra_args="--debug --sim-cd=$SIMISO --fixed-speed-values"
run_regtest scan_modulo_glitch4 "--spinup-delay=0 -s -v" $TMPISO
fi
@@ -1298,11 +1265,7 @@ fi
# correct (outer) ECC is applied.
if try "scanning RS02 image with RS01 ecc file" scan_with_rs01_file; then
echo
echo "Test may fail due to a race condition in the output generation."
echo "Skip with./rs02.bash cont RS02_scan_with_wrong_rs01_file"
echo -n "Test result - "
$NEWVER --debug --set-version $SETVERSION -i$MASTERISO -e$TMPECC -c -n normal >>$LOGFILE 2>&1
$NEWVER --regtest --debug --set-version $SETVERSION -i$MASTERISO -e$TMPECC -c -n normal >>$LOGFILE 2>&1
cp $MASTERISO $SIMISO
$NEWVER --debug -i$SIMISO --byteset 34930,0,1 >>$LOGFILE 2>&1
@@ -1312,14 +1275,15 @@ if try "scanning RS02 image with RS01 ecc file" scan_with_rs01_file; then
fi
# Augmented image and non-matching RS01 error correction file
# Currently the mismatch is (generally) not detected
# Currently the mismatch is (generally) not detected and the RS01 data is
# used anyways.
# Should we change this behaviour? Solve later.
# Expected behaviour for verify is to report the non-matching ecc file
# rather than falling back to using the RS02 part since the
# Expected behaviour for verify is to report the non-matching ecc file and
# stop rather than falling back to using the RS02 part since the
# user did probably have some intentention specifying the ecc file.
if try "scanning RS02 image with non-matching RS01 ecc file" scan_with_wrong_rs01_file; then
$NEWVER --debug --set-version $SETVERSION -i$MASTERISO -e$TMPECC -c -n normal >>$LOGFILE 2>&1
$NEWVER --regtest --debug --set-version $SETVERSION -i$MASTERISO -e$TMPECC -c -n normal >>$LOGFILE 2>&1
$NEWVER --debug -i$TMPECC --byteset 0,24,1 >>$LOGFILE 2>&1 # alter the fingerprint
cp $MASTERISO $SIMISO
@@ -1332,7 +1296,7 @@ fi
# Augmented image is protected by an outer RS03 error correction file
if try "scanning RS02 image with RS03 ecc file" scan_with_rs03_file; then
$NEWVER --debug --set-version $SETVERSION -i$MASTERISO -e$TMPECC -mRS03 -c -n 20 -o file >>$LOGFILE 2>&1
$NEWVER --regtest --debug --set-version $SETVERSION -i$MASTERISO -e$TMPECC -mRS03 -c -n 20 -o file >>$LOGFILE 2>&1
cp $MASTERISO $SIMISO
$NEWVER --debug -i$SIMISO --byteset 34930,0,1 >>$LOGFILE 2>&1
@@ -1344,7 +1308,7 @@ fi
# Augmented image and non-matching RS03 error correction file
if try "scanning RS02 image with non-matching RS03 ecc file" scan_with_wrong_rs03_file; then
$NEWVER --debug --set-version $SETVERSION -i$MASTERISO -e$TMPECC -mRS03 -c -n 20 -o file >>$LOGFILE 2>&1
$NEWVER --regtest --debug --set-version $SETVERSION -i$MASTERISO -e$TMPECC -mRS03 -c -n 20 -o file >>$LOGFILE 2>&1
$NEWVER --debug -i$TMPECC --byteset 0,24,1 >>$LOGFILE 2>&1
cp $MASTERISO $SIMISO
@@ -1363,7 +1327,6 @@ echo "# Reading tests (linear)"
if try "reading good image" read_good; then
cp $MASTERISO $SIMISO
rm -f $TMPISO
extra_args="--debug --sim-cd=$SIMISO --fixed-speed-values"
run_regtest read_good "--spinup-delay=0 -r" $TMPISO
fi
@@ -1383,7 +1346,6 @@ fi
if try "reading good image with verbose output" read_good_verbose; then
cp $MASTERISO $SIMISO
rm -f $TMPISO
extra_args="--debug --sim-cd=$SIMISO --fixed-speed-values"
run_regtest read_good_verbose "--spinup-delay=0 -r -v" $TMPISO
fi
@@ -1396,7 +1358,6 @@ if try "reading image being shorter than expected" read_shorter; then
cp $MASTERISO $SIMISO
$NEWVER --debug -i$SIMISO --truncate=$((REAL_ECCSIZE-44)) >>$LOGFILE 2>&1
rm -f $TMPISO
extra_args="--debug --sim-cd=$SIMISO --fixed-speed-values"
run_regtest read_shorter "--spinup-delay=0 -r -v" $TMPISO
fi
@@ -1408,7 +1369,6 @@ if try "reading image being longer than expected" read_longer; then
cp $MASTERISO $SIMISO
for i in $(seq 23); do cat fixed-random-sequence >>$SIMISO; done
rm -f $TMPISO
extra_args="--debug --sim-cd=$SIMISO --fixed-speed-values"
run_regtest read_longer "--spinup-delay=0 -r -v" $TMPISO
fi
@@ -1421,7 +1381,6 @@ if try "reading image, tao tail case" read_tao_tail; then
cat fixed-random-sequence >>$SIMISO
$NEWVER --debug -i$SIMISO --erase 34932-34933 >>$LOGFILE 2>&1
rm -f $TMPISO
extra_args="--debug --sim-cd=$SIMISO --fixed-speed-values"
run_regtest read_tao_tail "--spinup-delay=0 -r" $TMPISO
fi
@@ -1433,7 +1392,6 @@ if try "reading image, no tao tail case" read_no_tao_tail; then
cp $MASTERISO $SIMISO
$NEWVER --debug -i$SIMISO --erase 34930-34931 >>$LOGFILE 2>&1
rm -f $TMPISO
extra_args="--debug --sim-cd=$SIMISO --fixed-speed-values"
run_regtest read_no_tao_tail "--spinup-delay=0 -r --dao" $TMPISO
fi
@@ -1460,24 +1418,25 @@ if try "reading image requiring a newer dvdisaster version" read_incompatible_ec
$NEWVER --debug -i$SIMISO --byteset 30000,98,75 >>$LOGFILE 2>&1
$NEWVER --debug -i$SIMISO --byteset 30000,99,203 >>$LOGFILE 2>&1
rm -f $TMPISO
extra_args="--debug --sim-cd=$SIMISO --fixed-speed-values"
run_regtest read_incompatible_ecc "--spinup-delay=0 -r" $TMPISO
fi
# Read an image containing with missing master header.
# Read an image with missing master header.
# Since not exhaustive search is enabled, the ecc data is not discovered
# and were are reading the image truncated to the size recorded in the
# iso metadata (30000 sectors).
if try "reading image with missing master header" read_bad_master; then
cp $MASTERISO $SIMISO
$NEWVER -i$SIMISO --debug --erase 30000 >>$LOGFILE 2>&1
rm -f $TMPISO
extra_args="--debug --sim-cd=$SIMISO --fixed-speed-values"
run_regtest read_bad_master "--spinup-delay=0 -r -v" $TMPISO
fi
# Read an image containing with missing master header
# Read an image with missing master header
# and exhaustive RS02 search.
if try "reading image with missing master header, exhaustive" read_bad_master_exhaustive; then
@@ -1485,7 +1444,6 @@ if try "reading image with missing master header, exhaustive" read_bad_master_ex
cp $MASTERISO $SIMISO
$NEWVER -i$SIMISO --debug --erase 30000 >>$LOGFILE 2>&1
rm -f $TMPISO
replace_config examine-rs02 1
extra_args="--debug --sim-cd=$SIMISO --fixed-speed-values"
run_regtest read_bad_master_exhaustive "--spinup-delay=0 -r -v -a RS02" $TMPISO
@@ -1500,7 +1458,6 @@ if try "reading image with one defective header" read_bad_header; then
cp $MASTERISO $SIMISO
$NEWVER -i$SIMISO --debug --byteset 30592,1,1 >>$LOGFILE 2>&1
rm -f $TMPISO
extra_args="--debug --sim-cd=$SIMISO --fixed-speed-values"
run_regtest read_bad_header "--spinup-delay=0 -r" $TMPISO
fi
@@ -1516,7 +1473,6 @@ if try "reading image with two defective headers" read_bad_headers; then
$NEWVER -i$SIMISO --debug --byteset 30592,1,1 >>$LOGFILE 2>&1
$NEWVER -i$SIMISO --debug --byteset 31488,100,1 >>$LOGFILE 2>&1
rm -f $TMPISO
extra_args="--debug --sim-cd=$SIMISO --fixed-speed-values"
run_regtest read_bad_headers "--spinup-delay=0 -r" $TMPISO
fi
@@ -1530,7 +1486,6 @@ if try "reading image with missing data sectors" read_missing_data_sectors; then
$NEWVER -i$SIMISO --debug --erase 21230 >>$LOGFILE 2>&1
$NEWVER -i$SIMISO --debug --erase 22450-22457 >>$LOGFILE 2>&1
rm -f $TMPISO
extra_args="--debug --sim-cd=$SIMISO --fixed-speed-values"
run_regtest read_missing_data_sectors "--spinup-delay=0 -r" $TMPISO
fi
@@ -1543,7 +1498,6 @@ if try "reading image with missing crc sectors" read_missing_crc_sectors; then
$NEWVER -i$SIMISO --debug --erase 30020-30030 >>$LOGFILE 2>&1
$NEWVER -i$SIMISO --debug --erase 30034 >>$LOGFILE 2>&1
rm -f $TMPISO
extra_args="--debug --sim-cd=$SIMISO --fixed-speed-values"
run_regtest read_missing_crc_sectors "--spinup-delay=0 -r" $TMPISO
fi
@@ -1556,22 +1510,20 @@ if try "reading image with missing ecc sectors" read_missing_ecc_sectors; then
$NEWVER -i$SIMISO --debug --erase 32020-32030 >>$LOGFILE 2>&1
$NEWVER -i$SIMISO --debug --erase 33034 >>$LOGFILE 2>&1
rm -f $TMPISO
extra_args="--debug --sim-cd=$SIMISO --fixed-speed-values"
run_regtest read_missing_ecc_sectors "--spinup-delay=0 -r" $TMPISO
fi
# Image contains bad byte in the data section
# Image contains bad bytes in the data section
if try "reading image with bad data byte" read_data_bad_byte; then
if try "reading image with bad data byte" read_data_bad_bytes; then
cp $MASTERISO $SIMISO
$NEWVER -i$SIMISO --debug --byteset 0,55,12 >>$LOGFILE 2>&1
$NEWVER -i$SIMISO --debug --byteset 1235,50,10 >>$LOGFILE 2>&1
$NEWVER -i$SIMISO --debug --byteset 29999,128,98 >>$LOGFILE 2>&1
rm -f $TMPISO
extra_args="--debug --sim-cd=$SIMISO --fixed-speed-values"
run_regtest read_data_bad_byte "--spinup-delay=0 -r" $TMPISO
run_regtest read_data_bad_bytes "--spinup-delay=0 -r" $TMPISO
fi
# Image contains bad byte in the CRC section
@@ -1581,7 +1533,6 @@ if try "reading image with bad crc byte" read_crc_bad_byte; then
cp $MASTERISO $SIMISO
$NEWVER -i$SIMISO --debug --byteset 30020,50,10 >>$LOGFILE 2>&1
rm -f $TMPISO
extra_args="--debug --sim-cd=$SIMISO --fixed-speed-values"
run_regtest read_crc_bad_byte "--spinup-delay=0 -r" $TMPISO
fi
@@ -1592,7 +1543,6 @@ if try "reading image with bad ecc byte" read_ecc_bad_byte; then
cp $MASTERISO $SIMISO
$NEWVER -i$SIMISO --debug --byteset 33100,50,10 >>$LOGFILE 2>&1
rm -f $TMPISO
extra_args="--debug --sim-cd=$SIMISO --fixed-speed-values"
run_regtest read_ecc_bad_byte "--spinup-delay=0 -r" $TMPISO
fi
@@ -1605,10 +1555,9 @@ if try "reading with header modulo glitch, post 0.79.5 style hdr" read_modulo_gl
if ! test -f $HMGISO; then
$NEWVER --debug -i $HMGISO --random-image 274300 >>$LOGFILE 2>&1
$NEWVER --debug --set-version $SETVERSION -i$HMGISO -mRS02 -c >>$LOGFILE 2>&1
$NEWVER --regtest --debug --set-version $SETVERSION -i$HMGISO -mRS02 -c >>$LOGFILE 2>&1
fi
rm -f $TMPISO
extra_args="--debug --sim-cd=$HMGISO --fixed-speed-values"
run_regtest read_modulo_glitch "--spinup-delay=0 -r -v" $TMPISO
fi
@@ -1621,7 +1570,7 @@ if try "header modulo glitch, old style, complete img" read_modulo_glitch2; then
if ! test -f $HMGISO; then
$NEWVER --debug -i $HMGISO --random-image 274300 >>$LOGFILE 2>&1
$NEWVER --debug --set-version $SETVERSION -i$HMGISO -mRS02 -c >>$LOGFILE 2>&1
$NEWVER --regtest --debug --set-version $SETVERSION -i$HMGISO -mRS02 -c >>$LOGFILE 2>&1
fi
cp $HMGISO $SIMISO # create the old style image
@@ -1641,7 +1590,6 @@ if try "header modulo glitch, old style, complete img" read_modulo_glitch2; then
$NEWVER --debug -i $SIMISO --byteset $header,135,0 >>$LOGFILE 2>&1
done
rm -f $TMPISO
extra_args="--debug --sim-cd=$SIMISO --fixed-speed-values"
run_regtest read_modulo_glitch2 "--spinup-delay=0 -r -v" $TMPISO
fi
@@ -1656,7 +1604,7 @@ if try "header modulo glitch, old style, truncated img" read_modulo_glitch3; the
if ! test -f $HMGISO; then
$NEWVER --debug -i $HMGISO --random-image 274300 >>$LOGFILE 2>&1
$NEWVER --debug --set-version $SETVERSION -i$HMGISO -mRS02 -c >>$LOGFILE 2>&1
$NEWVER --regtest --debug --set-version $SETVERSION -i$HMGISO -mRS02 -c >>$LOGFILE 2>&1
fi
cp $HMGISO $SIMISO # create the old style image
@@ -1677,7 +1625,6 @@ if try "header modulo glitch, old style, truncated img" read_modulo_glitch3; the
done
$NEWVER --debug -i $SIMISO --truncate=357520 >>$LOGFILE 2>&1
rm -f $TMPISO
extra_args="--debug --sim-cd=$SIMISO --fixed-speed-values"
run_regtest read_modulo_glitch3 "--spinup-delay=0 -r -v" $TMPISO
fi
@@ -1692,7 +1639,7 @@ if try "header modulo glitch, old style, truncated img, missing ref secs" read_m
if ! test -f $HMGISO; then
$NEWVER --debug -i $HMGISO --random-image 274300 >>$LOGFILE 2>&1
$NEWVER --debug --set-version $SETVERSION -i$HMGISO -mRS02 -c >>$LOGFILE 2>&1
$NEWVER --regtest --debug --set-version $SETVERSION -i$HMGISO -mRS02 -c >>$LOGFILE 2>&1
fi
cp $HMGISO $SIMISO # create the old style image
@@ -1719,7 +1666,6 @@ if try "header modulo glitch, old style, truncated img, missing ref secs" read_m
$NEWVER --debug -i $SIMISO --erase $sector >>$LOGFILE 2>&1
done
rm -f $TMPISO
extra_args="--debug --sim-cd=$SIMISO --fixed-speed-values"
run_regtest read_modulo_glitch4 "--spinup-delay=0 -r -v" $TMPISO
fi
@@ -1730,11 +1676,10 @@ fi
# correct (outer) ECC is applied.
if try "reading RS02 image with RS01 ecc file" read_with_rs01_file; then
$NEWVER --debug --set-version $SETVERSION -i$MASTERISO -e$TMPECC -c -n normal >>$LOGFILE 2>&1
$NEWVER --regtest --debug --set-version $SETVERSION -i$MASTERISO -e$TMPECC -c -n normal >>$LOGFILE 2>&1
cp $MASTERISO $SIMISO
$NEWVER --debug -i$SIMISO --byteset 34930,0,1 >>$LOGFILE 2>&1
rm -f $TMPISO
extra_args="--debug --sim-cd=$SIMISO --fixed-speed-values"
run_regtest read_with_rs01_file "--spinup-delay=0 -r" $TMPISO $TMPECC
fi
@@ -1750,13 +1695,12 @@ fi
# user did probably have some intentention specifying the ecc file.
if try "reading RS02 image with non-matching RS01 ecc file" read_with_wrong_rs01_file; then
$NEWVER --debug --set-version $SETVERSION -i$MASTERISO -e$TMPECC -c -n normal >>$LOGFILE 2>&1
$NEWVER --regtest --debug --set-version $SETVERSION -i$MASTERISO -e$TMPECC -c -n normal >>$LOGFILE 2>&1
$NEWVER --debug -i$TMPECC --byteset 0,24,1 >>$LOGFILE 2>&1 # alter the fingerprint
cp $MASTERISO $SIMISO
$NEWVER --debug -i$SIMISO --byteset 34930,0,1 >>$LOGFILE 2>&1
rm -f $TMPISO
extra_args="--debug --sim-cd=$SIMISO --fixed-speed-values"
run_regtest read_with_wrong_rs01_file "--spinup-delay=0 -r" $TMPISO $TMPECC
fi
@@ -1764,12 +1708,11 @@ fi
# Augmented image is protected by an outer RS03 error correction file
if try "reading RS02 image with RS03 ecc file" read_with_rs03_file; then
$NEWVER --debug --set-version $SETVERSION -i$MASTERISO -e$TMPECC -mRS03 -c -n 20 -o file >>$LOGFILE 2>&1
$NEWVER --regtest --debug --set-version $SETVERSION -i$MASTERISO -e$TMPECC -mRS03 -c -n 20 -o file >>$LOGFILE 2>&1
cp $MASTERISO $SIMISO
$NEWVER --debug -i$SIMISO --byteset 34930,0,1 >>$LOGFILE 2>&1
rm -f $TMPISO
extra_args="--debug --sim-cd=$SIMISO --fixed-speed-values"
run_regtest read_with_rs03_file "--spinup-delay=0 -r" $TMPISO $TMPECC
fi
@@ -1777,17 +1720,51 @@ fi
# Augmented image and non-matching RS03 error correction file
if try "reading RS02 image with non-matching RS03 ecc file" read_with_wrong_rs03_file; then
$NEWVER --debug --set-version $SETVERSION -i$MASTERISO -e$TMPECC -mRS03 -c -n 20 -o file >>$LOGFILE 2>&1
$NEWVER --regtest --debug --set-version $SETVERSION -i$MASTERISO -e$TMPECC -mRS03 -c -n 20 -o file >>$LOGFILE 2>&1
$NEWVER --debug -i$TMPECC --byteset 0,24,1 >>$LOGFILE 2>&1
cp $MASTERISO $SIMISO
$NEWVER --debug -i$SIMISO --byteset 34930,0,1 >>$LOGFILE 2>&1
rm -f $TMPISO
extra_args="--debug --sim-cd=$SIMISO --fixed-speed-values"
run_regtest read_with_wrong_rs03_file "--spinup-delay=0 -r" $TMPISO $TMPECC
fi
# Do a second read attempt at an incomplete image;
# see whether CRC errors are still discovered since CRC caching is a bit
# complicated in this case.
if try "re-reading medium with CRC error" read_second_pass_with_crc_error; then
cp $MASTERISO $SIMISO
$NEWVER --debug -i$SIMISO --byteset 15830,8,3 >>$LOGFILE 2>&1
cp $MASTERISO $TMPISO
$NEWVER --debug -i$TMPISO --erase 15800-16199 >>$LOGFILE 2>&1
extra_args="--debug --sim-cd=$SIMISO --fixed-speed-values"
run_regtest read_second_pass_with_crc_error "--spinup-delay=0 -r" $TMPISO
fi
# Read medium in several passes; some sectors become readable in the third pass.
# One sector keeps is CRC error over all passes.
if try "reading medium in 3 passes; 3rd pass recovers some" read_multipass_ecc_partial_success; then
# Prepare an image matching the algorithm for simulating the defects
$NEWVER --debug -i$SIMISO --random-image $ISOSIZE >>$LOGFILE 2>&1
$NEWVER --debug -i$SIMISO --erase 15900-16099 --fill-unreadable=64 >>$LOGFILE 2>&1
$NEWVER --regtest --debug --set-version $SETVERSION -i$SIMISO -mRS02 -n$ECCSIZE -c >>$LOGFILE 2>&1
# Prepare the image for reading
$NEWVER --debug -i$SIMISO --erase 15800-16199 >>$LOGFILE 2>&1
$NEWVER --debug -i$SIMISO --erase "15900-16099:readable in pass 3" >>$LOGFILE 2>&1
$NEWVER --debug -i$SIMISO --byteset 10000,5,255 >>$LOGFILE 2>&1
replace_config read-medium 3
extra_args="--debug --sim-cd=$SIMISO --fixed-speed-values"
run_regtest read_multipass_ecc_partial_success "--read-medium=3 --spinup-delay=0 -r" $TMPISO
fi
### Reading tests (adaptive)
echo "# Reading tests (adaptive)"
@@ -1800,7 +1777,6 @@ exit 0
if try "reading good image" adaptive_good; then
cp $MASTERISO $SIMISO
rm -f $TMPISO
run_regtest adaptive_good "--debug --sim-cd=$SIMISO --fixed-speed-values --spinup-delay=0 -r --adaptive-read" $TMPISO
fi
@@ -1818,7 +1794,6 @@ fi
if try "reading good image with verbose output" adaptive_good_verbose; then
cp $MASTERISO $SIMISO
rm -f $TMPISO
run_regtest adaptive_good_verbose "--debug --sim-cd=$SIMISO --fixed-speed-values --spinup-delay=0 -r -v --adaptive-read" $TMPISO
fi
@@ -1832,7 +1807,6 @@ if try "reading image being shorter than expected" adaptive_shorter; then
cp $MASTERISO $SIMISO
$NEWVER --debug -i$SIMISO --truncate=$((REAL_ECCSIZE-44)) >>$LOGFILE 2>&1
rm -f $TMPISO
run_regtest adaptive_shorter "--debug --sim-cd=$SIMISO --fixed-speed-values --spinup-delay=0 -r -v --adaptive-read" $TMPISO
fi
@@ -1846,7 +1820,6 @@ if try "reading image being longer than expected" adaptive_longer; then
cp $MASTERISO $SIMISO
for i in $(seq 23); do cat fixed-random-sequence >>$SIMISO; done
rm -f $TMPISO
run_regtest adaptive_longer "--debug --sim-cd=$SIMISO --fixed-speed-values --spinup-delay=0 -r -v --adaptive-read" $TMPISO
fi
@@ -1860,7 +1833,6 @@ if try "reading image, tao tail case" adaptive_tao_tail; then
cat fixed-random-sequence >>$SIMISO
$NEWVER --debug -i$SIMISO --erase 34932-34933 >>$LOGFILE 2>&1
rm -f $TMPISO
run_regtest adaptive_tao_tail "--debug --sim-cd=$SIMISO --fixed-speed-values --spinup-delay=0 -r --adaptive-read" $TMPISO
fi
@@ -1873,7 +1845,6 @@ if try "reading image, no tao tail case" adaptive_no_tao_tail; then
cp $MASTERISO $SIMISO
$NEWVER --debug -i$SIMISO --erase 34930-34931 >>$LOGFILE 2>&1
rm -f $TMPISO
run_regtest adaptive_no_tao_tail "--debug --sim-cd=$SIMISO --fixed-speed-values --spinup-delay=0 -r --dao --adaptive-read" $TMPISO
fi
@@ -1899,7 +1870,6 @@ if try "reading image requiring a newer dvdisaster version" adaptive_incompatibl
$NEWVER --debug -i$SIMISO --byteset 30000,98,75 >>$LOGFILE 2>&1
$NEWVER --debug -i$SIMISO --byteset 30000,99,203 >>$LOGFILE 2>&1
rm -f $TMPISO
run_regtest adaptive_incompatible_ecc "--debug --sim-cd=$SIMISO --fixed-speed-values --spinup-delay=0 -r --adaptive-read" $TMPISO
fi
@@ -1913,7 +1883,6 @@ if try "reading image with one defective header" adaptive_bad_header; then
cp $MASTERISO $SIMISO
$NEWVER -i$SIMISO --debug --byteset 30592,1,1 >>$LOGFILE 2>&1
rm -f $TMPISO
run_regtest adaptive_bad_header "--debug --sim-cd=$SIMISO --fixed-speed-values --spinup-delay=0 -r -v --adaptive-read" $TMPISO
fi
@@ -1928,7 +1897,6 @@ if try "reading image with two defective headers" adaptive_bad_headers; then
$NEWVER -i$SIMISO --debug --byteset 30592,1,1 >>$LOGFILE 2>&1
$NEWVER -i$SIMISO --debug --byteset 31488,100,1 >>$LOGFILE 2>&1
rm -f $TMPISO
run_regtest adaptive_bad_headers "--debug --sim-cd=$SIMISO --fixed-speed-values --spinup-delay=0 -r --adaptive-read" $TMPISO
fi
@@ -1941,7 +1909,6 @@ if try "reading image with missing data sectors" adaptive_missing_data_sectors;
$NEWVER -i$SIMISO --debug --erase 21230 >>$LOGFILE 2>&1
$NEWVER -i$SIMISO --debug --erase 22450-22457 >>$LOGFILE 2>&1
rm -f $TMPISO
run_regtest adaptive_missing_data_sectors "--debug --sim-cd=$SIMISO --fixed-speed-values --spinup-delay=0 -r --adaptive-read" $TMPISO
fi
@@ -1953,7 +1920,6 @@ if try "reading image with missing crc sectors" adaptive_missing_crc_sectors; th
$NEWVER -i$SIMISO --debug --erase 30020-30030 >>$LOGFILE 2>&1
$NEWVER -i$SIMISO --debug --erase 30034 >>$LOGFILE 2>&1
rm -f $TMPISO
run_regtest adaptive_missing_crc_sectors "--debug --sim-cd=$SIMISO --fixed-speed-values --spinup-delay=0 -r --adaptive-read" $TMPISO
fi
@@ -1965,7 +1931,6 @@ if try "reading image with missing ecc sectors" adaptive_missing_ecc_sectors; th
$NEWVER -i$SIMISO --debug --erase 32020-32030 >>$LOGFILE 2>&1
$NEWVER -i$SIMISO --debug --erase 33034 >>$LOGFILE 2>&1
rm -f $TMPISO
run_regtest adaptive_missing_ecc_sectors "--debug --sim-cd=$SIMISO --fixed-speed-values --spinup-delay=0 -r --adaptive-read" $TMPISO
fi
@@ -1975,7 +1940,6 @@ if try "reading image with bad data byte" adaptive_data_bad_byte; then
cp $MASTERISO $SIMISO
$NEWVER -i$SIMISO --debug --byteset 1235,50,10 >>$LOGFILE 2>&1
rm -f $TMPISO
run_regtest adaptive_data_bad_byte "--debug --sim-cd=$SIMISO --fixed-speed-values --spinup-delay=0 -r --adaptive-read" $TMPISO
fi
@@ -1987,7 +1951,6 @@ if try "reading image with bad crc byte" adaptive_crc_bad_byte; then
cp $MASTERISO $SIMISO
$NEWVER -i$SIMISO --debug --byteset 30020,50,10 >>$LOGFILE 2>&1
rm -f $TMPISO
run_regtest adaptive_crc_bad_byte "--debug --sim-cd=$SIMISO --fixed-speed-values --spinup-delay=0 -r --adaptive-read" $TMPISO
fi
@@ -1997,7 +1960,6 @@ if try "reading image with bad ecc byte" adaptive_ecc_bad_byte; then
cp $MASTERISO $SIMISO
$NEWVER -i$SIMISO --debug --byteset 33100,50,10 >>$LOGFILE 2>&1
rm -f $TMPISO
run_regtest adaptive_ecc_bad_byte "--debug --sim-cd=$SIMISO --fixed-speed-values --spinup-delay=0 -r --adaptive-read" $TMPISO
fi
@@ -2009,10 +1971,9 @@ if try "reading with header modulo glitch, post 0.79.5 style hdr" adaptive_modul
if ! test -f $HMGISO; then
$NEWVER --debug -i $HMGISO --random-image 274300 >>$LOGFILE 2>&1
$NEWVER --debug --set-version $SETVERSION -i$HMGISO -mRS02 -c >>$LOGFILE 2>&1
$NEWVER --regtest --debug --set-version $SETVERSION -i$HMGISO -mRS02 -c >>$LOGFILE 2>&1
fi
rm -f $TMPISO
run_regtest adaptive_modulo_glitch "--debug --sim-cd=$HMGISO --fixed-speed-values --spinup-delay=0 -r -v --adaptive-read" $TMPISO
fi
@@ -2024,7 +1985,7 @@ if try "header modulo glitch, old style, complete img" adaptive_modulo_glitch2;
if ! test -f $HMGISO; then
$NEWVER --debug -i $HMGISO --random-image 274300 >>$LOGFILE 2>&1
$NEWVER --debug --set-version $SETVERSION -i$HMGISO -mRS02 -c >>$LOGFILE 2>&1
$NEWVER --regtest --debug --set-version $SETVERSION -i$HMGISO -mRS02 -c >>$LOGFILE 2>&1
fi
cp $HMGISO $SIMISO # create the old style image
@@ -2044,7 +2005,6 @@ if try "header modulo glitch, old style, complete img" adaptive_modulo_glitch2;
$NEWVER --debug -i $SIMISO --byteset $header,135,0 >>$LOGFILE 2>&1
done
rm -f $TMPISO
run_regtest adaptive_modulo_glitch2 "--debug --sim-cd=$SIMISO --fixed-speed-values --spinup-delay=0 -r -v --adaptive-read" $TMPISO
fi
@@ -2058,7 +2018,7 @@ if try "header modulo glitch, old style, truncated img" adaptive_modulo_glitch3;
if ! test -f $HMGISO; then
$NEWVER --debug -i $HMGISO --random-image 274300 >>$LOGFILE 2>&1
$NEWVER --debug --set-version $SETVERSION -i$HMGISO -mRS02 -c >>$LOGFILE 2>&1
$NEWVER --regtest --debug --set-version $SETVERSION -i$HMGISO -mRS02 -c >>$LOGFILE 2>&1
fi
cp $HMGISO $SIMISO # create the old style image
@@ -2079,7 +2039,6 @@ if try "header modulo glitch, old style, truncated img" adaptive_modulo_glitch3;
done
$NEWVER --debug -i $SIMISO --truncate=357520 >>$LOGFILE 2>&1
rm -f $TMPISO
run_regtest adaptive_modulo_glitch3 "--debug --sim-cd=$SIMISO --fixed-speed-values --spinup-delay=0 -r -v --adaptive-read" $TMPISO
fi
@@ -2093,7 +2052,7 @@ if try "header modulo glitch, old style, truncated img, missing ref secs" adapti
if ! test -f $HMGISO; then
$NEWVER --debug -i $HMGISO --random-image 274300 >>$LOGFILE 2>&1
$NEWVER --debug --set-version $SETVERSION -i$HMGISO -mRS02 -c >>$LOGFILE 2>&1
$NEWVER --regtest --debug --set-version $SETVERSION -i$HMGISO -mRS02 -c >>$LOGFILE 2>&1
fi
cp $HMGISO $SIMISO # create the old style image
@@ -2120,17 +2079,15 @@ if try "header modulo glitch, old style, truncated img, missing ref secs" adapti
$NEWVER --debug -i $SIMISO --erase $sector >>$LOGFILE 2>&1
done
rm -f $TMPISO
run_regtest adaptive_modulo_glitch4 "--debug --sim-cd=$SIMISO --fixed-speed-values --spinup-delay=0 -r -v --adaptive-read" $TMPISO
fi
# Augmented image is protected by an outer RS01 error correction file
if try "reading RS02 image with RS01 ecc file" adaptive_with_rs01_file; then
$NEWVER --debug --set-version $SETVERSION -i$MASTERISO -e$TMPECC -c -n normal >>$LOGFILE 2>&1
$NEWVER --regtest --debug --set-version $SETVERSION -i$MASTERISO -e$TMPECC -c -n normal >>$LOGFILE 2>&1
cp $MASTERISO $SIMISO
rm -f $TMPISO
run_regtest adaptive_with_rs01_file "--debug --sim-cd=$SIMISO --fixed-speed-values --spinup-delay=0 -r --adaptive-read" $TMPISO $TMPECC
fi
@@ -2145,36 +2102,34 @@ fi
# user did probably have some intentention specifying the ecc file.
if try "reading RS02 image with non-matching RS01 ecc file" adaptive_with_wrong_rs01_file; then
$NEWVER --debug --set-version $SETVERSION -i$MASTERISO -e$TMPECC -c -n normal >>$LOGFILE 2>&1
$NEWVER --regtest --debug --set-version $SETVERSION -i$MASTERISO -e$TMPECC -c -n normal >>$LOGFILE 2>&1
$NEWVER --debug -i$TMPECC --byteset 0,24,1 >>$LOGFILE 2>&1 # alter the fingerprint
cp $MASTERISO $SIMISO
rm -f $TMPISO
run_regtest adaptive_with_wrong_rs01_file "--debug --sim-cd=$SIMISO --fixed-speed-values --spinup-delay=0 -r --adaptive-read" $TMPISO $TMPECC
fi
# Augmented image is protected by an outer RS03 error correction file
if try "reading RS02 image with RS03 ecc file" read_with_rs03_file; then
$NEWVER --debug --set-version $SETVERSION -i$MASTERISO -e$TMPECC -mRS03 -c -n 20 -o file >>$LOGFILE 2>&1
$NEWVER --regtest --debug --set-version $SETVERSION -i$MASTERISO -e$TMPECC -mRS03 -c -n 20 -o file >>$LOGFILE 2>&1
cp $MASTERISO $SIMISO
$NEWVER --debug -i$SIMISO --byteset 34930,0,1 >>$LOGFILE 2>&1
rm -f $TMPISO
run_regtest read_with_rs03_file "--debug --sim-cd=$SIMISO --fixed-speed-values --spinup-delay=0 -r" $TMPISO $TMPECC
fi
# Augmented image and non-matching RS03 error correction file
if try "reading RS02 image with non-matching RS03 ecc file" read_with_wrong_rs03_file; then
$NEWVER --debug --set-version $SETVERSION -i$MASTERISO -e$TMPECC -mRS03 -c -n 20 -o file >>$LOGFILE 2>&1
$NEWVER --regtest --debug --set-version $SETVERSION -i$MASTERISO -e$TMPECC -mRS03 -c -n 20 -o file >>$LOGFILE 2>&1
$NEWVER --debug -i$TMPECC --byteset 0,24,1 >>$LOGFILE 2>&1
cp $MASTERISO $SIMISO
$NEWVER --debug -i$SIMISO --byteset 34930,0,1 >>$LOGFILE 2>&1
rm -f $TMPISO
run_regtest read_with_wrong_rs03_file "--debug --sim-cd=$SIMISO --fixed-speed-values --spinup-delay=0 -r" $TMPISO $TMPECC
fi