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
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
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
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
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
* 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
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
: 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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
+
+ 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
' 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
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
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
,
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
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
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
() 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
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
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
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
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
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
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
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
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.
---
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
-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
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
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
---
53 matches
Mail list logo