bbdb9f78378c7e038f463efa39d2470e1c51ad54 |
|
16-Mar-2016 |
Cyril Hrubis <chrubis@suse.cz> |
lib: Add new test library API The main features are: o The cleanup callback is not passed directly to various library functions but is set once globally in the structure that describes a test - this makes the test API easier to use - also fixes a few common mistakes such as passing cleanup callback to functions executed from a cleanup o Most of the boilerplate code is moved to library - no more copying standard looping code around :) o Various resources are initialized and freed automatically when requested - this means much less race conditions and ordering problems in cleanups o The result reporting functions now use shared memory to propagate test results from child processes - writing tests in child processes is now easier than ever + The test-writing-guidelines.txt were updated Many thanks to Jan who reviewed numerous respins of this patches and provided valuable suggestions and also to Alexey who pointed out some stupid mistakes of mine. Reviewed-by: Jan Stancek <jstancek@redhat.com> Signed-off-by: Cyril Hrubis <chrubis@suse.cz>
/external/ltp/testcases/kernel/syscalls/lchown/lchown03.c
|
d5e1788b647aca13ee89f41c08113d7b5fa1c499 |
|
15-Mar-2016 |
Zorro Lang <zlang@redhat.com> |
tst_mkfs: add extra_opt parameter to tst_mkfs() mmap16 always hits ETIMEDOUT error, if the test device is too large since mkfs on the device will take lots of time. So I want to make ext4 with an appointed size but the [fs_size] parameter is passed after the device name for ext4, e.g. "mkfs -t ext4 dev [fs_size]". Due to above reason, add a new extra_opt parameter passed after the device name of mkfs. Then mmap16 can make ext4 with an appointed (small) size. And this change can make tst_mkfs() cover one more mkfs usage. Due to I only find one option is needed after the device name, so I use extra_opt. If there're more, the extra_opt should be changed to extra_opts[]. Because of tst_mkfs be changed, all testcases which use tst_mkfs add NULL parameter for extra_opt. Signed-off-by: Zorro Lang <zlang@redhat.com> Signed-off-by: Cyril Hrubis <chrubis@suse.cz>
/external/ltp/testcases/kernel/syscalls/lchown/lchown03.c
|
d1e794d62b1bf619df8390535e4c2a58899b1145 |
|
30-Jul-2015 |
Cyril Hrubis <chrubis@suse.cz> |
lib: Get rid of unused tst_require_root() callback Signed-off-by: Cyril Hrubis <chrubis@suse.cz>
/external/ltp/testcases/kernel/syscalls/lchown/lchown03.c
|
d6d11d08678aac1ed2c370ea8e42e5f45aea07be |
|
09-Mar-2015 |
Cyril Hrubis <chrubis@suse.cz> |
Introduce tst_parse_opts() The pattern that was used in all testcases is: const char *msg; msg = parse_opts(...); if (msg) tst_brkm(TBROK, NULL, "OPTION PARSING ERROR - %s", msg); This change simplifies the steps to just calling: tst_parse_opts(...); Signed-off-by: Cyril Hrubis <chrubis@suse.cz>
/external/ltp/testcases/kernel/syscalls/lchown/lchown03.c
|
aabb8340f63ed31afe995fd97795e542dc68b93c |
|
04-Feb-2015 |
Cyril Hrubis <chrubis@suse.cz> |
Include usctest.h in test.h Signed-off-by: Cyril Hrubis <chrubis@suse.cz>
/external/ltp/testcases/kernel/syscalls/lchown/lchown03.c
|
605fa3362fd7cef0baa2131be32cf44661783d3e |
|
04-Feb-2015 |
Cyril Hrubis <chrubis@suse.cz> |
Get rid of TEST_CLEANUP Special thanks to Coccinelle for making this easy job. Signed-off-by: Cyril Hrubis <chrubis@suse.cz>
/external/ltp/testcases/kernel/syscalls/lchown/lchown03.c
|
c60a23034267b51ba36459a605592f4d3bc4172b |
|
29-Jan-2015 |
Cyril Hrubis <chrubis@suse.cz> |
syscalls: Make use of tst_umount() The only few uses of umount that were left out are umount(2) testcases which should not use tst_umount() while testing for umount(2) failures. Signed-off-by: Cyril Hrubis <chrubis@suse.cz>
/external/ltp/testcases/kernel/syscalls/lchown/lchown03.c
|
75fb057ebd66c8d8012ec5a53f1a187551296b00 |
|
28-Nov-2014 |
Han Pingtian <hanpt@linux.vnet.ibm.com> |
fix some syscall tests for 16-bit compat testing Some syscall testcases have been compiled for 16-bit compat testing, but doesn't change the code yet. This fix try to add proper code to let them support this testing. Signed-off-by: Han Pingtian <hanpt@linux.vnet.ibm.com> Reviewed-by: Stanislav Kholmanskikh <stanislav.kholmanskikh@oracle.com> Signed-off-by: Stanislav Kholmanskikh <stanislav.kholmanskikh@oracle.com>
/external/ltp/testcases/kernel/syscalls/lchown/lchown03.c
|
bbffc17b2fb619fd3f72f939029715fd40dde8da |
|
19-Jun-2014 |
Cyril Hrubis <chrubis@suse.cz> |
syscalls/lchown03: Convert to tst_acquire_device() Signed-off-by: Cyril Hrubis <chrubis@suse.cz>
/external/ltp/testcases/kernel/syscalls/lchown/lchown03.c
|
0b9589f3f9c0345b29cfcf7da5a1253c708303eb |
|
27-May-2014 |
Cyril Hrubis <chrubis@suse.cz> |
testcases: Constify char *msg variable. The parse_opts() now returns const char * instead of char * this commit fixes all warnings caused by the change. Signed-off-by: Cyril Hrubis <chrubis@suse.cz>
/external/ltp/testcases/kernel/syscalls/lchown/lchown03.c
|
c1dcdcaede6cfda06319f0fdbd74177d3deb1ffa |
|
18-Feb-2014 |
Zeng Linggang <zenglg.jy@cn.fujitsu.com> |
lchown/lchown03.c: add new error number tests Add ELOOP and EROFS error number tests for lchown(2) Signed-off-by: Zeng Linggang <zenglg.jy@cn.fujitsu.com> Signed-off-by: Wanlong Gao <gaowanlong@cn.fujitsu.com>
/external/ltp/testcases/kernel/syscalls/lchown/lchown03.c
|