Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Test openjdk changes with workflow #1

Closed
wants to merge 48 commits into from
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
48 commits
Select commit Hold shift + click to select a range
9f3728a
Test openjdk changes with workflow
sophia-guo Jan 27, 2020
dd131d2
test
sophia-guo Jan 27, 2020
ceae80a
Merge branch 'master' of git@github.com:sophia-guo/openjdk-tests.git …
sophia-guo Jan 27, 2020
e52d306
udpate main.yml
sophia-guo Jan 27, 2020
0e8d964
udpate main.yml
sophia-guo Jan 27, 2020
9a5232a
udpate main.yml
sophia-guo Jan 27, 2020
f302dd4
udpate main.yml
sophia-guo Jan 28, 2020
1262fa1
udpate main.yml
sophia-guo Jan 28, 2020
33581d0
udpate main.yml
sophia-guo Jan 28, 2020
b35940d
udpate main.yml
sophia-guo Jan 28, 2020
25e1a00
udpate main.yml
sophia-guo Jan 28, 2020
737bfb9
udpate main.yml
sophia-guo Jan 28, 2020
c635bec
add fast-test.sh
sophia-guo Jan 28, 2020
dfd4f20
udpate main.yml
sophia-guo Jan 28, 2020
93298e2
udpate main.yml
sophia-guo Jan 28, 2020
062e0e0
udpate main.yml
sophia-guo Jan 28, 2020
0a6ed4a
udpate main.yml
sophia-guo Jan 28, 2020
f780903
udpate main.yml
sophia-guo Jan 28, 2020
7720992
udpate fast-test.sh
sophia-guo Jan 28, 2020
bebca05
udpate fast-test.sh
sophia-guo Jan 28, 2020
6826537
udpate fast-test.sh
sophia-guo Jan 28, 2020
7d16dd3
udpate fast-test.sh
sophia-guo Jan 28, 2020
b2e7ef4
udpate fast-test.sh
sophia-guo Jan 28, 2020
2041029
udpate fast-test.sh
sophia-guo Jan 28, 2020
5d95b19
udpate main.yml
sophia-guo Jan 28, 2020
1bebcb3
udpate main.yml
sophia-guo Jan 28, 2020
1f0f616
udpate main.yml
sophia-guo Jan 28, 2020
e8c2894
fast-test.sh
sophia-guo Jan 28, 2020
2f85a13
main.yml
sophia-guo Jan 28, 2020
9588845
main.yml
sophia-guo Jan 28, 2020
c66c93e
update fast-test.sh
sophia-guo Jan 29, 2020
6605ef0
update fast-test.sh
sophia-guo Jan 29, 2020
462c24e
update fast-test.sh
sophia-guo Jan 29, 2020
4e45563
update fast-test.sh
sophia-guo Jan 29, 2020
a0525dc
update fast-test.sh
sophia-guo Jan 29, 2020
7c93e76
update fast-test.sh
sophia-guo Jan 29, 2020
db67af6
update fast-test.sh
sophia-guo Jan 29, 2020
7119c9d
update fast-test.sh
sophia-guo Jan 29, 2020
dd94c78
update fast-test.sh
sophia-guo Jan 29, 2020
ddd12b7
update
sophia-guo Jan 29, 2020
48029e0
update
sophia-guo Jan 29, 2020
0b87a22
update
sophia-guo Jan 29, 2020
4ed5947
update
sophia-guo Jan 29, 2020
1aeac11
update
sophia-guo Jan 29, 2020
34aed01
update
sophia-guo Jan 29, 2020
eaae143
update
sophia-guo Jan 29, 2020
f08c175
update
sophia-guo Jan 29, 2020
4f97b7c
update
sophia-guo Jan 29, 2020
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
34 changes: 34 additions & 0 deletions .github/fast-tests.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,34 @@
#!/usr/bin/env bash
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# https://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing, software
# distributed under the License is distributed on an "AS IS" BASIS,
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
# See the License for the specific language governing permissions and
# limitations under the License.

getTestKitGen()
{
echo "get testKitGen..."
git clone https://github.com/AdoptOpenJDK/TKG.git
}

runtest()
{
cd TKG
make compile
make _jdk_custom
}

pwd
printenv
getTestKitGen
echo $JAVA_HOME
export BUILD_LIST=openjdk
export TEST_JDK_HOME=$JAVA_HOME
runtest
16 changes: 0 additions & 16 deletions .github/workflows/labeler.yml

This file was deleted.

32 changes: 17 additions & 15 deletions .github/workflows/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -9,24 +9,26 @@ jobs:
runs-on: ubuntu-latest

steps:
- name: Add lable
uses: actions/labeler@v2
- name: Check out
uses: actions/checkout@v1
- name: Environment setup
run: sudo apt-get update && sudo apt-get -y install ant ant-contrib autoconf bash apt-transport-https ca-certificates dirmngr git make zip wget
- name: GetJDK
uses: TheMrMilchmann/install-jdk@v1
with:
version: '8'
architecture: x64
- name: get TKG
run: git clone https://github.com/AdoptOpenJDK/TKG.git
- name: Build test
run: make compile
env:
BUILD_SCRIPT: apt-get update && apt-get -y install ant ant-contrib autoconf bash apt-transport-https ca-certificates dirmngr git make zip wget
working-directory: ./openjdk-tests
run: ./get.sh -t ./openjdk-tests
- name: Setup variable
env:
TEST_JDK_HOME: ${{ env.JAVA_HOME }}
BUILD_LIST: openjdk
TEST_JDK_HOME:

run: cd TKG

- name: compile
run: make compile
- name: test
working-directory: ./TKG
- name: run test
run: make _jdk_custom
echo test, and deploy your project.
env:
TEST_JDK_HOME: ${{ env.JAVA_HOME}}
BUILD_LIST: openjdk
working-directory: ./TKG
11 changes: 11 additions & 0 deletions openjdk/.project
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
<?xml version="1.0" encoding="UTF-8"?>
<projectDescription>
<name>openjdk</name>
<comment></comment>
<projects>
</projects>
<buildSpec>
</buildSpec>
<natures>
</natures>
</projectDescription>
2 changes: 1 addition & 1 deletion openjdk/openjdk.mk
Original file line number Diff line number Diff line change
Expand Up @@ -94,7 +94,7 @@ ifneq (,$(findstring $(JDK_VERSION),8-9))
JTREG_JDK_TEST_DIR := $(OPENJDK_DIR)$(D)jdk$(D)test
JTREG_HOTSPOT_TEST_DIR := $(OPENJDK_DIR)$(D)hotspot$(D)test
JTREG_LANGTOOLS_TEST_DIR := $(OPENJDK_DIR)$(D)langtools$(D)test
JDK_CUSTOM_TARGET ?= jdk/test/java/math/BigInteger/BigIntegerTest.java
JDK_CUSTOM_TARGET ?= jdk/test/java/math/BigInteger/TestValueExact.java
else
JTREG_JDK_TEST_DIR := $(OPENJDK_DIR)$(D)test$(D)jdk
JTREG_HOTSPOT_TEST_DIR := $(OPENJDK_DIR)$(D)test$(D)hotspot$(D)jtreg
Expand Down