use shelltestrunner for scaffolding tests
This commit is contained in:
parent
c931fb0afd
commit
466ba86a55
@ -1,6 +0,0 @@
|
|||||||
#!/bin/sh
|
|
||||||
|
|
||||||
cabal clean && cabal install && rm -rf foobar && \
|
|
||||||
runghc scaffold.hs init < input-sqlite && cd foobar && cabal install && cabal install -fdevel && cd .. && rm -rf foobar && \
|
|
||||||
runghc scaffold.hs init < input-postgres && cd foobar && cabal install && cabal install -fdevel && cd .. && rm -rf foobar && \
|
|
||||||
runghc scaffold.hs init < input-mini && cd foobar && cabal install && cabal install -fdevel && cd .. && rm -rf foobar
|
|
||||||
@ -1,5 +0,0 @@
|
|||||||
Michael
|
|
||||||
foobar
|
|
||||||
|
|
||||||
Foobar
|
|
||||||
m
|
|
||||||
@ -1,5 +0,0 @@
|
|||||||
Michael
|
|
||||||
foobar
|
|
||||||
|
|
||||||
Foobar
|
|
||||||
p
|
|
||||||
@ -1,5 +0,0 @@
|
|||||||
Michael
|
|
||||||
foobar
|
|
||||||
|
|
||||||
Foobar
|
|
||||||
s
|
|
||||||
36
test.shelltest
Normal file
36
test.shelltest
Normal file
@ -0,0 +1,36 @@
|
|||||||
|
# use shelltest
|
||||||
|
# note that the first cabal install line is its own test
|
||||||
|
# cabal install shelltestrunner
|
||||||
|
# shelltest test.shelltest
|
||||||
|
|
||||||
|
cabal clean && cabal install
|
||||||
|
|
||||||
|
rm -rf foobar && runghc scaffold.hs init && cd foobar && cabal install && cabal install -fdevel && cd ..
|
||||||
|
<<<
|
||||||
|
Michael
|
||||||
|
foobar
|
||||||
|
|
||||||
|
Foobar
|
||||||
|
s
|
||||||
|
>>> /.*Registering foobar-0.0.0.*/
|
||||||
|
>>>= 0
|
||||||
|
|
||||||
|
rm -rf foobar && runghc scaffold.hs init && cd foobar && cabal install && cabal install -fdevel && cd ..
|
||||||
|
<<<
|
||||||
|
Michael
|
||||||
|
foobar
|
||||||
|
|
||||||
|
Foobar
|
||||||
|
p
|
||||||
|
>>> /.*Registering foobar-0.0.0.*/
|
||||||
|
>>>= 0
|
||||||
|
|
||||||
|
rm -rf foobar && runghc scaffold.hs init && cd foobar && cabal install && cabal install -fdevel && cd .. && rm -rf foobar
|
||||||
|
<<<
|
||||||
|
Michael
|
||||||
|
foobar
|
||||||
|
|
||||||
|
Foobar
|
||||||
|
m
|
||||||
|
>>> /.*Registering foobar-0.0.0.*/
|
||||||
|
>>>= 0
|
||||||
Loading…
Reference in New Issue
Block a user