[LTP] [PATCH] [PATCH] rmdir/rmdir05: Delete unnecessary if

2015-09-09 Thread Cui Bixuan
Delete unnecessary if in testcase Signed-off-by: Cui Bixuan <cuibix...@huawei.com> --- testcases/kernel/syscalls/rmdir/rmdir05.c |3 --- 1 files changed, 0 insertions(+), 3 deletions(-) diff --git a/testcases/kernel/syscalls/rmdir/rmdir05.c b/testcases/kernel/syscalls/rmdir/rmdir05.c

Re: [LTP] [PATCH] include/linux_syscall_numbers.h:Delete linux_syscall_numbers.h

2015-09-08 Thread Cui Bixuan
patch and added a .gitignore record for the header as > well, thanks. > It's look good and thanks. Cui Bixuan -- ___ Ltp-list mailing list Ltp-list@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/ltp-list

[LTP] [PATCH v2] sched_getattr/sched_getattr01: Add new testcase to test sched_getattr

2015-09-06 Thread Cui Bixuan
Add testcase 'sched_getattr01' to test sched_getattr function Signed-off-by: Cui Bixuan <cuibix...@huawei.com> --- V2: * Add the test to syscalls/sched_getattr and rename it to "sched_getattr01"; * Change "LDLIBS" to "CFLAGS" in sched_getattr/Ma

Re: [LTP] [PATCH] edf-scheduler/edf_test01: Add new testcase to test edf-sched

2015-08-17 Thread Cui Bixuan
nothing more than the syscalls can set and read back it's parameters. It's good. I want to add some testcases for testing edf scheduler which be supported by linux 3.14. And there may be a lot of mistakes. Thank you for your advice. Thanks, Cui Bixuan

[LTP] [PATCH] edf-scheduler/edf_test01: Add new testcase to test edf-sched

2015-08-12 Thread Cui Bixuan
Add testcase 'edf_test01' to test edf-sched Signed-off-by: Cui Bixuan cuibix...@huawei.com --- runtest/sched |2 + testcases/kernel/sched/edf-scheduler/.gitignore |1 + testcases/kernel/sched/edf-scheduler/Makefile | 25 testcases/kernel

[LTP] [PATCH] iptables/iptables_tests: Some cleanup

2015-08-07 Thread Cui Bixuan
* Save the iptables before the testcase and restore it after the testcase * Add lib function 'cmd_test' for test01 * Add remove_rule and remove_all_rules for test to flush the rules * Delete the needless check(grep -c Chain and grep 100% packet loss) in test01 and test02 Signed-off-by: Cui

Re: [LTP] How to compie a ltp-case into 32-bit on the 64bit system

2015-08-03 Thread Cui Bixuan
On 2015/8/3 18:08, Li Wang wrote: Hi, On Sat, Aug 1, 2015 at 9:18 AM, Cui Bixuan cuibix...@huawei.com mailto:cuibix...@huawei.com wrote: On 2015/7/31 14:24, Li Wang wrote: Then, I came up with a idea that I don't include the ltp-lib file in 'msgrcv08.c', and just add

Re: [LTP] How to compie a ltp-case into 32-bit on the 64bit system

2015-07-31 Thread Cui Bixuan
: not gcc32' if it's 64-bit application. It's not a good idea that ipc/msgrcv/Makefile to control it, I mean, LTP user to control it in ./configure which will be better. What do you think? Thanks, Cui Bixuan Thanks

Re: [LTP] [PATCH v2] commands/logrotate:run the case once again will failed

2015-07-13 Thread Cui Bixuan
On 2015/7/9 13:59, Alexey Kodanev wrote: Applied with changed commit message and subject, also removed the comment above 'include'. thanks for your help. -- Don't Limit Your Business. Reach for the Cloud. GigeNET's

Re: [LTP] [PATCH 1/5] iptables/iptables_tests.sh: Add test cases for iptables -L

2015-07-08 Thread Cui Bixuan
On 2015/6/25 13:41, Cui Bixuan wrote: On 2015/6/16 1:13, Alexey Kodanev wrote: Hi! On 06/12/2015 09:06 AM, Cui Bixuan wrote: On 2015/6/9 21:33, Cyril Hrubis wrote: Hi! I would rather see these being added one test per file with some shared code in sourced library. If there is a simple

[LTP] [PATCH v2] commands/logrotate:run the case once again will failed

2015-07-07 Thread Cui Bixuan
Including the rules in /etc/logrotate.d/ will cause the case failed when run it at the second time. Signed-off-by: Alexey Kodanev alexey.koda...@oracle.com Signed-off-by: Cui Bixuan cuibix...@huawei.com --- testcases/commands/logrotate/logrotate_tests.sh |4 1 files changed, 0

Re: [LTP] [PATCH] commands/logrotate:run the case once again will failed

2015-07-03 Thread Cui Bixuan
On 2015/7/2 22:22, Alexey Kodanev wrote: Hi, On 07/02/2015 03:06 PM, Cui Bixuan wrote: On 2015/7/1 22:10, Alexey Kodanev wrote: The test creates only tst_logfile, why it should remove 'messages-*' and other system logs? I see that its configuration file includes logrotate.d/, is it really

Re: [LTP] [PATCH] commands/logrotate:run the case once again will failed

2015-07-02 Thread Cui Bixuan
On 2015/7/1 22:10, Alexey Kodanev wrote: Hi, On 07/01/2015 03:47 PM, Cui Bixuan wrote: ping ~~ :-) On 2015/5/5 20:12, Cui Bixuan wrote: For the first time,case do 'logrotate -fv tst_logrotate.conf' that will create the 'half-rotated' file(messages-20150416.gz). When run case again

Re: [LTP] [PATCH] commands/logrotate:run the case once again will failed

2015-07-01 Thread Cui Bixuan
ping ~~ :-) On 2015/5/5 20:12, Cui Bixuan wrote: For the first time,case do 'logrotate -fv tst_logrotate.conf' that will create the 'half-rotated' file(messages-20150416.gz). When run case again, the case will fail: 'error: destination /var/log/messages-20150416.gz already exists,skipping

Re: [LTP] How to specify testcases by running runltp

2015-06-24 Thread Cui Bixuan
get the cases and how to run them from runtest/) cd XX/build ./runltp -f fs Then the LTP will run all the cases in runtest/fs file. You can find the cases which to test /tmp/foo/ from runtest/xx and add them to runtest/fs_test (touch it), then ./runltp -f fs_test. Good luck, Cui Bixuan

Re: [LTP] [PATCH 1/5] iptables/iptables_tests.sh: Add test cases for iptables -L

2015-06-24 Thread Cui Bixuan
On 2015/6/16 1:13, Alexey Kodanev wrote: Hi! On 06/12/2015 09:06 AM, Cui Bixuan wrote: On 2015/6/9 21:33, Cyril Hrubis wrote: Hi! I would rather see these being added one test per file with some shared code in sourced library. If there is a simple script that executes a lot of testcases

[LTP] [PATCH 5/6 v2] iptables/iptables_tests: Add new testcases for iptables -N/E

2015-06-12 Thread Cui Bixuan
Add new testcase for testing 'iptables -N/E' Signed-off-by: Cui Bixuan cuibix...@huawei.com --- testcases/network/iptables/iptables_tests.sh | 46 +- 1 files changed, 45 insertions(+), 1 deletions(-) diff --git a/testcases/network/iptables/iptables_tests.sh b

[LTP] [PATCH 4/6 v2] iptables/iptables_tests: Add new testcases for iptables -o

2015-06-12 Thread Cui Bixuan
Add new testcase for testing 'iptables -o' Signed-off-by: Cui Bixuan cuibix...@huawei.com --- testcases/network/iptables/iptables_tests.sh | 47 +- 1 files changed, 46 insertions(+), 1 deletions(-) diff --git a/testcases/network/iptables/iptables_tests.sh b/testcases

[LTP] [PATCH 2/6 v2] iptables/iptables_tests: Add test cases for iptables -L

2015-06-12 Thread Cui Bixuan
Add cases in test01 for iptables -L -t raw/security Signed-off-by: Cui Bixuan cuibix...@huawei.com --- testcases/network/iptables/iptables_tests.sh | 18 ++ 1 files changed, 18 insertions(+), 0 deletions(-) diff --git a/testcases/network/iptables/iptables_tests.sh b/testcases

Re: [LTP] [PATCH 1/5] iptables/iptables_tests.sh: Add test cases for iptables -L

2015-06-12 Thread Cui Bixuan
On 2015/6/9 21:33, Cyril Hrubis wrote: Hi! I would rather see these being added one test per file with some shared code in sourced library. If there is a simple script that executes a lot of testcases it harder to debug and the results are binary (FAIL/PASS for a group of test) instead of

[LTP] [PATCH] ade/ld: fix compile warning

2015-06-01 Thread Cui Bixuan
Fix the warnings 'old-style function definition' when compile LTP Signed-off-by: Cui Bixuan cuibix...@huawei.com --- testcases/commands/ade/ld/f1.c |2 +- testcases/commands/ade/ld/ldmain.c |2 +- testcases/commands/ade/ld/rd1.c|2 +- testcases/commands/ade/ld/rf1.c|2

Re: [LTP] [PATCH] commands/logrotate:run the case once again will failed

2015-05-28 Thread Cui Bixuan
is 23:59:59, a problem would occur. why? The error occur when there are messages-20150406 file in /var/log/ and do logrotate in 20150406(same day). Thanks, Cui Bixuan -- ___ Ltp

[LTP] [PATCH 1/5] iptables/iptables_tests.sh: Add test cases for iptables -L

2015-05-26 Thread Cui Bixuan
Add cases in test01 for iptables -L -t raw/security Signed-off-by: Cui Bixuan cuibix...@huawei.com --- testcases/network/iptables/iptables_tests.sh | 34 ++ 1 files changed, 34 insertions(+), 0 deletions(-) diff --git a/testcases/network/iptables/iptables_tests.sh b

[LTP] [PATCH 2/5] iptables/iptables_tests.sh: Add new testcases for iptables -c

2015-05-26 Thread Cui Bixuan
Add new testcase for testing 'iptables -c' Signed-off-by: Cui Bixuan cuibix...@huawei.com --- testcases/network/iptables/iptables_tests.sh | 43 +- 1 files changed, 42 insertions(+), 1 deletions(-) diff --git a/testcases/network/iptables/iptables_tests.sh b/testcases

[LTP] [PATCH 4/5] iptables/iptables_tests.sh: Add new testcases for iptables -N/E

2015-05-26 Thread Cui Bixuan
Add new testcase for testing 'iptables -N/E' Signed-off-by: Cui Bixuan cuibix...@huawei.com --- testcases/network/iptables/iptables_tests.sh | 46 +- 1 files changed, 45 insertions(+), 1 deletions(-) diff --git a/testcases/network/iptables/iptables_tests.sh b

[LTP] [PATCH 5/5] iptables/iptables_tests.sh: Add new testcases for iptables -R

2015-05-26 Thread Cui Bixuan
Add new testcase for testing 'iptables -R' Signed-off-by: Cui Bixuan cuibix...@huawei.com --- testcases/network/iptables/iptables_tests.sh | 40 +- 1 files changed, 39 insertions(+), 1 deletions(-) diff --git a/testcases/network/iptables/iptables_tests.sh b/testcases

Re: [LTP] [PATCH v2] controllers/cpuacct: tst_brkm() instead of echo failed message

2015-05-24 Thread Cui Bixuan
On 2015/5/23 19:02, LiaoQingwei wrote: Please forgive my careless,I send a wrong patch,please ignored.The patch v2 maybe right. Thanks. Most of the time,the reason of mount cgroup failed is the configuration is not enabled,for example,CONFIG_CGROUP_CPUACCT=no. I think use TCONF message is

[LTP] [PATCH 1/2 v2] open/open12: compile error

2015-05-18 Thread Cui Bixuan
The 'MS_STRICTATIME' flag is not defined in old libc.Now add it into include/lapi/mount.h and include it in testcase source. Signed-off-by: Cui Bixuan cuibix...@huawei.com --- include/lapi/mount.h| 26 ++ testcases/kernel/syscalls/open/open12.c

[LTP] [PATCH 2/2 v2] open/open12: Check the kernel version for 'MS_STRICTATIME'

2015-05-18 Thread Cui Bixuan
Call tst_kvercmp() to check the kernel version(newer than 2.6.30) before calling SAFE_MOUNT( MS_STRICTATIME ). Signed-off-by: Cui Bixuan cuibix...@huawei.com --- testcases/kernel/syscalls/open/open12.c |8 1 files changed, 8 insertions(+), 0 deletions(-) diff --git a/testcases

Re: [LTP] [PATCH] open/open12: Check the kernel version for 'MS_STRICTATIME'

2015-05-15 Thread Cui Bixuan
On 2015/5/13 17:03, Cyril Hrubis wrote: Hi! Call tst_kvercmp() to check the kernel version(newer than 2.6.30) before calling SAFE_MOUNT( MS_STRICTATIME ). Signed-off-by: Cui Bixuan cuibix...@huawei.com --- testcases/kernel/syscalls/open/open12.c |7 +++ 1 files changed, 7

[LTP] [PATCH] open/open12: compile error

2015-05-15 Thread Cui Bixuan
The 'MS_STRICTATIME' flag is not defined in old kernel.Now add it into include/lapi/mount.h and include it in testcase source. Signed-off-by: Cui Bixuan cuibix...@huawei.com --- Cat /usr/include/x86_64-linux-gnu/sys/mount.h in Ubuntu14 and find 'MS_STRICTATIME' flag: MS_STRICTATIME = 1 24

Re: [LTP] [PATCH] performing test on loop device if noatime or relatime specified

2015-05-13 Thread Cui Bixuan
kernel version before call SAFE_MOUNT(, MS_STRICTATIME). Thanks, Cui Bixuan -- One dashboard for servers and applications across Physical-Virtual-Cloud Widest out-of-the-box monitoring support with 50+ applications

[LTP] [PATCH] open/open12: Check the kernel version for 'MS_STRICTATIME'

2015-05-13 Thread Cui Bixuan
Call tst_kvercmp() to check the kernel version(newer than 2.6.30) before calling SAFE_MOUNT( MS_STRICTATIME ). Signed-off-by: Cui Bixuan cuibix...@huawei.com --- testcases/kernel/syscalls/open/open12.c |7 +++ 1 files changed, 7 insertions(+), 0 deletions(-) diff --git a/testcases

Re: [LTP] [PATCH] performing test on loop device if noatime or relatime specified

2015-05-12 Thread Cui Bixuan
+ + SAFE_MOUNT(cleanup, device, MNTPOINT, fs_type, MS_STRICTATIME, NULL); + mount_flag = 1; + SAFE_FILE_PRINTF(cleanup, TEST_FILE, TEST_FILE); } Hi, I run the LTP today: .configure make then compile error: gcc -g -O2 -g -O2 -fno-strict-aliasing

[LTP] [PATCH 1/2] gzip/gzip01: Some cleanup

2015-05-06 Thread Cui Bixuan
' to define the variables as they are in functions. * Some cleanup. Signed-off-by: Cui Bixuan cuibix...@huawei.com --- testcases/commands/gzip/gzip_tests.sh | 315 ++--- 1 files changed, 95 insertions(+), 220 deletions(-) diff --git a/testcases/commands/gzip/gzip_tests.sh

[LTP] [PATCH 2/2] gzip/gzip01: Remove 00_Descriptions.txt

2015-05-06 Thread Cui Bixuan
Remove 00_Descriptions.txt file. Signed-off-by: Cui Bixuan cuibix...@huawei.com --- testcases/commands/gzip/00_Descriptions.txt |6 -- 1 files changed, 0 insertions(+), 6 deletions(-) delete mode 100644 testcases/commands/gzip/00_Descriptions.txt diff --git a/testcases/commands/gzip

Re: [LTP] [PATCH 0/3] commands/fileutils/mv: cleanup and add new test

2015-04-30 Thread Cui Bixuan
On 2015/4/30 16:58, Zeng Linggang wrote: Hi, Mr Cui I have written some patches for mv tests(some cleanup and add new test), that maybe save your some time. The patches look very nice (smile). Thanks, Cui Bixuan testcases/commands/fileutils/mv/mv_tests.sh | 263

Re: [LTP] [PATCH v3] mv/mv_tests.sh: Add test02 to test 'mv -b'

2015-04-30 Thread Cui Bixuan
, Cui Bixuan -- One dashboard for servers and applications across Physical-Virtual-Cloud Widest out-of-the-box monitoring support with 50+ applications Performance metrics, stats and reports that give you Actionable

Re: [LTP] [PATCH v3 1/2] testcases/lib/test.sh: Added ROD_SILENT() and ROD()

2015-04-29 Thread Cui Bixuan
you very much. Maybe you can write the descriptive file such as tar/00_Descriptions.txt, but I don't know if it's necessary. Thanks, Cui Bixuan Best regards, Zeng -- One dashboard for servers and applications

Re: [LTP] [PATCH v3 1/2] testcases/lib/test.sh: Added ROD_SILENT() and ROD()

2015-04-29 Thread Cui Bixuan
On 2015/4/30 9:21, Zeng Linggang wrote: Hi, On Thu, 2015-04-30 at 08:57 +0800, Cui Bixuan wrote: On 2015/4/29 9:14, Zeng Linggang wrote: Hi, On Tue, 2015-04-28 at 16:10 +0200, Cyril Hrubis wrote: Hi! Pushed, along with patch that adds ROD and ROD_SILENT documentation into test-writing

Re: [LTP] [PATCH v3] mv/mv_tests.sh: Add test02 to test 'mv -b'

2015-04-29 Thread Cui Bixuan
() there. The mv_test.sh was written long before.Maybe I should modity it by using test.sh library, what do you think? Thanks, Cui Bixuan -- One dashboard for servers and applications across Physical-Virtual-Cloud Widest out-of-the-box

[LTP] [PATCH v6 2/2] syscalls/utimensat01: chattr command error

2015-04-28 Thread Cui Bixuan
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 cuibix...@huawei.com

[LTP] [PATCH] ftp/ftp02: case failed when vsftpd is not running

2015-04-24 Thread Cui Bixuan
Before the test, checking if vsftpd is running will be better. Otherwise some cases which test vsftpd will passed even vsftpd is not running and others will failed. Signed-off-by: Cui Bixuan cuibix...@huawei.com --- testcases/network/tcp_cmds/ftp/ftp_setup |6 ++ 1 files changed, 6

[LTP] [PATCH v5 1/2] syscalls/utimensat01: Use test.sh library for test case

2015-04-23 Thread Cui Bixuan
to tst_exit at the very end of the test Signed-off-by: Cui Bixuan cuibix...@huawei.com --- v5: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

[LTP] [PATCH v3] mv/mv_tests.sh: Add test02 to test 'mv -b'

2015-04-23 Thread Cui Bixuan
Add a new case to test 'mv -b': * Create file1 and file2 * Mv -b file1 to file2 * Check backup file of file2 Signed-off-by: Cui Bixuan cuibix...@huawei.com Helped-by: Alexey Kodanev alexey.koda...@oracle.com --- v3: Add helped-by message. v2: Changing the commit message and check the patch

[LTP] [PATH v2] gzip/gzip_tests.sh: Delete the tmp_dir of test02

2015-04-16 Thread Cui Bixuan
Do clean up when test02 finished of gzip_tests.sh Signed-off-by: Cui Bixuan cuibix...@huawei.com --- testcases/commands/gzip/gzip_tests.sh |2 ++ 1 files changed, 2 insertions(+), 0 deletions(-) diff --git a/testcases/commands/gzip/gzip_tests.sh b/testcases/commands/gzip/gzip_tests.sh

Re: [LTP] [PATCH] mv/mv_tests.sh: Add test02 to test mv -b

2015-04-14 Thread Cui Bixuan
Hi! Thank you for your advice, I will check it. Thanks, Cui bixuan -- BPM Camp - Free Virtual Workshop May 6th at 10am PDT/1PM EDT Develop your own process in accordance with the BPMN 2 standard Learn Process modeling

[LTP] [PATCH v4 1/2] syscalls/utimensat01: Use test.sh library for test case

2015-04-14 Thread Cui Bixuan
Using test.sh in the case: * Change the tst_resm() followed by exit to tst_brkm and remove the exit * Change the exit -1 at the end of the test to tst_resm TFAIL and call tst_exit at the very end of the test --- .../kernel/syscalls/utimensat/utimensat_tests.sh | 22 --- 1

[LTP] [PATCH v4 2/2] syscalls/utimensat01: chattr command error

2015-04-14 Thread Cui Bixuan
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. ---

[LTP] [PATCH] mv/mv_tests.sh: Add test02 to test mv -b

2015-04-09 Thread Cui Bixuan
Add test02 to test mv -b. Run it in ubuntu 12.02: test_start tag=mv_tests01 stime=1428322533 cmdline=mv_tests.sh contacts= analysis=exit test_output incrementing stop mv 0 TINFO : INIT: Inititalizing tests. mv010 TINFO : Test #1: mv dir1 dir2 will move dir1 to dir2 and all

[LTP] [PATCH v3 1/2] syscalls/utimensat01: chattr command error

2015-04-07 Thread Cui Bixuan
-by: Cui Bixuan cuibix...@huawei.com --- testcases/kernel/syscalls/utimensat/utimensat_tests.sh | 9 + 1 file changed, 9 insertions(+) diff --git a/testcases/kernel/syscalls/utimensat/utimensat_tests.sh b/testcases/kernel/syscalls/utimensat/utimensat_tests.sh index b8eba51..5b1c287 100755

[LTP] [PATCH v3 2/2] syscalls/utimensat01: Let testcase to use test.sh library

2015-04-07 Thread Cui Bixuan
Using test.sh in the case: 1.Change the tst_resm() followed by exit to tst_brkm and remove the exit 2.Change the echo ...; exit to tst_brkm TCONF or tst_brkm TFAIL 3.Change the exit -1 at the end of the test to tst_resm TFAIL and call tst_exit at the very end of the test Signed-off-by: Cui

[LTP] [PATH] gzip/gzip_tests.sh: remove the tmp dir of test02

2015-04-06 Thread Cui Bixuan
To clean up when test02 finished of gzip_tests.sh. --- testcases/commands/gzip/gzip_tests.sh |2 ++ 1 files changed, 2 insertions(+), 0 deletions(-) diff --git a/testcases/commands/gzip/gzip_tests.sh b/testcases/commands/gzip/gzip_tests.sh index 5f0725c..432f992 100755 ---