Skip to main content

Python library and command line tool for generating LAVA jobs

Project description

TuxLAVA Logo

Pipeline Status coverage report PyPI version Code style: black PyPI - License

Documentation - Repository - Issues

TuxLAVA, by Linaro, is a python library and a command line tool to generate Linaro Automated Validation Architecture a.k.a LAVA jobs for devices of the following type and has a standard list of devices that are supported along with tests that could be run on these devices.

  • AVH
  • FASTBOOT
  • FVP
  • NFS
  • QEMU
  • SSH

TuxLAVA is a part of TuxSuite, a suite of tools and services to help with Linux kernel development.

[[TOC]]

Installing TuxLAVA

Using TuxLAVA as a library

TuxLAVA can be used as a python library as follows:

#!/usr/bin/env python

from tuxlava.jobs import Job

job = Job(
    device="nfs-x86_64",
    kernel="https://example.com/bzImage",
    rootfs="https://example.com/rootfs.tar.xz",
    tests=["ltp-smoke", "ltp-math"],
    modules="https://example.com/modules.tar.xz",
    parameters={"LAVA_JOB_PRIORITY": 50},
    timeouts={"deploy": 20},
)
job.initialize()
print(job.render())

Using TuxLAVA as a command line

Call tuxlava as follows:

tuxlava --device nfs-x86_64 \
    --kernel /path/or/url/to/Image
    --modules /path/or/url/to/modules /usr/ \
    --rootfs /path/or/url/to/rootfs \
    --tests boot

TuxLAVA will output the LAVA job to the stdout with the provided arguments for x86_64 device

The complete list of tuxlava options is available with the following command:

tuxlava --help

Examples

LAVA job to boot test a mipsel kernel at https://mykernel.org/vmlinux:

tuxlava --device qemu-mips32el \
    --kernel https://mykernel.org/vmlinux

Generate a LAVA job with ltp-smoke test:

tuxlava --device qemu-mips32el \
    --kernel https://mykernel.org/vmlinux \
    --test ltp-smoke

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

tuxlava-0.1.3.tar.gz (93.8 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

tuxlava-0.1.3-py3-none-any.whl (79.6 kB view details)

Uploaded Python 3

File details

Details for the file tuxlava-0.1.3.tar.gz.

File metadata

  • Download URL: tuxlava-0.1.3.tar.gz
  • Upload date:
  • Size: 93.8 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: python-requests/2.28.1

File hashes

Hashes for tuxlava-0.1.3.tar.gz
Algorithm Hash digest
SHA256 fec5215db7623636d9141a3c279f3960860712d792763d433d7b720b416d07c8
MD5 357e3d6c2da84e9d6323b66ccd72ef87
BLAKE2b-256 3a6a94b75aae0aba15a75d6ba94c048c4e0fbb49023df5962ed2c2fac3e89f46

See more details on using hashes here.

File details

Details for the file tuxlava-0.1.3-py3-none-any.whl.

File metadata

  • Download URL: tuxlava-0.1.3-py3-none-any.whl
  • Upload date:
  • Size: 79.6 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: python-requests/2.28.1

File hashes

Hashes for tuxlava-0.1.3-py3-none-any.whl
Algorithm Hash digest
SHA256 0180b1063d7179cf389d5bf9a5629924b56220ead2aca6ff4b273a6cdf346a3b
MD5 13cc7ce02b832ef866ad20353d8367cb
BLAKE2b-256 2b11e3a5a9a33f58e2700ddc199f1f40da9c802d4c46c7f5e944cf8144cf5ec1

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page