feat: add -z (--strip) to remove ECC data from an iso

This commit is contained in:
Stéphane Lesimple
2021-01-30 12:18:03 +01:00
parent fd4f8424f7
commit c336d039a9
12 changed files with 165 additions and 8 deletions

View File

@@ -36,6 +36,27 @@ if ! file_exists $LARGEMASTERISO; then
FILE_MSG=""
fi
### Strip tests
REGTEST_SECTION="Strip tests"
# Strip ECC from an augmented image
if try "strip ECC from augmented image" strip_ecc; then
cp $MASTERISO $TMPISO
run_regtest strip_ecc "-v --strip" $TMPISO
fi
# Strip ECC from a non-augmented image
if try "strip ECC from a non-augmented image" strip_ecc_not; then
cp $MASTERISO $TMPISO
$NEWVER -i$TMPISO --strip >>$LOGFILE 2>&1
run_regtest strip_ecc_not "-v --strip" $TMPISO
fi
### Verification tests
REGTEST_SECTION="Verify tests"