mirror of
https://github.com/nmattia/snack.git
synced 2025-01-07 13:47:09 +03:00
Add test for yaml with no src dirs
This commit is contained in:
parent
9754f4120d
commit
07dabc7876
6
tests/single-main/Main.hs
Normal file
6
tests/single-main/Main.hs
Normal file
@ -0,0 +1,6 @@
|
||||
module Main where
|
||||
|
||||
import Lib
|
||||
|
||||
main :: IO ()
|
||||
main = topReddit >>= print
|
4
tests/single-main/package.yaml
Normal file
4
tests/single-main/package.yaml
Normal file
@ -0,0 +1,4 @@
|
||||
name: single-main
|
||||
|
||||
executable:
|
||||
main: Main.hs
|
11
tests/single-main/test
Executable file
11
tests/single-main/test
Executable 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
|
Loading…
Reference in New Issue
Block a user