Skip to content

Commit 1d4b5f6

Browse files
author
Nathan Ricci
authored
Updated testing document; patching and various mono-specific msbuild targets are no longer needed. (#62588)
1 parent 36bf84f commit 1d4b5f6

File tree

1 file changed

+9
-11
lines changed

1 file changed

+9
-11
lines changed

docs/workflow/testing/mono/testing.md

Lines changed: 9 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -7,10 +7,10 @@ Before running tests, [build Mono](../../building/mono/README.md) using the desi
77

88
To build the runtime tests for Mono JIT or interpreter:
99

10-
1. Build CoreCLR - the `clr.native` subset is enough but you can build the whole thing, optionally. From the `$(REPO_ROOT)`:
10+
1. Build test host (corerun) - From the `$(REPO_ROOT)`:
1111

1212
```
13-
./build.sh clr.native -c <release|debug>
13+
./build.sh clr.hosts -c <release|debug>
1414
```
1515

1616
2. Build the tests (in `$(REPO_ROOT)/src/tests`)
@@ -26,25 +26,23 @@ For example: `./build.sh excludemonofailures release -test:JIT/opt/InstructionCo
2626

2727
Run individual test:
2828
```
29-
cd src/mono
30-
make run-tests-coreclr CoreClrTest="bash ../../artifacts/tests/coreclr/OSX.x64.Release/JIT/opt/InstructionCombining/DivToMul/DivToMul.sh"
29+
bash ./artifacts/tests/coreclr/OSX.x64.Release/JIT/opt/InstructionCombining/DivToMul/DivToMul.sh -coreroot=`pwd`/artifacts/tests/coreclr/OSX.x64.Release/Tests/Core_Root
3130
```
3231

33-
Run all tests:
32+
Run all built tests:
3433
```
35-
cd src/mono
36-
make run-tests-coreclr-all
34+
./run.sh <Debug|Release>
3735
```
3836

3937
To debug a single test with `lldb`:
4038

41-
1. Run the test at least once normally (or manually run the `mono.proj` `PatchCoreClrCoreRoot` target)
42-
2. Run the shell script for the test case manually:
39+
1. Run the shell script for the test case manually with the `-debug` option:
4340
```
4441
bash ./artifacts/tests/coreclr/OSX.x64.Release/JIT/opt/InstructionCombining/DivToMul/DivToMul.sh -coreroot=`pwd`/artifacts/tests/coreclr/OSX.x64.Release/Tests/Core_Root -debug=/usr/bin/lldb
4542
```
46-
3. In LLDB add the debug symbols for mono: `add-dsym <CORE_ROOT>/libcoreclr.dylib.dwarf`
47-
4. Run/debug the test
43+
2. In LLDB add the debug symbols for mono: `add-dsym <CORE_ROOT>/libcoreclr.dylib.dwarf`
44+
3. Run/debug the test
45+
4846

4947
### WebAssembly:
5048
Build the runtime tests for WebAssembly

0 commit comments

Comments
 (0)