1
1
mirror of https://github.com/nmattia/snack.git synced 2025-01-07 13:47:09 +03:00
snack/tests/template-haskell-2/test
2018-10-04 21:30:56 +03:00

15 lines
269 B
Bash
Executable File

#!/usr/bin/env bash
# vim: ft=sh sw=2 et
set -euo pipefail
snack -j4 build -s code/package.nix
snack -j4 run -s code/package.nix | diff golden -
TMP_FILE=$(mktemp)
capture_io "$TMP_FILE" main | snack -j4 -s code/package.nix ghci
diff golden $TMP_FILE
rm $TMP_FILE