test with an sdist

This commit is contained in:
Greg Weber 2011-07-13 09:49:30 -07:00
parent b7f567e8c0
commit efc5c19e52
2 changed files with 16 additions and 6 deletions

View File

@ -2,12 +2,18 @@
## Test suite
Run this from the project root directory. It will make sure each site type builds. It first does an sdist, which ensures we are testing what will be put on hackage.
shelltest tests/scaffold.shelltest
## Automated builder
## Quicker, repeatable site building
Useful for debugging individual failures.
tests/runscaffold.sh < sqlite-input.txt
## Getting a list of scaffold files for the cabal file
It is necessary after adding a scaffolding file to add it to the list of files in the cabal file.
find scaffold -type f

View File

@ -1,9 +1,13 @@
# use shelltest
# note that the first cabal install line is its own test
# cabal install shelltestrunner
# shelltest test.shelltest
# This uses shelltest
#
# cabal install shelltestrunner
# shelltest tests/scaffold.shelltest
#
# note that the first 2 lines setup this test but will also be counted as 2 tests.
cabal clean && cabal install
cabal clean && cabal install && cabal sdist
for f in $(ls -1rt dist/*.tar.gz | tail -1); do tar -xzvf $f && cd `basename $f .tar.gz`; done
rm -rf foobar && runghc scaffold.hs init && cd foobar && cabal install && cabal install -fdevel && cd ..
<<<