test/jdk/tools/jpackage/linux/BundleNameTest.java
branchJDK-8200758-branch
changeset 58115 4a27283b542d
parent 58113 885b0543f6e4
child 58301 e0efb29609bd
equal deleted inserted replaced
58114:42df7de58e39 58115:4a27283b542d
    24 import jdk.jpackage.test.PackageTest;
    24 import jdk.jpackage.test.PackageTest;
    25 import jdk.jpackage.test.PackageType;
    25 import jdk.jpackage.test.PackageType;
    26 
    26 
    27 
    27 
    28 /**
    28 /**
    29  * Test --linux-bundle-name parameter. Output of the test should be
    29  * Test --linux-package-name parameter. Output of the test should be
    30  * quickbrownfox2_1.0-1_amd64.deb or quickbrownfox2-1.0-1.amd64.rpm package
    30  * quickbrownfox2_1.0-1_amd64.deb or quickbrownfox2-1.0-1.amd64.rpm package
    31  * bundle. The output package should provide the same functionality as the
    31  * bundle. The output package should provide the same functionality as the
    32  * default package.
    32  * default package.
    33  *
    33  *
    34  * deb:
    34  * deb:
    39  */
    39  */
    40 
    40 
    41 
    41 
    42 /*
    42 /*
    43  * @test
    43  * @test
    44  * @summary jpackage with --linux-bundle-name
    44  * @summary jpackage with --linux-package-name
    45  * @library ../helpers
    45  * @library ../helpers
    46  * @requires (os.family == "linux")
    46  * @requires (os.family == "linux")
    47  * @modules jdk.jpackage/jdk.jpackage.internal
    47  * @modules jdk.jpackage/jdk.jpackage.internal
    48  * @run main/othervm/timeout=360 -Xmx512m BundleNameTest
    48  * @run main/othervm/timeout=360 -Xmx512m BundleNameTest
    49  */
    49  */
    54 
    54 
    55         new PackageTest()
    55         new PackageTest()
    56         .forTypes(PackageType.LINUX)
    56         .forTypes(PackageType.LINUX)
    57         .configureHelloApp()
    57         .configureHelloApp()
    58         .addInitializer(cmd -> {
    58         .addInitializer(cmd -> {
    59             cmd.addArguments("--linux-bundle-name", PACKAGE_NAME);
    59             cmd.addArguments("--linux-package-name", PACKAGE_NAME);
    60         })
    60         })
    61         .forTypes(PackageType.LINUX_DEB)
    61         .forTypes(PackageType.LINUX_DEB)
    62         .addBundlePropertyVerifier("Package", PACKAGE_NAME)
    62         .addBundlePropertyVerifier("Package", PACKAGE_NAME)
    63         .forTypes(PackageType.LINUX_RPM)
    63         .forTypes(PackageType.LINUX_RPM)
    64         .addBundlePropertyVerifier("Name", PACKAGE_NAME)
    64         .addBundlePropertyVerifier("Name", PACKAGE_NAME)