Skip to main content

CI Issues

About

This framework provides facilities for automated execution of remote code. The core idea is, to utilize the debug symbols for automated testing, instead of developing custom tools. It does however limit some things to the itanium abi, i.e. gcc and clang.

At the current state it provides functionality for:

All tooling is written in python and easily extensible. Almost everything is written in C89, but we also have some modern C++ features.

Tool Overview

metal.gdb

The metal.gdb tool is the core. It uses the Python API of gdb to run code and obtain detailed information. This allows us to analyse and print values during unit tests without any allocations. Our toolset wraps around this and uses a single breakpoint to provide a variety of functionality, all written as plugins.

Since it is gdb based you can use it with any of those targets:

  • local execution
  • remote server (gdbsever)
  • openocd
  • qemu

Since everything is a gdb plugin, you can use any of the functionality during a debug session, not only standalone.

metal.serial

The serial library provides a light-weight testing tool for environments that do not provide access for a debugger. It does utilize debug symbols, but to a minimal degree. The debug symbols are used in conjunction with a preprocessor to conveniently generate you a binary protocol for uni- or bidirectional communication with the target device, e.g. through a serial port. All you need is a function to write (and maybe receive) bytes you can enjoy the same features as metal.gdb, but without the introspectio.

I wrote two articles so far about how metal.serial works.

Getting started

metal.test is shipped as a pip package, since most is in python.

pip install metal_test

The metal-flags tool allows you get the compiler flags, which you could for example use in your CMake build through execute_process.

metal-flags -I -S gdb

Documentation

The current master Documentation can be found in the wiki.

Metadata

Release files for metal-test 0.2.2

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

Source distribution (sdist)

Source distribution for metal-test 0.2.2
File Size Uploaded
metal-test-0.2.2.tar.gz 38.2 kB Details

Release files / metal-test-0.2.2.tar.gz

Download URL metal-test-0.2.2.tar.gz
Size 38.2 kB
Tags Source
SHA-256 checksum
How to use checksums
4811822edda2af248b5b2343bcfe255517002a83ec83790b69ab125ddfbd533a
BLAKE2b-256 checksum
How to use checksums
394f40bd806e796cf1c0fb594f0ba1db96dc2b425c31bffb21314c31db46cdd6
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/3.2.0 pkginfo/1.5.0.1 requests/2.24.0 setuptools/49.2.0 requests-toolbelt/0.9.1 tqdm/4.48.0 CPython/3.8.5

Release history Release notifications | RSS feed

This release

0.2.2 This release

1 release file

0.2.0

1 release file

0.1.2

1 release file

0.1.1

1 release file

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