Skip to content

Commit e1b5f3c

Browse files
committed
8343314: Move common properties from jpackage jtreg test declarations to TEST.properties file
Reviewed-by: mdoerr Backport-of: c33a8f52b613e5eff02f572eda876cbbfc7c22cf
1 parent 30eeb80 commit e1b5f3c

File tree

80 files changed

+165
-274
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

80 files changed

+165
-274
lines changed

test/jdk/tools/jpackage/TEST.properties

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -10,3 +10,6 @@ maxOutputSize=2000000
1010
# }
1111
# but conditionals are not supported by jtreg configuration files.
1212
exclusiveAccess.dirs=share windows
13+
14+
modules=jdk.jpackage/jdk.jpackage.internal:+open \
15+
java.base/jdk.internal.util

test/jdk/tools/jpackage/linux/AppAboutUrlTest.java

Lines changed: 3 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
/*
2-
* Copyright (c) 2021, Oracle and/or its affiliates. All rights reserved.
2+
* Copyright (c) 2021, 2024, Oracle and/or its affiliates. All rights reserved.
33
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
44
*
55
* This code is free software; you can redistribute it and/or modify it
@@ -44,27 +44,25 @@
4444
/*
4545
* @test
4646
* @summary jpackage with --about-url
47-
* @library ../helpers
47+
* @library /test/jdk/tools/jpackage/helpers
4848
* @key jpackagePlatformPackage
4949
* @build jdk.jpackage.test.*
5050
* @build AppAboutUrlTest
5151
* @requires (os.family == "linux")
5252
* @requires (jpackage.test.SQETest == null)
53-
* @modules jdk.jpackage/jdk.jpackage.internal
5453
* @run main/othervm/timeout=360 -Xmx512m jdk.jpackage.test.Main
5554
* --jpt-run=AppAboutUrlTest
5655
*/
5756

5857
/*
5958
* @test
6059
* @summary jpackage with --about-url
61-
* @library ../helpers
60+
* @library /test/jdk/tools/jpackage/helpers
6261
* @key jpackagePlatformPackage
6362
* @build jdk.jpackage.test.*
6463
* @build AppAboutUrlTest
6564
* @requires (os.family == "linux")
6665
* @requires (jpackage.test.SQETest != null)
67-
* @modules jdk.jpackage/jdk.jpackage.internal
6866
* @run main/othervm/timeout=360 -Xmx512m jdk.jpackage.test.Main
6967
* --jpt-run=AppAboutUrlTest.test
7068
*/

test/jdk/tools/jpackage/linux/AppCategoryTest.java

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
/*
2-
* Copyright (c) 2019, 2021, Oracle and/or its affiliates. All rights reserved.
2+
* Copyright (c) 2019, 2024, Oracle and/or its affiliates. All rights reserved.
33
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
44
*
55
* This code is free software; you can redistribute it and/or modify it
@@ -43,12 +43,11 @@
4343
/*
4444
* @test
4545
* @summary jpackage with --linux-app-category
46-
* @library ../helpers
46+
* @library /test/jdk/tools/jpackage/helpers
4747
* @key jpackagePlatformPackage
4848
* @build jdk.jpackage.test.*
4949
* @build AppCategoryTest
5050
* @requires (os.family == "linux")
51-
* @modules jdk.jpackage/jdk.jpackage.internal
5251
* @run main/othervm/timeout=360 -Xmx512m jdk.jpackage.test.Main
5352
* --jpt-run=AppCategoryTest
5453
*/

test/jdk/tools/jpackage/linux/LicenseTypeTest.java

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
/*
2-
* Copyright (c) 2018, 2021, Oracle and/or its affiliates. All rights reserved.
2+
* Copyright (c) 2018, 2024, Oracle and/or its affiliates. All rights reserved.
33
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
44
*
55
* This code is free software; you can redistribute it and/or modify it
@@ -38,12 +38,11 @@
3838
/*
3939
* @test
4040
* @summary jpackage with --linux-rpm-license-type
41-
* @library ../helpers
41+
* @library /test/jdk/tools/jpackage/helpers
4242
* @key jpackagePlatformPackage
4343
* @build jdk.jpackage.test.*
4444
* @build LicenseTypeTest
4545
* @requires (os.family == "linux")
46-
* @modules jdk.jpackage/jdk.jpackage.internal
4746
* @run main/othervm/timeout=360 -Xmx512m jdk.jpackage.test.Main
4847
* --jpt-run=LicenseTypeTest
4948
*/

test/jdk/tools/jpackage/linux/LinuxBundleNameTest.java

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
/*
2-
* Copyright (c) 2019, 2021, Oracle and/or its affiliates. All rights reserved.
2+
* Copyright (c) 2019, 2024, Oracle and/or its affiliates. All rights reserved.
33
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
44
*
55
* This code is free software; you can redistribute it and/or modify it
@@ -43,12 +43,11 @@
4343
/*
4444
* @test
4545
* @summary jpackage with --linux-package-name
46-
* @library ../helpers
46+
* @library /test/jdk/tools/jpackage/helpers
4747
* @key jpackagePlatformPackage
4848
* @build jdk.jpackage.test.*
4949
* @build LinuxBundleNameTest
5050
* @requires (os.family == "linux")
51-
* @modules jdk.jpackage/jdk.jpackage.internal
5251
* @run main/othervm/timeout=360 -Xmx512m jdk.jpackage.test.Main
5352
* --jpt-run=LinuxBundleNameTest
5453
*/

test/jdk/tools/jpackage/linux/LinuxResourceTest.java

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
/*
2-
* Copyright (c) 2019, 2020, Oracle and/or its affiliates. All rights reserved.
2+
* Copyright (c) 2019, 2024, Oracle and/or its affiliates. All rights reserved.
33
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
44
*
55
* This code is free software; you can redistribute it and/or modify it
@@ -33,10 +33,9 @@
3333
/*
3434
* @test
3535
* @summary jpackage with --resource-dir
36-
* @library ../helpers
36+
* @library /test/jdk/tools/jpackage/helpers
3737
* @build jdk.jpackage.test.*
3838
* @requires (os.family == "linux")
39-
* @modules jdk.jpackage/jdk.jpackage.internal
4039
* @compile LinuxResourceTest.java
4140
* @run main/othervm/timeout=360 -Xmx512m jdk.jpackage.test.Main
4241
* --jpt-run=LinuxResourceTest

test/jdk/tools/jpackage/linux/LinuxWeirdOutputDirTest.java

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
/*
2-
* Copyright (c) 2021, Oracle and/or its affiliates. All rights reserved.
2+
* Copyright (c) 2021, 2024, Oracle and/or its affiliates. All rights reserved.
33
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
44
*
55
* This code is free software; you can redistribute it and/or modify it
@@ -30,9 +30,8 @@
3030
* @summary jpackage with values of --dest parameter breaking jpackage launcher
3131
* @requires (os.family == "linux")
3232
* @bug 8268974
33-
* @library ../helpers
33+
* @library /test/jdk/tools/jpackage/helpers
3434
* @build jdk.jpackage.test.*
35-
* @modules jdk.jpackage/jdk.jpackage.internal
3635
* @compile LinuxWeirdOutputDirTest.java
3736
* @run main/othervm/timeout=540 -Xmx512m jdk.jpackage.test.Main
3837
* --jpt-run=LinuxWeirdOutputDirTest

test/jdk/tools/jpackage/linux/MaintainerTest.java

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
/*
2-
* Copyright (c) 2018, 2021, Oracle and/or its affiliates. All rights reserved.
2+
* Copyright (c) 2018, 2024, Oracle and/or its affiliates. All rights reserved.
33
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
44
*
55
* This code is free software; you can redistribute it and/or modify it
@@ -39,12 +39,11 @@
3939
/*
4040
* @test
4141
* @summary jpackage with --linux-deb-maintainer
42-
* @library ../helpers
42+
* @library /test/jdk/tools/jpackage/helpers
4343
* @key jpackagePlatformPackage
4444
* @build jdk.jpackage.test.*
4545
* @build MaintainerTest
4646
* @requires (os.family == "linux")
47-
* @modules jdk.jpackage/jdk.jpackage.internal
4847
* @run main/othervm/timeout=360 -Xmx512m jdk.jpackage.test.Main
4948
* --jpt-run=MaintainerTest
5049
*/

test/jdk/tools/jpackage/linux/PackageDepsTest.java

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
/*
2-
* Copyright (c) 2018, 2019, Oracle and/or its affiliates. All rights reserved.
2+
* Copyright (c) 2018, 2024, Oracle and/or its affiliates. All rights reserved.
33
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
44
*
55
* This code is free software; you can redistribute it and/or modify it
@@ -46,11 +46,10 @@
4646
/*
4747
* @test
4848
* @summary jpackage with --linux-package-deps
49-
* @library ../helpers
49+
* @library /test/jdk/tools/jpackage/helpers
5050
* @key jpackagePlatformPackage
5151
* @build jdk.jpackage.test.*
5252
* @requires (os.family == "linux")
53-
* @modules jdk.jpackage/jdk.jpackage.internal
5453
* @compile PackageDepsTest.java
5554
* @run main/othervm/timeout=360 -Xmx512m jdk.jpackage.test.Main
5655
* --jpt-run=PackageDepsTest

test/jdk/tools/jpackage/linux/ReleaseTest.java

Lines changed: 3 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
/*
2-
* Copyright (c) 2019, 2021, Oracle and/or its affiliates. All rights reserved.
2+
* Copyright (c) 2019, 2024, Oracle and/or its affiliates. All rights reserved.
33
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
44
*
55
* This code is free software; you can redistribute it and/or modify it
@@ -43,27 +43,25 @@
4343
/*
4444
* @test
4545
* @summary jpackage with --linux-app-release
46-
* @library ../helpers
46+
* @library /test/jdk/tools/jpackage/helpers
4747
* @key jpackagePlatformPackage
4848
* @build jdk.jpackage.test.*
4949
* @build ReleaseTest
5050
* @requires (os.family == "linux")
5151
* @requires (jpackage.test.SQETest == null)
52-
* @modules jdk.jpackage/jdk.jpackage.internal
5352
* @run main/othervm/timeout=360 -Xmx512m jdk.jpackage.test.Main
5453
* --jpt-run=ReleaseTest
5554
*/
5655

5756
/*
5857
* @test
5958
* @summary jpackage with --linux-app-release
60-
* @library ../helpers
59+
* @library /test/jdk/tools/jpackage/helpers
6160
* @key jpackagePlatformPackage
6261
* @build jdk.jpackage.test.*
6362
* @build ReleaseTest
6463
* @requires (os.family == "linux")
6564
* @requires (jpackage.test.SQETest != null)
66-
* @modules jdk.jpackage/jdk.jpackage.internal
6765
* @run main/othervm/timeout=360 -Xmx512m jdk.jpackage.test.Main
6866
* --jpt-run=ReleaseTest.test
6967
*/

test/jdk/tools/jpackage/linux/ShortcutHintTest.java

Lines changed: 3 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
/*
2-
* Copyright (c) 2019, 2020, Oracle and/or its affiliates. All rights reserved.
2+
* Copyright (c) 2019, 2024, Oracle and/or its affiliates. All rights reserved.
33
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
44
*
55
* This code is free software; you can redistribute it and/or modify it
@@ -53,12 +53,11 @@
5353
/*
5454
* @test
5555
* @summary jpackage with --linux-shortcut
56-
* @library ../helpers
56+
* @library /test/jdk/tools/jpackage/helpers
5757
* @key jpackagePlatformPackage
5858
* @requires jpackage.test.SQETest == null
5959
* @build jdk.jpackage.test.*
6060
* @requires (os.family == "linux")
61-
* @modules jdk.jpackage/jdk.jpackage.internal
6261
* @compile ShortcutHintTest.java
6362
* @run main/othervm/timeout=360 -Xmx512m jdk.jpackage.test.Main
6463
* --jpt-run=ShortcutHintTest
@@ -67,12 +66,11 @@
6766
/*
6867
* @test
6968
* @summary jpackage with --linux-shortcut
70-
* @library ../helpers
69+
* @library /test/jdk/tools/jpackage/helpers
7170
* @key jpackagePlatformPackage
7271
* @build jdk.jpackage.test.*
7372
* @requires (os.family == "linux")
7473
* @requires jpackage.test.SQETest != null
75-
* @modules jdk.jpackage/jdk.jpackage.internal
7674
* @compile ShortcutHintTest.java
7775
* @run main/othervm/timeout=360 -Xmx512m jdk.jpackage.test.Main
7876
* --jpt-run=ShortcutHintTest.testBasic

test/jdk/tools/jpackage/linux/jdk/jpackage/tests/UsrTreeTest.java

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
/*
2-
* Copyright (c) 2020, Oracle and/or its affiliates. All rights reserved.
2+
* Copyright (c) 2020, 2024, Oracle and/or its affiliates. All rights reserved.
33
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
44
*
55
* This code is free software; you can redistribute it and/or modify it
@@ -40,12 +40,11 @@
4040
/*
4141
* @test
4242
* @summary jpackage command run installing app in /usr directory tree
43-
* @library ../../../../helpers
43+
* @library /test/jdk/tools/jpackage/helpers
4444
* @key jpackagePlatformPackage
4545
* @requires jpackage.test.SQETest == null
4646
* @requires (os.family == "linux")
4747
* @build jdk.jpackage.test.*
48-
* @modules jdk.jpackage/jdk.jpackage.internal
4948
* @compile UsrTreeTest.java
5049
* @run main/othervm/timeout=720 -Xmx512m jdk.jpackage.test.Main
5150
* --jpt-run=UsrTreeTest

test/jdk/tools/jpackage/macosx/ArgumentsFilteringTest.java

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -39,9 +39,8 @@
3939
/*
4040
* @test
4141
* @summary jpackage with -psn
42-
* @library ../helpers
42+
* @library /test/jdk/tools/jpackage/helpers
4343
* @build jdk.jpackage.test.*
44-
* @modules jdk.jpackage/jdk.jpackage.internal
4544
* @compile ArgumentsFilteringTest.java
4645
* @requires (os.family == "mac")
4746
* @run main/othervm/timeout=540 -Xmx512m jdk.jpackage.test.Main

test/jdk/tools/jpackage/macosx/DmgContentTest.java

Lines changed: 2 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
/*
2-
* Copyright (c) 2019, 2021, Oracle and/or its affiliates. All rights reserved.
2+
* Copyright (c) 2019, 2024, Oracle and/or its affiliates. All rights reserved.
33
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
44
*
55
* This code is free software; you can redistribute it and/or modify it
@@ -25,28 +25,22 @@
2525
import jdk.jpackage.test.JPackageCommand;
2626
import jdk.jpackage.test.PackageTest;
2727
import jdk.jpackage.test.PackageType;
28-
import jdk.jpackage.test.MacHelper;
2928
import jdk.jpackage.test.TKit;
3029

31-
import jdk.jpackage.test.Annotations.Parameter;
3230
import jdk.jpackage.test.Annotations.Parameters;
3331
import jdk.jpackage.test.Annotations.Test;
3432

3533
import java.util.Collection;
36-
import java.util.Arrays;
3734
import java.util.ArrayList;
3835
import java.util.List;
3936

4037
/*
4138
* @test
4239
* @summary jpackage with --type dmg --mac-dmg-content
43-
* @library ../helpers
44-
* @library /test/lib
45-
* @library base
40+
* @library /test/jdk/tools/jpackage/helpers
4641
* @key jpackagePlatformPackage
4742
* @build jdk.jpackage.test.*
4843
* @build DmgContentTest
49-
* @modules jdk.jpackage/jdk.jpackage.internal
5044
* @requires (os.family == "mac")
5145
* @run main/othervm/timeout=360 -Xmx512m jdk.jpackage.test.Main
5246
* --jpt-run=DmgContentTest

test/jdk/tools/jpackage/macosx/HostArchPkgTest.java

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
/*
2-
* Copyright (c) 2021, Oracle and/or its affiliates. All rights reserved.
2+
* Copyright (c) 2021, 2024, Oracle and/or its affiliates. All rights reserved.
33
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
44
*
55
* This code is free software; you can redistribute it and/or modify it
@@ -42,9 +42,8 @@
4242
/*
4343
* @test
4444
* @summary jpackage test to validate "hostArchitectures" attribute
45-
* @library ../helpers
45+
* @library /test/jdk/tools/jpackage/helpers
4646
* @build jdk.jpackage.test.*
47-
* @modules jdk.jpackage/jdk.jpackage.internal
4847
* @compile HostArchPkgTest.java
4948
* @requires (os.family == "mac")
5049
* @key jpackagePlatformPackage

test/jdk/tools/jpackage/macosx/MacAppStoreJlinkOptionsTest.java

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
/*
2-
* Copyright (c) 2022, 2023, Oracle and/or its affiliates. All rights reserved.
2+
* Copyright (c) 2022, 2024, Oracle and/or its affiliates. All rights reserved.
33
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
44
*
55
* This code is free software; you can redistribute it and/or modify it
@@ -33,11 +33,9 @@
3333
/*
3434
* @test
3535
* @summary jpackage with --mac-app-store and --jlink-options
36-
* @library ../helpers
37-
* @library /test/lib
36+
* @library /test/jdk/tools/jpackage/helpers
3837
* @build jdk.jpackage.test.*
3938
* @build MacAppStoreJLinkOptionsTest
40-
* @modules jdk.jpackage/jdk.jpackage.internal
4139
* @requires (os.family == "mac")
4240
* @run main/othervm/timeout=540 -Xmx512m jdk.jpackage.test.Main
4341
* --jpt-run=MacAppStoreJLinkOptionsTest

test/jdk/tools/jpackage/macosx/MacAppStoreRuntimeTest.java

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
/*
2-
* Copyright (c) 2022, Oracle and/or its affiliates. All rights reserved.
2+
* Copyright (c) 2022, 2024, Oracle and/or its affiliates. All rights reserved.
33
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
44
*
55
* This code is free software; you can redistribute it and/or modify it
@@ -43,11 +43,9 @@
4343
/*
4444
* @test
4545
* @summary jpackage with --mac-app-store and --runtime-image
46-
* @library ../helpers
47-
* @library /test/lib
46+
* @library /test/jdk/tools/jpackage/helpers
4847
* @build jdk.jpackage.test.*
4948
* @build MacAppStoreRuntimeTest
50-
* @modules jdk.jpackage/jdk.jpackage.internal
5149
* @requires (os.family == "mac")
5250
* @run main/othervm -Xmx512m jdk.jpackage.test.Main
5351
* --jpt-run=MacAppStoreRuntimeTest

0 commit comments

Comments
 (0)