]> git.apps.os.sepia.ceph.com Git - ceph.git/commitdiff
testing: add workunit to run hadoop internal tests.
authorJoe Buck <jbbuck@gmail.com>
Fri, 4 Jan 2013 05:35:32 +0000 (21:35 -0800)
committerJoe Buck <jbbuck@gmail.com>
Tue, 22 Jan 2013 20:43:37 +0000 (12:43 -0800)
This workunit runs the internal tests for our local branch of hadoop-common.
Requires ant be installed on the host running the test.

Signed-off-by: Joe Buck <jbbuck@gmail.com>
qa/workunits/hadoop-internal-tests/test.sh [new file with mode: 0755]

diff --git a/qa/workunits/hadoop-internal-tests/test.sh b/qa/workunits/hadoop-internal-tests/test.sh
new file mode 100755 (executable)
index 0000000..017a0bd
--- /dev/null
@@ -0,0 +1,24 @@
+#!/bin/sh -e
+
+BASE=/tmp/cephtest
+TLIB=binary/usr/local/lib
+
+echo "starting hadoop-internal-tests tests"
+
+export LD_LIBRARY_PATH=$BASE/$TLIB 
+command1="cd $BASE/hadoop"
+command2="ant -Dextra.library.path=$BASE/$TLIB -Dceph.conf.file=$BASE/ceph.conf test -Dtestcase=TestCephFileSystem"
+
+#print out the command
+echo "----------------------"
+echo $command1
+echo "----------------------"
+echo $command2
+echo "----------------------"
+
+#now execute the command
+$command1
+$command2
+
+echo "completed hadoop-internal-tests tests"
+exit 0