On 2015/6/16 1:13, Alexey Kodanev wrote: > Hi! > On 06/12/2015 09:06 AM, Cui Bixuan wrote: >> On 2015/6/9 21:33, Cyril Hrubis wrote: >>> Hi! >>> I would rather see these being added one test per file with some shared >>> code in sourced library. >>> >>> If there is a simple script that executes a lot of testcases it harder >>> to debug and the results are binary (FAIL/PASS for a group of test) >>> instead of actual testcases. >>> >> Hi, >> Thank you for your reply. I resend patches to cleanup the iptables >> testcase and add some testcases for it. >> But I don't have good idea for adding one test per file >> with some shared code :-( . Hope someone give some advice for me. > > Probably you could do the following steps: > 1. rename the existed iptables_tests.sh to iptables01.sh, don't forget to > update runtests/ with the new test name; > 2. extract common code from iptables01.sh to iptables_lib.sh (cleanup/change > or add new code there), and source the new lib in iptables01.sh; > 3. Then add your new test-cases to iptables02.sh and source iptables_lib.sh > as well. > > Please look at 'network/dhcp' tests as an example. > Thank you for your advice. :-)
> Thanks, > Alexey > > > ------------------------------------------------------------------------------ Monitor 25 network devices or servers for free with OpManager! OpManager is web-based network management software that monitors network devices and physical & virtual servers, alerts via email & sms for fault. Monitor 25 devices for free with no restriction. Download now http://ad.doubleclick.net/ddm/clk/292181274;119417398;o _______________________________________________ Ltp-list mailing list Ltp-list@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/ltp-list