sed-devel
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Suggestion: tests: refactor tests to new init.sh-style shell scripts


From: Assaf Gordon
Subject: Suggestion: tests: refactor tests to new init.sh-style shell scripts
Date: Sun, 2 Apr 2017 02:13:49 -0400

Hello,

Attached an initial attempt to refactor the old sed tests and turn
them into 'new style' shell-script tests.
While the patch is big, it is very repetitive.
Basically, every test that had TEST.sed,TEST.inp,TEST.good
now has an additional TEST.sh which runs sed on the program
and compares the output against the 'good' (=expected) output.

It'll probably take few iterations to iron out all the issues,
but this is the general direction.

I also have a version where the sed/inp/good files are merged and embedded
in the new SH file - this reduces the clutter and the number of files,
at the expense of a bit more work during tests (e.g. creating the test files).
Not sure if it's better or not.

Comments welcomed,
 - assaf


Attachment: 0001-tests-refactor-tests-to-new-init.sh-style-shell-scri.patch.xz
Description: Binary data



reply via email to

[Prev in Thread] Current Thread [Next in Thread]