ipc/ipdl/test/cxx/Makefile.in

Wed, 31 Dec 2014 13:27:57 +0100

author
Michael Schloh von Bennewitz <michael@schloh.com>
date
Wed, 31 Dec 2014 13:27:57 +0100
branch
TOR_BUG_3246
changeset 6
8bccb770b82d
permissions
-rw-r--r--

Ignore runtime configuration files generated during quality assurance.

michael@0 1 # This Source Code Form is subject to the terms of the Mozilla Public
michael@0 2 # License, v. 2.0. If a copy of the MPL was not distributed with this
michael@0 3 # file, You can obtain one at http://mozilla.org/MPL/2.0/.
michael@0 4
michael@0 5 IPDLTESTSRCS = $(filter Test%,$(CPPSRCS))
michael@0 6 IPDLTESTS = $(IPDLTESTSRCS:.cpp=)
michael@0 7
michael@0 8 EXTRA_PROTOCOLS = \
michael@0 9 TestBridgeSub \
michael@0 10 $(NULL)
michael@0 11
michael@0 12 IPDLTESTHDRS = $(addprefix $(srcdir)/,$(addsuffix .h,$(IPDLTESTS)))
michael@0 13
michael@0 14 TESTER_TEMPLATE := $(srcdir)/IPDLUnitTests.template.cpp
michael@0 15 GENTESTER := $(srcdir)/genIPDLUnitTests.py
michael@0 16
michael@0 17 include $(topsrcdir)/config/rules.mk
michael@0 18
michael@0 19
michael@0 20 IPDLUNITTEST_BIN = $(DEPTH)/dist/bin/ipdlunittest$(BIN_SUFFIX)
michael@0 21
michael@0 22 IPDLUnitTests.cpp : Makefile.in $(GENTESTER) $(TESTER_TEMPLATE) $(IPDLTESTHDRS)
michael@0 23 $(PYTHON) $(GENTESTER) $(TESTER_TEMPLATE) -t $(IPDLTESTS) -e $(EXTRA_PROTOCOLS) > $@
michael@0 24
michael@0 25 check-proc::
michael@0 26 @$(EXIT_ON_ERROR) \
michael@0 27 for test in $(IPDLTESTS); do \
michael@0 28 $(RUN_TEST_PROGRAM) $(IPDLUNITTEST_BIN) $$test ; \
michael@0 29 done
michael@0 30
michael@0 31 check-thread::
michael@0 32 @$(EXIT_ON_ERROR) \
michael@0 33 for test in $(IPDLTESTS); do \
michael@0 34 $(RUN_TEST_PROGRAM) $(IPDLUNITTEST_BIN) thread:$$test ; \
michael@0 35 done
michael@0 36
michael@0 37 check:: check-proc check-thread
michael@0 38
michael@0 39 check-valgrind::
michael@0 40 @$(EXIT_ON_ERROR) \
michael@0 41 for test in $(IPDLTESTS); do \
michael@0 42 $(RUN_TEST_PROGRAM) -g -d \
michael@0 43 valgrind -a '--leak-check=full --trace-children=yes -q' \
michael@0 44 $(IPDLUNITTEST_BIN) $$test ; \
michael@0 45 done

mercurial