[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
0001-tests-refactor-tests-to-new-init.sh-style-shell-scri.patch.xz
Description: Binary data
- Suggestion: tests: refactor tests to new init.sh-style shell scripts,
Assaf Gordon <=
- Re: Suggestion: tests: refactor tests to new init.sh-style shell scripts, Jim Meyering, 2017/04/02
- Re: Suggestion: tests: refactor tests to new init.sh-style shell scripts, Assaf Gordon, 2017/04/02
- Re: Suggestion: tests: refactor tests to new init.sh-style shell scripts, Assaf Gordon, 2017/04/02
- Re: Suggestion: tests: refactor tests to new init.sh-style shell scripts, Jim Meyering, 2017/04/08
- Re: Suggestion: tests: refactor tests to new init.sh-style shell scripts, Assaf Gordon, 2017/04/10
- Re: Suggestion: tests: refactor tests to new init.sh-style shell scripts, Jim Meyering, 2017/04/10
- Re: Suggestion: tests: refactor tests to new init.sh-style shell scripts, Assaf Gordon, 2017/04/12
- Re: Suggestion: tests: refactor tests to new init.sh-style shell scripts, Jim Meyering, 2017/04/21
- Re: Suggestion: tests: refactor tests to new init.sh-style shell scripts, Assaf Gordon, 2017/04/22
- Re: Suggestion: tests: refactor tests to new init.sh-style shell scripts, Jim Meyering, 2017/04/27