To solve the path problem, I just used the absolute path in the script. To solve the Windows-style command-line-style command line issue, I avoided a forward slash using a different slash (I got this tip from another stack overflow answer, I will contact it when I find it again).
So now the working script looks like this:
#!/bin/sh # http://tldp.org/LDP/Bash-Beginners-Guide/html/sect_03_02.html # http://tldp.org/LDP/Bash-Beginners-Guide/html/sect_07_01.html # Build solution. echo "Building..." c:/Windows/Microsoft.NET/Framework/v4.0.30319/MSBuild.exe \ //consoleloggerparameters:ErrorsOnly \ //maxcpucount \ //nologo \ //property:Configuration=Debug \ //verbosity:quiet \ Epic-Project-of-Supreme-Awesome.sln # Check exit status. # (status != 0) ? status=$? if [ $status -ne 0 ] then echo "Build failure, status $status." exit $status fi echo "Build success." # Run unit tests nunit-console.exe \ //noresult \ //stoponerror \ bin/Debug/ArtificialIntelligence.Tests.dll \ bin/Debug/TravelingSalesManSolver.Tests.dll status=$? if [ $status -ne 0 ] then echo "Test failure, status $status." exit $status fi echo "Tests passed."
and again, you run it like this:
$ git bisect start <bad commit> <good commit> $ git bisect run auto-build-run-tests.sh
user456814
source share