| <?xml version="1.0"?> |
| |
| <!-- |
| Licensed to the Apache Software Foundation (ASF) under one or more |
| contributor license agreements. See the NOTICE file distributed with |
| this work for additional information regarding copyright ownership. |
| The ASF licenses this file to You under the Apache License, Version 2.0 |
| (the "License"); you may not use this file except in compliance with |
| the License. You may obtain a copy of the License at |
| |
| http://www.apache.org/licenses/LICENSE-2.0 |
| |
| Unless required by applicable law or agreed to in writing, software |
| distributed under the License is distributed on an "AS IS" BASIS, |
| WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. |
| See the License for the specific language governing permissions and |
| limitations under the License. |
| --> |
| |
| |
| <project name="hbase-handler" default="jar"> |
| |
| <property name="hbase-handler.lib.dir" value="${basedir}/lib"/> |
| <property name="src.dir" location="${basedir}/src/java"/> |
| <property name="hbase-handler.test.query.dir" location="${basedir}/src/test/queries"/> |
| <property name="ql.test.template.dir" location="${basedir}/../ql/src/test/templates"/> |
| <property name="ql.hbase.test.template.dir" location="${basedir}/src/test/templates"/> |
| <property name="hbase-handler.test.results.dir" location="${basedir}/src/test/results"/> |
| |
| <import file="../build-common.xml"/> |
| |
| <target name="test-jar" depends="compile-test, jar"> |
| <echo message="Project: ${ant.project.name}"/> |
| <delete file="${test.build.dir}/test-udfs.jar"/> |
| <jar jarfile="${test.build.dir}/test-udfs.jar"> |
| <fileset dir="${test.build.classes}" includes="**/udf/*.class"/> |
| <fileset dir="${test.build.classes}" includes="**/udf/generic/*.class"/> |
| </jar> |
| </target> |
| |
| <target name="gen-test" depends="test-conditions, test-init" > |
| <echo message="Project: ${ant.project.name}"/> |
| <taskdef name="qtestgen" classname="org.apache.hadoop.hive.ant.QTestGenTask" |
| classpath="${build.dir.hive}/anttasks/hive-anttasks-${version}.jar:${build.ivy.lib.dir}/default/velocity-${velocity.version}.jar:${build.ivy.lib.dir}/default/commons-collections-${commons-collections.version}.jar:${build.ivy.lib.dir}/default/commons-lang-${commons-lang.version}.jar"/> |
| |
| <mkdir dir="${test.build.src}/org/apache/hadoop/hive/cli"/> |
| <mkdir dir="${test.log.dir}/hbase-handler"/> |
| <mkdir dir="${hbase-handler.test.results.dir}"/> |
| |
| <qtestgen hiveRootDirectory="${hive.root}" |
| outputDirectory="${test.build.src}/org/apache/hadoop/hive/cli" |
| templatePath="${ql.hbase.test.template.dir}" template="TestHBaseCliDriver.vm" |
| queryDirectory="${hbase-handler.test.query.dir}/positive" |
| queryFile="${qfile}" |
| runDisabled="${run_disabled}" |
| clusterMode="${clustermode}" |
| resultsDirectory="${hbase-handler.test.results.dir}/positive" className="TestHBaseCliDriver" |
| logFile="${test.log.dir}/testhbaseclidrivergen.log" |
| logDirectory="${test.log.dir}/hbase-handler"/> |
| <qtestgen hiveRootDirectory="${hive.root}" |
| outputDirectory="${test.build.src}/org/apache/hadoop/hive/cli" |
| templatePath="${ql.hbase.test.template.dir}" template="TestHBaseCliDriver.vm" |
| queryDirectory="${hbase-handler.test.query.dir}/positive" |
| queryFile="hbase_bulk.m" |
| runDisabled="${run_disabled}" |
| clusterMode="miniMR" |
| resultsDirectory="${hbase-handler.test.results.dir}/positive" className="TestHBaseMinimrCliDriver" |
| logFile="${test.log.dir}/testhbaseminimrclidrivergen.log" |
| logDirectory="${test.log.dir}/hbase-handler"/> |
| <qtestgen hiveRootDirectory="${hive.root}" |
| outputDirectory="${test.build.src}/org/apache/hadoop/hive/cli" |
| templatePath="${ql.hbase.test.template.dir}" template="TestHBaseNegativeCliDriver.vm" |
| queryDirectory="${hbase-handler.test.query.dir}/negative" |
| queryFile="${qfile}" |
| runDisabled="${run_disabled}" |
| clusterMode="${clustermode}" |
| resultsDirectory="${hbase-handler.test.results.dir}/negative" className="TestHBaseNegativeCliDriver" |
| logFile="${test.log.dir}/testhbasenegativeclidrivergen.log" |
| logDirectory="${test.log.dir}/hbase-handler"/> |
| </target> |
| |
| </project> |