on a177213 help sign in
prybar/tests/python3/show_header.exp
14 lines 248 B history raw
1#!/usr/bin/expect -f
3set timeout -1
4spawn ./prybar-python3 -i
5match_max 100000
6expect -re {Python 3\.\d+\.\d+ ([^)]+)}
7expect -re {\[.+\] on [a-z0-9]+\r\n}
8expect -exact "--> "
9send -- "1+1\r"
10expect -exact "1+1\r
112\r
12--> "
13send -- ""
14expect eof