diff options
| author | Dirk-Jan C. Binnema <djcb@djcbsoftware.nl> | 2010-01-25 10:24:33 +0200 |
|---|---|---|
| committer | Dirk-Jan C. Binnema <djcb@djcbsoftware.nl> | 2010-01-25 10:24:33 +0200 |
| commit | afcd800a2e779f6df7281d73c9d0bb801fb198bf (patch) | |
| tree | c3cf5a3978e4d478ea2b5947a5aa833e8dbcc20f /gtest.mk | |
| parent | 92202ac6ebb0229aa5d8899fafe7ab8b22bc7cff (diff) | |
* set up (unit) test framework using gtester
Diffstat (limited to 'gtest.mk')
| -rw-r--r-- | gtest.mk | 27 |
1 files changed, 27 insertions, 0 deletions
diff --git a/gtest.mk b/gtest.mk new file mode 100644 index 0000000..218d133 --- /dev/null +++ b/gtest.mk @@ -0,0 +1,27 @@ +## Copyright (C) 2010 Dirk-Jan C. Binnema <djcb@djcbsoftware.nl> +## +## 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 +## Free Software Foundation; either version 3, or (at your option) any +## later version. +## +## This program is distributed in the hope that it will be useful, +## but WITHOUT ANY WARRANTY; without even the implied warranty of +## MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the +## GNU General Public License for more details. +## +## You should have received a copy of the GNU General Public License +## along with this program; if not, write to the Free Software Foundation, +## Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. + +TEST_PROGS= + +test: all $(TEST_PROGS) + @ test -z "$(TEST_PROGS)" || gtester --verbose $(TEST_PROGS); \ + test -z "$(SUBDIRS)" || \ + for subdir in $(SUBDIRS); do \ + test "$$subdir" = "." || \ + (cd $$subdir && $(MAKE) $(AM_MAKEFLAGS) $@ ) || exit $? ; \ + done + +.PHONY: test |
