Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
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
Original file line number Diff line number Diff line change
@@ -0,0 +1,16 @@
metadata:
name: bt-fw-kmd-service
format: "Lava-Test Test Definition 1.0"
description: "BT_FW_KMD_Service - Bluetooth FW + KMD + service + controller infra validation"
os:
- linux
scope:
- functional

run:
steps:
- REPO_PATH=$PWD
- cd Runner/suites/Connectivity/Bluetooth/BT_FW_KMD_Service/
- ./run.sh || true
- $REPO_PATH/Runner/utils/send-to-lava.sh BT_FW_KMD_Service.res

18 changes: 18 additions & 0 deletions Runner/suites/Connectivity/Bluetooth/BT_ON_OFF/BT_ON_OFF.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,18 @@
metadata:
name: bt-on-off
format: "Lava-Test Test Definition 1.0"
description: "Toggle Bluetooth on/off using qcom-linux-testkit BT_ON_FF"
os:
- linux
scope:
- functional

params:
BT_ADAPTER: ""

run:
steps:
- REPO_PATH=$PWD
- cd Runner/suites/Connectivity/Bluetooth/BT_ON_OFF
- ./run.sh --adapter "${BT_ADAPTER}" || true
- $REPO_PATH/Runner/utils/send-to-lava.sh BT_ON_OFF.res
16 changes: 16 additions & 0 deletions Runner/suites/Connectivity/Bluetooth/BT_SCAN/BT_SCAN.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,16 @@
metadata:
name: bt-scan
format: "Lava-Test Test Definition 1.0"
description: "BT_SCAN – Bluetooth scanning validation (non-expect version)"
os:
- linux
scope:
- functional

run:
steps:
- REPO_PATH=$PWD
- cd Runner/suites/Connectivity/Bluetooth/BT_SCAN/
- ./run.sh || true
- $REPO_PATH/Runner/utils/send-to-lava.sh BT_SCAN.res

Original file line number Diff line number Diff line change
@@ -0,0 +1,27 @@
metadata:
name: bt-scan-pair
format: "Lava-Test Test Definition 1.0"
description: "This test automates Bluetooth scanning, pairing, and post-pair verification (via l2ping) on embedded Linux devices using BlueZ and bluetoothctl."
os:
- linux
scope:
- functional

params:
# Max pairing attempts per device
- PAIR_RETRIES: 3
# Max scan retries per device before pairing
- SCAN_ATTEMPTS: 2
# Overrides direct MAC (same format as CLI argument)
- BT_MAC_ENV: ""
# Overrides device name
- BT_NAME_ENV: ""
# Comma-separated MACs or names allowed for pairing
- BT_WHITELIST_ENV: ""

run:
steps:
- REPO_PATH=$PWD
- cd Runner/suites/Connectivity/Bluetooth/BT_SCAN_PAIR/
- ./run.sh || true
- $REPO_PATH/Runner/utils/send-to-lava.sh BT_SCAN_PAIR.res
22 changes: 22 additions & 0 deletions Runner/suites/Connectivity/Ethernet/Ethernet.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,22 @@
metadata:
name: ethernet
format: "Lava-Test Test Definition 1.0"
description: "This test case validates the basic functionality of the Ethernet interface (`eth0`) on the device. It checks for:
- Interface presence
- Interface status (UP/DOWN)
- Basic connectivity via ping to `8.8.8.8`"
os:
- linux
scope:
- functional

params:
INTERFACE: "eth0"

run:
steps:
- REPO_PATH=$PWD
- cd Runner/suites/Connectivity/Ethernet/
- ./run.sh "${INTERFACE}" || true
- $REPO_PATH/Runner/utils/send-to-lava.sh Ethernet.res

Original file line number Diff line number Diff line change
@@ -0,0 +1,26 @@
metadata:
name: wifi-dynamic-ip
format: "Lava-Test Test Definition 1.0"
description: "This test validates WiFi functionality by:
- Connecting to an access point (AP) using either `nmcli` or `wpa_supplicant`.
- Verifying IP acquisition via DHCP.
- Checking internet connectivity with a `ping` test.
- Handling systemd network service status.
- Supporting flexible SSID/password input via arguments, environment, or file."
os:
- linux
scope:
- functional

params:
SSID: ""
PASSWORD: ""

run:
steps:
- REPO_PATH=$PWD
- cd Runner/suites/Connectivity/WiFi/WiFi_Dynamic_IP
- ./run.sh --ssid "${SSID}" --password "${PASSWORD}" || true
- $REPO_PATH/Runner/utils/send-to-lava.sh WiFi_Dynamic_IP.res

Original file line number Diff line number Diff line change
@@ -0,0 +1,16 @@
metadata:
name: wifi-firmware-driver
format: "Lava-Test Test Definition 1.0"
description: "This test validates WiFi firmware"
os:
- linux
scope:
- functional

run:
steps:
- REPO_PATH=$PWD
- cd Runner/suites/Connectivity/WiFi/WiFi_Firmware_Driver
- ./run.sh || true
- $REPO_PATH/Runner/utils/send-to-lava.sh WiFi_Firmware_Driver.res

23 changes: 23 additions & 0 deletions Runner/suites/Connectivity/WiFi/WiFi_Manual_IP/WiFi_Manual_IP.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,23 @@
metadata:
name: wifi-manual-ip
format: "Lava-Test Test Definition 1.0"
description: "This test validates WiFi functionality by:

- Connecting to an access point (AP) using `wpa_supplicant`.
- Verifying IP acquisition via DHCP."
os:
- linux
scope:
- functional

params:
SSID: ""
PASSWORD: ""

run:
steps:
- REPO_PATH=$PWD
- cd Runner/suites/Connectivity/WiFi/WiFi_Manual_IP
- ./run.sh --ssid "${SSID}" --password "${PASSWORD}" || true
- $REPO_PATH/Runner/utils/send-to-lava.sh WiFi_Manual_IP.res

16 changes: 16 additions & 0 deletions Runner/suites/Connectivity/WiFi/WiFi_OnOff/WiFi_OnOff.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,16 @@
metadata:
name: wifi-onoff
format: "Lava-Test Test Definition 1.0"
description: "This test validates WiFi can be turned ON and OFF"
os:
- linux
scope:
- functional

run:
steps:
- REPO_PATH=$PWD
- cd Runner/suites/Connectivity/WiFi/WiFi_OnOff
- ./run.sh || true
- $REPO_PATH/Runner/utils/send-to-lava.sh WiFi_OnOff.res

16 changes: 16 additions & 0 deletions Runner/suites/Kernel/Baseport/BWMON/BWMON.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,16 @@
metadata:
name: bwmon
format: "Lava-Test Test Definition 1.0"
description: "Test memory bandwidth"
os:
- linux
scope:
- functional

run:
steps:
- REPO_PATH=$PWD
- cd Runner/suites/Kernel/Baseport/BWMON
- ./run.sh || true
- $REPO_PATH/Runner/utils/send-to-lava.sh BWMON.res

16 changes: 16 additions & 0 deletions Runner/suites/Kernel/Baseport/Buses/Buses.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,16 @@
metadata:
name: buses
format: "Lava-Test Test Definition 1.0"
description: "Test I2C busses"
os:
- linux
scope:
- functional

run:
steps:
- REPO_PATH=$PWD
- cd Runner/suites/Kernel/Baseport/Buses
- ./run.sh || true
- $REPO_PATH/Runner/utils/send-to-lava.sh Buses.res

Original file line number Diff line number Diff line change
@@ -0,0 +1,17 @@
metadata:
name: cpufreq-validation
format: "Lava-Test Test Definition 1.0"
description: "The test validates the CPU frequency scaling capabilities of a system using the Linux `cpufreq` subsystem. It verifies the ability to set and reflect CPU frequencies across shared policy domains (e.g., clusters of CPUs sharing frequency control)."
os:
- linux
scope:
- functional

run:
steps:
- REPO_PATH=$PWD
- cd Runner/suites/Kernel/Baseport/CPUFreq_Validation
- ./run.sh || true
- pwd
- ls -l
- $REPO_PATH/Runner/utils/send-to-lava.sh CPUFreq_Validation.res
18 changes: 18 additions & 0 deletions Runner/suites/Kernel/Baseport/GIC/GIC.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,18 @@
metadata:
format: Lava-Test Test Definition 1.0
name: gic
description: "Test GIC basic features"
maintainer:
- vnarapar@qti.qualcomm.com
os:
- openembedded
scope:
- functional
devices:
- rb3gen2

run:
steps:
- cd Runner
- $PWD/suites/Kernel/Baseport/GIC/run.sh || true
- $PWD/utils/send-to-lava.sh $PWD/suites/Kernel/Baseport/GIC/GIC.res || true
16 changes: 16 additions & 0 deletions Runner/suites/Kernel/Baseport/IPA/IPA.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,16 @@
metadata:
name: ipa
format: "Lava-Test Test Definition 1.0"
description: "Test basic IPA features"
os:
- linux
scope:
- functional

run:
steps:
- REPO_PATH=$PWD
- cd Runner/suites/Kernel/Baseport/IPA
- ./run.sh || true
- $REPO_PATH/Runner/utils/send-to-lava.sh IPA.res || true

6 changes: 4 additions & 2 deletions Runner/suites/Kernel/Baseport/IPA/run.sh
Original file line number Diff line number Diff line change
Expand Up @@ -42,6 +42,7 @@ log_info "=== Test Initialization ==="
# Kernel config gate
if ! check_kernel_config "CONFIG_QCOM_IPA"; then
log_skip "$TESTNAME SKIP - CONFIG_QCOM_IPA not enabled"
log_info "Writing to file $RES_FILE"
echo "$TESTNAME SKIP" >"$RES_FILE"
exit 0
fi
Expand All @@ -55,8 +56,8 @@ if is_module_loaded "$MODNAME"; then
log_info "Module $MODNAME already loaded"
else
MODPATH=$(find_kernel_module "$MODNAME")
[ -n "$MODPATH" ] || log_fail "$MODNAME.ko not found in filesystem"
load_kernel_module "$MODPATH" || log_fail "Failed to load $MODNAME"
[ -n "$MODPATH" ] || (log_fail "$MODNAME.ko not found in filesystem"; echo "$TESTNAME FAIL" >"$RES_FILE")
load_kernel_module "$MODPATH" || (log_fail "Failed to load $MODNAME"; echo "$TESTNAME FAIL" >"$RES_FILE")
Copy link
Contributor

Choose a reason for hiding this comment

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

possible for us to keep multiple lines?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

do you mean to reformat subshell?

log_pass "$MODNAME module loaded"
fi

Expand Down Expand Up @@ -89,5 +90,6 @@ fi

log_info "-------------------Completed $TESTNAME Testcase----------------------------"
log_pass "$TESTNAME PASS"
log_info "Writing to file $RES_FILE"
echo "$TESTNAME PASS" >"$RES_FILE"
exit 0
16 changes: 16 additions & 0 deletions Runner/suites/Kernel/Baseport/IPCC/IPCC.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,16 @@
metadata:
name: ipcc
format: "Lava-Test Test Definition 1.0"
description: "Test basic IPCC features"
os:
- linux
scope:
- functional

run:
steps:
- REPO_PATH=$PWD
- cd Runner/suites/Kernel/Baseport/IPCC
- ./run.sh || true
- $REPO_PATH/Runner/utils/send-to-lava.sh IPCC.res || true

2 changes: 2 additions & 0 deletions Runner/suites/Kernel/Baseport/IPCC/run.sh
Original file line number Diff line number Diff line change
Expand Up @@ -45,10 +45,12 @@ count=$(echo "$output" | grep -c "running")

if [ $count -eq 4 ]; then
log_pass "$TESTNAME : Test Passed"
log_info "Writing to file $res_file"
echo "$TESTNAME PASS" > "$res_file"
exit 0
else
log_fail "$TESTNAME : Test Failed"
log_info "Writing to file $res_file"
echo "$TESTNAME FAIL" > "$res_file"
exit 1
fi
Expand Down
18 changes: 18 additions & 0 deletions Runner/suites/Kernel/Baseport/Interrupts/Interrupts.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,18 @@
metadata:
format: Lava-Test Test Definition 1.0
name: interrupts
description: "Test basic CPU interrupts features"
maintainer:
- vnarapar@qti.qualcomm.com
os:
- openembedded
scope:
- functional
devices:
- rb3gen2

run:
steps:
- cd Runner
- $PWD/suites/Kernel/Baseport/Interrupts/run.sh || true
- $PWD/utils/send-to-lava.sh $PWD/suites/Kernel/Baseport/Interrupts/Interrupts.res || true
15 changes: 15 additions & 0 deletions Runner/suites/Kernel/Baseport/MEMLAT/MEMLAT.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@
metadata:
name: memlat
format: "Lava-Test Test Definition 1.0"
description: "Test memory latency"
os:
- linux
scope:
- functional

run:
steps:
- REPO_PATH=$PWD
- cd Runner/suites/Kernel/Baseport/MEMLAT
- ./run.sh || true
- $REPO_PATH/Runner/utils/send-to-lava.sh MEMLAT.res || true
16 changes: 16 additions & 0 deletions Runner/suites/Kernel/Baseport/PCIe/PCIe.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,16 @@
metadata:
name: pcio
format: "Lava-Test Test Definition 1.0"
description: "Test basic PCIe features"
os:
- linux
scope:
- functional

run:
steps:
- REPO_PATH=$PWD
- cd Runner/suites/Kernel/Baseport/PCIe
- ./run.sh || true
- $REPO_PATH/Runner/utils/send-to-lava.sh PCIe.res || true

Loading
Loading