mirror of
https://github.com/nmattia/snack.git
synced 2025-01-07 13:47:09 +03:00
15 lines
197 B
Bash
Executable File
15 lines
197 B
Bash
Executable File
#!/usr/bin/env bash
|
|
# vim: ft=sh sw=2 et
|
|
|
|
set -euo pipefail
|
|
|
|
snack build
|
|
snack run | diff golden -
|
|
|
|
TMP_FILE=$(mktemp)
|
|
|
|
capture_io "$TMP_FILE" main | snack ghci
|
|
|
|
diff golden $TMP_FILE
|
|
rm $TMP_FILE
|