Imported Upstream version 1.5.1
This commit is contained in:
24
tests/test_scripts/system_mrcdbtool_test.sh
Executable file
24
tests/test_scripts/system_mrcdbtool_test.sh
Executable file
@@ -0,0 +1,24 @@
|
||||
#!/bin/bash
|
||||
|
||||
TEST_DIR=$4
|
||||
export XTREEMFS=$1
|
||||
echo "XTREEMFS=$XTREEMFS"
|
||||
|
||||
if [[ "$3" == pbrpcs://* || "$3" == pbrpcg://** ]]; then
|
||||
CREDS="-c $1/tests/certs/Client.p12 -cpass passphrase -t $1/tests/certs/trusted.jks"
|
||||
fi
|
||||
|
||||
# test dump
|
||||
COMMAND="$1/bin/xtfs_mrcdbtool -mrc $3 $CREDS dump $TEST_DIR/dump.xml"
|
||||
echo "Running ${COMMAND}..."
|
||||
$COMMAND
|
||||
RESULT=$?
|
||||
if [ "$RESULT" -ne "0" ]; then echo "$COMMAND failed"; exit $RESULT; fi
|
||||
|
||||
# wait for the dump to be created (asynchronously)
|
||||
sleep 5
|
||||
|
||||
# check the dump
|
||||
cat $TEST_DIR/dump.xml |grep "<filesystem "
|
||||
|
||||
rm $TEST_DIR/dump.xml
|
||||
Reference in New Issue
Block a user