8967f960f820f449162101a02ee5747f195a8a57 |
|
14-Feb-2017 |
Ngie Cooper <yaneurabeya@gmail.com> |
Update references with my old legal name/email to my current name/email address No functional change Signed-off-by: Ngie Cooper <yaneurabeya@gmail.com>
/external/ltp/testcases/lib/cmdlib.sh
|
790407496b324fc7cc0b99c17c72ac0f82d420d9 |
|
26-Mar-2014 |
Cyril Hrubis <chrubis@suse.cz> |
cmdlib.sh: Move daemon functions to daemonlib.sh Move the daemon start/stop functions to separate daemonlib.sh library. Add documentation to test-writing-guidelines Signed-off-by: Cyril Hrubis <chrubis@suse.cz>
/external/ltp/testcases/lib/cmdlib.sh
|
d84d84fcfb82220e4a99147530655af0704f6ed4 |
|
10-Feb-2014 |
Xiaoguang Wang <wangxg.fnst@cn.fujitsu.com> |
testcases/lib/cmdlib.sh: add tst_require_root() function Replace is_root() with tst_require_root(). Signed-off-by: Xiaoguang Wang <wangxg.fnst@cn.fujitsu.com>
/external/ltp/testcases/lib/cmdlib.sh
|
1e278ab7cd3b84ce63c8859b7e7f8de9c202f227 |
|
03-Dec-2013 |
Jiri Jaburek <jjaburek@redhat.com> |
cmdlib/end_testcase: don't call tst_cleanup, exit on pass Calling tst_cleanup explicitly causes the EXIT trap to be emptied, removing possible user-defined cleanup routines. It also doesn't make sense - tst_setup does NOT always set an EXIT trap, only when $TCtmp is set. And even then, the trap is correctly executed *after* end_testcase (with this change applied). Removing explicit tst_cleanup in end_testcase helps scenarios where no trap was set in tst_setup with the test author being responsible for trapping cleanup. At least 18 tests already re-define entire end_testcase() exactly because of this inability to execute custom cleanup. Applying this change also makes (at least) ssh tests perform correct cleanup on test failure. As for the 'exit 0' change - it makes sense from the looks and name of the function. The following tests use end_testcase without arguments: network/tcp_cmds/arp/arp01 network/tcp_cmds/echo/echo01 network/tcp_cmds/finger/finger01 network/tcp_cmds/ftp/ftp01 network/tcp_cmds/ftp/ftp02 network/tcp_cmds/ftp/ftp03 network/tcp_cmds/ftp/ftp04 network/tcp_cmds/ftp/ftp05 network/tcp_cmds/host/host01 network/tcp_cmds/netstat/netstat01 network/tcp_cmds/perf_lan/perf_lan network/tcp_cmds/ping/ping01 network/tcp_cmds/rcp/rcp01 network/tcp_cmds/rdist/rdist01 network/tcp_cmds/rsh/rsh01 network/tcp_cmds/rwho/rwho01 network/tcp_cmds/sendfile/sendfile01 network/tcp_cmds/tcpdump/tcpdump01 and all except one use it only as the last line in the test. The one exception is network/tcp_cmds/perf_lan/perf_lan, which uses end_testcase in a trapped handler as well, but - again - as a last cmd. The 'exit 0' change would actually improve the test, since it's apparently meant to end when interrupt_testcase is called. Signed-off-by: Jiri Jaburek <jjaburek@redhat.com>
/external/ltp/testcases/lib/cmdlib.sh
|
c4841ecf091cccd143a0d46133b5745903d00cb7 |
|
09-Jul-2013 |
Peng Haitao <penght@cn.fujitsu.com> |
cron02: Use lib to restart crond service Use restart_daemon() to restart crond service. Signed-off-by: Peng Haitao <penght@cn.fujitsu.com> Acked-by: Cyril Hrubis <chrubis@suse.cz> Reviewed-by: Wanlong Gao <gaowanlong@cn.fujitsu.com>
/external/ltp/testcases/lib/cmdlib.sh
|
c72358c85968934ecc47d62071d760bd0c3ed597 |
|
09-Jul-2013 |
Peng Haitao <penght@cn.fujitsu.com> |
cmdlib.sh: fix a bug of restart_daemon start should be replaced with restart in restart_daemon(). Signed-off-by: Peng Haitao <penght@cn.fujitsu.com> Signed-off-by: Wanlong Gao <gaowanlong@cn.fujitsu.com>
/external/ltp/testcases/lib/cmdlib.sh
|
b84621b37224f7b0f4319733683730a7b716f4d0 |
|
09-Jul-2013 |
Peng Haitao <penght@cn.fujitsu.com> |
cron_tests.sh: fix a bug of syslog daemon is disabled The case will check the /var/log/messages to see if there is a record of any crontab activity, so make sure syslog daemon is enabld. Signed-off-by: Peng Haitao <penght@cn.fujitsu.com> Acked-by: Cyril Hrubis <chrubis@suse.cz> Reviewed-by: Wanlong Gao <gaowanlong@cn.fujitsu.com>
/external/ltp/testcases/lib/cmdlib.sh
|
da61657e4f129e27ed0b8f92be3d717f85a8fb56 |
|
04-Dec-2012 |
Peng Haitao <penght@cn.fujitsu.com> |
cmdlib.sh: Add four functions of controlling daemon Add four functions of controlling daemon: - start_daemon - stop_daemon - status_daemon - restart_daemon Signed-off-by: Peng Haitao <penght@cn.fujitsu.com> Signed-off-by: Wanlong Gao <gaowanlong@cn.fujitsu.com>
/external/ltp/testcases/lib/cmdlib.sh
|
37550cf5a86c7ca7424a2a318dd64e550f13f5df |
|
18-Oct-2012 |
Chris Dearman <chris@mips.com> |
Remove whitespace at end of line This is a scripted change done using the following command: find . -type d -name .git -prune -o \ -type f \! -name \*\~ \! -name .\#\* \ \! -name \*.gz \! -name \*.pdf \! -name \*.patch -print0 | \ xargs -0 sed -i -e 's/[\t ]*$//' Signed-off-by: Chris Dearman <chris@mips.com>
/external/ltp/testcases/lib/cmdlib.sh
|
ffb497af2c83e879d79ad1e8653d91c79a903a81 |
|
24-Nov-2010 |
Garrett Cooper <yanegomi@gmail.com> |
Be more POSIX compliant by using command -v. Signed-off-by: Garrett Cooper <yanegomi@gmail.com>
/external/ltp/testcases/lib/cmdlib.sh
|
f969f69207a58373b181d6c657e3c6e60d137bac |
|
21-Oct-2010 |
Garrett Cooper <yanegomi@gmail.com> |
Improve command check. Signed-off-by: Garrett Cooper <yanegomi@gmail.com>
/external/ltp/testcases/lib/cmdlib.sh
|
f9edb183d9a7e69af45c471a04630230e9ffddc3 |
|
09-Nov-2009 |
yaberauneya <yaberauneya> |
Be consistent with the braces. Signed-off-by: Garrett Cooper <yanegomi@gmail.com>
/external/ltp/testcases/lib/cmdlib.sh
|
154a9b1502fbf66f6a475c323c9f893d32741af3 |
|
01-Nov-2009 |
yaberauneya <yaberauneya> |
Stupid Garrett. I need to increment the value... Signed-off-by: Garrett Cooper <yanegomi@gmail.com>
/external/ltp/testcases/lib/cmdlib.sh
|
6657522dae2857031c050d8030da714adb3119fd |
|
31-Oct-2009 |
yaberauneya <yaberauneya> |
Avoid a possible issue with the test statement for SHELL_DEBUG if the user set it to something nasty like -x. Signed-off-by: Garrett Cooper <yanegomi@gmail.com>
/external/ltp/testcases/lib/cmdlib.sh
|
24b8dfadedbcda675f54cb0e6847e9c5d4b5b41e |
|
31-Oct-2009 |
yaberauneya <yaberauneya> |
Fix a bashism that was pointed out in other files by Jiri Palecek. Signed-off-by: Garrett Cooper <yanegomi@gmail.com>
/external/ltp/testcases/lib/cmdlib.sh
|
677ce256000a679a366bbc603a6f3efe9dfe75bf |
|
19-Oct-2009 |
yaberauneya <yaberauneya> |
The trap signal handler wasn't being disabled on entry thus causing it to be called twice, the first time when tst_cleanup was called; the second when cleanup exited. This fixes that. Signed-off-by: Garrett Cooper <yanegomi@gmail.com>
/external/ltp/testcases/lib/cmdlib.sh
|
c59af74abb0fc1e2972a833c0b6d60a4492689f7 |
|
19-Oct-2009 |
yaberauneya <yaberauneya> |
1. Fix incrementing call to use POSIX compliant version of incrementing. 2. Add function `is_root' to help test writer determine whether or not the user is root with one uniform command. Signed-off-by: Garrett Cooper <yanegomi@gmail.com>
/external/ltp/testcases/lib/cmdlib.sh
|
e6db97642c4af4d5c86efd4d5ac7795799f289e5 |
|
11-Oct-2009 |
yaberauneya <yaberauneya> |
Use the type builtin instead of which(1).
/external/ltp/testcases/lib/cmdlib.sh
|
ef77253961f909f87e82e6d2b620e87af33e9665 |
|
09-Oct-2009 |
yaberauneya <yaberauneya> |
1. Please see README.mk-devel for a full description of the changes from a Make perspective. 2. Several files were changed to accomodate correct installation practices, most notably ones in testcases/network/{ipv6,tcp_cmds}, testcases/kernel/sched/hyperthreading/ht_enabled/..., and some items in tools/..., and also to avoid collisions as far as installed testcases (scripts, compiled C apps) were concerned. 3. Several apps weren't autoconf safe and some autoconf tests and conditional statements have been placed in sourcecode and in Makefiles to either a) prevent the tests from being built / installed or b) turn the tests into dummy apps which print out TCONF messages due to lack-of-build support. Signed-off-by: Garrett Cooper <yanegomi@gmail.com>
/external/ltp/testcases/lib/cmdlib.sh
|