File tree Expand file tree Collapse file tree 1 file changed +9
-11
lines changed
docs/workflow/testing/mono Expand file tree Collapse file tree 1 file changed +9
-11
lines changed Original file line number Diff line number Diff line change @@ -7,10 +7,10 @@ Before running tests, [build Mono](../../building/mono/README.md) using the desi
7
7
8
8
To build the runtime tests for Mono JIT or interpreter:
9
9
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) ` :
11
11
12
12
```
13
- ./build.sh clr.native -c <release|debug>
13
+ ./build.sh clr.hosts -c <release|debug>
14
14
```
15
15
16
16
2 . Build the tests (in ` $(REPO_ROOT)/src/tests ` )
@@ -26,25 +26,23 @@ For example: `./build.sh excludemonofailures release -test:JIT/opt/InstructionCo
26
26
27
27
Run individual test:
28
28
```
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
31
30
```
32
31
33
- Run all tests:
32
+ Run all built tests:
34
33
```
35
- cd src/mono
36
- make run-tests-coreclr-all
34
+ ./run.sh <Debug|Release>
37
35
```
38
36
39
37
To debug a single test with ` lldb ` :
40
38
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:
43
40
```
44
41
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
45
42
```
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
+
48
46
49
47
### WebAssembly:
50
48
Build the runtime tests for WebAssembly
You can’t perform that action at this time.
0 commit comments