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 user's firmware on Renode. A plan declares the boards it needs, the links between them and the protocol nodes the harness runs, then drives the system over those links in simulated time:

import "zed.jig"

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

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. Both boards are ZedBoards, the node option picks the firmware build each one runs (zed-a or zed-b). The host computer is a CSP node the harness runs on zed-a's KISS serial link. 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 described in the same language: a board.jig file declares the board's device (in this case the ZedBoard's Zynq-7020 SoC), the chips wired to it, the links that leave the board, the protocol stacks its firmware runs, and the firmware. Jig writes the Renode platform description from it, and jig platform prints it. 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 CAN and serial links 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, protocol layers and device families.
  • 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.3.0a1

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.3.0a1
File Size Uploaded Provenance Actions
jig_dsl-0.3.0a1.tar.gz 552.1 kB With provenance Details for jig_dsl-0.3.0a1.tar.gz

Built distribution (wheel)

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

Total release size: 1.0 MB

Release files / jig_dsl-0.3.0a1.tar.gz

Download URL jig_dsl-0.3.0a1.tar.gz
Size 552.1 kB
Tags Source
SHA-256 checksum
How to use checksums
ee913469fec8eaef888962bbd9a3338606452a3487caf74ce33081948d7c716b
BLAKE2b-256 checksum
How to use checksums
4ca08ad302fe70cea2bc8a137d9f195a0199ea39cc8964b3fde13aa76d430b3b
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/7.0.0 CPython/3.13.16

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 Nov 12, 2026.

Transparency log

Release files / jig_dsl-0.3.0a1-py3-none-any.whl

Download URL jig_dsl-0.3.0a1-py3-none-any.whl
Size 468.4 kB
Tags Python 3
SHA-256 checksum
How to use checksums
1b53ad5cd77b84a018d1478cf351eb579b048f6458c6213576387c25ea7b5ff8
BLAKE2b-256 checksum
How to use checksums
7213975863475916c0e015d30f14a87b706f5a829ca3c5373dd034c51ee87e23
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/7.0.0 CPython/3.13.16

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 Nov 12, 2026.

Transparency log

Security for jig-dsl 0.3.0a1

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.3.0a1.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 Nov 12, 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