[LTP] [PATCH][RFC] network: test_net.sh: allow to run tests on a single machine

Alexey Kodanev alexey.kodanev@oracle.com
Tue Nov 22 11:35:39 CET 2016


Hi,

On 11/22/2016 11:38 AM, Cyril Hrubis wrote:
> Hi!
>> When 'TST_USE_NETNS' environment variable is defined, test_net.sh
>> will setup 'ltp_ns' netns and configure veth pair according to
>> other LTP network variables. Then, each tst_rhost_run() call will
>> be executed in the new netns on the same host.
>>
>> Usage:
>> TST_USE_NETNS=1... ./network.sh -i
> Looks like a smart idea to me, the implementation looks ok as well. I
> wonder if we should add these kind of network tests into default
> scenario...

Some test groups can be added and I guess we should default to netns 
configuration
if RHOST variable isn't defined. This way the tests won't require any 
network
environment variables set beforehand.

> The patch misses any documentation though, it should be described
> properly somewhere.

Right, will add it and send a new version.


Thanks,
Alexey



More information about the ltp mailing list