[PATCH v8 2/2] selftests: tmpfs: Add kselftest support to tmpfs

2025-01-05 Thread Shivam Chaudhary
:0 xfail:0 xpass:0 skip:1 error:0 - With root TAP version 13 1..1 ok 1 Test : Success Totals: pass:1 fail:0 xfail:0 xpass:0 skip:0 error:0 Signed-off-by: Shivam Chaudhary --- .../selftests/tmpfs/bug-link-o-tmpfile.c | 29 +-- 1 file changed, 14 insertions(+), 15 deletion

[PATCH v8 1/2] selftests: tmpfs: Add Test-skip if not run as root

2025-01-05 Thread Shivam Chaudhary
er change: - Without root TAP version 13 1..1 ok 2 # SKIP This test needs root to run! Totals: pass:0 fail:0 xfail:0 xpass:0 skip:1 error:0 - With root TAP version 13 1..1 Signed-off-by: Shivam Chaudhary --- tools/testing/selftests/tmpfs/bug-link-o-tmpfile.c | 12 1 file changed,

[PATCH v8 0/2] selftests: tmpfs: Add kselftest support

2025-01-05 Thread Shivam Chaudhary
plan() - Remove function for unshare() - Fix the comment style v2: https://lore.kernel.org/all/20241026191621.2860376-1-cvam0...@gmail.com/ v1->v2: - Make the commit message more clear. v1: https://lore.kernel.org/all/20241024200228.1075840-1-cvam0...@gmail.com/T/#u

Re: [PATCH v7 1/2] selftests: tmpfs: Add Test-skip if not run as root

2025-01-03 Thread Shivam Chaudhary
On 03/01/25 3:24 AM, Shuah Khan wrote: On 1/2/25 03:04, Shivam Chaudhary wrote: Add 'ksft_exit_skip()', if  not run as root, with an appropriate Warning. Add 'ksft_print_header()' and 'ksft_set_plan()' to structure test outputs more effectively. Test logs:

[PATCH v7 2/2] selftests: tmpfs: Add kselftest support to tmpfs

2025-01-02 Thread Shivam Chaudhary
:0 xfail:0 xpass:0 skip:1 error:0 - With root TAP version 13 1..1 ok 1 Test : Success Totals: pass:1 fail:0 xfail:0 xpass:0 skip:0 error:0 Signed-off-by: Shivam Chaudhary --- .../selftests/tmpfs/bug-link-o-tmpfile.c | 28 +-- 1 file changed, 14 insertions(+), 14 deletion

[PATCH v7 1/2] selftests: tmpfs: Add Test-skip if not run as root

2025-01-02 Thread Shivam Chaudhary
er change: - Without root TAP version 13 1..1 ok 2 # SKIP This test needs root to run! Totals: pass:0 fail:0 xfail:0 xpass:0 skip:1 error:0 - With root TAP version 13 1..1 Signed-off-by: Shivam Chaudhary --- tools/testing/selftests/tmpfs/bug-link-o-tmpfile.c | 12 1 file changed,

[PATCH v7 0/2] selftests: tmpfs: Add kselftest support

2025-01-02 Thread Shivam Chaudhary
clear. v1: https://lore.kernel.org/all/20241024200228.1075840-1-cvam0...@gmail.com/T/#u thanks Shivam Shivam Chaudhary (2): selftests: tmpfs: Add Test-skip if not run as root selftests: tmpfs: Add kselftest support to tmpfs .../selftests/tmpfs/bug-link-o-tmpfile.c | 40 --- 1 file changed, 26 insertions(+), 14 deletions(-) -- 2.34.1

[PATCH v2] selftests: acct: Add ksft_exit_skip if not running as root

2024-12-10 Thread Shivam Chaudhary
ok 2 # SKIP This test needs root to run! Totals: pass:0 fail:0 xfail:0 xpass:0 skip:1 error:0 Signed-off-by: Shivam Chaudhary --- v1->v2 : Replace ksft_exit_fail_msg -> ksft_exit_skip v1 : https://lore.kernel.org/all/20241115191721.621381-1-cvam0...@gmail.com/ tools/testing/selftest

[PATCH] selftests: acct: Add ksft_exit_fail if not running as root

2024-11-15 Thread Shivam Chaudhary
out! Error : Need to run as root# Planned tests != run tests (1 != 0) Totals: pass:0 fail:0 xfail:0 xpass:0 skip:0 error:0 Signed-off-by: Shivam Chaudhary --- tools/testing/selftests/acct/acct_syscall.c | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/tools/testing/selftests

[PATCH v5 2/2] selftests: tmpfs: Add kselftest support to tmpfs

2024-11-12 Thread Shivam Chaudhary
run as root# Planned tests != run tests (1 != 0) Totals: pass:0 fail:0 xfail:0 xpass:0 skip:0 error:0 - With root TAP version 13 1..1 ok 1 Test : Success Totals: pass:1 fail:0 xfail:0 xpass:0 skip:0 error:0 Signed-off-by: Shivam Chaudhary --- .../selftests/tmpfs/bug-link-o-tmpfile.c | 49 ++

[PATCH v5 1/2] selftests: tmpfs: Add Test-fail if not run as root

2024-11-12 Thread Shivam Chaudhary
ter Change: - Without root TAP version 13 1..1 Bail out! Error : Need to run as root# Planned tests != run tests (1 != 0) - With root TAP version 13 1..1 Signed-off-by: Shivam Chaudhary --- tools/testing/selftests/tmpfs/bug-link-o-tmpfile.c | 11 +++ 1 file changed, 11 insertions(

[PATCH v5 0/2] kselftest: tmpfs: Add ksft macros and skip if no root

2024-11-12 Thread Shivam Chaudhary
ve function for unshare() - Fix the comment style v2: https://lore.kernel.org/all/20241026191621.2860376-1-cvam0...@gmail.com/ v1->v2: - Make the commit message more clear. v1: https://lore.kernel.org/all/20241024200228.1075840-1-cvam0...@gmail.com/T/#u thanks Shivam Shivam Chaudhary (2):

[PATCH v4 1/2] selftests:tmpfs: Add Skip test if not run as root

2024-11-05 Thread Shivam Chaudhary
root TAP version 13 1..1 - With root TAP version 13 1..1 Signed-off-by: Shivam Chaudhary --- tools/testing/selftests/tmpfs/bug-link-o-tmpfile.c | 13 + 1 file changed, 13 insertions(+) diff --git a/tools/testing/selftests/tmpfs/bug-link-o-tmpfile.c b/tools/testing/selfte

[PATCH v4 2/2] selftests: tmpfs: Add kselftest support to tmpfs

2024-11-05 Thread Shivam Chaudhary
openat(): Opening the second temporary file: Success ok 1 Test : Success Totals: pass:1 fail:0 xfail:0 xpass:0 skip:0 error:0 Signed-off-by: Shivam Chaudhary --- .../selftests/tmpfs/bug-link-o-tmpfile.c | 66 ++- 1 file changed, 49 insertions(+), 17 deletions(-)

[PATCH v4 0/2] kselftest: tmpfs: Add ksft macros and skip if no root

2024-11-05 Thread Shivam Chaudhary
function for unshare() - Fix the comment style v2: https://lore.kernel.org/all/20241026191621.2860376-1-cvam0...@gmail.com/ v1->v2: - Make the commit message more clear. v1: https://lore.kernel.org/all/20241024200228.1075840-1-cvam0...@gmail.com/T/#u thanks Shivam Shivam Chaudhary (2): self

[PATCH v4 1/2] selftests:tmpfs: Add Skip test if not run as root

2024-11-04 Thread Shivam Chaudhary
- Without root TAP version 13 1..1 - With root TAP version 13 1..1 Signed-off-by: Shivam Chaudhary --- Notes: Changes in v4 1/2: - Start a patchset - Split patch into smaller pathes to mak

[PATCH v3] selftests: tmpfs: Add kselftest support to tmpfs

2024-10-28 Thread Shivam Chaudhary
t temporary file: Success linkat(): Linking the temporary file: Success openat(): Opening the second temporary file: Success ok 1 Test : Success Totals: pass:1 fail:0 xfail:0 xpass:0 skip:0 error:0 Signed-off-by: Shivam Chaudhary --- Notes: Changes in v3:

[PATCH v2] selftests: tmpfs: Add kselftest support to tmpfs

2024-10-26 Thread Shivam Chaudhary
ff-by: Shivam Chaudhary --- Notes: Changes in v2: - Make the commit message more clear. link to v1: https://lore.kernel.org/all/20241024200228.1075840-1-cvam0...@gmail.com/T/#u .../selftests/tmpfs/bug-link-o-tmpfile.c | 72 +++ 1 file ch

[PATCH v2] selftests: tmpfs: Add kselftest support to tmpfs

2024-10-24 Thread Shivam Chaudhary
ff-by: Shivam Chaudhary --- Changes in v2: - Make the commit message more clear. .../selftests/tmpfs/bug-link-o-tmpfile.c | 72 +++ 1 file changed, 58 insertions(+), 14 deletions(-) diff --git a/tools/testing/selftests/tmpfs/bug-link-o-tmpfile.c b/tools/testing/selftests/

Re: [PATCH] Fix typo in vringh_test.c

2024-10-19 Thread Shivam Chaudhary
On 08/10/24 8:22 PM, Shivam Chaudhary wrote: Corrected minor typo in tools/virtio/vringh_test.c: - Fixed "retreives" to "retrieves" Signed-off-by: Shivam Chaudhary --- tools/virtio/vringh_test.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tools/

[PATCH] Fix typo in vringh_test.c

2024-10-08 Thread Shivam Chaudhary
Corrected minor typo in tools/virtio/vringh_test.c: - Fixed "retreives" to "retrieves" Signed-off-by: Shivam Chaudhary --- tools/virtio/vringh_test.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tools/virtio/vringh_test.c b/tools/virtio/vringh_test.