Ticket #3730: 3730-0005-extfs-uzoo-add-tests.patch

File 3730-0005-extfs-uzoo-add-tests.patch, 5.2 KB (added by mooffie, 7 years ago)
  • tests/src/extfs-helpers-listcmd/Makefile.am

    From 2c15e13d3289126fe37322eac2c27fef5d56d1c7 Mon Sep 17 00:00:00 2001
    From: Mooffie <mooffie@gmail.com>
    Date: Sat, 19 Nov 2016 22:43:14 +0200
    Subject: [PATCH 05/11] extfs: uzoo: add tests.
    
    ---
     tests/src/extfs-helpers-listcmd/Makefile.am      |  3 +++
     tests/src/extfs-helpers-listcmd/data/uzoo.README |  8 ++++++++
     tests/src/extfs-helpers-listcmd/data/uzoo.input  | 18 ++++++++++++++++++
     tests/src/extfs-helpers-listcmd/data/uzoo.output | 18 ++++++++++++++++++
     4 files changed, 47 insertions(+)
     create mode 100644 tests/src/extfs-helpers-listcmd/data/uzoo.README
     create mode 100644 tests/src/extfs-helpers-listcmd/data/uzoo.input
     create mode 100644 tests/src/extfs-helpers-listcmd/data/uzoo.output
    
    diff --git a/tests/src/extfs-helpers-listcmd/Makefile.am b/tests/src/extfs-helpers-listcmd/Makefile.am
    index 8c6105b..22273ca 100644
    a b mc_parse_ls_l_SOURCES = \ 
    2222        mc_parse_ls_l.c 
    2323 
    2424data_files_to_distribute = \ 
     25        data/uzoo.README \ 
     26        data/uzoo.input \ 
     27        data/uzoo.output \ 
    2528        data/dummy 
    2629 
    2730EXTRA_DIST = mc_xcat test_all $(data_files_to_distribute) 
  • new file tests/src/extfs-helpers-listcmd/data/uzoo.README

    diff --git a/tests/src/extfs-helpers-listcmd/data/uzoo.README b/tests/src/extfs-helpers-listcmd/data/uzoo.README
    new file mode 100644
    index 0000000..ea3077a
    - +  
     1 
     2The input file was created by running "zoo lq" on the archive at: 
     3 
     4    http://www.midnight-commander.org/ticket/3696 
     5 
     6Known bugs in our uzoo: 
     7- It doesn't support filenames with spaces. 
     8- It reports '0' gid. 
  • new file tests/src/extfs-helpers-listcmd/data/uzoo.input

    diff --git a/tests/src/extfs-helpers-listcmd/data/uzoo.input b/tests/src/extfs-helpers-listcmd/data/uzoo.input
    new file mode 100644
    index 0000000..4659744
    - +  
     1       4   0%        4  26 Sep 16 12:56:02+61   тест/тест3/тест2.txt 
     2       4   0%        4  26 Sep 16 12:56:00+61   тест/тест3/тест1.txt 
     3       4   0%        4  26 Sep 16 12:56:08+61   тест/тест3/тест3.txt 
     4       4   0%        4  26 Sep 16 12:56:02+61   тест/тест1/тест2.txt 
     5       4   0%        4  26 Sep 16 12:56:00+61   тест/тест1/тест1.txt 
     6       4   0%        4  26 Sep 16 12:56:08+61   тест/тест1/тест3.txt 
     7       4   0%        4  26 Sep 16 12:56:02+61   тест/тест2/тест2.txt 
     8       4   0%        4  26 Sep 16 12:56:00+61   тест/тест2/тест1.txt 
     9       4   0%        4  26 Sep 16 12:56:08+61   тест/тест2/тест3.txt 
     10       4   0%        4  26 Sep 16 12:56:02+61   тест/test1/тест2.txt 
     11       4   0%        4  26 Sep 16 12:56:00+61   тест/test1/тест1.txt 
     12       4   0%        4  26 Sep 16 12:56:08+61   тест/test1/тест3.txt 
     13       4   0%        4  26 Sep 16 12:56:02+61   тест/test3/тест2.txt 
     14       4   0%        4  26 Sep 16 12:56:00+61   тест/test3/тест1.txt 
     15       4   0%        4  26 Sep 16 12:56:08+61   тест/test3/тест3.txt 
     16       4   0%        4  26 Sep 16 12:56:02+61   тест/test2/тест2.txt 
     17       4   0%        4  26 Sep 16 12:56:00+61   тест/test2/тест1.txt 
     18       4   0%        4  26 Sep 16 12:56:08+61   тест/test2/тест3.txt 
  • new file tests/src/extfs-helpers-listcmd/data/uzoo.output

    diff --git a/tests/src/extfs-helpers-listcmd/data/uzoo.output b/tests/src/extfs-helpers-listcmd/data/uzoo.output
    new file mode 100644
    index 0000000..2e9ad9a
    - +  
     1-rw-r--r--   1  <<uid>>        0          4 2016-09-26 12:56:00 тест/тест3/тест2.txt 
     2-rw-r--r--   1  <<uid>>        0          4 2016-09-26 12:56:00 тест/тест3/тест1.txt 
     3-rw-r--r--   1  <<uid>>        0          4 2016-09-26 12:56:00 тест/тест3/тест3.txt 
     4-rw-r--r--   1  <<uid>>        0          4 2016-09-26 12:56:00 тест/тест1/тест2.txt 
     5-rw-r--r--   1  <<uid>>        0          4 2016-09-26 12:56:00 тест/тест1/тест1.txt 
     6-rw-r--r--   1  <<uid>>        0          4 2016-09-26 12:56:00 тест/тест1/тест3.txt 
     7-rw-r--r--   1  <<uid>>        0          4 2016-09-26 12:56:00 тест/тест2/тест2.txt 
     8-rw-r--r--   1  <<uid>>        0          4 2016-09-26 12:56:00 тест/тест2/тест1.txt 
     9-rw-r--r--   1  <<uid>>        0          4 2016-09-26 12:56:00 тест/тест2/тест3.txt 
     10-rw-r--r--   1  <<uid>>        0          4 2016-09-26 12:56:00 тест/test1/тест2.txt 
     11-rw-r--r--   1  <<uid>>        0          4 2016-09-26 12:56:00 тест/test1/тест1.txt 
     12-rw-r--r--   1  <<uid>>        0          4 2016-09-26 12:56:00 тест/test1/тест3.txt 
     13-rw-r--r--   1  <<uid>>        0          4 2016-09-26 12:56:00 тест/test3/тест2.txt 
     14-rw-r--r--   1  <<uid>>        0          4 2016-09-26 12:56:00 тест/test3/тест1.txt 
     15-rw-r--r--   1  <<uid>>        0          4 2016-09-26 12:56:00 тест/test3/тест3.txt 
     16-rw-r--r--   1  <<uid>>        0          4 2016-09-26 12:56:00 тест/test2/тест2.txt 
     17-rw-r--r--   1  <<uid>>        0          4 2016-09-26 12:56:00 тест/test2/тест1.txt 
     18-rw-r--r--   1  <<uid>>        0          4 2016-09-26 12:56:00 тест/test2/тест3.txt