source: test/test.sh@ 452:c838eb728031

Last change on this file since 452:c838eb728031 was 163:b42982058cb2, checked in by István Váradi <ivaradi@…>, 13 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.