AtlatestRepositorysigil-wm

sigil-wm / tree / scriptstest-trace-inventory

1#!/usr/bin/env bash
2set -euo pipefail
3cd -P "$(dirname "$0")/.."
4make -j2 all build/trace-records-test build/output-inventory-test
5build/trace-records-test
6build/output-inventory-test
7test_runtime=$(mktemp -d /tmp/wm-trace.XXXXXX)
8trap 'rm -rf "$test_runtime"' EXIT
9chmod 700 "$test_runtime"
10export XDG_RUNTIME_DIR=$test_runtime WLR_BACKENDS=headless WLR_RENDERER=pixman WLR_HEADLESS_OUTPUTS=1
11export SIGIL_WM_LIBRARY=$PWD/build/libsigil-wm.so
12timeout --foreground 30 "${SIGIL:-sigil}" -L src eval -f test/trace-inventory.sgl