[ANNOUNCE] The Linux Test Project has been Released for OCTOBER2009

From: Subrata Modak
Date: Mon Nov 02 2009 - 08:17:32 EST


Hi,

The Linux Test Project test suite has been released for the month of
OCTOBER 2009. Please see ltp/INSTALL file carefully, as, there has
been multiple changes for building/installing the test suite after the
recent changes in Makefile infrastructure.

The latest version of the test-suite contains 3000+ tests for the Linux
OS and can be found at:
http://ltp.sourceforge.net/,
Latest happenings in LTP can also be found at:
http://ltp.sourceforge.net/wiki/,
http://ltp.sourceforge.net/wikiArchives.php, and,
IRC: irc.freenode.org #ltp.

========================
OCTOBER 2009 Highlights:
========================
1. LTP Makefiles rewrite:(Project started 1.2 years back)
I. To accommodate correct build/installation practices,
II. better integrate Autoconf/Automake with tests for safer
builds,
III. better cross-compilation of LTP sources.
2. 119 test scenarios for EXT4 functionality testing, with 56.1%
lines and 66.4% functions coverage of 2.6.31 EXT4-kernel code,
3. GETUID16, GETUID64, GETEUID16 & PTRACE syscall() test
additions,
4. SIGRETURN01 Test case removal,
5. LCOV Fixes,
6. ILB and CPU Consolidation test cases and fixes in Power
Management (I am sorry to have overlooked this last month),
------------------------------

==============================
OCTOBER 2009 LTP Contributors:
==============================
1. Garrett Cooper,
2. Mike Frysinger,
3. Miao Xie,
4. Poornima Nayak,
5. Liu Bo,
6. Hushan Jia,
7. Pavel Kiryukhin,
8. Cyril Hrubis,
9. Chandru S,
10. Henry Yei,
11. Masatake YAMATO,
12. Nicolas Joly,
13. Gowri,
14. Peter Oberparleiter,
15. Jiri Palecek,
------------------------------

==============================
Note(s) from the Maintainer:
==============================
There is no need for a special explanation of why this month was so
important for LTP. LTP now has all brand new Makefiles. Thanks to Garret
and his tiring work spanning more than an year. And off course not to
forget Mike and Nate for reviewing them deeply before they were
committed.
Another significant development was contribution of the EXT4
functional/regression tests to LTP by Miao. This is something which we
were looking for long. And i would like to bring Peter to everybodyÅ
attention as he single-handedly manages the LTP-Coverage mailing list
providing assistance to everybody having doubts on coverage process.
Thanks peter for doing this seamlessly again-and-again.

Our web site also contains other information such as:
- A Linux test tools matrix
- Technical papers
- How To's on Linux testing
- Code coverage analysis tool.

We would encourage the community to post results to
ltp-results@xxxxxxxxxxxx,
patches, new tests, bugs or comments/questions to ltp-list@xxxxxxxxxxxx,
http://sourceforge.net/tracker/?func=add&group_id=3382&atid=103382 (for
New Bug(s)),
http://sourceforge.net/tracker/?func=add&group_id=3382&atid=303382 (for
New Patch(s)),
http://sourceforge.net/tracker/?func=add&group_id=3382&atid=353382 (for
New Feature Request(s))

Happy testing,
Regards--
Subrata,
1) Log Message:
Fix issues in cpu consolidation verification functions: Arguments passed for cpu consolidation was not used appropriatly. Provided TINFO messages to indicate dependency test failures. Signed-off-by: poornima nayak <mpnayak@xxxxxxxxxxxxxxxxxx>.

Modified File(s):
ltp/testcases/kernel/power_management/pm_include.sh

2) Log Message:
Developed new functions and fixed issues causing ilb test failure: CPU Consolidation verification function is fixed to handle variations in CPU utilization. Threshold is selected based on test conducted on 2.6.31 on dual core, quad core & hyper threaded system. Developed new function to generate hyper threaded siblings list and get job count for hyper threaded system and multisocket system. Modified kernbench workload execution time for 5 min, hence test execution time will be reduced further. Developed new functions to stop workload. Signed-off-by: poornima nayak <mpnayak@xxxxxxxxxxxxxxxxxx>.

Modified File(s):
ltp/testcases/kernel/power_management/lib/sched_mc.py

3) Log Message:
Modified ilb test to run with ebizzy as default workload. Signed-off-by: poornima nayak <mpnayak@xxxxxxxxxxxxxxxxxx>.

Modified File(s):
ltp/testcases/kernel/power_management/ilb_test.py

4) Log Message:
Enhanced & Modified cpu_consolidation testcase: We can pass additional argument performance to use the same testcase for Performance test. Fixed issues in cpu consolidation test. Signed-off-by: poornima nayak <mpnayak@xxxxxxxxxxxxxxxxxx>.

Modified File(s):
ltp/testcases/kernel/power_management/cpu_consolidation.py

5) Log Message:
Modified master script to pass appropriate arguments for cpu consolidation test cases. Signed-off-by: poornima nayak <mpnayak@xxxxxxxxxxxxxxxxxx>.

Modified File(s):
ltp/testcases/kernel/power_management/runpwtests.sh

6) Log Message:
utimes: fix failure of utimes01: In /testcases/kernel/syscalls/utimes, case02 expects "EACCES" error. According to utimes's manual: EACCES times is NULL, the callerâs effective user ID does not match the owner of the file, the caller does not have write access to the file, and the caller is not privileged (Linux: does not have either the CAP_DAC_OVERRIDE or the CAP_FOWNER capability). However, now case02's times is not NULL so that it can only get "EPERM". So, change case02's times to NULL to reach its expect. This patch fixes the problem. Signed-off-by: Liu Bo <liubo-fnst@xxxxxxxxxxxxxx>.

Modified Files:
ltp/testcases/kernel/syscalls/utimes/utimes01.c

7) Log Message:
network: fix rpc use rsh instead of ssh: rpcinfo01 testcase use ssh to run command on remote machine, which will prompt for authentication and password. I think it is a typo because all network tests use rsh. Signed-off-by: Hushan Jia <hjia@xxxxxxxxxx>.

Modified Files:
ltp/testcases/network/rpc/basic_tests/rpcinfo/rpcinfo01

8) Log Message:
Fix false success for exp test: if I get it right there is error in ltp-full-20090831/testcases/misc/math/float/exp_log/genexp.c (see genexp_resfile.patch). Resulting file exp_out.ref is wrong, but it is not catch by test - nan_compare.patch make correct nan comparison. Signed-off-by: Pavel Kiryukhin <vksavl@xxxxxxxxx>.

Modified File(s):
ltp/testcases/misc/math/float/thread_code.c
ltp/testcases/misc/math/float/exp_log/genexp.c

9) Log Message:
IMA tcb policy: Dependency section update. Signed-off-by: Mimi Zohar <zohar@xxxxxxxxxx>.

Modified File(s):
ltp/testcases/kernel/security/integrity/ima/README

10) Log Message:
Remove `verbose mode' from runltp*:
1. This option really doesn't buy us much in runltp*, and we've almost already run out of options anyhow...
2. Correct some ugly indentation.
Signed-off-by: Garrett Cooper <yanegomi@xxxxxxxxx>.

Modified File(s):
ltp/runltp
ltp/runltplite.sh

11) Log Message:
realtime: Remove printing of cpu affinity masks in pi-tests: Some tests under realtime/func/pi-tests in LTP display junk values for cpu affinity masks:
Start ./testpi-2
protocol in mutexattr is 1
Thread 14574 started running with priority 10 on CPU 1110536304
Thread 14574 at start pthread pol 2 pri 10 - Got global lock
Thread 14575 started running with prio 20 on CPU 1084272752
Thread 14576 started running with prio 30 on CPU 1118929008
Thread 14577 started running with prio 40 on CPU 1127321712
Noise Thread 14578 started running with prio 40 on CPU 1099915376

testpi-1 and testpi-4 also report similar wrong values.

The cause of this problem is the incorrect way in which sched_getaffinity output is used in the tests. I think there is no need to call getaffinity() to know the cpu mask, because we test the return value of setaffinity() before that. The following patch removes all calls to sched_affinity() and removes printing cpu affinity masks.
Signed-off-by: Sripathi Kodi <sripathik@xxxxxxxxxx>,
Acked-by: Gowrishankar <gowrishankar.m@xxxxxxxxxx>,

Modified File(s):
ltp/testcases/realtime/func/pi-tests/testpi-1.c
ltp/testcases/realtime/func/pi-tests/testpi-2.c
ltp/testcases/realtime/func/pi-tests/testpi-4.c

12) Log Message:
fix memcg_function_test's bug: testcase_25() uses a wrong "$?" value , Now use "ret" to record the real "$?" value for test. Signed-off-by: Liu Bo <liubo-fnst@xxxxxxxxxxxxxx>.

Modified File(s):
ltp/testcases/kernel/controllers/memcg/functional/memcg_function_test.sh

13) Log Message:
fix possible tst_xxx buffer overrun: Following patch fixes tst_** functions that would segfault for printing messages longer than 2048 chars. Now such message is truncated. Signed-off-by: <chrubis@xxxxxxx>.

Modified File(s):
ltp/lib/tst_res.c

14) Log Message:
Just another printf cleanup: attached patch fixes some more printf formating issues as well as some coding style errors. Signed-off-by: <chrubis@xxxxxxx>.

Modified Files:
ltp/testcases/kernel/fs/proc/proc01.c
ltp/testcases/kernel/fs/stream/stream03.c
ltp/testcases/kernel/mem/mtest06/mmap1.c
ltp/testcases/kernel/mem/shmt/shmt05.c
ltp/testcases/kernel/mem/shmt/shmt09.c
ltp/testcases/kernel/mem/vmtests/data_space.c
ltp/testcases/kernel/mem/vmtests/stack_space.c
ltp/testcases/kernel/sched/nptl/nptl01.c
ltp/testcases/kernel/syscalls/close/close08.c
ltp/testcases/kernel/syscalls/dup/dup01.c
ltp/testcases/kernel/syscalls/dup/dup02.c
ltp/testcases/kernel/syscalls/dup/dup03.c
ltp/testcases/kernel/syscalls/dup/dup04.c
ltp/testcases/kernel/syscalls/dup/dup05.c

15) Log Message:
Remove this test and itÅ reference anywhere as requested by Cyril Hrubis <chrubis@xxxxxxx>. Signed-off-by: Subrata Modak <subrata@xxxxxxxxxxxxxxxxxx>.

Modified Files:
ltp/runtest/syscalls
Removed Files:
ltp/testcases/kernel/syscalls/sigreturn/Makefile
ltp/testcases/kernel/syscalls/sigreturn/sigreturn01.c

16) Message:
Just before doing a CVS diff I noticed that these binary files made it back into the repository:
testcases/ballista/ballista/blexer
testcases/ballista/ballista/bparser
testcases/ballista/ballista/mut.out
This change removes them again: Signed-off-by: Garrett Cooper <yanegomi@xxxxxxxxx>.

Removed Files:
ltp/testcases/ballista/ballista/blexer
ltp/testcases/ballista/ballista/bparser
ltp/testcases/ballista/ballista/mut.out

17) Log Message:
Byte compiled python files should not be in the repo.

Removed Files:
ltp/testcases/network/nfsv4/acl/random_gen.pyc

18) Log Message:
make strptrace() inline to avoid unused warnings

Modified Files:
ltp/testcases/kernel/syscalls/ptrace/spawn_ptrace_child.h

19) Log Message:
tweak how we notify unsupported arches so the code is always compiled

Modified Files:
ltp/testcases/kernel/syscalls/ptrace/ptrace04.c

20) Log Message:
add some simple trace code to help with debugging

Modified Files:
ltp/testcases/kernel/syscalls/ptrace/spawn_ptrace_child.h
Added Files:
ltp/testcases/kernel/syscalls/ptrace/make_syscall_list.sh
ltp/testcases/kernel/syscalls/ptrace/simple_tracer.c syscalls.h

21) Log Message:
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@xxxxxxxxx>

Added Files:
ltp/README.ltp-devel.in
ltp/README.mk-devel
ltp/README.mk-user
ltp/TODO
ltp/ltp-devel.spec.in
ltp/doc/Makefile
ltp/include/mk/automake.mk
ltp/include/mk/config.mk.in
ltp/include/mk/env_post.mk
ltp/include/mk/env_pre.mk
ltp/include/mk/functions.mk
ltp/include/mk/generic_leaf_target.inc
ltp/include/mk/generic_leaf_target.mk
ltp/include/mk/generic_trunk_target.inc
ltp/include/mk/generic_trunk_target.mk
ltp/include/mk/lib.mk
ltp/include/mk/man.mk
ltp/include/mk/testcases.mk
ltp/lib/ltp.pc.in
ltp/m4/ltp-cap.m4
ltp/m4/ltp-numa.m4
ltp/m4/ltp-ptrace.m4
ltp/m4/ltp-quota.m4
ltp/runtest/Makefile
ltp/runtest/ipv6_expect
ltp/runtest/tcp_cmds_expect
ltp/testcases/kernel/containers/Makefile.inc
ltp/testcases/kernel/containers/netns/common.c
ltp/testcases/kernel/controllers/Makefile.inc
ltp/testcases/kernel/controllers/cpuset/Makefile.inc
ltp/testcases/kernel/controllers/cpuset/cpuset_funcs.sh
ltp/testcases/kernel/controllers/freezer/run_freezer.sh
ltp/testcases/kernel/fs/fs-bench/random-access-del-create.c
ltp/testcases/kernel/io/aio/aio02/aio_tio.c
ltp/testcases/kernel/io/aio/aio02/common.h
ltp/testcases/kernel/mem/Makefile.inc
ltp/testcases/kernel/mem/hugetlb/Makefile.inc
ltp/testcases/kernel/sched/hyperthreading/ht_affinity/ht_affinity.c
ltp/testcases/kernel/sched/hyperthreading/ht_affinity/ht_utils.c
ltp/testcases/kernel/sched/hyperthreading/ht_affinity/ht_utils.h
ltp/testcases/kernel/sched/hyperthreading/ht_enabled/ht_enabled.c
ltp/testcases/kernel/sched/hyperthreading/ht_enabled/ht_utils.c
ltp/testcases/kernel/sched/hyperthreading/ht_enabled/ht_utils.h
ltp/testcases/kernel/sched/hyperthreading/ht_interrupt/ht_interrupt.c
ltp/testcases/kernel/sched/hyperthreading/ht_interrupt/ht_utils.c
ltp/testcases/kernel/sched/hyperthreading/ht_interrupt/ht_utils.h
ltp/testcases/kernel/security/selinux-testsuite/tests/Makefile.inc
ltp/testcases/kernel/security/smack/smack_common.sh
ltp/testcases/kernel/syscalls/ipc/Makefile.inc
ltp/testcases/lib/Makefile
ltp/testcases/lib/cmdlib.sh
ltp/testcases/lib/net_cmdlib.sh
ltp/testcases/network/tcp_cmds/Makefile.inc
ltp/testcases/network/tcp_cmds/include/netdefs.h
ltp/testcases/network/tcp_cmds/perf_lan/pingpong6.c
ltp/testscripts/default_runtest_set.awk
ltp/testscripts/ltp-missing-install-files.py
ltp/tools/genload/genload.c

Removed Files:
ltp/README.ltp-devel
ltp/config.mk.in
ltp/ltp-devel.spec
ltp/testcases/kernel/containers/check_for_unshare.c
ltp/testcases/kernel/containers/libclone/libnetns.c
ltp/testcases/kernel/containers/mqns/check_mqns_enabled.c
ltp/testcases/kernel/containers/pidns/check_pidns_enabled.c
ltp/testcases/kernel/controllers/freezer/run.sh
ltp/testcases/kernel/sched/hyperthreading/ht_affinity/HTaffinity.c
ltp/testcases/kernel/sched/hyperthreading/ht_affinity/HTutils.c
ltp/testcases/kernel/sched/hyperthreading/ht_affinity/HTutils.h
ltp/testcases/kernel/sched/hyperthreading/ht_enabled/HTenabled.c
ltp/testcases/kernel/sched/hyperthreading/ht_enabled/HTutils.c
ltp/testcases/kernel/sched/hyperthreading/ht_enabled/HTutils.h
ltp/testcases/kernel/sched/hyperthreading/ht_interrupt/HTinterrupt.c
ltp/testcases/kernel/sched/hyperthreading/ht_interrupt/HTutils.c
ltp/testcases/kernel/sched/hyperthreading/ht_interrupt/HTutils.h
ltp/testcases/kernel/security/filecaps/check_xattr.c
ltp/testcases/kernel/security/filecaps/makenumcapsh.c
ltp/testcases/kernel/security/p9auth/checkp9auth.sh
ltp/testcases/kernel/syscalls/lchown/create_link.mode.sh
ltp/testcases/kernel/syscalls/mount/setuid_test.mode.sh
ltp/testcases/kernel/syscalls/move_pages/move_pages03.mode.sh
ltp/testcases/kernel/syscalls/move_pages/move_pages11.mode.sh
ltp/testcases/kernel/syscalls/utimensat/check_for_utimensat_support.c
ltp/testcases/network/ipv6/Makefile
ltp/testcases/network/ipv6/echo6/Makefile
ltp/testcases/network/ipv6/echo6/createfile.c
ltp/testcases/network/ipv6/echo6/echo601
ltp/testcases/network/ipv6/echo6/echoes6.c
ltp/testcases/network/ipv6/finger6/Makefile
ltp/testcases/network/ipv6/finger6/finger601
ltp/testcases/network/ipv6/perf_lan6/Makefile
ltp/testcases/network/ipv6/perf_lan6/perf_lan6
ltp/testcases/network/ipv6/perf_lan6/pingpong6.c
ltp/testcases/network/ipv6/ping6/Makefile
ltp/testcases/network/ipv6/ping6/ping601
ltp/testcases/network/ipv6/sendfile6/Makefile
ltp/testcases/network/ipv6/sendfile6/SF_Server6
ltp/testcases/network/ipv6/sendfile6/sendfile601
ltp/testcases/network/ipv6/sendfile6/testsf_c6.c
ltp/testcases/network/ipv6/sendfile6/testsf_s6.c
ltp/testcases/network/ipv6/tcpdump6/Makefile
ltp/testcases/network/ipv6/tcpdump6/tcpdump601

Modified Files:
890 of them

22) Log Message:
This proposed change makes linktest.pl into linktest.sh, to avoid missing coverage with symlinks and hardlinks due to a lacking perl dependency on the target host. This change has been outstanding for some time in our private copy of LTP and needed to get checked into CVS. Signed-off-by: Garrett Cooper <yanegomi@xxxxxxxxx>.

Modified Files:
ltp/runtest/fs
ltp/runtest/stress.part1
ltp/testcases/kernel/fs/linktest/Makefile

Added Files:
ltp/testcases/kernel/fs/linktest/linktest.sh

Removed Files:
ltp/testcases/kernel/fs/linktest/linktest.pl

23) Log Message:
Dependency for all was wrong.

Modified File(s):
ltp/testcases/kernel/mem/hugetlb/Makefile.inc

24) Log Message:
The following patch adds a signal() syscall to the ppoll01 testcase. The testcase has a signal handler in it but this signal handler is not registered with the kernel through the signal() syscall. Without the patch the testcase fails when it sends a SIGINT to itself as part of one of the case of the test run. Signed-off-by: Chandru S <chandru@xxxxxxxxxxxxxxxxxx>.

Modified Files:
ltp/testcases/kernel/syscalls/ppoll/ppoll01.c

25) Log Message:
File descriptors not cleaned up: This patch for openfile contains the following changes:
- test output to use tst_resm functions,
- sets ups and cleans up tmp dir properly,
- closes all opened file descriptors before thread exit(fixes nfs issues on removing tmp dir),
Signed-off-by: Henry Yei <hyei@xxxxxxxxxx>. This test opens multiple file descriptors to the same file. Perhaps the author meant to open file handles for separate files?

Modified Files:
ltp/testcases/kernel/fs/openfile/openfile.c


26) Log Message:
Complete the test cases for getuid16: Some of testcases for *16 and *64 system calls have not been completed yet though my makefile trick were introduced by Suburata. *16 may not be so important but I'd like to complete them anyway. The first one is for getuid16. To apply getuid16.patch use -p0 option. Put compat_uid.h at testcases/kernel/syscalls/utils/compat_uid.h. Put compat_16.h. at testcases/kernel/syscalls/getuid/compat_16.h. Signed-off-by: Masatake YAMATO <yamato@xxxxxxxxxx>,

Modified Files:
ltp/testcases/kernel/syscalls/getuid/Makefile
ltp/testcases/kernel/syscalls/getuid/getuid01.c
ltp/testcases/kernel/syscalls/getuid/getuid02.c
ltp/testcases/kernel/syscalls/getuid/getuid03.c
Added Files:
ltp/testcases/kernel/syscalls/getuid/compat_16.h
ltp/testcases/kernel/syscalls/utils/compat_uid.h

27) Log Message:
use default size for blks if parsing df output fails to return numeric argument: This patch for rwtest.sh sets a default size for the number of blocks within the filesystem the test is executing on if parsing "df output" somehow results in a non-numeric value(unexpected df output). Also removes trailing whitespace. Garrett, I've attached the patch with your suggested changes. As for making default_sz 1000000, this was to keep to the original functionality, but fix cases where df output was not expected. If you see the original code, if sz > max, than it is capped at max=1000000 as well. Whether ~ 1GB is a good maximum, I'm not sure. Signed-off-by: Henry Yei <hyei@xxxxxxxxxx>.

Modified Files:
ltp/testcases/kernel/fs/doio/rwtest.sh

28) Log Message:
Move `creating ... directory' to block where: We shouldn't say that we're creating the directory unless we are actually creating the directory. This only leads to potentialconfusion with LTP newbies. Signed-off-by: Garrett Cooper <yanegomi@xxxxxxxxx>.

Modified Files:
ltp/runltp

29) Log Message:
While trying to figure out why entries don't get entered in the exec log, I found the following issue with a malloc call. I also fixed a typo and a whacky indentation item as well. Signed-off-by: Garrett Cooper <yanegomi@xxxxxxxxx>.

Modified File(s):
ltp/pan/ltp-pan.c

30) Log Message:
Check in `creating directory' cosmetic item for runltplite.sh as well, just to be consistent. Signed-off-by: Garrett Cooper <yanegomi@xxxxxxxxx>.

Modified File(s):
ltp/runltplite.sh

31) Log Message:
Remove an accidental circular dependency. Signed-off-by: Garrett Cooper <yanegomi@xxxxxxxxx>.

Modified Files:
ltp/include/mk/automake.mk

32) Log Message:
autoconf 2.61 / m4 1.4.7 don't define the macro, AC_PROG_AR. This needs to be defined in configure.ac, so those versions will continue to function properly. Signed-off-by: Garrett Cooper <yanegomi@xxxxxxxxx>.

Modified Files:
ltp/configure.ac

33) Log Message:
Add copyright tort. Abbreviate. Signed-off-by: Garrett Cooper <yanegomi@xxxxxxxxx>.

Modified Files:
ltp/m4/ltp-unshare.m4

34) Log Message:
AR is defined in configure.ac. Not needed in m4 anymore. Signed-off-by: Garrett Cooper <yanegomi@xxxxxxxxx>.

Removed Files:
ltp/m4/ac_prog_ar.m4

35) Log Message:
1. Fix taskstats.m4 so it no longer punts out warnings.
2. Add ltp-swaponoff.m4 to properly detect when we're running an older kernel and need linux/swap.h (issue found by compiler team at Cisco).
3. Apply fixes according to 2. to testcases/kernel/syscalls/swap*/*.c.
4. Apply Cyril Hrubis's libcpu_set fix to the .in files and cpuset_lib Makefile and .c file.
5. Block off functionality in getdelays.c with proper preprocessor defines, as per issues after encountered after ltp-taskstats.m4 was fixed.
Signed-off-by: Garrett Cooper <yanegomi@xxxxxxxxx>.

Modified Files:
ltp/m4/ltp-taskstats.m4
ltp/testcases/kernel/syscalls/swapon/swapon01.c
ltp/testcases/kernel/syscalls/swapon/swapon02.c
ltp/testcases/kernel/syscalls/swapon/swapon03.c
ltp/testcases/kernel/controllers/cgroup/getdelays.c
ltp/testcases/kernel/controllers/cpuset/cpuset_lib/Makefile
ltp/testcases/kernel/controllers/cpuset/cpuset_lib/libcpuset.c
ltp/testcases/kernel/syscalls/swapoff/swapoff01.c
ltp/testcases/kernel/syscalls/swapoff/swapoff02.c
ltp/testcases/kernel/include/powerpc.in
ltp/testcases/kernel/include/powerpc64.in
ltp/testcases/kernel/include/s390.in
ltp/configure.ac

Added Files:
ltp/m4/ltp-swaponoff.m4

36) Log Message:
config.mk.in: we're no longer installing directly to the destination directory until install is called, so let's not pick up anything CPPFLAGS-wise from that directory. pingpong6.c: get rid of compile warnings, even though the app will eventually go away. Signed-off-by: Garrett Cooper <yanegomi@xxxxxxxxx>.

Modified Files:
ltp/testcases/network/tcp_cmds/perf_lan/pingpong6.c
ltp/include/mk/config.mk.in

37) Log Message:
generic_*target.inc: Revive BUILD_DEPS support so dependencies are built prior to building MAKE_TARGETS, for simplicity of design for the end-user. testcases.mk: Apply proper dependency logic, so submakes no longer require building libltp.a beforehand, or linux_syscall_numbers.h, as they are dependencies of all operations that include testcases.mk. Signed-off-by: Garrett Cooper <yanegomi@xxxxxxxxx>.

Modified Files:
ltp/include/mk/generic_leaf_target.inc
ltp/include/mk/generic_trunk_target.inc
ltp/include/mk/testcases.mk

38) Log Message:
Rename BUILD_DEPS to MAKE_DEPS to be more consistent with MAKE_TARGETS. Bleh... I've dealt with our build system here at Cisco far too much (BUILD_DEPS is the variable name...). Signed-off-by: Garrett Cooper <yanegomi@xxxxxxxxx>.

Modified Files:
ltp/include/mk/generic_leaf_target.inc
ltp/include/mk/generic_trunk_target.inc
ltp/include/mk/testcases.mk


39) Log Message:
1. Make linux_syscall_numbers.h dependent on the .in files so that it can be regenerated if and when the files are touched.
2. Add the ppoll(2) syscall number to all architectures, as per each arch specific unistd.h.
Signed-off-by: Nicolas Joly <njoly@xxxxxxxxxx>,

Modified Files:
ltp/testcases/kernel/include/Makefile
ltp/testcases/kernel/include/ia64.in
ltp/testcases/kernel/include/powerpc.in
ltp/testcases/kernel/include/powerpc64.in
ltp/testcases/kernel/include/s390.in
ltp/testcases/kernel/include/sh.in
ltp/testcases/kernel/include/sparc.in
ltp/testcases/kernel/include/sparc64.in
ltp/testcases/kernel/include/x86_64.in

40) Log Message:
Change use of signal to sigaction for more reliability, fix time issue: Here are three patches the help with the issue where these tests miss a signal and hang. The original patches were created before the latest check-ins by jpalecek@xxxxxx , but I believe they still help. I've regenerated the patches against CVS source and tested on a multi-core machine running MVL6 (x86 2.6.28). The clock_nanosleep01 patch changes signal to the more reliable sigaction(). mq_timedsend01 patch changes from signal() to sigaction() and corrects the time-specs used by the test. Timespec's passed to mq_timedsend are abs time, not relative time. The patch adds the current time to convert relative time to abs time but only if the change won't invalidate the test objective. For example, if the test would have passed -1 for tv_sec to cause an invalid time error, adding the current time would prevent the expected error. mq_timedrecieve01.patch changes from signal() to sigaction() and corrects the time-specs used by the test. Timespec's passed to mq_timedreceive are abs time, not relative time. The patch adds the current time to convert relative time to abs time but only if the change won't invalidate the test objective. For example, if the test would have passed -1 for tv_sec to cause an invalid time error, adding the current time would prevent the expected error. The timeout for SIGINT test is extended to allow time for the signal to arrive.
Original patches provided by Randy Vinson <rvinson@xxxxxxxxxx>,
Signed-off by: Henry Yei <hyei@xxxxxxxxxx>,

Modified Files:
ltp/testcases/kernel/syscalls/clock_nanosleep/clock_nanosleep01.c
ltp/testcases/kernel/syscalls/mq_timedreceive/mq_timedreceive01.c
ltp/testcases/kernel/syscalls/mq_timedsend/mq_timedsend01.c

41) Log Message:
modify fs scenario to use working directory specified by runltp: This patch modifies the fs scenario to remove hard coded paths with /tmp as well as make sure that tests that take directory arguments use the temporary directory specified by runltp. I've chosen to pass in the temporary directory rather than change the tests themselves for certain tests take a path as an argument. Signed-off by: Henry Yei <hyei@xxxxxxxxxx>.

Modified Files:
ltp/runtest/fs

42) Log Message:
Modify tests to honor tmp directory passed into runltp, convert to LTP format: This is a set of patches for tests in the fs runtest file which make use of tst_tmpdir functions or alternatively, the base tmpdir set by the user. Some of the tests have been converted to LTP test format as well. Tests that are changed: fs_di, fs_perms, lftest, linker01, quota_remount_test01, writetest. Signed-off by: Henry Yei <hyei@xxxxxxxxxx>.

Modified Files:
ltp/testcases/kernel/fs/fs_di/fs_di
ltp/testcases/kernel/fs/fs_perms/fs_perms.c
ltp/testcases/kernel/fs/fs_perms/fs_perms_simpletest.sh
ltp/testcases/kernel/fs/quota_remount/quota_remount_test01.sh
ltp/testcases/kernel/fs/racer/fs_racer.sh
ltp/testcases/kernel/io/writetest/writetest.c

43) Log Message:
-laio shouldn't be added to LDLIBS by default. That is just plain wrong.

Modified Files:
ltp/m4/ltp-eventfd.m4

44) Log Message:
1. Honor TMPDIR, as per Henry Yei's note, because linktest.sh doesn't currently do that.
2. Add error checking for cd(1) failure.
3. Suffix the temporary directory with $$ to allow multiple copies to execute on the directory at any given time.
4. Add trap(1)'s to delete the temporary files / directories generated in the script.
gcooper@orangebox /scratch/ltp-dev2/ltp $ testcases/kernel/fs/linktest/linktest.sh 200 1000
linker01 1 TPASS : Symbolic Link Errors: 0
linker01 2 TPASS : Hard Link Errors: 0
Signed-off-by: Garrett Cooper <yanegomi@xxxxxxxxx>

Modified Files:
ltp/testcases/kernel/fs/linktest/linktest.sh

45) Log Message:
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@xxxxxxxxx>

Modified Files:
ltp/testcases/lib/cmdlib.sh

46) Log Message:
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@xxxxxxxxx>.

Modified Files:
ltp/testcases/lib/cmdlib.sh

47) Log Message:
This change (which I'm committing to cvs right now) changes the default to the loopback address:
gcooper@orangebox /scratch/ltp-dev2/ltp/testcases/network/tcp_cmds/ping $ ./ping01
ping01 0 TINFO : ping with 8 16 32 64 128 256 512 1024 2048 4064 ICMP packets
ping01 0 TINFO : calling ping with packet size = 8
ping01 0 TINFO : calling ping with packet size = 16
ping01 0 TINFO : calling ping with packet size = 32
ping01 0 TINFO : calling ping with packet size = 64
ping01 0 TINFO : calling ping with packet size = 128
ping01 0 TINFO : calling ping with packet size = 256
ping01 0 TINFO : calling ping with packet size = 512
ping01 0 TINFO : calling ping with packet size = 1024
ping01 0 TINFO : calling ping with packet size = 2048
ping01 0 TINFO : calling ping with packet size = 4064
ping01 0 TINFO : Cleaning up.
ping01 1 TPASS : Test successful
gcooper@orangebox /scratch/ltp-dev2/ltp/testcases/network/tcp_cmds/ping $
The default can still be changed by specifying the RHOST environment variable. Signed-off-by: Garrett Cooper <yanegomi@xxxxxxxxx>.

Modified Files:
ltp/testcases/network/tcp_cmds/ping/ping01

48) Log Message:
The attached patch fixes my issues, but I can't easily verify whether or not it fixes the positive behavior of the testcase itself under all conditions:
<<<test_start>>>
tag=ima01 stime=1255926150 cmdline=" ima_measurements.sh" contacts="" analysis=exit
<<<test_output>>>
setup 1 TBROK : Failed to mkdir /sys/kernel/security
setup 1 TBROK : Cannot mount securityfs
setup 0 TINFO : CLEAN: removing /tmp/ltp-VdWwjzuH1v/ima
<<<execution_status>>>
initiation_status="ok" duration=0 termination_type=exited termination_id=1 corefile=no cutime=0 cstime=0
<<<test_end>>>
<<<test_start>>>
tag=ima02 stime=1255926150 cmdline=" ima_policy.sh" contacts="" analysis=exit
<<<test_output>>>
setup 1 TBROK : Failed to mkdir /sys/kernel/security
setup 1 TBROK : Cannot mount securityfs
setup 0 TINFO : CLEAN: removing /tmp/ltp-VdWwjzuH1v/ima
<<<execution_status>>>
initiation_status="ok" duration=0 termination_type=exited termination_id=1 corefile=no cutime=0 cstime=2
<<<test_end>>>
<<<test_start>>>
tag=ima03 stime=1255926150 cmdline=" ima_tpm.sh" contacts="" analysis=exit
<<<test_output>>>
setup 1 TBROK : Failed to mkdir /sys/kernel/security
setup 1 TBROK : Cannot mount securityfs
setup 0 TINFO : CLEAN: removing /tmp/ltp-VdWwjzuH1v/ima
<<<execution_status>>>
initiation_status="ok" duration=0 termination_type=exited termination_id=1 corefile=no cutime=1 cstime=1
<<<test_end>>>
<<<test_start>>>
tag=ima04 stime=1255926150 cmdline=" ima_violations.sh" contacts="" analysis=exit
<<<test_output>>>
setup 1 TBROK : Failed to mkdir /sys/kernel/security
setup 1 TBROK : Cannot mount securityfs
setup 0 TINFO : CLEAN: removing /tmp/ltp-VdWwjzuH1v/ima
incrementing stop
<<<execution_status>>>
initiation_status="ok" duration=0 termination_type=exited termination_id=1 corefile=no cutime=0 cstime=1
<<<test_end>>>
Either way, it's a positive move forward so I'm checking this into cvs now. Signed-off-by: Garrett Cooper <yanegomi@xxxxxxxxx>.

Modified Files:
ltp/testcases/kernel/security/integrity/ima/tests/ima_measurements.sh
ltp/testcases/kernel/security/integrity/ima/tests/ima_policy.sh
ltp/testcases/kernel/security/integrity/ima/tests/ima_setup.sh
ltp/testcases/kernel/security/integrity/ima/tests/ima_tpm.sh
ltp/testcases/kernel/security/integrity/ima/tests/ima_violations.sh


49) Log Message:
1. Add check for locale command with exists command in cmdlib.sh
2. Predefine any and all unbound variables so the set -u call in cmdlib.sh will allow the script to continue on to a failure point of some kind (or succeed if all is defined).
Signed-off-by: Garrett Cooper <yanegomi@xxxxxxxxx>.

Modified Files:
ltp/testcases/network/stress/ns-tools/check_envval

50) Log Message:
This is the patch of testcases for the ext4 new features test. It contains multi-block alloc/delayed alloc test, inode version test, journal checksumming test, nanosec timestamps test, online defrag test, persist prealloc test, subdirectory limit test and uninit groups test of ext4. In this test suite, there is two FAIL in the subdirectory limit test. It is because we cann't create more than 32000 subdirectory when block size is small, such as 1024, and the name of every subdirectory is very long, such as every name is 255 bytes. I think it is the bug of the ext4.
Note: Your MUST run configure in the directory testcases/kernel/fs/ext4-new-features to config the tool of ffsb, and specify a partition to be used for test before compiling the tool. The data on the specified partition would be DESTROYED.
Signed-off-by: Miao Xie <miaox@xxxxxxxxxxxxxx>,
Minor-Segmentation-fault-in-ffsb-fixed-by: Subrata Modak <subrata@xxxxxxxxxxxxxxxxxx>,

Modified Files:
ltp/README
ltp/testcases/kernel/fs/Makefile

Added Files:
ltp/runtest/fs_ext4
ltp/testcases/kernel/fs/ext4-new-features/Makefile
ltp/testcases/kernel/fs/ext4-new-features/README
ltp/testcases/kernel/fs/ext4-new-features/configure
ltp/testcases/kernel/fs/ext4-new-features/ext4_funcs.sh
ltp/testcases/kernel/fs/ext4-new-features/run_ext4_test.sh
ltp/testcases/kernel/fs/ext4-new-features/ext4-delalloc-mballoc/Makefile
ltp/testcases/kernel/fs/ext4-new-features/ext4-delalloc-mballoc/ext4-alloc-test.sh
ltp/testcases/kernel/fs/ext4-new-features/ext4-ffsb-config/Makefile
ltp/testcases/kernel/fs/ext4-new-features/ext4-ffsb-config/ffsb-config0
ltp/testcases/kernel/fs/ext4-new-features/ext4-ffsb-config/ffsb-config1
ltp/testcases/kernel/fs/ext4-new-features/ext4-ffsb-config/ffsb-config2
ltp/testcases/kernel/fs/ext4-new-features/ext4-ffsb-config/ffsb-config3
ltp/testcases/kernel/fs/ext4-new-features/ext4-ffsb-config/ffsb-config4
ltp/testcases/kernel/fs/ext4-new-features/ext4-ffsb-config/ffsb-config5
ltp/testcases/kernel/fs/ext4-new-features/ext4-ffsb-config/ffsb-config6
ltp/testcases/kernel/fs/ext4-new-features/ext4-ffsb-config/ffsb-config7
ltp/testcases/kernel/fs/ext4-new-features/ext4-inode-version/Makefile
ltp/testcases/kernel/fs/ext4-new-features/ext4-inode-version/ext4_get_inode_version.sh
ltp/testcases/kernel/fs/ext4-new-features/ext4-inode-version/ext4_inode_version_test.sh
ltp/testcases/kernel/fs/ext4-new-features/ext4-inode-version/ext4_test_inode_version.c
ltp/testcases/kernel/fs/ext4-new-features/ext4-journal-checksum/Makefile
ltp/testcases/kernel/fs/ext4-new-features/ext4-journal-checksum/ext4_journal_checksum.sh
ltp/testcases/kernel/fs/ext4-new-features/ext4-nsec-timestamps/Makefile
ltp/testcases/kernel/fs/ext4-new-features/ext4-nsec-timestamps/ext4_file_time.c
ltp/testcases/kernel/fs/ext4-new-features/ext4-nsec-timestamps/ext4_nsec_timestamps_test.sh
ltp/testcases/kernel/fs/ext4-new-features/ext4-online-defrag/Makefile
ltp/testcases/kernel/fs/ext4-new-features/ext4-online-defrag/e4defrag.c
ltp/testcases/kernel/fs/ext4-new-features/ext4-online-defrag/ext4_online_defrag_test.sh
ltp/testcases/kernel/fs/ext4-new-features/ext4-persist-prealloc/Makefile
ltp/testcases/kernel/fs/ext4-new-features/ext4-persist-prealloc/ext4_persist_prealloc_test.sh
ltp/testcases/kernel/fs/ext4-new-features/ext4-subdir-limit/Makefile
ltp/testcases/kernel/fs/ext4-new-features/ext4-subdir-limit/create_long_dirs.c
ltp/testcases/kernel/fs/ext4-new-features/ext4-subdir-limit/create_short_dirs.c
ltp/testcases/kernel/fs/ext4-new-features/ext4-subdir-limit/ext4_subdir_limit_test.sh
ltp/testcases/kernel/fs/ext4-new-features/ext4-uninit-groups/Makefile
ltp/testcases/kernel/fs/ext4-new-features/ext4-uninit-groups/ext4_uninit_groups_test.sh
ltp/testcases/kernel/fs/ext4-new-features/ffsb-6.0-rc2/AUTHORS
ltp/testcases/kernel/fs/ext4-new-features/ffsb-6.0-rc2/COPYING
ltp/testcases/kernel/fs/ext4-new-features/ffsb-6.0-rc2/INSTALL
ltp/testcases/kernel/fs/ext4-new-features/ffsb-6.0-rc2/LICENSE
ltp/testcases/kernel/fs/ext4-new-features/ffsb-6.0-rc2/Makefile.am
ltp/testcases/kernel/fs/ext4-new-features/ffsb-6.0-rc2/Makefile.in
ltp/testcases/kernel/fs/ext4-new-features/ffsb-6.0-rc2/README
ltp/testcases/kernel/fs/ext4-new-features/ffsb-6.0-rc2/aclocal.m4
ltp/testcases/kernel/fs/ext4-new-features/ffsb-6.0-rc2/cirlist.c
ltp/testcases/kernel/fs/ext4-new-features/ffsb-6.0-rc2/cirlist.h
ltp/testcases/kernel/fs/ext4-new-features/ffsb-6.0-rc2/config.guess
ltp/testcases/kernel/fs/ext4-new-features/ffsb-6.0-rc2/config.h.in
ltp/testcases/kernel/fs/ext4-new-features/ffsb-6.0-rc2/config.sub
ltp/testcases/kernel/fs/ext4-new-features/ffsb-6.0-rc2/configure
ltp/testcases/kernel/fs/ext4-new-features/ffsb-6.0-rc2/configure.in
ltp/testcases/kernel/fs/ext4-new-features/ffsb-6.0-rc2/depcomp
ltp/testcases/kernel/fs/ext4-new-features/ffsb-6.0-rc2/ffsb.h
ltp/testcases/kernel/fs/ext4-new-features/ffsb-6.0-rc2/ffsb_fc.c
ltp/testcases/kernel/fs/ext4-new-features/ffsb-6.0-rc2/ffsb_fs.c
ltp/testcases/kernel/fs/ext4-new-features/ffsb-6.0-rc2/ffsb_fs.h
ltp/testcases/kernel/fs/ext4-new-features/ffsb-6.0-rc2/ffsb_op.c
ltp/testcases/kernel/fs/ext4-new-features/ffsb-6.0-rc2/ffsb_op.h
ltp/testcases/kernel/fs/ext4-new-features/ffsb-6.0-rc2/ffsb_stats.c
ltp/testcases/kernel/fs/ext4-new-features/ffsb-6.0-rc2/ffsb_stats.h
ltp/testcases/kernel/fs/ext4-new-features/ffsb-6.0-rc2/ffsb_tg.c
ltp/testcases/kernel/fs/ext4-new-features/ffsb-6.0-rc2/ffsb_tg.h
ltp/testcases/kernel/fs/ext4-new-features/ffsb-6.0-rc2/ffsb_thread.c
ltp/testcases/kernel/fs/ext4-new-features/ffsb-6.0-rc2/ffsb_thread.h
ltp/testcases/kernel/fs/ext4-new-features/ffsb-6.0-rc2/fh.c
ltp/testcases/kernel/fs/ext4-new-features/ffsb-6.0-rc2/fh.h
ltp/testcases/kernel/fs/ext4-new-features/ffsb-6.0-rc2/filelist.c
ltp/testcases/kernel/fs/ext4-new-features/ffsb-6.0-rc2/filelist.h
ltp/testcases/kernel/fs/ext4-new-features/ffsb-6.0-rc2/fileops.c
ltp/testcases/kernel/fs/ext4-new-features/ffsb-6.0-rc2/fileops.h
ltp/testcases/kernel/fs/ext4-new-features/ffsb-6.0-rc2/install-sh
ltp/testcases/kernel/fs/ext4-new-features/ffsb-6.0-rc2/list.c
ltp/testcases/kernel/fs/ext4-new-features/ffsb-6.0-rc2/list.h
ltp/testcases/kernel/fs/ext4-new-features/ffsb-6.0-rc2/main.c
ltp/testcases/kernel/fs/ext4-new-features/ffsb-6.0-rc2/metaops.c
ltp/testcases/kernel/fs/ext4-new-features/ffsb-6.0-rc2/metaops.h
ltp/testcases/kernel/fs/ext4-new-features/ffsb-6.0-rc2/missing
ltp/testcases/kernel/fs/ext4-new-features/ffsb-6.0-rc2/mkinstalldirs
ltp/testcases/kernel/fs/ext4-new-features/ffsb-6.0-rc2/parser.c
ltp/testcases/kernel/fs/ext4-new-features/ffsb-6.0-rc2/parser.h
ltp/testcases/kernel/fs/ext4-new-features/ffsb-6.0-rc2/public-description
ltp/testcases/kernel/fs/ext4-new-features/ffsb-6.0-rc2/rand.c
ltp/testcases/kernel/fs/ext4-new-features/ffsb-6.0-rc2/rand.h
ltp/testcases/kernel/fs/ext4-new-features/ffsb-6.0-rc2/rbt.c
ltp/testcases/kernel/fs/ext4-new-features/ffsb-6.0-rc2/rbt.h
ltp/testcases/kernel/fs/ext4-new-features/ffsb-6.0-rc2/registration-description
ltp/testcases/kernel/fs/ext4-new-features/ffsb-6.0-rc2/rwlock.c
ltp/testcases/kernel/fs/ext4-new-features/ffsb-6.0-rc2/rwlock.h
ltp/testcases/kernel/fs/ext4-new-features/ffsb-6.0-rc2/stamp-h.in
ltp/testcases/kernel/fs/ext4-new-features/ffsb-6.0-rc2/util.c
ltp/testcases/kernel/fs/ext4-new-features/ffsb-6.0-rc2/util.h
ltp/testcases/kernel/fs/ext4-new-features/ffsb-6.0-rc2/examples/profile_everything

51) Log Message:
Fix several out-of-build tree issues with CVS HEAD found while building on-site with Cisco. Some issues were related to changes I made, and some were related to Masatake's getuid changes as well. Signed-off-by: Garrett Cooper <yanegomi@xxxxxxxxx>.

Modified Files:
ltp/testcases/kernel/syscalls/setgroups/Makefile
ltp/testcases/kernel/syscalls/getuid/Makefile
ltp/testcases/kernel/syscalls/getegid/Makefile
ltp/testcases/kernel/syscalls/utils/compat_16.mk
ltp/testcases/kernel/syscalls/utils/newer_64.mk
ltp/include/mk/env_post.mk
ltp/include/mk/testcases.mk
ltp/testcases/kernel/syscalls/getgid/Makefile

52) Log Message:
- Add additional quota check for RHEL 4.8 as reported by SimonX on #ltp
- Fix m4 file so that items are properly comma delimited, and thus the contents aren't incorrectly concatenated.
Signed-off-by: Garrett Cooper <yanegomi@xxxxxxxxx>.

Modified Files:
ltp/m4/ltp-quota.m4
ltp/testcases/kernel/syscalls/quotactl/quotactl01.c

53) Log Message:
Fix indentation and a compile error noted by SimonXu on #ltp. Signed-off-by: Garrett Cooper <yanegomi@xxxxxxxxx>.

Modified Files:
ltp/testcases/kernel/syscalls/set_thread_area/set_thread_area.h
ltp/testcases/kernel/syscalls/set_thread_area/set_thread_area01.c
ltp/testcases/kernel/syscalls/set_thread_area/set_thread_area02.c

54) Log Message:
Fix two broken Makefiles reported by Gowri at IBM. Signed-off-by: Gowri <gomuthuk@xxxxxxxxxxxxxxxxxx>, Reviewed-by: Garrett Cooper <yanegomi@xxxxxxxxx>,

Modified Files:
ltp/testcases/realtime/perf/Makefile
ltp/testcases/realtime/stress/Makefile

55) Log Message:
Check in Makefile, which partially fixes issue with realtime component build breakage. Originally reported by Gowri (<gomuthuk@xxxxxxxxxxxxxxxxxx>) at IBM. Signed-off-by: Gowrishankar <gowrishankar.m@xxxxxxxxxx>, Tested-by: Gowrishankar <gowrishankar.m@xxxxxxxxxx>, Acked-by: Sripathi Kodi <sripathik@xxxxxxxxxx>,

Modified Files:
ltp/testcases/realtime/Makefile

56) Log Message:
The format string quantifier is incorrect, and thus the compiler prints out a warning. This changes the format quantifier to %ld to remove the compiler warning. Signed-off-by: Gowrishankar <gowrishankar.m@xxxxxxxxxx>, Tested-by: Gowrishankar <gowrishankar.m@xxxxxxxxxx>, Acked-by: Sripathi Kodi <sripathik@xxxxxxxxxx>,

Modified Files:
ltp/testcases/realtime/lib/libstats.c

57) Log Message:
Fix a typo and a warning related to unchecked results from asprintf, punted by from the compiler. Signed-off-by: Garrett Cooper <yanegomi@xxxxxxxxx>.

ltp/testcases/realtime/lib/librttest.c

58) Log Message:
Add a default config.mk file to ease use for non-autoconf users. Signed-off-by: Garrett Cooper <yanegomi@xxxxxxxxx>.

Added Files:
ltp/include/mk/config.mk.default

59) Log Message:
On second thought, the compiler-related variables should be uncommented. Signed-off-by: Garrett Cooper <yanegomi@xxxxxxxxx>.

Modified Files:
ltp/include/mk/config.mk.default

60) Log Message:
1. Get rid of useless documentation (the directions are already in INSTALL).
2. Tell people to read INSTALL instead.
Signed-off-by: Garrett Cooper <yanegomi@xxxxxxxxx>.

Modified Files:
ltp/Makefile
Removed Files:
ltp/README.mk-user

61) Log Message:
Some fixes to make swap* stricter with including sys/swap.h, and defining MAX_SWAPFILES, that were hanging out in my dev branch that weren't checked in. Signed-off-by: Garrett Cooper <yanegomi@xxxxxxxxx>.

Modified Files:
ltp/testcases/kernel/syscalls/swapon/swapon01.c
ltp/testcases/kernel/syscalls/swapon/swapon02.c
ltp/testcases/kernel/syscalls/swapon/swapon03.c
ltp/testcases/kernel/syscalls/swapoff/swapoff01.c
ltp/testcases/kernel/syscalls/swapoff/swapoff02.c

62) Log Message:
Update the documentation for building and installing LTP as per the Makefile infrastructure changes. Signed-off-by: Garrett Cooper <yanegomi@xxxxxxxxx>.

Modified Files:
ltp/INSTALL
ltp/README.mk-devel
ltp/README.ltp-devel.in

63) Log Message:
testcases.mk: Add a freebie compile for the apicmds, if needed so tests can be run before install. config.mk.in: Remove $(DESTDIR)/$(libdir) from the LDFLAGS, because we're no longer installing libraries in all. Signed-off-by: Garrett Cooper <yanegomi@xxxxxxxxx>.

Modified Files:
ltp/include/mk/testcases.mk
ltp/include/mk/config.mk.in

64) Log Message:
1. Get rid of psuedo-autoconf scripts in testcases/realtime/scripts.
2. Integrate testcases/realtime with autoconf.
3. Fix compilation, according to report made by Gowri at IBM.
Signed-off-by: Garrett Cooper <yanegomi@xxxxxxxxx>.

Modified Files:
ltp/testcases/realtime/func/rt-migrate/rt-migrate.c
ltp/testcases/realtime/lib/Makefile
ltp/testcases/realtime/func/pi-tests/Makefile
ltp/testcases/realtime/func/pi-tests/sbrk_mutex.c
ltp/testcases/realtime/scripts/check_pi.sh
ltp/testcases/realtime/scripts/check_robust.sh
ltp/testcases/realtime/Makefile
ltp/testcases/realtime/config.mk
ltp/include/mk/automake.mk
ltp/testcases/realtime/include/librttest.h
ltp/testcases/realtime/m4/GNUmakefile
ltp/testcases/realtime/m4/Makefile.am
ltp/testcases/realtime/m4/check.m4
Added Files:
ltp/testcases/realtime/configure.in

65) Log Message:
Get rid of redundant XOPEN2K #define (_GNU_SOURCE covers this). Signed-off-by: Garrett Cooper <yanegomi@xxxxxxxxx>.

Modified Files:
ltp/testcases/realtime/func/rt-migrate/rt-migrate.c

66) Log Message:
Make sure the end-user knows that they need to run make autotools from $(top_srcdir), to avoid potential confusion. Signed-off-by: Garrett Cooper <yanegomi@xxxxxxxxx>.

Modified Files:
ltp/INSTALL

67) Log Message:
I thought I removed the recursive LDLIBS definition sneak in. Oh well... Signed-off-by: Garrett Cooper <yanegomi@xxxxxxxxx>.

Modified Files:
ltp/testcases/realtime/lib/Makefile

68) Log Message:
Accidentally nuking your .c files when running clean isn't a good thing. Signed-off-by: Garrett Cooper <yanegomi@xxxxxxxxx>.

Modified Files:
ltp/testcases/realtime/func/pi-tests/Makefile

69) Log Message:
lcov: improve derive-func-data option
- rewrite graph file handling
- make derive data look at all lines belonging to a function to find out
whether
it has been hit or not
- introduce --debug option to better debug problems with graph files
Peter Oberparleiter <oberpapr@xxxxxxxxxxxxxxxxxxxxx>.

Modified File(s):
ltp/utils/analysis/lcov/bin/geninfo lcov

70) Log Message:
Fix temporary file creation in mmapstress tests: these are two little fixes of the mmapstress test:
- the mkstemp() function returns -1 on error; the tests treat 0 as error instead,
- mkstemp() returns a file descriptor; no need to open the file once more later,
Signed-off-by: Jiri Palecek <jpalecek@xxxxxx>.

Modified Files:
ltp/testcases/kernel/mem/mmapstress/mmapstress02.c
ltp/testcases/kernel/mem/mmapstress/mmapstress05.c

71) Log Message:
Change errno reporting mechanism to TERRNO/TTERRNO in msgctl tests: The TERRNO/TTERRNO flags offer more information than the manual errno output used previously in the tests. This patch changes the tst_resm(XXX, ..., errno) and similar statements to tst_resm(XXX|TERRNO, ...). Signed-off-by: Jiri Palecek <jpalecek@xxxxxx>.

Modified Files:
ltp/testcases/kernel/syscalls/ipc/msgctl/msgctl01.c
ltp/testcases/kernel/syscalls/ipc/msgctl/msgctl02.c
ltp/testcases/kernel/syscalls/ipc/msgctl/msgctl03.c
ltp/testcases/kernel/syscalls/ipc/msgctl/msgctl04.c
ltp/testcases/kernel/syscalls/ipc/msgctl/msgctl05.c
ltp/testcases/kernel/syscalls/ipc/msgctl/msgctl06.c
ltp/testcases/kernel/syscalls/ipc/msgctl/msgctl07.c
ltp/testcases/kernel/syscalls/ipc/msgctl/msgctl08.c
ltp/testcases/kernel/syscalls/ipc/msgctl/msgctl09.c
ltp/testcases/kernel/syscalls/ipc/msgctl/msgctl10.c
ltp/testcases/kernel/syscalls/ipc/msgctl/msgctl11.c

72) Log Message:
Fix some bashisms: this is another patch fixing bashisms in LTP tests (the fixes are more or less the same as in the previous patches, except for a few exceptions). Note that the patch is not complete, in the sense that there may remain further bashisms in the source even after applying the patch (like use of arrays, which is visible even from this patch). Signed-off-by: Jiri Palecek <jpalecek@xxxxxx>.

Modified Files:
ltp/testcases/kernel/controllers/cgroup_fj/cgroup_fj_utility.sh
ltp/testcases/kernel/controllers/cgroup_fj/run_cgroup_test_fj.sh
ltp/testcases/kernel/controllers/cpuctl_fj/run_cpuctl_test_fj.sh
ltp/testcases/kernel/controllers/memcg/functional/memcg_function_test.sh
ltp/testcases/kernel/controllers/memcg/stress/memcg_stress_test.sh
ltp/testcases/kernel/fs/acls/acl_test01
ltp/testcases/kernel/fs/fs-bench/modaltr.sh
ltp/testcases/kernel/fs/fs_di/fs_di
ltp/testcases/kernel/fs/mongo/test.sh
ltp/testcases/kernel/hotplug/cpu_hotplug/functional/hotplug02.sh
ltp/testcases/kernel/hotplug/cpu_hotplug/functional/hotplug03.sh
ltp/testcases/kernel/hotplug/cpu_hotplug/functional/hotplug04.sh
ltp/testcases/kernel/hotplug/cpu_hotplug/functional/hotplug06.sar.sh
ltp/testcases/kernel/hotplug/cpu_hotplug/functional/hotplug06.top.sh
ltp/testcases/kernel/hotplug/cpu_hotplug/functional/hotplug07.sh
ltp/testcases/network/can/filter-tests/run_ltp-can_tests.sh
ltp/testcases/network/tcp_cmds/netstat/netstat01

73) Log Message:
Printf-style format string warnings (TEST_RETURN related): this patch fixes some printf-format string warnings, concerning the TEST_RETURN variable. TEST_RETURN is declared as "long", so it is advisable to use "%ld" in printf format string to avoid undefined behaviour. Note that this patch is not complete - it fixes the warnings in files near the beginning of the alphabet only. Signed-off-by: Jiri Palecek <jpalecek@xxxxxx>.

Modified Files:
ltp/testcases/kernel/fs/fs-bench/modaltr.sh
ltp/testcases/kernel/fs/mongo/test.sh
ltp/testcases/kernel/syscalls/fadvise/posix_fadvise01.c
ltp/testcases/kernel/syscalls/fadvise/posix_fadvise02.c
ltp/testcases/kernel/syscalls/fadvise/posix_fadvise03.c
ltp/testcases/kernel/syscalls/fadvise/posix_fadvise04.c
ltp/testcases/kernel/syscalls/fchmod/fchmod01.c
ltp/testcases/kernel/syscalls/fchmod/fchmod06.c
ltp/testcases/kernel/syscalls/fchown/fchown01.c
ltp/testcases/kernel/syscalls/fchown/fchown04.c
ltp/testcases/kernel/syscalls/fcntl/fcntl02.c
ltp/testcases/kernel/syscalls/fcntl/fcntl03.c
ltp/testcases/kernel/syscalls/fcntl/fcntl04.c
ltp/testcases/kernel/syscalls/fcntl/fcntl05.c
ltp/testcases/kernel/syscalls/fcntl/fcntl08.c
ltp/testcases/kernel/syscalls/fcntl/fcntl09.c
ltp/testcases/kernel/syscalls/fcntl/fcntl10.c
ltp/testcases/kernel/syscalls/fcntl/fcntl22.c
ltp/testcases/kernel/syscalls/fcntl/fcntl23.c
ltp/testcases/kernel/syscalls/fcntl/fcntl24.c
ltp/testcases/kernel/syscalls/fcntl/fcntl25.c
ltp/testcases/kernel/syscalls/fcntl/fcntl26.c
ltp/testcases/kernel/syscalls/fdatasync/fdatasync02.c
ltp/testcases/kernel/syscalls/fork/fork01.c
ltp/testcases/kernel/syscalls/fpathconf/fpathconf01.c
ltp/testcases/kernel/syscalls/fstatfs/fstatfs01.c
ltp/testcases/kernel/syscalls/fsync/fsync01.c
ltp/testcases/kernel/syscalls/get_robust_list/get_robust_list01.c
ltp/testcases/kernel/syscalls/getdomainname/getdomainname01.c
ltp/testcases/kernel/syscalls/getegid/getegid01.c
ltp/testcases/kernel/syscalls/getegid/getegid02.c
ltp/testcases/kernel/syscalls/geteuid/geteuid01.c
ltp/testcases/kernel/syscalls/getgid/getgid01.c
ltp/testcases/kernel/syscalls/getgid/getgid03.c
ltp/testcases/kernel/syscalls/gethostname/gethostname01.c
ltp/testcases/kernel/syscalls/getpgrp/getpgrp01.c
ltp/testcases/kernel/syscalls/getpid/getpid01.c
ltp/testcases/kernel/syscalls/getppid/getppid01.c
ltp/testcases/kernel/syscalls/getpriority/getpriority01.c
ltp/testcases/kernel/syscalls/getpriority/getpriority02.c
ltp/testcases/kernel/syscalls/getrusage/getrusage01.c
ltp/testcases/kernel/syscalls/getrusage/getrusage02.c
ltp/testcases/kernel/syscalls/getsockname/getsockname01.c
ltp/testcases/kernel/syscalls/getsockopt/getsockopt01.c
ltp/testcases/kernel/syscalls/gettid/gettid01.c
ltp/testcases/kernel/syscalls/getuid/getuid01.c
ltp/testcases/kernel/syscalls/getuid/getuid02.c
ltp/testcases/kernel/syscalls/getuid/getuid03.c
ltp/testcases/kernel/syscalls/io_cancel/io_cancel01.c
ltp/testcases/kernel/syscalls/io_destroy/io_destroy01.c
ltp/testcases/kernel/syscalls/io_getevents/io_getevents01.c
ltp/testcases/kernel/syscalls/io_setup/io_setup01.c
ltp/testcases/kernel/syscalls/io_submit/io_submit01.c
ltp/testcases/kernel/syscalls/ioperm/ioperm02.c
ltp/testcases/kernel/syscalls/iopl/iopl01.c
ltp/testcases/kernel/syscalls/iopl/iopl02.c
ltp/testcases/kernel/syscalls/lchown/lchown02.c
ltp/testcases/kernel/syscalls/link/link02.c
ltp/testcases/kernel/syscalls/link/link03.c
ltp/testcases/kernel/syscalls/link/link04.c
ltp/testcases/kernel/syscalls/link/link05.c
ltp/testcases/kernel/syscalls/link/link06.c
ltp/testcases/kernel/syscalls/link/link07.c
ltp/testcases/kernel/syscalls/listen/listen01.c
ltp/testcases/kernel/syscalls/llseek/llseek02.c
ltp/testcases/kernel/syscalls/lseek/lseek02.c
ltp/testcases/kernel/syscalls/lseek/lseek03.c
ltp/testcases/kernel/syscalls/lseek/lseek04.c
ltp/testcases/kernel/syscalls/lseek/lseek05.c
ltp/testcases/kernel/syscalls/lseek/lseek06.c
ltp/testcases/kernel/syscalls/lseek/lseek08.c
ltp/testcases/kernel/syscalls/lseek/lseek09.c
ltp/testcases/kernel/syscalls/lseek/lseek10.c
ltp/testcases/kernel/syscalls/lstat/lstat01.c
ltp/testcases/kernel/syscalls/lstat/lstat02.c
ltp/testcases/kernel/syscalls/madvise/madvise01.c
ltp/testcases/kernel/syscalls/madvise/madvise02.c
ltp/testcases/kernel/syscalls/madvise/madvise03.c
ltp/testcases/kernel/syscalls/mlock/mlock01.c
ltp/testcases/kernel/syscalls/mlock/mlock02.c
ltp/testcases/kernel/syscalls/times/times01.c
ltp/testcases/kernel/syscalls/wait/wait02.c
ltp/testcases/network/tcp_cmds/netstat/netstat01
ltp/testcases/kernel/fs/fs-bench/modaltr.sh
ltp/testcases/kernel/fs/mongo/test.sh
ltp/testcases/network/tcp_cmds/netstat/netstat01

74) Log Message:
mem/hugetlb: fix failure of hugemmap03: 1) In mmap's manual, The starting address for the new mapping is specified in addr. So, if mmap's argument "addr" is reachable, the mmap will creates a new mapping in the virtual address space of the call-ing process. The test hugemmap03 will test that a normal page cannot be mapped into a high memory region. This infers that "addr" should be higher for 64-bit mode. 2) The test use "-I2" option, and this not only causes TFAIL's loop, but also causes TPASS's loop. For TFAIL, loop is deserved, nor for TPASS. This patch fixed these problems. Signed-off-by: Liu Bo <liubo2009@xxxxxxxxxxxxxx>.

Modified Files:
ltp/testcases/kernel/mem/hugetlb/hugemmap/hugemmap03.c

75) Log Message:
Some fixes of shell scripts of tests: this patch fixes some minor bugs in the code of LTP shell scripts:
- quote arguments of test(1) in some places concerning redhat detection,
- don't execute the result of type(1), it makes no sense - even more when the output of it should be redirected,
Signed-off-by: Jiri Palecek <jpalecek@xxxxxx>.

Modified Files:
ltp/testcases/commands/ade/file/file_test.sh
ltp/testcases/commands/cron/cron_allow01
ltp/testcases/commands/cron/cron_deny01
ltp/testcases/commands/cron/cron_pos_tests.sh
ltp/testcases/commands/mail/mail_tests.sh
ltp/testcases/commands/su/su01
ltp/testcases/network/tcp_cmds/rdist/rdist01

76) Log Message:
Complete the test cases for geteuid16: Another small patch to complete the test cases for *16. Put compat_16.h to testcases/kernel/syscalls/geteuid. Signed-off-by: Masatake YAMATO <yamato@xxxxxxxxxx>.

Modified Files:
ltp/testcases/kernel/syscalls/geteuid/Makefile
ltp/testcases/kernel/syscalls/geteuid/geteuid01.c
Added Files:
ltp/testcases/kernel/syscalls/geteuid/compat_16.h

77) Log Message:
Fix failures messages on multi socket hyper threaded system. Signed-off-by: poornima nayak <mpnayak@xxxxxxxxxxxxxxxxxx>.

Modified Files:
ltp/testcases/kernel/power_management/runpwtests.sh

78) Log Message:
Patch to remove hard coded cpu governers. Signed-off-by: poornima nayak <mpnayak@xxxxxxxxxxxxxxxxxx>.

Modified Files:
ltp/testcases/kernel/power_management/pwkm_load_unload.sh

79) Log Message:
Garret added a new testcase for ptrace() syscall: The following calls ptrace(PTRACE_TRACEME, 0) for all signals and validates that all signals apart from SIGKILL are properly intercepted and WIFSTOPPED remains true, and SIGKILL is properly treated as WIFSIGNALED() && WTERMSIG() returns SIGKILL.I looked at it again this weekend, and my criterion for kill (..., 0) was incorrect. The newer version passes, and tests correct criterion, as per the manpage:
1. This test app helped unroot another issue with our custom Linux platform here at Cisco,
2. This test application does function properly on a Gentoo Linux based x86_64 / 2.6.30 kernel however, so it's an issue with our OS platform,
I will add this application to testcases/kernel/syscalls/ptrace, if someone else sees the value in it. I agree that additional error checking could be added for the calls to kill(2)... I just whipped this up in 45 mins after finding this strange behavior on our platform. Signed-off-by: Garrett Cooper <yanegomi@xxxxxxxxx>.

Modified Files:
ltp/runtest/syscalls
Added Files:
ltp/testcases/kernel/syscalls/ptrace/ptrace05.c

80) Log Message:
lcov: remove unnecessary warning

Modified Files:
ltp/utils/analysis/lcov/bin/geninfo

81) Log Message:
lcov: fix problem with matching filename
- used correct source for filenames
- converted match_filenames to portable version,

Modified Files:
ltp/utils/analysis/lcov/bin/geninfo

82) Log Message:
lcov: remove further unneeded warning + use correct source for list of filenames

Modified Files:
ltp/utils/analysis/lcov/bin/geninfo

83) Log Message:
lcov: update README to mention required -lgcov switch during linking

Modified File(s):
ltp/utils/analysis/lcov/README

84) Log Message:
lcov: further clarification in the README

Modified Files:
ltp/utils/analysis/lcov/README

85) Log Message:
Fix a bashism that was pointed out in other files by Jiri Palecek. Signed-off-by: Garrett Cooper <yanegomi@xxxxxxxxx>.

Modified Files:
ltp/testcases/lib/cmdlib.sh

86) Log Message:
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@xxxxxxxxx>.

Modified Files:
ltp/testcases/lib/cmdlib.sh

87) Log Message:
Stupid Garrett. I need to increment the value... Signed-off-by: Garrett Cooper <yanegomi@xxxxxxxxx>.

Modified Files:
ltp/testcases/lib/mdlib.sh