incubator-mrunit-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From br...@apache.org
Subject svn commit: r1189151 - in /incubator/mrunit/trunk/src/test/sh: ./ run-artifact-unit-tests.sh
Date Wed, 26 Oct 2011 12:04:09 GMT
Author: brock
Date: Wed Oct 26 12:04:09 2011
New Revision: 1189151

URL: http://svn.apache.org/viewvc?rev=1189151&view=rev
Log:
MRUNIT-34: Create smoke test for build

Added:
    incubator/mrunit/trunk/src/test/sh/
    incubator/mrunit/trunk/src/test/sh/run-artifact-unit-tests.sh   (with props)

Added: incubator/mrunit/trunk/src/test/sh/run-artifact-unit-tests.sh
URL: http://svn.apache.org/viewvc/incubator/mrunit/trunk/src/test/sh/run-artifact-unit-tests.sh?rev=1189151&view=auto
==============================================================================
--- incubator/mrunit/trunk/src/test/sh/run-artifact-unit-tests.sh (added)
+++ incubator/mrunit/trunk/src/test/sh/run-artifact-unit-tests.sh Wed Oct 26 12:04:09 2011
@@ -0,0 +1,26 @@
+#!/bin/bash
+#/**
+# * 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.
+# */
+# run all the tests, using the mrunit jar in the cwd
+set -e
+MRUNIT_JAR=$(ls mrunit-*.jar)
+TEST_CLASSPATH=$(hadoop classpath | tr ':' '\n' | grep -vi 'mrunit' | tr '\n' ':')
+TEST_CLASSPATH=src/test/java/:$MRUNIT_JAR:$TEST_CLASSPATH
+find src/test/java/ -name '*.java' | xargs javac -classpath $TEST_CLASSPATH
+java -classpath $TEST_CLASSPATH org.junit.runner.JUnitCore org.apache.hadoop.mrunit.AllTests
+echo "MRUnit Tests Pass!"

Propchange: incubator/mrunit/trunk/src/test/sh/run-artifact-unit-tests.sh
------------------------------------------------------------------------------
    svn:executable = *



Mime
View raw message