Skip to contentSkip to conversation

Make FTP test compatible with Busybox and Dropbear.

LTP Köry Maincent 2 participants 2 messages Nov 30, 2020 – Dec 1, 2020

lore
Share & tools
lore
#0 lore raw

Hello,

I am working with LTP on an embedded board.
I would like to notice the rhost_run command does not work with Dropbear ssh client. I am trying to understand how tst_net work but I am a bit struggling with it. What is the usage of TST_USE_NETNS, and the purpose of netspace (it seems to be used to configure a virtual interface)?
My aim was to make FTP test work with Dropbear and Busybox. If someone could point me out how to do it.

Regards,

K?ry

#1 lore raw
Quoted 2 lines · K?ry Maincent

Hello,

Hi Kory,

Quoted 8 lines

I am working with LTP on an embedded board.
I would like to notice the rhost_run command does not work with Dropbear ssh client. I am trying to understand how tst_net work but I am a bit struggling with it. What is the usage of TST_USE_NETNS, and the purpose of netspace (it seems to be used to configure a virtual interface)?
My aim was to make FTP test work with Dropbear and Busybox. If someone could point me out how to do it.

ssh is used for two host setup only, if you are running on a single machine, it's not used at all. Instead tst_rhost_run() runs the command in the different namespace (ltp_ns), and it is the default setup. Also, by default, tst_net.sh creates veth pair to connect to ltp_ns and run network tests over it.

Moreover such setup can be replaced via RHOST environment variable (two host setup + using ssh) and ssh becomes the management link, or custom network namespace via LTP_NETNS var. Test network parameters replaced via IPV4{6}_LHOST/IPV4{6}_RHOST vars.

Quoted 5 lines

Regards,

K?ry