1
1
mirror of https://github.com/nmattia/snack.git synced 2025-01-08 14:31:40 +03:00
snack/tests/nested/test

22 lines
339 B
Plaintext
Raw Normal View History

#!/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
}
2018-08-26 18:25:44 +03:00
SNACK="snack -j4" test
SNACK="snack -j4 -s ./snack.nix" test
SNACK="snack -j4 --package-yaml ./package.yaml" test