Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Newer
Older
100644 36 lines (31 sloc) 1.337 kb
dd233b1 @djcb * gtest.mk: test timezone, locale to something predictable for the tests
authored
1 ## Copyright (C) 2011 Dirk-Jan C. Binnema <djcb@djcbsoftware.nl>
afcd800 @djcb * set up (unit) test framework using gtester
authored
2 ##
3 ## This program is free software; you can redistribute it and/or modify it
4 ## under the terms of the GNU General Public License as published by the
5 ## Free Software Foundation; either version 3, or (at your option) any
6 ## later version.
7 ##
8 ## This program is distributed in the hope that it will be useful,
9 ## but WITHOUT ANY WARRANTY; without even the implied warranty of
10 ## MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
11 ## GNU General Public License for more details.
12 ##
13 ## You should have received a copy of the GNU General Public License
14 ## along with this program; if not, write to the Free Software Foundation,
15 ## Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
16
17 TEST_PROGS=
18
dd233b1 @djcb * gtest.mk: test timezone, locale to something predictable for the tests
authored
19 #
20 # NOTE: we set the locale/tz to some well-know values, so the tests
21 # (at least when running under 'make check') run in a predictable
22 # environment. There are specific tests different timezone, though.
23 #
24
afcd800 @djcb * set up (unit) test framework using gtester
authored
25 test: all $(TEST_PROGS)
dd233b1 @djcb * gtest.mk: test timezone, locale to something predictable for the tests
authored
26 @export LC_ALL="en_US.utf8"
27 @export TZ="Europe/Helsinki"
1a633fb @djcb * update gtest.mk to actually abort when there's an error in the test ca...
authored
28 @test -z "$(TEST_PROGS)" || gtester --verbose $(TEST_PROGS) || exit $$?; \
29 test -z "$(SUBDIRS)" || \
afcd800 @djcb * set up (unit) test framework using gtester
authored
30 for subdir in $(SUBDIRS); do \
31 test "$$subdir" = "." || \
529aefb @djcb * gtest.mk: fix for magical cd
authored
32 (cd ./$$subdir && $(MAKE) $(AM_MAKEFLAGS) $@ ) || exit $$? ; \
afcd800 @djcb * set up (unit) test framework using gtester
authored
33 done
52e6fa5 @djcb * add some mu-msg-gmime unit tests
authored
34
35 .PHONY: test gprof
Something went wrong with that request. Please try again.