Skip to content

Commit

Permalink
add a faketime test and update cert buffers
Browse files Browse the repository at this point in the history
  • Loading branch information
JacobBarthelmeh committed Dec 20, 2024
1 parent 8ca7902 commit 19e68ea
Show file tree
Hide file tree
Showing 2 changed files with 159 additions and 142 deletions.
16 changes: 16 additions & 0 deletions certs/check_dates.sh
Original file line number Diff line number Diff line change
Expand Up @@ -137,6 +137,22 @@ do
check_file $file
done

# try running test suite in the future
faketime -v > /dev/null
RESULT=$?
if [ "$RESULT" = "0" ]; then
FUTURE=$(date --date="1 years")
echo ""
echo "Trying to run tests with time set to \"$FUTURE\""
./configure --enable-all -q
make -s
faketime "${FUTURE}" ./tests/unit.test
RESULT=$?
if [ "$RESULT" != "0" ]; then
echo "Running tests with future date failed"
exit 1
fi
fi
# Return result of check
# 0 on success
# 1 on failure
Expand Down
Loading

0 comments on commit 19e68ea

Please sign in to comment.