< prev index next >

test/compiler/compilercontrol/share/processors/LogProcessor.java

Print this page
rev 11557 : 8132919: use package in compiler tests
Reviewed-by: duke


   8  *
   9  * This code is distributed in the hope that it will be useful, but WITHOUT
  10  * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
  11  * FITNESS FOR A PARTICULAR PURPOSE.  See the GNU General Public License
  12  * version 2 for more details (a copy is included in the LICENSE file that
  13  * accompanied this code).
  14  *
  15  * You should have received a copy of the GNU General Public License version
  16  * 2 along with this work; if not, write to the Free Software Foundation,
  17  * Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA.
  18  *
  19  * Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA
  20  * or visit www.oracle.com if you need additional information or have any
  21  * questions.
  22  */
  23 
  24 package compiler.compilercontrol.share.processors;
  25 
  26 import compiler.compilercontrol.share.method.MethodDescriptor;
  27 import compiler.compilercontrol.share.method.MethodGenerator;

  28 import compiler.compilercontrol.share.scenario.State;
  29 import jdk.test.lib.Asserts;
  30 import jdk.test.lib.OutputAnalyzer;
  31 import pool.PoolHelper;
  32 
  33 import java.io.File;
  34 import java.io.FileNotFoundException;
  35 import java.lang.reflect.Executable;
  36 import java.util.List;
  37 import java.util.Map;
  38 import java.util.Scanner;
  39 import java.util.function.Consumer;
  40 import java.util.regex.Matcher;
  41 import java.util.regex.Pattern;
  42 import java.util.stream.Collectors;
  43 
  44 /**
  45  * Log compilation file processor
  46  */
  47 public class LogProcessor implements Consumer<OutputAnalyzer> {
  48     public static final String LOG_FILE = "compilation.log";
  49     private static final String TASK_ELEMENT = "<task [^>]*>";
  50     private static final String TASK_DONE_ELEMENT = "<task_done [^>]*>";
  51     private static final String TASK_END_ELEMENT = "</task>";




   8  *
   9  * This code is distributed in the hope that it will be useful, but WITHOUT
  10  * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
  11  * FITNESS FOR A PARTICULAR PURPOSE.  See the GNU General Public License
  12  * version 2 for more details (a copy is included in the LICENSE file that
  13  * accompanied this code).
  14  *
  15  * You should have received a copy of the GNU General Public License version
  16  * 2 along with this work; if not, write to the Free Software Foundation,
  17  * Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA.
  18  *
  19  * Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA
  20  * or visit www.oracle.com if you need additional information or have any
  21  * questions.
  22  */
  23 
  24 package compiler.compilercontrol.share.processors;
  25 
  26 import compiler.compilercontrol.share.method.MethodDescriptor;
  27 import compiler.compilercontrol.share.method.MethodGenerator;
  28 import compiler.compilercontrol.share.pool.PoolHelper;
  29 import compiler.compilercontrol.share.scenario.State;
  30 import jdk.test.lib.Asserts;
  31 import jdk.test.lib.OutputAnalyzer;

  32 
  33 import java.io.File;
  34 import java.io.FileNotFoundException;
  35 import java.lang.reflect.Executable;
  36 import java.util.List;
  37 import java.util.Map;
  38 import java.util.Scanner;
  39 import java.util.function.Consumer;
  40 import java.util.regex.Matcher;
  41 import java.util.regex.Pattern;
  42 import java.util.stream.Collectors;
  43 
  44 /**
  45  * Log compilation file processor
  46  */
  47 public class LogProcessor implements Consumer<OutputAnalyzer> {
  48     public static final String LOG_FILE = "compilation.log";
  49     private static final String TASK_ELEMENT = "<task [^>]*>";
  50     private static final String TASK_DONE_ELEMENT = "<task_done [^>]*>";
  51     private static final String TASK_END_ELEMENT = "</task>";


< prev index next >