[Midnightbsd-cvs] mports [20227] trunk/java/openjdk6/files/Makefile.test.in: add test config

laffer1 at midnightbsd.org laffer1 at midnightbsd.org
Sat Sep 12 20:59:32 EDT 2015


Revision: 20227
          http://svnweb.midnightbsd.org/mports/?rev=20227
Author:   laffer1
Date:     2015-09-12 20:59:31 -0400 (Sat, 12 Sep 2015)
Log Message:
-----------
add test config

Added Paths:
-----------
    trunk/java/openjdk6/files/Makefile.test.in

Added: trunk/java/openjdk6/files/Makefile.test.in
===================================================================
--- trunk/java/openjdk6/files/Makefile.test.in	                        (rev 0)
+++ trunk/java/openjdk6/files/Makefile.test.in	2015-09-13 00:59:31 UTC (rev 20227)
@@ -0,0 +1,67 @@
+#
+# Makefile to run jtreg
+#
+
+ifeq ($(ARCH), i386)
+  ARCH = i586
+endif
+
+# Root of this test area (important to use full paths in some places)
+TEST_ROOT := $(shell pwd)
+
+# Default bundle of all test results (passed or not)
+JPRT_ARCHIVE_BUNDLE = $(TEST_ROOT)/JPRT_ARCHIVE_BUNDLE.zip
+
+JT_HOME = $(TEST_ROOT)/../../jtreg
+JTREG_KEY_OPTION = -k:\!ignore
+JTREG_ENV_OPTION = -e:LOCALBASE=%%LOCALBASE%%
+JTREG_STATUS_OPTION = -status:notRun,fail,error
+
+# Default JTREG to run
+JTREG = $(ALT_JDK_IMPORT_PATH)/bin/java -jar $(JT_HOME)/lib/jtreg.jar
+
+# Default JDK to test
+JAVA_HOME = $(TEST_ROOT)/../../build/$(PLATFORM)-$(ARCH)/j2sdk-image
+
+# The test directories to run
+TESTDIRS = com demo java javax lib sun tools vm
+
+# Root of all test results
+JTREG_OUTPUT_DIR = $(TEST_ROOT)/o_$(PLATFORM)-$(ARCH)
+
+# Default make rule
+all: clean check tests $(JPRT_ARCHIVE_BUNDLE)
+	@echo "Testing completed successfully"
+
+# Chaeck to make sure these directories exist
+check: $(JT_HOME) $(JAVA_HOME)
+
+# Run the tests
+tests: FRC
+	@mkdir -p $(JTREG_OUTPUT_DIR)
+	$(JTREG) -a -v:fail,error \
+          $(JTREG_KEY_OPTION) \
+          $(JTREG_ENV_OPTION) \
+          $(JTREG_STATUS_OPTION) \
+          -r:$(JTREG_OUTPUT_DIR)/JTreport \
+          -w:$(JTREG_OUTPUT_DIR)/JTwork \
+          -jdk:$(JAVA_HOME) \
+          $(TESTDIRS)
+
+# Bundle up the results
+$(JPRT_ARCHIVE_BUNDLE): FRC
+	@rm -f $@
+	@mkdir -p $(@D)
+	( cd $(JTREG_OUTPUT_DIR) && %%LOCALBASE%%/bin/zip -q -r $@ . )
+
+# Cleanup
+clean:
+	rm -f -r $(JTREG_OUTPUT_DIR)
+	rm -f $(JPRT_ARCHIVE_BUNDLE)
+
+# Used to force a target rules to run
+FRC:
+
+# Phony targets (e.g. these are not filenames)
+.PHONY: all tests clean check
+


Property changes on: trunk/java/openjdk6/files/Makefile.test.in
___________________________________________________________________
Added: svn:eol-style
## -0,0 +1 ##
+native
\ No newline at end of property
Added: svn:keywords
## -0,0 +1 ##
+MidnightBSD=%H
\ No newline at end of property
Added: svn:mime-type
## -0,0 +1 ##
+text/plain
\ No newline at end of property


More information about the Midnightbsd-cvs mailing list