[PATCH] selftests: xfrm: put cleanup code into a exit trap

2021-04-15 Thread Po-Hsu Lin
s/ns1": File exists It might affect the outcome of other tests as well. Move the netns cleanup code into an exit trap so that we can ensure these namespace files will be removed after the test. Signed-off-by: Po-Hsu Lin --- tools/testing/selftests/net/xfrm_policy.sh | 7 +-- 1 file

[PATCH] selftests: fix the return value for UDP GRO test

2021-01-05 Thread Po-Hsu Lin
-Hsu Lin --- tools/testing/selftests/net/udpgro.sh | 34 ++ 1 file changed, 34 insertions(+) diff --git a/tools/testing/selftests/net/udpgro.sh b/tools/testing/selftests/net/udpgro.sh index ac2a30b..f8a19f5 100755 --- a/tools/testing/selftests/net/udpgro.sh +++ b

[PATCH] selftests: xfrm: fix test return value override issue in xfrm_policy.sh

2020-12-30 Thread Po-Hsu Lin
when the next test calls check_xfrm(). With this fix, the final return value will be 1. Make it easier for testers to spot this failure. Fixes: 39aa6928d462d0 ("xfrm: policy: fix netlink/pf_key policy lookups") Signed-off-by: Po-Hsu Lin --- tools/testing/selftests/net/xfrm_policy.sh

[PATCH] selftests/powerpc: make the test check in eeh-basic.sh posix compliant

2020-12-27 Thread Po-Hsu Lin
The == operand is a bash extension, thus this will fail on Ubuntu with As the /bin/sh on Ubuntu is pointed to DASH. Use -eq to fix this posix compatibility issue. Fixes: 996f9e0f93f162 ("selftests/powerpc: Fix eeh-basic.sh exit codes") Signed-off-by: Po-Hsu Lin --- tools/testing

[PATCHv2] selftests: test_vxlan_under_vrf: mute unnecessary error message

2020-12-10 Thread Po-Hsu Lin
ectory Cannot remove namespace file "/run/netns/vm-2": No such file or directory Redirect it to /dev/null like other commands in the cleanup function to reduce confusion. Signed-off-by: Po-Hsu Lin --- tools/testing/selftests/net/test_vxlan_under_vrf.sh | 2 +- 1 file changed, 1 insertion

[PATCH] selftests: test_vxlan_under_vrf: mute uncessary error message

2020-12-10 Thread Po-Hsu Lin
ectory Cannot remove namespace file "/run/netns/vm-2": No such file or directory Redirect it to /dev/null like other commands in the cleanup function to reduce confusion. Signed-off-by: Po-Hsu Lin --- tools/testing/selftests/net/test_vxlan_under_vrf.sh | 2 +- 1 file changed, 1 insertion

[PATCH] Input: i8042 - Add ByteSpeed touchpad to noloop table

2020-11-30 Thread Po-Hsu Lin
It looks like the C15B laptop got another vendor: ByteSpeed LLC. Avoid AUX loopback on this touchpad as well, thus input subsystem will be able to recognize a Synaptics touchpad in the AUX port. BugLink: https://bugs.launchpad.net/bugs/1906128 Signed-off-by: Po-Hsu Lin --- drivers/input/serio

Re: [PATCHv2] selftests/powerpc/eeh: disable kselftest timeout setting for eeh-basic

2020-11-17 Thread Po-Hsu Lin
Hello, any update on this patch? Or do we want to increase the timeout here? Thanks! On Fri, Oct 23, 2020 at 10:45 AM Po-Hsu Lin wrote: > > The eeh-basic test got its own 60 seconds timeout (defined in commit > 414f50434aa2 "selftests/eeh: Bump EEH wait time to 60s") per

[PATCHv2 1/2] selftests: pmtu.sh: use $ksft_skip for skipped return code

2020-11-09 Thread Po-Hsu Lin
This test uses return code 2 as a hard-coded skipped state, let's use the kselftest framework skip code variable $ksft_skip instead to make it more readable and easier to maintain. Signed-off-by: Po-Hsu Lin --- tools/testing/selftests/net/pmtu.sh | 64 ++--- 1

[PATCHv2 0/2] selftests: pmtu.sh: improve the test result processing

2020-11-09 Thread Po-Hsu Lin
, the test will be marked as PASSED if nothing goes wrong and not all the tests were skipped. Po-Hsu Lin (2): selftests: pmtu.sh: use $ksft_skip for skipped return code selftests: pmtu.sh: improve the test result processing tools/testing/selftests/net/pmtu.sh | 79

[PATCHv2 2/2] selftests: pmtu.sh: improve the test result processing

2020-11-09 Thread Po-Hsu Lin
either passed or skipped, the overall result will be PASS * If any of them has failed with return code 1 or anything bad happened (e.g. return code 127 for command not found), the overall result will be FAIL Signed-off-by: Po-Hsu Lin --- tools/testing/selftests/net/pmtu.sh | 15

Re: [PATCH 2/2] selftests: pmtu.sh: improve the test result processing

2020-11-09 Thread Po-Hsu Lin
On Tue, Nov 10, 2020 at 2:09 AM Jakub Kicinski wrote: > > On Mon, 9 Nov 2020 11:42:33 +0800 Po-Hsu Lin wrote: > > On Sun, Nov 8, 2020 at 7:02 AM Jakub Kicinski wrote: > > > > > > On Thu, 5 Nov 2020 18:50:51 +0800 Po-Hsu Lin wrote: > > > > This

Re: [PATCH 2/2] selftests: pmtu.sh: improve the test result processing

2020-11-08 Thread Po-Hsu Lin
On Sun, Nov 8, 2020 at 7:02 AM Jakub Kicinski wrote: > > On Thu, 5 Nov 2020 18:50:51 +0800 Po-Hsu Lin wrote: > > This test will treat all non-zero return codes as failures, it will > > make the pmtu.sh test script being marked as FAILED when some > > sub-test got

[PATCH 1/2] selftests: pmtu.sh: use $ksft_skip for skipped return code

2020-11-05 Thread Po-Hsu Lin
This test uses return code 2 as a hard-coded skipped state, let's use the kselftest framework skip code variable $ksft_skip instead to make it more readable and easier to maintain. Signed-off-by: Po-Hsu Lin --- tools/testing/selftests/net/pmtu.sh | 64 ++--- 1

[PATCH 0/2] selftests: pmtu.sh: improve the test result processing

2020-11-05 Thread Po-Hsu Lin
, the test will be marked as PASSED if nothing goes wrong and not all the tests were skipped. Po-Hsu Lin (2): selftests: pmtu.sh: use $ksft_skip for skipped return code selftests: pmtu.sh: improve the test result processing tools/testing/selftests/net/pmtu.sh | 83

[PATCH 2/2] selftests: pmtu.sh: improve the test result processing

2020-11-05 Thread Po-Hsu Lin
either passed or skipped, the overall result will be PASS * If any of them has failed, the overall result will be FAIL * Treat other return codes (e.g. 127 for command not found) as FAIL Signed-off-by: Po-Hsu Lin --- tools/testing/selftests/net/pmtu.sh | 19 ++- 1 file

[PATCHv2] selftests/powerpc/eeh: disable kselftest timeout setting for eeh-basic

2020-10-22 Thread Po-Hsu Lin
35 seconds. In our test pool it will take about 30 seconds to run on a Power8 system that with 5 breakable devices, 60 seconds to run on a Power9 system that with 4 breakable devices. Extend the timeout setting in the kselftest framework to 5 minutes to give it a chance to finish. Signed-off-by:

Re: [PATCH] selftests/powerpc/eeh: disable kselftest timeout setting for eeh-basic

2020-10-22 Thread Po-Hsu Lin
On Fri, Oct 23, 2020 at 10:07 AM Michael Ellerman wrote: > > Po-Hsu Lin writes: > > The eeh-basic test got its own 60 seconds timeout (defined in commit > > 414f50434aa2 "selftests/eeh: Bump EEH wait time to 60s") per breakable > > device. > > &g

[PATCH] selftests/powerpc/eeh: disable kselftest timeout setting for eeh-basic

2020-10-22 Thread Po-Hsu Lin
h. And let the test to take care of the timeout control. Signed-off-by: Po-Hsu Lin --- tools/testing/selftests/powerpc/eeh/Makefile | 2 +- tools/testing/selftests/powerpc/eeh/settings | 1 + 2 files changed, 2 insertions(+), 1 deletion(-) create mode 100644 tools/testing/selftests/powerpc/ee

[PATCHv5] selftests: rtnetlink: load fou module for kci_test_encap_fou() test

2020-10-18 Thread Po-Hsu Lin
IG_NET_FOU into the config file as well. Which needs at least to be set as a loadable module. Signed-off-by: Po-Hsu Lin --- tools/testing/selftests/net/config | 1 + tools/testing/selftests/net/rtnetlink.sh | 5 + 2 files changed, 6 insertions(+) diff --git a/tools/testing/selftests/net/confi

Re: [PATCHv4] selftests: rtnetlink: load fou module for kci_test_encap_fou() test

2020-10-18 Thread Po-Hsu Lin
On Sat, Oct 17, 2020 at 7:32 AM Jakub Kicinski wrote: > > On Fri, 16 Oct 2020 12:12:11 +0800 Po-Hsu Lin wrote: > > The kci_test_encap_fou() test from kci_test_encap() in rtnetlink.sh > > needs the fou module to work. Otherwise it will fail with: > > > > $ ip netns

[PATCHv4] selftests: rtnetlink: load fou module for kci_test_encap_fou() test

2020-10-15 Thread Po-Hsu Lin
IG_NET_FOU into the config file as well. Which needs at least to be set as a loadable module. Signed-off-by: Po-Hsu Lin --- tools/testing/selftests/net/config | 1 + tools/testing/selftests/net/rtnetlink.sh | 5 + 2 files changed, 6 insertions(+) diff --git a/tools/testing/selftests/net/confi

Re: [PATCHv3] selftests: rtnetlink: load fou module for kci_test_encap_fou() test

2020-10-12 Thread Po-Hsu Lin
On Mon, Oct 12, 2020 at 11:28 PM Jakub Kicinski wrote: > > On Mon, 12 Oct 2020 13:56:15 +0800 Po-Hsu Lin wrote: > > Is there any update on this patch? > > You received feedback. Don't remove modules after tests, something else > could be using them. Hello Jakub, I have my fe

Re: [PATCHv3] selftests: rtnetlink: load fou module for kci_test_encap_fou() test

2020-10-11 Thread Po-Hsu Lin
Hello, Is there any update on this patch? Thanks! PHLin On Fri, Sep 18, 2020 at 6:39 PM Po-Hsu Lin wrote: > > Hello folks, > > any thoughts on this patch? > It can make the test pass and reduce the failure numbers in > kselftests, it will be great to have this applied.

Re: [PATCHv3] selftests: rtnetlink: load fou module for kci_test_encap_fou() test

2020-09-18 Thread Po-Hsu Lin
Hello folks, any thoughts on this patch? It can make the test pass and reduce the failure numbers in kselftests, it will be great to have this applied. Thanks PHLin On Tue, Sep 8, 2020 at 2:57 PM Po-Hsu Lin wrote: > > On Tue, Sep 8, 2020 at 4:12 AM Jakub Kicinski wrote: > > &g

Re: [PATCHv3] selftests: rtnetlink: load fou module for kci_test_encap_fou() test

2020-09-08 Thread Po-Hsu Lin
On Tue, Sep 8, 2020 at 4:12 AM Jakub Kicinski wrote: > > On Mon, 7 Sep 2020 11:50:10 +0800 Po-Hsu Lin wrote: > > The kci_test_encap_fou() test from kci_test_encap() in rtnetlink.sh > > needs the fou module to work. Otherwise it will fail with: > > > > $ ip netns

[PATCHv3] selftests: rtnetlink: load fou module for kci_test_encap_fou() test

2020-09-06 Thread Po-Hsu Lin
IG_NET_FOU into the config file as well. Which needs at least to be set as a loadable module. Signed-off-by: Po-Hsu Lin --- tools/testing/selftests/net/config | 1 + tools/testing/selftests/net/rtnetlink.sh | 6 ++ 2 files changed, 7 insertions(+) diff --git a/tools/testing/selftests/net/confi

Re: [PATCHv2] selftests: rtnetlink: load fou module for kci_test_encap_fou()

2020-09-04 Thread Po-Hsu Lin
Hello David, do you need more information for this V2 patch? Thank you PHLin On Mon, Aug 17, 2020 at 10:53 AM Po-Hsu Lin wrote: > > The kci_test_encap_fou() test from kci_test_encap() in rtnetlink.sh > needs the fou module to work. Otherwise it will fail with: > > $ ip netn

[PATCH] selftests/net: improve descriptions for XFAIL cases in psock_snd.sh

2020-09-01 Thread Po-Hsu Lin
Before changing this it's a bit confusing to read test output: raw csum_off with bad offset (fails) ./psock_snd: write: Invalid argument Change "fails" in the test case description to "expected to fail", so that the test output can be more understandable. Signe

Re: [PATCH] selftests: rtnetlink: load fou module for kci_test_encap_fou()

2020-08-16 Thread Po-Hsu Lin
On Sat, Aug 15, 2020 at 7:43 AM David Miller wrote: > > From: Po-Hsu Lin > Date: Thu, 13 Aug 2020 12:44:22 +0800 > > > diff --git a/tools/testing/selftests/net/config > > b/tools/testing/selftests/net/config > > index 3b42c06b..96d2763 100644 > > ---

[PATCHv2] selftests: rtnetlink: load fou module for kci_test_encap_fou()

2020-08-16 Thread Po-Hsu Lin
IG_NET_FOU into the config file as well. Which needs at least to be set as a loadable module. Signed-off-by: Po-Hsu Lin --- tools/testing/selftests/net/config | 1 + tools/testing/selftests/net/rtnetlink.sh | 6 ++ 2 files changed, 7 insertions(+) diff --git a/tools/testing/selftests/net/confi

[PATCH] selftests: rtnetlink: load fou module for kci_test_encap_fou()

2020-08-12 Thread Po-Hsu Lin
IG_NET_FOU into the config file as well. Signed-off-by: Po-Hsu Lin --- tools/testing/selftests/net/config | 1 + tools/testing/selftests/net/rtnetlink.sh | 6 ++ 2 files changed, 7 insertions(+) diff --git a/tools/testing/selftests/net/config b/tools/testing/selftests/net/config index 3b42c06

[PATCH 1/2] selftests: rtnetlink: correct the final return value for the test

2020-08-04 Thread Po-Hsu Lin
quot;ret" become a local variable for all sub-tests. Also, check the sub-test results in kci_test_rtnl() and return the final result for this test. Signed-off-by: Po-Hsu Lin --- tools/testing/selftests/net/rtnetlink.sh | 65 +--- 1 file changed, 43 insertio

[PATCH 2/2] selftests: rtnetlink: make kci_test_encap() return sub-test result

2020-08-04 Thread Po-Hsu Lin
: bridge setup PASS: ipv6 addrlabel PASS: set ifalias 5b193daf-0a08-46d7-af2c-e7aadd422ded for test-dummy0 PASS: vrf PASS: vxlan FAIL: can't add fou port , skipping test PASS: macsec PASS: bridge fdb get PASS: neigh get $ echo $? 0 Signed-off-by: Po-Hsu Lin

[PATCH 0/2] selftests: rtnetlink: Fix for false-negative return values

2020-08-04 Thread Po-Hsu Lin
assed. 2. The test result from two sub-tests in kci_test_encap() were not being processed, thus they will not affect the final test result of this test. Po-Hsu Lin (2): selftests: rtnetlink: correct the final return value for the test selftests: rtnetlink: make kci_test_encap()

Re: [PATCHv3] selftests/timers: Turn off timeout setting

2020-07-23 Thread Po-Hsu Lin
(Adding Shuah's linuxfoundation mail) Hello, do you need more changes / tests for this test? Thanks! Po-Hsu On Wed, Mar 18, 2020 at 10:42 AM Po-Hsu Lin wrote: > > The following 4 tests in timers can take longer than the default 45 > seconds that added in commit 852c8cbf34d3 (&

Re: [PATCH] selftests/ftrace: mark irqsoff_tracer.tc test as unresolved if the test module does not exist

2020-05-05 Thread Po-Hsu Lin
On Tue, May 5, 2020 at 9:09 PM Steven Rostedt wrote: > > > You keep forgetting to Cc Shuah's other email. Thanks! I got the recipients list from the get_mainter.pl. > > On Tue, 5 May 2020 18:14:45 +0800 > Po-Hsu Lin wrote: > > > The UNRESOLVED state is much more app

[PATCH] selftests/ftrace: mark irqsoff_tracer.tc test as unresolved if the test module does not exist

2020-05-05 Thread Po-Hsu Lin
installed properly, in this case we cannot call this as UNSUPPORTED. This change also make it consistent with other module-related tests in ftrace. Signed-off-by: Po-Hsu Lin --- .../testing/selftests/ftrace/test.d/preemptirq/irqsoff_tracer.tc | 9 - 1 file changed, 8 insertions(+), 1 deletio

Re: [PATCH] selftests/ftrace: treat module requirement unmet situation as unsupported

2020-05-04 Thread Po-Hsu Lin
On Fri, May 1, 2020 at 9:59 AM Masami Hiramatsu wrote: > > Hi, > > On Wed, 29 Apr 2020 17:50:44 +0800 > Po-Hsu Lin wrote: > > > When the required module for the test does not exist, use > > exit_unsupported instead of exit_unresolved to indicate this test

Re: [PATCH] selftests/ftrace: treat module requirement unmet situation as unsupported

2020-04-29 Thread Po-Hsu Lin
On Thu, Apr 30, 2020 at 12:29 AM Steven Rostedt wrote: > > On Wed, 29 Apr 2020 17:50:44 +0800 > Po-Hsu Lin wrote: > > > When the required module for the test does not exist, use > > exit_unsupported instead of exit_unresolved to indicate this test is > > not suppo

[PATCH] selftests/ftrace: treat module requirement unmet situation as unsupported

2020-04-29 Thread Po-Hsu Lin
ests/ftrace: Add function filter on module testcase") Fixes: af2a0750f374 ("selftests/ftrace: Improve kprobe on module testcase to load/unload module") Signed-off-by: Po-Hsu Lin --- tools/testing/selftests/ftrace/test.d/direct/ftrace-direct.tc | 2 +- tools/testing/selftests/ft

Re: [PATCH] selftests/ftrace: skip ftrace test if FTRACE was not enabled

2019-07-04 Thread Po-Hsu Lin
Hello, Thanks all for your feedback! On Wed, Jul 3, 2019 at 8:11 AM Masami Hiramatsu wrote: > > Hi Po-Hsu Lin, > > On Tue, 2 Jul 2019 13:22:26 -0600 > shuah wrote: > > > Hi Po-Hsu Lin, > > > > On 7/2/19 12:23 AM, Po-Hsu Lin wrote: > > > The ftrace

[PATCH] selftests/ftrace: skip ftrace test if FTRACE was not enabled

2019-07-02 Thread Po-Hsu Lin
1..1 selftests: ftrace: ftracetest [FAIL] To: selftests: ftrace: ftracetest CONFIG_FTRACE was not enabled, test skipped. not ok 1..1 selftests: ftrace: ftracetest [SKIP] Signed-off-by: Po-Hsu Lin --- tools/testing/selftests/ftrace

[PATCHv2] selftests/net: skip psock_tpacket test if KALLSYMS was not enabled

2019-06-30 Thread Po-Hsu Lin
-positive test result when testing it directly with the following commad against a kernel that have CONFIG_KALLSYMS disabled: make -C tools/testing/selftests TARGETS=net run_tests Signed-off-by: Po-Hsu Lin --- tools/testing/selftests/net/config| 1 + tools/testing/selftests/net

Re: [PATCH] selftests/net: skip psock_tpacket test if KALLSYMS was not enabled

2019-06-13 Thread Po-Hsu Lin
in the ftrace kprobe_args_symbol test. I can send V2 along with CONFIG_KALLSYMS appended to the "config" file if you agree with this. Thanks On Thu, Jun 13, 2019 at 12:27 AM David Miller wrote: > > From: Po-Hsu Lin > Date: Wed, 12 Jun 2019 14:47:52 +0800 > > > The

[PATCH] selftests/net: skip psock_tpacket test if KALLSYMS was not enabled

2019-06-12 Thread Po-Hsu Lin
The psock_tpacket test will need to access /proc/kallsyms, this would require the kernel config CONFIG_KALLSYMS to be enabled first. Check the file existence to determine if we can run this test. Signed-off-by: Po-Hsu Lin --- tools/testing/selftests/net/run_afpackettests | 14 +- 1

Re: [PATCHv2] selftests/efivarfs: clean up test files from test_create*()

2019-04-19 Thread Po-Hsu Lin
Hello, Commit f8a0590f fix some part of this issue. I will send out V3 base on this commit in linux-kselftest next branch. Thank you. On Fri, Apr 19, 2019 at 9:20 PM shuah wrote: > > On 4/19/19 7:12 AM, Po-Hsu Lin wrote: > > Test files created by test_create*() tes

[PATCHv2] selftests/efivarfs: clean up test files from test_create*()

2019-04-19 Thread Po-Hsu Lin
n(O_WRONLY): Operation not permitted [FAIL] Create a file_cleanup() to remove those test files in the end of each test to solve this issue. Also, use this function to replace the existing file removal code. Link: https://bugs.launchpad.net/bugs/1809704 Signed-off-by:

[PATCHv3] selftests/efivarfs: clean up test files from test_create*()

2019-04-19 Thread Po-Hsu Lin
move those test files in the end of each test to solve this issue. For the test_create_read, we can move the clean up task to the end of the test to ensure the system is clean. Also, use this function to replace the existing file removal code. Signed-off-by: Po-Hsu Lin --- tools/testing/selftest

[PATCH] selftests: cpu-hotplug: check hotplug dir for the CONFIG_HOTPLUG_CPU

2019-03-12 Thread Po-Hsu Lin
When the CONFIG_HOTPLUG_CPU is not set, there won't be a "hotplug" directory in /sys/devices/system/cpu/. Make use of this fact to check if we need to skip this test. Signed-off-by: Po-Hsu Lin --- tools/testing/selftests/cpu-hotplug/cpu-on-off-test.sh | 5 + 1 file changed, 5

[PATCH] selftests/efivarfs: clean up test files from test_create*()

2018-12-25 Thread Po-Hsu Lin
ssion denied" noises and a false-positive test result to the test_create_read() test. Remove those test files in the end of each test to solve this issue. Link: https://bugs.launchpad.net/bugs/1809704 Signed-off-by: Po-Hsu Lin --- tools/testing/selftests/efivarfs/efivarfs.sh | 18 +++

[PATCHv2 5/5] selftests: fix memory-hotplug test

2017-06-27 Thread Po-Hsu Lin
gable memory in offline state: offline->online memory1 offline->online memory100 offline->online memory101 skip extra tests: debugfs is not mounted $ echo $? 0 Signed-off-by: Po-Hsu Lin <po-hsu@canonical.com> --- .../selftests/memory-hotplug/mem-on-off-test.sh| 70 +

[PATCHv2 1/5] selftests: typo correction for memory-hotplug test

2017-06-27 Thread Po-Hsu Lin
Typo fixed for hotpluggable_offline_memory() in memory-hotplug test. Signed-off-by: Po-Hsu Lin <po-hsu@canonical.com> --- .../selftests/memory-hotplug/mem-on-off-test.sh| 10 +- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/tools/testing/selftests/memory-h

[PATCHv2 5/5] selftests: fix memory-hotplug test

2017-06-27 Thread Po-Hsu Lin
gable memory in offline state: offline->online memory1 offline->online memory100 offline->online memory101 skip extra tests: debugfs is not mounted $ echo $? 0 Signed-off-by: Po-Hsu Lin --- .../selftests/memory-hotplug/mem-on-off-test.sh| 70 +++- 1 file changed,

[PATCHv2 1/5] selftests: typo correction for memory-hotplug test

2017-06-27 Thread Po-Hsu Lin
Typo fixed for hotpluggable_offline_memory() in memory-hotplug test. Signed-off-by: Po-Hsu Lin --- .../selftests/memory-hotplug/mem-on-off-test.sh| 10 +- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/tools/testing/selftests/memory-hotplug/mem-on-off-test.sh b

[PATCHv2 3/5] selftests: check percentage range for memory-hotplug test

2017-06-27 Thread Po-Hsu Lin
Check the precentage range for -r flag in memory-hotplug test. Signed-off-by: Po-Hsu Lin <po-hsu@canonical.com> --- .../selftests/memory-hotplug/mem-on-off-test.sh|4 1 file changed, 4 insertions(+) diff --git a/tools/testing/selftests/memory-hotplug/mem-on-off-test.sh b

[PATCHv2 2/5] selftests: check hot-pluggagble memory for memory-hotplug test

2017-06-27 Thread Po-Hsu Lin
Check for hot-pluggable memory availability in prerequisite() of the memory-hotplug test. Signed-off-by: Po-Hsu Lin <po-hsu@canonical.com> --- .../selftests/memory-hotplug/mem-on-off-test.sh|5 + 1 file changed, 5 insertions(+) diff --git a/tools/testing/selftests/memory-h

[PATCHv2 3/5] selftests: check percentage range for memory-hotplug test

2017-06-27 Thread Po-Hsu Lin
Check the precentage range for -r flag in memory-hotplug test. Signed-off-by: Po-Hsu Lin --- .../selftests/memory-hotplug/mem-on-off-test.sh|4 1 file changed, 4 insertions(+) diff --git a/tools/testing/selftests/memory-hotplug/mem-on-off-test.sh b/tools/testing/selftests/memory

[PATCHv2 2/5] selftests: check hot-pluggagble memory for memory-hotplug test

2017-06-27 Thread Po-Hsu Lin
Check for hot-pluggable memory availability in prerequisite() of the memory-hotplug test. Signed-off-by: Po-Hsu Lin --- .../selftests/memory-hotplug/mem-on-off-test.sh|5 + 1 file changed, 5 insertions(+) diff --git a/tools/testing/selftests/memory-hotplug/mem-on-off-test.sh b

[PATCHv2 0/5] selftests: fix memory-hotplug test

2017-06-27 Thread Po-Hsu Lin
This patchset will fix a typo, print the name of the memory notifier error injection test, add two extra checks and fixes the online / offline memory test in the memory-hotplug test. Po-Hsu Lin (5): selftests: typo correction for memory-hotplug test selftests: check hot-pluggagble memory

[PATCHv2 0/5] selftests: fix memory-hotplug test

2017-06-27 Thread Po-Hsu Lin
This patchset will fix a typo, print the name of the memory notifier error injection test, add two extra checks and fixes the online / offline memory test in the memory-hotplug test. Po-Hsu Lin (5): selftests: typo correction for memory-hotplug test selftests: check hot-pluggagble memory

[PATCHv2 4/5] selftests: add missing test name in memory-hotplug test

2017-06-27 Thread Po-Hsu Lin
There is no prompt for testing memory notifier error injection, added with the same echo format of other tests above. Signed-off-by: Po-Hsu Lin <po-hsu@canonical.com> --- .../selftests/memory-hotplug/mem-on-off-test.sh|1 + 1 file changed, 1 insertion(+) diff --git a/tools/t

[PATCHv2 4/5] selftests: add missing test name in memory-hotplug test

2017-06-27 Thread Po-Hsu Lin
There is no prompt for testing memory notifier error injection, added with the same echo format of other tests above. Signed-off-by: Po-Hsu Lin --- .../selftests/memory-hotplug/mem-on-off-test.sh|1 + 1 file changed, 1 insertion(+) diff --git a/tools/testing/selftests/memory-hotplug

Re: [PATCH] selftests: fix memory-hotplug test

2017-06-26 Thread Po-Hsu Lin
Hello Shuah, thanks for the feedback, I will send v2 for these. Cheers On Sat, Jun 24, 2017 at 12:03 AM, Shuah Khan <sh...@kernel.org> wrote: > Hi Po-Hsu Lin, > > On 06/18/2017 09:04 PM, Po-Hsu Lin wrote: > > Please split the typo correction and fixes. Please send a patch

Re: [PATCH] selftests: fix memory-hotplug test

2017-06-26 Thread Po-Hsu Lin
Hello Shuah, thanks for the feedback, I will send v2 for these. Cheers On Sat, Jun 24, 2017 at 12:03 AM, Shuah Khan wrote: > Hi Po-Hsu Lin, > > On 06/18/2017 09:04 PM, Po-Hsu Lin wrote: > > Please split the typo correction and fixes. Please send a patch > for each individua

[PATCH] selftests: fix memory-hotplug test

2017-06-18 Thread Po-Hsu Lin
y101 skip extra tests: debugfs is not mounted PHLin@Latitude:~$ echo $? 0 Signed-off-by: Po-Hsu Lin <po-hsu@canonical.com> --- .../selftests/memory-hotplug/mem-on-off-test.sh| 86 +++- 1 file changed, 67 insertions(+), 19 deletions(-) diff --git a/tools/testing/selftest

[PATCH] selftests: fix memory-hotplug test

2017-06-18 Thread Po-Hsu Lin
y101 skip extra tests: debugfs is not mounted PHLin@Latitude:~$ echo $? 0 Signed-off-by: Po-Hsu Lin --- .../selftests/memory-hotplug/mem-on-off-test.sh| 86 +++- 1 file changed, 67 insertions(+), 19 deletions(-) diff --git a/tools/testing/selftests/memory-hotplug/mem-on-off-tes