From eafe76800fdac2e907bc901fdcbfc816882810e3 Mon Sep 17 00:00:00 2001 From: Marcus Cuda Date: Wed, 19 Aug 2009 14:52:46 +0800 Subject: [PATCH] Added F# projects to the build Signed-off-by: Marcus Cuda --- build/build.proj | 7 ++++++- src/FSharpUnitTests/FSharpUnitTests.fsproj | 2 +- src/FSharpUnitTests/Program.fs | 9 ++++++++- 3 files changed, 15 insertions(+), 3 deletions(-) diff --git a/build/build.proj b/build/build.proj index 92973927..9dca1773 100644 --- a/build/build.proj +++ b/build/build.proj @@ -10,10 +10,13 @@ + + + @@ -40,9 +43,11 @@ - + + + \ No newline at end of file diff --git a/src/FSharpUnitTests/FSharpUnitTests.fsproj b/src/FSharpUnitTests/FSharpUnitTests.fsproj index d73c1d8f..3a68e243 100644 --- a/src/FSharpUnitTests/FSharpUnitTests.fsproj +++ b/src/FSharpUnitTests/FSharpUnitTests.fsproj @@ -6,7 +6,7 @@ 8.0.30703 2.0 {f2f8032b-a31d-4e33-a05e-f2cdcbfaa75d} - Library + Exe FSharpUnitTests FSharpUnitTests v3.5 diff --git a/src/FSharpUnitTests/Program.fs b/src/FSharpUnitTests/Program.fs index 6f5a8b0f..ac0d6c4f 100644 --- a/src/FSharpUnitTests/Program.fs +++ b/src/FSharpUnitTests/Program.fs @@ -24,4 +24,11 @@ let DenseVectorTests = spec "DenseVector.range" (Double.DenseVector.range 0 99 |> should equal (new Double.DenseVector( [| for i in 0 .. 99 -> float i |] ) )) - ] \ No newline at end of file + ] + +/// Report on errors and success and exit. +printfn "F# Test Results:" +printfn "%s" (Results.summary()) + +let code = if Results.erredCount() > 0 || Results.failedCount() > 0 then -1 else 0;; +exit code;; \ No newline at end of file