@Override
  public void beforeClass() throws Exception {
    MiniClusterType miniMR = cliConfig.getClusterType();
    String hiveConfDir = cliConfig.getHiveConfDir();
    String initScript = cliConfig.getInitScript();
    String cleanupScript = cliConfig.getCleanupScript();

    qt = new QTestUtil(QTestArguments.QTestArgumentsBuilder.instance().withOutDir(cliConfig.getResultsDir())
        .withLogDir(cliConfig.getLogDir()).withClusterType(miniMR).withConfDir(hiveConfDir).withInitScript(initScript)
        .withCleanupScript(cleanupScript).withLlapIo(false).build());
  }
CliDriver for integrating performance regression tests as part of the Hive Unit tests.

Typically it is meant to be combined with configurations providing an initialised metastore and read-only queries.
itests/util/src/main/java/org/apache/hadoop/hive/cli/control/CorePerfCliDriver.java