Skip to content

Conversation

@eureka-cpu
Copy link
Owner

@eureka-cpu eureka-cpu commented Jan 31, 2026

Adds printcmd flag for printing the command instead of running it.
Uses dune as the build tool to invoke rustc to build a test suite.
Adds additional checks to the default derivation, and adds default derivation to flake checks.
Bumps version patch.

@eureka-cpu eureka-cpu self-assigned this Jan 31, 2026
@eureka-cpu eureka-cpu added the enhancement New feature or request label Jan 31, 2026
@eureka-cpu eureka-cpu force-pushed the eureka-cpu/add-test-harness branch from a0a317d to 5bac466 Compare February 1, 2026 02:16
(targets test_ns) ; the Dune target name
(deps test_ns.rs) ; path relative to this dune file
(action
(run rustc --test %{deps} -o %{targets} --allow warnings)))
Copy link
Collaborator

Choose a reason for hiding this comment

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

pretty cool that you can do this

.expect("failed to canonicalize path to ns binary")
}

fn assert_stdout_eq(stdout: &[u8], expected: &[&str]) {
Copy link
Collaborator

Choose a reason for hiding this comment

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

Could this still be accomplished with built-in asserts? Regardless pretty cool, and if so then its a very nice touch!

Copy link
Owner Author

Choose a reason for hiding this comment

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

It's just for utility, but yes. If you use the regular assert it will print out extra stuff that we don't need.

Copy link
Collaborator

@andrewvious andrewvious left a comment

Choose a reason for hiding this comment

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

🚀 LGTM, going to test out after merge

@eureka-cpu eureka-cpu merged commit a911ce5 into master Feb 1, 2026
4 checks passed
@eureka-cpu eureka-cpu deleted the eureka-cpu/add-test-harness branch February 1, 2026 03:12
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

enhancement New feature or request

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants