-
Notifications
You must be signed in to change notification settings - Fork 22
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Update tests to permit any order of output lines by sorting the editorconfig output #23
Conversation
Cygwin inherits Windows filesystem limitations
filetree now requires CMake 3.5+ so that Cygwin will be treated as a non-Win32 platform. See editorconfig#23 (comment) by @xuhdev.
@ppalaga Have you had a chance to try out the Java core? Unless this change causes problems for you, I think it's ready to merge. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thanks for your hard work, @cxw42 ! Except for the minor thing I pointed out, can you also make the coding style consistent? Sometimes you have spaces inside braces but sometimes you don't. Other than those, I think it's ready to merge.
- Update copyright date to 2018 - Consistent formatting: no spaces inside the wrapping parans on CMake function calls - Change EQUAL to STREQUAL where appropriate
@xuhdev Fixed, plus I found and fixed a few I updated the copyright dates across the board so no one else would have to do them for the rest of the year :) . I removed the spaces inside the parens for consistency with the existing code. |
There are 20 failing tests with ec4j:
Let me check what is the problem. |
Here is the detailed output for the first failure
source: https://ci.appveyor.com/project/ppalaga/ec4j/builds/20452747?fullLog=true#L894 Maybe the reason is that my Should I change something there? |
When I I am not sure where the semicolons come from. Maybe they should not be there? |
In run_and_sort, instead of taking a separate program and arguments, take an undifferentiated command line. This permits either EDITORCONFIG_CMD or ECARGS to be either list- or string-valued.
@ppalaga Thanks! Would you please try the new commit? Before doing so, in your Travis/Appveyor config, would you please add The semicolons in
creates a list-valued variable, and lists in CMake are just strings with semicolons between list items (reference). By contrast, I have updated |
Yes, with eccf9d4 I see ec4j passing locally. Let's see if both CI jobs will pass too https://ci.appveyor.com/project/ppalaga/ec4j/builds/20462289 https://travis-ci.org/ec4j/ec4j/jobs/457960159 |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
ec4j is passing with eccf9d4. This PR is good to merge.
filetree now requires CMake 3.5+ so that Cygwin will be treated as a non-Win32 platform. See #23 (comment) by @xuhdev.
Great work! Thanks! |
@xuhdev @ppalaga Here we go again! :D
Fixes Test suite: Permit editorconfig programs to provide correct output lines in any order editorconfig#375, which has the discussion leading up to this PR.
Replaces Update tests to permit any order of output lines #22 per Update tests to permit any order of output lines #22 (comment)
Adds new
new_ec_test_multiline
function that adds a test accepting multipleoutput lines in any order. The matching regex for this function must be specified in CMake's sort order - see discussion at https://gitlab.kitware.com/cmake/cmake/issues/18551
Rewrites the pertinent tests to use
new_ec_test_multiline
.Bumps the required CMake version up to 3.5.0 per @xuhdev at Update tests to permit any order of output lines #22 (comment)
editorconfig-core-c and my editorconfig-core-vimscript both pass 100% of tests on Cygwin (edit) and Windows with this PR in place (except for utf-8 filenames).
Note: also includes one commit for the benefit of Cygwin (my development environment) to not run tests that can't possibly succeed on Cygwin.
ppalaga: Would you please test your Java CI?
Edit I have now run these tests on mingw-w64 x86 with Windows CMake 3.6.1 in cmd. All pass except for utf_8_char, which I didn't touch :) . I see per this (linked from editorconfig/editorconfig-core-c#31 (comment)) that this is a known issue on Windows.