mirror of https://github.com/djcb/mu.git
* gtest.mk: test timezone, locale to something predictable for the tests
This commit is contained in:
parent
62616a2a2c
commit
dd233b17f0
10
gtest.mk
10
gtest.mk
|
@ -1,4 +1,4 @@
|
||||||
## Copyright (C) 2010 Dirk-Jan C. Binnema <djcb@djcbsoftware.nl>
|
## Copyright (C) 2011 Dirk-Jan C. Binnema <djcb@djcbsoftware.nl>
|
||||||
##
|
##
|
||||||
## This program is free software; you can redistribute it and/or modify it
|
## 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
|
## under the terms of the GNU General Public License as published by the
|
||||||
|
@ -16,7 +16,15 @@
|
||||||
|
|
||||||
TEST_PROGS=
|
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)
|
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 "$(TEST_PROGS)" || gtester --verbose $(TEST_PROGS) || exit $$?; \
|
||||||
test -z "$(SUBDIRS)" || \
|
test -z "$(SUBDIRS)" || \
|
||||||
for subdir in $(SUBDIRS); do \
|
for subdir in $(SUBDIRS); do \
|
||||||
|
|
Loading…
Reference in New Issue