-
Notifications
You must be signed in to change notification settings - Fork 248
Convert bash files to dart files. #482
Comments
Is the problem here that "pub" doesn't run, or that our ./run_tests.sh script is incompatible? If it is the latter, we just need a little love from a Windows expert. |
Well, bash scripts won't run out-of-the-box on Windows, so that sucks to begin with. To answer your question, I don't know exactly what the problem is with running tests using mingw, other than it's attempting to execute a windows batch script from within a POSIX environment, which naturally doesn't seem like something that would work (although I'm not saying it's impossible, I really don't know). Generally speaking, I think the problem is that using bash scripts makes Windows a second class citizen for hacking dart projects. At the very least, it means jumping through a bunch of hoops. It's a safe assumption that anyone hacking on this has dart installed, so it makes sense to use it for ancillary scripts. |
I should also mention another bug related to running tests on windows in case anyone is trying to reproduce the above errors, see https://code.google.com/p/dart/issues/detail?id=16264. This is an SDK bug and not an issue with how the tests are written, but has to be worked around by commenting out the offending line of code. |
For what it's worth: in the JML project we did multi-platform development for years and had scripts running smoothly under Windows, MacOS and Linux. Mind you that, under Windows, I used Cygwin, and it worked very nicely. |
Rewriting the scripts in Dart sounds like a good idea. Do would anyone be willing to do that? |
For the love of all that is holy, yes. I'll take it on. Please? :-) -----Original Message----- Rewriting the scripts in Dart sounds like a good idea. Do would anyone be willing to do that? |
@johnvcoleman, is the work you are doing covering the build process on Travis or on a developer's local machine (#547) or both? |
I see no reason why we can't solve both with the Hop library. Should be able to distill both use cases down to their elemental tasks, then "chain" those tasks together into the sequence we want using addChainedTask(). I was trying to find your issue earlier so I could reference it, but I got distracted. |
I am used to makefiles but am looking forward to see how hop works. It will be nice if we can define an equivalent of a "make clean" too. |
Agreed. I'll add that to the list. |
Even with minGW, I cannot get the tests to run on Windows.
pub
, for example, fails because it is a windows batch script.mktemp
also fails. Something platform agnostic would be nice.The text was updated successfully, but these errors were encountered: