16 # fields enclosed by brackets "[]" replaced with your own identifying |
16 # fields enclosed by brackets "[]" replaced with your own identifying |
17 # information: Portions Copyright [yyyy] [name of copyright owner] |
17 # information: Portions Copyright [yyyy] [name of copyright owner] |
18 # |
18 # |
19 # CDDL HEADER END |
19 # CDDL HEADER END |
20 # |
20 # |
21 # Copyright (c) 2011, 2015, Oracle and/or its affiliates. All rights reserved. |
21 |
22 # |
22 # |
|
23 # Copyright (c) 2011, 2016, Oracle and/or its affiliates. All rights reserved. |
|
24 # |
|
25 BUILD_BITS= 32 |
23 include ../../make-rules/shared-macros.mk |
26 include ../../make-rules/shared-macros.mk |
24 |
27 |
25 COMPONENT_NAME= junit |
28 COMPONENT_NAME= junit |
26 COMPONENT_VERSION= 4.11 |
29 COMPONENT_VERSION= 4.11 |
27 COMPONENT_PROJECT_URL= https://github.com/junit-team/junit/archive |
30 COMPONENT_PROJECT_URL= https://github.com/junit-team/junit/archive |
28 COMPONENT_SRC= $(COMPONENT_NAME)-r$(COMPONENT_VERSION) |
31 COMPONENT_SRC= $(COMPONENT_NAME)-r$(COMPONENT_VERSION) |
29 COMPONENT_ARCHIVE= r$(COMPONENT_VERSION).zip |
32 COMPONENT_ARCHIVE= r$(COMPONENT_VERSION).zip |
30 COMPONENT_ARCHIVE_HASH= \ |
33 COMPONENT_ARCHIVE_HASH= \ |
31 sha256:3048cb3f2b07fada9d85b2c042bbedb93892ef70c1dcfe0594124850418f9ffb |
34 sha256:3048cb3f2b07fada9d85b2c042bbedb93892ef70c1dcfe0594124850418f9ffb |
32 COMPONENT_ARCHIVE_URL= $(COMPONENT_PROJECT_URL)/$(COMPONENT_ARCHIVE) |
35 COMPONENT_ARCHIVE_URL= $(COMPONENT_PROJECT_URL)/$(COMPONENT_ARCHIVE) |
33 COMPONENT_BUGDB= utility/junit |
|
34 |
36 |
35 TPNO= 9070 |
37 TPNO= 9070 |
36 |
38 |
37 include $(WS_MAKE_RULES)/prep.mk |
39 BUILD_STYLE= ant |
38 include $(WS_MAKE_RULES)/ant.mk |
40 |
39 include $(WS_MAKE_RULES)/ips.mk |
41 # Another test is: |
|
42 # To test after you have installed the resulting package do: |
|
43 # $ java -cp /usr/share/lib/java/junit.jar:/usr/share/doc/junit/samples/org \ |
|
44 # junit/samples/money/MoneyTest |
|
45 # ...................... |
|
46 # Time: 0.003 |
|
47 # |
|
48 # OK (22 tests) |
|
49 SYSTEM_TEST_TARGET= build $(SYSTEM_TEST_32) |
|
50 include $(WS_MAKE_RULES)/common.mk |
40 |
51 |
41 # These ARGS override what is set in build.xml |
52 # These ARGS override what is set in build.xml |
42 COMPONENT_BUILD_ARGS += -Ddist=${PROTO_DIR} |
53 COMPONENT_BUILD_ARGS += -Ddist=${PROTO_DIR} |
43 COMPONENT_BUILD_ARGS += -Djavadocdir=${PROTO_DIR} |
54 COMPONENT_BUILD_ARGS += -Djavadocdir=${PROTO_DIR} |
44 COMPONENT_BUILD_ARGS += -Dversion-status="" |
55 COMPONENT_BUILD_ARGS += -Dversion-status="" |
54 # need to build tests which are also part of the overall softare build. |
65 # need to build tests which are also part of the overall softare build. |
55 COMPONENT_TEST_ARGS += $(COMPONENT_BUILD_ARGS) |
66 COMPONENT_TEST_ARGS += $(COMPONENT_BUILD_ARGS) |
56 COMPONENT_TEST_ENV += "_JAVA_OPTIONS=-Djava.io.tmpdir=$(BUILD_DIR_32)/tmp" |
67 COMPONENT_TEST_ENV += "_JAVA_OPTIONS=-Djava.io.tmpdir=$(BUILD_DIR_32)/tmp" |
57 COMPONENT_TEST_TARGETS = test-build |
68 COMPONENT_TEST_TARGETS = test-build |
58 |
69 |
59 COMPONENT_SYSTEM_TEST_ARGS += -Dsystem-binjar=/usr/share/lib/java/$(COMPONENT_NAME).jar |
70 COMPONENT_SYSTEM_TEST_ARGS += -Dsystem-binjar=$(USRSHARELIBDIR)/java/$(COMPONENT_NAME).jar |
60 COMPONENT_SYSTEM_TEST_ENV += "_JAVA_OPTIONS=-Djava.io.tmpdir=$(BUILD_DIR_32)/tmp" |
71 COMPONENT_SYSTEM_TEST_ENV += "_JAVA_OPTIONS=-Djava.io.tmpdir=$(BUILD_DIR_32)/tmp" |
61 COMPONENT_SYSTEM_TEST_TARGETS = test |
72 COMPONENT_SYSTEM_TEST_TARGETS = test |
62 |
73 |
63 # Test transforms |
74 # Test transforms |
64 # remove everything upto "test" which is build noise |
75 # remove everything upto "test" which is build noise |
65 # remove time |
76 # remove time |
66 COMPONENT_TEST_TRANSFORMS += \ |
77 COMPONENT_TEST_TRANSFORMS += \ |
67 '-e "1,/^test/d"' \ |
78 '-e "1,/^test/d"' \ |
68 '-e "s/.*[Tt]ime.*$$//"' |
79 '-e "s/.*[Tt]ime.*$$//"' |
69 |
80 |
70 ASLR_MODE = $(ASLR_NOT_APPLICABLE) |
|
71 |
|
72 build: $(BUILD_32) |
|
73 |
|
74 install: build |
|
75 |
|
76 # Another test is: |
|
77 # To test after you have installed the resulting package do: |
|
78 # $ java -cp /usr/share/lib/java/junit.jar:/usr/share/doc/junit/samples/org \ |
|
79 # junit/samples/money/MoneyTest |
|
80 # ...................... |
|
81 # Time: 0.003 |
|
82 # |
|
83 # OK (22 tests) |
|
84 |
|
85 test: $(TEST_32) |
|
86 |
|
87 system-test: build $(SYSTEM_TEST_32) |
|
88 |
|
89 REQUIRED_PACKAGES += runtime/java/jre-8 |
81 REQUIRED_PACKAGES += runtime/java/jre-8 |