Skip to content

Add check_params tests - #419

Merged
cperciva merged 2 commits into
masterfrom
check-params
Jul 24, 2026
Merged

Add check_params tests#419
cperciva merged 2 commits into
masterfrom
check-params

Conversation

@gperciva

Copy link
Copy Markdown
Member

No description provided.

@gperciva

Copy link
Copy Markdown
Member Author

This uses the same source file, but links it to either the normal scrypt stuff, or a reference-files-only library (with no intrinsics).

@gperciva
gperciva marked this pull request as draft July 21, 2026 21:52
@gperciva
gperciva force-pushed the check-params branch 2 times, most recently from 87f896a to b5dde60 Compare July 22, 2026 03:10
@gperciva
gperciva marked this pull request as ready for review July 22, 2026 03:11
@cperciva

Copy link
Copy Markdown
Member

Can you split adding the C file off into a separate commit, and/or add text to the commit messages to clarify the "same source file is used by both tests" situation? I think I understand it now but it took me long enough that I feel it should be clearer.

gperciva added 2 commits July 22, 2026 12:00
This uses the same source file as check-params-normal [*], but
links it only to "reference" algorithm implementations, not the
cpu-intrinsics-aware implementations.

[*] tests/check-params/check-params.c, which was added in the
    previous commit.
@gperciva

Copy link
Copy Markdown
Member Author

I've updated the commit message of the second commit. I'd rather not add the .c file by itself, since that's not a self-contained commit.

As it stands now, in theory the first commit could be merged on its own without leaving the tree in an un-sensible state.

@cperciva
cperciva merged commit a71ae82 into master Jul 24, 2026
2 checks passed
@gperciva
gperciva deleted the check-params branch July 24, 2026 03:13
@gperciva

Copy link
Copy Markdown
Member Author

Thanks!

BTW, when a PR has multiple commits, you normally merge with a merge commit, rather than a linear-history rebase.

I'm not fussed either way, but I figured I'd mention it in case it wasn't an intentional change.

@cperciva

Copy link
Copy Markdown
Member

Yeah, I could have gone either way on this one. FreeBSD uses a rebase-only model which has made me lean more towards using rebase for this sort of "two commits of which the first can stand entirely independently". If you had turned it into three commits with the first one being "add a C file which will be used later" then I would definitely have merged in order to avoid having a commit which didn't stand by itself.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Development

Successfully merging this pull request may close these issues.

2 participants