Skip to content

Commit

Permalink
test_lava_test_plans: add tests lkft-android tuxsuite support
Browse files Browse the repository at this point in the history
to test the devices and testcases with postprocess steps.

Tested with the following command:
    pytest -v test/test_lava_test_plans.py::test_call_lava_test_plan_testcase_lkft_android

Signed-off-by: Yongqin Liu <yongqin.liu@linaro.org>
  • Loading branch information
liuyq authored and roxell committed Mar 31, 2023
1 parent d2460d1 commit 953a73e
Show file tree
Hide file tree
Showing 2 changed files with 34 additions and 2 deletions.
9 changes: 7 additions & 2 deletions test/test_lava_test_plans.py
Original file line number Diff line number Diff line change
Expand Up @@ -129,11 +129,16 @@ def test_call_lava_test_plan_testplans_ti(param):
assert len(lkft_android_devices) > 0
lkft_android_testcases = [ "boot.yaml" ]
assert len(lkft_android_testcases) > 0
lkft_android_variable_input_file = "lava_test_plans/projects/lkft-android/variables.ini"
lkft_android_variable_input_files = [
"lava_test_plans/projects/lkft-android/variables.ini",
"test/variables-lkft-android-tuxsuite.ini",
]
assert len(lkft_android_testcases) > 0
tests = []
for device in lkft_android_devices:
for testcase in lkft_android_testcases:
tests.append((lkft_android_variable_input_file, device, testcase, lkft_android_project_device_path))
for variable_input_file in lkft_android_variable_input_files:
tests.append((variable_input_file, device, testcase, lkft_android_project_device_path))

@pytest.mark.parametrize("param", tests)
def test_call_lava_test_plan_testcase_lkft_android(param):
Expand Down
27 changes: 27 additions & 0 deletions test/variables-lkft-android-tuxsuite.ini
Original file line number Diff line number Diff line change
@@ -0,0 +1,27 @@
REFERENCE_BUILD_URL="reference-build-url"
ANDROID_VERSION="android-version"
KERNEL_BRANCH="kernel-branch"
KERNEL_REPO="kernel-repo-url"
#
BUILD_URL="build-url"
BUILD_NUMBER="build-number"
JOB_NAME="job-name"
#
LKFT_BUILD_CONFIG="lkft-android-build-config"
KERNEL_COMMIT="kernel-commit"
KERNEL_DESCRIBE="kernel-describe"
#
LAVA_JOB_PRIORITY="99"
#
ANDROID_VENDOR_FINGERPRINT="android-vendor-fingerprint"
#
TUXSUITE_BAKE_VENDOR_DOWNLOAD_URL="tuxsuite-bake-vendor-download-url"
PROJECT="projects/lkft-android/"
PROJECT_NAME="lkft"
#
DEPLOY_TARGET="downloads"
OS_INFO="android"
DEPLOY_OS="android"

#
DOCKER_IMAGE_TEST="docker-hub-url"

0 comments on commit 953a73e

Please sign in to comment.