#
#  gensio - A library for abstracting stream I/O
#  Copyright (C) 2018  Corey Minyard <minyard@acm.org>
#
#  SPDX-License-Identifier: GPL-2.0-only
#

from utils import *
import gensio
import ipmisimdaemon

print("Test ipmisol large")
check_pipe_dev()
gensios_enabled.check_iostr_gensios("ipmisol")
isim = ipmisimdaemon.IPMISimDaemon(o, ttypipe[1])
io1 = alloc_io(o, "serialdev," + ttypipe[0] + ",115200")
io2 = alloc_io(o, "ipmisol,lan -U ipmiusr -P test -p %d localhost,115200" %
               isim.port)
do_medium_test(io1, io2, timeout=30000)
io_close((io1, io2))
del io1
del io2
del isim
del o
test_shutdown()
