mirror of
https://github.com/nmattia/snack.git
synced 2024-09-11 11:55:36 +03:00
19 lines
243 B
Bash
Executable File
19 lines
243 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
|