You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: docs/test.md
+19-2Lines changed: 19 additions & 2 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -35,5 +35,22 @@ Verbose|Sets msbuild verbosity to `normal`. By default, verbosity is set to `Err
35
35
36
36
### Linux
37
37
38
-
Currently there are no unit tests support for Linux. However, Linux builds will run via PR validations. Please contact
39
-
clrieowners@microsoft.com for more details.
38
+
#### Prerequisites
39
+
40
+
The following technologies/tools are required in order to run Linux tests on Windows. These instructions were tested for Ubuntu 18.04 LTS and may require adjustments for other distros/versions.
41
+
42
+
* WSL (Windows Subsystem for Linux) 2.0 with Ubuntu 18.04 LTS
43
+
- WSL is available on Windows 10 Build 19041+ and Windows 11.
44
+
- Run this in a command prompt `wsl --install -d Ubuntu-18.04` or download Ubuntu 18.04 from the Microsoft Store. Restart as needed and setup a user/pass for your account.
45
+
* Docker Desktop for Linux (Ubuntu)
46
+
- Follow the instructions from the official docs https://docs.docker.com/engine/install/ubuntu/
47
+
48
+
#### Steps
49
+
50
+
1. On Windows, build InstrumentationEngine for Debug AnyCPU (which builds managed projects and dlls)
51
+
- You can also run `dotnet build InstrumentationEngine.sln` in the interactive container session from step 2 instead.
52
+
2. Run `src\scripts\DockerLocalBuild.ps1 -Wsl -BuildDockerImage -Interactive -RebuildImage`. This will build a docker container and drop you in an interactive session. By default builds for Ubuntu/Debian; set `-CLib musl` if you want to build for Alpine Linux instead.
53
+
3. Run `./src/build.sh` within the interactive session. This builds the native shared object files (.so).
54
+
4. Run `dotnet test bin/Debug/AnyCPU/net70/InstrEngineTests.dll`
55
+
56
+
Please contact clrieowners@microsoft.com for any details or questions.
0 commit comments