Windows: future-proof single_output_test.bzl (#2064)

Fix single_output_test() on Windows with the new
native test wrapper.

Bazel 0.26 introduces the
--incompatible_windows_native_test_wrapper flag.

This feature enables a new test wrapper on Windows
that doesn't require Bash. On other platforms this
flag has no effect.

The new test wrapper is a C++ binary and doesn't
use Bash, but therefore test rules whose
executable is a naked shell script also don't
work.

The solution here is to write a special script
that does nothing and is valid both as .bat and
as .sh.

See https://github.com/bazelbuild/bazel/issues/6622
1 file changed