History log of /external/ltp/testcases/kernel/syscalls/utimensat/utimensat_tests.sh
Revision Date Author Comments (<<< Hide modified files) (Show modified files >>>)
467f1601d5c44207181575c291af889d59b1464d 26-Apr-2016 Cyril Hrubis <chrubis@suse.cz> syscalls/utimensat: Remove +a on temp file

Remove append only (a) attribute from temporary file after we check that
that chattr is supported so that the file can be removed in cleanup.

Fixes #62

Signed-off-by: Cyril Hrubis <chrubis@suse.cz>
/external/ltp/testcases/kernel/syscalls/utimensat/utimensat_tests.sh
9af831cdf6d2328e6f6fcd85dd1d5523fd8681d3 29-Apr-2015 Cui Bixuan <cuibixuan@huawei.com> syscalls/utimensat01: "chattr" command error

The "chattr" command in case failed in some file system(such as memory fs):
'chattr: Inappropriate ioctl for device while reading flags on'

I learn that chattr command only can be used in ext2 or ext3 (ext4 is ok now).
So we check it before running.

Signed-off-by: Cui Bixuan <cuibixuan@huawei.com>
/external/ltp/testcases/kernel/syscalls/utimensat/utimensat_tests.sh
ac1a51b35c5973f91bf9b5a55e04114308ddb19b 24-Apr-2015 Cui Bixuan <cuibixuan@huawei.com> syscalls/utimensat01: Use test.sh library for test case

Using test.sh in the case:
* Change the tst_resm() followed by exit to tst_brkm and remove the exit
* Changing the check_result() to call tst_resm TPASS and the test_failed() which is
called by check_result() to call tst_resm TFAIL
* Delete the exit -1 at the end of the test and change exit to tst_exit at the
very end of the test

Signed-off-by: Cui Bixuan <cuibixuan@huawei.com>
/external/ltp/testcases/kernel/syscalls/utimensat/utimensat_tests.sh
6d59a51ec789ec67de9fd68aadf2b3fd0c7740c8 16-Apr-2013 Shuang Qiu <shuang.qiu@oracle.com> utimensat_tests.sh: Replace "-E" option for sed.

The '-E' option is obsoleted and is no longer supported by sed in most
Linux distributions. Use '-r' instead.

Signed-off-by: Shuang Qiu <shuang.qiu@oracle.com>
/external/ltp/testcases/kernel/syscalls/utimensat/utimensat_tests.sh
383956b3f65d3c0e3c9112a9b4f2731c553bf423 16-Jul-2012 Garrett Cooper <yanegomi@gmail.com> Make it clear what each test teardown is trying to achieve

Signed-off-by: Garrett Cooper <yanegomi@gmail.com>
/external/ltp/testcases/kernel/syscalls/utimensat/utimensat_tests.sh
da6355fd3df3b4be625d1e7bb0030e892755e71c 16-Jul-2012 Garrett Cooper <yanegomi@gmail.com> Simplify "sudoers_clean" logic

cleanup_test is only invoked from within a trap that's called when
/etc/sudoers needs to be cleaned up; thus there's no need to
conditionalize whether or not the file needs to be cleaned up.

Signed-off-by: Garrett Cooper <yanegomi@gmail.com>
/external/ltp/testcases/kernel/syscalls/utimensat/utimensat_tests.sh
af9369722672d054802fe69ba517959bc324c705 16-Jul-2012 Garrett Cooper <yanegomi@gmail.com> Fix corner cases with utimensat testcase script

- Fix sudoers check (simply put, if you can't read sudoers, you
probably need to fix your test install).
- Simplify sudo -n check so that it can distinguish failing to call sudo
from -n existing.
- Properly restore sudo; the previous version may or may not have had
requiretty commented out, so rather than guessing what the previous
setting was, just use the backed up version of sudoers.
- Replace a few ad hoc echo calls with calls to tst_resm instead.

Signed-off-by: Garrett Cooper <gcooper@forza.west.isilon.com>
/external/ltp/testcases/kernel/syscalls/utimensat/utimensat_tests.sh
5df02607efc4d1e65ae470dc87903c4e3c07352a 21-Dec-2010 Garrett Cooper <yanegomi@gmail.com> Add usctest.h, fix test.h include.

Signed-off-by: Garrett Cooper <yanegomi@gmail.com>
/external/ltp/testcases/kernel/syscalls/utimensat/utimensat_tests.sh
d31e427199635809815390cda5141719425c1002 06-Sep-2010 Subrata Modak <subratamodak@subratamodak.linux.ibm.com> Most automated testing systems have no tty when running tests, so the utimensat01 test may fail with the following error msg:
sudo: sorry, you must have a tty to run sudo
to avoid this, commenting `Defaults requiretty' line in /etc/sudoers can make this testcase work. After test finished, restore this line. Signed-off-by: Caspar Zhang <czhang@redhat.com>.
/external/ltp/testcases/kernel/syscalls/utimensat/utimensat_tests.sh
e0a89f94e51eaed1c3ac9840130f166f3f232b4a 21-Jul-2010 Garrett Cooper <yanegomi@gmail.com> Address issue with permissions on utimesat_tests.

After investigation, I found that the following two parts
maybe have wrong RW parameter:

a) Testing read-only file, owned by nobody(self).
Since the perm is 400, the user `nobody' itself doesn't have
write permission to the testfile, thus, if program executes
./utimensat01 with -w param, `Permission deined' error will
occur. So we need to add -W in run_test param to avoid trying
writing test.

b) Testing read-only file, owned by root.
Since root owns the test file and the perm is still 400,
the user `nobody' has neither writing nor reading permission
to this file, so -RW param should be both set to run_test
function to avoid trying reading & writing test.

Signed-off-by: Caspar Zhang <czhang@redhat.com>
Acked-by: Garrett Cooper <yanegomi@gmail.com>
/external/ltp/testcases/kernel/syscalls/utimensat/utimensat_tests.sh
76ec975d298e3890a4ab2f9471940e164de0c643 02-Jun-2010 Subrata Modak <subratamodak@subratamodak.linux.ibm.com> Fix for UTIMENSAT test fails hugely: This patch installs the trap for cleanup_test which removes the sudoers file only if it was installed by utimensat script, and also takes care of detecting whether sudo knows about the -n option. Signed-Off-By: <hyei@mvista.com>.
/external/ltp/testcases/kernel/syscalls/utimensat/utimensat_tests.sh
adf53e68cf2b513b67a19dc0ff8869b53f9f22a3 16-Apr-2010 Rishikesh K Rajak <risrajak@linux.vnet.ibm.com> Script utimensat_tests.sh deletes the test it is executing instead of deleting
temporary directory. Patch attached.

Signed-off-by: Cyril Hrubis <chrubis@suse.cz>
/external/ltp/testcases/kernel/syscalls/utimensat/utimensat_tests.sh
2aa40f7e10518977881b933cc93b8f50847cf3cf 19-Feb-2010 Garrett Cooper <yanegomi@gmail.com> Avoid sudo blocking for tty input indefinitely; this issue will need to
be `properly' fixed by not having a password for the sudo'er's acct.

Signed-off-by: Garrett Cooper <yanegomi@gmail.com>
/external/ltp/testcases/kernel/syscalls/utimensat/utimensat_tests.sh
0d5ca4fefaeae85f5a39ea63fe017d9092ccdd6c 06-Feb-2010 yaberauneya <yaberauneya> This patch makes the test script cd into the tmp directory before running the tests. This makes sure the script does not delete the original utimensat binary, causing the test to fail on a second run.

Signed-off-by: Henry Yei<hyei@mvista.com>
/external/ltp/testcases/kernel/syscalls/utimensat/utimensat_tests.sh
634120692d4be07e0dcec9267d1b4f4dbe70d1b6 16-Sep-2009 subrata_modak <subrata_modak> Spelling fixes: inclue -> include: Signed-off-by: Geert Uytterhoeven <Geert.Uytterhoeven@sonycom.com>.
/external/ltp/testcases/kernel/syscalls/utimensat/utimensat_tests.sh
84b0db33e89040fac030e62efed1138618090807 04-Aug-2009 subrata_modak <subrata_modak> Regresion testing for Microblaze: here 4 tests are from my regresion testing for Microblaze kernel debug. There is one extension for testing aligned/unaligned get/put_user macros. The rest of changes are easy. [PATCH 1/4] utimensat: Remove utimensat_user from script: We can use nobody user instead of creating new one for this special test. Latest busybox source code not support userdel, useradd that's why is better to use user which exists. Signed-off-by: Michal Simek <monstr@monstr.eu>.
/external/ltp/testcases/kernel/syscalls/utimensat/utimensat_tests.sh
2d3d90cdca9a3c1c262cb4f52a30c528904c5228 10-Jul-2009 subrata_modak <subrata_modak> Here is a patch for utimensat_test.sh to change the hardcoded tmp directory to use the LTP variable TMPDIR which may bet set by the user to point to other than /tmp. Signed-ff-by: Henry Yei <hyei@mvista.com>.
/external/ltp/testcases/kernel/syscalls/utimensat/utimensat_tests.sh
edfd5f545e7839ca15a419a3420aeaa3b24495f7 06-Apr-2009 subrata_modak <subrata_modak> While running the latest LTP testsuite (CVS checkout), some tests failed due to small errors in the testscripts. I've attached two diffs for both testcases/kernel/syscalls/utimensat/utimensat_tests.sh and testcases/kernel/syscalls/ioctl/test_ioctl. Signed-Off-By: Christian Kujau <lists@nerdbynature.de>.
/external/ltp/testcases/kernel/syscalls/utimensat/utimensat_tests.sh
56207cec7732e09c216c751c0b5f88a242bacae6 23-Mar-2009 subrata_modak <subrata_modak> Coding Syle Cleanups. Signed-Off-By: <michal.simek@petalogix.com>.
/external/ltp/testcases/kernel/syscalls/utimensat/utimensat_tests.sh
168472e131a28116d33000c23e54bfa17f492e0d 17-Dec-2008 subrata_modak <subrata_modak> The test case "utimensat01" will test the function "utimensat" when the file isnot owned by self. It excepts it will return some error code. But if the test user is "root", it has super property and can be success. Signed-off-by: Zhang Xiliang <zhangxiliang@cn.fujitsu.com>.
/external/ltp/testcases/kernel/syscalls/utimensat/utimensat_tests.sh
74f83db518e8f2799825cf043e00a29ca6eeba52 21-Oct-2008 subrata_modak <subrata_modak> Fix bashisms (function keyword in utimensat_tests.sh). Signed-off-by: Jiri Palecek <jpalecek@web.de>.
/external/ltp/testcases/kernel/syscalls/utimensat/utimensat_tests.sh
8e1b00f83b42fc3f5679b01c0c319fba2ea3ca9a 28-Jun-2008 subrata_modak <subrata_modak> Changes to fix Build, Install and run on non-supported architectures.
/external/ltp/testcases/kernel/syscalls/utimensat/utimensat_tests.sh
274396810b50c8129b331c6fd6eedec9f2f3b2e8 06-Jun-2008 subrata_modak <subrata_modak> utimensat() syscall was introduced from linux-2.6.22 onwards. Michael wrote the initial testcases, and, the same is being contributed to LTP under GPLv2. I worked out a patch for this. Though this is not using LTP specific libraries at the moment. But the tests run well and tests 99 separate variations. Michael has written it through itÅ› length and breadth. I generated the code coverage (9.2%) over 2.6.25-gcov kernel, which however was not built with <make allmodconfig> option. Please see it attached along with a draft man page of utimensat(), created by Michael. Let us know how do you feel about this test. We can then go ahead and add this to LTP. Signed-off-by Michael Kerrisk <mtk.manpages@googlemail.com>. Signed-off-by: Subrata Modak <subrata@linux.vnet.ibm.com>.
CVS: ----------------------------------------------------------------------
/external/ltp/testcases/kernel/syscalls/utimensat/utimensat_tests.sh