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