source: test/test.sh@ 955:d98b211d32fa

Last change on this file since 955:d98b211d32fa was 163:b42982058cb2, checked in by István Váradi <ivaradi@…>, 12 years ago

Added support for specifying the host name

  • Property exe set to *
File size: 283 bytes
Line 
1#!/bin/bash
2
3scriptdir=`dirname $0`
4sim="${scriptdir}/../src/mlx/pyuipc_sim.py"
5
6host="localhost"
7if test $# -gt 1; then
8 host=$2
9fi
10
11oldIFS="${IFS}"
12IFS=$'\n'
13for line in `cat $1`; do
14 read -p "$line"
15 echo $line | python "${sim}" "${host}" >/dev/null
16done
17IFS="${oldIFS}"
Note: See TracBrowser for help on using the repository browser.