Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
25 commits
Select commit Hold shift + click to select a range
d32486e
SuspendResume validation test
nitinn22 Feb 5, 2026
120e179
Move SuspendResume suite to host-tools/SuspendResume
nitinn22 Feb 6, 2026
1473264
Modified readme and yaml files based on new path
nitinn22 Feb 6, 2026
44270f5
fix: Set executable permission on SuspendResume/run.sh for LAVA
nitinn22 Feb 9, 2026
7752308
Added init_env file for host-tools folder, run-test.sh file for runni…
nitinn22 Feb 10, 2026
11112f6
Add executable permissions to host-tools scripts
nitinn22 Feb 10, 2026
f17b11b
Update suspend/resume scripts, init env, and add utils similar like r…
nitinn22 Feb 11, 2026
707ace1
Modified init_env to point to runner utils path and functestlib.sh is…
nitinn22 Feb 12, 2026
72b093a
Remove host-tools/utils/functestlib.sh sym link file as license check…
nitinn22 Feb 12, 2026
102a91b
Added changes in functestlib.sh to make host-tools run-test.sh works …
nitinn22 Feb 13, 2026
eb2fb81
Revert "Added changes in functestlib.sh to make host-tools run-test.s…
nitinn22 Feb 13, 2026
ca6e224
Minor fix for h264/h265 Encoder
vnarapar Feb 12, 2026
e21131f
chore(license): switch SPDX identifier to BSD-3-Clause
smuppand Feb 15, 2026
d648755
fix(remoteproc): make ADSP SSR optional and harden CLI parsing
smuppand Feb 17, 2026
5065c84
fix(cdsp_remoteproc): gate SSR behind --ssr and log wait timeouts/pol…
smuppand Feb 17, 2026
0b553e2
(gpdsp_remoteproc): make SSR optional and add CLI tunables
smuppand Feb 17, 2026
feb0b99
(wpss_remoteproc): make SSR optional and add CLI tunables
smuppand Feb 17, 2026
b949dae
fix(BT_ON_OFF): avoid false SKIP by polling bluetoothctl controller v…
smuppand Feb 19, 2026
198c16e
BT_ON_OFF: use btloghcidiag and robust btgetpower interactive parsing
smuppand Feb 19, 2026
5f20c7b
BT_FW_KMD_Service: use btctl_script for controller list diagnostics
smuppand Feb 19, 2026
2e7a85d
fix(bt_scan): fall back to btctl_script for device listing when bluet…
smuppand Feb 19, 2026
df5322a
chore: update reusable workflow reference from v1.1.4 to v2
smuppand Feb 20, 2026
e857ddc
Removing Invalid secret, SEMGREP_APP_TOKEN is not defined in the refe…
smuppand Feb 21, 2026
06b39f5
Added shell based reboot for device to detect adb after renesas fw flash
nitinn22 Feb 22, 2026
d64bb44
Added adb server restart and made ADB wait logic robust across reboot…
nitinn22 Feb 22, 2026
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
19 changes: 9 additions & 10 deletions .github/workflows/qcom-preflight-checks.yml
Original file line number Diff line number Diff line change
Expand Up @@ -11,14 +11,13 @@ permissions:
security-events: write

jobs:
qcom-preflight-checks:
uses: qualcomm/qcom-reusable-workflows/.github/workflows/qcom-preflight-checks-reusable-workflow.yml@v1.1.4
preflight:
name: Run QC Preflight Checks
uses: qualcomm/qcom-reusable-workflows/.github/workflows/reusable-qcom-preflight-checks-orchestrator.yml@v2
with:
# ✅ Preflight Checkers
repolinter: true # default: true
semgrep: true # default: true
copyright-license-detector: true # default: true
pr-check-emails: true # default: true
dependency-review: true # default: true
secrets:
SEMGREP_APP_TOKEN: ${{ secrets.SEMGREP_APP_TOKEN }}
enable-semgrep-scan: true
enable-dependency-review: true
enable-repolinter-check: true
enable-copyright-license-check: true
enable-commit-email-check: true
enable-commit-msg-check: false
9 changes: 3 additions & 6 deletions CONTRIBUTING.md
Original file line number Diff line number Diff line change
@@ -1,6 +1,5 @@
# Copyright (c) Qualcomm Technologies, Inc. and/or its subsidiaries.
# SPDX-License-Identifier: BSD-3-Clause-Clear

# SPDX-License-Identifier: BSD-3-Clause
# 🛠️ Contributing to qcom-linux-testkit

Thank you for considering contributing to the **qcom-linux-testkit** project! Your contributions help improve the quality and functionality of our test suite. Please follow the guidelines below to ensure a smooth contribution process.
Expand Down Expand Up @@ -78,8 +77,7 @@ Runner/

```sh
#!/bin/sh
# SPDX-License-Identifier: BSD-3-Clause-Clear

# SPDX-License-Identifier: BSD-3-Clause
#Source init_env and functestlib.sh
SCRIPT_DIR="$(cd "$(dirname "$0")" && pwd)"
INIT_ENV=""
Expand Down Expand Up @@ -160,8 +158,7 @@ Ensure that all new files include the appropriate license header:

```sh
#!/bin/sh
# SPDX-License-Identifier: BSD-3-Clause-Clear
```
# SPDX-License-Identifier: BSD-3-Clause```

---

Expand Down
2 changes: 1 addition & 1 deletion LICENSE
Original file line number Diff line number Diff line change
@@ -1,3 +1,3 @@
Copyright (c) Qualcomm Technologies, Inc. and/or its subsidiaries.

SPDX-License-Identifier: BSD-3-Clause-Clear
SPDX-License-Identifier: BSD-3-Clause
3 changes: 1 addition & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -111,5 +111,4 @@ These tests can be used as CI jobs in:

```
Copyright (c) Qualcomm Technologies, Inc. and/or its subsidiaries.
SPDX-License-Identifier: BSD-3-Clause-Clear
```
SPDX-License-Identifier: BSD-3-Clause```
3 changes: 1 addition & 2 deletions Runner/init_env
Original file line number Diff line number Diff line change
@@ -1,8 +1,7 @@
#!/bin/sh

# Copyright (c) Qualcomm Technologies, Inc. and/or its subsidiaries.
# SPDX-License-Identifier: BSD-3-Clause-Clear

# SPDX-License-Identifier: BSD-3-Clause
# Idempotency guard: only initialize ONCE per shell session
[ -n "$__INIT_ENV_LOADED" ] && return
__INIT_ENV_LOADED=1
Expand Down
3 changes: 1 addition & 2 deletions Runner/run-test.sh
Original file line number Diff line number Diff line change
@@ -1,8 +1,7 @@
#!/bin/sh

# Copyright (c) Qualcomm Technologies, Inc. and/or its subsidiaries.
# SPDX-License-Identifier: BSD-3-Clause-Clear

# SPDX-License-Identifier: BSD-3-Clause
# Resolve the real path of this script
SCRIPT_DIR="$(cd "$(dirname "$0")" && pwd)"

Expand Down
16 changes: 13 additions & 3 deletions Runner/suites/Connectivity/Bluetooth/BT_FW_KMD_Service/run.sh
Original file line number Diff line number Diff line change
@@ -1,7 +1,6 @@
#!/bin/sh
# Copyright (c) Qualcomm Technologies, Inc. and/or its subsidiaries.
# SPDX-License-Identifier: BSD-3-Clause-Clear
#
# SPDX-License-Identifier: BSD-3-Clause#
# BT_FW_KMD_Service - Bluetooth FW + KMD + service + controller infra validation
# Non-expect version, using lib_bluetooth.sh helpers.

Expand Down Expand Up @@ -210,7 +209,18 @@ else
fi

log_info "=== bluetoothctl list (controllers) ==="
bluetoothctl list 2>/dev/null || true

out="$(bluetoothctl list 2>/dev/null | sanitize_bt_output || true)"
if printf '%s\n' "$out" | grep -qi '^[[:space:]]*Controller[[:space:]]'; then
# Non-interactive worked print what we got
printf '%s\n' "$out"
else
# Non-interactive printed no controllers → retry using interactive method
log_warn "bluetoothctl list returned no controllers in non-interactive mode, retrying interactive list."

log_info "=== bluetoothctl list (controllers) ==="
btctl_script "list" "quit" | sanitize_bt_output || true
fi

log_info "=== lsmod (subset: BT stack) ==="
lsmod 2>/dev/null | grep -E '^(bluetooth|hci_uart|btqca|btbcm|rfkill|cfg80211)\b' || true
Expand Down
13 changes: 10 additions & 3 deletions Runner/suites/Connectivity/Bluetooth/BT_ON_OFF/run.sh
Original file line number Diff line number Diff line change
@@ -1,7 +1,6 @@
#!/bin/sh
# Copyright (c) Qualcomm Technologies, Inc. and/or its subsidiaries.
# SPDX-License-Identifier: BSD-3-Clause-Clear
# BT_ON_OFF - Basic Bluetooth power toggle validation (non-expect version)
# SPDX-License-Identifier: BSD-3-Clause# BT_ON_OFF - Basic Bluetooth power toggle validation (non-expect version)

# Robustly find and source init_env
SCRIPT_DIR="$(
Expand Down Expand Up @@ -103,7 +102,7 @@ elif findhcisysfs >/dev/null 2>&1; then
else
ADAPTER=""
fi

if [ -n "$ADAPTER" ]; then
log_info "Using adapter: $ADAPTER"
else
Expand All @@ -112,8 +111,13 @@ else
exit 0
fi

# --- NEW: warn/diag if non-interactive "bluetoothctl list" is empty (non-fatal) ---
btwarniflistempty "$ADAPTER" || true

# Ensure controller is visible to bluetoothctl (try public-addr if needed)
if ! bt_ensure_controller_visible "$ADAPTER"; then
# --- NEW: print diagnostics before skipping ---
btloghcidiag "$ADAPTER"
log_warn "SKIP — no controller visible to bluetoothctl (HCI RAW/DOWN or attach incomplete)."
echo "$TESTNAME SKIP" > "$res_file"
exit 0
Expand Down Expand Up @@ -155,6 +159,9 @@ after_on="$(btgetpower "$ADAPTER" 2>/dev/null || true)"
[ -z "$after_on" ] && after_on="unknown"

if [ "$after_on" = "yes" ]; then
# --- NEW: post-check (covers your "list is empty after run" symptom) ---
btwarniflistempty "$ADAPTER" || true

log_pass "Post-ON verification: Powered=yes (as expected)."
echo "$TESTNAME PASS" > "$res_file"
exit 0
Expand Down
46 changes: 19 additions & 27 deletions Runner/suites/Connectivity/Bluetooth/BT_SCAN/run.sh
Original file line number Diff line number Diff line change
@@ -1,7 +1,8 @@
#!/bin/sh
# Copyright (c) Qualcomm Technologies, Inc. and/or its subsidiaries.
# SPDX-License-Identifier: BSD-3-Clause-Clear
# SPDX-License-Identifier: BSD-3-Clause#
# BT_SCAN – Bluetooth scanning validation (non-expect version)

# ---------- Repo env + helpers ----------
SCRIPT_DIR="$(
cd "$(dirname "$0")" || exit 1
Expand Down Expand Up @@ -69,9 +70,12 @@ rm -f "$res_file"

log_info "------------------------------------------------------------"
log_info "Starting $TESTNAME Testcase"
log_info "Checking dependency: bluetoothctl"
log_info "Checking dependencies: bluetoothctl pgrep"

check_dependencies bluetoothctl pgrep
if ! check_dependencies bluetoothctl pgrep; then
echo "$TESTNAME SKIP" > "$res_file"
exit 0
fi

# -----------------------------
# 1. Ensure bluetoothd is running
Expand Down Expand Up @@ -168,10 +172,12 @@ log_info "Discovering state after scan ON window: $dstate_on"

# -----------------------------
# 7. Get devices list after scan ON
# - Try non-interactive bluetoothctl first
# - If empty/flaky, fallback to btctl_script "devices" "quit"
# -----------------------------
devices_out="$(
bluetoothctl devices 2>/dev/null \
| sanitize_bt_output
bt_list_devices_raw 2>/dev/null \
| grep '^Device ' || true
)"

if [ -n "$TARGET_MAC" ]; then
Expand Down Expand Up @@ -205,31 +211,17 @@ fi
# -----------------------------
log_info "Testing scan OFF..."
if ! bt_set_scan off "$ADAPTER"; then
log_warn "bt_set_scan(off) returned non-zero continuing with Discovering check."
# bt_set_scan(off) can be flaky on minimal images; rely on poll helper
log_warn "bt_set_scan(off) returned non-zero; continuing with scan-off polling."
fi

SCAN_OFF_OK=0
ITER=10
i=1
while [ "$i" -le "$ITER" ]; do
dstate_off="$(bt_get_discovering 2>/dev/null || true)"
[ -z "$dstate_off" ] && dstate_off="unknown"

log_info "Discovering state during scan OFF wait (iteration $i/$ITER): $dstate_off"

if [ "$dstate_off" = "no" ]; then
SCAN_OFF_OK=1
break
fi

sleep 2
i=$((i + 1))
done

if [ "$SCAN_OFF_OK" -eq 1 ]; then
log_pass "Discovering=no observed after scan OFF polling."
# Use lib helper to avoid repetitive log spam and handle 'unknown' cleanly.
if bt_scan_poll_off 10 1; then
# On minimal/ramdisk images bt_scan_poll_off may treat persistent 'unknown' as non-fatal.
log_pass "Scan OFF cleanup completed."
else
log_warn "Discovering did not transition to 'no' after scan OFF window."
# If you keep bt_scan_poll_off strict, this may still warn; not a test failure.
log_warn "Scan OFF cleanup did not confirm Discovering=no (non-fatal)."
fi

echo "$TESTNAME PASS" > "$res_file"
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -121,5 +121,4 @@ When a whitelist is specified (CLI or `BT_WHITELIST_ENV`), only devices whose MA

## License

SPDX-License-Identifier: BSD-3-Clause-Clear
© Qualcomm Technologies, Inc. and/or its subsidiaries.
SPDX-License-Identifier: BSD-3-Clause© Qualcomm Technologies, Inc. and/or its subsidiaries.
3 changes: 1 addition & 2 deletions Runner/suites/Connectivity/Bluetooth/BT_SCAN_PAIR/run.sh
Original file line number Diff line number Diff line change
@@ -1,8 +1,7 @@
#!/bin/sh

# Copyright (c) Qualcomm Technologies, Inc. and/or its subsidiaries.
# SPDX-License-Identifier: BSD-3-Clause-Clear

# SPDX-License-Identifier: BSD-3-Clause
# Robustly find and source init_env
SCRIPT_DIR="$(cd "$(dirname "$0")" && pwd)"
INIT_ENV=""
Expand Down
3 changes: 1 addition & 2 deletions Runner/suites/Connectivity/Ethernet/README.md
Original file line number Diff line number Diff line change
@@ -1,6 +1,5 @@
Copyright (c) Qualcomm Technologies, Inc. and/or its subsidiaries.
SPDX-License-Identifier: BSD-3-Clause-Clear

SPDX-License-Identifier: BSD-3-Clause
# Ethernet Validation Test

## Overview
Expand Down
3 changes: 1 addition & 2 deletions Runner/suites/Connectivity/Ethernet/run.sh
Original file line number Diff line number Diff line change
@@ -1,7 +1,6 @@
#!/bin/sh
# Copyright (c) Qualcomm Technologies, Inc. and/or its subsidiaries.
# SPDX-License-Identifier: BSD-3-Clause-Clear

# SPDX-License-Identifier: BSD-3-Clause
# Robustly find and source init_env
SCRIPT_DIR="$(cd "$(dirname "$0")" && pwd)"
INIT_ENV=""
Expand Down
Original file line number Diff line number Diff line change
@@ -1,6 +1,5 @@
Copyright (c) Qualcomm Technologies, Inc. and/or its subsidiaries.
SPDX-License-Identifier: BSD-3-Clause-Clear

SPDX-License-Identifier: BSD-3-Clause
# WiFi Connectivity Validation

## 📋 Overview
Expand Down
3 changes: 1 addition & 2 deletions Runner/suites/Connectivity/WiFi/WiFi_Dynamic_IP/run.sh
Original file line number Diff line number Diff line change
@@ -1,7 +1,6 @@
#!/bin/sh
# Copyright (c) Qualcomm Technologies, Inc. and/or its subsidiaries.
# SPDX-License-Identifier: BSD-3-Clause-Clear

# SPDX-License-Identifier: BSD-3-Clause
# Robustly find and source init_env
SCRIPT_DIR="$(cd "$(dirname "$0")" && pwd)"
INIT_ENV=""
Expand Down
3 changes: 1 addition & 2 deletions Runner/suites/Connectivity/WiFi/WiFi_Firmware_Driver/run.sh
Original file line number Diff line number Diff line change
@@ -1,8 +1,7 @@
#!/bin/sh

# Copyright (c) Qualcomm Technologies, Inc. and/or its subsidiaries.
# SPDX-License-Identifier: BSD-3-Clause-Clear

# SPDX-License-Identifier: BSD-3-Clause
# Robustly find and source init_env
SCRIPT_DIR="$(cd "$(dirname "$0")" && pwd)"
INIT_ENV=""
Expand Down
3 changes: 1 addition & 2 deletions Runner/suites/Connectivity/WiFi/WiFi_Manual_IP/run.sh
Original file line number Diff line number Diff line change
@@ -1,7 +1,6 @@
#!/bin/sh
# Copyright (c) Qualcomm Technologies, Inc. and/or its subsidiaries.
# SPDX-License-Identifier: BSD-3-Clause-Clear

# SPDX-License-Identifier: BSD-3-Clause
# Robustly find and source init_env
SCRIPT_DIR="$(cd "$(dirname "$0")" && pwd)"
INIT_ENV=""
Expand Down
3 changes: 1 addition & 2 deletions Runner/suites/Connectivity/WiFi/WiFi_OnOff/run.sh
Original file line number Diff line number Diff line change
@@ -1,7 +1,6 @@
#!/bin/sh
# Copyright (c) Qualcomm Technologies, Inc. and/or its subsidiaries.
# SPDX-License-Identifier: BSD-3-Clause-Clear

# SPDX-License-Identifier: BSD-3-Clause
# Robustly find and source init_env
SCRIPT_DIR="$(cd "$(dirname "$0")" && pwd)"
INIT_ENV=""
Expand Down
3 changes: 1 addition & 2 deletions Runner/suites/Kernel/Baseport/BWMON/run.sh
Original file line number Diff line number Diff line change
@@ -1,8 +1,7 @@
#!/bin/sh

# Copyright (c) Qualcomm Technologies, Inc. and/or its subsidiaries.
# SPDX-License-Identifier: BSD-3-Clause-Clear

# SPDX-License-Identifier: BSD-3-Clause
# Robustly find and source init_env
SCRIPT_DIR="$(cd "$(dirname "$0")" && pwd)"
INIT_ENV=""
Expand Down
3 changes: 1 addition & 2 deletions Runner/suites/Kernel/Baseport/Buses/run.sh
Original file line number Diff line number Diff line change
@@ -1,8 +1,7 @@
#!/bin/sh

# Copyright (c) Qualcomm Technologies, Inc. and/or its subsidiaries.
# SPDX-License-Identifier: BSD-3-Clause-Clear
# Robustly find and source init_env
# SPDX-License-Identifier: BSD-3-Clause# Robustly find and source init_env
SCRIPT_DIR="$(cd "$(dirname "$0")" && pwd)"
INIT_ENV=""
SEARCH="$SCRIPT_DIR"
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -67,6 +67,5 @@ Runner/suites/Kernel/FunctionalArea/baseport/CPUFreq_Validation/run.sh

## License

SPDX-License-Identifier: BSD-3-Clause-Clear
(c) Qualcomm Technologies, Inc. and/or its subsidiaries.
SPDX-License-Identifier: BSD-3-Clause(c) Qualcomm Technologies, Inc. and/or its subsidiaries.

3 changes: 1 addition & 2 deletions Runner/suites/Kernel/Baseport/CPUFreq_Validation/run.sh
Original file line number Diff line number Diff line change
@@ -1,8 +1,7 @@
#!/bin/sh

# Copyright (c) Qualcomm Technologies, Inc. and/or its subsidiaries.
# SPDX-License-Identifier: BSD-3-Clause-Clear

# SPDX-License-Identifier: BSD-3-Clause
# Robustly find and source init_env
SCRIPT_DIR="$(cd "$(dirname "$0")" && pwd)"
INIT_ENV=""
Expand Down
3 changes: 1 addition & 2 deletions Runner/suites/Kernel/Baseport/GIC/run.sh
Original file line number Diff line number Diff line change
@@ -1,8 +1,7 @@
#!/bin/sh

# Copyright (c) Qualcomm Technologies, Inc. and/or its subsidiaries.
# SPDX-License-Identifier: BSD-3-Clause-Clear

# SPDX-License-Identifier: BSD-3-Clause
# Robustly find and source init_env
SCRIPT_DIR="$(cd "$(dirname "$0")" && pwd)"
INIT_ENV=""
Expand Down
3 changes: 1 addition & 2 deletions Runner/suites/Kernel/Baseport/IPA/run.sh
Original file line number Diff line number Diff line change
@@ -1,8 +1,7 @@
#!/bin/sh

# Copyright (c) Qualcomm Technologies, Inc. and/or its subsidiaries.
# SPDX-License-Identifier: BSD-3-Clause-Clear
#
# SPDX-License-Identifier: BSD-3-Clause#
# Test for IPA driver: skip if CONFIG_QCOM_IPA not enabled, then
# builtin vs module, verify /dev/ipa, functional sysfs & dmesg checks.

Expand Down
3 changes: 1 addition & 2 deletions Runner/suites/Kernel/Baseport/IPCC/run.sh
Original file line number Diff line number Diff line change
@@ -1,8 +1,7 @@
#!/bin/sh

# Copyright (c) Qualcomm Technologies, Inc. and/or its subsidiaries.
# SPDX-License-Identifier: BSD-3-Clause-Clear

# SPDX-License-Identifier: BSD-3-Clause
# Robustly find and source init_env
SCRIPT_DIR="$(cd "$(dirname "$0")" && pwd)"
INIT_ENV=""
Expand Down
3 changes: 1 addition & 2 deletions Runner/suites/Kernel/Baseport/Interrupts/run.sh
Original file line number Diff line number Diff line change
@@ -1,8 +1,7 @@
#!/bin/sh

# Copyright (c) Qualcomm Technologies, Inc. and/or its subsidiaries.
# SPDX-License-Identifier: BSD-3-Clause-Clear

# SPDX-License-Identifier: BSD-3-Clause
# Robustly find and source init_env
SCRIPT_DIR="$(cd "$(dirname "$0")" && pwd)"
INIT_ENV=""
Expand Down
3 changes: 1 addition & 2 deletions Runner/suites/Kernel/Baseport/Kernel_Selftests/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -90,5 +90,4 @@ or from a higher-level testkit runner:

## License

SPDX-License-Identifier: BSD-3-Clause-Clear
Copyright (c) Qualcomm Technologies, Inc. and/or its subsidiaries.
SPDX-License-Identifier: BSD-3-ClauseCopyright (c) Qualcomm Technologies, Inc. and/or its subsidiaries.
Loading