Skip to main content
Pre-release

This release is a pre-release and may not be stable for production use.

Jig

PyPI version Python versions Tests Coverage Documentation License: MIT

A test language and harness for firmware running on the Renode emulator.

Full documentation: https://jig.readthedocs.io

Overview

Jig runs test plans, written as .jig files, against a users firmware on Renode. A plan declares the boards it needs, the buse interfaces between them and the communication protocols the harness uses, then drives the system over those interfaces in simulated time:

import "zed.jig"

system "two ZedBoards and a host computer" {
    board a: "zed-a"
    board b: "zed-b"
    bus can0: can(bitrate: 1 Mbit/s, members: [a.can, b.can])
    node host: csp(address: 10, link: a.kiss)
}

setup {
    parallel {
        task zed_a { booted(a, 1) }
        task zed_b { booted(b, 2) }
    }
}

test "the host computer reaches zed-b through zed-a" {
    check host.ping(b) < 50 ms
    check can0.traffic().routes["10->2:1"] >= 1
}

This is the start of examples/zedboard/plans/multiboard.jig. The setup waits, on both boards at once, for the boot banner and the first prompt (booted comes from the example's plan library, lib/zed.jig). The test then pings zed-b from the host computer through zed-a using the lightweight network protocol LibCSP.

Every check's result is printed in a report with the simulated time it ran at. Each run gets a fingerprint, a SHA-256 digest of everything it decided and measured in simulated time, so jig run --repeat 3 proves a plan gives the same result three times, on any host.

Boards are data: a board.yaml names the platform (in this case the ZedBoard, running a Zynq-7020 SoC), the Renode platform description, the firmware and the interfaces plans use. Users must bring their own C# models and Python plugins for any peripherals not directly supported by Jig.

Requirements

  • Python 3.11 or later.
  • Renode 1.17.0. Jig finds an installed copy, or jig renode install downloads the release from Renode's GitHub page after you agree, and checks its size and SHA-256 digest.
  • For the ZedBoard example's firmware, arm-none-eabi-gcc.
  • For RTL co-simulation, Linux with Verilator.

Installation

python -m pip install jig-dsl
jig renode install
jig doctor

Quick Start

The repository's ZedBoard example runs two Zynq-7020 boards on one CAN bus, with a host computer on a serial link to the first:

git clone https://github.com/GNPower/Jig.git
cd Jig
python examples/zedboard/firmware/build.py
jig run examples/zedboard/plans/multiboard.jig --html out/report.html

build.py needs arm-none-eabi-gcc on the PATH. The tutorials in the documentation build plans like this one step by step.

Features

  • A plan language for firmware tests: consoles, network requests, checks, waits, loops, parallel tasks, timelines and recorded values, all in simulated time.
  • Several boards in one emulation, on bus interfaces the harness carries and watches, with repeatable timing between them.
  • Zynq-7000 and STM32 drivers: JTAG-style and Quad-SPI boots through Jig's Zynq-7000 models, and ELF boots on Renode's STM32 platforms.
  • CSP in libcsp 1.6's wire format: KISS and CAN links, RDP connections, and a bus observer that reassembles every packet.
  • Board plugins through jig.plugin, a versioned API for plan functions, board members, decoders and device drivers.
  • C# models compiled by Renode at start-up, with interfaces that board chip models implement so plans can drive them.
  • Reports for people and CI: an HTML page with plots, JUnit XML, a JSON summary, run directories with every console transcript and packet, and exit codes that differentiate failed tests from broken setups.
  • RTL co-simulation of programmable-logic blocks with Verilator.
  • A localhost bridge to Renode with a token per run, in place of Renode's network-facing Robot Framework server.

License

MIT: see LICENSE.

Metadata

Release files for jig-dsl 0.1.0a2

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

Source distribution (sdist)

Source distribution for jig-dsl 0.1.0a2
File Size Uploaded Provenance Actions
jig_dsl-0.1.0a2.tar.gz 373.4 kB With provenance Details for jig_dsl-0.1.0a2.tar.gz

Built distribution (wheel)

Table of built distributions (wheels) for jig-dsl 0.1.0a2
File Interpreter ABI Platform Actions
jig_dsl-0.1.0a2-py3-none-any.whl Python 3 none any Details for jig_dsl-0.1.0a2-py3-none-any.whl

Total release size: 722.8 kB

Release files / jig_dsl-0.1.0a2.tar.gz

Download URL jig_dsl-0.1.0a2.tar.gz
Size 373.4 kB
Tags Source
SHA-256 checksum
How to use checksums
363b7534490783459d9a82756980bd36d9fb3681b3dbce79b6cbc2c0e6c2deb1
BLAKE2b-256 checksum
How to use checksums
c39ccc6beb6b32f53cab687184e94327ea3f30a6eacbe7d716242c252cbe8e61
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/7.0.0 CPython/3.13.14

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

PyPI Publish Attestation

PyPI verified that this artifact, at this checksum, originated from the publisher listed below.

Signed by GitHub Actions, verified by PyPI on Oct 14, 2026.

Transparency log

Release files / jig_dsl-0.1.0a2-py3-none-any.whl

Download URL jig_dsl-0.1.0a2-py3-none-any.whl
Size 349.4 kB
Tags Python 3
SHA-256 checksum
How to use checksums
6574119fae6d28234452864a5f01550004094f1c9be1cb8fd5bc3efe46337238
BLAKE2b-256 checksum
How to use checksums
7007692769f5d4cead3557a325bdee4ff9fc2c3773b826e7990236a48b00fac4
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/7.0.0 CPython/3.13.14

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

PyPI Publish Attestation

PyPI verified that this artifact, at this checksum, originated from the publisher listed below.

Signed by GitHub Actions, verified by PyPI on Oct 14, 2026.

Transparency log

Security for jig-dsl 0.1.0a2

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

Full provenance

Both files in this release have been uploaded with provenance metadata.

Select from 2 files

Attestation for jig_dsl-0.1.0a2.tar.gz

PyPI Publish Attestation

PyPI verified that this artifact, at this checksum, originated from the publisher listed below.

Signed by GitHub Actions, verified by PyPI on Oct 14, 2026.

Transparency log

A note on package security

PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.

To learn more about protecting yourself from malicious actors, visit our package security documentation.

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