-
Notifications
You must be signed in to change notification settings - Fork 17
Add POSIX-safe init, runner fixes, and full contribution guidelines #49
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
We are not really removing the Copyright & License. We are making a clean up. Please ignore this error, we will make a note & update the checker to handle such scenarios. |
… logic - Updated init_env to dynamically resolve the root directory using presence of utils/ and suites/ - Enhanced run-test.sh to be fully POSIX-compliant and standalone-friendly - Ensures both scripts work without requiring a .git repo or fixed working directory - Improved robustness for embedded/CI environments Signed-off-by: Srikanth Muppandam <smuppand@qti.qualcomm.com>
@vnarapar @abbajaj806 The latest patch addresses all review comments. |
- Added POSIX-compliant detection of utils/ directory via SCRIPT_DIR - init_env is now sourced only if present, preventing runtime errors on target - Ensures compatibility with CI, embedded targets, and non-Git environments - Preserved function structure for log and test discovery utilities Signed-off-by: Srikanth Muppandam <smuppand@qti.qualcomm.com>
- Updated all run.sh scripts to dynamically locate testkit root using utils/ and suites/ markers - Replaced hardcoded relative paths with SCRIPT_DIR and ROOT_DIR detection logic - Ensures consistent behavior across local, CI, and target environments - Retains compatibility with functestlib.sh and init_env Signed-off-by: Srikanth Muppandam <smuppand@qti.qualcomm.com>
…llCheck compliance - Moved CONTRIBUTING.md to doc-friendly format - Added sample run.sh pseudocode with .res file requirement - Clarified folder structure and naming conventions - Included ShellCheck enforcement and POSIX shell compatibility - Outlined expectations for CI/CD and result file parsing Signed-off-by: Srikanth Muppandam <smuppand@qti.qualcomm.com>
@abbajaj806 this commit |
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.
Looks Good to Me.
Approved
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.
LGTM
This PR includes several enhancements for maintainability and contributor onboarding:
init_env was updated to prevent duplicate sourcing and repeated log output using __INIT_ENV_LOADED and NO_INIT_LOG
run-test.sh was rewritten for full POSIX compliance and consistent test execution behavior
functestlib.sh and related sourcing paths were aligned and ShellCheck warnings disabled where needed
A new CONTRIBUTING.md file outlines the required folder structure, .res result handling for CI/CD, ShellCheck rules, and test logging standards
These changes help standardize shell-based test contributions and prepare the repo for broader automation and LAVA integration.