Tests

test.sh requires valgrind there are two kinds of tests:

Gwion tests

those tests are just gwion (.gw) files, handling special comments:

  • #! [skip] (optionally followed by reason to skip)
  • #! [todo] (optionally followed by reason to delay testing)
  • #! [contains] followed by string to match
  • #! [excludes] followed by string not to match

Shell test

those tests are just bash (.sh) files.
they should start with this snippet

#!/bin/bash
# [test] #5
n=0
[ "$1" ] && n="$1"
[ "$n" -eq 0 ] && n=1
source tests/sh/common.sh
built with mdr and mdBook
You'll find the source here, Luke! note: privacy guards may interfere with the playground