snapraid/raid/test/selftest.c
Christoph Hellwig 60269a1236 Use SPDX (https://spdx.dev/) tags to identify the license used for each
file, and a COPYING file explaining the licensing scheme, with the actual
licenses listed in the LICENSES/ directory.
2026-04-02 16:01:37 +02:00

31 lines
482 B
C

// SPDX-License-Identifier: GPL-2.0-or-later
/*
* Copyright (C) 2013 Andrea Mazzoleni
*/
/* Self-test for the RAID library */
#include "internal.h"
#include "cpu.h"
#include <stdio.h>
#include <stdlib.h>
int main(void)
{
printf("Self-test for the RAID Cauchy library\n\n");
raid_init();
printf("Self-test...\n");
if (raid_selftest() != 0) {
/* LCOV_EXCL_START */
printf("FAILED!\n");
exit(EXIT_FAILURE);
/* LCOV_EXCL_STOP */
}
printf("OK\n\n");
return 0;
}