summaryrefslogtreecommitdiffstats
path: root/src/appl/user_user/t_user2user.py
blob: 8bdef8e07b90a40e6920c1299228b5b4f969fec7 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
#!/usr/bin/python
from k5test import *

# If uuserver is not compiled under -DDEBUG, then set to 0
debug_compiled=1

for realm in multipass_realms():
    if debug_compiled == 0:
        realm.start_in_inetd(['./uuserver', 'uuserver'], port=9999)
    else:
        srv_output = realm.start_server(['./uuserver', '9999'], 'Server started')

    output = realm.run(['./uuclient', hostname, 'testing message', '9999'])
    if 'uu-client: server says \"Hello, other end of connection.\"' not in output:
        fail('Message not echoed back.')


success('User-2-user test programs')