Add FastCV OpenCV SFM validation test script#196
Add FastCV OpenCV SFM validation test script#196qcom-anilyada wants to merge 1 commit intoqualcomm-linux:mainfrom
Conversation
This script performs rootfs resizing, sets permissions for OpenCV binaries, installs required IPK packages, and runs the OpenCV SFM test suite with performance parameters. It validates the output to ensure all 19 tests pass. Signed-off-by: Anil Yadav <anilyada@qti.qualcomm.com>
|
Please ensure that script has required execute permissions |
| # shellcheck disable=SC1090,SC1091 | ||
| . "$TOOLS/functestlib.sh" | ||
|
|
||
| TESTNAME="fastCV" |
There was a problem hiding this comment.
Change to FastCV as dir structure is different
|
|
||
| # Step 3: Install IPK packages | ||
| log_info "Installing IPK packages from /usr/bin/FastCV/opencv..." | ||
| cd /usr/bin/FastCV/opencv || exit 1 |
There was a problem hiding this comment.
Please add some debug logs before exit so that it will be easy for debugging
|
|
||
| # Step 1: Resize rootfs | ||
| log_info "Resizing rootfs partition..." | ||
| resize2fs /dev/disk/by-partlabel/rootfs |
There was a problem hiding this comment.
Please use available functions
qcom-linux-testkit/Runner/utils/functestlib.sh
Line 3399 in 59365c8
| # Step 2: Set permissions | ||
| log_info "Setting permissions for OpenCV binaries..." | ||
| chmod 777 /usr/bin/FastCV/opencv | ||
| chmod 777 /usr/bin/opencv* |
There was a problem hiding this comment.
It would be better to review the current execute permissions first, rather than immediately assigning 777 without checking.
| # Step 3: Install IPK packages | ||
| log_info "Installing IPK packages from /usr/bin/FastCV/opencv..." | ||
| cd /usr/bin/FastCV/opencv || exit 1 | ||
| opkg install *.ipk |
There was a problem hiding this comment.
How do you determine if any ipk failed to install?
|
@qcom-anilyada , it looks like there is already a PR #37 merged to enable OpenCV. Is this PR a duplicate? Please check and close it if they are the same. |
|
Duplicate PR, Link <-- PR already merged |
Add FastCV OpenCV SFM validation test script
This script performs rootfs resizing, sets permissions for OpenCV binaries,
installs required IPK packages, and runs the OpenCV SFM test suite with
performance parameters. It validates the output to ensure all 19 tests pass.
Signed-off-by: Anil Yadav anilyada@qti.qualcomm.com