Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
10 changes: 10 additions & 0 deletions eng/build.sh
Original file line number Diff line number Diff line change
Expand Up @@ -26,6 +26,7 @@ usage()
echo " --testcoreclr Run unit tests on .NET Core (short: --test, -t)"
echo " --testCompilerComponentTests Run FSharp.Compiler.ComponentTests on .NET Core"
echo " --testBenchmarks Build and Run Benchmark suite"
echo " --testScripting Run FSharp.Private.ScriptingTests on .NET Core"
echo ""
echo "Advanced settings:"
echo " --ci Building in CI"
Expand Down Expand Up @@ -60,6 +61,7 @@ publish=false
test_core_clr=false
test_compilercomponent_tests=false
test_benchmarks=false
test_scripting=false
configuration="Debug"
verbosity='minimal'
binary_log=false
Expand Down Expand Up @@ -136,6 +138,9 @@ while [[ $# > 0 ]]; do
--testbenchmarks)
test_benchmarks=true
;;
--testscripting)
test_scripting=true
;;
--ci)
ci=true
;;
Expand Down Expand Up @@ -332,4 +337,9 @@ if [[ "$test_benchmarks" == true ]]; then
popd
fi

if [[ "$test_scripting" == true ]]; then
coreclrtestframework=$tfm
Test --testproject "$repo_root/tests/FSharp.Compiler.Private.Scripting.UnitTests/FSharp.Compiler.Private.Scripting.UnitTests.fsproj" --targetframework $coreclrtestframework
fi

ExitWithExitCode 0
Original file line number Diff line number Diff line change
Expand Up @@ -264,6 +264,10 @@ TorchSharp.Tensor.LongTensor.From([| 0L .. 100L |]).Device

[<Fact>]
member _.``Use Dependency Manager to restore packages with native dependencies, build and run script that depends on the results``() =
// Skip test on arm64, because there is not an arm64 netive library
if RuntimeInformation.ProcessArchitecture = Architecture.Arm64 then
()
else
let packagemanagerlines = [|
"r", "Microsoft.ML,version=1.4.0-preview"
"r", "Microsoft.ML.AutoML,version=0.16.0-preview"
Expand Down Expand Up @@ -360,6 +364,10 @@ printfn ""%A"" result

[<Fact>]
member _.``Use NativeResolver to resolve native dlls.``() =
// Skip test on arm64, because there is not an arm64 netive library
if RuntimeInformation.ProcessArchitecture = Architecture.Arm64 then
()
else
let packagemanagerlines = [|
"r", "Microsoft.ML,version=1.4.0-preview"
"r", "Microsoft.ML.AutoML,version=0.16.0-preview"
Expand Down Expand Up @@ -442,6 +450,10 @@ printfn ""%A"" result

[<Fact>]
member _.``Use AssemblyResolver to resolve assemblies``() =
// Skip test on arm64, because there is not an arm64 netive library
if RuntimeInformation.ProcessArchitecture = Architecture.Arm64 then
()
else
let packagemanagerlines = [|
"r", "Microsoft.ML,version=1.4.0-preview"
"r", "Microsoft.ML.AutoML,version=0.16.0-preview"
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -247,6 +247,10 @@ System.Configuration.ConfigurationManager.AppSettings.Item "Environment" <- "LOC
#if NETSTANDARD
[<Fact>]
member _.``ML - use assembly with native dependencies``() =
// Skip test on arm64, because there is not an arm64 netive library
if RuntimeInformation.ProcessArchitecture = Architecture.Arm64 then
()
else
let code = @"
#r ""nuget:Microsoft.ML,version=1.4.0-preview""
#r ""nuget:Microsoft.ML.AutoML,version=0.16.0-preview""
Expand Down