Windows: add windows_testing.bashrc

Lets us pass the `--strip-trailing-cr` option to `diff` on Windows
without changing the Unix tests.
This commit is contained in:
Daniel Tipping 2018-12-12 13:12:32 +00:00
parent 92ec367efd
commit bb9f3f2696
1 changed files with 11 additions and 0 deletions

View File

@ -0,0 +1,11 @@
# bashrc to be used for running tests on windows.
# In order for the functions to be usable by the tests, we need to use the -i option.
# Typical usage:
# bash --rcfile windows_testing.bashrc -ci "some/test/script.sh"
# During testing we diff Windows files with Unix files => need to ignore the carriage
# return.
function diff {
command diff --strip-trailing-cr "$@"
}
export -f diff