Commit a2aa967
committed
compiletest: support auxiliaries with auxiliaries
To test behaviour that depends on the extern options of intermediate
crates, compiletest auxiliaries must have their own auxiliaries.
Auxiliary compilation previously did not trigger compilation of any
auxiliaries in the auxiliary's headers. In addition, those auxiliaries
would need to be in an `auxiliary/auxiliary` directory, which is
unnecessary and makes some crate graphs harder to write tests for,
such as when A depends on B and C, and B depends on C.
For a test `tests/ui/$path/root.rs`, with the following crate graph:
```
root
|-- grandparent
`-- parent
`-- grandparent
```
then the intermediate outputs from compiletest will be:
```
build/$target/test/ui/$path/
|-- auxiliary
| |-- libgrandparent.dylib
| |-- libparent.dylib
| |-- grandparent
| | |-- grandparent.err
| | `-- grandparent.out
| `-- parent
| |-- parent.err
| `-- parent.out
|-- libroot.rmeta
|-- root.err
`-- root.out
```
Signed-off-by: David Wood <david@davidtw.co>1 parent 29f87ad commit a2aa967
File tree
4 files changed
+44
-23
lines changed- src/tools/compiletest/src
- tests/ui/compiletest-self-test
- auxiliary
4 files changed
+44
-23
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1936 | 1936 | | |
1937 | 1937 | | |
1938 | 1938 | | |
1939 | | - | |
| 1939 | + | |
1940 | 1940 | | |
1941 | 1941 | | |
1942 | 1942 | | |
| |||
2092 | 2092 | | |
2093 | 2093 | | |
2094 | 2094 | | |
2095 | | - | |
2096 | | - | |
2097 | | - | |
2098 | | - | |
2099 | | - | |
2100 | | - | |
2101 | | - | |
2102 | | - | |
2103 | | - | |
2104 | | - | |
| 2095 | + | |
| 2096 | + | |
| 2097 | + | |
| 2098 | + | |
| 2099 | + | |
2105 | 2100 | | |
2106 | 2101 | | |
2107 | 2102 | | |
2108 | 2103 | | |
2109 | 2104 | | |
2110 | 2105 | | |
2111 | | - | |
2112 | | - | |
| 2106 | + | |
2113 | 2107 | | |
2114 | 2108 | | |
2115 | 2109 | | |
| |||
2135 | 2129 | | |
2136 | 2130 | | |
2137 | 2131 | | |
2138 | | - | |
| 2132 | + | |
2139 | 2133 | | |
2140 | 2134 | | |
2141 | 2135 | | |
2142 | 2136 | | |
2143 | 2137 | | |
2144 | 2138 | | |
2145 | 2139 | | |
| 2140 | + | |
| 2141 | + | |
| 2142 | + | |
| 2143 | + | |
2146 | 2144 | | |
2147 | | - | |
| 2145 | + | |
2148 | 2146 | | |
2149 | 2147 | | |
2150 | 2148 | | |
2151 | | - | |
| 2149 | + | |
2152 | 2150 | | |
2153 | 2151 | | |
2154 | 2152 | | |
2155 | 2153 | | |
2156 | | - | |
2157 | | - | |
2158 | 2154 | | |
2159 | 2155 | | |
2160 | 2156 | | |
2161 | | - | |
| 2157 | + | |
| 2158 | + | |
| 2159 | + | |
2162 | 2160 | | |
2163 | 2161 | | |
2164 | 2162 | | |
| |||
2172 | 2170 | | |
2173 | 2171 | | |
2174 | 2172 | | |
2175 | | - | |
2176 | | - | |
| 2173 | + | |
| 2174 | + | |
2177 | 2175 | | |
2178 | | - | |
| 2176 | + | |
2179 | 2177 | | |
2180 | 2178 | | |
2181 | 2179 | | |
| |||
2193 | 2191 | | |
2194 | 2192 | | |
2195 | 2193 | | |
| 2194 | + | |
2196 | 2195 | | |
2197 | 2196 | | |
2198 | 2197 | | |
| |||
3034 | 3033 | | |
3035 | 3034 | | |
3036 | 3035 | | |
3037 | | - | |
| 3036 | + | |
| 3037 | + | |
3038 | 3038 | | |
3039 | 3039 | | |
3040 | 3040 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
| 1 | + | |
| 2 | + | |
| 3 | + | |
| 4 | + | |
| 5 | + | |
| 6 | + | |
| 7 | + | |
| 8 | + | |
| 9 | + | |
| 10 | + | |
| 11 | + | |
| 12 | + | |
| 13 | + | |
| 14 | + | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
| 1 | + | |
| 2 | + | |
| 3 | + | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
| 1 | + | |
| 2 | + | |
| 3 | + | |
| 4 | + | |
0 commit comments