10–14 Jun 2025
University of Ottawa
EST timezone

porch(1): it's not what you expect(1)

Not scheduled
50m
Desmarais Building (DMS) (University of Ottawa)

Desmarais Building (DMS)

University of Ottawa

55 Laurier Ave E. Ottawa, ON, K1N 6N5
Lecture 50 min Development

Description

In a world ruled by expect(1) and TCL, we discuss an alternative that was developed based on scripting with lua instead. porch(1) was developed with a language already available and used in FreeBSD base in mind, with the aim of TTY testing via pts(4).

The overall aim of this project is to provide a simple subset of expect(1) functionality specifically aimed at developer and sysadmin automation in another popular language with many niceties for scripted interaction.

In this talk, we'll specifically discuss:

  • The motivation for writing porch
  • The underlying design/philosophy (with diagrams to describe the model)
  • Bundled-in functionality beyond script execution
  • Practical samples used in FreeBSD today

--

The author has been a FreeBSD src committer since 2017, working on many parts of the tree and gradually introducing lua into the base system. His most recent exploits include improving base system boot environment management with bectl(8) and excursions into the tty layer.

One-line summary Discussion of a Lua-based alternative to expect(1)

Primary author

Kyle Evans (FreeBSD / Klara)

Presentation materials

There are no materials yet.