Remove runltp
v2 cover Remove runltp
Changes v1->v2:
* Remove ltp-pan (Cyril
* Remove all tools used by runltp (Cyril, more tools removed)
* Add runltp very simple script which just print info about kirk (Cyril)
Link to v1:
https://lore.kernel.org/ltp/[email protected]/
https://patchwork.ozlabs.org/project/ltp/list/?series=490958&state=*
Build tested:
https://github.com/pevik/ltp/actions/runs/21710205160
Petr Vorel (6):
doc: INSTALL: dma_thread_diotest.c: Remove runltp from doc testscripts/lvmtest.sh: Replace runltp with kirk
runltp: Remove
pan: Remove
tools: Remove tools used by runltp
kirk: Remove runltp-ng symlink
INSTALL | 4 +- Makefile | 2 +- doc/developers/test_case_tutorial.rst | 6 +- doc/developers/todo.rst | 10 - metadata/README.md | 2 +- pan/Makefile | 51 - pan/cgi/README | 59 - pan/cgi/browse.cgi | 225 --- pan/cgi/reconsile.cgi | 250 --- pan/cgi/results.cgi | 164 -- pan/ltp-bump.c | 115 -- pan/ltp-pan.c | 1485 ----------------- pan/splitstr.c | 192 --- pan/splitstr.h | 36 - pan/tag_report.h | 51 - pan/zoolib.c | 447 ----- pan/zoolib.h | 83 - runltp | 962 +---------- .../kernel/fs/fs_readonly/test_robind.sh | 2 +- .../kernel/io/direct_io/dma_thread_diotest.c | 3 +- testcases/kernel/security/smack/README | 2 +- testcases/network/can/filter-tests/INSTALL | 2 +- testcases/network/rpc/rpc-tirpc/README | 2 +- testscripts/Readme_ROBind | 4 +- testscripts/lvmtest.sh | 2 +- tools/Makefile | 2 +- tools/create_dmesg_entries_for_each_test.awk | 35 - ...kernel_faults_in_loops_and_probability.awk | 40 - tools/create_valgrind_check.awk | 42 - tools/genhtml.pl | 249 --- tools/genload/.gitignore | 2 - tools/genload/Makefile | 31 - tools/genload/README | 72 - tools/genload/genload.c | 898 ---------- tools/genload/stress.c | 898 ---------- tools/html_report_header.txt | 56 - tools/insert_kernel_faults.sh | 53 - tools/kirk/Makefile | 2 - tools/restore_kernel_faults_default.sh | 86 - 39 files changed, 24 insertions(+), 6603 deletions(-) delete mode 100644 pan/Makefile delete mode 100644 pan/cgi/README delete mode 100755 pan/cgi/browse.cgi delete mode 100755 pan/cgi/reconsile.cgi delete mode 100755 pan/cgi/results.cgi delete mode 100644 pan/ltp-bump.c delete mode 100644 pan/ltp-pan.c delete mode 100644 pan/splitstr.c delete mode 100644 pan/splitstr.h delete mode 100644 pan/tag_report.h delete mode 100644 pan/zoolib.c delete mode 100644 pan/zoolib.h delete mode 100644 tools/create_dmesg_entries_for_each_test.awk delete mode 100644 tools/create_kernel_faults_in_loops_and_probability.awk delete mode 100644 tools/create_valgrind_check.awk delete mode 100644 tools/genhtml.pl delete mode 100644 tools/genload/.gitignore delete mode 100644 tools/genload/Makefile delete mode 100644 tools/genload/README delete mode 100644 tools/genload/genload.c delete mode 100644 tools/genload/stress.c delete mode 100644 tools/html_report_header.txt delete mode 100755 tools/insert_kernel_faults.sh delete mode 100755 tools/restore_kernel_faults_default.sh
Signature · 5 lines
2.51.0 -- Mailing list info: https://lists.linux.it/listinfo/ltp
PATCH v2 1/6 doc: INSTALL: dma_thread_diotest.c: Remove runltp from doc
Remove runltp from all doc, replace it with kirk.
Also replace the old runltp-ng with kirk.
--- INSTALL | 4 +++- doc/developers/test_case_tutorial.rst | 6 +++--- doc/developers/todo.rst | 10 ---------- metadata/README.md | 2 +- testcases/kernel/fs/fs_readonly/test_robind.sh | 2 +- testcases/kernel/io/direct_io/dma_thread_diotest.c | 3 +-- testcases/kernel/security/smack/README | 2 +- testcases/network/can/filter-tests/INSTALL | 2 +- testcases/network/rpc/rpc-tirpc/README | 2 +- testscripts/Readme_ROBind | 4 ++-- 10 files changed, 14 insertions(+), 23 deletions(-)
INSTALL +3 -1
@@ -105,9 +105,9 @@ Quick Start $ ./configure $ make all # make install - $ /opt/ltp/runltp *NOTE: +- For running tests use kirk [1], individual test you can run directly. - LTP assumes the existence of the nobody, bin, and daemon users and their groups. If these IDs do not exist, certain tests will fail. The respective user and group IDs should be the same, i.e. if `nobody's' user ID is 99, then
@@ -117,6 +117,8 @@ its group ID should also be 99. The names of the groups are irrelevant. DESTDIR= is also honored for install and will install into $DESTDIR/$prefix, if you want to install into a chroot or a rootfs for instance. +[1] https://github.com/linux-test-project/kirk + Detailed Installation ---------------------
doc/developers/test_case_tutorial.rst +3 -3
@@ -205,9 +205,9 @@ please do: This should build the test and then run it. However, even though the test is in :master:`testcases/kernel/syscalls` directory it won't be automatically ran -as part of the syscalls test group (e.g. not run via ``kirk -r math`` or -``./runltp -f syscalls``). For this we need to add it to the runtest file. So -open :master:`runtest/syscalls` and add the lines starting with a ``+``. +as part of the syscalls test group (e.g. not run via ``kirk -r math``. For +this we need to add it to the runtest file. So open :master:`runtest/syscalls` +and add the lines starting with a ``+``. .. code-block::
doc/developers/todo.rst +0 -10
@@ -7,16 +7,6 @@ This is a comprehensive list of tasks where LTP maintainers are currently working on. Priorities might change over time, but these are the most important points which are currently being achieved. -Fade out old tests runner -------------------------- - -:master:`runltp` script is old and unmaintaned. We are slowly shifting to -`kirk <https://github.com/linux-test-project/kirk>`_, that will be our official -tests runner in the future. - -Kirk provides support for remote testing via Qemu, SSH, LTX, parallel -execution and much more. - Test new syscalls -----------------
metadata/README.md +1 -1
@@ -245,4 +245,4 @@ things and how to format them. So far this proof of concept generates a metadata file. I guess that we need actual consumers which will help to settle things down, I will try to look into -making use of this in the runltp-ng at least as a reference implementation. +making use of this in the kirk at least as a reference implementation.
testcases/kernel/fs/fs_readonly/test_robind.sh +1 -1
@@ -25,7 +25,7 @@ # DESCRIPTION: Performs filesystems tests for RO mount. # For filesystem, like ext2, ext3, reiserfs, jfs & xfs, # This test needs a big block device(>=500MB is ok), and you can specify -# it by -z option when running runltp. +# it by exporting LTP_BIG_DEV environment variable. # a) mounts on dir1, # b) mount --bind dir2 # c) mount -o remount,ro
testcases/kernel/io/direct_io/dma_thread_diotest.c +1 -2
@@ -389,8 +389,7 @@ static void setup(void)/* * verify whether the current directory has enough free space, -* if it is not satisfied, we will use the LTP_BIG_DEV, which -* will be exported by runltp with "-z" option. +* if it is not satisfied, we will use the LTP_BIG_DEV. */ if (!directflag || !tst_fs_has_free (NULL ,"." ,1300 ,TST_MB )) { device =getenv ("LTP_BIG_DEV" );
testcases/kernel/security/smack/README +1 -1
@@ -20,7 +20,7 @@ using the default make target. (cd testcases/kernel/security/smack; make && make install) 5) Running the tests: - ./runltp -f smack + kirk -f smack Each test exits with 0 on success and an error code on failure.
testcases/network/can/filter-tests/INSTALL +1 -1
@@ -16,7 +16,7 @@ $ ./can_filter $ ./can_rcv_own_msgs 3) To let LTP run the tests from $LTPROOT, execute: -$ ./runltp -f can +$ kirk -f can 4) Clean up using: $ make clean
testcases/network/rpc/rpc-tirpc/README +1 -1
@@ -46,6 +46,6 @@ instead of a bunch of scripts from the above web page. The basic group of test cases can be executed from * runtest/net.rpc_tests - for TS-RPC testing * runtest/net.tirpc_tests - for TI-RPC testing -using the LTP framework (ltp-pan, runltp and etc). +using kirk. Additional test cases (like stress, complex and etc) are to be integrated.
testscripts/Readme_ROBind +2 -2
@@ -3,9 +3,9 @@ the {LTPROOT}/testcases/kernel/fs . EXECUTING TESTS ================== -The tests can be executed through runltp like: +The tests can be executed with kirk: -./runltp -f fs_readonly +kirk -f fs_readonly Following tests are executed when the above is invoked:
Signature · 5 lines
2.51.0 -- Mailing list info: https://lists.linux.it/listinfo/ltp
Re: [LTP] [PATCH v2 1/6] doc: INSTALL: dma_thread_diotest.c: Remove runltp from doc
Hi!
Quoted 22 lines
Remove runltp from all doc, replace it with kirk.
Also replace the old runltp-ng with kirk.Signed-off-by Petr Vorel <[email protected]>--- INSTALL | 4 +++- doc/developers/test_case_tutorial.rst | 6 +++--- doc/developers/todo.rst | 10 ---------- metadata/README.md | 2 +- testcases/kernel/fs/fs_readonly/test_robind.sh | 2 +- testcases/kernel/io/direct_io/dma_thread_diotest.c | 3 +-- testcases/kernel/security/smack/README | 2 +- testcases/network/can/filter-tests/INSTALL | 2 +- testcases/network/rpc/rpc-tirpc/README | 2 +- testscripts/Readme_ROBind | 4 ++-- 10 files changed, 14 insertions(+), 23 deletions(-)INSTALL +0
-0
INSTALL Quick Start · line 107
Quoted 3 lines
INSTALL +0
-0@@ -105,9 +105,9 @@ Quick Start $ ./configure $ make all # make install
^
This should be $ (not caused by this patch but worth fixing)
INSTALL Quick Start · line 110
Quoted 4 lines
INSTALL +1
-1- $ /opt/ltp/runltp *NOTE: +- For running tests use kirk [1], individual test you can run directly.
^
This sentece has wrong order of words.
And also oversimplifies things, there is no mention of setting correct PATH that needs to be done in order to run these tests.
I would just drop that and leave only the first sentence.
Quoted 17 lines
INSTALL +2
-0- LTP assumes the existence of the nobody, bin, and daemon users and their groups. If these IDs do not exist, certain tests will fail. The respective user and group IDs should be the same, i.e. if `nobody's' user ID is 99, then@@ -117,6 +117,8 @@ its group ID should also be 99. The names of the groups are irrelevant. DESTDIR= is also honored for install and will install into $DESTDIR/$prefix, if you want to install into a chroot or a rootfs for instance. +[1] https://github.com/linux-test-project/kirk + Detailed Installation ---------------------doc/developers/test_case_tutorial.rst +0
-0
doc/developers/test_case_tutorial.rst please do: · line 208
Quoted 7 lines
doc/developers/test_case_tutorial.rst +1
-3@@ -205,9 +205,9 @@ please do: This should build the test and then run it. However, even though the test is in :master:`testcases/kernel/syscalls` directory it won't be automatically ran -as part of the syscalls test group (e.g. not run via ``kirk -r math`` or -``./runltp -f syscalls``). For this we need to add it to the runtest file. So -open :master:`runtest/syscalls` and add the lines starting with a ``+``. +as part of the syscalls test group (e.g. not run via ``kirk -r math``. For
^ missing closing )
Also the path to syscalls is missing after the change.
Quoted 4 lines
doc/developers/test_case_tutorial.rst +2
-0+this we need to add it to the runtest file. So open :master:`runtest/syscalls` +and add the lines starting with a ``+``. .. code-block::
Signature · 5 lines
Cyril Hrubis [email protected] -- Mailing list info: https://lists.linux.it/listinfo/ltp
Re: [LTP] [PATCH v2 1/6] doc: INSTALL: dma_thread_diotest.c: Remove runltp from doc
I also noticed there are a couple of bugs in the documentation, where kirk command is still used with the -U (framework) parameter. That should be probably fixed.
Kind Regards,
Signature · 7 lines
Andrea Cervesato SUSE QE Automation Engineer Linux [email protected] -- Mailing list info: https://lists.linux.it/listinfo/ltp
Re: [LTP] [PATCH v2 1/6] doc: INSTALL: dma_thread_diotest.c: Remove runltp from doc
In reply to Cyril HrubisQuoted 18 lines
Hi!
Quoted 16 lines
Remove runltp from all doc, replace it with kirk.
Also replace the old runltp-ng with kirk.Signed-off-by Petr Vorel <[email protected]>--- INSTALL | 4 +++- doc/developers/test_case_tutorial.rst | 6 +++--- doc/developers/todo.rst | 10 ---------- metadata/README.md | 2 +- testcases/kernel/fs/fs_readonly/test_robind.sh | 2 +- testcases/kernel/io/direct_io/dma_thread_diotest.c | 3 +-- testcases/kernel/security/smack/README | 2 +- testcases/network/can/filter-tests/INSTALL | 2 +- testcases/network/rpc/rpc-tirpc/README | 2 +- testscripts/Readme_ROBind | 4 ++-- 10 files changed, 14 insertions(+), 23 deletions(-)
Quoted 10 lines
INSTALL Quick Start · line 107
Quoted 8 lines
INSTALL +0
-0@@ -105,9 +105,9 @@ Quick Start $ ./configure $ make all # make install^
This should be $ (not caused by this patch but worth fixing)
I can change it, but IMHO for creating /opt/ltp is needed to run it as root for a first time. Or one must chmod/chown /opt/ltp under root.
Quoted 11 lines
INSTALL Quick Start · line 110
Quoted 4 lines
INSTALL +1
-1- $ /opt/ltp/runltp *NOTE: +- For running tests use kirk [1], individual test you can run directly.^
This sentece has wrong order of words.And also oversimplifies things, there is no mention of setting correct PATH that needs to be done in order to run these tests.
I would just drop that and leave only the first sentence.
Sure, I can remove it:
+++ INSTALL
@@ -107,7 +107,7 @@ Quick Start
# make install
*NOTE:
-- For running tests use kirk [1], individual test you can run directly. +- For running tests use kirk [1].
- LTP assumes the existence of the nobody, bin, and daemon users and their groups. If these IDs do not exist, certain tests will fail. The respective user and group IDs should be the same, i.e. if `nobody's' user ID is 99, then
---
If I'm correct this is likely the only change. Can you add your RBT and I modify before merge?
And I see Andrea already removed '-U ltp' kirk usage.
Anyway, I can wait little longer, but I got already quite a lot of ack to merge whole patchset.
Kind regards,
Petr
Quoted 35 lines
Quoted 17 lines
INSTALL +2
-0- LTP assumes the existence of the nobody, bin, and daemon users and their groups. If these IDs do not exist, certain tests will fail. The respective user and group IDs should be the same, i.e. if `nobody's' user ID is 99, then@@ -117,6 +117,8 @@ its group ID should also be 99. The names of the groups are irrelevant. DESTDIR= is also honored for install and will install into $DESTDIR/$prefix, if you want to install into a chroot or a rootfs for instance. +[1] https://github.com/linux-test-project/kirk + Detailed Installation ---------------------doc/developers/test_case_tutorial.rst +0
-0doc/developers/test_case_tutorial.rst please do: · line 208
Quoted 7 lines
doc/developers/test_case_tutorial.rst +1
-3@@ -205,9 +205,9 @@ please do: This should build the test and then run it. However, even though the test is in :master:`testcases/kernel/syscalls` directory it won't be automatically ran -as part of the syscalls test group (e.g. not run via ``kirk -r math`` or -``./runltp -f syscalls``). For this we need to add it to the runtest file. So -open :master:`runtest/syscalls` and add the lines starting with a ``+``. +as part of the syscalls test group (e.g. not run via ``kirk -r math``. For^ missing closing )Also the path to syscalls is missing after the change.
Quoted 4 lines
doc/developers/test_case_tutorial.rst +2
-0+this we need to add it to the runtest file. So open :master:`runtest/syscalls` +and add the lines starting with a ``+``. .. code-block::
Signature · 1 line
Mailing list info: https://lists.linux.it/listinfo/ltp
Re: [LTP] [PATCH v2 1/6] doc: INSTALL: dma_thread_diotest.c: Remove runltp from doc
Quoted 5 lines
Anyway, I can wait little longer, but I got already quite a lot of ack to merge whole patchset.
Kind regards,
Petr
I agree, let's finish this PR and make a new release.
https://github.com/linux-test-project/kirk/pull/92
Then upgrade kirk in the LTP upstream and remove runltp one for all :)
Signature · 7 lines
Andrea Cervesato SUSE QE Automation Engineer Linux [email protected] -- Mailing list info: https://lists.linux.it/listinfo/ltp
Re: [LTP] [PATCH v2 1/6] doc: INSTALL: dma_thread_diotest.c: Remove runltp from doc
In reply to Petr VorelHi!
Quoted 9 lines
Quoted 6 lines
INSTALL Quick Start · line 107
Quoted 4 lines
INSTALL +0
-0@@ -105,9 +105,9 @@ Quick Start $ ./configure $ make all # make install^
This should be $ (not caused by this patch but worth fixing)I can change it, but IMHO for creating
/opt/ltpis needed to run it as root for a first time. Or one must chmod/chown/opt/ltpunder root.
Huh? The make install should just work fine. I'm just pointing out the typo # vs $. Or did I miss something?
Quoted 25 lines
Quoted 11 lines
INSTALL Quick Start · line 110
Quoted 4 lines
INSTALL +1
-1- $ /opt/ltp/runltp *NOTE: +- For running tests use kirk [1], individual test you can run directly.^
This sentece has wrong order of words.And also oversimplifies things, there is no mention of setting correct PATH that needs to be done in order to run these tests.
I would just drop that and leave only the first sentence.
Sure, I can remove it:
+++ INSTALL
INSTALL +1
-2@@ -107,7 +107,7 @@ Quick Start # make install *NOTE: -- For running tests use kirk [1], individual test you can run directly. +- For running tests use kirk [1]. - LTP assumes the existence of the nobody, bin, and daemon users and their groups. If these IDs do not exist, certain tests will fail. The respective user and group IDs should be the same, i.e. if `nobody's' user ID is 99, then ---
Quoted 2 lines
If I'm correct this is likely the only change. Can you add your RBT and I modify before merge?
Once we agree on the # vs $.
Signature · 5 lines
Cyril Hrubis [email protected] -- Mailing list info: https://lists.linux.it/listinfo/ltp
Re: [LTP] [PATCH v2 1/6] doc: INSTALL: dma_thread_diotest.c: Remove runltp from doc
Quoted 8 lines
Hi!
Quoted 6 lines
Quoted 6 lines
INSTALL Quick Start · line 107
Quoted 4 lines
INSTALL +0
-0@@ -105,9 +105,9 @@ Quick Start $ ./configure $ make all # make install^
This should be $ (not caused by this patch but worth fixing)
Quoted 5 lines
Quoted 2 lines
I can change it, but IMHO for creating
/opt/ltpis needed to run it as root for a first time. Or one must chmod/chown/opt/ltpunder root.Huh? The make install should just work fine. I'm just pointing out the typo # vs $. Or did I miss something?
Yeah, I understand it and plan to change # => $. I talked about /opt (our default prefix) usually not being writable by regular users (installing any software using standard system prefix will have this problem). Root is needed only for creating /opt/ltp. That was the reason for the original user to use '#'. But as I wrote, I'm ok to change the prompt.
Quoted 28 lines
Quoted 25 lines
Quoted 11 lines
INSTALL Quick Start · line 110
Quoted 4 lines
INSTALL +1
-1- $ /opt/ltp/runltp *NOTE: +- For running tests use kirk [1], individual test you can run directly.^
This sentece has wrong order of words.And also oversimplifies things, there is no mention of setting correct PATH that needs to be done in order to run these tests.
I would just drop that and leave only the first sentence.
Sure, I can remove it:
+++ INSTALL
INSTALL +1
-2@@ -107,7 +107,7 @@ Quick Start # make install *NOTE: -- For running tests use kirk [1], individual test you can run directly. +- For running tests use kirk [1]. - LTP assumes the existence of the nobody, bin, and daemon users and their groups. If these IDs do not exist, certain tests will fail. The respective user and group IDs should be the same, i.e. if `nobody's' user ID is 99, then ---Quoted 2 lines
If I'm correct this is likely the only change. Can you add your RBT and I modify before merge?
Quoted 1 line
Once we agree on the # vs $.
+1
Kind regards,
Petr
Signature · 1 line
Mailing list info: https://lists.linux.it/listinfo/ltp
Re: [LTP] [PATCH v2 1/6] doc: INSTALL: dma_thread_diotest.c: Remove runltp from doc
Hi!
Quoted 10 lines
Quoted 9 lines
Quoted 9 lines
Quoted 6 lines
INSTALL Quick Start · line 107
Quoted 4 lines
INSTALL +0
-0@@ -105,9 +105,9 @@ Quick Start $ ./configure $ make all # make install^
This should be $ (not caused by this patch but worth fixing)I can change it, but IMHO for creating
/opt/ltpis needed to run it as root for a first time. Or one must chmod/chown/opt/ltpunder root.
Quoted 8 lines
Quoted 2 lines
Huh? The make install should just work fine. I'm just pointing out the typo # vs $. Or did I miss something?
Yeah, I understand it and plan to change # => $. I talked about /opt (our default prefix) usually not being writable by regular users (installing any software using standard system prefix will have this problem). Root is needed only for creating
/opt/ltp. That was the reason for the original user to use '#'. But as I wrote, I'm ok to change the prompt.
Ah, that's a bit confusing then because in shell script # is a comment. I usually prefix commands that needs root with sudo instead. So what about "$ sudo make install" ?
Signature · 5 lines
Cyril Hrubis [email protected] -- Mailing list info: https://lists.linux.it/listinfo/ltp
Re: [LTP] [PATCH v2 1/6] doc: INSTALL: dma_thread_diotest.c: Remove runltp from doc
Quoted 20 lines
Hi!
Quoted 10 lines
Quoted 9 lines
Quoted 9 lines
Quoted 6 lines
INSTALL Quick Start · line 107
Quoted 4 lines
INSTALL +0
-0@@ -105,9 +105,9 @@ Quick Start $ ./configure $ make all # make install^
This should be $ (not caused by this patch but worth fixing)I can change it, but IMHO for creating
/opt/ltpis needed to run it as root for a first time. Or one must chmod/chown/opt/ltpunder root.Quoted 8 lines
Quoted 2 lines
Huh? The make install should just work fine. I'm just pointing out the typo # vs $. Or did I miss something?
Yeah, I understand it and plan to change # => $. I talked about /opt (our default prefix) usually not being writable by regular users (installing any software using standard system prefix will have this problem). Root is needed only for creating
/opt/ltp. That was the reason for the original user to use '#'. But as I wrote, I'm ok to change the prompt.
Quoted 3 lines
Ah, that's a bit confusing then because in shell script # is a comment. I usually prefix commands that needs root with sudo instead. So what about "$ sudo make install" ?
+1, good point.
I'll merge whole patchset with this change tomorrow.
Kind regards,
Petr
Signature · 1 line
Mailing list info: https://lists.linux.it/listinfo/ltp
Re: [LTP] [PATCH v2 1/6] doc: INSTALL: dma_thread_diotest.c: Remove runltp from doc
Quoted 23 lines · Petr Vorel
Quoted 20 lines
Hi!
Quoted 18 lines
Quoted 7 lines
Quoted 6 lines
Quoted 6 lines
Review Quick Start · line 107
Quoted 4 lines
(quoted diff) +0
-0@@ -105,9 +105,9 @@ Quick Start $ ./configure $ make all # make install^
This should be $ (not caused by this patch but worth fixing)Quoted 5 lines
Quoted 2 lines
I can change it, but IMHO for creating
/opt/ltpis needed to run it as root for a first time. Or one must chmod/chown/opt/ltpunder root.Huh? The make install should just work fine. I'm just pointing out the typo # vs $. Or did I miss something?
Yeah, I understand it and plan to change # => $. I talked about /opt (our default prefix) usually not being writable by regular users (installing any software using standard system prefix will have this problem). Root is needed only for creating
/opt/ltp. That was the reason for the original user to use '#'. But as I wrote, I'm ok to change the prompt.
Quoted 6 lines
Quoted 3 lines
Ah, that's a bit confusing then because in shell script # is a comment. I usually prefix commands that needs root with sudo instead. So what about "$ sudo make install" ?
+1, good point.
I'll merge whole patchset with this change tomorrow.
Using markdown and sudo would make it unambiguous. I’m not sure if markdown makes sense here, but at the very least I would reference sudo or made the directions explicitly state that the command must be run as root.
Just my 2 cents...
-Enji
Example:
```bash $ ./configure $ make all $ sudo make install ```
Signature · 1 line
Mailing list info: https://lists.linux.it/listinfo/ltp
Re: [LTP] [PATCH v2 1/6] doc: INSTALL: dma_thread_diotest.c: Remove runltp from doc
Quoted 35 lines
Quoted 23 lines · Petr Vorel
Quoted 20 lines
Hi!
Quoted 18 lines
Quoted 7 lines
Quoted 6 lines
Quoted 6 lines
Review Quick Start · line 107
Quoted 4 lines
(quoted diff) +0
-0@@ -105,9 +105,9 @@ Quick Start $ ./configure $ make all # make install^
This should be $ (not caused by this patch but worth fixing)Quoted 5 lines
Quoted 2 lines
I can change it, but IMHO for creating
/opt/ltpis needed to run it as root for a first time. Or one must chmod/chown/opt/ltpunder root.Huh? The make install should just work fine. I'm just pointing out the typo # vs $. Or did I miss something?
Yeah, I understand it and plan to change # => $. I talked about /opt (our default prefix) usually not being writable by regular users (installing any software using standard system prefix will have this problem). Root is needed only for creating
/opt/ltp. That was the reason for the original user to use '#'. But as I wrote, I'm ok to change the prompt.Quoted 6 lines
Quoted 3 lines
Ah, that's a bit confusing then because in shell script # is a comment. I usually prefix commands that needs root with sudo instead. So what about "$ sudo make install" ?
+1, good point.
I'll merge whole patchset with this change tomorrow.Using markdown and sudo would make it unambiguous. I’m not sure if markdown makes sense here, but at the very least I would reference sudo or made the directions explicitly state that the command must be run as root.
Just my 2 cents...
-Enji
Quoted 7 lines
Example:
```bash $ ./configure $ make all $ sudo make install ```
I would prefer to drive away from GitHub Markdown, when we have readthedocs
https://linux-test-project.readthedocs.io/en/latest/index.html
Kind regards,
Petr
Signature · 1 line
Mailing list info: https://lists.linux.it/listinfo/ltp
Re: [LTP] [PATCH v2 1/6] doc: INSTALL: dma_thread_diotest.c: Remove runltp from doc
In reply to Cyril HrubisHi all,
...
Quoted 3 lines
Ah, that's a bit confusing then because in shell script # is a comment. I usually prefix commands that needs root with sudo instead. So what about "$ sudo make install" ?
patchset merged with agreed diff (below). LTP is now without runltp. Thanks a lot for a review.
Kind regards,
Petr
+++ INSTALL
@@ -104,10 +104,10 @@ Quick Start
$ cd ltp $ ./configure $ make all - # make install + $ sudo make install
*NOTE:
-- For running tests use kirk [1], individual test you can run directly. +- For running tests use kirk [1].
- LTP assumes the existence of the nobody, bin, and daemon users and their groups. If these IDs do not exist, certain tests will fail. The respective user and group IDs should be the same, i.e. if `nobody's' user ID is 99, then
Signature · 1 line
Mailing list info: https://lists.linux.it/listinfo/ltp
PATCH v2 2/6 testscripts/lvmtest.sh: Replace runltp with kirk
In reply to Petr Vorel--- testscripts/lvmtest.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)
testscripts/lvmtest.sh +1 -1
@@ -14,5 +14,5 @@ fi export PATH="${PATH}:${LTPROOT}:${LTPROOT}/bin:${LTPROOT}/testcases/bin" -generate_lvm_runfile.sh && prepare_lvm.sh && runltp -f lvm.local +generate_lvm_runfile.sh && prepare_lvm.sh && kirk -f lvm.local cleanup_lvm.sh
Signature · 5 lines
2.51.0 -- Mailing list info: https://lists.linux.it/listinfo/ltp
Re: [LTP] [PATCH v2 2/6] testscripts/lvmtest.sh: Replace runltp with kirk
Hi!
Signature · 5 lines
Cyril Hrubis [email protected] -- Mailing list info: https://lists.linux.it/listinfo/ltp
PATCH v2 3/6 runltp: Remove
In reply to Petr Vorelrunltp was replaced with kirk.
https://github.com/linux-test-project/kirk
Replace it with simple script just posting info about kirk and exit 1 (fail).
--- runltp | 962 +-------------------------------------------------------- 1 file changed, 7 insertions(+), 955 deletions(-)
runltp +7 -955
@@ -1,959 +1,11 @@ #!/bin/sh -################################################################################ -## ## -## Copyright (c) International Business Machines Corp., 2001 ## -## ## -## This program is free software; you can redistribute it and#or modify ## -## it under the terms of the GNU General Public License as published by ## -## the Free Software Foundation; either version 2 of the License, or ## -## (at your option) any later version. ## -## ## -## This program is distributed in the hope that it will be useful, but ## -## WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY ## -## or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License ## -## for more details. ## -## ## -## You should have received a copy of the GNU General Public License ## -## along with this program; if not, write to the Free Software ## -## Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA ## -## ## -################################################################################ -# File: runltp -# -# Description: This script can be used to the tests in the LTP test suite -# -# Authors: Manoj Iyer - [email protected] -# Robbe Williamson - [email protected] -# -# History: Oct 07 2003 - Modified - Manoj Iyer -# - use functions -# - clean up on script exit -# - error checking etc. -# -# Oct 08 2003 - Modified - Manoj Iyer -# - fixed bug in creating results directory -# - all checks should be enlclosed in " " to avoid bash error -# - exit with error if ltp-pan is not found in pan directory -# -# Jul 22 2007 - Modified - Ricardo Salveti de Araujo -# - added support to put more then one file at CMDLINE (-f) -# - added a new option, that the user can pass the address of -# the command file, and it'll use wget to get it (-w) -# - now -s does the grep at the selected command files (default, -# -f or -w) -# -# Jul 23 2007 - Modified - Ricardo Salveti de Araujo -# - added flag to get the command file that has all failed tests -# -# Sep 11 2007 - Modified - Subrata Modak -# - added option to create Failed File if it is not an absolute path -# - added option to create Output File if it is not an absolute path -# - added option to create Failed File compulsory, even if user has not mentioned it -# -# Sep 14 2007 - Modified - Ricardo Salveti de Araujo -# - cleaning and removing duplicated code -# -# Oct 27 2007 - Modified - Ricardo Salveti de Araujo and Subrata Modak -# - better ways to integrate "ltp/tools/genload/stress" with "ltp/runltp" -# Nov 24 2007 - Modified - Subrata Modak -# - Added a new option to generate output in HTML format also. Also retaining -# the original test format -# Nov 28 2007 - Modified - Subrata Modak -# - Added a new option to mail back LTP reports -# May 19 2008 - Modified - Subrata Modak -# - Added capability for default Log file generation -# Aug 17 2009 - Modified - Subrata Modak -# - Added Fault Injection generation Capability through -F Option -# -################################################################################# - - -deprecated() -{ - echo "-------------------------------------------" >&2 - echo "INFO: runltp script is deprecated, try kirk" >&2 - echo "https://github.com/linux-test-project/kirk" >&2 - echo "-------------------------------------------" >&2 -} - - -setup() -{ - deprecated - - cd `dirname $0` || \ - { - echo "FATAL: unable to change directory to $(dirname $0)" - exit 1 - } - export LTPROOT=${PWD} - export TMPBASE="/tmp" - export PATH="${PATH}:${LTPROOT}/testcases/bin:${LTPROOT}/bin" - - export LTP_DEV_FS_TYPE="ext2" - - [ -d "$LTPROOT/testcases/bin" ] || - { - echo "FATAL: LTP not installed correctly" - echo "INFO: Follow directions in INSTALL!" - exit 1 - } - - [ -e "$LTPROOT/bin/ltp-pan" ] || - { - echo "FATAL: Test suite driver 'ltp-pan' not found" - echo "INFO: Follow directions in INSTALL!" - exit 1 - } -} - -version_of_ltp() -{ - cat "$LTPROOT/Version" - exit 0 -} - -usage() -{ - cat <<-EOF >&2 - - usage: ${0##*/} [ -a EMAIL_TO ] [ -c NUM_PROCS ] [ -C FAILCMDFILE ] [ -T TCONFCMDFILE ] - [ -d TMPDIR ] [ -D NUM_PROCS,NUM_FILES,NUM_BYTES,CLEAN_FLAG ] -e [ -f CMDFILES(,...) ] - [ -g HTMLFILE] [ -i NUM_PROCS ] [ -l LOGFILE ] [ -m NUM_PROCS,CHUNKS,BYTES,HANGUP_FLAG ] - -N -n [ -o OUTPUTFILE ] -p -q -Q [ -r LTPROOT ] [ -s PATTERN ] [ -t DURATION ] - -v [ -w CMDFILEADDR ] [ -x INSTANCES ] [ -b DEVICE ] [-B LTP_DEV_FS_TYPE] - [ -F LOOPS,PERCENTAGE ] [ -z BIG_DEVICE ] [-Z LTP_BIG_DEV_FS_TYPE] - - -a EMAIL_TO EMAIL all your Reports to this E-mail Address - -c NUM_PROCS Run LTP under additional background CPU load - [NUM_PROCS = no. of processes creating the CPU Load by spinning over sqrt() - (Defaults to 1 when value)] - -C FAILCMDFILE Command file with all failed test cases. - -T TCONFCMDFILE Command file with all test cases that are not fully tested. - -d TMPDIR Directory where temporary files will be created. - -D NUM_PROCS,NUM_FILES,NUM_BYTES,CLEAN_FLAG - Run LTP under additional background Load on Secondary Storage (separated by comma) - [NUM_PROCS = no. of processes creating Storage Load by spinning over write()] - [NUM_FILES = Write() to these many files (Defaults to 1 when value 0 or undefined)] - [NUM_BYTES = write these many bytes (defaults to 1GB, when value 0 or undefined)] - [CLEAN_FLAG = unlink file to which random data written, when value 1] - -e Prints the date of the current LTP release - -f CMDFILES Execute user defined list of testcases (separate with ',') - -F LOOPS,PERCENTAGE Induce PERCENTAGE Fault in the Kernel Subsystems, and, run each test for LOOPS loop - -g HTMLFILE Create an additional HTML output format - -h Help. Prints all available options. - -i NUM_PROCS Run LTP under additional background Load on IO Bus - [NUM_PROCS = no. of processes creating IO Bus Load by spinning over sync()] - -K DMESG_LOG_DIR - Log Kernel messages generated for each test cases inside this directory - -l LOGFILE Log results of test in a logfile. - -m NUM_PROCS,CHUNKS,BYTES,HANGUP_FLAG - Run LTP under additional background Load on Main memory (separated by comma) - [NUM_PROCS = no. of processes creating main Memory Load by spinning over malloc()] - [CHUNKS = malloc these many chunks (default is 1 when value 0 or undefined)] - [BYTES = malloc CHUNKS of BYTES bytes (default is 256MB when value 0 or undefined) ] - [HANGUP_FLAG = hang in a sleep loop after memory allocated, when value 1] - -M CHECK_TYPE - [CHECK_TYPE=1 => Full Memory Leak Check tracing children as well] - [CHECK_TYPE=2 => Thread Concurrency Check tracing children as well] - [CHECK_TYPE=3 => Full Memory Leak & Thread Concurrency Check tracing children as well] - -N Run all the networking tests. - -o OUTPUTFILE Redirect test output to a file. - -p Human readable format logfiles. - -q Print less verbose output to screen. This implies - not logging start of the test in kernel log. - -Q Don't log start of test in kernel log. - -r LTPROOT Fully qualified path where testsuite is installed. - -R Randomize test order. - -s PATTERN Only run test cases which match PATTERN. - -S SKIPFILE Skip tests specified in SKIPFILE - -t DURATION Execute the testsuite for given duration. Examples: - -t 60s = 60 seconds - -t 45m = 45 minutes - -t 24h = 24 hours - -t 2d = 2 days - -I ITERATIONS Execute the testsuite ITERATIONS times. - -w CMDFILEADDR Uses wget to get the user's list of testcases. - -x INSTANCES Run multiple instances of this testsuite. - -b DEVICE Some tests require an unmounted block device - to run correctly. - -B LTP_DEV_FS_TYPE The file system of test block devices. - -z BIG_DEVICE Some tests require a big unmounted block device - to run correctly. - -Z LTP_BIG_DEV_FS_TYPE The file system of the big device - -W ZOOFILE Specify the zoo file used to record current test tags (default PID of this script) - - - - example: ${0##*/} -c 2 -i 2 -m 2,4,10240,1 -D 2,10,10240,1 -p -q -l /tmp/result-log.$$ -o /tmp/result-output.$$ -C /tmp/result-failed.$$ -d ${PWD} - - - EOF -exit 0 -} - -main() -{ - local CMDFILES= - local PRETTY_PRT= - local ALT_DIR_OUT=0 - local ALT_DIR_RES=0 - local ALT_HTML_OUT=0 - local ALT_EMAIL_OUT=0 - local ALT_DMESG_OUT=0 - local RUN_NETEST=0 - local RUN_REPEATED=0 - local QUIET_MODE= - local NO_KMSG= - local NETPIPE=0 - local GENLOAD=0 - local MEMSIZE=0 - local DURATION= - local CMDFILEADDR= - local FAILCMDFILE= - local TCONFCMDFILE= - local INJECT_KERNEL_FAULT= - local INJECT_KERNEL_FAULT_PERCENTAGE= - local INJECT_FAULT_LOOPS_PER_TEST= - local VALGRIND_CHECK= - local VALGRIND_CHECK_TYPE= - local LOGFILE_NAME= - local LOGFILE= - local OUTPUTFILE_NAME= - local OUTPUTFILE= - local HTMLFILE_NAME= - local HTMLFILE= - local DMESG_DIR= - local EMAIL_TO= - local TAG_RESTRICT_STRING= - local PAN_COMMAND= - local RANDOMRUN=0 - local DEFAULT_FILE_NAME_GENERATION_TIME=`date +"%Y_%m_%d-%Hh_%Mm_%Ss"` - local scenfile= - local ZOOFILE=$$ - - version_date=$(cat "$LTPROOT/Version") - - while getopts a:b:B:c:C:T:d:D:ef:F:g:hi:I:K:l:m:M:No:pqQr:Rs:S:t:T:w:x:z:Z:W: arg - do case $arg in - a) EMAIL_TO=$OPTARG - ALT_EMAIL_OUT=1;; - c) - NUM_PROCS=$(($OPTARG)) - if [ "$NUM_PROCS" -eq 0 ]; then - # User Did not Define the Value ,or, User Defined Zero, - # hence, prevent from creating infinite processes - NUM_PROCS=1 - fi - $LTPROOT/testcases/bin/genload --cpu $NUM_PROCS >/dev/null 2>&1 & - GENLOAD=1 ;; - - C) - case $OPTARG in - /*) - FAILCMDFILE="-C $OPTARG" ;; - *) - FAILCMDFILE="-C $LTPROOT/output/$OPTARG" - ALT_DIR_OUT=1 ;; - esac ;; - - T) - case $OPTARG in - /*) - TCONFCMDFILE="-T $OPTARG" ;; - *) - TCONFCMDFILE="-T $LTPROOT/output/$OPTARG" - ALT_DIR_OUT=1 ;; - esac ;; - - d) # convert the user path to absolute path. - export TMPBASE=$(readlink -f ${OPTARG}) ;; - - D) NUM_PROCS=1; NUM_FILES=1; NUM_BYTES=$((1024 * 1024 * 1024)); CLEAN_FLAG=0 - ARGUMENT_LIST=$OPTARG - TOTAL_ARGUMENTS=1 - for ARGUMENT in `echo "$ARGUMENT_LIST" | tr ',' ' '` - do - case $TOTAL_ARGUMENTS in - 1) NUM_PROCS="$ARGUMENT" ;; - 2) NUM_FILES="$ARGUMENT" ;; - 3) NUM_BYTES="$ARGUMENT" ;; - 4) CLEAN_FLAG="$ARGUMENT" ;; - esac - TOTAL_ARGUMENTS=`expr $TOTAL_ARGUMENTS + 1` - done - # just to get the default values if the user passed 0 - if [ "$NUM_PROCS" -eq 0 ]; then - NUM_PROCS=1 - fi - if [ "$NUM_FILES" -eq 0 ]; then - NUM_FILES=1 - fi - if [ "$NUM_BYTES" -eq 0 ]; then - NUM_BYTES=$((1024 * 1024 * 1024)) - fi - if [ "$CLEAN_FLAG" -ne 1 ]; then - CLEAN_FLAG=0 - fi - if [ "$CLEAN_FLAG" -eq 1 ]; then - # Do not unlink file in this case - $LTPROOT/testcases/bin/genload --hdd $NUM_PROCS --hdd-files \ - $NUM_FILES --hdd-bytes $NUM_BYTES >/dev/null 2>&1 & - else - # Cleanup otherwise - $LTPROOT/testcases/bin/genload --hdd $NUM_PROCS --hdd-files \ - $NUM_FILES --hdd-bytes $NUM_BYTES --hdd-noclean >/dev/null 2>&1 & - fi - GENLOAD=1;; - - e) # Print out the version of LTP - version_of_ltp - ;; - f) # Execute user defined set of testcases. - # Can be more than one file, just separate it with ',', like: - # -f nfs,commands,/tmp/testfile - CMDFILES=$OPTARG;; - F) INJECT_KERNEL_FAULT=1 - # Separate out the NO_OF_LOOPS & FAULT_PERCENTAGE - INJECT_FAULT_LOOPS_PER_TEST=`echo $OPTARG |cut -d',' -f1 | tr -d '\n' | tr -d ' '` - INJECT_KERNEL_FAULT_PERCENTAGE=`echo $OPTARG |cut -d',' -f2 | tr -d '\n' | tr -d ' '` - if [ ! $INJECT_FAULT_LOOPS_PER_TEST ]; then - echo "Loops not properly defined. Resorting to default 5..." - export INJECT_FAULT_LOOPS_PER_TEST=5 - fi - if [ ! $INJECT_KERNEL_FAULT_PERCENTAGE ]; then - echo "Fault Persentage not properly defined. Resorting to default 10..." - export INJECT_KERNEL_FAULT_PERCENTAGE=10 - fi;; - g) HTMLFILE_NAME="$OPTARG" - case $OPTARG in - /*) - HTMLFILE="$OPTARG";; - *) - HTMLFILE="$LTPROOT/output/$OPTARG" - ALT_DIR_OUT=1;; - esac - ALT_HTML_OUT=1;; - h) usage;; - - i) - NUM_PROCS=$(($OPTARG)) - if [ "$NUM_PROCS" -eq 0 ]; then - # User Did not Define the Value ,or, User Defined Zero, - # hence, prevent from creating infinite processes - NUM_PROCS=1 - fi - $LTPROOT/testcases/bin/genload --io $NUM_PROCS >/dev/null 2>&1 & - GENLOAD=1 ;; - - K) - case $OPTARG in - /*) - DMESG_DIR="$OPTARG-dmesg-output-`echo $$-``date +%X | tr -d ' '`";; - *) - DMESG_DIR="$LTPROOT/output/$OPTARG-dmesg-output-`echo $$-``date +%X | tr -d ' '`";; - esac - mkdir -p $DMESG_DIR - ALT_DMESG_OUT=1;; - l) - LOGFILE_NAME="$OPTARG" - case $OPTARG in - /*) - LOGFILE="-l $OPTARG" ;; - *) - LOGFILE="-l $LTPROOT/results/$OPTARG" - ALT_DIR_RES=1 ;; - esac ;; - - m) NUM_PROCS=1; CHUNKS=1; BYTES=$((256 * 1024 * 1024)); HANGUP_FLAG=0 - ARGUMENT_LIST=$OPTARG - TOTAL_ARGUMENTS=1 - for ARGUMENT in `echo "$ARGUMENT_LIST" | tr ',' ' '` - do - case $TOTAL_ARGUMENTS in - 1) NUM_PROCS="$ARGUMENT" ;; - 2) CHUNKS="$ARGUMENT" ;; - 3) BYTES="$ARGUMENT" ;; - 4) HANGUP_FLAG="$ARGUMENT" ;; - esac - TOTAL_ARGUMENTS=`expr $TOTAL_ARGUMENTS + 1` - done - # just to get the default values if the user passed 0 - if [ "$NUM_PROCS" -eq 0 ]; then - NUM_PROCS=1 - fi - if [ "$CHUNKS" -eq 0 ]; then - CHUNKS=1 - fi - if [ "$BYTES" -eq 0 ]; then - BYTES=$((256 * 1024 * 1024)) - fi - if [ "$HANGUP_FLAG" -ne 1 ]; then - HANGUP_FLAG=0 - fi - if [ "$HANGUP_FLAG" -eq 1 ]; then - # Hang in a Sleep loop after memory allocated - $LTPROOT/testcases/bin/genload --vm $NUM_PROCS --vm-chunks \ - $CHUNKS --vm-bytes $BYTES --vm-hang >/dev/null 2>&1 & - else - # Otherwise Do not Hangup - $LTPROOT/testcases/bin/genload --vm $NUM_PROCS --vm-chunks \ - $CHUNKS --vm-bytes $BYTES >/dev/null 2>&1 & - fi - GENLOAD=1;; - M) - VALGRIND_CHECK=1 - VALGRIND_CHECK_TYPE="$OPTARG";; - - N) RUN_NETEST=1;; - - o) OUTPUTFILE_NAME="$OPTARG" - case $OPTARG in - /*) - OUTPUTFILE="-o $OPTARG";; - *) - OUTPUTFILE="-o $LTPROOT/output/$OPTARG" - ALT_DIR_OUT=1 ;; - esac ;; - - p) PRETTY_PRT="-p";; - - q) QUIET_MODE="-q";; - - Q) NO_KMSG="-Q";; - - r) LTPROOT=$OPTARG;; - - R) RANDOMRUN=1;; - - s) TAG_RESTRICT_STRING=$OPTARG;; - - S) case $OPTARG in - /*) - SKIPFILE=$OPTARG;; - *) - SKIPFILE="$LTPROOT/$OPTARG";; - esac ;; - - t) # In case you want to specify the time - # to run from the command line - # (2m = two minutes, 2h = two hours, etc) - DURATION="-t $OPTARG" ;; - - I) # In case you want the testcases to runsequentially RUN_REPEATED times - RUN_REPEATED=$OPTARG;; - - w) CMDFILEADDR=$OPTARG;; - - x) # number of ltp's to run - cat <<-EOF >&1 - WARNING: The use of -x can cause unpredictable failures, as a - result of concurrently running multiple tests designed - to be ran exclusively. - Pausing for 10 seconds..." - EOF - sleep 10 - INSTANCES="-x $OPTARG";; - b) DEVICE=$OPTARG;; - B) LTP_DEV_FS_TYPE=$OPTARG;; - z) BIG_DEVICE=$OPTARG;; - Z) BIG_DEVICE_FS_TYPE=$OPTARG;; - W) ZOOFILE=$OPTARG;; - \?) usage;; - esac - done - - ## It would be nice to create a default log file even if the user has not mentioned - if [ ! "$LOGFILE" ]; then ## User has not mentioned about Log File name - LOGFILE_NAME="$DEFAULT_FILE_NAME_GENERATION_TIME" - LOGFILE="-l $LTPROOT/results/LTP_RUN_ON-$LOGFILE_NAME.log" - ALT_DIR_RES=1 - PRETTY_PRT="-p" - fi - - ## It would be nice if a Failed File is compulsorily created (gives User better Idea of Tests that failed) - - if [ ! "$FAILCMDFILE" ]; then ## User has not mentioned about Failed File name - ALT_DIR_OUT=1 - if [ ! "$OUTPUTFILE" ]; then ## User has not mentioned about Output File name either - if [ ! "$LOGFILE" ]; then ## User has not mentioned about Log File name either - FAILED_FILE_NAME="$DEFAULT_FILE_NAME_GENERATION_TIME" - FAILCMDFILE="-C $LTPROOT/output/LTP_RUN_ON-$FAILED_FILE_NAME.failed" - else ## User Fortunately wanted a log file, - FAILED_FILE_NAME=`basename $LOGFILE_NAME` ## Extract log file name and use it to construct Failed file name - FAILCMDFILE="-C $LTPROOT/output/LTP_RUN_ON-$FAILED_FILE_NAME.failed" - fi - else ## User Fortunately wanted a Output file - FAILED_FILE_NAME=`basename $OUTPUTFILE_NAME` ## Extract output file name and use it to construct Failed file name - FAILCMDFILE="-C $LTPROOT/output/LTP_RUN_ON-$FAILED_FILE_NAME.failed" - fi - fi - - if [ ! "$TCONFCMDFILE" ]; then - ALT_DIR_OUT=1 - if [ ! "$OUTPUTFILE" ]; then - if [ ! "$LOGFILE" ]; then - TCONF_FILE_NAME="$DEFAULT_FILE_NAME_GENERATION_TIME" - TCONFCMDFILE="-T $LTPROOT/output/LTP_RUN_ON-${TCONF_FILE_NAME}.tconf" - else - TCONF_FILE_NAME=`basename $LOGFILE_NAME` - TCONFCMDFILE="-T $LTPROOT/output/LTP_RUN_ON-${TCONF_FILE_NAME}.tconf" - fi - else - TCONF_FILE_NAME=`basename $OUTPUTFILE_NAME` - TCONFCMDFILE="-T $LTPROOT/output/LTP_RUN_ON-${TCONF_FILE_NAME}.tconf" - fi - fi - - if [ "$ALT_HTML_OUT" -eq 1 ] ; then ## User wants the HTML version of the output - QUIET_MODE="" ## Suppressing this guy as it will prevent generation of proper output - ## which the HTML parser will require - if [ ! "$OUTPUTFILE" ]; then ## User has not mentioned about the Outputfile name, then we need to definitely generate one - OUTPUTFILE_NAME="$DEFAULT_FILE_NAME_GENERATION_TIME" - OUTPUTFILE="-o $LTPROOT/output/LTP_RUN_ON-$OUTPUTFILE_NAME.output" - ALT_DIR_OUT=1 - fi - fi - - # If we need, create the output directory - [ "$ALT_DIR_OUT" -eq 1 ] && \ - { - [ ! -d $LTPROOT/output ] && \ - { - echo "INFO: creating $LTPROOT/output directory" - mkdir -p $LTPROOT/output || \ - { - echo "ERROR: failed to create $LTPROOT/output" - exit 1 - } - } - } - - # If we need, create the results directory - [ "$ALT_DIR_RES" -eq 1 ] && \ - { - [ ! -d $LTPROOT/results ] && \ - { - echo "INFO: creating $LTPROOT/results directory" - mkdir -p $LTPROOT/results || \ - { - echo "ERROR: failed to create $LTPROOT/results" - exit 1 - } - } - } - - # Added -m 777 for tests that call tst_tmpdir() and try to - # write to it as user nobody - mkdir -m 777 -p $TMPBASE || \ - { - echo "FATAL: Unable to make temporary directory $TMPBASE" - exit 1 - } - # use mktemp to create "safe" temporary directories - export TMPTEMPLATE="${TMPBASE}/ltp-XXXXXXXXXX" - TMP=`mktemp -d $TMPTEMPLATE` || \ - { - echo "FATAL: Unable to make temporary directory: $TMP" - exit 1 - } - export TMP - # To be invoked by tst_tmpdir() - # write to it as user nobody - export TMPDIR=$TMP - - trap "cleanup" 0 - - chmod 777 $TMP || \ - { - echo "unable to chmod 777 $TMP ... aborting" - exit 1 - } - - cd $TMP || \ - { - echo "could not cd ${TMP} ... exiting" - exit 1 - } - - [ -n "$INSTANCES" ] && \ - { - INSTANCES="$INSTANCES -O ${TMP}" - } - - # If user does not provide a command file select a default set of testcases - # to execute. - if [ -z "$CMDFILES" ] && [ -z "$CMDFILEADDR" ]; then - - SCENARIO_LISTS="$LTPROOT/scenario_groups/default" - if [ "$RUN_NETEST" -eq 1 ]; then - SCENARIO_LISTS="$LTPROOT/scenario_groups/network" - fi - - cat <<-EOF >&1 -INFO: no command files were provided. Executing following runtest scenario files: -`cat $SCENARIO_LISTS | tr '\012' ' '` +# SPDX-License-Identifier: GPL-2.0-or-later +# Copyright (c) Linux Test Project, 2026 +cat >&2 << EOF +runltp was removed from LTP use kirk instead +https://github.com/linux-test-project/kirk +https://kirk.readthedocs.io/ EOF - cat_ok_sentinel=$TMP/cat_ok.$$ - touch "$cat_ok_sentinel" - cat $SCENARIO_LISTS | while read scenfile; do - scenfile=${LTPROOT}/runtest/$scenfile - [ -f "$scenfile" ] || continue - - cat $scenfile >> "$TMP/alltests" || { - echo "FATAL: unable to append to command file" - rm -Rf "$TMP" - rm -f "$cat_ok_sentinel" - exit 1 - } - done - rm -f "$cat_ok_sentinel" - fi - - [ -n "$CMDFILES" ] && \ - { - for scenfile in `echo "$CMDFILES" | tr ',' ' '` - do - [ -f "$scenfile" ] || scenfile="$LTPROOT/runtest/$scenfile" - cat "$scenfile" >> ${TMP}/alltests || \ - { - echo "FATAL: unable to create command file" - rm -Rf "$TMP" - exit 1 - } - done - } - - [ -n "$CMDFILEADDR" ] && \ - { - wget -q "${CMDFILEADDR}" -O ${TMP}/wgetcmdfile - if [ $? -ne 0 ]; then - echo "FATAL: error while getting the command file with wget (address $CMDFILEADDR)" - exit 1 - fi - cat "${TMP}/wgetcmdfile" >> ${TMP}/alltests || \ - { - echo "FATAL: unable to create command file" - exit 1 - } - } - - # If enabled, execute only test cases that match the PATTERN - if [ -n "$TAG_RESTRICT_STRING" ] - then - mv -f ${TMP}/alltests ${TMP}/alltests.orig - grep $TAG_RESTRICT_STRING ${TMP}/alltests.orig > ${TMP}/alltests #Not worth checking return codes for this case - fi - - # Blacklist or skip tests if a SKIPFILE was specified with -S - if [ -n "${SKIPFILE}" ]; then - for test_name in $(awk '{print $1}' "${SKIPFILE}"); do - case "${test_name}" in \#*) continue;; esac - sed -i "/\<${test_name}\>/c\\${test_name} exit 32;" alltests - done - fi - - # check for required users and groups - ${LTPROOT}/IDcheck.sh || \ - { - echo "WARNING: required users and groups not present" - echo "WARNING: some test cases may fail" - } - - # display versions of installed software - [ -z "$QUIET_MODE" ] && \ - { - ${LTPROOT}/ver_linux || \ - { - echo "WARNING: unable to display versions of software installed" - exit 1 - } - } - - set_block_device - - # here even if the user don't specify a big block device, we - # also don't create the big block device. - if [ -z "$BIG_DEVICE" ]; then - echo "no big block device was specified on commandline." - echo "Tests which require a big block device are disabled." - echo "You can specify it with option -z" - else - export LTP_BIG_DEV=$BIG_DEVICE - if [ -z "$BIG_DEVICE_FS_TYPE" ]; then - export LTP_BIG_DEV_FS_TYPE="ext2" - else - export LTP_BIG_DEV_FS_TYPE=$BIG_DEVICE_FS_TYPE - fi - fi - - if [ $RUN_REPEATED -gt 1 ]; then # You need to specify at least more than 1 sequential run, else it runs default - echo "PAN will run these test cases $RUN_REPEATED times....." - echo "Test Tags will be Prepended with ITERATION NO.s....." - inc=1 - sed -e '/^$/ d' -e 's/^[ ,\t]*//' -e '/^#/ d' < ${TMP}/alltests > ${TMP}/alltests.temp ##This removes all newlines, leading spaces, tabs, # - sed 's/^[0-9,a-z,A-Z]*/'"$inc"'_ITERATION_&/' < ${TMP}/alltests.temp > ${TMP}/alltests ## .temp is kept as Base file - while [ $inc -lt $RUN_REPEATED ] ; do - inc=`expr $inc + 1` - sed 's/^[0-9,a-z,A-Z]*/'"$inc"'_ITERATION_&/' < ${TMP}/alltests.temp >> ${TMP}/alltests #Keep appending with Iteration No.s - done - fi - - if [ "$RANDOMRUN" != "0" ]; then - sort -R ${TMP}/alltests -o ${TMP}/alltests - fi - - [ ! -z "$QUIET_MODE" ] && { echo "INFO: Test start time: $(date)" ; } - PAN_COMMAND="${LTPROOT}/bin/ltp-pan $QUIET_MODE $NO_KMSG -e -S $INSTANCES $DURATION -a ${ZOOFILE} \ - -n $$ $PRETTY_PRT -f ${TMP}/alltests $LOGFILE $OUTPUTFILE $FAILCMDFILE $TCONFCMDFILE" - echo "COMMAND: $PAN_COMMAND" - if [ ! -z "$TAG_RESTRICT_STRING" ] ; then - echo "INFO: Restricted to $TAG_RESTRICT_STRING" - fi - #$PAN_COMMAND #Duplicated code here, because otherwise if we fail, only "PAN_COMMAND" gets output - - ## Display the Output/Log/Failed/HTML file names here - printf "LOG File: " - echo $LOGFILE | cut -b4- - - if [ "$OUTPUTFILE" ]; then - printf "OUTPUT File: " - echo $OUTPUTFILE | cut -b4- - fi - - printf "FAILED COMMAND File: " - echo $FAILCMDFILE | cut -b4- - - printf "TCONF COMMAND File: " - echo $TCONFCMDFILE | cut -b4- - - if [ "$HTMLFILE" ]; then - echo "HTML File: $HTMLFILE" - fi - - echo "Running tests......." - test_start_time=$(date) - - # User wants testing with Kernel Fault Injection - if [ $INJECT_KERNEL_FAULT ] ; then - #See if Debugfs is mounted, and - #Fault Injection Framework available through Debugfs - use_faultinjection=true - for debug_subdir in \ - fail_io_timeout \ - fail_make_request \ - fail_page_alloc \ - failslab \ - ; do - if [ -d "/sys/kernel/debug/$debug_subdir" ] - then - use_faultinjection=true - break - fi - done - if $use_faultinjection; then - #If at least one of the Framework is available - #Go ahead to Inject Fault & Create required - #Command Files for LTP run - echo Running tests with Fault Injection Enabled in the Kernel... - awk -v LOOPS=$INJECT_FAULT_LOOPS_PER_TEST \ - -v PERCENTAGE=$INJECT_KERNEL_FAULT_PERCENTAGE \ - -f ${LTPROOT}/bin/create_kernel_faults_in_loops_and_probability.awk \ - ${TMP}/alltests > ${TMP}/alltests.tmp - cp ${TMP}/alltests.tmp ${TMP}/alltests - rm -rf ${TMP}/alltests.tmp - else - echo Fault Injection not enabled in the Kernel.. - echo Running tests normally... - fi - fi - - ## Valgrind Check will work only when Kernel Fault Injection is not expected, - ## We do not want to test Faults when valgrind is running - if [ $VALGRIND_CHECK ]; then - if [ ! $INJECT_KERNEL_FAULT ]; then - which valgrind || VALGRIND_CHECK_TYPE=XYZ - case $VALGRIND_CHECK_TYPE in - [1-3]) - awk -v CHECK_LEVEL=$VALGRIND_CHECK_TYPE \ - -f ${LTPROOT}/bin/create_valgrind_check.awk \ - ${TMP}/alltests $VALGRIND_CHECK_TYPE > \ - ${TMP}/alltests.tmp - cp ${TMP}/alltests.tmp ${TMP}/alltests - rm -rf ${TMP}/alltests.tmp - ;; - *) - echo "Invalid Memory Check Type, or, Valgrind is not available" - ;; - esac - fi - fi - - if [ $ALT_DMESG_OUT -eq 1 ] ; then - #We want to print dmesg output for each test,lets do the trick inside the script - echo Enabling dmesg output logging for each test... - awk -v DMESG_DIR=$DMESG_DIR \ - -f ${LTPROOT}/bin/create_dmesg_entries_for_each_test.awk \ - ${TMP}/alltests > ${TMP}/alltests.tmp - cp ${TMP}/alltests.tmp ${TMP}/alltests - rm -rf ${TMP}/alltests.tmp - fi - # Some tests need to run inside the "bin" directory. - cd "${LTPROOT}/testcases/bin" - "${LTPROOT}/bin/ltp-pan" $QUIET_MODE $NO_KMSG -e -S $INSTANCES $DURATION -a ${ZOOFILE} -n $$ $PRETTY_PRT -f ${TMP}/alltests $LOGFILE $OUTPUTFILE $FAILCMDFILE $TCONFCMDFILE - - if [ $? -eq 0 ]; then - echo "INFO: ltp-pan reported all tests PASS" - VALUE=0 - export LTP_EXIT_VALUE=0; - else - echo "INFO: ltp-pan reported some tests FAIL" - VALUE=1 - export LTP_EXIT_VALUE=1; - fi - cd .. - echo "LTP Version: $version_date" - - # $DMESG_DIR is used to cache messages obtained from dmesg after a test run. - # Proactively reap all of the 0-byte files in $DMESG_DIR as they have zero value - # and only clutter up the filesystem. - - if [ $ALT_DMESG_OUT -eq 1 ] ; then - if ! find "$DMESG_DIR" -size 0 -exec rm {} + ; then - echo "cd to $DMESG_DIR failed: $?" - fi - if [ -n "$(ls "$DMESG_DIR")" ] ; then - echo "Kernel messages were generated for LTP tests $version_date" - else - echo "No Kernel messages were generated for LTP tests $version_date" - fi - fi - - if [ "$ALT_HTML_OUT" -eq 1 ] ; then #User wants the HTML output to be created, it then needs to be generated - export LTP_VERSION=$version_date - export TEST_START_TIME="$test_start_time" - export TEST_END_TIME="$(date)" - OUTPUT_FILE=`echo $OUTPUTFILE | cut -c4-` - LOGS_DIRECTORY="$LTPROOT/results" - export TEST_OUTPUT_DIRECTORY="$LTPROOT/output" - export TEST_LOGS_DIRECTORY=$LOGS_DIRECTORY - echo "Generating HTML Output.....!!" - ( perl $LTPROOT/bin/genhtml.pl $LTPROOT/bin/html_report_header.txt test_start test_end test_output execution_status $OUTPUT_FILE > $HTMLFILE; ) - echo "Generated HTML Output.....!!" - echo "Location: $HTMLFILE"; - - fi - - if [ "$ALT_EMAIL_OUT" -eq 1 ] ; then ## User wants reports to be e-mailed - TAR_FILE_NAME=LTP_RUN_$version_date$DEFAULT_FILE_NAME_GENERATION_TIME.tar - if [ "$HTMLFILE_NAME" ] ; then ## HTML file Exists - if [ "$ALT_HTML_OUT" -ne 1 ] ; then ## The HTML file path is absolute and not $LTPROOT/output - mkdir -p $LTPROOT/output ## We need to create this Directory - cp $HTMLFILE_NAME $LTPROOT/output/ - fi - fi - if [ "$OUTPUTFILE_NAME" ] ; then ## Output file exists - if [ "$ALT_DIR_OUT" -ne 1 ] ; then ## The Output file path is absolute and not $LTPROOT/output - mkdir -p $LTPROOT/output ## We need to create this Directory - cp $OUTPUTFILE_NAME $LTPROOT/output/ - fi - fi - if [ "$LOGFILE_NAME" ] ; then ## Log file exists - if [ "$ALT_DIR_RES" -ne 1 ] ; then ## The Log file path is absolute and not $LTPROOT/results - mkdir -p $LTPROOT/results ## We need to create this Directory - cp $LOGFILE_NAME $LTPROOT/results/ - fi - fi - if [ -d $LTPROOT/output ] ; then - tar -cf ./$TAR_FILE_NAME $LTPROOT/output - if [ $? -eq 0 ]; then - echo "Created TAR File: ./$TAR_FILE_NAME successfully, added $LTPROOT/output" - else - echo "Cannot Create TAR File: ./$TAR_FILE_NAME for adding $LTPROOT/output" - fi - fi - if [ -d $LTPROOT/results ] ; then - tar -uf ./$TAR_FILE_NAME $LTPROOT/results - if [ $? -eq 0 ]; then - echo "Updated TAR File: ./$TAR_FILE_NAME successfully, added $LTPROOT/results" - else - echo "Cannot Update TAR File: ./$TAR_FILE_NAME for adding $LTPROOT/results" - fi - fi - if [ -e $LTPROOT/nohup.out ] ; then ## If User would have Chosen nohup to do ltprun - tar -uf ./$TAR_FILE_NAME $LTPROOT/nohup.out - if [ $? -eq 0 ]; then - echo "Updated TAR File: ./$TAR_FILE_NAME successfully, added $LTPROOT/nohup.out" - else - echo "Cannot Update TAR File: ./$TAR_FILE_NAME for adding $LTPROOT/nohup.out" - fi - fi - gzip ./$TAR_FILE_NAME ## gzip this guy - if [ $? -eq 0 ]; then - echo "Gunzipped TAR File: ./$TAR_FILE_NAME" - else - echo "Cannot Gunzip TAR File: ./$TAR_FILE_NAME" - fi - if which mutt >/dev/null 2>&1; then - echo "Starting mailing reports to: $EMAIL_TO, file: ./$TAR_FILE_NAME.gz" - mutt -a ./$TAR_FILE_NAME.gz -s "LTP Reports on $test_start_time" -- $EMAIL_TO < /dev/null - if [ $? -eq 0 ]; then - echo "Reports Successfully mailed to: $EMAIL_TO" - else - echo "Reports cannot be mailed to: $EMAIL_TO" - fi - else ## Use our Ageold mail program - echo "Starting mailing reports to: $EMAIL_TO, file: ./$TAR_FILE_NAME.gz" - uuencode ./$TAR_FILE_NAME.gz $TAR_FILE_NAME.gz | mail $EMAIL_TO -s "LTP Reports on $test_start_time" - if [ $? -eq 0 ]; then - echo "Reports Successfully mailed to: $EMAIL_TO" - else - echo "Reports cannot be mailed to: $EMAIL_TO" - fi - fi - fi - - [ ! -z "$QUIET_MODE" ] && { echo "INFO: Test end time: $(date)" ; } - - [ "$GENLOAD" -eq 1 ] && { killall -9 genload >/dev/null 2>&1; } - [ "$NETPIPE" -eq 1 ] && { killall -9 NPtcp >/dev/null 2>&1; } - - [ "$ALT_DIR_OUT" -eq 1 ] || [ "$ALT_DIR_RES" -eq 1 ] && \ - { - cat <<-EOF >&1 - - ############################################################### - - Done executing testcases. - LTP Version: $version_date - ############################################################### - - EOF - } - - deprecated - - exit $VALUE -} - -set_block_device() -{ - if [ -n "$DEVICE" ]; then - export LTP_DEV=$DEVICE - fi -} - -cleanup() -{ - [ "$LOOP_DEV" ] && losetup -d $LOOP_DEV - rm -rf ${TMP} -} - - -LTP_SCRIPT="$(basename $0)" -if [ "$LTP_SCRIPT" = "runltp" ]; then - setup - main "$@" -fi +exit 1
Signature · 5 lines
2.51.0 -- Mailing list info: https://lists.linux.it/listinfo/ltp
Re: [LTP] [PATCH v2 3/6] runltp: Remove
Hi!
Signature · 5 lines
Cyril Hrubis [email protected] -- Mailing list info: https://lists.linux.it/listinfo/ltp
A message that is not in the archive (sent off-list or not yet received): [email protected]
Anders Roxell
Reviewed-byRe: [LTP] [PATCH v2 3/6] runltp: Remove
Quoted 7 lines · Enji Cooper (yaneurabeya)
Quoted 5 lines · Cyril Hrubis
Reviewed-by Cyril Hrubis <[email protected]>Reviewed-by Enji Cooper <[email protected]>
Cheers,
Anders
Signature · 1 line
Mailing list info: https://lists.linux.it/listinfo/ltp
Re: [LTP] [PATCH v2 3/6] runltp: Remove
In reply to Petr VorelQuoted 8 lines · Petr Vorel
runltp was replaced with kirk.
https://github.com/linux-test-project/kirkReplace it with simple script just posting info about kirk and exit 1 (fail).
Signed-off-by Petr Vorel <[email protected]>
Signature · 1 line
Mailing list info: https://lists.linux.it/listinfo/ltp
PATCH v2 4/6 pan: Remove
In reply to Petr Vorelltp-pan was required for runltp, not needed for anything else.
--- Makefile | 2 +- pan/Makefile | 51 -- pan/cgi/README | 59 -- pan/cgi/browse.cgi | 225 ------- pan/cgi/reconsile.cgi | 250 ------- pan/cgi/results.cgi | 164 ----- pan/ltp-bump.c | 115 ---- pan/ltp-pan.c | 1485 ----------------------------------------- pan/splitstr.c | 192 ------ pan/splitstr.h | 36 - pan/tag_report.h | 51 -- pan/zoolib.c | 447 ------------- pan/zoolib.h | 83 --- 13 files changed, 1 insertion(+), 3159 deletions(-) delete mode 100644 pan/Makefile delete mode 100644 pan/cgi/README delete mode 100755 pan/cgi/browse.cgi delete mode 100755 pan/cgi/reconsile.cgi delete mode 100755 pan/cgi/results.cgi delete mode 100644 pan/ltp-bump.c delete mode 100644 pan/ltp-pan.c delete mode 100644 pan/splitstr.c delete mode 100644 pan/splitstr.h delete mode 100644 pan/tag_report.h delete mode 100644 pan/zoolib.c delete mode 100644 pan/zoolib.h
Makefile +1 -1
@@ -31,7 +31,7 @@ vpath %.mk $(top_srcdir)/mk:$(top_srcdir)/mk/include # BOOTSTRAP_TARGETS: Directories required to bootstrap out-of-build-tree # support. -COMMON_TARGETS := pan utils +COMMON_TARGETS := utils define target_to_dir_dep_mapping ifeq ($$(filter %-clean,$(1)),) # not *-clean
pan/Makefile deleted +0 -51
51 lines not on this page · raw message
pan/cgi/README deleted +0 -59
59 lines not on this page · raw message
pan/cgi/browse.cgi deleted +0 -225
225 lines not on this page · raw message
pan/cgi/reconsile.cgi deleted +0 -250
250 lines not on this page · raw message
pan/cgi/results.cgi deleted +0 -164
164 lines not on this page · raw message
pan/ltp-bump.c deleted +0 -115
115 lines not on this page · raw message
pan/ltp-pan.c deleted +0 -1485
1,485 lines not on this page · raw message
pan/splitstr.c deleted +0 -192
192 lines not on this page · raw message
pan/splitstr.h deleted +0 -36
@@ -1,36 +0,0 @@ -#ifndef _SPLITSTR_H_ -#define _SPLITSTR_H_ -/* -* Synopsis -* -* const char **splitstr(const char *str, const char *separator, int *argcount) -* -* Description -* This function splits a string (str) into components that are separated by -* one or more of the characters in the (separator) string. An array of -* strings is returned, along with argcount being set to the number of strings -* found. Argcount can be NULL. There will always be a NULL element in the -* array after the last valid element. If an error occurs, NULL will be -* returned and argcount will be set to zero. -* -* To rid yourself of the memory allocated for splitstr(), pass the return -* value from splitstr() unmodified to splitstr_free(): -* -* void splitstr_free( const char ** return_from_splitstr ); -* -*/ -const char ** -splitstr (const char *,const char *,int *); - -/* -* splitster_free( const char ** ) -* -* This takes the return value from splitster() and free()s memory -* allocated by splitster. Assuming: ret=splitster(...), this -* requires that ret and *ret returned from splitster() have not -* been modified. -*/ -void -splitstr_free (const char ** ); - -#endif
pan/tag_report.h deleted +0 -51
51 lines not on this page · raw message
pan/zoolib.c deleted +0 -447
364 lines not on this page · raw message
pan/zoolib.h deleted +0 -83
83 lines not on this page · raw message
The rest of this diff is not shown. View the raw message.
Signature · 5 lines
2.51.0 -- Mailing list info: https://lists.linux.it/listinfo/ltp
Part of the diff is not shown here. View the raw message.
Re: [LTP] [PATCH v2 4/6] pan: Remove
Hi!
Signature · 5 lines
Cyril Hrubis [email protected] -- Mailing list info: https://lists.linux.it/listinfo/ltp
PATCH v2 5/6 tools: Remove tools used by runltp
In reply to Petr Vorelrestore_kernel_faults_default.sh and insert_kernel_faults.sh were used by create_kernel_faults_in_loops_and_probability.awk, other tools (create_dmesg_entries_for_each_test.awk, create_valgrind_check.awk, create_kernel_faults_in_loops_and_probability.awk, genhtml.pl, genload, html_report_header.txt) directly by runltp.
--- tools/Makefile | 2 +- tools/create_dmesg_entries_for_each_test.awk | 35 - ...kernel_faults_in_loops_and_probability.awk | 40 - tools/create_valgrind_check.awk | 42 - tools/genhtml.pl | 249 ----- tools/genload/.gitignore | 2 - tools/genload/Makefile | 31 - tools/genload/README | 72 -- tools/genload/genload.c | 898 ------------------ tools/genload/stress.c | 898 ------------------ tools/html_report_header.txt | 56 -- tools/insert_kernel_faults.sh | 53 -- tools/restore_kernel_faults_default.sh | 86 -- 13 files changed, 1 insertion(+), 2463 deletions(-) delete mode 100644 tools/create_dmesg_entries_for_each_test.awk delete mode 100644 tools/create_kernel_faults_in_loops_and_probability.awk delete mode 100644 tools/create_valgrind_check.awk delete mode 100644 tools/genhtml.pl delete mode 100644 tools/genload/.gitignore delete mode 100644 tools/genload/Makefile delete mode 100644 tools/genload/README delete mode 100644 tools/genload/genload.c delete mode 100644 tools/genload/stress.c delete mode 100644 tools/html_report_header.txt delete mode 100755 tools/insert_kernel_faults.sh delete mode 100755 tools/restore_kernel_faults_default.sh
tools/Makefile +1 -1
@@ -24,7 +24,7 @@ top_srcdir ?= .. include $(top_srcdir)/include/mk/testcases.mk -INSTALL_TARGETS := *.awk *.pl *.sh html_report_header.txt +INSTALL_TARGETS := *.sh INSTALL_DIR := bin
tools/create_dmesg_entries_for_each_test.awk deleted +0 -35
@@ -1,35 +0,0 @@ -#!/usr/bin/awk -f -# -# Script for adding necessary dmesg clear/capture calls before executing -# commands. -# -# Copyright (C) 2012, Linux Test Project. -# -# This program is free software; you can redistribute it and/or modify -# it under the terms of the GNU General Public License as published by -# the Free Software Foundation; either version 2 of the License, or -# (at your option) any later version. -# -# This program is distributed in the hope that it will be useful, -# but WITHOUT ANY WARRANTY; without even the implied warranty of -# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the -# GNU General Public License for more details. -# -# You should have received a copy of the GNU General Public License along -# with this program; if not, write to the Free Software Foundation, Inc., -# 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA. -# -# Ngie Cooper, April 2012 -# - -NF && ! /^#/ { - s = $1 "__with_dmesg_entry dmesg -c 1>/dev/null 2>&1;" - for (i = 2; i <= NF; i++) { - s = s " " $i - } - sub(/[;]+$/, "", s) - s = s "; EXIT_CODE=$?" - s = s "; dmesg > " DMESG_DIR "/" $1 ".dmesg.log" - s = s "; exit $EXIT_CODE" - print s -}
tools/create_kernel_faults_in_loops_and_probability.awk deleted +0 -40
@@ -1,40 +0,0 @@ -#!/usr/bin/awk -f -# -# Script for adding necessary dmesg clear/capture calls before executing -# commands. -# -# Copyright (C) 2012, Linux Test Project. -# -# This program is free software; you can redistribute it and/or modify -# it under the terms of the GNU General Public License as published by -# the Free Software Foundation; either version 2 of the License, or -# (at your option) any later version. -# -# This program is distributed in the hope that it will be useful, -# but WITHOUT ANY WARRANTY; without even the implied warranty of -# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the -# GNU General Public License for more details. -# -# You should have received a copy of the GNU General Public License along -# with this program; if not, write to the Free Software Foundation, Inc., -# 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA. -# -# Ngie Cooper, April 2012 -# - -NF && ! /^#/ { - print - for (i = 1; i <= LOOPS; i++) { - s = $1 "_loop_" i "_under_fault_kernel " - if (i == 1) { - s = s "$LTPROOT/bin/insert_kernel_faults.sh " PERCENTAGE "; " - } - for (j = 2; j <= NF; j++) { - s = s " " $j - } - if (i == LOOPS) { - s = s "; while ! $LTPROOT/bin/restore_kernel_faults_default.sh; do :; done" - } - print s - } -}
tools/create_valgrind_check.awk deleted +0 -42
42 lines not on this page · raw message
tools/genhtml.pl deleted +0 -249
249 lines not on this page · raw message
tools/genload/.gitignore deleted +0 -2
@@ -1,2 +0,0 @@ -genload -stress
tools/genload/Makefile deleted +0 -31
@@ -1,31 +0,0 @@ -# -# tools/genload Makefile. -# -# Copyright (C) 2009, Cisco Systems Inc. -# -# This program is free software; you can redistribute it and/or modify -# it under the terms of the GNU General Public License as published by -# the Free Software Foundation; either version 2 of the License, or -# (at your option) any later version. -# -# This program is distributed in the hope that it will be useful, -# but WITHOUT ANY WARRANTY; without even the implied warranty of -# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the -# GNU General Public License for more details. -# -# You should have received a copy of the GNU General Public License along -# with this program; if not, write to the Free Software Foundation, Inc., -# 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA. -# -# Ngie Cooper, July 2009 -# - -top_srcdir ?= ../.. - -include $(top_srcdir)/include/mk/env_pre.mk - -CFLAGS += -DPACKAGE=\"stress\" -DVERSION=\"0.17pre11\" - -LDLIBS += -lm - -include $(top_srcdir)/include/mk/generic_leaf_target.mk
tools/genload/README deleted +0 -72
72 lines not on this page · raw message
tools/genload/genload.c deleted +0 -898
898 lines not on this page · raw message
tools/genload/stress.c deleted +0 -898
898 lines not on this page · raw message
tools/html_report_header.txt deleted +0 -56
56 lines not on this page · raw message
tools/insert_kernel_faults.sh deleted +0 -53
53 lines not on this page · raw message
tools/restore_kernel_faults_default.sh deleted +0 -86
86 lines not on this page · raw message
Signature · 5 lines
2.51.0 -- Mailing list info: https://lists.linux.it/listinfo/ltp
Re: [LTP] [PATCH v2 5/6] tools: Remove tools used by runltp
Hi!
Signature · 5 lines
Cyril Hrubis [email protected] -- Mailing list info: https://lists.linux.it/listinfo/ltp
PATCH v2 6/6 kirk: Remove runltp-ng symlink
In reply to Petr Vorelkirk is here long enough to remove the symlink.
--- tools/kirk/Makefile | 2 -- 1 file changed, 2 deletions(-)
tools/kirk/Makefile +0 -2
@@ -17,8 +17,6 @@ ifneq ($(wildcard $(abs_srcdir)/kirk-src/libkirk/*.py),) install -m 00644 $(abs_srcdir)/kirk-src/libkirk/*.py $(BASE_DIR)/libkirk install -m 00644 $(abs_srcdir)/kirk-src/libkirk/channels/*.py $(BASE_DIR)/libkirk/channels install -m 00775 $(abs_srcdir)/kirk-src/kirk $(BASE_DIR)/kirk - - cd $(BASE_DIR) && ln -sf kirk runltp-ng endif include $(top_srcdir)/include/mk/generic_leaf_target.mk
Signature · 5 lines
2.51.0 -- Mailing list info: https://lists.linux.it/listinfo/ltp
Re: [LTP] [PATCH v2 6/6] kirk: Remove runltp-ng symlink
Hi!
Signature · 5 lines
Cyril Hrubis [email protected] -- Mailing list info: https://lists.linux.it/listinfo/ltp
A message that is not in the archive (sent off-list or not yet received): [email protected]
Anders Roxell
Reviewed-byRe: [LTP] [PATCH v2 6/6] kirk: Remove runltp-ng symlink
Quoted 23 lines · Enji Cooper (yaneurabeya)
Quoted 23 lines · Petr Vorel
kirk is here long enough to remove the symlink.
Signed-off-by Petr Vorel <[email protected]>---
tools/kirk/Makefile| 2 --1 file changed, 2 deletions(-)tools/kirk/Makefile +0
-0@@ -17,8 +17,6 @@ ifneq ($(wildcard $(abs_srcdir)/kirk-src/libkirk/*.py),)install -m 00644 $(abs_srcdir)/kirk-src/libkirk/*.py $(BASE_DIR)/libkirk install -m 00644 $(abs_srcdir)/kirk-src/libkirk/channels/*.py $(BASE_DIR)/libkirk/channels install -m 00775 $(abs_srcdir)/kirk-src/kirk $(BASE_DIR)/kirk
-
- cd $(BASE_DIR) && ln -sf kirk runltp-ng
endif
Quoted 3 lines
Quoted 1 line
include $(top_srcdir)/include/mk/generic_leaf_target.mk
Reviewed-by Enji Cooper <[email protected]>
Cheers,
Anders
Signature · 1 line
Mailing list info: https://lists.linux.it/listinfo/ltp
Hi!
I don't know if it makes sense for you, but I would implement this before merging this patch. What do you think?
https://github.com/linux-test-project/kirk/issues/72
Signature · 7 lines
Andrea Cervesato SUSE QE Automation Engineer Linux [email protected] -- Mailing list info: https://lists.linux.it/listinfo/ltp
Hi Andrea,
Quoted 6 lines
Hi!
I don't know if it makes sense for you, but I would implement this before merging this patch. What do you think?
Yes, supporting environment variables would be useful. And I understand that due that you want to drop --env. => ack
Kind regards,
Petr
Signature · 1 line
Mailing list info: https://lists.linux.it/listinfo/ltp
Ok, let's kill this runltp! Can't wait to have the kirk PR list full of bugs to fix ;-)
Signature · 7 lines
Andrea Cervesato SUSE QE Automation Engineer Linux [email protected] -- Mailing list info: https://lists.linux.it/listinfo/ltp