mirror of
https://github.com/MidnightCommander/mc
synced 2024-12-22 20:36:50 +03:00
extfs: hp48: add tests.
This commit is contained in:
parent
4557ee3c7a
commit
d376f0ca43
@ -22,6 +22,10 @@ mc_parse_ls_l_SOURCES = \
|
||||
mc_parse_ls_l.c
|
||||
|
||||
data_files_to_distribute = \
|
||||
data/hp48+.README \
|
||||
data/hp48+.args \
|
||||
data/hp48+.input \
|
||||
data/hp48+.output \
|
||||
data/lslR.1.spaces.args \
|
||||
data/lslR.1.spaces.input \
|
||||
data/lslR.1.spaces.output \
|
||||
|
8
tests/src/vfs/extfs/helpers-list/data/hp48+.README
Normal file
8
tests/src/vfs/extfs/helpers-list/data/hp48+.README
Normal file
@ -0,0 +1,8 @@
|
||||
|
||||
The input file was taken from a comment in the helper (after removing
|
||||
the "Directory" line (which is tricky to test), and adding the
|
||||
not-really-necessary "EOF").
|
||||
|
||||
The '--drop-mtime' argument is needed because the helper emits the
|
||||
current date, which is always changing, whereas our output files have to
|
||||
be constant.
|
1
tests/src/vfs/extfs/helpers-list/data/hp48+.args
Normal file
1
tests/src/vfs/extfs/helpers-list/data/hp48+.args
Normal file
@ -0,0 +1 @@
|
||||
--drop-mtime
|
6
tests/src/vfs/extfs/helpers-list/data/hp48+.input
Normal file
6
tests/src/vfs/extfs/helpers-list/data/hp48+.input
Normal file
@ -0,0 +1,6 @@
|
||||
{ HOME } 105617
|
||||
YEN 30.5 Program 53391
|
||||
JYTLIGHT 21848.5 String 62692
|
||||
IOPAR 37.5 List 61074
|
||||
|
||||
EOF
|
3
tests/src/vfs/extfs/helpers-list/data/hp48+.output
Normal file
3
tests/src/vfs/extfs/helpers-list/data/hp48+.output
Normal file
@ -0,0 +1,3 @@
|
||||
-rw-r--r-- 1 0 0 30 /YEN
|
||||
-rw-r--r-- 1 0 0 21848 /JYTLIGHT
|
||||
-rw-r--r-- 1 0 0 37 /IOPAR
|
Loading…
Reference in New Issue
Block a user