diff options
author | Wolfgang Hommel <wolfgang.hommel@lrz.de> | 2013-10-01 13:15:34 +0200 |
---|---|---|
committer | Wolfgang Hommel <wolfgang.hommel@lrz.de> | 2013-10-01 13:15:34 +0200 |
commit | b9ba8ab444c8a202f3887126bb1b5a8acfae16fd (patch) | |
tree | 7533dfe67c56240af575a3a6140f1df470a1744e | |
parent | 8c1ba7899dff3917ebf595a1181eed1c4a415b7b (diff) | |
download | libfaketime-b9ba8ab444c8a202f3887126bb1b5a8acfae16fd.tar.gz |
uniform test output style
-rwxr-xr-x | test/test.sh | 16 |
1 files changed, 16 insertions, 0 deletions
diff --git a/test/test.sh b/test/test.sh index 4014b99..df41a8b 100755 --- a/test/test.sh +++ b/test/test.sh @@ -12,33 +12,49 @@ else echo fi +echo "=============================================================================" + echo "Running the test program with absolute date 2003-01-01 10:00:05 specified" echo "\$ LD_PRELOAD=../src/libfaketime.so.1 FAKETIME=\"2003-01-01 10:00:05\" ./timetest" LD_PRELOAD=../src/libfaketime.so.1 FAKETIME="2003-01-01 10:00:05" ./timetest echo +echo "=============================================================================" + echo "Running the test program with START date @2005-03-29 14:14:14 specified" echo "\$ LD_PRELOAD=../src/libfaketime.so.1 FAKETIME=\"@2005-03-29 14:14:14\" ./timetest" LD_PRELOAD=../src/libfaketime.so.1 FAKETIME="@2005-03-29 14:14:14" ./timetest echo +echo "=============================================================================" + echo "Running the test program with 10 days negative offset specified" echo "LD_PRELOAD=../src/libfaketime.so.1 FAKETIME=\"-10d\" ./timetest" LD_PRELOAD=../src/libfaketime.so.1 FAKETIME="-10d" ./timetest echo +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 + +echo "=============================================================================" 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 "=============================================================================" + echo "Running the 'date' command with 15 days negative offset specified" echo "\$ LD_PRELOAD=../src/libfaketime.so.1 FAKETIME=\"-15d\" date" LD_PRELOAD=../src/libfaketime.so.1 FAKETIME="-15d" date echo +echo "=============================================================================" +echo "Testing finished." + exit 0 |