Changeset 163:b42982058cb2 for test


Ignore:
Timestamp:
05/07/12 17:31:09 (12 years ago)
Author:
István Váradi <ivaradi@…>
Branch:
default
hg-Phase:
(<MercurialRepository 1 'hg:/home/ivaradi/mlx/hg' '/'>, 'public')
Message:

Added support for specifying the host name

File:
1 edited

Legend:

Unmodified
Added
Removed
  • test/test.sh

    r89 r163  
    44sim="${scriptdir}/../src/mlx/pyuipc_sim.py"
    55
     6host="localhost"
     7if test $# -gt 1; then
     8    host=$2
     9fi
     10
    611oldIFS="${IFS}"
    712IFS=$'\n'
    813for line in `cat $1`; do
    914    read -p "$line"
    10     echo $line | python "${sim}" >/dev/null
     15    echo $line | python "${sim}" "${host}" >/dev/null
    1116done
    1217IFS="${oldIFS}"
Note: See TracChangeset for help on using the changeset viewer.