source: test/test.sh@ 1137:87a29e5e4b2d

python3
Last change on this file since 1137:87a29e5e4b2d was 956:86878bb8d9f1, checked in by István Váradi <ivaradi@…>, 6 years ago

The test simulator is run with Python 3 (re #347)

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