From dd233b17f0046f04c737c9f992513e6589f7d2fc Mon Sep 17 00:00:00 2001 From: "Dirk-Jan C. Binnema" Date: Thu, 21 Jul 2011 21:57:45 +0300 Subject: [PATCH] * gtest.mk: test timezone, locale to something predictable for the tests --- gtest.mk | 10 +++++++++- 1 file changed, 9 insertions(+), 1 deletion(-) diff --git a/gtest.mk b/gtest.mk index 39200b76..1d3f4c32 100644 --- a/gtest.mk +++ b/gtest.mk @@ -1,4 +1,4 @@ -## Copyright (C) 2010 Dirk-Jan C. Binnema +## Copyright (C) 2011 Dirk-Jan C. Binnema ## ## This program is free software; you can redistribute it and/or modify it ## under the terms of the GNU General Public License as published by the @@ -16,7 +16,15 @@ TEST_PROGS= +# +# NOTE: we set the locale/tz to some well-know values, so the tests +# (at least when running under 'make check') run in a predictable +# environment. There are specific tests different timezone, though. +# + test: all $(TEST_PROGS) + @export LC_ALL="en_US.utf8" + @export TZ="Europe/Helsinki" @test -z "$(TEST_PROGS)" || gtester --verbose $(TEST_PROGS) || exit $$?; \ test -z "$(SUBDIRS)" || \ for subdir in $(SUBDIRS); do \