Python library and command line tool for generating LAVA jobs
Project description
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--rootfsarguments 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.
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file tuxlava-0.15.0.tar.gz.
File metadata
- Download URL: tuxlava-0.15.0.tar.gz
- Upload date:
- Size: 119.9 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: python-requests/2.32.5
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
155903dcf0af170c05cb61f6e8404c7a7f360828c912c76bde53b5673fa65ae1
|
|
| MD5 |
50009371cfa9941fde149662f7101b9a
|
|
| BLAKE2b-256 |
88d0ff1c9a36c26cce996944fbd563d608a9fb9c282410a83195015212670c42
|
File details
Details for the file tuxlava-0.15.0-py3-none-any.whl.
File metadata
- Download URL: tuxlava-0.15.0-py3-none-any.whl
- Upload date:
- Size: 95.3 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: python-requests/2.32.5
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
3eae73cfa90969658a3a8000d45d6474cceedbd98793fcd5d11f4a5a04593af2
|
|
| MD5 |
61a5480b1bbc64177ab9c4ae74f2fd37
|
|
| BLAKE2b-256 |
b6fdab0049f92f4176a1eda2038b8909495e81f41405bf984a379c08a1927090
|