2019-03-28 21:32:12 +00:00
|
|
|
#!/usr/bin/env python3
|
2014-05-07 22:27:00 +00:00
|
|
|
|
2018-11-27 11:26:21 +00:00
|
|
|
from mosq_test_helper import *
|
2014-05-07 22:27:00 +00:00
|
|
|
|
|
|
|
rc = 1
|
|
|
|
|
|
|
|
client_args = sys.argv[1:]
|
|
|
|
env = dict(os.environ)
|
|
|
|
env['LD_LIBRARY_PATH'] = '../../lib:../../lib/cpp'
|
|
|
|
try:
|
|
|
|
pp = env['PYTHONPATH']
|
|
|
|
except KeyError:
|
|
|
|
pp = ''
|
|
|
|
env['PYTHONPATH'] = '../../lib/python:'+pp
|
|
|
|
|
2014-07-01 21:02:06 +00:00
|
|
|
client = mosq_test.start_client(filename=sys.argv[1].replace('/', '-'), cmd=client_args, env=env)
|
2014-05-07 22:27:00 +00:00
|
|
|
client.wait()
|
|
|
|
exit(client.returncode)
|