snapraid/makecov.sh
Andrea Mazzoleni 21561e6cf9
Some checks are pending
Build / build-mac (push) Waiting to run
Build / build-linux (push) Waiting to run
Build / build-win (push) Waiting to run
CodeQL Advanced / Analyze (c-cpp) (push) Waiting to run
CodeQL Advanced / Analyze (actions) (push) Waiting to run
More coverage test
2026-02-28 18:13:11 +01:00

30 lines
423 B
Bash
Executable file

#!/bin/sh
#
# Run the Coverage test
#
make distclean
if ! ./configure --enable-coverage --enable-sde; then
exit 1
fi
if ! make lcov_reset; then
exit 1
fi
if ! make check; then
exit 1
fi
# Run commands on a real array to test smartctl
sudo ./snapraid probe
sudo ./snapraid up
sudo ./snapraid smart
sudo ./snapraid probe
sudo ./snapraid devices
sudo ./snapraid down
if ! make lcov_capture lcov_html; then
exit 1
fi