Ticket #3729: 3729-0013-extfs-hp48-add-tests.patch

File 3729-0013-extfs-hp48-add-tests.patch, 2.8 KB (added by mooffie, 8 years ago)
  • tests/src/vfs/extfs/helpers-list/Makefile.am

    From 2330bdb89aaa0c37f51346cd35e9367c8dcc841f Mon Sep 17 00:00:00 2001
    From: Mooffie <mooffie@gmail.com>
    Date: Tue, 13 Dec 2016 01:13:00 +0200
    Subject: [PATCH 13/13] extfs: hp48: add tests.
    
    ---
     tests/src/vfs/extfs/helpers-list/Makefile.am       | 4 ++++
     tests/src/vfs/extfs/helpers-list/data/hp48+.README | 8 ++++++++
     tests/src/vfs/extfs/helpers-list/data/hp48+.args   | 1 +
     tests/src/vfs/extfs/helpers-list/data/hp48+.input  | 6 ++++++
     tests/src/vfs/extfs/helpers-list/data/hp48+.output | 3 +++
     5 files changed, 22 insertions(+)
     create mode 100644 tests/src/vfs/extfs/helpers-list/data/hp48+.README
     create mode 100644 tests/src/vfs/extfs/helpers-list/data/hp48+.args
     create mode 100644 tests/src/vfs/extfs/helpers-list/data/hp48+.input
     create mode 100644 tests/src/vfs/extfs/helpers-list/data/hp48+.output
    
    diff --git a/tests/src/vfs/extfs/helpers-list/Makefile.am b/tests/src/vfs/extfs/helpers-list/Makefile.am
    index 06cb9ef..a0a28e9 100644
    a b mc_parse_ls_l_SOURCES = \ 
    2222        mc_parse_ls_l.c 
    2323 
    2424data_files_to_distribute = \ 
     25        data/hp48+.README \ 
     26        data/hp48+.args \ 
     27        data/hp48+.input \ 
     28        data/hp48+.output \ 
    2529        data/lslR.1.spaces.args \ 
    2630        data/lslR.1.spaces.input \ 
    2731        data/lslR.1.spaces.output \ 
  • new file tests/src/vfs/extfs/helpers-list/data/hp48+.README

    diff --git a/tests/src/vfs/extfs/helpers-list/data/hp48+.README b/tests/src/vfs/extfs/helpers-list/data/hp48+.README
    new file mode 100644
    index 0000000..d87ee97
    - +  
     1 
     2The input file was taken from a comment in the helper (after removing 
     3the "Directory" line (which is tricky to test), and adding the 
     4not-really-necessary "EOF"). 
     5 
     6The '--drop-mtime' argument is needed because the helper emits the 
     7current date, which is always changing, whereas our output files have to 
     8be constant. 
  • new file tests/src/vfs/extfs/helpers-list/data/hp48+.args

    diff --git a/tests/src/vfs/extfs/helpers-list/data/hp48+.args b/tests/src/vfs/extfs/helpers-list/data/hp48+.args
    new file mode 100644
    index 0000000..990629a
    - +  
     1--drop-mtime 
  • new file tests/src/vfs/extfs/helpers-list/data/hp48+.input

    diff --git a/tests/src/vfs/extfs/helpers-list/data/hp48+.input b/tests/src/vfs/extfs/helpers-list/data/hp48+.input
    new file mode 100644
    index 0000000..2204139
    - +  
     1{ HOME } 105617 
     2YEN 30.5 Program 53391 
     3JYTLIGHT 21848.5 String 62692 
     4IOPAR 37.5 List 61074 
     5 
     6EOF 
  • new file tests/src/vfs/extfs/helpers-list/data/hp48+.output

    diff --git a/tests/src/vfs/extfs/helpers-list/data/hp48+.output b/tests/src/vfs/extfs/helpers-list/data/hp48+.output
    new file mode 100644
    index 0000000..3a24e4e
    - +  
     1-rw-r--r--   1        0        0         30 /YEN 
     2-rw-r--r--   1        0        0      21848 /JYTLIGHT 
     3-rw-r--r--   1        0        0         37 /IOPAR