Zbigniew Jędrzejewski-Szmek
b57adc94cd
test-libmount: let's see how libmount parses stuff
With libmount-2.33.1-3.fc30.x86_64 I get:
/* test_libmount_unescaping_one escaped space + utf8 */
from '729 38 0:59 / /tmp/\342\200\236zupa\\040z\304\231bowa\342\200\235 rw,relatime shared:395 - tmpfs die\\040Br\303\274he rw,seclabel'
source: 'die Brühe'
source: 'die Br\303\274he'
source: 'die Brühe'
expected: 'die Brühe'
target: '/tmp/„zupa zębowa”'
target: '/tmp/\342\200\236zupa z\304\231bowa\342\200\235'
target: '/tmp/„zupa zębowa”'
expected: '/tmp/„zupa zębowa”'
/* test_libmount_unescaping_one escaped newline */
from '729 38 0:59 / /tmp/x\\012y rw,relatime shared:395 - tmpfs newline rw,seclabel'
source: 'newline'
source: 'newline'
source: 'newline'
expected: 'newline'
target: '/tmp/x
y'
target: '/tmp/x\ny'
target: '/tmp/x
y'
expected: '/tmp/x
y'
/* test_libmount_unescaping_one empty source */
from '760 38 0:60 / /tmp/emptysource rw,relatime shared:410 - tmpfs rw,seclabel'
source: ''
source: ''
source: ''
expected: ''
target: '/tmp/emptysource'
target: '/tmp/emptysource'
target: '/tmp/emptysource'
expected: '/tmp/emptysource'
/* test_libmount_unescaping_one foo\rbar */
from '790 38 0:61 / /tmp/foo\rbar rw,relatime shared:425 - tmpfs tmpfs rw,seclabel'
source: 'tmpfs'
source: 'tmpfs'
source: 'tmpfs'
expected: 'tmpfs'
target: '/tmp/foo'
target: '/tmp/foo'
target: '/tmp/foo'
expected: 'n/a'
With https://github.com/karelzak/util-linux/issues/780 fixed, we get
/* test_libmount_unescaping_one foo\rbar */
from '790 38 0:61 / /tmp/foo\rbar rw,relatime shared:425 - tmpfs tmpfs rw,seclabel'
source: 'tmpfs'
source: 'tmpfs'
source: 'tmpfs'
expected: 'tmpfs'
target: '/tmp/foo
bar'
target: '/tmp/foo\rbar'
target: '/tmp/foo
bar'
expected: '/tmp/foo
bar'
2019-04-09 09:07:40 +02:00
..
2019-04-09 09:07:40 +02:00
2018-12-02 13:22:29 +01:00
2018-11-28 20:20:50 +09:00
2019-03-20 13:17:27 +01:00
2018-12-07 11:48:41 +09:00
2018-10-31 18:26:58 +01:00
2019-03-27 11:53:12 +01:00
2019-03-27 11:53:12 +01:00
2019-03-27 11:53:12 +01:00
2019-01-24 23:50:26 +01:00
2019-03-27 11:53:12 +01:00
2019-03-21 12:38:18 +01:00
2019-02-14 11:04:42 -08:00
2018-12-03 15:40:31 +00:00
2018-12-21 13:29:27 +00:00
2018-12-04 09:29:54 +01:00
2019-03-26 08:29:37 +01:00
2018-12-02 13:22:29 +01:00
2019-03-19 15:55:08 +01:00
2018-12-20 09:56:51 +01:00
2019-01-08 14:12:22 +09:00
2019-03-28 18:43:04 +01:00
2019-03-27 11:53:12 +01:00
2019-03-27 11:53:12 +01:00
2018-12-02 13:22:29 +01:00
2018-12-10 09:56:56 +01:00
2018-10-17 19:32:07 +02:00
2019-03-27 12:37:37 +01:00
2018-11-14 16:25:32 +01:00
2019-02-18 16:16:02 +01:00
2019-03-26 18:53:53 +01:00
2019-03-13 12:16:43 +01:00
2018-12-02 13:22:29 +01:00
2019-03-27 11:52:54 +01:00
2018-12-03 22:42:38 +01:00
2019-02-28 13:06:07 -05:00
2019-03-27 11:53:12 +01:00
2018-12-02 13:22:29 +01:00
2019-03-27 11:53:12 +01:00
2018-12-18 12:04:08 +01:00
2018-11-20 20:23:19 +01:00
2018-11-20 20:23:19 +01:00
2019-01-12 16:02:26 +01:00
2019-03-27 11:53:12 +01:00
2019-03-27 11:53:12 +01:00
2019-03-04 23:45:07 +09:00
2019-03-27 11:53:12 +01:00
2018-12-02 06:13:47 +01:00
2018-12-04 09:29:54 +01:00
2018-11-30 10:59:47 +01:00
2019-02-25 10:07:18 +01:00
2019-04-09 09:07:40 +02:00
2019-01-21 17:33:53 +01:00
2019-03-27 11:53:12 +01:00
2019-03-04 15:28:32 +09:00
2018-11-29 21:03:44 +01:00
2019-03-27 11:53:12 +01:00
2019-03-27 11:53:12 +01:00
2019-03-27 11:53:12 +01:00
2018-12-15 12:10:19 +01:00
2019-03-27 11:53:12 +01:00
2019-02-21 12:00:05 +01:00
2018-11-29 20:02:39 +01:00
2019-03-25 14:04:34 +01:00
2018-11-30 10:59:47 +01:00
2019-03-27 11:53:12 +01:00
2019-03-13 12:16:43 +01:00
2019-03-13 17:07:02 +01:00
2019-03-21 18:08:56 +01:00
2019-01-22 17:43:13 +01:00
2018-11-10 14:56:53 +01:00
2019-03-27 11:53:12 +01:00
2019-03-27 11:53:12 +01:00
2018-11-08 13:49:45 +01:00
2019-04-03 13:24:43 +02:00
2018-12-02 13:22:29 +01:00
2019-02-21 12:00:05 +01:00
2019-03-13 12:16:43 +01:00
2019-03-13 12:16:43 +01:00
2019-02-05 18:56:41 +01:00
2019-03-27 11:53:12 +01:00
2019-03-27 11:53:12 +01:00
2019-03-13 12:16:38 +01:00
2018-12-03 17:34:23 +01:00
2019-03-27 11:53:12 +01:00
2018-11-20 18:40:02 +01:00
2019-03-14 13:25:52 +01:00
2018-12-10 03:17:33 +09:00
2019-03-22 17:16:17 +01:00
2019-03-28 09:45:19 +01:00
2019-02-28 15:38:52 +01:00
2018-12-02 13:22:29 +01:00
2018-12-21 13:43:20 +01:00
2018-11-30 10:59:47 +01:00
2019-03-13 12:16:43 +01:00
2019-03-27 11:53:12 +01:00
2019-03-27 11:53:12 +01:00
2019-03-27 11:53:12 +01:00
2019-02-26 12:37:40 +01:00
2019-03-14 13:25:51 +01:00
2019-03-27 11:53:12 +01:00
2019-03-20 10:51:49 +01:00
2018-12-02 13:22:29 +01:00