Support dynamic runtime selection of RAID AES mode

This commit is contained in:
Andrea Mazzoleni 2026-07-29 12:47:13 +02:00
parent ca5ad2f842
commit 5a8e4e5d67
24 changed files with 16502 additions and 16479 deletions

View file

@ -15,15 +15,28 @@ int main(void)
raid_init();
printf("Self-test...\n");
printf("Test Cauchy RAID\n");
if (raid_selftest() != 0) {
/* LCOV_EXCL_START */
printf("FAILED!\n");
exit(EXIT_FAILURE);
goto bail;
/* LCOV_EXCL_STOP */
}
printf("OK\n\n");
raid_mode(RAID_MODE_CAUCHY_AES);
printf("Test Cauchy AES\n");
if (raid_selftest() != 0) {
/* LCOV_EXCL_START */
goto bail;
/* LCOV_EXCL_STOP */
}
printf("OK\n");
return 0;
}
bail:
/* LCOV_EXCL_START */
printf("FAILED!\n");
exit(EXIT_FAILURE);
/* LCOV_EXCL_STOP */
}