public String getDataDir(HiveConf conf) {
    String dataDir = conf.get("test.data.files");
    // Use the current directory if it is not specified
    if (dataDir == null) {
      dataDir = new File(".").getAbsolutePath() + "/data/files";
    }

    return dataDir;
  }
Datasets are provided by this handler.

An invocation of:

<pre>
--! qt:dataset:sample
--! qt:dataset:sample:ONLY
</pre>

will make sure that the dataset named sample is loaded prior to executing the test.
itests/util/src/main/java/org/apache/hadoop/hive/ql/dataset/QTestDatasetHandler.java