tests: detect and use portable time and date command
authorJean Privat <jean@pryen.org>
Thu, 9 Oct 2014 17:39:52 +0000 (13:39 -0400)
committerJean Privat <jean@pryen.org>
Thu, 9 Oct 2014 17:39:52 +0000 (13:39 -0400)
commitcfc9936dac542bc322191631936f53839d758093
tree9e3efded8ab8c22bfe048d5a22ea4de0c52ed18d
parent27dfaddf8868e5402720b2e0eb2ea3d22d6deb0f
tests: detect and use portable time and date command

Advanced behavior of `time` and `date` is not protable. Thus try
to detect known working configurations and use them.

time and date are not fundamental for tests, so having
an unsupported implementation is not a big deal.

Signed-off-by: Jean Privat <jean@pryen.org>
tests/tests.sh