743
744 // Profiles used to run tests.
745 var testOnlyProfiles = {
746 "run-test": {
747 target_os: input.build_os,
748 target_cpu: input.build_cpu,
749 dependencies: [ "jtreg", "gnumake", "boot_jdk", "devkit", "jib" ],
750 labels: "test",
751 environment: {
752 "JT_JAVA": common.boot_jdk_home
753 }
754 }
755 };
756 profiles = concatObjects(profiles, testOnlyProfiles);
757
758 // Profiles used to run tests using Jib for internal dependencies.
759 var testedProfile = input.testedProfile;
760 if (testedProfile == null) {
761 testedProfile = input.build_os + "-" + input.build_cpu;
762 }
763 var testOnlyProfilesPrebuilt = {
764 "run-test-prebuilt": {
765 target_os: input.build_os,
766 target_cpu: input.build_cpu,
767 dependencies: [
768 "jtreg", "gnumake", "boot_jdk", "devkit", "jib", testedProfile + ".jdk",
769 testedProfile + ".test"
770 ],
771 src: "src.conf",
772 make_args: [ "run-test-prebuilt", "LOG_CMDLINES=true", "JTREG_VERBOSE=fail,error,time" ],
773 environment: {
774 "BOOT_JDK": common.boot_jdk_home,
775 "JDK_IMAGE_DIR": input.get(testedProfile + ".jdk", "home_path"),
776 "TEST_IMAGE_DIR": input.get(testedProfile + ".test", "home_path")
777 },
778 labels: "test"
779 }
780 };
781
782 // If actually running the run-test-prebuilt profile, verify that the input
783 // variable is valid and if so, add the appropriate target_* values from
784 // the tested profile.
785 if (input.profile == "run-test-prebuilt") {
786 if (profiles[testedProfile] == null) {
787 error("testedProfile is not defined: " + testedProfile);
788 }
789 }
790 if (profiles[testedProfile] != null) {
791 testOnlyProfilesPrebuilt["run-test-prebuilt"]["target_os"]
792 = profiles[testedProfile]["target_os"];
793 testOnlyProfilesPrebuilt["run-test-prebuilt"]["target_cpu"]
794 = profiles[testedProfile]["target_cpu"];
795 }
796 profiles = concatObjects(profiles, testOnlyProfilesPrebuilt);
922 revision: "4.2",
923 build_number: "b13",
924 checksum_file: "MD5_VALUES",
925 file: "jtreg_bin-4.2.zip",
926 environment_name: "JT_HOME",
927 environment_path: input.get("jtreg", "install_path") + "/jtreg/bin"
928 },
929
930 jmh: {
931 organization: common.organization,
932 ext: "tar.gz",
933 revision: "1.21+1.0"
934 },
935
936 jcov: {
937 server: "jpg",
938 product: "jcov",
939 version: "3.0",
940 build_number: "b07",
941 file: "bundles/jcov-3_0.zip",
942 },
943
944 gnumake: {
945 organization: common.organization,
946 ext: "tar.gz",
947 revision: "4.0+1.0",
948
949 module: (input.build_os == "windows"
950 ? "gnumake-" + input.build_osenv_platform
951 : "gnumake-" + input.build_platform),
952
953 configure_args: "MAKE=" + makeBinDir + "/make",
954
955 environment: {
956 "MAKE": makeBinDir + "/make"
957 },
958
959 environment_path: makeBinDir
960 },
961
|
743
744 // Profiles used to run tests.
745 var testOnlyProfiles = {
746 "run-test": {
747 target_os: input.build_os,
748 target_cpu: input.build_cpu,
749 dependencies: [ "jtreg", "gnumake", "boot_jdk", "devkit", "jib" ],
750 labels: "test",
751 environment: {
752 "JT_JAVA": common.boot_jdk_home
753 }
754 }
755 };
756 profiles = concatObjects(profiles, testOnlyProfiles);
757
758 // Profiles used to run tests using Jib for internal dependencies.
759 var testedProfile = input.testedProfile;
760 if (testedProfile == null) {
761 testedProfile = input.build_os + "-" + input.build_cpu;
762 }
763 var testedProfileJDK = testedProfile + ".jdk";
764 var testedProfileTest = ""
765 if (testedProfile.endsWith("-jcov")) {
766 testedProfileTest = testedProfile.substring(0, testedProfile.length - "-jcov".length) + ".test";
767 } else {
768 testedProfileTest = testedProfile + ".test";
769 }
770 var testOnlyProfilesPrebuilt = {
771 "run-test-prebuilt": {
772 target_os: input.build_os,
773 target_cpu: input.build_cpu,
774 dependencies: [
775 "jtreg", "gnumake", "boot_jdk", "devkit", "jib", "jcov", testedProfileJDK,
776 testedProfileTest
777 ],
778 src: "src.conf",
779 make_args: [ "run-test-prebuilt", "LOG_CMDLINES=true", "JTREG_VERBOSE=fail,error,time" ],
780 environment: {
781 "BOOT_JDK": common.boot_jdk_home,
782 "JDK_IMAGE_DIR": input.get(testedProfileJDK, "home_path"),
783 "TEST_IMAGE_DIR": input.get(testedProfileTest, "home_path")
784 },
785 labels: "test"
786 }
787 };
788
789 // If actually running the run-test-prebuilt profile, verify that the input
790 // variable is valid and if so, add the appropriate target_* values from
791 // the tested profile.
792 if (input.profile == "run-test-prebuilt") {
793 if (profiles[testedProfile] == null) {
794 error("testedProfile is not defined: " + testedProfile);
795 }
796 }
797 if (profiles[testedProfile] != null) {
798 testOnlyProfilesPrebuilt["run-test-prebuilt"]["target_os"]
799 = profiles[testedProfile]["target_os"];
800 testOnlyProfilesPrebuilt["run-test-prebuilt"]["target_cpu"]
801 = profiles[testedProfile]["target_cpu"];
802 }
803 profiles = concatObjects(profiles, testOnlyProfilesPrebuilt);
929 revision: "4.2",
930 build_number: "b13",
931 checksum_file: "MD5_VALUES",
932 file: "jtreg_bin-4.2.zip",
933 environment_name: "JT_HOME",
934 environment_path: input.get("jtreg", "install_path") + "/jtreg/bin"
935 },
936
937 jmh: {
938 organization: common.organization,
939 ext: "tar.gz",
940 revision: "1.21+1.0"
941 },
942
943 jcov: {
944 server: "jpg",
945 product: "jcov",
946 version: "3.0",
947 build_number: "b07",
948 file: "bundles/jcov-3_0.zip",
949 environment_name: "JCOV_HOME",
950 },
951
952 gnumake: {
953 organization: common.organization,
954 ext: "tar.gz",
955 revision: "4.0+1.0",
956
957 module: (input.build_os == "windows"
958 ? "gnumake-" + input.build_osenv_platform
959 : "gnumake-" + input.build_platform),
960
961 configure_args: "MAKE=" + makeBinDir + "/make",
962
963 environment: {
964 "MAKE": makeBinDir + "/make"
965 },
966
967 environment_path: makeBinDir
968 },
969
|