Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

test.mk: don't use a temporary random.bin #718

Draft
wants to merge 1 commit into
base: main
Choose a base branch
from

Conversation

vathpela
Copy link
Contributor

Sometimes using a temp file to make test-random.h breaks builds because clean and test get made in parallel.

Since debugging parallel make is anything but easy, it's better to just not use the intermediate file. This patch makes it use a pipe instead.

@vathpela vathpela marked this pull request as draft January 22, 2025 21:57
@vathpela vathpela force-pushed the random.bin branch 2 times, most recently from f5173bc to 392bcfc Compare January 22, 2025 22:04
Sometimes using a temp file to make test-random.h breaks builds because
clean and test get made in parallel.

Since debugging parallel make is anything but easy, it's better to just
not use the intermediate file.  This patch makes it use a pipe instead.
Because we live in the worst possible world, we have to support RHEL 9,
in which xxd does not support "-n prefix", and so we have to build the
header variable definition lines in shell.

Signed-off-by: Peter Jones <[email protected]>
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.

1 participant