Skip to content

Conversation

qcom-anilyada
Copy link
Contributor

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 [email protected]

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 <[email protected]>
@vnarapar vnarapar requested review from smuppand and vnarapar October 14, 2025 04:54
@vnarapar
Copy link
Contributor

Please ensure that script has required execute permissions

# shellcheck disable=SC1090,SC1091
. "$TOOLS/functestlib.sh"

TESTNAME="fastCV"
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

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
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

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
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Please use available functions

ensure_rootfs_min_size() {

# Step 2: Set permissions
log_info "Setting permissions for OpenCV binaries..."
chmod 777 /usr/bin/FastCV/opencv
chmod 777 /usr/bin/opencv*
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

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
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

How do you determine if any ipk failed to install?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants