Log In
New Account
  
 
Home My Page Project Tree Code Snippets Project Openings NUTSS
 
 
Summary Tracker Lists CVS Files
 

CVS | Administration


File:  [GForge:cvsroot/nutss] / libnutss / examples / swp_vl_test
Revision 1.1: download - view: text, annotated - select for diffs
Mon May 28 20:18:20 2007 UTC (10 years, 4 months ago) by ths
Branches: MAIN
CVS tags: HEAD
new test files for swaplinks.

#!/bin/bash

trap "killall lt-nutssd lt-slinksvariableload" SIGINT SIGTERM

if [ "$#" == "0" ]; then
    echo -e "Usage:\n  swp_vl_test number_of_nodes number_of_peers time_limit max_flow_duration max_flow_weight "
    exit 0
fi

if [ ! -x "./slinksvariableload" -o ! -x "./nutssd" ]; then
    echo "Cannot file slinkapp and nutssd."
    echo "The test must be run from the libnutss/examples directory"
    exit 0
fi

mkdir -p output
rm output/*

killall lt-nutssd
./nutssd -stwn -r sip.nutss.net:5060 -p ths1 ths1@nutss.net >output/debug_registrar.txt 2>&1 &

for i in $(seq 1 $1); do
	./slinksvariableload $i $2 $3 `expr $RANDOM % $4 + 1` `expr $RANDOM % $5 + 1` &
done


FreeBSD-CVSweb <freebsd-cvsweb@FreeBSD.org>
 

GForge.cis.cornell.edu is brought to you by

Cornell Computing and Information Science


Powered By GForge Collaborative Development Environment