CoreClr: Make tests run on FreeBSD and document how to run them.
authorJostein Kjønigsen <jostein@kjonigsen.net>
Thu, 21 May 2015 13:23:33 +0000 (23:23 +1000)
committerJostein Kjønigsen <jostein@kjonigsen.net>
Thu, 21 May 2015 19:13:23 +0000 (05:13 +1000)
Not all platforms have bash in /bin/.

Documentation added to the general FreeBSD build-instructions.

Documentation/freebsd-instructions.md
src/pal/tests/palsuite/runpaltests.sh

index 0304ac8..7b49a28 100644 (file)
@@ -227,3 +227,18 @@ If all works, you should be greeted by a friendly daemon you know well.
 Over time, this process will get easier. We will remove the dependency on having to compile managed code on Windows. For example, we are working to get our NuGet packages to include both the Windows and FreeBSD versions of an assembly, so you can simply nuget restore the dependencies. 
 
 Pull Requests to enable building CoreFX and mscorlib on FreeBSD via Mono would be very welcome. A sample that builds Hello World on FreeBSD using the correct references but via XBuild or MonoDevelop would also be great! Some of our processes (e.g. the mscorlib build) rely on Windows specific tools, but we want to figure out how to solve these problems for FreeBSD as well. There's still a lot of work ahead, so if you're interested in helping, we're ready for you!
+
+
+Run the test suite
+==================
+
+If you've made changes to the CoreCLR PAL code, you might want to run the PAL tests directly to validate your changes.
+This can be done after a clean build, without any other dependencies.
+
+```bash
+janhenke@freebsd-frankfurt:~/coreclr % ./build.sh && src/pal/tests/palsuite/runpaltests.sh ~/coreclr/bin/obj/FreeBSD.x64.Debug ~/coreclr/bin/paltestout
+```
+
+This should run all the tests associated with the PAL.
+
+**Note:** For FreeBSD all PAL tests may not pass at this point.
index c62022f..a6d0da4 100755 (executable)
@@ -1,4 +1,4 @@
-#!/bin/bash
+#!/usr/bin/env bash
 #
 # This script executes PAL tests from the specified build location.
 #