Skip to content

Commit 4cbbcee

Browse files
committed
Added test to make sure libfaketime is working.
1 parent 298c9ae commit 4cbbcee

File tree

1 file changed

+15
-0
lines changed

1 file changed

+15
-0
lines changed

.github/workflows/LuaWatcom.yml

Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -22,6 +22,21 @@ jobs:
2222
submodules: recursive
2323
fetch-depth: 0
2424

25+
- name: Test libfaketime works
26+
env:
27+
FAKETIME: $(TZ=UTC0 git show --quiet --date='format-local:%Y-%m-%d %H:%M:%S' --format="%cd")
28+
LD_PRELOAD: $(dpkg -L libfaketime | grep libfaketime.so.1)
29+
run: |
30+
DATE=$(date -Is)
31+
echo "Date: $DATE"
32+
echo "Faketime: $FAKETIME"
33+
echo "ld-preload: $LD_PRELOAD"
34+
if [ "$FAKETIME" == "$DATE" ]; then
35+
false
36+
else
37+
true
38+
fi
39+
2540
- name: Test Lua Core Demo Scripts function
2641
run: |
2742
lua demo/core/README.LUA

0 commit comments

Comments
 (0)