Commit cea2843a authored by Shane Snyder's avatar Shane Snyder

verify pmem obj count in create-write-persist case

parent 931ce85d
#!/bin/bash -x
set -e
set -o pipefail
if [ -z $srcdir ]; then
echo srcdir variable not set.
exit 1
......@@ -13,7 +16,7 @@ sleep 1
#####################
# tear down
# run test
run_to 10 tests/create-write-persist-test $svr1 1
if [ $? -ne 0 ]; then
wait
......@@ -22,6 +25,15 @@ fi
wait
# check that the underlying pool has the object we created
# XXX note this assumes pmem pools -- may want to write our
# own wrapper for this functionality at some point
num_objs=`pmempool info -ns $TMPBASE/svr-1.dat | grep "Number of objects" | head -n 1 | cut -d: -f2 | awk '{$1=$1};1'`
if [ $num_objs -ne 1 ]; then
echo "Invalid number of objects in BAKE pool"
exit 1
fi
echo cleaning up $TMPBASE
rm -rf $TMPBASE
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment