Skip to content

busybox: add tests#467609

Merged
balsoft merged 1 commit into
NixOS:masterfrom
tweag:balsoft/busybox-tests
Jun 8, 2026
Merged

busybox: add tests#467609
balsoft merged 1 commit into
NixOS:masterfrom
tweag:balsoft/busybox-tests

Conversation

@balsoft

@balsoft balsoft commented Dec 3, 2025

Copy link
Copy Markdown
Member

Adds the upstream test suite as passthru.tests.withCheck.

We have to fix up some tests due to our constraints (no FHS, no internet), and some tests are too hard to fix and are disabled for now.

Things done

  • Built on platform:
    • x86_64-linux
    • aarch64-linux
    • x86_64-darwin
    • aarch64-darwin
  • Tested, as applicable:
  • Ran nixpkgs-review on this PR. See nixpkgs-review usage.
  • Tested basic functionality of all binary files, usually in ./result/bin/.
  • Nixpkgs Release Notes
    • Package update: when the change is major or breaking.
  • NixOS Release Notes
    • Module addition: when adding a new NixOS module.
    • Module update: when the change is significant.
  • Fits CONTRIBUTING.md, pkgs/README.md, maintainers/README.md and other READMEs.

Add a 👍 reaction to pull requests you find important.

@nixpkgs-ci nixpkgs-ci Bot added 10.rebuild-darwin: 0 This PR does not cause any packages to rebuild on Darwin. 10.rebuild-linux: 0 This PR does not cause any packages to rebuild on Linux. 9.needs: reviewer This PR currently has no reviewers requested and needs attention. labels Dec 3, 2025

@infinisil infinisil left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM!

@nixpkgs-ci nixpkgs-ci Bot added 12.approvals: 1 This PR was reviewed and approved by one person. and removed 9.needs: reviewer This PR currently has no reviewers requested and needs attention. labels Dec 8, 2025
@nixpkgs-ci nixpkgs-ci Bot added the 2.status: merge conflict This PR has merge conflicts with the target branch label Jan 4, 2026
@balsoft balsoft mentioned this pull request May 1, 2026
13 tasks
@balsoft balsoft force-pushed the balsoft/busybox-tests branch from 18d352f to b0086e1 Compare May 1, 2026 10:04
@nixpkgs-ci nixpkgs-ci Bot removed the 2.status: merge conflict This PR has merge conflicts with the target branch label May 1, 2026
Adds the upstream test suite as passthru.tests.withCheck.

We have to fix up some tests due to our constraints (no FHS, no
internet), and some tests are too hard to fix and are disabled for now.
@balsoft balsoft force-pushed the balsoft/busybox-tests branch from b0086e1 to 5f1357f Compare May 1, 2026 10:21
@samueldr-at-cyberus

Copy link
Copy Markdown
Contributor

Ran this by cherry-picking the change in #515158, and am'ing this patch in a temp branch against unstable as of some arbitrary "now" (1c3fe55).

 $ git cherry-pick -x ab5d8f297635412559e778e0e01b8763a664731e
 $ curl -L https://github.com/NixOS/nixpkgs/pull/467609.patch | git am
 $ nix-build --attr busybox.tests
...
/nix/store/j4j4s9lp66ws927610vb77cziw2qfgf5-busybox-1.37.0

So, nominally, this builds... and

 $ nix-store --read-log /nix/store/j4j4s9lp66ws927610vb77cziw2qfgf5-busybox-1.37.0 | grep -Ei '^(fail|pass):' | cut -d':' -f1 | sort | uniq -c
    930 PASS

Seems to actually have ran the test suite, and having only PASSes.

@samueldr-at-cyberus samueldr-at-cyberus left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

On the whole, approving, even with the review comment.

export CONFIG_UNICODE_USING_LOCALE=y

# DISABLE SOME TESTS
# TODO(balsoft): fix the tests instead of skipping

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

TODO when? It this going to be tracked once this PR is merged?

(Sorry, stock review comment when I see a TODO or similar comments :))

Copy link
Copy Markdown
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Yeah, good call. I'll make an issue about it to track progress. I hope to get back to this within this year :)

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Just checking in, no issue was made or cross-referenced this :)

No worries if you have got it stashed somewhere else otherwise.

@nixpkgs-ci nixpkgs-ci Bot added 12.approvals: 2 This PR was reviewed and approved by two persons. and removed 12.approvals: 1 This PR was reviewed and approved by one person. labels May 1, 2026
@balsoft balsoft added this pull request to the merge queue Jun 8, 2026
Merged via the queue into NixOS:master with commit 7bae6dd Jun 8, 2026
32 of 34 checks passed
@balsoft balsoft deleted the balsoft/busybox-tests branch June 8, 2026 14:18
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

10.rebuild-darwin: 0 This PR does not cause any packages to rebuild on Darwin. 10.rebuild-linux: 0 This PR does not cause any packages to rebuild on Linux. 12.approvals: 2 This PR was reviewed and approved by two persons.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants