1
1
mirror of https://github.com/nmattia/snack.git synced 2024-09-11 11:55:36 +03:00

Add test for yaml with no src dirs

This commit is contained in:
Nicolas Mattia 2019-01-17 22:15:37 +01:00
parent 9754f4120d
commit 07dabc7876
3 changed files with 21 additions and 0 deletions

View File

@ -0,0 +1,6 @@
module Main where
import Lib
main :: IO ()
main = topReddit >>= print

View File

@ -0,0 +1,4 @@
name: single-main
executable:
main: Main.hs

11
tests/single-main/test Executable file
View File

@ -0,0 +1,11 @@
#!/usr/bin/env bash
# vim: ft=sh sw=2 et
set -euo pipefail
test() {
echo | $SNACK ghci
$SNACK run
}
SNACK="snack -j4 --package-yaml ./package.yaml" test