Skip to content

Commit

Permalink
scripts/runTests.fsx: test fsi.CmdLineArgs w/ fsi
Browse files Browse the repository at this point in the history
Test fsi.CommandLineArgs with dotnet fsi too, to make sure it
matches the reference implementation.
  • Loading branch information
knocte committed Aug 26, 2023
1 parent 7c32dca commit a08d387
Showing 1 changed file with 13 additions and 2 deletions.
15 changes: 13 additions & 2 deletions scripts/runTests.fsx
Original file line number Diff line number Diff line change
Expand Up @@ -333,8 +333,19 @@ Process.Execute(
let cmdLineArgsTest =
Path.Combine(TestDir.FullName, "testFsiCommandLineArgs.fsx") |> FileInfo

Process.Execute(CreateCommand(cmdLineArgsTest, "one 2 three"), Echo.All)
|> UnwrapDefault
let args = "one 2 three"

Process.Execute(CreateCommand(cmdLineArgsTest, args), Echo.All) |> UnwrapDefault

#if !LEGACY_FRAMEWORK
let dotnetFsiCmd =
{
Command = "dotnet"
Arguments = sprintf "fsi %s %s" cmdLineArgsTest.FullName args
}

Process.Execute(dotnetFsiCmd, Echo.All) |> UnwrapDefault
#endif

let processTest = Path.Combine(TestDir.FullName, "testProcess.fsx") |> FileInfo

Expand Down

0 comments on commit a08d387

Please sign in to comment.