Hi All! On 09/17/2014 11:11 AM, Alexey Kodanev wrote: > Hi, > On 17.09.2014 7:05, Hangbin Liu wrote: >> On Tue, Sep 16, 2014 at 06:47:38PM +0400, Alexey Kodanev wrote: >>> * Move networktests.sh and networkstress.sh parameters to network.sh. >>> Both network scripts have the same settings (e.g. RHOST), and >>> some of the stress test parameters can be used by other net-tests, >>> such as LHOST_INTERFACE and RHOST_INTERFACE variables. >>> * Add network features group to networkstress.sh. >>> * Add network features group to 'whole' group. >>> >>> New test_net.sh functions: >>> * 'tst_get_ifaces TYPE' get test interface names for local/remote host >>> (Note that it returns already defined iface list); >>> * 'tst_get_hwaddrs TYPE' get addresses from defined test interface >>> names; >>> * 'tst_hwaddr TYPE LINK' get test HW address; >>> * 'tst_iface TYPE LINK' get test interface name; >>> >>> TYPE can be 'rhost' or 'lhost' (default). >>> LINK is the test link number starting from 0 (default). >>> >>> Signed-off-by: Alexey Kodanev <alexey.koda...@oracle.com> >>> --- >>> v3: rename *HOST_INTERFACES to *HOST_IFACES >>> add support for multi-links (new function) >>> remove unused 'Nn' option in networkstress.sh >>> move setting LTPROOT to network.sh >>> >>> v2: Add net features tests to 'whole' group >>> tst_rhost_hwaddr(): run 'awk' on local machine >>> >>> runtest/network_stress.features | 9 +++++ >>> runtest/network_stress.tcp | 2 - >>> runtest/network_stress.udp | 4 -- >>> runtest/network_stress.whole | 10 ++++++ >>> testcases/lib/test_net.sh | 62 >>> +++++++++++++++++++++++++++++++++++++ >>> testscripts/network.sh | 65 >>> +++++++++++++++++++++++++++++++++++++++ >>> testscripts/networkstress.sh | 48 ++++------------------------ >>> testscripts/networktests.sh | 21 +----------- >>> 8 files changed, 155 insertions(+), 66 deletions(-) >>> create mode 100644 runtest/network_stress.features >>> create mode 100755 testscripts/network.sh >>>
Patch pushed with minor changes since version 3: * added comments about configuring network.sh. * hardware address is now getting from sysfs instead of parsing 'ip' command output. In case it's not supported by some older systems it can be configured manually along with interface names. From now on, configuring just RHOST is not enough for network tests. We should also set IPv4 and IPv6 addresses, interface name as well. Why they are not getting from RHOST in the scripts? Because RHOST can be used as management link (e.g. test traffic shouldn't go through that link or test manipulation with the link is unwelcome). It still possible to use one link in 'networktests.sh', just set the 'RHOST' IP addresses and its interface name. Thanks, Alexey ------------------------------------------------------------------------------ Meet PCI DSS 3.0 Compliance Requirements with EventLog Analyzer Achieve PCI DSS 3.0 Compliant Status with Out-of-the-box PCI DSS Reports Are you Audit-Ready for PCI DSS 3.0 Compliance? Download White paper Comply to PCI DSS 3.0 Requirement 10 and 11.5 with EventLog Analyzer http://pubads.g.doubleclick.net/gampad/clk?id=154622311&iu=/4140/ostg.clktrk _______________________________________________ Ltp-list mailing list Ltp-list@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/ltp-list