test/compiler/compilercontrol/share/MultiCommand.java
Index Unified diffs Context diffs Sdiffs Patch New Old Previous File Next File hotspot Sdiff test/compiler/compilercontrol/share

test/compiler/compilercontrol/share/MultiCommand.java

Print this page
rev 10452 : 8140405: CompilerControl: Compiler.clear_directives doesn't clears the exclude state
Summary: Make directive excludes temporary
Reviewed-by:
rev 10454 : 8150054: Make compilercontrol test ignore xcomp
Summary: Add -Xmixed and use jtreg driver
Reviewed-by:


  55             if (validOnly && cmd == Command.NONEXISTENT) {
  56                 // skip invalid command
  57                 continue;
  58             }
  59             Executable exec = Utils.getRandomElement(METHODS).first;
  60             MethodDescriptor md;
  61             if (validOnly) {
  62                 md = AbstractTestBase.getValidMethodDescriptor(exec);
  63             } else {
  64                 md = AbstractTestBase.METHOD_GEN.generateRandomDescriptor(exec);
  65             }
  66             CompileCommand cc = cmdGen.generateCompileCommand(cmd, md, null);
  67             testCases.add(cc);
  68         }
  69         return new MultiCommand(testCases);
  70     }
  71 
  72     @Override
  73     public void test() {
  74         Scenario.Builder builder = Scenario.getBuilder();
  75         builder.addFlag("-Xmixed");
  76         for (CompileCommand cc : testCases) {
  77             cc.print();
  78             builder.add(cc);
  79         }
  80         Scenario scenario = builder.build();
  81         scenario.execute();
  82     }
  83 }


  55             if (validOnly && cmd == Command.NONEXISTENT) {
  56                 // skip invalid command
  57                 continue;
  58             }
  59             Executable exec = Utils.getRandomElement(METHODS).first;
  60             MethodDescriptor md;
  61             if (validOnly) {
  62                 md = AbstractTestBase.getValidMethodDescriptor(exec);
  63             } else {
  64                 md = AbstractTestBase.METHOD_GEN.generateRandomDescriptor(exec);
  65             }
  66             CompileCommand cc = cmdGen.generateCompileCommand(cmd, md, null);
  67             testCases.add(cc);
  68         }
  69         return new MultiCommand(testCases);
  70     }
  71 
  72     @Override
  73     public void test() {
  74         Scenario.Builder builder = Scenario.getBuilder();

  75         for (CompileCommand cc : testCases) {
  76             cc.print();
  77             builder.add(cc);
  78         }
  79         Scenario scenario = builder.build();
  80         scenario.execute();
  81     }
  82 }
test/compiler/compilercontrol/share/MultiCommand.java
Index Unified diffs Context diffs Sdiffs Patch New Old Previous File Next File