-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Separate tests into two groups: online (`VerifyTestLive.java`) and offline (`VerifyTest.java`). - Disable online test by default. - Add faketime tests.
- Loading branch information
Showing
5 changed files
with
224 additions
and
167 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,13 @@ | ||
#!/bin/bash | ||
|
||
# Check if faketime is installed | ||
if ! command -v faketime &> /dev/null; then | ||
echo "faketime is not installed. Please install it using 'sudo apt install faketime'." | ||
exit 1 | ||
fi | ||
|
||
# Tell tests that faketime is active | ||
export FAKE_TIME_ACTIVE=1 | ||
|
||
# Run Maven tests with faketime active | ||
faketime --exclude-monotonic '2023-09-15 10:00:00' mvn test -Dstyle.color=always -Dtest=VerifyTest |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.