xref: /aoo4110/main/solenv/inc/cppunit.mk (revision b1cdbd2c)
1#**************************************************************
2#
3#  Licensed to the Apache Software Foundation (ASF) under one
4#  or more contributor license agreements.  See the NOTICE file
5#  distributed with this work for additional information
6#  regarding copyright ownership.  The ASF licenses this file
7#  to you under the Apache License, Version 2.0 (the
8#  "License"); you may not use this file except in compliance
9#  with the License.  You may obtain a copy of the License at
10#
11#    http://www.apache.org/licenses/LICENSE-2.0
12#
13#  Unless required by applicable law or agreed to in writing,
14#  software distributed under the License is distributed on an
15#  "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
16#  KIND, either express or implied.  See the License for the
17#  specific language governing permissions and limitations
18#  under the License.
19#
20#**************************************************************
21
22
23
24# Helper makefile additional, to support
25# dmake test
26# for cppunittester (cppunit testing)
27# for simple start all generated libraries:
28# dmake test
29#
30# for library 1 & 2:
31# or dmake test1 test2
32
33# This file have to be unroll by
34# cat cppunit.mk | mkunroll >_cppunit.mk
35# all between begin and end will repeat n times (at the moment n=10) to create such iterations
36# $(TNR) is the number
37# $(SHL$(TNR)TARGETN) is the same like $(OUT)/bin/$(SHL1TARGET) for every number, within unix, "bin" is replaced by "lib"
38
39################################################################################
40# unroll begin
41# ---- create the test libraries ------------------------------------
42
43.IF "$(SHL$(TNR)TARGETN)"!=""
44ALLTAR : test$(TNR)
45test$(TNR) .PHONY : $(SHL$(TNR)TARGETN)
46		@echo ----------------------------------------------------------
47		@echo - start unit test \#$(TNR) on library $(SHL$(TNR)TARGETN)
48		@echo ----------------------------------------------------------
49		$(CPPUNITTESTER) $(SHL$(TNR)TARGETN)
50.ENDIF
51
52# unroll end
53