Repository navigation
Migrate integration tests to shell based format - #2864
BardurArantsson wants to merge 2 commits into
Conversation
This is required for the reworking of integration tests to use shell scripts.
|
@GrayJay Could you please try this out on Windows and let me know what is still missing relative to fully working on Windows? (I think I fixed all the test cases + line ending things, but I could easily have missed something.) |
08624b9 to
3a04e3c
Compare
3a04e3c to
8d53cf5
Compare
|
Hm... that's an interesting failure. What I'm doing is copying a two-level directory hierarchy from the source directory into a temporary folder and running a shell script in the 2nd level directory. Apparently "source ../foo.sh" isn't picking up the "foo.sh" that should have been copied into the 1st level directory. Anyone have any ideas what's going on with Travis here? (I would have guessed a CWD issue could have caused this, but I explicitly set the CWD when running the shell script that does the "source" thing.) |
|
Oh, wait, maybe I'm setting CWD using a relative path. I'll check that tomorrow. |
There was a problem hiding this comment.
CABAL contains backslashes on Windows, so I had to quote it here. The quoted path still doesn't work with Cygwin, though.
|
@BardurArantsson This branch works well on Windows, except for three things:
|
|
Thanks. I'm not sure what we can do about "/bin/sh": That's actually close to being the only guaranteed way to get a shell on a POSIX(ish) system. The only other one I know of is to use "env". Does "/usr/bin/env sh" work for you? (I suppose we could do a lookup for /bin/sh first and try plain "sh" if "/bin/sh" isn't found.) I don't think supporting Cygwin is necessarily a goal since (I believe) msys is the "primary" Windows-compatibility system... @ezyang: Do you concur? Will fix the quoting issue. |
|
@BardurArantsson "/usr/bin/env sh" doesn't work because the path is different on Windows ("C:/Program Files/Git/usr/bin/env" on my computer). Trying "/bin/sh" and then "sh" sounds like a good solution. |
|
Yes, lack of Cygwin support is not a blocker. Only supporting msys2 is fine. But we must get this to work on Travis before merging. |
|
Closing in favour of #2868, which subsumes this PR. |
This is an implementation of #2797.
Let me know if further description/explanation is necessary and I'll add it to the commit message(s).