increase wildmatch test coverage
Get series with b4
b4 am [email protected]Versions newest first · linked by author and title
- v5 Latest10 patches 0 repliesNew
- v47 patches 17 repliesSuperseded
- v37 patches 1 replySuperseded
Earlier versions · 2
| Version | Posted | Patches | Replies | Status |
|---|---|---|---|---|
| v2 | 7 patches | 10 replies | Superseded | |
| v1 | 6 patches | 3 replies | Superseded |
Patches in v5 No applies recorded yet
| # | Subject and files | Size | Replies | Applied |
|---|---|---|---|---|
| 1/10 | wildmatch test: indent with tabs, not spacest/ | +27 | 0 replies | |
| 2/10 | wildmatch test: use more standard shell stylet/ | +6 | 0 replies | |
| 3/10 | wildmatch test: don't try to vertically align our outputt/ | +5 | 0 replies | |
| 4/10 | wildmatch test: use a paranoia pattern from nul_match()t/ | +12 | 0 replies | |
| 5/10 | wildmatch test: remove dead fnmatch() test codet/ | +178 | 0 replies | |
| 6/10 | wildmatch test: use test_must_fail, not ! for test-wildmatcht/ | +3 | 0 replies | |
| 7/10 | wildmatch test: perform all tests under all wildmatch() modest/ t/ | +228 | 0 replies | |
| 8/10 | wildmatch test: create & test files on disk in addition to in-memoryt/ | +190 | 0 replies | |
| 9/10 | test-lib: add an EXPENSIVE_ON_WINDOWS prerequisitet/ | +4 | 0 replies | |
| 10/10 | wildmatch test: mark test as EXPENSIVE_ON_WINDOWSt/ | +8 | 0 replies |
Reviews trailers per patch
No Reviewed-by, Acked-by or Tested-by trailers for v5 yet.
Cover letter [PATCH v5 00/10] increase wildmatch test coverage
v5 has been a long time coming (20 days since I said I'd re-roll this), but hopefully this is a version that works well for everyone, including Windows users. Changes:
Ævar Arnfjörð Bjarmason (10):
wildmatch test: indent with tabs, not spaces wildmatch test: use more standard shell style wildmatch test: don't try to vertically align our output wildmatch test: use a paranoia pattern from nul_match() wildmatch test: remove dead fnmatch() test code
No changes.
wildmatch test: use test_must_fail, not ! for test-wildmatch
NEW: Fix a tiny nit I spotted while re-rolling.
wildmatch test: perform all tests under all wildmatch() modes
The testing of various wildmatch modes got factored into a function. It makes no difference to this patch, but makes a huge difference in readability to the follow-up patch.
Also I stopped renaming "match" to "wildtest", I can't remeber why I did that in the first place, but no point in doing that, and this makes things easier to review...
wildmatch test: create & test files on disk in addition to in-memory
Almost entirely based on feedback from Johannes:
a) This is now much more friendly under -x, as little test code as possible outside actual tests.
b) Factored out into functions
c) Gave variables better names
d) Hopefully runs under Windows now without errors, due to a blacklist of filenames that aren't allowed on Windows. Commit message now mentions this.
e) This should be a lot faster than before, since I factored out the setup work being done for every test so it's only done
f) At this point I can't remember who/where this was pointed out, but it was observed that I was using a very dangerous looking rm -rf -- * pattern in the old test, turns out this could be replaced with a less scary git clean -df.
test-lib: add an EXPENSIVE_ON_WINDOWS prerequisite wildmatch test: mark test as EXPENSIVE_ON_WINDOWS
Follow-up my [email protected] from the v4 thread, and create an EXPENSIVE_ON_WINDOWS prerequisite, which is then used for the file tests so they're skipped on Windows by default.
Even though 8/10 should be faster now, and hopefully passes on Windows, I still expect it to be quite slow on Windows, so let's not run it there by default unless under GIT_TEST_LONG=1.
t/helper/test-wildmatch.c | 2 + t/t3070-wildmatch.sh | 655 +++++++++++++++++++++++++++++----------------- t/test-lib.sh | 4 + 3 files changed, 416 insertions(+), 245 deletions(-)
Signature · 1 line
2.15.1.424.g9478a66081