diff options
author | Joe Buck <jbbuck@gmail.com> | 2013-01-03 21:35:32 -0800 |
---|---|---|
committer | Joe Buck <jbbuck@gmail.com> | 2013-01-22 12:43:37 -0800 |
commit | 00b1186922befd0cbaa290eb99f0111359e5cf0b (patch) | |
tree | d14cddfc6b7086d0b98f6c61cec98f3d3a01560f | |
parent | 4a871b559deb5a093845fce9279f47783128265a (diff) | |
download | ceph-00b1186922befd0cbaa290eb99f0111359e5cf0b.tar.gz |
testing: add workunit to run hadoop internal tests.
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>
-rwxr-xr-x | qa/workunits/hadoop-internal-tests/test.sh | 24 |
1 files changed, 24 insertions, 0 deletions
diff --git a/qa/workunits/hadoop-internal-tests/test.sh b/qa/workunits/hadoop-internal-tests/test.sh new file mode 100755 index 00000000000..017a0bd411b --- /dev/null +++ b/qa/workunits/hadoop-internal-tests/test.sh @@ -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 |