Skip to content

Commit c3eb081

Browse files
committed
debug
1 parent 591e33f commit c3eb081

File tree

1 file changed

+33
-7
lines changed

1 file changed

+33
-7
lines changed

.ci/scripts/test_wheel_package_qnn.sh

Lines changed: 33 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -12,14 +12,40 @@ echo "Found wheel: $WHEEL_FILE"
1212
echo "=== Checking for expected .so files ==="
1313
SO_FILES=$(unzip -l "$WHEEL_FILE" | grep "\.so" | grep "qualcomm")
1414

15-
# Check for the three expected .so files
16-
if echo "$SO_FILES" | grep -q "executorch/backends/qualcomm/qnn_backend.cpython-310-x86_64-linux-gnu.so" && \
17-
echo "$SO_FILES" | grep -q "executorch/backends/qualcomm/python/PyQnnManagerAdaptor.cpython-310-x86_64-linux-gnu.so" && \
18-
echo "$SO_FILES" | grep -q "executorch/backends/qualcomm/python/PyQnnWrapperAdaptor.cpython-310-x86_64-linux-gnu.so"; then
19-
echo "All expected .so files found in wheel"
20-
else
21-
echo "ERROR: Missing expected .so files"
15+
echo "=== Checking for expected .so files ==="
16+
echo "Listing all .so files in the wheel:"
17+
unzip -l "$WHEEL_FILE" | grep "\.so" || echo "No .so files found in the wheel!"
18+
19+
# List all .so files with full paths
20+
ALL_SO_FILES=$(unzip -l "$WHEEL_FILE" | awk '{print $4}' | grep "\.so")
21+
22+
echo "All .so files in wheel:"
23+
echo "$ALL_SO_FILES"
24+
25+
# Define expected .so files
26+
EXPECTED_SO_FILES=(
27+
"executorch/backends/qualcomm/qnn_backend.cpython-310-x86_64-linux-gnu.so"
28+
"executorch/backends/qualcomm/python/PyQnnManagerAdaptor.cpython-310-x86_64-linux-gnu.so"
29+
"executorch/backends/qualcomm/python/PyQnnWrapperAdaptor.cpython-310-x86_64-linux-gnu.so"
30+
)
31+
32+
MISSING=false
33+
for file in "${EXPECTED_SO_FILES[@]}"; do
34+
if echo "$ALL_SO_FILES" | grep -q "$file"; then
35+
echo "Found expected .so file: $file"
36+
else
37+
echo "ERROR: Missing expected .so file: $file"
38+
MISSING=true
39+
fi
40+
done
41+
42+
if [ "$MISSING" = true ]; then
43+
echo "==== .so file check failed ===="
44+
echo "Wheel contents for debugging:"
45+
unzip -l "$WHEEL_FILE"
2246
exit 1
47+
else
48+
echo "All expected .so files found in wheel ✅"
2349
fi
2450

2551
# Create a temporary directory for our test environment

0 commit comments

Comments
 (0)