Commit 3ce36330 authored by David Johnson's avatar David Johnson

A test driver script that does what we did for the OSDI '16 experiments.

parent efb1bd4d
Pipeline #1513 skipped
#!/bin/sh
#
# A script (untested, for archival purposes) that runs the commands used
# to generated the data for the OSDI 2016 submission.
#
set -x
DIRNAME=`dirname $0`
. "$DIRNAME/test-lib.sh"
. "$SETUPLIB"
TESTBASEDIRNAME="test"
SIZE="50 100 150 200"
ITERATIONS=5
UTENANT="tenant-0"
STENANT="service-0"
NETWORK="capnetlan-1-net"
BRIDGE="br-capnetlan-1"
if [ $# -gt 1 ]; then
TESTBASEDIRNAME="$1"
fi
for size in $SIZES ; do
i=0
while [ $i -lt $ITERATIONS ]; do
i=`expr $i + 1`
#
# Clean out tenants and switches to make sure everything's
# clean. Sometimes a workflow agent doesn't get fully deleted,
# probably because the switch restart acts before the capnet
# agent can delete the wfagents. So we just add sleeps and do
# it all twice.
#
echo "Cleaning out tenant $STENANT ..."
$DIRNAME/test-cleanup-tenant.sh $STENANT
echo "Cleaning out tenant $UTENANT ..."
$DIRNAME/test-cleanup-tenant.sh $UTENANT
sleep 4
echo "Cleaning out bridge $BRIDGE ..."
$DIRNAME/test-cleanup-sw-restart-controller.sh $BRIDGE
echo "Cleaning out tenant $STENANT ..."
$DIRNAME/test-cleanup-tenant.sh $STENANT
echo "Cleaning out tenant $UTENANT ..."
$DIRNAME/test-cleanup-tenant.sh $UTENANT
sleep 4
echo "Cleaning out bridge $BRIDGE ..."
$DIRNAME/test-cleanup-sw-restart-controller.sh $BRIDGE
#
# Ok, run the test.
#
echo "Running test-$size-$i ..."
testname="${TESTDIRBASENAME}-${$size}-${i}"
mkdir -p "$testname"
$DIRNAME/test-hadoop.sh $testname $UTENANT $STENANT \
$NETWORK $BRIDGE $size |& tee $testname/test.log
echo "Finished test-$size-$i ..."
done
done
echo "Done with $ITERATIONS iterations of test sizes %SIZES ."
exit 0
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