source:
test/test.sh@
1183:5418e2e15a2c
Last change on this file since 1183:5418e2e15a2c was 956:86878bb8d9f1, checked in by , 6 years ago | |
---|---|
|
|
File size: 317 bytes |
Rev | Line | |
---|---|---|
[89] | 1 | #!/bin/bash |
2 | ||
3 | scriptdir=`dirname $0` | |
[956] | 4 | |
5 | PYTHONPATH="${scriptdir}/../src" | |
6 | export PYTHONPATH | |
7 | ||
8 | sim="mlx.pyuipc_sim" | |
[89] | 9 | |
[163] | 10 | host="localhost" |
11 | if test $# -gt 1; then | |
12 | host=$2 | |
13 | fi | |
14 | ||
[89] | 15 | oldIFS="${IFS}" |
16 | IFS=$'\n' | |
17 | for line in `cat $1`; do | |
18 | read -p "$line" | |
[956] | 19 | echo $line | python3 -m "${sim}" "${host}" >/dev/null |
[89] | 20 | done |
21 | IFS="${oldIFS}" |
Note:
See TracBrowser
for help on using the repository browser.