Skip to content

Commit

Permalink
Add tests for fsi.exe
Browse files Browse the repository at this point in the history
  • Loading branch information
latkin committed Mar 16, 2015
1 parent 83e2576 commit 1dc3e15
Show file tree
Hide file tree
Showing 12 changed files with 69 additions and 0 deletions.
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
#r "./lib.dll"

module Foo =
let Y = 22
do
printfn "%O" (Lib.X())
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
#r "lib.dll"

module Foo =
let Y = 22
do
printfn "%O" (Lib.X())
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
#r "lib.dll"

module Foo =
let Y = 22
do
printfn "%O" (Lib.X())
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
#r "../lib.dll"

module Foo =
let Y = 22
do
printfn "%O" (Lib.X())
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
#load "RelativeHashRResolution04_2.fsx"

printfn "%O" (Lib.X())
printfn "%O" RelativeHashRResolution04_2.Foo.Y

#q ;;
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
#r "../lib.dll"

module Foo =
let Y = 22
do
printfn "%O" (Lib.X())
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
#load "..\RelativeHashRResolution05_2.fsx"

printfn "%O" (Lib.X())
printfn "%O" RelativeHashRResolution05_2.Foo.Y

#q ;;
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
#load "../aaa/bbb/RelativeHashRResolution01_2.fsx"

printfn "%O" (Lib.X())
printfn "%O" RelativeHashRResolution01_2.Foo.Y

#q ;;
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
#load "../aaa/RelativeHashRResolution02_2.fsx"

printfn "%O" (Lib.X())
printfn "%O" RelativeHashRResolution02_2.Foo.Y

#q ;;
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
#load "../aaa/RelativeHashRResolution03_2.fsx"

printfn "%O" (Lib.X())
printfn "%O" RelativeHashRResolution03_2.Foo.Y

#q ;;
7 changes: 7 additions & 0 deletions tests/fsharpqa/Source/InteractiveSession/Misc/env.lst
Original file line number Diff line number Diff line change
Expand Up @@ -99,3 +99,10 @@ NoMT SOURCE=E_NoNoFrameworkWithFSCore.fs COMPILE_ONLY=1 FSIMODE=PIPE SCFLAGS="-

SOURCE="ScriptTest\\LoadScriptResolution01.fsx" SCFLAGS="--nologo" # LoadScriptResolution01.fsx - fsc
SOURCE="ScriptTest\\LoadScriptResolution01.fsx" COMPILE_ONLY=1 FSIMODE=FEED SCFLAGS="--nologo" # LoadScriptResolution01.fsx - fsi

# relative paths used in #r references
SOURCE=ccc\\RelativeHashRResolution01_1.fsx COMPILE_ONLY=1 FSIMODE=EXEC PRECMD="\$FSC_PIPE -a lib.fs -o aaa\\lib.dll" SCFLAGS="--nologo" # RelativeHashRResolution01_1.fsx
SOURCE=ccc\\RelativeHashRResolution02_1.fsx COMPILE_ONLY=1 FSIMODE=EXEC PRECMD="\$FSC_PIPE -a lib.fs -o aaa\\lib.dll" SCFLAGS="--nologo" # RelativeHashRResolution02_1.fsx
SOURCE=ccc\\RelativeHashRResolution03_1.fsx COMPILE_ONLY=1 FSIMODE=EXEC PRECMD="\$FSC_PIPE -a lib.fs -o aaa\\lib.dll" SCFLAGS="--nologo" # RelativeHashRResolution03_1.fsx
SOURCE=aaa\\bbb\\RelativeHashRResolution04_1.fsx COMPILE_ONLY=1 FSIMODE=EXEC PRECMD="\$FSC_PIPE -a lib.fs -o aaa\\lib.dll" SCFLAGS="--nologo" # RelativeHashRResolution04_1.fsx
SOURCE=aaa\\bbb\\RelativeHashRResolution05_1.fsx COMPILE_ONLY=1 FSIMODE=EXEC PRECMD="\$FSC_PIPE -a lib.fs -o aaa\\lib.dll" SCFLAGS="--nologo" # RelativeHashRResolution05_1.fsx
2 changes: 2 additions & 0 deletions tests/fsharpqa/Source/InteractiveSession/Misc/lib.fs
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
module Lib
let X () = 42

0 comments on commit 1dc3e15

Please # to comment.