From cdba28e0c5285e088ac8868e5e660f24e5ef80ff Mon Sep 17 00:00:00 2001 From: DL6ER Date: Thu, 26 Sep 2024 11:57:53 +0200 Subject: [PATCH] Add verification CI test Signed-off-by: DL6ER --- test/test_suite.bats | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/test/test_suite.bats b/test/test_suite.bats index b61733b9..f39c23a8 100644 --- a/test/test_suite.bats +++ b/test/test_suite.bats @@ -8,6 +8,12 @@ [[ "${lines[@]}" == "" ]] } +@test "Check FTL binary integrity" { + run bash -c './pihole-FTL verify' + printf "%s\n" "${lines[@]}" + [[ "${lines[0]}" == *"SHA256 checksum matches" ]] +} + @test "Running a second instance is detected and prevented" { run bash -c 'su pihole -s /bin/sh -c "./pihole-FTL -f"' printf "%s\n" "${lines[@]}"