File tree Expand file tree Collapse file tree 1 file changed +24
-0
lines changed Expand file tree Collapse file tree 1 file changed +24
-0
lines changed Original file line number Diff line number Diff line change @@ -34,6 +34,30 @@ To run specific tests, use appropriate flags such as:
34
34
- ` ./y.sh test --test-libcore `
35
35
- ` ./y.sh test --std-tests `
36
36
- ` cargo test -- <name of test> `
37
+ ##### Cargo tests
38
+ To run ` cargo test ` s, you need to do a few things.
39
+ First and foremost, set the correct ` LD_LIBRARY_PATH ` and ` LIBRARY_PATH ` .
40
+
41
+ You can find out this path by running ` ./y.sh build ` .
42
+ You should see output like this:
43
+ ```
44
+ [BUILD] build system
45
+ Finished `release` profile [optimized] target(s) in 0.01s
46
+ Using `EXAMPLE_PATH` as path for libgccjit
47
+ Finished `dev` profile [optimized + debuginfo] target(s) in 0.02s
48
+ ```
49
+ Copy the path from that output, and use it to set ` LD_LIBRARY_PATH ` and ` LIBRARY_PATH ` .
50
+ ``` shell
51
+ export EXAMPLE_PATH=SOME_PATH
52
+ export EXAMPLE_PATH=SOME_PATH
53
+ ```
54
+ Before running any of the cargo tests, you must also first run this command:
55
+ ``` sh
56
+ ./y.sh test --mini-tests
57
+ ```
58
+ It will build some of the dependencies neccesary for running tests.
59
+
60
+ ##### ` libgccjit ` tests
37
61
38
62
Additionally, you can run the tests of ` libgccjit ` :
39
63
You can’t perform that action at this time.
0 commit comments