Commit cf3f252
authored
Parallel build all C tests from top level makefile [AP-1086] (#1394)
# Description
@swift-nav/devinfra
A small change to speed up builds of C tests when using the top level
makefile, as is done in all CI stages.
The current makefile has 2 sections which build and run tests. They are
similar (one targets a subset of tests for compatibility with big endian
machines). They are both written as:
```
make -j4;
make do-all-tests
```
Where the first command builds all targets in parallel, and the second
runs all the tests sequentially.
However, test targets are not built as part of `all` so what really
happens is the main `libsbp` target is build in parallel in the first
step, then all tests are built and run single threaded in the second
stage. This can be easily fixed and sped up by altering the first
command to build all test targets using the `-j4` flag:
```
make -j4 build-all-tests;
make do-all-tests
```
# API compatibility
Does this change introduce a API compatibility risk?
No
## API compatibility plan
If the above is "Yes", please detail the compatibility (or migration)
plan:
No
# JIRA Reference
https://swift-nav.atlassian.net/browse/AP-10861 parent e473ea4 commit cf3f252
1 file changed
+2
-2
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
378 | 378 | | |
379 | 379 | | |
380 | 380 | | |
381 | | - | |
| 381 | + | |
382 | 382 | | |
383 | 383 | | |
384 | 384 | | |
| |||
387 | 387 | | |
388 | 388 | | |
389 | 389 | | |
390 | | - | |
| 390 | + | |
391 | 391 | | |
392 | 392 | | |
393 | 393 | | |
| |||
0 commit comments