LinuxCommandLibrary

foo2lava-wrapper

Wrap printing jobs for foo2lava printers

SYNOPSIS

foo2lava-wrapper [options]

PARAMETERS

--help
    Display help message and exit.

--lava-server
    Specify the URL of the LAVA server.

--username
    LAVA username.

--api-key
    LAVA API key.

--target
    The LAVA device target name.


    The PPD (PostScript Printer Description) file for the printer.


    The test page file to print.

--job-name
    The name to use for the LAVA job.

DESCRIPTION

The foo2lava-wrapper script is a helper utility designed to simplify submitting jobs using the foo2zjs printer driver and associated tools to a LAVA (Linaro Automated Validation Architecture) instance. It automates the process of creating LAVA job definitions based on user-provided parameters and configuration files, eliminating the need to manually craft complex YAML definitions. This wrapper facilitates testing and validation of foo2zjs printing functionalities within a controlled and reproducible LAVA environment.

Specifically, it takes arguments such as PPD files, test pages, and other relevant parameters, and translates them into a LAVA job definition. This definition is then submitted to the LAVA server, which schedules and executes the print job on a connected device. The results, including logs and any error messages, are collected by LAVA and made available for analysis.

The primary goal is to streamline automated testing of the foo2zjs driver across different printers and configurations, ensuring consistent and reliable printing behavior.

CAVEATS

Requires a properly configured LAVA instance with a connected device suitable for printing. Authentication credentials for the LAVA server must be provided. Ensure the PPD file and test page are compatible with the target printer and foo2zjs driver.

ERROR HANDLING

The script performs basic error checking, such as validating the existence of input files. However, more comprehensive error handling, especially regarding LAVA API responses, might be needed for robust production use.

LAVA JOB DEFINITION

Internally, the wrapper creates a YAML file conforming to the LAVA job definition schema. Examining the generated YAML can be useful for understanding the underlying LAVA job structure and troubleshooting any issues.

HISTORY

The foo2lava-wrapper script was created to automate testing of the foo2zjs printer driver within the Linaro Automated Validation Architecture (LAVA). It addresses the need for a more efficient and repeatable method for validating driver functionality across a variety of printers. Its development aims to reduce manual effort in job creation and submission to LAVA, contributing to faster and more reliable quality assurance processes for the foo2zjs project.

SEE ALSO

foo2zjs(1), lava-submit(1)

Copied to clipboard