Skip to content

Commands

Run hfim <command> --help for all options.

Command Does Explained in
hfim doctor reports what is installed and what is missing, each with the command that installs it README
hfim doctor --board <board.yaml> checks only what the station of that board needs, from its hardware.host Hardware backend
hfim init [template] [dir] creates a campaign directory from a template and installs what it pins; on a terminal, without a template, lists the templates to pick from and asks for the directory; --yes asks nothing, --no-install only copies README
hfim setup [--dry-run] [--from-source] checks the simulator, SDK and probe package the template pins, says what each is, and installs what is missing into ~/.hfim with the full build output; --from-source builds a simulator image instead of downloading its prebuilt image Updating
hfim update [version] reinstalls HFIM: the latest release, a release, or main Updating
hfim template update brings template fixes into a campaign directory Updating
hfim sim install [name[@version]] installs and registers a simulator release: hfim sim install ovp the newest one, hfim sim install ovp@0.6.9 that one; name is the short name (ovp) or the full one (hfim-sim-ovp); without a name, the template's pin, or outside a campaign directory the list of known packages. A release whose manifest names a prebuilt image downloads it; any other release builds its image Updating
hfim sim install <name> --from-source builds the Docker image on this machine even when the release names a prebuilt image Prebuilt images
hfim sim update <package> --rebuild installs an installed simulator release again: downloads its prebuilt image again, or builds it; with --from-source, builds it
hfim probe install [name[@version]] installs a probe package from its release tag, the newest one without a version; name is the short name (openocd) or the full one (hfim-probe-openocd); without a name, the template's probe: pin; --path installs a checkout Hardware backend
hfim probe list lists the probe packages installed in ~/.hfim/probes Hardware backend
hfim sdk install [version or range] installs the highest hfim-sdk release in range; --path registers a checkout Updating
hfim uninstall [--yes] lists, then removes, what hfim installed on this computer Uninstalling
hfim build <benchmark dir> compiles a benchmark to an ELF Writing a benchmark
hfim golden <benchmark> --config <file> runs the golden run Running campaigns
hfim run <campaign.yaml> runs a campaign; installs a missing pinned package, builds, and runs the golden run when needed; --no-install installs nothing Running campaigns
hfim run --on <server> <campaign.yaml> runs a campaign on a server Running campaigns
hfim results list lists campaigns and their outcomes
hfim report [campaign_id] writes an HTML report

Environment variables

Variable Default Does
HFIM_SERVER_PLAN /etc/hfim/server.yaml the path of the Server Plan. When this file exists, the computer is a Server: hfim doctor checks the Server, hfim uninstall refuses, and the hfim server commands read and write the plan here. Unset, a new Server that uses the HFIM directory names keeps its plan in /etc/hfim/server.yaml. Leave it unset on a Server. The test suite sets it to a path in a temporary directory, so a test run on a Server never reads the Server's own plan.
HFIM_INDEX_URL the index.yaml of HI-REST/hfim-index on GitHub the package index that hfim init, hfim sim install and hfim probe install read to list templates and packages. When it cannot be read within a few seconds, the copy built into hfim is used. off uses only that copy. See Package index.