< prev index next >

test/vmTestbase/nsk/aod/VirtualMachine/VirtualMachine06/VirtualMachine06.java

Print this page




  21  * questions.
  22  */
  23 
  24 /*
  25  * @test
  26  *
  27  * @summary converted from VM Testbase nsk/aod/VirtualMachine/VirtualMachine06.
  28  * VM Testbase keywords: [feature_282, jdk]
  29  * VM Testbase readme:
  30  * Description :
  31  *     Test checks work of Attach API (com.sun.tools.attach).
  32  *     Test is based on the nsk.share.aod framework.
  33  *     This test checks methods VirtualMachine.loadAgent(String agent) and
  34  *     VirtualMachine.loadAgent(String agent, String options).
  35  *     Test checks following cases:
  36  *         - it is possible to pass options to agent using loadAgent(String agent, String options)
  37  *         - it is possible to specify null options (in this case null is passed to the agentmain)
  38  *         - if agent throws exception from 'agentmain' VirtualMachine.loadAgent throws AgentInitializationException
  39  *
  40  * @library /vmTestbase
  41  *          /testlibrary /test/hotspot/jtreg/vmTestbase
  42  *          /test/lib
  43  *
  44  * @run driver jdk.test.lib.FileInstaller . .
  45  *
  46  * @comment compile VM06Agent0[0-3].java to current directory
  47  * @build nsk.aod.VirtualMachine.VirtualMachine06.VM06Agent00
  48  *        nsk.aod.VirtualMachine.VirtualMachine06.VM06Agent01
  49  *        nsk.aod.VirtualMachine.VirtualMachine06.VM06Agent02
  50  *        nsk.aod.VirtualMachine.VirtualMachine06.VM06Agent03
  51  * @run driver ClassFileInstaller
  52  *      nsk.aod.VirtualMachine.VirtualMachine06.VM06Agent00
  53  *      nsk.aod.VirtualMachine.VirtualMachine06.VM06Agent01
  54  *      nsk.aod.VirtualMachine.VirtualMachine06.VM06Agent02
  55  *      nsk.aod.VirtualMachine.VirtualMachine06.VM06Agent03
  56  *
  57  * @comment create VM06Agent0[0-3].jar in current directory
  58  * @build ExecDriver
  59  * @run driver PropertyResolvingWrapper ExecDriver --cmd
  60  *      ${test.jdk}/bin/jar -cmf VM06Agent00.mf VM06Agent00.jar
  61  *      nsk/aod/VirtualMachine/VirtualMachine06/VM06Agent00.class




  21  * questions.
  22  */
  23 
  24 /*
  25  * @test
  26  *
  27  * @summary converted from VM Testbase nsk/aod/VirtualMachine/VirtualMachine06.
  28  * VM Testbase keywords: [feature_282, jdk]
  29  * VM Testbase readme:
  30  * Description :
  31  *     Test checks work of Attach API (com.sun.tools.attach).
  32  *     Test is based on the nsk.share.aod framework.
  33  *     This test checks methods VirtualMachine.loadAgent(String agent) and
  34  *     VirtualMachine.loadAgent(String agent, String options).
  35  *     Test checks following cases:
  36  *         - it is possible to pass options to agent using loadAgent(String agent, String options)
  37  *         - it is possible to specify null options (in this case null is passed to the agentmain)
  38  *         - if agent throws exception from 'agentmain' VirtualMachine.loadAgent throws AgentInitializationException
  39  *
  40  * @library /vmTestbase
  41  *          /testlibrary
  42  *          /test/lib
  43  *
  44  * @run driver jdk.test.lib.FileInstaller . .
  45  *
  46  * @comment compile VM06Agent0[0-3].java to current directory
  47  * @build nsk.aod.VirtualMachine.VirtualMachine06.VM06Agent00
  48  *        nsk.aod.VirtualMachine.VirtualMachine06.VM06Agent01
  49  *        nsk.aod.VirtualMachine.VirtualMachine06.VM06Agent02
  50  *        nsk.aod.VirtualMachine.VirtualMachine06.VM06Agent03
  51  * @run driver ClassFileInstaller
  52  *      nsk.aod.VirtualMachine.VirtualMachine06.VM06Agent00
  53  *      nsk.aod.VirtualMachine.VirtualMachine06.VM06Agent01
  54  *      nsk.aod.VirtualMachine.VirtualMachine06.VM06Agent02
  55  *      nsk.aod.VirtualMachine.VirtualMachine06.VM06Agent03
  56  *
  57  * @comment create VM06Agent0[0-3].jar in current directory
  58  * @build ExecDriver
  59  * @run driver PropertyResolvingWrapper ExecDriver --cmd
  60  *      ${test.jdk}/bin/jar -cmf VM06Agent00.mf VM06Agent00.jar
  61  *      nsk/aod/VirtualMachine/VirtualMachine06/VM06Agent00.class


< prev index next >