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

CVS | Administration

Annotation of libnutss/examples/swp_vl_test, revision 1.1

1.1     ! ths         1: #!/bin/bash
        !             2:
        !             3: trap "killall lt-nutssd lt-slinksvariableload" SIGINT SIGTERM
        !             4:
        !             5: if [ "$#" == "0" ]; then
        !             6:     echo -e "Usage:\n  swp_vl_test number_of_nodes number_of_peers time_limit max_flow_duration max_flow_weight "
        !             7:     exit 0
        !             8: fi
        !             9:
        !            10: if [ ! -x "./slinksvariableload" -o ! -x "./nutssd" ]; then
        !            11:     echo "Cannot file slinkapp and nutssd."
        !            12:     echo "The test must be run from the libnutss/examples directory"
        !            13:     exit 0
        !            14: fi
        !            15:
        !            16: mkdir -p output
        !            17: rm output/*
        !            18:
        !            19: killall lt-nutssd
        !            20: ./nutssd -stwn -r sip.nutss.net:5060 -p ths1 ths1@nutss.net >output/debug_registrar.txt 2>&1 &
        !            21:
        !            22: for i in $(seq 1 $1); do
        !            23:       ./slinksvariableload $i $2 $3 `expr $RANDOM % $4 + 1` `expr $RANDOM % $5 + 1` &
        !            24: done
        !            25:

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