Skip to content

Commit

Permalink
fixes adoptium#92 enable jdkRepo
Browse files Browse the repository at this point in the history
  • Loading branch information
bhuva-v committed Oct 1, 2021
1 parent 1a5c2c3 commit e96ffb0
Show file tree
Hide file tree
Showing 3 changed files with 14 additions and 3 deletions.
7 changes: 5 additions & 2 deletions action.yml
Original file line number Diff line number Diff line change
Expand Up @@ -9,10 +9,10 @@ inputs:
description: 'testing jdk version (Required when jdksource is github-hosted or install-jdk.)'
required: false
build_list: # test category
description:
description:
default: 'openjdk'
target: # test
description:
description:
default: '_jdk_math'
custom_target: # Used if need to set non-default custom target
description:
Expand All @@ -26,6 +26,9 @@ inputs:
tkg_Repo:
description: 'Personal TKG Repo. For example, octocat/TKG:test'
required: false
jdk_Repo:
description: 'jdk Repo'
required: false
vendor_testRepos:
description: 'Comma-separated list of vendor repositories'
required: false
Expand Down
2 changes: 2 additions & 0 deletions src/aqa.ts
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,7 @@ async function run(): Promise<void> {
const aqatestsRepo = core.getInput('aqa-testsRepo', {required: false})
const openj9Repo = core.getInput('openj9_repo', {required: false})
const tkgRepo = core.getInput('tkg_Repo', {required: false})
const jdkRepo = core.getInput('jdk_Repo', {required: false});
const vendorTestRepos = core.getInput('vendor_testRepos', {required: false})
const vendorTestBranches = core.getInput('vendor_testBranches', {
required: false
Expand Down Expand Up @@ -67,6 +68,7 @@ async function run(): Promise<void> {
aqatestsRepo,
openj9Repo,
tkgRepo,
jdkRepo,
vendorTestParams
)
} catch (error) {
Expand Down
8 changes: 7 additions & 1 deletion src/runaqa.ts
Original file line number Diff line number Diff line change
Expand Up @@ -32,6 +32,7 @@ export async function runaqaTest(
aqatestsRepo: string,
openj9Repo: string,
tkgRepo: string,
jdkRepo: string,
vendorTestParams: string
): Promise<void> {
await installDependencyAndSetup()
Expand All @@ -41,7 +42,7 @@ export async function runaqaTest(
process.env.TEST_JDK_HOME = getTestJdkHome(version, jdksource)

await getAqaTestsRepo(aqatestsRepo)
await runGetSh(tkgRepo, openj9Repo, vendorTestParams)
await runGetSh(tkgRepo, jdkRepo, openj9Repo, vendorTestParams)

//Get Dependencies, using /*zip*/dependents.zip to avoid loop every available files
let dependents = await tc.downloadTool(
Expand Down Expand Up @@ -232,13 +233,18 @@ async function getAqaTestsRepo(aqatestsRepo: string): Promise<void> {
async function runGetSh(
tkgRepo: string,
openj9Repo: string,
jdkRepo: string,
vendorTestParams: string
): Promise<void> {
let parameters = ''
if (tkgRepo.length !== 0) {
const repoBranch = parseRepoBranch(tkgRepo)
parameters += `--tkg_branch ${repoBranch[1]} --tkg_repo https://github.com/${repoBranch[0]}.git`
}
if (jdkRepo && jdkRepo.length !== 0) {
const repoBranch = parseRepoBranch(jdkRepo);
parameters += ` --jdk_branch ${repoBranch[1]} --jdk_repo https://github.com/${repoBranch[0]}.git`;
}
if (openj9Repo.length !== 0) {
const repoBranch = parseRepoBranch(openj9Repo)
parameters += ` --openj9_branch ${repoBranch[1]} --openj9_repo https://github.com/${repoBranch[0]}.git`
Expand Down

0 comments on commit e96ffb0

Please sign in to comment.