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 = \ |
22 | 22 | mc_parse_ls_l.c |
23 | 23 | |
24 | 24 | data_files_to_distribute = \ |
| 25 | data/hp48+.README \ |
| 26 | data/hp48+.args \ |
| 27 | data/hp48+.input \ |
| 28 | data/hp48+.output \ |
25 | 29 | data/lslR.1.spaces.args \ |
26 | 30 | data/lslR.1.spaces.input \ |
27 | 31 | data/lslR.1.spaces.output \ |
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 | |
| 2 | The input file was taken from a comment in the helper (after removing |
| 3 | the "Directory" line (which is tricky to test), and adding the |
| 4 | not-really-necessary "EOF"). |
| 5 | |
| 6 | The '--drop-mtime' argument is needed because the helper emits the |
| 7 | current date, which is always changing, whereas our output files have to |
| 8 | be constant. |
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
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 |
| 2 | YEN 30.5 Program 53391 |
| 3 | JYTLIGHT 21848.5 String 62692 |
| 4 | IOPAR 37.5 List 61074 |
| 5 | |
| 6 | EOF |
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 |