[Pkg-cli-apps-commits] [fsharp] 35/71: enable most of tests/fsharp/core/... for single-file cross-platform testing (minor tweak)

Christopher Halse Rogers raof-guest at moszumanska.debian.org
Fri Jan 17 05:18:13 UTC 2014


This is an automated email from the git hooks/post-receive script.

raof-guest pushed a commit to tag 3.1.0
in repository fsharp.

commit a5e346bc994628cb6c3970fd1edb8d04ca825141
Author: Don Syme <donsyme at fastmail.fm>
Date:   Fri Nov 29 21:33:50 2013 +0000

    enable most of tests/fsharp/core/... for single-file cross-platform testing (minor tweak)
---
 README.md                    | 10 +++++++++-
 tests/fsharp/core/run-all.sh |  8 +++++++-
 2 files changed, 16 insertions(+), 2 deletions(-)

diff --git a/README.md b/README.md
index 754076b..0ed0971 100644
--- a/README.md
+++ b/README.md
@@ -204,7 +204,15 @@ lib\debug\4.0\fsc.exe hello.fs
 hello.exe
 ```
 
-### Running Compiler tests (on Windows)
+### Running Compiler and Library tests (on OSX and Linux)
+
+Use the following script:
+```
+cd ..\tests\fsharp\core
+./run-all.sh
+```
+
+### Running Compiler and Library tests (on Windows)
 
 There are language tests under `tests\fsharp\core`. The test apparatus is primitive and unfortunately uses batch files. You can run these on Windows using:
 
diff --git a/tests/fsharp/core/run-all.sh b/tests/fsharp/core/run-all.sh
index 0c9fdfa..3fbe70c 100644
--- a/tests/fsharp/core/run-all.sh
+++ b/tests/fsharp/core/run-all.sh
@@ -1,2 +1,8 @@
-mono ../../../lib/debug/fsc.exe --define:Portable --define:MONO --define:UNIX --define:ALL_IN_ONE --quotations-debug+ --debug+ ./run-all.fsx && mono ./run-all.exe
+#!/usr/bin/env sh
+echo "Running unoptimized..." && \
+fsharpc --define:Portable --define:MONO --define:UNIX --define:ALL_IN_ONE --quotations-debug+ --optimize- --debug+ ./run-all.fsx -o run-all-unopt.exe && \
+mono ./run-all-unopt.exe && \
+echo "Running optimized..." && \
+fsharpc --define:Portable --define:MONO --define:UNIX --define:ALL_IN_ONE --quotations-debug+ --optimize+ --debug+ ./run-all.fsx -o run-all-opt.exe && \
+mono ./run-all-opt.exe
 

-- 
Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/pkg-cli-apps/packages/fsharp.git



More information about the Pkg-cli-apps-commits mailing list