diff options
author | Daniel Baumann <daniel.baumann@progress-linux.org> | 2024-05-06 02:42:50 +0000 |
---|---|---|
committer | Daniel Baumann <daniel.baumann@progress-linux.org> | 2024-05-06 02:42:50 +0000 |
commit | 8cb83eee5a58b1fad74c34094ce3afb9e430b5a4 (patch) | |
tree | a9b2e7baeca1be40eb734371e3c8b11b02294497 /tests/expected/misc | |
parent | Initial commit. (diff) | |
download | util-linux-upstream/2.33.1.tar.xz util-linux-upstream/2.33.1.zip |
Adding upstream version 2.33.1.upstream/2.33.1upstream
Signed-off-by: Daniel Baumann <daniel.baumann@progress-linux.org>
Diffstat (limited to '')
24 files changed, 163 insertions, 0 deletions
diff --git a/tests/expected/misc/fallocate b/tests/expected/misc/fallocate new file mode 100644 index 0000000..e45b99e --- /dev/null +++ b/tests/expected/misc/fallocate @@ -0,0 +1 @@ +384 diff --git a/tests/expected/misc/flock b/tests/expected/misc/flock new file mode 100644 index 0000000..9c97396 --- /dev/null +++ b/tests/expected/misc/flock @@ -0,0 +1,3 @@ +Locking +Unlocking +Unlocked diff --git a/tests/expected/misc/flock-exclusive b/tests/expected/misc/flock-exclusive new file mode 100644 index 0000000..3582111 --- /dev/null +++ b/tests/expected/misc/flock-exclusive @@ -0,0 +1 @@ +Success diff --git a/tests/expected/misc/flock-no-fork b/tests/expected/misc/flock-no-fork new file mode 100644 index 0000000..3582111 --- /dev/null +++ b/tests/expected/misc/flock-no-fork @@ -0,0 +1 @@ +Success diff --git a/tests/expected/misc/flock-non-block b/tests/expected/misc/flock-non-block new file mode 100644 index 0000000..3582111 --- /dev/null +++ b/tests/expected/misc/flock-non-block @@ -0,0 +1 @@ +Success diff --git a/tests/expected/misc/flock-shared b/tests/expected/misc/flock-shared new file mode 100644 index 0000000..011f325 --- /dev/null +++ b/tests/expected/misc/flock-shared @@ -0,0 +1,2 @@ +Have shared lock +Success diff --git a/tests/expected/misc/flock-time-check b/tests/expected/misc/flock-time-check new file mode 100644 index 0000000..2e9ba47 --- /dev/null +++ b/tests/expected/misc/flock-time-check @@ -0,0 +1 @@ +success diff --git a/tests/expected/misc/flock-timeout b/tests/expected/misc/flock-timeout new file mode 100644 index 0000000..b4cd5a4 --- /dev/null +++ b/tests/expected/misc/flock-timeout @@ -0,0 +1,2 @@ +After timeout. +Success diff --git a/tests/expected/misc/ionice b/tests/expected/misc/ionice new file mode 100644 index 0000000..afdf0ea --- /dev/null +++ b/tests/expected/misc/ionice @@ -0,0 +1,9 @@ +ionice: ignoring given class data for none class +ionice: unknown prio class 7 +ionice: ioprio_set failed: Invalid argument +ionice: unknown prio class 7 +ionice: ioprio_set failed: Invalid argument +ionice: unknown prio class 8 +ionice: ioprio_set failed: Invalid argument +/etc/passwd +none: prio 0 diff --git a/tests/expected/misc/line b/tests/expected/misc/line new file mode 100644 index 0000000..783ef80 --- /dev/null +++ b/tests/expected/misc/line @@ -0,0 +1,25 @@ +# usually behave like "head -n 1" +a +ret: 0 +# never consume more than one line +1 +2 +ret: 0 +# add a newline +abc +ret: 1 +# print one newline on empty input + +ret: 1 +# add a newline, return 1 when EOF +xyz +ret: 1 +# print one newline on empty input, return 1 when EOF + +ret: 1 +# large line of zero bytes +00000000 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 |................| +* +00100000 0a |.| +00100001 +ret: 0 diff --git a/tests/expected/misc/mbsencode-invalid-ascii b/tests/expected/misc/mbsencode-invalid-ascii new file mode 100644 index 0000000..4e759e1 --- /dev/null +++ b/tests/expected/misc/mbsencode-invalid-ascii @@ -0,0 +1,10 @@ +9 foo bar baz +15 \\foo.local\bar +19 \\foo.local\x5cxbar +11 \xc3\xbcber +21 c\xcc\x8ca\xcc\x81rka +56 \xd0\x9c\xd0\xbe\xd1\x81\xd0\xba\xd0\xb2\xd0\xb0\xcc\x81 +24 \xe5\x8c\x97\xe4\xba\xac +8 \xc2\x83 +4 \xff +16 \xe8\xe1\xf9\xa7 diff --git a/tests/expected/misc/mbsencode-invalid-utf8 b/tests/expected/misc/mbsencode-invalid-utf8 new file mode 100644 index 0000000..b6b51e6 --- /dev/null +++ b/tests/expected/misc/mbsencode-invalid-utf8 @@ -0,0 +1,10 @@ +9 foo bar baz +15 \\foo.local\bar +19 \\foo.local\x5cxbar +4 über +5 čárka +6 Москва́ +4 北京 +-1 +4 \xff +16 \xe8\xe1\xf9\xa7 diff --git a/tests/expected/misc/mbsencode-safe-ascii b/tests/expected/misc/mbsencode-safe-ascii new file mode 100644 index 0000000..a7473d7 --- /dev/null +++ b/tests/expected/misc/mbsencode-safe-ascii @@ -0,0 +1,10 @@ +14 foo\x09bar baz +15 \\foo.local\bar +19 \\foo.local\x5cxbar +11 \xc3\xbcber +21 c\xcc\x8ca\xcc\x81rka +56 \xd0\x9c\xd0\xbe\xd1\x81\xd0\xba\xd0\xb2\xd0\xb0\xcc\x81 +24 \xe5\x8c\x97\xe4\xba\xac +8 \xc2\x83 +4 \xff +16 \xe8\xe1\xf9\xa7 diff --git a/tests/expected/misc/mbsencode-safe-utf8 b/tests/expected/misc/mbsencode-safe-utf8 new file mode 100644 index 0000000..63a417c --- /dev/null +++ b/tests/expected/misc/mbsencode-safe-utf8 @@ -0,0 +1,10 @@ +14 foo\x09bar baz +15 \\foo.local\bar +19 \\foo.local\x5cxbar +4 über +5 čárka +6 Москва́ +4 北京 +8 \xc2\x83 +4 \xff +16 \xe8\xe1\xf9\xa7 diff --git a/tests/expected/misc/mcookie b/tests/expected/misc/mcookie new file mode 100644 index 0000000..d1c0351 --- /dev/null +++ b/tests/expected/misc/mcookie @@ -0,0 +1 @@ +the string meets expecations diff --git a/tests/expected/misc/rev b/tests/expected/misc/rev new file mode 100644 index 0000000..6387476 --- /dev/null +++ b/tests/expected/misc/rev @@ -0,0 +1,4 @@ +53bbf0d98205319cee2ba589e205c68b +35484965b7a2fd45a471c0d80cb9752c +cba +321
\ No newline at end of file diff --git a/tests/expected/misc/setarch-options b/tests/expected/misc/setarch-options new file mode 100644 index 0000000..e043585 --- /dev/null +++ b/tests/expected/misc/setarch-options @@ -0,0 +1,23 @@ +###### unknown arch +setarch: qubit: Unrecognized architecture +exit: 1 +###### unknown command +Execute command `/das/gibs/nicht'. +setarch: failed to execute /das/gibs/nicht: No such file or directory +exit: 127 +###### noop uname -a +Execute command `uname'. +uname -a unchanged +###### almost all options +Switching on ADDR_NO_RANDOMIZE. +Switching on FDPIC_FUNCPTRS. +Switching on MMAP_PAGE_ZERO. +Switching on ADDR_COMPAT_LAYOUT. +Switching on READ_IMPLIES_EXEC. +Switching on ADDR_LIMIT_32BIT. +Switching on SHORT_INODE. +Switching on WHOLE_SECONDS. +Switching on STICKY_TIMEOUTS. +Switching on ADDR_LIMIT_3GB. +Execute command `echo'. +success diff --git a/tests/expected/misc/setarch-uname26 b/tests/expected/misc/setarch-uname26 new file mode 100644 index 0000000..13667af --- /dev/null +++ b/tests/expected/misc/setarch-uname26 @@ -0,0 +1,6 @@ +###### --uname-2.6 echo +Switching on UNAME26. +Execute command `echo'. +2.6 works or kernel too old +###### --uname-2.6 true, non-verbose +2.6 works or kernel too old diff --git a/tests/expected/misc/setarch-uname26-version b/tests/expected/misc/setarch-uname26-version new file mode 100644 index 0000000..9c746e1 --- /dev/null +++ b/tests/expected/misc/setarch-uname26-version @@ -0,0 +1 @@ +kernel version changed to 2.6 diff --git a/tests/expected/misc/setsid b/tests/expected/misc/setsid new file mode 100644 index 0000000..2e9ba47 --- /dev/null +++ b/tests/expected/misc/setsid @@ -0,0 +1 @@ +success diff --git a/tests/expected/misc/strtosize b/tests/expected/misc/strtosize new file mode 100644 index 0000000..94fd69a --- /dev/null +++ b/tests/expected/misc/strtosize @@ -0,0 +1,30 @@ +test_strutils: invalid size '-1' value + 0 : 0 : 0B : 0 B + 1 : 1 : 1B : 1 B + 123 : 123 : 123B : 123 B + 18446744073709551615 : 18446744073709551615 : 16E : 16 EiB + 1K : 1024 : 1K : 1 KiB + 1KiB : 1024 : 1K : 1 KiB + 1M : 1048576 : 1M : 1 MiB + 1MiB : 1048576 : 1M : 1 MiB + 1G : 1073741824 : 1G : 1 GiB + 1GiB : 1073741824 : 1G : 1 GiB + 1T : 1099511627776 : 1T : 1 TiB + 1TiB : 1099511627776 : 1T : 1 TiB + 1P : 1125899906842624 : 1P : 1 PiB + 1PiB : 1125899906842624 : 1P : 1 PiB + 1E : 1152921504606846976 : 1E : 1 EiB + 1EiB : 1152921504606846976 : 1E : 1 EiB + 1KB : 1000 : 1000B : 1000 B + 1MB : 1000000 : 976.6K : 976.6 KiB + 1GB : 1000000000 : 953.7M : 953.7 MiB + 1TB : 1000000000000 : 931.3G : 931.3 GiB + 1PB : 1000000000000000 : 909.5T : 909.5 TiB + 1EB : 1000000000000000000 : 888.2P : 888.2 PiB +test_strutils: invalid size '' value +test_strutils: invalid size ' ' value + 1 : 1 : 1B : 1 B +test_strutils: invalid size '1 ' value + 0x0a : 10 : 10B : 10 B + 0xff00 : 65280 : 63.8K : 63.8 KiB + 0x80000000 : 2147483648 : 2G : 2 GiB diff --git a/tests/expected/misc/swaplabel b/tests/expected/misc/swaplabel new file mode 100644 index 0000000..172f876 --- /dev/null +++ b/tests/expected/misc/swaplabel @@ -0,0 +1,7 @@ +mkswap: error: swap area needs to be at least 10 pages +mkswap: <swapfile>: insecure permissions <perm>, 0600 suggested. +mkswap: Label was truncated. +Setting up swapspace version 1, size = 9 pages (9xPGSZ bytes) +LABEL=1234567890abcde, UUID=12345678-abcd-abcd-abcd-1234567890ab +LABEL: 1234567890abcde +UUID: 12345678-abcd-abcd-abcd-1234567890ab diff --git a/tests/expected/misc/ul b/tests/expected/misc/ul new file mode 100644 index 0000000..f3aecd1 --- /dev/null +++ b/tests/expected/misc/ul @@ -0,0 +1,3 @@ +[1ma(B[mb[4mc[24m + tab +
\ No newline at end of file diff --git a/tests/expected/misc/whereis b/tests/expected/misc/whereis new file mode 100644 index 0000000..2e9ba47 --- /dev/null +++ b/tests/expected/misc/whereis @@ -0,0 +1 @@ +success |