1
1
mirror of https://github.com/nmattia/snack.git synced 2024-12-03 02:05:32 +03:00
snack/tests/ghc-options/test
2019-01-31 18:59:25 +01:00

21 lines
388 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 --package-file ./package.nix" test
SNACK="snack --package-file ./package.nix -l ../../snack-lib" test
SNACK="snack --package-file ./package.yaml" test