Skip to content

Commit

Permalink
Enable tests fixed with recent commits.
Browse files Browse the repository at this point in the history
  • Loading branch information
oniko committed Nov 6, 2023
1 parent 029d4bd commit ee31159
Showing 1 changed file with 0 additions and 7 deletions.
7 changes: 0 additions & 7 deletions tests/compat-test-opal
Original file line number Diff line number Diff line change
Expand Up @@ -832,8 +832,6 @@ echo -e "$PWD1\n$OPAL2_ADMIN_PIN" | $CRYPTSETUP -q luksFormat $FAST_PBKDF_OPT --
echo $OPAL2_ADMIN_PIN | $CRYPTSETUP luksErase -q $OPAL2_DEV || fail
$CRYPTSETUP isLuks -q $OPAL2_DEV && fail

# FIXME: Bug to be fixed with OPAL requirement flag
if false; then
prepare "[26] LUKS convert" wipe
# create almost compatible LUKS2 device except OPAL segment
echo -e "$PWD1\n$OPAL2_ADMIN_PIN" | $CRYPTSETUP -q luksFormat $FAST_PBKDF_OPT --type luks2 --sector-size 512 -s256 --hw-opal $OPAL2_DEV || fail
Expand All @@ -842,7 +840,6 @@ $CRYPTSETUP isLuks --type luks2 $OPAL2_DEV || fail
echo -e "$PWD1\n$OPAL2_ADMIN_PIN" | $CRYPTSETUP -q luksFormat $FAST_PBKDF_OPT --type luks2 --sector-size 512 -s256 --hw-opal-only $OPAL2_DEV || fail
$CRYPTSETUP -q convert --type luks1 $OPAL2_DEV >/dev/null 2>&1 && fail
$CRYPTSETUP isLuks --type luks2 $OPAL2_DEV || fail
fi

if dm_crypt_keyring_support && dm_crypt_keyring_new_kernel; then
prepare "[27] LUKS2 key in keyring" wipe
Expand Down Expand Up @@ -1247,8 +1244,6 @@ if [ $HAVE_KEYRING -gt 0 -a -d /proc/sys/kernel/keys ]; then

fi

# FIXME: Bug to be fixed with OPAL requirement flag
if false; then
if ! fips_mode; then
prepare "[39] LUKS2 reencryption/decryption blocked" wipe

Expand Down Expand Up @@ -1282,8 +1277,6 @@ $CRYPTSETUP isLuks $OPAL2_DEV && fail
test -b $DEV_NAME && fail
echo -e "$PWD1\n$OPAL2_ADMIN_PIN" | $CRYPTSETUP reencrypt --encrypt --reduce-device-size 32m $FAST_PBKDF_OPT --type luks2 -s256 --hw-opal-only $OPAL2_DEV 2>/dev/null && fail
$CRYPTSETUP isLuks $OPAL2_DEV && fail

fi
fi

prepare "[42] OPAL2 HW only test." wipe
Expand Down

0 comments on commit ee31159

Please sign in to comment.