xref: /aosp_15_r20/external/jacoco/jacoco-maven-plugin.test/it/it-merge-passes/verify.bsh (revision 7e63c1270baf9bfa84f5b6aecf17bd0c1a75af94)
1/*******************************************************************************
2 * Copyright (c) 2009, 2021 Mountainminds GmbH & Co. KG and Contributors
3 * This program and the accompanying materials are made available under
4 * the terms of the Eclipse Public License 2.0 which is available at
5 * http://www.eclipse.org/legal/epl-2.0
6 *
7 * SPDX-License-Identifier: EPL-2.0
8 *
9 * Contributors:
10 *    Mads Mohr Christensen - implementation of MergeMojo
11 *
12 *******************************************************************************/
13 import java.io.*;
14 import org.codehaus.plexus.util.*;
15
16 String buildLog = FileUtils.fileRead( new File( basedir, "build.log" ) );
17 if ( buildLog.indexOf( "Loading execution data file" ) < 0 ) {
18     throw new RuntimeException( "Could not load execution data file" );
19 }
20 if ( buildLog.indexOf( "Writing merged execution data to" ) < 0 ) {
21     throw new RuntimeException( "Could not write merged execution data" );
22 }
23