Ticket #3729: 3729-0008-extfs-uarc-add-tests.patch

File 3729-0008-extfs-uarc-add-tests.patch, 3.3 KB (added by mooffie, 6 years ago)
  • tests/src/vfs/extfs/helpers-list/Makefile.am

    From 89829834a9b0ff0dec94e86d166c6bb2ca444d4a Mon Sep 17 00:00:00 2001
    From: Mooffie <mooffie@gmail.com>
    Date: Mon, 12 Dec 2016 14:58:04 +0200
    Subject: [PATCH 08/13] extfs: uarc: add tests.
    
    ---
     tests/src/vfs/extfs/helpers-list/Makefile.am      |  3 +++
     tests/src/vfs/extfs/helpers-list/data/uarc.README | 19 +++++++++++++++++++
     tests/src/vfs/extfs/helpers-list/data/uarc.input  |  7 +++++++
     tests/src/vfs/extfs/helpers-list/data/uarc.output |  3 +++
     4 files changed, 32 insertions(+)
     create mode 100644 tests/src/vfs/extfs/helpers-list/data/uarc.README
     create mode 100644 tests/src/vfs/extfs/helpers-list/data/uarc.input
     create mode 100644 tests/src/vfs/extfs/helpers-list/data/uarc.output
    
    diff --git a/tests/src/vfs/extfs/helpers-list/Makefile.am b/tests/src/vfs/extfs/helpers-list/Makefile.am
    index ddaac03..06cb9ef 100644
    a b data_files_to_distribute = \ 
    4747        data/uace.README \ 
    4848        data/uace.input \ 
    4949        data/uace.output \ 
     50        data/uarc.README \ 
     51        data/uarc.input \ 
     52        data/uarc.output \ 
    5053        data/urar.README \ 
    5154        data/urar.v4,v3.env_vars \ 
    5255        data/urar.v4,v3.input \ 
  • new file tests/src/vfs/extfs/helpers-list/data/uarc.README

    diff --git a/tests/src/vfs/extfs/helpers-list/data/uarc.README b/tests/src/vfs/extfs/helpers-list/data/uarc.README
    new file mode 100644
    index 0000000..8a463a3
    - +  
     1 
     2The input file was created by doing "arc v test.arc" on archive created 
     3with "arc a test.arc ...". We then made sure to have: 
     4 
     5- One date prior to year 2000 (to test the 1900/2000 boundary). 
     6- Both AM and PM times. 
     7 
     8Our 'uarc' doesn't support spaces in filenames but that's no biggie: 
     9 
     10    Man page: "Full compatibility with PC ARC files is maintained, the 
     11    price for which is that arc doesn't like long filenames, and can only 
     12    archive files with names of up to 12 characters. [...] I suggest you 
     13    put long-winded filenames in a 'shar' before arcing them." 
     14 
     15    Wikipedia: "ARC is incapable of compressing entire directory trees" 
     16 
     17Known issues with our uarc: 
     18 
     19- It reports '0' gid. 
  • new file tests/src/vfs/extfs/helpers-list/data/uarc.input

    diff --git a/tests/src/vfs/extfs/helpers-list/data/uarc.input b/tests/src/vfs/extfs/helpers-list/data/uarc.input
    new file mode 100644
    index 0000000..eeb2161
    - +  
     1Name          Length    Stowage    SF   Size now  Date       Time    CRC 
     2============  ========  ========  ====  ========  =========  ======  ==== 
     3README.html       9799  Crunched   50%      4922  23 Nov 16  11:48a  40ba 
     4extfs.c          49679  Crunched   67%     16874  18 Apr 94   3:05p  38ff 
     5run.log           1051  Crunched   50%       536  23 Nov 16  10:36a  6184 
     6        ====  ========            ====  ======== 
     7Total      3     60529             64%     22332 
  • new file tests/src/vfs/extfs/helpers-list/data/uarc.output

    diff --git a/tests/src/vfs/extfs/helpers-list/data/uarc.output b/tests/src/vfs/extfs/helpers-list/data/uarc.output
    new file mode 100644
    index 0000000..133e4cb
    - +  
     1-rw-r--r--   1  <<uid>>        0       9799 2016-11-23 11:48:00 README.html 
     2-rw-r--r--   1  <<uid>>        0      49679 1994-04-18 15:05:00 extfs.c 
     3-rw-r--r--   1  <<uid>>        0       1051 2016-11-23 10:36:00 run.log