Skip to main content
TuxLAVA Logo

PyPI version Code style: black PyPI - License

Documentation - Repository - Issues

TuxLAVA is a command-line tool and Python library that simplifies creating LAVA job definitions for various device types. Developed by Linaro, it's part of TuxSuite and streamlines Linux kernel test automation.

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

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

Table of Contents

Installing TuxLAVA

Examples

LAVA job to boot test a mipsel kernel at https://url/to/vmlinux:

tuxlava --device qemu-mips32el \
    --kernel https://url/to/vmlinux

Generate a LAVA job with ltp-smoke test:

tuxlava --device qemu-mips32el \
    --kernel https://url/to/vmlinux \
    --test ltp-smoke

Using TuxLAVA as a command line

Call tuxlava as follows:

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

The --kernel, --modules, and --rootfs arguments can be URLs (e.g. https://...), file URLs (e.g. file:///...), or absolute file paths (e.g. /path/to/Image).

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

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://url/to/bzImage",
    rootfs="https://url/to/rootfs.tar.xz",
    tests=["ltp-smoke", "ltp-math"],
    modules="https://url/to/modules.tar.xz",
    parameters={"LAVA_JOB_PRIORITY": 50},
    timeouts={"deploy": 20},
)
job.initialize()
print(job.render())

Contributing

Contributions, bug reports and feature requests are welcome! Please see the issues or open a pull request.

Release files for tuxlava 0.25.0

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for tuxlava 0.25.0
File Size Uploaded
tuxlava-0.25.0.tar.gz 104.4 kB Details

Built distribution (wheel)

Table of built distributions (wheels) for tuxlava 0.25.0
File Interpreter ABI Platform
tuxlava-0.25.0-py3-none-any.whl Python 3 none any Details

Total release size: 205.8 kB

Release files / tuxlava-0.25.0.tar.gz

Download URL tuxlava-0.25.0.tar.gz
Size 104.4 kB
Tags Source
SHA-256 checksum
How to use checksums
448d2d4eeaa2d1d53852cbf089b0d056235b18bf41635cd477c36bd5fee0266f
BLAKE2b-256 checksum
How to use checksums
8d8235f09aaf8e612525ffd36f829741a595cbea188fc71717e52897fab662ca
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via python-requests/2.34.2

Release files / tuxlava-0.25.0-py3-none-any.whl

Download URL tuxlava-0.25.0-py3-none-any.whl
Size 101.4 kB
Tags Python 3
SHA-256 checksum
How to use checksums
dcbfbe62f7dabfff24660dd6ef6f162b8077ec16c4a3378f85abc8da0d988ce1
BLAKE2b-256 checksum
How to use checksums
48a6dd1b5a783c5d3ed60944713eaa247ce3efeb2f47f05caf4f557b63db9287
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via python-requests/2.34.2
Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page