javaunittest.mk (7871dc3e) javaunittest.mk (67dc21e5)
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

--- 36 unchanged lines hidden (view full) ---

45# tests;
46# each one of the form <basename>.jar
47# All generated class files are placed into <platform>/class/test/ instead of
48# <platform>/class/, so that they are not accidentally included in jar files
49# packed from <platform>/class/ subdirectories.
50
51JAVAFILES +:= $(JAVATESTFILES)
52EXTRAJARFILES += $(OOO_JUNIT_JAR)
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

--- 36 unchanged lines hidden (view full) ---

45# tests;
46# each one of the form <basename>.jar
47# All generated class files are placed into <platform>/class/test/ instead of
48# <platform>/class/, so that they are not accidentally included in jar files
49# packed from <platform>/class/ subdirectories.
50
51JAVAFILES +:= $(JAVATESTFILES)
52EXTRAJARFILES += $(OOO_JUNIT_JAR)
53.IF "$(HAMCREST_CORE_JAR)" != ""
54EXTRAJARFILES += $(HAMCREST_CORE_JAR)
55.END
53
54.INCLUDE: settings.mk
55
56.IF "$(XCLASSPATH)" == ""
57XCLASSPATH := $(CLASSDIR)
58.ELSE
59XCLASSPATH !:= $(XCLASSPATH)$(PATH_SEPERATOR)$(CLASSDIR)
60.ENDIF

--- 7 unchanged lines hidden (view full) ---

68 - $(MKDIR) $(CLASSDIR)
69 $(TOUCH) $@
70
71.IF "$(JAVATESTFILES)" != ""
72ALLTAR : test
73.END
74
75.IF "$(SOLAR_JAVA)" == "TRUE" && "$(OOO_JUNIT_JAR)" != ""
56
57.INCLUDE: settings.mk
58
59.IF "$(XCLASSPATH)" == ""
60XCLASSPATH := $(CLASSDIR)
61.ELSE
62XCLASSPATH !:= $(XCLASSPATH)$(PATH_SEPERATOR)$(CLASSDIR)
63.ENDIF

--- 7 unchanged lines hidden (view full) ---

71 - $(MKDIR) $(CLASSDIR)
72 $(TOUCH) $@
73
74.IF "$(JAVATESTFILES)" != ""
75ALLTAR : test
76.END
77
78.IF "$(SOLAR_JAVA)" == "TRUE" && "$(OOO_JUNIT_JAR)" != ""
79.IF "$(HAMCREST_CORE_JAR)" != ""
76test .PHONY : $(JAVATARGET)
77 $(JAVAI) $(JAVAIFLAGS) $(JAVACPS) \
80test .PHONY : $(JAVATARGET)
81 $(JAVAI) $(JAVAIFLAGS) $(JAVACPS) \
82 '$(OOO_JUNIT_JAR)$(PATH_SEPERATOR)$(HAMCREST_CORE_JAR)$(PATH_SEPARATOR)$(CLASSPATH)' \
83 org.junit.runner.JUnitCore \
84 $(foreach,i,$(JAVATESTFILES) $(subst,/,. $(PACKAGE)).$(i:s/.java//))
85.ELSE
86test .PHONY : $(JAVATARGET)
87 $(JAVAI) $(JAVAIFLAGS) $(JAVACPS) \
78 '$(OOO_JUNIT_JAR)$(PATH_SEPERATOR)$(CLASSPATH)' \
79 org.junit.runner.JUnitCore \
80 $(foreach,i,$(JAVATESTFILES) $(subst,/,. $(PACKAGE)).$(i:s/.java//))
88 '$(OOO_JUNIT_JAR)$(PATH_SEPERATOR)$(CLASSPATH)' \
89 org.junit.runner.JUnitCore \
90 $(foreach,i,$(JAVATESTFILES) $(subst,/,. $(PACKAGE)).$(i:s/.java//))
91.END
81.ELSE
82test .PHONY :
83 echo 'test needs SOLAR_JAVA=TRUE and OOO_JUNIT_JAR'
84.END
85
86.IF "$(IDLTESTFILES)" != ""
87
88# The following dependency (to execute javac whenever javamaker has run) does

--- 18 unchanged lines hidden ---
92.ELSE
93test .PHONY :
94 echo 'test needs SOLAR_JAVA=TRUE and OOO_JUNIT_JAR'
95.END
96
97.IF "$(IDLTESTFILES)" != ""
98
99# The following dependency (to execute javac whenever javamaker has run) does

--- 18 unchanged lines hidden ---