-
Notifications
You must be signed in to change notification settings - Fork 17
This PR integrates all shell scripts from qcom-linux-testkit-sources into the qcom-linux-testkit build system using autotools. #26
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
Conversation
src/tests/reboot.c
Outdated
@@ -0,0 +1,131 @@ | |||
/* |
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.
Is there a reason why these tests are written in C? It looks like they can be rewritten in shell and there would be no need for compilation.
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.
Is there a reason why these tests are written in C? It looks like they can be rewritten in shell and there would be no need for compilation.
This was initially written for Axiom, and as a short-term enablement, we switched to Lava. It may not be required for now, but we will need it in the long term.
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.
Could you explain how it works in axiom? I don't see any service running these programs on bootup or anything similar.
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.
setup_systemd.sh will set up the necessary systemd-service to test the reboot functionality. The .c code will also perform some health checks after the service initialization.
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.
I don't see setup_systemd.sh in this PR. Even with that it still doesn't explain why these need to be compiled. There is no API they call that can't be used from shell.
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.
Based on this, I don't think these C files belong in this repository.
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.
I'm not sure why these can't be included in this repository, especially since they'll be useful when we migrate to Axiom in the future.
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.
You can include them when they're useful. For the moment they're not and can be rewritten in shell. Adding dependencies is not a great idea.
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.
If we are not using these files at this time, then let's not include them. Unused code is going to be a burden to someone and confusing for any developers without context.
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.
ef9dd04
to
e5363e9
Compare
Changes
Motivation
Combining C sources and shell scripts under a single build system makes the test kit easier to distribute, install, and maintain across environments.
Test Plan
./autogen.sh
,./configure
,make
, andmake install
successfully@mwasilew @craigez