Repository navigation
Conversation
Member
Author
|
Closing in favor of #239. |
zeroshade
pushed a commit
that referenced
this pull request
Jan 5, 2026
Extends the SubCommandTest test suite to be parameterized by configLevel so the subcommand tests can be run with `--level` set to user or system by running the test suite with `DBC_TEST_LEVEL_USER=1` or `DBC_TEST_LEVEL_SYSTEM=1` respectively. This is not enabled by default on developer machines but is enabled in CI. To opt in this behavior, tests need to be written to use `suite.configLevel` to control their config level and tests can opt out either by not doing this or by doing this but adding appropriate Skips. To demo what we can do now, this PR also includes a fix for #215. We could have fixed the issue by testing in a tempdir but with the change in this PR we can actually test the bug that was reported. Doing this also uncovered some edge cases in the symlink behavior so this was time well spent. Also fixes a minor undiscovered bug in removing manifest-only drivers: e69744f. Supersedes #238 Closes #210 Closes #215
zeroshade
pushed a commit
that referenced
this pull request
Apr 17, 2026
Extends the SubCommandTest test suite to be parameterized by configLevel so the subcommand tests can be run with `--level` set to user or system by running the test suite with `DBC_TEST_LEVEL_USER=1` or `DBC_TEST_LEVEL_SYSTEM=1` respectively. This is not enabled by default on developer machines but is enabled in CI. To opt in this behavior, tests need to be written to use `suite.configLevel` to control their config level and tests can opt out either by not doing this or by doing this but adding appropriate Skips. To demo what we can do now, this PR also includes a fix for #215. We could have fixed the issue by testing in a tempdir but with the change in this PR we can actually test the bug that was reported. Doing this also uncovered some edge cases in the symlink behavior so this was time well spent. Also fixes a minor undiscovered bug in removing manifest-only drivers: 506d6e0. Supersedes #238 Closes #210 Closes #215
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Adds a mechanism for running tests for the user and system config levels and adds a basic installation test for both config levels. The goal here is not to completely replicate the existing tests but to give us a way to test special cases of interest.
The approach here creates a new test suite class and standalone files instead of mixing them into other test suites and they are intentionally hard to run because they are potentially dangerous. And I wasn't able to find a good mechanism to do something more like Python or Rust where it's easier to mix tests together.
Tests are in
integration_user_test.goandintegration_system_test.go. I split these up because, in CI, I want to test the user level tests without sudo and the system level tests with sudo. There are other ways to work around this but I feel better just testing what the users would run directly.You have to run the tests like,
This PR enables them in CI for all commits.
Closes #210