id	summary	reporter	owner	description	type	status	priority	milestone	component	version	resolution	keywords	cc	blockedby	blocking	branch_state	votes
3730	Introduce a tester for extfs helpers	mooffie	andrew_b	"Here's a tester intended to test the ""list"" command of extfs helpers.

(Others would use the phrase ""test framework"" instead of ""tester"". I'm trying to sound friendly.)

I provide with it tests for uzip, urar, uzoo, and lslR. That's to demonstrate the power of the tester. If this tester gets merged into MC I'll provide tests for more helpers (anybody could, though; it's very easy).


== Why

The dire problem of us not currently having tests for covering extfs has been mentioned several times here.


== How it works

The tester works by feeding the helpers example input, parsing their output and comparing it to the known correct output.

To understand this better, I [https://mooffie.github.io/mc-extfs-helpers-listcmd/ uploaded the tester here] for easier browsing; specifically:

- See the [https://mooffie.github.io/mc-extfs-helpers-listcmd/README.html README] (html format).
- See the [https://mooffie.github.io/mc-extfs-helpers-listcmd/data/ data] directory. The purpose of the '.input' and '.output' files should be self evident even if you don't read the docs.
- As you'll shortly see, each helper needs a **very minor** modification to make it possible to feed it ""fake"" input.


== How it looks like

(a) Either do ""make check""; or:
(b) Run the tester directly, with ""run"", to see colorful output:
  (b1) ...when everything works alright:

    [[Image(http://i.imgur.com/CivkhnF.png, 250)]]
  (b2) ...when some helper has a bug:

    [[Image(http://i.imgur.com/kjmVK3G.png, 250)]]
"	task	closed	major	4.8.19	mc-vfs	master	fixed				2707, 3696, 3729, 3744, 3750, 3751, 3752, 3753, 3781, 3786, 3787	merged	committed-master
