Fully spell out the .sh -> non-.sh target cp

Technically the target is not an implicit target, so bmake/pmake
correctly interpreted the spec by not setting $< to a particular
value.

Signed-off-by: Garrett Cooper <yanegomi@gmail.com>
mount/mount05.c: new case to test MS_BIND of mount

Create new test case for MS_BIND of mount.

Checking if file is visible from target mountpoint after bind mount.

Signed-off-by: DAN LI <li.dan@cn.fujitsu.com>
Acked-by: Cyril Hrubis <chrubis@suse.cz>
Reviewed-by: Wanlong Gao <gaowanlong@cn.fujitsu.com>
vma01: check kernel version

This is just a kernel behaviour change to avoid the possible
scalability issue, not a real kernel bug. So, check the kernel
version.

Signed-off-by: Wanlong Gao <gaowanlong@cn.fujitsu.com>
Acked-by: Cyril Hrubis <chrubis@suse.cz>
clock_settime03: do not set outside address space tp

Whether CLOCK_PROCESS_CPUTIME_ID and CLOCK_THREAD_CPUTIME_ID is
supported or not, they are not setable in Linux. So, we just
do not set the outside address space tp, they will always return
EINVAL.

Signed-off-by: Wanlong Gao <gaowanlong@cn.fujitsu.com>
Acked-by: Cyril Hrubis <chrubis@suse.cz>
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>
runltp: try to create ext3 loop device if creating ext4 failed

Try to create ext3 loop device if creating ext4 failed since
some old system can't support ext4 file system or the root
file system still use ext3 file system.

Signed-off-by: Wanlong Gao <gaowanlong@cn.fujitsu.com>
Acked-by: Cyril Hrubis <chrubis@suse.cz>
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>
syscalls/inotify03: Cleaup.

Remove the absurd tflag allocation + cleanup.

Signed-off-by: Cyril Hrubis <chrubis@suse.cz>
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>
mount/mount05.c: Add mode argument to open call.

This patch fixes this build error on Ubuntu introduced with commit
9146d83d410dc060124344fcbcdbf46280b674a2.

In file included from /usr/include/fcntl.h:279:0,
                 from mount05.c:31:
In function ‘open’,
    inlined from ‘main’ at mount05.c:94:12:
/usr/include/x86_64-linux-gnu/bits/fcntl2.h:50:24: error: call to ‘__open_missing_mode’ declared with attribute error: open with O_CREAT in second argument needs 3 arguments

Signed-off-by: Vinson Lee <vlee@twitter.com>
Signed-off-by: Wanlong Gao <gaowanlong@cn.fujitsu.com>
flock03.c: fixes a typo when compiling with UCLINUX=1

Corrects FILENAME to FILE_NAME, and removes some trailing white-spaces in
empty lines.

Signed-off-by: Benoit Marcot <benoit.marcot@arm.com>
Signed-off-by: Wanlong Gao <gaowanlong@cn.fujitsu.com>
sssd-lib.sh: Use lib to restart sssd service

Use restart_daemon() to restart sssd service.

Signed-off-by: Peng Haitao <penght@cn.fujitsu.com>
Signed-off-by: Wanlong Gao <gaowanlong@cn.fujitsu.com>
sssd-lib.sh: fix a bug of sssd daemon is not started

If sssd daemon is not started, sssd daemon should be kept stopped.

Signed-off-by: Peng Haitao <penght@cn.fujitsu.com>
Signed-off-by: Wanlong Gao <gaowanlong@cn.fujitsu.com>
mount/mount03.c: clean up

Clean up mount03.c:
    xxx func() -> xxx func(void)

    clean up setup()

Signed-off-by: DAN LI <li.dan@cn.fujitsu.com>
Acked-by: Cyril Hrubis <chrubis@suse.cz>
Signed-off-by: Wanlong Gao <gaowanlong@cn.fujitsu.com>
mount/mount03.c: Test feature MS_NOATIME of mount(2)

Additional test for feature MS_NOATIME.

Signed-off-by: DAN LI <li.dan@cn.fujitsu.com>
Acked-by: Cyril Hrubis <chrubis@suse.cz>
Signed-off-by: Wanlong Gao <gaowanlong@cn.fujitsu.com>
runltp: Remove useless rm in nonexistent dir

The TEMP variable is not used at all and even
if the code was fixed to use TMP instead the
whole TMP is removed right after.

Signed-off-by: Sedat Dilek <sedat.dilek@gmail.com>
Signed-off-by: Cyril Hrubis <chrubis@suse.cz>
lib: add tst_kvercmp2 to compare specific vendor extra kernel versions

We can now test specific verdor kernel versions in
test cases like:

static struct tst_kern_exv exv[] = {
	{"RHEL6", "234"},
	{"SLES10", "0.91"},
	{NULL, NULL}
};

...

	if (tst_kvercmp2(2, 6, 25, exv) < 0)
		...
...

Thank you for Cyril's suggestion.

Signed-off-by: Wanlong Gao <gaowanlong@cn.fujitsu.com>
Acked-by: Cyril Hrubis <chrubis@suse.cz>
Reviewed-by: Caspar Zhang <caspar@casparzhang.com>
Reviewed-by: Jan Stancek <jstancek@redhat.com>
syslog-lib.sh: Use lib to restart syslog service

Use restart_daemon() to restart syslog service.

Signed-off-by: Peng Haitao <penght@cn.fujitsu.com>
Reviewed-by: Jan Stancek <jstancek@redhat.com>
Reviewed-by: Wanlong Gao <gaowanlong@cn.fujitsu.com>
Tested-by: Jan Stancek <jstancek@redhat.com>
configure: add configure checks to compile kernel modules

There're new configure options added to tune modules building process.
New m4 function tries to determine if kernel-devel package is available
and sets makefile's variables (WITH_MODULES, ...) accordingly.

Signed-off-by: Alexey Kodanev <alexey.kodanev@oracle.com>
Acked-by: Cyril Hrubis <chrubis@suse.cz>
fw_load: new test of device firmware loading

This test checks the device firmware loading. Since Linux 3.7 it can be loaded
directly (by-pass udev). The test consists of the two parts: userspace and
kernelspace.

Signed-off-by: Alexey Kodanev <alexey.kodanev@oracle.com>
Acked-by: Cyril Hrubis <chrubis@suse.cz>