Skip to content

Commit 42c9ff9

Browse files
esyrldv-alt
authored andcommitted
tests: add keyctl variants with different xlat verbosity levels
* tests/keyctl-Xabbrev.c: New file. * tests/keyctl-Xraw.c: Likewise. * tests/keyctl-Xverbose.c: Likewise. * tests/keyctl.c (XARG_STR): New macro. (do_keyctl): Print command in accordance with XLAT_RAW/XLAT_VERBOSE settings. (main): Update expected output. * tests/pure_executables.list: Add keyctl-Xabbrev, keyctl-Xraw, and keyctl-Xverbose. * tests/.gitignore: Likewise. * tests/gen_tests.in (keyctl-Xabbrev, keyctl-Xraw, keyctl-Xverbose): New tests.
1 parent 22aa768 commit 42c9ff9

File tree

7 files changed

+109
-40
lines changed

7 files changed

+109
-40
lines changed

tests/.gitignore

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -180,6 +180,9 @@ kern_features
180180
kexec_file_load
181181
kexec_load
182182
keyctl
183+
keyctl-Xabbrev
184+
keyctl-Xraw
185+
keyctl-Xverbose
183186
kill
184187
ksysent
185188
ksysent.h

tests/gen_tests.in

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -175,6 +175,9 @@ kern_features -a16
175175
kexec_file_load -s9
176176
kexec_load -s9
177177
keyctl -a31 -s10
178+
keyctl-Xabbrev -a31 -s10 -e trace=keyctl -Xabbrev
179+
keyctl-Xraw -a13 -s10 -e trace=keyctl -Xraw
180+
keyctl-Xverbose -a41 -s10 -e trace=keyctl -Xverbose
178181
kill -a12 -esignal=none
179182
lchown -a30
180183
lchown32 -a32

tests/keyctl-Xabbrev.c

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
#include "keyctl.c"

tests/keyctl-Xraw.c

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,2 @@
1+
#define XLAT_RAW 1
2+
#include "keyctl.c"

tests/keyctl-Xverbose.c

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,2 @@
1+
#define XLAT_VERBOSE 1
2+
#include "keyctl.c"

0 commit comments

Comments
 (0)