Skip to content

Conversation

@wmuth
Copy link
Contributor

@wmuth wmuth commented Apr 1, 2025

This PR adds parallelization to the test script misc/test using a -j flag the same way make and tup has.

Parallelization is disabled by default and is enabled using the -j%d flag. If you provide -j without a number then the script automatically detects your number of logical cpu cores and automatically runs that many jobs in parallel.

Before this PR, running make test -j%d, would run the tests in parallel since recursive make invocations inherit flags trough the MAKEFLAGS environment variable. This still works but now tup also follows the specified -j flag, even if provided to make trough e.g. make test -j5.

@wmuth wmuth requested a review from johnwikman April 2, 2025 09:12
@wmuth wmuth changed the title Feat: Add parallelization to make tests Feat: Add -j flag to test script and have make & tup obey it Apr 3, 2025
@david-broman david-broman merged commit ea4b389 into miking-lang:develop Apr 7, 2025
1 of 2 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants