From cd379b29e7b39d6d214a6185ae3350864b70f42f Mon Sep 17 00:00:00 2001 From: Thomas von Dein Date: Wed, 5 Nov 2025 22:17:23 +0100 Subject: [PATCH] more tests --- .woodpecker/build.yaml | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) diff --git a/.woodpecker/build.yaml b/.woodpecker/build.yaml index 2d5c9b7..b1b7b5d 100644 --- a/.woodpecker/build.yaml +++ b/.woodpecker/build.yaml @@ -13,9 +13,16 @@ steps: commands: - apk update - apk add --no-cache bash build-base words-en gdb valgrind + # build - make - #- valgrind --leak-check=full --show-reachable=yes ./dicepwgen + # look for memory leaks etc + - valgrind --leak-check=full --show-reachable=yes ./dicepwgen 2>&1 | tee log | grep "All heap blocks were freed" + - cat log + # enable in case of a crash #- gdb -batch -ex "run" -ex "bt" --args dicepwgen + # check if we really get a password - ./dicepwgen -y | grep -E '[a-z]*%' + # check a custom dict file and if we get 6 words when requested + - test 6 -eq $(./dicepwgen -f contrib/american-english-insane -c 6 | sed 's/[a-zA-Z]//g' | wc -c)