-
Notifications
You must be signed in to change notification settings - Fork 12
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
Introduce Test Mode for Build #571
Introduce Test Mode for Build #571
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Love how neat this came out. Great job! 👏 👏
eb09e09
to
3927d29
Compare
To support testing, the test-config.cfg file has been introduced in Infix. Additionally, a "test mode" for the running image is required for this configuration to be applied. Basically the test-config will only be loaded when the device is in test mode, which is determined by the presence of the /mnt/aux/test-mode file. However, placing this file via the Qeneth system proved to be inconvenient in the test environment. Therefore, it the entire image is built in test mode, with the 'test-mode' file preloaded onto the disk image (specifically in the auxiliary partition). To support this, a new variable, (bool) DISK_IMAGE_TEST_MODE, has been introduced: enabled: the image will be built in the test mode; disabled: the image will be built in the standard mode. Part of issue kernelkit#568
3927d29
to
9c15c5c
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Excellent!
If you rebase this on kernelkit:main
, I think the build issues should go away, so that we can verify that we don't have any breaking changes.
To support testing, the 'test-config.cfg' has been introduced in Infix. Additionally, a test mode for the running image is required for this configuration to be applied.
Basically the 'test-config' will only be generated and loaded when the device is in 'test-mode', which is determined by the presence of the '/mnt/aux/test-mode file'. However, placing this file via the Qeneth system proved to be inconvenient in the test environment. Therefore, the entire image is built in test mode, with the 'test-mode' file preloaded onto the disk image (specifically in the auxiliary partition).
To support this, a new variable, '(bool) DISK_IMAGE_TEST_MODE', has been introduced: