summaryrefslogtreecommitdiff
path: root/test/test.sh
diff options
context:
space:
mode:
authorBalint Reczey <balint@balintreczey.hu>2013-08-28 18:22:51 +0200
committerBalint Reczey <balint@balintreczey.hu>2013-08-28 18:41:54 +0200
commit6fa8be96fc65ae7223640494574b5cf2774b80d7 (patch)
tree289c182f3eba2d3f98dfe09f94708eda4dabdc36 /test/test.sh
parent6f83e225b1557f316ae63ed72a29d93354e0c7af (diff)
downloadlibfaketime-6fa8be96fc65ae7223640494574b5cf2774b80d7.tar.gz
Fake sleep() and friends
This speeds up testing ;-)
Diffstat (limited to 'test/test.sh')
-rwxr-xr-xtest/test.sh4
1 files changed, 4 insertions, 0 deletions
diff --git a/test/test.sh b/test/test.sh
index a377b3f..4014b99 100755
--- a/test/test.sh
+++ b/test/test.sh
@@ -30,6 +30,10 @@ echo
echo "Running the test program with 10 days negative offset specified, and FAKE_STAT disabled"
echo "\$ LD_PRELOAD=../src/libfaketime.so.1 FAKETIME=\"-10d\" NO_FAKE_STAT=1 ./timetest"
LD_PRELOAD=../src/libfaketime.so.1 FAKETIME="-10d" NO_FAKE_STAT=1 ./timetest
+
+echo "Running the test program with 10 days postive offset specified, and sped up 2 times"
+echo "\$ LD_PRELOAD=../src/libfaketime.so.1 FAKETIME=\"+10d x2\" ./timetest"
+LD_PRELOAD=../src/libfaketime.so.1 FAKETIME="+10d x2" NO_FAKE_STAT=1 ./timetest
echo
echo "Running the 'date' command with 15 days negative offset specified"