Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
In other words, make the tests pass on a plain Windows setup. First, we replaced simple uses of coreutils 'touch foo' with their native Bash counterparts, like '>foo'. Then, we made the test binary behave like a very simple cmd/gosh, so that we can use our own available shell instead of 'bash -c'. We also removed all assumptions that bash is installed. Some coreutils cannot be replaced with builtins, such as mkdir or rm. Implement very simple versions of those as a ModuleExec for the interpreter that runs the tests. Finally, some tests were just not possible to run on plain Windows, like creating a directory named '*'. Split some tests between Unix-like and Windows.
- Loading branch information