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

21 lines
328 B
Bash
Executable File

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