[LTP] [PATCH v2] uart: add uart testcase in kernel device-drivers
Petr Vorel
pvorel@suse.cz
Wed Mar 25 16:28:21 CET 2020
Hi,
> This is problematic as well, it expects that all ports that are not
> in-use are loopback connected. This is not true in general case, which
> means that we cannot add the test to the kernel_misc runtest file as it
> is because it will fail on most of the systems out there.
Oh, I didn't realize this obvious thing.
> We will have to figure out how to pass which ports are interconnected to
> the test somehow, because that is something that only the user who set
> up the machine knows.
Maybe expect user sets it in some variable before running the test? e.g.:
if [ -n "$UART_INTERCONNECTED_PORTS" ]; then
tst_brk TCONF "set space separated interconnected ports in \$UART_INTERCONNECTED_PORTS"
fi
Kind regards,
Petr
More information about the ltp
mailing list